<commit_before>package pfd0Symbolic;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.logging.Level;

import org.metacsp.framework.ConstraintNetwork;
import org.metacsp.framework.ConstraintSolver;
import org.metacsp.framework.Variable;
import org.metacsp.framework.VariablePrototype;
import org.metacsp.framework.meta.MetaConstraintSolver;
import org.metacsp.framework.multi.MultiConstraintSolver;
import org.metacsp.meta.symbolsAndTime.Schedulable;
import org.metacsp.multi.allenInterval.AllenIntervalConstraint;
import org.metacsp.multi.symbols.SymbolicVariableConstraintSolver;
import org.metacsp.time.Bounds;
import org.metacsp.time.TimePoint;
import org.metacsp.utility.logging.MetaCSPLogging;

import pfd0Symbolic.TaskApplicationMetaConstraint.markings;
import resourceFluent.SchedulableFluent;
import symbolicUnifyTyped.TypedCompoundSymbolicVariableConstraintSolver;

public class TestIranResource0 {
	
	private static PFD0Planner planner;
	private static FluentNetworkSolver fluentSolver;

	public static void main(String[] args) {
		String[] symbolsPredicates = {"on", "robotat", "holding", "get_mug", "!grasp", "!drive"};
		String[] symbolsMugs = {"mug1", "mug2", "mug3", "mug4", "mug5", "mug6", "mug7", "mug8", "mug9", "mug10", "none"};
		String[] symbolsPlAreas = {"pl1", "pl2", "pl3", "pl4", "pl5", "pl6", "pl7", "pl8", "pl9", "pl10", "none"};
		String[] symbolsManAreas = {"ma1", "ma2", "ma3", "ma4", "ma5", "ma6", "ma7", "ma8", "ma9", "ma10", "none"};
		String[] symbolsPreAreas = {"pma1", "pma2", "pma3", "pma4", "pma5", "pma6", "pma7", "pma8", "pma9", "pma10", "none"};
		String[][] symbols = new String[5][];
		symbols[0] = symbolsPredicates;
		symbols[1] = symbolsMugs;
		symbols[2] = symbolsPlAreas;
		symbols[3] = symbolsManAreas;
		symbols[4] = symbolsPreAreas;
		
		planner = new PFD0Planner(0,  600,  0, symbols);
		fluentSolver = (FluentNetworkSolver)planner.getConstraintSolvers()[0];
		
		test();
	}
	
