<commit_before>module GnCrossmap
  # Saves output from GN Resolver to disk
  class Writer
    def initialize(output_io, original_fields, output_name)
      @output_io = output_io
      @output_fields = output_fields(original_fields)
      @output = CSV.new(@output_io)
      @output << @output_fields
      @output_name = output_name
      GnCrossmap.log("Open output to #{@output_name}")
    end

    def write(record)
      @output << record
    end
<commit_msg>Fix #22 change comma separator to tab for output<commit_after>module GnCrossmap
  # Saves output from GN Resolver to disk
  class Writer
    def initialize(output_io, original_fields, output_name)
      @output_io = output_io
      @output_fields = output_fields(original_fields)
      @output = CSV.new(@output_io, col_sep: "\t")
      @output << @output_fields
      @output_name = output_name
      GnCrossmap.log("Open output to #{@output_name}")
    end

    def write(record)
      @output << record
    end

{'fraction_non_alphanumeric': 0.08793456032719836, 'fraction_numerical': 0.002044989775051125, 'mean_word_length': 3.331858407079646, 'pattern_counts': {'":': 0, '<': 11, '<?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': '1649985', 'n_tokens_mistral': 308, 'n_tokens_neox': 298, 'n_words': 80}