<commit_before>from twisted.internet import reactor
import core.module
import core.fields
import core.fields.io
import core.fields.persistant
import time




if __name__ == '__main__':
class ShutterController(core.module.Base)
        shutter = use_module('Shutter')
        tempInt = use_module('Temperature')
        tempExt = use_module('TemperatureExteriorSensor')
        
        class Controller(
            core.fields.Base):
            
            def always(self):
                if tempInt.Temperature() < tempInt.seuil :
                    if tempInt.Temperature() < tempExt.Temperature():
                        shutter.Shutter(100)
                    else :
                        shutter.Shutter(0)
                elif tempInt.Temperature() == tempInt.seuil :
                        shutter.Shutter(0)    
                else :
                    if tempInt.Temperature() < tempExt.Temperature():
                        shutter.Shutter(0)
                    else :
                        shutter.Shutter(100)
        
    #code du main a remettre lais il était chelou donc pr le moment je l'ai vire...<commit_msg>some indentation error ...<commit_after>from twisted.internet import reactor
import core.module
import core.fields
import core.fields.io
import core.fields.persistant
import time




if __name__ == '__main__':
class ShutterController(core.module.Base)
    update_rate = 10

    shutter = use_module('Shutter')
    tempInt = use_module('Temperature')
    tempExt = use_module('TemperatureExteriorSensor')
    
    class Controller(
        core.fields.Base):
        
        def always(self):
            if tempInt.Temperature() < tempInt.seuil :
                if tempInt.Temperature() < tempExt.Temperature():
                    shutter.Shutter(100)
                else :
                    shutter.Shutter(0)
            elif tempInt.Temperature() == tempInt.seuil :
                    shutter.Shutter(0)    
            else :
                if tempInt.Temperature() < tempExt.Temperature():
                    shutter.Shutter(0)
                else :
                    shutter.Shutter(100)
    
#code du main a remettre lais il était chelou donc pr le moment je l'ai vire...
{'fraction_non_alphanumeric': 0.08598298253470667, 'fraction_numerical': 0.008956560680698611, 'mean_word_length': 1.6883273164861612, 'pattern_counts': {'":': 0, '<': 9, '<?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': '955022', 'n_tokens_mistral': 629, 'n_tokens_neox': 590, 'n_words': 136}