docstring_tokens
list
code_tokens
list
[ "create", "flink", "column", "stats", "from", "hive", "column", "statistics", "data" ]
[ "private", "static", "catalog", "column", "statistics", "data", "base", "create", "table", "column", "stats", "(", "data", "type", "col", "type", ",", "column", "statistics", "data", "stats", ",", "string", "hive", "version", ")", "{", "hive", "shim", "hive", "shim", "=", "hive", "shim", "loader", "load", "hive", "shim", "(", "hive", "version", ")", ";", "if", "(", "stats", "is", "set", "binary", "stats", "(", ")", ")", "{", "binary", "column", "stats", "data", "binary", "stats", "=", "stats", "get", "binary", "stats", "(", ")", ";", "return", "new", "catalog", "column", "statistics", "data", "binary", "(", "binary", "stats", "is", "set", "max", "col", "len", "(", ")", "?", "binary", "stats", "get", "max", "col", "len", "(", ")", ":", "null", ",", "binary", "stats", "is", "set", "avg", "col", "len", "(", ")", "?", "binary", "stats", "get", "avg", "col", "len", "(", ")", ":", "null", ",", "binary", "stats", "is", "set", "num", "nulls", "(", ")", "?", "binary", "stats", "get", "num", "nulls", "(", ")", ":", "null", ")", ";", "}", "else", "if", "(", "stats", "is", "set", "boolean", "stats", "(", ")", ")", "{", "boolean", "column", "stats", "data", "boolean", "stats", "=", "stats", "get", "boolean", "stats", "(", ")", ";", "return", "new", "catalog", "column", "statistics", "data", "boolean", "(", "boolean", "stats", "is", "set", "num", "trues", "(", ")", "?", "boolean", "stats", "get", "num", "trues", "(", ")", ":", "null", ",", "boolean", "stats", "is", "set", "num", "falses", "(", ")", "?", "boolean", "stats", "get", "num", "falses", "(", ")", ":", "null", ",", "boolean", "stats", "is", "set", "num", "nulls", "(", ")", "?", "boolean", "stats", "get", "num", "nulls", "(", ")", ":", "null", ")", ";", "}", "else", "if", "(", "hive", "shim", "is", "date", "stats", "(", "stats", ")", ")", "{", "return", "hive", "shim", "to", "flink", "date", "col", "stats", "(", "stats", ")", ";", "}", "else", "if", "(", "stats", "is", "set", "double", "stats", "(", ")", ")", "{", "double", "column", "stats", "data", "double", "stats", "=", "stats", "get", "double", "stats", "(", ")", ";", "return", "new", "catalog", "column", "statistics", "data", "double", "(", "double", "stats", "is", "set", "low", "value", "(", ")", "?", "double", "stats", "get", "low", "value", "(", ")", ":", "null", ",", "double", "stats", "is", "set", "high", "value", "(", ")", "?", "double", "stats", "get", "high", "value", "(", ")", ":", "null", ",", "double", "stats", "is", "set", "num", "d", "vs", "(", ")", "?", "double", "stats", "get", "num", "d", "vs", "(", ")", ":", "null", ",", "double", "stats", "is", "set", "num", "nulls", "(", ")", "?", "double", "stats", "get", "num", "nulls", "(", ")", ":", "null", ")", ";", "}", "else", "if", "(", "stats", "is", "set", "long", "stats", "(", ")", ")", "{", "long", "column", "stats", "data", "long", "col", "stats", "=", "stats", "get", "long", "stats", "(", ")", ";", "return", "new", "catalog", "column", "statistics", "data", "long", "(", "long", "col", "stats", "is", "set", "low", "value", "(", ")", "?", "long", "col", "stats", "get", "low", "value", "(", ")", ":", "null", ",", "long", "col", "stats", "is", "set", "high", "value", "(", ")", "?", "long", "col", "stats", "get", "high", "value", "(", ")", ":", "null", ",", "long", "col", "stats", "is", "set", "num", "d", "vs", "(", ")", "?", "long", "col", "stats", "get", "num", "d", "vs", "(", ")", ":", "null", ",", "long", "col", "stats", "is", "set", "num", "nulls", "(", ")", "?", "long", "col", "stats", "get", "num", "nulls", "(", ")", ":", "null", ")", ";", "}", "else", "if", "(", "stats", "is", "set", "string", "stats", "(", ")", ")", "{", "string", "column", "stats", "data", "string", "stats", "=", "stats", "get", "string", "stats", "(", ")", ";", "return", "new", "catalog", "column", "statistics", "data", "string", "(", "string", "stats", "is", "set", "max", "col", "len", "(", ")", "?", "string", "stats", "get", "max", "col", "len", "(", ")", ":", "null", ",", "string", "stats", "is", "set", "avg", "col", "len", "(", ")", "?", "string", "stats", "get", "avg", "col", "len", "(", ")", ":", "null", ",", "string", "stats", "is", "set", "num", "d", "vs", "(", ")", "?", "string", "stats", "get", "num", "d", "vs", "(", ")", ":", "null", ",", "string", "stats", "is", "set", "num", "d", "vs", "(", ")", "?", "string", "stats", "get", "num", "nulls", "(", ")", ":", "null", ")", ";", "}", "else", "if", "(", "stats", "is", "set", "decimal", "stats", "(", ")", ")", "{", "decimal", "column", "stats", "data", "decimal", "stats", "=", "stats", "get", "decimal", "stats", "(", ")", ";", "/", "/", "for", "now", ",", "just", "return", "catalog", "column", "statistics", "data", "double", "for", "decimal", "columns", "double", "max", "=", "null", ";", "if", "(", "decimal", "stats", "is", "set", "high", "value", "(", ")", ")", "{", "max", "=", "to", "hive", "decimal", "(", "decimal", "stats", "get", "high", "value", "(", ")", ")", "double", "value", "(", ")", ";", "}", "double", "min", "=", "null", ";", "if", "(", "decimal", "stats", "is", "set", "low", "value", "(", ")", ")", "{", "min", "=", "to", "hive", "decimal", "(", "decimal", "stats", "get", "low", "value", "(", ")", ")", "double", "value", "(", ")", ";", "}", "long", "ndv", "=", "decimal", "stats", "is", "set", "num", "d", "vs", "(", ")", "?", "decimal", "stats", "get", "num", "d", "vs", "(", ")", ":", "null", ";", "long", "null", "count", "=", "decimal", "stats", "is", "set", "num", "nulls", "(", ")", "?", "decimal", "stats", "get", "num", "nulls", "(", ")", ":", "null", ";", "return", "new", "catalog", "column", "statistics", "data", "double", "(", "min", ",", "max", ",", "ndv", ",", "null", "count", ")", ";", "}", "else", "{", "log", "warn", "(", "\"", "flink", "does", "not", "support", "converting", "column", "statistics", "data", "'", "{", "}", "'", "for", "hive", "column", "type", "'", "{", "}", "'", "yet", "\"", ",", "stats", ",", "col", "type", ")", ";", "return", "null", ";", "}", "}" ]
[ "template", "method", "that", "allows", "for", "custom", "message", "marshalling", "invoked", "when", "{", "@", "link", "#", "set", "target", "type", "}", "is", "not", "{", "@", "link", "message", "type", "#", "text", "}", "or", "{", "@", "link", "message", "type", "#", "bytes", "}", "the", "default", "implementation", "throws", "an", "{", "@", "link", "illegal", "argument", "exception", "}" ]
[ "protected", "message", "marshal", "to", "message", "(", "object", "object", ",", "session", "session", ",", "marshaller", "marshaller", ",", "message", "type", "target", "type", ")", "throws", "j", "m", "s", "exception", ",", "i", "o", "exception", ",", "xml", "mapping", "exception", "{", "throw", "new", "illegal", "argument", "exception", "(", "\"", "unsupported", "message", "type", "[", "\"", "+", "target", "type", "+", "\"", "]", "marshalling", "message", "converter", "by", "default", "only", "supports", "text", "messages", "and", "bytes", "messages", "\"", ")", ";", "}" ]
[ "get", "the", "offset", "of", "this", "variable", "into", "its", "containing", "high", "symbol", "if", "the", "value", "is", "-", "1", ",", "this", "indicates", "that", "this", "high", "variable", "matches", "the", "size", "and", "storage", "of", "the", "symbol" ]
[ "public", "int", "get", "offset", "(", ")", "{", "return", "offset", ";", "}" ]
[ "retrieves", "the", "character", "at", "the", "{", "@", "code", "index", "}" ]
[ "public", "char", "char", "at", "(", "int", "index", ")", "{", "if", "(", "index", "<", "0", "|", "|", "index", ">", "=", "length", ")", "{", "throw", "new", "string", "index", "out", "of", "bounds", "exception", "(", "index", ")", ";", "}", "return", "chars", "[", "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", "\"", ")", ";", "}" ]
[ "returns", "the", "i", "'", "th", "bucket", "'", "s", "upper", "bound", ",", "given", "that", "the", "distribution", "is", "to", "be", "split", "into", "{", "@", "code", "total", "buckets", "}", "buckets", "assuming", "n", "buckets", ",", "let", "{", "@", "code", "b", "i", "}", "be", "the", "result", "from", "calling", "{", "@", "code", "get", "bucket", "boundary", "(", "i", ",", "n", ")", "}", ",", "then", "the", "distribution", "will", "partition", "the", "data", "domain", "in", "the", "following", "fashion", ":", "(", "-", "inf", ",", "b", "1", "]", "(", "b", "1", ",", "b", "2", "]", "(", "b", "n", "-", "2", ",", "b", "n", "-", "1", "]", "(", "b", "n", "-", "1", ",", "inf", ")", "note", ":", "the", "last", "bucket", "'", "s", "upper", "bound", "is", "actually", "discarded", "by", "many", "algorithms", "the", "last", "bucket", "is", "assumed", "to", "hold", "all", "values", "v", "such", "that", "{", "@", "code", "v", ">", "get", "bucket", "boundary", "(", "n", "-", "1", ",", "n", ")", "}", ",", "where", "n", "is", "the", "number", "of", "buckets" ]
[ "object", "[", "]", "get", "bucket", "boundary", "(", "int", "bucket", "num", ",", "int", "total", "num", "buckets", ")", ";" ]
[ "{", "@", "link", "#", "add", "(", "object", ",", "object", ")", "add", "}", "the", "given", "value", ",", "only", "when", "the", "map", "does", "not", "{", "@", "link", "#", "contains", "key", "(", "object", ")", "contain", "}", "the", "given", "key" ]
[ "default", "void", "add", "if", "absent", "(", "k", "key", ",", "@", "nullable", "v", "value", ")", "{", "if", "(", "!", "contains", "key", "(", "key", ")", ")", "{", "add", "(", "key", ",", "value", ")", ";", "}", "}" ]
[ "creates", "a", "new", "array", "with", "the", "specified", "component", "type", "and", "length" ]
[ "static", "public", "object", "new", "instance", "(", "class", "c", ",", "int", "size", ")", "{", "return", "java", "lang", "reflect", "array", "new", "instance", "(", "c", ",", "size", ")", ";", "}" ]
[ "returns", "file", "system", "that", "we", "are", "using" ]
[ "public", "static", "file", "system", "get", "file", "system", "for", "serialization", "(", ")", "{", "return", "file", "system", "for", "serialization", ";", "}" ]
[ "returns", "whether", "a", "nal", "unit", "type", "is", "one", "that", "occurs", "before", "any", "vcl", "nal", "units", "in", "a", "sample" ]
[ "private", "static", "boolean", "is", "prefix", "nal", "unit", "(", "int", "nal", "unit", "type", ")", "{", "return", "(", "vps", "nut", "<", "=", "nal", "unit", "type", "&", "&", "nal", "unit", "type", "<", "=", "aud", "nut", ")", "|", "|", "nal", "unit", "type", "=", "=", "prefix", "sei", "nut", ";", "}" ]
[ "gets", "the", "number", "of", "partitions", "to", "be", "used", "for", "an", "initial", "hash", "-", "table", ",", "when", "no", "estimates", "are", "available", "the", "current", "logic", "makes", "sure", "that", "there", "are", "always", "between", "10", "and", "127", "partitions", ",", "and", "close", "to", "0", "1", "of", "the", "number", "of", "buffers" ]
[ "public", "static", "int", "get", "partitioning", "fan", "out", "no", "estimates", "(", "int", "num", "buffers", ")", "{", "return", "math", "max", "(", "10", ",", "math", "min", "(", "num", "buffers", "/", "10", ",", "max", "num", "partitions", ")", ")", ";", "}" ]
[ "sets", "whether", "gesture", "zooms", "are", "enabled", "or", "not" ]
[ "public", "void", "set", "gesture", "zoom", "enabled", "(", "boolean", "is", "gesture", "zoom", "enabled", ")", "{", "m", "is", "gesture", "zoom", "enabled", "=", "is", "gesture", "zoom", "enabled", ";", "}" ]
[ "checks", "that", "the", "key", "and", "value", "were", "deleted", "for", "the", "specified", "reason" ]
[ "public", "void", "deleted", "(", "integer", "key", ",", "integer", "value", ",", "removal", "cause", "cause", ")", "{", "verify", "(", "context", "cache", "writer", "(", ")", ")", "delete", "(", "eq", "(", "key", ")", ",", "eq", "(", "value", ")", ",", "eq", "(", "cause", ")", ")", ";", "}" ]
[ "support", "removal", "operations", "when", "filtering", "a", "filtered", "multimap", "since", "a", "filtered", "multimap", "has", "iterators", "that", "don", "'", "t", "support", "remove", ",", "passing", "one", "to", "the", "filtered", "entry", "multimap", "constructor", "would", "lead", "to", "a", "multimap", "whose", "removal", "operations", "would", "fail", "this", "method", "combines", "the", "predicates", "to", "avoid", "that", "problem" ]
[ "private", "static", "<", "k", ",", "v", ">", "set", "multimap", "<", "k", ",", "v", ">", "filter", "filtered", "(", "filtered", "set", "multimap", "<", "k", ",", "v", ">", "multimap", ",", "predicate", "<", "?", "super", "entry", "<", "k", ",", "v", ">", ">", "entry", "predicate", ")", "{", "predicate", "<", "entry", "<", "k", ",", "v", ">", ">", "predicate", "=", "predicates", "<", "entry", "<", "k", ",", "v", ">", ">", "and", "(", "multimap", "entry", "predicate", "(", ")", ",", "entry", "predicate", ")", ";", "return", "new", "filtered", "entry", "set", "multimap", "<", ">", "(", "multimap", "unfiltered", "(", ")", ",", "predicate", ")", ";", "}" ]
[ "put", "pet", ":", "update", "an", "existing", "pet" ]
[ "public", "response", "entity", "<", "void", ">", "update", "pet", "(", "@", "api", "param", "(", "value", "=", "\"", "pet", "object", "that", "needs", "to", "be", "added", "to", "the", "store", "\"", ",", "required", "=", "true", ")", "@", "valid", "@", "request", "body", "pet", "body", ")", "{", "return", "new", "response", "entity", "<", ">", "(", "http", "status", "not", "implemented", ")", ";", "}" ]
[ "stores", "a", "keyvalue", "pair", "in", "the", "headless", "analyzer", "instance", "for", "later", "use", "this", "method", ",", "along", "with", "the", "'", "get", "stored", "headless", "value", "'", "method", ",", "is", "useful", "for", "debugging", "and", "testing", "the", "headless", "analyzer", "(", "when", "the", "user", "has", "directly", "instantiated", "the", "headless", "analyzer", "instead", "of", "running", "it", "from", "analyze", "headless", "sh", "or", "analyze", "headless", "bat", ")", "this", "method", "is", "intended", "to", "allow", "a", "headless", "script", "to", "store", "variables", "that", "reflect", "the", "current", "state", "of", "processing", "(", "at", "the", "time", "the", "script", "is", "being", "run", ")", "storing", "variables", "in", "the", "headless", "analyzer", "instance", "may", "be", "the", "only", "way", "to", "access", "the", "state", "of", "processing", "during", "cases", "when", "the", "user", "is", "forced", "to", "run", "in", "-", "read", "only", "mode", ",", "or", "if", "there", "is", "a", "value", "that", "is", "only", "accessible", "at", "the", "scripts", "stage" ]
[ "public", "void", "store", "headless", "value", "(", "string", "key", ",", "object", "value", ")", "throws", "improper", "use", "exception", "{", "check", "headless", "status", "(", ")", ";", "headless", "add", "variable", "to", "storage", "(", "key", ",", "value", ")", ";", "}" ]
[ "emit", "the", "next", "set", "of", "key", ",", "value", "pairs", "as", "defined", "by", "the", "child", "record", "readers", "and", "operation", "associated", "with", "this", "composite", "rr" ]
[ "public", "boolean", "next", "key", "value", "(", ")", "throws", "i", "o", "exception", ",", "interrupted", "exception", "{", "if", "(", "key", "=", "=", "null", ")", "{", "key", "=", "create", "key", "(", ")", ";", "}", "if", "(", "jc", "flush", "(", "value", ")", ")", "{", "reflection", "utils", "copy", "(", "conf", ",", "jc", "key", "(", ")", ",", "key", ")", ";", "return", "true", ";", "}", "jc", "clear", "(", ")", ";", "if", "(", "value", "=", "=", "null", ")", "{", "value", "=", "create", "value", "(", ")", ";", "}", "final", "priority", "queue", "<", "composable", "record", "reader", "<", "k", ",", "?", ">", ">", "q", "=", "get", "record", "reader", "queue", "(", ")", ";", "k", "iterkey", "=", "create", "key", "(", ")", ";", "while", "(", "q", "!", "=", "null", "&", "&", "!", "q", "is", "empty", "(", ")", ")", "{", "fill", "join", "collector", "(", "iterkey", ")", ";", "jc", "reset", "(", "iterkey", ")", ";", "if", "(", "jc", "flush", "(", "value", ")", ")", "{", "reflection", "utils", "copy", "(", "conf", ",", "jc", "key", "(", ")", ",", "key", ")", ";", "return", "true", ";", "}", "jc", "clear", "(", ")", ";", "}", "return", "false", ";", "}" ]
[ "build", "an", "automaton", "accepting", "all", "terms", "ascii", "case", "insensitive" ]
[ "public", "static", "automaton", "query", "case", "insensitive", "term", "query", "(", "term", "term", ")", "{", "bytes", "ref", "prefix", "=", "term", "bytes", "(", ")", ";", "return", "new", "automaton", "query", "(", "term", ",", "to", "case", "insensitive", "string", "(", "prefix", ",", "integer", "max", "value", ")", ")", ";", "}" ]
[ "returns", "the", "number", "of", "line", "numbers", "in", "this", "header" ]
[ "public", "int", "get", "number", "of", "linenumbers", "(", ")", "{", "return", "number", "of", "linenumbers", ";", "}" ]
[ "determine", "which", "replica", "to", "read", "from" ]
[ "node", "select", "read", "replica", "(", "topic", "partition", "partition", ",", "node", "leader", "replica", ",", "long", "current", "time", "ms", ")", "{", "optional", "<", "integer", ">", "node", "id", "=", "subscriptions", "preferred", "read", "replica", "(", "partition", ",", "current", "time", "ms", ")", ";", "if", "(", "node", "id", "is", "present", "(", ")", ")", "{", "optional", "<", "node", ">", "node", "=", "node", "id", "flat", "map", "(", "id", "-", ">", "metadata", "fetch", "(", ")", "node", "if", "online", "(", "partition", ",", "id", ")", ")", ";", "if", "(", "node", "is", "present", "(", ")", ")", "{", "return", "node", "get", "(", ")", ";", "}", "else", "{", "log", "trace", "(", "\"", "not", "fetching", "from", "{", "}", "for", "partition", "{", "}", "since", "it", "is", "marked", "offline", "or", "is", "missing", "from", "our", "metadata", ",", "\"", "+", "\"", "using", "the", "leader", "instead", "\"", ",", "node", "id", ",", "partition", ")", ";", "subscriptions", "clear", "preferred", "read", "replica", "(", "partition", ")", ";", "return", "leader", "replica", ";", "}", "}", "else", "{", "return", "leader", "replica", ";", "}", "}" ]
[ "returns", "the", "support", "(", "number", "of", "sequences", "which", "contain", "the", "item", ")" ]
[ "public", "int", "get", "support", "(", ")", "{", "return", "support", ";", "}" ]
[ "create", "an", "instance", "of", "a", "{", "@", "link", "validation", "rule", "}", "which", "should", "result", "in", "a", "warning", "should", "the", "evaluate", "of", "this", "rule", "fail" ]
[ "public", "static", "<", "t", ">", "validation", "rule", "warn", "(", "string", "description", ",", "string", "failure", "message", ",", "function", "<", "t", ",", "result", ">", "fn", ")", "{", "return", "new", "validation", "rule", "(", "severity", "warning", ",", "description", ",", "failure", "message", ",", "(", "function", "<", "object", ",", "result", ">", ")", "fn", ")", ";", "}" ]
[ "returns", "the", "client", "channel", "handlers", "+", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "+", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "+", "+", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "+", "|", "remote", "input", "channel", "|", "|", "request", "client", "|", "+", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "+", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "+", "+", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "+", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "+", "|", "|", "(", "1", ")", "write", "+", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "+", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "+", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "+", "|", "|", "client", "channel", "pipeline", "|", "|", "|", "|", "\\", "|", "|", "|", "+", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "+", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "+", "+", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "+", "|", "|", "|", "request", "handler", "+", "|", "message", "encoder", "|", "|", "|", "+", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "+", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "+", "+", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "+", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "+", "|", "|", "|", "\\", "\\", "|", "|", "|", "|", "|", "|", "|", "+", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "+", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "+", "|", "|", "|", "|", "message", "+", "frame", "decoder", "|", "|", "|", "|", "+", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "+", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "+", "|", "|", "|", "|", "\\", "|", "|", "+", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "+", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "+", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "+", "|", "|", "(", "3", ")", "server", "response", "\\", "|", "(", "2", ")", "client", "request", "+", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "+", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "+", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "+", "|", "|", "|", "|", "|", "[", "socket", "read", "(", ")", "]", "[", "socket", "write", "(", ")", "]", "|", "|", "|", "|", "netty", "internal", "io", "threads", "(", "transport", "implementation", ")", "|", "+", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "+" ]
[ "public", "channel", "handler", "[", "]", "get", "client", "channel", "handlers", "(", ")", "{", "network", "client", "handler", "network", "client", "handler", "=", "new", "credit", "based", "partition", "request", "client", "handler", "(", ")", ";", "return", "new", "channel", "handler", "[", "]", "{", "message", "encoder", ",", "new", "netty", "message", "client", "decoder", "delegate", "(", "network", "client", "handler", ")", ",", "network", "client", "handler", "}", ";", "}" ]
[ "creates", "a", "{", "@", "link", "client", "stream", "tracer", "}", "for", "a", "new", "client", "stream" ]
[ "public", "client", "stream", "tracer", "new", "client", "stream", "tracer", "(", "call", "options", "call", "options", ",", "metadata", "headers", ")", "{", "throw", "new", "unsupported", "operation", "exception", "(", "\"", "not", "implemented", "\"", ")", ";", "}" ]
[ "get", "the", "fragment", "that", "contains", "the", "given", "address", "within", "the", "tree", "identified", "by", "the", "tree", "name" ]
[ "public", "program", "fragment", "get", "fragment", "(", "string", "tree", "name", ",", "address", "addr", ")", "{", "lock", "acquire", "(", ")", ";", "try", "{", "module", "manager", "m", "=", "tree", "map", "get", "(", "tree", "name", ")", ";", "if", "(", "m", "!", "=", "null", ")", "{", "return", "m", "get", "fragment", "(", "addr", ")", ";", "}", "}", "catch", "(", "i", "o", "exception", "e", ")", "{", "err", "handler", "db", "error", "(", "e", ")", ";", "}", "finally", "{", "lock", "release", "(", ")", ";", "}", "return", "null", ";", "}" ]
[ "parses", "a", "given", "range", "header", "for", "one", "or", "more", "byte", "ranges" ]
[ "private", "list", "<", "byte", "range", ">", "parse", "range", "header", "(", "final", "string", "range", "header", ",", "final", "int", "resource", "length", ")", "{", "final", "list", "<", "byte", "range", ">", "byte", "ranges", ";", "if", "(", "range", "header", "contains", "(", "\"", "=", "\"", ")", ")", "{", "final", "string", "[", "]", "parts", "=", "range", "header", "split", "(", "\"", "=", "\"", ",", "-", "1", ")", ";", "if", "(", "parts", "length", ">", "1", ")", "{", "byte", "ranges", "=", "arrays", "stream", "(", "parts", "[", "1", "]", "split", "(", "\"", ",", "\"", ",", "-", "1", ")", ")", "map", "(", "string", ":", ":", "trim", ")", "map", "(", "s", "-", ">", "byte", "range", "parse", "(", "s", ",", "resource", "length", ")", ")", "collect", "(", "collectors", "to", "list", "(", ")", ")", ";", "}", "else", "{", "byte", "ranges", "=", "collections", "empty", "list", "(", ")", ";", "}", "}", "else", "{", "byte", "ranges", "=", "collections", "empty", "list", "(", ")", ";", "}", "return", "byte", "ranges", ";", "}" ]
[ "sets", "the", "x", "-", "value", "of", "this", "entry", "object" ]
[ "public", "void", "set", "x", "(", "float", "x", ")", "{", "this", "x", "=", "x", ";", "}" ]
[ "returns", "the", "item", "currently", "pointed", "to", "within", "the", "list", "of", "items", "when", "an", "item", "is", "added", ",", "this", "will", "be", "that", "item", "otherwise", ",", "it", "will", "be", "the", "last", "item", "navigated" ]
[ "public", "t", "get", "current", "history", "item", "(", ")", "{", "if", "(", "history", "stack", "is", "empty", "(", ")", ")", "{", "return", "null", ";", "}", "return", "history", "stack", "get", "(", "history", "index", ")", ";", "}" ]
[ "get", "relative", "position", "information", "of", "pcode", "ops", "within", "a", "basic", "block", ",", "may", "change", "as", "basic", "block", "is", "edited" ]
[ "public", "int", "get", "order", "(", ")", "{", "return", "order", ";", "}" ]
[ "returns", "the", "context", "object", "which", "corresponds", "to", "the", "area", "of", "focus", "within", "this", "provider", "'", "s", "component", "null", "is", "returned", "when", "there", "is", "no", "context" ]
[ "public", "action", "context", "get", "action", "context", "(", "mouse", "event", "event", ")", "{", "component", "c", "=", "get", "component", "(", ")", ";", "keyboard", "focus", "manager", "kfm", "=", "keyboard", "focus", "manager", "get", "current", "keyboard", "focus", "manager", "(", ")", ";", "component", "focused", "component", "=", "kfm", "get", "focus", "owner", "(", ")", ";", "if", "(", "focused", "component", "!", "=", "null", "&", "&", "swing", "utilities", "is", "descending", "from", "(", "focused", "component", ",", "c", ")", ")", "{", "c", "=", "focused", "component", ";", "}", "return", "create", "context", "(", "c", ",", "null", ")", ";", "}" ]
[ "query", "given", "sql", "to", "create", "a", "prepared", "statement", "from", "sql", "and", "a", "list", "of", "arguments", "to", "bind", "to", "the", "query", ",", "expecting", "a", "result", "list", "the", "results", "will", "be", "mapped", "to", "a", "list", "(", "one", "entry", "for", "each", "row", ")", "of", "result", "objects", ",", "each", "of", "them", "matching", "the", "specified", "element", "type" ]
[ "<", "t", ">", "list", "<", "t", ">", "query", "for", "list", "(", "string", "sql", ",", "sql", "parameter", "source", "param", "source", ",", "class", "<", "t", ">", "element", "type", ")", "throws", "data", "access", "exception", ";" ]
[ "parses", "the", "origin", "(", "caller", ")", "from", "dubbo", "invocation" ]
[ "string", "parse", "(", "invoker", "<", "?", ">", "invoker", ",", "invocation", "invocation", ")", ";" ]
[ "simulate", "a", "transaction", "infrastructure", "failure", "shouldn", "'", "t", "invoke", "target", "method" ]
[ "public", "void", "cannot", "create", "transaction", "(", ")", "throws", "exception", "{", "transaction", "attribute", "txatt", "=", "new", "default", "transaction", "attribute", "(", ")", ";", "method", "m", "=", "get", "name", "method", ";", "map", "transaction", "attribute", "source", "tas", "=", "new", "map", "transaction", "attribute", "source", "(", ")", ";", "tas", "register", "(", "m", ",", "txatt", ")", ";", "platform", "transaction", "manager", "ptm", "=", "mock", "(", "platform", "transaction", "manager", "class", ")", ";", "/", "/", "expect", "a", "transaction", "cannot", "create", "transaction", "exception", "ex", "=", "new", "cannot", "create", "transaction", "exception", "(", "\"", "foobar", "\"", ",", "null", ")", ";", "given", "(", "ptm", "get", "transaction", "(", "txatt", ")", ")", "will", "throw", "(", "ex", ")", ";", "test", "bean", "tb", "=", "new", "test", "bean", "(", ")", "{", "@", "override", "public", "string", "get", "name", "(", ")", "{", "throw", "new", "unsupported", "operation", "exception", "(", "\"", "shouldn", "'", "t", "have", "invoked", "target", "method", "when", "couldn", "'", "t", "create", "transaction", "for", "transactional", "method", "\"", ")", ";", "}", "}", ";", "i", "test", "bean", "itb", "=", "(", "i", "test", "bean", ")", "advised", "(", "tb", ",", "ptm", ",", "tas", ")", ";", "try", "{", "itb", "get", "name", "(", ")", ";", "fail", "(", "\"", "shouldn", "'", "t", "have", "invoked", "method", "\"", ")", ";", "}", "catch", "(", "cannot", "create", "transaction", "exception", "thrown", ")", "{", "assert", "that", "(", "thrown", "=", "=", "ex", ")", "is", "true", "(", ")", ";", "}", "}" ]
[ "handles", "check", "cast", "results", "to", "reuse", "the", "same", "source", "register", "inserts", "a", "move", "if", "it", "can", "'", "t", "map", "the", "same", "register", "to", "both", "and", "the", "check", "cast", "is", "not", "caught" ]
[ "private", "void", "handle", "check", "cast", "results", "(", ")", "{", "for", "(", "normal", "ssa", "insn", "insn", ":", "move", "result", "pseudo", "insns", ")", "{", "register", "spec", "move", "reg", "spec", "=", "insn", "get", "result", "(", ")", ";", "int", "move", "reg", "=", "move", "reg", "spec", "get", "reg", "(", ")", ";", "bit", "set", "pred", "blocks", "=", "insn", "get", "block", "(", ")", "get", "predecessors", "(", ")", ";", "/", "/", "expect", "one", "predecessor", "block", "only", "if", "(", "pred", "blocks", "cardinality", "(", ")", "!", "=", "1", ")", "{", "continue", ";", "}", "ssa", "basic", "block", "pred", "block", "=", "ssa", "meth", "get", "blocks", "(", ")", "get", "(", "pred", "blocks", "next", "set", "bit", "(", "0", ")", ")", ";", "array", "list", "<", "ssa", "insn", ">", "insn", "list", "=", "pred", "block", "get", "insns", "(", ")", ";", "/", "*", "*", "*", "if", "the", "predecessor", "block", "has", "a", "check", "-", "cast", ",", "it", "will", "be", "the", "last", "*", "instruction", "*", "/", "ssa", "insn", "check", "cast", "insn", "=", "insn", "list", "get", "(", "insn", "list", "size", "(", ")", "-", "1", ")", ";", "if", "(", "check", "cast", "insn", "get", "opcode", "(", ")", "get", "opcode", "(", ")", "!", "=", "reg", "ops", "check", "cast", ")", "{", "continue", ";", "}", "register", "spec", "check", "reg", "spec", "=", "check", "cast", "insn", "get", "sources", "(", ")", "get", "(", "0", ")", ";", "int", "check", "reg", "=", "check", "reg", "spec", "get", "reg", "(", ")", ";" ]
[ "sets", "the", "flag", "for", "long", "running", "operations", "this", "will", "prevent", "workspace", "saves", "from", "happening", "while", "it", "'", "s", "set" ]
[ "public", "void", "set", "busy", "(", "boolean", "busy", ")", "{", "synchronized", "(", "this", ")", "{", "if", "(", "busy", ")", "{", "busy", "+", "+", ";", "}", "else", "{", "busy", "-", "-", ";", "}", "}", "}" ]
[ "helper", "method", "for", "maintaining", "internal", "data", "structures" ]
[ "private", "void", "set", "next", "edge", "with", "same", "to", "(", "edge", "e", ",", "edge", "next", "edge", ")", "{", "next", "edge", "with", "same", "to", "[", "index", "(", "e", ")", "]", "=", "next", "edge", ";", "}" ]
[ "finds", "the", "last", "array", "index" ]
[ "private", "void", "find", "last", "start", "(", ")", "{", "for", "(", "int", "i", "=", "last", "start", ";", "i", ">", "=", "0", ";", "i", "-", "-", ")", "{", "if", "(", "starts", "[", "i", "]", "!", "=", "0", ")", "{", "last", "start", "=", "i", ";", "return", ";", "}", "}", "last", "start", "=", "-", "1", ";", "}" ]
[ "return", "the", "quartz", "scheduler", "instance", "that", "this", "accessor", "operates", "on" ]
[ "public", "scheduler", "get", "scheduler", "(", ")", "{", "assert", "state", "(", "this", "scheduler", "!", "=", "null", ",", "\"", "no", "scheduler", "set", "\"", ")", ";", "return", "this", "scheduler", ";", "}" ]
[ "get", "long", "value", "of", "this", "{", "@", "link", "integer", "redis", "message", "}" ]
[ "public", "long", "value", "(", ")", "{", "return", "value", ";", "}" ]
[ "performs", "cluster", "bootstrap", "when", "node", "with", "index", "{", "@", "link", "#", "bootstrap", "master", "node", "index", "}", "is", "started", "with", "the", "names", "of", "all", "existing", "and", "new", "master", "-", "eligible", "nodes", "indexing", "starts", "from", "0", "if", "{", "@", "link", "#", "bootstrap", "master", "node", "index", "}", "is", "-", "1", "(", "default", ")", ",", "this", "method", "does", "nothing" ]
[ "private", "list", "<", "settings", ">", "bootstrap", "master", "node", "with", "specified", "index", "(", "list", "<", "settings", ">", "all", "nodes", "settings", ")", "{", "assert", "thread", "holds", "lock", "(", "this", ")", ";", "if", "(", "bootstrap", "master", "node", "index", "=", "=", "-", "1", ")", "{", "/", "/", "fast", "-", "path", "return", "all", "nodes", "settings", ";", "}", "int", "current", "node", "id", "=", "num", "master", "nodes", "(", ")", "-", "1", ";", "list", "<", "settings", ">", "new", "settings", "=", "new", "array", "list", "<", ">", "(", ")", ";", "for", "(", "settings", "settings", ":", "all", "nodes", "settings", ")", "{", "if", "(", "discovery", "node", "is", "master", "node", "(", "settings", ")", "=", "=", "false", ")", "{", "new", "settings", "add", "(", "settings", ")", ";", "}", "else", "{", "current", "node", "id", "+", "+", ";", "if", "(", "current", "node", "id", "!", "=", "bootstrap", "master", "node", "index", ")", "{", "new", "settings", "add", "(", "settings", ")", ";", "}", "else", "{", "list", "<", "string", ">", "node", "names", "=", "new", "array", "list", "<", ">", "(", ")", ";", "for", "(", "settings", "node", "settings", ":", "get", "data", "or", "master", "node", "instances", "(", "settings", "class", ")", ")", "{", "if", "(", "discovery", "node", "is", "master", "node", "(", "node", "settings", ")", ")", "{", "node", "names", "add", "(", "node", "node", "name", "setting", "get", "(", "node", "settings", ")", ")", ";", "}", "}", "for", "(", "settings", "node", "settings", ":", "all", "nodes", "settings", ")", "{", "if", "(", "discovery", "node", "is", "master", "node", "(", "node", "settings", ")", ")", "{", "node", "names", "add", "(", "node", "node", "name", "setting", "get", "(", "node", "settings", ")", ")", ";", "}", "}", "new", "settings", "add", "(", "settings", "builder", "(", ")", "put", "(", "settings", ")", "put", "list", "(", "cluster", "bootstrap", "service", "initial", "master", "nodes", "setting", "get", "key", "(", ")", ",", "node", "names", ")", "build", "(", ")", ")", ";", "set", "bootstrap", "master", "node", "index", "(", "-", "1", ")", ";", "}", "}", "}", "return", "new", "settings", ";", "}" ]
[ "returns", "the", "function", "attributes" ]
[ "public", "function", "ms", "attributes", "get", "function", "attributes", "(", ")", "{", "return", "function", "attributes", ";", "}" ]
[ "get", "attribute", "boolean" ]
[ "public", "boolean", "get", "attribute", "boolean", "(", ")", "{", "return", "attribute", "boolean", ";", "}" ]
[ "finds", "pets", "by", "tags", "multiple", "tags", "can", "be", "provided", "with", "comma", "separated", "strings", "use", "tag", "1", ",", "tag", "2", ",", "tag", "3", "for", "testing" ]
[ "public", "void", "find", "pets", "by", "tags", "test", "(", ")", "{", "set", "<", "string", ">", "tags", "=", "null", ";", "/", "/", "set", "<", "pet", ">", "response", "=", "api", "find", "pets", "by", "tags", "(", "tags", ")", ";", "/", "/", "todo", ":", "test", "validations", "}" ]
[ "test", "that", "program", "diff", "can", "determine", "the", "offset", "memory", "reference", "differences", "between", "program", "1", "and", "program", "2" ]
[ "public", "void", "test", "offset", "ref", "diff", "(", ")", "throws", "exception", "{", "/", "/", "0x", "1", "0", "0", "2cfc", ":", "p", "1", "and", "p", "2", "have", "mem", "refs", ",", "but", "p", "1", "has", "offset", "program", "builder", "1", "create", "offset", "mem", "reference", "(", "\"", "0x", "1", "0", "0", "2cfc", "\"", ",", "\"", "0x", "1", "0", "0", "6", "4", "8", "8", "\"", ",", "2", ",", "ref", "type", "read", ",", "source", "type", "user", "defined", ",", "0", ")", ";", "program", "builder", "2", "create", "memory", "reference", "(", "\"", "0x", "1", "0", "0", "2cfc", "\"", ",", "\"", "0x", "1", "0", "0", "6", "4", "8", "8", "\"", ",", "ref", "type", "read", ",", "source", "type", "user", "defined", ",", "0", ")", ";", "program", "diff", "=", "new", "program", "diff", "(", "p", "1", ",", "p", "2", ")", ";", "address", "set", "as", "=", "new", "address", "set", "(", "addr", "(", "0x", "1", "0", "0", "2cfc", ")", ",", "addr", "(", "0x", "1", "0", "0", "2cfc", ")", ")", ";", "program", "diff", "set", "filter", "(", "new", "program", "diff", "filter", "(", "program", "diff", "filter", "reference", "diffs", ")", ")", ";", "assert", "equals", "(", "as", ",", "program", "diff", "get", "differences", "(", "program", "diff", "get", "filter", "(", ")", ",", "null", ")", ")", ";", "}" ]
[ "add", "to", "the", "view", "the", "group", "that", "corresponds", "to", "the", "address", "in", "the", "program", "location" ]
[ "private", "void", "add", "location", "to", "view", "(", "program", "location", "loc", ")", "{", "program", "fragment", "fragment", "=", "program", "get", "listing", "(", ")", "get", "fragment", "(", "tree", "panel", "get", "tree", "name", "(", ")", ",", "loc", "get", "address", "(", ")", ")", ";", "if", "(", "fragment", "=", "=", "null", ")", "{", "return", ";", "}", "linked", "list", "<", "string", ">", "list", "=", "new", "linked", "list", "<", ">", "(", ")", ";", "list", "add", "(", "fragment", "get", "name", "(", ")", ")", ";", "group", "group", "=", "fragment", ";", "while", "(", "group", "!", "=", "null", ")", "{", "program", "module", "[", "]", "parents", "=", "group", "get", "parents", "(", ")", ";", "group", "=", "null", ";", "if", "(", "(", "parents", "!", "=", "null", ")", "&", "&", "(", "parents", "length", ">", "0", ")", ")", "{", "group", "=", "parents", "[", "0", "]", ";", "list", "add", "first", "(", "group", "get", "name", "(", ")", ")", ";", "}", "}", "string", "[", "]", "group", "names", "=", "new", "string", "[", "list", "size", "(", ")", "]", ";", "list", "to", "array", "(", "group", "names", ")", ";", "tree", "panel", "add", "group", "view", "path", "(", "new", "group", "path", "(", "group", "names", ")", ")", ";", "notify", "listeners", "(", ")", ";", "}" ]
[ "sets", "the", "maximum", "parallelism", "for", "this", "stream", "transformation" ]
[ "public", "void", "set", "max", "parallelism", "(", "int", "max", "parallelism", ")", "{", "operator", "validation", "utils", "validate", "max", "parallelism", "(", "max", "parallelism", ",", "upper", "bound", "max", "parallelism", ")", ";", "this", "max", "parallelism", "=", "max", "parallelism", ";", "}" ]
[ "validate", "type", "determines", "whether", "or", "not", "the", "indicated", "type", "of", "filter", "item", "is", "valid", "valid", "types", "are", ":", "bytes", ",", "instructions", ",", "data", ",", "references", ",", "symbols", ",", "primary", "symbol", ",", "comments", ",", "program", "context", ",", "properties", ",", "bookmarks", ",", "functions", ",", "all", "the", "type", "can", "also", "be", "any", "of", "the", "predefined", "types", "\"", "or", "\"", "ed", "together" ]
[ "private", "boolean", "validate", "type", "(", "int", "type", ")", "{", "if", "(", "(", "type", ">", "=", "0", ")", "&", "&", "(", "type", "<", "math", "pow", "(", "2", ",", "(", "num", "primary", "types", ")", ")", ")", ")", "{", "return", "true", ";", "}", "return", "false", ";", "}" ]
[ "lets", "the", "parameter", "visitor", "visit", "the", "type", "of", "the", "given", "field" ]
[ "private", "void", "visit", "field", "type", "(", "clazz", "clazz", ",", "field", "field", ",", "clazz", "referenced", "class", ")", "{", "string", "descriptor", "=", "field", "get", "descriptor", "(", "clazz", ")", ";", "parameter", "visitor", "visit", "parameter", "(", "clazz", ",", "field", ",", "0", ",", "1", ",", "0", ",", "class", "util", "internal", "type", "size", "(", "descriptor", ")", ",", "descriptor", ",", "referenced", "class", ")", ";", "}" ]
[ "checks", "if", "image", "header", "bytes", "contains", "webp", "riff", "bytes", "and", "webp", "name", "bytes", "and", "if", "the", "header", "is", "long", "enough", "to", "be", "web", "p", "'", "s", "header", "web", "p", "file", "format", "can", "be", "found", "here", ":", "<", "a", "href", "=", "\"", "https", ":", "developers", "google", "comspeedwebpdocsriff", "container", "\"", ">", "https", ":", "developers", "google", "comspeedwebpdocsriff", "container" ]
[ "public", "static", "boolean", "is", "webp", "header", "(", "final", "byte", "[", "]", "image", "header", "bytes", ",", "final", "int", "offset", ",", "final", "int", "header", "size", ")", "{", "return", "header", "size", ">", "=", "simple", "webp", "header", "length", "&", "&", "match", "byte", "pattern", "(", "image", "header", "bytes", ",", "offset", ",", "webp", "riff", "bytes", ")", "&", "&", "match", "byte", "pattern", "(", "image", "header", "bytes", ",", "offset", "+", "8", ",", "webp", "name", "bytes", ")", ";", "}" ]
[ "implements", "recover", "and", "delete", "(", "-", "move", "and", "-", "delete", ")", "behaviors", "for", "handling", "dangling", "files", "(", "blobs", "whose", "upload", "was", "interrupted", ")" ]
[ "private", "void", "handle", "files", "with", "dangling", "temp", "data", "(", "path", "root", ",", "dangling", "file", "handler", "handler", ")", "throws", "i", "o", "exception", "{", "/", "/", "calculate", "the", "cut", "-", "off", "for", "when", "to", "consider", "a", "blob", "to", "be", "dangling", "long", "cutoff", "for", "dangling", "=", "new", "date", "(", ")", "get", "time", "(", ")", "-", "get", "conf", "(", ")", "get", "int", "(", "azure", "temp", "expiry", "property", "name", ",", "azure", "temp", "expiry", "default", ")", "*", "1000", ";", "/", "/", "go", "over", "all", "the", "blobs", "under", "the", "given", "root", "and", "look", "for", "blobs", "to", "/", "/", "recover", "file", "metadata", "[", "]", "listing", "=", "store", "list", "(", "path", "to", "key", "(", "root", ")", ",", "azure", "list", "all", ",", "azure", "unbounded", "depth", ")", ";", "for", "(", "file", "metadata", "file", ":", "listing", ")", "{", "if", "(", "!", "file", "is", "directory", "(", ")", ")", "{", "/", "/", "we", "don", "'", "t", "recover", "directory", "blobs", "/", "/", "see", "if", "this", "blob", "has", "a", "link", "in", "it", "(", "meaning", "it", "'", "s", "a", "place", "-", "holder", "/", "/", "blob", "for", "when", "the", "upload", "to", "the", "temp", "blob", "is", "complete", ")", "string", "link", "=", "store", "get", "link", "in", "file", "metadata", "(", "file", "get", "key", "(", ")", ")", ";", "if", "(", "link", "!", "=", "null", ")", "{", "/", "/", "it", "has", "a", "link", ",", "see", "if", "the", "temp", "blob", "it", "is", "pointing", "to", "is", "/", "/", "existent", "and", "old", "enough", "to", "be", "considered", "dangling", "file", "metadata", "link", "metadata", "=", "store", "retrieve", "metadata", "(", "link", ")", ";", "if", "(", "link", "metadata", "!", "=", "null", "&", "&", "link", "metadata", "get", "modification", "time", "(", ")", ">", "=", "cutoff", "for", "dangling", ")", "{", "/", "/", "found", "one", "!", "handler", "handle", "file", "(", "file", ",", "link", "metadata", ")", ";", "}", "}", "}", "}", "}" ]
[ "sets", "secret", "key" ]
[ "protected", "void", "set", "secret", "key", "(", "string", "secret", "key", ")", "{", "if", "(", "null", "!", "=", "secret", "key", ")", "{", "this", "secret", "key", "=", "secret", "key", ";", "return", ";", "}", "this", "secret", "key", "=", "system", "get", "property", "(", "seata", "secret", "key", ")", ";", "}" ]
[ "exit", "a", "parse", "tree", "produced", "by", "{", "@", "link", "eql", "base", "parser", "#", "join", "term", "}" ]
[ "void", "exit", "join", "term", "(", "eql", "base", "parser", "join", "term", "context", "ctx", ")", ";" ]
[ "get", "the", "linear", "damping", "of", "the", "body" ]
[ "public", "final", "float", "get", "linear", "damping", "(", ")", "{", "return", "m", "linear", "damping", ";", "}" ]
[ "finds", "pets", "by", "tags", "multiple", "tags", "can", "be", "provided", "with", "comma", "separated", "strings", "use", "tag", "1", ",", "tag", "2", ",", "tag", "3", "for", "testing", "this", "tests", "the", "overload", "of", "the", "method", "that", "uses", "a", "map", "for", "query", "parameters", "instead", "of", "listing", "them", "out", "individually" ]
[ "public", "void", "find", "pets", "by", "tags", "test", "query", "map", "(", ")", "{", "pet", "api", "find", "pets", "by", "tags", "query", "params", "query", "params", "=", "new", "pet", "api", "find", "pets", "by", "tags", "query", "params", "(", ")", "tags", "(", "null", ")", ";", "/", "/", "list", "<", "pet", ">", "response", "=", "api", "find", "pets", "by", "tags", "(", "query", "params", ")", ";", "/", "/", "todo", ":", "test", "validations", "}" ]
[ "tests", "text", "track", "selection", "flags" ]
[ "public", "void", "text", "track", "selection", "flags", "(", ")", "throws", "exo", "playback", "exception", "{", "format", "builder", "format", "builder", "=", "text", "format", "build", "upon", "(", ")", "set", "language", "(", "\"", "eng", "\"", ")", ";", "format", "forced", "only", "=", "format", "builder", "set", "selection", "flags", "(", "c", "selection", "flag", "forced", ")", "build", "(", ")", ";", "format", "forced", "default", "=", "format", "builder", "set", "selection", "flags", "(", "c", "selection", "flag", "forced", "|", "c", "selection", "flag", "default", ")", "build", "(", ")", ";", "format", "default", "only", "=", "format", "builder", "set", "selection", "flags", "(", "c", "selection", "flag", "default", ")", "build", "(", ")", ";", "format", "no", "flag", "=", "format", "builder", "set", "selection", "flags", "(", "0", ")", "build", "(", ")", ";", "renderer", "capabilities", "[", "]", "text", "renderer", "capabilities", "=", "new", "renderer", "capabilities", "[", "]", "{", "all", "text", "format", "supported", "renderer", "capabilities", "}", ";", "/", "/", "there", "is", "no", "text", "language", "preference", ",", "the", "first", "track", "flagged", "as", "default", "should", "be", "selected", "track", "group", "array", "track", "groups", "=", "wrap", "formats", "(", "forced", "only", ",", "forced", "default", ",", "default", "only", ",", "no", "flag", ")", ";", "track", "selector", "result", "result", "=", "track", "selector", "select", "tracks", "(", "text", "renderer", "capabilities", ",", "track", "groups", ",", "period", "id", ",", "timeline", ")", ";", "assert", "fixed", "selection", "(", "result", "selections", "get", "(", "0", ")", ",", "track", "groups", ",", "forced", "default", ")", ";", "/", "/", "ditto", "track", "groups", "=", "wrap", "formats", "(", "forced", "only", ",", "no", "flag", ",", "default", "only", ")", ";", "result", "=", "track", "selector", "select", "tracks", "(", "text", "renderer", "capabilities", ",", "track", "groups", ",", "period", "id", ",", "timeline", ")", ";", "assert", "fixed", "selection", "(", "result", "selections", "get", "(", "0", ")", ",", "track", "groups", ",", "default", "only", ")", ";", "/", "/", "default", "flags", "are", "disabled", "and", "no", "language", "preference", "is", "provided", ",", "so", "no", "text", "track", "is", "/", "/", "selected", "track", "groups", "=", "wrap", "formats", "(", "default", "only", ",", "no", "flag", ",", "forced", "only", ",", "forced", "default", ")", ";", "track", "selector", "set", "parameters", "(", "default", "parameters", "build", "upon", "(", ")", "set", "disabled", "text", "track", "selection", "flags", "(", "c", "selection", "flag", "default", ")", ")", ";", "result", "=", "track", "selector", "select", "tracks", "(", "text", "renderer", "capabilities", ",", "track", "groups", ",", "period", "id", ",", "timeline", ")", ";", "assert", "no", "selection", "(", "result", "selections", "get", "(", "0", ")", ")", ";", "/", "/", "all", "selection", "flags", "are", "disabled", "and", "there", "is", "no", "language", "preference", ",", "so", "nothing", "should", "be", "/", "/", "selected", "track", "groups", "=", "wrap", "formats", "(", "forced", "only", ",", "forced", "default", ",", "default", "only", ",", "no", "flag", ")", ";", "track", "selector", "set", "parameters", "(", "track", "selector", "get", "parameters", "(", ")", "build", "upon", "(", ")", "set", "disabled", "text", "track", "selection", "flags", "(", "c", "selection", "flag", "default", "|", "c", "selection", "flag", "forced", ")", ")", ";", "result", "=", "track", "selector", "select", "tracks", "(", "text", "renderer", "capabilities", ",", "track", "groups", ",", "period", "id", ",", "timeline", ")", ";", "assert", "no", "selection", "(", "result", "selections", "get", "(", "0", ")", ")", ";", "/", "/", "there", "is", "a", "preferred", "language", ",", "so", "a", "language", "-", "matching", "track", "flagged", "as", "default", "should", "/", "/", "be", "selected", ",", "and", "the", "one", "without", "forced", "flag", "should", "be", "preferred", "track", "selector", "set", "parameters", "(", "default", "parameters", "build", "upon", "(", ")", "set", "preferred", "text", "language", "(", "\"", "eng", "\"", ")", ")", ";", "result", "=", "track", "selector", "select", "tracks", "(", "text", "renderer", "capabilities", ",", "track", "groups", ",", "period", "id", ",", "timeline", ")", ";", "assert", "fixed", "selection", "(", "result", "selections", "get", "(", "0", ")", ",", "track", "groups", ",", "default", "only", ")", ";", "/", "/", "same", "as", "above", ",", "but", "the", "default", "flag", "is", "disabled", "if", "multiple", "tracks", "match", "the", "preferred", "/", "/", "language", ",", "those", "not", "flagged", "as", "forced", "are", "preferred", ",", "as", "they", "likely", "include", "the", "contents", "of", "/", "/", "forced", "subtitles", "track", "groups", "=", "wrap", "formats", "(", "no", "flag", ",", "forced", "only", ",", "forced", "default", ",", "default", "only", ")", ";", "track", "selector", "set", "parameters", "(", "track", "selector", "get", "parameters", "(", ")", "build", "upon", "(", ")", "set", "disabled", "text", "track", "selection", "flags", "(", "c", "selection", "flag", "default", ")", ")", ";", "result", "=", "track", "selector", "select", "tracks", "(", "text", "renderer", "capabilities", ",", "track", "groups", ",", "period", "id", ",", "timeline", ")", ";", "assert", "fixed", "selection", "(", "result", "selections", "get", "(", "0", ")", ",", "track", "groups", ",", "no", "flag", ")", ";", "}" ]
[ "returns", "total", "number", "of", "entries", "in", "the", "active", "memtable" ]
[ "public", "void", "enable", "num", "entries", "active", "mem", "table", "(", ")", "{", "this", "properties", "add", "(", "rocks", "d", "b", "property", "num", "entries", "active", "mem", "table", "get", "rocks", "d", "b", "property", "(", ")", ")", ";", "}" ]
[ "variant", "of", "{", "@", "link", "#", "body", "(", "publisher", ",", "class", ")", "}", "that", "allows", "providing", "element", "type", "information", "with", "generics" ]
[ "<", "t", ",", "s", "extends", "publisher", "<", "t", ">", ">", "request", "headers", "spec", "<", "?", ">", "body", "(", "s", "publisher", ",", "parameterized", "type", "reference", "<", "t", ">", "element", "type", "ref", ")", ";" ]
[ "generates", "all", "file", "splits", "for", "the", "relevant", "files", "under", "the", "given", "paths", "the", "{", "@", "code", "min", "desired", "splits", "}", "is", "an", "optional", "hint", "indicating", "how", "many", "splits", "would", "be", "necessary", "to", "exploit", "parallelism", "properly" ]
[ "collection", "<", "file", "source", "split", ">", "enumerate", "splits", "(", "path", "[", "]", "paths", ",", "int", "min", "desired", "splits", ")", "throws", "i", "o", "exception", ";", "/", "/", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-" ]
[ "returns", "a", "hash", "code", "for", "{", "@", "code", "value", "}", ";", "equal", "to", "the", "result", "of", "invoking", "{", "@", "code", "(", "(", "character", ")", "value", ")", "hash", "code", "(", ")", "}", "<", "b", ">", "java", "8", "users", ":", "<", "b", ">", "use", "{", "@", "link", "character", "#", "hash", "code", "(", "char", ")", "}", "instead" ]
[ "public", "static", "int", "hash", "code", "(", "char", "value", ")", "{", "return", "value", ";", "}" ]
[ "ask", "dfs", "client", "to", "read", "the", "file" ]
[ "private", "void", "dfs", "client", "read", "file", "(", "path", "corrupted", "file", ")", "throws", "i", "o", "exception", ",", "unresolved", "link", "exception", "{", "d", "f", "s", "input", "stream", "in", "=", "dfs", "dfs", "open", "(", "corrupted", "file", "to", "uri", "(", ")", "get", "path", "(", ")", ")", ";", "byte", "[", "]", "buf", "=", "new", "byte", "[", "buffersize", "]", ";", "int", "n", "read", "=", "0", ";", "/", "/", "total", "number", "of", "bytes", "read", "try", "{", "do", "{", "n", "read", "=", "in", "read", "(", "buf", ",", "0", ",", "buf", "length", ")", ";", "}", "while", "(", "n", "read", ">", "0", ")", ";", "}", "catch", "(", "checksum", "exception", "ce", ")", "{", "/", "/", "caught", "checksum", "exception", "if", "all", "replicas", "are", "bad", ",", "ignore", "and", "continue", "log", "debug", "(", "\"", "dfs", "client", "read", "file", "caught", "checksum", "exception", "\"", ")", ";", "}", "catch", "(", "block", "missing", "exception", "bme", ")", "{", "/", "/", "caught", "block", "missing", "exception", ",", "ignore", "log", "debug", "(", "\"", "dfs", "client", "read", "file", "caught", "block", "missing", "exception", "\"", ")", ";", "}", "}" ]
[ "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", "\"", ")", ";", "}" ]
[ "adds", "a", "collection", "of", "artifacts", "to", "a", "given", "collection", ",", "with", "{", "@", "link", "middleman", "type", "#", "aggregating", "middleman", "}", "middleman", "actions", "expanded", "once" ]
[ "static", "void", "add", "expanded", "artifacts", "(", "iterable", "<", "artifact", ">", "artifacts", ",", "collection", "<", "?", "super", "artifact", ">", "output", ",", "artifact", "expander", "artifact", "expander", ")", "{", "add", "expanded", "artifacts", "(", "artifacts", ",", "output", ",", "functions", "<", "artifact", ">", "identity", "(", ")", ",", "artifact", "expander", ")", ";", "}" ]
[ "get", "attribute", "boolean" ]
[ "public", "boolean", "get", "attribute", "boolean", "(", ")", "{", "return", "attribute", "boolean", ";", "}" ]
[ "get", "small", "snake" ]
[ "public", "string", "get", "small", "snake", "(", ")", "{", "return", "small", "snake", ";", "}" ]
[ "return", "true", "if", "this", "outer", "composite", "object", "is", "equal", "to", "o" ]
[ "public", "boolean", "equals", "(", "object", "o", ")", "{", "if", "(", "this", "=", "=", "o", ")", "{", "return", "true", ";", "}", "if", "(", "o", "=", "=", "null", "|", "|", "get", "class", "(", ")", "!", "=", "o", "get", "class", "(", ")", ")", "{", "return", "false", ";", "}", "outer", "composite", "outer", "composite", "=", "(", "outer", "composite", ")", "o", ";", "return", "objects", "equals", "(", "this", "my", "number", ",", "outer", "composite", "my", "number", ")", "&", "&", "objects", "equals", "(", "this", "my", "string", ",", "outer", "composite", "my", "string", ")", "&", "&", "objects", "equals", "(", "this", "my", "boolean", ",", "outer", "composite", "my", "boolean", ")", ";", "}" ]
[ "scale", "the", "matrix", "by", "value", "\"", "v", "\"" ]
[ "public", "void", "scale", "equal", "(", "double", "v", ")", "{", "blas", "scal", "(", "v", ",", "this", ")", ";", "}" ]
[ "gets", "the", "queue", "a", "c", "ls", "for", "current", "user" ]
[ "public", "queue", "acls", "info", "[", "]", "get", "queue", "acls", "for", "current", "user", "(", ")", "throws", "i", "o", "exception", ",", "interrupted", "exception", "{", "return", "client", "get", "queue", "acls", "for", "current", "user", "(", ")", ";", "}" ]
[ "test", "serialization", "of", "outer", "number", "types" ]
[ "public", "single", "<", "big", "decimal", ">", "rx", "fake", "outer", "number", "serialize", "(", "big", "decimal", "body", ",", "api", "client", "auth", "info", "auth", "info", ")", "{", "return", "single", "create", "(", "new", "io", "vertx", "rx", "java", "single", "on", "subscribe", "adapter", "<", ">", "(", "fut", "-", ">", "delegate", "fake", "outer", "number", "serialize", "(", "body", ",", "auth", "info", ",", "fut", ")", ")", ")", ";", "}" ]
[ "async", "http", "put", "json", "create", "a", "new", "resource", "by", "p", "u", "tting", "the", "given", "body", "to", "http", "request", ",", "http", "header", "content", "type", "default", "'", "applicationjson", ";", "charset", "=", "utf", "-", "8", "'", "url", "request", "params", "are", "expanded", "using", "the", "given", "query", "{", "@", "link", "query", "}", "{", "@", "code", "response", "type", "}", "can", "be", "an", "rest", "result", "or", "rest", "result", "data", "{", "@", "code", "t", "}", "type", "{", "@", "code", "callback", "}", "result", "callback", "execution", ",", "if", "you", "need", "response", "headers", ",", "you", "can", "convert", "the", "received", "rest", "result", "to", "http", "rest", "result" ]
[ "public", "<", "t", ">", "void", "put", "json", "(", "string", "url", ",", "header", "header", ",", "query", "query", ",", "string", "body", ",", "type", "response", "type", ",", "callback", "<", "t", ">", "callback", ")", "{", "execute", "(", "url", ",", "http", "method", "put", ",", "new", "request", "http", "entity", "(", "header", "set", "content", "type", "(", "media", "type", "application", "json", ")", ",", "query", ",", "body", ")", ",", "response", "type", ",", "callback", ")", ";", "}" ]
[ "deletes", "a", "pet" ]
[ "public", "void", "delete", "pet", "(", "long", "pet", "id", ",", "string", "api", "key", ",", "final", "response", "listener", "<", "string", ">", "response", "listener", ",", "final", "response", "error", "listener", "error", "listener", ")", "{", "object", "post", "body", "=", "null", ";", "/", "/", "verify", "the", "required", "parameter", "'", "pet", "id", "'", "is", "set", "if", "(", "pet", "id", "=", "=", "null", ")", "{", "volley", "error", "error", "=", "new", "volley", "error", "(", "\"", "missing", "the", "required", "parameter", "'", "pet", "id", "'", "when", "calling", "delete", "pet", "\"", ",", "new", "api", "exception", "(", "400", ",", "\"", "missing", "the", "required", "parameter", "'", "pet", "id", "'", "when", "calling", "delete", "pet", "\"", ")", ")", ";", "}", "/", "/", "create", "path", "and", "map", "variables", "string", "path", "=", "\"", "/", "pet", "/", "{", "pet", "id", "}", "\"", "replace", "all", "(", "\"", "\\", "\\", "{", "format", "\\", "\\", "}", "\"", ",", "\"", "json", "\"", ")", "replace", "all", "(", "\"", "\\", "\\", "{", "\"", "+", "\"", "pet", "id", "\"", "+", "\"", "\\", "\\", "}", "\"", ",", "api", "invoker", "escape", "string", "(", "pet", "id", "to", "string", "(", ")", ")", ")", ";", "/", "/", "query", "params", "list", "<", "pair", ">", "query", "params", "=", "new", "array", "list", "<", "pair", ">", "(", ")", ";", "/", "/", "header", "params", "map", "<", "string", ",", "string", ">", "header", "params", "=", "new", "hash", "map", "<", "string", ",", "string", ">", "(", ")", ";", "/", "/", "form", "params", "map", "<", "string", ",", "string", ">", "form", "params", "=", "new", "hash", "map", "<", "string", ",", "string", ">", "(", ")", ";", "header", "params", "put", "(", "\"", "api", "key", "\"", ",", "api", "invoker", "parameter", "to", "string", "(", "api", "key", ")", ")", ";", "string", "[", "]", "content", "types", "=", "{", "}", ";", "string", "content", "type", "=", "content", "types", "length", ">", "0", "?", "content", "types", "[", "0", "]", ":", "\"", "application", "/", "json", "\"", ";", "if", "(", "content", "type", "starts", "with", "(", "\"", "multipart", "/", "form", "-", "data", "\"", ")", ")", "{", "/", "/", "file", "uploading", "multipart", "entity", "builder", "local", "var", "builder", "=", "multipart", "entity", "builder", "create", "(", ")", ";", "http", "entity", "http", "entity", "=", "local", "var", "builder", "build", "(", ")", ";", "post", "body", "=", "http", "entity", ";", "}", "else", "{", "/", "/", "normal", "form", "params", "}", "string", "[", "]", "auth", "names", "=", "new", "string", "[", "]", "{", "\"", "petstore", "auth", "\"", "}", ";", "try", "{", "api", "invoker", "invoke", "a", "p", "i", "(", "base", "path", ",", "path", ",", "\"", "delete", "\"", ",", "query", "params", ",", "post", "body", ",", "header", "params", ",", "form", "params", ",", "content", "type", ",", "auth", "names", ",", "new", "response", "listener", "<", "string", ">", "(", ")", "{", "@", "override", "public", "void", "on", "response", "(", "string", "local", "var", "response", ")", "{", "response", "listener", "on", "response", "(", "local", "var", "response", ")", ";", "}", "}", ",", "new", "response", "error", "listener", "(", ")", "{", "@", "override", "public", "void", "on", "error", "response", "(", "volley", "error", "error", ")", "{", "error", "listener", "on", "error", "response", "(", "error", ")", ";", "}", "}", ")", ";", "}", "catch", "(", "api", "exception", "ex", ")", "{", "error", "listener", "on", "error", "response", "(", "new", "volley", "error", "(", "ex", ")", ")", ";", "}", "}" ]
[ "dismiss", "the", "snackbar" ]
[ "public", "static", "void", "dismiss", "(", ")", "{", "if", "(", "s", "reference", "!", "=", "null", "&", "&", "s", "reference", "get", "(", ")", "!", "=", "null", ")", "{", "s", "reference", "get", "(", ")", "dismiss", "(", ")", ";", "s", "reference", "=", "null", ";", "}", "}" ]
[ "delete", "a", "path", "quietly", ":", "failures", "are", "logged", "at", "debug" ]
[ "public", "static", "void", "delete", "quietly", "(", "file", "system", "fs", ",", "path", "path", ",", "boolean", "recursive", ")", "{", "try", "{", "fs", "delete", "(", "path", ",", "recursive", ")", ";", "}", "catch", "(", "i", "o", "exception", "e", ")", "{", "log", "debug", "(", "\"", "failed", "to", "delete", "{", "}", "\"", ",", "path", ",", "e", ")", ";", "}", "}" ]
[ "model", "tests", "for", "mixed", "properties", "and", "additional", "properties", "class" ]
[ "public", "void", "test", "mixed", "properties", "and", "additional", "properties", "class", "(", ")", "{", "/", "/", "todo", ":", "test", "mixed", "properties", "and", "additional", "properties", "class", "}" ]
[ "override", "to", "add", "additional", "pre", "-", "configured", "{", "@", "link", "tokenizer", "}" ]
[ "default", "list", "<", "pre", "configured", "tokenizer", ">", "get", "pre", "configured", "tokenizers", "(", ")", "{", "return", "empty", "list", "(", ")", ";", "}" ]
[ "zooms", "out", "to", "original", "size" ]
[ "public", "void", "reset", "zoom", "(", ")", "{", "m", "view", "port", "handler", "reset", "zoom", "(", "m", "zoom", "matrix", "buffer", ")", ";", "m", "view", "port", "handler", "refresh", "(", "m", "zoom", "matrix", "buffer", ",", "this", ",", "false", ")", ";", "/", "/", "range", "might", "have", "changed", ",", "which", "means", "that", "y", "-", "axis", "labels", "/", "/", "could", "have", "changed", "in", "size", ",", "affecting", "y", "-", "axis", "size", "/", "/", "so", "we", "need", "to", "recalculate", "offsets", "calculate", "offsets", "(", ")", ";", "post", "invalidate", "(", ")", ";", "}" ]
[ "fails", "if", "a", "global", "view", "with", "the", "given", "name", "does", "not", "exist" ]
[ "public", "form", "validation", "do", "view", "exists", "check", "(", "@", "query", "parameter", "string", "value", ")", "{", "check", "permission", "(", "view", "create", ")", ";", "string", "view", "=", "util", "fix", "empty", "(", "value", ")", ";", "if", "(", "view", "=", "=", "null", ")", "return", "form", "validation", "ok", "(", ")", ";", "if", "(", "jenkins", "get", "(", ")", "get", "view", "(", "view", ")", "!", "=", "null", ")", "return", "form", "validation", "ok", "(", ")", ";", "else", "return", "form", "validation", "error", "(", "messages", "proxy", "view", "no", "such", "view", "exists", "(", "value", ")", ")", ";", "}" ]
[ "returns", "the", "stream", "number", "for", "the", "global", "symbols", "component" ]
[ "int", "get", "global", "symbols", "hash", "maybe", "stream", "number", "(", ")", "{", "return", "stream", "number", "global", "static", "symbols", "hash", "maybe", ";", "}" ]
[ "gets", "an", "adapter", "for", "working", "with", "the", "function", "definition", "data", "type", "database", "table", "the", "adapter", "is", "based", "on", "the", "version", "of", "the", "database", "associated", "with", "the", "specified", "database", "handle", "and", "the", "open", "mode" ]
[ "static", "function", "definition", "d", "b", "adapter", "get", "adapter", "(", "d", "b", "handle", "handle", ",", "int", "open", "mode", ",", "task", "monitor", "monitor", ")", "throws", "version", "exception", ",", "i", "o", "exception", "{", "if", "(", "open", "mode", "=", "=", "d", "b", "constants", "create", ")", "{", "return", "new", "function", "definition", "d", "b", "adapter", "v", "1", "(", "handle", ",", "true", ")", ";", "}", "try", "{", "return", "new", "function", "definition", "d", "b", "adapter", "v", "1", "(", "handle", ",", "false", ")", ";", "}", "catch", "(", "version", "exception", "e", ")", "{", "if", "(", "!", "e", "is", "upgradable", "(", ")", "|", "|", "open", "mode", "=", "=", "d", "b", "constants", "update", ")", "{", "throw", "e", ";", "}", "function", "definition", "d", "b", "adapter", "adapter", "=", "find", "read", "only", "adapter", "(", "handle", ")", ";", "if", "(", "open", "mode", "=", "=", "d", "b", "constants", "upgrade", ")", "{", "adapter", "=", "upgrade", "(", "handle", ",", "adapter", ")", ";", "}", "return", "adapter", ";", "}", "}" ]
[ "tests", "that", "ch", "rooted", "file", "system", "delegates", "calls", "for", "every", "acl", "method", "to", "the", "underlying", "file", "system", "with", "all", "path", "arguments", "translated", "as", "required", "to", "enforce", "chroot" ]
[ "public", "void", "test", "acl", "methods", "path", "translation", "(", ")", "throws", "i", "o", "exception", "{", "configuration", "conf", "=", "new", "configuration", "(", ")", ";", "conf", "set", "class", "(", "\"", "fs", "mockfs", "impl", "\"", ",", "mock", "file", "system", "class", ",", "file", "system", "class", ")", ";", "uri", "chroot", "uri", "=", "uri", "create", "(", "\"", "mockfs", ":", "/", "/", "foo", "/", "a", "/", "b", "\"", ")", ";", "ch", "rooted", "file", "system", "chroot", "fs", "=", "new", "ch", "rooted", "file", "system", "(", "chroot", "uri", ",", "conf", ")", ";", "file", "system", "mock", "fs", "=", "(", "(", "filter", "file", "system", ")", "chroot", "fs", "get", "raw", "file", "system", "(", ")", ")", "get", "raw", "file", "system", "(", ")", ";", "path", "chroot", "path", "=", "new", "path", "(", "\"", "/", "c", "\"", ")", ";", "path", "raw", "path", "=", "new", "path", "(", "\"", "/", "a", "/", "b", "/", "c", "\"", ")", ";", "list", "<", "acl", "entry", ">", "entries", "=", "collections", "empty", "list", "(", ")", ";", "chroot", "fs", "modify", "acl", "entries", "(", "chroot", "path", ",", "entries", ")", ";", "verify", "(", "mock", "fs", ")", "modify", "acl", "entries", "(", "raw", "path", ",", "entries", ")", ";", "chroot", "fs", "remove", "acl", "entries", "(", "chroot", "path", ",", "entries", ")", ";", "verify", "(", "mock", "fs", ")", "remove", "acl", "entries", "(", "raw", "path", ",", "entries", ")", ";", "chroot", "fs", "remove", "default", "acl", "(", "chroot", "path", ")", ";", "verify", "(", "mock", "fs", ")", "remove", "default", "acl", "(", "raw", "path", ")", ";", "chroot", "fs", "remove", "acl", "(", "chroot", "path", ")", ";", "verify", "(", "mock", "fs", ")", "remove", "acl", "(", "raw", "path", ")", ";", "chroot", "fs", "set", "acl", "(", "chroot", "path", ",", "entries", ")", ";", "verify", "(", "mock", "fs", ")", "set", "acl", "(", "raw", "path", ",", "entries", ")", ";", "chroot", "fs", "get", "acl", "status", "(", "chroot", "path", ")", ";", "verify", "(", "mock", "fs", ")", "get", "acl", "status", "(", "raw", "path", ")", ";", "}" ]
[ "add", "a", "new", "node", "to", "the", "linked", "list" ]
[ "final", "void", "add", "last", "(", "node", "n", ")", "{", "tail", "set", "(", "n", ")", ";", "tail", "=", "n", ";", "size", "+", "+", ";", "}" ]
[ "return", "the", "files", "that", "satisfy", "the", "filter", "in", "directory", "doesn", "'", "t", "traverse", "subdirectories" ]
[ "public", "static", "list", "<", "file", ">", "list", "files", "in", "dir", "with", "filter", "(", "final", "file", "dir", ",", "final", "file", "filter", "filter", ",", "final", "comparator", "<", "file", ">", "comparator", ")", "{", "return", "list", "files", "in", "dir", "with", "filter", "(", "dir", ",", "filter", ",", "false", ",", "comparator", ")", ";", "}" ]
[ "testing", "connections", "made", ",", "send", "request", "and", "bytes", "send", "statistics", "in", "{", "@", "link", "abfs", "rest", "operation", "}" ]
[ "public", "void", "test", "abfs", "http", "send", "statistics", "(", ")", "throws", "i", "o", "exception", "{", "describe", "(", "\"", "test", "to", "check", "correct", "values", "of", "statistics", "after", "abfs", "http", "send", "\"", "+", "\"", "request", "is", "done", "\"", ")", ";", "azure", "blob", "file", "system", "fs", "=", "get", "file", "system", "(", ")", ";", "map", "<", "string", ",", "long", ">", "metric", "map", ";", "path", "send", "request", "path", "=", "path", "(", "get", "method", "name", "(", ")", ")", ";", "string", "test", "network", "stats", "string", "=", "\"", "http", "send", "\"", ";", "metric", "map", "=", "fs", "get", "instrumentation", "map", "(", ")", ";", "long", "expected", "connections", "made", "=", "metric", "map", "get", "(", "connections", "made", "get", "stat", "name", "(", ")", ")", ";", "long", "expected", "requests", "sent", "=", "metric", "map", "get", "(", "send", "requests", "get", "stat", "name", "(", ")", ")", ";", "long", "expected", "bytes", "sent", "=", "0", ";", "/", "/", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "/", "/", "operation", ":", "creating", "abfs", "output", "stream", "try", "(", "abfs", "output", "stream", "out", "=", "create", "abfs", "output", "stream", "with", "flush", "enabled", "(", "fs", ",", "send", "request", "path", ")", ")", "{", "/", "/", "network", "stats", "calculation", ":", "for", "creating", "abfs", "output", "stream", ":", "/", "/", "1", "create", "request", "=", "1", "connection", "made", "and", "1", "send", "request", "expected", "connections", "made", "+", "+", ";", "expected", "requests", "sent", "+", "+", ";", "/", "/", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "/", "/", "operation", ":", "write", "small", "data", "/", "/", "network", "stats", "calculation", ":", "no", "additions", "/", "/", "data", "written", "is", "less", "than", "the", "buffer", "size", "and", "hence", "will", "not", "/", "/", "trigger", "any", "append", "request", "to", "store", "out", "write", "(", "test", "network", "stats", "string", "get", "bytes", "(", ")", ")", ";", "/", "/", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "/", "/", "operation", ":", "h", "flush", "/", "/", "flushes", "all", "outstanding", "data", "(", "i", "e", "the", "current", "unfinished", "packet", ")", "/", "/", "from", "the", "client", "into", "the", "service", "on", "all", "data", "node", "replicas", "out", "hflush", "(", ")", ";", "/", "*", "*", "network", "stats", "calculation", ":", "*", "3", "possibilities", "here", ":", "*", "a", "as", "there", "is", "pending", "data", "to", "be", "written", "to", "store", ",", "this", "will", "result", "in", ":", "*", "1", "append", "+", "1", "flush", "=", "2", "connections", "and", "2", "send", "requests", "*", "*", "b", "if", "config", "\"", "fs", "azure", "enable", "small", "write", "optimization", "\"", "is", "enabled", ",", "append", "*", "and", "flush", "call", "will", "be", "merged", "for", "small", "data", "in", "buffer", "in", "this", "test", "*", "in", "which", "case", "it", "will", "be", ":", "*", "1", "append", "+", "flush", "request", "=", "1", "connection", "and", "1", "send", "request", "*", "*", "c", "if", "the", "path", "is", "configured", "for", "append", "blob", "files", "to", "be", "used", ",", "hflush", "*", "is", "a", "no", "-", "op", "so", "in", "this", "case", ":", "*", "1", "append", "=", "1", "connection", "and", "1", "send", "request", "*", "/", "if", "(", "fs", "get", "abfs", "store", "(", ")", "is", "append", "blob", "key", "(", "fs", "make", "qualified", "(", "send", "request", "path", ")", "to", "string", "(", ")", ")", "|", "|", "(", "this", "get", "configuration", "(", ")", "is", "small", "write", "optimization", "enabled", "(", ")", ")", ")", "{", "expected", "connections", "made", "+", "+", ";", "expected", "requests", "sent", "+", "+", ";", "}", "else", "{", "expected", "connections", "made", "+", "=", "2", ";", "expected", "requests", "sent", "+", "=", "2", ";", "}", "expected", "bytes", "sent", "+", "=", "test", "network", "stats", "string", "get", "bytes", "(", ")", "length", ";", "/", "/", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "/", "/", "assertions", "metric", "map", "=", "fs", "get", "instrumentation", "map", "(", ")", ";", "assert", "abfs", "statistics", "(", "connections", "made", ",", "expected", "connections", "made", ",", "metric", "map", ")", ";", "assert", "abfs", "statistics", "(", "send", "requests", ",", "expected", "requests", "sent", ",", "metric", "map", ")", ";", "assert", "abfs", "statistics", "(", "abfs", "statistic", "bytes", "sent", ",", "expected", "bytes", "sent", ",", "metric", "map", ")", ";", "}", "/", "/", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "/", "/", "operation", ":", "abfs", "output", "stream", "close", "/", "/", "network", "stats", "calculation", ":", "1", "flush", "(", "with", "close", ")", "is", "send", "/", "/", "1", "flush", "request", "=", "1", "connection", "and", "1", "send", "request", "expected", "connections", "made", "+", "+", ";", "expected", "requests", "sent", "+", "+", ";", "/", "/", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "/", "/", "operation", ":", "re", "-", "create", "the", "file", "/", "create", "overwrite", "scenario", "try", "(", "abfs", "output", "stream", "out", "=", "create", "abfs", "output", "stream", "with", "flush", "enabled", "(", "fs", ",", "send", "request", "path", ")", ")", "{", "/", "*", "*", "network", "stats", "calculation", ":", "create", "overwrite", "*", "there", "are", "2", "possibilities", "here", "*", "a", "create", "overwrite", "results", "in", "1", "server", "call", "*", "create", "with", "overwrite", "=", "true", "=", "1", "connection", "and", "1", "send", "request", "*", "*", "b", "if", "config", "\"", "fs", "azure", "enable", "conditional", "create", "overwrite", "\"", "is", "enabled", ",", "*", "create", "overwrite", "=", "false", "(", "will", "fail", "in", "this", "case", "as", "file", "is", "indeed", "present", ")", "*", "+", "get", "file", "status", "to", "fetch", "the", "file", "e", "tag", "*", "+", "create", "overwrite", "=", "true", "*", "=", "3", "connections", "and", "2", "send", "requests", "*", "/", "if", "(", "this", "get", "configuration", "(", ")", "is", "conditional", "create", "overwrite", "enabled", "(", ")", ")", "{", "expected", "connections", "made", "+", "=", "3", ";", "expected", "requests", "sent", "+", "=", "2", ";", "}", "else", "{", "expected", "connections", "made", "+", "=", "1", ";", "expected", "requests", "sent", "+", "=", "1", ";", "}", "/", "/", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "/", "/", "operation", ":", "multiple", "small", "appends", "+", "hflush", "for", "(", "int", "i", "=", "0", ";", "i", "<", "write", "operation", "loop", "count", ";", "i", "+", "+", ")", "{", "out", "write", "(", "test", "network", "stats", "string", "get", "bytes", "(", ")", ")", ";", "/", "/", "network", "stats", "calculation", ":", "no", "-", "op", "small", "write", "out", "hflush", "(", ")", ";", "/", "/", "network", "stats", "calculation", ":", "hflush", "/", "/", "refer", "to", "previous", "comments", "for", "h", "flush", "network", "stats", "calcualtion", "/", "/", "possibilities", "if", "(", "fs", "get", "abfs", "store", "(", ")", "is", "append", "blob", "key", "(", "fs", "make", "qualified", "(", "send", "request", "path", ")", "to", "string", "(", ")", ")", "|", "|", "(", "this", "get", "configuration", "(", ")", "is", "small", "write", "optimization", "enabled", "(", ")", ")", ")", "{", "expected", "connections", "made", "+", "+", ";", "expected", "requests", "sent", "+", "+", ";", "}", "else", "{", "expected", "connections", "made", "+", "=", "2", ";", "expected", "requests", "sent", "+", "=", "2", ";", "}", "expected", "bytes", "sent", "+", "=", "test", "network", "stats", "string", "get", "bytes", "(", ")", "length", ";", "}", "/", "/", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "/", "/", "assertions", "metric", "map", "=", "fs", "get", "instrumentation", "map", "(", ")", ";", "assert", "abfs", "statistics", "(", "connections", "made", ",", "expected", "connections", "made", ",", "metric", "map", ")", ";", "assert", "abfs", "statistics", "(", "send", "requests", ",", "expected", "requests", "sent", ",", "metric", "map", ")", ";", "assert", "abfs", "statistics", "(", "abfs", "statistic", "bytes", "sent", ",", "expected", "bytes", "sent", ",", "metric", "map", ")", ";", "}", "}" ]
[ "sign", "jws", "string" ]
[ "public", "static", "string", "sign", "jws", "(", "final", "jwt", "claims", "claims", ",", "final", "public", "json", "web", "key", "json", "web", "key", ",", "final", "string", "algorithm", "header", "value", ",", "final", "map", "<", "string", ",", "object", ">", "headers", ")", "{", "val", "jws", "=", "new", "json", "web", "signature", "(", ")", ";", "val", "json", "claims", "=", "claims", "to", "json", "(", ")", ";", "jws", "set", "payload", "(", "json", "claims", ")", ";", "jws", "set", "algorithm", "header", "value", "(", "algorithm", "identifiers", "none", ")", ";", "jws", "set", "algorithm", "constraints", "(", "algorithm", "constraints", "disallow", "none", ")", ";", "jws", "set", "header", "(", "\"", "typ", "\"", ",", "\"", "jwt", "\"", ")", ";", "headers", "for", "each", "(", "(", "k", ",", "v", ")", "-", ">", "jws", "set", "header", "(", "k", ",", "v", "to", "string", "(", ")", ")", ")", ";", "if", "(", "json", "web", "key", "!", "=", "null", ")", "{", "jws", "set", "key", "(", "json", "web", "key", "get", "private", "key", "(", ")", ")", ";", "if", "(", "string", "utils", "is", "not", "blank", "(", "json", "web", "key", "get", "key", "id", "(", ")", ")", ")", "{", "jws", "set", "key", "id", "header", "value", "(", "json", "web", "key", "get", "key", "id", "(", ")", ")", ";", "}", "jws", "set", "algorithm", "header", "value", "(", "string", "utils", "default", "string", "(", "algorithm", "header", "value", ",", "algorithm", "identifiers", "none", ")", ")", ";", "}", "logger", "trace", "(", "\"", "signing", "id", "token", "with", "key", "id", "header", "value", "[", "{", "}", "]", "and", "algorithm", "header", "value", "[", "{", "}", "]", "\"", ",", "jws", "get", "key", "id", "header", "value", "(", ")", ",", "jws", "get", "algorithm", "header", "value", "(", ")", ")", ";", "return", "jws", "get", "compact", "serialization", "(", ")", ";", "}" ]
[ "starts", "the", "standard", "schedulers", "the", "operation", "is", "idempotent", "and", "thread", "-", "safe" ]
[ "public", "static", "void", "start", "(", ")", "{", "computation", "(", ")", "start", "(", ")", ";", "io", "(", ")", "start", "(", ")", ";", "new", "thread", "(", ")", "start", "(", ")", ";", "single", "(", ")", "start", "(", ")", ";", "trampoline", "(", ")", "start", "(", ")", ";", "scheduler", "pool", "factory", "start", "(", ")", ";", "}" ]
[ "test", "to", "fetch", "counts", "of", "values" ]
[ "public", "void", "test", "fetch", "counts", "(", ")", "throws", "exception", "{", "data", "extension", "config", "extension", "=", "data", "extension", "config", "reconstruct", "(", "\"", "{", "\\", "\"", "properties", "\\", "\"", ":", "[", "{", "\\", "\"", "id", "\\", "\"", ":", "\\", "\"", "p38", "\\", "\"", ",", "\\", "\"", "name", "\\", "\"", ":", "\\", "\"", "currency", "\\", "\"", ",", "\\", "\"", "settings", "\\", "\"", ":", "{", "\\", "\"", "count", "\\", "\"", ":", "\\", "\"", "on", "\\", "\"", ",", "\\", "\"", "rank", "\\", "\"", ":", "\\", "\"", "any", "\\", "\"", "}", "}", "]", "}", "\"", ")", ";", "mock", "http", "call", "(", "\"", "{", "\\", "\"", "ids", "\\", "\"", ":", "[", "\\", "\"", "q863", "\\", "\"", ",", "\\", "\"", "q794", "\\", "\"", ",", "\\", "\"", "q17", "\\", "\"", ",", "\\", "\"", "q30", "\\", "\"", "]", ",", "\\", "\"", "properties", "\\", "\"", ":", "[", "{", "\\", "\"", "id", "\\", "\"", ":", "\\", "\"", "p38", "\\", "\"", ",", "\\", "\"", "settings", "\\", "\"", ":", "{", "\\", "\"", "count", "\\", "\"", ":", "\\", "\"", "on", "\\", "\"", ",", "\\", "\"", "rank", "\\", "\"", ":", "\\", "\"", "any", "\\", "\"", "}", "}", "]", "}", "\"", ",", "\"", "{", "\"", "+", "\"", "\\", "\"", "rows", "\\", "\"", ":", "{", "\"", "+", "\"", "\\", "\"", "q794", "\\", "\"", ":", "{", "\\", "\"", "p38", "\\", "\"", ":", "[", "{", "\\", "\"", "float", "\\", "\"", ":", "1", "}", "]", "}", ",", "\"", "+", "\"", "\\", "\"", "q863", "\\", "\"", ":", "{", "\\", "\"", "p38", "\\", "\"", ":", "[", "{", "\\", "\"", "float", "\\", "\"", ":", "2", "}", "]", "}", ",", "\"", "+", "\"", "\\", "\"", "q30", "\\", "\"", ":", "{", "\\", "\"", "p38", "\\", "\"", ":", "[", "{", "\\", "\"", "float", "\\", "\"", ":", "1", "}", "]", "}", ",", "\"", "+", "\"", "\\", "\"", "q17", "\\", "\"", ":", "{", "\\", "\"", "p38", "\\", "\"", ":", "[", "{", "\\", "\"", "float", "\\", "\"", ":", "1", "}", "]", "}", "\"", "+", "\"", "}", ",", "\"", "+", "\"", "\\", "\"", "meta", "\\", "\"", ":", "[", "\"", "+", "\"", "{", "\\", "\"", "settings", "\\", "\"", ":", "{", "\\", "\"", "count", "\\", "\"", ":", "\\", "\"", "on", "\\", "\"", ",", "\\", "\"", "rank", "\\", "\"", ":", "\\", "\"", "any", "\\", "\"", "}", ",", "\\", "\"", "name", "\\", "\"", ":", "\\", "\"", "currency", "\\", "\"", ",", "\\", "\"", "id", "\\", "\"", ":", "\\", "\"", "p38", "\\", "\"", "}", "\"", "+", "\"", "]", "}", "\"", ")", ";", "engine", "dependent", "operation", "op", "=", "new", "extend", "data", "operation", "(", "engine", "config", ",", "\"", "country", "\"", ",", "recon", "service", ",", "recon", "identifier", "space", ",", "recon", "schema", "space", ",", "extension", ",", "1", ")", ";", "long", "running", "process", "stub", "process", "=", "new", "long", "running", "process", "stub", "(", "op", "create", "process", "(", "project", ",", "options", ")", ")", ";", "process", "run", "(", ")", ";", "/", "/", "test", "to", "be", "updated", "as", "countries", "change", "currencies", "!", "assert", "assert", "true", "(", "math", "round", "(", "(", "double", ")", "project", "rows", "get", "(", "2", ")", "get", "cell", "value", "(", "1", ")", ")", "=", "=", "2", ",", "\"", "incorrect", "number", "of", "currencies", "returned", "for", "tajikistan", "\"", ")", ";", "assert", "assert", "true", "(", "math", "round", "(", "(", "double", ")", "project", "rows", "get", "(", "3", ")", "get", "cell", "value", "(", "1", ")", ")", "=", "=", "1", ",", "\"", "incorrect", "number", "of", "currencies", "returned", "for", "united", "states", "\"", ")", ";", "/", "/", "make", "sure", "we", "did", "not", "create", "any", "recon", "stats", "for", "that", "column", "(", "no", "reconciled", "value", ")", "assert", "assert", "true", "(", "project", "column", "model", "get", "column", "by", "name", "(", "\"", "currency", "\"", ")", "get", "recon", "stats", "(", ")", "=", "=", "null", ")", ";", "}" ]
[ "add", "this", "command", "to", "a", "map", "use", "the", "command", "string", "as", "key" ]
[ "public", "void", "add", "to", "map", "(", "map", "<", "string", ",", "cli", "command", ">", "cmd", "map", ")", "{", "cmd", "map", "put", "(", "cmd", "str", ",", "this", ")", ";", "}" ]
[ "this", "implementation", "retrieves", "an", "@", "{", "@", "link", "javax", "annotation", "priority", "}", "value", ",", "allowing", "for", "additional", "semantics", "over", "the", "regular", "@", "{", "@", "link", "order", "}", "annotation", ":", "typically", ",", "selecting", "one", "object", "over", "another", "in", "case", "of", "multiple", "matches", "but", "only", "one", "object", "to", "be", "returned" ]
[ "public", "integer", "get", "priority", "(", "object", "obj", ")", "{", "if", "(", "obj", "instanceof", "class", ")", "{", "return", "order", "utils", "get", "priority", "(", "(", "class", "<", "?", ">", ")", "obj", ")", ";", "}", "integer", "priority", "=", "order", "utils", "get", "priority", "(", "obj", "get", "class", "(", ")", ")", ";", "if", "(", "priority", "=", "=", "null", "&", "&", "obj", "instanceof", "decorating", "proxy", ")", "{", "return", "get", "priority", "(", "(", "(", "decorating", "proxy", ")", "obj", ")", "get", "decorated", "class", "(", ")", ")", ";", "}", "return", "priority", ";", "}" ]
[ "test", "the", "property", "'", "just", "symbol", "'" ]
[ "public", "void", "just", "symbol", "test", "(", ")", "{", "/", "/", "todo", ":", "test", "just", "symbol", "}" ]
[ "shortcut", "for", "{", "@", "link", "#", "body", "(", "body", "inserter", ")", "}", "with", "a", "{", "@", "linkplain", "body", "inserters", "#", "from", "publisher", "publisher", "inserter", "}", "for", "example", ":", "mono", "&", "lt", ";", "person", "&", "gt", ";", "person", "mono", "=", ";", "mono", "&", "lt", ";", "void", "&", "gt", ";", "result", "=", "client", "post", "(", ")", "uri", "(", "\"", "persons", "{", "id", "}", "\"", ",", "id", ")", "content", "type", "(", "media", "type", "application", "json", ")", "body", "(", "person", "mono", ",", "person", "class", ")", "retrieve", "(", ")", "body", "to", "mono", "(", "void", "class", ")", ";" ]
[ "<", "t", ",", "p", "extends", "publisher", "<", "t", ">", ">", "request", "headers", "spec", "<", "?", ">", "body", "(", "p", "publisher", ",", "class", "<", "t", ">", "element", "class", ")", ";" ]
[ "creates", "a", "string", "representation", "of", "the", "tuple", "in", "the", "form", "(", "f", "0", ",", "f", "1", ",", "f", "2", ",", "f", "3", ",", "f", "4", ",", "f", "5", ",", "f", "6", ")", ",", "where", "the", "individual", "fields", "are", "the", "value", "returned", "by", "calling", "{", "@", "link", "object", "#", "to", "string", "}", "on", "that", "field" ]
[ "public", "string", "to", "string", "(", ")", "{", "return", "\"", "(", "\"", "+", "string", "utils", "array", "aware", "to", "string", "(", "this", "f", "0", ")", "+", "\"", ",", "\"", "+", "string", "utils", "array", "aware", "to", "string", "(", "this", "f", "1", ")", "+", "\"", ",", "\"", "+", "string", "utils", "array", "aware", "to", "string", "(", "this", "f", "2", ")", "+", "\"", ",", "\"", "+", "string", "utils", "array", "aware", "to", "string", "(", "this", "f", "3", ")", "+", "\"", ",", "\"", "+", "string", "utils", "array", "aware", "to", "string", "(", "this", "f", "4", ")", "+", "\"", ",", "\"", "+", "string", "utils", "array", "aware", "to", "string", "(", "this", "f", "5", ")", "+", "\"", ",", "\"", "+", "string", "utils", "array", "aware", "to", "string", "(", "this", "f", "6", ")", "+", "\"", ")", "\"", ";", "}" ]
[ "runs", "serializationdeserialization", "tests" ]
[ "void", "test", "serialize", "deserialize", "(", ")", "throws", "exception", "{", "stopwatch", "timer", "=", "stopwatch", "create", "started", "(", ")", ";", "int", "total", "bytes", "=", "0", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "repetitions", ";", "+", "+", "i", ")", "{", "for", "(", "t", "subject", ":", "subjects", ")", "{", "byte", "[", "]", "serialized", "=", "to", "bytes", "(", "subject", ")", ";", "total", "bytes", "+", "=", "serialized", "length", ";", "t", "deserialized", "=", "from", "bytes", "(", "serialized", ")", ";", "verification", "function", "verify", "deserialized", "(", "subject", ",", "deserialized", ")", ";", "}", "}", "logger", "at", "info", "(", ")", "log", "(", "\"", "%", "s", "total", "serialized", "bytes", "=", "%", "d", ",", "%", "s", "\"", ",", "under", "test", "get", "encoded", "class", "(", ")", "get", "simple", "name", "(", ")", ",", "total", "bytes", ",", "timer", ")", ";", "}" ]
[ "how", "long", "in", "milliseconds", "for", "propagation", "of", "store", "changes", ",", "including", "updatedeletelist", "to", "be", "everywhere", "if", "0", ":", "the", "fs", "is", "consistent" ]
[ "protected", "int", "time", "to", "become", "consistent", "millis", "(", ")", "{", "return", "0", ";", "}" ]
[ "look", "up", "an", "external", "endpoint" ]
[ "public", "endpoint", "get", "external", "endpoint", "(", "string", "api", ")", "{", "return", "find", "by", "a", "p", "i", "(", "external", ",", "api", ")", ";", "}" ]
[ "post", "a", "notification", "to", "be", "shown", "in", "the", "status", "bar", "if", "a", "notification", "with", "the", "same", "id", "has", "already", "been", "posted", "by", "your", "application", "and", "has", "not", "yet", "been", "canceled", ",", "it", "will", "be", "replaced", "by", "the", "updated", "information", "if", "{", "@", "code", "notification", "}", "is", "{", "@", "code", "null", "}", "then", "any", "notification", "previously", "shown", "with", "the", "specified", "id", "will", "be", "cancelled" ]
[ "public", "static", "void", "set", "notification", "(", "context", "context", ",", "int", "id", ",", "@", "nullable", "notification", "notification", ")", "{", "notification", "manager", "notification", "manager", "=", "check", "not", "null", "(", "(", "notification", "manager", ")", "context", "get", "system", "service", "(", "context", "notification", "service", ")", ")", ";", "if", "(", "notification", "!", "=", "null", ")", "{", "notification", "manager", "notify", "(", "id", ",", "notification", ")", ";", "}", "else", "{", "notification", "manager", "cancel", "(", "id", ")", ";", "}", "}" ]
[ "returns", "the", "length", "of", "the", "sound", "in", "seconds" ]
[ "public", "float", "duration", "(", ")", "{", "return", "duration", ";", "}" ]
[ "work", "out", "the", "expected", "byte", "from", "a", "specific", "offset" ]
[ "int", "expected", "byte", "(", "int", "offset", ")", "{", "return", "offset", "&", "0xff", ";", "}" ]
[ "shortcut", "for", "{", "@", "code", "jenkins", "get", "instance", "or", "null", "(", ")", "?", "lookup", "get", "(", "type", ")", "}" ]
[ "public", "static", "@", "check", "for", "null", "<", "t", ">", "t", "lookup", "(", "class", "<", "t", ">", "type", ")", "{", "jenkins", "j", "=", "jenkins", "get", "instance", "or", "null", "(", ")", ";", "return", "j", "!", "=", "null", "?", "j", "lookup", "get", "(", "type", ")", ":", "null", ";", "}" ]
[ "args", ":", ":", "=", "kafka", "prop", "file", "name", "command", "disable", "auto", "terminate", "command", ":", "=", "\"", "run", "\"", "|", "\"", "process", "\"" ]
[ "public", "static", "void", "main", "(", "final", "string", "[", "]", "args", ")", "throws", "i", "o", "exception", "{", "if", "(", "args", "length", "<", "2", ")", "{", "system", "err", "println", "(", "\"", "streams", "smoke", "test", "are", "expecting", "two", "parameters", ":", "prop", "file", ",", "command", ";", "but", "only", "see", "\"", "+", "args", "length", "+", "\"", "parameter", "\"", ")", ";", "exit", "exit", "(", "1", ")", ";", "}", "final", "string", "prop", "file", "name", "=", "args", "[", "0", "]", ";", "final", "string", "command", "=", "args", "[", "1", "]", ";", "final", "boolean", "disable", "auto", "terminate", "=", "args", "length", ">", "2", ";", "final", "properties", "streams", "properties", "=", "utils", "load", "props", "(", "prop", "file", "name", ")", ";", "final", "string", "kafka", "=", "streams", "properties", "get", "property", "(", "streams", "config", "bootstrap", "servers", "config", ")", ";", "final", "string", "processing", "guarantee", "=", "streams", "properties", "get", "property", "(", "streams", "config", "processing", "guarantee", "config", ")", ";", "if", "(", "kafka", "=", "=", "null", ")", "{", "system", "err", "println", "(", "\"", "no", "bootstrap", "kafka", "servers", "specified", "in", "\"", "+", "streams", "config", "bootstrap", "servers", "config", ")", ";", "exit", "exit", "(", "1", ")", ";", "}", "if", "(", "\"", "process", "\"", "equals", "(", "command", ")", ")", "{", "if", "(", "!", "streams", "config", "at", "least", "once", "equals", "(", "processing", "guarantee", ")", "&", "&", "!", "streams", "config", "exactly", "once", "equals", "(", "processing", "guarantee", ")", ")", "{", "system", "err", "println", "(", "\"", "processing", "guarantee", "must", "be", "either", "\"", "+", "streams", "config", "at", "least", "once", "+", "\"", "or", "\"", "+", "streams", "config", "exactly", "once", ")", ";", "exit", "exit", "(", "1", ")", ";", "}", "}", "system", "out", "println", "(", "\"", "streams", "test", "instance", "started", "(", "streams", "smoke", "test", ")", "\"", ")", ";", "system", "out", "println", "(", "\"", "command", "=", "\"", "+", "command", ")", ";", "system", "out", "println", "(", "\"", "props", "=", "\"", "+", "streams", "properties", ")", ";", "system", "out", "println", "(", "\"", "disable", "auto", "terminate", "=", "\"", "+", "disable", "auto", "terminate", ")", ";", "switch", "(", "command", ")", "{", "case", "\"", "run", "\"", ":", "/", "/", "this", "starts", "the", "driver", "(", "data", "generation", "and", "result", "verification", ")", "final", "int", "num", "keys", "=", "10", ";", "final", "int", "max", "records", "per", "key", "=", "500", ";", "if", "(", "disable", "auto", "terminate", ")", "{", "generate", "perpetually", "(", "kafka", ",", "num", "keys", ",", "max", "records", "per", "key", ")", ";", "}", "else", "{", "/", "/", "slow", "down", "data", "production", "to", "span", "30", "seconds", "so", "that", "system", "tests", "have", "time", "to", "/", "/", "do", "their", "bounces", ",", "etc", "final", "map", "<", "string", ",", "set", "<", "integer", ">", ">", "all", "data", "=", "generate", "(", "kafka", ",", "num", "keys", ",", "max", "records", "per", "key", ",", "duration", "of", "seconds", "(", "30", ")", ")", ";", "smoke", "test", "driver", "verify", "(", "kafka", ",", "all", "data", ",", "max", "records", "per", "key", ")", ";", "}", "break", ";", "case", "\"", "process", "\"", ":", "/", "/", "this", "starts", "the", "stream", "processing", "app", "new", "smoke", "test", "client", "(", "uuid", "random", "u", "u", "i", "d", "(", ")", "to", "string", "(", ")", ")", "start", "(", "streams", "properties", ")", ";", "break", ";", "default", ":", "system", "out", "println", "(", "\"", "unknown", "command", ":", "\"", "+", "command", ")", ";", "}", "}" ]
[ "returns", "false", "if", "either", "array", "is", "unordered" ]
[ "public", "boolean", "equals", "(", "object", "object", ")", "{", "if", "(", "object", "=", "=", "this", ")", "return", "true", ";", "if", "(", "!", "ordered", ")", "return", "false", ";", "if", "(", "!", "(", "object", "instanceof", "float", "array", ")", ")", "return", "false", ";", "float", "array", "array", "=", "(", "float", "array", ")", "object", ";", "if", "(", "!", "array", "ordered", ")", "return", "false", ";", "int", "n", "=", "size", ";", "if", "(", "n", "!", "=", "array", "size", ")", "return", "false", ";", "float", "[", "]", "items", "1", "=", "this", "items", ",", "items", "2", "=", "array", "items", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "n", ";", "i", "+", "+", ")", "if", "(", "items", "1", "[", "i", "]", "!", "=", "items", "2", "[", "i", "]", ")", "return", "false", ";", "return", "true", ";", "}" ]
[ "read", "{", "@", "code", "configuration", "model", "}", ",", "registering", "bean", "definitions", "with", "the", "registry", "based", "on", "its", "contents" ]
[ "public", "void", "load", "bean", "definitions", "(", "set", "<", "configuration", "class", ">", "configuration", "model", ")", "{", "tracked", "condition", "evaluator", "tracked", "condition", "evaluator", "=", "new", "tracked", "condition", "evaluator", "(", ")", ";", "for", "(", "configuration", "class", "config", "class", ":", "configuration", "model", ")", "{", "load", "bean", "definitions", "for", "configuration", "class", "(", "config", "class", ",", "tracked", "condition", "evaluator", ")", ";", "}", "}" ]