<commit_before>#!/usr/bin/env python

import matplotlib.pyplot as plt
import random

# generate random data
random.seed()
data = []
for i in range(3):
    set_ = []
    for j in range(30):
        set_.append(random.randint(1, 50))
    data.append(set_)
    set_ = []

# print data for comparison
for set_ in data:
    sorted_set = sorted(set_)
    length = len(sorted_set)
    print "data:", sorted_set
    print "upper quantile:", sorted_set[(length * 3) / 4]
    print "median:        ", sorted_set[length / 2]
    print "upper quantile:", sorted_set[length / 4]

fig = plt.figure()
ax = fig.add_subplot(1, 1, 1)

ax.boxplot(data)

plt.show()
<commit_msg>minor corrections + labels on x-axes<commit_after>#!/usr/bin/env python

import matplotlib.pyplot as plt
import random

# generate random data
names = ["aaa", "bbb", "ccc"]
random.seed()
data = []
for i in range(len(names)):
    set_ = []
    for j in range(30):
        set_.append(random.randint(1, 50))
    data.append(set_)

# print data for comparison
for set_ in data:
    sorted_set = sorted(set_)
    length = len(sorted_set)
    print "data:", sorted_set
    print "upper quantile:", sorted_set[(length * 3) / 4]
    print "median:        ", sorted_set[length / 2]
    print "lower quantile:", sorted_set[length / 4]

fig = plt.figure()
ax = fig.add_subplot(1, 1, 1)

ax.boxplot(data)
ax.set_xticklabels(names)

plt.show()

{'fraction_non_alphanumeric': 0.14028776978417265, 'fraction_numerical': 0.017985611510791366, 'mean_word_length': 3.3333333333333335, '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': '6371104', 'n_tokens_mistral': 520, 'n_tokens_neox': 497, 'n_words': 136}