<commit_before><?php
/**
* @author 		<NAME>
* @copyright	Copyright (c) 2017 FaqZul (https://github.com/FaqZul/CodeIgniter-CRUD-Model)
* @license 		https://opensource.org/licenses/MIT 	MIT License
* @link 		https://www.facebook.com/DorkSQLi
* @version 		1.0.0
*/
defined('BASEPATH') or exit('No direct script access allowed');

class Crud extends CI_Model {

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

	public function createData($table, $data) {
		$this->db->insert($table, $data);
		return $this->db->error();
	}

	public function readData($select, $from, $where, $joinTable, $groupBy, $order, $orderBy) {
		$this->db->select('SQL_CALC_FOUND_ROWS ' . $select, FALSE);
		$this->db->from($from);
		$this->db->where($where);
		if (count($joinTable > 0)) {
			foreach ($joinTable as $join) { $this->db->join($join['table'], $join['relation'], 'LEFT'); }
		}
		if ($groupBy !== '') {$this->db->group_by($groupBy); }<commit_msg>Change version to development<commit_after><?php
/**
* @author 		<NAME>
* @copyright 	Copyright (c) 2017 FaqZul (https://github.com/FaqZul/CodeIgniter-CRUD-Model)
* @license 		https://opensource.org/licenses/MIT 	MIT License
* @link 		https://www.facebook.com/DorkSQLi
* @version 		development
*/
defined('BASEPATH') or exit('No direct script access allowed');

class Crud extends CI_Model {

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

	public function createData($table, $data) {
		$this->db->insert($table, $data);
		return $this->db->error();
	}

	public function readData($select, $from, $where, $joinTable, $groupBy, $order, $orderBy) {
		$this->db->select('SQL_CALC_FOUND_ROWS ' . $select, FALSE);
		$this->db->from($from);
		$this->db->where($where);
		if (count($joinTable > 0)) {
			foreach ($joinTable as $join) { $this->db->join($join['table'], $join['relation'], 'LEFT'); }
		}
		if ($groupBy !== '') {$this->db->group_by($groupBy); }
{'fraction_non_alphanumeric': 0.2041031036296686, 'fraction_numerical': 0.006838506049447659, 'mean_word_length': 4.852307692307693, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 35, 'https://': 6, 'lorem ipsum': 0, 'www.': 2, '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': '297599', 'n_tokens_mistral': 712, 'n_tokens_neox': 664, 'n_words': 137}