diff --git a/src/components/forms/EditExerciseSimpleConfigForm/EditExerciseSimpleConfigTestCompilation.js b/src/components/forms/EditExerciseSimpleConfigForm/EditExerciseSimpleConfigTestCompilation.js index ede2d695d..2b4e5edbc 100644 --- a/src/components/forms/EditExerciseSimpleConfigForm/EditExerciseSimpleConfigTestCompilation.js +++ b/src/components/forms/EditExerciseSimpleConfigForm/EditExerciseSimpleConfigTestCompilation.js @@ -12,9 +12,15 @@ import Icon, { ExpandCollapseIcon, WarningIcon } from '../../icons'; import { SelectField, ExpandingInputFilesField, ExpandingSelectField, ExpandingTextField } from '../Fields'; import Confirm from '../../forms/Confirm'; import Explanation from '../../widgets/Explanation'; -import { ENV_ARDUINO_ID, ENV_JAVA_ID, ENV_C_GCC_ID, ENV_CPP_GCC_ID } from '../../../helpers/exercise/environments'; +import { + ENV_ARDUINO_ID, + ENV_JAVA_ID, + ENV_C_GCC_ID, + ENV_CPP_GCC_ID, + ENV_SYCL_ID, +} from '../../../helpers/exercise/environments'; -const COMPILER_ARGS_ENVS = [ENV_C_GCC_ID, ENV_CPP_GCC_ID, ENV_ARDUINO_ID]; +const COMPILER_ARGS_ENVS = [ENV_C_GCC_ID, ENV_CPP_GCC_ID, ENV_ARDUINO_ID, ENV_SYCL_ID]; class EditExerciseSimpleConfigTestCompilation extends Component { constructor(props) { diff --git a/src/containers/EvaluationProgressContainer/randomMessages.js b/src/containers/EvaluationProgressContainer/randomMessages.js index 48f6fb3e7..7806bf5d5 100644 --- a/src/containers/EvaluationProgressContainer/randomMessages.js +++ b/src/containers/EvaluationProgressContainer/randomMessages.js @@ -1,32 +1,32 @@ import { defineMessages } from 'react-intl'; export default defineMessages({ - m1: { id: 'app.randomMessages.m1', defaultMessage: 'Buy some milk' }, - m2: { id: 'app.randomMessages.m2', defaultMessage: 'Buy some tea' }, - m3: { id: 'app.randomMessages.m3', defaultMessage: 'Learn how to juggle' }, + m1: { id: 'app.randomMessages.m1', defaultMessage: 'Initialize astral results generator' }, + m2: { id: 'app.randomMessages.m2', defaultMessage: 'Uplink to Skynet established' }, + m3: { id: 'app.randomMessages.m3', defaultMessage: 'Jamming NSA eavesdropping devices' }, m4: { id: 'app.randomMessages.m4', - defaultMessage: 'Push the big red button', + defaultMessage: 'Searching for the right button to press', }, - m5: { id: 'app.randomMessages.m5', defaultMessage: 'Take a nap' }, + m5: { id: 'app.randomMessages.m5', defaultMessage: 'Sus-pend all processes until further notice' }, m6: { id: 'app.randomMessages.m6', - defaultMessage: 'Start evaluation of student solution at last', + defaultMessage: 'Start evaluation of student solution (or pretending to do so)', }, - m7: { id: 'app.randomMessages.m7', defaultMessage: 'Go for a run' }, + m7: { id: 'app.randomMessages.m7', defaultMessage: 'Go for launch' }, m8: { id: 'app.randomMessages.m8', - defaultMessage: 'Proove Riemann hypothesis', + defaultMessage: 'Downloading theorem prover', }, - m9: { id: 'app.randomMessages.m9', defaultMessage: 'Draw hippopotamus' }, + m9: { id: 'app.randomMessages.m9', defaultMessage: 'Drawing hippopotamus' }, m10: { id: 'app.randomMessages.m10', - defaultMessage: 'Think about the meaning of life', + defaultMessage: 'Computing "the meaning of life" answer', }, - m11: { id: 'app.randomMessages.m11', defaultMessage: 'Make a cup of tea' }, + m11: { id: 'app.randomMessages.m11', defaultMessage: 'Fermentation in progress' }, m12: { id: 'app.randomMessages.m12', - defaultMessage: 'Freak out before near deadline', + defaultMessage: 'Recording students screams', }, m13: { id: 'app.randomMessages.m13', defaultMessage: 'Take a bear for a walk' }, m14: { @@ -35,102 +35,102 @@ export default defineMessages({ }, m15: { id: 'app.randomMessages.m15', - defaultMessage: 'Generate random files on the filesystem', + defaultMessage: 'Generating random files on the filesystem', }, m16: { id: 'app.randomMessages.m16', - defaultMessage: 'Execute OS startup routine', + defaultMessage: 'Rebooting all worker servers (yet again)', }, m17: { id: 'app.randomMessages.m17', - defaultMessage: 'Secretly upload all feasible source files', + defaultMessage: 'Unauthorized leak detected', }, m18: { id: 'app.randomMessages.m18', - defaultMessage: 'Find TLB table and destroy it', + defaultMessage: 'Stack overflow detected while searching Stack Overflow for the correct answers', }, m19: { id: 'app.randomMessages.m19', - defaultMessage: 'Paging switched off... Good luck', + defaultMessage: 'Preparing next testing chamber... for science!', }, m20: { id: 'app.randomMessages.m20', - defaultMessage: 'Decoding of the instruction failed, wrong CPU connected', + defaultMessage: 'The cake is a lie', }, m21: { id: 'app.randomMessages.m21', - defaultMessage: 'A bug in ReCodex has been found, try to fix it really fast', + defaultMessage: 'A bug in ReCodex has been found, trying to fix it automatically with GPT', }, m22: { id: 'app.randomMessages.m22', - defaultMessage: 'Cache not found, try to find it on the Internet', + defaultMessage: 'Suspending bitcoin miners', }, m23: { id: 'app.randomMessages.m23', - defaultMessage: 'HDD not responding, wake up gnomes and try it again', + defaultMessage: 'Refilling sand in the sandbox', }, m24: { id: 'app.randomMessages.m24', - defaultMessage: 'Algorithm not working, rethink...', + defaultMessage: 'This evaluation will not halt if the tested code does', }, m25: { id: 'app.randomMessages.m25', - defaultMessage: 'Virtualization not virtualizing properly, fix it', + defaultMessage: 'Cloud cannot be accessed due to inappropriate weather', }, m26: { id: 'app.randomMessages.m26', - defaultMessage: 'Assignment too difficult, reassign it to our supercomputer', + defaultMessage: 'Activating local hadron collider', }, m27: { id: 'app.randomMessages.m27', - defaultMessage: 'Write for-loop directly to the console', + defaultMessage: 'Warning, GPT refused to evaluate the solution', }, m28: { id: 'app.randomMessages.m28', - defaultMessage: 'Finally discover how to terminate VIM session', + defaultMessage: 'Terminating sequence for VIM session found, closing in progress', }, m29: { id: 'app.randomMessages.m29', - defaultMessage: 'Repair your lawn mower', + defaultMessage: 'Sorting zeroes and ones', }, m30: { id: 'app.randomMessages.m30', - defaultMessage: 'Check vehicle before ride', + defaultMessage: 'Suspending evaluation until sufficient funding will be raised', }, m31: { id: 'app.randomMessages.m31', - defaultMessage: 'Go out with friends', + defaultMessage: 'Powering up crystall ball auxiliary device', }, m32: { id: 'app.randomMessages.m32', - defaultMessage: 'Count jokes about Chuck Norris', + defaultMessage: 'Omega 13 device activated', }, m33: { id: 'app.randomMessages.m33', - defaultMessage: 'Clean your greasy keyboard', + defaultMessage: 'Insufficient CPU cores available, insert another core and press Enter', }, m34: { id: 'app.randomMessages.m34', - defaultMessage: 'Buy a nice flower for your mom', + defaultMessage: 'User sanitization protocol activated', }, m35: { id: 'app.randomMessages.m35', - defaultMessage: 'Support favourite project', + defaultMessage: 'Scanning GitHub for plagiarism detection', }, m36: { id: 'app.randomMessages.m36', - defaultMessage: 'Try to turn it off and on again', + defaultMessage: 'GLaDOS main core reactivated', }, m37: { id: 'app.randomMessages.m37', - defaultMessage: 'Draw an unicorn on the wall', + defaultMessage: 'Boiling easter eggs', }, }); export const extraMessages = defineMessages({ last: { id: 'app.randomMessages.last', - defaultMessage: 'Generate random evaluation of submitted solution', + defaultMessage: 'Generating random evaluation results of submitted solution', }, error: { id: 'app.randomMessages.error', diff --git a/src/helpers/exercise/configSimple.js b/src/helpers/exercise/configSimple.js index 51c6d746f..26539a1ab 100644 --- a/src/helpers/exercise/configSimple.js +++ b/src/helpers/exercise/configSimple.js @@ -10,6 +10,7 @@ import { ENV_C_GCC_ID, ENV_CPP_GCC_ID, ENV_ARDUINO_ID, + ENV_SYCL_ID, } from './environments'; /** @@ -304,7 +305,7 @@ const _PIPELINE_DEFAULT_VARS_DESCRIPTORS = [ new Variable('compile-args', 'string[]', []) .individualEnvs() .forCompilation() - .setRuntimeFilter([ENV_C_GCC_ID, ENV_CPP_GCC_ID, ENV_ARDUINO_ID]), + .setRuntimeFilter([ENV_C_GCC_ID, ENV_CPP_GCC_ID, ENV_ARDUINO_ID, ENV_SYCL_ID]), new Variable('entry-point', 'file') .individualEnvs() .setPipelineFilter('hasEntryPoint') diff --git a/src/helpers/exercise/environments.js b/src/helpers/exercise/environments.js index 4f1fb3245..f03cf49e5 100644 --- a/src/helpers/exercise/environments.js +++ b/src/helpers/exercise/environments.js @@ -21,6 +21,7 @@ export const ENV_PYTHON3_ID = 'python3'; export const ENV_RUST_ID = 'rust'; export const ENV_CARGO_ID = 'rust-cargo'; export const ENV_SCALA_ID = 'scala'; +export const ENV_SYCL_ID = 'sycl-intel'; /** * List of environment IDs allowed in simple form. @@ -47,6 +48,7 @@ const SIMPLE_FORM_ENVIRONMENTS = [ ENV_RUST_ID, ENV_CARGO_ID, ENV_SCALA_ID, + ENV_SYCL_ID, ]; /** diff --git a/src/locales/cs.json b/src/locales/cs.json index 8c4c5bf55..1e0fb7c8f 100644 --- a/src/locales/cs.json +++ b/src/locales/cs.json @@ -1487,43 +1487,43 @@ "app.pointsForm.title": "Přidělené body", "app.pointsForm.validation.overrideOutOfRange": "Přenastavené body jsou mimo běžný rozsah. Běžný rozsah pro tuto zadanou úlohu je mezi 0 a {maxPointsEver}.", "app.randomMessages.error": "Nastala chyba při komunikaci se serverem a bohužel Vám nemůžeme ukázat, jaký ja aktuální průběh, ale nic hrozného se neděje. Výsledky budou dostupné tak jako tak již brzy po skončení vyhodnocení.", - "app.randomMessages.last": "Vygenerovat náhodné ohodnocení odevzdaného řešení", - "app.randomMessages.m1": "Koupit mléko", - "app.randomMessages.m10": "Přemýšlet nad smyslem života", - "app.randomMessages.m11": "Dát si hrnek čaje", - "app.randomMessages.m12": "Stresovat se blížícím se deadlinem", - "app.randomMessages.m13": "Jít vyvenčit medvěda", - "app.randomMessages.m14": "Odskočit si na záchod", - "app.randomMessages.m15": "Vygenerovat náhodné soubory na filesystému", - "app.randomMessages.m16": "Provést inicializační proceduru operačního systému", - "app.randomMessages.m17": "Natajno nahrát všechny vhodné zdrojové soubory", - "app.randomMessages.m18": "Najít TLB tabulku a zničit ji", - "app.randomMessages.m19": "Stránkování vypnuto... Hodně štěstí", - "app.randomMessages.m2": "Koupit čaj", - "app.randomMessages.m20": "Dekódování instrukce selhalo, připojen špatný procesor", - "app.randomMessages.m21": "Nalezena chyba v ReCodExu, hlavně to opravit hodně rychle", - "app.randomMessages.m22": "Cache nenalezena, zkusit ji najít na Internetu", - "app.randomMessages.m23": "HDD neodpovídá, vzbudit skřítky a zkusit to znovu", - "app.randomMessages.m24": "Algoritmus nefunguje, zapřemýšlet znovu...", - "app.randomMessages.m25": "Virtualizace nevirtualizuje pořádně, opravit", - "app.randomMessages.m26": "Úloha je moc těžká, přeřadit na náš superpočítač", - "app.randomMessages.m27": "Napsat for-cyklus přímo do konzole", - "app.randomMessages.m28": "Konečně zjistit, jak ukončit VIM", - "app.randomMessages.m29": "Opravit zahradní traktůrek", - "app.randomMessages.m3": "Naučit se žonglovat", - "app.randomMessages.m30": "Zkontrolovat vozidlo před jízdou", - "app.randomMessages.m31": "Vytáhnout kámoše na \"jedno\"", - "app.randomMessages.m32": "Spočítat vtipy o Chucku Norrisovi", - "app.randomMessages.m33": "Vyčistit klávesnici od zbytků jídla", - "app.randomMessages.m34": "Koupit mamince kytičku", - "app.randomMessages.m35": "Podpořit oblíbený projekt", - "app.randomMessages.m36": "Zkusit to vypnout a zase zapnout", - "app.randomMessages.m37": "Nakreslit jednorožce na zeď", - "app.randomMessages.m4": "Zmáčknout velké červené tlačítko", - "app.randomMessages.m5": "Dát si šlofíka", - "app.randomMessages.m6": "Začít už doopravdy vyhodnocovat úlohu", - "app.randomMessages.m7": "Jít si zaběhat", - "app.randomMessages.m8": "Dokázat Riemannovu hypotézu", + "app.randomMessages.last": "Generuji náhodné hodnocení odevzdané úlohy", + "app.randomMessages.m1": "Inicializace astrálního generátoru hodnocení", + "app.randomMessages.m10": "Vypočítávám odpověď otázky života, vesmíru a vůbec", + "app.randomMessages.m11": "Fermentace zahájena", + "app.randomMessages.m12": "Nahrávám zoufalé výkřiky studentů", + "app.randomMessages.m13": "Vyvenčit medvěda", + "app.randomMessages.m14": "Dojít s pískem", + "app.randomMessages.m15": "Generuji náhodné soubory do filesystému", + "app.randomMessages.m16": "Restartuji worker servery (už zase)", + "app.randomMessages.m17": "Detekován neutorizovaný písek v systému", + "app.randomMessages.m18": "Při hledání správné odpovědi na Stack Overflow došlo k přetečení zásobníku", + "app.randomMessages.m19": "Připravujeme další testovací místnost... ve jménu vědy!", + "app.randomMessages.m2": "Spojení se Skynetem navázáno", + "app.randomMessages.m20": "Žádný dort není", + "app.randomMessages.m21": "Nalezena chyba v systému ReCodEx, pokoušíme se ji automaticky opravit GPT", + "app.randomMessages.m22": "Vypínám těžbu bitcoinu", + "app.randomMessages.m23": "Doplňuje se písek do sandboxu", + "app.randomMessages.m24": "Tato evaluace se nezastaví pokud se testovaný kód zastaví", + "app.randomMessages.m25": "Nelze přistupovat do cloudu z důvodu nevhodného počasí", + "app.randomMessages.m26": "Aktivuji lokální hadronový urychlovač", + "app.randomMessages.m27": "Varování, GPT odmítlo vyhodnotit naše řešení", + "app.randomMessages.m28": "Nalezena ukočovací sekvence pro VIM relaci, probíhá uzavření", + "app.randomMessages.m29": "Třídím jedničky a nuly", + "app.randomMessages.m3": "Zahájeno rušení odposlouchávacích zařízení BIS", + "app.randomMessages.m30": "Pozastavujeme vyhodnocení dokud nevybereme dost peněz", + "app.randomMessages.m31": "Zapínám externí zařízení křišťálové koule", + "app.randomMessages.m32": "Zařízení Omega 13 aktivováno", + "app.randomMessages.m33": "Nedostatek CPU jader, vložte další jádro a stiskěnte Enter", + "app.randomMessages.m34": "Protokol sanitizace uživatelů aktivován", + "app.randomMessages.m35": "Hledám možné plagiáty na GitHubu", + "app.randomMessages.m36": "Hlavní jádro GLaDOS reaktivováno", + "app.randomMessages.m37": "Vaříme velikonoční vejce", + "app.randomMessages.m4": "Hledáme správne tlačítko ke stisknutí", + "app.randomMessages.m5": "Sus-penduji všechny procesy až do odvolání", + "app.randomMessages.m6": "Zahajuji evaluaci studentského řešení (nebo budeme předstírat, že to tak je)", + "app.randomMessages.m7": "Připravit ke startu", + "app.randomMessages.m8": "Downloaduji dokazovač teorémů", "app.randomMessages.m9": "Nakreslit hrocha", "app.referenceSolution.actions.setPrivate": "Změnit na privátní", "app.referenceSolution.actions.setPrivateConfirm": "Pokud změníte toto řešení na privátní, ztratíte k němu přístup, protože pouze privátní řešení vidí pouze jeho autor. Opravdu si přejete provést změnu?", diff --git a/src/locales/en.json b/src/locales/en.json index 84c33669e..2fbe627cf 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -1487,44 +1487,44 @@ "app.pointsForm.title": "Awarded Points", "app.pointsForm.validation.overrideOutOfRange": "Points override is out of regular range. Regular score for this assignment is between 0 and {maxPointsEver}.", "app.randomMessages.error": "Unexpected error during communication with server occured. We cannot show you actual progress of the evaluation, but do not worry. The results will be available as well after evaluation finishes.", - "app.randomMessages.last": "Generate random evaluation of submitted solution", - "app.randomMessages.m1": "Buy some milk", - "app.randomMessages.m10": "Think about the meaning of life", - "app.randomMessages.m11": "Make a cup of tea", - "app.randomMessages.m12": "Freak out before near deadline", + "app.randomMessages.last": "Generating random evaluation results of submitted solution", + "app.randomMessages.m1": "Initialize astral results generator", + "app.randomMessages.m10": "Computing \"the meaning of life\" answer", + "app.randomMessages.m11": "Fermentation in progress", + "app.randomMessages.m12": "Recording students screams", "app.randomMessages.m13": "Take a bear for a walk", "app.randomMessages.m14": "Take a leak", - "app.randomMessages.m15": "Generate random files on the filesystem", - "app.randomMessages.m16": "Execute OS startup routine", - "app.randomMessages.m17": "Secretly upload all feasible source files", - "app.randomMessages.m18": "Find TLB table and destroy it", - "app.randomMessages.m19": "Paging switched off... Good luck", - "app.randomMessages.m2": "Buy some tea", - "app.randomMessages.m20": "Decoding of the instruction failed, wrong CPU connected", - "app.randomMessages.m21": "A bug in ReCodex has been found, try to fix it really fast", - "app.randomMessages.m22": "Cache not found, try to find it on the Internet", - "app.randomMessages.m23": "HDD not responding, wake up gnomes and try it again", - "app.randomMessages.m24": "Algorithm not working, rethink...", - "app.randomMessages.m25": "Virtualization not virtualizing properly, fix it", - "app.randomMessages.m26": "Assignment too difficult, reassign it to our supercomputer", - "app.randomMessages.m27": "Write for-loop directly to the console", - "app.randomMessages.m28": "Finally discover how to terminate VIM session", - "app.randomMessages.m29": "Repair your lawn mower", - "app.randomMessages.m3": "Learn how to juggle", - "app.randomMessages.m30": "Check vehicle before ride", - "app.randomMessages.m31": "Go out with friends", - "app.randomMessages.m32": "Count jokes about Chuck Norris", - "app.randomMessages.m33": "Clean your greasy keyboard", - "app.randomMessages.m34": "Buy a nice flower for your mom", - "app.randomMessages.m35": "Support favourite project", - "app.randomMessages.m36": "Try to turn it off and on again", - "app.randomMessages.m37": "Draw an unicorn on the wall", - "app.randomMessages.m4": "Push the big red button", - "app.randomMessages.m5": "Take a nap", - "app.randomMessages.m6": "Start evaluation of student solution at last", - "app.randomMessages.m7": "Go for a run", - "app.randomMessages.m8": "Proove Riemann hypothesis", - "app.randomMessages.m9": "Draw hippopotamus", + "app.randomMessages.m15": "Generating random files on the filesystem", + "app.randomMessages.m16": "Rebooting all worker servers (yet again)", + "app.randomMessages.m17": "Unauthorized leak detected", + "app.randomMessages.m18": "Stack overflow detected while searching Stack Overflow for the correct answers", + "app.randomMessages.m19": "Preparing next testing chamber... for science!", + "app.randomMessages.m2": "Uplink to Skynet established", + "app.randomMessages.m20": "The cake is a lie", + "app.randomMessages.m21": "A bug in ReCodex has been found, trying to fix it automatically with GPT", + "app.randomMessages.m22": "Suspending bitcoin miners", + "app.randomMessages.m23": "Refilling sand in the sandbox", + "app.randomMessages.m24": "This evaluation will not halt if the tested code does", + "app.randomMessages.m25": "Cloud cannot be accessed due to inappropriate weather", + "app.randomMessages.m26": "Activating local hadron collider", + "app.randomMessages.m27": "Warning, GPT refused to evaluate the solution", + "app.randomMessages.m28": "Terminating sequence for VIM session found, closing in progress", + "app.randomMessages.m29": "Sorting zeroes and ones", + "app.randomMessages.m3": "Jamming NSA eavesdropping devices", + "app.randomMessages.m30": "Suspending evaluation until sufficient funding will be raised", + "app.randomMessages.m31": "Powering up crystall ball auxiliary device", + "app.randomMessages.m32": "Omega 13 device activated", + "app.randomMessages.m33": "Insufficient CPU cores available, insert another core and press Enter", + "app.randomMessages.m34": "User sanitization protocol activated", + "app.randomMessages.m35": "Scanning GitHub for plagiarism detection", + "app.randomMessages.m36": "GLaDOS main core reactivated", + "app.randomMessages.m37": "Boiling easter eggs", + "app.randomMessages.m4": "Searching for the right button to press", + "app.randomMessages.m5": "Sus-pend all processes until further notice", + "app.randomMessages.m6": "Start evaluation of student solution (or pretending to do so)", + "app.randomMessages.m7": "Go for launch", + "app.randomMessages.m8": "Downloading theorem prover", + "app.randomMessages.m9": "Drawing hippopotamus", "app.referenceSolution.actions.setPrivate": "Make private", "app.referenceSolution.actions.setPrivateConfirm": "Changing this solution to private will prevent you from seeing it again since only an author may see a private solution. Do you wish to proceed?", "app.referenceSolution.actions.setPromoted": "Promote", @@ -2156,4 +2156,4 @@ "recodex-judge-shuffle-all": "Unordered-tokens-and-rows judge", "recodex-judge-shuffle-newline": "Unordered-tokens judge (ignoring ends of lines)", "recodex-judge-shuffle-rows": "Unordered-rows judge" -} \ No newline at end of file +}