<commit_before>#!/bin/bash
# Preparing collaborated code for assignment submission
out_file=summary.log
git log | awk 'BEGIN {i=0} { if ($0 ~ /Author/) { i+=1; print "\n+ Change "i } else { print "\t"$0 }}' > $out_file && echo -e "\033[92mWrote summary to $out_file\033[00m" || echo -e "\033[91mFailed to write changes to $out_file\033[00m"<commit_msg>collab_summarizer: tac first then use only date and msg<commit_after>#!/bin/bash
# Preparing collaborated code for assignment submission

out_file=summary.log
git log | tac | awk '{ if ($0 ~ /^commit/) { print "\n**\n" } else if ($0 !~ /Author/) { print $0 }}' > $out_file && echo -e "\033[92mWrote summary to $out_file\033[00m" || echo -e "\033[91mFailed to write changes to $out_file\033[00m"
{'fraction_non_alphanumeric': 0.1675603217158177, 'fraction_numerical': 0.06300268096514745, 'mean_word_length': 4.452554744525547, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '6571224', 'n_tokens_mistral': 298, 'n_tokens_neox': 261, 'n_words': 84}