text:
/**
 */
package org.tud.inf.st.mbt.functions.provider;

import java.util.ArrayList;
import java.util.Collection;

import org.eclipse.emf.common.notify.Adapter;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.Notifier;

import org.eclipse.emf.edit.provider.ChangeNotifier;
import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
import org.eclipse.emf.edit.provider.ComposedAdapterFactory;
import org.eclipse.emf.edit.provider.IChangeNotifier;
import org.eclipse.emf.edit.provider.IDisposable;
import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
import org.eclipse.emf.edit.provider.IItemLabelProvider;
import org.eclipse.emf.edit.provider.IItemPropertySource;
import org.eclipse.emf.edit.provider.INotifyChangedListener;
import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
import org.eclipse.emf.edit.provider.ITreeItemContentProvider;

import org.tud.inf.st.mbt.functions.util.FunctionsAdapterFactory;

/**
 * This is the factory that is used to provide the interfaces needed to support Viewers.
 * The adapters generated by this factory convert EMF adapter notifications into calls to {@link #fireNotifyChanged fireNotifyChanged}.
 * The adapters also support Eclipse property sheets.
 * Note that most of the adapters are shared among multiple instances.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public class FunctionsItemProviderAdapterFactory extends FunctionsAdapterFactory implements ComposeableAdapterFactory, IChangeNotifier, IDisposable {
	/**
	 * This keeps track of the root adapter factory that delegates to this adapter factory.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected ComposedAdapterFactory parentAdapterFactory;

	/**
	 * This is used to implement {@link org.eclipse.emf.edit.provider.IChangeNotifier}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected IChangeNotifier changeNotifier = new ChangeNotifier();

	/**
	 * This keeps track of all the supported types checked by {@link #isFactoryForType isFactoryForType}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected Collection<Object> supportedTypes = new ArrayList<Object>();

	/**
	 * This constructs an instance.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public FunctionsItemProviderAdapterFactory() {
		supportedTypes.add(IEditingDomainItemProvider.class);
		supportedTypes.add(IStructuredItemContentProvider.class);
		supportedTypes.add(ITreeItemContentProvider.class);
		supportedTypes.add(IItemLabelProvider.class);
		supportedTypes.add(IItemPropertySource.class);
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.tud.inf.st.mbt.functions.FunctionVariable} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected FunctionVariableItemProvider functionVariableItemProvider;

	/**
	 * This creates an adapter for a {@link org.tud.inf.st.mbt.functions.FunctionVariable}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createFunctionVariableAdapter() {
		if (functionVariableItemProvider == null) {
			functionVariableItemProvider = new FunctionVariableItemProvider(this);
		}

		return functionVariableItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.tud.inf.st.mbt.functions.ArithmetricFunctionVariable} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected ArithmetricFunctionVariableItemProvider arithmetricFunctionVariableItemProvider;

	/**
	 * This creates an adapter for a {@link org.tud.inf.st.mbt.functions.ArithmetricFunctionVariable}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createArithmetricFunctionVariableAdapter() {
		if (arithmetricFunctionVariableItemProvider == null) {
			arithmetricFunctionVariableItemProvider = new ArithmetricFunctionVariableItemProvider(this);
		}

		return arithmetricFunctionVariableItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.tud.inf.st.mbt.functions.DataNodeFunctionVariable} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected DataNodeFunctionVariableItemProvider dataNodeFunctionVariableItemProvider;

	/**
	 * This creates an adapter for a {@link org.tud.inf.st.mbt.functions.DataNodeFunctionVariable}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createDataNodeFunctionVariableAdapter() {
		if (dataNodeFunctionVariableItemProvider == null) {
			dataNodeFunctionVariableItemProvider = new DataNodeFunctionVariableItemProvider(this);
		}

		return dataNodeFunctionVariableItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.tud.inf.st.mbt.functions.ValueFunctionVariable} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected ValueFunctionVariableItemProvider valueFunctionVariableItemProvider;

	/**
	 * This creates an adapter for a {@link org.tud.inf.st.mbt.functions.ValueFunctionVariable}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createValueFunctionVariableAdapter() {
		if (valueFunctionVariableItemProvider == null) {
			valueFunctionVariableItemProvider = new ValueFunctionVariableItemProvider(this);
		}

		return valueFunctionVariableItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.tud.inf.st.mbt.functions.LogicStandAloneFunction} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected LogicStandAloneFunctionItemProvider logicStandAloneFunctionItemProvider;

	/**
	 * This creates an adapter for a {@link org.tud.inf.st.mbt.functions.LogicStandAloneFunction}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createLogicStandAloneFunctionAdapter() {
		if (logicStandAloneFunctionItemProvider == null) {
			logicStandAloneFunctionItemProvider = new LogicStandAloneFunctionItemProvider(this);
		}

		return logicStandAloneFunctionItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.tud.inf.st.mbt.functions.LogicReferenceFunction} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected LogicReferenceFunctionItemProvider logicReferenceFunctionItemProvider;

	/**
	 * This creates an adapter for a {@link org.tud.inf.st.mbt.functions.LogicReferenceFunction}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createLogicReferenceFunctionAdapter() {
		if (logicReferenceFunctionItemProvider == null) {
			logicReferenceFunctionItemProvider = new LogicReferenceFunctionItemProvider(this);
		}

		return logicReferenceFunctionItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.tud.inf.st.mbt.functions.LogicFunctionVariable} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected LogicFunctionVariableItemProvider logicFunctionVariableItemProvider;

	/**
	 * This creates an adapter for a {@link org.tud.inf.st.mbt.functions.LogicFunctionVariable}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createLogicFunctionVariableAdapter() {
		if (logicFunctionVariableItemProvider == null) {
			logicFunctionVariableItemProvider = new LogicFunctionVariableItemProvider(this);
		}

		return logicFunctionVariableItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.tud.inf.st.mbt.functions.SubClassFunction} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected SubClassFunctionItemProvider subClassFunctionItemProvider;

	/**
	 * This creates an adapter for a {@link org.tud.inf.st.mbt.functions.SubClassFunction}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createSubClassFunctionAdapter() {
		if (subClassFunctionItemProvider == null) {
			subClassFunctionItemProvider = new SubClassFunctionItemProvider(this);
		}

		return subClassFunctionItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.tud.inf.st.mbt.functions.PredicateFunction} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected PredicateFunctionItemProvider predicateFunctionItemProvider;

	/**
	 * This creates an adapter for a {@link org.tud.inf.st.mbt.functions.PredicateFunction}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createPredicateFunctionAdapter() {
		if (predicateFunctionItemProvider == null) {
			predicateFunctionItemProvider = new PredicateFunctionItemProvider(this);
		}

		return predicateFunctionItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.tud.inf.st.mbt.functions.FeatureTreeValidFunction} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected FeatureTreeValidFunctionItemProvider featureTreeValidFunctionItemProvider;

	/**
	 * This creates an adapter for a {@link org.tud.inf.st.mbt.functions.FeatureTreeValidFunction}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createFeatureTreeValidFunctionAdapter() {
		if (featureTreeValidFunctionItemProvider == null) {
			featureTreeValidFunctionItemProvider = new FeatureTreeValidFunctionItemProvider(this);
		}

		return featureTreeValidFunctionItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.tud.inf.st.mbt.functions.EqualFunction} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected EqualFunctionItemProvider equalFunctionItemProvider;

	/**
	 * This creates an adapter for a {@link org.tud.inf.st.mbt.functions.EqualFunction}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createEqualFunctionAdapter() {
		if (equalFunctionItemProvider == null) {
			equalFunctionItemProvider = new EqualFunctionItemProvider(this);
		}

		return equalFunctionItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.tud.inf.st.mbt.functions.LargerThanFunction} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected LargerThanFunctionItemProvider largerThanFunctionItemProvider;

	/**
	 * This creates an adapter for a {@link org.tud.inf.st.mbt.functions.LargerThanFunction}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createLargerThanFunctionAdapter() {
		if (largerThanFunctionItemProvider == null) {
			largerThanFunctionItemProvider = new LargerThanFunctionItemProvider(this);
		}

		return largerThanFunctionItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.tud.inf.st.mbt.functions.LowerThanFunction} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected LowerThanFunctionItemProvider lowerThanFunctionItemProvider;

	/**
	 * This creates an adapter for a {@link org.tud.inf.st.mbt.functions.LowerThanFunction}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createLowerThanFunctionAdapter() {
		if (lowerThanFunctionItemProvider == null) {
			lowerThanFunctionItemProvider = new LowerThanFunctionItemProvider(this);
		}

		return lowerThanFunctionItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.tud.inf.st.mbt.functions.ArithmetricStandAloneFunction} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected ArithmetricStandAloneFunctionItemProvider arithmetricStandAloneFunctionItemProvider;

	/**
	 * This creates an adapter for a {@link org.tud.inf.st.mbt.functions.ArithmetricStandAloneFunction}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createArithmetricStandAloneFunctionAdapter() {
		if (arithmetricStandAloneFunctionItemProvider == null) {
			arithmetricStandAloneFunctionItemProvider = new ArithmetricStandAloneFunctionItemProvider(this);
		}

		return arithmetricStandAloneFunctionItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.tud.inf.st.mbt.functions.PlusFunction} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected PlusFunctionItemProvider plusFunctionItemProvider;

	/**
	 * This creates an adapter for a {@link org.tud.inf.st.mbt.functions.PlusFunction}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createPlusFunctionAdapter() {
		if (plusFunctionItemProvider == null) {
			plusFunctionItemProvider = new PlusFunctionItemProvider(this);
		}

		return plusFunctionItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.tud.inf.st.mbt.functions.SubFunction} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected SubFunctionItemProvider subFunctionItemProvider;

	/**
	 * This creates an adapter for a {@link org.tud.inf.st.mbt.functions.SubFunction}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createSubFunctionAdapter() {
		if (subFunctionItemProvider == null) {
			subFunctionItemProvider = new SubFunctionItemProvider(this);
		}

		return subFunctionItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.tud.inf.st.mbt.functions.MinusFunction} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected MinusFunctionItemProvider minusFunctionItemProvider;

	/**
	 * This creates an adapter for a {@link org.tud.inf.st.mbt.functions.MinusFunction}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createMinusFunctionAdapter() {
		if (minusFunctionItemProvider == null) {
			minusFunctionItemProvider = new MinusFunctionItemProvider(this);
		}

		return minusFunctionItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.tud.inf.st.mbt.functions.MultiplyFunction} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected MultiplyFunctionItemProvider multiplyFunctionItemProvider;

	/**
	 * This creates an adapter for a {@link org.tud.inf.st.mbt.functions.MultiplyFunction}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createMultiplyFunctionAdapter() {
		if (multiplyFunctionItemProvider == null) {
			multiplyFunctionItemProvider = new MultiplyFunctionItemProvider(this);
		}

		return multiplyFunctionItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.tud.inf.st.mbt.functions.DivisionFunction} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected DivisionFunctionItemProvider divisionFunctionItemProvider;

	/**
	 * This creates an adapter for a {@link org.tud.inf.st.mbt.functions.DivisionFunction}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createDivisionFunctionAdapter() {
		if (divisionFunctionItemProvider == null) {
			divisionFunctionItemProvider = new DivisionFunctionItemProvider(this);
		}

		return divisionFunctionItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.tud.inf.st.mbt.functions.FloatFunction} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected FloatFunctionItemProvider floatFunctionItemProvider;

	/**
	 * This creates an adapter for a {@link org.tud.inf.st.mbt.functions.FloatFunction}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createFloatFunctionAdapter() {
		if (floatFunctionItemProvider == null) {
			floatFunctionItemProvider = new FloatFunctionItemProvider(this);
		}

		return floatFunctionItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.tud.inf.st.mbt.functions.IntFunction} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected IntFunctionItemProvider intFunctionItemProvider;

	/**
	 * This creates an adapter for a {@link org.tud.inf.st.mbt.functions.IntFunction}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createIntFunctionAdapter() {
		if (intFunctionItemProvider == null) {
			intFunctionItemProvider = new IntFunctionItemProvider(this);
		}

		return intFunctionItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.tud.inf.st.mbt.functions.LongFunction} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected LongFunctionItemProvider longFunctionItemProvider;

	/**
	 * This creates an adapter for a {@link org.tud.inf.st.mbt.functions.LongFunction}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createLongFunctionAdapter() {
		if (longFunctionItemProvider == null) {
			longFunctionItemProvider = new LongFunctionItemProvider(this);
		}

		return longFunctionItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.tud.inf.st.mbt.functions.BagCountFunction} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected BagCountFunctionItemProvider bagCountFunctionItemProvider;

	/**
	 * This creates an adapter for a {@link org.tud.inf.st.mbt.functions.BagCountFunction}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createBagCountFunctionAdapter() {
		if (bagCountFunctionItemProvider == null) {
			bagCountFunctionItemProvider = new BagCountFunctionItemProvider(this);
		}

		return bagCountFunctionItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.tud.inf.st.mbt.functions.BagIdxFunction} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected BagIdxFunctionItemProvider bagIdxFunctionItemProvider;

	/**
	 * This creates an adapter for a {@link org.tud.inf.st.mbt.functions.BagIdxFunction}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createBagIdxFunctionAdapter() {
		if (bagIdxFunctionItemProvider == null) {
			bagIdxFunctionItemProvider = new BagIdxFunctionItemProvider(this);
		}

		return bagIdxFunctionItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.tud.inf.st.mbt.functions.BagSizeFunction} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected BagSizeFunctionItemProvider bagSizeFunctionItemProvider;

	/**
	 * This creates an adapter for a {@link org.tud.inf.st.mbt.functions.BagSizeFunction}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createBagSizeFunctionAdapter() {
		if (bagSizeFunctionItemProvider == null) {
			bagSizeFunctionItemProvider = new BagSizeFunctionItemProvider(this);
		}

		return bagSizeFunctionItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.tud.inf.st.mbt.functions.BagNextFunction} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected BagNextFunctionItemProvider bagNextFunctionItemProvider;

	/**
	 * This creates an adapter for a {@link org.tud.inf.st.mbt.functions.BagNextFunction}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createBagNextFunctionAdapter() {
		if (bagNextFunctionItemProvider == null) {
			bagNextFunctionItemProvider = new BagNextFunctionItemProvider(this);
		}

		return bagNextFunctionItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.tud.inf.st.mbt.functions.BagFirstFreeFunction} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected BagFirstFreeFunctionItemProvider bagFirstFreeFunctionItemProvider;

	/**
	 * This creates an adapter for a {@link org.tud.inf.st.mbt.functions.BagFirstFreeFunction}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createBagFirstFreeFunctionAdapter() {
		if (bagFirstFreeFunctionItemProvider == null) {
			bagFirstFreeFunctionItemProvider = new BagFirstFreeFunctionItemProvider(this);
		}

		return bagFirstFreeFunctionItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.tud.inf.st.mbt.functions.TimeFunction} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected TimeFunctionItemProvider timeFunctionItemProvider;

	/**
	 * This creates an adapter for a {@link org.tud.inf.st.mbt.functions.TimeFunction}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createTimeFunctionAdapter() {
		if (timeFunctionItemProvider == null) {
			timeFunctionItemProvider = new TimeFunctionItemProvider(this);
		}

		return timeFunctionItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.tud.inf.st.mbt.functions.TokenFunction} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected TokenFunctionItemProvider tokenFunctionItemProvider;

	/**
	 * This creates an adapter for a {@link org.tud.inf.st.mbt.functions.TokenFunction}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createTokenFunctionAdapter() {
		if (tokenFunctionItemProvider == null) {
			tokenFunctionItemProvider = new TokenFunctionItemProvider(this);
		}

		return tokenFunctionItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.tud.inf.st.mbt.functions.ArithmetricCaseFunction} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected ArithmetricCaseFunctionItemProvider arithmetricCaseFunctionItemProvider;

	/**
	 * This creates an adapter for a {@link org.tud.inf.st.mbt.functions.ArithmetricCaseFunction}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createArithmetricCaseFunctionAdapter() {
		if (arithmetricCaseFunctionItemProvider == null) {
			arithmetricCaseFunctionItemProvider = new ArithmetricCaseFunctionItemProvider(this);
		}

		return arithmetricCaseFunctionItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.tud.inf.st.mbt.functions.ArithmetricCase} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected ArithmetricCaseItemProvider arithmetricCaseItemProvider;

	/**
	 * This creates an adapter for a {@link org.tud.inf.st.mbt.functions.ArithmetricCase}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createArithmetricCaseAdapter() {
		if (arithmetricCaseItemProvider == null) {
			arithmetricCaseItemProvider = new ArithmetricCaseItemProvider(this);
		}

		return arithmetricCaseItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.tud.inf.st.mbt.functions.ValueCaseFunction} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected ValueCaseFunctionItemProvider valueCaseFunctionItemProvider;

	/**
	 * This creates an adapter for a {@link org.tud.inf.st.mbt.functions.ValueCaseFunction}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createValueCaseFunctionAdapter() {
		if (valueCaseFunctionItemProvider == null) {
			valueCaseFunctionItemProvider = new ValueCaseFunctionItemProvider(this);
		}

		return valueCaseFunctionItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.tud.inf.st.mbt.functions.ValueCase} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected ValueCaseItemProvider valueCaseItemProvider;

	/**
	 * This creates an adapter for a {@link org.tud.inf.st.mbt.functions.ValueCase}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createValueCaseAdapter() {
		if (valueCaseItemProvider == null) {
			valueCaseItemProvider = new ValueCaseItemProvider(this);
		}

		return valueCaseItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.tud.inf.st.mbt.functions.DataNodeCaseFunction} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected DataNodeCaseFunctionItemProvider dataNodeCaseFunctionItemProvider;

	/**
	 * This creates an adapter for a {@link org.tud.inf.st.mbt.functions.DataNodeCaseFunction}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createDataNodeCaseFunctionAdapter() {
		if (dataNodeCaseFunctionItemProvider == null) {
			dataNodeCaseFunctionItemProvider = new DataNodeCaseFunctionItemProvider(this);
		}

		return dataNodeCaseFunctionItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.tud.inf.st.mbt.functions.DataNodeCase} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected DataNodeCaseItemProvider dataNodeCaseItemProvider;

	/**
	 * This creates an adapter for a {@link org.tud.inf.st.mbt.functions.DataNodeCase}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createDataNodeCaseAdapter() {
		if (dataNodeCaseItemProvider == null) {
			dataNodeCaseItemProvider = new DataNodeCaseItemProvider(this);
		}

		return dataNodeCaseItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.tud.inf.st.mbt.functions.ArithmetricReferenceFunction} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected ArithmetricReferenceFunctionItemProvider arithmetricReferenceFunctionItemProvider;

	/**
	 * This creates an adapter for a {@link org.tud.inf.st.mbt.functions.ArithmetricReferenceFunction}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createArithmetricReferenceFunctionAdapter() {
		if (arithmetricReferenceFunctionItemProvider == null) {
			arithmetricReferenceFunctionItemProvider = new ArithmetricReferenceFunctionItemProvider(this);
		}

		return arithmetricReferenceFunctionItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.tud.inf.st.mbt.functions.DataNodeStandAloneFunction} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected DataNodeStandAloneFunctionItemProvider dataNodeStandAloneFunctionItemProvider;

	/**
	 * This creates an adapter for a {@link org.tud.inf.st.mbt.functions.DataNodeStandAloneFunction}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createDataNodeStandAloneFunctionAdapter() {
		if (dataNodeStandAloneFunctionItemProvider == null) {
			dataNodeStandAloneFunctionItemProvider = new DataNodeStandAloneFunctionItemProvider(this);
		}

		return dataNodeStandAloneFunctionItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.tud.inf.st.mbt.functions.DataNodeReferenceFunction} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected DataNodeReferenceFunctionItemProvider dataNodeReferenceFunctionItemProvider;

	/**
	 * This creates an adapter for a {@link org.tud.inf.st.mbt.functions.DataNodeReferenceFunction}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createDataNodeReferenceFunctionAdapter() {
		if (dataNodeReferenceFunctionItemProvider == null) {
			dataNodeReferenceFunctionItemProvider = new DataNodeReferenceFunctionItemProvider(this);
		}

		return dataNodeReferenceFunctionItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.tud.inf.st.mbt.functions.ValueStandAloneFunction} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected ValueStandAloneFunctionItemProvider valueStandAloneFunctionItemProvider;

	/**
	 * This creates an adapter for a {@link org.tud.inf.st.mbt.functions.ValueStandAloneFunction}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createValueStandAloneFunctionAdapter() {
		if (valueStandAloneFunctionItemProvider == null) {
			valueStandAloneFunctionItemProvider = new ValueStandAloneFunctionItemProvider(this);
		}

		return valueStandAloneFunctionItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.tud.inf.st.mbt.functions.ValueReferenceFunction} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected ValueReferenceFunctionItemProvider valueReferenceFunctionItemProvider;

	/**
	 * This creates an adapter for a {@link org.tud.inf.st.mbt.functions.ValueReferenceFunction}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createValueReferenceFunctionAdapter() {
		if (valueReferenceFunctionItemProvider == null) {
			valueReferenceFunctionItemProvider = new ValueReferenceFunctionItemProvider(this);
		}

		return valueReferenceFunctionItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.tud.inf.st.mbt.functions.DataNodeFunction} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected DataNodeFunctionItemProvider dataNodeFunctionItemProvider;

	/**
	 * This creates an adapter for a {@link org.tud.inf.st.mbt.functions.DataNodeFunction}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createDataNodeFunctionAdapter() {
		if (dataNodeFunctionItemProvider == null) {
			dataNodeFunctionItemProvider = new DataNodeFunctionItemProvider(this);
		}

		return dataNodeFunctionItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.tud.inf.st.mbt.functions.BagElementFunction} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected BagElementFunctionItemProvider bagElementFunctionItemProvider;

	/**
	 * This creates an adapter for a {@link org.tud.inf.st.mbt.functions.BagElementFunction}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createBagElementFunctionAdapter() {
		if (bagElementFunctionItemProvider == null) {
			bagElementFunctionItemProvider = new BagElementFunctionItemProvider(this);
		}

		return bagElementFunctionItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.tud.inf.st.mbt.functions.DataNodeValueFunction} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected DataNodeValueFunctionItemProvider dataNodeValueFunctionItemProvider;

	/**
	 * This creates an adapter for a {@link org.tud.inf.st.mbt.functions.DataNodeValueFunction}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createDataNodeValueFunctionAdapter() {
		if (dataNodeValueFunctionItemProvider == null) {
			dataNodeValueFunctionItemProvider = new DataNodeValueFunctionItemProvider(this);
		}

		return dataNodeValueFunctionItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.tud.inf.st.mbt.functions.DataValueFunction} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected DataValueFunctionItemProvider dataValueFunctionItemProvider;

	/**
	 * This creates an adapter for a {@link org.tud.inf.st.mbt.functions.DataValueFunction}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createDataValueFunctionAdapter() {
		if (dataValueFunctionItemProvider == null) {
			dataValueFunctionItemProvider = new DataValueFunctionItemProvider(this);
		}

		return dataValueFunctionItemProvider;
	}

	/**
	 * This returns the root adapter factory that contains this factory.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public ComposeableAdapterFactory getRootAdapterFactory() {
		return parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory();
	}

	/**
	 * This sets the composed adapter factory that contains this factory.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory) {
		this.parentAdapterFactory = parentAdapterFactory;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public boolean isFactoryForType(Object type) {
		return supportedTypes.contains(type) || super.isFactoryForType(type);
	}

	/**
	 * This implementation substitutes the factory itself as the key for the adapter.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter adapt(Notifier notifier, Object type) {
		return super.adapt(notifier, this);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Object adapt(Object object, Object type) {
		if (isFactoryForType(type)) {
			Object adapter = super.adapt(object, type);
			if (!(type instanceof Class<?>) || (((Class<?>)type).isInstance(adapter))) {
				return adapter;
			}
		}

		return null;
	}

	/**
	 * This adds a listener.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void addListener(INotifyChangedListener notifyChangedListener) {
		changeNotifier.addListener(notifyChangedListener);
	}

	/**
	 * This removes a listener.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void removeListener(INotifyChangedListener notifyChangedListener) {
		changeNotifier.removeListener(notifyChangedListener);
	}

	/**
	 * This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void fireNotifyChanged(Notification notification) {
		changeNotifier.fireNotifyChanged(notification);

		if (parentAdapterFactory != null) {
			parentAdapterFactory.fireNotifyChanged(notification);
		}
	}

	/**
	 * This disposes all of the item providers created by this factory.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void dispose() {
		if (functionVariableItemProvider != null) functionVariableItemProvider.dispose();
		if (arithmetricStandAloneFunctionItemProvider != null) arithmetricStandAloneFunctionItemProvider.dispose();
		if (arithmetricReferenceFunctionItemProvider != null) arithmetricReferenceFunctionItemProvider.dispose();
		if (arithmetricFunctionVariableItemProvider != null) arithmetricFunctionVariableItemProvider.dispose();
		if (dataNodeStandAloneFunctionItemProvider != null) dataNodeStandAloneFunctionItemProvider.dispose();
		if (dataNodeReferenceFunctionItemProvider != null) dataNodeReferenceFunctionItemProvider.dispose();
		if (dataNodeFunctionVariableItemProvider != null) dataNodeFunctionVariableItemProvider.dispose();
		if (valueStandAloneFunctionItemProvider != null) valueStandAloneFunctionItemProvider.dispose();
		if (valueReferenceFunctionItemProvider != null) valueReferenceFunctionItemProvider.dispose();
		if (valueFunctionVariableItemProvider != null) valueFunctionVariableItemProvider.dispose();
		if (logicStandAloneFunctionItemProvider != null) logicStandAloneFunctionItemProvider.dispose();
		if (logicReferenceFunctionItemProvider != null) logicReferenceFunctionItemProvider.dispose();
		if (logicFunctionVariableItemProvider != null) logicFunctionVariableItemProvider.dispose();
		if (subClassFunctionItemProvider != null) subClassFunctionItemProvider.dispose();
		if (predicateFunctionItemProvider != null) predicateFunctionItemProvider.dispose();
		if (featureTreeValidFunctionItemProvider != null) featureTreeValidFunctionItemProvider.dispose();
		if (equalFunctionItemProvider != null) equalFunctionItemProvider.dispose();
		if (largerThanFunctionItemProvider != null) largerThanFunctionItemProvider.dispose();
		if (lowerThanFunctionItemProvider != null) lowerThanFunctionItemProvider.dispose();
		if (plusFunctionItemProvider != null) plusFunctionItemProvider.dispose();
		if (subFunctionItemProvider != null) subFunctionItemProvider.dispose();
		if (minusFunctionItemProvider != null) minusFunctionItemProvider.dispose();
		if (multiplyFunctionItemProvider != null) multiplyFunctionItemProvider.dispose();
		if (divisionFunctionItemProvider != null) divisionFunctionItemProvider.dispose();
		if (floatFunctionItemProvider != null) floatFunctionItemProvider.dispose();
		if (intFunctionItemProvider != null) intFunctionItemProvider.dispose();
		if (longFunctionItemProvider != null) longFunctionItemProvider.dispose();
		if (bagCountFunctionItemProvider != null) bagCountFunctionItemProvider.dispose();
		if (bagIdxFunctionItemProvider != null) bagIdxFunctionItemProvider.dispose();
		if (bagSizeFunctionItemProvider != null) bagSizeFunctionItemProvider.dispose();
		if (bagNextFunctionItemProvider != null) bagNextFunctionItemProvider.dispose();
		if (bagFirstFreeFunctionItemProvider != null) bagFirstFreeFunctionItemProvider.dispose();
		if (timeFunctionItemProvider != null) timeFunctionItemProvider.dispose();
		if (tokenFunctionItemProvider != null) tokenFunctionItemProvider.dispose();
		if (dataNodeFunctionItemProvider != null) dataNodeFunctionItemProvider.dispose();
		if (bagElementFunctionItemProvider != null) bagElementFunctionItemProvider.dispose();
		if (dataNodeValueFunctionItemProvider != null) dataNodeValueFunctionItemProvider.dispose();
		if (dataValueFunctionItemProvider != null) dataValueFunctionItemProvider.dispose();
		if (arithmetricCaseFunctionItemProvider != null) arithmetricCaseFunctionItemProvider.dispose();
		if (arithmetricCaseItemProvider != null) arithmetricCaseItemProvider.dispose();
		if (valueCaseFunctionItemProvider != null) valueCaseFunctionItemProvider.dispose();
		if (valueCaseItemProvider != null) valueCaseItemProvider.dispose();
		if (dataNodeCaseFunctionItemProvider != null) dataNodeCaseFunctionItemProvider.dispose();
		if (dataNodeCaseItemProvider != null) dataNodeCaseItemProvider.dispose();
	}

}


text:
package org.apereo.portal.spring.security.preauth;

import static org.mockito.Mockito.when;

import javax.servlet.FilterChain;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import org.apereo.portal.security.IPerson;
import org.apereo.portal.security.IPersonManager;
import org.apereo.portal.security.ISecurityContext;
import org.apereo.portal.security.IdentitySwapperManager;
import org.junit.Before;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.mockito.MockitoAnnotations;
import org.springframework.context.ApplicationEventPublisher;
import org.springframework.security.authentication.AuthenticationManager;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.context.SecurityContext;

public abstract class PortalPreAuthenticatedProcessingFilterTestBase {

    @InjectMocks
    org.apereo.portal.spring.security.preauth.PortalPreAuthenticatedProcessingFilter filter;

    @Mock FilterChain filterChain;
    @Mock HttpServletRequest request;
    @Mock HttpServletResponse response;
    @Mock HttpSession session;
    @Mock IPersonManager personManager;
    @Mock IPerson person;
    @Mock ISecurityContext context;
    @Mock Authentication auth;
    @Mock SecurityContext initialContext;
    @Mock AuthenticationManager authenticationManager;
    @Mock ApplicationEventPublisher eventPublisher;
    @Mock IdentitySwapperManager identitySwapperManager;

    String username;

    @Before
    public void setUp() {
        MockitoAnnotations.initMocks(this);
        this.username = "testuser";
        filter.setAuthenticationService(new org.apereo.portal.services.Authentication());
        filter.setApplicationEventPublisher(eventPublisher);
        filter.setIdentitySwapperManager(identitySwapperManager);
        filter.afterPropertiesSet();

        when(request.getSession(false)).thenReturn(session);
        when(request.getSession(true)).thenReturn(session);
        when(personManager.getPerson(request)).thenReturn(person);
        when(person.getName()).thenReturn(this.username);
        when(person.isGuest()).thenReturn(false);
        when(person.getSecurityContext()).thenReturn(context);

        this.additionalSetup();
    }

    public abstract void additionalSetup();

}

redpajama_set_name: RedPajamaGithub


text:
@echo off
cd bin/windows
call kafka-topics.bat --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic test
cd "%~dp0"


text:
/*
 * Swaggy Jenkins
 *
 * Jenkins API clients generated from Swagger / Open API specification
 *
 * The version of the OpenAPI document: 1.5.1-pre.0
 * Contact: blah@cliffano.com
 * Generated by: https://github.com/openapitools/openapi-generator.git
 */

