<commit_before>#
# Cookbook Name:: delivery-red-pill
# Recipe:: functional
#
# Copyright (c) 2015 The Authors, All Rights Reserved.
include_recipe 'delivery-truck::provision'

if node['delivery']['change']['pipeline'] == 'master'
  delivery_change_db node['delivery']['change']['change_id'] do
    action :download
  end

  ## Monitor pipeline acceptance stages for completion.
  delivery_in_parallel do
    matrix = node['delivery-red-pill']['acceptance']['matrix']
    for vector in matrix do
      build_cookbook_wait_for_stage "Wait for #{node['delivery']['change']['stage']} case #{phase}" do
        change_id lazy { node.run_state['delivery']['change']['data']['spawned_changes'][vector] }
        stage node['delivery']['change']['stage']
      end
    end
  end
else
  include_recipe "delivery-red-pill::_include_build_cb_recipe"
end
<commit_msg>Fixing the functional phase.<commit_after>#
# Cookbook Name:: delivery-red-pill
# Recipe:: functional
#
# Copyright (c) 2015 The Authors, All Rights Reserved.
include_recipe 'delivery-truck::provision'

if node['delivery']['change']['pipeline'] == 'master'
  delivery_change_db node['delivery']['change']['change_id'] do
    action :download
  end

  ## Monitor pipeline acceptance stages for completion.
  delivery_in_parallel do
    matrix = node['delivery-red-pill']['acceptance']['matrix']
    for vector in matrix do
      build_cookbook_wait_for_stage "Wait for #{node['delivery']['change']['stage']} case #{vector}" do
        change_id lazy { node.run_state['delivery']['change']['data']['spawned_changes'][vector] }
        stage node['delivery']['change']['stage']
      end
    end
  end
else
  include_recipe "delivery-red-pill::_include_build_cb_recipe"
end

{'fraction_non_alphanumeric': 0.15005793742757823, 'fraction_numerical': 0.004634994206257242, 'mean_word_length': 5.234657039711191, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5563154', 'n_tokens_mistral': 525, 'n_tokens_neox': 524, 'n_words': 121}