docstring_tokens
list
code_tokens
list
[ "get", "date", "time" ]
[ "public", "offset", "date", "time", "get", "date", "time", "(", ")", "{", "return", "date", "time", ";", "}" ]
[ "retrieves", "the", "{", "@", "link", "track", "group", "array", "}", "corresponding", "to", "a", "{", "@", "link", "media", "item", "}", "this", "is", "equivalent", "to", "using", "{", "@", "code", "retrieve", "metadata", "(", "new", "default", "media", "source", "factory", "(", "context", ")", ",", "media", "item", ")", "}" ]
[ "public", "static", "listenable", "future", "<", "track", "group", "array", ">", "retrieve", "metadata", "(", "context", "context", ",", "media", "item", "media", "item", ")", "{", "return", "retrieve", "metadata", "(", "new", "default", "media", "source", "factory", "(", "context", ")", ",", "media", "item", ")", ";", "}" ]
[ "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", "\"", ")", ";", "}" ]
[ "joins", "the", "specified", "multicast", "group", "at", "the", "specified", "interface", "and", "notifies", "the", "{", "@", "link", "channel", "future", "}", "once", "the", "operation", "completes", "the", "given", "{", "@", "link", "channel", "future", "}", "will", "be", "notified", "and", "also", "returned" ]
[ "channel", "future", "join", "group", "(", "inet", "address", "multicast", "address", ",", "network", "interface", "network", "interface", ",", "inet", "address", "source", ",", "channel", "promise", "future", ")", ";" ]
[ "static", "utility", "to", "parse", "a", "field", "of", "type", "timestamp", "from", "a", "byte", "sequence", "that", "represents", "text", "characters", "(", "such", "as", "when", "read", "from", "a", "file", "stream", ")" ]
[ "public", "static", "final", "timestamp", "parse", "field", "(", "byte", "[", "]", "bytes", ",", "int", "start", "pos", ",", "int", "length", ",", "char", "delimiter", ")", "{", "final", "int", "limited", "len", "=", "next", "string", "length", "(", "bytes", ",", "start", "pos", ",", "length", ",", "delimiter", ")", ";", "if", "(", "limited", "len", ">", "0", "&", "&", "(", "character", "is", "whitespace", "(", "bytes", "[", "start", "pos", "]", ")", "|", "|", "character", "is", "whitespace", "(", "bytes", "[", "start", "pos", "+", "limited", "len", "-", "1", "]", ")", ")", ")", "{", "throw", "new", "number", "format", "exception", "(", "\"", "there", "is", "leading", "or", "trailing", "whitespace", "in", "the", "numeric", "field", "\"", ")", ";", "}", "final", "string", "str", "=", "new", "string", "(", "bytes", ",", "start", "pos", ",", "limited", "len", ",", "config", "constants", "default", "charset", ")", ";", "return", "timestamp", "value", "of", "(", "str", ")", ";", "}" ]
[ "tests", "all", "top", "-", "level", "{", "@", "link", "serializable", "}", "classes", "in", "the", "package", "for", "a", "serializable", "class", "{", "@", "code", "c", "}", ":", "if", "{", "@", "code", "c", "}", "explicitly", "implements", "{", "@", "link", "object", "#", "equals", "}", ",", "the", "deserialized", "instance", "will", "be", "checked", "to", "be", "equal", "to", "the", "instance", "before", "serialization", "if", "{", "@", "code", "c", "}", "doesn", "'", "t", "explicitly", "implement", "{", "@", "code", "equals", "}", "but", "instead", "inherits", "it", "from", "a", "superclass", ",", "no", "equality", "check", "is", "done", "on", "the", "deserialized", "instance", "because", "it", "'", "s", "not", "clear", "whether", "the", "author", "intended", "for", "the", "class", "to", "be", "a", "value", "type", "if", "a", "constructor", "or", "factory", "method", "takes", "a", "parameter", "whose", "type", "is", "interface", ",", "a", "dynamic", "proxy", "will", "be", "passed", "to", "the", "method", "it", "'", "s", "possible", "that", "the", "method", "body", "expects", "an", "instance", "method", "of", "the", "passed", "-", "in", "proxy", "to", "be", "of", "a", "certain", "value", "yet", "the", "proxy", "isn", "'", "t", "aware", "of", "the", "assumption", ",", "in", "which", "case", "the", "equality", "check", "before", "and", "after", "serialization", "will", "fail", "if", "the", "constructor", "or", "factory", "method", "takes", "a", "parameter", "that", "{", "@", "link", "abstract", "package", "sanity", "tests", "}", "doesn", "'", "t", "know", "how", "to", "construct", ",", "the", "test", "will", "fail", "if", "there", "is", "no", "visible", "constructor", "or", "visible", "static", "factory", "method", "declared", "by", "{", "@", "code", "c", "}", ",", "{", "@", "code", "c", "}", "is", "skipped", "for", "serialization", "test", ",", "even", "if", "it", "implements", "{", "@", "link", "serializable", "}", "serialization", "test", "is", "not", "performed", "on", "method", "return", "values", "unless", "the", "method", "is", "a", "visible", "static", "factory", "method", "whose", "return", "type", "is", "{", "@", "code", "c", "}", "or", "{", "@", "code", "c", "}", "'", "s", "subtype", "in", "all", "cases", ",", "if", "{", "@", "code", "c", "}", "needs", "custom", "logic", "for", "testing", "serialization", ",", "you", "can", "add", "an", "explicit", "{", "@", "code", "test", "serializable", "(", ")", "}", "test", "in", "the", "corresponding", "{", "@", "code", "c", "test", "}", "class", ",", "and", "{", "@", "code", "c", "}", "will", "be", "excluded", "from", "automated", "serialization", "test", "performed", "by", "this", "method" ]
[ "public", "void", "test", "serializable", "(", ")", "throws", "exception", "{", "/", "/", "todo", ":", "when", "we", "use", "@", "before", "class", ",", "we", "can", "pay", "the", "cost", "of", "class", "path", "scanning", "only", "once", "for", "(", "class", "<", "?", ">", "class", "to", "test", ":", "find", "classes", "to", "test", "(", "load", "classes", "in", "package", "(", ")", ",", "serializable", "test", "method", "names", ")", ")", "{", "if", "(", "serializable", "class", "is", "assignable", "from", "(", "class", "to", "test", ")", ")", "{", "try", "{", "object", "instance", "=", "tester", "instantiate", "(", "class", "to", "test", ")", ";", "if", "(", "instance", "!", "=", "null", ")", "{", "if", "(", "is", "equals", "defined", "(", "class", "to", "test", ")", ")", "{", "serializable", "tester", "reserialize", "and", "assert", "(", "instance", ")", ";", "}", "else", "{", "serializable", "tester", "reserialize", "(", "instance", ")", ";", "}", "}", "}", "catch", "(", "throwable", "e", ")", "{", "throw", "sanity", "error", "(", "class", "to", "test", ",", "serializable", "test", "method", "names", ",", "\"", "serializable", "test", "\"", ",", "e", ")", ";", "}", "}", "}", "}" ]
[ "model", "tests", "for", "additional", "properties", "class" ]
[ "public", "void", "test", "additional", "properties", "class", "(", ")", "{", "/", "/", "todo", ":", "test", "additional", "properties", "class", "}" ]
[ "gets", "the", "id", "of", "the", "resource", "in", "which", "the", "task", "manager", "is", "started", "the", "format", "of", "this", "depends", "on", "how", "the", "task", "manager", "is", "started", ":", "if", "the", "task", "manager", "is", "started", "via", "yarn", ",", "this", "is", "the", "yarn", "container", "id", "if", "the", "task", "manager", "is", "started", "via", "mesos", ",", "this", "is", "the", "mesos", "container", "id", "if", "the", "task", "manager", "is", "started", "in", "standalone", "mode", ",", "or", "via", "a", "mini", "cluster", ",", "this", "is", "a", "random", "id", "other", "deployment", "modes", "can", "set", "the", "resource", "id", "in", "other", "ways" ]
[ "public", "resource", "i", "d", "get", "resource", "i", "d", "(", ")", "{", "return", "resource", "i", "d", ";", "}" ]
[ "called", "after", "data", "changes", "to", "add", "aggregation", "tasks" ]
[ "public", "void", "add", "merge", "task", "(", "string", "data", "id", ",", "string", "group", "id", ",", "string", "tenant", ",", "string", "client", "ip", ")", "{", "if", "(", "!", "can", "execute", "(", ")", ")", "{", "return", ";", "}", "merge", "data", "task", "task", "=", "new", "merge", "data", "task", "(", "data", "id", ",", "group", "id", ",", "tenant", ",", "client", "ip", ")", ";", "merge", "tasks", "add", "task", "(", "task", "get", "id", "(", ")", ",", "task", ")", ";", "}" ]
[ "a", "lazy", "{", "@", "link", "observable", "}", "that", "will", "execute", "when", "subscribed", "to", "see", "https", ":", "github", "com", "netflix", "rx", "javawiki", "for", "more", "information" ]
[ "public", "observable", "<", "response", "type", ">", "to", "observable", "(", "scheduler", "observe", "on", ")", "{", "return", "observable", "defer", "(", "new", "func", "0", "<", "observable", "<", "response", "type", ">", ">", "(", ")", "{", "@", "override", "public", "observable", "<", "response", "type", ">", "call", "(", ")", "{", "final", "boolean", "is", "request", "cache", "enabled", "=", "get", "properties", "(", ")", "request", "cache", "enabled", "(", ")", "get", "(", ")", ";", "/", "*", "try", "from", "cache", "first", "*", "/", "if", "(", "is", "request", "cache", "enabled", ")", "{", "hystrix", "cached", "observable", "<", "response", "type", ">", "from", "cache", "=", "request", "cache", "get", "(", "get", "cache", "key", "(", ")", ")", ";", "if", "(", "from", "cache", "!", "=", "null", ")", "{", "metrics", "mark", "response", "from", "cache", "(", ")", ";", "return", "from", "cache", "to", "observable", "(", ")", ";", "}", "}", "request", "collapser", "<", "batch", "return", "type", ",", "response", "type", ",", "request", "argument", "type", ">", "request", "collapser", "=", "collapser", "factory", "get", "request", "collapser", "(", "collapser", "instance", "wrapper", ")", ";", "observable", "<", "response", "type", ">", "response", "=", "request", "collapser", "submit", "request", "(", "get", "request", "argument", "(", ")", ")", ";", "metrics", "mark", "request", "batched", "(", ")", ";", "if", "(", "is", "request", "cache", "enabled", ")", "{", "/", "*", "*", "a", "race", "can", "occur", "here", "with", "multiple", "threads", "queuing", "but", "only", "one", "will", "be", "cached", "*", "this", "means", "we", "can", "have", "some", "duplication", "of", "requests", "in", "a", "thread", "-", "race", "but", "we", "'", "re", "okay", "*", "with", "having", "some", "inefficiency", "in", "duplicate", "requests", "in", "the", "same", "batch", "*", "and", "then", "subsequent", "requests", "will", "retrieve", "a", "previously", "cached", "observable", "*", "*", "if", "this", "is", "an", "issue", "we", "can", "make", "a", "lazy", "-", "future", "that", "gets", "set", "in", "the", "cache", "*", "then", "only", "the", "winning", "'", "put", "'", "will", "be", "invoked", "to", "actually", "call", "'", "submit", "request", "'", "*", "/", "hystrix", "cached", "observable", "<", "response", "type", ">", "to", "cache", "=", "hystrix", "cached", "observable", "from", "(", "response", ")", ";", "hystrix", "cached", "observable", "<", "response", "type", ">", "from", "cache", "=", "request", "cache", "put", "if", "absent", "(", "get", "cache", "key", "(", ")", ",", "to", "cache", ")", ";", "if", "(", "from", "cache", "=", "=", "null", ")", "{", "return", "to", "cache", "to", "observable", "(", ")", ";", "}", "else", "{", "return", "from", "cache", "to", "observable", "(", ")", ";", "}", "}", "return", "response", ";", "}", "}", ")", ";", "}" ]
[ "test", "that", "the", "nn", "handles", "the", "corruption", "properly", "after", "it", "crashes", "just", "after", "creating", "an", "edit", "log", "(", "ie", "before", "writing", "start", "log", "segment", ")", "in", "the", "case", "that", "all", "logs", "have", "this", "problem", ",", "it", "should", "mark", "them", "as", "corrupt", "instead", "of", "trying", "to", "finalize", "them" ]
[ "private", "void", "do", "test", "crash", "recovery", "empty", "log", "(", "boolean", "in", "both", "dirs", ",", "boolean", "update", "transaction", "id", "file", ",", "boolean", "should", "succeed", ")", "throws", "exception", "{", "/", "/", "start", "a", "cluster", "configuration", "conf", "=", "get", "conf", "(", ")", ";", "mini", "d", "f", "s", "cluster", "cluster", "=", "null", ";", "cluster", "=", "new", "mini", "d", "f", "s", "cluster", "builder", "(", "conf", ")", "num", "data", "nodes", "(", "num", "data", "nodes", ")", "build", "(", ")", ";", "cluster", "shutdown", "(", ")", ";", "collection", "<", "uri", ">", "edits", "dirs", "=", "cluster", "get", "name", "edits", "dirs", "(", "0", ")", ";", "for", "(", "uri", "uri", ":", "edits", "dirs", ")", "{", "file", "dir", "=", "new", "file", "(", "uri", "get", "path", "(", ")", ")", ";", "file", "current", "dir", "=", "new", "file", "(", "dir", ",", "\"", "current", "\"", ")", ";", "/", "/", "we", "should", "start", "with", "only", "the", "finalized", "edits", "1", "-", "2", "generic", "test", "utils", "assert", "glob", "equals", "(", "current", "dir", ",", "\"", "edits", "*", "\"", ",", "n", "n", "storage", "get", "finalized", "edits", "file", "name", "(", "1", ",", "2", ")", ")", ";", "/", "/", "make", "a", "truncated", "edits", "3", "inprogress", "file", "log", "=", "new", "file", "(", "current", "dir", ",", "n", "n", "storage", "get", "in", "progress", "edits", "file", "name", "(", "3", ")", ")", ";", "edit", "log", "file", "output", "stream", "stream", "=", "new", "edit", "log", "file", "output", "stream", "(", "conf", ",", "log", ",", "1024", ")", ";", "try", "{", "stream", "create", "(", "name", "node", "layout", "version", "current", "layout", "version", ")", ";", "if", "(", "!", "in", "both", "dirs", ")", "{", "break", ";", "}", "n", "n", "storage", "storage", "=", "new", "n", "n", "storage", "(", "conf", ",", "collections", "<", "uri", ">", "empty", "list", "(", ")", ",", "lists", "new", "array", "list", "(", "uri", ")", ")", ";", "if", "(", "update", "transaction", "id", "file", ")", "{", "storage", "write", "transaction", "id", "file", "to", "storage", "(", "3", ")", ";", "}", "storage", "close", "(", ")", ";", "}", "finally", "{", "stream", "close", "(", ")", ";", "}", "}", "try", "{", "cluster", "=", "new", "mini", "d", "f", "s", "cluster", "builder", "(", "conf", ")", "num", "data", "nodes", "(", "num", "data", "nodes", ")", "format", "(", "false", ")", "build", "(", ")", ";", "if", "(", "!", "should", "succeed", ")", "{", "fail", "(", "\"", "should", "not", "have", "succeeded", "in", "startin", "cluster", "\"", ")", ";", "}", "}", "catch", "(", "i", "o", "exception", "ioe", ")", "{", "if", "(", "should", "succeed", ")", "{", "log", "info", "(", "\"", "should", "have", "succeeded", "in", "starting", "cluster", ",", "but", "failed", "\"", ",", "ioe", ")", ";", "throw", "ioe", ";", "}", "else", "{", "generic", "test", "utils", "assert", "exception", "contains", "(", "\"", "gap", "in", "transactions", "expected", "to", "be", "able", "to", "read", "up", "until", "\"", "+", "\"", "at", "least", "txid", "3", "but", "unable", "to", "find", "any", "edit", "logs", "containing", "\"", "+", "\"", "txid", "3", "\"", ",", "ioe", ")", ";", "}", "}", "finally", "{", "cluster", "shutdown", "(", ")", ";", "}", "}" ]
[ "equivalent", "in", "effect", "to", "{", "@", "link", "#", "sum", "}", "followed", "by", "{", "@", "link", "#", "reset", "}", "this", "method", "may", "apply", "for", "example", "during", "quiescent", "points", "between", "multithreaded", "computations", "if", "there", "are", "updates", "concurrent", "with", "this", "method", ",", "the", "returned", "value", "is", "not", "guaranteed", "to", "be", "the", "final", "value", "occurring", "before", "the", "reset" ]
[ "public", "long", "sum", "then", "reset", "(", ")", "{", "long", "sum", "=", "base", ";", "cell", "[", "]", "as", "=", "cells", ";", "base", "=", "0l", ";", "if", "(", "as", "!", "=", "null", ")", "{", "int", "n", "=", "as", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "n", ";", "+", "+", "i", ")", "{", "cell", "a", "=", "as", "[", "i", "]", ";", "if", "(", "a", "!", "=", "null", ")", "{", "sum", "+", "=", "a", "value", ";", "a", "value", "=", "0l", ";", "}", "}", "}", "return", "sum", ";", "}" ]
[ "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", "\"", ")", ";", "}" ]
[ "visit", "a", "parse", "tree", "produced", "by", "{", "@", "link", "eql", "base", "parser", "#", "event", "query", "}" ]
[ "t", "visit", "event", "query", "(", "eql", "base", "parser", "event", "query", "context", "ctx", ")", ";" ]
[ "get", "the", "pointcut", "that", "drives", "this", "advisor" ]
[ "pointcut", "get", "pointcut", "(", ")", ";" ]
[ "returns", "true", "if", "object", "is", "currently", "invalid", "calling", "check", "is", "valid", "may", "successfully", "refresh", "object", "making", "it", "valid" ]
[ "public", "boolean", "is", "invalid", "(", ")", "{", "return", "invalidate", "count", "!", "=", "get", "current", "validation", "count", "(", ")", ";", "}" ]
[ "model", "tests", "for", "dog" ]
[ "public", "void", "test", "dog", "(", ")", "{", "/", "/", "todo", ":", "test", "dog", "}" ]
[ "stops", "this", "service", "if", "it", "is", "currently", "running", "this", "method", "will", "attempt", "to", "block", "until", "the", "server", "has", "been", "fully", "shutdown" ]
[ "public", "void", "stop", "(", ")", "{", "lock", "lock", "(", ")", ";", "web", "driver", "exception", "to", "throw", "=", "null", ";", "try", "{", "if", "(", "process", "=", "=", "null", ")", "{", "return", ";", "}", "if", "(", "has", "shutdown", "endpoint", "(", ")", ")", "{", "try", "{", "url", "kill", "url", "=", "new", "url", "(", "url", "to", "string", "(", ")", "+", "\"", "/", "shutdown", "\"", ")", ";", "new", "url", "checker", "(", ")", "wait", "until", "unavailable", "(", "3", ",", "seconds", ",", "kill", "url", ")", ";", "}", "catch", "(", "malformed", "u", "r", "l", "exception", "e", ")", "{", "to", "throw", "=", "new", "web", "driver", "exception", "(", "e", ")", ";", "}", "catch", "(", "url", "checker", "timeout", "exception", "e", ")", "{", "to", "throw", "=", "new", "web", "driver", "exception", "(", "\"", "timed", "out", "waiting", "for", "driver", "server", "to", "shutdown", "\"", ",", "e", ")", ";", "}", "}", "process", "destroy", "(", ")", ";", "if", "(", "get", "output", "stream", "(", ")", "instanceof", "file", "output", "stream", ")", "{", "try", "{", "get", "output", "stream", "(", ")", "close", "(", ")", ";", "}", "catch", "(", "i", "o", "exception", "e", ")", "{", "}", "}", "}", "finally", "{", "process", "=", "null", ";", "lock", "unlock", "(", ")", ";", "}", "if", "(", "to", "throw", "!", "=", "null", ")", "{", "throw", "to", "throw", ";", "}", "}" ]
[ "this", "method", "must", "be", "used", "to", "obtain", "the", "dir", "allocation", "context", "for", "a", "particular", "value", "of", "the", "context", "name", "the", "context", "name", "must", "be", "an", "item", "defined", "in", "the", "configuration", "object", "for", "which", "we", "want", "to", "control", "the", "dir", "allocations", "(", "e", "g", ",", "<", "code", ">", "mapred", "local", "dir", "<", "code", ">", ")", "the", "method", "will", "create", "a", "context", "for", "that", "name", "if", "it", "doesn", "'", "t", "already", "exist" ]
[ "private", "allocator", "per", "context", "obtain", "context", "(", "string", "context", "cfg", "item", "name", ")", "{", "synchronized", "(", "contexts", ")", "{", "allocator", "per", "context", "l", "=", "contexts", "get", "(", "context", "cfg", "item", "name", ")", ";", "if", "(", "l", "=", "=", "null", ")", "{", "contexts", "put", "(", "context", "cfg", "item", "name", ",", "(", "l", "=", "new", "allocator", "per", "context", "(", "context", "cfg", "item", "name", ",", "disk", "validator", ")", ")", ")", ";", "}", "return", "l", ";", "}", "}" ]
[ "open", "the", "fs", "and", "the", "test", "data", "the", "input", "stream", "is", "always", "set", "up", "here" ]
[ "public", "void", "open", "f", "s", "(", ")", "throws", "i", "o", "exception", "{", "configuration", "conf", "=", "get", "conf", "(", ")", ";", "conf", "set", "int", "(", "socket", "send", "buffer", ",", "16", "*", "1024", ")", ";", "conf", "set", "int", "(", "socket", "recv", "buffer", ",", "16", "*", "1024", ")", ";", "string", "test", "file", "=", "conf", "get", "trimmed", "(", "key", "csvtest", "file", ",", "default", "csvtest", "file", ")", ";", "if", "(", "test", "file", "is", "empty", "(", ")", ")", "{", "assumption", "message", "=", "\"", "empty", "test", "property", ":", "\"", "+", "key", "csvtest", "file", ";", "log", "warn", "(", "assumption", "message", ")", ";", "test", "data", "available", "=", "false", ";", "}", "else", "{", "test", "data", "=", "new", "path", "(", "test", "file", ")", ";", "log", "info", "(", "\"", "using", "{", "}", "as", "input", "stream", "source", "\"", ",", "test", "data", ")", ";", "path", "path", "=", "this", "test", "data", ";", "bind", "s", "3a", "f", "s", "(", "path", ")", ";", "try", "{", "test", "data", "status", "=", "s", "3a", "f", "s", "get", "file", "status", "(", "this", "test", "data", ")", ";", "}", "catch", "(", "i", "o", "exception", "e", ")", "{", "log", "warn", "(", "\"", "failed", "to", "read", "file", "{", "}", "specified", "in", "{", "}", "\"", ",", "test", "file", ",", "key", "csvtest", "file", ",", "e", ")", ";", "throw", "e", ";", "}", "}", "}" ]
[ "write", "pcap", "global", "header" ]
[ "public", "static", "void", "write", "global", "header", "(", "byte", "buf", "byte", "buf", ")", "{", "byte", "buf", "write", "bytes", "(", "global", "header", ")", ";", "}" ]
[ "set", "the", "model", "name", "that", "indicates", "which", "string", "n", "-", "grams", "model", "to", "use", "the", "\"", "sng", "\"", "extension", "is", "assumed", "and", "may", "be", "left", "off" ]
[ "void", "set", "model", "name", "(", "string", "name", ")", "{", "model", "name", "=", "name", ";", "set", "trigram", "file", "name", "(", "model", "name", ")", ";", "}" ]
[ "solve", "and", "apply", "context", "changes", "in", "reverse", "to", "forbidden", "patterns", "to", "avoid", "circumstances", "where", "a", "context", "change", "during", "disassembly", "would", "invoke", "a", "more", "specific", "subconstructor", "than", "was", "used", "to", "assembly", "the", "instruction", ",", "we", "must", "solve", "the", "forbidden", "patterns", "in", "tandem", "with", "the", "overall", "resolution", "if", "the", "context", "of", "any", "forbidden", "pattern", "cannot", "be", "solved", ",", "we", "simply", "drop", "the", "forbidden", "pattern", "-", "-", "the", "lack", "of", "a", "solution", "implies", "there", "is", "no", "way", "the", "context", "change", "could", "produce", "the", "forbidden", "pattern" ]
[ "public", "assembly", "resolved", "constructor", "solve", "context", "changes", "for", "forbids", "(", "assembly", "constructor", "semantic", "sem", ",", "map", "<", "string", ",", "long", ">", "vals", ",", "map", "<", "integer", ",", "object", ">", "opvals", ")", "{", "if", "(", "!", "has", "forbids", "(", ")", ")", "{", "return", "this", ";", "}", "set", "<", "assembly", "resolved", "constructor", ">", "new", "forbids", "=", "new", "hash", "set", "<", ">", "(", ")", ";", "for", "(", "assembly", "resolved", "constructor", "f", ":", "this", "forbids", ")", "{", "assembly", "resolution", "t", "=", "sem", "solve", "context", "changes", "(", "f", ",", "vals", ",", "opvals", ")", ";", "if", "(", "!", "(", "t", "instanceof", "assembly", "resolved", "constructor", ")", ")", "{", "/", "/", "can", "'", "t", "be", "solved", ",", "so", "it", "can", "be", "dropped", "continue", ";", "}", "new", "forbids", "add", "(", "(", "assembly", "resolved", "constructor", ")", "t", ")", ";", "}", "return", "new", "assembly", "resolved", "constructor", "(", "description", ",", "children", ",", "ins", ",", "ctx", ",", "backfills", ",", "collections", "unmodifiable", "set", "(", "new", "forbids", ")", ")", ";", "}" ]
[ "get", "the", "template", "file", "path", "with", "template", "dir", "prepended", ",", "and", "use", "the", "library", "template", "if", "exists", "precedence", ":", "1", ")", "(", "template", "dir", ")", "libraries", "(", "library", ")", "2", ")", "(", "template", "dir", ")", "3", ")", "(", "embedded", "template", "dir", ")", "libraries", "(", "library", ")", "4", ")", "(", "embedded", "template", "dir", ")", "where", "\"", "template", "dir", "\"", "may", "be", "user", "defined", "and", "\"", "embedded", "template", "dir", "\"", "are", "the", "built", "-", "in", "templates", "for", "the", "given", "generator" ]
[ "public", "string", "get", "full", "template", "path", "(", "string", "relative", "template", "file", ")", "{", "codegen", "config", "config", "=", "this", "codegen", "config", ";", "/", "/", "check", "the", "supplied", "template", "library", "folder", "for", "the", "file", "final", "string", "library", "=", "config", "get", "library", "(", ")", ";", "if", "(", "string", "utils", "is", "not", "empty", "(", "library", ")", ")", "{", "/", "/", "look", "for", "the", "file", "in", "the", "library", "subfolder", "of", "the", "supplied", "template", "final", "string", "lib", "template", "file", "=", "build", "library", "file", "path", "(", "config", "template", "dir", "(", ")", ",", "library", ",", "relative", "template", "file", ")", ";", "/", "/", "looks", "for", "user", "-", "defined", "file", "or", "classpath", "/", "/", "supports", "template", "dir", "which", "refers", "to", "local", "file", "system", "or", "custom", "path", "in", "classpath", "as", "defined", "by", "template", "dir", "if", "(", "new", "file", "(", "lib", "template", "file", ")", "exists", "(", ")", "|", "|", "classpath", "template", "exists", "(", "lib", "template", "file", ")", ")", "{", "return", "lib", "template", "file", ";", "}", "}", "/", "/", "check", "the", "supplied", "template", "main", "folder", "for", "the", "file", "/", "/", "file", "separator", "is", "necessary", "here", "as", "the", "file", "load", "is", "os", "-", "specific", "final", "string", "template", "=", "config", "template", "dir", "(", ")", "+", "file", "separator", "+", "relative", "template", "file", ";", "/", "/", "looks", "for", "user", "-", "defined", "file", "or", "classpath", "/", "/", "supports", "template", "dir", "which", "refers", "to", "local", "file", "system", "or", "custom", "path", "in", "classpath", "as", "defined", "by", "template", "dir", "if", "(", "new", "file", "(", "template", ")", "exists", "(", ")", "|", "|", "classpath", "template", "exists", "(", "template", ")", ")", "{", "return", "template", ";", "}", "/", "/", "try", "the", "embedded", "template", "library", "folder", "next", "if", "(", "string", "utils", "is", "not", "empty", "(", "library", ")", ")", "{", "final", "string", "embedded", "lib", "template", "file", "=", "build", "library", "file", "path", "(", "config", "embedded", "template", "dir", "(", ")", ",", "library", ",", "relative", "template", "file", ")", ";", "/", "/", "*", "only", "*", "looks", "for", "those", "files", "in", "classpath", "as", "defined", "by", "embedded", "template", "dir", "if", "(", "embedded", "template", "exists", "(", "embedded", "lib", "template", "file", ")", ")", "{", "/", "/", "fall", "back", "to", "the", "template", "file", "embedded", "/", "packaged", "in", "the", "jar", "file", "library", "folder", "return", "embedded", "lib", "template", "file", ";", "}", "}", "/", "/", "fall", "back", "to", "the", "template", "file", "for", "generator", "root", "directory", "embedded", "/", "packaged", "in", "the", "jar", "file", "string", "loc", "=", "config", "embedded", "template", "dir", "(", ")", "+", "file", "separator", "+", "relative", "template", "file", ";", "/", "/", "*", "only", "*", "looks", "for", "those", "files", "in", "classpath", "as", "defined", "by", "embedded", "template", "dir", "if", "(", "embedded", "template", "exists", "(", "loc", ")", ")", "{", "return", "loc", ";", "}", "return", "null", ";", "}" ]
[ "get", "the", "cluster", "id", "of", "the", "kafka", "cluster", "backing", "this", "connect", "cluster" ]
[ "string", "kafka", "cluster", "id", "(", ")", ";" ]
[ "equivalent", "to", "{", "@", "link", "#", "sum", "}" ]
[ "public", "long", "long", "value", "(", ")", "{", "return", "sum", "(", ")", ";", "}" ]
[ "get", "user", "by", "user", "name" ]
[ "public", "single", "<", "user", ">", "rx", "get", "user", "by", "name", "(", "string", "username", ")", "{", "return", "single", "create", "(", "new", "io", "vertx", "rx", "java", "single", "on", "subscribe", "adapter", "<", ">", "(", "fut", "-", ">", "delegate", "get", "user", "by", "name", "(", "username", ",", "fut", ")", ")", ")", ";", "}" ]
[ "sets", "a", "new", "resource", "and", "disposes", "the", "currently", "held", "resource" ]
[ "public", "boolean", "set", "resource", "(", "disposable", "r", ")", "{", "return", "disposable", "helper", "set", "(", "resource", ",", "r", ")", ";", "}" ]
[ "whether", "to", "ignore", "requests", "with", "path", "extension", "that", "cannot", "be", "resolved", "to", "any", "media", "type", "setting", "this", "to", "{", "@", "code", "false", "}", "will", "result", "in", "an", "{", "@", "code", "http", "media", "type", "not", "acceptable", "exception", "}", "if", "there", "is", "no", "match", "by", "default", "this", "is", "set", "to", "{", "@", "code", "true", "}" ]
[ "public", "content", "negotiation", "configurer", "ignore", "unknown", "path", "extensions", "(", "boolean", "ignore", ")", "{", "this", "factory", "set", "ignore", "unknown", "path", "extensions", "(", "ignore", ")", ";", "return", "this", ";", "}" ]
[ "installs", "the", "default", "{", "@", "link", "table", "cell", "renderer", "}", "s", "for", "known", "ghidra", "table", "cell", "data", "classes", "subclasses", "can", "override", "this", "method", "to", "add", "additional", "types", "or", "to", "change", "the", "default", "associations" ]
[ "protected", "void", "init", "default", "renderers", "(", ")", "{", "g", "table", "cell", "renderer", "g", "table", "cell", "renderer", "=", "new", "g", "table", "cell", "renderer", "(", ")", ";", "set", "default", "renderer", "(", "string", "class", ",", "g", "table", "cell", "renderer", ")", ";", "set", "default", "renderer", "(", "enum", "class", ",", "g", "table", "cell", "renderer", ")", ";", "set", "default", "renderer", "(", "byte", "class", ",", "g", "table", "cell", "renderer", ")", ";", "set", "default", "renderer", "(", "short", "class", ",", "g", "table", "cell", "renderer", ")", ";", "set", "default", "renderer", "(", "integer", "class", ",", "g", "table", "cell", "renderer", ")", ";", "set", "default", "renderer", "(", "long", "class", ",", "g", "table", "cell", "renderer", ")", ";", "set", "default", "renderer", "(", "float", "class", ",", "g", "table", "cell", "renderer", ")", ";", "set", "default", "renderer", "(", "double", "class", ",", "g", "table", "cell", "renderer", ")", ";", "set", "default", "renderer", "(", "boolean", "class", ",", "new", "g", "boolean", "cell", "renderer", "(", ")", ")", ";", "default", "g", "table", "renderer", "list", "add", "(", "g", "table", "cell", "renderer", ")", ";", "}" ]
[ "closes", "the", "channel", "and", "waits", "until", "all", "pending", "asynchronous", "requests", "are", "processed", "the", "underlying", "<", "code", ">", "file", "channel", "<", "code", ">", "is", "closed", "even", "if", "an", "exception", "interrupts", "the", "closing", "important", ":", "the", "{", "@", "link", "#", "is", "closed", "(", ")", "}", "method", "returns", "<", "code", ">", "true", "<", "code", ">", "immediately", "after", "this", "method", "has", "been", "called", "even", "when", "there", "are", "outstanding", "requests" ]
[ "public", "void", "close", "(", ")", "throws", "i", "o", "exception", "{", "/", "/", "atomically", "set", "the", "close", "flag", "synchronized", "(", "this", "close", "lock", ")", "{", "if", "(", "this", "closed", ")", "{", "return", ";", "}", "this", "closed", "=", "true", ";", "try", "{", "/", "/", "wait", "until", "as", "many", "buffers", "have", "been", "returned", "as", "were", "written", "/", "/", "only", "then", "is", "everything", "guaranteed", "to", "be", "consistent", "while", "(", "this", "requests", "not", "returned", "get", "(", ")", ">", "0", ")", "{", "try", "{", "/", "/", "we", "add", "a", "timeout", "here", ",", "because", "it", "is", "not", "guaranteed", "that", "the", "/", "/", "decrementing", "during", "buffer", "return", "and", "the", "check", "here", "are", "deadlock", "free", "/", "/", "the", "deadlock", "situation", "is", "however", "unlikely", "and", "caught", "by", "the", "timeout", "this", "close", "lock", "wait", "(", "1000", ")", ";", "check", "erroneous", "(", ")", ";", "}", "catch", "(", "interrupted", "exception", "iex", ")", "{", "throw", "new", "i", "o", "exception", "(", "\"", "closing", "of", "asynchronous", "file", "channel", "was", "interrupted", "\"", ")", ";", "}", "}", "/", "/", "additional", "check", "because", "we", "might", "have", "skipped", "the", "while", "loop", "check", "erroneous", "(", ")", ";", "}", "finally", "{", "/", "/", "close", "the", "file", "if", "(", "this", "file", "channel", "is", "open", "(", ")", ")", "{", "this", "file", "channel", "close", "(", ")", ";", "}", "}", "}", "}" ]
[ "if", "this", "frame", "is", "in", "the", "pending", "queue", ",", "decrements", "the", "number", "of", "pending", "bytes", "for", "the", "stream" ]
[ "private", "void", "decrement", "pending", "bytes", "(", "int", "bytes", ",", "boolean", "update", "streamable", "bytes", ")", "{", "increment", "pending", "bytes", "(", "-", "bytes", ",", "update", "streamable", "bytes", ")", ";", "}" ]
[ "any", "interruption", "that", "happens", "as", "a", "result", "of", "calling", "interrupt", "task", "will", "arrive", "before", "this", "method", "is", "called", "complete", "futures", "here" ]
[ "abstract", "void", "after", "ran", "interruptibly", "(", "@", "nullable", "decl", "t", "result", ",", "@", "nullable", "decl", "throwable", "error", ")", ";" ]
[ "determine", "if", "session", "events", "should", "be", "suspended", "during", "task", "execution", "this", "can", "improve", "performance", "during", "task", "execution", "at", "the", "expense", "of", "bulk", "table", "updates", "at", "task", "completion", "method", "return", "false", "by", "default", "if", "not", "constructed", "with", "a", "session", "this", "method", "is", "not", "used" ]
[ "protected", "boolean", "should", "suspend", "session", "events", "(", ")", "{", "return", "false", ";", "}" ]
[ "the", "failure", "if", "relevant" ]
[ "public", "multi", "term", "vectors", "response", "failure", "get", "failure", "(", ")", "{", "return", "this", "failure", ";", "}" ]
[ "returns", "true", "if", "the", "component", "associated", "with", "this", "visibility", "item", "is", "in", "the", "full", "impression", "range" ]
[ "public", "boolean", "is", "in", "full", "impression", "range", "(", ")", "{", "final", "int", "all", "edges", "visible", "=", "flag", "left", "edge", "visible", "|", "flag", "top", "edge", "visible", "|", "flag", "right", "edge", "visible", "|", "flag", "bottom", "edge", "visible", ";", "return", "(", "m", "flags", "&", "all", "edges", "visible", ")", "=", "=", "all", "edges", "visible", ";", "}" ]
[ "set", "a", "root", "component", "to", "a", "component", "tree", ",", "and", "mount", "it", "into", "a", "component", "view" ]
[ "public", "static", "litho", "view", "mount", "component", "(", "litho", "view", "litho", "view", ",", "component", "tree", "component", "tree", ",", "component", "component", ")", "{", "component", "tree", "set", "root", "(", "component", ")", ";", "return", "mount", "component", "(", "litho", "view", ",", "component", "tree", ",", "make", "measure", "spec", "(", "100", ",", "exactly", ")", ",", "make", "measure", "spec", "(", "100", ",", "exactly", ")", ")", ";", "}" ]
[ "{", "@", "inherit", "doc", "}" ]
[ "public", "void", "set", "previous", "offset", "(", "int", "offset", ")", "{", "previous", "offset", "=", "offset", ";", "}" ]
[ "gets", "rendered", "user", "profile" ]
[ "protected", "map", "<", "string", ",", "object", ">", "get", "rendered", "user", "profile", "(", "final", "map", "<", "string", ",", "object", ">", "model", ",", "final", "o", "auth", "2", "0", "access", "token", "access", "token", ",", "final", "http", "servlet", "response", "response", ")", "{", "if", "(", "oauth", "properties", "get", "user", "profile", "view", "type", "(", ")", "=", "=", "o", "auth", "properties", "user", "profile", "view", "types", "flat", ")", "{", "val", "flattened", "=", "new", "linked", "hash", "map", "<", "string", ",", "object", ">", "(", ")", ";", "if", "(", "model", "contains", "key", "(", "model", "attribute", "attributes", ")", ")", "{", "val", "attributes", "=", "map", "class", "cast", "(", "model", "get", "(", "model", "attribute", "attributes", ")", ")", ";", "flattened", "put", "all", "(", "attributes", ")", ";", "}", "model", "key", "set", "(", ")", "stream", "(", ")", "filter", "(", "k", "-", ">", "!", "k", "equals", "ignore", "case", "(", "model", "attribute", "attributes", ")", ")", "for", "each", "(", "k", "-", ">", "flattened", "put", "(", "k", ",", "model", "get", "(", "k", ")", ")", ")", ";", "logger", "trace", "(", "\"", "flattened", "user", "profile", "attributes", "with", "the", "final", "model", "as", "[", "{", "}", "]", "\"", ",", "model", ")", ";", "return", "flattened", ";", "}", "return", "model", ";", "}" ]
[ "get", "string", "item" ]
[ "public", "string", "get", "string", "item", "(", ")", "{", "return", "string", "item", ";", "}" ]
[ "post", "storeorder", ":", "place", "an", "order", "for", "a", "pet" ]
[ "default", "response", "entity", "<", "order", ">", "place", "order", "(", "@", "api", "param", "(", "value", "=", "\"", "order", "placed", "for", "purchasing", "the", "pet", "\"", ",", "required", "=", "true", ")", "@", "valid", "@", "request", "body", "order", "body", ")", "{", "get", "request", "(", ")", "if", "present", "(", "request", "-", ">", "{", "for", "(", "media", "type", "media", "type", ":", "media", "type", "parse", "media", "types", "(", "request", "get", "header", "(", "\"", "accept", "\"", ")", ")", ")", "{", "if", "(", "media", "type", "is", "compatible", "with", "(", "media", "type", "value", "of", "(", "\"", "application", "/", "json", "\"", ")", ")", ")", "{", "string", "example", "string", "=", "\"", "{", "\\", "\"", "pet", "id", "\\", "\"", ":", "6", ",", "\\", "\"", "quantity", "\\", "\"", ":", "1", ",", "\\", "\"", "id", "\\", "\"", ":", "0", ",", "\\", "\"", "ship", "date", "\\", "\"", ":", "\\", "\"", "2000", "-", "01", "-", "23t04", ":", "56", ":", "07", "000", "+", "00", ":", "00", "\\", "\"", ",", "\\", "\"", "complete", "\\", "\"", ":", "false", ",", "\\", "\"", "status", "\\", "\"", ":", "\\", "\"", "placed", "\\", "\"", "}", "\"", ";", "api", "util", "set", "example", "response", "(", "request", ",", "\"", "application", "/", "json", "\"", ",", "example", "string", ")", ";", "break", ";", "}", "if", "(", "media", "type", "is", "compatible", "with", "(", "media", "type", "value", "of", "(", "\"", "application", "/", "xml", "\"", ")", ")", ")", "{", "string", "example", "string", "=", "\"", "<", "order", ">", "<", "id", ">", "123456789", "<", "/", "id", ">", "<", "pet", "id", ">", "123456789", "<", "/", "pet", "id", ">", "<", "quantity", ">", "123", "<", "/", "quantity", ">", "<", "ship", "date", ">", "2000", "-", "01", "-", "23t04", ":", "56", ":", "07", "000z", "<", "/", "ship", "date", ">", "<", "status", ">", "aeiou", "<", "/", "status", ">", "<", "complete", ">", "true", "<", "/", "complete", ">", "<", "/", "order", ">", "\"", ";", "api", "util", "set", "example", "response", "(", "request", ",", "\"", "application", "/", "xml", "\"", ",", "example", "string", ")", ";", "break", ";", "}", "}", "}", ")", ";", "return", "new", "response", "entity", "<", ">", "(", "http", "status", "not", "implemented", ")", ";", "}" ]
[ "gets", "saml", "object", "q", "name", "indicated", "by", "field", "{", "@", "link", "#", "default", "element", "name", "field", "}" ]
[ "public", "q", "name", "get", "saml", "object", "q", "name", "(", "final", "class", "object", "type", ")", "{", "try", "{", "val", "f", "=", "object", "type", "get", "field", "(", "default", "element", "name", "field", ")", ";", "return", "(", "q", "name", ")", "f", "get", "(", "null", ")", ";", "}", "catch", "(", "final", "exception", "e", ")", "{", "throw", "new", "illegal", "state", "exception", "(", "\"", "cannot", "find", "/", "access", "field", "\"", "+", "object", "type", "get", "name", "(", ")", "+", "'", "'", "+", "default", "element", "name", "field", ",", "e", ")", ";", "}", "}" ]
[ "converts", "multiple", "files", "to", "platform", "-", "agnostic", "uri", "paths" ]
[ "private", "static", "collection", "<", "string", ">", "files", "to", "paths", "(", "collection", "<", "file", ">", "files", ")", "{", "list", "<", "string", ">", "paths", "=", "lists", "new", "array", "list", "(", ")", ";", "for", "(", "file", "file", ":", "files", ")", "{", "paths", "add", "(", "file", "to", "path", "(", "file", ")", ")", ";", "}", "return", "paths", ";", "}" ]
[ "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", "\"", ")", ";", "}" ]
[ "creates", "a", "cc", "toolchain", "features", "from", "features", "described", "in", "the", "given", "toolchain", "fragment" ]
[ "public", "static", "cc", "toolchain", "features", "build", "features", "(", "string", "toolchain", ")", "throws", "exception", "{", "c", "toolchain", "builder", "toolchain", "builder", "=", "c", "toolchain", "new", "builder", "(", ")", ";", "text", "format", "merge", "(", "joiner", "on", "(", "\"", "\"", ")", "join", "(", "toolchain", ")", ",", "toolchain", "builder", ")", ";", "return", "new", "cc", "toolchain", "features", "(", "cc", "toolchain", "config", "info", "from", "toolchain", "(", "toolchain", "builder", "build", "partial", "(", ")", ")", ",", "path", "fragment", "create", "(", "\"", "crosstool", "/", "\"", ")", ")", ";", "}" ]
[ "evict", "a", "connection", "from", "the", "pool", "if", "the", "connection", "has", "already", "been", "closed", "(", "returned", "to", "the", "pool", ")", "this", "may", "result", "in", "a", "\"", "soft", "\"", "eviction", ";", "the", "connection", "will", "be", "evicted", "sometime", "in", "the", "future", "if", "it", "is", "currently", "in", "use", "if", "the", "connection", "has", "not", "been", "closed", ",", "the", "eviction", "is", "immediate" ]
[ "public", "void", "evict", "connection", "(", "connection", "connection", ")", "{", "hikari", "pool", "p", ";", "if", "(", "!", "is", "closed", "(", ")", "&", "&", "(", "p", "=", "pool", ")", "!", "=", "null", "&", "&", "connection", "get", "class", "(", ")", "get", "name", "(", ")", "starts", "with", "(", "\"", "com", "zaxxer", "hikari", "\"", ")", ")", "{", "p", "evict", "connection", "(", "connection", ")", ";", "}", "}" ]
[ "gets", "the", "literal", "value", ",", "masked", "to", "be", "a", "nibble", "in", "size", "this", "will", "throw", "if", "the", "value", "is", "out", "of", "the", "range", "of", "a", "signed", "nibble" ]
[ "public", "final", "int", "get", "literal", "nibble", "(", ")", "{", "if", "(", "(", "literal", "<", "-", "8", ")", "|", "|", "(", "literal", ">", "7", ")", ")", "{", "throw", "new", "dex", "exception", "2", "(", "\"", "literal", "out", "of", "range", ":", "\"", "+", "hex", "u", "8", "(", "literal", ")", ")", ";", "}", "return", "(", "int", ")", "literal", "&", "0xf", ";", "}" ]
[ "the", "invocation", "interceptor", ",", "it", "will", "collect", "the", "invoke", "data", "about", "this", "invocation", "and", "send", "it", "to", "monitor", "center" ]
[ "public", "result", "invoke", "(", "invoker", "<", "?", ">", "invoker", ",", "invocation", "invocation", ")", "throws", "rpc", "exception", "{", "if", "(", "invoker", "get", "url", "(", ")", "has", "parameter", "(", "monitor", "key", ")", ")", "{", "invocation", "put", "(", "monitor", "filter", "start", "time", ",", "system", "current", "time", "millis", "(", ")", ")", ";", "get", "concurrent", "(", "invoker", ",", "invocation", ")", "increment", "and", "get", "(", ")", ";", "/", "/", "count", "up", "}", "return", "invoker", "invoke", "(", "invocation", ")", ";", "/", "/", "proceed", "invocation", "chain", "}" ]
[ "returns", "the", "configured", "{", "@", "link", "event", "loop", "group", "}", "which", "will", "be", "used", "for", "the", "child", "channels", "or", "{", "@", "code", "null", "}", "if", "non", "is", "configured", "yet" ]
[ "public", "event", "loop", "group", "child", "group", "(", ")", "{", "return", "bootstrap", "child", "group", "(", ")", ";", "}" ]
[ "invoke", "the", "specified", "listener", ":", "either", "as", "standard", "jms", "message", "listener", "or", "(", "preferably", ")", "as", "spring", "session", "aware", "message", "listener" ]
[ "protected", "void", "invoke", "listener", "(", "session", "session", ",", "message", "message", ")", "throws", "j", "m", "s", "exception", "{", "object", "listener", "=", "get", "message", "listener", "(", ")", ";", "if", "(", "listener", "instanceof", "session", "aware", "message", "listener", ")", "{", "do", "invoke", "listener", "(", "(", "session", "aware", "message", "listener", ")", "listener", ",", "session", ",", "message", ")", ";", "}", "else", "if", "(", "listener", "instanceof", "message", "listener", ")", "{", "do", "invoke", "listener", "(", "(", "message", "listener", ")", "listener", ",", "message", ")", ";", "}", "else", "if", "(", "listener", "!", "=", "null", ")", "{", "throw", "new", "illegal", "argument", "exception", "(", "\"", "only", "message", "listener", "and", "session", "aware", "message", "listener", "supported", ":", "\"", "+", "listener", ")", ";", "}", "else", "{", "throw", "new", "illegal", "state", "exception", "(", "\"", "no", "message", "listener", "specified", "-", "see", "property", "'", "message", "listener", "'", "\"", ")", ";", "}", "}" ]
[ "test", "that", "coerce", "parameter", "correctly", "parses" ]
[ "public", "void", "test", "coerce", "parsing", "(", ")", "throws", "i", "o", "exception", "{", "document", "mapper", "default", "mapper", "=", "create", "document", "mapper", "(", "field", "mapping", "(", "b", "-", ">", "{", "b", "field", "(", "\"", "type", "\"", ",", "\"", "geo", "shape", "\"", ")", ";", "b", "field", "(", "\"", "coerce", "\"", ",", "true", ")", ";", "}", ")", ")", ";", "mapper", "field", "mapper", "=", "default", "mapper", "mappers", "(", ")", "get", "mapper", "(", "\"", "field", "\"", ")", ";", "assert", "that", "(", "field", "mapper", ",", "instance", "of", "(", "geo", "shape", "with", "doc", "values", "field", "mapper", "class", ")", ")", ";", "boolean", "coerce", "=", "(", "(", "geo", "shape", "with", "doc", "values", "field", "mapper", ")", "field", "mapper", ")", "coerce", "(", ")", ";", "assert", "that", "(", "coerce", ",", "equal", "to", "(", "true", ")", ")", ";", "default", "mapper", "=", "create", "document", "mapper", "(", "field", "mapping", "(", "b", "-", ">", "{", "b", "field", "(", "\"", "type", "\"", ",", "\"", "geo", "shape", "\"", ")", ";", "b", "field", "(", "\"", "coerce", "\"", ",", "false", ")", ";", "}", ")", ")", ";", "field", "mapper", "=", "default", "mapper", "mappers", "(", ")", "get", "mapper", "(", "\"", "field", "\"", ")", ";", "assert", "that", "(", "field", "mapper", ",", "instance", "of", "(", "geo", "shape", "with", "doc", "values", "field", "mapper", "class", ")", ")", ";", "coerce", "=", "(", "(", "geo", "shape", "with", "doc", "values", "field", "mapper", ")", "field", "mapper", ")", "coerce", "(", ")", ";", "assert", "that", "(", "coerce", ",", "equal", "to", "(", "false", ")", ")", ";", "}" ]
[ "test", "a", "command", "execution", "(", "asynchronously", ")", "that", "fails", "but", "has", "a", "fallback" ]
[ "public", "void", "test", "queue", "failure", "with", "fallback", "(", ")", "{", "test", "hystrix", "command", "<", "integer", ">", "command", "=", "get", "command", "(", "execution", "isolation", "strategy", "thread", ",", "abstract", "test", "hystrix", "command", "execution", "result", "failure", ",", "abstract", "test", "hystrix", "command", "fallback", "result", "success", ")", ";", "try", "{", "future", "<", "integer", ">", "future", "=", "command", "queue", "(", ")", ";", "assert", "equals", "(", "flexible", "test", "hystrix", "command", "fallback", "value", ",", "future", "get", "(", ")", ")", ";", "}", "catch", "(", "exception", "e", ")", "{", "e", "print", "stack", "trace", "(", ")", ";", "fail", "(", "\"", "we", "should", "have", "received", "a", "response", "from", "the", "fallback", "\"", ")", ";", "}", "assert", "true", "(", "command", "get", "execution", "time", "in", "milliseconds", "(", ")", ">", "-", "1", ")", ";", "assert", "true", "(", "command", "is", "failed", "execution", "(", ")", ")", ";", "assert", "command", "execution", "events", "(", "command", ",", "hystrix", "event", "type", "failure", ",", "hystrix", "event", "type", "fallback", "success", ")", ";", "assert", "not", "null", "(", "command", "get", "execution", "exception", "(", ")", ")", ";", "assert", "equals", "(", "0", ",", "command", "get", "builder", "(", ")", "metrics", "get", "current", "concurrent", "execution", "count", "(", ")", ")", ";", "assert", "sane", "hystrix", "request", "log", "(", "1", ")", ";", "}" ]
[ "process", "completed", "container", "list" ]
[ "private", "int", "update", "completed", "containers", "(", "list", "<", "container", "status", ">", "completed", "containers", ",", "resource", "released", "resources", ",", "node", "id", "node", "id", ",", "scheduler", "node", "scheduler", "node", ")", "{", "int", "released", "containers", "=", "0", ";", "list", "<", "container", "id", ">", "untracked", "container", "id", "list", "=", "new", "array", "list", "<", "container", "id", ">", "(", ")", ";", "for", "(", "container", "status", "completed", "container", ":", "completed", "containers", ")", "{", "container", "id", "container", "id", "=", "completed", "container", "get", "container", "id", "(", ")", ";", "log", "debug", "(", "\"", "container", "finished", ":", "{", "}", "\"", ",", "container", "id", ")", ";", "r", "m", "container", "container", "=", "get", "r", "m", "container", "(", "container", "id", ")", ";", "completed", "container", "(", "container", ",", "completed", "container", ",", "r", "m", "container", "event", "type", "finished", ")", ";", "if", "(", "scheduler", "node", "!", "=", "null", ")", "{", "scheduler", "node", "release", "container", "(", "container", "id", ",", "true", ")", ";", "}", "if", "(", "container", "!", "=", "null", ")", "{", "released", "containers", "+", "+", ";", "resource", "ars", "=", "container", "get", "allocated", "resource", "(", ")", ";", "if", "(", "ars", "!", "=", "null", ")", "{", "resources", "add", "to", "(", "released", "resources", ",", "ars", ")", ";", "}", "resource", "rrs", "=", "container", "get", "reserved", "resource", "(", ")", ";", "if", "(", "rrs", "!", "=", "null", ")", "{", "resources", "add", "to", "(", "released", "resources", ",", "rrs", ")", ";", "}", "}", "else", "{", "/", "/", "add", "containers", "which", "are", "untracked", "by", "rm", "untracked", "container", "id", "list", "add", "(", "container", "id", ")", ";", "}", "}", "/", "/", "acknowledge", "nm", "to", "remove", "rm", "-", "untracked", "-", "containers", "from", "nm", "context", "if", "(", "!", "untracked", "container", "id", "list", "is", "empty", "(", ")", ")", "{", "this", "rm", "context", "get", "dispatcher", "(", ")", "get", "event", "handler", "(", ")", "handle", "(", "new", "r", "m", "node", "finished", "containers", "pulled", "by", "a", "m", "event", "(", "node", "id", ",", "untracked", "container", "id", "list", ")", ")", ";", "}", "return", "released", "containers", ";", "}" ]
[ "returns", "the", "playback", "controls", "timeout", "the", "playback", "controls", "are", "automatically", "hidden", "after", "this", "duration", "of", "time", "has", "elapsed", "without", "user", "input" ]
[ "public", "int", "get", "show", "timeout", "ms", "(", ")", "{", "return", "show", "timeout", "ms", ";", "}" ]
[ "environment", "variables", "that", "need", "to", "be", "set", "for", "tests", "collecting", "code", "coverage" ]
[ "public", "nested", "set", "<", "pair", "<", "string", ",", "string", ">", ">", "get", "coverage", "environment", "(", ")", "{", "return", "coverage", "environment", ";", "}" ]
[ "get", "the", "credential", "entry", "by", "name", "from", "a", "credential", "provider", "handle", "key", "deprecation" ]
[ "private", "credential", "entry", "get", "credential", "entry", "(", "credential", "provider", "provider", ",", "string", "name", ")", "throws", "i", "o", "exception", "{", "credential", "entry", "entry", "=", "provider", "get", "credential", "entry", "(", "name", ")", ";", "if", "(", "entry", "!", "=", "null", ")", "{", "return", "entry", ";", "}", "/", "/", "the", "old", "name", "is", "stored", "in", "the", "credential", "provider", "string", "old", "name", "=", "get", "deprecated", "key", "(", "name", ")", ";", "if", "(", "old", "name", "!", "=", "null", ")", "{", "entry", "=", "provider", "get", "credential", "entry", "(", "old", "name", ")", ";", "if", "(", "entry", "!", "=", "null", ")", "{", "log", "deprecation", "once", "(", "old", "name", ",", "provider", "to", "string", "(", ")", ")", ";", "return", "entry", ";", "}", "}", "/", "/", "the", "name", "is", "deprecated", "deprecated", "key", "info", "key", "info", "=", "get", "deprecated", "key", "info", "(", "name", ")", ";", "if", "(", "key", "info", "!", "=", "null", "&", "&", "key", "info", "new", "keys", "!", "=", "null", ")", "{", "for", "(", "string", "new", "name", ":", "key", "info", "new", "keys", ")", "{", "entry", "=", "provider", "get", "credential", "entry", "(", "new", "name", ")", ";", "if", "(", "entry", "!", "=", "null", ")", "{", "log", "deprecation", "once", "(", "name", ",", "null", ")", ";", "return", "entry", ";", "}", "}", "}", "return", "null", ";", "}" ]
[ "with", "the", "default", "indices", "options", "inherited", "from", "broadcast", "operation", "request", "this", "will", "raise", "an", "exception" ]
[ "public", "void", "test", "request", "on", "closed", "index", "(", ")", "{", "client", "(", ")", "admin", "(", ")", "indices", "(", ")", "prepare", "close", "(", "\"", "test", "\"", ")", "get", "(", ")", ";", "try", "{", "client", "(", ")", "admin", "(", ")", "indices", "(", ")", "prepare", "segments", "(", "\"", "test", "\"", ")", "get", "(", ")", ";", "fail", "(", "\"", "expected", "index", "closed", "exception", "\"", ")", ";", "}", "catch", "(", "index", "closed", "exception", "e", ")", "{", "assert", "that", "(", "e", "get", "message", "(", ")", ",", "is", "(", "\"", "closed", "\"", ")", ")", ";", "}", "}" ]
[ "visit", "a", "parse", "tree", "produced", "by", "{", "@", "link", "eql", "base", "parser", "#", "sequence", "params", "}" ]
[ "t", "visit", "sequence", "params", "(", "eql", "base", "parser", "sequence", "params", "context", "ctx", ")", ";" ]
[ "when", "non", "-", "null", "the", "text", "will", "be", "truncated", "\"", "\"", "if", "it", "does", "not", "fit", "within", "the", "width", "of", "the", "label", "wrapping", "will", "not", "occur", "when", "ellipsis", "is", "enabled", "default", "is", "false" ]
[ "public", "void", "set", "ellipsis", "(", "@", "null", "string", "ellipsis", ")", "{", "this", "ellipsis", "=", "ellipsis", ";", "}" ]
[ "release", "the", "slot", "occupied", "by", "this", "assignment" ]
[ "public", "void", "unassign", "by", "slot", "(", "worker", "slot", "slot", ")", "{", "list", "<", "executor", "details", ">", "executors", "=", "new", "array", "list", "<", "executor", "details", ">", "(", ")", ";", "for", "(", "executor", "details", "executor", ":", "this", "executor", "to", "slot", "key", "set", "(", ")", ")", "{", "worker", "slot", "ws", "=", "this", "executor", "to", "slot", "get", "(", "executor", ")", ";", "if", "(", "ws", "equals", "(", "slot", ")", ")", "{", "executors", "add", "(", "executor", ")", ";", "}", "}", "/", "/", "remove", "for", "(", "executor", "details", "executor", ":", "executors", ")", "{", "this", "executor", "to", "slot", "remove", "(", "executor", ")", ";", "}", "}" ]
[ "set", "the", "static", "{", "@", "linkplain", "field", "field", "}", "with", "the", "given", "{", "@", "code", "name", "}", "on", "the", "provided", "{", "@", "code", "target", "class", "}", "to", "the", "supplied", "{", "@", "code", "value", "}", "this", "method", "delegates", "to", "{", "@", "link", "#", "set", "field", "(", "object", ",", "class", ",", "string", ",", "object", ",", "class", ")", "}", ",", "supplying", "{", "@", "code", "null", "}", "for", "the", "{", "@", "code", "target", "object", "}", "and", "{", "@", "code", "type", "}", "arguments", "this", "method", "does", "not", "support", "setting", "{", "@", "code", "static", "final", "}", "fields" ]
[ "public", "static", "void", "set", "field", "(", "class", "<", "?", ">", "target", "class", ",", "string", "name", ",", "@", "nullable", "object", "value", ")", "{", "set", "field", "(", "null", ",", "target", "class", ",", "name", ",", "value", ",", "null", ")", ";", "}" ]
[ "get", "a", "unique", "path", "for", "a", "method" ]
[ "protected", "path", "method", "path", "(", ")", "throws", "i", "o", "exception", "{", "return", "path", "(", "get", "method", "name", "(", ")", ")", ";", "}" ]
[ "constructs", "the", "rule", "configured", "target", "instance", "based", "on", "the", "values", "set", "for", "this", "builder", "returns", "null", "if", "there", "were", "rule", "errors", "reported" ]
[ "public", "configured", "target", "build", "(", ")", "throws", "action", "conflict", "exception", ",", "interrupted", "exception", "{", "/", "/", "if", "allowing", "analysis", "failures", ",", "the", "current", "target", "may", "not", "propagate", "all", "of", "the", "/", "/", "expected", "providers", ";", "be", "lenient", "on", "such", "cases", "(", "for", "example", ",", "avoid", "precondition", "checks", ")", "boolean", "allow", "analysis", "failures", "=", "rule", "context", "get", "configuration", "(", ")", "allow", "analysis", "failures", "(", ")", ";", "if", "(", "rule", "context", "get", "configuration", "(", ")", "enforce", "constraints", "(", ")", ")", "{", "check", "constraints", "(", ")", ";", "}", "if", "(", "rule", "context", "has", "errors", "(", ")", "&", "&", "!", "allow", "analysis", "failures", ")", "{", "return", "null", ";", "}", "maybe", "add", "required", "config", "fragments", "provider", "(", ")", ";", "nested", "set", "builder", "<", "artifact", ">", "runfiles", "middlemen", "builder", "=", "nested", "set", "builder", "stable", "order", "(", ")", ";", "if", "(", "runfiles", "support", "!", "=", "null", ")", "{", "runfiles", "middlemen", "builder", "add", "(", "runfiles", "support", "get", "runfiles", "middleman", "(", ")", ")", ";", "runfiles", "middlemen", "builder", "add", "transitive", "(", "runfiles", "support", "get", "runfiles", "(", ")", "get", "extra", "middlemen", "(", ")", ")", ";", "}", "nested", "set", "<", "artifact", ">", "runfiles", "middlemen", "=", "runfiles", "middlemen", "builder", "build", "(", ")", ";", "files", "to", "run", "provider", "files", "to", "run", "provider", "=", "new", "files", "to", "run", "provider", "(", "build", "files", "to", "run", "(", "runfiles", "middlemen", ",", "files", "to", "build", ")", ",", "runfiles", "support", ",", "executable", ")", ";", "add", "provider", "(", "new", "file", "provider", "(", "files", "to", "build", ")", ")", ";", "add", "provider", "(", "files", "to", "run", "provider", ")", ";", "if", "(", "runfiles", "support", "!", "=", "null", ")", "{", "/", "/", "if", "a", "binary", "is", "built", ",", "build", "its", "runfiles", ",", "too", "add", "output", "group", "(", "output", "group", "info", "hidden", "top", "level", ",", "runfiles", "middlemen", ")", ";", "}", "else", "if", "(", "providers", "builder", "contains", "(", "runfiles", "provider", "class", ")", ")", "{", "/", "/", "if", "we", "don", "'", "t", "have", "a", "runfiles", "support", "(", "probably", "because", "this", "is", "not", "a", "binary", "rule", ")", ",", "we", "still", "/", "/", "want", "to", "build", "the", "files", "this", "rule", "contributes", "to", "runfiles", "of", "dependent", "rules", "so", "that", "we", "/", "/", "report", "an", "error", "if", "one", "of", "these", "is", "broken", "/", "/", "/", "/", "note", "that", "this", "is", "a", "best", "-", "effort", "thing", ":", "there", "is", "get", "data", "runfiles", "(", ")", "and", "all", "the", "language", "-", "/", "/", "specific", "*", "runfiles", "provider", "classes", ",", "which", "we", "don", "'", "t", "add", "here", "for", "reasons", "that", "are", "lost", "in", "/", "/", "the", "mists", "of", "time", "add", "output", "group", "(", "output", "group", "info", "hidden", "top", "level", ",", "providers", "builder", "get", "provider", "(", "runfiles", "provider", "class", ")", "get", "default", "runfiles", "(", ")", "get", "all", "artifacts", "(", ")", ")", ";", "}", "collect", "transitive", "validation", "output", "groups", "(", ")", ";", "/", "/", "add", "a", "default", "provider", "that", "forwards", "instrumented", "files", "info", "from", "dependencies", ",", "even", "if", "this", "/", "/", "rule", "doesn", "'", "t", "configure", "instrumented", "files", "info", "this", "needs", "to", "be", "done", "for", "non", "-", "test", "rules", "/", "/", "as", "well", ",", "but", "should", "be", "done", "before", "initialize", "test", "provider", ",", "which", "uses", "that", "if", "(", "rule", "context", "get", "configuration", "(", ")", "is", "code", "coverage", "enabled", "(", ")", "&", "&", "rule", "context", "get", "configuration", "(", ")", "experimental", "forward", "instrumented", "files", "info", "by", "default", "(", ")", "&", "&", "!", "providers", "builder", "contains", "(", "instrumented", "files", "info", "starlark", "constructor", "get", "key", "(", ")", ")", ")", "{", "add", "native", "declared", "provider", "(", "instrumented", "files", "collector", "forward", "all", "(", "rule", "context", ")", ")", ";", "}", "/", "/", "create", "test", "action", "and", "artifacts", "if", "target", "was", "successfully", "initialized", "/", "/", "and", "is", "a", "test", "also", ",", "as", "an", "extreme", "hack", ",", "only", "bother", "doing", "this", "if", "the", "test", "configuration", "/", "/", "is", "actually", "present", "if", "(", "target", "utils", "is", "test", "rule", "(", "rule", "context", "get", "target", "(", ")", ")", ")", "{", "immutable", "list", "<", "string", ">", "test", "tags", "=", "immutable", "list", "copy", "of", "(", "rule", "context", "get", "rule", "(", ")", "get", "rule", "tags", "(", ")", ")", ";", "add", "(", "test", "tags", "provider", "class", ",", "new", "test", "tags", "provider", "(", "test", "tags", ")", ")", ";", "if", "(", "rule", "context", "get", "configuration", "(", ")", "has", "fragment", "(", "test", "configuration", "class", ")", ")", "{", "if", "(", "runfiles", "support", "!", "=", "null", ")", "{", "add", "(", "test", "provider", "class", ",", "initialize", "test", "provider", "(", "files", "to", "run", "provider", ")", ")", ";", "}", "else", "{", "if", "(", "!", "allow", "analysis", "failures", ")", "{", "throw", "new", "illegal", "state", "exception", "(", "\"", "test", "rules", "must", "have", "runfiles", "\"", ")", ";", "}", "}", "}", "}", "extra", "action", "artifacts", "provider", "extra", "actions", "provider", "=", "create", "extra", "action", "provider", "(", "actions", "without", "extra", "action", ",", "rule", "context", ")", ";", "add", "(", "extra", "action", "artifacts", "provider", "class", ",", "extra", "actions", "provider", ")", ";", "if", "(", "!", "output", "group", "builders", "is", "empty", "(", ")", ")", "{", "immutable", "map", "builder", "<", "string", ",", "nested", "set", "<", "artifact", ">", ">", "output", "groups", "=", "immutable", "map", "builder", "(", ")", ";", "for", "(", "map", "entry", "<", "string", ",", "nested", "set", "builder", "<", "artifact", ">", ">", "entry", ":", "output", "group", "builders", "entry", "set", "(", ")", ")", "{", "output", "groups", "put", "(", "entry", "get", "key", "(", ")", ",", "entry", "get", "value", "(", ")", "build", "(", ")", ")", ";", "}", "output", "group", "info", "output", "group", "info", "=", "new", "output", "group", "info", "(", "output", "groups", "build", "(", ")", ")", ";", "add", "native", "declared", "provider", "(", "output", "group", "info", ")", ";", "}", "if", "(", "rule", "context", "get", "configuration", "(", ")", "evaluating", "for", "analysis", "test", "(", ")", ")", "{", "if", "(", "rule", "context", "get", "rule", "(", ")", "is", "analysis", "test", "(", ")", ")", "{", "rule", "context", "rule", "error", "(", "string", "format", "(", "\"", "analysis", "test", "rule", "'", "%", "s", "'", "cannot", "be", "transitively", "\"", "+", "\"", "depended", "on", "by", "another", "analysis", "test", "rule", "\"", ",", "rule", "context", "get", "label", "(", ")", ")", ")", ";", "return", "null", ";", "}", "add", "provider", "(", "new", "transitive", "labels", "info", "(", "transitive", "labels", "(", ")", ")", ")", ";", "}", "if", "(", "rule", "context", "get", "rule", "(", ")", "has", "analysis", "test", "transition", "(", ")", ")", "{", "nested", "set", "<", "label", ">", "labels", "=", "transitive", "labels", "(", ")", ";", "int", "dep", "count", "=", "labels", "to", "list", "(", ")", "size", "(", ")", ";", "if", "(", "dep", "count", ">", "rule", "context", "get", "configuration", "(", ")", "analysis", "testing", "deps", "limit", "(", ")", ")", "{", "rule", "context", "rule", "error", "(", "string", "format", "(", "\"", "analysis", "test", "rule", "excedeed", "maximum", "dependency", "edge", "count", "\"", "+", "\"", "count", ":", "%", "s", "limit", "is", "%", "s", "this", "limit", "is", "imposed", "on", "analysis", "test", "rules", "which", "\"", "+", "\"", "use", "analysis", "test", "transition", "attribute", "transitions", "exceeding", "this", "limit", "\"", "+", "\"", "indicates", "either", "the", "analysis", "test", "has", "too", "many", "dependencies", ",", "or", "the", "\"", "+", "\"", "underlying", "toolchains", "may", "be", "large", "try", "decreasing", "the", "number", "of", "test", "\"", "+", "\"", "dependencies", ",", "(", "analysis", "tests", "should", "not", "be", "very", "large", "!", ")", "or", ",", "if", "possible", ",", "\"", "+", "\"", "try", "not", "using", "configuration", "transitions", "if", "underlying", "toolchain", "size", "is", "\"", "+", "\"", "to", "blame", ",", "it", "might", "be", "worth", "considering", "increasing", "\"", "+", "\"", "-", "-", "analysis", "testing", "deps", "limit", "(", "beware", ",", "however", ",", "that", "large", "values", "of", "\"", "+", "\"", "this", "flag", "can", "lead", "to", "no", "safeguards", "against", "giant", "\"", "+", "\"", "test", "suites", "that", "can", "lead", "to", "out", "of", "memory", "exceptions", "in", "the", "build", "server", ")", "\"", ",", "dep", "count", ",", "rule", "context", "get", "configuration", "(", ")", "analysis", "testing", "deps", "limit", "(", ")", ")", ")", ";", "return", "null", ";", "}", "}", "if", "(", "rule", "context", "get", "rule", "(", ")", "is", "build", "setting", "(", ")", ")", "{", "build", "setting", "build", "setting", "=", "rule", "context", "get", "rule", "(", ")", "get", "rule", "class", "object", "(", ")", "get", "build", "setting", "(", ")", ";", "object", "default", "value", "=", "rule", "context", "attributes", "(", ")", "get", "(", "starlark", "build", "setting", "default", "attr", "name", ",", "build", "setting", "get", "type", "(", ")", ")", ";", "add", "provider", "(", "build", "setting", "provider", "class", ",", "new", "build", "setting", "provider", "(", "build", "setting", ",", "default", "value", ",", "rule", "context", "get", "label", "(", ")", ")", ")", ";", "}", "transitive", "info", "provider", "map", "providers", "=", "providers", "builder", "build", "(", ")", ";", "if", "(", "rule", "context", "get", "rule", "(", ")", "is", "analysis", "test", "(", ")", ")", "{", "/", "/", "if", "the", "target", "is", "an", "analysis", "test", "that", "returned", "analysis", "test", "result", "info", ",", "register", "a", "/", "/", "test", "pass", "/", "fail", "action", "on", "behalf", "of", "the", "target", "analysis", "test", "result", "info", "test", "result", "info", "=", "providers", "get", "(", "analysis", "test", "result", "info", "starlark", "constructor", ")", ";", "if", "(", "test", "result", "info", "=", "=", "null", ")", "{", "rule", "context", "rule", "error", "(", "\"", "rules", "with", "analysis", "test", "=", "true", "must", "return", "an", "instance", "of", "analysis", "test", "result", "info", "\"", ")", ";", "return", "null", ";", "}", "analysis", "test", "action", "builder", "write", "analysis", "test", "action", "(", "rule", "context", ",", "test", "result", "info", ")", ";", "}", "analysis", "environment", "analysis", "environment", "=", "rule", "context", "get", "analysis", "environment", "(", ")", ";", "generating", "actions", "generating", "actions", "=", "actions", "assign", "owners", "and", "filter", "shared", "actions", "and", "throw", "action", "conflict", "(", "analysis", "environment", "get", "action", "key", "context", "(", ")", ",", "analysis", "environment", "get", "registered", "actions", "(", ")", ",", "rule", "context", "get", "owner", "(", ")", ",", "(", "(", "rule", ")", "rule", "context", "get", "target", "(", ")", ")", "get", "output", "files", "(", ")", ")", ";", "return", "new", "rule", "configured", "target", "(", "rule", "context", ",", "providers", ",", "generating", "actions", "get", "actions", "(", ")", ",", "generating", "actions", "get", "artifacts", "by", "output", "label", "(", ")", ")", ";", "}" ]
[ "sets", "the", "{", "@", "link", "bandwidth", "meter", "}", "that", "will", "be", "used", "by", "the", "player" ]
[ "public", "builder", "set", "bandwidth", "meter", "(", "bandwidth", "meter", "bandwidth", "meter", ")", "{", "assertions", "check", "state", "(", "!", "build", "called", ")", ";", "this", "bandwidth", "meter", "=", "bandwidth", "meter", ";", "return", "this", ";", "}" ]
[ "reads", "lines", "up", "to", "and", "including", "the", "next", "web", "v", "t", "t", "cue", "header" ]
[ "public", "static", "matcher", "find", "next", "cue", "header", "(", "parsable", "byte", "array", "input", ")", "{", "@", "nullable", "string", "line", ";", "while", "(", "(", "line", "=", "input", "read", "line", "(", ")", ")", "!", "=", "null", ")", "{", "if", "(", "comment", "matcher", "(", "line", ")", "matches", "(", ")", ")", "{", "/", "/", "skip", "until", "the", "end", "of", "the", "comment", "block", "while", "(", "(", "line", "=", "input", "read", "line", "(", ")", ")", "!", "=", "null", "&", "&", "!", "line", "is", "empty", "(", ")", ")", "{", "}", "}", "else", "{", "matcher", "cue", "header", "matcher", "=", "webvtt", "cue", "parser", "cue", "header", "pattern", "matcher", "(", "line", ")", ";", "if", "(", "cue", "header", "matcher", "matches", "(", ")", ")", "{", "return", "cue", "header", "matcher", ";", "}", "}", "}", "return", "null", ";", "}" ]
[ "optional", "implementation", "implement", "this", "method", "if", "you", "need", "to", "precisely", "modify", "the", "content", "of", "a", "view", "if", "this", "method", "is", "not", "implemented", ",", "or", "if", "null", "is", "returned", ",", "the", "entire", "item", "will", "be", "refreshed", ",", "。", ",", ",", "。" ]
[ "public", "object", "get", "change", "payload", "(", "@", "non", "null", "diff", "util", "demo", "entity", "old", "item", ",", "@", "non", "null", "diff", "util", "demo", "entity", "new", "item", ")", "{", "return", "null", ";", "}" ]
[ "setget", "the", "natural", "length", "manipulating", "the", "length", "can", "lead", "to", "non", "-", "physical", "behavior", "when", "the", "frequency", "is", "zero" ]
[ "public", "void", "set", "length", "(", "float", "length", ")", "{", "jni", "set", "length", "(", "addr", ",", "length", ")", ";", "}" ]
[ "helper", "for", "{", "@", "link", "#", "add", "}", "which", "scrutinizes", "a", "single", "instruction", "for", "local", "variable", "information" ]
[ "private", "static", "boolean", "has", "local", "info", "(", "dalv", "insn", "insn", ")", "{", "if", "(", "insn", "instanceof", "local", "snapshot", ")", "{", "register", "spec", "set", "specs", "=", "(", "(", "local", "snapshot", ")", "insn", ")", "get", "locals", "(", ")", ";", "int", "size", "=", "specs", "size", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "size", ";", "i", "+", "+", ")", "{", "if", "(", "has", "local", "info", "(", "specs", "get", "(", "i", ")", ")", ")", "{", "return", "true", ";", "}", "}", "}", "else", "if", "(", "insn", "instanceof", "local", "start", ")", "{", "register", "spec", "spec", "=", "(", "(", "local", "start", ")", "insn", ")", "get", "local", "(", ")", ";", "if", "(", "has", "local", "info", "(", "spec", ")", ")", "{", "return", "true", ";", "}", "}", "return", "false", ";", "}" ]
[ "called", "to", "check", "if", "the", "item", "at", "the", "position", "is", "a", "sticky", "item", ",", "by", "default", "returns", "false", "the", "sub", "-", "classes", "should", "override", "the", "function", "if", "they", "are", "using", "sticky", "header", "feature" ]
[ "public", "boolean", "is", "sticky", "header", "(", "int", "position", ")", "{", "return", "false", ";", "}" ]
[ "generate", "the", "e", "tag", "header", "value", "from", "the", "given", "response", "body", "byte", "array", "the", "default", "implementation", "generates", "an", "md5", "hash" ]
[ "protected", "string", "generate", "e", "tag", "header", "value", "(", "input", "stream", "input", "stream", ",", "boolean", "is", "weak", ")", "throws", "i", "o", "exception", "{", "/", "/", "length", "of", "w", "/", "+", "\"", "+", "0", "+", "3", "2bits", "md", "5", "hash", "+", "\"", "string", "builder", "builder", "=", "new", "string", "builder", "(", "37", ")", ";", "if", "(", "is", "weak", ")", "{", "builder", "append", "(", "\"", "w", "/", "\"", ")", ";", "}", "builder", "append", "(", "\"", "\\", "\"", "0", "\"", ")", ";", "digest", "utils", "append", "md", "5", "digest", "as", "hex", "(", "input", "stream", ",", "builder", ")", ";", "builder", "append", "(", "'", "\"", "'", ")", ";", "return", "builder", "to", "string", "(", ")", ";", "}" ]
[ "program", "entry", "point" ]
[ "public", "static", "void", "main", "(", "string", "[", "]", "args", ")", "throws", "exception", "{", "var", "context", "=", "new", "default", "camel", "context", "(", ")", ";", "context", "add", "routes", "(", "new", "route", "builder", "(", ")", "{", "@", "override", "public", "void", "configure", "(", ")", "throws", "exception", "{", "from", "(", "\"", "stream", ":", "in", "\"", ")", "to", "(", "\"", "direct", ":", "greetings", "\"", ")", ";", "from", "(", "\"", "direct", ":", "greetings", "\"", ")", "to", "(", "\"", "stream", ":", "out", "\"", ")", ";", "}", "}", ")", ";", "context", "start", "(", ")", ";", "context", "get", "routes", "(", ")", "for", "each", "(", "r", "-", ">", "logger", "info", "(", "r", "to", "string", "(", ")", ")", ")", ";", "context", "stop", "(", ")", ";", "}" ]
[ "get", "transaction", "exception", "code" ]
[ "public", "static", "transaction", "exception", "code", "get", "(", "byte", "ordinal", ")", "{", "return", "get", "(", "(", "int", ")", "ordinal", ")", ";", "}" ]
[ "verify", "the", "ticket", "id", "received", "is", "actually", "legitimate", "before", "contacting", "downstream", "systems", "to", "find", "and", "process", "it" ]
[ "protected", "boolean", "is", "ticket", "authenticity", "verified", "(", "final", "string", "ticket", "id", ")", "{", "try", "{", "if", "(", "this", "cipher", "executor", "!", "=", "null", ")", "{", "logger", "trace", "(", "\"", "attempting", "to", "decode", "service", "ticket", "[", "{", "}", "]", "to", "verify", "authenticity", "\"", ",", "ticket", "id", ")", ";", "return", "!", "string", "utils", "is", "empty", "(", "this", "cipher", "executor", "decode", "(", "ticket", "id", ")", ")", ";", "}", "return", "!", "string", "utils", "is", "empty", "(", "ticket", "id", ")", ";", "}", "catch", "(", "final", "exception", "e", ")", "{", "logging", "utils", "warn", "(", "logger", ",", "e", ")", ";", "}", "return", "false", ";", "}" ]
[ "shows", "the", "given", "model", ",", "and", "notifies", "that", "the", "item", "changed", "if", "the", "item", "wasn", "'", "t", "already", "shown" ]
[ "protected", "void", "show", "model", "(", "epoxy", "model", "<", "?", ">", "model", ")", "{", "show", "model", "(", "model", ",", "true", ")", ";", "}" ]
[ "tests", "that", "xattrs", "should", "be", "cleaned", "if", "all", "blocks", "already", "satisfied" ]
[ "public", "void", "test", "s", "p", "s", "should", "not", "leak", "xattr", "if", "storage", "already", "satisfied", "(", ")", "throws", "exception", "{", "try", "{", "cluster", "set", "up", "(", ")", ";", "d", "f", "s", "test", "util", "wait", "expected", "storage", "type", "(", "test", "file", "name", ",", "storage", "type", "disk", ",", "3", ",", "timeout", ",", "fs", ")", ";", "fs", "satisfy", "storage", "policy", "(", "test", "file", ")", ";", "d", "f", "s", "test", "util", "wait", "expected", "storage", "type", "(", "test", "file", "name", ",", "storage", "type", "disk", ",", "3", ",", "timeout", ",", "fs", ")", ";", "/", "/", "make", "sure", "satisfy", "xattr", "has", "been", "removed", "d", "f", "s", "test", "util", "wait", "for", "xattr", "removed", "(", "test", "file", "name", ",", "xattr", "satisfy", "storage", "policy", ",", "cluster", "get", "namesystem", "(", ")", ",", "30000", ")", ";", "}", "finally", "{", "cluster", "shutdown", "(", ")", ";", "}", "}" ]
[ "creates", "a", "{", "@", "link", "local", "environment", "}", "which", "is", "used", "for", "executing", "flink", "jobs" ]
[ "private", "static", "local", "environment", "create", "local", "environment", "(", "configuration", "configuration", ",", "int", "default", "parallelism", ")", "{", "final", "local", "environment", "local", "environment", "=", "new", "local", "environment", "(", "configuration", ")", ";", "if", "(", "default", "parallelism", ">", "0", ")", "{", "local", "environment", "set", "parallelism", "(", "default", "parallelism", ")", ";", "}", "return", "local", "environment", ";", "}" ]
[ "set", "the", "order", "for", "the", "{", "@", "link", "org", "springframework", "web", "reactive", "result", "view", "view", "resolution", "result", "handler", "view", "resolution", "result", "handler", "}", "by", "default", "this", "property", "is", "not", "set", ",", "which", "means", "the", "result", "handler", "is", "ordered", "at", "{", "@", "link", "ordered", "#", "lowest", "precedence", "}" ]
[ "public", "void", "order", "(", "int", "order", ")", "{", "this", "order", "=", "order", ";", "}" ]
[ "called", "for", "unexpected", "errors", "while", "making", "the", "call" ]
[ "void", "unexpected", "error", "(", "throwable", "t", ")", ";" ]
[ "this", "completes", "a", "multipart", "upload", "to", "the", "destination", "key", "via", "{", "@", "code", "finalize", "multipart", "upload", "(", ")", "}", "retry", "policy", ":", "retrying", ",", "translated", "retries", "increment", "the", "{", "@", "code", "error", "count", "}", "counter" ]
[ "public", "complete", "multipart", "upload", "result", "complete", "m", "p", "uwith", "retries", "(", "string", "dest", "key", ",", "string", "upload", "id", ",", "list", "<", "part", "e", "tag", ">", "part", "e", "tags", ",", "long", "length", ",", "atomic", "integer", "error", "count", ")", "throws", "i", "o", "exception", "{", "check", "not", "null", "(", "upload", "id", ")", ";", "check", "not", "null", "(", "part", "e", "tags", ")", ";", "log", "debug", "(", "\"", "completing", "multipart", "upload", "{", "}", "with", "{", "}", "parts", "\"", ",", "upload", "id", ",", "part", "e", "tags", "size", "(", ")", ")", ";", "return", "finalize", "multipart", "upload", "(", "dest", "key", ",", "upload", "id", ",", "part", "e", "tags", ",", "length", ",", "(", "text", ",", "e", ",", "r", ",", "i", ")", "-", ">", "error", "count", "increment", "and", "get", "(", ")", ",", "null", ")", ";", "}" ]
[ "verifies", "that", "all", "elements", "in", "the", "collection", "are", "non", "-", "null", ",", "and", "are", "of", "the", "given", "class", ",", "or", "a", "subclass", "thereof" ]
[ "public", "static", "<", "out", ">", "void", "check", "collection", "(", "collection", "<", "out", ">", "elements", ",", "class", "<", "out", ">", "viewed", "as", ")", "{", "for", "(", "out", "elem", ":", "elements", ")", "{", "if", "(", "elem", "=", "=", "null", ")", "{", "throw", "new", "illegal", "argument", "exception", "(", "\"", "the", "collection", "contains", "a", "null", "element", "\"", ")", ";", "}", "if", "(", "!", "viewed", "as", "is", "assignable", "from", "(", "elem", "get", "class", "(", ")", ")", ")", "{", "throw", "new", "illegal", "argument", "exception", "(", "\"", "the", "elements", "in", "the", "collection", "are", "not", "all", "subclasses", "of", "\"", "+", "viewed", "as", "get", "canonical", "name", "(", ")", ")", ";", "}", "}", "}" ]
[ "a", "description", "of", "how", "this", "metric", "'", "s", "values", "change", "over", "time" ]
[ "public", "metric", "type", "get", "metric", "type", "(", ")", "{", "return", "this", "metric", "type", ";", "}" ]
[ "this", "test", "validates", "the", "correctness", "of", "{", "@", "link", "r", "m", "web", "service", "protocol", "#", "update", "application", "priority", "(", ")", "}", "inside", "router" ]
[ "public", "void", "test", "update", "app", "priority", "x", "m", "l", "(", ")", "throws", "exception", "{", "string", "app", "id", "=", "submit", "application", "(", ")", ";", "/", "/", "test", "with", "a", "wrong", "http", "method", "client", "response", "bad", "response", "=", "perform", "call", "(", "rm", "web", "service", "path", "+", "format", "(", "apps", "appid", "priority", ",", "app", "id", ")", ",", "null", ",", "null", ",", "null", ",", "post", ")", ";", "assert", "equals", "(", "sc", "internal", "server", "error", ",", "bad", "response", "get", "status", "(", ")", ")", ";", "/", "/", "test", "with", "the", "correct", "http", "method", "app", "priority", "app", "priority", "=", "new", "app", "priority", "(", "1", ")", ";", "client", "response", "response", "=", "perform", "call", "(", "rm", "web", "service", "path", "+", "format", "(", "apps", "appid", "priority", ",", "app", "id", ")", ",", "null", ",", "null", ",", "app", "priority", ",", "put", ")", ";", "assert", "equals", "(", "sc", "ok", ",", "response", "get", "status", "(", ")", ")", ";", "app", "priority", "ci", "=", "response", "get", "entity", "(", "app", "priority", "class", ")", ";", "assert", "not", "null", "(", "ci", ")", ";", "}" ]
[ "returns", "an", "immutable", "set", "containing", "each", "of", "{", "@", "code", "elements", "}", ",", "minus", "duplicates", ",", "in", "the", "order", "each", "appears", "first", "in", "the", "source", "iterator" ]
[ "public", "static", "<", "e", ">", "immutable", "set", "<", "e", ">", "copy", "of", "(", "iterator", "<", "?", "extends", "e", ">", "elements", ")", "{", "/", "/", "we", "special", "-", "case", "for", "0", "or", "1", "elements", ",", "but", "anything", "further", "is", "madness", "if", "(", "!", "elements", "has", "next", "(", ")", ")", "{", "return", "of", "(", ")", ";", "}", "e", "first", "=", "elements", "next", "(", ")", ";", "if", "(", "!", "elements", "has", "next", "(", ")", ")", "{", "return", "of", "(", "first", ")", ";", "}", "else", "{", "return", "new", "immutable", "set", "builder", "<", "e", ">", "(", ")", "add", "(", "first", ")", "add", "all", "(", "elements", ")", "build", "(", ")", ";", "}", "}" ]
[ "returns", "the", "human", "-", "readable", "description", "of", "the", "non", "-", "default", "options", "for", "this", "build", "request" ]
[ "public", "string", "get", "options", "description", "(", ")", "{", "return", "options", "description", ";", "}" ]
[ "clears", "the", "map", "and", "reduces", "the", "size", "of", "the", "backing", "arrays", "to", "be", "the", "specified", "capacity", "load", "factor", ",", "if", "they", "are", "larger" ]
[ "public", "void", "clear", "(", "int", "maximum", "capacity", ")", "{", "int", "table", "size", "=", "table", "size", "(", "maximum", "capacity", ",", "load", "factor", ")", ";", "if", "(", "key", "table", "length", "<", "=", "table", "size", ")", "{", "clear", "(", ")", ";", "return", ";", "}", "size", "=", "0", ";", "resize", "(", "table", "size", ")", ";", "}" ]
[ "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", "\"", ")", ";", "}" ]
[ "assert", "that", "a", "file", "system", "list", "status", "on", "a", "dir", "finds", "the", "subdirchild", "entry" ]
[ "public", "static", "void", "assert", "list", "status", "finds", "(", "file", "system", "fs", ",", "path", "dir", ",", "path", "subdir", ")", "throws", "i", "o", "exception", "{", "file", "status", "[", "]", "stats", "=", "fs", "list", "status", "(", "dir", ")", ";", "boolean", "found", "=", "false", ";", "string", "builder", "builder", "=", "new", "string", "builder", "(", ")", ";", "for", "(", "file", "status", "stat", ":", "stats", ")", "{", "builder", "append", "(", "stat", "to", "string", "(", ")", ")", "append", "(", "system", "line", "separator", "(", ")", ")", ";", "if", "(", "stat", "get", "path", "(", ")", "equals", "(", "subdir", ")", ")", "{", "found", "=", "true", ";", "}", "}", "assert", "true", "(", "\"", "path", "\"", "+", "subdir", "+", "\"", "not", "found", "in", "directory", "\"", "+", "dir", "+", "\"", ":", "\"", "+", "builder", ",", "found", ")", ";", "}" ]
[ "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", "\"", ")", ";", "}" ]
[ "wait", "for", "the", "name", "node", "to", "issue", "any", "deletions", "that", "are", "already", "pending", "(", "i", "e", "for", "the", "pending", "deletion", "blocks", "count", "to", "go", "to", "0", ")" ]
[ "public", "static", "void", "wait", "for", "n", "n", "to", "issue", "deletions", "(", "final", "name", "node", "nn", ")", "throws", "exception", "{", "generic", "test", "utils", "wait", "for", "(", "new", "supplier", "<", "boolean", ">", "(", ")", "{", "@", "override", "public", "boolean", "get", "(", ")", "{", "log", "info", "(", "\"", "waiting", "for", "nn", "to", "issue", "block", "deletions", "to", "d", "ns", "\"", ")", ";", "return", "nn", "get", "namesystem", "(", ")", "get", "block", "manager", "(", ")", "get", "pending", "deletion", "blocks", "count", "(", ")", "=", "=", "0", ";", "}", "}", ",", "250", ",", "10000", ")", ";", "}" ]
[ "the", "terminal", "title", "as", "set", "through", "escape", "sequences", "or", "null", "if", "none", "set" ]
[ "public", "string", "get", "title", "(", ")", "{", "return", "(", "m", "emulator", "=", "=", "null", ")", "?", "null", ":", "m", "emulator", "get", "title", "(", ")", ";", "}" ]
[ "the", "operation", "'", "s", "result", "after", "it", "has", "completed", "waits", "until", "a", "result", "is", "available" ]
[ "public", "synchronized", "object", "get", "result", "(", ")", "{", "if", "(", "!", "completed", ")", "{", "wait", "for", "completion", "(", ")", ";", "}", "if", "(", "throwable", "!", "=", "null", ")", "{", "throw", "new", "async", "dao", "exception", "(", "this", ",", "throwable", ")", ";", "}", "return", "result", ";", "}" ]
[ "execute", "all", "the", "chained", "tasks", "serially", ",", "notify", "listener", "when", "completed" ]
[ "public", "synchronized", "void", "execute", "(", "action", "listener", "<", "list", "<", "t", ">", ">", "listener", ")", "{", "if", "(", "tasks", "is", "empty", "(", ")", ")", "{", "listener", "on", "response", "(", "collections", "empty", "list", "(", ")", ")", ";", "return", ";", "}", "collected", "responses", "clear", "(", ")", ";", "chain", "task", "<", "t", ">", "task", "=", "tasks", "pop", "(", ")", ";", "executor", "service", "execute", "(", "new", "abstract", "runnable", "(", ")", "{", "@", "override", "public", "void", "on", "failure", "(", "exception", "e", ")", "{", "if", "(", "failure", "short", "circuit", "predicate", "test", "(", "e", ")", ")", "{", "listener", "on", "failure", "(", "e", ")", ";", "}", "else", "{", "execute", "(", "null", ",", "listener", ")", ";", "}", "}", "@", "override", "protected", "void", "do", "run", "(", ")", "{", "task", "run", "(", "action", "listener", "wrap", "(", "value", "-", ">", "execute", "(", "value", ",", "listener", ")", ",", "this", ":", ":", "on", "failure", ")", ")", ";", "}", "}", ")", ";", "}" ]
[ "test", "the", "property", "'", "double", "'" ]
[ "public", "void", "double", "test", "(", ")", "{", "/", "/", "todo", ":", "test", "double", "}" ]
[ "unregister", "the", "status", "of", "network", "changed", "listener" ]
[ "public", "static", "void", "unregister", "network", "status", "changed", "listener", "(", "final", "on", "network", "status", "changed", "listener", "listener", ")", "{", "network", "changed", "receiver", "get", "instance", "(", ")", "unregister", "listener", "(", "listener", ")", ";", "}", "@", "requires", "permission", "(", "all", "of", "=", "{", "access", "wifi", "state", ",", "access", "coarse", "location", "}" ]
[ "return", "other", "{", "@", "link", "fs", "action", "}" ]
[ "public", "fs", "action", "get", "other", "action", "(", ")", "{", "return", "otheraction", ";", "}" ]
[ "finds", "index", "of", "the", "string", "returns", "-", "1", "if", "the", "string", "was", "not", "found" ]
[ "public", "int", "find", "(", "string", "string", ")", "{", "if", "(", "string", "=", "=", "null", ")", "{", "return", "-", "1", ";", "}", "for", "(", "int", "i", "=", "0", ";", "i", "!", "=", "m", "string", "offsets", "length", ";", "+", "+", "i", ")", "{", "int", "offset", "=", "m", "string", "offsets", "[", "i", "]", ";", "int", "length", "=", "get", "short", "(", "m", "strings", ",", "offset", ")", ";", "if", "(", "length", "!", "=", "string", "length", "(", ")", ")", "{", "continue", ";", "}", "int", "j", "=", "0", ";", "for", "(", ";", "j", "!", "=", "length", ";", "+", "+", "j", ")", "{", "offset", "+", "=", "2", ";", "if", "(", "string", "char", "at", "(", "j", ")", "!", "=", "get", "short", "(", "m", "strings", ",", "offset", ")", ")", "{", "break", ";", "}", "}", "if", "(", "j", "=", "=", "length", ")", "{", "return", "i", ";", "}", "}", "return", "-", "1", ";", "}" ]
[ "it", "writes", "a", "record", "to", "parquet" ]
[ "public", "void", "write", "(", "final", "row", "data", "record", ")", "{", "record", "consumer", "start", "message", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "filed", "writers", "length", ";", "i", "+", "+", ")", "{", "if", "(", "!", "record", "is", "null", "at", "(", "i", ")", ")", "{", "string", "field", "name", "=", "field", "names", "[", "i", "]", ";", "field", "writer", "writer", "=", "filed", "writers", "[", "i", "]", ";", "record", "consumer", "start", "field", "(", "field", "name", ",", "i", ")", ";", "writer", "write", "(", "record", ",", "i", ")", ";", "record", "consumer", "end", "field", "(", "field", "name", ",", "i", ")", ";", "}", "}", "record", "consumer", "end", "message", "(", ")", ";", "}" ]
[ "get", "the", "original", "value" ]
[ "public", "object", "get", "old", "value", "(", ")", "{", "return", "old", "value", ";", "}" ]
[ "read", "short", ",", "16", "-", "bits", "like", "data", "input", "stream", "read", "short", "except", "little", "endian" ]
[ "public", "final", "short", "read", "short", "(", ")", "throws", "i", "o", "exception", "{", "dis", "read", "fully", "(", "work", ",", "0", ",", "2", ")", ";", "return", "(", "short", ")", "(", "(", "work", "[", "1", "]", "&", "0xff", ")", "<", "<", "8", "|", "(", "work", "[", "0", "]", "&", "0xff", ")", ")", ";", "}" ]
[ "all", "custom", "types", "that", "are", "not", "serializable", "by", "default", "can", "be", "be", "serialized", "as", "a", "part", "of", "cursor", "(", "i", "e", "as", "constant", "in", "constant", "processor", ")", "should", "implement", "named", "writeables", "interface", "and", "register", "their", "de", "-", "serialization", "methods", "here" ]
[ "public", "static", "collection", "<", "?", "extends", "named", "writeable", "registry", "entry", ">", "get", "named", "writeables", "(", ")", "{", "list", "<", "named", "writeable", "registry", "entry", ">", "entries", "=", "new", "array", "list", "<", ">", "(", ")", ";", "entries", "add", "(", "new", "named", "writeable", "registry", "entry", "(", "constant", "named", "writeable", "class", ",", "interval", "day", "time", "name", ",", "interval", "day", "time", ":", ":", "new", ")", ")", ";", "entries", "add", "(", "new", "named", "writeable", "registry", "entry", "(", "constant", "named", "writeable", "class", ",", "interval", "year", "month", "name", ",", "interval", "year", "month", ":", ":", "new", ")", ")", ";", "entries", "add", "(", "new", "named", "writeable", "registry", "entry", "(", "constant", "named", "writeable", "class", ",", "geo", "shape", "name", ",", "geo", "shape", ":", ":", "new", ")", ")", ";", "return", "entries", ";", "}" ]