ricardobaeta / code-annotation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Source Code Annotation application

In order to evaluate quality of ML models, as well as to create “ImageNet for source core” there is a need for tools to automate the data collection/labeling/annotation.

Installation

Github OAuth tokens

First you need OAuth application on github. Read how to create it.

On a page with your application you will need Client ID and Client Secret

Copy .env.tpl to .env and set tokens there.

Docker

docker build -t srcd/code-annotation .
docker run --env-file .env --rm -p 8080:8080 srcd/code-annotation

Non-docker

go get github.com/src-d/code-annotation/...
cd $GOPATH/github.com/src-d/code-annotation
make serve

Development

Backend:

make gorun

Frontend:

If you want to benifit from frontend hot reloading feature this line in your .env file:

UI_DOMAIN=http://127.0.0.1:3000

And then restart server.

To run frontend in dev mode:

yarn
yarn start

Contributing

Please take a look at CONTRIBUTING file to see how to contribute in this project, get more information about the dashboard architecture and how to launch it for development purposes.

License

GPLv3, see LICENSE

About

License:GNU General Public License v3.0


Languages

Language:JavaScript 58.3%Language:Go 34.3%Language:CSS 4.4%Language:HTML 1.8%Language:Makefile 1.1%Language:Smarty 0.1%