<commit_before>#!/usr/bin/env python

import os
import sys

from converter import Converter

if __name__ == "__main__":

    converter = Converter()

    while True:
        choice = raw_input("choose fahrenheit (F), celsius (C) or quit (Q): ")

        if choice in ["Q", "q"]:
            break

        elif choice in ["F", "f"]:
            temp_f = float(raw_input("enter temperature in fahrenheit: "))
            converter.convert_f_to_c(temp_f)

        elif choice in ["C", "c"]:
            temp_c = float(raw_input("enter temperature in centigrade: "))
            converter.convert_c_to_f(temp_c)

        else:
            print "unkonwn choice; try again"
            continue

        print converter<commit_msg>reset initial version of code<commit_after>#!/usr/bin/env python

import os
import sys

#from converter import Converter

def convert_f_to_c(temp_f):
    temp_c = (5.0/9.0) * (temp_f - 32.0)
    return temp_c


if __name__ == "__main__":

    temp_f = float(raw_input("enter temperature in fahrenheit: "))
    temp_c = convert_f_to_c(temp_f)

    print "%s degrees C and %s degrees F" % (temp_c, temp_f)


#########
# ideas #
#########

# 1. add a function for c_to_f
# 2. add a class to store those fns
# 3. add a loop to keep asking for input until the user hits "q"
# 4. add some if statements to print different things depending on the temparature


{'fraction_non_alphanumeric': 0.11376811594202899, 'fraction_numerical': 0.007971014492753623, 'mean_word_length': 2.7425474254742546, 'pattern_counts': {'":': 2, '<': 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': '7218455', 'n_tokens_mistral': 473, 'n_tokens_neox': 450, 'n_words': 146}