<commit_before>#  File       :	twelve_days.py
#  Purpose    :	Write a program that outputs the lyrics to 'The Twelve Days '
#  Programmer : <NAME>
#  Course     :	Exercism
#  Date       :	Saturday 8 October 2016, 06:45 PM
import inflect
p = inflect.engine()
word_form = p.number_to_words(5)
ordinal_word = p.ordinal(word_form)

gift = ["Drummers Drumming", 'Pipers Piping', 'Lords-a-Leaping',
        'adies Dancing', 'Maids-a-Milking','Swans-a-Swimming',
        'Geese-a-Laying','Gold Rings', 'Calling Birds',' French Hens',
        'Turtle Doves', 'Partridge']
gift_key = [x for x in range(1, 13)]
gifts = dict(zip(gift_key, reversed(gift)))

def sing():
    pass


def verse(v):
    p = inflect.engine()
    day = p.number_to_words(v)
    day_count = p.ordinal(day)
    if v <= 1:
            print "On the %s day of Christmas my true love gave to me, \
a %s in a Pear Tree." % (day_count, gifts[v])
    if v > 1:
        gift
        print "On the %s day of Christmas my true love gave to me, \
%s %s,and a %s in a Pear Tree." % (day_count, day, gifts[v], gifts[1])

def verses(v1, v2):
    pass<commit_msg>Add conditions to verse function<commit_after>#  File       :	twelve_days.py
#  Purpose    :	Write a program that outputs the lyrics to 'The Twelve Days '
#  Programmer : <NAME>
#  Course     :	Exercism
#  Date       :	Saturday 8 October 2016, 06:45 PM
import inflect
gift = ["Drummers Drumming", 'Pipers Piping', 'Lords-a-Leaping',
        'adies Dancing', 'Maids-a-Milking','Swans-a-Swimming',
        'Geese-a-Laying','Gold Rings', 'Calling Birds',' French Hens',
        'Turtle Doves', 'a Partridge in a Pear Tree.\n']
gift_key = [x for x in range(1, 13)]
gifts = dict(zip(gift_key, reversed(gift)))

def sing():
    pass


def verse(v):
    p = inflect.engine()
    day = p.number_to_words(v)
    day_count = p.ordinal(day)
    if v == 1:
        lyric = "On the %s day of Christmas my true love gave to me," % (day_count)
        lyric = lyric + gifts[v]
        return lyric
    if v > 1:
        lyric = "On the %s day of Christmas my true love gave to me," % (day_count)
        lyric = lyric + gifts[v]
        return lyric
def verses(v1, v2):
    pass

print verse(2)
{'fraction_non_alphanumeric': 0.13099041533546327, 'fraction_numerical': 0.01597444089456869, 'mean_word_length': 2.8055555555555554, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 7, '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': '2237257', 'n_tokens_mistral': 846, 'n_tokens_neox': 794, 'n_words': 255}