<commit_before>module Svgeez
  class SvgElement
    def initialize(source, destination)
      @source = source
      @destination = destination
    end

    def build
      %(<svg #{build_attributes}>#{collect_source_files.join}</svg>)
    end

    private

    def build_attributes
      %(id="#{@destination.file_id}" version="1.1" xmlns="http://www.w3.org/2000/svg")
    end

    def collect_source_files
      @source.file_paths.collect do |file_path|
        SymbolElement.new(file_path, @destination.file_id).build
      end
    end
  end
end<commit_msg>Remove build_attributes method and rename collect_source_files method.<commit_after>module Svgeez
  class SvgElement
    def initialize(source, destination)
      @source = source
      @destination = destination
    end

    def build
      %(<svg id="#{@destination.file_id}" version="1.1" xmlns="http://www.w3.org/2000/svg">#{source_files.join}</svg>)
    end

    private

    def source_files
      @source.file_paths.collect do |file_path|
        SymbolElement.new(file_path, @destination.file_id).build
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.10837887067395265, 'fraction_numerical': 0.012750455373406194, 'mean_word_length': 3.1161048689138577, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 2}, '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': '2195478', 'n_tokens_mistral': 351, 'n_tokens_neox': 335, 'n_words': 71}