CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
sagemathinc

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: sagemathinc/cocalc
Path: blob/master/src/packages/frontend/course/assignments/consts.ts
Views: 687
1
/*
2
* This file is part of CoCalc: Copyright © 2020 Sagemath, Inc.
3
* License: MS-RSL – see LICENSE.md for details
4
*/
5
6
export const STUDENT_SUBDIR = "student";
7
8
// default timeout of 1 minute per cell
9
export const NBGRADER_CELL_TIMEOUT_MS: number = 60 * 1000;
10
// default timeout of 10 minutes for whole notebook
11
export const NBGRADER_TIMEOUT_MS: number = 10 * 60 * 1000;
12
13
// default max output of 1 million characters per cell
14
export const NBGRADER_MAX_OUTPUT_PER_CELL: number = 500000;
15
// default max output of 4 million characters for whole notebook
16
export const NBGRADER_MAX_OUTPUT: number = 4000000;
17
18
// filename of the peer grading guide
19
export const PEER_GRADING_GUIDE_FILENAME = "GRADING-GUIDE.md";
20
21
// Everything from GRADING_GUIDELINES_GRADE_MARKER to GRADING_GUIDELINES_COMMENT_MARKER
22
// is parsed as a numerical grade, if possible. i18n's don't mess this up! Also,
23
// changing this would break outstanding assignments, so change with caution.
24
// A fix
25
// would be to store these strings somewhere when pushing the assignment out, so that
26
// the same ones are used when collecting and parsing. But that will take a few hours
27
// more work, and it is only necessary if we decide to change these. Whoever decides
28
// to change these has to do that work.
29
export const PEER_GRADING_GUIDELINES_GRADE_MARKER =
30
"OVERALL GRADE (a single number):";
31
export const PEER_GRADING_GUIDELINES_COMMENT_MARKER =
32
"COMMENTS ABOUT GRADE (student will see, but not who made them):";
33
34
export const PEER_GRADING_DEFAULT_GUIDELINES = `
35
Put your final overall score below after "${PEER_GRADING_GUIDELINES_GRADE_MARKER}"
36
37
38
INSTRUCTOR: REPLACE THIS WITH INSTRUCTIONS FOR STUDENTS
39
40
41
${PEER_GRADING_GUIDELINES_GRADE_MARKER}
42
43
44
45
${PEER_GRADING_GUIDELINES_COMMENT_MARKER}
46
47
`;
48
49