<commit_before># -*- coding: iso-8859-1 -*-

from DriverInterface import DriverInterface

class TxtDriver(DriverInterface):

	def __init__(self, filename):
		self.filename = filename
		bufsize = 1 # line buffer
		self.file = open(filename, "w", bufsize)

	def sendCommand(self, command, fields, skipStatusErrors=False):
		import random

		message = chr(command)
		if fields:
			message += chr(0x1c)
		message += chr(0x1c).join( fields )
		message += chr(0x03)
		
		print message
		<commit_msg>cambio de nombre de parametro a uno mas generico<commit_after># -*- coding: iso-8859-1 -*-

from DriverInterface import DriverInterface

class TxtDriver(DriverInterface):

	def __init__(self, path):
		self.filename = path
		bufsize = 1 # line buffer
		self.file = open(filename, "w", bufsize)

	def sendCommand(self, command, fields, skipStatusErrors=False):
		import random

		message = chr(command)
		if fields:
			message += chr(0x1c)
		message += chr(0x1c).join( fields )
		message += chr(0x03)
		
		print message
		
{'fraction_non_alphanumeric': 0.11451135241855874, 'fraction_numerical': 0.02566633761105627, 'mean_word_length': 4.0954773869346734, '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': '7278560', 'n_tokens_mistral': 372, 'n_tokens_neox': 321, 'n_words': 92}