#!/usr/bin/env python3
import importlib.util, sys, os
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
spec = importlib.util.spec_from_file_location("hc27", "studiosoft_healthcare_cron_run_hc27.py")
m = importlib.util.module_from_spec(spec)
spec.loader.exec_module(m)
import re
for name in ["THREADS", "LINKEDIN", "FB"]:
    cap = getattr(m, name)
    has_nl = "\n" in cap
    literal_bs_n = "\\n" in cap
    mentions = re.findall(r"@\w+", cap)
    print("--- %s len=%d real_newline=%s literal_backslash_n=%s mentions=%s" %
          (name, len(cap), has_nl, literal_bs_n, mentions))
print()
print("THREADS repr tail:", repr(m.THREADS[-220:]))
