<commit_before>#!/bin/bash

git submodule update --init
for i in `cat android-subprojects`
do
    mkdir $i/gen
done<commit_msg>Be a little more defensive with return codes and existing directories.<commit_after>#!/bin/bash

git submodule update --init

if [ $? != 0 ] ; then
    echo "Unable to run git submodule update --init"
    exit 1
fi

for i in `cat android-subprojects`
do
    if [ ! -d $i/gen ] ; then
	mkdir $i/gen || die unable to make gen directory
    fi
done
{'fraction_non_alphanumeric': 0.1038135593220339, 'fraction_numerical': 0.00423728813559322, 'mean_word_length': 3.1491228070175437, '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': '5536360', 'n_tokens_mistral': 162, 'n_tokens_neox': 152, 'n_words': 62}