<commit_before>RECIPES = [
  {
    path: 'yum/update.rb',
    tags: %w[common yum]
  }, {
    path: 'basic_tools/install.rb',
    tags: %w[common basic_tools]
  }, {
    path: 'mysql/install.rb',
    tags: %w[common mysql]
  }, {
    path: 'fzf/install.rb',
    tags: %w[common fzf]
  }, {
    path: 'peco/install.rb',
    tags: %w[common peco]
  }, {
    path: 'pt/install.rb',
    tags: %w[common pt]
  }, {
    path: 'jq/install.rb',
    tags: %w[common jq]
  },
]
TAGS = ENV.fetch('TAGS', '').split(/,/)

def build_path(path)
  '../cookbooks/%s' % path
end

RECIPES.each do |recipe|
  if TAGS.empty? || TAGS.any?{ |tag| recipe[:tags].include?(tag) }
    include_recipe build_path(recipe[:path])
  end
end<commit_msg>Fix base role<commit_after>RECIPES = [
  {
    path: 'yum/update.rb',
    tags: %w[common yum],
  }, {
    path: 'basic_tools/install.rb',
    tags: %w[common basic_tools],
  }, {
    path: 'fzf/install.rb',
    tags: %w[common fzf],
  }, {
    path: 'peco/install.rb',
    tags: %w[common peco],
  }, {
    path: 'pt/install.rb',
    tags: %w[common pt],
  }, {
    path: 'jq/install.rb',
    tags: %w[common jq],
  }, {
    path: 'mysql/install.rb',
    tags: %w[common mysql],
  }, {
    path: 'imagemagick/install.rb',
    tags: %w[append imagemagick],
  }, {
    path: 'aws/install.rb',
    tags: %w[append aws],
  },
]
TAGS = ENV.fetch('TAGS', '').split(/,/)

def build_path(path)
  '../cookbooks/%s' % path
end

RECIPES.each do |recipe|
  if TAGS.empty? || TAGS.any?{ |tag| recipe[:tags].include?(tag) }
    include_recipe build_path(recipe[:path])
  end
end
{'fraction_non_alphanumeric': 0.20757097791798107, 'fraction_numerical': 0.0, 'mean_word_length': 2.8401937046004844, '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': '2245621', 'n_tokens_mistral': 675, 'n_tokens_neox': 669, 'n_words': 123}