<commit_before>require "digest"

module AssetTrip
  class Asset
    extend Memoizable

    def initialize(config, name, &block)
      @config = config
      @name = name
      instance_eval(&block) if block_given?
    end

    def paths
      files.map do |f|
        f += extension unless f.ends_with?(extension)
        load_path.resolve(f)
      end
    end

    def bundle!
      FileUtils.mkdir_p(File.dirname(path))

      File.open(path, "w") do |file|
        file << contents
      end
    end

    def name
      @config.name
    end

    def md5sum
      @md5sum ||= Digest::MD5.hexdigest(contents)
    end

    def files
      @files ||= []<commit_msg>Remove unused method<commit_after>require "digest"

module AssetTrip
  class Asset
    extend Memoizable

    def initialize(config, name, &block)
      @config = config
      @name = name
      instance_eval(&block) if block_given?
    end

    def paths
      files.map do |f|
        f += extension unless f.ends_with?(extension)
        load_path.resolve(f)
      end
    end

    def bundle!
      FileUtils.mkdir_p(File.dirname(path))

      File.open(path, "w") do |file|
        file << contents
      end
    end

    def md5sum
      @md5sum ||= Digest::MD5.hexdigest(contents)
    end

    def files
      @files ||= []
{'fraction_non_alphanumeric': 0.0973724884080371, 'fraction_numerical': 0.00463678516228748, 'mean_word_length': 2.105515587529976, 'pattern_counts': {'":': 0, '<': 7, '<?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': '2847419', 'n_tokens_mistral': 433, 'n_tokens_neox': 409, 'n_words': 108}