{"id":37027197,"url":"https://github.com/hashmapinc/tempus-unit-conversion","last_synced_at":"2026-01-14T03:13:09.997Z","repository":{"id":57724880,"uuid":"161496630","full_name":"hashmapinc/tempus-unit-conversion","owner":"hashmapinc","description":"Unit conversion library written for Tempus","archived":false,"fork":false,"pushed_at":"2019-02-05T10:40:43.000Z","size":503,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":16,"default_branch":"master","last_synced_at":"2025-07-18T03:48:36.185Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hashmapinc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-12-12T14:01:54.000Z","updated_at":"2019-02-05T10:40:40.000Z","dependencies_parsed_at":"2022-09-11T01:50:18.038Z","dependency_job_id":null,"html_url":"https://github.com/hashmapinc/tempus-unit-conversion","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hashmapinc/tempus-unit-conversion","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hashmapinc%2Ftempus-unit-conversion","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hashmapinc%2Ftempus-unit-conversion/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hashmapinc%2Ftempus-unit-conversion/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hashmapinc%2Ftempus-unit-conversion/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hashmapinc","download_url":"https://codeload.github.com/hashmapinc/tempus-unit-conversion/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hashmapinc%2Ftempus-unit-conversion/sbom","scorecard":{"id":457242,"data":{"date":"2025-08-11","repo":{"name":"github.com/hashmapinc/tempus-unit-conversion","commit":"f77455d2dbc1e5b6fc773577b84ec31fba4e4975"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.8,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":6,"reason":"Found 4/6 approved changesets -- score normalized to 6","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 24 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":2,"reason":"8 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-4g9r-vxhx-9pgx","Warn: Project is vulnerable to: GHSA-53x6-4x5p-rrvv","Warn: Project is vulnerable to: GHSA-7hfm-57qf-j43q","Warn: Project is vulnerable to: GHSA-crv7-7245-f45f","Warn: Project is vulnerable to: GHSA-mc84-pj99-q6hh","Warn: Project is vulnerable to: GHSA-xqfj-vm6h-2x34","Warn: Project is vulnerable to: GHSA-9jwc-q6j3-8g9g","Warn: Project is vulnerable to: GHSA-gmg8-593g-7mv3"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-19T10:02:58.085Z","repository_id":57724880,"created_at":"2025-08-19T10:02:58.085Z","updated_at":"2025-08-19T10:02:58.085Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408816,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T01:52:23.358Z","status":"online","status_checked_at":"2026-01-14T02:00:06.678Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2026-01-14T03:13:09.511Z","updated_at":"2026-01-14T03:13:09.991Z","avatar_url":"https://github.com/hashmapinc.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg src=\"https://github.com/hashmapinc/hashmap.github.io/blob/master/images/tempus/TempusLogoBlack2.png\" width=\"910\" height=\"245\" alt=\"Hashmap, Inc Tempus\"/\u003e\n\n[![License](http://img.shields.io/:license-Apache%202-blue.svg)](http://www.apache.org/licenses/LICENSE-2.0.txt)\n\n\n# tempus-unit-conversion\nUnit conversion library written for Tempus. Library uses Energistics Unit of Measure Usage Guide and standards for unit conversion.\nAll unit conversion are supported according to Energistics conversion formula. Library provide api for converting given quantity to SI Unit system. \nUnit Conversion library also provide api's for quantity in given unit to target unit. API's for listing quantity classes \nand its different member units are supported in library.\n\n## Table of Contents\n\n- [Features](#features)\n- [Requirements](#requirements)\n- [Getting Started](#getting-started)\n- [Usage](#usage)\n- [License](#license)\n\n## Features\n\nThis library aims to provide a few key features:\n\n* Converting given Quantity with unit to SI Unit\n* Converting given Quantity with unit to any other target unit in same Quantity Class\n* Listing all Quantity unit classes\n* Listing all Member Units for a particular Quantity Class\n\n## Requirements\n\n* JDK 1.8 at a minimum\n* Maven 3.1 or newer\n* Git client (to build locally)\n\n## Getting Started\nTo build the library and get started first off clone the GitHub repository \n\n    git clone https://github.com/hashmapinc/tempus-unit-conversion.git\n\nChange directory into the tempus-unit-conversion\n\n    cd tempus-unit-conversion\n    \nExecute a maven clean install\n\n    mvn clean install\n    \nA Build success message should appear\n\n    [INFO] ------------------------------------------------------------------------\n    [INFO] BUILD SUCCESS\n    [INFO] ------------------------------------------------------------------------\n    [INFO] Total time: 6.308 s\n    [INFO] Finished at: 2018-12-13T11:35:54+05:30\n    [INFO] Final Memory: 32M/479M\n    [INFO] ------------------------------------------------------------------------\n\n## Usage\n\n#### Initalization\n```java\n    UnitConvertorService unitConvertorService = UnitConvertorContext.getInstanceOfUnitConvertorService();\n    QuantityClassSetService quantityClassSetService = UnitConvertorContext.getInstanceOfQuantityClassSetService();\n``` \n#### Unit Convertor API's\n\n* Convert kilometer(km) to meter(m) which is SI unit of length\n```java\n    Quantity quantity = new Quantity(10.0, \"km\");\n    Quantity siQuantity = unitConvertorService.convertToSiUnit(quantity);\n```\n\n* Convert kilometer(km) to feet(m) \n```java\nQuantity quantity = new Quantity(2.5, \"km\");\nQuantity targetQuantity = unitConvertorService.convertToTargetUnit(quantity, \"ft\");\n```\n\n* Get All Quantity Class\n```java\n    Set quantitySetClasses = quantityClassSetService.getAllQuantityClass();\n```\n\n* Get Member Units for length Quantiy Class\n```java\n    Set lengths = quantityClassSetService.getMemberUnitsForQuantityClass(\"length\");\n```\n\n* Get all Member Units with all Quanaity Class\n```java\n    Map quantityClassMap = quantityClassSetService.getMemberUnitsForAllQuantityClass();\n```\n## License\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n  http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n\n## Maven\n\nCan be used with the following maven dependancy\n```xml\n         \u003cdependency\u003e\n            \u003cgroupId\u003ecom.hashmapinc.tempus\u003c/groupId\u003e\n            \u003cartifactId\u003etempus-unit-conversion\u003c/artifactId\u003e\n            \u003cversion\u003e1.0.4\u003c/version\u003e\n        \u003c/dependency\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhashmapinc%2Ftempus-unit-conversion","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhashmapinc%2Ftempus-unit-conversion","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhashmapinc%2Ftempus-unit-conversion/lists"}