<commit_before>package lecho.sample.hellocharts;

import java.util.ArrayList;
import java.util.List;

import lecho.lib.hellocharts.model.AxisValue;
import lecho.lib.hellocharts.model.Column;
import lecho.lib.hellocharts.model.ColumnValue;
import lecho.lib.hellocharts.model.LinePoint;
import android.graphics.Color;

public class Utils {

	public static final int COLOR_BLUE = Color.parseColor("#33B5E5");
	public static final int COLOR_VIOLET = Color.parseColor("#AA66CC");
	public static final int COLOR_GREEN = Color.parseColor("#99CC00");
	public static final int COLOR_ORANGE = Color.parseColor("#FFBB33");
	public static final int COLOR_RED = Color.parseColor("#FF4444");

	public static final int pickColor() {
		final int[] colors = new int[] { COLOR_BLUE, COLOR_VIOLET, COLOR_GREEN, COLOR_ORANGE, COLOR_RED };
		return colors[(int) Math.round(Math.random() * (colors.length - 1))];
	}

	public static List<LinePoint> generatePoints(int num, float step) {
		float x = 0.0f;
		List<LinePoint> result = new ArrayList<LinePoint>();
		for (float f = 0.0f; f < num; f += step) {
			result.add(new LinePoint(x, (float) Math.random() * 100.0f));
			x += step;
		}
		return result;
	}

	public static List<AxisValue> generateAxis(float min, float max, float step) {
		List<AxisValue> result = new ArrayList<AxisValue>();
		for (float f = min; f <= max; f += step) {
			result.add(new AxisValue(f));
		}
		return result;
	}

	public static List<ColumnValue> generateValues(int num) {
		float x = 0.0f;
		int[] sign = new int[] { 1, 1 };
		List<ColumnValue> result = new ArrayList<ColumnValue>();
		for (int i = 0; i < num; ++i) {

			result.add(new ColumnValue((float) Math.random() * 3.0f * sign[(int) Math.round(Math.random())], Utils
					.pickColor()));
		}
		return result;
	}

	public static Column generateColumns() {
		List<ColumnValue> s1 = generateValues(1);
		Column l1 = new Column(s1);
		l1.setHasLabels(true);
		return l1;
	}

}<commit_msg>Added Utils#formatFloat method, it will be used to format values by formatters<commit_after>package lecho.sample.hellocharts;

import java.util.ArrayList;
import java.util.List;

import lecho.lib.hellocharts.model.AxisValue;
import lecho.lib.hellocharts.model.Column;
import lecho.lib.hellocharts.model.ColumnValue;
import lecho.lib.hellocharts.model.LinePoint;
import android.graphics.Color;

public class Utils {

	public static final int COLOR_BLUE = Color.parseColor("#33B5E5");
	public static final int COLOR_VIOLET = Color.parseColor("#AA66CC");
	public static final int COLOR_GREEN = Color.parseColor("#99CC00");
	public static final int COLOR_ORANGE = Color.parseColor("#FFBB33");
	public static final int COLOR_RED = Color.parseColor("#FF4444");

	public static final int pickColor() {
		final int[] colors = new int[] { COLOR_BLUE, COLOR_VIOLET, COLOR_GREEN, COLOR_ORANGE, COLOR_RED };
		return colors[(int) Math.round(Math.random() * (colors.length - 1))];
	}

	public static List<LinePoint> generatePoints(int num, float step) {
		float x = 0.0f;
		List<LinePoint> result = new ArrayList<LinePoint>();
		for (float f = 0.0f; f < num; f += step) {
			result.add(new LinePoint(x, (float) Math.random() * 100.0f));
			x += step;
		}
		return result;
	}

	public static List<AxisValue> generateAxis(float min, float max, float step) {
		List<AxisValue> result = new ArrayList<AxisValue>();
		for (float f = min; f <= max; f += step) {
			result.add(new AxisValue(f));
		}
		return result;
	}

	public static List<ColumnValue> generateValues(int num) {
		float x = 0.0f;
		int[] sign = new int[] { 1, 1 };
		List<ColumnValue> result = new ArrayList<ColumnValue>();
		for (int i = 0; i < num; ++i) {

			result.add(new ColumnValue((float) Math.random() * 3.0f * sign[(int) Math.round(Math.random())], Utils
					.pickColor()));
		}
		return result;
	}

	public static Column generateColumns() {
		List<ColumnValue> s1 = generateValues(1);
		Column l1 = new Column(s1);
		//l1.setHasLabels(true);
		return l1;
	}

}
{'fraction_non_alphanumeric': 0.13893783035489554, 'fraction_numerical': 0.01912912157060156, 'mean_word_length': 4.488950276243094, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 23, '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': '4041780', 'n_tokens_mistral': 1479, 'n_tokens_neox': 1357, 'n_words': 359}