<commit_before>package main;

import java.io.*;
import java.net.*;
import java.util.Scanner;
import java.util.ArrayList;
import roles.*;

public class Main {
    static final int PORT = 9100;
    static final String HOST = "localhost";
    
    static String uuid;
    static final ArrayList<String> roles = new ArrayList<>();
    static final ArrayList<String> players = new ArrayList<>();
    
    public static void main(String[] args) throws IOException {
        try (
            Socket socket = new Socket(HOST, PORT);
            BufferedReader in = new BufferedReader(new InputStreamReader(socket.getInputStream()));
            PrintWriter out = new PrintWriter(socket.getOutputStream(), true);
            Scanner scan = new Scanner(System.in);
        ) {
            String fromServer;
            while ((fromServer = in.readLine()) != null) {
                Scanner parse = new Scanner(fromServer);
                parse.useDelimiter("=");
                ArrayList<String> message = new ArrayList<>();
                while (parse.hasNext()) {
                    message.add(parse.next());
                }
                if (!message.isEmpty()) {
                    if (message.get(0).equals(">>>")) {
                        System.out.print(">>>");
                        out.println(uuid + " " + scan.nextLine());
                    } else if (message.get(0).equals("uuid")) {
                        uuid = message.get(1);
                    } else if (message.get(0).equals("set")) {
                        Scanner toRoles = new Scanner(message.get(1));
                        toRoles.useDelimiter(",");
                        while (toRoles.hasNext()) {
                            roles.add(toRoles.next());
                        }
                        System.out.println(roles);
                    } else {
                        System.out.println(fromServer);
                    }
                }
            }
        } catch (UnknownHostException e) {
            System.err.println("Don't know about host " + HOST);
            System.exit(1);<commit_msg>Made changes<commit_after>package main;

import java.io.*;
import java.net.*;
import java.util.Scanner;
import java.util.ArrayList;
import roles.*;

public class Main {
    static final int PORT = 9100;
    static final String HOST = "localhost";
    
    static String uuid;
    static final ArrayList<String> roles = new ArrayList<>();
    static final ArrayList<String> players = new ArrayList<>();
    
    public static void main(String[] args) throws IOException {
    	
    	//init objects to to use throughout the code
        try (
            Socket socket = new Socket(HOST, PORT);
            BufferedReader in = new BufferedReader(new InputStreamReader(socket.getInputStream()));
            PrintWriter out = new PrintWriter(socket.getOutputStream(), true);
            Scanner scan = new Scanner(System.in);
        ) {
        	
        	//get the message
            String fromServer;
            while ((fromServer = in.readLine()) != null) {
            	System.out.println(fromServer);
                Scanner parse = new Scanner(fromServer);
                parse.useDelimiter("=");
                ArrayList<String> message = new ArrayList<>();
                while (parse.hasNext()) {
                    message.add(parse.next());
                }
                parse.close();
                if (!message.isEmpty()) {
                    if (message.get(0).equals(">>>")) {
                        out.println(uuid + " " + scan.nextLine());
                    } else if (message.get(0).equals("uuid")) {
                        uuid = message.get(1);
                    } else if (message.get(0).equals("set")) {
                        Scanner toRoles = new Scanner(message.get(1));
                        toRoles.useDelimiter(",");
                        while (toRoles.hasNext()) {
                            roles.add(toRoles.next());
                        }
                        toRoles.close();
                        System.out.println(roles);
                    } else {
                        
                    }
                }
            }
        } catch (UnknownHostException e) {
            System.err.println("Don't know about host " + HOST);
            System.exit(1);
{'fraction_non_alphanumeric': 0.11840589725869616, 'fraction_numerical': 0.0046072333563695, 'mean_word_length': 1.4503386004514673, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 24, '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': '2085348', 'n_tokens_mistral': 1088, 'n_tokens_neox': 1044, 'n_words': 252}