<commit_before>#!/bin/bash
#
# glassfish-<%= @domain_name %>:          Startup script for Glassfish Application Server for <%= @domain_name %> domain.

<% glassfish_home = "#{node[:glassfish][:base_dir]}/glassfish" %>

export AS_JAVA=<%= node["java"]["java_home"] %>

start() {
        echo -n "Starting Glassfish Domain <%= @domain_name %>: "
        <% log_file = "#{glassfish_home}/domains/#{@domain_name}/logs/startup.log" %>
        su <%= node[:glassfish][:user] %> -c "touch <%= log_file %>"
        echo "Starting Glassfish at `date`" >> <%= log_file %>
        su <%= node[:glassfish][:user] %> -c "<%= @authbind ? "authbind –deep " : "" %><%= glassfish_home %>/bin/asadmin start-domain --domaindir <%= node[:glassfish][:domains_dir] %> <%= @domain_name %>" >> <%= log_file %>
        sleep 2
        echo "done"
}

stop() {
        echo -n "Stopping Glassfish Domain <%= @domain_name %>: "
        <% log_file = "#{glassfish_home}/domains/#{@domain_name}/logs/startup.log" %>
        su <%= node[:glassfish][:user] %> -c "touch <%= log_file %>"
        echo "Stopping Glassfish at `date`" >> <%= log_file %>
        su <%= node[:glassfish][:user] %> -c "<%= @authbind ? "authbind –deep " : "" %><%= glassfish_home %>/bin/asadmin stop-domain --domaindir <%= node[:glassfish][:domains_dir] %> <%= @domain_name %>" >> <%= log_file %>
        echo "done"
}

case "$1" in
        start)<commit_msg>Fix the parameter passed to authbind<commit_after>#!/bin/bash
#
# glassfish-<%= @domain_name %>:          Startup script for Glassfish Application Server for <%= @domain_name %> domain.

<% glassfish_home = "#{node[:glassfish][:base_dir]}/glassfish" %>

export AS_JAVA=<%= node["java"]["java_home"] %>

start() {
        echo -n "Starting Glassfish Domain <%= @domain_name %>: "
        <% log_file = "#{glassfish_home}/domains/#{@domain_name}/logs/startup.log" %>
        su <%= node[:glassfish][:user] %> -c "touch <%= log_file %>"
        echo "Starting Glassfish at `date`" >> <%= log_file %>
        su <%= node[:glassfish][:user] %> -c "<%= @authbind ? "authbind –-deep " : "" %><%= glassfish_home %>/bin/asadmin start-domain --domaindir <%= node[:glassfish][:domains_dir] %> <%= @domain_name %>" >> <%= log_file %>
        sleep 2
        echo "done"
}

stop() {
        echo -n "Stopping Glassfish Domain <%= @domain_name %>: "
        <% log_file = "#{glassfish_home}/domains/#{@domain_name}/logs/startup.log" %>
        su <%= node[:glassfish][:user] %> -c "touch <%= log_file %>"
        echo "Stopping Glassfish at `date`" >> <%= log_file %>
        su <%= node[:glassfish][:user] %> -c "<%= @authbind ? "authbind –-deep " : "" %><%= glassfish_home %>/bin/asadmin stop-domain --domaindir <%= node[:glassfish][:domains_dir] %> <%= @domain_name %>" >> <%= log_file %>
        echo "done"
}

case "$1" in
        start)
{'fraction_non_alphanumeric': 0.22041681384669728, 'fraction_numerical': 0.001412928293889085, 'mean_word_length': 3.3975155279503104, 'pattern_counts': {'":': 0, '<': 55, '<?xml version=': 0, '>': 71, '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': '4503175', 'n_tokens_mistral': 1063, 'n_tokens_neox': 925, 'n_words': 190}