<commit_before>#!/usr/bin/env bash
echo "#### appcenter-post-build START ####"

npm install --global react-native-cli
npm install --global bugsnag-sourcemaps

react-native bundle \
    --platform ios \
    --dev false \
    --entry-file index.js \
    --bundle-output ios-release.bundle \
    --sourcemap-output ios-release.bundle.map

# Upload source maps to bugsnag 
bugsnag-sourcemaps upload \
   --api-key $BUGSNAG_KEY \
   --app-version $APP_VERSION \
   --code-bundle-id $APPCENTER_BUILD_ID \
   --source-map ios-release.bundle.map \
   --minified-url main.jsbundle \
   --minified-file ios-release.bundle \
   --upload-sources

echo "#### appcenter-post-build END ####"
<commit_msg>update post build script p4<commit_after>#!/usr/bin/env bash
echo "#### appcenter-post-build START ####"

npm install --global react-native-cli
npm install --global bugsnag-sourcemaps

# Source Maps - iOS
react-native bundle \
    --platform ios \
    --dev false \
    --entry-file index.js \
    --bundle-output ios-release.bundle \
    --sourcemap-output ios-release.bundle.map

bugsnag-sourcemaps upload \
    --api-key $BUGSNAG_KEY \
    --code-bundle-id $APPCENTER_BUILD_ID \
    --source-map ios-release.bundle.map \
    --minified-url main.jsbundle \
    --minified-file ios-release.bundle \
    --upload-sources

# Source Maps - Android
react-native bundle \
    --platform android \
    --dev false \
    --entry-file index.js \
    --bundle-output android-release.bundle \
    --sourcemap-output android-release.bundle.map

bugsnag-sourcemaps upload \
    --api-key $BUGSNAG_KEY \
    --code-bundle-id $APPCENTER_BUILD_ID \
    --source-map android-release.bundle.map \
    --minified-url main.jsbundle \
    --minified-file android-release.bundle \
    --upload-sources
    
echo "#### appcenter-post-build END ####"

{'fraction_non_alphanumeric': 0.14576457645764576, 'fraction_numerical': 0.00055005500550055, 'mean_word_length': 2.491362763915547, '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': '5864624', 'n_tokens_mistral': 615, 'n_tokens_neox': 609, 'n_words': 124}