docstring_tokens
list
code_tokens
list
[ "any", "@", "string", "reference", "in", "a", "<", "provider", ">", "value", "in", "android", "manifest", "xml", "will", "break", "on", "build", ",", "thus", "preventing", "the", "application", "from", "installing", "this", "is", "from", "a", "bugerror", "in", "aosp", "where", "public", "resources", "cannot", "be", "part", "of", "an", "authorities", "attribute", "within", "a", "<", "provider", ">", "tag", "this", "finds", "any", "reference", "and", "replaces", "it", "with", "the", "literal", "value", "found", "in", "the", "resvaluesstrings", "xml", "file" ]
[ "public", "static", "void", "fixing", "public", "attrs", "in", "provider", "attributes", "(", "file", "file", ")", "throws", "androlib", "exception", "{", "boolean", "saved", "=", "false", ";", "if", "(", "file", "exists", "(", ")", ")", "{", "try", "{", "document", "doc", "=", "load", "document", "(", "file", ")", ";", "x", "path", "x", "path", "=", "x", "path", "factory", "new", "instance", "(", ")", "new", "x", "path", "(", ")", ";", "x", "path", "expression", "expression", "=", "x", "path", "compile", "(", "\"", "/", "manifest", "/", "application", "/", "provider", "\"", ")", ";", "object", "result", "=", "expression", "evaluate", "(", "doc", ",", "x", "path", "constants", "nodeset", ")", ";", "node", "list", "nodes", "=", "(", "node", "list", ")", "result", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "nodes", "get", "length", "(", ")", ";", "i", "+", "+", ")", "{", "node", "node", "=", "nodes", "item", "(", "i", ")", ";", "named", "node", "map", "attrs", "=", "node", "get", "attributes", "(", ")", ";", "if", "(", "attrs", "!", "=", "null", ")", "{", "node", "provider", "=", "attrs", "get", "named", "item", "(", "\"", "android", ":", "authorities", "\"", ")", ";", "if", "(", "provider", "!", "=", "null", ")", "{", "saved", "=", "is", "saved", "(", "file", ",", "saved", ",", "provider", ")", ";", "}", "}", "}", "/", "/", "android", ":", "scheme", "x", "path", "=", "x", "path", "factory", "new", "instance", "(", ")", "new", "x", "path", "(", ")", ";", "expression", "=", "x", "path", "compile", "(", "\"", "/", "manifest", "/", "application", "/", "activity", "/", "intent", "-", "filter", "/", "data", "\"", ")", ";", "result", "=", "expression", "evaluate", "(", "doc", ",", "x", "path", "constants", "nodeset", ")", ";", "nodes", "=", "(", "node", "list", ")", "result", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "nodes", "get", "length", "(", ")", ";", "i", "+", "+", ")", "{", "node", "node", "=", "nodes", "item", "(", "i", ")", ";", "named", "node", "map", "attrs", "=", "node", "get", "attributes", "(", ")", ";", "if", "(", "attrs", "!", "=", "null", ")", "{", "node", "provider", "=", "attrs", "get", "named", "item", "(", "\"", "android", ":", "scheme", "\"", ")", ";", "if", "(", "provider", "!", "=", "null", ")", "{", "saved", "=", "is", "saved", "(", "file", ",", "saved", ",", "provider", ")", ";", "}", "}", "}", "if", "(", "saved", ")", "{", "save", "document", "(", "file", ",", "doc", ")", ";", "}", "}", "catch", "(", "s", "a", "x", "exception", "|", "parser", "configuration", "exception", "|", "i", "o", "exception", "|", "x", "path", "expression", "exception", "|", "transformer", "exception", "ignored", ")", "{", "}", "}", "}" ]
[ "parse", "token", "string" ]
[ "default", "string", "parse", "token", "(", "final", "string", "token", ")", "{", "return", "null", ";", "}" ]
[ "multiple", "certificates", "generated", "from", "the", "same", "keypair", "have", "the", "same", "pin" ]
[ "@", "test", "public", "void", "same", "keypair", "same", "pin", "(", ")", "throws", "exception", "{", "held", "certificate", "held", "certificate", "a", "2", "=", "new", "held", "certificate", "builder", "(", ")", "key", "pair", "(", "cert", "a", "1", "key", "pair", "(", ")", ")", "serial", "number", "(", "101l", ")", "build", "(", ")", ";", "string", "keypair", "a", "certificate", "2", "pin", "=", "certificate", "pinner", "pin", "(", "held", "certificate", "a", "2", "certificate", "(", ")", ")", ";", "held", "certificate", "held", "certificate", "b", "2", "=", "new", "held", "certificate", "builder", "(", ")", "key", "pair", "(", "cert", "b", "1", "key", "pair", "(", ")", ")", "serial", "number", "(", "201l", ")", "build", "(", ")", ";", "string", "keypair", "b", "certificate", "2", "pin", "=", "certificate", "pinner", "pin", "(", "held", "certificate", "b", "2", "certificate", "(", ")", ")", ";", "assert", "that", "(", "keypair", "a", "certificate", "2", "pin", ")", "is", "equal", "to", "(", "cert", "a", "1", "sha", "2", "5", "6", "pin", ")", ";", "assert", "that", "(", "keypair", "b", "certificate", "2", "pin", ")", "is", "equal", "to", "(", "cert", "b", "1", "sha", "2", "5", "6", "pin", ")", ";", "assert", "that", "(", "cert", "b", "1", "sha", "2", "5", "6", "pin", ")", "is", "not", "equal", "to", "(", "cert", "a", "1", "sha", "2", "5", "6", "pin", ")", ";", "}" ]
[ "delete", "storeorder", "{", "order", "id", "}", ":", "delete", "purchase", "order", "by", "id", "for", "valid", "response", "try", "integer", "i", "ds", "with", "value", "&", "lt", ";", "1000", "anything", "above", "1000", "or", "nonintegers", "will", "generate", "api", "errors" ]
[ "public", "response", "entity", "<", "void", ">", "delete", "order", "(", "@", "api", "param", "(", "value", "=", "\"", "id", "of", "the", "order", "that", "needs", "to", "be", "deleted", "\"", ",", "required", "=", "true", ")", "@", "path", "variable", "(", "\"", "order", "id", "\"", ")", "string", "order", "id", ")", "{", "return", "new", "response", "entity", "<", ">", "(", "http", "status", "not", "implemented", ")", ";", "}" ]
[ "this", "method", "is", "used", "to", "get", "association", "models", "depends", "on", "the", "given", "class", "name", "list" ]
[ "protected", "collection", "<", "associations", "model", ">", "get", "associations", "(", "list", "<", "string", ">", "class", "names", ")", "{", "if", "(", "m", "association", "models", "=", "=", "null", ")", "{", "m", "association", "models", "=", "new", "hash", "set", "<", ">", "(", ")", ";", "}", "if", "(", "m", "generic", "models", "=", "=", "null", ")", "{", "m", "generic", "models", "=", "new", "hash", "set", "<", ">", "(", ")", ";", "}", "m", "association", "models", "clear", "(", ")", ";", "m", "generic", "models", "clear", "(", ")", ";", "for", "(", "string", "class", "name", ":", "class", "names", ")", "{", "analyze", "class", "fields", "(", "class", "name", ",", "get", "associations", "action", ")", ";", "}", "return", "m", "association", "models", ";", "}" ]
[ "returns", "the", "minimum", "value", "of", "type", "{", "@", "code", "c", "}", ",", "if", "it", "has", "one", "the", "minimum", "value", "is", "the", "unique", "value", "for", "which", "{", "@", "link", "comparable", "#", "compare", "to", "(", "object", ")", "}", "never", "returns", "a", "positive", "value", "for", "any", "input", "of", "type", "{", "@", "code", "c", "}", "the", "default", "implementation", "throws", "{", "@", "code", "no", "such", "element", "exception", "}" ]
[ "public", "c", "min", "value", "(", ")", "{", "throw", "new", "no", "such", "element", "exception", "(", ")", ";", "}" ]
[ "tests", "to", "check", "bytes", "uploaded", "successfully", "in", "{", "@", "link", "abfs", "output", "stream", "}" ]
[ "public", "void", "test", "abfs", "output", "stream", "uploading", "bytes", "(", ")", "throws", "i", "o", "exception", "{", "describe", "(", "\"", "testing", "bytes", "uploaded", "successfully", "by", "abfs", "output", "steam", "\"", ")", ";", "final", "azure", "blob", "file", "system", "fs", "=", "get", "file", "system", "(", ")", ";", "path", "upload", "bytes", "file", "path", "=", "path", "(", "get", "method", "name", "(", ")", ")", ";", "string", "test", "bytes", "to", "upload", "=", "\"", "bytes", "\"", ";", "try", "(", "abfs", "output", "stream", "out", "for", "some", "bytes", "=", "create", "abfs", "output", "stream", "with", "flush", "enabled", "(", "fs", ",", "upload", "bytes", "file", "path", ")", ")", "{", "abfs", "output", "stream", "statistics", "impl", "abfs", "output", "stream", "statistics", "for", "upload", "bytes", "=", "get", "abfs", "output", "stream", "statistics", "(", "out", "for", "some", "bytes", ")", ";", "/", "/", "test", "for", "zero", "bytes", "to", "upload", "assert", "equals", "(", "\"", "mismatch", "in", "bytes", "to", "upload", "\"", ",", "0", ",", "abfs", "output", "stream", "statistics", "for", "upload", "bytes", "get", "bytes", "to", "upload", "(", ")", ")", ";", "out", "for", "some", "bytes", "write", "(", "test", "bytes", "to", "upload", "get", "bytes", "(", ")", ")", ";", "out", "for", "some", "bytes", "flush", "(", ")", ";", "abfs", "output", "stream", "statistics", "for", "upload", "bytes", "=", "get", "abfs", "output", "stream", "statistics", "(", "out", "for", "some", "bytes", ")", ";", "/", "/", "test", "for", "bytes", "to", "upload", "assert", "equals", "(", "\"", "mismatch", "in", "bytes", "to", "upload", "\"", ",", "test", "bytes", "to", "upload", "get", "bytes", "(", ")", "length", ",", "abfs", "output", "stream", "statistics", "for", "upload", "bytes", "get", "bytes", "to", "upload", "(", ")", ")", ";", "/", "/", "test", "for", "successful", "bytes", "uploaded", "assert", "equals", "(", "\"", "mismatch", "in", "successful", "bytes", "uploaded", "\"", ",", "test", "bytes", "to", "upload", "get", "bytes", "(", ")", "length", ",", "abfs", "output", "stream", "statistics", "for", "upload", "bytes", "get", "bytes", "upload", "successful", "(", ")", ")", ";", "}", "try", "(", "abfs", "output", "stream", "out", "for", "large", "bytes", "=", "create", "abfs", "output", "stream", "with", "flush", "enabled", "(", "fs", ",", "upload", "bytes", "file", "path", ")", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "operations", ";", "i", "+", "+", ")", "{", "out", "for", "large", "bytes", "write", "(", "test", "bytes", "to", "upload", "get", "bytes", "(", ")", ")", ";", "}", "out", "for", "large", "bytes", "flush", "(", ")", ";", "abfs", "output", "stream", "statistics", "impl", "abfs", "output", "stream", "statistics", "=", "get", "abfs", "output", "stream", "statistics", "(", "out", "for", "large", "bytes", ")", ";", "/", "/", "test", "for", "bytes", "to", "upload", "assert", "equals", "(", "\"", "mismatch", "in", "bytes", "to", "upload", "\"", ",", "operations", "*", "(", "test", "bytes", "to", "upload", "get", "bytes", "(", ")", "length", ")", ",", "abfs", "output", "stream", "statistics", "get", "bytes", "to", "upload", "(", ")", ")", ";", "/", "/", "test", "for", "successful", "bytes", "uploaded", "assert", "equals", "(", "\"", "mismatch", "in", "successful", "bytes", "uploaded", "\"", ",", "operations", "*", "(", "test", "bytes", "to", "upload", "get", "bytes", "(", ")", "length", ")", ",", "abfs", "output", "stream", "statistics", "get", "bytes", "upload", "successful", "(", ")", ")", ";", "}", "}" ]
[ "returns", "type", "of", "exception", "that", "this", "filter", "will", "handle" ]
[ "public", "class", "<", "?", "extends", "t", ">", "exception", "class", "(", ")", "{", "return", "this", "exception", "class", ";", "}" ]
[ "{", "@", "inherit", "doc", "}" ]
[ "public", "boolean", "is", "merge", "enabled", "(", ")", "{", "return", "true", ";", "}" ]
[ "post", "pet", ":", "add", "a", "new", "pet", "to", "the", "store" ]
[ "default", "response", "entity", "<", "void", ">", "add", "pet", "(", "@", "api", "param", "(", "value", "=", "\"", "pet", "object", "that", "needs", "to", "be", "added", "to", "the", "store", "\"", ",", "required", "=", "true", ")", "@", "valid", "@", "request", "body", "pet", "body", ")", "{", "return", "new", "response", "entity", "<", ">", "(", "http", "status", "not", "implemented", ")", ";", "}" ]
[ "build", "the", "response", "entity", "with", "no", "body", "the", "response", "will", "be", "committed", "when", "the", "given", "{", "@", "code", "void", "publisher", "}", "completes" ]
[ "mono", "<", "server", "response", ">", "build", "(", "publisher", "<", "void", ">", "void", "publisher", ")", ";" ]
[ "central", "execution", "method", "all", "un", "-", "named", "parameter", "execution", "goes", "through", "this", "method" ]
[ "public", "list", "<", "t", ">", "execute", "(", "@", "nullable", "object", "[", "]", "params", ",", "@", "nullable", "map", "<", "?", ",", "?", ">", "context", ")", "throws", "data", "access", "exception", "{", "validate", "parameters", "(", "params", ")", ";", "row", "mapper", "<", "t", ">", "row", "mapper", "=", "new", "row", "mapper", "(", "params", ",", "context", ")", ";", "return", "get", "jdbc", "template", "(", ")", "query", "(", "new", "prepared", "statement", "creator", "(", "params", ")", ",", "row", "mapper", ")", ";", "}" ]
[ "registers", "a", "{", "@", "link", "scalar", "function", "}", "under", "a", "unique", "name", "replaces", "already", "existing", "user", "-", "defined", "functions", "under", "this", "name" ]
[ "void", "register", "function", "(", "string", "name", ",", "scalar", "function", "function", ")", ";" ]
[ "creates", "an", "instance", "of", "{", "@", "link", "decimal", "data", "}", "from", "a", "{", "@", "link", "big", "decimal", "}", "and", "the", "given", "precision", "and", "scale", "the", "returned", "decimal", "value", "may", "be", "rounded", "to", "have", "the", "desired", "scale", "the", "precision", "will", "be", "checked", "if", "the", "precision", "overflows", ",", "null", "will", "be", "returned" ]
[ "public", "static", "@", "nullable", "decimal", "data", "from", "big", "decimal", "(", "big", "decimal", "bd", ",", "int", "precision", ",", "int", "scale", ")", "{", "bd", "=", "bd", "set", "scale", "(", "scale", ",", "rounding", "mode", "half", "up", ")", ";", "if", "(", "bd", "precision", "(", ")", ">", "precision", ")", "{", "return", "null", ";", "}", "long", "long", "val", "=", "-", "1", ";", "if", "(", "precision", "<", "=", "max", "compact", "precision", ")", "{", "long", "val", "=", "bd", "move", "point", "right", "(", "scale", ")", "long", "value", "exact", "(", ")", ";", "}", "return", "new", "decimal", "data", "(", "precision", ",", "scale", ",", "long", "val", ",", "bd", ")", ";", "}" ]
[ "get", "prefix", "ns", "number" ]
[ "public", "big", "decimal", "get", "prefix", "ns", "number", "(", ")", "{", "return", "prefix", "ns", "number", ";", "}" ]
[ "empty", "visibility", "this", "is", "useful", "as", "a", "sentinel", "to", "indicate", "that", "a", "package", "specification", "could", "be", "parsed", "into", "a", "{", "@", "link", "query", "visibility", "}", "same", "-", "package", "visibility", "is", "handled", "separately", "by", "{", "@", "link", "visible", "function", "}" ]
[ "public", "static", "<", "t", ">", "query", "visibility", "<", "t", ">", "nothing", "(", ")", "{", "return", "(", "query", "visibility", "<", "t", ">", ")", "(", "object", ")", "nothing", ";", "}" ]
[ "add", "a", "new", "proxied", "interface" ]
[ "public", "void", "add", "interface", "(", "class", "<", "?", ">", "intf", ")", "{", "assert", "not", "null", "(", "intf", ",", "\"", "interface", "must", "not", "be", "null", "\"", ")", ";", "if", "(", "!", "intf", "is", "interface", "(", ")", ")", "{", "throw", "new", "illegal", "argument", "exception", "(", "\"", "[", "\"", "+", "intf", "get", "name", "(", ")", "+", "\"", "]", "is", "not", "an", "interface", "\"", ")", ";", "}", "if", "(", "!", "this", "interfaces", "contains", "(", "intf", ")", ")", "{", "this", "interfaces", "add", "(", "intf", ")", ";", "advice", "changed", "(", ")", ";", "}", "}" ]
[ "executes", "the", "info", "action" ]
[ "protected", "void", "info", "(", "string", "[", "]", "args", ")", "throws", "exception", "{", "log", "info", "(", "\"", "running", "'", "info", "'", "command", "\"", ")", ";", "final", "options", "command", "options", "=", "cli", "frontend", "parser", "get", "info", "command", "options", "(", ")", ";", "final", "command", "line", "command", "line", "=", "cli", "frontend", "parser", "parse", "(", "command", "options", ",", "args", ",", "true", ")", ";", "final", "program", "options", "program", "options", "=", "program", "options", "create", "(", "command", "line", ")", ";", "/", "/", "evaluate", "help", "flag", "if", "(", "command", "line", "has", "option", "(", "help", "option", "get", "opt", "(", ")", ")", ")", "{", "cli", "frontend", "parser", "print", "help", "for", "info", "(", ")", ";", "return", ";", "}", "/", "/", "-", "-", "-", "-", "-", "-", "-", "-", "build", "the", "packaged", "program", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "log", "info", "(", "\"", "building", "program", "from", "jar", "file", "\"", ")", ";", "packaged", "program", "program", "=", "null", ";", "try", "{", "int", "parallelism", "=", "program", "options", "get", "parallelism", "(", ")", ";", "if", "(", "execution", "config", "parallelism", "default", "=", "=", "parallelism", ")", "{", "parallelism", "=", "default", "parallelism", ";", "}", "log", "info", "(", "\"", "creating", "program", "plan", "dump", "\"", ")", ";", "final", "custom", "command", "line", "active", "command", "line", "=", "validate", "and", "get", "active", "command", "line", "(", "check", "not", "null", "(", "command", "line", ")", ")", ";", "final", "configuration", "effective", "configuration", "=", "get", "effective", "configuration", "(", "active", "command", "line", ",", "command", "line", ",", "program", "options", ",", "get", "job", "jar", "and", "dependencies", "(", "program", "options", ")", ")", ";", "program", "=", "build", "program", "(", "program", "options", ",", "effective", "configuration", ")", ";", "pipeline", "pipeline", "=", "packaged", "program", "utils", "get", "pipeline", "from", "program", "(", "program", ",", "effective", "configuration", ",", "parallelism", ",", "true", ")", ";", "string", "json", "plan", "=", "flink", "pipeline", "translation", "util", "translate", "to", "j", "s", "o", "n", "execution", "plan", "(", "pipeline", ")", ";", "if", "(", "json", "plan", "!", "=", "null", ")", "{", "system", "out", "println", "(", "\"", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "execution", "plan", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "\"", ")", ";", "system", "out", "println", "(", "json", "plan", ")", ";", "system", "out", "println", "(", "\"", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "\"", ")", ";", "}", "else", "{", "system", "out", "println", "(", "\"", "json", "plan", "could", "not", "be", "generated", "\"", ")", ";", "}", "string", "description", "=", "program", "get", "description", "(", ")", ";", "if", "(", "description", "!", "=", "null", ")", "{", "system", "out", "println", "(", ")", ";", "system", "out", "println", "(", "description", ")", ";", "}", "else", "{", "system", "out", "println", "(", ")", ";", "system", "out", "println", "(", "\"", "no", "description", "provided", "\"", ")", ";", "}", "}", "finally", "{", "if", "(", "program", "!", "=", "null", ")", "{", "program", "delete", "extracted", "libraries", "(", ")", ";", "}", "}", "}" ]
[ "authenticates", "the", "user", "that", "is", "associated", "with", "the", "given", "request", "if", "the", "user", "was", "authenticated", "successfully", "(", "i", "e", "a", "user", "was", "indeed", "associated", "with", "the", "request", "and", "the", "credentials", "were", "verified", "to", "be", "valid", ")", ",", "the", "method", "returns", "the", "user", "and", "that", "user", "is", "then", "\"", "attached", "\"", "to", "the", "request", "'", "s", "context", "this", "method", "will", "optionally", ",", "authenticate", "as", "the", "anonymous", "user", "if", "the", "service", "is", "configured", "to", "allow", "anonymous", "access" ]
[ "public", "void", "authenticate", "(", "rest", "request", "request", ",", "boolean", "allow", "anonymous", ",", "action", "listener", "<", "authentication", ">", "authentication", "listener", ")", "{", "create", "authenticator", "(", "request", ",", "allow", "anonymous", ",", "authentication", "listener", ")", "authenticate", "async", "(", ")", ";", "}" ]
[ "indicate", "that", "we", "just", "created", "a", "directory", "through", "wasb" ]
[ "public", "void", "directory", "created", "(", ")", "{", "number", "of", "directories", "created", "incr", "(", ")", ";", "}" ]
[ "checks", "if", "the", "signature", "of", "a", "self", "generated", "license", "with", "older", "version", "needs", "to", "be", "recreated", "with", "the", "new", "key" ]
[ "public", "static", "boolean", "signature", "needs", "update", "(", "license", "license", ",", "discovery", "nodes", "current", "nodes", ")", "{", "assert", "license", "version", "enterprise", "=", "=", "license", "version", "current", ":", "\"", "update", "this", "method", "when", "adding", "a", "new", "version", "\"", ";", "string", "type", "name", "=", "license", "type", "(", ")", ";", "return", "(", "license", "type", "is", "basic", "(", "type", "name", ")", "|", "|", "license", "type", "is", "trial", "(", "type", "name", ")", ")", "&", "&", "/", "/", "only", "upgrade", "signature", "when", "all", "nodes", "are", "ready", "to", "deserialize", "the", "new", "signature", "(", "license", "version", "(", ")", "<", "license", "version", "crypto", "algorithms", "&", "&", "compatible", "license", "version", "(", "current", "nodes", ")", ">", "=", "license", "version", "crypto", "algorithms", ")", ";", "}" ]
[ "this", "method", "will", "return", "an", "array", "of", "{", "@", "link", "byte", "buffer", "}", "representing", "the", "bytes", "from", "the", "beginning", "of", "this", "buffer", "up", "through", "the", "index", "argument", "that", "was", "passed", "the", "buffers", "will", "be", "duplicates", "of", "the", "internal", "buffers", ",", "so", "any", "modifications", "to", "the", "markers", "{", "@", "link", "byte", "buffer", "#", "position", "(", ")", "}", ",", "{", "@", "link", "byte", "buffer", "#", "limit", "(", ")", "}", ",", "etc", "will", "not", "modify", "the", "this", "class" ]
[ "public", "byte", "buffer", "[", "]", "slice", "buffers", "to", "(", "long", "to", ")", "{", "if", "(", "to", ">", "capacity", ")", "{", "throw", "new", "index", "out", "of", "bounds", "exception", "(", "\"", "can", "'", "t", "slice", "a", "channel", "buffer", "with", "capacity", "[", "\"", "+", "capacity", "+", "\"", "]", ",", "with", "slice", "parameters", "to", "[", "\"", "+", "to", "+", "\"", "]", "\"", ")", ";", "}", "else", "if", "(", "to", "=", "=", "0", ")", "{", "return", "empty", "byte", "buffer", "array", ";", "}", "long", "index", "with", "offset", "=", "to", "+", "offset", ";", "int", "page", "count", "=", "page", "index", "(", "index", "with", "offset", ")", ";", "int", "final", "limit", "=", "index", "in", "page", "(", "index", "with", "offset", ")", ";", "if", "(", "final", "limit", "!", "=", "0", ")", "{", "page", "count", "+", "=", "1", ";", "}", "byte", "buffer", "[", "]", "buffers", "=", "new", "byte", "buffer", "[", "page", "count", "]", ";", "iterator", "<", "page", ">", "page", "iterator", "=", "pages", "iterator", "(", ")", ";", "byte", "buffer", "first", "buffer", "=", "page", "iterator", "next", "(", ")", "byte", "buffer", "(", ")", "duplicate", "(", ")", ";", "first", "buffer", "position", "(", "first", "buffer", "position", "(", ")", "+", "offset", ")", ";", "buffers", "[", "0", "]", "=", "first", "buffer", ";", "for", "(", "int", "i", "=", "1", ";", "i", "<", "buffers", "length", ";", "i", "+", "+", ")", "{", "buffers", "[", "i", "]", "=", "page", "iterator", "next", "(", ")", "byte", "buffer", "(", ")", "duplicate", "(", ")", ";", "}", "if", "(", "final", "limit", "!", "=", "0", ")", "{", "buffers", "[", "buffers", "length", "-", "1", "]", "limit", "(", "final", "limit", ")", ";", "}", "return", "buffers", ";", "}" ]
[ "new", "ticket", "registry", "cipher", "executor", "cipher", "executor" ]
[ "public", "static", "cipher", "executor", "new", "ticket", "registry", "cipher", "executor", "(", "final", "encryption", "randomized", "signing", "jwt", "cryptography", "properties", "registry", ",", "final", "string", "registry", "name", ")", "{", "return", "new", "ticket", "registry", "cipher", "executor", "(", "registry", ",", "false", ",", "registry", "name", ")", ";", "}" ]
[ "should", "be", "called", "after", "closing", "the", "stream", "-", "there", "are", "no", "guarantees", "otherwise" ]
[ "public", "string", "stream", "as", "string", "(", ")", "{", "/", "/", "base", "6", "4", "uses", "this", "encoding", "instead", "of", "utf", "-", "8", "return", "bytes", "to", "string", "(", "standard", "charsets", "iso", "8859", "1", ")", ";", "}" ]
[ "called", "when", "an", "entity", "initialized", "event", "is", "received" ]
[ "protected", "void", "on", "initialized", "(", "activiti", "event", "event", ")", "{", "/", "/", "default", "implementation", "is", "a", "no", "-", "op", "}" ]
[ "skip", "the", "given", "amount", "of", "frames" ]
[ "public", "void", "step", "animation", "frames", "(", "final", "int", "num", "frames", ")", "{", "instrumentation", "registry", "get", "instrumentation", "(", ")", "run", "on", "main", "sync", "(", "new", "runnable", "(", ")", "{", "@", "override", "public", "void", "run", "(", ")", "{", "m", "fake", "timing", "source", "step", "(", "num", "frames", ")", ";", "}", "}", ")", ";", "instrumentation", "registry", "get", "instrumentation", "(", ")", "wait", "for", "idle", "sync", "(", ")", ";", "}" ]
[ "set", "the", "same", "storage", "capacity", "configuration", "for", "each", "datanode", "if", "storage", "types", "is", "uninitialized", "or", "passed", "null", "then", "storage", "type", "default", "is", "used" ]
[ "public", "builder", "storage", "capacities", "(", "long", "[", "]", "capacities", ")", "{", "this", "storage", "capacities", "1", "d", "=", "capacities", ";", "return", "this", ";", "}" ]
[ "mark", "functions", "as", "requiring", "any", "search", "result", "to", "match", "the", "specific", "hash" ]
[ "public", "list", "<", "function", "record", ">", "mark", "records", "force", "specific", "(", "list", "<", "function", "record", ">", "func", "list", ",", "boolean", "value", ")", "throws", "i", "o", "exception", "{", "array", "list", "<", "function", "record", ">", "res", "=", "new", "array", "list", "<", ">", "(", ")", ";", "for", "(", "function", "record", "func", "rec", ":", "func", "list", ")", "{", "res", "add", "(", "func", "rec", "get", "fid", "db", "(", ")", "set", "force", "specific", "on", "function", "(", "func", "rec", ",", "value", ")", ")", ";", "}", "return", "res", ";", "}" ]
[ "add", "a", "custom", "error", "page", "as", "a", "string" ]
[ "static", "void", "add", "(", "int", "status", ",", "string", "page", ")", "{", "custom", "error", "pages", "get", "instance", "(", ")", "custom", "pages", "put", "(", "status", ",", "page", ")", ";", "}" ]
[ "get", "the", "record", "size", "being", "used", "by", "this", "stream", "'", "s", "tar", "buffer" ]
[ "public", "int", "get", "record", "size", "(", ")", "{", "return", "this", "buffer", "get", "record", "size", "(", ")", ";", "}" ]
[ "all", "nodes", "of", "this", "sub", "-", "topology" ]
[ "set", "<", "node", ">", "nodes", "(", ")", ";" ]
[ "decodes", "a", "data", "matrix", "code", "represented", "as", "a", "{", "@", "link", "bit", "matrix", "}", "a", "1", "or", "\"", "true", "\"", "is", "taken", "to", "mean", "a", "black", "module" ]
[ "public", "decoder", "result", "decode", "(", "bit", "matrix", "bits", ")", "throws", "format", "exception", ",", "checksum", "exception", "{", "/", "/", "construct", "a", "parser", "and", "read", "version", ",", "error", "-", "correction", "level", "bit", "matrix", "parser", "parser", "=", "new", "bit", "matrix", "parser", "(", "bits", ")", ";", "version", "version", "=", "parser", "get", "version", "(", ")", ";", "/", "/", "read", "codewords", "byte", "[", "]", "codewords", "=", "parser", "read", "codewords", "(", ")", ";", "/", "/", "separate", "into", "data", "blocks", "data", "block", "[", "]", "data", "blocks", "=", "data", "block", "get", "data", "blocks", "(", "codewords", ",", "version", ")", ";", "/", "/", "count", "total", "number", "of", "data", "bytes", "int", "total", "bytes", "=", "0", ";", "for", "(", "data", "block", "db", ":", "data", "blocks", ")", "{", "total", "bytes", "+", "=", "db", "get", "num", "data", "codewords", "(", ")", ";", "}", "byte", "[", "]", "result", "bytes", "=", "new", "byte", "[", "total", "bytes", "]", ";", "int", "data", "blocks", "count", "=", "data", "blocks", "length", ";", "/", "/", "error", "-", "correct", "and", "copy", "data", "blocks", "together", "into", "a", "stream", "of", "bytes", "for", "(", "int", "j", "=", "0", ";", "j", "<", "data", "blocks", "count", ";", "j", "+", "+", ")", "{", "data", "block", "data", "block", "=", "data", "blocks", "[", "j", "]", ";", "byte", "[", "]", "codeword", "bytes", "=", "data", "block", "get", "codewords", "(", ")", ";", "int", "num", "data", "codewords", "=", "data", "block", "get", "num", "data", "codewords", "(", ")", ";", "correct", "errors", "(", "codeword", "bytes", ",", "num", "data", "codewords", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "num", "data", "codewords", ";", "i", "+", "+", ")", "{", "/", "/", "de", "-", "interlace", "data", "blocks", "result", "bytes", "[", "i", "*", "data", "blocks", "count", "+", "j", "]", "=", "codeword", "bytes", "[", "i", "]", ";", "}", "}", "/", "/", "decode", "the", "contents", "of", "that", "stream", "of", "bytes", "return", "decoded", "bit", "stream", "parser", "decode", "(", "result", "bytes", ")", ";", "}" ]
[ "sets", "the", "{", "@", "code", "trigger", "}", "that", "should", "be", "used", "to", "trigger", "window", "emission" ]
[ "public", "with", "window", "<", "t1", ",", "t2", ",", "key", ",", "w", ">", "trigger", "(", "trigger", "<", "?", "super", "tagged", "union", "<", "t1", ",", "t2", ">", ",", "?", "super", "w", ">", "new", "trigger", ")", "{", "return", "new", "with", "window", "<", ">", "(", "input", "1", ",", "input", "2", ",", "key", "selector", "1", ",", "key", "selector", "2", ",", "key", "type", ",", "window", "assigner", ",", "new", "trigger", ",", "evictor", ",", "allowed", "lateness", ")", ";", "}" ]
[ "validate", "a", "session", "for", "a", "client" ]
[ "void", "validate", "session", "(", "server", "cnxn", "cnxn", ",", "long", "client", "id", ",", "int", "timeout", ")", "throws", "i", "o", "exception", "{", "log", "info", "(", "\"", "revalidating", "client", ":", "0x", "{", "}", "\"", ",", "long", "to", "hex", "string", "(", "client", "id", ")", ")", ";", "byte", "array", "output", "stream", "baos", "=", "new", "byte", "array", "output", "stream", "(", ")", ";", "data", "output", "stream", "dos", "=", "new", "data", "output", "stream", "(", "baos", ")", ";", "dos", "write", "long", "(", "client", "id", ")", ";", "dos", "write", "int", "(", "timeout", ")", ";", "dos", "close", "(", ")", ";", "quorum", "packet", "qp", "=", "new", "quorum", "packet", "(", "leader", "revalidate", ",", "-", "1", ",", "baos", "to", "byte", "array", "(", ")", ",", "null", ")", ";", "pending", "revalidations", "put", "(", "client", "id", ",", "cnxn", ")", ";", "if", "(", "log", "is", "trace", "enabled", "(", ")", ")", "{", "zoo", "trace", "log", "trace", "message", "(", "log", ",", "zoo", "trace", "session", "trace", "mask", ",", "\"", "to", "validate", "session", "0x", "\"", "+", "long", "to", "hex", "string", "(", "client", "id", ")", ")", ";", "}", "write", "packet", "(", "qp", ",", "true", ")", ";", "}" ]
[ "returns", "the", "constraint", "source", "file", "that", "added", "the", "value", "for", "this", "decision" ]
[ "public", "string", "get", "source", "(", ")", "{", "return", "source", ";", "}" ]
[ "inserter", "to", "write", "the", "given", "{", "@", "code", "publisher", "<", "data", "buffer", ">", "}", "to", "the", "body" ]
[ "public", "static", "<", "t", "extends", "publisher", "<", "data", "buffer", ">", ">", "body", "inserter", "<", "t", ",", "reactive", "http", "output", "message", ">", "from", "data", "buffers", "(", "t", "publisher", ")", "{", "assert", "not", "null", "(", "publisher", ",", "\"", "'", "publisher", "'", "must", "not", "be", "null", "\"", ")", ";", "return", "(", "output", "message", ",", "context", ")", "-", ">", "output", "message", "write", "with", "(", "publisher", ")", ";", "}" ]
[ "removes", "network", "disruption", "that", "was", "added", "by", "{", "@", "link", "#", "apply", "disruption", "}" ]
[ "public", "void", "remove", "disruption", "(", "mock", "transport", "service", "source", "transport", "service", ",", "mock", "transport", "service", "target", "transport", "service", ")", "{", "source", "transport", "service", "clear", "outbound", "rules", "(", "target", "transport", "service", ")", ";", "}" ]
[ "get", "pet", "id" ]
[ "public", "long", "get", "pet", "id", "(", ")", "{", "return", "pet", "id", ";", "}" ]
[ "returns", "the", "difference", "of", "this", "long", "value", "and", "the", "given", "particular", "long", "value" ]
[ "public", "long", "value", "subtract", "(", "particular", "long", "value", "other", ")", "{", "return", "subtract", "(", "(", "specific", "long", "value", ")", "other", ")", ";", "}" ]
[ "test", "ensuring", "that", "if", "a", "snapshot", "call", "happens", "right", "after", "an", "async", "exception", "is", "caught", ",", "it", "should", "be", "rethrown" ]
[ "public", "void", "test", "async", "error", "rethrown", "on", "checkpoint", "(", ")", "throws", "throwable", "{", "final", "dummy", "flink", "kinesis", "producer", "<", "string", ">", "producer", "=", "new", "dummy", "flink", "kinesis", "producer", "<", ">", "(", "new", "simple", "string", "schema", "(", ")", ")", ";", "one", "input", "stream", "operator", "test", "harness", "<", "string", ",", "object", ">", "test", "harness", "=", "new", "one", "input", "stream", "operator", "test", "harness", "<", ">", "(", "new", "stream", "sink", "<", ">", "(", "producer", ")", ")", ";", "test", "harness", "open", "(", ")", ";", "test", "harness", "process", "element", "(", "new", "stream", "record", "<", ">", "(", "\"", "msg", "-", "1", "\"", ")", ")", ";", "producer", "get", "pending", "record", "futures", "(", ")", "get", "(", "0", ")", "set", "exception", "(", "new", "exception", "(", "\"", "artificial", "async", "exception", "\"", ")", ")", ";", "try", "{", "test", "harness", "snapshot", "(", "123l", ",", "123l", ")", ";", "}", "catch", "(", "exception", "e", ")", "{", "/", "/", "the", "next", "checkpoint", "should", "rethrow", "the", "async", "exception", "assert", "assert", "true", "(", "exception", "utils", "find", "throwable", "with", "message", "(", "e", ",", "\"", "artificial", "async", "exception", "\"", ")", "is", "present", "(", ")", ")", ";", "/", "/", "test", "succeeded", "return", ";", "}", "assert", "fail", "(", ")", ";", "}" ]
[ "creates", "a", "top", "-", "down", "navigator", ",", "which", "is", "one", "that", "traverses", "the", "graph", "from", "the", "source", "to", "the", "sink" ]
[ "public", "static", "<", "v", ",", "e", "extends", "g", "edge", "<", "v", ">", ">", "graph", "navigator", "<", "v", ",", "e", ">", "top", "down", "navigator", "(", ")", "{", "return", "new", "graph", "navigator", "<", ">", "(", "true", ")", ";", "}" ]
[ "evaluates", "{", "@", "code", "code", "}", "in", "the", "loading", "phase", "in", "a", "bzl", "file" ]
[ "private", "object", "starlark", "loading", "eval", "(", "string", "code", ",", "string", "definition", ")", "throws", "exception", "{", "scratch", "overwrite", "file", "(", "\"", "eval", "/", "build", "\"", ",", "\"", "load", "(", "'", ":", "eval", "bzl", "'", ",", "'", "eval", "'", ")", "\"", ",", "\"", "eval", "(", "name", "=", "'", "eval", "'", ")", "\"", ")", ";", "scratch", "overwrite", "file", "(", "\"", "eval", "/", "eval", "bzl", "\"", ",", "definition", ",", "string", "format", "(", "\"", "x", "=", "%", "s", "\"", ",", "code", ")", ",", "/", "/", "should", "be", "placed", "here", "to", "execute", "during", "the", "loading", "phase", "\"", "def", "impl", "(", "ctx", ")", ":", "\"", ",", "\"", "return", "struct", "(", "result", "=", "x", ")", "\"", ",", "\"", "eval", "=", "rule", "(", "implementation", "=", "impl", ")", "\"", ")", ";", "skyframe", "executor", "invalidate", "files", "under", "path", "for", "testing", "(", "reporter", ",", "new", "modified", "file", "set", "builder", "(", ")", "modify", "(", "path", "fragment", "create", "(", "\"", "eval", "/", "build", "\"", ")", ")", "modify", "(", "path", "fragment", "create", "(", "\"", "eval", "/", "eval", "bzl", "\"", ")", ")", "build", "(", ")", ",", "root", "from", "path", "(", "root", "directory", ")", ")", ";", "configured", "target", "target", "=", "get", "configured", "target", "(", "\"", "/", "/", "eval", "\"", ")", ";", "return", "target", "get", "(", "\"", "result", "\"", ")", ";", "}" ]
[ "declare", "that", "the", "iterator", "has", "data", "if", "it", "is", "either", "is", "the", "initial", "iteration", "or", "it", "is", "a", "later", "one", "and", "the", "last", "listing", "obtained", "was", "incomplete" ]
[ "public", "boolean", "has", "next", "(", ")", "throws", "i", "o", "exception", "{", "return", "first", "listing", "|", "|", "(", "objects", "prev", "!", "=", "null", "&", "&", "objects", "prev", "is", "truncated", "(", ")", ")", ";", "}" ]
[ "this", "blocks", "for", "less", "than", "the", "timeout", "of", "2", "second", "to", "prove", "we", "defer", "io", "until", "first", "use", "of", "the", "storage", "component" ]
[ "@", "test", "(", "timeout", "=", "1900l", ")", "public", "void", "defers", "i", "o", "until", "first", "use", "(", ")", "throws", "i", "o", "exception", "{", "test", "property", "values", "of", "(", "\"", "spring", "config", "name", "=", "zipkin", "-", "server", "\"", ",", "\"", "zipkin", "storage", "type", ":", "elasticsearch", "\"", ",", "\"", "zipkin", "storage", "elasticsearch", "timeout", ":", "2000", "\"", ",", "\"", "zipkin", "storage", "elasticsearch", "hosts", ":", "127", "0", "0", "1", ":", "1234", ",", "127", "0", "0", "1", ":", "5678", "\"", ")", "apply", "to", "(", "context", ")", ";", "access", "register", "elasticsearch", "(", "context", ")", ";", "context", "refresh", "(", ")", ";", "context", "get", "bean", "(", "elasticsearch", "storage", "class", ")", "close", "(", ")", ";", "}" ]
[ "test", "the", "property", "'", "complete", "'" ]
[ "public", "void", "complete", "test", "(", ")", "{", "/", "/", "todo", ":", "test", "complete", "}" ]
[ "<", "code", ">", "optional", "string", "name", "=", "6", ";", "<", "code", ">" ]
[ "public", "java", "lang", "string", "get", "name", "(", ")", "{", "java", "lang", "object", "ref", "=", "name", ";", "if", "(", "!", "(", "ref", "instanceof", "java", "lang", "string", ")", ")", "{", "com", "google", "protobuf", "byte", "string", "bs", "=", "(", "com", "google", "protobuf", "byte", "string", ")", "ref", ";", "java", "lang", "string", "s", "=", "bs", "to", "string", "utf", "8", "(", ")", ";", "if", "(", "bs", "is", "valid", "utf", "8", "(", ")", ")", "{", "name", "=", "s", ";", "}", "return", "s", ";", "}", "else", "{", "return", "(", "java", "lang", "string", ")", "ref", ";", "}", "}" ]
[ "prepare", "the", "{", "@", "link", "generic", "application", "context", "}", "created", "by", "this", "{", "@", "code", "context", "loader", "}", "called", "before", "bean", "definitions", "are", "read", "the", "default", "implementation", "is", "empty", "can", "be", "overridden", "in", "subclasses", "to", "customize", "{", "@", "code", "generic", "application", "context", "}", "'", "s", "standard", "settings" ]
[ "protected", "void", "prepare", "context", "(", "generic", "application", "context", "context", ")", "{", "}" ]
[ "perform", "disassembly", "and", "markup", "of", "specified", "external", "linkage", "table", "which", "consists", "of", "thunks", "to", "external", "functions", "if", "symbols", "are", "defined", "within", "the", "linkage", "table", ",", "these", "will", "be", "transitioned", "to", "external", "functions" ]
[ "public", "void", "process", "linkage", "table", "(", "string", "plt", "name", ",", "address", "min", "address", ",", "address", "max", "address", ",", "task", "monitor", "monitor", ")", "throws", "cancelled", "exception", "{", "/", "/", "disassemble", "section", "/", "/", "disassembly", "is", "only", "done", "so", "we", "can", "see", "all", "instructions", "since", "many", "/", "/", "of", "them", "are", "unreachable", "after", "applying", "relocations", "disassemble", "(", "min", "address", ",", "max", "address", ",", "program", ",", "monitor", ")", ";", "/", "/", "any", "symbols", "in", "the", "linkage", "section", "should", "be", "converted", "to", "external", "function", "thunks", "/", "/", "this", "can", "be", "seen", "with", "arm", "android", "examples", "int", "count", "=", "convert", "symbols", "to", "external", "functions", "(", "min", "address", ",", "max", "address", ")", ";", "if", "(", "count", ">", "0", ")", "{", "log", "(", "\"", "converted", "\"", "+", "count", "+", "\"", "\"", "+", "plt", "name", "+", "\"", "section", "symbols", "to", "external", "thunks", "\"", ")", ";", "}", "}" ]
[ "check", "whether", "there", "are", "any", "pending", "batches", "(", "whether", "sent", "or", "unsent", ")" ]
[ "public", "boolean", "has", "incomplete", "(", ")", "{", "return", "!", "this", "incomplete", "is", "empty", "(", ")", ";", "}" ]
[ "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", "\"", ")", ";", "}" ]
[ "find", "the", "fields", "constant", "that", "matches", "field", "id", ",", "or", "null", "if", "its", "not", "found" ]
[ "public", "static", "fields", "find", "by", "thrift", "id", "(", "int", "field", "id", ")", "{", "switch", "(", "field", "id", ")", "{", "case", "1", ":", "/", "/", "acked", "return", "acked", ";", "case", "2", ":", "/", "/", "failed", "return", "failed", ";", "case", "3", ":", "/", "/", "process", "ms", "avg", "return", "process", "ms", "avg", ";", "case", "4", ":", "/", "/", "executed", "return", "executed", ";", "case", "5", ":", "/", "/", "execute", "ms", "avg", "return", "execute", "ms", "avg", ";", "default", ":", "return", "null", ";", "}", "}" ]
[ "inserts", "a", "trampoline", "to", "this", "class", "so", "that", "the", "updated", "methods", "can", "make", "calls", "to", "super", "class", "methods", "pseudo", "code", "for", "this", "trampoline", ":", "<", "code", ">", "object", "access", "$", "super", "(", "$", "class", "type", "instance", ",", "string", "name", ",", "object", "[", "]", "args", ")", "{", "switch", "(", "name", ")", "{", "case", "\"", "first", "method", "(", "ljavalang", "string", ";", "ljavalang", "object", ";", ")", "ljavalang", "object", ";", "\"", ":", "return", "super", "~", "instance", "first", "method", "(", "(", "string", ")", "arg", "[", "0", "]", ",", "arg", "[", "1", "]", ")", ";", "case", "\"", "second", "method", "(", "ljavalang", "string", ";", "i", ")", "v", "\"", ":", "return", "super", "~", "instance", "first", "method", "(", "(", "string", ")", "arg", "[", "0", "]", ",", "arg", "[", "1", "]", ")", ";", "default", ":", "string", "builder", "$", "local", "1", "=", "new", "string", "builder", "(", ")", ";", "$", "local", "1", "append", "(", "\"", "method", "not", "found", "\"", ")", ";", "$", "local", "1", "append", "(", "name", ")", ";", "$", "local", "1", "append", "(", "\"", "in", "\"", "$", "class", "type", "$", "super", "implementation", "\"", ")", ";", "throw", "new", "$", "package", "instant", "reload", "exception", "(", "$", "local", "1", "to", "string", "(", ")", ")", ";", "}", "<", "code", ">" ]
[ "private", "void", "create", "access", "super", "(", ")", "{", "final", "map", "<", "string", ",", "method", "reference", ">", "unique", "methods", "=", "new", "hash", "map", "<", ">", "(", ")", ";", "if", "(", "parent", "nodes", "is", "empty", "(", ")", ")", "{", "/", "/", "if", "we", "cannot", "determine", "the", "parents", "for", "this", "class", ",", "let", "'", "s", "blindly", "add", "all", "the", "/", "/", "method", "of", "the", "current", "class", "as", "a", "gateway", "to", "a", "possible", "parent", "version", "add", "all", "new", "methods", "(", "class", "node", ",", "class", "node", ",", "unique", "methods", ",", "null", ")", ";", "}", "else", "{", "/", "/", "otherwise", ",", "use", "the", "parent", "list", "for", "(", "class", "node", "parent", "node", ":", "parent", "nodes", ")", "{", "add", "all", "new", "methods", "(", "class", "node", ",", "parent", "node", ",", "unique", "methods", ",", "support", "add", "call", "super", "?", "null", ":", "visit", "super", "methods", ")", ";", "}", "}", "if", "(", "unique", "methods", "size", "(", ")", "=", "=", "0", ")", "{", "return", ";", "}", "int", "access", "=", "opcodes", "acc", "static", "|", "opcodes", "acc", "public", "|", "opcodes", "acc", "synthetic", "|", "opcodes", "acc", "varargs", ";", "method", "m", "=", "new", "method", "(", "\"", "ipc", "$", "super", "\"", ",", "\"", "(", "l", "\"", "+", "visited", "class", "name", "+", "\"", ";", "ljava", "/", "lang", "/", "string", ";", "[", "ljava", "/", "lang", "/", "object", ";", ")", "ljava", "/", "lang", "/", "object", ";", "\"", ")", ";", "method", "visitor", "visitor", "=", "super", "visit", "method", "(", "access", ",", "m", "get", "name", "(", ")", ",", "m", "get", "descriptor", "(", ")", ",", "null", ",", "null", ")", ";", "final", "generator", "adapter", "mv", "=", "new", "generator", "adapter", "(", "access", ",", "m", ",", "visitor", ")", ";", "/", "/", "gather", "all", "methods", "from", "itself", "and", "its", "superclasses", "to", "generate", "a", "giant", "access", "$", "super", "/", "/", "implementation", "/", "/", "this", "will", "work", "fine", "as", "long", "as", "we", "don", "'", "t", "support", "adding", "methods", "to", "a", "class", "new", "string", "switch", "(", ")", "{", "@", "override", "void", "visit", "string", "(", ")", "{", "mv", "visit", "var", "insn", "(", "opcodes", "aload", ",", "1", ")", ";", "}", "@", "override", "void", "visit", "case", "(", "string", "method", "name", ")", "{", "method", "reference", "method", "ref", "=", "unique", "methods", "get", "(", "method", "name", ")", ";", "mv", "visit", "var", "insn", "(", "opcodes", "aload", ",", "0", ")", ";", "type", "[", "]", "args", "=", "type", "get", "argument", "types", "(", "method", "ref", "method", "desc", ")", ";", "int", "argc", "=", "0", ";", "for", "(", "type", "t", ":", "args", ")", "{", "mv", "visit", "var", "insn", "(", "opcodes", "aload", ",", "2", ")", ";", "mv", "push", "(", "argc", ")", ";", "mv", "visit", "insn", "(", "opcodes", "aaload", ")", ";", "byte", "code", "utils", "unbox", "(", "mv", ",", "t", ")", ";", "argc", "+", "+", ";", "}", "if", "(", "tracing", "enabled", ")", "{", "trace", "(", "mv", ",", "\"", "super", "selected", "\"", ",", "method", "ref", "owner", "name", ",", "method", "ref", "method", "name", ",", "method", "ref", "method", "desc", ")", ";", "}", "string", "parent", "name", "=", "find", "parent", "class", "for", "method", "(", "method", "ref", ")", ";", "logger", "verbose", "(", "\"", "generating", "ipc", "$", "super", "for", "%", "1", "$", "s", "recev", "%", "2", "$", "s", "\"", ",", "method", "ref", "method", "name", ",", "parent", "name", ")", ";", "/", "/", "call", "super", "on", "the", "other", "object", ",", "yup", "this", "works", "cos", "we", "are", "on", "the", "right", "place", "to", "/", "/", "call", "from", "mv", "visit", "method", "insn", "(", "opcodes", "invokespecial", ",", "parent", "name", ",", "method", "ref", "method", "name", ",", "method", "ref", "method", "desc", ",", "false", ")", ";", "type", "ret", "=", "type", "get", "return", "type", "(", "method", "ref", "method", "desc", ")", ";", "if", "(", "ret", "get", "sort", "(", ")", "=", "=", "type", "void", ")", "{", "mv", "visit", "insn", "(", "opcodes", "aconst", "null", ")", ";", "}", "else", "{", "mv", "box", "(", "ret", ")", ";", "}", "mv", "visit", "insn", "(", "opcodes", "areturn", ")", ";", "}", "@", "override", "void", "visit", "default", "(", ")", "{", "/", "/", "mv", "visit", "insn", "(", "opcodes", "return", ")", ";", "write", "missing", "message", "with", "hash", "(", "mv", ",", "visited", "class", "name", ")", ";", "}", "}", "visit", "(", "mv", ",", "unique", "methods", "key", "set", "(", ")", ")", ";", "mv", "visit", "maxs", "(", "0", ",", "0", ")", ";", "mv", "visit", "end", "(", ")", ";", "}" ]
[ "increase", "or", "decrease", "the", "memory", "occupation", "of", "non", "-", "sequential", "writes" ]
[ "private", "long", "update", "non", "sequential", "write", "in", "memory", "(", "long", "count", ")", "{", "long", "new", "value", "=", "non", "sequential", "write", "in", "memory", "add", "and", "get", "(", "count", ")", ";", "log", "debug", "(", "\"", "update", "non", "sequential", "write", "in", "memory", "by", "{", "}", "new", "value", ":", "{", "}", "\"", ",", "count", ",", "new", "value", ")", ";", "preconditions", "check", "state", "(", "new", "value", ">", "=", "0", ",", "\"", "non", "sequential", "write", "in", "memory", "is", "negative", "\"", "+", "new", "value", "+", "\"", "after", "update", "with", "count", "\"", "+", "count", ")", ";", "return", "new", "value", ";", "}" ]
[ "compare", "two", "objects", "in", "binary", "b", "1", "[", "s", "1", ":", "l", "1", "]", "is", "the", "first", "object", ",", "and", "b", "2", "[", "s", "2", ":", "l", "2", "]", "is", "the", "second", "object" ]
[ "public", "int", "compare", "(", "byte", "[", "]", "b", "1", ",", "int", "s", "1", ",", "int", "l", "1", ",", "byte", "[", "]", "b", "2", ",", "int", "s", "2", ",", "int", "l", "2", ")", ";" ]
[ "sometimes", "wraps", "a", "runnable", "in", "an", "abstract", "runnable" ]
[ "private", "runnable", "sometimes", "abstract", "runnable", "(", "runnable", "r", ")", "{", "if", "(", "random", "(", ")", "next", "boolean", "(", ")", ")", "{", "return", "r", ";", "}", "return", "new", "abstract", "runnable", "(", ")", "{", "@", "override", "public", "void", "on", "failure", "(", "exception", "e", ")", "{", "throw", "new", "runtime", "exception", "(", "e", ")", ";", "}", "@", "override", "protected", "void", "do", "run", "(", ")", "throws", "exception", "{", "r", "run", "(", ")", ";", "}", "}", ";", "}" ]
[ "set", "the", "value", "of", "this", "attribute", "for", "the", "specified", "keyed", "object" ]
[ "public", "boolean", "set", "value", "(", "t", "o", ",", "double", "value", ")", "{", "if", "(", "owning", "set", "(", ")", "contains", "(", "o", ")", ")", "{", "/", "/", "values", "[", "owning", "set", "(", ")", "index", "(", "o", ")", "]", "=", "value", ";", "values", "put", "(", "o", "key", "(", ")", ",", "value", ")", ";", "update", "(", ")", ";", "return", "true", ";", "}", "return", "false", ";", "}" ]
[ "throws", "{", "@", "link", "illegal", "state", "exception", "}", "if", "{", "@", "code", "expression", "}", "evaluates", "to", "false" ]
[ "public", "static", "void", "check", "state", "(", "boolean", "expression", ")", "{", "if", "(", "exo", "player", "library", "info", "assertions", "enabled", "&", "&", "!", "expression", ")", "{", "throw", "new", "illegal", "state", "exception", "(", ")", ";", "}", "}" ]
[ "creates", "an", "xml", "item", "this", "route", "creates", "an", "xml", "item" ]
[ "public", "void", "create", "xml", "item", "(", "xml", "item", "xml", "item", ")", "throws", "api", "exception", "{", "object", "local", "var", "post", "body", "=", "xml", "item", ";", "/", "/", "verify", "the", "required", "parameter", "'", "xml", "item", "'", "is", "set", "if", "(", "xml", "item", "=", "=", "null", ")", "{", "throw", "new", "api", "exception", "(", "400", ",", "\"", "missing", "the", "required", "parameter", "'", "xml", "item", "'", "when", "calling", "create", "xml", "item", "\"", ")", ";", "}", "/", "/", "create", "path", "and", "map", "variables", "string", "local", "var", "path", "=", "\"", "/", "fake", "/", "create", "xml", "item", "\"", "replace", "all", "(", "\"", "\\", "\\", "{", "format", "\\", "\\", "}", "\"", ",", "\"", "json", "\"", ")", ";", "/", "/", "query", "params", "list", "<", "pair", ">", "local", "var", "query", "params", "=", "new", "array", "list", "<", "pair", ">", "(", ")", ";", "map", "<", "string", ",", "string", ">", "local", "var", "header", "params", "=", "new", "hash", "map", "<", "string", ",", "string", ">", "(", ")", ";", "map", "<", "string", ",", "string", ">", "local", "var", "cookie", "params", "=", "new", "hash", "map", "<", "string", ",", "string", ">", "(", ")", ";", "map", "<", "string", ",", "object", ">", "local", "var", "form", "params", "=", "new", "hash", "map", "<", "string", ",", "object", ">", "(", ")", ";", "final", "string", "[", "]", "local", "var", "accepts", "=", "{", "}", ";", "final", "string", "local", "var", "accept", "=", "api", "client", "select", "header", "accept", "(", "local", "var", "accepts", ")", ";", "final", "string", "[", "]", "local", "var", "content", "types", "=", "{", "\"", "application", "/", "xml", "\"", ",", "\"", "application", "/", "xml", ";", "charset", "=", "utf", "-", "8", "\"", ",", "\"", "application", "/", "xml", ";", "charset", "=", "utf", "-", "16", "\"", ",", "\"", "text", "/", "xml", "\"", ",", "\"", "text", "/", "xml", ";", "charset", "=", "utf", "-", "8", "\"", ",", "\"", "text", "/", "xml", ";", "charset", "=", "utf", "-", "16", "\"", "}", ";", "final", "string", "local", "var", "content", "type", "=", "api", "client", "select", "header", "content", "type", "(", "local", "var", "content", "types", ")", ";", "string", "[", "]", "local", "var", "auth", "names", "=", "new", "string", "[", "]", "{", "}", ";", "api", "client", "invoke", "a", "p", "i", "(", "local", "var", "path", ",", "\"", "post", "\"", ",", "local", "var", "query", "params", ",", "local", "var", "post", "body", ",", "local", "var", "header", "params", ",", "local", "var", "cookie", "params", ",", "local", "var", "form", "params", ",", "local", "var", "accept", ",", "local", "var", "content", "type", ",", "local", "var", "auth", "names", ",", "null", ")", ";", "}" ]
[ "this", "is", "to", "handle", "encryption", "zone", "for", "root", "dir", "when", "loading", "from", "fsimage", ",", "and", "should", "only", "be", "called", "during", "nn", "restart" ]
[ "public", "final", "void", "add", "root", "dir", "to", "encryption", "zone", "(", "x", "attr", "feature", "xaf", ")", "{", "add", "encryption", "zone", "(", "root", "dir", ",", "xaf", ")", ";", "}" ]
[ "find", "the", "fields", "constant", "that", "matches", "field", "id", ",", "throwing", "an", "exception", "if", "it", "is", "not", "found" ]
[ "public", "static", "fields", "find", "by", "thrift", "id", "or", "throw", "(", "int", "field", "id", ")", "{", "fields", "fields", "=", "find", "by", "thrift", "id", "(", "field", "id", ")", ";", "if", "(", "fields", "=", "=", "null", ")", "throw", "new", "illegal", "argument", "exception", "(", "\"", "field", "\"", "+", "field", "id", "+", "\"", "doesn", "'", "t", "exist", "!", "\"", ")", ";", "return", "fields", ";", "}" ]
[ "returns", "the", "index", "of", "the", "given", "node", "within", "this", "node", "-", "1", "is", "returned", "if", "the", "node", "is", "not", "a", "child", "of", "this", "node" ]
[ "public", "int", "get", "index", "of", "child", "(", "g", "tree", "node", "node", ")", "{", "return", "children", "(", ")", "index", "of", "(", "node", ")", ";", "}" ]
[ "this", "method", "creates", "shape", "by", "type", "and", "coordinates" ]
[ "private", "static", "shape", "create", "shape", "(", "shape", "type", "shape", "type", ",", "graphic", "info", "graphic", "info", ")", "{", "if", "(", "shape", "type", "rectangle", "equals", "(", "shape", "type", ")", ")", "{", "/", "/", "source", "is", "rectangle", "return", "new", "rectangle", "2", "d", "double", "(", "graphic", "info", "get", "x", "(", ")", ",", "graphic", "info", "get", "y", "(", ")", ",", "graphic", "info", "get", "width", "(", ")", ",", "graphic", "info", "get", "height", "(", ")", ")", ";", "}", "else", "if", "(", "shape", "type", "rhombus", "equals", "(", "shape", "type", ")", ")", "{", "/", "/", "source", "is", "rhombus", "path", "2", "d", "double", "rhombus", "=", "new", "path", "2", "d", "double", "(", ")", ";", "rhombus", "move", "to", "(", "graphic", "info", "get", "x", "(", ")", ",", "graphic", "info", "get", "y", "(", ")", "+", "graphic", "info", "get", "height", "(", ")", "/", "2", ")", ";", "rhombus", "line", "to", "(", "graphic", "info", "get", "x", "(", ")", "+", "graphic", "info", "get", "width", "(", ")", "/", "2", ",", "graphic", "info", "get", "y", "(", ")", "+", "graphic", "info", "get", "height", "(", ")", ")", ";", "rhombus", "line", "to", "(", "graphic", "info", "get", "x", "(", ")", "+", "graphic", "info", "get", "width", "(", ")", ",", "graphic", "info", "get", "y", "(", ")", "+", "graphic", "info", "get", "height", "(", ")", "/", "2", ")", ";", "rhombus", "line", "to", "(", "graphic", "info", "get", "x", "(", ")", "+", "graphic", "info", "get", "width", "(", ")", "/", "2", ",", "graphic", "info", "get", "y", "(", ")", ")", ";", "rhombus", "line", "to", "(", "graphic", "info", "get", "x", "(", ")", ",", "graphic", "info", "get", "y", "(", ")", "+", "graphic", "info", "get", "height", "(", ")", "/", "2", ")", ";", "rhombus", "close", "path", "(", ")", ";", "return", "rhombus", ";", "}", "else", "if", "(", "shape", "type", "ellipse", "equals", "(", "shape", "type", ")", ")", "{", "/", "/", "source", "is", "ellipse", "return", "new", "ellipse", "2", "d", "double", "(", "graphic", "info", "get", "x", "(", ")", ",", "graphic", "info", "get", "y", "(", ")", ",", "graphic", "info", "get", "width", "(", ")", ",", "graphic", "info", "get", "height", "(", ")", ")", ";", "}", "/", "/", "unknown", "source", "element", ",", "just", "do", "not", "correct", "coordinates", "return", "null", ";", "}" ]
[ "test", "equals", "tester", "after", "populating", "equal", "objects", "this", "checks", "proper", "handling", "of", "equality", "and", "verifies", "hash", "code", "for", "valid", "objects" ]
[ "public", "void", "test", "test", "equals", "equals", "objects", "(", ")", "{", "equals", "tester", "add", "equality", "group", "(", "reference", ",", "equal", "object", "1", ",", "equal", "object", "2", ")", ";", "equals", "tester", "test", "equals", "(", ")", ";", "}" ]
[ "copy", "the", "key", "into", "user", "supplied", "buffer" ]
[ "public", "int", "get", "key", "(", "byte", "[", "]", "buf", ")", "throws", "i", "o", "exception", "{", "return", "get", "key", "(", "buf", ",", "0", ")", ";", "}" ]
[ "abstract", "method", "defining", "\"", "autowire", "by", "type", "\"", "(", "bean", "properties", "by", "type", ")", "behavior", "this", "is", "like", "pico", "container", "default", ",", "in", "which", "there", "must", "be", "exactly", "one", "bean", "of", "the", "property", "type", "in", "the", "bean", "factory", "this", "makes", "bean", "factories", "simple", "to", "configure", "for", "small", "namespaces", ",", "but", "doesn", "'", "t", "work", "as", "well", "as", "standard", "spring", "behavior", "for", "bigger", "applications" ]
[ "protected", "void", "autowire", "by", "type", "(", "string", "bean", "name", ",", "abstract", "bean", "definition", "mbd", ",", "bean", "wrapper", "bw", ",", "mutable", "property", "values", "pvs", ")", "{", "type", "converter", "converter", "=", "get", "custom", "type", "converter", "(", ")", ";", "if", "(", "converter", "=", "=", "null", ")", "{", "converter", "=", "bw", ";", "}", "set", "<", "string", ">", "autowired", "bean", "names", "=", "new", "linked", "hash", "set", "<", ">", "(", "4", ")", ";", "string", "[", "]", "property", "names", "=", "unsatisfied", "non", "simple", "properties", "(", "mbd", ",", "bw", ")", ";", "for", "(", "string", "property", "name", ":", "property", "names", ")", "{", "try", "{", "property", "descriptor", "pd", "=", "bw", "get", "property", "descriptor", "(", "property", "name", ")", ";", "/", "/", "don", "'", "t", "try", "autowiring", "by", "type", "for", "type", "object", ":", "never", "makes", "sense", ",", "/", "/", "even", "if", "it", "technically", "is", "a", "unsatisfied", ",", "non", "-", "simple", "property", "if", "(", "object", "class", "!", "=", "pd", "get", "property", "type", "(", ")", ")", "{", "method", "parameter", "method", "param", "=", "bean", "utils", "get", "write", "method", "parameter", "(", "pd", ")", ";", "/", "/", "do", "not", "allow", "eager", "init", "for", "type", "matching", "in", "case", "of", "a", "prioritized", "post", "-", "processor", "boolean", "eager", "=", "!", "(", "bw", "get", "wrapped", "instance", "(", ")", "instanceof", "priority", "ordered", ")", ";", "dependency", "descriptor", "desc", "=", "new", "autowire", "by", "type", "dependency", "descriptor", "(", "method", "param", ",", "eager", ")", ";", "object", "autowired", "argument", "=", "resolve", "dependency", "(", "desc", ",", "bean", "name", ",", "autowired", "bean", "names", ",", "converter", ")", ";", "if", "(", "autowired", "argument", "!", "=", "null", ")", "{", "pvs", "add", "(", "property", "name", ",", "autowired", "argument", ")", ";", "}", "for", "(", "string", "autowired", "bean", "name", ":", "autowired", "bean", "names", ")", "{", "register", "dependent", "bean", "(", "autowired", "bean", "name", ",", "bean", "name", ")", ";", "if", "(", "logger", "is", "trace", "enabled", "(", ")", ")", "{", "logger", "trace", "(", "\"", "autowiring", "by", "type", "from", "bean", "name", "'", "\"", "+", "bean", "name", "+", "\"", "'", "via", "property", "'", "\"", "+", "property", "name", "+", "\"", "'", "to", "bean", "named", "'", "\"", "+", "autowired", "bean", "name", "+", "\"", "'", "\"", ")", ";", "}", "}", "autowired", "bean", "names", "clear", "(", ")", ";", "}", "}", "catch", "(", "beans", "exception", "ex", ")", "{", "throw", "new", "unsatisfied", "dependency", "exception", "(", "mbd", "get", "resource", "description", "(", ")", ",", "bean", "name", ",", "property", "name", ",", "ex", ")", ";", "}", "}", "}" ]
[ "though", "the", "aws", "sdk", "claims", "in", "documentation", "to", "handle", "retries", "and", "exponential", "backoff", ",", "we", "have", "witnessed", "com", "amazonaws", "dynamodbv", "2", "model", "provisioned", "throughput", "exceeded", "exception", "(", "status", "code", ":", "400", ";", "error", "code", ":", "provisioned", "throughput", "exceeded", "exception", ")", "hypothesis", ":", "happens", "when", "the", "size", "of", "a", "batched", "write", "is", "bigger", "than", "the", "number", "of", "provisioned", "write", "units", "this", "test", "ensures", "we", "handle", "the", "case", "correctly", ",", "retrying", "w", "smaller", "batch", "instead", "of", "surfacing", "exceptions" ]
[ "public", "void", "test", "030", "batched", "write", "(", ")", "throws", "exception", "{", "final", "int", "iterations", "=", "15", ";", "final", "array", "list", "<", "path", "metadata", ">", "to", "cleanup", "=", "new", "array", "list", "<", ">", "(", ")", ";", "to", "cleanup", "ensure", "capacity", "(", "threads", "*", "iterations", ")", ";", "/", "/", "fail", "if", "someone", "changes", "a", "constant", "we", "depend", "on", "assert", "true", "(", "\"", "maximum", "batch", "size", "must", "big", "enough", "to", "run", "this", "test", "\"", ",", "s3guard", "ddb", "batch", "write", "request", "limit", ">", "=", "batch", "size", ")", ";", "/", "/", "we", "know", "the", "dynamodb", "metadata", "store", "will", "expand", "a", "put", "of", "a", "path", "/", "/", "of", "depth", "n", "into", "a", "batch", "of", "n", "writes", "(", "all", "ancestors", "are", "written", "/", "/", "separately", "up", "to", "the", "root", ")", "(", "ab", ")", "use", "this", "for", "an", "easy", "way", "to", "write", "/", "/", "a", "batch", "of", "stuff", "that", "is", "bigger", "than", "the", "provisioned", "write", "units", "try", "{", "describe", "(", "\"", "running", "%", "d", "iterations", "of", "batched", "put", ",", "size", "%", "d", "\"", ",", "iterations", ",", "batch", "size", ")", ";", "path", "base", "=", "path", "(", "get", "method", "name", "(", ")", ")", ";", "final", "string", "path", "key", "=", "base", "to", "uri", "(", ")", "get", "path", "(", ")", ";", "throttle", "tracker", "result", "=", "execute", "(", "\"", "prune", "\"", ",", "1", ",", "expect", "throttling", "(", ")", ",", "(", ")", "-", ">", "{", "throttle", "tracker", "tracker", "=", "new", "throttle", "tracker", "(", "ddbms", ")", ";", "long", "prune", "items", "=", "0", ";", "for", "(", "long", "i", "=", "0", ";", "i", "<", "iterations", ";", "i", "+", "+", ")", "{", "path", "long", "path", "=", "path", "of", "depth", "(", "batch", "size", ",", "path", "key", ",", "string", "value", "of", "(", "i", ")", ")", ";", "s", "3", "a", "file", "status", "status", "=", "basic", "file", "status", "(", "long", "path", ",", "0", ",", "false", ",", "12345", ")", ";", "path", "metadata", "pm", "=", "new", "path", "metadata", "(", "status", ")", ";", "synchronized", "(", "to", "cleanup", ")", "{", "to", "cleanup", "add", "(", "pm", ")", ";", "}", "ddbms", "put", "(", "pm", ",", "null", ")", ";", "prune", "items", "+", "+", ";", "if", "(", "prune", "items", "=", "=", "batch", "size", ")", "{", "describe", "(", "\"", "pruning", "files", "\"", ")", ";", "ddbms", "prune", "(", "metadata", "store", "prune", "mode", "all", "by", "modtime", ",", "long", "max", "value", ",", "path", "key", ")", ";", "prune", "items", "=", "0", ";", "}", "if", "(", "tracker", "probe", "(", ")", ")", "{", "/", "/", "fail", "fast", "break", ";", "}", "}", "}", ")", ";", "if", "(", "expect", "throttling", "(", ")", "&", "&", "result", "probe", "throttling", "detected", "(", ")", ")", "{", "recover", "from", "throttling", "(", ")", ";", "}", "}", "finally", "{", "describe", "(", "\"", "cleaning", "up", "table", "%", "s", "\"", ",", "table", "name", ")", ";", "for", "(", "path", "metadata", "pm", ":", "to", "cleanup", ")", "{", "cleanup", "metadata", "(", "ddbms", ",", "pm", ")", ";", "}", "}", "}" ]
[ "{", "@", "inherit", "doc", "}", "this", "implementation", "returns", "{", "@", "code", "null", "}" ]
[ "public", "message", "codes", "resolver", "get", "message", "codes", "resolver", "(", ")", "{", "return", "null", ";", "}" ]
[ "<", "code", ">", "filter", "to", "name", "<", "code", ">", "returns", "the", "string", "associated", "with", "an", "individual", "(", "primary", ")", "merge", "difference", "setting" ]
[ "public", "static", "string", "filter", "to", "name", "(", "int", "type", ")", "{", "switch", "(", "type", ")", "{", "case", "ignore", ":", "return", "\"", "ignore", "\"", ";", "case", "replace", ":", "return", "\"", "replace", "\"", ";", "case", "merge", ":", "return", "\"", "merge", "\"", ";", "default", ":", "return", "\"", "\"", ";", "}", "}" ]
[ "returns", "all", "resources", "loadable", "from", "the", "current", "class", "path", ",", "including", "the", "class", "files", "of", "all", "loadable", "classes", "but", "excluding", "the", "\"", "meta", "-", "infmanifest", "mf", "\"", "file" ]
[ "public", "immutable", "set", "<", "resource", "info", ">", "get", "resources", "(", ")", "{", "return", "resources", ";", "}" ]
[ "returns", "the", "path", "to", "the", "location", "of", "the", "input", "file", "(", "which", "is", "necessarily", "within", "the", "source", "tree", ",", "not", "beneath", "<", "code", ">", "bin", "<", "code", ">", "or", "<", "code", ">", "genfiles", "<", "code", ">", "prefer", "{", "@", "link", "#", "get", "exec", "path", "}", "if", "possible" ]
[ "public", "path", "get", "path", "(", ")", "{", "return", "pkg", "get", "package", "directory", "(", ")", "get", "relative", "(", "label", "get", "name", "(", ")", ")", ";", "}" ]
[ "a", "test", "case", "that", "has", "a", "timer", "attached", "to", "the", "subprocess", ",", "where", "2", "concurrent", "paths", "are", "defined", "when", "the", "timer", "fires" ]
[ "public", "void", "ignore", "test", "simple", "sub", "process", "with", "concurrent", "timer", "(", ")", "{", "/", "/", "after", "staring", "the", "process", ",", "the", "task", "in", "the", "subprocess", "should", "be", "active", "process", "instance", "pi", "=", "runtime", "service", "start", "process", "instance", "by", "key", "(", "\"", "simple", "sub", "process", "with", "concurrent", "timer", "\"", ")", ";", "task", "query", "task", "query", "=", "task", "service", "create", "task", "query", "(", ")", "process", "instance", "id", "(", "pi", "get", "id", "(", ")", ")", "order", "by", "task", "name", "(", ")", "asc", "(", ")", ";", "task", "sub", "process", "task", "=", "task", "query", "single", "result", "(", ")", ";", "assert", "that", "(", "sub", "process", "task", "get", "name", "(", ")", ")", "is", "equal", "to", "(", "\"", "task", "in", "subprocess", "\"", ")", ";", "/", "/", "when", "the", "timer", "is", "fired", "(", "after", "2", "hours", ")", ",", "two", "concurrent", "paths", "should", "be", "created", "job", "job", "=", "management", "service", "create", "job", "query", "(", ")", "single", "result", "(", ")", ";", "management", "service", "execute", "job", "(", "job", "get", "id", "(", ")", ")", ";", "list", "<", "task", ">", "tasks", "after", "timer", "=", "task", "query", "list", "(", ")", ";", "assert", "that", "(", "tasks", "after", "timer", ")", "has", "size", "(", "2", ")", ";", "task", "task", "after", "timer", "1", "=", "tasks", "after", "timer", "get", "(", "0", ")", ";", "task", "task", "after", "timer", "2", "=", "tasks", "after", "timer", "get", "(", "1", ")", ";", "assert", "that", "(", "task", "after", "timer", "1", "get", "name", "(", ")", ")", "is", "equal", "to", "(", "\"", "task", "after", "timer", "1", "\"", ")", ";", "assert", "that", "(", "task", "after", "timer", "2", "get", "name", "(", ")", ")", "is", "equal", "to", "(", "\"", "task", "after", "timer", "2", "\"", ")", ";", "/", "/", "completing", "the", "two", "tasks", "should", "end", "the", "process", "instance", "task", "service", "complete", "(", "task", "after", "timer", "1", "get", "id", "(", ")", ")", ";", "task", "service", "complete", "(", "task", "after", "timer", "2", "get", "id", "(", ")", ")", ";", "assert", "process", "ended", "(", "pi", "get", "id", "(", ")", ")", ";", "}" ]
[ "updates", "selection", "to", "[", "selection", "start", ",", "selection", "end", "]", "range" ]
[ "private", "void", "set", "selection", "(", "int", "selection", "start", ",", "int", "selection", "end", ")", "{", "if", "(", "color", "alpha", "(", "m", "highlight", "color", ")", "=", "=", "0", "|", "|", "(", "m", "selection", "start", "=", "=", "selection", "start", "&", "&", "m", "selection", "end", "=", "=", "selection", "end", ")", ")", "{", "return", ";", "}", "m", "selection", "start", "=", "selection", "start", ";", "m", "selection", "end", "=", "selection", "end", ";", "if", "(", "m", "highlight", "paint", "=", "=", "null", ")", "{", "m", "highlight", "paint", "=", "new", "paint", "(", ")", ";", "m", "highlight", "paint", "set", "color", "(", "m", "highlight", "color", ")", ";", "}", "else", "{", "m", "highlight", "paint", "set", "color", "(", "m", "highlight", "color", ")", ";", "}", "m", "selection", "path", "needs", "update", "=", "true", ";", "invalidate", "self", "(", ")", ";", "}" ]
[ "returns", "the", "{", "@", "link", "view", "descriptor", "}", "instances", "that", "can", "be", "instantiated", "for", "the", "{", "@", "link", "view", "group", "}", "in", "the", "current", "{", "@", "link", "stapler", "request", "}", "note", ":", "historically", "this", "method", "is", "only", "ever", "called", "from", "a", "{", "@", "link", "stapler", "request", "}" ]
[ "public", "static", "list", "<", "view", "descriptor", ">", "all", "instantiable", "(", ")", "{", "list", "<", "view", "descriptor", ">", "r", "=", "new", "array", "list", "<", ">", "(", ")", ";", "stapler", "request", "request", "=", "stapler", "get", "current", "request", "(", ")", ";", "if", "(", "request", "=", "=", "null", ")", "{", "throw", "new", "illegal", "state", "exception", "(", "\"", "this", "method", "can", "only", "be", "invoked", "from", "a", "stapler", "request", "\"", ")", ";", "}", "view", "group", "owner", "=", "request", "find", "ancestor", "object", "(", "view", "group", "class", ")", ";", "if", "(", "owner", "=", "=", "null", ")", "{", "throw", "new", "illegal", "state", "exception", "(", "\"", "this", "method", "can", "only", "be", "invoked", "from", "a", "request", "with", "a", "view", "group", "ancestor", "\"", ")", ";", "}", "for", "(", "view", "descriptor", "d", ":", "descriptor", "visibility", "filter", "apply", "(", "owner", ",", "all", "(", ")", ")", ")", "{", "if", "(", "d", "is", "applicable", "in", "(", "owner", ")", "&", "&", "d", "is", "instantiable", "(", ")", "&", "&", "owner", "get", "a", "c", "l", "(", ")", "has", "create", "permission", "2", "(", "jenkins", "get", "authentication", "2", "(", ")", ",", "owner", ",", "d", ")", ")", "{", "r", "add", "(", "d", ")", ";", "}", "}", "return", "r", ";", "}" ]
[ "sets", "the", "default", "value", "for", "{", "@", "code", "type", "}", "the", "default", "value", "isn", "'", "t", "used", "in", "testing", "{", "@", "link", "object", "#", "equals", "}", "because", "more", "than", "one", "sample", "instances", "are", "needed", "for", "testing", "inequality", "to", "set", "distinct", "values", "for", "equality", "testing", ",", "use", "{", "@", "link", "#", "set", "distinct", "values", "}", "instead" ]
[ "public", "<", "t", ">", "class", "sanity", "tester", "set", "default", "(", "class", "<", "t", ">", "type", ",", "t", "value", ")", "{", "null", "pointer", "tester", "set", "default", "(", "type", ",", "value", ")", ";", "default", "values", "put", "instance", "(", "type", ",", "value", ")", ";", "return", "this", ";", "}" ]
[ "recursively", "deletes", "all", "children" ]
[ "public", "void", "clear", "entries", "(", ")", "throws", "exception", "{", "final", "string", "path", "=", "\"", "/", "\"", "+", "client", "get", "namespace", "(", ")", ";", "log", "info", "(", "\"", "removing", "{", "}", "from", "zoo", "keeper", "\"", ",", "path", ")", ";", "z", "k", "paths", "delete", "children", "(", "client", "get", "zookeeper", "client", "(", ")", "get", "zoo", "keeper", "(", ")", ",", "path", ",", "true", ")", ";", "}" ]
[ "resolve", "schema", "compatibility", "given", "an", "instance", "of", "a", "{", "@", "code", "type", "serializer", "config", "snapshot", "}", "this", "method", "should", "redirect", "the", "compatibility", "check", "to", "the", "new", "{", "@", "code", "type", "serializer", "snapshot", "}", "class", "along", "with", "the", "relevant", "information", "as", "present", "in", "the", "given", "{", "@", "code", "deprecated", "config", "snapshot", "}" ]
[ "type", "serializer", "schema", "compatibility", "<", "e", ">", "resolve", "schema", "compatibility", "via", "redirecting", "to", "new", "snapshot", "class", "(", "type", "serializer", "config", "snapshot", "<", "e", ">", "deprecated", "config", "snapshot", ")", ";" ]
[ "returns", "a", "copy", "of", "the", "environment", "with", "the", "given", "fixed", "variables", "added", "to", "it", ",", "overwriting", "any", "existing", "occurrences", "of", "those", "variables" ]
[ "public", "action", "environment", "add", "fixed", "variables", "(", "map", "<", "string", ",", "string", ">", "vars", ")", "{", "return", "new", "action", "environment", "(", "new", "compound", "environment", "variables", "(", "vars", ",", "fixed", "env", ")", ",", "inherited", "env", ")", ";", "}" ]
[ "the", "timing", "breakdown", "for", "this", "node" ]
[ "public", "map", "<", "string", ",", "long", ">", "get", "time", "breakdown", "(", ")", "{", "return", "collections", "unmodifiable", "map", "(", "breakdown", ")", ";", "}" ]
[ "returns", "the", "plate", "comment", "at", "the", "specified", "address", ",", "as", "rendered", "comments", "support", "annotations", ",", "which", "are", "displayed", "differently", "than", "the", "raw", "text", "if", "you", "want", "the", "raw", "text", ",", "then", "you", "must", "call", "{", "@", "link", "#", "get", "plate", "comment", "(", "address", ")", "}", "this", "method", "returns", "the", "text", "as", "seen", "in", "the", "display" ]
[ "public", "string", "get", "plate", "comment", "as", "rendered", "(", "address", "address", ")", "{", "string", "comment", "=", "current", "program", "get", "listing", "(", ")", "get", "comment", "(", "code", "unit", "plate", "comment", ",", "address", ")", ";", "plugin", "tool", "tool", "=", "state", "get", "tool", "(", ")", ";", "if", "(", "tool", "!", "=", "null", ")", "{", "comment", "=", "comment", "utils", "get", "display", "string", "(", "comment", ",", "current", "program", ")", ";", "}", "return", "comment", ";", "}" ]
[ "obtain", "a", "remote", "instance", "of", "the", "ghidra", "server", "handle", "object" ]
[ "public", "static", "ghidra", "server", "handle", "get", "ghidra", "server", "handle", "(", "server", "info", "server", ")", "throws", "i", "o", "exception", "{", "ghidra", "server", "handle", "gsh", "=", "null", ";", "try", "{", "/", "/", "test", "ssl", "handshake", "to", "ensure", "that", "user", "is", "able", "to", "decrypt", "keystore", "/", "/", "this", "is", "intended", "to", "work", "around", "an", "rmi", "issue", "where", "a", "continuous", "/", "/", "retry", "condition", "can", "occur", "when", "a", "user", "cancels", "the", "password", "entry", "/", "/", "for", "their", "keystore", "which", "should", "cancel", "any", "connection", "attempt", "test", "server", "s", "s", "l", "connection", "(", "server", ")", ";", "registry", "reg", ";", "try", "{", "/", "/", "attempt", "to", "connect", "with", "older", "ghidra", "server", "registry", "without", "using", "ssl", "/", "tls", "reg", "=", "locate", "registry", "get", "registry", "(", "server", "get", "server", "name", "(", ")", ",", "server", "get", "port", "number", "(", ")", ")", ";", "check", "server", "bind", "names", "(", "reg", ")", ";", "}", "catch", "(", "i", "o", "exception", "e", ")", "{", "reg", "=", "locate", "registry", "get", "registry", "(", "server", "get", "server", "name", "(", ")", ",", "server", "get", "port", "number", "(", ")", ",", "new", "ssl", "r", "m", "i", "client", "socket", "factory", "(", ")", ")", ";", "check", "server", "bind", "names", "(", "reg", ")", ";", "}", "gsh", "=", "(", "ghidra", "server", "handle", ")", "reg", "lookup", "(", "ghidra", "server", "handle", "bind", "name", ")", ";", "gsh", "check", "compatibility", "(", "ghidra", "server", "handle", "interface", "version", ")", ";", "}", "catch", "(", "not", "bound", "exception", "e", ")", "{", "throw", "new", "i", "o", "exception", "(", "e", "get", "message", "(", ")", ")", ";", "}", "catch", "(", "s", "s", "l", "handshake", "exception", "e", ")", "{", "if", "(", "is", "s", "s", "l", "handshake", "cancelled", "(", "e", ")", ")", "{", "return", "null", ";", "}", "throw", "e", ";", "}", "catch", "(", "remote", "exception", "e", ")", "{", "throwable", "cause", "=", "e", "get", "cause", "(", ")", ";", "if", "(", "cause", "instanceof", "unmarshal", "exception", "|", "|", "cause", "instanceof", "class", "not", "found", "exception", ")", "{", "throw", "new", "remote", "exception", "(", "\"", "incompatible", "ghidra", "server", "interface", "version", "\"", ")", ";", "}", "if", "(", "cause", "instanceof", "s", "s", "l", "handshake", "exception", ")", "{", "if", "(", "is", "s", "s", "l", "handshake", "cancelled", "(", "(", "s", "s", "l", "handshake", "exception", ")", "cause", ")", ")", "{", "return", "null", ";", "}", "}", "throw", "e", ";", "}", "return", "gsh", ";", "}" ]
[ "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", "\"", ")", ";", "}" ]
[ "create", "a", "new", "{", "@", "link", "children", "}", "aggregation", "with", "the", "given", "name" ]
[ "public", "static", "children", "aggregation", "builder", "children", "(", "string", "name", ",", "string", "child", "type", ")", "{", "return", "new", "children", "aggregation", "builder", "(", "name", ",", "child", "type", ")", ";", "}" ]
[ "same", "as", "{", "@", "link", "#", "add", "string", "(", "string", ")", "}", ",", "except", "considers", "nullability" ]
[ "public", "fingerprint", "add", "nullable", "string", "(", "@", "nullable", "string", "input", ")", "{", "if", "(", "input", "=", "=", "null", ")", "{", "add", "boolean", "(", "false", ")", ";", "}", "else", "{", "add", "boolean", "(", "true", ")", ";", "add", "string", "(", "input", ")", ";", "}", "return", "this", ";", "}" ]
[ "returns", "a", "{", "@", "link", "name", "resolver", "factory", "}", "for", "the", "channel" ]
[ "name", "resolver", "factory", "get", "name", "resolver", "factory", "(", ")", "{", "if", "(", "authority", "override", "=", "=", "null", ")", "{", "return", "name", "resolver", "factory", ";", "}", "else", "{", "return", "new", "override", "authority", "name", "resolver", "factory", "(", "name", "resolver", "factory", ",", "authority", "override", ")", ";", "}", "}" ]
[ "if", "this", "is", "a", "compiled", "xml", "file", ",", "this", "is", "the", "root", "node", "<", "code", ">", "optional", "aapt", "pb", "xml", "node", "xml", "root", "=", "5", ";", "<", "code", ">" ]
[ "public", "builder", "clear", "xml", "root", "(", ")", "{", "copy", "on", "write", "(", ")", ";", "instance", "clear", "xml", "root", "(", ")", ";", "return", "this", ";", "}" ]
[ "test", "the", "property", "'", "class", "name", "'" ]
[ "public", "void", "class", "name", "test", "(", ")", "{", "/", "/", "todo", ":", "test", "class", "name", "}" ]
[ "writes", "the", "allocated", "bytes", "for", "this", "stream", "any", "{", "@", "link", "throwable", "}", "thrown", "from", "this", "method", "is", "considered", "a", "programming", "error", "a", "{", "@", "code", "goaway", "}", "frame", "will", "be", "sent", "and", "the", "will", "be", "connection", "closed" ]
[ "void", "write", "(", "http", "2", "stream", "stream", ",", "int", "num", "bytes", ")", ";" ]
[ "imports", "a", "library", "file", "into", "a", "ghidra", "project", "use", "this", "method", "if", "you", "already", "have", "a", "{", "@", "link", "byte", "provider", "}", "available" ]
[ "protected", "boolean", "import", "library", "(", "string", "lib", "name", ",", "domain", "folder", "lib", "folder", ",", "file", "lib", "file", ",", "byte", "provider", "provider", ",", "load", "spec", "load", "spec", ",", "list", "<", "option", ">", "options", ",", "message", "log", "log", ",", "object", "consumer", ",", "set", "<", "string", ">", "unprocessed", "libs", ",", "list", "<", "program", ">", "program", "list", ",", "task", "monitor", "monitor", ")", "throws", "cancelled", "exception", ",", "i", "o", "exception", "{", "program", "lib", "=", "null", ";", "int", "size", "=", "load", "spec", "get", "language", "compiler", "spec", "(", ")", "get", "language", "description", "(", ")", "get", "size", "(", ")", ";", "load", "spec", "lib", "load", "spec", "=", "get", "load", "spec", "(", "load", "spec", ",", "provider", ")", ";", "if", "(", "lib", "load", "spec", "=", "=", "null", ")", "{", "log", "append", "msg", "(", "\"", "skipping", "library", "which", "is", "the", "wrong", "architecture", ":", "\"", "+", "lib", "file", ")", ";", "return", "false", ";", "}", "if", "(", "!", "is", "load", "libraries", "(", "options", ")", ")", "{", "/", "/", "todo", ":", "library", "lookup", "table", "support", "currently", "assumes", "windows", "for", "x", "8", "6", "(", "32", "or", "64", "bit", ")", "/", "/", "need", "to", "investigate", "adding", "support", "for", "other", "architectures", "if", "(", "library", "lookup", "table", "has", "file", "and", "path", "and", "time", "stamp", "match", "(", "lib", "file", ",", "size", ")", ")", "{", "return", "true", ";", "/", "/", "no", "need", "to", "really", "import", "it", "}", "else", "if", "(", "library", "lookup", "table", "library", "lookup", "table", "file", "exists", "(", "lib", "name", ",", "size", ")", ")", "{", "log", "append", "msg", "(", "\"", "warning", "!", "using", "existing", "exports", "file", "for", "\"", "+", "lib", "name", "+", "\"", "which", "may", "not", "be", "an", "exact", "match", "\"", ")", ";", "return", "true", ";", "/", "/", "pretend", "it", "was", "imported", "to", "prevent", "it", "from", "giving", "up", "the", "related", "imports", "}", "}", "lib", "=", "do", "load", "(", "provider", ",", "lib", "name", ",", "lib", "folder", ",", "lib", "load", "spec", ",", "options", ",", "log", ",", "consumer", ",", "monitor", ",", "unprocessed", "libs", ")", ";", "if", "(", "lib", "=", "=", "null", ")", "{", "log", "append", "msg", "(", "\"", "library", "\"", "+", "lib", "file", "+", "\"", "failed", "to", "load", "for", "some", "reason", "\"", ")", ";", "return", "false", ";", "}", "create", "exports", "file", "(", "lib", "name", ",", "lib", "file", ",", "log", ",", "monitor", ",", "size", ",", "lib", ")", ";", "if", "(", "is", "load", "libraries", "(", "options", ")", ")", "{", "program", "list", "add", "(", "lib", ")", ";", "}", "else", "{", "lib", "release", "(", "consumer", ")", ";", "}", "return", "true", ";", "}" ]
[ "returns", "{", "@", "code", "true", "}", "if", "there", "is", "at", "least", "one", "node", "that", "returned", "a", "{", "@", "link", "type", "#", "yes", "}", "decision", "for", "allocating", "this", "shard" ]
[ "protected", "boolean", "at", "least", "one", "node", "with", "yes", "decision", "(", ")", "{", "if", "(", "node", "decisions", "=", "=", "null", ")", "{", "return", "false", ";", "}", "for", "(", "node", "allocation", "result", "result", ":", "node", "decisions", ")", "{", "if", "(", "result", "get", "node", "decision", "(", ")", "=", "=", "allocation", "decision", "yes", ")", "{", "return", "true", ";", "}", "}", "return", "false", ";", "}" ]
[ "get", "the", "first", "record", "whoose", "key", "is", "less", "than", "or", "equal", "to", "the", "specified", "key" ]
[ "d", "b", "record", "get", "record", "at", "or", "before", "(", "long", "key", ",", "schema", "schema", ")", "throws", "i", "o", "exception", "{", "int", "index", "=", "get", "key", "index", "(", "key", ")", ";", "if", "(", "index", "<", "0", ")", "{", "index", "=", "-", "index", "-", "2", ";", "}", "if", "(", "index", "<", "0", ")", "{", "long", "key", "record", "node", "next", "leaf", "=", "get", "previous", "leaf", "(", ")", ";", "return", "next", "leaf", "!", "=", "null", "?", "next", "leaf", "get", "record", "(", "schema", ",", "next", "leaf", "key", "count", "-", "1", ")", ":", "null", ";", "}", "return", "get", "record", "(", "schema", ",", "index", ")", ";", "}" ]
[ "find", "the", "fields", "constant", "that", "matches", "field", "id", ",", "or", "null", "if", "its", "not", "found" ]
[ "public", "static", "fields", "find", "by", "thrift", "id", "(", "int", "field", "id", ")", "{", "switch", "(", "field", "id", ")", "{", "case", "1", ":", "/", "/", "category", "return", "category", ";", "case", "2", ":", "/", "/", "message", "return", "message", ";", "default", ":", "return", "null", ";", "}", "}" ]
[ "set", "the", "{", "@", "code", "tcp", "md5sig", "}", "option", "on", "the", "socket", "see", "{", "@", "code", "linuxtcp", "h", "}", "for", "more", "details", "keys", "can", "only", "be", "set", "on", ",", "not", "read", "to", "prevent", "a", "potential", "leak", ",", "as", "they", "are", "confidential", "allowing", "them", "being", "read", "would", "mean", "anyone", "with", "access", "to", "the", "channel", "could", "get", "them" ]
[ "public", "epoll", "server", "socket", "channel", "config", "set", "tcp", "md", "5", "sig", "(", "map", "<", "inet", "address", ",", "byte", "[", "]", ">", "keys", ")", "{", "try", "{", "(", "(", "epoll", "server", "socket", "channel", ")", "channel", ")", "set", "tcp", "md", "5", "sig", "(", "keys", ")", ";", "return", "this", ";", "}", "catch", "(", "i", "o", "exception", "e", ")", "{", "throw", "new", "channel", "exception", "(", "e", ")", ";", "}", "}" ]
[ "resets", "the", "instruction", "pointer", "and", "clears", "the", "last", "match", "cache", "data" ]
[ "public", "void", "reset", "match", "(", ")", "{", "reset", "(", ")", ";", "abstract", "insn", "node", "[", "]", "match", "=", "last", "match", ";", "last", "match", "=", "new", "abstract", "insn", "node", "[", "match", "length", "]", ";", "}" ]
[ "\"", "executes", "\"", "the", "given", "action", "from", "the", "point", "of", "view", "of", "the", "cache", "'", "s", "lifecycle" ]
[ "private", "void", "run", "action", "(", "action", "action", ")", "throws", "exception", "{", "run", "action", "(", "action", ",", "new", "hash", "map", "<", ">", "(", ")", ")", ";", "}" ]
[ "expose", "files", "to", "the", "url" ]
[ "public", "list", "<", "hs", "err", "pid", "file", ">", "get", "files", "(", ")", "{", "return", "files", ";", "}" ]
[ "get", "the", "{", "@", "link", "url", "urls", "}", "that", "{", "@", "link", "dubbo", "metadata", "service", "}", "exported", "by", "the", "specified", "{", "@", "link", "service", "instance", "}" ]
[ "public", "list", "<", "url", ">", "get", "dubbo", "metadata", "service", "u", "r", "ls", "(", "service", "instance", "service", "instance", ")", "{", "map", "<", "string", ",", "string", ">", "metadata", "=", "service", "instance", "get", "metadata", "(", ")", ";", "string", "dubbo", "u", "r", "ls", "j", "s", "o", "n", "=", "metadata", "get", "(", "metadata", "service", "urls", "property", "name", ")", ";", "return", "json", "utils", "to", "u", "r", "ls", "(", "dubbo", "u", "r", "ls", "j", "s", "o", "n", ")", ";", "}" ]
[ "indicate", "whether", "connections", "obtained", "from", "the", "target", "factory", "are", "supposed", "to", "be", "stopped", "before", "closed", "(", "\"", "true", "\"", ")", "or", "simply", "closed", "(", "\"", "false", "\"", ")", "an", "extra", "stop", "call", "may", "be", "necessary", "for", "some", "connection", "pools", "that", "simply", "return", "released", "connections", "to", "the", "pool", ",", "not", "stopping", "them", "while", "they", "sit", "in", "the", "pool", "default", "is", "\"", "false", "\"", ",", "simply", "closing", "connections" ]
[ "public", "void", "set", "should", "stop", "connections", "(", "boolean", "should", "stop", "connections", ")", "{", "this", "should", "stop", "connections", "=", "should", "stop", "connections", ";", "}" ]
[ "return", "the", "persistent", "instance", "of", "the", "given", "entity", "class", "with", "the", "given", "identifier", ",", "throwing", "an", "exception", "if", "not", "found", "this", "method", "is", "a", "thin", "wrapper", "around", "{", "@", "link", "org", "hibernate", "session", "#", "load", "(", "string", ",", "serializable", ")", "}", "for", "convenience", "for", "an", "explanation", "of", "the", "exact", "semantics", "of", "this", "method", ",", "please", "do", "refer", "to", "the", "hibernate", "api", "documentation", "in", "the", "first", "instance" ]
[ "object", "load", "(", "string", "entity", "name", ",", "serializable", "id", ")", "throws", "data", "access", "exception", ";" ]
[ "performs", "key", "-", "value", "loop", "up", "in", "staging", "area", "and", "file", "cache", "any", "error", "manifests", "itself", "as", "a", "miss", ",", "i", "e", "returns", "false" ]
[ "private", "boolean", "check", "in", "staging", "area", "and", "file", "cache", "(", "final", "cache", "key", "key", ")", "{", "encoded", "image", "result", "=", "m", "staging", "area", "get", "(", "key", ")", ";", "if", "(", "result", "!", "=", "null", ")", "{", "result", "close", "(", ")", ";", "f", "log", "v", "(", "tag", ",", "\"", "found", "image", "for", "%", "s", "in", "staging", "area", "\"", ",", "key", "get", "uri", "string", "(", ")", ")", ";", "m", "image", "cache", "stats", "tracker", "on", "staging", "area", "hit", "(", "key", ")", ";", "return", "true", ";", "}", "else", "{", "f", "log", "v", "(", "tag", ",", "\"", "did", "not", "find", "image", "for", "%", "s", "in", "staging", "area", "\"", ",", "key", "get", "uri", "string", "(", ")", ")", ";", "m", "image", "cache", "stats", "tracker", "on", "staging", "area", "miss", "(", "key", ")", ";", "try", "{", "return", "m", "file", "cache", "has", "key", "(", "key", ")", ";", "}", "catch", "(", "exception", "exception", ")", "{", "return", "false", ";", "}", "}", "}" ]
[ "is", "the", "authentication", "method", "of", "this", "configuration", "\"", "simple", "\"", "?" ]
[ "protected", "boolean", "is", "simple", "authentication", "(", "configuration", "conf", ")", "{", "return", "security", "util", "get", "authentication", "method", "(", "conf", ")", "equals", "(", "authentication", "method", "simple", ")", ";", "}" ]