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
↓ 1 callers
Function
empty_public_key
tdport/td/e2e/Keys.cpp:52
↓ 1 callers
Method
enable_check_hashes
SIMPLE SETTERS */
runners/key-manager/KeyManagerRunner.hpp:57
↓ 1 callers
Method
enclave_id
tee/cocoon/tdx/sgx-enclave/seal-server.cpp:58
↓ 1 callers
Function
encrypt_all_strings
runners/helpers/ValidateRequest.cpp:296
↓ 1 callers
Function
encrypt_string
runners/helpers/ValidateRequest.cpp:261
↓ 1 callers
Function
ensure_task
tee/test/cocoon.cpp:233
↓ 1 callers
Function
evaluate_batch
Batch evaluation: load all data, translate all, evaluate all. Much faster for COMET (single batch instead of per-pair).
mt-tools/scripts/quality_eval.py:455
↓ 1 callers
Method
exp_sc_stake
runners/client/ClientProxyInfo.h:77
↓ 1 callers
Method
export_difference_with_db
runners/worker/WorkerProxyInfo.h:117
↓ 1 callers
Function
extended_model_from_cpu_mod_id
tee/cocoon/sev/ABI.cpp:183
↓ 1 callers
Method
finish
tee/cocoon/FwdProxy.cpp:213
↓ 1 callers
Function
fix_json_closing
Fix incomplete JSON closing brackets. Handles escaped quotes correctly.
mt-tools/src/mt/translate.py:354
↓ 1 callers
Method
flow_read
tdport/td/net/SslStream.cpp:404
↓ 1 callers
Method
flow_write
tdport/td/net/SslStream.cpp:407
↓ 1 callers
Method
fmcSPL
tee/cocoon/sev/PKI.cpp:379
↓ 1 callers
Function
format_event_data
tee/cocoon/tdx/eventlog.cpp:526
↓ 1 callers
Function
format_hex_dump
tee/cocoon/tdx/eventlog.cpp:553
↓ 1 callers
Method
format_progress
Format progress indicator for this task. Returns something like 'en->ru' for translate or 'en' for summarize.
mt-tools/src/mt/tasks/base.py:164
↓ 1 callers
Method
from_headers
Create TimingInfo from HTTP response headers (legacy method).
mt-tools/src/mt/translate.py:98
↓ 1 callers
Function
gen_from_json
tl/generate/tl_json_converter.cpp:170
↓ 1 callers
Function
gen_json_converter
tl/generate/tl_json_converter.cpp:312
↓ 1 callers
Function
gen_tl_constructor_from_string
tl/generate/tl_json_converter.cpp:189
↓ 1 callers
Function
gen_to_json
tl/generate/tl_json_converter.cpp:99
↓ 1 callers
Function
generate_cpp
tl/generate/generate_common.cpp:42
↓ 1 callers
Function
generate_self_signed_cert
* Generates a self-signed X.509 certificate with the given private key and configuration. * * @param private_key Ed25519 private key for signing the
tee/cocoon/Tee.cpp:31
↓ 1 callers
Function
generate_vcek_cert
tee/cocoon/sev/Tee.cpp:35
↓ 1 callers
Function
get_active
()
mt-tools/scripts/translation_benchmark.py:388
↓ 1 callers
Function
get_audio_path
Get audio file path from args.input or args.file.
mt-tools/src/mt/cli/run.py:24
↓ 1 callers
Function
get_azure_headers
Get headers for Azure OpenAI API requests.
mt-tools/src/mt/translate.py:24
↓ 1 callers
Function
get_cgroup_cpu_usage
Get CPU usage from cgroup (includes all child processes + docker for vllm)
tee/cocoon/health-metrics.cpp:472
↓ 1 callers
Function
get_cgroup_io
Get I/O stats from cgroup (includes all child processes + docker for vllm)
tee/cocoon/health-metrics.cpp:525
↓ 1 callers
Function
get_cgroup_memory
Get memory usage from cgroup (includes all child processes + docker for vllm)
tee/cocoon/health-metrics.cpp:557
↓ 1 callers
Method
get_client
runners/proxy/ProxyRunner.cpp:161
↓ 1 callers
Function
get_comet_model
Load COMET model once and cache it.
mt-tools/src/mt/tasks/translate.py:49
↓ 1 callers
Function
get_comet_model
Load COMET model once and cache it.
mt-tools/scripts/quality_eval.py:41
↓ 1 callers
Function
get_completed
()
mt-tools/scripts/translation_benchmark.py:404
↓ 1 callers
Function
get_cpu_cores
Parse /proc/cpuinfo (cached)
tee/cocoon/health-metrics.cpp:100
↓ 1 callers
Method
get_cpu_percent
tee/cocoon/health-stats.cpp:123
↓ 1 callers
Method
get_cpu_utilization
tee/cocoon/health-stats.cpp:154
↓ 1 callers
Function
get_cpusvn
tee/cocoon/tdx/sgx-enclave/Enclave.cpp:79
↓ 1 callers
Function
get_default_ssl_ctx
tdport/td/net/SslCtx.cpp:219
↓ 1 callers
Function
get_default_unverified_ssl_ctx
tdport/td/net/SslCtx.cpp:228
↓ 1 callers
Method
get_derived_key
tee/cocoon/sev/GuestDevice.cpp:143
↓ 1 callers
Method
get_disk_rates
tee/cocoon/health-stats.cpp:158
↓ 1 callers
Function
get_docker_container_id
Helper: get docker container ID for a container name
tee/cocoon/health-metrics.cpp:416
↓ 1 callers
Function
get_event_log
tee/cocoon/health-render.cpp:152
↓ 1 callers
Method
get_events_for_rtmr
tee/cocoon/tdx/eventlog.cpp:288
↓ 1 callers
Method
get_extended_report
tee/cocoon/sev/GuestDevice.cpp:110
↓ 1 callers
Function
get_google_api_key
Get Google Cloud API key from environment.
mt-tools/src/mt/translate.py:36
↓ 1 callers
Function
get_hunyuan_lang
Get language name for Hunyuan prompt (English or Chinese version).
mt-tools/src/mt/translate.py:347
↓ 1 callers
Function
get_input_text
Get input text from args.input, args.file, or stdin.
mt-tools/src/mt/cli/run.py:11
↓ 1 callers
Method
get_io_rates
tee/cocoon/health-stats.cpp:129
↓ 1 callers
Method
get_net_rates
tee/cocoon/health-stats.cpp:163
↓ 1 callers
Function
get_process_io
Parse /proc/<pid>/io for I/O statistics
tee/cocoon/health-metrics.cpp:286
↓ 1 callers
Function
get_processing
()
mt-tools/scripts/translation_benchmark.py:392
↓ 1 callers
Method
get_random_proxy
runners/smartcontracts/RootContractConfig.hpp:55
↓ 1 callers
Method
get_request
* Generates a request for a persistent key. * * @return Serialized GetPersistentKey request containing TDX report and public key */
tee/cocoon/tdx/sgx-enclave/seal-client.cpp:59
↓ 1 callers
Method
get_service_cpu
tee/cocoon/health-stats.cpp:176
↓ 1 callers
Method
get_service_io
tee/cocoon/health-stats.cpp:181
↓ 1 callers
Function
get_status_human
tee/cocoon/health-render.cpp:387
↓ 1 callers
Method
get_subfield
runners/helpers/ValidateRequest.cpp:437
↓ 1 callers
Function
get_submitted
()
mt-tools/scripts/translation_benchmark.py:408
↓ 1 callers
Function
get_tl_object_sha_bits256
cocoon-tl-utils/cocoon-common-utils.hpp:48
↓ 1 callers
Function
get_top_pairs_from_csv
Load top language pairs from traffic CSV.
mt-tools/src/mt/cli/eval.py:167
↓ 1 callers
Function
get_translation_cache
Get or create global translation cache.
mt-tools/scripts/quality_eval.py:210
↓ 1 callers
Method
get_user
(self)
tee/cocoon/proxy-test.py:151
↓ 1 callers
Method
get_utilization
tee/cocoon/health-stats.cpp:98
↓ 1 callers
Method
got_private_keys_from_key_manager
runners/BaseRunner.cpp:874
↓ 1 callers
Function
has_gpu
Check if GPU is available for COMET.
mt-tools/src/mt/tasks/translate.py:75
↓ 1 callers
Method
has_key_manager_verified_key
runners/smartcontracts/RootContractConfig.hpp:187
↓ 1 callers
Method
has_proxy_verified_key
runners/smartcontracts/RootContractConfig.hpp:181
↓ 1 callers
Method
has_worker_verified_key
runners/smartcontracts/RootContractConfig.hpp:184
↓ 1 callers
Function
hex_addr
tee/cocoon/tdx/eventlog.cpp:541
↓ 1 callers
Function
hex_byte
tee/cocoon/tdx/eventlog.cpp:548
↓ 1 callers
Method
id
runners/smartcontracts/SmartContract.hpp:136
↓ 1 callers
Function
inc_processing
()
mt-tools/scripts/translation_benchmark.py:396
↓ 1 callers
Function
inc_submitted
()
mt-tools/scripts/translation_benchmark.py:412
↓ 1 callers
Method
init
tdport/td/net/SslStream.cpp:165
↓ 1 callers
Function
init_cache
Initialize the global cache with specific settings.
mt-tools/scripts/quality_eval.py:221
↓ 1 callers
Function
init_http_server
boost-http/http.cpp:368
↓ 1 callers
Method
init_server
tdport/td/net/SslStream.cpp:142
↓ 1 callers
Function
is_audio_task
Check if task processes audio files.
mt-tools/src/mt/tasks/__init__.py:39
↓ 1 callers
Function
is_boot_option
Check if name is Boot#### (4 hex digits)
tee/cocoon/tdx/eventlog.cpp:400
↓ 1 callers
Method
is_closed
runners/worker/WorkerProxyInfo.h:69
↓ 1 callers
Method
is_connected
runners/BaseRunner.hpp:85
↓ 1 callers
Method
is_disabled
runners/worker/WorkerRunner.h:59
↓ 1 callers
Method
is_double
runners/helpers/ValidateRequest.cpp:762
↓ 1 callers
Method
is_integer
runners/helpers/ValidateRequest.cpp:746
↓ 1 callers
Function
is_safe_char
tee/cocoon/cocoon-subst.cpp:10
↓ 1 callers
Function
is_service_file
tee/cocoon/health-monitor.cpp:89
↓ 1 callers
Method
is_started
runners/smartcontracts/SmartContract.hpp:81
↓ 1 callers
Method
is_test
runners/BaseRunner.hpp:426
↓ 1 callers
Method
iterate_array
runners/helpers/ValidateRequest.cpp:498
↓ 1 callers
Method
kill
(self, pattern)
tee/cocoon/proxy-test.py:87
↓ 1 callers
Function
list_tasks
List all available task names.
mt-tools/src/mt/tasks/__init__.py:34
↓ 1 callers
Function
load_config_from_file
Load TranslateConfig from an INI-style config file. Example config file: [model] endpoint = http://127.0.0.1:10000
mt-tools/src/mt/translate.py:1056
↓ 1 callers
Function
load_system_certificate_store
tdport/td/net/SslCtx.cpp:63
↓ 1 callers
Function
load_test_data
Load test data for any language pair (with thread-safe caching). - Uses WMT24++ for en->xx pairs (better quality references) - Uses
mt-tools/scripts/quality_eval.py:340
↓ 1 callers
Function
load_vars
tee/cocoon/cocoon-subst.cpp:15
↓ 1 callers
Method
loop
tee/cocoon/utils.cpp:104
← previous
next →
501–600 of 2,150, ranked by callers