using Xunit;

using System;
using System.Linq;
using System.IO;
using System.Collections.Generic;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Model;
using Org.OpenAPITools.Client;
using System.Reflection;
using Newtonsoft.Json;

namespace Org.OpenAPITools.Test.Model
{
    /// <summary>
    ///  Class for testing PipelineStepImpllinks
    /// </summary>
    /// <remarks>
    /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
    /// Please update the test case below to test the model.
    /// </remarks>
    public class PipelineStepImpllinksTests : IDisposable
    {
        // TODO uncomment below to declare an instance variable for PipelineStepImpllinks
        //private PipelineStepImpllinks instance;

        public PipelineStepImpllinksTests()
        {
            // TODO uncomment below to create an instance of PipelineStepImpllinks
            //instance = new PipelineStepImpllinks();
        }

        public void Dispose()
        {
            // Cleanup when everything is done.
        }

        /// <summary>
        /// Test an instance of PipelineStepImpllinks
        /// </summary>
        [Fact]
        public void PipelineStepImpllinksInstanceTest()
        {
            // TODO uncomment below to test "IsType" PipelineStepImpllinks
            //Assert.IsType<PipelineStepImpllinks>(instance);
        }

        /// <summary>
        /// Test the property 'Self'
        /// </summary>
        [Fact]
        public void SelfTest()
        {
            // TODO unit test for the property 'Self'
        }
        /// <summary>
        /// Test the property 'Actions'
        /// </summary>
        [Fact]
        public void ActionsTest()
        {
            // TODO unit test for the property 'Actions'
        }
        /// <summary>
        /// Test the property 'Class'
        /// </summary>
        [Fact]
        public void ClassTest()
        {
            // TODO unit test for the property 'Class'
        }

    }

}


