<commit_before>#!/usr/bin/python

# Week 3 problem 2
# Do not delete the comments.
# Do not chnage the functions names, do not change the input parameters.
# Do not change the return types of the functions.
# Your code goes to the part where it says your code goes here.
# Do not change anything else other than the part where it says your code goes here.

class OnePerson:
    '''
    Represents a row(one person) from the census file.

    Attributes:
      row(int): the row number in the data file

    Methods:
      read_line(self, input_file, n)
      print_column(self, n)

    Examples:
    >>> p = OnePerson()
    >>> print(p.read_line('ss12pil.csv', 1)[:10]) 
    ['P', '38', '01', '01602', '17', '1010207', '00200', '50', '1', '']
    >>> p.print_column(0)
    Column 0 is: P
    >>> p.print_column(1)
    Column 1 is: 38
    '''
    def __init__(self):
        '''
        Initializer
        '''
        # your code goes here
        
    def read_line(self, input_file, n):
        '''
        Takes the name of the file and the row number 'n',
        stores in the 'row' attribute the list representing the corresponding row,
        and returns that list.
        '''
        # your code goes here
        
    def print_column(self, n):
        '''
        Takes the column number 'n' and prints out the corresponding 'column' of
        the 'row' attribute.
        '''
        # your code goes here
    
if __name__ == '__main__':
    
    # your code goes here<commit_msg>typo in the comments corrected.<commit_after>#!/usr/bin/python

# Week 3 problem 2
# Do not delete the comments.
# Do not chnage the functions names, do not change the input parameters.
# Do not change the return types of the functions.
# Your code goes to the part where it says your code goes here.
# Do not change anything else other than the part where it says your code goes here.

class OnePerson:
    '''
    Represents a row(one person) from the census file.

    Attributes:
      row (list of strings): stores a row representing one person as a list of strings.

    Methods:
      read_line(self, input_file, n)
      print_column(self, n)

    Examples:
    >>> p = OnePerson()
    >>> print(p.read_line('ss12pil.csv', 1)[:10]) 
    ['P', '38', '01', '01602', '17', '1010207', '00200', '50', '1', '']
    >>> p.print_column(0)
    Column 0 is: P
    >>> p.print_column(1)
    Column 1 is: 38
    '''
    def __init__(self):
        '''
        Initializer
        '''
        # your code goes here
        
    def read_line(self, input_file, n):
        '''
        Takes the name of the file and the row number 'n',
        stores in the 'row' attribute the list representing the corresponding row,
        and returns that list.
        '''
        # your code goes here
        
    def print_column(self, n):
        '''
        Takes the column number 'n' and prints out the corresponding 'column' of
        the 'row' attribute.
        '''
        # your code goes here
    
if __name__ == '__main__':
    
    # your code goes here
{'fraction_non_alphanumeric': 0.10702560735390676, 'fraction_numerical': 0.025607353906762966, 'mean_word_length': 2.2763440860215054, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 27, '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': '7637372', 'n_tokens_mistral': 955, 'n_tokens_neox': 898, 'n_words': 368}