<commit_before>
.PHONY: test
test:
	DJANGO_SETTINGS_MODULE=tests.settings \
	django-admin.py test core articles boxes channels images sources sitemaps flatpages

.PHONY: travis
travis:
	pip install -r requirements.txt --use-mirrors
	export OPPS_TRAVIS=True
	python setup.py develop 

.PHONY: install
install:
	pip install -r requirements.txt --use-mirrors
	python setup.py develop 

.PHONY: pep8
pep8:
	@flake8 opps --ignore=F403 --exclude=migrations

.PHONY: sdist
sdist: test
	@python setup.py sdist upload

.PHONY: clean
clean:
	@find ./ -name '*.pyc' -exec rm -f {} \;
	@find ./ -name 'Thumbs.db' -exec rm -f {} \;
	@find ./ -name '*~' -exec rm -f {} \;

.PHONY: tx
tx:
	for resource in articles boxes channels core flatpages images search sitemaps sources; do\
		tx set --auto-local -r opps.$$resource "opps/$$resource/locale/<lang>/LC_MESSAGES/django.po" --source-language=en_US --source-file "opps/$$resource/locale/en_US/LC_MESSAGES/django.po" --execute;\
	done

.PHONY: txpush
txpush:
	tx push --source --translations

.PHONY: txpull
txpull:
	tx pull -a
<commit_msg>Add makemessages on make file<commit_after>
.PHONY: test
test:
	DJANGO_SETTINGS_MODULE=tests.settings \
	django-admin.py test core articles boxes channels images sources sitemaps flatpages

.PHONY: travis
travis:
	pip install -r requirements.txt --use-mirrors
	export OPPS_TRAVIS=True
	python setup.py develop 

.PHONY: install
install:
	pip install -r requirements.txt --use-mirrors
	python setup.py develop 

.PHONY: pep8
pep8:
	@flake8 opps --ignore=F403 --exclude=migrations

.PHONY: sdist
sdist: test
	@python setup.py sdist upload

.PHONY: clean
clean:
	@find ./ -name '*.pyc' -exec rm -f {} \;
	@find ./ -name 'Thumbs.db' -exec rm -f {} \;
	@find ./ -name '*~' -exec rm -f {} \;

.PHONY: makemessages
makemessages:
	for resource in articles boxes channels core flatpages images search sitemaps sources; do\
	    echo "make $$resource";\
	    cd opps/$$resource;\
		django-admin.py makemessages -l en_US;\
		cd ../../;\
	done


.PHONY: tx
tx:
	for resource in articles boxes channels core flatpages images search sitemaps sources; do\
		tx set --auto-local -r opps.$$resource "opps/$$resource/locale/<lang>/LC_MESSAGES/django.po" --source-language=en_US --source-file "opps/$$resource/locale/en_US/LC_MESSAGES/django.po" --execute;\
	done

.PHONY: txpush
txpush:
	tx push --source --translations

.PHONY: txpull
txpull:
	tx pull -a

{'fraction_non_alphanumeric': 0.13220058019063408, 'fraction_numerical': 0.004973062577704103, 'mean_word_length': 3.4953445065176907, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '2778139', 'n_tokens_mistral': 922, 'n_tokens_neox': 891, 'n_words': 259}