text:
package org.apache.sling.samples.dependenciesinstall;

import java.util.Date;

import javax.jcr.Node;
import javax.jcr.Session;

import junit.framework.Assert;

import org.apache.sling.api.resource.Resource;
import org.apache.sling.api.resource.ResourceResolver;
import org.apache.sling.api.resource.ResourceResolverFactory;
import org.apache.sling.junit.annotations.SlingAnnotationsTestRunner;
import org.apache.sling.junit.annotations.TestReference;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;

@RunWith(SlingAnnotationsTestRunner.class)
public class MultiValuedResourceTypeTest {

    @TestReference
    private ResourceResolverFactory resourceResolverFactory;

    private String testPath;

    private ResourceResolver resourceResolver;

    @Before
    public void setup() throws Exception {
        resourceResolver = resourceResolverFactory.getAdministrativeResourceResolver(null);

        Session session = resourceResolver.adaptTo(Session.class);
        testPath = "/test_" + new Date().getTime();
        Node testNode = session.getRootNode().addNode(testPath.substring(1), "nt:unstructured");
        testNode.setProperty("sling:resourceType", new String[] { "foo/bar", "bar/foo" });
        session.save();
    }

    @Test
    public void test() {
        Resource res = resourceResolver.resolve(testPath);
        Assert.assertEquals("foo/bar", res.getResourceType());
    }

