Code Monkey home page Code Monkey logo

github-api-test's Introduction

Requirements

Usage

To use this program, follow these steps:

  • Clone or download the repository to your local machine.
  • Install the required libraries by running pip install -r requirements.txt.
  • Replace the REPO_OWNER, REPO_NAME and AUTH_HEADER variables in the script with the appropriate values for the repository you want to monitor and your GitHub Personal Access Token.
  • Run the script using the command python main.py.
  • The program will retrieve data from the GitHub API, monitor the number of commits made in the past week, and generate different visualizations

Visualizations

The program generates 4 visualizations to provide insights into the activity of the community of contributors:

  • This functions plot_contributors_data will display a scatter plot that shows the correlation between the total number of contributors and the number of contributions from each contributor. If the points on the graph are clustered along a diagonal line, it suggests a positive correlation between the two variables, indicating that the number of contributions is indeed correlated with the total number of contributors.
  • This function plot_contributions_histogram(contributors_data) is used to plot a histogram of the contributions to the repository by each contributor. The x-axis represents the number of contributions, while the y-axis represents the number of contributors who have made that number of contributions. The histogram allows visualizing the distribution of contributions by contributors. By observing the shape of the histogram, it is possible to determine whether the majority of contributions come from a small group of very active contributors or if the contributions are more evenly distributed among different contributors. This information can help better understand the dynamics of the contributor community and identify the most active contributors.
  • This function plot_contributions_by_contributor(contributors_data) will display a pie chart that shows the distribution of contributions among the different contributors. If the chart shows that a small number of contributors make the majority of contributions, it could indicate that the project is dominated by a small group of individuals, which could have implications for the long-term sustainability of the project.
  • This function plot_contributions_over_time will display a bar chart showing the total number of contributions per week over time. If the chart shows spikes in activity, it could indicate periods of particular interest for the project or periods of intensive work.

github-api-test's People

Contributors

onshosni avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.