<commit_before>import serial
import time
import RPi.GPIO as GPIO
GPIO.setwarnings(False)
GPIO.setmode(GPIO.BCM)
GPIO.setup(8,GPIO.OUT)
ser = serial.Serial('/dev/ttyACM0', 9600)
true = 1
s = [0]
import subprocess
import smtplib
import socket
from email.mime.text import MIMEText
import datetime
to = '<EMAIL>'
gmail_user = '<EMAIL>'
gmail_password = '<PASSWORD>'
while (true) :
    read_serial=ser.readline()
    s[0]=str(int (ser.readline(),16))
    print s[0]
    if s[0] == '1':
        GPIO.output(8,True)
    elif s[0] == '0':
        GPIO.output(8,False)
    time.sleep(1)
    
<commit_msg>fixed communication<commit_after>import serial
import time
import RPi.GPIO as GPIO
GPIO.setwarnings(False)
GPIO.setmode(GPIO.BCM)
GPIO.setup(8,GPIO.OUT)
ser = serial.Serial('/dev/ttyACM0', 9600)
true = 1
s = [0]
import subprocess
import smtplib
import socket
from email.mime.text import MIMEText
import datetime
to = '<EMAIL>'
gmail_user = '-'
gmail_password = '-'
while (true) :
    read_serial=ser.readline()
    s[0]=str(int (ser.readline(),16))
    print s[0]
    if s[0] == '1':
        GPIO.output(8,True)
    elif s[0] == '0':
        GPIO.output(8,False)
    time.sleep(1)
    

{'fraction_non_alphanumeric': 0.15241320914479256, 'fraction_numerical': 0.03217612193056731, 'mean_word_length': 3.7661290322580645, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '3769709', 'n_tokens_mistral': 458, 'n_tokens_neox': 449, 'n_words': 103}