docstring_tokens
list
code_tokens
list
[ "see", "spr", "-", "14277" ]
[ "public", "void", "dispatcher", "servlet", "customizer", "(", ")", "{", "stub", "web", "application", "context", "root", "=", "new", "stub", "web", "application", "context", "(", "this", "servlet", "context", ")", ";", "default", "mock", "mvc", "builder", "builder", "=", "web", "app", "context", "setup", "(", "root", ")", ";", "builder", "add", "dispatcher", "servlet", "customizer", "(", "ds", "-", ">", "ds", "set", "context", "id", "(", "\"", "test", "-", "id", "\"", ")", ")", ";", "builder", "dispatch", "options", "(", "true", ")", ";", "mock", "mvc", "mvc", "=", "builder", "build", "(", ")", ";", "dispatcher", "servlet", "ds", "=", "(", "dispatcher", "servlet", ")", "new", "direct", "field", "accessor", "(", "mvc", ")", "get", "property", "value", "(", "\"", "servlet", "\"", ")", ";", "assert", "that", "(", "ds", "get", "context", "id", "(", ")", ")", "is", "equal", "to", "(", "\"", "test", "-", "id", "\"", ")", ";", "}" ]
[ "load", "bean", "definitions", "from", "the", "specified", "xml", "file" ]
[ "public", "int", "load", "bean", "definitions", "(", "resource", "resource", ")", "throws", "bean", "definition", "store", "exception", "{", "return", "load", "bean", "definitions", "(", "new", "encoded", "resource", "(", "resource", ")", ")", ";", "}" ]
[ "reduces", "the", "given", "list", "of", "aggregations", "as", "well", "as", "the", "top", "-", "level", "pipeline", "aggregators", "extracted", "from", "the", "first", "{", "@", "link", "internal", "aggregations", "}", "object", "found", "in", "the", "list", "note", "that", "pipeline", "aggregations", "are", "not", "reduced", "by", "this", "method", "pipelines", "are", "handled", "separately", "by", "{", "@", "link", "internal", "aggregations", "#", "top", "level", "reduce", "(", "list", ",", "reduce", "context", ")", "}" ]
[ "public", "static", "internal", "aggregations", "reduce", "(", "list", "<", "internal", "aggregations", ">", "aggregations", "list", ",", "reduce", "context", "context", ")", "{", "if", "(", "aggregations", "list", "is", "empty", "(", ")", ")", "{", "return", "null", ";", "}", "/", "/", "first", "we", "collect", "all", "aggregations", "of", "the", "same", "type", "and", "list", "them", "together", "map", "<", "string", ",", "list", "<", "internal", "aggregation", ">", ">", "agg", "by", "name", "=", "new", "hash", "map", "<", ">", "(", ")", ";", "for", "(", "internal", "aggregations", "aggregations", ":", "aggregations", "list", ")", "{", "for", "(", "aggregation", "aggregation", ":", "aggregations", "aggregations", ")", "{", "list", "<", "internal", "aggregation", ">", "aggs", "=", "agg", "by", "name", "compute", "if", "absent", "(", "aggregation", "get", "name", "(", ")", ",", "k", "-", ">", "new", "array", "list", "<", ">", "(", "aggregations", "list", "size", "(", ")", ")", ")", ";", "aggs", "add", "(", "(", "internal", "aggregation", ")", "aggregation", ")", ";", "}", "}", "/", "/", "now", "we", "can", "use", "the", "first", "aggregation", "of", "each", "list", "to", "handle", "the", "reduce", "of", "its", "list", "list", "<", "internal", "aggregation", ">", "reduced", "aggregations", "=", "new", "array", "list", "<", ">", "(", ")", ";", "for", "(", "map", "entry", "<", "string", ",", "list", "<", "internal", "aggregation", ">", ">", "entry", ":", "agg", "by", "name", "entry", "set", "(", ")", ")", "{", "list", "<", "internal", "aggregation", ">", "aggregations", "=", "entry", "get", "value", "(", ")", ";", "/", "/", "sort", "aggregations", "so", "that", "unmapped", "aggs", "come", "last", "in", "the", "list", "/", "/", "if", "all", "aggs", "are", "unmapped", ",", "the", "agg", "that", "leads", "the", "reduction", "will", "just", "return", "itself", "aggregations", "sort", "(", "internal", "agg", "comparator", ")", ";", "internal", "aggregation", "first", "=", "aggregations", "get", "(", "0", ")", ";", "/", "/", "the", "list", "can", "'", "t", "be", "empty", "as", "it", "'", "s", "created", "on", "demand", "if", "(", "first", "must", "reduce", "on", "single", "internal", "agg", "(", ")", "|", "|", "aggregations", "size", "(", ")", ">", "1", ")", "{", "reduced", "aggregations", "add", "(", "first", "reduce", "(", "aggregations", ",", "context", ")", ")", ";", "}", "else", "{", "/", "/", "no", "need", "for", "reduce", "phase", "reduced", "aggregations", "add", "(", "first", ")", ";", "}", "}", "return", "from", "(", "reduced", "aggregations", ")", ";", "}" ]
[ "marks", "up", "this", "{", "@", "link", "dyld", "cache", "accelerate", "info", "}", "with", "data", "structures", "and", "comments" ]
[ "public", "void", "markup", "(", "program", "program", ",", "address", "accelerate", "info", "addr", ",", "task", "monitor", "monitor", ",", "message", "log", "log", ")", "throws", "cancelled", "exception", "{", "markup", "image", "info", "extra", "(", "program", ",", "accelerate", "info", "addr", ",", "monitor", ",", "log", ")", ";", "markup", "accelerator", "initializer", "(", "program", ",", "accelerate", "info", "addr", ",", "monitor", ",", "log", ")", ";", "markup", "accelerator", "dof", "(", "program", ",", "accelerate", "info", "addr", ",", "monitor", ",", "log", ")", ";", "markup", "re", "export", "list", "(", "program", ",", "accelerate", "info", "addr", ",", "monitor", ",", "log", ")", ";", "markup", "dependencies", "(", "program", ",", "accelerate", "info", "addr", ",", "monitor", ",", "log", ")", ";", "markup", "range", "entry", "(", "program", ",", "accelerate", "info", "addr", ",", "monitor", ",", "log", ")", ";", "}" ]
[ "gets", "the", "queries", "that", "<", "b", ">", "must", "<", "b", ">", "appear", "in", "the", "matching", "documents", "but", "don", "'", "t", "contribute", "to", "scoring" ]
[ "public", "list", "<", "query", "builder", ">", "filter", "(", ")", "{", "return", "this", "filter", "clauses", ";", "}" ]
[ "get", "userlogin", ":", "logs", "user", "into", "the", "system" ]
[ "response", "entity", "<", "string", ">", "login", "user", "(", "@", "not", "null", "@", "api", "param", "(", "value", "=", "\"", "the", "user", "name", "for", "login", "\"", ",", "required", "=", "true", ")", "@", "valid", "@", "request", "param", "(", "value", "=", "\"", "username", "\"", ",", "required", "=", "true", ")", "string", "username", ",", "@", "not", "null", "@", "api", "param", "(", "value", "=", "\"", "the", "password", "for", "login", "in", "clear", "text", "\"", ",", "required", "=", "true", ")", "@", "valid", "@", "request", "param", "(", "value", "=", "\"", "password", "\"", ",", "required", "=", "true", ")", "string", "password", ")", ";" ]
[ "write", "state", "{", "@", "link", "org", "apache", "hadoop", "io", "writable", "#", "write", "(", "data", "output", ")", "}" ]
[ "public", "void", "write", "(", "final", "data", "output", "out", ")", "throws", "i", "o", "exception", "{", "super", "write", "(", "out", ")", ";", "text", "write", "string", "(", "out", ",", "uri", "to", "string", "(", ")", ")", ";", "text", "write", "string", "(", "out", ",", "uuid", ")", ";", "out", "write", "long", "(", "created", ")", ";", "}" ]
[ "increases", "the", "size", "of", "the", "structure", "by", "the", "given", "amount", "by", "adding", "undefined", "datatypes", "at", "the", "end", "of", "the", "structure" ]
[ "public", "void", "grow", "structure", "(", "int", "amount", ")", ";" ]
[ "returns", "a", "list", "of", "b", "p", "offer", "service", "objects", "the", "underlying", "list", "implementation", "is", "a", "copy", "on", "write", "array", "list", "so", "it", "can", "be", "safely", "iterated", "while", "b", "p", "offer", "services", "are", "being", "added", "or", "removed", "caution", ":", "the", "b", "p", "offer", "service", "returned", "could", "be", "shutdown", "any", "time" ]
[ "synchronized", "list", "<", "b", "p", "offer", "service", ">", "get", "all", "namenode", "threads", "(", ")", "{", "return", "collections", "unmodifiable", "list", "(", "offer", "services", ")", ";", "}" ]
[ "the", "series", "of", "types", "defined", "by", "the", "package", "<", "code", ">", "repeated", "aapt", "pb", "type", "type", "=", "3", ";", "<", "code", ">" ]
[ "public", "builder", "clear", "type", "(", ")", "{", "copy", "on", "write", "(", ")", ";", "instance", "clear", "type", "(", ")", ";", "return", "this", ";", "}" ]
[ "initializes", "the", "application", "the", "static", "methods", "of", "this", "class", "cannot", "be", "used", "until", "the", "application", "is", "initialized" ]
[ "public", "static", "void", "initialize", "application", "(", "application", "layout", "layout", ",", "application", "configuration", "configuration", ")", "{", "if", "(", "app", "=", "=", "null", ")", "{", "app", "=", "new", "application", "(", "layout", ",", "configuration", ")", ";", "app", "initialize", "(", ")", ";", "configuration", "initialize", "application", "(", ")", ";", "first", "creation", "throwable", "=", "new", "assert", "exception", "(", "\"", "first", "call", "to", "initialize", "application", "\"", ")", ";", "}", "else", "{", "throw", "new", "assert", "exception", "(", "\"", "attempted", "to", "initialize", "the", "application", "more", "than", "once", "!", "\"", ",", "first", "creation", "throwable", ")", ";", "}", "}" ]
[ "invoke", "any", "(", "c", ")", "throws", "execution", "exception", "if", "no", "task", "in", "c", "completes" ]
[ "public", "void", "test", "invoke", "any", "impl", "no", "task", "completes", "(", ")", "throws", "exception", "{", "listening", "executor", "service", "e", "=", "new", "direct", "executor", "service", "(", ")", ";", "list", "<", "callable", "<", "string", ">", ">", "l", "=", "new", "array", "list", "<", ">", "(", ")", ";", "l", "add", "(", "new", "n", "p", "e", "task", "(", ")", ")", ";", "try", "{", "invoke", "any", "impl", "(", "e", ",", "l", ",", "false", ",", "0", ",", "time", "unit", "nanoseconds", ")", ";", "fail", "(", ")", ";", "}", "catch", "(", "execution", "exception", "success", ")", "{", "assert", "that", "(", "success", ")", "has", "cause", "that", "(", ")", "is", "instance", "of", "(", "null", "pointer", "exception", "class", ")", ";", "}", "finally", "{", "join", "pool", "(", "e", ")", ";", "}", "}" ]
[ "releases", "the", "bitmap", "to", "the", "pool" ]
[ "public", "void", "close", "(", ")", "{", "closeable", "reference", "<", "bitmap", ">", "reference", "=", "detach", "bitmap", "reference", "(", ")", ";", "if", "(", "reference", "!", "=", "null", ")", "{", "reference", "close", "(", ")", ";", "}", "}" ]
[ "finds", "the", "appropriate", "getter", "for", "a", "field", "name" ]
[ "private", "static", "method", "locate", "getter", "(", "base", "record", "record", ",", "string", "field", "name", ")", "{", "for", "(", "method", "m", ":", "record", "get", "class", "(", ")", "get", "methods", "(", ")", ")", "{", "if", "(", "m", "get", "name", "(", ")", "equals", "ignore", "case", "(", "\"", "get", "\"", "+", "field", "name", ")", ")", "{", "return", "m", ";", "}", "}", "return", "null", ";", "}" ]
[ "return", "the", "domain", "address", "must", "hold", "{", "@", "code", "<", "uses", "-", "permission", "android", ":", "name", "=", "\"", "android", "permission", "internet", "\"", ">", "}" ]
[ "public", "static", "string", "get", "domain", "address", "(", "final", "string", "domain", ")", "{", "inet", "address", "inet", "address", ";", "try", "{", "inet", "address", "=", "inet", "address", "get", "by", "name", "(", "domain", ")", ";", "return", "inet", "address", "get", "host", "address", "(", ")", ";", "}", "catch", "(", "unknown", "host", "exception", "e", ")", "{", "e", "print", "stack", "trace", "(", ")", ";", "return", "\"", "\"", ";", "}", "}" ]
[ "gets", "all", "{", "@", "link", "highlight", "provider", "}", "s", "installed", "on", "this", "format", "manager", "via", "the", "{", "@", "link", "#", "add", "highlight", "provider", "(", "highlight", "provider", ")", "}" ]
[ "public", "list", "<", "highlight", "provider", ">", "get", "highlight", "providers", "(", ")", "{", "return", "highlight", "provider", "get", "highlight", "providers", "(", ")", ";", "}" ]
[ "returns", "the", "string", "value", "of", "the", "{", "@", "link", "d", "w", "a", "r", "f", "attribute", "#", "dw", "at", "name", "dw", "at", "name", "}", "attribute", ",", "or", "null", "if", "it", "is", "missing" ]
[ "public", "string", "get", "name", "(", ")", "{", "return", "get", "string", "(", "d", "w", "a", "r", "f", "attribute", "dw", "at", "name", ",", "null", ")", ";", "}" ]
[ "returns", "a", "boolean", "value", ",", "using", "the", "string", "parameters", "for", "guidance", "the", "actual", "behavior", "of", "the", "method", "depends", "on", "your", "environment", ",", "which", "can", "be", "gui", "or", "headless", "regardless", "of", "environment", "-", "-", "if", "script", "arguments", "have", "been", "set", ",", "this", "method", "will", "use", "the", "next", "argument", "in", "the", "array", "and", "advance", "the", "array", "index", "so", "the", "next", "call", "to", "an", "ask", "method", "will", "get", "the", "next", "argument", "if", "there", "are", "no", "script", "arguments", "and", "a", "properties", "file", "sharing", "the", "same", "base", "name", "as", "the", "ghidra", "script", "exists", "(", "i", "e", ",", "script", "1", "properties", "for", "script", "1", "java", ")", ",", "then", "this", "method", "will", "then", "look", "there", "for", "the", "string", "value", "to", "return", "the", "method", "will", "look", "in", "the", "properties", "file", "by", "searching", "for", "a", "property", "name", "that", "is", "a", "space", "-", "separated", "concatenation", "of", "the", "input", "string", "parameters", "(", "title", "+", "\"", "\"", "+", "question", ")", "if", "that", "property", "name", "exists", "and", "its", "value", "represents", "a", "valid", "boolean", "value", ",", "then", "the", "properties", "value", "will", "be", "used", "in", "the", "following", "way", ":", "in", "the", "gui", "environment", ",", "this", "method", "displays", "a", "popup", "dialog", "that", "prompts", "the", "user", "with", "a", "yesno", "dialog", "with", "the", "specified", "title", "and", "question", "returns", "true", "if", "the", "user", "selects", "\"", "yes", "\"", "to", "the", "question", "or", "false", "if", "the", "user", "selects", "\"", "no", "\"", "in", "the", "headless", "environment", ",", "if", "a", "properties", "file", "sharing", "the", "same", "base", "name", "as", "the", "ghidra", "script", "exists", "(", "i", "e", ",", "script", "1", "properties", "for", "script", "1", "java", ")", ",", "then", "this", "method", "looks", "there", "for", "the", "boolean", "value", "to", "return", "the", "method", "will", "look", "in", "the", "properties", "file", "by", "searching", "for", "a", "property", "name", "that", "is", "a", "space", "-", "separated", "concatenation", "of", "the", "string", "parameters", "(", "title", "+", "\"", "\"", "+", "question", ")", "if", "that", "property", "name", "exists", "and", "its", "value", "represents", "a", "valid", "boolean", "value", "(", "either", "'", "true", "'", "or", "'", "false", "'", ",", "case", "insensitive", ")", ",", "then", "that", "value", "is", "returned", "otherwise", ",", "an", "exception", "is", "thrown", "if", "there", "is", "an", "invalid", "or", "missing", "properties", "value" ]
[ "public", "boolean", "ask", "yes", "no", "(", "string", "title", ",", "string", "question", ")", "{", "string", "key", "=", "join", "(", "title", ",", "question", ")", ";", "boolean", "existing", "value", "=", "load", "ask", "value", "(", "this", ":", ":", "parse", "boolean", ",", "key", ")", ";", "if", "(", "is", "running", "headless", "(", ")", ")", "{", "return", "existing", "value", ";", "}", "return", "option", "dialog", "show", "yes", "no", "dialog", "(", "null", ",", "title", ",", "question", ")", "=", "=", "option", "dialog", "option", "one", ";", "}" ]
[ "duration", "-", "based", "overload", "of", "{", "@", "link", "#", "schedule", "(", "runnable", ",", "long", ",", "time", "unit", ")", "}" ]
[ "default", "listenable", "scheduled", "future", "<", "?", ">", "schedule", "(", "runnable", "command", ",", "duration", "delay", ")", "{", "return", "schedule", "(", "command", ",", "to", "nanos", "saturated", "(", "delay", ")", ",", "time", "unit", "nanoseconds", ")", ";", "}" ]
[ "returns", "an", "immutable", "sorted", "set", "containing", "the", "given", "elements", "sorted", "by", "their", "natural", "ordering", "when", "multiple", "elements", "are", "equivalent", "according", "to", "{", "@", "link", "comparable", "#", "compare", "to", "}", ",", "only", "the", "first", "one", "specified", "is", "included" ]
[ "public", "static", "<", "e", "extends", "comparable", "<", "?", "super", "e", ">", ">", "immutable", "sorted", "set", "<", "e", ">", "of", "(", "e", "e", "1", ",", "e", "e", "2", ",", "e", "e", "3", ",", "e", "e", "4", ",", "e", "e", "5", ")", "{", "return", "construct", "(", "ordering", "natural", "(", ")", ",", "5", ",", "e", "1", ",", "e", "2", ",", "e", "3", ",", "e", "4", ",", "e", "5", ")", ";", "}" ]
[ "attributes", "provided", "here", "will", "be", "included", "in", "{", "@", "link", "subchannel", "#", "get", "attributes", "}", "this", "is", "an", "optional", "property", "default", "is", "empty", "if", "not", "set" ]
[ "public", "builder", "set", "attributes", "(", "attributes", "attrs", ")", "{", "this", "attrs", "=", "check", "not", "null", "(", "attrs", ",", "\"", "attrs", "\"", ")", ";", "return", "this", ";", "}" ]
[ "returns", "the", "list", "of", "{", "@", "link", "computer", "launcher", "}", "descriptors", "appropriate", "to", "the", "supplied", "{", "@", "link", "slave", "}" ]
[ "public", "final", "list", "<", "descriptor", "<", "computer", "launcher", ">", ">", "computer", "launcher", "descriptors", "(", "@", "check", "for", "null", "slave", "it", ")", "{", "descriptor", "extension", "list", "<", "computer", "launcher", ",", "descriptor", "<", "computer", "launcher", ">", ">", "all", "=", "jenkins", "get", "(", ")", "get", "descriptor", "list", "(", "computer", "launcher", "class", ")", ";", "return", "it", "=", "=", "null", "?", "descriptor", "visibility", "filter", "apply", "type", "(", "clazz", ",", "all", ")", ":", "descriptor", "visibility", "filter", "apply", "(", "it", ",", "all", ")", ";", "}" ]
[ "extracts", "and", "returns", "the", "source", "position", "information", "out", "of", "an", "instruction", "list" ]
[ "public", "static", "position", "list", "make", "(", "dalv", "insn", "list", "insns", ",", "int", "how", "much", ")", "{", "switch", "(", "how", "much", ")", "{", "case", "none", ":", "{", "return", "empty", ";", "}", "case", "lines", ":", "case", "important", ":", "{", "/", "/", "valid", "break", ";", "}", "default", ":", "{", "throw", "new", "illegal", "argument", "exception", "(", "\"", "bogus", "how", "much", "\"", ")", ";", "}", "}", "source", "position", "no", "info", "=", "source", "position", "no", "info", ";", "source", "position", "cur", "=", "no", "info", ";", "int", "sz", "=", "insns", "size", "(", ")", ";", "entry", "[", "]", "arr", "=", "new", "entry", "[", "sz", "]", ";", "boolean", "last", "was", "target", "=", "false", ";", "int", "at", "=", "0", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "sz", ";", "i", "+", "+", ")", "{", "dalv", "insn", "insn", "=", "insns", "get", "(", "i", ")", ";", "if", "(", "insn", "instanceof", "code", "address", ")", "{", "last", "was", "target", "=", "true", ";", ";", "continue", ";", "}", "source", "position", "pos", "=", "insn", "get", "position", "(", ")", ";", "if", "(", "pos", "equals", "(", "no", "info", ")", "|", "|", "pos", "same", "line", "(", "cur", ")", ")", "{", "continue", ";", "}", "if", "(", "(", "how", "much", "=", "=", "important", ")", "&", "&", "!", "last", "was", "target", ")", "{", "continue", ";", "}", "cur", "=", "pos", ";", "arr", "[", "at", "]", "=", "new", "entry", "(", "insn", "get", "address", "(", ")", ",", "pos", ")", ";", "at", "+", "+", ";", "last", "was", "target", "=", "false", ";", "}", "position", "list", "result", "=", "new", "position", "list", "(", "at", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "at", ";", "i", "+", "+", ")", "{", "result", "set", "(", "i", ",", "arr", "[", "i", "]", ")", ";", "}", "result", "set", "immutable", "(", ")", ";", "return", "result", ";", "}" ]
[ "put", "bitmap", "in", "cache" ]
[ "public", "void", "put", "(", "@", "non", "null", "final", "string", "key", ",", "final", "bitmap", "value", ",", "final", "int", "save", "time", ")", "{", "m", "cache", "memory", "utils", "put", "(", "key", ",", "value", ",", "save", "time", ")", ";", "m", "cache", "disk", "utils", "put", "(", "key", ",", "value", ",", "save", "time", ")", ";", "}" ]
[ "configures", "schema", "to", "fail", "if", "a", "json", "field", "is", "missing", "by", "default", ",", "a", "missing", "field", "is", "ignored", "and", "the", "field", "is", "set", "to", "null" ]
[ "public", "builder", "fail", "on", "missing", "field", "(", ")", "{", "this", "fail", "on", "missing", "field", "=", "true", ";", "return", "this", ";", "}" ]
[ "this", "method", "is", "overridden", "in", "the", "generated", "component", "to", "return", "true", "if", "and", "only", "if", "the", "component", "spec", "has", "an", "on", "error", "lifecycle", "callback" ]
[ "protected", "boolean", "has", "own", "error", "handler", "(", ")", "{", "return", "false", ";", "}" ]
[ "gets", "the", "transition", "time", "so", "far" ]
[ "public", "float", "get", "time", "(", ")", "{", "return", "time", ";", "}" ]
[ "process", "business", "logic" ]
[ "void", "process", "(", "process", "context", "context", ")", "throws", "framework", "exception", ";" ]
[ "this", "test", "ensures", "that", "we", "are", "aware", "of", "accidental", "reordering", "in", "the", "distance", "unit", "ordinals", ",", "since", "equality", "in", "e", "g", "circle", "shape", "builder", ",", "hash", "code", "and", "serialization", "rely", "on", "them" ]
[ "public", "void", "test", "distance", "unit", "names", "(", ")", "{", "assert", "equals", "(", "0", ",", "distance", "unit", "inch", "ordinal", "(", ")", ")", ";", "assert", "equals", "(", "1", ",", "distance", "unit", "yard", "ordinal", "(", ")", ")", ";", "assert", "equals", "(", "2", ",", "distance", "unit", "feet", "ordinal", "(", ")", ")", ";", "assert", "equals", "(", "3", ",", "distance", "unit", "kilometers", "ordinal", "(", ")", ")", ";", "assert", "equals", "(", "4", ",", "distance", "unit", "nauticalmiles", "ordinal", "(", ")", ")", ";", "assert", "equals", "(", "5", ",", "distance", "unit", "millimeters", "ordinal", "(", ")", ")", ";", "assert", "equals", "(", "6", ",", "distance", "unit", "centimeters", "ordinal", "(", ")", ")", ";", "assert", "equals", "(", "7", ",", "distance", "unit", "miles", "ordinal", "(", ")", ")", ";", "assert", "equals", "(", "8", ",", "distance", "unit", "meters", "ordinal", "(", ")", ")", ";", "}" ]
[ "get", "property", "class" ]
[ "public", "string", "get", "property", "class", "(", ")", "{", "return", "property", "class", ";", "}" ]
[ "sets", "the", "size", "of", "the", "list", "note", ":", "that", "this", "api", "is", "only", "for", "jackson", "json", "deserialization" ]
[ "public", "void", "set", "size", "(", "int", "size", ")", "{", "list", "=", "new", "hash", "map", "<", "string", ",", "integer", ">", "(", "size", ")", ";", "}" ]
[ "this", "implementation", "checks", "if", "the", "given", "class", "is", "{", "@", "linkplain", "#", "supports", "(", "class", ")", "supported", "}", ",", "and", "if", "the", "{", "@", "linkplain", "#", "get", "supported", "media", "types", "(", ")", "supported", "media", "types", "}", "{", "@", "linkplain", "media", "type", "#", "includes", "(", "media", "type", ")", "include", "}", "the", "given", "media", "type" ]
[ "public", "boolean", "can", "read", "(", "class", "<", "?", ">", "clazz", ",", "@", "nullable", "media", "type", "media", "type", ")", "{", "return", "supports", "(", "clazz", ")", "&", "&", "can", "read", "(", "media", "type", ")", ";", "}" ]
[ "create", "a", "new", "folder", "for", "the", "selected", "node", "that", "represents", "a", "folder" ]
[ "private", "void", "create", "new", "folder", "(", "t", "context", ")", "{", "domain", "folder", "parent", "folder", "=", "get", "folder", "(", "context", ")", ";", "domain", "folder", "new", "folder", "=", "create", "new", "folder", "with", "default", "name", "(", "parent", "folder", ")", ";", "data", "tree", "tree", "=", "context", "get", "tree", "(", ")", ";", "swing", "run", "later", "(", "(", ")", "-", ">", "{", "g", "tree", "node", "node", "=", "find", "node", "for", "folder", "(", "tree", ",", "new", "folder", ")", ";", "if", "(", "node", "!", "=", "null", ")", "{", "tree", "set", "editable", "(", "true", ")", ";", "tree", "start", "editing", "(", "node", "get", "parent", "(", ")", ",", "node", "get", "name", "(", ")", ")", ";", "}", "}", ")", ";", "}" ]
[ "acquire", "the", "global", "mutex", "lock", "on", "behalf", "of", "current", "and", "future", "concurrent", "readers", "make", "sure", "no", "writers", "currently", "owns", "the", "lock" ]
[ "private", "void", "acquire", "for", "readers", "(", ")", "{", "/", "/", "try", "to", "get", "the", "global", "mutex", "lock", "for", "the", "first", "reader", "synchronized", "(", "global", "mutex", ")", "{", "/", "/", "if", "the", "no", "one", "get", "the", "lock", "or", "the", "lock", "is", "locked", "by", "reader", ",", "just", "set", "the", "reference", "/", "/", "to", "the", "global", "mutex", "to", "indicate", "that", "the", "lock", "is", "locked", "by", "reader", "while", "(", "does", "writer", "own", "this", "lock", "(", ")", ")", "{", "try", "{", "global", "mutex", "wait", "(", ")", ";", "}", "catch", "(", "interrupted", "exception", "e", ")", "{", "var", "message", "=", "\"", "interrupted", "exception", "while", "waiting", "for", "global", "mutex", "in", "acquire", "for", "readers", "\"", ";", "logger", "info", "(", "message", ",", "e", ")", ";", "thread", "current", "thread", "(", ")", "interrupt", "(", ")", ";", "}", "}", "global", "mutex", "add", "(", "this", ")", ";", "}", "}" ]
[ "simply", "returns", "the", "value", "as", "given", "at", "construction", "time" ]
[ "public", "object", "get", "(", ")", "{", "return", "this", "value", ";", "}" ]
[ "creates", "a", "spawn", "action" ]
[ "protected", "spawn", "action", "create", "spawn", "action", "(", "action", "owner", "owner", ",", "nested", "set", "<", "artifact", ">", "tools", ",", "nested", "set", "<", "artifact", ">", "inputs", "and", "tools", ",", "immutable", "list", "<", "artifact", ">", "outputs", ",", "artifact", "primary", "output", ",", "resource", "set", "resource", "set", ",", "command", "lines", "command", "lines", ",", "command", "line", "limits", "command", "line", "limits", ",", "boolean", "is", "shell", "command", ",", "action", "environment", "env", ",", "@", "nullable", "build", "configuration", "configuration", ",", "immutable", "map", "<", "string", ",", "string", ">", "execution", "info", ",", "char", "sequence", "progress", "message", ",", "runfiles", "supplier", "runfiles", "supplier", ",", "string", "mnemonic", ")", "{", "if", "(", "unused", "inputs", "list", "is", "present", "(", ")", ")", "{", "/", "/", "always", "download", "unused", "inputs", "list", "file", "from", "remote", "cache", "execution", "info", "=", "immutable", "map", "<", "string", ",", "string", ">", "builder", "with", "expected", "size", "(", "execution", "info", "size", "(", ")", "+", "1", ")", "put", "all", "(", "execution", "info", ")", "put", "(", "execution", "requirements", "remote", "execution", "inline", "outputs", ",", "unused", "inputs", "list", "get", "(", ")", "get", "exec", "path", "string", "(", ")", ")", "build", "(", ")", ";", "}", "return", "new", "starlark", "action", "(", "owner", ",", "tools", ",", "inputs", "and", "tools", ",", "outputs", ",", "primary", "output", ",", "resource", "set", ",", "command", "lines", ",", "command", "line", "limits", ",", "is", "shell", "command", ",", "env", ",", "execution", "info", ",", "progress", "message", ",", "runfiles", "supplier", ",", "mnemonic", ",", "unused", "inputs", "list", ")", ";", "}" ]
[ "test", "the", "property", "'", "date", "time", "'" ]
[ "public", "void", "date", "time", "test", "(", ")", "{", "/", "/", "todo", ":", "test", "date", "time", "}" ]
[ "get", "the", "value", "of", "the", "'", "{", "@", "code", "style", "}", "'", "attribute", "may", "be", "a", "runtime", "expression" ]
[ "protected", "string", "get", "css", "style", "(", ")", "{", "return", "this", "css", "style", ";", "}" ]
[ "get", "8", "-", "digit", "random", "hex", "value", "for", "use", "in", "naming", "temporary", "files" ]
[ "static", "string", "get", "random", "string", "(", ")", "{", "int", "num", "=", "random", "next", "int", "(", ")", ";", "return", "string", "utilities", "pad", "(", "integer", "to", "hex", "string", "(", "num", ")", "to", "upper", "case", "(", ")", ",", "'", "0", "'", ",", "8", ")", ";", "}" ]
[ "<", "code", ">", "optional", "org", "apache", "dubbo", "common", "serialize", "protobuf", "model", "p", "b", "request", "type", "c", "dubbo", "p", "b", "request", "type", "=", "3", ";", "<", "code", ">" ]
[ "public", "google", "p", "b", "p", "b", "request", "type", "builder", "get", "c", "dubbo", "p", "b", "request", "type", "builder", "(", ")", "{", "bit", "field", "0", "|", "=", "0x", "0", "0", "0", "0", "0", "0", "0", "2", ";", "on", "changed", "(", ")", ";", "return", "get", "c", "dubbo", "p", "b", "request", "type", "field", "builder", "(", ")", "get", "builder", "(", ")", ";", "}" ]
[ "returns", "true", "if", "this", "setting", "was", "persisted" ]
[ "boolean", "is", "persisted", "(", "int", "id", ")", "{", "int", "bit", "=", "1", "<", "<", "id", ";", "return", "(", "persisted", "&", "bit", ")", "!", "=", "0", ";", "}" ]
[ "creates", "the", "main", "dialog", "components" ]
[ "protected", "void", "create", "main", "panel", "(", ")", "{", "set", "layout", "(", "new", "border", "layout", "(", ")", ")", ";", "text", "label", "=", "new", "g", "d", "html", "label", "(", ")", "{", "@", "override", "public", "dimension", "get", "preferred", "size", "(", ")", "{", "/", "/", "overridden", "to", "force", "word", "-", "wrapping", "by", "limiting", "the", "preferred", "size", "of", "the", "label", "dimension", "my", "size", "=", "super", "get", "preferred", "size", "(", ")", ";", "int", "right", "column", "width", "=", "abstract", "details", "panel", "this", "get", "width", "(", ")", "-", "left", "column", "width", ";", "my", "size", "width", "=", "math", "max", "(", "min", "width", ",", "right", "column", "width", ")", ";", "return", "my", "size", ";", "}", "}", ";", "text", "label", "set", "vertical", "alignment", "(", "swing", "constants", "top", ")", ";", "text", "label", "set", "opaque", "(", "true", ")", ";", "text", "label", "set", "background", "(", "color", "white", ")", ";", "sp", "=", "new", "j", "scroll", "pane", "(", "text", "label", ")", ";", "sp", "get", "vertical", "scroll", "bar", "(", ")", "set", "unit", "increment", "(", "10", ")", ";", "sp", "set", "preferred", "size", "(", "new", "dimension", "(", "min", "width", ",", "200", ")", ")", ";", "add", "(", "sp", ",", "border", "layout", "center", ")", ";", "}" ]
[ "await", "termination", "on", "the", "main", "thread", "since", "the", "grpc", "library", "uses", "daemon", "threads" ]
[ "private", "void", "block", "until", "shutdown", "(", ")", "throws", "interrupted", "exception", "{", "if", "(", "server", "!", "=", "null", ")", "{", "server", "await", "termination", "(", ")", ";", "}", "}" ]
[ "get", "the", "{", "@", "linkplain", "class", "class", "}", "that", "declared", "the", "{", "@", "link", "context", "configuration", "@", "context", "configuration", "}", "annotation", ",", "either", "explicitly", "or", "implicitly" ]
[ "public", "class", "<", "?", ">", "get", "declaring", "class", "(", ")", "{", "return", "this", "declaring", "class", ";", "}" ]
[ "returns", "the", "sql", "statement" ]
[ "string", "sql", "(", ")", "{", "return", "sql", ";", "}" ]
[ "creates", "a", "mutator", "to", "the", "variable" ]
[ "protected", "final", "method", "spec", "new", "setter", "(", "type", "name", "var", "type", ",", "string", "var", "name", ",", "visibility", "visibility", ")", "{", "string", "method", "name", "=", "\"", "set", "\"", "+", "character", "to", "upper", "case", "(", "var", "name", "char", "at", "(", "0", ")", ")", "+", "var", "name", "substring", "(", "1", ")", ";", "string", "type", ";", "if", "(", "var", "type", "is", "primitive", "(", ")", ")", "{", "type", "=", "var", "type", "equals", "(", "type", "name", "int", ")", "?", "\"", "int", "\"", ":", "\"", "long", "\"", ";", "}", "else", "{", "type", "=", "\"", "object", "\"", ";", "}", "method", "spec", "builder", "setter", "=", "method", "spec", "method", "builder", "(", "method", "name", ")", "add", "modifiers", "(", "context", "public", "final", "modifiers", "(", ")", ")", "add", "parameter", "(", "var", "type", ",", "var", "name", ")", ";", "if", "(", "visibility", "is", "relaxed", ")", "{", "setter", "add", "statement", "(", "\"", "$", "t", "unsafe", "put", "$", "l", "(", "this", ",", "$", "n", ",", "$", "n", ")", "\"", ",", "unsafe", "access", ",", "type", ",", "offset", "name", "(", "var", "name", ")", ",", "var", "name", ")", ";", "}", "else", "{", "setter", "add", "statement", "(", "\"", "this", "$", "n", "=", "$", "n", "\"", ",", "var", "name", ",", "var", "name", ")", ";", "}", "return", "setter", "build", "(", ")", ";", "}" ]
[ "gets", "the", "{", "@", "link", "blob", "path", "}", "that", "defines", "the", "implementation", "specific", "paths", "to", "where", "the", "blobs", "are", "contained" ]
[ "blob", "path", "path", "(", ")", ";" ]
[ "perform", "the", "given", "callback", "operation", "on", "all", "matching", "methods", "of", "the", "given", "class", "and", "superclasses", "(", "or", "given", "interface", "and", "super", "-", "interfaces", ")", "the", "same", "named", "method", "occurring", "on", "subclass", "and", "superclass", "will", "appear", "twice", ",", "unless", "excluded", "by", "the", "specified", "{", "@", "link", "method", "filter", "}" ]
[ "public", "static", "void", "do", "with", "methods", "(", "class", "<", "?", ">", "clazz", ",", "method", "callback", "mc", ",", "@", "nullable", "method", "filter", "mf", ")", "{", "/", "/", "keep", "backing", "up", "the", "inheritance", "hierarchy", "method", "[", "]", "methods", "=", "get", "declared", "methods", "(", "clazz", ",", "false", ")", ";", "for", "(", "method", "method", ":", "methods", ")", "{", "if", "(", "mf", "!", "=", "null", "&", "&", "!", "mf", "matches", "(", "method", ")", ")", "{", "continue", ";", "}", "try", "{", "mc", "do", "with", "(", "method", ")", ";", "}", "catch", "(", "illegal", "access", "exception", "ex", ")", "{", "throw", "new", "illegal", "state", "exception", "(", "\"", "not", "allowed", "to", "access", "method", "'", "\"", "+", "method", "get", "name", "(", ")", "+", "\"", "'", ":", "\"", "+", "ex", ")", ";", "}", "}", "if", "(", "clazz", "get", "superclass", "(", ")", "!", "=", "null", "&", "&", "(", "mf", "!", "=", "user", "declared", "methods", "|", "|", "clazz", "get", "superclass", "(", ")", "!", "=", "object", "class", ")", ")", "{", "do", "with", "methods", "(", "clazz", "get", "superclass", "(", ")", ",", "mc", ",", "mf", ")", ";", "}", "else", "if", "(", "clazz", "is", "interface", "(", ")", ")", "{", "for", "(", "class", "<", "?", ">", "super", "ifc", ":", "clazz", "get", "interfaces", "(", ")", ")", "{", "do", "with", "methods", "(", "super", "ifc", ",", "mc", ",", "mf", ")", ";", "}", "}", "}" ]
[ "gets", "the", "serializer", "from", "this", "channel" ]
[ "public", "type", "serializer", "factory", "<", "?", ">", "get", "serializer", "(", ")", "{", "return", "serializer", ";", "}" ]
[ "pop", "up", "the", "clear", "with", "options", "dialog" ]
[ "private", "void", "show", "clear", "all", "dialog", "(", "listing", "action", "context", "program", "action", "context", ")", "{", "if", "(", "clear", "dialog", "=", "=", "null", ")", "{", "clear", "dialog", "=", "new", "clear", "dialog", "(", "this", ")", ";", "}", "clear", "dialog", "set", "program", "action", "context", "(", "program", "action", "context", ")", ";", "tool", "show", "dialog", "(", "clear", "dialog", ")", ";", "}" ]
[ "the", "test", "suppresses", "unchecked", "warnings", "in", "{", "@", "link", "org", "mockito", "mockito", "#", "reset", "}", "although", "calling", "the", "method", "is", "a", "bad", "manner", ",", "we", "call", "the", "method", "instead", "of", "splitting", "the", "test", "(", "i", "e", "restarting", "mini", "d", "f", "s", "cluster", ")", "to", "save", "time" ]
[ "public", "void", "test", "split", "placement", "(", ")", "throws", "exception", "{", "mini", "d", "f", "s", "cluster", "dfs", "=", "null", ";", "file", "system", "file", "sys", "=", "null", ";", "try", "{", "/", "*", "start", "3", "datanodes", ",", "one", "each", "in", "rack", "r", "1", ",", "r", "2", ",", "r", "3", "create", "five", "files", "*", "1", ")", "file", "1", "and", "file", "5", ",", "just", "after", "starting", "the", "datanode", "on", "r", "1", ",", "with", "*", "a", "repl", "factor", "of", "1", ",", "and", ",", "*", "2", ")", "file", "2", ",", "just", "after", "starting", "the", "datanode", "on", "r", "2", ",", "with", "*", "a", "repl", "factor", "of", "2", ",", "and", ",", "*", "3", ")", "file", "3", ",", "file", "4", "after", "starting", "the", "all", "three", "datanodes", ",", "with", "a", "repl", "*", "factor", "of", "3", "*", "at", "the", "end", ",", "file", "1", ",", "file", "5", "will", "be", "present", "on", "only", "datanode", "1", ",", "file", "2", "will", "*", "be", "present", "on", "datanode", "1", "and", "datanode", "2", "and", "*", "file", "3", ",", "file", "4", "will", "be", "present", "on", "all", "datanodes", "*", "/", "configuration", "conf", "=", "new", "configuration", "(", ")", ";", "conf", "set", "boolean", "(", "\"", "dfs", "replication", "consider", "load", "\"", ",", "false", ")", ";", "dfs", "=", "new", "mini", "d", "f", "s", "cluster", "builder", "(", "conf", ")", "racks", "(", "rack", "1", ")", "hosts", "(", "hosts", "1", ")", "build", "(", ")", ";", "dfs", "wait", "active", "(", ")", ";", "file", "sys", "=", "dfs", "get", "file", "system", "(", ")", ";", "if", "(", "!", "file", "sys", "mkdirs", "(", "in", "dir", ")", ")", "{", "throw", "new", "i", "o", "exception", "(", "\"", "mkdirs", "failed", "to", "create", "\"", "+", "in", "dir", "to", "string", "(", ")", ")", ";", "}", "path", "file", "1", "=", "new", "path", "(", "dir", "1", "+", "\"", "/", "file", "1", "\"", ")", ";", "write", "file", "(", "conf", ",", "file", "1", ",", "(", "short", ")", "1", ",", "1", ")", ";", "/", "/", "create", "another", "file", "on", "the", "same", "datanode", "path", "file", "5", "=", "new", "path", "(", "dir", "5", "+", "\"", "/", "file", "5", "\"", ")", ";", "write", "file", "(", "conf", ",", "file", "5", ",", "(", "short", ")", "1", ",", "1", ")", ";", "/", "/", "split", "it", "using", "a", "combined", "file", "input", "format", "dummy", "input", "format", "in", "format", "=", "new", "dummy", "input", "format", "(", ")", ";", "job", "job", "=", "job", "get", "instance", "(", "conf", ")", ";", "file", "input", "format", "set", "input", "paths", "(", "job", ",", "dir", "1", "+", "\"", ",", "\"", "+", "dir", "5", ")", ";", "list", "<", "input", "split", ">", "splits", "=", "in", "format", "get", "splits", "(", "job", ")", ";", "system", "out", "println", "(", "\"", "made", "splits", "(", "test", "0", ")", ":", "\"", "+", "splits", "size", "(", ")", ")", ";", "for", "(", "input", "split", "split", ":", "splits", ")", "{", "system", "out", "println", "(", "\"", "file", "split", "(", "test", "0", ")", ":", "\"", "+", "split", ")", ";", "}", "assert", "equals", "(", "1", ",", "splits", "size", "(", ")", ")", ";", "combine", "file", "split", "file", "split", "=", "(", "combine", "file", "split", ")", "splits", "get", "(", "0", ")", ";", "assert", "equals", "(", "2", ",", "file", "split", "get", "num", "paths", "(", ")", ")", ";", "assert", "equals", "(", "1", ",", "file", "split", "get", "locations", "(", ")", "length", ")", ";", "assert", "equals", "(", "file", "1", "get", "name", "(", ")", ",", "file", "split", "get", "path", "(", "0", ")", "get", "name", "(", ")", ")", ";", "assert", "equals", "(", "0", ",", "file", "split", "get", "offset", "(", "0", ")", ")", ";", "assert", "equals", "(", "blocksize", ",", "file", "split", "get", "length", "(", "0", ")", ")", ";", "assert", "equals", "(", "file", "5", "get", "name", "(", ")", ",", "file", "split", "get", "path", "(", "1", ")", "get", "name", "(", ")", ")", ";", "assert", "equals", "(", "0", ",", "file", "split", "get", "offset", "(", "1", ")", ")", ";", "assert", "equals", "(", "blocksize", ",", "file", "split", "get", "length", "(", "1", ")", ")", ";", "assert", "equals", "(", "hosts", "1", "[", "0", "]", ",", "file", "split", "get", "locations", "(", ")", "[", "0", "]", ")", ";", "dfs", "start", "data", "nodes", "(", "conf", ",", "1", ",", "true", ",", "null", ",", "rack", "2", ",", "hosts", "2", ",", "null", ")", ";", "dfs", "wait", "active", "(", ")", ";", "/", "/", "create", "file", "on", "two", "datanodes", "path", "file", "2", "=", "new", "path", "(", "dir", "2", "+", "\"", "/", "file", "2", "\"", ")", ";", "write", "file", "(", "conf", ",", "file", "2", ",", "(", "short", ")", "2", ",", "2", ")", ";", "/", "/", "split", "it", "using", "a", "combined", "file", "input", "format", "in", "format", "=", "new", "dummy", "input", "format", "(", ")", ";", "file", "input", "format", "set", "input", "paths", "(", "job", ",", "dir", "1", "+", "\"", ",", "\"", "+", "dir", "2", ")", ";", "in", "format", "set", "min", "split", "size", "rack", "(", "blocksize", ")", ";", "splits", "=", "in", "format", "get", "splits", "(", "job", ")", ";", "system", "out", "println", "(", "\"", "made", "splits", "(", "test", "1", ")", ":", "\"", "+", "splits", "size", "(", ")", ")", ";", "for", "(", "input", "split", "split", ":", "splits", ")", "{", "system", "out", "println", "(", "\"", "file", "split", "(", "test", "1", ")", ":", "\"", "+", "split", ")", ";", "}", "for", "(", "input", "split", "split", ":", "splits", ")", "{", "file", "split", "=", "(", "combine", "file", "split", ")", "split", ";", "/", "*", "*", "*", "if", "rack", "1", "is", "processed", "first", "by", "*", "{", "@", "link", "combine", "file", "input", "format", "#", "create", "splits", "}", ",", "*", "create", "only", "one", "split", "on", "rack", "1", "otherwise", "create", "two", "splits", "*", "/", "if", "(", "splits", "size", "(", ")", "=", "=", "2", ")", "{", "/", "/", "first", "split", "is", "on", "rack", "2", ",", "contains", "file", "2", "if", "(", "split", "equals", "(", "splits", "get", "(", "0", ")", ")", ")", "{", "assert", "equals", "(", "2", ",", "file", "split", "get", "num", "paths", "(", ")", ")", ";", "assert", "equals", "(", "1", ",", "file", "split", "get", "locations", "(", ")", "length", ")", ";", "assert", "equals", "(", "file", "2", "get", "name", "(", ")", ",", "file", "split", "get", "path", "(", "0", ")", "get", "name", "(", ")", ")", ";", "assert", "equals", "(", "0", ",", "file", "split", "get", "offset", "(", "0", ")", ")", ";", "assert", "equals", "(", "blocksize", ",", "file", "split", "get", "length", "(", "0", ")", ")", ";", "assert", "equals", "(", "file", "2", "get", "name", "(", ")", ",", "file", "split", "get", "path", "(", "1", ")", "get", "name", "(", ")", ")", ";", "assert", "equals", "(", "blocksize", ",", "file", "split", "get", "offset", "(", "1", ")", ")", ";", "assert", "equals", "(", "blocksize", ",", "file", "split", "get", "length", "(", "1", ")", ")", ";", "assert", "equals", "(", "hosts", "2", "[", "0", "]", ",", "file", "split", "get", "locations", "(", ")", "[", "0", "]", ")", ";", "}", "/", "/", "second", "split", "is", "on", "rack", "1", ",", "contains", "file", "1", "if", "(", "split", "equals", "(", "splits", "get", "(", "1", ")", ")", ")", "{", "assert", "equals", "(", "1", ",", "file", "split", "get", "num", "paths", "(", ")", ")", ";", "assert", "equals", "(", "1", ",", "file", "split", "get", "locations", "(", ")", "length", ")", ";", "assert", "equals", "(", "file", "1", "get", "name", "(", ")", ",", "file", "split", "get", "path", "(", "0", ")", "get", "name", "(", ")", ")", ";", "assert", "equals", "(", "0", ",", "file", "split", "get", "offset", "(", "0", ")", ")", ";", "assert", "equals", "(", "blocksize", ",", "file", "split", "get", "length", "(", "0", ")", ")", ";", "assert", "equals", "(", "hosts", "1", "[", "0", "]", ",", "file", "split", "get", "locations", "(", ")", "[", "0", "]", ")", ";", "}", "}", "else", "if", "(", "splits", "size", "(", ")", "=", "=", "1", ")", "{", "/", "/", "first", "split", "is", "on", "rack", "1", ",", "contains", "file", "1", "and", "file", "2", "assert", "equals", "(", "3", ",", "file", "split", "get", "num", "paths", "(", ")", ")", ";", "set", "<", "split", ">", "expected", "=", "new", "hash", "set", "<", ">", "(", ")", ";", "expected", "add", "(", "new", "split", "(", "file", "1", "get", "name", "(", ")", ",", "blocksize", ",", "0", ")", ")", ";", "expected", "add", "(", "new", "split", "(", "file", "2", "get", "name", "(", ")", ",", "blocksize", ",", "0", ")", ")", ";", "expected", "add", "(", "new", "split", "(", "file", "2", "get", "name", "(", ")", ",", "blocksize", ",", "blocksize", ")", ")", ";", "list", "<", "split", ">", "actual", "=", "new", "array", "list", "<", ">", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "3", ";", "i", "+", "+", ")", "{", "string", "name", "=", "file", "split", "get", "path", "(", "i", ")", "get", "name", "(", ")", ";", "long", "length", "=", "file", "split", "get", "length", "(", "i", ")", ";", "long", "offset", "=", "file", "split", "get", "offset", "(", "i", ")", ";", "actual", "add", "(", "new", "split", "(", "name", ",", "length", ",", "offset", ")", ")", ";", "}", "assert", "true", "(", "actual", "contains", "all", "(", "expected", ")", ")", ";", "assert", "equals", "(", "1", ",", "file", "split", "get", "locations", "(", ")", "length", ")", ";", "assert", "equals", "(", "hosts", "1", "[", "0", "]", ",", "file", "split", "get", "locations", "(", ")", "[", "0", "]", ")", ";", "}", "else", "{", "fail", "(", "\"", "expected", "split", "size", "is", "1", "or", "2", ",", "but", "actual", "size", "is", "\"", "+", "splits", "size", "(", ")", ")", ";", "}", "}", "/", "/", "create", "another", "file", "on", "3", "datanodes", "and", "3", "racks", "dfs", "start", "data", "nodes", "(", "conf", ",", "1", ",", "true", ",", "null", ",", "rack", "3", ",", "hosts", "3", ",", "null", ")", ";", "dfs", "wait", "active", "(", ")", ";", "path", "file", "3", "=", "new", "path", "(", "dir", "3", "+", "\"", "/", "file", "3", "\"", ")", ";", "write", "file", "(", "conf", ",", "new", "path", "(", "dir", "3", "+", "\"", "/", "file", "3", "\"", ")", ",", "(", "short", ")", "3", ",", "3", ")", ";", "in", "format", "=", "new", "dummy", "input", "format", "(", ")", ";", "file", "input", "format", "set", "input", "paths", "(", "job", ",", "dir", "1", "+", "\"", ",", "\"", "+", "dir", "2", "+", "\"", ",", "\"", "+", "dir", "3", ")", ";", "in", "format", "set", "min", "split", "size", "rack", "(", "blocksize", ")", ";", "splits", "=", "in", "format", "get", "splits", "(", "job", ")", ";", "for", "(", "input", "split", "split", ":", "splits", ")", "{", "system", "out", "println", "(", "\"", "file", "split", "(", "test", "2", ")", ":", "\"", "+", "split", ")", ";", "}", "set", "<", "split", ">", "expected", "=", "new", "hash", "set", "<", ">", "(", ")", ";", "expected", "add", "(", "new", "split", "(", "file", "1", "get", "name", "(", ")", ",", "blocksize", ",", "0", ")", ")", ";", "expected", "add", "(", "new", "split", "(", "file", "2", "get", "name", "(", ")", ",", "blocksize", ",", "0", ")", ")", ";", "expected", "add", "(", "new", "split", "(", "file", "2", "get", "name", "(", ")", ",", "blocksize", ",", "blocksize", ")", ")", ";", "expected", "add", "(", "new", "split", "(", "file", "3", "get", "name", "(", ")", ",", "blocksize", ",", "0", ")", ")", ";", "expected", "add", "(", "new", "split", "(", "file", "3", "get", "name", "(", ")", ",", "blocksize", ",", "blocksize", ")", ")", ";", "expected", "add", "(", "new", "split", "(", "file", "3", "get", "name", "(", ")", ",", "blocksize", ",", "blocksize", "*", "2", ")", ")", ";", "list", "<", "split", ">", "actual", "=", "new", "array", "list", "<", ">", "(", ")", ";", "for", "(", "input", "split", "split", ":", "splits", ")", "{", "file", "split", "=", "(", "combine", "file", "split", ")", "split", ";", "/", "*", "*", "*", "if", "rack", "1", "is", "processed", "first", "by", "*", "{", "@", "link", "combine", "file", "input", "format", "#", "create", "splits", "}", ",", "*", "create", "only", "one", "split", "on", "rack", "1", "*", "if", "rack", "2", "or", "rack", "3", "is", "processed", "first", "and", "rack", "1", "is", "processed", "second", ",", "*", "create", "one", "split", "on", "rack", "2", "or", "rack", "3", "and", "the", "other", "split", "is", "on", "rack", "1", "*", "otherwise", "create", "3", "splits", "for", "each", "rack", "*", "/", "if", "(", "splits", "size", "(", ")", "=", "=", "3", ")", "{", "/", "/", "first", "split", "is", "on", "rack", "3", ",", "contains", "file", "3", "if", "(", "split", "equals", "(", "splits", "get", "(", "0", ")", ")", ")", "{", "assert", "equals", "(", "3", ",", "file", "split", "get", "num", "paths", "(", ")", ")", ";", "assert", "equals", "(", "1", ",", "file", "split", "get", "locations", "(", ")", "length", ")", ";", "assert", "equals", "(", "file", "3", "get", "name", "(", ")", ",", "file", "split", "get", "path", "(", "0", ")", "get", "name", "(", ")", ")", ";", "assert", "equals", "(", "0", ",", "file", "split", "get", "offset", "(", "0", ")", ")", ";", "assert", "equals", "(", "blocksize", ",", "file", "split", "get", "length", "(", "0", ")", ")", ";", "assert", "equals", "(", "file", "3", "get", "name", "(", ")", ",", "file", "split", "get", "path", "(", "1", ")", "get", "name", "(", ")", ")", ";", "assert", "equals", "(", "blocksize", ",", "file", "split", "get", "offset", "(", "1", ")", ")", ";", "assert", "equals", "(", "blocksize", ",", "file", "split", "get", "length", "(", "1", ")", ")", ";", "assert", "equals", "(", "file", "3", "get", "name", "(", ")", ",", "file", "split", "get", "path", "(", "2", ")", "get", "name", "(", ")", ")", ";", "assert", "equals", "(", "2", "*", "blocksize", ",", "file", "split", "get", "offset", "(", "2", ")", ")", ";", "assert", "equals", "(", "blocksize", ",", "file", "split", "get", "length", "(", "2", ")", ")", ";", "assert", "equals", "(", "hosts", "3", "[", "0", "]", ",", "file", "split", "get", "locations", "(", ")", "[", "0", "]", ")", ";", "}", "/", "/", "second", "split", "is", "on", "rack", "2", ",", "contains", "file", "2", "if", "(", "split", "equals", "(", "splits", "get", "(", "1", ")", ")", ")", "{", "assert", "equals", "(", "2", ",", "file", "split", "get", "num", "paths", "(", ")", ")", ";", "assert", "equals", "(", "1", ",", "file", "split", "get", "locations", "(", ")", "length", ")", ";", "assert", "equals", "(", "file", "2", "get", "name", "(", ")", ",", "file", "split", "get", "path", "(", "0", ")", "get", "name", "(", ")", ")", ";", "assert", "equals", "(", "0", ",", "file", "split", "get", "offset", "(", "0", ")", ")", ";", "assert", "equals", "(", "blocksize", ",", "file", "split", "get", "length", "(", "0", ")", ")", ";", "assert", "equals", "(", "file", "2", "get", "name", "(", ")", ",", "file", "split", "get", "path", "(", "1", ")", "get", "name", "(", ")", ")", ";", "assert", "equals", "(", "blocksize", ",", "file", "split", "get", "offset", "(", "1", ")", ")", ";", "assert", "equals", "(", "blocksize", ",", "file", "split", "get", "length", "(", "1", ")", ")", ";", "assert", "equals", "(", "hosts", "2", "[", "0", "]", ",", "file", "split", "get", "locations", "(", ")", "[", "0", "]", ")", ";", "}", "/", "/", "third", "split", "is", "on", "rack", "1", ",", "contains", "file", "1", "if", "(", "split", "equals", "(", "splits", "get", "(", "2", ")", ")", ")", "{", "assert", "equals", "(", "1", ",", "file", "split", "get", "num", "paths", "(", ")", ")", ";", "assert", "equals", "(", "1", ",", "file", "split", "get", "locations", "(", ")", "length", ")", ";", "assert", "equals", "(", "file", "1", "get", "name", "(", ")", ",", "file", "split", "get", "path", "(", "0", ")", "get", "name", "(", ")", ")", ";", "assert", "equals", "(", "0", ",", "file", "split", "get", "offset", "(", "0", ")", ")", ";", "assert", "equals", "(", "blocksize", ",", "file", "split", "get", "length", "(", "0", ")", ")", ";", "assert", "equals", "(", "hosts", "1", "[", "0", "]", ",", "file", "split", "get", "locations", "(", ")", "[", "0", "]", ")", ";", "}", "}", "else", "if", "(", "splits", "size", "(", ")", "=", "=", "2", ")", "{", "/", "/", "first", "split", "is", "on", "rack", "2", "or", "rack", "3", ",", "contains", "one", "or", "two", "files", "if", "(", "split", "equals", "(", "splits", "get", "(", "0", ")", ")", ")", "{", "assert", "equals", "(", "1", ",", "file", "split", "get", "locations", "(", ")", "length", ")", ";", "if", "(", "file", "split", "get", "locations", "(", ")", "[", "0", "]", "equals", "(", "hosts", "2", "[", "0", "]", ")", ")", "{", "assert", "equals", "(", "2", ",", "file", "split", "get", "num", "paths", "(", ")", ")", ";", "}", "else", "if", "(", "file", "split", "get", "locations", "(", ")", "[", "0", "]", "equals", "(", "hosts", "3", "[", "0", "]", ")", ")", "{", "assert", "equals", "(", "3", ",", "file", "split", "get", "num", "paths", "(", ")", ")", ";", "}", "else", "{", "fail", "(", "\"", "first", "split", "should", "be", "on", "rack", "2", "or", "rack", "3", "\"", ")", ";", "}", "}", "/", "/", "second", "split", "is", "on", "rack", "1", ",", "contains", "the", "rest", "files", "if", "(", "split", "equals", "(", "splits", "get", "(", "1", ")", ")", ")", "{", "assert", "equals", "(", "1", ",", "file", "split", "get", "locations", "(", ")", "length", ")", ";", "assert", "equals", "(", "hosts", "1", "[", "0", "]", ",", "file", "split", "get", "locations", "(", ")", "[", "0", "]", ")", ";", "}", "}", "else", "if", "(", "splits", "size", "(", ")", "=", "=", "1", ")", "{", "/", "/", "first", "split", "is", "rack", "1", ",", "contains", "all", "three", "files", "assert", "equals", "(", "1", ",", "file", "split", "get", "locations", "(", ")", "length", ")", ";", "assert", "equals", "(", "6", ",", "file", "split", "get", "num", "paths", "(", ")", ")", ";", "assert", "equals", "(", "hosts", "1", "[", "0", "]", ",", "file", "split", "get", "locations", "(", ")", "[", "0", "]", ")", ";", "}", "else", "{", "fail", "(", "\"", "split", "size", "should", "be", "1", ",", "2", ",", "or", "3", "\"", ")", ";", "}", "for", "(", "int", "i", "=", "0", ";", "i", "<", "file", "split", "get", "num", "paths", "(", ")", ";", "i", "+", "+", ")", "{", "string", "name", "=", "file", "split", "get", "path", "(", "i", ")", "get", "name", "(", ")", ";", "long", "length", "=", "file", "split", "get", "length", "(", "i", ")", ";", "long", "offset", "=", "file", "split", "get", "offset", "(", "i", ")", ";", "actual", "add", "(", "new", "split", "(", "name", ",", "length", ",", "offset", ")", ")", ";", "}", "}", "assert", "equals", "(", "6", ",", "actual", "size", "(", ")", ")", ";", "assert", "true", "(", "actual", "contains", "all", "(", "expected", ")", ")", ";", "/", "/", "create", "file", "4", "on", "all", "three", "racks", "path", "file", "4", "=", "new", "path", "(", "dir", "4", "+", "\"", "/", "file", "4", "\"", ")", ";", "write", "file", "(", "conf", ",", "file", "4", ",", "(", "short", ")", "3", ",", "3", ")", ";", "in", "format", "=", "new", "dummy", "input", "format", "(", ")", ";", "file", "input", "format", "set", "input", "paths", "(", "job", ",", "dir", "1", "+", "\"", ",", "\"", "+", "dir", "2", "+", "\"", ",", "\"", "+", "dir", "3", "+", "\"", ",", "\"", "+", "dir", "4", ")", ";", "in", "format", "set", "min", "split", "size", "rack", "(", "blocksize", ")", ";", "splits", "=", "in", "format", "get", "splits", "(", "job", ")", ";", "for", "(", "input", "split", "split", ":", "splits", ")", "{", "system", "out", "println", "(", "\"", "file", "split", "(", "test", "3", ")", ":", "\"", "+", "split", ")", ";", "}", "expected", "add", "(", "new", "split", "(", "file", "4", "get", "name", "(", ")", ",", "blocksize", ",", "0", ")", ")", ";", "expected", "add", "(", "new", "split", "(", "file", "4", "get", "name", "(", ")", ",", "blocksize", ",", "blocksize", ")", ")", ";", "expected", "add", "(", "new", "split", "(", "file", "4", "get", "name", "(", ")", ",", "blocksize", ",", "blocksize", "*", "2", ")", ")", ";", "actual", "clear", "(", ")", ";", "for", "(", "input", "split", "split", ":", "splits", ")", "{", "file", "split", "=", "(", "combine", "file", "split", ")", "split", ";" ]
[ "create", "a", "{", "@", "link", "mock", "http", "servlet", "request", "builder", "}", "for", "a", "patch", "request" ]
[ "public", "static", "mock", "http", "servlet", "request", "builder", "patch", "(", "uri", "uri", ")", "{", "return", "new", "mock", "http", "servlet", "request", "builder", "(", "http", "method", "patch", ",", "uri", ")", ";", "}" ]
[ "unboxes", "{", "@", "code", "obj", "}", "assumes", "that", "obj", "is", "not", "{", "@", "code", "null", "}", "or", "a", "{", "@", "link", "set", "future", "}" ]
[ "private", "v", "get", "done", "value", "(", "object", "obj", ")", "throws", "execution", "exception", "{", "/", "/", "while", "this", "seems", "like", "it", "might", "be", "too", "branch", "-", "y", ",", "simple", "benchmarking", "proves", "it", "to", "be", "/", "/", "unmeasurable", "(", "comparing", "done", "abstract", "futures", "with", "immediate", "future", ")", "if", "(", "obj", "instanceof", "cancellation", ")", "{", "throw", "cancellation", "exception", "with", "cause", "(", "\"", "task", "was", "cancelled", "\"", ",", "(", "(", "cancellation", ")", "obj", ")", "cause", ")", ";", "}", "else", "if", "(", "obj", "instanceof", "failure", ")", "{", "throw", "new", "execution", "exception", "(", "(", "(", "failure", ")", "obj", ")", "exception", ")", ";", "}", "else", "if", "(", "obj", "=", "=", "null", ")", "{", "return", "null", ";", "}", "else", "{", "@", "suppress", "warnings", "(", "\"", "unchecked", "\"", ")", "/", "/", "this", "is", "the", "only", "other", "option", "v", "as", "v", "=", "(", "v", ")", "obj", ";", "return", "as", "v", ";", "}", "}" ]
[ "set", "whether", "http", "session", "attributes", "are", "allowed", "to", "override", "(", "hide", ")", "controller", "generated", "model", "attributes", "of", "the", "same", "name", "default", "is", "\"", "false", "\"", ",", "which", "causes", "an", "exception", "to", "be", "thrown", "if", "session", "attributes", "of", "the", "same", "name", "as", "model", "attributes", "are", "found" ]
[ "public", "void", "set", "allow", "session", "override", "(", "boolean", "allow", "session", "override", ")", "{", "this", "allow", "session", "override", "=", "allow", "session", "override", ";", "}" ]
[ "return", "the", "{", "@", "link", "media", "type", "}", "'", "s", "that", "this", "writer", "supports" ]
[ "list", "<", "media", "type", ">", "get", "writable", "media", "types", "(", ")", ";" ]
[ "whether", "the", "adapter", "should", "save", "the", "state", "of", "the", "view", "bound", "to", "this", "model" ]
[ "public", "boolean", "should", "save", "view", "state", "(", ")", "{", "return", "false", ";", "}" ]
[ "creates", "a", "new", "listenable", "future", "-", "style", "stub", "that", "supports", "unary", "calls", "on", "the", "service" ]
[ "public", "static", "test", "service", "future", "stub", "new", "future", "stub", "(", "io", "grpc", "channel", "channel", ")", "{", "io", "grpc", "stub", "abstract", "stub", "stub", "factory", "<", "test", "service", "future", "stub", ">", "factory", "=", "new", "io", "grpc", "stub", "abstract", "stub", "stub", "factory", "<", "test", "service", "future", "stub", ">", "(", ")", "{", "@", "java", "lang", "override", "public", "test", "service", "future", "stub", "new", "stub", "(", "io", "grpc", "channel", "channel", ",", "io", "grpc", "call", "options", "call", "options", ")", "{", "return", "new", "test", "service", "future", "stub", "(", "channel", ",", "call", "options", ")", ";", "}", "}", ";", "return", "test", "service", "future", "stub", "new", "stub", "(", "factory", ",", "channel", ")", ";", "}" ]
[ "{", "@", "inherit", "doc", "}", "the", "default", "implementation", "does", "nothing" ]
[ "@", "override", "public", "void", "enter", "function", "name", "(", "sql", "base", "parser", "function", "name", "context", "ctx", ")", "{", "}" ]
[ "test", "the", "property", "'", "integer", "item", "'" ]
[ "public", "void", "integer", "item", "test", "(", ")", "{", "/", "/", "todo", ":", "test", "integer", "item", "}" ]
[ "get", "anytype", "3" ]
[ "public", "object", "get", "anytype", "3", "(", ")", "{", "return", "anytype", "3", ";", "}" ]
[ "inserts", "the", "given", "model", "after", "the", "other", "in", "the", "{", "@", "link", "#", "models", "}", "list", ",", "and", "notifies", "that", "the", "item", "was", "inserted" ]
[ "protected", "void", "insert", "model", "after", "(", "epoxy", "model", "<", "?", ">", "model", "to", "insert", ",", "epoxy", "model", "<", "?", ">", "model", "to", "insert", "after", ")", "{", "int", "model", "index", "=", "get", "model", "position", "(", "model", "to", "insert", "after", ")", ";", "if", "(", "model", "index", "=", "=", "-", "1", ")", "{", "throw", "new", "illegal", "state", "exception", "(", "\"", "model", "is", "not", "added", ":", "\"", "+", "model", "to", "insert", "after", ")", ";", "}", "int", "target", "index", "=", "model", "index", "+", "1", ";", "pause", "model", "list", "notifications", "(", ")", ";", "models", "add", "(", "target", "index", ",", "model", "to", "insert", ")", ";", "resume", "model", "list", "notifications", "(", ")", ";", "notify", "item", "inserted", "(", "target", "index", ")", ";", "}" ]
[ "returns", "the", "offset", "into", "the", "given", "array", "represented", "by", "the", "given", "offset", "into", "this", "instance" ]
[ "public", "int", "underlying", "offset", "(", "int", "offset", ",", "byte", "[", "]", "bytes", ")", "{", "if", "(", "bytes", "!", "=", "this", "bytes", ")", "{", "throw", "new", "illegal", "argument", "exception", "(", "\"", "wrong", "bytes", "\"", ")", ";", "}", "return", "start", "+", "offset", ";", "}" ]
[ "this", "test", "checks", "an", "implementation", "dependent", "feature", "it", "tests", "that", "the", "method", "{", "@", "code", "add", "edge", "}", "will", "silently", "add", "the", "missing", "nodes", "to", "the", "graph", ",", "then", "add", "the", "edge", "connecting", "them", "we", "are", "not", "using", "the", "proxy", "methods", "here", "as", "we", "want", "to", "test", "{", "@", "code", "add", "edge", "}", "when", "the", "end", "-", "points", "are", "not", "elements", "of", "the", "graph" ]
[ "public", "void", "add", "edge", "nodes", "not", "in", "graph", "(", ")", "{", "assume", "(", ")", "that", "(", "graph", "is", "mutable", "(", ")", ")", "is", "true", "(", ")", ";", "network", "as", "mutable", "network", "add", "node", "(", "n1", ")", ";", "assert", "true", "(", "network", "as", "mutable", "network", "add", "edge", "(", "n1", ",", "n5", ",", "e15", ")", ")", ";", "assert", "true", "(", "network", "as", "mutable", "network", "add", "edge", "(", "n4", ",", "n1", ",", "e41", ")", ")", ";", "assert", "true", "(", "network", "as", "mutable", "network", "add", "edge", "(", "n2", ",", "n3", ",", "e23", ")", ")", ";", "assert", "that", "(", "network", "nodes", "(", ")", ")", "contains", "exactly", "(", "n1", ",", "n5", ",", "n4", ",", "n2", ",", "n3", ")", ";", "assert", "that", "(", "network", "edges", "(", ")", ")", "contains", "exactly", "(", "e15", ",", "e41", ",", "e23", ")", ";", "assert", "that", "(", "network", "edges", "connecting", "(", "n1", ",", "n5", ")", ")", "contains", "exactly", "(", "e15", ")", ";", "assert", "that", "(", "network", "edges", "connecting", "(", "n4", ",", "n1", ")", ")", "contains", "exactly", "(", "e41", ")", ";", "assert", "that", "(", "network", "edges", "connecting", "(", "n2", ",", "n3", ")", ")", "contains", "exactly", "(", "e23", ")", ";", "/", "/", "direction", "of", "the", "added", "edge", "is", "correctly", "handled", "assert", "that", "(", "network", "edges", "connecting", "(", "n3", ",", "n2", ")", ")", "is", "empty", "(", ")", ";", "}" ]
[ "specifies", "the", "time", "attribute", "on", "which", "rows", "are", "grouped", "for", "streaming", "tables", "you", "can", "specify", "grouping", "by", "a", "event", "-", "time", "or", "processing", "-", "time", "attribute", "for", "batch", "tables", "you", "can", "specify", "grouping", "on", "a", "timestamp", "or", "long", "attribute" ]
[ "public", "tumble", "with", "size", "on", "time", "on", "(", "expression", "time", "field", ")", "{", "return", "new", "tumble", "with", "size", "on", "time", "(", "time", "field", ",", "size", ")", ";", "}" ]
[ "unit", "test", "for", "{", "@", "link", "outlier", "detector", "#", "compute", "median", "(", "list", ")", "}" ]
[ "public", "void", "test", "medians", "from", "test", "matrix", "(", ")", "{", "for", "(", "map", "entry", "<", "list", "<", "double", ">", ",", "pair", "<", "double", ",", "double", ">", ">", "entry", ":", "median", "test", "matrix", "entry", "set", "(", ")", ")", "{", "final", "list", "<", "double", ">", "input", "list", "=", "new", "array", "list", "<", ">", "(", "entry", "get", "key", "(", ")", ")", ";", "collections", "sort", "(", "input", "list", ")", ";", "final", "double", "median", "=", "outlier", "detector", "compute", "median", "(", "input", "list", ")", ";", "final", "double", "expected", "median", "=", "entry", "get", "value", "(", ")", "get", "left", "(", ")", ";", "/", "/", "ensure", "that", "the", "median", "is", "within", "0", "001", "%", "of", "expected", "/", "/", "we", "need", "some", "fudge", "factor", "for", "floating", "point", "comparison", "final", "double", "error", "percent", "=", "math", "abs", "(", "median", "-", "expected", "median", ")", "*", "100", "0", "/", "expected", "median", ";", "assert", "true", "(", "\"", "set", "\"", "+", "input", "list", "+", "\"", ";", "expected", "median", ":", "\"", "+", "expected", "median", "+", "\"", ",", "got", ":", "\"", "+", "median", ",", "error", "percent", "<", "0", "001", ")", ";", "}", "}" ]
[ "get", "float", "from", "segments" ]
[ "public", "static", "float", "get", "float", "(", "memory", "segment", "[", "]", "segments", ",", "int", "offset", ")", "{", "if", "(", "in", "first", "segment", "(", "segments", ",", "offset", ",", "4", ")", ")", "{", "return", "segments", "[", "0", "]", "get", "float", "(", "offset", ")", ";", "}", "else", "{", "return", "get", "float", "multi", "segments", "(", "segments", ",", "offset", ")", ";", "}", "}" ]
[ "constructs", "a", "new", "search", "source", "builder", "with", "a", "search", "query" ]
[ "public", "search", "request", "builder", "set", "query", "(", "query", "builder", "query", "builder", ")", "{", "source", "builder", "(", ")", "query", "(", "query", "builder", ")", ";", "return", "this", ";", "}" ]
[ "removes", "role", "from", "the", "native", "realm", "see", "<", "a", "href", "=", "\"", "https", ":", "www", "elastic", "coguideenelasticsearchreferencecurrentsecurity", "-", "api", "-", "delete", "-", "role", "html", "\"", ">", "the", "docs", "for", "more" ]
[ "public", "cancellable", "delete", "role", "async", "(", "delete", "role", "request", "request", ",", "request", "options", "options", ",", "action", "listener", "<", "delete", "role", "response", ">", "listener", ")", "{", "return", "rest", "high", "level", "client", "perform", "request", "async", "and", "parse", "entity", "(", "request", ",", "security", "request", "converters", ":", ":", "delete", "role", ",", "options", ",", "delete", "role", "response", ":", ":", "from", "x", "content", ",", "listener", ",", "singleton", "(", "404", ")", ")", ";", "}" ]
[ "get", "indirect", "map" ]
[ "public", "map", "<", "string", ",", "boolean", ">", "get", "indirect", "map", "(", ")", "{", "return", "indirect", "map", ";", "}" ]
[ "this", "method", "will", "determine", "if", "a", "static", "queue", "path", "is", "valid" ]
[ "private", "boolean", "validate", "static", "queue", "path", "(", "mapping", "queue", "path", "path", ")", "throws", "yarn", "exception", "{", "/", "/", "try", "getting", "queue", "by", "its", "full", "path", "name", ",", "if", "it", "exists", "it", "is", "a", "static", "/", "/", "leaf", "queue", "indeed", ",", "without", "any", "auto", "creation", "magic", "c", "s", "queue", "queue", "=", "queue", "manager", "get", "queue", "(", "path", "get", "full", "path", "(", ")", ")", ";", "if", "(", "queue", "=", "=", "null", ")", "{", "/", "/", "we", "might", "not", "be", "able", "to", "find", "the", "queue", ",", "because", "the", "reference", "was", "/", "/", "ambiguous", "this", "should", "only", "happen", "if", "the", "queue", "was", "referenced", "by", "/", "/", "leaf", "name", "only", "if", "(", "queue", "manager", "is", "ambiguous", "(", "path", "get", "full", "path", "(", ")", ")", ")", "{", "throw", "new", "yarn", "exception", "(", "\"", "target", "queue", "is", "an", "ambiguous", "leaf", "queue", "'", "\"", "+", "path", "get", "full", "path", "(", ")", "+", "\"", "'", "\"", ")", ";", "}", "/", "/", "if", "leaf", "queue", "does", "not", "exist", ",", "/", "/", "we", "need", "to", "check", "if", "the", "parent", "exists", "and", "is", "a", "managed", "parent", "if", "(", "!", "path", "has", "parent", "(", ")", ")", "{", "throw", "new", "yarn", "exception", "(", "\"", "target", "queue", "does", "not", "exist", "and", "has", "no", "parent", "defined", "'", "\"", "+", "path", "get", "full", "path", "(", ")", "+", "\"", "'", "\"", ")", ";", "}", "c", "s", "queue", "parent", "queue", "=", "queue", "manager", "get", "queue", "(", "path", "get", "parent", "(", ")", ")", ";", "if", "(", "parent", "queue", "=", "=", "null", ")", "{", "if", "(", "queue", "manager", "is", "ambiguous", "(", "path", "get", "parent", "(", ")", ")", ")", "{", "throw", "new", "yarn", "exception", "(", "\"", "target", "queue", "path", "'", "\"", "+", "path", "+", "\"", "'", "contains", "an", "ambiguous", "parent", "queue", "'", "\"", "+", "path", "get", "parent", "(", ")", "+", "\"", "'", "reference", "\"", ")", ";", "}", "else", "{", "throw", "new", "yarn", "exception", "(", "\"", "target", "queue", "path", "'", "\"", "+", "path", "+", "\"", "'", "\"", "+", "\"", "contains", "an", "invalid", "parent", "queue", "'", "\"", "+", "path", "get", "parent", "(", ")", "+", "\"", "'", "\"", ")", ";", "}", "}", "if", "(", "!", "(", "parent", "queue", "instanceof", "managed", "parent", "queue", ")", ")", "{", "/", "/", "if", "the", "parent", "path", "was", "referenced", "by", "short", "name", ",", "and", "it", "is", "not", "/", "/", "managed", ",", "we", "look", "up", "if", "there", "is", "a", "queue", "under", "it", "with", "the", "leaf", "/", "/", "queue", "'", "s", "name", "string", "normalized", "parent", "path", "=", "parent", "queue", "get", "queue", "path", "(", ")", "+", "\"", "\"", "+", "path", "get", "leaf", "name", "(", ")", ";", "c", "s", "queue", "normalized", "queue", "=", "queue", "manager", "get", "queue", "(", "normalized", "parent", "path", ")", ";", "if", "(", "normalized", "queue", "instanceof", "leaf", "queue", ")", "{", "return", "true", ";", "}", "if", "(", "normalized", "queue", "=", "=", "null", ")", "{", "throw", "new", "yarn", "exception", "(", "\"", "target", "queue", "'", "\"", "+", "path", "get", "full", "path", "(", ")", "+", "\"", "'", "does", "not", "exist", "\"", "+", "\"", "and", "has", "a", "non", "-", "managed", "parent", "queue", "defined", "\"", ")", ";", "}", "else", "{", "throw", "new", "yarn", "exception", "(", "\"", "target", "queue", "'", "\"", "+", "path", "+", "\"", "'", "references", "\"", "+", "\"", "a", "non", "-", "leaf", "queue", ",", "target", "queues", "must", "always", "be", "\"", "+", "\"", "leaf", "queues", "\"", ")", ";", "}", "}", "}", "else", "{", "/", "/", "if", "queue", "exists", ",", "validate", "if", "its", "an", "instance", "of", "leaf", "queue", "if", "(", "!", "(", "queue", "instanceof", "leaf", "queue", ")", ")", "{", "throw", "new", "yarn", "exception", "(", "\"", "target", "queue", "'", "\"", "+", "path", "+", "\"", "'", "references", "\"", "+", "\"", "a", "non", "-", "leaf", "queue", ",", "target", "queues", "must", "always", "be", "\"", "+", "\"", "leaf", "queues", "\"", ")", ";", "}", "}", "return", "true", ";", "}" ]
[ "creates", "a", "new", "traverser", "for", "the", "given", "general", "{", "@", "code", "graph", "}", "traversers", "created", "using", "this", "method", "are", "guaranteed", "to", "visit", "each", "node", "reachable", "from", "the", "start", "node", "(", "s", ")", "at", "most", "once", "if", "you", "know", "that", "no", "node", "in", "{", "@", "code", "graph", "}", "is", "reachable", "by", "more", "than", "one", "path", "from", "the", "start", "node", "(", "s", ")", ",", "consider", "using", "{", "@", "link", "#", "for", "tree", "(", "successors", "function", ")", "}", "instead", "<", "b", ">", "performance", "notes", "<", "b", ">", "traversals", "require", "o", "(", "n", ")", "time", "(", "where", "n", "is", "the", "number", "of", "nodes", "reachable", "from", "the", "start", "node", ")", ",", "assuming", "that", "the", "node", "objects", "have", "o", "(", "1", ")", "{", "@", "code", "equals", "(", ")", "}", "and", "{", "@", "code", "hash", "code", "(", ")", "}", "implementations", "(", "see", "the", "<", "a", "href", "=", "\"", "https", ":", "github", "comgoogleguavawiki", "graphs", "explained", "#", "elements", "-", "must", "-", "be", "-", "useable", "-", "as", "-", "map", "-", "keys", "\"", ">", "notes", "on", "element", "objects", "for", "more", "information", ")", "while", "traversing", ",", "the", "traverser", "will", "use", "o", "(", "n", ")", "space", "(", "where", "n", "is", "the", "number", "of", "nodes", "that", "have", "thus", "far", "been", "visited", ")", ",", "plus", "o", "(", "h", ")", "space", "(", "where", "h", "is", "the", "number", "of", "nodes", "that", "have", "been", "seen", "but", "not", "yet", "visited", ",", "that", "is", ",", "the", "\"", "horizon", "\"", ")" ]
[ "public", "static", "<", "n", ">", "traverser", "<", "n", ">", "for", "graph", "(", "final", "successors", "function", "<", "n", ">", "graph", ")", "{", "return", "new", "traverser", "<", "n", ">", "(", "graph", ")", "{", "@", "override", "traversal", "<", "n", ">", "new", "traversal", "(", ")", "{", "return", "traversal", "in", "graph", "(", "graph", ")", ";", "}", "}", ";", "}" ]
[ "test", "that", "a", "bad", "request", "exception", "can", "be", "asynchronously", "thrown", "from", "a", "semaphore", "-", "isolated", "command", "and", "not", "count", "towards", "errors", "and", "bypasses", "fallback" ]
[ "public", "void", "test", "semaphore", "isolated", "bad", "request", "async", "exception", "observe", "(", ")", "{", "test", "bad", "request", "exception", "observe", "(", "execution", "isolation", "strategy", "semaphore", ",", "known", "hystrix", "bad", "request", "failure", "test", "command", "async", "exception", ")", ";", "}" ]
[ "{", "@", "inherit", "doc", "}" ]
[ "public", "void", "write", "to", "(", "dex", "file", "file", ",", "annotated", "output", "out", ")", "{", "int", "method", "idx", "=", "file", "get", "method", "ids", "(", ")", "index", "of", "(", "method", ")", ";", "int", "annotations", "off", "=", "annotations", "get", "absolute", "offset", "(", ")", ";", "if", "(", "out", "annotates", "(", ")", ")", "{", "out", "annotate", "(", "0", ",", "\"", "\"", "+", "method", "to", "human", "(", ")", ")", ";", "out", "annotate", "(", "4", ",", "\"", "method", "idx", ":", "\"", "+", "hex", "u", "4", "(", "method", "idx", ")", ")", ";", "out", "annotate", "(", "4", ",", "\"", "annotations", "off", ":", "\"", "+", "hex", "u", "4", "(", "annotations", "off", ")", ")", ";", "}", "out", "write", "int", "(", "method", "idx", ")", ";", "out", "write", "int", "(", "annotations", "off", ")", ";", "}" ]
[ "get", "the", "user", "that", "initiated", "this", "job" ]
[ "public", "authentication", "get", "user", "(", ")", "{", "return", "this", "authentication", ";", "}" ]
[ "if", "boolean", "is", "true", ",", "simplify", "cond", "in", "input", "branch", "and", "return", "new", "branch", "otherwise", ",", "simply", "return", "input", "branch" ]
[ "private", "case", "branch", "generate", "branch", "(", "boolean", "simplify", "cond", ",", "rex", "simplify", "simplifier", ",", "case", "branch", "branch", ")", "{", "if", "(", "simplify", "cond", ")", "{", "/", "/", "the", "previous", "branch", "was", "merged", ",", "time", "to", "simplify", "it", "and", "/", "/", "add", "it", "to", "the", "final", "result", "return", "new", "case", "branch", "(", "simplifier", "simplify", "(", "branch", "cond", ",", "rex", "unknown", "as", "false", ")", ",", "branch", "value", ")", ";", "}", "return", "branch", ";", "}" ]
[ "set", "the", "comments", "at", "the", "given", "address" ]
[ "private", "void", "set", "comments", "(", "code", "unit", "cu", ",", "address", "addr", ",", "code", "unit", "info", "info", ")", "{", "string", "[", "]", "plate", "comment", "=", "info", "get", "plate", "comment", "(", ")", ";", "string", "[", "]", "pre", "comment", "=", "info", "get", "pre", "comment", "(", ")", ";", "string", "[", "]", "post", "comment", "=", "info", "get", "post", "comment", "(", ")", ";", "string", "[", "]", "eol", "comment", "=", "info", "get", "e", "o", "l", "comment", "(", ")", ";", "string", "[", "]", "repeatable", "comment", "=", "info", "get", "repeatable", "comment", "(", ")", ";", "if", "(", "plate", "comment", "!", "=", "null", ")", "{", "string", "[", "]", "old", "comment", "=", "cu", "get", "comment", "as", "array", "(", "code", "unit", "plate", "comment", ")", ";", "cu", "set", "comment", "as", "array", "(", "code", "unit", "plate", "comment", ",", "append", "comment", "(", "old", "comment", ",", "plate", "comment", ")", ")", ";", "}", "if", "(", "pre", "comment", "!", "=", "null", ")", "{", "string", "[", "]", "old", "comment", "=", "cu", "get", "comment", "as", "array", "(", "code", "unit", "pre", "comment", ")", ";", "cu", "set", "comment", "as", "array", "(", "code", "unit", "pre", "comment", ",", "append", "comment", "(", "old", "comment", ",", "pre", "comment", ")", ")", ";", "}", "if", "(", "post", "comment", "!", "=", "null", ")", "{", "string", "[", "]", "old", "comment", "=", "cu", "get", "comment", "as", "array", "(", "code", "unit", "post", "comment", ")", ";", "cu", "set", "comment", "as", "array", "(", "code", "unit", "post", "comment", ",", "append", "comment", "(", "old", "comment", ",", "post", "comment", ")", ")", ";", "}", "if", "(", "eol", "comment", "!", "=", "null", ")", "{", "string", "[", "]", "old", "comment", "=", "cu", "get", "comment", "as", "array", "(", "code", "unit", "eol", "comment", ")", ";", "cu", "set", "comment", "as", "array", "(", "code", "unit", "eol", "comment", ",", "append", "comment", "(", "old", "comment", ",", "eol", "comment", ")", ")", ";", "}", "if", "(", "repeatable", "comment", "!", "=", "null", ")", "{", "string", "[", "]", "old", "comment", "=", "cu", "get", "comment", "as", "array", "(", "code", "unit", "repeatable", "comment", ")", ";", "cu", "set", "comment", "as", "array", "(", "code", "unit", "repeatable", "comment", ",", "append", "comment", "(", "old", "comment", ",", "repeatable", "comment", ")", ")", ";", "}", "}" ]
[ "use", "zip", "output", "stream", "to", "zip", "text", "to", "byte", "array", ",", "then", "convert", "byte", "array", "to", "base", "6", "4", "string", ",", "so", "it", "can", "be", "transferred", "via", "http", "request" ]
[ "public", "static", "string", "compress", "(", "final", "string", "src", "txt", ")", "{", "try", "(", "val", "rst", "bao", "=", "new", "byte", "array", "output", "stream", "(", ")", ";", "val", "zos", "=", "new", "g", "z", "i", "p", "output", "stream", "(", "rst", "bao", ")", ")", "{", "zos", "write", "(", "src", "txt", "get", "bytes", "(", "standard", "charsets", "utf", "8", ")", ")", ";", "zos", "flush", "(", ")", ";", "zos", "finish", "(", ")", ";", "val", "bytes", "=", "rst", "bao", "to", "byte", "array", "(", ")", ";", "val", "base", "6", "4", "=", "string", "utils", "remove", "(", "encoding", "utils", "encode", "base", "6", "4", "(", "bytes", ")", ",", "'", "\\", "0", "'", ")", ";", "return", "new", "string", "(", "standard", "charsets", "utf", "8", "encode", "(", "base", "6", "4", ")", "array", "(", ")", ",", "standard", "charsets", "utf", "8", ")", ";", "}", "}" ]
[ "called", "by", "the", "{", "@", "link", "transport", "}", "implementation", "when", "a", "response", "or", "an", "exception", "has", "been", "received", "for", "a", "previously", "sent", "request", "(", "before", "any", "processing", "or", "deserialization", "was", "done", ")", "returns", "the", "appropriate", "response", "handler", "or", "null", "if", "not", "found" ]
[ "public", "transport", "response", "handler", "<", "?", "extends", "transport", "response", ">", "on", "response", "received", "(", "final", "long", "request", "id", ",", "final", "transport", "message", "listener", "listener", ")", "{", "response", "context", "<", "?", "extends", "transport", "response", ">", "context", "=", "handlers", "remove", "(", "request", "id", ")", ";", "listener", "on", "response", "received", "(", "request", "id", ",", "context", ")", ";", "if", "(", "context", "=", "=", "null", ")", "{", "return", "null", ";", "}", "else", "{", "return", "context", "handler", "(", ")", ";", "}", "}" ]
[ "is", "a", "revoke", "token", "request", "?" ]
[ "protected", "boolean", "is", "revoke", "token", "request", "(", "final", "http", "servlet", "request", "request", ",", "final", "http", "servlet", "response", "response", ")", "{", "val", "request", "path", "=", "request", "get", "request", "u", "r", "i", "(", ")", ";", "return", "does", "uri", "match", "pattern", "(", "request", "path", ",", "o", "auth", "2", "0", "constants", "revocation", "url", ")", ";", "}" ]
[ "returns", "an", "iterator", "over", "all", "values", "that", "belong", "to", "the", "current", "key", "the", "iterator", "is", "initially", "<", "code", ">", "null", "<", "code", ">", "(", "before", "the", "first", "call", "to", "{", "@", "link", "#", "next", "key", "(", ")", "}", "and", "after", "all", "keys", "are", "consumed", "in", "general", ",", "this", "method", "returns", "always", "a", "non", "-", "null", "value", ",", "if", "a", "previous", "call", "to", "{", "@", "link", "#", "next", "key", "(", ")", "}", "return", "<", "code", ">", "true", "<", "code", ">" ]
[ "public", "values", "iterator", "get", "values", "(", ")", "{", "return", "this", "values", "iterator", ";", "}" ]
[ "get", "user", "{", "username", "}", ":", "get", "user", "by", "user", "name" ]
[ "response", "entity", "<", "user", ">", "get", "user", "by", "name", "(", "@", "api", "param", "(", "value", "=", "\"", "the", "name", "that", "needs", "to", "be", "fetched", "use", "user", "1", "for", "testing", "\"", ",", "required", "=", "true", ")", "@", "path", "variable", "(", "\"", "username", "\"", ")", "string", "username", ")", ";" ]
[ "get", "j", "s", "o", "n", "object", "value" ]
[ "public", "j", "s", "o", "n", "object", "get", "object", "(", "string", "key", ")", "{", "object", "tmp", "=", "m", "map", "get", "(", "key", ")", ";", "return", "tmp", "=", "=", "null", "?", "null", ":", "tmp", "instanceof", "j", "s", "o", "n", "object", "?", "(", "j", "s", "o", "n", "object", ")", "tmp", ":", "null", ";", "}" ]
[ "tst", "storage", "name" ]
[ "default", "function", "<", "cas", "configuration", "properties", ",", "string", ">", "get", "transient", "session", "storage", "name", "(", ")", "{", "return", "p", "-", ">", "\"", "transient", "session", "tickets", "cache", "\"", ";", "}" ]
[ "emits", "pcode", "for", "the", "multianewarray", "op", ",", "which", "is", "used", "to", "create", "new", "multi", "-", "dimensional", "arrays", "it", "is", "modeled", "with", "two", "black", "-", "box", "pcode", "ops", ":", "multianewarray", "op", "and", "multianewarray", "process", "additional", "dimensions", "op", "the", "second", "op", "is", "need", "because", "pcode", "operations", "are", "limited", "to", "8", "input", "parameters", ",", "whereas", "multianewarray", "takes", "between", "1", "and", "256", "parameters", "the", "first", "argument", "to", "multianewarray", "op", "is", "a", "reference", "to", "the", "class", "of", "the", "new", "array", "the", "remaining", "seven", "arguments", "are", "array", "dimensions", "additional", "array", "dimensions", "are", "consumed", "from", "the", "stack", "with", "calls", "to", "multianewarray", "process", "additional", "dimensions", "op", ",", "which", "takes", "a", "reference", "returned", "by", "multianewarray", "op", "as", "its", "first", "argument", "and", "a", "dimension", "as", "its", "second", "argument" ]
[ "public", "static", "void", "get", "pcode", "for", "multi", "a", "new", "array", "(", "pcode", "op", "emitter", "p", "code", ",", "int", "constant", "pool", "index", ",", "abstract", "constant", "pool", "info", "java", "[", "]", "constant", "pool", ",", "int", "dimensions", ")", "{", "/", "/", "pop", "all", "of", "the", "dimensions", "off", "the", "stack", "for", "(", "int", "i", "=", "dimensions", ";", "i", ">", "=", "1", ";", "-", "-", "i", ")", "{", "string", "i", "as", "string", "=", "integer", "to", "string", "(", "i", ")", ";", "p", "code", "emit", "pop", "cat", "1", "value", "(", "dimension", "+", "i", "as", "string", ")", ";", "}", "p", "code", "emit", "assign", "varnode", "from", "pcode", "op", "call", "(", "class", "name", ",", "4", ",", "constant", "pool", "java", "cpool", "op", ",", "\"", "0", "\"", ",", "integer", "to", "string", "(", "constant", "pool", "index", ")", ",", "constant", "pool", "java", "cpool", "multianewarray", ")", ";", "/", "/", "emit", "the", "call", "to", "multianewarray", "op", "string", "[", "]", "multianewarray", "op", "args", "=", "null", ";", "/", "/", "if", "clause", ":", "more", "dimension", "arguments", "than", "will", "fit", "in", "a", "call", "to", "multianewarray", "op", "/", "/", "-", "1", "since", "the", "first", "argument", "will", "be", "a", "reference", "to", "the", "class", "name", "if", "(", "dimensions", ">", "(", "max", "pcode", "op", "args", "-", "1", ")", ")", "{", "multianewarray", "op", "args", "=", "new", "string", "[", "max", "pcode", "op", "args", "]", ";", "multianewarray", "op", "args", "[", "0", "]", "=", "class", "name", ";", "for", "(", "int", "i", "=", "1", ";", "i", "<", "max", "pcode", "op", "args", ";", "+", "+", "i", ")", "{", "multianewarray", "op", "args", "[", "i", "]", "=", "dimension", "+", "integer", "to", "string", "(", "i", ")", ";", "}", "}", "else", "{", "/", "/", "+", "1", "for", "the", "class", "reference", "multianewarray", "op", "args", "=", "new", "string", "[", "dimensions", "+", "1", "]", ";", "multianewarray", "op", "args", "[", "0", "]", "=", "class", "name", ";", "for", "(", "int", "i", "=", "1", ";", "i", "<", "dimensions", "+", "1", ";", "+", "+", "i", ")", "{", "multianewarray", "op", "args", "[", "i", "]", "=", "dimension", "+", "integer", "to", "string", "(", "i", ")", ";", "}", "}", "p", "code", "emit", "assign", "varnode", "from", "pcode", "op", "call", "(", "array", "ref", ",", "4", ",", "multianewarray", ",", "class", "name", ",", "\"", "dim", "1", "\"", ",", "\"", "dim", "2", "\"", ")", ";", "/", "/", "consume", "any", "additional", "arguments", "for", "(", "int", "i", "=", "max", "pcode", "op", "args", ";", "i", "<", "=", "dimensions", ";", "+", "+", "i", ")", "{", "string", "[", "]", "args", "=", "{", "array", "ref", ",", "dimension", "+", "integer", "to", "string", "(", "i", ")", "}", ";", "p", "code", "emit", "void", "pcode", "op", "call", "(", "process", "additional", "dimensions", ",", "args", ")", ";", "}", "p", "code", "emit", "push", "cat", "1", "value", "(", "array", "ref", ")", ";", "}" ]
[ "used", "for", "autodetection", "of", "beans", "checks", "to", "see", "if", "the", "bean", "'", "s", "class", "has", "a", "{", "@", "code", "managed", "resource", "}", "attribute", "if", "so", "it", "will", "add", "it", "list", "of", "included", "beans" ]
[ "public", "boolean", "include", "bean", "(", "class", "<", "?", ">", "bean", "class", ",", "string", "bean", "name", ")", "{", "return", "(", "obtain", "attribute", "source", "(", ")", "get", "managed", "resource", "(", "get", "class", "to", "expose", "(", "bean", "class", ")", ")", "!", "=", "null", ")", ";", "}" ]
[ "working", "with", "arrays", "requires", "defensive", "code", "verify", "that", "we", "clone", "the", "type", "array", "for", "both", "input", "and", "output" ]
[ "public", "void", "test", "new", "parameterized", "type", "immutability", "(", ")", "{", "type", "[", "]", "types", "in", "=", "{", "string", "class", ",", "integer", "class", "}", ";", "parameterized", "type", "parameterized", "type", "=", "types", "new", "parameterized", "type", "(", "map", "class", ",", "types", "in", ")", ";", "types", "in", "[", "0", "]", "=", "null", ";", "types", "in", "[", "1", "]", "=", "null", ";", "type", "[", "]", "types", "out", "=", "parameterized", "type", "get", "actual", "type", "arguments", "(", ")", ";", "types", "out", "[", "0", "]", "=", "null", ";", "types", "out", "[", "1", "]", "=", "null", ";", "assert", "equals", "(", "string", "class", ",", "parameterized", "type", "get", "actual", "type", "arguments", "(", ")", "[", "0", "]", ")", ";", "assert", "equals", "(", "integer", "class", ",", "parameterized", "type", "get", "actual", "type", "arguments", "(", ")", "[", "1", "]", ")", ";", "}" ]
[ "set", "to", "true", "if", "the", "request", "should", "be", "validated", "without", "altering", "the", "configs" ]
[ "public", "alter", "configs", "options", "validate", "only", "(", "boolean", "validate", "only", ")", "{", "this", "validate", "only", "=", "validate", "only", ";", "return", "this", ";", "}" ]
[ "test", "that", "when", "rpc", "cancellation", "propagates", "up", "a", "call", "chain", ",", "the", "cancellation", "of", "the", "parent", "rpc", "triggers", "cancellation", "of", "all", "of", "its", "children" ]
[ "public", "void", "test", "cascading", "cancellation", "via", "leaf", "failure", "(", ")", "throws", "exception", "{", "/", "/", "all", "nodes", "(", "15", ")", "except", "one", "edge", "of", "the", "tree", "(", "4", ")", "will", "be", "cancelled", "observed", "cancellations", "=", "new", "count", "down", "latch", "(", "11", ")", ";", "received", "cancellations", "=", "new", "count", "down", "latch", "(", "11", ")", ";", "start", "call", "tree", "server", "(", "3", ")", ";", "try", "{", "/", "/", "use", "response", "size", "limit", "to", "control", "tree", "node", "count", "blocking", "stub", "unary", "call", "(", "messages", "simple", "request", "new", "builder", "(", ")", "set", "response", "size", "(", "3", ")", "build", "(", ")", ")", ";", "fail", "(", "\"", "expected", "abort", "\"", ")", ";", "}", "catch", "(", "status", "runtime", "exception", "sre", ")", "{", "/", "/", "wait", "for", "the", "workers", "to", "finish", "status", "status", "=", "sre", "get", "status", "(", ")", ";", "/", "/", "outermost", "caller", "observes", "aborted", "propagating", "up", "from", "the", "failing", "leaf", ",", "/", "/", "the", "descendant", "r", "p", "cs", "are", "cancelled", "so", "they", "receive", "cancelled", "assert", "equals", "(", "status", "code", "aborted", ",", "status", "get", "code", "(", ")", ")", ";", "if", "(", "!", "observed", "cancellations", "await", "(", "5", ",", "time", "unit", "seconds", ")", ")", "{", "fail", "(", "\"", "expected", "number", "of", "cancellations", "not", "observed", "by", "clients", "\"", ")", ";", "}", "if", "(", "!", "received", "cancellations", "await", "(", "5", ",", "time", "unit", "seconds", ")", ")", "{", "fail", "(", "\"", "expected", "number", "of", "cancellations", "to", "be", "received", "by", "servers", "not", "observed", "\"", ")", ";", "}", "}", "}" ]
[ "returns", "the", "password", "used", "to", "connect", "to", "the", "proxy", "{", "@", "code", "null", "}", "if", "there", "is", "no", "password" ]
[ "public", "string", "get", "password", "(", ")", "{", "return", "password", ";", "}" ]
[ "provides", "the", "cluster", "state", "and", "health", "information", "about", "the", "connectors", "and", "tasks" ]
[ "connect", "cluster", "state", "cluster", "state", "(", ")", ";" ]
[ "sets", "view", "tags", "on", "this", "host" ]
[ "public", "void", "set", "view", "tags", "(", "sparse", "array", "<", "object", ">", "view", "tags", ")", "{", "m", "view", "tags", "=", "view", "tags", ";", "}" ]
[ "the", "timestamp", "of", "when", "this", "retention", "lease", "was", "created", "or", "renewed" ]
[ "public", "long", "timestamp", "(", ")", "{", "return", "timestamp", ";", "}" ]
[ "returns", "{", "@", "code", "true", "}", "if", "the", "given", "time", "is", "the", "cleanup", "time", "for", "the", "given", "window" ]
[ "protected", "final", "boolean", "is", "cleanup", "time", "(", "w", "window", ",", "long", "time", ")", "{", "return", "time", "=", "=", "cleanup", "time", "(", "window", ")", ";", "}" ]
[ "creates", "and", "configures", "a", "{", "@", "link", "table", "source", "}", "using", "the", "given", "properties" ]
[ "default", "table", "source", "<", "t", ">", "create", "table", "source", "(", "map", "<", "string", ",", "string", ">", "properties", ")", "{", "return", "null", ";", "}" ]
[ "return", "number", "of", "worker", "threads" ]
[ "public", "long", "get", "thread", "count", "(", ")", "{", "return", "thread", "cnt", "get", "(", ")", ";", "}" ]
[ "returns", "the", "number", "of", "items", "in", "this", "history", "list" ]
[ "public", "int", "size", "(", ")", "{", "return", "history", "stack", "size", "(", ")", ";", "}" ]
[ "check", "if", "a", "group", "exists", ",", "that", "is", "there", "exists", "a", "job", "that", "is", "a", "member", "of", "the", "group", "if", "there", "are", "one", "or", "more", "jobs", "that", "define", "the", "group", "then", "the", "listener", "responds", "with", "true", "else", "false" ]
[ "public", "void", "group", "exists", "(", "string", "group", "id", ",", "action", "listener", "<", "boolean", ">", "listener", ")", "{", "bool", "query", "builder", "bool", "query", "builder", "=", "new", "bool", "query", "builder", "(", ")", ";", "bool", "query", "builder", "filter", "(", "new", "term", "query", "builder", "(", "job", "job", "type", "get", "preferred", "name", "(", ")", ",", "job", "anomaly", "detector", "job", "type", ")", ")", ";", "bool", "query", "builder", "filter", "(", "new", "term", "query", "builder", "(", "job", "groups", "get", "preferred", "name", "(", ")", ",", "group", "id", ")", ")", ";", "search", "source", "builder", "source", "builder", "=", "new", "search", "source", "builder", "(", ")", "query", "(", "bool", "query", "builder", ")", ";", "source", "builder", "fetch", "source", "(", "false", ")", ";", "search", "request", "search", "request", "=", "client", "prepare", "search", "(", "ml", "config", "index", "index", "name", "(", ")", ")", "set", "size", "(", "0", ")", "set", "indices", "options", "(", "indices", "options", "lenient", "expand", "open", "(", ")", ")", "set", "source", "(", "source", "builder", ")", "request", "(", ")", ";", "execute", "async", "with", "origin", "(", "client", "thread", "pool", "(", ")", "get", "thread", "context", "(", ")", ",", "ml", "origin", ",", "search", "request", ",", "action", "listener", "<", "search", "response", ">", "wrap", "(", "response", "-", ">", "{", "listener", "on", "response", "(", "response", "get", "hits", "(", ")", "get", "total", "hits", "(", ")", "value", ">", "0", ")", ";", "}", ",", "listener", ":", ":", "on", "failure", ")", ",", "client", ":", ":", "search", ")", ";", "}" ]
[ "get", "aggregated", "quota", "usage", "for", "the", "federation", "path" ]
[ "public", "quota", "usage", "get", "quota", "usage", "(", "string", "path", ")", "throws", "i", "o", "exception", "{", "return", "aggregate", "quota", "(", "path", ",", "get", "each", "quota", "usage", "(", "path", ")", ")", ";", "}" ]
[ "causes", "the", "delay", "to", "be", "complete" ]
[ "public", "void", "finish", "(", ")", "{", "time", "=", "duration", ";", "}" ]
[ "creates", "a", "{", "@", "link", "private", "key", "}", "from", "the", "contents", "of", "{", "@", "code", "b", "reader", "}", "that", "contains", "an", "encrypted", "private", "key", "encoded", "in", "pkcs", "#", "8" ]
[ "private", "static", "private", "key", "parse", "p", "k", "c", "s", "8", "encrypted", "(", "buffered", "reader", "b", "reader", ",", "char", "[", "]", "key", "password", ")", "throws", "i", "o", "exception", ",", "general", "security", "exception", "{", "string", "builder", "sb", "=", "new", "string", "builder", "(", ")", ";", "string", "line", "=", "b", "reader", "read", "line", "(", ")", ";", "while", "(", "line", "!", "=", "null", ")", "{", "if", "(", "pkcs8", "encrypted", "footer", "equals", "(", "line", "trim", "(", ")", ")", ")", "{", "break", ";", "}", "sb", "append", "(", "line", "trim", "(", ")", ")", ";", "line", "=", "b", "reader", "read", "line", "(", ")", ";", "}", "if", "(", "null", "=", "=", "line", "|", "|", "pkcs8", "encrypted", "footer", "equals", "(", "line", "trim", "(", ")", ")", "=", "=", "false", ")", "{", "throw", "new", "i", "o", "exception", "(", "\"", "malformed", "pem", "file", ",", "pem", "footer", "is", "invalid", "or", "missing", "\"", ")", ";", "}", "byte", "[", "]", "key", "bytes", "=", "base", "6", "4", "get", "decoder", "(", ")", "decode", "(", "sb", "to", "string", "(", ")", ")", ";", "encrypted", "private", "key", "info", "encrypted", "private", "key", "info", "=", "new", "encrypted", "private", "key", "info", "(", "key", "bytes", ")", ";", "secret", "key", "factory", "secret", "key", "factory", "=", "secret", "key", "factory", "get", "instance", "(", "encrypted", "private", "key", "info", "get", "alg", "name", "(", ")", ")", ";", "secret", "key", "secret", "key", "=", "secret", "key", "factory", "generate", "secret", "(", "new", "p", "b", "e", "key", "spec", "(", "key", "password", ")", ")", ";", "cipher", "cipher", "=", "cipher", "get", "instance", "(", "encrypted", "private", "key", "info", "get", "alg", "name", "(", ")", ")", ";", "cipher", "init", "(", "cipher", "decrypt", "mode", ",", "secret", "key", ",", "encrypted", "private", "key", "info", "get", "alg", "parameters", "(", ")", ")", ";", "p", "k", "c", "s", "8", "encoded", "key", "spec", "key", "spec", "=", "encrypted", "private", "key", "info", "get", "key", "spec", "(", "cipher", ")", ";", "string", "key", "algo", "=", "get", "key", "algorithm", "identifier", "(", "key", "spec", "get", "encoded", "(", ")", ")", ";", "key", "factory", "key", "factory", "=", "key", "factory", "get", "instance", "(", "key", "algo", ")", ";", "return", "key", "factory", "generate", "private", "(", "key", "spec", ")", ";", "}" ]