forked from icpc-live/autoanalyst
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yaml.template
124 lines (105 loc) · 4.37 KB
/
config.yaml.template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
# This is the YAML configuration template for all components of the
# ICPC-live autoanalyst software package.
# Copy this file to config.yaml and edit to your needs.
database:
host: localhost
name: icat
user: root
password: THISISNOTAPASSWORD
timezone: Europe/Moscow
# Contest Control System used by analysts
CCS:
# The base URL, can be a full URL or relative to the autoanalyst webserver:
baseurl: "/domjudge/"
# URL to submission page, the string @ID@ is replaced by a submission ID.
submissionurl: "jury/submission.php?ext_id=@ID@"
# CDS server
CDS:
baseurl: "https://192.168.1.207"
user: user
pass: THISISNOTAPASSWORD
# Configuration for the backup/githomes script
teambackup:
gitdir: /home/icpclive/githomes
backupdir: /home/icpclive/backup
# The base gitweb URL including git project name, can be a full
# URL or relative to the autoanalyst webserver:
gitweburl: "/gitweb/?p=githomes/.git"
# Method to retrieve backups, options:
# - CDS import from CDS
# - copy copy from 'backupdir'
# - simulate replay from existing git repository
method: CDS
# Parameters for method == simulate
sourceRepo: /home/icpclive/history
simulationRate: 1
# Interval between retrieving backups, in seconds:
interval: 120
lastTeam: 119
# Configuration for the Katalyzer
katalyzer:
# Database (main configuration is taken from common database config above)
db:
enable: true
# Internal web server
web:
enable: true
compress: true
port: 8099
# File publisher
file:
enable: false
targetDirectory: /home/icpclive/autoanalyst/output
# Twitter feed
twitter:
enable: false
oAuthConsumer: ["", ""]
accessToken: ["", ""]
hashtag: "#katalyzer"
# Event Stream
eventStream:
enable: true
target: /home/icpclive/autoanalyst/output/eventstream.xml
# The eventStream.target file needs to be writable by the
# katalyzer process in order for the event stream to be available.
# This also applies if you are only accessing the event stream
# using http
rule:
# ProblemFirstSolved - whenever a problem is solved for the first time
problemFirstSolved:
enable: true
# NewLeader - when a team takes the lead, or gets into the top n positions
newLeader:
enable: true
ranks: 10
breakingRanks: 5
# RejectedSubmission - when the judges reject a submission from
# one of the top n teams
rejectedSubmission:
enable: true
ranks: 10
# RankPredictor - when a team submits a solution that would put
# the team among the top n teams
rankPredictor:
enable: true
ranks: 10
# exec: "./capture.sh {teamId} {time} {currentRank} {potentialRank}"
codeActivity:
scoreboardFreezeMinutes: 240
defaultGranularityMinutes: 5
# FIXME: not clear whether the judgements data below should be
# considered configuration, or that it should come from some other
# source (CDS?). Note that the proposed contest ontology [1] has a
# 'Judgement Type' that contains the label and label_long data below.
# [1] https://docs.google.com/document/d/12RVKS_u36WY9kU8iVIMzHtH5Df3WjK-mt-YmJu8j6ZI/edit
judgements:
AC: { label: AC, label_long: "Accepted" , color: "#10a010", sortOrder: 1 }
WA: { label: WA, label_long: "Wrong Answer" , color: "#333333", sortOrder: 2 }
TLE: { label: TLE, label_long: "Time Limit Exceeded" , color: "#ff0000", sortOrder: 3 }
RTE: { label: RTE, label_long: "Run Time Error" , color: "#ffaa00", sortOrder: 4 }
(CE): { label: CE, label_long: "Compile Error" , color: "#ffff00", sortOrder: 5 }
(IF): { label: IF, label_long: "Illegal Function" , color: "#0000ff", sortOrder: 6 }
# The remaining three judgements (MLE, OLE, PE) are not used anymore, I think. (Hamerly 2013)
MLE: { label: MLE, label_long: "Memory Limit Exceeded", color: "#ffffaa", sortOrder: 7 }
OLE: { label: OLE, label_long: "Output Limit Exceeded", color: "#ff00ff", sortOrder: 8 }
PE: { label: PE , label_long: "Presentation Error" , color: "#aaaaaa", sortOrder: 9 }