<commit_before>#!/usr/bin/env bash

NAME=<%= name %>
DEPLOYMENT_NAME=<%= spec.deployment %>
# Set directories
PACKAGES_DIR=${BOSH_PACKAGES_DIR:-/var/vcap/jobs/$JOB_NAME/packages}
JOBS_DIR=${BOSH_JOBS_DIR:-/var/vcap/jobs}
JOB_DIR=${JOBS_DIR}/${JOB_NAME}
LOGS_DIR=/var/vcap/sys/log

<% if_p('env.http_proxy') do |http_proxy| %>
export HTTP_PROXY=<%= http_proxy %>
export http_proxy=<%= http_proxy %>
<% end %>
<% if_p('env.https_proxy') do |https_proxy| %>
export HTTPS_PROXY=<%= https_proxy %>
export https_proxy=<%= https_proxy %>
<% end %>
<% if_p('env.no_proxy') do |no_proxy| %>
export NO_PROXY=<%= no_proxy %>
export no_proxy=<%= no_proxy %>
<% end %>

# create dir for logs
if [ ! -d "$LOGS_DIR/ironic_cpi" ]; then
    mkdir -p $LOGS_DIR/ironic_cpi
    chmod 0755 $LOGS_DIR/ironic_cpi
    chown vcap:vcap $LOGS_DIR/ironic_cpi
fi

# Add all packages' /bin & /sbin into $PATH
for package_bin_dir in $(ls -d ${PACKAGES_DIR}/*/*bin); do
  export PATH=${package_bin_dir}:$PATH
done

# Python modules
export PYTHONPATH=${PYTHONPATH:-''}<commit_msg>fix variable NAME<commit_after>#!/usr/bin/env bash

NAME=<%= name %>
DEPLOYMENT_NAME=<%= spec.deployment %>
# Set directories
PACKAGES_DIR=${BOSH_PACKAGES_DIR:-/var/vcap/jobs/$NAME/packages}
JOBS_DIR=${BOSH_JOBS_DIR:-/var/vcap/jobs}
JOB_DIR=${JOBS_DIR}/${NAME}
LOGS_DIR=/var/vcap/sys/log

<% if_p('env.http_proxy') do |http_proxy| %>
export HTTP_PROXY=<%= http_proxy %>
export http_proxy=<%= http_proxy %>
<% end %>
<% if_p('env.https_proxy') do |https_proxy| %>
export HTTPS_PROXY=<%= https_proxy %>
export https_proxy=<%= https_proxy %>
<% end %>
<% if_p('env.no_proxy') do |no_proxy| %>
export NO_PROXY=<%= no_proxy %>
export no_proxy=<%= no_proxy %>
<% end %>

# create dir for logs
if [ ! -d "$LOGS_DIR/ironic_cpi" ]; then
    mkdir -p $LOGS_DIR/ironic_cpi
    chmod 0755 $LOGS_DIR/ironic_cpi
    chown vcap:vcap $LOGS_DIR/ironic_cpi
fi

# Add all packages' /bin & /sbin into $PATH
for package_bin_dir in $(ls -d ${PACKAGES_DIR}/*/*bin); do
  export PATH=${package_bin_dir}:$PATH
done

# Python modules
export PYTHONPATH=${PYTHONPATH:-''}
{'fraction_non_alphanumeric': 0.1799043062200957, 'fraction_numerical': 0.003827751196172249, 'mean_word_length': 5.4338461538461535, 'pattern_counts': {'":': 0, '<': 31, '<?xml version=': 0, '>': 31, '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': '4538299', 'n_tokens_mistral': 948, 'n_tokens_neox': 859, 'n_words': 163}