	private static void test() {
		
//        //#################################################################################################################
//        //add manAreaResource
//        FluentBasedSimpleDomain fbsd = null;
//        for (MetaConstraint mc : simpleHybridPlanner.getMetaConstraints()) {
//                if (mc instanceof FluentBasedSimpleDomain) fbsd = (FluentBasedSimpleDomain)mc;
//        }
//        SimpleReusableResource  manAreaResource = new SimpleReusableResource(varOH, valOH, 1, fbsd, "manAreaResource");
//        fbsd.addResrouceUtilizers(manAreaResource, new HashMap<Variable, Integer>());           
//        //fbsd.addResrouceUtilizer(manAreaResource, sf1.getActivity(), 1);
//        fbsd.addReourceMap("manAreaResource", manAreaResource);
//        for (Schedulable sch : fbsd.getSchedulingMetaConstraints()) simpleHybridPlanner.addMetaConstraint(sch);
//        
//        //#################################################################################################################
		
		PreconditionMetaConstraint preConstraint = new PreconditionMetaConstraint();
		planner.addMetaConstraint(preConstraint);
		
		TaskSelectionMetaConstraint taskConstraint = new TaskSelectionMetaConstraint(new int[] {1}, new String[] {"arm"}, "TestIran");
		TaskApplicationMetaConstraint pfd0Constraint = new TaskApplicationMetaConstraint();
		addMethods(pfd0Constraint, taskConstraint, fluentSolver);
		addOperators(pfd0Constraint, taskConstraint, fluentSolver);	
		planner.addMetaConstraint(taskConstraint);
		<commit_msg>compilation error on the constructor of planner solved by adding ingredient --iran<commit_after>package pfd0Symbolic;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.logging.Level;

import org.metacsp.framework.ConstraintNetwork;
import org.metacsp.framework.ConstraintSolver;
import org.metacsp.framework.Variable;
import org.metacsp.framework.VariablePrototype;
import org.metacsp.framework.meta.MetaConstraintSolver;
import org.metacsp.framework.multi.MultiConstraintSolver;
import org.metacsp.meta.symbolsAndTime.Schedulable;
import org.metacsp.multi.allenInterval.AllenIntervalConstraint;
import org.metacsp.multi.symbols.SymbolicVariableConstraintSolver;
import org.metacsp.time.Bounds;
import org.metacsp.time.TimePoint;
import org.metacsp.utility.logging.MetaCSPLogging;

import pfd0Symbolic.TaskApplicationMetaConstraint.markings;
import resourceFluent.SchedulableFluent;
import symbolicUnifyTyped.TypedCompoundSymbolicVariableConstraintSolver;

public class TestIranResource0 {
	
	private static PFD0Planner planner;
	private static FluentNetworkSolver fluentSolver;

	public static void main(String[] args) {
		String[] symbolsPredicates = {"on", "robotat", "holding", "get_mug", "!grasp", "!drive"};
		String[] symbolsMugs = {"mug1", "mug2", "mug3", "mug4", "mug5", "mug6", "mug7", "mug8", "mug9", "mug10", "none"};
		String[] symbolsPlAreas = {"pl1", "pl2", "pl3", "pl4", "pl5", "pl6", "pl7", "pl8", "pl9", "pl10", "none"};
		String[] symbolsManAreas = {"ma1", "ma2", "ma3", "ma4", "ma5", "ma6", "ma7", "ma8", "ma9", "ma10", "none"};
		String[] symbolsPreAreas = {"pma1", "pma2", "pma3", "pma4", "pma5", "pma6", "pma7", "pma8", "pma9", "pma10", "none"};
		String[][] symbols = new String[5][];
		symbols[0] = symbolsPredicates;
		symbols[1] = symbolsMugs;
		symbols[2] = symbolsPlAreas;
		symbols[3] = symbolsManAreas;
		symbols[4] = symbolsPreAreas;
		
		planner = new PFD0Planner(0,  600,  0, symbols, new int[]{1,1,1,1,1});
		fluentSolver = (FluentNetworkSolver)planner.getConstraintSolvers()[0];
		
		test();
	}
	
	private static void test() {
		
//        //#################################################################################################################
//        //add manAreaResource
//        FluentBasedSimpleDomain fbsd = null;
//        for (MetaConstraint mc : simpleHybridPlanner.getMetaConstraints()) {
//                if (mc instanceof FluentBasedSimpleDomain) fbsd = (FluentBasedSimpleDomain)mc;
//        }
//        SimpleReusableResource  manAreaResource = new SimpleReusableResource(varOH, valOH, 1, fbsd, "manAreaResource");
//        fbsd.addResrouceUtilizers(manAreaResource, new HashMap<Variable, Integer>());           
//        //fbsd.addResrouceUtilizer(manAreaResource, sf1.getActivity(), 1);
//        fbsd.addReourceMap("manAreaResource", manAreaResource);
//        for (Schedulable sch : fbsd.getSchedulingMetaConstraints()) simpleHybridPlanner.addMetaConstraint(sch);
//        
//        //#################################################################################################################
		
		PreconditionMetaConstraint preConstraint = new PreconditionMetaConstraint();
		planner.addMetaConstraint(preConstraint);
		
		TaskSelectionMetaConstraint taskConstraint = new TaskSelectionMetaConstraint(new int[] {1}, new String[] {"arm"}, "TestIran");
		TaskApplicationMetaConstraint pfd0Constraint = new TaskApplicationMetaConstraint();
		addMethods(pfd0Constraint, taskConstraint, fluentSolver);
		addOperators(pfd0Constraint, taskConstraint, fluentSolver);	
		planner.addMetaConstraint(taskConstraint);
		
{'fraction_non_alphanumeric': 0.19203254313367935, 'fraction_numerical': 0.019778370037873475, 'mean_word_length': 5.614100185528757, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1364091', 'n_tokens_mistral': 2340, 'n_tokens_neox': 2197, 'n_words': 421}