<commit_before><?php
$root = $_SERVER['DOCUMENT_ROOT'];
require $root.'/Controller/AuthFreelancer.php'; 
require_once $root.'/connection.php'; ?>

<!DOCTYPE html>
<html lang="pt-br">

<head>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>Freelancer</title>

    <!-- Favicon -->
    <link rel="shortcut icon" href="/public/img/favicon-suitcase.ico" type="image/x-icon">
    <!-- Bootstrap Core CSS -->
    <link href="/public/css/bootstrap.min.css" rel="stylesheet">
    <!-- Custom CSS -->
    <link href="/public/css/simple-sidebar.css" rel="stylesheet">
    <!-- Custom Fonts -->
    <link href="/public/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
    <link href="http://fonts.googleapis.com/css?family=Lato:300,400,700,300italic,400italic,700italic" rel="stylesheet" type="text/css">

</head>
  
  <body>
    <!-- Navigation -->
    <?php
    $root = $_SERVER['DOCUMENT_ROOT'];
    require $root.'/View/Templates/DefaultNav.php'; ?>


    <div id="wrapper">

        <!-- Sidebar -->
        <div id="sidebar-wrapper">
            <ul class="sidebar-nav">
                <li class="sidebar-brand">
                    <a href="/View/Freelancer/Home.php">
                        Freelancer
                    </a>
                </li>
                <li>
                    <a href="/View/Freelancer/Conta.php">Conta</a>
                </li>
                <li>
                    <a href="/View/Freelancer/Vaga.php">Vaga</a>
                </li>
                <li>
                    <a href="/View/Freelancer/Avaliar.php">Avaliar</a>
                </li>
            </ul>
        </div>

        <!-- Page Content -->
		<div class="container">
		  <div class="matshead">
			<h2 class="text-muted">Avaliar</h2>
		  </div>
		  <hr class="featurette-divider">
		  <div class="container">
            <div class="row">
                <div class="col-md-10">
                    <table class="table table-hover">
                        <thead>
                            <tr>
                                <th>#</th>
                                <th>Nome</th>
								<th>Razão Social</th>
                                <th>Email</th>
                                <th>Telefone</th>
                                <th>CNPJ</th>
                            </tr>
                        </thead>
                        <tbody>
						<?php
							DB::connect();
							$result = mysql_query("SELECT id, nome, razao_social, email, telefone, cnpj FROM empresas;");

							if ($result) {
								$i = 1;
								while ($row = mysql_fetch_array($result)) {
									$id_empresa = $row['id'];
									echo "<tr>
											<td>" . $i++ . "</td>
											<td><a href='/View/Academico/AvaliarEmpresa.php?id_empresa=$id_empresa'>". $row['nome'] ."</a></td>
											<td>" . $row['razao_social'] . "</td>
											<td>" . $row['email'] . "</td>
											<td>" . $row['telefone'] . "</td>
                                            <td>" . $row['cnpj'] . "</td>
										  </tr>";
								}
							}
						?>
                        </tbody>
                    </table>
				</div>
            </div>
          </div>
		</div><commit_msg>Avaliar empresa<commit_after><?php
$root = $_SERVER['DOCUMENT_ROOT'];
require $root.'/Controller/AuthFreelancer.php'; 
require_once $root.'/connection.php'; ?>

<!DOCTYPE html>
<html lang="pt-br">

<head>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>Freelancer</title>

    <!-- Favicon -->
    <link rel="shortcut icon" href="/public/img/favicon-suitcase.ico" type="image/x-icon">
    <!-- Bootstrap Core CSS -->
    <link href="/public/css/bootstrap.min.css" rel="stylesheet">
    <!-- Custom CSS -->
    <link href="/public/css/simple-sidebar.css" rel="stylesheet">
    <!-- Custom Fonts -->
    <link href="/public/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
    <link href="http://fonts.googleapis.com/css?family=Lato:300,400,700,300italic,400italic,700italic" rel="stylesheet" type="text/css">

</head>
  
  <body>
    <!-- Navigation -->
    <?php
    $root = $_SERVER['DOCUMENT_ROOT'];
    require $root.'/View/Templates/DefaultNav.php'; ?>


    <div id="wrapper">

        <!-- Sidebar -->
        <div id="sidebar-wrapper">
            <ul class="sidebar-nav">
                <li class="sidebar-brand">
                    <a href="/View/Freelancer/Home.php">
                        Freelancer
                    </a>
                </li>
                <li>
                    <a href="/View/Freelancer/Conta.php">Conta</a>
                </li>
                <li>
                    <a href="/View/Freelancer/Vaga.php">Vaga</a>
                </li>
                <li>
                    <a href="/View/Freelancer/Avaliar.php">Avaliar</a>
                </li>
            </ul>
        </div>

        <!-- Page Content -->
		<div class="container">
		  <div class="matshead">
			<h2 class="text-muted">Avaliar</h2>
		  </div>
		  <hr class="featurette-divider">
		  <div class="container">
            <div class="row">
                <div class="col-md-10">
                    <table class="table table-hover">
                        <thead>
                            <tr>
                                <th>#</th>
                                <th>Nome</th>
								<th>Razão Social</th>
                                <th>Email</th>
                                <th>Telefone</th>
                                <th>CNPJ</th>
                            </tr>
                        </thead>
                        <tbody>
						<?php
							DB::connect();
							$result = mysql_query("SELECT id, nome, razao_social, email, telefone, cnpj FROM empresas;");

							if ($result) {
								$i = 1;
								while ($row = mysql_fetch_array($result)) {
									$id_empresa = $row['id'];
									echo "<tr>
											<td>" . $i++ . "</td>
											<td><a href='/View/Freelancer/AvaliarEmpresa.php?id_empresa=$id_empresa'>". $row['nome'] ."</a></td>
											<td>" . $row['razao_social'] . "</td>
											<td>" . $row['email'] . "</td>
											<td>" . $row['telefone'] . "</td>
                                            <td>" . $row['cnpj'] . "</td>
										  </tr>";
								}
							}
						?>
                        </tbody>
                    </table>
				</div>
            </div>
          </div>
		</div>
{'fraction_non_alphanumeric': 0.18155068412534942, 'fraction_numerical': 0.007356186552890981, 'mean_word_length': 1.4295925661186561, 'pattern_counts': {'":': 0, '<': 197, '<?xml version=': 0, '>': 197, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7218983', 'n_tokens_mistral': 2505, 'n_tokens_neox': 2078, 'n_words': 344}