<commit_before># import modules
import csv

# write your function passing in the file name
def open_csv_file(file_name):

    # create a variable to iterate each row and count the number of lines
    number_of_rows = sum(1 for line in open(file_name))

    # output the number of lines
    print number_of_rows

# run the function when you run the script in the terminal
open_csv_file('fdic_failed_bank_list.csv')<commit_msg>gives step 2 function a unique name<commit_after># import modules
import csv

# write your function passing in the file name
def count_csv_rows(file_name):

    # create a variable to iterate each row and count the number of lines
    number_of_rows = sum(1 for line in open(file_name))

    # output the number of lines
    print number_of_rows

# run the function when you run the script in the terminal
count_csv_rows('fdic_failed_bank_list.csv')
{'fraction_non_alphanumeric': 0.04805491990846682, 'fraction_numerical': 0.003432494279176201, 'mean_word_length': 4.368098159509202, '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': '3579716', 'n_tokens_mistral': 259, 'n_tokens_neox': 249, 'n_words': 111}