Skip to content

Commit

Permalink
Merge pull request #49 from cloudhubs/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
g-goulis authored Oct 10, 2024
2 parents 231501a + ba17db5 commit 15cfacb
Show file tree
Hide file tree
Showing 79 changed files with 1,995 additions and 849 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ commands.txt
/clone/
/.vscode
/logs
/node_modules/
6 changes: 3 additions & 3 deletions config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"systemName": "Train-ticket",
"repositoryURL": "https://github.com/FudanSELab/train-ticket.git",
"baseBranch": "main"
"systemName": "sample-spring-microservices-new",
"repositoryURL": "https://github.com/piomin/sample-spring-microservices-new.git",
"baseBranch": "master"
}
161 changes: 161 additions & 0 deletions dependency-reduced-pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,161 @@
<?xml version="1.0" encoding="UTF-8"?>
<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>edu.university.ecs.lab</groupId>
<artifactId>cimet</artifactId>
<version>1.0-SNAPSHOT</version>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>3.3.0</version>
<configuration>
<mainClass>${mainClass}</mainClass>
</configuration>
</plugin>
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.4.1</version>
<configuration>
<show>private</show>
<reportOutputDirectory>./docs</reportOutputDirectory>
<outputDirectory>./docs</outputDirectory>
<groups>
<group>
<title>common</title>
<packages>edu.university.ecs.lab.common.*</packages>
</group>
<group>
<title>delta</title>
<packages>edu.university.ecs.lab.delta.*</packages>
</group>
<group>
<title>intermediate</title>
<packages>edu.university.ecs.lab.intermediate.*</packages>
</group>
<group>
<title>metrics</title>
<packages>edu.university.ecs.lab.metrics.*</packages>
</group>
</groups>
</configuration>
</plugin>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<version>3.2.0</version>
<configuration>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<mainClass>${mainClass}</mainClass>
</manifest>
</archive>
</configuration>
</plugin>
<plugin>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.4</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<transformers>
<transformer>
<mainClass>${mainClass}</mainClass>
</transformer>
</transformers>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>run-ir</id>
<build>
<defaultGoal>exec:java</defaultGoal>
</build>
<properties>
<mainClass>edu.university.ecs.lab.intermediate.create.IRExtractionRunner</mainClass>
</properties>
</profile>
<profile>
<id>run-delta</id>
<build>
<defaultGoal>exec:java</defaultGoal>
</build>
<properties>
<mainClass>edu.university.ecs.lab.delta.DeltaExtractionRunner</mainClass>
</properties>
</profile>
<profile>
<id>run-merge</id>
<build>
<defaultGoal>exec:java</defaultGoal>
</build>
<properties>
<mainClass>edu.university.ecs.lab.intermediate.merge.IRMergeRunner</mainClass>
</properties>
</profile>
<profile>
<id>run-history</id>
<build>
<defaultGoal>exec:java</defaultGoal>
</build>
<properties>
<mainClass>edu.university.ecs.lab.detection.ExcelOutputRunner</mainClass>
</properties>
</profile>
</profiles>
<dependencies>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.30</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.13.2</version>
<scope>test</scope>
<exclusions>
<exclusion>
<artifactId>hamcrest-core</artifactId>
<groupId>org.hamcrest</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<version>RELEASE</version>
<scope>test</scope>
<exclusions>
<exclusion>
<artifactId>junit-jupiter-api</artifactId>
<groupId>org.junit.jupiter</groupId>
</exclusion>
<exclusion>
<artifactId>junit-jupiter-params</artifactId>
<groupId>org.junit.jupiter</groupId>
</exclusion>
<exclusion>
<artifactId>junit-jupiter-engine</artifactId>
<groupId>org.junit.jupiter</groupId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
<properties>
<maven.compiler.target>16</maven.compiler.target>
<maven.compiler.source>16</maven.compiler.source>
<maven.compiler.parameters>true</maven.compiler.parameters>
<compiler-plugin.version>3.8.1</compiler-plugin.version>
</properties>
</project>
78 changes: 0 additions & 78 deletions docs/deltaspec.json

This file was deleted.

