<commit_before>#!/usr/bin/bash

pool_file="$1"
id_marks_file="$2"
game_marks_file="$3"

if [[ -z "$pool_file" ]]
then
    echo "Specify a gene pool file to analyze."
    exit 1
fi

game_file="${pool_file}_games.txt"
opening_file="${game_file}_opening_list.txt"
octave analysis/gene_plots.m "$pool_file" "$id_marks_file" &
octave analysis/win_lose_draw_plotting.m "$game_file" "$game_marks_file" &
./analysis/openings.sh "$game_file" 2 && octave analysis/opening_plotting.m "$opening_file" "$game_marks_file" &
wait
./analysis/promotions.sh "$game_file"
./analysis/castling.sh "$game_file"
<commit_msg>Make opening moves an argument in run_all_plots<commit_after>#!/usr/bin/bash

pool_file="$1"
id_marks_file="$2"
game_marks_file="$3"
opening_moves="$4"

if [[ -z "$pool_file" ]]
then
    echo "Specify a gene pool file to analyze."
    exit 1
fi

game_file="${pool_file}_games.txt"
opening_file="${game_file}_opening_list.txt"
octave analysis/gene_plots.m "$pool_file" "$id_marks_file" &
octave analysis/win_lose_draw_plotting.m "$game_file" "$game_marks_file" &
./analysis/openings.sh "$game_file" "$opening_moves" && octave analysis/opening_plotting.m "$opening_file" "$game_marks_file" &
wait
./analysis/promotions.sh "$game_file"
./analysis/castling.sh "$game_file"

{'fraction_non_alphanumeric': 0.15511811023622046, 'fraction_numerical': 0.007874015748031496, 'mean_word_length': 6.304597701149425, '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': '4496796', 'n_tokens_mistral': 496, 'n_tokens_neox': 469, 'n_words': 89}