<commit_before>/**
 *
 */
package de.zalando.platform.awsutilizationmonitor.stats;

import java.text.DecimalFormat;
import java.util.TreeMap;

/**
 * @author jloeffler
 *
 */
public class AwsStatsSummary {
	public static String readableFileSize(long size) {
		if (size <= 0)
			return "0";
		final String[] units = new String[] { "B", "kB", "MB", "GB", "TB" };
		int digitGroups = (int) (Math.log10(size) / Math.log10(1024));
		return new DecimalFormat("#,##0.#").format(size / Math.pow(1024, digitGroups)) + " " + units[digitGroups];
	}

	public static String readableLong(long number) {
		return new DecimalFormat("###,###.###").format(number);
	}

	private int accounts;
	private TreeMap<String, Integer> amis = new TreeMap<String, Integer>();
	private int apps;<commit_msg>changed naming<commit_after>/**
 *
 */
package de.zalando.platform.awsutilizationmonitor.stats;

import java.text.DecimalFormat;
import java.util.TreeMap;

/**
 * @author jloeffler
 *
 */
public class AwsStatsSummary {
	public static String readableFileSize(long size) {
		if (size <= 0)
			return "0";
		final String[] descriptions = new String[] { "B", "kB", "MB", "GB", "TB" };
		int sizeType = (int) (Math.log10(size) / Math.log10(1024));
		return new DecimalFormat("#,##0.#").format(size / Math.pow(1024, sizeType)) + " " + descriptions[sizeType];
	}

	public static String readableLong(long number) {
		return new DecimalFormat("###,###.###").format(number);
	}

	private int accounts;
	private TreeMap<String, Integer> amis = new TreeMap<String, Integer>();
	private int apps;
{'fraction_non_alphanumeric': 0.17307692307692307, 'fraction_numerical': 0.019230769230769232, 'mean_word_length': 4.697080291970803, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 7, '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': '4048425', 'n_tokens_mistral': 560, 'n_tokens_neox': 512, 'n_words': 128}