docstring_tokens
list
code_tokens
list
[ "get", "the", "{", "@", "link", "raw", "comparator", "}", "comparator", "used", "to", "compare", "keys" ]
[ "public", "raw", "comparator", "get", "output", "key", "comparator", "(", ")", "{", "class", "<", "?", "extends", "raw", "comparator", ">", "the", "class", "=", "get", "class", "(", "job", "context", "key", "comparator", ",", "null", ",", "raw", "comparator", "class", ")", ";", "if", "(", "the", "class", "!", "=", "null", ")", "return", "reflection", "utils", "new", "instance", "(", "the", "class", ",", "this", ")", ";", "return", "writable", "comparator", "get", "(", "get", "map", "output", "key", "class", "(", ")", "as", "subclass", "(", "writable", "comparable", "class", ")", ",", "this", ")", ";", "}" ]
[ "number", "of", "shards", "with", "the", "snapshot", "in", "the", "initializing", "stage" ]
[ "public", "int", "get", "initializing", "shards", "(", ")", "{", "return", "initializing", "shards", ";", "}" ]
[ "{", "@", "link", "cluster", "node", "}", "holds", "total", "statistics", "of", "the", "same", "resource", "name" ]
[ "public", "static", "node", "vo", "from", "cluster", "node", "(", "string", "name", ",", "cluster", "node", "node", ")", "{", "if", "(", "node", "=", "=", "null", ")", "{", "return", "null", ";", "}", "node", "vo", "vo", "=", "new", "node", "vo", "(", ")", ";", "vo", "resource", "=", "name", ";", "vo", "thread", "num", "=", "node", "cur", "thread", "num", "(", ")", ";", "vo", "pass", "qps", "=", "(", "long", ")", "node", "pass", "qps", "(", ")", ";", "vo", "block", "qps", "=", "(", "long", ")", "node", "block", "qps", "(", ")", ";", "vo", "total", "qps", "=", "(", "long", ")", "node", "total", "qps", "(", ")", ";", "vo", "average", "rt", "=", "(", "long", ")", "node", "avg", "rt", "(", ")", ";", "vo", "success", "qps", "=", "(", "long", ")", "node", "success", "qps", "(", ")", ";", "vo", "exception", "qps", "=", "(", "long", ")", "node", "exception", "qps", "(", ")", ";", "vo", "one", "minute", "exception", "=", "node", "total", "exception", "(", ")", ";", "vo", "one", "minute", "pass", "=", "node", "total", "request", "(", ")", "-", "node", "block", "request", "(", ")", ";", "vo", "one", "minute", "block", "=", "node", "block", "request", "(", ")", ";", "vo", "one", "minute", "total", "=", "node", "total", "request", "(", ")", ";", "vo", "timestamp", "=", "system", "current", "time", "millis", "(", ")", ";", "return", "vo", ";", "}" ]
[ "add", "a", "new", "log", "entry", "to", "the", "local", "storage" ]
[ "public", "void", "add", "entry", "(", "string", "log", "type", ",", "log", "entry", "entry", ")", "{", "if", "(", "!", "log", "types", "to", "include", "contains", "(", "log", "type", ")", ")", "{", "return", ";", "}", "if", "(", "!", "local", "logs", "contains", "key", "(", "log", "type", ")", ")", "{", "list", "<", "log", "entry", ">", "entries", "=", "new", "array", "list", "<", ">", "(", ")", ";", "entries", "add", "(", "entry", ")", ";", "local", "logs", "put", "(", "log", "type", ",", "entries", ")", ";", "}", "else", "{", "local", "logs", "get", "(", "log", "type", ")", "add", "(", "entry", ")", ";", "}", "}" ]
[ "check", "whether", "the", "given", "hostrack", "string", "represents", "an", "arbitrary", "host", "name" ]
[ "public", "static", "boolean", "is", "any", "location", "(", "string", "host", "name", ")", "{", "return", "any", "equals", "(", "host", "name", ")", ";", "}" ]
[ "takes", "the", "existing", "docking", "action", "and", "allows", "it", "to", "be", "registered", "with", "swing", "components", "the", "new", "action", "will", "not", "be", "correctly", "wired", "into", "the", "docking", "action", "context", "system", "this", "means", "that", "the", "given", "docking", "action", "should", "not", "rely", "on", "{", "@", "link", "docking", "action", "#", "is", "enabled", "for", "context", "(", "docking", "action", "context", ")", "}", "to", "work", "when", "called", "from", "the", "swing", "widget" ]
[ "public", "static", "action", "adapt", "docking", "action", "to", "non", "context", "action", "(", "docking", "action", "action", ")", "{", "return", "new", "action", "adapter", "(", "action", ")", ";", "}" ]
[ "returns", "the", "current", "{", "@", "link", "recovery", "state", "}", "if", "this", "shard", "is", "recovering", "or", "has", "been", "recovering", "returns", "null", "if", "the", "recovery", "has", "not", "yet", "started", "or", "shard", "was", "not", "recovered", "(", "created", "via", "an", "api", ")" ]
[ "public", "recovery", "state", "recovery", "state", "(", ")", "{", "return", "this", "recovery", "state", ";", "}" ]
[ "set", "the", "credentials", "if", "this", "is", "not", "used", "then", "the", "credentials", "are", "picked", "up", "from", "the", "environment", "variables" ]
[ "public", "pub", "sub", "source", "builder", "<", "out", ">", "with", "credentials", "(", "credentials", "credentials", ")", "{", "this", "credentials", "=", "credentials", ";", "return", "this", ";", "}" ]
[ "test", ":", "1", "hash", "arrays", "different", "size", "expected", "result", ":", "not", "equal" ]
[ "public", "void", "test", "equality", "9", "(", ")", "{", "hash", "entry", "[", "]", "hash", "entries", "1", "=", "new", "hash", "entry", "[", "]", "{", "entry", "1", ",", "entry", "2", "}", ";", "hash", "entry", "[", "]", "hash", "entries", "2", "=", "new", "hash", "entry", "[", "]", "{", "entry", "1", ",", "entry", "1", ",", "entry", "2", "}", ";", "vec", "1", "set", "hash", "entries", "(", "hash", "entries", "1", ")", ";", "vec", "2", "set", "hash", "entries", "(", "hash", "entries", "2", ")", ";", "assert", "assert", "false", "(", "\"", "failed", "to", "distinguish", "between", "different", "size", "vectors", "\"", ",", "vec", "1", "equals", "(", "vec", "2", ")", ")", ";", "}" ]
[ "estimation", "of", "the", "memory", "usage", "by", "version", "map" ]
[ "public", "long", "get", "version", "map", "memory", "in", "bytes", "(", ")", "{", "return", "this", "version", "map", "memory", "in", "bytes", ";", "}" ]
[ "sets", "the", "{", "@", "link", "queue", "navigator", "}", "to", "handle", "queue", "navigation", "actions", "{", "@", "code", "action", "skip", "to", "next", "}", ",", "{", "@", "code", "action", "skip", "to", "previous", "}", "and", "{", "@", "code", "action", "skip", "to", "queue", "item", "}" ]
[ "public", "void", "set", "queue", "navigator", "(", "@", "nullable", "queue", "navigator", "queue", "navigator", ")", "{", "if", "(", "this", "queue", "navigator", "!", "=", "queue", "navigator", ")", "{", "unregister", "command", "receiver", "(", "this", "queue", "navigator", ")", ";", "this", "queue", "navigator", "=", "queue", "navigator", ";", "register", "command", "receiver", "(", "queue", "navigator", ")", ";", "}", "}" ]
[ "adds", "environment", "variables", "for", "the", "given", "action", "to", "the", "provided", "builder" ]
[ "private", "void", "expand", "environment", "(", "string", "action", ",", "cc", "toolchain", "variables", "variables", ",", "set", "<", "string", ">", "enabled", "feature", "names", ",", "immutable", "map", "builder", "<", "string", ",", "string", ">", "env", "builder", ")", "throws", "expansion", "exception", "{", "for", "(", "env", "set", "env", "set", ":", "env", "sets", ")", "{", "env", "set", "expand", "environment", "(", "action", ",", "variables", ",", "enabled", "feature", "names", ",", "env", "builder", ")", ";", "}", "}" ]
[ "get", "prefix", "ns", "integer" ]
[ "public", "integer", "get", "prefix", "ns", "integer", "(", ")", "{", "return", "prefix", "ns", "integer", ";", "}" ]
[ "simulates", "a", "location", "change", "on", "the", "listing", "so", "the", "dialog", "thinks", "the", "user", "has", "navigated", "to", "a", "function" ]
[ "private", "void", "navigate", "to", "function", "(", "function", "tag", "provider", "provider", ")", "{", "function", "iterator", "iter", "=", "program", "get", "function", "manager", "(", ")", "get", "functions", "(", "true", ")", ";", "while", "(", "iter", "has", "next", "(", ")", ")", "{", "function", "func", "=", "iter", "next", "(", ")", ";", "address", "addr", "=", "func", "get", "entry", "point", "(", ")", ";", "program", "location", "loc", "=", "new", "program", "location", "(", "program", ",", "addr", ")", ";", "provider", "location", "changed", "(", "loc", ")", ";", "/", "/", "we", "only", "need", "to", "find", "one", "function", ",", "so", "exit", "after", "we", "'", "ve", "got", "one", "return", ";", "}", "}" ]
[ "required", ":", "service", "discovery", "mode", "for", "the", "hosts", "care", "must", "be", "taken", "when", "setting", "the", "resolution", "mode", "to", "none", "for", "a", "tcp", "port", "without", "accompanying", "ip", "addresses", "in", "such", "cases", ",", "traffic", "to", "any", "ip", "on", "said", "port", "will", "be", "allowed", "(", "i", "e", "0", "0", "0", "0", ":", "&", "lt", ";", "port", "&", "gt", ";", ")", "<", "code", ">", "istio", "networking", "v", "1alpha", "3", "service", "entry", "resolution", "resolution", "=", "5", ";", "<", "code", ">" ]
[ "public", "com", "alibaba", "nacos", "istio", "model", "naming", "service", "entry", "resolution", "get", "resolution", "(", ")", "{", "@", "suppress", "warnings", "(", "\"", "deprecation", "\"", ")", "com", "alibaba", "nacos", "istio", "model", "naming", "service", "entry", "resolution", "result", "=", "com", "alibaba", "nacos", "istio", "model", "naming", "service", "entry", "resolution", "value", "of", "(", "resolution", ")", ";", "return", "result", "=", "=", "null", "?", "com", "alibaba", "nacos", "istio", "model", "naming", "service", "entry", "resolution", "unrecognized", ":", "result", ";", "}" ]
[ "used", "as", "ad", "hoc", "to", "check", "the", "time", "stamp", "of", "the", "last", "full", "cycle", "of", "{", "@", "link", "#", "redundancy", "thread", "}", "this", "is", "used", "by", "the", "junit", "tests", "to", "block", "until", "{", "@", "link", "#", "last", "redundancy", "cycle", "t", "s", "}", "is", "updated" ]
[ "public", "long", "get", "last", "redundancy", "monitor", "t", "s", "(", ")", "{", "return", "last", "redundancy", "cycle", "t", "s", "get", "(", ")", ";", "}" ]
[ "return", "whether", "savepoints", "are", "allowed", "within", "this", "transaction" ]
[ "public", "boolean", "is", "savepoint", "allowed", "(", ")", "{", "return", "this", "savepoint", "allowed", ";", "}" ]
[ "sets", "the", "matrix", "to", "the", "given", "matrix" ]
[ "public", "matrix", "4", "set", "(", "matrix", "4", "matrix", ")", "{", "return", "set", "(", "matrix", "val", ")", ";", "}" ]
[ "enables", "the", "highlight", "-", "line", "to", "be", "drawn", "in", "dashed", "mode", ",", "e", "g", "like", "this", "\"", "-", "-", "-", "-", "-", "-", "\"" ]
[ "public", "void", "enable", "dashed", "highlight", "line", "(", "float", "line", "length", ",", "float", "space", "length", ",", "float", "phase", ")", "{", "m", "highlight", "dash", "path", "effect", "=", "new", "dash", "path", "effect", "(", "new", "float", "[", "]", "{", "line", "length", ",", "space", "length", "}", ",", "phase", ")", ";", "}" ]
[ "return", "true", "if", "the", "new", "value", "and", "old", "value", "are", "different" ]
[ "private", "boolean", "comment", "changed", "(", "string", "new", "value", ",", "string", "old", "value", ")", "{", "if", "(", "new", "value", "=", "=", "null", "&", "&", "old", "value", "=", "=", "null", ")", "{", "return", "false", ";", "}", "if", "(", "new", "value", "!", "=", "null", ")", "{", "return", "!", "new", "value", "equals", "(", "old", "value", ")", ";", "}", "return", "!", "old", "value", "equals", "(", "new", "value", ")", ";", "}" ]
[ "enable", "this", "to", "debug", "slow", "animations", "by", "outlining", "masks", "and", "mattes", "the", "performance", "overhead", "of", "the", "masks", "and", "mattes", "will", "be", "proportional", "to", "the", "surface", "area", "of", "all", "of", "the", "masksmattes", "combined", "do", "not", "leave", "this", "enabled", "in", "production" ]
[ "public", "void", "set", "outline", "masks", "and", "mattes", "(", "boolean", "outline", ")", "{", "if", "(", "outline", "masks", "and", "mattes", "=", "=", "outline", ")", "{", "return", ";", "}", "outline", "masks", "and", "mattes", "=", "outline", ";", "if", "(", "composition", "layer", "!", "=", "null", ")", "{", "composition", "layer", "set", "outline", "masks", "and", "mattes", "(", "outline", ")", ";", "}", "}" ]
[ "returns", "the", "cluster", "alias", "this", "hit", "comes", "from", "or", "null", "if", "it", "comes", "from", "a", "local", "cluster" ]
[ "public", "string", "get", "cluster", "alias", "(", ")", "{", "return", "cluster", "alias", ";", "}" ]
[ "variant", "of", "{", "@", "link", "#", "body", "(", "publisher", ",", "class", ")", "}", "that", "allows", "providing", "element", "type", "information", "with", "generics" ]
[ "<", "t", ",", "s", "extends", "publisher", "<", "t", ">", ">", "request", "headers", "spec", "<", "?", ">", "body", "(", "s", "publisher", ",", "parameterized", "type", "reference", "<", "t", ">", "element", "type", "ref", ")", ";" ]
[ "{", "@", "inherit", "doc", "}", "<", "p", ">", "height", "is", "defined", "by", "target", "{", "@", "link", "android", "view", "view", "view", "}", "parameters", ",", "configuration", "parameters", "or", "device", "display", "dimensions", "<", "br", ">", "size", "computing", "algorithm", "(", "go", "by", "steps", "until", "get", "non", "-", "zero", "value", ")", ":", "<", "br", ">", "1", ")", "get", "the", "actual", "drawn", "<", "b", ">", "get", "height", "(", ")", "<", "b", ">", "of", "the", "view", "<", "br", ">", "2", ")", "get", "<", "b", ">", "layout", "height", "<", "b", ">" ]
[ "public", "int", "get", "height", "(", ")", "{", "view", "view", "=", "view", "ref", "get", "(", ")", ";", "if", "(", "view", "!", "=", "null", ")", "{", "final", "view", "group", "layout", "params", "params", "=", "view", "get", "layout", "params", "(", ")", ";", "int", "height", "=", "0", ";", "if", "(", "check", "actual", "view", "size", "&", "&", "params", "!", "=", "null", "&", "&", "params", "height", "!", "=", "view", "group", "layout", "params", "wrap", "content", ")", "{", "height", "=", "view", "get", "height", "(", ")", ";", "/", "/", "get", "actual", "image", "height", "}", "if", "(", "height", "<", "=", "0", "&", "&", "params", "!", "=", "null", ")", "height", "=", "params", "height", ";", "/", "/", "get", "layout", "height", "parameter", "return", "height", ";", "}", "return", "0", ";", "}" ]
[ "get", "direct", "map" ]
[ "public", "map", "<", "string", ",", "boolean", ">", "get", "direct", "map", "(", ")", "{", "return", "direct", "map", ";", "}" ]
[ "get", "the", "memory", "required", "to", "run", "a", "task", "of", "this", "job", ",", "in", "bytes", "see", "{", "@", "link", "#", "mapred", "task", "maxvmem", "property", "}", "this", "method", "is", "deprecated", "now", ",", "different", "memory", "limits", "can", "be", "set", "for", "map", "and", "reduce", "tasks", "of", "a", "job", ",", "in", "mb", "for", "backward", "compatibility", ",", "if", "the", "job", "configuration", "sets", "the", "key", "{", "@", "link", "#", "mapred", "task", "maxvmem", "property", "}", ",", "that", "value", "is", "returned", "otherwise", ",", "this", "method", "will", "return", "the", "larger", "of", "the", "values", "returned", "by", "{", "@", "link", "#", "get", "memory", "for", "map", "task", "(", ")", "}", "and", "{", "@", "link", "#", "get", "memory", "for", "reduce", "task", "(", ")", "}", "after", "converting", "them", "into", "bytes" ]
[ "public", "long", "get", "max", "virtual", "memory", "for", "task", "(", ")", "{", "log", "warn", "(", "\"", "get", "max", "virtual", "memory", "for", "task", "(", ")", "is", "deprecated", "\"", "+", "\"", "instead", "use", "get", "memory", "for", "map", "task", "(", ")", "and", "get", "memory", "for", "reduce", "task", "(", ")", "\"", ")", ";", "long", "value", "=", "get", "long", "(", "mapred", "task", "maxvmem", "property", ",", "math", "max", "(", "get", "memory", "for", "map", "task", "(", ")", ",", "get", "memory", "for", "reduce", "task", "(", ")", ")", "*", "1024", "*", "1024", ")", ";", "return", "value", ";", "}" ]
[ "test", "the", "property", "'", "breed", "'" ]
[ "public", "void", "breed", "test", "(", ")", "{", "/", "/", "todo", ":", "test", "breed", "}" ]
[ "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", ";", "}" ]
[ "enable", "this", "to", "get", "merge", "path", "support", "for", "devices", "running", "kit", "kat", "(", "19", ")", "and", "above", "merge", "paths", "currently", "don", "'", "t", "work", "if", "the", "the", "operand", "shape", "is", "entirely", "contained", "within", "the", "first", "shape", "if", "you", "need", "to", "cut", "out", "one", "shape", "from", "another", "shape", ",", "use", "an", "even", "-", "odd", "fill", "type", "instead", "of", "using", "merge", "paths" ]
[ "public", "void", "enable", "merge", "paths", "for", "kit", "kat", "and", "above", "(", "boolean", "enable", ")", "{", "if", "(", "enable", "merge", "paths", "=", "=", "enable", ")", "{", "return", ";", "}", "if", "(", "build", "version", "sdk", "int", "<", "build", "version", "codes", "kitkat", ")", "{", "logger", "warning", "(", "\"", "merge", "paths", "are", "not", "supported", "pre", "-", "kit", "kat", "\"", ")", ";", "return", ";", "}", "enable", "merge", "paths", "=", "enable", ";", "if", "(", "composition", "!", "=", "null", ")", "{", "build", "composition", "layer", "(", ")", ";", "}", "}" ]
[ "determines", "whether", "a", "character", "is", "a", "bmp", "digit", "according", "to", "<", "a", "href", "=", "\"", "http", ":", "unicode", "orgcldrutilitylist", "-", "unicodeset", "jsp", "?", "a", "=", "%", "5", "cp", "%", "7", "bdigit", "%", "7d", "\"", ">", "unicode", "if", "you", "only", "care", "to", "match", "ascii", "digits", ",", "you", "can", "use", "{", "@", "code", "in", "range", "(", "'", "0", "'", ",", "'", "9", "'", ")", "}" ]
[ "public", "static", "char", "matcher", "digit", "(", ")", "{", "return", "digit", "instance", ";", "}" ]
[ "overrides", "a", "variable", "to", "expands", "{", "@", "code", "name", "}", "to", "{", "@", "code", "value", "}", "instead" ]
[ "public", "builder", "override", "string", "variable", "(", "string", "name", ",", "string", "value", ")", "{", "preconditions", "check", "not", "null", "(", "value", ",", "\"", "cannot", "set", "null", "as", "a", "value", "for", "variable", "'", "%", "s", "'", "\"", ",", "name", ")", ";", "variables", "map", "put", "(", "name", ",", "value", ")", ";", "return", "this", ";", "}" ]
[ "get", "the", "classification", "of", "this", "resource" ]
[ "public", "int", "get", "resource", "type", "(", ")", "{", "return", "resource", "type", ";", "}" ]
[ "returns", "the", "name", "filter", "that", "is", "applied", "to", "jar", "files", "in", "this", "entry", ",", "if", "any" ]
[ "public", "list", "get", "jar", "filter", "(", ")", "{", "return", "jar", "filter", ";", "}" ]
[ "returns", "whether", "the", "current", "event", "is", "a", "start", "tag", "with", "the", "specified", "name", "if", "the", "current", "event", "has", "a", "raw", "name", "then", "its", "prefix", "is", "stripped", "before", "matching" ]
[ "public", "static", "boolean", "is", "start", "tag", "ignore", "prefix", "(", "xml", "pull", "parser", "xpp", ",", "string", "name", ")", "throws", "xml", "pull", "parser", "exception", "{", "return", "is", "start", "tag", "(", "xpp", ")", "&", "&", "strip", "prefix", "(", "xpp", "get", "name", "(", ")", ")", "equals", "(", "name", ")", ";", "}" ]
[ "generate", "a", "new", "instance", "of", "{", "@", "link", "protocol", "selector", "}" ]
[ "protocol", "selector", "new", "selector", "(", "s", "s", "l", "engine", "engine", ",", "set", "<", "string", ">", "supported", "protocols", ")", ";" ]
[ "load", "bean", "definitions", "into", "the", "supplied", "{", "@", "link", "generic", "web", "application", "context", "context", "}", "from", "the", "locations", "in", "the", "supplied", "{", "@", "code", "web", "merged", "context", "configuration", "}", "using", "a", "{", "@", "link", "groovy", "bean", "definition", "reader", "}" ]
[ "protected", "void", "load", "bean", "definitions", "(", "generic", "web", "application", "context", "context", ",", "web", "merged", "context", "configuration", "web", "merged", "config", ")", "{", "new", "groovy", "bean", "definition", "reader", "(", "context", ")", "load", "bean", "definitions", "(", "web", "merged", "config", "get", "locations", "(", ")", ")", ";", "}" ]
[ "get", "the", "whole", "resource", "capacity", "of", "the", "cluster" ]
[ "public", "resource", "get", "cluster", "resource", "(", ")", ";" ]
[ "double", "argument", "less", "than", "or", "equal", "to", "the", "given", "value", "see", "examples", "in", "javadoc", "for", "{", "@", "link", "additional", "matchers", "}", "class" ]
[ "public", "static", "double", "leq", "(", "double", "value", ")", "{", "report", "matcher", "(", "new", "less", "or", "equal", "<", "double", ">", "(", "value", ")", ")", ";", "return", "0", ";", "}" ]
[ "input", "stream", "to", "byte", "array" ]
[ "public", "static", "byte", "[", "]", "input", "stream", "2", "bytes", "(", "input", "stream", "is", ")", "{", "if", "(", "is", "=", "=", "null", ")", "{", "return", "null", ";", "}", "try", "{", "byte", "array", "output", "stream", "baos", "=", "new", "byte", "array", "output", "stream", "(", ")", ";", "int", "i", ";", "while", "(", "(", "i", "=", "is", "read", "(", ")", ")", "!", "=", "-", "1", ")", "{", "baos", "write", "(", "i", ")", ";", "}", "return", "baos", "to", "byte", "array", "(", ")", ";", "}", "catch", "(", "exception", "e", ")", "{", "throw", "new", "should", "never", "happen", "exception", "(", "e", ")", ";", "}", "}" ]
[ "remove", "the", "tree", "selection", "listener", "from", "the", "data", "tree" ]
[ "public", "void", "remove", "tree", "selection", "listener", "(", "g", "tree", "selection", "listener", "l", ")", "{", "tree", "remove", "g", "tree", "selection", "listener", "(", "l", ")", ";", "}" ]
[ "loads", "a", "built", "-", "in", "template", "and", "returns", "its", "source" ]
[ "public", "static", "string", "load", "template", "(", "string", "resource", ",", "string", "version", ",", "string", "version", "property", ")", "{", "return", "load", "template", "(", "resource", ",", "version", ",", "version", "property", ",", "collections", "empty", "map", "(", ")", ")", ";", "}" ]
[ "the", "set", "of", "xml", "attributevalue", "pairs", "for", "this", "style", "<", "code", ">", "repeated", "aapt", "pb", "style", "entry", "entry", "=", "3", ";", "<", "code", ">" ]
[ "private", "void", "set", "entry", "(", "int", "index", ",", "com", "android", "aapt", "resources", "style", "entry", "builder", "builder", "for", "value", ")", "{", "ensure", "entry", "is", "mutable", "(", ")", ";", "entry", "set", "(", "index", ",", "builder", "for", "value", "build", "(", ")", ")", ";", "}" ]
[ "cancels", "call", "and", "schedules", "on", "close", "(", ")", "notification", "may", "only", "be", "called", "from", "the", "application", "thread" ]
[ "private", "void", "exception", "thrown", "(", "status", "status", ")", "{", "/", "/", "since", "each", "rpc", "can", "have", "its", "own", "executor", ",", "we", "can", "only", "call", "on", "close", "(", ")", "when", "we", "are", "sure", "there", "/", "/", "will", "be", "no", "further", "callbacks", "we", "set", "the", "status", "here", "and", "overwrite", "the", "on", "close", "(", ")", "details", "/", "/", "when", "it", "arrives", "exception", "status", "=", "status", ";", "stream", "cancel", "(", "status", ")", ";", "}" ]
[ "test", "the", "property", "'", "pet", "type", "'" ]
[ "public", "void", "pet", "type", "test", "(", ")", "{", "/", "/", "todo", ":", "test", "pet", "type", "}" ]
[ "<", "code", ">", "repeated", "org", "apache", "dubbo", "common", "serialize", "protobuf", "model", "phone", "number", "phone", "=", "8", ";", "<", "code", ">" ]
[ "public", "builder", "add", "all", "phone", "(", "iterable", "<", "?", "extends", "phone", "number", ">", "values", ")", "{", "if", "(", "phone", "builder", "=", "=", "null", ")", "{", "ensure", "phone", "is", "mutable", "(", ")", ";", "com", "google", "protobuf", "abstract", "message", "lite", "builder", "add", "all", "(", "values", ",", "phone", ")", ";", "on", "changed", "(", ")", ";", "}", "else", "{", "phone", "builder", "add", "all", "messages", "(", "values", ")", ";", "}", "return", "this", ";", "}" ]
[ "begin", "a", "new", "transaction", "with", "semantics", "according", "to", "the", "given", "transaction", "definition", "does", "not", "have", "to", "care", "about", "applying", "the", "propagation", "behavior", ",", "as", "this", "has", "already", "been", "handled", "by", "this", "abstract", "manager", "this", "method", "gets", "called", "when", "the", "transaction", "manager", "has", "decided", "to", "actually", "start", "a", "new", "transaction", "either", "there", "wasn", "'", "t", "any", "transaction", "before", ",", "or", "the", "previous", "transaction", "has", "been", "suspended", "a", "special", "scenario", "is", "a", "nested", "transaction", "without", "savepoint", ":", "if", "{", "@", "code", "use", "savepoint", "for", "nested", "transaction", "(", ")", "}", "returns", "\"", "false", "\"", ",", "this", "method", "will", "be", "called", "to", "start", "a", "nested", "transaction", "when", "necessary", "in", "such", "a", "context", ",", "there", "will", "be", "an", "active", "transaction", ":", "the", "implementation", "of", "this", "method", "has", "to", "detect", "this", "and", "start", "an", "appropriate", "nested", "transaction" ]
[ "protected", "abstract", "void", "do", "begin", "(", "object", "transaction", ",", "transaction", "definition", "definition", ")", "throws", "transaction", "exception", ";" ]
[ "reverse", "the", "encoding", "done", "by", "encode", "trailing", "period", "(", ")" ]
[ "private", "static", "string", "decode", "trailing", "period", "(", "string", "to", "decode", ")", "{", "matcher", "matcher", "=", "trailing", "period", "placeholder", "pattern", "matcher", "(", "to", "decode", ")", ";", "return", "matcher", "replace", "all", "(", "\"", "\"", ")", ";", "}" ]
[ "return", "the", "hex", "string", "of", "hmac", "m", "d", "5", "encryption" ]
[ "public", "static", "string", "encrypt", "hmac", "m", "d", "5", "to", "string", "(", "final", "string", "data", ",", "final", "string", "key", ")", "{", "if", "(", "data", "=", "=", "null", "|", "|", "data", "length", "(", ")", "=", "=", "0", "|", "|", "key", "=", "=", "null", "|", "|", "key", "length", "(", ")", "=", "=", "0", ")", "return", "\"", "\"", ";", "return", "encrypt", "hmac", "m", "d", "5", "to", "string", "(", "data", "get", "bytes", "(", ")", ",", "key", "get", "bytes", "(", ")", ")", ";", "}" ]
[ "the", "interface", "used", "by", "clients", "to", "submit", "a", "new", "reservation", "to", "the", "{", "@", "code", "resource", "manager", "}", "the", "client", "packages", "all", "details", "of", "its", "request", "in", "a", "{", "@", "link", "reservation", "submission", "request", "}", "object", "this", "contains", "information", "about", "the", "amount", "of", "capacity", ",", "temporal", "constraints", ",", "and", "gang", "needs", "furthermore", ",", "the", "reservation", "might", "be", "composed", "of", "multiple", "stages", ",", "with", "ordering", "dependencies", "among", "them", "in", "order", "to", "respond", ",", "a", "new", "admission", "control", "component", "in", "the", "{", "@", "code", "resource", "manager", "}", "performs", "an", "analysis", "of", "the", "resources", "that", "have", "been", "committed", "over", "the", "period", "of", "time", "the", "user", "is", "requesting", ",", "verify", "that", "the", "user", "requests", "can", "be", "fulfilled", ",", "and", "that", "it", "respect", "a", "sharing", "policy", "(", "e", "g", ",", "{", "@", "code", "capacity", "over", "time", "policy", "}", ")", "once", "it", "has", "positively", "determined", "that", "the", "reservation", "request", "is", "satisfiable", "the", "{", "@", "code", "resource", "manager", "}", "answers", "with", "a", "{", "@", "link", "reservation", "submission", "response", "}", "that", "includes", "a", "{", "@", "link", "reservation", "id", "}", "upon", "failure", "to", "find", "a", "valid", "allocation", "the", "response", "is", "an", "exception", "with", "the", "message", "detailing", "the", "reason", "of", "failure", "the", "semantics", "guarantees", "that", "the", "{", "@", "link", "reservation", "id", "}", "returned", ",", "corresponds", "to", "a", "valid", "reservation", "existing", "in", "the", "time", "-", "range", "request", "by", "the", "user", "the", "amount", "of", "capacity", "dedicated", "to", "such", "reservation", "can", "vary", "overtime", ",", "depending", "of", "the", "allocation", "that", "has", "been", "determined", "but", "it", "is", "guaranteed", "to", "satisfy", "all", "the", "constraint", "expressed", "by", "the", "user", "in", "the", "{", "@", "link", "reservation", "definition", "}" ]
[ "public", "abstract", "reservation", "submission", "response", "submit", "reservation", "(", "reservation", "submission", "request", "request", ")", "throws", "yarn", "exception", ",", "i", "o", "exception", ";" ]
[ "get", "userlogin", ":", "logs", "user", "into", "the", "system" ]
[ "default", "response", "entity", "<", "string", ">", "login", "user", "(", "@", "not", "null", "@", "api", "param", "(", "value", "=", "\"", "the", "user", "name", "for", "login", "\"", ",", "required", "=", "true", ")", "@", "valid", "@", "request", "param", "(", "value", "=", "\"", "username", "\"", ",", "required", "=", "true", ")", "string", "username", ",", "@", "not", "null", "@", "api", "param", "(", "value", "=", "\"", "the", "password", "for", "login", "in", "clear", "text", "\"", ",", "required", "=", "true", ")", "@", "valid", "@", "request", "param", "(", "value", "=", "\"", "password", "\"", ",", "required", "=", "true", ")", "string", "password", ")", "{", "return", "new", "response", "entity", "<", ">", "(", "http", "status", "not", "implemented", ")", ";", "}" ]
[ "returns", "the", "canonical", "form", "of", "this", "range", "in", "the", "given", "domain", "the", "canonical", "form", "has", "the", "following", "properties", ":", "equivalence", ":", "{", "@", "code", "a", "canonical", "(", ")", "contains", "(", "v", ")", "=", "=", "a", "contains", "(", "v", ")", "}", "for", "all", "{", "@", "code", "v", "}", "(", "in", "other", "words", ",", "{", "@", "code", "contiguous", "set", "create", "(", "a", "canonical", "(", "domain", ")", ",", "domain", ")", "equals", "(", "contiguous", "set", "create", "(", "a", ",", "domain", ")", ")", "}", "uniqueness", ":", "unless", "{", "@", "code", "a", "is", "empty", "(", ")", "}", ",", "{", "@", "code", "contiguous", "set", "create", "(", "a", ",", "domain", ")", "equals", "(", "contiguous", "set", "create", "(", "b", ",", "domain", ")", ")", "}", "implies", "{", "@", "code", "a", "canonical", "(", "domain", ")", "equals", "(", "b", "canonical", "(", "domain", ")", ")", "}", "idempotence", ":", "{", "@", "code", "a", "canonical", "(", "domain", ")", "canonical", "(", "domain", ")", "equals", "(", "a", "canonical", "(", "domain", ")", ")", "}", "furthermore", ",", "this", "method", "guarantees", "that", "the", "range", "returned", "will", "be", "one", "of", "the", "following", "canonical", "forms", ":", "[", "start", "end", ")", "[", "start", "+", "∞", ")", "(", "-", "∞", "end", ")", "(", "only", "if", "type", "{", "@", "code", "c", "}", "is", "unbounded", "below", ")", "(", "-", "∞", "+", "∞", ")", "(", "only", "if", "type", "{", "@", "code", "c", "}", "is", "unbounded", "below", ")" ]
[ "public", "range", "<", "c", ">", "canonical", "(", "discrete", "domain", "<", "c", ">", "domain", ")", "{", "check", "not", "null", "(", "domain", ")", ";", "cut", "<", "c", ">", "lower", "=", "lower", "bound", "canonical", "(", "domain", ")", ";", "cut", "<", "c", ">", "upper", "=", "upper", "bound", "canonical", "(", "domain", ")", ";", "return", "(", "lower", "=", "=", "lower", "bound", "&", "&", "upper", "=", "=", "upper", "bound", ")", "?", "this", ":", "create", "(", "lower", ",", "upper", ")", ";", "}" ]
[ "set", "the", "{", "@", "code", "m", "bean", "server", "connection", "}", "used", "to", "connect", "to", "the", "m", "bean", "which", "all", "invocations", "are", "routed", "to" ]
[ "public", "void", "set", "server", "(", "m", "bean", "server", "connection", "server", ")", "{", "this", "server", "=", "server", ";", "}" ]
[ "returns", "the", "size", "of", "the", "parameter", "as", "the", "number", "of", "d", "w", "o", "r", "ds" ]
[ "public", "int", "get", "size", "of", "parameters", "in", "dwords", "(", ")", "{", "return", "size", "of", "parameters", "in", "dwords", ";", "}" ]
[ "find", "profile", "by", "username" ]
[ "public", "couch", "db", "profile", "document", "find", "by", "username", "(", "final", "string", "username", ")", "{", "return", "query", "view", "(", "\"", "by", "username", "\"", ",", "username", ")", "stream", "(", ")", "find", "first", "(", ")", "or", "else", "(", "null", ")", ";", "}" ]
[ "convenient", "call", "for", "{", "@", "link", "org", "greenrobot", "greendao", "abstract", "dao", "#", "update", "(", "object", ")", "}", "entity", "must", "attached", "to", "an", "entity", "context" ]
[ "public", "void", "update", "(", ")", "{", "throw", "if", "detached", "(", ")", ";", "my", "dao", "update", "(", "this", ")", ";", "}" ]
[ "cleanup", "json", "file", "before", "and", "after", "test", ",", "quietly", "because", "of", "errors", "on", "windows" ]
[ "private", "static", "void", "delete", "json", "file", "(", ")", "{", "val", "file", "=", "new", "file", "(", "file", "utils", "get", "temp", "directory", "(", ")", ",", "\"", "trusted", "-", "device", "json", "\"", ")", ";", "if", "(", "file", "exists", "(", ")", ")", "{", "file", "utils", "delete", "quietly", "(", "file", ")", ";", "}", "}" ]
[ "helper", "to", "record", "an", "execution", "failure", "from", "within", "{", "@", "link", "#", "do", "exec", "before", "stop", "}" ]
[ "void", "fail", "execution", "(", "action", "execution", "context", "action", "execution", "context", ")", "throws", "exec", "exception", "{", "try", "{", "file", "system", "utils", "append", "iso", "latin", "1", "(", "action", "execution", "context", "get", "file", "out", "err", "(", ")", "get", "output", "path", "(", ")", ",", "\"", "action", "failed", "with", "\"", "+", "name", ")", ";", "}", "catch", "(", "i", "o", "exception", "e", ")", "{", "throw", "new", "illegal", "state", "exception", "(", "e", ")", ";", "}", "throw", "new", "user", "exec", "exception", "(", "create", "failure", "detail", "(", "name", "+", "\"", "failed", "to", "execute", "the", "spawn", "\"", ")", ")", ";", "}" ]
[ "{", "@", "inherit", "doc", "}" ]
[ "public", "void", "set", "boolean", "(", "int", "parameter", "index", ",", "boolean", "x", ")", "throws", "s", "q", "l", "exception", "{", "}" ]
[ "releases", "a", "lease", "(", "identified", "by", "the", "lease", "holder", "object", ")", "for", "the", "given", "type", "if", "no", "further", "leases", "exist", ",", "the", "resource", "is", "disposed" ]
[ "void", "release", "(", "string", "type", ",", "object", "lease", "holder", ")", "throws", "exception", "{", "release", "(", "type", ",", "lease", "holder", ",", "(", "value", ")", "-", ">", "{", "}", ")", ";", "}" ]
[ "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", "\"", ")", ";", "}" ]
[ "sets", "the", "value", "at", "the", "given", "index", "to", "null" ]
[ "public", "void", "remove", "(", "int", "index", ")", "{", "if", "(", "index", ">", "=", "objs", "length", ")", "{", "return", ";", "}", "objs", "[", "index", "]", "=", "null", ";", "if", "(", "index", "=", "=", "last", "non", "zero", "index", ")", "{", "last", "non", "zero", "index", "=", "find", "last", "non", "zero", "index", "(", ")", ";", "}", "if", "(", "last", "non", "zero", "index", "<", "objs", "length", "/", "4", ")", "{", "adjust", "array", "(", "last", "non", "zero", "index", "*", "2", ")", ";", "}", "}" ]
[ "test", "a", "case", "where", "rename", "a", "dir", ",", "then", "create", "a", "new", "dir", "with", "the", "same", "name", "and", "sub", "dir" ]
[ "public", "void", "test", "sync", "7", "(", ")", "throws", "exception", "{", "init", "data", "7", "(", "source", ")", ";", "init", "data", "7", "(", "target", ")", ";", "enable", "and", "create", "first", "snapshot", "(", ")", ";", "int", "num", "created", "modified", "=", "change", "data", "7", "(", "source", ")", ";", "dfs", "create", "snapshot", "(", "source", ",", "\"", "s", "2", "\"", ")", ";", "test", "and", "verify", "(", "num", "created", "modified", ")", ";", "}" ]
[ "sets", "index", "qualifier" ]
[ "public", "void", "set", "index", "qualifier", "(", "string", "index", "qualifier", ")", "{", "this", "index", "qualifier", "=", "index", "qualifier", ";", "}" ]
[ "gets", "resource", "id" ]
[ "public", "string", "get", "resource", "id", "(", ")", "{", "return", "resource", "id", ";", "}" ]
[ "set", "the", "hibernate", "session", "factory", "that", "should", "be", "used", "to", "create", "hibernate", "sessions" ]
[ "public", "void", "set", "session", "factory", "(", "@", "nullable", "session", "factory", "session", "factory", ")", "{", "this", "session", "factory", "=", "session", "factory", ";", "}" ]
[ "get", "classification", "(", "type", ")", "of", "the", "resource" ]
[ "public", "int", "get", "resource", "type", "(", ")", "{", "return", "resource", "type", ";", "}" ]
[ "resets", "all", "zooming", "and", "dragging", "and", "makes", "the", "chart", "fit", "exactly", "it", "'", "s", "bounds", "output", "matrix", "is", "available", "for", "those", "who", "wish", "to", "cache", "the", "object" ]
[ "public", "void", "fit", "screen", "(", "matrix", "output", "matrix", ")", "{", "m", "min", "scale", "x", "=", "1f", ";", "m", "min", "scale", "y", "=", "1f", ";", "output", "matrix", "set", "(", "m", "matrix", "touch", ")", ";", "float", "[", "]", "vals", "=", "vals", "buffer", "for", "fit", "screen", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "9", ";", "i", "+", "+", ")", "{", "vals", "[", "i", "]", "=", "0", ";", "}", "output", "matrix", "get", "values", "(", "vals", ")", ";", "/", "/", "reset", "all", "translations", "and", "scaling", "vals", "[", "matrix", "mtrans", "x", "]", "=", "0f", ";", "vals", "[", "matrix", "mtrans", "y", "]", "=", "0f", ";", "vals", "[", "matrix", "mscale", "x", "]", "=", "1f", ";", "vals", "[", "matrix", "mscale", "y", "]", "=", "1f", ";", "output", "matrix", "set", "values", "(", "vals", ")", ";", "}" ]
[ "determine", "if", "the", "current", "{", "@", "linkplain", "#", "pipeline", "name", "pipeline", "}", "exists" ]
[ "protected", "void", "do", "check", "(", "final", "rest", "client", "client", ",", "final", "action", "listener", "<", "boolean", ">", "listener", ")", "{", "version", "check", "for", "resource", "(", "client", ",", "listener", ",", "logger", ",", "\"", "/", "ingest", "/", "pipeline", "\"", ",", "pipeline", "name", ",", "\"", "monitoring", "pipeline", "\"", ",", "resource", "owner", "name", ",", "\"", "monitoring", "cluster", "\"", ",", "x", "content", "type", "json", "x", "content", "(", ")", ",", "monitoring", "template", "utils", "last", "updated", "version", ")", ";", "}" ]
[ "return", "if", "the", "supplied", "array", "type", "has", "a", "core", "component", "reference", "type" ]
[ "public", "static", "boolean", "is", "reference", "type", "array", "(", "string", "arraytype", ")", "{", "int", "length", "=", "arraytype", "length", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "+", "+", ")", "{", "char", "ch", "=", "arraytype", "char", "at", "(", "i", ")", ";", "if", "(", "ch", "=", "=", "'", "[", "'", ")", "{", "continue", ";", "}", "return", "(", "ch", "=", "=", "'", "l", "'", ")", ";", "}", "return", "false", ";", "}" ]
[ "iterate", "over", "the", "records", "using", "a", "secondary", "index", "sorting", "occurs", "on", "the", "specified", "schema", "column", "the", "iterator", "'", "s", "initial", "position", "immediately", "follows", "the", "specified", "start", "value", "if", "this", "value", "does", "not", "exist", ",", "the", "initial", "position", "corresponds", "to", "where", "it", "would", "exist", "this", "table", "must", "have", "been", "constructed", "with", "a", "secondary", "index", "on", "the", "specified", "column" ]
[ "public", "record", "iterator", "index", "iterator", "after", "(", "int", "column", "index", ",", "field", "start", "value", ")", "throws", "i", "o", "exception", "{", "synchronized", "(", "db", ")", "{", "index", "table", "index", "table", "=", "secondary", "indexes", "get", "(", "column", "index", ")", ";", "if", "(", "index", "table", "=", "=", "null", ")", "{", "throw", "new", "i", "o", "exception", "(", "\"", "index", "required", "(", "\"", "+", "get", "name", "(", ")", "+", "\"", ",", "\"", "+", "column", "index", "+", "\"", ")", "\"", ")", ";", "}", "return", "new", "key", "to", "record", "iterator", "(", "this", ",", "index", "table", "key", "iterator", "after", "(", "start", "value", ")", ")", ";", "}", "}" ]
[ "test", "the", "property", "'", "phone", "'" ]
[ "public", "void", "phone", "test", "(", ")", "{", "/", "/", "todo", ":", "test", "phone", "}" ]
[ "gets", "all", "the", "ranges" ]
[ "public", "synchronized", "list", "<", "range", ">", "get", "ranges", "(", ")", "{", "return", "new", "array", "list", "<", ">", "(", "ranges", ")", ";", "}" ]
[ "returns", "the", "value", "of", "the", "encapsulated", "short" ]
[ "public", "short", "get", "value", "(", ")", "{", "return", "this", "value", ";", "}" ]
[ "create", "all", "aggregators", "so", "that", "they", "can", "be", "consumed", "with", "multiple", "buckets" ]
[ "public", "aggregator", "[", "]", "create", "sub", "aggregators", "(", "aggregator", "parent", ",", "cardinality", "upper", "bound", "cardinality", ")", "throws", "i", "o", "exception", "{", "aggregator", "[", "]", "aggregators", "=", "new", "aggregator", "[", "count", "aggregators", "(", ")", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "factories", "length", ";", "+", "+", "i", ")", "{", "aggregators", "[", "i", "]", "=", "context", "profile", "if", "enabled", "(", "factories", "[", "i", "]", "create", "(", "parent", ",", "cardinality", ")", ")", ";", "}", "return", "aggregators", ";", "}" ]
[ "registers", "a", "{", "@", "link", "user", "defined", "function", "}", "class", "as", "a", "temporary", "system", "function", "compared", "to", "{", "@", "link", "#", "create", "temporary", "function", "(", "string", ",", "class", ")", "}", ",", "system", "functions", "are", "identified", "by", "a", "global", "name", "that", "is", "independent", "of", "the", "current", "catalog", "and", "current", "database", "thus", ",", "this", "method", "allows", "to", "extend", "the", "set", "of", "built", "-", "in", "system", "functions", "like", "{", "@", "code", "trim", "}", ",", "{", "@", "code", "abs", "}", ",", "etc", "temporary", "functions", "can", "shadow", "permanent", "ones", "if", "a", "permanent", "function", "under", "a", "given", "name", "exists", ",", "it", "will", "be", "inaccessible", "in", "the", "current", "session", "to", "make", "the", "permanent", "function", "available", "again", "one", "can", "drop", "the", "corresponding", "temporary", "system", "function" ]
[ "void", "create", "temporary", "system", "function", "(", "string", "name", ",", "class", "<", "?", "extends", "user", "defined", "function", ">", "function", "class", ")", ";" ]
[ "subclasses", "can", "override", "this", "method", "to", "perform", "custom", "initialization", "of", "the", "session", "factory", "instance", ",", "creating", "it", "via", "the", "given", "configuration", "object", "that", "got", "prepared", "by", "this", "local", "session", "factory", "bean", "the", "default", "implementation", "invokes", "local", "session", "factory", "builder", "'", "s", "build", "session", "factory", "a", "custom", "implementation", "could", "prepare", "the", "instance", "in", "a", "specific", "way", "(", "e", "g", "applying", "a", "custom", "service", "registry", ")", "or", "use", "a", "custom", "session", "factory", "impl", "subclass" ]
[ "protected", "session", "factory", "build", "session", "factory", "(", "local", "session", "factory", "builder", "sfb", ")", "{", "return", "(", "this", "bootstrap", "executor", "!", "=", "null", "?", "sfb", "build", "session", "factory", "(", "this", "bootstrap", "executor", ")", ":", "sfb", "build", "session", "factory", "(", ")", ")", ";", "}" ]
[ "you", "can", "use", "this", "api", "to", "get", "load", "dexes", "before", "tinker", "is", "installed", "same", "as", "{", "@", "code", "tinker", "get", "tinker", "load", "result", "if", "present", "dexes", "}" ]
[ "public", "static", "hash", "map", "<", "string", ",", "string", ">", "get", "load", "dexes", "and", "md", "5", "(", "application", "like", "application", "like", ")", "{", "if", "(", "application", "like", "=", "=", "null", "|", "|", "application", "like", "get", "application", "(", ")", "=", "=", "null", ")", "{", "throw", "new", "tinker", "runtime", "exception", "(", "\"", "tinker", "application", "is", "null", "\"", ")", ";", "}", "intent", "tinker", "result", "intent", "=", "application", "like", "get", "tinker", "result", "intent", "(", ")", ";", "if", "(", "tinker", "result", "intent", "=", "=", "null", ")", "{", "return", "null", ";", "}", "int", "load", "code", "=", "share", "intent", "util", "get", "intent", "return", "code", "(", "tinker", "result", "intent", ")", ";", "if", "(", "load", "code", "=", "=", "share", "constants", "error", "load", "ok", ")", "{", "return", "share", "intent", "util", "get", "intent", "patch", "dex", "paths", "(", "tinker", "result", "intent", ")", ";", "}", "return", "null", ";", "}" ]
[ "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", "\"", ")", ";", "}" ]
[ "notifies", "the", "writer", "that", "the", "output", "flusher", "thread", "encountered", "an", "exception" ]
[ "private", "void", "notify", "flusher", "exception", "(", "throwable", "t", ")", "{", "if", "(", "flusher", "exception", "=", "=", "null", ")", "{", "log", "error", "(", "\"", "an", "exception", "happened", "while", "flushing", "the", "outputs", "\"", ",", "t", ")", ";", "flusher", "exception", "=", "t", ";", "volatile", "flusher", "exception", "=", "t", ";", "}", "}" ]
[ "tests", "choose", "random", "with", "include", "scope", "at", "rack", ",", "excluding", "a", "node" ]
[ "public", "void", "test", "choose", "random", "include", "2", "(", ")", "{", "string", "scope", "=", "data", "nodes", "[", "0", "]", "get", "network", "location", "(", ")", ";", "set", "<", "node", ">", "excluded", "nodes", "=", "new", "hash", "set", "<", ">", "(", ")", ";", "final", "random", "r", "=", "new", "random", "(", ")", ";", "int", "index", "=", "r", "next", "int", "(", "1", ")", ";", "excluded", "nodes", "add", "(", "data", "nodes", "[", "index", "]", ")", ";", "final", "int", "count", "=", "100", ";", "map", "<", "node", ",", "integer", ">", "frequency", "=", "pick", "nodes", "at", "random", "(", "count", ",", "scope", ",", "excluded", "nodes", ")", ";", "verify", "results", "(", "1", ",", "excluded", "nodes", ",", "frequency", ")", ";", "}" ]
[ "creates", "a", "new", "{", "@", "link", "mac", "}", "object" ]
[ "public", "mac", "create", "mac", "(", ")", "{", "try", "{", "mac", "mac", "=", "mac", "get", "instance", "(", "algorithm", ")", ";", "mac", "init", "(", "get", "key", "(", ")", ")", ";", "return", "mac", ";", "}", "catch", "(", "general", "security", "exception", "e", ")", "{", "/", "/", "javadoc", "says", "hmac", "s", "h", "a", "2", "5", "6", "must", "be", "supported", "by", "every", "java", "implementation", "throw", "new", "error", "(", "algorithm", "+", "\"", "not", "supported", "?", "\"", ",", "e", ")", ";", "}", "}" ]
[ "which", "fragments", "does", "this", "configuration", "contain", "?" ]
[ "public", "fragment", "class", "set", "fragment", "classes", "(", ")", "{", "return", "fragment", "class", "set", ";", "}" ]
[ "releases", "the", "depressed", "left", "mouse", "button", "at", "the", "current", "mouse", "location" ]
[ "public", "actions", "release", "(", ")", "{", "if", "(", "is", "building", "actions", "(", ")", ")", "{", "action", "add", "action", "(", "new", "button", "release", "action", "(", "json", "mouse", ",", "null", ")", ")", ";", "}", "return", "tick", "(", "default", "mouse", "create", "pointer", "up", "(", "button", "left", "as", "arg", "(", ")", ")", ")", ";", "}" ]
[ "@", "inherit", "doc" ]
[ "public", "int", "write", "encoded", "array", "(", "encoded", "value", "encoded", "value", ")", "{", "ensure", "four", "bytes", "aligned", "(", "table", "of", "contents", "encoded", "arrays", ",", "true", ")", ";", "return", "super", "write", "encoded", "array", "(", "encoded", "value", ")", ";", "}" ]
[ "returns", "the", "index", "of", "the", "chunk", "that", "contains", "the", "specified", "time" ]
[ "public", "int", "get", "chunk", "index", "(", "long", "time", "us", ")", "{", "return", "util", "binary", "search", "floor", "(", "chunk", "start", "times", "us", ",", "time", "us", ",", "true", ",", "true", ")", ";", "}" ]
[ "when", "looking", "at", "a", "result", "set", "that", "consists", "of", "a", "map", "hash", "table", "we", "cannot", "rely", "on", "the", "output", "order", ",", "as", "the", "hashing", "algorithm", "or", "other", "aspects", "of", "the", "implementation", "may", "be", "different", "on", "differnt", "j", "d", "ks", "or", "platforms", "hence", "we", "take", "the", "map", ",", "convert", "the", "keys", "to", "a", "list", ",", "sort", "them", "and", "stringify", "the", "map", ",", "which", "is", "a", "bit", "of", "a", "hack", ",", "but", "guarantees", "that", "we", "get", "the", "same", "order", "on", "all", "systems", "we", "assume", "that", "the", "keys", "are", "strings" ]
[ "public", "<", "k", ",", "v", ">", "string", "sort", "map", "to", "string", "(", "map", "<", "k", ",", "v", ">", "m", ")", "{", "/", "/", "pass", "in", "crap", ",", "and", "get", "nothing", "back", "/", "/", "if", "(", "m", "=", "=", "null", ")", "{", "return", "null", ";", "}", "system", "out", "println", "(", "\"", "map", "to", "string", "looks", "like", ":", "\"", "+", "m", "to", "string", "(", ")", ")", ";", "/", "/", "sort", "the", "keys", "in", "the", "map", "/", "/", "tree", "map", "<", "k", ",", "v", ">", "nset", "=", "new", "tree", "map", "<", "k", ",", "v", ">", "(", "m", ")", ";", "system", "out", "println", "(", "\"", "tree", "map", "looks", "like", ":", "\"", "+", "nset", "to", "string", "(", ")", ")", ";", "return", "nset", "to", "string", "(", ")", ";", "}" ]
[ "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", "decoded", "key", "-", "value", "parameter", "pairs", "of", "the", "uri" ]
[ "public", "map", "<", "string", ",", "list", "<", "string", ">", ">", "parameters", "(", ")", "{", "if", "(", "params", "=", "=", "null", ")", "{", "params", "=", "decode", "params", "(", "uri", ",", "path", "end", "idx", "(", ")", ",", "charset", ",", "max", "params", ",", "semicolon", "is", "normal", "char", ")", ";", "}", "return", "params", ";", "}" ]
[ "add", "a", "value", "to", "a", "quantiles", "statistic", "no", "-", "op", "if", "the", "quantile", "isn", "'", "t", "found" ]
[ "public", "void", "add", "value", "to", "quantiles", "(", "statistic", "op", ",", "long", "value", ")", "{", "mutable", "quantiles", "quantiles", "=", "lookup", "quantiles", "(", "op", "get", "symbol", "(", ")", ")", ";", "if", "(", "quantiles", "!", "=", "null", ")", "{", "quantiles", "add", "(", "value", ")", ";", "}", "}" ]
[ "get", "the", "result", "of", "async", "execution", "this", "method", "will", "wait", "for", "the", "async", "result", "to", "be", "set", "within", "the", "timeout", "value", "associated", "with", "the", "async", "request", ",", "see", "{", "@", "link", "org", "springframework", "mock", "web", "mock", "async", "context", "#", "set", "timeout", "mock", "async", "context", "#", "set", "timeout", "}", "alternatively", ",", "use", "{", "@", "link", "#", "get", "async", "result", "(", "long", ")", "}", "to", "specify", "the", "amount", "of", "time", "to", "wait" ]
[ "object", "get", "async", "result", "(", ")", ";" ]
[ "does", "the", "actual", "parsing" ]
[ "private", "void", "parse", "(", ")", "{", "int", "attribute", "context", "=", "get", "attribute", "context", "(", ")", ";", "int", "count", "=", "get", "count", "(", ")", ";", "int", "at", "=", "offset", "+", "2", ";", "/", "/", "skip", "the", "count", "byte", "array", "bytes", "=", "cf", "get", "bytes", "(", ")", ";", "constant", "pool", "pool", "=", "cf", "get", "constant", "pool", "(", ")", ";", "if", "(", "observer", "!", "=", "null", ")", "{", "observer", "parsed", "(", "bytes", ",", "offset", ",", "2", ",", "human", "name", "(", ")", "+", "\"", "s", "count", ":", "\"", "+", "hex", "u", "2", "(", "count", ")", ")", ";", "}", "for", "(", "int", "i", "=", "0", ";", "i", "<", "count", ";", "i", "+", "+", ")", "{", "try", "{", "int", "access", "flags", "=", "bytes", "get", "unsigned", "short", "(", "at", ")", ";", "int", "name", "idx", "=", "bytes", "get", "unsigned", "short", "(", "at", "+", "2", ")", ";", "int", "desc", "idx", "=", "bytes", "get", "unsigned", "short", "(", "at", "+", "4", ")", ";", "cst", "string", "name", "=", "(", "cst", "string", ")", "pool", "get", "(", "name", "idx", ")", ";", "cst", "string", "desc", "=", "(", "cst", "string", ")", "pool", "get", "(", "desc", "idx", ")", ";", "if", "(", "observer", "!", "=", "null", ")", "{", "observer", "start", "parsing", "member", "(", "bytes", ",", "at", ",", "name", "get", "string", "(", ")", ",", "desc", "get", "string", "(", ")", ")", ";", "observer", "parsed", "(", "bytes", ",", "at", ",", "0", ",", "\"", "\\", "n", "\"", "+", "human", "name", "(", ")", "+", "\"", "s", "[", "\"", "+", "i", "+", "\"", "]", ":", "\\", "n", "\"", ")", ";", "observer", "change", "indent", "(", "1", ")", ";", "observer", "parsed", "(", "bytes", ",", "at", ",", "2", ",", "\"", "access", "flags", ":", "\"", "+", "human", "access", "flags", "(", "access", "flags", ")", ")", ";", "observer", "parsed", "(", "bytes", ",", "at", "+", "2", ",", "2", ",", "\"", "name", ":", "\"", "+", "name", "to", "human", "(", ")", ")", ";", "observer", "parsed", "(", "bytes", ",", "at", "+", "4", ",", "2", ",", "\"", "descriptor", ":", "\"", "+", "desc", "to", "human", "(", ")", ")", ";", "}", "at", "+", "=", "6", ";", "attribute", "list", "parser", "parser", "=", "new", "attribute", "list", "parser", "(", "cf", ",", "attribute", "context", ",", "at", ",", "attribute", "factory", ")", ";", "parser", "set", "observer", "(", "observer", ")", ";", "at", "=", "parser", "get", "end", "offset", "(", ")", ";", "std", "attribute", "list", "attributes", "=", "parser", "get", "list", "(", ")", ";", "attributes", "set", "immutable", "(", ")", ";", "cst", "nat", "nat", "=", "new", "cst", "nat", "(", "name", ",", "desc", ")", ";", "member", "member", "=", "set", "(", "i", ",", "access", "flags", ",", "nat", ",", "attributes", ")", ";", "if", "(", "observer", "!", "=", "null", ")", "{", "observer", "change", "indent", "(", "-", "1", ")", ";", "observer", "parsed", "(", "bytes", ",", "at", ",", "0", ",", "\"", "end", "\"", "+", "human", "name", "(", ")", "+", "\"", "s", "[", "\"", "+", "i", "+", "\"", "]", "\\", "n", "\"", ")", ";", "observer", "end", "parsing", "member", "(", "bytes", ",", "at", ",", "name", "get", "string", "(", ")", ",", "desc", "get", "string", "(", ")", ",", "member", ")", ";", "}", "}", "catch", "(", "parse", "exception", "ex", ")", "{", "ex", "add", "context", "(", "\"", "while", "parsing", "\"", "+", "human", "name", "(", ")", "+", "\"", "s", "[", "\"", "+", "i", "+", "\"", "]", "\"", ")", ";", "throw", "ex", ";", "}", "catch", "(", "runtime", "exception", "ex", ")", "{", "parse", "exception", "pe", "=", "new", "parse", "exception", "(", "ex", ")", ";", "pe", "add", "context", "(", "\"", "while", "parsing", "\"", "+", "human", "name", "(", ")", "+", "\"", "s", "[", "\"", "+", "i", "+", "\"", "]", "\"", ")", ";", "throw", "pe", ";", "}", "}", "end", "offset", "=", "at", ";", "}" ]
[ "create", "a", "composition", "with", "{", "@", "link", "lottie", "composition", "factory", "}" ]
[ "public", "boolean", "set", "composition", "(", "lottie", "composition", "composition", ")", "{", "if", "(", "this", "composition", "=", "=", "composition", ")", "{", "return", "false", ";", "}", "is", "dirty", "=", "false", ";", "clear", "composition", "(", ")", ";", "this", "composition", "=", "composition", ";", "build", "composition", "layer", "(", ")", ";", "animator", "set", "composition", "(", "composition", ")", ";", "set", "progress", "(", "animator", "get", "animated", "fraction", "(", ")", ")", ";", "set", "scale", "(", "scale", ")", ";", "/", "/", "we", "copy", "the", "tasks", "to", "a", "new", "array", "list", "so", "that", "if", "this", "method", "is", "called", "from", "multiple", "threads", ",", "/", "/", "then", "there", "won", "'", "t", "be", "two", "iterators", "iterating", "and", "removing", "at", "the", "same", "time", "iterator", "<", "lazy", "composition", "task", ">", "it", "=", "new", "array", "list", "<", ">", "(", "lazy", "composition", "tasks", ")", "iterator", "(", ")", ";", "while", "(", "it", "has", "next", "(", ")", ")", "{", "lazy", "composition", "task", "t", "=", "it", "next", "(", ")", ";", "/", "/", "the", "task", "should", "never", "be", "null", "but", "it", "appears", "to", "happen", "in", "rare", "cases", "maybe", "it", "'", "s", "an", "oem", "-", "specific", "or", "art", "bug", "/", "/", "https", ":", "/", "/", "github", "com", "/", "airbnb", "/", "lottie", "-", "android", "/", "issues", "/", "1702", "if", "(", "t", "!", "=", "null", ")", "{", "t", "run", "(", "composition", ")", ";", "}", "it", "remove", "(", ")", ";", "}", "lazy", "composition", "tasks", "clear", "(", ")", ";", "composition", "set", "performance", "tracking", "enabled", "(", "performance", "tracking", "enabled", ")", ";", "/", "/", "ensure", "that", "image", "view", "updates", "the", "drawable", "width", "/", "height", "so", "it", "can", "/", "/", "properly", "calculate", "its", "drawable", "matrix", "callback", "callback", "=", "get", "callback", "(", ")", ";", "if", "(", "callback", "instanceof", "image", "view", ")", "{", "(", "(", "image", "view", ")", "callback", ")", "set", "image", "drawable", "(", "null", ")", ";", "(", "(", "image", "view", ")", "callback", ")", "set", "image", "drawable", "(", "this", ")", ";", "}", "return", "true", ";", "}" ]
[ "returns", "the", "string", "representation", "{", "@", "code", "row", "map", "(", ")", "to", "string", "(", ")", "}" ]
[ "public", "string", "to", "string", "(", ")", "{", "return", "row", "map", "(", ")", "to", "string", "(", ")", ";", "}" ]
[ "get", "the", "full", "url", "of", "the", "admin", "endpoint", "that", "corresponds", "to", "the", "given", "rest", "resource" ]
[ "public", "string", "admin", "endpoint", "(", "string", "resource", ")", "{", "string", "url", "=", "connect", "cluster", "stream", "(", ")", "map", "(", "worker", "handle", ":", ":", "admin", "url", ")", "filter", "(", "objects", ":", ":", "non", "null", ")", "find", "first", "(", ")", "or", "else", "throw", "(", "(", ")", "-", ">", "new", "connect", "exception", "(", "\"", "admin", "endpoint", "is", "disabled", "\"", ")", ")", "to", "string", "(", ")", ";", "return", "url", "+", "resource", ";", "}" ]
[ "sets", "the", "name", "for", "queries", "of", "state", "created", "from", "this", "descriptor", "if", "a", "name", "is", "set", ",", "the", "created", "state", "will", "be", "published", "for", "queries", "during", "runtime", "the", "name", "needs", "to", "be", "unique", "per", "job", "if", "there", "is", "another", "state", "instance", "published", "under", "the", "same", "name", ",", "the", "job", "will", "fail", "during", "runtime" ]
[ "public", "void", "set", "queryable", "(", "string", "queryable", "state", "name", ")", "{", "preconditions", "check", "argument", "(", "ttl", "config", "get", "update", "type", "(", ")", "=", "=", "state", "ttl", "config", "update", "type", "disabled", ",", "\"", "queryable", "state", "is", "currently", "not", "supported", "with", "ttl", "\"", ")", ";", "if", "(", "this", "queryable", "state", "name", "=", "=", "null", ")", "{", "this", "queryable", "state", "name", "=", "preconditions", "check", "not", "null", "(", "queryable", "state", "name", ",", "\"", "registration", "name", "\"", ")", ";", "}", "else", "{", "throw", "new", "illegal", "state", "exception", "(", "\"", "queryable", "state", "name", "already", "set", "\"", ")", ";", "}", "}" ]
[ "grant", "a", "{", "@", "link", "proxy", "ticket", "}", "that", "may", "be", "used", "to", "access", "the", "given", "service", "by", "authenticating", "the", "given", "credentials", "the", "details", "of", "the", "security", "policy", "around", "credential", "authentication", "and", "the", "definition", "of", "authentication", "success", "are", "dependent", "on", "the", "implementation", ",", "but", "it", "should", "be", "safe", "to", "assume", "that", "at", "least", "one", "credential", "must", "be", "authenticated", "for", "ticket", "creation", "to", "succeed", "the", "principal", "that", "is", "resolved", "from", "the", "authenticated", "credentials", "must", "be", "the", "same", "as", "that", "to", "which", "the", "given", "ticket", "-", "granting", "ticket", "was", "issued" ]
[ "proxy", "ticket", "grant", "proxy", "ticket", "(", "string", "proxy", "granting", "ticket", ",", "service", "service", ")", "throws", "abstract", "ticket", "exception", ";" ]
[ "run", "actions", "to", "be", "triggered", "post", "replication" ]
[ "void", "run", "post", "replication", "actions", "(", "action", "listener", "<", "void", ">", "listener", ")", ";" ]
[ "the", "configured", "{", "@", "link", "#", "set", "header", "predicate", "(", "predicate", ")", "header", "predicate", "}" ]
[ "protected", "predicate", "<", "string", ">", "get", "header", "predicate", "(", ")", "{", "return", "this", "header", "predicate", ";", "}" ]
[ "an", "implementation", "of", "{", "@", "link", "multiset", "#", "add", "all", "}" ]
[ "static", "<", "e", ">", "boolean", "add", "all", "impl", "(", "multiset", "<", "e", ">", "self", ",", "collection", "<", "?", "extends", "e", ">", "elements", ")", "{", "check", "not", "null", "(", "self", ")", ";", "check", "not", "null", "(", "elements", ")", ";", "if", "(", "elements", "instanceof", "multiset", ")", "{", "return", "add", "all", "impl", "(", "self", ",", "cast", "(", "elements", ")", ")", ";", "}", "else", "if", "(", "elements", "is", "empty", "(", ")", ")", "{", "return", "false", ";", "}", "else", "{", "return", "iterators", "add", "all", "(", "self", ",", "elements", "iterator", "(", ")", ")", ";", "}", "}" ]
[ "test", "the", "property", "'", "string", "item", "'" ]
[ "public", "void", "string", "item", "test", "(", ")", "{", "/", "/", "todo", ":", "test", "string", "item", "}" ]