docstring_tokens
list
code_tokens
list
[ "implementing", "add", "and", "remove", "together", "in", "one", "function", ",", "means", "that", "less", "items", "are", "shifted", "(", "reduction", "of", "3", "times", "from", "trivial", "implementation", ")" ]
[ "private", "int", "replace", "(", "hashed", "item", "fpaux", ",", "byte", "victim", ",", "int", "bucket", "start", ",", "int", "removed", "offset", ")", "{", "byte", "chain", "id", "=", "fpaux", "chain", "id", ";", "fpaux", "chain", "id", "=", "victim", ";", "this", "cache", "[", "bucket", "start", "+", "removed", "offset", "]", "=", "0", ";", "tiny", "set", "indexing", "remove", "item", "(", "fpaux", ",", "chain", "index", ",", "last", "index", ")", ";", "fpaux", "chain", "id", "=", "chain", "id", ";", "int", "idx", "to", "add", "=", "tiny", "set", "indexing", "add", "item", "(", "fpaux", ",", "chain", "index", ",", "last", "index", ")", ";", "int", "delta", "=", "(", "removed", "offset", "<", "idx", "to", "add", ")", "?", "-", "1", ":", "1", ";", "replace", "items", "(", "idx", "to", "add", ",", "fpaux", "value", ",", "bucket", "start", ",", "delta", ")", ";", "return", "removed", "offset", ";", "}" ]
[ "returns", "pet", "inventories", "by", "status", "returns", "a", "map", "of", "status", "codes", "to", "quantities" ]
[ "public", "void", "get", "inventory", "test", "(", ")", "throws", "exception", "{", "map", "<", "string", ",", "integer", ">", "response", "=", "api", "get", "inventory", "(", ")", ";", "/", "/", "todo", ":", "complete", "test", "assertions", "validate", "(", "response", ")", ";", "}" ]
[ "add", "the", "id", "of", "an", "associated", "model", "into", "self", "model", "'", "s", "association", "collection", "the", "associated", "model", "doesn", "'", "t", "have", "a", "foreign", "key", "column", "in", "the", "corresponding", "table", "instead", "self", "model", "has", "a", "foreign", "key", "column", "in", "the", "corresponding", "table" ]
[ "void", "add", "associated", "model", "without", "f", "k", "(", "string", "associated", "table", "name", ",", "long", "associated", "id", ")", "{", "get", "associated", "models", "map", "without", "f", "k", "(", ")", "put", "(", "associated", "table", "name", ",", "associated", "id", ")", ";", "}" ]
[ "create", "buffers", "correctly", "by", "reading", "the", "buffer", "file", "directory", ",", "buffer", "pool", "size", ",", "and", "file", "block", "size", "in", "the", "configuration" ]
[ "public", "synchronized", "void", "initialize", "(", "configuration", "conf", ")", "throws", "i", "o", "exception", "{", "if", "(", "this", "is", "initialize", "get", "(", ")", ")", "{", "return", ";", "}", "this", "single", "buffer", "size", "=", "conf", "get", "long", "(", "cos", "n", "config", "keys", "cosn", "block", "size", "key", ",", "cos", "n", "config", "keys", "default", "block", "size", ")", ";", "/", "/", "the", "block", "size", "of", "cos", "n", "can", "only", "support", "up", "to", "2gb", "if", "(", "this", "single", "buffer", "size", "<", "constants", "min", "part", "size", "|", "|", "this", "single", "buffer", "size", ">", "constants", "max", "part", "size", ")", "{", "string", "exception", "msg", "=", "string", "format", "(", "\"", "the", "block", "size", "of", "cos", "n", "is", "limited", "to", "%", "d", "to", "%", "d", "\"", ",", "constants", "min", "part", "size", ",", "constants", "max", "part", "size", ")", ";", "throw", "new", "i", "o", "exception", "(", "exception", "msg", ")", ";", "}", "long", "memory", "buffer", "limit", "=", "conf", "get", "long", "(", "cos", "n", "config", "keys", "cosn", "upload", "buffer", "size", "key", ",", "cos", "n", "config", "keys", "default", "upload", "buffer", "size", ")", ";", "this", "disk", "buffer", "dir", "=", "this", "create", "dir", "(", "conf", "get", "(", "cos", "n", "config", "keys", "cosn", "buffer", "dir", "key", ",", "cos", "n", "config", "keys", "default", "buffer", "dir", ")", ")", ";", "int", "buffer", "pool", "size", "=", "(", "int", ")", "(", "memory", "buffer", "limit", "/", "this", "single", "buffer", "size", ")", ";", "if", "(", "0", "=", "=", "buffer", "pool", "size", ")", "{", "throw", "new", "i", "o", "exception", "(", "string", "format", "(", "\"", "the", "total", "size", "of", "the", "buffer", "[", "%", "d", "]", "is", "\"", "+", "\"", "smaller", "than", "a", "single", "block", "[", "%", "d", "]", "\"", "+", "\"", "please", "consider", "increase", "the", "buffer", "size", "\"", "+", "\"", "or", "decrease", "the", "block", "size", "\"", ",", "memory", "buffer", "limit", ",", "this", "single", "buffer", "size", ")", ")", ";", "}", "this", "buffer", "pool", "=", "new", "linked", "blocking", "queue", "<", ">", "(", "buffer", "pool", "size", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "buffer", "pool", "size", ";", "i", "+", "+", ")", "{", "this", "buffer", "pool", "add", "(", "byte", "buffer", "allocate", "direct", "(", "(", "int", ")", "this", "single", "buffer", "size", ")", ")", ";", "}", "this", "is", "initialize", "set", "(", "true", ")", ";", "}" ]
[ "reports", "the", "result", "of", "<", "code", ">", "blaze", "config", "<", "code", ">", "and", "returns", "the", "appropriate", "command", "exit", "code" ]
[ "private", "blaze", "command", "result", "report", "configuration", "ids", "(", "config", "command", "output", "formatter", "writer", ",", "immutable", "sorted", "set", "<", "configuration", "for", "output", ">", "configurations", ")", "{", "writer", "write", "configuration", "i", "ds", "(", "configurations", ")", ";", "return", "blaze", "command", "result", "success", "(", ")", ";", "}" ]
[ "constructs", "a", "class", "pool", "visitor", "to", "efficiently", "travel", "to", "the", "specified", "classes", "and", "class", "members" ]
[ "public", "static", "class", "pool", "visitor", "create", "class", "pool", "visitor", "(", "keep", "class", "specification", "keep", "class", "specification", ",", "class", "visitor", "class", "visitor", ",", "member", "visitor", "member", "visitor", ")", "{", "/", "/", "if", "specified", ",", "let", "the", "class", "visitor", "also", "visit", "the", "descriptor", "/", "/", "classes", "and", "the", "signature", "classes", "if", "(", "keep", "class", "specification", "mark", "descriptor", "classes", "&", "&", "class", "visitor", "!", "=", "null", ")", "{", "member", "visitor", "=", "member", "visitor", "=", "=", "null", "?", "new", "member", "descriptor", "referenced", "class", "visitor", "(", "class", "visitor", ")", ":", "new", "multi", "member", "visitor", "(", "new", "member", "visitor", "[", "]", "{", "member", "visitor", ",", "new", "member", "descriptor", "referenced", "class", "visitor", "(", "class", "visitor", ")", ",", "new", "all", "attribute", "visitor", "(", "new", "attribute", "name", "filter", "(", "class", "constants", "attr", "signature", ",", "new", "referenced", "class", "visitor", "(", "class", "visitor", ")", ")", ")", "}", ")", ";", "}", "/", "/", "don", "'", "t", "visit", "the", "classes", "if", "not", "specified", "if", "(", "!", "keep", "class", "specification", "mark", "classes", "&", "&", "!", "keep", "class", "specification", "mark", "conditionally", ")", "{", "class", "visitor", "=", "null", ";", "}", "/", "/", "if", "specified", ",", "let", "the", "marker", "visit", "the", "class", "and", "its", "class", "/", "/", "members", "conditionally", "if", "(", "keep", "class", "specification", "mark", "conditionally", ")", "{", "/", "/", "combine", "both", "visitors", "class", "visitor", "composed", "class", "visitor", "=", "create", "combined", "class", "visitor", "(", "keep", "class", "specification", ",", "class", "visitor", ",", "member", "visitor", ")", ";", "/", "/", "replace", "the", "class", "visitor", "class", "visitor", "=", "create", "class", "member", "tester", "(", "keep", "class", "specification", ",", "composed", "class", "visitor", ")", ";", "/", "/", "discard", "the", "member", "visitor", ",", "because", "it", "has", "already", "been", "included", "member", "visitor", "=", "null", ";", "}", "return", "create", "class", "pool", "visitor", "(", "(", "class", "specification", ")", "keep", "class", "specification", ",", "class", "visitor", ",", "member", "visitor", ")", ";", "}" ]
[ "this", "method", "is", "executed", "once", "per", "superstep", "before", "the", "vertex", "update", "function", "is", "invoked", "for", "each", "vertex" ]
[ "public", "void", "pre", "superstep", "(", ")", "{", "}" ]
[ "certify", "the", "snappy", "stream", "integrity", "by", "checking", "the", "header", "for", "the", "snappy", "magic", "string" ]
[ "private", "static", "boolean", "is", "valid", "snappy", "stream", "(", "file", "f", ")", "throws", "i", "o", "exception", "{", "byte", "[", "]", "byte", "array", "=", "new", "byte", "[", "snappy", "codec", "magic", "len", "]", ";", "try", "(", "file", "input", "stream", "fis", "=", "new", "file", "input", "stream", "(", "f", ")", ")", "{", "if", "(", "snappy", "codec", "magic", "len", "!", "=", "fis", "read", "(", "byte", "array", ",", "0", ",", "snappy", "codec", "magic", "len", ")", ")", "{", "log", "error", "(", "\"", "read", "incorrect", "number", "of", "bytes", "from", "{", "}", "\"", ",", "f", "get", "name", "(", ")", ")", ";", "return", "false", ";", "}", "byte", "buffer", "bb", "=", "byte", "buffer", "wrap", "(", "byte", "array", ")", ";", "byte", "[", "]", "magic", "header", "=", "new", "byte", "[", "snappy", "codec", "magic", "len", "]", ";", "bb", "get", "(", "magic", "header", ",", "0", ",", "snappy", "codec", "magic", "len", ")", ";", "return", "arrays", "equals", "(", "magic", "header", ",", "snappy", "codec", "get", "magic", "header", "(", ")", ")", ";", "}", "catch", "(", "file", "not", "found", "exception", "e", ")", "{", "log", "error", "(", "\"", "unable", "to", "open", "file", "{", "}", "\"", ",", "f", "get", "name", "(", ")", ",", "e", ")", ";", "return", "false", ";", "}", "}" ]
[ "value", "of", "integer" ]
[ "public", "static", "postgre", "s", "q", "l", "command", "packet", "type", "value", "of", "(", "final", "int", "value", ")", "{", "for", "(", "postgre", "s", "q", "l", "command", "packet", "type", "each", ":", "values", "(", ")", ")", "{", "if", "(", "value", "=", "=", "each", "value", ")", "{", "return", "each", ";", "}", "}", "throw", "new", "illegal", "argument", "exception", "(", "string", "format", "(", "\"", "cannot", "find", "'", "%", "s", "'", "in", "postgre", "s", "q", "l", "command", "packet", "type", "\"", ",", "value", ")", ")", ";", "}" ]
[ "obtain", "the", "total", "number", "of", "logical", "processors", "present", "on", "the", "system" ]
[ "public", "int", "get", "num", "processors", "(", ")", "{", "return", "sys", "get", "num", "processors", "(", ")", ";", "}" ]
[ "the", "function", "that", "is", "attached", "to", "all", "futures", "in", "the", "conjunction", "once", "a", "future", "is", "complete", ",", "this", "function", "tracks", "the", "completion", "or", "fails", "the", "conjunct" ]
[ "private", "void", "handle", "completed", "future", "(", "int", "index", ",", "t", "value", ",", "throwable", "throwable", ")", "{", "if", "(", "throwable", "!", "=", "null", ")", "{", "complete", "exceptionally", "(", "throwable", ")", ";", "}", "else", "{", "results", "[", "index", "]", "=", "value", ";", "if", "(", "num", "completed", "increment", "and", "get", "(", ")", "=", "=", "num", "total", ")", "{", "complete", "(", "arrays", "as", "list", "(", "results", ")", ")", ";", "}", "}", "}" ]
[ "builds", "a", "{", "@", "link", "discovery", "nodes", "}", "instance", "that", "holds", "the", "nodes", "in", "this", "test", "cluster" ]
[ "public", "discovery", "nodes", "discovery", "nodes", "(", ")", "{", "discovery", "nodes", "builder", "builder", "=", "discovery", "nodes", "builder", "(", ")", ";", "nodes", "values", "(", ")", "for", "each", "(", "node", "-", ">", "builder", "add", "(", "node", "node", ")", ")", ";", "return", "builder", "build", "(", ")", ";", "}" ]
[ "initializes", "the", "record", "writer", "thread", "with", "this", "many", "numbers", "to", "send", "if", "the", "thread", "was", "already", "started", ",", "if", "may", "now", "continue" ]
[ "public", "synchronized", "void", "set", "records", "to", "send", "(", "long", "records", ")", "{", "check", "state", "(", "!", "records", "to", "send", "is", "done", "(", ")", ")", ";", "records", "to", "send", "complete", "(", "records", ")", ";", "}" ]
[ "parse", "the", "content", "as", "{", "@", "link", "node", "}", "and", "apply", "a", "{", "@", "link", "matcher", "}" ]
[ "public", "void", "assert", "node", "(", "string", "content", ",", "matcher", "<", "?", "super", "node", ">", "matcher", ")", "throws", "exception", "{", "document", "document", "=", "parse", "xml", "string", "(", "content", ")", ";", "assert", "that", "(", "\"", "body", "content", "\"", ",", "document", ",", "matcher", ")", ";", "}" ]
[ "seek", "to", "the", "next", "sync", "mark", "past", "a", "given", "position" ]
[ "public", "synchronized", "void", "sync", "(", "long", "position", ")", "throws", "i", "o", "exception", "{", "if", "(", "position", "+", "sync", "size", ">", "=", "end", ")", "{", "seek", "(", "end", ")", ";", "return", ";", "}", "if", "(", "position", "<", "header", "end", ")", "{", "/", "/", "seek", "directly", "to", "first", "record", "in", "seek", "(", "header", "end", ")", ";", "/", "/", "note", "the", "sync", "marker", "\"", "seen", "\"", "in", "the", "header", "sync", "seen", "=", "true", ";", "return", ";", "}", "try", "{", "seek", "(", "position", "+", "4", ")", ";", "/", "/", "skip", "escape", "in", "read", "fully", "(", "sync", "check", ")", ";", "int", "sync", "len", "=", "sync", "length", ";", "for", "(", "int", "i", "=", "0", ";", "in", "get", "pos", "(", ")", "<", "end", ";", "i", "+", "+", ")", "{", "int", "j", "=", "0", ";", "for", "(", ";", "j", "<", "sync", "len", ";", "j", "+", "+", ")", "{", "if", "(", "sync", "[", "j", "]", "!", "=", "sync", "check", "[", "(", "i", "+", "j", ")", "%", "sync", "len", "]", ")", "break", ";", "}", "if", "(", "j", "=", "=", "sync", "len", ")", "{", "in", "seek", "(", "in", "get", "pos", "(", ")", "-", "sync", "size", ")", ";", "/", "/", "position", "before", "sync", "return", ";", "}", "sync", "check", "[", "i", "%", "sync", "len", "]", "=", "in", "read", "byte", "(", ")", ";", "}", "}", "catch", "(", "checksum", "exception", "e", ")", "{", "/", "/", "checksum", "failure", "handle", "checksum", "exception", "(", "e", ")", ";", "}", "}" ]
[ "is", "is", "pretty", "standard" ]
[ "protected", "void", "add", "object", "modify", "actions", "(", "d", "b", "r", "progress", "monitor", "monitor", ",", "d", "b", "c", "execution", "context", "execution", "context", ",", "list", "<", "d", "b", "e", "persist", "action", ">", "action", "list", ",", "object", "change", "command", "command", ",", "map", "<", "string", ",", "object", ">", "options", ")", "{", "final", "generic", "table", "column", "column", "=", "command", "get", "object", "(", ")", ";", "string", "prefix", "=", "\"", "alter", "table", "\"", "+", "d", "b", "utils", "get", "object", "full", "name", "(", "column", "get", "table", "(", ")", ",", "d", "b", "p", "evaluation", "context", "ddl", ")", "+", "\"", "alter", "column", "\"", "+", "d", "b", "utils", "get", "quoted", "identifier", "(", "column", ")", "+", "\"", "\"", ";", "string", "type", "clause", "=", "column", "get", "full", "type", "name", "(", ")", ";", "if", "(", "command", "get", "property", "(", "d", "b", "constants", "prop", "id", "type", "name", ")", "!", "=", "null", "|", "|", "command", "get", "property", "(", "\"", "max", "length", "\"", ")", "!", "=", "null", "|", "|", "command", "get", "property", "(", "\"", "precision", "\"", ")", "!", "=", "null", "|", "|", "command", "get", "property", "(", "\"", "scale", "\"", ")", "!", "=", "null", ")", "{", "action", "list", "add", "(", "new", "s", "q", "l", "database", "persist", "action", "(", "\"", "set", "column", "type", "\"", ",", "prefix", "+", "\"", "type", "\"", "+", "type", "clause", ")", ")", ";", "}", "if", "(", "command", "get", "property", "(", "d", "b", "constants", "prop", "id", "default", "value", ")", "!", "=", "null", ")", "{", "if", "(", "common", "utils", "is", "empty", "(", "column", "get", "default", "value", "(", ")", ")", ")", "{", "action", "list", "add", "(", "new", "s", "q", "l", "database", "persist", "action", "(", "\"", "drop", "column", "default", "\"", ",", "prefix", "+", "\"", "drop", "default", "\"", ")", ")", ";", "}", "else", "{", "action", "list", "add", "(", "new", "s", "q", "l", "database", "persist", "action", "(", "\"", "set", "column", "default", "\"", ",", "prefix", "+", "\"", "set", "default", "\"", "+", "column", "get", "default", "value", "(", ")", ")", ")", ";", "}", "}", "if", "(", "command", "get", "property", "(", "d", "b", "constants", "prop", "id", "description", ")", "!", "=", "null", ")", "{", "action", "list", "add", "(", "new", "s", "q", "l", "database", "persist", "action", "(", "\"", "set", "column", "comment", "\"", ",", "\"", "comment", "on", "column", "\"", "+", "d", "b", "utils", "get", "object", "full", "name", "(", "column", "get", "table", "(", ")", ",", "d", "b", "p", "evaluation", "context", "ddl", ")", "+", "\"", "\"", "+", "d", "b", "utils", "get", "quoted", "identifier", "(", "column", ")", "+", "\"", "is", "\"", "+", "s", "q", "l", "utils", "quote", "string", "(", "column", ",", "common", "utils", "not", "empty", "(", "column", "get", "description", "(", ")", ")", ")", ")", ")", ";", "}", "}" ]
[ "are", "regexes", "enabled", "?" ]
[ "public", "regex", "enabled", "are", "regexes", "enabled", "(", ")", "{", "return", "regexes", "enabled", ";", "}" ]
[ "returns", "{", "@", "code", "true", "}", "if", "and", "only", "if", "the", "connection", "can", "remain", "open", "and", "thus", "'", "kept", "alive", "'", "this", "methods", "respects", "the", "value", "of", "the", "{", "@", "code", "\"", "connection", "\"", "}", "header", "first", "and", "then", "the", "return", "value", "of", "{", "@", "link", "http", "version", "#", "is", "keep", "alive", "default", "(", ")", "}" ]
[ "public", "static", "boolean", "is", "keep", "alive", "(", "http", "message", "message", ")", "{", "return", "!", "message", "headers", "(", ")", "contains", "value", "(", "http", "header", "names", "connection", ",", "http", "header", "values", "close", ",", "true", ")", "&", "&", "(", "message", "protocol", "version", "(", ")", "is", "keep", "alive", "default", "(", ")", "|", "|", "message", "headers", "(", ")", "contains", "value", "(", "http", "header", "names", "connection", ",", "http", "header", "values", "keep", "alive", ",", "true", ")", ")", ";", "}" ]
[ "get", "the", "job", "acls" ]
[ "public", "synchronized", "map", "<", "job", "a", "c", "l", ",", "access", "control", "list", ">", "get", "job", "a", "c", "ls", "(", ")", "{", "return", "job", "a", "c", "ls", ";", "}" ]
[ "returns", "a", "new", "{", "@", "code", "call", "options", "}", "with", "a", "{", "@", "code", "client", "stream", "tracer", "factory", "}", "in", "addition", "to", "the", "existing", "factories", "this", "method", "doesn", "'", "t", "replace", "existing", "factories", ",", "or", "try", "to", "de", "-", "duplicate", "factories" ]
[ "public", "call", "options", "with", "stream", "tracer", "factory", "(", "client", "stream", "tracer", "factory", "factory", ")", "{", "call", "options", "new", "options", "=", "new", "call", "options", "(", "this", ")", ";", "array", "list", "<", "client", "stream", "tracer", "factory", ">", "new", "list", "=", "new", "array", "list", "<", ">", "(", "stream", "tracer", "factories", "size", "(", ")", "+", "1", ")", ";", "new", "list", "add", "all", "(", "stream", "tracer", "factories", ")", ";", "new", "list", "add", "(", "factory", ")", ";", "new", "options", "stream", "tracer", "factories", "=", "collections", "unmodifiable", "list", "(", "new", "list", ")", ";", "return", "new", "options", ";", "}" ]
[ "read", "metrics", "single", "value", "in", "the", "duration", "of", "required", "metrics" ]
[ "public", "long", "read", "metrics", "value", "(", "metrics", "condition", "condition", ",", "duration", "duration", ")", "throws", "i", "o", "exception", "{", "return", "get", "metric", "query", "d", "a", "o", "(", ")", "read", "metrics", "value", "(", "condition", ",", "value", "column", "metadata", "instance", "get", "value", "c", "name", "(", "condition", "get", "name", "(", ")", ")", ",", "duration", ")", ";", "}" ]
[ "return", "a", "future", "which", "yields", "a", "map", "containing", "each", "partition", "'", "s", "reassignments" ]
[ "public", "kafka", "future", "<", "map", "<", "topic", "partition", ",", "partition", "reassignment", ">", ">", "reassignments", "(", ")", "{", "return", "future", ";", "}" ]
[ "returns", "a", "buffered", "writer", "that", "writes", "to", "a", "file", "using", "the", "given", "character", "set", "<", "b", ">", "{", "@", "link", "java", "nio", "file", "path", "}", "equivalent", ":", "<", "b", ">", "{", "@", "link", "java", "nio", "file", "files", "#", "new", "buffered", "writer", "(", "java", "nio", "file", "path", ",", "charset", ",", "java", "nio", "file", "open", "option", ")", "}" ]
[ "public", "static", "buffered", "writer", "new", "writer", "(", "file", "file", ",", "charset", "charset", ")", "throws", "file", "not", "found", "exception", "{", "check", "not", "null", "(", "file", ")", ";", "check", "not", "null", "(", "charset", ")", ";", "return", "new", "buffered", "writer", "(", "new", "output", "stream", "writer", "(", "new", "file", "output", "stream", "(", "file", ")", ",", "charset", ")", ")", ";", "}" ]
[ "this", "method", "is", "deprecated", "and", "will", "be", "removed", "in", "the", "future", "releases", "handle", "async", "db", "operation", "in", "your", "own", "logic", "instead" ]
[ "public", "static", "<", "t", ">", "find", "executor", "<", "t", ">", "find", "async", "(", "class", "<", "t", ">", "model", "class", ",", "long", "id", ")", "{", "return", "find", "async", "(", "model", "class", ",", "id", ",", "false", ")", ";", "}" ]
[ "removes", "{", "@", "code", "node", "}", "if", "it", "is", "present", ";", "all", "edges", "incident", "to", "{", "@", "code", "node", "}", "will", "also", "be", "removed" ]
[ "boolean", "remove", "node", "(", "n", "node", ")", ";" ]
[ "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", "\"", ")", ";", "}" ]
[ "prepare", "the", "given", "jdbc", "statement", "(", "or", "prepared", "statement", "or", "callable", "statement", ")", ",", "applying", "statement", "settings", "such", "as", "fetch", "size", ",", "max", "rows", ",", "and", "query", "timeout" ]
[ "protected", "void", "apply", "statement", "settings", "(", "statement", "stmt", ")", "throws", "s", "q", "l", "exception", "{", "int", "fetch", "size", "=", "get", "fetch", "size", "(", ")", ";", "if", "(", "fetch", "size", "!", "=", "-", "1", ")", "{", "stmt", "set", "fetch", "size", "(", "fetch", "size", ")", ";", "}", "int", "max", "rows", "=", "get", "max", "rows", "(", ")", ";", "if", "(", "max", "rows", "!", "=", "-", "1", ")", "{", "stmt", "set", "max", "rows", "(", "max", "rows", ")", ";", "}", "data", "source", "utils", "apply", "timeout", "(", "stmt", ",", "get", "data", "source", "(", ")", ",", "get", "query", "timeout", "(", ")", ")", ";", "}" ]
[ "set", "the", "{", "@", "code", "environment", "}", "for", "this", "application", "context" ]
[ "void", "set", "environment", "(", "configurable", "environment", "environment", ")", ";" ]
[ "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", "\"", ")", ";", "}" ]
[ "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", "\"", ")", ";", "}" ]
[ "get", "fake", ":", "to", "test", "enum", "parameters", "to", "test", "enum", "parameters" ]
[ "default", "response", "entity", "<", "void", ">", "test", "enum", "parameters", "(", "@", "api", "param", "(", "value", "=", "\"", "header", "parameter", "enum", "test", "(", "string", "array", ")", "\"", ",", "allowable", "values", "=", "\"", ">", ",", "$", "\"", ")", "@", "request", "header", "(", "value", "=", "\"", "enum", "header", "string", "array", "\"", ",", "required", "=", "false", ")", "list", "<", "string", ">", "enum", "header", "string", "array", ",", "@", "api", "param", "(", "value", "=", "\"", "header", "parameter", "enum", "test", "(", "string", ")", "\"", ",", "allowable", "values", "=", "\"", "abc", ",", "-", "efg", ",", "(", "xyz", ")", "\"", ",", "default", "value", "=", "\"", "-", "efg", "\"", ")", "@", "request", "header", "(", "value", "=", "\"", "enum", "header", "string", "\"", ",", "required", "=", "false", ")", "string", "enum", "header", "string", ",", "@", "api", "param", "(", "value", "=", "\"", "query", "parameter", "enum", "test", "(", "string", "array", ")", "\"", ",", "allowable", "values", "=", "\"", ">", ",", "$", "\"", ")", "@", "valid", "@", "request", "param", "(", "value", "=", "\"", "enum", "query", "string", "array", "\"", ",", "required", "=", "false", ")", "list", "<", "string", ">", "enum", "query", "string", "array", ",", "@", "api", "param", "(", "value", "=", "\"", "query", "parameter", "enum", "test", "(", "string", ")", "\"", ",", "allowable", "values", "=", "\"", "abc", ",", "-", "efg", ",", "(", "xyz", ")", "\"", ",", "default", "value", "=", "\"", "-", "efg", "\"", ")", "@", "valid", "@", "request", "param", "(", "value", "=", "\"", "enum", "query", "string", "\"", ",", "required", "=", "false", ",", "default", "value", "=", "\"", "-", "efg", "\"", ")", "string", "enum", "query", "string", ",", "@", "api", "param", "(", "value", "=", "\"", "query", "parameter", "enum", "test", "(", "double", ")", "\"", ",", "allowable", "values", "=", "\"", "1", ",", "-", "2", "\"", ")", "@", "valid", "@", "request", "param", "(", "value", "=", "\"", "enum", "query", "integer", "\"", ",", "required", "=", "false", ")", "integer", "enum", "query", "integer", ",", "@", "api", "param", "(", "value", "=", "\"", "query", "parameter", "enum", "test", "(", "double", ")", "\"", ",", "allowable", "values", "=", "\"", "1", "1", ",", "-", "1", "2", "\"", ")", "@", "valid", "@", "request", "param", "(", "value", "=", "\"", "enum", "query", "double", "\"", ",", "required", "=", "false", ")", "double", "enum", "query", "double", ",", "@", "api", "param", "(", "value", "=", "\"", "form", "parameter", "enum", "test", "(", "string", "array", ")", "\"", ",", "allowable", "values", "=", "\"", ">", ",", "$", "\"", ")", "@", "valid", "@", "request", "part", "(", "value", "=", "\"", "enum", "form", "string", "array", "\"", ",", "required", "=", "false", ")", "list", "<", "string", ">", "enum", "form", "string", "array", ",", "@", "api", "param", "(", "value", "=", "\"", "form", "parameter", "enum", "test", "(", "string", ")", "\"", ",", "allowable", "values", "=", "\"", "abc", ",", "-", "efg", ",", "(", "xyz", ")", "\"", ",", "default", "value", "=", "\"", "-", "efg", "\"", ")", "@", "valid", "@", "request", "part", "(", "value", "=", "\"", "enum", "form", "string", "\"", ",", "required", "=", "false", ")", "string", "enum", "form", "string", ")", "{", "return", "new", "response", "entity", "<", ">", "(", "http", "status", "not", "implemented", ")", ";", "}" ]
[ "returns", "the", "index", "of", "the", "type", "parameter", "bound", ",", "within", "the", "type", "parameter", "{", "@", "link", "#", "get", "type", "parameter", "index", "}", ",", "referenced", "by", "this", "type", "reference", "this", "method", "must", "only", "be", "used", "for", "type", "references", "whose", "sort", "is", "{", "@", "link", "#", "class", "type", "parameter", "bound", "}", "or", "{", "@", "link", "#", "method", "type", "parameter", "bound", "}" ]
[ "public", "int", "get", "type", "parameter", "bound", "index", "(", ")", "{", "return", "(", "target", "type", "and", "info", "&", "0x", "0", "0", "0", "0", "f", "f", "0", "0", ")", ">", ">", "8", ";", "}" ]
[ "shuts", "down", "the", "trigger", "service", "as", "well", "to", "make", "sure", "there", "are", "no", "lingering", "threads" ]
[ "void", "shut", "down", "(", "runnable", "stopped", "listener", ")", "{", "assert", "stopped", "listener", "!", "=", "null", ";", "logger", "info", "(", "\"", "stopping", "watch", "service", ",", "reason", "[", "shutdown", "initiated", "]", "\"", ")", ";", "execution", "service", "pause", "(", "stopped", "listener", ")", ";", "trigger", "service", "stop", "(", ")", ";", "stop", "executor", "(", ")", ";", "}" ]
[ "helper", "method", "that", "captures", "if", "this", "app", "is", "identified", "to", "be", "starved" ]
[ "boolean", "is", "starved", "for", "fair", "share", "(", ")", "{", "return", "is", "usage", "below", "share", "(", "get", "resource", "usage", "(", ")", ",", "get", "fair", "share", "(", ")", ")", ";", "}" ]
[ "sets", "the", "number", "of", "bytes", "to", "pass", "to", "each", "{", "@", "link", "s", "s", "l", "engine", "#", "wrap", "(", "byte", "buffer", "[", "]", ",", "int", ",", "int", ",", "byte", "buffer", ")", "}", "call", "this", "value", "will", "partition", "data", "which", "is", "passed", "to", "write", "{", "@", "link", "#", "write", "(", "channel", "handler", "context", ",", "object", ",", "channel", "promise", ")", "}", "the", "partitioning", "will", "work", "as", "follows", ":", "if", "{", "@", "code", "wrap", "data", "size", "<", "=", "0", "}", "then", "we", "will", "write", "each", "data", "chunk", "as", "is", "if", "{", "@", "code", "wrap", "data", "size", ">", "data", "size", "}", "then", "we", "will", "attempt", "to", "aggregate", "multiple", "data", "chunks", "together", "if", "{", "@", "code", "wrap", "data", "size", ">", "data", "size", "}", "else", "if", "{", "@", "code", "wrap", "data", "size", "<", "=", "data", "size", "}", "then", "we", "will", "divide", "the", "data", "into", "chunks", "of", "{", "@", "code", "wrap", "data", "size", "}", "when", "writing", "if", "the", "{", "@", "link", "s", "s", "l", "engine", "}", "doesn", "'", "t", "support", "a", "gather", "wrap", "operation", "(", "e", "g", "{", "@", "link", "ssl", "provider", "#", "openssl", "}", ")", "then", "aggregating", "data", "before", "wrapping", "can", "help", "reduce", "the", "ratio", "between", "tls", "overhead", "vs", "data", "payload", "which", "will", "lead", "to", "better", "goodput", "writing", "fixed", "chunks", "of", "data", "can", "also", "help", "target", "the", "underlying", "transport", "'", "s", "(", "e", "g", "tcp", ")", "frame", "size", "under", "lossycongested", "network", "conditions", "this", "may", "help", "the", "peer", "get", "full", "tls", "packets", "earlier", "and", "be", "able", "to", "do", "work", "sooner", ",", "as", "opposed", "to", "waiting", "for", "the", "all", "the", "pieces", "of", "the", "tls", "packet", "to", "arrive" ]
[ "public", "final", "void", "set", "wrap", "data", "size", "(", "int", "wrap", "data", "size", ")", "{", "this", "wrap", "data", "size", "=", "wrap", "data", "size", ";", "}" ]
[ "a", "weighted", "moving", "average", "estimating", "how", "many", "headers", "are", "expected", "during", "the", "decode", "process" ]
[ "protected", "final", "int", "number", "of", "headers", "guess", "(", ")", "{", "return", "(", "int", ")", "header", "array", "size", "accumulator", ";", "}" ]
[ "sorts", "the", "elements", "of", "{", "@", "code", "array", "}", "between", "{", "@", "code", "from", "index", "}", "inclusive", "and", "{", "@", "code", "to", "index", "}", "exclusive", "in", "descending", "order", "note", "that", "this", "method", "uses", "the", "total", "order", "imposed", "by", "{", "@", "link", "float", "#", "compare", "}", ",", "which", "treats", "all", "na", "n", "values", "as", "equal", "and", "0", "0", "as", "greater", "than", "-", "0", "0" ]
[ "public", "static", "void", "sort", "descending", "(", "float", "[", "]", "array", ",", "int", "from", "index", ",", "int", "to", "index", ")", "{", "check", "not", "null", "(", "array", ")", ";", "check", "position", "indexes", "(", "from", "index", ",", "to", "index", ",", "array", "length", ")", ";", "arrays", "sort", "(", "array", ",", "from", "index", ",", "to", "index", ")", ";", "reverse", "(", "array", ",", "from", "index", ",", "to", "index", ")", ";", "}" ]
[ "uploads", "an", "image", "(", "required", ")" ]
[ "public", "void", "upload", "file", "with", "required", "file", "test", "(", ")", "{", "long", "pet", "id", "=", "null", ";", "file", "required", "file", "=", "null", ";", "string", "additional", "metadata", "=", "null", ";", "/", "/", "model", "api", "response", "response", "=", "api", "upload", "file", "with", "required", "file", "(", "pet", "id", ",", "required", "file", ",", "additional", "metadata", ")", ";", "/", "/", "todo", ":", "test", "validations", "}" ]
[ "returns", "the", "primary", "term", "for", "the", "given", "shard", "see", "{", "@", "link", "index", "metadata", "#", "primary", "term", "(", "int", ")", "}", "for", "more", "information" ]
[ "public", "long", "primary", "term", "(", "int", "shard", "id", ")", "{", "if", "(", "primary", "terms", "=", "=", "null", ")", "{", "initialize", "primary", "terms", "(", ")", ";", "}", "return", "this", "primary", "terms", "[", "shard", "id", "]", ";", "}" ]
[ "return", "the", "priority", "specified", "for", "this", "analysis", "priority" ]
[ "public", "int", "priority", "(", ")", "{", "return", "priority", ";", "}" ]
[ "set", "the", "decompression", "registry", "for", "use", "in", "the", "channel", "this", "is", "an", "advanced", "api", "call", "and", "shouldn", "'", "t", "be", "used", "unless", "you", "are", "using", "custom", "message", "encoding", "the", "default", "supported", "decompressors", "are", "in", "{", "@", "code", "decompressor", "registry", "get", "default", "instance", "}" ]
[ "public", "abstract", "t", "decompressor", "registry", "(", "@", "nullable", "decompressor", "registry", "registry", ")", ";" ]
[ "returns", "the", "lifecycle", "state", "of", "the", "service" ]
[ "state", "state", "(", ")", ";" ]
[ "to", "test", "special", "tags", "to", "test", "special", "tags", "and", "operation", "id", "starting", "with", "number" ]
[ "public", "void", "call", "1", "2", "3test", "special", "tags", "test", "(", ")", "throws", "api", "exception", "{", "client", "body", "=", "null", ";", "client", "response", "=", "api", "call", "1", "2", "3test", "special", "tags", "(", "body", ")", ";", "/", "/", "todo", ":", "test", "validations", "}" ]
[ "for", "debug", "print", "current", "state", "of", "queue" ]
[ "public", "void", "print", "(", ")", "{", "for", "(", "var", "i", "=", "0", ";", "i", "<", "=", "size", "/", "2", ";", "i", "+", "+", ")", "{", "logger", "info", "(", "\"", "parent", ":", "\"", "+", "queue", "[", "i", "]", "+", "\"", "left", "child", ":", "\"", "+", "left", "(", "i", ")", "+", "\"", "right", "child", ":", "\"", "+", "right", "(", "i", ")", ")", ";", "}", "}" ]
[ "construct", "a", "scalar", "resource" ]
[ "public", "static", "protos", "resource", "scalar", "(", "string", "name", ",", "string", "role", ",", "double", "value", ")", "{", "check", "not", "null", "(", "name", ")", ";", "check", "not", "null", "(", "role", ")", ";", "check", "not", "null", "(", "value", ")", ";", "return", "protos", "resource", "new", "builder", "(", ")", "set", "name", "(", "name", ")", "set", "type", "(", "protos", "value", "type", "scalar", ")", "set", "scalar", "(", "protos", "value", "scalar", "new", "builder", "(", ")", "set", "value", "(", "value", ")", ")", "set", "role", "(", "role", ")", "build", "(", ")", ";", "}" ]
[ "return", "the", "http", "method", "of", "the", "request" ]
[ "default", "http", "method", "get", "method", "(", ")", "{", "return", "http", "method", "resolve", "(", "get", "method", "value", "(", ")", ")", ";", "}" ]
[ "get", "class", "name" ]
[ "public", "string", "get", "class", "name", "(", ")", "{", "return", "class", "name", ";", "}" ]
[ "compare", "left", "tree", "and", "right", "tree", "at", "the", "same", "depth" ]
[ "private", "static", "void", "compare", "line", "(", "tree", "info", "left", ",", "tree", "info", "right", ",", "int", "depth", ",", "int", "byte", "threshold", ",", "int", "node", "threshold", ",", "boolean", "debug", ",", "boolean", "interactive", ")", "{", "list", "<", "tree", "info", "tree", "node", ">", "left", "list", "=", "depth", ">", "=", "left", "nodes", "at", "depths", "size", "(", ")", "?", "new", "array", "list", "<", ">", "(", ")", ":", "left", "nodes", "at", "depths", "get", "(", "depth", ")", ";", "list", "<", "tree", "info", "tree", "node", ">", "right", "list", "=", "depth", ">", "=", "right", "nodes", "at", "depths", "size", "(", ")", "?", "new", "array", "list", "<", ">", "(", ")", ":", "right", "nodes", "at", "depths", "get", "(", "depth", ")", ";", "compare", "nodes", "(", "left", "list", ",", "right", "list", ",", "byte", "threshold", ",", "node", "threshold", ",", "debug", ",", "interactive", ")", ";", "}" ]
[ "get", "the", "index", "of", "the", "selected", "item", "in", "the", "list" ]
[ "public", "int", "get", "selected", "index", "(", ")", "{", "return", "list", "get", "selected", "index", "(", ")", ";", "}" ]
[ "tests", "that", "the", "cluster", "retrieval", "of", "a", "finished", "yarn", "application", "fails" ]
[ "public", "void", "test", "cluster", "client", "retrieval", "of", "finished", "yarn", "application", "(", ")", "throws", "exception", "{", "final", "application", "id", "application", "id", "=", "application", "id", "new", "instance", "(", "system", "current", "time", "millis", "(", ")", ",", "42", ")", ";", "final", "application", "report", "application", "report", "=", "create", "application", "report", "(", "application", "id", ",", "yarn", "application", "state", "finished", ",", "final", "application", "status", "succeeded", ")", ";", "final", "yarn", "client", "yarn", "client", "=", "new", "testing", "yarn", "client", "(", "collections", "singleton", "map", "(", "application", "id", ",", "application", "report", ")", ")", ";", "final", "yarn", "configuration", "yarn", "configuration", "=", "new", "yarn", "configuration", "(", ")", ";", "yarn", "client", "init", "(", "yarn", "configuration", ")", ";", "yarn", "client", "start", "(", ")", ";", "final", "yarn", "cluster", "descriptor", "cluster", "descriptor", "=", "yarn", "test", "utils", "create", "cluster", "descriptor", "with", "logging", "(", "temporary", "folder", "new", "folder", "(", ")", "get", "absolute", "path", "(", ")", ",", "new", "configuration", "(", ")", ",", "yarn", "configuration", ",", "yarn", "client", ",", "false", ")", ";", "try", "{", "cluster", "descriptor", "retrieve", "(", "application", "id", ")", ";", "}", "finally", "{", "cluster", "descriptor", "close", "(", ")", ";", "}", "}" ]
[ "any", "symbols", "this", "file", "auto", "-", "generatesexports", "(", "eg", "&", "#", "64", ";", "+", "idfoo", "in", "an", "xml", "file", ")", "<", "code", ">", "repeated", "aapt", "pb", "internal", "compiled", "file", "symbol", "exported", "symbol", "=", "4", ";", "<", "code", ">" ]
[ "public", "builder", "add", "exported", "symbol", "(", "int", "index", ",", "symbol", "builder", "builder", "for", "value", ")", "{", "copy", "on", "write", "(", ")", ";", "instance", "add", "exported", "symbol", "(", "index", ",", "builder", "for", "value", ")", ";", "return", "this", ";", "}" ]
[ "retrieve", "the", "password" ]
[ "public", "string", "get", "password", "(", ")", "{", "return", "password", ";", "}" ]
[ "visits", "a", "return", "statement", "and", "casts", "the", "value", "to", "the", "return", "type", "if", "possible", "checks", ":", "type", "validation" ]
[ "public", "void", "visit", "return", "(", "s", "return", "user", "return", "node", ",", "semantic", "scope", "semantic", "scope", ")", "{", "a", "expression", "user", "value", "node", "=", "user", "return", "node", "get", "value", "node", "(", ")", ";", "if", "(", "user", "value", "node", "=", "=", "null", ")", "{", "if", "(", "semantic", "scope", "get", "return", "type", "(", ")", "!", "=", "void", "class", ")", "{", "throw", "user", "return", "node", "create", "error", "(", "new", "class", "cast", "exception", "(", "\"", "cannot", "cast", "from", "\"", "+", "\"", "[", "\"", "+", "semantic", "scope", "get", "return", "canonical", "type", "name", "(", ")", "+", "\"", "]", "to", "\"", "+", "\"", "[", "\"", "+", "painless", "lookup", "utility", "type", "to", "canonical", "type", "name", "(", "void", "class", ")", "+", "\"", "]", "\"", ")", ")", ";", "}", "}", "else", "{", "semantic", "scope", "set", "condition", "(", "user", "value", "node", ",", "read", "class", ")", ";", "semantic", "scope", "put", "decoration", "(", "user", "value", "node", ",", "new", "target", "type", "(", "semantic", "scope", "get", "return", "type", "(", ")", ")", ")", ";", "semantic", "scope", "set", "condition", "(", "user", "value", "node", ",", "internal", "class", ")", ";", "checked", "visit", "(", "user", "value", "node", ",", "semantic", "scope", ")", ";", "decorate", "with", "cast", "(", "user", "value", "node", ",", "semantic", "scope", ")", ";", "}", "semantic", "scope", "set", "condition", "(", "user", "return", "node", ",", "method", "escape", "class", ")", ";", "semantic", "scope", "set", "condition", "(", "user", "return", "node", ",", "loop", "escape", "class", ")", ";", "semantic", "scope", "set", "condition", "(", "user", "return", "node", ",", "all", "escape", "class", ")", ";", "}" ]
[ "get", "int", "6", "4" ]
[ "public", "long", "get", "int", "6", "4", "(", ")", "{", "return", "int", "6", "4", ";", "}" ]
[ "{", "@", "inherit", "doc", "}", "the", "default", "implementation", "does", "nothing" ]
[ "@", "override", "public", "void", "enter", "sequence", "(", "eql", "base", "parser", "sequence", "context", "ctx", ")", "{", "}" ]
[ "returns", "the", "stats", ",", "including", "type", "specific", "stats", "if", "the", "types", "are", "null", "0", "length", ",", "then", "nothing", "is", "returned", "for", "them", "if", "they", "are", "set", ",", "then", "only", "types", "provided", "will", "be", "returned", ",", "or", "{", "@", "code", "all", "}", "for", "all", "types" ]
[ "indexing", "stats", "stats", "(", "boolean", "is", "throttled", ",", "long", "current", "throttle", "in", "millis", ")", "{", "indexing", "stats", "stats", "total", "=", "total", "stats", "stats", "(", "is", "throttled", ",", "current", "throttle", "in", "millis", ")", ";", "return", "new", "indexing", "stats", "(", "total", ")", ";", "}" ]
[ "the", "input", "path", "must", "be", "of", "the", "form", "<", "path", ">", "<", "name", ">", "framework", "suffix", "return", "the", "paths" ]
[ "private", "static", "string", "get", "framework", "path", "(", "path", "fragment", "framework", "path", ")", "{", "return", "framework", "path", "get", "parent", "directory", "(", ")", "get", "safe", "path", "string", "(", ")", ";", "}" ]
[ "gets", "the", "generator", "settings", "these", "options", "are", "specific", "to", "\"", "what", "\"", "gets", "generated", "(", "language", ",", "framework", ")" ]
[ "public", "generator", "settings", "get", "generator", "settings", "(", ")", "{", "return", "generator", "settings", ";", "}" ]
[ "get", "ship", "date" ]
[ "public", "offset", "date", "time", "get", "ship", "date", "(", ")", "{", "return", "ship", "date", ";", "}" ]
[ "snip", "a", "long", "wrapped", "char", "sequences", "for", "error", "messages" ]
[ "string", "snippet", "(", "int", "max", "str", "length", ")", "{", "if", "(", "max", "str", "length", "<", "snippet", "length", "(", ")", "*", "6", ")", "{", "throw", "new", "illegal", "argument", "exception", "(", "\"", "max", "str", "length", "must", "be", "large", "enough", "to", "include", "three", "snippets", "and", "three", "context", "chars", ",", "\"", "+", "\"", "at", "least", "[", "\"", "+", "snippet", "length", "(", ")", "*", "6", "+", "\"", "]", ",", "not", "[", "\"", "+", "max", "str", "length", "+", "\"", "]", "\"", ")", ";", "}", "if", "(", "wrapped", "length", "(", ")", "<", "=", "max", "str", "length", ")", "{", "return", "wrapped", "to", "string", "(", ")", ";", "}", "return", "wrapped", "sub", "sequence", "(", "0", ",", "max", "str", "length", "-", "snippet", "length", "(", ")", ")", "+", "\"", "\"", ";", "}" ]
[ "sets", "the", "resources", "for", "this", "operator", ",", "the", "minimum", "and", "preferred", "resources", "are", "the", "same", "by", "default" ]
[ "private", "single", "output", "stream", "operator", "<", "t", ">", "set", "resources", "(", "resource", "spec", "resources", ")", "{", "transformation", "set", "resources", "(", "resources", ",", "resources", ")", ";", "return", "this", ";", "}" ]
[ "constructs", "a", "nal", "unit", "consisting", "of", "the", "nal", "start", "code", "followed", "by", "the", "specified", "data" ]
[ "public", "static", "byte", "[", "]", "build", "nal", "unit", "(", "byte", "[", "]", "data", ",", "int", "offset", ",", "int", "length", ")", "{", "byte", "[", "]", "nal", "unit", "=", "new", "byte", "[", "length", "+", "nal", "start", "code", "length", "]", ";", "system", "arraycopy", "(", "nal", "start", "code", ",", "0", ",", "nal", "unit", ",", "0", ",", "nal", "start", "code", "length", ")", ";", "system", "arraycopy", "(", "data", ",", "offset", ",", "nal", "unit", ",", "nal", "start", "code", "length", ",", "length", ")", ";", "return", "nal", "unit", ";", "}" ]
[ "assert", "a", "cookie", "'", "s", "path", "with", "a", "hamcrest", "{", "@", "link", "matcher", "}" ]
[ "public", "result", "matcher", "path", "(", "string", "name", ",", "matcher", "<", "?", "super", "string", ">", "matcher", ")", "{", "return", "result", "-", ">", "{", "cookie", "cookie", "=", "get", "cookie", "(", "result", ",", "name", ")", ";", "assert", "that", "(", "\"", "response", "cookie", "'", "\"", "+", "name", "+", "\"", "'", "path", "\"", ",", "cookie", "get", "path", "(", ")", ",", "matcher", ")", ";", "}", ";", "}" ]
[ "factory", "method", "that", "creates", "a", "new", "instance", "of", "multi", "pointer", "gesture", "detector" ]
[ "public", "static", "multi", "pointer", "gesture", "detector", "new", "instance", "(", ")", "{", "return", "new", "multi", "pointer", "gesture", "detector", "(", ")", ";", "}" ]
[ "obtains", "the", "heap", "dump", "in", "an", "hprof", "file" ]
[ "public", "static", "file", "path", "get", "heap", "dump", "(", "virtual", "channel", "channel", ")", "throws", "i", "o", "exception", ",", "interrupted", "exception", "{", "return", "channel", "call", "(", "new", "get", "heap", "dump", "(", ")", ")", ";", "}" ]
[ "create", "a", "{", "@", "link", "request", "builder", "}", "for", "an", "async", "dispatch", "from", "the", "{", "@", "link", "mvc", "result", "}", "of", "the", "request", "that", "started", "async", "processing", "usage", "involves", "performing", "a", "request", "that", "starts", "async", "processing", "first", ":", "<", "pre", "class", "=", "\"", "code", "\"", ">", "mvc", "result", "mvc", "result", "=", "this", "mock", "mvc", "perform", "(", "get", "(", "\"", "1", "\"", ")", ")", "and", "expect", "(", "request", "(", ")", "async", "started", "(", ")", ")", "and", "return", "(", ")", ";", "and", "then", "performing", "the", "async", "dispatch", "re", "-", "using", "the", "{", "@", "code", "mvc", "result", "}", ":", "<", "pre", "class", "=", "\"", "code", "\"", ">", "this", "mock", "mvc", "perform", "(", "async", "dispatch", "(", "mvc", "result", ")", ")", "and", "expect", "(", "status", "(", ")", "is", "ok", "(", ")", ")", "and", "expect", "(", "content", "(", ")", "content", "type", "(", "media", "type", "application", "json", ")", ")", "and", "expect", "(", "content", "(", ")", "string", "(", "\"", "{", "\\", "\"", "name", "\\", "\"", ":", "\\", "\"", "joe", "\\", "\"", ",", "\\", "\"", "some", "double", "\\", "\"", ":", "0", "0", ",", "\\", "\"", "some", "boolean", "\\", "\"", ":", "false", "}", "\"", ")", ")", ";" ]
[ "public", "static", "request", "builder", "async", "dispatch", "(", "mvc", "result", "mvc", "result", ")", "{", "/", "/", "there", "must", "be", "an", "async", "result", "before", "dispatching", "mvc", "result", "get", "async", "result", "(", ")", ";", "return", "servlet", "context", "-", ">", "{", "mock", "http", "servlet", "request", "request", "=", "mvc", "result", "get", "request", "(", ")", ";", "request", "set", "dispatcher", "type", "(", "dispatcher", "type", "async", ")", ";", "request", "set", "async", "started", "(", "false", ")", ";", "return", "request", ";", "}", ";", "}" ]
[ "model", "tests", "for", "order" ]
[ "public", "void", "test", "order", "(", ")", "{", "/", "/", "todo", ":", "test", "order", "}" ]
[ "this", "method", "should", "set", "the", "additional", "options", "on", "top", "of", "the", "current", "options", "object", "the", "current", "options", "object", "may", "contain", "pre", "-", "defined", "options", "based", "on", "flags", "that", "have", "been", "configured", "on", "the", "state", "backend", "it", "is", "important", "to", "set", "the", "options", "on", "the", "current", "object", "and", "return", "the", "result", "from", "the", "setter", "methods", ",", "otherwise", "the", "pre", "-", "defined", "options", "may", "get", "lost" ]
[ "default", "write", "options", "create", "write", "options", "(", "write", "options", "current", "options", ",", "collection", "<", "auto", "closeable", ">", "handles", "to", "close", ")", "{", "return", "current", "options", ";", "}" ]
[ "checks", "whether", "the", "given", "type", "has", "the", "generic", "parameters", "declared", "in", "the", "class", "definition" ]
[ "public", "static", "void", "validate", "lambda", "type", "(", "class", "<", "?", ">", "base", "class", ",", "type", "t", ")", "{", "if", "(", "!", "(", "t", "instanceof", "class", ")", ")", "{", "return", ";", "}", "final", "class", "<", "?", ">", "clazz", "=", "(", "class", "<", "?", ">", ")", "t", ";", "if", "(", "clazz", "get", "type", "parameters", "(", ")", "length", ">", "0", ")", "{", "throw", "new", "invalid", "types", "exception", "(", "\"", "the", "generic", "type", "parameters", "of", "'", "\"", "+", "clazz", "get", "simple", "name", "(", ")", "+", "\"", "'", "are", "missing", "\"", "+", "\"", "in", "many", "cases", "lambda", "methods", "don", "'", "t", "provide", "enough", "information", "for", "automatic", "type", "extraction", "when", "java", "generics", "are", "involved", "\"", "+", "\"", "an", "easy", "workaround", "is", "to", "use", "an", "(", "anonymous", ")", "class", "instead", "that", "implements", "the", "'", "\"", "+", "base", "class", "get", "name", "(", ")", "+", "\"", "'", "interface", "\"", "+", "\"", "otherwise", "the", "type", "has", "to", "be", "specified", "explicitly", "using", "type", "information", "\"", ")", ";", "}", "}" ]
[ "stop", "the", "mini", "k", "m", "s", "and", "mini", "d", "f", "s" ]
[ "private", "void", "teardown", "(", ")", "{", "/", "/", "restore", "login", "user", "user", "group", "information", "set", "login", "user", "(", "real", "ugi", ")", ";", "if", "(", "cluster", "!", "=", "null", ")", "{", "cluster", "shutdown", "(", ")", ";", "}", "mini", "k", "m", "s", "stop", "(", ")", ";", "}" ]
[ "delete", "purchase", "order", "by", "id", "for", "valid", "response", "try", "integer", "i", "ds", "with", "value", "&", "lt", ";", "1000", "anything", "above", "1000", "or", "nonintegers", "will", "generate", "api", "errors" ]
[ "void", "delete", "order", "(", "@", "param", "(", "\"", "order", "id", "\"", ")", "string", "order", "id", ")", ";" ]
[ "get", "namespace", "number" ]
[ "public", "big", "decimal", "get", "namespace", "number", "(", ")", "{", "return", "namespace", "number", ";", "}" ]
[ "delete", "fake", ":", "fake", "endpoint", "to", "test", "group", "parameters", "(", "optional", ")", "fake", "endpoint", "to", "test", "group", "parameters", "(", "optional", ")" ]
[ "response", "entity", "<", "void", ">", "test", "group", "parameters", "(", "@", "not", "null", "@", "api", "param", "(", "value", "=", "\"", "required", "string", "in", "group", "parameters", "\"", ",", "required", "=", "true", ")", "@", "valid", "@", "request", "param", "(", "value", "=", "\"", "required", "string", "group", "\"", ",", "required", "=", "true", ")", "integer", "required", "string", "group", ",", "@", "api", "param", "(", "value", "=", "\"", "required", "boolean", "in", "group", "parameters", "\"", ",", "required", "=", "true", ")", "@", "request", "header", "(", "value", "=", "\"", "required", "boolean", "group", "\"", ",", "required", "=", "true", ")", "boolean", "required", "boolean", "group", ",", "@", "not", "null", "@", "api", "param", "(", "value", "=", "\"", "required", "integer", "in", "group", "parameters", "\"", ",", "required", "=", "true", ")", "@", "valid", "@", "request", "param", "(", "value", "=", "\"", "required", "int", "6", "4", "group", "\"", ",", "required", "=", "true", ")", "long", "required", "int", "6", "4", "group", ",", "@", "api", "param", "(", "value", "=", "\"", "string", "in", "group", "parameters", "\"", ")", "@", "valid", "@", "request", "param", "(", "value", "=", "\"", "string", "group", "\"", ",", "required", "=", "false", ")", "integer", "string", "group", ",", "@", "api", "param", "(", "value", "=", "\"", "boolean", "in", "group", "parameters", "\"", ")", "@", "request", "header", "(", "value", "=", "\"", "boolean", "group", "\"", ",", "required", "=", "false", ")", "boolean", "boolean", "group", ",", "@", "api", "param", "(", "value", "=", "\"", "integer", "in", "group", "parameters", "\"", ")", "@", "valid", "@", "request", "param", "(", "value", "=", "\"", "int", "6", "4", "group", "\"", ",", "required", "=", "false", ")", "long", "int", "6", "4", "group", ")", ";" ]
[ "{", "@", "inherit", "doc", "}" ]
[ "public", "bit", "set", "compatible", "regs", "(", "dalv", "insn", "insn", ")", "{", "register", "spec", "list", "regs", "=", "insn", "get", "registers", "(", ")", ";", "bit", "set", "bits", "=", "new", "bit", "set", "(", "1", ")", ";", "bits", "set", "(", "0", ",", "unsigned", "fits", "in", "byte", "(", "regs", "get", "(", "0", ")", "get", "reg", "(", ")", ")", ")", ";", "return", "bits", ";", "}" ]
[ "prints", "out", "the", "given", "warning", "and", "increments", "the", "warning", "count" ]
[ "private", "void", "print", "(", "string", "warning", ")", "{", "print", "stream", "println", "(", "warning", ")", ";", "warning", "count", "+", "+", ";", "}" ]
[ "get", "first", "name" ]
[ "public", "string", "get", "first", "name", "(", ")", "{", "return", "first", "name", ";", "}" ]
[ "add", "one", "or", "more", "{", "@", "link", "event", "listener", "dubbo", "event", "listeners", "}" ]
[ "default", "void", "add", "event", "listeners", "(", "e", "listener", ",", "e", "others", ")", "throws", "null", "pointer", "exception", ",", "illegal", "argument", "exception", "{", "list", "<", "e", ">", "listeners", "=", "new", "array", "list", "<", ">", "(", "1", "+", "others", "length", ")", ";", "listeners", "add", "(", "listener", ")", ";", "listeners", "add", "all", "(", "arrays", "as", "list", "(", "others", ")", ")", ";", "add", "event", "listeners", "(", "listeners", ")", ";", "}" ]
[ "location", "in", "the", "source", "statement" ]
[ "public", "source", "source", "(", ")", "{", "return", "source", ";", "}" ]
[ "get", "the", "directories", "where", "the", "namenode", "stores", "its", "image" ]
[ "public", "collection", "<", "uri", ">", "get", "name", "dirs", "(", "int", "nn", "index", ")", "{", "return", "f", "s", "namesystem", "get", "namespace", "dirs", "(", "get", "n", "n", "(", "nn", "index", ")", "conf", ")", ";", "}" ]
[ "returns", "the", "progress", "string", "to", "prefix", "action", "execution", "messages", "with" ]
[ "string", "get", "progress", "string", "(", ")", ";" ]
[ "decrypts", "an", "encrypted", "byte", "[", "]", "key", "material", "using", "the", "given", "a", "key", "version", "name", "and", "initialization", "vector" ]
[ "public", "key", "version", "decrypt", "encrypted", "key", "(", "encrypted", "key", "version", "encrypted", "key", ")", "throws", "i", "o", "exception", ",", "general", "security", "exception", "{", "return", "get", "extension", "(", ")", "decrypt", "encrypted", "key", "(", "encrypted", "key", ")", ";", "}" ]
[ "source", "line", "and", "column", "info", "<", "code", ">", "optional", "aapt", "pb", "source", "position", "source", "=", "3", ";", "<", "code", ">" ]
[ "private", "void", "set", "source", "(", "com", "android", "aapt", "resources", "source", "position", "value", ")", "{", "if", "(", "value", "=", "=", "null", ")", "{", "throw", "new", "null", "pointer", "exception", "(", ")", ";", "}", "source", "=", "value", ";", "bit", "field", "0", "|", "=", "0x", "0", "0", "0", "0", "0", "0", "0", "4", ";", "}" ]
[ "move", "the", "chains", "in", "snapshot", "data", "to", "the", "back", "of", "the", "array", ",", "and", "return", "the", "index", "of", "the", "first", "chain", "from", "the", "front" ]
[ "int", "move", "chains", "to", "back", "of", "array", "(", ")", "{", "int", "index", "=", "snapshot", "data", "length", "-", "1", ";", "/", "/", "find", "the", "first", "null", "chain", "from", "the", "back", "while", "(", "index", ">", "=", "0", ")", "{", "if", "(", "snapshot", "data", "[", "index", "]", "=", "=", "null", ")", "{", "break", ";", "}", "index", "-", "-", ";", "}", "int", "last", "null", "index", "=", "index", ";", "index", "-", "-", ";", "/", "/", "move", "the", "chains", "to", "the", "back", "while", "(", "index", ">", "=", "0", ")", "{", "copy", "on", "write", "state", "map", "state", "map", "entry", "<", "k", ",", "n", ",", "s", ">", "entry", "=", "snapshot", "data", "[", "index", "]", ";", "if", "(", "entry", "!", "=", "null", ")", "{", "snapshot", "data", "[", "last", "null", "index", "]", "=", "entry", ";", "snapshot", "data", "[", "index", "]", "=", "null", ";", "last", "null", "index", "-", "-", ";", "}", "index", "-", "-", ";", "}", "/", "/", "return", "the", "index", "of", "the", "first", "chain", "from", "the", "front", "return", "last", "null", "index", "+", "1", ";", "}" ]
[ "get", "the", "{", "@", "link", "#", "set", "max", "in", "memory", "size", "configured", "}", "maximum", "in", "-", "memory", "size" ]
[ "public", "int", "get", "max", "in", "memory", "size", "(", ")", "{", "return", "this", "max", "in", "memory", "size", ";", "}" ]
[ "the", "datafeed", "ids", "of", "started", "datafeed", "tasks" ]
[ "public", "static", "set", "<", "string", ">", "started", "datafeed", "ids", "(", "@", "nullable", "persistent", "tasks", "custom", "metadata", "tasks", ")", "{", "if", "(", "tasks", "=", "=", "null", ")", "{", "return", "collections", "empty", "set", "(", ")", ";", "}", "return", "tasks", "find", "tasks", "(", "datafeed", "task", "name", ",", "task", "-", ">", "true", ")", "stream", "(", ")", "map", "(", "t", "-", ">", "t", "get", "id", "(", ")", "substring", "(", "datafeed", "task", "id", "prefix", "length", "(", ")", ")", ")", "collect", "(", "collectors", "to", "set", "(", ")", ")", ";", "}" ]
[ "updates", "all", "records", "with", "details", "given", "if", "they", "match", "a", "set", "of", "conditions", "supplied", "this", "method", "constructs", "a", "single", "sql", "update", "statement", "and", "sends", "it", "to", "the", "database", "person", "person", "=", "new", "person", "(", ")", ";", "person", "set", "name", "(", "&", "quot", ";", "jim", "&", "quot", ";", ")", ";", "person", "update", "all", "(", "&", "quot", ";", "name", "=", "?", "&", "quot", ";", ",", "&", "quot", ";", "tom", "&", "quot", ";", ")", ";", "this", "means", "that", "all", "the", "records", "which", "name", "is", "tom", "will", "be", "updated", "into", "jim", "<", "br", ">", "<", "b", ">", "note", ":", "<", "b", ">", "1", "if", "you", "set", "a", "default", "value", "to", "a", "field", ",", "the", "corresponding", "column", "won", "'", "t", "be", "updated", "use", "{", "@", "link", "#", "set", "to", "default", "(", "string", ")", "}", "to", "update", "columns", "into", "default", "value", "2", "this", "method", "couldn", "'", "t", "update", "foreign", "key", "in", "database", "so", "do", "not", "use", "set", "xxx", "to", "set", "associations", "between", "models" ]
[ "public", "int", "update", "all", "(", "string", "conditions", ")", "{", "synchronized", "(", "lite", "pal", "support", "class", ")", "{", "s", "q", "lite", "database", "db", "=", "connector", "get", "database", "(", ")", ";", "db", "begin", "transaction", "(", ")", ";", "try", "{", "update", "handler", "update", "handler", "=", "new", "update", "handler", "(", "connector", "get", "database", "(", ")", ")", ";", "int", "rows", "affected", "=", "update", "handler", "on", "update", "all", "(", "this", ",", "conditions", ")", ";", "get", "fields", "to", "set", "to", "default", "(", ")", "clear", "(", ")", ";", "db", "set", "transaction", "successful", "(", ")", ";", "return", "rows", "affected", ";", "}", "catch", "(", "exception", "e", ")", "{", "throw", "new", "lite", "pal", "support", "exception", "(", "e", "get", "message", "(", ")", ",", "e", ")", ";", "}", "finally", "{", "db", "end", "transaction", "(", ")", ";", "}", "}", "}" ]
[ "find", "the", "primary", "keys", "corresponding", "to", "those", "records", "which", "contain", "the", "specified", "field", "value", "in", "the", "specified", "record", "column", "the", "table", "must", "have", "been", "created", "with", "long", "keys", "and", "a", "secondary", "index", "on", "the", "specified", "column", "index" ]
[ "public", "field", "[", "]", "find", "records", "(", "field", "field", ",", "int", "column", "index", ")", "throws", "i", "o", "exception", "{", "synchronized", "(", "db", ")", "{", "index", "table", "index", "table", "=", "secondary", "indexes", "get", "(", "column", "index", ")", ";", "if", "(", "index", "table", "=", "=", "null", ")", "{", "throw", "new", "i", "o", "exception", "(", "\"", "index", "required", "(", "\"", "+", "get", "name", "(", ")", "+", "\"", ",", "\"", "+", "column", "index", "+", "\"", ")", "\"", ")", ";", "}", "return", "index", "table", "find", "primary", "keys", "(", "field", ")", ";", "}", "}" ]
[ "test", "that", "coerce", "parameter", "correctly", "parses" ]
[ "public", "void", "test", "coerce", "parsing", "(", ")", "throws", "i", "o", "exception", "{", "document", "mapper", "mapper", "=", "create", "document", "mapper", "(", "field", "mapping", "(", "b", "-", ">", "b", "field", "(", "\"", "type", "\"", ",", "\"", "geo", "shape", "\"", ")", "field", "(", "\"", "tree", "\"", ",", "\"", "quadtree", "\"", ")", "field", "(", "\"", "coerce", "\"", ",", "true", ")", ")", ")", ";", "mapper", "field", "mapper", "=", "mapper", "mappers", "(", ")", "get", "mapper", "(", "\"", "field", "\"", ")", ";", "assert", "that", "(", "field", "mapper", ",", "instance", "of", "(", "legacy", "geo", "shape", "field", "mapper", "class", ")", ")", ";", "boolean", "coerce", "=", "(", "(", "legacy", "geo", "shape", "field", "mapper", ")", "field", "mapper", ")", "coerce", "(", ")", ";", "assert", "that", "(", "coerce", ",", "equal", "to", "(", "true", ")", ")", ";", "/", "/", "explicit", "false", "coerce", "test", "mapper", "=", "create", "document", "mapper", "(", "field", "mapping", "(", "b", "-", ">", "b", "field", "(", "\"", "type", "\"", ",", "\"", "geo", "shape", "\"", ")", "field", "(", "\"", "tree", "\"", ",", "\"", "quadtree", "\"", ")", "field", "(", "\"", "coerce", "\"", ",", "false", ")", ")", ")", ";", "field", "mapper", "=", "mapper", "mappers", "(", ")", "get", "mapper", "(", "\"", "field", "\"", ")", ";", "assert", "that", "(", "field", "mapper", ",", "instance", "of", "(", "legacy", "geo", "shape", "field", "mapper", "class", ")", ")", ";", "coerce", "=", "(", "(", "legacy", "geo", "shape", "field", "mapper", ")", "field", "mapper", ")", "coerce", "(", ")", ";", "assert", "that", "(", "coerce", ",", "equal", "to", "(", "false", ")", ")", ";", "assert", "field", "warnings", "(", "\"", "tree", "\"", ",", "\"", "strategy", "\"", ")", ";", "}" ]
[ "sets", "whether", "to", "always", "quote", "cdata", "segments", "(", "even", "if", "they", "don", "'", "t", "contain", "special", "characters", ")" ]
[ "public", "void", "set", "always", "quote", "c", "data", "(", "boolean", "always", "quote", "c", "data", ")", "{", "this", "always", "quote", "c", "data", "=", "always", "quote", "c", "data", ";", "}" ]
[ "asserts", "that", "the", "given", "fusion", "mode", "has", "been", "established", "package", "-", "private", ":", "avoid", "leaking", "the", "now", "internal", "fusion", "properties", "into", "the", "public", "api", "use", "subscriber", "fusion", "to", "work", "with", "such", "tests" ]
[ "public", "final", "test", "subscriber", "ex", "<", "t", ">", "assert", "fusion", "mode", "(", "int", "mode", ")", "{", "int", "m", "=", "established", "fusion", "mode", ";", "if", "(", "m", "!", "=", "mode", ")", "{", "if", "(", "qs", "!", "=", "null", ")", "{", "throw", "new", "assertion", "error", "(", "\"", "fusion", "mode", "different", "expected", ":", "\"", "+", "fusion", "mode", "to", "string", "(", "mode", ")", "+", "\"", ",", "actual", ":", "\"", "+", "fusion", "mode", "to", "string", "(", "m", ")", ")", ";", "}", "else", "{", "throw", "fail", "(", "\"", "upstream", "is", "not", "fuseable", "\"", ")", ";", "}", "}", "return", "this", ";", "}" ]
[ "get", "prefix", "number" ]
[ "public", "big", "decimal", "get", "prefix", "number", "(", ")", "{", "return", "prefix", "number", ";", "}" ]
[ "load", "8", "bytes", "into", "long", "in", "a", "little", "endian", "manner", ",", "from", "the", "substring", "between", "position", "and", "position", "+", "8", "the", "array", "must", "have", "at", "least", "8", "bytes", "from", "offset", "(", "inclusive", ")" ]
[ "static", "long", "load", "6", "4", "(", "byte", "[", "]", "input", ",", "int", "offset", ")", "{", "/", "/", "we", "don", "'", "t", "want", "this", "in", "production", "code", "as", "this", "is", "the", "most", "critical", "part", "of", "the", "loop", "assert", "input", "length", ">", "=", "offset", "+", "8", ";", "/", "/", "delegates", "to", "the", "fast", "(", "unsafe", ")", "version", "or", "the", "fallback", "return", "byte", "array", "get", "long", "little", "endian", "(", "input", ",", "offset", ")", ";", "}" ]
[ "fake", "endpoint", "for", "testing", "various", "parameters", "๊ฐ€์งœ", "์—”๋“œ", "ํฌ์ธํŠธ", "fake", "endpoint", "for", "testing", "various", "parameters", "๊ฐ€์งœ", "์—”๋“œ", "ํฌ์ธํŠธ" ]
[ "public", "void", "test", "endpoint", "parameters", "(", "big", "decimal", "number", ",", "double", "double", ",", "string", "pattern", "without", "delimiter", ",", "byte", "[", "]", "byte", ",", "integer", "integer", ",", "integer", "int", "3", "2", ",", "long", "int", "6", "4", ",", "float", "float", ",", "string", "string", ",", "async", "file", "binary", ",", "local", "date", "date", ",", "offset", "date", "time", "date", "time", ",", "string", "password", ",", "string", "param", "callback", ",", "api", "client", "auth", "info", "auth", "info", ",", "handler", "<", "async", "result", "<", "void", ">", ">", "result", "handler", ")", "{", "delegate", "test", "endpoint", "parameters", "(", "number", ",", "double", ",", "pattern", "without", "delimiter", ",", "byte", ",", "integer", ",", "int", "3", "2", ",", "int", "6", "4", ",", "float", ",", "string", ",", "binary", ",", "date", ",", "date", "time", ",", "password", ",", "param", "callback", ",", "auth", "info", ",", "result", "handler", ")", ";", "}" ]
[ "returns", "elapsed", "time", "for", "the", "specified", "phase", ",", "calculated", "as", "(", "end", "-", "begin", ")", "if", "phase", "is", "complete", "or", "(", "now", "-", "begin", ")", "if", "phase", "is", "running", "or", "0", "if", "the", "phase", "is", "still", "pending" ]
[ "public", "long", "get", "elapsed", "time", "(", "phase", "phase", ")", "{", "return", "get", "elapsed", "time", "(", "phases", "get", "(", "phase", ")", ")", ";", "}" ]
[ "returns", "a", "{", "@", "link", "cipher", "}", "object", "for", "encrypting", "with", "this", "key" ]
[ "public", "cipher", "encrypt", "(", ")", "{", "try", "{", "cipher", "cipher", "=", "secret", "get", "cipher", "(", "key", "algorithm", ")", ";", "cipher", "init", "(", "cipher", "encrypt", "mode", ",", "get", "key", "(", ")", ")", ";", "return", "cipher", ";", "}", "catch", "(", "general", "security", "exception", "e", ")", "{", "throw", "new", "assertion", "error", "(", "e", ")", ";", "}", "}" ]
[ "get", "attribute", "integer" ]
[ "public", "integer", "get", "attribute", "integer", "(", ")", "{", "return", "attribute", "integer", ";", "}" ]
[ "add", "config", "time" ]
[ "public", "static", "void", "add", "config", "time", "(", "long", "time", ")", "{", "get", "config", "count", "increment", "and", "get", "(", ")", ";", "if", "(", "time", "<", "ms", "50", ")", "{", "get", "config", "count", "detail", "[", "0", "]", "increment", "and", "get", "(", ")", ";", "}", "else", "if", "(", "time", "<", "ms", "100", ")", "{", "get", "config", "count", "detail", "[", "1", "]", "increment", "and", "get", "(", ")", ";", "}", "else", "if", "(", "time", "<", "ms", "200", ")", "{", "get", "config", "count", "detail", "[", "2", "]", "increment", "and", "get", "(", ")", ";", "}", "else", "if", "(", "time", "<", "ms", "500", ")", "{", "get", "config", "count", "detail", "[", "3", "]", "increment", "and", "get", "(", ")", ";", "}", "else", "if", "(", "time", "<", "ms", "1000", ")", "{", "get", "config", "count", "detail", "[", "4", "]", "increment", "and", "get", "(", ")", ";", "}", "else", "if", "(", "time", "<", "ms", "2000", ")", "{", "get", "config", "count", "detail", "[", "5", "]", "increment", "and", "get", "(", ")", ";", "}", "else", "if", "(", "time", "<", "ms", "3000", ")", "{", "get", "config", "count", "detail", "[", "6", "]", "increment", "and", "get", "(", ")", ";", "}", "else", "{", "get", "config", "count", "detail", "[", "7", "]", "increment", "and", "get", "(", ")", ";", "}", "}" ]
[ "this", "test", "adds", "random", "fields", "and", "objects", "to", "the", "x", "content", "rendered", "out", "to", "ensure", "we", "can", "parse", "it", "back", "to", "be", "forward", "compatible", "with", "additions", "to", "the", "x", "content" ]
[ "public", "void", "test", "from", "x", "content", "with", "random", "fields", "(", ")", "throws", "i", "o", "exception", "{", "do", "from", "x", "content", "test", "with", "random", "fields", "(", "true", ")", ";", "}" ]
[ "compare", "each", "individual", "entry", "in", "a", "list", "after", "having", "sorted", "both", "lists", "(", "optionally", "using", "a", "comparator", ")" ]
[ "public", "static", "void", "assert", "sort", "and", "compare", "list", "model", "attribute", "(", "model", "and", "view", "mav", ",", "string", "model", "name", ",", "list", "expected", "list", ",", "comparator", "comparator", ")", "{", "list", "model", "list", "=", "assert", "and", "return", "model", "attribute", "of", "type", "(", "mav", ",", "model", "name", ",", "list", "class", ")", ";", "assert", "true", "(", "\"", "size", "of", "model", "list", "is", "'", "\"", "+", "model", "list", "size", "(", ")", "+", "\"", "'", "while", "size", "of", "expected", "list", "is", "'", "\"", "+", "expected", "list", "size", "(", ")", "+", "\"", "'", "\"", ",", "expected", "list", "size", "(", ")", "=", "=", "model", "list", "size", "(", ")", ")", ";", "model", "list", "sort", "(", "comparator", ")", ";", "expected", "list", "sort", "(", "comparator", ")", ";", "assert", "true", "(", "\"", "list", "in", "model", "under", "name", "'", "\"", "+", "model", "name", "+", "\"", "'", "is", "not", "equal", "to", "the", "expected", "list", "\"", ",", "expected", "list", "equals", "(", "model", "list", ")", ")", ";", "}" ]
[ "returns", "the", "capacity", "of", "this", "object", "pool", "note", ":", "the", "pool", "will", "automatically", "resize", "to", "contain", "additional", "objects", "if", "the", "user", "tries", "to", "add", "more", "objects", "than", "the", "pool", "'", "s", "capacity", "allows", ",", "but", "this", "comes", "at", "a", "performance", "cost" ]
[ "public", "int", "get", "pool", "capacity", "(", ")", "{", "return", "this", "objects", "length", ";", "}" ]