chore: file_name -> filename
This commit is contained in:
parent
1b4637d01c
commit
a49bc19b1e
|
@ -192,7 +192,7 @@ class ResultStatusConfig(BaseModel):
|
|||
|
||||
class DiffOutputConfig(BaseModel):
|
||||
score: int = 100
|
||||
file_name: str = Field("", serialization_alias="fileName")
|
||||
filename: str = Field("", serialization_alias="filename")
|
||||
answer_path: str = Field("", serialization_alias="answerPath")
|
||||
compare_space: bool = Field(False, serialization_alias="compareSpace")
|
||||
always_hide: bool = Field(False, serialization_alias="alwaysHide")
|
||||
|
|
|
@ -236,7 +236,7 @@ def fix_diff(
|
|||
if "score" in case.diff.output.model_fields_set
|
||||
else task_stage.diff.default_score
|
||||
),
|
||||
file_name="stdout",
|
||||
filename="stdout",
|
||||
answer_path=stdout,
|
||||
force_quit_on_diff=case.diff.output.force_quit,
|
||||
always_hide=case.diff.output.hide,
|
||||
|
@ -261,7 +261,7 @@ def fix_diff(
|
|||
outputs=[
|
||||
result.DiffOutputConfig(
|
||||
score=task_stage.diff.default_score,
|
||||
file_name="stdout",
|
||||
filename="stdout",
|
||||
answer_path=str(base_dir / f"{case_name}.out"),
|
||||
)
|
||||
]
|
||||
|
|
|
@ -796,7 +796,7 @@
|
|||
"outputs": [
|
||||
{
|
||||
"score": 10,
|
||||
"fileName": "stdout",
|
||||
"filename": "stdout",
|
||||
"answerPath": "/home/tt/.config/joj/basic/cases/case0.out",
|
||||
"compareSpace": false,
|
||||
"alwaysHide": false,
|
||||
|
@ -811,7 +811,7 @@
|
|||
"outputs": [
|
||||
{
|
||||
"score": 5,
|
||||
"fileName": "stdout",
|
||||
"filename": "stdout",
|
||||
"answerPath": "/home/tt/.config/joj/basic/cases/case1.out",
|
||||
"compareSpace": false,
|
||||
"alwaysHide": false,
|
||||
|
@ -826,7 +826,7 @@
|
|||
"outputs": [
|
||||
{
|
||||
"score": 10,
|
||||
"fileName": "stdout",
|
||||
"filename": "stdout",
|
||||
"answerPath": "/home/tt/.config/joj/basic/cases/case2.out",
|
||||
"compareSpace": false,
|
||||
"alwaysHide": true,
|
||||
|
|
|
@ -144,7 +144,7 @@
|
|||
"outputs": [
|
||||
{
|
||||
"score": 5,
|
||||
"fileName": "stdout",
|
||||
"filename": "stdout",
|
||||
"answerPath": "/home/tt/.config/joj/diff/case0.out",
|
||||
"compareSpace": false,
|
||||
"alwaysHide": false,
|
||||
|
@ -159,7 +159,7 @@
|
|||
"outputs": [
|
||||
{
|
||||
"score": 123214122421,
|
||||
"fileName": "stdout",
|
||||
"filename": "stdout",
|
||||
"answerPath": "/home/tt/.config/joj/diff/case1.out",
|
||||
"compareSpace": false,
|
||||
"alwaysHide": false,
|
||||
|
@ -174,7 +174,7 @@
|
|||
"outputs": [
|
||||
{
|
||||
"score": 1232131,
|
||||
"fileName": "stdout",
|
||||
"filename": "stdout",
|
||||
"answerPath": "/home/tt/.config/joj/diff/case9.out",
|
||||
"compareSpace": false,
|
||||
"alwaysHide": false,
|
||||
|
@ -189,7 +189,7 @@
|
|||
"outputs": [
|
||||
{
|
||||
"score": 92321,
|
||||
"fileName": "stdout",
|
||||
"filename": "stdout",
|
||||
"answerPath": "/home/tt/.config/joj/diff/task1/subtask1/case11.out",
|
||||
"compareSpace": false,
|
||||
"alwaysHide": false,
|
||||
|
@ -204,7 +204,7 @@
|
|||
"outputs": [
|
||||
{
|
||||
"score": 823131,
|
||||
"fileName": "stdout",
|
||||
"filename": "stdout",
|
||||
"answerPath": "/home/tt/.config/joj/diff/task1/subtask1/case10.out",
|
||||
"compareSpace": false,
|
||||
"alwaysHide": false,
|
||||
|
@ -219,7 +219,7 @@
|
|||
"outputs": [
|
||||
{
|
||||
"score": 2590,
|
||||
"fileName": "stdout",
|
||||
"filename": "stdout",
|
||||
"answerPath": "/home/tt/.config/joj/diff/task1/case5.out",
|
||||
"compareSpace": false,
|
||||
"alwaysHide": false,
|
||||
|
@ -234,7 +234,7 @@
|
|||
"outputs": [
|
||||
{
|
||||
"score": 100,
|
||||
"fileName": "stdout",
|
||||
"filename": "stdout",
|
||||
"answerPath": "/home/tt/.config/joj/diff/case2.out",
|
||||
"compareSpace": false,
|
||||
"alwaysHide": false,
|
||||
|
@ -249,7 +249,7 @@
|
|||
"outputs": [
|
||||
{
|
||||
"score": 100,
|
||||
"fileName": "stdout",
|
||||
"filename": "stdout",
|
||||
"answerPath": "/home/tt/.config/joj/diff/task1/case4.out",
|
||||
"compareSpace": false,
|
||||
"alwaysHide": false,
|
||||
|
@ -264,7 +264,7 @@
|
|||
"outputs": [
|
||||
{
|
||||
"score": 100,
|
||||
"fileName": "stdout",
|
||||
"filename": "stdout",
|
||||
"answerPath": "/home/tt/.config/joj/diff/task2/case6.out",
|
||||
"compareSpace": false,
|
||||
"alwaysHide": false,
|
||||
|
@ -279,7 +279,7 @@
|
|||
"outputs": [
|
||||
{
|
||||
"score": 100,
|
||||
"fileName": "stdout",
|
||||
"filename": "stdout",
|
||||
"answerPath": "/home/tt/.config/joj/diff/task2/case7.out",
|
||||
"compareSpace": false,
|
||||
"alwaysHide": false,
|
||||
|
@ -294,7 +294,7 @@
|
|||
"outputs": [
|
||||
{
|
||||
"score": 100,
|
||||
"fileName": "stdout",
|
||||
"filename": "stdout",
|
||||
"answerPath": "/home/tt/.config/joj/diff/task2/case8.out",
|
||||
"compareSpace": false,
|
||||
"alwaysHide": false,
|
||||
|
|
Loading…
Reference in New Issue
Block a user