<commit_before>"""Graph CSV energy data

Usage:
    graph.py <input_file>
    graph.py (-h | --help)
    graph.py --version

Options:
    -h --help    Show this help.
    --version    Show version number.

"""
from docopt import docopt
import csv
import matplotlib
import pylab


def getColumn(filename, column):
    o = open(filename, 'rU')
    results = csv.reader(o)
    print results
    #results = csv.reader(open("data_2004-2013.csv"), delimiter="\t")
    return [result[column] for result in results]


def make_graph(input_file):
    reader = csv.reader(open(input_file))
    date = []
    buy = []

    for _ in xrange(3):<commit_msg>Import CSV with universal line endings<commit_after>"""Graph CSV energy data

Usage:
    graph.py <input_file>
    graph.py (-h | --help)
    graph.py --version

Options:
    -h --help    Show this help.
    --version    Show version number.

"""
from docopt import docopt
import csv
import matplotlib
import pylab


def getColumn(filename, column):
    o = open(filename, 'rU')
    results = csv.reader(o)
    print results
    #results = csv.reader(open("data_2004-2013.csv"), delimiter="\t")
    return [result[column] for result in results]


def make_graph(input_file):
    reader = csv.reader(open(input_file, 'rU'))
    date = []
    buy = []

    for _ in xrange(3):
{'fraction_non_alphanumeric': 0.12832194381169323, 'fraction_numerical': 0.01366742596810934, 'mean_word_length': 3.0060790273556233, 'pattern_counts': {'":': 0, '<': 5, '<?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': '3118487', 'n_tokens_mistral': 462, 'n_tokens_neox': 427, 'n_words': 125}