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
↓ 2 callers
Method
tokens_stake
runners/proxy/ProxyClientInfo.h:96
↓ 2 callers
Method
update_balance
runners/proxy/ProxyWorkerInfo.h:89
↓ 2 callers
Method
update_signed_payment_data
runners/proxy/ProxyWorkerInfo.h:133
↓ 2 callers
Function
uptime
tee/cocoon/health-render.cpp:63
↓ 2 callers
Method
usage
runners/helpers/ValidateRequest.cpp:1488
↓ 2 callers
Function
validate_client_json_request
runners/helpers/ValidateRequest.cpp:1617
↓ 2 callers
Function
validate_port_number
tee/cocoon/ProxyConfig.cpp:17
↓ 2 callers
Function
validate_quote
tee/cocoon/tdx/tdx.cpp:603
↓ 2 callers
Method
verify
tee/cocoon/sev/RATLS.cpp:42
↓ 2 callers
Method
worker_connection_info
runners/proxy/ProxyInboundWorkerConnection.h:40
↓ 2 callers
Method
written_to_db
runners/proxy/ProxyWorkerInfo.h:154
↓ 1 callers
Function
BIO_get_new_index
tdport/td/net/SslStream.cpp:41
↓ 1 callers
Function
BIO_meth_new
tdport/td/net/SslStream.cpp:44
↓ 1 callers
Function
BIO_meth_set_create
tdport/td/net/SslStream.cpp:62
↓ 1 callers
Function
BIO_meth_set_ctrl
tdport/td/net/SslStream.cpp:58
↓ 1 callers
Function
BIO_meth_set_destroy
tdport/td/net/SslStream.cpp:66
↓ 1 callers
Function
BIO_meth_set_read
tdport/td/net/SslStream.cpp:54
↓ 1 callers
Function
BIO_meth_set_write
tdport/td/net/SslStream.cpp:50
↓ 1 callers
Function
BIO_set_init
tdport/td/net/SslStream.cpp:37
↓ 1 callers
Function
_build_roles_prompt
Roles format with JSON wrapper for batching multiple texts.
mt-tools/src/mt/translate.py:615
↓ 1 callers
Function
_call_completions
Call /v1/completions API.
mt-tools/src/mt/translate.py:715
↓ 1 callers
Function
_call_raw
Send raw JSON payload.
mt-tools/src/mt/translate.py:929
↓ 1 callers
Function
_clean_harmony_response
Clean up harmony tokens from response.
mt-tools/src/mt/translate.py:922
↓ 1 callers
Method
_get_session
Get thread-local session for keep-alive.
mt-tools/src/mt/translate.py:246
↓ 1 callers
Method
_init_db
Initialize DuckDB table.
mt-tools/src/mt/cache.py:66
↓ 1 callers
Method
_init_db
Initialize DuckDB table.
mt-tools/scripts/quality_eval.py:107
↓ 1 callers
Function
_load_flores_data
Load from FLORES-200 (any pair via English pivot).
mt-tools/scripts/quality_eval.py:400
↓ 1 callers
Method
_load_flores_data
Load FLORES-200 dataset.
mt-tools/src/mt/tasks/translate.py:174
↓ 1 callers
Function
_load_wmt_data
Load from WMT24++ (en->xx only).
mt-tools/scripts/quality_eval.py:377
↓ 1 callers
Method
_load_wmt_data
Load WMT24++ dataset.
mt-tools/src/mt/tasks/translate.py:146
↓ 1 callers
Function
_normalize_lang_name
Normalize language to 'FullName (code)' format, e.g. 'ru' -> 'Russian (ru)'.
mt-tools/src/mt/translate.py:388
↓ 1 callers
Function
_parse_json_response
Parse JSON response from roles format. Returns list of translation strings.
mt-tools/src/mt/translate.py:891
↓ 1 callers
Method
_run_harmony
Run summarization using harmony format for gpt-oss models.
mt-tools/src/mt/tasks/summarize.py:80
↓ 1 callers
Function
_translate_batch_json
Translate multiple texts using JSON batching (roles only). Returns list of results.
mt-tools/src/mt/translate.py:820
↓ 1 callers
Method
active_config_version
runners/proxy/ProxyRunner.hpp:72
↓ 1 callers
Method
add_prompt
runners/helpers/CountTokens.cpp:24
↓ 1 callers
Method
add_smartcontract
* * SC MONITOR * */
runners/BaseRunner.cpp:1132
↓ 1 callers
Method
adjust_balance
runners/proxy/ProxyWorkerInfo.h:102
↓ 1 callers
Function
align_up_pow2
tee/cocoon/sev/SEVHashes.cpp:28
↓ 1 callers
Method
allow_queries
runners/proxy/ProxyClientInfo.h:31
↓ 1 callers
Method
at
runners/BaseRunner.hpp:307
↓ 1 callers
Method
average_query_time
runners/proxy/ProxyWorkerConnectionInfo.h:72
↓ 1 callers
Method
balance_for_requests
runners/smartcontracts/ClientContract.hpp:83
↓ 1 callers
Function
base_test
tee/test/cocoon.cpp:238
↓ 1 callers
Method
blSPL
tee/cocoon/sev/PKI.cpp:369
↓ 1 callers
Function
build_local
()
tee/cocoon/proxy-test.py:155
↓ 1 callers
Method
build_table
tee/cocoon/sev/SEVHashes.cpp:63
↓ 1 callers
Method
cached_tokens_price_multiplier
runners/smartcontracts/RootContractConfig.hpp:160
↓ 1 callers
Function
calc_memory_info
tee/cocoon/health-render.cpp:283
↓ 1 callers
Function
calculate_timing_stats
Calculate timing statistics from results with timing info.
mt-tools/src/mt/cli/benchmark.py:129
↓ 1 callers
Method
can_charge
runners/client/ClientProxyInfo.h:68
↓ 1 callers
Method
charge
runners/proxy/ProxyClientInfo.h:166
↓ 1 callers
Method
charging_completed
runners/proxy/ProxyClientInfo.h:187
↓ 1 callers
Function
check_task
tee/cocoon/tdx-info.cpp:8
↓ 1 callers
Method
check_unprocessed_fields
runners/helpers/ValidateRequest.cpp:709
↓ 1 callers
Function
cleanup
()
mt-tools/scripts/run_sglang.py:118
↓ 1 callers
Method
client_sc_code
runners/smartcontracts/RootContractConfig.hpp:76
↓ 1 callers
Method
close_connection
runners/BaseRunner.cpp:109
↓ 1 callers
Method
close_connection
runners/BaseRunner.hpp:620
↓ 1 callers
Function
cmd_benchmark
CLI entry point for benchmark command.
mt-tools/src/mt/cli/benchmark.py:425
↓ 1 callers
Function
cmd_benchmark_audio_transcribe
Benchmark audio transcription speed and latency.
mt-tools/src/mt/cli/benchmark.py:513
↓ 1 callers
Function
cmd_eval_audio_langid
Evaluate audio language identification with per-language metrics.
mt-tools/src/mt/cli/eval.py:483
↓ 1 callers
Function
cmd_eval_audio_transcribe
Evaluate audio transcription with WER metrics.
mt-tools/src/mt/cli/eval.py:569
↓ 1 callers
Function
cmd_run_audio
Run audio task (audio_langid, audio_transcribe, etc.).
mt-tools/src/mt/cli/run.py:122
↓ 1 callers
Function
cmd_run_raw
Send raw JSON payload directly to API.
mt-tools/src/mt/cli/run.py:75
↓ 1 callers
Method
coefficient
runners/worker/WorkerRunner.h:53
↓ 1 callers
Function
collect_service_states
tee/cocoon/health-render.cpp:486
↓ 1 callers
Method
completion_tokens_price_multiplier
runners/smartcontracts/RootContractConfig.hpp:163
↓ 1 callers
Method
compute_scores_cached
Compute scores with per-sample caching. 1. Check cache for each sample 2. Batch compute uncached samples 3. Store new
mt-tools/src/mt/tasks/base.py:72
↓ 1 callers
Method
connected
runners/BaseRunner.cpp:133
↓ 1 callers
Method
connection_is_ready
runners/BaseRunner.cpp:157
↓ 1 callers
Method
copy_from_remote
(self, remote_src, local_dst)
tee/cocoon/proxy-test.py:142
↓ 1 callers
Function
count_cgroup_fds_and_sockets
Get FDs and sockets for all processes in a cgroup + docker for vllm
tee/cocoon/health-metrics.cpp:598
↓ 1 callers
Method
create_change_secret_hash_message
runners/smartcontracts/ClientContract.cpp:114
↓ 1 callers
Function
create_client_ssl_stream
tee/cocoon/utils.cpp:16
↓ 1 callers
Method
create_last_pay_message
runners/smartcontracts/WorkerContract.cpp:114
↓ 1 callers
Function
create_local_config
Create local configuration file for SOCKS5 proxy.
tee/cocoon/proxy-test.py:296
↓ 1 callers
Method
create_pay_message
runners/smartcontracts/WorkerContract.cpp:105
↓ 1 callers
Function
create_policies_from_config
Create policies from configuration
tee/cocoon/router.cpp:57
↓ 1 callers
Method
create_proxy_register_message
runners/smartcontracts/ClientContract.cpp:105
↓ 1 callers
Function
create_remote_config
Create remote configuration file for reverse proxy.
tee/cocoon/proxy-test.py:317
↓ 1 callers
Method
create_request_refund_message
runners/smartcontracts/ClientContract.cpp:164
↓ 1 callers
Function
create_server_ssl_stream
tee/cocoon/utils.cpp:9
↓ 1 callers
Method
create_topup_message
runners/smartcontracts/ClientContract.cpp:123
↓ 1 callers
Function
dec_processing
()
mt-tools/scripts/translation_benchmark.py:400
↓ 1 callers
Function
decrypt_form
runners/helpers/ValidateRequest.cpp:1573
↓ 1 callers
Method
deduct
runners/proxy/ProxyClientInfo.h:158
↓ 1 callers
Method
del_smartcontract
runners/BaseRunner.cpp:1139
↓ 1 callers
Function
delay_action
tee/test/cocoon.cpp:159
↓ 1 callers
Function
discover_services
tee/cocoon/health-monitor.cpp:93
↓ 1 callers
Function
do_sync
runners/utils/sync_time.cpp:16
↓ 1 callers
Function
download_war_and_peace
Download War and Peace from Gutenberg.
mt-tools/src/mt/cli/benchmark.py:46
↓ 1 callers
Function
download_war_and_peace
()
mt-tools/scripts/translation_benchmark.py:48
↓ 1 callers
Function
dump_stats
runners/WorkerRunner.cpp:15
↓ 1 callers
Function
dump_stats
runners/ClientRunner.cpp:9
↓ 1 callers
Function
dump_stats
runners/ProxyRunner.cpp:11
↓ 1 callers
Function
dump_stats
runners/KeyManagerRunner.cpp:9
↓ 1 callers
Method
earned_tokens_committed_to_blockchain
runners/worker/WorkerProxyInfo.h:44
↓ 1 callers
Function
ecall_gen_key
tee/cocoon/tdx/sgx-enclave/Enclave.cpp:115
↓ 1 callers
Function
empty_private_key
tdport/td/e2e/Keys.cpp:105
← previous
next →
401–500 of 2,150, ranked by callers