Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Dominik Schwabe
comparefile
Commits
45b5b97a
Commit
45b5b97a
authored
Jun 21, 2021
by
Dominik Schwabe
Browse files
fixed small markup bug
parent
40207070
Changes
3
Hide whitespace changes
Inline
Side-by-side
frontend/src/components/Evaluate.js
View file @
45b5b97a
...
@@ -87,7 +87,7 @@ const Evaluate = () => {
...
@@ -87,7 +87,7 @@ const Evaluate = () => {
<
/Button
>
<
/Button
>
);
);
return
(
return
(
<
div
className
=
"
uk-container uk-container-expand
uk-margin-medium-top uk-margin-large-top@l
"
>
<
div
className
=
"
uk-container uk-container-expand
"
>
<
div
className
=
"
metric-layout
"
>
<
div
className
=
"
metric-layout
"
>
<
div
>
<
div
>
<
FileInput
setCalculation
=
{
setComputedCalculation
}
/
>
<
FileInput
setCalculation
=
{
setComputedCalculation
}
/
>
...
...
frontend/src/components/OneHypRef.js
View file @
45b5b97a
...
@@ -25,10 +25,10 @@ const OneHypRefResult = ({ className, calculation }) => {
...
@@ -25,10 +25,10 @@ const OneHypRefResult = ({ className, calculation }) => {
<
tbody
>
<
tbody
>
<
tr
>
<
tr
>
<
td
>
<
td
>
<
Markup
markups
=
{
hypothesis
}
markupState
=
{
markupState
}
/
>
<
Markup
markups
=
{
reference
}
markupState
=
{
markupState
}
/
>
<
/td
>
<
/td
>
<
td
>
<
td
>
<
Markup
markups
=
{
reference
}
markupState
=
{
markupState
}
/
>
<
Markup
markups
=
{
hypothesis
}
markupState
=
{
markupState
}
/
>
<
/td
>
<
/td
>
<
/tr
>
<
/tr
>
<
/tbody
>
<
/tbody
>
...
...
frontend/src/utils/markup.js
View file @
45b5b97a
...
@@ -127,7 +127,8 @@ const compute_matches = (docs, min_length, allow_self_similarities) => {
...
@@ -127,7 +127,8 @@ const compute_matches = (docs, min_length, allow_self_similarities) => {
let
curr_start
=
0
;
let
curr_start
=
0
;
let
curr_depth
=
0
;
let
curr_depth
=
0
;
for
(
let
i
=
0
;
i
<
lcp_array
.
length
;
i
++
)
{
let
i
=
0
while
(
i
<
lcp_array
.
length
)
{
if
(
lcp_array
[
i
]
>
curr_depth
)
{
if
(
lcp_array
[
i
]
>
curr_depth
)
{
start
.
push
(
curr_start
);
start
.
push
(
curr_start
);
depth
.
push
(
curr_depth
);
depth
.
push
(
curr_depth
);
...
@@ -147,7 +148,7 @@ const compute_matches = (docs, min_length, allow_self_similarities) => {
...
@@ -147,7 +148,7 @@ const compute_matches = (docs, min_length, allow_self_similarities) => {
curr_start
=
start
.
pop
();
curr_start
=
start
.
pop
();
curr_depth
=
depth
.
pop
();
curr_depth
=
depth
.
pop
();
}
}
}
}
else
i
++
}
}
const
matches
=
[];
const
matches
=
[];
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment