<commit_before>module Xmpush
  class IosBuilder < Message
    attr_accessor :sound_url, :badge

    def initialize(**message)
      extra = message.delete(:extra) if message[:extra]
      super(message)
      extra_message = {sound_url: "", badge: 1}
      extra_message.merge!(extra) if extra
      @extra = extra_message
    end

    def build
      if @extra
        extra_message = extra(@extra)
      end
      message = {
        restricted_package_name: @restricted_package_name,
        description: @description
      }
      message.merge!(extra_message)
      return message
    end

  end
end<commit_msg>refactor ios builder<commit_after>module Xmpush
  class IosBuilder < Message
    attr_accessor :sound_url, :badge

    def initialize(**message)
      extra = message.delete(:extra) if message[:extra]
      super(message)
      extra_message = {sound_url: "", badge: 1}
      extra_message.merge!(extra) if extra
      @extra = extra_message
    end

    def build
      extra_message = extra(@extra) if @extra
      message = {
        restricted_package_name: @restricted_package_name,
        description: @description
      }
      message.merge!(extra_message)
      return message
    end

  end
end
{'fraction_non_alphanumeric': 0.08517608517608517, 'fraction_numerical': 0.001638001638001638, 'mean_word_length': 2.703030303030303, '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': '4707021', 'n_tokens_mistral': 364, 'n_tokens_neox': 347, 'n_words': 86}