<commit_before>#!/bin/bash

inFile=`basename $1`
cropPattern="${inFile%*.pb}"

compUnitEnd=`grep -n "^name: \\"schema:$cropPattern\\"$" "$1" | cut -d : -f 1`

compUnitEnd=$(($compUnitEnd - 2))

tail -n+2 "$1" | head -n"$compUnitEnd"<commit_msg>Changing grep pattern, we don't need 'schema:'<commit_after>#!/bin/bash

inFile=`basename $1`
cropPattern="${inFile%.*}"

compUnitEnd=`grep -n "^name: \\"$cropPattern\\"$" "$1" | cut -d : -f 1`

compUnitEnd=$(($compUnitEnd - 2))

tail -n+2 "$1" | head -n"$compUnitEnd"
{'fraction_non_alphanumeric': 0.25, 'fraction_numerical': 0.0234375, 'mean_word_length': 4.896551724137931, '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': '635207', 'n_tokens_mistral': 233, 'n_tokens_neox': 215, 'n_words': 45}