<commit_before>#!/bin/sh

if [ -d l10n-screenshots ]; then
  echo "The l10n-screenshots directory already exists. You decide."
  exit 1
fi

if [ ! -d firefox-ios-l10n ]; then
    echo "Did not find a firefox-ios-l10n checkout. Are you running this on a localized build?"
    exit 1
fi

mkdir l10n-screenshots

for d in firefox-ios-l10n/?? firefox-ios-l10n/??? firefox-ios-l10n/??-??; do
    lang=$(basename $d)
    if [ "$lang" != "ar" ]; then
        echo "`date` Snapshotting $lang"
        mkdir "l10n-screenshots/$lang"
        snapshot --project Client.xcodeproj --scheme L10nSnapshotTests \
           --skip_open_summary \
           --erase_simulator --number_of_retries 3 \
           --devices "iPhone 4s,iPhone 5s,iPhone 6s" --languages "$lang" \
           --output_directory "l10n-screenshots/$lang" > "l10n-screenshots/$lang/snapshot.log" 2>&1
    fi
done<commit_msg>No Bug - Updated l10n-screenshots.sh<commit_after>#!/bin/sh

if [ -d l10n-screenshots ]; then
  echo "The l10n-screenshots directory already exists. You decide."
  exit 1
fi

if [ ! -d firefox-ios-l10n ]; then
    echo "Did not find a firefox-ios-l10n checkout. Are you running this on a localized build?"
    exit 1
fi

mkdir l10n-screenshots

SNAPSHOT=snapshot

for d in firefox-ios-l10n/?? firefox-ios-l10n/??? firefox-ios-l10n/??-??; do
    lang=$(basename $d)
    if [ "$lang" != "ar" ]; then
        echo "`date` Snapshotting $lang"
        mkdir "l10n-screenshots/$lang"
        $SNAPSHOT --project Client.xcodeproj --scheme L10nSnapshotTests \
            --derived_data_path l10n-screenshots-dd \
            --erase_simulator --number_of_retries 3 \
            --devices "iPhone 4s" --languages "$lang" \
            --output_directory "l10n-screenshots/$lang" > "l10n-screenshots/$lang/snapshot.log" 2>&1
    fi
done

{'fraction_non_alphanumeric': 0.13425414364640884, 'fraction_numerical': 0.036464088397790057, 'mean_word_length': 2.622, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '2442072', 'n_tokens_mistral': 716, 'n_tokens_neox': 644, 'n_words': 164}