Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/hyperopt/hyperopt
/ as_mongo_str
Function
as_mongo_str
hyperopt/mongoexp.py:1188–1191 ·
view source on GitHub ↗
(s)
Source
from the content-addressed store, hash-verified
1186
1187
1188
def
as_mongo_str(s):
1189
if
s.startswith(
"mongo://"
):
1190
return
s
1191
return
"mongo://%s"
% s
1192
1193
1194
def
number_of_jobs_in_db(options):
Callers
4
connection_string
Method · 0.90
test_main_worker
Function · 0.90
number_of_jobs_in_db
Function · 0.85
main_worker_helper
Function · 0.85
Calls
no outgoing calls
Tested by
2
connection_string
Method · 0.72
test_main_worker
Function · 0.72