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

''' The script prepares data to a more suitable format and

and save the data in a CSV format.

'''

import sys
import pandas as pd
import os

def main():
    '''Main function'''

    datafile = 'FPD-Non-Redundant-20Oct2014.csv' # data file in csv format
    df = pd.read_csv(os.path.join('data', datafile)
            , delimiter='\t')  # read data into a dataframe<commit_msg>added index_col when read data from CSV file<commit_after>#!/usr/bin/env python

''' The script prepares data to a more suitable format and

and save the data in a CSV format.

'''

import sys
import pandas as pd
import os

def main():
    '''Main function'''

    datafile = 'FPD-Non-Redundant-20Oct2014.csv' # data file in csv format
    df = pd.read_csv(os.path.join('data', datafile)
            , delimiter='\t', index_col='FPID')  # read data into a dataframe
{'fraction_non_alphanumeric': 0.11577752553916004, 'fraction_numerical': 0.01362088535754824, 'mean_word_length': 3.3448275862068964, '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': '631600', 'n_tokens_mistral': 302, 'n_tokens_neox': 278, 'n_words': 103}