#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Uji bank balasan DAS tanpa menyentuh API."""
import importlib.util, sys
spec = importlib.util.spec_from_file_location("ar", "/home/mantapman/.hermes/profiles/atun/workspace/threads_growth_autoreply.py")
ar = importlib.util.module_from_spec(spec)
sys.modules["ar"] = ar
spec.loader.exec_module(ar)

contoh = [
    "rem saya bunyi berdecit kalau diinjak, bahaya nggak?",
    "ganti oli tiap berapa km ya sebaiknya?",
    "setir mobil saya getar di 100 km/jam kenapa?",
    "aki mobil saya cepat soak padahal baru setahun",
    "AC kurang dingin tapi baru diisi freon",
    "matic saya terasa jeda saat pindah gigi",
    "lampu check engine nyala tapi mobil masih jalan normal",
    "biaya servis rutin berapa ya?",
    "bengkel yang bagus itu yang seperti apa?",
    "makasih infonya, bermanfaat",
    "dulu mobil saya pernah overheat di tengah jalan, ternyata air radiator habis karena selang bocor. mahal juga biayanya",
    "keren",
    "D",
]
for c in contoh:
    r = ar.balas(c, "das")
    tag = "DIBIARKAN" if not r else f"{len(r)} char"
    print(f"\n[{tag}] komentar: {c}")
    if r:
        print("   ->", r.replace("\n\n", " || "))
