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
↓ 240 callers
Method
as_slice
tee/cocoon/RATLS.cpp:563
↓ 154 callers
Method
get
tee/cocoon/AttestationCache.cpp:16
↓ 142 callers
Method
add_element
runners/helpers/SimpleJsonSerializer.hpp:98
↓ 130 callers
Method
process_obj_field
runners/helpers/ValidateRequest.cpp:691
↓ 100 callers
Method
get
Get cached result. Args: task: Task name (translate, summarize) input_text: Input text config_key
mt-tools/src/mt/cache.py:91
↓ 76 callers
Method
set_error
net/TcpClient.hpp:76
↓ 68 callers
Function
parse
tdport/td/net/utils.h:31
↓ 47 callers
Function
to_nano
runners/helpers/Ton.h:8
↓ 39 callers
Function
store
tdport/td/net/utils.h:27
↓ 34 callers
Method
finalize
runners/helpers/ValidateRequest.cpp:1498
↓ 31 callers
Method
to_html_row
runners/helpers/AmortCounter.h:72
↓ 29 callers
Method
start_object
runners/helpers/SimpleJsonSerializer.hpp:25
↓ 29 callers
Method
stop_object
runners/helpers/SimpleJsonSerializer.hpp:49
↓ 29 callers
Method
to_jb
runners/helpers/AmortCounter.h:80
↓ 28 callers
Method
copy
(self, src, dst)
tee/cocoon/proxy-test.py:137
↓ 27 callers
Function
store_address
cocoon-tl-utils/parsers.cpp:65
↓ 26 callers
Method
as_cslice
runners/helpers/SimpleJsonSerializer.hpp:110
↓ 26 callers
Method
type
tee/cocoon/RATLS.h:48
↓ 25 callers
Method
cocoon_wallet
runners/BaseRunner.hpp:417
↓ 24 callers
Function
address_link
runners/helpers/Ton.h:24
↓ 24 callers
Method
params_version
runners/smartcontracts/RootContractConfig.hpp:66
↓ 22 callers
Function
bytes
tee/cocoon/health-render.cpp:41
↓ 22 callers
Method
run
(self, cmd)
tee/cocoon/proxy-test.py:124
↓ 22 callers
Method
send_transaction
runners/smartcontracts/CocoonWallet.cpp:102
↓ 22 callers
Function
to_ton
runners/helpers/Ton.h:12
↓ 22 callers
Method
version
runners/smartcontracts/RootContractConfig.hpp:63
↓ 20 callers
Method
clear
Clear cache entries.
mt-tools/src/mt/cache.py:173
↓ 20 callers
Function
read_proc_file
Read procfs/sysfs file directly (bypasses size=0 issue)
tee/cocoon/health-metrics.cpp:27
↓ 18 callers
Method
balance
runners/smartcontracts/SmartContract.hpp:73
↓ 18 callers
Function
enclave_printf
tee/cocoon/tdx/sgx-enclave/Enclave.cpp:29
↓ 18 callers
Method
get_string
runners/helpers/ValidateRequest.cpp:742
↓ 17 callers
Function
adjust_tokens
runners/helpers/Ton.h:20
↓ 17 callers
Function
get_extension
tee/cocoon/RATLS.cpp:180
↓ 16 callers
Method
connection_type
runners/proxy/ProxyInboundClientConnection.h:27
↓ 16 callers
Method
handshake_is_completed
runners/proxy/ProxyInboundClientConnection.h:30
↓ 15 callers
Method
is_in_past
runners/BaseRunner.hpp:303
↓ 15 callers
Method
is_ready
runners/BaseRunner.hpp:225
↓ 14 callers
Method
code
runners/smartcontracts/SmartContract.hpp:89
↓ 14 callers
Method
get
Get cached translation. Returns (hypothesis, duration) or None.
mt-tools/scripts/quality_eval.py:133
↓ 14 callers
Method
read
tee/cocoon/FwdProxy.cpp:34
↓ 14 callers
Method
relax
runners/helpers/AmortCounter.h:19
↓ 14 callers
Function
run
tee/cocoon/tdx-info.cpp:18
↓ 14 callers
Method
start_array
runners/helpers/SimpleJsonSerializer.hpp:31
↓ 14 callers
Method
stop_array
runners/helpers/SimpleJsonSerializer.hpp:56
↓ 13 callers
Method
connection_id
runners/BaseRunner.hpp:239
↓ 13 callers
Function
fetch_address
cocoon-tl-utils/parsers.cpp:50
↓ 13 callers
Method
kill
(self, pattern)
tee/cocoon/proxy-test.py:135
↓ 13 callers
Method
run
runners/helpers/HttpSender.cpp:10
↓ 13 callers
Function
serialize_tl_object
cocoon-tl-utils/cocoon-common-utils.hpp:28
↓ 12 callers
Method
cache_key
Return stable cache key for this task configuration.
mt-tools/src/mt/tasks/base.py:148
↓ 12 callers
Function
parse_address
runners/smartcontracts/RootContractConfig.cpp:51
↓ 12 callers
Method
price_per_token
runners/proxy/ProxyRunner.hpp:63
↓ 12 callers
Method
process_array
runners/helpers/ValidateRequest.cpp:722
↓ 12 callers
Function
safe_parse_uint
tee/cocoon/health-metrics.cpp:254
↓ 12 callers
Function
store_coins
cocoon-tl-utils/parsers.cpp:35
↓ 11 callers
Method
address_link
runners/BaseRunner.hpp:408
↓ 11 callers
Method
is_string
runners/helpers/ValidateRequest.cpp:738
↓ 11 callers
Method
start
net/TcpConnection.cpp:121
↓ 10 callers
Function
config_from_args
Create TranslateConfig from parsed arguments or config file. Args: args: Parsed command line arguments config_path: Optional
mt-tools/src/mt/translate.py:1003
↓ 10 callers
Function
fetch_coins
cocoon-tl-utils/parsers.cpp:8
↓ 10 callers
Function
get_json_value
runners/helpers/ValidateRequest.cpp:1394
↓ 10 callers
Method
run
Run task on single input. Returns TaskResult with output and optional timing.
mt-tools/src/mt/tasks/base.py:55
↓ 10 callers
Method
store
tee/cocoon/pow.h:68
↓ 10 callers
Function
to_long
tee/cocoon/sev/PKI.cpp:85
↓ 10 callers
Function
uuid_bswap
tee/cocoon/sev/UUID.cpp:45
↓ 9 callers
Function
rdeserialize
runners/BaseRunner.hpp:336
↓ 9 callers
Function
read_file
tee/cocoon/tdx/eventlog.cpp:155
↓ 9 callers
Function
safe_div
runners/helpers/Ton.h:16
↓ 9 callers
Method
update_state
tee/cocoon/utils.h:178
↓ 8 callers
Function
cut_bytes
tee/cocoon/tdx/eventlog.cpp:173
↓ 8 callers
Function
get_task
Create task instance with given parameters. Examples: task = get_task("translate", src="en", tgt="ru") task = get_task("summa
mt-tools/src/mt/tasks/__init__.py:21
↓ 8 callers
Method
is_test
runners/smartcontracts/RootContractConfig.hpp:153
↓ 8 callers
Function
process_string_or_array
runners/helpers/ValidateRequest.cpp:839
↓ 8 callers
Method
rdeserialize
runners/BaseRunner.hpp:435
↓ 8 callers
Method
signed_payment
runners/proxy/ProxyWorkerInfo.h:49
↓ 8 callers
Method
store_stats
runners/proxy/ProxyWorkerInfo.cpp:63
↓ 8 callers
Method
tokens_committed_to_db
runners/proxy/ProxyWorkerInfo.h:34
↓ 8 callers
Method
tokens_max
runners/proxy/ProxyWorkerInfo.h:37
↓ 8 callers
Method
write
tdport/td/net/SslStream.cpp:230
↓ 7 callers
Method
add_field
runners/helpers/ValidateRequest.cpp:773
↓ 7 callers
Method
client_sc_address
runners/proxy/ProxyInboundClientConnection.cpp:104
↓ 7 callers
Method
get_report
tee/cocoon/sev/GuestDevice.cpp:87
↓ 7 callers
Function
get_status
tee/cocoon/health-render.cpp:156
↓ 7 callers
Function
is_valid_service
tee/cocoon/health-monitor.cpp:67
↓ 7 callers
Function
loop_read
tdport/td/net/utils.h:16
↓ 7 callers
Function
loop_write
tdport/td/net/utils.h:21
↓ 7 callers
Function
parse_bits256_from_json
runners/helpers/ValidateRequest.cpp:1313
↓ 7 callers
Method
post
Make a POST request, optionally using keep-alive session (thread-safe).
mt-tools/src/mt/translate.py:257
↓ 7 callers
Method
receive_payload_part
runners/worker/WorkerUplinkMonitor.cpp:28
↓ 7 callers
Function
secure_zero
tee/cocoon/tdx/sgx-enclave/Enclave.cpp:91
↓ 7 callers
Method
send_handshake_query_to_connection
runners/BaseRunner.cpp:989
↓ 7 callers
Method
verify_signature
tee/cocoon/sev/PKI.cpp:303
↓ 6 callers
Method
_get_conn
Get thread-local connection.
mt-tools/src/mt/cache.py:60
↓ 6 callers
Function
add_translate_args
Add common translation arguments to an argparse parser.
mt-tools/src/mt/translate.py:961
↓ 6 callers
Method
client_duration
Total end-to-end time in client (answer_receive_end_at - start_time).
mt-tools/src/mt/translate.py:150
↓ 6 callers
Method
exists
runners/helpers/ValidateRequest.cpp:338
↓ 6 callers
Function
generate_cert_and_key
tee/cocoon/Tee.cpp:283
↓ 6 callers
Method
get_integer
runners/helpers/ValidateRequest.cpp:750
↓ 6 callers
Method
get_rates
tee/cocoon/health-stats.cpp:53
↓ 6 callers
Method
has_model_hash
runners/smartcontracts/RootContractConfig.hpp:102
next →
1–100 of 2,150, ranked by callers