-
Notifications
You must be signed in to change notification settings - Fork 332
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
155 changed files
with
6,186 additions
and
507 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Documentation | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
tags: "v**" | ||
paths: | ||
- 'docs/**' | ||
- '.github/workflows/docs.yml' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
docs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
token: ${{ secrets.SDQ_DEV_DEPLOY_TOKEN }} | ||
- uses: actions/[email protected] | ||
with: | ||
repository: ${{ github.repository }}.wiki | ||
path: wiki | ||
token: ${{ secrets.SDQ_DEV_DEPLOY_TOKEN }} | ||
|
||
- name: Remove contents in Wiki | ||
working-directory: wiki | ||
run: ls -A1 | grep -v '.git' | xargs rm -r | ||
|
||
- name: Copy Wiki from Docs folder | ||
run: cp -r ./docs/. ./wiki | ||
|
||
- name: Deploy 🚀 | ||
uses: stefanzweifel/git-auto-commit-action@v4 | ||
with: | ||
repository: wiki |
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 |
---|---|---|
|
@@ -34,7 +34,7 @@ jobs: | |
working-directory: report-viewer | ||
run: | | ||
npm install | ||
npm run build | ||
npm run build-dev | ||
- name: Deploy 🚀 | ||
uses: JamesIves/[email protected] | ||
|
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 |
---|---|---|
|
@@ -5,7 +5,8 @@ target/ | |
|
||
*.class | ||
|
||
|
||
# GitHub | ||
wiki | ||
|
||
# Mobile Tools for Java (J2ME) | ||
.mtj.tmp/ | ||
|
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
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,6 @@ | ||
package de.jplag.normalization; | ||
|
||
import de.jplag.semantics.Variable; | ||
|
||
record Edge(EdgeType type, Variable cause) { | ||
} |
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,29 @@ | ||
package de.jplag.normalization; | ||
|
||
/** | ||
* Enum for types of edges in normalization graph. Given two statements S and T, S comes before T, there is such an edge | ||
* between S and T if... | ||
*/ | ||
enum EdgeType { | ||
/** | ||
* S writes a variable T reads. | ||
*/ | ||
VARIABLE_FLOW, | ||
/** | ||
* S reads a variable T writes, and S and T are in the same bidirectional block. | ||
*/ | ||
VARIABLE_REVERSE_FLOW, | ||
/** | ||
* S and T access the same variable, and at least one of the two accesses is not a read. | ||
*/ | ||
VARIABLE_ORDER, | ||
/** | ||
* S or T have full position significance, and there is no statement C with full position significance between them. | ||
*/ | ||
POSITION_SIGNIFICANCE_FULL, | ||
/** | ||
* S and T have partial position significance, and there is no statement C with partial position significance between | ||
* them. | ||
*/ | ||
POSITION_SIGNIFICANCE_PARTIAL | ||
} |
36 changes: 36 additions & 0 deletions
36
core/src/main/java/de/jplag/normalization/MultipleEdge.java
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,36 @@ | ||
package de.jplag.normalization; | ||
|
||
import java.util.HashSet; | ||
import java.util.Set; | ||
|
||
import de.jplag.semantics.Variable; | ||
|
||
/** | ||
* Models a multiple edge in the normalization graph. Contains multiple edges. | ||
*/ | ||
class MultipleEdge { | ||
private Set<Edge> edges; | ||
private boolean isVariableFlow; | ||
private boolean isVariableReverseFlow; | ||
|
||
MultipleEdge() { | ||
edges = new HashSet<>(); | ||
isVariableFlow = false; | ||
} | ||
|
||
boolean isVariableFlow() { | ||
return isVariableFlow; | ||
} | ||
|
||
boolean isVariableReverseFlow() { | ||
return isVariableReverseFlow; | ||
} | ||
|
||
void addEdge(EdgeType type, Variable cause) { | ||
if (type == EdgeType.VARIABLE_FLOW) | ||
isVariableFlow = true; | ||
if (type == EdgeType.VARIABLE_REVERSE_FLOW) | ||
isVariableReverseFlow = true; | ||
edges.add(new Edge(type, cause)); | ||
} | ||
} |
Oops, something went wrong.