<commit_before>package no.cantara.jau;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;

public class ProcessKiller {
    private static final Logger log = LoggerFactory.getLogger(ProcessKiller.class);
    private static final String RUNNING_PROCESS_FILENAME = "runningProcess.txt";

    public void killExistingProcessIfRunning() {
        Path file = Paths.get(RUNNING_PROCESS_FILENAME);
        if (Files.exists(file)) {
            String pid = null;
            try {<commit_msg>Comment<commit_after>package no.cantara.jau;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;

/**
 * Makes sure any running managed service is killed if JAU should restart
 */
public class ProcessKiller {
    private static final Logger log = LoggerFactory.getLogger(ProcessKiller.class);
    private static final String RUNNING_PROCESS_FILENAME = "runningProcess.txt";

    public void killExistingProcessIfRunning() {
        Path file = Paths.get(RUNNING_PROCESS_FILENAME);
        if (Files.exists(file)) {
            String pid = null;
            try {
{'fraction_non_alphanumeric': 0.09180790960451977, 'fraction_numerical': 0.002824858757062147, 'mean_word_length': 3.920138888888889, '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': '3130694', 'n_tokens_mistral': 433, 'n_tokens_neox': 427, 'n_words': 102}