<commit_before>#
# Cookbook Name: wt_cam_db
# Recipe: default
# Author: <NAME>(<<EMAIL>>)
#
# Copyright 2012, Webtrends
#
# All rights reserved - Do Not Redistribute

#Properties
auth_data = data_bag_item('authorization', node.chef_environment)

camdbhost      = node['wt_cam_db']['db_server']
domain         = node['authorization']['ad_auth']['ad_network']
installerlogin = auth_data['wt_common']['install_acct']
uilogin        = auth_data['wt_common']['ui_acct']

download_url = node['wt_cam_db']['download_url']

if ENV["deploy_build"] then
  log "The deploy_build value is true, so we will grab the camdb zip and install"
 
  windows_zipfile Chef::Config[:file_cache_path] do
    source download_url
    overwrite true
    action :unzip
  end

  log "Calling #{Chef::Config[:file_cache_path]}/release/Deploy_CAM.bat #{camdbhost} #{domain} #{installerlogin} #{uilogin}"

  execute "Deploy_CAM.bat" do
    cwd "#{Chef::Config[:file_cache_path]}/release"
<<<<<<< HEAD
    command "start Deploy_CAM.bat #{camdbhost} #{domain} #{installerlogin} #{uilogin}"
=======
    command "SetPath.bat \"C:\\Program Files\\Microsoft SQL Server\\100\\Tools\\Binn\\\" & Deploy_CAM.bat #{camdbhost} #{domain} #{installerlogin} #{uilogin}"
>>>>>>> develop
    action :run
  end
end
<commit_msg>changing SetPAth.bat syntax<commit_after>#
# Cookbook Name: wt_cam_db
# Recipe: default
# Author: <NAME>(<<EMAIL>>)
#
# Copyright 2012, Webtrends
#
# All rights reserved - Do Not Redistribute

#Properties
auth_data = data_bag_item('authorization', node.chef_environment)

camdbhost      = node['wt_cam_db']['db_server']
domain         = node['authorization']['ad_auth']['ad_network']
installerlogin = auth_data['wt_common']['install_acct']
uilogin        = auth_data['wt_common']['ui_acct']

download_url = node['wt_cam_db']['download_url']

if ENV["deploy_build"] then
  log "The deploy_build value is true, so we will grab the camdb zip and install"
 
  windows_zipfile Chef::Config[:file_cache_path] do
    source download_url
    overwrite true
    action :unzip
  end

  log "Calling #{Chef::Config[:file_cache_path]}/release/Deploy_CAM.bat #{camdbhost} #{domain} #{installerlogin} #{uilogin}"

  execute "Deploy_CAM.bat" do
    cwd "#{Chef::Config[:file_cache_path]}/release"
    command "SetPath.bat \"C:\\Program Files\\Microsoft SQL Server\\100\\Tools\\Binn\\\" & Deploy_CAM.bat #{camdbhost} #{domain} #{installerlogin} #{uilogin}"
    action :run
  end
end

{'fraction_non_alphanumeric': 0.15261865793780688, 'fraction_numerical': 0.0057283142389525366, 'mean_word_length': 5.158690176322418, 'pattern_counts': {'":': 0, '<': 16, '<?xml version=': 0, '>': 16, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5548741', 'n_tokens_mistral': 859, 'n_tokens_neox': 828, 'n_words': 183}