Skip to content

Commit

Permalink
change org to gucorpling; change name from Squeezer to RS4
Browse files Browse the repository at this point in the history
  • Loading branch information
lgessler committed Jun 8, 2023
1 parent 70a5d2a commit 9128280
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 27 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<container xmlns="http://www.osgi.org/xmlns/scr/v1.1.0">
<component name="SqueezerModuleManipulatorComponent" factory="PepperManipulatorComponentFactory" activate="activate">
<implementation class="org.corpus_tools.pepperModules_SqueezerModule.SqueezerModuleManipulator"/>
<component name="RS4ModuleManipulatorComponent" factory="PepperManipulatorComponentFactory" activate="activate">
<implementation class="org.gucorpling.pepperModules_RS4Module.RS4ModuleManipulator"/>
<service>
<provide interface="java.lang.Thread$UncaughtExceptionHandler"/>
<provide interface="org.corpus_tools.pepper.modules.PepperManipulator"/>
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# SqueezerModule
# RS4Module
Todo
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
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>org.corpus-tools</groupId>
<artifactId>pepperModules-SqueezerModule</artifactId>
<groupId>org.gucorpling</groupId>
<artifactId>pepperModules-RS4Module</artifactId>
<version>0.1.0</version>
<packaging>bundle</packaging>
<name>org.corpus-tools.pepperModules-SqueezerModule</name>
<name>org.corpus-tools.pepperModules-RS4Module</name>
<!-- Declares this project to be an extension of the project pepper-parentModule. -->
<parent>
<groupId>org.corpus-tools</groupId>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,27 +1,19 @@
package org.corpus_tools.pepperModules_SqueezerModule;
package org.gucorpling.pepperModules_RS4Module;

import java.util.*;
import java.util.stream.Collectors;

import org.corpus_tools.pepper.common.DOCUMENT_STATUS;
import org.corpus_tools.pepper.common.PepperConfiguration;
import org.corpus_tools.pepper.impl.PepperManipulatorImpl;
import org.corpus_tools.pepper.impl.PepperMapperImpl;
import org.corpus_tools.pepper.modules.PepperManipulator;
import org.corpus_tools.pepper.modules.PepperMapper;
import org.corpus_tools.pepper.modules.PepperModule;
import org.corpus_tools.pepper.modules.PepperModuleProperties;
import org.corpus_tools.pepper.modules.exceptions.PepperModuleDataException;
import org.corpus_tools.pepper.modules.exceptions.PepperModuleException;
import org.corpus_tools.pepper.modules.exceptions.PepperModuleNotReadyException;
import org.corpus_tools.salt.SALT_TYPE;
import org.corpus_tools.salt.SaltFactory;
import org.corpus_tools.salt.common.*;
import org.corpus_tools.salt.core.*;
import org.corpus_tools.salt.core.SGraph.GRAPH_TRAVERSE_TYPE;
import org.corpus_tools.salt.graph.Identifier;
import org.corpus_tools.salt.graph.Node;
import org.corpus_tools.salt.graph.Relation;
import org.eclipse.emf.common.util.URI;
import org.osgi.service.component.annotations.Component;

Expand All @@ -31,12 +23,12 @@
*
* @author Luke Gessler
*/
@Component(name = "SqueezerModuleManipulatorComponent", factory = "PepperManipulatorComponentFactory")
public class SqueezerModuleManipulator extends PepperManipulatorImpl {
@Component(name = "RS4ModuleManipulatorComponent", factory = "PepperManipulatorComponentFactory")
public class RS4ModuleManipulator extends PepperManipulatorImpl {

public SqueezerModuleManipulator() {
public RS4ModuleManipulator() {
super();
setName("Squeezer");
setName("RS4");
setSupplierContact(URI.createURI(PepperConfiguration.EMAIL));
setSupplierHomepage(URI.createURI(PepperConfiguration.HOMEPAGE));
setDesc("This manipulator deletes nodes with no annotations.");
Expand All @@ -50,12 +42,12 @@ public SqueezerModuleManipulator() {
* connected to given {@link Identifier}
*/
public PepperMapper createPepperMapper(Identifier Identifier) {
SqueezerModuleMapper mapper = new SqueezerModuleMapper();
RS4ModuleMapper mapper = new RS4ModuleMapper();
return (mapper);
}


public static class SqueezerModuleMapper extends PepperMapperImpl implements GraphTraverseHandler {
public static class RS4ModuleMapper extends PepperMapperImpl implements GraphTraverseHandler {

private Map<String, UUID> rstId2UUID;
private Map<UUID, Integer> tokenUUID2index;
Expand All @@ -66,7 +58,7 @@ public static class SqueezerModuleMapper extends PepperMapperImpl implements Gra
private Map<String, SStructure> secondaryEdgeIndex = null;
private Set<SDominanceRelation> primaryRelationsWithSignals = null;

public SqueezerModuleMapper() {
public RS4ModuleMapper() {
tokenMap = new HashMap<>();
tokenUUID2index = new HashMap<>();
structureMap = new HashMap<>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.corpus_tools.pepperModules_SqueezerModule;
package org.gucorpling.pepperModules_RS4Module;
import org.corpus_tools.pepper.modules.PepperModuleProperties;
import org.corpus_tools.pepper.modules.PepperModuleProperty;

/**
*
* @author Luke Gessler
*/
public class SqueezerModuleManipulatorProperties extends PepperModuleProperties {
public static final String PREFIX = "Squeezer.";
public SqueezerModuleManipulatorProperties() {}
public class RS4ModuleManipulatorProperties extends PepperModuleProperties {
public static final String PREFIX = "RS4.";
public RS4ModuleManipulatorProperties() {}
}

0 comments on commit 9128280

Please sign in to comment.