<commit_before>﻿sala = [['001','150','Disponivel'],['002','200','Ocupada']]

def adicionar_sala(cod_sala,lotacao,status): ############### PRONTO ################
    sala_inter=[cod_sala,lotacao,status]
    sala.append(sala_inter)
    print (" \n \n ========= Cadastrado com Sucesso ============")
    
def buscar_sala(cod_sala): ####################### PRONTO #######################
        for i in sala:
            if (i[0]== cod_sala):
                print (i)

        

def definir_status_ocupada(cod_sala):####################### PRONTO #######################
    for t in range(len(sala)):
        for i in sala:
            if cod_sala == i[0]:
                i [t][2]=('Ocupadasss')
                return i

def remover_sala(cod_sala):####################### PRONTO #######################
        for tam in range(len(sala)):
            for s in sala:
                if s[0] == cod_sala:
                    del sala[tam]
                    print(" \n \n ========= Excluído com Sucesso ============")
                    return True
            print(" \n \n ========= Sala não encontrada ============")
            

def remover_todas_salas():####################### PRONTO #######################
    global sala
    sala=[]
    print(" \n \n ========= Excluído com Sucesso ============")
    return True

def listar_salas():####################### PRONTO #######################
    for i in sala:
        print(i)

def definir_status_ocupada(cod_sala):####################### PRONTO #######################
    for tam in range (len(sala)):
        for alt in sala:
            if alt[0] == cod_sala:
                sala[tam][2]= 'Ocupado'
                print(" \n \n ========= Alterado com Sucesso ============")
                return True
    print(" \n \n ========= Não encontrado ============")         

def definir_status_disponivel(cod_sala): ####################### PRONTO #######################
    for tam in range (len(sala)):
        for alt in sala:
            if alt[0] == cod_sala:
                sala[tam][2]= 'Disponivel' 
                print(" \n \n ========= Alterado com Sucesso ============")
                return True
    print(" \n \n ========= Não encontrado ============")




















    
<commit_msg>Update Sala.py<commit_after>sala = [['001','150','Disponivel'],['002','200','Ocupada']]

def adicionar_sala(cod_sala,lotacao,status): ############### PRONTO ################
    sala_inter=[cod_sala,lotacao,status]
    sala.append(sala_inter)
    print (" \n \n ========= Cadastrado com Sucesso ============")
    
def buscar_sala(cod_sala): ####################### PRONTO #######################
        for i in sala:
            if (i[0]== cod_sala):
                return i
        return

def definir_status_ocupada(cod_sala):####################### PRONTO #######################
    for t in range(len(sala)):
        for i in sala:
            if cod_sala == i[0]:
                i [t][2]=('Ocupada')
                return i

def remover_sala(cod_sala):####################### PRONTO #######################
        for tam in range(len(sala)):
            for s in sala:
                if s[0] == cod_sala:
                    del sala[tam]
                    print(" \n \n ========= Excluído com Sucesso ============")
                    return True
            print(" \n \n ========= Sala não encontrada ============")
            

def remover_todas_salas():####################### PRONTO #######################
    global sala
    sala=[]
    print(" \n \n ========= Excluído com Sucesso ============")
    return True

def listar_salas():####################### PRONTO #######################
    for i in sala:
        print(i)

def definir_status_ocupada(cod_sala):####################### PRONTO #######################
    for tam in range (len(sala)):
        for alt in sala:
            if alt[0] == cod_sala:
                sala[tam][2]= 'Ocupado'
                print(" \n \n ========= Alterado com Sucesso ============")
                return True
    print(" \n \n ========= Não encontrado ============")         

def definir_status_disponivel(cod_sala): ####################### PRONTO #######################
    for tam in range (len(sala)):
        for alt in sala:
            if alt[0] == cod_sala:
                sala[tam][2]= 'Disponivel' 
                print(" \n \n ========= Alterado com Sucesso ============")
                return True
    print(" \n \n ========= Não encontrado ============")

{'fraction_non_alphanumeric': 0.3073946689595873, 'fraction_numerical': 0.008598452278589854, 'mean_word_length': 2.2156185210780928, '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': '3891633', 'n_tokens_mistral': 1543, 'n_tokens_neox': 1395, 'n_words': 312}