<commit_before># coding: utf-8
# <EMAIL>
# github.com/zhangxiaoyang

import socket
import traceback

class GstoreConnector:

    def _connect(self):
        try:
            self._sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)  
            self._sock.connect((self.ip, self.port))  
            return True
        except Exception, e:
            print 'socket disconnection error. @GstoreConnector.disconnect'
            traceback.print_exc()
        return False

    def _disconnect(self):
        try:
            self._sock.close()  
            return True
        except Exception, e:
            print 'socket disconnection error. @GstoreConnector.disconnect'
            traceback.print_exc()
        return False

    def _send(self, msg):
        data = self._pack(msg)
        self._sock.send(data)
        return True

    def _recv(self):
        head = self._sock.recv(4)<commit_msg>fix logger message<commit_after># coding: utf-8
# <EMAIL>
# github.com/zhangxiaoyang

import socket
import traceback

class GstoreConnector:

    def _connect(self):
        try:
            self._sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)  
            self._sock.connect((self.ip, self.port))  
            return True
        except Exception, e:
            print 'socket connection error. @GstoreConnector.connect'
            traceback.print_exc()
        return False

    def _disconnect(self):
        try:
            self._sock.close()  
            return True
        except Exception, e:
            print 'socket disconnection error. @GstoreConnector.disconnect'
            traceback.print_exc()
        return False

    def _send(self, msg):
        data = self._pack(msg)
        self._sock.send(data)
        return True

    def _recv(self):
        head = self._sock.recv(4)
{'fraction_non_alphanumeric': 0.0900604063701263, 'fraction_numerical': 0.002196595277320154, 'mean_word_length': 1.9722675367047309, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '2955212', 'n_tokens_mistral': 529, 'n_tokens_neox': 519, 'n_words': 123}