docstring_tokens
list
code_tokens
list
[ "test", "the", "property", "'", "my", "boolean", "'" ]
[ "public", "void", "my", "boolean", "test", "(", ")", "{", "/", "/", "todo", ":", "test", "my", "boolean", "}" ]
[ "gets", "the", "{", "@", "link", "top", "level", "item", "}", "of", "the", "given", "name" ]
[ "public", "top", "level", "item", "get", "item", "(", "string", "name", ")", "{", "return", "get", "owner", "(", ")", "get", "item", "group", "(", ")", "get", "item", "(", "name", ")", ";", "}" ]
[ "test", "serialization", "of", "outer", "string", "types" ]
[ "public", "string", "fake", "outer", "string", "serialize", "(", "string", "body", ")", "throws", "api", "exception", "{", "api", "response", "<", "string", ">", "local", "var", "resp", "=", "fake", "outer", "string", "serialize", "with", "http", "info", "(", "body", ")", ";", "return", "local", "var", "resp", "get", "data", "(", ")", ";", "}" ]
[ "the", "response", "resources", "wrapped", "in", "the", "common", "mcp", "resource", "message", "these", "are", "typed", "resources", "that", "match", "the", "type", "url", "in", "the", "request", "resources", "message", "when", "`", "incremental", "`", "is", "true", ",", "this", "contains", "an", "array", "of", "resources", "to", "addupdate", "for", "the", "specified", "collection", "this", "modifies", "the", "existing", "collection", "at", "the", "sink", "when", "`", "incremental", "`", "is", "false", ",", "this", "contains", "the", "full", "set", "of", "resources", "for", "the", "specified", "collection", "this", "replaces", "any", "previously", "delivered", "resources", "<", "code", ">", "repeated", "istio", "mcp", "v", "1alpha", "1", "resource", "resources", "=", "3", ";", "<", "code", ">" ]
[ "public", "int", "get", "resources", "count", "(", ")", "{", "if", "(", "resources", "builder", "=", "=", "null", ")", "{", "return", "resources", "size", "(", ")", ";", "}", "else", "{", "return", "resources", "builder", "get", "count", "(", ")", ";", "}", "}" ]
[ "returns", "the", "manually", "configured", "label", "for", "a", "node", "the", "list", "of", "assigned", "and", "dynamically", "determined", "labels", "is", "available", "via", "{", "@", "link", "#", "get", "assigned", "labels", "(", ")", "}", "and", "includes", "all", "labels", "that", "have", "been", "manually", "configured", "mainly", "for", "form", "binding" ]
[ "public", "abstract", "string", "get", "label", "string", "(", ")", ";" ]
[ "retrieve", "the", "storage", "policy", "for", "a", "given", "file", "or", "directory" ]
[ "public", "block", "storage", "policy", "spi", "get", "storage", "policy", "(", "final", "path", "src", ")", "throws", "i", "o", "exception", "{", "inode", "tree", "resolve", "result", "<", "abstract", "file", "system", ">", "res", "=", "fs", "state", "resolve", "(", "get", "uri", "path", "(", "src", ")", ",", "true", ")", ";", "return", "res", "target", "file", "system", "get", "storage", "policy", "(", "res", "remaining", "path", ")", ";", "}" ]
[ "waits", "for", "the", "guard", "to", "be", "satisfied", "waits", "indefinitely", "may", "be", "called", "only", "by", "a", "thread", "currently", "occupying", "this", "monitor" ]
[ "public", "void", "wait", "for", "uninterruptibly", "(", "guard", "guard", ")", "{", "if", "(", "!", "(", "(", "guard", "monitor", "=", "=", "this", ")", "&", "lock", "is", "held", "by", "current", "thread", "(", ")", ")", ")", "{", "throw", "new", "illegal", "monitor", "state", "exception", "(", ")", ";", "}", "if", "(", "!", "guard", "is", "satisfied", "(", ")", ")", "{", "await", "uninterruptibly", "(", "guard", ",", "true", ")", ";", "}", "}" ]
[ "shows", "we", "can", "reliably", "look", "at", "a", "byte", "zero", "to", "tell", "if", "we", "are", "decoding", "proto", "3", "repeated", "fields" ]
[ "@", "test", "public", "void", "field", "key", "field", "one", "length", "delimited", "(", ")", "{", "field", "field", "=", "new", "field", "(", "1", "<", "<", "3", "|", "wiretype", "length", "delimited", ")", ";", "assert", "that", "(", "field", "key", ")", "is", "equal", "to", "(", "0b", "0", "0", "0", "0", "1", "0", "1", "0", ")", "/", "/", "(", "field", "number", "<", "<", "3", ")", "|", "wire", "type", "=", "1", "<", "<", "3", "|", "2", "is", "equal", "to", "(", "10", ")", ";", "/", "/", "for", "sanity", "of", "those", "looking", "at", "debugger", ",", "4th", "bit", "+", "2nd", "bit", "=", "10", "assert", "that", "(", "field", "field", "number", ")", "is", "equal", "to", "(", "1", ")", ";", "assert", "that", "(", "field", "wire", "type", ")", "is", "equal", "to", "(", "wiretype", "length", "delimited", ")", ";", "}" ]
[ "returns", "true", "when", "more", "bytes", "must", "be", "added", "via", "{", "@", "link", "#", "add", "gzipped", "bytes", "}", "to", "enable", "additional", "calls", "to", "{", "@", "link", "#", "inflate", "bytes", "}", "to", "make", "progress" ]
[ "boolean", "is", "stalled", "(", ")", "{", "check", "state", "(", "!", "closed", ",", "\"", "gzip", "inflating", "buffer", "is", "closed", "\"", ")", ";", "return", "is", "stalled", ";", "}" ]
[ "adds", "custom", "check", "those", "check", "are", "always", "performed", "first", ",", "only", "after", "that", "it", "fallbacks", "to", "default", "checks" ]
[ "public", "deeply", "equals", "checker", "with", "custom", "check", "(", "bi", "function", "<", "object", ",", "object", ",", "boolean", ">", "should", "check", ",", "custom", "equality", "checker", "comparator", ")", "{", "custom", "checkers", "add", "(", "tuple", "2", "of", "(", "should", "check", ",", "comparator", ")", ")", ";", "return", "this", ";", "}" ]
[ "saves", "the", "state", "of", "this", "layout", "manager", "to", "the", "save", "state", "object" ]
[ "public", "void", "save", "state", "(", "save", "state", "save", "state", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "num", "models", ";", "i", "+", "+", ")", "{", "save", "state", "put", "xml", "element", "(", "models", "[", "i", "]", "get", "name", "(", ")", ",", "models", "[", "i", "]", "save", "to", "xml", "(", ")", ")", ";", "}", "}" ]
[ "initiates", "a", "join", "transformation", "a", "join", "transformation", "joins", "the", "elements", "of", "two", "{", "@", "link", "data", "set", "data", "sets", "}", "on", "key", "equality", "and", "provides", "multiple", "ways", "to", "combine", "joining", "elements", "into", "one", "data", "set", "this", "method", "also", "gives", "the", "hint", "to", "the", "optimizer", "that", "the", "second", "data", "set", "to", "join", "is", "much", "smaller", "than", "the", "first", "one", "this", "method", "returns", "a", "{", "@", "link", "join", "operator", "sets", "}", "on", "which", "{", "@", "link", "join", "operator", "sets", "#", "where", "(", "string", ")", "}", "needs", "to", "be", "called", "to", "define", "the", "join", "key", "of", "the", "first", "joining", "(", "i", "e", ",", "this", ")", "data", "set" ]
[ "public", "<", "r", ">", "join", "operator", "sets", "<", "t", ",", "r", ">", "join", "with", "tiny", "(", "data", "set", "<", "r", ">", "other", ")", "{", "return", "new", "join", "operator", "sets", "<", ">", "(", "this", ",", "other", ",", "join", "hint", "broadcast", "hash", "second", ")", ";", "}" ]
[ "get", "photo", "urls" ]
[ "public", "list", "<", "string", ">", "get", "photo", "urls", "(", ")", "{", "return", "photo", "urls", ";", "}" ]
[ "uploads", "an", "image", "(", "required", ")", "(", "asynchronously", ")" ]
[ "public", "okhttp", "3", "call", "upload", "file", "with", "required", "file", "async", "(", "long", "pet", "id", ",", "file", "required", "file", ",", "string", "additional", "metadata", ",", "final", "api", "callback", "<", "model", "api", "response", ">", "callback", ")", "throws", "api", "exception", "{", "okhttp", "3", "call", "local", "var", "call", "=", "upload", "file", "with", "required", "file", "validate", "before", "call", "(", "pet", "id", ",", "required", "file", ",", "additional", "metadata", ",", "callback", ")", ";", "type", "local", "var", "return", "type", "=", "new", "type", "token", "<", "model", "api", "response", ">", "(", ")", "{", "}", "get", "type", "(", ")", ";", "local", "var", "api", "client", "execute", "async", "(", "local", "var", "call", ",", "local", "var", "return", "type", ",", "callback", ")", ";", "return", "local", "var", "call", ";", "}" ]
[ "user", "not", "found" ]
[ "public", "void", "should", "see", "4", "0", "4", "after", "test", "endpoint", "parameters", "(", ")", "{", "big", "decimal", "number", "=", "null", ";", "double", "double", "=", "null", ";", "string", "pattern", "without", "delimiter", "=", "null", ";", "byte", "[", "]", "byte", "=", "null", ";", "integer", "integer", "=", "null", ";", "integer", "int", "3", "2", "=", "null", ";", "long", "int", "6", "4", "=", "null", ";", "float", "float", "=", "null", ";", "string", "string", "=", "null", ";", "file", "binary", "=", "null", ";", "local", "date", "date", "=", "null", ";", "offset", "date", "time", "date", "time", "=", "null", ";", "string", "password", "=", "null", ";", "string", "param", "callback", "=", "null", ";", "api", "test", "endpoint", "parameters", "(", ")", "number", "form", "(", "number", ")", "double", "form", "(", "double", ")", "pattern", "without", "delimiter", "form", "(", "pattern", "without", "delimiter", ")", "byte", "form", "(", "byte", ")", "execute", "(", "r", "-", ">", "r", "pretty", "peek", "(", ")", ")", ";", "/", "/", "todo", ":", "test", "validations", "}" ]
[ "method", "get", "offset" ]
[ "public", "int", "get", "offset", "(", "mem", "buffer", "buf", ",", "int", "off", ")", "throws", "exception", "{", "int", "o", "=", "off", "+", "offset", ";", "/", "/", "usually", "we", "just", "add", "the", "offset", "to", "the", "incoming", "off", "/", "/", "but", "if", "this", "offset", "is", "relative", "to", "an", "operand", ",", "then", "we", "have", "to", "add", "the", "/", "/", "length", "of", "that", "operand", "if", "(", "rel", "to", "!", "=", "null", ")", "o", "+", "=", "rel", "to", "length", "(", "buf", ",", "off", ")", ";", "return", "o", ";", "}" ]
[ "verifies", "conditions", "in", "regards", "to", "parallelism", "and", "max", "parallelism", "that", "must", "be", "met", "when", "restoring", "state" ]
[ "private", "static", "void", "check", "parallelism", "preconditions", "(", "operator", "state", "operator", "state", ",", "execution", "job", "vertex", "execution", "job", "vertex", ")", "{", "/", "/", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "max", "parallelism", "/", "/", "preconditions", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "if", "(", "operator", "state", "get", "max", "parallelism", "(", ")", "<", "execution", "job", "vertex", "get", "parallelism", "(", ")", ")", "{", "throw", "new", "illegal", "state", "exception", "(", "\"", "the", "state", "for", "task", "\"", "+", "execution", "job", "vertex", "get", "job", "vertex", "id", "(", ")", "+", "\"", "can", "not", "be", "restored", "the", "maximum", "parallelism", "(", "\"", "+", "operator", "state", "get", "max", "parallelism", "(", ")", "+", "\"", ")", "of", "the", "restored", "state", "is", "lower", "than", "the", "configured", "parallelism", "(", "\"", "+", "execution", "job", "vertex", "get", "parallelism", "(", ")", "+", "\"", ")", "please", "reduce", "the", "parallelism", "of", "the", "task", "to", "be", "lower", "or", "equal", "to", "the", "maximum", "parallelism", "\"", ")", ";", "}", "/", "/", "check", "that", "the", "number", "of", "key", "groups", "have", "not", "changed", "or", "if", "we", "need", "to", "override", "it", "to", "/", "/", "satisfy", "the", "restored", "state", "if", "(", "operator", "state", "get", "max", "parallelism", "(", ")", "!", "=", "execution", "job", "vertex", "get", "max", "parallelism", "(", ")", ")", "{", "if", "(", "!", "execution", "job", "vertex", "is", "max", "parallelism", "configured", "(", ")", ")", "{", "/", "/", "if", "the", "max", "parallelism", "was", "not", "explicitly", "specified", "by", "the", "user", ",", "we", "derive", "it", "/", "/", "from", "the", "state", "log", "debug", "(", "\"", "overriding", "maximum", "parallelism", "for", "job", "vertex", "{", "}", "from", "{", "}", "to", "{", "}", "\"", ",", "execution", "job", "vertex", "get", "job", "vertex", "id", "(", ")", ",", "execution", "job", "vertex", "get", "max", "parallelism", "(", ")", ",", "operator", "state", "get", "max", "parallelism", "(", ")", ")", ";", "execution", "job", "vertex", "set", "max", "parallelism", "(", "operator", "state", "get", "max", "parallelism", "(", ")", ")", ";", "}", "else", "{", "/", "/", "if", "the", "max", "parallelism", "was", "explicitly", "specified", ",", "we", "complain", "on", "mismatch", "throw", "new", "illegal", "state", "exception", "(", "\"", "the", "maximum", "parallelism", "(", "\"", "+", "operator", "state", "get", "max", "parallelism", "(", ")", "+", "\"", ")", "with", "which", "the", "latest", "\"", "+", "\"", "checkpoint", "of", "the", "execution", "job", "vertex", "\"", "+", "execution", "job", "vertex", "+", "\"", "has", "been", "taken", "and", "the", "current", "maximum", "parallelism", "(", "\"", "+", "execution", "job", "vertex", "get", "max", "parallelism", "(", ")", "+", "\"", ")", "changed", "this", "\"", "+", "\"", "is", "currently", "not", "supported", "\"", ")", ";", "}", "}", "}" ]
[ "returns", "a", "result", "to", "signal", "that", "the", "target", "timestamp", "has", "been", "found", "at", "{", "@", "code", "result", "byte", "position", "}", ",", "and", "the", "seek", "operation", "can", "stop" ]
[ "public", "static", "timestamp", "search", "result", "target", "found", "result", "(", "long", "result", "byte", "position", ")", "{", "return", "new", "timestamp", "search", "result", "(", "type", "target", "timestamp", "found", ",", "c", "time", "unset", ",", "result", "byte", "position", ")", ";", "}" ]
[ "get", "all", "class", "names", "within", "the", "named", "package", "which", "extend", "or", "implement", "the", "specified", "search", "class" ]
[ "public", "static", "iterator", "<", "string", ">", "get", "class", "names", "(", "string", "pkg", "name", ",", "class", "<", "?", ">", "search", "class", ")", "{", "hash", "set", "<", "string", ">", "class", "names", "=", "new", "hash", "set", "<", "string", ">", "(", ")", ";", "string", "class", "path", "=", "system", "get", "property", "(", "\"", "java", "class", "path", "\"", ")", ";", "if", "(", "class", "path", "=", "=", "null", "|", "|", "class", "path", "trim", "(", ")", "length", "(", ")", "=", "=", "0", ")", "{", "class", "path", "=", "system", "get", "property", "(", "\"", "user", "dir", "\"", ")", ";", "}", "string", "java", "home", "=", "system", "get", "property", "(", "\"", "java", "home", "\"", ")", ";", "string", "tokenizer", "st", "=", "new", "string", "tokenizer", "(", "class", "path", ",", "file", "path", "separator", ")", ";", "while", "(", "st", "has", "more", "elements", "(", ")", ")", "{", "string", "path", "=", "(", "string", ")", "st", "next", "element", "(", ")", ";", "if", "(", "path", "starts", "with", "(", "java", "home", ")", ")", "{", "continue", ";", "}", "if", "(", "path", "ends", "with", "(", "\"", "jar", "\"", ")", "|", "|", "path", "ends", "with", "(", "\"", "zip", "\"", ")", ")", "{", "/", "/", "look", "for", "all", "classes", "in", "the", "class", "path", "find", "classes", "in", "jar", "(", "path", ",", "pkg", "name", ",", "search", "class", ",", "class", "names", ")", ";", "}", "else", "{", "file", "f", "=", "new", "file", "(", "path", ")", ";", "if", "(", "!", "f", "is", "directory", "(", ")", ")", "{", "continue", ";", "}", "find", "classes", "in", "path", "(", "path", ",", "pkg", "name", ",", "search", "class", ",", "class", "names", ")", ";", "}", "}", "return", "class", "names", "iterator", "(", ")", ";", "}" ]
[ "sets", "the", "comment", "associated", "with", "the", "file", "being", "written" ]
[ "public", "void", "set", "comment", "(", "string", "comment", ")", "{", "if", "(", "comment", "=", "=", "null", ")", "{", "this", "comment", "bytes", "=", "null", ";", "return", ";", "}", "byte", "[", "]", "new", "comment", "bytes", "=", "comment", "get", "bytes", "(", "charset", "for", "name", "(", "\"", "utf", "-", "8", "\"", ")", ")", ";", "if", "(", "new", "comment", "bytes", "length", ">", "0xffff", ")", "{", "throw", "new", "illegal", "argument", "exception", "(", "\"", "comment", "too", "long", ":", "\"", "+", "new", "comment", "bytes", "length", "+", "\"", "bytes", "\"", ")", ";", "}", "this", "comment", "bytes", "=", "new", "comment", "bytes", ";", "}" ]
[ "returns", "<", "code", ">", "true", "<", "code", ">", "if", "this", "request", "has", "been", "sent", "to", "a", "shard", "copy", "more", "than", "once" ]
[ "public", "boolean", "is", "retry", "(", ")", "{", "return", "is", "retry", ";", "}" ]
[ "program", "entry", "point" ]
[ "public", "static", "void", "main", "(", "string", "[", "]", "args", ")", "{", "var", "simple", "wizard", "=", "new", "simple", "wizard", "(", ")", ";", "simple", "wizard", "smoke", "(", ")", ";", "var", "advanced", "wizard", "=", "new", "advanced", "wizard", "(", "new", "second", "breakfast", "tobacco", "(", ")", ")", ";", "advanced", "wizard", "smoke", "(", ")", ";", "var", "advanced", "sorceress", "=", "new", "advanced", "sorceress", "(", ")", ";", "advanced", "sorceress", "set", "tobacco", "(", "new", "second", "breakfast", "tobacco", "(", ")", ")", ";", "advanced", "sorceress", "smoke", "(", ")", ";", "var", "injector", "=", "guice", "create", "injector", "(", "new", "tobacco", "module", "(", ")", ")", ";", "var", "guice", "wizard", "=", "injector", "get", "instance", "(", "guice", "wizard", "class", ")", ";", "guice", "wizard", "smoke", "(", ")", ";", "}" ]
[ "test", "the", "property", "'", "name", "'" ]
[ "public", "void", "name", "test", "(", ")", "{", "/", "/", "todo", ":", "test", "name", "}" ]
[ "return", "all", "values", "of", "a", "given", "header", "name", ",", "even", "if", "this", "header", "is", "set", "multiple", "times" ]
[ "public", "list", "<", "string", ">", "get", "values", "as", "list", "(", "string", "header", "name", ")", "{", "list", "<", "string", ">", "values", "=", "get", "(", "header", "name", ")", ";", "if", "(", "values", "!", "=", "null", ")", "{", "list", "<", "string", ">", "result", "=", "new", "array", "list", "<", ">", "(", ")", ";", "for", "(", "string", "value", ":", "values", ")", "{", "if", "(", "value", "!", "=", "null", ")", "{", "collections", "add", "all", "(", "result", ",", "string", "utils", "tokenize", "to", "string", "array", "(", "value", ",", "\"", ",", "\"", ")", ")", ";", "}", "}", "return", "result", ";", "}", "return", "collections", "empty", "list", "(", ")", ";", "}" ]
[ "get", "anytype", "2" ]
[ "public", "object", "get", "anytype", "2", "(", ")", "{", "return", "anytype", "2", ";", "}" ]
[ "mount", "a", "component", "into", "a", "component", "view" ]
[ "public", "static", "litho", "view", "mount", "component", "(", "component", "builder", "component", ",", "boolean", "incremental", "mount", "enabled", ",", "boolean", "visibility", "processing", "enabled", ")", "{", "component", "context", "context", "=", "get", "context", "(", "component", ")", ";", "return", "mount", "component", "(", "context", ",", "new", "litho", "view", "(", "context", ")", ",", "component", "build", "(", ")", ",", "incremental", "mount", "enabled", ",", "visibility", "processing", "enabled", ",", "100", ",", "100", ")", ";", "}" ]
[ "removes", "a", "key", "from", "the", "hashtable" ]
[ "public", "boolean", "remove", "(", "short", "key", ")", "{", "if", "(", "indexer", "remove", "(", "key", ")", "<", "0", ")", "{", "return", "false", ";", "}", "return", "true", ";", "}" ]
[ "whether", "{", "@", "code", "value", "}", "matches", "{", "@", "code", "regex", "}" ]
[ "public", "abstract", "boolean", "matches", "(", "string", "regex", ",", "string", "value", ")", ";" ]
[ "extract", "a", "date", "from", "the", "supplied", "string" ]
[ "private", "static", "final", "calendar", "parse", "string", "(", "string", "date", "str", ",", "int", "order", ",", "boolean", "ignore", "changes", ")", "throws", "calendar", "parser", "exception", "{", "parser", "state", "state", "=", "new", "parser", "state", "(", "order", ")", ";", "pattern", "pat", "=", "pattern", "compile", "(", "\"", "(", "[", "\\", "\\", "s", "/", ",", "]", "+", "|", "(", "\\", "\\", "s", ")", "\\", "\\", "-", ")", "\"", ")", ";", "matcher", "matcher", "=", "pat", "matcher", "(", "date", "str", ")", ";", "int", "prev", "end", "=", "0", ";", "while", "(", "prev", "end", "<", "date", "str", "length", "(", ")", ")", "{", "string", "token", ";", "if", "(", "!", "matcher", "find", "(", ")", ")", "{", "token", "=", "date", "str", "substring", "(", "prev", "end", ")", ";", "prev", "end", "=", "date", "str", "length", "(", ")", ";", "}", "else", "{", "final", "boolean", "is", "minus", "=", "(", "matcher", "group", "count", "(", ")", "=", "=", "2", "&", "&", "matcher", "group", "(", "2", ")", "!", "=", "null", ")", ";", "if", "(", "!", "is", "minus", ")", "{", "token", "=", "date", "str", "substring", "(", "prev", "end", ",", "matcher", "start", "(", ")", ")", ";", "}", "else", "{", "token", "=", "date", "str", "substring", "(", "prev", "end", ",", "matcher", "start", "(", ")", ")", "+", "matcher", "group", "(", "2", ")", ";", "}", "prev", "end", "=", "matcher", "end", "(", ")", ";", "}", "if", "(", "debug", ")", "{", "system", "err", "println", "(", "\"", "year", "\"", "+", "(", "state", "is", "year", "set", "(", ")", "?", "integer", "to", "string", "(", "state", "get", "year", "(", ")", ")", ":", "\"", "unset", "\"", ")", "+", "\"", ",", "month", "\"", "+", "(", "state", "is", "month", "set", "(", ")", "?", "integer", "to", "string", "(", "state", "get", "month", "(", ")", ")", ":", "\"", "unset", "\"", ")", "+", "\"", ",", "day", "\"", "+", "(", "state", "is", "date", "set", "(", ")", "?", "integer", "to", "string", "(", "state", "get", "date", "(", ")", ")", ":", "\"", "unset", "\"", ")", "+", "\"", ",", "token", "=", "\\", "\"", "\"", "+", "token", "+", "\"", "\\", "\"", "\"", ")", ";", "}", "/", "/", "try", "to", "decipher", "next", "token", "as", "a", "number", "try", "{", "final", "int", "val", "=", "integer", "parse", "int", "(", "token", ")", ";", "parse", "numeric", "token", "(", "date", "str", ",", "state", ",", "val", ")", ";", "}", "catch", "(", "number", "format", "exception", "e", ")", "{", "parse", "non", "numeric", "token", "(", "date", "str", ",", "state", ",", "token", ")", ";", "}", "}", "/", "/", "before", "checking", "for", "errors", ",", "check", "for", "missing", "year", "if", "(", "!", "state", "is", "date", "set", "(", ")", "&", "&", "state", "get", "year", "(", ")", "<", "=", "31", ")", "{", "int", "tmp", "=", "state", "get", "date", "(", ")", ";", "state", "set", "date", "(", "state", "get", "year", "(", ")", ")", ";", "state", "set", "year", "(", "tmp", ")", ";", "}", "if", "(", "!", "state", "is", "date", "set", "(", ")", ")", "{", "if", "(", "!", "state", "is", "month", "set", "(", ")", ")", "{", "if", "(", "!", "state", "is", "year", "set", "(", ")", ")", "{", "throw", "new", "calendar", "parser", "exception", "(", "\"", "no", "date", "found", "in", "\\", "\"", "\"", "+", "date", "str", "+", "\"", "\\", "\"", "\"", ")", ";", "}", "else", "{", "throw", "new", "calendar", "parser", "exception", "(", "\"", "day", "and", "month", "missing", "\"", "+", "\"", "from", "\\", "\"", "\"", "+", "date", "str", "+", "\"", "\\", "\"", "\"", ")", ";", "}", "}", "else", "{", "throw", "new", "calendar", "parser", "exception", "(", "\"", "day", "missing", "from", "\\", "\"", "\"", "+", "date", "str", "+", "\"", "\\", "\"", "\"", ")", ";", "}", "}", "else", "if", "(", "!", "state", "is", "month", "set", "(", ")", ")", "{", "if", "(", "!", "state", "is", "year", "set", "(", ")", ")", "{", "throw", "new", "calendar", "parser", "exception", "(", "\"", "year", "and", "month", "missing", "\"", "+", "\"", "from", "\\", "\"", "\"", "+", "date", "str", "+", "\"", "\\", "\"", "\"", ")", ";", "}", "else", "{", "throw", "new", "calendar", "parser", "exception", "(", "\"", "month", "missing", "from", "\\", "\"", "\"", "+", "date", "str", "+", "\"", "\\", "\"", "\"", ")", ";", "}", "}", "else", "if", "(", "!", "state", "is", "year", "set", "(", ")", ")", "{", "throw", "new", "calendar", "parser", "exception", "(", "\"", "year", "missing", "from", "\\", "\"", "\"", "+", "date", "str", "+", "\"", "\\", "\"", "\"", ")", ";", "}", "final", "int", "tmp", "year", "=", "state", "get", "year", "(", ")", ";", "if", "(", "tmp", "year", "<", "50", ")", "{", "state", "set", "year", "(", "tmp", "year", "+", "century", "offset", ")", ";", "}", "else", "if", "(", "tmp", "year", "<", "100", ")", "{", "state", "set", "year", "(", "tmp", "year", "+", "(", "century", "offset", "-", "100", ")", ")", ";", "}", "gregorian", "calendar", "cal", "=", "new", "gregorian", "calendar", "(", "time", "zone", "get", "time", "zone", "(", "\"", "z", "\"", ")", ")", ";", "state", "set", "calendar", "(", "cal", ",", "ignore", "changes", ")", ";", "if", "(", "debug", ")", "{", "system", "err", "println", "(", "\"", "y", "\"", "+", "state", "get", "year", "(", ")", "+", "\"", "m", "\"", "+", "state", "get", "month", "(", ")", "+", "\"", "d", "\"", "+", "state", "get", "date", "(", ")", "+", "\"", "h", "\"", "+", "state", "get", "hour", "(", ")", "+", "\"", "m", "\"", "+", "state", "get", "minute", "(", ")", "+", "\"", "s", "\"", "+", "state", "get", "second", "(", ")", "+", "\"", "l", "\"", "+", "state", "get", "millisecond", "(", ")", "+", "\"", "=", ">", "\"", "+", "to", "string", "(", "cal", ")", ")", ";", "}", "/", "/", "return", "cal", "to", "instant", "(", ")", "at", "offset", "(", "zone", "offset", "of", "(", "\"", "z", "\"", ")", ")", ";", "return", "cal", ";", "}" ]
[ "handle", "a", "begin", "epoch", "request", "this", "api", "may", "return", "the", "following", "errors", ":", "-", "{", "@", "link", "errors", "#", "broker", "not", "available", "}", "if", "this", "node", "is", "currently", "shutting", "down", "-", "{", "@", "link", "errors", "#", "inconsistent", "voter", "set", "}", "if", "the", "request", "suggests", "inconsistent", "voter", "membership", "(", "e", "g", "if", "this", "node", "or", "the", "sender", "is", "not", "one", "of", "the", "current", "known", "voters", ")", "-", "{", "@", "link", "errors", "#", "fenced", "leader", "epoch", "}", "if", "the", "epoch", "is", "smaller", "than", "this", "node", "'", "s", "epoch" ]
[ "private", "begin", "quorum", "epoch", "response", "data", "handle", "begin", "quorum", "epoch", "request", "(", "raft", "request", "inbound", "request", "metadata", ",", "long", "current", "time", "ms", ")", "throws", "i", "o", "exception", "{", "begin", "quorum", "epoch", "request", "data", "request", "=", "(", "begin", "quorum", "epoch", "request", "data", ")", "request", "metadata", "data", ";", "if", "(", "!", "has", "valid", "topic", "partition", "(", "request", ",", "log", "topic", "partition", "(", ")", ")", ")", "{", "/", "/", "until", "we", "support", "multi", "-", "raft", ",", "we", "treat", "topic", "partition", "mismatches", "as", "invalid", "requests", "return", "new", "begin", "quorum", "epoch", "response", "data", "(", ")", "set", "error", "code", "(", "errors", "invalid", "request", "code", "(", ")", ")", ";", "}", "begin", "quorum", "epoch", "request", "data", "partition", "data", "partition", "request", "=", "request", "topics", "(", ")", "get", "(", "0", ")", "partitions", "(", ")", "get", "(", "0", ")", ";", "int", "request", "leader", "id", "=", "partition", "request", "leader", "id", "(", ")", ";", "int", "request", "epoch", "=", "partition", "request", "leader", "epoch", "(", ")", ";", "optional", "<", "errors", ">", "error", "opt", "=", "validate", "voter", "only", "request", "(", "request", "leader", "id", ",", "request", "epoch", ")", ";", "if", "(", "error", "opt", "is", "present", "(", ")", ")", "{", "return", "build", "begin", "quorum", "epoch", "response", "(", "error", "opt", "get", "(", ")", ")", ";", "}", "maybe", "transition", "(", "optional", "int", "of", "(", "request", "leader", "id", ")", ",", "request", "epoch", ",", "current", "time", "ms", ")", ";", "return", "build", "begin", "quorum", "epoch", "response", "(", "errors", "none", ")", ";", "}" ]
[ "asserts", "that", "the", "given", "throwable", "has", "the", "given", "class", "and", "then", "asserts", "on", "the", "message", "as", "using", "the", "full", "set", "of", "method", "parameters" ]
[ "private", "void", "assert", "failure", "cause", "(", "throwable", "throwable", ",", "class", "<", "?", "extends", "throwable", ">", "clazz", ",", "object", "[", "]", "params", ")", "{", "assert", "that", "(", "throwable", ")", "is", "instance", "of", "(", "clazz", ")", ";", "if", "(", "params", "length", "=", "=", "1", ")", "{", "assert", "that", "(", "throwable", ")", "has", "message", "that", "(", ")", "is", "null", "(", ")", ";", "}", "else", "if", "(", "params", "length", "=", "=", "2", ")", "{", "assert", "that", "(", "throwable", ")", "has", "message", "that", "(", ")", "is", "empty", "(", ")", ";", "}", "else", "{", "assert", "that", "(", "throwable", ")", "has", "message", "that", "(", ")", "is", "equal", "to", "(", "strings", "lenient", "format", "(", "\"", "\"", ",", "arrays", "copy", "of", "range", "(", "params", ",", "2", ",", "params", "length", ")", ")", ")", ";", "}", "}" ]
[ "change", "the", "default", "client", "authentication", "mode", "the", "initial", "client", "auth", "mode", "is", "{", "@", "link", "ssl", "client", "authentication", "mode", "#", "optional", "}" ]
[ "public", "void", "set", "default", "client", "auth", "(", "ssl", "client", "authentication", "mode", "default", "client", "auth", ")", "{", "this", "default", "client", "auth", "=", "default", "client", "auth", ";", "}" ]
[ "returns", "the", "classpath", "artifacts", "needed", "in", "a", "deploy", "jar", "for", "this", "target", "this", "excludes", "the", "artifacts", "made", "available", "by", "jars", "in", "the", "deployment", "environment" ]
[ "public", "nested", "set", "<", "artifact", ">", "get", "runtime", "class", "path", "for", "archive", "(", ")", "{", "nested", "set", "<", "artifact", ">", "runtime", "classpath", "=", "get", "runtime", "class", "path", "(", ")", ";", "if", "(", "get", "excluded", "artifacts", "(", ")", "is", "empty", "(", ")", ")", "{", "return", "runtime", "classpath", ";", "}", "else", "{", "return", "nested", "set", "builder", "wrap", "(", "order", "stable", "order", ",", "iterables", "filter", "(", "runtime", "classpath", "to", "list", "(", ")", ",", "predicates", "not", "(", "predicates", "in", "(", "get", "excluded", "artifacts", "(", ")", "to", "set", "(", ")", ")", ")", ")", ")", ";", "}", "}" ]
[ "returns", "{", "@", "code", "true", "}", "if", "a", "header", "with", "the", "name", "and", "value", "exists" ]
[ "boolean", "contains", "int", "(", "k", "name", ",", "int", "value", ")", ";" ]
[ "send", "an", "info", "log", "message" ]
[ "public", "static", "void", "i", "(", "string", "tag", ",", "string", "msg", ")", "{", "if", "(", "s", "is", "log", "enabled", ")", "{", "log", "i", "(", "tag", ",", "get", "content", "(", "get", "current", "stack", "trace", "element", "(", ")", ")", "+", "\"", ">", "\"", "+", "msg", ")", ";", "}", "}" ]
[ "any", "comments", "associated", "with", "the", "plural", "<", "code", ">", "optional", "string", "comment", "=", "2", ";", "<", "code", ">" ]
[ "public", "builder", "set", "comment", "bytes", "(", "com", "google", "protobuf", "byte", "string", "value", ")", "{", "copy", "on", "write", "(", ")", ";", "instance", "set", "comment", "bytes", "(", "value", ")", ";", "return", "this", ";", "}" ]
[ "indicate", "that", "we", "just", "deleted", "a", "file", "through", "wasb" ]
[ "public", "void", "file", "deleted", "(", ")", "{", "number", "of", "files", "deleted", "incr", "(", ")", ";", "}" ]
[ "returns", "the", "starlark", "builtin", "annotation", "for", "the", "top", "-", "level", "starlark", "module" ]
[ "public", "static", "starlark", "builtin", "get", "top", "level", "module", "(", ")", "{", "return", "top", "level", "module", "class", "get", "annotation", "(", "starlark", "builtin", "class", ")", ";", "}" ]
[ "base", "6", "4", "encoded", "hash", "of", "msg" ]
[ "public", "static", "string", "generate", "hash", "(", "byte", "[", "]", "msg", ",", "secret", "key", "key", ")", "{", "return", "new", "string", "(", "base", "6", "4", "encode", "base", "6", "4", "(", "generate", "byte", "hash", "(", "msg", ",", "key", ")", ")", ",", "charsets", "utf", "8", ")", ";", "}" ]
[ "similar", "to", "the", "tests", "above", ",", "but", "the", "bad", "client", "disconnects", "immediately", "without", "sending", "any", "data" ]
[ "public", "void", "test", "t", "l", "s", "detection", "non", "blocking", "non", "strict", "server", "disconnected", "client", "(", "final", "x", "5", "0", "9", "key", "type", "ca", "key", "type", ",", "final", "x", "5", "0", "9", "key", "type", "cert", "key", "type", ",", "final", "boolean", "hostname", "verification", ",", "final", "integer", "param", "index", ")", "throws", "exception", "{", "init", "(", "ca", "key", "type", ",", "cert", "key", "type", ",", "hostname", "verification", ",", "param", "index", ")", ";", "set", "up", "(", ")", ";", "socket", "client", "socket", "=", "null", ";", "socket", "secure", "client", "socket", "=", "null", ";", "unified", "server", "thread", "server", "thread", "=", "new", "unified", "server", "thread", "(", "x", "5", "0", "9", "util", ",", "local", "server", "address", ",", "true", ",", "data", "to", "client", ")", ";", "server", "thread", "start", "(", ")", ";", "try", "{", "socket", "bad", "client", "socket", "=", "connect", "without", "s", "s", "l", "(", ")", ";", "force", "close", "(", "bad", "client", "socket", ")", ";", "/", "/", "close", "the", "bad", "client", "socket", "immediately", "client", "socket", "=", "connect", "without", "s", "s", "l", "(", ")", ";", "client", "socket", "get", "output", "stream", "(", ")", "write", "(", "data", "from", "client", ")", ";", "client", "socket", "get", "output", "stream", "(", ")", "flush", "(", ")", ";", "byte", "[", "]", "buf", "=", "new", "byte", "[", "data", "to", "client", "length", "]", ";", "int", "bytes", "read", "=", "client", "socket", "get", "input", "stream", "(", ")", "read", "(", "buf", ",", "0", ",", "buf", "length", ")", ";", "assert", "equals", "(", "buf", "length", ",", "bytes", "read", ")", ";", "assert", "array", "equals", "(", "data", "to", "client", ",", "buf", ")", ";", "assert", "array", "equals", "(", "data", "from", "client", ",", "server", "thread", "get", "data", "from", "client", "(", "0", ")", ")", ";", "synchronized", "(", "handshake", "completed", "lock", ")", "{", "assert", "false", "(", "handshake", "completed", ")", ";", "}", "secure", "client", "socket", "=", "connect", "with", "s", "s", "l", "(", ")", ";", "secure", "client", "socket", "get", "output", "stream", "(", ")", "write", "(", "data", "from", "client", ")", ";", "secure", "client", "socket", "get", "output", "stream", "(", ")", "flush", "(", ")", ";", "buf", "=", "new", "byte", "[", "data", "to", "client", "length", "]", ";", "bytes", "read", "=", "secure", "client", "socket", "get", "input", "stream", "(", ")", "read", "(", "buf", ",", "0", ",", "buf", "length", ")", ";", "assert", "equals", "(", "buf", "length", ",", "bytes", "read", ")", ";", "assert", "array", "equals", "(", "data", "to", "client", ",", "buf", ")", ";", "assert", "array", "equals", "(", "data", "from", "client", ",", "server", "thread", "get", "data", "from", "client", "(", "1", ")", ")", ";", "synchronized", "(", "handshake", "completed", "lock", ")", "{", "if", "(", "!", "handshake", "completed", ")", "{", "handshake", "completed", "lock", "wait", "(", "timeout", ")", ";", "}", "assert", "true", "(", "handshake", "completed", ")", ";", "}", "}", "finally", "{", "force", "close", "(", "client", "socket", ")", ";", "force", "close", "(", "secure", "client", "socket", ")", ";", "server", "thread", "shutdown", "(", "timeout", ")", ";", "}", "}" ]
[ "get", "the", "active", "kafka", "streams", "instance", "for", "given", "key" ]
[ "public", "host", "info", "active", "host", "(", ")", "{", "return", "active", "host", ";", "}" ]
[ "debug", "method", "to", "dump", "the", "number", "of", "bytes", "for", "the", "specified", "stream", "to", "a", "{", "@", "link", "string", "}" ]
[ "string", "dump", "stream", "(", "int", "stream", "number", ",", "int", "max", "out", ")", "{", "string", "builder", "builder", "=", "new", "string", "builder", "(", ")", ";", "builder", "append", "(", "msf", "get", "stream", "(", "stream", "number", ")", "dump", "(", "max", "out", ")", ")", ";", "return", "builder", "to", "string", "(", ")", ";", "}", "/", "/", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "/", "/", "abstract", "methods", "/", "/", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=" ]
[ "returns", "the", "parsed", "string", "if", "parsed", "successful", ";", "otherwise", "returns", "the", "default", "number", "if", "the", "string", "is", "null", ",", "empty", "or", "a", "parse", "exception", "is", "thrown", "then", "the", "default", "number", "is", "returned" ]
[ "public", "static", "number", "try", "parse", "number", "(", "@", "check", "for", "null", "string", "number", "str", ",", "@", "check", "for", "null", "number", "default", "number", ")", "{", "if", "(", "(", "number", "str", "=", "=", "null", ")", "|", "|", "(", "number", "str", "length", "(", ")", "=", "=", "0", ")", ")", "{", "return", "default", "number", ";", "}", "try", "{", "return", "number", "format", "get", "number", "instance", "(", ")", "parse", "(", "number", "str", ")", ";", "}", "catch", "(", "parse", "exception", "e", ")", "{", "return", "default", "number", ";", "}", "}" ]
[ "gets", "num", "prec", "radix" ]
[ "public", "int", "get", "num", "prec", "radix", "(", ")", "{", "return", "num", "prec", "radix", ";", "}" ]
[ "utility", "method", "to", "fetch", "zk", "auth", "info", "from", "the", "configuration" ]
[ "public", "static", "list", "<", "z", "k", "util", "z", "k", "auth", "info", ">", "get", "z", "k", "auth", "infos", "(", "configuration", "conf", ",", "string", "config", "key", ")", "throws", "i", "o", "exception", "{", "char", "[", "]", "zk", "auth", "chars", "=", "conf", "get", "password", "(", "config", "key", ")", ";", "string", "zk", "auth", "conf", "=", "zk", "auth", "chars", "!", "=", "null", "?", "string", "value", "of", "(", "zk", "auth", "chars", ")", ":", "null", ";", "try", "{", "zk", "auth", "conf", "=", "z", "k", "util", "resolve", "conf", "indirection", "(", "zk", "auth", "conf", ")", ";", "if", "(", "zk", "auth", "conf", "!", "=", "null", ")", "{", "return", "z", "k", "util", "parse", "auth", "(", "zk", "auth", "conf", ")", ";", "}", "else", "{", "return", "collections", "empty", "list", "(", ")", ";", "}", "}", "catch", "(", "i", "o", "exception", "|", "z", "k", "util", "bad", "auth", "format", "exception", "e", ")", "{", "log", "error", "(", "\"", "couldn", "'", "t", "read", "auth", "based", "on", "{", "}", "\"", ",", "config", "key", ")", ";", "throw", "e", ";", "}", "}" ]
[ "evaluate", "the", "json", "path", "and", "return", "the", "resulting", "value" ]
[ "public", "object", "evaluate", "json", "path", "(", "string", "content", ")", "{", "try", "{", "return", "this", "json", "path", "read", "(", "content", ")", ";", "}", "catch", "(", "throwable", "ex", ")", "{", "throw", "new", "assertion", "error", "(", "\"", "no", "value", "at", "json", "path", "\\", "\"", "\"", "+", "this", "expression", "+", "\"", "\\", "\"", "\"", ",", "ex", ")", ";", "}", "}" ]
[ "put", "an", "entry", "into", "the", "state", "machine" ]
[ "public", "integer", "put", "(", "int", "from", "state", ",", "assembly", "symbol", "next", ",", "int", "new", "state", ")", "{", "return", "map", "put", "(", "new", "table", "entry", "key", "(", "from", "state", ",", "next", ")", ",", "new", "state", ")", ";", "}" ]
[ "sets", "the", "trimmed", "frame", "count", "returned", "by", "{", "@", "link", "#", "get", "trimmed", "frame", "count", "(", ")", "}", "to", "zero" ]
[ "public", "void", "reset", "trimmed", "frame", "count", "(", ")", "{", "trimmed", "frame", "count", "=", "0", ";", "}" ]
[ "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", "\"", ")", ";", "}" ]
[ "configured", "target", "function", "should", "not", "register", "actions", "in", "legacy", "blaze", "action", "graph", "unless", "the", "creation", "of", "the", "node", "is", "successful" ]
[ "public", "void", "test", "actions", "not", "registered", "in", "legacy", "when", "error", "(", ")", "throws", "exception", "{", "/", "/", "first", "find", "the", "artifact", "we", "want", "to", "make", "sure", "is", "not", "generated", "by", "an", "action", "with", "an", "error", "/", "/", "then", "update", "the", "build", "file", "and", "re", "-", "analyze", "scratch", "file", "(", "\"", "foo", "/", "failer", "bzl", "\"", ",", "\"", "def", "impl", "(", "ctx", ")", ":", "\"", ",", "\"", "if", "ctx", "attr", "fail", ":", "\"", ",", "\"", "fail", "(", "'", "failing", "'", ")", "\"", ",", "\"", "ctx", "actions", "run", "shell", "(", "outputs", "=", "[", "ctx", "outputs", "out", "]", ",", "command", "=", "'", "null", "'", ")", "\"", ",", "\"", "failer", "=", "rule", "(", "\"", ",", "\"", "impl", ",", "\"", ",", "\"", "attrs", "=", "{", "\"", ",", "\"", "'", "fail", "'", ":", "attr", "bool", "(", ")", ",", "\"", ",", "\"", "'", "out", "'", ":", "attr", "output", "(", ")", ",", "\"", ",", "\"", "}", ",", "\"", ",", "\"", ")", "\"", ")", ";", "scratch", "overwrite", "file", "(", "\"", "foo", "/", "build", "\"", ",", "\"", "load", "(", "'", ":", "failer", "bzl", "'", ",", "'", "failer", "'", ")", "\"", ",", "\"", "failer", "(", "name", "=", "'", "foo", "'", ",", "fail", "=", "false", ",", "out", "=", "'", "foo", "txt", "'", ")", "\"", ")", ";", "configured", "target", "foo", "=", "iterables", "get", "only", "element", "(", "update", "(", "\"", "/", "/", "foo", ":", "foo", "\"", ")", "get", "targets", "to", "build", "(", ")", ")", ";", "artifact", "foo", "out", "=", "foo", "get", "provider", "(", "file", "provider", "class", ")", "get", "files", "to", "build", "(", ")", "get", "singleton", "(", ")", ";", "assert", "that", "(", "get", "action", "graph", "(", ")", "get", "generating", "action", "(", "foo", "out", ")", ")", "is", "not", "null", "(", ")", ";", "clear", "analysis", "result", "(", ")", ";", "/", "/", "overwrite", "with", "an", "analysis", "-", "time", "error", "scratch", "overwrite", "file", "(", "\"", "foo", "/", "build", "\"", ",", "\"", "load", "(", "'", ":", "failer", "bzl", "'", ",", "'", "failer", "'", ")", "\"", ",", "\"", "failer", "(", "name", "=", "'", "foo", "'", ",", "fail", "=", "true", ",", "out", "=", "'", "foo", "txt", "'", ")", "\"", ")", ";", "reporter", "remove", "handler", "(", "fail", "fast", "handler", ")", ";", "assert", "throws", "(", "view", "creation", "failed", "exception", "class", ",", "(", ")", "-", ">", "update", "(", "\"", "/", "/", "foo", ":", "foo", "\"", ")", ")", ";", "assert", "that", "(", "get", "action", "graph", "(", ")", "get", "generating", "action", "(", "foo", "out", ")", ")", "is", "null", "(", ")", ";", "}" ]
[ "construct", "&", "amp", ";", "cache", "an", "ipc", "client", "with", "the", "user", "-", "provided", "socket", "factory", "if", "no", "cached", "client", "exists", "default", "response", "type", "is", "object", "writable" ]
[ "public", "synchronized", "client", "get", "client", "(", "configuration", "conf", ",", "socket", "factory", "factory", ")", "{", "return", "this", "get", "client", "(", "conf", ",", "factory", ",", "object", "writable", "class", ")", ";", "}" ]
[ "get", "prefix", "ns", "integer" ]
[ "public", "integer", "get", "prefix", "ns", "integer", "(", ")", "{", "return", "prefix", "ns", "integer", ";", "}" ]
[ "a", "prediction", "of", "how", "much", "larger", "this", "store", "will", "eventually", "grow", "for", "instance", ",", "if", "we", "are", "currently", "doing", "a", "peer", "recovery", "or", "restoring", "a", "snapshot", "into", "this", "store", "then", "we", "can", "account", "for", "the", "rest", "of", "the", "recovery", "using", "this", "field", "a", "value", "of", "{", "@", "code", "-", "1b", "}", "indicates", "that", "the", "reserved", "size", "is", "unknown" ]
[ "public", "byte", "size", "value", "get", "reserved", "size", "(", ")", "{", "return", "new", "byte", "size", "value", "(", "reserved", "size", ")", ";", "}" ]
[ "gets", "the", "control", "flow", "guard", "check", "function", "pointer", "address" ]
[ "public", "long", "get", "cfg", "check", "function", "pointer", "(", ")", "{", "return", "guard", "cfc", "check", "function", "pointer", ";", "}" ]
[ "generates", "a", "new", "{", "@", "link", "bitmap", "font", "}", "the", "size", "is", "expressed", "in", "pixels", "throws", "a", "gdx", "runtime", "exception", "if", "the", "font", "could", "not", "be", "generated", "using", "big", "sizes", "might", "cause", "such", "an", "exception" ]
[ "public", "bitmap", "font", "generate", "font", "(", "free", "type", "font", "parameter", "parameter", ",", "free", "type", "bitmap", "font", "data", "data", ")", "{", "boolean", "update", "texture", "regions", "=", "data", "regions", "=", "=", "null", "&", "&", "parameter", "packer", "!", "=", "null", ";", "if", "(", "update", "texture", "regions", ")", "data", "regions", "=", "new", "array", "(", ")", ";", "generate", "data", "(", "parameter", ",", "data", ")", ";", "if", "(", "update", "texture", "regions", ")", "parameter", "packer", "update", "texture", "regions", "(", "data", "regions", ",", "parameter", "min", "filter", ",", "parameter", "mag", "filter", ",", "parameter", "gen", "mip", "maps", ")", ";", "if", "(", "data", "regions", "is", "empty", "(", ")", ")", "throw", "new", "gdx", "runtime", "exception", "(", "\"", "unable", "to", "create", "a", "font", "with", "no", "texture", "regions", "\"", ")", ";", "bitmap", "font", "font", "=", "new", "bitmap", "font", "(", "data", ",", "data", "regions", ",", "true", ")", ";", "font", "set", "owns", "texture", "(", "parameter", "packer", "=", "=", "null", ")", ";", "return", "font", ";", "}" ]
[ "test", "field", "names", "where", "a", "field", "is", "permitted", ",", "but", "doesn", "'", "t", "exist", "in", "the", "segment" ]
[ "public", "void", "test", "field", "names", "missing", "(", ")", "throws", "exception", "{", "directory", "dir", "=", "new", "directory", "(", ")", ";", "index", "writer", "config", "iwc", "=", "new", "index", "writer", "config", "(", "null", ")", ";", "index", "writer", "iw", "=", "new", "index", "writer", "(", "dir", ",", "iwc", ")", ";", "/", "/", "add", "document", "with", "2", "fields", "document", "doc", "=", "new", "document", "(", ")", ";", "doc", "add", "(", "new", "string", "field", "(", "\"", "field", "a", "\"", ",", "\"", "test", "\"", ",", "field", "store", "no", ")", ")", ";", "doc", "add", "(", "new", "string", "field", "(", "\"", "field", "b", "\"", ",", "\"", "test", "\"", ",", "field", "store", "no", ")", ")", ";", "doc", "add", "(", "new", "string", "field", "(", "field", "names", "field", "mapper", "name", ",", "\"", "field", "a", "\"", ",", "field", "store", "no", ")", ")", ";", "doc", "add", "(", "new", "string", "field", "(", "field", "names", "field", "mapper", "name", ",", "\"", "field", "b", "\"", ",", "field", "store", "no", ")", ")", ";", "iw", "add", "document", "(", "doc", ")", ";", "/", "/", "open", "reader", "automaton", "automaton", "=", "automatons", "patterns", "(", "arrays", "as", "list", "(", "\"", "field", "a", "\"", ",", "\"", "field", "c", "\"", ",", "field", "names", "field", "mapper", "name", ")", ")", ";", "directory", "reader", "ir", "=", "field", "subset", "reader", "wrap", "(", "directory", "reader", "open", "(", "iw", ")", ",", "new", "character", "run", "automaton", "(", "automaton", ")", ")", ";", "/", "/", "see", "only", "one", "field", "leaf", "reader", "segment", "reader", "=", "ir", "leaves", "(", ")", "get", "(", "0", ")", "reader", "(", ")", ";", "terms", "terms", "=", "segment", "reader", "terms", "(", "field", "names", "field", "mapper", "name", ")", ";", "/", "/", "seek", "exact", "terms", "enum", "terms", "enum", "=", "terms", "iterator", "(", ")", ";", "assert", "false", "(", "terms", "enum", "seek", "exact", "(", "new", "bytes", "ref", "(", "\"", "field", "c", "\"", ")", ")", ")", ";", "/", "/", "seek", "ceil", "terms", "enum", "=", "terms", "iterator", "(", ")", ";", "assert", "equals", "(", "seek", "status", "end", ",", "terms", "enum", "seek", "ceil", "(", "new", "bytes", "ref", "(", "\"", "field", "c", "\"", ")", ")", ")", ";", "test", "util", "check", "reader", "(", "ir", ")", ";", "i", "o", "utils", "close", "(", "ir", ",", "iw", ",", "dir", ")", ";", "}" ]
[ "parse", "end", "point", "rule" ]
[ "public", "static", "string", "parsing", "endpoint", "rule", "(", "string", "endpoint", "url", ")", "{", "/", "/", ",", "env", ",", "if", "(", "endpoint", "url", "=", "=", "null", "|", "|", "!", "pattern", "matcher", "(", "endpoint", "url", ")", "find", "(", ")", ")", "{", "/", "/", "skip", "retrieve", "from", "system", "property", "and", "retrieve", "directly", "from", "system", "env", "string", "endpoint", "url", "source", "=", "system", "getenv", "(", "property", "key", "const", "system", "env", "alibaba", "aliware", "endpoint", "url", ")", ";", "if", "(", "string", "utils", "is", "not", "blank", "(", "endpoint", "url", "source", ")", ")", "{", "endpoint", "url", "=", "endpoint", "url", "source", ";", "}", "return", "string", "utils", "is", "not", "blank", "(", "endpoint", "url", ")", "?", "endpoint", "url", ":", "\"", "\"", ";", "}", "endpoint", "url", "=", "endpoint", "url", "substring", "(", "endpoint", "url", "index", "of", "(", "\"", "$", "{", "\"", ")", "+", "2", ",", "endpoint", "url", "last", "index", "of", "(", "\"", "}", "\"", ")", ")", ";", "int", "def", "start", "of", "=", "endpoint", "url", "index", "of", "(", "\"", ":", "\"", ")", ";", "string", "default", "endpoint", "url", "=", "null", ";", "if", "(", "def", "start", "of", "!", "=", "-", "1", ")", "{", "default", "endpoint", "url", "=", "endpoint", "url", "substring", "(", "def", "start", "of", "+", "1", ")", ";", "endpoint", "url", "=", "endpoint", "url", "substring", "(", "0", ",", "def", "start", "of", ")", ";", "}", "string", "endpoint", "url", "source", "=", "template", "utils", "string", "blank", "and", "then", "execute", "(", "system", "get", "property", "(", "endpoint", "url", ",", "system", "getenv", "(", "endpoint", "url", ")", ")", ",", "new", "callable", "<", "string", ">", "(", ")", "{", "@", "override", "public", "string", "call", "(", ")", "{", "return", "system", "getenv", "(", "property", "key", "const", "system", "env", "alibaba", "aliware", "endpoint", "url", ")", ";", "}", "}", ")", ";", "if", "(", "string", "utils", "is", "blank", "(", "endpoint", "url", "source", ")", ")", "{", "if", "(", "string", "utils", "is", "not", "blank", "(", "default", "endpoint", "url", ")", ")", "{", "endpoint", "url", "=", "default", "endpoint", "url", ";", "}", "}", "else", "{", "endpoint", "url", "=", "endpoint", "url", "source", ";", "}", "return", "string", "utils", "is", "not", "blank", "(", "endpoint", "url", ")", "?", "endpoint", "url", ":", "\"", "\"", ";", "}" ]
[ "returns", "a", "monotonic", "timestamp", "that", "can", "only", "be", "used", "to", "compute", "relative", "time", "<", "b", ">", "warning", ":", "<", "b", ">", "the", "returned", "timestamp", "can", "only", "be", "used", "to", "measure", "elapsed", "time", ",", "not", "wall", "time" ]
[ "public", "duration", "monotonic", "time", "(", ")", "{", "return", "monotonic", "time", ";", "}" ]
[ "flattens", "a", "class", "'", "s", "type", "hierarchy", "into", "a", "set", "of", "{", "@", "code", "class", "}", "objects", "including", "all", "superclasses", "(", "transitively", ")", "and", "all", "interfaces", "implemented", "by", "these", "superclasses" ]
[ "static", "immutable", "set", "<", "class", "<", "?", ">", ">", "flatten", "hierarchy", "(", "class", "<", "?", ">", "concrete", "class", ")", "{", "try", "{", "return", "flatten", "hierarchy", "cache", "get", "unchecked", "(", "concrete", "class", ")", ";", "}", "catch", "(", "unchecked", "execution", "exception", "e", ")", "{", "throw", "throwables", "propagate", "(", "e", "get", "cause", "(", ")", ")", ";", "}", "}" ]
[ "returns", "true", "if", "field", "corresponding", "to", "field", "i", "d", "is", "set", "(", "has", "been", "assigned", "a", "value", ")", "and", "false", "otherwise" ]
[ "public", "boolean", "is", "set", "(", "fields", "field", ")", "{", "if", "(", "field", "=", "=", "null", ")", "{", "throw", "new", "illegal", "argument", "exception", "(", ")", ";", "}", "switch", "(", "field", ")", "{", "case", "id", ":", "return", "is", "set", "id", "(", ")", ";", "}", "throw", "new", "illegal", "state", "exception", "(", ")", ";", "}" ]
[ "build", "a", "new", "warrior", "{", "@", "link", "character", "}", "without", "any", "abilities", ",", "but", "with", "a", "weapon", "and", "verify", "if", "it", "has", "the", "expected", "attributes" ]
[ "public", "void", "test", "build", "weak", "warrior", "(", ")", "{", "final", "var", "character", "=", "character", "step", "builder", "new", "builder", "(", ")", "name", "(", "\"", "weak", "warrior", "\"", ")", "fighter", "class", "(", "\"", "none", "\"", ")", "with", "weapon", "(", "\"", "slingshot", "\"", ")", "no", "abilities", "(", ")", "build", "(", ")", ";", "assert", "equals", "(", "\"", "weak", "warrior", "\"", ",", "character", "get", "name", "(", ")", ")", ";", "assert", "equals", "(", "\"", "none", "\"", ",", "character", "get", "fighter", "class", "(", ")", ")", ";", "assert", "equals", "(", "\"", "slingshot", "\"", ",", "character", "get", "weapon", "(", ")", ")", ";", "assert", "null", "(", "character", "get", "abilities", "(", ")", ")", ";", "assert", "not", "null", "(", "character", "to", "string", "(", ")", ")", ";", "}" ]
[ "returns", "the", "character", "offset", "in", "the", "display", "item", "at", "the", "(", "row", ",", "col", ")" ]
[ "public", "int", "get", "char", "offset", "(", ")", "{", "return", "char", "offset", ";", "}" ]
[ "program", "entry", "point" ]
[ "public", "static", "void", "main", "(", "string", "[", "]", "args", ")", "{", "var", "integer", "list", "=", "list", "of", "(", "1", ",", "-", "61", ",", "14", ",", "-", "22", ",", "18", ",", "-", "87", ",", "6", ",", "64", ",", "-", "82", ",", "26", ",", "-", "98", ",", "97", ",", "45", ",", "23", ",", "2", ",", "-", "68", ")", ";", "pretty", "print", "(", "\"", "the", "initial", "list", "contains", ":", "\"", ",", "integer", "list", ")", ";", "var", "first", "five", "negatives", "=", "simple", "fluent", "iterable", "from", "copy", "of", "(", "integer", "list", ")", "filter", "(", "negatives", "(", ")", ")", "first", "(", "3", ")", "as", "list", "(", ")", ";", "pretty", "print", "(", "\"", "the", "first", "three", "negative", "values", "are", ":", "\"", ",", "first", "five", "negatives", ")", ";", "var", "last", "two", "positives", "=", "simple", "fluent", "iterable", "from", "copy", "of", "(", "integer", "list", ")", "filter", "(", "positives", "(", ")", ")", "last", "(", "2", ")", "as", "list", "(", ")", ";", "pretty", "print", "(", "\"", "the", "last", "two", "positive", "values", "are", ":", "\"", ",", "last", "two", "positives", ")", ";", "simple", "fluent", "iterable", "from", "copy", "of", "(", "integer", "list", ")", "filter", "(", "number", "-", ">", "number", "%", "2", "=", "=", "0", ")", "first", "(", ")", "if", "present", "(", "even", "number", "-", ">", "logger", "info", "(", "\"", "the", "first", "even", "number", "is", ":", "{", "}", "\"", ",", "even", "number", ")", ")", ";", "var", "transformed", "list", "=", "simple", "fluent", "iterable", "from", "copy", "of", "(", "integer", "list", ")", "filter", "(", "negatives", "(", ")", ")", "map", "(", "transform", "to", "string", "(", ")", ")", "as", "list", "(", ")", ";", "pretty", "print", "(", "\"", "a", "string", "-", "mapped", "list", "of", "negative", "numbers", "contains", ":", "\"", ",", "transformed", "list", ")", ";", "var", "last", "two", "of", "first", "four", "string", "mapped", "=", "lazy", "fluent", "iterable", "from", "(", "integer", "list", ")", "filter", "(", "positives", "(", ")", ")", "first", "(", "4", ")", "last", "(", "2", ")", "map", "(", "number", "-", ">", "\"", "string", "[", "\"", "+", "number", "+", "\"", "]", "\"", ")", "as", "list", "(", ")", ";", "pretty", "print", "(", "\"", "the", "lazy", "list", "contains", "the", "last", "two", "of", "the", "first", "four", "positive", "numbers", "\"", "+", "\"", "mapped", "to", "strings", ":", "\"", ",", "last", "two", "of", "first", "four", "string", "mapped", ")", ";", "lazy", "fluent", "iterable", "from", "(", "integer", "list", ")", "filter", "(", "negatives", "(", ")", ")", "first", "(", "2", ")", "last", "(", ")", "if", "present", "(", "number", "-", ">", "logger", "info", "(", "\"", "last", "amongst", "first", "two", "negatives", ":", "{", "}", "\"", ",", "number", ")", ")", ";", "}" ]
[ "test", "if", "custom", "endpoint", "is", "picked", "up", "the", "test", "expects", "{", "@", "link", "s", "3", "a", "test", "constants", "#", "configuration", "test", "endpoint", "}", "to", "be", "defined", "in", "the", "configuration", "describing", "the", "endpoint", "of", "the", "bucket", "to", "which", "test", "fs", "s3a", "name", "points", "(", "i", "e", "\"", "s", "3", "-", "eu", "-", "west", "-", "1", "amazonaws", "com", "\"", "if", "the", "bucket", "is", "located", "in", "ireland", ")", "evidently", ",", "the", "bucket", "has", "to", "be", "hosted", "in", "the", "region", "denoted", "by", "the", "endpoint", "for", "the", "test", "to", "succeed", "more", "info", "and", "the", "list", "of", "endpoint", "identifiers", ":" ]
[ "public", "void", "test", "endpoint", "(", ")", "throws", "exception", "{", "conf", "=", "new", "configuration", "(", ")", ";", "string", "endpoint", "=", "conf", "get", "trimmed", "(", "s", "3", "a", "test", "constants", "configuration", "test", "endpoint", ",", "\"", "\"", ")", ";", "if", "(", "endpoint", "is", "empty", "(", ")", ")", "{", "log", "warn", "(", "\"", "custom", "endpoint", "test", "skipped", "as", "\"", "+", "s", "3", "a", "test", "constants", "configuration", "test", "endpoint", "+", "\"", "config", "\"", "+", "\"", "setting", "was", "not", "detected", "\"", ")", ";", "}", "else", "{", "conf", "set", "(", "constants", "endpoint", ",", "endpoint", ")", ";", "fs", "=", "s", "3", "a", "test", "utils", "create", "test", "file", "system", "(", "conf", ")", ";", "amazon", "s", "3", "s", "3", "=", "fs", "get", "amazon", "s", "3", "client", "for", "testing", "(", "\"", "test", "endpoint", "\"", ")", ";", "string", "end", "point", "region", "=", "\"", "\"", ";", "/", "/", "differentiate", "handling", "of", "\"", "s", "3", "-", "\"", "and", "\"", "s", "3", "\"", "based", "endpoint", "identifiers", "string", "[", "]", "endpoint", "parts", "=", "string", "utils", "split", "(", "endpoint", ",", "'", "'", ")", ";", "if", "(", "endpoint", "parts", "length", "=", "=", "3", ")", "{", "end", "point", "region", "=", "endpoint", "parts", "[", "0", "]", "substring", "(", "3", ")", ";", "}", "else", "if", "(", "endpoint", "parts", "length", "=", "=", "4", ")", "{", "end", "point", "region", "=", "endpoint", "parts", "[", "1", "]", ";", "}", "else", "{", "fail", "(", "\"", "unexpected", "endpoint", "\"", ")", ";", "}", "assert", "equals", "(", "\"", "endpoint", "config", "setting", "and", "bucket", "location", "differ", ":", "\"", ",", "end", "point", "region", ",", "s", "3", "get", "bucket", "location", "(", "fs", "get", "uri", "(", ")", "get", "host", "(", ")", ")", ")", ";", "}", "}" ]
[ "tests", "that", "a", "duplicate", "job", "submission", "won", "'", "t", "delete", "any", "job", "meta", "data", "(", "submitted", "job", "graphs", ",", "blobs", ",", "etc", ")" ]
[ "public", "void", "test", "duplicate", "job", "submission", "does", "not", "delete", "job", "meta", "data", "(", ")", "throws", "exception", "{", "final", "testing", "job", "manager", "runner", "factory", "testing", "job", "manager", "runner", "factory", "n", "g", "=", "start", "dispatcher", "and", "submit", "job", "(", ")", ";", "final", "completable", "future", "<", "acknowledge", ">", "submission", "future", "=", "dispatcher", "gateway", "submit", "job", "(", "job", "graph", ",", "timeout", ")", ";", "try", "{", "try", "{", "submission", "future", "get", "(", ")", ";", "fail", "(", "\"", "expected", "a", "duplicate", "job", "submission", "failure", "\"", ")", ";", "}", "catch", "(", "execution", "exception", "ee", ")", "{", "assert", "that", "(", "exception", "utils", "find", "throwable", "(", "ee", ",", "duplicate", "job", "submission", "exception", "class", ")", "is", "present", "(", ")", ",", "is", "(", "true", ")", ")", ";", "}", "assert", "that", "h", "a", "blobs", "have", "not", "been", "removed", "(", ")", ";", "}", "finally", "{", "finish", "job", "(", "testing", "job", "manager", "runner", "factory", "n", "g", "take", "created", "job", "manager", "runner", "(", ")", ")", ";", "}", "assert", "that", "h", "a", "blobs", "have", "been", "removed", "(", ")", ";", "}" ]
[ "writes", "an", "info", "log", "message", "containing", "the", "parameters" ]
[ "void", "log", "(", "string", "label", ",", "int", "num", "dirs", ")", "{", "log", "info", "(", "\"", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "\"", ")", ";", "log", "info", "(", "\"", "*", "*", "*", "test", "\"", "+", "(", "test", "counter", "+", "+", ")", "+", "\"", "*", "*", "*", "\"", "+", "label", "+", "\"", ":", "\"", "+", "\"", "num", "dirs", "=", "\"", "+", "num", "dirs", ")", ";", "}" ]
[ "unregister", "the", "application", "master", "this", "must", "be", "called", "in", "the", "end" ]
[ "public", "void", "unregister", "application", "master", "(", "final", "application", "status", "app", "status", ",", "string", "app", "message", ",", "string", "app", "tracking", "url", ")", "throws", "yarn", "exception", ",", "i", "o", "exception", "{", "synchronized", "(", "unregister", "heartbeat", "lock", ")", "{", "keep", "running", "=", "false", ";", "client", "unregister", "application", "master", "(", "app", "status", ",", "app", "message", ",", "app", "tracking", "url", ")", ";", "}", "}" ]
[ "get", "the", "value", "stored", "under", "the", "specified", "{", "@", "code", "attribute", "name", "}", "as", "a", "boolean" ]
[ "public", "boolean", "get", "boolean", "(", "string", "attribute", "name", ")", "{", "return", "get", "required", "attribute", "(", "attribute", "name", ",", "boolean", "class", ")", ";", "}" ]
[ "test", "checksums", "for", "the", "logs", "and", "snapshots", "the", "reader", "should", "fail", "on", "reading", "a", "corrupt", "snapshot", "and", "a", "corrupt", "log", "file" ]
[ "public", "void", "test", "checksums", "(", ")", "throws", "exception", "{", "file", "tmp", "dir", "=", "client", "base", "create", "tmp", "dir", "(", ")", ";", "client", "base", "setup", "test", "env", "(", ")", ";", "zoo", "keeper", "server", "zks", "=", "new", "zoo", "keeper", "server", "(", "tmp", "dir", ",", "tmp", "dir", ",", "3000", ")", ";", "sync", "request", "processor", "set", "snap", "count", "(", "150", ")", ";", "final", "int", "port", "=", "integer", "parse", "int", "(", "hostport", "split", "(", "\"", ":", "\"", ")", "[", "1", "]", ")", ";", "server", "cnxn", "factory", "f", "=", "server", "cnxn", "factory", "create", "factory", "(", "port", ",", "-", "1", ")", ";", "f", "startup", "(", "zks", ")", ";", "log", "info", "(", "\"", "starting", "up", "the", "zookeeper", "server", "waiting", "\"", ")", ";", "assert", "true", "(", "client", "base", "wait", "for", "server", "up", "(", "hostport", ",", "connection", "timeout", ")", ",", "\"", "waiting", "for", "server", "being", "up", "\"", ")", ";", "zoo", "keeper", "zk", "=", "client", "base", "create", "z", "k", "client", "(", "hostport", ")", ";", "try", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "2000", ";", "i", "+", "+", ")", "{", "zk", "create", "(", "\"", "/", "crctest", "-", "\"", "+", "i", ",", "(", "\"", "/", "crctest", "-", "\"", "+", "i", ")", "get", "bytes", "(", ")", ",", "ids", "open", "acl", "unsafe", ",", "create", "mode", "persistent", ")", ";", "}", "}", "finally", "{", "zk", "close", "(", ")", ";", "}", "f", "shutdown", "(", ")", ";", "zks", "shutdown", "(", ")", ";", "assert", "true", "(", "client", "base", "wait", "for", "server", "down", "(", "hostport", ",", "client", "base", "connection", "timeout", ")", ",", "\"", "waiting", "for", "server", "down", "\"", ")", ";", "file", "version", "dir", "=", "new", "file", "(", "tmp", "dir", ",", "\"", "version", "-", "2", "\"", ")", ";", "file", "[", "]", "list", "=", "version", "dir", "list", "files", "(", ")", ";", "/", "/", "there", "should", "be", "only", "two", "files", "/", "/", "one", "the", "snapshot", "and", "the", "other", "log", "file", "file", "snap", "file", "=", "null", ";", "file", "log", "file", "=", "null", ";", "for", "(", "file", "file", ":", "list", ")", "{", "log", "info", "(", "\"", "file", "is", "{", "}", "\"", ",", "file", ")", ";", "if", "(", "file", "get", "name", "(", ")", "starts", "with", "(", "\"", "log", "\"", ")", ")", "{", "log", "file", "=", "file", ";", "corrupt", "file", "(", "log", "file", ")", ";", "}", "}", "file", "txn", "log", "flog", "=", "new", "file", "txn", "log", "(", "version", "dir", ")", ";", "txn", "iterator", "itr", "=", "flog", "read", "(", "1", ")", ";", "/", "/", "we", "will", "get", "a", "checksum", "failure", "try", "{", "while", "(", "itr", "next", "(", ")", ")", "{", "/", "/", "no", "op", "}", "fail", "(", ")", ";", "}", "catch", "(", "i", "o", "exception", "ie", ")", "{", "log", "warn", "(", "\"", "crc", "corruption", "\"", ",", "ie", ")", ";", "}", "itr", "close", "(", ")", ";", "/", "/", "find", "the", "last", "snapshot", "file", "snap", "snap", "=", "new", "file", "snap", "(", "version", "dir", ")", ";", "list", "<", "file", ">", "snap", "files", "=", "snap", "find", "n", "recent", "snapshots", "(", "2", ")", ";", "snap", "file", "=", "snap", "files", "get", "(", "0", ")", ";", "corrupt", "file", "(", "snap", "file", ")", ";", "boolean", "cfile", "=", "false", ";", "try", "{", "cfile", "=", "get", "check", "sum", "(", "snap", ",", "snap", "file", ")", ";", "}", "catch", "(", "i", "o", "exception", "ie", ")", "{", "/", "/", "the", "last", "snapshot", "seems", "incompelte", "/", "/", "corrupt", "the", "last", "but", "one", "/", "/", "and", "use", "that", "snap", "file", "=", "snap", "files", "get", "(", "1", ")", ";", "corrupt", "file", "(", "snap", "file", ")", ";", "cfile", "=", "get", "check", "sum", "(", "snap", ",", "snap", "file", ")", ";", "}", "assert", "true", "(", "cfile", ")", ";", "}" ]
[ "constructs", "a", "standard", "{", "@", "code", "annotation", "default", "}", "annotation" ]
[ "public", "static", "annotation", "make", "annotation", "default", "(", "annotation", "defaults", ")", "{", "annotation", "result", "=", "new", "annotation", "(", "annotation", "default", "type", ",", "system", ")", ";", "result", "put", "(", "new", "name", "value", "pair", "(", "value", "string", ",", "new", "cst", "annotation", "(", "defaults", ")", ")", ")", ";", "result", "set", "immutable", "(", ")", ";", "return", "result", ";", "}" ]
[ "create", "a", "new", "named", "value", "info", "based", "on", "the", "given", "named", "value", "info", "with", "sanitized", "values" ]
[ "private", "named", "value", "info", "update", "named", "value", "info", "(", "method", "parameter", "parameter", ",", "named", "value", "info", "info", ")", "{", "string", "name", "=", "info", "name", ";", "if", "(", "info", "name", "is", "empty", "(", ")", ")", "{", "name", "=", "parameter", "get", "parameter", "name", "(", ")", ";", "if", "(", "name", "=", "=", "null", ")", "{", "throw", "new", "illegal", "argument", "exception", "(", "\"", "name", "for", "argument", "of", "type", "[", "\"", "+", "parameter", "get", "nested", "parameter", "type", "(", ")", "get", "name", "(", ")", "+", "\"", "]", "not", "specified", ",", "and", "parameter", "name", "information", "not", "found", "in", "class", "file", "either", "\"", ")", ";", "}", "}", "string", "default", "value", "=", "(", "value", "constants", "default", "none", "equals", "(", "info", "default", "value", ")", "?", "null", ":", "info", "default", "value", ")", ";", "return", "new", "named", "value", "info", "(", "name", ",", "info", "required", ",", "default", "value", ")", ";", "}" ]
[ "returns", "all", "the", "registered", "{", "@", "link", "transient", "build", "action", "factory", "}", "s" ]
[ "public", "static", "extension", "list", "<", "transient", "build", "action", "factory", ">", "all", "(", ")", "{", "return", "extension", "list", "lookup", "(", "transient", "build", "action", "factory", "class", ")", ";", "}" ]
[ "register", "a", "listener", "that", "will", "be", "called", "when", "this", "model", "visibility", "state", "has", "changed", "the", "listener", "will", "contribute", "to", "this", "model", "'", "s", "hash", "code", "state", "per", "the", "{", "@", "link", "com", "airbnb", "epoxy", "epoxy", "attribute", "option", "#", "do", "not", "hash", "}", "rules" ]
[ "public", "model", "with", "super", "on", "visibility", "state", "changed", "(", "on", "model", "visibility", "state", "changed", "listener", "<", "model", "with", "super", ",", "object", ">", "listener", ")", "{", "on", "mutation", "(", ")", ";", "this", "on", "model", "visibility", "state", "changed", "listener", "epoxy", "generated", "model", "=", "listener", ";", "return", "this", ";", "}" ]
[ "parse", "meta", "data", "from", "string" ]
[ "public", "static", "map", "<", "string", ",", "string", ">", "parse", "metadata", "(", "string", "metadata", ")", "throws", "nacos", "exception", "{", "map", "<", "string", ",", "string", ">", "metadata", "map", "=", "new", "hash", "map", "<", ">", "(", "16", ")", ";", "if", "(", "string", "utils", "is", "blank", "(", "metadata", ")", ")", "{", "return", "metadata", "map", ";", "}", "try", "{", "metadata", "map", "=", "jackson", "utils", "to", "obj", "(", "metadata", ",", "new", "type", "reference", "<", "map", "<", "string", ",", "string", ">", ">", "(", ")", "{", "}", ")", ";", "}", "catch", "(", "exception", "e", ")", "{", "string", "[", "]", "datas", "=", "metadata", "split", "(", "\"", ",", "\"", ")", ";", "if", "(", "datas", "length", ">", "0", ")", "{", "for", "(", "string", "data", ":", "datas", ")", "{", "string", "[", "]", "kv", "=", "data", "split", "(", "\"", "=", "\"", ")", ";", "if", "(", "kv", "length", "!", "=", "2", ")", "{", "throw", "new", "nacos", "exception", "(", "nacos", "exception", "invalid", "param", ",", "\"", "metadata", "format", "incorrect", ":", "\"", "+", "metadata", ")", ";", "}", "metadata", "map", "put", "(", "kv", "[", "0", "]", ",", "kv", "[", "1", "]", ")", ";", "}", "}", "}", "return", "metadata", "map", ";", "}" ]
[ "get", "a", "list", "of", "configured", "instances", "of", "the", "given", "class", "specified", "by", "the", "given", "configuration", "key", "the", "configuration", "may", "specify", "either", "null", "or", "an", "empty", "string", "to", "indicate", "no", "configured", "instances", "in", "both", "cases", ",", "this", "method", "returns", "an", "empty", "list", "to", "indicate", "no", "configured", "instances" ]
[ "public", "<", "t", ">", "list", "<", "t", ">", "get", "configured", "instances", "(", "string", "key", ",", "class", "<", "t", ">", "t", ",", "map", "<", "string", ",", "object", ">", "config", "overrides", ")", "{", "return", "get", "configured", "instances", "(", "get", "list", "(", "key", ")", ",", "t", ",", "config", "overrides", ")", ";", "}" ]
[ "returns", "an", "immutable", "sorted", "multiset", "containing", "a", "single", "element" ]
[ "public", "static", "<", "e", "extends", "comparable", "<", "?", "super", "e", ">", ">", "immutable", "sorted", "multiset", "<", "e", ">", "of", "(", "e", "element", ")", "{", "regular", "immutable", "sorted", "set", "<", "e", ">", "element", "set", "=", "(", "regular", "immutable", "sorted", "set", "<", "e", ">", ")", "immutable", "sorted", "set", "of", "(", "element", ")", ";", "long", "[", "]", "cumulative", "counts", "=", "{", "0", ",", "1", "}", ";", "return", "new", "regular", "immutable", "sorted", "multiset", "<", "e", ">", "(", "element", "set", ",", "cumulative", "counts", ",", "0", ",", "1", ")", ";", "}" ]
[ "if", "set", ",", "will", "enable", "scrolling", "of", "the", "search", "request", "for", "the", "specified", "timeout" ]
[ "public", "search", "scroll", "request", "builder", "set", "scroll", "(", "time", "value", "keep", "alive", ")", "{", "request", "scroll", "(", "keep", "alive", ")", ";", "return", "this", ";", "}" ]
[ "return", "the", "new", "block" ]
[ "public", "block", "get", "new", "block", "(", ")", "{", "return", "recovery", "block", ";", "}" ]
[ "initializes", "the", "request", "intercepter", "pipeline", "for", "the", "specified", "user" ]
[ "private", "request", "interceptor", "chain", "wrapper", "initialize", "pipeline", "(", "string", "user", ")", "{", "synchronized", "(", "this", "user", "pipeline", "map", ")", "{", "if", "(", "this", "user", "pipeline", "map", "contains", "key", "(", "user", ")", ")", "{", "log", "info", "(", "\"", "request", "to", "start", "an", "already", "existing", "user", ":", "{", "}", "\"", "+", "\"", "was", "received", ",", "so", "ignoring", "\"", ",", "user", ")", ";", "return", "user", "pipeline", "map", "get", "(", "user", ")", ";", "}", "request", "interceptor", "chain", "wrapper", "chain", "wrapper", "=", "new", "request", "interceptor", "chain", "wrapper", "(", ")", ";", "try", "{", "/", "/", "we", "should", "init", "the", "pipeline", "instance", "after", "it", "is", "created", "and", "then", "/", "/", "add", "to", "the", "map", ",", "to", "ensure", "thread", "safe", "log", "info", "(", "\"", "initializing", "request", "processing", "pipeline", "for", "user", ":", "{", "}", "\"", ",", "user", ")", ";", "r", "e", "s", "t", "request", "interceptor", "interceptor", "chain", "=", "this", "create", "request", "interceptor", "chain", "(", ")", ";", "interceptor", "chain", "init", "(", "user", ")", ";", "chain", "wrapper", "init", "(", "interceptor", "chain", ")", ";", "}", "catch", "(", "exception", "e", ")", "{", "log", "error", "(", "\"", "init", "r", "e", "s", "t", "request", "interceptor", "error", "for", "user", ":", "\"", "+", "user", ",", "e", ")", ";", "throw", "e", ";", "}", "this", "user", "pipeline", "map", "put", "(", "user", ",", "chain", "wrapper", ")", ";", "return", "chain", "wrapper", ";", "}", "}" ]
[ "return", "the", "aggregate", "length", "of", "all", "child", "input", "splits", "currently", "added" ]
[ "public", "long", "get", "length", "(", ")", "throws", "i", "o", "exception", "{", "return", "totsize", ";", "}" ]
[ "returns", "true", "iff", "the", "file", "represented", "by", "{", "@", "code", "path", "}", "is", "readable" ]
[ "protected", "abstract", "boolean", "is", "readable", "(", "path", "path", ")", "throws", "i", "o", "exception", ";" ]
[ "tests", "that", "configurability", "settings", "are", "properly", "received" ]
[ "public", "void", "test", "configurability", "(", ")", "{", "assert", "that", "(", "attr", "(", "\"", "foo", "configurable", "\"", ",", "build", "type", "label", "list", ")", "legacy", "allow", "any", "file", "type", "(", ")", "build", "(", ")", "is", "configurable", "(", ")", ")", "is", "true", "(", ")", ";", "assert", "that", "(", "attr", "(", "\"", "foo", "nonconfigurable", "\"", ",", "build", "type", "label", "list", ")", "legacy", "allow", "any", "file", "type", "(", ")", "nonconfigurable", "(", "\"", "test", "\"", ")", "build", "(", ")", "is", "configurable", "(", ")", ")", "is", "false", "(", ")", ";", "}" ]
[ "callback", "for", "when", "{", "@", "link", "android", "app", "fragment", "#", "on", "start", "(", ")", "}", "}", "or", "{", "@", "link", "android", "app", "activity", "#", "on", "start", "(", ")", "}", "is", "called" ]
[ "void", "on", "start", "(", ")", ";" ]
[ "appends", "an", "optimized", "{", "@", "code", "string", "array", "}", "value", "to", "the", "stream", "as", "an", "optimized", "array", ",", "the", "{", "@", "code", "string", "}", "value", "type", "marker", "and", "element", "count", "are", "encoded", "once", "at", "the", "array", "marker", "instead", "of", "repeating", "the", "type", "marker", "for", "each", "element" ]
[ "public", "u", "b", "json", "writer", "value", "(", "string", "[", "]", "values", ")", "throws", "i", "o", "exception", "{", "array", "(", ")", ";", "out", "write", "byte", "(", "'", "$", "'", ")", ";", "out", "write", "byte", "(", "'", "s", "'", ")", ";", "out", "write", "byte", "(", "'", "#", "'", ")", ";", "value", "(", "values", "length", ")", ";", "for", "(", "int", "i", "=", "0", ",", "n", "=", "values", "length", ";", "i", "<", "n", ";", "i", "+", "+", ")", "{", "byte", "[", "]", "bytes", "=", "values", "[", "i", "]", "get", "bytes", "(", "\"", "utf", "-", "8", "\"", ")", ";", "if", "(", "bytes", "length", "<", "=", "byte", "max", "value", ")", "{", "out", "write", "byte", "(", "'", "i", "'", ")", ";", "out", "write", "byte", "(", "bytes", "length", ")", ";", "}", "else", "if", "(", "bytes", "length", "<", "=", "short", "max", "value", ")", "{", "out", "write", "byte", "(", "'", "i", "'", ")", ";", "out", "write", "short", "(", "bytes", "length", ")", ";", "}", "else", "{", "out", "write", "byte", "(", "'", "l", "'", ")", ";", "out", "write", "int", "(", "bytes", "length", ")", ";", "}", "out", "write", "(", "bytes", ")", ";", "}", "pop", "(", "true", ")", ";", "return", "this", ";", "}" ]
[ "updates", "a", "pet", "in", "the", "store", "with", "form", "data" ]
[ "public", "void", "update", "pet", "with", "form", "(", "long", "pet", "id", ",", "string", "name", ",", "string", "status", ",", "api", "client", "auth", "info", "auth", "info", ",", "handler", "<", "async", "result", "<", "void", ">", ">", "result", "handler", ")", "{", "delegate", "update", "pet", "with", "form", "(", "pet", "id", ",", "name", ",", "status", ",", "auth", "info", ",", "result", "handler", ")", ";", "}" ]
[ "returns", "the", "natural", "logarithm", "of", "\"", "x", "\"" ]
[ "public", "static", "double", "log", "(", "double", "x", ")", "{", "return", "math", "log", "(", "x", ")", ";", "}" ]
[ "returns", "{", "@", "code", "true", "}", "if", "{", "@", "code", "spawn", "}", "may", "be", "executed", "remotely" ]
[ "public", "static", "boolean", "may", "be", "executed", "remotely", "(", "spawn", "spawn", ")", "{", "return", "!", "spawn", "get", "execution", "info", "(", ")", "contains", "key", "(", "execution", "requirements", "local", ")", "&", "&", "!", "spawn", "get", "execution", "info", "(", ")", "contains", "key", "(", "execution", "requirements", "no", "remote", ")", "&", "&", "!", "spawn", "get", "execution", "info", "(", ")", "contains", "key", "(", "execution", "requirements", "no", "remote", "exec", ")", ";", "}" ]
[ "returns", "the", "{", "@", "link", "#", "sum", "}", "as", "an", "{", "@", "code", "int", "}", "after", "a", "narrowing", "primitive", "conversion" ]
[ "public", "int", "int", "value", "(", ")", "{", "return", "(", "int", ")", "sum", "(", ")", ";", "}" ]
[ "set", "the", "old", "bookmark", "manager", "which", "handles", "read", "-", "only", "access", "to", "bookmarks", "stored", "within", "property", "maps", "the", "old", "bookmark", "manager", "must", "be", "set", "prior", "to", "invoking", "any", "other", "method", ";" ]
[ "void", "set", "old", "bookmark", "manager", "(", "old", "bookmark", "manager", "old", "mgr", ",", "address", "map", "addr", "map", ",", "task", "monitor", "monitor", ")", "throws", "i", "o", "exception", "{", "/", "/", "convert", "old", "bookmarks", "to", "new", "schema", "using", "temporary", "database", "/", "/", "this", "is", "the", "easiest", "way", "to", "index", "into", "the", "old", "bookmarks", "tmp", "handle", "=", "new", "d", "b", "handle", "(", ")", ";", "try", "{", "conversion", "adapter", "=", "bookmark", "d", "b", "adapter", "get", "adapter", "(", "tmp", "handle", ",", "d", "b", "constants", "create", ",", "new", "int", "[", "0", "]", ",", "addr", "map", ",", "monitor", ")", ";", "}", "catch", "(", "version", "exception", "e", ")", "{", "throw", "new", "assert", "exception", "(", ")", ";", "}", "d", "b", "record", "[", "]", "old", "types", "=", "old", "mgr", "get", "type", "records", "(", ")", ";", "if", "(", "old", "types", "length", "=", "=", "0", ")", "{", "return", ";", "}", "monitor", "set", "message", "(", "\"", "translating", "old", "bookmarks", "\"", ")", ";", "int", "max", "=", "0", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "old", "types", "length", ";", "i", "+", "+", ")", "{", "max", "+", "=", "old", "mgr", "get", "bookmark", "count", "(", "old", "types", "[", "i", "]", "get", "string", "(", "bookmark", "type", "d", "b", "adapter", "type", "name", "col", ")", ")", ";", "}", "monitor", "initialize", "(", "max", ")", ";", "int", "cnt", "=", "0", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "old", "types", "length", ";", "i", "+", "+", ")", "{", "string", "type", "=", "old", "types", "[", "i", "]", "get", "string", "(", "bookmark", "type", "d", "b", "adapter", "type", "name", "col", ")", ";", "int", "type", "id", "=", "(", "int", ")", "old", "types", "[", "i", "]", "get", "key", "(", ")", ";", "conversion", "adapter", "add", "type", "(", "type", "id", ")", ";", "address", "iterator", "iter", "=", "old", "mgr", "get", "bookmark", "addresses", "(", "type", ")", ";", "while", "(", "iter", "has", "next", "(", ")", ")", "{", "if", "(", "monitor", "is", "cancelled", "(", ")", ")", "{", "throw", "new", "i", "o", "exception", "(", "\"", "upgrade", "cancelled", "\"", ")", ";", "}", "address", "addr", "=", "iter", "next", "(", ")", ";", "old", "bookmark", "bm", "=", "old", "mgr", "get", "bookmark", "(", "addr", ",", "type", ")", ";", "conversion", "adapter", "create", "bookmark", "(", "type", "id", ",", "bm", "get", "category", "(", ")", ",", "addr", "map", "get", "key", "(", "addr", ",", "true", ")", ",", "bm", "get", "comment", "(", ")", ")", ";", "monitor", "set", "progress", "(", "+", "+", "cnt", ")", ";", "}", "}", "}" ]
[ "handles", "a", "runtimeloading", "error", "in", "{", "@", "link", "#", "update", "(", ")", "}", "by", "optionally", "invoking", "the", "{", "@", "link", "asset", "error", "listener", "}" ]
[ "private", "void", "handle", "task", "error", "(", "throwable", "t", ")", "{", "log", "error", "(", "\"", "error", "loading", "asset", "\"", ",", "t", ")", ";", "if", "(", "tasks", "is", "empty", "(", ")", ")", "throw", "new", "gdx", "runtime", "exception", "(", "t", ")", ";", "/", "/", "pop", "the", "faulty", "task", "from", "the", "stack", "asset", "loading", "task", "task", "=", "tasks", "pop", "(", ")", ";", "asset", "descriptor", "asset", "desc", "=", "task", "asset", "desc", ";", "/", "/", "remove", "all", "dependencies", "if", "(", "task", "dependencies", "loaded", "&", "&", "task", "dependencies", "!", "=", "null", ")", "{", "for", "(", "asset", "descriptor", "desc", ":", "task", "dependencies", ")", "unload", "(", "desc", "file", "name", ")", ";", "}", "/", "/", "clear", "the", "rest", "of", "the", "stack", "tasks", "clear", "(", ")", ";", "/", "/", "inform", "the", "listener", "that", "something", "bad", "happened", "if", "(", "listener", "!", "=", "null", ")", "listener", "error", "(", "asset", "desc", ",", "t", ")", ";", "else", "throw", "new", "gdx", "runtime", "exception", "(", "t", ")", ";", "}" ]
[ "executes", "the", "given", "action", "that", "can", "throw", "a", "checked", "exception", "with", "the", "job", "classloader", "set", "as", "the", "configuration", "classloader", "as", "well", "as", "the", "thread", "context", "class", "loader", "if", "the", "job", "classloader", "is", "enabled", "after", "the", "call", ",", "the", "original", "classloader", "is", "restored", "if", "the", "job", "classloader", "is", "enabled", "and", "the", "code", "needs", "to", "load", "user", "-", "supplied", "classes", "via", "configuration", "or", "thread", "context", "classloader", ",", "this", "method", "should", "be", "used", "in", "order", "to", "load", "them" ]
[ "<", "t", ">", "t", "call", "with", "job", "class", "loader", "(", "configuration", "conf", ",", "exception", "action", "<", "t", ">", "action", ")", "throws", "i", "o", "exception", "{", "/", "/", "if", "the", "job", "classloader", "is", "enabled", ",", "we", "may", "need", "it", "to", "load", "the", "(", "custom", ")", "/", "/", "classes", ";", "we", "make", "the", "job", "classloader", "available", "and", "unset", "it", "once", "it", "is", "/", "/", "done", "class", "loader", "current", "class", "loader", "=", "conf", "get", "class", "loader", "(", ")", ";", "boolean", "set", "job", "class", "loader", "=", "job", "class", "loader", "!", "=", "null", "&", "&", "current", "class", "loader", "!", "=", "job", "class", "loader", ";", "if", "(", "set", "job", "class", "loader", ")", "{", "m", "r", "apps", "set", "class", "loader", "(", "job", "class", "loader", ",", "conf", ")", ";", "}", "try", "{", "return", "action", "call", "(", "conf", ")", ";", "}", "catch", "(", "i", "o", "exception", "e", ")", "{", "throw", "e", ";", "}", "catch", "(", "yarn", "runtime", "exception", "e", ")", "{", "throw", "e", ";", "}", "catch", "(", "exception", "e", ")", "{", "/", "/", "wrap", "it", "with", "a", "yarn", "runtime", "exception", "throw", "new", "yarn", "runtime", "exception", "(", "e", ")", ";", "}", "finally", "{", "if", "(", "set", "job", "class", "loader", ")", "{", "/", "/", "restore", "the", "original", "classloader", "m", "r", "apps", "set", "class", "loader", "(", "current", "class", "loader", ",", "conf", ")", ";", "}", "}", "}" ]
[ "resolve", "the", "given", "annotation", "-", "specified", "value", ",", "potentially", "containing", "placeholders", "and", "expressions" ]
[ "private", "object", "resolve", "embedded", "values", "and", "expressions", "(", "string", "value", ")", "{", "if", "(", "this", "configurable", "bean", "factory", "=", "=", "null", "|", "|", "this", "expression", "context", "=", "=", "null", ")", "{", "return", "value", ";", "}", "string", "placeholders", "resolved", "=", "this", "configurable", "bean", "factory", "resolve", "embedded", "value", "(", "value", ")", ";", "bean", "expression", "resolver", "expr", "resolver", "=", "this", "configurable", "bean", "factory", "get", "bean", "expression", "resolver", "(", ")", ";", "if", "(", "expr", "resolver", "=", "=", "null", ")", "{", "return", "value", ";", "}", "return", "expr", "resolver", "evaluate", "(", "placeholders", "resolved", ",", "this", "expression", "context", ")", ";", "}" ]
[ "removes", "all", "temporary", "files" ]
[ "public", "void", "close", "(", ")", "throws", "exception", "{", "file", "channel", "manager", "close", "(", ")", ";", "}", "/", "/", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "/", "/", "channel", "instantiations", "/", "/", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-" ]
[ "copies", "the", "information", "from", "the", "given", "map", "of", "state", "updates", "into", "the", "map", "of", "pending", "state", "updates" ]
[ "private", "void", "copy", "state", "updates", "map", "(", "@", "nullable", "map", "<", "string", ",", "list", "<", "state", "update", ">", ">", "pending", "state", "updates", ",", "@", "nullable", "map", "<", "string", ",", "list", "<", "state", "update", ">", ">", "pending", "lazy", "state", "updates", ",", "@", "nullable", "map", "<", "string", ",", "list", "<", "state", "update", ">", ">", "applied", "state", "updates", ")", "{", "if", "(", "(", "pending", "state", "updates", "=", "=", "null", "|", "|", "pending", "state", "updates", "is", "empty", "(", ")", ")", "&", "&", "(", "applied", "state", "updates", "=", "=", "null", "|", "|", "applied", "state", "updates", "is", "empty", "(", ")", ")", ")", "{", "return", ";", "}", "maybe", "init", "state", "updates", "map", "(", ")", ";", "synchronized", "(", "this", ")", "{", "if", "(", "pending", "state", "updates", "!", "=", "null", ")", "{", "for", "(", "string", "key", ":", "pending", "state", "updates", "key", "set", "(", ")", ")", "{", "m", "pending", "state", "updates", "put", "(", "key", ",", "create", "state", "updates", "list", "(", "pending", "state", "updates", "get", "(", "key", ")", ")", ")", ";", "}", "}", "copy", "pending", "lazy", "state", "updates", "(", "pending", "lazy", "state", "updates", ")", ";", "if", "(", "applied", "state", "updates", "!", "=", "null", ")", "{", "for", "(", "map", "entry", "<", "string", ",", "list", "<", "state", "update", ">", ">", "applied", "state", "update", ":", "applied", "state", "updates", "entry", "set", "(", ")", ")", "{", "m", "applied", "state", "updates", "put", "(", "applied", "state", "update", "get", "key", "(", ")", ",", "create", "state", "updates", "list", "(", "applied", "state", "update", "get", "value", "(", ")", ")", ")", ";", "}", "}", "}", "}" ]
[ "create", "state", "accept", "passwordless" ]
[ "protected", "void", "create", "state", "accept", "passwordless", "(", "final", "flow", "flow", ")", "{", "val", "accept", "action", "=", "create", "evaluate", "action", "(", "\"", "accept", "passwordless", "authentication", "action", "\"", ")", ";", "val", "accept", "state", "=", "create", "action", "state", "(", "flow", ",", "state", "id", "accept", "passwordless", "authentication", ",", "accept", "action", ")", ";", "create", "transition", "for", "state", "(", "accept", "state", ",", "cas", "webflow", "constants", "transition", "id", "authentication", "failure", ",", "state", "id", "passwordless", "display", ")", ";", "val", "submission", "=", "get", "state", "(", "flow", ",", "cas", "webflow", "constants", "state", "id", "real", "submit", ",", "action", "state", "class", ")", ";", "val", "transition", "=", "(", "transition", ")", "submission", "get", "transition", "(", "cas", "webflow", "constants", "transition", "id", "success", ")", ";", "val", "target", "state", "id", "=", "transition", "get", "target", "state", "id", "(", ")", ";", "create", "transition", "for", "state", "(", "accept", "state", ",", "cas", "webflow", "constants", "transition", "id", "success", ",", "target", "state", "id", ")", ";", "}" ]
[ "this", "method", "implements", "the", "new", "interface", "by", "calling", "the", "old", "method", "note", "that", "the", "input", "types", "are", "different", "between", "the", "new", "and", "old", "apis", "and", "this", "is", "a", "bridge", "between", "the", "two" ]
[ "public", "final", "void", "setup", "job", "(", "org", "apache", "hadoop", "mapreduce", "job", "context", "job", "context", ")", "throws", "i", "o", "exception", "{", "setup", "job", "(", "(", "job", "context", ")", "job", "context", ")", ";", "}" ]
[ "calculates", "the", "minimum", "value", "on", "a", "given", "column", "the", "value", "is", "returned", "with", "the", "same", "data", "type", "of", "the", "column", "lite", "pal", "min", "(", "&", "quot", ";", "person", "&", "quot", ";", ",", "&", "quot", ";", "age", "&", "quot", ";", ",", "int", "class", ")", ";", "you", "can", "also", "specify", "a", "where", "clause", "when", "calculating", "lite", "pal", "where", "(", "&", "quot", ";", "age", "&", "gt", ";", "?", "&", "quot", ";", ",", "&", "quot", ";", "15", "&", "quot", ";", ")", "min", "(", "&", "quot", ";", "person", "&", "quot", ";", ",", "&", "quot", ";", "age", "&", "quot", ";", ",", "integer", "type", ")", ";" ]
[ "public", "static", "<", "t", ">", "t", "min", "(", "string", "table", "name", ",", "string", "column", "name", ",", "class", "<", "t", ">", "column", "type", ")", "{", "synchronized", "(", "lite", "pal", "support", "class", ")", "{", "fluent", "query", "c", "query", "=", "new", "fluent", "query", "(", ")", ";", "return", "c", "query", "min", "(", "table", "name", ",", "column", "name", ",", "column", "type", ")", ";", "}", "}" ]
[ "set", "the", "so", "reuseport", "option", "on", "the", "underlying", "channel", "this", "will", "allow", "to", "bind", "multiple", "{", "@", "link", "epoll", "socket", "channel", "}", "s", "to", "the", "same", "port", "and", "so", "accept", "connections", "with", "multiple", "threads", "be", "aware", "this", "method", "needs", "be", "called", "before", "{", "@", "link", "epoll", "socket", "channel", "#", "bind", "(", "java", "net", "socket", "address", ")", "}", "to", "have", "any", "affect" ]
[ "public", "epoll", "server", "socket", "channel", "config", "set", "reuse", "port", "(", "boolean", "reuse", "port", ")", "{", "try", "{", "(", "(", "epoll", "server", "socket", "channel", ")", "channel", ")", "socket", "set", "reuse", "port", "(", "reuse", "port", ")", ";", "return", "this", ";", "}", "catch", "(", "i", "o", "exception", "e", ")", "{", "throw", "new", "channel", "exception", "(", "e", ")", ";", "}", "}" ]
[ "the", "default", "implementation", "returns", "the", "body", "that", "was", "passed", "in" ]
[ "public", "object", "after", "body", "read", "(", "object", "body", ",", "http", "input", "message", "input", "message", ",", "method", "parameter", "parameter", ",", "type", "target", "type", ",", "class", "<", "?", "extends", "http", "message", "converter", "<", "?", ">", ">", "converter", "type", ")", "{", "return", "body", ";", "}" ]
[ "read", "on", "char", "like", "data", "input", "stream", "read", "char", "except", "little", "endian" ]
[ "public", "final", "char", "read", "char", "(", ")", "throws", "i", "o", "exception", "{", "dis", "read", "fully", "(", "work", ",", "0", ",", "2", ")", ";", "return", "(", "char", ")", "(", "(", "work", "[", "1", "]", "&", "0xff", ")", "<", "<", "8", "|", "(", "work", "[", "0", "]", "&", "0xff", ")", ")", ";", "}" ]