Skip to content

Commit

Permalink
Renaming imports to support ShadowProver changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandon-Rozek committed Oct 27, 2023
1 parent 08b9c01 commit aad7940
Show file tree
Hide file tree
Showing 34 changed files with 189 additions and 189 deletions.
8 changes: 4 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>com.naveensundarg</groupId>
<groupId>org.rairlab</groupId>
<artifactId>planner</artifactId>
<version>0.50</version>

Expand All @@ -20,7 +20,7 @@
<configuration>
<archive>
<manifest>
<mainClass>com.naveensundarg.planner.Py4JServer</mainClass>
<mainClass>org.rairlab.planner.Py4JServer</mainClass>
</manifest>
</archive>
<descriptorRefs>
Expand All @@ -39,7 +39,7 @@
<archive>
<manifest>
<addClasspath>true</addClasspath>
<mainClass>com.naveensundarg.planner.Py4JServer</mainClass>
<mainClass>org.rairlab.planner.Py4JServer</mainClass>
</manifest>
</archive>
<descriptorRefs>
Expand All @@ -61,7 +61,7 @@


<dependency>
<groupId>com.naveensundarg</groupId>
<groupId>org.rairlab</groupId>
<artifactId>prover</artifactId>
<version>1.40</version>
</dependency>
Expand Down
4 changes: 2 additions & 2 deletions run_spectra.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ if ! command -v mvn > /dev/null; then
fi


mvn -q exec:java -Dexec.mainClass="com.naveensundarg.planner.utils.Runner" -Dexec.args="$1"
mvn -q exec:java -Dexec.mainClass="org.rairlab.planner.utils.Runner" -Dexec.args="$1"

#mvn exec:java -Dexec.mainClass="com.naveensundarg.planner.utils.Runner" -Dexec.args="$PWD/src/main/resources/com/naveensundarg/planner/problems/ai2thor/FloorPlan28.clj"
#mvn exec:java -Dexec.mainClass="org.rairlab.planner.utils.Runner" -Dexec.args="$PWD/src/main/resources/com/naveensundarg/planner/problems/ai2thor/FloorPlan28.clj"

20 changes: 10 additions & 10 deletions src/main/java/com/naveensundarg/planner/Action.java
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package com.naveensundarg.planner;

import com.naveensundarg.shadow.prover.core.Logic;
import com.naveensundarg.shadow.prover.representations.formula.And;
import com.naveensundarg.shadow.prover.representations.formula.Formula;
import com.naveensundarg.shadow.prover.representations.value.Compound;
import com.naveensundarg.shadow.prover.representations.value.Value;
import com.naveensundarg.shadow.prover.representations.value.Variable;
import com.naveensundarg.shadow.prover.utils.CollectionUtils;
import com.naveensundarg.shadow.prover.utils.Sets;
package org.rairlab.planner;

import org.rairlab.shadow.prover.core.Logic;
import org.rairlab.shadow.prover.representations.formula.And;
import org.rairlab.shadow.prover.representations.formula.Formula;
import org.rairlab.shadow.prover.representations.value.Compound;
import org.rairlab.shadow.prover.representations.value.Value;
import org.rairlab.shadow.prover.representations.value.Variable;
import org.rairlab.shadow.prover.utils.CollectionUtils;
import org.rairlab.shadow.prover.utils.Sets;

import java.util.List;
import java.util.Map;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.naveensundarg.planner;
package org.rairlab.planner;

import com.naveensundarg.shadow.prover.representations.formula.Formula;
import org.rairlab.shadow.prover.representations.formula.Formula;

import java.util.*;
import java.util.stream.Collectors;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/naveensundarg/planner/Context.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.naveensundarg.planner;
package org.rairlab.planner;

import java.util.List;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.naveensundarg.planner;
package org.rairlab.planner;

import com.naveensundarg.planner.utils.PlanningProblem;
import com.naveensundarg.shadow.prover.representations.formula.Formula;
import org.rairlab.planner.utils.PlanningProblem;
import org.rairlab.shadow.prover.representations.formula.Formula;

import java.util.Optional;
import java.util.Set;
Expand Down
18 changes: 9 additions & 9 deletions src/main/java/com/naveensundarg/planner/DepthFirstPlanner.java
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package com.naveensundarg.planner;

import com.naveensundarg.planner.utils.Commons;
import com.naveensundarg.planner.utils.PlanningProblem;
import com.naveensundarg.planner.utils.Visualizer;
import com.naveensundarg.shadow.prover.core.proof.Justification;
import com.naveensundarg.shadow.prover.representations.formula.Formula;
import com.naveensundarg.shadow.prover.utils.CollectionUtils;
import com.naveensundarg.shadow.prover.utils.Sets;
package org.rairlab.planner;

