docstring_tokens
sequence
code_tokens
sequence
[ "increments", "a", "mutable", "counter", "no", "-", "op", "if", "not", "a", "positive", "integer" ]
[ "private", "void", "increment", "mutable", "counter", "(", "final", "string", "name", ",", "final", "long", "count", ")", "{", "if", "(", "count", ">", "0", ")", "{", "mutable", "counter", "long", "counter", "=", "lookup", "counter", "(", "name", ")", ";", "if", "(", "counter", "!", "=", "null", ")", "{", "counter", "incr", "(", "count", ")", ";", "}", "}", "}" ]
[ "returns", "the", "java", "class", "that", "implements", "the", "open", "a", "p", "i", "schema", "for", "the", "specified", "discriminator", "value" ]
[ "private", "static", "class", "get", "class", "by", "discriminator", "(", "map", "class", "by", "discriminator", "value", ",", "string", "discriminator", "value", ")", "{", "class", "clazz", "=", "(", "class", ")", "class", "by", "discriminator", "value", "get", "(", "discriminator", "value", ")", ";", "if", "(", "null", "=", "=", "clazz", ")", "{", "throw", "new", "illegal", "argument", "exception", "(", "\"", "cannot", "determine", "model", "class", "of", "name", ":", "<", "\"", "+", "discriminator", "value", "+", "\"", ">", "\"", ")", ";", "}", "return", "clazz", ";", "}" ]
[ "clears", "the", "outbound", "rules", "associated", "with", "the", "provided", "delegate", "address" ]
[ "public", "void", "clear", "outbound", "rules", "(", "transport", "address", "transport", "address", ")", "{", "transport", "(", ")", "clear", "outbound", "behaviors", "(", "transport", "address", ")", ";", "connection", "manager", "(", ")", "clear", "behavior", "(", "transport", "address", ")", ";", "}" ]
[ "returns", "the", "canonical", "file", "for", "this", "file" ]
[ "public", "resource", "file", "get", "canonical", "file", "(", ")", "{", "resource", "new", "resource", "=", "resource", "get", "canonical", "resource", "(", ")", ";", "if", "(", "resource", "=", "=", "new", "resource", ")", "{", "return", "this", ";", "}", "return", "new", "resource", "file", "(", "new", "resource", ")", ";", "}" ]
[ "ensure", "that", "when", "all", "configured", "services", "are", "throwing", "standby", "exception", "that", "we", "fail", "over", "back", "and", "forth", "between", "them", "until", "one", "is", "no", "longer", "throwing", "standby", "exception" ]
[ "public", "void", "test", "failover", "between", "multiple", "standbys", "(", ")", "throws", "unreliable", "exception", ",", "standby", "exception", ",", "i", "o", "exception", "{", "final", "long", "millis", "to", "sleep", "=", "10000", ";", "final", "unreliable", "implementation", "impl", "1", "=", "new", "unreliable", "implementation", "(", "\"", "impl", "1", "\"", ",", "type", "of", "exception", "to", "fail", "with", "standby", "exception", ")", ";", "flip", "flop", "proxy", "provider", "<", "unreliable", "interface", ">", "proxy", "provider", "=", "new", "flip", "flop", "proxy", "provider", "<", "unreliable", "interface", ">", "(", "unreliable", "interface", "class", ",", "impl", "1", ",", "new", "unreliable", "implementation", "(", "\"", "impl", "2", "\"", ",", "type", "of", "exception", "to", "fail", "with", "standby", "exception", ")", ")", ";", "final", "unreliable", "interface", "unreliable", "=", "(", "unreliable", "interface", ")", "retry", "proxy", "create", "(", "unreliable", "interface", "class", ",", "proxy", "provider", ",", "retry", "policies", "failover", "on", "network", "exception", "(", "retry", "policies", "try", "once", "then", "fail", ",", "10", ",", "1000", ",", "10000", ")", ")", ";", "new", "thread", "(", ")", "{", "@", "override", "public", "void", "run", "(", ")", "{", "thread", "util", "sleep", "at", "least", "ignore", "interrupts", "(", "millis", "to", "sleep", ")", ";", "impl", "1", "set", "identifier", "(", "\"", "renamed", "-", "impl", "1", "\"", ")", ";", "}", "}", "start", "(", ")", ";", "string", "result", "=", "unreliable", "fails", "if", "identifier", "doesnt", "match", "(", "\"", "renamed", "-", "impl", "1", "\"", ")", ";", "assert", "equals", "(", "\"", "renamed", "-", "impl", "1", "\"", ",", "result", ")", ";", "}" ]
[ "check", "if", "a", "permission", "has", "been", "permanently", "denied", "(", "user", "clicked", "\"", "never", "ask", "again", "\"", ")" ]
[ "public", "static", "boolean", "permission", "permanently", "denied", "(", "@", "non", "null", "activity", "host", ",", "@", "non", "null", "string", "denied", "permission", ")", "{", "return", "permission", "helper", "new", "instance", "(", "host", ")", "permission", "permanently", "denied", "(", "denied", "permission", ")", ";", "}" ]
[ "pushes", "proposed", "data", "to", "zoo", "keeper", "if", "a", "different", "server", "pushes", "its", "data", "first", ",", "it", "gives", "up" ]
[ "private", "synchronized", "void", "push", "to", "z", "k", "(", "byte", "[", "]", "new", "secret", ",", "byte", "[", "]", "current", "secret", ",", "byte", "[", "]", "previous", "secret", ")", "{", "byte", "[", "]", "bytes", "=", "generate", "z", "k", "data", "(", "new", "secret", ",", "current", "secret", ",", "previous", "secret", ")", ";", "try", "{", "client", "set", "data", "(", ")", "with", "version", "(", "zk", "version", ")", "for", "path", "(", "path", ",", "bytes", ")", ";", "}", "catch", "(", "keeper", "exception", "bad", "version", "exception", "bve", ")", "{", "log", "debug", "(", "\"", "unable", "to", "push", "to", "znode", ";", "another", "server", "already", "did", "it", "\"", ")", ";", "}", "catch", "(", "exception", "ex", ")", "{", "log", "error", "(", "\"", "an", "unexpected", "exception", "occurred", "pushing", "data", "to", "zoo", "keeper", "\"", ",", "ex", ")", ";", "}", "}" ]
[ "todo", ":", "need", "to", "learn", "more", "about", "concurrent", "access", "to", "{", "@", "link", "injector", "}", "and", "how", "it", "interacts", "with", "classloading" ]
[ "public", "void", "scout", "(", "class", "extension", "type", ",", "hudson", "hudson", ")", "{", "}" ]
[ "http", ":", "vt", "1", "0", "0", "netdocsvt", "5", "1", "0", "-", "rm", "d", "e", "c", "c", "a", "r", "a" ]
[ "public", "void", "test", "change", "attributes", "in", "rectangular", "area", "(", ")", "{", "final", "int", "b", "=", "text", "style", "character", "attribute", "bold", ";", "/", "/", "\"", "$", "{", "csi", "}", "$", "{", "top", "}", ";", "$", "{", "left", "}", ";", "$", "{", "bottom", "}", ";", "$", "{", "right", "}", ";", "$", "{", "attributes", "}", "\\", "$", "r", "\"", "with", "terminal", "sized", "(", "3", ",", "3", ")", "enter", "string", "(", "\"", "abcdefghi", "\\", "033", "[", "1", ";", "1", ";", "2", ";", "2", ";", "1", "$", "r", "\"", ")", "assert", "lines", "are", "(", "\"", "abc", "\"", ",", "\"", "def", "\"", ",", "\"", "ghi", "\"", ")", ";", "assert", "effect", "attributes", "set", "(", "effect", "line", "(", "b", ",", "b", ",", "b", ")", ",", "effect", "line", "(", "b", ",", "b", ",", "0", ")", ",", "effect", "line", "(", "0", ",", "0", ",", "0", ")", ")", ";", "/", "/", "now", "with", "http", ":", "/", "/", "www", "vt", "1", "0", "0", "net", "/", "docs", "/", "vt", "5", "1", "0", "-", "rm", "/", "decsace", "(", "\"", "$", "{", "csi", "}", "2", "*", "x", "\"", ")", "specifying", "rectangle", ":", "with", "terminal", "sized", "(", "3", ",", "3", ")", "enter", "string", "(", "\"", "\\", "033", "[", "2", "*", "x", "a", "b", "c", "d", "e", "f", "g", "h", "i", "\\", "033", "[", "1", ";", "1", ";", "2", ";", "2", ";", "1", "$", "r", "\"", ")", "assert", "lines", "are", "(", "\"", "abc", "\"", ",", "\"", "def", "\"", ",", "\"", "ghi", "\"", ")", ";", "assert", "effect", "attributes", "set", "(", "effect", "line", "(", "b", ",", "b", ",", "0", ")", ",", "effect", "line", "(", "b", ",", "b", ",", "0", ")", ",", "effect", "line", "(", "0", ",", "0", ",", "0", ")", ")", ";", "}" ]
[ "merges", "the", "dex", "files", "in", "library", "jars", "if", "multiple", "dex", "files", "define", "the", "same", "type", ",", "this", "fails", "with", "an", "exception" ]
[ "private", "byte", "[", "]", "merge", "library", "dex", "buffers", "(", "byte", "[", "]", "out", "array", ")", "throws", "i", "o", "exception", "{", "array", "list", "<", "dex", ">", "dexes", "=", "new", "array", "list", "<", "dex", ">", "(", ")", ";", "if", "(", "out", "array", "!", "=", "null", ")", "{", "dexes", "add", "(", "new", "dex", "(", "out", "array", ")", ")", ";", "}", "for", "(", "byte", "[", "]", "library", "dex", ":", "library", "dex", "buffers", ")", "{", "dexes", "add", "(", "new", "dex", "(", "library", "dex", ")", ")", ";", "}", "if", "(", "dexes", "is", "empty", "(", ")", ")", "{", "return", "null", ";", "}", "dex", "merged", "=", "new", "dex", "merger", "(", "dexes", "to", "array", "(", "new", "dex", "[", "dexes", "size", "(", ")", "]", ")", ",", "collision", "policy", "fail", ")", "merge", "(", ")", ";", "return", "merged", "get", "bytes", "(", ")", ";", "}" ]
[ "find", "'", "s", "a", "jython", "interpreter", "file", "in", "the", "given", "ghidra", "installation", "directory" ]
[ "private", "file", "find", "jython", "interpreter", "(", "file", "ghidra", "install", "dir", ")", "{", "if", "(", "ghidra", "install", "dir", "=", "=", "null", "|", "|", "!", "ghidra", "install", "dir", "is", "directory", "(", ")", ")", "{", "return", "null", ";", "}", "try", "{", "return", "files", "find", "(", "ghidra", "install", "dir", "to", "path", "(", ")", ",", "10", ",", "(", "path", ",", "attrs", ")", "-", ">", "{", "string", "name", "=", "path", "get", "file", "name", "(", ")", "to", "string", "(", ")", ";", "return", "attrs", "is", "regular", "file", "(", ")", "&", "&", "name", "starts", "with", "(", "\"", "jython", "\"", ")", "&", "&", "name", "ends", "with", "(", "\"", "jar", "\"", ")", ";", "}", ")", "map", "(", "p", "-", ">", "p", "to", "file", "(", ")", ")", "find", "first", "(", ")", "or", "else", "(", "null", ")", ";", "}", "catch", "(", "i", "o", "exception", "e", ")", "{", "return", "null", ";", "}", "}" ]
[ "closes", "the", "{", "@", "link", "channel", "}", "immediately", "without", "firing", "any", "events", "probably", "only", "useful", "when", "registration", "attempt", "failed" ]
[ "void", "close", "forcibly", "(", ")", ";" ]
[ "called", "when", "the", "context", "changes" ]
[ "public", "void", "context", "changed", "(", "action", "context", "context", ")", ";" ]
[ "gets", "the", "field", "{", "@", "code", "this", "class", "}", ",", "interpreted", "as", "a", "type", "constant" ]
[ "public", "cst", "type", "get", "this", "class", "(", ")", ";" ]
[ "sets", "the", "text" ]
[ "public", "void", "set", "text", "(", "string", "t", ")", "{", "text", "area", "set", "text", "(", "t", ")", ";", "text", "area", "set", "caret", "position", "(", "0", ")", ";", "}" ]
[ "set", "the", "{", "@", "link", "message", "converter", "}", "to", "use", "in", "{", "@", "code", "convert", "and", "send", "}", "methods", "by", "default", ",", "{", "@", "link", "simple", "message", "converter", "}", "is", "used" ]
[ "public", "void", "set", "message", "converter", "(", "message", "converter", "message", "converter", ")", "{", "assert", "not", "null", "(", "message", "converter", ",", "\"", "message", "converter", "must", "not", "be", "null", "\"", ")", ";", "this", "converter", "=", "message", "converter", ";", "}" ]
[ "returns", "dividend", "%", "divisor", ",", "where", "the", "dividend", "and", "divisor", "are", "treated", "as", "unsigned", "32", "-", "bit", "quantities" ]
[ "public", "static", "int", "remainder", "(", "int", "dividend", ",", "int", "divisor", ")", "{", "return", "(", "int", ")", "(", "to", "long", "(", "dividend", ")", "%", "to", "long", "(", "divisor", ")", ")", ";", "}" ]
[ "get", "the", "stack", "offset", "after", "it", "settles", "down" ]
[ "private", "int", "get", "frame", "base", "offset", "(", "task", "monitor", "monitor", ")", "throws", "cancelled", "exception", "{", "int", "ret", "addr", "size", "=", "function", "get", "program", "(", ")", "get", "default", "pointer", "size", "(", ")", ";", "if", "(", "ret", "addr", "size", "!", "=", "8", ")", "{", "/", "/", "don", "'", "t", "do", "this", "for", "32", "bit", "return", "-", "ret", "addr", "size", ";", "/", "/", "32", "bit", "has", "a", "-", "4", "byte", "offset", "}", "register", "frame", "reg", "=", "function", "get", "program", "(", ")", "get", "compiler", "spec", "(", ")", "get", "stack", "pointer", "(", ")", ";", "address", "entry", "addr", "=", "function", "get", "entry", "point", "(", ")", ";", "address", "set", "scope", "set", "=", "new", "address", "set", "(", ")", ";", "scope", "set", "add", "range", "(", "entry", "addr", ",", "entry", "addr", "add", "(", "64", ")", ")", ";", "call", "depth", "change", "info", "value", "change", "=", "new", "call", "depth", "change", "info", "(", "function", ",", "scope", "set", ",", "frame", "reg", ",", "monitor", ")", ";", "instruction", "iterator", "instructions", "=", "function", "get", "program", "(", ")", "get", "listing", "(", ")", "get", "instructions", "(", "scope", "set", ",", "true", ")", ";", "int", "max", "=", "0", ";", "while", "(", "instructions", "has", "next", "(", ")", ")", "{", "monitor", "check", "canceled", "(", ")", ";", "instruction", "next", "=", "instructions", "next", "(", ")", ";", "int", "new", "value", "=", "value", "change", "get", "depth", "(", "next", "get", "min", "address", "(", ")", ")", ";", "if", "(", "new", "value", "<", "-", "(", "20", "*", "1024", ")", "|", "|", "new", "value", ">", "(", "20", "*", "1024", ")", ")", "{", "continue", ";", "}", "if", "(", "math", "abs", "(", "new", "value", ")", ">", "math", "abs", "(", "max", ")", ")", "{", "max", "=", "new", "value", ";", "}", "}", "return", "max", ";", "}" ]
[ "resumes", "scanning", "until", "the", "next", "regular", "expression", "is", "matched", ",", "the", "end", "of", "input", "is", "encountered", "or", "an", "io", "-", "error", "occurs" ]
[ "public", "j", "s", "o", "n", "token", "yylex", "(", ")", "throws", "java", "io", "i", "o", "exception", ",", "parse", "exception", "{", "int", "zz", "input", ";", "int", "zz", "action", ";", "/", "/", "cached", "fields", ":", "int", "zz", "current", "pos", "l", ";", "int", "zz", "marked", "pos", "l", ";", "int", "zz", "end", "read", "l", "=", "zz", "end", "read", ";", "char", "[", "]", "zz", "buffer", "l", "=", "zz", "buffer", ";", "char", "[", "]", "zz", "c", "map", "l", "=", "zz", "cmap", ";", "int", "[", "]", "zz", "trans", "l", "=", "zz", "trans", ";", "int", "[", "]", "zz", "row", "map", "l", "=", "zz", "rowmap", ";", "int", "[", "]", "zz", "attr", "l", "=", "zz", "attribute", ";", "while", "(", "true", ")", "{", "zz", "marked", "pos", "l", "=", "zz", "marked", "pos", ";", "zz", "action", "=", "-", "1", ";", "zz", "current", "pos", "l", "=", "zz", "current", "pos", "=", "zz", "start", "read", "=", "zz", "marked", "pos", "l", ";", "zz", "state", "=", "zz", "lexstate", "[", "zz", "lexical", "state", "]", ";", "zz", "for", "action", ":", "{", "while", "(", "true", ")", "{", "if", "(", "zz", "current", "pos", "l", "<", "zz", "end", "read", "l", ")", "{", "zz", "input", "=", "zz", "buffer", "l", "[", "zz", "current", "pos", "l", "+", "+", "]", ";", "}", "else", "if", "(", "zz", "at", "e", "o", "f", ")", "{", "zz", "input", "=", "yyeof", ";", "break", "zz", "for", "action", ";", "}", "else", "{", "/", "/", "store", "back", "cached", "positions", "zz", "current", "pos", "=", "zz", "current", "pos", "l", ";", "zz", "marked", "pos", "=", "zz", "marked", "pos", "l", ";", "boolean", "eof", "=", "zz", "refill", "(", ")", ";", "/", "/", "get", "translated", "positions", "and", "possibly", "new", "buffer", "zz", "current", "pos", "l", "=", "zz", "current", "pos", ";", "zz", "marked", "pos", "l", "=", "zz", "marked", "pos", ";", "zz", "buffer", "l", "=", "zz", "buffer", ";", "zz", "end", "read", "l", "=", "zz", "end", "read", ";", "if", "(", "eof", ")", "{", "zz", "input", "=", "yyeof", ";", "break", "zz", "for", "action", ";", "}", "else", "{", "zz", "input", "=", "zz", "buffer", "l", "[", "zz", "current", "pos", "l", "+", "+", "]", ";", "}", "}", "int", "zz", "next", "=", "zz", "trans", "l", "[", "zz", "row", "map", "l", "[", "zz", "state", "]", "+", "zz", "c", "map", "l", "[", "zz", "input", "]", "]", ";", "if", "(", "zz", "next", "=", "=", "-", "1", ")", "{", "break", "zz", "for", "action", ";", "}", "zz", "state", "=", "zz", "next", ";", "int", "zz", "attributes", "=", "zz", "attr", "l", "[", "zz", "state", "]", ";", "if", "(", "(", "zz", "attributes", "&", "1", ")", "=", "=", "1", ")", "{", "zz", "action", "=", "zz", "state", ";", "zz", "marked", "pos", "l", "=", "zz", "current", "pos", "l", ";", "if", "(", "(", "zz", "attributes", "&", "8", ")", "=", "=", "8", ")", "{", "break", "zz", "for", "action", ";", "}", "}", "}", "}", "/", "/", "store", "back", "cached", "position", "zz", "marked", "pos", "=", "zz", "marked", "pos", "l", ";", "switch", "(", "zz", "action", "<", "0", "?", "zz", "action", ":", "zz", "action", "[", "zz", "action", "]", ")", "{", "case", "25", ":", "{", "return", "new", "j", "s", "o", "n", "token", "(", "j", "s", "o", "n", "token", "null", ",", "null", ")", ";", "}", "case", "29", ":", "break", ";", "case", "13", ":", "{", "sb", "append", "(", "yytext", "(", ")", ")", ";", "}", "case", "30", ":", "break", ";", "case", "18", ":", "{", "sb", "append", "(", "'", "\\", "b", "'", ")", ";", "}", "case", "31", ":", "break", ";", "case", "9", ":", "{", "return", "new", "j", "s", "o", "n", "token", "(", "j", "s", "o", "n", "token", "lsquare", ")", ";", "}", "case", "32", ":", "break", ";", "case", "2", ":", "{", "long", "val", "=", "long", "value", "of", "(", "yytext", "(", ")", ")", ";", "return", "new", "j", "s", "o", "n", "token", "(", "j", "s", "o", "n", "token", "int", ",", "val", ")", ";", "}", "case", "33", ":", "break", ";", "case", "16", ":", "{", "sb", "append", "(", "'", "\\", "\\", "'", ")", ";", "}", "case", "34", ":", "break", ";", "case", "8", ":", "{", "return", "new", "j", "s", "o", "n", "token", "(", "j", "s", "o", "n", "token", "rbrace", ")", ";", "}", "case", "35", ":", "break", ";", "case", "26", ":", "{", "return", "new", "j", "s", "o", "n", "token", "(", "j", "s", "o", "n", "token", "bool", ",", "boolean", "true", ")", ";", "}", "case", "36", ":", "break", ";", "case", "23", ":", "{", "sb", "append", "(", "'", "\\", "'", "'", ")", ";", "}", "case", "37", ":", "break", ";", "case", "5", ":", "{", "sb", "=", "new", "string", "buffer", "(", ")", ";", "yybegin", "(", "str2", ")", ";", "}", "case", "38", ":", "break", ";", "case", "27", ":", "{", "return", "new", "j", "s", "o", "n", "token", "(", "j", "s", "o", "n", "token", "bool", ",", "boolean", "false", ")", ";", "}", "case", "39", ":", "break", ";", "case", "12", ":", "{", "return", "new", "j", "s", "o", "n", "token", "(", "j", "s", "o", "n", "token", "colon", ")", ";", "}", "case", "40", ":", "break", ";", "case", "21", ":", "{", "sb", "append", "(", "'", "\\", "r", "'", ")", ";", "}", "case", "41", ":", "break", ";", "case", "3", ":", "{", "return", "new", "j", "s", "o", "n", "token", "(", "j", "s", "o", "n", "token", "ident", ",", "yytext", "(", ")", ")", ";", "}", "case", "42", ":", "break", ";", "case", "28", ":", "{", "try", "{", "sb", "append", "(", "(", "char", ")", "integer", "parse", "int", "(", "yytext", "(", ")", "substring", "(", "2", ")", ",", "16", ")", ")", ";", "}", "catch", "(", "exception", "e", ")", "{", "throw", "new", "parse", "exception", "(", "e", "get", "message", "(", ")", ")", ";", "}", "}", "case", "43", ":", "break", ";", "case", "10", ":", "{", "return", "new", "j", "s", "o", "n", "token", "(", "j", "s", "o", "n", "token", "rsquare", ")", ";", "}", "case", "44", ":", "break", ";", "case", "17", ":", "{", "sb", "append", "(", "'", "/", "'", ")", ";", "}", "case", "45", ":", "break", ";", "case", "11", ":", "{", "return", "new", "j", "s", "o", "n", "token", "(", "j", "s", "o", "n", "token", "comma", ")", ";", "}", "case", "46", ":", "break", ";", "case", "15", ":", "{", "sb", "append", "(", "'", "\"", "'", ")", ";", "}", "case", "47", ":", "break", ";", "case", "24", ":", "{", "double", "val", "=", "double", "value", "of", "(", "yytext", "(", ")", ")", ";", "return", "new", "j", "s", "o", "n", "token", "(", "j", "s", "o", "n", "token", "float", ",", "val", ")", ";", "}", "case", "48", ":", "break", ";", "case", "1", ":", "{", "throw", "new", "parse", "exception", "(", "\"", "unexpected", "char", "[", "\"", "+", "yytext", "(", ")", "+", "\"", "]", "\"", ")", ";", "}", "case", "49", ":", "break", ";", "case", "19", ":", "{", "sb", "append", "(", "'", "\\", "f", "'", ")", ";", "}", "case", "50", ":", "break", ";", "case", "7", ":", "{", "return", "new", "j", "s", "o", "n", "token", "(", "j", "s", "o", "n", "token", "lbrace", ")", ";", "}", "case", "51", ":", "break", ";", "case", "14", ":", "{", "yybegin", "(", "yyinitial", ")", ";", "return", "new", "j", "s", "o", "n", "token", "(", "j", "s", "o", "n", "token", "string", ",", "sb", "to", "string", "(", ")", ")", ";", "}", "case", "52", ":", "break", ";", "case", "22", ":", "{", "sb", "append", "(", "'", "\\", "t", "'", ")", ";", "}", "case", "53", ":", "break", ";", "case", "4", ":", "{", "sb", "=", "new", "string", "buffer", "(", ")", ";", "yybegin", "(", "str1", ")", ";", "}", "case", "54", ":", "break", ";", "case", "20", ":", "{", "sb", "append", "(", "'", "\\", "n", "'", ")", ";", "}", "case", "55", ":", "break", ";", "case", "6", ":", "{", "}", "case", "56", ":", "break", ";", "default", ":", "if", "(", "zz", "input", "=", "=", "yyeof", "&", "&", "zz", "start", "read", "=", "=", "zz", "current", "pos", ")", "{", "zz", "at", "e", "o", "f", "=", "true", ";", "return", "null", ";", "}", "else", "{", "zz", "scan", "error", "(", "zz", "no", "match", ")", ";", "break", ";", "}", "}", "}", "}" ]
[ "populate", "certificate", "revocation", "list", "attribute", "dynamically", "set", "the", "attribute", "value", "to", "the", "crl", "content", "encode", "it", "as", "base", "6", "4", "first", "doing", "this", "in", "the", "code", "rather", "than", "in", "the", "ldif", "file", "to", "ensure", "the", "attribute", "can", "be", "populated", "without", "dependencies", "on", "the", "classpath", "and", "or", "filesystem" ]
[ "private", "static", "void", "populate", "certificate", "revocation", "list", "attribute", "(", "final", "int", "port", ")", "throws", "exception", "{", "val", "col", "=", "get", "ldap", "directory", "(", "port", ")", "get", "ldap", "entries", "(", ")", ";", "for", "(", "val", "ldap", "entry", ":", "col", ")", "{", "if", "(", "ldap", "entry", "get", "dn", "(", ")", "equals", "(", "dn", ")", ")", "{", "val", "user", "c", "a", "=", "new", "byte", "[", "1024", "]", ";", "i", "o", "utils", "read", "(", "new", "class", "path", "resource", "(", "\"", "user", "c", "a", "-", "valid", "crl", "\"", ")", "get", "input", "stream", "(", ")", ",", "user", "c", "a", ")", ";", "val", "value", "=", "encoding", "utils", "encode", "base", "6", "4", "to", "byte", "array", "(", "user", "c", "a", ")", ";", "val", "attr", "=", "ldap", "attribute", "builder", "(", ")", "name", "(", "\"", "certificate", "revocation", "list", "\"", ")", "values", "(", "value", ")", "binary", "(", "true", ")", "build", "(", ")", ";", "ldap", "test", "utils", "modify", "ldap", "entry", "(", "get", "ldap", "directory", "(", "port", ")", "get", "connection", "(", ")", ",", "ldap", "entry", ",", "attr", ")", ";", "}", "}", "}" ]
[ "convert", "the", "value", "to", "the", "desired", "type" ]
[ "protected", "static", "object", "convert", "to", "(", "schema", "to", "schema", ",", "schema", "from", "schema", ",", "object", "value", ")", "throws", "data", "exception", "{", "if", "(", "value", "=", "=", "null", ")", "{", "if", "(", "to", "schema", "is", "optional", "(", ")", ")", "{", "return", "null", ";", "}", "throw", "new", "data", "exception", "(", "\"", "unable", "to", "convert", "a", "null", "value", "to", "a", "schema", "that", "requires", "a", "value", "\"", ")", ";", "}", "switch", "(", "to", "schema", "type", "(", ")", ")", "{", "case", "bytes", ":", "if", "(", "decimal", "logical", "name", "equals", "(", "to", "schema", "name", "(", ")", ")", ")", "{", "if", "(", "value", "instanceof", "byte", "buffer", ")", "{", "value", "=", "utils", "to", "array", "(", "(", "byte", "buffer", ")", "value", ")", ";", "}", "if", "(", "value", "instanceof", "byte", "[", "]", ")", "{", "return", "decimal", "to", "logical", "(", "to", "schema", ",", "(", "byte", "[", "]", ")", "value", ")", ";", "}", "if", "(", "value", "instanceof", "big", "decimal", ")", "{", "return", "value", ";", "}", "if", "(", "value", "instanceof", "number", ")", "{", "/", "/", "not", "already", "a", "decimal", ",", "so", "treat", "it", "as", "a", "double", "double", "converted", "=", "(", "(", "number", ")", "value", ")", "double", "value", "(", ")", ";", "return", "big", "decimal", "value", "of", "(", "converted", ")", ";", "}", "if", "(", "value", "instanceof", "string", ")", "{", "return", "new", "big", "decimal", "(", "value", "to", "string", "(", ")", ")", "double", "value", "(", ")", ";", "}", "}", "if", "(", "value", "instanceof", "byte", "buffer", ")", "{", "return", "utils", "to", "array", "(", "(", "byte", "buffer", ")", "value", ")", ";", "}", "if", "(", "value", "instanceof", "byte", "[", "]", ")", "{", "return", "value", ";", "}", "if", "(", "value", "instanceof", "big", "decimal", ")", "{", "return", "decimal", "from", "logical", "(", "to", "schema", ",", "(", "big", "decimal", ")", "value", ")", ";", "}", "break", ";", "case", "string", ":", "string", "builder", "sb", "=", "new", "string", "builder", "(", ")", ";", "append", "(", "sb", ",", "value", ",", "false", ")", ";", "return", "sb", "to", "string", "(", ")", ";", "case", "boolean", ":", "if", "(", "value", "instanceof", "boolean", ")", "{", "return", "value", ";", "}", "if", "(", "value", "instanceof", "string", ")", "{", "schema", "and", "value", "parsed", "=", "parse", "string", "(", "value", "to", "string", "(", ")", ")", ";", "if", "(", "parsed", "value", "(", ")", "instanceof", "boolean", ")", "{", "return", "parsed", "value", "(", ")", ";", "}", "}", "return", "as", "long", "(", "value", ",", "from", "schema", ",", "null", ")", "=", "=", "0l", "?", "boolean", "false", ":", "boolean", "true", ";", "case", "int8", ":", "if", "(", "value", "instanceof", "byte", ")", "{", "return", "value", ";", "}", "return", "(", "byte", ")", "as", "long", "(", "value", ",", "from", "schema", ",", "null", ")", ";", "case", "int16", ":", "if", "(", "value", "instanceof", "short", ")", "{", "return", "value", ";", "}", "return", "(", "short", ")", "as", "long", "(", "value", ",", "from", "schema", ",", "null", ")", ";", "case", "int32", ":", "if", "(", "date", "logical", "name", "equals", "(", "to", "schema", "name", "(", ")", ")", ")", "{", "if", "(", "value", "instanceof", "string", ")", "{", "schema", "and", "value", "parsed", "=", "parse", "string", "(", "value", "to", "string", "(", ")", ")", ";", "value", "=", "parsed", "value", "(", ")", ";", "}", "if", "(", "value", "instanceof", "java", "util", "date", ")", "{", "if", "(", "from", "schema", "!", "=", "null", ")", "{", "string", "from", "schema", "name", "=", "from", "schema", "name", "(", ")", ";", "if", "(", "date", "logical", "name", "equals", "(", "from", "schema", "name", ")", ")", "{", "return", "value", ";", "}", "if", "(", "timestamp", "logical", "name", "equals", "(", "from", "schema", "name", ")", ")", "{", "/", "/", "just", "get", "the", "number", "of", "days", "from", "this", "timestamp", "long", "millis", "=", "(", "(", "java", "util", "date", ")", "value", ")", "get", "time", "(", ")", ";", "int", "days", "=", "(", "int", ")", "(", "millis", "/", "millis", "per", "day", ")", ";", "/", "/", "truncates", "return", "date", "to", "logical", "(", "to", "schema", ",", "days", ")", ";", "}", "}", "else", "{", "/", "/", "there", "is", "no", "from", "schema", ",", "so", "no", "conversion", "is", "needed", "return", "value", ";", "}", "}", "long", "numeric", "=", "as", "long", "(", "value", ",", "from", "schema", ",", "null", ")", ";", "return", "date", "to", "logical", "(", "to", "schema", ",", "(", "int", ")", "numeric", ")", ";", "}", "if", "(", "time", "logical", "name", "equals", "(", "to", "schema", "name", "(", ")", ")", ")", "{", "if", "(", "value", "instanceof", "string", ")", "{", "schema", "and", "value", "parsed", "=", "parse", "string", "(", "value", "to", "string", "(", ")", ")", ";", "value", "=", "parsed", "value", "(", ")", ";", "}", "if", "(", "value", "instanceof", "java", "util", "date", ")", "{", "if", "(", "from", "schema", "!", "=", "null", ")", "{", "string", "from", "schema", "name", "=", "from", "schema", "name", "(", ")", ";", "if", "(", "time", "logical", "name", "equals", "(", "from", "schema", "name", ")", ")", "{", "return", "value", ";", "}", "if", "(", "timestamp", "logical", "name", "equals", "(", "from", "schema", "name", ")", ")", "{", "/", "/", "just", "get", "the", "time", "portion", "of", "this", "timestamp", "calendar", "calendar", "=", "calendar", "get", "instance", "(", "utc", ")", ";", "calendar", "set", "time", "(", "(", "java", "util", "date", ")", "value", ")", ";", "calendar", "set", "(", "calendar", "year", ",", "1970", ")", ";", "calendar", "set", "(", "calendar", "month", ",", "0", ")", ";", "/", "/", "months", "are", "zero", "-", "based", "calendar", "set", "(", "calendar", "day", "of", "month", ",", "1", ")", ";", "return", "time", "to", "logical", "(", "to", "schema", ",", "(", "int", ")", "calendar", "get", "time", "in", "millis", "(", ")", ")", ";", "}", "}", "else", "{", "/", "/", "there", "is", "no", "from", "schema", ",", "so", "no", "conversion", "is", "needed", "return", "value", ";", "}", "}", "long", "numeric", "=", "as", "long", "(", "value", ",", "from", "schema", ",", "null", ")", ";", "return", "time", "to", "logical", "(", "to", "schema", ",", "(", "int", ")", "numeric", ")", ";", "}", "if", "(", "value", "instanceof", "integer", ")", "{", "return", "value", ";", "}", "return", "(", "int", ")", "as", "long", "(", "value", ",", "from", "schema", ",", "null", ")", ";", "case", "int64", ":", "if", "(", "timestamp", "logical", "name", "equals", "(", "to", "schema", "name", "(", ")", ")", ")", "{", "if", "(", "value", "instanceof", "string", ")", "{", "schema", "and", "value", "parsed", "=", "parse", "string", "(", "value", "to", "string", "(", ")", ")", ";", "value", "=", "parsed", "value", "(", ")", ";", "}", "if", "(", "value", "instanceof", "java", "util", "date", ")", "{", "java", "util", "date", "date", "=", "(", "java", "util", "date", ")", "value", ";", "if", "(", "from", "schema", "!", "=", "null", ")", "{", "string", "from", "schema", "name", "=", "from", "schema", "name", "(", ")", ";", "if", "(", "date", "logical", "name", "equals", "(", "from", "schema", "name", ")", ")", "{", "int", "days", "=", "date", "from", "logical", "(", "from", "schema", ",", "date", ")", ";", "long", "millis", "=", "days", "*", "millis", "per", "day", ";", "return", "timestamp", "to", "logical", "(", "to", "schema", ",", "millis", ")", ";", "}", "if", "(", "time", "logical", "name", "equals", "(", "from", "schema", "name", ")", ")", "{", "long", "millis", "=", "time", "from", "logical", "(", "from", "schema", ",", "date", ")", ";", "return", "timestamp", "to", "logical", "(", "to", "schema", ",", "millis", ")", ";", "}", "if", "(", "timestamp", "logical", "name", "equals", "(", "from", "schema", "name", ")", ")", "{", "return", "value", ";", "}", "}", "else", "{", "/", "/", "there", "is", "no", "from", "schema", ",", "so", "no", "conversion", "is", "needed", "return", "value", ";", "}", "}", "long", "numeric", "=", "as", "long", "(", "value", ",", "from", "schema", ",", "null", ")", ";", "return", "timestamp", "to", "logical", "(", "to", "schema", ",", "numeric", ")", ";", "}", "if", "(", "value", "instanceof", "long", ")", "{", "return", "value", ";", "}", "return", "as", "long", "(", "value", ",", "from", "schema", ",", "null", ")", ";", "case", "float32", ":", "if", "(", "value", "instanceof", "float", ")", "{", "return", "value", ";", "}", "return", "(", "float", ")", "as", "double", "(", "value", ",", "from", "schema", ",", "null", ")", ";", "case", "float64", ":", "if", "(", "value", "instanceof", "double", ")", "{", "return", "value", ";", "}", "return", "as", "double", "(", "value", ",", "from", "schema", ",", "null", ")", ";", "case", "array", ":", "if", "(", "value", "instanceof", "string", ")", "{", "schema", "and", "value", "schema", "and", "value", "=", "parse", "string", "(", "value", "to", "string", "(", ")", ")", ";", "value", "=", "schema", "and", "value", "value", "(", ")", ";", "}", "if", "(", "value", "instanceof", "list", ")", "{", "return", "value", ";", "}", "break", ";", "case", "map", ":", "if", "(", "value", "instanceof", "string", ")", "{", "schema", "and", "value", "schema", "and", "value", "=", "parse", "string", "(", "value", "to", "string", "(", ")", ")", ";", "value", "=", "schema", "and", "value", "value", "(", ")", ";", "}", "if", "(", "value", "instanceof", "map", ")", "{", "return", "value", ";", "}", "break", ";", "case", "struct", ":", "if", "(", "value", "instanceof", "struct", ")", "{", "struct", "struct", "=", "(", "struct", ")", "value", ";", "return", "struct", ";", "}", "}", "throw", "new", "data", "exception", "(", "\"", "unable", "to", "convert", "\"", "+", "value", "+", "\"", "(", "\"", "+", "value", "get", "class", "(", ")", "+", "\"", ")", "to", "\"", "+", "to", "schema", ")", ";", "}" ]
[ "returns", "the", "{", "@", "link", "type", "}", "of", "this", "tlv" ]
[ "public", "type", "type", "(", ")", "{", "return", "type", ";", "}" ]
[ "get", "enum", "string", "required" ]
[ "public", "enum", "string", "required", "enum", "get", "enum", "string", "required", "(", ")", "{", "return", "enum", "string", "required", ";", "}" ]
[ "remove", "an", "xattr", "of", "a", "file", "or", "directory", "the", "name", "must", "be", "prefixed", "with", "the", "namespace", "followed", "by", "\"", "\"", "for", "example", ",", "\"", "user", "attr", "\"", "refer", "to", "the", "hdfs", "extended", "attributes", "user", "documentation", "for", "details" ]
[ "public", "void", "remove", "x", "attr", "(", "path", "path", ",", "string", "name", ")", "throws", "i", "o", "exception", "{", "throw", "new", "unsupported", "operation", "exception", "(", "get", "class", "(", ")", "get", "simple", "name", "(", ")", "+", "\"", "doesn", "'", "t", "support", "remove", "x", "attr", "\"", ")", ";", "}" ]
[ "adds", "a", "string", "as", "xml", "characters", "to", "the", "definition" ]
[ "values", "resource", "definition", "add", "characters", "of", "(", "string", "characters", ")", ";" ]
[ "gets", "transaction", "id" ]
[ "public", "long", "get", "transaction", "id", "(", ")", "{", "return", "transaction", "id", ";", "}" ]
[ "creating", "branch", "record" ]
[ "protected", "string", "do", "tcc", "action", "log", "store", "(", "method", "method", ",", "object", "[", "]", "arguments", ",", "two", "phase", "business", "action", "business", "action", ",", "business", "action", "context", "action", "context", ")", "{", "string", "action", "name", "=", "action", "context", "get", "action", "name", "(", ")", ";", "string", "xid", "=", "action", "context", "get", "xid", "(", ")", ";", "/", "/", "map", "<", "string", ",", "object", ">", "context", "=", "fetch", "action", "request", "context", "(", "method", ",", "arguments", ")", ";", "context", "put", "(", "constants", "action", "start", "time", ",", "system", "current", "time", "millis", "(", ")", ")", ";", "/", "/", "init", "business", "context", "init", "business", "context", "(", "context", ",", "method", ",", "business", "action", ")", ";", "/", "/", "init", "running", "environment", "context", "init", "framework", "context", "(", "context", ")", ";", "action", "context", "set", "action", "context", "(", "context", ")", ";", "/", "/", "init", "application", "data", "map", "<", "string", ",", "object", ">", "application", "context", "=", "new", "hash", "map", "<", ">", "(", "4", ")", ";", "application", "context", "put", "(", "constants", "tcc", "action", "context", ",", "context", ")", ";", "string", "application", "context", "str", "=", "json", "to", "j", "s", "o", "n", "string", "(", "application", "context", ")", ";", "try", "{", "/", "/", "registry", "branch", "record", "long", "branch", "id", "=", "default", "resource", "manager", "get", "(", ")", "branch", "register", "(", "branch", "type", "tcc", ",", "action", "name", ",", "null", ",", "xid", ",", "application", "context", "str", ",", "null", ")", ";", "return", "string", "value", "of", "(", "branch", "id", ")", ";", "}", "catch", "(", "throwable", "t", ")", "{", "string", "msg", "=", "string", "format", "(", "\"", "tcc", "branch", "register", "error", ",", "xid", ":", "%", "s", "\"", ",", "xid", ")", ";", "logger", "error", "(", "msg", ",", "t", ")", ";", "throw", "new", "framework", "exception", "(", "t", ",", "msg", ")", ";", "}", "}" ]
[ "set", "the", "<", "code", ">", "path", "<", "code", ">", "corresponding", "to", "a", "resource", "in", "the", "shared", "cache" ]
[ "public", "abstract", "void", "set", "path", "(", "string", "p", ")", ";" ]
[ "decide", "if", "still", "need", "to", "move", "more", "bytes" ]
[ "boolean", "has", "space", "for", "scheduling", "(", ")", "{", "return", "has", "space", "for", "scheduling", "(", "0l", ")", ";", "}" ]
[ "parses", "the", "given", "line", "with", "a", "class", "mapping", "and", "processes", "the", "results", "with", "the", "given", "mapping", "processor", "returns", "the", "old", "class", "name", ",", "or", "null", "if", "any", "subsequent", "class", "member", "lines", "can", "be", "ignored" ]
[ "private", "string", "process", "class", "mapping", "(", "string", "line", ",", "mapping", "processor", "mapping", "processor", ")", "{", "/", "/", "see", "if", "we", "can", "parse", "\"", "-", ">", ":", "\"", ",", "containing", "the", "original", "/", "/", "class", "name", "and", "the", "new", "class", "name", "int", "arrow", "index", "=", "line", "index", "of", "(", "\"", "-", ">", "\"", ")", ";", "if", "(", "arrow", "index", "<", "0", ")", "{", "return", "null", ";", "}", "int", "colon", "index", "=", "line", "index", "of", "(", "'", ":", "'", ",", "arrow", "index", "+", "2", ")", ";", "if", "(", "colon", "index", "<", "0", ")", "{", "return", "null", ";", "}", "/", "/", "extract", "the", "elements", "string", "class", "name", "=", "line", "substring", "(", "0", ",", "arrow", "index", ")", "trim", "(", ")", ";", "string", "new", "class", "name", "=", "line", "substring", "(", "arrow", "index", "+", "2", ",", "colon", "index", ")", "trim", "(", ")", ";", "/", "/", "process", "this", "class", "name", "mapping", "boolean", "interested", "=", "mapping", "processor", "process", "class", "mapping", "(", "class", "name", ",", "new", "class", "name", ")", ";", "return", "interested", "?", "class", "name", ":", "null", ";", "}" ]
[ "applies", "the", "given", "window", "function", "to", "each", "window", "the", "window", "function", "is", "called", "for", "each", "evaluation", "of", "the", "window", "for", "each", "key", "individually", "the", "output", "of", "the", "window", "function", "is", "interpreted", "as", "a", "regular", "non", "-", "windowed", "stream", "note", "that", "this", "function", "requires", "that", "all", "data", "in", "the", "windows", "is", "buffered", "until", "the", "window", "is", "evaluated", ",", "as", "the", "function", "provides", "no", "means", "of", "incremental", "aggregation" ]
[ "public", "<", "r", ">", "bootstrap", "transformation", "<", "t", ">", "apply", "(", "window", "function", "<", "t", ",", "r", ",", "k", ",", "w", ">", "function", ")", "{", "window", "operator", "<", "k", ",", "t", ",", "?", ",", "r", ",", "w", ">", "operator", "=", "builder", "apply", "(", "function", ")", ";", "savepoint", "writer", "operator", "factory", "factory", "=", "(", "timestamp", ",", "path", ")", "-", ">", "new", "state", "bootstrap", "wrapper", "operator", "<", ">", "(", "timestamp", ",", "path", ",", "operator", ")", ";", "return", "new", "bootstrap", "transformation", "<", ">", "(", "input", ",", "operator", "max", "parallelism", ",", "timestamper", ",", "factory", ",", "key", "selector", ",", "key", "type", ")", ";", "}" ]
[ "called", "when", "a", "new", "session", "is", "created", "as", "a", "result", "of", "{", "@", "link", "#", "update", "sessions", "(", "event", "time", ")", "}" ]
[ "void", "on", "session", "created", "(", "event", "time", "event", "time", ",", "string", "session", "id", ")", ";" ]
[ "reads", "whole", "(", "including", "chunk", "type", ")", "string", "block", "from", "stream", "stream", "must", "be", "at", "the", "chunk", "type" ]
[ "public", "static", "string", "block", "read", "(", "ext", "data", "input", "reader", ")", "throws", "i", "o", "exception", "{", "reader", "skip", "check", "chunk", "type", "int", "(", "chunk", "stringpool", "type", ",", "chunk", "null", "type", ")", ";", "int", "chunk", "size", "=", "reader", "read", "int", "(", ")", ";", "/", "/", "res", "string", "pool", "header", "int", "string", "count", "=", "reader", "read", "int", "(", ")", ";", "int", "style", "count", "=", "reader", "read", "int", "(", ")", ";", "int", "flags", "=", "reader", "read", "int", "(", ")", ";", "int", "strings", "offset", "=", "reader", "read", "int", "(", ")", ";", "int", "styles", "offset", "=", "reader", "read", "int", "(", ")", ";", "string", "block", "block", "=", "new", "string", "block", "(", ")", ";", "block", "m", "is", "u", "t", "f", "8", "=", "(", "flags", "&", "utf8", "flag", ")", "!", "=", "0", ";", "block", "m", "string", "offsets", "=", "reader", "read", "int", "array", "(", "string", "count", ")", ";", "if", "(", "style", "count", "!", "=", "0", ")", "{", "block", "m", "style", "offsets", "=", "reader", "read", "int", "array", "(", "style", "count", ")", ";", "}", "int", "size", "=", "(", "(", "styles", "offset", "=", "=", "0", ")", "?", "chunk", "size", ":", "styles", "offset", ")", "-", "strings", "offset", ";", "block", "m", "strings", "=", "new", "byte", "[", "size", "]", ";", "reader", "read", "fully", "(", "block", "m", "strings", ")", ";", "if", "(", "styles", "offset", "!", "=", "0", ")", "{", "size", "=", "(", "chunk", "size", "-", "styles", "offset", ")", ";", "block", "m", "styles", "=", "reader", "read", "int", "array", "(", "size", "/", "4", ")", ";", "/", "/", "read", "remaining", "bytes", "int", "remaining", "=", "size", "%", "4", ";", "if", "(", "remaining", ">", "=", "1", ")", "{", "while", "(", "remaining", "-", "-", ">", "0", ")", "{", "reader", "read", "byte", "(", ")", ";", "}", "}", "}", "return", "block", ";", "}" ]
[ "the", "minimum", "average", "value", "sizes", "the", "actual", "average", "value", "size", "is", "no", "less", "than", "the", "return", "value", "it", "provides", "a", "lower", "bound", "of", "the", "size", "of", "data", "to", "be", "loaded" ]
[ "public", "long", "get", "min", "average", "value", "size", "in", "bytes", "(", ")", "{", "/", "/", "it", "is", "ok", "to", "return", "0", "if", "the", "size", "does", "not", "exist", "given", "it", "is", "a", "lower", "bound", "return", "min", "average", "value", "size", "in", "bytes", ";", "}" ]
[ "gets", "the", "timestamp", "in", "milliseconds", "floored", "to", "midnight" ]
[ "static", "long", "floored", "trace", "timestamp", "(", "list", "<", "span", ">", "trace", ")", "{", "long", "midnight", "of", "trace", "=", "long", "max", "value", ";", "for", "(", "span", "span", ":", "trace", ")", "{", "long", "current", "ts", "=", "guess", "timestamp", "(", "span", ")", ";", "if", "(", "current", "ts", "!", "=", "0l", "&", "&", "current", "ts", "<", "midnight", "of", "trace", ")", "{", "midnight", "of", "trace", "=", "midnight", "u", "t", "c", "(", "current", "ts", "/", "1000", ")", ";", "}", "}", "assert", "that", "(", "midnight", "of", "trace", ")", "is", "not", "equal", "to", "(", "long", "max", "value", ")", ";", "return", "midnight", "of", "trace", ";", "}" ]
[ "sets", "the", "source", "jars", "included", "as", "part", "of", "the", "sources", "of", "this", "rule" ]
[ "public", "builder", "set", "source", "jars", "(", "collection", "<", "artifact", ">", "source", "jars", ")", "{", "this", "source", "jars", "=", "preconditions", "check", "not", "null", "(", "source", "jars", ")", ";", "return", "this", ";", "}" ]
[ "returns", "{", "@", "link", "inet", "socket", "address", "#", "get", "host", "string", "(", ")", "}", "if", "java", ">", "=", "7", ",", "or", "{", "@", "link", "inet", "socket", "address", "#", "get", "host", "name", "(", ")", "}", "otherwise" ]
[ "public", "static", "string", "get", "hostname", "(", "inet", "socket", "address", "addr", ")", "{", "return", "platform", "dependent", "java", "version", "(", ")", ">", "=", "7", "?", "addr", "get", "host", "string", "(", ")", ":", "addr", "get", "host", "name", "(", ")", ";", "}" ]
[ "sets", "the", "subtitle", "on", "the", "tool", ";", "the", "subtitle", "is", "extra", "text", "in", "the", "title" ]
[ "public", "void", "set", "sub", "title", "(", "string", "sub", "title", ")", "{", "this", "sub", "title", "=", "sub", "title", ";", "update", "title", "(", ")", ";", "}" ]
[ "enabledisable", "checking", "stored", "values", "for", "constant", "references" ]
[ "public", "void", "set", "stored", "ref", "check", "(", "boolean", "check", "stored", "refs", "option", ")", "{", "check", "for", "stored", "refs", "=", "check", "stored", "refs", "option", ";", "}" ]
[ "is", "record", "expired", "?" ]
[ "public", "boolean", "is", "expired", "(", ")", "{", "if", "(", "this", "expiration", "date", "=", "=", "null", ")", "{", "return", "false", ";", "}", "val", "exp", "date", "=", "zoned", "date", "time", "now", "(", "zone", "offset", "utc", ")", "truncated", "to", "(", "chrono", "unit", "seconds", ")", ";", "val", "zoned", "exp", "date", "=", "date", "time", "utils", "zoned", "date", "time", "of", "(", "this", "expiration", "date", ")", "truncated", "to", "(", "chrono", "unit", "seconds", ")", ";", "return", "exp", "date", "equals", "(", "zoned", "exp", "date", ")", "|", "|", "exp", "date", "is", "after", "(", "zoned", "exp", "date", ")", ";", "}" ]
[ "returns", "the", "name", "of", "the", "application" ]
[ "public", "string", "get", "name", "(", ")", "{", "return", "get", "class", "(", ")", "get", "simple", "name", "(", ")", ";", "}" ]
[ "find", "global", "session" ]
[ "public", "static", "global", "session", "find", "global", "session", "(", "string", "xid", ")", "{", "return", "find", "global", "session", "(", "xid", ",", "true", ")", ";", "}" ]
[ "unblocks", "{", "@", "link", "#", "close", "(", ")", "}" ]
[ "public", "void", "unblock", "close", "(", ")", "{", "block", "close", "latch", "count", "down", "(", ")", ";", "}" ]
[ "checks", "whether", "{", "@", "link", "date", "time", "format", "}", "pattern", "contains", "time", "zone", "-", "related", "field" ]
[ "private", "static", "boolean", "datetime", "format", "specifies", "zone", "(", "slice", "format", "string", ")", "{", "boolean", "quoted", "=", "false", ";", "for", "(", "char", "c", ":", "format", "string", "to", "string", "utf", "8", "(", ")", "to", "char", "array", "(", ")", ")", "{", "if", "(", "quoted", ")", "{", "if", "(", "c", "=", "=", "'", "\\", "'", "'", ")", "{", "quoted", "=", "false", ";", "}", "continue", ";", "}", "switch", "(", "c", ")", "{", "case", "'", "z", "'", ":", "case", "'", "z", "'", ":", "return", "true", ";", "case", "'", "\\", "'", "'", ":", "/", "/", "'", "'", "(", "two", "apostrophes", ")", "in", "a", "pattern", "denote", "single", "apostrophe", "and", "here", "we", "interpret", "this", "as", "\"", "start", "quote", "\"", "+", "\"", "end", "quote", "\"", "/", "/", "this", "has", "no", "impact", "on", "method", "'", "s", "result", "value", "quoted", "=", "true", ";", "break", ";", "}", "}", "return", "false", ";", "}" ]
[ "stop", "the", "o", "s", "gi", "framework", "synchronously" ]
[ "protected", "void", "stop", "framework", "(", ")", "{", "if", "(", "felix", "framework", "!", "=", "null", ")", "{", "try", "{", "felix", "framework", "stop", "(", ")", ";", "/", "/", "any", "bundles", "that", "linger", "after", "a", "few", "seconds", "might", "be", "the", "source", "/", "/", "of", "subtle", "problems", ",", "so", "wait", "for", "them", "to", "stop", "and", "report", "any", "problems", "framework", "event", "event", "=", "felix", "framework", "wait", "for", "stop", "(", "5000", ")", ";", "if", "(", "event", "get", "type", "(", ")", "=", "=", "framework", "event", "wait", "timedout", ")", "{", "msg", "error", "(", "this", ",", "\"", "stopping", "o", "s", "gi", "framework", "timed", "out", "after", "5", "seconds", "\"", ")", ";", "}", "felix", "framework", "=", "null", ";", "}", "catch", "(", "bundle", "exception", "|", "interrupted", "exception", "e", ")", "{", "msg", "error", "(", "this", ",", "\"", "failed", "to", "stop", "o", "s", "gi", "framework", "\"", ")", ";", "e", "print", "stack", "trace", "(", ")", ";", "}", "}", "}" ]
[ "add", "to", "the", "second", "input", "the", "union", "of", "the", "given", "operators" ]
[ "public", "void", "add", "second", "inputs", "(", "list", "<", "operator", "<", "in2", ">", ">", "inputs", ")", "{", "this", "input", "2", "=", "operator", "create", "union", "cascade", "(", "this", "input", "2", ",", "inputs", "to", "array", "(", "new", "operator", "[", "inputs", "size", "(", ")", "]", ")", ")", ";", "}" ]
[ "returns", "the", "slider", "'", "s", "style", "modifying", "the", "returned", "style", "may", "not", "have", "an", "effect", "until", "{", "@", "link", "#", "set", "style", "(", "progress", "bar", "style", ")", "}", "is", "called" ]
[ "public", "slider", "style", "get", "style", "(", ")", "{", "return", "(", "slider", "style", ")", "super", "get", "style", "(", ")", ";", "}" ]
[ "sets", "the", "minimum", "total", "size", "for", "the", "internal", "hash", "tables", "for", "example", ",", "if", "the", "initial", "capacity", "is", "{", "@", "code", "60", "}", ",", "and", "the", "concurrency", "level", "is", "{", "@", "code", "8", "}", ",", "then", "eight", "segments", "are", "created", ",", "each", "having", "a", "hash", "table", "of", "size", "eight", "providing", "a", "large", "enough", "estimate", "at", "construction", "time", "avoids", "the", "need", "for", "expensive", "resizing", "operations", "later", ",", "but", "setting", "this", "value", "unnecessarily", "high", "wastes", "memory" ]
[ "public", "cache", "builder", "<", "k", ",", "v", ">", "initial", "capacity", "(", "int", "initial", "capacity", ")", "{", "check", "state", "(", "this", "initial", "capacity", "=", "=", "unset", "int", ",", "\"", "initial", "capacity", "was", "already", "set", "to", "%", "s", "\"", ",", "this", "initial", "capacity", ")", ";", "check", "argument", "(", "initial", "capacity", ">", "=", "0", ")", ";", "this", "initial", "capacity", "=", "initial", "capacity", ";", "return", "this", ";", "}" ]
[ "escapes", "a", "{", "@", "code", "char", "}", "value", "that", "has", "no", "direct", "explicit", "value", "in", "the", "replacement", "array", "and", "lies", "outside", "the", "stated", "safe", "range", "subclasses", "should", "override", "this", "method", "to", "provide", "generalized", "escaping", "for", "characters", "note", "that", "arrays", "returned", "by", "this", "method", "must", "not", "be", "modified", "once", "they", "have", "been", "returned", "however", "it", "is", "acceptable", "to", "return", "the", "same", "array", "multiple", "times", "(", "even", "for", "different", "input", "characters", ")" ]
[ "protected", "abstract", "char", "[", "]", "escape", "unsafe", "(", "char", "c", ")", ";" ]
[ "{", "@", "inherit", "doc", "}" ]
[ "public", "builder", "<", "k", ",", "v", ">", "order", "values", "by", "(", "comparator", "<", "?", "super", "v", ">", "value", "comparator", ")", "{", "super", "order", "values", "by", "(", "value", "comparator", ")", ";", "return", "this", ";", "}" ]
[ "valid", "lines", ":", "function", ":", "start", "line", "number", ",", "end", "line", "number", ",", "execution", "count", ",", "function", "name", "function", ":", "start", "line", "number", ",", "execution", "count", ",", "function", "name" ]
[ "private", "boolean", "parse", "function", "(", "string", "line", ")", "{", "string", "line", "content", "=", "line", "substring", "(", "gcov", "function", "marker", "length", "(", ")", ")", ";", "string", "[", "]", "items", "=", "line", "content", "split", "(", "delimiter", ",", "-", "1", ")", ";", "if", "(", "items", "length", "!", "=", "4", "&", "&", "items", "length", "!", "=", "3", ")", "{", "logger", "log", "(", "level", "warning", ",", "\"", "gcov", "info", "contains", "invalid", "line", "\"", "+", "line", ")", ";", "return", "false", ";", "}", "try", "{", "/", "/", "ignore", "end", "line", "number", "since", "it", "'", "s", "redundant", "information", "int", "start", "line", "=", "integer", "parse", "int", "(", "items", "[", "0", "]", ")", ";", "long", "exec", "count", "=", "items", "length", "=", "=", "4", "?", "long", "parse", "long", "(", "items", "[", "2", "]", ")", ":", "long", "parse", "long", "(", "items", "[", "1", "]", ")", ";", "string", "function", "name", "=", "items", "length", "=", "=", "4", "?", "items", "[", "3", "]", ":", "items", "[", "2", "]", ";", "current", "source", "file", "coverage", "add", "line", "number", "(", "function", "name", ",", "start", "line", ")", ";", "current", "source", "file", "coverage", "add", "function", "execution", "(", "function", "name", ",", "exec", "count", ")", ";", "}", "catch", "(", "number", "format", "exception", "e", ")", "{", "logger", "log", "(", "level", "warning", ",", "\"", "gcov", "info", "contains", "invalid", "line", "\"", "+", "line", ")", ";", "return", "false", ";", "}", "return", "true", ";", "}" ]
[ "parse", "the", "given", ",", "comma", "-", "separated", "string", "into", "a", "list", "of", "{", "@", "code", "web", "socket", "extension", "}", "objects", "this", "method", "can", "be", "used", "to", "parse", "a", "\"", "sec", "-", "web", "socket", "-", "extension", "\"", "header" ]
[ "public", "static", "list", "<", "web", "socket", "extension", ">", "parse", "extensions", "(", "string", "extensions", ")", "{", "if", "(", "string", "utils", "has", "text", "(", "extensions", ")", ")", "{", "string", "[", "]", "tokens", "=", "string", "utils", "tokenize", "to", "string", "array", "(", "extensions", ",", "\"", ",", "\"", ")", ";", "list", "<", "web", "socket", "extension", ">", "result", "=", "new", "array", "list", "<", ">", "(", "tokens", "length", ")", ";", "for", "(", "string", "token", ":", "tokens", ")", "{", "result", "add", "(", "parse", "extension", "(", "token", ")", ")", ";", "}", "return", "result", ";", "}", "else", "{", "return", "collections", "empty", "list", "(", ")", ";", "}", "}" ]
[ "get", "pet", "{", "pet", "id", "}", ":", "find", "pet", "by", "id", "returns", "a", "single", "pet" ]
[ "default", "response", "entity", "<", "pet", ">", "get", "pet", "by", "id", "(", "long", "pet", "id", ")", "{", "get", "request", "(", ")", "if", "present", "(", "request", "-", ">", "{", "for", "(", "media", "type", "media", "type", ":", "media", "type", "parse", "media", "types", "(", "request", "get", "header", "(", "\"", "accept", "\"", ")", ")", ")", "{", "if", "(", "media", "type", "is", "compatible", "with", "(", "media", "type", "value", "of", "(", "\"", "application", "/", "json", "\"", ")", ")", ")", "{", "string", "example", "string", "=", "\"", "{", "\\", "\"", "photo", "urls", "\\", "\"", ":", "[", "\\", "\"", "photo", "urls", "\\", "\"", ",", "\\", "\"", "photo", "urls", "\\", "\"", "]", ",", "\\", "\"", "name", "\\", "\"", ":", "\\", "\"", "doggie", "\\", "\"", ",", "\\", "\"", "id", "\\", "\"", ":", "0", ",", "\\", "\"", "category", "\\", "\"", ":", "{", "\\", "\"", "name", "\\", "\"", ":", "\\", "\"", "default", "-", "name", "\\", "\"", ",", "\\", "\"", "id", "\\", "\"", ":", "6", "}", ",", "\\", "\"", "tags", "\\", "\"", ":", "[", "{", "\\", "\"", "name", "\\", "\"", ":", "\\", "\"", "name", "\\", "\"", ",", "\\", "\"", "id", "\\", "\"", ":", "1", "}", ",", "{", "\\", "\"", "name", "\\", "\"", ":", "\\", "\"", "name", "\\", "\"", ",", "\\", "\"", "id", "\\", "\"", ":", "1", "}", "]", ",", "\\", "\"", "status", "\\", "\"", ":", "\\", "\"", "available", "\\", "\"", "}", "\"", ";", "api", "util", "set", "example", "response", "(", "request", ",", "\"", "application", "/", "json", "\"", ",", "example", "string", ")", ";", "break", ";", "}", "if", "(", "media", "type", "is", "compatible", "with", "(", "media", "type", "value", "of", "(", "\"", "application", "/", "xml", "\"", ")", ")", ")", "{", "string", "example", "string", "=", "\"", "<", "pet", ">", "<", "id", ">", "123456789", "<", "/", "id", ">", "<", "name", ">", "doggie", "<", "/", "name", ">", "<", "photo", "urls", ">", "<", "photo", "urls", ">", "aeiou", "<", "/", "photo", "urls", ">", "<", "/", "photo", "urls", ">", "<", "tags", ">", "<", "/", "tags", ">", "<", "status", ">", "aeiou", "<", "/", "status", ">", "<", "/", "pet", ">", "\"", ";", "api", "util", "set", "example", "response", "(", "request", ",", "\"", "application", "/", "xml", "\"", ",", "example", "string", ")", ";", "break", ";", "}", "}", "}", ")", ";", "return", "new", "response", "entity", "<", ">", "(", "http", "status", "not", "implemented", ")", ";", "}" ]
[ "returns", "the", "underlying", "import", "by", "name", "structure" ]
[ "public", "import", "by", "name", "get", "import", "by", "name", "(", ")", "{", "return", "ibn", ";", "}" ]
[ "processing", "non", "-", "public", ",", "non", "-", "global", "symbols", "user", "should", "not", "then", "call", "{", "@", "link", "#", "process", "all", "symbols", "(", ")", "}", ";", "but", "has", "these", "other", "methods", "available", "to", "supplement", "this", "one", ":", "{", "@", "link", "#", "process", "global", "symbols", "no", "typedefs", "(", ")", "}", "and", "(", "@", "link", "#", "process", "public", "symbols", "(", ")", "}" ]
[ "private", "void", "process", "non", "public", "or", "global", "symbols", "(", ")", "throws", "cancelled", "exception", ",", "pdb", "exception", "{", "set", "<", "long", ">", "offsets", "remaining", "=", "get", "symbol", "group", "(", ")", "get", "offsets", "(", ")", ";", "for", "(", "long", "off", ":", "pdb", "get", "debug", "info", "(", ")", "get", "public", "symbol", "information", "(", ")", "get", "modified", "hash", "record", "symbol", "offsets", "(", ")", ")", "{", "monitor", "check", "canceled", "(", ")", ";", "offsets", "remaining", "remove", "(", "off", ")", ";", "}", "for", "(", "long", "off", ":", "pdb", "get", "debug", "info", "(", ")", "get", "global", "symbol", "information", "(", ")", "get", "modified", "hash", "record", "symbol", "offsets", "(", ")", ")", "{", "monitor", "check", "canceled", "(", ")", ";", "offsets", "remaining", "remove", "(", "off", ")", ";", "}", "set", "monitor", "message", "(", "\"", "pdb", ":", "applying", "\"", "+", "offsets", "remaining", "size", "(", ")", "+", "\"", "other", "symbol", "components", "\"", ")", ";", "monitor", "initialize", "(", "offsets", "remaining", "size", "(", ")", ")", ";", "/", "/", "get", "category", "utils", "(", ")", "set", "module", "typedefs", "category", "(", "null", ")", ";", "symbol", "group", "symbol", "group", "=", "get", "symbol", "group", "(", ")", ";", "abstract", "ms", "symbol", "iterator", "iter", "=", "symbol", "group", "iterator", "(", ")", ";", "for", "(", "long", "offset", ":", "offsets", "remaining", ")", "{", "monitor", "check", "canceled", "(", ")", ";", "iter", "init", "get", "by", "offset", "(", "offset", ")", ";", "abstract", "ms", "symbol", "symbol", "=", "iter", "peek", "(", ")", ";", "proc", "sym", "(", "iter", ")", ";", "monitor", "increment", "progress", "(", "1", ")", ";", "}", "}" ]
[ "2017", "-", "1", "-", "23", "07", ":", "33", ":", "23", ",", "-", "1", "-", "23", "07", ":", "33", ":", "59", "999" ]
[ "public", "static", "date", "end", "of", "minute", "(", "@", "not", "null", "final", "date", "date", ")", "{", "return", "new", "date", "(", "next", "minute", "(", "date", ")", "get", "time", "(", ")", "-", "1", ")", ";", "}" ]
[ "to", "test", "enum", "parameters", "to", "test", "enum", "parameters" ]
[ "public", "api", "response", "<", "void", ">", "test", "enum", "parameters", "with", "http", "info", "(", "list", "<", "string", ">", "enum", "header", "string", "array", ",", "string", "enum", "header", "string", ",", "list", "<", "string", ">", "enum", "query", "string", "array", ",", "string", "enum", "query", "string", ",", "integer", "enum", "query", "integer", ",", "double", "enum", "query", "double", ",", "list", "<", "string", ">", "enum", "form", "string", "array", ",", "string", "enum", "form", "string", ")", "throws", "api", "exception", "{", "http", "request", "builder", "local", "var", "request", "builder", "=", "test", "enum", "parameters", "request", "builder", "(", "enum", "header", "string", "array", ",", "enum", "header", "string", ",", "enum", "query", "string", "array", ",", "enum", "query", "string", ",", "enum", "query", "integer", ",", "enum", "query", "double", ",", "enum", "form", "string", "array", ",", "enum", "form", "string", ")", ";", "try", "{", "http", "response", "<", "input", "stream", ">", "local", "var", "response", "=", "member", "var", "http", "client", "send", "(", "local", "var", "request", "builder", "build", "(", ")", ",", "http", "response", "body", "handlers", "of", "input", "stream", "(", ")", ")", ";", "if", "(", "member", "var", "response", "interceptor", "!", "=", "null", ")", "{", "member", "var", "response", "interceptor", "accept", "(", "local", "var", "response", ")", ";", "}", "if", "(", "local", "var", "response", "status", "code", "(", ")", "/", "100", "!", "=", "2", ")", "{", "throw", "new", "api", "exception", "(", "local", "var", "response", "status", "code", "(", ")", ",", "\"", "test", "enum", "parameters", "call", "received", "non", "-", "success", "response", "\"", ",", "local", "var", "response", "headers", "(", ")", ",", "local", "var", "response", "body", "(", ")", "=", "=", "null", "?", "null", ":", "new", "string", "(", "local", "var", "response", "body", "(", ")", "read", "all", "bytes", "(", ")", ")", ")", ";", "}", "return", "new", "api", "response", "<", "void", ">", "(", "local", "var", "response", "status", "code", "(", ")", ",", "local", "var", "response", "headers", "(", ")", "map", "(", ")", ",", "null", ")", ";", "}", "catch", "(", "i", "o", "exception", "e", ")", "{", "throw", "new", "api", "exception", "(", "e", ")", ";", "}", "catch", "(", "interrupted", "exception", "e", ")", "{", "thread", "current", "thread", "(", ")", "interrupt", "(", ")", ";", "throw", "new", "api", "exception", "(", "e", ")", ";", "}", "}" ]
[ "get", "prefix", "ns", "boolean" ]
[ "public", "boolean", "get", "prefix", "ns", "boolean", "(", ")", "{", "return", "prefix", "ns", "boolean", ";", "}" ]
[ "creates", "a", "new", "file", "system", "for", "testing", "that", "supports", "the", "given", "features", "in", "addition", "to", "supporting", "symbolic", "links", "the", "file", "system", "is", "created", "initially", "having", "the", "following", "file", "structure", ":", "work", "dir", "a", "b", "g", "h", "-", ">", "a", "i", "j", "k", "l", "c", "d", "-", ">", "bi", "e", "f", "-", ">", "dontdelete", "dontdelete", "a", "b", "c", "symlinktodir", "-", ">", "workdir" ]
[ "static", "file", "system", "new", "test", "file", "system", "(", "feature", "supported", "features", ")", "throws", "i", "o", "exception", "{", "file", "system", "fs", "=", "jimfs", "new", "file", "system", "(", "configuration", "unix", "(", ")", "to", "builder", "(", ")", "set", "supported", "features", "(", "object", "arrays", "concat", "(", "symbolic", "links", ",", "supported", "features", ")", ")", "build", "(", ")", ")", ";", "files", "create", "directories", "(", "fs", "get", "path", "(", "\"", "dir", "/", "b", "/", "i", "/", "j", "/", "l", "\"", ")", ")", ";", "files", "create", "file", "(", "fs", "get", "path", "(", "\"", "dir", "/", "a", "\"", ")", ")", ";", "files", "create", "file", "(", "fs", "get", "path", "(", "\"", "dir", "/", "c", "\"", ")", ")", ";", "files", "create", "symbolic", "link", "(", "fs", "get", "path", "(", "\"", "dir", "/", "d", "\"", ")", ",", "fs", "get", "path", "(", "\"", "b", "/", "i", "\"", ")", ")", ";", "files", "create", "directory", "(", "fs", "get", "path", "(", "\"", "dir", "/", "e", "\"", ")", ")", ";", "files", "create", "symbolic", "link", "(", "fs", "get", "path", "(", "\"", "dir", "/", "f", "\"", ")", ",", "fs", "get", "path", "(", "\"", "/", "dontdelete", "\"", ")", ")", ";", "files", "create", "file", "(", "fs", "get", "path", "(", "\"", "dir", "/", "b", "/", "g", "\"", ")", ")", ";", "files", "create", "symbolic", "link", "(", "fs", "get", "path", "(", "\"", "dir", "/", "b", "/", "h", "\"", ")", ",", "fs", "get", "path", "(", "\"", "/", "a", "\"", ")", ")", ";", "files", "create", "file", "(", "fs", "get", "path", "(", "\"", "dir", "/", "b", "/", "i", "/", "j", "/", "k", "\"", ")", ")", ";", "files", "create", "directory", "(", "fs", "get", "path", "(", "\"", "/", "dontdelete", "\"", ")", ")", ";", "files", "create", "file", "(", "fs", "get", "path", "(", "\"", "/", "dontdelete", "/", "a", "\"", ")", ")", ";", "files", "create", "directory", "(", "fs", "get", "path", "(", "\"", "/", "dontdelete", "/", "b", "\"", ")", ")", ";", "files", "create", "file", "(", "fs", "get", "path", "(", "\"", "/", "dontdelete", "/", "c", "\"", ")", ")", ";", "files", "create", "symbolic", "link", "(", "fs", "get", "path", "(", "\"", "/", "symlinktodir", "\"", ")", ",", "fs", "get", "path", "(", "\"", "work", "/", "dir", "\"", ")", ")", ";", "return", "fs", ";", "}" ]
[ "return", "the", "compressed", "data", "using", "quality" ]
[ "public", "static", "byte", "[", "]", "compress", "by", "quality", "(", "final", "bitmap", "src", ",", "@", "int", "range", "(", "from", "=", "0", ",", "to", "=", "100", ")", "final", "int", "quality", ",", "final", "boolean", "recycle", ")", "{", "if", "(", "is", "empty", "bitmap", "(", "src", ")", ")", "return", "null", ";", "byte", "array", "output", "stream", "baos", "=", "new", "byte", "array", "output", "stream", "(", ")", ";", "src", "compress", "(", "bitmap", "compress", "format", "jpeg", ",", "quality", ",", "baos", ")", ";", "byte", "[", "]", "bytes", "=", "baos", "to", "byte", "array", "(", ")", ";", "if", "(", "recycle", "&", "&", "!", "src", "is", "recycled", "(", ")", ")", "src", "recycle", "(", ")", ";", "return", "bytes", ";", "}" ]
[ "gets", "the", "instruction", "that", "is", "equivalent", "to", "this", "one", ",", "except", "that", "it", "replaces", "incompatible", "registers", "with", "sequential", "registers", "starting", "at", "{", "@", "code", "0", "}", "(", "storing", "the", "result", ",", "if", "any", ",", "in", "register", "{", "@", "code", "0", "}", "as", "well", ")", "the", "sequence", "of", "instructions", "from", "{", "@", "link", "#", "expanded", "prefix", "}", "and", "{", "@", "link", "#", "expanded", "suffix", "}", "(", "if", "non", "-", "null", ")", "surrounding", "the", "result", "of", "a", "call", "to", "this", "method", "are", "the", "expanded", "transformation", "of", "this", "instance", ",", "and", "it", "is", "guaranteed", "that", "the", "number", "of", "low", "registers", "used", "will", "be", "the", "number", "returned", "by", "{", "@", "link", "#", "get", "minimum", "register", "requirement", "}" ]
[ "public", "dalv", "insn", "expanded", "version", "(", "bit", "set", "compat", "regs", ")", "{", "register", "spec", "list", "regs", "=", "registers", "with", "expanded", "registers", "(", "0", ",", "has", "result", "(", ")", ",", "compat", "regs", ")", ";", "return", "with", "registers", "(", "regs", ")", ";", "}" ]
[ "take", "an", "absolute", "path", ",", "split", "it", "into", "a", "list", "of", "elements", "if", "empty", ",", "the", "path", "is", "the", "root", "path" ]
[ "public", "static", "list", "<", "string", ">", "split", "path", "to", "elements", "(", "path", "path", ")", "{", "check", "argument", "(", "path", "is", "absolute", "(", ")", ",", "\"", "path", "is", "relative", "\"", ")", ";", "string", "uri", "path", "=", "path", "to", "uri", "(", ")", "get", "path", "(", ")", ";", "check", "argument", "(", "!", "uri", "path", "is", "empty", "(", ")", ",", "\"", "empty", "path", "\"", ")", ";", "if", "(", "\"", "/", "\"", "equals", "(", "uri", "path", ")", ")", "{", "/", "/", "special", "case", ":", "empty", "list", "return", "new", "array", "list", "<", ">", "(", "0", ")", ";", "}", "list", "<", "string", ">", "elements", "=", "new", "array", "list", "<", ">", "(", ")", ";", "int", "len", "=", "uri", "path", "length", "(", ")", ";", "int", "first", "element", "char", "=", "1", ";", "int", "end", "of", "element", "=", "uri", "path", "index", "of", "(", "'", "/", "'", ",", "first", "element", "char", ")", ";", "while", "(", "end", "of", "element", ">", "0", ")", "{", "elements", "add", "(", "uri", "path", "substring", "(", "first", "element", "char", ",", "end", "of", "element", ")", ")", ";", "first", "element", "char", "=", "end", "of", "element", "+", "1", ";", "end", "of", "element", "=", "first", "element", "char", "=", "=", "len", "?", "-", "1", ":", "uri", "path", "index", "of", "(", "'", "/", "'", ",", "first", "element", "char", ")", ";", "}", "/", "/", "expect", "a", "possible", "child", "element", "here", "if", "(", "first", "element", "char", "!", "=", "len", ")", "{", "elements", "add", "(", "uri", "path", "substring", "(", "first", "element", "char", ")", ")", ";", "}", "return", "elements", ";", "}" ]
[ "creates", "an", "empty", "{", "@", "code", "compact", "hash", "map", "}", "instance" ]
[ "public", "static", "<", "k", ",", "v", ">", "compact", "hash", "map", "<", "k", ",", "v", ">", "create", "(", ")", "{", "return", "new", "compact", "hash", "map", "<", ">", "(", ")", ";", "}" ]
[ "row", "identifier", "(", "may", "be", "null", ")" ]
[ "public", "d", "b", "d", "row", "identifier", "get", "row", "identifier", "(", ")", "{", "return", "null", ";", "}" ]
[ "trim", "leading", "and", "trailing", "whitespace", "from", "the", "given", "{", "@", "code", "string", "}" ]
[ "public", "static", "string", "trim", "whitespace", "(", "string", "str", ")", "{", "if", "(", "!", "has", "length", "(", "str", ")", ")", "{", "return", "str", ";", "}", "int", "begin", "index", "=", "0", ";", "int", "end", "index", "=", "str", "length", "(", ")", "-", "1", ";", "while", "(", "begin", "index", "<", "=", "end", "index", "&", "&", "character", "is", "whitespace", "(", "str", "char", "at", "(", "begin", "index", ")", ")", ")", "{", "begin", "index", "+", "+", ";", "}", "while", "(", "end", "index", ">", "begin", "index", "&", "&", "character", "is", "whitespace", "(", "str", "char", "at", "(", "end", "index", ")", ")", ")", "{", "end", "index", "-", "-", ";", "}", "return", "str", "substring", "(", "begin", "index", ",", "end", "index", "+", "1", ")", ";", "}" ]
[ "return", "the", "configure", "url", "path", "helper", "instance", "or", "a", "default", "(", "shared", ")", "instance" ]
[ "protected", "url", "path", "helper", "get", "url", "path", "helper", "or", "default", "(", ")", "{", "if", "(", "this", "url", "path", "helper", "!", "=", "null", ")", "{", "return", "this", "url", "path", "helper", ";", "}", "if", "(", "this", "default", "url", "path", "helper", "=", "=", "null", ")", "{", "this", "default", "url", "path", "helper", "=", "new", "url", "path", "helper", "(", ")", ";", "}", "return", "this", "default", "url", "path", "helper", ";", "}" ]
[ "model", "tests", "for", "class", "model" ]
[ "public", "void", "test", "class", "model", "(", ")", "{", "/", "/", "todo", ":", "test", "class", "model", "}" ]
[ "tests", "that", "we", "can", "replace", "tags", "in", "one", "function", "with", "tags", "from", "another", "note", ":", "the", "test", "programs", "must", "be", "modified", "a", "bit", "to", "facilitate", "this", "test", "specifically", "we", "have", "to", "add", "a", "function", "at", "the", "same", "address", "in", "both", "programs", ",", "then", "add", "tags", "to", "each", "program", ",", "then", "add", "those", "tags", "to", "the", "newly", "created", "functions" ]
[ "public", "void", "test", "function", "tag", "replace", "(", ")", "{", "try", "{", "load", "program", "(", "diff", "test", "p", "1", ")", ";", "load", "program", "(", "diff", "test", "p", "2", ")", ";", "function", "manager", "d", "b", "func", "mgr", "1", "=", "(", "function", "manager", "d", "b", ")", "diff", "test", "p", "1", "get", "function", "manager", "(", ")", ";", "function", "manager", "d", "b", "func", "mgr", "2", "=", "(", "function", "manager", "d", "b", ")", "diff", "test", "p", "2", "get", "function", "manager", "(", ")", ";", "/", "/", "create", "a", "function", "in", "program", "1", "int", "id", "=", "diff", "test", "p", "1", "start", "transaction", "(", "\"", "create", "1", "\"", ")", ";", "func", "mgr", "1", "create", "function", "(", "\"", "testfunc", "\"", ",", "addr", "(", "\"", "1002040", "\"", ")", ",", "new", "address", "set", "(", "addr", "(", "\"", "1002040", "\"", ")", ",", "addr", "(", "\"", "1002048", "\"", ")", ")", ",", "source", "type", "default", ")", ";", "diff", "test", "p", "1", "end", "transaction", "(", "id", ",", "true", ")", ";", "/", "/", "create", "a", "function", "in", "program", "2", "id", "=", "diff", "test", "p", "2", "start", "transaction", "(", "\"", "create", "2", "\"", ")", ";", "func", "mgr", "2", "create", "function", "(", "\"", "testfunc", "\"", ",", "addr", "(", "\"", "1002040", "\"", ")", ",", "new", "address", "set", "(", "addr", "(", "\"", "1002040", "\"", ")", ",", "addr", "(", "\"", "1002048", "\"", ")", ")", ",", "source", "type", "default", ")", ";", "diff", "test", "p", "2", "end", "transaction", "(", "id", ",", "true", ")", ";", "function", "f", "1", "=", "diff", "test", "p", "1", "get", "function", "manager", "(", ")", "get", "function", "at", "(", "addr", "(", "\"", "1002040", "\"", ")", ")", ";", "function", "f", "2", "=", "diff", "test", "p", "2", "get", "function", "manager", "(", ")", "get", "function", "at", "(", "addr", "(", "\"", "1002040", "\"", ")", ")", ";", "/", "/", "create", "a", "tag", "and", "add", "it", "to", "program", "1", "id", "=", "diff", "test", "p", "1", "start", "transaction", "(", "\"", "create", "1", "\"", ")", ";", "func", "mgr", "1", "get", "function", "tag", "manager", "(", ")", "create", "function", "tag", "(", "\"", "tag", "a", "\"", ",", "\"", "tag", "a", "comment", "\"", ")", ";", "func", "mgr", "1", "get", "function", "tag", "manager", "(", ")", "create", "function", "tag", "(", "\"", "tag", "b", "\"", ",", "\"", "tag", "b", "comment", "\"", ")", ";", "f", "1", "add", "tag", "(", "\"", "tag", "a", "\"", ")", ";", "f", "1", "add", "tag", "(", "\"", "tag", "b", "\"", ")", ";", "diff", "test", "p", "1", "end", "transaction", "(", "id", ",", "true", ")", ";", "/", "/", "create", "a", "tag", "and", "add", "it", "to", "program", "2", "id", "=", "diff", "test", "p", "2", "start", "transaction", "(", "\"", "create", "2", "\"", ")", ";", "func", "mgr", "2", "get", "function", "tag", "manager", "(", ")", "create", "function", "tag", "(", "\"", "tag", "c", "\"", ",", "\"", "tag", "c", "comment", "\"", ")", ";", "func", "mgr", "2", "get", "function", "tag", "manager", "(", ")", "create", "function", "tag", "(", "\"", "tag", "d", "\"", ",", "\"", "tag", "d", "comment", "\"", ")", ";", "func", "mgr", "2", "get", "function", "tag", "manager", "(", ")", "create", "function", "tag", "(", "\"", "tag", "e", "\"", ",", "\"", "tag", "e", "comment", "\"", ")", ";", "f", "2", "add", "tag", "(", "\"", "tag", "c", "\"", ")", ";", "f", "2", "add", "tag", "(", "\"", "tag", "d", "\"", ")", ";", "f", "2", "add", "tag", "(", "\"", "tag", "e", "\"", ")", ";", "diff", "test", "p", "2", "end", "transaction", "(", "id", ",", "true", ")", ";", "/", "/", "open", "the", "diff", "display", "and", "apply", "the", "merge", "open", "diff", "(", "diff", "test", "p", "1", ",", "diff", "test", "p", "2", ")", ";", "show", "apply", "settings", "(", ")", ";", "replace", "(", "function", "tag", "apply", "c", "b", ")", ";", "address", "set", "as", "=", "new", "address", "set", "(", "addr", "(", "\"", "1002040", "\"", ")", ",", "addr", "(", "\"", "1002040", "\"", ")", ")", ";", "set", "diff", "selection", "(", "as", ")", ";", "apply", "(", ")", ";", "/", "/", "check", "the", "results", "we", "should", "have", "both", "tags", "now", "in", "the", "target", "program", "/", "/", "(", "program", "1", ")", ",", "so", "check", "the", "number", "of", "tags", "and", "make", "sure", "the", "names", "are", "/", "/", "correct", "iterator", "<", "function", "tag", ">", "iter", "=", "f", "1", "get", "tags", "(", ")", "iterator", "(", ")", ";", "list", "<", "string", ">", "tag", "names", "=", "new", "array", "list", "<", ">", "(", ")", ";", "while", "(", "iter", "has", "next", "(", ")", ")", "{", "function", "tag", "tag", "=", "iter", "next", "(", ")", ";", "tag", "names", "add", "(", "tag", "get", "name", "(", ")", ")", ";", "}", "assert", "equals", "(", "tag", "names", "size", "(", ")", ",", "3", ")", ";", "assert", "true", "(", "tag", "names", "contains", "(", "\"", "tag", "c", "\"", ")", ")", ";", "assert", "true", "(", "tag", "names", "contains", "(", "\"", "tag", "d", "\"", ")", ")", ";", "assert", "true", "(", "tag", "names", "contains", "(", "\"", "tag", "e", "\"", ")", ")", ";", "}", "catch", "(", "invalid", "input", "exception", "|", "overlapping", "function", "exception", "e", ")", "{", "msg", "error", "(", "this", ",", "\"", "error", "setting", "up", "function", "tag", "diff", "test", "\"", ",", "e", ")", ";", "}", "}" ]
[ "{", "@", "inherit", "doc", "}" ]
[ "public", "dalv", "insn", "with", "register", "offset", "(", "int", "delta", ")", "{", "return", "new", "local", "snapshot", "(", "get", "position", "(", ")", ",", "locals", "with", "offset", "(", "delta", ")", ")", ";", "}" ]
[ "returns", "a", "fluent", "iterable", "that", "combines", "three", "iterables", "the", "returned", "iterable", "has", "an", "iterator", "that", "traverses", "the", "elements", "in", "{", "@", "code", "a", "}", ",", "followed", "by", "the", "elements", "in", "{", "@", "code", "b", "}", ",", "followed", "by", "the", "elements", "in", "{", "@", "code", "c", "}", "the", "source", "iterators", "are", "not", "polled", "until", "necessary", "the", "returned", "iterable", "'", "s", "iterator", "supports", "{", "@", "code", "remove", "(", ")", "}", "when", "the", "corresponding", "input", "iterator", "supports", "it", "<", "b", ">", "{", "@", "code", "stream", "}", "equivalent", ":", "<", "b", ">", "use", "nested", "calls", "to", "{", "@", "link", "stream", "#", "concat", "}", ",", "or", "see", "the", "advice", "in", "{", "@", "link", "#", "concat", "(", "iterable", ")", "}" ]
[ "public", "static", "<", "t", ">", "fluent", "iterable", "<", "t", ">", "concat", "(", "iterable", "<", "?", "extends", "t", ">", "a", ",", "iterable", "<", "?", "extends", "t", ">", "b", ",", "iterable", "<", "?", "extends", "t", ">", "c", ")", "{", "return", "concat", "no", "defensive", "copy", "(", "a", ",", "b", ",", "c", ")", ";", "}" ]
[ "configures", "which", "fields", "of", "the", "csv", "file", "containing", "vertices", "data", "should", "be", "included", "and", "which", "should", "be", "skipped", "the", "parser", "will", "look", "at", "the", "first", "{", "@", "code", "n", "}", "fields", ",", "where", "{", "@", "code", "n", "}", "is", "the", "length", "of", "the", "boolean", "array", "the", "parser", "will", "skip", "over", "all", "fields", "where", "the", "boolean", "value", "at", "the", "corresponding", "position", "in", "the", "array", "is", "{", "@", "code", "false", "}", "the", "result", "contains", "the", "fields", "where", "the", "corresponding", "position", "in", "the", "boolean", "array", "is", "{", "@", "code", "true", "}", "the", "number", "of", "fields", "in", "the", "result", "is", "consequently", "equal", "to", "the", "number", "of", "times", "that", "{", "@", "code", "true", "}", "occurs", "in", "the", "fields", "array" ]
[ "public", "graph", "csv", "reader", "include", "fields", "vertices", "(", "boolean", "vertex", "fields", ")", "{", "if", "(", "this", "vertex", "reader", "!", "=", "null", ")", "{", "this", "vertex", "reader", "include", "fields", "(", "vertex", "fields", ")", ";", "}", "return", "this", ";", "}" ]
[ "test", "map", "input", "compression", "ratio", "configuration", "utilities" ]
[ "public", "void", "test", "input", "compression", "ratio", "configuration", "(", ")", "throws", "exception", "{", "configuration", "conf", "=", "new", "configuration", "(", ")", ";", "float", "ratio", "=", "0", "567f", ";", "compression", "emulation", "util", "set", "map", "input", "compression", "emulation", "ratio", "(", "conf", ",", "ratio", ")", ";", "assert", "equals", "(", "ratio", ",", "compression", "emulation", "util", "get", "map", "input", "compression", "emulation", "ratio", "(", "conf", ")", ",", "0", "0d", ")", ";", "}" ]
[ "find", "the", "fields", "constant", "that", "matches", "name", ",", "or", "null", "if", "its", "not", "found" ]
[ "public", "static", "fields", "find", "by", "name", "(", "string", "name", ")", "{", "return", "by", "name", "get", "(", "name", ")", ";", "}" ]
[ "return", "true", "if", "this", "200", "response", "object", "is", "equal", "to", "o" ]
[ "public", "boolean", "equals", "(", "object", "o", ")", "{", "if", "(", "this", "=", "=", "o", ")", "{", "return", "true", ";", "}", "if", "(", "o", "=", "=", "null", "|", "|", "get", "class", "(", ")", "!", "=", "o", "get", "class", "(", ")", ")", "{", "return", "false", ";", "}", "model", "2", "0", "0", "response", "2", "0", "0response", "=", "(", "model", "2", "0", "0", "response", ")", "o", ";", "return", "objects", "equals", "(", "this", "name", ",", "2", "0", "0response", "name", ")", "&", "&", "objects", "equals", "(", "this", "property", "class", ",", "2", "0", "0response", "property", "class", ")", ";", "}" ]
[ "method", "that", "removes", "a", "child", "from", "the", "children", "set" ]
[ "public", "synchronized", "boolean", "remove", "child", "(", "string", "child", ")", "{", "if", "(", "children", "=", "=", "null", ")", "{", "return", "false", ";", "}", "return", "children", "remove", "(", "child", ")", ";", "}" ]
[ "bind", "the", "given", "prefix", "to", "the", "given", "namespace" ]
[ "public", "void", "bind", "namespace", "uri", "(", "string", "prefix", ",", "string", "namespace", "uri", ")", "{", "assert", "not", "null", "(", "prefix", ",", "\"", "no", "prefix", "given", "\"", ")", ";", "assert", "not", "null", "(", "namespace", "uri", ",", "\"", "no", "namespace", "uri", "given", "\"", ")", ";", "if", "(", "x", "m", "l", "constants", "default", "ns", "prefix", "equals", "(", "prefix", ")", ")", "{", "this", "default", "namespace", "uri", "=", "namespace", "uri", ";", "}", "else", "{", "this", "prefix", "to", "namespace", "uri", "put", "(", "prefix", ",", "namespace", "uri", ")", ";", "set", "<", "string", ">", "prefixes", "=", "this", "namespace", "uri", "to", "prefixes", "compute", "if", "absent", "(", "namespace", "uri", ",", "k", "-", ">", "new", "linked", "hash", "set", "<", ">", "(", ")", ")", ";", "prefixes", "add", "(", "prefix", ")", ";", "}", "}" ]
[ "whether", "the", "theme", "is", "a", "dark", "one" ]
[ "public", "final", "boolean", "is", "dark", "(", ")", "{", "return", "dark", ";", "}" ]
[ "return", "the", "simple", "class", "name", "of", "a", "plugin", "as", "{", "@", "code", "string", "}" ]
[ "public", "static", "string", "simple", "name", "(", "plugin", "desc", "<", "?", ">", "plugin", ")", "{", "return", "plugin", "plugin", "class", "(", ")", "get", "simple", "name", "(", ")", ";", "}" ]
[ "whether", "or", "not", "version", "conflicts", "cause", "the", "action", "to", "abort" ]
[ "public", "boolean", "is", "abort", "on", "version", "conflict", "(", ")", "{", "return", "abort", "on", "version", "conflict", ";", "}" ]
[ "{", "@", "inherit", "doc", "}" ]
[ "public", "final", "void", "write", "to", "(", "dex", "file", "file", ",", "annotated", "output", "out", ")", "{", "out", "align", "to", "(", "alignment", ")", ";", "try", "{", "if", "(", "write", "size", "<", "0", ")", "{", "throw", "new", "unsupported", "operation", "exception", "(", "\"", "write", "size", "is", "unknown", "\"", ")", ";", "}", "out", "assert", "cursor", "(", "get", "absolute", "offset", "(", ")", ")", ";", "}", "catch", "(", "runtime", "exception", "ex", ")", "{", "throw", "exception", "with", "context", "with", "context", "(", "ex", ",", "\"", "while", "writing", "\"", "+", "this", ")", ";", "}", "write", "to", "0", "(", "file", ",", "out", ")", ";", "}" ]
[ "correct", "the", "usage", "of", "group", "capacity" ]
[ "private", "void", "correct", "group", "usage", "(", ")", "{", "long", "last", "id", "=", "0", ";", "int", "page", "size", "=", "100", ";", "while", "(", "true", ")", "{", "list", "<", "group", "capacity", ">", "group", "capacity", "list", "=", "group", "capacity", "persist", "service", "get", "capacity", "list", "4", "correct", "usage", "(", "last", "id", ",", "page", "size", ")", ";", "if", "(", "group", "capacity", "list", "is", "empty", "(", ")", ")", "{", "break", ";", "}", "last", "id", "=", "group", "capacity", "list", "get", "(", "group", "capacity", "list", "size", "(", ")", "-", "1", ")", "get", "id", "(", ")", ";", "for", "(", "group", "capacity", "group", "capacity", ":", "group", "capacity", "list", ")", "{", "string", "group", "=", "group", "capacity", "get", "group", "(", ")", ";", "group", "capacity", "persist", "service", "correct", "usage", "(", "group", ",", "time", "utils", "get", "current", "time", "(", ")", ")", ";", "}", "try", "{", "thread", "sleep", "(", "100", ")", ";", "}", "catch", "(", "interrupted", "exception", "e", ")", "{", "/", "/", "ignore", "}", "}", "}" ]
[ ",", ",", "\"", "\"" ]
[ "public", "static", "string", "get", "short", "class", "name", "(", "final", "string", "class", "name", ")", "{", "return", "class", "utils", "get", "short", "class", "name", "(", "class", "name", ")", ";", "}" ]
[ "watch", "the", "pods", "selected", "by", "labels", "and", "do", "the", "{", "@", "link", "watch", "callback", "handler", "}" ]
[ "kubernetes", "watch", "watch", "pods", "and", "do", "callback", "(", "map", "<", "string", ",", "string", ">", "labels", ",", "watch", "callback", "handler", "<", "kubernetes", "pod", ">", "pod", "callback", "handler", ")", ";" ]
[ "get", "the", "number", "of", "partitions", "written", "by", "an", "output", "stream", "this", "is", "for", "testing" ]
[ "public", "static", "int", "get", "partitions", "written", "(", "f", "s", "data", "output", "stream", "output", "stream", ")", "{", "swift", "native", "output", "stream", "snos", "=", "get", "swift", "native", "output", "stream", "(", "output", "stream", ")", ";", "return", "snos", "get", "partitions", "written", "(", ")", ";", "}" ]
[ "returns", "the", "section", "number" ]
[ "public", "int", "get", "section", "number", "(", ")", "{", "return", "section", "number", ";", "}" ]
[ "create", "a", "{", "@", "link", "consumer", "record", "}", "with", "{", "@", "code", "null", "}", "-", "key", "and", "the", "given", "topic", "name", ",", "value", ",", "headers", ",", "and", "timestamp", "does", "not", "auto", "advance", "internally", "tracked", "time" ]
[ "public", "consumer", "record", "<", "byte", "[", "]", ",", "byte", "[", "]", ">", "create", "(", "final", "string", "topic", "name", ",", "final", "v", "value", ",", "final", "headers", "headers", ",", "final", "long", "timestamp", "ms", ")", "{", "return", "create", "(", "topic", "name", ",", "null", ",", "value", ",", "headers", ",", "timestamp", "ms", ")", ";", "}" ]
[ "show", "the", "update", "notification" ]
[ "public", "static", "void", "show", "update", "(", "@", "not", "null", "final", "project", "project", ",", "final", "notification", "listener", "listener", ")", "{", "final", "notification", "notification", "=", "create", "notification", "(", "material", "theme", "bundle", "message", "(", "\"", "notification", "update", "title", "\"", ",", "m", "t", "ui", "utils", "get", "version", "(", ")", ")", ",", "material", "theme", "bundle", "message", "(", "\"", "notification", "update", "content", "\"", ")", ",", "channel", "+", "\"", "update", "\"", ",", "notification", "type", "information", ",", "listener", ")", ";", "show", "full", "notification", "(", "project", ",", "notification", ")", ";", "}" ]
[ "generates", "the", "layout", "objects", "for", "the", "given", "index", "and", "proxy", "object" ]
[ "public", "void", "add", "layouts", "(", "list", "<", "row", "layout", ">", "list", ",", "int", "index", ",", "proxy", "obj", "<", "?", ">", "proxy", ")", "{", "int", "n", "=", "rows", "size", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "n", ";", "i", "+", "+", ")", "{", "row", "row", "=", "rows", "get", "(", "i", ")", ";", "row", "layout", "l", "=", "row", "get", "layout", "(", "index", ",", "proxy", ",", "base", "row", "i", "d", "+", "i", ")", ";", "if", "(", "l", "!", "=", "null", ")", "{", "list", "add", "(", "l", ")", ";", "}", "}", "}" ]
[ "remove", "xattr", "of", "a", "file", "or", "directory", "value", "in", "x", "attr", "parameter", "is", "ignored", "the", "name", "must", "be", "prefixed", "with", "the", "namespace", "followed", "by", "\"", "\"", "for", "example", ",", "\"", "user", "attr", "\"", "refer", "to", "the", "hdfs", "extended", "attributes", "user", "documentation", "for", "details" ]
[ "void", "remove", "x", "attr", "(", "string", "src", ",", "x", "attr", "x", "attr", ")", "throws", "i", "o", "exception", ";" ]
[ "return", "the", "current", "limit" ]
[ "public", "int", "get", "limit", "(", ")", "{", "return", "limit", ";", "}" ]
[ "replaces", "the", "selection", "the", "result", "depends", "on", "which", "insertion", "mode", "is", "currently", "active", ":", "insert", "mode", "replaces", "the", "selection", "with", "the", "replace", "string", "or", ",", "if", "there", "is", "no", "selection", ",", "inserts", "at", "the", "current", "caret", "offset", "overwrite", "mode", "replaces", "contents", "at", "the", "current", "selection", "start" ]
[ "public", "void", "replace", "(", "string", "replace", "string", ",", "boolean", "is", "hex", "string", ")", "{", "handle", "selected", "pre", "modify", "(", ")", ";", "byte", "[", "]", "replace", "data", "=", "replace", "string", "get", "bytes", "(", "charset", "default", "charset", "(", ")", ")", ";", "if", "(", "is", "hex", "string", ")", "{", "replace", "data", "=", "hex", "string", "to", "byte", "(", "replace", "string", ")", ";", "}", "byte", "buffer", "new", "selection", "=", "byte", "buffer", "wrap", "(", "replace", "data", ")", ";", "if", "(", "is", "inserting", ")", "{", "content", "insert", "(", "new", "selection", ",", "start", "position", ")", ";", "}", "else", "{", "new", "selection", "limit", "(", "(", "int", ")", "math", "min", "(", "new", "selection", "limit", "(", ")", ",", "content", "length", "(", ")", "-", "start", "position", ")", ")", ";", "content", "overwrite", "(", "new", "selection", ",", "start", "position", ")", ";", "}", "end", "position", "=", "start", "position", "+", "new", "selection", "limit", "(", ")", "-", "new", "selection", "position", "(", ")", ";", "caret", "stick", "to", "start", "=", "false", ";", "redraw", "text", "areas", "(", "true", ")", ";", "restore", "state", "after", "modify", "(", ")", ";", "}" ]
[ "returns", "a", "new", "proxy", "for", "{", "@", "code", "interface", "type", "}", "proxies", "of", "the", "same", "interface", "are", "equal", "to", "each", "other", "if", "the", "{", "@", "link", "dummy", "proxy", "}", "instance", "that", "created", "the", "proxies", "are", "equal" ]
[ "final", "<", "t", ">", "t", "new", "proxy", "(", "type", "token", "<", "t", ">", "interface", "type", ")", "{", "set", "<", "class", "<", "?", ">", ">", "interface", "classes", "=", "sets", "new", "linked", "hash", "set", "(", ")", ";", "interface", "classes", "add", "all", "(", "interface", "type", "get", "types", "(", ")", "interfaces", "(", ")", "raw", "types", "(", ")", ")", ";", "/", "/", "make", "the", "proxy", "serializable", "to", "work", "with", "serializable", "tester", "interface", "classes", "add", "(", "serializable", "class", ")", ";", "object", "dummy", "=", "proxy", "new", "proxy", "instance", "(", "interface", "classes", "iterator", "(", ")", "next", "(", ")", "get", "class", "loader", "(", ")", ",", "interface", "classes", "to", "array", "(", "new", "class", "<", "?", ">", "[", "interface", "classes", "size", "(", ")", "]", ")", ",", "new", "dummy", "handler", "(", "interface", "type", ")", ")", ";", "@", "suppress", "warnings", "(", "\"", "unchecked", "\"", ")", "/", "/", "interface", "type", "is", "t", "t", "result", "=", "(", "t", ")", "dummy", ";", "return", "result", ";", "}" ]
[ "return", "true", "if", "this", "nullable", "class", "object", "is", "equal", "to", "o" ]
[ "public", "boolean", "equals", "(", "object", "o", ")", "{", "if", "(", "this", "=", "=", "o", ")", "{", "return", "true", ";", "}", "if", "(", "o", "=", "=", "null", "|", "|", "get", "class", "(", ")", "!", "=", "o", "get", "class", "(", ")", ")", "{", "return", "false", ";", "}", "nullable", "class", "nullable", "class", "=", "(", "nullable", "class", ")", "o", ";", "return", "objects", "equals", "(", "this", "integer", "prop", ",", "nullable", "class", "integer", "prop", ")", "&", "&", "objects", "equals", "(", "this", "number", "prop", ",", "nullable", "class", "number", "prop", ")", "&", "&", "objects", "equals", "(", "this", "boolean", "prop", ",", "nullable", "class", "boolean", "prop", ")", "&", "&", "objects", "equals", "(", "this", "string", "prop", ",", "nullable", "class", "string", "prop", ")", "&", "&", "objects", "equals", "(", "this", "date", "prop", ",", "nullable", "class", "date", "prop", ")", "&", "&", "objects", "equals", "(", "this", "datetime", "prop", ",", "nullable", "class", "datetime", "prop", ")", "&", "&", "objects", "equals", "(", "this", "array", "nullable", "prop", ",", "nullable", "class", "array", "nullable", "prop", ")", "&", "&", "objects", "equals", "(", "this", "array", "and", "items", "nullable", "prop", ",", "nullable", "class", "array", "and", "items", "nullable", "prop", ")", "&", "&", "objects", "equals", "(", "this", "array", "items", "nullable", ",", "nullable", "class", "array", "items", "nullable", ")", "&", "&", "objects", "equals", "(", "this", "object", "nullable", "prop", ",", "nullable", "class", "object", "nullable", "prop", ")", "&", "&", "objects", "equals", "(", "this", "object", "and", "items", "nullable", "prop", ",", "nullable", "class", "object", "and", "items", "nullable", "prop", ")", "&", "&", "objects", "equals", "(", "this", "object", "items", "nullable", ",", "nullable", "class", "object", "items", "nullable", ")", "&", "&", "objects", "equals", "(", "this", "additional", "properties", ",", "nullable", "class", "additional", "properties", ")", "&", "&", "super", "equals", "(", "o", ")", ";", "}" ]
[ "pops", "the", "top", "instruction", "offset", "value", "from", "the", "stack" ]
[ "public", "instruction", "offset", "value", "opop", "(", ")", "{", "return", "pop", "(", ")", "instruction", "offset", "value", "(", ")", ";", "}" ]
[ "request", "the", "preview", "to", "be", "rendered", "again" ]
[ "public", "void", "request", "render", "(", ")", "{", "if", "(", "surface", "type", "=", "=", "surface", "type", "surface", "view", ")", "{", "if", "(", "gl", "surface", "view", "!", "=", "null", ")", "{", "gl", "surface", "view", "request", "render", "(", ")", ";", "}", "}", "else", "if", "(", "surface", "type", "=", "=", "surface", "type", "texture", "view", ")", "{", "if", "(", "gl", "texture", "view", "!", "=", "null", ")", "{", "gl", "texture", "view", "request", "render", "(", ")", ";", "}", "}", "}" ]
[ "get", "name", "boolean" ]
[ "public", "boolean", "get", "name", "boolean", "(", ")", "{", "return", "name", "boolean", ";", "}" ]
[ "if", "{", "@", "link", "#", "set", "use", "next", "action", "use", "next", "action", "}", "is", "{", "@", "code", "true", "}", ",", "sets", "whether", "the", "next", "action", "should", "also", "be", "used", "in", "compact", "view", "has", "no", "effect", "if", "{", "@", "link", "#", "set", "use", "next", "action", "use", "next", "action", "}", "is", "{", "@", "code", "false", "}" ]
[ "public", "void", "set", "use", "next", "action", "in", "compact", "view", "(", "boolean", "use", "next", "action", "in", "compact", "view", ")", "{", "if", "(", "this", "use", "next", "action", "in", "compact", "view", "!", "=", "use", "next", "action", "in", "compact", "view", ")", "{", "this", "use", "next", "action", "in", "compact", "view", "=", "use", "next", "action", "in", "compact", "view", ";", "invalidate", "(", ")", ";", "}", "}" ]
[ "initialize", "services", "used" ]
[ "private", "void", "initialize", "services", "(", ")", "{", "dtm", "service", "=", "tool", "get", "service", "(", "data", "type", "manager", "service", "class", ")", ";", "adapter", "=", "new", "data", "type", "manager", "change", "listener", "adapter", "(", ")", "{", "@", "override", "public", "void", "favorites", "changed", "(", "data", "type", "manager", "dtm", ",", "data", "type", "path", "path", ",", "boolean", "is", "favorite", ")", "{", "favorites", "update", "manager", "update", "(", ")", ";", "}", "}", ";", "dtm", "service", "add", "data", "type", "manager", "change", "listener", "(", "adapter", ")", ";", "}" ]
[ "right", "before", "visiting", "the", "given", "sub", "{", "@", "link", "element", "}", "the", "sub", "element", "may", "be", "a", "child", "of", "an", "{", "@", "link", "i", "node", "directory", "}", "or", "a", "snapshot", "in", "{", "@", "link", "directory", "snapshottable", "feature", "}" ]
[ "default", "void", "pre", "visit", "sub", "(", "element", "sub", ",", "int", "index", ",", "boolean", "is", "last", ")", "{", "}" ]
[ "returns", "a", "stream", "of", "all", "pending", "tasks", "this", "is", "similar", "to", "{", "@", "link", "#", "get", "queue", "(", ")", "}", "but", "will", "expose", "the", "originally", "submitted", "{", "@", "link", "runnable", "}", "instances", "rather", "than", "potentially", "wrapped", "ones" ]
[ "public", "stream", "<", "runnable", ">", "get", "tasks", "(", ")", "{", "return", "this", "get", "queue", "(", ")", "stream", "(", ")", "map", "(", "this", ":", ":", "unwrap", ")", ";", "}" ]