<commit_before>#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <signal.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <unistd.h>
#include <sys/reboot.h>

/* the init script path */
#define INIT_SCRIPT_PATH "/etc/init.d/startup"

/* the shutdown script path */
#define SHUTDOWN_SCRIPT_PATH "/etc/init.d/shutdown"

#define PRINT(x) (void) write(STDOUT_FILENO, x, sizeof(x))

void _signal_handler(int type, siginfo_t *info, void *context) {
	(void) waitpid(info->si_pid, NULL, WNOHANG);
}

bool _run_script(const char *path, pid_t *pid) {
	/* the return value */
	bool is_success = false;

	/* the process ID */
	pid_t parent_pid;

	/* the process signal mask */
	sigset_t signal_mask;

	/* get the process ID */
	parent_pid = getpid();

	/* empty the signal mask */
	if (-1 == sigemptyset(&signal_mask))<commit_msg>Changed the init script paths to those of Puppy Linux.<commit_after>#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <signal.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <unistd.h>
#include <sys/reboot.h>

/* the init script path */
#define INIT_SCRIPT_PATH "/etc/rc.d/rc.sysinit"

/* the shutdown script path */
#define SHUTDOWN_SCRIPT_PATH "/etc/rc.d/rc.shutdown"

#define PRINT(x) (void) write(STDOUT_FILENO, x, sizeof(x))

void _signal_handler(int type, siginfo_t *info, void *context) {
	(void) waitpid(info->si_pid, NULL, WNOHANG);
}

bool _run_script(const char *path, pid_t *pid) {
	/* the return value */
	bool is_success = false;

	/* the process ID */
	pid_t parent_pid;

	/* the process signal mask */
	sigset_t signal_mask;

	/* get the process ID */
	parent_pid = getpid();

	/* empty the signal mask */
	if (-1 == sigemptyset(&signal_mask))
{'fraction_non_alphanumeric': 0.1517599538372764, 'fraction_numerical': 0.001154068090017311, 'mean_word_length': 4.302752293577981, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 21, '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': '703390', 'n_tokens_mistral': 674, 'n_tokens_neox': 653, 'n_words': 174}