<commit_before># _*_coding:utf-8_*_
# 客户端程序

from socket import *
import time
from sys import exit
import notebooknets

def main():
    BUF_SIZE = 65565
    ss_addr = ('127.0.0.1', 8800)
    cs = socket(AF_INET, SOCK_DGRAM)
    notebooknets.printhistory()
    while True:
        global data
        data = raw_input('Please Input data>')
        if data == 'quit':
            exit(0)
        else:
            cs.sendto(data, ss_addr)
            data, addr = cs.recvfrom(BUF_SIZE)
            print "Data: ", data  
            notebooknets.save(data)      
    cs.close

if __name__ == '__main__':
    main()
<commit_msg>Update notebooknetc.py<commit_after># _*_coding:utf-8_*_
# 客户端程序

from socket import *
import time
from sys import exit
import notebooknets

def main():
    BUF_SIZE = 65565
    ss_addr = ('127.0.0.1', 8800)
    cs = socket(AF_INET, SOCK_DGRAM)
    notebooknets.printhistory()
    while True:
        global data
        data = raw_input('今日记录，请输入（输入'quit'退出程序）：')
        if data == 'quit':
            exit(0)
        else:
            cs.sendto(data, ss_addr)
            data, addr = cs.recvfrom(BUF_SIZE)
            print "Data: ", data  
            notebooknets.save(data)      
    cs.close

if __name__ == '__main__':
    main()

{'fraction_non_alphanumeric': 0.11392405063291139, 'fraction_numerical': 0.02689873417721519, 'mean_word_length': 2.123456790123457, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '2344119', 'n_tokens_mistral': 479, 'n_tokens_neox': 456, 'n_words': 103}