53 changes: 28 additions & 25 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,21 +50,9 @@ <h2 style="border-bottom: 2px solid #81c784; padding-bottom: 10px;">Project Moti

<section style="padding: 20px; background-color: #ffffff; margin: 20px auto; max-width: 800px; box-shadow: 0 4px 8px rgba(0,0,0,0.1); border-left: 10px solid #81c784;">
<h2 style="border-bottom: 2px solid #81c784; padding-bottom: 10px; font-weight: 600;">Setup</h2>
<button class="os-btn" onclick="showInstructions('windows')">Windows</button>
<button class="os-btn" onclick="showInstructions('macos')">macOS</button>
<button class="os-btn" onclick="showInstructions('linux')">Linux</button>
<!-- Subsection: Prerequisites -->
<h3 style="font-weight: 600; margin-top: 20px;">Prerequisites</h3>
<p style="font-weight: 300;">
Before you begin, ensure you have met the following requirements:
<ul style="margin-left: 20px;">
<li>Operating system: Windows, macOS, or Linux</li>
<li>Git <a style="color: #004d40;" href="https://git-scm.com/downloads/">Download</a></li>
<li>Java 17+ <a style="color: #004d40;" href="https://www.oracle.com/java/technologies/downloads/">Download</a></li>
<li>Maven 3.0+ <a style="color: #004d40;" href="https://maven.apache.org/download.cgi">Download</a></li>

</ul>
</p>
<a href="setup-windows.html"><button class="os-btn">Windows</button></a>
<a href="setup-macos.html"><button class="os-btn">macOS</button></a>
<a href="setup-linux.html"><button class="os-btn">Linux</button></a>

<!-- Subsection: Installation -->
<h3 style="font-weight: 600; margin-top: 20px;">Installation</h3>
Expand All @@ -79,23 +67,38 @@ <h3 style="font-weight: 600; margin-top: 20px;">Installation</h3>

<!-- Subsection: Running the Project -->
<h3 style="font-weight: 600; margin-top: 20px;">Running the Project</h3>
<p style="font-weight: 300;">
After the installation is complete, you can run the project by executing the following command:
<p style="font-weight: 300;">
After the installation is complete, you can run the project using either Maven or by executing the JAR file:
<ul style="margin-left: 20px;">
<li>To Generate an IR: <code>mvn clean compile -P run-ir</code></li>
<li>To Generate an Delta: <code>mvn clean compile -P run-delta</code></li>
<li>To Generate an Merge: <code>mvn clean compile -P run-merge</code></li>
<li>To Generate Historical Data: <code>mvn clean compile -P run-history</code></li>
<li>To Generate Historical Data:
<ul>
<li>Using Maven: <code>mvn clean package -P run-history</code></li>
<li>Using JAR: <code>java -jar cimet2-data.jar</code></li>
</ul>
</li>
</ul>
</p>

Ensure you have a configuration file named "config.json" present in the same directory as the JAR. A sample configuration file is below...

<br>
<code>
{<br>
"systemName": "systemName",<br>
"repositoryURL": "http://gitRepository.git",<br>
"baseBranch": "master"<br>
}
</code>
</p>
</section>

<section style="padding: 20px; background-color: #ffffff; margin: 20px auto; max-width: 800px; box-shadow: 0 4px 8px rgba(0,0,0,0.1); border-left: 10px solid #81c784;">
<h2 style="border-bottom: 2px solid #81c784; padding-bottom: 10px;">Footnotes</h2>
<p>
</p>
<h2 style="border-bottom: 2px solid #81c784; padding-bottom: 10px; font-weight: 600;">Demo</h2>
<a href="https://youtu.be/mKWueuln_80"><button class="os-btn">Click Here</button></a>

</section>



<footer style="background-color: #81c784; color: #fff; padding: 20px; text-align: center;">
<p>For more information and documentation, <a href="apidocs/index.html" style="color: #004d40;">click here</a>.</p>
</footer>
Expand Down
54 changes: 0 additions & 54 deletions docs/ir-spec.json

This file was deleted.

Loading

0 comments on commit 15cfacb

Please sign in to comment.