<commit_before>import json
import requests

def getDoorstatus():
    resp = requests.get(url="http://realraum.at/status.json")
    data = json.loads(resp.text)
    locked = data['sensors']['door_locked'][0]['value']
    kontakted = data['sensors']['door_locked'][0]['value']
    return (locked, kontakted)
<commit_msg>fixed bug in r3door helper concerning indexing of doorstatus<commit_after>import json
import requests

def getDoorstatus():
    resp = requests.get(url="http://realraum.at/status.json")
    data = json.loads(resp.text)
    locked = data['sensors']['door_locked'][0]['value']
    kontakted = data['sensors']['door_locked'][1]['value']
    return (locked, kontakted)

{'fraction_non_alphanumeric': 0.16691068814055637, 'fraction_numerical': 0.007320644216691069, 'mean_word_length': 5.275229357798165, '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': '5843495', 'n_tokens_mistral': 217, 'n_tokens_neox': 219, 'n_words': 42}