<commit_before>__author__ = 'sergey'


class PizzaFactory:
    def __init__(self, pizzaType):
        print "I'm pizza Factory"
        self.pizzaType = pizzaType

    def createPizza(self):
        targetPizza = self.pizzaType
        return globals()[targetPizza]()
        #print self.pizza


class AbstractPizza:
    pizza = ""

    def get_pizza(self):

        return self.pizza


class SanFranciscoPizza(AbstractPizza):
    pizza = 'thin crust, lots of cheese, sauce, ham'


class ChicagoPizza(AbstractPizza):
    pizza = 'thin dough, a little cheese, gravy, sausage'


if __name__ == '__main__':
    pizza1 = PizzaFactory('ChicagoPizza')
    print pizza1.createPizza()<commit_msg>comment #1<commit_after>__author__ = 'sergey'


class PizzaFactory:
    def __init__(self, pizzaType):
        print "I'm pizza Factory"
        self.pizzaType = pizzaType

    def createPizza(self):
        targetPizza = self.pizzaType
        return globals()[targetPizza]()
        #print self.pizza


class AbstractPizza:
    pizza = ""

    def get_pizza(self):
        return self.pizza


class SanFranciscoPizza(AbstractPizza):
    pizza = 'thin crust, lots of cheese, sauce, ham'


class ChicagoPizza(AbstractPizza):
    pizza = 'thin dough, a little cheese, gravy, sausage'


if __name__ == '__main__':
    pizza1 = PizzaFactory('ChicagoPizza')
    print pizza1.createPizza()
    pizza2 = PizzaFactory('SanFranciscoPizza')
    print pizza2.createPizza()
{'fraction_non_alphanumeric': 0.1, 'fraction_numerical': 0.004827586206896552, 'mean_word_length': 3.3056379821958455, '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': '6554596', 'n_tokens_mistral': 486, 'n_tokens_neox': 459, 'n_words': 114}