<commit_before>package com.mapbox.services.commons.turf;

import java.util.HashMap;
import java.util.Map;

/**
 * This {@code TurfHelpers} class is made up of methods that take in an object, convert it, and then
 * return the object in the desired units or object.
 *
 * @see <a href="http://turfjs.org/docs/">Turfjs documentation</a>
 * @since 1.2.0
 */
public class TurfHelpers {

  private static final Map<String, Double> factors;

  static {
    factors = new HashMap<>();
    factors.put(TurfConstants.UNIT_MILES, 3960d);
    factors.put(TurfConstants.UNIT_NAUTICAL_MILES, 3441.145d);
    factors.put(TurfConstants.UNIT_DEGREES, 57.2957795d);
    factors.put(TurfConstants.UNIT_RADIANS, 1d);
    factors.put(TurfConstants.UNIT_INCHES, 250905600d);
    factors.put(TurfConstants.UNIT_YARDS, 6969600d);
    factors.put(TurfConstants.UNIT_METERS, 637300d);
    factors.put(TurfConstants.UNIT_KILOMETERS, 6373d);

    // Also supported
    factors.put("metres", 637300d);
    factors.put("kilometres", 6373d);
  }

  /**
   * Convert radians to distance. The units used here equals the default.<commit_msg>fixed meter unit issue (#249)<commit_after>package com.mapbox.services.commons.turf;

import java.util.HashMap;
import java.util.Map;

/**
 * This {@code TurfHelpers} class is made up of methods that take in an object, convert it, and then
 * return the object in the desired units or object.
 *
 * @see <a href="http://turfjs.org/docs/">Turfjs documentation</a>
 * @since 1.2.0
 */
public class TurfHelpers {

  private static final Map<String, Double> factors;

  static {
    factors = new HashMap<>();
    factors.put(TurfConstants.UNIT_MILES, 3960d);
    factors.put(TurfConstants.UNIT_NAUTICAL_MILES, 3441.145d);
    factors.put(TurfConstants.UNIT_DEGREES, 57.2957795d);
    factors.put(TurfConstants.UNIT_RADIANS, 1d);
    factors.put(TurfConstants.UNIT_INCHES, 250905600d);
    factors.put(TurfConstants.UNIT_YARDS, 6969600d);
    factors.put(TurfConstants.UNIT_METERS, 6373000d);
    factors.put(TurfConstants.UNIT_KILOMETERS, 6373d);

    // Also supported
    factors.put("metres", 6373000d);
    factors.put("kilometres", 6373d);
  } 

  /**
   * Convert radians to distance. The units used here equals the default.
{'fraction_non_alphanumeric': 0.1203579418344519, 'fraction_numerical': 0.05592841163310962, 'mean_word_length': 4.175925925925926, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '4156347', 'n_tokens_mistral': 870, 'n_tokens_neox': 764, 'n_words': 173}