<commit_before>#!/usr/bin/env python
# encoding: utf-8
"""
simple_script.py - generate some random data and then plot a histogram of it

Created by CDW on 2014.11.06
"""




import matplotlib.pyplot as plt
import numpy as np

print 'Hello there!' # Comma removal suggested by E_R
data = np.random.normal(1,1, 10)
plt.plot(data)
plt.show()<commit_msg>Added a main, made executable from the CLI<commit_after>#!/usr/bin/env python
# encoding: utf-8
"""
simple_script.py - generate some random data and then plot a histogram of it

Created by CDW on 2014.11.06
"""

import matplotlib.pyplot as plt
import numpy as np


def show_bryant(data_length=500000, bins=100):
    """Create some data with the gumbel distribution, then plot it as a histogram
    Takes:
        data_length: how many points to generate (500000)
        bins: how many bins to sort the data into for the histogram (100)
    Gives:
        None
    """
    data = np.random.gumbel(0,1,data_length)
    plt.hist(data, bins)
    plt.show()


def main():
    show_bryant(10000, 50)


if __name__ == '__main__':
	main()
{'fraction_non_alphanumeric': 0.10175763182238667, 'fraction_numerical': 0.045328399629972246, 'mean_word_length': 3.5271966527196654, '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': '607397', 'n_tokens_mistral': 407, 'n_tokens_neox': 356, 'n_words': 129}