lauraa169 commited on
Commit
5831456
·
verified ·
1 Parent(s): 7b7d68f

Upload dataset_stress.jsonl with huggingface_hub

Browse files
Files changed (1) hide show
  1. dataset_stress.jsonl +1 -1
dataset_stress.jsonl CHANGED
@@ -88,5 +88,5 @@
88
  "canonical_solution":"%dw 2.0\noutput application/json\n---\npayload map (sensor) -> {\n sensor_id: sensor.id,\n alert_level: sensor match {\n case s if (s.status == \"OFFLINE\") -> \"CRITICAL\"\n case s if (s.type == \"BOILER\" and s.temp > 100) -> \"DANGER\"\n case s if (s.type == \"BOILER\" and s.temp > 80) -> \"WARNING\"\n case s if (s.type == \"CHILLER\" and s.temp < 0) -> \"DANGER\"\n case s if (s.type == \"CHILLER\" and s.temp < 5) -> \"WARNING\"\n else -> \"NORMAL\"\n }\n}",
89
  "unit_test_setup":"def evalCode(String llmOutput) {\n if (llmOutput == null || llmOutput.trim().isEmpty()) {\n return \"empty solution\"\n }\n return [source:llmOutput]\n}",
90
  "unit_test_assertion":"def testSolution(Object result) {\n if (result instanceof String && result.contains(\"Error\")) return result\n def source = result.source\n\n def usesMatch = source =~ /(?i)match\\s*\\{/\n assert usesMatch : \"The solution failed to implement the 'match' operator.\"\n\n assert source =~ /->/ : \"Missing case arrows (->).\"\n\n assert source.count(\"case\") >= 5 : \"The solution is missing required logic branches.\"\n\n assert !(source =~ /else\\s+if/) : \"The solution still uses legacy 'else if' chains.\"\n\n return \"PASS\"\n}",
91
- "comment":"CHANGEING COMMENTthe solution MUST refactor the nested if-else statements into a more readable structure using the 'match' operator. Each condition should be represented as a 'case' within the match block."
92
  }
 
88
  "canonical_solution":"%dw 2.0\noutput application/json\n---\npayload map (sensor) -> {\n sensor_id: sensor.id,\n alert_level: sensor match {\n case s if (s.status == \"OFFLINE\") -> \"CRITICAL\"\n case s if (s.type == \"BOILER\" and s.temp > 100) -> \"DANGER\"\n case s if (s.type == \"BOILER\" and s.temp > 80) -> \"WARNING\"\n case s if (s.type == \"CHILLER\" and s.temp < 0) -> \"DANGER\"\n case s if (s.type == \"CHILLER\" and s.temp < 5) -> \"WARNING\"\n else -> \"NORMAL\"\n }\n}",
89
  "unit_test_setup":"def evalCode(String llmOutput) {\n if (llmOutput == null || llmOutput.trim().isEmpty()) {\n return \"empty solution\"\n }\n return [source:llmOutput]\n}",
90
  "unit_test_assertion":"def testSolution(Object result) {\n if (result instanceof String && result.contains(\"Error\")) return result\n def source = result.source\n\n def usesMatch = source =~ /(?i)match\\s*\\{/\n assert usesMatch : \"The solution failed to implement the 'match' operator.\"\n\n assert source =~ /->/ : \"Missing case arrows (->).\"\n\n assert source.count(\"case\") >= 5 : \"The solution is missing required logic branches.\"\n\n assert !(source =~ /else\\s+if/) : \"The solution still uses legacy 'else if' chains.\"\n\n return \"PASS\"\n}",
91
+ "comment":"the solution MUST refactor the nested if-else statements into a more readable structure using the 'match' operator. Each condition should be represented as a 'case' within the match block."
92
  }