<commit_before>
def read_in():
    import csv
    import numpy
    """
     Opens the ecg CSV file
     :param readCSV: pointer to the file
     :param times: the time from the signal
     :param Voltage: the voltage from the signal
     """
    # with open('ecg_data.csv') as csvfile:
    #     read_csv = csv.reader(csvfile, delimiter=',')
    #     header_line = next(read_csv)
    #
    #     time = numpy.array([])
    #     voltage = numpy.array([])
    #
    #
    #     for row in read_csv:
    #         time1 = row[0]
    #         voltage1 = row[1]
    #
    #         # time = numpy.append(time, time1)
    #         # voltage = numpy.append(voltage, voltage1)
    dat = numpy.genfromtxt('ecg_data.csv', delimiter=',', skip_header=1, )
    time = dat[:, 0]
    voltage = dat[:, 1]
    # for element in time:
    #     #parts=element.split(',')
    # time = tim.astype('Float64')
    # time.astype()
    #
    # #for element in voltage:
    #     #parts1=element.split(',')
    # voltage = voltage.astype('Float64')    
    return time, voltage
<commit_msg>Update Input_csv_file.py<commit_after>
def read_in():
    import csv
    import numpy
    """
     Opens the ecg CSV file
     :param readCSV: pointer to the file
     :param times: the time from the signal
     :param Voltage: the voltage from the signal
     """
    # with open('ecg_data.csv') as csvfile:
    #     read_csv = csv.reader(csvfile, delimiter=',')
    #     header_line = next(read_csv)
    #
    #     time = numpy.array([])
    #     voltage = numpy.array([])
    #
    #
    #     for row in read_csv:
    #         time1 = row[0]
    #         voltage1 = row[1]
    #
    #         # time = numpy.append(time, time1)
    #         # voltage = numpy.append(voltage, voltage1)
    dat = numpy.genfromtxt('ecg_data.csv', delimiter=',', skip_header=1, )
    time = dat[:, 0]
    voltage = dat[:, 1]
    # for element in time:
    #     #parts=element.split(',')
    # time = tim.astype('Float64')
    # time.astype()
    #
    # #for element in voltage:
    #     #parts1=element.split(',')
    # voltage = voltage.astype('Float64')
    return time, voltage

{'fraction_non_alphanumeric': 0.1395240317312179, 'fraction_numerical': 0.013065795613625758, 'mean_word_length': 2.1117561683599417, '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': '773055', 'n_tokens_mistral': 739, 'n_tokens_neox': 724, 'n_words': 175}