Skip to main content

DFFML Features For Git Version Control

Git features scrape data from Git repositories.

Demo

Demo

Usage

Scrape lines of comments to lines of code ratio, diversity of authorship, number of commits, number of authors, and frequency of release data for a given Git repo.

export OPIMPS="group_by quarters_back_to_date check_if_valid_git_repository_URL clone_git_repo git_repo_default_branch git_repo_checkout git_repo_commit_from_date git_repo_author_lines_for_dates work git_repo_release lines_of_code_by_language lines_of_code_to_comments git_commits count_authors cleanup_git_repo"
dffml operations repo \
  -log debug \
  -keys https://github.com/intel/dffml \
  -repo-def URL \
  -remap \
    group_by.cloc=cloc \
    group_by.release=release \
    group_by.work=work \
    group_by.commits=commits \
    group_by.authors=authors \
    group_by.relase=release \
  -dff-memory-operation-network-ops $OPIMPS \
  -dff-memory-opimp-network-opimps $OPIMPS \
  -inputs \
    {0,1,2,3,4,5,6,7,8,9}=quarter \
    "'2019-03-29 13:24'=quarter_start_date" \
    True=no_git_branch_given \
  -output-specs '{
      "cloc": {
        "group": "quarter",
        "by": "language_to_comment_ratio",
        "fill": 0
      },
      "authors": {
        "group": "quarter",
        "by": "author_count",
        "fill": 0
      },
      "work": {
        "group": "quarter",
        "by": "work_spread",
        "fill": 0
      },
      "release": {
        "group": "quarter",
        "by": "release_within_period",
        "fill": False
      },
      "commits": {
        "group": "quarter",
        "by": "commit_count",
        "fill": 0
      }
    }=group_by_spec'

TODO

  • Transforms
    • Take data of one defintion and label it as another definition.
{
  "defintions": {},
  "operations": {},
  "transforms": {
    "quarter_date_to_git_date": {
      "quarter_date": ["git_date"]
    },
    "thing_to_other_data_types": {
      "thing": ["first_data_type", "second_data_type"]
    },
  },
}

License

DFFML DFFML Features For Git Version Control are distributed under the MIT License.

Metadata

Release files for dffml-feature-git 0.3.0.post0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dffml-feature-git 0.3.0.post0
File Size Uploaded Provenance Actions
dffml_feature_git-0.3.0.post0.tar.gz 8.9 kB Without provenance Details for dffml_feature_git-0.3.0.post0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dffml-feature-git 0.3.0.post0
File Interpreter ABI Platform Actions
dffml_feature_git-0.3.0.post0-py3-none-any.whl Python 3 none any Details for dffml_feature_git-0.3.0.post0-py3-none-any.whl

Total release size: 20.3 kB

Release files / dffml_feature_git-0.3.0.post0.tar.gz

Download URL dffml_feature_git-0.3.0.post0.tar.gz
Size 8.9 kB
Tags Source
SHA-256 checksum
How to use checksums
e1991683fe053d4caf3ee82a4fc764ee190db80ccc019038191d94dd9d23f5f3
BLAKE2b-256 checksum
How to use checksums
f3d67a924dad029609d41f139c9f25100d37223e0c5475c0502aabcdfb91b330
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.7.10

Release files / dffml_feature_git-0.3.0.post0-py3-none-any.whl

Download URL dffml_feature_git-0.3.0.post0-py3-none-any.whl
Size 11.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8473f37a8488406e45c9d8578b3a6d372756d44703e5cfad0a3894208ca44073
BLAKE2b-256 checksum
How to use checksums
ad47a534a7378402c31f12ef389ff3c03f300f5d3e2867b6a8c385049e75ca00
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.7.10

Security for dffml-feature-git 0.3.0.post0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page