<commit_before>package ca.ualberta.lard.model;

import com.google.gson.Gson;

import android.content.Context;
import android.location.Location;
import android.location.LocationManager;

public class GeoLocation {
	
	private double lon;
	private double lat;
	
	public GeoLocation(Context context) {
		LocationManager lm = (LocationManager)context.getSystemService(Context.LOCATION_SERVICE); 
		Location location = lm.getLastKnownLocation(LocationManager.GPS_PROVIDER);
		this.lon = location.getLongitude();
		this.lat = location.getLatitude();
	}
	
	public GeoLocation(int id) {
		// Todo enumerated locations
		
		// Todo remove
		if (id == 9999) {
			this.lon = 60;
			this.lat = 60;
					
		}
	}
	/**<commit_msg>GeoLocation has enumerated type<commit_after>package ca.ualberta.lard.model;

import java.util.ArrayList;
import java.util.HashMap;

import com.google.gson.Gson;

import android.content.Context;
import android.location.Location;
import android.location.LocationManager;

public class GeoLocation {
	
	private double lon;
	private double lat;
	
	public ArrayList<GeoLocation> locations;
	
	public static enum LOCATIONS {
		CAB, 
		CAMERON, 
		CCIS, 
		CSC, 
		DEWEYS, 
		ETLC, 
		HUB, 
		RUTHERFORD, 
		STJOSPEH, 
		SUB, 
		TORY
	}
	
	public static double[][] points = { 
		{ 53.526572, -113.524734 }, // CAB 
		{ 53.52677, -113.523672 }, // Cameron Library
		{ 53.528243, -113.525657 }, // CCIS
		{ 53.526808, -113.527127 }, // CSC
		{ 53.526049, -113.523318 }, // Deweys
		{  53.527382,  -113.529509 }, // ETLC
		{  53.526425, -113.520443 }, // HUB
		{ 53.525896, -113.52172 }, // Rutherford South
		{ 53.524486, -113.524541 }, // <NAME>
		{53.525322, -113.52732 }, // SUB
		{ 53.528185,  -113.521462 } // TORY
		};
	
	public GeoLocation(Context context) {
		LocationManager lm = (LocationManager)context.getSystemService(Context.LOCATION_SERVICE); 
		Location location = lm.getLastKnownLocation(LocationManager.GPS_PROVIDER);
		this.lon = location.getLongitude();
		this.lat = location.getLatitude();
	}
	
	/**
	 * 
	 * @param pointNo
	 */
	public GeoLocation(int pointNo) {
		this.lat = points[pointNo][0];
		this.lon = points[pointNo][1];
	}
	/**
{'fraction_non_alphanumeric': 0.13262476894639558, 'fraction_numerical': 0.08964879852125693, 'mean_word_length': 3.4183673469387754, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4816190', 'n_tokens_mistral': 983, 'n_tokens_neox': 759, 'n_words': 152}