<commit_before>package info.limpet.data.operations.spatial;

import info.limpet.IBaseTemporalCollection;
import info.limpet.ICollection;
import info.limpet.IContext;
import info.limpet.IOperation;
import info.limpet.IQuantityCollection;
import info.limpet.IStore;
import info.limpet.IStore.IStoreItem;
import info.limpet.ITemporalQuantityCollection.InterpMethod;
import info.limpet.data.commands.AbstractCommand;
import info.limpet.data.impl.samples.StockTypes.NonTemporal;
import info.limpet.data.impl.samples.StockTypes.NonTemporal.Location;
import info.limpet.data.impl.samples.TemporalLocation;
import info.limpet.data.operations.CollectionComplianceTests;
import info.limpet.data.operations.CollectionComplianceTests.TimePeriod;

import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;

import org.geotools.referencing.GeodeticCalculator;
import org.opengis.geometry.Geometry;
import org.opengis.geometry.primitive.Point;

abstract public class TwoTrackOperation implements IOperation<IStoreItem>
{

	abstract public static class DistanceOperation extends
			AbstractCommand<IStoreItem>
	{
		final protected IBaseTemporalCollection _timeProvider;
		CollectionComplianceTests aTests = new CollectionComplianceTests();

		public DistanceOperation(List<IStoreItem> selection, IStore store,
				String title, String description, IBaseTemporalCollection timeProvider,
				IContext context)
		{
			super(title, description, store, false, false, selection, context);
			_timeProvider = timeProvider;
		}

		@Override
		public void execute()
		{
			// get the unit
			List<IStoreItem> outputs = new ArrayList<IStoreItem>();

			// put the names into a string
			ICollection input0 = (ICollection) super.getInputs().get(0);
			ICollection input1 = (ICollection) super.getInputs().get(1);
			String title = getOutputName(); 
//					input0.getName() + " and " + input1.getName();

			// ok, generate the new series
			IQuantityCollection<?> target = getOutputCollection(title,
					_timeProvider != null);
			
			outputs.add(target);

			// store the output
			super.addOutput(target);

			// start adding values.
			performCalc(outputs);

			// tell each series that we're a dependent
			Iterator<IStoreItem> iter = getInputs().iterator();
			while (iter.hasNext())<commit_msg>hotfix - ditch unused code<commit_after>package info.limpet.data.operations.spatial;

import info.limpet.IBaseTemporalCollection;
import info.limpet.ICollection;
import info.limpet.IContext;
import info.limpet.IOperation;
import info.limpet.IQuantityCollection;
import info.limpet.IStore;
import info.limpet.IStore.IStoreItem;
import info.limpet.ITemporalQuantityCollection.InterpMethod;
import info.limpet.data.commands.AbstractCommand;
import info.limpet.data.impl.samples.StockTypes.NonTemporal;
import info.limpet.data.impl.samples.StockTypes.NonTemporal.Location;
import info.limpet.data.impl.samples.TemporalLocation;
import info.limpet.data.operations.CollectionComplianceTests;
import info.limpet.data.operations.CollectionComplianceTests.TimePeriod;

import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;

import org.geotools.referencing.GeodeticCalculator;
import org.opengis.geometry.Geometry;
import org.opengis.geometry.primitive.Point;

abstract public class TwoTrackOperation implements IOperation<IStoreItem>
{

	abstract public static class DistanceOperation extends
			AbstractCommand<IStoreItem>
	{
		final protected IBaseTemporalCollection _timeProvider;
		CollectionComplianceTests aTests = new CollectionComplianceTests();

		public DistanceOperation(List<IStoreItem> selection, IStore store,
				String title, String description, IBaseTemporalCollection timeProvider,
				IContext context)
		{
			super(title, description, store, false, false, selection, context);
			_timeProvider = timeProvider;
		}

		@Override
		public void execute()
		{
			// get the unit
			List<IStoreItem> outputs = new ArrayList<IStoreItem>();

			// put the names into a string
			String title = getOutputName(); 

			// ok, generate the new series
			IQuantityCollection<?> target = getOutputCollection(title,
					_timeProvider != null);
			
			outputs.add(target);

			// store the output
			super.addOutput(target);

			// start adding values.
			performCalc(outputs);

			// tell each series that we're a dependent
			Iterator<IStoreItem> iter = getInputs().iterator();
			while (iter.hasNext())
{'fraction_non_alphanumeric': 0.09470627652445834, 'fraction_numerical': 0.0013401831583649765, 'mean_word_length': 5.1680440771349865, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, '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': '5833774', 'n_tokens_mistral': 1445, 'n_tokens_neox': 1284, 'n_words': 289}