-
Notifications
You must be signed in to change notification settings - Fork 137
Expand file tree
/
Copy pathconfig.txt.sample
More file actions
316 lines (254 loc) · 11.4 KB
/
Copy pathconfig.txt.sample
File metadata and controls
316 lines (254 loc) · 11.4 KB
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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
####################### Psiturk Configuration Defaults #########################
#
# Example config file. Uncomment lines (remove the `;`)
# in order to override defaults.
#
############################ HIT Configuration #################################
[HIT Configuration]
# Title that will be used for the HIT when posted to mturk
# e.g.,
# title = Stroop task
;title =
# Description that will be used for the HIT when posted to mturk
# e.g.,
# description = Judge the color of a series of words.
;description =
# Keywords for the HIT on mturk
# e.g.,
# keywords = Perception, Psychology
;keywords =
# How many hours a given HIT will last on mturk before becoming unavailable
# for new assignments
;lifetime = 24
# Whether the HIT will be restricted to US-located mturkers
;us_only = true
# Minimum approval percentage a worker must have to accept the HIT.
# Note! Mturk defaults a worker's approval percentage to 100% until
# they have completed at least 100 hits.
;approve_requirement = 95
# Minimum number of HITs a worker must have had approved in order to take
# this HIT. See notes for `approve_requirement` -- set this to 100 if an actual
# `approve_requirement` percentage is wanted.
;number_hits_approved = 0
# Whether a worker must have the master worker qualification to take this hit.
# Note that there is a commission surcharge for using this qualification.
# Applies in both `live` and `sandbox` modes
;require_master_workers = false
# qualification_ids, commma-delimited a worker is required to have in order to
# take this HIT
#
# If set, applies in both `live` and `sandbox` modes. Overrides `require_quals_{mode}`.
#
# Deprecated. Use `require_quals_live` and `require_quals_sandbox` instead.
;require_quals =
# qualification_ids, commma-delimited a worker is required to have in order to
# take this HIT
#
# Will only be used during `live` mode. Is overridden by `require_quals`, if set.
;require_quals_live =
# qualification_ids, commma-delimited a worker is required to have in order to
# take this HIT
#
# Will only be used during `sandbox` mode. Is overridden by `require_quals`, if set.
;require_quals_sandbox =
# qualification_ids, commma-delimited, that will disqualify a worker from
# accepting this HIT
#
# If set, applies in both `live` and `sandbox` modes. Overrides `block_quals_{mode}`.
#
# Deprecated. Use `block_quals_live` and `block_quals_sandbox` instead.
;block_quals =
# qualification_ids, commma-delimited, that will disqualify a worker from
# accepting this HIT
#
# Will only be used during `live` mode. Is overridden by `block_quals`, if set.
;block_quals_live =
# qualification_ids, commma-delimited, that will disqualify a worker from
# accepting this HIT
#
# Will only be used during `sandbox` mode. Is overridden by `block_quals`, if set.
;block_quals_sandbox =
# A path to a custom JSON qualifications file, where you can define your own
# MTurk qualification requirements, as seen in advanced_quals.json.sample
# Example:
# ;advanced_quals_path = ./advanced_quals.json
#
# If set, applies in both `live` and `sandbox` modes. Overrides `advanced_quals_path_{mode}`.
#
# Deprecated. Use `advanced_quals_path_live` and `advanced_quals_path_sandbox` instead.
;advanced_quals_path =
# A path to a custom JSON qualifications file, where you can define your own
# MTurk qualification requirements, as seen in advanced_quals.json.sample
# Example:
# ;advanced_quals_path = ./advanced_quals.json
#
# Will only be used during `live` mode. Is overridden by `advanced_quals_path`, if set.
;advanced_quals_path_live =
# A path to a custom JSON qualifications file, where you can define your own
# MTurk qualification requirements, as seen in advanced_quals.json.sample
# Example:
# ;advanced_quals_path = ./advanced_quals.json
#
# Will only be used during `sandbox` mode. Is overridden by `advanced_quals_path`, if set.
;advanced_quals_path_sandbox =
## Hit Configuration - Ad Url ##################################################
# Config settings for constructing the task's "landing page"
#
# Server domain name for publicly-accessible route to psiturk server.
# If running on heroku, set this to your heroku app url --
# e.g., "ad_url_domain = example-app.herokuapp.com"
;ad_url_domain =
# Server port for publicly-accessible route to psiturk server
;ad_url_port = 443
# HTTPS protocol is required by mturk. Only change this if you have a good reason
# to do so.
;ad_url_protocol = https
# Flask route that points to the ad. "pub" and "ad" both point to the same place,
# but "pub" is safer because of potential issues with ad blockers with a route
# named "ad"
;ad_url_route = pub
# Alternatively, instead of using `ad_url_* config vars above,
# you may uncomment and use `ad_url`. You may want to use this if your
# experiment is served from a subdirectory off of the domain name. Otherwise,
# leave this as-is.
;ad_url = %(ad_url_protocol)s://%(ad_url_host)s:%(ad_url_port)s/%(ad_url_route)s
############################## Database Parameters #############################
[Database Parameters]
# Participant data will be stored in this database.
# If ON_CLOUD=1, then this defaults to env var $DATABASE_URL, if set.
;database_url = sqlite:///participants.db
# psiTurk creates several database tables to store data and to manage aspects of
# automated tasks, campaigns, etc...
# if multiple users share the same database these value need to be changed to be
# unique for each experiment.
# Name of the database table where participant data will be stored
;assignments_table_name =
# Deprecated. Use `assignments_table_name` instead.
#
# For backwards compatibility, `assignments_table_name` is synonymous with `table_name`. If
# both are set, `assignments_table_name` will be preferred over `table_name`.
;table_name = assignments
# Name of the database table where hit information is stored
;hits_table_name = amt_hit
# Name of the database table where campaign information is stored
;campaigns_table_name = campaign
# Name of the database table where the task scheduler (apscheduler) places jobs
;jobs_table_name = apscheduler_jobs
############################# Server Parameters ################################
[Server Parameters]
# Host on which the psiturk gunicorn server will listen when `psiturk server on`
# is run.
#
# If env var ON_CLOUD=1, then this defaults to 0.0.0.0
;host = localhost
# Port on which the psiturk gunicorn server will listen when `psiturk server on`
# is run.
#
# If env var ON_CLOUD=1, then this defaults to $PORT env var, if set
;port = 22362
# Filename for psiturk server logging.
#
# If ON_CLOUD env var is set, then these both default to stdout (-)
#
;accesslog = /dev/null
;errorlog =
# For backwards compatibility, `logfile` is synonymous with `errorlog`. If
# both are set, `errorlog` will be preferred over `logfile`.
;logfile = server.log
# Log level for the psiturk gunicorn server
;loglevel = 2
# Controls whether the dashboard is enabled
;enable_dashboard = false
# Controls whether the scheduler will run. If true, then num_threads must be 1
# Be very careful to only have one scheduler run for a given study in any
# given place! Consider running a separate psiturk server somewhere else, that
# has the same database_url and table_name settings, which you only use
# for its dashboard and task runner.
;do_scheduler = false
# Login username for the dashboard
;login_username =
# Login password for the dashboard
;login_pw =
# Number of threads for the psiturk gunicorn server to use. Leave to 1 if using
# the task runner! Otherwise, dynamically dependent on the number of cpus.
# If ON_CLOUD=1, then threads defaults to 1.
;threads = auto
# The secret key used by flask for any secure functions it uses. Not necessary
# to set unless using a secure function.
# e.g.,
# secret_key = 'this is my secret key which is hard to guess, i should change this'
;secret_key =
# The psiturk (gunicorn) server can optionally serve traffic over https. This is
# normally not necessary if the psiturk server is set up behind a reverse proxy
# server, as is the default case with cloud hosting providers such as heroku.
#
# In reverse-proxy situations,
# the reverse proxy communicates with web browsers and other clients over https,
# while communicating on the backend with the gunicorn server over http. The
# psiturk server would only be listening on localhost and would not serve
# traffic directly.
#
# To have gunicorn use https, set both the `certfile` and `keyfile` below to point
# to a project-relative path to the public and private keys respectively.
# Project-relative path to public keyfile for ssl for gunicorn
# certfile = <path_to.crt>
;certfile =
# Project-relative path to private keyfile for ssl for gunicron
# keyfile = <path_to.key>
;keyfile =
# How long in seconds a gunicorn worker should wait for any synchronous calls
# to complete. This would only be relevant if one of your routes makes a
# potentially long-polling api or database call before returning.
;server_timeout = 30
################################## Task Parameters #############################
# Settings used by various task Flask routes
[Task Parameters]
# The code_version for the task. Logged as a field in the database for each
# participant, useful for data analysis. The random balanced assignment depends
# on this setting -- it will do balanced random assignment within a given codeversion.
# Can be any string value -- recommended to use semantic versioning for analysis
# sanity.
;experiment_code_version = 0.0.1
# The number of possible treatments. Used for random balanced assignment.
;num_conds = 1
# The number of possible counterbalance conditions. Used for random balanced assignment.
# If you don't know what this is, it is safe to leave it at a default of 1 and
# to only modify `num_conds` above.
;num_counters = 1
;contact_email_on_error = youremail@gmail.com
# A list of web browsers, delineated by commas, that mturkers may _not_ use to
# perform the hit.
#
# The following possible values are checked by using properties on the `user_agents` python library.
# possible values : mobile, tablet, touchcapable, pc, bot, safari
#
# Example of excluding Microsoft Internet Explorer:
# browser_exclude_rule = MSIE
# otherwise, the string is checked against the user_agent_string. Example, to exclude
# internet explorer:
# browser_exclude_rule : MSIE
#
# By default, MISE, mobile, and tablet are all excluded
;browser_exclude_rule = MSIE, mobile, tablet
# Whether workers can perform the hit multiple times. Enforced by the psiturk
# server; not by mturk.
;allow_repeats = false
# Maximum expected time for a participant to complete the task.
# Exclusively used in determining random assignment -- basically, how long should
# a participant be given to complete the task after starting? How long should the
# task last? This is different than the `duration` specified when running
# `hit create`, because a participant may not start the task immediately after
# accepting it, while the hit `duration` starts ticking as soon as the hit is
# accepted (some workers queue their accepted hits before starting it).
;cutoff_time = 30
################################## Shell Parameters ############################
[Shell Parameters]
# the default `mode` into which the psiturk shell will be launched.
# possible values : sandbox, live
;launch_in_mode = sandbox
# A file location for where to store a history of psiturk shell commands
;persistent_history_file = .psiturk_history
# A default "reason" for the shell to use when granting bonuses.
# e.g.,
# bonus_message = "Thanks for participating!"
;bonus_message =