<commit_before>#
# Cookbook Name:: CIS_CentOS7_v1.1.0
# Recipe:: default
#
# Copyright (C) 2015 YOUR_NAME
#
# All rights reserved - Do Not Redistribute
#<commit_msg>Allow for multiple levels of policy.<commit_after>#
# Cookbook Name:: CIS_CentOS7_v1.1.0
# Recipe:: default
#
# Copyright (C) 2015 <NAME>
#
# MIT LICENSE
#

# Depending upon the level the enviroment variable is given 
# when calling vagrant up we will do certain things.
# level 0 will be non-compliant
# level 1 will be level 1 compliant (scored and demo of unscored)
# level 2 will be level 2 compliant (scored and demo of unscored)
case ENV['PF_LEVEL']
when '0'
when '1'
  
when '2'
else
  Chef::Log.warn("Policy level #{ENV['PF_LEVEL']} is not supported at this time.")
  return
end
{'fraction_non_alphanumeric': 0.10386151797603196, 'fraction_numerical': 0.03195739014647137, 'mean_word_length': 4.449275362318841, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '1210261', 'n_tokens_mistral': 272, 'n_tokens_neox': 255, 'n_words': 100}