<commit_before>import RPi.GPIO as GPIO ## Import GPIO library
GPIO.setmode(GPIO.BOARD) ## Use board pin numbering
GPIO.setup(7, GPIO.OUT) ## Setup GPIO Pin 7 to OUT
GPIO.output(7,True) ## Turn on GPIO pin 7
<commit_msg>Now we query the user how any times to blink and how long<commit_after>import RPi.GPIO as GPIO ## Import GPIO library
import time ## Import 'time' library. Allows us to use 'sleep'

GPIO.setmode(GPIO.BOARD) ## Use board pin numbering
GPIO.setup(7, GPIO.OUT) ## Setup GPIO Pin 7 to OUT

##Define a function named Blink()
def Blink(numTimes,speed):
	for i in range(0,numTimes):## Run loop numTimes
		print "Iteration " + str(i+1)## Print current loop
		GPIO.output(7,True)## Switch on pin 7
		time.sleep(speed)## Wait
		GPIO.output(7,False)## Switch off pin 7
		time.sleep(speed)## Wait
	print "Done" ## When loop is complete, print "Done"
	GPIO.cleanup()

## Ask user for total number of blinks and length of each blink
iterations = raw_input("Enter total number of times to blink: ")
speed = raw_input("Enter length of each blink(seconds): ")

## Start Blink() function. Convert user input from strings to numeric data types and pass to Blink() as parameters
Blink(int(iterations),float(speed))
{'fraction_non_alphanumeric': 0.11129431162407255, 'fraction_numerical': 0.00989282769991756, 'mean_word_length': 4.836538461538462, 'pattern_counts': {'":': 0, '<': 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': '3774702', 'n_tokens_mistral': 383, 'n_tokens_neox': 370, 'n_words': 156}