    @After
    public void teardown() throws Exception {
        Session session = resourceResolver.adaptTo(Session.class);
        Node testNode = session.getNode(testPath);
        testNode.remove();
        session.save();
    }

}


text:
\hypertarget{gft__fuzzycloud3_8cpp}{\section{/home/pavm/programming/lib/gft/src/gft\-\_\-fuzzycloud3.cpp File Reference}
\label{gft__fuzzycloud3_8cpp}\index{/home/pavm/programming/lib/gft/src/gft\-\_\-fuzzycloud3.\-cpp@{/home/pavm/programming/lib/gft/src/gft\-\_\-fuzzycloud3.\-cpp}}
}
{\ttfamily \#include \char`\"{}fuzzycloud3.\-h\char`\"{}}\\*
\subsection*{Namespaces}
\begin{DoxyCompactItemize}
\item
\hyperlink{namespacegft}{gft}
\begin{DoxyCompactList}\small\item\em Base namespace for common definitions and prototypes. \end{DoxyCompactList}\item
\hyperlink{namespacegft_1_1RegionCloud3}{gft\-::\-Region\-Cloud3}
\item
\hyperlink{namespacegft_1_1BorderCloud3}{gft\-::\-Border\-Cloud3}
\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item
Region\-Cloud3 $\ast$ \hyperlink{namespacegft_1_1RegionCloud3_aefa1ec9c08d352b7bb8487409e7c891e}{gft\-::\-Region\-Cloud3\-::\-By\-Label\-List} (File\-List\-::\-File\-List $\ast$L)
\item
void \hyperlink{namespacegft_1_1RegionCloud3_a7e10254e9e4ed6b3fa964be54193cad5}{gft\-::\-Region\-Cloud3\-::\-Destroy} (Region\-Cloud3 $\ast$$\ast$rcloud)
\item
void \hyperlink{namespacegft_1_1RegionCloud3_a013ccdee3c85d5742cd274d119868de5}{gft\-::\-Region\-Cloud3\-::\-Get\-Voxel\-Size} (Region\-Cloud3 $\ast$rcloud, float $\ast$dx, float $\ast$dy, float $\ast$dz)
\item
Region\-Cloud3 $\ast$ \hyperlink{namespacegft_1_1RegionCloud3_ad1b53e79eaf686055ccf0151b81c9867}{gft\-::\-Region\-Cloud3\-::\-Subsampling} (Region\-Cloud3 $\ast$rcloud)
\item
Region\-Cloud3 $\ast$ \hyperlink{namespacegft_1_1RegionCloud3_ad7ba9e9a3b4a5cc73d98ec7be8beb267}{gft\-::\-Region\-Cloud3\-::\-Linear\-Interp} (Region\-Cloud3 $\ast$rcloud, float dx, float dy, float dz)
\item
Region\-Cloud3 $\ast$ \hyperlink{namespacegft_1_1RegionCloud3_aea52f2a023a202709be9f6f6a02dd00d}{gft\-::\-Region\-Cloud3\-::\-Gaussian\-Blur} (Region\-Cloud3 $\ast$rcloud)
\item
Region\-Cloud3 $\ast$ \hyperlink{namespacegft_1_1RegionCloud3_a53b90d68aeda078ea5802693f304c761}{gft\-::\-Region\-Cloud3\-::\-Change\-Orientation\-To\-L\-P\-S} (Region\-Cloud3 $\ast$rcloud, char $\ast$ori)
\item
Region\-Cloud3 $\ast$ \hyperlink{namespacegft_1_1RegionCloud3_aa24667c4f95e57c72d5a2df6a17280fa}{gft\-::\-Region\-Cloud3\-::\-Read} (char $\ast$filename)
\item
void \hyperlink{namespacegft_1_1RegionCloud3_a8e20a9336391f0712e729b4391bf1a87}{gft\-::\-Region\-Cloud3\-::\-Write} (Region\-Cloud3 $\ast$rcloud, char $\ast$filename)
\item
void \hyperlink{namespacegft_1_1RegionCloud3_a5929dc2d63a1ae47a120ed2d6e2a177d}{gft\-::\-Region\-Cloud3\-::\-Remove\-Elem} (Region\-Cloud3 $\ast$rcloud, Scene32\-::\-Scene32 $\ast$label)
\item
Border\-Cloud3 $\ast$ \hyperlink{namespacegft_1_1BorderCloud3_a9972b84abf3a37cec2258dcdb0ad83dd}{gft\-::\-Border\-Cloud3\-::\-By\-Region\-Cloud} (Region\-Cloud3\-::\-Region\-Cloud3 $\ast$rcloud)
\item
void \hyperlink{namespacegft_1_1BorderCloud3_aa0a6f6d2b055be8eeadf85120ecff10d}{gft\-::\-Border\-Cloud3\-::\-Destroy} (Border\-Cloud3 $\ast$$\ast$bcloud)
\item
void \hyperlink{namespacegft_1_1BorderCloud3_acb30b61280c1f36685c3dcca0d3dcae6}{gft\-::\-Border\-Cloud3\-::\-Get\-Voxel\-Size} (Border\-Cloud3 $\ast$bcloud, float $\ast$dx, float $\ast$dy, float $\ast$dz)
\item
Border\-Cloud3 $\ast$ \hyperlink{namespacegft_1_1BorderCloud3_a3d5bcd8c618b220661829858fd52a3b7}{gft\-::\-Border\-Cloud3\-::\-Subsampling} (Border\-Cloud3 $\ast$bcloud)
\item
Border\-Cloud3 $\ast$ \hyperlink{namespacegft_1_1BorderCloud3_a9aeb8176f95e79f700f934bfbeb704a8}{gft\-::\-Border\-Cloud3\-::\-Linear\-Interp} (Border\-Cloud3 $\ast$bcloud, float dx, float dy, float dz)
\item
Border\-Cloud3 $\ast$ \hyperlink{namespacegft_1_1BorderCloud3_a6a2fc75eba0f7ed8a02673397325dfa5}{gft\-::\-Border\-Cloud3\-::\-Change\-Orientation\-To\-L\-P\-S} (Border\-Cloud3 $\ast$bcloud, char $\ast$ori)
\item
void \hyperlink{namespacegft_1_1BorderCloud3_a983ea84c33184c929345d7b424a2fd88}{gft\-::\-Border\-Cloud3\-::\-Normalize} (Border\-Cloud3 $\ast$bcloud, int omin, int omax, int nmin, int nmax)
\item
Border\-Cloud3 $\ast$ \hyperlink{namespacegft_1_1BorderCloud3_af470c898a56fad09b458658a53a765d4}{gft\-::\-Border\-Cloud3\-::\-Read} (char $\ast$filename)
\item
void \hyperlink{namespacegft_1_1BorderCloud3_ae40b926e86ff6f22c721e748410108ad}{gft\-::\-Border\-Cloud3\-::\-Write} (Border\-Cloud3 $\ast$bcloud, char $\ast$filename)
\end{DoxyCompactItemize}


text:
namespace Votter.Services.Models
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.Linq;
    using System.Web;

    public class VoteModel
    {
        //[Required]
        //[MinLength(40)]
        //[MaxLength(40)]
        public string UserId { get; set; }

        public int UpVotePictureId { get; set; }

        public int DownVotePictureId { get; set; }
    }
}


