<commit_before>package co.zpdev.bots.jitters.cmd;

import co.zpdev.bots.core.command.Command;
import co.zpdev.bots.core.exception.ExceptionHandler;
import co.zpdev.bots.jitters.util.MessageUtils;
import net.dv8tion.jda.core.entities.Message;

import java.io.InputStream;
import java.io.InputStreamReader;

public class RestartCommand {

    @Command(aliases = "restart")
    public void onCommand(Message message) {
        if (!message.getAuthor().getId().equals("1<PASSWORD>")) return;

        try {
            MessageUtils.bypassLogs(message);

            InputStream is = Runtime.getRuntime().exec("/home/zp4rker/start-jitters.sh").getInputStream();
            InputStreamReader rd = new InputStreamReader(is);
            int c; StringBuilder sb = new StringBuilder();
            while ((c = rd.read()) != -1) {
                sb.append((char) c);
            }
            rd.close();

            String response = sb.toString().equals("Already up-to-date.") ? "" : "```Updated!```";
            message.getChannel().sendMessage("```" + sb.toString() + "```").complete();
<commit_msg>fix, I think<commit_after>package co.zpdev.bots.jitters.cmd;

import co.zpdev.bots.core.command.Command;
import co.zpdev.bots.core.exception.ExceptionHandler;
import co.zpdev.bots.jitters.util.MessageUtils;
import net.dv8tion.jda.core.entities.Message;

import java.io.InputStream;
import java.io.InputStreamReader;

public class RestartCommand {

    @Command(aliases = "restart")
    public void onCommand(Message message) {
        if (!message.getAuthor().getId().equals("1<PASSWORD>")) return;

        try {
            MessageUtils.bypassLogs(message);

            InputStream is = Runtime.getRuntime().exec("/home/zp4rker/start-jitters.sh").getInputStream();
            InputStreamReader rd = new InputStreamReader(is);
            int c; StringBuilder sb = new StringBuilder();
            while ((c = rd.read()) != -1) {
                sb.append((char) c);
            }
            rd.close();

            String response = sb.toString().contains("Already up-to-date.") ? "" : "```Updated!```";
            message.getChannel().sendMessage("```" + sb.toString() + "```").complete();

{'fraction_non_alphanumeric': 0.1562642369020501, 'fraction_numerical': 0.0036446469248291574, 'mean_word_length': 2.886725663716814, 'pattern_counts': {'":': 0, '<': 5, '<?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': '675848', 'n_tokens_mistral': 674, 'n_tokens_neox': 645, 'n_words': 114}