<commit_before>from collections import namedtuple
import argparse

from utils import coin

parser = argparse.ArgumentParser(description="Buffon's Coin Simulation")
parser.add_argument('-r', '--radius', type=float, required=True, help='radius of coin')
parser.add_argument('-g', '--gap', type=float, required=True, help='length of gap between two lines')
parser.add_argument('-t', '--trials', type=int, default=10000000, help='number of trials to run')

args = parser.parse_args()
coinsim = coin.CoinSim(args.length, args.gap, args.trials)

print(coinsim.run_trials())<commit_msg>Fix typo.<commit_after>from collections import namedtuple
import argparse

from utils import coin

parser = argparse.ArgumentParser(description="Buffon's Coin Simulation")
parser.add_argument('-r', '--radius', type=float, required=True, help='radius of coin')
parser.add_argument('-g', '--gap', type=float, required=True, help='length of gap between two lines')
parser.add_argument('-t', '--trials', type=int, default=10000000, help='number of trials to run')

args = parser.parse_args()
coinsim = coin.CoinSim(args.radius, args.gap, args.trials)

print(coinsim.run_trials())
{'fraction_non_alphanumeric': 0.14991334488734837, 'fraction_numerical': 0.01386481802426343, 'mean_word_length': 6.857142857142857, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, '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': '6903957', 'n_tokens_mistral': 383, 'n_tokens_neox': 360, 'n_words': 94}