<commit_before>package com.techcavern.wavetact.commandline.utils;

import com.techcavern.wavetact.annot.CMDLine;
import com.techcavern.wavetact.utils.objects.CommandLine;
import com.techcavern.wavetact.utils.fileUtils.Configuration;
import com.techcavern.wavetact.utils.GeneralUtils;

import java.io.File;
import java.util.Scanner;

public class AddServer extends CommandLine {
    @CMDLine
    public AddServer() {
        super(GeneralUtils.toArray("a addserver"), "Create a server configuration file", false);
    }

    @Override
    public void doAction(String[] args) {
        boolean loop = true;
        while (loop) {
            Scanner input = new Scanner(System.in);
            System.out.print("Server name: ");
            String name = input.nextLine();
            Configuration config = new Configuration(new File("servers/", name + ".server"));
            config.set("name", name);
            System.out.print("Server host: ");
            config.set("server", input.nextLine());
            System.out.print("Server nick: ");
            config.set("nick", input.nextLine());
            System.out.print("Channels(#chan1, #chan2): ");
            config.set("channels", input.nextLine());
            System.out.print("Nickserv Pass(empty for none): ");
            config.set("nickserv", input.nextLine());
            System.out.print("Command Prefix: ");
            config.set("prefix", input.nextLine());
            config.save();
            System.out.print("Add another? [y/n]");
            char ans = input.next().charAt(0);
            if (ans == 'n')
                loop = false;
        }
        System.exit(0);
    }

}<commit_msg>update server command to reflect that "False" disables it<commit_after>package com.techcavern.wavetact.commandline.utils;

import com.techcavern.wavetact.annot.CMDLine;
import com.techcavern.wavetact.utils.objects.CommandLine;
import com.techcavern.wavetact.utils.fileUtils.Configuration;
import com.techcavern.wavetact.utils.GeneralUtils;

import java.io.File;
import java.util.Scanner;

public class AddServer extends CommandLine {
    @CMDLine
    public AddServer() {
        super(GeneralUtils.toArray("a addserver"), "Create a server configuration file", false);
    }

    @Override
    public void doAction(String[] args) {
        boolean loop = true;
        while (loop) {
            Scanner input = new Scanner(System.in);
            System.out.print("Server name: ");
            String name = input.nextLine();
            Configuration config = new Configuration(new File("servers/", name + ".server"));
            config.set("name", name);
            System.out.print("Server host: ");
            config.set("server", input.nextLine());
            System.out.print("Server nick: ");
            config.set("nick", input.nextLine());
            System.out.print("Channels(#chan1, #chan2): ");
            config.set("channels", input.nextLine());
            System.out.print("Nickserv Pass(empty for none): ");
            config.set("nickserv (type False to disable)", input.nextLine());
            System.out.print("Command Prefix: ");
            config.set("prefix", input.nextLine());
            config.save();
            System.out.print("Add another? [y/n]");
            char ans = input.next().charAt(0);
            if (ans == 'n')
                loop = false;
        }
        System.exit(0);
    }

}
{'fraction_non_alphanumeric': 0.14126611957796015, 'fraction_numerical': 0.0023446658851113715, 'mean_word_length': 2.4509605662285137, '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': '1919738', 'n_tokens_mistral': 967, 'n_tokens_neox': 967, 'n_words': 198}