diff --git a/src/components/Solutions/EvaluationDetail/EvaluationDetail.js b/src/components/Solutions/EvaluationDetail/EvaluationDetail.js index 9dcdfb316..21fe1392d 100644 --- a/src/components/Solutions/EvaluationDetail/EvaluationDetail.js +++ b/src/components/Solutions/EvaluationDetail/EvaluationDetail.js @@ -84,7 +84,7 @@ const EvaluationDetail = ({ 'text-success': isCorrect, })}> - + {showScoreDetail && ( diff --git a/src/components/Solutions/SolutionStatus/SolutionStatus.js b/src/components/Solutions/SolutionStatus/SolutionStatus.js index 3210367cc..c5b5e3a4b 100644 --- a/src/components/Solutions/SolutionStatus/SolutionStatus.js +++ b/src/components/Solutions/SolutionStatus/SolutionStatus.js @@ -421,8 +421,21 @@ class SolutionStatus extends Component {

- floor({maxPoints} × ) ={' '} - {actualPoints} + floor({maxPoints} ×{' '} + + + + + }> + {' + '}ε + + ) = {actualPoints}

diff --git a/src/components/scoreConfig/ScoreConfigInfo/ScoreConfigInfoWeighted.js b/src/components/scoreConfig/ScoreConfigInfo/ScoreConfigInfoWeighted.js index 688060a3e..d96f3a76c 100644 --- a/src/components/scoreConfig/ScoreConfigInfo/ScoreConfigInfoWeighted.js +++ b/src/components/scoreConfig/ScoreConfigInfo/ScoreConfigInfoWeighted.js @@ -21,7 +21,7 @@ const ScoreConfigInfoWeighted = ({ scoreConfig, testResults }) => { .map(test => ({ test, weight: weightsObj[test] })); const weightsSum = weights.reduce((acc, { weight }) => acc + weight, 0); const testsSum = results && weights.reduce((acc, { test, weight }) => acc + weight * results[test], 0); - const totalScore = weightsSum !== 0 ? Math.round((testsSum * 1000) / weightsSum) / 1000 : '?'; + const totalScore = weightsSum !== 0 ? Math.round((testsSum * 100000) / weightsSum) / 100000 : '?'; return (
diff --git a/src/locales/cs.json b/src/locales/cs.json index 07bde14a9..9e7f87357 100644 --- a/src/locales/cs.json +++ b/src/locales/cs.json @@ -1251,8 +1251,6 @@ "app.pipelinesList.judgeOnlyIconTooltip": "Pipeline pouze se sudím", "app.pipelinesList.stdoutIconTooltip": "Testované řešení by mělo vypsat svoje výsledky na standardní výstup", "app.pipelinesList.universalPipelineIconTooltip": "Univerzální pipeline, která se používá v konfiguracích běžných úloh.", - "app.pipelinesSimpleList.actions": "Akce", - "app.pipelinesSimpleList.empty": "Na seznamu nejsou žádné pipelines.", "app.plantSisTerm.noGroupsSelected": "Musí být vybrána alespoň jedna rodičovská skupina.", "app.plantSisTerm.plantGroups": "Osadit skupiny", "app.plantSisTerm.planted": "Osazeno", @@ -1554,6 +1552,7 @@ "app.solution.pointsExplainDialog.correctnessAboveThreshold": "Řešení překročilo požadovanou hranici správnosti.", "app.solution.pointsExplainDialog.correctnessBelowThreshold": "Správnost řešení je pod minimální požadovanou hranicí, takže nebyly uděleny žádné body.", "app.solution.pointsExplainDialog.deadlinesGraphNotUsedSuffix": "(graf je pouze informativní, bodový limit nebyl použit při výpočtu správnosti)", + "app.solution.pointsExplainDialog.epsilonExplain": "Epsilon (1e-6) je přičteno, aby kompenzovalo zaokrouhlovací chyby.", "app.solution.pointsExplainDialog.overriddenPoints": "Vedoucí ručně přepsal hodnocení úlohy na {overriddenPoints} {overriddenPoints, plural, one {bod} =2 {body} =3 {body} =4 {body} other {bodů}} (a {bonusPoints} {bonusPoints, plural, one {bonusový bod} =2 {bonusové body} =3 {bonusové body} =4 {bonusové body} other {bonusových bodů}}).", "app.solution.pointsExplainDialog.title": "Vysvětlení hodnotícího procesu", "app.solution.reviewed": "Revidováno", diff --git a/src/locales/en.json b/src/locales/en.json index 9c2eb9ba9..517d3713d 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -1251,8 +1251,6 @@ "app.pipelinesList.judgeOnlyIconTooltip": "Judge-only pipeline", "app.pipelinesList.stdoutIconTooltip": "Tested solution is expected to yield results to standard output", "app.pipelinesList.universalPipelineIconTooltip": "Universal pipeline which is used in common (simple) exercise configurations.", - "app.pipelinesSimpleList.actions": "Actions", - "app.pipelinesSimpleList.empty": "There are no pipelines in this list.", "app.plantSisTerm.noGroupsSelected": "At least one parent group needs to be selected.", "app.plantSisTerm.plantGroups": "Plant Groups", "app.plantSisTerm.planted": "Planted", @@ -1554,6 +1552,7 @@ "app.solution.pointsExplainDialog.correctnessAboveThreshold": "The solution correctness is above threshold.", "app.solution.pointsExplainDialog.correctnessBelowThreshold": "The solution correcntess is below threshold. No points are granted.", "app.solution.pointsExplainDialog.deadlinesGraphNotUsedSuffix": "(but it was not used in the scoring process of this solution)", + "app.solution.pointsExplainDialog.epsilonExplain": "The epsilon (1e-6) is added to compensate for rounding errors.", "app.solution.pointsExplainDialog.overriddenPoints": "A supervisor has manually overridden the points to {overriddenPoints} (and {bonusPoints} {bonusPoints, plural, one {point} other {points}}).", "app.solution.pointsExplainDialog.title": "Explanation of the scoring process", "app.solution.reviewed": "Reviewed",