<commit_before>class Packer < Thor
  include Thor::Actions

  desc 'build', 'Build a Packer template'
  def build(template)
    say "Updating cookbooks/", :green
    run "rm -r berks-cookbooks/"
    Berkshelf::Cli.new.invoke :vendor

    say "Building packer template '#{template}'...", :green
    run "packer build -var-file=variables.json #{template}"
  end<commit_msg>Packer build thor task updates berkshelf cookbooks before vendoring them<commit_after>class Packer < Thor
  include Thor::Actions

  desc 'build', 'Build a Packer template'
  def build(template)
    say "Updating cookbooks/", :green
    run "rm -r berks-cookbooks/"
    Berkshelf::Cli.new.invoke :update
    Berkshelf::Cli.new.invoke :vendor

    say "Building packer template '#{template}'...", :green
    run "packer build -var-file=variables.json #{template}"
  end
{'fraction_non_alphanumeric': 0.12276519666269368, 'fraction_numerical': 0.0, 'mean_word_length': 3.883720930232558, 'pattern_counts': {'":': 0, '<': 5, '<?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': '6841580', 'n_tokens_mistral': 270, 'n_tokens_neox': 255, 'n_words': 80}