<commit_before>require "roger/release"

module RogerThemes
  class XcFinalizer < Roger::Release::Finalizers::Base
    attr_reader :release

    # XC finalizer finalizes designzips.
    #
    # @param [Release] release
    # @param [Hash] options Options hash
    # @option options [String] :prefix ("html") The name to prefix the zipfile with (before version)
    # @option options [String] :zip ("zip") The ZIP command to use
    # @option options [String] :source_path (release.build_path + "themes/*") The paths to zip
    # @option options [String] :target_path (release.build_path + "themes/zips") The path to the zips
    def call(release, options = {})
      options = {
        :prefix => "html",
        :zip => "zip",
        :source_path => release.build_path + "themes/*",
        :target_path => release.build_path + "themes/zips"
      }.update(options)
<commit_msg>Allow prefix to be nil in xc_finalizer<commit_after>require "roger/release"

module RogerThemes
  class XcFinalizer < Roger::Release::Finalizers::Base
    attr_reader :release

    # XC finalizer finalizes designzips.
    #
    # @param [Release] release
    # @param [Hash] options Options hash
    # @option options [String, nil] :prefix (nil) The name to prefix the zipfile with (before version)
    # @option options [String] :zip ("zip") The ZIP command to use
    # @option options [String] :source_path (release.build_path + "themes/*") The paths to zip
    # @option options [String] :target_path (release.build_path + "themes/zips") The path to the zips
    def call(release, options = {})
      options = {
        :prefix => nil,
        :zip => "zip",
        :source_path => release.build_path + "themes/*",
        :target_path => release.build_path + "themes/zips"
      }.update(options)

{'fraction_non_alphanumeric': 0.12387892376681614, 'fraction_numerical': 0.0, 'mean_word_length': 3.3536585365853657, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '2341434', 'n_tokens_mistral': 546, 'n_tokens_neox': 535, 'n_words': 169}