Skip to content

Commit 1c4be32

Browse files
committed
add processes tasks: implement processes module, extend scoring system and enhance UI integration
1 parent 6ad024c commit 1c4be32

File tree

36 files changed

+1399
-112
lines changed

36 files changed

+1399
-112
lines changed

scoreboard/README.md

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Generates `output_directory/index.html` with the scoreboard.
1818

1919
- `data/points-info.yml` - Task points, deadlines, penalties
2020
- `data/plagiarism.yml` - Flagged submissions
21+
- `data/deadlines.yml` - Optional display deadlines and day offsets
2122

2223
## Testing
2324

@@ -31,4 +32,26 @@ python -m pytest tests/ -v
3132

3233
## Output
3334

34-
HTML table with columns: S (solution), A (acceleration), E (efficiency), D (deadline), P (plagiarism), Total.
35+
HTML table with columns: S (solution), A (acceleration), E (efficiency), D (deadline), C (copying), Total.
36+
37+
### Deadlines display
38+
39+
- Threads deadlines are auto-distributed across the Spring window: 1 Feb → 15 May.
40+
- Processes deadlines are auto-distributed across the Autumn window: 15 Oct → 14 Dec.
41+
- Due time is 23:59 MSK on the shown date.
42+
- File `data/deadlines.yml` can shift dates per item by integer day offsets (default 0). Example:
43+
44+
```
45+
threads:
46+
seq: 0 # no shift
47+
omp: -2 # 2 days earlier
48+
tbb: 3 # 3 days later
49+
stl: 0
50+
all: 0
51+
processes:
52+
task_1: 0
53+
task_2: 5
54+
task_3: -1
55+
```
56+
57+
- If you put a non-integer string instead of a number, it is used as-is as the label (e.g., `"10 Nov"`).

scoreboard/data/copying.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
threads:
2+
copying:
3+
seq:
4+
- example_threads
5+
omp: []
6+
tbb: []
7+
stl: []
8+
all: []
9+
processes:
10+
copying:
11+
mpi:
12+
- example_processes
13+
seq:
14+
- example_processes

scoreboard/data/deadlines.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
threads:
2+
# Put integer to shift auto date by N days (negative allowed). Default 0.
3+
seq: 0
4+
omp: 0
5+
tbb: 0
6+
stl: 0
7+
all: 0
8+
9+
processes:
10+
# Use integer offsets for tasks; default 0.
11+
task_1: 0
12+
task_2: 0
13+
task_3: 0

scoreboard/data/plagiarism.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

scoreboard/data/points-info.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,6 @@ threads:
5858
Total: 21
5959
efficiency:
6060
num_proc: 4
61-
plagiarism:
61+
copying:
6262
coefficient: 0.5
63-
note: "Penalty P = -coefficient * S (scoreboard notation)"
63+
note: "Penalty C = -coefficient * S (scoreboard notation)"

0 commit comments

Comments
 (0)