-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'spgroup:master' into master
- Loading branch information
Showing
40 changed files
with
1,135 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
results.csv | ||
/data/ | ||
/output/ | ||
*.iml | ||
/bin/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
FROM amazoncorretto:8 as build | ||
|
||
WORKDIR /usr/src/miningframework | ||
|
||
COPY . . | ||
|
||
RUN ./gradlew installDist | ||
|
||
FROM amazoncorretto:8 | ||
|
||
WORKDIR /usr/src/miningframework | ||
|
||
RUN yum -y update | ||
RUN yum -y install git | ||
|
||
COPY --from=build /usr/src/miningframework/build /usr/local/bin/miningframework | ||
RUN chmod +x /usr/local/bin/miningframework/install/miningframework/bin/miningframework | ||
|
||
ENV PATH="/usr/local/bin/miningframework/install/miningframework/bin:${PATH}" | ||
|
||
ENTRYPOINT ["miningframework"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+5.12 KB
(100%)
dependencies/soot-analysis-0.2.1-SNAPSHOT-jar-with-dependencies.jar
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
package injectors | ||
|
||
import com.google.inject.AbstractModule | ||
import com.google.inject.multibindings.Multibinder | ||
import interfaces.CommitFilter | ||
import interfaces.DataCollector | ||
import interfaces.OutputProcessor | ||
import interfaces.ProjectProcessor | ||
import org.apache.logging.log4j.LogManager | ||
import org.apache.logging.log4j.Logger | ||
import services.commitFilters.MutuallyModifiedFilesCommitFilter | ||
import services.dataCollectors.GenericMerge.GenericMergeConfig | ||
import services.dataCollectors.GenericMerge.GenericMergeDataCollector | ||
import services.dataCollectors.GenericMerge.MergeConflictsComparator | ||
import services.dataCollectors.GenericMerge.MergeToolsComparator | ||
import services.dataCollectors.GenericMerge.ScenarioLOCsCounter | ||
import services.dataCollectors.GenericMerge.UnstructuredMergeCollector | ||
import services.outputProcessors.GenericMergeDataOutputProcessor | ||
import services.projectProcessors.DummyProjectProcessor | ||
import services.util.ci.CIPlatform | ||
import services.util.ci.TravisPlatform | ||
|
||
import java.nio.file.Files | ||
import java.nio.file.Paths | ||
|
||
class GenericMergeModule extends AbstractModule { | ||
private static Logger LOG = LogManager.getLogger(GenericMergeModule.class) | ||
|
||
@Override | ||
protected void configure() { | ||
Multibinder<ProjectProcessor> projectProcessorBinder = Multibinder.newSetBinder(binder(), ProjectProcessor.class) | ||
projectProcessorBinder.addBinding().to(DummyProjectProcessor.class) | ||
|
||
Multibinder<DataCollector> dataCollectorBinder = Multibinder.newSetBinder(binder(), DataCollector.class) | ||
dataCollectorBinder.addBinding().to(ScenarioLOCsCounter.class) | ||
dataCollectorBinder.addBinding().to(GenericMergeDataCollector.class) | ||
dataCollectorBinder.addBinding().to(MergeToolsComparator.class) | ||
dataCollectorBinder.addBinding().to(MergeConflictsComparator.class) | ||
dataCollectorBinder.addBinding().to(UnstructuredMergeCollector.class) | ||
|
||
Multibinder<OutputProcessor> outputProcessorBinder = Multibinder.newSetBinder(binder(), OutputProcessor.class) | ||
outputProcessorBinder.addBinding().to(GenericMergeDataOutputProcessor.class) | ||
|
||
bind(CommitFilter.class).to(MutuallyModifiedFilesCommitFilter.class) | ||
bind(CIPlatform.class).to(TravisPlatform.class) | ||
|
||
createExecutionReportsFile() | ||
} | ||
|
||
private static void createExecutionReportsFile() { | ||
LOG.info("Creating Generic Merge report file") | ||
Files.createDirectories(Paths.get(GenericMergeConfig.GENERIC_MERGE_REPORT_PATH)) | ||
def reportFile = new File(GenericMergeConfig.GENERIC_MERGE_REPORT_FILE_NAME) | ||
reportFile.createNewFile() | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Root Logger | ||
rootLogger=info, STDOUT | ||
|
||
# Direct log messages to stdout | ||
appender.console.type = Console | ||
appender.console.name = STDOUT | ||
appender.console.layout.type=PatternLayout | ||
appender.console.layout.pattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Configuration status="INFO"> | ||
<Appenders> | ||
<Console name="console" target="SYSTEM_OUT"> | ||
<PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n" /> | ||
</Console> | ||
</Appenders> | ||
|
||
<Loggers> | ||
<Root level="info"> | ||
<AppenderRef ref="console" /> | ||
</Root> | ||
</Loggers> | ||
</Configuration> |
Oops, something went wrong.