<commit_before><?php

class generic_model extends CI_Model {

	function __construct(){
		parent::__construct();
	}

public function qry_exec($query,$db,$type,$config=array()){
  $manage_exception=(isset($config["manage_exception"]) ? TRUE:FALSE);
  $result=FALSE;

	$execute=($type=='simple')? 'simple_query':'query';

	if(is_array($query)){
		$count=count($query);
		$ind=1;
		foreach ($query as $qry) {
			if($ind!=$count){
				$db -> simple_query($qry);
			}
			else{
				$d -> $execute($qry);
			}
			$ind++;
		}
	}


	switch($type){<commit_msg>Correccion error en formulario crear alumno. Error de tipeo.<commit_after><?php

class generic_model extends CI_Model {

	function __construct(){
		parent::__construct();
	}

public function qry_exec($query,$db,$type,$config=array()){
  $manage_exception=(isset($config["manage_exception"]) ? TRUE:FALSE);
  $result=FALSE;

	$execute=($type=='simple')? 'simple_query':'query';

	if(is_array($query)){
		$count=count($query);
		$ind=1;
		foreach ($query as $qry) {
			if($ind!=$count){
				$db -> simple_query($qry);
			}
			else{
				$db -> $execute($qry);
			}
			$ind++;
		}
	}


	switch($type){
{'fraction_non_alphanumeric': 0.20418848167539266, 'fraction_numerical': 0.0017452006980802793, 'mean_word_length': 4.8820512820512825, 'pattern_counts': {'":': 0, '<': 5, '<?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': '3729465', 'n_tokens_mistral': 476, 'n_tokens_neox': 415, 'n_words': 69}