<commit_before>package it_minds.dk.eindberetningmobil_android.constants;

import java.text.DecimalFormat;

/**
 * Created by kasper on 12-07-2015.
 * A helper to convert a meter to km, and only use 2 decimals precission
 */
public class DistanceDisplayer {
    private static DecimalFormat decimalFormat = new DecimalFormat("0.00");

    /**
     * Converts the distance in meteres to km, and displays it nicly.
     *
     * @param distance
     * @return
     */
    public static String formatDistance(double distance) {
        return decimalFormat.format(distance / 1000.0d).replace('.', ',');//danish style
    }

    public static String formatAccuracy(double acc){
        return decimalFormat.format(acc).replace('.', ',');//danish style
    }
}<commit_msg>Changed shown decimalformat to 1 decimal instead of 2<commit_after>package it_minds.dk.eindberetningmobil_android.constants;

import java.text.DecimalFormat;

/**
 * Created by kasper on 12-07-2015.
 * A helper to convert a meter to km, and only use 2 decimals precission
 */
public class DistanceDisplayer {
    private static DecimalFormat decimalFormat = new DecimalFormat("0.0");

    /**
     * Converts the distance in meteres to km, and displays it nicly.
     *
     * @param distance
     * @return
     */
    public static String formatDistance(double distance) {
        return decimalFormat.format(distance / 1000.0d).replace('.', ',');//danish style
    }

    public static String formatAccuracy(double acc){
        return decimalFormat.format(acc).replace('.', ',');//danish style
    }
}
{'fraction_non_alphanumeric': 0.10821133036282622, 'fraction_numerical': 0.022278803309993635, 'mean_word_length': 3.2833787465940056, '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': '5221675', 'n_tokens_mistral': 475, 'n_tokens_neox': 446, 'n_words': 138}