docstring_tokens
list
code_tokens
list
[ "the", "value", "of", "the", "descriptor", "index", "item", "must", "be", "a", "valid", "index", "into", "the", "constant", "pool", "table", "the", "constant", "pool", "entry", "at", "that", "index", "must", "be", "a", "constant", "utf", "8", "info", "structure", "representing", "a", "method", "descriptor" ]
[ "public", "int", "get", "descriptor", "index", "(", ")", "{", "return", "descriptor", "index", "&", "0xffff", ";", "}" ]
[ "queries", "the", "path", "to", "the", "xcode", "developer", "directory", "on", "the", "host", "system", "for", "the", "given", "xcode", "version", "this", "spawns", "a", "subprocess", "to", "run", "the", "{", "@", "code", "xcode", "-", "locator", "}", "binary", "as", "this", "is", "a", "costly", "operation", ",", "always", "call", "{", "@", "link", "#", "get", "developer", "dir", "(", "path", ",", "dotted", "version", ")", "}", "instead", ",", "which", "does", "caching" ]
[ "private", "static", "string", "query", "developer", "dir", "(", "bin", "tools", "bin", "tools", ",", "dotted", "version", "version", ")", "throws", "i", "o", "exception", ",", "interrupted", "exception", "{", "string", "xcode", "locator", "path", "=", "bin", "tools", "get", "embedded", "path", "(", "\"", "xcode", "-", "locator", "\"", ")", "get", "path", "string", "(", ")", ";", "try", "{", "command", "result", "xcode", "locator", "result", "=", "new", "command", "(", "new", "string", "[", "]", "{", "xcode", "locator", "path", ",", "version", "to", "string", "(", ")", "}", ")", "execute", "(", ")", ";", "return", "new", "string", "(", "xcode", "locator", "result", "get", "stdout", "(", ")", ",", "standard", "charsets", "utf", "8", ")", "trim", "(", ")", ";", "}", "catch", "(", "abnormal", "termination", "exception", "e", ")", "{", "termination", "status", "termination", "status", "=", "e", "get", "result", "(", ")", "get", "termination", "status", "(", ")", ";", "string", "message", ";", "if", "(", "e", "get", "result", "(", ")", "get", "termination", "status", "(", ")", "exited", "(", ")", ")", "{", "message", "=", "string", "format", "(", "\"", "running", "'", "%", "s", "%", "s", "'", "failed", "with", "code", "%", "s", "\\", "n", "\"", "+", "\"", "this", "most", "likely", "indicates", "that", "xcode", "version", "%", "s", "is", "not", "available", "on", "the", "\"", "+", "\"", "host", "machine", "\\", "n", "\"", "+", "\"", "%", "s", "\\", "n", "\"", "+", "\"", "stdout", ":", "%", "s", "\\", "n", "\"", "+", "\"", "stderr", ":", "%", "s", "\"", ",", "xcode", "locator", "path", ",", "version", ",", "termination", "status", "get", "exit", "code", "(", ")", ",", "version", ",", "termination", "status", "to", "string", "(", ")", ",", "new", "string", "(", "e", "get", "result", "(", ")", "get", "stdout", "(", ")", ",", "standard", "charsets", "utf", "8", ")", ",", "new", "string", "(", "e", "get", "result", "(", ")", "get", "stderr", "(", ")", ",", "standard", "charsets", "utf", "8", ")", ")", ";", "}", "else", "{", "message", "=", "string", "format", "(", "\"", "running", "'", "%", "s", "%", "s", "'", "failed", "\\", "n", "\"", "+", "\"", "%", "s", "\\", "n", "\"", "+", "\"", "stdout", ":", "%", "s", "\\", "n", "\"", "+", "\"", "stderr", ":", "%", "s", "\"", ",", "xcode", "locator", "path", ",", "version", ",", "e", "get", "result", "(", ")", "get", "termination", "status", "(", ")", ",", "new", "string", "(", "e", "get", "result", "(", ")", "get", "stdout", "(", ")", ",", "standard", "charsets", "utf", "8", ")", ",", "new", "string", "(", "e", "get", "result", "(", ")", "get", "stderr", "(", ")", ",", "standard", "charsets", "utf", "8", ")", ")", ";", "}", "throw", "new", "i", "o", "exception", "(", "message", ",", "e", ")", ";", "}", "catch", "(", "command", "exception", "e", ")", "{", "throw", "new", "i", "o", "exception", "(", "e", ")", ";", "}", "}" ]
[ "returns", "type", "information", "for", "java", "arrays", "of", "object", "types", "(", "such", "as", "<", "code", ">", "string", "[", "]", "<", "code", ">", ",", "<", "code", ">", "integer", "[", "]", "<", "code", ">", ")", "the", "array", "itself", "must", "not", "be", "null", "null", "values", "for", "elements", "are", "supported" ]
[ "public", "static", "<", "e", ">", "type", "information", "<", "e", "[", "]", ">", "object", "array", "(", "type", "information", "<", "e", ">", "element", "type", ")", "{", "if", "(", "element", "type", "=", "=", "types", "string", ")", "{", "return", "(", "type", "information", ")", "basic", "array", "type", "info", "string", "array", "type", "info", ";", "}", "return", "object", "array", "type", "info", "get", "info", "for", "(", "element", "type", ")", ";", "}" ]
[ "set", "the", "default", "value", "the", "default", "may", "set", "to", "any", "value", "and", "is", "not", "restricted", "by", "setting", "the", "minimum", "or", "maximum", "values" ]
[ "public", "long", "parameter", "set", "default", "value", "(", "long", "default", "value", ")", "{", "super", "set", "default", "value", "(", "default", "value", ")", ";", "return", "this", ";", "}" ]
[ "adds", "a", "new", "entity", "to", "the", "schema", "there", "can", "be", "multiple", "entities", "per", "table", ",", "but", "only", "one", "may", "be", "the", "primary", "entity", "per", "table", "to", "create", "table", "scripts", ",", "etc" ]
[ "public", "entity", "add", "entity", "(", "string", "class", "name", ")", "{", "entity", "entity", "=", "new", "entity", "(", "this", ",", "class", "name", ")", ";", "entities", "add", "(", "entity", ")", ";", "return", "entity", ";", "}" ]
[ "updates", "export", "statistics" ]
[ "public", "void", "handle", "item", "export", "(", "item", "item", ",", "int", "amount", ")", "{", "export", "get", "(", "item", ",", "export", "stat", ":", ":", "new", ")", "counter", "+", "=", "amount", ";", "}" ]
[ "randomly", "determine", "whether", "this", "call", "should", "result", "in", "a", "network", "failure", "in", "accordance", "with", "configured", "behavior", "when", "true", ",", "{", "@", "link", "#", "failure", "exception", "(", ")", "}", "should", "be", "thrown" ]
[ "public", "boolean", "calculate", "is", "failure", "(", ")", "{", "return", "random", "next", "int", "(", "100", ")", "<", "failure", "percent", ";", "}" ]
[ "specify", "the", "{", "@", "link", "advisor", "adapter", "registry", "}", "to", "use", "default", "is", "the", "global", "{", "@", "link", "advisor", "adapter", "registry", "}" ]
[ "public", "void", "set", "advisor", "adapter", "registry", "(", "advisor", "adapter", "registry", "advisor", "adapter", "registry", ")", "{", "this", "advisor", "adapter", "registry", "=", "advisor", "adapter", "registry", ";", "}" ]
[ "actually", "persists", "a", "node", "on", "disk" ]
[ "private", "void", "persist", "node", "(", "final", "@", "non", "null", "node", "node", ")", "throws", "i", "o", "exception", "{", "/", "/", "no", "need", "for", "a", "full", "save", "(", ")", "so", "we", "just", "do", "the", "minimum", "if", "(", "node", "instanceof", "ephemeral", "node", ")", "{", "util", "delete", "recursive", "(", "new", "file", "(", "get", "nodes", "dir", "(", ")", ",", "node", "get", "node", "name", "(", ")", ")", ")", ";", "}", "else", "{", "xml", "file", "xml", "file", "=", "new", "xml", "file", "(", "jenkins", "xstream", ",", "new", "file", "(", "new", "file", "(", "get", "nodes", "dir", "(", ")", ",", "node", "get", "node", "name", "(", ")", ")", ",", "\"", "config", "xml", "\"", ")", ")", ";", "xml", "file", "write", "(", "node", ")", ";", "saveable", "listener", "fire", "on", "change", "(", "this", ",", "xml", "file", ")", ";", "}", "jenkins", "get", "queue", "(", ")", "schedule", "maintenance", "(", ")", ";", "}" ]
[ "model", "tests", "for", "cat" ]
[ "public", "void", "test", "cat", "(", ")", "{", "/", "/", "todo", ":", "test", "cat", "}" ]
[ "returns", "the", "number", "of", "tasks", "tracked", "by", "the", "provided", "{", "@", "link", "http", "channel", "}" ]
[ "static", "int", "get", "num", "tasks", "(", "http", "channel", "channel", ")", "{", "close", "listener", "listener", "=", "http", "channels", "get", "(", "channel", ")", ";", "return", "listener", "=", "=", "null", "?", "0", ":", "listener", "get", "num", "tasks", "(", ")", ";", "}" ]
[ "check", "whether", "kafka", "l", "z", "4", "block", "input", "stream", "is", "configured", "to", "ignore", "the", "frame", "descriptor", "checksum", ",", "which", "is", "useful", "for", "compatibility", "with", "old", "client", "implementations", "that", "use", "incorrect", "checksum", "calculations" ]
[ "public", "boolean", "ignore", "flag", "descriptor", "checksum", "(", ")", "{", "return", "this", "ignore", "flag", "descriptor", "checksum", ";", "}" ]
[ "tester", "for", "equals", "(", ")", "and", "hash", "code", "(", ")", "methods", "of", "a", "class", "using", "guava", "'", "s", "equals", "tester" ]
[ "public", "void", "test", "equals", "(", ")", "{", "var", "hero", "stat", "a", "=", "hero", "stat", "value", "of", "(", "3", ",", "9", ",", "2", ")", ";", "var", "hero", "stat", "b", "=", "hero", "stat", "value", "of", "(", "3", ",", "9", ",", "2", ")", ";", "new", "equals", "tester", "(", ")", "add", "equality", "group", "(", "hero", "stat", "a", ",", "hero", "stat", "b", ")", "test", "equals", "(", ")", ";", "}" ]
[ "create", "a", "new", "ssl", "handler" ]
[ "public", "final", "ssl", "handler", "new", "handler", "(", "byte", "buf", "allocator", "alloc", ")", "{", "return", "new", "handler", "(", "alloc", ",", "start", "tls", ")", ";", "}" ]
[ "merges", "the", "stl", "and", "toolchain", "contexts", "into", "context", "builder", "the", "stl", "is", "automatically", "determined", "using", "the", "\"", "$", "stl", "\"", "(", "or", ",", "historically", ",", "\"", ":", "stl", "\"", ")", "attribute" ]
[ "private", "static", "void", "merge", "toolchain", "dependent", "cc", "compilation", "context", "(", "cc", "toolchain", "provider", "toolchain", ",", "cc", "compilation", "context", "builder", "cc", "compilation", "context", "builder", ")", "{", "if", "(", "toolchain", "!", "=", "null", ")", "{", "cc", "compilation", "context", "builder", "merge", "dependent", "cc", "compilation", "context", "(", "toolchain", "get", "cc", "compilation", "context", "(", ")", ")", ";", "}", "}" ]
[ "returns", "the", "current", "watermark", "time" ]
[ "long", "get", "current", "watermark", "(", ")", ";" ]
[ "test", "equality", "and", "hash", "code", "properties" ]
[ "public", "void", "test", "equals", "and", "hashcode", "(", ")", "throws", "i", "o", "exception", "{", "for", "(", "int", "runs", "=", "0", ";", "runs", "<", "number", "of", "testbuilders", ";", "runs", "+", "+", ")", "{", "check", "equals", "and", "hash", "code", "(", "random", "highlighter", "builder", "(", ")", ",", "highlight", "builder", "tests", ":", ":", "serialized", "copy", ",", "highlight", "builder", "tests", ":", ":", "mutate", ")", ";", "}", "}" ]
[ "writes", "a", "log", "warn", "message", "when", "the", "extracted", "timestamp", "is", "invalid", "(", "negative", ")", "but", "returns", "the", "invalid", "timestamp", "as", "-", "is", ",", "which", "ultimately", "causes", "the", "record", "to", "be", "skipped", "and", "not", "to", "be", "processed" ]
[ "public", "long", "on", "invalid", "timestamp", "(", "final", "consumer", "record", "<", "object", ",", "object", ">", "record", ",", "final", "long", "record", "timestamp", ",", "final", "long", "partition", "time", ")", "{", "log", "warn", "(", "\"", "input", "record", "{", "}", "will", "be", "dropped", "because", "it", "has", "an", "invalid", "(", "negative", ")", "timestamp", "\"", ",", "record", ")", ";", "return", "record", "timestamp", ";", "}" ]
[ "determine", "if", "an", "expression", "can", "be", "written", "to", ",", "i", "e", "set", "value", "(", ")", "can", "be", "called" ]
[ "boolean", "is", "writable", "(", "@", "nullable", "object", "root", "object", ")", "throws", "evaluation", "exception", ";" ]
[ "updates", "the", "bounding", "box", "using", "the", "position", "channel" ]
[ "protected", "void", "calculate", "bounding", "box", "(", ")", "{", "bounding", "box", "clr", "(", ")", ";", "float", "channel", "position", "channel", "=", "particles", "get", "channel", "(", "particle", "channels", "position", ")", ";", "for", "(", "int", "pos", "=", "0", ",", "c", "=", "position", "channel", "stride", "size", "*", "particles", "size", ";", "pos", "<", "c", ";", "pos", "+", "=", "position", "channel", "stride", "size", ")", "{", "bounding", "box", "ext", "(", "position", "channel", "data", "[", "pos", "+", "particle", "channels", "x", "offset", "]", ",", "position", "channel", "data", "[", "pos", "+", "particle", "channels", "y", "offset", "]", ",", "position", "channel", "data", "[", "pos", "+", "particle", "channels", "z", "offset", "]", ")", ";", "}", "}" ]
[ "generates", "an", "image", "of", "what", "currently", "is", "drawn", "on", "the", "canvas", "throws", "an", "{", "@", "link", "activiti", "image", "exception", "}", "when", "{", "@", "link", "#", "close", "(", ")", "}", "is", "already", "called" ]
[ "public", "input", "stream", "generate", "image", "(", ")", "{", "if", "(", "closed", ")", "{", "throw", "new", "activiti", "image", "exception", "(", "\"", "process", "diagram", "generator", "already", "closed", "\"", ")", ";", "}", "try", "{", "byte", "array", "output", "stream", "stream", "=", "new", "byte", "array", "output", "stream", "(", ")", ";", "writer", "out", ";", "out", "=", "new", "output", "stream", "writer", "(", "stream", ",", "\"", "utf", "-", "8", "\"", ")", ";", "g", "stream", "(", "out", ",", "true", ")", ";", "return", "new", "byte", "array", "input", "stream", "(", "stream", "to", "byte", "array", "(", ")", ")", ";", "}", "catch", "(", "unsupported", "encoding", "exception", "|", "s", "v", "g", "graphics", "2", "d", "i", "o", "exception", "e", ")", "{", "throw", "new", "activiti", "image", "exception", "(", "\"", "error", "while", "generating", "process", "image", "\"", ",", "e", ")", ";", "}", "}" ]
[ "return", "the", "given", "path", "a", "string", "suitable", "for", "using", "on", "the", "host", "system" ]
[ "public", "static", "string", "escape", "path", "(", "path", "path", ")", "{", "if", "(", "platforms", "windows", ")", "{", "/", "/", "replace", "single", "backslash", "with", "forward", "slash", ",", "to", "avoid", "unintended", "escapes", "in", "scripts", "return", "path", "to", "string", "(", ")", "replace", "(", "'", "\\", "\\", "'", ",", "'", "/", "'", ")", ";", "}", "return", "path", "to", "string", "(", ")", ";", "}" ]
[ "writes", "the", "contents", "to", "the", "target", "file" ]
[ "public", "static", "boolean", "write", "file", "(", "file", "file", ",", "byte", "[", "]", "content", ",", "boolean", "append", ")", "{", "try", "(", "file", "channel", "file", "channel", "=", "new", "file", "output", "stream", "(", "file", ",", "append", ")", "get", "channel", "(", ")", ")", "{", "byte", "buffer", "buffer", "=", "byte", "buffer", "wrap", "(", "content", ")", ";", "file", "channel", "write", "(", "buffer", ")", ";", "return", "true", ";", "}", "catch", "(", "i", "o", "exception", "ioe", ")", "{", "if", "(", "ioe", "get", "message", "(", ")", "!", "=", "null", ")", "{", "string", "err", "msg", "=", "ioe", "get", "message", "(", ")", ";", "if", "(", "no", "space", "cn", "equals", "(", "err", "msg", ")", "|", "|", "no", "space", "en", "equals", "(", "err", "msg", ")", "|", "|", "err", "msg", "contains", "(", "disk", "quata", "cn", ")", "|", "|", "err", "msg", "contains", "(", "disk", "quata", "en", ")", ")", "{", "logger", "warn", "(", "\"", ",", "\"", ")", ";", "system", "exit", "(", "0", ")", ";", "}", "}", "}", "return", "false", ";", "}" ]
[ "the", "value", "of", "the", "access", "flags", "item", "is", "a", "mask", "of", "flags", "used", "to", "denote", "access", "permissions", "to", "and", "properties", "of", "this", "class", "or", "interface", "the", "interpretation", "of", "each", "flag", ",", "when", "set", ",", "is", "as", "shown", "in", "table", "4", "1" ]
[ "public", "short", "get", "access", "flags", "(", ")", "{", "return", "access", "flags", ";", "}" ]
[ "returns", "the", "child", "node", "at", "the", "given", "index", "returns", "null", "if", "the", "index", "is", "out", "of", "bounds" ]
[ "public", "g", "tree", "node", "get", "child", "(", "int", "index", ")", "{", "return", "children", "(", ")", "get", "(", "index", ")", ";", "}" ]
[ "extract", "the", "file", "extension", "from", "the", "given", "uri", "path" ]
[ "public", "static", "string", "extract", "file", "extension", "(", "string", "path", ")", "{", "int", "end", "=", "path", "index", "of", "(", "'", "?", "'", ")", ";", "int", "fragment", "index", "=", "path", "index", "of", "(", "'", "#", "'", ")", ";", "if", "(", "fragment", "index", "!", "=", "-", "1", "&", "&", "(", "end", "=", "=", "-", "1", "|", "|", "fragment", "index", "<", "end", ")", ")", "{", "end", "=", "fragment", "index", ";", "}", "if", "(", "end", "=", "=", "-", "1", ")", "{", "end", "=", "path", "length", "(", ")", ";", "}", "int", "begin", "=", "path", "last", "index", "of", "(", "'", "/", "'", ",", "end", ")", "+", "1", ";", "int", "param", "index", "=", "path", "index", "of", "(", "'", ";", "'", ",", "begin", ")", ";", "end", "=", "(", "param", "index", "!", "=", "-", "1", "&", "&", "param", "index", "<", "end", "?", "param", "index", ":", "end", ")", ";", "int", "ext", "index", "=", "path", "last", "index", "of", "(", "'", "'", ",", "end", ")", ";", "if", "(", "ext", "index", "!", "=", "-", "1", "&", "&", "ext", "index", ">", "begin", ")", "{", "return", "path", "substring", "(", "ext", "index", "+", "1", ",", "end", ")", ";", "}", "return", "null", ";", "}" ]
[ "determine", "the", "minimum", "stack", "offset", "for", "parameters" ]
[ "public", "static", "integer", "get", "base", "stack", "param", "offset", "(", "function", "function", ")", "{", "prototype", "model", "convention", "=", "function", "get", "calling", "convention", "(", ")", ";", "if", "(", "convention", "=", "=", "null", ")", "{", "convention", "=", "function", "get", "program", "(", ")", "get", "compiler", "spec", "(", ")", "get", "default", "calling", "convention", "(", ")", ";", "}", "/", "/", "if", "we", "have", "conventions", ",", "try", "to", "figure", "out", "where", "the", "parameters", "do", "start", "/", "/", "if", "no", "conventions", "or", "stack", "parameter", "defs", ",", "assume", "0", "/", "/", "integer", "base", "offset", "=", "null", ";", "if", "(", "convention", "!", "=", "null", ")", "{", "long", "val", "=", "convention", "get", "stack", "parameter", "offset", "(", ")", ";", "if", "(", "val", "=", "=", "null", ")", "{", "base", "offset", "=", "convention", "get", "stackshift", "(", ")", ";", "}", "else", "{", "base", "offset", "=", "val", "int", "value", "(", ")", ";", "}", "}", "return", "base", "offset", ";", "}" ]
[ "test", "phrase", "boosting", "over", "normal", "term", "matches", "note", "that", "this", "will", "never", "pass", "with", "the", "plain", "highlighter", "because", "it", "doesn", "'", "t", "support", "the", "concept", "of", "terms", "having", "a", "different", "weight", "based", "on", "position" ]
[ "private", "void", "phrase", "boost", "test", "case", "(", "string", "highlighter", "type", ")", "{", "ensure", "green", "(", ")", ";", "string", "builder", "text", "=", "new", "string", "builder", "(", ")", ";", "text", "append", "(", "\"", "words", "words", "junk", "junk", "junk", "junk", "junk", "junk", "junk", "junk", "highlight", "junk", "junk", "junk", "junk", "together", "junk", "\\", "n", "\"", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "10", ";", "i", "+", "+", ")", "{", "text", "append", "(", "\"", "junk", "junk", "junk", "junk", "junk", "junk", "junk", "junk", "junk", "junk", "junk", "junk", "junk", "junk", "junk", "junk", "junk", "junk", "junk", "junk", "\\", "n", "\"", ")", ";", "}", "text", "append", "(", "\"", "highlight", "words", "together", "\\", "n", "\"", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "10", ";", "i", "+", "+", ")", "{", "text", "append", "(", "\"", "junk", "junk", "junk", "junk", "junk", "junk", "junk", "junk", "junk", "junk", "junk", "junk", "junk", "junk", "junk", "junk", "junk", "junk", "junk", "junk", "\\", "n", "\"", ")", ";", "}", "index", "doc", "(", "\"", "test", "\"", ",", "\"", "1", "\"", ",", "\"", "field", "1", "\"", ",", "text", "to", "string", "(", ")", ")", ";", "refresh", "(", ")", ";", "/", "/", "match", "queries", "phrase", "boost", "test", "case", "for", "clauses", "(", "highlighter", "type", ",", "1", "0", "0f", ",", "match", "query", "(", "\"", "field", "1", "\"", ",", "\"", "highlight", "words", "together", "\"", ")", ",", "match", "phrase", "query", "(", "\"", "field", "1", "\"", ",", "\"", "highlight", "words", "together", "\"", ")", ")", ";", "/", "/", "query", "string", "with", "a", "single", "field", "phrase", "boost", "test", "case", "for", "clauses", "(", "highlighter", "type", ",", "1", "0", "0f", ",", "query", "string", "query", "(", "\"", "highlight", "words", "together", "\"", ")", "field", "(", "\"", "field", "1", "\"", ")", ",", "query", "string", "query", "(", "\"", "\\", "\"", "highlight", "words", "together", "\\", "\"", "\"", ")", "field", "(", "\"", "field", "1", "\"", ")", ")", ";", "/", "/", "query", "string", "with", "a", "single", "field", "without", "dismax", "phrase", "boost", "test", "case", "for", "clauses", "(", "highlighter", "type", ",", "1", "0", "0f", ",", "query", "string", "query", "(", "\"", "highlight", "words", "together", "\"", ")", "field", "(", "\"", "field", "1", "\"", ")", ",", "query", "string", "query", "(", "\"", "\\", "\"", "highlight", "words", "together", "\\", "\"", "\"", ")", "field", "(", "\"", "field", "1", "\"", ")", ")", ";", "/", "/", "query", "string", "with", "more", "than", "one", "field", "phrase", "boost", "test", "case", "for", "clauses", "(", "highlighter", "type", ",", "1", "0", "0f", ",", "query", "string", "query", "(", "\"", "highlight", "words", "together", "\"", ")", "field", "(", "\"", "field", "1", "\"", ")", "field", "(", "\"", "field", "2", "\"", ")", ",", "query", "string", "query", "(", "\"", "\\", "\"", "highlight", "words", "together", "\\", "\"", "\"", ")", "field", "(", "\"", "field", "1", "\"", ")", "field", "(", "\"", "field", "2", "\"", ")", ")", ";", "/", "/", "query", "string", "boosting", "the", "field", "phrase", "boost", "test", "case", "for", "clauses", "(", "highlighter", "type", ",", "1f", ",", "query", "string", "query", "(", "\"", "highlight", "words", "together", "\"", ")", "field", "(", "\"", "field", "1", "\"", ")", ",", "query", "string", "query", "(", "\"", "\\", "\"", "highlight", "words", "together", "\\", "\"", "\"", ")", "field", "(", "\"", "field", "1", "\"", ",", "100", ")", ")", ";", "}" ]
[ "make", "a", "call", "from", "a", "client", "and", "verify", "if", "header", "info", "is", "changed", "in", "server", "side" ]
[ "private", "static", "void", "call", "and", "verify", "(", "server", "server", ",", "inet", "socket", "address", "addr", ",", "int", "service", "class", ",", "boolean", "no", "changed", ")", "throws", "i", "o", "exception", "{", "client", "client", "=", "new", "client", "(", "long", "writable", "class", ",", "conf", ")", ";", "call", "(", "client", ",", "addr", ",", "service", "class", ",", "conf", ")", ";", "connection", "connection", "=", "server", "get", "connections", "(", ")", "[", "0", "]", ";", "int", "service", "class", "2", "=", "connection", "get", "service", "class", "(", ")", ";", "assert", "false", "(", "no", "changed", "^", "service", "class", "=", "=", "service", "class", "2", ")", ";", "client", "stop", "(", ")", ";", "}" ]
[ "get", "the", "default", "socket", "factory", "as", "specified", "by", "the", "configuration", "parameter", "<", "tt", ">", "hadoop", "rpc", "socket", "factory", "default", "<", "tt", ">" ]
[ "public", "static", "socket", "factory", "get", "default", "socket", "factory", "(", "configuration", "conf", ")", "{", "string", "prop", "value", "=", "conf", "get", "(", "common", "configuration", "keys", "public", "hadoop", "rpc", "socket", "factory", "class", "default", "key", ",", "common", "configuration", "keys", "public", "hadoop", "rpc", "socket", "factory", "class", "default", "default", ")", ";", "if", "(", "(", "prop", "value", "=", "=", "null", ")", "|", "|", "(", "prop", "value", "length", "(", ")", "=", "=", "0", ")", ")", "return", "socket", "factory", "get", "default", "(", ")", ";", "return", "get", "socket", "factory", "from", "property", "(", "conf", ",", "prop", "value", ")", ";", "}" ]
[ "returns", "a", "view", "of", "the", "supplied", "{", "@", "code", "iterator", "}", "that", "removes", "each", "element", "from", "the", "supplied", "{", "@", "code", "iterator", "}", "as", "it", "is", "returned", "the", "provided", "iterator", "must", "support", "{", "@", "link", "iterator", "#", "remove", "(", ")", "}", "or", "else", "the", "returned", "iterator", "will", "fail", "on", "the", "first", "call", "to", "{", "@", "code", "next", "}" ]
[ "public", "static", "<", "t", ">", "iterator", "<", "t", ">", "consuming", "iterator", "(", "final", "iterator", "<", "t", ">", "iterator", ")", "{", "check", "not", "null", "(", "iterator", ")", ";", "return", "new", "unmodifiable", "iterator", "<", "t", ">", "(", ")", "{", "@", "override", "public", "boolean", "has", "next", "(", ")", "{", "return", "iterator", "has", "next", "(", ")", ";", "}", "@", "override", "public", "t", "next", "(", ")", "{", "t", "next", "=", "iterator", "next", "(", ")", ";", "iterator", "remove", "(", ")", ";", "return", "next", ";", "}", "@", "override", "public", "string", "to", "string", "(", ")", "{", "return", "\"", "iterators", "consuming", "iterator", "(", ")", "\"", ";", "}", "}", ";", "}" ]
[ "set", "the", "cursor", "and", "force", "a", "repaint", "on", "me", "called", "by", "the", "paste", "operations", "that", "could", "potentially", "take", "a", "long", "time", "the", "cursor", "is", "reset", "in", "the", "domain", "object", "change", "listener", "when", "the", "event", "comes", "in", "for", "the", "group", "that", "was", "last", "\"", "pasted", "\"" ]
[ "void", "set", "busy", "cursor", "(", "boolean", "busy", ")", "{", "if", "(", "busy", ")", "{", "set", "cursor", "(", "cursor", "get", "predefined", "cursor", "(", "cursor", "wait", "cursor", ")", ")", ";", "}", "else", "{", "set", "cursor", "(", "cursor", "get", "default", "cursor", "(", ")", ")", ";", "}", "rectangle", "r", "=", "get", "bounds", "(", ")", ";", "invalidate", "tree", "parent", "(", ")", ";", "paint", "immediately", "(", "r", ")", ";", "}" ]
[ "returns", "a", "string", "containing", "the", "string", "representation", "of", "each", "argument", ",", "using", "the", "previously", "configured", "separator", "between", "each" ]
[ "public", "final", "string", "join", "(", "@", "nullable", "decl", "object", "first", ",", "@", "nullable", "decl", "object", "second", ",", "object", "rest", ")", "{", "return", "join", "(", "iterable", "(", "first", ",", "second", ",", "rest", ")", ")", ";", "}" ]
[ "you", "cannot", "make", "a", "dependency", "link", "unless", "you", "know", "the", "the", "local", "or", "peer", "endpoint" ]
[ "public", "void", "when", "no", "service", "labels", "exist", "kind", "is", "unknown", "(", ")", "{", "dependency", "link", "v", "2", "span", "iterator", "iterator", "=", "iterator", "(", "new", "record", "(", ")", "values", "(", "trace", "id", "high", ",", "trace", "id", ",", "parent", "id", ",", "span", "id", ",", "\"", "cs", "\"", ",", "-", "1", ",", "null", ")", ")", ";", "span", "span", "=", "iterator", "next", "(", ")", ";", "assert", "that", "(", "span", "kind", "(", ")", ")", "is", "null", "(", ")", ";", "assert", "that", "(", "span", "local", "endpoint", "(", ")", ")", "is", "null", "(", ")", ";", "assert", "that", "(", "span", "remote", "endpoint", "(", ")", ")", "is", "null", "(", ")", ";", "}" ]
[ "return", "a", "new", "{", "@", "code", "request", "path", "}", "instance", "with", "a", "modified", "context", "path", "the", "new", "context", "path", "must", "match", "0", "or", "more", "path", "segments", "at", "the", "start" ]
[ "request", "path", "modify", "context", "path", "(", "string", "context", "path", ")", ";" ]
[ "logs", "out", "current", "logged", "in", "user", "session" ]
[ "public", "single", "<", "void", ">", "rx", "logout", "user", "(", "api", "client", "auth", "info", "auth", "info", ")", "{", "return", "single", "create", "(", "new", "io", "vertx", "rx", "java", "single", "on", "subscribe", "adapter", "<", ">", "(", "fut", "-", ">", "delegate", "logout", "user", "(", "auth", "info", ",", "fut", ")", ")", ")", ";", "}" ]
[ "convert", "the", "given", "object", "to", "string", "with", "each", "line", "indented", "by", "4", "spaces", "(", "except", "the", "first", "line", ")" ]
[ "private", "string", "to", "indented", "string", "(", "object", "o", ")", "{", "if", "(", "o", "=", "=", "null", ")", "{", "return", "\"", "null", "\"", ";", "}", "return", "o", "to", "string", "(", ")", "replace", "(", "\"", "\\", "n", "\"", ",", "\"", "\\", "n", "\"", ")", ";", "}" ]
[ "get", "the", "fairshare", "for", "the", "{", "@", "link", "schedulable", "}", "if", "it", "is", "fixed", ",", "-", "1", "otherwise", "the", "fairshare", "is", "fixed", "if", "either", "the", "max", "share", "is", "0", ",", "weight", "is", "0", ",", "or", "the", "schedulable", "is", "not", "active", "for", "instantaneous", "fairshare" ]
[ "private", "static", "long", "get", "fair", "share", "if", "fixed", "(", "schedulable", "sched", ",", "boolean", "is", "steady", "share", ",", "string", "type", ")", "{", "/", "/", "check", "if", "max", "share", "is", "0", "if", "(", "sched", "get", "max", "share", "(", ")", "get", "resource", "value", "(", "type", ")", "<", "=", "0", ")", "{", "return", "0", ";", "}", "/", "/", "for", "instantaneous", "fairshares", ",", "check", "if", "queue", "is", "active", "if", "(", "!", "is", "steady", "share", "&", "&", "(", "sched", "instanceof", "f", "s", "queue", ")", "&", "&", "!", "(", "(", "f", "s", "queue", ")", "sched", ")", "is", "active", "(", ")", ")", "{", "return", "0", ";", "}", "/", "/", "check", "if", "weight", "is", "0", "if", "(", "sched", "get", "weight", "(", ")", "<", "=", "0", ")", "{", "long", "min", "share", "=", "sched", "get", "min", "share", "(", ")", "get", "resource", "value", "(", "type", ")", ";", "return", "(", "min", "share", "<", "=", "0", ")", "?", "0", ":", "min", "share", ";", "}", "return", "-", "1", ";", "}" ]
[ "find", "the", "fields", "constant", "that", "matches", "field", "id", ",", "throwing", "an", "exception", "if", "it", "is", "not", "found" ]
[ "public", "static", "fields", "find", "by", "thrift", "id", "or", "throw", "(", "int", "field", "id", ")", "{", "fields", "fields", "=", "find", "by", "thrift", "id", "(", "field", "id", ")", ";", "if", "(", "fields", "=", "=", "null", ")", "throw", "new", "illegal", "argument", "exception", "(", "\"", "field", "\"", "+", "field", "id", "+", "\"", "doesn", "'", "t", "exist", "!", "\"", ")", ";", "return", "fields", ";", "}" ]
[ "returns", "the", "size", "of", "this", "object", "file" ]
[ "public", "int", "get", "size", "(", ")", "{", "return", "size", ";", "}" ]
[ "associates", "{", "@", "code", "value", "}", "with", "the", "specified", "row", "and", "column", "indices", "the", "logic", "{", "@", "code", "put", "(", "row", "key", "list", "(", ")", "get", "(", "row", "index", ")", ",", "column", "key", "list", "(", ")", "get", "(", "column", "index", ")", ",", "value", ")", "}", "has", "the", "same", "behavior", ",", "but", "this", "method", "runs", "more", "quickly" ]
[ "public", "v", "set", "(", "int", "row", "index", ",", "int", "column", "index", ",", "@", "nullable", "decl", "v", "value", ")", "{", "/", "/", "in", "gwt", "array", "access", "never", "throws", "index", "out", "of", "bounds", "exception", "check", "element", "index", "(", "row", "index", ",", "row", "list", "size", "(", ")", ")", ";", "check", "element", "index", "(", "column", "index", ",", "column", "list", "size", "(", ")", ")", ";", "v", "old", "value", "=", "array", "[", "row", "index", "]", "[", "column", "index", "]", ";", "array", "[", "row", "index", "]", "[", "column", "index", "]", "=", "value", ";", "return", "old", "value", ";", "}" ]
[ "test", "to", "inet", "socket", "address" ]
[ "public", "void", "test", "to", "inet", "socket", "address", "(", ")", "{", "try", "{", "net", "util", "to", "inet", "socket", "address", "(", "\"", "23939", ":", "ks", "\"", ")", ";", "}", "catch", "(", "exception", "e", ")", "{", "assert", "that", "(", "e", ")", "is", "instance", "of", "(", "number", "format", "exception", "class", ")", ";", "}", "}" ]
[ "a", "list", "of", "extra", "methods", "that", "should", "be", "generate", "when", "this", "method", "description", "is", "used" ]
[ "public", "builder", "extra", "methods", "(", "immutable", "list", "<", "method", "spec", ">", "extra", "methods", ")", "{", "this", "extra", "methods", "=", "extra", "methods", ";", "return", "this", ";", "}" ]
[ "get", "the", "os", "page", "size" ]
[ "long", "get", "os", "page", "size", "(", ")", "{", "return", "mem", "cache", "stats", "get", "page", "size", "(", ")", ";", "}" ]
[ "returns", "the", "flag", "word", "of", "this", "resource" ]
[ "public", "short", "get", "flagword", "(", ")", "{", "return", "flagword", ";", "}" ]
[ "this", "sets", "the", "text", "that", "appears", "as", "the", "border", "title", "of", "this", "panel" ]
[ "void", "set", "title", "(", "string", "conflict", "type", ")", "{", "(", "(", "titled", "border", ")", "get", "border", "(", ")", ")", "set", "title", "(", "\"", "resolve", "\"", "+", "conflict", "type", "+", "\"", "conflict", "\"", ")", ";", "}" ]
[ "note", ":", "the", "exit", "handlers", "will", "be", "called", "after", "on", "exit", "of", "slot", "chain" ]
[ "private", "void", "call", "exit", "handlers", "and", "clean", "up", "(", "context", "ctx", ")", "{", "if", "(", "exit", "handlers", "!", "=", "null", "&", "&", "!", "exit", "handlers", "is", "empty", "(", ")", ")", "{", "for", "(", "bi", "consumer", "<", "context", ",", "entry", ">", "handler", ":", "this", "exit", "handlers", ")", "{", "try", "{", "handler", "accept", "(", "ctx", ",", "this", ")", ";", "}", "catch", "(", "exception", "e", ")", "{", "record", "log", "warn", "(", "\"", "error", "occurred", "when", "invoking", "entry", "exit", "handler", ",", "current", "entry", ":", "\"", "+", "resource", "wrapper", "get", "name", "(", ")", ",", "e", ")", ";", "}", "}", "exit", "handlers", "=", "null", ";", "}", "}" ]
[ "execute", "the", "given", "{", "@", "link", "statement", "}", "for", "a", "stream", "of", "{", "@", "link", "result", "}", "objects" ]
[ "publisher", "<", "?", "extends", "result", ">", "execute", "(", "statement", "statement", ")", ";" ]
[ "set", "one", "or", "more", "cache", "operation", "sources", "which", "are", "used", "to", "find", "the", "cache", "attributes", "if", "more", "than", "one", "source", "is", "provided", ",", "they", "will", "be", "aggregated", "using", "a", "{", "@", "link", "composite", "cache", "operation", "source", "}" ]
[ "public", "void", "set", "cache", "operation", "sources", "(", "cache", "operation", "source", "cache", "operation", "sources", ")", "{", "assert", "not", "empty", "(", "cache", "operation", "sources", ",", "\"", "at", "least", "1", "cache", "operation", "source", "needs", "to", "be", "specified", "\"", ")", ";", "this", "cache", "operation", "source", "=", "(", "cache", "operation", "sources", "length", ">", "1", "?", "new", "composite", "cache", "operation", "source", "(", "cache", "operation", "sources", ")", ":", "cache", "operation", "sources", "[", "0", "]", ")", ";", "}" ]
[ "return", "the", "base", "6", "4", "-", "encode", "bytes", "of", "3des", "encryption" ]
[ "public", "static", "byte", "[", "]", "encrypt", "3", "d", "e", "s", "2", "base", "6", "4", "(", "final", "byte", "[", "]", "data", ",", "final", "byte", "[", "]", "key", ",", "final", "string", "transformation", ",", "final", "byte", "[", "]", "iv", ")", "{", "return", "utils", "bridge", "base", "6", "4", "encode", "(", "encrypt", "3", "d", "e", "s", "(", "data", ",", "key", ",", "transformation", ",", "iv", ")", ")", ";", "}" ]
[ "adds", "controller", "listener" ]
[ "public", "void", "add", "controller", "listener", "(", "controller", "listener", "<", "?", "super", "info", ">", "controller", "listener", ")", "{", "preconditions", "check", "not", "null", "(", "controller", "listener", ")", ";", "if", "(", "m", "controller", "listener", "instanceof", "internal", "forwarding", "listener", ")", "{", "(", "(", "internal", "forwarding", "listener", "<", "info", ">", ")", "m", "controller", "listener", ")", "add", "listener", "(", "controller", "listener", ")", ";", "return", ";", "}", "if", "(", "m", "controller", "listener", "!", "=", "null", ")", "{", "m", "controller", "listener", "=", "internal", "forwarding", "listener", "create", "internal", "(", "m", "controller", "listener", ",", "controller", "listener", ")", ";", "return", ";", "}", "/", "/", "listener", "only", "receives", "<", "info", ">", ",", "it", "never", "produces", "one", "/", "/", "that", "means", "if", "it", "can", "accept", "<", "?", "super", "info", ">", ",", "it", "can", "very", "well", "accept", "<", "info", ">", "m", "controller", "listener", "=", "(", "controller", "listener", "<", "info", ">", ")", "controller", "listener", ";", "}" ]
[ "given", "a", "path", ",", "return", "the", "s3", "resource", "to", "it", "if", "{", "@", "code", "is", "directory", "}", "is", "true", ",", "a", "\"", "\"", "is", "added", "to", "the", "path", "this", "is", "critical", "when", "adding", "wildcard", "permissions", "under", "a", "directory", ",", "and", "also", "needed", "when", "locking", "down", "dir", "-", "as", "-", "file", "and", "dir", "-", "as", "-", "directory", "-", "marker", "access" ]
[ "public", "static", "string", "resource", "(", "path", "path", ",", "final", "boolean", "is", "directory", ",", "boolean", "add", "wildcard", ")", "{", "string", "key", "=", "path", "to", "key", "(", "path", ")", ";", "if", "(", "is", "directory", "&", "&", "!", "key", "is", "empty", "(", ")", ")", "{", "key", "=", "key", "+", "\"", "/", "\"", ";", "}", "return", "resource", "(", "path", "to", "uri", "(", ")", "get", "host", "(", ")", ",", "key", ",", "add", "wildcard", ")", ";", "}" ]
[ "create", "the", "assumed", "role", "configuration" ]
[ "public", "configuration", "create", "assumed", "role", "config", "(", ")", "{", "return", "create", "assumed", "role", "config", "(", "get", "assumed", "role", "a", "r", "n", "(", ")", ")", ";", "}" ]
[ "{", "@", "inherit", "doc", "}" ]
[ "public", "string", "to", "string", "(", ")", "{", "return", "symbol", "+", "\"", ":", "value", "=", "\"", "+", "value", "+", "\"", ",", "delta", "=", "\"", "+", "delta", "+", "\"", ",", "limit", "=", "\"", "+", "limit", ";", "}" ]
[ "sets", "the", "version", "needed", "to", "extract", "the", "entry" ]
[ "public", "void", "set", "version", "needed", "(", "short", "version", "needed", ")", "{", "this", "version", "needed", "=", "version", "needed", ";", "}" ]
[ "assert", "that", "the", "topics", "with", "the", "specified", "names", "do", "not", "exist" ]
[ "public", "void", "assert", "topics", "do", "not", "exist", "(", "string", "topic", "names", ")", "throws", "interrupted", "exception", "{", "set", "<", "string", ">", "topic", "name", "set", "=", "new", "hash", "set", "<", ">", "(", "arrays", "as", "list", "(", "topic", "names", ")", ")", ";", "atomic", "reference", "<", "set", "<", "string", ">", ">", "existing", "topics", "=", "new", "atomic", "reference", "<", ">", "(", "topic", "name", "set", ")", ";", "wait", "for", "condition", "(", "(", ")", "-", ">", "check", "topics", "exist", "(", "topic", "name", "set", ",", "(", "actual", ",", "expected", ")", "-", ">", "{", "existing", "topics", "set", "(", "actual", ")", ";", "return", "actual", "is", "empty", "(", ")", ";", "}", ")", "or", "else", "(", "false", ")", ",", "connector", "setup", "duration", "ms", ",", "\"", "unexpectedly", "found", "topics", "\"", "+", "existing", "topics", "get", "(", ")", ")", ";", "}" ]
[ "multiply", "{", "@", "code", "lhs", "}", "by", "{", "@", "code", "by", "}", ",", "and", "set", "the", "result", "rounded", "up", "into", "a", "cloned", "version", "of", "{", "@", "code", "lhs", "}", "resource", "object" ]
[ "public", "static", "resource", "multiply", "and", "round", "up", "(", "resource", "lhs", ",", "double", "by", ")", "{", "return", "multiply", "and", "round", "(", "clone", "(", "lhs", ")", ",", "by", ",", "rounding", "direction", "up", ")", ";", "}" ]
[ "test", "the", "property", "'", "username", "'" ]
[ "public", "void", "username", "test", "(", ")", "{", "/", "/", "todo", ":", "test", "username", "}" ]
[ "construct", "an", "error", "parse", "result" ]
[ "public", "static", "assembly", "parse", "error", "result", "error", "(", "string", "got", ",", "set", "<", "string", ">", "suggestions", ")", "{", "return", "new", "assembly", "parse", "error", "result", "(", "got", ",", "suggestions", ")", ";", "}" ]
[ "convenience", "method", ",", "so", "that", "we", "don", "'", "t", "open", "a", "new", "connection", "when", "using", "this", "method", "from", "within", "another", "method", "otherwise", "every", "api", "invocation", "incurs", "the", "overhead", "of", "openingclosing", "a", "tcp", "connection" ]
[ "private", "boolean", "is", "file", "(", "f", "t", "p", "client", "client", ",", "path", "file", ")", "{", "try", "{", "return", "get", "file", "status", "(", "client", ",", "file", ")", "is", "file", "(", ")", ";", "}", "catch", "(", "file", "not", "found", "exception", "e", ")", "{", "return", "false", ";", "/", "/", "file", "does", "not", "exist", "}", "catch", "(", "i", "o", "exception", "ioe", ")", "{", "throw", "new", "f", "t", "p", "exception", "(", "\"", "file", "check", "failed", "\"", ",", "ioe", ")", ";", "}", "}" ]
[ "write", "v2", "rainbow", "fish", "to", "file" ]
[ "public", "static", "void", "write", "v", "2", "(", "rainbow", "fish", "v", "2", "rainbow", "fish", ",", "string", "filename", ")", "throws", "i", "o", "exception", "{", "var", "map", "=", "map", "of", "(", "\"", "name", "\"", ",", "rainbow", "fish", "get", "name", "(", ")", ",", "\"", "age", "\"", ",", "string", "format", "(", "\"", "%", "d", "\"", ",", "rainbow", "fish", "get", "age", "(", ")", ")", ",", "\"", "length", "meters", "\"", ",", "string", "format", "(", "\"", "%", "d", "\"", ",", "rainbow", "fish", "get", "length", "meters", "(", ")", ")", ",", "weight", "tons", ",", "string", "format", "(", "\"", "%", "d", "\"", ",", "rainbow", "fish", "get", "weight", "tons", "(", ")", ")", ",", "\"", "angry", "\"", ",", "boolean", "to", "string", "(", "rainbow", "fish", "get", "angry", "(", ")", ")", ",", "\"", "hungry", "\"", ",", "boolean", "to", "string", "(", "rainbow", "fish", "get", "hungry", "(", ")", ")", ",", "\"", "sleeping", "\"", ",", "boolean", "to", "string", "(", "rainbow", "fish", "get", "sleeping", "(", ")", ")", ")", ";", "try", "(", "var", "file", "out", "=", "new", "file", "output", "stream", "(", "filename", ")", ";", "var", "obj", "out", "=", "new", "object", "output", "stream", "(", "file", "out", ")", ")", "{", "obj", "out", "write", "object", "(", "map", ")", ";", "}", "}" ]
[ "get", "array", "enum" ]
[ "public", "list", "<", "array", "enum", "enum", ">", "get", "array", "enum", "(", ")", "{", "return", "array", "enum", ";", "}" ]
[ "returns", "whether", "the", "file", "or", "its", "backup", "exists" ]
[ "public", "boolean", "exists", "(", ")", "{", "return", "base", "name", "exists", "(", ")", "|", "|", "backup", "name", "exists", "(", ")", ";", "}" ]
[ "advance", "this", "instance", "to", "the", "given", "document", "id" ]
[ "public", "abstract", "boolean", "advance", "exact", "(", "int", "doc", ")", "throws", "i", "o", "exception", ";" ]
[ "test", "uint", "3", "2", "max" ]
[ "public", "void", "test", "uint", "3", "2", "max", "(", ")", "throws", "i", "o", "exception", "{", "int", "value", "=", "leb128", "decode", "3", "2u", "(", "br", "(", "(", "byte", ")", "0xff", ",", "(", "byte", ")", "0xff", ",", "(", "byte", ")", "0xff", ",", "(", "byte", ")", "0xff", ",", "(", "byte", ")", "0x", "0", "7", ")", ")", ";", "assert", "assert", "equals", "(", "integer", "max", "value", ",", "value", ")", ";", "}" ]
[ "static", "utility", "to", "parse", "a", "field", "of", "type", "int", "from", "a", "byte", "sequence", "that", "represents", "text", "characters", "(", "such", "as", "when", "read", "from", "a", "file", "stream", ")" ]
[ "public", "static", "final", "int", "parse", "field", "(", "byte", "[", "]", "bytes", ",", "int", "start", "pos", ",", "int", "length", ",", "char", "delimiter", ")", "{", "long", "val", "=", "0", ";", "boolean", "neg", "=", "false", ";", "if", "(", "bytes", "[", "start", "pos", "]", "=", "=", "delimiter", ")", "{", "throw", "new", "number", "format", "exception", "(", "\"", "empty", "field", "\"", ")", ";", "}", "if", "(", "bytes", "[", "start", "pos", "]", "=", "=", "'", "-", "'", ")", "{", "neg", "=", "true", ";", "start", "pos", "+", "+", ";", "length", "-", "-", ";", "if", "(", "length", "=", "=", "0", "|", "|", "bytes", "[", "start", "pos", "]", "=", "=", "delimiter", ")", "{", "throw", "new", "number", "format", "exception", "(", "\"", "orphaned", "minus", "sign", "\"", ")", ";", "}", "}", "for", "(", ";", "length", ">", "0", ";", "start", "pos", "+", "+", ",", "length", "-", "-", ")", "{", "if", "(", "bytes", "[", "start", "pos", "]", "=", "=", "delimiter", ")", "{", "return", "(", "int", ")", "(", "neg", "?", "-", "val", ":", "val", ")", ";", "}", "if", "(", "bytes", "[", "start", "pos", "]", "<", "48", "|", "|", "bytes", "[", "start", "pos", "]", ">", "57", ")", "{", "throw", "new", "number", "format", "exception", "(", "\"", "invalid", "character", "\"", ")", ";", "}", "val", "*", "=", "10", ";", "val", "+", "=", "bytes", "[", "start", "pos", "]", "-", "48", ";", "if", "(", "val", ">", "overflow", "bound", "&", "&", "(", "!", "neg", "|", "|", "val", ">", "underflow", "bound", ")", ")", "{", "throw", "new", "number", "format", "exception", "(", "\"", "value", "overflow", "/", "underflow", "\"", ")", ";", "}", "}", "return", "(", "int", ")", "(", "neg", "?", "-", "val", ":", "val", ")", ";", "}" ]
[ "the", "persist", "policy", "for", "this", "metric" ]
[ "public", "string", "get", "persist", "policy", "(", ")", "{", "return", "this", "persist", "policy", ";", "}" ]
[ "{", "@", "inherit", "doc", "}" ]
[ "protected", "void", "write", "to", "0", "(", "dex", "file", "file", ",", "annotated", "output", "out", ")", "{", "int", "value", "=", "type", "get", "map", "value", "(", ")", ";", "int", "offset", ";", "if", "(", "first", "item", "=", "=", "null", ")", "{", "offset", "=", "section", "get", "file", "offset", "(", ")", ";", "}", "else", "{", "offset", "=", "section", "get", "absolute", "item", "offset", "(", "first", "item", ")", ";", "}", "if", "(", "out", "annotates", "(", ")", ")", "{", "out", "annotate", "(", "0", ",", "offset", "string", "(", ")", "+", "'", "'", "+", "type", "get", "type", "name", "(", ")", "+", "\"", "map", "\"", ")", ";", "out", "annotate", "(", "2", ",", "\"", "type", ":", "\"", "+", "hex", "u", "2", "(", "value", ")", "+", "\"", "/", "/", "\"", "+", "type", "to", "string", "(", ")", ")", ";", "out", "annotate", "(", "2", ",", "\"", "unused", ":", "0", "\"", ")", ";", "out", "annotate", "(", "4", ",", "\"", "size", ":", "\"", "+", "hex", "u", "4", "(", "item", "count", ")", ")", ";", "out", "annotate", "(", "4", ",", "\"", "offset", ":", "\"", "+", "hex", "u", "4", "(", "offset", ")", ")", ";", "}", "out", "write", "short", "(", "value", ")", ";", "out", "write", "short", "(", "0", ")", ";", "/", "/", "unused", "out", "write", "int", "(", "item", "count", ")", ";", "out", "write", "int", "(", "offset", ")", ";", "}" ]
[ "ensures", "that", "future", "has", "completed", "normally" ]
[ "public", "static", "void", "check", "completed", "normally", "(", "completable", "future", "<", "?", ">", "future", ")", "{", "check", "state", "(", "future", "is", "done", "(", ")", ")", ";", "if", "(", "future", "is", "completed", "exceptionally", "(", ")", ")", "{", "try", "{", "future", "get", "(", ")", ";", "}", "catch", "(", "interrupted", "exception", "|", "execution", "exception", "e", ")", "{", "throw", "new", "illegal", "state", "exception", "(", "e", ")", ";", "}", "}", "}", "/", "/", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "/", "/", "utilities", "/", "/", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-" ]
[ "this", "method", "are", "mostly", "used", "to", "get", "a", "compound", "config", "file", ",", "such", "as", "a", "complete", "dubbo", "properties", "file", "@", "revision", "2", "7", "4" ]
[ "default", "string", "get", "properties", "(", "string", "key", ",", "string", "group", ",", "long", "timeout", ")", "throws", "illegal", "state", "exception", "{", "return", "get", "config", "(", "key", ",", "group", ",", "timeout", ")", ";", "}" ]
[ "sets", "the", "current", "translation", "values" ]
[ "private", "void", "set", "translation", "(", "int", "x", ",", "int", "y", ")", "{", "trans", "x", "=", "current", "state", "translate", "x", "=", "x", ";", "trans", "y", "=", "current", "state", "translate", "y", "=", "y", ";", "}" ]
[ "this", "implementation", "delegates", "to", "the", "{", "@", "code", "create", "connection", "(", "username", ",", "password", ")", "}", "method", "of", "the", "target", "connection", "factory", ",", "passing", "in", "the", "specified", "user", "credentials", "if", "the", "specified", "username", "is", "empty", ",", "it", "will", "simply", "delegate", "to", "the", "standard", "{", "@", "code", "create", "connection", "(", ")", "}", "method", "of", "the", "target", "connection", "factory" ]
[ "protected", "connection", "do", "create", "connection", "(", "@", "nullable", "string", "username", ",", "@", "nullable", "string", "password", ")", "throws", "j", "m", "s", "exception", "{", "connection", "factory", "target", "=", "obtain", "target", "connection", "factory", "(", ")", ";", "if", "(", "string", "utils", "has", "length", "(", "username", ")", ")", "{", "return", "target", "create", "connection", "(", "username", ",", "password", ")", ";", "}", "else", "{", "return", "target", "create", "connection", "(", ")", ";", "}", "}" ]
[ "makes", "sure", "the", "use", "of", "\"", "localhost", "\"", "in", "the", "hudson", "url", "reports", "a", "warning" ]
[ "public", "void", "localhost", "warning", "(", ")", "throws", "exception", "{", "html", "page", "p", "=", "j", "create", "web", "client", "(", ")", "go", "to", "(", "\"", "configure", "\"", ")", ";", "html", "input", "url", "=", "p", "get", "form", "by", "name", "(", "\"", "config", "\"", ")", "get", "input", "by", "name", "(", "\"", "url", "\"", ")", ";", "url", "set", "value", "attribute", "(", "\"", "http", ":", "/", "/", "localhost", ":", "1234", "/", "\"", ")", ";", "assert", "that", "(", "p", "get", "document", "element", "(", ")", "get", "text", "content", "(", ")", ",", "contains", "string", "(", "\"", "instead", "of", "localhost", "\"", ")", ")", ";", "}" ]
[ "checks", "whether", "there", "exists", "a", "pending", "request", "with", "the", "given", "slot", "request", "id", "and", "removes", "it", "from", "the", "internal", "data", "structures" ]
[ "private", "pending", "request", "remove", "pending", "request", "(", "slot", "request", "id", "request", "id", ")", "{", "pending", "request", "result", "=", "waiting", "for", "resource", "manager", "remove", "(", "request", "id", ")", ";", "if", "(", "result", "!", "=", "null", ")", "{", "/", "/", "sanity", "check", "assert", "!", "pending", "requests", "contains", "key", "a", "(", "request", "id", ")", ":", "\"", "a", "pending", "requests", "should", "only", "be", "part", "of", "either", "\"", "+", "\"", "the", "pending", "requests", "or", "waiting", "for", "resource", "manager", "but", "not", "both", "\"", ";", "return", "result", ";", "}", "else", "{", "return", "pending", "requests", "remove", "key", "a", "(", "request", "id", ")", ";", "}", "}" ]
[ "returns", "an", "array", "of", "{", "@", "link", "annotation", "}", "objects", "reflecting", "all", "annotations", "declared", "by", "this", "field", ",", "or", "an", "empty", "array", "if", "there", "are", "none", "does", "not", "include", "inherited", "annotations" ]
[ "public", "annotation", "[", "]", "get", "declared", "annotations", "(", ")", "{", "java", "lang", "annotation", "annotation", "[", "]", "annotations", "=", "field", "get", "declared", "annotations", "(", ")", ";", "annotation", "[", "]", "result", "=", "new", "annotation", "[", "annotations", "length", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "annotations", "length", ";", "i", "+", "+", ")", "{", "result", "[", "i", "]", "=", "new", "annotation", "(", "annotations", "[", "i", "]", ")", ";", "}", "return", "result", ";", "}" ]
[ "returns", "the", "type", "of", "the", "result" ]
[ "public", "mapping", "rule", "result", "type", "get", "result", "(", ")", "{", "return", "result", ";", "}" ]
[ "test", "setting", "log", "level", "to", "\"", "info", "\"" ]
[ "public", "void", "test", "info", "log", "level", "(", ")", "throws", "exception", "{", "test", "dynamic", "log", "level", "(", "log", "level", "protocol", "http", ",", "log", "level", "protocol", "http", ",", "false", ",", "\"", "info", "\"", ")", ";", "}" ]
[ "returns", "the", "record", "number", "of", "the", "virtual", "base", "pointer" ]
[ "record", "number", "get", "virtual", "base", "pointer", "record", "number", "(", ")", "throws", "pdb", "exception", "{", "if", "(", "ms", "type", "instanceof", "abstract", "virtual", "base", "class", "ms", "type", ")", "{", "return", "(", "(", "abstract", "virtual", "base", "class", "ms", "type", ")", "ms", "type", ")", "get", "virtual", "base", "pointer", "record", "number", "(", ")", ";", "}", "else", "if", "(", "ms", "type", "instanceof", "abstract", "indirect", "virtual", "base", "class", "ms", "type", ")", "{", "return", "(", "(", "abstract", "indirect", "virtual", "base", "class", "ms", "type", ")", "ms", "type", ")", "get", "virtual", "base", "pointer", "record", "number", "(", ")", ";", "}", "throw", "new", "pdb", "exception", "(", "\"", "not", "a", "virtual", "base", "class", "\"", ")", ";", "}" ]
[ "overwrite", "a", "value", "in", "a", "byte", "block" ]
[ "public", "boolean", "replace", "value", "(", "byte", "block", "block", ",", "big", "integer", "index", ",", "int", "char", "position", ",", "char", "c", ")", "throws", "byte", "block", "access", "exception", "{", "if", "(", "good", "chars", "index", "of", "(", "c", ")", "=", "=", "-", "1", ")", "{", "return", "false", ";", "}", "if", "(", "(", "prefix", "enabled", "&", "&", "(", "char", "position", "<", "2", "|", "|", "char", "position", ">", "=", "symbol", "size", ")", ")", "|", "|", "(", "!", "prefix", "enabled", "&", "&", "(", "char", "position", "<", "0", "|", "|", "char", "position", ">", "=", "symbol", "size", ")", ")", ")", "{", "return", "false", ";", "}", "int", "byte", "no", "=", "get", "byte", "offset", "(", "block", ",", "char", "position", ")", ";", "index", "=", "index", "add", "(", "big", "integer", "value", "of", "(", "byte", "no", ")", ")", ";", "byte", "b", "=", "block", "get", "byte", "(", "index", ")", ";", "char", "[", "]", "char", "array", "=", "{", "c", "}", ";", "byte", "cb", "=", "byte", "parse", "byte", "(", "new", "string", "(", "char", "array", ")", ",", "16", ")", ";", "if", "(", "char", "position", "%", "2", "=", "=", "0", ")", "{", "/", "/", "its", "the", "high", "order", "byte", "b", "&", "=", "0x", "0f", ";", "cb", "<", "<", "=", "4", ";", "b", "+", "=", "cb", ";", "}", "else", "{", "b", "&", "=", "0xf", "0", ";", "b", "+", "=", "cb", ";", "}", "block", "set", "byte", "(", "index", ",", "b", ")", ";", "return", "true", ";", "}" ]
[ "processes", "the", "grpc", "compression", "header", "which", "is", "composed", "of", "the", "compression", "flag", "and", "the", "outer", "frame", "length" ]
[ "private", "void", "process", "header", "(", ")", "{", "int", "type", "=", "next", "frame", "read", "unsigned", "byte", "(", ")", ";", "if", "(", "(", "type", "&", "reserved", "mask", ")", "!", "=", "0", ")", "{", "throw", "status", "internal", "with", "description", "(", "\"", "g", "r", "p", "c", "frame", "header", "malformed", ":", "reserved", "bits", "not", "zero", "\"", ")", "as", "runtime", "exception", "(", ")", ";", "}", "compressed", "flag", "=", "(", "type", "&", "compressed", "flag", "mask", ")", "!", "=", "0", ";", "/", "/", "update", "the", "required", "length", "to", "include", "the", "length", "of", "the", "frame", "required", "length", "=", "next", "frame", "read", "int", "(", ")", ";", "if", "(", "required", "length", "<", "0", "|", "|", "required", "length", ">", "max", "inbound", "message", "size", ")", "{", "throw", "status", "resource", "exhausted", "with", "description", "(", "string", "format", "(", "\"", "g", "r", "p", "c", "message", "exceeds", "maximum", "size", "%", "d", ":", "%", "d", "\"", ",", "max", "inbound", "message", "size", ",", "required", "length", ")", ")", "as", "runtime", "exception", "(", ")", ";", "}", "current", "message", "seq", "no", "+", "+", ";", "stats", "trace", "ctx", "inbound", "message", "(", "current", "message", "seq", "no", ")", ";", "transport", "tracer", "report", "message", "received", "(", ")", ";", "/", "/", "continue", "reading", "the", "frame", "body", "state", "=", "state", "body", ";", "}" ]
[ "convert", "the", "given", "object", "to", "string", "with", "each", "line", "indented", "by", "4", "spaces", "(", "except", "the", "first", "line", ")" ]
[ "private", "string", "to", "indented", "string", "(", "object", "o", ")", "{", "if", "(", "o", "=", "=", "null", ")", "{", "return", "\"", "null", "\"", ";", "}", "return", "o", "to", "string", "(", ")", "replace", "(", "\"", "\\", "n", "\"", ",", "\"", "\\", "n", "\"", ")", ";", "}" ]
[ "use", "if", "an", "error", "has", "occurred", "which", "can", "not", "be", "isolated", "to", "a", "single", "stream", ",", "but", "instead", "applies", "to", "the", "entire", "connection" ]
[ "public", "static", "http", "2", "exception", "closed", "stream", "error", "(", "http", "2", "error", "error", ",", "string", "fmt", ",", "object", "args", ")", "{", "return", "new", "closed", "stream", "creation", "exception", "(", "error", ",", "string", "format", "(", "fmt", ",", "args", ")", ")", ";", "}" ]
[ "fixes", "the", "x", "o", "r", "mode", "of", "the", "graphics", "2", "d" ]
[ "public", "void", "set", "override", "x", "o", "r", "mode", "(", "color", "color", ")", "{", "this", "override", "x", "o", "r", "mode", "=", "color", ";", "if", "(", "color", "!", "=", "null", ")", "{", "graphics", "set", "x", "o", "r", "mode", "(", "color", ")", ";", "}", "else", "{", "graphics", "set", "paint", "mode", "(", ")", ";", "}", "}" ]
[ "return", "the", "number", "of", "nodes", "hosting", "a", "given", "block", ",", "grouped", "by", "the", "state", "of", "those", "replicas", "for", "a", "striped", "block", ",", "this", "includes", "nodes", "storing", "blocks", "belonging", "to", "the", "striped", "block", "group", "but", "note", "we", "exclude", "duplicated", "internal", "block", "replicas", "for", "calculating", "{", "@", "link", "number", "replicas", "#", "live", "replicas", "}", "if", "the", "replica", "on", "a", "decommissioning", "node", "is", "the", "same", "as", "the", "replica", "on", "a", "live", "node", ",", "the", "internal", "block", "for", "this", "replica", "is", "live", ",", "not", "decommissioning" ]
[ "public", "number", "replicas", "count", "nodes", "(", "block", "info", "b", ")", "{", "return", "count", "nodes", "(", "b", ",", "false", ")", ";", "}" ]
[ "close", "the", "<", "code", ">", "cluster", "<", "code", ">" ]
[ "public", "synchronized", "void", "close", "(", ")", "throws", "i", "o", "exception", "{", "client", "protocol", "provider", "close", "(", "client", ")", ";", "}" ]
[ "renders", "the", "mesh", "if", "the", "projection", "hasn", "'", "t", "been", "set", ",", "does", "nothing", "this", "must", "be", "called", "on", "the", "gl", "thread" ]
[ "/", "*", "package", "*", "/", "void", "draw", "(", "int", "texture", "id", ",", "float", "[", "]", "mvp", "matrix", ",", "boolean", "right", "eye", ")", "{", "mesh", "data", "mesh", "data", "=", "right", "eye", "?", "right", "mesh", "data", ":", "left", "mesh", "data", ";", "if", "(", "mesh", "data", "=", "=", "null", ")", "{", "return", ";", "}", "/", "/", "configure", "shader", "gles20", "gl", "use", "program", "(", "program", ")", ";", "check", "gl", "error", "(", ")", ";", "gles20", "gl", "enable", "vertex", "attrib", "array", "(", "position", "handle", ")", ";", "gles20", "gl", "enable", "vertex", "attrib", "array", "(", "tex", "coords", "handle", ")", ";", "check", "gl", "error", "(", ")", ";", "float", "[", "]", "tex", "matrix", ";", "if", "(", "stereo", "mode", "=", "=", "c", "stereo", "mode", "top", "bottom", ")", "{", "tex", "matrix", "=", "right", "eye", "?", "tex", "matrix", "bottom", ":", "tex", "matrix", "top", ";", "}", "else", "if", "(", "stereo", "mode", "=", "=", "c", "stereo", "mode", "left", "right", ")", "{", "tex", "matrix", "=", "right", "eye", "?", "tex", "matrix", "right", ":", "tex", "matrix", "left", ";", "}", "else", "{", "tex", "matrix", "=", "tex", "matrix", "whole", ";", "}", "gles20", "gl", "uniform", "matrix", "3fv", "(", "u", "tex", "matrix", "handle", ",", "1", ",", "false", ",", "tex", "matrix", ",", "0", ")", ";", "gles20", "gl", "uniform", "matrix", "4fv", "(", "mvp", "matrix", "handle", ",", "1", ",", "false", ",", "mvp", "matrix", ",", "0", ")", ";", "gles20", "gl", "active", "texture", "(", "gles20", "gl", "texture0", ")", ";", "gles20", "gl", "bind", "texture", "(", "g", "l", "e", "s", "1", "1", "ext", "gl", "texture", "external", "oes", ",", "texture", "id", ")", ";", "gles20", "gl", "uniform", "1i", "(", "texture", "handle", ",", "0", ")", ";", "check", "gl", "error", "(", ")", ";", "/", "/", "load", "position", "data", "gles20", "gl", "vertex", "attrib", "pointer", "(", "position", "handle", ",", "projection", "position", "coords", "per", "vertex", ",", "gles20", "gl", "float", ",", "false", ",", "projection", "position", "coords", "per", "vertex", "*", "c", "bytes", "per", "float", ",", "mesh", "data", "vertex", "buffer", ")", ";", "check", "gl", "error", "(", ")", ";", "/", "/", "load", "texture", "data", "gles20", "gl", "vertex", "attrib", "pointer", "(", "tex", "coords", "handle", ",", "projection", "texture", "coords", "per", "vertex", ",", "gles20", "gl", "float", ",", "false", ",", "projection", "texture", "coords", "per", "vertex", "*", "c", "bytes", "per", "float", ",", "mesh", "data", "texture", "buffer", ")", ";", "check", "gl", "error", "(", ")", ";", "/", "/", "render", "gles20", "gl", "draw", "arrays", "(", "mesh", "data", "draw", "mode", ",", "0", ",", "mesh", "data", "vertex", "count", ")", ";", "check", "gl", "error", "(", ")", ";", "gles20", "gl", "disable", "vertex", "attrib", "array", "(", "position", "handle", ")", ";", "gles20", "gl", "disable", "vertex", "attrib", "array", "(", "tex", "coords", "handle", ")", ";", "}" ]
[ "process", "server", "response", ":", "http1", "1", "101", "switching", "protocols", "upgrade", ":", "websocket", "connection", ":", "upgrade", "sec", "-", "web", "socket", "-", "accept", ":", "s", "3p", "p", "l", "m", "bi", "txa", "q", "9k", "y", "gzzh", "z", "rb", "k", "+", "x", "oo", "=", "sec", "-", "web", "socket", "-", "protocol", ":", "chat" ]
[ "protected", "void", "verify", "(", "full", "http", "response", "response", ")", "{", "http", "response", "status", "status", "=", "response", "status", "(", ")", ";", "if", "(", "!", "http", "response", "status", "switching", "protocols", "equals", "(", "status", ")", ")", "{", "throw", "new", "web", "socket", "client", "handshake", "exception", "(", "\"", "invalid", "handshake", "response", "get", "status", ":", "\"", "+", "status", ",", "response", ")", ";", "}", "http", "headers", "headers", "=", "response", "headers", "(", ")", ";", "char", "sequence", "upgrade", "=", "headers", "get", "(", "http", "header", "names", "upgrade", ")", ";", "if", "(", "!", "http", "header", "values", "websocket", "content", "equals", "ignore", "case", "(", "upgrade", ")", ")", "{", "throw", "new", "web", "socket", "client", "handshake", "exception", "(", "\"", "invalid", "handshake", "response", "upgrade", ":", "\"", "+", "upgrade", ",", "response", ")", ";", "}", "if", "(", "!", "headers", "contains", "value", "(", "http", "header", "names", "connection", ",", "http", "header", "values", "upgrade", ",", "true", ")", ")", "{", "throw", "new", "web", "socket", "client", "handshake", "exception", "(", "\"", "invalid", "handshake", "response", "connection", ":", "\"", "+", "headers", "get", "(", "http", "header", "names", "connection", ")", ",", "response", ")", ";", "}", "char", "sequence", "accept", "=", "headers", "get", "(", "http", "header", "names", "sec", "websocket", "accept", ")", ";", "if", "(", "accept", "=", "=", "null", "|", "|", "!", "accept", "equals", "(", "expected", "challenge", "response", "string", ")", ")", "{", "throw", "new", "web", "socket", "client", "handshake", "exception", "(", "string", "format", "(", "\"", "invalid", "challenge", "actual", ":", "%", "s", "expected", ":", "%", "s", "\"", ",", "accept", ",", "expected", "challenge", "response", "string", ")", ",", "response", ")", ";", "}", "}" ]
[ "if", "an", "initial", "state", "for", "this", "component", "has", "already", "been", "created", "just", "return", "it", ",", "otherwise", "execute", "the", "initializer", "and", "cache", "the", "result" ]
[ "<", "t", ">", "t", "create", "or", "get", "initial", "hook", "state", "(", "string", "hook", "state", "key", ",", "hook", "initializer", "<", "t", ">", "initializer", ")", "{", "object", "state", "lock", ";", "synchronized", "(", "this", ")", "{", "if", "(", "m", "create", "initial", "hook", "state", "locks", "=", "=", "null", ")", "{", "m", "create", "initial", "hook", "state", "locks", "=", "new", "hash", "map", "<", ">", "(", ")", ";", "}", "state", "lock", "=", "m", "create", "initial", "hook", "state", "locks", "get", "(", "hook", "state", "key", ")", ";", "if", "(", "state", "lock", "=", "=", "null", ")", "{", "state", "lock", "=", "new", "object", "(", ")", ";", "m", "create", "initial", "hook", "state", "locks", "put", "(", "hook", "state", "key", ",", "state", "lock", ")", ";", "}", "if", "(", "m", "initial", "hook", "states", "=", "=", "null", ")", "{", "m", "initial", "hook", "states", "=", "collections", "synchronized", "map", "(", "new", "hash", "map", "<", "string", ",", "object", ">", "(", ")", ")", ";", "}", "}", "t", "initial", "state", ";", "synchronized", "(", "state", "lock", ")", "{", "initial", "state", "=", "(", "t", ")", "m", "initial", "hook", "states", "get", "(", "hook", "state", "key", ")", ";", "if", "(", "initial", "state", "=", "=", "null", ")", "{", "initial", "state", "=", "initializer", "init", "(", ")", ";", "m", "initial", "hook", "states", "put", "(", "hook", "state", "key", ",", "initial", "state", ")", ";", "}", "}", "return", "initial", "state", ";", "}" ]
[ "writes", "a", "long", "as", "eight", "bytes" ]
[ "public", "void", "write", "long", "(", "long", "i", ")", "throws", "i", "o", "exception", "{", "final", "byte", "[", "]", "buffer", "=", "scratch", "get", "(", ")", ";", "buffer", "[", "0", "]", "=", "(", "byte", ")", "(", "i", ">", ">", "56", ")", ";", "buffer", "[", "1", "]", "=", "(", "byte", ")", "(", "i", ">", ">", "48", ")", ";", "buffer", "[", "2", "]", "=", "(", "byte", ")", "(", "i", ">", ">", "40", ")", ";", "buffer", "[", "3", "]", "=", "(", "byte", ")", "(", "i", ">", ">", "32", ")", ";", "buffer", "[", "4", "]", "=", "(", "byte", ")", "(", "i", ">", ">", "24", ")", ";", "buffer", "[", "5", "]", "=", "(", "byte", ")", "(", "i", ">", ">", "16", ")", ";", "buffer", "[", "6", "]", "=", "(", "byte", ")", "(", "i", ">", ">", "8", ")", ";", "buffer", "[", "7", "]", "=", "(", "byte", ")", "i", ";", "write", "bytes", "(", "buffer", ",", "0", ",", "8", ")", ";", "}" ]
[ "execute", "the", "shell", "command" ]
[ "public", "void", "execute", "(", ")", "throws", "i", "o", "exception", "{", "this", "run", "(", ")", ";", "}" ]
[ "decommission", "the", "node", "if", "it", "is", "in", "the", "host", "exclude", "list" ]
[ "void", "start", "admin", "operation", "if", "necessary", "(", "datanode", "descriptor", "node", "reg", ")", "{", "long", "maintenance", "expire", "time", "in", "m", "s", "=", "host", "config", "manager", "get", "maintenance", "expiration", "time", "in", "m", "s", "(", "node", "reg", ")", ";", "/", "/", "if", "the", "registered", "node", "is", "in", "exclude", "list", ",", "then", "decommission", "it", "if", "(", "get", "host", "config", "manager", "(", ")", "is", "excluded", "(", "node", "reg", ")", ")", "{", "datanode", "admin", "manager", "start", "decommission", "(", "node", "reg", ")", ";", "}", "else", "if", "(", "node", "reg", "maintenance", "not", "expired", "(", "maintenance", "expire", "time", "in", "m", "s", ")", ")", "{", "datanode", "admin", "manager", "start", "maintenance", "(", "node", "reg", ",", "maintenance", "expire", "time", "in", "m", "s", ")", ";", "}", "}" ]
[ "gets", "called", "when", "the", "user", "clicks", "on", "the", "cancel", "action", "for", "the", "dialog" ]
[ "protected", "void", "cancel", "callback", "(", ")", "{", "close", "(", ")", ";", "}" ]
[ "get", "first", "name" ]
[ "public", "string", "get", "first", "name", "(", ")", "{", "return", "first", "name", ";", "}" ]
[ "indicate", "that", "s3a", "deleted", "one", "or", "more", "files" ]
[ "public", "void", "file", "deleted", "(", "int", "count", ")", "{", "increment", "counter", "(", "files", "deleted", ",", "count", ")", ";", "}" ]
[ "merge", "the", "source", "jars", "and", "transitive", "source", "jars", "from", "the", "provider", "into", "this", "builder" ]
[ "public", "builder", "merge", "from", "(", "java", "source", "jars", "provider", "provider", ")", "{", "add", "all", "transitive", "source", "jars", "(", "provider", "get", "transitive", "source", "jars", "(", ")", ")", ";", "add", "all", "source", "jars", "(", "provider", "get", "source", "jars", "(", ")", ")", ";", "return", "this", ";", "}" ]
[ "copies", "a", "stream", "and", "calculates", "the", "md", "5", "at", "the", "same", "time", "does", "not", "close", "the", "passed", "-", "in", "input", "stream", "or", "output", "stream" ]
[ "public", "static", "stream", "copy", "result", "stream", "copy", "(", "input", "stream", "is", ",", "output", "stream", "os", ",", "task", "monitor", "monitor", ")", "throws", "i", "o", "exception", ",", "cancelled", "exception", "{", "hashing", "output", "stream", "hos", ";", "try", "{", "/", "/", "this", "wrapping", "outputstream", "is", "not", "closed", "on", "purpose", "hos", "=", "new", "hashing", "output", "stream", "(", "os", ",", "\"", "md5", "\"", ")", ";", "}", "catch", "(", "no", "such", "algorithm", "exception", "e", ")", "{", "throw", "new", "i", "o", "exception", "(", "\"", "could", "not", "get", "md5", "hash", "algo", "\"", ",", "e", ")", ";", "}", "/", "/", "todo", ":", "use", "file", "utilities", "copy", "stream", "to", "stream", "(", ")", "byte", "buffer", "[", "]", "=", "new", "byte", "[", "file", "utilities", "io", "buffer", "size", "]", ";", "int", "bytes", "read", ";", "long", "total", "bytes", "copied", "=", "0", ";", "while", "(", "(", "bytes", "read", "=", "is", "read", "(", "buffer", ")", ")", ">", "0", ")", "{", "hos", "write", "(", "buffer", ",", "0", ",", "bytes", "read", ")", ";", "total", "bytes", "copied", "+", "=", "bytes", "read", ";", "monitor", "set", "progress", "(", "total", "bytes", "copied", ")", ";", "monitor", "check", "canceled", "(", ")", ";", "}", "hos", "flush", "(", ")", ";", "return", "new", "stream", "copy", "result", "(", "total", "bytes", "copied", ",", "hos", "get", "digest", "(", ")", ")", ";", "}" ]
[ "gets", "the", "repository", "name", "associated", "with", "this", "<", "code", ">", "ghidra", "u", "r", "l", "connection", "<", "code", ">" ]
[ "public", "string", "get", "repository", "name", "(", ")", "{", "return", "protocol", "connector", "get", "repository", "name", "(", ")", ";", "}" ]
[ "gets", "info", "about", "which", "nodes", "the", "input", "split", "is", "stored", "on", "and", "how", "it", "is", "stored", "at", "each", "location" ]
[ "public", "split", "location", "info", "[", "]", "get", "location", "info", "(", ")", "throws", "i", "o", "exception", "{", "return", "null", ";", "}" ]
[ "partitions", "the", "operator", "state", "of", "a", "{", "@", "link", "data", "stream", "}", "using", "field", "expressions", "a", "field", "expression", "is", "either", "the", "name", "of", "a", "public", "field", "or", "a", "getter", "method", "with", "parentheses", "of", "the", "{", "@", "link", "data", "stream", "}", "'", "s", "underlying", "type", "a", "dot", "can", "be", "used", "to", "drill", "down", "into", "objects", ",", "as", "in", "{", "@", "code", "\"", "field", "1", "get", "inner", "field", "2", "(", ")", "\"", "}" ]
[ "public", "keyed", "stream", "<", "t", ",", "tuple", ">", "key", "by", "(", "string", "fields", ")", "{", "return", "key", "by", "(", "new", "keys", "expression", "keys", "<", ">", "(", "fields", ",", "get", "type", "(", ")", ")", ")", ";", "}" ]
[ "get", "starttime", "of", "a", "task" ]
[ "public", "final", "long", "get", "start", "time", "(", ")", "{", "return", "start", "time", ";", "}" ]