Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TelegramMessenger/cocoon
/ functions
Functions
2,150 in github.com/TelegramMessenger/cocoon
⨍
Functions
2,150
◇
Types & classes
372
↓ 3 callers
Method
incr_tokens
runners/proxy/ProxySignedPayments.hpp:24
↓ 3 callers
Method
is_closing
runners/proxy/ProxyClientInfo.h:40
↓ 3 callers
Method
is_inited
runners/worker/WorkerProxyInfo.h:34
↓ 3 callers
Function
is_printable
tee/cocoon/tdx/eventlog.cpp:367
↓ 3 callers
Method
load_eval_data
Load evaluation dataset.
mt-tools/src/mt/tasks/base.py:60
↓ 3 callers
Function
normalize_service_name
tee/cocoon/health-monitor.cpp:71
↓ 3 callers
Function
parse_proxy_spec
Generic parser: SPEC@POLICY[:image-hash]
tee/cocoon/router.cpp:208
↓ 3 callers
Method
process_new_state
runners/smartcontracts/SmartContract.cpp:70
↓ 3 callers
Function
product_name_from_cpu
tee/cocoon/sev/ABI.cpp:124
↓ 3 callers
Method
proxy_request_payout
runners/worker/WorkerRunner.cpp:44
↓ 3 callers
Function
proxy_sockets
tee/cocoon/utils.h:111
↓ 3 callers
Method
put
tee/cocoon/AttestationCache.cpp:27
↓ 3 callers
Function
read_image_hash
tee/cocoon/health-render.cpp:28
↓ 3 callers
Method
receive_answer
runners/proxy/ProxyRunningRequest.cpp:116
↓ 3 callers
Method
receive_payload_part
boost-http/http.cpp:153
↓ 3 callers
Method
run
boost-http/http.cpp:31
↓ 3 callers
Function
run_http_request
boost-http/http-client.cpp:211
↓ 3 callers
Method
running_queries
runners/proxy/ProxyWorkerInfo.h:68
↓ 3 callers
Function
safe_parse_int
Helper for safe integer parsing
tee/cocoon/health-metrics.cpp:246
↓ 3 callers
Method
set_callback
runners/smartcontracts/WorkerContract.hpp:33
↓ 3 callers
Method
set_to_db
runners/proxy/ProxyRunner.cpp:758
↓ 3 callers
Method
short_desc
tee/cocoon/utils.h:146
↓ 3 callers
Function
should_encrypt_field
runners/helpers/ValidateRequest.cpp:232
↓ 3 callers
Method
signed_payment_data
runners/proxy/ProxyWorkerInfo.h:43
↓ 3 callers
Function
solve_pow_client
tee/cocoon/pow.cpp:218
↓ 3 callers
Function
stable_hash
Deterministic hash (32 hex chars from sha256).
mt-tools/src/mt/cache.py:15
↓ 3 callers
Method
start_up
* * INITIALIZATION * */
runners/BaseRunner.cpp:292
↓ 3 callers
Method
state
runners/proxy/OldProxyContract.hpp:72
↓ 3 callers
Function
tdx_make_report
tee/cocoon/tdx/tdx.cpp:580
↓ 3 callers
Method
tokens_committed_to_blockchain
runners/proxy/ProxyWorkerInfo.h:31
↓ 3 callers
Method
tokens_processed
runners/smartcontracts/WorkerContract.hpp:64
↓ 3 callers
Method
ton_disabled
runners/BaseRunner.hpp:423
↓ 3 callers
Function
trim
runners/helpers/ValidateRequest.cpp:43
↓ 3 callers
Method
unsubscribe_from_updates
runners/smartcontracts/SmartContract.cpp:181
↓ 3 callers
Method
update_tokens_committed_to_db
runners/client/ClientProxyInfo.h:86
↓ 3 callers
Method
update_tokens_committed_to_proxy_db
runners/worker/WorkerProxyInfo.h:102
↓ 3 callers
Method
update_tokens_max_known
runners/worker/WorkerProxyInfo.h:110
↓ 3 callers
Method
update_tokens_used
runners/client/ClientProxyInfo.h:81
↓ 3 callers
Function
url_decode
boost-http/www-form-urlencoded.cpp:20
↓ 3 callers
Method
validate
tee/cocoon/RATLS.cpp:469
↓ 3 callers
Method
verify_cert
tee/cocoon/sev/PKI.cpp:465
↓ 3 callers
Method
verify_report
tee/cocoon/sev/PKI.cpp:285
↓ 3 callers
Function
wrap_tls_client
tee/cocoon/utils.cpp:117
↓ 3 callers
Method
write_completed
boost-http/http.cpp:260
↓ 2 callers
Function
BIO_get_data
tdport/td/net/SslStream.cpp:31
↓ 2 callers
Function
BIO_s_sslstream
tdport/td/net/SslStream.cpp:106
↓ 2 callers
Function
BIO_set_data
tdport/td/net/SslStream.cpp:34
↓ 2 callers
Function
RATLS_extract_context
tee/cocoon/RATLS.cpp:666
↓ 2 callers
Method
_build_prompt
Build summarization prompt.
mt-tools/src/mt/tasks/summarize.py:116
↓ 2 callers
Function
_call_chat
Call /v1/chat/completions API.
mt-tools/src/mt/translate.py:662
↓ 2 callers
Function
_call_google
Call Google Translate API.
mt-tools/src/mt/translate.py:758
↓ 2 callers
Function
_detect_source_lang
Detect source language from text (simple heuristic).
mt-tools/src/mt/translate.py:404
↓ 2 callers
Method
_exec
(self, cmd, check=True)
tee/cocoon/proxy-test.py:119
↓ 2 callers
Function
_extract_lang_code
Extract language code from target_lang like 'Russian (ru)' -> 'ru' or 'Chinese' -> 'zh'.
mt-tools/src/mt/translate.py:370
↓ 2 callers
Function
_log
Simple verbose logging helper.
mt-tools/src/mt/translate.py:305
↓ 2 callers
Method
_norm
(self, cmd)
tee/cocoon/proxy-test.py:70
↓ 2 callers
Function
_stable_hash
Deterministic hash (first 16 bytes of sha256).
mt-tools/scripts/quality_eval.py:81
↓ 2 callers
Function
_translate_single
Translate a single text using non-JSON format.
mt-tools/src/mt/translate.py:803
↓ 2 callers
Method
active_transactions_cnt
runners/smartcontracts/CocoonWallet.hpp:56
↓ 2 callers
Method
add_next_answer_slice
runners/helpers/ValidateRequest.cpp:1411
↓ 2 callers
Method
add_subfield
runners/helpers/ValidateRequest.cpp:776
↓ 2 callers
Function
append_cert_info
tee/cocoon/RATLS.cpp:125
↓ 2 callers
Method
as_sev
tee/cocoon/RATLS.h:60
↓ 2 callers
Function
calculate_timing_stats
Calculate timing statistics from results with timing info. Returns dict with worker_overheads, proxy_overheads, client_overheads, network_ove
mt-tools/scripts/translation_benchmark.py:134
↓ 2 callers
Method
charging_now
runners/proxy/ProxyClientInfo.h:34
↓ 2 callers
Method
chat_url
Get the URL for chat completions endpoint.
mt-tools/src/mt/translate.py:226
↓ 2 callers
Method
check
runners/proxy/ProxyWorkerInfo.cpp:43
↓ 2 callers
Function
ci_str_equals
runners/helpers/ValidateRequest.cpp:35
↓ 2 callers
Method
client_charge
runners/proxy/ProxyRunner.cpp:225
↓ 2 callers
Method
client_delay_before_close
runners/smartcontracts/RootContractConfig.hpp:89
↓ 2 callers
Method
client_info
runners/proxy/ProxyInboundClientConnection.h:36
↓ 2 callers
Method
committed_to_blockchain
runners/proxy/ProxyWorkerInfo.h:141
↓ 2 callers
Method
committed_to_db
runners/proxy/ProxyWorkerInfo.h:137
↓ 2 callers
Function
compute_sample_hash
Compute hash for a single (source, hypothesis, reference) triple.
mt-tools/src/mt/cache.py:20
↓ 2 callers
Function
compute_sha384
SHA384 wrapper returning RtmrValue
tee/cocoon/tdx/eventlog.cpp:183
↓ 2 callers
Function
count_fds_for_procs
Helper: count FDs/sockets for all PIDs in a cgroup.procs file
tee/cocoon/health-metrics.cpp:581
↓ 2 callers
Function
count_open_fds
Count open file descriptors for a process
tee/cocoon/health-metrics.cpp:263
↓ 2 callers
Function
count_tcp_connections
Count TCP connections for a process
tee/cocoon/health-metrics.cpp:312
↓ 2 callers
Method
create_charge_message
runners/smartcontracts/ClientContract.cpp:139
↓ 2 callers
Method
create_refund_message
runners/smartcontracts/ClientContract.cpp:148
↓ 2 callers
Method
create_save_state_message
runners/smartcontracts/ProxyContract.cpp:260
↓ 2 callers
Function
create_ssl_ctx
tee/cocoon/Tee.cpp:307
↓ 2 callers
Method
create_withdraw_message
runners/smartcontracts/ProxyContract.cpp:253
↓ 2 callers
Method
cur_sc_address
runners/proxy/ProxyRunner.hpp:59
↓ 2 callers
Method
db_transaction
runners/proxy/ProxyRunner.hpp:153
↓ 2 callers
Function
decode_hex
boost-http/www-form-urlencoded.cpp:8
↓ 2 callers
Function
decrypt_all_strings
runners/helpers/ValidateRequest.cpp:271
↓ 2 callers
Function
decrypt_json
runners/helpers/ValidateRequest.cpp:1529
↓ 2 callers
Function
decrypt_string
runners/helpers/ValidateRequest.cpp:246
↓ 2 callers
Method
del_field
runners/helpers/ValidateRequest.cpp:779
↓ 2 callers
Function
detect_prompt_format
Auto-detect prompt format based on model name.
mt-tools/src/mt/translate.py:71
↓ 2 callers
Method
earned_tokens_committed_to_proxy_db
runners/worker/WorkerProxyInfo.h:48
↓ 2 callers
Method
earned_tokens_max_known
runners/worker/WorkerProxyInfo.h:52
↓ 2 callers
Function
encrypt_json
runners/helpers/ValidateRequest.cpp:1509
↓ 2 callers
Method
enqueue_part
boost-http/http.cpp:244
↓ 2 callers
Function
extend_rtmr
Extend RTMR: new = SHA384(old || digest)
tee/cocoon/tdx/eventlog.cpp:190
↓ 2 callers
Function
extract_debug_data
Extract debug data from response JSON. Checks top-level 'debug' key first, then tries to parse from content if it's JSON. Args:
mt-tools/src/mt/translate.py:267
↓ 2 callers
Function
fetch_net_addr
runners/smartcontracts/RootContractConfig.cpp:31
↓ 2 callers
Method
find_policy
tee/cocoon/FwdProxy.cpp:298
↓ 2 callers
Function
for_each_product_name
tee/cocoon/sev/ABI.h:196
← previous
next →
201–300 of 2,150, ranked by callers