🎉 We were 3rd place! Check out the official challenge results here 🎉
- Make sure that you've installed Python 2.7
- Install xgboost manually
- Create a virtual environment and install all dependencies
virtualenv -p /usr/bin/python2.7 venv
source venv/bin/activate`
pip install -r requirements.txt
- Download the NLTK corpus
python -m nltk.downloader all
- Create a personal access token, grant "Full control of private repositories" (repo) and put it in your config.ini file
cp example.config.ini config.ini
- Accept the Github Pre-release Program agreement so your access token can also use GitHubs GraphQL API
- Psycopg2 needs postgresql-devel
apt-get install -y libpq-dev
- Sklearn needs Tkinter
apt-get install python-tk
- Migrate the database
python server/manage.py migrate
- Run the server (per default on port 8000)
python server/start_server.py
- You can access the application now on localhost:8000
- Install Docker
- Build the docker image
docker build -t git_better .
- Create a container from the image and run it in the background
docker run -d -p 8000:8000 git_better
- You can access the application now on localhost:8000
To predict repository labels based on your own training data or based on pre-trained models, follow the instructions of our main script:
python app/main.py --help
As an example, to classify the input data from the challenge repository using our pre-trained models, run
python app/main.py -i data/example-input.txt
To visualize the data with the TensorBoard Embedding Projector, run python app/embedding_visualization.py
and start tensorboard with tensorboard --logdir log/
. Tensorboard will display the port on which the server listens, open localhost:[port]
with your browser (standard port is 6006).
To test whether the app works correctly, simply run python -m unittest discover
- Install the Heroku Container Registry and Runtime and log in
- Build the Docker image, tag it, push it to Heroku and open the website
docker build -t git_better .
docker tag git_better registry.heroku.com/git-better/web
docker push registry.heroku.com/git-better/web
heroku open