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

837
LINES

< > BotCompany Repo | #1029541 // Web Chat Bot as module Spike [OK, shows the bot]

JavaX source code (Dynamic Module) [tags: use-pretranspiled] - run with: Stefan's OS

Uses 911K of libraries. Click here for Pure Java version (17099L/100K).

java.lang.RuntimeException: Unknown token 2: <: 
Warning: session_start(): open(/var/lib/php/sessions/sess_boor2oev15e32kpdfkqf4kj3o2, 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
{"1000619":"get function","1000630":"call function(s) for reflective calls to objects\/classes","1000658":"print function (=System.out.println + logging in memory)","1000736":"sleep function","1000801":"now function","1000810":"join function + array version","1000811":"parseInt - returns 0 on \"\" or null","1000869":"randomID","1000997":"loadSnippet and dependencies (with (hopefully) better caching, current)","1001038":"last function (get last element of list or last character in string)","1001101":"\"getOpt\" function (get field by reflection, return null if not there)","1001246":"parseLong","1001263":"htmlencode","1001496":"class Matches","1001518":"l function (synonym of length), length of arrays, strings, lists, size of maps","1001520":"eqic (short for equalsIgnoreCase)","1001634":"cloneList - now safely clones a synchroList (synchronizing on it)","1001741":"or function","1001842":"match - synonym of match3","1001865":"neq function","1001913":"unnull","1002066":"licensed - should program keep running? also ping()s so thread is cancelled\/paused etc. on request","1002071":"trim function","1002108":"empty - extended synonym of isEmpty","1002348":"nempty - not empty","1002439":"ul - make HTML list (no htmlencode)","1002479":"getDialogID - for Eleutheria sub-bots","1002583":"javaxDataDir","1002662":"isTrue - synonym of booleanValue","1002692":"mc method - get main class of program","1002851":"nlToBr - newline to
(HTML)","1002939":"rawLink - link to a page in current bot","1002965":"hrefresh - make HTML \"refresh\" tag","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","1003088":"hsubmit - create HTML submit button","1003090":"hhidden - make HTML hidden field","1003100":"htitle - HTML tag with htmlencode","1003103":"ahref - make HTML link - synonym of href","1003111":"loadJQuery - make code for HTML header to load JQuery","1003116":"hcheckbox - make HTML checkbox","1003126":"hjavascript - make <script> tag for JavaScript (or link script)","1003128":"jsQuote - synonym of javascriptQuote","1003215":"hpostform - HTML post form","1003221":"hhtml - <html> tag","1003222":"hhead - <head> tag","1003223":"hbody - <body> tag","1003239":"map - call function on list (takes function name, Runnable or function object with \"get\" method) \/ now also works on maps","1003266":"hreplaceTitle - replace <title> in HTML text","1003329":"cic - short for containsIgnoreCase","1003340":"startsWith - now also for lists","1003382":"ll - synonym of litlist (literal list)","1003393":"snippetImgLink - synonym of snippetImageURL","1003492":"proxy - make an implementation of an interface forwarding calls to any object","1003517":"creator - return class or object that hotwired current program","1003577":"eqicOneOf - equalsIgnoreCase, multiple checks","1003638":"litorderedmap - create LinkedHashMap with items","1004456":"splitAt - split string at literal substring","1005248":"conceptWhere - synonym of findConceptWhere","1005249":"cdelete - partial synonym of deleteConcepts","1005292":"uniq - synonym of uniqueConcept","1005595":"quote - Java-compatible string quoting with \"\". now also escapes \\t","1005598":"setOpt, setOpt_findField, optimized for objects (but not for classes yet, LIVE)","1005746":"dbBot - make bot exposing program's concepts, fail if bot exists (enforce single instance policy)","1006056":"withDBLock - execute code while holding DB lock","1006109":"dropSpaces","1006239":"sysNow - access System nano-timer in milliseconds (more precise than now(), but not related to date)","1006562":"fieldType - get type of an object's\/class's field","1007362":"fileExists - also true for a directory","1007380":"lock - acquire Lock with message; also lock() is a synonym of fairLock()","1007439":"lines - short for fromLines \/ toLines","1007768":"faster eq function (if you never compare a BigInt to an Int or Long), LIVE","1007775":"replace - replace an element in a list (modify original); also synonym for String.replace with null propagation","1007796":"listMinusSet - list minus some elements","1008164":"cloneSubList - synonym of newSubList - return a sublist as new ArrayList","1008279":"registeredThreads - list threads registered for module","1008424":"hscript - synonym of hjavascript - make <script> tag for JavaScript","1008788":"lengthLevel2 - recursive length of collection of collections","1008790":"ul_htmlEncode - ul + htmlEncode - params are for ul, then null, then for li","1008791":"getThreadNames","1008877":"eqGet - combines eq() and get()","1008891":"standardTimeZone","1008946":"sfu - synonym of structureForUser - structure() without too many back refs","1009230":"dbIndexing - start DB, indexing certain concept fields - idempotent","1009257":"cset - set fields in Concept object (with notification of DB)","1009321":"dbLock - mainconcepts.lock","1009832":"change - indicate change in mainConcepts","1011051":"hfullcenter - HTML center on page. params are added to <table> tag","1011096":"litciset - make case-insensitive set","1013035":"hspan - synonym of span - HTML <span> tag","1013038":"joinWithBR - join HTML code with <br> (and newline)","1013120":"asCISet - synonym of toCaseInsensitiveSet","1013472":"countPred - synonym of nfilter - count objects in collection that match a predicate","1013737":"webChatBotLogsHTML2 - with page navigation; also doesn't show conversations with just one entry","1014005":"subBot_serveFile","1014725":"add - add Component to Container, add element to collection, set bit in BitSet","1016979":"syncAdd - add & synchronize on collection","1017216":"doAfter - synonym of doLater","1017923":"vmBus_send","1018009":"htmlEncode2 - synonym of htmlencode_noQuotes","1018288":"tempSetTL - synonym of tempSetThreadLocal","1019275":"DynPrintLogAndEnabled","1020408":"subBot_serveHTML","1020436":"objectWhere - synonym of findWhere","1020890":"list (for concepts)","1021427":"any - check if predicate matches on any element of collection","1021565":"lastThat - find last element in list that matches a predicate","1022003":"hbuttonOnClick_returnFalse - make <button> tag with onClick, add \"; return false;\"","1023032":"IF0 - function with no arguments (interface version)","1023557":"hhead_title","1024542":"printVars_str - print a bunch of vars (don't use struct)","1025178":"html - synonym of fixHTML","1025983":"tempRegisterThread","1025985":"hpassword - synonym of hpasswordfield","1025986":"h3_htmlEncode","1025987":"jsBackLink","1026045":"subBot_serveJavaScript","1026048":"unicode_undoArrow","1026049":"unicode_crossProduct","1026051":"timeInTimeZoneWithOptionalDate_24","1026108":"imageSnippetURLOrEmptyGIF","1026188":"joinNemptiesWithSpace","1026235":"jsBool","1026238":"ukTimeZone_string","1026259":"html_wavingHand - using a downloaded SVG (not dependent on font). scales with text","1026263":"subBot_noCacheHeaders - add HTTP headers for no caching","1026265":"psI_str - parseSnippetID as string","1027772":"Msg + MsgOut","1028302":"loadSecretTextFileOrCreateWithRandomID","1028351":"ipToCountry2020_safe","1028414":"fullRawLink - full link to a page in current bot","1028532":"regexpICMatchesAsCNC","1028534":"regexpNegativeLookbehind","1028661":"nConversations","1028669":"replaceSquareBracketVars","1031744":"DynamicObject (imported from core - see #1004543)","1034766":"allValues - list of all values of a map's (collection) values","1035555":"WebRequest"} 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) </pre></div> <h4>Author comment</h4> <div style="padding-left: 1em; padding-top: 0.5em; padding-bottom: 0.5em; background-color: #EEEEEE; "><pre>Began life as a copy of <a href="https://code.botcompany.de/1028922" title="#1028922 - Exodontia Chat Bot" >#1028922</a></pre></div> <p><a href="/getraw.php?id=1029541">download</a>  <a href="show-snippet.php?id=1029541&lineNumbers=1">show line numbers</a>  <a href="/dexcompile.php?id=1029541&debug=1">debug dex</a>  <a target="_blank" href="old-transpilations.php?id=1029541">old transpilations</a>   </p><p>Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv</p> <p>No comments. <a href="#" onClick="commentDiv.style.display = 'inline'; return false">add comment</a></p> <div id="commentDiv" style="display: none"> <form action="show-snippet.php" method="POST"> Your comment:<br> <textarea rows="4" name="comment" style="width: 600px"></textarea><br> Please log in to comment OR answer this question: What's the first name of the guy running this site (6 letters)? <br><input type="text" name="check" value=""><br> <input type="hidden" name="id" value="1029541"> <input type="submit" value="Add"> </form> </div> <table border="1"> <tr> <td valign="top">Snippet ID:</td> <td valign="top"><b>#1029541</b></td> </tr> <tr> <td valign="top">Snippet name:</td> <td valign="top">Web Chat Bot as module Spike [OK, shows the bot]</td> </tr> <tr> <td valign="top">Eternal ID of this version:</td> <td valign="top">#1029541/18</td> </tr> <tr> <td valign="top">Text MD5:</td> <td valign="top" align="right">7b9888c36aea3f85bdfa6763a3f2f26e</td> </tr> <tr> <td valign="top">Transpilation MD5:</td> <td valign="top" align="right">3d8788ff514e766e5aaa69adc3fd75c9</td> </tr> <tr> <td valign="top">Author:</td> <td valign="bottom">stefan</td> </tr> <tr> <td valign="top">Category:</td> <td valign="bottom">javax / web chat bots</td> </tr> <tr> <td valign="top">Type:</td> <td valign="top">JavaX source code (Dynamic Module)</td> </tr> <tr> <td valign="top">Public (visible to everyone):</td> <td valign="top" align=right>Yes</td> </tr> <tr> <td valign="top">Archived (hidden from active list):</td> <td valign="top" align=right>No</td> </tr> <tr> <td valign="top">Created/modified:</td> <td valign="top" align="right">2020-08-24 10:11:38</td> </tr> <tr> <td valign="top">Source code size:</td> <td valign="top" align="right">25237 bytes / 837 lines</td> </tr> <tr> <td valign="top">Pitched / IR pitched:</td> <td valign="top" align="right">No / No</td> </tr> <tr> <td valign="top">Views / Downloads:</td> <td valign="top" align="right">596 / 1473</td> </tr> <tr> <td valign="top">Version history:</td> <td valign="top" align="right"><a href="versions.php?id=1029541">17 change(s)</a></td> </tr> <a name="refs"> <tr> <td valign="top">Referenced in:</td> <td valign="top" align="right"><a href="show-snippet.php?id=1029541&showReferences=1#refs">[show references]</a></td></td> </tr> </table> </body></html>