<commit_before>package info.limpet;

import javax.measure.Quantity;
import javax.measure.quantity.Mass;

import systems.uom.common.US;
import tec.units.ri.quantity.Quantities;
import tec.units.ri.unit.Units;

public class App {
	public static void main(String[] args) {
		Quantity<Mass> mass = Quantities.getQuantity(70, Units.KILOGRAM);
		System.out.println(mass.to(US.POUND).getValue());
	}
}<commit_msg>first steps to implement new collections<commit_after>package info.limpet;

import static javax.measure.unit.SI.GRAM;
import static javax.measure.unit.SI.KILOGRAM;

import javax.measure.Measurable;
import javax.measure.Measure;
import javax.measure.quantity.Mass;
import javax.measure.quantity.Quantity;
import javax.measure.unit.NonSI;
import javax.measure.unit.Unit;

public class App
{
	public static void main(String[] args)
	{
		Measure<Double, Mass> mass = Measure.valueOf(50.0, KILOGRAM);
		System.out.println(mass.to(NonSI.POUND));

		
		// try to store some data
		IQuantityCollection<Mass> qc = new QuantityCollection<Mass>(
				KILOGRAM);
		qc.add(Measure.valueOf(24, GRAM));
		qc.add(Measure.valueOf(4, KILOGRAM));

	}

	public static interface IQuantityCollection<Q extends Quantity>
	{
		void add(Measurable<Q> item);
		void add(double newVal);
	}

	public static class QuantityCollection<Q extends Quantity>
			implements IQuantityCollection<Q>
	{
		final Unit<Q> _units;

		public QuantityCollection(Unit<Q> units)
		{
			_units = units;
		}

		@Override
		public void add(Measurable<Q> item)
		{
			System.out.println("adding:" + item.toString());
		}

		@Override
		public void add(double newVal)
		{
			add(Measure.valueOf(newVal, _units));
		}
		
		
	};

}
{'fraction_non_alphanumeric': 0.12247324613555291, 'fraction_numerical': 0.0047562425683709865, 'mean_word_length': 4.572847682119205, 'pattern_counts': {'":': 0, '<': 14, '<?xml version=': 0, '>': 14, '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': '4874864', 'n_tokens_mistral': 634, 'n_tokens_neox': 563, 'n_words': 120}