<commit_before>module Api
  module V2
    module Measures
      class MeasurePresenter < SimpleDelegator
        attr_reader :measure, :duty_expression, :geographical_areas

        def initialize(measure, declarable, geographical_areas)
          super(measure)
          @measure = measure
          @duty_expression = Api::V2::Measures::DutyExpressionPresenter.new(measure, declarable)
          @geographical_areas = geographical_areas
        end

        def excise
          measure.excise?
        end

        def vat
          measure.vat?
        end

        def duty_expression_id
          duty_expression.id
        end

        def geographical_area
          measure.geographical_area || cached_geographical_area
        end

        def geographical_area_id
          geographical_area.geographical_area_id
        end

        def additional_code
          measure.export_refund_nomenclature || measure.additional_code
        end
<commit_msg>added default value for last argument in MeasurePresenter initialization.<commit_after>module Api
  module V2
    module Measures
      class MeasurePresenter < SimpleDelegator
        attr_reader :measure, :duty_expression, :geographical_areas

        def initialize(measure, declarable, geographical_areas = [])
          super(measure)
          @measure = measure
          @duty_expression = Api::V2::Measures::DutyExpressionPresenter.new(measure, declarable)
          @geographical_areas = geographical_areas
        end

        def excise
          measure.excise?
        end

        def vat
          measure.vat?
        end

        def duty_expression_id
          duty_expression.id
        end

        def geographical_area
          measure.geographical_area || cached_geographical_area
        end

        def geographical_area_id
          geographical_area.geographical_area_id
        end

        def additional_code
          measure.export_refund_nomenclature || measure.additional_code
        end

{'fraction_non_alphanumeric': 0.04625439919557567, 'fraction_numerical': 0.002011060834590246, 'mean_word_length': 2.1993569131832795, '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': '4037570', 'n_tokens_mistral': 536, 'n_tokens_neox': 502, 'n_words': 112}