docstring_tokens
list
code_tokens
list
[ "creates", "a", "dirty", "result", "indicating", "that", "external", "value", "is", "different", "from", "the", "value", "in", "the", "graph", ",", "but", "this", "new", "value", "is", "not", "known" ]
[ "public", "static", "dirty", "result", "dirty", "(", "@", "nullable", "sky", "value", "old", "value", ")", "{", "return", "new", "dirty", "result", "(", "/", "*", "is", "dirty", "=", "*", "/", "true", ",", "old", "value", ",", "/", "*", "new", "value", "=", "*", "/", "null", ")", ";", "}" ]
[ "transfers", "this", "buffer", "'", "s", "data", "to", "the", "specified", "destination", "starting", "at", "the", "specified", "absolute", "{", "@", "code", "index", "}", "this", "method", "is", "basically", "same", "with", "{", "@", "link", "#", "get", "bytes", "(", "int", ",", "channel", "buffer", ",", "int", ",", "int", ")", "}", ",", "except", "that", "this", "method", "increases", "the", "{", "@", "code", "writer", "index", "}", "of", "the", "destination", "by", "the", "number", "of", "the", "transferred", "bytes", "while", "{", "@", "link", "#", "get", "bytes", "(", "int", ",", "channel", "buffer", ",", "int", ",", "int", ")", "}", "does", "not", "this", "method", "does", "not", "modify", "{", "@", "code", "reader", "index", "}", "or", "{", "@", "code", "writer", "index", "}", "of", "the", "source", "buffer", "(", "i", "e", "{", "@", "code", "this", "}", ")" ]
[ "void", "get", "bytes", "(", "int", "index", ",", "channel", "buffer", "dst", ",", "int", "length", ")", ";" ]
[ "indicates", "that", "a", "changelog", "should", "be", "created", "for", "the", "store", "the", "changelog", "will", "be", "created", "with", "the", "provided", "configs", "note", ":", "any", "unrecognized", "configs", "will", "be", "ignored" ]
[ "public", "materialized", "<", "k", ",", "v", ",", "s", ">", "with", "logging", "enabled", "(", "final", "map", "<", "string", ",", "string", ">", "config", ")", "{", "logging", "enabled", "=", "true", ";", "this", "topic", "config", "=", "config", ";", "return", "this", ";", "}" ]
[ "flatten", "out", "the", "top", "window", "metrics", "into", "{", "@", "link", "org", "apache", "hadoop", "metrics", "2", "metrics", "record", "}", "s", "for", "consumption", "by", "external", "metrics", "systems", "each", "metrics", "record", "added", "corresponds", "to", "the", "reporting", "period", "a", "k", "a", "window", "length", "of", "the", "configured", "rolling", "windows" ]
[ "public", "void", "get", "metrics", "(", "metrics", "collector", "collector", ",", "boolean", "all", ")", "{", "if", "(", "!", "is", "metrics", "source", "enabled", ")", "{", "return", ";", "}", "for", "(", "final", "top", "window", "window", ":", "get", "top", "windows", "(", ")", ")", "{", "metrics", "record", "builder", "rb", "=", "collector", "add", "record", "(", "build", "op", "record", "name", "(", "window", ")", ")", "set", "context", "(", "\"", "dfs", "\"", ")", ";", "for", "(", "final", "op", "op", ":", "window", "get", "ops", "(", ")", ")", "{", "rb", "add", "counter", "(", "build", "op", "total", "count", "metrics", "info", "(", "op", ")", ",", "op", "get", "total", "count", "(", ")", ")", ";", "for", "(", "user", "user", ":", "op", "get", "top", "users", "(", ")", ")", "{", "rb", "add", "counter", "(", "build", "op", "record", "metrics", "info", "(", "op", ",", "user", ")", ",", "user", "get", "count", "(", ")", ")", ";", "}", "}", "}", "}" ]
[ "returns", "the", "short", "value", "of", "a", "header", "with", "the", "specified", "name", "if", "there", "are", "more", "than", "one", "values", "for", "the", "specified", "name", ",", "the", "first", "value", "is", "returned" ]
[ "public", "abstract", "short", "get", "short", "(", "char", "sequence", "name", ",", "short", "default", "value", ")", ";" ]
[ "the", "document", "has", "been", "removed" ]
[ "body", "$", "onunload", "(", "string", "script", ")", ";" ]
[ "validate", "this", "setting", "against", "its", "dependencies", ",", "specified", "by", "{", "@", "link", "#", "settings", "(", ")", "}", "the", "default", "implementation", "does", "nothing", ",", "accepting", "any", "value", "as", "valid", "as", "long", "as", "it", "passes", "the", "validation", "in", "{", "@", "link", "#", "validate", "(", "object", ")", "}" ]
[ "default", "void", "validate", "(", "t", "value", ",", "map", "<", "setting", "<", "?", ">", ",", "object", ">", "settings", ")", "{", "}" ]
[ "creates", "an", "{", "@", "link", "index", "metadata", "builder", "}", "for", "the", "provided", "index", "and", "sets", "a", "valid", "primary", "term", "for", "all", "the", "shards", "if", "a", "source", "index", "meta", "data", "is", "provided", "(", "this", "represents", "the", "case", "where", "we", "'", "re", "shrinkingsplitting", "an", "index", "and", "the", "primary", "term", "for", "the", "newly", "created", "index", "needs", "to", "be", "gte", "than", "the", "maximum", "term", "in", "the", "source", "index", ")" ]
[ "private", "static", "index", "metadata", "builder", "create", "index", "metadata", "builder", "(", "string", "index", "name", ",", "@", "nullable", "index", "metadata", "source", "metadata", ",", "settings", "index", "settings", ",", "int", "routing", "num", "shards", ")", "{", "final", "index", "metadata", "builder", "builder", "=", "index", "metadata", "builder", "(", "index", "name", ")", ";", "builder", "set", "routing", "num", "shards", "(", "routing", "num", "shards", ")", ";", "builder", "settings", "(", "index", "settings", ")", ";", "if", "(", "source", "metadata", "!", "=", "null", ")", "{", "/", "*", "*", "we", "need", "to", "arrange", "that", "the", "primary", "term", "on", "all", "the", "shards", "in", "the", "shrunken", "index", "is", "at", "least", "as", "large", "as", "*", "the", "maximum", "primary", "term", "on", "all", "the", "shards", "in", "the", "source", "index", "this", "ensures", "that", "we", "have", "correct", "*", "document", "-", "level", "semantics", "regarding", "sequence", "numbers", "in", "the", "shrunken", "index", "*", "/", "final", "long", "primary", "term", "=", "int", "stream", "range", "(", "0", ",", "source", "metadata", "get", "number", "of", "shards", "(", ")", ")", "map", "to", "long", "(", "source", "metadata", ":", ":", "primary", "term", ")", "max", "(", ")", "get", "as", "long", "(", ")", ";", "for", "(", "int", "shard", "id", "=", "0", ";", "shard", "id", "<", "builder", "number", "of", "shards", "(", ")", ";", "shard", "id", "+", "+", ")", "{", "builder", "primary", "term", "(", "shard", "id", ",", "primary", "term", ")", ";", "}", "}", "return", "builder", ";", "}" ]
[ "returns", "an", "empty", "consumer", "that", "does", "nothing" ]
[ "public", "static", "<", "t", ">", "consumer", "<", "t", ">", "empty", "consumer", "(", ")", "{", "return", "(", "consumer", "<", "t", ">", ")", "empty", "consumer", ";", "}" ]
[ "returns", "the", "resource", "'", "s", "data", "instance" ]
[ "public", "data", "get", "resource", "data", "(", ")", "{", "if", "(", "data", "=", "=", "null", ")", "{", "data", "=", "data", "utilities", "get", "data", "at", "location", "(", "this", ")", ";", "}", "return", "data", ";", "}" ]
[ "remove", "the", "merged", "bean", "definition", "for", "the", "specified", "bean", ",", "recreating", "it", "on", "next", "access" ]
[ "protected", "void", "clear", "merged", "bean", "definition", "(", "string", "bean", "name", ")", "{", "root", "bean", "definition", "bd", "=", "this", "merged", "bean", "definitions", "get", "(", "bean", "name", ")", ";", "if", "(", "bd", "!", "=", "null", ")", "{", "bd", "stale", "=", "true", ";", "}", "}" ]
[ "parser", "a", "singe", "set", "of", "2", "or", "3", "coordinates" ]
[ "private", "static", "point", "parse", "coordinate", "(", "x", "content", "parser", "parser", ")", "throws", "i", "o", "exception", "{", "/", "/", "add", "support", "for", "coerce", "here", "if", "(", "parser", "current", "token", "(", ")", "!", "=", "x", "content", "parser", "token", "value", "number", ")", "{", "throw", "new", "elasticsearch", "parse", "exception", "(", "\"", "geo", "coordinates", "must", "be", "numbers", "\"", ")", ";", "}", "double", "lon", "=", "parser", "double", "value", "(", ")", ";", "if", "(", "parser", "next", "token", "(", ")", "!", "=", "x", "content", "parser", "token", "value", "number", ")", "{", "throw", "new", "elasticsearch", "parse", "exception", "(", "\"", "geo", "coordinates", "must", "be", "numbers", "\"", ")", ";", "}", "double", "lat", "=", "parser", "double", "value", "(", ")", ";", "x", "content", "parser", "token", "token", "=", "parser", "next", "token", "(", ")", ";", "/", "/", "alt", "(", "for", "storing", "purposes", "only", "-", "future", "use", "includes", "3d", "shapes", ")", "double", "alt", "=", "double", "na", "n", ";", "if", "(", "token", "=", "=", "x", "content", "parser", "token", "value", "number", ")", "{", "alt", "=", "parser", "double", "value", "(", ")", ";", "parser", "next", "token", "(", ")", ";", "}", "/", "/", "do", "not", "support", ">", "3", "dimensions", "if", "(", "parser", "current", "token", "(", ")", "=", "=", "x", "content", "parser", "token", "value", "number", ")", "{", "throw", "new", "elasticsearch", "parse", "exception", "(", "\"", "geo", "coordinates", "greater", "than", "3", "dimensions", "are", "not", "supported", "\"", ")", ";", "}", "return", "new", "point", "(", "lon", ",", "lat", ",", "alt", ")", ";", "}" ]
[ "similar", "to", "{", "@", "link", "#", "get", "(", "long", ",", "java", "util", "concurrent", "time", "unit", ")", "}", ",", "just", "catching", "the", "{", "@", "link", "interrupted", "exception", "}", "and", "throwing", "an", "{", "@", "link", "illegal", "state", "exception", "}", "instead", "also", "catches", "{", "@", "link", "java", "util", "concurrent", "execution", "exception", "}", "and", "throws", "the", "actual", "cause", "instead" ]
[ "t", "action", "get", "(", "string", "timeout", ")", ";" ]
[ "steps", ":", "1", ")", "set", "xattrs", "on", "a", "file", "2", ")", "remove", "xattrs", "from", "that", "file", "3", ")", "save", "a", "checkpoint", "and", "restart", "nn", "4", ")", "set", "xattrs", "again", "on", "the", "same", "file", "5", ")", "remove", "xattrs", "from", "that", "file", "6", ")", "restart", "nn", "without", "saving", "a", "checkpoint", "7", ")", "set", "xattrs", "again", "on", "the", "same", "file" ]
[ "public", "void", "test", "cleanup", "x", "attrs", "(", ")", "throws", "exception", "{", "file", "system", "mkdirs", "(", "fs", ",", "path", ",", "fs", "permission", "create", "immutable", "(", "(", "short", ")", "0750", ")", ")", ";", "fs", "set", "x", "attr", "(", "path", ",", "name", "1", ",", "value", "1", ",", "enum", "set", "of", "(", "x", "attr", "set", "flag", "create", ")", ")", ";", "fs", "set", "x", "attr", "(", "path", ",", "name", "2", ",", "value", "2", ",", "enum", "set", "of", "(", "x", "attr", "set", "flag", "create", ")", ")", ";", "fs", "remove", "x", "attr", "(", "path", ",", "name", "1", ")", ";", "fs", "remove", "x", "attr", "(", "path", ",", "name", "2", ")", ";", "restart", "(", "true", ")", ";", "init", "file", "system", "(", ")", ";", "fs", "set", "x", "attr", "(", "path", ",", "name", "1", ",", "value", "1", ",", "enum", "set", "of", "(", "x", "attr", "set", "flag", "create", ")", ")", ";", "fs", "set", "x", "attr", "(", "path", ",", "name", "2", ",", "value", "2", ",", "enum", "set", "of", "(", "x", "attr", "set", "flag", "create", ")", ")", ";", "fs", "remove", "x", "attr", "(", "path", ",", "name", "1", ")", ";", "fs", "remove", "x", "attr", "(", "path", ",", "name", "2", ")", ";", "restart", "(", "false", ")", ";", "init", "file", "system", "(", ")", ";", "fs", "set", "x", "attr", "(", "path", ",", "name", "1", ",", "value", "1", ",", "enum", "set", "of", "(", "x", "attr", "set", "flag", "create", ")", ")", ";", "fs", "set", "x", "attr", "(", "path", ",", "name", "2", ",", "value", "2", ",", "enum", "set", "of", "(", "x", "attr", "set", "flag", "create", ")", ")", ";", "fs", "remove", "x", "attr", "(", "path", ",", "name", "1", ")", ";", "fs", "remove", "x", "attr", "(", "path", ",", "name", "2", ")", ";", "fs", "set", "x", "attr", "(", "path", ",", "name", "1", ",", "value", "1", ",", "enum", "set", "of", "(", "x", "attr", "set", "flag", "create", ")", ")", ";", "fs", "set", "x", "attr", "(", "path", ",", "name", "2", ",", "value", "2", ",", "enum", "set", "of", "(", "x", "attr", "set", "flag", "create", ")", ")", ";", "map", "<", "string", ",", "byte", "[", "]", ">", "xattrs", "=", "fs", "get", "x", "attrs", "(", "path", ")", ";", "assert", "assert", "equals", "(", "xattrs", "size", "(", ")", ",", "2", ")", ";", "assert", "assert", "array", "equals", "(", "value", "1", ",", "xattrs", "get", "(", "name", "1", ")", ")", ";", "assert", "assert", "array", "equals", "(", "value", "2", ",", "xattrs", "get", "(", "name", "2", ")", ")", ";", "}" ]
[ "delete", "and", "re", "-", "initialize", "the", "cache", ",", "to", "force", "it", "to", "use", "the", "given", "configuration" ]
[ "public", "synchronized", "void", "reinitialize", "(", "federation", "state", "store", "store", ",", "configuration", "config", ")", "{", "this", "conf", "=", "config", ";", "this", "state", "store", "=", "store", ";", "clear", "cache", "(", ")", ";", "init", "cache", "(", ")", ";", "}" ]
[ "resets", "the", "byte", "and", "file", "statistics", "being", "tracked", "by", "this", "cache", "directive" ]
[ "public", "void", "reset", "statistics", "(", ")", "{", "bytes", "needed", "=", "0", ";", "bytes", "cached", "=", "0", ";", "files", "needed", "=", "0", ";", "files", "cached", "=", "0", ";", "}" ]
[ "parses", "an", "annotation", "list" ]
[ "private", "annotations", "parse", "annotations", "(", "annotation", "visibility", "visibility", ")", "throws", "i", "o", "exception", "{", "int", "count", "=", "input", "read", "unsigned", "short", "(", ")", ";", "if", "(", "observer", "!", "=", "null", ")", "{", "parsed", "(", "2", ",", "\"", "num", "annotations", ":", "\"", "+", "hex", "u", "2", "(", "count", ")", ")", ";", "}", "annotations", "annotations", "=", "new", "annotations", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "count", ";", "i", "+", "+", ")", "{", "if", "(", "observer", "!", "=", "null", ")", "{", "parsed", "(", "0", ",", "\"", "annotations", "[", "\"", "+", "i", "+", "\"", "]", ":", "\"", ")", ";", "change", "indent", "(", "1", ")", ";", "}", "annotation", "annotation", "=", "parse", "annotation", "(", "visibility", ")", ";", "annotations", "add", "(", "annotation", ")", ";", "if", "(", "observer", "!", "=", "null", ")", "{", "observer", "change", "indent", "(", "-", "1", ")", ";", "}", "}", "annotations", "set", "immutable", "(", ")", ";", "return", "annotations", ";", "}" ]
[ "create", "jdbc", "template", "bean" ]
[ "public", "jdbc", "template", "jdbc", "template", "(", "final", "data", "source", "data", "source", ")", "{", "return", "new", "jdbc", "template", "(", "data", "source", ")", ";", "}" ]
[ "constructs", "a", "create", "operation", "arguments", "are", "as", "for", "the", "zoo", "keeper", "method", "of", "the", "same", "name", "but", "adding", "an", "optional", "ttl" ]
[ "public", "static", "op", "create", "(", "string", "path", ",", "byte", "[", "]", "data", ",", "list", "<", "acl", ">", "acl", ",", "create", "mode", "create", "mode", ",", "long", "ttl", ")", "{", "if", "(", "create", "mode", "is", "t", "t", "l", "(", ")", ")", "{", "return", "new", "create", "t", "t", "l", "(", "path", ",", "data", ",", "acl", ",", "create", "mode", ",", "ttl", ")", ";", "}", "return", "new", "create", "(", "path", ",", "data", ",", "acl", ",", "create", "mode", ")", ";", "}" ]
[ "adds", "a", "string", "to", "the", "current", "{", "@", "link", "strings", "segment", "}" ]
[ "segment", "mapper", "add", "(", "string", "line", ")", "{", "current", "lines", "add", "(", "line", ")", ";", "return", "this", ";", "}" ]
[ "get", "the", "list", "of", "j", "a", "rs", "from", "the", "yarn", "settings" ]
[ "public", "list", "<", "string", ">", "yarn", "application", "classpath", "(", "configuration", "config", ")", "{", "string", "[", "]", "cp", "=", "config", "get", "trimmed", "strings", "(", "yarn", "configuration", "yarn", "application", "classpath", ",", "yarn", "configuration", "default", "yarn", "cross", "platform", "application", "classpath", ")", ";", "return", "cp", "!", "=", "null", "?", "arrays", "as", "list", "(", "cp", ")", ":", "new", "array", "list", "<", "string", ">", "(", "0", ")", ";", "}" ]
[ "test", "that", "appends", "to", "files", "at", "random", "offsets" ]
[ "private", "void", "test", "complex", "append", "(", "boolean", "append", "to", "new", "block", ")", "throws", "i", "o", "exception", "{", "file", "contents", "=", "append", "test", "util", "init", "buffer", "(", "append", "test", "util", "file", "size", ")", ";", "configuration", "conf", "=", "new", "hdfs", "configuration", "(", ")", ";", "conf", "set", "int", "(", "d", "f", "s", "config", "keys", "dfs", "namenode", "heartbeat", "recheck", "interval", "key", ",", "2000", ")", ";", "conf", "set", "int", "(", "d", "f", "s", "config", "keys", "dfs", "heartbeat", "interval", "key", ",", "2", ")", ";", "conf", "set", "int", "(", "d", "f", "s", "config", "keys", "dfs", "namenode", "reconstruction", "pending", "timeout", "sec", "key", ",", "2", ")", ";", "conf", "set", "int", "(", "hdfs", "client", "config", "keys", "dfs", "client", "socket", "timeout", "key", ",", "30000", ")", ";", "conf", "set", "int", "(", "hdfs", "client", "config", "keys", "dfs", "datanode", "socket", "write", "timeout", "key", ",", "30000", ")", ";", "conf", "set", "int", "(", "d", "f", "s", "config", "keys", "dfs", "datanode", "handler", "count", "key", ",", "50", ")", ";", "mini", "d", "f", "s", "cluster", "cluster", "=", "new", "mini", "d", "f", "s", "cluster", "builder", "(", "conf", ")", "num", "data", "nodes", "(", "num", "datanodes", ")", "build", "(", ")", ";", "cluster", "wait", "active", "(", ")", ";", "file", "system", "fs", "=", "cluster", "get", "file", "system", "(", ")", ";", "try", "{", "/", "/", "create", "a", "bunch", "of", "test", "files", "with", "random", "replication", "factors", "/", "/", "insert", "them", "into", "a", "linked", "list", "/", "/", "for", "(", "int", "i", "=", "0", ";", "i", "<", "number", "of", "files", ";", "i", "+", "+", ")", "{", "final", "int", "replication", "=", "append", "test", "util", "next", "int", "(", "num", "datanodes", "-", "2", ")", "+", "1", ";", "path", "test", "file", "=", "new", "path", "(", "\"", "/", "\"", "+", "i", "+", "\"", "dat", "\"", ")", ";", "f", "s", "data", "output", "stream", "stm", "=", "append", "test", "util", "create", "file", "(", "fs", ",", "test", "file", ",", "replication", ")", ";", "stm", "close", "(", ")", ";", "test", "files", "add", "(", "test", "file", ")", ";", "}", "/", "/", "create", "threads", "and", "make", "them", "run", "workload", "concurrently", "workload", "=", "new", "workload", "[", "num", "threads", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "num", "threads", ";", "i", "+", "+", ")", "{", "workload", "[", "i", "]", "=", "new", "workload", "(", "cluster", ",", "i", ",", "append", "to", "new", "block", ")", ";", "workload", "[", "i", "]", "start", "(", ")", ";", "}", "/", "/", "wait", "for", "all", "transactions", "to", "get", "over", "for", "(", "int", "i", "=", "0", ";", "i", "<", "num", "threads", ";", "i", "+", "+", ")", "{", "try", "{", "system", "out", "println", "(", "\"", "waiting", "for", "thread", "\"", "+", "i", "+", "\"", "to", "complete", "\"", ")", ";", "workload", "[", "i", "]", "join", "(", ")", ";", "system", "out", "println", "(", "\"", "waiting", "for", "thread", "\"", "+", "i", "+", "\"", "complete", "\"", ")", ";", "}", "catch", "(", "interrupted", "exception", "e", ")", "{", "i", "-", "-", ";", "/", "/", "retry", "}", "}", "}", "finally", "{", "fs", "close", "(", ")", ";", "cluster", "shutdown", "(", ")", ";", "}", "/", "/", "if", "any", "of", "the", "worker", "thread", "failed", "in", "their", "job", ",", "indicate", "that", "/", "/", "this", "test", "failed", "/", "/", "assert", "true", "(", "\"", "test", "complex", "append", "worker", "encountered", "exceptions", "\"", ",", "global", "status", ")", ";", "}" ]
[ "prepares", "test", "environment", "and", "returns", "test", "context", "instance", "to", "be", "used", "by", "tests", "to", "access", "the", "environment", "and", "invoke", "bazel", "blaze", "commands" ]
[ "public", "black", "box", "test", "context", "prepare", "environment", "(", "string", "test", "name", ",", "immutable", "list", "<", "tools", "setup", ">", "tools", ")", "throws", "exception", "{", "preconditions", "check", "not", "null", "(", "executor", "service", ")", ";", "return", "prepare", "environment", "(", "test", "name", ",", "tools", ",", "executor", "service", ")", ";", "}" ]
[ "sets", "whether", "to", "enable", "fallback", "to", "lower", "-", "priority", "decoders", "if", "decoder", "initialization", "fails", "this", "may", "result", "in", "using", "a", "decoder", "that", "is", "less", "efficient", "or", "slower", "than", "the", "primary", "decoder" ]
[ "public", "default", "renderers", "factory", "set", "enable", "decoder", "fallback", "(", "boolean", "enable", "decoder", "fallback", ")", "{", "this", "enable", "decoder", "fallback", "=", "enable", "decoder", "fallback", ";", "return", "this", ";", "}" ]
[ "if", "the", "hints", "contain", "a", "{", "@", "link", "#", "log", "prefix", "hint", "}", "and", "the", "given", "logger", "has", "debug", "level", "enabled", ",", "apply", "the", "log", "prefix", "as", "a", "hint", "to", "the", "given", "buffer", "via", "{", "@", "link", "data", "buffer", "utils", "#", "touch", "(", "data", "buffer", ",", "object", ")", "}" ]
[ "public", "static", "void", "touch", "data", "buffer", "(", "data", "buffer", "buffer", ",", "@", "nullable", "map", "<", "string", ",", "object", ">", "hints", ",", "log", "logger", ")", "{", "if", "(", "logger", "is", "debug", "enabled", "(", ")", "&", "&", "hints", "!", "=", "null", ")", "{", "object", "log", "prefix", "=", "hints", "get", "(", "log", "prefix", "hint", ")", ";", "if", "(", "log", "prefix", "!", "=", "null", ")", "{", "data", "buffer", "utils", "touch", "(", "buffer", ",", "log", "prefix", ")", ";", "}", "}", "}" ]
[ "{", "@", "inherit", "doc", "}" ]
[ "public", "constant", "get", "0", "ok", "(", "int", "n", ")", "{", "if", "(", "n", "=", "=", "0", ")", "{", "return", "null", ";", "}", "return", "get", "(", "n", ")", ";", "}" ]
[ "creates", "a", "new", "class", "node", "instances", "from", "the", "provided", "byte", "[", "]" ]
[ "public", "static", "class", "node", "get", "node", "(", "final", "byte", "[", "]", "bytez", ")", "throws", "exception", "{", "class", "reader", "cr", "=", "new", "class", "reader", "(", "bytez", ")", ";", "class", "node", "cn", "=", "new", "class", "node", "(", ")", ";", "try", "{", "cr", "accept", "(", "cn", ",", "class", "reader", "expand", "frames", ")", ";", "}", "catch", "(", "exception", "e", ")", "{", "try", "{", "cr", "accept", "(", "cn", ",", "class", "reader", "skip", "frames", ")", ";", "}", "catch", "(", "exception", "e", "2", ")", "{", "throw", "e", "2", ";", "}", "}", "cr", "=", "null", ";", "return", "cn", ";", "}" ]
[ "return", "a", "message", "for", "logging" ]
[ "public", "static", "string", "to", "startup", "shutdown", "string", "(", "string", "prefix", ",", "string", "[", "]", "msg", ")", "{", "string", "builder", "b", "=", "new", "string", "builder", "(", "prefix", ")", ";", "b", "append", "(", "\"", "\\", "n" ]
[ "sets", "the", "index", "name", "of", "the", "shard", "to", "explain" ]
[ "public", "cluster", "allocation", "explain", "request", "set", "index", "(", "string", "index", ")", "{", "this", "index", "=", "index", ";", "return", "this", ";", "}" ]
[ "reassign", "an", "existing", "editor", "component" ]
[ "void", "switch", "editor", "(", "resource", "file", "old", "script", ",", "resource", "file", "new", "script", ")", "{", "ghidra", "script", "editor", "component", "provider", "editor", "=", "editor", "map", "get", "(", "old", "script", ")", ";", "editor", "map", "put", "(", "new", "script", ",", "editor", ")", ";", "editor", "map", "remove", "(", "old", "script", ")", ";", "/", "/", "create", "corresponding", "info", "before", "inserting", "in", "table", "info", "manager", "get", "script", "info", "(", "new", "script", ")", ";", "table", "model", "insert", "script", "(", "new", "script", ")", ";", "}" ]
[ "resolve", "the", "argument", "also", "matching", "to", "the", "given", "type" ]
[ "public", "method", "parameter", "arg", "(", "resolvable", "type", "type", ")", "{", "this", "filters", "add", "(", "p", "-", ">", "type", "to", "string", "(", ")", "equals", "(", "resolvable", "type", "for", "method", "parameter", "(", "p", ")", "to", "string", "(", ")", ")", ")", ";", "return", "arg", "(", ")", ";", "}" ]
[ "determine", "whether", "this", "listener", "actually", "supports", "the", "given", "source", "type", "the", "default", "implementation", "always", "returns", "{", "@", "code", "true", "}" ]
[ "default", "boolean", "supports", "source", "type", "(", "@", "nullable", "class", "<", "?", ">", "source", "type", ")", "{", "return", "true", ";", "}" ]
[ "convert", "the", "given", "string", "to", "a", "rolling", "upgrade", "action" ]
[ "public", "static", "rolling", "upgrade", "action", "from", "string", "(", "string", "s", ")", "{", "return", "map", "get", "(", "string", "utils", "to", "upper", "case", "(", "s", ")", ")", ";", "}" ]
[ "overwrite", "a", "value", "in", "a", "byte", "block" ]
[ "public", "boolean", "replace", "value", "(", "byte", "block", "block", ",", "big", "integer", "index", ",", "int", "char", "position", ",", "char", "c", ")", "throws", "byte", "block", "access", "exception", "{", "if", "(", "char", "position", "<", "0", "|", "|", "char", "position", ">", "2", ")", "{", "return", "false", ";", "}", "if", "(", "good", "chars", "index", "of", "(", "c", ")", "=", "=", "-", "1", ")", "{", "return", "false", ";", "}", "/", "/", "make", "sure", "char", "is", "valid", "in", "the", "specified", "position", "if", "(", "char", "position", "=", "=", "0", "&", "&", "good", "chars", "index", "of", "(", "c", ")", ">", "3", ")", "{", "return", "false", ";", "}", "byte", "b", "=", "block", "get", "byte", "(", "index", ")", ";", "char", "[", "]", "char", "array", "=", "{", "c", "}", ";", "byte", "cb", "=", "byte", "parse", "byte", "(", "new", "string", "(", "char", "array", ")", ",", "8", ")", ";", "if", "(", "char", "position", "=", "=", "0", ")", "{", "b", "&", "=", "0x", "3f", ";", "/", "/", "octal", "077", "cb", "<", "<", "=", "6", ";", "b", "+", "=", "cb", ";", "}", "else", "if", "(", "char", "position", "=", "=", "1", ")", "{", "b", "&", "=", "0xc", "7", ";", "/", "/", "octal", "307", "cb", "<", "<", "=", "3", ";", "b", "+", "=", "cb", ";", "}", "else", "{", "b", "&", "=", "0xf", "8", ";", "/", "/", "octal", "370", "b", "+", "=", "cb", ";", "}", "block", "set", "byte", "(", "index", ",", "b", ")", ";", "return", "true", ";", "}" ]
[ "get", "a", "list", "of", "{", "@", "link", "events", "of", "one", "entity", "}", "instances" ]
[ "public", "list", "<", "events", "of", "one", "entity", ">", "get", "all", "events", "(", ")", "{", "return", "all", "events", ";", "}" ]
[ "gets", "the", "location", "information", "for", "the", "file", "the", "location", "is", "per", "block", ",", "because", "each", "block", "may", "live", "potentially", "at", "a", "different", "location", "files", "without", "location", "information", "typically", "expose", "one", "block", "with", "no", "host", "information", "for", "that", "block" ]
[ "block", "location", "[", "]", "get", "block", "locations", "(", ")", ";" ]
[ "calculate", "the", "full", "endpoint", "address", "for", "the", "given", "endpoint" ]
[ "protected", "string", "calculate", "endpoint", "address", "(", "endpoint", "endpoint", ",", "string", "service", "name", ")", "{", "string", "full", "address", "=", "this", "base", "address", "+", "service", "name", ";", "if", "(", "endpoint", "get", "class", "(", ")", "get", "name", "(", ")", "starts", "with", "(", "\"", "weblogic", "\"", ")", ")", "{", "/", "/", "workaround", "for", "web", "logic", "10", "3", "full", "address", "=", "full", "address", "+", "\"", "/", "\"", ";", "}", "return", "full", "address", ";", "}" ]
[ "create", "a", "new", "{", "@", "code", "bean", "definition", "builder", "}", "used", "to", "construct", "a", "{", "@", "link", "generic", "bean", "definition", "}" ]
[ "public", "static", "bean", "definition", "builder", "generic", "bean", "definition", "(", ")", "{", "return", "new", "bean", "definition", "builder", "(", "new", "generic", "bean", "definition", "(", ")", ")", ";", "}" ]
[ "<", "code", ">", "merge", "properties", "<", "code", ">", "merges", "user", "defined", "property", "differences", "within", "the", "specified", "address", "set", "based", "on", "the", "current", "merge", "filter", "setting" ]
[ "void", "merge", "properties", "(", "address", "set", "view", "p", "1", "merge", "set", ",", "program", "merge", "filter", "filter", ",", "task", "monitor", "monitor", ")", "throws", "cancelled", "exception", "{", "int", "setting", "=", "filter", "get", "filter", "(", "program", "merge", "filter", "properties", ")", ";", "if", "(", "setting", "=", "=", "program", "merge", "filter", "ignore", ")", "{", "return", ";", "}", "program", "diff", "filter", "property", "diff", "filter", "=", "new", "program", "diff", "filter", "(", "program", "diff", "filter", "user", "defined", "diffs", ")", ";", "address", "set", "view", "property", "diff", "set", "=", "program", "diff", "get", "differences", "(", "property", "diff", "filter", ",", "monitor", ")", ";", "address", "set", "view", "diff", "addr", "set", "=", "p", "1", "merge", "set", "intersect", "(", "property", "diff", "set", ")", ";", "address", "set", "diff", "addr", "set", "2", "=", "diff", "utility", "get", "compatible", "address", "set", "(", "diff", "addr", "set", ",", "program", "2", ")", ";", "merger", "merge", "properties", "(", "diff", "addr", "set", "2", ",", "monitor", ")", ";", "}" ]
[ "get", "float", "minimum", ":", "54", "3", "maximum", ":", "987", "6" ]
[ "public", "float", "get", "float", "(", ")", "{", "return", "float", ";", "}" ]
[ "set", "the", "{", "@", "link", "web", "connection", "}", "to", "be", "used", "with", "the", "{", "@", "link", "web", "client", "}" ]
[ "public", "void", "set", "web", "connection", "(", "web", "connection", "web", "connection", ")", "{", "assert", "not", "null", "(", "web", "connection", ",", "\"", "web", "connection", "must", "not", "be", "null", "\"", ")", ";", "get", "web", "client", "(", ")", "set", "web", "connection", "(", "web", "connection", ")", ";", "}" ]
[ "register", "the", "supplied", "{", "@", "link", "item", "}", "for", "deletion" ]
[ "public", "static", "boolean", "register", "(", "@", "non", "null", "item", "item", ")", "{", "item", "deletion", "instance", "=", "instance", "(", ")", ";", "if", "(", "instance", "=", "=", "null", ")", "{", "return", "false", ";", "}", "instance", "lock", "write", "lock", "(", ")", "lock", "(", ")", ";", "try", "{", "return", "instance", "registrations", "add", "(", "item", ")", ";", "}", "finally", "{", "instance", "lock", "write", "lock", "(", ")", "unlock", "(", ")", ";", "}", "}" ]
[ "creates", "a", "{", "@", "link", "media", "item", "}", "for", "the", "given", "uri" ]
[ "public", "static", "media", "item", "from", "uri", "(", "string", "uri", ")", "{", "return", "new", "media", "item", "builder", "(", ")", "set", "uri", "(", "uri", ")", "build", "(", ")", ";", "}" ]
[ "returns", "an", "unmodifiable", "version", "of", "the", "full", "map", "of", "aliases", "to", "secret", "keys" ]
[ "public", "map", "<", "text", ",", "byte", "[", "]", ">", "get", "secret", "key", "map", "(", ")", "{", "return", "collections", "unmodifiable", "map", "(", "secret", "keys", "map", ")", ";", "}" ]
[ "used", "to", "convert", "raw", "characters", "to", "their", "escaped", "version", "when", "these", "raw", "version", "cannot", "be", "used", "as", "part", "of", "an", "ascii", "string", "literal" ]
[ "protected", "string", "add", "escapes", "(", "string", "str", ")", "{", "string", "buffer", "retval", "=", "new", "string", "buffer", "(", ")", ";", "char", "ch", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "str", "length", "(", ")", ";", "i", "+", "+", ")", "{", "switch", "(", "str", "char", "at", "(", "i", ")", ")", "{", "case", "0", ":", "continue", ";", "case", "'", "\\", "b", "'", ":", "retval", "append", "(", "\"", "\\", "\\", "b", "\"", ")", ";", "continue", ";", "case", "'", "\\", "t", "'", ":", "retval", "append", "(", "\"", "\\", "\\", "t", "\"", ")", ";", "continue", ";", "case", "'", "\\", "n", "'", ":", "retval", "append", "(", "\"", "\\", "\\", "n", "\"", ")", ";", "continue", ";", "case", "'", "\\", "f", "'", ":", "retval", "append", "(", "\"", "\\", "\\", "f", "\"", ")", ";", "continue", ";", "case", "'", "\\", "r", "'", ":", "retval", "append", "(", "\"", "\\", "\\", "r", "\"", ")", ";", "continue", ";", "case", "'", "\\", "\"", "'", ":", "retval", "append", "(", "\"", "\\", "\\", "\\", "\"", "\"", ")", ";", "continue", ";", "case", "'", "\\", "'", "'", ":", "retval", "append", "(", "\"", "\\", "\\", "\\", "'", "\"", ")", ";", "continue", ";", "case", "'", "\\", "\\", "'", ":", "retval", "append", "(", "\"", "\\", "\\", "\\", "\\", "\"", ")", ";", "continue", ";", "default", ":", "if", "(", "(", "ch", "=", "str", "char", "at", "(", "i", ")", ")", "<", "0x", "2", "0", "|", "|", "ch", ">", "0x", "7e", ")", "{", "string", "s", "=", "\"", "0000", "\"", "+", "integer", "to", "string", "(", "ch", ",", "16", ")", ";", "retval", "append", "(", "\"", "\\", "\\", "u", "\"", "+", "s", "substring", "(", "s", "length", "(", ")", "-", "4", ",", "s", "length", "(", ")", ")", ")", ";", "}", "else", "{", "retval", "append", "(", "ch", ")", ";", "}", "continue", ";", "}", "}", "return", "retval", "to", "string", "(", ")", ";", "}" ]
[ "find", "the", "fields", "constant", "that", "matches", "field", "id", ",", "or", "null", "if", "its", "not", "found" ]
[ "public", "static", "fields", "find", "by", "thrift", "id", "(", "int", "field", "id", ")", "{", "switch", "(", "field", "id", ")", "{", "case", "1", ":", "/", "/", "msg", "return", "msg", ";", "default", ":", "return", "null", ";", "}", "}" ]
[ "releases", "the", "given", "value", "to", "the", "pool", "the", "pool", "may", "decide", "to", "-", "reuse", "the", "value", "(", "for", "future", "{", "@", "link", "#", "get", "(", "int", ")", "}", "operations", "or", "-", "'", "free", "'", "the", "value" ]
[ "void", "release", "(", "v", "value", ")", ";" ]
[ "get", "the", "list", "model", "for", "the", "list" ]
[ "public", "list", "model", "get", "list", "model", "(", ")", "{", "return", "(", "list", "get", "model", "(", ")", ")", ";", "}" ]
[ "add", "a", "version", "to", "the", "given", "request", "path" ]
[ "string", "add", "version", "(", "string", "request", "path", ",", "string", "version", ")", ";" ]
[ "build", "a", "message", "for", "an", "invocation", "failure", "exception" ]
[ "protected", "string", "get", "invocation", "failure", "message", "(", ")", "{", "return", "\"", "invocation", "of", "method", "'", "\"", "+", "get", "target", "method", "(", ")", "+", "\"", "'", "on", "target", "class", "[", "\"", "+", "get", "target", "class", "(", ")", "+", "\"", "]", "failed", "\"", ";", "}" ]
[ "return", "the", "bytes", "in", "file", "by", "channel" ]
[ "public", "static", "byte", "[", "]", "read", "file", "2", "bytes", "by", "channel", "(", "final", "string", "file", "path", ")", "{", "return", "read", "file", "2", "bytes", "by", "channel", "(", "utils", "bridge", "get", "file", "by", "path", "(", "file", "path", ")", ")", ";", "}" ]
[ "return", "the", "file", "'", "s", "path", "of", "directory" ]
[ "public", "static", "string", "get", "dir", "name", "(", "final", "string", "file", "path", ")", "{", "if", "(", "utils", "bridge", "is", "space", "(", "file", "path", ")", ")", "return", "\"", "\"", ";", "int", "last", "sep", "=", "file", "path", "last", "index", "of", "(", "file", "separator", ")", ";", "return", "last", "sep", "=", "=", "-", "1", "?", "\"", "\"", ":", "file", "path", "substring", "(", "0", ",", "last", "sep", "+", "1", ")", ";", "}" ]
[ "similar", "to", "{", "@", "link", "#", "run", "container", "(", "distribution", ",", "docker", "run", ")", "}", "in", "that", "it", "runs", "an", "elasticsearch", "docker", "container", ",", "expect", "that", "the", "container", "expecting", "it", "to", "exit", "e", "g", "due", "to", "configuration", "problem" ]
[ "public", "static", "shell", "result", "run", "container", "expecting", "failure", "(", "distribution", "distribution", ",", "docker", "run", "builder", ")", "{", "execute", "docker", "run", "(", "distribution", ",", "builder", ")", ";", "wait", "for", "elasticsearch", "to", "exit", "(", ")", ";", "return", "get", "container", "logs", "(", ")", ";", "}" ]
[ "test", "serialization", "of", "outer", "boolean", "types" ]
[ "public", "completable", "future", "<", "api", "response", "<", "boolean", ">", ">", "fake", "outer", "boolean", "serialize", "with", "http", "info", "(", "boolean", "body", ")", "throws", "api", "exception", "{", "try", "{", "http", "request", "builder", "local", "var", "request", "builder", "=", "fake", "outer", "boolean", "serialize", "request", "builder", "(", "body", ")", ";", "return", "member", "var", "http", "client", "send", "async", "(", "local", "var", "request", "builder", "build", "(", ")", ",", "http", "response", "body", "handlers", "of", "string", "(", ")", ")", "then", "compose", "async", "(", "local", "var", "response", "-", ">", "{", "if", "(", "local", "var", "response", "status", "code", "(", ")", "/", "100", "!", "=", "2", ")", "{", "return", "completable", "future", "failed", "future", "(", "get", "api", "exception", "(", "\"", "fake", "outer", "boolean", "serialize", "\"", ",", "local", "var", "response", ")", ")", ";", "}", "try", "{", "return", "completable", "future", "completed", "future", "(", "new", "api", "response", "<", "boolean", ">", "(", "local", "var", "response", "status", "code", "(", ")", ",", "local", "var", "response", "headers", "(", ")", "map", "(", ")", ",", "member", "var", "object", "mapper", "read", "value", "(", "local", "var", "response", "body", "(", ")", ",", "new", "type", "reference", "<", "boolean", ">", "(", ")", "{", "}", ")", ")", ")", ";", "}", "catch", "(", "i", "o", "exception", "e", ")", "{", "return", "completable", "future", "failed", "future", "(", "new", "api", "exception", "(", "e", ")", ")", ";", "}", "}", ")", ";", "}", "catch", "(", "api", "exception", "e", ")", "{", "return", "completable", "future", "failed", "future", "(", "e", ")", ";", "}", "}" ]
[ "return", "the", "configured", "part", "writers" ]
[ "public", "list", "<", "http", "message", "writer", "<", "?", ">", ">", "get", "part", "writers", "(", ")", "{", "return", "collections", "unmodifiable", "list", "(", "this", "part", "writers", ")", ";", "}" ]
[ "wraps", "the", "{", "@", "code", "set", "value", "}", "implementation", "of", "an", "{", "@", "code", "entry", "}", "to", "enforce", "the", "class", "constraint" ]
[ "private", "static", "<", "b", ">", "entry", "<", "class", "<", "?", "extends", "b", ">", ",", "b", ">", "checked", "entry", "(", "final", "entry", "<", "class", "<", "?", "extends", "b", ">", ",", "b", ">", "entry", ")", "{", "return", "new", "forwarding", "map", "entry", "<", "class", "<", "?", "extends", "b", ">", ",", "b", ">", "(", ")", "{", "@", "override", "protected", "entry", "<", "class", "<", "?", "extends", "b", ">", ",", "b", ">", "delegate", "(", ")", "{", "return", "entry", ";", "}", "@", "override", "public", "b", "set", "value", "(", "b", "value", ")", "{", "return", "super", "set", "value", "(", "cast", "(", "get", "key", "(", ")", ",", "value", ")", ")", ";", "}", "}", ";", "}" ]
[ "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", "\"", ")", ";", "}" ]
[ ",", ",", ",", ",", ",", "copy", "from", "android", "util", "code" ]
[ "public", "static", "string", "format", "friendly", "time", "span", "by", "now", "(", "@", "not", "null", "date", "date", ")", "{", "return", "format", "friendly", "time", "span", "by", "now", "(", "date", "get", "time", "(", ")", ")", ";", "}" ]
[ "test", "the", "property", "'", "quantity", "'" ]
[ "public", "void", "quantity", "test", "(", ")", "{", "/", "/", "todo", ":", "test", "quantity", "}" ]
[ "destroy", "encryption", "key", "preventing", "future", "use", "implementations", "should", "allow", "this", "to", "be", "called", "multiple", "times", "without", "failing" ]
[ "void", "destroy", "(", ")", ";" ]
[ "if", "the", "order", "of", "the", "root", "nodes", "is", "changed", ",", "{", "@", "link", "#", "update", "root", "nodes", "(", ")", "}", "must", "be", "called", "to", "ensure", "the", "nodes", "'", "actors", "are", "in", "the", "correct", "order" ]
[ "public", "array", "<", "n", ">", "get", "root", "nodes", "(", ")", "{", "return", "root", "nodes", ";", "}" ]
[ "gets", "the", "rocks", "d", "b", "{", "@", "link", "read", "options", "}", "to", "be", "used", "for", "read", "operations" ]
[ "public", "read", "options", "get", "read", "options", "(", ")", "{", "/", "/", "we", "ensure", "total", "order", "seek", "by", "default", "to", "prevent", "user", "misuse", ",", "see", "flink", "-", "17800", "for", "more", "/", "/", "details", "read", "options", "opt", "=", "rocks", "d", "b", "operation", "utils", "create", "total", "order", "seek", "read", "options", "(", ")", ";", "handles", "to", "close", "add", "(", "opt", ")", ";", "/", "/", "add", "user", "-", "defined", "options", "factory", ",", "if", "specified", "if", "(", "options", "factory", "!", "=", "null", ")", "{", "opt", "=", "options", "factory", "create", "read", "options", "(", "opt", ",", "handles", "to", "close", ")", ";", "}", "return", "opt", ";", "}" ]
[ "get", "the", "comparator" ]
[ "t", "get", "comparator", "(", ")", ";" ]
[ "this", "patch", "method", "is", "fast", ",", "but", "using", "more", "memory", "memory", "size", "=", "old", "buf", "+", "diff", "buf", "+", "new", "buf" ]
[ "public", "static", "byte", "[", "]", "patch", "fast", "(", "input", "stream", "old", "input", "stream", ",", "int", "oldsize", ",", "byte", "[", "]", "diff", "bytes", ",", "int", "ext", "len", ")", "throws", "i", "o", "exception", "{", "/", "/", "read", "in", "old", "file", "(", "file", "to", "be", "patched", ")", "to", "old", "buf", "byte", "[", "]", "old", "buf", "=", "new", "byte", "[", "oldsize", "]", ";", "b", "s", "util", "read", "from", "stream", "(", "old", "input", "stream", ",", "old", "buf", ",", "0", ",", "oldsize", ")", ";", "old", "input", "stream", "close", "(", ")", ";", "return", "b", "s", "patch", "patch", "fast", "(", "old", "buf", ",", "oldsize", ",", "diff", "bytes", ",", "diff", "bytes", "length", ",", "ext", "len", ")", ";", "}" ]
[ "judge", "the", "table", "name", "has", "already", "exist", "in", "the", "table", "schema", "or", "not" ]
[ "private", "boolean", "is", "value", "exists", "(", "cursor", "cursor", ",", "string", "table", "name", ")", "{", "boolean", "exist", "=", "false", ";", "if", "(", "cursor", "move", "to", "first", "(", ")", ")", "{", "do", "{", "string", "name", "=", "cursor", "get", "string", "(", "cursor", "get", "column", "index", "or", "throw", "(", "const", "table", "schema", "column", "name", ")", ")", ";", "if", "(", "name", "equals", "ignore", "case", "(", "table", "name", ")", ")", "{", "exist", "=", "true", ";", "break", ";", "}", "}", "while", "(", "cursor", "move", "to", "next", "(", ")", ")", ";", "}", "return", "exist", ";", "}" ]
[ "returns", "keys", "for", "a", "{", "@", "link", "table", "format", "factory", "#", "supported", "properties", "(", ")", "}", "method", "that", "are", "accepted", "for", "schema", "derivation", "using", "{", "@", "code", "derive", "format", "fields", "(", "descriptor", "properties", ")", "}" ]
[ "public", "static", "list", "<", "string", ">", "get", "schema", "derivation", "keys", "(", ")", "{", "list", "<", "string", ">", "keys", "=", "new", "array", "list", "<", ">", "(", ")", ";", "/", "/", "schema", "keys", "add", "(", "schema", "+", "\"", "#", "\"", "+", "schema", "data", "type", ")", ";", "keys", "add", "(", "schema", "+", "\"", "#", "\"", "+", "schema", "type", ")", ";", "keys", "add", "(", "schema", "+", "\"", "#", "\"", "+", "schema", "name", ")", ";", "keys", "add", "(", "schema", "+", "\"", "#", "\"", "+", "schema", "from", ")", ";", "/", "/", "computed", "column", "keys", "add", "(", "schema", "+", "\"", "#", "\"", "+", "expr", ")", ";", "/", "/", "time", "attributes", "keys", "add", "(", "schema", "+", "\"", "#", "\"", "+", "schema", "proctime", ")", ";", "keys", "add", "(", "schema", "+", "\"", "#", "\"", "+", "rowtime", "timestamps", "type", ")", ";", "keys", "add", "(", "schema", "+", "\"", "#", "\"", "+", "rowtime", "timestamps", "from", ")", ";", "keys", "add", "(", "schema", "+", "\"", "#", "\"", "+", "rowtime", "timestamps", "class", ")", ";", "keys", "add", "(", "schema", "+", "\"", "#", "\"", "+", "rowtime", "timestamps", "serialized", ")", ";", "keys", "add", "(", "schema", "+", "\"", "#", "\"", "+", "rowtime", "watermarks", "type", ")", ";", "keys", "add", "(", "schema", "+", "\"", "#", "\"", "+", "rowtime", "watermarks", "class", ")", ";", "keys", "add", "(", "schema", "+", "\"", "#", "\"", "+", "rowtime", "watermarks", "serialized", ")", ";", "keys", "add", "(", "schema", "+", "\"", "#", "\"", "+", "rowtime", "watermarks", "delay", ")", ";", "/", "/", "watermark", "keys", "add", "(", "schema", "+", "\"", "\"", "+", "watermark", "+", "\"", "#", "\"", "+", "watermark", "rowtime", ")", ";", "keys", "add", "(", "schema", "+", "\"", "\"", "+", "watermark", "+", "\"", "#", "\"", "+", "watermark", "strategy", "expr", ")", ";", "keys", "add", "(", "schema", "+", "\"", "\"", "+", "watermark", "+", "\"", "#", "\"", "+", "watermark", "strategy", "data", "type", ")", ";", "/", "/", "table", "constraint", "keys", "add", "(", "schema", "+", "\"", "\"", "+", "descriptor", "properties", "primary", "key", "name", ")", ";", "keys", "add", "(", "schema", "+", "\"", "\"", "+", "descriptor", "properties", "primary", "key", "columns", ")", ";", "return", "keys", ";", "}" ]
[ "<", "code", ">", "required", "uint", "3", "2", "year", "=", "1", ";", "<", "code", ">" ]
[ "public", "int", "get", "year", "(", ")", "{", "return", "year", ";", "}" ]
[ "finds", "pets", "by", "status", "(", "asynchronously", ")", "multiple", "status", "values", "can", "be", "provided", "with", "comma", "separated", "strings" ]
[ "public", "okhttp", "3", "call", "find", "pets", "by", "status", "async", "(", "list", "<", "string", ">", "status", ",", "final", "api", "callback", "<", "list", "<", "pet", ">", ">", "callback", ")", "throws", "api", "exception", "{", "okhttp", "3", "call", "local", "var", "call", "=", "find", "pets", "by", "status", "validate", "before", "call", "(", "status", ",", "callback", ")", ";", "type", "local", "var", "return", "type", "=", "new", "type", "token", "<", "list", "<", "pet", ">", ">", "(", ")", "{", "}", "get", "type", "(", ")", ";", "local", "var", "api", "client", "execute", "async", "(", "local", "var", "call", ",", "local", "var", "return", "type", ",", "callback", ")", ";", "return", "local", "var", "call", ";", "}" ]
[ "specifies", "the", "window", "on", "which", "the", "co", "-", "group", "operation", "works" ]
[ "public", "<", "w", "extends", "window", ">", "with", "window", "<", "t1", ",", "t2", ",", "key", ",", "w", ">", "window", "(", "window", "assigner", "<", "?", "super", "tagged", "union", "<", "t1", ",", "t2", ">", ",", "w", ">", "assigner", ")", "{", "return", "new", "with", "window", "<", ">", "(", "input", "1", ",", "input", "2", ",", "key", "selector", "1", ",", "key", "selector", "2", ",", "key", "type", ",", "assigner", ",", "null", ",", "null", ",", "null", ")", ";", "}" ]
[ "spills", "this", "partition", "to", "disk", "and", "sets", "it", "up", "such", "that", "it", "continues", "spilling", "records", "that", "are", "added", "to", "it", "the", "spilling", "process", "must", "free", "at", "least", "one", "buffer", ",", "either", "in", "the", "partition", "'", "s", "record", "buffers", ",", "or", "in", "the", "memory", "segments", "for", "overflow", "buckets", "the", "partition", "immediately", "takes", "back", "one", "buffer", "to", "use", "it", "for", "further", "spilling" ]
[ "int", "spill", "partition", "(", "i", "o", "manager", "io", "access", ",", "file", "i", "o", "channel", "id", "target", "channel", ",", "linked", "blocking", "queue", "<", "memory", "segment", ">", "buffer", "return", "queue", ")", "throws", "i", "o", "exception", "{", "/", "/", "sanity", "checks", "if", "(", "!", "is", "in", "memory", "(", ")", ")", "{", "throw", "new", "runtime", "exception", "(", "\"", "bug", "in", "hybrid", "hash", "join", ":", "\"", "+", "\"", "request", "to", "spill", "a", "partition", "that", "has", "already", "been", "spilled", "\"", ")", ";", "}", "if", "(", "get", "num", "occupied", "memory", "segments", "(", ")", "<", "2", ")", "{", "throw", "new", "runtime", "exception", "(", "\"", "bug", "in", "hybrid", "hash", "join", ":", "\"", "+", "\"", "request", "to", "spill", "a", "partition", "with", "less", "than", "two", "buffers", "\"", ")", ";", "}", "/", "/", "create", "the", "channel", "block", "writer", "and", "spill", "the", "current", "buffers", "/", "/", "that", "keep", "the", "build", "side", "buffers", "current", "block", ",", "as", "it", "is", "most", "likely", "not", "full", ",", "yet", "/", "/", "we", "return", "the", "number", "of", "blocks", "that", "become", "available", "this", "build", "side", "channel", "=", "file", "channel", "util", "create", "block", "channel", "writer", "(", "io", "access", ",", "target", "channel", ",", "buffer", "return", "queue", ",", "compression", "enable", ",", "compression", "codec", "factory", ",", "compression", "block", "size", ",", "memory", "segment", "size", ")", ";", "return", "this", "build", "side", "write", "buffer", "spill", "(", "this", "build", "side", "channel", ")", ";", "}" ]
[ "rotates", "the", "direction", "and", "up", "vector", "of", "this", "camera", "by", "the", "given", "angle", "around", "the", "given", "axis", "the", "direction", "and", "up", "vector", "will", "not", "be", "orthogonalized" ]
[ "public", "void", "rotate", "(", "vector", "3", "axis", ",", "float", "angle", ")", "{", "direction", "rotate", "(", "axis", ",", "angle", ")", ";", "up", "rotate", "(", "axis", ",", "angle", ")", ";", "}" ]
[ "filter", "out", "hive", "-", "created", "properties", ",", "and", "return", "flink", "-", "created", "properties", "note", "that", "'", "is", "generic", "'", "is", "a", "special", "key", "and", "this", "method", "will", "leave", "it", "as", "-", "is" ]
[ "private", "static", "map", "<", "string", ",", "string", ">", "retrieve", "flink", "properties", "(", "map", "<", "string", ",", "string", ">", "hive", "table", "params", ")", "{", "return", "hive", "table", "params", "entry", "set", "(", ")", "stream", "(", ")", "filter", "(", "e", "-", ">", "e", "get", "key", "(", ")", "starts", "with", "(", "flink", "property", "prefix", ")", "|", "|", "e", "get", "key", "(", ")", "equals", "(", "catalog", "config", "is", "generic", ")", ")", "collect", "(", "collectors", "to", "map", "(", "e", "-", ">", "e", "get", "key", "(", ")", "replace", "(", "flink", "property", "prefix", ",", "\"", "\"", ")", ",", "e", "-", ">", "e", "get", "value", "(", ")", ")", ")", ";", "}" ]
[ "the", "rule", "is", "here", "to", "help", "debugging", "even", "partial", "spans", "should", "be", "returned" ]
[ "public", "void", "get", "traces", "when", "missing", "timestamps", "(", ")", "throws", "i", "o", "exception", "{", "span", "span", "=", "span", "new", "builder", "(", ")", "trace", "id", "(", "\"", "1", "\"", ")", "id", "(", "\"", "1", "\"", ")", "name", "(", "\"", "foo", "\"", ")", "build", "(", ")", ";", "/", "/", "write", "the", "span", "to", "the", "zipkin", "using", "http", "assert", "that", "(", "post", "spans", "v", "1", "(", "as", "list", "(", "span", ")", ")", "code", "(", ")", ")", "is", "equal", "to", "(", "202", ")", ";", "/", "/", "read", "the", "traces", "directly", "assert", "that", "(", "zipkin", "get", "traces", "(", ")", ")", "contains", "only", "(", "as", "list", "(", "span", ")", ")", ";", "}" ]
[ "asserts", "that", "the", "given", "throwable", "has", "the", "given", "class", "and", "then", "asserts", "on", "the", "message", "as", "using", "the", "full", "set", "of", "method", "parameters" ]
[ "private", "void", "assert", "failure", "cause", "(", "throwable", "throwable", ",", "class", "<", "?", "extends", "throwable", ">", "clazz", ",", "object", "[", "]", "params", ")", "{", "assert", "that", "(", "throwable", ")", "is", "instance", "of", "(", "clazz", ")", ";", "if", "(", "params", "length", "=", "=", "1", ")", "{", "assert", "that", "(", "throwable", ")", "has", "message", "that", "(", ")", "is", "null", "(", ")", ";", "}", "else", "if", "(", "params", "length", "=", "=", "2", ")", "{", "assert", "that", "(", "throwable", ")", "has", "message", "that", "(", ")", "is", "empty", "(", ")", ";", "}", "else", "{", "assert", "that", "(", "throwable", ")", "has", "message", "that", "(", ")", "is", "equal", "to", "(", "strings", "lenient", "format", "(", "\"", "\"", ",", "arrays", "copy", "of", "range", "(", "params", ",", "2", ",", "params", "length", ")", ")", ")", ";", "}", "}" ]
[ "the", "same", "as", "i", "label", "provider", "get", "text", "but", "with", "extra", "flag" ]
[ "string", "get", "text", "(", "object", "element", ",", "boolean", "for", "u", "i", ")", ";" ]
[ "get", "map", "array", "anytype" ]
[ "public", "map", "<", "string", ",", "list", "<", "object", ">", ">", "get", "map", "array", "anytype", "(", ")", "{", "return", "map", "array", "anytype", ";", "}" ]
[ "returns", "the", "values", "array", "for", "storage", "into", "the", "program", "'", "s", "relocation", "table" ]
[ "public", "long", "[", "]", "to", "values", "(", ")", "{", "return", "new", "long", "[", "]", "{", "0", ",", "/", "/", "zero", "indicates", "that", "it", "is", "not", "a", "scattered", "relocation", "r", "address", "&", "0xffffffff", "l", ",", "r", "symbolnum", "&", "0xffffffff", "l", ",", "r", "pcrel", "&", "0xffffffff", "l", ",", "r", "length", "&", "0xffffffff", "l", ",", "r", "extern", "&", "0xffffffff", "l", ",", "r", "type", "&", "0xffffffff", "l", "}", ";", "}" ]
[ "set", "the", "response", "as", "an", "error", "response", "plus", "some", "data" ]
[ "public", "static", "http", "response", "error", "j", "s", "o", "n", "(", "@", "non", "null", "string", "message", ",", "@", "non", "null", "j", "s", "o", "n", "array", "data", ")", "{", "return", "new", "j", "s", "o", "n", "object", "response", "(", "data", ")", "error", "(", "message", ")", ";", "}" ]
[ "attempt", "to", "evict", "one", "or", "more", "transient", "block", "replicas", "until", "we", "have", "at", "least", "bytes", "needed", "bytes", "free" ]
[ "public", "void", "evict", "blocks", "(", "long", "bytes", "needed", ")", "throws", "i", "o", "exception", "{", "int", "iterations", "=", "0", ";", "final", "long", "cache", "capacity", "=", "cache", "manager", "get", "mem", "cache", "capacity", "(", ")", ";", "while", "(", "iterations", "+", "+", "<", "max", "block", "evictions", "per", "iteration", "&", "&", "(", "cache", "capacity", "-", "cache", "manager", "get", "mem", "cache", "used", "(", ")", ")", "<", "bytes", "needed", ")", "{", "ram", "disk", "replica", "replica", "state", "=", "ram", "disk", "replica", "tracker", "get", "next", "candidate", "for", "eviction", "(", ")", ";", "if", "(", "replica", "state", "=", "=", "null", ")", "{", "break", ";", "}", "if", "(", "log", "is", "debug", "enabled", "(", ")", ")", "{", "log", "debug", "(", "\"", "evicting", "block", "\"", "+", "replica", "state", ")", ";", "}", "replica", "info", "replica", "info", ",", "new", "replica", "info", ";", "final", "string", "bpid", "=", "replica", "state", "get", "block", "pool", "id", "(", ")", ";", "try", "(", "auto", "closeable", "lock", "lock", "=", "dataset", "write", "lock", "acquire", "(", ")", ")", "{", "replica", "info", "=", "get", "replica", "info", "(", "replica", "state", "get", "block", "pool", "id", "(", ")", ",", "replica", "state", "get", "block", "id", "(", ")", ")", ";", "preconditions", "check", "state", "(", "replica", "info", "get", "volume", "(", ")", "is", "transient", "storage", "(", ")", ")", ";", "ram", "disk", "replica", "tracker", "discard", "replica", "(", "replica", "state", "get", "block", "pool", "id", "(", ")", ",", "replica", "state", "get", "block", "id", "(", ")", ",", "false", ")", ";", "/", "/", "move", "the", "replica", "from", "lazy", "persist", "/", "to", "finalized", "/", "on", "/", "/", "the", "target", "volume", "new", "replica", "info", "=", "replica", "state", "get", "lazy", "persist", "volume", "(", ")", "activate", "saved", "replica", "(", "bpid", ",", "replica", "info", ",", "replica", "state", ")", ";", "/", "/", "update", "the", "volume", "map", "entry", "volume", "map", "add", "(", "bpid", ",", "new", "replica", "info", ")", ";", "/", "/", "update", "metrics", "datanode", "get", "metrics", "(", ")", "incr", "ram", "disk", "blocks", "evicted", "(", ")", ";", "datanode", "get", "metrics", "(", ")", "add", "ram", "disk", "blocks", "eviction", "window", "ms", "(", "time", "monotonic", "now", "(", ")", "-", "replica", "state", "get", "creation", "time", "(", ")", ")", ";", "if", "(", "replica", "state", "get", "num", "reads", "(", ")", "=", "=", "0", ")", "{", "datanode", "get", "metrics", "(", ")", "incr", "ram", "disk", "blocks", "evicted", "without", "read", "(", ")", ";", "}", "/", "/", "delete", "the", "block", "+", "meta", "files", "from", "ram", "disk", "and", "release", "locked", "/", "/", "memory", "remove", "old", "replica", "(", "replica", "info", ",", "new", "replica", "info", ",", "bpid", ")", ";", "}", "}", "}" ]
[ "return", "the", "configured", "web", "socket", "handshake", "request", "interceptors" ]
[ "public", "list", "<", "handshake", "interceptor", ">", "get", "handshake", "interceptors", "(", ")", "{", "return", "this", "interceptors", ";", "}" ]
[ "create", "a", "path", "with", "given", "data", "byte", "[", "0", "]", "is", "used", "for", "a", "path", "without", "data" ]
[ "public", "void", "zk", "create", "(", "string", "path", ",", "create", "mode", "mode", ",", "byte", "[", "]", "data", ",", "list", "<", "acl", ">", "acls", ")", "throws", "i", "o", "exception", "{", "preconditions", "check", "argument", "(", "data", "!", "=", "null", ",", "\"", "null", "data", "\"", ")", ";", "check", "service", "live", "(", ")", ";", "string", "fullpath", "=", "create", "full", "path", "(", "path", ")", ";", "try", "{", "if", "(", "log", "is", "debug", "enabled", "(", ")", ")", "{", "log", "debug", "(", "\"", "creating", "{", "}", "with", "{", "}", "bytes", "of", "data", "and", "acl", "{", "}", "\"", ",", "fullpath", ",", "data", "length", ",", "new", "registry", "security", "acl", "list", "info", "(", "acls", ")", ")", ";", "}", "curator", "create", "(", ")", "with", "mode", "(", "mode", ")", "with", "a", "c", "l", "(", "acls", ")", "for", "path", "(", "fullpath", ",", "data", ")", ";", "}", "catch", "(", "exception", "e", ")", "{", "throw", "operation", "failure", "(", "fullpath", ",", "\"", "create", "(", ")", "\"", ",", "e", ",", "acls", ")", ";", "}", "}" ]
[ "determines", "whether", "a", "suggestion", "base", "is", "available", "<", "p", ">", "if", "no", "base", "is", "available", ",", "suggestions", "will", "not", "be", "sorted" ]
[ "public", "boolean", "has", "suggestion", "base", "(", ")", "{", "return", "suggestion", "base", "!", "=", "null", "&", "&", "!", "suggestion", "base", "is", "empty", "(", ")", ";", "}" ]
[ "return", "the", "history", "file" ]
[ "public", "synchronized", "path", "get", "history", "file", "(", ")", "{", "return", "history", "file", ";", "}" ]
[ "specify", "the", "target", "database", "to", "operate", "on", ",", "as", "a", "value", "of", "the", "{", "@", "code", "database", "}", "enum", ":", "db2", ",", "derby", ",", "h2", ",", "hana", ",", "hsql", ",", "informix", ",", "mysql", ",", "oracle", ",", "postgresql", ",", "sql", "server", ",", "sybase", "<", "b", ">", "note", ":", "<", "b", ">", "this", "setting", "will", "override", "your", "jpa", "provider", "'", "s", "default", "algorithm", "custom", "vendor", "properties", "may", "still", "fine", "-", "tune", "the", "database", "dialect", "however", ",", "there", "may", "nevertheless", "be", "conflicts", ":", "for", "example", ",", "specify", "either", "this", "setting", "or", "hibernate", "'", "s", "\"", "hibernate", "dialect", "resolvers", "\"", "property", ",", "not", "both" ]
[ "public", "void", "set", "database", "(", "database", "database", ")", "{", "this", "database", "=", "database", ";", "}" ]
[ "cause", "this", "zoo", "keeper", "object", "to", "stop", "receiving", "from", "the", "zoo", "keeper", "server", "for", "the", "given", "number", "of", "milliseconds" ]
[ "public", "boolean", "pause", "cnxn", "(", "final", "long", "ms", ")", "{", "final", "count", "down", "latch", "initiated", "pause", "=", "new", "count", "down", "latch", "(", "1", ")", ";", "new", "thread", "(", ")", "{", "public", "void", "run", "(", ")", "{", "synchronized", "(", "cnxn", ")", "{", "try", "{", "try", "{", "cnxn", "send", "thread", "testable", "close", "socket", "(", ")", ";", "}", "catch", "(", "i", "o", "exception", "e", ")", "{", "e", "print", "stack", "trace", "(", ")", ";", "}", "finally", "{", "initiated", "pause", "count", "down", "(", ")", ";", "}", "thread", "sleep", "(", "ms", ")", ";", "}", "catch", "(", "interrupted", "exception", "e", ")", "{", "}", "}", "}", "}", "start", "(", ")", ";", "try", "{", "return", "initiated", "pause", "await", "(", "ms", ",", "time", "unit", "milliseconds", ")", ";", "}", "catch", "(", "interrupted", "exception", "e", ")", "{", "e", "print", "stack", "trace", "(", ")", ";", "return", "false", ";", "}", "}" ]
[ "return", "the", "{", "@", "link", "socket", "address", "}", "which", "the", "{", "@", "link", "channel", "}", "is", "connected", "to" ]
[ "protected", "abstract", "socket", "address", "remote", "address", "0", "(", ")", ";" ]
[ "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", "\"", ")", ";", "}" ]
[ "sets", "the", "<", "code", ">", "integer", "item", "<", "code", ">", "property" ]
[ "public", "void", "set", "integer", "item", "(", "integer", "integer", "item", ")", "{", "this", "integer", "item", "=", "integer", "item", ";", "}" ]
[ "returns", "the", "version", "of", "the", "node", "this", "connection", "was", "established", "with" ]
[ "default", "version", "get", "version", "(", ")", "{", "return", "get", "node", "(", ")", "get", "version", "(", ")", ";", "}" ]
[ "awb", "instant", "run", "is", "not", "supported", "for", "the", "moment" ]
[ "public", "void", "execute", "(", "awb", "android", "java", "compile", "javac", "task", ")", "{", "app", "variant", "output", "context", "get", "awb", "javac", "tasks", "(", ")", "put", "(", "awb", "bundle", "get", "name", "(", ")", ",", "javac", "task", ")", ";", "process", "awb", "android", "resources", "process", "awb", "android", "resources", "=", "app", "variant", "output", "context", "get", "awb", "android", "resources", "map", "(", ")", "get", "(", "awb", "bundle", "get", "name", "(", ")", ")", ";", "assert", "null", "!", "=", "process", "awb", "android", "resources", ";", "javac", "task", "source", "(", "process", "awb", "android", "resources", "get", "source", "output", "dir", "(", ")", ")", ";", "if", "(", "app", "variant", "output", "context", "get", "variant", "context", "(", ")", "is", "data", "bind", "enabled", "(", "awb", "bundle", ")", "&", "&", "awb", "bundle", "is", "data", "bind", "enabled", "(", ")", ")", "{", "javac", "task", "source", "(", "app", "variant", "output", "context", "get", "variant", "context", "(", ")", "get", "awb", "class", "output", "for", "data", "binding", "(", "awb", "bundle", ")", ")", ";", "}", "/", "/", "convention", "mapping", "helper", "map", "(", "javac", "task", ",", "\"", "classpath", "\"", ",", "(", "callable", "<", "file", "collection", ">", ")", "(", ")", "-", ">", "get", "input", "jars", "(", ")", ")", ";", "file", "collection", "classpath", "=", "get", "input", "jars", "(", ")", ";", "javac", "task", "set", "destination", "dir", "(", "app", "variant", "output", "context", "get", "j", "awbava", "output", "dir", "(", "awb", "bundle", ")", ")", ";", "final", "boolean", "keep", "default", "bootstrap", "=", "scope", "keep", "default", "bootstrap", "(", ")", ";", "if", "(", "!", "keep", "default", "bootstrap", ")", "{", "/", "/", "set", "boot", "classpath", "if", "we", "don", "'", "t", "need", "to", "keep", "the", "default", "otherwise", ",", "this", "is", "added", "as", "/", "/", "normal", "classpath", "javac", "task", "get", "options", "(", ")", "set", "boot", "classpath", "(", "joiner", "on", "(", "file", "path", "separator", ")", "join", "(", "scope", "get", "global", "scope", "(", ")", "get", "android", "builder", "(", ")", "get", "boot", "classpath", "as", "strings", "(", "false", ")", ")", ")", ";", "}", "/", "/", "file", "collection", "classpath", "=", "scope", "get", "java", "classpath", "(", "compile", "classpath", ",", "classes", ")", ";", "if", "(", "keep", "default", "bootstrap", ")", "{", "classpath", "=", "classpath", "plus", "(", "app", "variant", "output", "context", "get", "variant", "context", "(", ")", "get", "project", "(", ")", "files", "(", "app", "variant", "output", "context", "get", "scope", "(", ")", "get", "global", "scope", "(", ")", "get", "android", "builder", "(", ")", "get", "boot", "classpath", "(", "false", ")", ")", ")", ";", "}", "javac", "task", "set", "classpath", "(", "classpath", ")", ";", "app", "variant", "output", "context", "get", "scope", "(", ")", "get", "transform", "manager", "(", ")", "add", "stream", "(", "original", "stream", "builder", "(", "app", "variant", "output", "context", "get", "variant", "context", "(", ")", "get", "project", "(", ")", ",", "\"", "awb", "-", "classes", "\"", ")", "add", "content", "type", "(", "qualified", "content", "default", "content", "type", "classes", ")", "add", "scope", "(", "qualified", "content", "scope", "project", ")", "set", "file", "collection", "(", "app", "variant", "output", "context", "get", "variant", "context", "(", ")", "get", "project", "(", ")", "files", "(", "app", "variant", "output", "context", "get", "j", "awbava", "output", "dir", "(", "awb", "bundle", ")", ")", ")", "build", "(", ")", ")", ";", "app", "variant", "output", "context", "get", "awb", "transform", "map", "(", ")", "get", "(", "awb", "bundle", "get", "name", "(", ")", ")", "add", "dir", "(", "app", "variant", "output", "context", "get", "j", "awbava", "output", "dir", "(", "awb", "bundle", ")", ")", ";", "compile", "options", "compile", "options", "=", "scope", "get", "global", "scope", "(", ")", "get", "extension", "(", ")", "get", "compile", "options", "(", ")", ";", "abstract", "compiles", "util", "configure", "language", "level", "(", "javac", "task", ",", "compile", "options", ",", "scope", "get", "global", "scope", "(", ")", "get", "extension", "(", ")", "get", "compile", "sdk", "version", "(", ")", ",", "scope", "get", "java", "8", "lang", "support", "type", "(", ")", ")", ";", "javac", "task", "get", "options", "(", ")", "set", "encoding", "(", "compile", "options", "get", "encoding", "(", ")", ")", ";", "boolean", "include", "compile", "classpath", "=", "scope", "get", "variant", "configuration", "(", ")", "get", "java", "compile", "options", "(", ")", "get", "annotation", "processor", "options", "(", ")", "get", "include", "compile", "classpath", "(", ")", ";", "file", "collection", "processor", "path", "=", "scope", "get", "artifact", "file", "collection", "(", "annotation", "processor", ",", "all", ",", "jar", ")", ";", "if", "(", "boolean", "true", "equals", "(", "include", "compile", "classpath", ")", ")", "{", "/", "/", "we", "need", "the", "jar", "files", "because", "annotation", "processors", "require", "the", "resources", "processor", "path", "=", "processor", "path", "plus", "(", "scope", "get", "java", "classpath", "(", "compile", "classpath", ",", "jar", ")", ")", ";", "}", "javac", "task", "get", "options", "(", ")", "set", "annotation", "processor", "path", "(", "processor", "path", ")", ";", "boolean", "incremental", "=", "abstract", "compiles", "util", "is", "incremental", "(", "app", "variant", "output", "context", "get", "scope", "(", ")", "get", "global", "scope", "(", ")", "get", "project", "(", ")", ",", "scope", ",", "compile", "options", ",", "null", ",", "/", "*", "processor", "configuration", ",", "java", "compile", "handles", "annotation", "processor", "now", "*", "/", "log", ")", ";", "javac", "task", "get", "options", "(", ")", "set", "incremental", "(", "incremental", ")", ";", "annotation", "processor", "options", "annotation", "processor", "options", "=", "scope", "get", "variant", "configuration", "(", ")", "get", "java", "compile", "options", "(", ")", "get", "annotation", "processor", "options", "(", ")", ";", "/", "/", "javac", "task", "get", "options", "(", ")", "get", "compiler", "args", "(", ")", "add", "(", "\"", "-", "processorpath", "\"", ")", ";", "/", "/", "javac", "task", "get", "options", "(", ")", "get", "compiler", "args", "(", ")", "add", "(", "file", "utils", "join", "file", "paths", "(", "processor", "path", ")", ")", ";", "if", "(", "!", "annotation", "processor", "options", "get", "class", "names", "(", ")", "is", "empty", "(", ")", ")", "{", "javac", "task", "get", "options", "(", ")", "get", "compiler", "args", "(", ")", "add", "(", "\"", "-", "processor", "\"", ")", ";", "javac", "task", "get", "options", "(", ")", "get", "compiler", "args", "(", ")", "add", "(", "joiner", "on", "(", "'", ",", "'", ")", "join", "(", "annotation", "processor", "options", "get", "class", "names", "(", ")", ")", ")", ";", "}", "if", "(", "!", "annotation", "processor", "options", "get", "arguments", "(", ")", "is", "empty", "(", ")", ")", "{", "for", "(", "map", "entry", "<", "string", ",", "string", ">", "arg", ":", "annotation", "processor", "options", "get", "arguments", "(", ")", "entry", "set", "(", ")", ")", "{", "string", "key", "=", "arg", "get", "key", "(", ")", ";", "string", "value", "=", "arg", "get", "value", "(", ")", ";", "if", "(", "\"", "android", "databinding", "module", "package", "\"", "equals", "(", "key", ")", ")", "{", "value", "=", "awb", "bundle", "get", "package", "name", "(", ")", "+", "\"", "bundleapp", "\"", ";", "}", "else", "if", "(", "\"", "android", "databinding", "artifact", "type", "\"", "equals", "(", "key", ")", ")", "{", "/", "/", "value", "=", "\"", "library", "\"", ";", "}", "else", "if", "(", "\"", "android", "databinding", "xml", "out", "dir", "\"", "equals", "(", "key", ")", ")", "{", "value", "=", "app", "variant", "output", "context", "get", "variant", "context", "(", ")", "get", "awb", "layout", "info", "output", "for", "data", "binding", "(", "awb", "bundle", ")", "get", "absolute", "path", "(", ")", ";", "}", "else", "if", "(", "\"", "android", "databinding", "binding", "build", "folder", "\"", "equals", "(", "key", ")", ")", "{", "value", "=", "app", "variant", "output", "context", "get", "variant", "context", "(", ")", "get", "awb", "data", "binding", "merge", "artifacts", "(", "awb", "bundle", ")", "get", "parent", "file", "(", ")", "get", "absolute", "path", "(", ")", ";", "}", "else", "if", "(", "\"", "android", "databinding", "generational", "file", "out", "dir", "\"", "equals", "(", "key", ")", ")", "{", "value", "=", "value", "+", "\"", "-", "\"", "+", "awb", "bundle", "get", "name", "(", ")", ";", "}", "javac", "task", "get", "options", "(", ")", "get", "compiler", "args", "(", ")", "add", "(", "\"", "-", "a", "\"", "+", "key", "+", "\"", "=", "\"", "+", "value", ")", ";", "}", "}", "javac", "task", "get", "options", "(", ")", "get", "compiler", "args", "(", ")", "add", "(", "\"", "-", "s", "\"", ")", ";", "javac", "task", "get", "options", "(", ")", "get", "compiler", "args", "(", ")", "add", "(", "app", "variant", "output", "context", "get", "variant", "context", "(", ")", "get", "awb", "annotation", "processor", "output", "dir", "(", "awb", "bundle", ")", "get", "absolute", "path", "(", ")", ")", ";", "file", "utils", "mkdirs", "(", "app", "variant", "output", "context", "get", "variant", "context", "(", ")", "get", "awb", "annotation", "processor", "output", "dir", "(", "awb", "bundle", ")", ")", ";", "if", "(", "scope", "get", "global", "scope", "(", ")", "get", "extension", "(", ")", "get", "data", "binding", "(", ")", "is", "enabled", "(", ")", "&", "&", "app", "variant", "output", "context", "get", "variant", "context", "(", ")", "is", "data", "bind", "enabled", "(", "awb", "bundle", ")", ")", "{", "file", "file", "=", "app", "variant", "output", "context", "get", "variant", "context", "(", ")", "get", "awb", "data", "binding", "merge", "artifacts", "(", "awb", "bundle", ")", ";", "reflect", "utils", "update", "field", "(", "javac", "task", ",", "\"", "data", "binding", "dependency", "artifacts", "\"", ",", "scope", "get", "global", "scope", "(", ")", "get", "project", "(", ")", "files", "(", "file", ")", ")", ";", "/", "/", "file", "collection", "files", "=", "/", "/", "app", "variant", "output", "context", "get", "scope", "(", ")", "get", "artifact", "collection", "(", "compile", "classpath", ",", "all", ",", "data", "binding", "artifact", ")", "get", "artifact", "files", "(", ")", ";", "/", "/", "for", "(", "file", "databing", "file", ":", "files", "get", "files", "(", ")", ")", "{", "/", "/", "for", "(", "file", "bin", "file", ":", "org", "apache", "commons", "io", "file", "utils", "list", "files", "(", "databing", "file", ",", "new", "string", "[", "]", "{", "\"", "bin", "\"", "}", ",", "true", ")", ")", "{", "/", "/", "if", "(", "bin", "file", "get", "name", "(", ")", "contains", "(", "\"", "base", "adapters", "\"", ")", ")", "{", "/", "/", "try", "{", "/", "/", "file", "utils", "copy", "file", "to", "directory", "(", "bin", "file", ",", "app", "variant", "output", "context", "get", "variant", "context", "(", ")", "get", "awb", "data", "binding", "merge", "artifacts", "(", "awb", "bundle", ")", ")", ";", "/", "/", "}", "catch", "(", "i", "o", "exception", "e", ")", "{", "/", "/", "e", "print", "stack", "trace", "(", ")", ";", "/", "/", "}", "/", "/", "}", "/", "/", "}", "/", "/", "}", "}", "reflect", "utils", "update", "field", "(", "javac", "task", ",", "\"", "annotation", "processor", "output", "folder", "\"", ",", "app", "variant", "output", "context", "get", "variant", "context", "(", ")", "get", "awb", "annotation", "processor", "output", "dir", "(", "awb", "bundle", ")", ")", ";", "reflect", "utils", "update", "field", "(", "javac", "task", ",", "\"", "compile", "sdk", "version", "\"", ",", "scope", "get", "global", "scope", "(", ")", "get", "extension", "(", ")", "get", "compile", "sdk", "version", "(", ")", ")", ";", "reflect", "utils", "update", "field", "(", "javac", "task", ",", "\"", "processor", "list", "file", "\"", ",", "app", "variant", "output", "context", "get", "variant", "context", "(", ")", "get", "scope", "(", ")", "get", "output", "(", "annotation", "processor", "list", ")", ")", ";", "reflect", "utils", "update", "field", "(", "javac", "task", ",", "\"", "variant", "name", "\"", ",", "scope", "get", "full", "variant", "name", "(", ")", ")", ";", "reflect", "utils", "update", "field", "(", "javac", "task", ",", "\"", "m", "instant", "run", "build", "context", "\"", ",", "scope", "get", "instant", "run", "build", "context", "(", ")", ")", ";", "gradle", "build", "variant", "builder", "builder", "=", "process", "profile", "writer", "get", "or", "create", "variant", "(", "scope", "get", "global", "scope", "(", ")", "get", "project", "(", ")", "get", "path", "(", ")", ",", "scope", "get", "full", "variant", "name", "(", ")", ")", ";", "if", "(", "builder", "!", "=", "null", "&", "&", "builder", "get", "annotation", "processors", "list", "(", ")", "size", "(", ")", ">", "0", ")", "{", "builder", "clear", "annotation", "processors", "(", ")", ";", "}", "javac", "task", "set", "awb", "bundle", "(", "awb", "bundle", ")", ";", "/", "/", "modification", "}" ]
[ "test", "when", "input", "path", "is", "a", "file" ]
[ "public", "void", "test", "file", "(", ")", "throws", "i", "o", "exception", "{", "fs", "mkdirs", "(", "test", "dir", ")", ";", "write", "file", "(", "fs", ",", "file1", ",", "file", "len", ")", ";", "remote", "iterator", "<", "located", "file", "status", ">", "itor", "=", "fs", "list", "files", "(", "file1", ",", "true", ")", ";", "located", "file", "status", "stat", "=", "itor", "next", "(", ")", ";", "assert", "false", "(", "itor", "has", "next", "(", ")", ")", ";", "assert", "true", "(", "stat", "is", "file", "(", ")", ")", ";", "assert", "equals", "(", "file", "len", ",", "stat", "get", "len", "(", ")", ")", ";", "assert", "equals", "(", "fs", "make", "qualified", "(", "file1", ")", ",", "stat", "get", "path", "(", ")", ")", ";", "assert", "equals", "(", "1", ",", "stat", "get", "block", "locations", "(", ")", "length", ")", ";", "itor", "=", "fs", "list", "files", "(", "file1", ",", "false", ")", ";", "stat", "=", "itor", "next", "(", ")", ";", "assert", "false", "(", "itor", "has", "next", "(", ")", ")", ";", "assert", "true", "(", "stat", "is", "file", "(", ")", ")", ";", "assert", "equals", "(", "file", "len", ",", "stat", "get", "len", "(", ")", ")", ";", "assert", "equals", "(", "fs", "make", "qualified", "(", "file1", ")", ",", "stat", "get", "path", "(", ")", ")", ";", "assert", "equals", "(", "1", ",", "stat", "get", "block", "locations", "(", ")", "length", ")", ";", "fs", "delete", "(", "file1", ",", "true", ")", ";", "}" ]
[ "moves", "this", "file", "to", "the", "specified", "file", ",", "overwriting", "the", "file", "if", "it", "already", "exists" ]
[ "public", "void", "move", "to", "(", "file", "handle", "dest", ")", "{", "switch", "(", "type", ")", "{", "case", "classpath", ":", "throw", "new", "gdx", "runtime", "exception", "(", "\"", "cannot", "move", "a", "classpath", "file", ":", "\"", "+", "file", ")", ";", "case", "internal", ":", "throw", "new", "gdx", "runtime", "exception", "(", "\"", "cannot", "move", "an", "internal", "file", ":", "\"", "+", "file", ")", ";", "case", "absolute", ":", "case", "external", ":", "/", "/", "try", "rename", "for", "efficiency", "and", "to", "change", "case", "on", "case", "-", "insensitive", "file", "systems", "if", "(", "file", "(", ")", "rename", "to", "(", "dest", "file", "(", ")", ")", ")", "return", ";", "}", "copy", "to", "(", "dest", ")", ";", "delete", "(", ")", ";", "if", "(", "exists", "(", ")", "&", "&", "is", "directory", "(", ")", ")", "delete", "directory", "(", ")", ";", "}" ]
[ "gets", "multifactor", "authentication", "provider", "bypass" ]
[ "protected", "multifactor", "authentication", "provider", "bypass", "evaluator", "get", "multifactor", "authentication", "provider", "bypass", "(", "final", "duo", "security", "multifactor", "properties", "properties", ")", "{", "return", "bypass", "evaluator", "filter", "multifactor", "authentication", "provider", "bypass", "evaluators", "by", "(", "properties", "get", "id", "(", ")", ")", ";", "}" ]
[ "sets", "the", "minimal", "pause", "between", "checkpointing", "attempts", "this", "setting", "defines", "how", "soon", "the", "checkpoint", "coordinator", "may", "trigger", "another", "checkpoint", "after", "it", "becomes", "possible", "to", "trigger", "another", "checkpoint", "with", "respect", "to", "the", "maximum", "number", "of", "concurrent", "checkpoints", "(", "see", "{", "@", "link", "#", "set", "max", "concurrent", "checkpoints", "(", "int", ")", "}", ")", "if", "the", "maximum", "number", "of", "concurrent", "checkpoints", "is", "set", "to", "one", ",", "this", "setting", "makes", "effectively", "sure", "that", "a", "minimum", "amount", "of", "time", "passes", "where", "no", "checkpoint", "is", "in", "progress", "at", "all" ]
[ "public", "void", "set", "min", "pause", "between", "checkpoints", "(", "long", "min", "pause", "between", "checkpoints", ")", "{", "if", "(", "min", "pause", "between", "checkpoints", "<", "0", ")", "{", "throw", "new", "illegal", "argument", "exception", "(", "\"", "pause", "value", "must", "be", "zero", "or", "positive", "\"", ")", ";", "}", "this", "min", "pause", "between", "checkpoints", "=", "min", "pause", "between", "checkpoints", ";", "}" ]
[ "atomically", ":", "set", "the", "next", "disposable", "on", "this", "container", "and", "dispose", "the", "previous", "one", "(", "if", "any", ")", "or", "dispose", "next", "if", "the", "container", "has", "been", "disposed" ]
[ "public", "boolean", "update", "(", "disposable", "next", ")", "{", "return", "disposable", "helper", "set", "(", "this", ",", "next", ")", ";", "}" ]
[ "set", "the", "default", "routing" ]
[ "public", "alias", "actions", "routing", "(", "string", "routing", ")", "{", "if", "(", "type", "!", "=", "alias", "actions", "type", "add", ")", "{", "throw", "new", "illegal", "argument", "exception", "(", "\"", "[", "routing", "]", "is", "unsupported", "for", "[", "\"", "+", "type", "+", "\"", "]", "\"", ")", ";", "}", "this", "routing", "=", "routing", ";", "return", "this", ";", "}" ]
[ "creates", "a", "operator", "replay", "instance", "to", "replay", "values", "of", "the", "given", "source", "observable" ]
[ "static", "<", "t", ">", "connectable", "flowable", "<", "t", ">", "create", "(", "flowable", "<", "t", ">", "source", ",", "final", "supplier", "<", "?", "extends", "replay", "buffer", "<", "t", ">", ">", "buffer", "factory", ")", "{", "/", "/", "the", "current", "connection", "to", "source", "needs", "to", "be", "shared", "between", "the", "operator", "and", "its", "on", "subscribe", "call", "final", "atomic", "reference", "<", "replay", "subscriber", "<", "t", ">", ">", "curr", "=", "new", "atomic", "reference", "<", ">", "(", ")", ";", "publisher", "<", "t", ">", "on", "subscribe", "=", "new", "replay", "publisher", "<", ">", "(", "curr", ",", "buffer", "factory", ")", ";", "return", "rx", "java", "plugins", "on", "assembly", "(", "new", "flowable", "replay", "<", ">", "(", "on", "subscribe", ",", "source", ",", "curr", ",", "buffer", "factory", ")", ")", ";", "}" ]
[ "fetch", "metadata", "http", "response" ]
[ "protected", "http", "response", "fetch", "metadata", "(", "final", "saml", "registered", "service", "service", ",", "final", "string", "metadata", "location", ",", "final", "criteria", "set", "criteria", "set", ",", "final", "file", "backup", "file", ")", "{", "logger", "debug", "(", "\"", "fetching", "metadata", "from", "[", "{", "}", "]", "\"", ",", "metadata", "location", ")", ";", "return", "http", "utils", "execute", "get", "(", "metadata", "location", ",", "service", "get", "metadata", "proxy", "location", "(", ")", ")", ";", "}" ]
[ "cleans", "up", "the", "gl", "resources" ]
[ "/", "*", "package", "*", "/", "void", "shutdown", "(", ")", "{", "if", "(", "program", "!", "=", "0", ")", "{", "gles20", "gl", "delete", "program", "(", "program", ")", ";", "}", "}" ]
[ "find", "pet", "by", "id", "returns", "a", "single", "pet" ]
[ "public", "api", "response", "<", "pet", ">", "get", "pet", "by", "id", "with", "http", "info", "(", "long", "pet", "id", ")", "throws", "api", "exception", "{", "okhttp", "3", "call", "local", "var", "call", "=", "get", "pet", "by", "id", "validate", "before", "call", "(", "pet", "id", ",", "null", ")", ";", "type", "local", "var", "return", "type", "=", "new", "type", "token", "<", "pet", ">", "(", ")", "{", "}", "get", "type", "(", ")", ";", "return", "local", "var", "api", "client", "execute", "(", "local", "var", "call", ",", "local", "var", "return", "type", ")", ";", "}" ]