keepfold 0.6.4__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- keepfold/__init__.py +1 -0
- keepfold/_proc.py +102 -0
- keepfold/access.py +154 -0
- keepfold/agent_eval.py +162 -0
- keepfold/agent_text.py +56 -0
- keepfold/anki.py +285 -0
- keepfold/app/__init__.py +5 -0
- keepfold/app/actions.py +690 -0
- keepfold/app/desktop.py +677 -0
- keepfold/app/exports.py +254 -0
- keepfold/app/hello.py +79 -0
- keepfold/app/launch.py +114 -0
- keepfold/app/news.py +60 -0
- keepfold/app/server.py +3142 -0
- keepfold/app/status.py +811 -0
- keepfold/app/targets.py +1374 -0
- keepfold/app/winpath.py +54 -0
- keepfold/app/wizard.py +506 -0
- keepfold/ask.py +475 -0
- keepfold/askfile.py +322 -0
- keepfold/assets/LICENSE-d3.txt +13 -0
- keepfold/assets/agent_eval.json +235 -0
- keepfold/assets/app/app.css +611 -0
- keepfold/assets/app/app.js +2712 -0
- keepfold/assets/app/capture.html +16 -0
- keepfold/assets/app/capture.js +91 -0
- keepfold/assets/app/index.html +149 -0
- keepfold/assets/brain3d.js +3730 -0
- keepfold/assets/chat_eval.json +454 -0
- keepfold/assets/d3.v7.min.js +2 -0
- keepfold/assets/dashboard.css +774 -0
- keepfold/assets/dashboard.html.tmpl +170 -0
- keepfold/assets/dashboard.js +4262 -0
- keepfold/assets/help/GUIDE.md +544 -0
- keepfold/assets/help/help.md +83 -0
- keepfold/assets/keepfold.ico +0 -0
- keepfold/assets/whats_new.json +162 -0
- keepfold/backup.py +100 -0
- keepfold/brainmap.py +1382 -0
- keepfold/browse/__init__.py +10 -0
- keepfold/browse/build.py +1320 -0
- keepfold/browse/forget.py +510 -0
- keepfold/browse/legacy.py +95 -0
- keepfold/browse/lists.py +285 -0
- keepfold/browse/privacy.py +391 -0
- keepfold/browse/selftest.py +166 -0
- keepfold/browse/sites.py +1068 -0
- keepfold/browse/sources.py +329 -0
- keepfold/browse/store.py +991 -0
- keepfold/browse/takeout.py +312 -0
- keepfold/browse/titles.py +127 -0
- keepfold/browse/vectors.py +326 -0
- keepfold/browse_serve.py +332 -0
- keepfold/catalog.py +564 -0
- keepfold/chat.py +1464 -0
- keepfold/chat_archive.py +165 -0
- keepfold/chat_eval.py +583 -0
- keepfold/chat_facts.py +721 -0
- keepfold/chat_import.py +1045 -0
- keepfold/chat_pages.py +291 -0
- keepfold/chat_study.py +371 -0
- keepfold/chats.py +669 -0
- keepfold/claims.py +650 -0
- keepfold/cli.py +3254 -0
- keepfold/clients.py +96 -0
- keepfold/cloudllm.py +135 -0
- keepfold/contract.py +43 -0
- keepfold/corrections.py +134 -0
- keepfold/dashboard.py +959 -0
- keepfold/dates.py +202 -0
- keepfold/delta.py +146 -0
- keepfold/digest.py +72 -0
- keepfold/doctor.py +565 -0
- keepfold/duplicates.py +145 -0
- keepfold/egress.py +68 -0
- keepfold/eval_history.py +109 -0
- keepfold/events.py +554 -0
- keepfold/export_context.py +109 -0
- keepfold/fact_harvest.py +578 -0
- keepfold/forget.py +720 -0
- keepfold/harvest.py +334 -0
- keepfold/home.py +714 -0
- keepfold/importers.py +627 -0
- keepfold/index.py +733 -0
- keepfold/know.py +40 -0
- keepfold/learning_eval.py +261 -0
- keepfold/levels.py +595 -0
- keepfold/life_sources.py +747 -0
- keepfold/lint.py +241 -0
- keepfold/localllm.py +699 -0
- keepfold/loops.py +316 -0
- keepfold/mcp_server.py +4464 -0
- keepfold/migrate.py +552 -0
- keepfold/more_sources.py +709 -0
- keepfold/packs.py +148 -0
- keepfold/people.py +99 -0
- keepfold/planner.py +819 -0
- keepfold/prime.py +630 -0
- keepfold/prime_hook.py +265 -0
- keepfold/profiles.py +118 -0
- keepfold/quarantine.py +123 -0
- keepfold/recall_log.py +93 -0
- keepfold/redteam.py +393 -0
- keepfold/reflect.py +164 -0
- keepfold/relink.py +477 -0
- keepfold/render.py +406 -0
- keepfold/review.py +1181 -0
- keepfold/rollups.py +412 -0
- keepfold/safety_net.py +571 -0
- keepfold/sample.py +103 -0
- keepfold/sample_vault/areas/programming.algorithms.md +11 -0
- keepfold/sample_vault/areas/programming.basics.md +11 -0
- keepfold/sample_vault/concepts/big-o-notation.md +13 -0
- keepfold/sample_vault/concepts/functions.md +13 -0
- keepfold/sample_vault/concepts/loops.md +14 -0
- keepfold/sample_vault/concepts/recursion.md +13 -0
- keepfold/sample_vault/domains/programming.md +10 -0
- keepfold/sample_vault/journal/2026-01-12.md +9 -0
- keepfold/sample_vault/me/goals.md +17 -0
- keepfold/sample_vault/me/profile.md +19 -0
- keepfold/sample_vault/mistakes/programming.off-by-one-loop.md +16 -0
- keepfold/sample_vault/notes/recursion-needs-a-base-case.md +18 -0
- keepfold/sample_vault/problems/fizzbuzz.md +12 -0
- keepfold/sample_vault/projects/text-adventure.md +15 -0
- keepfold/sample_vault/resources/python-tutorial.md +16 -0
- keepfold/semantic.py +1254 -0
- keepfold/session.py +764 -0
- keepfold/share.py +69 -0
- keepfold/sources.py +612 -0
- keepfold/sync_copies.py +83 -0
- keepfold/tags.py +230 -0
- keepfold/taint.py +301 -0
- keepfold/tonight.py +195 -0
- keepfold/topics.py +1072 -0
- keepfold/update.py +300 -0
- keepfold/vault.py +942 -0
- keepfold/vecstore.py +218 -0
- keepfold/voice.py +260 -0
- keepfold/voice_memos.py +280 -0
- keepfold/watch.py +303 -0
- keepfold/where.py +119 -0
- keepfold/xray.py +516 -0
- keepfold/zotero.py +303 -0
- keepfold-0.6.4.dist-info/METADATA +644 -0
- keepfold-0.6.4.dist-info/RECORD +148 -0
- keepfold-0.6.4.dist-info/WHEEL +4 -0
- keepfold-0.6.4.dist-info/entry_points.txt +6 -0
- keepfold-0.6.4.dist-info/licenses/LICENSE +21 -0
keepfold/browse/lists.py
ADDED
|
@@ -0,0 +1,285 @@
|
|
|
1
|
+
"""Built-in lists for the browse privacy filter (docs/design/browse-brain.md §2). Modest on
|
|
2
|
+
purpose: a domain here matches itself and its subdomains; the user's own lists live under
|
|
3
|
+
`browse:` in ~/.keepfold/config.yaml. Nothing is downloaded."""
|
|
4
|
+
|
|
5
|
+
from __future__ import annotations
|
|
6
|
+
|
|
7
|
+
# §2.1 hard drop: sign-in and account hosts; AUTH_WORDS match any word of a decoded path
|
|
8
|
+
# segment or host label ("/wp-login.php", "/%6Cogin", "/customer_login")
|
|
9
|
+
AUTH_HOSTS = frozenset({
|
|
10
|
+
"accounts.google.com", "myaccount.google.com", "appleid.apple.com",
|
|
11
|
+
"account.microsoft.com", "account.live.com", "login.live.com",
|
|
12
|
+
"login.microsoftonline.com", "id.atlassian.com", "auth0.com", "okta.com",
|
|
13
|
+
})
|
|
14
|
+
AUTH_WORDS = frozenset({
|
|
15
|
+
"login", "logon", "logout", "signin", "signon", "signup", "oauth", "oauth2", "auth",
|
|
16
|
+
"authorize", "authenticate", "authentication", "authn", "sso", "saml", "password",
|
|
17
|
+
"passwords", "passwd", "2fa", "mfa", "otp", "verify", "verification", "recover",
|
|
18
|
+
"sessions",
|
|
19
|
+
})
|
|
20
|
+
|
|
21
|
+
# §2.1 payment, checkout and bank pages: PAY_WORDS match a part's first word (or first two
|
|
22
|
+
# joined), BANK_WORDS any word; a host label containing BANK_LABEL drops too, and so does a title
|
|
23
|
+
# holding one of BANK_TITLES
|
|
24
|
+
PAY_HOSTS = frozenset({
|
|
25
|
+
"paypal.com", "checkout.stripe.com", "billing.stripe.com", "razorpay.com", "payu.in",
|
|
26
|
+
"payu.com", "ccavenue.com", "billdesk.com", "phonepe.com", "paytm.com", "pay.google.com",
|
|
27
|
+
"payments.google.com", "pay.amazon.com", "pay.amazon.in", "wise.com", "revolut.com",
|
|
28
|
+
})
|
|
29
|
+
PAY_WORDS = frozenset({"checkout", "payment", "payments", "pay", "paynow", "billing",
|
|
30
|
+
"purchase"})
|
|
31
|
+
BANK_LABEL = "bank"
|
|
32
|
+
BANK_WORDS = frozenset({"bank", "banking", "netbanking", "ebanking", "ibanking"})
|
|
33
|
+
BANK_TITLES = ("net banking", "netbanking", "internet banking", "online banking",
|
|
34
|
+
"mobile banking", "account summary", "account statement", "bank statement",
|
|
35
|
+
"card statement", "e-statement")
|
|
36
|
+
BANK_HOSTS = frozenset({
|
|
37
|
+
"onlinesbi.sbi", "sbi.co.in", "hdfcbank.com", "icicibank.com", "axisbank.com",
|
|
38
|
+
"kotak.com", "pnbindia.in", "netpnb.com", "bankofbaroda.in", "bobibanking.com",
|
|
39
|
+
"canarabank.com", "unionbankofindia.co.in", "idfcfirstbank.com", "yesbank.in",
|
|
40
|
+
"indusind.com", "federalbank.co.in", "aubank.in", "rblbank.com", "chase.com",
|
|
41
|
+
"bankofamerica.com", "wellsfargo.com", "citi.com", "citibank.com", "hsbc.com",
|
|
42
|
+
"hsbc.co.in", "barclays.co.uk", "capitalone.com", "americanexpress.com",
|
|
43
|
+
})
|
|
44
|
+
|
|
45
|
+
# §2.1 webmail: kept as the site name only, never the subject
|
|
46
|
+
WEBMAIL_HOSTS = frozenset({
|
|
47
|
+
"mail.google.com", "outlook.live.com", "outlook.office.com", "outlook.office365.com",
|
|
48
|
+
"mail.yahoo.com", "mail.proton.me", "mail.zoho.com", "mail.zoho.in", "app.fastmail.com",
|
|
49
|
+
"mail.aol.com", "mail.yandex.com",
|
|
50
|
+
})
|
|
51
|
+
|
|
52
|
+
# §2.1 query keys that carry secrets (a key containing one of SECRET_PARTS counts too)
|
|
53
|
+
SECRET_KEYS = frozenset({"token", "code", "key", "session", "sig", "auth", "password",
|
|
54
|
+
"secret", "apikey", "access_token"})
|
|
55
|
+
SECRET_PARTS = ("token", "secret", "password", "passwd", "session", "apikey", "api_key",
|
|
56
|
+
"signature")
|
|
57
|
+
|
|
58
|
+
# §2.4 sensitive categories: domains (sure) and words (title, search, channel or URL words,
|
|
59
|
+
# casefolded, any script). A word in STRONG or a host label starting with an ADULT_BRANDS name
|
|
60
|
+
# is sure; any other word hit is a "maybe", which is private just the same. Since the second
|
|
61
|
+
# review a hit only keeps an item's time off the public page (no title is ever public), so the
|
|
62
|
+
# lists lean wide; "std::" (C++) is still not a health word.
|
|
63
|
+
CATEGORY_HOSTS = {
|
|
64
|
+
"adult": frozenset({
|
|
65
|
+
"pornhub.com", "xvideos.com", "xnxx.com", "xhamster.com", "redtube.com",
|
|
66
|
+
"youporn.com", "onlyfans.com", "fansly.com", "chaturbate.com", "stripchat.com",
|
|
67
|
+
"livejasmin.com", "spankbang.com", "eporner.com", "rule34.xxx", "e-hentai.org",
|
|
68
|
+
"nhentai.net", "brazzers.com", "motherless.com", "tnaflix.com", "beeg.com",
|
|
69
|
+
"porn.com", "thumbzilla.com",
|
|
70
|
+
}),
|
|
71
|
+
"health": frozenset({
|
|
72
|
+
"webmd.com", "mayoclinic.org", "healthline.com", "practo.com", "1mg.com",
|
|
73
|
+
"pharmeasy.in", "netmeds.com", "medlineplus.gov", "nhs.uk", "drugs.com",
|
|
74
|
+
"apollo247.com", "clevelandclinic.org", "psychologytoday.com", "betterhelp.com",
|
|
75
|
+
"talkspace.com", "7cups.com", "patient.info",
|
|
76
|
+
}),
|
|
77
|
+
"money": frozenset({
|
|
78
|
+
"zerodha.com", "groww.in", "upstox.com", "angelone.in", "icicidirect.com",
|
|
79
|
+
"hdfcsec.com", "5paisa.com", "robinhood.com", "etrade.com", "schwab.com",
|
|
80
|
+
"fidelity.com", "vanguard.com", "coinbase.com", "binance.com", "wazirx.com",
|
|
81
|
+
"coindcx.com", "kraken.com", "cred.club", "cibil.com", "creditkarma.com",
|
|
82
|
+
}),
|
|
83
|
+
"betting": frozenset({
|
|
84
|
+
"bet365.com", "betway.com", "dream11.com", "my11circle.com", "mpl.live",
|
|
85
|
+
"rummycircle.com", "jungleerummy.com", "pokerstars.com", "stake.com", "1xbet.com",
|
|
86
|
+
"parimatch.com", "fanduel.com", "draftkings.com", "betfair.com", "williamhill.com",
|
|
87
|
+
}),
|
|
88
|
+
"dating": frozenset({
|
|
89
|
+
"tinder.com", "bumble.com", "hinge.co", "okcupid.com", "match.com", "aisle.co",
|
|
90
|
+
"trulymadly.com", "happn.com", "grindr.com", "badoo.com", "pof.com",
|
|
91
|
+
"eharmony.com", "shaadi.com", "bharatmatrimony.com", "jeevansathi.com",
|
|
92
|
+
"coffeemeetsbagel.com", "feeld.co",
|
|
93
|
+
}),
|
|
94
|
+
"sexuality": frozenset(),
|
|
95
|
+
"drugs": frozenset({"leafly.com", "erowid.org"}),
|
|
96
|
+
"selfharm": frozenset(),
|
|
97
|
+
}
|
|
98
|
+
ADULT_TLDS = ("xxx", "porn", "sex", "adult", "sexy")
|
|
99
|
+
# Words match a normalised word exactly (privacy._norm: NFKC, casefold, no zero-width or soft
|
|
100
|
+
# hyphen, Cyrillic/Greek look-alikes and leetspeak mapped, "p o r n" joined); STEMS match a
|
|
101
|
+
# word's start ("masturbat" -> masturbation); PHRASES match whole words in a row.
|
|
102
|
+
CATEGORY_WORDS = {
|
|
103
|
+
"adult": frozenset({"porn", "porno", "pornhub", "xxx", "nsfw", "hentai", "onlyfans",
|
|
104
|
+
"blowjob", "milf", "camgirl", "camgirls", "rule34", "sex", "sexy",
|
|
105
|
+
"nude", "nudes", "erotic", "erotica", "fetish", "lingerie", "naked",
|
|
106
|
+
"vibrator", "dildo", "boobs", "bikini", "escort", "escorts",
|
|
107
|
+
"stepmom", "bhabhi", "nofap", "pron", "chudai", "mms", "सेक्स", "हस्तमैथुन"}),
|
|
108
|
+
"health": frozenset({"symptoms", "symptom", "diagnosis", "hiv", "abortion",
|
|
109
|
+
"prescription", "dosage", "psychiatrist", "therapist", "therapy",
|
|
110
|
+
"antidepressant", "antidepressants", "herpes", "depression",
|
|
111
|
+
"depressed", "medication", "medications", "std", "stds", "sti", "stis",
|
|
112
|
+
"chlamydia", "gonorrhea", "gonorrhoea", "syphilis", "hpv", "condom",
|
|
113
|
+
"condoms", "anxiety", "anxious", "adhd", "ocd", "bipolar",
|
|
114
|
+
"schizophrenia", "ptsd", "cancer", "tumor", "tumour", "biopsy",
|
|
115
|
+
"rehab", "overdose", "erectile", "dysmorphia", "bulimia", "anorexia",
|
|
116
|
+
"dyslexia", "adderall", "accutane", "propranolol", "ozempic",
|
|
117
|
+
"steroid", "steroids", "testosterone", "gynecomastia", "insomnia",
|
|
118
|
+
"concussion", "disability",
|
|
119
|
+
# C1 (v7 review): wider, but never a plain study word
|
|
120
|
+
"pcos", "pcod", "endometriosis", "miscarriage", "infertility", "ivf",
|
|
121
|
+
"vaginal", "vagina", "penis", "impotence", "hemorrhoids", "diabetes",
|
|
122
|
+
"diabetic", "epilepsy", "autism", "autistic", "dementia", "alzheimers",
|
|
123
|
+
"chemotherapy", "chemo", "eczema", "psoriasis", "uti", "psychosis",
|
|
124
|
+
"psychotic", "addiction", "addicted", "sobriety", "dysphoria",
|
|
125
|
+
"thyroid", "hypothyroidism", "migraine", "acne", "hairfall"}),
|
|
126
|
+
"money": frozenset({"demat", "netbanking", "cibil", "bankruptcy", "bankrupt", "payday",
|
|
127
|
+
"foreclosure", "overdraft", "repossession", "emis"}),
|
|
128
|
+
"betting": frozenset({"betting", "casino", "rummy", "jackpot", "sportsbook", "patti",
|
|
129
|
+
"gambling", "satta", "matka", "1xbet"}),
|
|
130
|
+
"dating": frozenset({"dating", "matrimony", "matrimonial", "hookup", "tinder", "grindr",
|
|
131
|
+
"sugardaddy"}),
|
|
132
|
+
"sexuality": frozenset({"gay", "lesbian", "bisexual", "queer", "transgender", "lgbt",
|
|
133
|
+
"lgbtq", "lgbtqia", "sexuality", "homosexual", "asexual", "pansexual",
|
|
134
|
+
"nonbinary", "intersex", "genderqueer", "genderfluid", "aromantic",
|
|
135
|
+
"demisexual", "polyamory", "polyamorous"}),
|
|
136
|
+
"drugs": frozenset({"weed", "cocaine", "lsd", "mdma", "marijuana", "cannabis", "ganja",
|
|
137
|
+
"charas", "heroin", "meth", "ketamine", "shrooms", "psilocybin",
|
|
138
|
+
"opium", "vape", "vaping", "stoned", "xanax", "valium", "codeine",
|
|
139
|
+
"tramadol", "oxycodone", "fentanyl", "percocet", "benzos", "dmt",
|
|
140
|
+
"ayahuasca", "kratom", "edibles", "thc"}),
|
|
141
|
+
"selfharm": frozenset({"selfharm", "self-harm", "suicide", "suicidal", "unalive",
|
|
142
|
+
"self-injury"}),
|
|
143
|
+
}
|
|
144
|
+
STEMS = {
|
|
145
|
+
"adult": ("porn", "sex", "masturbat", "nofap", "onlyfans", "xvideo", "xhamster"),
|
|
146
|
+
"health": ("pregnan", "contracepti", "gonorrh", "antidepress", "psychiatr", "schizo",
|
|
147
|
+
"gynec", "gynaec", "obstetric", "oncolog", "infertil", "endometrio", "miscarr",
|
|
148
|
+
"chemotherap", "dementi", "alzheimer"),
|
|
149
|
+
"betting": ("gambl",),
|
|
150
|
+
"selfharm": ("suicid",),
|
|
151
|
+
}
|
|
152
|
+
PHRASES = {
|
|
153
|
+
"adult": ("only fans",),
|
|
154
|
+
"money": ("credit score", "loan default", "salary slip", "loan emi", "emi calculator",
|
|
155
|
+
"personal loan", "home loan", "education loan", "car loan", "gold loan",
|
|
156
|
+
"loan app", "instant loan", "payday loan", "debt collector", "debt relief",
|
|
157
|
+
"debt consolidation", "in debt", "credit card debt", "credit card bill",
|
|
158
|
+
"loan recovery", "cheque bounce"),
|
|
159
|
+
"betting": ("satta matka", "teen patti"),
|
|
160
|
+
"dating": ("sugar daddy", "dating app"),
|
|
161
|
+
"sexuality": ("gender identity", "am i trans", "gender dysphoria"),
|
|
162
|
+
"drugs": ("acid trip", "magic mushrooms", "drug test", "pass a drug test"),
|
|
163
|
+
"selfharm": ("self harm", "kill myself", "killing myself", "end my life", "want to die",
|
|
164
|
+
"how to die", "cut myself", "cutting myself", "hurt myself",
|
|
165
|
+
# C1: the review's "ways to stop existing" and its kind
|
|
166
|
+
"stop existing", "don t want to live", "dont want to live",
|
|
167
|
+
"do not want to live", "no reason to live", "better off dead", "end it all",
|
|
168
|
+
"painless death", "wish i was dead", "wish i were dead", "wanna die",
|
|
169
|
+
"slit my wrists", "hang myself", "self injury", "not want to be alive",
|
|
170
|
+
"dont want to be alive", "don t want to be alive"),
|
|
171
|
+
"health": ("morning after pill", "panic attack", "panic attacks", "mental illness",
|
|
172
|
+
"sexual health", "period late", "periods late", "missed period",
|
|
173
|
+
"eating disorder", "binge eating", "birth control", "yeast infection",
|
|
174
|
+
"period pain", "mental health", "hair loss", "weight loss pills",
|
|
175
|
+
"parkinson s disease", "parkinsons disease"),
|
|
176
|
+
}
|
|
177
|
+
# "sexuality" before the adult stem "sex": an exact word anywhere wins over a stem
|
|
178
|
+
STEM_ORDER = ("selfharm", "health", "betting", "adult")
|
|
179
|
+
STRONG = frozenset({"porn", "porno", "pornhub", "xxx", "nsfw", "hentai", "onlyfans",
|
|
180
|
+
"blowjob", "milf", "camgirl", "camgirls", "rule34", "xvideos",
|
|
181
|
+
"xhamster", "xnxx", "redtube", "youporn", "spankbang", "brazzers",
|
|
182
|
+
"chaturbate", "stripchat", "livejasmin", "eporner", "fansly", "nhentai"})
|
|
183
|
+
ADULT_BRANDS = ("porn", "xvideos", "xhamster", "xnxx", "redtube", "youporn", "onlyfans",
|
|
184
|
+
"fansly", "chaturbate", "stripchat", "livejasmin", "spankbang", "eporner",
|
|
185
|
+
"brazzers", "nhentai", "tnaflix", "thumbzilla")
|
|
186
|
+
CATEGORIES = tuple(CATEGORY_HOSTS) # adult first: it wins a tie
|
|
187
|
+
# the categories of v0.1.0, when configs stored `hidden_from_claude`: any category added since
|
|
188
|
+
# is local for such a config (C9: the cloud allowlist `cloud_categories` replaced it)
|
|
189
|
+
CATEGORIES_V1 = ("adult", "health", "money", "betting", "dating", "sexuality", "drugs",
|
|
190
|
+
"selfharm")
|
|
191
|
+
STRONG_STEMS = ("porn", "onlyfans", "xvideo", "xhamster") # a word starting so is a sure adult hit
|
|
192
|
+
# Normalisation for matching only: look-alike letters and common leetspeak
|
|
193
|
+
CONFUSABLES = str.maketrans({
|
|
194
|
+
**dict(zip("аеорсухіјѕԁɡһӏ", "aeopcyxijsdghl", strict=True)), # Cyrillic and Latin look-alikes
|
|
195
|
+
**dict(zip("αεορυχικντ", "aeopyxikvt", strict=True)), # Greek
|
|
196
|
+
**dict.fromkeys("\u200b\u200c\u200d\u2060\ufeff\u00ad"), # zero-width, soft hyphen: dropped
|
|
197
|
+
})
|
|
198
|
+
LEET = str.maketrans("013457@$", "oieastas")
|
|
199
|
+
|
|
200
|
+
# §3a site pages: a non-sensitive site taxonomy. A sensitive category (`privacy.category` on the
|
|
201
|
+
# host) always wins over it; the local LLM may only name one of these or a sensitive category.
|
|
202
|
+
SITE_CATEGORIES = ("programming", "ai", "learning", "news", "video", "social", "shopping",
|
|
203
|
+
"work", "reference", "gaming", "music", "travel", "food", "finance-news",
|
|
204
|
+
"other")
|
|
205
|
+
_SITES = {
|
|
206
|
+
"programming": "github.com gitlab.com bitbucket.org stackoverflow.com stackexchange.com "
|
|
207
|
+
"python.org pypi.org npmjs.com developer.mozilla.org docs.rs crates.io "
|
|
208
|
+
"rust-lang.org go.dev golang.org nodejs.org reactjs.org react.dev vuejs.org "
|
|
209
|
+
"w3schools.com geeksforgeeks.org leetcode.com hackerrank.com codeforces.com "
|
|
210
|
+
"codechef.com kaggle.com docker.com kubernetes.io readthedocs.io "
|
|
211
|
+
"readthedocs.org learn.microsoft.com code.visualstudio.com jetbrains.com "
|
|
212
|
+
"vercel.com netlify.com heroku.com render.com dev.to hashnode.com "
|
|
213
|
+
"freecodecamp.org replit.com codepen.io jsfiddle.net sqlite.org "
|
|
214
|
+
"postgresql.org mysql.com mongodb.com cppreference.com cplusplus.com "
|
|
215
|
+
"oracle.com java.com typescriptlang.org tailwindcss.com getbootstrap.com "
|
|
216
|
+
"astral.sh pytorch.org tensorflow.org numpy.org pandas.pydata.org",
|
|
217
|
+
"ai": "openai.com chatgpt.com chat.openai.com claude.ai anthropic.com gemini.google.com "
|
|
218
|
+
"perplexity.ai huggingface.co mistral.ai deepseek.com ollama.com lmstudio.ai "
|
|
219
|
+
"poe.com character.ai midjourney.com stability.ai copilot.microsoft.com "
|
|
220
|
+
"aistudio.google.com notebooklm.google.com grok.com x.ai cohere.com together.ai "
|
|
221
|
+
"groq.com openrouter.ai",
|
|
222
|
+
"learning": "coursera.org udemy.com edx.org khanacademy.org brilliant.org nptel.ac.in "
|
|
223
|
+
"swayam.gov.in byjus.com unacademy.com duolingo.com mit.edu ocw.mit.edu "
|
|
224
|
+
"stanford.edu harvard.edu arxiv.org scholar.google.com researchgate.net "
|
|
225
|
+
"sciencedirect.com springer.com ieee.org acm.org jstor.org quizlet.com "
|
|
226
|
+
"chegg.com physicswallah.com udacity.com skillshare.com codecademy.com "
|
|
227
|
+
"datacamp.com classroom.google.com",
|
|
228
|
+
"news": "bbc.com bbc.co.uk cnn.com nytimes.com theguardian.com reuters.com apnews.com "
|
|
229
|
+
"thehindu.com indianexpress.com hindustantimes.com timesofindia.indiatimes.com "
|
|
230
|
+
"ndtv.com news.google.com aljazeera.com washingtonpost.com theverge.com "
|
|
231
|
+
"techcrunch.com wired.com arstechnica.com engadget.com news.ycombinator.com "
|
|
232
|
+
"livemint.com theprint.in scroll.in thewire.in firstpost.com indiatoday.in "
|
|
233
|
+
"news18.com economist.com ft.com bloomberg.com forbes.com",
|
|
234
|
+
"video": "youtube.com youtu.be netflix.com primevideo.com hotstar.com jiocinema.com "
|
|
235
|
+
"vimeo.com twitch.tv dailymotion.com sonyliv.com zee5.com crunchyroll.com "
|
|
236
|
+
"disneyplus.com hulu.com max.com mxplayer.in miruro.tv hianime.to aniwatch.to "
|
|
237
|
+
"9anime.to gogoanime.to animepahe.ru animekai.to",
|
|
238
|
+
"social": "reddit.com twitter.com x.com facebook.com instagram.com linkedin.com "
|
|
239
|
+
"threads.net bsky.app mastodon.social discord.com whatsapp.com web.whatsapp.com "
|
|
240
|
+
"telegram.org web.telegram.org snapchat.com pinterest.com tumblr.com quora.com "
|
|
241
|
+
"tiktok.com",
|
|
242
|
+
"shopping": "amazon.com amazon.in flipkart.com myntra.com ajio.com meesho.com "
|
|
243
|
+
"nykaa.com ebay.com etsy.com aliexpress.com walmart.com bestbuy.com "
|
|
244
|
+
"croma.com reliancedigital.in snapdeal.com tatacliq.com ikea.com "
|
|
245
|
+
"decathlon.in decathlon.com shopify.com",
|
|
246
|
+
"work": "docs.google.com drive.google.com sheets.google.com slides.google.com "
|
|
247
|
+
"calendar.google.com meet.google.com notion.so notion.site slack.com zoom.us "
|
|
248
|
+
"teams.microsoft.com office.com microsoft365.com onedrive.live.com "
|
|
249
|
+
"sharepoint.com dropbox.com trello.com asana.com atlassian.net atlassian.com "
|
|
250
|
+
"jira.com figma.com canva.com miro.com airtable.com clickup.com monday.com "
|
|
251
|
+
"linear.app overleaf.com",
|
|
252
|
+
"reference": "wikipedia.org wikimedia.org wiktionary.org wikihow.com britannica.com "
|
|
253
|
+
"merriam-webster.com dictionary.com thesaurus.com archive.org "
|
|
254
|
+
"maps.google.com translate.google.com wolframalpha.com desmos.com "
|
|
255
|
+
"imdb.com goodreads.com fandom.com timeanddate.com weather.com "
|
|
256
|
+
"accuweather.com google.com bing.com duckduckgo.com search.brave.com",
|
|
257
|
+
"gaming": "store.steampowered.com steampowered.com steamcommunity.com epicgames.com "
|
|
258
|
+
"chess.com lichess.org roblox.com minecraft.net ign.com gamespot.com "
|
|
259
|
+
"nexusmods.com itch.io xbox.com playstation.com nintendo.com riotgames.com "
|
|
260
|
+
"op.gg",
|
|
261
|
+
"music": "spotify.com open.spotify.com music.youtube.com soundcloud.com "
|
|
262
|
+
"music.apple.com gaana.com jiosaavn.com wynk.in bandcamp.com genius.com "
|
|
263
|
+
"last.fm",
|
|
264
|
+
"travel": "booking.com airbnb.com makemytrip.com goibibo.com irctc.co.in "
|
|
265
|
+
"tripadvisor.com expedia.com skyscanner.com cleartrip.com ixigo.com "
|
|
266
|
+
"redbus.in uber.com olacabs.com agoda.com",
|
|
267
|
+
"food": "zomato.com swiggy.com allrecipes.com bbcgoodfood.com seriouseats.com "
|
|
268
|
+
"food.com tasty.co hebbarskitchen.com archanaskitchen.com blinkit.com "
|
|
269
|
+
"zeptonow.com bigbasket.com dominos.co.in",
|
|
270
|
+
"finance-news": "moneycontrol.com economictimes.indiatimes.com investing.com "
|
|
271
|
+
"tradingview.com finance.yahoo.com marketwatch.com cnbc.com "
|
|
272
|
+
"screener.in tickertape.in valueresearchonline.com investopedia.com",
|
|
273
|
+
}
|
|
274
|
+
SITE_HOSTS = {d: c for c, ds in _SITES.items() for d in ds.split()}
|
|
275
|
+
# hosts where each subdomain is someone's own site ("ana.github.io"); medium.com/@user and
|
|
276
|
+
# substack-style paths are handled in build/sites.site_of
|
|
277
|
+
MULTI_TENANT = ("github.io", "gitlab.io", "blogspot.com", "substack.com", "medium.com",
|
|
278
|
+
"vercel.app", "netlify.app", "pages.dev", "notion.site", "wordpress.com",
|
|
279
|
+
"tumblr.com", "herokuapp.com", "web.app", "firebaseapp.com", "neocities.org",
|
|
280
|
+
"readthedocs.io", "hashnode.dev", "streamlit.app", "glitch.me", "carrd.co",
|
|
281
|
+
"wixsite.com", "weebly.com", "bearblog.dev", "framer.website", "onrender.com",
|
|
282
|
+
"fly.dev", "replit.app", "itch.io")
|
|
283
|
+
# second-level labels under a country code ("bbc.co.uk" is a site, "co.uk" is not)
|
|
284
|
+
SECOND_LEVEL = frozenset({"co", "com", "ac", "gov", "org", "net", "edu", "nic", "res", "gen",
|
|
285
|
+
"ind", "firm", "mil", "ne", "or", "go"})
|