Download Jar. Uses 12014K of libraries. Click here for Pure Java version (88166L/528K).
java.lang.RuntimeException: Unknown token 2: <:
Warning: session_start(): open(/var/lib/php/sessions/sess_ntujt4n0779en7463b9g7ajfvt, 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
{"764":"domain - short for domainName","1000415":"\"set\" function (set field by reflection)","1000520":"isSnippetID","1000565":"doPost","1000567":"isInteger","1000568":"computerID - get (and optionally create) computer's ID","1000569":"userHome (TODO: is this ok for Android?)","1000570":"makeRandomID(int)","1000580":"urlencode","1000593":"function jsonTok","1000619":"get function","1000620":"jsonDecode function (super-simple JSON decoder in JavaX!)","1000628":"first function","1000630":"call function(s) for reflective calls to objects\/classes","1000641":"toLinesFullTrim - trim all lines, drop empty ones, return as list of lines","1000644":"shorten function","1000657":"indexOfIgnoreCase","1000658":"print function (=System.out.println + logging in memory)","1000659":"fail functions (improved)","1000661":"process function (hotwire and call for processing)","1000668":"callMain function","1000670":"htmlcoarsetok (function)","1000672":"indent function","1000675":"loadDataSnippetImpl etc. - todo: merge with loadDataSnippetToFile","1000676":"getGlobalCache","1000688":"javaTok function - Java + JavaX tokenizer, but parses just about anything","1000705":"drop function (drop first elements of array, also antiFilter)","1000708":"parseSnippetID","1000709":"formatSnippetID functions","1000711":"shortenSnippetID","1000717":"todo function","1000719":"dropLast function (drop last elements of array\/list\/string)","1000734":"find - find object in collection with matching fields \/ find in text","1000736":"sleep function","1000769":"javaTokPlusPeriod","1000784":"sort function","1000793":"htmldecode","1000798":"dropFirst function (drop first elements of array or chars of string - synonym of \"drop\")","1000801":"now function","1000810":"join function + array version","1000811":"parseInt - returns 0 on \"\" or null","1000812":"match2 function","1000814":"dropPunctuation","1000827":"mkdirsForFile","1000829":"isWindows","1000837":"loadBinaryPage current","1000843":"copyFile - returns dest","1000844":"copyStream","1000864":"isAndroid","1000869":"randomID","1000879":"loadPage + loadPageSilently","1000889":"getStackTrace","1000892":"dropAllTags","1000915":"Flag - boolean variable that stays true after being set true (thread-safe)","1000918":"smartJoin (for joining command line arguments)","1000921":"makeFrame (make JFrame and show it) - contains standard frame title popup menu","1000942":"urldecode","1000946":"getJavaX","1000961":"isInstanceX - extended over Class.isInstance() to handle primitive types","1000968":"loadLibrary","1000997":"loadSnippet and dependencies (with (hopefully) better caching, current)","1000998":"md5 - MD5 checksum as hex string","1000999":"asList - always returns a new ArrayList (no wrapping)","1001012":"getSnippetTitle","1001030":"handleEscapeKey - dispose frame on Escape","1001038":"last function (get last element of list or last character in string)","1001042":"saveTextFile (function)","1001046":"findEndOfBlock - synonym of tok_findEndOfBlock","1001047":"litlist (literal list)","1001049":"loadTextFile (function)","1001052":"programDir","1001055":"assertEquals - not using structure() for making the message anymore [saving code]","1001058":"deleteDirectory (dangerous :), but doesn't follow symlinks anymore)","1001065":"Dialog classes (DialogIO\/DialogHandler)","1001066":"startDialogServer etc.","1001067":"appendToFile","1001068":"synchroList","1001074":"readLine - now prints locally with prefix","1001084":"reverseString","1001101":"\"getOpt\" function (get field by reflection, return null if not there)","1001104":"match3 function","1001111":"codeTokensOnly","1001112":"getProgramID - now returns formatted ID","1001113":"saveBinaryFile","1001116":"sleepSeconds","1001122":"getPID","1001123":"listFields","1001124":"record function","1001127":"publicCommOn function","1001135":"isQuoted - now accurate by default","1001136":"nuObject - calls constructor with arguments","1001137":"findClass","1001138":"isJavaIdentifier","1001141":"firstToUpper","1001144":"latestInstalledJavaX","1001151":"getInnerException","1001152":"getMainClass","1001154":"getServerTranspiled","1001156":"leftScanModifiers","1001157":"allClasses [works on tokenization, also finds enum and interface and most JavaX constructs]","1001158":"clearAllTokens","1001162":"getClassDeclarationName (also works with interfaces and enums)","1001165":"findEndOfBracketPart","1001166":"toUtf8","1001180":"pcall - safe calling (like in Lua)","1001189":"readLineHidden - for password entry and such","1001190":"synchroTreeSet","1001199":"callOpt - now forwards to callOpt_withVarargs","1001204":"findMainClass","1001208":"makeTempDir","1001232":"find3 function","1001233":"parse3 - parse function e.g. for mmo2_match","1001234":"find2 function","1001235":"toStringArray","1001241":"concatLists","1001246":"parseLong","1001250":"format3","1001255":"findStaticMethod","1001256":"makeAndroid3 - includes classes Android3 and Responder","1001262":"isTag","1001263":"htmlencode","1001266":"getProgramDir","1001295":"oneOf function","1001296":"MultiMap - synchronized multi-map data structure (Key => L)","1001313":"swingLater","1001322":"sendToLocalBotOpt","1001326":"programID","1001329":"sendToLocalBot","1001333":"sameSnippetID","1001335":"zip2dir","1001336":"stream2file","1001411":"isURL","1001418":"length","1001428":"getFrame (get frame of Swing component)","1001432":"moveToTopRightCorner","1001433":"getScreenSize","1001454":"tempDir","1001456":"logQuoted","1001459":"listFiles (plus dirs, doesn't recurse)","1001462":"userDir - userHome as File","1001463":"isMac","1001499":"startsWithIgnoreCase","1001520":"eqic (short for equalsIgnoreCase)","1001530":"structureOrText","1001540":"stdcompare function (standard compare) - theoretical synonym of cmp","1001549":"getSecretProgramDir","1001552":"base64decode","1001557":"fromUtf8","1001561":"rtrim (now includes line breaks)","1001580":"nlTok","1001623":"showFrame (synonym of makeFrame)","1001625":"wrap - enclose a Swing component in JScrollPane if it begs for it; also call swing() method and convert arbitrary objects to jlabel","1001634":"cloneList - now safely clones a synchroList (synchronizing on it)","1001636":"scanForComponents","1001664":"max function","1001666":"toK - divides by 1024, rounds up","1001670":"getFileSize - return file size or 0 if not exists","1001674":"getMultiPorts","1001676":"addToMultiPort","1001677":"startMultiPort","1001686":"equalsIgnoreCase - synonym of eqic","1001695":"litmap - skips null values","1001696":"parseDouble","1001701":"makeResponder","1001713":"hasBot","1001715":"shallowClone","1001717":"newTypeWriterTextArea","1001721":"safeUnstructure (uses no user classes, just DynamicObject)","1001730":"currentThread","1001733":"setFrameTitle","1001735":"unquote - opposite of quote. also takes single quoted strings","1001741":"or function","1001742":"getInjectionID","1001788":"onEnter (on JTextField, JButton, JList, JComboBox, JTable, JTextArea) - also selects all on JTextField","1001792":"makeBot - make a bot (named responder under locally open VM port)","1001793":"matchStart function - match first tokens, return rest","1001795":"arraycopy - shorter + safer version of System.arraycopy (allows null array when n=0)","1001796":"min function","1001797":"dropFirstLine","1001800":"callStaticAnswerMethod","1001809":"findBlock","1001820":"run (hotwire and callMain)","1001822":"isChecked","1001842":"match - synonym of match3","1001850":"sortFilesByName","1001851":"isString","1001852":"serve404","1001855":"htmlQuote - html encode with quotation marks","1001860":"htmlEncode - synonym of htmlencode","1001865":"neq function","1001876":"jmatch function (match with javaTok, keeps punctuation) - pattern goes first (unlike jfind). See also jmatch2","1001892":"isIdentifier - synonym of isJavaIdentifier","1001899":"asSet - makes a guess whether to use TreeSet or HashSet. also drops null elements","1001906":"reversedList","1001913":"unnull","1001914":"emptyList - returning a new list now cause want mutable lists","1001918":"jsonDecodeMap","1001931":"cleanUp - try to clean up a program\/object\/class","1001933":"makePostData","1001939":"printStructure","1001949":"getProgramFile","1001950":"toLines (function)","1001952":"toM - convert bytes to (binary) megabytes","1001954":"getString - getOpt with cast to string","1001967":"assertFalse","1001974":"smartSet","1001975":"simpleSpaces","1001984":"dataToTable_makeRow","1001985":"instanceOf","1001988":"padList","1001992":"str function (=String.valueOf + extensions)","1001995":"lookupIgnoreCase","1002012":"assertNotNull","1002013":"toObjectArray - could make optimized version for non-concurrent collections","1002019":"allMethodNames","1002022":"isEmpty - check strings or collections for emptiness","1002026":"toLower","1002029":"listZipFile","1002031":"loadTextFileFromZipFile","1002032":"fromUTF8 - synonym of fromUtf8","1002033":"random - return random number between 0 and n-1, and other version","1002035":"toM_double - convert bytes to (binary) megabytes","1002040":"keyWithBiggestValue","1002041":"cmp function (standard compare)","1002042":"keys function","1002047":"bigint function","1002048":"dropSuffix - note the (maybe) curious argument order","1002050":"allToString - map(toString(), collection)","1002058":"emptyToNull function","1002066":"licensed - should program keep running? also ping()s so thread is cancelled\/paused etc. on request","1002071":"trim function","1002081":"isMD5 - checks a string for MD5 format","1002082":"isLowerHexString","1002086":"endsWithIgnoreCase","1002088":"listFilesWithSuffix","1002091":"nullIfEmpty - convert empty thing to null","1002097":"replaceCollection","1002103":"listZip - synonym of listZipFile","1002104":"loadTextFileFromZip","1002107":"lookupPossiblyIgnoreCase","1002108":"empty - extended synonym of isEmpty","1002110":"dropPrefix","1002112":"n function","1002113":"getPlural - don't degrade this, it's used!","1002116":"liftLast - pop & return last element(s) off a list","1002133":"jreplace","1002135":"indexOfSubList","1002136":"replaceSublist - modifies original list & also returns it","1002137":"snippetImageURL","1002141":"htmlQuery - \"?\" plus makePostData(...)","1002148":"containsIgnoreCase","1002162":"isLinux","1002175":"toDouble","1002176":"round - round double to long. also, synonym of roundBracket","1002178":"copyFields - now uses setOpt","1002179":"objectToMap","1002180":"hasMethodNamed","1002200":"getJavaModifiers","1002204":"dir2zip_recurse","1002206":"assertIsIdentifier","1002209":"getClassName","1002214":"htag - make HTML tag. uses trailing slash (e.g. ) when contents is empty","1002222":"repeat - now also for lists","1002224":"hotwireCached - hotwire with cached classes - calls main once per class","1002244":"touchFile","1002263":"saveTiming","1002266":"getLastTiming - get result of saveTiming() or time { ... }","1002270":"getMainBot - for Eleutheria sub-bots","1002271":"splitByJavaToken - unclear semantics with double separators, separator at beginning\/end","1002284":"splitAtJavaToken - synonym of splitByJavaToken","1002285":"assertIdentifier - synonym of assertIsIdentifier","1002287":"lithashset","1002288":"printStackTrace","1002300":"setAdd","1002305":"removeLast","1002309":"findContainerTag - HTML\/XML parsing, fixed tag name","1002310":"subList function - use instead of List.subList","1002315":"synchroHashSet","1002318":"collectField","1002333":"hquery - synonym of htmlQuery - \"?\" + makePostData","1002346":"secretProgramFile","1002348":"nempty - not empty","1002393":"logStructure","1002398":"fromLines (function) - appends \\n after last line too","1002403":"lastTiming - synonym of getLastTiming","1002416":"isDigit","1002423":"tag - make HTML tag - synonym of htag","1002429":"jfind(s, pattern) - returns C index","1002439":"ul - make HTML list (no htmlencode)","1002440":"h3 - make HTML h3 tag","1002441":"p - make HTML p tag","1002452":"sortedByField","1002454":"main - synonym of getMainClass","1002455":"plural - synonym of getPlural","1002494":"toList - synonym of asList","1002497":"smartIndexOf - returns l(s) if not found","1002500":"values function","1002527":"loadBinaryFromZip","1002545":"isLongConstant","1002559":"cloneMap - safely clone a map; null => HashMap. also: map over cloned list","1002571":"dropTags - synonym of dropAllTags","1002583":"javaxDataDir","1002621":"toInt","1002622":"safeUnstructureMap","1002634":"rpad - pad (append empty characters)","1002635":"rep - synonym of repeat","1002637":"substring - exception-free (safe) version of String.substring","1002639":"href - make HTML link","1002640":"hrefBlank - make HTML link with target=_blank","1002661":"joinLines - extends fromLines","1002692":"mc method - get main class of program","1002694":"identityHashCode","1002706":"renameFile - smarter version of File.renameTo()","1002776":"getClass - has 3 functions","1002780":"popLast - synonym of liftLast","1002782":"unquoteAll - works on normal lists and CNC","1002790":"repeatString","1002795":"findMethod","1002796":"findMethodNamed","1002835":"swic - synonym of startsWithIgnoreCase","1002836":"codeTokens - synonym of codeTokensOnly","1002838":"warn function (print warning unless warn_on is set to false)","1002851":"nlToBr - newline to
(HTML)","1002852":"pre - HTML","1002881":"addSlash (append slash if none at the end and not empty)","1002895":"setURLConnectionTimeouts","1002902":"getProgramName","1002911":"intToHex","1002912":"intToBytes [big-endian]","1002921":"hotwireDependent - hotwire and register for cleanup","1002935":"addPrefix - add prefix if not there","1002936":"assertEqualsVerbose","1002939":"rawLink - link to a page in current bot","1002947":"mapPlus - clone map and add items (default to HashMap when map was null)","1002956":"toLong - convert to long with default 0","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 \"\")","1003025":"ewic - synonym of endsWithIgnoreCase","1003026":"dropSuffixIgnoreCase ","1003046":"loadProgramTextFile","1003047":"collect - extended synonym of collectField","1003055":"trimAll - trim all strings in a list","1003080":"newSubList - return a sublist as new ArrayList","1003085":"tr - maketag","1003086":"tdTop - make tag with valign=top","1003087":"htextinput - make HTML text input field. htextinput(name, [value,] autofocus := true, ...)","1003088":"hsubmit - create HTML submit button","1003090":"hhidden - make HTML hidden field","1003098":"himg - HTML tag - takes image url, image snippet ID or BufferedImage","1003099":"takeLast function (take last n elements of a list or characters of a string)","1003100":"htitle - HTML
tag with htmlencode","1003102":"b - HTML bold tag","1003103":"ahref - make HTML link - synonym of href","1003110":"joinSets - uses similar set to first one passed, or HashSet by default","1003111":"loadJQuery - make code for HTML header to load JQuery","1003112":"arrayPlus - concat arrays","1003113":"concatArrays (allows null arrays)","1003114":"javascriptQuote - SHOULD work I think if Java quoting and JS quoting is the same","1003115":"hinputfield - synonym of htextinput","1003116":"hcheckbox - make HTML checkbox","1003121":"makeDependent - register class for for cleanup and copy local_log","1003123":"hotwire_copyOver - copy standard fields to sub program\/bot; always done in hotwiring class (not in core)","1003125":"div - make HTML ; also: divide BigIntegers, Complex and even doubles","1003126":"hjavascript - make