docstring_tokens
list
code_tokens
list
[ "this", "method", "updates", "the", "timeout", "information", "for", "a", "specific", "app", ",", "and", "it", "is", "reachable", "by", "using", "{", "@", "link", "r", "m", "w", "s", "consts", "#", "apps", "timeout", "}" ]
[ "response", "update", "application", "timeout", "(", "app", "timeout", "info", "app", "timeout", ",", "http", "servlet", "request", "hsr", ",", "string", "app", "id", ")", "throws", "authorization", "exception", ",", "yarn", "exception", ",", "interrupted", "exception", ",", "i", "o", "exception", ";" ]
[ "returns", "a", "{", "@", "link", "starlark", "computed", "default", "}", "containing", "a", "lookup", "table", "specifying", "the", "output", "of", "this", "{", "@", "link", "starlark", "computed", "default", "template", "}", "'", "s", "callback", "given", "each", "possible", "assignment", "{", "@", "code", "rule", "}", "might", "make", "to", "the", "attributes", "specified", "by", "{", "@", "link", "#", "dependencies", "}", "if", "the", "rule", "is", "missing", "an", "attribute", "specified", "by", "{", "@", "link", "#", "dependencies", "}", ",", "or", "if", "there", "are", "too", "many", "possible", "assignments", ",", "or", "if", "any", "evaluation", "fails", ",", "this", "throws", "{", "@", "link", "cannot", "precompute", "defaults", "exception", "}", "may", "only", "be", "called", "after", "all", "non", "-", "{", "@", "link", "computed", "default", "}", "attributes", "have", "been", "set", "on", "the", "{", "@", "code", "rule", "}" ]
[ "starlark", "computed", "default", "compute", "possible", "values", "(", "attribute", "attr", ",", "final", "rule", "rule", ",", "final", "event", "handler", "event", "handler", ")", "throws", "interrupted", "exception", ",", "cannot", "precompute", "defaults", "exception", "{", "final", "starlark", "computed", "default", "template", "owner", "=", "starlark", "computed", "default", "template", "this", ";", "final", "string", "msg", "=", "string", "format", "(", "\"", "cannot", "compute", "default", "value", "of", "attribute", "'", "%", "s", "'", "in", "rule", "'", "%", "s", "'", ":", "\"", ",", "attr", "get", "public", "name", "(", ")", ",", "rule", "get", "label", "(", ")", ")", ";", "final", "atomic", "reference", "<", "eval", "exception", ">", "caught", "eval", "exception", "if", "any", "=", "new", "atomic", "reference", "<", ">", "(", ")", ";", "computation", "strategy", "<", "interrupted", "exception", ">", "strategy", "=", "new", "computation", "strategy", "<", "interrupted", "exception", ">", "(", ")", "{", "@", "override", "public", "object", "compute", "(", "attribute", "map", "map", ")", "throws", "interrupted", "exception", "{", "try", "{", "return", "owner", "compute", "value", "(", "event", "handler", ",", "map", ")", ";", "}", "catch", "(", "eval", "exception", "ex", ")", "{", "caught", "eval", "exception", "if", "any", "compare", "and", "set", "(", "null", ",", "ex", ")", ";", "return", "null", ";", "}", "}", "}", ";", "immutable", "list", "builder", "<", "type", "<", "?", ">", ">", "dependency", "types", "builder", "=", "immutable", "list", "builder", "(", ")", ";", "map", "<", "list", "<", "object", ">", ",", "object", ">", "lookup", "table", "=", "new", "hash", "map", "<", ">", "(", ")", ";", "try", "{", "for", "(", "string", "dependency", ":", "dependencies", ")", "{", "attribute", "attribute", "=", "rule", "get", "rule", "class", "object", "(", ")", "get", "attribute", "by", "name", "maybe", "(", "dependency", ")", ";", "if", "(", "attribute", "=", "=", "null", ")", "{", "throw", "new", "attribute", "not", "found", "exception", "(", "string", "format", "(", "\"", "no", "such", "attribute", "%", "s", "in", "rule", "%", "s", "\"", ",", "dependency", ",", "rule", "get", "label", "(", ")", ")", ")", ";", "}", "dependency", "types", "builder", "add", "(", "attribute", "get", "type", "(", ")", ")", ";", "}", "lookup", "table", "put", "all", "(", "strategy", "compute", "values", "for", "all", "combinations", "(", "dependencies", ",", "attr", "get", "type", "(", ")", ",", "rule", ",", "fixed", "computation", "limiter", "instance", ")", ")", ";", "if", "(", "caught", "eval", "exception", "if", "any", "get", "(", ")", "!", "=", "null", ")", "{", "throw", "caught", "eval", "exception", "if", "any", "get", "(", ")", ";", "}", "}", "catch", "(", "attribute", "not", "found", "exception", "|", "too", "many", "configurable", "attributes", "exception", "|", "eval", "exception", "ex", ")", "{", "string", "error", "=", "msg", "+", "ex", "get", "message", "(", ")", ";", "rule", "report", "error", "(", "error", ",", "event", "handler", ")", ";", "throw", "new", "cannot", "precompute", "defaults", "exception", "(", "error", ")", ";", "}", "return", "new", "starlark", "computed", "default", "(", "dependencies", ",", "dependency", "types", "builder", "build", "(", ")", ",", "lookup", "table", ")", ";", "}" ]
[ "converts", "a", "java", "{", "@", "link", "file", "}", "instance", "into", "a", "g", "filesystem", "{", "@", "link", "g", "file", "}", "hosted", "on", "the", "{", "@", "link", "#", "get", "local", "f", "s", "(", ")", "local", "filesystem", "}" ]
[ "public", "g", "file", "get", "local", "g", "file", "(", "file", "f", ")", "{", "try", "{", "return", "local", "f", "s", "lookup", "(", "f", "get", "path", "(", ")", ")", ";", "}", "catch", "(", "i", "o", "exception", "e", ")", "{", "/", "/", "the", "local", "file", "system", "impl", "doesn", "'", "t", "check", "the", "validity", "of", "the", "path", "so", "this", "/", "/", "exception", "should", "never", "happen", "if", "it", "does", ",", "fall", "thru", "and", "return", "null", "}", "return", "null", ";", "}" ]
[ "pull", "properties", "and", "values", "from", "filename" ]
[ "private", "hash", "map", "<", "string", ",", "string", ">", "extract", "properties", "from", "xml", "(", "string", "filename", ")", "{", "if", "(", "filename", "=", "=", "null", ")", "{", "return", "null", ";", "}", "/", "/", "iterate", "through", "xml", "file", "for", "name", "/", "value", "pairs", "configuration", "conf", "=", "new", "configuration", "(", "false", ")", ";", "conf", "set", "allow", "null", "value", "properties", "(", "true", ")", ";", "conf", "add", "resource", "(", "filename", ")", ";", "hash", "map", "<", "string", ",", "string", ">", "ret", "val", "=", "new", "hash", "map", "<", ">", "(", ")", ";", "iterator", "<", "map", "entry", "<", "string", ",", "string", ">", ">", "kv", "itr", "=", "conf", "iterator", "(", ")", ";", "while", "(", "kv", "itr", "has", "next", "(", ")", ")", "{", "map", "entry", "<", "string", ",", "string", ">", "entry", "=", "kv", "itr", "next", "(", ")", ";", "string", "key", "=", "entry", "get", "key", "(", ")", ";", "/", "/", "ignore", "known", "xml", "props", "if", "(", "xml", "props", "to", "skip", "compare", "contains", "(", "key", ")", ")", "{", "log", "xml", "debug", "(", "\"", "skipping", "full", "key", ":", "{", "}", "\"", ",", "key", ")", ";", "continue", ";", "}", "/", "/", "ignore", "known", "xml", "prefixes", "if", "(", "xml", "prefix", "to", "skip", "compare", "stream", "(", ")", "any", "match", "(", "key", ":", ":", "starts", "with", ")", ")", "{", "log", "xml", "debug", "(", "\"", "skipping", "prefix", "key", ":", "\"", "+", "key", ")", ";", "continue", ";", "}", "if", "(", "conf", "only", "key", "exists", "(", "key", ")", ")", "{", "ret", "val", "put", "(", "key", ",", "null", ")", ";", "log", "xml", "debug", "(", "\"", "xml", "key", ",", "null", "value", ":", "\"", "+", "key", ")", ";", "}", "else", "{", "if", "(", "conf", "get", "(", "key", ")", "!", "=", "null", ")", "{", "ret", "val", "put", "(", "key", ",", "entry", "get", "value", "(", ")", ")", ";", "log", "xml", "debug", "(", "\"", "xml", "key", ",", "valid", "value", ":", "\"", "+", "key", ")", ";", "}", "}", "kv", "itr", "remove", "(", ")", ";", "}", "return", "ret", "val", ";", "}" ]
[ "read", "an", "int", "in", "little", "-", "endian", "format" ]
[ "public", "static", "int", "read", "int", "l", "e", "(", "byte", "[", "]", "arr", ",", "int", "offset", ")", "{", "int", "l", "=", "arr", "[", "offset", "+", "+", "]", "&", "0x", "f", "f", ";", "for", "(", "int", "i", "=", "1", ";", "i", "<", "4", ";", "+", "+", "i", ")", "{", "l", "|", "=", "(", "arr", "[", "offset", "+", "+", "]", "&", "0x", "f", "f", ")", "<", "<", "(", "8", "*", "i", ")", ";", "}", "return", "l", ";", "}" ]
[ "the", "settings", "to", "create", "the", "index", "with" ]
[ "public", "settings", "settings", "(", ")", "{", "return", "settings", ";", "}" ]
[ "returns", "true", "if", "this", "future", "was", "cancelled", "with", "{", "@", "code", "may", "interrupt", "if", "running", "}", "set", "to", "{", "@", "code", "true", "}" ]
[ "protected", "final", "boolean", "was", "interrupted", "(", ")", "{", "return", "sync", "was", "interrupted", "(", ")", ";", "}" ]
[ "sets", "a", "resource", "to", "display", "if", "the", "model", "provided", "to", "{", "@", "link", "com", "bumptech", "glide", "request", "builder", "#", "load", "(", "object", ")", "}", "is", "{", "@", "code", "null", "}", "if", "a", "fallback", "is", "not", "set", ",", "null", "models", "will", "cause", "the", "error", "drawable", "to", "be", "displayed", "if", "the", "error", "drawable", "is", "not", "set", ",", "the", "placeholder", "will", "be", "displayed", "replaces", "any", "previous", "calls", "to", "this", "method", "or", "{", "@", "link", "#", "fallback", "(", "drawable", ")", "}" ]
[ "public", "t", "fallback", "(", "@", "drawable", "res", "int", "resource", "id", ")", "{", "if", "(", "is", "auto", "clone", "enabled", ")", "{", "return", "clone", "(", ")", "fallback", "(", "resource", "id", ")", ";", "}", "this", "fallback", "id", "=", "resource", "id", ";", "fields", "|", "=", "fallback", "id", ";", "fallback", "drawable", "=", "null", ";", "fields", "&", "=", "~", "fallback", ";", "return", "self", "or", "throw", "if", "locked", "(", ")", ";", "}" ]
[ "launch", "the", "framework" ]
[ "static", "void", "startup", "(", "boolean", "updated", ")", "throws", "bundle", "exception", "{", "atlas", "bundle", "info", "manager", "instance", "(", ")", "get", "bundle", "info", "(", ")", ";", "notify", "framework", "listeners", "(", "0", "/", "*", "starting", "*", "/", ",", "null", ",", "null", ")", ";", "notify", "framework", "listeners", "(", "framework", "event", "started", ",", "null", ",", "null", ")", ";", "}" ]
[ "creates", "a", "serializable", "representation", "for", "these", "metrics" ]
[ "ingest", "stats", "stats", "create", "stats", "(", ")", "{", "/", "/", "we", "track", "ingest", "time", "at", "nanosecond", "resolution", ",", "but", "ingest", "stats", "uses", "millisecond", "resolution", "for", "reporting", "long", "ingest", "time", "in", "millis", "=", "time", "unit", "nanoseconds", "to", "millis", "(", "ingest", "time", "in", "nanos", "count", "(", ")", ")", ";", "return", "new", "ingest", "stats", "stats", "(", "ingest", "count", "count", "(", ")", ",", "ingest", "time", "in", "millis", ",", "ingest", "current", "get", "(", ")", ",", "ingest", "failed", "count", "(", ")", ")", ";", "}" ]
[ "gets", "the", "stack", "trace", "from", "a", "throwable", "as", "a", "string" ]
[ "public", "static", "string", "stack", "trace", "to", "string", "(", "throwable", "cause", ")", "{", "byte", "array", "output", "stream", "out", "=", "new", "byte", "array", "output", "stream", "(", ")", ";", "print", "stream", "pout", "=", "new", "print", "stream", "(", "out", ")", ";", "cause", "print", "stack", "trace", "(", "pout", ")", ";", "pout", "flush", "(", ")", ";", "try", "{", "return", "new", "string", "(", "out", "to", "byte", "array", "(", ")", ")", ";", "}", "finally", "{", "try", "{", "out", "close", "(", ")", ";", "}", "catch", "(", "i", "o", "exception", "ignore", ")", "{", "/", "/", "ignore", "as", "should", "never", "happen", "}", "}", "}" ]
[ "duration", "of", "percentile", "rolling", "window", "in", "milliseconds", "this", "is", "passed", "into", "{", "@", "link", "hystrix", "rolling", "percentile", "}", "inside", "{", "@", "link", "hystrix", "command", "metrics", "}" ]
[ "public", "hystrix", "property", "<", "integer", ">", "metrics", "rolling", "percentile", "window", "(", ")", "{", "return", "metrics", "rolling", "percentile", "window", "in", "milliseconds", ";", "}" ]
[ "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", "\"", ")", ";", "}" ]
[ "on", "remove", "branch", "test" ]
[ "public", "void", "on", "remove", "branch", "test", "(", "global", "session", "global", "session", ",", "branch", "session", "branch", "session", ")", "throws", "exception", "{", "for", "(", "session", "manager", "session", "manager", ":", "session", "manager", "list", ")", "{", "session", "manager", "on", "begin", "(", "global", "session", ")", ";", "session", "manager", "on", "add", "branch", "(", "global", "session", ",", "branch", "session", ")", ";", "session", "manager", "on", "remove", "branch", "(", "global", "session", ",", "branch", "session", ")", ";", "session", "manager", "on", "end", "(", "global", "session", ")", ";", "}", "}" ]
[ "put", "static", "authentication", "into", "flow", "scope" ]
[ "public", "static", "void", "put", "password", "management", "enabled", "(", "final", "request", "context", "context", ",", "final", "boolean", "value", ")", "{", "context", "get", "flow", "scope", "(", ")", "put", "(", "\"", "password", "management", "enabled", "\"", ",", "value", ")", ";", "}" ]
[ "returns", "a", "watch", "report", "by", "path" ]
[ "public", "synchronized", "watches", "path", "report", "get", "watches", "by", "path", "(", ")", "{", "return", "data", "watches", "get", "watches", "by", "path", "(", ")", ";", "}" ]
[ "returns", "a", "comparator", "of", "{", "@", "link", "optional", "}", "values", "which", "treats", "{", "@", "link", "optional", "#", "empty", "}", "as", "greater", "than", "all", "other", "values", ",", "and", "orders", "the", "rest", "using", "{", "@", "code", "value", "comparator", "}", "on", "the", "contained", "value" ]
[ "public", "static", "<", "t", ">", "comparator", "<", "optional", "<", "t", ">", ">", "empties", "last", "(", "comparator", "<", "?", "super", "t", ">", "value", "comparator", ")", "{", "check", "not", "null", "(", "value", "comparator", ")", ";", "return", "comparator", "comparing", "(", "o", "-", ">", "o", "or", "else", "(", "null", ")", ",", "comparator", "nulls", "last", "(", "value", "comparator", ")", ")", ";", "}" ]
[ "synchronized", "on", "this", "to", "avoid", "race", "condition", "of", "adding", "a", "local", "session", "after", "committed", "global", "session", ",", "which", "may", "cause", "the", "same", "session", "being", "tracked", "on", "this", "server", "and", "leader" ]
[ "public", "synchronized", "boolean", "commit", "session", "(", "long", "session", "id", ",", "int", "session", "timeout", ")", "{", "boolean", "added", "=", "global", "sessions", "with", "timeouts", "put", "(", "session", "id", ",", "session", "timeout", ")", "=", "=", "null", ";", "if", "(", "added", ")", "{", "/", "/", "only", "do", "extra", "logging", "so", "we", "know", "what", "kind", "of", "session", "this", "is", "/", "/", "if", "we", "'", "re", "supporting", "both", "kinds", "of", "sessions", "log", "info", "(", "\"", "committing", "global", "session", "0x", "{", "}", "\"", ",", "long", "to", "hex", "string", "(", "session", "id", ")", ")", ";", "}", "/", "/", "if", "the", "session", "moved", "before", "the", "session", "upgrade", "finished", ",", "it", "'", "s", "/", "/", "possible", "that", "the", "session", "will", "be", "added", "to", "the", "local", "session", "/", "/", "again", "need", "to", "double", "check", "and", "remove", "it", "from", "local", "session", "/", "/", "tracker", "when", "the", "global", "session", "is", "quorum", "committed", ",", "otherwise", "the", "/", "/", "local", "session", "might", "be", "tracked", "both", "locally", "and", "on", "leader", "/", "/", "/", "/", "this", "cannot", "totally", "avoid", "the", "local", "session", "being", "upgraded", "again", "/", "/", "because", "there", "is", "still", "race", "condition", "between", "create", "another", "upgrade", "/", "/", "request", "and", "process", "the", "create", "session", "commit", ",", "and", "there", "is", "no", "way", "/", "/", "to", "know", "there", "is", "a", "on", "flying", "create", "session", "request", "because", "it", "might", "/", "/", "be", "upgraded", "by", "other", "server", "which", "owns", "the", "session", "before", "move", "if", "(", "local", "sessions", "enabled", ")", "{", "remove", "local", "session", "(", "session", "id", ")", ";", "finished", "upgrading", "(", "session", "id", ")", ";", "}", "touch", "table", "get", "(", ")", "put", "(", "session", "id", ",", "session", "timeout", ")", ";", "return", "added", ";", "}" ]
[ "the", "list", "of", "analysis", "detectors", "in", "a", "valid", "configuration", "the", "list", "should", "contain", "at", "least", "1", "{", "@", "link", "detector", "}" ]
[ "public", "list", "<", "detector", ">", "get", "detectors", "(", ")", "{", "return", "detectors", ";", "}" ]
[ "returns", "the", "test", "log", "path", "note", ",", "that", "actual", "log", "file", "may", "no", "longer", "correspond", "to", "this", "artifact", "use", "get", "actual", "log", "path", "(", ")", "method", "if", "you", "need", "log", "location" ]
[ "public", "path", "get", "test", "log", "path", "(", ")", "{", "path", "test", "log", "path", "=", "test", "action", "get", "test", "log", "(", ")", "get", "path", "(", ")", ";", "/", "/", "if", "we", "have", "an", "exec", "root", "we", "'", "ll", "use", "its", "file", "system", "if", "(", "exec", "root", "!", "=", "null", ")", "{", "file", "system", "file", "system", "=", "exec", "root", "get", "file", "system", "(", ")", ";", "return", "file", "system", "get", "path", "(", "test", "log", "path", "get", "path", "string", "(", ")", ")", ";", "}", "return", "test", "log", "path", ";", "}" ]
[ "puts", "a", "transient", "header", "object", "into", "this", "context" ]
[ "public", "void", "put", "transient", "(", "string", "key", ",", "object", "value", ")", "{", "thread", "local", "set", "(", "thread", "local", "get", "(", ")", "put", "transient", "(", "key", ",", "value", ")", ")", ";", "}" ]
[ "the", "value", "of", "the", "bootstrap", "method", "attr", "index", "item", "must", "be", "a", "valid", "index", "into", "the", "bootstrap", "methods", "array", "of", "the", "bootstrap", "method", "table", "of", "this", "class", "file" ]
[ "public", "int", "get", "bootstrap", "method", "attr", "index", "(", ")", "{", "return", "bootstrap", "method", "attr", "index", "&", "0xffff", ";", "}" ]
[ "create", "a", "new", "temporary", "replica", "of", "replica", "info", "object", "in", "specified", "volume" ]
[ "replica", "info", "copy", "replica", "to", "volume", "(", "extended", "block", "block", ",", "replica", "info", "replica", "info", ",", "fs", "volume", "reference", "volume", "ref", ")", "throws", "i", "o", "exception", "{", "fs", "volume", "impl", "target", "volume", "=", "(", "fs", "volume", "impl", ")", "volume", "ref", "get", "volume", "(", ")", ";", "/", "/", "copy", "files", "to", "temp", "dir", "first", "replica", "info", "new", "replica", "info", "=", "target", "volume", "move", "block", "to", "tmp", "location", "(", "block", ",", "replica", "info", ",", "small", "buffer", "size", ",", "conf", ")", ";", "return", "new", "replica", "info", ";", "}" ]
[ "indicates", "the", "source", "from", "which", "the", "service", "object", "was", "extracted", "and", "built", "typically", "maps", "to", "a", "request", "parameter", "or", "attribute", "that", "provides", "the", "request" ]
[ "string", "get", "source", "(", ")", ";" ]
[ "find", "a", "{", "@", "link", "method", "}", "to", "handle", "the", "given", "exception", "uses", "{", "@", "link", "exception", "depth", "comparator", "}", "if", "more", "than", "one", "match", "is", "found" ]
[ "public", "method", "resolve", "method", "(", "throwable", "exception", ")", "{", "method", "method", "=", "resolve", "method", "by", "exception", "type", "(", "exception", "get", "class", "(", ")", ")", ";", "if", "(", "method", "=", "=", "null", ")", "{", "throwable", "cause", "=", "exception", "get", "cause", "(", ")", ";", "if", "(", "cause", "!", "=", "null", ")", "{", "method", "=", "resolve", "method", "by", "exception", "type", "(", "cause", "get", "class", "(", ")", ")", ";", "}", "}", "return", "method", ";", "}" ]
[ "creates", "a", "delete", "request", "to", "be", "added", "to", "a", "{", "@", "link", "request", "indexer", "}", "note", ":", "the", "type", "field", "has", "been", "deprecated", "since", "elasticsearch", "7", "x", "and", "it", "would", "not", "take", "any", "effort" ]
[ "delete", "request", "create", "delete", "request", "(", "string", "index", ",", "string", "doc", "type", ",", "string", "key", ")", ";" ]
[ "creates", "an", "xml", "item", "this", "route", "creates", "an", "xml", "item" ]
[ "public", "void", "create", "xml", "item", "(", "xml", "item", "xml", "item", ")", "throws", "api", "exception", "{", "create", "xml", "item", "with", "http", "info", "(", "xml", "item", ")", ";", "}" ]
[ "creates", "a", "writer", "callback", "that", "writes", "some", "byte", "array", "to", "the", "target", "stream", "this", "writer", "can", "be", "used", "many", "times" ]
[ "public", "static", "writer", "callback", "from", "(", "final", "byte", "[", "]", "data", ")", "{", "return", "new", "writer", "callback", "(", ")", "{", "@", "override", "public", "void", "write", "(", "output", "stream", "os", ")", "throws", "i", "o", "exception", "{", "os", "write", "(", "data", ")", ";", "}", "}", ";", "}" ]
[ "initialize", "the", "output", "buffers", "with", "zero", "bytes" ]
[ "static", "void", "reset", "output", "buffers", "(", "byte", "buffer", "[", "]", "buffers", ",", "int", "data", "len", ")", "{", "for", "(", "byte", "buffer", "buffer", ":", "buffers", ")", "{", "reset", "buffer", "(", "buffer", ",", "data", "len", ")", ";", "}", "}" ]
[ "whether", "the", "given", "type", "is", "a", "handler", "with", "handler", "methods" ]
[ "protected", "abstract", "boolean", "is", "handler", "(", "class", "<", "?", ">", "bean", "type", ")", ";" ]
[ "extracts", "the", "hostname", "from", "a", "\"", "host", ":", "port", "\"", "address", "string" ]
[ "public", "static", "string", "get", "host", "(", "string", "address", ")", "{", "matcher", "matcher", "=", "host", "port", "pattern", "matcher", "(", "address", ")", ";", "return", "matcher", "matches", "(", ")", "?", "matcher", "group", "(", "1", ")", ":", "null", ";", "}" ]
[ "get", "$", "special", "property", "name" ]
[ "public", "long", "get", "$", "special", "property", "name", "(", ")", "{", "return", "$", "special", "property", "name", ";", "}" ]
[ "utility", "to", "compare", "checksums", "for", "the", "paths", "specified", "if", "checksums", "can", "'", "t", "be", "retrieved", ",", "it", "doesn", "'", "t", "fail", "the", "test", "only", "time", "the", "comparison", "would", "fail", "is", "when", "checksums", "are", "available", "and", "they", "don", "'", "t", "match" ]
[ "public", "static", "boolean", "checksums", "are", "equal", "(", "file", "system", "source", "f", "s", ",", "path", "source", ",", "file", "checksum", "source", "checksum", ",", "file", "system", "target", "f", "s", ",", "path", "target", ",", "long", "source", "len", ")", "throws", "i", "o", "exception", "{", "file", "checksum", "target", "checksum", "=", "null", ";", "try", "{", "source", "checksum", "=", "source", "checksum", "!", "=", "null", "?", "source", "checksum", ":", "source", "f", "s", "get", "file", "checksum", "(", "source", ",", "source", "len", ")", ";", "if", "(", "source", "checksum", "!", "=", "null", ")", "{", "/", "/", "iff", "there", "'", "s", "a", "source", "checksum", ",", "look", "for", "one", "at", "the", "destination", "target", "checksum", "=", "target", "f", "s", "get", "file", "checksum", "(", "target", ")", ";", "}", "}", "catch", "(", "i", "o", "exception", "e", ")", "{", "log", "error", "(", "\"", "unable", "to", "retrieve", "checksum", "for", "\"", "+", "source", "+", "\"", "or", "\"", "+", "target", ",", "e", ")", ";", "}", "return", "(", "source", "checksum", "=", "=", "null", "|", "|", "target", "checksum", "=", "=", "null", "|", "|", "source", "checksum", "equals", "(", "target", "checksum", ")", ")", ";", "}" ]
[ "return", "the", "additional", "(", "undeclared", ")", "property", "with", "the", "specified", "name" ]
[ "public", "object", "get", "additional", "property", "(", "string", "key", ")", "{", "if", "(", "this", "additional", "properties", "=", "=", "null", ")", "{", "return", "null", ";", "}", "return", "this", "additional", "properties", "get", "(", "key", ")", ";", "}" ]
[ "add", "an", "http", "header", "line", "containing", "a", "field", "name", ",", "a", "literal", "colon", ",", "and", "a", "value" ]
[ "public", "void", "add", "line", "(", "string", "line", ")", "{", "int", "index", "=", "line", "index", "of", "(", "\"", ":", "\"", ")", ";", "if", "(", "index", "=", "=", "-", "1", ")", "{", "add", "(", "\"", "\"", ",", "line", ")", ";", "}", "else", "{", "add", "(", "line", "substring", "(", "0", ",", "index", ")", ",", "line", "substring", "(", "index", "+", "1", ")", ")", ";", "}", "}" ]
[ "find", "the", "fields", "constant", "that", "matches", "field", "id", ",", "throwing", "an", "exception", "if", "it", "is", "not", "found" ]
[ "public", "static", "fields", "find", "by", "thrift", "id", "or", "throw", "(", "int", "field", "id", ")", "{", "fields", "fields", "=", "find", "by", "thrift", "id", "(", "field", "id", ")", ";", "if", "(", "fields", "=", "=", "null", ")", "throw", "new", "illegal", "argument", "exception", "(", "\"", "field", "\"", "+", "field", "id", "+", "\"", "doesn", "'", "t", "exist", "!", "\"", ")", ";", "return", "fields", ";", "}" ]
[ "tests", "enabledisable", "storage", "policy", "satisfier", "dynamically" ]
[ "public", "void", "test", "reconfigure", "storage", "policy", "satisfier", "enabled", "(", ")", "throws", "reconfiguration", "exception", "{", "final", "name", "node", "name", "node", "=", "cluster", "get", "name", "node", "(", ")", ";", "verify", "s", "p", "s", "enabled", "(", "name", "node", ",", "dfs", "storage", "policy", "satisfier", "mode", "key", ",", "storage", "policy", "satisfier", "mode", "none", ",", "false", ")", ";", "/", "/", "try", "invalid", "values", "try", "{", "name", "node", "reconfigure", "property", "(", "dfs", "storage", "policy", "satisfier", "mode", "key", ",", "\"", "text", "\"", ")", ";", "fail", "(", "\"", "reconfiguration", "exception", "expected", "\"", ")", ";", "}", "catch", "(", "reconfiguration", "exception", "e", ")", "{", "generic", "test", "utils", "assert", "exception", "contains", "(", "\"", "for", "enabling", "or", "disabling", "storage", "policy", "satisfier", ",", "must", "\"", "+", "\"", "pass", "either", "internal", "/", "external", "/", "none", "string", "value", "only", "\"", ",", "e", "get", "cause", "(", ")", ")", ";", "}", "/", "/", "disable", "sps", "name", "node", "reconfigure", "property", "(", "dfs", "storage", "policy", "satisfier", "mode", "key", ",", "storage", "policy", "satisfier", "mode", "none", "to", "string", "(", ")", ")", ";", "verify", "s", "p", "s", "enabled", "(", "name", "node", ",", "dfs", "storage", "policy", "satisfier", "mode", "key", ",", "storage", "policy", "satisfier", "mode", "none", ",", "false", ")", ";", "/", "/", "enable", "external", "sps", "name", "node", "reconfigure", "property", "(", "dfs", "storage", "policy", "satisfier", "mode", "key", ",", "storage", "policy", "satisfier", "mode", "external", "to", "string", "(", ")", ")", ";", "assert", "equals", "(", "dfs", "storage", "policy", "satisfier", "mode", "key", "+", "\"", "has", "wrong", "value", "\"", ",", "false", ",", "name", "node", "get", "namesystem", "(", ")", "get", "block", "manager", "(", ")", "get", "s", "p", "s", "manager", "(", ")", "is", "satisfier", "running", "(", ")", ")", ";", "assert", "equals", "(", "dfs", "storage", "policy", "satisfier", "mode", "key", "+", "\"", "has", "wrong", "value", "\"", ",", "storage", "policy", "satisfier", "mode", "external", "to", "string", "(", ")", ",", "name", "node", "get", "conf", "(", ")", "get", "(", "dfs", "storage", "policy", "satisfier", "mode", "key", ",", "dfs", "storage", "policy", "satisfier", "mode", "default", ")", ")", ";", "}" ]
[ "checks", "whether", "this", "artifact", "is", "of", "one", "of", "the", "types", "in", "the", "supplied", "set" ]
[ "public", "boolean", "is", "file", "type", "(", "file", "type", "set", "file", "type", "set", ")", "{", "return", "file", "type", "set", "matches", "(", "file", "path", "for", "file", "type", "matcher", "(", ")", ")", ";", "}" ]
[ "http", "put", "json", "create", "a", "new", "resource", "by", "p", "u", "tting", "the", "given", "body", "to", "http", "request", ",", "http", "header", "content", "type", "default", "'", "applicationjson", ";", "charset", "=", "utf", "-", "8", "'", "{", "@", "code", "response", "type", "}", "can", "be", "an", "http", "rest", "result", "or", "http", "rest", "result", "data", "{", "@", "code", "t", "}", "type" ]
[ "public", "<", "t", ">", "http", "rest", "result", "<", "t", ">", "put", "json", "(", "string", "url", ",", "header", "header", ",", "string", "body", ",", "type", "response", "type", ")", "throws", "exception", "{", "request", "http", "entity", "request", "http", "entity", "=", "new", "request", "http", "entity", "(", "header", "set", "content", "type", "(", "media", "type", "application", "json", ")", ",", "body", ")", ";", "return", "execute", "(", "url", ",", "http", "method", "put", ",", "request", "http", "entity", ",", "response", "type", ")", ";", "}" ]
[ "recursively", "expands", "variables", "in", "the", "ninja", "file", "and", "all", "files", "it", "includes", "(", "and", "subninja", "'", "s", ")", "fills", "in", "passed", "{", "@", "link", "ninja", "scope", "}", "with", "the", "expanded", "variables", "and", "rules", ",", "and", "<", "code", ">", "raw", "targets", "<", "code", ">", "-", "map", "of", "ninja", "scope", "to", "list", "of", "fragments", "with", "unparsed", "ninja", "targets" ]
[ "public", "void", "expand", "into", "scope", "(", "ninja", "scope", "scope", ",", "map", "<", "ninja", "scope", ",", "list", "<", "file", "fragment", ">", ">", "raw", "targets", ")", "throws", "interrupted", "exception", ",", "generic", "parsing", "exception", ",", "i", "o", "exception", "{", "scope", "set", "rules", "(", "rules", ")", ";", "scope", "set", "pools", "(", "pools", ")", ";", "raw", "targets", "put", "(", "scope", ",", "targets", ")", ";", "tree", "map", "<", "long", ",", "ninja", "callable", ">", "resolvables", "=", "maps", "new", "tree", "map", "(", ")", ";", "for", "(", "map", "entry", "<", "string", ",", "list", "<", "pair", "<", "long", ",", "ninja", "variable", "value", ">", ">", ">", "entry", ":", "variables", "entry", "set", "(", ")", ")", "{", "string", "name", "=", "entry", "get", "key", "(", ")", ";", "for", "(", "pair", "<", "long", ",", "ninja", "variable", "value", ">", "pair", ":", "entry", "get", "value", "(", ")", ")", "{", "long", "offset", "=", "preconditions", "check", "not", "null", "(", "pair", "get", "first", "(", ")", ")", ";", "ninja", "variable", "value", "variable", "value", "=", "preconditions", "check", "not", "null", "(", "pair", "get", "second", "(", ")", ")", ";", "resolvables", "put", "(", "offset", ",", "(", ")", "-", ">", "scope", "add", "expanded", "variable", "(", "offset", ",", "name", ",", "scope", "get", "expanded", "value", "(", "offset", ",", "variable", "value", ")", ")", ")", ";", "}", "}", "for", "(", "map", "entry", "<", "long", ",", "ninja", "promise", "<", "ninja", "file", "parse", "result", ">", ">", "entry", ":", "included", "files", "futures", "entry", "set", "(", ")", ")", "{", "long", "offset", "=", "entry", "get", "key", "(", ")", ";", "resolvables", "put", "(", "offset", ",", "(", ")", "-", ">", "{", "ninja", "file", "parse", "result", "file", "parse", "result", "=", "entry", "get", "value", "(", ")", "compute", "(", "scope", ")", ";", "ninja", "scope", "included", "scope", "=", "scope", "add", "included", "(", "offset", ")", ";", "file", "parse", "result", "expand", "into", "scope", "(", "included", "scope", ",", "raw", "targets", ")", ";", "}", ")", ";", "}", "for", "(", "map", "entry", "<", "long", ",", "ninja", "promise", "<", "ninja", "file", "parse", "result", ">", ">", "entry", ":", "sub", "ninja", "files", "futures", "entry", "set", "(", ")", ")", "{", "long", "offset", "=", "entry", "get", "key", "(", ")", ";", "resolvables", "put", "(", "offset", ",", "(", ")", "-", ">", "{", "ninja", "file", "parse", "result", "file", "parse", "result", "=", "entry", "get", "value", "(", ")", "compute", "(", "scope", ")", ";", "ninja", "scope", "sub", "ninja", "scope", "=", "scope", "add", "sub", "ninja", "(", "entry", "get", "key", "(", ")", ")", ";", "file", "parse", "result", "expand", "into", "scope", "(", "sub", "ninja", "scope", ",", "raw", "targets", ")", ";", "}", ")", ";", "}", "for", "(", "ninja", "callable", "ninja", "callable", ":", "resolvables", "values", "(", ")", ")", "{", "ninja", "callable", "call", "(", ")", ";", "}", "}" ]
[ "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", "\"", ")", ";", "}" ]
[ "hash", "a", "long", "into", "64", "bits", "instead", "of", "the", "normal", "32", "this", "uses", "a", "xor", "shift", "implementation", "to", "attempt", "psuedo", "randomness", "so", "object", "ids", "have", "an", "even", "spread", "for", "less", "chance", "of", "collisions", "from", "http", ":", "stackoverflow", "coma", "1", "1", "5", "5", "4", "0", "3", "4", "http", ":", "www", "javamex", "comtutorialsrandom", "numbersxorshift", "shtml" ]
[ "public", "static", "long", "hash", "long", "6", "4", "bit", "(", "long", "value", ")", "{", "value", "^", "=", "(", "value", "<", "<", "21", ")", ";", "value", "^", "=", "(", "value", ">", ">", ">", "35", ")", ";", "value", "^", "=", "(", "value", "<", "<", "4", ")", ";", "return", "value", ";", "}" ]
[ "cancel", "client", "beat", "check", "task" ]
[ "public", "static", "void", "cancel", "check", "(", "client", "beat", "check", "task", "task", ")", "{", "scheduled", "future", "scheduled", "future", "=", "future", "map", "get", "(", "task", "task", "key", "(", ")", ")", ";", "if", "(", "scheduled", "future", "=", "=", "null", ")", "{", "return", ";", "}", "try", "{", "scheduled", "future", "cancel", "(", "true", ")", ";", "future", "map", "remove", "(", "task", "task", "key", "(", ")", ")", ";", "}", "catch", "(", "exception", "e", ")", "{", "loggers", "evt", "log", "error", "(", "\"", "[", "cancel", "-", "check", "]", "cancel", "failed", "!", "\"", ",", "e", ")", ";", "}", "}" ]
[ "for", "template", "expressions", ",", "returns", "the", "prefix", "that", "identifies", "the", "start", "of", "an", "expression", "block", "within", "a", "string", "for", "example", ":", "\"", "$", "{", "\"" ]
[ "string", "get", "expression", "prefix", "(", ")", ";" ]
[ "allows", "for", "special", "handling", "for", "ignored", "missing", "placeholders", "that", "may", "be", "resolved", "elsewhere" ]
[ "boolean", "should", "remove", "missing", "placeholder", "(", "string", "placeholder", "name", ")", ";" ]
[ "propagates", "{", "@", "code", "throwable", "}", "exactly", "as", "-", "is", ",", "if", "and", "only", "if", "it", "is", "an", "instance", "of", "{", "@", "code", "declared", "type", "}", "example", "usage", ":", "try", "{", "some", "method", "that", "could", "throw", "anything", "(", ")", ";", "}", "catch", "(", "i", "know", "what", "to", "do", "with", "this", "exception", "e", ")", "{", "handle", "(", "e", ")", ";", "}", "catch", "(", "throwable", "t", ")", "{", "throwables", "propagate", "if", "instance", "of", "(", "t", ",", "i", "o", "exception", "class", ")", ";", "throwables", "propagate", "if", "instance", "of", "(", "t", ",", "s", "q", "l", "exception", "class", ")", ";", "throw", "throwables", "propagate", "(", "t", ")", ";", "}" ]
[ "public", "static", "<", "x", "extends", "throwable", ">", "void", "propagate", "if", "instance", "of", "(", "@", "nullable", "throwable", "throwable", ",", "class", "<", "x", ">", "declared", "type", ")", "throws", "x", "{", "if", "(", "throwable", "!", "=", "null", ")", "{", "throw", "if", "instance", "of", "(", "throwable", ",", "declared", "type", ")", ";", "}", "}" ]
[ "get", "the", "(", "host", "x", "switch", ")", "map" ]
[ "public", "map", "<", "string", ",", "string", ">", "get", "switch", "map", "(", ")", "{", "return", "new", "hash", "map", "<", ">", "(", "cache", ")", ";", "}" ]
[ "stops", "processing", "the", "specified", "request", "this", "logs", "the", "build", "result", ",", "cleans", "up", "and", "stops", "the", "clock" ]
[ "public", "void", "stop", "request", "(", "build", "result", "result", ",", "@", "nullable", "throwable", "crash", ",", "detailed", "exit", "code", "detailed", "exit", "code", ",", "int", "start", "suspend", "count", ")", "{", "preconditions", "check", "state", "(", "(", "crash", "=", "=", "null", ")", "|", "|", "!", "detailed", "exit", "code", "is", "success", "(", ")", ")", ";", "int", "stop", "suspend", "count", "=", "suspend", "count", "(", ")", ";", "preconditions", "check", "state", "(", "start", "suspend", "count", "<", "=", "stop", "suspend", "count", ")", ";", "result", "set", "unhandled", "throwable", "(", "crash", ")", ";", "result", "set", "detailed", "exit", "code", "(", "detailed", "exit", "code", ")", ";", "interrupted", "exception", "ie", "=", "null", ";", "try", "{", "env", "get", "skyframe", "executor", "(", ")", "notify", "command", "complete", "(", "env", "get", "reporter", "(", ")", ")", ";", "}", "catch", "(", "interrupted", "exception", "e", ")", "{", "env", "get", "reporter", "(", ")", "handle", "(", "event", "error", "(", "\"", "build", "interrupted", "during", "command", "completion", "\"", ")", ")", ";", "ie", "=", "e", ";", "}", "/", "/", "the", "stop", "time", "has", "to", "be", "captured", "before", "we", "send", "the", "build", "complete", "event", "result", "set", "stop", "time", "(", "runtime", "get", "clock", "(", ")", "current", "time", "millis", "(", ")", ")", ";", "result", "set", "was", "suspended", "(", "stop", "suspend", "count", ">", "start", "suspend", "count", ")", ";", "/", "/", "skip", "the", "build", "complete", "events", "so", "that", "modules", "can", "run", "blaze", "shutdown", "on", "crash", "without", "thinking", "/", "/", "that", "the", "build", "completed", "normally", "blaze", "command", "dispatcher", "will", "call", "handle", "crash", "if", "(", "crash", "=", "=", "null", ")", "{", "env", "get", "event", "bus", "(", ")", "post", "(", "new", "build", "precomplete", "event", "(", ")", ")", ";", "env", "get", "event", "bus", "(", ")", "post", "(", "new", "build", "complete", "event", "(", "result", ",", "immutable", "list", "of", "(", "build", "event", "id", "util", "build", "tool", "logs", "(", ")", ",", "build", "event", "id", "util", "build", "metrics", "(", ")", ")", ")", ")", ";", "}", "/", "/", "post", "the", "build", "tool", "logs", "event", ";", "the", "corresponding", "local", "files", "may", "be", "contributed", "from", "/", "/", "modules", ",", "and", "this", "has", "to", "happen", "after", "posting", "the", "build", "complete", "event", "because", "that", "'", "s", "when", "/", "/", "modules", "add", "their", "data", "to", "the", "collection", "env", "get", "event", "bus", "(", ")", "post", "(", "result", "get", "build", "tool", "log", "collection", "(", ")", "freeze", "(", ")", "to", "event", "(", ")", ")", ";", "if", "(", "ie", "!", "=", "null", ")", "{", "if", "(", "detailed", "exit", "code", "is", "success", "(", ")", ")", "{", "result", "set", "detailed", "exit", "code", "(", "interrupted", "failure", "details", "detailed", "exit", "code", "(", "\"", "build", "interrupted", "during", "command", "completion", "\"", ")", ")", ";", "}", "else", "if", "(", "!", "detailed", "exit", "code", "get", "exit", "code", "(", ")", "equals", "(", "exit", "code", "interrupted", ")", ")", "{", "logger", "at", "warning", "(", ")", "with", "cause", "(", "ie", ")", "log", "(", "\"", "suppressed", "interrupted", "exception", "during", "stop", "request", "because", "already", "failing", "with", ":", "%", "s", "\"", ",", "detailed", "exit", "code", ")", ";", "}", "}", "}" ]
[ "provide", "an", "expected", "prop", "to", "match", "against", "the", "value", "can", "be", "the", "expected", "value", "or", "another", "match", "node", "which", "will", "be", "matched", "against", "the", "actual", "value", "the", "prop", "name", "will", "be", "turned", "into", "a", "getter", "by", "pre", "-", "pending", "\"", "get", "\"", ":", "e", "g", "\"", "color", "\"", "-", ">", "\"", "get", "color", "(", ")", "\"" ]
[ "public", "<", "t", ">", "match", "node", "prop", "(", "string", "name", ",", "t", "value", ")", "{", "m", "expected", "props", "put", "(", "name", ",", "value", ")", ";", "return", "this", ";", "}" ]
[ "milliseconds", "to", "time", "span", "in", "unit" ]
[ "public", "static", "long", "millis", "2", "time", "span", "(", "final", "long", "millis", ",", "@", "time", "constants", "unit", "final", "int", "unit", ")", "{", "return", "millis", "/", "unit", ";", "}" ]
[ "are", "encryption", "tests", "enabled", "?" ]
[ "protected", "boolean", "encryption", "test", "enabled", "(", ")", "{", "return", "get", "configuration", "(", ")", "get", "boolean", "(", "key", "encryption", "tests", ",", "true", ")", ";", "}" ]
[ "invokes", "{", "@", "code", "unit", "}", "{", "@", "link", "time", "unit", "#", "sleep", "(", "long", ")", "sleep", "(", "sleep", "for", ")", "}", "uninterruptibly" ]
[ "public", "static", "void", "sleep", "uninterruptibly", "(", "duration", "sleep", "for", ")", "{", "sleep", "uninterruptibly", "(", "to", "nanos", "saturated", "(", "sleep", "for", ")", ",", "time", "unit", "nanoseconds", ")", ";", "}", "/", "/", "todo", "(", "user", ")", ":", "support", "sleeper", "somehow", "(", "wrapper", "or", "interface", "method", ")", "?" ]
[ "this", "will", "timeout", "immediately", "and", "raise", "a", "timeout", "exception" ]
[ "public", "void", "test", "intercept", "future", "timeout", "success", "(", ")", "throws", "throwable", "{", "completable", "future", "<", "string", ">", "future", "=", "new", "completable", "future", "<", ">", "(", ")", ";", "future", "complete", "exceptionally", "(", "new", "i", "o", "exception", "(", "\"", "oops", "\"", ")", ")", ";", "intercept", "future", "(", "i", "o", "exception", "class", ",", "\"", "oops", "\"", ",", "1", ",", "time", "unit", "nanoseconds", ",", "future", ")", ";", "}" ]
[ "returns", "this", "map", "'", "s", "entry", "that", "has", "the", "same", "key", "and", "value", "as", "{", "@", "code", "entry", "}", ",", "or", "null", "if", "this", "map", "has", "no", "such", "entry", "this", "method", "uses", "the", "comparator", "for", "key", "equality", "rather", "than", "{", "@", "code", "equals", "}", "if", "this", "map", "'", "s", "comparator", "isn", "'", "t", "consistent", "with", "equals", "(", "such", "as", "{", "@", "code", "string", "case", "insensitive", "order", "}", ")", ",", "then", "{", "@", "code", "remove", "(", ")", "}", "and", "{", "@", "code", "contains", "(", ")", "}", "will", "violate", "the", "collections", "api" ]
[ "node", "<", "k", ",", "v", ">", "find", "by", "entry", "(", "entry", "<", "?", ",", "?", ">", "entry", ")", "{", "node", "<", "k", ",", "v", ">", "mine", "=", "find", "by", "object", "(", "entry", "get", "key", "(", ")", ")", ";", "boolean", "values", "equal", "=", "mine", "!", "=", "null", "&", "&", "equal", "(", "mine", "value", ",", "entry", "get", "value", "(", ")", ")", ";", "return", "values", "equal", "?", "mine", ":", "null", ";", "}" ]
[ "called", "upon", "release", "of", "the", "aggregator" ]
[ "public", "void", "close", "(", ")", "{", "try", "{", "do", "close", "(", ")", ";", "}", "finally", "{", "context", "breaker", "(", ")", "add", "without", "breaking", "(", "-", "this", "request", "bytes", "used", ")", ";", "}", "}" ]
[ "tests", "all", "avro", "data", "types", "as", "well", "as", "nested", "types", "for", "a", "specific", "record" ]
[ "public", "static", "tuple", "3", "<", "class", "<", "?", "extends", "specific", "record", ">", ",", "specific", "record", ",", "row", ">", "get", "specific", "test", "data", "(", ")", "{", "final", "address", "addr", "=", "address", "new", "builder", "(", ")", "set", "num", "(", "42", ")", "set", "street", "(", "\"", "main", "street", "42", "\"", ")", "set", "city", "(", "\"", "test", "city", "\"", ")", "set", "state", "(", "\"", "test", "state", "\"", ")", "set", "zip", "(", "\"", "12345", "\"", ")", "build", "(", ")", ";", "final", "row", "row", "addr", "=", "new", "row", "(", "5", ")", ";", "row", "addr", "set", "field", "(", "0", ",", "42", ")", ";", "row", "addr", "set", "field", "(", "1", ",", "\"", "main", "street", "42", "\"", ")", ";", "row", "addr", "set", "field", "(", "2", ",", "\"", "test", "city", "\"", ")", ";", "row", "addr", "set", "field", "(", "3", ",", "\"", "test", "state", "\"", ")", ";", "row", "addr", "set", "field", "(", "4", ",", "\"", "12345", "\"", ")", ";", "final", "user", "user", "=", "user", "new", "builder", "(", ")", "set", "name", "(", "\"", "charlie", "\"", ")", "set", "favorite", "number", "(", "null", ")", "set", "favorite", "color", "(", "\"", "blue", "\"", ")", "set", "type", "long", "test", "(", "1337l", ")", "set", "type", "double", "test", "(", "1", "3", "3", "7d", ")", "set", "type", "null", "test", "(", "null", ")", "set", "type", "bool", "test", "(", "false", ")", "set", "type", "array", "string", "(", "arrays", "as", "list", "(", "\"", "hello", "\"", ",", "\"", "world", "\"", ")", ")", "set", "type", "array", "boolean", "(", "arrays", "as", "list", "(", "true", ",", "true", ",", "false", ")", ")", "set", "type", "nullable", "array", "(", "null", ")", "set", "type", "enum", "(", "colors", "red", ")", "set", "type", "map", "(", "collections", "singleton", "map", "(", "\"", "test", "\"", ",", "12l", ")", ")", "set", "type", "fixed", "(", "new", "fixed", "1", "6", "(", "new", "byte", "[", "]", "{", "1", ",", "2", ",", "3", ",", "4", ",", "5", ",", "6", ",", "7", ",", "8", ",", "9", ",", "10", ",", "11", ",", "12", ",", "13", ",", "14", ",", "15", ",", "16", "}", ")", ")", "set", "type", "union", "(", "12", "0", ")", "set", "type", "nested", "(", "addr", ")", "set", "type", "bytes", "(", "byte", "buffer", "allocate", "(", "10", ")", ")", "set", "type", "date", "(", "local", "date", "parse", "(", "\"", "2014", "-", "03", "-", "01", "\"", ")", ")", "set", "type", "time", "millis", "(", "local", "time", "parse", "(", "\"", "12", ":", "12", ":", "12", "\"", ")", ")", "set", "type", "time", "micros", "(", "local", "time", "of", "second", "of", "day", "(", "0", ")", "plus", "(", "123456l", ",", "chrono", "unit", "micros", ")", ")", "set", "type", "timestamp", "millis", "(", "instant", "parse", "(", "\"", "2014", "-", "03", "-", "01t12", ":", "12", ":", "12", "321z", "\"", ")", ")", "set", "type", "timestamp", "micros", "(", "instant", "of", "epoch", "second", "(", "0", ")", "plus", "(", "123456l", ",", "chrono", "unit", "micros", ")", ")", "/", "/", "byte", "array", "must", "contain", "the", "two", "'", "s", "-", "complement", "representation", "of", "the", "/", "/", "unscaled", "integer", "value", "in", "big", "-", "endian", "byte", "order", "set", "type", "decimal", "bytes", "(", "byte", "buffer", "wrap", "(", "big", "decimal", "value", "of", "(", "2000", ",", "2", ")", "unscaled", "value", "(", ")", "to", "byte", "array", "(", ")", ")", ")", "/", "/", "array", "of", "length", "n", "can", "store", "at", "most", "/", "/", "math", "floor", "(", "math", "log", "1", "0", "(", "math", "pow", "(", "2", ",", "8", "*", "n", "-", "1", ")", "-", "1", ")", ")", "/", "/", "base", "-", "10", "digits", "of", "precision", "set", "type", "decimal", "fixed", "(", "new", "fixed", "2", "(", "big", "decimal", "value", "of", "(", "2000", ",", "2", ")", "unscaled", "value", "(", ")", "to", "byte", "array", "(", ")", ")", ")", "build", "(", ")", ";", "final", "row", "row", "user", "=", "new", "row", "(", "23", ")", ";", "row", "user", "set", "field", "(", "0", ",", "\"", "charlie", "\"", ")", ";", "row", "user", "set", "field", "(", "1", ",", "null", ")", ";", "row", "user", "set", "field", "(", "2", ",", "\"", "blue", "\"", ")", ";", "row", "user", "set", "field", "(", "3", ",", "1337l", ")", ";", "row", "user", "set", "field", "(", "4", ",", "1", "3", "3", "7d", ")", ";", "row", "user", "set", "field", "(", "5", ",", "null", ")", ";", "row", "user", "set", "field", "(", "6", ",", "false", ")", ";", "row", "user", "set", "field", "(", "7", ",", "new", "string", "[", "]", "{", "\"", "hello", "\"", ",", "\"", "world", "\"", "}", ")", ";", "row", "user", "set", "field", "(", "8", ",", "new", "boolean", "[", "]", "{", "true", ",", "true", ",", "false", "}", ")", ";", "row", "user", "set", "field", "(", "9", ",", "null", ")", ";", "row", "user", "set", "field", "(", "10", ",", "\"", "red", "\"", ")", ";", "row", "user", "set", "field", "(", "11", ",", "collections", "singleton", "map", "(", "\"", "test", "\"", ",", "12l", ")", ")", ";", "row", "user", "set", "field", "(", "12", ",", "new", "byte", "[", "]", "{", "1", ",", "2", ",", "3", ",", "4", ",", "5", ",", "6", ",", "7", ",", "8", ",", "9", ",", "10", ",", "11", ",", "12", ",", "13", ",", "14", ",", "15", ",", "16", "}", ")", ";", "row", "user", "set", "field", "(", "13", ",", "12", "0", ")", ";", "row", "user", "set", "field", "(", "14", ",", "row", "addr", ")", ";", "row", "user", "set", "field", "(", "15", ",", "new", "byte", "[", "10", "]", ")", ";", "row", "user", "set", "field", "(", "16", ",", "date", "value", "of", "(", "\"", "2014", "-", "03", "-", "01", "\"", ")", ")", ";", "row", "user", "set", "field", "(", "17", ",", "time", "value", "of", "(", "\"", "12", ":", "12", ":", "12", "\"", ")", ")", ";", "row", "user", "set", "field", "(", "18", ",", "time", "value", "of", "(", "local", "time", "of", "second", "of", "day", "(", "0", ")", "plus", "(", "123456l", ",", "chrono", "unit", "micros", ")", ")", ")", ";", "row", "user", "set", "field", "(", "19", ",", "timestamp", "value", "of", "(", "\"", "2014", "-", "03", "-", "01", "12", ":", "12", ":", "12", "321", "\"", ")", ")", ";", "row", "user", "set", "field", "(", "20", ",", "timestamp", "from", "(", "instant", "of", "epoch", "second", "(", "0", ")", "plus", "(", "123456l", ",", "chrono", "unit", "micros", ")", ")", ")", ";", "row", "user", "set", "field", "(", "21", ",", "big", "decimal", "value", "of", "(", "2000", ",", "2", ")", ")", ";", "row", "user", "set", "field", "(", "22", ",", "big", "decimal", "value", "of", "(", "2000", ",", "2", ")", ")", ";", "final", "tuple", "3", "<", "class", "<", "?", "extends", "specific", "record", ">", ",", "specific", "record", ",", "row", ">", "t", "=", "new", "tuple", "3", "<", ">", "(", ")", ";", "t", "f", "0", "=", "user", "class", ";", "t", "f", "1", "=", "user", ";", "t", "f", "2", "=", "row", "user", ";", "return", "t", ";", "}" ]
[ "extracts", "all", "samples", "from", "the", "given", "file", "into", "a", "{", "@", "link", "fake", "track", "output", "}" ]
[ "public", "static", "fake", "extractor", "output", "extract", "all", "samples", "from", "file", "(", "extractor", "extractor", ",", "context", "context", ",", "string", "file", "name", ")", "throws", "i", "o", "exception", "{", "byte", "[", "]", "data", "=", "test", "util", "get", "byte", "array", "(", "context", ",", "file", "name", ")", ";", "fake", "extractor", "output", "expected", "output", "=", "new", "fake", "extractor", "output", "(", ")", ";", "extractor", "init", "(", "expected", "output", ")", ";", "fake", "extractor", "input", "input", "=", "new", "fake", "extractor", "input", "builder", "(", ")", "set", "data", "(", "data", ")", "build", "(", ")", ";", "position", "holder", "position", "holder", "=", "new", "position", "holder", "(", ")", ";", "int", "read", "result", "=", "extractor", "result", "continue", ";", "while", "(", "read", "result", "!", "=", "extractor", "result", "end", "of", "input", ")", "{", "while", "(", "read", "result", "=", "=", "extractor", "result", "continue", ")", "{", "read", "result", "=", "extractor", "read", "(", "input", ",", "position", "holder", ")", ";", "}", "if", "(", "read", "result", "=", "=", "extractor", "result", "seek", ")", "{", "input", "set", "position", "(", "(", "int", ")", "position", "holder", "position", ")", ";", "read", "result", "=", "extractor", "result", "continue", ";", "}", "}", "return", "expected", "output", ";", "}" ]
[ "abort", "the", "multipart", "commit", "supplied", "this", "is", "the", "lower", "level", "operation", "which", "doesn", "'", "t", "generate", "an", "outcome", ",", "instead", "raising", "an", "exception" ]
[ "private", "void", "abort", "single", "commit", "(", "single", "pending", "commit", "commit", ")", "throws", "i", "o", "exception", "{", "string", "dest", "key", "=", "commit", "get", "destination", "key", "(", ")", ";", "string", "origin", "=", "commit", "get", "filename", "(", ")", "!", "=", "null", "?", "(", "\"", "defined", "in", "\"", "+", "commit", "get", "filename", "(", ")", ")", ":", "\"", "\"", ";", "string", "upload", "id", "=", "commit", "get", "upload", "id", "(", ")", ";", "log", "info", "(", "\"", "aborting", "commit", "id", "{", "}", "to", "object", "{", "}", "{", "}", "\"", ",", "upload", "id", ",", "dest", "key", ",", "origin", ")", ";", "abort", "multipart", "commit", "(", "dest", "key", ",", "upload", "id", ")", ";", "}" ]
[ "whether", "the", "rest", "client", "should", "return", "any", "response", "containing", "at", "least", "one", "warning", "header", "as", "a", "failure" ]
[ "public", "rest", "client", "builder", "set", "strict", "deprecation", "mode", "(", "boolean", "strict", "deprecation", "mode", ")", "{", "this", "strict", "deprecation", "mode", "=", "strict", "deprecation", "mode", ";", "return", "this", ";", "}" ]
[ "get", "worker", "whitelist", "env", "params", "these", "params", "will", "be", "set", "in", "all", "tasks" ]
[ "public", "list", "<", "string", ">", "get", "worker", "white", "list", "env", "(", ")", "{", "list", "<", "string", ">", "white", "list", "=", "new", "array", "list", "<", "string", ">", "(", ")", ";", "string", "env", "=", "configs", "map", "get", "(", "worker", "whitelist", "env", ")", ";", "if", "(", "env", "!", "=", "null", "&", "&", "!", "env", "is", "empty", "(", ")", ")", "{", "string", "[", "]", "variables", "=", "env", "split", "(", "comma", "splitter", ")", ";", "for", "(", "string", "variable", ":", "variables", ")", "{", "variable", "=", "variable", "trim", "(", ")", ";", "if", "(", "variable", "starts", "with", "(", "\"", "$", "\"", ")", ")", "{", "variable", "=", "variable", "substring", "(", "1", ")", ";", "}", "if", "(", "!", "variable", "is", "empty", "(", ")", ")", "{", "white", "list", "add", "(", "variable", ")", ";", "}", "}", "}", "return", "white", "list", ";", "}" ]
[ "get", "the", "current", "joint", "translation", "speed", ",", "usually", "in", "meters", "per", "second" ]
[ "public", "float", "get", "joint", "speed", "(", ")", "{", "return", "joint", "get", "joint", "speed", "(", ")", ";", "}" ]
[ "get", "zoo", "keeper", "address" ]
[ "public", "string", "get", "z", "k", "address", "(", ")", "{", "return", "configs", "map", "get", "(", "zk", "address", ")", ";", "}" ]
[ "returns", "a", "hash", "code", "value", "for", "the", "block", "the", "hash", "code", "adheres", "to", "the", "general", "contract", "of", "hash", "code", "if", "two", "blocks", "are", "equal", "according", "to", "the", "equals", "(", "object", ")", "method", ",", "then", "calling", "the", "hash", "code", "method", "on", "each", "of", "the", "two", "blocks", "produce", "the", "same", "integer", "result" ]
[ "public", "int", "hash", "code", "(", ")", "{", "return", "long", "hash", "code", "(", "block", "id", ")", ";", "}" ]
[ "set", "a", "custom", "namespace", "for", "this", "servlet", ",", "to", "be", "used", "for", "building", "a", "default", "context", "config", "location" ]
[ "public", "void", "set", "namespace", "(", "string", "namespace", ")", "{", "this", "namespace", "=", "namespace", ";", "}" ]
[ "test", "that", "ensures", "the", "kafka", "consumer", "is", "properly", "failing", "if", "the", "topic", "doesnt", "exist", "and", "a", "wrong", "broker", "was", "specified" ]
[ "public", "void", "run", "fail", "on", "no", "broker", "test", "(", ")", "throws", "exception", "{", "try", "{", "properties", "properties", "=", "new", "properties", "(", ")", ";", "stream", "execution", "environment", "see", "=", "stream", "execution", "environment", "get", "execution", "environment", "(", ")", ";", "see", "set", "restart", "strategy", "(", "restart", "strategies", "no", "restart", "(", ")", ")", ";", "see", "set", "parallelism", "(", "1", ")", ";", "/", "/", "use", "wrong", "ports", "for", "the", "consumers", "properties", "set", "property", "(", "\"", "bootstrap", "servers", "\"", ",", "\"", "localhost", ":", "80", "\"", ")", ";", "properties", "set", "property", "(", "\"", "group", "id", "\"", ",", "\"", "test", "\"", ")", ";", "properties", "set", "property", "(", "\"", "request", "timeout", "ms", "\"", ",", "\"", "3000", "\"", ")", ";", "/", "/", "let", "the", "test", "fail", "fast", "properties", "set", "property", "(", "\"", "socket", "timeout", "ms", "\"", ",", "\"", "3000", "\"", ")", ";", "properties", "set", "property", "(", "\"", "session", "timeout", "ms", "\"", ",", "\"", "2000", "\"", ")", ";", "properties", "set", "property", "(", "\"", "fetch", "max", "wait", "ms", "\"", ",", "\"", "2000", "\"", ")", ";", "properties", "set", "property", "(", "\"", "heartbeat", "interval", "ms", "\"", ",", "\"", "1000", "\"", ")", ";", "properties", "put", "all", "(", "secure", "props", ")", ";", "flink", "kafka", "consumer", "base", "<", "string", ">", "source", "=", "kafka", "server", "get", "consumer", "(", "\"", "doesntexist", "\"", ",", "new", "simple", "string", "schema", "(", ")", ",", "properties", ")", ";", "data", "stream", "<", "string", ">", "stream", "=", "see", "add", "source", "(", "source", ")", ";", "stream", "print", "(", ")", ";", "see", "execute", "(", "\"", "no", "broker", "test", "\"", ")", ";", "}", "catch", "(", "job", "execution", "exception", "jee", ")", "{", "if", "(", "kafka", "server", "get", "version", "(", ")", "equals", "(", "\"", "0", "9", "\"", ")", "|", "|", "kafka", "server", "get", "version", "(", ")", "equals", "(", "\"", "0", "10", "\"", ")", "|", "|", "kafka", "server", "get", "version", "(", ")", "equals", "(", "\"", "0", "11", "\"", ")", "|", "|", "kafka", "server", "get", "version", "(", ")", "equals", "(", "\"", "2", "0", "\"", ")", ")", "{", "final", "optional", "<", "timeout", "exception", ">", "optional", "timeout", "exception", "=", "exception", "utils", "find", "throwable", "(", "jee", ",", "timeout", "exception", "class", ")", ";", "assert", "true", "(", "optional", "timeout", "exception", "is", "present", "(", ")", ")", ";", "final", "timeout", "exception", "timeout", "exception", "=", "optional", "timeout", "exception", "get", "(", ")", ";", "assert", "equals", "(", "\"", "timeout", "expired", "while", "fetching", "topic", "metadata", "\"", ",", "timeout", "exception", "get", "message", "(", ")", ")", ";", "}", "else", "{", "final", "optional", "<", "throwable", ">", "optional", "throwable", "=", "exception", "utils", "find", "throwable", "with", "message", "(", "jee", ",", "\"", "unable", "to", "retrieve", "any", "partitions", "\"", ")", ";", "assert", "true", "(", "optional", "throwable", "is", "present", "(", ")", ")", ";", "assert", "true", "(", "optional", "throwable", "get", "(", ")", "instanceof", "runtime", "exception", ")", ";", "}", "}", "}" ]
[ "creates", "an", "action", "that", "packages", "files", "into", "a", "jar", "file" ]
[ "public", "static", "void", "create", "source", "jar", "action", "(", "rule", "context", "rule", "context", ",", "java", "semantics", "semantics", ",", "nested", "set", "<", "artifact", ">", "resources", ",", "nested", "set", "<", "artifact", ">", "resource", "jars", ",", "artifact", "output", "jar", ")", "{", "create", "source", "jar", "action", "(", "rule", "context", ",", "rule", "context", ",", "semantics", ",", "resources", ",", "resource", "jars", ",", "output", "jar", ",", "java", "toolchain", "provider", "from", "(", "rule", "context", ")", ")", ";", "}" ]
[ "retrieve", "a", "combined", "result", "from", "the", "field", "values", "of", "multi", "-", "valued", "headers" ]
[ "protected", "string", "get", "field", "values", "(", "string", "header", "name", ")", "{", "list", "<", "string", ">", "header", "values", "=", "get", "(", "header", "name", ")", ";", "return", "(", "header", "values", "!", "=", "null", "?", "to", "comma", "delimited", "string", "(", "header", "values", ")", ":", "null", ")", ";", "}" ]
[ "initialize", "the", "cluster", ",", "wait", "for", "it", "to", "become", "active", ",", "and", "get", "file", "system" ]
[ "private", "static", "void", "init", "cluster", "(", "boolean", "format", ",", "boolean", "x", "attrs", "enabled", ")", "throws", "exception", "{", "conf", "=", "new", "configuration", "(", ")", ";", "conf", "set", "boolean", "(", "d", "f", "s", "config", "keys", "dfs", "namenode", "xattrs", "enabled", "key", ",", "x", "attrs", "enabled", ")", ";", "conf", "set", "(", "common", "configuration", "keys", "fs", "default", "name", "key", ",", "\"", "stubfs", ":", "/", "/", "/", "\"", ")", ";", "conf", "set", "class", "(", "\"", "fs", "stubfs", "impl", "\"", ",", "stub", "file", "system", "class", ",", "file", "system", "class", ")", ";", "cluster", "=", "new", "mini", "d", "f", "s", "cluster", "builder", "(", "conf", ")", "num", "data", "nodes", "(", "1", ")", "format", "(", "format", ")", "build", "(", ")", ";", "cluster", "wait", "active", "(", ")", ";", "fs", "=", "cluster", "get", "file", "system", "(", ")", ";", "}" ]
[ "get", "the", "maximum", "number", "of", "particles" ]
[ "public", "int", "get", "particle", "max", "count", "(", ")", "{", "return", "m", "particle", "system", "get", "particle", "max", "count", "(", ")", ";", "}" ]
[ "only", "clean", "up", "the", "test", "account", "(", "and", "delete", "the", "container", ")", "if", "the", "account", "is", "set", "in", "the", "field", "{", "@", "code", "test", "account", "for", "cleanup", "}" ]
[ "public", "void", "tear", "down", "(", ")", "throws", "exception", "{", "test", "account", "=", "null", ";", "super", "tear", "down", "(", ")", ";", "if", "(", "test", "account", "for", "cleanup", "!", "=", "null", ")", "{", "cleanup", "test", "account", "(", "test", "account", ")", ";", "}", "}" ]
[ "get", "the", "desired", "behavior", "for", "the", "peer", "who", "selects", "the", "application", "protocol" ]
[ "public", "selector", "failure", "behavior", "selector", "failure", "behavior", "(", ")", "{", "return", "selector", "behavior", ";", "}" ]
[ "test", "that", "the", "circuit", "-", "breaker", "counts", "a", "command", "execution", "timeout", "as", "a", "'", "timeout", "'", "and", "not", "just", "failure" ]
[ "public", "void", "test", "short", "circuit", "fallback", "counter", "(", ")", "{", "test", "circuit", "breaker", "circuit", "breaker", "=", "new", "test", "circuit", "breaker", "(", ")", "set", "force", "short", "circuit", "(", "true", ")", ";", "known", "failure", "test", "command", "with", "fallback", "command", "1", "=", "new", "known", "failure", "test", "command", "with", "fallback", "(", "circuit", "breaker", ",", "execution", "isolation", "strategy", "semaphore", ",", "true", ")", ";", "known", "failure", "test", "command", "with", "fallback", "command", "2", "=", "new", "known", "failure", "test", "command", "with", "fallback", "(", "circuit", "breaker", ",", "execution", "isolation", "strategy", "semaphore", ",", "true", ")", ";", "try", "{", "command", "1", "observe", "(", ")", "to", "blocking", "(", ")", "single", "(", ")", ";", "command", "2", "observe", "(", ")", "to", "blocking", "(", ")", "single", "(", ")", ";", "/", "/", "will", "be", "-", "1", "because", "it", "never", "attempted", "execution", "assert", "equals", "(", "-", "1", ",", "command", "2", "get", "execution", "time", "in", "milliseconds", "(", ")", ")", ";", "assert", "true", "(", "command", "2", "is", "response", "short", "circuited", "(", ")", ")", ";", "assert", "false", "(", "command", "2", "is", "response", "timed", "out", "(", ")", ")", ";", "assert", "not", "null", "(", "command", "2", "get", "execution", "exception", "(", ")", ")", ";", "/", "/", "semaphore", "isolated", "assert", "false", "(", "command", "2", "is", "executed", "in", "thread", "(", ")", ")", ";", "}", "catch", "(", "exception", "e", ")", "{", "e", "print", "stack", "trace", "(", ")", ";", "fail", "(", "\"", "we", "should", "have", "received", "a", "response", "from", "the", "fallback", "\"", ")", ";", "}", "assert", "command", "execution", "events", "(", "command", "1", ",", "hystrix", "event", "type", "short", "circuited", ",", "hystrix", "event", "type", "fallback", "emit", ",", "hystrix", "event", "type", "fallback", "success", ")", ";", "assert", "command", "execution", "events", "(", "command", "2", ",", "hystrix", "event", "type", "short", "circuited", ",", "hystrix", "event", "type", "fallback", "emit", ",", "hystrix", "event", "type", "fallback", "success", ")", ";", "assert", "sane", "hystrix", "request", "log", "(", "2", ")", ";", "}" ]
[ "return", "true", "if", "this", "tag", "object", "is", "equal", "to", "o" ]
[ "public", "boolean", "equals", "(", "object", "o", ")", "{", "if", "(", "this", "=", "=", "o", ")", "{", "return", "true", ";", "}", "if", "(", "o", "=", "=", "null", "|", "|", "get", "class", "(", ")", "!", "=", "o", "get", "class", "(", ")", ")", "{", "return", "false", ";", "}", "tag", "tag", "=", "(", "tag", ")", "o", ";", "return", "objects", "equals", "(", "this", "id", ",", "tag", "id", ")", "&", "&", "objects", "equals", "(", "this", "name", ",", "tag", "name", ")", ";", "}" ]
[ "returns", "the", "current", "interface", "http", "data", "if", "currently", "in", "decoding", "status", ",", "meaning", "all", "data", "are", "not", "yet", "within", ",", "or", "null", "if", "there", "is", "no", "interface", "http", "data", "currently", "in", "decoding", "status", "(", "either", "because", "none", "yet", "decoded", "or", "none", "currently", "partially", "decoded", ")", "full", "decoded", "ones", "are", "accessible", "through", "has", "next", "(", ")", "and", "next", "(", ")", "methods" ]
[ "interface", "http", "data", "current", "partial", "http", "data", "(", ")", ";" ]
[ "can", "'", "t", "disable", "a", "plugin", "with", "a", "mandatory", "dependent", "plugin", "with", "default", "strategy", "(", "none", ")" ]
[ "public", "void", "cannot", "disable", "plugin", "with", "mandatory", "depender", "strategy", "none", "(", ")", "{", "assert", "that", "(", "disable", "plugins", "c", "li", "command", "(", "\"", "dependee", "\"", ")", ",", "failed", "with", "(", "return", "code", "not", "disabled", "dependants", ")", ")", ";", "assert", "plugin", "enabled", "(", "\"", "dependee", "\"", ")", ";", "}" ]
[ "get", "the", "first", "field", "object", "contained", "within", "object", "owner", "instance", "which", "has", "the", "type", "class", "type", "this", "method", "is", "only", "really", "useful", "if", "it", "is", "known", "that", "only", "a", "single", "field", "of", "class", "type", "exists", "within", "the", "owner", "instance" ]
[ "public", "static", "<", "t", ">", "t", "get", "instance", "field", "by", "class", "type", "(", "class", "<", "t", ">", "class", "type", ",", "object", "owner", "instance", ")", "{", "return", "test", "utils", "get", "instance", "field", "by", "class", "type", "(", "class", "type", ",", "owner", "instance", ")", ";", "}" ]
[ "an", "implementation", "note", "if", "there", "'", "s", "a", "version", "mismatch", "between", "hystrix", "-", "core", "and", "hystrix", "-", "codahale", "-", "metrics", "-", "publisher", ",", "the", "code", "below", "may", "reference", "a", "hystrix", "rolling", "number", "event", "that", "does", "not", "exist", "in", "hystrix", "-", "core", "if", "this", "happens", ",", "a", "j", "l", "no", "such", "field", "error", "occurs", "since", "this", "data", "is", "not", "being", "generated", "by", "hystrix", "-", "core", ",", "it", "'", "s", "safe", "to", "count", "it", "as", "0", "and", "we", "should", "log", "an", "error", "to", "get", "users", "to", "update", "their", "dependency", "set" ]
[ "public", "void", "initialize", "(", ")", "{", "/", "/", "allow", "monitor", "to", "know", "exactly", "at", "what", "point", "in", "time", "these", "stats", "are", "for", "so", "they", "can", "be", "plotted", "accurately", "metric", "registry", "register", "(", "create", "metric", "name", "(", "\"", "current", "time", "\"", ")", ",", "new", "gauge", "<", "long", ">", "(", ")", "{", "@", "override", "public", "long", "get", "value", "(", ")", "{", "return", "system", "current", "time", "millis", "(", ")", ";", "}", "}", ")", ";", "/", "/", "cumulative", "counts", "safely", "create", "cumulative", "count", "for", "event", "(", "\"", "count", "requests", "batched", "\"", ",", "new", "func", "0", "<", "hystrix", "rolling", "number", "event", ">", "(", ")", "{", "@", "override", "public", "hystrix", "rolling", "number", "event", "call", "(", ")", "{", "return", "hystrix", "rolling", "number", "event", "collapser", "request", "batched", ";", "}", "}", ")", ";", "safely", "create", "cumulative", "count", "for", "event", "(", "\"", "count", "batches", "\"", ",", "new", "func", "0", "<", "hystrix", "rolling", "number", "event", ">", "(", ")", "{", "@", "override", "public", "hystrix", "rolling", "number", "event", "call", "(", ")", "{", "return", "hystrix", "rolling", "number", "event", "collapser", "batch", ";", "}", "}", ")", ";", "safely", "create", "cumulative", "count", "for", "event", "(", "\"", "count", "responses", "from", "cache", "\"", ",", "new", "func", "0", "<", "hystrix", "rolling", "number", "event", ">", "(", ")", "{", "@", "override", "public", "hystrix", "rolling", "number", "event", "call", "(", ")", "{", "return", "hystrix", "rolling", "number", "event", "response", "from", "cache", ";", "}", "}", ")", ";", "/", "/", "rolling", "counts", "safely", "create", "rolling", "count", "for", "event", "(", "\"", "rolling", "requests", "batched", "\"", ",", "new", "func", "0", "<", "hystrix", "rolling", "number", "event", ">", "(", ")", "{", "@", "override", "public", "hystrix", "rolling", "number", "event", "call", "(", ")", "{", "return", "hystrix", "rolling", "number", "event", "collapser", "request", "batched", ";", "}", "}", ")", ";", "safely", "create", "rolling", "count", "for", "event", "(", "\"", "rolling", "batches", "\"", ",", "new", "func", "0", "<", "hystrix", "rolling", "number", "event", ">", "(", ")", "{", "@", "override", "public", "hystrix", "rolling", "number", "event", "call", "(", ")", "{", "return", "hystrix", "rolling", "number", "event", "collapser", "batch", ";", "}", "}", ")", ";", "safely", "create", "rolling", "count", "for", "event", "(", "\"", "rolling", "count", "responses", "from", "cache", "\"", ",", "new", "func", "0", "<", "hystrix", "rolling", "number", "event", ">", "(", ")", "{", "@", "override", "public", "hystrix", "rolling", "number", "event", "call", "(", ")", "{", "return", "hystrix", "rolling", "number", "event", "response", "from", "cache", ";", "}", "}", ")", ";", "/", "/", "batch", "size", "metrics", "metric", "registry", "register", "(", "create", "metric", "name", "(", "\"", "batch", "size", "mean", "\"", ")", ",", "new", "gauge", "<", "integer", ">", "(", ")", "{", "@", "override", "public", "integer", "get", "value", "(", ")", "{", "return", "metrics", "get", "batch", "size", "mean", "(", ")", ";", "}", "}", ")", ";", "metric", "registry", "register", "(", "create", "metric", "name", "(", "\"", "batch", "size", "percentile", "25", "\"", ")", ",", "new", "gauge", "<", "integer", ">", "(", ")", "{", "@", "override", "public", "integer", "get", "value", "(", ")", "{", "return", "metrics", "get", "batch", "size", "percentile", "(", "25", ")", ";", "}", "}", ")", ";", "metric", "registry", "register", "(", "create", "metric", "name", "(", "\"", "batch", "size", "percentile", "50", "\"", ")", ",", "new", "gauge", "<", "integer", ">", "(", ")", "{", "@", "override", "public", "integer", "get", "value", "(", ")", "{", "return", "metrics", "get", "batch", "size", "percentile", "(", "50", ")", ";", "}", "}", ")", ";", "metric", "registry", "register", "(", "create", "metric", "name", "(", "\"", "batch", "size", "percentile", "75", "\"", ")", ",", "new", "gauge", "<", "integer", ">", "(", ")", "{", "@", "override", "public", "integer", "get", "value", "(", ")", "{", "return", "metrics", "get", "batch", "size", "percentile", "(", "75", ")", ";", "}", "}", ")", ";", "metric", "registry", "register", "(", "create", "metric", "name", "(", "\"", "batch", "size", "percentile", "90", "\"", ")", ",", "new", "gauge", "<", "integer", ">", "(", ")", "{", "@", "override", "public", "integer", "get", "value", "(", ")", "{", "return", "metrics", "get", "batch", "size", "percentile", "(", "90", ")", ";", "}", "}", ")", ";", "metric", "registry", "register", "(", "create", "metric", "name", "(", "\"", "batch", "size", "percentile", "99", "\"", ")", ",", "new", "gauge", "<", "integer", ">", "(", ")", "{", "@", "override", "public", "integer", "get", "value", "(", ")", "{", "return", "metrics", "get", "batch", "size", "percentile", "(", "99", ")", ";", "}", "}", ")", ";", "metric", "registry", "register", "(", "create", "metric", "name", "(", "\"", "batch", "size", "percentile", "995", "\"", ")", ",", "new", "gauge", "<", "integer", ">", "(", ")", "{", "@", "override", "public", "integer", "get", "value", "(", ")", "{", "return", "metrics", "get", "batch", "size", "percentile", "(", "99", "5", ")", ";", "}", "}", ")", ";", "/", "/", "shard", "size", "metrics", "metric", "registry", "register", "(", "create", "metric", "name", "(", "\"", "shard", "size", "mean", "\"", ")", ",", "new", "gauge", "<", "integer", ">", "(", ")", "{", "@", "override", "public", "integer", "get", "value", "(", ")", "{", "return", "metrics", "get", "shard", "size", "mean", "(", ")", ";", "}", "}", ")", ";", "metric", "registry", "register", "(", "create", "metric", "name", "(", "\"", "shard", "size", "percentile", "25", "\"", ")", ",", "new", "gauge", "<", "integer", ">", "(", ")", "{", "@", "override", "public", "integer", "get", "value", "(", ")", "{", "return", "metrics", "get", "shard", "size", "percentile", "(", "25", ")", ";", "}", "}", ")", ";", "metric", "registry", "register", "(", "create", "metric", "name", "(", "\"", "shard", "size", "percentile", "50", "\"", ")", ",", "new", "gauge", "<", "integer", ">", "(", ")", "{", "@", "override", "public", "integer", "get", "value", "(", ")", "{", "return", "metrics", "get", "shard", "size", "percentile", "(", "50", ")", ";", "}", "}", ")", ";", "metric", "registry", "register", "(", "create", "metric", "name", "(", "\"", "shard", "size", "percentile", "75", "\"", ")", ",", "new", "gauge", "<", "integer", ">", "(", ")", "{", "@", "override", "public", "integer", "get", "value", "(", ")", "{", "return", "metrics", "get", "shard", "size", "percentile", "(", "75", ")", ";", "}", "}", ")", ";", "metric", "registry", "register", "(", "create", "metric", "name", "(", "\"", "shard", "size", "percentile", "90", "\"", ")", ",", "new", "gauge", "<", "integer", ">", "(", ")", "{", "@", "override", "public", "integer", "get", "value", "(", ")", "{", "return", "metrics", "get", "shard", "size", "percentile", "(", "90", ")", ";", "}", "}", ")", ";", "metric", "registry", "register", "(", "create", "metric", "name", "(", "\"", "shard", "size", "percentile", "99", "\"", ")", ",", "new", "gauge", "<", "integer", ">", "(", ")", "{", "@", "override", "public", "integer", "get", "value", "(", ")", "{", "return", "metrics", "get", "shard", "size", "percentile", "(", "99", ")", ";", "}", "}", ")", ";", "metric", "registry", "register", "(", "create", "metric", "name", "(", "\"", "shard", "size", "percentile", "995", "\"", ")", ",", "new", "gauge", "<", "integer", ">", "(", ")", "{", "@", "override", "public", "integer", "get", "value", "(", ")", "{", "return", "metrics", "get", "shard", "size", "percentile", "(", "99", "5", ")", ";", "}", "}", ")", ";", "/", "/", "properties", "(", "so", "the", "values", "can", "be", "inspected", "and", "monitored", ")", "metric", "registry", "register", "(", "create", "metric", "name", "(", "\"", "property", "value", "rolling", "statistical", "window", "in", "milliseconds", "\"", ")", ",", "new", "gauge", "<", "number", ">", "(", ")", "{", "@", "override", "public", "number", "get", "value", "(", ")", "{", "return", "properties", "metrics", "rolling", "statistical", "window", "in", "milliseconds", "(", ")", "get", "(", ")", ";", "}", "}", ")", ";", "metric", "registry", "register", "(", "create", "metric", "name", "(", "\"", "property", "value", "request", "cache", "enabled", "\"", ")", ",", "new", "gauge", "<", "boolean", ">", "(", ")", "{", "@", "override", "public", "boolean", "get", "value", "(", ")", "{", "return", "properties", "request", "cache", "enabled", "(", ")", "get", "(", ")", ";", "}", "}", ")", ";", "metric", "registry", "register", "(", "create", "metric", "name", "(", "\"", "property", "value", "max", "requests", "in", "batch", "\"", ")", ",", "new", "gauge", "<", "number", ">", "(", ")", "{", "@", "override", "public", "number", "get", "value", "(", ")", "{", "return", "properties", "max", "requests", "in", "batch", "(", ")", "get", "(", ")", ";", "}", "}", ")", ";", "metric", "registry", "register", "(", "create", "metric", "name", "(", "\"", "property", "value", "timer", "delay", "in", "milliseconds", "\"", ")", ",", "new", "gauge", "<", "number", ">", "(", ")", "{", "@", "override", "public", "number", "get", "value", "(", ")", "{", "return", "properties", "timer", "delay", "in", "milliseconds", "(", ")", "get", "(", ")", ";", "}", "}", ")", ";", "}" ]
[ "action", "listener", "for", "the", "project", "combo", "box" ]
[ "public", "void", "action", "performed", "(", "action", "event", "e", ")", "{", "int", "index", "=", "project", "combo", "box", "get", "selected", "index", "(", ")", ";", "if", "(", "index", "<", "0", ")", "{", "return", ";", "}", "project", "project", "=", "app", "info", "get", "active", "project", "(", ")", ";", "try", "{", "project", "data", "pd", "=", "project", "get", "project", "data", "(", "project", "locators", "[", "index", "]", ")", ";", "if", "(", "pd", "=", "=", "null", ")", "{", "msg", "show", "error", "(", "get", "class", "(", ")", ",", "get", "component", "(", ")", ",", "\"", "error", "getting", "project", "data", "\"", ",", "\"", "could", "not", "get", "project", "data", "for", "\"", "+", "project", "locators", "[", "index", "]", "get", "name", "(", ")", ")", ";", "}", "else", "{", "tree", "panel", "set", "project", "data", "(", "project", "locators", "[", "index", "]", "get", "name", "(", ")", ",", "pd", ")", ";", "}", "}", "catch", "(", "exception", "exc", ")", "{", "msg", "show", "error", "(", "get", "class", "(", ")", ",", "get", "component", "(", ")", ",", "\"", "error", "getting", "project", "data", "\"", ",", "exc", "to", "string", "(", ")", ",", "exc", ")", ";", "}", "}" ]
[ "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", "\"", ")", ";", "}" ]
[ "finish", "the", "activity" ]
[ "public", "static", "void", "finish", "activity", "(", "@", "non", "null", "final", "class", "<", "?", "extends", "activity", ">", "clz", ",", "@", "anim", "res", "final", "int", "enter", "anim", ",", "@", "anim", "res", "final", "int", "exit", "anim", ")", "{", "list", "<", "activity", ">", "activities", "=", "utils", "bridge", "get", "activity", "list", "(", ")", ";", "for", "(", "activity", "activity", ":", "activities", ")", "{", "if", "(", "activity", "get", "class", "(", ")", "equals", "(", "clz", ")", ")", "{", "activity", "finish", "(", ")", ";", "activity", "override", "pending", "transition", "(", "enter", "anim", ",", "exit", "anim", ")", ";", "}", "}", "}" ]
[ "m", "t", "l", "s", "-", "client", "auth", "enabled", "-", "using", "{", "@", "link", "xds", "channel", "credentials", "}", "api" ]
[ "public", "void", "mtls", "client", "server", "with", "client", "authentication", "with", "xds", "channel", "creds", "(", ")", "throws", "i", "o", "exception", ",", "u", "r", "i", "syntax", "exception", "{", "upstream", "tls", "context", "upstream", "tls", "context", "=", "common", "tls", "context", "tests", "util", "build", "upstream", "tls", "context", "from", "filenames", "(", "client", "key", "file", ",", "client", "pem", "file", ",", "ca", "pem", "file", ")", ";", "perform", "mtls", "test", "and", "get", "listener", "watcher", "(", "upstream", "tls", "context", ",", "true", ")", ";", "}" ]
[ "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", "\"", ")", ";", "}" ]
[ "test", "the", "property", "'", "map", "array", "integer", "'" ]
[ "public", "void", "map", "array", "integer", "test", "(", ")", "{", "/", "/", "todo", ":", "test", "map", "array", "integer", "}" ]
[ "write", "a", "block", "encoding", "to", "the", "output" ]
[ "void", "write", "block", "(", "slice", "output", "output", ",", "block", "block", ")", ";" ]
[ "returns", "whether", "the", "source", "has", "zero", "bytes", "the", "default", "implementation", "first", "checks", "{", "@", "link", "#", "size", "if", "known", "}", ",", "returning", "true", "if", "it", "'", "s", "known", "to", "be", "zero", "and", "false", "if", "it", "'", "s", "known", "to", "be", "non", "-", "zero", "if", "the", "size", "is", "not", "known", ",", "it", "falls", "back", "to", "opening", "a", "stream", "and", "checking", "for", "eof", "note", "that", ",", "in", "cases", "where", "{", "@", "code", "size", "if", "known", "}", "returns", "zero", ",", "it", "is", "possible", "that", "bytes", "are", "actually", "available", "for", "reading", "(", "for", "example", ",", "some", "special", "files", "may", "return", "a", "size", "of", "0", "despite", "actually", "having", "content", "when", "read", ")", "this", "means", "that", "a", "source", "may", "return", "{", "@", "code", "true", "}", "from", "{", "@", "code", "is", "empty", "(", ")", "}", "despite", "having", "readable", "content" ]
[ "public", "boolean", "is", "empty", "(", ")", "throws", "i", "o", "exception", "{", "optional", "<", "long", ">", "size", "if", "known", "=", "size", "if", "known", "(", ")", ";", "if", "(", "size", "if", "known", "is", "present", "(", ")", ")", "{", "return", "size", "if", "known", "get", "(", ")", "=", "=", "0l", ";", "}", "closer", "closer", "=", "closer", "create", "(", ")", ";", "try", "{", "input", "stream", "in", "=", "closer", "register", "(", "open", "stream", "(", ")", ")", ";", "return", "in", "read", "(", ")", "=", "=", "-", "1", ";", "}", "catch", "(", "throwable", "e", ")", "{", "throw", "closer", "rethrow", "(", "e", ")", ";", "}", "finally", "{", "closer", "close", "(", ")", ";", "}", "}" ]
[ "get", "container", "of", "the", "allocation" ]
[ "public", "container", "get", "container", "(", ")", "{", "return", "container", ";", "}" ]
[ "returns", "the", "original", "element", "list", ",", "unchanged" ]
[ "public", "list", "<", "byte", ">", "order", "(", "list", "<", "byte", ">", "insertion", "order", ")", "{", "return", "insertion", "order", ";", "}" ]
[ "test", "to", "verify", "sorting", "with", "two", "decommissioned", "datanodes", "exists", "in", "storage", "lists", "for", "the", "same", "block", "index", "we", "have", "storage", "list", ",", "marked", "decommissioned", "internal", "blocks", "with", "a", "'", "d", "0", ",", "d", "1", ",", "d", "2", ",", "d", "3", ",", "d", "4", ",", "d", "5", ",", "d", "6", ",", "d", "7", ",", "d", "8", ",", "d", "9", ",", "d", "1", "0", ",", "d", "1", "1", ",", "d", "1", "2", ",", "d", "1", "3", "mapping", "to", "indices", "0", "'", ",", "1", "'", ",", "2", ",", "3", ",", "4", "'", ",", "5", "'", ",", "6", ",", "7", ",", "8", ",", "0", ",", "1", "'", ",", "4", ",", "5", ",", "1", "decommissioned", "node", "indices", ":", "0", "'", ",", "1", "'", ",", "4", "'", ",", "5", "'", ",", "1", "'", "here", "decommissioned", "has", "done", "twice", "to", "the", "datanode", "block", "index", "1", "so", "in", "the", "original", "list", "nodes", "d", "0", ",", "d", "1", ",", "d", "4", ",", "d", "5", ",", "d", "1", "0", "are", "decommissioned", "state", "after", "sorting", "the", "expected", "block", "indices", "list", "will", "be", ",", "0", ",", "1", ",", "2", ",", "3", ",", "4", ",", "5", ",", "6", ",", "7", ",", "8", ",", "0", "'", ",", "1", "'", ",", "1", "'", ",", "4", "'", ",", "5", "'", "after", "sorting", "the", "expected", "storage", "list", "will", "be", ",", "d", "9", ",", "d", "1", "3", ",", "d", "2", ",", "d", "3", ",", "d", "1", "1", ",", "d", "1", "2", ",", "d", "6", ",", "d", "7", ",", "d", "8", ",", "d", "0", ",", "d", "1", ",", "d", "1", "0", ",", "d", "4", ",", "d", "5", "note", ":", "after", "sorting", "block", "indices", "will", "not", "be", "in", "ascending", "order" ]
[ "public", "void", "test", "two", "datanodes", "with", "same", "block", "index", "are", "decommn", "(", ")", "{", "log", "info", "(", "\"", "starting", "test", "test", "two", "datanodes", "with", "same", "block", "index", "are", "decommn", "\"", ")", ";", "int", "lbs", "count", "=", "2", ";", "/", "/", "two", "located", "block", "groups", "list", "<", "integer", ">", "decommn", "node", "indices", "=", "new", "array", "list", "<", ">", "(", ")", ";", "decommn", "node", "indices", "add", "(", "0", ")", ";", "decommn", "node", "indices", "add", "(", "1", ")", ";", "decommn", "node", "indices", "add", "(", "4", ")", ";", "decommn", "node", "indices", "add", "(", "5", ")", ";", "/", "/", "representing", "block", "index", "1", ",", "later", "this", "also", "decommissioned", "decommn", "node", "indices", "add", "(", "1", ")", ";", "list", "<", "integer", ">", "target", "node", "indices", "=", "new", "array", "list", "<", ">", "(", ")", ";", "target", "node", "indices", "add", "all", "(", "decommn", "node", "indices", ")", ";", "/", "/", "map", "contains", "decommissioned", "node", "details", "in", "each", "located", "strip", "block", "/", "/", "which", "will", "be", "used", "for", "assertions", "hash", "map", "<", "integer", ",", "list", "<", "string", ">", ">", "decommissioned", "nodes", "=", "new", "hash", "map", "<", ">", "(", "lbs", "count", "*", "decommn", "node", "indices", "size", "(", ")", ")", ";", "list", "<", "located", "block", ">", "lbs", "=", "create", "located", "striped", "blocks", "(", "lbs", "count", ",", "data", "blocks", ",", "parity", "blocks", ",", "decommn", "node", "indices", ",", "target", "node", "indices", ",", "decommissioned", "nodes", ")", ";", "/", "/", "prepare", "expected", "block", "index", "and", "token", "list", "list", "<", "hash", "map", "<", "datanode", "info", ",", "byte", ">", ">", "loc", "to", "index", "list", "=", "new", "array", "list", "<", ">", "(", ")", ";", "list", "<", "hash", "map", "<", "datanode", "info", ",", "token", "<", "block", "token", "identifier", ">", ">", ">", "loc", "to", "token", "list", "=", "new", "array", "list", "<", ">", "(", ")", ";", "prepare", "block", "index", "and", "token", "list", "(", "lbs", ",", "loc", "to", "index", "list", ",", "loc", "to", "token", "list", ")", ";", "dm", "sort", "located", "blocks", "(", "null", ",", "lbs", ")", ";", "assert", "decommn", "node", "position", "(", "group", "size", ",", "decommissioned", "nodes", ",", "lbs", ")", ";", "assert", "block", "index", "and", "token", "position", "(", "lbs", ",", "loc", "to", "index", "list", ",", "loc", "to", "token", "list", ")", ";", "}" ]
[ "returns", "{", "@", "code", "true", "}", "if", "specified", "{", "@", "link", "sql", "kind", "}", "has", "custom", "nullability", "rules", "which", "depend", "not", "only", "on", "the", "nullability", "of", "input", "operands", "for", "example", ",", "cast", "may", "be", "used", "to", "change", "the", "nullability", "of", "its", "operand", "type", ",", "so", "it", "may", "be", "nullable", ",", "though", "the", "argument", "type", "was", "non", "-", "nullable" ]
[ "private", "boolean", "has", "custom", "nullability", "rules", "(", "sql", "kind", "sql", "kind", ")", "{", "switch", "(", "sql", "kind", ")", "{", "case", "cast", ":", "case", "item", ":", "return", "true", ";", "default", ":", "return", "false", ";", "}", "}" ]
[ "helper", "method", "to", "create", "a", "request", "that", "will", "get", "all", "trained", "model", "stats" ]
[ "public", "static", "get", "trained", "models", "stats", "request", "get", "all", "trained", "model", "stats", "request", "(", ")", "{", "return", "new", "get", "trained", "models", "stats", "request", "(", "\"", "all", "\"", ")", ";", "}" ]
[ "add", "a", "generic", "argument", "value", "to", "be", "matched", "by", "type", "or", "name", "(", "if", "available", ")", "note", ":", "a", "single", "generic", "argument", "value", "will", "just", "be", "used", "once", ",", "rather", "than", "matched", "multiple", "times" ]
[ "public", "void", "add", "generic", "argument", "value", "(", "value", "holder", "new", "value", ")", "{", "assert", "not", "null", "(", "new", "value", ",", "\"", "value", "holder", "must", "not", "be", "null", "\"", ")", ";", "if", "(", "!", "this", "generic", "argument", "values", "contains", "(", "new", "value", ")", ")", "{", "add", "or", "merge", "generic", "argument", "value", "(", "new", "value", ")", ";", "}", "}" ]
[ "print", "the", "proguard", "config", "file", "to", "the", "specified", "file" ]
[ "public", "list", "<", "file", ">", "print", "config", "file", "(", "file", "out", "config", "file", ")", "throws", "i", "o", "exception", "{", "list", "<", "string", ">", "configs", "=", "lists", "new", "array", "list", "(", ")", ";", "list", "<", "file", ">", "bundle", "files", "=", "lists", "new", "array", "list", "(", ")", ";", "/", "/", "awb", "proguard", "for", "no", "lib", ",", "convenient", "for", "predex", "for", "(", "awb", "transform", "awb", "transform", ":", "awb", "transforms", ")", "{", "list", "<", "file", ">", "input", "libraries", "=", "lists", "new", "array", "list", "(", ")", ";", "string", "name", "=", "awb", "transform", "get", "awb", "bundle", "(", ")", "get", "name", "(", ")", ";", "file", "obuscate", "dir", "=", "new", "file", "(", "awb", "obfuscated", "dir", ",", "awb", "transform", "get", "awb", "bundle", "(", ")", "get", "name", "(", ")", ")", ";", "obuscate", "dir", "mkdirs", "(", ")", ";", "/", "/", "configs", "add", "(", ")", ";", "if", "(", "null", "!", "=", "awb", "transform", "get", "input", "dirs", "(", ")", "&", "&", "awb", "transform", "get", "input", "dirs", "(", ")", "size", "(", ")", ">", "0", ")", "{", "for", "(", "file", "dir", ":", "awb", "transform", "get", "input", "dirs", "(", ")", ")", "{", "if", "(", "dir", "exists", "(", ")", ")", "{", "configs", "add", "(", "injars", "option", "+", "\"", "\"", "+", "dir", "get", "absolute", "path", "(", ")", ")", ";", "file", "obs", "jar", "=", "new", "file", "(", "obuscate", "dir", ",", "\"", "inputdir", "\"", "+", "obuscated", "jar", ")", ";", "input", "libraries", "add", "(", "obs", "jar", ")", ";", "configs", "add", "(", "outjars", "option", "+", "\"", "\"", "+", "obs", "jar", "get", "absolute", "path", "(", ")", ")", ";", "}", "}", "}", "set", "<", "string", ">", "class", "names", "=", "new", "hash", "set", "<", ">", "(", ")", ";", "for", "(", "file", "input", "library", ":", "awb", "transform", "get", "input", "libraries", "(", ")", ")", "{", "configs", "add", "(", "injars", "option", "+", "\"", "\"", "+", "input", "library", "get", "absolute", "path", "(", ")", ")", ";", "bundle", "files", "add", "(", "input", "library", ")", ";", "string", "file", "name", "=", "input", "library", "get", "name", "(", ")", ";", "if", "(", "class", "names", "contains", "(", "file", "name", ")", ")", "{", "file", "name", "=", "\"", "a", "\"", "+", "class", "names", "size", "(", ")", "+", "\"", "\"", "+", "file", "name", ";", "}", "class", "names", "add", "(", "file", "name", ")", ";", "file", "obs", "jar", "=", "new", "file", "(", "obuscate", "dir", ",", "file", "name", ")", ";", "input", "libraries", "add", "(", "obs", "jar", ")", ";", "configs", "add", "(", "outjars", "option", "+", "\"", "\"", "+", "obs", "jar", "get", "absolute", "path", "(", ")", ")", ";", "}", "/", "/", "configs", "add", "(", ")", ";", "awb", "transform", "set", "input", "files", "(", "input", "libraries", ")", ";", "awb", "transform", "get", "input", "dirs", "(", ")", "clear", "(", ")", ";", "awb", "transform", "get", "input", "libraries", "(", ")", "clear", "(", ")", ";", "app", "variant", "output", "context", "get", "awb", "transform", "map", "(", ")", "put", "(", "name", ",", "awb", "transform", ")", ";", "}", "file", "utils", "write", "lines", "(", "out", "config", "file", ",", "configs", ")", ";", "return", "bundle", "files", ";", "}" ]
[ "get", "the", "parent", "module", "for", "this", "node" ]
[ "program", "module", "get", "parent", "module", "(", ")", "{", "return", "parent", "module", ";", "}" ]
[ "to", "ticket", "expiration", "policy" ]
[ "public", "expiration", "policy", "to", "ticket", "expiration", "policy", "(", ")", "{", "val", "uma", "=", "cas", "properties", "get", "authn", "(", ")", "get", "uma", "(", ")", ";", "return", "new", "hard", "timeout", "expiration", "policy", "(", "beans", "new", "duration", "(", "uma", "get", "permission", "ticket", "(", ")", "get", "max", "time", "to", "live", "in", "seconds", "(", ")", ")", "get", "seconds", "(", ")", ")", ";", "}" ]
[ "rollback", "pending", "changes", "records", "from", "a", "failed", "multi", "-", "op", "if", "a", "multi", "-", "op", "fails", ",", "we", "can", "'", "t", "leave", "any", "invalid", "change", "records", "we", "created", "around", "we", "also", "need", "to", "restore", "their", "prior", "value", "(", "if", "any", ")", "if", "their", "prior", "value", "is", "still", "valid" ]
[ "void", "rollback", "pending", "changes", "(", "long", "zxid", ",", "map", "<", "string", ",", "change", "record", ">", "pending", "change", "records", ")", "{", "synchronized", "(", "zks", "outstanding", "changes", ")", "{", "/", "/", "grab", "a", "list", "iterator", "starting", "at", "the", "end", "of", "the", "list", "so", "we", "can", "iterate", "in", "reverse", "iterator", "<", "change", "record", ">", "iter", "=", "zks", "outstanding", "changes", "descending", "iterator", "(", ")", ";", "while", "(", "iter", "has", "next", "(", ")", ")", "{", "change", "record", "c", "=", "iter", "next", "(", ")", ";", "if", "(", "c", "zxid", "=", "=", "zxid", ")", "{", "iter", "remove", "(", ")", ";", "/", "/", "remove", "all", "outstanding", "changes", "for", "paths", "of", "this", "multi", "/", "/", "previous", "records", "will", "be", "added", "back", "later", "zks", "outstanding", "changes", "for", "path", "remove", "(", "c", "path", ")", ";", "}", "else", "{", "break", ";", "}", "}", "/", "/", "we", "don", "'", "t", "need", "to", "roll", "back", "any", "records", "because", "there", "is", "nothing", "left", "if", "(", "zks", "outstanding", "changes", "is", "empty", "(", ")", ")", "{", "return", ";", "}", "long", "first", "zxid", "=", "zks", "outstanding", "changes", "peek", "(", ")", "zxid", ";", "for", "(", "change", "record", "c", ":", "pending", "change", "records", "values", "(", ")", ")", "{", "/", "/", "don", "'", "t", "apply", "any", "prior", "change", "records", "less", "than", "first", "zxid", "/", "/", "note", "that", "previous", "outstanding", "requests", "might", "have", "been", "removed", "/", "/", "once", "they", "are", "completed", "if", "(", "c", "zxid", "<", "first", "zxid", ")", "{", "continue", ";", "}", "/", "/", "add", "previously", "existing", "records", "back", "zks", "outstanding", "changes", "for", "path", "put", "(", "c", "path", ",", "c", ")", ";", "}", "}", "}" ]
[ "test", "that", "it", "'", "s", "forbidden", "to", "specify", "target", "source", "in", "both", "interceptor", "chain", "and", "target", "source", "property" ]
[ "public", "void", "test", "double", "target", "sources", "are", "rejected", "(", ")", "{", "test", "double", "target", "source", "is", "rejected", "(", "\"", "double", "target", "\"", ")", ";", "/", "/", "now", "with", "conversion", "from", "arbitrary", "bean", "to", "a", "target", "source", "test", "double", "target", "source", "is", "rejected", "(", "\"", "arbitrary", "target", "\"", ")", ";", "}" ]
[ "get", "current", "user", "'", "s", "id" ]
[ "string", "get", "id", "(", ")", ";" ]
[ "aliases", "to", "use", "with", "this", "action" ]
[ "public", "alias", "actions", "aliases", "(", "string", "aliases", ")", "{", "if", "(", "type", "=", "=", "alias", "actions", "type", "remove", "index", ")", "{", "throw", "new", "illegal", "argument", "exception", "(", "\"", "[", "aliases", "]", "is", "unsupported", "for", "[", "\"", "+", "type", "+", "\"", "]", "\"", ")", ";", "}", "if", "(", "aliases", "=", "=", "null", "|", "|", "aliases", "length", "=", "=", "0", ")", "{", "throw", "new", "illegal", "argument", "exception", "(", "\"", "[", "aliases", "]", "can", "'", "t", "be", "empty", "\"", ")", ";", "}", "for", "(", "string", "alias", ":", "aliases", ")", "{", "if", "(", "false", "=", "=", "strings", "has", "length", "(", "alias", ")", ")", "{", "throw", "new", "illegal", "argument", "exception", "(", "\"", "[", "aliases", "]", "can", "'", "t", "contain", "empty", "string", "\"", ")", ";", "}", "}", "this", "aliases", "=", "aliases", ";", "this", "original", "aliases", "=", "aliases", ";", "return", "this", ";", "}" ]
[ "get", "one", "or", "more", "transform", "configurations", "asynchronously", "and", "notifies", "listener", "on", "completion", "for", "additional", "info", "see", "<", "a", "href", "=", "\"", "https", ":", "www", "elastic", "coguideenelasticsearchreferencecurrentget", "-", "transform", "html", "\"", ">", "get", "data", "transform", "documentation" ]
[ "public", "cancellable", "get", "transform", "async", "(", "get", "transform", "request", "request", ",", "request", "options", "options", ",", "action", "listener", "<", "get", "transform", "response", ">", "listener", ")", "{", "return", "rest", "high", "level", "client", "perform", "request", "async", "and", "parse", "entity", "(", "request", ",", "transform", "request", "converters", ":", ":", "get", "transform", ",", "options", ",", "get", "transform", "response", ":", ":", "from", "x", "content", ",", "listener", ",", "collections", "empty", "set", "(", ")", ")", ";", "}" ]
[ "returns", "whether", "or", "not", "this", "value", "is", "a", "distinct", "python", "version" ]
[ "public", "boolean", "is", "target", "value", "(", ")", "{", "return", "target", "values", "contains", "(", "this", ")", ";", "}" ]