The GitHub Repository Analyzer is an automated repository analyzer tool that allows you to analyze the technical complexity of GitHub user repositories using OpenAI's GPT language model. It fetches a user's repositories from their GitHub user URL, preprocesses the code, and applies prompt engineering to determine the complexity of the code. The tool identifies the most technically complex repository and provides a GPT-generated justification for the selection.
- Fetches a user's repositories from their GitHub user URL.
- Preprocesses code to manage memory and handle large files.
- Applies prompt engineering for code complexity evaluation.
- Identifies the most complex repository and provides a GPT-generated justification.
- Simple and user-friendly web interface.
- Deployed on a hosting platform for easy access.
As of now, you can use this in Google Colab or in your local system.
- Open the Github_Automated_Analysis.ipynb in Google Colab.
- Run the cells in the notebook .
- Input the particulars and the results will be displayed.
- Download the app.py, index.html, result.html, styles.css files.
- Make a folder named templates and keep index.html and result.html in it.
- Make a folder named static and keep styles.css file in it.
- Make a new folder and keep app.py , templates folder and static folder inside it.
- Open cmd terminal.
- Run the following command: pip install flask
- After installation is done, Enter the following command: cd "path to the folder"
- Then Run the tool by enetring flask run
- The terminal will show the website url.
- Copy the url and paste it in a browser and acces the tool.
This is a very basic tool and still under development. Feel free to contribute.
The GitHub Repository Analyzer tool can be deployed on a hosting platform such as Vercel, Netlify, or GitHub Pages. To deploy it on GitHub Pages:
- Fork this repository to your GitHub account.
- Ensure you have an
index.htmlfile containing the HTML structure and JavaScript functions for the user interface. - Update the necessary API endpoints or configuration variables in the JavaScript code to match your deployment setup.
- Push the changes to your forked repository.
- Go to the repository's settings on GitHub.
- Scroll down to the "GitHub Pages" section.
- Select the branch you want to use for GitHub Pages (e.g.,
mainormaster). - Optionally, choose a custom domain or leave it as the default GitHub Pages URL.
- Click "Save" to deploy the tool.
- Visit the deployed website of the GitHub Repository Analyzer using the provided GitHub Pages URL.
This project is licensed under the MIT License. See the LICENSE file for more details.
Feel free to contribute and improve this tool by submitting issues or pull requests.