Spaces:
Sleeping
Sleeping
| # -*- coding: utf-8 -*- | |
| # Generated from ุฃูู ูุฑ source | |
| import sys, os | |
| sys.path.insert(0, os.path.dirname(os.path.abspath(__file__))) | |
| from amr_runtime import * | |
| ุงูููุชูุจู('ุจูุณูู ู ุงูููููู ุงูุฑููุญูู ููฐูู ุงูุฑููุญููู ู') | |
| ุงูููุชูุจู('โโโ ู ูุณูุญ ุงููููููุญ โ CONTAMINATION SCAN โโโ') | |
| ุงูููุชูุจู('') | |
| ู ูุญูุธููุฑูุงุช = ุตููู('semitic', 'loanword', 'cognate', 'prosthetic vowel', 'borrowed from greek', 'borrowed from latin', 'borrowed from persian', 'borrowed from french', 'borrowed from german', 'borrowed from sanskrit', 'proto-indo-european', 'proto-slavic', 'proto-germanic', 'proto-turkic', 'proto-uralic', 'greek origin', 'latin origin', 'greek source', 'latin source', 'greek root', 'latin root', 'derived from greek', 'derived from latin', 'derived from french', 'derived from old french', 'derived from sanskrit', 'native slavic', 'native european', 'european origin', 'just slavic', 'just european', 'pre-greek substrate', 'indo-european') | |
| ุฅูุถูุงูููููุฉ = ุตููู('proto-indo', 'borrowed from', 'derived from', 'cognate with', 'loan from', 'adoption from', 'loaned from') | |
| for ู in ุฅูุถูุงูููููุฉ: | |
| if (not ุงูุจูุญูุซู(ู ูุญูุธููุฑูุงุช, ู )): | |
| ู ูุญูุธููุฑูุงุช = (ู ูุญูุธููุฑูุงุช + [ู ]) | |
| ุงูููุชูุจู(ุตููู('', ['Scanning for ', ููููู ูุฉ(ุทููู(ู ูุญูุธููุฑูุงุช)), ' banned terms...'])) | |
| ุงูููุชูุจู('') | |
| ุฌูุฏูุงููู = ููููุญ("SELECT name FROM sqlite_master WHERE type='table' ORDER BY name") | |
| ุงูููุชูุจู(ุตููู('', ['Tables to scan: ', ููููู ูุฉ(ุทููู(ุฌูุฏูุงููู))])) | |
| ุงูููุชูุจู('') | |
| ุฅูุฌูู ูุงููู = 0 | |
| ุฌูุฏูุงููู_ู ููููููุซูุฉ = 0 | |
| ุชูููุงุตููู = ุตููู() | |
| for ุฌูุฏูููู in ุฌูุฏูุงููู: | |
| ุงูุณูู _ุฌูุฏูููู = ุฎูุฐู(ุฌูุฏูููู, 'name') | |
| ุฃูุนูู ูุฏูุฉ = ููููุญ(ุตููู('', ['PRAGMA table_info(', ุงูุณูู _ุฌูุฏูููู, ')'])) | |
| ุฃูุนูู ูุฏูุฉ_ููุตูููููุฉ = ุตููู() | |
| for ุน in ุฃูุนูู ูุฏูุฉ: | |
| ููููุน = ุฎูุฐู(ุน, 'type', '') | |
| if ุงูุจูุญูุซู(ููููู ูุฉ(ููููุน), 'TEXT'): | |
| ุฃูุนูู ูุฏูุฉ_ููุตูููููุฉ = (ุฃูุนูู ูุฏูุฉ_ููุตูููููุฉ + [ุฎูุฐู(ุน, 'name')]) | |
| if (ุทููู(ุฃูุนูู ูุฏูุฉ_ููุตูููููุฉ) == 0): | |
| pass | |
| else: | |
| ุฃูุฌูุฒูุงุก = ุตููู() | |
| for ุนูู ููุฏ in ุฃูุนูู ูุฏูุฉ_ููุตูููููุฉ: | |
| ุฃูุฌูุฒูุงุก = (ุฃูุฌูุฒูุงุก + [ุตููู('', ['COALESCE([', ุนูู ููุฏ, "],'')"])]) | |
| ููุตู_ู ูุฏูู ูุฌ = ุตููู(" || ' ' || ", ุฃูุฌูุฒูุงุก) | |
| ุฅูุตูุงุจูุงุช_ุฌูุฏูููู = 0 | |
| for ู ูุตูุทูููุญ in ู ูุญูุธููุฑูุงุช: | |
| ุงูุณูุชูุนูููุงู = ุตููู('', ['SELECT COUNT(*) as cnt FROM [', ุงูุณูู _ุฌูุฏูููู, '] WHERE LOWER(', ููุตู_ู ูุฏูู ูุฌ, ") LIKE '%", ู ูุตูุทูููุญ, "%'"]) | |
| try: | |
| ููุชููุฌูุฉ = ููููุญ(ุงูุณูุชูุนูููุงู ) | |
| ู ูุฌูู ููุน = ุฎูุฐู(ุฎูุฐู(ููุชููุฌูุฉ, 0), 'cnt', 0) | |
| if (ู ูุฌูู ููุน > 0): | |
| ุฅูุตูุงุจูุงุช_ุฌูุฏูููู = (ุฅูุตูุงุจูุงุช_ุฌูุฏูููู + ู ูุฌูู ููุน) | |
| ุฅูุฌูู ูุงููู = (ุฅูุฌูู ูุงููู + ู ูุฌูู ููุน) | |
| ุชูููุงุตููู = (ุชูููุงุตููู + [ุตููู(' | ', [ุงูุณูู _ุฌูุฏูููู, ู ูุตูุทูููุญ, ููููู ูุฉ(ู ูุฌูู ููุน)])]) | |
| except Exception as ุฎ: | |
| pass | |
| if (ุฅูุตูุงุจูุงุช_ุฌูุฏูููู > 0): | |
| ุฌูุฏูุงููู_ู ููููููุซูุฉ = (ุฌูุฏูุงููู_ู ููููููุซูุฉ + 1) | |
| ุงูููุชูุจู(ุตููู('', ['โ ', ุงูุณูู _ุฌูุฏูููู, ': ', ููููู ูุฉ(ุฅูุตูุงุจูุงุช_ุฌูุฏูููู), ' hits'])) | |
| ุงูููุชูุจู('') | |
| ุงูููุชูุจู('โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ') | |
| ุงูููุชูุจู('CONTAMINATION SCAN REPORT') | |
| ุงูููุชูุจู('โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ') | |
| ุงูููุชูุจู(ุตููู('', ['Tables scanned: ', ููููู ูุฉ(ุทููู(ุฌูุฏูุงููู))])) | |
| ุงูููุชูุจู(ุตููู('', ['Tables contaminated: ', ููููู ูุฉ(ุฌูุฏูุงููู_ู ููููููุซูุฉ)])) | |
| ุงูููุชูุจู(ุตููู('', ['Total hits: ', ููููู ูุฉ(ุฅูุฌูู ูุงููู)])) | |
| ุงูููุชูุจู('') | |
| if (ุทููู(ุชูููุงุตููู) > 0): | |
| ุงูููุชูุจู('DETAIL (table | term | count):') | |
| for ุณูุทูุฑ in ุชูููุงุตููู: | |
| ุงูููุชูุจู(ุตููู('', [' ', ุณูุทูุฑ])) | |
| else: | |
| ุงูููุชูุจู('ุงููุญูู ูุฏู ููููููู โ NO CONTAMINATION FOUND') |