1 viewer
rust 1,863,570 · typescript 235,774 · javascript 133,179 · python 20,426 · 6,416 files · digest 72c4f5c61f73 · built in 1.7 s · crystals off
crates/cre8-app-capitalstrategy/src/allocator.rs
Items
const CAPITAL_PER_OPP const MAX_PER_ASSET_FRAC const ELIGIBILITY_THRESHOLD const UNATTRIBUTED_KEY const REALIZED_WINDOW const ADAPTIVE_MIN_SAMPLES const ADAPTIVE_GAIN struct AllocatorState static STATE const REGIME_MEMBERSHIP_MIN_FRACTION const FORECAST_DISCOUNT_FLOOR struct Eval
Functions
By call-graph weight (PageRank; 1.0 is the average function). 35 functions in all.
| function | kind | lines | cyclomatic | callers | callees | weight | crystal |
|---|---|---|---|---|---|---|---|
| statesrc/allocator.rs:76 | fn | 3 | 1 | 7 | 0 | 4.4 | |
| multiplier_from_meansrc/allocator.rs:147 | fn | 6 | 2 | 3 | 0 | 1.4 | |
| regime_lit_fractionsrc/allocator.rs:212 | fn | 8 | 2 | 1 | 0 | 1.3 | |
| candidate_budgetsrc/allocator.rs:618 | fn | 7 | 2 | 3 | 0 | 1.2 | |
| pairssrc/allocator.rs:749 | fn | 3 | 1 | 3 | 0 | 1.1 | |
| total_capitalsrc/allocator.rs:32 | fn | 3 | 1 | 3 | 1 | 1 | |
| active_snapshotsrc/allocator.rs:117 | fn | 3 | 1 | 3 | 1 | 1 | |
| compute_allocationsrc/allocator.rs:486 | fn | 4 | 1 | 2 | 1 | 1 | |
| guardsrc/allocator.rs:667 | fn | 3 | 1 | 4 | 1 | 1 | |
| reset_for_testssrc/allocator.rs:656 | fn | 5 | 2 | 9 | 1 | 0.9 | |
| departure_probabilitysrc/allocator.rs:225 | fn | 18 | 8 | 3 | 1 | 0.9 | |
| compute_continuous_allocationsrc/allocator.rs:320 | fn | 164 | 12 | 3 | 7 | 0.9 | |
| forecast_discount_multipliersrc/allocator.rs:248 | fn | 10 | 3 | 2 | 0 | 0.9 | |
| forecast_multiplier_with_enabledsrc/allocator.rs:274 | fn | 22 | 3 | 2 | 3 | 0.9 | |
| compute_allocation_with_strategysrc/allocator.rs:496 | fn | 10 | 2 | 1 | 3 | 0.8 | |
| record_opensrc/allocator.rs:82 | fn | 15 | 3 | 2 | 1 | 0.8 | |
| capital_per_opp_from_multiplierssrc/allocator.rs:300 | fn | 3 | 1 | 2 | 0 | 0.8 | |
| forecastsrc/allocator.rs:741 | fn | 7 | 1 | 2 | 0 | 0.8 | |
| check_candidate_allocationsrc/allocator.rs:629 | fn | 21 | 5 | 4 | 2 | 0.8 | |
| live_departure_probabilitysrc/allocator.rs:262 | fn | 6 | 1 | 1 | 4 | 0.7 | |
| allocation_from_weightssrc/allocator.rs:511 | fn | 104 | 6 | 1 | 6 | 0.7 | |
| adaptive_multiplier_with_enabledsrc/allocator.rs:157 | fn | 13 | 3 | 2 | 2 | 0.7 | |
| adaptive_capital_per_oppsrc/allocator.rs:309 | fn | 7 | 1 | 2 | 4 | 0.7 | |
| sanitizesrc/allocator.rs:651 | fn | 3 | 2 | 2 | 0 | 0.7 | |
| record_realized_outcomesrc/allocator.rs:133 | fn | 12 | 5 | 2 | 1 | 0.7 | |
| scoredsrc/allocator.rs:671 | fn | 20 | 1 | 2 | 0 | 0.7 | |
| record_closesrc/allocator.rs:99 | fn | 17 | 5 | 1 | 1 | 0.6 | |
| allocation_respects_open_capital_across_multiple_firessrc/allocator.rs:693 | fn | 17 | 1 | 0 | 5 | 0.5 | |
| strongest_rate_can_receive_double_base_notionalsrc/allocator.rs:712 | fn | 11 | 1 | 0 | 4 | 0.5 | |
| adaptive_multiplier_curve_is_bounded_and_signedsrc/allocator.rs:725 | fn | 13 | 3 | 0 | 1 | 0.5 | |
| departure_probability_sums_mass_off_the_current_regimesrc/allocator.rs:754 | fn | 23 | 1 | 0 | 3 | 0.5 | |
| departure_probability_fails_open_on_missing_or_bad_datasrc/allocator.rs:779 | fn | 12 | 1 | 0 | 3 | 0.5 | |
| forecast_discount_is_bounded_and_composes_with_adaptivesrc/allocator.rs:793 | fn | 26 | 1 | 0 | 3 | 0.5 | |
| forecast_gate_respects_enable_flag_and_fails_open_livesrc/allocator.rs:821 | fn | 12 | 1 | 0 | 2 | 0.5 | |
| adaptive_gate_needs_min_samples_and_respects_enable_flagsrc/allocator.rs:835 | fn | 30 | 3 | 0 | 6 | 0.5 |
Source not readable from this process.