Get Metrics
POST/get_metrics
Get the metrics given all problem results in a dataset (partially supported)
Request
- application/json
Body
required
- MOD1
- MOD1
- MOD1
- MOD1
- MOD1
- MOD1
- MOD1
- MOD1
- MOD2
Array [
- MOD1
- MOD2
]
- MOD1
- MOD2
Array [
- MOD1
- MOD2
- MOD1
- MOD1
Array [
- CommandRunResult
- MOD1
- MOD1
- MOD1
- MOD1
- CommandRunResult
- MOD1
- MOD1
- MOD1
- MOD1
- MOD1
- MOD1
]
- MOD1
- MOD1
]
config
object
required
custom_extract_logic: a piece of python code that calls submit_code_blocks(cbs) to extract custom code
cbs: List[CodeBlock], CodeBlock(priority=40, code='xxx', language='xxx')
priority: fenced = 30, incomplete fenced = 20, heuristic = 10
dataset_type
object
the dataset class used to process, only works when the dataset id is not registered.
anyOf
string
language
object
anyOf
string
Possible values: [python, cpp, nodejs, go, go_test, java, php, csharp, bash, typescript, sql, rust, cuda, lua, R, perl, D_ut, ruby, scala, julia, pytest, junit, kotlin_script, jest, verilog, python_gpu, lean, swift, racket]
locale
object
anyOf
string
is_fewshot
object
anyOf
boolean
compile_timeout
object
anyOf
number
run_timeout
object
anyOf
number
custom_extract_logic
object
anyOf
string
provided_data
object
anyOf
property name*
object
anyOf
string
integer
property name*
object
anyOf
string
integer
{}results
object[]
required
id
object
required
anyOf
integer
string
full_code
object
anyOf
string
test_code
object
anyOf
string
tests
object[]
required
exec_info
object
required
Possible values: [Success, Failed, SandboxError]
compile_result
object
anyOf
Possible values: [Finished, Error, TimeLimitExceeded]
execution_time
object
anyOf
number
return_code
object
anyOf
integer
stdout
object
anyOf
string
stderr
object
anyOf
string
run_result
object
anyOf
Possible values: [Finished, Error, TimeLimitExceeded]
execution_time
object
anyOf
number
return_code
object
anyOf
integer
stdout
object
anyOf
string
stderr
object
anyOf
string
executor_pod_name
object
anyOf
string
files
object
test_info
object
anyOf
object
extracted_type
object
anyOf
string
Possible values: [fenced, incomplete_fenced, heuristic, empty]
extra
object
anyOf
object
Responses
- 200
- 422
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
object
{}
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
- MOD1
- MOD2
]
]
detail
object[]
loc
object[]
required
anyOf
string
integer
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}