-
Notifications
You must be signed in to change notification settings - Fork 328
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/develop' into report-viewer/clus…
…ter-graph
- Loading branch information
Showing
19 changed files
with
292 additions
and
110 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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package de.jplag.cli; | ||
|
||
import static org.junit.jupiter.api.Assertions.assertEquals; | ||
|
||
import java.util.Arrays; | ||
|
||
import org.junit.jupiter.api.Test; | ||
|
||
class AdvancedGroupTest extends CommandLineInterfaceTest { | ||
private static final String SUFFIXES = ".sc,.scala"; | ||
|
||
private static final double SIMILARITY_THRESHOLD = 0.5; | ||
|
||
/** | ||
* Verify that it is possible to set multiple options in the "advanced" options group. | ||
*/ | ||
@Test | ||
void testNotExclusive() throws CliException { | ||
buildOptionsFromCLI(defaultArguments().suffixes(SUFFIXES).similarityThreshold(SIMILARITY_THRESHOLD)); | ||
assertEquals(Arrays.stream(SUFFIXES.split(",")).toList(), options.fileSuffixes()); | ||
assertEquals(0.5, options.similarityThreshold()); | ||
} | ||
} |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,18 @@ | ||
<template> | ||
<div> | ||
<div | ||
class="mx-auto h-16 w-16 animate-spin rounded-full border-8 border-interactable-border-light border-t-accent dark:border-interactable-border-dark dark:border-t-accent" | ||
></div> | ||
<p class="text-2xl font-bold">{{ message }}</p> | ||
</div> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
defineProps({ | ||
message: { | ||
type: String, | ||
required: false, | ||
default: 'Loading Files...' | ||
} | ||
}) | ||
</script> |
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,32 @@ | ||
<template> | ||
<ClusterView v-if="overview" :overview="overview" :cluster="overview.clusters[clusterIndex]" /> | ||
<div | ||
v-else | ||
class="absolute bottom-0 left-0 right-0 top-0 flex flex-col items-center justify-center" | ||
> | ||
<LoadingCircle class="mx-auto" /> | ||
</div> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { type Ref, ref, computed } from 'vue' | ||
import { OverviewFactory } from '@/model/factories/OverviewFactory' | ||
import ClusterView from '@/views/ClusterView.vue' | ||
import LoadingCircle from '@/components/LoadingCircle.vue' | ||
import type { Overview } from '@/model/Overview' | ||
const props = defineProps({ | ||
clusterIndex: { | ||
type: String, | ||
required: true | ||
} | ||
}) | ||
const clusterIndex = computed(() => parseInt(props.clusterIndex)) | ||
const overview: Ref<Overview | null> = ref(null) | ||
OverviewFactory.getOverview().then((o) => { | ||
overview.value = o | ||
}) | ||
</script> |
Oops, something went wrong.