<commit_before><?php  

    session_start();

    if((!isset ($_SESSION['login']) == true) and (!isset ($_SESSION['senha']) == true)) 
    {
        unset($_SESSION['login']);
        unset($_SESSION['senha']);
        session_destroy();
        header('location:../index.html');
    }

    if ($_SESSION['tipo'] !='C') {
         header('location:index.php');;
    }


    $mat = $_POST['txtMat'];
    $strCon = "host=localhost dbname=projetointegrador user=senac password=<PASSWORD>";
    $con = pg_connect($strCon);

    if($con){
    
        $sql = "select * from aluno where matricula = '". $mat ."'";
        $result = pg_query($con, $sql);

        if(pg_num_rows($result) > 0){
            
            $arrayLista = pg_fetch_array($result);

            $MATRICULA = $arrayLista['matricula'];
            $NOME = $arrayLista['nome'];
            $SEXO = $arrayLista['sexo'];
            $NASC = $arrayLista['dtnasc'];
            $CID = $arrayLista['cidade'];
            $UF = $arrayLista['uf'];

            $_SESSION['ID'] = $NOME;
            $_SESSION['ID_MAT'] = $MATRICULA;
            $_SESSION['ID_CID'] = $CID;
            header('location:editAluno.php');
            pg_close($con);
              
        }

        pg_close($con);

    }
<commit_msg>Remoção de campo que verifca se o usuario é do tipo 'C'<commit_after><?php  

    session_start();

    if((!isset ($_SESSION['login']) == true) and (!isset ($_SESSION['senha']) == true)) 
    {
        unset($_SESSION['login']);
        unset($_SESSION['senha']);
        session_destroy();
        header('location:../index.html');
    }

  

    $mat = $_POST['txtMat'];
    $strCon = "host=localhost dbname=projetointegrador user=senac password=<PASSWORD>";
    $con = pg_connect($strCon);

    if($con){
    
        $sql = "select * from aluno where matricula = '". $mat ."'";
        $result = pg_query($con, $sql);

        if(pg_num_rows($result) > 0){
            
            $arrayLista = pg_fetch_array($result);

            $MATRICULA = $arrayLista['matricula'];
            $NOME = $arrayLista['nome'];
            $SEXO = $arrayLista['sexo'];
            $NASC = $arrayLista['dtnasc'];
            $CID = $arrayLista['cidade'];
            $UF = $arrayLista['uf'];

            $_SESSION['ID'] = $NOME;
            $_SESSION['ID_MAT'] = $MATRICULA;
            $_SESSION['ID_CID'] = $CID;
            $_SESSION['UF'] = $UF;
            $_SESSION['nasc'] = $NASC;
            $_SESSION['sexo'] = $SEXO;
            header('location:editAluno.php');
            pg_close($con);
              
        }

        pg_close($con);

    }

{'fraction_non_alphanumeric': 0.18407012195121952, 'fraction_numerical': 0.0007621951219512195, 'mean_word_length': 2.041714947856315, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '5550823', 'n_tokens_mistral': 879, 'n_tokens_neox': 863, 'n_words': 137}