<commit_before>package AirFlight;

import XMLparser.parseAirports;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

import org.dom4j.DocumentException;

import AirFlight.Airport;
import Controller.ValidationController;

public class Airports {
	private static List airportsList = new ArrayList();
	private static List<Airport> AirportList = new ArrayList<Airport>();
	
	public static List getAirportList() throws DocumentException{
		List airportCode = parseAirports.getCode();
		
		for (Iterator itr = airportCode.iterator(); itr.hasNext();) {  
			  String code = (String) itr.next();  
			  airportsList.add(Airport.getAirport(code));
			} 
		
		for (int i = 0;i < airportsList.size();i++)
		{
			List raw = (List)airportsList.get(i);
			AirportList.add(new Airport((String)raw.get(0),(String)raw.get(1),(float)raw.get(2),(float)raw.get(3)));
		}
		
		return airportsList;
	}
	
	public static int GetTimezoneOffset(String Code) throws DocumentException
	{	
		if (AirportList.size() == 0)
			getAirportList();
		
		for (int i = 0;i < AirportList.size();i++)
		{
			if (AirportList.get(i).Code.compareTo(Code)==0)
			{
				return AirportList.get(i).GetTimezoneOffset();
			}
		}
		
		return 0;
	}
	
	public static String[] getAirportName() throws DocumentException{
		
		List<String> a = parseAirports.getName();
		String[] b = a.toArray(new String[a.size()]);
		return  b;
	}
	
	public static List getAirportInfo() throws DocumentException{
		return parseAirports.getInfo();
	}


	public static void main(String[] args) throws DocumentException {
		// TODO Auto-generated method stub
		System.out.println(getAirportList());
		for(int i=0;i<52;i++)
		System.out.println(getAirportName()[i]);
	}

}<commit_msg>modified airports class<commit_after>package AirFlight;

import XMLparser.parseAirports;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

import org.dom4j.DocumentException;

import AirFlight.Airport;
import Controller.ValidationController;

public class Airports {
	private static List airportsList = new ArrayList();
	private static List<Airport> AirportList = new ArrayList<Airport>();
	
	public static List getAirportList() throws DocumentException{
		List airportCode = parseAirports.getCode();
		
		for (Iterator itr = airportCode.iterator(); itr.hasNext();) {  
			  String code = (String) itr.next();  
			  airportsList.add(Airport.getAirport(code));
			} 
		
		for (int i = 0;i < airportsList.size();i++)
		{
			List raw = (List)airportsList.get(i);
			AirportList.add(new Airport((String)raw.get(0),(String)raw.get(1),(float)raw.get(2),(float)raw.get(3)));
		}
		
		return airportsList;
	}
	
	public static int GetTimezoneOffset(String Code) throws DocumentException
	{	
		if (AirportList.size() == 0)
			getAirportList();
		
		for (int i = 0;i < AirportList.size();i++)
		{
			if (AirportList.get(i).Code.compareTo(Code)==0)
			{
				return AirportList.get(i).GetTimezoneOffset();
			}
		}
		
		return 0;
	}

	public static String[] getAirportInfo() throws DocumentException{
		List<String> a = parseAirports.getInfo();
		String[] b = a.toArray(new String[a.size()]);
		return  b;
	}


	public static void main(String[] args) throws DocumentException {
		// TODO Auto-generated method stub
		System.out.println(getAirportList());
		for(int i=0;i<52;i++)
		System.out.println(getAirportInfo()[i]);
	}

}
{'fraction_non_alphanumeric': 0.13762551683402244, 'fraction_numerical': 0.00767867690490254, 'mean_word_length': 4.4192, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 9, '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': '7219950', 'n_tokens_mistral': 1255, 'n_tokens_neox': 1097, 'n_words': 238}