<commit_before>require 'securerandom'
require 'open3'
require 'aws-sdk-core'

def run_puppet(code)
  run = code.strip.gsub("\n", '')
  `bundle exec puppet apply -e "#{run}" --test --modulepath ../`
end

describe "ec2_instance" do
<commit_msg>Use system to trigger Puppet instead of Kernel#`<commit_after>require 'securerandom'
require 'open3'
require 'aws-sdk-core'

def run_puppet(code)
  run = code.strip.gsub("\n", '')
  system("bundle exec puppet apply -e \"#{run}\" --test --modulepath ../")
end

describe "ec2_instance" do

{'fraction_non_alphanumeric': 0.166351606805293, 'fraction_numerical': 0.007561436672967864, 'mean_word_length': 4.408163265306122, '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': '5915584', 'n_tokens_mistral': 197, 'n_tokens_neox': 189, 'n_words': 51}