<commit_before>import time

import RPi.GPIO as GPIO

class GarageDoor:
	RELAY1 = 18
	ON = 1
	OFF = 0
	
	#Time in seconds to keep the action on.
	ACTION_TIME = 0.5

	def __init__(self):
		self.__setup()
		print "GarageDoor:Init"

	def __setup(self):
		self.cleanup()
		GPIO.setmode(GPIO.BCM)
		GPIO.setup(self.RELAY1, GPIO.OUT)

	def cleanup(self):
		print "GarageDoor::cleanup"
		GPIO.cleanup()

	def __del__(self):
		self.cleanup()

	def open(self):
		self.__action()
		print "GarageDoor::Open"
<commit_msg>Update garagedoor.py<commit_after>import time

import RPi.GPIO as GPIO

class GarageDoor:
	RELAY1 = 18
	ON = 1
	OFF = 0
	
	#Time in seconds to keep the action on.
	ACTION_TIME = 0.5

	def __init__(self):
		self.__setup()
		print "GarageDoor:Init"

	def __setup(self):
		GPIO.setmode(GPIO.BCM)
		GPIO.output(self.RELAY1, self.ON)
		GPIO.setup(self.RELAY1, GPIO.OUT)

	def cleanup(self):
		print "GarageDoor::cleanup"
		GPIO.cleanup()

	def __del__(self):
		self.cleanup()

	def open(self):
		self.__action()
		print "GarageDoor::Open"

{'fraction_non_alphanumeric': 0.12476007677543186, 'fraction_numerical': 0.016314779270633396, 'mean_word_length': 3.8738317757009346, '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': '1647548', 'n_tokens_mistral': 456, 'n_tokens_neox': 405, 'n_words': 98}