<commit_before>module Makura
  class Layout
    attr_accessor :design, :name, :map, :reduce

    PATH = [
      './couch',
      File.join(Makura::ROOT, '../couch')
    ]

    def initialize(name, design = nil)
      @name, @design = name, design
      @design[name] = self
      @map = @reduce = nil
      @options = {}
    end

    def load_proto_map(file_or_function, replace = {})
      return unless common_load(:proto_map, file_or_function)
      replace.each{|from, to| @proto_map.gsub!(/"\{\{#{from}\}\}"/, to) }
      @map = @proto_map
    end
<commit_msg>design is not an optional argument<commit_after>module Makura
  class Layout
    attr_accessor :design, :name, :map, :reduce

    PATH = [
      './couch',
      File.join(Makura::ROOT, '../couch')
    ]

    def initialize(name, design)
      @name, @design = name, design
      @design[name] = self
      @map = @reduce = nil
      @options = {}
    end

    def load_proto_map(file_or_function, replace = {})
      return unless common_load(:proto_map, file_or_function)
      replace.each{|from, to| @proto_map.gsub!(/"\{\{#{from}\}\}"/, to) }
      @map = @proto_map
    end

{'fraction_non_alphanumeric': 0.15633187772925763, 'fraction_numerical': 0.0, 'mean_word_length': 2.6037735849056602, 'pattern_counts': {'":': 0, '<': 3, '<?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': '878169', 'n_tokens_mistral': 396, 'n_tokens_neox': 389, 'n_words': 88}