<commit_before>chrome:
	@mkdir -p release
	@rm -f release/cryptocat.chrome.zip
	@cd src/core/ && zip -q -r9 ../../release/cryptocat.chrome.zip * -x "*/\.*" -x "\.*"
	@/bin/echo "[Cryptocat] Chrome build available in release/"

firefox:
	@mkdir -p release
	@rm -f release/cryptocat.firefox.xpi
	@mkdir src/firefox/chrome/content/data/
	@cp -r src/core/* src/firefox/chrome/content/data/
	@cd src/firefox/ && zip -q -r9 ../../release/cryptocat.firefox.xpi * -x "*/\.*" -x "\.*"
	@rm -r src/firefox/chrome/content/data/
	@/bin/echo "[Cryptocat] Firefox build available in release/"

safari:
	@rm -rf src/cryptocat.safariextension
	@cp -R src/core src/cryptocat.safariextension
	@cp -R src/safari/* src/cryptocat.safariextension
	@/bin/echo "[Cryptocat] Safari extension packaged for testing."

opera:
	@mkdir -p release
	@rm -f release/cryptocat_opera.nex
	@cp -r src/core/css src/core/img src/core/index.html src/core/js src/core/locale src/core/snd src/opera
	@cd src/opera/ && zip -q -r9 ../../release/cryptocat_opera.nex * -x "*/\.*" -x "\.*"
	@rm -rf src/opera/css src/opera/img src/opera/index.html src/opera/js src/opera/locale src/opera/snd
	@/bin/echo "[Cryptocat] Opera build available in release/"

mac:
	@rm -rf release/Cryptocat.app
	@rm -rf release/cryptocat.mac.zip
	@rm -rf src/mac/htdocs
	@cp -R src/core src/mac/htdocs
	@xcodebuild -project src/mac/Cryptocat.xcodeproj -configuration 'Release' -alltargets clean
	@xcodebuild CONFIGURATION_BUILD_DIR="${PWD}/release" -project src/mac/Cryptocat.xcodeproj -configuration 'Release' build
	@rm -rf release/Cryptocat.app.dSYM
	@cd release && zip -q -r9 cryptocat.mac.zip Cryptocat.app
	@/bin/echo "[Cryptocat] Mac app available in release/"

tests:
	@/bin/echo -n "[Cryptocat] Running tests... "
	@`/usr/bin/which npm` install
	@node_modules/.bin/mocha --ui exports --reporter spec test/core/js/*.test.js

lint:
	@node_modules/.bin/jshint --verbose --config .jshintrc \
		src/core/js/cryptocat.js \
		src/core/js/lib/multiParty.js \
		src/core/js/lib/elliptic.js \
		src/core/js/lib/salsa20.js \
		src/core/js/etc/*.js \
		src/standaloneServer.js \
		test/testBase.js \
		test/core/js/*.js \
		Gruntfile.js

all: lint tests<commit_msg>Make mac now cleans up after itself<commit_after>chrome:
	@mkdir -p release
	@rm -f release/cryptocat.chrome.zip
	@cd src/core/ && zip -q -r9 ../../release/cryptocat.chrome.zip * -x "*/\.*" -x "\.*"
	@/bin/echo "[Cryptocat] Chrome build available in release/"

firefox:
	@mkdir -p release
	@rm -f release/cryptocat.firefox.xpi
	@mkdir src/firefox/chrome/content/data/
	@cp -r src/core/* src/firefox/chrome/content/data/
	@cd src/firefox/ && zip -q -r9 ../../release/cryptocat.firefox.xpi * -x "*/\.*" -x "\.*"
	@rm -r src/firefox/chrome/content/data/
	@/bin/echo "[Cryptocat] Firefox build available in release/"

safari:
	@rm -rf src/cryptocat.safariextension
	@cp -R src/core src/cryptocat.safariextension
	@cp -R src/safari/* src/cryptocat.safariextension
	@/bin/echo "[Cryptocat] Safari extension packaged for testing."

opera:
	@mkdir -p release
	@rm -f release/cryptocat_opera.nex
	@cp -r src/core/css src/core/img src/core/index.html src/core/js src/core/locale src/core/snd src/opera
	@cd src/opera/ && zip -q -r9 ../../release/cryptocat_opera.nex * -x "*/\.*" -x "\.*"
	@rm -rf src/opera/css src/opera/img src/opera/index.html src/opera/js src/opera/locale src/opera/snd
	@/bin/echo "[Cryptocat] Opera build available in release/"

mac:
	@rm -rf release/Cryptocat.app
	@rm -rf release/cryptocat.mac.zip
	@cp -R src/core src/mac/htdocs
	@xcodebuild -project src/mac/Cryptocat.xcodeproj -configuration 'Release' -alltargets clean
	@xcodebuild CONFIGURATION_BUILD_DIR="${PWD}/release" -project src/mac/Cryptocat.xcodeproj -configuration 'Release' build
	@rm -rf release/Cryptocat.app.dSYM
	@rm -rf src/mac/htdocs
	@cd release && zip -q -r9 cryptocat.mac.zip Cryptocat.app
	@/bin/echo "[Cryptocat] Mac app available in release/"

tests:
	@/bin/echo -n "[Cryptocat] Running tests... "
	@`/usr/bin/which npm` install
	@node_modules/.bin/mocha --ui exports --reporter spec test/core/js/*.test.js

lint:
	@node_modules/.bin/jshint --verbose --config .jshintrc \
		src/core/js/cryptocat.js \
		src/core/js/lib/multiParty.js \
		src/core/js/lib/elliptic.js \
		src/core/js/lib/salsa20.js \
		src/core/js/etc/*.js \
		src/standaloneServer.js \
		test/testBase.js \
		test/core/js/*.js \
		Gruntfile.js

all: lint tests
{'fraction_non_alphanumeric': 0.16870748299319727, 'fraction_numerical': 0.0027210884353741495, 'mean_word_length': 3.1889838556505223, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7667792', 'n_tokens_mistral': 1862, 'n_tokens_neox': 1760, 'n_words': 381}