<commit_before><?php
defined('BASEPATH') OR exit('No direct script access allowed');

class Ajax extends CI_Controller {
	function __construct(){
		parent::__construct();
	}
	function requestPosition($idDep){
		$this->load->model('posisiModel');
		$clause = array('iddepartement'=>$idDep);
		$data['opt'] = $this->posisiModel->getByClause($clause);
		$this->load->view('partial/dropDownPartial', $data);
		
	}

	function getProduk(){
		$this->load->model('produkModel');
		$clause = array(
            'produk.idstatus'=>11118
        );
		$data['produk'] = $this->produkModel->getByClause($clause);
		
		foreach($data['produk']->result_array() as $row){
		$ee[] =$row;
		}
		echo json_encode($ee);
	}

	function getSelectedProduk($id){
		$this->load->model('produkModel');
		$clause = array(
			'idproduk'=>$id
		);
		$data = $this->produkModel->getByClause($clause);
		foreach($data->result_array() as $row){
			$asa[] = $row;
		}
		echo json_encode($asa);
	}

	function getCustomer(){
		$this->load->model('supplierModel');
		$clause = array(
			'supplier.idsuppliertype'=>112
		);

		$data['supplier'] = $this->supplierModel->getByClause($clause);

		foreach ($data['supplier']->result_array() as $row) {
			$supp[] = $row;
		}

		echo json_encode($supp);
	}

	function getSelectedCustomer($id){
		$this->load->model('supplierModel');
		$clause = array(
			'idsupplier'=>$id
		);
		$data = $this->supplierModel->getByClause($clause);
		foreach($data->result_array() as $row){
			$asa[] = $row;
		}
		echo json_encode($asa);
	}
}<commit_msg>nambah idstatus soalnya salah yg kluar yg gak aktif smua<commit_after><?php
defined('BASEPATH') OR exit('No direct script access allowed');

class Ajax extends CI_Controller {
	function __construct(){
		parent::__construct();
	}
	function requestPosition($idDep){
		$this->load->model('posisiModel');
		$clause = array('iddepartement'=>$idDep);
		$data['opt'] = $this->posisiModel->getByClause($clause);
		$this->load->view('partial/dropDownPartial', $data);
		
	}

	function getProduk(){
		$this->load->model('produkModel');
		$clause = array(
            'produk.idstatus'=>11118
        );
		$data['produk'] = $this->produkModel->getByClause($clause);
		
		foreach($data['produk']->result_array() as $row){
		$ee[] =$row;
		}
		echo json_encode($ee);
	}

	function getSelectedProduk($id){
		$this->load->model('produkModel');
		$clause = array(
			'idproduk'=>$id
		);
		$data = $this->produkModel->getByClause($clause);
		foreach($data->result_array() as $row){
			$asa[] = $row;
		}
		echo json_encode($asa);
	}

	function getCustomer(){
		$this->load->model('supplierModel');
		$clause = array(
			'supplier.idsuppliertype'=>112,
			'supplier.idstatus'=>11110
		);

		$data['supplier'] = $this->supplierModel->getByClause($clause);

		foreach ($data['supplier']->result_array() as $row) {
			$supp[] = $row;
		}

		echo json_encode($supp);
	}

	function getSelectedCustomer($id){
		$this->load->model('supplierModel');
		$clause = array(
			'idsupplier'=>$id
		);
		$data = $this->supplierModel->getByClause($clause);
		foreach($data->result_array() as $row){
			$asa[] = $row;
		}
		echo json_encode($asa);
	}
}
{'fraction_non_alphanumeric': 0.2017710309930424, 'fraction_numerical': 0.006641366223908918, 'mean_word_length': 4.638146167557932, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 66, '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': '6623726', 'n_tokens_mistral': 1264, 'n_tokens_neox': 1145, 'n_words': 180}