<commit_before># sparkle

SPARKLE_VERSION := 1.5b6
SPARKLE_URL := http://sparkle.andymatuschak.org/files/Sparkle%20$(SPARKLE_VERSION).zip

ifdef HAVE_MACOSX
PKGS += sparkle
endif

$(TARBALLS)/sparkle-$(SPARKLE_VERSION).zip:
	$(call download,$(SPARKLE_URL))

.sum-sparkle: sparkle-$(SPARKLE_VERSION).zip

sparkle: sparkle-$(SPARKLE_VERSION).zip .sum-sparkle
	$(RM) -R $@ && mkdir -p $@ && cd $@ && unzip ../$<
	cd $@/Extras/Source\ Code/Configurations && \
		sed -i.orig -e s/"GCC_TREAT_WARNINGS_AS_ERRORS = YES"/"GCC_TREAT_WARNINGS_AS_ERRORS = NO"/g \
            -e s/"ARCHS = .*"/"ARCHS = $(ARCH)"/ \
			ConfigCommonRelease.xcconfig && \
		sed -i.orig -e s/10\.4/$(OSX_VERSION)/g -e s/10\.5/$(OSX_VERSION)/g ConfigCommon.xcconfig
	touch $@

.sparkle: sparkle
	cd $</Extras/Source\ Code && $(MAKE) && xcodebuild $(XCODE_FLAGS)
	cd $</Extras/Source\ Code && install_name_tool -id @executable_path/../Frameworks/Sparkle.framework/Versions/A/Sparkle build/Release/Sparkle.framework/Sparkle
	cd $< && cp -R -L Extras/Source\ Code/build/Release/Sparkle.framework "$(PREFIX)"
	touch $@<commit_msg>Contribs: fix sparkle compatibility for OSX 5<commit_after># sparkle

SPARKLE_VERSION := 1.5b6
SPARKLE_URL := http://sparkle.andymatuschak.org/files/Sparkle%20$(SPARKLE_VERSION).zip

ifdef HAVE_MACOSX
PKGS += sparkle
endif

$(TARBALLS)/sparkle-$(SPARKLE_VERSION).zip:
	$(call download,$(SPARKLE_URL))

.sum-sparkle: sparkle-$(SPARKLE_VERSION).zip

sparkle: sparkle-$(SPARKLE_VERSION).zip .sum-sparkle
	$(RM) -R $@ && mkdir -p $@ && cd $@ && unzip ../$<
	cd $@/Extras/Source\ Code/Configurations && \
		sed -i.orig -e s/"GCC_TREAT_WARNINGS_AS_ERRORS = YES"/"GCC_TREAT_WARNINGS_AS_ERRORS = NO"/g \
                    -e s/"ARCHS = .*"/"ARCHS = $(ARCH)"/  ConfigCommonRelease.xcconfig && \
		sed -i.orig -e s/MacOSX10.5.sdk/MacOSX$(OSX_VERSION).sdk/g ConfigCommon.xcconfig
	touch $@

.sparkle: sparkle
	cd $</Extras/Source\ Code && $(MAKE) && xcodebuild $(XCODE_FLAGS)
	cd $</Extras/Source\ Code && install_name_tool -id @executable_path/../Frameworks/Sparkle.framework/Versions/A/Sparkle build/Release/Sparkle.framework/Sparkle
	cd $< && cp -R -L Extras/Source\ Code/build/Release/Sparkle.framework "$(PREFIX)"
	touch $@
{'fraction_non_alphanumeric': 0.17819990954319312, 'fraction_numerical': 0.009045680687471733, 'mean_word_length': 4.050228310502283, 'pattern_counts': {'":': 0, '<': 11, '<?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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5033390', 'n_tokens_mistral': 924, 'n_tokens_neox': 876, 'n_words': 144}