import org.rairlab.planner.utils.Commons;
import org.rairlab.planner.utils.PlanningProblem;
import org.rairlab.planner.utils.Visualizer;
import org.rairlab.shadow.prover.core.proof.Justification;
import org.rairlab.shadow.prover.representations.formula.Formula;
import org.rairlab.shadow.prover.utils.CollectionUtils;
import org.rairlab.shadow.prover.utils.Sets;

import org.apache.commons.lang3.tuple.Pair;

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/naveensundarg/planner/Goal.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.naveensundarg.planner;
package org.rairlab.planner;

import java.util.concurrent.atomic.AtomicInteger;

Expand Down
10 changes: 5 additions & 5 deletions src/main/java/com/naveensundarg/planner/GoalTracker.java
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.naveensundarg.planner;
package org.rairlab.planner;

import com.naveensundarg.planner.utils.PlanningProblem;
import com.naveensundarg.shadow.prover.representations.formula.Formula;
import com.naveensundarg.shadow.prover.utils.CollectionUtils;
import com.naveensundarg.shadow.prover.utils.Sets;
import org.rairlab.planner.utils.PlanningProblem;
import org.rairlab.shadow.prover.representations.formula.Formula;
import org.rairlab.shadow.prover.utils.CollectionUtils;
import org.rairlab.shadow.prover.utils.Sets;

import java.util.Comparator;
import java.util.Optional;
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/naveensundarg/planner/Inducer.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.naveensundarg.planner;
package org.rairlab.planner;

import com.naveensundarg.planner.utils.PlanningProblem;
import org.rairlab.planner.utils.PlanningProblem;

