docstring_tokens
list
code_tokens
list
[ "short", "-", "cut", "function", "to", "determine", "if", "either", "body", "is", "inactive" ]
[ "public", "boolean", "is", "active", "(", ")", "{", "return", "m", "body", "a", "is", "active", "(", ")", "&", "&", "m", "body", "b", "is", "active", "(", ")", ";", "}" ]
[ "runs", "the", "specified", "command", "with", "the", "given", "args", "output", "can", "be", "found", "in", "{", "@", "link", "#", "terminal", "}" ]
[ "public", "string", "execute", "(", "command", "command", ",", "string", "args", ")", "throws", "exception", "{", "command", "main", "without", "error", "handling", "(", "args", ",", "terminal", ")", ";", "return", "terminal", "get", "output", "(", ")", ";", "}" ]
[ "safely", "construct", "a", "time", "window", "of", "the", "given", "size", ",", "taking", "care", "of", "bounding", "end", "ms", "to", "long", "max", "value", "if", "necessary" ]
[ "static", "time", "window", "time", "window", "for", "size", "(", "final", "long", "start", "ms", ",", "final", "long", "window", "size", ")", "{", "long", "end", "ms", "=", "start", "ms", "+", "window", "size", ";", "if", "(", "end", "ms", "<", "0", ")", "{", "log", "warn", "(", "\"", "warning", ":", "window", "end", "time", "was", "truncated", "to", "long", "max", "\"", ")", ";", "end", "ms", "=", "long", "max", "value", ";", "}", "return", "new", "time", "window", "(", "start", "ms", ",", "end", "ms", ")", ";", "}" ]
[ "get", "the", "difference", "between", "two", "snapshots", "of", "a", "directory", "iteratively" ]
[ "snapshot", "diff", "report", "listing", "get", "snapshot", "diff", "report", "listing", "(", "string", "snapshot", "root", ",", "string", "from", "snapshot", ",", "string", "to", "snapshot", ",", "byte", "[", "]", "start", "path", ",", "int", "index", ")", "throws", "i", "o", "exception", ";" ]
[ "sets", "bitmap", "processor", "which", "will", "be", "process", "bitmaps", "before", "they", "will", "be", "displayed", "in", "{", "@", "link", "com", "nostra", "1", "3", "universalimageloader", "core", "imageaware", "image", "aware", "image", "aware", "view", "}", "but", "after", "they", "'", "ll", "have", "been", "saved", "in", "memory", "cache" ]
[ "public", "builder", "post", "processor", "(", "bitmap", "processor", "post", "processor", ")", "{", "this", "post", "processor", "=", "post", "processor", ";", "return", "this", ";", "}" ]
[ "disableenable", "status", "shouldn", "'", "t", "affect", "the", "search" ]
[ "public", "void", "test", "disabled", "job", "should", "be", "searchable", "(", ")", "throws", "exception", "{", "free", "style", "project", "p", "=", "j", "create", "free", "style", "project", "(", "\"", "foo", "-", "bar", "\"", ")", ";", "assert", "true", "(", "suggest", "(", "j", "jenkins", "get", "search", "index", "(", ")", ",", "\"", "foo", "\"", ")", "contains", "(", "p", ")", ")", ";", "p", "disable", "(", ")", ";", "assert", "true", "(", "suggest", "(", "j", "jenkins", "get", "search", "index", "(", ")", ",", "\"", "foo", "\"", ")", "contains", "(", "p", ")", ")", ";", "}" ]
[ "copies", "the", "{", "@", "code", "process", "-", "wrapper", "}", "tool", "into", "the", "path", "under", "the", "temporary", "exec", "root", "where", "the", "{", "@", "link", "local", "spawn", "runner", "}", "expects", "to", "find", "it" ]
[ "private", "void", "copy", "process", "wrapper", "into", "exec", "root", "(", "path", "wrapper", "path", ")", "throws", "i", "o", "exception", "{", "file", "real", "process", "wrapper", "file", "=", "new", "file", "(", "path", "fragment", "create", "(", "blaze", "test", "utils", "runfiles", "dir", "(", ")", ")", "get", "relative", "(", "test", "constants", "process", "wrapper", "path", ")", "get", "path", "string", "(", ")", ")", ";", "assert", "that", "(", "real", "process", "wrapper", "file", "exists", "(", ")", ")", "is", "true", "(", ")", ";", "wrapper", "path", "create", "directory", "and", "parents", "(", ")", ";", "file", "wrapper", "file", "=", "wrapper", "path", "get", "path", "file", "(", ")", ";", "wrapper", "path", "delete", "(", ")", ";", "files", "copy", "(", "real", "process", "wrapper", "file", ",", "wrapper", "file", ")", ";", "assert", "that", "(", "wrapper", "path", "exists", "(", ")", ")", "is", "true", "(", ")", ";", "wrapper", "path", "set", "executable", "(", "true", ")", ";", "}" ]
[ "adds", "all", "the", "keyvalue", "pairs", "from", "the", "given", "map", "as", "attributes" ]
[ "public", "void", "put", "attributes", "(", "map", "<", "string", ",", "string", ">", "map", ")", "{", "attributes", "put", "all", "(", "map", ")", ";", "}" ]
[ "returns", "a", "{", "@", "link", "deserialization", "context", "}", "that", "will", "memoize", "values", "it", "encounters", "(", "using", "reference", "equality", ")", ",", "the", "inverse", "of", "the", "memoization", "performed", "by", "a", "{", "@", "link", "serialization", "context", "}", "returned", "by", "{", "@", "link", "serialization", "context", "#", "get", "memoizing", "context", "}", "the", "context", "returned", "here", "should", "be", "used", "instead", "of", "the", "original", ":", "memoization", "may", "only", "occur", "when", "using", "the", "returned", "context", "this", "method", "is", "idempotent", ":", "calling", "it", "on", "an", "already", "memoizing", "context", "will", "return", "the", "same", "context" ]
[ "public", "deserialization", "context", "get", "memoizing", "context", "(", ")", "{", "if", "(", "deserializer", "!", "=", "null", ")", "{", "return", "this", ";", "}", "return", "get", "new", "memoizing", "context", "(", ")", ";", "}" ]
[ "writes", "the", "file", "in", "the", "<", "code", ">", "path", "<", "code", ">", "location", "using", "iso", "8859", "1", "overrides", "the", "file", "if", "it", "exists", ",", "creates", "the", "file", "if", "it", "does", "not", "exist" ]
[ "public", "static", "path", "write", "file", "(", "path", "path", ",", "string", "lines", ")", "throws", "i", "o", "exception", "{", "files", "create", "directories", "(", "path", "get", "parent", "(", ")", ")", ";", "return", "files", "write", "(", "path", ",", "lists", "new", "array", "list", "(", "lines", ")", ",", "standard", "charsets", "iso", "8859", "1", ")", ";", "}" ]
[ "creates", "a", "new", "ssa", "basic", "block", "from", "a", "rop", "form", "basic", "block" ]
[ "public", "static", "ssa", "basic", "block", "new", "from", "rop", "(", "rop", "method", "rmeth", ",", "int", "basic", "block", "index", ",", "final", "ssa", "method", "parent", ")", "{", "basic", "block", "list", "rop", "blocks", "=", "rmeth", "get", "blocks", "(", ")", ";", "basic", "block", "bb", "=", "rop", "blocks", "get", "(", "basic", "block", "index", ")", ";", "ssa", "basic", "block", "result", "=", "new", "ssa", "basic", "block", "(", "basic", "block", "index", ",", "bb", "get", "label", "(", ")", ",", "parent", ")", ";", "insn", "list", "rop", "insns", "=", "bb", "get", "insns", "(", ")", ";", "result", "insns", "ensure", "capacity", "(", "rop", "insns", "size", "(", ")", ")", ";", "for", "(", "int", "i", "=", "0", ",", "sz", "=", "rop", "insns", "size", "(", ")", ";", "i", "<", "sz", ";", "i", "+", "+", ")", "{", "result", "insns", "add", "(", "new", "normal", "ssa", "insn", "(", "rop", "insns", "get", "(", "i", ")", ",", "result", ")", ")", ";", "}", "result", "predecessors", "=", "ssa", "method", "bit", "set", "from", "label", "list", "(", "rop", "blocks", ",", "rmeth", "label", "to", "predecessors", "(", "bb", "get", "label", "(", ")", ")", ")", ";", "result", "successors", "=", "ssa", "method", "bit", "set", "from", "label", "list", "(", "rop", "blocks", ",", "bb", "get", "successors", "(", ")", ")", ";", "result", "successor", "list", "=", "ssa", "method", "index", "list", "from", "label", "list", "(", "rop", "blocks", ",", "bb", "get", "successors", "(", ")", ")", ";", "if", "(", "result", "successor", "list", "size", "(", ")", "!", "=", "0", ")", "{", "int", "primary", "successor", "=", "bb", "get", "primary", "successor", "(", ")", ";", "result", "primary", "successor", "=", "(", "primary", "successor", "<", "0", ")", "?", "-", "1", ":", "rop", "blocks", "index", "of", "label", "(", "primary", "successor", ")", ";", "}", "return", "result", ";", "}" ]
[ "model", "tests", "for", "big", "cat", "all", "of" ]
[ "public", "void", "test", "big", "cat", "all", "of", "(", ")", "{", "/", "/", "todo", ":", "test", "big", "cat", "all", "of", "}" ]
[ "get", "multiple", "{", "@", "link", "property", "source", "property", "sources", "}" ]
[ "protected", "iterable", "<", "property", "source", "<", "?", ">", ">", "get", "property", "sources", "(", ")", "{", "return", "property", "sources", ";", "}" ]
[ "returns", "the", "adapter", "position", "of", "the", "last", "fully", "visible", "view", "this", "position", "does", "not", "include", "adapter", "changes", "that", "were", "dispatched", "after", "the", "last", "layout", "pass" ]
[ "public", "int", "find", "last", "completely", "visible", "item", "position", "(", ")", "{", "final", "view", "child", "=", "find", "one", "visible", "child", "(", "layout", "manager", "get", "child", "count", "(", ")", "-", "1", ",", "-", "1", ",", "true", ",", "false", ")", ";", "return", "child", "=", "=", "null", "?", "recycler", "view", "no", "position", ":", "recycler", "view", "get", "child", "adapter", "position", "(", "child", ")", ";", "}" ]
[ "configures", "the", "driver", "server", "appending", "to", "log", "file" ]
[ "public", "builder", "with", "append", "log", "(", "boolean", "append", "log", ")", "{", "this", "append", "log", "=", "append", "log", ";", "return", "this", ";", "}" ]
[ "returns", "the", "platform", "preferred", "map", "implementation", "that", "preserves", "insertion", "order", "when", "used", "only", "for", "insertions" ]
[ "static", "<", "k", ",", "v", ">", "map", "<", "k", ",", "v", ">", "preserves", "insertion", "order", "on", "puts", "map", "(", ")", "{", "return", "maps", "new", "linked", "hash", "map", "(", ")", ";", "}" ]
[ "adds", "an", "action", "listener", "to", "the", "text", "field" ]
[ "public", "void", "add", "action", "listener", "(", "action", "listener", "listener", ")", "{", "text", "field", "add", "action", "listener", "(", "listener", ")", ";", "}" ]
[ "buggy", "instrumentation", "can", "send", "data", "with", "missing", "endpoints", "make", "sure", "we", "can", "record", "it" ]
[ "public", "void", "missing", "endpoints", "(", ")", "{", "span", "v", "2", "=", "span", "new", "builder", "(", ")", "trace", "id", "(", "\"", "1", "\"", ")", "parent", "id", "(", "\"", "1", "\"", ")", "id", "(", "\"", "2", "\"", ")", "name", "(", "\"", "foo", "\"", ")", "timestamp", "(", "1472470996199000l", ")", "duration", "(", "207000l", ")", "build", "(", ")", ";", "v", "1", "span", "v", "1", "=", "v", "1", "span", "new", "builder", "(", ")", "trace", "id", "(", "1l", ")", "parent", "id", "(", "1l", ")", "id", "(", "2l", ")", "name", "(", "\"", "foo", "\"", ")", "timestamp", "(", "1472470996199000l", ")", "duration", "(", "207000l", ")", "build", "(", ")", ";", "assert", "that", "(", "v", "2", "span", "converter", "convert", "(", "v", "2", ")", ")", "using", "recursive", "comparison", "(", ")", "is", "equal", "to", "(", "v", "1", ")", ";", "assert", "that", "(", "v", "1", "span", "converter", "convert", "(", "v", "1", ")", ")", "contains", "exactly", "(", "v", "2", ")", ";", "}" ]
[ "indicates", "whether", "or", "not", "a", "{", "@", "code", "goaway", "}", "was", "received", "from", "the", "remote", "endpoint" ]
[ "boolean", "go", "away", "received", "(", ")", ";" ]
[ "get", "the", "high", "8", "bytes", "as", "a", "long" ]
[ "public", "long", "get", "high", "8", "(", ")", "{", "return", "hi", "8", ";", "}" ]
[ "return", "the", "boolean", "value", "with", "the", "given", "property", "name" ]
[ "public", "boolean", "get", "boolean", "(", "string", "property", "name", ",", "boolean", "default", "value", ")", "{", "pair", "<", "property", "entry", "type", ",", "string", ">", "pair", "=", "map", "get", "(", "property", "name", ")", ";", "if", "(", "pair", "=", "=", "null", "|", "|", "pair", "first", "!", "=", "property", "entry", "type", "boolean", "type", ")", "{", "return", "default", "value", ";", "}", "string", "value", "=", "pair", "second", ";", "return", "boolean", "parse", "boolean", "(", "value", ")", ";", "}" ]
[ "load", "dynamic", "resource", "configuration", "from", "dynamic", "-", "resources", "xml" ]
[ "public", "void", "load", "dynamic", "resource", "configuration", "(", "configuration", "conf", ")", "throws", "i", "o", "exception", "{", "try", "{", "/", "/", "load", "dynamic", "-", "resources", "xml", "input", "stream", "dr", "input", "stream", "=", "this", "rm", "context", "get", "configuration", "provider", "(", ")", "get", "configuration", "input", "stream", "(", "conf", ",", "yarn", "configuration", "dr", "configuration", "file", ")", ";", "/", "/", "write", "lock", "here", "on", "dr", "config", "is", "unnecessary", "as", "here", "get", "called", "at", "/", "/", "resource", "tracker", "service", "get", "initiated", "and", "other", "read", "and", "write", "/", "/", "operations", "haven", "'", "t", "started", "yet", "if", "(", "dr", "input", "stream", "!", "=", "null", ")", "{", "this", "dr", "conf", "=", "new", "dynamic", "resource", "configuration", "(", "conf", ",", "dr", "input", "stream", ")", ";", "}", "else", "{", "this", "dr", "conf", "=", "new", "dynamic", "resource", "configuration", "(", "conf", ")", ";", "}", "}", "catch", "(", "exception", "e", ")", "{", "throw", "new", "i", "o", "exception", "(", "e", ")", ";", "}", "}" ]
[ "returns", "the", "first", "full", "hash", "value", "in", "the", "database", "that", "is", "greater", "than", "or", "equal", "to", "the", "provided", "argument", "useful", "for", "iterating", "over", "all", "the", "function", "records", "in", "(", "arbitrarily", ",", "but", "deterministically", ")", "sorted", "full", "hash", "order" ]
[ "public", "long", "find", "full", "hash", "value", "at", "or", "after", "(", "long", "value", ")", "{", "try", "{", "long", "search", "=", "functions", "table", "get", "full", "hash", "value", "at", "or", "after", "(", "value", ")", ";", "return", "search", ";", "}", "catch", "(", "i", "o", "exception", "e", ")", "{", "msg", "error", "(", "this", ",", "\"", "serious", "problem", "searching", "for", "full", "hash", "values", "\"", ",", "e", ")", ";", "}", "return", "null", ";", "}" ]
[ "check", "if", "all", "number", "is", "not", "zero", "new", "feature" ]
[ "public", "boolean", "if", "non", "zero", "(", "int", "nums", ")", "{", "logger", "info", "(", "\"", "source", "module", "{", "}", "\"", ",", "version", ")", ";", "return", "arrays", "stream", "(", "nums", ")", "all", "match", "(", "num", "-", ">", "num", "!", "=", "0", ")", ";", "}" ]
[ "this", "method", "is", "called", "when", "the", "dimensions", "of", "the", "parent", "element", "change", "subclasses", "should", "override", "this", "method", "as", "needed" ]
[ "void", "on", "resize", "(", "int", "width", ",", "int", "height", ")", ";" ]
[ "{", "@", "inherit", "doc", "}" ]
[ "public", "void", "set", "cursor", "name", "(", "string", "name", ")", "throws", "s", "q", "l", "exception", "{", "}" ]
[ "{", "@", "inherit", "doc", "}" ]
[ "public", "int", "byte", "length", "(", ")", "{", "return", "8", ";", "}" ]
[ "get", "zoo", "keeper", "retry", "interval", "value", "in", "milli", "seconds" ]
[ "public", "int", "get", "z", "k", "retry", "interval", "m", "s", "(", ")", "{", "return", "integer", "parse", "int", "(", "configs", "map", "get", "(", "zk", "retry", "interval", "ms", ")", ")", ";", "}" ]
[ "compute", "the", "latency", "based", "on", "the", "current", "marked", "timestamp", ",", "and", "update", "the", "marked", "timestamp", "with", "the", "current", "system", "timestamp" ]
[ "private", "long", "advance", "now", "and", "compute", "latency", "(", ")", "{", "final", "long", "previous", "=", "now", ";", "now", "=", "time", "milliseconds", "(", ")", ";", "return", "math", "max", "(", "now", "-", "previous", ",", "0", ")", ";", "}" ]
[ "rewrites", "the", "workspace", "to", "have", "the", "required", "boilerplate", "and", "the", "given", "lines", "of", "content", "triggers", "skyframe", "to", "reinitialize", "everything" ]
[ "public", "void", "rewrite", "workspace", "(", "string", "lines", ")", "throws", "exception", "{", "scratch", "overwrite", "file", "(", "\"", "workspace", "\"", ",", "new", "immutable", "list", "builder", "<", "string", ">", "(", ")", "add", "all", "(", "analysis", "mock", "get", "workspace", "contents", "(", "mock", "tools", "config", ")", ")", "add", "all", "(", "immutable", "list", "copy", "of", "(", "lines", ")", ")", "build", "(", ")", ")", ";", "invalidate", "packages", "(", ")", ";", "}" ]
[ "receive", "op", "block", "checksum" ]
[ "private", "void", "op", "block", "checksum", "(", "data", "input", "stream", "in", ")", "throws", "i", "o", "exception", "{", "op", "block", "checksum", "proto", "proto", "=", "op", "block", "checksum", "proto", "parse", "from", "(", "vint", "prefixed", "(", "in", ")", ")", ";", "trace", "scope", "trace", "scope", "=", "continue", "trace", "span", "(", "proto", "get", "header", "(", ")", ",", "proto", "get", "class", "(", ")", "get", "simple", "name", "(", ")", ")", ";", "try", "{", "block", "checksum", "(", "p", "b", "helper", "client", "convert", "(", "proto", "get", "header", "(", ")", "get", "block", "(", ")", ")", ",", "p", "b", "helper", "client", "convert", "(", "proto", "get", "header", "(", ")", "get", "token", "(", ")", ")", ",", "p", "b", "helper", "client", "convert", "(", "proto", "get", "block", "checksum", "options", "(", ")", ")", ")", ";", "}", "finally", "{", "if", "(", "trace", "scope", "!", "=", "null", ")", "trace", "scope", "close", "(", ")", ";", "}", "}" ]
[ "this", "member", "'", "s", "value", "specifies", "the", "required", "architecture", "for", "an", "individual", "file" ]
[ "public", "short", "e", "machine", "(", ")", "{", "return", "e", "machine", ";", "}" ]
[ "write", "a", "line", "of", "text", "to", "a", "file", "characters", "are", "encoded", "into", "bytes", "using", "utf", "-", "8", "this", "utility", "method", "opens", "the", "file", "for", "writing", ",", "creating", "the", "file", "if", "it", "does", "not", "exist", ",", "or", "overwrites", "an", "existing", "file" ]
[ "public", "static", "file", "context", "write", "(", "final", "file", "context", "file", "context", ",", "final", "path", "path", ",", "final", "char", "sequence", "charseq", ")", "throws", "i", "o", "exception", "{", "return", "write", "(", "file", "context", ",", "path", ",", "charseq", ",", "standard", "charsets", "utf", "8", ")", ";", "}" ]
[ "in", "the", "{", "@", "link", "#", "set", "up", "(", ")", "}", "routine", ",", "the", "maximum", "number", "of", "connections", "per", "ip", "is", "set", "to", "1", "this", "tests", "that", "if", "more", "than", "one", "connection", "is", "attempted", ",", "the", "connection", "fails" ]
[ "public", "void", "test", "max", "connection", "per", "ip", "surpased", "(", ")", "{", "assert", "true", "(", "server", "factory", "instanceof", "netty", "server", "cnxn", "factory", ",", "\"", "did", "not", "instantiate", "server", "cnxn", "factory", "with", "netty", "server", "cnxn", "factory", "!", "\"", ")", ";", "assert", "throws", "(", "protocol", "exception", "class", ",", "(", ")", "-", ">", "{", "try", "(", "final", "zoo", "keeper", "zk", "1", "=", "create", "client", "(", ")", ";", "final", "zoo", "keeper", "zk", "2", "=", "create", "client", "(", ")", ")", "{", "}", "}", ")", ";", "}" ]
[ "writes", "a", "range", "of", "bytes", "to", "the", "stream" ]
[ "public", "synchronized", "void", "write", "(", "byte", "[", "]", "b", ",", "int", "off", ",", "int", "length", ")", "throws", "i", "o", "exception", "{", "if", "(", "b", "=", "=", "null", ")", "{", "throw", "new", "null", "pointer", "exception", "(", "\"", "null", "buffer", "argument", "\"", ")", ";", "}", "if", "(", "off", "<", "0", "|", "|", "length", "<", "0", "|", "|", "length", ">", "b", "length", "-", "off", ")", "{", "throw", "new", "index", "out", "of", "bounds", "exception", "(", "\"", "array", "write", "offset", "\"", ")", ";", "}", "system", "arraycopy", "(", "b", ",", "off", ",", "buffer", ",", "write", "position", ",", "length", ")", ";", "write", "position", "+", "=", "length", ";", "}" ]
[ "obtain", "a", "{", "@", "link", "start", "and", "stop", "latch", "}", "that", "can", "be", "used", "to", "wait", "until", "this", "task", "has", "completed", "the", "expected", "number", "of", "starts" ]
[ "public", "start", "and", "stop", "latch", "expected", "stops", "(", "int", "expected", "stops", ")", "{", "return", "start", "and", "stop", "counter", "expected", "stops", "(", "expected", "stops", ")", ";", "}" ]
[ "creates", "an", "{", "@", "code", "objc", "library", "}", "target", "writer" ]
[ "protected", "scratch", "attribute", "writer", "create", "library", "target", "writer", "(", "string", "label", "string", ")", "{", "return", "scratch", "attribute", "writer", "from", "label", "string", "(", "this", ",", "\"", "objc", "library", "\"", ",", "label", "string", ")", ";", "}" ]
[ "model", "tests", "for", "big", "cat" ]
[ "public", "void", "test", "big", "cat", "(", ")", "{", "/", "/", "todo", ":", "test", "big", "cat", "}" ]
[ "set", "the", "filter", "class" ]
[ "public", "static", "void", "set", "filter", "class", "(", "job", "job", ",", "class", "<", "?", ">", "filter", "class", ")", "{", "job", "get", "configuration", "(", ")", "set", "(", "filter", "class", ",", "filter", "class", "get", "name", "(", ")", ")", ";", "}" ]
[ "generate", "a", "new", "exception", "caused", "by", "a", "missing", "file", ",", "that", "is", "required", "for", "this", "key", "config" ]
[ "static", "elasticsearch", "exception", "missing", "key", "config", "file", "(", "i", "o", "exception", "cause", ",", "string", "file", "type", ",", "path", "path", ")", "{", "return", "new", "elasticsearch", "exception", "(", "\"", "failed", "to", "initialize", "ssl", "key", "manager", "-", "\"", "+", "file", "type", "+", "\"", "file", "[", "{", "}", "]", "does", "not", "exist", "\"", ",", "cause", ",", "path", "to", "absolute", "path", "(", ")", ")", ";", "}" ]
[ "tries", "to", "match", "the", "next", "instruction", "and", "fills", "out", "the", "string", "constant", "or", "prints", "out", "a", "note", "accordingly" ]
[ "private", "void", "match", "get", "member", "(", "clazz", "clazz", ",", "method", "method", ",", "code", "attribute", "code", "attribute", ",", "int", "offset", ",", "instruction", "instruction", ",", "instruction", "sequence", "matcher", "constant", "sequence", "matcher", ",", "instruction", "sequence", "matcher", "variable", "sequence", "matcher", ",", "boolean", "is", "field", ",", "boolean", "is", "declared", ",", "string", "default", "name", ",", "string", "default", "descriptor", ")", "{", "if", "(", "constant", "sequence", "matcher", "!", "=", "null", ")", "{", "/", "/", "try", "to", "match", "the", "next", "instruction", "in", "the", "constant", "sequence", "instruction", "accept", "(", "clazz", ",", "method", ",", "code", "attribute", ",", "offset", ",", "constant", "sequence", "matcher", ")", ";", "/", "/", "did", "we", "find", "a", "match", "to", "fill", "out", "the", "string", "constant", "?", "if", "(", "constant", "sequence", "matcher", "is", "matching", "(", ")", ")", "{", "initialize", "string", "reference", "(", "clazz", ",", "constant", "sequence", "matcher", ",", "is", "field", ",", "is", "declared", ",", "default", "descriptor", ")", ";", "/", "/", "don", "'", "t", "look", "for", "the", "dynamic", "construct", "variable", "sequence", "matcher", "reset", "(", ")", ";", "}", "}", "/", "/", "try", "to", "match", "the", "next", "instruction", "in", "the", "variable", "sequence", "instruction", "accept", "(", "clazz", ",", "method", ",", "code", "attribute", ",", "offset", ",", "variable", "sequence", "matcher", ")", ";", "/", "/", "did", "we", "find", "a", "match", "to", "print", "out", "a", "note", "?", "if", "(", "variable", "sequence", "matcher", "is", "matching", "(", ")", ")", "{", "/", "/", "print", "out", "a", "note", "about", "the", "dynamic", "invocation", "print", "dynamic", "invocation", "note", "(", "clazz", ",", "variable", "sequence", "matcher", ",", "is", "field", ",", "is", "declared", ",", "default", "name", ",", "default", "descriptor", ")", ";", "}", "}" ]
[ "stops", "the", "given", "machine", "learning", "datafeed", "for", "additional", "info", "see", "<", "a", "href", "=", "\"", "https", ":", "www", "elastic", "coguideenelasticsearchreferencecurrentml", "-", "stop", "-", "datafeed", "html", "\"", ">", "ml", "stop", "datafeed", "documentation" ]
[ "public", "stop", "datafeed", "response", "stop", "datafeed", "(", "stop", "datafeed", "request", "request", ",", "request", "options", "options", ")", "throws", "i", "o", "exception", "{", "return", "rest", "high", "level", "client", "perform", "request", "and", "parse", "entity", "(", "request", ",", "m", "l", "request", "converters", ":", ":", "stop", "datafeed", ",", "options", ",", "stop", "datafeed", "response", ":", ":", "from", "x", "content", ",", "collections", "empty", "set", "(", ")", ")", ";", "}" ]
[ "static", "factory", "method", "to", "create", "a", "new", "{", "@", "code", "data", "class", "row", "mapper", "}" ]
[ "public", "static", "<", "t", ">", "data", "class", "row", "mapper", "<", "t", ">", "new", "instance", "(", "class", "<", "t", ">", "mapped", "class", ")", "{", "return", "new", "data", "class", "row", "mapper", "<", ">", "(", "mapped", "class", ")", ";", "}" ]
[ "find", "the", "fields", "constant", "that", "matches", "name", ",", "or", "null", "if", "its", "not", "found" ]
[ "public", "static", "fields", "find", "by", "name", "(", "string", "name", ")", "{", "return", "by", "name", "get", "(", "name", ")", ";", "}" ]
[ "get", "local", "address" ]
[ "public", "inet", "socket", "address", "get", "local", "address", "(", ")", "{", "return", "local", "address", ";", "}" ]
[ "check", "whether", "this", "object", "is", "still", "valid", "if", "the", "object", "is", "invalid", ",", "the", "object", "will", "attempt", "to", "refresh", "itself", "using", "the", "specified", "record", "if", "the", "refresh", "fails", ",", "the", "object", "will", "be", "marked", "as", "deleted", "and", "removed", "from", "cache", "if", "this", "object", "is", "already", "marked", "as", "deleted", ",", "the", "record", "can", "not", "be", "used", "to", "refresh", "the", "object" ]
[ "public", "boolean", "check", "is", "valid", "(", "d", "b", "record", "record", ")", "{", "if", "(", "deleted", ")", "{", "return", "false", ";", "}", "if", "(", "is", "invalid", "(", ")", ")", "{", "set", "valid", "(", ")", ";", "/", "/", "prevent", "check", "is", "valid", "recursion", "during", "refresh", "if", "(", "!", "refresh", "(", "record", ")", ")", "{", "if", "(", "cache", "!", "=", "null", ")", "{", "cache", "delete", "(", "key", ")", ";", "}", "set", "deleted", "(", ")", ";", "set", "invalid", "(", ")", ";", "}", "}", "return", "!", "deleted", ";", "}" ]
[ "calculates", "the", "sum", "across", "all", "values", "of", "the", "given", "stack" ]
[ "private", "static", "float", "calc", "sum", "(", "float", "[", "]", "vals", ")", "{", "if", "(", "vals", "=", "=", "null", ")", "return", "0f", ";", "float", "sum", "=", "0f", ";", "for", "(", "float", "f", ":", "vals", ")", "sum", "+", "=", "f", ";", "return", "sum", ";", "}" ]
[ "subclasses", "can", "override", "this", "method", "to", "implement", "interruption", "of", "the", "future", "'", "s", "computation", "the", "method", "is", "invoked", "automatically", "by", "a", "successful", "call", "to", "{", "@", "link", "#", "cancel", "(", "boolean", ")", "cancel", "(", "true", ")", "}", "the", "default", "implementation", "does", "nothing", "this", "method", "is", "likely", "to", "be", "deprecated", "prefer", "to", "override", "{", "@", "link", "#", "after", "done", "}", ",", "checking", "{", "@", "link", "#", "was", "interrupted", "}", "to", "decide", "whether", "to", "interrupt", "your", "task" ]
[ "protected", "void", "interrupt", "task", "(", ")", "{", "}" ]
[ "returns", "a", "map", "of", "{", "@", "link", "transport", "}", "suppliers", "see", "{", "@", "link", "org", "elasticsearch", "common", "network", "network", "module", "#", "transport", "type", "key", "}", "to", "configure", "a", "specific", "implementation" ]
[ "default", "map", "<", "string", ",", "supplier", "<", "transport", ">", ">", "get", "transports", "(", "settings", "settings", ",", "thread", "pool", "thread", "pool", ",", "page", "cache", "recycler", "page", "cache", "recycler", ",", "circuit", "breaker", "service", "circuit", "breaker", "service", ",", "named", "writeable", "registry", "named", "writeable", "registry", ",", "network", "service", "network", "service", ")", "{", "return", "collections", "empty", "map", "(", ")", ";", "}" ]
[ "parse", "hosts", "file", "at", "standard", "os", "location", "using", "the", "system", "default", "{", "@", "link", "charset", "}", "for", "decoding" ]
[ "public", "static", "hosts", "file", "entries", "parse", "(", ")", "throws", "i", "o", "exception", "{", "return", "parse", "(", "locate", "hosts", "file", "(", ")", ")", ";", "}" ]
[ "put", "user", "{", "username", "}", ":", "updated", "user", "this", "can", "only", "be", "done", "by", "the", "logged", "in", "user" ]
[ "response", "entity", "<", "void", ">", "update", "user", "(", "@", "api", "param", "(", "value", "=", "\"", "name", "that", "need", "to", "be", "deleted", "\"", ",", "required", "=", "true", ")", "@", "path", "variable", "(", "\"", "username", "\"", ")", "string", "username", ",", "@", "api", "param", "(", "value", "=", "\"", "updated", "user", "object", "\"", ",", "required", "=", "true", ")", "@", "valid", "@", "request", "body", "user", "body", ")", ";" ]
[ "accepts", "{", "@", "code", "config", "xml", "}", "submission", ",", "as", "well", "as", "serve", "it" ]
[ "public", "http", "response", "do", "config", "dot", "xml", "(", "stapler", "request", "req", ")", "throws", "i", "o", "exception", "{", "if", "(", "req", "get", "method", "(", ")", "equals", "(", "\"", "get", "\"", ")", ")", "{", "/", "/", "read", "check", "permission", "(", "read", ")", ";", "return", "new", "http", "response", "(", ")", "{", "public", "void", "generate", "response", "(", "stapler", "request", "req", ",", "stapler", "response", "rsp", ",", "object", "node", ")", "throws", "i", "o", "exception", ",", "servlet", "exception", "{", "rsp", "set", "content", "type", "(", "\"", "application", "/", "xml", "\"", ")", ";", "view", "this", "write", "xml", "(", "rsp", "get", "output", "stream", "(", ")", ")", ";", "}", "}", ";", "}", "if", "(", "req", "get", "method", "(", ")", "equals", "(", "\"", "post", "\"", ")", ")", "{", "/", "/", "submission", "update", "by", "xml", "(", "new", "stream", "source", "(", "req", "get", "reader", "(", ")", ")", ")", ";", "return", "http", "responses", "ok", "(", ")", ";", "}", "/", "/", "huh", "?", "return", "http", "responses", "error", "(", "sc", "bad", "request", ",", "\"", "unexpected", "request", "method", "\"", "+", "req", "get", "method", "(", ")", ")", ";", "}" ]
[ "returns", "copts", "filter", "built", "from", "the", "make", "variable", "expanded", "nocopts", "attribute" ]
[ "copts", "filter", "get", "copts", "filter", "(", ")", "{", "return", "get", "copts", "filter", "(", "rule", "context", ")", ";", "}" ]
[ "returns", "code", "that", "represents", "the", "snapshot", "state" ]
[ "public", "byte", "value", "(", ")", "{", "return", "value", ";", "}" ]
[ "if", "the", "delegate", "changed", "since", "the", "iterator", "was", "created", ",", "the", "iterator", "is", "no", "longer", "valid" ]
[ "void", "validate", "iterator", "(", ")", "{", "refresh", "if", "empty", "(", ")", ";", "if", "(", "delegate", "!", "=", "original", "delegate", ")", "{", "throw", "new", "concurrent", "modification", "exception", "(", ")", ";", "}", "}" ]
[ "test", "the", "property", "'", "prefix", "wrapped", "array", "'" ]
[ "public", "void", "prefix", "wrapped", "array", "test", "(", ")", "{", "/", "/", "todo", ":", "test", "prefix", "wrapped", "array", "}" ]
[ "linear", "damping", "is", "use", "to", "reduce", "the", "linear", "velocity", "the", "damping", "parameter", "can", "be", "larger", "than", "1", "0f", "but", "the", "damping", "effect", "becomes", "sensitive", "to", "the", "time", "step", "when", "the", "damping", "parameter", "is", "large" ]
[ "public", "void", "set", "linear", "damping", "(", "float", "linear", "damping", ")", "{", "this", "linear", "damping", "=", "linear", "damping", ";", "}" ]
[ "set", "a", "hibernate", "entity", "interceptor", "that", "allows", "to", "inspect", "and", "change", "property", "values", "before", "writing", "to", "and", "reading", "from", "the", "database", "will", "get", "applied", "to", "any", "new", "session", "created", "by", "this", "transaction", "manager", "such", "an", "interceptor", "can", "either", "be", "set", "at", "the", "session", "factory", "level", ",", "i", "e", "on", "local", "session", "factory", "bean", ",", "or", "at", "the", "session", "level", ",", "i", "e", "on", "hibernate", "transaction", "manager" ]
[ "public", "void", "set", "entity", "interceptor", "(", "@", "nullable", "interceptor", "entity", "interceptor", ")", "{", "this", "entity", "interceptor", "=", "entity", "interceptor", ";", "}" ]
[ "convert", "a", "map", "of", "named", "parameter", "values", "to", "a", "corresponding", "array" ]
[ "public", "static", "object", "[", "]", "build", "value", "array", "(", "parsed", "sql", "parsed", "sql", ",", "sql", "parameter", "source", "param", "source", ",", "@", "nullable", "list", "<", "sql", "parameter", ">", "declared", "params", ")", "{", "object", "[", "]", "param", "array", "=", "new", "object", "[", "parsed", "sql", "get", "total", "parameter", "count", "(", ")", "]", ";", "if", "(", "parsed", "sql", "get", "named", "parameter", "count", "(", ")", ">", "0", "&", "&", "parsed", "sql", "get", "unnamed", "parameter", "count", "(", ")", ">", "0", ")", "{", "throw", "new", "invalid", "data", "access", "api", "usage", "exception", "(", "\"", "not", "allowed", "to", "mix", "named", "and", "traditional", "?", "placeholders", "you", "have", "\"", "+", "parsed", "sql", "get", "named", "parameter", "count", "(", ")", "+", "\"", "named", "parameter", "(", "s", ")", "and", "\"", "+", "parsed", "sql", "get", "unnamed", "parameter", "count", "(", ")", "+", "\"", "traditional", "placeholder", "(", "s", ")", "in", "statement", ":", "\"", "+", "parsed", "sql", "get", "original", "sql", "(", ")", ")", ";", "}", "list", "<", "string", ">", "param", "names", "=", "parsed", "sql", "get", "parameter", "names", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "param", "names", "size", "(", ")", ";", "i", "+", "+", ")", "{", "string", "param", "name", "=", "param", "names", "get", "(", "i", ")", ";", "try", "{", "sql", "parameter", "param", "=", "find", "parameter", "(", "declared", "params", ",", "param", "name", ",", "i", ")", ";", "param", "array", "[", "i", "]", "=", "(", "param", "!", "=", "null", "?", "new", "sql", "parameter", "value", "(", "param", ",", "param", "source", "get", "value", "(", "param", "name", ")", ")", ":", "sql", "parameter", "source", "utils", "get", "typed", "value", "(", "param", "source", ",", "param", "name", ")", ")", ";", "}", "catch", "(", "illegal", "argument", "exception", "ex", ")", "{", "throw", "new", "invalid", "data", "access", "api", "usage", "exception", "(", "\"", "no", "value", "supplied", "for", "the", "sql", "parameter", "'", "\"", "+", "param", "name", "+", "\"", "'", ":", "\"", "+", "ex", "get", "message", "(", ")", ")", ";", "}", "}", "return", "param", "array", ";", "}" ]
[ "writes", "a", "{", "@", "code", "long", "}", "as", "specified", "by", "{", "@", "link", "data", "output", "stream", "#", "write", "long", "(", "long", ")", "}", ",", "except", "using", "little", "-", "endian", "byte", "order" ]
[ "public", "void", "write", "long", "(", "long", "v", ")", "throws", "i", "o", "exception", "{", "byte", "[", "]", "bytes", "=", "longs", "to", "byte", "array", "(", "long", "reverse", "bytes", "(", "v", ")", ")", ";", "write", "(", "bytes", ",", "0", ",", "bytes", "length", ")", ";", "}" ]
[ "allow", "map", "access", "to", "the", "url", "path", "mappings", ",", "with", "the", "option", "to", "add", "or", "override", "specific", "entries", "useful", "for", "specifying", "entries", "directly", ",", "for", "example", "via", "\"", "url", "map", "[", "my", "key", "]", "\"", "this", "is", "particularly", "useful", "for", "adding", "or", "overriding", "entries", "in", "child", "bean", "definitions" ]
[ "public", "map", "<", "string", ",", "?", ">", "get", "url", "map", "(", ")", "{", "return", "this", "url", "map", ";", "}" ]
[ "returns", "a", "list", "of", "(", "{", "@", "link", "artifact", "}", ",", "{", "@", "link", "label", "}", ")", "pairs", "each", "pair", "represents", "an", "input", "source", "file", "and", "the", "label", "of", "the", "rule", "that", "generates", "it", "(", "or", "the", "label", "of", "the", "source", "file", "itself", "if", "it", "is", "an", "input", "file", ")" ]
[ "list", "<", "pair", "<", "artifact", ",", "label", ">", ">", "get", "private", "headers", "(", ")", "{", "map", "<", "artifact", ",", "label", ">", "map", "=", "maps", "new", "linked", "hash", "map", "(", ")", ";", "iterable", "<", "?", "extends", "transitive", "info", "collection", ">", "providers", "=", "rule", "context", "get", "prerequisites", "if", "(", "\"", "srcs", "\"", ",", "file", "provider", "class", ")", ";", "for", "(", "transitive", "info", "collection", "provider", ":", "providers", ")", "{", "for", "(", "artifact", "artifact", ":", "provider", "get", "provider", "(", "file", "provider", "class", ")", "get", "files", "to", "build", "(", ")", "to", "list", "(", ")", ")", "{", "/", "/", "todo", "(", "bazel", "-", "team", ")", ":", "we", "currently", "do", "not", "produce", "an", "error", "for", "duplicate", "headers", "and", "other", "/", "/", "non", "-", "source", "artifacts", "with", "different", "labels", ",", "as", "that", "would", "require", "cleaning", "up", "the", "code", "/", "/", "base", "without", "significant", "benefit", ";", "we", "should", "eventually", "make", "this", "consistent", "one", "way", "or", "/", "/", "the", "other", "if", "(", "cpp", "file", "types", "cpp", "header", "matches", "(", "artifact", "get", "exec", "path", "(", ")", ")", ")", "{", "map", "put", "(", "artifact", ",", "provider", "get", "label", "(", ")", ")", ";", "}", "}", "}", "return", "map", "to", "list", "of", "pairs", "(", "map", ")", ";", "}" ]
[ "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", "name", "of", "the", "imported", "symbol" ]
[ "public", "string", "get", "name", "(", ")", "{", "return", "name", ";", "}" ]
[ "called", "once", "at", "the", "end", "of", "the", "task" ]
[ "protected", "void", "cleanup", "(", "context", "context", ")", "throws", "i", "o", "exception", ",", "interrupted", "exception", "{", "/", "/", "nothing", "}" ]
[ "equivalent", "semantic", "value", "to", "was", "run", "{", "@", "code", "status", "=", "\"", "run", "|", "notrun", "\"", "}", "on", "the", "xml", "schema" ]
[ "public", "boolean", "was", "run", "(", ")", "{", "return", "was", "run", ";", "}" ]
[ "build", "the", "{", "@", "link", "machine", "node", "}", "object" ]
[ "public", "machine", "node", "build", "(", ")", "{", "machine", "node", "ret", "val", "=", "node", ";", "node", "=", "null", ";", "return", "ret", "val", ";", "}" ]
[ "<", "code", ">", "merge", "equates", "<", "code", ">", "merges", "all", "equates", "for", "the", "indicated", "address", "from", "the", "second", "program", "it", "merges", "them", "into", "the", "merge", "program" ]
[ "void", "merge", "equates", "(", "address", "origin", "address", ")", "{", "address", "result", "address", "=", "origin", "to", "result", "translator", "get", "address", "(", "origin", "address", ")", ";", "if", "(", "result", "address", "=", "=", "null", ")", "{", "return", ";", "}", "equate", "table", "origin", "et", "=", "origin", "program", "get", "equate", "table", "(", ")", ";", "equate", "table", "result", "et", "=", "result", "program", "get", "equate", "table", "(", ")", ";", "/", "/", "check", "each", "operand", "field", "for", "(", "int", "op", "index", "=", "0", ";", "op", "index", "<", "program", "max", "operands", ";", "op", "index", "+", "+", ")", "{", "list", "<", "equate", ">", "origin", "list", "=", "origin", "et", "get", "equates", "(", "origin", "address", ",", "op", "index", ")", ";", "equate", "origin", "equate", "=", "(", "origin", "list", "size", "(", ")", ">", "0", ")", "?", "origin", "list", "get", "(", "origin", "list", "size", "(", ")", "-", "1", ")", ":", "null", ";", "list", "<", "equate", ">", "result", "list", "=", "result", "et", "get", "equates", "(", "result", "address", ",", "op", "index", ")", ";", "equate", "result", "equate", "=", "(", "result", "list", "size", "(", ")", ">", "0", ")", "?", "result", "list", "get", "(", "result", "list", "size", "(", ")", "-", "1", ")", ":", "null", ";", "if", "(", "(", "origin", "equate", "=", "=", "null", "&", "&", "result", "equate", "=", "=", "null", ")", "|", "|", "(", "result", "equate", "!", "=", "null", "&", "&", "result", "equate", "equals", "(", "origin", "equate", ")", ")", ")", "{", "continue", ";", "/", "/", "do", "nothing", "}", "if", "(", "origin", "equate", "!", "=", "null", ")", "{", "long", "value", "=", "origin", "equate", "get", "value", "(", ")", ";", "merge", "equate", "(", "result", "address", ",", "op", "index", ",", "value", ")", ";", "}", "else", "if", "(", "result", "equate", "!", "=", "null", ")", "{", "/", "/", "clear", "the", "old", "equate", "result", "equate", "remove", "reference", "(", "result", "address", ",", "op", "index", ")", ";", "if", "(", "result", "equate", "get", "reference", "count", "(", ")", "=", "=", "0", ")", "{", "result", "et", "remove", "equate", "(", "result", "equate", "get", "name", "(", ")", ")", ";", "}", "}", "}", "}" ]
[ "get", "the", "{", "@", "linkplain", "class", "test", "class", "}", "associated", "with", "this", "{", "@", "code", "merged", "context", "configuration", "}" ]
[ "public", "class", "<", "?", ">", "get", "test", "class", "(", ")", "{", "return", "this", "test", "class", ";", "}" ]
[ "factory", "method", "indicate", "aup", "has", "been", "accepted" ]
[ "public", "static", "acceptable", "usage", "policy", "status", "accepted", "(", "final", "principal", "principal", ")", "{", "return", "new", "acceptable", "usage", "policy", "status", "(", "true", ",", "principal", ")", ";", "}" ]
[ "set", "the", "user", "-", "agent", "header", "'", "s", "value", "(", "by", "adding", "to", "the", "default", "header", "map", ")" ]
[ "public", "api", "client", "set", "user", "agent", "(", "string", "user", "agent", ")", "{", "add", "default", "header", "(", "\"", "user", "-", "agent", "\"", ",", "user", "agent", ")", ";", "return", "this", ";", "}" ]
[ "returns", "a", "random", "integer", "within", "the", "specified", "range" ]
[ "public", "static", "int", "next", "int", "(", "final", "int", "start", "inclusive", ",", "final", "int", "end", "exclusive", ")", "{", "validate", "is", "true", "(", "end", "exclusive", ">", "=", "start", "inclusive", ",", "\"", "start", "value", "must", "be", "smaller", "or", "equal", "to", "end", "value", "\"", ")", ";", "validate", "is", "true", "(", "start", "inclusive", ">", "=", "0", ",", "\"", "both", "range", "values", "must", "be", "non", "-", "negative", "\"", ")", ";", "if", "(", "start", "inclusive", "=", "=", "end", "exclusive", ")", "{", "return", "start", "inclusive", ";", "}", "return", "start", "inclusive", "+", "get", "native", "instance", "(", ")", "next", "int", "(", "end", "exclusive", "-", "start", "inclusive", ")", ";", "}" ]
[ "calculates", "the", "absolute", "expiry", "time", "of", "the", "directive", "from", "the", "{", "@", "link", "cache", "directive", "info", "expiration", "}", "this", "converts", "a", "relative", "expiration", "into", "an", "absolute", "time", "based", "on", "the", "local", "clock" ]
[ "private", "static", "long", "validate", "expiry", "time", "(", "cache", "directive", "info", "info", ",", "long", "max", "relative", "expiry", "time", ")", "throws", "invalid", "request", "exception", "{", "log", "trace", "(", "\"", "validating", "directive", "{", "}", "pool", "max", "relative", "expiry", "time", "{", "}", "\"", ",", "info", ",", "max", "relative", "expiry", "time", ")", ";", "final", "long", "now", "=", "new", "date", "(", ")", "get", "time", "(", ")", ";", "final", "long", "max", "absolute", "expiry", "time", "=", "now", "+", "max", "relative", "expiry", "time", ";", "if", "(", "info", "=", "=", "null", "|", "|", "info", "get", "expiration", "(", ")", "=", "=", "null", ")", "{", "return", "max", "absolute", "expiry", "time", ";", "}", "expiration", "expiry", "=", "info", "get", "expiration", "(", ")", ";", "if", "(", "expiry", "get", "millis", "(", ")", "<", "0l", ")", "{", "throw", "new", "invalid", "request", "exception", "(", "\"", "cannot", "set", "a", "negative", "expiration", ":", "\"", "+", "expiry", "get", "millis", "(", ")", ")", ";", "}", "long", "rel", "expiry", "time", ",", "abs", "expiry", "time", ";", "if", "(", "expiry", "is", "relative", "(", ")", ")", "{", "rel", "expiry", "time", "=", "expiry", "get", "millis", "(", ")", ";", "abs", "expiry", "time", "=", "now", "+", "rel", "expiry", "time", ";", "}", "else", "{", "abs", "expiry", "time", "=", "expiry", "get", "millis", "(", ")", ";", "rel", "expiry", "time", "=", "abs", "expiry", "time", "-", "now", ";", "}", "/", "/", "need", "to", "cap", "the", "expiry", "so", "we", "don", "'", "t", "overflow", "a", "long", "when", "doing", "math", "if", "(", "rel", "expiry", "time", ">", "expiration", "max", "relative", "expiry", "ms", ")", "{", "throw", "new", "invalid", "request", "exception", "(", "\"", "expiration", "\"", "+", "expiry", "to", "string", "(", ")", "+", "\"", "is", "too", "far", "in", "the", "future", "!", "\"", ")", ";", "}", "/", "/", "fail", "if", "the", "requested", "expiry", "is", "greater", "than", "the", "max", "if", "(", "rel", "expiry", "time", ">", "max", "relative", "expiry", "time", ")", "{", "throw", "new", "invalid", "request", "exception", "(", "\"", "expiration", "\"", "+", "expiry", "to", "string", "(", ")", "+", "\"", "exceeds", "the", "max", "relative", "expiration", "time", "of", "\"", "+", "max", "relative", "expiry", "time", "+", "\"", "ms", "\"", ")", ";", "}", "return", "abs", "expiry", "time", ";", "}" ]
[ "helper", "method", "that", "throws", "an", "{", "@", "link", "unsupported", "operation", "exception", "}", "for", "the", "current", "{", "@", "link", "file", "system", "}", "method", "being", "called" ]
[ "private", "void", "method", "not", "supported", "(", ")", "{", "/", "/", "the", "order", "of", "the", "stacktrace", "elements", "is", "(", "from", "top", "to", "bottom", ")", ":", "/", "/", "-", "java", "lang", "thread", "get", "stack", "trace", "/", "/", "-", "org", "apache", "hadoop", "fs", "file", "system", "method", "not", "supported", "/", "/", "-", "<", "the", "file", "system", "method", ">", "/", "/", "therefore", ",", "to", "find", "out", "the", "current", "method", "name", ",", "we", "use", "the", "element", "at", "/", "/", "index", "2", "string", "name", "=", "thread", "current", "thread", "(", ")", "get", "stack", "trace", "(", ")", "[", "2", "]", "get", "method", "name", "(", ")", ";", "throw", "new", "unsupported", "operation", "exception", "(", "get", "class", "(", ")", "get", "canonical", "name", "(", ")", "+", "\"", "does", "not", "support", "method", "\"", "+", "name", ")", ";", "}" ]
[ "similar", "to", "{", "@", "link", "#", "register", "callbacks", "}", ",", "but", "suitable", "for", "use", "when", "multiple", "threads", "will", "be", "creating", "instances", "of", "the", "generated", "class", "the", "thread", "-", "level", "callbacks", "will", "always", "override", "the", "static", "callbacks", "static", "callbacks", "are", "never", "cleared" ]
[ "public", "static", "void", "register", "static", "callbacks", "(", "class", "generated", "class", ",", "callback", "[", "]", "callbacks", ")", "{", "set", "callbacks", "helper", "(", "generated", "class", ",", "callbacks", ",", "set", "static", "callbacks", "name", ")", ";", "}" ]
[ "create", "a", "dir", "path", "for", "test", "the", "value", "of", "{", "@", "link", "cos", "n", "test", "config", "key", "#", "test", "unique", "fork", "id", "key", "}", "will", "be", "used", "if", "it", "is", "set" ]
[ "public", "static", "path", "create", "test", "path", "(", "path", "def", "val", ")", "{", "string", "test", "unique", "fork", "id", "=", "system", "get", "property", "(", "cos", "n", "test", "config", "key", "test", "unique", "fork", "id", "key", ")", ";", "return", "test", "unique", "fork", "id", "=", "=", "null", "?", "def", "val", ":", "new", "path", "(", "\"", "/", "\"", "+", "test", "unique", "fork", "id", ",", "\"", "test", "\"", ")", ";", "}" ]
[ "gets", "a", "local", "vector", "given", "a", "world", "vector" ]
[ "public", "final", "vec", "2", "get", "local", "vector", "(", "vec", "2", "world", "vector", ")", "{", "vec", "2", "out", "=", "new", "vec", "2", "(", ")", ";", "get", "local", "vector", "to", "out", "(", "world", "vector", ",", "out", ")", ";", "return", "out", ";", "}" ]
[ "called", "when", "change", "to", "one", "of", "the", "inputs", "occurs" ]
[ "private", "void", "handle", "input", "change", "(", "property", "change", "event", "evt", ")", "{", "/", "/", "this", "works", "but", "is", "not", "efficient", "/", "/", "refresh", "target", "connections", "(", ")", ";", "/", "/", "a", "more", "efficient", "implementation", "should", "either", "remove", "or", "add", "the", "/", "/", "relevant", "target", "connection", "/", "/", "using", "the", "remove", "target", "connection", "(", "connection", "edit", "part", "connection", ")", "or", "/", "/", "add", "target", "connection", "(", "connection", "edit", "part", "connection", ",", "int", "index", ")", "object", "new", "value", "=", "evt", "get", "new", "value", "(", ")", ";", "object", "old", "value", "=", "evt", "get", "old", "value", "(", ")", ";", "if", "(", "!", "(", "(", "old", "value", "!", "=", "null", ")", "^", "(", "new", "value", "!", "=", "null", ")", ")", ")", "{", "throw", "new", "illegal", "state", "exception", "(", "\"", "exactly", "one", "of", "old", "or", "new", "values", "must", "be", "non", "-", "null", "for", "input", "event", "\"", ")", ";", "}", "if", "(", "new", "value", "!", "=", "null", ")", "{", "/", "/", "add", "new", "connection", "connection", "edit", "part", "edit", "part", "=", "create", "or", "find", "connection", "(", "new", "value", ")", ";", "int", "model", "index", "=", "get", "model", "target", "connections", "(", ")", "index", "of", "(", "new", "value", ")", ";", "add", "target", "connection", "(", "edit", "part", ",", "model", "index", ")", ";", "}", "else", "{", "/", "/", "remove", "connection", "list", "<", "?", ">", "children", "=", "get", "target", "connections", "(", ")", ";", "connection", "edit", "part", "part", "to", "remove", "=", "null", ";", "for", "(", "iterator", "<", "?", ">", "iter", "=", "children", "iterator", "(", ")", ";", "iter", "has", "next", "(", ")", ";", ")", "{", "connection", "edit", "part", "part", "=", "(", "connection", "edit", "part", ")", "iter", "next", "(", ")", ";", "if", "(", "part", "get", "model", "(", ")", "=", "=", "old", "value", ")", "{", "part", "to", "remove", "=", "part", ";", "break", ";", "}", "}", "if", "(", "part", "to", "remove", "!", "=", "null", ")", "remove", "target", "connection", "(", "part", "to", "remove", ")", ";", "}", "get", "content", "pane", "(", ")", "revalidate", "(", ")", ";", "}" ]
[ "compares", "the", "given", "two", "triplets", "of", "strings" ]
[ "private", "int", "compare", "(", "string", "string", "1a", ",", "string", "string", "1b", ",", "string", "string", "1c", ",", "string", "string", "2a", ",", "string", "string", "2b", ",", "string", "string", "2c", ")", "{", "int", "comparison", ";", "return", "(", "comparison", "=", "string", "1a", "compare", "to", "(", "string", "2a", ")", ")", "!", "=", "0", "?", "comparison", ":", "(", "comparison", "=", "string", "1b", "compare", "to", "(", "string", "2b", ")", ")", "!", "=", "0", "?", "comparison", ":", "string", "1c", "compare", "to", "(", "string", "2c", ")", ";", "}" ]
[ "return", "the", "error", "codes", "used", "by", "this", "translator", "usually", "determined", "via", "a", "data", "source" ]
[ "public", "s", "q", "l", "error", "codes", "get", "sql", "error", "codes", "(", ")", "{", "return", "supplier", "utils", "resolve", "(", "this", "sql", "error", "codes", ")", ";", "}" ]
[ "wrap", "the", "provided", "recycler", "so", "that", "calls", "to", "{", "@", "link", "recycler", "#", "obtain", "(", ")", "}", "and", "{", "@", "link", "recycler", "v", "#", "close", "(", ")", "}", "are", "protected", "by", "a", "lock" ]
[ "public", "static", "<", "t", ">", "recycler", "<", "t", ">", "locked", "(", "final", "recycler", "<", "t", ">", "recycler", ")", "{", "return", "new", "filter", "recycler", "<", "t", ">", "(", ")", "{", "private", "final", "object", "lock", ";", "{", "this", "lock", "=", "new", "object", "(", ")", ";", "}", "@", "override", "protected", "recycler", "<", "t", ">", "get", "delegate", "(", ")", "{", "return", "recycler", ";", "}", "@", "override", "public", "recycler", "v", "<", "t", ">", "obtain", "(", ")", "{", "synchronized", "(", "lock", ")", "{", "return", "super", "obtain", "(", ")", ";", "}", "}", "@", "override", "protected", "recycler", "v", "<", "t", ">", "wrap", "(", "final", "recycler", "v", "<", "t", ">", "delegate", ")", "{", "return", "new", "recycler", "v", "<", "t", ">", "(", ")", "{", "@", "override", "public", "void", "close", "(", ")", "{", "synchronized", "(", "lock", ")", "{", "delegate", "close", "(", ")", ";", "}", "}", "@", "override", "public", "t", "v", "(", ")", "{", "return", "delegate", "v", "(", ")", ";", "}", "@", "override", "public", "boolean", "is", "recycled", "(", ")", "{", "return", "delegate", "is", "recycled", "(", ")", ";", "}", "}", ";", "}", "}", ";", "}" ]
[ "get", "a", "metric", "by", "given", "directory", "name" ]
[ "public", "synchronized", "static", "read", "write", "disk", "validator", "metrics", "get", "metric", "(", "string", "dir", "name", ")", "{", "metrics", "system", "ms", "=", "default", "metrics", "system", "instance", "(", ")", ";", "read", "write", "disk", "validator", "metrics", "metrics", "=", "dir", "metrics", "get", "(", "dir", "name", ")", ";", "if", "(", "metrics", "=", "=", "null", ")", "{", "metrics", "=", "new", "read", "write", "disk", "validator", "metrics", "(", ")", ";", "/", "/", "register", "with", "the", "metrics", "systems", "if", "(", "ms", "!", "=", "null", ")", "{", "metrics", "=", "ms", "register", "(", "source", "name", "(", "dir", "name", ")", ",", "\"", "metrics", "for", "directory", ":", "\"", "+", "dir", "name", ",", "metrics", ")", ";", "}", "dir", "metrics", "put", "(", "dir", "name", ",", "metrics", ")", ";", "}", "return", "metrics", ";", "}" ]
[ "sets", "the", "{", "@", "link", "notification", "listener", "}", "please", "note", "that", "you", "should", "call", "this", "method", "before", "you", "call", "{", "@", "link", "#", "set", "player", "(", "player", ")", "}", "or", "you", "may", "not", "get", "the", "{", "@", "link", "notification", "listener", "#", "on", "notification", "started", "(", "int", ",", "notification", ")", "}", "called", "on", "your", "listener" ]
[ "public", "final", "void", "set", "notification", "listener", "(", "notification", "listener", "notification", "listener", ")", "{", "this", "notification", "listener", "=", "notification", "listener", ";", "}" ]
[ "determine", "the", "number", "of", "shards", "in", "each", "index", "of", "a", "clone", "operation", "and", "update", "the", "cluster", "state", "accordingly" ]
[ "private", "void", "start", "cloning", "(", "repository", "repository", ",", "snapshots", "in", "progress", "entry", "clone", "entry", ")", "{", "final", "list", "<", "index", "id", ">", "indices", "=", "clone", "entry", "indices", "(", ")", ";", "final", "snapshot", "id", "source", "snapshot", "=", "clone", "entry", "source", "(", ")", ";", "final", "snapshot", "target", "snapshot", "=", "clone", "entry", "snapshot", "(", ")", ";", "final", "executor", "executor", "=", "thread", "pool", "executor", "(", "thread", "pool", "names", "snapshot", ")", ";", "/", "/", "exception", "handler", "for", "io", "exceptions", "with", "loading", "index", "and", "repo", "metadata", "final", "consumer", "<", "exception", ">", "on", "failure", "=", "e", "-", ">", "{", "initializing", "clones", "remove", "(", "target", "snapshot", ")", ";", "logger", "info", "(", "(", ")", "-", ">", "new", "parameterized", "message", "(", "\"", "failed", "to", "start", "snapshot", "clone", "[", "{", "}", "]", "\"", ",", "clone", "entry", ")", ",", "e", ")", ";", "remove", "failed", "snapshot", "from", "cluster", "state", "(", "target", "snapshot", ",", "e", ",", "null", ")", ";", "}", ";", "/", "/", "1", "step", ",", "load", "snapshot", "info", "to", "make", "sure", "that", "source", "snapshot", "was", "successful", "for", "the", "indices", "we", "want", "to", "clone", "/", "/", "todo", ":", "we", "could", "skip", "this", "step", "for", "snapshots", "with", "state", "success", "final", "step", "listener", "<", "snapshot", "info", ">", "snapshot", "info", "listener", "=", "new", "step", "listener", "<", ">", "(", ")", ";", "executor", "execute", "(", "action", "runnable", "supply", "(", "snapshot", "info", "listener", ",", "(", ")", "-", ">", "repository", "get", "snapshot", "info", "(", "source", "snapshot", ")", ")", ")", ";", "final", "step", "listener", "<", "collection", "<", "tuple", "<", "index", "id", ",", "integer", ">", ">", ">", "all", "shard", "counts", "listener", "=", "new", "step", "listener", "<", ">", "(", ")", ";", "final", "grouped", "action", "listener", "<", "tuple", "<", "index", "id", ",", "integer", ">", ">", "shard", "count", "listener", "=", "new", "grouped", "action", "listener", "<", ">", "(", "all", "shard", "counts", "listener", ",", "indices", "size", "(", ")", ")", ";", "snapshot", "info", "listener", "when", "complete", "(", "snapshot", "info", "-", ">", "{", "for", "(", "index", "id", "index", "id", ":", "indices", ")", "{", "if", "(", "restore", "service", "failed", "(", "snapshot", "info", ",", "index", "id", "get", "name", "(", ")", ")", ")", "{", "throw", "new", "snapshot", "exception", "(", "target", "snapshot", ",", "\"", "can", "'", "t", "clone", "index", "[", "\"", "+", "index", "id", "+", "\"", "]", "because", "its", "snapshot", "was", "not", "successful", "\"", ")", ";", "}", "}", "/", "/", "2", "step", ",", "load", "the", "number", "of", "shards", "we", "have", "in", "each", "index", "to", "be", "cloned", "from", "the", "index", "metadata", "repository", "get", "repository", "data", "(", "action", "listener", "wrap", "(", "repository", "data", "-", ">", "{", "for", "(", "index", "id", "index", ":", "indices", ")", "{", "executor", "execute", "(", "action", "runnable", "supply", "(", "shard", "count", "listener", ",", "(", ")", "-", ">", "{", "final", "index", "metadata", "metadata", "=", "repository", "get", "snapshot", "index", "meta", "data", "(", "repository", "data", ",", "source", "snapshot", ",", "index", ")", ";", "return", "tuple", "tuple", "(", "index", ",", "metadata", "get", "number", "of", "shards", "(", ")", ")", ";", "}", ")", ")", ";", "}", "}", ",", "on", "failure", ")", ")", ";", "}", ",", "on", "failure", ")", ";", "/", "/", "3", "step", ",", "we", "have", "all", "the", "shard", "counts", ",", "now", "update", "the", "cluster", "state", "to", "have", "clone", "jobs", "in", "the", "snap", "entry", "all", "shard", "counts", "listener", "when", "complete", "(", "counts", "-", ">", "repository", "execute", "consistent", "state", "update", "(", "repo", "data", "-", ">", "new", "cluster", "state", "update", "task", "(", ")", "{", "private", "snapshots", "in", "progress", "entry", "updated", "entry", ";", "@", "override", "public", "cluster", "state", "execute", "(", "cluster", "state", "current", "state", ")", "{", "final", "snapshots", "in", "progress", "snapshots", "in", "progress", "=", "current", "state", "custom", "(", "snapshots", "in", "progress", "type", ",", "snapshots", "in", "progress", "empty", ")", ";", "final", "list", "<", "snapshots", "in", "progress", "entry", ">", "updated", "entries", "=", "new", "array", "list", "<", ">", "(", "snapshots", "in", "progress", "entries", "(", ")", ")", ";", "boolean", "changed", "=", "false", ";", "final", "string", "local", "node", "id", "=", "current", "state", "nodes", "(", ")", "get", "local", "node", "id", "(", ")", ";", "final", "string", "repo", "name", "=", "clone", "entry", "repository", "(", ")", ";", "final", "shard", "generations", "shard", "generations", "=", "repo", "data", "shard", "generations", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "updated", "entries", "size", "(", ")", ";", "i", "+", "+", ")", "{", "final", "snapshots", "in", "progress", "entry", "entry", "=", "updated", "entries", "get", "(", "i", ")", ";", "if", "(", "clone", "entry", "repository", "(", ")", "equals", "(", "entry", "repository", "(", ")", ")", "=", "=", "false", ")", "{", "/", "/", "different", "repo", "=", ">", "just", "continue", "without", "modification", "continue", ";", "}", "if", "(", "clone", "entry", "snapshot", "(", ")", "get", "snapshot", "id", "(", ")", "equals", "(", "entry", "snapshot", "(", ")", "get", "snapshot", "id", "(", ")", ")", ")", "{", "final", "immutable", "open", "map", "builder", "<", "repository", "shard", "id", ",", "shard", "snapshot", "status", ">", "clones", "builder", "=", "immutable", "open", "map", "builder", "(", ")", ";", "final", "boolean", "ready", "to", "execute", "=", "current", "state", "custom", "(", "snapshot", "deletions", "in", "progress", "type", ",", "snapshot", "deletions", "in", "progress", "empty", ")", "get", "entries", "(", ")", "stream", "(", ")", "none", "match", "(", "e", "-", ">", "e", "repository", "(", ")", "equals", "(", "repo", "name", ")", "&", "&", "e", "state", "(", ")", "=", "=", "snapshot", "deletions", "in", "progress", "state", "started", ")", ";", "final", "in", "flight", "shard", "snapshot", "states", "in", "flight", "shard", "states", ";", "if", "(", "ready", "to", "execute", ")", "{", "in", "flight", "shard", "states", "=", "in", "flight", "shard", "snapshot", "states", "for", "repo", "(", "repo", "name", ",", "snapshots", "in", "progress", "entries", "(", ")", ")", ";", "}", "else", "{", "/", "/", "no", "need", "to", "compute", "these", ",", "we", "'", "ll", "mark", "all", "shards", "as", "queued", "anyway", "because", "we", "wait", "for", "the", "delete", "in", "flight", "shard", "states", "=", "null", ";", "}", "boolean", "queued", "shards", "=", "false", ";", "for", "(", "tuple", "<", "index", "id", ",", "integer", ">", "count", ":", "counts", ")", "{", "for", "(", "int", "shard", "id", "=", "0", ";", "shard", "id", "<", "count", "v", "2", "(", ")", ";", "shard", "id", "+", "+", ")", "{", "final", "repository", "shard", "id", "repo", "shard", "id", "=", "new", "repository", "shard", "id", "(", "count", "v", "1", "(", ")", ",", "shard", "id", ")", ";", "final", "string", "index", "name", "=", "repo", "shard", "id", "index", "name", "(", ")", ";", "if", "(", "ready", "to", "execute", "=", "=", "false", "|", "|", "in", "flight", "shard", "states", "is", "active", "(", "index", "name", ",", "shard", "id", ")", ")", "{", "clones", "builder", "put", "(", "repo", "shard", "id", ",", "shard", "snapshot", "status", "unassigned", "queued", ")", ";", "queued", "shards", "=", "true", ";", "}", "else", "{", "clones", "builder", "put", "(", "repo", "shard", "id", ",", "new", "shard", "snapshot", "status", "(", "local", "node", "id", ",", "in", "flight", "shard", "states", "generation", "for", "shard", "(", "repo", "shard", "id", "index", "(", ")", ",", "shard", "id", ",", "shard", "generations", ")", ")", ")", ";", "}", "}", "}", "updated", "entry", "=", "clone", "entry", "with", "clones", "(", "clones", "builder", "build", "(", ")", ")", ";", "if", "(", "queued", "shards", ")", "{", "/", "/", "we", "queued", "up", "some", "shards", "based", "on", "the", "in", "-", "flight", "operations", "found", "in", "all", "snapshots", "for", "the", "current", "/", "/", "repository", ",", "so", "in", "order", "to", "make", "sure", "we", "don", "'", "t", "set", "a", "shard", "to", "queued", "before", "(", "as", "in", "before", "it", "in", "the", "/", "/", "`", "updated", "entries", "`", "list", ")", "one", "that", "is", "actively", "executing", "we", "just", "put", "it", "to", "the", "back", "of", "the", "list", "as", "if", "we", "had", "/", "/", "just", "created", "the", "entry", "/", "/", "todo", ":", "if", "we", "could", "eventually", "drop", "the", "snapshot", "clone", "init", "phase", "we", "don", "'", "t", "need", "this", "any", "longer", "updated", "entries", "remove", "(", "i", ")", ";", "updated", "entries", "add", "(", "updated", "entry", ")", ";", "}", "else", "{", "updated", "entries", "set", "(", "i", ",", "updated", "entry", ")", ";", "}", "changed", "=", "true", ";", "break", ";", "}", "}", "return", "update", "with", "snapshots", "(", "current", "state", ",", "changed", "?", "snapshots", "in", "progress", "of", "(", "updated", "entries", ")", ":", "null", ",", "null", ")", ";", "}", "@", "override", "public", "void", "on", "failure", "(", "string", "source", ",", "exception", "e", ")", "{", "initializing", "clones", "remove", "(", "target", "snapshot", ")", ";", "logger", "info", "(", "(", ")", "-", ">", "new", "parameterized", "message", "(", "\"", "failed", "to", "start", "snapshot", "clone", "[", "{", "}", "]", "\"", ",", "clone", "entry", ")", ",", "e", ")", ";", "fail", "all", "listeners", "on", "master", "fail", "over", "(", "e", ")", ";", "}", "@", "override", "public", "void", "cluster", "state", "processed", "(", "string", "source", ",", "cluster", "state", "old", "state", ",", "cluster", "state", "new", "state", ")", "{", "initializing", "clones", "remove", "(", "target", "snapshot", ")", ";", "if", "(", "updated", "entry", "!", "=", "null", ")", "{", "final", "snapshot", "target", "=", "updated", "entry", "snapshot", "(", ")", ";", "final", "snapshot", "id", "source", "snapshot", "=", "updated", "entry", "source", "(", ")", ";", "for", "(", "object", "object", "cursor", "<", "repository", "shard", "id", ",", "shard", "snapshot", "status", ">", "index", "clone", ":", "updated", "entry", "clones", "(", ")", ")", "{", "final", "shard", "snapshot", "status", "shard", "status", "before", "=", "index", "clone", "value", ";", "if", "(", "shard", "status", "before", "state", "(", ")", "!", "=", "shard", "state", "init", ")", "{", "continue", ";", "}", "final", "repository", "shard", "id", "repo", "shard", "id", "=", "index", "clone", "key", ";", "run", "ready", "clone", "(", "target", ",", "source", "snapshot", ",", "shard", "status", "before", ",", "repo", "shard", "id", ",", "repository", ")", ";", "}", "}", "else", "{", "/", "/", "extremely", "unlikely", "corner", "case", "of", "master", "failing", "over", "between", "between", "starting", "the", "clone", "and", "/", "/", "starting", "shard", "clones", "logger", "warn", "(", "\"", "did", "not", "find", "expected", "entry", "[", "{", "}", "]", "in", "the", "cluster", "state", "\"", ",", "clone", "entry", ")", ";", "}", "}", "}", ",", "\"", "start", "snapshot", "clone", "\"", ",", "on", "failure", ")", ",", "on", "failure", ")", ";", "}" ]
[ "returns", "a", "{", "@", "link", "properties", "}", "object", "from", "this", "{", "@", "link", "parameter", "tool", "}" ]
[ "public", "properties", "get", "properties", "(", ")", "{", "properties", "props", "=", "new", "properties", "(", ")", ";", "props", "put", "all", "(", "this", "data", ")", ";", "return", "props", ";", "}" ]
[ "add", "a", "bunch", "of", "ips", "to", "the", "file", "check", "for", "inclusion", "check", "for", "exclusion" ]
[ "public", "void", "test", "subnets", "and", "i", "ps", "(", ")", "throws", "i", "o", "exception", "{", "string", "[", "]", "ips", "=", "{", "\"", "10", "119", "103", "112", "\"", ",", "\"", "10", "221", "102", "0", "/", "23", "\"", "}", ";", "create", "file", "with", "entries", "(", "\"", "ips", "txt", "\"", ",", "ips", ")", ";", "i", "p", "list", "ip", "list", "=", "new", "file", "based", "i", "p", "list", "(", "\"", "ips", "txt", "\"", ")", ";", "assert", "true", "(", "\"", "10", "119", "103", "112", "is", "not", "in", "the", "list", "\"", ",", "ip", "list", "is", "in", "(", "\"", "10", "119", "103", "112", "\"", ")", ")", ";", "assert", "false", "(", "\"", "10", "119", "103", "113", "is", "in", "the", "list", "\"", ",", "ip", "list", "is", "in", "(", "\"", "10", "119", "103", "113", "\"", ")", ")", ";", "assert", "true", "(", "\"", "10", "221", "102", "0", "is", "not", "in", "the", "list", "\"", ",", "ip", "list", "is", "in", "(", "\"", "10", "221", "102", "0", "\"", ")", ")", ";", "assert", "true", "(", "\"", "10", "221", "102", "1", "is", "not", "in", "the", "list", "\"", ",", "ip", "list", "is", "in", "(", "\"", "10", "221", "102", "1", "\"", ")", ")", ";", "assert", "true", "(", "\"", "10", "221", "103", "1", "is", "not", "in", "the", "list", "\"", ",", "ip", "list", "is", "in", "(", "\"", "10", "221", "103", "1", "\"", ")", ")", ";", "assert", "true", "(", "\"", "10", "221", "103", "255", "is", "not", "in", "the", "list", "\"", ",", "ip", "list", "is", "in", "(", "\"", "10", "221", "103", "255", "\"", ")", ")", ";", "assert", "false", "(", "\"", "10", "221", "104", "0", "is", "in", "the", "list", "\"", ",", "ip", "list", "is", "in", "(", "\"", "10", "221", "104", "0", "\"", ")", ")", ";", "assert", "false", "(", "\"", "10", "221", "104", "1", "is", "in", "the", "list", "\"", ",", "ip", "list", "is", "in", "(", "\"", "10", "221", "104", "1", "\"", ")", ")", ";", "}" ]
[ "allocate", "a", "new", "promise", "which", "will", "be", "used", "to", "aggregate", "the", "overall", "success", "of", "this", "promise", "aggregator" ]
[ "public", "channel", "promise", "new", "promise", "(", ")", "{", "assert", "!", "done", "allocating", ":", "\"", "done", "allocating", "no", "more", "promises", "can", "be", "allocated", "\"", ";", "+", "+", "expected", "count", ";", "return", "this", ";", "}" ]
[ "get", "array", "number" ]
[ "public", "list", "<", "big", "decimal", ">", "get", "array", "number", "(", ")", "{", "return", "array", "number", ";", "}" ]
[ "creates", "and", "opens", "an", "output", "stream", "to", "write", "data", "to", "the", "block", "blob", "using", "the", "specified", "operation", "context" ]
[ "output", "stream", "open", "output", "stream", "(", "blob", "request", "options", "options", ",", "operation", "context", "op", "context", ")", "throws", "storage", "exception", ";" ]
[ "<", "code", ">", "required", "string", "message", "=", "1", ";", "<", "code", ">" ]
[ "public", "com", "google", "protobuf", "byte", "string", "get", "message", "bytes", "(", ")", "{", "object", "ref", "=", "message", ";", "if", "(", "ref", "instanceof", "string", ")", "{", "com", "google", "protobuf", "byte", "string", "b", "=", "com", "google", "protobuf", "byte", "string", "copy", "from", "utf", "8", "(", "(", "string", ")", "ref", ")", ";", "message", "=", "b", ";", "return", "b", ";", "}", "else", "{", "return", "(", "com", "google", "protobuf", "byte", "string", ")", "ref", ";", "}", "}" ]
[ "given", "an", "index", ",", "either", "find", "an", "existing", "borland", "segment", ",", "or", "create", "a", "new", "one", "borland", "compilers", "can", "introduce", "special", "segments", "with", "a", "separate", "indexing", "scheme", "these", "need", "to", "be", "stored", "in", "a", "separate", "list", ",", "while", "the", "loader", "needs", "to", "look", "up", "segments", "by", "index" ]
[ "private", "omf", "segment", "header", "create", "or", "find", "borland", "segment", "(", "int", "index", ",", "int", "datatype", ")", "{", "if", "(", "extra", "seg", "=", "=", "null", ")", "{", "extra", "seg", "=", "new", "array", "list", "<", "omf", "segment", "header", ">", "(", ")", ";", "}", "while", "(", "extra", "seg", "size", "(", ")", "<", "index", ")", "{", "extra", "seg", "add", "(", "null", ")", ";", "}", "omf", "segment", "header", "segment", "=", "extra", "seg", "get", "(", "index", "-", "1", ")", ";", "if", "(", "segment", "=", "=", "null", ")", "{", "segment", "=", "new", "omf", "segment", "header", "(", "index", ",", "datatype", ")", ";", "extra", "seg", "set", "(", "index", "-", "1", ",", "segment", ")", ";", "}", "return", "segment", ";", "}" ]
[ "return", "the", "path", "matcher", "implementation", "to", "use", "for", "matching", "destinations" ]
[ "public", "path", "matcher", "get", "path", "matcher", "(", ")", "{", "return", "this", "path", "matcher", ";", "}" ]
[ "tests", "that", "the", "default", "slice", "(", ")", "behavior", "is", "correct", "when", "the", "source", "is", "sliced", "starting", "at", "an", "offset", "that", "is", "greater", "than", "the", "current", "length", "of", "the", "source", ",", "a", "stream", "is", "then", "opened", "to", "that", "source", ",", "and", "finally", "additional", "bytes", "are", "appended", "to", "the", "source", "before", "the", "stream", "is", "read", "without", "special", "handling", ",", "it", "'", "s", "possible", "to", "have", "reads", "of", "the", "open", "stream", "start", "before", "the", "offset", "at", "which", "the", "slice", "is", "supposed", "to", "start" ]
[ "public", "void", "test", "slice", "appending", "after", "slicing", "(", ")", "throws", "i", "o", "exception", "{", "/", "/", "source", "of", "length", "5", "appendable", "byte", "source", "source", "=", "new", "appendable", "byte", "source", "(", "new", "pre", "filled", "byte", "array", "(", "5", ")", ")", ";", "/", "/", "slice", "it", "starting", "at", "offset", "10", "byte", "source", "slice", "=", "source", "slice", "(", "10", ",", "5", ")", ";", "/", "/", "open", "a", "stream", "to", "the", "slice", "input", "stream", "in", "=", "slice", "open", "stream", "(", ")", ";", "/", "/", "append", "10", "more", "bytes", "to", "the", "source", "source", "append", "(", "new", "pre", "filled", "byte", "array", "(", "5", ",", "10", ")", ")", ";", "/", "/", "the", "stream", "reports", "no", "bytes", "importantly", ",", "it", "doesn", "'", "t", "read", "the", "byte", "at", "index", "5", "when", "it", "/", "/", "should", "be", "reading", "the", "byte", "at", "index", "10", "/", "/", "we", "could", "use", "a", "custom", "input", "stream", "instead", "to", "make", "the", "read", "start", "at", "index", "10", ",", "but", "since", "this", "/", "/", "is", "a", "racy", "situation", "anyway", ",", "this", "behavior", "seems", "reasonable", "assert", "equals", "(", "-", "1", ",", "in", "read", "(", ")", ")", ";", "}" ]
[ "produce", "unauthorized", "error", "view", "model", "and", "view" ]
[ "public", "static", "model", "and", "view", "produce", "unauthorized", "error", "view", "(", "final", "exception", "ex", ")", "{", "val", "error", "=", "new", "unauthorized", "service", "exception", "(", "ex", ",", "unauthorized", "service", "exception", "code", "unauthz", "service", ",", "string", "utils", "empty", ")", ";", "return", "produce", "error", "view", "(", "error", ")", ";", "}" ]
[ "read", "full", "annotation", "metadata", "for", "the", "underlying", "class", ",", "including", "metadata", "for", "annotated", "methods" ]
[ "annotation", "metadata", "get", "annotation", "metadata", "(", ")", ";" ]
[ "set", "data", "specific", "to", "a", "row", ",", "as", "used", "during", "the", "rendering", "phase" ]
[ "public", "void", "set", "row", "data", "(", "int", "row", ",", "object", "row", "object", ")", "{", "this", "row", "view", "index", "=", "row", ";", "this", "row", "object", "ref", "=", "new", "weak", "reference", "<", ">", "(", "row", "object", ")", ";", "}" ]
[ "returns", "whether", "the", "player", "is", "currently", "playing", "an", "ad" ]
[ "boolean", "is", "playing", "ad", "(", ")", ";" ]
[ "when", "this", "response", "will", "expired", "as", "a", "timestamp", "in", "milliseconds", "since", "epoch" ]
[ "public", "long", "get", "expiration", "time", "(", ")", "{", "return", "expiration", "time", "millis", ";", "}" ]
[ "convenience", "method", "for", "creating", "unmapped", "configs" ]
[ "public", "static", "values", "source", "config", "resolve", "unmapped", "(", "values", "source", "type", "values", "source", "type", ",", "aggregation", "context", "context", ")", "{", "return", "new", "values", "source", "config", "(", "values", "source", "type", ",", "null", ",", "true", ",", "null", ",", "null", ",", "null", ",", "null", ",", "null", ",", "context", ")", ";", "}" ]
[ "get", "the", "counts", "of", "warnings", "in", "the", "time", "periods", "provided", "note", "that", "the", "counts", "provided", "by", "this", "function", "may", "differ", "from", "the", "ones", "provided", "by", "get", "warning", "messages", "and", "counts", "since", "the", "message", "store", "is", "purged", "at", "regular", "intervals", "to", "prevent", "it", "from", "growing", "without", "bounds", ",", "while", "the", "store", "for", "the", "counts", "is", "purged", "less", "frequently" ]
[ "public", "list", "<", "integer", ">", "get", "warning", "counts", "(", "list", "<", "long", ">", "cutoffs", ")", "{", "return", "this", "get", "counts", "(", "warnings", "timestamp", "count", ",", "cutoffs", ")", ";", "}" ]