text:
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Windows.Input;
using Rb.Forms.Barcode.Pcl.Extensions;
using Xamarin.Forms;

namespace Rb.Forms.Barcode.Pcl
{
    public class BarcodeScanner : View
    {
        /// <summary>
        /// Command property gets called only when the barcode text changes.
        /// </summary>
        public static BindableProperty BarcodeChangedCommandProperty = BindableProperty.Create(
            propertyName: "BarcodeChangedCommand",
            returnType: typeof(ICommand),
            declaringType: typeof(BarcodeScanner),
            defaultValue: null
        );

        /// <summary>
        /// Command property gets called every time when a barcode is decoded from the preview, even if the value is the same as the previews one.
        /// </summary>
        public static BindableProperty BarcodeDecodedCommandProperty = BindableProperty.Create(
            propertyName: "BarcodeDecodedCommand",
            returnType: typeof(ICommand),
            declaringType: typeof(BarcodeScanner),
            defaultValue: null
        );

        /// <summary>
        /// Command property gets called as soon as the surfaces starts previewing.
        /// </summary>
        public static BindableProperty PreviewActivatedCommandProperty = BindableProperty.Create(
            propertyName: "PreviewActivatedCommand",
            returnType: typeof(ICommand),
            declaringType: typeof(BarcodeScanner),
            defaultValue: null
        );

        /// <summary>
        /// Command property gets called when the surfaces stops previewing.
        /// </summary>
        public static BindableProperty PreviewDeactivatedCommandProperty = BindableProperty.Create(
            propertyName: "PreviewDeactivatedCommand",
            returnType: typeof(ICommand),
            declaringType: typeof(BarcodeScanner),
            defaultValue: null
        );

        /// <summary>
        /// Command property gets called after the camera was opened.
        /// </summary>
        public static BindableProperty CameraOpenedCommandProperty = BindableProperty.Create(
            propertyName: "CameraOpenedCommand",
            returnType: typeof(ICommand),
            declaringType: typeof(BarcodeScanner),
            defaultValue: null
        );

        /// <summary>
        /// Command property gets called after the camera was released.
        /// </summary>
        public static BindableProperty CameraReleasedCommandProperty = BindableProperty.Create(
            propertyName: "CameraReleasedCommand",
            returnType: typeof(ICommand),
            declaringType: typeof(BarcodeScanner),
            defaultValue: null
        );

        /// <summary>
        /// OneWay source to target binding for the current barcode.
        /// </summary>
        public static readonly BindableProperty BarcodeProperty =
            BindableProperty.Create<BarcodeScanner, Barcode>(
                getter: view => view.Barcode,
                defaultValue: default(Barcode),
                propertyChanged: OnBarcodeChanged
            );

        /// <summary>
        /// Gets or sets the current barcode.
        /// </summary>
        /// <value>The barcode.</value>
        public Barcode Barcode
        {
            get { return (Barcode) GetValue(BarcodeProperty); }
            set {
                SetValue(BarcodeProperty, value);
                OnBarcodeDecoded(value);
            }
        }

        /// <summary>
        /// TwoWay binding to control the scanner preview and decoder state.
        /// If set to true the preview is active, false deactivates the preview image.
        /// </summary>
        public static readonly BindableProperty PreviewActiveProperty =
            BindableProperty.Create<BarcodeScanner, bool>(
                getter: view => view.PreviewActive,
                defaultValue: true,
                defaultBindingMode: BindingMode.TwoWay
            );

        /// <summary>
        /// Gets or controlls the current preview state.
        /// </summary>
        public bool PreviewActive
        {
            get { return (bool) GetValue(PreviewActiveProperty); }
            set { SetValue(PreviewActiveProperty, value); }
        }

        /// <summary>
        /// TwoWay binding for barcode decoder control.
        /// If set to true the decoder tries to read the barcode from the surface image, false deactivates the decoder.
        /// </summary>
        public static readonly BindableProperty BarcodeDecoderProperty =
            BindableProperty.Create<BarcodeScanner, bool>(
                getter: view => view.BarcodeDecoder,
                defaultValue: true,
                defaultBindingMode: BindingMode.TwoWay
            );

        /// <summary>
        /// Gets or controlls the decoder state.
        /// </summary>
        /// <value>The barcode.</value>
        public bool BarcodeDecoder
        {
            get { return (bool) GetValue(BarcodeDecoderProperty); }
            set { SetValue(BarcodeDecoderProperty, value); }
        }

        /// <summary>
        /// TwoWay binding to control the scanner preview and decoder state.
        /// If set to true the preview is active, false deactivates the preview image.
        /// </summary>
        public static readonly BindableProperty TorchProperty =
            BindableProperty.Create<BarcodeScanner, bool>(
                getter: view => view.Torch,
                defaultValue: false,
                defaultBindingMode: BindingMode.TwoWay
            );

        /// <summary>
        /// Gets or controlls the current preview state.
        /// </summary>
        public bool Torch
        {
            get { return (bool) GetValue(TorchProperty); }
            set { SetValue(TorchProperty, value); }
        }

        /// <summary>
        /// Command gets called only when the barcode text changes.
        /// </summary>
        public ICommand BarcodeChangedCommand {
            get { return (ICommand) GetValue(BarcodeChangedCommandProperty); }
            set { SetValue(BarcodeChangedCommandProperty, value); }
        }

        /// <summary>
        /// Command gets called every time when a barcode is decoded from the preview, even if the value is the same as the previews one.
        /// </summary>
        public ICommand BarcodeDecodedCommand {
            get { return (ICommand) GetValue(BarcodeDecodedCommandProperty); }
            set { SetValue(BarcodeDecodedCommandProperty, value); }
        }

        /// <summary>
        /// Command gets called as soon as the surfaces starts previewing.
        /// </summary>
        public ICommand PreviewActivatedCommand {
            get { return (ICommand) GetValue(PreviewActivatedCommandProperty); }
            set { SetValue(PreviewActivatedCommandProperty, value); }
        }

        /// <summary>
        /// Command gets called when the surfaces stops previewing.
        /// </summary>
        public ICommand PreviewDeactivatedCommand {
            get { return (ICommand) GetValue(PreviewDeactivatedCommandProperty); }
            set { SetValue(PreviewDeactivatedCommandProperty, value); }
        }

        /// <summary>
        /// Command gets called after the camera was opened.
        /// </summary>
        public ICommand CameraOpenedCommand {
            get { return (ICommand) GetValue(CameraOpenedCommandProperty); }
            set { SetValue(CameraOpenedCommandProperty, value); }
        }

        /// <summary>
        /// Command gets called after the camera was released.
        /// </summary>
        public ICommand CameraReleasedCommand {
            get { return (ICommand) GetValue(CameraReleasedCommandProperty); }
            set { SetValue(CameraReleasedCommandProperty, value); }
        }

        /// <summary>
        /// Occurs only when the barcode text changes.
        /// </summary>
        public event EventHandler<BarcodeEventArgs> BarcodeChanged;

        /// <summary>
        /// Occurs every time when a barcode is decoded from the preview, even if the value is the same as the previews one.
        /// </summary>
        public event EventHandler<BarcodeEventArgs> BarcodeDecoded;

        /// <summary>
        /// Occurs as soon as the surfaces starts previewing.
        /// </summary>
        public event EventHandler<EventArgs> PreviewActivated;

        /// <summary>
        /// Occurs when the surfaces stops previewing.
        /// </summary>
        public event EventHandler<EventArgs> PreviewDeactivated;

        /// <summary>
        /// Occurs after the camera was opened.
        /// </summary>
        public event EventHandler<EventArgs> CameraOpened;

        /// <summary>
        /// Occurs after the camera was released.
        /// </summary>
        public event EventHandler<EventArgs> CameraReleased;

        public void OnCameraOpened()
        {
            CameraOpenedCommand.Raise();
            CameraOpened.Raise(this, EventArgs.Empty);
        }

        public void OnCameraReleased()
        {
            Barcode = null;
            CameraReleasedCommand.Raise();
            CameraReleased.Raise(this, EventArgs.Empty);
        }

        private static void OnBarcodeChanged(BindableObject bindable, Barcode oldValue, Barcode newBarcode)
        {
            if (newBarcode == null) {
                return;
            }

            Debug.WriteLine ("[ScannerView] OnBarcodeChanged [{0} - {1}]", newBarcode.Result, newBarcode.Format);

            var b = (BarcodeScanner) bindable;
            b.BarcodeChangedCommand.Raise(newBarcode);
            b.BarcodeChanged.Raise(b, new BarcodeEventArgs(newBarcode));
        }

