Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/anishathalye/gavel
/ functions
Functions
86 in github.com/anishathalye/gavel
⨍
Functions
86
◇
Types & classes
6
↳
Endpoints
18
↓ 39 callers
Method
get
(self, name, env_names=None, default=NONE_SENTINEL)
gavel/settings.py:21
↓ 12 callers
Function
with_retries
Keep retrying a function that involves a database transaction until it succeeds. This only retries due to serialization failures; all ot
gavel/models/__init__.py:22
↓ 8 callers
Method
by_id
(cls, uid)
gavel/models/item.py:30
↓ 6 callers
Function
get_current_annotator
()
gavel/controllers/judge.py:155
↓ 5 callers
Function
_bool
(truth_value)
gavel/settings.py:39
↓ 4 callers
Function
divergence_gaussian
(mu_1, sigma_sq_1, mu_2, sigma_sq_2)
gavel/crowd_bt.py:27
↓ 4 callers
Method
value_of
(cls, key)
gavel/models/setting.py:21
↓ 3 callers
Function
_updated_annotator
(alpha, beta, mu_winner, sigma_sq_winner, mu_loser, sigma_sq_loser)
gavel/crowd_bt.py:86
↓ 3 callers
Function
_updated_mus
(alpha, beta, mu_winner, sigma_sq_winner, mu_loser, sigma_sq_loser)
gavel/crowd_bt.py:66
↓ 3 callers
Function
_updated_sigma_sqs
(alpha, beta, mu_winner, sigma_sq_winner, mu_loser, sigma_sq_loser)
gavel/crowd_bt.py:75
↓ 3 callers
Method
update_next
(self, new_next)
gavel/models/annotator.py:38
↓ 2 callers
Function
annotator_link
(annotator)
gavel/controllers/admin.py:246
↓ 2 callers
Method
by_key
(cls, key)
gavel/models/setting.py:13
↓ 2 callers
Function
choose_next
(annotator)
gavel/controllers/judge.py:201
↓ 2 callers
Function
divergence_beta
(alpha_1, beta_1, alpha_2, beta_2)
gavel/crowd_bt.py:33
↓ 2 callers
Function
email_invite_links
(annotators)
gavel/controllers/admin.py:249
↓ 2 callers
Function
parse_upload_form
()
gavel/controllers/admin.py:105
↓ 2 callers
Function
perform_vote
(annotator, next_won)
gavel/controllers/judge.py:219
↓ 2 callers
Function
preferred_items
Return a list of preferred items for the given annotator to look at next. This method uses a variety of strategies to try to select good can
gavel/controllers/judge.py:158
↓ 2 callers
Method
set
(cls, key, value)
gavel/models/setting.py:29
↓ 1 callers
Function
_check_send_telemetry
()
gavel/stats.py:14
↓ 1 callers
Function
_list
(item)
gavel/settings.py:51
↓ 1 callers
Function
_postgres_uri
(uri)
gavel/settings.py:60
↓ 1 callers
Function
allowed_file
(filename)
gavel/controllers/admin.py:100
↓ 1 callers
Function
authenticate
()
gavel/utils.py:26
↓ 1 callers
Method
by_secret
(cls, secret)
gavel/models/annotator.py:47
↓ 1 callers
Function
check_auth
(username, password)
gavel/utils.py:23
↓ 1 callers
Function
gather_stats
()
gavel/stats.py:26
↓ 1 callers
Function
maybe_init_annotator
()
gavel/controllers/judge.py:191
↓ 1 callers
Function
send_telemetry
(identifier, data)
gavel/stats.py:45
↓ 1 callers
Function
sendgrid_send_email
(to_address, subject, body)
gavel/utils.py:111
Method
__init__
(self, config_file)
gavel/settings.py:12
Method
__init__
(self, key, value)
gavel/models/setting.py:8
Method
__init__
(self, name, email, description)
gavel/models/annotator.py:30
Method
__init__
(self, annotator, winner, loser)
gavel/models/decision.py:14
Method
__init__
(self, name, location, description)
gavel/models/item.py:22
Function
_jinja2_filter_datetime_epoch
(datetime)
gavel/template_filters.py:11
Function
_jinja2_filter_datetime_local
(datetime)
gavel/template_filters.py:5
Function
admin
()
gavel/controllers/admin.py:20
Function
annotator
()
gavel/controllers/admin.py:141
Function
annotator_detail
(annotator_id)
gavel/controllers/admin.py:225
Function
annotator_dump
()
gavel/controllers/api.py:25
Method
apply_driver_hacks
(self, app, info, options)
gavel/models/__init__.py:7
Function
argmax
(f, xs)
gavel/crowd_bt.py:23
Function
begin
()
gavel/controllers/judge.py:104
Function
buttonSelected
()
gavel/static/js/smart-button-toggle.js:1
Method
by_id
(cls, uid)
gavel/models/annotator.py:55
Function
cast_row
Convert workbook sheet cells into integers if they are equal to integer values and convert everything to a string. The xlrd library seem
gavel/utils.py:135
Function
check_send_telemetry
()
gavel/stats.py:8
Function
csrf_protect
()
gavel/controllers/csrf_protection.py:6
Function
data_from_csv_string
(string)
gavel/utils.py:45
Function
data_to_csv_string
(data)
gavel/utils.py:39
Function
decisions_dump
()
gavel/controllers/api.py:38
Function
decorated
(*args, **kwargs)
gavel/utils.py:32
Function
decorated
(*args, **kwargs)
gavel/controllers/judge.py:21
Function
decorator
(f)
gavel/controllers/judge.py:19
Function
error_403
(e)
gavel/controllers/error.py:12
Function
error_404
(e)
gavel/controllers/error.py:5
Function
error_500
(e)
gavel/controllers/error.py:19
Function
expected_information_gain
(alpha, beta, mu_a, sigma_sq_a, mu_b, sigma_sq_b)
gavel/crowd_bt.py:46
Function
favicon
()
gavel/controllers/default.py:6
Function
gen_secret
(length)
gavel/utils.py:20
Function
generate_csrf_token
()
gavel/controllers/csrf_protection.py:12
Function
get_paragraphs
(message)
gavel/utils.py:50
Function
index
()
gavel/controllers/judge.py:43
Function
item
()
gavel/controllers/admin.py:55
Function
item_detail
(item_id)
gavel/controllers/admin.py:203
Function
item_dump
()
gavel/controllers/api.py:9
Function
item_patch
()
gavel/controllers/admin.py:124
Function
login
(secret)
gavel/controllers/judge.py:125
Function
logout
()
gavel/controllers/judge.py:120
Function
render_markdown
(content)
gavel/utils.py:126
Function
requires_active_annotator
(redirect_to)
gavel/controllers/judge.py:29
Function
requires_auth
(f)
gavel/utils.py:30
Function
requires_open
(redirect_to)
gavel/controllers/judge.py:18
Function
send_emails
Send a batch of emails. This function takes a list [(to_address, subject, body)].
gavel/utils.py:56
Function
send_sendgrid_emails
(emails)
gavel/utils.py:99
Function
server_error
(message)
gavel/utils.py:132
Function
setting
()
gavel/controllers/admin.py:192
Function
tx
()
gavel/controllers/admin.py:64
Function
tx
()
gavel/controllers/judge.py:78
Function
update
(alpha, beta, mu_winner, sigma_sq_winner, mu_loser, sigma_sq_loser)
gavel/crowd_bt.py:40
Function
user_error
(message)
gavel/utils.py:129
Function
vote
()
gavel/controllers/judge.py:77
Function
welcome
()
gavel/controllers/judge.py:137
Function
welcome_done
()
gavel/controllers/judge.py:146