<commit_before>init:
	# install gems, grunt
	cd ./src; bundle install; npm install;
	# build the corova app
	cordova create application com.hhroc.yellr "Yellr";
	rm -rf application/www/css;
	# add all cordova plugins. check the docs for a detailed list
	cd application; cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-device.git;
	cd application; cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-network-information.git;
	cd application; cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status.git;
	cd application; cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-geolocation.git;
	cd application; cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-camera.git;
	cd application; cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture.git;
	cd application; cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-media.git;
	cd application; cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-file.git;
	cd application; cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer.git;
	cd application; cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs.git;
	cd application; cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-vibration.git;
	cd application; cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-globalization.git;
	cd application; cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen.git;
	cd application; cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-console.git;
	
	# copy app icons and splash screens
	# android
	cp ./src/app/icons/android/ ./application/platforms/android/res/
	cp ./src/app/splash-screens/android/ ./application/platforms/android/res/
	# ios
	cp ./src/app/icons/ios/ ./application/platforms/ios/Yellr/Resources/icons
	cp ./src/app/splash-screens/ios/ ./application/platforms/ios/Yellr/Resources/splash

	# grunt tings - build project, build www not that application exists
	# we build with grunt after running cordova because Cordova must
	# create the directory first
	cd ./src; grunt; grunt build_app;


ios:
	cd application; cordova platform add ios; cordova build ios;
android:
	cd application; cordova platform add android; cordova build android;


server:
	cd build; echo; echo Live link: http://127.0.0.1:8000; echo; python -m SimpleHTTPServer;<commit_msg>Makefile adds app icons and splash screens<commit_after>init:
	# install gems, grunt
	cd ./src; bundle install; npm install;
	# build the corova app
	cordova create application com.hhroc.yellr "Yellr";
	rm -rf application/www/css;
	# add all cordova plugins. check the docs for a detailed list
	cd application; cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-device.git;
	cd application; cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-network-information.git;
	cd application; cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status.git;
	cd application; cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-geolocation.git;
	cd application; cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-camera.git;
	cd application; cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture.git;
	cd application; cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-media.git;
	cd application; cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-file.git;
	cd application; cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer.git;
	cd application; cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs.git;
	cd application; cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-vibration.git;
	cd application; cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-globalization.git;
	cd application; cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen.git;
	cd application; cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-console.git;
	
	# grunt tings - build project, build www not that application exists
	# we build with grunt after running cordova because Cordova must
	# create the directory first
	cd ./src; grunt; grunt build_app;

	# feedback
	clear; echo; echo Project build complete.; echo; echo Run \'make ios\' or \'make android\' to build an app.; echo Must have the SDKs for those devices installed.;



ios:
	cd application; cordova platform add ios;
	# copy app icons and splash screens
	cp -r ./src/app/icons/ios/ ./application/platforms/ios/Yellr/Resources/icons/;
	cp -r ./src/app/splash-screens/ios/ ./application/platforms/ios/Yellr/Resources/splash/;
	# show zcode project
	open application/platforms/ios;

	# feedback
	clear; echo; echo iOS build complete.; echo;



android:
	cd application; cordova platform add android;
	# copy app icons and splash screens
	cp -r ./src/app/icons/android/ ./application/platforms/android/res/
	cp -r ./src/app/splash-screens/android/ ./application/platforms/android/res/
	# build it
	cd application; cordova build android;

	# feddback
	clear; echo; echo Android build complete.; echo;


server:
	cd build; echo; echo Live link: http://127.0.0.1:8000; echo; python -m SimpleHTTPServer;
{'fraction_non_alphanumeric': 0.12425929251212067, 'fraction_numerical': 0.003591309032142216, 'mean_word_length': 4.162187210379981, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 28, 'lorem ipsum': 0, 'www.': 4, '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': '1228038', 'n_tokens_mistral': 1915, 'n_tokens_neox': 1845, 'n_words': 459}