        private void OnBarcodeDecoded(Barcode barcode)
        {
            if (barcode == null) {
                return;
            }

            Debug.WriteLine("[ScannerView] OnBarcodeDecoded [{0} - {1}]", barcode?.Result, barcode?.Format);

            BarcodeDecodedCommand.Raise(barcode);
            BarcodeDecoded.Raise(this, new BarcodeEventArgs(barcode));
        }

        public void OnPreviewActivated()
        {
            PreviewActivatedCommand.Raise();
            PreviewActivated.Raise(this, EventArgs.Empty);
        }

        public void OnPreviewDeactivated()
        {
            PreviewDeactivatedCommand.Raise();
            PreviewDeactivated.Raise(this, EventArgs.Empty);
        }
    }
}


text:
require 'eventmachine'
require 'json'

require 'orion/config'
require 'orion/server'
require 'orion/web'


text:
package uk.gov.gchq.gaffer.accumulostore.operation.hdfs.handler;

import org.apache.accumulo.core.client.AccumuloException;
import org.apache.accumulo.core.client.AccumuloSecurityException;
import org.apache.accumulo.core.client.TableNotFoundException;
import org.apache.commons.codec.binary.Base64;
import org.apache.hadoop.io.Text;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import uk.gov.gchq.gaffer.accumulostore.AccumuloStore;
import uk.gov.gchq.gaffer.operation.OperationException;
import uk.gov.gchq.gaffer.operation.impl.SplitStoreFromIterable;
import uk.gov.gchq.gaffer.store.Context;
import uk.gov.gchq.gaffer.store.Store;
import uk.gov.gchq.gaffer.store.StoreException;
import uk.gov.gchq.gaffer.store.operation.handler.OperationHandler;

import java.util.SortedSet;
import java.util.TreeSet;

public class SplitStoreFromIterableHandler implements OperationHandler<SplitStoreFromIterable<String>> {
    private static final Logger LOGGER = LoggerFactory.getLogger(SplitStoreFromIterableHandler.class);

    @Override
    public Void doOperation(final SplitStoreFromIterable<String> operation,
                            final Context context, final Store store) throws OperationException {
        doOperation(operation, ((AccumuloStore) store));
        return null;
    }

    private void doOperation(final SplitStoreFromIterable<String> operation, final AccumuloStore store) throws OperationException {
        if (null == operation.getInput()) {
            throw new OperationException("Operation input is required.");
        }

        final SortedSet<Text> splits = new TreeSet<>();
        for (final String split : operation.getInput()) {
            splits.add(new Text(Base64.decodeBase64(split)));
        }

        try {
            store.getConnection().tableOperations().addSplits(store.getTableName(), splits);
            LOGGER.info("Added {} splits to table {}", splits.size(), store.getTableName());
        } catch (final TableNotFoundException | AccumuloException | AccumuloSecurityException | StoreException e) {
            LOGGER.error("Failed to add {} split points to table {}", splits.size(), store.getTableName());
            throw new RuntimeException("Failed to add split points: " + e.getMessage(), e);
        }
    }
}


text:
<?php
$_ACTIVE = "index";
define('__ROOT__', "/var/www/judge");
require_once __ROOT__ . "/php/head.php";
?>

Main Page

		This is another problem grader, where you can solve and test an archive of problems. Your program is compiled and ran against many test cases instantly, giving you results immediately. To use this site, pick a problem or contest via the problems or contests link, solve the problem, and use the submit button on each problem's page (or use the button on top).

		See the help page for more info.

		Please don't submit "Techstart" problems yet, I still have to add test data.

News

October 21, 2012

Added image embedding/link embedding for a few problems

Added Techstart actual problem text

October 9, 2012

Added all previous Techstart problems

July 11, 2012

Login and index pages finished

Revamped UI

Sign in now works

July 8, 2012

Started construction on the site

<?php
require_once __ROOT__ . "/php/foot.php";
?>


text:
all_verylongcall_verylongcall_verylongcall_verylongcall_verylongcall(
  (a,

   b) => {
    console.log()
  }
)


text:
<?php _e( 'Cart summary', 'wpshop' ); ?>

	<?php foreach( $cart_items as $item_id => $item ) :
			$item_post_type = get_post_type( $item_id );
			if ( $item_post_type == WPSHOP_NEWTYPE_IDENTIFIER_PRODUCT_VARIATION ) {
				$parent_def = wpshop_products::get_parent_variation( $item_id );
				$parent_post = $parent_def['parent_post'];
				$item_id = $parent_post->ID;
				$item_title =  $parent_post->post_title;
			}
			else {
				$item_title = $item['item_name'];
			}
			?>

					<a href="<?php echo get_permalink( $item_id ); ?>" title="<?php echo $item_title; ?>">
						<?php echo get_the_post_thumbnail( $item_id, 'thumbnail', array('class' => 'wps-circlerounded') ); ?>

					<a href="<?php echo get_permalink( $item_id ); ?>" title="<?php echo $item_title; ?>">
						<?php echo $item_title; ?>

			    	<?php echo wpshop_tools::formate_number( $item['item_total_ttc'] ); ?> <?php echo $currency; ?>
			    	<?php _e( 'ATI', 'wpshop'); ?>

	<?php endforeach; ?>

<?php _e( 'Shipping cost ATI', 'wpshop'); ?><?php echo wpshop_tools::formate_number( $shipping_cost_ati ); ?><?php echo $currency; ?>

<?php if ( !empty( $cart_content['coupon_id']) ) : ?>

<?php _e( 'Total ATI before discount', 'wpshop'); ?><?php echo wpshop_tools::formate_number( $order_total_before_discount ); ?><?php echo $currency; ?>

<?php _e( 'Discount', 'wpshop'); ?><?php echo wpshop_tools::formate_number( $coupon_value ); ?><?php echo $currency; ?>

<?php endif; ?>

<?php _e( 'Total ATI', 'wpshop'); ?><?php echo wpshop_tools::formate_number( $total_ati ); ?><?php echo $currency; ?>


text:
package org.apache.bcel.generic;

/**
 * DNEG - Negate double
 *
Stack: ..., value.word1, value.word2 -> ..., result.word1, result.word2

 *
 */
public class DNEG extends ArithmeticInstruction {

    public DNEG() {
        super(org.apache.bcel.Const.DNEG);
    }

    /**
     * Call corresponding visitor method(s). The order is:
     * Call visitor methods of implemented interfaces first, then
     * call methods according to the class hierarchy in descending order,
     * i.e., the most specific visitXXX() call comes last.
     *
     * @param v Visitor object
     */
    @Override
    public void accept( final Visitor v ) {
        v.visitTypedInstruction(this);
        v.visitStackProducer(this);
        v.visitStackConsumer(this);
        v.visitArithmeticInstruction(this);
        v.visitDNEG(this);
    }
}


text:
/*
* generated by Xtext
*/
package org.xtext.example.mydsl.referencesuntyped.parser.antlr;

import com.google.inject.Inject;

import org.eclipse.xtext.parser.antlr.XtextTokenStream;
import org.xtext.example.mydsl.referencesuntyped.services.MyDslGrammarAccess;

public class MyDslParser extends org.eclipse.xtext.parser.antlr.AbstractAntlrParser {

	@Inject
	private MyDslGrammarAccess grammarAccess;

	@Override
	protected void setInitialHiddenTokens(XtextTokenStream tokenStream) {
		tokenStream.setInitialHiddenTokens("RULE_WS", "RULE_ML_COMMENT", "RULE_SL_COMMENT");
	}

	@Override
	protected org.xtext.example.mydsl.referencesuntyped.parser.antlr.internal.InternalMyDslParser createParser(XtextTokenStream stream) {
		return new org.xtext.example.mydsl.referencesuntyped.parser.antlr.internal.InternalMyDslParser(stream, getGrammarAccess());
	}

	@Override
	protected String getDefaultRuleName() {
		return "OrdersType";
	}

	public MyDslGrammarAccess getGrammarAccess() {
		return this.grammarAccess;
	}

	public void setGrammarAccess(MyDslGrammarAccess grammarAccess) {
		this.grammarAccess = grammarAccess;
	}

}


text:
using System;
using System.Configuration;
using MyParcelApi.Net;
using MyParcelApi.Net.Models;
using NUnit.Framework;

namespace MyParcelApi.Tests
{
    [TestFixture]
    public class DeliveryOptionsTests
    {
        private MyParcelApiClient _client;

        [SetUp]
        public void SetUp()
        {
            var apiKey = ConfigurationManager.AppSettings["ApiKey"];
            _client = new MyParcelApiClient(apiKey);
        }

        [Test]
        public void GetDeliveryOptionsForPostalCodeAndNumberAndCarrier()
        {
            var response = _client.GetDeliveryOptions("NL", "2132WT", "66", Platform.MyParcel, Carrier.PostNl);
            response.Wait();
            Assert.IsNotNull(response);
            Assert.IsNotNull(response.Result);
            Assert.IsTrue(response.Result.DeliveryOptions.Length > 0);
            Assert.IsTrue(response.Result.PickupOptions.Length > 0);
        }

        [Test]
        public void GetDeliveryOptionsForPostalCodeAndNumberAndCarrierAndCutoffTimeAndDropoffDaysAndDropoffDelayAndDeliverydaysWindowAndDeliveryType()
        {
            var response = _client.GetDeliveryOptions("NL", "2132WT", "66", Platform.MyParcel, Carrier.PostNl, cutoffTime: new TimeSpan(16, 0, 0), dropoffDays: new [] { DayOfWeek.Monday, DayOfWeek.Tuesday, DayOfWeek.Wednesday, DayOfWeek.Thursday, DayOfWeek.Friday }, dropoffDelay: 0, deliverydaysWindow: 2, excludeDeliveryType: new[] { DeliveryType.Morning });
            response.Wait();
            Assert.IsNotNull(response);
            Assert.IsNotNull(response.Result);
            Assert.IsTrue(response.Result.DeliveryOptions.Length > 0);
            Assert.IsTrue(response.Result.PickupOptions.Length > 0);
        }
    }
}


text:
from setuptools import setup
from os.path import abspath, dirname, join

path = abspath(dirname(__file__))

