Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

325
LINES

< > BotCompany Repo | #1018144 // Telegram Facts Bot [Include v2 backup]

JavaX fragment (include)

java.lang.RuntimeException: Unknown token 2: <: 
Warning: session_start(): open(/var/lib/php/sessions/sess_m7u03c9lbob32vlihsgljsjdot, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51

Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
{"1000628":"first function","1000658":"print function (=System.out.println + logging in memory)","1000801":"now function","1000999":"asList - always returns a new ArrayList (no wrapping)","1001068":"synchroList","1001496":"class Matches","1001518":"l function (synonym of length), length of arrays, strings, lists, size of maps","1001520":"eqic (short for equalsIgnoreCase)","1001842":"match - synonym of match3","1001891":"format - synonym of format3 (formatter for sentences)","1001954":"getString - getOpt with cast to string","1002071":"trim function","1002108":"empty - extended synonym of isEmpty","1002110":"dropPrefix","1002348":"nempty - not empty","1002403":"lastTiming - synonym of getLastTiming","1002621":"toInt","1002990":"contains - like Collection.contains, but allows a null collection and arrays. also for strings","1003008":"or2 function - return string or default value if string is empty (=null or \"\")","1003055":"trimAll - trim all strings in a list","1003239":"map - call function on list (takes function name, Runnable or function object with \"get\" method) \/ now also works on maps","1003340":"startsWith - now also for lists","1003363":"struct - short for structure","1003652":"eqOneOf - equals, multiple checks","1003960":"done - print elapsed time","1004219":"Pair - value pair; sorted by a, then b","1004686":"addAll - generalizes Collection.addAll + synonym of addComponents","1005546":"reversed - short for reversedList \/ reversedString","1006453":"aGlobalID - make a new global ID [16 random characters from a-z]","1007439":"lines - short for fromLines \/ toLines","1007768":"faster eq function (if you never compare a BigInt to an Int or Long), LIVE","1007862":"javaEval - synonym of evalJava","1008942":"tlft - synonym of toLinesFullTrim","1008946":"sfu - synonym of structureForUser - structure() without too many back refs","1009156":"joinWithComma - join with \", \" separator","1010692":"strOrNull","1010784":"random_gac36k - random question from GAC-36K","1011049":"swic_trim - trim matches","1012066":"concatLists_conservative - use any of the lists verbatim if the others are empty","1012594":"swicOneOf_trim","1012632":"n2 - n2(3, \"item\") => \"3 items\". Also n2(1234) = \"1,234\"","1013726":"unixLineBreaks - \\r\\n to \\n","1013844":"localDateWithMilliseconds","1014191":"mechMap - now a synonym of mechMapCI","1014349":"addToMechList - synonym of botAppendToMechList_uniqCI - only add lines that don't exist (ignoring case)","1014417":"mL - synonym of mechList_opt","1014442":"expandDollarRefsToMatches - allows $1 and $q1\/$quoted1","1014493":"appendToMechList_noUniq - synonym of botAppendToMechList - append lines even if they exist","1014578":"dropLeadingSquareBracketStuff - note: \"[\" doesn't have to be at index 0","1017137":"dm_refreshTranspiler","1017184":"PlanInMotion","1017357":"ai_setLanguage","1017408":"ai_parseTree_simplifiedTexts","1017469":"ai_parseToTreeWithGuessing - guesses categories for unknown words","1017542":"ai_renderCulledParseTree","1017547":"NL Logic Classes [Exp etc., Include]","1017572":"telegram_amIAuthorized","1017573":"telegram_msg - get msg we are replying to","1017575":"javaEvalOrInterpret - try to interpret code if possible; use callAndMake","1017579":"nlLookup - synonym of lookupByNLMatch","1017587":"NLLogicChecker_v2","1017649":"nlLogic_unrollAnd","1017651":"nlLogic_text - get text of Exp or IfThen","1017659":"mL_parsedNLRulesWithoutIDs","1017660":"shuffledIterator - iterate over list in random order","1017664":"nlLogic_extractFirstCondition","1017665":"nlLogic_isFunc","1017710":"mechMode","1017728":"NLLogicChecker_v3 - now same as v2","1017730":"pcallOrExceptionText","1017734":"ai_unparsedTalkRules","1017762":"mech_changed - check result of remote call","1017796":"startsWith_trim - trim matches","1017806":"applyNLLogicFacts_v4 - only calls onRuleFired","1017824":"nlLogic_addGlobalID","1017826":"leadingSquareBracketOptions","1017827":"leadingSquareBracketOptions_id","1017829":"ai_applyFactToFactRules","1017835":"nlLogic_battleItOut","1017836":"ai_storeActualFact - return true on change","1017837":"containsNL - uses argument as pattern; checks contains() first","1017849":"nlLogic_collectCheckingLog","1017867":"ai_tg_collectRuleFeedback","1017868":"nlLogic_highestScore","1017899":"ai_activeRulesAndFacts - preprocesses them too","1017906":"ai_isQuestion_2","1017917":"telegram_amIFullyAuthorized","1017924":"telegram_authorizedToStoreRule","1017970":"runPlanWithCheck","1018048":"ai_ruleAccessesInput","1018059":"ai_matchingWrapping - make NLLogicChecker_v2.Matching from VarMatches","1018061":"listPlus_inFront - list plus more elements, added in front","1018063":"ai_factsFromNewFacts - uses all known rules + facts plus new facts given","1018065":"evalWithTimeout_text - uses strOrNull, pcalls, returns exception text","1018067":"dropActuallyLeadingSquareBracketStuff","1018069":"tempSet - synonym of tempSetField","1018072":"RuleFailInfo","1018073":"nlLogic_ruleFails","1018081":"nlLogic_unresolvedFactsToQuestions","1018083":"nlLogic_sortedRuleFails - rules with most succeeded conditions first","1018084":"nlLogicCheckerWithRulesAndFacts","1018085":"ai_staticVars","1018086":"getMCThreadLocals","1024021":"with - synonym of withComputing"} at main.fail(m1008705.java:1589) at main$jsonDecode_Y.fail_base(m1008705.java:14008) at main$jsonDecode_Y.fail(m1008705.java:14006) at main$jsonDecode_Y.parseExpr(m1008705.java:14058) at main$jsonDecode_Y.parse(m1008705.java:14012) at main.jsonDecode(m1008705.java:13990) at main.jsonDecodeMap(m1008705.java:12844) at main.getSnippetTitles(m1008705.java:10820) at main$JavaXHyperlinker.codeToHTML(m1008705.java:6209) at main.html2(m1008705.java:85) at main.html(m1008705.java:67) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104) at java.base/java.lang.reflect.Method.invoke(Method.java:577) at main.invokeMethod(m1008705.java:1601) at main.callOpt_withVarargs(m1008705.java:4387) at main.callOpt(m1008705.java:3326) at main.callHtmlMethod2(m1008705.java:11404) at main$MyHTTPD$1.get(m1008705.java:7337) at main$MyHTTPD$1.get(m1008705.java:1) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104) at java.base/java.lang.reflect.Method.invoke(Method.java:577) at main.invokeMethod(m1008705.java:1601) at main.safeCallF(m1008705.java:642) at main.callF(m1008705.java:611) at main$MyHTTPD.serve(m1008705.java:7373) at main$NanoHTTPD.serve_2(m1008705.java:9572) at main$NanoHTTPD.serve(m1008705.java:9553) at main$NanoHTTPD$HTTPSession.execute(m1008705.java:8453) at main$NanoHTTPD$ClientHandler.run(m1008705.java:7829) at java.base/java.lang.Thread.run(Thread.java:833)

Author comment

Began life as a copy of #1018038

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

-
Snippet ID: #1018144
Snippet name: Telegram Facts Bot [Include v2 backup]
Eternal ID of this version: #1018144/1
Text MD5: a77f60794f9406b1c6cc2e3f6a10dbb4
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-09-02 22:19:26
Source code size: 11425 bytes / 325 lines
Pitched / IR pitched: No / No
Views / Downloads: 678 / 668
Referenced in: