<commit_before>
class Money(object):

    def __init__(self, amount):
        self._amount = amount

    @property
    def amount(self):
        return self._amount

    def equals(self, money):
        return self._amount == money.amount and type(self) == type(money)


class Dollar(Money):

    def __init__(self, amount):
        super(Dollar, self).__init__(amount)

    def times(self, multiplier):
        return Dollar(self._amount * multiplier)


class Franc(Money):

    def __init__(self, amount):
        super(Franc, self).__init__(amount)

    def times(self, multiplier):
        return Franc(self._amount * multiplier)<commit_msg>moving toward times in money 2<commit_after>
import abc


class Money(object):
    __metaclass__ = abc.ABCMeta

    def __init__(self, amount, currency):
        self._amount = amount
        self._currency = currency

    @property
    def amount(self):
        return self._amount

    def currency(self):
        return self._currency

    def equals(self, money):
        return self._amount == money.amount and type(self) == type(money)

    @abc.abstractmethod
    def times(self, multiplier):
        return

    @staticmethod
    def dollar(amount):
        return Dollar(amount, 'USD')

    @staticmethod
    def franc(amount):
        return Franc(amount, 'CHF')


class Dollar(Money):

    def __init__(self, amount, currency):
        super(Dollar, self).__init__(amount, currency)

    def times(self, multiplier):
        return Money.dollar(self._amount * multiplier)


class Franc(Money):

    def __init__(self, amount, currency):
        super(Franc, self).__init__(amount, currency)

    def times(self, multiplier):
        return Money.franc(self._amount * multiplier)
{'fraction_non_alphanumeric': 0.10668973471741638, 'fraction_numerical': 0.0005767012687427913, 'mean_word_length': 2.925339366515837, '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': '7292643', 'n_tokens_mistral': 526, 'n_tokens_neox': 478, 'n_words': 132}