<commit_before>from gpiozero import MotionSensor

##Send an email upon motion detecion

pir = MotionSensor(4)
i = 0
while(i < 1):
    if pir.motion_detected:
        print i , 'motion detected'
        execfile("send_email.py")
        i+=1;<commit_msg>Updated motion_test.py<commit_after>#from gpiozero import MotionSensor
import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BOARD)
GPIO.setup(11, GPIO.IN)

##Send an email upon motion detecion

#pir = MotionSensor(4)

while(True):
	i = GPIO.input(11)
	if i==1:
    		print 'motion detected' , i
		time.sleep(4.1)
{'fraction_non_alphanumeric': 0.11307420494699646, 'fraction_numerical': 0.02120141342756184, 'mean_word_length': 3.8879310344827585, 'pattern_counts': {'":': 0, '<': 4, '<?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': '2587802', 'n_tokens_mistral': 216, 'n_tokens_neox': 204, 'n_words': 55}