<commit_before><?php
class FltbookData extends CodonData {

	public static function findschedules($arricao, $depicao, $airline, $aircraft)   
	{
        $query = "SELECT phpvms_schedules.*, phpvms_aircraft.name AS aircraft, phpvms_aircraft.registration
               FROM phpvms_schedules, phpvms_aircraft
                WHERE phpvms_schedules.depicao LIKE '$depicao'
                AND phpvms_schedules.arricao LIKE '$arricao'
                AND phpvms_schedules.code LIKE '$airline'
                AND phpvms_schedules.aircraft LIKE '$aircraft'
                AND phpvms_aircraft.id LIKE '$aircraft'
		AND phpvms_schedules.enabled = '1'
		ORDER BY phpvms_schedules.code ASC, phpvms_schedules.flightnum ASC";
		
        	return DB::get_results($query);
    	}
      
	public static function findschedule($arricao, $depicao, $airline)   
	{
		$query = "SELECT phpvms_schedules.*,
			phpvms_aircraft.name AS aircraft,
			phpvms_aircraft.registration,
			phpvms_aircraft.icao AS aircrafticao,
			phpvms_aircraft.ranklevel AS aircraftlevel<commit_msg>Fixed not allowing to search by aircraft type<commit_after><?php
class FltbookData extends CodonData {

	public static function findschedules($arricao, $depicao, $airline, $aircraft)   
	{
        $query = "SELECT phpvms_schedules.*, phpvms_aircraft.name AS aircraft, phpvms_aircraft.icao AS aircrafticao, phpvms_aircraft.registration
               FROM phpvms_schedules, phpvms_aircraft
                WHERE phpvms_schedules.depicao LIKE '$depicao'
                AND phpvms_schedules.arricao LIKE '$arricao'
                AND phpvms_schedules.code LIKE '$airline'
                AND phpvms_schedules.aircraft LIKE '$aircraft'
                AND phpvms_aircraft.id LIKE '$aircraft'
		AND phpvms_schedules.enabled = '1'
		ORDER BY phpvms_schedules.code ASC, phpvms_schedules.flightnum ASC";
		
        	return DB::get_results($query);
    	}
      
	public static function findschedule($arricao, $depicao, $airline)   
	{
		$query = "SELECT phpvms_schedules.*,
			phpvms_aircraft.name AS aircraft,
			phpvms_aircraft.registration,
			phpvms_aircraft.icao AS aircrafticao,
			phpvms_aircraft.ranklevel AS aircraftlevel
{'fraction_non_alphanumeric': 0.07713498622589532, 'fraction_numerical': 0.0009182736455463728, 'mean_word_length': 3.255859375, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '4130987', 'n_tokens_mistral': 762, 'n_tokens_neox': 699, 'n_words': 153}