<commit_before># encoding: UTF-8
module Axlsx
  # The core object for the package.
  # @note Packages manage their own core object.
  # @see Package#core
  class Core
    # The author of the document. By default this is 'axlsx'
    # @return [String]
    attr_accessor :creator

    # Creates a new Core object.
    # @option options [String] creator
    def initialize(options={})
      @creator = options[:creator] || 'axlsx'
    end

    # serializes the core.xml document
    # @return [String]
    def to_xml_string(str = '')
      str << '<?xml version="1.0" encoding="UTF-8"?>'
      str << '<cp:coreProperties xmlns:cp="' << CORE_NS << '" xmlns:dc="' << CORE_NS_DC << '" '
      str << 'xmlns:dcmitype="' << CORE_NS_DCMIT << '" xmlns:dcterms="' << CORE_NS_DCT << '" '
      str << 'xmlns:xsi="' << CORE_NS_XSI << '">'
      str << '<dc:creator>' << self.creator << '</dc:creator>'
      str << '<dcterms:created xsi:type="dcterms:W3CDTF">' << Time.now.strftime('%Y-%m-%dT%H:%M:%S') << '</dcterms:created>'
      str << '<cp:revision>0</cp:revision>'
      str << '</cp:coreProperties>'
    end
  end
end<commit_msg>Google Docs interoperability<commit_after># encoding: UTF-8
module Axlsx
  # The core object for the package.
  # @note Packages manage their own core object.
  # @see Package#core
  class Core
    # The author of the document. By default this is 'axlsx'
    # @return [String]
    attr_accessor :creator

    # Creates a new Core object.
    # @option options [String] creator
    def initialize(options={})
      @creator = options[:creator] || 'axlsx'
    end

    # serializes the core.xml document
    # @return [String]
    def to_xml_string(str = '')
      str << '<?xml version="1.0" encoding="UTF-8"?>'
      str << '<cp:coreProperties xmlns:cp="' << CORE_NS << '" xmlns:dc="' << CORE_NS_DC << '" '
      str << 'xmlns:dcmitype="' << CORE_NS_DCMIT << '" xmlns:dcterms="' << CORE_NS_DCT << '" '
      str << 'xmlns:xsi="' << CORE_NS_XSI << '">'
      str << '<dc:creator>' << self.creator << '</dc:creator>'
      str << '<dcterms:created xsi:type="dcterms:W3CDTF">' << Time.now.strftime('%Y-%m-%dT%H:%M:%S') << 'Z</dcterms:created>'
      str << '<cp:revision>0</cp:revision>'
      str << '</cp:coreProperties>'
    end
  end
end
{'fraction_non_alphanumeric': 0.1856763925729443, 'fraction_numerical': 0.005305039787798408, 'mean_word_length': 3.3104761904761904, 'pattern_counts': {'":': 0, '<': 109, '<?xml version=': 2, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 16}, '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': '939812', 'n_tokens_mistral': 830, 'n_tokens_neox': 807, 'n_words': 187}