<commit_before><?php
require_once dirname(__FILE__) . '/includes/autoload.php';

$p = new Produto();
//$p->setId(14);
$p->setNome("Câmera Digital");
$p->setDescricao("Câmera muito louca!");
$p->setPreco(200);

// echo '<pre>';
// echo $p->getId();echo '<br />';
// echo $p->getNome();echo '<br />';
// echo $p->getDescricao();echo '<br />';
// echo $p->getPreco();echo '<br />';


$pDao = new ProdutoDAO();

//$pDao->save($p);
//$pDao->excluir(14);
//$ps = $pDao->getList();
//$ps = $pDao->getProduto(12);
// echo '<pre>';
// var_dump($ps);

echo '<br>';
echo '________________________________';
echo '<br>';

//
//$c = new Cliente();
//$c->setId(2);
//$c->setNome("<NAME>");
//$c->setEmail("<EMAIL>");
//$c->setTelefone('4568-6666');
//
//echo '<pre>';
//echo $c->getId();echo '<br />';
//echo $c->getNome();echo '<br />';
//echo $c->getEmail();echo '<br />';
//echo $c->getTelefone();echo '<br />';
//
//$cDao = new ClienteDAO();
//$cDao->excluir(2);
//
//$cs = $cDao->getList();
//echo '<pre>';
//var_dump($cs);

<commit_msg>Ajuste da index<commit_after><?php
require_once dirname(__FILE__) . '/includes/autoload.php';

$class 	= isset($_REQUEST['class'])  ? $_REQUEST['class'] : 'Home';
$action = isset($_REQUEST['action']) ? $_REQUEST['action'] : null;
$id		= isset($_REQUEST['id']) 	? $_REQUEST['id'] : null;

if($class!=null){
	$className = $class . 'Controller';
	if(class_exists($className)){
		$obj = new $className($action,$id);	
	}else{
		$obj = new HomeController('erro');	
	}
}

{'fraction_non_alphanumeric': 0.29892761394101874, 'fraction_numerical': 0.012734584450402145, 'mean_word_length': 4.409420289855072, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 41, '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': '6141792', 'n_tokens_mistral': 615, 'n_tokens_neox': 613, 'n_words': 105}