docstring_tokens
list
code_tokens
list
[ "the", "settings", "defined", "by", "ccr" ]
[ "return", "ccr", "settings", "get", "settings", "(", ")", ";" ]
[ "the", "optional", "engine", "factory", "for", "ccr", "this", "method", "inspects", "the", "index", "settings", "for", "the", "{", "@", "link", "ccr", "settings", "#", "ccr", "following", "index", "setting", "}", "setting", "to", "determine", "whether", "or", "not", "the", "engine", "implementation", "should", "be", "a", "following", "engine" ]
[ "if", "(", "ccr", "following", "index", "setting", "get", "(", "index", "settings", "get", "settings", "(", ")", ")", ")", "{", "return", "optional", "of", "(", "new", "following", "engine", "factory", "(", ")", ")", ";", "}", "else", "{", "return", "optional", "empty", "(", ")", ";", "}" ]
[ "returns", "target", "class", "if", "proxetta", "applied", "on", "given", "class", "if", "not", "returns", "given", "class", "as", "result" ]
[ "final", "string", "name", "=", "proxy", "get", "name", "(", ")", ";", "if", "(", "name", "ends", "with", "(", "proxetta", "names", "proxy", "class", "name", "suffix", ")", ")", "{", "return", "proxy", "get", "superclass", "(", ")", ";", "}", "if", "(", "name", "ends", "with", "(", "proxetta", "names", "wrapper", "class", "name", "suffix", ")", ")", "{", "return", "get", "target", "wrapper", "type", "(", "proxy", ")", ";", "}", "return", "proxy", ";" ]
[ "injects", "some", "target", "instance", "into", "{" ]
[ "try", "{", "final", "field", "field", "=", "wrapper", "get", "class", "(", ")", "get", "field", "(", "target", "field", "name", ")", ";", "field", "set", "accessible", "(", "true", ")", ";", "field", "set", "(", "wrapper", ",", "target", ")", ";", "}", "catch", "(", "exception", "ex", ")", "{", "throw", "new", "proxetta", "exception", "(", "ex", ")", ";", "}" ]
[ "injects", "target", "instance", "into", "proxy", "using", "default", "target", "field", "name" ]
[ "inject", "target", "into", "wrapper", "(", "target", ",", "wrapper", ",", "proxetta", "names", "wrapper", "target", "field", "name", ")", ";" ]
[ "returns", "wrapper", "target", "type" ]
[ "try", "{", "final", "field", "field", "=", "wrapper", "class", "get", "declared", "field", "(", "proxetta", "names", "wrapper", "target", "field", "name", ")", ";", "return", "field", "get", "type", "(", ")", ";", "}", "catch", "(", "no", "such", "field", "exception", "nsfex", ")", "{", "throw", "new", "proxetta", "exception", "(", "nsfex", ")", ";", "}" ]
[ "returns", "the", "first", "codec", "capable", "of", "encoding", "the", "specified", "mime", "type", "or", "null", "if", "no", "match", "was", "found" ]
[ "int", "num", "codecs", "=", "media", "codec", "list", "get", "codec", "count", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "num", "codecs", ";", "i", "+", "+", ")", "{", "media", "codec", "info", "codec", "info", "=", "media", "codec", "list", "get", "codec", "info", "at", "(", "i", ")", ";", "if", "(", "!", "codec", "info", "is", "encoder", "(", ")", ")", "{", "continue", ";", "}", "string", "[", "]", "types", "=", "codec", "info", "get", "supported", "types", "(", ")", ";", "for", "(", "int", "j", "=", "0", ";", "j", "<", "types", "length", ";", "j", "+", "+", ")", "{", "if", "(", "types", "[", "j", "]", "equals", "ignore", "case", "(", "mime", "type", ")", ")", "{", "return", "codec", "info", ";", "}", "}", "}", "return", "null", ";" ]
[ "<", "code", ">", "optional", "string", "foo", "=", "1", ";", "<", "/", "code", ">" ]
[ "java", "lang", "object", "ref", "=", "foo", ";", "if", "(", "ref", "instanceof", "java", "lang", "string", ")", "{", "return", "(", "java", "lang", "string", ")", "ref", ";", "}", "else", "{", "com", "google", "protobuf", "byte", "string", "bs", "=", "(", "com", "google", "protobuf", "byte", "string", ")", "ref", ";", "java", "lang", "string", "s", "=", "bs", "to", "string", "utf", "8", "(", ")", ";", "if", "(", "bs", "is", "valid", "utf", "8", "(", ")", ")", "{", "foo", "=", "s", ";", "}", "return", "s", ";", "}" ]
[ "<", "code", ">", "optional", "string", "foo", "=", "1", ";", "<", "/", "code", ">" ]
[ "java", "lang", "object", "ref", "=", "foo", ";", "if", "(", "ref", "instanceof", "java", "lang", "string", ")", "{", "com", "google", "protobuf", "byte", "string", "b", "=", "com", "google", "protobuf", "byte", "string", "copy", "from", "utf", "8", "(", "(", "java", "lang", "string", ")", "ref", ")", ";", "foo", "=", "b", ";", "return", "b", ";", "}", "else", "{", "return", "(", "com", "google", "protobuf", "byte", "string", ")", "ref", ";", "}" ]
[ "<", "code", ">", "optional", "second", "msg", "blah", "=", "2", ";", "<", "/", "code", ">" ]
[ "return", "blah", ";" ]
[ "<", "code", ">", "optional", "second", "msg", "blah", "=", "2", ";", "<", "/", "code", ">" ]
[ "return", "blah", ";" ]
[ "<", "code", ">", "optional", "string", "foo", "=", "1", ";", "<", "/", "code", ">" ]
[ "java", "lang", "object", "ref", "=", "foo", ";", "if", "(", "!", "(", "ref", "instanceof", "java", "lang", "string", ")", ")", "{", "java", "lang", "string", "s", "=", "(", "(", "com", "google", "protobuf", "byte", "string", ")", "ref", ")", "to", "string", "utf", "8", "(", ")", ";", "foo", "=", "s", ";", "return", "s", ";", "}", "else", "{", "return", "(", "java", "lang", "string", ")", "ref", ";", "}" ]
[ "<", "code", ">", "optional", "string", "foo", "=", "1", ";", "<", "/", "code", ">" ]
[ "java", "lang", "object", "ref", "=", "foo", ";", "if", "(", "ref", "instanceof", "string", ")", "{", "com", "google", "protobuf", "byte", "string", "b", "=", "com", "google", "protobuf", "byte", "string", "copy", "from", "utf", "8", "(", "(", "java", "lang", "string", ")", "ref", ")", ";", "foo", "=", "b", ";", "return", "b", ";", "}", "else", "{", "return", "(", "com", "google", "protobuf", "byte", "string", ")", "ref", ";", "}" ]
[ "<", "code", ">", "optional", "string", "foo", "=", "1", ";", "<", "/", "code", ">" ]
[ "if", "(", "value", "=", "=", "null", ")", "{", "throw", "new", "null", "pointer", "exception", "(", ")", ";", "}", "bit", "field", "0", "|", "=", "0x", "0", "0", "0", "0", "0", "0", "0", "1", ";", "foo", "=", "value", ";", "on", "changed", "(", ")", ";", "return", "this", ";" ]
[ "<", "code", ">", "optional", "second", "msg", "blah", "=", "2", ";", "<", "/", "code", ">" ]
[ "if", "(", "blah", "builder", "=", "=", "null", ")", "{", "return", "blah", ";", "}", "else", "{", "return", "blah", "builder", "get", "message", "(", ")", ";", "}" ]
[ "<", "code", ">", "optional", "second", "msg", "blah", "=", "2", ";", "<", "/", "code", ">" ]
[ "if", "(", "blah", "builder", "=", "=", "null", ")", "{", "if", "(", "value", "=", "=", "null", ")", "{", "throw", "new", "null", "pointer", "exception", "(", ")", ";", "}", "blah", "=", "value", ";", "on", "changed", "(", ")", ";", "}", "else", "{", "blah", "builder", "set", "message", "(", "value", ")", ";", "}", "bit", "field", "0", "|", "=", "0x", "0", "0", "0", "0", "0", "0", "0", "2", ";", "return", "this", ";" ]
[ "<", "code", ">", "optional", "second", "msg", "blah", "=", "2", ";", "<", "/", "code", ">" ]
[ "if", "(", "blah", "builder", "=", "=", "null", ")", "{", "blah", "=", "builder", "for", "value", "build", "(", ")", ";", "on", "changed", "(", ")", ";", "}", "else", "{", "blah", "builder", "set", "message", "(", "builder", "for", "value", "build", "(", ")", ")", ";", "}", "bit", "field", "0", "|", "=", "0x", "0", "0", "0", "0", "0", "0", "0", "2", ";", "return", "this", ";" ]
[ "<", "code", ">", "optional", "second", "msg", "blah", "=", "2", ";", "<", "/", "code", ">" ]
[ "if", "(", "blah", "builder", "=", "=", "null", ")", "{", "if", "(", "(", "(", "bit", "field", "0", "&", "0x", "0", "0", "0", "0", "0", "0", "0", "2", ")", "=", "=", "0x", "0", "0", "0", "0", "0", "0", "0", "2", ")", "&", "&", "blah", "!", "=", "org", "springframework", "protobuf", "second", "msg", "get", "default", "instance", "(", ")", ")", "{", "blah", "=", "org", "springframework", "protobuf", "second", "msg", "new", "builder", "(", "blah", ")", "merge", "from", "(", "value", ")", "build", "partial", "(", ")", ";", "}", "else", "{", "blah", "=", "value", ";", "}", "on", "changed", "(", ")", ";", "}", "else", "{", "blah", "builder", "merge", "from", "(", "value", ")", ";", "}", "bit", "field", "0", "|", "=", "0x", "0", "0", "0", "0", "0", "0", "0", "2", ";", "return", "this", ";" ]
[ "<", "code", ">", "optional", "second", "msg", "blah", "=", "2", ";", "<", "/", "code", ">" ]
[ "if", "(", "blah", "builder", "=", "=", "null", ")", "{", "blah", "=", "org", "springframework", "protobuf", "second", "msg", "get", "default", "instance", "(", ")", ";", "on", "changed", "(", ")", ";", "}", "else", "{", "blah", "builder", "clear", "(", ")", ";", "}", "bit", "field", "0", "=", "(", "bit", "field", "0", "&", "~", "0x", "0", "0", "0", "0", "0", "0", "0", "2", ")", ";", "return", "this", ";" ]
[ "<", "code", ">", "optional", "second", "msg", "blah", "=", "2", ";", "<", "/", "code", ">" ]
[ "bit", "field", "0", "|", "=", "0x", "0", "0", "0", "0", "0", "0", "0", "2", ";", "on", "changed", "(", ")", ";", "return", "get", "blah", "field", "builder", "(", ")", "get", "builder", "(", ")", ";" ]
[ "<", "code", ">", "optional", "second", "msg", "blah", "=", "2", ";", "<", "/", "code", ">" ]
[ "if", "(", "blah", "builder", "!", "=", "null", ")", "{", "return", "blah", "builder", "get", "message", "or", "builder", "(", ")", ";", "}", "else", "{", "return", "blah", ";", "}" ]
[ "<", "code", ">", "optional", "second", "msg", "blah", "=", "2", ";", "<", "/", "code", ">" ]
[ "if", "(", "blah", "builder", "=", "=", "null", ")", "{", "blah", "builder", "=", "new", "com", "google", "protobuf", "single", "field", "builder", "<", ">", "(", "blah", ",", "get", "parent", "for", "children", "(", ")", ",", "is", "clean", "(", ")", ")", ";", "blah", "=", "null", ";", "}", "return", "blah", "builder", ";" ]
[ "so", "we", "can", "t", "choose", "the", "inherited", "overload" ]
[ "return", "0", ";" ]
[ "returns", "the", "maximum", "writable", "window", "(", "minimum", "of", "the", "stream", "and", "connection", "windows", ")" ]
[ "return", "min", "(", "window", ",", "connection", "state", "window", "(", ")", ")", ";" ]
[ "creates", "a", "new", "frame", "with", "the", "given", "values", "but", "does", "not", "add", "it", "to", "the", "pending", "queue" ]
[ "return", "new", "frame", "(", "data", ",", "end", "stream", ")", ";" ]
[ "indicates", "whether", "or", "not", "there", "are", "frames", "in", "the", "pending", "queue" ]
[ "return", "!", "pending", "write", "queue", "is", "empty", "(", ")", ";" ]
[ "returns", "the", "head", "of", "the", "pending", "queue", "or", "{" ]
[ "return", "pending", "write", "queue", "peek", "(", ")", ";" ]
[ "/", "*", "=", "=", "=", "=", "=", "api", "methods", "=", "=", "=", "=", "=" ]
[ "if", "(", "m", "icon", "!", "=", "drawable", ")", "{", "m", "icon", "=", "drawable", ";", "update", "background", "(", ")", ";", "}" ]
[ "sets", "the", "shadow", "radius", "of", "the", "<", "b", ">", "floating", "action", "button", "<", "/", "b", ">", "and", "invalidates", "its", "layout" ]
[ "int", "shadow", "radius", "=", "get", "resources", "(", ")", "get", "dimension", "pixel", "size", "(", "dimen", "res", "id", ")", ";", "if", "(", "m", "shadow", "radius", "!", "=", "shadow", "radius", ")", "{", "m", "shadow", "radius", "=", "shadow", "radius", ";", "request", "layout", "(", ")", ";", "update", "background", "(", ")", ";", "}" ]
[ "sets", "the", "shadow", "radius", "of", "the", "<", "b", ">", "floating", "action", "button", "<", "/", "b", ">", "and", "invalidates", "its", "layout", "<", "p", ">", "must", "be", "specified", "in", "density", "-", "independent", "(", "dp", ")", "pixels", "which", "are", "then", "converted", "into", "actual", "pixels", "(", "px", ")" ]
[ "m", "shadow", "radius", "=", "util", "dp", "to", "px", "(", "get", "context", "(", ")", ",", "shadow", "radius", "dp", ")", ";", "request", "layout", "(", ")", ";", "update", "background", "(", ")", ";" ]
[ "sets", "the", "shadow", "x", "offset", "of", "the", "<", "b", ">", "floating", "action", "button", "<", "/", "b", ">", "and", "invalidates", "its", "layout" ]
[ "int", "shadow", "x", "offset", "=", "get", "resources", "(", ")", "get", "dimension", "pixel", "size", "(", "dimen", "res", "id", ")", ";", "if", "(", "m", "shadow", "x", "offset", "!", "=", "shadow", "x", "offset", ")", "{", "m", "shadow", "x", "offset", "=", "shadow", "x", "offset", ";", "request", "layout", "(", ")", ";", "update", "background", "(", ")", ";", "}" ]
[ "sets", "the", "shadow", "x", "offset", "of", "the", "<", "b", ">", "floating", "action", "button", "<", "/", "b", ">", "and", "invalidates", "its", "layout", "<", "p", ">", "must", "be", "specified", "in", "density", "-", "independent", "(", "dp", ")", "pixels", "which", "are", "then", "converted", "into", "actual", "pixels", "(", "px", ")" ]
[ "m", "shadow", "x", "offset", "=", "util", "dp", "to", "px", "(", "get", "context", "(", ")", ",", "shadow", "x", "offset", "dp", ")", ";", "request", "layout", "(", ")", ";", "update", "background", "(", ")", ";" ]
[ "sets", "the", "shadow", "y", "offset", "of", "the", "<", "b", ">", "floating", "action", "button", "<", "/", "b", ">", "and", "invalidates", "its", "layout" ]
[ "int", "shadow", "y", "offset", "=", "get", "resources", "(", ")", "get", "dimension", "pixel", "size", "(", "dimen", "res", "id", ")", ";", "if", "(", "m", "shadow", "y", "offset", "!", "=", "shadow", "y", "offset", ")", "{", "m", "shadow", "y", "offset", "=", "shadow", "y", "offset", ";", "request", "layout", "(", ")", ";", "update", "background", "(", ")", ";", "}" ]
[ "sets", "the", "shadow", "y", "offset", "of", "the", "<", "b", ">", "floating", "action", "button", "<", "/", "b", ">", "and", "invalidates", "its", "layout", "<", "p", ">", "must", "be", "specified", "in", "density", "-", "independent", "(", "dp", ")", "pixels", "which", "are", "then", "converted", "into", "actual", "pixels", "(", "px", ")" ]
[ "m", "shadow", "y", "offset", "=", "util", "dp", "to", "px", "(", "get", "context", "(", ")", ",", "shadow", "y", "offset", "dp", ")", ";", "request", "layout", "(", ")", ";", "update", "background", "(", ")", ";" ]
[ "checks", "whether", "<", "b", ">", "floating", "action", "button", "<", "/", "b", ">", "is", "hidden" ]
[ "return", "get", "visibility", "(", ")", "=", "=", "invisible", ";" ]
[ "makes", "the", "<", "b", ">", "floating", "action", "button", "<", "/", "b", ">", "to", "appear", "and", "sets", "its", "visibility", "to", "{", "@", "link", "#", "visible", "}" ]
[ "if", "(", "is", "hidden", "(", ")", ")", "{", "if", "(", "animate", ")", "{", "play", "show", "animation", "(", ")", ";", "}", "super", "set", "visibility", "(", "visible", ")", ";", "}" ]
[ "makes", "the", "<", "b", ">", "floating", "action", "button", "<", "/", "b", ">", "to", "disappear", "and", "sets", "its", "visibility", "to", "{", "@", "link", "#", "invisible", "}" ]
[ "if", "(", "!", "is", "hidden", "(", ")", ")", "{", "if", "(", "animate", ")", "{", "play", "hide", "animation", "(", ")", ";", "}", "super", "set", "visibility", "(", "invisible", ")", ";", "}" ]
[ "sets", "the", "shadow", "color", "and", "radius", "to", "mimic", "the", "native", "elevation" ]
[ "m", "shadow", "color", "=", "0x", "2", "6", "0", "0", "0", "0", "0", "0", ";", "m", "shadow", "radius", "=", "math", "round", "(", "elevation", "/", "2", ")", ";", "m", "shadow", "x", "offset", "=", "0", ";", "m", "shadow", "y", "offset", "=", "math", "round", "(", "m", "fab", "size", "=", "=", "size", "normal", "?", "elevation", ":", "elevation", "/", "2", ")", ";", "if", "(", "util", "has", "lollipop", "(", ")", ")", "{", "super", "set", "elevation", "(", "elevation", ")", ";", "m", "using", "elevation", "compat", "=", "true", ";", "m", "show", "shadow", "=", "false", ";", "update", "background", "(", ")", ";", "view", "group", "layout", "params", "layout", "params", "=", "get", "layout", "params", "(", ")", ";", "if", "(", "layout", "params", "!", "=", "null", ")", "{", "set", "layout", "params", "(", "layout", "params", ")", ";", "}", "}", "else", "{", "m", "show", "shadow", "=", "true", ";", "update", "background", "(", ")", ";", "}" ]
[ "<", "b", ">", "this", "will", "clear", "all", "animation", "listeners", "<", "/", "b", ">" ]
[ "if", "(", "!", "is", "hidden", "(", ")", "&", "&", "get", "visibility", "(", ")", "!", "=", "gone", ")", "{", "hide", "(", "animate", ")", ";", "label", "label", "=", "get", "label", "view", "(", ")", ";", "if", "(", "label", "!", "=", "null", ")", "{", "label", "hide", "(", "animate", ")", ";", "}", "get", "hide", "animation", "(", ")", "set", "animation", "listener", "(", "new", "animation", "animation", "listener", "(", ")", "{", "@", "override", "public", "void", "on", "animation", "start", "(", "animation", "animation", ")", "{", "}", "@", "override", "public", "void", "on", "animation", "end", "(", "animation", "animation", ")", "{", "set", "visibility", "(", "gone", ")", ";", "get", "hide", "animation", "(", ")", "set", "animation", "listener", "(", "null", ")", ";", "}", "@", "override", "public", "void", "on", "animation", "repeat", "(", "animation", "animation", ")", "{", "}", "}", ")", ";", "}" ]
[ "set", "the", "label", "s", "background", "colors" ]
[ "label", "label", "=", "get", "label", "view", "(", ")", ";", "int", "left", "=", "label", "get", "padding", "left", "(", ")", ";", "int", "top", "=", "label", "get", "padding", "top", "(", ")", ";", "int", "right", "=", "label", "get", "padding", "right", "(", ")", ";", "int", "bottom", "=", "label", "get", "padding", "bottom", "(", ")", ";", "label", "set", "colors", "(", "color", "normal", ",", "color", "pressed", ",", "color", "ripple", ")", ";", "label", "update", "background", "(", ")", ";", "label", "set", "padding", "(", "left", ",", "top", ",", "right", ",", "bottom", ")", ";" ]
[ "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-" ]
[ "this", "rename", "to", "=", "new", "name", ";", "return", "this", ";" ]
[ "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-" ]
[ "ctx", "start", "(", "alter", "schema", "schema", ")", "visit", "(", "k", "alter", "schema", ")", ";", "if", "(", "if", "exists", ")", "ctx", "sql", "(", "'", "'", ")", "visit", "(", "k", "if", "exists", ")", ";", "ctx", "sql", "(", "'", "'", ")", "visit", "(", "schema", ")", "end", "(", "alter", "schema", "schema", ")", "format", "indent", "start", "(", ")", "format", "separator", "(", ")", ";", "if", "(", "rename", "to", "!", "=", "null", ")", "{", "boolean", "qualify", "=", "ctx", "qualify", "(", ")", ";", "ctx", "start", "(", "alter", "schema", "rename", ")", "qualify", "(", "false", ")", "visit", "(", "k", "rename", "to", ")", "sql", "(", "'", "'", ")", "visit", "(", "rename", "to", ")", "qualify", "(", "qualify", ")", "end", "(", "alter", "schema", "rename", ")", ";", "}", "ctx", "format", "indent", "end", "(", ")", ";" ]
[ "<", "p", ">", "the", "id", "of", "the", "ami", "<", "/", "p", ">" ]
[ "set", "image", "id", "(", "image", "id", ")", ";", "return", "this", ";" ]
[ "utility", "method", "to", "get", "a", "line", "of", "text", "from", "the", "input", "stream" ]
[ "string", "builder", "buffer", "=", "new", "string", "builder", "(", ")", ";", "int", "b", ";", "while", "(", "(", "b", "=", "is", "read", "(", ")", ")", "!", "=", "-", "1", "&", "&", "b", "!", "=", "'", "\\", "n", "'", ")", "{", "buffer", "append", "(", "(", "char", ")", "b", ")", ";", "}", "return", "buffer", "to", "string", "(", ")", "trim", "(", ")", ";" ]
[ "get", "representation", "suitable", "for", "passing", "to", "exec" ]
[ "return", "env", "map", "values", "(", ")", "to", "array", "(", "new", "string", "[", "env", "map", "size", "(", ")", "]", ")", ";" ]
[ "gives", "(", "almost", ")", "unique", "id", "for", "a", "given", "string" ]
[ "long", "h", "=", "0", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "s", "length", "(", ")", ";", "i", "+", "+", ")", "{", "h", "=", "31", "*", "h", "+", "s", "char", "at", "(", "i", ")", ";", "}", "return", "h", ";" ]
[ "<", "p", ">", "the", "name", "of", "the", "systems", "manager", "document", "<", "/", "p", ">" ]
[ "set", "name", "(", "name", ")", ";", "return", "this", ";" ]
[ "<", "p", ">", "the", "id", "of", "the", "instance", "<", "/", "p", ">" ]
[ "set", "instance", "id", "(", "instance", "id", ")", ";", "return", "this", ";" ]
[ "<", "p", ">", "the", "association", "id", "that", "you", "want", "to", "delete", "<", "/", "p", ">" ]
[ "set", "association", "id", "(", "association", "id", ")", ";", "return", "this", ";" ]
[ "brings", "the", "specified", "position", "to", "view", "by", "optionally", "performing", "a", "jump", "-", "scroll", "maneuver", ":", "first", "it", "jumps", "to", "some", "position", "near", "the", "one", "requested", "and", "then", "does", "a", "smooth", "scroll", "to", "the", "requested", "position", "this", "creates", "an", "impression", "of", "full", "smooth", "scrolling", "without", "actually", "traversing", "the", "entire", "list", "if", "smooth", "scrolling", "is", "not", "requested", "instantly", "positions", "the", "requested", "item", "at", "a", "preferred", "offset" ]
[ "m", "requested", "scroll", "position", "=", "position", ";", "m", "smooth", "scroll", "requested", "=", "smooth", "scroll", ";", "request", "layout", "(", ")", ";" ]
[ "the", "config", "chooser", "to", "apply", "to", "the", "surface", "view", "when", "multi", "-", "sampling", "is", "enabled" ]
[ "protected", "abstract", "rajawali", "e", "g", "l", "config", "chooser", "create", "egl", "config", "chooser", "(", ")", ";" ]
[ "get", "the", "renderer", "currently", "set", "to", "the", "surface", "view" ]
[ "return", "renderer", ";" ]
[ "set", "the", "renderer", "for", "the", "surface", "view" ]
[ "this", "renderer", "=", "renderer", ";", "surface", "view", "set", "surface", "renderer", "(", "renderer", ")", ";" ]
[ "the", "gles", "version", "to", "apply", "to", "the", "surface", "view" ]
[ "return", "2", ";" ]
[ "flag", "for", "multi", "-", "sampling" ]
[ "return", "anti", "aliasing", "config", "none", ";" ]
[ "creates", "a", "channel", "with", "the", "target", "s", "address", "and", "port", "number" ]
[ "return", "managed", "channel", "provider", "provider", "(", ")", "builder", "for", "address", "(", "name", ",", "port", ")", ";" ]
[ "creates", "a", "channel", "with", "a", "target", "string", "which", "can", "be", "either", "a", "valid", "{", "@", "link", "name", "resolver", "}", "-", "compliant", "uri", "or", "an", "authority", "string" ]
[ "return", "managed", "channel", "provider", "provider", "(", ")", "builder", "for", "target", "(", "target", ")", ";" ]
[ "provides", "a", "custom", "executor" ]
[ "public", "abstract", "t", "executor", "(", "executor", "executor", ")", ";" ]
[ "adds", "interceptors", "that", "will", "be", "called", "before", "the", "channel", "performs", "its", "real", "work", "this", "is", "functionally", "equivalent", "to", "using", "{", "@", "link", "client", "interceptors", "#", "intercept", "(", "channel", "list", ")", "}", "but", "while", "still", "having", "access", "to", "the", "original", "{", "@", "code", "managed", "channel", "}" ]
[ "public", "abstract", "t", "intercept", "(", "list", "<", "client", "interceptor", ">", "interceptors", ")", ";" ]
[ "adds", "interceptors", "that", "will", "be", "called", "before", "the", "channel", "performs", "its", "real", "work", "this", "is", "functionally", "equivalent", "to", "using", "{", "@", "link", "client", "interceptors", "#", "intercept", "(", "channel", "client", "interceptor", ")", "}", "but", "while", "still", "having", "access", "to", "the", "original", "{", "@", "code", "managed", "channel", "}" ]
[ "public", "abstract", "t", "intercept", "(", "client", "interceptor", "interceptors", ")", ";" ]
[ "provides", "a", "custom", "{", "@", "code", "user", "-", "agent", "}", "for", "the", "application" ]
[ "public", "abstract", "t", "user", "agent", "(", "string", "user", "agent", ")", ";" ]
[ "overrides", "the", "authority", "used", "with", "tls", "and", "http", "virtual", "hosting", "it", "does", "not", "change", "what", "host", "is", "actually", "connected", "to", "is", "commonly", "in", "the", "form", "{", "@", "code", "host", ":", "port", "}" ]
[ "public", "abstract", "t", "override", "authority", "(", "string", "authority", ")", ";" ]
[ "sets", "the", "time", "without", "read", "activity", "before", "sending", "a", "keepalive", "ping", "an", "unreasonably", "small", "value", "might", "be", "increased", "and", "{", "@", "code", "long", "max", "value", "}", "nano", "seconds", "or", "an", "unreasonably", "large", "value", "will", "disable", "keepalive", "defaults", "to", "infinite" ]
[ "throw", "new", "unsupported", "operation", "exception", "(", ")", ";" ]
[ "sets", "the", "time", "waiting", "for", "read", "activity", "after", "sending", "a", "keepalive", "ping", "if", "the", "time", "expires", "without", "any", "read", "activity", "on", "the", "connection", "the", "connection", "is", "considered", "dead", "an", "unreasonably", "small", "value", "might", "be", "increased", "defaults", "to", "20", "seconds" ]
[ "throw", "new", "unsupported", "operation", "exception", "(", ")", ";" ]
[ "sets", "whether", "keepalive", "will", "be", "performed", "when", "there", "are", "no", "outstanding", "rpc", "on", "a", "connection", "defaults", "to", "{", "@", "code", "false", "}" ]
[ "throw", "new", "unsupported", "operation", "exception", "(", ")", ";" ]
[ "builds", "a", "channel", "using", "the", "given", "parameters" ]
[ "public", "abstract", "managed", "channel", "build", "(", ")", ";" ]
[ "properly", "configured", "if", "hostname", "&", "password", "is", "set" ]
[ "return", "(", "host", "name", "!", "=", "null", "&", "&", "password", "!", "=", "null", ")", "|", "|", "time", "out", "!", "=", "0", ";" ]
[ "creates", "a", "{", "@", "link", "a", "s", "t", "rewrite", "#", "create", "copy", "target", "(", "a", "s", "t", "node", ")", "copy", "}", "of", "<", "code", ">", "type", "<", "/", "code", ">", "and", "adds", "<", "code", ">", "extra", "dimensions", "<", "/", "code", ">", "to", "it" ]
[ "ast", "ast", "=", "rewrite", "get", "a", "s", "t", "(", ")", ";", "if", "(", "extra", "dimensions", "is", "empty", "(", ")", ")", "{", "return", "(", "type", ")", "rewrite", "create", "copy", "target", "(", "type", ")", ";", "}", "array", "type", "result", ";", "if", "(", "type", "instanceof", "array", "type", ")", "{", "array", "type", "array", "type", "=", "(", "array", "type", ")", "type", ";", "type", "var", "element", "type", "=", "(", "type", ")", "rewrite", "create", "copy", "target", "(", "array", "type", "get", "element", "type", "(", ")", ")", ";", "result", "=", "ast", "new", "array", "type", "(", "var", "element", "type", ",", "0", ")", ";", "result", "dimensions", "(", ")", "add", "all", "(", "copy", "dimensions", "(", "extra", "dimensions", ",", "rewrite", ")", ")", ";", "result", "dimensions", "(", ")", "add", "all", "(", "copy", "dimensions", "(", "array", "type", "dimensions", "(", ")", ",", "rewrite", ")", ")", ";", "}", "else", "{", "type", "element", "type", "=", "(", "type", ")", "rewrite", "create", "copy", "target", "(", "type", ")", ";", "result", "=", "ast", "new", "array", "type", "(", "element", "type", ",", "0", ")", ";", "result", "dimensions", "(", ")", "add", "all", "(", "copy", "dimensions", "(", "extra", "dimensions", ",", "rewrite", ")", ")", ";", "}", "return", "result", ";" ]
[ "returns", "{", "@", "link", "a", "s", "t", "rewrite", "#", "create", "copy", "target", "(", "a", "s", "t", "node", ")", "copies", "}", "of", "the", "given", "<", "code", ">", "dimensions", "<", "/", "code", ">" ]
[ "array", "list", "<", "dimension", ">", "result", "=", "new", "array", "list", "<", "dimension", ">", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "dimensions", "size", "(", ")", ";", "i", "+", "+", ")", "{", "result", "add", "(", "(", "dimension", ")", "rewrite", "create", "copy", "target", "(", "dimensions", "get", "(", "i", ")", ")", ")", ";", "}", "return", "result", ";" ]
[ "rounds", "double", "f", "to", "any", "number", "of", "places", "after", "decimal", "point", "does", "arithmetic", "using", "big", "decimal", "class", "to", "avoid", "integer", "overflow", "while", "rounding" ]
[ "return", "round", "(", "f", ",", "places", ",", "java", "math", "big", "decimal", "round", "half", "even", ")", ";" ]
[ "rounds", "big", "decimal", "f", "to", "any", "number", "of", "places", "after", "decimal", "point", "does", "arithmetic", "using", "big", "decimal", "class", "to", "avoid", "integer", "overflow", "while", "rounding" ]
[ "if", "(", "rounding", "mode", "=", "=", "round", "half", "ceiling", ")", "{", "if", "(", "f", "signum", "(", ")", ">", "=", "0", ")", "{", "return", "round", "(", "f", ",", "places", ",", "big", "decimal", "round", "half", "up", ")", ";", "}", "else", "{", "return", "round", "(", "f", ",", "places", ",", "big", "decimal", "round", "half", "down", ")", ";", "}", "}", "else", "{", "return", "f", "set", "scale", "(", "places", ",", "rounding", "mode", ")", ";", "}" ]
[ "rounds", "long", "f", "to", "any", "number", "of", "places", "after", "decimal", "point", "does", "arithmetic", "using", "big", "decimal", "class", "to", "avoid", "integer", "overflow", "while", "rounding" ]
[ "if", "(", "places", ">", "=", "0", ")", "{", "return", "f", ";", "}", "big", "decimal", "bdtemp", "=", "round", "(", "big", "decimal", "value", "of", "(", "f", ")", ",", "places", ",", "rounding", "mode", ")", ";", "return", "bdtemp", "long", "value", "(", ")", ";" ]
[ "convert", "a", "string", "into", "an", "integer", "if", "the", "conversion", "fails", "assign", "a", "default", "value" ]
[ "int", "retval", ";", "try", "{", "retval", "=", "integer", "parse", "int", "(", "str", ")", ";", "}", "catch", "(", "exception", "e", ")", "{", "retval", "=", "def", ";", "}", "return", "retval", ";" ]
[ "convert", "a", "string", "into", "a", "long", "integer", "if", "the", "conversion", "fails", "assign", "a", "default", "value" ]
[ "long", "retval", ";", "try", "{", "retval", "=", "long", "parse", "long", "(", "str", ")", ";", "}", "catch", "(", "exception", "e", ")", "{", "retval", "=", "def", ";", "}", "return", "retval", ";" ]
[ "convert", "a", "string", "into", "a", "double", "if", "the", "conversion", "fails", "assign", "a", "default", "value" ]
[ "double", "retval", ";", "try", "{", "retval", "=", "double", "parse", "double", "(", "str", ")", ";", "}", "catch", "(", "exception", "e", ")", "{", "retval", "=", "def", ";", "}", "return", "retval", ";" ]
[ "determines", "whether", "or", "not", "a", "character", "is", "considered", "a", "space", "a", "character", "is", "considered", "a", "space", "in", "kettle", "if", "it", "is", "a", "space", "a", "tab", "a", "newline", "or", "a", "cariage", "return" ]
[ "return", "c", "=", "=", "'", "'", "|", "|", "c", "=", "=", "'", "\\", "t", "'", "|", "|", "c", "=", "=", "'", "\\", "r", "'", "|", "|", "c", "=", "=", "'", "\\", "n", "'", "|", "|", "character", "is", "whitespace", "(", "c", ")", ";" ]
[ "trims", "a", "string", ":", "removes", "the", "leading", "and", "trailing", "spaces", "of", "a", "string" ]
[ "if", "(", "str", "=", "=", "null", ")", "{", "return", "null", ";", "}", "int", "max", "=", "str", "length", "(", ")", "-", "1", ";", "int", "min", "=", "0", ";", "while", "(", "min", "<", "=", "max", "&", "&", "is", "space", "(", "str", "char", "at", "(", "min", ")", ")", ")", "{", "min", "+", "+", ";", "}", "while", "(", "max", ">", "=", "0", "&", "&", "is", "space", "(", "str", "char", "at", "(", "max", ")", ")", ")", "{", "max", "-", "-", ";", "}", "if", "(", "max", "<", "min", ")", "{", "return", "\"", "\"", ";", "}", "return", "str", "substring", "(", "min", ",", "max", "+", "1", ")", ";" ]
[ "right", "pad", "a", "string", ":", "adds", "spaces", "to", "a", "string", "until", "a", "certain", "length", "if", "the", "length", "is", "smaller", "then", "the", "limit", "specified", "the", "string", "is", "truncated" ]
[ "if", "(", "ret", "=", "=", "null", ")", "{", "return", "right", "pad", "(", "new", "string", "builder", "(", ")", ",", "limit", ")", ";", "}", "else", "{", "return", "right", "pad", "(", "new", "string", "builder", "(", "ret", ")", ",", "limit", ")", ";", "}" ]
[ "right", "pad", "a", "string", "buffer", ":", "adds", "spaces", "to", "a", "string", "until", "a", "certain", "length", "if", "the", "length", "is", "smaller", "then", "the", "limit", "specified", "the", "string", "is", "truncated" ]
[ "if", "(", "ret", "!", "=", "null", ")", "{", "while", "(", "ret", "length", "(", ")", "<", "limit", ")", "{", "ret", "append", "(", "\"", "\"", ")", ";", "}", "ret", "set", "length", "(", "limit", ")", ";", "return", "ret", "to", "string", "(", ")", ";", "}", "else", "{", "return", "null", ";", "}" ]
[ "right", "pad", "a", "string", "builder", ":", "adds", "spaces", "to", "a", "string", "until", "a", "certain", "length", "if", "the", "length", "is", "smaller", "then", "the", "limit", "specified", "the", "string", "is", "truncated" ]
[ "if", "(", "ret", "!", "=", "null", ")", "{", "while", "(", "ret", "length", "(", ")", "<", "limit", ")", "{", "ret", "append", "(", "\"", "\"", ")", ";", "}", "ret", "set", "length", "(", "limit", ")", ";", "return", "ret", "to", "string", "(", ")", ";", "}", "else", "{", "return", "null", ";", "}" ]
[ "replace", "values", "in", "a", "string", "with", "another" ]
[ "if", "(", "string", "!", "=", "null", "&", "&", "repl", "!", "=", "null", "&", "&", "with", "!", "=", "null", ")", "{", "return", "string", "replace", "all", "(", "pattern", "quote", "(", "repl", ")", ",", "matcher", "quote", "replacement", "(", "with", ")", ")", ";", "}", "else", "{", "return", "null", ";", "}" ]
[ "count", "the", "number", "of", "spaces", "to", "the", "left", "of", "a", "text", "(", "leading", ")" ]
[ "int", "nr", "=", "0", ";", "int", "len", "=", "field", "length", "(", ")", ";", "while", "(", "nr", "<", "len", "&", "&", "field", "char", "at", "(", "nr", ")", "=", "=", "'", "'", ")", "{", "nr", "+", "+", ";", "}", "return", "nr", ";" ]
[ "count", "the", "number", "of", "spaces", "to", "the", "right", "of", "a", "text", "(", "trailing", ")" ]
[ "int", "nr", "=", "0", ";", "int", "len", "=", "field", "length", "(", ")", ";", "while", "(", "nr", "<", "len", "&", "&", "field", "char", "at", "(", "field", "length", "(", ")", "-", "1", "-", "nr", ")", "=", "=", "'", "'", ")", "{", "nr", "+", "+", ";", "}", "return", "nr", ";" ]
[ "checks", "whether", "or", "not", "a", "string", "consists", "only", "of", "spaces" ]
[ "for", "(", "int", "i", "=", "0", ";", "i", "<", "str", "length", "(", ")", ";", "i", "+", "+", ")", "{", "if", "(", "!", "is", "space", "(", "str", "char", "at", "(", "i", ")", ")", ")", "{", "return", "false", ";", "}", "}", "return", "true", ";" ]
[ "determines", "the", "kettle", "absolute", "directory", "in", "the", "user", "s", "home", "directory" ]
[ "return", "get", "user", "home", "directory", "(", ")", "+", "file", "separator", "+", "get", "user", "base", "dir", "(", ")", ";" ]
[ "determines", "the", "location", "of", "the", "shared", "objects", "file" ]
[ "return", "get", "kettle", "directory", "(", ")", "+", "file", "separator", "+", "shared", "data", "file", ";" ]
[ "returns", "the", "full", "path", "to", "the", "kettle", "repositories", "xml", "file" ]
[ "return", "get", "kettle", "directory", "(", ")", "+", "file", "separator", "+", "get", "kettle", "local", "repositories", "file", "(", ")", ";" ]
[ "retrieves", "the", "content", "of", "an", "environment", "variable" ]
[ "return", "system", "get", "property", "(", "variable", ",", "deflt", ")", ";" ]
[ "replaces", "environment", "variables", "in", "an", "array", "of", "strings", "<", "p", ">", "see", "also", ":", "repl", "env", "(", "string", "string", ")" ]
[ "string", "[", "]", "retval", "=", "new", "string", "[", "string", "length", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "string", "length", ";", "i", "+", "+", ")", "{", "retval", "[", "i", "]", "=", "const", "repl", "env", "(", "string", "[", "i", "]", ")", ";", "}", "return", "retval", ";" ]
[ "implements", "oracle", "style", "nvl", "function" ]
[ "if", "(", "source", "=", "=", "null", "|", "|", "source", "length", "(", ")", "=", "=", "0", ")", "{", "return", "def", ";", "}", "return", "source", ";" ]
[ "return", "empty", "string", "in", "case", "the", "given", "parameter", "is", "null", "otherwise", "return", "the", "same", "value" ]
[ "if", "(", "source", "=", "=", "null", ")", "{", "return", "\"", "\"", ";", "}", "return", "source", ";" ]
[ "search", "for", "a", "string", "in", "an", "array", "of", "strings", "and", "return", "the", "index" ]
[ "if", "(", "array", "=", "=", "null", ")", "{", "return", "-", "1", ";", "}", "if", "(", "lookup", "=", "=", "null", ")", "{", "return", "-", "1", ";", "}", "for", "(", "int", "i", "=", "0", ";", "i", "<", "array", "length", ";", "i", "+", "+", ")", "{", "if", "(", "lookup", "equals", "ignore", "case", "(", "array", "[", "i", "]", ")", ")", "{", "return", "i", ";", "}", "}", "return", "-", "1", ";" ]
[ "search", "for", "strings", "in", "an", "array", "of", "strings", "and", "return", "the", "indexes" ]
[ "int", "[", "]", "indexes", "=", "new", "int", "[", "lookup", "length", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "indexes", "length", ";", "i", "+", "+", ")", "{", "indexes", "[", "i", "]", "=", "index", "of", "string", "(", "lookup", "[", "i", "]", ",", "array", ")", ";", "}", "return", "indexes", ";" ]
[ "search", "for", "strings", "in", "an", "array", "of", "strings", "and", "return", "the", "indexes", "if", "a", "string", "is", "not", "found", "the", "index", "is", "not", "returned" ]
[ "list", "<", "integer", ">", "indexes", "list", "=", "new", "array", "list", "<", ">", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "lookup", "length", ";", "i", "+", "+", ")", "{", "int", "idx", "=", "index", "of", "string", "(", "lookup", "[", "i", "]", ",", "array", ")", ";", "if", "(", "idx", ">", "=", "0", ")", "{", "indexes", "list", "add", "(", "integer", "value", "of", "(", "idx", ")", ")", ";", "}", "}", "int", "[", "]", "indexes", "=", "new", "int", "[", "indexes", "list", "size", "(", ")", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "indexes", "list", "size", "(", ")", ";", "i", "+", "+", ")", "{", "indexes", "[", "i", "]", "=", "(", "indexes", "list", "get", "(", "i", ")", ")", "int", "value", "(", ")", ";", "}", "return", "indexes", ";" ]
[ "search", "for", "a", "string", "in", "a", "list", "of", "strings", "and", "return", "the", "index" ]
[ "if", "(", "list", "=", "=", "null", ")", "{", "return", "-", "1", ";", "}", "for", "(", "int", "i", "=", "0", ";", "i", "<", "list", "size", "(", ")", ";", "i", "+", "+", ")", "{", "string", "compare", "=", "list", "get", "(", "i", ")", ";", "if", "(", "lookup", "equals", "ignore", "case", "(", "compare", ")", ")", "{", "return", "i", ";", "}", "}", "return", "-", "1", ";" ]
[ "sort", "the", "strings", "of", "an", "array", "in", "alphabetical", "order" ]
[ "arrays", "sort", "(", "input", ")", ";", "return", "input", ";" ]
[ "convert", "strings", "separated", "by", "a", "character", "into", "an", "array", "of", "strings", "<", "p", ">", "<", "code", ">", "example", ":", "a", ";", "b", ";", "c", ";", "d", "=", "=", "new", "string", "[", "]", "{", "a", "b", "c", "d", "}", "<", "/", "code", ">" ]
[ "return", "split", "string", "(", "string", ",", "separator", ",", "false", ")", ";" ]
[ "split", "the", "given", "string", "using", "the", "given", "delimiter", "and", "enclosure", "strings" ]
[ "return", "split", "string", "(", "string", "to", "split", ",", "delimiter", ",", "enclosure", ",", "false", ")", ";" ]
[ "sorts", "the", "array", "of", "strings", "determines", "the", "uniquely", "occurring", "strings" ]
[ "if", "(", "strings", "=", "=", "null", ")", "{", "return", "null", ";", "}", "if", "(", "strings", "length", "=", "=", "0", ")", "{", "return", "new", "string", "[", "]", "{", "}", ";", "}", "string", "[", "]", "sorted", "=", "sort", "strings", "(", "strings", ")", ";", "list", "<", "string", ">", "result", "=", "new", "array", "list", "<", ">", "(", ")", ";", "string", "previous", "=", "\"", "\"", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "sorted", "length", ";", "i", "+", "+", ")", "{", "if", "(", "!", "sorted", "[", "i", "]", "equals", "ignore", "case", "(", "previous", ")", ")", "{", "result", "add", "(", "sorted", "[", "i", "]", ")", ";", "}", "previous", "=", "sorted", "[", "i", "]", ";", "}", "return", "result", "to", "array", "(", "new", "string", "[", "result", "size", "(", ")", "]", ")", ";" ]
[ "returns", "a", "string", "of", "the", "stack", "trace", "of", "the", "specified", "exception" ]
[ "return", "get", "classic", "stack", "trace", "(", "e", ")", ";" ]