docstring_tokens
list
code_tokens
list
[ "adjusts", "a", "seek", "position", "given", "the", "specified", "{", "@", "link", "seek", "parameters", "}", "chunk", "boundaries", "are", "used", "as", "sync", "points" ]
[ "public", "long", "get", "adjusted", "seek", "position", "us", "(", "long", "position", "us", ",", "seek", "parameters", "seek", "parameters", ")", "{", "return", "chunk", "source", "get", "adjusted", "seek", "position", "us", "(", "position", "us", ",", "seek", "parameters", ")", ";", "}" ]
[ "throw", "exception", "if", "needed" ]
[ "public", "void", "throw", "exception", "if", "needed", "(", ")", "{", "if", "(", "is", "execution", "failure", "(", ")", ")", "{", "throw", "get", "exception", "(", ")", "get", "(", ")", ";", "}", "}" ]
[ "returns", "true", "if", "field", "host", "is", "set", "(", "has", "been", "assigned", "a", "value", ")", "and", "false", "otherwise" ]
[ "public", "boolean", "is", "set", "host", "(", ")", "{", "return", "this", "host", "!", "=", "null", ";", "}" ]
[ "the", "series", "of", "types", "defined", "by", "the", "package", "<", "code", ">", "repeated", "aapt", "pb", "type", "type", "=", "3", ";", "<", "code", ">" ]
[ "private", "void", "set", "type", "(", "int", "index", ",", "com", "android", "aapt", "resources", "type", "value", ")", "{", "if", "(", "value", "=", "=", "null", ")", "{", "throw", "new", "null", "pointer", "exception", "(", ")", ";", "}", "ensure", "type", "is", "mutable", "(", ")", ";", "type", "set", "(", "index", ",", "value", ")", ";", "}" ]
[ "if", "this", "{", "@", "link", "loader", "}", "supports", "loading", "the", "given", "{", "@", "link", "byte", "provider", "}", ",", "this", "methods", "returns", "a", "{", "@", "link", "collection", "}", "of", "all", "supported", "{", "@", "link", "load", "spec", "}", "s", "that", "contain", "discovered", "load", "specification", "information", "that", "this", "{", "@", "link", "loader", "}", "will", "need", "to", "load", "if", "this", "{", "@", "link", "loader", "}", "cannot", "support", "loading", "the", "given", "{", "@", "link", "byte", "provider", "}", ",", "an", "empty", "{", "@", "link", "collection", "}", "is", "returned" ]
[ "public", "collection", "<", "load", "spec", ">", "find", "supported", "load", "specs", "(", "byte", "provider", "provider", ")", "throws", "i", "o", "exception", ";" ]
[ "check", "if", "client", "is", "interrupted", "after", "handling", "interrupted", "exception", "during", "cleanup" ]
[ "public", "void", "test", "interrupted", "(", ")", "{", "client", "client", "=", "new", "client", "(", "long", "writable", "class", ",", "conf", ")", ";", "client", "get", "client", "executor", "(", ")", "submit", "(", "new", "runnable", "(", ")", "{", "public", "void", "run", "(", ")", "{", "while", "(", "true", ")", ";", "}", "}", ")", ";", "thread", "current", "thread", "(", ")", "interrupt", "(", ")", ";", "client", "stop", "(", ")", ";", "try", "{", "assert", "true", "(", "thread", "current", "thread", "(", ")", "is", "interrupted", "(", ")", ")", ";", "log", "info", "(", "\"", "expected", "thread", "interrupt", "during", "client", "cleanup", "\"", ")", ";", "}", "catch", "(", "assertion", "error", "e", ")", "{", "log", "error", "(", "\"", "the", "client", "did", "not", "interrupt", "after", "handling", "an", "interrupted", "exception", "\"", ")", ";", "assert", "fail", "(", "\"", "the", "client", "did", "not", "interrupt", "after", "handling", "an", "interrupted", "exception", "\"", ")", ";", "}", "/", "/", "clear", "thread", "interrupt", "thread", "interrupted", "(", ")", ";", "}" ]
[ "case", "1", ":", "both", "names", "changed", ",", "no", "structure", "changes" ]
[ "private", "void", "names", "changed", "(", "program", "module", "source", "root", ",", "program", "module", "dest", "root", ",", "program", "module", "orig", "root", ",", "int", "conflict", "index", ")", "throws", "cancelled", "exception", "{", "string", "source", "tree", "name", "=", "source", "root", "get", "tree", "name", "(", ")", ";", "string", "dest", "tree", "name", "=", "dest", "root", "get", "tree", "name", "(", ")", ";", "string", "orig", "tree", "name", "=", "orig", "root", "get", "tree", "name", "(", ")", ";", "if", "(", "only", "names", "changed", "choice", "=", "=", "ask", "user", "&", "&", "conflict", "option", "=", "=", "ask", "user", "&", "&", "merge", "manager", "!", "=", "null", ")", "{", "wait", "for", "user", "input", "(", "source", "tree", "name", ",", "dest", "tree", "name", ",", "orig", "tree", "name", ",", "conflict", "index", ",", "true", ",", "false", ",", "true", ",", "false", ")", ";", "if", "(", "conflict", "option", "=", "=", "canceled", ")", "{", "throw", "new", "cancelled", "exception", "(", ")", ";", "}", "/", "/", "if", "the", "\"", "use", "for", "all", "\"", "check", "box", "is", "selected", "/", "/", "then", "save", "the", "option", "chosen", "for", "this", "conflict", "type", "if", "(", "merge", "panel", "get", "use", "for", "all", "(", ")", ")", "{", "only", "names", "changed", "choice", "=", "conflict", "option", ";", "}", "}", "int", "option", "to", "use", "=", "(", "only", "names", "changed", "choice", "=", "=", "ask", "user", ")", "?", "conflict", "option", ":", "only", "names", "changed", "choice", ";", "switch", "(", "option", "to", "use", ")", "{", "case", "keep", "other", "name", ":", "/", "/", "no", "action", "required", "break", ";", "case", "keep", "private", "name", ":", "try", "{", "result", "listing", "rename", "tree", "(", "dest", "tree", "name", ",", "get", "unique", "tree", "name", "(", "source", "tree", "name", ")", ")", ";", "}", "catch", "(", "duplicate", "name", "exception", "e", ")", "{", "}", "break", ";", "case", "add", "new", "tree", ":", "create", "tree", "(", "result", "listing", ",", "source", "tree", "name", ",", "source", "root", ")", ";", "break", ";", "case", "rename", "private", ":", "try", "{", "result", "listing", "rename", "tree", "(", "source", "tree", "name", ",", "get", "unique", "tree", "name", "(", "source", "tree", "name", ")", ")", ";", "}", "catch", "(", "duplicate", "name", "exception", "e", "2", ")", "{", "}", "break", ";", "case", "original", "name", ":", "try", "{", "result", "listing", "rename", "tree", "(", "dest", "tree", "name", ",", "get", "unique", "tree", "name", "(", "orig", "tree", "name", ")", ")", ";", "}", "catch", "(", "duplicate", "name", "exception", "e", "2", ")", "{", "}", "break", ";", "case", "canceled", ":", "throw", "new", "cancelled", "exception", "(", ")", ";", "}", "conflict", "option", "=", "ask", "user", ";", "}" ]
[ "override", "this", "method", "to", "add", "custom", "{", "@", "link", "http", "message", "converter", "http", "message", "converters", "}", "to", "use", "with", "the", "{", "@", "link", "request", "mapping", "handler", "adapter", "}", "and", "the", "{", "@", "link", "exception", "handler", "exception", "resolver", "}", "adding", "converters", "to", "the", "list", "turns", "off", "the", "default", "converters", "that", "would", "otherwise", "be", "registered", "by", "default", "also", "see", "{", "@", "link", "#", "add", "default", "http", "message", "converters", "}", "for", "adding", "default", "message", "converters" ]
[ "protected", "void", "configure", "message", "converters", "(", "list", "<", "http", "message", "converter", "<", "?", ">", ">", "converters", ")", "{", "}" ]
[ "tests", "an", "invalid", "dependency", "where", "the", "depender", "doesn", "'", "t", "\"", "know", "\"", "about", "one", "of", "the", "dependency", "'", "s", "groups", ",", "the", "depender", "implicitly", "supports", "that", "group", "'", "s", "defaults", ",", "and", "one", "of", "those", "defaults", "isn", "'", "t", "accounted", "for", "in", "the", "dependency" ]
[ "public", "void", "invalid", "constraints", "unknown", "environment", "to", "dependender", "(", ")", "throws", "exception", "{", "new", "environment", "group", "maker", "(", "\"", "buildenv", "/", "foo", "\"", ")", "set", "environments", "(", "\"", "a", "\"", ",", "\"", "b", "\"", ",", "\"", "c", "\"", ")", "set", "defaults", "(", "\"", "a", "\"", ")", "make", "(", ")", ";", "scratch", "file", "(", "\"", "hello", "/", "build", "\"", ",", "get", "dependency", "rule", "(", "constrained", "to", "(", "\"", "/", "/", "buildenv", "/", "foo", ":", "b", "\"", ")", ")", ",", "get", "depending", "rule", "(", ")", ")", ";", "reporter", "remove", "handler", "(", "fail", "fast", "handler", ")", ";", "assert", "that", "(", "get", "configured", "target", "(", "\"", "/", "/", "hello", ":", "main", "\"", ")", ")", "is", "null", "(", ")", ";", "assert", "contains", "event", "(", "\"", "dependency", "/", "/", "hello", ":", "dep", "doesn", "'", "t", "support", "expected", "environment", ":", "/", "/", "buildenv", "/", "foo", ":", "a", "\"", ")", ";", "}" ]
[ "initialize", "the", "registry", "with", "all", "the", "methods", "in", "a", "protocol", "so", "they", "all", "show", "up", "in", "the", "first", "snapshot", "convenient", "for", "jmx", "implementations" ]
[ "public", "void", "init", "(", "class", "<", "?", ">", "protocol", ")", "{", "if", "(", "protocol", "cache", "contains", "(", "protocol", ")", ")", "{", "return", ";", "}", "protocol", "cache", "add", "(", "protocol", ")", ";", "for", "(", "method", "method", ":", "protocol", "get", "declared", "methods", "(", ")", ")", "{", "string", "name", "=", "method", "get", "name", "(", ")", ";", "log", "debug", "(", "name", ")", ";", "add", "metric", "if", "not", "exists", "(", "name", ")", ";", "}", "}" ]
[ "formats", "a", "byte", "number", "as", "a", "human", "readable", "string", "(", "\"", "3", "2", "mb", "\"", ")" ]
[ "public", "static", "string", "format", "bytes", "(", "long", "bytes", ")", "{", "if", "(", "bytes", "<", "0", ")", "{", "return", "string", "value", "of", "(", "bytes", ")", ";", "}", "double", "as", "double", "=", "(", "double", ")", "bytes", ";", "int", "ordinal", "=", "(", "int", ")", "math", "floor", "(", "math", "log", "(", "as", "double", ")", "/", "math", "log", "(", "1024", "0", ")", ")", ";", "double", "scale", "=", "math", "pow", "(", "1024", "0", ",", "ordinal", ")", ";", "double", "scaled", "=", "as", "double", "/", "scale", ";", "string", "formatted", "=", "two", "digit", "format", "format", "(", "scaled", ")", ";", "try", "{", "return", "formatted", "+", "\"", "\"", "+", "byte", "scale", "suffixes", "[", "ordinal", "]", ";", "}", "catch", "(", "index", "out", "of", "bounds", "exception", "e", ")", "{", "/", "/", "huge", "number", "?", "return", "string", "value", "of", "(", "as", "double", ")", ";", "}", "}" ]
[ "returns", "all", "of", "the", "concrete", "indices", "that", "are", "closed" ]
[ "public", "string", "[", "]", "get", "concrete", "all", "closed", "indices", "(", ")", "{", "return", "all", "closed", "indices", ";", "}" ]
[ "test", "the", "property", "'", "user", "status", "'" ]
[ "public", "void", "user", "status", "test", "(", ")", "{", "/", "/", "todo", ":", "test", "user", "status", "}" ]
[ "returns", "a", "predicate", "that", "evaluates", "to", "{", "@", "code", "true", "}", "if", "the", "object", "reference", "being", "tested", "is", "null" ]
[ "public", "static", "<", "t", ">", "predicate", "<", "t", ">", "is", "null", "(", ")", "{", "return", "object", "predicate", "is", "null", "with", "narrowed", "type", "(", ")", ";", "}" ]
[ "returns", "a", "thread", "-", "pool", "mainly", "used", "to", "get", "estimated", "time", "stamps", "from", "{", "@", "link", "org", "elasticsearch", "threadpool", "thread", "pool", "#", "relative", "time", "in", "millis", "(", ")", "}", "and", "to", "schedule", "async", "force", "merge", "calls", "on", "the", "{", "@", "link", "org", "elasticsearch", "threadpool", "thread", "pool", "names", "#", "force", "merge", "}", "thread", "-", "pool" ]
[ "public", "thread", "pool", "get", "thread", "pool", "(", ")", "{", "return", "thread", "pool", ";", "}" ]
[ "only", "select", "process", "instances", "which", "have", "a", "local", "string", "variable", "with", "the", "given", "value", ",", "case", "insensitive", "this", "method", "only", "works", "if", "your", "database", "has", "encodingcollation", "that", "supports", "case", "-", "sensitive", "queries", "for", "example", ",", "use", "\"", "collate", "utf", "-", "8", "\"", "on", "my", "s", "q", "l", "and", "for", "mssql", ",", "select", "one", "of", "the", "case", "-", "sensitive", "collations", "available", "(", "<", "a", "href", "=", "\"", "http", ":", "msdn", "microsoft", "comen", "-", "uslibraryms", "1", "4", "4", "2", "5", "0", "(", "v", "=", "sql", "105", ")", "aspx", "\"", ">", "msdn", "server", "collation", "reference", ")" ]
[ "process", "instance", "query", "variable", "value", "equals", "ignore", "case", "(", "string", "name", ",", "string", "value", ")", ";" ]
[ "gets", "the", "next", "element" ]
[ "public", "tree", "node", "<", "t", ">", "next", "(", ")", "throws", "no", "such", "element", "exception", "{", "if", "(", "path", "stack", "is", "empty", "(", ")", ")", "{", "throw", "new", "no", "such", "element", "exception", "(", ")", ";", "}", "var", "next", "=", "path", "stack", "pop", "(", ")", ";", "push", "path", "to", "next", "smallest", "(", "next", "get", "right", "(", ")", ")", ";", "return", "next", ";", "}" ]
[ "creates", "a", "memory", "reference", "from", "the", "given", "data" ]
[ "public", "final", "reference", "create", "memory", "reference", "(", "data", "data", ",", "address", "to", "address", ",", "ref", "type", "data", "ref", "type", ")", "{", "reference", "manager", "reference", "manager", "=", "current", "program", "get", "reference", "manager", "(", ")", ";", "reference", "ref", "=", "reference", "manager", "add", "memory", "reference", "(", "data", "get", "min", "address", "(", ")", ",", "to", "address", ",", "data", "ref", "type", ",", "source", "type", "user", "defined", ",", "0", ")", ";", "return", "ref", ";", "}" ]
[ "helper", "method", "for", "merging", "the", "registration", "responses", "from", "the", "secondary", "sub", "cluster", "r", "ms", "into", "the", "allocate", "response", "to", "return", "to", "the", "am" ]
[ "private", "void", "merge", "registration", "responses", "(", "allocate", "response", "home", "response", ",", "map", "<", "sub", "cluster", "id", ",", "register", "application", "master", "response", ">", "registrations", ")", "{", "for", "(", "entry", "<", "sub", "cluster", "id", ",", "register", "application", "master", "response", ">", "entry", ":", "registrations", "entry", "set", "(", ")", ")", "{", "register", "application", "master", "response", "registration", "=", "entry", "get", "value", "(", ")", ";", "if", "(", "!", "is", "null", "or", "empty", "(", "registration", "get", "containers", "from", "previous", "attempts", "(", ")", ")", ")", "{", "list", "<", "container", ">", "temp", "containers", "=", "home", "response", "get", "allocated", "containers", "(", ")", ";", "if", "(", "!", "is", "null", "or", "empty", "(", "temp", "containers", ")", ")", "{", "temp", "containers", "add", "all", "(", "registration", "get", "containers", "from", "previous", "attempts", "(", ")", ")", ";", "home", "response", "set", "allocated", "containers", "(", "temp", "containers", ")", ";", "}", "else", "{", "home", "response", "set", "allocated", "containers", "(", "registration", "get", "containers", "from", "previous", "attempts", "(", ")", ")", ";", "}", "cache", "allocated", "containers", "(", "registration", "get", "containers", "from", "previous", "attempts", "(", ")", ",", "entry", "get", "key", "(", ")", ")", ";", "}", "if", "(", "!", "is", "null", "or", "empty", "(", "registration", "get", "n", "m", "tokens", "from", "previous", "attempts", "(", ")", ")", ")", "{", "list", "<", "n", "m", "token", ">", "temp", "tokens", "=", "home", "response", "get", "n", "m", "tokens", "(", ")", ";", "if", "(", "!", "is", "null", "or", "empty", "(", "temp", "tokens", ")", ")", "{", "temp", "tokens", "add", "all", "(", "registration", "get", "n", "m", "tokens", "from", "previous", "attempts", "(", ")", ")", ";", "home", "response", "set", "n", "m", "tokens", "(", "temp", "tokens", ")", ";", "}", "else", "{", "home", "response", "set", "n", "m", "tokens", "(", "registration", "get", "n", "m", "tokens", "from", "previous", "attempts", "(", ")", ")", ";", "}", "}", "}", "}" ]
[ "return", "the", "configured", "argument", "resolvers", ",", "or", "possibly", "{", "@", "code", "null", "}", "if", "not", "initialized", "yet", "via", "{", "@", "link", "#", "after", "properties", "set", "(", ")", "}" ]
[ "public", "handler", "method", "argument", "resolver", "composite", "get", "argument", "resolvers", "(", ")", "{", "return", "this", "argument", "resolvers", ";", "}" ]
[ "adds", "a", "listener", "that", "will", "be", "called", "using", "the", "given", "executor", "when", "events", "are", "later", "{", "@", "link", "#", "enqueue", "enqueued", "}", "and", "{", "@", "link", "#", "dispatch", "dispatched", "}" ]
[ "public", "void", "add", "listener", "(", "l", "listener", ",", "executor", "executor", ")", "{", "check", "not", "null", "(", "listener", ",", "\"", "listener", "\"", ")", ";", "check", "not", "null", "(", "executor", ",", "\"", "executor", "\"", ")", ";", "listeners", "add", "(", "new", "per", "listener", "queue", "<", ">", "(", "listener", ",", "executor", ")", ")", ";", "}" ]
[ "invoked", "when", "a", "matching", "mapping", "is", "found" ]
[ "protected", "void", "handle", "match", "(", "t", "mapping", ",", "string", "lookup", "path", ",", "http", "servlet", "request", "request", ")", "{", "request", "set", "attribute", "(", "handler", "mapping", "path", "within", "handler", "mapping", "attribute", ",", "lookup", "path", ")", ";", "}" ]
[ "sequence", "1", "filter", "a", "gt", "1", "by", "a", "2", "filter", "x", "by", "a", "=", "=", "sequence", "1", "filter", "a", "gt", "1", "by", "a", "2", "filter", "a", "gt", "1", "by", "a", "\\", "filter", "x" ]
[ "public", "void", "test", "key", "same", "constraints", "(", ")", "{", "attribute", "a", "=", "key", "(", "\"", "a", "\"", ")", ";", "expression", "key", "condition", "=", "gt", "expression", "(", "a", ")", ";", "expression", "filter", "=", "equals", "expression", "(", ")", ";", "keyed", "filter", "rule", "1", "=", "keyed", "filter", "(", "basic", "filter", "(", "key", "condition", ")", ",", "a", ")", ";", "keyed", "filter", "rule", "2", "=", "keyed", "filter", "(", "basic", "filter", "(", "filter", ")", ",", "a", ")", ";", "sequence", "s", "=", "sequence", "(", "rule", "1", ",", "rule", "2", ")", ";", "logical", "plan", "result", "=", "new", "optimizer", "propagate", "join", "key", "constraints", "(", ")", "apply", "(", "s", ")", ";", "assert", "equals", "(", "sequence", "class", ",", "result", "get", "class", "(", ")", ")", ";", "sequence", "seq", "=", "(", "sequence", ")", "result", ";", "list", "<", "keyed", "filter", ">", "queries", "=", "seq", "queries", "(", ")", ";", "assert", "equals", "(", "rule", "1", ",", "queries", "get", "(", "0", ")", ")", ";", "keyed", "filter", "query", "2", "=", "queries", "get", "(", "1", ")", ";", "assert", "equals", "(", "key", "condition", ",", "filter", "condition", "(", "query", "2", "child", "(", ")", ")", ")", ";", "assert", "equals", "(", "filter", ",", "filter", "condition", "(", "query", "2", "child", "(", ")", "children", "(", ")", "get", "(", "0", ")", ")", ")", ";", "}" ]
[ "completely", "replaces", "the", "acl", "with", "the", "entries", "of", "the", "acl", "spec", "if", "necessary", ",", "recalculates", "the", "mask", "entries", "if", "necessary", ",", "default", "entries", "are", "inferred", "by", "copying", "the", "permissions", "of", "the", "corresponding", "access", "entries", "replacement", "occurs", "separately", "for", "each", "of", "the", "access", "acl", "and", "the", "default", "acl", "if", "the", "acl", "spec", "contains", "only", "access", "entries", ",", "then", "the", "existing", "default", "entries", "are", "retained", "if", "the", "acl", "spec", "contains", "only", "default", "entries", ",", "then", "the", "existing", "access", "entries", "are", "retained", "if", "the", "acl", "spec", "contains", "both", "access", "and", "default", "entries", ",", "then", "both", "are", "replaced" ]
[ "public", "static", "list", "<", "acl", "entry", ">", "replace", "acl", "entries", "(", "list", "<", "acl", "entry", ">", "existing", "acl", ",", "list", "<", "acl", "entry", ">", "in", "acl", "spec", ")", "throws", "acl", "exception", "{", "validated", "acl", "spec", "acl", "spec", "=", "new", "validated", "acl", "spec", "(", "in", "acl", "spec", ")", ";", "array", "list", "<", "acl", "entry", ">", "acl", "builder", "=", "lists", "new", "array", "list", "with", "capacity", "(", "max", "entries", ")", ";", "/", "/", "replacement", "is", "done", "separately", "for", "each", "scope", ":", "access", "and", "default", "enum", "map", "<", "acl", "entry", "scope", ",", "acl", "entry", ">", "provided", "mask", "=", "maps", "new", "enum", "map", "(", "acl", "entry", "scope", "class", ")", ";", "enum", "set", "<", "acl", "entry", "scope", ">", "mask", "dirty", "=", "enum", "set", "none", "of", "(", "acl", "entry", "scope", "class", ")", ";", "enum", "set", "<", "acl", "entry", "scope", ">", "scope", "dirty", "=", "enum", "set", "none", "of", "(", "acl", "entry", "scope", "class", ")", ";", "for", "(", "acl", "entry", "acl", "spec", "entry", ":", "acl", "spec", ")", "{", "scope", "dirty", "add", "(", "acl", "spec", "entry", "get", "scope", "(", ")", ")", ";", "if", "(", "acl", "spec", "entry", "get", "type", "(", ")", "=", "=", "mask", ")", "{", "provided", "mask", "put", "(", "acl", "spec", "entry", "get", "scope", "(", ")", ",", "acl", "spec", "entry", ")", ";", "mask", "dirty", "add", "(", "acl", "spec", "entry", "get", "scope", "(", ")", ")", ";", "}", "else", "{", "acl", "builder", "add", "(", "acl", "spec", "entry", ")", ";", "}", "}", "/", "/", "copy", "existing", "entries", "if", "the", "scope", "was", "not", "replaced", "for", "(", "acl", "entry", "existing", "entry", ":", "existing", "acl", ")", "{", "if", "(", "!", "scope", "dirty", "contains", "(", "existing", "entry", "get", "scope", "(", ")", ")", ")", "{", "if", "(", "existing", "entry", "get", "type", "(", ")", "=", "=", "mask", ")", "{", "provided", "mask", "put", "(", "existing", "entry", "get", "scope", "(", ")", ",", "existing", "entry", ")", ";", "}", "else", "{", "acl", "builder", "add", "(", "existing", "entry", ")", ";", "}", "}", "}", "copy", "defaults", "if", "needed", "(", "acl", "builder", ")", ";", "calculate", "masks", "(", "acl", "builder", ",", "provided", "mask", ",", "mask", "dirty", ",", "scope", "dirty", ")", ";", "return", "build", "and", "validate", "acl", "(", "acl", "builder", ")", ";", "}" ]
[ "get", "float", "item" ]
[ "public", "float", "get", "float", "item", "(", ")", "{", "return", "float", "item", ";", "}" ]
[ "returns", "the", "number", "of", "slices", "this", "bulk", "by", "scroll", "request", "will", "use" ]
[ "public", "int", "get", "slices", "(", ")", "{", "return", "slices", ";", "}" ]
[ "compute", "the", "default", "value", "of", "the", "context", "register", "at", "the", "given", "address" ]
[ "public", "assembly", "pattern", "block", "get", "default", "at", "(", "address", "addr", ")", "{", "return", "new", "assembly", "default", "context", "(", "lang", ",", "addr", ")", "get", "default", "(", ")", ";", "}" ]
[ "deletes", "a", "pet" ]
[ "public", "api", "response", "<", "void", ">", "delete", "pet", "with", "http", "info", "(", "long", "pet", "id", ",", "string", "api", "key", ")", "throws", "api", "exception", "{", "object", "local", "var", "post", "body", "=", "null", ";", "/", "/", "verify", "the", "required", "parameter", "'", "pet", "id", "'", "is", "set", "if", "(", "pet", "id", "=", "=", "null", ")", "{", "throw", "new", "api", "exception", "(", "400", ",", "\"", "missing", "the", "required", "parameter", "'", "pet", "id", "'", "when", "calling", "delete", "pet", "\"", ")", ";", "}", "/", "/", "create", "path", "and", "map", "variables", "string", "local", "var", "path", "=", "\"", "/", "pet", "/", "{", "pet", "id", "}", "\"", "replace", "all", "(", "\"", "\\", "\\", "{", "\"", "+", "\"", "pet", "id", "\"", "+", "\"", "\\", "\\", "}", "\"", ",", "api", "client", "escape", "string", "(", "pet", "id", "to", "string", "(", ")", ")", ")", ";", "/", "/", "query", "params", "list", "<", "pair", ">", "local", "var", "query", "params", "=", "new", "array", "list", "<", "pair", ">", "(", ")", ";", "map", "<", "string", ",", "string", ">", "local", "var", "header", "params", "=", "new", "hash", "map", "<", "string", ",", "string", ">", "(", ")", ";", "map", "<", "string", ",", "string", ">", "local", "var", "cookie", "params", "=", "new", "hash", "map", "<", "string", ",", "string", ">", "(", ")", ";", "map", "<", "string", ",", "object", ">", "local", "var", "form", "params", "=", "new", "hash", "map", "<", "string", ",", "object", ">", "(", ")", ";", "if", "(", "api", "key", "!", "=", "null", ")", "local", "var", "header", "params", "put", "(", "\"", "api", "key", "\"", ",", "api", "client", "parameter", "to", "string", "(", "api", "key", ")", ")", ";", "final", "string", "[", "]", "local", "var", "accepts", "=", "{", "}", ";", "final", "string", "local", "var", "accept", "=", "api", "client", "select", "header", "accept", "(", "local", "var", "accepts", ")", ";", "final", "string", "[", "]", "local", "var", "content", "types", "=", "{", "}", ";", "final", "string", "local", "var", "content", "type", "=", "api", "client", "select", "header", "content", "type", "(", "local", "var", "content", "types", ")", ";", "string", "[", "]", "local", "var", "auth", "names", "=", "new", "string", "[", "]", "{", "\"", "petstore", "auth", "\"", "}", ";", "return", "api", "client", "invoke", "a", "p", "i", "(", "\"", "pet", "api", "delete", "pet", "\"", ",", "local", "var", "path", ",", "\"", "delete", "\"", ",", "local", "var", "query", "params", ",", "local", "var", "post", "body", ",", "local", "var", "header", "params", ",", "local", "var", "cookie", "params", ",", "local", "var", "form", "params", ",", "local", "var", "accept", ",", "local", "var", "content", "type", ",", "local", "var", "auth", "names", ",", "null", ",", "false", ")", ";", "}" ]
[ "creates", "an", "aspect", "with", "a", "class", "named", "{", "@", "code", "class", "name", "}", "advertizing", "a", "provider", "{", "@", "code", "class", "name", "}", "that", "requires", "any", "of", "providers", "{", "@", "code", "required", "aspects", "}" ]
[ "private", "aspect", "create", "aspect", "(", "final", "string", "class", "name", ",", "string", "required", "aspects", ")", "{", "immutable", "list", "builder", "<", "immutable", "set", "<", "starlark", "provider", "identifier", ">", ">", "required", "providers", "builder", "=", "immutable", "list", "builder", "(", ")", ";", "for", "(", "string", "required", "aspect", ":", "required", "aspects", ")", "{", "required", "providers", "builder", "add", "(", "immutable", "set", "of", "(", "(", "starlark", "provider", "identifier", "for", "legacy", "(", "required", "aspect", ")", ")", ")", ")", ";", "}", "final", "immutable", "list", "<", "immutable", "set", "<", "starlark", "provider", "identifier", ">", ">", "required", "providers", "=", "required", "providers", "builder", "build", "(", ")", ";", "return", "aspect", "for", "native", "(", "new", "native", "aspect", "class", "(", ")", "{", "@", "override", "public", "string", "get", "name", "(", ")", "{", "return", "class", "name", ";", "}", "@", "override", "public", "aspect", "definition", "get", "definition", "(", "aspect", "parameters", "aspect", "parameters", ")", "{", "return", "aspect", "definition", "builder", "(", "this", ")", "require", "aspects", "with", "providers", "(", "required", "providers", ")", "advertise", "provider", "(", "immutable", "list", "of", "(", "starlark", "provider", "identifier", "for", "legacy", "(", "class", "name", ")", ")", ")", "build", "(", ")", ";", "}", "}", ")", ";", "}" ]
[ "returns", "the", "wrapped", "timeline" ]
[ "public", "timeline", "get", "timeline", "(", ")", "{", "return", "timeline", ";", "}" ]
[ "waits", "for", "all", "operations", "up", "to", "the", "provided", "sequence", "number", "to", "complete" ]
[ "public", "synchronized", "void", "wait", "for", "processed", "ops", "to", "complete", "(", "final", "long", "seq", "no", ")", "throws", "interrupted", "exception", "{", "while", "(", "processed", "checkpoint", "get", "(", ")", "<", "seq", "no", ")", "{", "/", "/", "notified", "by", "update", "checkpoint", "this", "wait", "(", ")", ";", "}", "}" ]
[ "get", "the", "booleans", "on", "whether", "the", "files", "are", "public", "or", "not", "used", "by", "internal", "distributed", "cache", "and", "map", "reduce", "code" ]
[ "public", "static", "boolean", "[", "]", "get", "file", "visibilities", "(", "configuration", "conf", ")", "{", "return", "parse", "booleans", "(", "conf", "get", "strings", "(", "m", "r", "job", "config", "cache", "file", "visibilities", ")", ")", ";", "}" ]
[ "get", "assisted", "query", "columns" ]
[ "public", "collection", "<", "string", ">", "get", "assisted", "query", "columns", "(", "final", "string", "logic", "table", ")", "{", "return", "tables", "contains", "key", "(", "logic", "table", ")", "?", "tables", "get", "(", "logic", "table", ")", "get", "assisted", "query", "columns", "(", ")", ":", "collections", "empty", "list", "(", ")", ";", "}" ]
[ "invalid", "usernamepassword", "supplied" ]
[ "public", "void", "should", "see", "4", "0", "0", "after", "login", "user", "(", ")", "{", "string", "username", "=", "null", ";", "string", "password", "=", "null", ";", "api", "login", "user", "(", ")", "username", "query", "(", "username", ")", "password", "query", "(", "password", ")", "execute", "(", "r", "-", ">", "r", "pretty", "peek", "(", ")", ")", ";", "/", "/", "todo", ":", "test", "validations", "}" ]
[ "sets", "this", "node", "to", "be", "terminal", ",", "and", "the", "user", "item" ]
[ "void", "set", "terminal", "(", "t", "item", ")", "{", "this", "id", "and", "terminality", "|", "=", "terminal", "mask", ";", "this", "item", "=", "item", ";", "}" ]
[ "looks", "up", "the", "{", "@", "link", "scheduling", "execution", "vertex", "}", "for", "the", "given", "{", "@", "link", "execution", "vertex", "i", "d", "}" ]
[ "scheduling", "execution", "vertex", "get", "vertex", "(", "execution", "vertex", "i", "d", "execution", "vertex", "id", ")", ";" ]
[ "test", "the", "property", "'", "message", "'" ]
[ "public", "void", "message", "test", "(", ")", "{", "/", "/", "todo", ":", "test", "message", "}" ]
[ "gets", "only", "one", "{", "@", "link", "simple", "page", "decorator", "}" ]
[ "public", "static", "simple", "page", "decorator", "get", "simple", "page", "decorator", "(", ")", "{", "return", "simple", "page", "decorator", "first", "(", ")", ";", "}" ]
[ "returns", "the", "empty", "multimap" ]
[ "public", "static", "<", "k", ",", "v", ">", "immutable", "list", "multimap", "<", "k", ",", "v", ">", "of", "(", ")", "{", "return", "(", "immutable", "list", "multimap", "<", "k", ",", "v", ">", ")", "empty", "immutable", "list", "multimap", "instance", ";", "}" ]
[ "test", "the", "property", "'", "bool", "item", "'" ]
[ "public", "void", "bool", "item", "test", "(", ")", "{", "/", "/", "todo", ":", "test", "bool", "item", "}" ]
[ "deep", "equality", "for", "tuples", "by", "calling", "equals", "(", ")", "on", "the", "tuple", "members" ]
[ "public", "boolean", "equals", "(", "object", "o", ")", "{", "if", "(", "this", "=", "=", "o", ")", "{", "return", "true", ";", "}", "if", "(", "!", "(", "o", "instanceof", "tuple", "9", ")", ")", "{", "return", "false", ";", "}", "@", "suppress", "warnings", "(", "\"", "rawtypes", "\"", ")", "tuple", "9", "tuple", "=", "(", "tuple", "9", ")", "o", ";", "if", "(", "f", "0", "!", "=", "null", "?", "!", "f", "0", "equals", "(", "tuple", "f", "0", ")", ":", "tuple", "f", "0", "!", "=", "null", ")", "{", "return", "false", ";", "}", "if", "(", "f", "1", "!", "=", "null", "?", "!", "f", "1", "equals", "(", "tuple", "f", "1", ")", ":", "tuple", "f", "1", "!", "=", "null", ")", "{", "return", "false", ";", "}", "if", "(", "f", "2", "!", "=", "null", "?", "!", "f", "2", "equals", "(", "tuple", "f", "2", ")", ":", "tuple", "f", "2", "!", "=", "null", ")", "{", "return", "false", ";", "}", "if", "(", "f", "3", "!", "=", "null", "?", "!", "f", "3", "equals", "(", "tuple", "f", "3", ")", ":", "tuple", "f", "3", "!", "=", "null", ")", "{", "return", "false", ";", "}", "if", "(", "f", "4", "!", "=", "null", "?", "!", "f", "4", "equals", "(", "tuple", "f", "4", ")", ":", "tuple", "f", "4", "!", "=", "null", ")", "{", "return", "false", ";", "}", "if", "(", "f", "5", "!", "=", "null", "?", "!", "f", "5", "equals", "(", "tuple", "f", "5", ")", ":", "tuple", "f", "5", "!", "=", "null", ")", "{", "return", "false", ";", "}", "if", "(", "f", "6", "!", "=", "null", "?", "!", "f", "6", "equals", "(", "tuple", "f", "6", ")", ":", "tuple", "f", "6", "!", "=", "null", ")", "{", "return", "false", ";", "}", "if", "(", "f", "7", "!", "=", "null", "?", "!", "f", "7", "equals", "(", "tuple", "f", "7", ")", ":", "tuple", "f", "7", "!", "=", "null", ")", "{", "return", "false", ";", "}", "if", "(", "f", "8", "!", "=", "null", "?", "!", "f", "8", "equals", "(", "tuple", "f", "8", ")", ":", "tuple", "f", "8", "!", "=", "null", ")", "{", "return", "false", ";", "}", "return", "true", ";", "}" ]
[ "returns", "a", "sequence", "that", "can", "be", "used", "for", "a", "prefetch", "request", "for", "an", "encoded", "image", "guaranteed", "to", "return", "the", "same", "sequence", "as", "{", "@", "code", "get", "encoded", "image", "producer", "sequence", "(", "request", ")", "}", ",", "except", "that", "it", "is", "pre", "-", "pended", "with", "a", "{", "@", "link", "swallow", "result", "producer", "}" ]
[ "public", "producer", "<", "void", ">", "get", "encoded", "image", "prefetch", "producer", "sequence", "(", "image", "request", "image", "request", ")", "{", "validate", "encoded", "image", "request", "(", "image", "request", ")", ";", "switch", "(", "image", "request", "get", "source", "uri", "type", "(", ")", ")", "{", "case", "source", "type", "network", ":", "return", "get", "network", "fetch", "to", "encoded", "memory", "prefetch", "sequence", "(", ")", ";", "case", "source", "type", "local", "video", "file", ":", "case", "source", "type", "local", "image", "file", ":", "return", "get", "local", "file", "fetch", "to", "encoded", "memory", "prefetch", "sequence", "(", ")", ";", "default", ":", "final", "uri", "uri", "=", "image", "request", "get", "source", "uri", "(", ")", ";", "throw", "new", "illegal", "argument", "exception", "(", "\"", "unsupported", "uri", "scheme", "for", "encoded", "image", "fetch", "!", "uri", "is", ":", "\"", "+", "get", "shortened", "uri", "string", "(", "uri", ")", ")", ";", "}", "}" ]
[ "returns", "the", "value", "of", "the", "java", "system", "property", "with", "the", "specified", "{", "@", "code", "key", "}", ",", "while", "falling", "back", "to", "the", "specified", "default", "value", "if", "the", "property", "access", "fails" ]
[ "public", "static", "long", "get", "long", "(", "string", "key", ",", "long", "def", ")", "{", "string", "value", "=", "get", "(", "key", ")", ";", "if", "(", "value", "=", "=", "null", ")", "{", "return", "def", ";", "}", "value", "=", "value", "trim", "(", ")", ";", "try", "{", "return", "long", "parse", "long", "(", "value", ")", ";", "}", "catch", "(", "exception", "e", ")", "{", "/", "/", "ignore", "}", "logger", "warn", "(", "\"", "unable", "to", "parse", "the", "long", "integer", "system", "property", "'", "{", "}", "'", ":", "{", "}", "-", "using", "the", "default", "value", ":", "{", "}", "\"", ",", "key", ",", "value", ",", "def", ")", ";", "return", "def", ";", "}" ]
[ "set", "the", "type", "of", "epoxy", "model", "that", "is", "draggable", "this", "approach", "works", "well", "if", "you", "only", "have", "one", "draggable", "type" ]
[ "public", "<", "u", "extends", "epoxy", "model", ">", "drag", "builder", "4", "<", "u", ">", "with", "target", "(", "class", "<", "u", ">", "target", "model", "class", ")", "{", "list", "<", "class", "<", "?", "extends", "epoxy", "model", ">", ">", "target", "classes", "=", "new", "array", "list", "<", ">", "(", "1", ")", ";", "target", "classes", "add", "(", "target", "model", "class", ")", ";", "return", "new", "drag", "builder", "4", "<", ">", "(", "controller", ",", "recycler", "view", ",", "movement", "flags", ",", "target", "model", "class", ",", "target", "classes", ")", ";", "}" ]
[ "returns", "an", "{", "@", "link", "escaper", "}", "instance", "that", "escapes", "strings", "so", "they", "can", "be", "safely", "included", "in", "a", "<", "a", "href", "=", "\"", "https", ":", "goo", "glx", "x", "eq", "4p", "\"", ">", "url", "fragment", "the", "returned", "escaper", "escapes", "all", "non", "-", "ascii", "characters", ",", "even", "though", "<", "a", "href", "=", "\"", "https", ":", "goo", "gle", "7", "e", "0", "in", "\"", ">", "many", "of", "these", "are", "accepted", "in", "modern", "u", "r", "ls", "when", "escaping", "a", "string", ",", "the", "following", "rules", "apply", ":", "the", "alphanumeric", "characters", "\"", "a", "\"", "through", "\"", "z", "\"", ",", "\"", "a", "\"", "through", "\"", "z", "\"", "and", "\"", "0", "\"", "through", "\"", "9", "\"", "remain", "the", "same", "the", "unreserved", "characters", "\"", "\"", ",", "\"", "-", "\"", ",", "\"", "~", "\"", ",", "and", "\"", "\"", "remain", "the", "same", "the", "general", "delimiters", "\"", "@", "\"", "and", "\"", ":", "\"", "remain", "the", "same", "the", "subdelimiters", "\"", "!", "\"", ",", "\"", "$", "\"", ",", "\"", "&", "amp", ";", "\"", ",", "\"", "'", "\"", ",", "\"", "(", "\"", ",", "\"", ")", "\"", ",", "\"", "\"", ",", "\"", "+", "\"", ",", "\"", ",", "\"", ",", "\"", ";", "\"", ",", "and", "\"", "=", "\"", "remain", "the", "same", "the", "space", "character", "\"", "\"", "is", "converted", "into", "%", "20", "fragments", "allow", "unescaped", "\"", "\"", "and", "\"", "?", "\"", ",", "so", "they", "remain", "the", "same", "all", "other", "characters", "are", "converted", "into", "one", "or", "more", "bytes", "using", "utf", "-", "8", "encoding", "and", "each", "byte", "is", "then", "represented", "by", "the", "3", "-", "character", "string", "\"", "%", "xy", "\"", ",", "where", "\"", "xy", "\"", "is", "the", "two", "-", "digit", ",", "uppercase", ",", "hexadecimal", "representation", "of", "the", "byte", "value", "<", "b", ">", "note", ":", "<", "b", ">", "unlike", "other", "escapers", ",", "url", "escapers", "produce", "<", "a", "href", "=", "\"", "https", ":", "url", "spec", "whatwg", "org", "#", "percent", "-", "encode", "\"", ">", "uppercase", "hexadecimal", "sequences" ]
[ "public", "static", "escaper", "url", "fragment", "escaper", "(", ")", "{", "return", "url", "fragment", "escaper", ";", "}" ]
[ "convert", "the", "given", "object", "to", "string", "with", "each", "line", "indented", "by", "4", "spaces", "(", "except", "the", "first", "line", ")" ]
[ "private", "string", "to", "indented", "string", "(", "object", "o", ")", "{", "if", "(", "o", "=", "=", "null", ")", "{", "return", "\"", "null", "\"", ";", "}", "return", "o", "to", "string", "(", ")", "replace", "(", "\"", "\\", "n", "\"", ",", "\"", "\\", "n", "\"", ")", ";", "}" ]
[ "sets", "the", "is", "compact", "tables", "of", "this", "m", "t", "config", "object" ]
[ "public", "void", "set", "compact", "tables", "(", "final", "boolean", "is", "compact", "tables", ")", "{", "this", "is", "compact", "tables", "=", "is", "compact", "tables", ";", "}" ]
[ "returns", "a", "policy", "containing", "all", "the", "permissions", "we", "ever", "need" ]
[ "public", "static", "policy", "permissive", "policy", "(", ")", "{", "return", "new", "adjustable", "policy", "/", "/", "permissions", "j", "u", "c", "needs", "directly", "(", "new", "runtime", "permission", "(", "\"", "modify", "thread", "\"", ")", ",", "new", "runtime", "permission", "(", "\"", "get", "class", "loader", "\"", ")", ",", "new", "runtime", "permission", "(", "\"", "set", "context", "class", "loader", "\"", ")", ",", "/", "/", "permissions", "needed", "to", "change", "permissions", "!", "new", "security", "permission", "(", "\"", "get", "policy", "\"", ")", ",", "new", "security", "permission", "(", "\"", "set", "policy", "\"", ")", ",", "new", "runtime", "permission", "(", "\"", "set", "security", "manager", "\"", ")", ",", "/", "/", "permissions", "needed", "by", "the", "junit", "test", "harness", "new", "runtime", "permission", "(", "\"", "access", "declared", "members", "\"", ")", ",", "new", "property", "permission", "(", "\"", "*", "\"", ",", "\"", "read", "\"", ")", ",", "new", "java", "io", "file", "permission", "(", "\"", "<", "<", "all", "files", ">", ">", "\"", ",", "\"", "read", "\"", ")", ")", ";", "}" ]
[ "fire", "some", "listeners", "does", "nothing", "if", "the", "list", "of", "listeners", "is", "null" ]
[ "private", "void", "fire", "listeners", "(", "final", "list", "<", "tuple", "<", "translog", "location", ",", "consumer", "<", "boolean", ">", ">", ">", "listeners", "to", "fire", ")", "{", "if", "(", "listeners", "to", "fire", "!", "=", "null", ")", "{", "for", "(", "final", "tuple", "<", "translog", "location", ",", "consumer", "<", "boolean", ">", ">", "listener", ":", "listeners", "to", "fire", ")", "{", "try", "{", "listener", "v", "2", "(", ")", "accept", "(", "false", ")", ";", "}", "catch", "(", "final", "exception", "e", ")", "{", "logger", "warn", "(", "\"", "error", "firing", "refresh", "listener", "\"", ",", "e", ")", ";", "}", "}", "}", "}" ]
[ "optionally", "perform", "further", "registration", "customization", "once", "{", "@", "link", "#", "register", "dispatcher", "servlet", "(", "servlet", "context", ")", "}", "has", "completed" ]
[ "protected", "void", "customize", "registration", "(", "servlet", "registration", "dynamic", "registration", ")", "{", "}" ]
[ "get", "the", "prefix", "for", "dynamo", "d", "b", "table", "names", "used", "in", "tests" ]
[ "public", "static", "string", "get", "test", "dynamo", "table", "prefix", "(", "final", "configuration", "conf", ")", "{", "return", "get", "test", "property", "(", "conf", ",", "test", "s3guard", "dynamo", "table", "prefix", ",", "test", "s3guard", "dynamo", "table", "prefix", "default", ")", ";", "}" ]
[ "start", "the", "process", "of", "setting", "an", "attribute", "value", "from", "an", "iterable", "of", "strings" ]
[ "value", "joiner", "set", "from", "(", "iterable", "<", "string", ">", "values", ")", ";" ]
[ "determines", "the", "number", "of", "instructions", "from", "the", "first", "function", "that", "match", "an", "instruction", "in", "the", "second", "function" ]
[ "public", "int", "num", "matched", "instructions", "in", "first", "(", ")", "{", "return", "src", "store", "num", "matched", "instructions", "(", ")", ";", "}" ]
[ "the", "index", "name", "of", "the", "action" ]
[ "public", "string", "get", "index", "(", ")", "{", "if", "(", "failure", "!", "=", "null", ")", "{", "return", "failure", "get", "index", "(", ")", ";", "}", "return", "response", "get", "index", "(", ")", ";", "}" ]
[ "convert", "the", "given", "object", "to", "string", "with", "each", "line", "indented", "by", "4", "spaces", "(", "except", "the", "first", "line", ")" ]
[ "private", "string", "to", "indented", "string", "(", "object", "o", ")", "{", "if", "(", "o", "=", "=", "null", ")", "{", "return", "\"", "null", "\"", ";", "}", "return", "o", "to", "string", "(", ")", "replace", "(", "\"", "\\", "n", "\"", ",", "\"", "\\", "n", "\"", ")", ";", "}" ]
[ "test", "the", "property", "'", "breed", "'" ]
[ "public", "void", "breed", "test", "(", ")", "{", "/", "/", "todo", ":", "test", "breed", "}" ]
[ "determine", "if", "there", "are", "any", "node", "failures", "in", "{", "@", "link", "#", "failures", "}" ]
[ "public", "boolean", "has", "failures", "(", ")", "{", "return", "failures", "is", "empty", "(", ")", "=", "=", "false", ";", "}" ]
[ "is", "the", "user", "allowed", "?", "no", "user", ":", "false", "empty", "list", ":", "false", "list", "=", "=", "[", "\"", "\"", "]", ":", "true", "otherwise", ":", "is", "the", "user", "in", "the", "list", "?" ]
[ "private", "boolean", "is", "allowed", "user", "(", "string", "username", ",", "list", "<", "string", ">", "user", "list", ")", "{", "if", "(", "null", "=", "=", "user", "list", "|", "|", "user", "list", "is", "empty", "(", ")", ")", "{", "return", "false", ";", "}", "boolean", "should", "skip", "user", "check", "=", "user", "list", "size", "(", ")", "=", "=", "1", "&", "&", "user", "list", "get", "(", "0", ")", "equals", "(", "\"", "*", "\"", ")", ";", "/", "/", "skip", "the", "check", "if", "the", "allowed", "users", "config", "value", "is", "set", "as", "'", "*", "'", "if", "(", "!", "should", "skip", "user", "check", ")", "{", "preconditions", "check", "argument", "(", "!", "user", "list", "contains", "(", "\"", "*", "\"", ")", ",", "\"", "user", "list", "must", "contain", "either", "'", "*", "'", "or", "a", "list", "of", "user", "names", ",", "\"", "+", "\"", "but", "not", "both", "\"", ")", ";", "return", "user", "list", "contains", "(", "username", ")", ";", "}", "return", "true", ";", "}" ]
[ "convert", "the", "given", "object", "to", "string", "with", "each", "line", "indented", "by", "4", "spaces", "(", "except", "the", "first", "line", ")" ]
[ "private", "string", "to", "indented", "string", "(", "object", "o", ")", "{", "if", "(", "o", "=", "=", "null", ")", "{", "return", "\"", "null", "\"", ";", "}", "return", "o", "to", "string", "(", ")", "replace", "(", "\"", "\\", "n", "\"", ",", "\"", "\\", "n", "\"", ")", ";", "}" ]
[ "indicate", "whether", "external", "xml", "entities", "are", "processed", "when", "unmarshalling", "default", "is", "{", "@", "code", "false", "}", ",", "meaning", "that", "external", "entities", "are", "not", "resolved", "note", "that", "processing", "of", "external", "entities", "will", "only", "be", "enableddisabled", "when", "the", "{", "@", "code", "source", "}", "passed", "to", "{", "@", "link", "#", "unmarshal", "(", "source", ")", "}", "is", "a", "{", "@", "link", "s", "a", "x", "source", "}", "or", "{", "@", "link", "stream", "source", "}", "it", "has", "no", "effect", "for", "{", "@", "link", "d", "o", "m", "source", "}", "or", "{", "@", "link", "st", "a", "x", "source", "}", "instances", "note", ":", "setting", "this", "option", "to", "{", "@", "code", "true", "}", "also", "automatically", "sets", "{", "@", "link", "#", "set", "support", "dtd", "}", "to", "{", "@", "code", "true", "}" ]
[ "public", "void", "set", "process", "external", "entities", "(", "boolean", "process", "external", "entities", ")", "{", "this", "process", "external", "entities", "=", "process", "external", "entities", ";", "if", "(", "process", "external", "entities", ")", "{", "this", "support", "dtd", "=", "true", ";", "}", "}" ]
[ "add", "to", "this", "collection", "a", "{", "@", "link", "header", "}", "with", "the", "given", "key", "and", "value" ]
[ "headers", "add", "(", "string", "key", ",", "schema", "and", "value", "schema", "and", "value", ")", ";" ]
[ "create", "user", "this", "can", "only", "be", "done", "by", "the", "logged", "in", "user", "<", "b", ">", "0", "<", "b", ">", "-", "successful", "operation" ]
[ "public", "void", "create", "user", "(", "user", "body", ",", "map", "<", "string", ",", "object", ">", "params", ")", "throws", "i", "o", "exception", "{", "create", "user", "for", "http", "response", "(", "body", ",", "params", ")", ";", "}" ]
[ "elasticsearch", "2", "0", "removed", "several", "deprecated", "features", "and", "as", "well", "as", "support", "for", "lucene", "3", "x", "this", "method", "calls", "{", "@", "link", "metadata", "index", "upgrade", "service", "}", "to", "makes", "sure", "that", "indices", "are", "compatible", "with", "the", "current", "version", "the", "metadata", "index", "upgrade", "service", "might", "also", "update", "obsolete", "settings", "if", "needed" ]
[ "static", "metadata", "upgrade", "metadata", "(", "metadata", "metadata", ",", "metadata", "index", "upgrade", "service", "metadata", "index", "upgrade", "service", ",", "metadata", "upgrader", "metadata", "upgrader", ")", "{", "/", "/", "upgrade", "index", "meta", "data", "boolean", "changed", "=", "false", ";", "final", "metadata", "builder", "upgraded", "metadata", "=", "metadata", "builder", "(", "metadata", ")", ";", "for", "(", "index", "metadata", "index", "metadata", ":", "metadata", ")", "{", "index", "metadata", "new", "metadata", "=", "metadata", "index", "upgrade", "service", "upgrade", "index", "metadata", "(", "index", "metadata", ",", "version", "current", "minimum", "index", "compatibility", "version", "(", ")", ")", ";", "changed", "|", "=", "index", "metadata", "!", "=", "new", "metadata", ";", "upgraded", "metadata", "put", "(", "new", "metadata", ",", "false", ")", ";", "}", "/", "/", "upgrade", "current", "templates", "if", "(", "apply", "plugin", "upgraders", "(", "metadata", "get", "templates", "(", ")", ",", "metadata", "upgrader", "index", "template", "metadata", "upgraders", ",", "upgraded", "metadata", ":", ":", "remove", "template", ",", "(", "s", ",", "index", "template", "metadata", ")", "-", ">", "upgraded", "metadata", "put", "(", "index", "template", "metadata", ")", ")", ")", "{", "changed", "=", "true", ";", "}", "return", "changed", "?", "upgraded", "metadata", "build", "(", ")", ":", "metadata", ";", "}" ]
[ "gets", "the", "user", "temp", "directory", "from", "the", "application", "layout" ]
[ "public", "final", "file", "get", "user", "temp", "dir", "(", ")", "{", "return", "user", "temp", "dir", ";", "}" ]
[ "start", "the", "maintenance", "operation" ]
[ "public", "void", "start", "maintenance", "(", ")", "{", "this", "admin", "state", "=", "admin", "states", "entering", "maintenance", ";", "}" ]
[ "updates", "the", "state", "store", "with", "any", "record", "overrides", "we", "detected", ",", "such", "as", "an", "expired", "state", "if", "an", "expired", "record", "exists", "beyond", "deletion", "time", ",", "it", "is", "removed" ]
[ "public", "void", "override", "expired", "records", "(", "query", "result", "<", "r", ">", "query", ")", "throws", "i", "o", "exception", "{", "list", "<", "r", ">", "commit", "records", "=", "new", "array", "list", "<", ">", "(", ")", ";", "list", "<", "r", ">", "delete", "records", "=", "new", "array", "list", "<", ">", "(", ")", ";", "list", "<", "r", ">", "new", "records", "=", "query", "get", "records", "(", ")", ";", "long", "current", "driver", "time", "=", "query", "get", "timestamp", "(", ")", ";", "if", "(", "new", "records", "=", "=", "null", "|", "|", "current", "driver", "time", "<", "=", "0", ")", "{", "log", "error", "(", "\"", "cannot", "check", "overrides", "for", "record", "\"", ")", ";", "return", ";", "}", "for", "(", "r", "record", ":", "new", "records", ")", "{", "if", "(", "record", "should", "be", "deleted", "(", "current", "driver", "time", ")", ")", "{", "string", "record", "name", "=", "state", "store", "utils", "get", "record", "name", "(", "record", "get", "class", "(", ")", ")", ";", "if", "(", "get", "driver", "(", ")", "remove", "(", "record", ")", ")", "{", "delete", "records", "add", "(", "record", ")", ";", "log", "info", "(", "\"", "deleted", "state", "store", "record", "{", "}", ":", "{", "}", "\"", ",", "record", "name", ",", "record", ")", ";", "}", "else", "{", "log", "warn", "(", "\"", "couldn", "'", "t", "delete", "state", "store", "record", "{", "}", ":", "{", "}", "\"", ",", "record", "name", ",", "record", ")", ";", "}", "}", "else", "if", "(", "record", "check", "expired", "(", "current", "driver", "time", ")", ")", "{", "string", "record", "name", "=", "state", "store", "utils", "get", "record", "name", "(", "record", "get", "class", "(", ")", ")", ";", "log", "info", "(", "\"", "override", "state", "store", "record", "{", "}", ":", "{", "}", "\"", ",", "record", "name", ",", "record", ")", ";", "commit", "records", "add", "(", "record", ")", ";", "}", "}", "if", "(", "commit", "records", "size", "(", ")", ">", "0", ")", "{", "get", "driver", "(", ")", "put", "all", "(", "commit", "records", ",", "true", ",", "false", ")", ";", "}", "if", "(", "delete", "records", "size", "(", ")", ">", "0", ")", "{", "new", "records", "remove", "all", "(", "delete", "records", ")", ";", "}", "}" ]
[ "create", "naming", "service" ]
[ "public", "static", "naming", "service", "create", "naming", "service", "(", "string", "server", "addr", ")", "throws", "nacos", "exception", "{", "return", "naming", "factory", "create", "naming", "service", "(", "server", "addr", ")", ";", "}" ]
[ "prepend", "given", "object", "to", "the", "head", "(", "enqueue", "to", "head", ")", "unless", "backing", "array", "needs", "resizing", ",", "operates", "in", "o", "(", "1", ")", "time" ]
[ "public", "void", "add", "first", "(", "@", "null", "t", "object", ")", "{", "t", "[", "]", "values", "=", "this", "values", ";", "if", "(", "size", "=", "=", "values", "length", ")", "{", "resize", "(", "values", "length", "<", "<", "1", ")", ";", "/", "/", "*", "2", "values", "=", "this", "values", ";", "}", "int", "head", "=", "this", "head", ";", "head", "-", "-", ";", "if", "(", "head", "=", "=", "-", "1", ")", "{", "head", "=", "values", "length", "-", "1", ";", "}", "values", "[", "head", "]", "=", "object", ";", "this", "head", "=", "head", ";", "this", "size", "+", "+", ";", "}" ]
[ "checks", "if", "the", "given", "uri", "scheme", "is", "a", "scheme", "that", "'", "s", "affiliated", "with", "the", "azure", "file", "system" ]
[ "private", "static", "boolean", "is", "wasb", "scheme", "(", "string", "scheme", ")", "{", "/", "/", "the", "valid", "schemes", "are", ":", "asv", "(", "old", "name", ")", ",", "asvs", "(", "old", "name", "over", "https", ")", ",", "/", "/", "wasb", "(", "new", "name", ")", ",", "wasbs", "(", "new", "name", "over", "https", ")", "return", "scheme", "!", "=", "null", "&", "&", "(", "scheme", "equals", "ignore", "case", "(", "\"", "asv", "\"", ")", "|", "|", "scheme", "equals", "ignore", "case", "(", "\"", "asvs", "\"", ")", "|", "|", "scheme", "equals", "ignore", "case", "(", "\"", "wasb", "\"", ")", "|", "|", "scheme", "equals", "ignore", "case", "(", "\"", "wasbs", "\"", ")", ")", ";", "}" ]
[ "shuts", "down", "the", "underlying", "executor", "in", "a", "non", "-", "interrupting", "fashion" ]
[ "public", "void", "shutdown", "(", ")", "{", "if", "(", "!", "disposed", ")", "{", "disposed", "=", "true", ";", "executor", "shutdown", "(", ")", ";", "}", "}" ]
[ "this", "method", "is", "called", "per", "vertex", "and", "can", "iterate", "over", "all", "of", "its", "neighbors", "with", "the", "specified", "direction", "if", "called", "with", "{", "@", "link", "edge", "direction", "#", "out", "}", "the", "group", "will", "contain", "the", "out", "-", "edges", "and", "neighboring", "vertices", "of", "the", "grouping", "vertex", "if", "called", "with", "{", "@", "link", "edge", "direction", "#", "in", "}", "the", "group", "will", "contain", "the", "in", "-", "edges", "and", "neighboring", "vertices", "of", "the", "grouping", "vertex", "if", "called", "with", "{", "@", "link", "edge", "direction", "#", "all", "}", "the", "group", "will", "contain", "all", "edges", "and", "neighboring", "vertices", "of", "the", "grouping", "vertex", "the", "method", "can", "emit", "any", "number", "of", "output", "elements", ",", "including", "none" ]
[ "void", "iterate", "neighbors", "(", "iterable", "<", "tuple", "3", "<", "k", ",", "edge", "<", "k", ",", "ev", ">", ",", "vertex", "<", "k", ",", "vv", ">", ">", ">", "neighbors", ",", "collector", "<", "o", ">", "out", ")", "throws", "exception", ";" ]
[ "returns", "a", "serializable", "converter", "that", "always", "converts", "or", "reverses", "an", "object", "to", "itself" ]
[ "public", "static", "<", "t", ">", "converter", "<", "t", ",", "t", ">", "identity", "(", ")", "{", "return", "(", "identity", "converter", "<", "t", ">", ")", "identity", "converter", "instance", ";", "}" ]
[ "test", "serialization", "of", "outer", "string", "types" ]
[ "public", "api", "response", "<", "string", ">", "fake", "outer", "string", "serialize", "with", "http", "info", "(", "string", "body", ")", "throws", "api", "exception", "{", "okhttp", "3", "call", "local", "var", "call", "=", "fake", "outer", "string", "serialize", "validate", "before", "call", "(", "body", ",", "null", ")", ";", "type", "local", "var", "return", "type", "=", "new", "type", "token", "<", "string", ">", "(", ")", "{", "}", "get", "type", "(", ")", ";", "return", "local", "var", "api", "client", "execute", "(", "local", "var", "call", ",", "local", "var", "return", "type", ")", ";", "}" ]
[ "enables", "the", "controller", "the", "controller", "is", "enabled", "when", "the", "image", "has", "been", "loaded" ]
[ "void", "set", "enabled", "(", "boolean", "enabled", ")", ";" ]
[ "creates", "a", "new", "builder" ]
[ "public", "static", "builder", "builder", "(", ")", "{", "return", "new", "builder", "(", ")", ";", "}" ]
[ "creates", "a", "new", "builder" ]
[ "public", "static", "animated", "drawable", "options", "builder", "new", "builder", "(", ")", "{", "return", "new", "animated", "drawable", "options", "builder", "(", ")", ";", "}" ]
[ "camelize", "name", "(", "parameter", ",", "property", ",", "method", ",", "etc", ")" ]
[ "public", "static", "string", "camelize", "(", "final", "string", "input", "word", ",", "boolean", "lowercase", "first", "letter", ")", "{", "pair", "<", "string", ",", "boolean", ">", "key", "=", "new", "immutable", "pair", "<", ">", "(", "input", "word", ",", "lowercase", "first", "letter", ")", ";", "return", "camelized", "words", "cache", "get", "(", "key", ",", "pair", "-", ">", "{", "string", "word", "=", "pair", "get", "key", "(", ")", ";", "boolean", "lower", "first", "letter", "=", "pair", "get", "value", "(", ")", ";", "/", "/", "replace", "all", "slashes", "with", "dots", "(", "package", "separator", ")", "matcher", "m", "=", "camelize", "slash", "pattern", "matcher", "(", "word", ")", ";", "while", "(", "m", "find", "(", ")", ")", "{", "word", "=", "m", "replace", "first", "(", "\"", "\"", "+", "m", "group", "(", "1", ")", "/", "*", "to", "upper", "case", "(", ")", "*", "/", ")", ";", "m", "=", "camelize", "slash", "pattern", "matcher", "(", "word", ")", ";", "}", "/", "/", "case", "out", "dots", "string", "[", "]", "parts", "=", "word", "split", "(", "\"", "\\", "\\", "\"", ")", ";", "string", "builder", "f", "=", "new", "string", "builder", "(", ")", ";", "for", "(", "string", "z", ":", "parts", ")", "{", "if", "(", "z", "length", "(", ")", ">", "0", ")", "{", "f", "append", "(", "character", "to", "upper", "case", "(", "z", "char", "at", "(", "0", ")", ")", ")", "append", "(", "z", "substring", "(", "1", ")", ")", ";", "}", "}", "word", "=", "f", "to", "string", "(", ")", ";", "m", "=", "camelize", "slash", "pattern", "matcher", "(", "word", ")", ";", "while", "(", "m", "find", "(", ")", ")", "{", "word", "=", "m", "replace", "first", "(", "\"", "\"", "+", "character", "to", "upper", "case", "(", "m", "group", "(", "1", ")", "char", "at", "(", "0", ")", ")", "+", "m", "group", "(", "1", ")", "substring", "(", "1", ")", "/", "*", "to", "upper", "case", "(", ")", "*", "/", ")", ";", "m", "=", "camelize", "slash", "pattern", "matcher", "(", "word", ")", ";", "}", "/", "/", "uppercase", "the", "class", "name", "m", "=", "camelize", "uppercase", "pattern", "matcher", "(", "word", ")", ";", "if", "(", "m", "find", "(", ")", ")", "{", "string", "rep", "=", "m", "group", "(", "1", ")", "+", "m", "group", "(", "2", ")", "to", "upper", "case", "(", "locale", "root", ")", "+", "m", "group", "(", "3", ")", ";", "rep", "=", "camelize", "dollar", "pattern", "matcher", "(", "rep", ")", "replace", "all", "(", "\"", "\\", "\\", "\\", "\\", "\\", "\\", "$", "\"", ")", ";", "word", "=", "m", "replace", "all", "(", "rep", ")", ";", "}", "/", "/", "remove", "all", "underscores", "(", "underscore", "case", "to", "camel", "case", ")", "m", "=", "camelize", "underscore", "pattern", "matcher", "(", "word", ")", ";", "while", "(", "m", "find", "(", ")", ")", "{", "string", "original", "=", "m", "group", "(", "2", ")", ";", "string", "upper", "case", "=", "original", "to", "upper", "case", "(", "locale", "root", ")", ";", "if", "(", "original", "equals", "(", "upper", "case", ")", ")", "{", "word", "=", "camelize", "simple", "underscore", "pattern", "matcher", "(", "word", ")", "replace", "first", "(", "\"", "\"", ")", ";", "}", "else", "{", "word", "=", "m", "replace", "first", "(", "upper", "case", ")", ";", "}", "m", "=", "camelize", "underscore", "pattern", "matcher", "(", "word", ")", ";", "}", "/", "/", "remove", "all", "hyphens", "(", "hyphen", "-", "case", "to", "camel", "case", ")", "m", "=", "camelize", "hyphen", "pattern", "matcher", "(", "word", ")", ";", "while", "(", "m", "find", "(", ")", ")", "{", "word", "=", "m", "replace", "first", "(", "m", "group", "(", "2", ")", "to", "upper", "case", "(", "locale", "root", ")", ")", ";", "m", "=", "camelize", "hyphen", "pattern", "matcher", "(", "word", ")", ";", "}", "if", "(", "lower", "first", "letter", "&", "&", "word", "length", "(", ")", ">", "0", ")", "{", "int", "i", "=", "0", ";", "char", "char", "at", "=", "word", "char", "at", "(", "i", ")", ";", "while", "(", "i", "+", "1", "<", "word", "length", "(", ")", "&", "&", "!", "(", "(", "char", "at", ">", "=", "'", "a", "'", "&", "&", "char", "at", "<", "=", "'", "z", "'", ")", "|", "|", "(", "char", "at", ">", "=", "'", "a", "'", "&", "&", "char", "at", "<", "=", "'", "z", "'", ")", ")", ")", "{", "i", "=", "i", "+", "1", ";", "char", "at", "=", "word", "char", "at", "(", "i", ")", ";", "}", "i", "=", "i", "+", "1", ";", "word", "=", "word", "substring", "(", "0", ",", "i", ")", "to", "lower", "case", "(", "locale", "root", ")", "+", "word", "substring", "(", "i", ")", ";", "}", "/", "/", "remove", "all", "underscore", "word", "=", "camelize", "simple", "underscore", "pattern", "matcher", "(", "word", ")", "replace", "all", "(", "\"", "\"", ")", ";", "return", "word", ";", "}", ")", ";", "}" ]
[ "perform", "the", "search", "algorithm", "for", "{", "@", "link", "#", "find", "annotation", "descriptor", "(", "class", ",", "class", ")", "}", ",", "avoiding", "endless", "recursion", "by", "tracking", "which", "annotations", "have", "already", "been", "visited" ]
[ "private", "static", "<", "t", "extends", "annotation", ">", "annotation", "descriptor", "<", "t", ">", "find", "annotation", "descriptor", "(", "@", "nullable", "class", "<", "?", ">", "clazz", ",", "class", "<", "t", ">", "annotation", "type", ",", "predicate", "<", "class", "<", "?", ">", ">", "search", "enclosing", "class", ",", "set", "<", "annotation", ">", "visited", ")", "{", "if", "(", "clazz", "=", "=", "null", "|", "|", "object", "class", "=", "=", "clazz", ")", "{", "return", "null", ";", "}", "/", "/", "declared", "locally", "?", "if", "(", "annotation", "utils", "is", "annotation", "declared", "locally", "(", "annotation", "type", ",", "clazz", ")", ")", "{", "return", "new", "annotation", "descriptor", "<", ">", "(", "clazz", ",", "clazz", "get", "annotation", "(", "annotation", "type", ")", ")", ";", "}", "annotation", "descriptor", "<", "t", ">", "descriptor", "=", "null", ";", "/", "/", "declared", "on", "a", "composed", "annotation", "(", "i", "e", ",", "as", "a", "meta", "-", "annotation", ")", "?", "for", "(", "annotation", "composed", "ann", ":", "clazz", "get", "declared", "annotations", "(", ")", ")", "{", "class", "<", "?", "extends", "annotation", ">", "composed", "type", "=", "composed", "ann", "annotation", "type", "(", ")", ";", "if", "(", "!", "annotation", "utils", "is", "in", "java", "lang", "annotation", "package", "(", "composed", "type", "get", "name", "(", ")", ")", "&", "&", "visited", "add", "(", "composed", "ann", ")", ")", "{", "descriptor", "=", "find", "annotation", "descriptor", "(", "composed", "type", ",", "annotation", "type", ",", "search", "enclosing", "class", ",", "visited", ")", ";", "if", "(", "descriptor", "!", "=", "null", ")", "{", "return", "new", "annotation", "descriptor", "<", ">", "(", "clazz", ",", "descriptor", "get", "declaring", "class", "(", ")", ",", "descriptor", "get", "annotation", "(", ")", ")", ";", "}", "}", "}", "/", "/", "declared", "on", "an", "interface", "?", "for", "(", "class", "<", "?", ">", "ifc", ":", "clazz", "get", "interfaces", "(", ")", ")", "{", "descriptor", "=", "find", "annotation", "descriptor", "(", "ifc", ",", "annotation", "type", ",", "search", "enclosing", "class", ",", "visited", ")", ";", "if", "(", "descriptor", "!", "=", "null", ")", "{", "return", "new", "annotation", "descriptor", "<", ">", "(", "clazz", ",", "descriptor", "get", "declaring", "class", "(", ")", ",", "descriptor", "get", "annotation", "(", ")", ")", ";", "}", "}", "/", "/", "declared", "on", "a", "superclass", "?", "descriptor", "=", "find", "annotation", "descriptor", "(", "clazz", "get", "superclass", "(", ")", ",", "annotation", "type", ",", "search", "enclosing", "class", ",", "visited", ")", ";", "if", "(", "descriptor", "!", "=", "null", ")", "{", "return", "descriptor", ";", "}", "/", "/", "declared", "on", "an", "enclosing", "class", "of", "an", "inner", "class", "?", "if", "(", "search", "enclosing", "class", "test", "(", "clazz", ")", ")", "{", "descriptor", "=", "find", "annotation", "descriptor", "(", "clazz", "get", "enclosing", "class", "(", ")", ",", "annotation", "type", ",", "search", "enclosing", "class", ",", "visited", ")", ";", "if", "(", "descriptor", "!", "=", "null", ")", "{", "return", "descriptor", ";", "}", "}", "return", "null", ";", "}" ]
[ "creates", "a", "{", "@", "code", "striped", "<", "lock", ">", "}", "with", "lazily", "initialized", ",", "weakly", "referenced", "locks", "every", "lock", "is", "reentrant" ]
[ "public", "static", "striped", "<", "lock", ">", "lazy", "weak", "lock", "(", "int", "stripes", ")", "{", "return", "lazy", "(", "stripes", ",", "new", "supplier", "<", "lock", ">", "(", ")", "{", "@", "override", "public", "lock", "get", "(", ")", "{", "return", "new", "reentrant", "lock", "(", "false", ")", ";", "}", "}", ")", ";", "}" ]
[ "set", "the", "body", "of", "the", "request", "to", "the", "given", "{", "@", "code", "publisher", "}", "and", "return", "it" ]
[ "<", "s", ",", "p", "extends", "publisher", "<", "s", ">", ">", "builder", "body", "(", "p", "publisher", ",", "class", "<", "s", ">", "element", "class", ")", ";" ]
[ "requests", "up", "to", "the", "given", "number", "of", "messages", "from", "the", "call", "to", "be", "delivered", "to", "{", "@", "link", "listener", "#", "on", "message", "(", "object", ")", "}", "no", "additional", "messages", "will", "be", "delivered", "message", "delivery", "is", "guaranteed", "to", "be", "sequential", "in", "the", "order", "received", "in", "addition", ",", "the", "listener", "methods", "will", "not", "be", "accessed", "concurrently", "while", "it", "is", "not", "guaranteed", "that", "the", "same", "thread", "will", "always", "be", "used", ",", "it", "is", "guaranteed", "that", "only", "a", "single", "thread", "will", "access", "the", "listener", "at", "a", "time", "if", "it", "is", "desired", "to", "bypass", "inbound", "flow", "control", ",", "a", "very", "large", "number", "of", "messages", "can", "be", "specified", "(", "e", "g", "{", "@", "link", "integer", "#", "max", "value", "}", ")", "if", "called", "multiple", "times", ",", "the", "number", "of", "messages", "able", "to", "delivered", "will", "be", "the", "sum", "of", "the", "calls", "this", "method", "is", "safe", "to", "call", "from", "multiple", "threads", "without", "external", "synchronization" ]
[ "public", "abstract", "void", "request", "(", "int", "num", "messages", ")", ";" ]
[ "model", "tests", "for", "outer", "enum", "default", "value" ]
[ "public", "void", "test", "outer", "enum", "default", "value", "(", ")", "{", "/", "/", "todo", ":", "test", "outer", "enum", "default", "value", "}" ]
[ "this", "method", "is", "meant", "to", "be", "overridden", "by", "any", "of", "the", "derived", "classes", "they", "get", "the", "change", "to", "select", "any", "of", "the", "parameter", "inputs", "to", "set", "the", "\"", "truth", "\"", "variable", "for", "the", "test", "these", "inputs", "could", "be", "expanded", "in", "the", "future", "as", "we", "understand", "the", "differences", "in", "the", "versions", "of", "visual", "studio", "note", "that", "some", "of", "the", "input", "parameters", "(", "e", "g", ",", "ghtruth", "and", "ms", "2", "0", "1", "3truth", ")", "could", "be", "null", ",", "which", "is", "typical", "if", "the", "truth", "that", "they", "are", "seeking", "is", "found", "in", "one", "of", "the", "other", "parameters", "so", ",", "for", "instance", ",", "with", "vs2013", "testing", ",", "if", "ms", "2", "0", "1", "3truth", "is", "not", "null", ",", "use", "it", ",", "else", "use", "the", "mstruth", "value" ]
[ "protected", "void", "set", "truth", "(", "string", "mdtruth", ",", "string", "mstruth", ",", "string", "ghtruth", ",", "string", "ms", "2", "0", "1", "3truth", ")", "{", "truth", "=", "mdtruth", ";", "}" ]
[ "return", "the", "configured", "registry", "for", "adapting", "reactive", "types" ]
[ "public", "reactive", "adapter", "registry", "get", "reactive", "adapter", "registry", "(", ")", "{", "return", "this", "reactive", "adapter", "registry", ";", "}" ]
[ "gets", "the", "{", "@", "code", "signed", "byte", "}", "value", "at", "the", "given", "offset", ",", "without", "doing", "any", "argument", "checking" ]
[ "private", "int", "get", "byte", "0", "(", "int", "off", ")", "{", "return", "bytes", "[", "start", "+", "off", "]", ";", "}" ]
[ "treats", "supplied", "arrays", "as", "coordinates", "of", "a", "linear", "ring", "if", "the", "ring", "is", "not", "closed", "and", "coerce", "is", "set", "to", "true", ",", "the", "first", "set", "of", "coordinates", "(", "lat", ",", "lon", "and", "alt", "if", "available", ")", "are", "added", "to", "the", "end", "of", "the", "arrays" ]
[ "private", "void", "close", "linear", "ring", "if", "coerced", "(", "array", "list", "<", "double", ">", "lats", ",", "array", "list", "<", "double", ">", "lons", ",", "array", "list", "<", "double", ">", "alts", ")", "{", "if", "(", "coerce", "&", "&", "lats", "is", "empty", "(", ")", "=", "=", "false", "&", "&", "lons", "is", "empty", "(", ")", "=", "=", "false", ")", "{", "int", "last", "=", "lats", "size", "(", ")", "-", "1", ";", "if", "(", "!", "lats", "get", "(", "0", ")", "equals", "(", "lats", "get", "(", "last", ")", ")", "|", "|", "!", "lons", "get", "(", "0", ")", "equals", "(", "lons", "get", "(", "last", ")", ")", "|", "|", "(", "alts", "is", "empty", "(", ")", "=", "=", "false", "&", "&", "!", "alts", "get", "(", "0", ")", "equals", "(", "alts", "get", "(", "last", ")", ")", ")", ")", "{", "lons", "add", "(", "lons", "get", "(", "0", ")", ")", ";", "lats", "add", "(", "lats", "get", "(", "0", ")", ")", ";", "if", "(", "alts", "is", "empty", "(", ")", "=", "=", "false", ")", "{", "alts", "add", "(", "alts", "get", "(", "0", ")", ")", ";", "}", "}", "}", "}" ]
[ "for", "j", "unit", "testing", "only", ",", "set", "the", "option", "for", "resolving", "a", "conflict" ]
[ "void", "set", "conflict", "decision", "(", "int", "decision", ")", "{", "if", "(", "decision", "=", "=", "ask", "user", "|", "|", "decision", "=", "=", "keep", "latest", "|", "|", "decision", "=", "=", "keep", "my", ")", "{", "conflict", "option", "=", "decision", ";", "}", "else", "{", "throw", "new", "illegal", "argument", "exception", "(", ")", ";", "}", "}" ]
[ "verify", "that", "clear", "(", ")", "does", "not", "leak", "across", "windows" ]
[ "public", "void", "test", "clear", "(", ")", "throws", "exception", "{", "trigger", "test", "harness", "<", "object", ",", "time", "window", ">", "test", "harness", "=", "new", "trigger", "test", "harness", "<", ">", "(", "processing", "time", "trigger", "create", "(", ")", ",", "new", "time", "window", "serializer", "(", ")", ")", ";", "assert", "equals", "(", "trigger", "result", "continue", ",", "test", "harness", "process", "element", "(", "new", "stream", "record", "<", "object", ">", "(", "1", ")", ",", "new", "time", "window", "(", "0", ",", "2", ")", ")", ")", ";", "assert", "equals", "(", "trigger", "result", "continue", ",", "test", "harness", "process", "element", "(", "new", "stream", "record", "<", "object", ">", "(", "1", ")", ",", "new", "time", "window", "(", "2", ",", "4", ")", ")", ")", ";", "assert", "equals", "(", "0", ",", "test", "harness", "num", "state", "entries", "(", ")", ")", ";", "assert", "equals", "(", "0", ",", "test", "harness", "num", "event", "time", "timers", "(", ")", ")", ";", "assert", "equals", "(", "2", ",", "test", "harness", "num", "processing", "time", "timers", "(", ")", ")", ";", "assert", "equals", "(", "1", ",", "test", "harness", "num", "processing", "time", "timers", "(", "new", "time", "window", "(", "0", ",", "2", ")", ")", ")", ";", "assert", "equals", "(", "1", ",", "test", "harness", "num", "processing", "time", "timers", "(", "new", "time", "window", "(", "2", ",", "4", ")", ")", ")", ";", "test", "harness", "clear", "trigger", "state", "(", "new", "time", "window", "(", "2", ",", "4", ")", ")", ";", "assert", "equals", "(", "0", ",", "test", "harness", "num", "state", "entries", "(", ")", ")", ";", "assert", "equals", "(", "0", ",", "test", "harness", "num", "event", "time", "timers", "(", ")", ")", ";", "assert", "equals", "(", "1", ",", "test", "harness", "num", "processing", "time", "timers", "(", ")", ")", ";", "assert", "equals", "(", "1", ",", "test", "harness", "num", "processing", "time", "timers", "(", "new", "time", "window", "(", "0", ",", "2", ")", ")", ")", ";", "assert", "equals", "(", "0", ",", "test", "harness", "num", "processing", "time", "timers", "(", "new", "time", "window", "(", "2", ",", "4", ")", ")", ")", ";", "test", "harness", "clear", "trigger", "state", "(", "new", "time", "window", "(", "0", ",", "2", ")", ")", ";", "assert", "equals", "(", "0", ",", "test", "harness", "num", "state", "entries", "(", ")", ")", ";", "assert", "equals", "(", "0", ",", "test", "harness", "num", "processing", "time", "timers", "(", ")", ")", ";", "assert", "equals", "(", "0", ",", "test", "harness", "num", "processing", "time", "timers", "(", ")", ")", ";", "}" ]
[ "{", "@", "inherit", "doc", "}" ]
[ "public", "long", "get", "count", "(", ")", "{", "return", "0l", ";", "}" ]
[ "asserts", "that", "a", "configured", "target", "has", "the", "given", "python", "version", "under", "multiple", "configurations", "the", "configurations", "are", "given", "as", "a", "series", "of", "arrays", "of", "\"", "-", "-", "flag", "=", "value", "\"", "strings", "this", "destructively", "changes", "the", "current", "configuration" ]
[ "protected", "void", "assert", "python", "version", "is", "under", "new", "configs", "(", "string", "target", "name", ",", "python", "version", "version", ",", "string", "[", "]", "configs", ")", "throws", "exception", "{", "for", "(", "string", "[", "]", "config", ":", "configs", ")", "{", "use", "configuration", "(", "config", ")", ";", "assert", "with", "message", "(", "string", "format", "(", "\"", "under", "config", "'", "%", "s", "'", "\"", ",", "joiner", "on", "(", "\"", "\"", ")", "join", "(", "config", ")", ")", ")", "that", "(", "get", "python", "version", "(", "get", "ok", "py", "target", "(", "target", "name", ")", ")", ")", "is", "equal", "to", "(", "version", ")", ";", "}", "}" ]
[ "unbuffered", "file", "copy", "from", "src", "to", "dst", "without", "tainting", "os", "buffer", "cache", "in", "posix", "platform", ":", "it", "uses", "file", "channel", "#", "transfer", "to", "(", ")", "which", "internally", "attempts", "unbuffered", "io", "on", "os", "with", "native", "sendfile", "6", "4", "(", ")", "support", "and", "falls", "back", "to", "buffered", "io", "otherwise", "it", "minimizes", "the", "number", "of", "file", "channel", "#", "transfer", "to", "call", "by", "passing", "the", "the", "src", "file", "size", "directly", "instead", "of", "a", "smaller", "size", "as", "the", "3rd", "parameter", "this", "saves", "the", "number", "of", "sendfile", "6", "4", "(", ")", "system", "call", "when", "native", "sendfile", "6", "4", "(", ")", "is", "supported", "in", "the", "two", "fall", "back", "cases", "where", "sendfile", "is", "not", "supported", ",", "file", "channle", "#", "transfer", "to", "already", "has", "its", "own", "batching", "of", "size", "8", "mb", "and", "8", "kb", ",", "respectively", "in", "windows", "platform", ":", "it", "uses", "its", "own", "native", "wrapper", "of", "copy", "file", "ex", "with", "copy", "file", "no", "buffering", "flag", ",", "which", "is", "supported", "on", "windows", "server", "2008", "and", "above", "ideally", ",", "we", "should", "use", "file", "channel", "#", "transfer", "to", "(", ")", "across", "both", "posix", "and", "windows", "platform", "unfortunately", ",", "the", "wrapper", "(", "java", "sun", "nio", "ch", "file", "channel", "impl", "transfer", "to", "0", ")", "used", "by", "file", "channel", "#", "transfer", "to", "for", "unbuffered", "io", "is", "not", "implemented", "on", "windows", "based", "on", "open", "j", "d", "k", "678", "source", "code", ",", "java", "sun", "nio", "ch", "file", "channel", "impl", "transfer", "to", "0", "on", "windows", "simply", "returns", "ios", "unsupported", "note", ":", "this", "simple", "native", "wrapper", "does", "minimal", "parameter", "checking", "before", "copy", "and", "consistency", "check", "(", "e", "g", ",", "size", ")", "after", "copy", "it", "is", "recommended", "to", "use", "wrapper", "function", "like", "the", "storage", "#", "native", "copy", "file", "unbuffered", "(", ")", "function", "in", "hadoop", "-", "hdfs", "with", "prepost", "copy", "checks" ]
[ "public", "static", "void", "copy", "file", "unbuffered", "(", "file", "src", ",", "file", "dst", ")", "throws", "i", "o", "exception", "{", "if", "(", "native", "loaded", "&", "&", "shell", "windows", ")", "{", "copy", "file", "unbuffered", "0", "(", "src", "get", "absolute", "path", "(", ")", ",", "dst", "get", "absolute", "path", "(", ")", ")", ";", "}", "else", "{", "file", "input", "stream", "fis", "=", "new", "file", "input", "stream", "(", "src", ")", ";", "file", "channel", "input", "=", "null", ";", "try", "{", "input", "=", "fis", "get", "channel", "(", ")", ";", "try", "(", "file", "output", "stream", "fos", "=", "new", "file", "output", "stream", "(", "dst", ")", ";", "file", "channel", "output", "=", "fos", "get", "channel", "(", ")", ")", "{", "long", "remaining", "=", "input", "size", "(", ")", ";", "long", "position", "=", "0", ";", "long", "transferred", "=", "0", ";", "while", "(", "remaining", ">", "0", ")", "{", "transferred", "=", "input", "transfer", "to", "(", "position", ",", "remaining", ",", "output", ")", ";", "remaining", "-", "=", "transferred", ";", "position", "+", "=", "transferred", ";", "}", "}", "}", "finally", "{", "i", "o", "utils", "cleanup", "with", "logger", "(", "log", ",", "input", ",", "fis", ")", ";", "}", "}", "}" ]
[ "lexicographic", "order", "of", "binary", "data" ]
[ "public", "static", "int", "compare", "bytes", "(", "byte", "[", "]", "b", "1", ",", "int", "s", "1", ",", "int", "l", "1", ",", "byte", "[", "]", "b", "2", ",", "int", "s", "2", ",", "int", "l", "2", ")", "{", "return", "writable", "comparator", "compare", "bytes", "(", "b", "1", ",", "s", "1", ",", "l", "1", ",", "b", "2", ",", "s", "2", ",", "l", "2", ")", ";", "}" ]
[ "subclasses", "must", "call", "this", "method", "after", "finishing", "character", "processing", ",", "in", "order", "to", "ensure", "that", "any", "unterminated", "line", "in", "the", "buffer", "is", "passed", "to", "{", "@", "link", "#", "handle", "line", "}" ]
[ "protected", "void", "finish", "(", ")", "throws", "i", "o", "exception", "{", "if", "(", "saw", "return", "|", "|", "line", "length", "(", ")", ">", "0", ")", "{", "finish", "line", "(", "false", ")", ";", "}", "}" ]
[ "write", "devices", "back", "to", "resource", "(", "it", "overrides", "all", "devices", "saved", "before", ")" ]
[ "protected", "abstract", "void", "write", "devices", "back", "to", "resource", "(", "list", "<", "u", "2", "f", "device", "registration", ">", "list", ")", "throws", "exception", ";" ]
[ "logs", "out", "current", "logged", "in", "user", "session" ]
[ "public", "api", "response", "<", "void", ">", "logout", "user", "with", "http", "info", "(", ")", "throws", "api", "exception", "{", "okhttp", "3", "call", "local", "var", "call", "=", "logout", "user", "validate", "before", "call", "(", "null", ")", ";", "return", "local", "var", "api", "client", "execute", "(", "local", "var", "call", ")", ";", "}" ]
[ "returns", "an", "iterator", "that", "iterates", "over", "the", "merged", "result", "from", "all", "given", "channels" ]
[ "private", "merge", "iterator", "<", "e", ">", "get", "merging", "iterator", "(", "final", "list", "<", "channel", "with", "block", "count", ">", "channel", "i", "ds", ",", "final", "list", "<", "list", "<", "memory", "segment", ">", ">", "input", "segments", ",", "list", "<", "file", "i", "o", "channel", ">", "reader", "list", ",", "mutable", "object", "iterator", "<", "e", ">", "large", "records", ")", "throws", "i", "o", "exception", "{", "/", "/", "create", "one", "iterator", "per", "channel", "id", "log", "debug", "(", "\"", "performing", "merge", "of", "{", "}", "sorted", "streams", "\"", ",", "channel", "i", "ds", "size", "(", ")", ")", ";", "final", "list", "<", "mutable", "object", "iterator", "<", "e", ">", ">", "iterators", "=", "new", "array", "list", "<", ">", "(", "channel", "i", "ds", "size", "(", ")", "+", "1", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "channel", "i", "ds", "size", "(", ")", ";", "i", "+", "+", ")", "{", "final", "channel", "with", "block", "count", "channel", "=", "channel", "i", "ds", "get", "(", "i", ")", ";", "final", "list", "<", "memory", "segment", ">", "segs", "for", "channel", "=", "input", "segments", "get", "(", "i", ")", ";", "/", "/", "create", "a", "reader", "if", "there", "are", "multiple", "segments", "for", "the", "reader", ",", "issue", "multiple", "/", "/", "together", "per", "i", "/", "o", "request", "final", "block", "channel", "reader", "<", "memory", "segment", ">", "reader", "=", "this", "io", "manager", "create", "block", "channel", "reader", "(", "channel", "get", "channel", "(", ")", ")", ";", "reader", "list", "add", "(", "reader", ")", ";", "spill", "channel", "manager", "register", "open", "channel", "to", "be", "removed", "at", "shutdown", "(", "reader", ")", ";", "spill", "channel", "manager", "unregister", "channel", "to", "be", "removed", "at", "shutdown", "(", "channel", "get", "channel", "(", ")", ")", ";", "/", "/", "wrap", "channel", "reader", "as", "a", "view", ",", "to", "get", "block", "spanning", "record", "deserialization", "final", "channel", "reader", "input", "view", "in", "view", "=", "new", "channel", "reader", "input", "view", "(", "reader", ",", "segs", "for", "channel", ",", "channel", "get", "block", "count", "(", ")", ",", "false", ")", ";", "iterators", "add", "(", "new", "channel", "reader", "input", "view", "iterator", "<", ">", "(", "in", "view", ",", "null", ",", "this", "serializer", ")", ")", ";", "}", "if", "(", "large", "records", "!", "=", "null", ")", "{", "iterators", "add", "(", "large", "records", ")", ";", "}", "return", "new", "merge", "iterator", "<", ">", "(", "iterators", ",", "this", "comparator", ")", ";", "}" ]
[ "creates", "a", "new", "{", "@", "code", "sliding", "processing", "time", "windows", "}", "{", "@", "link", "window", "assigner", "}", "that", "assigns", "elements", "to", "time", "windows", "based", "on", "the", "element", "timestamp", "and", "offset", "for", "example", ",", "if", "you", "want", "window", "a", "stream", "by", "hour", ",", "but", "window", "begins", "at", "the", "1", "5th", "minutes", "of", "each", "hour", ",", "you", "can", "use", "{", "@", "code", "of", "(", "time", "hours", "(", "1", ")", ",", "time", "minutes", "(", "15", ")", ")", "}", ",", "then", "you", "will", "get", "time", "windows", "start", "at", "0", ":", "15", ":", "00", ",", "1", ":", "15", ":", "00", ",", "2", ":", "15", ":", "00", ",", "etc", "rather", "than", "that", ",", "if", "you", "are", "living", "in", "somewhere", "which", "is", "not", "using", "utc", "±", "00", ":", "00", "time", ",", "such", "as", "china", "which", "is", "using", "utc", "+", "08", ":", "00", ",", "and", "you", "want", "a", "time", "window", "with", "size", "of", "one", "day", ",", "and", "window", "begins", "at", "every", "00", ":", "00", ":", "00", "of", "local", "time", ",", "you", "may", "use", "{", "@", "code", "of", "(", "time", "days", "(", "1", ")", ",", "time", "hours", "(", "-", "8", ")", ")", "}", "the", "parameter", "of", "offset", "is", "{", "@", "code", "time", "hours", "(", "-", "8", ")", ")", "}", "since", "utc", "+", "08", ":", "00", "is", "8", "hours", "earlier", "than", "utc", "time" ]
[ "public", "static", "sliding", "processing", "time", "windows", "of", "(", "time", "size", ",", "time", "slide", ",", "time", "offset", ")", "{", "return", "new", "sliding", "processing", "time", "windows", "(", "size", "to", "milliseconds", "(", ")", ",", "slide", "to", "milliseconds", "(", ")", ",", "offset", "to", "milliseconds", "(", ")", ")", ";", "}" ]
[ "convert", "the", "given", "object", "to", "string", "with", "each", "line", "indented", "by", "4", "spaces", "(", "except", "the", "first", "line", ")" ]
[ "private", "string", "to", "indented", "string", "(", "object", "o", ")", "{", "if", "(", "o", "=", "=", "null", ")", "{", "return", "\"", "null", "\"", ";", "}", "return", "o", "to", "string", "(", ")", "replace", "(", "\"", "\\", "n", "\"", ",", "\"", "\\", "n", "\"", ")", ";", "}" ]
[ "append", "an", "int", "value", "this", "increases", "the", "array", "'", "s", "length", "by", "one" ]
[ "public", "j", "s", "o", "n", "array", "put", "(", "int", "value", ")", "{", "put", "(", "new", "integer", "(", "value", ")", ")", ";", "return", "this", ";", "}" ]
[ "note", "that", "we", "need", "to", "override", "around", "advice", "if", "the", "method", "is", "a", "setter", "and", "we", "'", "re", "locked", ",", "prevent", "execution", "otherwise", "let", "super", "invoke", "(", ")", "handle", "it", ",", "and", "do", "normal", "lockable", "(", "this", ")", "then", "target", "behaviour" ]
[ "public", "object", "invoke", "(", "method", "invocation", "invocation", ")", "throws", "throwable", "{", "if", "(", "locked", "(", ")", "&", "&", "invocation", "get", "method", "(", ")", "get", "name", "(", ")", "index", "of", "(", "\"", "set", "\"", ")", "=", "=", "0", ")", "throw", "new", "locked", "exception", "(", ")", ";", "return", "super", "invoke", "(", "invocation", ")", ";", "}" ]