<commit_before>#!/usr/bin/python
import sys
import RPi.GPIO as GPIO
import MySQLdb
import time
GPIO.setmode(GPIO.BCM)
GPIO.setwarnings(False)
db = MySQLdb.connect(host="localhost",    # your host, usually localhost
                     user="root",         # your username
                     passwd="<PASSWORD>",  # your password
                     db="SQLSprinkler")        # name of the data base
# you must create a Cursor object. It will let
#  you execute all the queries you need
cur = db.cursor()
i = int(sys.argv[1])
cur.execute("SELECT Time FROM Systems WHERE gpio=" + str(i))
# print all the first cell of all the rows
for row in list(cur.fetchall()):
    print(row[0])
    GPIO.setup(i, GPIO.OUT)
    GPIO.output(i, False)<commit_msg>Added sleep for on.py<commit_after>#!/usr/bin/python
import sys
import RPi.GPIO as GPIO
import MySQLdb
import time
GPIO.setmode(GPIO.BCM)
GPIO.setwarnings(False)
db = MySQLdb.connect(host="localhost",    # your host, usually localhost
                     user="root",         # your username
                     passwd="<PASSWORD>",  # your password
                     db="SQLSprinkler")        # name of the data base
# you must create a Cursor object. It will let
#  you execute all the queries you need
cur = db.cursor()
i = int(sys.argv[1])
cur.execute("SELECT Time FROM Systems WHERE gpio=" + str(i))
# print all the first cell of all the rows
for row in list(cur.fetchall()):
    print(row[0])
    GPIO.setup(i, GPIO.OUT)
    GPIO.output(i, False)
    time.sleep(row[0]*60)
    GPIO.output(i, True)
{'fraction_non_alphanumeric': 0.11496467565831728, 'fraction_numerical': 0.00449582530507386, 'mean_word_length': 2.7815533980582523, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '3035666', 'n_tokens_mistral': 491, 'n_tokens_neox': 472, 'n_words': 157}