classifiers = (
    'Development Status :: 3 - Alpha',
    'Programming Language :: Python :: 2.7',
    'Programming Language :: Python :: 3.3',
    'License :: OSI Approved :: MIT License',
)

required = (
    'matplotlib',
    'numpy',
    'pandas',
    'nltk',
    'husl'
)

kw = {
    'name': 'climatic',
    'version': '0.1.0',
    'description': 'A small toolbox of wind data plotting tools',
    'long_description': open(join(path, 'README.md')).read(),
    'author': 'Rob Story',
    'author_email': 'wrobstory@gmail.com',
    'license': 'MIT License',
    'url': 'https://github.com/wrobstory/climatic',
    'keywords': 'wind data plotting',
    'classifiers': classifiers,
    'modules': ['climatic'],
    'install_requires': required,
    'zip_safe': True,
}

setup(**kw)


text:
<?php
/*
  We request you retain the full headers below including the links.
  This not only gives respect to the large amount of time given freely
  by the developers  but also helps build interest, traffic and use of
  PHPlist, which is beneficial to it's future development.

  Michiel Dethmers, phpList Ltd 2003 - 2014
*/

/** Purpose of this file: header with minimal styles for pages in iframes and ajaxed
 * do not load JS files here
*/

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $_SESSION['adminlanguage']['iso']?>" lang="<?php echo $_SESSION['adminlanguage']['iso']?>" dir="<?php echo $_SESSION['adminlanguage']['dir']?>">
<head>
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="Cache-Control" content="no-cache, must-revalidate" />
<meta name="Powered-By" content="phplist version <?php echo VERSION?>" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head><body>


text:
using UnityEngine;
using System.Collections;
using System.Collections.Generic;

#pragma warning disable 649

/// <summary>
/// Dictionary class that maps basic key types to other types in a one-to-many relationship.
/// Although no error will be thrown, repeated keys will trigger incorrect behaviour.
/// </summary>
public class Dict : ScriptableObject
{
    /// <summary>
    /// This enum represents the object types that can be used as key or values.
    /// </summary>
    public enum Type {
        /// <summary>
        /// The built-in string type.
        /// </summary>
        STRING,

        /// <summary>
        /// The built-in integer type.
        /// </summary>
        INTEGER,

        /// <summary>
        /// The built-in single precision float type.
        /// </summary>
        FLOAT,

        /// <summary>
        /// The UnityEngine.Object type. Use this for GameObjects, Components, ScriptableObjects etc.
        /// </summary>
        OBJECT,
        /// <summary>
        /// The UnityEngine.Color type.
        /// </summary>
        COLOR
    }

    [SerializeField]
    private Type keyType = Type.STRING, valueType = Type.STRING;

    [SerializeField]
    private List<string> s_keys, s_values;
    [SerializeField]
    private List<int> i_keys, i_values;
    [SerializeField]
    private List<float> f_keys, f_values;
    [SerializeField]
    private List<Object> o_keys, o_values;
    [SerializeField]
    private List<Color> c_keys, c_values;

    /// <summary>
    /// Returns or sets the type of the keys. In case the type changes, all entires from the dictionary are removed.
    /// </summary>
    ///
    public Type KeyType
    {
        get
        {
            return keyType;
        }
        set
        {
            Type oldType = keyType;
            keyType = value;
            if (value != oldType)
                Clear();
        }
    }

    /// <summary>
    /// Returns or sets the type of the values. In case the type changes, all entires from the dictionary are removed.
    /// </summary>
    public Type ValueType
    {
        get
        {
            return valueType;
        }
        set
        {
            Type oldType = valueType;
            valueType = value;
            if (value != oldType)
                Clear();
        }
    }

    /// <summary>
    /// Retrieves the value associated to the given key.
    /// </summary>
    /// <typeparam name="V">Desired return type. Should be the same as this Dict's value type; otherwise, an exception will be thrown.</typeparam>
    /// <param name="key">Key object to be searched. The associated value will be returned. In case no value is retured, an exception will be thrown.</param>
    /// <returns></returns>
    public V Get<V>(object key)
    {
        ValidateKey(key);
        ValidateValueType(typeof(V));

        return (V)GetValue(key);
    }

    /// <summary>
    /// Adds or updates the entry for the specified key.
    /// </summary>
    /// <param name="key">Key to be added or updated.</param>
    /// <param name="value">The value to be associated to the key.</param>
    public void Set(object key, object value)
    {
        ValidateKey(key);
        ValidateValue(value);

        if (IsFloat(InnerKeyType)) //evitar problema de System.Single e System.Float
            key = System.Convert.ToSingle(key);
        if (IsFloat(InnerValueType))
            value = System.Convert.ToSingle(value);

        if (!Contains(key))
        {
            _GetKeyList().Add(key);
            GetValueList().Add(value);
        }
        else
        {
            int index = _GetKeyList().IndexOf(key);
            GetValueList()[index] = value;
        }
    }

    /// <summary>
    /// Returns the number of entries present in the dictionary.
    /// </summary>
    public int KeyCount
    {
        get
        {
            return _GetKeyList().Count;
        }
    }

    /// <summary>
    /// Returns an untyped value associated to a key.
    /// </summary>
    /// <param name="key">Key to be searched.</param>
    /// <returns>The value associated to the given key. Throws an exception if there isn't such key in the dictionary.</returns>
    public object GetValue(object key)
    {
        ValidateKey(key);

        int index = 0;
        index = _GetKeyList().IndexOf(key);
        if (index == -1)
            throw new System.Exception(string.Format("Key {0} was not found in the dictionary.", key));

        object o = GetValueList()[index];
        return o;
    }

    /// <summary>
    /// Erases all entries.
    /// </summary>
    public void Clear()
    {
        IList[] lists =
        {
            s_keys, i_keys, f_keys, o_keys, c_keys,
            s_values, i_values, f_values, o_values, c_values
        };

        foreach (IList l in lists)
            l.Clear();
    }

    /// <summary>
    /// Checks if this dictionary has an entry for the given key.
    /// </summary>
    /// <param name="key">Key to be checked.</param>
    /// <returns>True if there is an entry with the specified key.</returns>
    public bool Contains(object key)
    {
        //ValidateKeyType(key);
        return _GetKeyList().Contains(key);
    }

    /// <summary>
    /// Returns an enumerator with all the keys.
    /// </summary>
    /// <typeparam name="T">Expected key type. Must be the same as the dict key type.</typeparam>
    /// <returns></returns>
    public IEnumerable<K> Keys<K>()
    {
        ValidateKeyType(typeof(K), TypePolicy.STRICT);
        return _GetKeyList() as IEnumerable<K>;
    }

    /// <summary>
    /// Returns an enumerator with all the values.
    /// </summary>
    /// <typeparam name="V">Expected value type. Must be the same as the dict value type.</typeparam>
    /// <returns></returns>
    public IEnumerable<V> Values<V>()
    {
        ValidateValueType(typeof(V), TypePolicy.STRICT);
        return GetValueList() as IEnumerable<V>;
    }

    /// <summary>
    /// Retrieves a KeyValuePair enumerator. When used in a 'foreach loop', must be called explicitly.
    /// </summary>
    /// <typeparam name="K">Key type.</typeparam>
    /// <typeparam name="V">Value type.</typeparam>
    /// <returns>A KeyValueEnumerator.</returns>
    public IEnumerable<KeyValuePair<K, V>> GetEnumerator<K, V>()
    {
        ValidateKeyType(typeof(K), TypePolicy.STRICT);
        ValidateValueType(typeof(V), TypePolicy.STRICT);

        List<KeyValuePair<K, V>> pairList = new List<KeyValuePair<K, V>>();
        foreach (K key in this.Keys<K>())
        {
            pairList.Add(new KeyValuePair<K, V>(key, this.Get<V>(key)));
        }
        return pairList;
    }

    /// <summary>
    /// Removes the entry associated to the given key.
    /// </summary>
    /// <param name="key">Key to be removed.</param>
    /// <returns>True if the element was present. False otherwise.</returns>
    public bool Remove(object key)
    {
        ValidateKey(key);
        int index = _GetKeyList().IndexOf(key);
        if (index == -1)
            return false;
        else
        {
            _RemoveAt(index);
            return true;
        }
    }

    #region TYPE_CHECK_LOGIC

    private void ValidateKey(object key, TypePolicy policy = TypePolicy.ALLOW_SUBTYPES)
    {
        bool nulltypeOk = key == null && (KeyType == Type.OBJECT || KeyType == Type.STRING);

        if(!nulltypeOk) //null keys are ok for objects and strings
            ValidateKeyType(key.GetType(), policy);
    }

    private void ValidateValue(object value, TypePolicy policy = TypePolicy.ALLOW_SUBTYPES)
    {
        bool nulltypeOk = value == null && (ValueType == Type.OBJECT || ValueType == Type.STRING);

        if(!nulltypeOk) //null keys are ok for objects and strings
            ValidateValueType(value.GetType(), policy);
    }

    private void ValidateKeyType(System.Type givenType, TypePolicy policy = TypePolicy.ALLOW_SUBTYPES)
    {
        if (!ValidateTypes(givenType, InnerKeyType, policy))
            throw new System.Exception(string.Format("Incorrect key type: expected {0} but got {1}", InnerKeyType, givenType));
    }

    private void ValidateValueType(System.Type givenType, TypePolicy policy = TypePolicy.ALLOW_SUBTYPES)
    {
        if (!ValidateTypes(givenType, InnerValueType, policy))
            throw new System.Exception(string.Format("Incorrect value type: expected {0} but got {1}", InnerValueType, givenType));
    }

    private static bool ValidateTypes(System.Type given, System.Type expected, TypePolicy policy)
    {
        bool typesAlike = IsInteger(given) && IsInteger(expected); //verifica se são inteiros
        bool areEquals = given.Equals(expected);                   //verifica se são exatamente iguais
        bool fitSubclass = policy == TypePolicy.ALLOW_SUBTYPES && (given.IsSubclassOf(expected) || IsInteger(given) && IsNumber(expected)); //verifica se são subclasse, se permitido

        return typesAlike || areEquals || fitSubclass;
    }

    private static bool IsInteger(System.Type t)
    {
        return t.Equals(typeof(int)) || t.Equals(typeof(byte)) || t.Equals(typeof(short));
    }

