<commit_before>#!/bin/bash

RUN_DIR=/var/vcap/sys/run/ntpd
# PID_FILE is created by named, not by this script
PID_FILE=${RUN_DIR}/ntpd.pid
# ntpd is on stemcell by default

case $1 in

  start)
    mkdir -p $RUN_DIR
    chown -R vcap:vcap $RUN_DIR
    exec /var/vcap/packages/ntpd-4.2.8p2/sbin/ntpd -u vcap:vcap -p $PID_FILE -c /var/vcap/jobs/ntpd/etc/ntp.conf
    ;;

  stop)
    PID=$(cat $PID_FILE)
    kill -TERM $PID
    sleep 1
    kill -KILL $PID

    rm -rf $PID_FILE
    ;;

  *)
    echo "Usage: ctl {start|stop}" ;;

esac<commit_msg>Point to the [hopefully] correct executable<commit_after>#!/bin/bash

RUN_DIR=/var/vcap/sys/run/ntpd
# PID_FILE is created by named, not by this script
PID_FILE=${RUN_DIR}/ntpd.pid
# ntpd is on stemcell by default

case $1 in

  start)
    mkdir -p $RUN_DIR
    chown -R vcap:vcap $RUN_DIR
    exec /var/vcap/packages/ntp-4.2.8p2/usr/sbin/ntpd -u vcap:vcap -p $PID_FILE -c /var/vcap/jobs/ntpd/etc/ntp.conf
    ;;

  stop)
    PID=$(cat $PID_FILE)
    kill -TERM $PID
    sleep 1
    kill -KILL $PID

    rm -rf $PID_FILE
    ;;

  *)
    echo "Usage: ctl {start|stop}" ;;

esac
{'fraction_non_alphanumeric': 0.13826940231935772, 'fraction_numerical': 0.010704727921498661, 'mean_word_length': 2.6310679611650487, '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': '2613690', 'n_tokens_mistral': 517, 'n_tokens_neox': 474, 'n_words': 116}