<commit_before>all: bin/django

help:
	@echo 'make ubuntu     install the necessary system packages (requires sudo)'
	@echo 'make            set up the development environment'
	@echo 'make run        start the web server'
	@echo 'make tags       build ctags file'
	@echo 'make clean      clean whole environment'
	@echo 'make cleanpyc   clean all *.pyc files'

ubuntu:
	sudo apt-get update
	sudo apt-get -y build-dep python-psycopg2
	sudo apt-get -y install build-essential python-dev exuberant-ctags

run: bin/django ; bin/django runserver

tags: bin/django ; bin/ctags -v --tag-relative


buildout.cfg: ; ./scripts/genconfig.py config/env/development.cfg

bin/pip:
	virtualenv --no-site-packages --python=python3.5 .
	bin/pip install --upgrade pip==8.1.1 pip-tools==1.6.5 wheel==0.29.0

bin/buildout: bin/pip requirements.txt ; bin/pip install -e . -r requirements.txt && touch -c bin/buildout

var/www/static var/www/media: ; mkdir -p $@

bin/django: \
  bin/buildout \
  buildout.cfg \
  $(wildcard config/*.cfg) \
  $(wildcard config/env/*.cfg) \
  var/www/static \
  var/www/media
	bin/buildout && touch -c bin/django

test: ; bin/py.test -vvra --tb=native --flake8 --doctest-modules --cov seimas --cov-report term-missing seimas<commit_msg>Python imaging is required in order to install Pillow<commit_after>all: bin/django

help:
	@echo 'make ubuntu     install the necessary system packages (requires sudo)'
	@echo 'make            set up the development environment'
	@echo 'make run        start the web server'
	@echo 'make tags       build ctags file'
	@echo 'make clean      clean whole environment'
	@echo 'make cleanpyc   clean all *.pyc files'

ubuntu:
	sudo apt-get update
	sudo apt-get -y build-dep python-psycopg2 python-imaging
	sudo apt-get -y install build-essential python-dev exuberant-ctags

run: bin/django ; bin/django runserver

tags: bin/django ; bin/ctags -v --tag-relative


buildout.cfg: ; ./scripts/genconfig.py config/env/development.cfg

bin/pip:
	virtualenv --no-site-packages --python=python3.5 .
	bin/pip install --upgrade pip==8.1.1 pip-tools==1.6.5 wheel==0.29.0

bin/buildout: bin/pip requirements.txt ; bin/pip install -e . -r requirements.txt && touch -c bin/buildout

var/www/static var/www/media: ; mkdir -p $@

bin/django: \
  bin/buildout \
  buildout.cfg \
  $(wildcard config/*.cfg) \
  $(wildcard config/env/*.cfg) \
  var/www/static \
  var/www/media
	bin/buildout && touch -c bin/django

test: ; bin/py.test -vvra --tb=native --flake8 --doctest-modules --cov seimas --cov-report term-missing seimas
{'fraction_non_alphanumeric': 0.12740101920815367, 'fraction_numerical': 0.01097608780870247, 'mean_word_length': 3.0701754385964914, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 8, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4237921', 'n_tokens_mistral': 915, 'n_tokens_neox': 862, 'n_words': 254}