    private static bool IsFloat(System.Type t)
    {
        return t.Equals(typeof(float)) || t.Equals(typeof(System.Single)) || t.Equals(typeof(double));
    }

    private static bool IsNumber(System.Type t)
    {
        return IsFloat(t) || IsInteger(t);
    }

    private enum TypePolicy { STRICT, ALLOW_SUBTYPES}

    #endregion

    #region GUI_EDITOR_METHODS
    public IList _GetKeyList()
    {
        switch (keyType)
        {
            case Type.STRING:
                return s_keys;
            case Type.INTEGER:
                return i_keys;
            case Type.FLOAT:
                return f_keys;
            case Type.COLOR:
                return c_keys;
        }
        return o_keys;
    }

    public object _GetKeyAt(int index)
    {
        object value = _GetKeyList()[index];
        if (value == null)
        {
            switch (keyType)
            {
                case Type.STRING:
                    return string.Empty;
                case Type.INTEGER:
                case Type.FLOAT:
                    return 0;
                case Type.COLOR:
                    return Color.black;
            }
        }
        return value;
    }

    public object _GetValueAt(int index)
    {
        object value = GetValueList()[index];
        if (value == null)
        {
            switch (valueType)
            {
                case Type.STRING:
                    return string.Empty;
                case Type.INTEGER:
                case Type.FLOAT:
                    return 0;
                case Type.COLOR:
                    return Color.black;
            }
        }
        return value;
    }

    public void _SetKeyAt(int index, object key)
    {
        _GetKeyList()[index] = key;
    }

    public void _SetValueAt(int index, object key)
    {
        GetValueList()[index] = key;
    }

    public void _AddBlankEntry()
    {
        AddBlankElement(_GetKeyList(), KeyType);
        AddBlankElement(GetValueList(), ValueType);
    }

    public void _RemoveAt(int i)
    {
        _GetKeyList().RemoveAt(i);
        GetValueList().RemoveAt(i);
    }
    #endregion

    #region PRIVATE_METHODS
    private System.Type InnerKeyType
    {
        get
        {
            switch (KeyType)
            {
                case Type.STRING:
                    return typeof(string);
                case Type.INTEGER:
                    return typeof(int);
                case Type.FLOAT:
                    return typeof(float);
                case Type.COLOR:
                    return typeof(Color);
            }
            return typeof(Object);
        }
    }

    private System.Type InnerValueType
    {
        get
        {
            switch (ValueType)
            {
                case Type.STRING:
                    return typeof(string);
                case Type.INTEGER:
                    return typeof(int);
                case Type.FLOAT:
                    return typeof(float);
                case Type.COLOR:
                    return typeof(Color);
            }
            return typeof(Object);
        }
    }

    void OnEnable()
    {
        //acabou de criar o Dict
        //se não estava serializado, inicializa as listas

        if (s_keys == null)
        {
            s_keys = new List<string>();
            s_values = new List<string>();

            i_keys = new List<int>();
            i_values = new List<int>();

            f_keys = new List<float>();
            f_values = new List<float>();

            o_keys = new List<Object>();
            o_values = new List<Object>();

            c_keys = new List<Color>();
            c_values = new List<Color>();
        }
    }

    private IList GetValueList()
    {
        switch (valueType)
        {
            case Type.STRING:
                return s_values;
            case Type.INTEGER:
                return i_values;
            case Type.FLOAT:
                return f_values;
            case Type.COLOR:
                return c_values;
        }
        return o_values;
    }

    private void AddBlankElement(IList list, Type t)
    {
        if (t == Type.INTEGER)
            list.Add(0);
        else if (t == Type.FLOAT)
            list.Add(0f);
        else if (t == Type.STRING)
            list.Add(string.Empty);
        else if (t == Type.COLOR)
            list.Add(Color.black);
        else
            list.Add(null);
    }
    #endregion
}

#pragma warning restore 649


text:
package org.apache.log4j.util;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class LineNumberFilter implements Filter {

    // change-at org.apache.log4j.MinimumTestCase.common(MinimumTestCase.java:67)
    // to ----at org.apache.log4j.MinimumTestCase.common(MinimumTestCase.java:XXX)
    static String PATTERN_STR = "\\((.*):\\d{1,4}\\)";
    static Pattern PATTERN = Pattern.compile(PATTERN_STR);

    // at org.apache.log4j.MinimumTestCase.common(MinimumTestCase.java:67)
    public String filter(String in) {
	Matcher matcher = PATTERN.matcher(in);
	if (matcher.find()) {
	    StringBuffer buf = new StringBuffer();
	    matcher.appendReplacement(buf, "($1:XXX)");
	    matcher.appendTail(buf);
	    return buf.toString();
	} else {
	    return in;
	}
    }
}


text:
"""
owtf.managers.session
~~~~~~~~~~~~~~~~~~~~~
Manager functions for sessions
"""
from owtf.db.session import get_scoped_session
from owtf.lib import exceptions
from owtf.models.session import Session
from owtf.models.target import Target
from owtf.utils.strings import str2bool

def session_required(func):
    """
    In order to use this decorator on a `method` there is one requirements
    , target_id must be a kwarg of the function

    All this decorator does is check if a valid value is passed for target_id
    if not get the target_id from target manager and pass it
    """

    def wrapped_function(*args, **kwargs):
        # True if target_id doesnt exist
        if (
            kwargs.get("session_id", "None") == "None"
            or kwargs.get("session_id", True) is None
        ):
            kwargs["session_id"] = Session.get_active(get_scoped_session())
        return func(*args, **kwargs)

    return wrapped_function

def _ensure_default_session(session):
    """If there are no sessions, it will be deadly, so if number of sessions is zero then add a default session

    :return: None
    :rtype: None
    """
    if session.query(Session).count() == 0:
        add_session(session, "default session")

def add_session(session, session_name):
    """Adds a new session to the DB

    :param session_name: Name of the new session
    :type session_name: `str`
    :return: None
    :rtype: None
    """
    existing_obj = session.query(Session).filter_by(name=session_name).first()
    if existing_obj is None:
        session_obj = Session(name=session_name[:50])
        session.add(session_obj)
        session.commit()
        Session.set_by_id(session, session_obj.id)
    else:
        raise exceptions.DBIntegrityException(
            "Session already exists with session name: {!s}".format(session_name)
        )

@session_required
def add_target_to_session(session, target_id, session_id=None):
    """Adds the target to the session

    :param target_id: ID of the target to add
    :type target_id: `int`
    :param session_id: ID of the session
    :type session_id: `int`
    :return: None
    :rtype: None
    """
    session_obj = session.query(Session).get(session_id)
    target_obj = session.query(Target).get(target_id)
    if session_obj is None:
        raise exceptions.InvalidSessionReference(
            "No session with id: {!s}".format(session_id)
        )
    if target_obj is None:
        raise exceptions.InvalidTargetReference(
            "No target with id: {!s}".format(target_id)
        )
    if session_obj not in target_obj.sessions:
        session_obj.targets.append(target_obj)
    session.commit()

@session_required
def remove_target_from_session(session, target_id, session_id=None):
    """Remove target from a session

    :param target_id: ID of the target
    :type target_id: `int`
    :param session_id: ID of the session
    :type session_id: `int`
    :return: None
    :rtype: None
    """
    session_obj = session.query(Session).get(session_id)
    target_obj = session.query(Target).get(target_id)
    if session_obj is None:
        raise exceptions.InvalidSessionReference(
            "No session with id: {!s}".format(session_id)
        )
    if target_obj is None:
        raise exceptions.InvalidTargetReference(
            "No target with id: {!s}".format(target_id)
        )
    session_obj.targets.remove(target_obj)
    # Delete target whole together if present in this session alone
    if len(target_obj.sessions) == 0:
        from owtf.managers.target import delete_target

        delete_target(session, id=target_obj.id)
    session.commit()

def delete_session(session, session_id):
    """Deletes a session from the DB

    :param session_id: ID of the session to delete
    :type session_id: `int`
    :return: None
    :rtype: None
    """
    session_obj = session.query(Session).get(session_id)
    if session_obj is None:
        raise exceptions.InvalidSessionReference(
            "No session with id: {!s}".format(session_id)
        )
    for target in session_obj.targets:
        # Means attached to only this session obj
        if len(target.sessions) == 1:
            from owtf.managers.target import delete_target

            delete_target(session, id=target.id)
    session.delete(session_obj)
    _ensure_default_session(session)  # i.e if there are no sessions, add one
    session.commit()

def session_generate_query(session, filter_data=None):
    """Generate query based on filter data

    :param filter_data: Filter data
    :type filter_data: `dict`
    :return:
    :rtype:
    """
    if filter_data is None:
        filter_data = {}
    query = session.query(Session)
    # it doesn't make sense to search in a boolean column :P
    if filter_data.get("active", None):
        if isinstance(filter_data.get("active"), list):
            filter_data["active"] = filter_data["active"][0]
        query = query.filter_by(active=str2bool(filter_data["active"]))
    return query.order_by(Session.id)

def get_all_session_dicts(session, filter_data):
    """Get session dicts based on filter criteria

    :param filter_data: Filter data
    :type filter_data: `dict`
    :return: List of session dicts
    :rtype: `dict`
    """
    session_objs = session_generate_query(session, filter_data).all()
    results = []
    for session_obj in session_objs:
        if session_obj:
            results.append(session_obj.to_dict())
    return results


text:
<?php

namespace Drupal\lightning_media;

use Drupal\media_entity\MediaBundleInterface;

/**
 * Basic implementation of SourceFieldInterface.
 */
trait SourceFieldPluginTrait {

  /**
   * Implements InputMatchInterface::getSourceFieldDefinition().
   */
  public function getSourceFieldDefinition(MediaBundleInterface $bundle) {
    $configuration = $this->getConfiguration();

    if (isset($configuration['source_field'])) {
      $fields = $this->entityFieldManager->getFieldDefinitions(
        $bundle->getEntityType()->getBundleOf(),
        $bundle->id()
      );
      $field = $configuration['source_field'];

      return $fields[$field];
    }
    return NULL;
  }

}