<commit_before>default: test

test: check
	xcodebuild -workspace PerSectionLayout.xcworkspace -scheme PerSectionLayout -sdk iphonesimulator -destination "name=iPhone Retina (4-inch),OS=7.0" clean test | xcpretty -c && exit ${PIPESTATUS[0]}

update:
	@echo "\n\033[04m+ sync and update your git submodules\033[0m"
	git submodule sync
	git submodule update --init --recursive

check:
	which bundle
	bundle check
	which xcpretty

clean: xcode-clean

xcode-clean:
	@echo "\n\033[04m+ squeaky clean Xcode derived data, because Xcode can't be trusted\033[0m"
	rm -rf ~/Library/Developer/Xcode/DerivedData/PerSectionLayout*

kiwi: kiwi-clean kiwi-build

kiwi-clean:
	@echo "\n\033[04m+ cleaning kiwi build directory, so we can regenerate framework from source\033[0m"
	rm -rf ~/Library/Developer/Xcode/DerivedData/Kiwi*
	rm -rf tools/Kiwi.framework

kiwi-build:
	@echo "\n\033[04m+ updating kiwi from source\033[0m"
	mkdir -p tools<commit_msg>Running test against iOS 8<commit_after>default: test

test: check
	xcodebuild -workspace PerSectionLayout.xcworkspace -scheme PerSectionLayout -sdk iphonesimulator -destination "name=iPhone 4s,OS=8.0" clean test | xcpretty -c && exit ${PIPESTATUS[0]}

update:
	@echo "\n\033[04m+ sync and update your git submodules\033[0m"
	git submodule sync
	git submodule update --init --recursive

check:
	which bundle
	bundle check
	which xcpretty

clean: xcode-clean

xcode-clean:
	@echo "\n\033[04m+ squeaky clean Xcode derived data, because Xcode can't be trusted\033[0m"
	rm -rf ~/Library/Developer/Xcode/DerivedData/PerSectionLayout*

kiwi: kiwi-clean kiwi-build

kiwi-clean:
	@echo "\n\033[04m+ cleaning kiwi build directory, so we can regenerate framework from source\033[0m"
	rm -rf ~/Library/Developer/Xcode/DerivedData/Kiwi*
	rm -rf tools/Kiwi.framework

kiwi-build:
	@echo "\n\033[04m+ updating kiwi from source\033[0m"
	mkdir -p tools
{'fraction_non_alphanumeric': 0.10950854700854701, 'fraction_numerical': 0.04326923076923077, 'mean_word_length': 4.624624624624625, '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': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '27271', 'n_tokens_mistral': 733, 'n_tokens_neox': 662, 'n_words': 194}