<commit_before>[[ -e setup.sh  ]] || { echo 'setup.sh must be run from brave directory'; exit 1; }

app_id=${1:-com.brave.ios.browser}
echo CUSTOM_BUNDLE_ID=$app_id > xcconfig/.bundle-id.xcconfig
if [  -z $1 ] ; then
  echo "Tip: add your app id as an arg, like ./setup.sh org.foo.myapp"

  echo DevelopmentTeam = KL8N8XSYF4 >> xcconfig/.bundle-id.xcconfig
fi

sed -e 's/BUNDLE_ID_PLACEHOLDER/$app_id/' Brave.entitlements.template > Brave.entitlements

# Replace the removed xcconfigs with ours
(cd ../Client && rm -rf Configuration &&  ln -sfn ../brave/xcconfig Configuration)

npm update

#output a placeholder id, Archive builds will generate a real build id
echo GENERATED_BUILD_ID=1  > xcconfig/build-id.xcconfig
## cp xcconfig/build-id.xcconfig ../Client/Configuration

#create the xcode project
python brave-proj.py 

echo ""
echo "If files are added/removed from the project, regenerate it with ./brave-proj.py"
echo "Consider adding the post-checkout script for git automation (instructions are in that file)"
<commit_msg>setup.sh: call it a "Pro Tip"<commit_after>[[ -e setup.sh  ]] || { echo 'setup.sh must be run from brave directory'; exit 1; }

app_id=${1:-com.brave.ios.browser}
echo CUSTOM_BUNDLE_ID=$app_id > xcconfig/.bundle-id.xcconfig
if [  -z $1 ] ; then
  echo "Pro Tip: add your app id as an arg, like ./setup.sh org.foo.myapp"

  echo DevelopmentTeam = KL8N8XSYF4 >> xcconfig/.bundle-id.xcconfig
fi

sed -e 's/BUNDLE_ID_PLACEHOLDER/$app_id/' Brave.entitlements.template > Brave.entitlements

# Replace the removed xcconfigs with ours
(cd ../Client && rm -rf Configuration &&  ln -sfn ../brave/xcconfig Configuration)

npm update

#output a placeholder id, Archive builds will generate a real build id
echo GENERATED_BUILD_ID=1  > xcconfig/build-id.xcconfig
## cp xcconfig/build-id.xcconfig ../Client/Configuration

#create the xcode project
python brave-proj.py 

echo ""
echo "If files are added/removed from the project, regenerate it with ./brave-proj.py"
echo "Consider adding the post-checkout script for git automation (instructions are in that file)"

{'fraction_non_alphanumeric': 0.11335254562920269, 'fraction_numerical': 0.0067243035542747355, 'mean_word_length': 4.105392156862745, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, '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': '2703410', 'n_tokens_mistral': 734, 'n_tokens_neox': 729, 'n_words': 228}