{"id":31216619,"url":"https://github.com/moeyensj/difi","last_synced_at":"2025-09-21T12:41:30.274Z","repository":{"id":51383650,"uuid":"152989392","full_name":"moeyensj/difi","owner":"moeyensj","description":"Did I Find It? ","archived":false,"fork":false,"pushed_at":"2024-10-29T21:53:13.000Z","size":7549,"stargazers_count":4,"open_issues_count":5,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-19T00:04:12.623Z","etag":null,"topics":["asteroids","docker","linkage","minor-planets","python","small-body","solar-system"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/moeyensj.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-10-14T15:34:24.000Z","updated_at":"2025-07-01T02:33:49.000Z","dependencies_parsed_at":"2024-10-29T22:42:28.447Z","dependency_job_id":null,"html_url":"https://github.com/moeyensj/difi","commit_stats":{"total_commits":120,"total_committers":2,"mean_commits":60.0,"dds":"0.15833333333333333","last_synced_commit":"4108ee93f35030174eb456b9e5a8a2e9cbbd04a0"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/moeyensj/difi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moeyensj%2Fdifi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moeyensj%2Fdifi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moeyensj%2Fdifi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moeyensj%2Fdifi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/moeyensj","download_url":"https://codeload.github.com/moeyensj/difi/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moeyensj%2Fdifi/sbom","scorecard":{"id":656335,"data":{"date":"2025-08-11","repo":{"name":"github.com/moeyensj/difi","commit":"1252b17f06cf21d4f8ba8450f09b14077071595c"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.8,"checks":[{"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":"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":"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":"Code-Review","score":0,"reason":"Found 0/7 approved changesets -- score normalized to 0","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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/conda-build-lint-test.yml:1","Warn: no topLevel permission defined: .github/workflows/docker-build-lint-test.yml:1","Warn: no topLevel permission defined: .github/workflows/pip-build-lint-test-coverage.yml:1","Warn: no topLevel permission defined: .github/workflows/pip-publish.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":"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":"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":"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.md:0","Info: FSF or OSI recognized license: BSD 3-Clause \"New\" or \"Revised\" License: LICENSE.md: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":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"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":"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/conda-build-lint-test.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/moeyensj/difi/conda-build-lint-test.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/conda-build-lint-test.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/moeyensj/difi/conda-build-lint-test.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/docker-build-lint-test.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/moeyensj/difi/docker-build-lint-test.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/docker-build-lint-test.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/moeyensj/difi/docker-build-lint-test.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pip-build-lint-test-coverage.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/moeyensj/difi/pip-build-lint-test-coverage.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pip-build-lint-test-coverage.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/moeyensj/difi/pip-build-lint-test-coverage.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pip-build-lint-test-coverage.yml:40: update your workflow using https://app.stepsecurity.io/secureworkflow/moeyensj/difi/pip-build-lint-test-coverage.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pip-publish.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/moeyensj/difi/pip-publish.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pip-publish.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/moeyensj/difi/pip-publish.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pip-publish.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/moeyensj/difi/pip-publish.yml/main?enable=pin","Warn: containerImage not pinned by hash: Dockerfile:1: pin your Docker image by updating python:3.11 to python:3.11@sha256:0dab67c838514eef83e6c9d2c0e53e960fc94237635e8996d08caeec98937abc","Warn: pipCommand not pinned by hash: Dockerfile:16","Warn: pipCommand not pinned by hash: .github/workflows/pip-publish.yml:23","Info:   0 out of   6 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   4 third-party GitHubAction dependencies pinned","Info:   0 out of   1 containerImage dependencies pinned","Info:   0 out of   2 pipCommand 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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 30 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-21T14:44:32.330Z","repository_id":51383650,"created_at":"2025-08-21T14:44:32.330Z","updated_at":"2025-08-21T14:44:32.330Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276183668,"owners_count":25599223,"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-09-20T02:00:10.207Z","response_time":63,"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":["asteroids","docker","linkage","minor-planets","python","small-body","solar-system"],"created_at":"2025-09-21T12:41:24.727Z","updated_at":"2025-09-21T12:41:25.435Z","avatar_url":"https://github.com/moeyensj.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# difi\nDid I Find It?  \n\n[![Python 3.8+](https://img.shields.io/badge/Python-3.8%2B-blue)](https://img.shields.io/badge/Python-3.8%2B-blue)\n[![License](https://img.shields.io/badge/License-BSD%203--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause)\n[![DOI](https://zenodo.org/badge/152989392.svg)](https://zenodo.org/badge/latestdoi/152989392)  \n[![docker - Build, Lint, and Test](https://github.com/moeyensj/difi/actions/workflows/docker-build-lint-test.yml/badge.svg)](https://github.com/moeyensj/difi/actions/workflows/docker-build-lint-test.yml)\n[![conda - Build, Lint, and Test](https://github.com/moeyensj/difi/actions/workflows/conda-build-lint-test.yml/badge.svg)](https://github.com/moeyensj/difi/actions/workflows/conda-build-lint-test.yml)\n[![pip - Build, Lint, Test, and Coverage](https://github.com/moeyensj/difi/actions/workflows/pip-build-lint-test-coverage.yml/badge.svg)](https://github.com/moeyensj/difi/actions/workflows/pip-build-lint-test-coverage.yml)  \n[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit)](https://github.com/pre-commit/pre-commit)\n[![Coverage Status](https://coveralls.io/repos/github/moeyensj/difi/badge.svg?branch=main)](https://coveralls.io/github/moeyensj/difi?branch=main)\n[![Docker Pulls](https://img.shields.io/docker/pulls/moeyensj/difi)](https://hub.docker.com/r/moeyensj/difi)  \n[![Anaconda-Server Badge](https://anaconda.org/moeyensj/difi/badges/version.svg)](https://anaconda.org/moeyensj/difi)\n[![Anaconda-Server Badge](https://anaconda.org/moeyensj/difi/badges/platforms.svg)](https://anaconda.org/moeyensj/difi)\n[![Anaconda-Server Badge](https://anaconda.org/moeyensj/difi/badges/downloads.svg)](https://anaconda.org/moeyensj/difi)\n\n## About\n`difi` is a simple package that takes pre-formatted linkage information from software such as [MOPS](https://github.com/lsst/mops_daymops), [pytrax](https://github.com/pytrax/pytrax), or [THOR](https://github.com/moeyensj/thor) and analyzes which objects have been found given a set of known labels (or truths). A key performance criteria is that `difi` needs to be fast by avoiding Python for loops and instead uses clever `pandas.DataFrame` manipulation.\n\n## Installation\n\n### Released Versions\n\n#### Anaconda\n`difi` can be downloaded directly from anaconda:  \n```conda install -c moeyensj difi```\n\nOr, if preferred, installed into its own environment via:  \n```conda create -n difi_py310 -c moeyensj difi python=3.10```\n\n#### Pip\n`difi` is also available from the Python package index:  \n```pip install difi```\n\n#### Docker\n\nA Docker container with the latest version of the code can be pulled using:  \n```docker pull moeyensj/difi:latest```\n\nTo run the container:  \n```docker run -it moeyensj/difi:latest```\n\nThe difi code is installed the /projects directory, and is by default also installed in the container's Python installation.\n\n### Latest From Source\n\n#### Anaconda\nClone this repository using either `ssh` or `https`. Once cloned and downloaded, `cd` into the repository.\n\nTo install difi in its own `conda` environment please do the following:  \n```conda create -n difi_py310 -c defaults -c conda-forge --file requirements.txt python=3.10```  \n\nOr, to install difi in a pre-existing `conda` environment called `difi_py310`:  \n```conda activate difi_py310```  \n```conda install -c defaults -c conda-forge --file requirements.txt```  \n\n#### Pip\n\nOr, to install `difi` software using `pip`:  \n```pip install .```\n\nOr, if you would like to make an editable install then:  \n```pip install -e .[tests]```\n\nYou should now be able to start Python and import difi.\n\n#### Docker Compose\n\nAfter cloning this repository, you can build a docker image that will allow you to develop the source code:\n\n```docker compose build difi```\n\nTo run the docker container interatively with a terminal:\n\n```docker compose run -it difi```\n\n### Developing\n\nIf you would like to contribute to `difi`, please make sure to initialize `pre-commit`. Pre-commit will automatically lint and format\nthe source code after any changes have been staged for a commit. To load the appropriate hooks please run:\n\n```pre-commit install```\n\n## Example and Tutorial\n\nThe example below can be found in greater detail in this [Jupyter Notebook](https://github.com/moeyensj/difi/tree/main/examples/tutorial.ipynb).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoeyensj%2Fdifi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoeyensj%2Fdifi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoeyensj%2Fdifi/lists"}