This commit is contained in:
janisslsm committed 2026-11-01 12:12:55 +02:00
1 parent 1781d25a15
commit 732c0ad767
33051 files changed
+2591613 -3019689

No files matched your search

@@ -0,0 +1,39 @@
// Metro module 4768 (f4769).
import { createApexExperiment } from "../../experiments/apex/index";
const apexExperiment = createApexExperiment({
name: "2026-04-kestrel",
kind: "user",
defaultConfig: {
enabled: false,
threshold: 0
},
variations: {
0: {
enabled: false,
threshold: 0
},
1: {
enabled: true,
threshold: 15
},
2: {
enabled: true,
threshold: 20
},
3: {
enabled: true,
threshold: 25
}
}
});
export function getKestrelConfig(a0) {
return apexExperiment.getConfig({
location: a0.location
});
}
export function getEffectiveKestrelLimit(a0, a1) {
return a0.enabled ? Math.max(1048576 * a0.threshold, a1) : a1;
}
export function getKestrelVariantName(a0) {
return a0.enabled ? a0.threshold !== 15 ? a0.threshold !== 20 ? a0.threshold === 25 ? "kestrel_c" : "unknown" : "kestrel_b" : "kestrel_a" : "control";
}