{"id":15486556,"url":"https://github.com/dyedgreen/uncertain","last_synced_at":"2025-10-04T06:27:14.150Z","repository":{"id":54132847,"uuid":"340991032","full_name":"dyedgreen/uncertain","owner":"dyedgreen","description":"Fast and correct computations with uncertain values","archived":false,"fork":false,"pushed_at":"2025-06-08T20:29:16.000Z","size":50,"stargazers_count":95,"open_issues_count":3,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-07T11:16:04.998Z","etag":null,"topics":["crates","rust-crate","trait","uncertain-values"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/uncertain","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dyedgreen.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":"2021-02-21T19:57:17.000Z","updated_at":"2025-06-10T10:09:05.000Z","dependencies_parsed_at":"2022-08-13T07:10:42.465Z","dependency_job_id":null,"html_url":"https://github.com/dyedgreen/uncertain","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dyedgreen/uncertain","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dyedgreen%2Funcertain","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dyedgreen%2Funcertain/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dyedgreen%2Funcertain/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dyedgreen%2Funcertain/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dyedgreen","download_url":"https://codeload.github.com/dyedgreen/uncertain/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dyedgreen%2Funcertain/sbom","scorecard":{"id":362001,"data":{"date":"2025-08-11","repo":{"name":"github.com/dyedgreen/uncertain","commit":"57ef7063eb790be8e7e53c8f259cf972ceb82498"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.5,"checks":[{"name":"Code-Review","score":1,"reason":"Found 2/19 approved changesets -- score normalized to 1","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":"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":"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":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/dyedgreen/uncertain/ci.yml/master?enable=pin","Info:   0 out of   1 GitHub-owned GitHubAction dependencies pinned"],"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":"Maintained","score":0,"reason":"1 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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/ci.yml:1","Info: no jobLevel write permissions found"],"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":"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":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: 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":"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 16 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"}}]},"last_synced_at":"2025-08-18T11:04:27.526Z","repository_id":54132847,"created_at":"2025-08-18T11:04:27.527Z","updated_at":"2025-08-18T11:04:27.527Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271455685,"owners_count":24762774,"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","status":"online","status_checked_at":"2025-08-21T02:00:08.990Z","response_time":74,"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":["crates","rust-crate","trait","uncertain-values"],"created_at":"2024-10-02T06:09:00.060Z","updated_at":"2025-10-04T06:27:09.101Z","avatar_url":"https://github.com/dyedgreen.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `Uncertain\u003cT\u003e`\n\n[![crates.io](https://img.shields.io/crates/v/uncertain.svg)](https://crates.io/crates/uncertain)\n[![Released API docs](https://docs.rs/uncertain/badge.svg)](https://docs.rs/uncertain)\n[![CI](https://github.com/dyedgreen/uncertain/actions/workflows/ci.yml/badge.svg)](https://github.com/dyedgreen/uncertain/actions/workflows/ci.yml)\n[![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](./LICENSE)\n\nFast and correct computations with uncertain values.\n\nWhen working with values which are not exactly determined, such as sensor data, it\ncan be difficult to handle uncertainties correctly.\n\nThe `Uncertain` trait makes such computations as natural as regular computations:\n\n```rust\nuse uncertain::{Uncertain, Distribution};\nuse rand_distr::Normal;\n\n// Some inputs about which we are not sure\nlet x = Distribution::from(Normal::new(5.0, 2.0).unwrap());\nlet y = Distribution::from(Normal::new(7.0, 3.0).unwrap());\n\n// Do some computations\nlet distance = x.sub(y).map(|diff: f64| diff.abs());\n\n// Ask a question about the result\nlet is_it_far = distance.map(|dist| dist \u003e 2.0);\n\n// Check how certain the answer is\nassert_eq!(is_it_far.pr(0.9), false);\nassert_eq!(is_it_far.pr(0.5), true);\n```\n\nThis works by sampling a Bayesian network which is implicitly created by describing the computation\non the uncertain type. The `Uncertain` trait only permits tests for simple boolean hypotheses. This\nis by design: using Wald's [sequential probability ratio test][sprt], evaluation typically\ntakes less than `100` samples.\n\n## Stability\n\nWhile this crate is released as version `0.x`, breaking API changes should be expected.\n\n## References\n\nThe `Uncertain` trait exported from the library is an implementation of\nthe paper [`Uncertain\u003cT\u003e`][paper].\n\n[paper]: https://www.cs.utexas.edu/users/mckinley/papers/uncertainty-asplos-2014.pdf\n[sprt]: https://en.wikipedia.org/wiki/Sequential_probability_ratio_test\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdyedgreen%2Funcertain","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdyedgreen%2Funcertain","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdyedgreen%2Funcertain/lists"}