Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug commit analysis #8

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Bug commit analysis #8

wants to merge 4 commits into from

Conversation

acharyadarshan
Copy link
Collaborator

improvements to the CLI usability and overall code maintenance. The key changes include the integration of the Fire library for parsing CLI inputs and formatting outputs, alongside the removal of the format.py script.

src/plot.py Outdated

plt.figure(figsize=(10, 8))
sns.barplot(x='CommitCount', y='RepoName', data=top_20_by_commit_count, palette='viridis')
plt.title('Top 20 Repositories by Commit Count')
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't put titles on plots, it is the job of the caption

src/plot.py Outdated

def generate_charts(df_path, bug_chart_path, commit_chart_path):
df = pd.read_csv(df_path)
top_20_by_bug_count = df.nlargest(20, 'BugCount')
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you make histograms of all instead of only top 20?

src/plot.py Outdated
plt.xlabel('Commit Count')
plt.ylabel('Repository')
plt.tight_layout()
plt.savefig(commit_chart_path)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please save to PDF format as they are vector graphic files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants