<commit_before>"""
Name: <NAME>
Date: 11/15/16
Class: Introduction to Python
Session05
LAB: Dictionaries

Description:

"""

# -------------------------------Imports----------------------------------------


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


def print_colors(fore_color='Blue', back_color='Green', link_color='White',
                 visited_color='Yellow'):
    """
    Take in strings representing the color of the foreground, background, links
    and visited links of a website and display the them.
    """
    print("Foreground: {} Background: {} Links: {} Visited links: "
          "{}".format(fore_color, back_color, link_color, visited_color))
    print("Foreground: {} Background: {} Links: {} Visited links: "
          "{}".format(fore_color, back_color, link_color, visited_color))
    print("Foreground: {} Background: {} Links: {} Visited links: "
          "{}".format(fore_color, back_color, link_color, visited_color))

# ==============================================================================


def main():
    """
    Tests output.
    """
    print_colors()
    print_colors('Purple')
    print_colors(back_color='Black', visited_color='Pink')

if __name__ == '__main__':
    main()<commit_msg>Added new version of print_colors method in-order to use kwargs.<commit_after>"""
Name: <NAME>
Date: 11/15/16
Class: Introduction to Python
Session05
LAB: Dictionaries

Description:

"""

# -------------------------------Imports----------------------------------------


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


def print_colors(fore_color='Blue', back_color='Green', link_color='White',
                 visited_color='Yellow'):
    """
    Take in strings representing the color of the foreground, background, links
    and visited links of a website and display the them.
    """
    print("Foreground: {} Background: {} Links: {} Visited links: "
          "{}".format(fore_color, back_color, link_color, visited_color))


def print_colors2(**kwargs):
    """
    Take in strings representing the color of the foreground, background, links
    and visited links of a website and display the them.
    """
    print("Foreground: {fore_color} Background: {back_color}"
          "Links: {link_color} Visited"
          "links: {visited_color}".format(**kwargs))


# ==============================================================================


def main():
    """
    Tests output.
    """
    print_colors()
    print_colors('Purple')
    print_colors(back_color='Black', visited_color='Pink')

    print_colors2(fore_color='Blue', back_color='Green', link_color='White',
                  visited_color='Yellow')

if __name__ == '__main__':
    main()
{'fraction_non_alphanumeric': 0.27046520014424813, 'fraction_numerical': 0.006491164803461955, 'mean_word_length': 2.5292620865139948, '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': '3506003', 'n_tokens_mistral': 743, 'n_tokens_neox': 703, 'n_words': 186}