<commit_before>module Danica
  module BaseOperations
    def +(other)
      return other + self if other.is_a?(Operator::Addition)
      addition(self, other)
    end

    def *(other)
      return other * self if other.is_a?(Operator::Multiplication)
      multiplication(self, other)
    end

    def /(other)
      division(self, other)
    end

    def -(other)
      self + negative(other)
    end

    def **(other)
      power(self, other)
    end

    def -@
      Wrapper::Negative.new(self)
    end
  end
end
<commit_msg>Use DSL<commit_after>module Danica
  module BaseOperations
    def +(other)
      return other + self if other.is_a?(Operator::Addition)
      addition(self, other)
    end

    def *(other)
      return other * self if other.is_a?(Operator::Multiplication)
      multiplication(self, other)
    end

    def /(other)
      division(self, other)
    end

    def -(other)
      self + negative(other)
    end

    def **(other)
      power(self, other)
    end

    def -@
      negative(self)
    end
  end
end

{'fraction_non_alphanumeric': 0.10258868648130393, 'fraction_numerical': 0.0, 'mean_word_length': 2.272727272727273, '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': '6619718', 'n_tokens_mistral': 341, 'n_tokens_neox': 329, 'n_words': 89}