Skip to content

Commit

Permalink
[FEAT] ~minor ✨ Preparo para ronda de calificacion
Browse files Browse the repository at this point in the history
[Link a la tarea ](https://apps.edicomgroup.com/JDev/#idstask|)
/label ~"status::needs triage" ~type::feat ~minor
/assign me
  • Loading branch information
jsan committed Feb 24, 2022
1 parent 367467b commit 9092558
Show file tree
Hide file tree
Showing 13 changed files with 28,878 additions and 3 deletions.
11 changes: 10 additions & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,20 @@
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node-terminal",
"name": "qualification",
"request": "launch",
// npm run [practice | qualification] {dataset}
"command": "npm run qualification b",
"cwd": "${workspaceFolder}"
},
{
"type": "node-terminal",
"name": "practice",
"request": "launch",
"command": "npm run practice",
// npm run [practice | qualification] {dataset}
"command": "npm run practice a",
"cwd": "${workspaceFolder}"
}
]
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"my-cli-tool": "./dist/esbuild/cli.js"
},
"scripts": {
"start": "ts-node src/main",
"qualification": "TS_NODE_TRANSPILE_ONLY=true node --loader ts-node/esm qualification_round/src/main.ts",
"practice": "TS_NODE_TRANSPILE_ONLY=true node --loader ts-node/esm practice_round/src/main.ts",
"lint": "eslint src/ --ext .js,.jsx,.ts,.tsx",
"clean": "rm -rf dist build package",
Expand Down
4 changes: 3 additions & 1 deletion practice_round/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ const datasets = {
e: 'e_elaborate.in.txt',
};

readDataset(path.resolve(process.cwd(), `${datasetsPath}${datasets.a}`)).then(
const datasetArg = process.argv[2];

readDataset(path.resolve(process.cwd(), `${datasetsPath}${datasets[datasetArg]}`)).then(
(dataset: Dataset) => {
const submission: Submission = {
name: dataset.name,
Expand Down
7 changes: 7 additions & 0 deletions qualification_round/datasets/a_an_example.in.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
3
2 cheese peppers
0
1 basil
1 pineapple
2 mushrooms tomatoes
1 basil
11 changes: 11 additions & 0 deletions qualification_round/datasets/b_basic.in.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
5
2 akuof byyii
0
2 dlust luncl
0
2 akuof luncl
0
2 dlust vxglq
0
2 dlust xveqd
0
21 changes: 21 additions & 0 deletions qualification_round/datasets/c_coarse.in.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
10
3 akuof byyii dlust
1 xdozp
3 dlust luncl qzfyo
1 xdozp
3 akuof luncl vxglq
1 qzfyo
3 dlust vxglq luncl
0
3 dlust xveqd tfeej
0
3 qzfyo vxglq luncl
1 byyii
3 luncl xdozp xveqd
1 sunhp
3 byyii xdozp tfeej
1 qzfyo
3 dlust akuof tfeej
1 xveqd
3 vxglq dlust byyii
1 akuof
Loading

0 comments on commit 9092558

Please sign in to comment.