Coder Social home page Coder Social logo

christianbirchler / reactant Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 162 KB

An application to visualize the most common words used in function and method names of Java and Python repositories on GitHub.

License: GNU General Public License v3.0

Python 94.43% Dockerfile 5.57%

reactant's Introduction

reactant

This application is meant to collect all words in function and method names of Python and Java repositories on GitHub. For this reason I came up with the name reactant:

populaR mEthod And funCTion nAmes oN giThub

Environment Variable

To have fewer restrictions to access the GitHub API, you should generate an access token. You find in the Documentation the instructions to generate such a token.

The token is defacto your credentials to your GitHub account and should not be exposed to others. To mitigate this issue, you should store the token in an environment variable:

export GH_TOKEN=<your token>

Run reactant with Docker Compose

First, simply clone the repository:

git clone https://github.com/ChristianBirchler/reactant.git
cd reactant

If you use docker on a Mac, then docker compose is already installed and you can run the application with the following command:

docker compose build
docker compose up -d

In case you do not use a Mac, then you can install docker-compose with pip. The command looks slightly different:

docker-compose build
docker-compose up -d

The -d is optional but it will deamonize the containers but if you want to have the output of the containers in your terminal then you can leave this option flag out.

Go to your web browser on localhost:8050 to see reactant visualizing in a parameterized bar chart the top words.

Run reactant locally

In case you want to run the application locally it is worth to use a virtual environment. For managing virtual environments and dependencies in Python I use Poetry. You should go to the website and install it.

Install Dependendcies

git clone https://github.com/ChristianBirchler/reactant.git

cd reactant/miner
poetry install

cd ../visualizer
poetry install

Run reactant

cd visualizer
poetry run python src/visualizer/main.py
cd miner
poetry run python src/miner/main.py

Go to your web browser on localhost:8050 to see reactant visualizing in a parameterized bar chart the top words.

reactant's People

Contributors

christianbirchler 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.