<commit_before>module Danica
  class Operator::Division < Operator
    variables :numerator, :denominator
    default_value :priority, 2
    default_value :is_grouped?, true

    def to_f
      numerator.to_f / denominator.to_f
    end

    def to_tex
      "\\frac{#{numerator.to_tex}}{#{denominator.to_tex}}"
    end

    def to_gnu
      "(#{numerator.to_gnu})/(#{denominator.to_gnu})"
    end<commit_msg>Add options to division output<commit_after>module Danica
  class Operator::Division < Operator
    variables :numerator, :denominator
    default_value :priority, 2
    default_value :is_grouped?, true

    def to_f
      numerator.to_f / denominator.to_f
    end

    def to_tex(**options)
      "\\frac{#{numerator.to_tex(options)}}{#{denominator.to_tex(options)}}"
    end

    def to_gnu(**options)
      "(#{numerator.to_gnu(options)})/(#{denominator.to_gnu(options)})"
    end
{'fraction_non_alphanumeric': 0.12570145903479238, 'fraction_numerical': 0.002244668911335578, 'mean_word_length': 3.4824120603015074, 'pattern_counts': {'":': 0, '<': 5, '<?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': '6936437', 'n_tokens_mistral': 316, 'n_tokens_neox': 304, 'n_words': 57}