<commit_before># If you set a directory, we will compile the CLI from there, and link
# to it. Probably only useful in development, or in very dire situations.

# node['delivery_build']['cli_dir'] is deprecated, please use node['delivery_build']['delivery-cli']['source_dir'] instead
source_dir = node['delivery_build']['delivery-cli']['source_dir'] || node['delivery_build']['cli_dir']
if source_dir

  execute 'berks vendor cookbooks' do
    cwd "#{source_dir}/cookbooks/delivery_rust"
  end<commit_msg>Make berks vendor run idempotent<commit_after># If you set a directory, we will compile the CLI from there, and link
# to it. Probably only useful in development, or in very dire situations.

# node['delivery_build']['cli_dir'] is deprecated, please use node['delivery_build']['delivery-cli']['source_dir'] instead
source_dir = node['delivery_build']['delivery-cli']['source_dir'] || node['delivery_build']['cli_dir']
if source_dir

  execute 'berks vendor cookbooks' do
    cwd "#{source_dir}/cookbooks/delivery_rust"
    creates  "#{source_dir}/cookbooks/delivery_rust/cookbooks"
  end
{'fraction_non_alphanumeric': 0.1282051282051282, 'fraction_numerical': 0.0, 'mean_word_length': 6.4353741496598635, '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': '176869', 'n_tokens_mistral': 332, 'n_tokens_neox': 326, 'n_words': 99}