docstring_tokens
list
code_tokens
list
[ "<", "code", ">", "repeated", "aapt", "pb", "styled", "string", "span", "span", "=", "2", ";", "<", "code", ">" ]
[ "public", "builder", "set", "span", "(", "int", "index", ",", "com", "android", "aapt", "resources", "styled", "string", "span", "builder", "builder", "for", "value", ")", "{", "copy", "on", "write", "(", ")", ";", "instance", "set", "span", "(", "index", ",", "builder", "for", "value", ")", ";", "return", "this", ";", "}" ]
[ "returns", "a", "set", "of", "object", "names", "that", "won", "'", "t", "trigger", "any", "exception", "(", "uncluding", "their", "children", ")", "when", "testing", "that", "unknown", "objects", "cause", "parse", "exceptions", "through", "{", "@", "link", "#", "test", "unknown", "object", "exception", "(", ")", "}", "default", "is", "an", "empty", "set", "can", "be", "overridden", "by", "subclasses", "that", "test", "queries", "which", "contain", "objects", "that", "get", "parsed", "on", "the", "data", "nodes", "(", "e", "g", "score", "functions", ")", "or", "objects", "that", "can", "contain", "arbitrary", "content", "(", "e", "g", "documents", "for", "percolate", "or", "more", "like", "this", "query", ",", "params", "for", "scripts", ")", "in", "such", "cases", "no", "exception", "would", "get", "thrown" ]
[ "protected", "set", "<", "string", ">", "get", "objects", "holding", "arbitrary", "content", "(", ")", "{", "return", "collections", "empty", "set", "(", ")", ";", "}" ]
[ "the", "series", "of", "types", "defined", "by", "the", "package", "<", "code", ">", "repeated", "aapt", "pb", "type", "type", "=", "3", ";", "<", "code", ">" ]
[ "private", "void", "add", "type", "(", "com", "android", "aapt", "resources", "type", "builder", "builder", "for", "value", ")", "{", "ensure", "type", "is", "mutable", "(", ")", ";", "type", "add", "(", "builder", "for", "value", "build", "(", ")", ")", ";", "}" ]
[ "given", "a", "metric", "set", ",", "registers", "them", "with", "the", "given", "prefix", "prepended", "to", "their", "names" ]
[ "public", "void", "register", "all", "(", "string", "prefix", ",", "metric", "set", "metrics", ")", "throws", "illegal", "argument", "exception", "{", "for", "(", "map", "entry", "<", "string", ",", "metric", ">", "entry", ":", "metrics", "get", "metrics", "(", ")", "entry", "set", "(", ")", ")", "{", "if", "(", "entry", "get", "value", "(", ")", "instanceof", "metric", "set", ")", "{", "register", "all", "(", "name", "(", "prefix", ",", "entry", "get", "key", "(", ")", ")", ",", "(", "metric", "set", ")", "entry", "get", "value", "(", ")", ")", ";", "}", "else", "{", "register", "(", "name", "(", "prefix", ",", "entry", "get", "key", "(", ")", ")", ",", "entry", "get", "value", "(", ")", ")", ";", "}", "}", "}" ]
[ "test", "for", "connector", "provider", "idempotency" ]
[ "public", "void", "test", "filter", "on", "a", "web", "target", "(", ")", "{", "http", "server", "create", "context", "(", "\"", "/", "test", "\"", ",", "http", "exchange", "-", ">", "{", "try", "{", "http", "exchange", "get", "response", "headers", "(", ")", "add", "(", "http", "headers", "content", "type", ",", "text", "plain", ")", ";", "http", "exchange", "send", "response", "headers", "(", "200", ",", "0", ")", ";", "http", "exchange", "get", "response", "body", "(", ")", "write", "(", "\"", "hello", "world", "!", "\"", "get", "bytes", "(", "standard", "charsets", "utf", "8", ")", ")", ";", "}", "finally", "{", "http", "exchange", "close", "(", ")", ";", "}", "}", ")", ";", "http", "server", "start", "(", ")", ";", "executor", "service", "executor", "=", "executors", "new", "single", "thread", "executor", "(", ")", ";", "client", "jersey", "=", "new", "jersey", "client", "builder", "(", "new", "metric", "registry", "(", ")", ")", "using", "(", "executor", ",", "json", "mapper", ")", "build", "(", "\"", "test", "-", "jersey", "-", "client", "\"", ")", ";", "string", "uri", "=", "\"", "http", ":", "/", "/", "127", "0", "0", "1", ":", "\"", "+", "http", "server", "get", "address", "(", ")", "get", "port", "(", ")", "+", "\"", "/", "test", "\"", ";", "web", "target", "target", "=", "jersey", "target", "(", "uri", ")", ";", "target", "register", "(", "new", "logging", "feature", "(", ")", ")", ";", "string", "first", "response", "=", "target", "request", "(", ")", "build", "get", "(", ")", "invoke", "(", ")", "read", "entity", "(", "string", "class", ")", ";", "assert", "that", "(", "first", "response", ")", "is", "equal", "to", "(", "\"", "hello", "world", "!", "\"", ")", ";", "string", "second", "response", "=", "jersey", "target", "(", "uri", ")", "request", "(", ")", "build", "get", "(", ")", "invoke", "(", ")", "read", "entity", "(", "string", "class", ")", ";", "assert", "that", "(", "second", "response", ")", "is", "equal", "to", "(", "\"", "hello", "world", "!", "\"", ")", ";", "executor", "shutdown", "(", ")", ";", "jersey", "close", "(", ")", ";", "}" ]
[ "deserializes", "the", "section", "map", "for", "these", "public", "symbols" ]
[ "private", "void", "deserialize", "section", "map", "(", "pdb", "byte", "reader", "reader", ",", "task", "monitor", "monitor", ")", "throws", "pdb", "exception", ",", "cancelled", "exception", "{", "while", "(", "reader", "has", "more", "(", ")", ")", "{", "monitor", "check", "canceled", "(", ")", ";", "int", "offset", "=", "reader", "parse", "int", "(", ")", ";", "int", "section", "=", "reader", "parse", "unsigned", "short", "val", "(", ")", ";", "reader", "skip", "(", "2", ")", ";", "/", "/", "padding", "absolute", "offsets", "by", "section", "number", "put", "(", "section", ",", "offset", ")", ";", "}", "}" ]
[ "convert", "the", "given", "object", "to", "string", "with", "each", "line", "indented", "by", "4", "spaces", "(", "except", "the", "first", "line", ")" ]
[ "private", "string", "to", "indented", "string", "(", "object", "o", ")", "{", "if", "(", "o", "=", "=", "null", ")", "{", "return", "\"", "null", "\"", ";", "}", "return", "o", "to", "string", "(", ")", "replace", "(", "\"", "\\", "n", "\"", ",", "\"", "\\", "n", "\"", ")", ";", "}" ]
[ "increment", "the", "bytes", "read", "counter", "if", "there", "is", "a", "stats", "instance", "and", "the", "number", "of", "bytes", "read", "is", "more", "than", "zero" ]
[ "private", "void", "increment", "bytes", "read", "(", "long", "bytes", "read", ")", "{", "stream", "statistics", "bytes", "read", "(", "bytes", "read", ")", ";", "if", "(", "context", "stats", "!", "=", "null", "&", "&", "bytes", "read", ">", "0", ")", "{", "context", "stats", "increment", "bytes", "read", "(", "bytes", "read", ")", ";", "}", "}" ]
[ "set", "the", "class", "loader", "that", "will", "be", "used", "to", "load", "the", "various", "objects" ]
[ "public", "void", "set", "class", "loader", "(", "class", "loader", "class", "loader", ")", "{", "this", "class", "loader", "=", "class", "loader", ";", "}" ]
[ "convert", "the", "given", "object", "to", "string", "with", "each", "line", "indented", "by", "4", "spaces", "(", "except", "the", "first", "line", ")" ]
[ "private", "string", "to", "indented", "string", "(", "object", "o", ")", "{", "if", "(", "o", "=", "=", "null", ")", "{", "return", "\"", "null", "\"", ";", "}", "return", "o", "to", "string", "(", ")", "replace", "(", "\"", "\\", "n", "\"", ",", "\"", "\\", "n", "\"", ")", ";", "}" ]
[ "returns", "the", "target", "location", "string", ",", "optionally", "relative", "to", "its", "package", "'", "s", "source", "root", "directory" ]
[ "static", "string", "get", "location", "(", "target", "target", ",", "boolean", "relative", ")", "{", "location", "loc", "=", "target", "get", "location", "(", ")", ";", "if", "(", "relative", ")", "{", "loc", "=", "get", "root", "relative", "location", "(", "loc", ",", "target", "get", "package", "(", ")", ")", ";", "}", "return", "loc", "to", "string", "(", ")", ";", "}" ]
[ "equivalent", "to", "calling", "{", "@", "link", "#", "get", "(", "string", ")", "}", "and", "casting", "the", "result", "to", "a", "boolean" ]
[ "public", "boolean", "get", "boolean", "(", "string", "field", "name", ")", "{", "return", "(", "boolean", ")", "get", "check", "type", "(", "field", "name", ",", "schema", "type", "boolean", ")", ";", "}" ]
[ "convenience", "method", "to", "set", "this", "bt", "indexed", "mesh", "to", "the", "specified", "{", "@", "link", "mesh", "}", "the", "specified", "mesh", "must", "be", "indexed", "and", "triangulated", "and", "must", "outlive", "this", "bt", "indexed", "mesh", "the", "buffers", "for", "the", "vertices", "and", "indices", "are", "shared", "amonst", "both" ]
[ "public", "void", "set", "(", "final", "mesh", "mesh", ",", "int", "offset", ",", "int", "count", ")", "{", "set", "(", "null", ",", "mesh", ",", "offset", ",", "count", ")", ";", "}" ]
[ "send", "a", "specified", "signal", "to", "the", "process", ",", "if", "it", "is", "alive" ]
[ "private", "static", "void", "maybe", "signal", "process", "(", "string", "pid", ",", "int", "signal", "num", ",", "string", "signal", "name", ",", "boolean", "always", "signal", ")", "{", "/", "/", "if", "process", "tree", "is", "not", "alive", "then", "don", "'", "t", "signal", ",", "unless", "always", "signal", "/", "/", "forces", "it", "so", "if", "(", "always", "signal", "|", "|", "process", "tree", "is", "alive", "(", "pid", ")", ")", "{", "send", "signal", "(", "pid", ",", "signal", "num", ",", "signal", "name", ")", ";", "}", "}" ]
[ "tests", "that", "when", "taking", "a", "checkpoint", "when", "the", "fetcher", "is", "not", "running", "yet", ",", "the", "checkpoint", "correctly", "contains", "the", "restored", "state", "instead" ]
[ "public", "void", "check", "restored", "checkpoint", "when", "fetcher", "not", "ready", "(", ")", "throws", "exception", "{", "@", "suppress", "warnings", "(", "\"", "unchecked", "\"", ")", "final", "flink", "kafka", "consumer", "base", "<", "string", ">", "consumer", "=", "new", "dummy", "flink", "kafka", "consumer", "<", ">", "(", ")", ";", "final", "testing", "list", "state", "<", "tuple", "2", "<", "kafka", "topic", "partition", ",", "long", ">", ">", "restored", "list", "state", "=", "new", "testing", "list", "state", "<", ">", "(", ")", ";", "setup", "consumer", "(", "consumer", ",", "true", ",", "restored", "list", "state", ",", "true", ",", "0", ",", "1", ")", ";", "/", "/", "snapshot", "before", "the", "fetcher", "starts", "running", "consumer", "snapshot", "state", "(", "new", "state", "snapshot", "context", "synchronous", "impl", "(", "17", ",", "17", ")", ")", ";", "/", "/", "ensure", "that", "the", "list", "was", "cleared", "and", "refilled", "while", "this", "is", "an", "implementation", "detail", ",", "we", "/", "/", "use", "it", "here", "/", "/", "to", "figure", "out", "that", "snapshot", "state", "(", ")", "actually", "did", "something", "assert", "assert", "true", "(", "restored", "list", "state", "is", "clear", "called", "(", ")", ")", ";", "set", "<", "serializable", ">", "expected", "=", "new", "hash", "set", "<", ">", "(", ")", ";", "for", "(", "serializable", "serializable", ":", "restored", "list", "state", "get", "(", ")", ")", "{", "expected", "add", "(", "serializable", ")", ";", "}", "int", "counter", "=", "0", ";", "for", "(", "serializable", "serializable", ":", "restored", "list", "state", "get", "(", ")", ")", "{", "assert", "true", "(", "expected", "contains", "(", "serializable", ")", ")", ";", "counter", "+", "+", ";", "}", "assert", "equals", "(", "expected", "size", "(", ")", ",", "counter", ")", ";", "}" ]
[ "new", "password", "policy", "handling", "strategy" ]
[ "public", "static", "authentication", "password", "policy", "handling", "strategy", "new", "password", "policy", "handling", "strategy", "(", "final", "password", "policy", "properties", "properties", ",", "final", "application", "context", "application", "context", ")", "{", "if", "(", "properties", "get", "strategy", "(", ")", "=", "=", "password", "policy", "properties", "password", "policy", "handling", "options", "reject", "result", "code", ")", "{", "logger", "debug", "(", "\"", "created", "password", "policy", "handling", "strategy", "based", "on", "blocked", "authentication", "result", "codes", "\"", ")", ";", "return", "new", "reject", "result", "code", "password", "policy", "handling", "strategy", "<", ">", "(", ")", ";", "}", "val", "location", "=", "properties", "get", "groovy", "(", ")", "get", "location", "(", ")", ";", "if", "(", "properties", "get", "strategy", "(", ")", "=", "=", "password", "policy", "properties", "password", "policy", "handling", "options", "groovy", "&", "&", "location", "!", "=", "null", ")", "{", "logger", "debug", "(", "\"", "created", "password", "policy", "handling", "strategy", "based", "on", "groovy", "script", "[", "{", "}", "]", "\"", ",", "location", ")", ";", "return", "new", "groovy", "password", "policy", "handling", "strategy", "<", ">", "(", "location", ",", "application", "context", ")", ";", "}", "logger", "trace", "(", "\"", "created", "default", "password", "policy", "handling", "strategy", "\"", ")", ";", "return", "new", "default", "password", "policy", "handling", "strategy", "<", ">", "(", ")", ";", "}" ]
[ "checks", "whether", "one", "scope", "is", "contained", "in", "the", "other", "scope" ]
[ "protected", "static", "boolean", "is", "child", "scope", "(", "final", "string", "parent", "scope", ",", "final", "string", "child", "scope", ")", "{", "string", "p", "scope", "=", "parent", "scope", "ends", "with", "(", "node", "base", "path", "separator", "str", ")", "?", "parent", "scope", ":", "parent", "scope", "+", "node", "base", "path", "separator", "str", ";", "string", "c", "scope", "=", "child", "scope", "ends", "with", "(", "node", "base", "path", "separator", "str", ")", "?", "child", "scope", ":", "child", "scope", "+", "node", "base", "path", "separator", "str", ";", "return", "p", "scope", "starts", "with", "(", "c", "scope", ")", ";", "}" ]
[ "gets", "standalone", "profile", "configuration", "file" ]
[ "public", "file", "get", "standalone", "profile", "configuration", "file", "(", ")", "{", "val", "values", "=", "new", "linked", "hash", "set", "<", ">", "(", "relaxed", "property", "names", "for", "camel", "case", "(", "property", "cas", "standalone", "configuration", "file", ")", "get", "values", "(", ")", ")", ";", "values", "add", "(", "property", "cas", "standalone", "configuration", "file", ")", ";", "return", "values", "stream", "(", ")", "map", "(", "key", "-", ">", "environment", "get", "property", "(", "key", ",", "file", "class", ")", ")", "filter", "(", "objects", ":", ":", "non", "null", ")", "find", "first", "(", ")", "or", "else", "(", "null", ")", ";", "}" ]
[ "iterate", "over", "all", "primary", "keys", "in", "ascending", "sorted", "order" ]
[ "public", "d", "b", "field", "iterator", "field", "key", "iterator", "(", ")", "throws", "i", "o", "exception", "{", "synchronized", "(", "db", ")", "{", "if", "(", "schema", "use", "long", "key", "nodes", "(", ")", ")", "{", "throw", "new", "assert", "exception", "(", ")", ";", "}", "return", "new", "field", "key", "iterator", "(", "null", ",", "null", ",", "null", ")", ";", "}", "}" ]
[ "marks", "the", "present", "position", "in", "the", "stream", "subsequent", "calls", "to", "reset", "(", ")", "will", "attempt", "to", "reposition", "the", "stream", "to", "this", "point" ]
[ "public", "void", "mark", "(", "int", "read", "ahead", "limit", ")", "throws", "i", "o", "exception", "{", "if", "(", "read", "ahead", "limit", "<", "0", ")", "{", "throw", "new", "illegal", "argument", "exception", "(", "\"", "read", "-", "ahead", "limit", "<", "0", "\"", ")", ";", "}", "synchronized", "(", "lock", ")", "{", "ensure", "open", "(", ")", ";", "this", "read", "ahead", "limit", "=", "read", "ahead", "limit", ";", "marked", "char", "=", "next", "char", ";", "marked", "skip", "l", "f", "=", "skip", "l", "f", ";", "}", "}" ]
[ "test", "the", "property", "'", "name", "'" ]
[ "public", "void", "name", "test", "(", ")", "{", "/", "/", "todo", ":", "test", "name", "}" ]
[ "the", "name", "of", "the", "edit", "action" ]
[ "public", "string", "get", "name", "(", ")", "{", "return", "\"", "rename", "equates", "\"", ";", "}" ]
[ "get", "string", "item" ]
[ "public", "string", "get", "string", "item", "(", ")", "{", "return", "string", "item", ";", "}" ]
[ "checks", "that", "the", "data", "in", "the", "given", "file", "is", "what", "i", "'", "d", "expect" ]
[ "private", "void", "assert", "data", "in", "file", "(", "path", "file", ",", "int", "expected", "size", ")", "throws", "exception", "{", "try", "(", "input", "stream", "in", "stream", "=", "get", "file", "system", "(", ")", "open", "(", "file", ")", ")", "{", "assert", "data", "in", "stream", "(", "in", "stream", ",", "expected", "size", ")", ";", "}", "}" ]
[ "returns", "the", "general", "help", "location", "for", "this", "provider", "should", "return", "null", "only", "if", "no", "help", "documentation", "exists" ]
[ "public", "help", "location", "get", "help", "location", "(", ")", "{", "return", "help", "location", ";", "}" ]
[ "processes", "each", "model", "'", "s", "property", "mapped", "to", "json", "type", "and", "adds", "related", "vendor", "extensions" ]
[ "public", "void", "process", "json", "type", "property", "(", "codegen", "model", "model", ",", "codegen", "property", "property", ")", "{", "map", "<", "string", ",", "object", ">", "vendor", "extensions", "=", "property", "get", "vendor", "extensions", "(", ")", ";", "map", "<", "string", ",", "object", ">", "mysql", "schema", "=", "new", "hash", "map", "<", "string", ",", "object", ">", "(", ")", ";", "map", "<", "string", ",", "object", ">", "column", "definition", "=", "new", "hash", "map", "<", "string", ",", "object", ">", "(", ")", ";", "string", "base", "name", "=", "property", "get", "base", "name", "(", ")", ";", "string", "col", "name", "=", "this", "to", "column", "name", "(", "base", "name", ")", ";", "string", "data", "type", "=", "property", "get", "data", "type", "(", ")", ";", "boolean", "required", "=", "property", "get", "required", "(", ")", ";", "string", "description", "=", "property", "get", "description", "(", ")", ";", "string", "default", "value", "=", "property", "get", "default", "value", "(", ")", ";", "if", "(", "vendor", "extensions", "contains", "key", "(", "vendor", "extension", "mysql", "schema", ")", ")", "{", "/", "/", "user", "already", "specified", "schema", "values", "logger", "info", "(", "\"", "found", "vendor", "extension", "in", "'", "\"", "+", "base", "name", "+", "\"", "'", "property", ",", "autogeneration", "skipped", "\"", ")", ";", "return", ";", "}", "if", "(", "this", "get", "identifier", "naming", "convention", "(", ")", "equals", "(", "\"", "snake", "case", "\"", ")", "&", "&", "!", "base", "name", "equals", "(", "col", "name", ")", ")", "{", "/", "/", "add", "original", "name", "in", "column", "comment", "string", "comment", "extra", "=", "\"", "original", "param", "name", "-", "\"", "+", "base", "name", "+", "\"", "\"", ";", "description", "=", "(", "description", "=", "=", "null", "|", "|", "description", "is", "empty", "(", ")", ")", "?", "comment", "extra", ":", "description", "+", "\"", "\"", "+", "comment", "extra", ";", "}", "vendor", "extensions", "put", "(", "vendor", "extension", "mysql", "schema", ",", "mysql", "schema", ")", ";", "mysql", "schema", "put", "(", "\"", "column", "definition", "\"", ",", "column", "definition", ")", ";", "column", "definition", "put", "(", "\"", "col", "name", "\"", ",", "col", "name", ")", ";", "column", "definition", "put", "(", "\"", "col", "data", "type", "\"", ",", "data", "type", ")", ";", "if", "(", "boolean", "false", "equals", "(", "get", "json", "data", "type", "enabled", "(", ")", ")", ")", "{", "column", "definition", "put", "(", "\"", "col", "data", "type", "\"", ",", "\"", "text", "\"", ")", ";", "}", "if", "(", "boolean", "true", "equals", "(", "required", ")", ")", "{", "column", "definition", "put", "(", "\"", "col", "not", "null", "\"", ",", "true", ")", ";", "}", "else", "{", "column", "definition", "put", "(", "\"", "col", "not", "null", "\"", ",", "false", ")", ";", "try", "{", "column", "definition", "put", "(", "\"", "col", "default", "\"", ",", "to", "codegen", "mysql", "data", "type", "default", "(", "default", "value", ",", "(", "string", ")", "column", "definition", "get", "(", "\"", "col", "data", "type", "\"", ")", ")", ")", ";", "}", "catch", "(", "runtime", "exception", "exception", ")", "{", "logger", "warn", "(", "\"", "property", "'", "\"", "+", "base", "name", "+", "\"", "'", "of", "model", "'", "\"", "+", "model", "get", "name", "(", ")", "+", "\"", "'", "mapped", "to", "my", "s", "q", "l", "data", "type", "which", "doesn", "'", "t", "support", "default", "value", "\"", ")", ";", "column", "definition", "put", "(", "\"", "col", "default", "\"", ",", "null", ")", ";", "}", "}", "if", "(", "description", "!", "=", "null", ")", "{", "column", "definition", "put", "(", "\"", "col", "comment", "\"", ",", "description", ")", ";", "}", "}" ]
[ "judge", "whether", "service", "info", "is", "validate" ]
[ "public", "boolean", "validate", "(", ")", "{", "if", "(", "is", "all", "i", "ps", "(", ")", ")", "{", "return", "true", ";", "}", "if", "(", "hosts", "=", "=", "null", ")", "{", "return", "false", ";", "}", "list", "<", "instance", ">", "valid", "hosts", "=", "new", "array", "list", "<", "instance", ">", "(", ")", ";", "for", "(", "instance", "host", ":", "hosts", ")", "{", "if", "(", "!", "host", "is", "healthy", "(", ")", ")", "{", "continue", ";", "}", "for", "(", "int", "i", "=", "0", ";", "i", "<", "host", "get", "weight", "(", ")", ";", "i", "+", "+", ")", "{", "valid", "hosts", "add", "(", "host", ")", ";", "}", "}", "/", "/", "no", "valid", "hosts", ",", "return", "false", "return", "!", "valid", "hosts", "is", "empty", "(", ")", ";", "}" ]
[ "the", "flex", "basis", "property", "is", "an", "axis", "-", "independent", "way", "of", "providing", "the", "default", "size", "of", "an", "item", "on", "the", "main", "axis", "setting", "the", "flex", "basis", "of", "a", "child", "is", "similar", "to", "setting", "the", "width", "of", "that", "child", "if", "its", "parent", "is", "a", "container", "with", "flex", "direction", "=", "row", "or", "setting", "the", "height", "of", "a", "child", "if", "its", "parent", "is", "a", "container", "with", "flex", "direction", "=", "column", "the", "flex", "basis", "of", "an", "item", "is", "the", "default", "size", "of", "that", "item", ",", "the", "size", "of", "the", "item", "before", "any", "flex", "grow", "and", "flex", "shrink", "calculations", "are", "performed", "see", "<", "a", "href", "=", "\"", "https", ":", "yogalayout", "comdocsflex", "\"", ">", "https", ":", "yogalayout", "comdocsflex", "for", "more", "information", "default", ":", "0" ]
[ "public", "t", "flex", "basis", "px", "(", "@", "px", "int", "flex", "basis", ")", "{", "m", "component", "get", "or", "create", "common", "props", "(", ")", "flex", "basis", "px", "(", "flex", "basis", ")", ";", "return", "get", "this", "(", ")", ";", "}" ]
[ "create", "tracker", "contains", "standard", "assertions", "(", "s", ")" ]
[ "protected", "change", "tracker", "new", "tracker", "(", "final", "change", "detection", "policy", "mode", "mode", ",", "final", "change", "detection", "policy", "source", "source", ",", "boolean", "require", "version", ")", "{", "return", "new", "tracker", "(", "mode", ",", "source", ",", "require", "version", ",", "object", "attributes", "(", "null", ",", "null", ")", ")", ";", "}" ]
[ "get", "the", "title", "of", "the", "current", "page", "see", "<", "a", "href", "=", "\"", "https", ":", "w", "3c", "github", "iowebdriver", "#", "get", "-", "title", "\"", ">", "w3c", "web", "driver", "specification", "for", "more", "details" ]
[ "string", "get", "title", "(", ")", ";" ]
[ "creates", "a", "partitioned", "state", "handle", ",", "using", "the", "state", "backend", "configured", "for", "this", "task" ]
[ "protected", "<", "s", "extends", "state", ">", "s", "get", "partitioned", "state", "(", "state", "descriptor", "<", "s", ",", "?", ">", "state", "descriptor", ")", "throws", "exception", "{", "return", "get", "partitioned", "state", "(", "void", "namespace", "instance", ",", "void", "namespace", "serializer", "instance", ",", "state", "descriptor", ")", ";", "}" ]
[ "check", "whether", "the", "specified", "bean", "would", "need", "to", "be", "eagerly", "initialized", "in", "order", "to", "determine", "its", "type" ]
[ "private", "boolean", "requires", "eager", "init", "for", "type", "(", "@", "nullable", "string", "factory", "bean", "name", ")", "{", "return", "(", "factory", "bean", "name", "!", "=", "null", "&", "&", "is", "factory", "bean", "(", "factory", "bean", "name", ")", "&", "&", "!", "contains", "singleton", "(", "factory", "bean", "name", ")", ")", ";", "}" ]
[ "binds", "items", "in", "the", "collection", "to", "url" ]
[ "public", "t", "get", "dynamic", "(", "string", "id", ")", "{", "/", "/", "by", "id", "for", "(", "t", "t", ":", "data", ")", "if", "(", "t", "get", "descriptor", "(", ")", "get", "id", "(", ")", "equals", "(", "id", ")", ")", "return", "t", ";", "/", "/", "by", "position", "try", "{", "return", "data", "get", "(", "integer", "parse", "int", "(", "id", ")", ")", ";", "}", "catch", "(", "number", "format", "exception", "e", ")", "{", "/", "/", "fall", "through", "}", "return", "null", ";", "}" ]
[ "any", "comments", "associated", "with", "the", "enum", "or", "flag", "<", "code", ">", "optional", "string", "comment", "=", "2", ";", "<", "code", ">" ]
[ "public", "builder", "set", "comment", "(", "java", "lang", "string", "value", ")", "{", "copy", "on", "write", "(", ")", ";", "instance", "set", "comment", "(", "value", ")", ";", "return", "this", ";", "}" ]
[ "instantiate", "through", "the", "manager", ",", "but", "then", "call", "direct" ]
[ "public", "void", "test", "binding", "lifecycle", "(", ")", "throws", "throwable", "{", "abfs", "delegation", "token", "manager", "manager", "=", "new", "abfs", "delegation", "token", "manager", "(", "conf", ")", ";", "stub", "delegation", "token", "manager", "stub", "=", "get", "token", "manager", "(", "manager", ")", ";", "assert", "true", "(", "\"", "not", "initialized", ":", "\"", "+", "stub", ",", "stub", "is", "initialized", "(", ")", ")", ";", "stub", "bind", "(", "fsuri", ",", "conf", ")", ";", "assert", "equals", "(", "\"", "uri", "in", "\"", "+", "stub", ",", "fsuri", ",", "stub", "get", "fs", "u", "r", "i", "(", ")", ")", ";", "decode", "identifier", "(", "stub", "get", "delegation", "token", "(", "renewer", ")", ")", ";", "stub", "close", "(", ")", ";", "assert", "true", "(", "\"", "not", "closed", ":", "\"", "+", "stub", ",", "stub", "is", "closed", "(", ")", ")", ";", "/", "/", "and", "for", "resilience", "stub", "close", "(", ")", ";", "assert", "true", "(", "\"", "not", "closed", ":", "\"", "+", "stub", ",", "stub", "is", "closed", "(", ")", ")", ";", "}" ]
[ "computes", "the", "project", "lookup", "based", "on", "combination", "key", ",", "returns", "the", "cached", "one", "from", "the", "hash", "map", "if", "already", "computed" ]
[ "public", "project", "lookup", "get", "lookup", "(", "long", "target", "project", ",", "string", "target", "column", ")", "throws", "lookup", "exception", "{", "string", "key", "=", "target", "project", "+", "\"", ";", "\"", "+", "target", "column", ";", "if", "(", "!", "lookups", "contains", "key", "(", "key", ")", ")", "{", "project", "lookup", "lookup", "=", "new", "project", "lookup", "(", "target", "project", ",", "target", "column", ")", ";", "compute", "lookup", "(", "lookup", ")", ";", "synchronized", "(", "lookups", ")", "{", "lookups", "put", "(", "key", ",", "lookup", ")", ";", "}", "}", "return", "lookups", "get", "(", "key", ")", ";", "}" ]
[ "get", "map", "array", "anytype" ]
[ "public", "map", "<", "string", ",", "list", "<", "object", ">", ">", "get", "map", "array", "anytype", "(", ")", "{", "return", "map", "array", "anytype", ";", "}" ]
[ "this", "method", "will", "add", "a", "known", "immutable", "variable", "to", "the", "validation", "context", ",", "known", "variables", "can", "be", "used", "to", "determine", "if", "a", "path", "is", "static", "or", "dynamic" ]
[ "public", "void", "add", "immutable", "variable", "(", "string", "variable", ")", "throws", "yarn", "exception", "{", "if", "(", "known", "variables", "contains", "(", "variable", ")", "&", "&", "!", "immutable", "variables", "contains", "(", "variable", ")", ")", "{", "throw", "new", "yarn", "exception", "(", "\"", "variable", "'", "\"", "+", "variable", "+", "\"", "'", "already", "\"", "+", "\"", "added", "as", "a", "mutable", "variable", "cannot", "set", "it", "to", "immutable", "\"", ")", ";", "}", "known", "variables", "add", "(", "variable", ")", ";", "immutable", "variables", "add", "(", "variable", ")", ";", "}" ]
[ "gets", "get", "role", "from", "channel" ]
[ "public", "static", "netty", "pool", "key", "transaction", "role", "get", "role", "from", "channel", "(", "channel", "channel", ")", "{", "rpc", "context", "context", "=", "identified", "channels", "get", "(", "channel", ")", ";", "if", "(", "context", "!", "=", "null", ")", "{", "return", "context", "get", "client", "role", "(", ")", ";", "}", "return", "null", ";", "}" ]
[ "creates", "an", "accessor", "for", "getting", "elements", "in", "an", "internal", "row", "data", "structure", "at", "the", "given", "position" ]
[ "static", "field", "getter", "create", "field", "getter", "(", "logical", "type", "field", "type", ",", "int", "field", "pos", ")", "{", "final", "field", "getter", "field", "getter", ";", "/", "/", "ordered", "by", "type", "root", "definition", "switch", "(", "field", "type", "get", "type", "root", "(", ")", ")", "{", "case", "char", ":", "case", "varchar", ":", "field", "getter", "=", "row", "-", ">", "row", "get", "string", "(", "field", "pos", ")", ";", "break", ";", "case", "boolean", ":", "field", "getter", "=", "row", "-", ">", "row", "get", "boolean", "(", "field", "pos", ")", ";", "break", ";", "case", "binary", ":", "case", "varbinary", ":", "field", "getter", "=", "row", "-", ">", "row", "get", "binary", "(", "field", "pos", ")", ";", "break", ";", "case", "decimal", ":", "final", "int", "decimal", "precision", "=", "get", "precision", "(", "field", "type", ")", ";", "final", "int", "decimal", "scale", "=", "get", "scale", "(", "field", "type", ")", ";", "field", "getter", "=", "row", "-", ">", "row", "get", "decimal", "(", "field", "pos", ",", "decimal", "precision", ",", "decimal", "scale", ")", ";", "break", ";", "case", "tinyint", ":", "field", "getter", "=", "row", "-", ">", "row", "get", "byte", "(", "field", "pos", ")", ";", "break", ";", "case", "smallint", ":", "field", "getter", "=", "row", "-", ">", "row", "get", "short", "(", "field", "pos", ")", ";", "break", ";", "case", "integer", ":", "case", "date", ":", "case", "time", "without", "time", "zone", ":", "case", "interval", "year", "month", ":", "field", "getter", "=", "row", "-", ">", "row", "get", "int", "(", "field", "pos", ")", ";", "break", ";", "case", "bigint", ":", "case", "interval", "day", "time", ":", "field", "getter", "=", "row", "-", ">", "row", "get", "long", "(", "field", "pos", ")", ";", "break", ";", "case", "float", ":", "field", "getter", "=", "row", "-", ">", "row", "get", "float", "(", "field", "pos", ")", ";", "break", ";", "case", "double", ":", "field", "getter", "=", "row", "-", ">", "row", "get", "double", "(", "field", "pos", ")", ";", "break", ";", "case", "timestamp", "without", "time", "zone", ":", "case", "timestamp", "with", "local", "time", "zone", ":", "final", "int", "timestamp", "precision", "=", "get", "precision", "(", "field", "type", ")", ";", "field", "getter", "=", "row", "-", ">", "row", "get", "timestamp", "(", "field", "pos", ",", "timestamp", "precision", ")", ";", "break", ";", "case", "timestamp", "with", "time", "zone", ":", "throw", "new", "unsupported", "operation", "exception", "(", ")", ";", "case", "array", ":", "field", "getter", "=", "row", "-", ">", "row", "get", "array", "(", "field", "pos", ")", ";", "break", ";", "case", "multiset", ":", "case", "map", ":", "field", "getter", "=", "row", "-", ">", "row", "get", "map", "(", "field", "pos", ")", ";", "break", ";", "case", "row", ":", "case", "structured", "type", ":", "final", "int", "row", "field", "count", "=", "get", "field", "count", "(", "field", "type", ")", ";", "field", "getter", "=", "row", "-", ">", "row", "get", "row", "(", "field", "pos", ",", "row", "field", "count", ")", ";", "break", ";", "case", "distinct", "type", ":", "field", "getter", "=", "create", "field", "getter", "(", "(", "(", "distinct", "type", ")", "field", "type", ")", "get", "source", "type", "(", ")", ",", "field", "pos", ")", ";", "break", ";", "case", "raw", ":", "field", "getter", "=", "row", "-", ">", "row", "get", "raw", "value", "(", "field", "pos", ")", ";", "break", ";", "case", "null", ":", "case", "symbol", ":", "case", "unresolved", ":", "default", ":", "throw", "new", "illegal", "argument", "exception", "(", ")", ";", "}", "if", "(", "!", "field", "type", "is", "nullable", "(", ")", ")", "{", "return", "field", "getter", ";", "}", "return", "row", "-", ">", "{", "if", "(", "row", "is", "null", "at", "(", "field", "pos", ")", ")", "{", "return", "null", ";", "}", "return", "field", "getter", "get", "field", "or", "null", "(", "row", ")", ";", "}", ";", "}" ]
[ "returns", "a", "fixed", "-", "size", "list", "backed", "by", "the", "specified", "array", ",", "similar", "to", "{", "@", "link", "arrays", "#", "as", "list", "(", "object", "[", "]", ")", "}", "the", "list", "supports", "{", "@", "link", "list", "#", "set", "(", "int", ",", "object", ")", "}", ",", "but", "any", "attempt", "to", "set", "a", "value", "to", "{", "@", "code", "null", "}", "will", "result", "in", "a", "{", "@", "link", "null", "pointer", "exception", "}", "the", "returned", "list", "maintains", "the", "values", ",", "but", "not", "the", "identities", ",", "of", "{", "@", "code", "boolean", "}", "objects", "written", "to", "or", "read", "from", "it", "for", "example", ",", "whether", "{", "@", "code", "list", "get", "(", "0", ")", "=", "=", "list", "get", "(", "0", ")", "}", "is", "true", "for", "the", "returned", "list", "is", "unspecified" ]
[ "public", "static", "list", "<", "boolean", ">", "as", "list", "(", "boolean", "backing", "array", ")", "{", "if", "(", "backing", "array", "length", "=", "=", "0", ")", "{", "return", "collections", "empty", "list", "(", ")", ";", "}", "return", "new", "boolean", "array", "as", "list", "(", "backing", "array", ")", ";", "}" ]
[ "returns", "the", "percentage", "(", "0", "100", ")", "of", "time", "that", "the", "jvm", "spent", "in", "gc", "pauses", "within", "the", "observation", "window", "of", "the", "associated", "gc", "time", "monitor" ]
[ "public", "int", "get", "gc", "time", "percentage", "(", ")", "{", "return", "gc", "time", "percentage", ";", "}" ]
[ "returns", "the", "base", "address" ]
[ "public", "address", "get", "base", "address", "(", ")", ";" ]
[ "in", "first", "assertion", "we", "prove", ",", "that", "a", "request", "takes", "no", "longer", "than", ":", "request", "time", "<", "connect", "timeout", "+", "error", "margin", "(", "1", ")", "<", "p", ">", "in", "the", "second", "we", "show", "that", "if", "we", "set", "<", "b", ">", "connect", "timeout", "<", "b", ">", "to", "<", "b", ">", "set", "connect", "timeout", "+", "increase", "+", "error", "margin", "<", "b", ">", "then", "request", "time", ">", "connect", "timeout", "+", "increase", "+", "error", "margin", "(", "2", ")", "<", "p", ">", "now", ",", "(", "1", ")", "and", "(", "2", ")", "can", "hold", "at", "the", "same", "time", "if", "then", "connect", "timeout", "update", "was", "successful" ]
[ "void", "connect", "timeout", "override", "changes", "how", "long", "it", "takes", "for", "a", "connection", "to", "timeout", "(", ")", "{", "/", "/", "set", "up", "override", "web", "target", "target", "=", "client", "target", "(", "non", "routable", "address", ")", ";", "/", "/", "this", "can", "'", "t", "be", "tested", "without", "a", "real", "connection", "try", "{", "target", "request", "(", ")", "get", "(", "response", "class", ")", ";", "}", "catch", "(", "processing", "exception", "e", ")", "{", "if", "(", "e", "get", "cause", "(", ")", "instanceof", "http", "host", "connect", "exception", ")", "{", "return", ";", "}", "}", "assert", "that", "connection", "timeout", "for", "(", "target", ")", "is", "less", "than", "(", "default", "connect", "timeout", "in", "millis", "+", "error", "margin", "in", "millis", ")", ";", "/", "/", "tear", "down", "override", "final", "int", "new", "timeout", "=", "default", "connect", "timeout", "in", "millis", "+", "increase", "in", "millis", "+", "error", "margin", "in", "millis", ";", "final", "web", "target", "new", "target", "=", "target", "property", "(", "client", "properties", "connect", "timeout", ",", "new", "timeout", ")", ";", "assert", "that", "connection", "timeout", "for", "(", "new", "target", ")", "is", "greater", "than", "(", "new", "timeout", ")", ";", "}" ]
[ "sets", "the", "path", "name" ]
[ "public", "void", "set", "parent", "full", "path", "(", "byte", "[", "]", "path", ")", "{", "parent", "full", "path", "=", "path", ";", "}" ]
[ "assert", "the", "response", "body", "content", "as", "a", "string" ]
[ "public", "result", "matcher", "string", "(", "string", "expected", "content", ")", "{", "return", "result", "-", ">", "assert", "equals", "(", "\"", "response", "content", "\"", ",", "expected", "content", ",", "result", "get", "response", "(", ")", "get", "content", "as", "string", "(", ")", ")", ";", "}" ]
[ "builder", "method", "for", "configuration", "parameter" ]
[ "public", "builder", "with", "configuration", "(", "string", "configuration", ")", "{", "this", "configuration", "=", "configuration", ";", "return", "this", ";", "}" ]
[ "return", "the", "name", "of", "the", "request", "context", "attribute", ",", "if", "any" ]
[ "public", "string", "get", "request", "context", "attribute", "(", ")", "{", "return", "this", "request", "context", "attribute", ";", "}" ]
[ "tests", "that", "when", "all", "inputs", "become", "idle", ",", "the", "max", "watermark", "across", "all", "channels", "is", "correctly", "\"", "flushed", "\"", "from", "the", "valve", ",", "as", "well", "as", "the", "stream", "status", "idle", "marker", "this", "test", "along", "with", "{", "@", "link", "#", "test", "multiple", "input", "watermark", "advancing", "as", "channels", "individually", "become", "idle", "}", "should", "completely", "verify", "that", "the", "eventual", "watermark", "advancement", "result", "when", "all", "inputs", "become", "idle", "is", "independent", "of", "the", "order", "that", "the", "inputs", "become", "idle" ]
[ "public", "void", "test", "multiple", "input", "flush", "max", "watermark", "and", "stream", "status", "once", "all", "inputs", "become", "idle", "(", ")", "throws", "exception", "{", "status", "watermark", "output", "valve", "output", "=", "new", "status", "watermark", "output", "(", ")", ";", "status", "watermark", "valve", "valve", "=", "new", "status", "watermark", "valve", "(", "3", ")", ";", "/", "/", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "/", "/", "setup", "valve", "for", "test", "case", ":", "/", "/", "channel", "#", "1", ":", "watermark", "10", ",", "active", "/", "/", "channel", "#", "2", ":", "watermark", "5", ",", "active", "/", "/", "channel", "#", "3", ":", "watermark", "3", ",", "active", "/", "/", "min", "watermark", "across", "channels", "=", "3", "(", "from", "channel", "#", "3", ")", "/", "/", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "valve", "input", "watermark", "(", "new", "watermark", "(", "10", ")", ",", "0", ",", "valve", "output", ")", ";", "valve", "input", "watermark", "(", "new", "watermark", "(", "5", ")", ",", "1", ",", "valve", "output", ")", ";", "valve", "input", "watermark", "(", "new", "watermark", "(", "3", ")", ",", "2", ",", "valve", "output", ")", ";", "assert", "equals", "(", "new", "watermark", "(", "3", ")", ",", "valve", "output", "pop", "last", "seen", "output", "(", ")", ")", ";", "/", "/", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "/", "/", "order", "of", "becoming", "idle", ":", "/", "/", "channel", "#", "1", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", ">", "channel", "#", "2", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", ">", "channel", "#", "3", "/", "/", "|", "-", ">", "(", "nothing", "emitted", ")", "|", "-", ">", "(", "nothing", "emitted", ")", "|", "-", ">", "emit", "watermark", "(", "10", ")", "&", "idle", "/", "/", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "valve", "input", "stream", "status", "(", "stream", "status", "idle", ",", "0", ",", "valve", "output", ")", ";", "valve", "input", "stream", "status", "(", "stream", "status", "idle", ",", "1", ",", "valve", "output", ")", ";", "assert", "equals", "(", "null", ",", "valve", "output", "pop", "last", "seen", "output", "(", ")", ")", ";", "valve", "input", "stream", "status", "(", "stream", "status", "idle", ",", "2", ",", "valve", "output", ")", ";", "assert", "equals", "(", "new", "watermark", "(", "10", ")", ",", "valve", "output", "pop", "last", "seen", "output", "(", ")", ")", ";", "assert", "equals", "(", "stream", "status", "idle", ",", "valve", "output", "pop", "last", "seen", "output", "(", ")", ")", ";", "assert", "equals", "(", "null", ",", "valve", "output", "pop", "last", "seen", "output", "(", ")", ")", ";", "}" ]
[ "returns", "a", "deep", "copy", "of", "the", "passed", "in", "{", "@", "link", "http", "headers", "}" ]
[ "public", "http", "headers", "copy", "(", ")", "{", "return", "new", "default", "http", "headers", "(", ")", "set", "(", "this", ")", ";", "}" ]
[ "convert", "the", "given", "object", "to", "string", "with", "each", "line", "indented", "by", "4", "spaces", "(", "except", "the", "first", "line", ")" ]
[ "private", "string", "to", "indented", "string", "(", "object", "o", ")", "{", "if", "(", "o", "=", "=", "null", ")", "{", "return", "\"", "null", "\"", ";", "}", "return", "o", "to", "string", "(", ")", "replace", "(", "\"", "\\", "n", "\"", ",", "\"", "\\", "n", "\"", ")", ";", "}" ]
[ "10", "seconds", "ought", "to", "be", "long", "enough", "for", "any", "object", "to", "be", "gc", "'", "ed", "and", "finalized", "unless", "we", "have", "a", "gigantic", "heap", ",", "in", "which", "case", "we", "scale", "by", "heap", "size" ]
[ "private", "static", "long", "timeout", "seconds", "(", ")", "{", "/", "/", "this", "class", "can", "make", "no", "hard", "guarantees", "the", "methods", "in", "this", "class", "are", "inherently", "flaky", ",", "but", "/", "/", "we", "try", "hard", "to", "make", "them", "robust", "in", "practice", "we", "could", "additionally", "try", "to", "add", "in", "a", "system", "/", "/", "load", "timeout", "multiplier", "or", "we", "could", "try", "to", "use", "a", "cpu", "time", "bound", "instead", "of", "wall", "clock", "time", "/", "/", "bound", "but", "these", "ideas", "are", "harder", "to", "implement", "we", "do", "not", "try", "to", "detect", "or", "handle", "a", "/", "/", "user", "-", "specified", "-", "xx", ":", "+", "disable", "explicit", "g", "c", "/", "/", "/", "/", "todo", "(", "user", ")", ":", "consider", "using", "/", "/", "java", "/", "lang", "/", "management", "/", "operating", "system", "m", "x", "bean", "html", "#", "get", "system", "load", "average", "(", ")", "/", "/", "/", "/", "todo", "(", "user", ")", ":", "consider", "scaling", "by", "number", "of", "mutator", "threads", ",", "/", "/", "e", "g", "using", "thread", "#", "active", "count", "(", ")", "return", "math", "max", "(", "10l", ",", "runtime", "get", "runtime", "(", ")", "total", "memory", "(", ")", "/", "(", "32l", "*", "1024l", "*", "1024l", ")", ")", ";", "}" ]
[ "{", "@", "inherit", "doc", "}", "the", "default", "implementation", "returns", "the", "result", "of", "calling", "{", "@", "link", "#", "visit", "children", "}", "on", "{", "@", "code", "ctx", "}" ]
[ "@", "override", "public", "t", "visit", "predicate", "(", "sql", "base", "parser", "predicate", "context", "ctx", ")", "{", "return", "visit", "children", "(", "ctx", ")", ";", "}" ]
[ "handle", "deserialization", "of", "the", "'", "null", "'", "value" ]
[ "public", "quadrilateral", "get", "null", "value", "(", "deserialization", "context", "ctxt", ")", "throws", "json", "mapping", "exception", "{", "throw", "new", "json", "mapping", "exception", "(", "ctxt", "get", "parser", "(", ")", ",", "\"", "quadrilateral", "cannot", "be", "null", "\"", ")", ";", "}" ]
[ "append", "one", "image" ]
[ "public", "span", "utils", "append", "image", "(", "@", "drawable", "res", "final", "int", "resource", "id", ",", "@", "align", "final", "int", "align", ")", "{", "apply", "(", "m", "type", "image", ")", ";", "this", "image", "resource", "id", "=", "resource", "id", ";", "this", "align", "image", "=", "align", ";", "return", "this", ";", "}" ]
[ "calculates", "the", "squared", "radius", "of", "the", "bounding", "sphere", "around", "the", "specified", "center", "for", "the", "specified", "part" ]
[ "public", "float", "calculate", "radius", "(", "final", "vector", "3", "center", ",", "int", "offset", ",", "int", "count", ")", "{", "return", "calculate", "radius", "(", "center", "x", ",", "center", "y", ",", "center", "z", ",", "offset", ",", "count", ",", "null", ")", ";", "}" ]
[ "use", "some", "values", "from", "anscombe", "'", "s", "quartet", "for", "testing", "there", "was", "no", "particular", "reason", "to", "use", "these", "except", "they", "have", "known", "means", "and", "variance", "https", ":", "en", "wikipedia", "orgwiki", "anscombe", "%", "2", "7s", "quartet" ]
[ "public", "void", "test", "anscomes", "quartet", "y", "values", "(", ")", "throws", "exception", "{", "final", "float", "[", "]", "q", "1y", "=", "{", "8", "0", "4f", ",", "6", "9", "5f", ",", "7", "5", "8f", ",", "8", "8", "1f", ",", "8", "3", "3f", ",", "9", "9", "6f", ",", "7", "2", "4f", ",", "4", "2", "6f", ",", "10", "8", "4f", ",", "4", "8", "2f", ",", "5", "6", "8f", "}", ";", "final", "float", "[", "]", "q", "2y", "=", "{", "9", "1", "4f", ",", "8", "1", "4f", ",", "8", "7", "4f", ",", "8", "7", "7f", ",", "9", "2", "6f", ",", "8", "1f", ",", "6", "1", "3f", ",", "3", "1f", ",", "9", "1", "3f", ",", "7", "2", "6f", ",", "4", "7", "4f", "}", ";", "final", "float", "[", "]", "q", "3y", "=", "{", "7", "4", "6f", ",", "6", "7", "7f", ",", "12", "7", "4f", ",", "7", "1", "1f", ",", "7", "8", "1f", ",", "8", "8", "4f", ",", "6", "0", "8f", ",", "5", "3", "9f", ",", "8", "1", "5f", ",", "6", "4", "2f", ",", "5", "7", "3f", "}", ";", "final", "float", "[", "]", "q", "4y", "=", "{", "6", "5", "8f", ",", "5", "7", "6f", ",", "7", "7", "1f", ",", "8", "8", "4f", ",", "8", "4", "7f", ",", "7", "0", "4f", ",", "5", "2", "5f", ",", "12", "5f", ",", "5", "5", "6f", ",", "7", "9", "1f", ",", "6", "8", "9f", "}", ";", "numeric", "column", "summary", "<", "float", ">", "q", "1", "=", "summarize", "(", "q", "1y", ")", ";", "numeric", "column", "summary", "<", "float", ">", "q", "2", "=", "summarize", "(", "q", "2y", ")", ";", "numeric", "column", "summary", "<", "float", ">", "q", "3", "=", "summarize", "(", "q", "3y", ")", ";", "numeric", "column", "summary", "<", "float", ">", "q", "4", "=", "summarize", "(", "q", "4y", ")", ";", "/", "/", "the", "y", "values", "are", "have", "less", "precisely", "matching", "means", "and", "variances", "assert", "assert", "equals", "(", "7", "5", ",", "q", "1", "get", "mean", "(", ")", "double", "value", "(", ")", ",", "0", "001", ")", ";", "assert", "assert", "equals", "(", "7", "5", ",", "q", "2", "get", "mean", "(", ")", "double", "value", "(", ")", ",", "0", "001", ")", ";", "assert", "assert", "equals", "(", "7", "5", ",", "q", "3", "get", "mean", "(", ")", "double", "value", "(", ")", ",", "0", "001", ")", ";", "assert", "assert", "equals", "(", "7", "5", ",", "q", "4", "get", "mean", "(", ")", "double", "value", "(", ")", ",", "0", "001", ")", ";", "assert", "assert", "equals", "(", "4", "12", ",", "q", "1", "get", "variance", "(", ")", "double", "value", "(", ")", ",", "0", "01", ")", ";", "assert", "assert", "equals", "(", "4", "12", ",", "q", "2", "get", "variance", "(", ")", "double", "value", "(", ")", ",", "0", "01", ")", ";", "assert", "assert", "equals", "(", "4", "12", ",", "q", "3", "get", "variance", "(", ")", "double", "value", "(", ")", ",", "0", "01", ")", ";", "assert", "assert", "equals", "(", "4", "12", ",", "q", "4", "get", "variance", "(", ")", "double", "value", "(", ")", ",", "0", "01", ")", ";", "}" ]
[ "<", "code", ">", "optional", "aapt", "pb", "reference", "type", "type", "=", "1", ";", "<", "code", ">" ]
[ "public", "com", "android", "aapt", "resources", "reference", "type", "get", "type", "(", ")", "{", "return", "instance", "get", "type", "(", ")", ";", "}" ]
[ "create", "a", "new", "executor", "with", "the", "capacity", "defined", "in", "{", "@", "link", "#", "executor", "capacity", "}" ]
[ "public", "listening", "executor", "service", "create", "throttled", "executor", "(", ")", "{", "return", "create", "throttled", "executor", "(", "executor", "capacity", ")", ";", "}" ]
[ "resets", "all", "labels", "and", "remove", "invalid", "ones", "this", "should", "be", "called", "when", "the", "assumptions", "behind", "label", "cache", "computation", "changes", ",", "but", "we", "also", "call", "this", "periodically", "to", "self", "-", "heal", "any", "data", "out", "-", "of", "-", "sync", "issue" ]
[ "/", "*", "package", "*", "/", "void", "trim", "labels", "(", ")", "{", "for", "(", "iterator", "<", "label", ">", "itr", "=", "labels", "values", "(", ")", "iterator", "(", ")", ";", "itr", "has", "next", "(", ")", ";", ")", "{", "label", "l", "=", "itr", "next", "(", ")", ";", "reset", "label", "(", "l", ")", ";", "if", "(", "l", "is", "empty", "(", ")", ")", "itr", "remove", "(", ")", ";", "}", "}" ]
[ "get", "the", "file", "info", "from", "all", "the", "locations" ]
[ "private", "hdfs", "file", "status", "get", "file", "info", "all", "(", "final", "list", "<", "remote", "location", ">", "locations", ",", "final", "remote", "method", "method", ")", "throws", "i", "o", "exception", "{", "return", "get", "file", "info", "all", "(", "locations", ",", "method", ",", "-", "1", ")", ";", "}" ]
[ "tests", "that", "rename", "immediately", "after", "files", "in", "the", "source", "directory", "are", "deleted", "results", "in", "exactly", "the", "correct", "set", "of", "destination", "files", "and", "none", "of", "the", "source", "files" ]
[ "public", "void", "test", "consistent", "rename", "after", "delete", "(", ")", "throws", "exception", "{", "s", "3", "a", "file", "system", "fs", "=", "get", "file", "system", "(", ")", ";", "/", "/", "any", "s3", "keys", "that", "contain", "delay", "key", "substring", "will", "be", "delayed", "/", "/", "in", "list", "objects", "(", ")", "results", "via", "inconsistent", "s", "3", "client", "path", "inconsistent", "path", "=", "path", "(", "\"", "a", "/", "b", "/", "dir", "3", "-", "\"", "+", "default", "delay", "key", "substring", ")", ";", "path", "[", "]", "test", "dirs", "=", "{", "path", "(", "\"", "a", "/", "b", "/", "dir", "1", "\"", ")", ",", "path", "(", "\"", "a", "/", "b", "/", "dir", "2", "\"", ")", ",", "inconsistent", "path", "}", ";", "for", "(", "path", "path", ":", "test", "dirs", ")", "{", "assert", "true", "(", "fs", "mkdirs", "(", "path", ")", ")", ";", "}", "clear", "inconsistency", "(", "fs", ")", ";", "assert", "true", "(", "fs", "delete", "(", "test", "dirs", "[", "1", "]", ",", "false", ")", ")", ";", "assert", "true", "(", "fs", "delete", "(", "test", "dirs", "[", "2", "]", ",", "false", ")", ")", ";", "contract", "test", "utils", "rename", "(", "fs", ",", "path", "(", "\"", "a", "\"", ")", ",", "path", "(", "\"", "a", "3", "\"", ")", ")", ";", "contract", "test", "utils", "assert", "paths", "do", "not", "exist", "(", "fs", ",", "\"", "source", "paths", "shouldn", "'", "t", "exist", "post", "rename", "operation", "\"", ",", "test", "dirs", "[", "0", "]", ",", "test", "dirs", "[", "1", "]", ",", "test", "dirs", "[", "2", "]", ")", ";", "file", "status", "[", "]", "paths", "=", "fs", "list", "status", "(", "path", "(", "\"", "a", "3", "/", "b", "\"", ")", ")", ";", "list", "<", "path", ">", "list", "=", "new", "array", "list", "<", ">", "(", ")", ";", "for", "(", "file", "status", "file", "state", ":", "paths", ")", "{", "list", "add", "(", "file", "state", "get", "path", "(", ")", ")", ";", "}", "assertions", "assert", "that", "(", "list", ")", "contains", "(", "path", "(", "\"", "a", "3", "/", "b", "/", "dir", "1", "\"", ")", ")", "does", "not", "contain", "(", "path", "(", "\"", "a", "3", "/", "b", "/", "dir", "2", "\"", ")", ")", "does", "not", "contain", "(", "path", "(", "\"", "a", "3", "/", "b", "/", "dir", "3", "-", "\"", "+", "default", "delay", "key", "substring", ")", ")", ";", "intercept", "(", "file", "not", "found", "exception", "class", ",", "\"", "\"", ",", "\"", "recently", "renamed", "dir", "should", "not", "be", "visible", "\"", ",", "(", ")", "-", ">", "s", "3", "a", "utils", "map", "located", "files", "(", "fs", "list", "files", "and", "empty", "directories", "(", "path", "(", "\"", "a", "\"", ")", ",", "true", ")", ",", "file", "status", ":", ":", "get", "path", ")", ")", ";", "}" ]
[ "clear", "existing", "query", "parameters", "and", "then", "delegate", "to", "{", "@", "link", "#", "query", "(", "string", ")", "}", "note", ":", "please", ",", "review", "the", "javadoc", "of", "{", "@", "link", "#", "query", "param", "(", "string", ",", "object", ")", "}", "for", "further", "notes", "on", "the", "treatment", "and", "encoding", "of", "individual", "query", "parameters" ]
[ "uri", "builder", "replace", "query", "(", "@", "nullable", "string", "query", ")", ";" ]
[ "attribute", "index", "in", "result", "set" ]
[ "public", "int", "get", "ordinal", "position", "(", ")", "{", "return", "ordinal", "position", "<", "0", "?", "attribute", "get", "ordinal", "position", "(", ")", ":", "ordinal", "position", ";", "}" ]
[ "returns", "information", "about", "the", "given", "rule", "'", "s", "compilation", "artifacts" ]
[ "static", "compilation", "artifacts", "compilation", "artifacts", "(", "rule", "context", "rule", "context", ")", "{", "return", "compilation", "artifacts", "(", "rule", "context", ",", "objc", "rule", "classes", "intermediate", "artifacts", "(", "rule", "context", ")", ")", ";", "}" ]
[ "test", "default", "replace", "datanode", "on", "failure", "policy" ]
[ "public", "void", "test", "default", "policy", "(", ")", "throws", "exception", "{", "final", "configuration", "conf", "=", "new", "hdfs", "configuration", "(", ")", ";", "final", "replace", "datanode", "on", "failure", "p", "=", "replace", "datanode", "on", "failure", "get", "(", "conf", ")", ";", "final", "datanode", "info", "[", "]", "infos", "=", "new", "datanode", "info", "[", "5", "]", ";", "final", "datanode", "info", "[", "]", "[", "]", "datanodes", "=", "new", "datanode", "info", "[", "infos", "length", "+", "1", "]", "[", "]", ";", "datanodes", "[", "0", "]", "=", "new", "datanode", "info", "[", "0", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "infos", "length", ";", ")", "{", "infos", "[", "i", "]", "=", "d", "f", "s", "test", "util", "get", "local", "datanode", "info", "(", "9867", "+", "i", ")", ";", "i", "+", "+", ";", "datanodes", "[", "i", "]", "=", "new", "datanode", "info", "[", "i", "]", ";", "system", "arraycopy", "(", "infos", ",", "0", ",", "datanodes", "[", "i", "]", ",", "0", ",", "datanodes", "[", "i", "]", "length", ")", ";", "}", "final", "boolean", "[", "]", "is", "append", "=", "{", "true", ",", "true", ",", "false", ",", "false", "}", ";", "final", "boolean", "[", "]", "is", "hflushed", "=", "{", "true", ",", "false", ",", "true", ",", "false", "}", ";", "for", "(", "short", "replication", "=", "1", ";", "replication", "<", "=", "infos", "length", ";", "replication", "+", "+", ")", "{", "for", "(", "int", "n", "existings", "=", "0", ";", "n", "existings", "<", "datanodes", "length", ";", "n", "existings", "+", "+", ")", "{", "final", "datanode", "info", "[", "]", "existings", "=", "datanodes", "[", "n", "existings", "]", ";", "assert", "assert", "equals", "(", "n", "existings", ",", "existings", "length", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "is", "append", "length", ";", "i", "+", "+", ")", "{", "for", "(", "int", "j", "=", "0", ";", "j", "<", "is", "hflushed", "length", ";", "j", "+", "+", ")", "{", "final", "int", "half", "=", "replication", "/", "2", ";", "final", "boolean", "enough", "replica", "=", "replication", "<", "=", "n", "existings", ";", "final", "boolean", "no", "replica", "=", "n", "existings", "=", "=", "0", ";", "final", "boolean", "replication", "l", "3", "=", "replication", "<", "3", ";", "final", "boolean", "existings", "l", "ehalf", "=", "n", "existings", "<", "=", "half", ";", "final", "boolean", "is", "a", "h", "=", "is", "append", "[", "i", "]", "|", "|", "is", "hflushed", "[", "j", "]", ";", "final", "boolean", "expected", ";", "if", "(", "enough", "replica", "|", "|", "no", "replica", "|", "|", "replication", "l", "3", ")", "{", "expected", "=", "false", ";", "}", "else", "{", "expected", "=", "is", "a", "h", "|", "|", "existings", "l", "ehalf", ";", "}", "final", "boolean", "computed", "=", "p", "satisfy", "(", "replication", ",", "existings", ",", "is", "append", "[", "i", "]", ",", "is", "hflushed", "[", "j", "]", ")", ";", "try", "{", "assert", "assert", "equals", "(", "expected", ",", "computed", ")", ";", "}", "catch", "(", "assertion", "error", "e", ")", "{", "final", "string", "s", "=", "\"", "replication", "=", "\"", "+", "replication", "+", "\"", "\\", "nn", "existings", "=", "\"", "+", "n", "existings", "+", "\"", "\\", "nis", "append", "=", "\"", "+", "is", "append", "[", "i", "]", "+", "\"", "\\", "nis", "hflushed", "=", "\"", "+", "is", "hflushed", "[", "j", "]", ";", "throw", "new", "runtime", "exception", "(", "s", ",", "e", ")", ";", "}", "}", "}", "}", "}", "}" ]
[ "returns", "the", "index", "for", "the", "given", "key", ",", "or", "-", "1", "if", "key", "is", "not", "in", "the", "table" ]
[ "public", "short", "get", "(", "short", "key", ")", "{", "return", "find", "key", "(", "key", ")", ";", "}" ]
[ "specifies", "what", "type", "of", "requested", "indices", "to", "ignore", "and", "wildcard", "indices", "expressions", "for", "example", "indices", "that", "don", "'", "t", "exist" ]
[ "public", "add", "index", "block", "request", "builder", "set", "indices", "options", "(", "indices", "options", "indices", "options", ")", "{", "request", "indices", "options", "(", "indices", "options", ")", ";", "return", "this", ";", "}" ]
[ "return", "the", "int", "value", "in", "sp" ]
[ "public", "static", "int", "get", "int", "(", "@", "non", "null", "final", "string", "key", ",", "@", "non", "null", "final", "s", "p", "utils", "sp", "utils", ")", "{", "return", "sp", "utils", "get", "int", "(", "key", ")", ";", "}" ]
[ "returns", "true", "if", "this", "shard", "has", "some", "scheduled", "refresh", "that", "is", "pending", "because", "of", "search", "-", "idle" ]
[ "public", "final", "boolean", "has", "refresh", "pending", "(", ")", "{", "return", "pending", "refresh", "location", "get", "(", ")", "!", "=", "null", ";", "}" ]
[ "each", "value", "in", "the", "{", "@", "code", "classes", "}", "array", "must", "be", "a", "valid", "index", "into", "the", "constant", "pool", "the", "constant", "pool", "entry", "at", "that", "index", "must", "be", "a", "{", "@", "link", "constant", "pool", "class", "info", "}", "structure", "representing", "a", "class", "or", "interface", "which", "is", "a", "member", "of", "the", "nest", "hosted", "by", "the", "current", "class", "or", "interface" ]
[ "public", "int", "get", "classes", "entry", "(", "int", "i", ")", "{", "return", "classes", "[", "i", "]", "&", "0xffff", ";", "}" ]
[ "returns", "the", "pattern", "given", "at", "the", "constructor", ",", "without", "slashes", "at", "both", "ends", ",", "and", "split", "by", "{", "@", "code", "'", "'", "}" ]
[ "public", "string", "[", "]", "tokens", "(", ")", "{", "return", "tokens", ";", "}" ]
[ "handle", "the", "fetch", "response" ]
[ "public", "boolean", "handle", "response", "(", "fetch", "response", "<", "?", ">", "response", ")", "{", "if", "(", "response", "error", "(", ")", "!", "=", "errors", "none", ")", "{", "log", "info", "(", "\"", "node", "{", "}", "was", "unable", "to", "process", "the", "fetch", "request", "with", "{", "}", ":", "{", "}", "\"", ",", "node", ",", "next", "metadata", ",", "response", "error", "(", ")", ")", ";", "if", "(", "response", "error", "(", ")", "=", "=", "errors", "fetch", "session", "id", "not", "found", ")", "{", "next", "metadata", "=", "fetch", "metadata", "initial", ";", "}", "else", "{", "next", "metadata", "=", "next", "metadata", "next", "close", "existing", "(", ")", ";", "}", "return", "false", ";", "}", "if", "(", "next", "metadata", "is", "full", "(", ")", ")", "{", "if", "(", "response", "response", "data", "(", ")", "is", "empty", "(", ")", "&", "&", "response", "throttle", "time", "ms", "(", ")", ">", "0", ")", "{", "/", "/", "normally", ",", "an", "empty", "full", "fetch", "response", "would", "be", "invalid", "however", ",", "kip", "-", "219", "/", "/", "specifies", "that", "if", "the", "broker", "wants", "to", "throttle", "the", "client", ",", "it", "will", "respond", "/", "/", "to", "a", "full", "fetch", "request", "with", "an", "empty", "response", "and", "a", "throttle", "time", "ms", "/", "/", "value", "set", "we", "don", "'", "t", "want", "to", "log", "this", "with", "a", "warning", ",", "since", "it", "'", "s", "not", "an", "error", "/", "/", "however", ",", "the", "empty", "full", "fetch", "response", "can", "'", "t", "be", "processed", ",", "so", "it", "'", "s", "still", "appropriate", "/", "/", "to", "return", "false", "here", "if", "(", "log", "is", "debug", "enabled", "(", ")", ")", "{", "log", "debug", "(", "\"", "node", "{", "}", "sent", "a", "empty", "full", "fetch", "response", "to", "indicate", "that", "this", "\"", "+", "\"", "client", "should", "be", "throttled", "for", "{", "}", "ms", "\"", ",", "node", ",", "response", "throttle", "time", "ms", "(", ")", ")", ";", "}", "next", "metadata", "=", "fetch", "metadata", "initial", ";", "return", "false", ";", "}", "string", "problem", "=", "verify", "full", "fetch", "response", "partitions", "(", "response", ")", ";", "if", "(", "problem", "!", "=", "null", ")", "{", "log", "info", "(", "\"", "node", "{", "}", "sent", "an", "invalid", "full", "fetch", "response", "with", "{", "}", "\"", ",", "node", ",", "problem", ")", ";", "next", "metadata", "=", "fetch", "metadata", "initial", ";", "return", "false", ";", "}", "else", "if", "(", "response", "session", "id", "(", ")", "=", "=", "invalid", "session", "id", ")", "{", "if", "(", "log", "is", "debug", "enabled", "(", ")", ")", "log", "debug", "(", "\"", "node", "{", "}", "sent", "a", "full", "fetch", "response", "{", "}", "\"", ",", "node", ",", "response", "data", "to", "log", "string", "(", "response", ")", ")", ";", "next", "metadata", "=", "fetch", "metadata", "initial", ";", "return", "true", ";", "}", "else", "{", "/", "/", "the", "server", "created", "a", "new", "incremental", "fetch", "session", "if", "(", "log", "is", "debug", "enabled", "(", ")", ")", "log", "debug", "(", "\"", "node", "{", "}", "sent", "a", "full", "fetch", "response", "that", "created", "a", "new", "incremental", "\"", "+", "\"", "fetch", "session", "{", "}", "{", "}", "\"", ",", "node", ",", "response", "session", "id", "(", ")", ",", "response", "data", "to", "log", "string", "(", "response", ")", ")", ";", "next", "metadata", "=", "fetch", "metadata", "new", "incremental", "(", "response", "session", "id", "(", ")", ")", ";", "return", "true", ";", "}", "}", "else", "{", "string", "problem", "=", "verify", "incremental", "fetch", "response", "partitions", "(", "response", ")", ";", "if", "(", "problem", "!", "=", "null", ")", "{", "log", "info", "(", "\"", "node", "{", "}", "sent", "an", "invalid", "incremental", "fetch", "response", "with", "{", "}", "\"", ",", "node", ",", "problem", ")", ";", "next", "metadata", "=", "next", "metadata", "next", "close", "existing", "(", ")", ";", "return", "false", ";", "}", "else", "if", "(", "response", "session", "id", "(", ")", "=", "=", "invalid", "session", "id", ")", "{", "/", "/", "the", "incremental", "fetch", "session", "was", "closed", "by", "the", "server", "if", "(", "log", "is", "debug", "enabled", "(", ")", ")", "log", "debug", "(", "\"", "node", "{", "}", "sent", "an", "incremental", "fetch", "response", "closing", "session", "{", "}", "{", "}", "\"", ",", "node", ",", "next", "metadata", "session", "id", "(", ")", ",", "response", "data", "to", "log", "string", "(", "response", ")", ")", ";", "next", "metadata", "=", "fetch", "metadata", "initial", ";", "return", "true", ";", "}", "else", "{", "/", "/", "the", "incremental", "fetch", "session", "was", "continued", "by", "the", "server", "/", "/", "we", "don", "'", "t", "have", "to", "do", "anything", "special", "here", "to", "support", "kip", "-", "219", ",", "since", "an", "empty", "incremental", "/", "/", "fetch", "request", "is", "perfectly", "valid", "if", "(", "log", "is", "debug", "enabled", "(", ")", ")", "log", "debug", "(", "\"", "node", "{", "}", "sent", "an", "incremental", "fetch", "response", "with", "throttle", "time", "ms", "=", "{", "}", "\"", "+", "\"", "for", "session", "{", "}", "{", "}", "\"", ",", "node", ",", "response", "throttle", "time", "ms", "(", ")", ",", "response", "session", "id", "(", ")", ",", "response", "data", "to", "log", "string", "(", "response", ")", ")", ";", "next", "metadata", "=", "next", "metadata", "next", "incremental", "(", ")", ";", "return", "true", ";", "}", "}", "}" ]
[ "configure", "the", "supported", "argument", "types", "in", "{", "@", "code", "@", "init", "binder", "}", "methods" ]
[ "public", "void", "set", "init", "binder", "argument", "resolvers", "(", "@", "nullable", "list", "<", "handler", "method", "argument", "resolver", ">", "argument", "resolvers", ")", "{", "if", "(", "argument", "resolvers", "=", "=", "null", ")", "{", "this", "init", "binder", "argument", "resolvers", "=", "null", ";", "}", "else", "{", "this", "init", "binder", "argument", "resolvers", "=", "new", "handler", "method", "argument", "resolver", "composite", "(", ")", ";", "this", "init", "binder", "argument", "resolvers", "add", "resolvers", "(", "argument", "resolvers", ")", ";", "}", "}" ]
[ "registry", "tcc", "resource" ]
[ "public", "void", "register", "resource", "(", "resource", "resource", ")", "{", "t", "c", "c", "resource", "tcc", "resource", "=", "(", "t", "c", "c", "resource", ")", "resource", ";", "tcc", "resource", "cache", "put", "(", "tcc", "resource", "get", "resource", "id", "(", ")", ",", "tcc", "resource", ")", ";", "super", "register", "resource", "(", "tcc", "resource", ")", ";", "}" ]
[ "{", "@", "inherit", "doc", "}" ]
[ "public", "type", "get", "type", "(", ")", "{", "return", "type", "long", ";", "}" ]
[ "returns", "true", "if", "the", "bucket", "or", "it", "'", "s", "alternate", "bucket", "contains", "the", "fingerprint", "expert", "-", "level", "api", ",", "use", "{", "@", "link", "cuckoo", "filter", "#", "might", "contain", "(", "long", ")", "}", "to", "check", "if", "a", "value", "is", "in", "the", "filter" ]
[ "boolean", "might", "contain", "fingerprint", "(", "int", "bucket", ",", "int", "fingerprint", ",", "int", "alternate", "bucket", ")", "{", "/", "/", "check", "all", "entries", "for", "both", "buckets", "and", "the", "evicted", "slot", "return", "has", "fingerprint", "(", "bucket", ",", "fingerprint", ")", "|", "|", "has", "fingerprint", "(", "alternate", "bucket", ",", "fingerprint", ")", "|", "|", "evicted", "fingerprint", "=", "=", "fingerprint", ";", "}" ]
[ "returns", "the", "table", "item", "for", "the", "row", "of", "the", "cell", "being", "tracked", "by", "this", "editor" ]
[ "public", "int", "get", "row", "(", ")", "{", "return", "row", ";", "}" ]
[ "get", "property", "class" ]
[ "public", "string", "get", "property", "class", "(", ")", "{", "return", "property", "class", ";", "}" ]
[ "sets", "the", "texture", "and", "sets", "the", "coordinates", "to", "the", "size", "of", "the", "specified", "texture" ]
[ "public", "void", "set", "region", "(", "texture", "texture", ")", "{", "this", "texture", "=", "texture", ";", "set", "region", "(", "0", ",", "0", ",", "texture", "get", "width", "(", ")", ",", "texture", "get", "height", "(", ")", ")", ";", "}" ]
[ "this", "test", "will", "set", "http", "default", "request", "parameters", "(", "1", ")", "in", "the", "ok", "http", "data", "source", ",", "(", "2", ")", "via", "ok", "http", "data", "source", "set", "request", "property", "(", ")", "and", "(", "3", ")", "in", "the", "data", "spec", "instance", "according", "to", "the", "table", "below", "values", "wrapped", "in", "'", "'", "are", "the", "ones", "that", "should", "be", "set", "in", "the", "connection", "request", "{", "@", "code", "+", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "+", "-", "-", "-", "-", "-", "+", "-", "-", "-", "-", "-", "+", "-", "-", "-", "-", "-", "+", "-", "-", "-", "-", "-", "+", "-", "-", "-", "-", "-", "+", "-", "-", "-", "-", "-", "+", "-", "-", "-", "-", "-", "+", "|", "|", "header", "key", "|", "+", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "+", "-", "-", "-", "-", "-", "+", "-", "-", "-", "-", "-", "+", "-", "-", "-", "-", "-", "+", "-", "-", "-", "-", "-", "+", "-", "-", "-", "-", "-", "+", "-", "-", "-", "-", "-", "+", "-", "-", "-", "-", "-", "+", "|", "location", "|", "0", "|", "1", "|", "2", "|", "3", "|", "4", "|", "5", "|", "6", "|", "+", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "+", "-", "-", "-", "-", "-", "+", "-", "-", "-", "-", "-", "+", "-", "-", "-", "-", "-", "+", "-", "-", "-", "-", "-", "+", "-", "-", "-", "-", "-", "+", "-", "-", "-", "-", "-", "+", "-", "-", "-", "-", "-", "+", "|", "constructor", "|", "y", "|", "y", "|", "y", "|", "|", "y", "|", "|", "|", "|", "setter", "|", "|", "y", "|", "y", "|", "y", "|", "|", "y", "|", "|", "|", "data", "spec", "|", "|", "|", "y", "|", "y", "|", "y", "|", "|", "y", "|", "+", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "+", "-", "-", "-", "-", "-", "+", "-", "-", "-", "-", "-", "+", "-", "-", "-", "-", "-", "+", "-", "-", "-", "-", "-", "+", "-", "-", "-", "-", "-", "+", "-", "-", "-", "-", "-", "+", "-", "-", "-", "-", "-", "+", "}" ]
[ "public", "void", "open", "sets", "correct", "headers", "(", ")", "throws", "exception", "{", "mock", "web", "server", "mock", "web", "server", "=", "new", "mock", "web", "server", "(", ")", ";", "mock", "web", "server", "enqueue", "(", "new", "mock", "response", "(", ")", ")", ";", "string", "property", "from", "constructor", "=", "\"", "from", "constructor", "\"", ";", "http", "data", "source", "request", "properties", "constructor", "properties", "=", "new", "http", "data", "source", "request", "properties", "(", ")", ";", "constructor", "properties", "set", "(", "\"", "0", "\"", ",", "property", "from", "constructor", ")", ";", "constructor", "properties", "set", "(", "\"", "1", "\"", ",", "property", "from", "constructor", ")", ";", "constructor", "properties", "set", "(", "\"", "2", "\"", ",", "property", "from", "constructor", ")", ";", "constructor", "properties", "set", "(", "\"", "4", "\"", ",", "property", "from", "constructor", ")", ";", "ok", "http", "data", "source", "data", "source", "=", "new", "ok", "http", "data", "source", "(", "new", "ok", "http", "client", "(", ")", ",", "\"", "test", "agent", "\"", ",", "/", "*", "cache", "control", "=", "*", "/", "null", ",", "constructor", "properties", ")", ";", "string", "property", "from", "setter", "=", "\"", "from", "setter", "\"", ";", "data", "source", "set", "request", "property", "(", "\"", "1", "\"", ",", "property", "from", "setter", ")", ";", "data", "source", "set", "request", "property", "(", "\"", "2", "\"", ",", "property", "from", "setter", ")", ";", "data", "source", "set", "request", "property", "(", "\"", "3", "\"", ",", "property", "from", "setter", ")", ";", "data", "source", "set", "request", "property", "(", "\"", "5", "\"", ",", "property", "from", "setter", ")", ";", "string", "property", "from", "data", "spec", "=", "\"", "from", "data", "spec", "\"", ";", "map", "<", "string", ",", "string", ">", "data", "spec", "request", "properties", "=", "new", "hash", "map", "<", ">", "(", ")", ";", "data", "spec", "request", "properties", "put", "(", "\"", "2", "\"", ",", "property", "from", "data", "spec", ")", ";", "data", "spec", "request", "properties", "put", "(", "\"", "3", "\"", ",", "property", "from", "data", "spec", ")", ";", "data", "spec", "request", "properties", "put", "(", "\"", "4", "\"", ",", "property", "from", "data", "spec", ")", ";", "data", "spec", "request", "properties", "put", "(", "\"", "6", "\"", ",", "property", "from", "data", "spec", ")", ";", "data", "spec", "data", "spec", "=", "new", "data", "spec", "builder", "(", ")", "set", "uri", "(", "mock", "web", "server", "url", "(", "\"", "/", "test", "-", "path", "\"", ")", "to", "string", "(", ")", ")", "set", "http", "request", "headers", "(", "data", "spec", "request", "properties", ")", "build", "(", ")", ";", "data", "source", "open", "(", "data", "spec", ")", ";", "headers", "headers", "=", "mock", "web", "server", "take", "request", "(", "10", ",", "seconds", ")", "get", "headers", "(", ")", ";", "assert", "that", "(", "headers", "get", "(", "\"", "0", "\"", ")", ")", "is", "equal", "to", "(", "property", "from", "constructor", ")", ";", "assert", "that", "(", "headers", "get", "(", "\"", "1", "\"", ")", ")", "is", "equal", "to", "(", "property", "from", "setter", ")", ";", "assert", "that", "(", "headers", "get", "(", "\"", "2", "\"", ")", ")", "is", "equal", "to", "(", "property", "from", "data", "spec", ")", ";", "assert", "that", "(", "headers", "get", "(", "\"", "3", "\"", ")", ")", "is", "equal", "to", "(", "property", "from", "data", "spec", ")", ";", "assert", "that", "(", "headers", "get", "(", "\"", "4", "\"", ")", ")", "is", "equal", "to", "(", "property", "from", "data", "spec", ")", ";", "assert", "that", "(", "headers", "get", "(", "\"", "5", "\"", ")", ")", "is", "equal", "to", "(", "property", "from", "setter", ")", ";", "assert", "that", "(", "headers", "get", "(", "\"", "6", "\"", ")", ")", "is", "equal", "to", "(", "property", "from", "data", "spec", ")", ";", "}" ]
[ "invoked", "when", "advice", "has", "changed" ]
[ "protected", "void", "advice", "changed", "(", ")", "{", "this", "method", "cache", "clear", "(", ")", ";", "}" ]
[ "talks", "to", "the", "http", "interface", "to", "create", "a", "file" ]
[ "private", "void", "create", "with", "http", "(", "string", "filename", ",", "string", "perms", ")", "throws", "exception", "{", "create", "with", "http", "(", "filename", ",", "perms", ",", "null", ")", ";", "}" ]
[ "model", "tests", "for", "additional", "properties", "string" ]
[ "public", "void", "test", "additional", "properties", "string", "(", ")", "{", "/", "/", "todo", ":", "test", "additional", "properties", "string", "}" ]
[ "load", "https", "-", "related", "configuration" ]
[ "public", "static", "configuration", "load", "ssl", "configuration", "(", "configuration", "conf", ")", "{", "configuration", "ssl", "conf", "=", "new", "configuration", "(", "false", ")", ";", "ssl", "conf", "add", "resource", "(", "conf", "get", "(", "d", "f", "s", "config", "keys", "dfs", "server", "https", "keystore", "resource", "key", ",", "d", "f", "s", "config", "keys", "dfs", "server", "https", "keystore", "resource", "default", ")", ")", ";", "final", "string", "[", "]", "req", "ssl", "props", "=", "{", "d", "f", "s", "config", "keys", "dfs", "server", "https", "truststore", "location", "key", ",", "d", "f", "s", "config", "keys", "dfs", "server", "https", "keystore", "location", "key", ",", "d", "f", "s", "config", "keys", "dfs", "server", "https", "keystore", "password", "key", ",", "d", "f", "s", "config", "keys", "dfs", "server", "https", "keypassword", "key", "}", ";", "/", "/", "check", "if", "the", "required", "properties", "are", "included", "for", "(", "string", "ssl", "prop", ":", "req", "ssl", "props", ")", "{", "if", "(", "ssl", "conf", "get", "(", "ssl", "prop", ")", "=", "=", "null", ")", "{", "log", "warn", "(", "\"", "ssl", "config", "\"", "+", "ssl", "prop", "+", "\"", "is", "missing", "if", "\"", "+", "d", "f", "s", "config", "keys", "dfs", "server", "https", "keystore", "resource", "key", "+", "\"", "is", "specified", ",", "make", "sure", "it", "is", "a", "relative", "path", "\"", ")", ";", "}", "}", "boolean", "require", "client", "auth", "=", "conf", "get", "boolean", "(", "dfs", "client", "https", "need", "auth", "key", ",", "dfs", "client", "https", "need", "auth", "default", ")", ";", "ssl", "conf", "set", "boolean", "(", "dfs", "client", "https", "need", "auth", "key", ",", "require", "client", "auth", ")", ";", "return", "ssl", "conf", ";", "}" ]
[ "gets", "the", "eh", "frame", "description", "entry", "count" ]
[ "public", "int", "get", "eh", "frame", "desc", "entry", "cnt", "encoding", "(", ")", "{", "return", "eh", "frame", "desc", "entry", "cnt", "encoding", ";", "}" ]
[ "test", "the", "property", "'", "string", "'" ]
[ "public", "void", "string", "test", "(", ")", "{", "/", "/", "todo", ":", "test", "string", "}" ]
[ "specify", "the", "executor", "service", "for", "loading", "images", "in", "the", "background", "note", ":", "calling", "{", "@", "link", "picasso", "#", "shutdown", "(", ")", "shutdown", "(", ")", "}", "will", "not", "shutdown", "supplied", "executors", "note", ":", "calling", "{", "@", "link", "#", "thread", "factory", "(", "thread", "factory", ")", "}", "overwrites", "this", "value" ]
[ "public", "builder", "executor", "(", "@", "non", "null", "executor", "service", "executor", "service", ")", "{", "check", "not", "null", "(", "executor", "service", ",", "\"", "executor", "service", "=", "=", "null", "\"", ")", ";", "this", "service", "=", "executor", "service", ";", "return", "this", ";", "}" ]
[ "creates", "a", "new", "async", "stub", "that", "supports", "all", "call", "types", "for", "the", "service" ]
[ "public", "static", "xds", "update", "client", "configure", "service", "stub", "new", "stub", "(", "io", "grpc", "channel", "channel", ")", "{", "io", "grpc", "stub", "abstract", "stub", "stub", "factory", "<", "xds", "update", "client", "configure", "service", "stub", ">", "factory", "=", "new", "io", "grpc", "stub", "abstract", "stub", "stub", "factory", "<", "xds", "update", "client", "configure", "service", "stub", ">", "(", ")", "{", "@", "java", "lang", "override", "public", "xds", "update", "client", "configure", "service", "stub", "new", "stub", "(", "io", "grpc", "channel", "channel", ",", "io", "grpc", "call", "options", "call", "options", ")", "{", "return", "new", "xds", "update", "client", "configure", "service", "stub", "(", "channel", ",", "call", "options", ")", ";", "}", "}", ";", "return", "xds", "update", "client", "configure", "service", "stub", "new", "stub", "(", "factory", ",", "channel", ")", ";", "}" ]
[ "returns", "an", "image", "descriptor", "for", "the", "image", "file", "at", "the", "given", "plug", "-", "in", "relative", "path" ]
[ "public", "static", "image", "descriptor", "get", "image", "descriptor", "(", "string", "path", ")", "{", "return", "image", "descriptor", "from", "plugin", "(", "plugin", "id", ",", "path", ")", ";", "}" ]
[ "test", "sending", "to", "the", "default", "destination", "name", "using", "explicit", "qos", "parameters" ]
[ "void", "test", "send", "default", "destination", "name", "with", "q", "o", "s", "(", ")", "throws", "exception", "{", "do", "test", "send", "destination", "(", "false", ",", "true", ",", "false", ",", "false", ")", ";", "}" ]
[ "set", "the", "modified", "time", "of", "the", "domain" ]
[ "public", "void", "set", "modified", "time", "(", "long", "modified", "time", ")", "{", "this", "modified", "time", "=", "modified", "time", ";", "}" ]
[ "return", "the", "intent", "of", "component" ]
[ "public", "static", "intent", "get", "component", "intent", "(", "final", "string", "pkg", "name", ",", "final", "string", "class", "name", ",", "final", "boolean", "is", "new", "task", ")", "{", "return", "get", "component", "intent", "(", "pkg", "name", ",", "class", "name", ",", "null", ",", "is", "new", "task", ")", ";", "}" ]
[ "returns", "true", "as", "long", "as", "any", "of", "child", "constraint", "is", "satisfied" ]
[ "private", "static", "boolean", "can", "satisfy", "or", "constraint", "(", "application", "id", "app", "id", ",", "or", "constraint", ",", "scheduler", "node", "node", ",", "allocation", "tags", "manager", "atm", ",", "optional", "<", "diagnostics", "collector", ">", "dc", "opt", ")", "throws", "invalid", "allocation", "tags", "query", "exception", "{", "for", "(", "abstract", "constraint", "child", ":", "constraint", "get", "children", "(", ")", ")", "{", "if", "(", "can", "satisfy", "constraints", "(", "app", "id", ",", "child", "build", "(", ")", ",", "node", ",", "atm", ",", "dc", "opt", ")", ")", "{", "return", "true", ";", "}", "}", "return", "false", ";", "}" ]
[ "test", "the", "property", "'", "double", "'" ]
[ "public", "void", "double", "test", "(", ")", "{", "/", "/", "todo", ":", "test", "double", "}" ]
[ "sets", "how", "the", "corners", "of", "the", "outline", "are", "drawn", "this", "is", "usually", "only", "noticeable", "at", "large", "outline", "widths" ]
[ "public", "void", "set", "join", "(", "int", "join", ")", "{", "this", "join", "=", "join", ";", "}" ]
[ "resolve", "the", "address", "bound", "to", "the", "benchmark", "interface", "currently", "we", "assume", "it", "'", "s", "a", "child", "interface", "of", "the", "loopback", "interface", "with", "the", "term", "'", "benchmark", "'", "in", "its", "name", ">", "this", "allows", "traffic", "shaping", "to", "be", "applied", "to", "an", "ip", "address", "and", "to", "have", "the", "benchmarks", "detect", "it", "'", "s", "presence", "and", "use", "it", "e", "g", "for", "linux", "we", "can", "apply", "netem", "to", "a", "specific", "ip", "to", "do", "traffic", "shaping", ",", "bind", "that", "ip", "to", "the", "loopback", "adapter", "and", "then", "apply", "a", "label", "to", "that", "binding", "so", "that", "it", "appears", "as", "a", "child", "interface", "sudo", "tc", "qdisc", "del", "dev", "lo", "root", "sudo", "tc", "qdisc", "add", "dev", "lo", "root", "handle", "1", ":", "prio", "sudo", "tc", "qdisc", "add", "dev", "lo", "parent", "1", ":", "1", "handle", "2", ":", "netem", "delay", "0", "1ms", "rate", "1", "0gbit", "sudo", "tc", "filter", "add", "dev", "lo", "parent", "1", ":", "0", "protocol", "ip", "prio", "1", "\\", "u", "3", "2", "match", "ip", "dst", "127", "127", "127", "127", "flowid", "2", ":", "1", "sudo", "ip", "addr", "add", "dev", "lo", "127", "127", "127", "12732", "label", "lo", ":", "benchmark" ]
[ "private", "static", "inet", "address", "build", "benchmark", "addr", "(", ")", "{", "inet", "address", "tmp", "=", "null", ";", "try", "{", "enumeration", "<", "network", "interface", ">", "network", "interfaces", "=", "network", "interface", "get", "network", "interfaces", "(", ")", ";", "outer", ":", "while", "(", "network", "interfaces", "has", "more", "elements", "(", ")", ")", "{", "network", "interface", "network", "interface", "=", "network", "interfaces", "next", "element", "(", ")", ";", "if", "(", "!", "network", "interface", "is", "loopback", "(", ")", ")", "{", "continue", ";", "}", "enumeration", "<", "network", "interface", ">", "sub", "interfaces", "=", "network", "interface", "get", "sub", "interfaces", "(", ")", ";", "while", "(", "sub", "interfaces", "has", "more", "elements", "(", ")", ")", "{", "network", "interface", "sub", "loopback", "=", "sub", "interfaces", "next", "element", "(", ")", ";", "if", "(", "sub", "loopback", "get", "display", "name", "(", ")", "contains", "(", "\"", "benchmark", "\"", ")", ")", "{", "tmp", "=", "sub", "loopback", "get", "inet", "addresses", "(", ")", "next", "element", "(", ")", ";", "system", "out", "println", "(", "\"", "\\", "n", "resolved", "benchmark", "address", "to", "\"", "+", "tmp", "+", "\"", "on", "\"", "+", "sub", "loopback", "get", "display", "name", "(", ")", "+", "\"", "\\", "n", "\\", "n", "\"", ")", ";", "break", "outer", ";", "}", "}", "}", "}", "catch", "(", "socket", "exception", "se", ")", "{", "system", "out", "println", "(", "\"", "\\", "n", "w", "a", "r", "n", "i", "n", "g", ":", "error", "trying", "to", "resolve", "benchmark", "interface", "\\", "n", "\"", "+", "se", ")", ";", "}", "if", "(", "tmp", "=", "=", "null", ")", "{", "try", "{", "system", "out", "println", "(", "\"", "\\", "n", "w", "a", "r", "n", "i", "n", "g", ":", "unable", "to", "resolve", "benchmark", "interface", ",", "defaulting", "to", "localhost", "\"", ")", ";", "tmp", "=", "inet", "address", "get", "local", "host", "(", ")", ";", "}", "catch", "(", "unknown", "host", "exception", "uhe", ")", "{", "throw", "new", "runtime", "exception", "(", "uhe", ")", ";", "}", "}", "return", "tmp", ";", "}" ]
[ "initializes", "the", "authentication", "handler", "instance", "this", "method", "is", "invoked", "by", "the", "{", "@", "link", "authentication", "filter", "#", "init", "}", "method" ]
[ "public", "void", "init", "(", "properties", "config", ")", "throws", "servlet", "exception", ";" ]
[ "setup", "a", "connection", "failure", "scenario" ]
[ "public", "void", "set", "up", "(", ")", "throws", "s", "q", "l", "exception", "{", "dao", "=", "new", "hotel", "dao", "impl", "(", "mocked", "datasource", "(", ")", ")", ";", "}" ]
[ "gets", "a", "byte", "at", "the", "specified", "absolute", "{", "@", "code", "index", "}", "in", "this", "buffer", "this", "method", "does", "not", "modify", "{", "@", "code", "reader", "index", "}", "or", "{", "@", "code", "writer", "index", "}", "of", "this", "buffer" ]
[ "byte", "get", "byte", "(", "int", "index", ")", ";" ]