<commit_before>f = open("boot.py","w")
v = """import time
import network
import socket
import esp

wlan = network.WLAN()

failsafe = 0

while wlan.status() != network.STAT_GOT_IP:
	failsafe += 1
	if failsafe > 100:
		break
	time.sleep_ms(100)
	print("Nope!",wlan.status(),failsafe)

s = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
print("Connected! ",wlan.ifconfig()[0])

s.connect(("192.168.0.17",41990))
s.send("5c:cf:7f:02:4f:a5")
#s.send(str(esp.flash_id()))


print("Getting script")
r = s.recv(128)
main_str = r
s.settimeout(2)
print("recieved {0} chars".format(len(r)))
while len(r) > 0:
	try:
		r = s.recv(128)
		print("recieved {0} chars".format(len(r)))
		main_str += r
	except OSError as OSE:
		print("Nothing left to get. Moving no.")
		break

print("Recived script.")

main_file = open("main.py","w")
main_file.write(main_str)
main_file.close()

print("Main has been writen.")"""
f.write(v)
f.close()<commit_msg>Updated MAC address fetching. Should make the system work as expected now for fetching code based on MAC address.<commit_after>f = open("boot.py","w")
v = """
import time
import network
import socket
import esp
import ubinascii


wlan = network.WLAN()

failsafe = 0

while wlan.status() != network.STAT_GOT_IP:
	failsafe += 1
	if failsafe > 100:
		break
	time.sleep_ms(100)
	print("Nope!",wlan.status(),failsafe)

s = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
print("Connected! ",wlan.ifconfig()[0])

s.connect(("192.168.0.17",41990))
mac = ubinascii.hexlify(network.WLAN().config('mac'),':').decode()
s.send(mac)

print("Getting script")
r = s.recv(128)
main_str = r
s.settimeout(2)
print("recieved {0} chars".format(len(r)))
while len(r) > 0:
	try:
		r = s.recv(128)
		print("recieved {0} chars".format(len(r)))
		main_str += r
	except OSError as OSE:
		print("Nothing left to get. Moving no.")
		break

print("Recived script.")

main_file = open("main.py","w")
main_file.write(main_str)
main_file.close()

print("Main has been writen.")
"""
f.write(v)
f.close()
{'fraction_non_alphanumeric': 0.18140929535232383, 'fraction_numerical': 0.035982008995502246, 'mean_word_length': 5.122324159021407, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '5018918', 'n_tokens_mistral': 872, 'n_tokens_neox': 795, 'n_words': 174}