Skip to main content

No project description provided

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dffml_feature_git-0.3.0.tar.gz (10.5 kB view details)

Uploaded Source

Built Distribution

dffml_feature_git-0.3.0-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

Details for the file dffml_feature_git-0.3.0.tar.gz.

File metadata

  • Download URL: dffml_feature_git-0.3.0.tar.gz
  • Upload date:
  • Size: 10.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.8.7

File hashes

Hashes for dffml_feature_git-0.3.0.tar.gz
Algorithm Hash digest
SHA256 0a86bf7da7fa466b3fc762e0b5965ec6a8dd5370e927aa19c186f25cdf242d3b
MD5 e37b89845b2edea1596c757e734d8cf3
BLAKE2b-256 448656b91ec8ca914cc76f521c494a904bb9c6a1f9415e30e95331124b7d46f8

See more details on using hashes here.

File details

Details for the file dffml_feature_git-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: dffml_feature_git-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 11.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.8.7

File hashes

Hashes for dffml_feature_git-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ab45ef0361c53c7101a362e7e9a3755edb6730ff6d0d233fed6032533c00a4f8
MD5 1d807bd6e7a574f926d3300e30faa962
BLAKE2b-256 685f87f3ac8ff1a4b4b29412e7c5ab3f1e7cb8f78c6ae07be579289bc752399b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page