refactor: Move is_uuid_in_percentage and fix import

This commit is contained in:
Paul Gauthier (aider) 2024-12-17 12:55:43 -08:00
parent 64fa058bc7
commit 60f26cc067

View file

@ -10,6 +10,7 @@ from posthog import Posthog
from aider import __version__
from aider.dump import dump # noqa: F401
from aider.models import model_info_manager
def compute_hex_threshold(percent):
@ -49,8 +50,6 @@ def is_uuid_in_percentage(uuid_str, percent):
return uuid_str[:6] <= threshold
from aider.models import model_info_manager
mixpanel_project_token = "6da9a43058a5d1b9f3353153921fb04d"
posthog_project_api_key = "phc_99T7muzafUMMZX15H8XePbMSreEUzahHbtWjy3l5Qbv"
posthog_host = "https://us.i.posthog.com"