目录
目录README.md

Bot_Detection

Installation

pip install git+https://github.com/mehdigolzadeh/BoDeGHa

Usage

–accounts [ACCOUNT [ACCOUNT …]] User login of one or more accounts

Example: $ bodegha repo_owner/repo_name --accounts mehdigolzadeh alexandredecan tommens --key

By default all accounts in the repository will be analysed

–start-date START_DATE Start date of pull request and issue comments in the repository to be considered

Example: $ bodegha repo_owner/repo_name --start-date 01-01-2018 --key

_The default start-date is 6 months before the current date.

–verbose To have verbose output result

Example: $ bodegha repo_owner/repo_name --verbose --key

The default value is false, if you don’t pass this parameter the output will only be the accounts and their type

–min-comments MIN_COMMENTS Minimum number of pull request and issue comments that are required to analyze an account

Example: $ bodegha repo_owner/repo_name --min-comments 20 --key

The default value is 10 comments (the reason explained earlier in this file)

–max-comments MAX_COMMENTS Maximum number of pull request and issue comments to be considered for each account (default=100)

Example: $ bodegha repo_owner/repo_name --max-comments 120 --key

The default value is 100 comments (the reason explained earlier in this file)

–key APIKEY GitHub personal access token required to download comments from GitHub GraphQL API This parameter is mandatory and you can obtain an access token as described earlier

–text Output results as plain text –csv Output results in comma-separated values (csv) format –json Output results in json format

Example: $ bodegha repo_owner/repo_name --json --key

This group of parameters is the type of output, e.g., if you pass –json you will get the result in JSON format

–exclude [ACCOUNT [ACCOUNT …]] List of accounts to be excluded from the analysis

Example: $ bodegha repo_owner/repo_name --exclude mehdigolzadeh alexandredecan tommens --key

–only-predicted Only list accounts that the prediction is available

Example: $ bodegha repo_owner/repo_name --only-predicted
关于
318.0 KB
邀请码
    Gitlink(确实开源)
  • 加入我们
  • 官网邮箱:gitlink@ccf.org.cn
  • QQ群
  • QQ群
  • 公众号
  • 公众号

©Copyright 2023 CCF 开源发展委员会
Powered by Trustie& IntelliDE 京ICP备13000930号