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

class JobAnalysis_model extends CI_Model {

	public function __construct() {
		parent::__construct();
		$this->load->database();
	}

	/**
	 * Gets the analysis.
	 *
	 * @return     array|boolean  The analysis.
	 */
	public function getAnalysis() {
		$jobAnalysis = array();
		$this->db->select('*');
		$this->db->from('lagou');
		$query = $this->db->get();
		if ($query) {
			foreach ($query->result() as $row) {
				$jobAnalysis["job_id"] = $row->url_object_id;
				$jobAnalysis["url"] = $row->url;
				$jobAnalysis["title"] = $row->title;
				$jobAnalysis["salary"] = $row->slary;
				$jobAnalysis["city"] = $row->job_city;
				$jobAnalysis["require"] = $row->degree_need;
				$jobAnalysis["type"] = $row->job_type;
				$jobAnalysis["tags"] = $row->tags;
				$jobAnalysis["place"] = $row->job_addr;
				$jobAnalysis["companyname"] = $row->company_name;
				array_push($result, $jobAnalysis);
			}
			return $jobAnalysis;
		}
		else {
			return false;
		}
	}
}<commit_msg>fixed bugs<commit_after><?php
defined('BASEPATH') OR exit('No direct script access allowed');

class JobAnalysis_model extends CI_Model {

	public function __construct() {
		parent::__construct();
		$this->load->database();
	}

	/**
	 * Gets the analysis.
	 *
	 * @return     array|boolean  The analysis.
	 */
	public function getAnalysis() {
		$jobAnalysis = array();
		$this->db->select('*');
		$this->db->from('lagou');
		$query = $this->db->get();
		if ($query) {
			foreach ($query->result() as $row) {
				$jobAnalysis["job_id"] = $row->url_object_id;
				$jobAnalysis["url"] = $row->url;
				$jobAnalysis["title"] = $row->title;
				$jobAnalysis["salary"] = $row->salary;
				$jobAnalysis["city"] = $row->job_city;
				$jobAnalysis["require"] = $row->degree_need;
				$jobAnalysis["type"] = $row->job_type;
				$jobAnalysis["tags"] = $row->tags;
				$jobAnalysis["place"] = $row->job_addr;
				$jobAnalysis["companyname"] = $row->company_name;
				array_push($result, $jobAnalysis);
			}
			return $jobAnalysis;
		}
		else {
			return false;
		}
	}
}
{'fraction_non_alphanumeric': 0.1994328922495274, 'fraction_numerical': 0.0, 'mean_word_length': 3.9232558139534883, 'pattern_counts': {'":': 0, '<': 5, '<?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': '2125729', 'n_tokens_mistral': 838, 'n_tokens_neox': 722, 'n_words': 133}