<commit_before>from docker import Client
import sys,time, os

class Redomat:

	def __init__(self,client=None):
		if client is None:
			raise Exception("client is not set")
		self.client = client
		self.current_stage = "undefined"
		self.current_image = "undefined"
		self.build_id = "%s-%s"%(time.strftime("%F-%H%M%S"), os.getenv('LOGNAME'))
		self.run_sequence = 0

	def _nextseq(self):
		self.run_sequence = self.run_sequence + 1
		return "%03i"%self.run_sequence

	def FROM(self, image=None):
		if image is None:
			raise Exception("no image given to work with")
		self.client.tag(image,self.current_image)

	def STAGE(self, stage=None):
		if stage is None:
			raise Exception("No stage given")
		self.current_stage=stage

	def RUN(self, cmd=None):
		if self.client is None:
			raise Exception("No client given to work with")<commit_msg>fixing the naming of the image in the from function<commit_after>from docker import Client
import sys,time, os

class Redomat:

	def __init__(self,client=None):
		if client is None:
			raise Exception("client is not set")
		self.client = client
		self.current_stage = "undefined"
		self.current_image = "undefined"
		self.build_id = "%s-%s"%(time.strftime("%F-%H%M%S"), os.getenv('LOGNAME'))
		self.run_sequence = 0

	def _nextseq(self):
		self.run_sequence = self.run_sequence + 1
		return "%03i"%self.run_sequence

	def FROM(self, image=None):
		if image is None:
			raise Exception("no image given to work with")
		self.client.tag(image,self.current_image)

	def STAGE(self, stage=None):
		if stage is None:
			raise Exception("No stage given")
		self.current_stage=stage
		self.current_image="%s-%s-%s"%(time.strftime("%F-%H%M%S"), os.getenv('LOGNAME'), self.current_stage)

	def RUN(self, cmd=None):
		if self.client is None:
			raise Exception("No client given to work with")
{'fraction_non_alphanumeric': 0.13179571663920922, 'fraction_numerical': 0.004393190554640308, 'mean_word_length': 4.6234567901234565, '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': '7107508', 'n_tokens_mistral': 679, 'n_tokens_neox': 611, 'n_words': 169}