<commit_before>import time
lastsave = 0


if time.time() - lastsave > 0.2:
	lastsave = time.time()
	

	
	
	
	 
def init():
 gpio.setmode(gpio.BCM)
 gpio.setup(17, gpio.OUT)
 gpio.setup(22, gpio.OUT)
 gpio.setup(23, gpio.OUT)
 gpio.setup(24, gpio.OUT)
 
def forward(tf):
 init()
 lastsave = time.time()
 gpio.output(17, True)
 gpio.output(22, False)
 gpio.output(23, True) 
 gpio.output(24, False)
#time.sleep(tf)
 gpio.cleanup()
 
def reverse(tf):
 init()
 lastsave = time.time()
 gpio.output(17, False)
 gpio.output(22, True)
 gpio.output(23, False) 
 gpio.output(24, True)
#time.sleep(tf)
 gpio.cleanup()

 
 try:
	while True:
		print "forward"
		forward(1)
		if time.time() - lastsave > 1:
		print "backward"
		reverse(1)
		if time.time() - lastsave > 1:
except KeyboardInterrupt:
        gpio.cleanup()<commit_msg>print's removed<commit_after>import time
lastsave = 0


if time.time() - lastsave > 0.2:
	lastsave = time.time()
	

	
	
	
	 
def init():
 gpio.setmode(gpio.BCM)
 gpio.setup(17, gpio.OUT)
 gpio.setup(22, gpio.OUT)
 gpio.setup(23, gpio.OUT)
 gpio.setup(24, gpio.OUT)
 
def forward(tf):
 init()
 lastsave = time.time()
 gpio.output(17, True)
 gpio.output(22, False)
 gpio.output(23, True) 
 gpio.output(24, False)
#time.sleep(tf)
 gpio.cleanup()
 
def reverse(tf):
 init()
 lastsave = time.time()
 gpio.output(17, False)
 gpio.output(22, True)
 gpio.output(23, False) 
 gpio.output(24, True)
#time.sleep(tf)
 gpio.cleanup()

 
 try:
	while True:
		forward(1)
		if time.time() - lastsave > 1:
			reverse(1)
		if time.time() - lastsave > 1:
except KeyboardInterrupt:
        gpio.cleanup()
{'fraction_non_alphanumeric': 0.16292134831460675, 'fraction_numerical': 0.03870162297128589, 'mean_word_length': 3.566951566951567, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '2605566', 'n_tokens_mistral': 722, 'n_tokens_neox': 645, 'n_words': 138}