/**
* Created by naveensundarg on 12/19/17.
Expand Down
28 changes: 14 additions & 14 deletions src/main/java/com/naveensundarg/planner/Operations.java
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
package com.naveensundarg.planner;

import com.naveensundarg.planner.utils.Visualizer;
import com.naveensundarg.shadow.prover.core.Prover;
import com.naveensundarg.shadow.prover.core.SnarkWrapper;
import com.naveensundarg.shadow.prover.core.proof.Justification;
import com.naveensundarg.shadow.prover.representations.formula.BiConditional;
import com.naveensundarg.shadow.prover.representations.formula.Formula;
import com.naveensundarg.shadow.prover.representations.formula.Predicate;
import com.naveensundarg.shadow.prover.representations.value.Value;
import com.naveensundarg.shadow.prover.representations.value.Variable;
import com.naveensundarg.shadow.prover.utils.CollectionUtils;

import com.naveensundarg.shadow.prover.utils.Sets;
package org.rairlab.planner;

import org.rairlab.planner.utils.Visualizer;
import org.rairlab.shadow.prover.core.Prover;
import org.rairlab.shadow.prover.core.SnarkWrapper;
import org.rairlab.shadow.prover.core.proof.Justification;
import org.rairlab.shadow.prover.representations.formula.BiConditional;
import org.rairlab.shadow.prover.representations.formula.Formula;
import org.rairlab.shadow.prover.representations.formula.Predicate;
import org.rairlab.shadow.prover.representations.value.Value;
import org.rairlab.shadow.prover.representations.value.Variable;
import org.rairlab.shadow.prover.utils.CollectionUtils;

import org.rairlab.shadow.prover.utils.Sets;
import org.apache.commons.lang3.tuple.Pair;
import org.apache.commons.lang3.tuple.ImmutablePair;
import org.apache.commons.lang3.tuple.Triple;
Expand Down
8 changes: 4 additions & 4 deletions src/main/java/com/naveensundarg/planner/Plan.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.naveensundarg.planner;
package org.rairlab.planner;

import com.naveensundarg.planner.utils.Visualizer;
import com.naveensundarg.shadow.prover.representations.formula.Formula;
import com.naveensundarg.shadow.prover.utils.CollectionUtils;
import org.rairlab.planner.utils.Visualizer;
import org.rairlab.shadow.prover.representations.formula.Formula;
import org.rairlab.shadow.prover.utils.CollectionUtils;

import java.util.List;
import java.util.Set;
Expand Down
22 changes: 11 additions & 11 deletions src/main/java/com/naveensundarg/planner/PlanMethod.java
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
package com.naveensundarg.planner;

import com.naveensundarg.planner.utils.PlanningProblem;
import com.naveensundarg.shadow.prover.representations.formula.And;
import com.naveensundarg.shadow.prover.representations.formula.Formula;
import com.naveensundarg.shadow.prover.representations.value.Compound;
import com.naveensundarg.shadow.prover.representations.value.Value;
import com.naveensundarg.shadow.prover.representations.value.Variable;
import com.naveensundarg.shadow.prover.utils.CollectionUtils;
import com.naveensundarg.shadow.prover.utils.Reader;
import com.naveensundarg.shadow.prover.utils.Sets;
package org.rairlab.planner;

import org.rairlab.planner.utils.PlanningProblem;
import org.rairlab.shadow.prover.representations.formula.And;
import org.rairlab.shadow.prover.representations.formula.Formula;
import org.rairlab.shadow.prover.representations.value.Compound;
import org.rairlab.shadow.prover.representations.value.Value;
import org.rairlab.shadow.prover.representations.value.Variable;
import org.rairlab.shadow.prover.utils.CollectionUtils;
import org.rairlab.shadow.prover.utils.Reader;
import org.rairlab.shadow.prover.utils.Sets;

import java.util.*;
import java.util.stream.Collectors;
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/com/naveensundarg/planner/PlanSketch.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.naveensundarg.planner;
package org.rairlab.planner;

import com.naveensundarg.shadow.prover.representations.formula.Formula;
import com.naveensundarg.shadow.prover.utils.CollectionUtils;
import org.rairlab.shadow.prover.representations.formula.Formula;
import org.rairlab.shadow.prover.utils.CollectionUtils;

import java.util.List;
import java.util.Set;
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/com/naveensundarg/planner/Planner.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.naveensundarg.planner;
package org.rairlab.planner;

import com.naveensundarg.planner.utils.PlanningProblem;
import com.naveensundarg.shadow.prover.representations.formula.Formula;
import org.rairlab.planner.utils.PlanningProblem;
import org.rairlab.shadow.prover.representations.formula.Formula;

import java.util.Optional;
import java.util.Set;
Expand Down
18 changes: 9 additions & 9 deletions src/main/java/com/naveensundarg/planner/Py4JServer.java
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package com.naveensundarg.planner;

import com.naveensundarg.planner.utils.PlanningProblem;
import com.naveensundarg.shadow.prover.core.ccprovers.CognitiveCalculusProver;
import com.naveensundarg.shadow.prover.core.proof.Justification;
import com.naveensundarg.shadow.prover.representations.formula.Formula;
import com.naveensundarg.shadow.prover.utils.Problem;
import com.naveensundarg.shadow.prover.utils.ProblemReader;
import com.naveensundarg.shadow.prover.utils.Reader;
package org.rairlab.planner;

import org.rairlab.planner.utils.PlanningProblem;
import org.rairlab.shadow.prover.core.ccprovers.CognitiveCalculusProver;
import org.rairlab.shadow.prover.core.proof.Justification;
import org.rairlab.shadow.prover.representations.formula.Formula;
import org.rairlab.shadow.prover.utils.Problem;
import org.rairlab.shadow.prover.utils.ProblemReader;
import org.rairlab.shadow.prover.utils.Reader;
import py4j.GatewayServer;

import java.io.ByteArrayInputStream;
Expand Down
12 changes: 6 additions & 6 deletions src/main/java/com/naveensundarg/planner/Simplifier.java
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package com.naveensundarg.planner;
package org.rairlab.planner;

import com.naveensundarg.shadow.prover.representations.formula.Formula;
import com.naveensundarg.shadow.prover.representations.formula.Predicate;
import com.naveensundarg.shadow.prover.representations.value.Compound;
import com.naveensundarg.shadow.prover.representations.value.Constant;
import com.naveensundarg.shadow.prover.representations.value.Value;
import org.rairlab.shadow.prover.representations.formula.Formula;
import org.rairlab.shadow.prover.representations.formula.Predicate;
import org.rairlab.shadow.prover.representations.value.Compound;
import org.rairlab.shadow.prover.representations.value.Constant;
import org.rairlab.shadow.prover.representations.value.Value;

import java.util.Arrays;
import java.util.function.Function;
Expand Down
12 changes: 6 additions & 6 deletions src/main/java/com/naveensundarg/planner/State.java
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package com.naveensundarg.planner;
package org.rairlab.planner;

import com.naveensundarg.shadow.prover.core.Prover;
import com.naveensundarg.shadow.prover.core.SnarkWrapper;
import com.naveensundarg.shadow.prover.representations.formula.Formula;
import com.naveensundarg.shadow.prover.utils.CollectionUtils;
import com.naveensundarg.shadow.prover.utils.Reader;
import org.rairlab.shadow.prover.core.Prover;
import org.rairlab.shadow.prover.core.SnarkWrapper;
import org.rairlab.shadow.prover.representations.formula.Formula;
import org.rairlab.shadow.prover.utils.CollectionUtils;
import org.rairlab.shadow.prover.utils.Reader;

import java.util.Set;

Expand Down
20 changes: 10 additions & 10 deletions src/main/java/com/naveensundarg/planner/inducers/SimpleInducer.java
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package com.naveensundarg.planner.inducers;

import com.naveensundarg.planner.*;
import com.naveensundarg.planner.utils.Commons;
import com.naveensundarg.planner.utils.PlanningProblem;
import com.naveensundarg.shadow.prover.representations.formula.Formula;
import com.naveensundarg.shadow.prover.representations.value.Compound;
import com.naveensundarg.shadow.prover.representations.value.Value;
import com.naveensundarg.shadow.prover.representations.value.Variable;
import com.naveensundarg.shadow.prover.utils.Sets;
package org.rairlab.planner.inducers;

import org.rairlab.planner.*;
import org.rairlab.planner.utils.Commons;
import org.rairlab.planner.utils.PlanningProblem;
import org.rairlab.shadow.prover.representations.formula.Formula;
import org.rairlab.shadow.prover.representations.value.Compound;
import org.rairlab.shadow.prover.representations.value.Value;
import org.rairlab.shadow.prover.representations.value.Variable;
import org.rairlab.shadow.prover.utils.Sets;

import java.util.*;
import java.util.function.Function;
Expand Down
12 changes: 6 additions & 6 deletions src/main/java/com/naveensundarg/planner/utils/Commons.java
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package com.naveensundarg.planner.utils;
package org.rairlab.planner.utils;

import com.diogonunes.jcdp.color.ColoredPrinter;
import com.diogonunes.jcdp.color.api.Ansi;
import com.naveensundarg.shadow.prover.representations.formula.And;
import com.naveensundarg.shadow.prover.representations.formula.Formula;
import com.naveensundarg.shadow.prover.representations.value.Value;
import com.naveensundarg.shadow.prover.representations.value.Variable;
import com.naveensundarg.shadow.prover.utils.CollectionUtils;
import org.rairlab.shadow.prover.representations.formula.And;
import org.rairlab.shadow.prover.representations.formula.Formula;
import org.rairlab.shadow.prover.representations.value.Value;
import org.rairlab.shadow.prover.representations.value.Variable;
import org.rairlab.shadow.prover.utils.CollectionUtils;

import java.util.ArrayList;
import java.util.Map;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.naveensundarg.planner.utils;
package org.rairlab.planner.utils;

import com.diogonunes.jcdp.color.ColoredPrinter;
import com.diogonunes.jcdp.color.api.AbstractColoredPrinter;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package com.naveensundarg.planner.utils;

import com.naveensundarg.shadow.prover.representations.formula.Formula;
import com.naveensundarg.shadow.prover.utils.CollectionUtils;
import com.naveensundarg.shadow.prover.utils.Reader;
import com.naveensundarg.planner.Goal;
import com.naveensundarg.planner.PlanMethod;
import com.naveensundarg.planner.State;
package org.rairlab.planner.utils;

import org.rairlab.shadow.prover.representations.formula.Formula;
import org.rairlab.shadow.prover.utils.CollectionUtils;
import org.rairlab.shadow.prover.utils.Reader;
import org.rairlab.planner.Goal;
import org.rairlab.planner.PlanMethod;
import org.rairlab.planner.State;
import us.bpsm.edn.Keyword;
import us.bpsm.edn.parser.Parseable;
import us.bpsm.edn.parser.Parser;
Expand All @@ -16,7 +16,7 @@
import java.io.InputStreamReader;
import java.util.*;

import static com.naveensundarg.planner.utils.Reader.readPlanMethodsFrom;
import static org.rairlab.planner.utils.Reader.readPlanMethodsFrom;

/**
* Created by naveensundarg on 1/13/17.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.naveensundarg.planner.utils;
package org.rairlab.planner.utils;

import com.naveensundarg.planner.Action;
import com.naveensundarg.shadow.prover.representations.formula.Formula;
import com.naveensundarg.shadow.prover.representations.value.Variable;
import org.rairlab.planner.Action;
import org.rairlab.shadow.prover.representations.formula.Formula;
import org.rairlab.shadow.prover.representations.value.Variable;

import java.util.List;
import java.util.Set;
Expand Down
Loading

0 comments on commit aad7940

Please sign in to comment.