<commit_before>help:
	@echo '                                                                                             '
	@echo 'Makefile for edx-ecommerce                                                                   '
	@echo '                                                                                             '
	@echo 'Usage:                                                                                       '
	@echo '    make dev_requirements                     install requirements for local development     '
	@echo '    make test_requirements                    install test requirements                      '
	@echo '    make migrate                              apply migrations                               '
	@echo '    make serve                                start the dev server at localhost:8002         '
	@echo '    make clean                                delete generated byte code and coverage reports'
	@echo '    make test_python                          run unit tests with migrations disabled        '
	@echo '    make html_coverage                        generate and view HTML coverage report         '
	@echo '    make quality                              run pep8 and pylint                            '
	@echo '    make validate                             run unit tests, followed by quality checks     '
	@echo '    make accept                               run acceptance tests                           '
	@echo '                                                                                             '

dev_requirements: test_requirements
	pip install -qr requirements/local.txt --exists-action w

test_requirements:
	pip install -qr requirements/test.txt --exists-action w

migrate:
	python manage.py migrate

serve:
	python manage.py runserver 8002

clean:
	find . -name '*.pyc' -delete
	coverage erase

# Define a target-specific variable to be exported into the environment of
# processes invoked by this target.
test_python: export DISABLE_MIGRATIONS=True
test_python: clean
	python manage.py test ecommerce --settings=ecommerce.settings.test --with-coverage --cover-package=ecommerce

html_coverage:
	coverage html && open htmlcov/index.html

quality:
	pep8 --config=.pep8 ecommerce acceptance_tests
	pylint --rcfile=pylintrc ecommerce acceptance_tests

validate: test_python quality

accept:
	nosetests --with-ignore-docstrings -v acceptance_tests

# Targets in a Makefile which do not produce an output file with the same name as the target name
.PHONY: help requirements test_requirements migrate serve clean test_python html_coverage \
	quality validate accept
<commit_msg>consolidate local requirements target in Makefile<commit_after>help:
	@echo '                                                                                             '
	@echo 'Makefile for edx-ecommerce                                                                   '
	@echo '                                                                                             '
	@echo 'Usage:                                                                                       '
	@echo '    make requirements                 install requirements for local development and testing '
	@echo '    make test_requirements            install test requirements                              '
	@echo '    make migrate                      apply migrations                                       '
	@echo '    make serve                        start the dev server at localhost:8002                 '
	@echo '    make clean                        delete generated byte code and coverage reports        '
	@echo '    make test_python                  run unit tests with migrations disabled                '
	@echo '    make html_coverage                generate and view HTML coverage report                 '
	@echo '    make quality                      run pep8 and pylint                                    '
	@echo '    make validate                     run unit tests, followed by quality checks             '
	@echo '    make accept                       run acceptance tests                                   '
	@echo '                                                                                             '

requirements: test_requirements
	pip install -qr requirements/local.txt --exists-action w

test_requirements:
	pip install -qr requirements/test.txt --exists-action w

migrate:
	python manage.py migrate

serve:
	python manage.py runserver 8002

clean:
	find . -name '*.pyc' -delete
	coverage erase

# Define a target-specific variable to be exported into the environment of
# processes invoked by this target.
test_python: export DISABLE_MIGRATIONS=True
test_python: clean
	python manage.py test ecommerce --settings=ecommerce.settings.test --with-coverage --cover-package=ecommerce

html_coverage:
	coverage html && open htmlcov/index.html

quality:
	pep8 --config=.pep8 ecommerce acceptance_tests
	pylint --rcfile=pylintrc ecommerce acceptance_tests

validate: test_python quality

accept:
	nosetests --with-ignore-docstrings -v acceptance_tests

# Targets in a Makefile which do not produce an output file with the same name as the target name
.PHONY: help requirements test_requirements migrate serve clean test_python html_coverage \
	quality validate accept

{'fraction_non_alphanumeric': 0.046188509200150205, 'fraction_numerical': 0.004130679684566279, 'mean_word_length': 1.2648809523809523, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 40, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4237838', 'n_tokens_mistral': 1150, 'n_tokens_neox': 1103, 'n_words': 409}