<commit_before>#!/usr/bin/env python

import ConfigParser
import socket
import os
import json

def main():
    server = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
    if os.path.exists("/tmp/judge_root2.sock"):
        os.unlink("/tmp/judge_root2.sock")
    server.bind("/tmp/judge_root2.sock")
    os.system('chmod 777 /tmp/judge_root2.sock')
    server.listen(0)
    while True:
        connection, address = server.accept()
        cur = connection.recv(1024).decode()
        cmd = "/opt/slurm/bin/srun /opt/OJ/judge/judge.py " + cur
        connection.close()

if __name__ == '__main__':
    main()<commit_msg>comit oj_d<commit_after>#!/usr/bin/env python

import ConfigParser
import socket
import os
import json

def main():
    server = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
    if os.path.exists("/tmp/judge_root2.sock"):
        os.unlink("/tmp/judge_root2.sock")
    server.bind("/tmp/judge_root2.sock")
    os.system('chmod 777 /tmp/judge_root2.sock')
    server.listen(0)
    while True:
        connection, address = server.accept()
        cur = connection.recv(1024).decode()
        cmd = "/opt/slurm/bin/srun /opt/OJ/judge/judge.py " + cur
        os.system(cmd)
        connection.close()

if __name__ == '__main__':
    main()
{'fraction_non_alphanumeric': 0.1463607594936709, 'fraction_numerical': 0.0189873417721519, 'mean_word_length': 2.9779874213836477, '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': '7607652', 'n_tokens_mistral': 460, 'n_tokens_neox': 434, 'n_words': 79}