<commit_before>MAJORMINOR := 1.2.0

SRCMAIN_FILES := $(shell find src/main -name "*.py")
NAME := $(shell grep name src/main/setup.py | cut -d "'" -f 2)
DISTFILE := dist/$(NAME)-$(MAJORMINOR).tar.gz
WHEEL_FILE := dist/rdflib_appengine-$(MAJORMINOR)-py2-none-any.whl
GAEDIR := build/rdflib-appengine-$(MAJORMINOR)

.PHONY: runlocal
runlocal: .gaebuild.made .tests.made
	dev_appserver.py $(GAEDIR) --port=3030 --log_level debug

.PHONY: gaebuild
gaebuild: .gaebuild.made

.PHONY: all
all: ide runlocal

.PHONY: test
test: .tests.made

.tests.made: src/test/testrunner.py src/test/suite/*.py .gaebuild.made
	src/test/testrunner.py $(shell dirname $(shell readlink $(shell which dev_appserver.py))) ./src/test/ $(GAEDIR) #TODO: This is not very portable
	touch .tests.made

.gaebuild.made: .gaebuild.example.made .gaebuild.srcmain.made
	touch .gaebuild.made

.gaebuild.srcmain.made: .gaedir.made $(DISTFILE)
	pip install -t $(GAEDIR) $(DISTFILE)
	touch .gaebuild.srcmain.made

.gaebuild.example.made: src/example/* .gaedir.made
	cp -r src/example/*.yaml $(GAEDIR)/
	cp -r src/example/*.py $(GAEDIR)/
	touch .gaebuild.example.made

.gaedir.made:
	mkdir -p $(GAEDIR)
	touch .gaedir.made

.PHONY: ide
ide: .pip.for.ide.made

.PHONY: dist
dist: $(DISTFILE)

$(DISTFILE): $(SRCMAIN_FILES)
	mkdir -p dist
	mkdir -p bdistbuild
	(cd src/main/ && ./setup.py sdist --dist-dir ../../dist/ )

.pip.for.ide.made: .venv.for.ide/bin/activate src/main/requirements.txt $(SRCMAIN_FILES)
	source .venv.for.ide/bin/activate && (cd src/main/ && pip install -r requirements.txt)
	touch .pip.for.ide.made

.venv.for.ide/bin/activate:
	virtualenv .venv.for.ide

.PHONY: wheel
wheel: $(WHEEL_FILE)

$(WHEEL_FILE): $(SRCMAIN_FILES) test
	mkdir -p dist
	(cd src/main/ && ./setup.py bdist_wheel --dist-dir ../../dist/ --bdist-dir ../../bdistbuild)

.PHONY: testpypi
testpypi:
	(cd src/main/ && ./setup.py register -r https://testpypi.python.org/pypi bdist_wheel --dist-dir ../../dist/ --bdist-dir ../../bdistbuild upload -r https://testpypi.python.org/pypi)

.PHONY: clean
clean: distclean
	rm -rf .venv.*
	rm -rf build
    
.PHONY: distclean
distclean:
	rm -f .*.made
	rm -rf dist

    <commit_msg>Finally a make target for pypi For #master<commit_after>MAJORMINOR := 1.2.0

SRCMAIN_FILES := $(shell find src/main -name "*.py")
NAME := $(shell grep name src/main/setup.py | cut -d "'" -f 2)
DISTFILE := dist/$(NAME)-$(MAJORMINOR).tar.gz
WHEEL_FILE := dist/rdflib_appengine-$(MAJORMINOR)-py2-none-any.whl
GAEDIR := build/rdflib-appengine-$(MAJORMINOR)

.PHONY: runlocal
runlocal: .gaebuild.made .tests.made
	dev_appserver.py $(GAEDIR) --port=3030 --log_level debug

.PHONY: gaebuild
gaebuild: .gaebuild.made

.PHONY: all
all: ide runlocal

.PHONY: test
test: .tests.made

.tests.made: src/test/testrunner.py src/test/suite/*.py .gaebuild.made
	src/test/testrunner.py $(shell dirname $(shell readlink $(shell which dev_appserver.py))) ./src/test/ $(GAEDIR) #TODO: This is not very portable
	touch .tests.made

.gaebuild.made: .gaebuild.example.made .gaebuild.srcmain.made
	touch .gaebuild.made

.gaebuild.srcmain.made: .gaedir.made $(DISTFILE)
	pip install -t $(GAEDIR) $(DISTFILE)
	touch .gaebuild.srcmain.made

.gaebuild.example.made: src/example/* .gaedir.made
	cp -r src/example/*.yaml $(GAEDIR)/
	cp -r src/example/*.py $(GAEDIR)/
	touch .gaebuild.example.made

.gaedir.made:
	mkdir -p $(GAEDIR)
	touch .gaedir.made

.PHONY: ide
ide: .pip.for.ide.made

.PHONY: dist
dist: $(DISTFILE)

$(DISTFILE): $(SRCMAIN_FILES)
	mkdir -p dist
	mkdir -p bdistbuild
	(cd src/main/ && ./setup.py sdist --dist-dir ../../dist/ )

.pip.for.ide.made: .venv.for.ide/bin/activate src/main/requirements.txt $(SRCMAIN_FILES)
	source .venv.for.ide/bin/activate && (cd src/main/ && pip install -r requirements.txt)
	touch .pip.for.ide.made

.venv.for.ide/bin/activate:
	virtualenv .venv.for.ide

.PHONY: wheel
wheel: $(WHEEL_FILE)

$(WHEEL_FILE): $(SRCMAIN_FILES) test
	mkdir -p dist
	(cd src/main/ && ./setup.py bdist_wheel --dist-dir ../../dist/ --bdist-dir ../../bdistbuild)

.PHONY: pypi
pypi: $(SRCMAIN_FILES) test
	(cd src/main/ && ./setup.py register bdist_wheel --dist-dir ../../dist/ --bdist-dir ../../bdistbuild upload)

.PHONY: clean
clean: distclean
	rm -rf .venv.*
	rm -rf build
    
.PHONY: distclean
distclean:
	rm -f .*.made
	rm -rf dist

    
{'fraction_non_alphanumeric': 0.17700348432055749, 'fraction_numerical': 0.004181184668989547, 'mean_word_length': 3.367139959432049, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '839460', 'n_tokens_mistral': 1824, 'n_tokens_neox': 1756, 'n_words': 395}