{"id":18457987,"url":"https://github.com/alokkusingh/number-processor","last_synced_at":"2026-04-12T02:33:22.908Z","repository":{"id":54907112,"uuid":"286209159","full_name":"alokkusingh/number-processor","owner":"alokkusingh","description":"Number Processor","archived":false,"fork":false,"pushed_at":"2021-01-23T10:12:14.000Z","size":116,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-23T12:19:44.522Z","etag":null,"topics":["cyclic-barrier","docker","java","jenkins-pipeline","jenkinsfile","jmockit","junit5","lombok","spring-boot","spring-task"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alokkusingh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-08-09T09:50:07.000Z","updated_at":"2021-01-23T10:12:17.000Z","dependencies_parsed_at":"2022-08-14T06:20:20.664Z","dependency_job_id":null,"html_url":"https://github.com/alokkusingh/number-processor","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alokkusingh%2Fnumber-processor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alokkusingh%2Fnumber-processor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alokkusingh%2Fnumber-processor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alokkusingh%2Fnumber-processor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alokkusingh","download_url":"https://codeload.github.com/alokkusingh/number-processor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250430699,"owners_count":21429339,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cyclic-barrier","docker","java","jenkins-pipeline","jenkinsfile","jmockit","junit5","lombok","spring-boot","spring-task"],"created_at":"2024-11-06T08:16:20.122Z","updated_at":"2026-04-12T02:33:17.846Z","avatar_url":"https://github.com/alokkusingh.png","language":"Java","readme":"# Number Processor\nThe application accepts numbers and does multiple computation on the numbers in **parallel** or in **sequential**.\n\nTable of Contents\n=================\n\n   * [Computations](#computations)\n   * [Examples](#examples)\n   * [Run Command](#run-command)\n   * [Download Jar Build](#download-jar-build)\n   * [Docker Build](#docker-build)\n\nCreated by [Alok Singh](https://github.com/alokkusingh)\n\n## Computations\n- `Addition` - add the numbers \n- `Multiplication` - multiply the numbers\n- `Subtraction` - subtract the numbers\n\n## Examples\n- Example 1:\n\n    Sample Input:\n    1 1 1 1 1 SEQUENTIAL\n\n    Sample Output:\n    ERROR: \"At least 2 numbers must be different\"\n\n    Explanation: All five numbers are with the same value \"1\".\n\n- Example 2:\n\n    Sample Input:\n    3 4 1 5 6 SEQUENTIAL\n\n    Sample Output:\n    Add: 19\n    Multi: 360\n    Sub: -7\n    Time: 10s\n    Type: SEQUENTIAL\n    Numbers: [6, 5, 4, 3, 1]\n\n    Explanation: in this case, Add operation executed first and took 2s. Then Mult operation executed and took 5s. Finally Sub operation took 3s, giving a total of 10s.\n\n- Example 3:\n\n    Sample Input: \n    5 4 5 5 5 PARALLEL\n\n    Sample Output:\n    Mult: 20\n    Sub: 1\n    Add: 9\n    Time: 5s\n    Type: PARALLEL\n    Numbers: [5, 4]\n\n    Explanation: in this case, Add (5s), Mult (1s) and Sub (4s) operations started at the same time and the longest one defined the final execution time result of 5s.\n\n\n## Run Command\nRun the application by executing following command\n```\ncd number-processor\njava -jar target/number-processor-1.0.0.jar 1 2 6 4 3 PARALLEL \n```\nOr\n```\ncd number-processor\njava -jar target/number-processor-1.0.0.jar 1 2 6 4 3 SEQUENTIAL\n``` \n\n## Download Jar Build\nGet the latest build from [number-processor](https://github.com/alokkusingh/number-processor/packages/349251)\n\n## Docker Build\nBuild Docker Image\n```\ncd number-processor\ndocker build -t alokkusingh/number-processor:latest -t alokkusingh/number-processor:1.0.0 --build-arg JAR_FILE=target/number-processor-1.0.0.jar .\n``` \nPull/Run Docker Container\n```\ndocker run --rm --name number-processor alokkusingh/number-processor 1 2 6 4 3 SEQUENTIAL\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falokkusingh%2Fnumber-processor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falokkusingh%2Fnumber-processor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falokkusingh%2Fnumber-processor/lists"}