<commit_before>from django.contrib.auth.decorators import login_required
from django.contrib.auth.decorators import user_passes_test

from django.http import HttpResponse
from SmartHome import utils

import json
import time


@user_passes_test(lambda u: u.has_perm('garage.trigger'))
def garage_door_trigger(request):

	trigger_events = utils.trigger_events()

	trigger_events.toggle_garage_door()

	sense_events = utils.sense_events()

	time.sleep(10)

	context = {'garage_door_open':sense_events.sense_garage_open()}
<commit_msg>change the wait time to open/close the garage<commit_after>from django.contrib.auth.decorators import login_required
from django.contrib.auth.decorators import user_passes_test

from django.http import HttpResponse
from SmartHome import utils

import json
import time


@user_passes_test(lambda u: u.has_perm('garage.trigger'))
def garage_door_trigger(request):

	trigger_events = utils.trigger_events()

	trigger_events.toggle_garage_door()

	sense_events = utils.sense_events()

	#how long it takes to open or close the garage
	time.sleep(15)

	context = {'garage_door_open':sense_events.sense_garage_open()}

{'fraction_non_alphanumeric': 0.08231173380035026, 'fraction_numerical': 0.0035026269702276708, 'mean_word_length': 6.722972972972973, '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': '1173171', 'n_tokens_mistral': 371, 'n_tokens_neox': 356, 'n_words': 83}