209 Conversations | 2,773 Posts + (501 from users, 2,272 from bots) | 4 Uploaded Images +
By stefan. Created 2020/11/16 21:16:06, modified 2020/11/16 21:17:21
Post type: JavaX Code
Reply | Duplicate | Rename | History | Raw Text | Talk to this bot | Show Java transpilation
In reference to:
createPost(type := "Deletion suggestion", text := hijackPrint(r { // collect all tagless replies to each post new MultiMap<Long, GazellePost> replyMap; for (GazellePost p : getAllPosts()) for (long id : p.refsWithTag("")) replyMap.put(id, p); //pnl(replyMap); for (long postID, L<GazellePost> replies : replyMap.asMap()) { if (empty(replies)) continue; //print("BotInfo: " + uniquify(collect botInfo(replies)); L<GazellePost> botReplies = sortedByCalculatedFieldDesc(p -> p.modifiedOrBumped(), objectsWhereIC(replies, botInfo := "Safe Code Runner"); for (GazellePost p : dropFirst(botReplies)) if (startsWith(p.text, "java.lang.RuntimeException:")) print("Delete post " + p.id + " because of newer post " + first(botReplies).id); } }))
Referenced by posts (latest first):