<commit_before>#!/bin/sh

# Reload profile if it exists.
if [ -f /etc/profile ];
then
    echo "Reload profile data."
    source /etc/profile
fi

# Load config file if it exists.
if [ -f /etc/sysconfig/frontend_config ];
then
  echo "Load config."
  source /etc/sysconfig/frontend_config
fi

if [ ! -z "$FRONTEND_HOME" ];
then
  # FRONTEND_HOME is set, us it.
  component_home=$FRONTEND_HOME/bin
else
  # FRONTEND_HOME is not set.
  component_home=$(pwd)
fi

# Use JAVA_HOME if it is set.
if [ ! -z "$JAVA_HOME" ];
then
    # JAVA_HOME is set, use it.
    $JAVA_HOME/bin/java -jar $component_home/../lib/FrontEnd.jar -p $component_home/../var/specs_monitoring_nmap_frontend.pid
else
    # JAVA_HOME is NOT set.
    java -jar $component_home/../lib/FrontEnd.jar -p $component_home/../var/specs_monitoring_nmap_frontend.pid
fi<commit_msg>Detach process from it's parent.<commit_after>#!/bin/sh

# Reload profile if it exists.
if [ -f /etc/profile ];
then
    echo "Reload profile data."
    source /etc/profile
fi

# Load config file if it exists.
if [ -f /etc/sysconfig/frontend_config ];
then
  echo "Load config."
  source /etc/sysconfig/frontend_config
fi

if [ ! -z "$FRONTEND_HOME" ];
then
  # FRONTEND_HOME is set, us it.
  component_home=$FRONTEND_HOME/bin
else
  # FRONTEND_HOME is not set.
  component_home=$(pwd)
fi

# Use JAVA_HOME if it is set.
if [ ! -z "$JAVA_HOME" ];
then
    # JAVA_HOME is set, use it.
    $JAVA_HOME/bin/java -jar $component_home/../lib/FrontEnd.jar -p $component_home/../var/specs_monitoring_nmap_frontend.pid &
    disown
else
    # JAVA_HOME is NOT set.
    java -jar $component_home/../lib/FrontEnd.jar -p $component_home/../var/specs_monitoring_nmap_frontend.pid &
    disown
fi
{'fraction_non_alphanumeric': 0.12463599301106582, 'fraction_numerical': 0.0, 'mean_word_length': 3.2524752475247523, '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': '4622929', 'n_tokens_mistral': 662, 'n_tokens_neox': 648, 'n_words': 167}