Cannot import the RepositoryMining class #258
Replies: 1 comment
-
the class is now called Repository: https://pydriller.readthedocs.io/en/latest/ |
Beta Was this translation helpful? Give feedback.
0 replies
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
-
I am trying to write a script for mining repository commits, but I have a serious problem my script does not import the RepositoryMining class from PyDriller.
from pydriller import RepositoryMining
for commit in RepositoryMining(args.url, only_modifications_with_file_types=['.java'], only_branch='master').traverse_commits():
# Check if the commit was made before or on 2022-12-31
if commit.committer_date.date() <= datetime(2022, 12, 31).date():
# Your code here to process the commit as needed
print(f'Commit hash: {commit.hash}')
print(f'Commit message: {commit.msg}')
print(f'Commit date: {commit.committer_date}')
Error : Cannot find reference 'RepositoryMining' in 'init.py'
** I have installed pydriller and my python version is 3.10 and I am working in Pycharm IDE
Beta Was this translation helpful? Give feedback.
All reactions