<commit_before>using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class GeoParser {
	public Dictionary<string, List<Vector2>> getDistricts() {
		districts = Resources.load("nepal-districts.geojson") as string;

		var data = new JSONObject(districts);
		var res = new Dictionary<string, List<Vector2>>();
		
		foreach(var district in data["features"].list) {
			string name = district["properties"]["DISTRICT"].str;
			List<Vector2> arc = new List<Vector2>();
			foreach(var point in district["properties"]["geometry"]["coordinates"][0].list) {
				arc.Add(new Vector2(double.parse(point.list[0].str), double.parse(point.list[1].str)));
			}
			
			res[name] = arc;
		}
		
		return res;
	}

	public Dictionary<string, Vector2> getCities() {
		cities = Resources.load("nepal-district-headquarters.geojson") as string;
		
		var data = new JSONObject(cities);
		var res = new Dictionary<string, Vector2>();
		
		foreach(var city in data["features"].list) {
			string name = city["properties"]["HQ_NAME"].str;
			double longtitude = double.parse(city["properties"]["geometry"]["coordinates"].list[0].str);
			double latitude = double.parse(city["properties"]["geometry"]["coordinates"].list[1].str);
			Vector2 point = new Vector2(longtitude,latitude);
			
			res[name] = point;
		}
		
		return res;
	}
}<commit_msg>Fixed bugs in geoparser<commit_after>using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class GeoParser {
	public Dictionary<string, List<Vector2>> getDistricts() {
		string districts = (Resources.Load("nepal-districts.geojson") as TextAsset).text;

		var data = new JSONObject(districts);
		var res = new Dictionary<string, List<Vector2>>();
		
		foreach(var district in data["features"].list) {
			string name = district["properties"]["DISTRICT"].str;
			List<Vector2> arc = new List<Vector2>();
			foreach(var point in district["properties"]["geometry"]["coordinates"][0].list) {
				arc.Add(new Vector2(float.Parse(point.list[0].str), float.Parse(point.list[1].str)));
			}
			
			res[name] = arc;
		}
		
		return res;
	}

	public Dictionary<string, Vector2> getCities() {
		string cities = (Resources.Load("nepal-district-headquarters.geojson") as TextAsset).text;
		
		var data = new JSONObject(cities);
		var res = new Dictionary<string, Vector2>();
		
		foreach(var city in data["features"].list) {
			string name = city["properties"]["HQ_NAME"].str;
			float longtitude = float.Parse(city["properties"]["geometry"]["coordinates"].list[0].str);
			float latitude = float.Parse(city["properties"]["geometry"]["coordinates"].list[1].str);
			Vector2 point = new Vector2(longtitude,latitude);
			
			res[name] = point;
		}
		
		return res;
	}
}
{'fraction_non_alphanumeric': 0.1595900439238653, 'fraction_numerical': 0.010248901903367497, 'mean_word_length': 4.915584415584416, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, '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': '775577', 'n_tokens_mistral': 954, 'n_tokens_neox': 856, 'n_words': 177}