<commit_before># configurables
MY_EMAIL=<EMAIL>
IP_ADDRESS_AND_PORT=127.0.0.1:9862

# external code
PYDOC=pydoc

##################################################################

all:
	@echo ""
	@echo make setup - configures the installation
	@echo make server - launches the server
	@echo make client - opens a client on $(IP_ADDRESS_AND_PORT)
	@echo make clean - removes cruft files
	@echo make clobber - clean, and removes database files
	@echo make perms - sets sane unix permissions on the installation
	@echo make hard-reset - automated nuke-and-rebuild for developers
	@echo ""

clean:
	-rm `find . -name "*~"`
	-rm `find . -name "*.pyc"`
	-rm `find . -name "*.tmp"`

clobber: clean
	-rm -r database/*
	-rm etc/cookies.txt
	-rm settings.py

perms:
	chmod 755 `find . -type d`
	chmod 644 `find . -type f`
	chmod -R go-rwx etc/
	chmod 755 `find . -name "*.py"`
	chmod 755 `find . -name "*.pl"`
	chmod 755 `find . -name "*.sh"`

setup:
	sh mine-setup.sh
	make perms

hard-reset: clobber # brute-force rebuild from scratch
	env MINE_USER_EMAIL=$(MY_EMAIL) make setup
	make server

##################################################################

client:
	@echo trying to open http://$(IP_ADDRESS_AND_PORT)/
	-test -x /usr/bin/gnome-open && gnome-open http://$(IP_ADDRESS_AND_PORT)/
	-test -d /System/Library && open http://$(IP_ADDRESS_AND_PORT)/

server:
	python manage.py runserver $(IP_ADDRESS_AND_PORT)<commit_msg>FINAL COMMIT BEFORE NEW MODEL IS IMPLEMENTED - EXPECT MAJOR CHANGES<commit_after># configurables
MY_EMAIL=<EMAIL>domain.dom
IP_ADDRESS_AND_PORT=127.0.0.1:9862

# external code
PYDOC=pydoc

##################################################################

all:
	@echo ""
	@echo make setup - configures the installation
	@echo make server - launches the server
	@echo make client - opens a client on $(IP_ADDRESS_AND_PORT)
	@echo make clean - removes cruft files
	@echo make clobber - clean, and removes database files
	@echo make perms - sets sane unix permissions on the installation
	@echo make hard-reset - automated nuke-and-rebuild for developers
	@echo ""

clean:
	-rm `find . -name "*~"`
	-rm `find . -name "*.pyc"`
	-rm `find . -name "*.tmp"`

clobber: clean
	-rm -r database/*
	-rm etc/cookies.txt
	-rm etc/cookies2.txt
	-rm settings.py

perms:
	chmod 755 `find . -type d`
	chmod 644 `find . -type f`
	chmod -R go-rwx etc/
	chmod 755 `find . -name "*.py"`
	chmod 755 `find . -name "*.pl"`
	chmod 755 `find . -name "*.sh"`

setup:
	sh mine-setup.sh
	make perms

hard-reset: clobber # brute-force rebuild from scratch
	env MINE_USER_EMAIL=$(MY_EMAIL) make setup
	make server

##################################################################

client:
	@echo trying to open http://$(IP_ADDRESS_AND_PORT)/
	-test -x /usr/bin/gnome-open && gnome-open http://$(IP_ADDRESS_AND_PORT)/
	-test -d /System/Library && open http://$(IP_ADDRESS_AND_PORT)/

server:
	python manage.py runserver $(IP_ADDRESS_AND_PORT)
{'fraction_non_alphanumeric': 0.20728386657590198, 'fraction_numerical': 0.01735874744724302, 'mean_word_length': 3.972927241962775, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '2024353', 'n_tokens_mistral': 1074, 'n_tokens_neox': 1024, 'n_words': 310}