<commit_before>#!/bin/bash
echo "" > configs/version.js
echo "export default {" >> configs/version.js
git rev-parse --abbrev-ref HEAD 2> /dev/null | sed "s/\(.*\)/branch: '\1',/" >> configs/version.js
git rev-parse --short HEAD 2> /dev/null | sed "s/\(.*\)/head: '\1'/" >> configs/version.js
echo "};" >> configs/version.js<commit_msg>Updating gen_version.sh for considering indentation before branch and head.<commit_after>#!/bin/bash
echo "" > configs/version.js
echo "export default {" >> configs/version.js
git rev-parse --abbrev-ref HEAD 2> /dev/null | sed "s/\(.*\)/    branch: '\1',/" >> configs/version.js
git rev-parse --short HEAD 2> /dev/null | sed "s/\(.*\)/    head: '\1'/" >> configs/version.js
echo "};" >> configs/version.js
{'fraction_non_alphanumeric': 0.22162162162162163, 'fraction_numerical': 0.010810810810810811, 'mean_word_length': 3.3846153846153846, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 25, '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': '6908821', 'n_tokens_mistral': 277, 'n_tokens_neox': 262, 'n_words': 67}