Go to file
zhangxunhui 2a92b9ac35 change thread num 2021-12-10 09:52:07 -05:00
.gitignore update the program 2021-12-06 23:54:51 +08:00
LICENSE.txt ADD file via upload 2021-12-06 19:58:15 +08:00
MANIFEST.in ADD file via upload 2021-12-06 19:58:25 +08:00
README.md Update README.md 2021-12-06 20:23:34 +08:00
bodegha.py change thread num 2021-12-10 09:52:07 -05:00
github-tokens-example.txt update .gitignore 2021-12-06 21:41:02 +08:00
model.json model.json has mistakes, replace with the original model 2021-12-06 23:53:01 +08:00
process_bodegha.py change start-date for process file 2021-12-10 09:51:59 -05:00
repo-list-handled.txt update handled list 2021-12-10 09:51:17 -05:00
repo-list.txt update repo data,add progressbar 2021-12-09 15:34:49 +08:00
requirement.txt ADD file via upload 2021-12-06 19:58:42 +08:00
setup.cfg ADD file via upload 2021-12-06 19:58:50 +08:00
setup.py ADD file via upload 2021-12-06 19:58:57 +08:00

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