docstring_tokens
list
code_tokens
list
[ "create", "a", "new", "{", "@", "code", "data", "buffer", "}", "whose", "contents", "is", "a", "shared", ",", "retained", "subsequence", "of", "this", "data", "buffer", "'", "s", "content", "data", "between", "this", "data", "buffer", "and", "the", "returned", "buffer", "is", "shared", ";", "though", "changes", "in", "the", "returned", "buffer", "'", "s", "position", "will", "not", "be", "reflected", "in", "the", "reading", "nor", "writing", "position", "of", "this", "data", "buffer", "note", "that", "unlike", "{", "@", "link", "#", "slice", "(", "int", ",", "int", ")", "}", ",", "this", "method", "will", "call", "{", "@", "link", "data", "buffer", "utils", "#", "retain", "(", "data", "buffer", ")", "}", "(", "or", "equivalent", ")", "on", "the", "resulting", "slice" ]
[ "default", "data", "buffer", "retained", "slice", "(", "int", "index", ",", "int", "length", ")", "{", "return", "data", "buffer", "utils", "retain", "(", "slice", "(", "index", ",", "length", ")", ")", ";", "}" ]
[ "@", "serial", "data", "number", "of", "distinct", "keys", ",", "and", "then", "for", "each", "distinct", "key", ":", "the", "key", ",", "the", "number", "of", "values", "for", "that", "key", ",", "and", "the", "key", "'", "s", "values" ]
[ "private", "void", "write", "object", "(", "object", "output", "stream", "stream", ")", "throws", "i", "o", "exception", "{", "stream", "default", "write", "object", "(", ")", ";", "serialization", "write", "multimap", "(", "this", ",", "stream", ")", ";", "}" ]
[ "add", "a", "new", "job" ]
[ "synchronized", "public", "string", "add", "job", "(", "job", "a", "job", ")", "{", "return", "add", "job", "(", "(", "controlled", "job", ")", "a", "job", ")", ";", "}" ]
[ "called", "right", "after", "the", "process", "-", "engine", "has", "been", "closed" ]
[ "void", "on", "process", "engine", "closed", "(", "process", "engine", "process", "engine", ")", ";" ]
[ "create", "a", "{", "@", "link", "mock", "http", "servlet", "request", "builder", "}", "for", "a", "post", "request" ]
[ "public", "static", "mock", "http", "servlet", "request", "builder", "post", "(", "string", "url", "template", ",", "object", "uri", "vars", ")", "{", "return", "new", "mock", "http", "servlet", "request", "builder", "(", "http", "method", "post", ",", "url", "template", ",", "uri", "vars", ")", ";", "}" ]
[ "{", "@", "inherit", "doc", "}", "the", "default", "implementation", "does", "nothing" ]
[ "@", "override", "public", "void", "exit", "like", "pattern", "(", "sql", "base", "parser", "like", "pattern", "context", "ctx", ")", "{", "}" ]
[ "set", "the", "user", "-", "defined", "bounding", "query", "to", "use", "with", "a", "user", "-", "defined", "query", "this", "must", "include", "the", "substring", "\"", "$", "conditions", "\"", "(", "data", "driven", "d", "b", "input", "format", "substitute", "token", ")", "inside", "the", "where", "clause", ",", "so", "that", "data", "driven", "d", "b", "input", "format", "knows", "where", "to", "insert", "split", "clauses", "e", "g", ",", "\"", "select", "foo", "from", "mytable", "where", "$", "conditions", "\"", "this", "will", "be", "expanded", "to", "something", "like", ":", "select", "foo", "from", "mytable", "where", "(", "id", "&", "gt", ";", "100", ")", "and", "(", "id", "&", "lt", ";", "250", ")", "inside", "each", "split" ]
[ "public", "static", "void", "set", "bounding", "query", "(", "configuration", "conf", ",", "string", "query", ")", "{", "if", "(", "null", "!", "=", "query", ")", "{", "/", "/", "if", "the", "user", "'", "s", "settng", "a", "query", ",", "warn", "if", "they", "don", "'", "t", "allow", "conditions", "if", "(", "query", "index", "of", "(", "substitute", "token", ")", "=", "=", "-", "1", ")", "{", "log", "warn", "(", "\"", "could", "not", "find", "\"", "+", "substitute", "token", "+", "\"", "token", "in", "query", ":", "\"", "+", "query", "+", "\"", ";", "splits", "may", "not", "partition", "data", "\"", ")", ";", "}", "}", "conf", "set", "(", "d", "b", "configuration", "input", "bounding", "query", ",", "query", ")", ";", "}" ]
[ "builds", "directory", "into", "which", "a", "specific", "job", "checkpoints", ",", "meaning", "the", "directory", "inside", "which", "it", "creates", "the", "checkpoint", "-", "specific", "subdirectories", "this", "method", "only", "succeeds", "if", "a", "base", "checkpoint", "directory", "has", "been", "set", ";", "otherwise", "the", "method", "fails", "with", "an", "exception" ]
[ "protected", "static", "path", "get", "checkpoint", "directory", "for", "job", "(", "path", "base", "checkpoint", "path", ",", "job", "i", "d", "job", "id", ")", "{", "return", "new", "path", "(", "base", "checkpoint", "path", ",", "job", "id", "to", "string", "(", ")", ")", ";", "}" ]
[ "get", "name", "boolean" ]
[ "public", "boolean", "get", "name", "boolean", "(", ")", "{", "return", "name", "boolean", ";", "}" ]
[ "applies", "the", "given", "visitor", "to", "all", "method", "annotations" ]
[ "public", "void", "annotations", "accept", "(", "clazz", "clazz", ",", "method", "method", ",", "annotation", "visitor", "annotation", "visitor", ")", "{", "for", "(", "int", "index", "=", "0", ";", "index", "<", "u", "2annotations", "count", ";", "index", "+", "+", ")", "{", "/", "/", "we", "don", "'", "t", "need", "double", "dispatching", "here", ",", "since", "there", "is", "only", "one", "/", "/", "type", "of", "annotation", "annotation", "visitor", "visit", "annotation", "(", "clazz", ",", "method", ",", "annotations", "[", "index", "]", ")", ";", "}", "}" ]
[ "wkt", "shape", "name" ]
[ "public", "string", "wkt", "name", "(", ")", "{", "return", "this", "shapename", ";", "}" ]
[ "{", "@", "inherit", "doc", "}" ]
[ "public", "string", "insn", "arg", "string", "(", "dalv", "insn", "insn", ")", "{", "register", "spec", "list", "regs", "=", "insn", "get", "registers", "(", ")", ";", "cst", "literal", "bits", "value", "=", "(", "cst", "literal", "bits", ")", "(", "(", "cst", "insn", ")", "insn", ")", "get", "constant", "(", ")", ";", "return", "regs", "get", "(", "0", ")", "reg", "string", "(", ")", "+", "\"", ",", "\"", "+", "literal", "bits", "string", "(", "value", ")", ";", "}" ]
[ "continues", "loading", "the", "media", "period", "at", "the", "given", "renderer", "position", "should", "only", "be", "called", "if", "this", "is", "the", "loading", "media", "period" ]
[ "public", "void", "continue", "loading", "(", "long", "renderer", "position", "us", ")", "{", "assertions", "check", "state", "(", "is", "loading", "media", "period", "(", ")", ")", ";", "long", "loading", "period", "position", "us", "=", "to", "period", "time", "(", "renderer", "position", "us", ")", ";", "media", "period", "continue", "loading", "(", "loading", "period", "position", "us", ")", ";", "}" ]
[ "tests", "that", "we", "don", "'", "t", "try", "to", "be", "smart", "about", "<", "code", ">", "null", "<", "code", ">", "key", "and", "namespace", "they", "should", "be", "treated", "explicitly" ]
[ "public", "void", "test", "null", "pointer", "exception", "on", "null", "serialized", "key", "and", "namepsace", "(", ")", "throws", "exception", "{", "new", "kv", "state", "internal", "request", "(", "new", "kv", "state", "i", "d", "(", ")", ",", "null", ")", ";", "}" ]
[ "guaranteed", "to", "throw", "an", "exception", "and", "leave", "the", "{", "@", "code", "range", "map", "}", "unmodified" ]
[ "public", "void", "clear", "(", ")", "{", "throw", "new", "unsupported", "operation", "exception", "(", ")", ";", "}" ]
[ "if", "the", "kafka", "broker", "(", "s", ")", "specified", "in", "the", "connection", "string", "are", "not", "available", ",", "the", "kafka", "consumer", "library", "will", "attempt", "to", "reconnect", "indefinitely", "the", "kafka", "consumer", "will", "not", "throw", "an", "exception", "and", "does", "not", "expose", "the", "status", "of", "its", "connection", "to", "the", "kafka", "broker", "(", "s", ")", "in", "its", "api", "an", "admin", "client", "api", "instance", "has", "been", "added", "to", "the", "connector", "to", "validate", "that", "connection", "with", "kafka", "is", "available", "in", "every", "health", "check", "this", "admin", "client", "reuses", "consumer", "'", "s", "properties", "to", "connect", "to", "the", "cluster", ",", "and", "request", "a", "cluster", "description", "to", "validate", "communication", "with", "kafka" ]
[ "@", "test", "void", "reconnects", "indefinitely", "and", "reports", "unhealthy", "when", "kafka", "unavailable", "(", ")", "throws", "exception", "{", "kafka", "collector", "builder", "builder", "=", "builder", "(", "\"", "fail", "invalid", "bootstrap", "servers", "\"", ")", "bootstrap", "servers", "(", "\"", "localhost", ":", "\"", "+", "9092", ")", ";", "try", "(", "kafka", "collector", "collector", "=", "builder", "build", "(", ")", ")", "{", "collector", "start", "(", ")", ";", "thread", "sleep", "(", "time", "unit", "seconds", "to", "millis", "(", "1", ")", ")", ";", "assert", "that", "(", "collector", "check", "(", ")", "error", "(", ")", ")", "is", "instance", "of", "(", "timeout", "exception", "class", ")", ";", "}", "}" ]
[ "removes", "and", "returns", "the", "object", "with", "the", "lowest", "priority", "number", "in", "the", "queue", "if", "more", "than", "one", "object", "has", "the", "same", "priority", ",", "then", "the", "object", "that", "was", "added", "to", "the", "queue", "first", "is", "considered", "to", "have", "the", "lower", "priority", "value", "null", "is", "returned", "if", "the", "queue", "is", "empty" ]
[ "public", "t", "remove", "first", "(", ")", "{", "if", "(", "tree", "is", "empty", "(", ")", ")", "{", "return", "null", ";", "}", "size", "-", "-", ";", "integer", "key", "=", "tree", "first", "key", "(", ")", ";", "linked", "list", "<", "t", ">", "list", "=", "tree", "get", "(", "key", ")", ";", "if", "(", "list", "size", "(", ")", "=", "=", "1", ")", "{", "tree", "remove", "(", "key", ")", ";", "}", "return", "list", "remove", "first", "(", ")", ";", "}" ]
[ "return", "the", "{", "@", "link", "throwable", "}", "if", "{", "@", "link", "#", "is", "success", "(", ")", "}", "returns", "{", "@", "code", "false", "}", "and", "so", "the", "completion", "failed" ]
[ "public", "final", "throwable", "cause", "(", ")", "{", "return", "cause", ";", "}" ]
[ "free", "the", "memory", "not", "used" ]
[ "public", "void", "free", "current", "(", ")", "{", "internal", "pool", "clean", "cache", "(", ")", ";", "}" ]
[ "set", "the", "jdbc", "password", "to", "use", "for", "connecting", "through", "the", "driver" ]
[ "public", "void", "set", "password", "(", "@", "nullable", "string", "password", ")", "{", "this", "password", "=", "password", ";", "}" ]
[ "creates", "a", "composite", "key", "for", "storing", "{", "@", "link", "flow", "run", "document", "}" ]
[ "public", "static", "string", "construct", "flow", "run", "doc", "id", "(", "timeline", "collector", "context", "collector", "context", ")", "{", "return", "string", "format", "(", "\"", "%", "s", "!", "%", "s", "!", "%", "s", "!", "%", "s", "\"", ",", "collector", "context", "get", "cluster", "id", "(", ")", ",", "collector", "context", "get", "user", "id", "(", ")", ",", "collector", "context", "get", "flow", "name", "(", ")", ",", "collector", "context", "get", "flow", "run", "id", "(", ")", ")", ";", "}" ]
[ "handle", "request", "internal", "model", "and", "view" ]
[ "public", "model", "and", "view", "handle", "get", "request", "(", "final", "http", "servlet", "request", "request", ",", "final", "http", "servlet", "response", "response", ")", "{", "val", "model", "=", "get", "approval", "model", "(", "string", "utils", "empty", ")", ";", "return", "new", "model", "and", "view", "(", "o", "auth", "2", "0", "constants", "device", "code", "approval", "view", ",", "model", ")", ";", "}" ]
[ "returns", "true", "if", "the", "specified", "<", "code", ">", "service", "interface", "<", "code", ">", "is", "a", "valid", "service", "that", "exists", "in", "this", "service", "manager" ]
[ "public", "boolean", "is", "service", "(", "class", "<", "?", ">", "service", "interface", ")", "{", "for", "(", "class", "<", "?", ">", "service", "class", ":", "services", "by", "interface", "key", "set", "(", ")", ")", "{", "if", "(", "service", "class", "equals", "(", "service", "interface", ")", ")", "{", "return", "true", ";", "}", "}", "return", "false", ";", "}" ]
[ "computes", "the", "set", "of", "backward", "extension", "items", ",", "i", "e", ",", "any", "items", "that", "could", "fill", "empty", "spaces", "in", "the", "projected", "sequence", "without", "changing", "the", "support", "for", "example", ",", "if", "you", "create", "a", "{", "@", "link", "projected", "database", "}", "with", "the", "prefix", "a", "c", ",", "and", "all", "of", "the", "resulting", "sequences", "happen", "to", "have", "a", "b", "in", "the", "second", "position", "(", "i", "e", "position", "1", ")", ",", "the", "returned", "set", "would", "consist", "of", "the", "{", "@", "link", "frequent", "sequence", "item", "}", "with", "{", "@", "link", "sequence", "item", "(", "b", ",", "1", ")", "}" ]
[ "public", "set", "<", "frequent", "sequence", "item", ">", "get", "backward", "extension", "items", "(", ")", "{", "set", "<", "frequent", "sequence", "item", ">", "backward", "extension", "items", "=", "new", "hash", "set", "<", "frequent", "sequence", "item", ">", "(", ")", ";", "if", "(", "projected", "info", "size", "(", ")", "=", "=", "0", ")", "{", "return", "backward", "extension", "items", ";", "}", "/", "/", "record", "what", "the", "first", "sequence", "has", "at", "each", "ditted", "position", "map", "<", "integer", ",", "string", ">", "positions", "to", "symbols", "=", "new", "hash", "map", "<", "integer", ",", "string", ">", "(", ")", ";", "int", "ditted", "position", "=", "0", ";", "list", "<", "sequence", ">", "sequences", "=", "database", "get", "sequences", "(", ")", ";", "sequence", "first", "sequence", "=", "sequences", "get", "(", "projected", "info", "get", "(", "0", ")", "get", "sequence", "index", "(", ")", ")", ";", "for", "(", "sequence", "item", "current", "item", ":", "prefix", "sequence", ")", "{", "int", "fixed", "position", "=", "current", "item", "get", "index", "(", ")", ";", "while", "(", "ditted", "position", "<", "fixed", "position", ")", "{", "string", "symbol", "=", "first", "sequence", "get", "sequence", "as", "string", "(", ")", "substring", "(", "ditted", "position", ",", "ditted", "position", "+", "1", ")", ";", "/", "/", "system", "out", "println", "(", "\"", "adding", "\"", "+", "symbol", "+", "\"", "at", "position", "\"", "+", "ditted", "position", ")", ";", "positions", "to", "symbols", "put", "(", "new", "integer", "(", "ditted", "position", ")", ",", "symbol", ")", ";", "ditted", "position", "+", "+", ";", "}", "ditted", "position", "+", "+", ";", "/", "/", "advance", "past", "fixed", "position", "}", "/", "/", "if", "all", "of", "the", "preceeding", "positions", "are", "filled", ",", "there", "can", "'", "t", "be", "any", "backward", "/", "/", "extension", "items", "if", "(", "positions", "to", "symbols", "is", "empty", "(", ")", ")", "{", "return", "backward", "extension", "items", ";", "}", "/", "/", "check", "the", "other", "projected", "sequences", "for", "consistency", "with", "the", "first", "sequence", "/", "/", "if", "there", "is", "an", "inconsistency", ",", "that", "position", "can", "'", "t", "be", "a", "backward", "extension", "item", "int", "num", "sequences", "=", "projected", "info", "size", "(", ")", ";", "for", "(", "int", "i", "=", "1", ";", "i", "<", "num", "sequences", ";", "+", "+", "i", ")", "{", "set", "<", "integer", ">", "positions", "to", "remove", "=", "new", "hash", "set", "<", "integer", ">", "(", ")", ";", "for", "(", "entry", "<", "integer", ",", "string", ">", "entry", ":", "positions", "to", "symbols", "entry", "set", "(", ")", ")", "{", "integer", "key", "=", "entry", "get", "key", "(", ")", ";", "string", "stored", "value", "=", "entry", "get", "value", "(", ")", ";", "sequence", "test", "sequence", "=", "sequences", "get", "(", "projected", "info", "get", "(", "i", ")", "get", "sequence", "index", "(", ")", ")", ";", "string", "test", "value", "=", "test", "sequence", "get", "sequence", "as", "string", "(", ")", "substring", "(", "key", ",", "key", "+", "1", ")", ";", "if", "(", "!", "stored", "value", "equals", "(", "test", "value", ")", ")", "{", "positions", "to", "remove", "add", "(", "key", ")", ";", "}", "}", "for", "(", "integer", "position", ":", "positions", "to", "remove", ")", "{", "positions", "to", "symbols", "remove", "(", "position", ")", ";", "}", "/", "/", "exit", "early", "if", "we", "find", "that", "there", "are", "conflicting", "choices", "for", "all", "ditted", "positions", "if", "(", "positions", "to", "symbols", "is", "empty", "(", ")", ")", "{", "return", "backward", "extension", "items", ";", "}", "}", "/", "/", "return", "the", "set", "frequent", "items", "corresponding", "to", "all", "positions", "which", "are", "not", "specified", "/", "/", "in", "the", "prefix", "but", "which", "nonetheless", "have", "the", "same", "value", "for", "all", "projected", "sequences", "for", "(", "entry", "<", "integer", ",", "string", ">", "entry", ":", "positions", "to", "symbols", "entry", "set", "(", ")", ")", "{", "int", "position", "=", "entry", "get", "key", "(", ")", ";", "string", "symbol", "=", "entry", "get", "value", "(", ")", ";", "sequence", "item", "item", "=", "new", "sequence", "item", "(", "symbol", ",", "position", ")", ";", "frequent", "sequence", "item", "f", "item", "=", "new", "frequent", "sequence", "item", "(", "support", ",", "item", ")", ";", "backward", "extension", "items", "add", "(", "f", "item", ")", ";", "}", "return", "backward", "extension", "items", ";", "}" ]
[ "delta", "iteration", "meta", "operator", "cannot", "have", "broadcast", "inputs" ]
[ "public", "map", "<", "string", ",", "operator", "<", "?", ">", ">", "get", "broadcast", "inputs", "(", ")", "{", "return", "collections", "empty", "map", "(", ")", ";", "}" ]
[ "returns", "the", "ascii", "characters", "up", "to", "but", "not", "including", "the", "next", "\"", "\\", "r", "\\", "n", "\"", ",", "or", "\"", "\\", "n", "\"" ]
[ "public", "static", "string", "read", "ascii", "line", "(", "input", "stream", "in", ")", "throws", "i", "o", "exception", "{", "/", "/", "todo", ":", "support", "utf", "-", "8", "here", "instead", "string", "builder", "result", "=", "new", "string", "builder", "(", "80", ")", ";", "while", "(", "true", ")", "{", "int", "c", "=", "in", "read", "(", ")", ";", "if", "(", "c", "=", "=", "-", "1", ")", "{", "throw", "new", "e", "o", "f", "exception", "(", ")", ";", "}", "else", "if", "(", "c", "=", "=", "'", "\\", "n", "'", ")", "{", "break", ";", "}", "result", "append", "(", "(", "char", ")", "c", ")", ";", "}", "int", "length", "=", "result", "length", "(", ")", ";", "if", "(", "length", ">", "0", "&", "&", "result", "char", "at", "(", "length", "-", "1", ")", "=", "=", "'", "\\", "r", "'", ")", "{", "result", "set", "length", "(", "length", "-", "1", ")", ";", "}", "return", "result", "to", "string", "(", ")", ";", "}" ]
[ "specifies", "a", "{", "@", "link", "key", "selector", "}", "for", "elements", "from", "the", "first", "input" ]
[ "public", "<", "key", ">", "where", "<", "key", ">", "where", "(", "key", "selector", "<", "t1", ",", "key", ">", "key", "selector", ")", "{", "preconditions", "check", "not", "null", "(", "key", "selector", ")", ";", "final", "type", "information", "<", "key", ">", "key", "type", "=", "type", "extractor", "get", "key", "selector", "types", "(", "key", "selector", ",", "input", "1", "get", "type", "(", ")", ")", ";", "return", "where", "(", "key", "selector", ",", "key", "type", ")", ";", "}" ]
[ "set", "the", "dependency", "check", "code" ]
[ "public", "void", "set", "dependency", "check", "(", "int", "dependency", "check", ")", "{", "this", "dependency", "check", "=", "dependency", "check", ";", "}" ]
[ "gets", "db", "type" ]
[ "public", "string", "get", "db", "type", "(", ")", "{", "return", "db", "type", ";", "}" ]
[ "get", "the", "inner", "class", "'", "s", "io", "statistics", "this", "is", "needed", "to", "avoid", "findbugs", "warnings", "about", "ambiguity" ]
[ "private", "i", "o", "statistics", "store", "local", "i", "o", "statistics", "(", ")", "{", "return", "input", "stream", "statistics", "super", "get", "i", "o", "statistics", "(", ")", ";", "}" ]
[ "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", "\"", ")", ";", "}" ]
[ "remove", "all", "function", "signature", "parameters", "from", "the", "data", "base", "that", "have", "the", "indicated", "parent" ]
[ "private", "void", "remove", "parameters", "(", "long", "parent", "i", "d", ")", "throws", "i", "o", "exception", "{", "field", "[", "]", "param", "i", "ds", "=", "param", "adapter", "get", "parameter", "ids", "in", "function", "def", "(", "parent", "i", "d", ")", ";", "for", "(", "field", "param", "i", "d", ":", "param", "i", "ds", ")", "{", "delete", "data", "type", "record", "(", "param", "i", "d", "get", "long", "value", "(", ")", ")", ";", "}", "}" ]
[ "releases", "the", "locks", "on", "the", "specified", "{", "@", "link", "job", "graph", "}", "releasing", "the", "locks", "allows", "that", "another", "instance", "can", "delete", "the", "job", "from", "the", "{", "@", "link", "job", "graph", "store", "}" ]
[ "void", "release", "job", "graph", "(", "job", "i", "d", "job", "id", ")", "throws", "exception", ";" ]
[ "returns", "a", "new", "ordering", "on", "{", "@", "code", "f", "}", "which", "orders", "elements", "by", "first", "applying", "a", "function", "to", "them", ",", "then", "comparing", "those", "results", "using", "{", "@", "code", "this", "}", "for", "example", ",", "to", "compare", "objects", "by", "their", "string", "forms", ",", "in", "a", "case", "-", "insensitive", "manner", ",", "use", ":", "{", "@", "code", "ordering", "from", "(", "string", "case", "insensitive", "order", ")", "on", "result", "of", "(", "functions", "to", "string", "function", "(", ")", ")", "}", "<", "b", ">", "java", "8", "users", ":", "<", "b", ">", "use", "{", "@", "code", "comparator", "comparing", "(", "function", ",", "this", "comparator", ")", "}", "instead", "(", "you", "can", "omit", "the", "comparator", "if", "it", "is", "the", "natural", "order", ")" ]
[ "public", "<", "f", ">", "ordering", "<", "f", ">", "on", "result", "of", "(", "function", "<", "f", ",", "?", "extends", "t", ">", "function", ")", "{", "return", "new", "by", "function", "ordering", "<", ">", "(", "function", ",", "this", ")", ";", "}" ]
[ "creates", "ssl", "configuration", "for", "a", "server" ]
[ "public", "static", "configuration", "create", "server", "s", "s", "l", "config", "(", "string", "server", "k", "s", ",", "string", "password", ",", "string", "key", "password", ",", "string", "trust", "k", "s", ",", "string", "trust", "password", ")", "throws", "i", "o", "exception", "{", "return", "create", "s", "s", "l", "config", "(", "s", "s", "l", "factory", "mode", "server", ",", "server", "k", "s", ",", "password", ",", "key", "password", ",", "trust", "k", "s", ",", "trust", "password", ",", "\"", "\"", ")", ";", "}" ]
[ "finds", "pets", "by", "status", "multiple", "status", "values", "can", "be", "provided", "with", "comma", "separated", "strings", "<", "b", ">", "200", "<", "b", ">", "-", "successful", "operation", "<", "b", ">", "400", "<", "b", ">", "-", "invalid", "status", "value" ]
[ "public", "list", "<", "pet", ">", "find", "pets", "by", "status", "(", "list", "<", "string", ">", "status", ",", "map", "<", "string", ",", "object", ">", "params", ")", "throws", "i", "o", "exception", "{", "http", "response", "response", "=", "find", "pets", "by", "status", "for", "http", "response", "(", "status", ",", "params", ")", ";", "type", "reference", "<", "list", "<", "pet", ">", ">", "type", "ref", "=", "new", "type", "reference", "<", "list", "<", "pet", ">", ">", "(", ")", "{", "}", ";", "return", "api", "client", "get", "object", "mapper", "(", ")", "read", "value", "(", "response", "get", "content", "(", ")", ",", "type", "ref", ")", ";", "}" ]
[ "registers", "an", "{", "@", "link", "event", "handler", "}", "in", "this", "reporter" ]
[ "public", "void", "add", "handler", "(", "event", "handler", "handler", ")", "{", "check", "not", "null", "(", "handler", ")", ";", "event", "handlers", "add", "(", "handler", ")", ";", "}" ]
[ "unregister", "the", "service" ]
[ "public", "void", "unregister", "service", "(", "string", "path", ")", "throws", "i", "o", "exception", ",", "interrupted", "exception", "{", "try", "{", "zk", "client", "delete", "(", "path", ",", "-", "1", ")", ";", "}", "catch", "(", "keeper", "exception", "ke", ")", "{", "throw", "new", "i", "o", "exception", "(", "ke", ")", ";", "}", "}" ]
[ "recalculates", "vertices", "array", "if", "it", "grew", "out", "of", "sync", "with", "the", "properties", "(", "position", ",", ")" ]
[ "protected", "void", "update", "(", ")", "{", "if", "(", "!", "updated", ")", "{", "reset", "vertices", "(", ")", ";", "transform", "vertices", "(", ")", ";", "}", "}" ]
[ "asserts", "that", "the", "collection", "under", "test", "contains", "exactly", "the", "elements", "it", "was", "initialized", "with", "plus", "the", "given", "elements", ",", "according", "to", "{", "@", "link", "#", "expect", "contents", "(", "java", "util", "collection", ")", "}", "in", "other", "words", ",", "for", "the", "default", "{", "@", "code", "expect", "contents", "(", ")", "}", "implementation", ",", "the", "number", "of", "occurrences", "of", "each", "given", "element", "has", "increased", "by", "one", "since", "the", "test", "collection", "was", "created", ",", "and", "the", "number", "of", "occurrences", "of", "all", "other", "elements", "has", "not", "changed", "note", ":", "this", "means", "that", "a", "test", "like", "the", "following", "will", "fail", "if", "{", "@", "code", "collection", "}", "is", "a", "{", "@", "code", "set", "}", ":", "collection", "add", "(", "existing", "element", ")", ";", "expect", "added", "(", "existing", "element", ")", ";", "in", "this", "case", ",", "{", "@", "code", "collection", "}", "was", "not", "modified", "as", "a", "result", "of", "the", "{", "@", "code", "add", "(", ")", "}", "call", ",", "and", "the", "test", "will", "fail", "because", "the", "number", "of", "occurrences", "of", "{", "@", "code", "existing", "element", "}", "is", "unchanged" ]
[ "protected", "final", "void", "expect", "added", "(", "e", "elements", ")", "{", "list", "<", "e", ">", "expected", "=", "helpers", "copy", "to", "list", "(", "get", "sample", "elements", "(", ")", ")", ";", "expected", "add", "all", "(", "arrays", "as", "list", "(", "elements", ")", ")", ";", "expect", "contents", "(", "expected", ")", ";", "}" ]
[ "test", "creating", "encryption", "zone", "on", "the", "root", "path" ]
[ "public", "void", "test", "encryption", "zones", "on", "root", "path", "(", ")", "throws", "exception", "{", "final", "int", "len", "=", "8196", ";", "final", "path", "root", "dir", "=", "new", "path", "(", "\"", "/", "\"", ")", ";", "final", "path", "zone", "file", "=", "new", "path", "(", "root", "dir", ",", "\"", "file", "\"", ")", ";", "final", "path", "raw", "file", "=", "new", "path", "(", "\"", "/", "reserved", "/", "raw", "/", "file", "\"", ")", ";", "dfs", "admin", "create", "encryption", "zone", "(", "root", "dir", ",", "test", "key", ",", "no", "trash", ")", ";", "d", "f", "s", "test", "util", "create", "file", "(", "fs", ",", "zone", "file", ",", "len", ",", "(", "short", ")", "1", ",", "0x", "f", "e", "e", "d", ")", ";", "assert", "equals", "(", "\"", "file", "can", "be", "created", "on", "the", "root", "encryption", "zone", "\"", "+", "\"", "with", "correct", "length", "\"", ",", "len", ",", "fs", "get", "file", "status", "(", "zone", "file", ")", "get", "len", "(", ")", ")", ";", "assert", "equals", "(", "\"", "root", "dir", "is", "encrypted", "\"", ",", "true", ",", "fs", "get", "file", "status", "(", "root", "dir", ")", "is", "encrypted", "(", ")", ")", ";", "assert", "equals", "(", "\"", "file", "is", "encrypted", "\"", ",", "true", ",", "fs", "get", "file", "status", "(", "zone", "file", ")", "is", "encrypted", "(", ")", ")", ";", "d", "f", "s", "test", "util", "verify", "files", "not", "equal", "(", "fs", ",", "zone", "file", ",", "raw", "file", ",", "len", ")", ";", "}" ]
[ "get", "the", "owner", "of", "this", "fs", ":", "who", "created", "it", "?" ]
[ "public", "user", "group", "information", "get", "owner", "(", ")", "{", "return", "owner", ";", "}" ]
[ "return", "the", "attributes", "candidate", "for", "flash", "storage", "or", "an", "empty", "map" ]
[ "public", "map", "<", "string", ",", "?", ">", "get", "flash", "attributes", "(", ")", "{", "return", "this", "flash", "attributes", ";", "}" ]
[ "returns", "a", "new", "{", "@", "link", "sniffer", "builder", "}", "to", "help", "with", "{", "@", "link", "sniffer", "}", "creation" ]
[ "public", "static", "sniffer", "builder", "builder", "(", "rest", "client", "rest", "client", ")", "{", "return", "new", "sniffer", "builder", "(", "rest", "client", ")", ";", "}" ]
[ "set", "the", "tab", "title", "case", "according", "to", "settings", "(", "uppercase", "tabs", ")" ]
[ "private", "void", "set", "tab", "title", "(", "final", "j", "label", "tab", "label", ",", "final", "string", "title", ")", "{", "final", "boolean", "upper", "case", "tabs", "=", "config", "is", "upper", "case", "tabs", "(", ")", ";", "if", "(", "upper", "case", "tabs", ")", "{", "final", "string", "new", "title", "=", "title", "to", "upper", "case", "(", "locale", "english", ")", ";", "tab", "label", "set", "font", "(", "tab", "label", "get", "font", "(", ")", "derive", "font", "(", "font", "bold", ")", ")", ";", "tab", "label", "set", "text", "(", "new", "title", ")", ";", "}", "}" ]
[ "clamp", "the", "magnitude", "of", "value", "for", "abs", "min", "and", "abs", "max", "if", "the", "value", "is", "below", "the", "minimum", ",", "it", "will", "be", "clamped", "to", "zero", "if", "the", "value", "is", "above", "the", "maximum", ",", "it", "will", "be", "clamped", "to", "the", "maximum" ]
[ "private", "int", "clamp", "mag", "(", "int", "value", ",", "int", "abs", "min", ",", "int", "abs", "max", ")", "{", "final", "int", "abs", "value", "=", "math", "abs", "(", "value", ")", ";", "if", "(", "abs", "value", "<", "abs", "min", ")", "return", "0", ";", "if", "(", "abs", "value", ">", "abs", "max", ")", "return", "value", ">", "0", "?", "abs", "max", ":", "-", "abs", "max", ";", "return", "value", ";", "}" ]
[ "set", "the", "body", "from", "the", "given", "{", "@", "code", "publisher", "}", "shortcut", "for", "{", "@", "link", "#", "body", "(", "body", "inserter", ")", "}", "with", "a", "{", "@", "linkplain", "body", "inserters", "#", "from", "publisher", "publisher", "inserter", "}" ]
[ "<", "t", ",", "p", "extends", "publisher", "<", "t", ">", ">", "mono", "<", "server", "response", ">", "body", "(", "p", "publisher", ",", "class", "<", "t", ">", "element", "class", ")", ";" ]
[ "returns", "the", "type", "of", "the", "bundle", "for", "example", ",", "moveable", ",", "constant", ",", "or", "segment", "index" ]
[ "public", "byte", "get", "type", "(", ")", "{", "return", "type", ";", "}" ]
[ "build", "a", "new", "meter", "object" ]
[ "public", "meter", "build", "(", ")", "{", "/", "/", "sort", "the", "tags", "this", "meter", "id", "get", "tags", "(", ")", "sort", "(", "meter", "id", "tag", ":", ":", "compare", "to", ")", ";", "/", "/", "create", "or", "get", "the", "meter", "return", "create", "(", ")", ";", "}" ]
[ "returns", "the", "layout", "model", "index", "of", "the", "item", "that", "was", "just", "returned", "via", "{", "@", "link", "#", "next", "(", ")", "}" ]
[ "public", "big", "integer", "get", "index", "(", ")", "{", "return", "last", "index", ";", "}" ]
[ "accessor", "for", "the", "underlying", "uri", "of", "the", "apk" ]
[ "public", "uri", "as", "apk", "(", ")", "{", "return", "uri", "normalize", "(", ")", ";", "}" ]
[ "sets", "the", "{", "@", "link", "renderer", "video", "scaling", "mode", "}" ]
[ "void", "set", "video", "scaling", "mode", "(", "@", "renderer", "video", "scaling", "mode", "int", "video", "scaling", "mode", ")", ";" ]
[ "creates", "a", "project", "lock", "and", "attempts", "to", "lock", "it", "this", "handles", "the", "case", "where", "the", "project", "was", "previously", "locked" ]
[ "private", "project", "lock", "get", "project", "lock", "(", "project", "locator", "locator", ",", "boolean", "allow", "interactive", "force", ")", "{", "project", "lock", "lock", "=", "new", "project", "lock", "(", "locator", ")", ";", "if", "(", "lock", "lock", "(", ")", ")", "{", "return", "lock", ";", "}", "/", "/", "in", "headless", "mode", ",", "just", "spit", "out", "an", "error", "if", "(", "!", "allow", "interactive", "force", "|", "|", "system", "utilities", "is", "in", "headless", "mode", "(", ")", ")", "{", "return", "null", ";", "}", "string", "project", "str", "=", "\"", "project", ":", "\"", "+", "h", "t", "m", "l", "utilities", "escape", "h", "t", "m", "l", "(", "locator", "get", "location", "(", ")", ")", "+", "system", "get", "property", "(", "\"", "file", "separator", "\"", ")", "+", "h", "t", "m", "l", "utilities", "escape", "h", "t", "m", "l", "(", "locator", "get", "name", "(", ")", ")", ";", "string", "lock", "information", "=", "lock", "get", "existing", "lock", "file", "information", "(", ")", ";", "if", "(", "!", "lock", "can", "force", "lock", "(", ")", ")", "{", "msg", "show", "info", "(", "get", "class", "(", ")", ",", "null", ",", "\"", "project", "locked", "\"", ",", "\"", "<", "html", ">", "project", "is", "locked", "you", "have", "another", "instance", "of", "ghidra", "<", "br", ">", "\"", "+", "\"", "already", "running", "with", "this", "project", "open", "(", "locally", "or", "remotely", ")", "<", "br", ">", "<", "br", ">", "\"", "+", "project", "str", "+", "\"", "<", "br", ">", "<", "br", ">", "\"", "+", "\"", "lock", "information", ":", "\"", "+", "lock", "information", ")", ";", "return", "null", ";", "}", "int", "user", "choice", "=", "option", "dialog", "show", "option", "dialog", "(", "null", ",", "\"", "project", "locked", "-", "delete", "lock", "?", "\"", ",", "\"", "<", "html", ">", "project", "is", "locked", "you", "may", "have", "another", "instance", "of", "ghidra", "<", "br", ">", "\"", "+", "\"", "already", "running", "with", "this", "project", "opened", "(", "locally", "or", "remotely", ")", "<", "br", ">", "\"", "+", "project", "str", "+", "\"", "<", "br", ">", "<", "br", ">", "\"", "+", "\"", "if", "this", "is", "not", "the", "case", ",", "you", "can", "delete", "the", "lock", "file", ":", "<", "br", ">", "<", "b", ">", "\"", "+", "locator", "get", "project", "lock", "file", "(", ")", "get", "absolute", "path", "(", ")", "+", "\"", "<", "/", "b", ">", "<", "br", ">", "<", "br", ">", "\"", "+", "\"", "lock", "information", ":", "\"", "+", "lock", "information", ",", "\"", "delete", "lock", "\"", ",", "option", "dialog", "question", "message", ")", ";", "if", "(", "user", "choice", "=", "=", "option", "dialog", "option", "one", ")", "{", "/", "/", "delete", "lock", "if", "(", "lock", "force", "lock", "(", ")", ")", "{", "return", "lock", ";", "}", "msg", "show", "error", "(", "this", ",", "null", ",", "\"", "error", "\"", ",", "\"", "attempt", "to", "force", "lock", "failed", "!", "\"", "+", "locator", ")", ";", "}", "return", "null", ";", "}" ]
[ "sets", "a", "new", "font", "for", "label" ]
[ "public", "void", "set", "font", "(", "font", "f", ")", "{", "super", "set", "font", "(", "f", ")", ";", "measure", "(", ")", ";", "repaint", "(", ")", ";", "}" ]
[ "size", "of", "rebase", "info" ]
[ "public", "int", "get", "rebase", "size", "(", ")", "{", "return", "rebase", "size", ";", "}" ]
[ "<", "code", ">", "optional", "string", "value", "=", "3", ";", "<", "code", ">" ]
[ "public", "boolean", "has", "value", "(", ")", "{", "return", "instance", "has", "value", "(", ")", ";", "}" ]
[ "calls", "this", "set", "up", "(", "null", ")" ]
[ "public", "void", "set", "up", "(", ")", "throws", "exception", "{", "this", "set", "up", "(", "null", ")", ";", "}" ]
[ "returns", "the", "range", "of", "y", "-", "values", "this", "chart", "can", "display" ]
[ "public", "float", "get", "y", "range", "(", ")", "{", "return", "m", "y", "axis", "m", "axis", "range", ";", "}" ]
[ "add", "a", "single", "{", "@", "link", "renderable", "}", "to", "the", "batch", "the", "{", "@", "link", "shader", "provider", "}", "will", "be", "used", "to", "fetch", "a", "suitable", "{", "@", "link", "shader", "}", "can", "only", "be", "called", "after", "a", "call", "to", "{", "@", "link", "#", "begin", "(", "camera", ")", "}", "and", "before", "a", "call", "to", "{", "@", "link", "#", "end", "(", ")", "}" ]
[ "public", "void", "render", "(", "final", "renderable", "renderable", ")", "{", "renderable", "shader", "=", "shader", "provider", "get", "shader", "(", "renderable", ")", ";", "renderables", "add", "(", "renderable", ")", ";", "}" ]
[ "test", "for", "the", "case", "when", "the", "scheduler", "minimum", "-", "allocation", "-", "mb", "=", "=", "0" ]
[ "public", "void", "test", "validate", "memory", "allocation", "invalid", "min", "mem", "(", ")", "{", "map", "<", "string", ",", "string", ">", "configs", "=", "new", "hash", "map", "(", ")", ";", "configs", "put", "(", "yarn", "configuration", "rm", "scheduler", "minimum", "allocation", "mb", ",", "\"", "0", "\"", ")", ";", "configuration", "config", "=", "capacity", "scheduler", "config", "generator", "for", "test", "create", "configuration", "(", "configs", ")", ";", "capacity", "scheduler", "config", "validator", "validate", "memory", "allocation", "(", "config", ")", ";", "fail", "(", "yarn", "configuration", "rm", "scheduler", "minimum", "allocation", "mb", "+", "\"", "should", "be", ">", "0", "\"", ")", ";", "}" ]
[ "reads", "the", "content", "of", "the", "given", "file", "and", "returns", "a", "matching", "map", "it", "assumes", "the", "file", "contains", "lines", "in", "the", "form", "key", ":", "value", "for", "each", "line", "it", "creates", "an", "entry", "in", "the", "map", "with", "the", "corresponding", "key", "and", "value" ]
[ "private", "static", "immutable", "map", "<", "string", ",", "string", ">", "get", "map", "from", "file", "(", "string", "file", ")", "{", "immutable", "map", "builder", "<", "string", ",", "string", ">", "map", "builder", "=", "immutable", "map", "builder", "(", ")", ";", "try", "(", "file", "input", "stream", "input", "stream", "=", "new", "file", "input", "stream", "(", "file", ")", ";", "input", "stream", "reader", "input", "stream", "reader", "=", "new", "input", "stream", "reader", "(", "input", "stream", ",", "utf", "8", ")", ";", "buffered", "reader", "reader", "=", "new", "buffered", "reader", "(", "input", "stream", "reader", ")", ")", "{", "for", "(", "string", "key", "to", "value", "line", "=", "reader", "read", "line", "(", ")", ";", "key", "to", "value", "line", "!", "=", "null", ";", "key", "to", "value", "line", "=", "reader", "read", "line", "(", ")", ")", "{", "string", "[", "]", "key", "and", "value", "=", "key", "to", "value", "line", "split", "(", "\"", ":", "\"", ")", ";", "if", "(", "key", "and", "value", "length", "=", "=", "2", ")", "{", "map", "builder", "put", "(", "key", "and", "value", "[", "0", "]", ",", "key", "and", "value", "[", "1", "]", ")", ";", "}", "}", "}", "catch", "(", "i", "o", "exception", "e", ")", "{", "logger", "log", "(", "level", "severe", ",", "\"", "error", "reading", "file", "\"", "+", "file", "+", "\"", ":", "\"", "+", "e", "get", "message", "(", ")", ")", ";", "}", "return", "map", "builder", "build", "(", ")", ";", "}" ]
[ "this", "member", "identifies", "the", "object", "file", "version", ",", "where", "\"", "ev", "none", "=", "=", "invalid", "version", "\"", "and", "\"", "ev", "current", "=", "=", "current", "version", "\"", "the", "value", "1", "signifies", "the", "original", "file", "format", ";", "extensions", "will", "create", "new", "versions", "with", "higher", "numbers", "the", "value", "of", "ev", "current", ",", "though", "given", "as", "1", "above", ",", "will", "change", "as", "necessary", "to", "reflect", "the", "current", "version", "number" ]
[ "public", "int", "e", "version", "(", ")", "{", "return", "e", "version", ";", "}" ]
[ "this", "is", "called", "from", "test", "setup", "to", "create", "the", "mock", "directory", "layout", "needed", "to", "create", "the", "configuration" ]
[ "public", "void", "setup", "mock", "client", "(", "mock", "tools", "config", "mock", "tools", "config", ")", "throws", "i", "o", "exception", "{", "list", "<", "string", ">", "workspace", "contents", "=", "get", "workspace", "contents", "(", "mock", "tools", "config", ")", ";", "setup", "mock", "client", "(", "mock", "tools", "config", ",", "workspace", "contents", ")", ";", "}" ]
[ "the", "routing", "values", "to", "control", "the", "shards", "that", "the", "search", "will", "be", "executed", "on" ]
[ "public", "count", "request", "routing", "(", "string", "routing", ")", "{", "this", "routing", "=", "routing", ";", "return", "this", ";", "}" ]
[ "cleanup", "expired", "state", "incrementally", "cleanup", "local", "state", "upon", "every", "state", "access", "this", "cleanup", "strategy", "checks", "a", "bunch", "of", "state", "keys", "for", "expiration", "and", "cleans", "up", "expired", "ones", "it", "keeps", "a", "lazy", "iterator", "through", "all", "keys", "with", "relaxed", "consistency", "if", "backend", "supports", "it", "this", "way", "all", "keys", "should", "be", "regularly", "checked", "and", "cleaned", "eventually", "over", "time", "if", "any", "state", "is", "constantly", "being", "accessed", "additionally", "to", "the", "incremental", "cleanup", "upon", "state", "access", ",", "it", "can", "also", "run", "per", "every", "record", "caution", ":", "if", "there", "are", "a", "lot", "of", "registered", "states", "using", "this", "option", ",", "they", "all", "will", "be", "iterated", "for", "every", "record", "to", "check", "if", "there", "is", "something", "to", "cleanup", "note", ":", "if", "no", "access", "happens", "to", "this", "state", "or", "no", "records", "are", "processed", "in", "case", "of", "{", "@", "code", "run", "cleanup", "for", "every", "record", "}", ",", "expired", "state", "will", "persist", "note", ":", "time", "spent", "for", "the", "incremental", "cleanup", "increases", "record", "processing", "latency", "note", ":", "at", "the", "moment", "incremental", "cleanup", "is", "implemented", "only", "for", "heap", "state", "backend", "setting", "it", "for", "rocks", "d", "b", "will", "have", "no", "effect", "note", ":", "if", "heap", "state", "backend", "is", "used", "with", "synchronous", "snapshotting", ",", "the", "global", "iterator", "keeps", "a", "copy", "of", "all", "keys", "while", "iterating", "because", "of", "its", "specific", "implementation", "which", "does", "not", "support", "concurrent", "modifications", "enabling", "of", "this", "feature", "will", "increase", "memory", "consumption", "then", "asynchronous", "snapshotting", "does", "not", "have", "this", "problem" ]
[ "public", "builder", "cleanup", "incrementally", "(", "@", "nonnegative", "int", "cleanup", "size", ",", "boolean", "run", "cleanup", "for", "every", "record", ")", "{", "strategies", "put", "(", "cleanup", "strategies", "strategies", "incremental", "cleanup", ",", "new", "incremental", "cleanup", "strategy", "(", "cleanup", "size", ",", "run", "cleanup", "for", "every", "record", ")", ")", ";", "return", "this", ";", "}" ]
[ "returns", "whether", "this", "{", "@", "link", "state", "table", "}", "is", "empty" ]
[ "public", "boolean", "is", "empty", "(", ")", "{", "return", "size", "(", ")", "=", "=", "0", ";", "}" ]
[ "creates", "a", "new", "blocking", "-", "style", "stub", "that", "supports", "unary", "and", "streaming", "output", "calls", "on", "the", "service" ]
[ "public", "static", "reflectable", "service", "blocking", "stub", "new", "blocking", "stub", "(", "io", "grpc", "channel", "channel", ")", "{", "io", "grpc", "stub", "abstract", "stub", "stub", "factory", "<", "reflectable", "service", "blocking", "stub", ">", "factory", "=", "new", "io", "grpc", "stub", "abstract", "stub", "stub", "factory", "<", "reflectable", "service", "blocking", "stub", ">", "(", ")", "{", "@", "java", "lang", "override", "public", "reflectable", "service", "blocking", "stub", "new", "stub", "(", "io", "grpc", "channel", "channel", ",", "io", "grpc", "call", "options", "call", "options", ")", "{", "return", "new", "reflectable", "service", "blocking", "stub", "(", "channel", ",", "call", "options", ")", ";", "}", "}", ";", "return", "reflectable", "service", "blocking", "stub", "new", "stub", "(", "factory", ",", "channel", ")", ";", "}" ]
[ "creates", "a", "new", "traverser", "for", "a", "directed", "acyclic", "graph", "that", "has", "at", "most", "one", "path", "from", "the", "start", "node", "(", "s", ")", "to", "any", "node", "reachable", "from", "the", "start", "node", "(", "s", ")", ",", "and", "has", "no", "paths", "from", "any", "start", "node", "to", "any", "other", "start", "node", ",", "such", "as", "a", "tree", "or", "forest", "{", "@", "code", "for", "tree", "(", ")", "}", "is", "especially", "useful", "(", "versus", "{", "@", "code", "for", "graph", "(", ")", "}", ")", "in", "cases", "where", "the", "data", "structure", "being", "traversed", "is", ",", "in", "addition", "to", "being", "a", "treeforest", ",", "also", "defined", "<", "a", "href", "=", "\"", "https", ":", "github", "comgoogleguavawiki", "graphs", "explained", "#", "non", "-", "recursiveness", "\"", ">", "recursively", "this", "is", "because", "the", "{", "@", "code", "for", "tree", "(", ")", "}", "-", "based", "implementations", "don", "'", "t", "keep", "track", "of", "visited", "nodes", ",", "and", "therefore", "don", "'", "t", "need", "to", "call", "`", "equals", "(", ")", "`", "or", "`", "hash", "code", "(", ")", "`", "on", "the", "node", "objects", ";", "this", "saves", "both", "time", "and", "space", "versus", "traversing", "the", "same", "graph", "using", "{", "@", "code", "for", "graph", "(", ")", "}", "providing", "a", "graph", "to", "be", "traversed", "for", "which", "there", "is", "more", "than", "one", "path", "from", "the", "start", "node", "(", "s", ")", "to", "any", "node", "may", "lead", "to", ":", "traversal", "not", "terminating", "(", "if", "the", "graph", "has", "cycles", ")", "nodes", "being", "visited", "multiple", "times", "(", "if", "multiple", "paths", "exist", "from", "any", "start", "node", "to", "any", "node", "reachable", "from", "any", "start", "node", ")", "<", "b", ">", "performance", "notes", "<", "b", ">", "traversals", "require", "o", "(", "n", ")", "time", "(", "where", "n", "is", "the", "number", "of", "nodes", "reachable", "from", "the", "start", "node", ")", "while", "traversing", ",", "the", "traverser", "will", "use", "o", "(", "h", ")", "space", "(", "where", "h", "is", "the", "number", "of", "nodes", "that", "have", "been", "seen", "but", "not", "yet", "visited", ",", "that", "is", ",", "the", "\"", "horizon", "\"", ")", "<", "b", ">", "examples", "<", "b", ">", "(", "all", "edges", "are", "directed", "facing", "downwards", ")", "the", "graph", "below", "would", "be", "valid", "input", "with", "start", "nodes", "of", "{", "@", "code", "a", ",", "f", ",", "c", "}", "however", ",", "if", "{", "@", "code", "b", "}", "were", "also", "a", "start", "node", ",", "then", "there", "would", "be", "multiple", "paths", "to", "reach", "{", "@", "code", "e", "}", "and", "{", "@", "code", "h", "}", "{", "@", "code", "a", "b", "c", "\\", "\\", "|", "\\", "\\", "|", "d", "e", "f", "g", "|", "|", "h", "}", "the", "graph", "below", "would", "be", "a", "valid", "input", "with", "start", "nodes", "of", "{", "@", "code", "a", ",", "f", "}", "however", ",", "if", "{", "@", "code", "b", "}", "were", "a", "start", "node", ",", "there", "would", "be", "multiple", "paths", "to", "{", "@", "code", "f", "}", "{", "@", "code", "a", "b", "\\", "\\", "\\", "\\", "c", "d", "e", "\\", "\\", "f", "}", "<", "b", ">", "note", "on", "binary", "trees", "<", "b", ">", "this", "method", "can", "be", "used", "to", "traverse", "over", "a", "binary", "tree", "given", "methods", "{", "@", "code", "left", "child", "(", "node", ")", "}", "and", "{", "@", "code", "right", "child", "(", "node", ")", "}", ",", "this", "method", "can", "be", "called", "as", "{", "@", "code", "traverser", "for", "tree", "(", "node", "-", ">", "immutable", "list", "of", "(", "left", "child", "(", "node", ")", ",", "right", "child", "(", "node", ")", ")", ")", ";", "}" ]
[ "public", "static", "<", "n", ">", "traverser", "<", "n", ">", "for", "tree", "(", "final", "successors", "function", "<", "n", ">", "tree", ")", "{", "if", "(", "tree", "instanceof", "base", "graph", ")", "{", "check", "argument", "(", "(", "(", "base", "graph", "<", "?", ">", ")", "tree", ")", "is", "directed", "(", ")", ",", "\"", "undirected", "graphs", "can", "never", "be", "trees", "\"", ")", ";", "}", "if", "(", "tree", "instanceof", "network", ")", "{", "check", "argument", "(", "(", "(", "network", "<", "?", ",", "?", ">", ")", "tree", ")", "is", "directed", "(", ")", ",", "\"", "undirected", "networks", "can", "never", "be", "trees", "\"", ")", ";", "}", "return", "new", "traverser", "<", "n", ">", "(", "tree", ")", "{", "@", "override", "traversal", "<", "n", ">", "new", "traversal", "(", ")", "{", "return", "traversal", "in", "tree", "(", "tree", ")", ";", "}", "}", ";", "}" ]
[ "sets", "the", "list", "of", "action", "masks", "for", "the", "actions", "that", "should", "be", "returned" ]
[ "public", "final", "request", "set", "actions", "(", "string", "actions", ")", "{", "this", "actions", "=", "actions", ";", "return", "(", "request", ")", "this", ";", "}" ]
[ "test", "the", "property", "'", "my", "boolean", "'" ]
[ "public", "void", "my", "boolean", "test", "(", ")", "{", "/", "/", "todo", ":", "test", "my", "boolean", "}" ]
[ "the", "number", "of", "results", "produced", "the", "last", "time", "{", "@", "link", "#", "run", "for", "doc", "(", "int", ")", "}", "was", "called" ]
[ "public", "final", "int", "count", "(", ")", "{", "return", "count", ";", "}" ]
[ "allocation", "-", "free", "implementation", "of", "{", "@", "code", "target", "add", "all", "(", "this", ")", "}" ]
[ "void", "add", "to", "(", "multiset", "<", "?", "super", "e", ">", "target", ")", "{", "check", "not", "null", "(", "target", ")", ";", "for", "(", "int", "i", "=", "backing", "map", "first", "index", "(", ")", ";", "i", ">", "=", "0", ";", "i", "=", "backing", "map", "next", "index", "(", "i", ")", ")", "{", "target", "add", "(", "backing", "map", "get", "key", "(", "i", ")", ",", "backing", "map", "get", "value", "(", "i", ")", ")", ";", "}", "}" ]
[ "{", "@", "inherit", "doc", "}", "invoked", "after", "{", "@", "link", "publisher", "}", "s", "have", "run" ]
[ "public", "boolean", "perform", "(", "abstract", "build", "<", "?", ",", "?", ">", "build", ",", "launcher", "launcher", ",", "build", "listener", "listener", ")", "throws", "interrupted", "exception", ",", "i", "o", "exception", "{", "return", "true", ";", "}" ]
[ "get", "snake", "case" ]
[ "public", "integer", "get", "snake", "case", "(", ")", "{", "return", "snake", "case", ";", "}" ]
[ "do", "the", "sync", "checks" ]
[ "public", "void", "do", "sync", "(", ")", "{", "ignore", "sync", "=", "false", ";", "}" ]
[ "removes", "and", "returns", "the", "greatest", "element", "of", "this", "queue", ",", "or", "returns", "{", "@", "code", "null", "}", "if", "the", "queue", "is", "empty" ]
[ "public", "e", "poll", "last", "(", ")", "{", "return", "is", "empty", "(", ")", "?", "null", ":", "remove", "and", "get", "(", "get", "max", "element", "index", "(", ")", ")", ";", "}" ]
[ "returns", "whether", "the", "elements", "of", "the", "two", "given", "arrays", "are", "the", "same", ",", "or", "both", "arrays", "are", "null" ]
[ "public", "static", "boolean", "equal", "or", "null", "(", "object", "[", "]", "array", "1", ",", "object", "[", "]", "array", "2", ")", "{", "return", "array", "1", "=", "=", "null", "?", "array", "2", "=", "=", "null", ":", "equal", "or", "null", "(", "array", "1", ",", "array", "2", ",", "array", "1", "length", ")", ";", "}" ]
[ "sets", "script", "-", "specific", "arguments" ]
[ "public", "void", "set", "script", "args", "(", "string", "[", "]", "script", "args", ")", "{", "this", "script", "args", "=", "script", "args", "!", "=", "null", "?", "script", "args", ":", "new", "string", "[", "0", "]", ";", "this", "ask", "script", "arg", "index", "=", "0", ";", "}" ]
[ "add", "a", "dependency", "such", "that", "value", "1", "depends", "on", "value", "2", "both", "value", "1", "and", "value", "2", "will", "be", "added", "to", "the", "graph", "if", "they", "are", "not", "already", "in", "the", "graph" ]
[ "public", "synchronized", "void", "add", "dependency", "(", "t", "value", "1", ",", "t", "value", "2", ")", "{", "dependency", "node", "value", "node", "1", "=", "get", "or", "create", "dependency", "node", "(", "value", "1", ")", ";", "dependency", "node", "value", "node", "2", "=", "get", "or", "create", "dependency", "node", "(", "value", "2", ")", ";", "value", "node", "2", "add", "node", "that", "depends", "on", "me", "(", "value", "node", "1", ")", ";", "}" ]
[ "returns", "type", "information", "for", "a", "pojo", "(", "plain", "old", "java", "object", ")", "and", "allows", "to", "specify", "all", "fields", "manually", "a", "pojo", "class", "is", "public", "and", "standalone", "(", "no", "non", "-", "static", "inner", "class", ")", "it", "has", "a", "public", "no", "-", "argument", "constructor", "all", "non", "-", "static", ",", "non", "-", "transient", "fields", "in", "the", "class", "(", "and", "all", "superclasses", ")", "are", "either", "public", "(", "and", "non", "-", "final", ")", "or", "have", "a", "public", "getter", "and", "a", "setter", "method", "that", "follows", "the", "java", "beans", "naming", "conventions", "for", "getters", "and", "setters", "a", "pojo", "is", "a", "fixed", "-", "length", ",", "null", "-", "aware", "composite", "type", "with", "non", "-", "deterministic", "field", "order", "every", "field", "can", "be", "null", "independent", "of", "the", "field", "'", "s", "type", "the", "generic", "types", "for", "all", "fields", "of", "the", "pojo", "can", "be", "defined", "in", "a", "hierarchy", "of", "subclasses", "if", "flink", "'", "s", "type", "analyzer", "is", "unable", "to", "extract", "a", "pojo", "field", ",", "an", "{", "@", "link", "org", "apache", "flink", "api", "common", "functions", "invalid", "types", "exception", "}", "is", "thrown", "note", ":", "in", "most", "cases", "the", "type", "information", "of", "fields", "can", "be", "determined", "automatically", ",", "we", "recommend", "to", "use", "{", "@", "link", "types", "#", "pojo", "(", "class", ")", "}" ]
[ "public", "static", "<", "t", ">", "type", "information", "<", "t", ">", "pojo", "(", "class", "<", "t", ">", "pojo", "class", ",", "map", "<", "string", ",", "type", "information", "<", "?", ">", ">", "fields", ")", "{", "final", "list", "<", "pojo", "field", ">", "pojo", "fields", "=", "new", "array", "list", "<", ">", "(", "fields", "size", "(", ")", ")", ";", "for", "(", "map", "entry", "<", "string", ",", "type", "information", "<", "?", ">", ">", "field", ":", "fields", "entry", "set", "(", ")", ")", "{", "final", "field", "f", "=", "type", "extractor", "get", "declared", "field", "(", "pojo", "class", ",", "field", "get", "key", "(", ")", ")", ";", "if", "(", "f", "=", "=", "null", ")", "{", "throw", "new", "invalid", "types", "exception", "(", "\"", "field", "'", "\"", "+", "field", "get", "key", "(", ")", "+", "\"", "'", "could", "not", "be", "accessed", "\"", ")", ";", "}", "pojo", "fields", "add", "(", "new", "pojo", "field", "(", "f", ",", "field", "get", "value", "(", ")", ")", ")", ";", "}", "return", "new", "pojo", "type", "info", "<", ">", "(", "pojo", "class", ",", "pojo", "fields", ")", ";", "}" ]
[ "gets", "the", "c", "register", "number", ",", "as", "a", "byte", "this", "will", "throw", "if", "the", "value", "is", "out", "of", "the", "range", "of", "an", "unsigned", "byte" ]
[ "public", "final", "short", "get", "c", "byte", "(", ")", "{", "int", "c", "=", "get", "c", "(", ")", ";", "if", "(", "(", "c", "&", "~", "0xff", ")", "!", "=", "0", ")", "{", "throw", "new", "dex", "exception", "2", "(", "\"", "register", "c", "out", "of", "range", ":", "\"", "+", "hex", "u", "8", "(", "c", ")", ")", ";", "}", "return", "(", "short", ")", "c", ";", "}" ]
[ "the", "job", "tasks", "that", "do", "not", "have", "an", "assignment", "as", "determined", "by", "{", "@", "link", "persistent", "tasks", "cluster", "service", "#", "needs", "reassignment", "(", "persistent", "tasks", "custom", "metadata", "assignment", ",", "discovery", "nodes", ")", "}" ]
[ "public", "static", "collection", "<", "persistent", "tasks", "custom", "metadata", "persistent", "task", "<", "?", ">", ">", "unassigned", "job", "tasks", "(", "@", "nullable", "persistent", "tasks", "custom", "metadata", "tasks", ",", "discovery", "nodes", "nodes", ")", "{", "if", "(", "tasks", "=", "=", "null", ")", "{", "return", "collections", "empty", "list", "(", ")", ";", "}", "return", "tasks", "find", "tasks", "(", "job", "task", "name", ",", "task", "-", ">", "persistent", "tasks", "cluster", "service", "needs", "reassignment", "(", "task", "get", "assignment", "(", ")", ",", "nodes", ")", ")", ";", "}" ]
[ "gets", "the", "hash", "table", "mask", "using", "the", "stored", "number", "of", "hash", "table", "bits" ]
[ "private", "int", "hash", "table", "mask", "(", ")", "{", "return", "(", "1", "<", "<", "(", "metadata", "&", "compact", "hashing", "hash", "table", "bits", "mask", ")", ")", "-", "1", ";", "}" ]
[ "get", "the", "current", "admin", "socket", "address", "for", "the", "router" ]
[ "public", "inet", "socket", "address", "get", "admin", "server", "address", "(", ")", "{", "return", "admin", "address", ";", "}" ]
[ "the", "value", "assigned", "to", "this", "element", "<", "code", ">", "optional", "aapt", "pb", "item", "item", "=", "3", ";", "<", "code", ">" ]
[ "public", "boolean", "has", "item", "(", ")", "{", "return", "instance", "has", "item", "(", ")", ";", "}" ]
[ "{", "@", "inherit", "doc", "}" ]
[ "public", "string", "to", "string", "(", ")", "{", "int", "value", "=", "get", "int", "bits", "(", ")", ";", "return", "\"", "int", "{", "0x", "\"", "+", "hex", "u", "4", "(", "value", ")", "+", "\"", "/", "\"", "+", "value", "+", "'", "}", "'", ";", "}" ]
[ "creates", "an", "empty", "long", "stream", "using", "reflection", "to", "stay", "backwards", "-", "compatible", "with", "older", "j", "d", "ks" ]
[ "public", "static", "object", "empty", "long", "stream", "(", ")", "{", "/", "/", "note", ":", "the", "empty", "stream", "can", "not", "be", "stored", "as", "a", "singleton", "return", "invoke", "nullary", "factory", "method", "(", "\"", "java", "util", "stream", "long", "stream", "\"", ",", "\"", "empty", "\"", ")", ";", "}" ]
[ "commits", "a", "file", "into", "the", "cache", "must", "only", "be", "called", "when", "holding", "a", "corresponding", "hole", "{", "@", "link", "cache", "span", "}", "obtained", "from", "{", "@", "link", "#", "start", "read", "write", "(", "string", ",", "long", ",", "long", ")", "}", "this", "method", "may", "be", "slow", "and", "shouldn", "'", "t", "normally", "be", "called", "on", "the", "main", "thread" ]
[ "void", "commit", "file", "(", "file", "file", ",", "long", "length", ")", "throws", "cache", "exception", ";" ]
[ "date", "to", "long", "conversion", "handles", "null", "dates", "that", "can", "be", "returned", "by", "obs", "by", "returning", "0" ]
[ "public", "static", "long", "date", "to", "long", "(", "final", "date", "date", ")", "{", "if", "(", "date", "=", "=", "null", ")", "{", "return", "0l", ";", "}", "return", "date", "get", "time", "(", ")", "/", "o", "b", "s", "constants", "sec2millisec", "factor", "*", "o", "b", "s", "constants", "sec2millisec", "factor", ";", "}" ]
[ "returns", "whether", "a", "given", "integer", "matches", "a", "dts", "sync", "word", "synchronization", "and", "storage", "modes", "are", "defined", "in", "etsi", "ts", "102", "114", "v1", "1", "1", "(", "2002", "-", "08", ")", ",", "section", "5", "3" ]
[ "public", "static", "boolean", "is", "sync", "word", "(", "int", "word", ")", "{", "return", "word", "=", "=", "sync", "value", "be", "|", "|", "word", "=", "=", "sync", "value", "le", "|", "|", "word", "=", "=", "sync", "value", "14b", "be", "|", "|", "word", "=", "=", "sync", "value", "14b", "le", ";", "}" ]
[ "get", "a", "double", "parameter", ",", "or", "{", "@", "code", "null", "}", "if", "not", "present", "throws", "an", "exception", "if", "it", "the", "parameter", "value", "isn", "'", "t", "a", "number" ]
[ "public", "static", "double", "get", "double", "parameter", "(", "servlet", "request", "request", ",", "string", "name", ")", "throws", "servlet", "request", "binding", "exception", "{", "if", "(", "request", "get", "parameter", "(", "name", ")", "=", "=", "null", ")", "{", "return", "null", ";", "}", "return", "get", "required", "double", "parameter", "(", "request", ",", "name", ")", ";", "}" ]
[ "can", "be", "used", "to", "collect", "objects", "from", "the", "iterable", "is", "a", "terminating", "operation" ]
[ "public", "final", "fluent", "iterable", "<", "e", ">", "first", "(", "int", "count", ")", "{", "var", "iterator", "=", "iterator", "(", ")", ";", "var", "current", "count", "=", "0", ";", "while", "(", "iterator", "has", "next", "(", ")", ")", "{", "iterator", "next", "(", ")", ";", "if", "(", "current", "count", ">", "=", "count", ")", "{", "iterator", "remove", "(", ")", ";", "}", "current", "count", "+", "+", ";", "}", "return", "this", ";", "}" ]
[ "{", "@", "inherit", "doc", "}" ]
[ "public", "final", "int", "byte", "length", "(", ")", "{", "/", "/", "add", "six", "for", "the", "standard", "attribute", "header", "return", "byte", "length", "+", "6", ";", "}" ]
[ "visits", "the", "next", "node", "from", "the", "top", "iterator", "of", "{", "@", "code", "horizon", "}", "and", "returns", "the", "visited", "node", "null", "is", "returned", "to", "indicate", "reaching", "the", "end", "of", "the", "top", "iterator", "for", "example", ",", "if", "horizon", "is", "{", "@", "code", "[", "[", "a", ",", "b", "]", ",", "[", "c", ",", "d", "]", ",", "[", "e", "]", "]", "}", ",", "{", "@", "code", "visit", "next", "(", ")", "}", "will", "return", "{", "@", "code", "[", "a", ",", "b", ",", "null", ",", "c", ",", "d", ",", "null", ",", "e", ",", "null", "]", "}", "sequentially", ",", "encoding", "the", "topological", "structure", "(", "note", ",", "however", ",", "that", "the", "callers", "of", "{", "@", "code", "visit", "next", "(", ")", "}", "often", "insert", "additional", "iterators", "into", "{", "@", "code", "horizon", "}", "between", "calls", "to", "{", "@", "code", "visit", "next", "(", ")", "}", "this", "causes", "them", "to", "receive", "additional", "values", "interleaved", "with", "those", "shown", "above", ")" ]
[ "abstract", "n", "visit", "next", "(", "deque", "<", "iterator", "<", "?", "extends", "n", ">", ">", "horizon", ")", ";" ]
[ "search", "the", "directory", "for", "files", "ending", "in", "the", "given", "extension", "and", "add", "them", "to", "the", "list", "that", "is", "returned" ]
[ "private", "static", "void", "find", "resources", "(", "set", "<", "string", ">", "set", ",", "file", "file", ",", "string", "dir", "name", ",", "string", "extension", ")", "{", "if", "(", "!", "file", "exists", "(", ")", ")", "{", "return", ";", "}", "string", "[", "]", "names", "=", "file", "list", "(", ")", ";", "if", "(", "names", "=", "=", "null", ")", "{", "return", ";", "}", "for", "(", "string", "element", ":", "names", ")", "{", "if", "(", "extension", "=", "=", "null", "|", "|", "element", "ends", "with", "(", "extension", ")", ")", "{", "set", "add", "(", "dir", "name", "+", "\"", "/", "\"", "+", "element", ")", ";", "}", "}", "}" ]
[ "{", "@", "inherit", "doc", "}" ]
[ "public", "boolean", "is", "compatible", "(", "dalv", "insn", "insn", ")", "{", "register", "spec", "list", "regs", "=", "insn", "get", "registers", "(", ")", ";", "if", "(", "!", "(", "(", "insn", "instanceof", "cst", "insn", ")", "&", "&", "(", "regs", "size", "(", ")", "=", "=", "2", ")", "&", "&", "unsigned", "fits", "in", "byte", "(", "regs", "get", "(", "0", ")", "get", "reg", "(", ")", ")", "&", "&", "unsigned", "fits", "in", "byte", "(", "regs", "get", "(", "1", ")", "get", "reg", "(", ")", ")", ")", ")", "{", "return", "false", ";", "}", "cst", "insn", "ci", "=", "(", "cst", "insn", ")", "insn", ";", "constant", "cst", "=", "ci", "get", "constant", "(", ")", ";", "if", "(", "!", "(", "cst", "instanceof", "cst", "literal", "bits", ")", ")", "{", "return", "false", ";", "}", "cst", "literal", "bits", "cb", "=", "(", "cst", "literal", "bits", ")", "cst", ";", "return", "cb", "fits", "in", "int", "(", ")", "&", "&", "signed", "fits", "in", "byte", "(", "cb", "get", "int", "bits", "(", ")", ")", ";", "}" ]
[ "the", "estimated", "size", "in", "bytes", "of", "the", "bulk", "request" ]
[ "public", "long", "estimated", "size", "in", "bytes", "(", ")", "{", "return", "size", "in", "bytes", ";", "}" ]
[ "returns", "{", "@", "code", "true", "}", "for", "java", "classes", "or", "interfaces", "that", "are", "subtypes", "of", "emulated", "interfaces", "note", "that", "implies", "that", "this", "method", "always", "returns", "{", "@", "code", "false", "}", "for", "user", "-", "written", "classes" ]
[ "public", "boolean", "is", "emulated", "core", "class", "or", "interface", "(", "string", "internal", "name", ")", "{", "return", "get", "emulated", "core", "class", "or", "interface", "(", "internal", "name", ")", "!", "=", "null", ";", "}" ]
[ "returns", "the", "sum", "of", "document", "frequencies", "for", "all", "terms", "in", "this", "field" ]
[ "public", "long", "get", "sum", "doc", "freq", "(", ")", "{", "return", "sum", "doc", "freq", ";", "}" ]
[ "handle", "an", "unsupported", "version", "exception" ]
[ "boolean", "handle", "unsupported", "version", "exception", "(", "unsupported", "version", "exception", "exception", ")", "{", "return", "false", ";", "}" ]