docstring_tokens
list
code_tokens
list
[ "calls", "{", "@", "link", "stream", "operator", "#", "prepare", "snapshot", "pre", "barrier", "(", "long", ")", "}" ]
[ "public", "void", "prepare", "snapshot", "pre", "barrier", "(", "long", "checkpoint", "id", ")", "throws", "exception", "{", "operator", "prepare", "snapshot", "pre", "barrier", "(", "checkpoint", "id", ")", ";", "}" ]
[ "old", "bufd", "[", "start", "old", "size", "]", "old", "bufd", "[", "end", "old", "size", "]", "new", "buf", "[", "new", "buf", "offset", "new", "size", "]", ",", ",", "。" ]
[ "private", "static", "int", "search", "(", "int", "[", "]", "array", "i", ",", "byte", "[", "]", "old", "buf", ",", "int", "old", "size", ",", "byte", "[", "]", "new", "buf", ",", "int", "new", "size", ",", "int", "new", "buf", "offset", ",", "int", "start", ",", "int", "end", ",", "int", "by", "ref", "pos", ")", "{", "if", "(", "end", "-", "start", "<", "2", ")", "{", "int", "x", "=", "matchlen", "(", "old", "buf", ",", "old", "size", ",", "array", "i", "[", "start", "]", ",", "new", "buf", ",", "new", "size", ",", "new", "buf", "offset", ")", ";", "int", "y", "=", "matchlen", "(", "old", "buf", ",", "old", "size", ",", "array", "i", "[", "end", "]", ",", "new", "buf", ",", "new", "size", ",", "new", "buf", "offset", ")", ";", "if", "(", "x", ">", "y", ")", "{", "pos", "value", "=", "array", "i", "[", "start", "]", ";", "return", "x", ";", "}", "else", "{", "pos", "value", "=", "array", "i", "[", "end", "]", ";", "return", "y", ";", "}", "}", "/", "/", "binary", "search", "int", "x", "=", "start", "+", "(", "end", "-", "start", ")", "/", "2", ";", "if", "(", "memcmp", "(", "old", "buf", ",", "old", "size", ",", "array", "i", "[", "x", "]", ",", "new", "buf", ",", "new", "size", ",", "new", "buf", "offset", ")", "<", "0", ")", "{", "return", "search", "(", "array", "i", ",", "old", "buf", ",", "old", "size", ",", "new", "buf", ",", "new", "size", ",", "new", "buf", "offset", ",", "x", ",", "end", ",", "pos", ")", ";", "/", "/", "calls", "itself", "recursively", "}", "else", "{", "return", "search", "(", "array", "i", ",", "old", "buf", ",", "old", "size", ",", "new", "buf", ",", "new", "size", ",", "new", "buf", "offset", ",", "start", ",", "x", ",", "pos", ")", ";", "}", "}" ]
[ "clears", "all", "mod", "files" ]
[ "public", "void", "clear", "(", ")", "{", "files", "clear", "(", ")", ";", "}" ]
[ "send", "a", "read", "receipt", "for", "a", "received", "message" ]
[ "public", "void", "send", "receipt", "(", "signal", "service", "address", "recipient", ",", "optional", "<", "unidentified", "access", "pair", ">", "unidentified", "access", ",", "signal", "service", "receipt", "message", "message", ")", "throws", "i", "o", "exception", ",", "untrusted", "identity", "exception", "{", "byte", "[", "]", "content", "=", "create", "receipt", "content", "(", "message", ")", ";", "send", "message", "(", "recipient", ",", "get", "target", "unidentified", "access", "(", "unidentified", "access", ")", ",", "message", "get", "when", "(", ")", ",", "content", ",", "false", ",", "null", ")", ";", "}" ]
[ "this", "default", "implementation", "is", "when", "viewfs", "has", "mount", "points", "into", "file", "systems", ",", "such", "as", "local", "fs", "that", "do", "no", "have", "delegation", "tokens", "it", "should", "be", "overridden", "for", "when", "mount", "points", "into", "hdfs" ]
[ "public", "void", "test", "get", "delegation", "tokens", "(", ")", "throws", "i", "o", "exception", "{", "token", "<", "?", ">", "[", "]", "del", "tokens", "=", "fs", "view", "add", "delegation", "tokens", "(", "\"", "sanjay", "\"", ",", "new", "credentials", "(", ")", ")", ";", "assert", "assert", "equals", "(", "get", "expected", "delegation", "token", "count", "(", ")", ",", "del", "tokens", "length", ")", ";", "}" ]
[ "returns", "the", "compact", "tables", "of", "this", "m", "t", "config", "object" ]
[ "public", "boolean", "is", "compact", "tables", "(", ")", "{", "return", "is", "compact", "tables", ";", "}" ]
[ "returns", "a", "writer", "for", "writing", "to", "this", "file", "using", "the", "default", "charset", "parent", "directories", "will", "be", "created", "if", "necessary" ]
[ "public", "writer", "writer", "(", "boolean", "append", ")", "{", "return", "writer", "(", "append", ",", "null", ")", ";", "}" ]
[ "finds", "pets", "by", "status", "multiple", "status", "values", "can", "be", "provided", "with", "comma", "separated", "strings" ]
[ "public", "void", "find", "pets", "by", "status", "(", "list", "<", "string", ">", "status", ",", "final", "response", "listener", "<", "list", "<", "pet", ">", ">", "response", "listener", ",", "final", "response", "error", "listener", "error", "listener", ")", "{", "object", "post", "body", "=", "null", ";", "/", "/", "verify", "the", "required", "parameter", "'", "status", "'", "is", "set", "if", "(", "status", "=", "=", "null", ")", "{", "volley", "error", "error", "=", "new", "volley", "error", "(", "\"", "missing", "the", "required", "parameter", "'", "status", "'", "when", "calling", "find", "pets", "by", "status", "\"", ",", "new", "api", "exception", "(", "400", ",", "\"", "missing", "the", "required", "parameter", "'", "status", "'", "when", "calling", "find", "pets", "by", "status", "\"", ")", ")", ";", "}", "/", "/", "create", "path", "and", "map", "variables", "string", "path", "=", "\"", "/", "pet", "/", "find", "by", "status", "\"", "replace", "all", "(", "\"", "\\", "\\", "{", "format", "\\", "\\", "}", "\"", ",", "\"", "json", "\"", ")", ";", "/", "/", "query", "params", "list", "<", "pair", ">", "query", "params", "=", "new", "array", "list", "<", "pair", ">", "(", ")", ";", "/", "/", "header", "params", "map", "<", "string", ",", "string", ">", "header", "params", "=", "new", "hash", "map", "<", "string", ",", "string", ">", "(", ")", ";", "/", "/", "form", "params", "map", "<", "string", ",", "string", ">", "form", "params", "=", "new", "hash", "map", "<", "string", ",", "string", ">", "(", ")", ";", "query", "params", "add", "all", "(", "api", "invoker", "parameter", "to", "pairs", "(", "\"", "csv", "\"", ",", "\"", "status", "\"", ",", "status", ")", ")", ";", "string", "[", "]", "content", "types", "=", "{", "}", ";", "string", "content", "type", "=", "content", "types", "length", ">", "0", "?", "content", "types", "[", "0", "]", ":", "\"", "application", "/", "json", "\"", ";", "if", "(", "content", "type", "starts", "with", "(", "\"", "multipart", "/", "form", "-", "data", "\"", ")", ")", "{", "/", "/", "file", "uploading", "multipart", "entity", "builder", "local", "var", "builder", "=", "multipart", "entity", "builder", "create", "(", ")", ";", "http", "entity", "http", "entity", "=", "local", "var", "builder", "build", "(", ")", ";", "post", "body", "=", "http", "entity", ";", "}", "else", "{", "/", "/", "normal", "form", "params", "}", "string", "[", "]", "auth", "names", "=", "new", "string", "[", "]", "{", "\"", "petstore", "auth", "\"", "}", ";", "try", "{", "api", "invoker", "invoke", "a", "p", "i", "(", "base", "path", ",", "path", ",", "\"", "get", "\"", ",", "query", "params", ",", "post", "body", ",", "header", "params", ",", "form", "params", ",", "content", "type", ",", "auth", "names", ",", "new", "response", "listener", "<", "string", ">", "(", ")", "{", "@", "override", "public", "void", "on", "response", "(", "string", "local", "var", "response", ")", "{", "try", "{", "response", "listener", "on", "response", "(", "(", "list", "<", "pet", ">", ")", "api", "invoker", "deserialize", "(", "local", "var", "response", ",", "\"", "array", "\"", ",", "pet", "class", ")", ")", ";", "}", "catch", "(", "api", "exception", "exception", ")", "{", "error", "listener", "on", "error", "response", "(", "new", "volley", "error", "(", "exception", ")", ")", ";", "}", "}", "}", ",", "new", "response", "error", "listener", "(", ")", "{", "@", "override", "public", "void", "on", "error", "response", "(", "volley", "error", "error", ")", "{", "error", "listener", "on", "error", "response", "(", "error", ")", ";", "}", "}", ")", ";", "}", "catch", "(", "api", "exception", "ex", ")", "{", "error", "listener", "on", "error", "response", "(", "new", "volley", "error", "(", "ex", ")", ")", ";", "}", "}" ]
[ "resolve", "the", "value", "for", "the", "method", "parameter", "synchronously" ]
[ "object", "resolve", "argument", "value", "(", "method", "parameter", "parameter", ",", "binding", "context", "binding", "context", ",", "server", "web", "exchange", "exchange", ")", ";" ]
[ "sets", "the", "colors", "to", "be", "used", "for", "indicating", "the", "selected", "tab", "these", "colors", "are", "treated", "as", "a", "circular", "array", "providing", "one", "color", "will", "mean", "that", "all", "tabs", "are", "indicated", "with", "the", "same", "color" ]
[ "public", "void", "set", "selected", "indicator", "colors", "(", "int", "colors", ")", "{", "m", "tab", "strip", "set", "selected", "indicator", "colors", "(", "colors", ")", ";", "}" ]
[ "exit", "a", "parse", "tree", "produced", "by", "{", "@", "link", "sql", "base", "parser", "#", "pivot", "clause", "}" ]
[ "void", "exit", "pivot", "clause", "(", "sql", "base", "parser", "pivot", "clause", "context", "ctx", ")", ";" ]
[ "create", "a", "new", "instance", "of", "a", "dynamically", "generated", "subclass", "implementing", "the", "required", "lookups" ]
[ "public", "object", "instantiate", "(", "@", "nullable", "constructor", "<", "?", ">", "ctor", ",", "object", "args", ")", "{", "class", "<", "?", ">", "subclass", "=", "create", "enhanced", "subclass", "(", "this", "bean", "definition", ")", ";", "object", "instance", ";", "if", "(", "ctor", "=", "=", "null", ")", "{", "instance", "=", "bean", "utils", "instantiate", "class", "(", "subclass", ")", ";", "}", "else", "{", "try", "{", "constructor", "<", "?", ">", "enhanced", "subclass", "constructor", "=", "subclass", "get", "constructor", "(", "ctor", "get", "parameter", "types", "(", ")", ")", ";", "instance", "=", "enhanced", "subclass", "constructor", "new", "instance", "(", "args", ")", ";", "}", "catch", "(", "exception", "ex", ")", "{", "throw", "new", "bean", "instantiation", "exception", "(", "this", "bean", "definition", "get", "bean", "class", "(", ")", ",", "\"", "failed", "to", "invoke", "constructor", "for", "cglib", "enhanced", "subclass", "[", "\"", "+", "subclass", "get", "name", "(", ")", "+", "\"", "]", "\"", ",", "ex", ")", ";", "}", "}", "/", "/", "spr", "-", "10785", ":", "set", "callbacks", "directly", "on", "the", "instance", "instead", "of", "in", "the", "/", "/", "enhanced", "class", "(", "via", "the", "enhancer", ")", "in", "order", "to", "avoid", "memory", "leaks", "factory", "factory", "=", "(", "factory", ")", "instance", ";", "factory", "set", "callbacks", "(", "new", "callback", "[", "]", "{", "no", "op", "instance", ",", "new", "lookup", "override", "method", "interceptor", "(", "this", "bean", "definition", ",", "this", "owner", ")", ",", "new", "replace", "override", "method", "interceptor", "(", "this", "bean", "definition", ",", "this", "owner", ")", "}", ")", ";", "return", "instance", ";", "}" ]
[ "{", "@", "inherit", "doc", "}", "on", "the", "client", "side", ",", "built", "-", "in", "default", "also", "include", "customizations", "related", "to", "multipart", "readers", "and", "writers", ",", "as", "well", "as", "the", "decoder", "for", "sse" ]
[ "client", "default", "codecs", "default", "codecs", "(", ")", ";" ]
[ "whether", "this", "component", "will", "expose", "any", "virtual", "views", "to", "the", "accessibility", "framework" ]
[ "protected", "boolean", "implements", "extra", "accessibility", "nodes", "(", ")", "{", "return", "false", ";", "}" ]
[ "reads", "the", "given", "fixture", "file", "from", "the", "classpath", "(", "e", "g", "{", "@", "code", "srctestresources", "}", ")", "and", "returns", "its", "contents", "as", "a", "utf", "-", "8", "string" ]
[ "public", "static", "string", "fixture", "(", "string", "filename", ")", "{", "return", "fixture", "(", "filename", ",", "standard", "charsets", "utf", "8", ")", ";", "}" ]
[ "returns", "a", "new", "parameterized", "type", ",", "applying", "{", "@", "code", "type", "arguments", "}", "to", "{", "@", "code", "raw", "type", "}", "and", "enclosed", "by", "{", "@", "code", "owner", "type", "}" ]
[ "public", "static", "parameterized", "type", "new", "parameterized", "type", "with", "owner", "(", "type", "owner", "type", ",", "type", "raw", "type", ",", "type", "type", "arguments", ")", "{", "return", "new", "parameterized", "type", "impl", "(", "owner", "type", ",", "raw", "type", ",", "type", "arguments", ")", ";", "}" ]
[ "makes", "a", "{", "@", "code", "print", "writer", "}", "for", "the", "given", "{", "@", "code", "writer", "}", ",", "returning", "the", "given", "writer", "if", "it", "already", "happens", "to", "be", "the", "right", "class" ]
[ "public", "static", "print", "writer", "print", "writer", "for", "(", "writer", "writer", ")", "{", "if", "(", "writer", "instanceof", "print", "writer", ")", "{", "return", "(", "print", "writer", ")", "writer", ";", "}", "return", "new", "print", "writer", "(", "writer", ")", ";", "}" ]
[ "minimum", ":", "67", "8", "maximum", ":", "123", "4" ]
[ "public", "format", "test", "double", "(", "double", "double", ")", "{", "this", "double", "=", "double", ";", "return", "this", ";", "}" ]
[ "processing", "is", "taking", "a", "span", "and", "placing", "it", "at", "the", "most", "appropriate", "place", "in", "the", "trace", "tree", "for", "example", ",", "if", "this", "is", "a", "{", "@", "link", "span", "kind", "#", "server", "}", "span", ",", "it", "would", "be", "a", "different", "node", ",", "and", "a", "child", "of", "its", "{", "@", "link", "span", "kind", "#", "client", "}", "even", "if", "they", "share", "the", "same", "span", "id", "processing", "is", "defensive", "of", "typical", "problems", "in", "span", "reporting", ",", "such", "as", "depth", "-", "first", "for", "example", ",", "depth", "-", "first", "reporting", "implies", "you", "can", "see", "spans", "missing", "their", "parent", "hence", ",", "the", "result", "of", "processing", "all", "spans", "can", "be", "a", "virtual", "root", "node" ]
[ "void", "process", "(", "span", "span", ")", "{", "endpoint", "endpoint", "=", "span", "local", "endpoint", "(", ")", ";", "boolean", "shared", "=", "boolean", "true", "equals", "(", "span", "shared", "(", ")", ")", ";", "object", "key", "=", "create", "key", "(", "span", "id", "(", ")", ",", "shared", ",", "span", "local", "endpoint", "(", ")", ")", ";", "object", "no", "endpoint", "key", "=", "endpoint", "!", "=", "null", "?", "create", "key", "(", "span", "id", "(", ")", ",", "shared", ",", "null", ")", ":", "key", ";", "object", "parent", "=", "null", ";", "if", "(", "shared", ")", "{", "/", "/", "shared", "is", "a", "server", "span", "it", "will", "very", "likely", "be", "on", "a", "different", "endpoint", "than", "the", "client", "/", "/", "clients", "are", "not", "ambiguous", "by", "id", ",", "so", "we", "don", "'", "t", "need", "to", "qualify", "by", "endpoint", "parent", "=", "span", "id", "(", ")", ";", "}", "else", "if", "(", "span", "parent", "id", "(", ")", "!", "=", "null", ")", "{", "/", "/", "we", "are", "not", "a", "root", "span", ",", "and", "not", "a", "shared", "server", "span", "proceed", "in", "most", "specific", "to", "least", "/", "/", "we", "could", "be", "the", "child", "of", "a", "shared", "server", "span", "(", "ex", "a", "local", "(", "intermediate", ")", "span", "on", "the", "same", "/", "/", "endpoint", ")", "this", "is", "the", "most", "specific", "case", ",", "so", "we", "try", "this", "first", "parent", "=", "create", "key", "(", "span", "parent", "id", "(", ")", ",", "true", ",", "endpoint", ")", ";", "if", "(", "span", "to", "parent", "contains", "key", "(", "parent", ")", ")", "{", "span", "to", "parent", "put", "(", "no", "endpoint", "key", ",", "parent", ")", ";", "}", "else", "{", "/", "/", "if", "there", "'", "s", "no", "shared", "parent", ",", "fall", "back", "to", "normal", "case", "which", "is", "unqualified", "beyond", "id", "parent", "=", "span", "parent", "id", "(", ")", ";", "}", "}", "else", "{", "/", "/", "we", "are", "root", "or", "don", "'", "t", "know", "our", "parent", "if", "(", "root", "span", "!", "=", "null", ")", "{", "if", "(", "logger", "is", "loggable", "(", "fine", ")", ")", "{", "logger", "fine", "(", "format", "(", "\"", "attributing", "span", "missing", "parent", "to", "root", ":", "trace", "id", "=", "%", "s", ",", "root", "span", "id", "=", "%", "s", ",", "span", "id", "=", "%", "s", "\"", ",", "span", "trace", "id", "(", ")", ",", "root", "span", "span", "(", ")", "id", "(", ")", ",", "span", "id", "(", ")", ")", ")", ";", "}", "}", "}", "span", "node", "node", "=", "new", "span", "node", "(", "span", ")", ";", "/", "/", "special", "-", "case", "root", ",", "and", "attribute", "missing", "parents", "to", "it", "in", "/", "/", "other", "words", ",", "assume", "that", "the", "first", "root", "is", "the", "\"", "real", "\"", "root", "if", "(", "parent", "=", "=", "null", "&", "&", "root", "span", "=", "=", "null", ")", "{", "root", "span", "=", "node", ";", "span", "to", "parent", "remove", "(", "no", "endpoint", "key", ")", ";", "}", "else", "if", "(", "shared", ")", "{", "/", "/", "in", "the", "case", "of", "shared", "server", "span", ",", "we", "need", "to", "address", "it", "both", "ways", ",", "in", "case", "intermediate", "/", "/", "spans", "are", "lacking", "endpoint", "information", "key", "to", "node", "put", "(", "key", ",", "node", ")", ";", "key", "to", "node", "put", "(", "no", "endpoint", "key", ",", "node", ")", ";", "}", "else", "{", "key", "to", "node", "put", "(", "no", "endpoint", "key", ",", "node", ")", ";", "}", "}" ]
[ "creates", "an", "action", "to", "strip", "an", "executable" ]
[ "public", "static", "void", "create", "strip", "action", "(", "rule", "context", "rule", "context", ",", "cc", "toolchain", "provider", "toolchain", ",", "cpp", "configuration", "cpp", "configuration", ",", "artifact", "input", ",", "artifact", "output", ",", "feature", "configuration", "feature", "configuration", ")", "throws", "rule", "error", "exception", "{", "if", "(", "feature", "configuration", "is", "enabled", "(", "cpp", "rule", "classes", "no", "stripping", ")", ")", "{", "rule", "context", "register", "action", "(", "symlink", "action", "to", "artifact", "(", "rule", "context", "get", "action", "owner", "(", ")", ",", "input", ",", "output", ",", "\"", "symlinking", "original", "binary", "as", "stripped", "binary", "\"", ")", ")", ";", "return", ";", "}", "if", "(", "!", "feature", "configuration", "action", "is", "configured", "(", "cpp", "action", "names", "strip", ")", ")", "{", "rule", "context", "rule", "error", "(", "\"", "expected", "action", "config", "for", "'", "strip", "'", "to", "be", "configured", "\"", ")", ";", "return", ";", "}", "cc", "toolchain", "variables", "variables", "=", "cc", "toolchain", "variables", "builder", "(", "toolchain", "get", "build", "variables", "(", "rule", "context", "get", "configuration", "(", ")", "get", "options", "(", ")", ",", "cpp", "configuration", ")", ")", "add", "string", "variable", "(", "strip", "build", "variables", "output", "file", "get", "variable", "name", "(", ")", ",", "output", "get", "exec", "path", "string", "(", ")", ")", "add", "string", "sequence", "variable", "(", "strip", "build", "variables", "stripopts", "get", "variable", "name", "(", ")", ",", "cpp", "configuration", "get", "strip", "opts", "(", ")", ")", "add", "string", "variable", "(", "cc", "common", "input", "file", "variable", "name", ",", "input", "get", "exec", "path", "string", "(", ")", ")", "build", "(", ")", ";", "immutable", "list", "<", "string", ">", "command", "line", "=", "get", "command", "line", "(", "rule", "context", ",", "feature", "configuration", ",", "variables", ",", "cpp", "action", "names", "strip", ")", ";", "immutable", "map", "builder", "<", "string", ",", "string", ">", "execution", "info", "builder", "=", "immutable", "map", "builder", "(", ")", ";", "for", "(", "string", "execution", "requirement", ":", "feature", "configuration", "get", "tool", "requirements", "for", "action", "(", "cpp", "action", "names", "strip", ")", ")", "{", "execution", "info", "builder", "put", "(", "execution", "requirement", ",", "\"", "\"", ")", ";", "}", "action", "[", "]", "strip", "action", "=", "new", "spawn", "action", "builder", "(", ")", "add", "input", "(", "input", ")", "add", "transitive", "inputs", "(", "toolchain", "get", "strip", "files", "(", ")", ")", "add", "output", "(", "output", ")", "use", "default", "shell", "environment", "(", ")", "set", "executable", "(", "path", "fragment", "create", "(", "feature", "configuration", "get", "tool", "path", "for", "action", "(", "cpp", "action", "names", "strip", ")", ")", ")", "set", "execution", "info", "(", "execution", "info", "builder", "build", "(", ")", ")", "set", "progress", "message", "(", "\"", "stripping", "%", "s", "for", "%", "s", "\"", ",", "output", "pretty", "print", "(", ")", ",", "rule", "context", "get", "label", "(", ")", ")", "set", "mnemonic", "(", "\"", "cc", "strip", "\"", ")", "add", "command", "line", "(", "custom", "command", "line", "builder", "(", ")", "add", "all", "(", "command", "line", ")", "build", "(", ")", ")", "build", "(", "rule", "context", ")", ";", "rule", "context", "register", "action", "(", "strip", "action", ")", ";", "}" ]
[ "this", "test", "validates", "the", "correctness", "of", "submit", "application", "in", "case", "the", "cluster", "is", "composed", "of", "only", "1", "bad", "sub", "cluster" ]
[ "public", "void", "test", "submit", "application", "one", "bad", "s", "c", "(", ")", "throws", "yarn", "exception", ",", "i", "o", "exception", ",", "interrupted", "exception", "{", "setup", "cluster", "(", "arrays", "as", "list", "(", "bad", "2", ")", ")", ";", "application", "id", "app", "id", "=", "application", "id", "new", "instance", "(", "system", "current", "time", "millis", "(", ")", ",", "1", ")", ";", "application", "submission", "context", "info", "context", "=", "new", "application", "submission", "context", "info", "(", ")", ";", "context", "set", "application", "id", "(", "app", "id", "to", "string", "(", ")", ")", ";", "response", "response", "=", "interceptor", "submit", "application", "(", "context", ",", "null", ")", ";", "assert", "assert", "equals", "(", "service", "unavailable", ",", "response", "get", "status", "(", ")", ")", ";", "assert", "assert", "equals", "(", "federation", "policy", "utils", "no", "active", "subcluster", "available", ",", "response", "get", "entity", "(", ")", ")", ";", "}" ]
[ "lets", "the", "clazz", "objects", "referenced", "in", "the", "descriptor", "string", "accept", "the", "given", "visitor" ]
[ "public", "void", "referenced", "classes", "accept", "(", "class", "visitor", "class", "visitor", ")", "{", "if", "(", "referenced", "classes", "!", "=", "null", ")", "{", "for", "(", "int", "index", "=", "0", ";", "index", "<", "referenced", "classes", "length", ";", "index", "+", "+", ")", "{", "if", "(", "referenced", "classes", "[", "index", "]", "!", "=", "null", ")", "{", "referenced", "classes", "[", "index", "]", "accept", "(", "class", "visitor", ")", ";", "}", "}", "}", "}" ]
[ "renew", "an", "existing", "delegation", "token" ]
[ "public", "long", "renew", "delegation", "token", "(", "token", "<", "?", "extends", "abstract", "delegation", "token", "identifier", ">", "token", ")", "throws", "invalid", "token", ",", "i", "o", "exception", "{", "return", "dfs", "renew", "delegation", "token", "(", "(", "token", "<", "delegation", "token", "identifier", ">", ")", "token", ")", ";", "}" ]
[ "sets", "the", "job", "name", "for", "this", "plan" ]
[ "public", "void", "set", "job", "name", "(", "string", "job", "name", ")", "{", "check", "not", "null", "(", "job", "name", ",", "\"", "the", "job", "name", "must", "not", "be", "null", "\"", ")", ";", "this", "job", "name", "=", "job", "name", ";", "}" ]
[ "notifies", "a", "bucket", "become", "inactive", "a", "bucket", "becomes", "inactive", "after", "all", "the", "records", "received", "so", "far", "have", "been", "committed" ]
[ "void", "bucket", "inactive", "(", "bucket", "<", "in", ",", "bucket", "i", "d", ">", "bucket", ")", ";" ]
[ "resolve", "an", "oom", "event", "listen", "to", "the", "handler", "timeouts" ]
[ "private", "void", "resolve", "o", "o", "m", "(", "executor", "service", "executor", ")", "throws", "interrupted", "exception", ",", "java", "util", "concurrent", "execution", "exception", "{", "/", "/", "just", "log", ",", "when", "we", "are", "still", "in", "oom", "after", "a", "couple", "of", "seconds", "final", "long", "start", "=", "clock", "get", "time", "(", ")", ";", "future", "<", "boolean", ">", "watchdog", "=", "executor", "submit", "(", "(", ")", "-", ">", "watch", "and", "log", "o", "o", "m", "state", "(", "start", ")", ")", ";", "/", "/", "kill", "something", "to", "resolve", "the", "issue", "try", "{", "oom", "handler", "run", "(", ")", ";", "}", "catch", "(", "runtime", "exception", "ex", ")", "{", "watchdog", "cancel", "(", "true", ")", ";", "throw", "new", "o", "o", "m", "not", "resolved", "exception", "(", "\"", "oom", "handler", "failed", "\"", ",", "ex", ")", ";", "}", "if", "(", "!", "watchdog", "get", "(", ")", ")", "{", "/", "/", "if", "we", "are", "still", "in", "oom", ",", "/", "/", "the", "watchdog", "will", "trigger", "stop", "/", "/", "listening", "to", "exit", "this", "loop", "throw", "new", "o", "o", "m", "not", "resolved", "exception", "(", "\"", "oom", "handler", "timed", "out", "\"", ",", "null", ")", ";", "}", "}" ]
[ "check", "to", "see", "if", "a", "command", "needs", "to", "be", "executed", "and", "execute", "if", "needed" ]
[ "protected", "void", "run", "(", ")", "throws", "i", "o", "exception", "{", "if", "(", "last", "time", "+", "interval", ">", "time", "monotonic", "now", "(", ")", ")", "{", "return", ";", "}", "exit", "code", "=", "0", ";", "/", "/", "reset", "for", "next", "run", "if", "(", "shell", "mac", ")", "{", "system", "set", "property", "(", "\"", "jdk", "lang", "process", "launch", "mechanism", "\"", ",", "\"", "posix", "spawn", "\"", ")", ";", "}", "run", "command", "(", ")", ";", "}" ]
[ "returns", "the", "string", "found", "at", "<", "code", ">", "offset", "<", "code", ">", ",", "or", "throws", "an", "{", "@", "link", "i", "o", "exception", "}", "if", "the", "offset", "is", "out", "of", "bounds" ]
[ "public", "string", "get", "string", "at", "offset", "(", "long", "offset", ")", "throws", "i", "o", "exception", "{", "if", "(", "!", "is", "valid", "(", "offset", ")", ")", "{", "throw", "new", "i", "o", "exception", "(", "\"", "invalid", "offset", "requested", "\"", "+", "offset", ")", ";", "}", "string", "tmp", "=", "new", "string", "(", "bytes", ",", "(", "int", ")", "offset", ",", "get", "null", "term", "string", "len", "(", "bytes", ",", "(", "int", ")", "offset", ")", ",", "standard", "charsets", "utf", "8", ")", ";", "return", "tmp", ";", "}" ]
[ "return", "the", "{", "@", "code", "min", "}", "boundary", "of", "the", "expected", "count", "range" ]
[ "public", "int", "get", "min", "count", "(", ")", "{", "return", "this", "min", "count", ";", "}" ]
[ "set", "the", "stomp", "message", "broker", "port" ]
[ "public", "void", "set", "relay", "port", "(", "int", "relay", "port", ")", "{", "this", "relay", "port", "=", "relay", "port", ";", "}" ]
[ "add", "memory", "reference" ]
[ "boolean", "add", "reference", "(", "code", "unit", "from", "code", "unit", ",", "int", "op", "index", ",", "address", "to", "addr", ",", "boolean", "is", "offset", "ref", ",", "long", "offset", ",", "ref", "type", "ref", "type", ")", "{", "address", "from", "addr", "=", "from", "code", "unit", "get", "min", "address", "(", ")", ";", "reference", "[", "]", "refs", "=", "from", "code", "unit", "get", "program", "(", ")", "get", "reference", "manager", "(", ")", "get", "references", "from", "(", "from", "addr", ",", "op", "index", ")", ";", "if", "(", "refs", "length", "!", "=", "0", "&", "&", "!", "refs", "[", "0", "]", "is", "memory", "reference", "(", ")", "&", "&", "!", "confirm", "possible", "reference", "removal", "(", "from", "code", "unit", ",", "op", "index", ",", "refs", "[", "0", "]", ")", ")", "{", "return", "false", ";", "}", "command", "cmd", ";", "if", "(", "is", "offset", "ref", ")", "{", "cmd", "=", "new", "add", "offset", "mem", "ref", "cmd", "(", "from", "addr", ",", "to", "addr", ",", "ref", "type", ",", "source", "type", "user", "defined", ",", "op", "index", ",", "offset", ")", ";", "}", "else", "{", "cmd", "=", "new", "add", "mem", "ref", "cmd", "(", "from", "addr", ",", "to", "addr", ",", "ref", "type", ",", "source", "type", "user", "defined", ",", "op", "index", ")", ";", "}", "return", "tool", "execute", "(", "cmd", ",", "from", "code", "unit", "get", "program", "(", ")", ")", ";", "}" ]
[ "resolve", "the", "constructor", "arguments", "for", "this", "bean", "into", "the", "resolved", "values", "object", "this", "may", "involve", "looking", "up", "other", "beans", "this", "method", "is", "also", "used", "for", "handling", "invocations", "of", "static", "factory", "methods" ]
[ "private", "int", "resolve", "constructor", "arguments", "(", "string", "bean", "name", ",", "root", "bean", "definition", "mbd", ",", "bean", "wrapper", "bw", ",", "constructor", "argument", "values", "cargs", ",", "constructor", "argument", "values", "resolved", "values", ")", "{", "type", "converter", "custom", "converter", "=", "this", "bean", "factory", "get", "custom", "type", "converter", "(", ")", ";", "type", "converter", "converter", "=", "(", "custom", "converter", "!", "=", "null", "?", "custom", "converter", ":", "bw", ")", ";", "bean", "definition", "value", "resolver", "value", "resolver", "=", "new", "bean", "definition", "value", "resolver", "(", "this", "bean", "factory", ",", "bean", "name", ",", "mbd", ",", "converter", ")", ";", "int", "min", "nr", "of", "args", "=", "cargs", "get", "argument", "count", "(", ")", ";", "for", "(", "map", "entry", "<", "integer", ",", "constructor", "argument", "values", "value", "holder", ">", "entry", ":", "cargs", "get", "indexed", "argument", "values", "(", ")", "entry", "set", "(", ")", ")", "{", "int", "index", "=", "entry", "get", "key", "(", ")", ";", "if", "(", "index", "<", "0", ")", "{", "throw", "new", "bean", "creation", "exception", "(", "mbd", "get", "resource", "description", "(", ")", ",", "bean", "name", ",", "\"", "invalid", "constructor", "argument", "index", ":", "\"", "+", "index", ")", ";", "}", "if", "(", "index", "+", "1", ">", "min", "nr", "of", "args", ")", "{", "min", "nr", "of", "args", "=", "index", "+", "1", ";", "}", "constructor", "argument", "values", "value", "holder", "value", "holder", "=", "entry", "get", "value", "(", ")", ";", "if", "(", "value", "holder", "is", "converted", "(", ")", ")", "{", "resolved", "values", "add", "indexed", "argument", "value", "(", "index", ",", "value", "holder", ")", ";", "}", "else", "{", "object", "resolved", "value", "=", "value", "resolver", "resolve", "value", "if", "necessary", "(", "\"", "constructor", "argument", "\"", ",", "value", "holder", "get", "value", "(", ")", ")", ";", "constructor", "argument", "values", "value", "holder", "resolved", "value", "holder", "=", "new", "constructor", "argument", "values", "value", "holder", "(", "resolved", "value", ",", "value", "holder", "get", "type", "(", ")", ",", "value", "holder", "get", "name", "(", ")", ")", ";", "resolved", "value", "holder", "set", "source", "(", "value", "holder", ")", ";", "resolved", "values", "add", "indexed", "argument", "value", "(", "index", ",", "resolved", "value", "holder", ")", ";", "}", "}", "for", "(", "constructor", "argument", "values", "value", "holder", "value", "holder", ":", "cargs", "get", "generic", "argument", "values", "(", ")", ")", "{", "if", "(", "value", "holder", "is", "converted", "(", ")", ")", "{", "resolved", "values", "add", "generic", "argument", "value", "(", "value", "holder", ")", ";", "}", "else", "{", "object", "resolved", "value", "=", "value", "resolver", "resolve", "value", "if", "necessary", "(", "\"", "constructor", "argument", "\"", ",", "value", "holder", "get", "value", "(", ")", ")", ";", "constructor", "argument", "values", "value", "holder", "resolved", "value", "holder", "=", "new", "constructor", "argument", "values", "value", "holder", "(", "resolved", "value", ",", "value", "holder", "get", "type", "(", ")", ",", "value", "holder", "get", "name", "(", ")", ")", ";", "resolved", "value", "holder", "set", "source", "(", "value", "holder", ")", ";", "resolved", "values", "add", "generic", "argument", "value", "(", "resolved", "value", "holder", ")", ";", "}", "}", "return", "min", "nr", "of", "args", ";", "}" ]
[ "the", "version", "of", "the", "response", "data", "(", "used", "for", "debugging", ")", "<", "code", ">", "string", "system", "version", "info", "=", "1", ";", "<", "code", ">" ]
[ "public", "com", "google", "protobuf", "byte", "string", "get", "system", "version", "info", "bytes", "(", ")", "{", "java", "lang", "object", "ref", "=", "system", "version", "info", ";", "if", "(", "ref", "instanceof", "string", ")", "{", "com", "google", "protobuf", "byte", "string", "b", "=", "com", "google", "protobuf", "byte", "string", "copy", "from", "utf", "8", "(", "(", "java", "lang", "string", ")", "ref", ")", ";", "system", "version", "info", "=", "b", ";", "return", "b", ";", "}", "else", "{", "return", "(", "com", "google", "protobuf", "byte", "string", ")", "ref", ";", "}", "}" ]
[ "creates", "an", "item", "representing", "a", "sample", "with", "the", "provided", "timestamp", "the", "sample", "will", "contain", "a", "single", "byte", "of", "data" ]
[ "public", "static", "fake", "sample", "stream", "item", "one", "byte", "sample", "(", "long", "time", "us", ")", "{", "return", "one", "byte", "sample", "(", "time", "us", ",", "/", "*", "flags", "=", "*", "/", "0", ")", ";", "}" ]
[ "returns", "true", "if", "the", "address", "is", "thumb", "code" ]
[ "public", "static", "boolean", "is", "thumb", "(", "program", "program", ",", "address", "address", ")", "{", "processor", "arm", "=", "processor", "find", "or", "possibly", "create", "processor", "(", "\"", "arm", "\"", ")", ";", "if", "(", "program", "get", "language", "(", ")", "get", "processor", "(", ")", "equals", "(", "arm", ")", ")", "{", "memory", "memory", "=", "program", "get", "memory", "(", ")", ";", "memory", "block", "block", "=", "memory", "get", "block", "(", "address", ")", ";", "if", "(", "block", "!", "=", "null", "&", "&", "block", "is", "execute", "(", ")", ")", "{", "return", "(", "address", "get", "offset", "(", ")", "%", "2", ")", "!", "=", "0", ";", "}", "}", "return", "false", ";", "}" ]
[ "returns", "true", "to", "allow", "values", "to", "be", "changed" ]
[ "public", "boolean", "is", "editable", "(", ")", "{", "return", "(", "true", ")", ";", "}" ]
[ "retrieve", "the", "spring", "bean", "factory", "to", "delegate", "bean", "name", "resolution", "to", "default", "implementation", "delegates", "to", "{", "@", "code", "get", "web", "application", "context", "}", "can", "be", "overridden", "to", "provide", "an", "arbitrary", "bean", "factory", "reference", "to", "resolve", "against", ";", "usually", ",", "this", "will", "be", "a", "full", "spring", "application", "context" ]
[ "protected", "bean", "factory", "get", "bean", "factory", "(", "faces", "context", "faces", "context", ")", "{", "return", "get", "web", "application", "context", "(", "faces", "context", ")", ";", "}" ]
[ "adds", "a", "new", "element", "to", "this", "list" ]
[ "public", "void", "add", "(", "object", "o", ")", "{", "/", "/", "if", "no", "value", "yet", ",", "create", "the", "first", "array", "if", "(", "size", "=", "=", "0", ")", "{", "head", "=", "new", "object", "[", "capacity", "hint", "+", "1", "]", ";", "tail", "=", "head", ";", "head", "[", "0", "]", "=", "o", ";", "index", "in", "tail", "=", "1", ";", "size", "=", "1", ";", "}", "else", "/", "/", "if", "the", "tail", "is", "full", ",", "create", "a", "new", "tail", "and", "link", "if", "(", "index", "in", "tail", "=", "=", "capacity", "hint", ")", "{", "object", "[", "]", "t", "=", "new", "object", "[", "capacity", "hint", "+", "1", "]", ";", "t", "[", "0", "]", "=", "o", ";", "tail", "[", "capacity", "hint", "]", "=", "t", ";", "tail", "=", "t", ";", "index", "in", "tail", "=", "1", ";", "size", "+", "+", ";", "}", "else", "{", "tail", "[", "index", "in", "tail", "]", "=", "o", ";", "index", "in", "tail", "+", "+", ";", "size", "+", "+", ";", "}", "}" ]
[ "remove", "oidc", "prompt", "from", "authorization", "request" ]
[ "public", "static", "string", "remove", "oidc", "prompt", "from", "authorization", "request", "(", "final", "string", "url", ",", "final", "string", "prompt", ")", "{", "val", "uri", "builder", "=", "new", "u", "r", "i", "builder", "(", "url", ")", ";", "val", "new", "params", "=", "uri", "builder", "get", "query", "params", "(", ")", "stream", "(", ")", "filter", "(", "p", "-", ">", "!", "oidc", "constants", "prompt", "equals", "(", "p", "get", "name", "(", ")", ")", "|", "|", "!", "p", "get", "value", "(", ")", "equals", "ignore", "case", "(", "prompt", ")", ")", "collect", "(", "collectors", "to", "list", "(", ")", ")", ";", "return", "uri", "builder", "remove", "query", "(", ")", "add", "parameters", "(", "new", "params", ")", "build", "(", ")", "to", "a", "s", "c", "i", "i", "string", "(", ")", ";", "}" ]
[ "post", "fakeouterstring", "test", "serialization", "of", "outer", "string", "types" ]
[ "default", "response", "entity", "<", "string", ">", "fake", "outer", "string", "serialize", "(", "@", "api", "param", "(", "value", "=", "\"", "input", "string", "as", "post", "body", "\"", ")", "@", "valid", "@", "request", "body", "(", "required", "=", "false", ")", "string", "body", ")", "{", "return", "new", "response", "entity", "<", ">", "(", "http", "status", "not", "implemented", ")", ";", "}" ]
[ "called", "when", "an", "error", "is", "encountered", "during", "the", "parsing", "process", "implementations", "may", "choose", "to", "treat", "errors", "as", "fatal" ]
[ "void", "error", "(", "problem", "problem", ")", ";" ]
[ "report", "a", "line", "to", "the", "listener", "about", "this", "cause" ]
[ "public", "void", "print", "(", "task", "listener", "listener", ")", "{", "listener", "get", "logger", "(", ")", "println", "(", "get", "short", "description", "(", ")", ")", ";", "}" ]
[ "for", "this", "test", ",", "the", "body", "for", "this", "request", "much", "reference", "a", "schema", "named", "&", "#", "x", "6", "0", ";", "file", "&", "#", "x", "6", "0", ";" ]
[ "public", "void", "test", "body", "with", "file", "schema", "test", "(", ")", "{", "file", "schema", "test", "class", "body", "=", "null", ";", "/", "/", "api", "test", "body", "with", "file", "schema", "(", "body", ")", ";", "/", "/", "todo", ":", "test", "validations", "}" ]
[ "uploads", "an", "image" ]
[ "public", "model", "api", "response", "upload", "file", "(", "long", "pet", "id", ",", "string", "additional", "metadata", ",", "file", "file", ")", "throws", "api", "exception", "{", "api", "response", "<", "model", "api", "response", ">", "local", "var", "resp", "=", "upload", "file", "with", "http", "info", "(", "pet", "id", ",", "additional", "metadata", ",", "file", ")", ";", "return", "local", "var", "resp", "get", "data", "(", ")", ";", "}" ]
[ "test", "the", "property", "'", "integer", "item", "'" ]
[ "public", "void", "integer", "item", "test", "(", ")", "{", "/", "/", "todo", ":", "test", "integer", "item", "}" ]
[ "sets", "application", "data" ]
[ "public", "void", "set", "application", "data", "(", "string", "application", "data", ")", "{", "this", "application", "data", "=", "application", "data", ";", "}" ]
[ "returns", "modules", "necessary", "for", "building", "and", "using", "the", "output", "of", "this", "action" ]
[ "nested", "set", "<", "artifact", ">", "get", "discovered", "modules", "(", ")", ";" ]
[ "process", "all", "recorded", "input", "events", "(", "usually", "called", "every", "frame", "by", "the", "{", "@", "link", "lwjgl", "application", "}", ")" ]
[ "void", "process", "events", "(", ")", ";" ]
[ "configures", "annotations", "for", "mocks", "this", "method", "will", "have", "lower", "priority", "that", "the", "new", "extension", "mechanism", "that", "is", "if", "it", "exists", "on", "the", "classpath", "both", "a", "class", "<", "code", ">", "org", "mockito", "configuration", "mockito", "configuration", "<", "code", ">", "and", "a", "file", "<", "code", ">", "mockito", "-", "extensionsorg", "mockito", "plugins", "annotation", "engine", "<", "code", ">", "then", "the", "implementation", "of", "<", "code", ">", "org", "mockito", "configuration", "mockito", "configuration", "<", "code", ">", "will", "be", "chosen", "instead", "of", "the", "one", "in", "the", "file", "see", "javadoc", "for", "{", "@", "link", "i", "mockito", "configuration", "}" ]
[ "annotation", "engine", "get", "annotation", "engine", "(", ")", ";" ]
[ "customize", "the", "construction", "of", "jackson", "handlers", "(", "{", "@", "link", "json", "serializer", "}", ",", "{", "@", "link", "json", "deserializer", "}", ",", "{", "@", "link", "key", "deserializer", "}", ",", "{", "@", "code", "type", "resolver", "builder", "}", "and", "{", "@", "code", "type", "id", "resolver", "}", ")" ]
[ "public", "jackson", "2", "object", "mapper", "builder", "handler", "instantiator", "(", "handler", "instantiator", "handler", "instantiator", ")", "{", "this", "handler", "instantiator", "=", "handler", "instantiator", ";", "return", "this", ";", "}" ]
[ "find", "the", "fields", "constant", "that", "matches", "field", "id", ",", "or", "null", "if", "its", "not", "found" ]
[ "public", "static", "fields", "find", "by", "thrift", "id", "(", "int", "field", "id", ")", "{", "switch", "(", "field", "id", ")", "{", "case", "0", ":", "/", "/", "success", "return", "success", ";", "default", ":", "return", "null", ";", "}", "}" ]
[ "creates", "the", "actual", "sink" ]
[ "public", "file", "sink", "<", "in", ">", "build", "(", ")", "{", "return", "new", "file", "sink", "<", ">", "(", "this", ")", ";", "}" ]
[ "returns", "the", "array", "of", "library", "names" ]
[ "public", "string", "[", "]", "get", "libraries", "(", ")", "{", "return", "libs", ";", "}" ]
[ "gets", "an", "unsigned", "32", "-", "bit", "integer", "at", "the", "specified", "absolute", "{", "@", "code", "index", "}", "in", "this", "buffer", "in", "little", "endian", "byte", "order", "this", "method", "does", "not", "modify", "{", "@", "code", "reader", "index", "}", "or", "{", "@", "code", "writer", "index", "}", "of", "this", "buffer" ]
[ "public", "abstract", "long", "get", "unsigned", "int", "l", "e", "(", "int", "index", ")", ";" ]
[ "post", "fakeinline", "-", "additional", "properties", ":", "test", "inline", "additional", "properties" ]
[ "default", "response", "entity", "<", "void", ">", "test", "inline", "additional", "properties", "(", "@", "api", "param", "(", "value", "=", "\"", "request", "body", "\"", ",", "required", "=", "true", ")", "@", "valid", "@", "request", "body", "map", "<", "string", ",", "string", ">", "param", ")", "{", "return", "new", "response", "entity", "<", ">", "(", "http", "status", "not", "implemented", ")", ";", "}" ]
[ "enter", "a", "parse", "tree", "produced", "by", "{", "@", "link", "sql", "base", "parser", "#", "pattern", "escape", "}" ]
[ "void", "enter", "pattern", "escape", "(", "sql", "base", "parser", "pattern", "escape", "context", "ctx", ")", ";" ]
[ "see", "{", "@", "link", "mutable", "configuration", "#", "set", "cache", "loader", "factory", "}" ]
[ "public", "void", "set", "cache", "loader", "factory", "(", "factory", "<", "?", "extends", "cache", "loader", "<", "k", ",", "v", ">", ">", "factory", ")", "{", "delegate", "set", "cache", "loader", "factory", "(", "factory", ")", ";", "}" ]
[ "check", "if", "identity", "is", "allowed", "to", "show", "its", "own", "role", "grants", "on", "the", "specified", "catalog" ]
[ "default", "void", "check", "can", "show", "role", "grants", "(", "connector", "transaction", "handle", "transaction", "handle", ",", "connector", "identity", "identity", ",", "access", "control", "context", "context", ",", "string", "catalog", "name", ")", "{", "deny", "show", "role", "grants", "(", "catalog", "name", ")", ";", "}" ]
[ "get", "icon", "reference", "name" ]
[ "public", "string", "get", "image", "name", "(", ")", "{", "if", "(", "image", "name", "=", "=", "null", "&", "&", "base", "icon", "!", "=", "null", ")", "{", "image", "name", "=", "resource", "manager", "get", "icon", "name", "(", "base", "icon", ")", ";", "}", "return", "image", "name", ";", "}" ]
[ "returns", "the", "source", "combo", "box" ]
[ "public", "j", "combo", "box", "<", "function", ">", "get", "source", "component", "(", ")", "{", "return", "source", "functions", "c", "b", ";", "}" ]
[ "execute", "http", "call", "and", "deserialize", "the", "http", "response", "body", "into", "the", "given", "return", "type" ]
[ "public", "<", "t", ">", "api", "response", "<", "t", ">", "execute", "(", "call", "call", ",", "type", "return", "type", ")", "throws", "api", "exception", "{", "try", "{", "response", "response", "=", "call", "execute", "(", ")", ";", "t", "data", "=", "handle", "response", "(", "response", ",", "return", "type", ")", ";", "return", "new", "api", "response", "<", "t", ">", "(", "response", "code", "(", ")", ",", "response", "headers", "(", ")", "to", "multimap", "(", ")", ",", "data", ")", ";", "}", "catch", "(", "i", "o", "exception", "e", ")", "{", "throw", "new", "api", "exception", "(", "e", ")", ";", "}", "}" ]
[ "returns", "the", "symbol", "type", "for", "the", "given", "id" ]
[ "public", "static", "symbol", "type", "get", "symbol", "type", "(", "int", "id", ")", "{", "if", "(", "id", "=", "=", "-", "1", ")", "{", "return", "global", ";", "}", "if", "(", "id", "<", "0", "|", "|", "id", ">", "=", "types", "length", ")", "{", "return", "null", ";", "}", "return", "types", "[", "id", "]", ";", "}" ]
[ "applies", "{", "@", "link", "json", "path", "expectations", "helper", "#", "assert", "value", "is", "number", "(", "string", ")", "}" ]
[ "public", "web", "test", "client", "body", "content", "spec", "is", "number", "(", ")", "{", "this", "path", "helper", "assert", "value", "is", "number", "(", "this", "content", ")", ";", "return", "this", "body", "spec", ";", "}" ]
[ "finds", "all", "application", "root", "directories", "defined", "in", "the", "repository", "config", "file" ]
[ "private", "static", "collection", "<", "resource", "file", ">", "find", "application", "root", "dirs", "from", "repo", "config", "(", "resource", "file", "primary", "application", "root", "dir", ")", "{", "collection", "<", "resource", "file", ">", "repo", "application", "root", "dirs", "=", "new", "array", "list", "<", ">", "(", ")", ";", "resource", "file", "repo", "config", "file", "=", "new", "resource", "file", "(", "primary", "application", "root", "dir", "get", "parent", "file", "(", ")", ",", "\"", "ghidra", "repos", "config", "\"", ")", ";", "if", "(", "repo", "config", "file", "is", "file", "(", ")", ")", "{", "try", "(", "buffered", "reader", "reader", "=", "new", "buffered", "reader", "(", "new", "file", "reader", "(", "repo", "config", "file", "get", "file", "(", "false", ")", ")", ")", ")", "{", "string", "line", "=", "null", ";", "while", "(", "(", "line", "=", "reader", "read", "line", "(", ")", ")", "!", "=", "null", ")", "{", "line", "=", "line", "trim", "(", ")", ";", "if", "(", "line", "is", "empty", "(", ")", "|", "|", "line", "starts", "with", "(", "\"", "#", "\"", ")", ")", "{", "continue", ";", "}", "resource", "file", "potential", "application", "root", "dir", "=", "new", "resource", "file", "(", "repo", "config", "file", "get", "parent", "file", "(", ")", "get", "parent", "file", "(", ")", ",", "line", "+", "file", "separator", "+", "\"", "ghidra", "\"", ")", ";", "if", "(", "potential", "application", "root", "dir", "is", "directory", "(", ")", ")", "{", "repo", "application", "root", "dirs", "add", "(", "potential", "application", "root", "dir", ")", ";", "}", "}", "}", "catch", "(", "i", "o", "exception", "e", ")", "{", "msg", "error", "(", "application", "utilities", "class", ",", "\"", "failed", "to", "read", ":", "\"", "+", "repo", "config", "file", ")", ";", "}", "}", "return", "repo", "application", "root", "dirs", ";", "}" ]
[ "get", "the", "user", "'", "s", "original", "partitioner" ]
[ "static", "class", "<", "?", "extends", "partitioner", ">", "get", "java", "partitioner", "(", "job", "conf", "conf", ")", "{", "return", "conf", "get", "class", "(", "submitter", "partitioner", ",", "hash", "partitioner", "class", ",", "partitioner", "class", ")", ";", "}" ]
[ "returns", "a", "string", "containing", "a", "name", "for", "the", "method", "'", "s", "return", "type" ]
[ "public", "string", "get", "return", "type", "(", ")", "{", "return", "\"", "\"", ";", "}" ]
[ "customize", "request", "specification" ]
[ "public", "get", "user", "by", "name", "oper", "req", "spec", "(", "consumer", "<", "request", "spec", "builder", ">", "req", "spec", "customizer", ")", "{", "req", "spec", "customizer", "accept", "(", "req", "spec", ")", ";", "return", "this", ";", "}" ]
[ "sets", "that", "the", "components", "should", "work", "in", "a", "streaming", "mode", "enabled", "by", "default" ]
[ "public", "builder", "in", "streaming", "mode", "(", ")", "{", "this", "is", "streaming", "mode", "=", "true", ";", "return", "this", ";", "}" ]
[ "type", "of", "resource", "collection", "that", "is", "being", "requested", ",", "e", "g", "istionetworkingv", "1alpha", "3", "virtual", "service", "k", "8s", "&", "lt", ";", "api", "version", "&", "gt", ";", "&", "lt", ";", "kind", "&", "gt", ";", "<", "code", ">", "string", "collection", "=", "2", ";", "<", "code", ">" ]
[ "public", "com", "google", "protobuf", "byte", "string", "get", "collection", "bytes", "(", ")", "{", "java", "lang", "object", "ref", "=", "collection", ";", "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", ")", ";", "collection", "=", "b", ";", "return", "b", ";", "}", "else", "{", "return", "(", "com", "google", "protobuf", "byte", "string", ")", "ref", ";", "}", "}" ]
[ "not", "supported", "use", "{", "@", "link", "#", "erase", "all", "}", "instead" ]
[ "public", "void", "clear", "(", ")", "{", "throw", "new", "unsupported", "operation", "exception", "(", ")", ";", "}" ]
[ "opens", "a", "blob", "input", "stream", "to", "download", "the", "blob", "using", "the", "specified", "operation", "context", "use", "{", "@", "link", "cloud", "blob", "client", "#", "set", "stream", "minimum", "read", "size", "in", "bytes", "}", "to", "configure", "the", "read", "size" ]
[ "input", "stream", "open", "input", "stream", "(", "blob", "request", "options", "options", ",", "operation", "context", "op", "context", ")", "throws", "storage", "exception", ";" ]
[ "sets", "the", "field", "'", "s", "content", "at", "the", "specified", "position", "note", ":", "the", "row", "must", "operate", "in", "position", "-", "based", "field", "mode" ]
[ "public", "void", "set", "field", "(", "int", "pos", ",", "@", "nullable", "object", "value", ")", "{", "if", "(", "field", "by", "position", "!", "=", "null", ")", "{", "field", "by", "position", "[", "pos", "]", "=", "value", ";", "}", "else", "{", "throw", "new", "illegal", "argument", "exception", "(", "\"", "accessing", "a", "field", "by", "position", "is", "not", "supported", "in", "name", "-", "based", "field", "mode", "\"", ")", ";", "}", "}" ]
[ "return", "the", "given", "slot", "to", "the", "slot", "owner" ]
[ "void", "return", "logical", "slot", "(", "logical", "slot", "logical", "slot", ")", ";" ]
[ "returns", "name", "of", "the", "maximum", "runner", "used", "for", "the", "finished", "spawn", "which", "took", "most", "time", "(", "see", "{", "@", "link", "#", "add", "spawn", "result", "(", "spawn", "result", ")", "}", ")", ",", "null", "if", "no", "spawns", "have", "finished", "for", "this", "action", "(", "either", "there", "are", "no", "spawns", "or", "we", "asked", "before", "any", "have", "finished", ")" ]
[ "public", "string", "get", "longest", "phase", "spawn", "runner", "name", "(", ")", "{", "return", "longest", "phase", "spawn", "runner", "name", ";", "}" ]
[ "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", "\"", ")", ";", "}" ]
[ "check", "if", "dfs", "remains", "in", "proper", "condition", "after", "a", "restart" ]
[ "public", "void", "test", "restart", "d", "f", "s", "(", ")", "throws", "exception", "{", "final", "configuration", "conf", "=", "new", "hdfs", "configuration", "(", ")", ";", "run", "tests", "(", "conf", ",", "false", ")", ";", "}" ]
[ "init", "with", "default", "config", "tinker", "for", "safer", ",", "you", "must", "use", "@", "{", "link", "tinker", "installer", "install", "}", "first", "!" ]
[ "public", "static", "tinker", "with", "(", "context", "context", ")", "{", "if", "(", "!", "s", "installed", ")", "{", "throw", "new", "tinker", "runtime", "exception", "(", "\"", "you", "must", "install", "tinker", "before", "get", "tinker", "s", "instance", "\"", ")", ";", "}", "synchronized", "(", "tinker", "class", ")", "{", "if", "(", "s", "instance", "=", "=", "null", ")", "{", "s", "instance", "=", "new", "builder", "(", "context", ")", "build", "(", ")", ";", "}", "}", "return", "s", "instance", ";", "}" ]
[ "obtains", "the", "heap", "dump" ]
[ "public", "heap", "dump", "get", "heap", "dump", "(", ")", "throws", "i", "o", "exception", "{", "return", "new", "heap", "dump", "(", "this", ",", "get", "channel", "(", ")", ")", ";", "}" ]
[ "recompute", "the", "internal", "variables", "used", "by", "the", "scheduler", "-", "per", "-", "job", "weights", ",", "fair", "shares", ",", "deficits", ",", "minimum", "slot", "allocations", ",", "and", "amount", "of", "used", "and", "required", "resources", "per", "job" ]
[ "public", "void", "update", "(", ")", "{", "/", "/", "storing", "start", "time", "for", "fs", "op", "durations", "long", "start", "=", "get", "clock", "(", ")", "get", "time", "(", ")", ";", "f", "s", "queue", "root", "queue", "=", "queue", "mgr", "get", "root", "queue", "(", ")", ";", "/", "/", "update", "demands", "and", "fairshares", "write", "lock", "lock", "(", ")", ";", "try", "{", "/", "/", "recursively", "update", "demands", "for", "all", "queues", "root", "queue", "update", "demand", "(", ")", ";", "root", "queue", "update", "(", "get", "cluster", "resource", "(", ")", ")", ";", "/", "/", "update", "metrics", "update", "root", "queue", "metrics", "(", ")", ";", "}", "finally", "{", "write", "lock", "unlock", "(", ")", ";", "}", "read", "lock", "lock", "(", ")", ";", "try", "{", "/", "/", "update", "starvation", "stats", "and", "identify", "starved", "applications", "if", "(", "should", "attempt", "preemption", "(", ")", ")", "{", "for", "(", "f", "s", "leaf", "queue", "queue", ":", "queue", "mgr", "get", "leaf", "queues", "(", ")", ")", "{", "queue", "update", "starved", "apps", "(", ")", ";", "}", "}", "/", "/", "log", "debug", "information", "if", "(", "state", "dump", "log", "is", "debug", "enabled", "(", ")", ")", "{", "if", "(", "-", "-", "updates", "to", "skip", "for", "debug", "<", "0", ")", "{", "updates", "to", "skip", "for", "debug", "=", "update", "debug", "frequency", ";", "dump", "scheduler", "state", "(", ")", ";", "}", "}", "}", "finally", "{", "read", "lock", "unlock", "(", ")", ";", "}", "fs", "op", "durations", "add", "update", "thread", "run", "duration", "(", "get", "clock", "(", ")", "get", "time", "(", ")", "-", "start", ")", ";", "}" ]
[ "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", "\"", ")", ";", "}" ]
[ "resource", "definitions", "corresponding", "to", "an", "android", "package", "<", "code", ">", "repeated", "aapt", "pb", "package", "package", "=", "2", ";", "<", "code", ">" ]
[ "public", "builder", "add", "all", "package", "(", "java", "lang", "iterable", "<", "?", "extends", "com", "android", "aapt", "resources", "package", ">", "values", ")", "{", "copy", "on", "write", "(", ")", ";", "instance", "add", "all", "package", "(", "values", ")", ";", "return", "this", ";", "}" ]
[ "get", "prefix", "ns", "boolean" ]
[ "public", "boolean", "get", "prefix", "ns", "boolean", "(", ")", "{", "return", "prefix", "ns", "boolean", ";", "}" ]
[ "returns", "the", "{", "@", "link", "field", "extension", "}", "matching", "the", "provided", "'", "field", "name", "'", "which", "is", "defined", "for", "the", "current", "activity", "of", "the", "provided", "{", "@", "link", "delegate", "execution", "}", "returns", "null", "if", "no", "such", "{", "@", "link", "field", "extension", "}", "can", "be", "found", "if", "the", "execution", "is", "currently", "being", "used", "for", "executing", "an", "{", "@", "link", "execution", "listener", "}", ",", "the", "field", "of", "the", "listener", "will", "be", "returned", "use", "{", "@", "link", "#", "get", "flow", "element", "field", "(", "delegate", "execution", ",", "string", ")", "}", "or", "{", "@", "link", "#", "get", "listener", "field", "(", "delegate", "execution", ",", "string", ")", "}", "for", "specifically", "getting", "the", "field", "from", "either", "the", "flow", "element", "or", "the", "listener" ]
[ "public", "static", "field", "extension", "get", "field", "(", "delegate", "execution", "execution", ",", "string", "field", "name", ")", "{", "if", "(", "is", "executing", "execution", "listener", "(", "execution", ")", ")", "{", "return", "get", "listener", "field", "(", "execution", ",", "field", "name", ")", ";", "}", "else", "{", "return", "get", "flow", "element", "field", "(", "execution", ",", "field", "name", ")", ";", "}", "}" ]
[ "we", "have", "two", "running", "guaranteed", "containers", ",", "one", "of", "which", "is", "out", "of", "limit", "we", "should", "kill", "the", "one", "that", "'", "s", "out", "of", "its", "limit", "this", "should", "happen", "even", "if", "it", "was", "launched", "earlier", "than", "the", "other", "one" ]
[ "public", "void", "test", "one", "guaranteed", "container", "over", "limit", "upon", "o", "o", "m", "(", ")", "throws", "exception", "{", "concurrent", "hash", "map", "<", "container", "id", ",", "container", ">", "containers", "=", "new", "concurrent", "hash", "map", "<", ">", "(", ")", ";", "container", "c", "1", "=", "create", "container", "(", "1", ",", "true", ",", "2l", ",", "true", ")", ";", "containers", "put", "(", "c", "1", "get", "container", "id", "(", ")", ",", "c", "1", ")", ";", "container", "c", "2", "=", "create", "container", "(", "2", ",", "true", ",", "1l", ",", "true", ")", ";", "containers", "put", "(", "c", "2", "get", "container", "id", "(", ")", ",", "c", "2", ")", ";", "container", "executor", "ex", "=", "create", "container", "executor", "(", "containers", ")", ";", "context", "context", "=", "mock", "(", "context", "class", ")", ";", "when", "(", "context", "get", "containers", "(", ")", ")", "then", "return", "(", "containers", ")", ";", "when", "(", "context", "get", "container", "executor", "(", ")", ")", "then", "return", "(", "ex", ")", ";", "c", "groups", "handler", "c", "groups", "handler", "=", "mock", "(", "c", "groups", "handler", "class", ")", ";", "when", "(", "c", "groups", "handler", "get", "c", "group", "param", "(", "c", "groups", "handler", "c", "group", "controller", "memory", ",", "\"", "\"", ",", "cgroup", "param", "memory", "oom", "control", ")", ")", "then", "return", "(", "\"", "under", "oom", "1", "\"", ")", "then", "return", "(", "\"", "under", "oom", "0", "\"", ")", ";", "when", "(", "c", "groups", "handler", "get", "c", "group", "param", "(", "c", "groups", "handler", "c", "group", "controller", "memory", ",", "c", "1", "get", "container", "id", "(", ")", "to", "string", "(", ")", ",", "cgroup", "procs", "file", ")", ")", "then", "return", "(", "\"", "1234", "\"", ")", "then", "return", "(", "\"", "\"", ")", ";", "when", "(", "c", "groups", "handler", "get", "c", "group", "param", "(", "c", "groups", "handler", "c", "group", "controller", "memory", ",", "c", "1", "get", "container", "id", "(", ")", "to", "string", "(", ")", ",", "cgroup", "param", "memory", "usage", "bytes", ")", ")", "then", "return", "(", "get", "m", "b", "(", "9", ")", ")", ";", "when", "(", "c", "groups", "handler", "get", "c", "group", "param", "(", "c", "groups", "handler", "c", "group", "controller", "memory", ",", "c", "1", "get", "container", "id", "(", ")", "to", "string", "(", ")", ",", "cgroup", "param", "memory", "memsw", "usage", "bytes", ")", ")", "then", "return", "(", "get", "m", "b", "(", "9", ")", ")", ";", "/", "/", "container", "c", "2", "is", "out", "of", "its", "limit", "when", "(", "c", "groups", "handler", "get", "c", "group", "param", "(", "c", "groups", "handler", "c", "group", "controller", "memory", ",", "c", "2", "get", "container", "id", "(", ")", "to", "string", "(", ")", ",", "cgroup", "procs", "file", ")", ")", "then", "return", "(", "\"", "1235", "\"", ")", "then", "return", "(", "\"", "\"", ")", ";", "when", "(", "c", "groups", "handler", "get", "c", "group", "param", "(", "c", "groups", "handler", "c", "group", "controller", "memory", ",", "c", "2", "get", "container", "id", "(", ")", "to", "string", "(", ")", ",", "cgroup", "param", "memory", "usage", "bytes", ")", ")", "then", "return", "(", "get", "m", "b", "(", "11", ")", ")", ";", "when", "(", "c", "groups", "handler", "get", "c", "group", "param", "(", "c", "groups", "handler", "c", "group", "controller", "memory", ",", "c", "2", "get", "container", "id", "(", ")", "to", "string", "(", ")", ",", "cgroup", "param", "memory", "memsw", "usage", "bytes", ")", ")", "then", "return", "(", "get", "m", "b", "(", "11", ")", ")", ";", "default", "o", "o", "m", "handler", "handler", "=", "new", "default", "o", "o", "m", "handler", "(", "context", ",", "false", ")", "{", "@", "override", "protected", "c", "groups", "handler", "get", "c", "groups", "handler", "(", ")", "{", "return", "c", "groups", "handler", ";", "}", "}", ";", "handler", "run", "(", ")", ";", "verify", "(", "ex", ",", "times", "(", "1", ")", ")", "signal", "container", "(", "new", "container", "signal", "context", "builder", "(", ")", "set", "pid", "(", "\"", "1235", "\"", ")", "set", "container", "(", "c", "2", ")", "set", "signal", "(", "container", "executor", "signal", "kill", ")", "build", "(", ")", ")", ";", "verify", "(", "ex", ",", "times", "(", "1", ")", ")", "signal", "container", "(", "any", "(", ")", ")", ";", "}" ]
[ "parses", "the", "container", "status", "string" ]
[ "public", "static", "docker", "container", "status", "parse", "container", "status", "(", "string", "container", "status", "str", ")", "{", "docker", "container", "status", "docker", "container", "status", ";", "if", "(", "container", "status", "str", "=", "=", "null", ")", "{", "docker", "container", "status", "=", "docker", "container", "status", "unknown", ";", "}", "else", "if", "(", "container", "status", "str", "equals", "(", "docker", "container", "status", "created", "get", "name", "(", ")", ")", ")", "{", "docker", "container", "status", "=", "docker", "container", "status", "created", ";", "}", "else", "if", "(", "container", "status", "str", "equals", "(", "docker", "container", "status", "running", "get", "name", "(", ")", ")", ")", "{", "docker", "container", "status", "=", "docker", "container", "status", "running", ";", "}", "else", "if", "(", "container", "status", "str", "equals", "(", "docker", "container", "status", "stopped", "get", "name", "(", ")", ")", ")", "{", "docker", "container", "status", "=", "docker", "container", "status", "stopped", ";", "}", "else", "if", "(", "container", "status", "str", "equals", "(", "docker", "container", "status", "restarting", "get", "name", "(", ")", ")", ")", "{", "docker", "container", "status", "=", "docker", "container", "status", "restarting", ";", "}", "else", "if", "(", "container", "status", "str", "equals", "(", "docker", "container", "status", "removing", "get", "name", "(", ")", ")", ")", "{", "docker", "container", "status", "=", "docker", "container", "status", "removing", ";", "}", "else", "if", "(", "container", "status", "str", "equals", "(", "docker", "container", "status", "dead", "get", "name", "(", ")", ")", ")", "{", "docker", "container", "status", "=", "docker", "container", "status", "dead", ";", "}", "else", "if", "(", "container", "status", "str", "equals", "(", "docker", "container", "status", "exited", "get", "name", "(", ")", ")", ")", "{", "docker", "container", "status", "=", "docker", "container", "status", "exited", ";", "}", "else", "if", "(", "container", "status", "str", "equals", "(", "docker", "container", "status", "nonexistent", "get", "name", "(", ")", ")", ")", "{", "docker", "container", "status", "=", "docker", "container", "status", "nonexistent", ";", "}", "else", "{", "docker", "container", "status", "=", "docker", "container", "status", "unknown", ";", "}", "return", "docker", "container", "status", ";", "}" ]
[ "test", "the", "property", "'", "name", "'" ]
[ "public", "void", "name", "test", "(", ")", "{", "/", "/", "todo", ":", "test", "name", "}" ]
[ "get", "integer", "item" ]
[ "public", "integer", "get", "integer", "item", "(", ")", "{", "return", "integer", "item", ";", "}" ]
[ "{", "@", "inherit", "doc", "}" ]
[ "public", "int", "compare", "to", "(", "entry", "other", ")", "{", "if", "(", "handler", "<", "other", "handler", ")", "{", "return", "-", "1", ";", "}", "else", "if", "(", "handler", ">", "other", "handler", ")", "{", "return", "1", ";", "}", "return", "exception", "type", "compare", "to", "(", "other", "exception", "type", ")", ";", "}" ]
[ "returns", "an", "instance", "that", "is", "identical", "to", "this", "one", "except", "that", "the", "local", "variable", "is", "as", "specified", "in", "the", "parameter" ]
[ "public", "register", "spec", "with", "local", "item", "(", "local", "item", "local", ")", "{", "if", "(", "(", "this", "local", "=", "=", "local", ")", "|", "|", "(", "(", "this", "local", "!", "=", "null", ")", "&", "&", "this", "local", "equals", "(", "local", ")", ")", ")", "{", "return", "this", ";", "}", "return", "make", "local", "optional", "(", "reg", ",", "type", ",", "local", ")", ";", "}" ]
[ "test", "a", "command", "execution", "that", "throws", "exception", "that", "should", "not", "be", "wrapped", "but", "has", "a", "fallback" ]
[ "public", "void", "test", "not", "wrapped", "exception", "with", "fallback", "(", ")", "{", "test", "hystrix", "command", "<", "integer", ">", "command", "=", "get", "command", "(", "execution", "isolation", "strategy", "thread", ",", "abstract", "test", "hystrix", "command", "execution", "result", "not", "wrapped", "failure", ",", "abstract", "test", "hystrix", "command", "fallback", "result", "success", ")", ";", "assert", "equals", "(", "flexible", "test", "hystrix", "command", "fallback", "value", ",", "command", "execute", "(", ")", ")", ";", "assert", "equals", "(", "\"", "raw", "exception", "for", "test", "hystrix", "command", "\"", ",", "command", "get", "failed", "execution", "exception", "(", ")", "get", "message", "(", ")", ")", ";", "assert", "true", "(", "command", "get", "execution", "time", "in", "milliseconds", "(", ")", ">", "-", "1", ")", ";", "assert", "true", "(", "command", "is", "failed", "execution", "(", ")", ")", ";", "assert", "command", "execution", "events", "(", "command", ",", "hystrix", "event", "type", "failure", ",", "hystrix", "event", "type", "fallback", "success", ")", ";", "assert", "not", "null", "(", "command", "get", "execution", "exception", "(", ")", ")", ";", "assert", "equals", "(", "0", ",", "command", "get", "builder", "(", ")", "metrics", "get", "current", "concurrent", "execution", "count", "(", ")", ")", ";", "assert", "sane", "hystrix", "request", "log", "(", "1", ")", ";", "}" ]
[ "test", "the", "property", "'", "name", "'" ]
[ "public", "void", "name", "test", "(", ")", "{", "/", "/", "todo", ":", "test", "name", "}" ]
[ "{", "@", "inherit", "doc", "}" ]
[ "public", "sorted", "set", "<", "string", ">", "get", "names", "(", ")", "{", "return", "collections", "empty", "sorted", "set", "(", ")", ";", "}" ]
[ "sets", "the", "buffer", "duration", "parameters" ]
[ "public", "builder", "set", "buffer", "durations", "ms", "(", "int", "min", "buffer", "ms", ",", "int", "max", "buffer", "ms", ",", "int", "buffer", "for", "playback", "ms", ",", "int", "buffer", "for", "playback", "after", "rebuffer", "ms", ")", "{", "assertions", "check", "state", "(", "!", "build", "called", ")", ";", "assert", "greater", "or", "equal", "(", "buffer", "for", "playback", "ms", ",", "0", ",", "\"", "buffer", "for", "playback", "ms", "\"", ",", "\"", "0", "\"", ")", ";", "assert", "greater", "or", "equal", "(", "buffer", "for", "playback", "after", "rebuffer", "ms", ",", "0", ",", "\"", "buffer", "for", "playback", "after", "rebuffer", "ms", "\"", ",", "\"", "0", "\"", ")", ";", "assert", "greater", "or", "equal", "(", "min", "buffer", "ms", ",", "buffer", "for", "playback", "ms", ",", "\"", "min", "buffer", "ms", "\"", ",", "\"", "buffer", "for", "playback", "ms", "\"", ")", ";", "assert", "greater", "or", "equal", "(", "min", "buffer", "ms", ",", "buffer", "for", "playback", "after", "rebuffer", "ms", ",", "\"", "min", "buffer", "ms", "\"", ",", "\"", "buffer", "for", "playback", "after", "rebuffer", "ms", "\"", ")", ";", "assert", "greater", "or", "equal", "(", "max", "buffer", "ms", ",", "min", "buffer", "ms", ",", "\"", "max", "buffer", "ms", "\"", ",", "\"", "min", "buffer", "ms", "\"", ")", ";", "this", "min", "buffer", "ms", "=", "min", "buffer", "ms", ";", "this", "max", "buffer", "ms", "=", "max", "buffer", "ms", ";", "this", "buffer", "for", "playback", "ms", "=", "buffer", "for", "playback", "ms", ";", "this", "buffer", "for", "playback", "after", "rebuffer", "ms", "=", "buffer", "for", "playback", "after", "rebuffer", "ms", ";", "return", "this", ";", "}" ]
[ "returns", "the", "values", "from", "each", "provided", "array", "combined", "into", "a", "single", "array", "for", "example", ",", "{", "@", "code", "concat", "(", "new", "double", "[", "]", "{", "a", ",", "b", "}", ",", "new", "double", "[", "]", "{", "}", ",", "new", "double", "[", "]", "{", "c", "}", "}", "returns", "the", "array", "{", "@", "code", "{", "a", ",", "b", ",", "c", "}", "}" ]
[ "public", "static", "double", "[", "]", "concat", "(", "double", "[", "]", "arrays", ")", "{", "int", "length", "=", "0", ";", "for", "(", "double", "[", "]", "array", ":", "arrays", ")", "{", "length", "+", "=", "array", "length", ";", "}", "double", "[", "]", "result", "=", "new", "double", "[", "length", "]", ";", "int", "pos", "=", "0", ";", "for", "(", "double", "[", "]", "array", ":", "arrays", ")", "{", "system", "arraycopy", "(", "array", ",", "0", ",", "result", ",", "pos", ",", "array", "length", ")", ";", "pos", "+", "=", "array", "length", ";", "}", "return", "result", ";", "}" ]
[ "retrieve", "the", "image", "data", "for", "the", "image", ",", "using", "a", "palette", "of", "at", "most", "256", "colours" ]
[ "public", "static", "image", "data", "make", "web", "image", "data", "(", "image", "image", ")", "{", "image", "data", "image", "data", "=", "image", "get", "image", "data", "(", ")", ";", "/", "*", "*", "*", "if", "the", "image", "depth", "is", "8", "bits", "or", "less", ",", "then", "we", "can", "use", "the", "existing", "*", "image", "data", "*", "/", "if", "(", "image", "data", "depth", "<", "=", "8", ")", "{", "return", "image", "data", ";", "}", "/", "*", "*", "*", "get", "an", "8", "bit", "image", "data", "for", "the", "image", "*", "/", "image", "data", "new", "image", "data", "=", "get", "8", "bit", "palette", "image", "data", "(", "image", "data", ")", ";" ]
[ "tests", "to", "verify", "that", "there", "is", "no", "race", "condition", "with", "two", "things", "running", "in", "parallel", ":", "requesting", "floating", "buffers", "on", "sender", "backlog", "and", "some", "other", "thread", "releasing", "the", "input", "channel" ]
[ "public", "void", "test", "concurrent", "on", "sender", "backlog", "and", "release", "(", ")", "throws", "exception", "{", "/", "/", "setup", "final", "network", "buffer", "pool", "network", "buffer", "pool", "=", "new", "network", "buffer", "pool", "(", "130", ",", "32", ")", ";", "final", "int", "num", "floating", "buffers", "=", "128", ";", "final", "executor", "service", "executor", "=", "executors", "new", "fixed", "thread", "pool", "(", "2", ")", ";", "final", "single", "input", "gate", "input", "gate", "=", "create", "single", "input", "gate", "(", "1", ",", "network", "buffer", "pool", ")", ";", "final", "remote", "input", "channel", "input", "channel", "=", "create", "remote", "input", "channel", "(", "input", "gate", ")", ";", "throwable", "thrown", "=", "null", ";", "try", "{", "final", "buffer", "pool", "buffer", "pool", "=", "network", "buffer", "pool", "create", "buffer", "pool", "(", "num", "floating", "buffers", ",", "num", "floating", "buffers", ")", ";", "input", "gate", "set", "buffer", "pool", "(", "buffer", "pool", ")", ";", "input", "gate", "setup", "channels", "(", ")", ";", "input", "channel", "request", "subpartition", "(", "0", ")", ";", "final", "callable", "<", "void", ">", "request", "buffer", "task", "=", "new", "callable", "<", "void", ">", "(", ")", "{", "@", "override", "public", "void", "call", "(", ")", "throws", "exception", "{", "while", "(", "true", ")", "{", "for", "(", "int", "j", "=", "1", ";", "j", "<", "=", "num", "floating", "buffers", ";", "j", "+", "+", ")", "{", "input", "channel", "on", "sender", "backlog", "(", "j", ")", ";", "}", "if", "(", "input", "channel", "is", "released", "(", ")", ")", "{", "return", "null", ";", "}", "}", "}", "}", ";", "final", "callable", "<", "void", ">", "release", "task", "=", "new", "callable", "<", "void", ">", "(", ")", "{", "@", "override", "public", "void", "call", "(", ")", "throws", "exception", "{", "input", "channel", "release", "all", "resources", "(", ")", ";", "return", "null", ";", "}", "}", ";", "/", "/", "submit", "tasks", "and", "wait", "to", "finish", "submit", "tasks", "and", "wait", "for", "results", "(", "executor", ",", "new", "callable", "[", "]", "{", "request", "buffer", "task", ",", "release", "task", "}", ")", ";", "assert", "equals", "(", "\"", "there", "should", "be", "no", "buffers", "available", "in", "the", "channel", "\"", ",", "0", ",", "input", "channel", "get", "number", "of", "available", "buffers", "(", ")", ")", ";", "assert", "equals", "(", "\"", "there", "should", "be", "130", "buffers", "available", "in", "local", "pool", "\"", ",", "130", ",", "buffer", "pool", "get", "number", "of", "available", "memory", "segments", "(", ")", "+", "network", "buffer", "pool", "get", "number", "of", "available", "memory", "segments", "(", ")", ")", ";", "}", "catch", "(", "throwable", "t", ")", "{", "thrown", "=", "t", ";", "}", "finally", "{", "cleanup", "(", "network", "buffer", "pool", ",", "executor", ",", "null", ",", "thrown", ",", "input", "channel", ")", ";", "}", "}" ]
[ "get", "photo", "urls" ]
[ "public", "set", "<", "string", ">", "get", "photo", "urls", "(", ")", "{", "return", "photo", "urls", ";", "}" ]
[ "adds", "mapping", "that", "will", "be", "added", "when", "the", "index", "gets", "created", "note", "that", "the", "definition", "should", "not", "be", "nested", "under", "a", "type", "name" ]
[ "public", "create", "index", "request", "mapping", "(", "x", "content", "builder", "source", ")", "{", "return", "mapping", "(", "bytes", "reference", "bytes", "(", "source", ")", ",", "source", "content", "type", "(", ")", ")", ";", "}" ]
[ "calls", "the", "parser", "and", "returns", "any", "gathered", "deprecations" ]
[ "public", "list", "<", "string", ">", "get", "agg", "deprecations", "(", "named", "x", "content", "registry", "named", "x", "content", "registry", ")", "{", "list", "<", "string", ">", "deprecations", "=", "new", "array", "list", "<", ">", "(", ")", ";", "parse", "aggregations", "(", "named", "x", "content", "registry", ",", "deprecations", ")", ";", "return", "deprecations", ";", "}" ]
[ "returns", "{", "@", "code", "true", "}", "iff", "a", "flush", "should", "block", "if", "a", "another", "flush", "operation", "is", "already", "running", "otherwise", "{", "@", "code", "false", "}" ]
[ "public", "boolean", "wait", "if", "ongoing", "(", ")", "{", "return", "this", "wait", "if", "ongoing", ";", "}" ]