<commit_before>"""
Name: <NAME>
Date: 10/11/16
Class: Introduction to Python
LAB: grid printer

Description:
This program builds a grid based on specific size parameters.
"""
# -------------------------------Import-----------------------------------------

# -------------------------------Functions--------------------------------------


def grid_line(char1, char2, char2num, number):
    """
    This function takes in two single character strings and two integers and
    prints each row of the grid as specified.
    """
    for i in range(number):
        print_grid(char1, char2, char2num)

    return None


def print_grid(char1, char2, char2num):
    """
    This function takes in two single character strings and one integer and
    prints each row of the grid as specified.
    """
    print((char1 * 1) + (char2 * char2num) + (char1 * 1) + (char2 * char2num) +
          (char1 * 1))

    return None


# ==============================================================================
def main():
    """
    Builds a grid based on a specific character and size parameters.
    """
    print_grid('+', '-', 4)
    grid_line('|', ' ', 4, 4)
    print_grid('+', '-', 4)
    grid_line('|', ' ', 4, 4)
    print_grid('+', '-', 4)


if __name__ == '__main__':
    main()<commit_msg>Removed incorrectly constructed print_grid and main methods and added test grid_print method.<commit_after>"""
Name: <NAME>
Date: 10/11/16
Class: Introduction to Python
LAB: grid printer

Description:
This program builds a grid based on specific size parameters.
"""
# -------------------------------Import-----------------------------------------

# -------------------------------Functions--------------------------------------

def grid_print():
    print('+' + (2 * ('-' * 4 + '+')))
    print('|' + (2 * (' ' * 4 + '|')))
    print('|' + (2 * (' ' * 4 + '|')))
    print('|' + (2 * (' ' * 4 + '|')))
    print('|' + (2 * (' ' * 4 + '|')))
    print('+' + (2 * ('-' * 4 + '+')))
    print('|' + (2 * (' ' * 4 + '|')))
    print('|' + (2 * (' ' * 4 + '|')))
    print('|' + (2 * (' ' * 4 + '|')))
    print('|' + (2 * (' ' * 4 + '|')))
    print('+' + (2 * ('-' * 4 + '+')))

def grid_line(char1, char2, char2num, number):
    """
    This function takes in two single character strings and two integers and
    prints each row of the grid as specified.
    """
    for i in range(number):
        print_grid(char1, char2, char2num)

    return None


def print_grid(char1, char2, char2num):
    """
    This function takes in two single character strings and one integer and
    prints each row of the grid as specified.
    """



# ==============================================================================
def main():
    """
    Builds a grid based on a specific character and size parameters.
    """
    grid_print()

if __name__ == '__main__':
    main()
{'fraction_non_alphanumeric': 0.3002099370188943, 'fraction_numerical': 0.024142757172848146, 'mean_word_length': 2.1008676789587852, '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': '2263128', 'n_tokens_mistral': 871, 'n_tokens_neox': 818, 'n_words': 270}