<commit_before>import RPi.GPIO as GPIO
import time
import subprocess

def reboot(pin, platformio_base, serialNumber):
	GPIO.setmode(GPIO.BCM)
	GPIO.setwarnings(False)
	GPIO.setup(pin,GPIO.OUT)
	print "LED on"
	GPIO.output(pin,GPIO.HIGH)
	time.sleep(1)
	print "LED off"
	GPIO.output(pin,GPIO.LOW)
	time.sleep(1)
	GPIO.output(pin,GPIO.HIGH)
	time.sleep(1)
	subprocess.call("cd " + platformio_base + " && platformio run && cd ../ && ./teensy_loader_cli --mcu=TEENSY36 " + platformio_base + ".pioenvs/teensy36/firmware.hex", shell=True)
	time.sleep(1)

reboot(2, "teensyMaster/", 0) #master
reboot(3, "stateMachine/", 1)
print("Serials available:")
subprocess.call("ls /dev/ttyACM*", shell=True)<commit_msg>Track which serial is master<commit_after>#!/usr/bin/python
import RPi.GPIO as GPIO
import time
import subprocess

def reboot(pin, platformio_base, serialNumber):
	GPIO.setmode(GPIO.BCM)
	GPIO.setwarnings(False)
	GPIO.setup(pin,GPIO.OUT)
	print "LED on"
	GPIO.output(pin,GPIO.HIGH)
	time.sleep(1)
	print "LED off"
	GPIO.output(pin,GPIO.LOW)
	time.sleep(1)
	GPIO.output(pin,GPIO.HIGH)
	print('-------------')
	print("Serials available after killing ", platformio_base, ":")
	subprocess.call("ls /dev/ttyACM*", shell=True)
	print('-------------')
	time.sleep(1)
	subprocess.call("cd " + platformio_base + " && platformio run && cd ../ && ./teensy_loader_cli --mcu=TEENSY36 " + platformio_base + ".pioenvs/teensy36/firmware.hex", shell=True)
	time.sleep(1)

reboot(2, "teensyMaster/", 0) #master
reboot(3, "stateMachine/", 1)
print("Serials available:")
subprocess.call("ls /dev/ttyACM*", shell=True)
{'fraction_non_alphanumeric': 0.18, 'fraction_numerical': 0.015, 'mean_word_length': 4.92962962962963, 'pattern_counts': {'":': 1, '<': 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': '3124747', 'n_tokens_mistral': 631, 'n_tokens_neox': 618, 'n_words': 114}