<commit_before>disclamer = """You should not use this program to store any actully important
data it is intended as an interesting program to demonstrate the cababilitys
of the sense hat and should not be used in any other way"""

### imports ###
from sense_hat import SenseHat
from time import sleep

### variables ###

unlocked1 = False
unlocked2 = False
unlocked3 = False

sh = SenseHat()
e = (0,0,0)
r = (255,0,0)
g = (0,255,0)
w = (255,255,255)

locked_screen = [
e,e,e,e,e,e,e,e,
e,e,e,w,w,e,e,e,
e,e,w,e,e,w,e,e,
e,e,w,e,e,w,e,e,
e,e,r,r,r,r,e,e,
e,e,r,r,r,r,e,e,
e,e,r,r,r,r,e,e,
e,e,e,e,e,e,e,e
]

unlocked_screen = [
e,e,e,e,e,e,e,e,
e,e,e,e,e,w,w,e,
e,e,e,e,w,e,e,w,
e,e,e,e,w,e,e,w,
e,e,g,g,g,g,e,e,
e,e,g,g,g,g,e,e,
e,e,g,g,g,g,e,e,
e,e,e,e,e,e,e,e
]
    
sh.set_pixels(locked_screen)


def unlock():
    sh.set_pixels(unlocked_screen)
    sleep(2)
    sh.show_message("You have unlocked it!!")

while True:
    if round(sh.get_humidity()) >= 50: 
        unlocked1 = True
        print("TEST1")        
    if unlocked1 == True and round(sh.get_temperature()) >= 26:
        unlocked2 = True
        print("TEST2")

    if unlocked2 == True and round(int(sh.get_accelerometer()['roll'])) >= 57:
        unlocked3 = True
        unlock()
        quit()<commit_msg>Added accelerometer lock<commit_after>disclamer = """You should not use this program to store any actully important
data it is intended as an interesting program to demonstrate the cababilitys
of the sense hat and should not be used in any other way"""

### imports ###
from sense_hat import SenseHat
from time import sleep

### variables ###

unlocked1 = False
unlocked2 = False
unlocked3 = False

sh = SenseHat()
e = (0,0,0)
r = (255,0,0)
g = (0,255,0)
w = (255,255,255)

locked_screen = [
e,e,e,e,e,e,e,e,
e,e,e,w,w,e,e,e,
e,e,w,e,e,w,e,e,
e,e,w,e,e,w,e,e,
e,e,r,r,r,r,e,e,
e,e,r,r,r,r,e,e,
e,e,r,r,r,r,e,e,
e,e,e,e,e,e,e,e
]

unlocked_screen = [
e,e,e,e,e,e,e,e,
e,e,e,e,e,w,w,e,
e,e,e,e,w,e,e,w,
e,e,e,e,w,e,e,w,
e,e,g,g,g,g,e,e,
e,e,g,g,g,g,e,e,
e,e,g,g,g,g,e,e,
e,e,e,e,e,e,e,e
]
    
sh.set_pixels(locked_screen)


def unlock():
    sh.set_pixels(unlocked_screen)
    sleep(2)
    sh.show_message("You have unlocked it!!")

while True:
    if round(sh.get_humidity()) >= 50: 
        unlocked1 = True
     
    if unlocked1 == True and round(sh.get_temperature()) >= 26:
        unlocked2 = True

    if unlocked2 == True and round(int(sh.get_accelerometer()['roll'])) >= 57:
        unlocked3 = True
        unlock()
        quit()
{'fraction_non_alphanumeric': 0.19388160508541916, 'fraction_numerical': 0.030194676201827572, 'mean_word_length': 4.149284253578732, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '6734211', 'n_tokens_mistral': 1237, 'n_tokens_neox': 1190, 'n_words': 233}