static MultiMap<S> dm_discord_emojiJudgementsFromChat2() { new MultiMap<S> mm; new Matches m; for (GazelleLine line : dm_discord_allLinesWithReactions()) if (jmatch("is * a positive or negative emoji?", tok_joinExtendedUnicodes(javaTok(line.text)), m)) { S emoji = $1; print("emoji: " + emoji + " (" + dm_keywordsForEmoji(emoji) + ")"); for (GazelleReaction r : line.reactions) { S judgement = dm_posNegStringForEmoji(r.emoji); if (empty(judgement)) continue with warn(" Unknown reaction: " + r.emoji + " (" + dm_keywordsForEmoji(r.emoji) + ")"); mm.put(emoji, judgement); } } ret mm; }
Began life as a copy of #1021705
download show line numbers debug dex old transpilations
Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, whxojlpjdney
No comments. add comment
| Snippet ID: | #1021716 | 
| Snippet name: | dm_discord_emojiJudgementsFromChat2 (from reactions, dev.) | 
| Eternal ID of this version: | #1021716/6 | 
| Text MD5: | 27a487e67109ad5268e3fa5e881288eb | 
| Author: | stefan | 
| Category: | javax / discord | 
| Type: | JavaX fragment (include) | 
| Public (visible to everyone): | Yes | 
| Archived (hidden from active list): | No | 
| Created/modified: | 2019-02-24 19:04:55 | 
| Source code size: | 667 bytes / 15 lines | 
| Pitched / IR pitched: | No / No | 
| Views / Downloads: | 505 / 542 | 
| Version history: | 5 change(s) | 
| Referenced in: | [show references] |