<commit_before>import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.InetAddress;

/**
 * Created by mperrier on 12/04/17.
 */
public class gradiantSetter implements Runnable{


    InetAddress addr;
    int port;

    gradiantSetter(int port, InetAddress addr){
        this.port = port;
        this.addr = addr;
    }

    public void run() {

        while (true) {
            try {
                DatagramSocket socket = new DatagramSocket(port, addr);
                socket.setBroadcast(true);
                DatagramPacket packet;
                byte[] buf = new byte[1000];
                packet = new DatagramPacket(buf, buf.length);

                socket.receive(packet);

                String received = new String(packet.getData());
                System.out.println("Package received: " + received);

                socket.close();

            } catch (Exception e) {
                System.out.println("Erreur :" + e);
            }
        }
    }
}<commit_msg>grad fait threadé<commit_after>import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.InetAddress;

/**
 * Created by mperrier on 12/04/17.
 */
public class gradiantSetter implements Runnable{


    private InetAddress addr;
    private int port;

    gradiantSetter(int port, InetAddress addr){
        this.port = port;
        this.addr = addr;
    }

    public void run() {

        try {
                DatagramSocket socket = new DatagramSocket(port, addr);
                socket.setBroadcast(true);

                while (true) {

                    byte[] buf = new byte[1000];
                    DatagramPacket packet = new DatagramPacket(buf, buf.length);
                    socket.receive(packet);

                    String received = new String(packet.getData());
                    System.out.println("Package received: " + received);
                }

        } catch (Exception e) {
                System.out.println("Erreur :" + e);
        }
    }

}

{'fraction_non_alphanumeric': 0.10148514851485149, 'fraction_numerical': 0.009900990099009901, 'mean_word_length': 1.731081081081081, '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': '1667908', 'n_tokens_mistral': 588, 'n_tokens_neox': 528, 'n_words': 130}