<commit_before>#!/bin/sh

set -e

if [ ! -d "matrixConsole.xcworkspace" ]
then
	echo "Please run pod install first"
	exit 1
fi

builddir="build"
outdir="out"

sdk="iphoneos"
basecmd="xcodebuild -scheme matrixConsole -workspace matrixConsole.xcworkspace -configuration Release -sdk $sdk -derivedDataPath $builddir"
vars=""

if [ -n "$GIT_BRANCH" ]
then
	vars="$vars GIT_BRANCH=`echo $GIT_BRANCH | sed -e 's#origin\/##'`"
fi
if [ -n "$BUILD_NUMBER" ]
then
	vars="$vars BUILD_NUMBER=$BUILD_NUMBER"
fi

if [ $# == 0 ]
then
	$basecmd -archivePath "out/matrixConsole.xcarchive" archive GCC_PREPROCESSOR_DEFINITIONS="\$(GCC_PREPROCESSOR_DEFINITIONS) $vars"
	xcrun -sdk $sdk PackageApplication -v $outdir/matrixConsole.xcarchive/Products/Applications/matrixConsole.app -o `pwd`/out/matrixConsole.ipa
elif [ $1 == 'clean' ]
then
	$basecmd clean
	rm -r "$builddir" "$outdir" || true
fi
<commit_msg>Let buildipa pass args to xcodebuild<commit_after>#!/bin/sh

set -e

if [ ! -d "matrixConsole.xcworkspace" ]
then
	echo "Please run pod install first"
	exit 1
fi

builddir="build"
outdir="out"

sdk="iphoneos"
basecmd="xcodebuild -scheme matrixConsole -workspace matrixConsole.xcworkspace -configuration Release -sdk $sdk -derivedDataPath $builddir"
vars=""

if [ -n "$GIT_BRANCH" ]
then
	vars="$vars GIT_BRANCH=`echo $GIT_BRANCH | sed -e 's#origin\/##'`"
fi
if [ -n "$BUILD_NUMBER" ]
then
	vars="$vars BUILD_NUMBER=$BUILD_NUMBER"
fi

if [ "$1" == 'clean' ]
then
	$basecmd clean
	rm -r "$builddir" "$outdir" || true
else
	$basecmd -archivePath "out/matrixConsole.xcarchive" archive GCC_PREPROCESSOR_DEFINITIONS="\$(GCC_PREPROCESSOR_DEFINITIONS) $vars" "$@"
	xcrun -sdk $sdk PackageApplication -v $outdir/matrixConsole.xcarchive/Products/Applications/matrixConsole.app -o `pwd`/out/matrixConsole.ipa
fi

{'fraction_non_alphanumeric': 0.14309670206819453, 'fraction_numerical': 0.002794857462269424, 'mean_word_length': 5.3250883392226145, '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': '2818597', 'n_tokens_mistral': 680, 'n_tokens_neox': 658, 'n_words': 159}