1 | sclass WoodyBot {
|
2 | SS files = new TreeMap; |
3 | new TreeMap<S, WoodyRule> rules; |
4 | SS globals = new TreeMap; |
5 | SS regexpMacros = new TreeMap; |
6 | new HashMap<S, Pattern> compiledPatterns; |
7 | S jumpawayRule = "Agent#Agent.01_WEB-CONTENT.Vorschlaege"; |
8 | new TreeSet<S> disabledFolders; |
9 | |
10 | Collection<S> fileNames() {
|
11 | ret keys(files); |
12 | } |
13 | |
14 | S getFile(S fileName) {
|
15 | ret lookupPossiblyIgnoringCase(files, fileName); |
16 | } |
17 | |
18 | WoodyRule getRule(S ruleName) {
|
19 | ruleName = replacePrefix("PHRASEKNOWLEDGE#", "Agent#COMMON.", ruleName);
|
20 | ret ruleName == null ? null : lookupPossiblyIgnoringCase(rules, ruleName); |
21 | } |
22 | |
23 | void cleanMeUp() { cleanUp(files); }
|
24 | } |
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1008867 |
| Snippet name: | class WoodyBot |
| Eternal ID of this version: | #1008867/18 |
| Text MD5: | 935121a73bd621dfa104d5e5752a9f88 |
| Author: | stefan |
| Category: | javax / a.i. |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-07-14 20:01:46 |
| Source code size: | 686 bytes / 24 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 719 / 1724 |
| Version history: | 17 change(s) |
| Referenced in: | [show references] |