<commit_before>#!/bin/bash
NODE=/home/sdp/bin/node
APP=/home/sdp/webapps/node_demo/index.js

SERVER_FILE=server.pid

# stop if already running
if [[ -f $SERVER_FILE ]]; then
    kill -9 `cat server.pid` & rm server.pid
fi

# start
$NODE $APP &
echo $! > $SERVER_FILE # write 
<commit_msg>Added some doc to start.sh<commit_after>#!/bin/bash

# absolute path to the node executable
NODE=/home/sdp/bin/node

# absolute path to the index script
APP=/home/sdp/webapps/node_demo/index.js

# a file in which to store a running pid
SERVER_FILE=server.pid

# stop if already running
if [[ -f $SERVER_FILE ]]; then
    kill -9 `cat server.pid` && rm server.pid
fi

# if stop unsuccessful, bail
if [[ -f $SERVER_FILE ]]; then
    exit
fi

# start server
$NODE $APP &
echo $! > $SERVER_FILE # write pid to file

{'fraction_non_alphanumeric': 0.1276595744680851, 'fraction_numerical': 0.0025031289111389237, 'mean_word_length': 3.6511627906976742, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '690538', 'n_tokens_mistral': 296, 'n_tokens_neox': 285, 'n_words': 89}