<commit_before>package com.treasurehunter.server.util;

public class LocationUtil {

	public static int getDistanceInMiles(
		double lat1, double long1, double lat2, double long2) {

		return (int)(1000D * getDistanceInKilometers(lat1, long1, lat2, long2));
	}

	public static double getDistanceInKilometers(
		double lat1, double long1, double lat2, double long2) {

		double dLong = (long2 - long1) * _d2r;
		double dLat = (lat2 - lat1) * _d2r;<commit_msg>Javadoc<commit_after>package com.treasurehunter.server.util;

public class LocationUtil {

	/**
	 * Returns distance in miles based on two points given by Latitude and
	 * Longitude
	 * @param lat1 Start latitude
	 * @param long1 Start longitude
	 * @param lat2 Destination latitude
	 * @param long2 Destination longitude
	 * @return Distance in miles as int
	 */
	public static int getDistanceInMiles(
		double lat1, double long1, double lat2, double long2) {

		return (int)(1000D * getDistanceInKilometers(lat1, long1, lat2, long2));
	}

	/**
	 * Returns distance in kilometers based on two points given by Latitude and
	 * Longitude
	 * @param lat1 Start latitude
	 * @param long1 Start longitude
	 * @param lat2 Destination latitude
	 * @param long2 Destination longitude
	 * @return Distance in kilometers as double
	 */
	public static double getDistanceInKilometers(
		double lat1, double long1, double lat2, double long2) {

		double dLong = (long2 - long1) * _d2r;
		double dLat = (lat2 - lat1) * _d2r;
{'fraction_non_alphanumeric': 0.08304969366916269, 'fraction_numerical': 0.035398230088495575, 'mean_word_length': 4.19434628975265, 'pattern_counts': {'":': 0, '<': 3, '<?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': '6613552', 'n_tokens_mistral': 508, 'n_tokens_neox': 449, 'n_words': 159}