docstring_tokens
list
code_tokens
list
[ "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", "\"", ")", ";", "}" ]
[ "fetches", "the", "{", "@", "link", "broadcast", "state", "}", "with", "the", "specified", "name" ]
[ "<", "k", ",", "v", ">", "broadcast", "state", "<", "k", ",", "v", ">", "get", "broadcast", "state", "(", "map", "state", "descriptor", "<", "k", ",", "v", ">", "descriptor", ")", ";" ]
[ "decodes", "data", "into", "a", "{", "@", "link", "subtitle", "}" ]
[ "protected", "abstract", "subtitle", "decode", "(", "byte", "[", "]", "data", ",", "int", "size", ",", "boolean", "reset", ")", "throws", "subtitle", "decoder", "exception", ";" ]
[ "register", "a", "field", "error", "for", "the", "specified", "field", "of", "the", "current", "object", "(", "respecting", "the", "current", "nested", "path", ",", "if", "any", ")", ",", "using", "the", "given", "error", "description", "the", "field", "name", "may", "be", "{", "@", "code", "null", "}", "or", "empty", "string", "to", "indicate", "the", "current", "object", "itself", "rather", "than", "a", "field", "of", "it", "this", "may", "result", "in", "a", "corresponding", "field", "error", "within", "the", "nested", "object", "graph", "or", "a", "global", "error", "if", "the", "current", "object", "is", "the", "top", "object" ]
[ "void", "reject", "value", "(", "@", "nullable", "string", "field", ",", "string", "error", "code", ")", ";" ]
[ "modify", "the", "provided", "map", "in", "place", ",", "translating", "all", "fields", "into", "runtime", "fields", "that", "load", "from", "source" ]
[ "protected", "final", "boolean", "runtimeify", "mapping", "properties", "(", "map", "<", "string", ",", "object", ">", "properties", ",", "map", "<", "string", ",", "object", ">", "runtime", "fields", ")", "{", "for", "(", "map", "entry", "<", "string", ",", "object", ">", "property", ":", "properties", "entry", "set", "(", ")", ")", "{", "if", "(", "false", "=", "=", "property", "get", "value", "(", ")", "instanceof", "map", ")", "{", "continue", ";", "}", "@", "suppress", "warnings", "(", "\"", "unchecked", "\"", ")", "map", "<", "string", ",", "object", ">", "property", "map", "=", "(", "map", "<", "string", ",", "object", ">", ")", "property", "get", "value", "(", ")", ";", "string", "name", "=", "property", "get", "key", "(", ")", ";", "string", "type", "=", "objects", "to", "string", "(", "property", "map", "get", "(", "\"", "type", "\"", ")", ")", ";", "if", "(", "\"", "nested", "\"", "equals", "(", "type", ")", ")", "{", "/", "/", "our", "loading", "scripts", "can", "'", "t", "be", "made", "to", "manage", "nested", "fields", "so", "we", "have", "to", "skip", "those", "tests", "return", "false", ";", "}", "if", "(", "\"", "false", "\"", "equals", "(", "objects", "to", "string", "(", "property", "map", "get", "(", "\"", "doc", "values", "\"", ")", ")", ")", ")", "{", "/", "/", "if", "doc", "values", "is", "false", "we", "can", "'", "t", "emulate", "with", "scripts", "so", "we", "keep", "the", "old", "definition", "`", "null", "`", "and", "`", "true", "`", "are", "fine", "continue", ";", "}", "if", "(", "\"", "false", "\"", "equals", "(", "objects", "to", "string", "(", "property", "map", "get", "(", "\"", "index", "\"", ")", ")", ")", ")", "{", "/", "/", "if", "index", "is", "false", "we", "can", "'", "t", "emulate", "with", "scripts", "continue", ";", "}", "if", "(", "\"", "true", "\"", "equals", "(", "objects", "to", "string", "(", "property", "map", "get", "(", "\"", "store", "\"", ")", ")", ")", ")", "{", "/", "/", "if", "store", "is", "true", "we", "can", "'", "t", "emulate", "with", "scripts", "continue", ";", "}", "if", "(", "property", "map", "contains", "key", "(", "\"", "ignore", "above", "\"", ")", ")", "{", "/", "/", "scripts", "don", "'", "t", "support", "ignore", "above", "so", "we", "skip", "those", "fields", "continue", ";", "}", "if", "(", "property", "map", "contains", "key", "(", "\"", "ignore", "malformed", "\"", ")", ")", "{", "/", "/", "our", "source", "reading", "script", "doesn", "'", "t", "emulate", "ignore", "malformed", "continue", ";", "}", "if", "(", "runtime", "types", "contains", "(", "type", ")", "=", "=", "false", ")", "{", "continue", ";", "}", "map", "<", "string", ",", "object", ">", "runtime", "config", "=", "new", "hash", "map", "<", ">", "(", "property", "map", ")", ";", "runtime", "config", "put", "(", "\"", "type", "\"", ",", "type", ")", ";", "runtime", "config", "remove", "(", "\"", "store", "\"", ")", ";", "runtime", "config", "remove", "(", "\"", "index", "\"", ")", ";", "runtime", "config", "remove", "(", "\"", "doc", "values", "\"", ")", ";", "runtime", "fields", "put", "(", "name", ",", "runtime", "config", ")", ";", "/", "/", "we", "disable", "the", "mapped", "fields", "and", "shadow", "them", "with", "their", "corresponding", "runtime", "field", "property", "map", "put", "(", "\"", "doc", "values", "\"", ",", "false", ")", ";", "property", "map", "put", "(", "\"", "index", "\"", ",", "false", ")", ";", "}", "/", "*", "*", "its", "tempting", "to", "return", "false", "here", "if", "we", "didn", "'", "t", "make", "any", "runtime", "*", "fields", ",", "skipping", "the", "test", "but", "that", "would", "cause", "us", "to", "skip", "any", "*", "test", "uses", "dynamic", "mappings", "disaster", "!", "instead", "we", "use", "a", "dynamic", "*", "template", "to", "make", "the", "dynamic", "mappings", "into", "runtime", "fields", "too", "*", "the", "downside", "is", "that", "we", "can", "run", "tests", "that", "don", "'", "t", "use", "runtime", "*", "fields", "at", "all", "that", "'", "s", "unfortunate", ",", "but", "its", "ok", "*", "/", "return", "true", ";", "}" ]
[ "get", "the", "next", "attribute", "in", "the", "list", "after", "the", "given", "one", ",", "with", "the", "same", "name", ",", "if", "any" ]
[ "public", "attribute", "find", "next", "(", "attribute", "attrib", ")", ";" ]
[ "obtain", "the", "total", "size", "of", "the", "physical", "memory", "present", "in", "the", "system" ]
[ "public", "long", "get", "physical", "memory", "size", "(", ")", "{", "return", "sys", "get", "physical", "memory", "size", "(", ")", ";", "}" ]
[ "get", "any", "global", "{", "@", "link", "state", "store", "}", "s", "that", "are", "part", "of", "the", "topology" ]
[ "public", "map", "<", "string", ",", "state", "store", ">", "global", "state", "stores", "(", ")", "{", "objects", "require", "non", "null", "(", "application", "id", ",", "\"", "topology", "has", "not", "completed", "optimization", "\"", ")", ";", "return", "collections", "unmodifiable", "map", "(", "global", "state", "stores", ")", ";", "}" ]
[ "an", "implementation", "for", "{", "@", "link", "set", "#", "equals", "(", "object", ")", "}" ]
[ "static", "boolean", "equals", "impl", "(", "set", "<", "?", ">", "s", ",", "@", "nullable", "decl", "object", "object", ")", "{", "if", "(", "s", "=", "=", "object", ")", "{", "return", "true", ";", "}", "if", "(", "object", "instanceof", "set", ")", "{", "set", "<", "?", ">", "o", "=", "(", "set", "<", "?", ">", ")", "object", ";", "try", "{", "return", "s", "size", "(", ")", "=", "=", "o", "size", "(", ")", "&", "&", "s", "contains", "all", "(", "o", ")", ";", "}", "catch", "(", "null", "pointer", "exception", "|", "class", "cast", "exception", "ignored", ")", "{", "return", "false", ";", "}", "}", "return", "false", ";", "}" ]
[ "save", "the", "configuration", "value", "that", "we", "need", "to", "write", "the", "data" ]
[ "public", "void", "setup", "(", "context", "context", ")", "{", "configuration", "conf", "=", "context", "get", "configuration", "(", ")", ";", "num", "bytes", "to", "write", "=", "conf", "get", "long", "(", "bytes", "per", "map", ",", "1", "*", "1024", "*", "1024", "*", "1024", ")", ";", "min", "words", "in", "key", "=", "conf", "get", "int", "(", "min", "key", ",", "5", ")", ";", "words", "in", "key", "range", "=", "(", "conf", "get", "int", "(", "max", "key", ",", "10", ")", "-", "min", "words", "in", "key", ")", ";", "min", "words", "in", "value", "=", "conf", "get", "int", "(", "min", "value", ",", "10", ")", ";", "words", "in", "value", "range", "=", "(", "conf", "get", "int", "(", "max", "value", ",", "100", ")", "-", "min", "words", "in", "value", ")", ";", "}" ]
[ "returns", "a", "hex", "string", "representation", "of", "the", "long" ]
[ "public", "string", "to", "hex", "string", "(", "long", "l", ",", "boolean", "zeropad", ",", "boolean", "header", ")", "{", "string", "s", "=", "long", "to", "hex", "string", "(", "l", ")", ";", "if", "(", "zeropad", ")", "{", "s", "=", "zeropad", "(", "s", ",", "16", ")", ";", "}", "return", "(", "header", "?", "\"", "0x", "\"", ":", "\"", "\"", ")", "+", "s", ";", "}" ]
[ "add", "a", "link", "element", "implementation", "should", "try", "to", "figure", "out", "type", "by", "the", "suffix", "of", "href", "so", "<", "code", ">", "link", "(", "\"", "style", "css", "\"", ")", ";", "<", "code", ">", "is", "a", "shortcut", "of", "<", "code", ">", "link", "(", ")", "$", "rel", "(", "\"", "stylesheet", "\"", ")", "$", "type", "(", "\"", "textcss", "\"", ")", "$", "href", "(", "\"", "style", "css", "\"", ")", "(", ")", ";", "<", "code", ">" ]
[ "head", "misc", "link", "(", "string", "href", ")", ";" ]
[ "returns", "the", "{", "@", "link", "spdy", "session", "status", "}", "represented", "by", "the", "specified", "code", "if", "the", "specified", "code", "is", "a", "defined", "spdy", "status", "code", ",", "a", "cached", "instance", "will", "be", "returned", "otherwise", ",", "a", "new", "instance", "will", "be", "returned" ]
[ "public", "static", "spdy", "session", "status", "value", "of", "(", "int", "code", ")", "{", "switch", "(", "code", ")", "{", "case", "0", ":", "return", "ok", ";", "case", "1", ":", "return", "protocol", "error", ";", "case", "2", ":", "return", "internal", "error", ";", "}", "return", "new", "spdy", "session", "status", "(", "code", ",", "\"", "unknown", "(", "\"", "+", "code", "+", "'", ")", "'", ")", ";", "}" ]
[ "set", "the", "default", "character", "set", "to", "use", "for", "writing", "form", "data", "when", "the", "response", "content", "-", "type", "header", "does", "not", "explicitly", "specify", "it", "by", "default", "this", "is", "set", "to", "\"", "utf", "-", "8", "\"" ]
[ "public", "void", "set", "default", "charset", "(", "charset", "charset", ")", "{", "assert", "not", "null", "(", "charset", ",", "\"", "charset", "must", "not", "be", "null", "\"", ")", ";", "this", "default", "charset", "=", "charset", ";", "}" ]
[ "get", "namespace", "wrapped", "array" ]
[ "public", "list", "<", "integer", ">", "get", "namespace", "wrapped", "array", "(", ")", "{", "return", "namespace", "wrapped", "array", ";", "}" ]
[ "return", "the", "path", "matcher", "that", "this", "resource", "pattern", "resolver", "uses" ]
[ "public", "path", "matcher", "get", "path", "matcher", "(", ")", "{", "return", "this", "path", "matcher", ";", "}" ]
[ "return", "the", "supplied", "file", "system", "for", "testing", "or", "otherwise", "get", "a", "new", "file", "system" ]
[ "private", "file", "system", "get", "file", "system", "(", ")", "throws", "metrics", "exception", "{", "file", "system", "fs", "=", "null", ";", "if", "(", "supplied", "filesystem", "!", "=", "null", ")", "{", "fs", "=", "supplied", "filesystem", ";", "}", "else", "{", "try", "{", "fs", "=", "file", "system", "get", "(", "new", "uri", "(", "base", "path", "to", "string", "(", ")", ")", ",", "conf", ")", ";", "}", "catch", "(", "u", "r", "i", "syntax", "exception", "ex", ")", "{", "throw", "new", "metrics", "exception", "(", "\"", "the", "supplied", "filesystem", "base", "path", "uri", "\"", "+", "\"", "is", "not", "a", "valid", "uri", ":", "\"", "+", "base", "path", "to", "string", "(", ")", ",", "ex", ")", ";", "}", "catch", "(", "i", "o", "exception", "ex", ")", "{", "throw", "new", "metrics", "exception", "(", "\"", "error", "connecting", "to", "file", "system", ":", "\"", "+", "base", "path", "+", "\"", "[", "\"", "+", "ex", "to", "string", "(", ")", "+", "\"", "]", "\"", ",", "ex", ")", ";", "}", "}", "return", "fs", ";", "}" ]
[ "ensures", "that", "the", "joining", "node", "has", "a", "version", "that", "'", "s", "compatible", "with", "a", "given", "version", "range" ]
[ "public", "static", "void", "ensure", "nodes", "compatibility", "(", "version", "joining", "node", "version", ",", "version", "min", "cluster", "node", "version", ",", "version", "max", "cluster", "node", "version", ")", "{", "assert", "min", "cluster", "node", "version", "on", "or", "before", "(", "max", "cluster", "node", "version", ")", ":", "min", "cluster", "node", "version", "+", "\"", ">", "\"", "+", "max", "cluster", "node", "version", ";", "if", "(", "joining", "node", "version", "is", "compatible", "(", "max", "cluster", "node", "version", ")", "=", "=", "false", ")", "{", "throw", "new", "illegal", "state", "exception", "(", "\"", "node", "version", "[", "\"", "+", "joining", "node", "version", "+", "\"", "]", "is", "not", "supported", "\"", "+", "\"", "the", "cluster", "contains", "nodes", "with", "version", "[", "\"", "+", "max", "cluster", "node", "version", "+", "\"", "]", ",", "which", "is", "incompatible", "\"", ")", ";", "}", "if", "(", "joining", "node", "version", "is", "compatible", "(", "min", "cluster", "node", "version", ")", "=", "=", "false", ")", "{", "throw", "new", "illegal", "state", "exception", "(", "\"", "node", "version", "[", "\"", "+", "joining", "node", "version", "+", "\"", "]", "is", "not", "supported", "\"", "+", "\"", "the", "cluster", "contains", "nodes", "with", "version", "[", "\"", "+", "min", "cluster", "node", "version", "+", "\"", "]", ",", "which", "is", "incompatible", "\"", ")", ";", "}", "}" ]
[ "passes", "on", "to", "the", "delegating", "layout", "manager", "that", "the", "layout", "type", "has", "changed", "the", "delegating", "layout", "manager", "will", "then", "decide", "whether", "to", "delegate", "layout", "to", "the", "xy", "or", "graph", "layout" ]
[ "protected", "void", "handle", "child", "change", "(", "property", "change", "event", "evt", ")", "{", "super", "handle", "child", "change", "(", "evt", ")", ";", "}" ]
[ "test", "that", "if", "the", "{", "@", "link", "ldap", "groups", "mapping", "#", "connection", "timeout", "}", "is", "set", "in", "the", "configuration", ",", "the", "ldap", "groups", "mapping", "connection", "will", "timeout", "by", "this", "value", "if", "it", "does", "not", "get", "a", "ldap", "response", "from", "the", "server" ]
[ "public", "void", "test", "ldap", "connection", "timeout", "(", ")", "throws", "i", "o", "exception", ",", "interrupted", "exception", "{", "final", "int", "connection", "timeout", "ms", "=", "3", "*", "1000", ";", "/", "/", "3s", "try", "(", "server", "socket", "server", "sock", "=", "new", "server", "socket", "(", "0", ")", ")", "{", "final", "count", "down", "latch", "fin", "latch", "=", "new", "count", "down", "latch", "(", "1", ")", ";", "/", "/", "below", "we", "create", "a", "ldap", "server", "which", "will", "accept", "a", "client", "request", ";", "/", "/", "but", "it", "will", "never", "reply", "to", "the", "bind", "(", "connect", ")", "request", "/", "/", "client", "of", "this", "ldap", "server", "is", "expected", "to", "get", "a", "connection", "timeout", "final", "thread", "ldap", "server", "=", "new", "thread", "(", "new", "runnable", "(", ")", "{", "@", "override", "public", "void", "run", "(", ")", "{", "try", "{", "try", "(", "socket", "ignored", "=", "server", "sock", "accept", "(", ")", ")", "{", "fin", "latch", "await", "(", ")", ";", "}", "}", "catch", "(", "exception", "e", ")", "{", "e", "print", "stack", "trace", "(", ")", ";", "}", "}", "}", ")", ";", "ldap", "server", "start", "(", ")", ";", "final", "ldap", "groups", "mapping", "mapping", "=", "new", "ldap", "groups", "mapping", "(", ")", ";", "string", "ldap", "url", "=", "\"", "ldap", ":", "/", "/", "localhost", ":", "\"", "+", "server", "sock", "get", "local", "port", "(", ")", ";", "final", "configuration", "conf", "=", "get", "base", "conf", "(", "ldap", "url", ",", "null", ")", ";", "conf", "set", "int", "(", "connection", "timeout", ",", "connection", "timeout", "ms", ")", ";", "mapping", "set", "conf", "(", "conf", ")", ";", "try", "{", "mapping", "do", "get", "groups", "(", "\"", "hadoop", "\"", ",", "1", ")", ";", "fail", "(", "\"", "the", "ldap", "query", "should", "have", "timed", "out", "!", "\"", ")", ";", "}", "catch", "(", "naming", "exception", "ne", ")", "{", "log", "debug", "(", "\"", "got", "the", "exception", "while", "ldap", "querying", ":", "\"", ",", "ne", ")", ";", "assert", "exception", "contains", "(", "\"", "ldap", "response", "read", "timed", "out", ",", "timeout", "used", "\"", ",", "ne", ")", ";", "assert", "exception", "contains", "(", "\"", "\"", "+", "connection", "timeout", "ms", ",", "ne", ")", ";", "assert", "false", "(", "ne", "get", "message", "(", ")", "contains", "(", "\"", "remaining", "name", "\"", ")", ")", ";", "}", "finally", "{", "fin", "latch", "count", "down", "(", ")", ";", "}", "ldap", "server", "join", "(", ")", ";", "}", "}" ]
[ "return", "an", "ordered", "list", "of", "edits", "directories", "to", "write", "to", "the", "list", "is", "ordered", "such", "that", "all", "shared", "edits", "directories", "are", "ordered", "before", "non", "-", "shared", "directories", ",", "and", "any", "duplicates", "are", "removed", "the", "order", "they", "are", "specified", "in", "the", "configuration", "is", "retained" ]
[ "public", "static", "list", "<", "uri", ">", "get", "namespace", "edits", "dirs", "(", "configuration", "conf", ")", "throws", "i", "o", "exception", "{", "return", "get", "namespace", "edits", "dirs", "(", "conf", ",", "true", ")", ";", "}" ]
[ "finds", "which", "pojo", "fields", "exists", "both", "in", "the", "new", "{", "@", "link", "pojo", "serializer", "}", "as", "well", "as", "in", "the", "previous", "one", "(", "represented", "by", "this", "snapshot", ")", ",", "and", "returns", "an", "{", "@", "link", "intermediate", "compatibility", "result", "}", "of", "the", "serializers", "of", "those", "preexisting", "fields" ]
[ "private", "static", "<", "t", ">", "intermediate", "compatibility", "result", "<", "t", ">", "get", "compatibility", "of", "pre", "existing", "fields", "(", "pojo", "serializer", "<", "t", ">", "new", "pojo", "serializer", ",", "linked", "optional", "map", "<", "field", ",", "type", "serializer", "snapshot", "<", "?", ">", ">", "field", "serializer", "snapshots", ")", "{", "/", "/", "the", "present", "entries", "dictates", "the", "preexisting", "fields", ",", "because", "removed", "fields", "would", "be", "/", "/", "represented", "as", "absent", "keys", "in", "the", "optional", "map", "final", "set", "<", "linked", "optional", "map", "key", "value", "<", "field", ",", "type", "serializer", "snapshot", "<", "?", ">", ">", ">", "present", "field", "snapshots", "=", "field", "serializer", "snapshots", "get", "present", "entries", "(", ")", ";", "final", "array", "list", "<", "type", "serializer", "snapshot", "<", "?", ">", ">", "associated", "field", "serializer", "snapshots", "=", "new", "array", "list", "<", ">", "(", "present", "field", "snapshots", "size", "(", ")", ")", ";", "final", "array", "list", "<", "type", "serializer", "<", "?", ">", ">", "associated", "new", "field", "serializers", "=", "new", "array", "list", "<", ">", "(", "present", "field", "snapshots", "size", "(", ")", ")", ";", "final", "map", "<", "field", ",", "type", "serializer", "<", "?", ">", ">", "new", "field", "serializers", "index", "=", "build", "new", "field", "serializers", "index", "(", "new", "pojo", "serializer", ")", ";", "for", "(", "linked", "optional", "map", "key", "value", "<", "field", ",", "type", "serializer", "snapshot", "<", "?", ">", ">", "present", "field", "entry", ":", "present", "field", "snapshots", ")", "{", "type", "serializer", "<", "?", ">", "associated", "new", "field", "serializer", "=", "new", "field", "serializers", "index", "get", "(", "present", "field", "entry", "get", "key", "(", ")", ")", ";", "check", "state", "(", "associated", "new", "field", "serializer", "!", "=", "null", ",", "\"", "a", "present", "field", "should", "have", "its", "associated", "new", "field", "serializer", "available", "\"", ")", ";", "associated", "field", "serializer", "snapshots", "add", "(", "present", "field", "entry", "get", "value", "(", ")", ")", ";", "associated", "new", "field", "serializers", "add", "(", "associated", "new", "field", "serializer", ")", ";", "}", "return", "composite", "type", "serializer", "util", "construct", "intermediate", "compatibility", "result", "(", "associated", "new", "field", "serializers", "to", "array", "(", "new", "type", "serializer", "<", "?", ">", "[", "associated", "new", "field", "serializers", "size", "(", ")", "]", ")", ",", "associated", "field", "serializer", "snapshots", "to", "array", "(", "new", "type", "serializer", "snapshot", "<", "?", ">", "[", "associated", "field", "serializer", "snapshots", "size", "(", ")", "]", ")", ")", ";", "}" ]
[ "checks", "whether", "to", "candidate", "plans", "for", "the", "sub", "-", "plan", "of", "this", "node", "are", "comparable", "the", "two", "alternative", "plans", "are", "comparable", ",", "if", "a", ")", "there", "is", "no", "branch", "in", "the", "sub", "-", "plan", "of", "this", "node", "b", ")", "both", "candidates", "have", "the", "same", "candidate", "as", "the", "child", "at", "the", "last", "open", "branch" ]
[ "protected", "boolean", "are", "branch", "compatible", "(", "plan", "node", "plan", "1", ",", "plan", "node", "plan", "2", ")", "{", "if", "(", "plan", "1", "=", "=", "null", "|", "|", "plan", "2", "=", "=", "null", ")", "{", "throw", "new", "null", "pointer", "exception", "(", ")", ";", "}", "/", "/", "if", "there", "is", "no", "open", "branch", ",", "the", "children", "are", "always", "compatible", "/", "/", "in", "most", "plans", ",", "that", "will", "be", "the", "dominant", "case", "if", "(", "this", "here", "joined", "branches", "=", "=", "null", "|", "|", "this", "here", "joined", "branches", "is", "empty", "(", ")", ")", "{", "return", "true", ";", "}", "for", "(", "optimizer", "node", "joined", "brancher", ":", "here", "joined", "branches", ")", "{", "final", "plan", "node", "branch", "1", "cand", "=", "plan", "1", "get", "candidate", "at", "branch", "point", "(", "joined", "brancher", ")", ";", "final", "plan", "node", "branch", "2", "cand", "=", "plan", "2", "get", "candidate", "at", "branch", "point", "(", "joined", "brancher", ")", ";", "if", "(", "branch", "1", "cand", "!", "=", "null", "&", "&", "branch", "2", "cand", "!", "=", "null", "&", "&", "branch", "1", "cand", "!", "=", "branch", "2", "cand", ")", "{", "return", "false", ";", "}", "}", "return", "true", ";", "}" ]
[ "determine", "if", "a", "record", "is", "utilizing", "a", "chained", "d", "b", "buffer", "for", "data", "storage" ]
[ "private", "boolean", "has", "indirect", "storage", "(", "int", "index", ")", "{", "return", "buffer", "get", "byte", "(", "ind", "option", "base", "offset", "+", "(", "index", "*", "entry", "size", ")", ")", "!", "=", "0", ";", "}" ]
[ "test", "the", "property", "'", "class", "name", "'" ]
[ "public", "void", "class", "name", "test", "(", ")", "{", "/", "/", "todo", ":", "test", "class", "name", "}" ]
[ "serialize", "this", "{", "@", "link", "context", "carrier", "}", "to", "a", "{", "@", "link", "string", "}", ",", "with", "'", "|", "'", "split" ]
[ "string", "serialize", "(", "header", "version", "version", ")", "{", "if", "(", "this", "is", "valid", "(", "version", ")", ")", "{", "return", "string", "util", "join", "(", "'", "-", "'", ",", "\"", "1", "\"", ",", "base", "6", "4", "encode", "(", "this", "get", "trace", "id", "(", ")", ")", ",", "base", "6", "4", "encode", "(", "this", "get", "trace", "segment", "id", "(", ")", ")", ",", "this", "get", "span", "id", "(", ")", "+", "\"", "\"", ",", "base", "6", "4", "encode", "(", "this", "get", "parent", "service", "(", ")", ")", ",", "base", "6", "4", "encode", "(", "this", "get", "parent", "service", "instance", "(", ")", ")", ",", "base", "6", "4", "encode", "(", "this", "get", "parent", "endpoint", "(", ")", ")", ",", "base", "6", "4", "encode", "(", "this", "get", "address", "used", "at", "client", "(", ")", ")", ")", ";", "}", "return", "\"", "\"", ";", "}" ]
[ "get", "petfind", "by", "status", ":", "finds", "pets", "by", "status", "multiple", "status", "values", "can", "be", "provided", "with", "comma", "separated", "strings" ]
[ "default", "response", "entity", "<", "list", "<", "pet", ">", ">", "find", "pets", "by", "status", "(", "@", "not", "null", "@", "api", "param", "(", "value", "=", "\"", "status", "values", "that", "need", "to", "be", "considered", "for", "filter", "\"", ",", "required", "=", "true", ",", "allowable", "values", "=", "\"", "available", ",", "pending", ",", "sold", "\"", ")", "@", "valid", "@", "request", "param", "(", "value", "=", "\"", "status", "\"", ",", "required", "=", "true", ")", "list", "<", "string", ">", "status", ",", "@", "api", "ignore", "final", "pageable", "pageable", ")", "{", "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", "=", "\"", "{", "\\", "\"", "photo", "urls", "\\", "\"", ":", "[", "\\", "\"", "photo", "urls", "\\", "\"", ",", "\\", "\"", "photo", "urls", "\\", "\"", "]", ",", "\\", "\"", "name", "\\", "\"", ":", "\\", "\"", "doggie", "\\", "\"", ",", "\\", "\"", "id", "\\", "\"", ":", "0", ",", "\\", "\"", "category", "\\", "\"", ":", "{", "\\", "\"", "name", "\\", "\"", ":", "\\", "\"", "default", "-", "name", "\\", "\"", ",", "\\", "\"", "id", "\\", "\"", ":", "6", "}", ",", "\\", "\"", "tags", "\\", "\"", ":", "[", "{", "\\", "\"", "name", "\\", "\"", ":", "\\", "\"", "name", "\\", "\"", ",", "\\", "\"", "id", "\\", "\"", ":", "1", "}", ",", "{", "\\", "\"", "name", "\\", "\"", ":", "\\", "\"", "name", "\\", "\"", ",", "\\", "\"", "id", "\\", "\"", ":", "1", "}", "]", ",", "\\", "\"", "status", "\\", "\"", ":", "\\", "\"", "available", "\\", "\"", "}", "\"", ";", "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", "=", "\"", "<", "pet", ">", "<", "id", ">", "123456789", "<", "/", "id", ">", "<", "name", ">", "doggie", "<", "/", "name", ">", "<", "photo", "urls", ">", "<", "photo", "urls", ">", "aeiou", "<", "/", "photo", "urls", ">", "<", "/", "photo", "urls", ">", "<", "tags", ">", "<", "/", "tags", ">", "<", "status", ">", "aeiou", "<", "/", "status", ">", "<", "/", "pet", ">", "\"", ";", "api", "util", "set", "example", "response", "(", "request", ",", "\"", "application", "/", "xml", "\"", ",", "example", "string", ")", ";", "break", ";", "}", "}", "}", ")", ";", "return", "new", "response", "entity", "<", ">", "(", "http", "status", "not", "implemented", ")", ";", "}" ]
[ "set", "the", "metrics", "tracker", "factory", "to", "be", "used", "to", "create", "the", "i", "metrics", "tracker", "instance", "used", "by", "the", "pool" ]
[ "public", "void", "set", "metrics", "tracker", "factory", "(", "metrics", "tracker", "factory", "metrics", "tracker", "factory", ")", "{", "if", "(", "metrics", "tracker", "factory", "!", "=", "null", ")", "{", "this", "metrics", "tracker", "=", "new", "metrics", "tracker", "delegate", "(", "metrics", "tracker", "factory", "create", "(", "config", "get", "pool", "name", "(", ")", ",", "get", "pool", "stats", "(", ")", ")", ")", ";", "}", "else", "{", "this", "metrics", "tracker", "=", "new", "nop", "metrics", "tracker", "delegate", "(", ")", ";", "}", "}" ]
[ "check", "if", "the", "given", "array", "contains", "the", "given", "value", "(", "with", "case", "-", "insensitive", "comparison", ")" ]
[ "public", "static", "boolean", "contains", "ignore", "case", "(", "string", "[", "]", "array", ",", "string", "value", ")", "{", "for", "(", "string", "str", ":", "array", ")", "{", "if", "(", "value", "=", "=", "null", "&", "&", "str", "=", "=", "null", ")", "{", "return", "true", ";", "}", "if", "(", "value", "!", "=", "null", "&", "&", "value", "equals", "ignore", "case", "(", "str", ")", ")", "{", "return", "true", ";", "}", "}", "return", "false", ";", "}" ]
[ "finds", "the", "metadata", "containing", "the", "active", "hosts", "and", "standby", "hosts", "where", "the", "key", "being", "queried", "would", "reside" ]
[ "public", "<", "k", ">", "key", "query", "metadata", "query", "metadata", "for", "key", "(", "final", "string", "store", "name", ",", "final", "k", "key", ",", "final", "serializer", "<", "k", ">", "key", "serializer", ")", "{", "validate", "is", "running", "or", "rebalancing", "(", ")", ";", "return", "streams", "metadata", "state", "get", "key", "query", "metadata", "for", "key", "(", "store", "name", ",", "key", ",", "key", "serializer", ")", ";", "}" ]
[ "define", "all", "the", "rule", "beginend", "a", "t", "n", "states", "to", "solve", "forward", "reference", "issues" ]
[ "void", "create", "rule", "start", "and", "stop", "a", "t", "n", "states", "(", ")", "{", "atn", "rule", "to", "start", "state", "=", "new", "rule", "start", "state", "[", "g", "rules", "size", "(", ")", "]", ";", "atn", "rule", "to", "stop", "state", "=", "new", "rule", "stop", "state", "[", "g", "rules", "size", "(", ")", "]", ";", "for", "(", "rule", "r", ":", "g", "rules", "values", "(", ")", ")", "{", "rule", "start", "state", "start", "=", "new", "state", "(", "rule", "start", "state", "class", ",", "r", "ast", ")", ";", "rule", "stop", "state", "stop", "=", "new", "state", "(", "rule", "stop", "state", "class", ",", "r", "ast", ")", ";", "start", "stop", "state", "=", "stop", ";", "start", "is", "left", "recursive", "rule", "=", "r", "instanceof", "left", "recursive", "rule", ";", "start", "set", "rule", "index", "(", "r", "index", ")", ";", "stop", "set", "rule", "index", "(", "r", "index", ")", ";", "atn", "rule", "to", "start", "state", "[", "r", "index", "]", "=", "start", ";", "atn", "rule", "to", "stop", "state", "[", "r", "index", "]", "=", "stop", ";", "}", "}" ]
[ "test", "the", "property", "'", "bool", "item", "'" ]
[ "public", "void", "bool", "item", "test", "(", ")", "{", "/", "/", "todo", ":", "test", "bool", "item", "}" ]
[ "replaces", "existing", "mock", "object", "for", "verification", "with", "a", "different", "one", "needed", "for", "very", "advanced", "framework", "integrations", "for", "all", "the", "details", ",", "including", "how", "and", "why", "see", "{", "@", "link", "verification", "started", "listener", "}", "if", "this", "method", "is", "used", "to", "replace", "the", "mock", "the", "sibling", "method", "{", "@", "link", "#", "get", "mock", "(", ")", "}", "will", "return", "the", "new", "value", "caveat", ":", "if", "{", "@", "code", "set", "mock", "(", "object", ")", "}", "is", "invoked", "multiple", "times", "from", "one", "or", "many", "listeners", "the", "sibling", "method", "{", "@", "link", "#", "get", "mock", "(", ")", "}", "will", "return", "mock", "that", "was", "set", "by", "most", "recent", "invocation", "of", "{", "@", "code", "set", "mock", "(", "object", ")", "}" ]
[ "void", "set", "mock", "(", "object", "mock", ")", ";" ]
[ "remove", "the", "specified", "child", "node", "from", "this", "node", "does", "nothing", "if", "the", "node", "is", "not", "a", "child", "of", "this", "node" ]
[ "public", "void", "remove", "(", "n", "node", ")", "{", "if", "(", "!", "children", "remove", "value", "(", "node", ",", "true", ")", ")", "return", ";", "if", "(", "!", "expanded", ")", "return", ";", "tree", "tree", "=", "get", "tree", "(", ")", ";", "if", "(", "tree", "!", "=", "null", ")", "node", "remove", "from", "tree", "(", "tree", ",", "node", "actor", "get", "z", "index", "(", ")", ")", ";", "}" ]
[ "returns", "true", "if", "this", "group", "is", "'", "enabled", "'", ",", "which", "means", "that", "it", "has", "a", "selected", "{", "@", "link", "batch", "group", "load", "spec", "}", "and", "the", "user", "has", "chosen", "to", "mark", "this", "group", "as", "importable" ]
[ "public", "boolean", "is", "enabled", "(", ")", "{", "return", "enabled", ";", "}" ]
[ "this", "sets", "the", "header", "text", "that", "appears", "above", "the", "table" ]
[ "void", "set", "header", "(", "string", "text", ")", "{", "if", "(", "text", "!", "=", "null", "&", "&", "text", "length", "(", ")", "!", "=", "0", ")", "{", "header", "label", "set", "text", "(", "conflict", "utility", "wrap", "as", "h", "t", "m", "l", "(", "text", ")", ")", ";", "add", "(", "header", "label", ",", "border", "layout", "north", ")", ";", "}", "else", "{", "header", "label", "set", "text", "(", "\"", "\"", ")", ";", "remove", "(", "header", "label", ")", ";", "}", "validate", "(", ")", ";", "invalidate", "(", ")", ";", "}" ]
[ "returns", "{", "@", "code", "true", "}", "if", "this", "node", "is", "eligible", "to", "be", "change", "pruned", "when", "its", "value", "has", "not", "changed", "from", "the", "last", "build", "implementations", "need", "not", "check", "whether", "the", "value", "has", "changed", "-", "this", "will", "only", "be", "called", "if", "the", "value", "has", "not", "changed" ]
[ "public", "boolean", "is", "eligible", "for", "change", "pruning", "on", "unchanged", "value", "(", ")", "{", "return", "true", ";", "}" ]
[ "create", "an", "empty", "file", "in", "the", "default", "temporary", "-", "file", "directory", ",", "using", "`", "kafka", "`", "as", "the", "prefix", "and", "`", "tmp", "`", "as", "the", "suffix", "to", "generate", "its", "name" ]
[ "public", "static", "file", "temp", "file", "(", ")", "throws", "i", "o", "exception", "{", "final", "file", "file", "=", "file", "create", "temp", "file", "(", "\"", "kafka", "\"", ",", "\"", "tmp", "\"", ")", ";", "file", "delete", "on", "exit", "(", ")", ";", "return", "file", ";", "}" ]
[ "sets", "the", "rotation", "of", "the", "displayed", "image" ]
[ "public", "void", "set", "rotation", "(", "rotation", "rotation", ")", "{", "renderer", "set", "rotation", "(", "rotation", ")", ";", "}" ]
[ "init", "multipart", "upload", "assumption", ":", "this", "is", "called", "from", "a", "synchronized", "block", "note", "that", "this", "makes", "a", "blocking", "https", "request", "to", "the", "far", "end", ",", "so", "can", "take", "time", "and", "potentially", "fail" ]
[ "private", "void", "init", "multipart", "upload", "(", ")", "throws", "i", "o", "exception", "{", "if", "(", "multi", "part", "upload", "=", "=", "null", ")", "{", "log", "debug", "(", "\"", "initiating", "multipart", "upload", "\"", ")", ";", "multi", "part", "upload", "=", "new", "multi", "part", "upload", "(", "key", ")", ";", "}", "}" ]
[ "issue", "multiple", "sql", "updates", "on", "a", "single", "jdbc", "statement", "using", "batching", "will", "fall", "back", "to", "separate", "updates", "on", "a", "single", "statement", "if", "the", "jdbc", "driver", "does", "not", "support", "batch", "updates" ]
[ "int", "[", "]", "batch", "update", "(", "string", "sql", ")", "throws", "data", "access", "exception", ";", "/", "/", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "/", "/", "methods", "dealing", "with", "prepared", "statements", "/", "/", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-" ]
[ "adds", "custom", "options", "to", "the", "existing", "general", "options" ]
[ "void", "add", "general", "options", "(", "options", "base", "options", ")", ";" ]
[ "gets", "the", "system", "parameters", "and", "environment", "parameters", "that", "were", "passed", "to", "the", "jvm", "on", "startup" ]
[ "public", "static", "string", "get", "jvm", "startup", "options", "(", ")", "{", "try", "{", "final", "runtime", "m", "x", "bean", "bean", "=", "management", "factory", "get", "runtime", "m", "x", "bean", "(", ")", ";", "final", "string", "builder", "bld", "=", "new", "string", "builder", "(", ")", ";", "for", "(", "string", "s", ":", "bean", "get", "input", "arguments", "(", ")", ")", "{", "bld", "append", "(", "s", ")", "append", "(", "'", "'", ")", ";", "}", "return", "bld", "to", "string", "(", ")", ";", "}", "catch", "(", "throwable", "t", ")", "{", "return", "unknown", ";", "}", "}" ]
[ "wait", "for", "the", "reader", "thread", "to", "exhaust", "the", "job", "trace" ]
[ "public", "void", "join", "(", "long", "millis", ")", "throws", "interrupted", "exception", "{", "r", "thread", "join", "(", "millis", ")", ";", "}" ]
[ "this", "is", "testing", "a", "no", "-", "op", "path", "since", "it", "uses", "schedulers", "immediate", "(", ")", "which", "will", "not", "do", "scheduling" ]
[ "public", "void", "observe", "on", "(", ")", "{", "observer", "<", "integer", ">", "observer", "=", "test", "helper", "mock", "observer", "(", ")", ";", "observable", "just", "(", "1", ",", "2", ",", "3", ")", "observe", "on", "(", "immediate", "thin", "scheduler", "instance", ")", "subscribe", "(", "observer", ")", ";", "verify", "(", "observer", ",", "times", "(", "1", ")", ")", "on", "next", "(", "1", ")", ";", "verify", "(", "observer", ",", "times", "(", "1", ")", ")", "on", "next", "(", "2", ")", ";", "verify", "(", "observer", ",", "times", "(", "1", ")", ")", "on", "next", "(", "3", ")", ";", "verify", "(", "observer", ",", "times", "(", "1", ")", ")", "on", "complete", "(", ")", ";", "}" ]
[ "loads", "the", "cache", "result", ",", "computing", "it", "if", "needed", "by", "executing", "the", "query", "phase", "and", "otherwise", "deserializing", "the", "cached", "value", "into", "the", "{", "@", "link", "search", "context", "#", "query", "result", "(", ")", "context", "'", "s", "query", "result", "}", "the", "combination", "of", "load", "+", "compute", "allows", "to", "have", "a", "single", "load", "operation", "that", "will", "cause", "other", "requests", "with", "the", "same", "key", "to", "wait", "till", "its", "loaded", "an", "reuse", "the", "same", "cache" ]
[ "public", "void", "load", "into", "context", "(", "shard", "search", "request", "request", ",", "search", "context", "context", ",", "query", "phase", "query", "phase", ")", "throws", "exception", "{", "assert", "can", "cache", "(", "request", ",", "context", ")", ";", "final", "directory", "reader", "directory", "reader", "=", "context", "searcher", "(", ")", "get", "directory", "reader", "(", ")", ";", "boolean", "[", "]", "loaded", "from", "cache", "=", "new", "boolean", "[", "]", "{", "true", "}", ";", "bytes", "reference", "cache", "key", "=", "request", "cache", "key", "(", ")", ";", "bytes", "reference", "bytes", "reference", "=", "cache", "shard", "level", "result", "(", "context", "index", "shard", "(", ")", ",", "context", "get", "query", "shard", "context", "(", ")", "mapping", "cache", "key", "(", ")", ",", "directory", "reader", ",", "cache", "key", ",", "out", "-", ">", "{", "query", "phase", "execute", "(", "context", ")", ";", "context", "query", "result", "(", ")", "write", "to", "no", "id", "(", "out", ")", ";", "loaded", "from", "cache", "[", "0", "]", "=", "false", ";", "}", ")", ";", "if", "(", "loaded", "from", "cache", "[", "0", "]", ")", "{", "/", "/", "restore", "the", "cached", "query", "result", "into", "the", "context", "final", "query", "search", "result", "result", "=", "context", "query", "result", "(", ")", ";", "stream", "input", "in", "=", "new", "named", "writeable", "aware", "stream", "input", "(", "bytes", "reference", "stream", "input", "(", ")", ",", "named", "writeable", "registry", ")", ";", "result", "read", "from", "with", "id", "(", "context", "id", "(", ")", ",", "in", ")", ";", "result", "set", "search", "shard", "target", "(", "context", "shard", "target", "(", ")", ")", ";", "}", "else", "if", "(", "context", "query", "result", "(", ")", "search", "timed", "out", "(", ")", ")", "{", "/", "/", "we", "have", "to", "invalidate", "the", "cache", "entry", "if", "we", "cached", "a", "query", "result", "form", "a", "request", "that", "timed", "out", "/", "/", "we", "can", "'", "t", "really", "throw", "exceptions", "in", "the", "loading", "part", "to", "signal", "a", "timed", "out", "search", "to", "the", "outside", "world", "since", "if", "there", "are", "/", "/", "multiple", "requests", "that", "wait", "for", "the", "cache", "entry", "to", "be", "calculated", "they", "'", "d", "fail", "all", "with", "the", "same", "exception", "/", "/", "instead", "we", "all", "caching", "such", "a", "result", "for", "the", "time", "being", ",", "return", "the", "timed", "out", "result", "for", "all", "other", "searches", "with", "that", "cache", "/", "/", "key", "invalidate", "the", "result", "in", "the", "thread", "that", "caused", "the", "timeout", "this", "will", "end", "up", "to", "be", "simpler", "and", "eventually", "correct", "since", "/", "/", "running", "a", "search", "that", "times", "out", "concurrently", "will", "likely", "timeout", "again", "if", "it", "'", "s", "run", "while", "we", "have", "this", "`", "stale", "`", "result", "in", "the", "/", "/", "cache", "one", "other", "option", "is", "to", "not", "cache", "requests", "with", "a", "timeout", "at", "all", "indices", "request", "cache", "invalidate", "(", "new", "index", "shard", "cache", "entity", "(", "context", "index", "shard", "(", ")", ")", ",", "context", "get", "query", "shard", "context", "(", ")", "mapping", "cache", "key", "(", ")", ",", "directory", "reader", ",", "cache", "key", ")", ";", "if", "(", "logger", "is", "trace", "enabled", "(", ")", ")", "{", "logger", "trace", "(", "\"", "query", "timed", "out", ",", "invalidating", "cache", "entry", "for", "request", "on", "shard", "[", "{", "}", "]", ":", "\\", "n", "{", "}", "\"", ",", "request", "shard", "id", "(", ")", ",", "request", "source", "(", ")", ")", ";", "}", "}", "}" ]
[ "load", "the", "recent", "update", "alias", "information" ]
[ "list", "<", "network", "address", "alias", ">", "load", "last", "update", "(", "long", "time", "bucket", ")", ";" ]
[ "should", "this", "request", "wait", "for", "all", "found", "tasks", "to", "complete", "?" ]
[ "public", "list", "tasks", "request", "set", "wait", "for", "completion", "(", "boolean", "wait", "for", "completion", ")", "{", "this", "wait", "for", "completion", "=", "wait", "for", "completion", ";", "return", "this", ";", "}" ]
[ "perform", "additional", "checks", "on", "a", "resolved", "resource", "beyond", "checking", "whether", "the", "resources", "exists", "and", "is", "readable", "the", "default", "implementation", "also", "verifies", "the", "resource", "is", "either", "under", "the", "location", "relative", "to", "which", "it", "was", "found", "or", "is", "under", "one", "of", "the", "{", "@", "link", "#", "set", "allowed", "locations", "allowed", "locations", "}" ]
[ "protected", "boolean", "check", "resource", "(", "resource", "resource", ",", "resource", "location", ")", "throws", "i", "o", "exception", "{", "if", "(", "is", "resource", "under", "location", "(", "resource", ",", "location", ")", ")", "{", "return", "true", ";", "}", "resource", "[", "]", "allowed", "locations", "=", "get", "allowed", "locations", "(", ")", ";", "if", "(", "allowed", "locations", "!", "=", "null", ")", "{", "for", "(", "resource", "current", ":", "allowed", "locations", ")", "{", "if", "(", "is", "resource", "under", "location", "(", "resource", ",", "current", ")", ")", "{", "return", "true", ";", "}", "}", "}", "return", "false", ";", "}" ]
[ "prints", "the", "message", "to", "the", "console", "followed", "by", "a", "line", "feed" ]
[ "public", "void", "println", "(", "string", "message", ")", "{", "string", "decorated", "message", "=", "get", "script", "name", "(", ")", "+", "\"", ">", "\"", "+", "message", ";", "/", "/", "note", ":", "use", "a", "message", "object", "to", "facilitate", "script", "message", "log", "filtering", "msg", "info", "(", "ghidra", "script", "class", ",", "new", "script", "message", "(", "decorated", "message", ")", ")", ";", "if", "(", "is", "running", "headless", "(", ")", ")", "{", "return", ";", "}", "plugin", "tool", "tool", "=", "state", "get", "tool", "(", ")", ";", "if", "(", "tool", "=", "=", "null", ")", "{", "return", ";", "}", "console", "service", "console", "=", "tool", "get", "service", "(", "console", "service", "class", ")", ";", "if", "(", "console", "=", "=", "null", ")", "{", "return", ";", "}", "try", "{", "console", "add", "message", "(", "get", "script", "name", "(", ")", ",", "message", ")", ";", "}", "catch", "(", "exception", "e", ")", "{", "msg", "error", "(", "this", ",", "\"", "script", "message", ":", "\"", "+", "message", ",", "e", ")", ";", "}", "}" ]
[ "adds", "a", "media", "item", "at", "the", "given", "index", "of", "the", "playlist" ]
[ "void", "add", "media", "item", "(", "int", "index", ",", "media", "item", "media", "item", ")", ";" ]
[ "creates", "get", "api", "key", "request", "to", "retrieve", "api", "key", "information", "for", "the", "api", "keys", "owned", "by", "the", "current", "authenticated", "user" ]
[ "public", "static", "get", "api", "key", "request", "for", "owned", "api", "keys", "(", ")", "{", "return", "new", "get", "api", "key", "request", "(", "null", ",", "null", ",", "null", ",", "null", ",", "true", ")", ";", "}" ]
[ "get", "attribute", "string" ]
[ "public", "string", "get", "attribute", "string", "(", ")", "{", "return", "attribute", "string", ";", "}" ]
[ "saves", "all", "checked", "out", "changes" ]
[ "protected", "void", "save", "check", "out", "changes", "(", "list", "<", "domain", "file", ">", "changed", "list", ")", "throws", "cancelled", "exception", "{", "if", "(", "changed", "list", "size", "(", ")", ">", "0", ")", "{", "save", "data", "dialog", "dialog", "=", "new", "save", "data", "dialog", "(", "tool", ")", ";", "boolean", "cancelled", "=", "!", "dialog", "show", "dialog", "(", "changed", "list", ")", ";", "if", "(", "cancelled", ")", "{", "throw", "new", "cancelled", "exception", "(", ")", ";", "}", "}", "}" ]
[ "generalize", "the", "local", "variable", "frames", "of", "a", "block", "of", "instructions" ]
[ "private", "void", "generalize", "variables", "(", "int", "start", "offset", ",", "int", "end", "offset", ",", "boolean", "include", "after", "last", "instruction", ",", "traced", "variables", "generalized", "variables", ")", "{", "boolean", "first", "=", "true", ";", "int", "last", "index", "=", "-", "1", ";", "/", "/", "generalize", "the", "variables", "before", "each", "of", "the", "instructions", "in", "the", "block", "for", "(", "int", "index", "=", "start", "offset", ";", "index", "<", "end", "offset", ";", "index", "+", "+", ")", "{", "if", "(", "is", "traced", "(", "index", ")", ")", "{", "traced", "variables", "traced", "variables", "=", "variables", "before", "[", "index", "]", ";", "if", "(", "first", ")", "{", "/", "/", "initialize", "the", "variables", "with", "the", "first", "traced", "local", "/", "/", "variable", "frame", "generalized", "variables", "initialize", "(", "traced", "variables", ")", ";", "first", "=", "false", ";", "}", "else", "{", "/", "/", "generalize", "the", "variables", "with", "the", "traced", "local", "variable", "/", "/", "frame", "we", "can", "'", "t", "use", "the", "return", "value", ",", "because", "local", "/", "/", "generalization", "can", "be", "different", "a", "couple", "of", "times", ",", "/", "/", "with", "the", "global", "generalization", "being", "the", "same", "generalized", "variables", "generalize", "(", "traced", "variables", ",", "false", ")", ";", "}", "last", "index", "=", "index", ";", "}", "}", "/", "/", "generalize", "the", "variables", "after", "the", "last", "instruction", "in", "the", "block", ",", "/", "/", "if", "required", "if", "(", "include", "after", "last", "instruction", "&", "&", "last", "index", ">", "=", "0", ")", "{", "traced", "variables", "traced", "variables", "=", "variables", "after", "[", "last", "index", "]", ";", "if", "(", "first", ")", "{", "/", "/", "initialize", "the", "variables", "with", "the", "local", "variable", "frame", "generalized", "variables", "initialize", "(", "traced", "variables", ")", ";", "}", "else", "{", "/", "/", "generalize", "the", "variables", "with", "the", "local", "variable", "frame", "generalized", "variables", "generalize", "(", "traced", "variables", ",", "false", ")", ";", "}", "}", "/", "/", "just", "clear", "the", "variables", "if", "there", "aren", "'", "t", "any", "traced", "instructions", "/", "/", "in", "the", "block", "if", "(", "first", ")", "{", "generalized", "variables", "reset", "(", "generalized", "variables", "size", "(", ")", ")", ";", "}", "}" ]
[ "returns", "an", "rva", "to", "a", "null", "-", "terminated", "ascii", "string", "containing", "the", "imported", "dll", "'", "s", "name", "common", "examples", "are", "\"", "kernel32", "dll", "\"", "and", "\"", "user32", "dll", "\"" ]
[ "public", "int", "get", "name", "(", ")", "{", "return", "name", ";", "}" ]
[ "sets", "storage", "size", "for", "the", "specified", "key" ]
[ "public", "void", "set", "storage", "size", "(", "string", "name", ",", "double", "value", ",", "storage", "unit", "unit", ")", "{", "set", "(", "name", ",", "value", "+", "unit", "get", "short", "name", "(", ")", ")", ";", "}" ]
[ "restart", "the", "namenode", "optionally", "wait", "for", "the", "cluster", "to", "become", "active" ]
[ "public", "synchronized", "void", "restart", "name", "node", "(", "boolean", "wait", "active", ")", "throws", "i", "o", "exception", "{", "check", "single", "name", "node", "(", ")", ";", "restart", "name", "node", "(", "0", ",", "wait", "active", ")", ";", "}" ]
[ "returns", "{", "@", "link", "mode", "#", "exclusive", "}", "if", "this", "node", "is", "only", "available", "for", "those", "jobs", "that", "exclusively", "specifies", "this", "node", "as", "the", "assigned", "node" ]
[ "public", "abstract", "mode", "get", "mode", "(", ")", ";" ]
[ "gets", "the", "number", "of", "characters", "required", "to", "display", "a", "unit" ]
[ "public", "int", "get", "data", "unit", "symbol", "size", "(", ")", "{", "return", "symbol", "size", ";", "}" ]
[ "test", "behavior", "with", "overflow", "buckets", "(", "overflow", "buckets", "must", "be", "initialized", "correctly", "if", "the", "input", "is", "reopened", "again", ")" ]
[ "public", "void", "test", "overflow", "(", ")", "{", "int", "build", "size", "=", "1000", ";", "int", "probe", "size", "=", "1000", ";", "try", "{", "tuple", "generator", "bgen", "=", "new", "tuple", "generator", "(", "seed1", ",", "200", ",", "1024", ",", "key", "mode", "random", ",", "value", "mode", "fix", "length", ")", ";", "tuple", "generator", "pgen", "=", "new", "tuple", "generator", "(", "seed2", ",", "0", ",", "1024", ",", "key", "mode", "sorted", ",", "value", "mode", "fix", "length", ")", ";", "final", "tuple", "generator", "iterator", "build", "input", "=", "new", "tuple", "generator", "iterator", "(", "bgen", ",", "build", "size", ")", ";", "final", "tuple", "generator", "iterator", "probe", "input", "=", "new", "tuple", "generator", "iterator", "(", "pgen", ",", "probe", "size", ")", ";", "do", "test", "(", "build", "input", ",", "probe", "input", ",", "bgen", ",", "pgen", ")", ";", "}", "catch", "(", "exception", "e", ")", "{", "e", "print", "stack", "trace", "(", ")", ";", "assert", "fail", "(", "\"", "an", "exception", "occurred", "during", "the", "test", ":", "\"", "+", "e", "get", "message", "(", ")", ")", ";", "}", "}" ]
[ "returns", "the", "u", "r", "ls", "in", "the", "class", "path", "specified", "by", "the", "{", "@", "code", "java", "class", "path", "}", "{", "@", "linkplain", "system", "#", "get", "property", "system", "property", "}" ]
[ "static", "immutable", "list", "<", "url", ">", "parse", "java", "class", "path", "(", ")", "{", "immutable", "list", "builder", "<", "url", ">", "urls", "=", "immutable", "list", "builder", "(", ")", ";", "for", "(", "string", "entry", ":", "splitter", "on", "(", "path", "separator", "value", "(", ")", ")", "split", "(", "java", "class", "path", "value", "(", ")", ")", ")", "{", "try", "{", "try", "{", "urls", "add", "(", "new", "file", "(", "entry", ")", "to", "u", "r", "i", "(", ")", "to", "u", "r", "l", "(", ")", ")", ";", "}", "catch", "(", "security", "exception", "e", ")", "{", "/", "/", "file", "to", "u", "r", "i", "checks", "to", "see", "if", "the", "file", "is", "a", "directory", "urls", "add", "(", "new", "url", "(", "\"", "file", "\"", ",", "null", ",", "new", "file", "(", "entry", ")", "get", "absolute", "path", "(", ")", ")", ")", ";", "}", "}", "catch", "(", "malformed", "u", "r", "l", "exception", "e", ")", "{", "logger", "log", "(", "warning", ",", "\"", "malformed", "classpath", "entry", ":", "\"", "+", "entry", ",", "e", ")", ";", "}", "}", "return", "urls", "build", "(", ")", ";", "}" ]
[ "follow", "up", "the", "manifest" ]
[ "public", "static", "result", "post", "process", "manifests", "(", "file", "main", "manifest", ",", "map", "<", "string", ",", "file", ">", "lib", "manifest", "map", ",", "multimap", "<", "string", ",", "file", ">", "lib", "dependencies", "maps", ",", "file", "base", "bunfle", "info", "file", ",", "manifest", "options", "manifest", "options", ",", "boolean", "add", "multi", "dex", ",", "boolean", "is", "instant", "run", ",", "boolean", "debuggable", ",", "set", "<", "string", ">", "remote", "bundles", ",", "set", "<", "string", ">", "inside", "bundles", ",", "boolean", "push", "install", ")", "throws", "i", "o", "exception", ",", "document", "exception", "{", "result", "result", "=", "new", "result", "(", ")", ";", "file", "input", "file", "=", "new", "file", "(", "main", "manifest", "get", "parent", "file", "(", ")", ",", "\"", "android", "manifest", "-", "backup", "xml", "\"", ")", ";", "file", "utils", "delete", "quietly", "(", "input", "file", ")", ";", "file", "utils", "move", "file", "(", "main", "manifest", ",", "input", "file", ")", ";", "document", "document", "=", "xml", "helper", "read", "xml", "(", "input", "file", ")", ";", "if", "(", "null", "!", "=", "base", "bunfle", "info", "file", "&", "&", "base", "bunfle", "info", "file", "exists", "(", ")", ")", "{", "add", "application", "meta", "data", "(", "document", ",", "lib", "manifest", "map", ",", "base", "bunfle", "info", "file", ",", "manifest", "options", ",", "remote", "bundles", ",", "inside", "bundles", ")", ";", "}", "if", "(", "null", "!", "=", "manifest", "options", "&", "&", "manifest", "options", "is", "add", "atlas", "proxy", "components", "(", ")", ")", "{", "atlas", "proxy", "add", "atlas", "proxy", "clazz", "(", "document", ",", "manifest", "options", "get", "atlas", "proxy", "skip", "channels", "(", ")", ",", "result", ")", ";", "}", "add", "android", "label", "(", "document", ",", "push", "install", ")", ";", "if", "(", "null", "!", "=", "manifest", "options", "&", "&", "manifest", "options", "is", "add", "bundle", "location", "(", ")", ")", "{", "add", "bundle", "location", "to", "dest", "manifest", "(", "document", ",", "lib", "manifest", "map", ",", "lib", "dependencies", "maps", ",", "manifest", "options", ")", ";", "}", "if", "(", "null", "!", "=", "manifest", "options", "&", "&", "manifest", "options", "is", "replace", "application", "(", ")", ")", "{", "replace", "manifest", "application", "name", "(", "document", ")", ";", "}", "if", "(", "(", "null", "!", "=", "manifest", "options", "&", "&", "manifest", "options", "is", "add", "multi", "dex", "meta", "data", "(", ")", ")", "|", "|", "add", "multi", "dex", ")", "{", "add", "multi", "dex", "meta", "data", "(", "document", ")", ";", "}", "if", "(", "null", "!", "=", "manifest", "options", "&", "&", "manifest", "options", "is", "remove", "provider", "(", ")", ")", "{", "remove", "provider", "(", "document", ")", ";", "}", "if", "(", "is", "instant", "run", ")", "{", "single", "process", "(", "document", ",", "manifest", "file", "utils", "get", "application", "id", "(", "input", "file", ")", ")", ";", "}", "if", "(", "is", "instant", "run", "&", "&", "!", "debuggable", ")", "{", "disable", "debuggable", "(", "document", ")", ";", "}", "remove", "custom", "launches", "(", "document", ",", "manifest", "options", ")", ";", "update", "permission", "(", "document", ",", "manifest", "options", ")", ";", "remove", "comments", "(", "document", ")", ";", "xml", "helper", "save", "document", "(", "document", ",", "main", "manifest", ")", ";", "println", "permissions", "(", "document", ")", ";", "return", "result", ";", "}" ]
[ "returns", "the", "size", "of", "the", "view", "in", "the", "list", "where", "the", "resources", "will", "be", "displayed", "in", "pixels", "in", "the", "format", "[", "x", ",", "y", "]", ",", "or", "{", "@", "code", "null", "}", "if", "no", "size", "is", "currently", "available", "note", "-", "the", "dimensions", "returned", "here", "must", "precisely", "match", "those", "of", "the", "view", "in", "the", "list", "if", "this", "method", "returns", "{", "@", "code", "null", "}", ",", "then", "no", "request", "will", "be", "started", "for", "the", "given", "item" ]
[ "int", "[", "]", "get", "preload", "size", "(", "@", "non", "null", "t", "item", ",", "int", "adapter", "position", ",", "int", "per", "item", "position", ")", ";" ]
[ "returns", "a", "snapshot", "of", "the", "reservoir", "'", "s", "values" ]
[ "snapshot", "get", "snapshot", "(", ")", ";" ]
[ "test", "trigger", "watches", "in", "sparse", "case", "the", "output", "of", "this", "test", "is", "the", "time", "used", "to", "trigger", "those", "watches", "on", "all", "paths" ]
[ "public", "void", "test", "trigger", "sparse", "watch", "(", "trigger", "sparse", "watch", "state", "state", ")", "throws", "exception", "{", "for", "(", "string", "path", ":", "state", "paths", ")", "{", "state", "watch", "manager", "trigger", "watch", "(", "path", ",", "event", ")", ";", "}", "}" ]
[ "returns", "new", "media", "period", "info", "based", "on", "specified", "{", "@", "code", "media", "period", "info", "}", "but", "taking", "into", "account", "the", "current", "timeline", "this", "method", "must", "only", "be", "called", "if", "the", "period", "is", "still", "part", "of", "the", "current", "timeline" ]
[ "public", "media", "period", "info", "get", "updated", "media", "period", "info", "(", "timeline", "timeline", ",", "media", "period", "info", "info", ")", "{", "media", "period", "id", "id", "=", "info", "id", ";", "boolean", "is", "last", "in", "period", "=", "is", "last", "in", "period", "(", "id", ")", ";", "boolean", "is", "last", "in", "window", "=", "is", "last", "in", "window", "(", "timeline", ",", "id", ")", ";", "boolean", "is", "last", "in", "timeline", "=", "is", "last", "in", "timeline", "(", "timeline", ",", "id", ",", "is", "last", "in", "period", ")", ";", "timeline", "get", "period", "by", "uid", "(", "info", "id", "period", "uid", ",", "period", ")", ";", "long", "duration", "us", "=", "id", "is", "ad", "(", ")", "?", "period", "get", "ad", "duration", "us", "(", "id", "ad", "group", "index", ",", "id", "ad", "index", "in", "ad", "group", ")", ":", "(", "info", "end", "position", "us", "=", "=", "c", "time", "unset", "|", "|", "info", "end", "position", "us", "=", "=", "c", "time", "end", "of", "source", "?", "period", "get", "duration", "us", "(", ")", ":", "info", "end", "position", "us", ")", ";", "return", "new", "media", "period", "info", "(", "id", ",", "info", "start", "position", "us", ",", "info", "requested", "content", "position", "us", ",", "info", "end", "position", "us", ",", "duration", "us", ",", "is", "last", "in", "period", ",", "is", "last", "in", "window", ",", "is", "last", "in", "timeline", ")", ";", "}" ]
[ "whether", "it", "is", "probably", "safe", "to", "call", "all", "{", "@", "link", "update", "site", "#", "get", "data", "}", "without", "blocking" ]
[ "public", "boolean", "is", "site", "data", "ready", "(", ")", "{", "if", "(", "sites", "stream", "(", ")", "any", "match", "(", "update", "site", ":", ":", "has", "unparsed", "data", ")", ")", "{", "if", "(", "!", "site", "data", "loading", ")", "{", "site", "data", "loading", "=", "true", ";", "timer", "get", "(", ")", "submit", "(", "(", ")", "-", ">", "{", "sites", "for", "each", "(", "update", "site", ":", ":", "get", "data", ")", ";", "site", "data", "loading", "=", "false", ";", "}", ")", ";", "}", "return", "false", ";", "}", "else", "{", "return", "true", ";", "}", "}" ]
[ "gets", "account", "no" ]
[ "public", "int", "get", "account", "no", "(", ")", "{", "return", "account", "no", ";", "}" ]
[ "tests", "that", "all", "views", "in", "the", "hierarchy", "under", "the", "root", ",", "for", "which", "the", "path", "is", "visible", ",", "do", "not", "have", "text", "equal", "to", "the", "string", "matching", "the", "given", "resource", "id" ]
[ "public", "view", "tree", "assert", "does", "not", "have", "visible", "text", "(", "final", "int", "resource", "id", ")", "{", "return", "does", "not", "have", "visible", "text", "(", "runtime", "environment", "application", "get", "resources", "(", ")", "get", "string", "(", "resource", "id", ")", ")", ";", "}" ]
[ "returns", "the", "map", "of", "metadata", "keys", "and", "their", "corresponding", "data", "types", "that", "can", "be", "produced", "by", "this", "format", "for", "reading", "by", "default", ",", "this", "method", "returns", "an", "empty", "map", "metadata", "columns", "add", "additional", "columns", "to", "the", "table", "'", "s", "schema", "a", "decoding", "format", "is", "responsible", "to", "add", "requested", "metadata", "columns", "at", "the", "end", "of", "produced", "rows", "see", "{", "@", "link", "supports", "reading", "metadata", "}", "for", "more", "information", "note", ":", "this", "method", "is", "only", "used", "if", "the", "outer", "{", "@", "link", "dynamic", "table", "source", "}", "implements", "{", "@", "link", "supports", "reading", "metadata", "}", "and", "calls", "this", "method", "in", "{", "@", "link", "supports", "reading", "metadata", "#", "list", "readable", "metadata", "(", ")", "}" ]
[ "default", "map", "<", "string", ",", "data", "type", ">", "list", "readable", "metadata", "(", ")", "{", "return", "collections", "empty", "map", "(", ")", ";", "}" ]
[ "returns", "the", "accepted", "string", "aliases", "for", "this", "xcode", "version" ]
[ "public", "list", "<", "string", ">", "get", "aliases", "(", ")", "{", "return", "aliases", ";", "}" ]
[ "receive", "a", "message", "synchronously", "from", "the", "specified", "destination", ",", "but", "only", "wait", "up", "to", "a", "specified", "time", "for", "delivery", "this", "method", "should", "be", "used", "carefully", ",", "since", "it", "will", "block", "the", "thread", "until", "the", "message", "becomes", "available", "or", "until", "the", "timeout", "value", "is", "exceeded" ]
[ "message", "receive", "(", "string", "destination", "name", ")", "throws", "jms", "exception", ";" ]
[ "sets", "the", "width", "that", "the", "root", "{", "@", "link", "com", "facebook", "rendercore", "host", "}", "should", "take", "on", "the", "next", "measure", "pass", "and", "then", "requests", "a", "layout", "this", "should", "be", "called", "from", "animation", "-", "driving", "code", "on", "each", "frame", "to", "animate", "the", "size", "of", "the", "root", "{", "@", "link", "com", "facebook", "rendercore", "host", "}" ]
[ "void", "set", "animated", "width", "(", "int", "width", ")", ";" ]
[ "returns", "the", "value", "of", "the", "{", "@", "code", "sec", "-", "web", "socket", "-", "version", "}", "header" ]
[ "public", "string", "get", "sec", "web", "socket", "version", "(", ")", "{", "return", "get", "first", "(", "sec", "websocket", "version", ")", ";", "}", "/", "/", "single", "string", "methods" ]
[ "helper", "method", "to", "set", "username", "for", "the", "first", "http", "basic", "authentication" ]
[ "public", "void", "set", "username", "(", "string", "username", ")", "{", "for", "(", "authentication", "auth", ":", "authentications", "values", "(", ")", ")", "{", "if", "(", "auth", "instanceof", "http", "basic", "auth", ")", "{", "(", "(", "http", "basic", "auth", ")", "auth", ")", "set", "username", "(", "username", ")", ";", "return", ";", "}", "}", "throw", "new", "runtime", "exception", "(", "\"", "no", "http", "basic", "authentication", "configured", "!", "\"", ")", ";", "}" ]
[ "when", "system", "exit", ",", "this", "method", "will", "be", "called", "to", "close", "resources" ]
[ "public", "synchronized", "void", "close", "(", ")", "{", "/", "/", "the", "synchronized", "modifier", "avoids", "concurrent", "append", "and", "close", "operations", "if", "(", "this", "closed", ")", "return", ";", "log", "log", "debug", "(", "\"", "closing", "rocketmq", "log", "4j", "appender", "[", "\"", "+", "name", "+", "\"", "]", "\"", ")", ";", "this", "closed", "=", "true", ";", "try", "{", "producer", "instance", "get", "producer", "instance", "(", ")", "remove", "and", "close", "(", "this", "name", "server", "address", ",", "this", "producer", "group", ")", ";", "}", "catch", "(", "exception", "e", ")", "{", "log", "log", "error", "(", "\"", "closing", "rocketmq", "log", "4j", "appender", "[", "\"", "+", "name", "+", "\"", "]", "name", "server", "address", ":", "\"", "+", "name", "server", "address", "+", "\"", "group", ":", "\"", "+", "producer", "group", "+", "\"", "\"", "+", "e", "get", "message", "(", ")", ")", ";", "}", "/", "/", "help", "garbage", "collection", "producer", "=", "null", ";", "}" ]
[ "put", "serializable", "in", "cache" ]
[ "public", "static", "void", "put", "(", "@", "non", "null", "final", "string", "key", ",", "final", "serializable", "value", ",", "final", "int", "save", "time", ")", "{", "put", "(", "key", ",", "value", ",", "save", "time", ",", "get", "default", "cache", "disk", "utils", "(", ")", ")", ";", "}" ]
[ "adds", "a", "flag", "to", "the", "builder", "multiple", "times", ",", "once", "for", "each", "value", "in", "the", "given", "collection", "{", "@", "code", "null", "}", "values", "will", "be", "skipped", "if", "the", "collection", "is", "empty", ",", "nothing", "will", "be", "added", "the", "values", "will", "be", "added", "in", "the", "source", "collection", "'", "s", "iteration", "order", "ex", "if", "{", "@", "code", "flag", "}", "is", "{", "@", "code", "\"", "-", "0", "\"", "}", "and", "{", "@", "code", "values", "}", "contains", "the", "values", "{", "@", "code", "\"", "png", "\"", "}", ",", "{", "@", "code", "null", "}", ",", "and", "{", "@", "code", "\"", "gif", "\"", "}", ",", "then", "four", "words", "will", "be", "added", "to", "the", "final", "command", "line", ":", "{", "@", "code", "\"", "-", "0", "\"", ",", "\"", "png", "\"", ",", "\"", "-", "0", "\"", ",", "\"", "gif", "\"", "}" ]
[ "public", "aapt", "command", "builder", "add", "repeated", "(", "string", "flag", ",", "collection", "<", "string", ">", "values", ")", "{", "preconditions", "check", "not", "null", "(", "flag", ")", ";", "for", "(", "string", "value", ":", "values", ")", "{", "add", "(", "flag", ",", "value", ")", ";", "}", "return", "this", ";", "}" ]
[ "add", "a", "listener", "to", "receive", "events", "that", "{", "@", "link", "#", "hit", "(", "float", ",", "float", ",", "boolean", ")", "hit", "}", "this", "actor", "see", "{", "@", "link", "#", "fire", "(", "event", ")", "}" ]
[ "public", "boolean", "add", "listener", "(", "event", "listener", "listener", ")", "{", "if", "(", "listener", "=", "=", "null", ")", "throw", "new", "illegal", "argument", "exception", "(", "\"", "listener", "cannot", "be", "null", "\"", ")", ";", "if", "(", "!", "listeners", "contains", "(", "listener", ",", "true", ")", ")", "{", "listeners", "add", "(", "listener", ")", ";", "return", "true", ";", "}", "return", "false", ";", "}" ]
[ "reads", "a", "32", "-", "bit", "value", "at", "the", "address", "of", "<", "code", ">", "buf", "<", "code", ">" ]
[ "protected", "static", "long", "read", "d", "word", "(", "mem", "buffer", "buf", ")", "throws", "memory", "access", "exception", "{", "return", "buf", "get", "int", "(", "0", ")", ";", "}" ]
[ "this", "test", "makes", "the", "client", "does", "not", "renew", "its", "lease", "and", "also", "set", "the", "soft", "lease", "expiration", "period", "to", "be", "short", "1s", "thus", "triggering", "soft", "lease", "expiration", "to", "happen", "immediately", "by", "having", "another", "client", "trying", "to", "create", "the", "same", "file", "the", "test", "makes", "sure", "that", "the", "lease", "recovery", "completes" ]
[ "public", "void", "test", "soft", "lease", "recovery", "(", ")", "throws", "exception", "{", "map", "<", "string", ",", "string", "[", "]", ">", "u", "2g", "map", "=", "new", "hash", "map", "<", "string", ",", "string", "[", "]", ">", "(", "1", ")", ";", "u", "2g", "map", "put", "(", "fake", "username", ",", "new", "string", "[", "]", "{", "fake", "group", "}", ")", ";", "d", "f", "s", "test", "util", "update", "conf", "with", "fake", "group", "mapping", "(", "conf", ",", "u", "2g", "map", ")", ";", "long", "hardlimit", "=", "conf", "get", "long", "(", "d", "f", "s", "config", "keys", "dfs", "lease", "hardlimit", "key", ",", "d", "f", "s", "config", "keys", "dfs", "lease", "hardlimit", "default", ")", "*", "1000", ";", "/", "/", "reset", "default", "lease", "periods", "cluster", "set", "lease", "period", "(", "hdfs", "constants", "lease", "softlimit", "period", ",", "hardlimit", ")", ";", "/", "/", "create", "a", "file", "/", "/", "create", "a", "random", "file", "name", "string", "filestr", "=", "\"", "/", "foo", "\"", "+", "append", "test", "util", "next", "int", "(", ")", ";", "append", "test", "util", "log", "info", "(", "\"", "filestr", "=", "\"", "+", "filestr", ")", ";", "path", "filepath", "=", "new", "path", "(", "filestr", ")", ";", "f", "s", "data", "output", "stream", "stm", "=", "dfs", "create", "(", "filepath", ",", "true", ",", "buf", "size", ",", "replication", "num", ",", "block", "size", ")", ";", "assert", "true", "(", "dfs", "dfs", "exists", "(", "filestr", ")", ")", ";", "/", "/", "write", "random", "number", "of", "bytes", "into", "it", "int", "size", "=", "append", "test", "util", "next", "int", "(", "file", "size", ")", ";", "append", "test", "util", "log", "info", "(", "\"", "size", "=", "\"", "+", "size", ")", ";", "stm", "write", "(", "buffer", ",", "0", ",", "size", ")", ";", "/", "/", "hflush", "file", "append", "test", "util", "log", "info", "(", "\"", "hflush", "\"", ")", ";", "stm", "hflush", "(", ")", ";", "append", "test", "util", "log", "info", "(", "\"", "leasechecker", "interrupt", "and", "join", "(", ")", "\"", ")", ";", "dfs", "dfs", "get", "lease", "renewer", "(", ")", "interrupt", "and", "join", "(", ")", ";", "/", "/", "set", "the", "soft", "limit", "to", "be", "1", "second", "so", "that", "the", "/", "/", "namenode", "triggers", "lease", "recovery", "on", "next", "attempt", "to", "write", "-", "for", "-", "open", "cluster", "set", "lease", "period", "(", "short", "lease", "period", ",", "long", "lease", "period", ")", ";", "/", "/", "try", "to", "re", "-", "open", "the", "file", "before", "closing", "the", "previous", "handle", "this", "/", "/", "should", "fail", "but", "will", "trigger", "lease", "recovery", "{", "user", "group", "information", "ugi", "=", "user", "group", "information", "create", "user", "for", "testing", "(", "fake", "username", ",", "new", "string", "[", "]", "{", "fake", "group", "}", ")", ";", "file", "system", "dfs", "2", "=", "d", "f", "s", "test", "util", "get", "file", "system", "as", "(", "ugi", ",", "conf", ")", ";", "boolean", "done", "=", "false", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "10", "&", "&", "!", "done", ";", "i", "+", "+", ")", "{", "append", "test", "util", "log", "info", "(", "\"", "i", "=", "\"", "+", "i", ")", ";", "try", "{", "dfs", "2", "create", "(", "filepath", ",", "false", ",", "buf", "size", ",", "replication", "num", ",", "block", "size", ")", ";", "fail", "(", "\"", "creation", "of", "an", "existing", "file", "should", "never", "succeed", "\"", ")", ";", "}", "catch", "(", "file", "already", "exists", "exception", "ex", ")", "{", "done", "=", "true", ";", "}", "catch", "(", "already", "being", "created", "exception", "ex", ")", "{", "append", "test", "util", "log", "info", "(", "\"", "good", "!", "got", "\"", "+", "ex", "get", "message", "(", ")", ")", ";", "}", "catch", "(", "i", "o", "exception", "ioe", ")", "{", "append", "test", "util", "log", "warn", "(", "\"", "unexpected", "i", "o", "exception", "\"", ",", "ioe", ")", ";", "}", "if", "(", "!", "done", ")", "{", "append", "test", "util", "log", "info", "(", "\"", "sleep", "\"", "+", "5000", "+", "\"", "ms", "\"", ")", ";", "try", "{", "thread", "sleep", "(", "5000", ")", ";", "}", "catch", "(", "interrupted", "exception", "e", ")", "{", "}", "}", "}", "assert", "true", "(", "done", ")", ";", "}", "append", "test", "util", "log", "info", "(", "\"", "lease", "for", "file", "\"", "+", "filepath", "+", "\"", "is", "recovered", "\"", "+", "\"", "validating", "its", "contents", "now", "\"", ")", ";", "/", "/", "verify", "that", "file", "-", "size", "matches", "long", "file", "size", "=", "dfs", "get", "file", "status", "(", "filepath", ")", "get", "len", "(", ")", ";", "assert", "true", "(", "\"", "file", "should", "be", "\"", "+", "size", "+", "\"", "bytes", ",", "but", "is", "actually", "\"", "+", "\"", "found", "to", "be", "\"", "+", "file", "size", "+", "\"", "bytes", "\"", ",", "file", "size", "=", "=", "size", ")", ";", "/", "/", "verify", "data", "append", "test", "util", "log", "info", "(", "\"", "file", "size", "is", "good", "\"", "+", "\"", "now", "validating", "data", "and", "sizes", "from", "datanodes", "\"", ")", ";", "append", "test", "util", "check", "full", "file", "(", "dfs", ",", "filepath", ",", "size", ",", "buffer", ",", "filestr", ")", ";", "}" ]
[ "get", "float", "minimum", ":", "54", "3", "maximum", ":", "987", "6" ]
[ "public", "float", "get", "float", "(", ")", "{", "return", "float", ";", "}" ]
[ "helper", "method", "to", "pre", "-", "set", "the", "oauth", "access", "token", "of", "the", "first", "oauth", "found", "in", "the", "api", "authorizations", "(", "there", "should", "be", "only", "one", ")" ]
[ "public", "void", "set", "access", "token", "(", "string", "access", "token", ",", "long", "expires", "in", ")", "{", "for", "(", "request", "interceptor", "api", "authorization", ":", "api", "authorizations", "values", "(", ")", ")", "{", "if", "(", "api", "authorization", "instanceof", "o", "auth", ")", "{", "o", "auth", "oauth", "=", "(", "o", "auth", ")", "api", "authorization", ";", "oauth", "set", "access", "token", "(", "access", "token", ",", "expires", "in", ")", ";", "return", ";", "}", "}", "}" ]
[ "overwrites", "partition", "number", "and", "should", "only", "be", "used", "on", "compaction", "partition" ]
[ "public", "void", "set", "partition", "number", "(", "int", "number", ")", "{", "this", "partition", "number", "=", "number", ";", "}" ]
[ "return", "the", "configuration", "object", "wrapped", "by", "this", "bean" ]
[ "public", "configuration", "get", "configuration", "(", ")", "{", "assert", "state", "(", "this", "configuration", "!", "=", "null", ",", "\"", "no", "configuration", "available", "\"", ")", ";", "return", "this", "configuration", ";", "}" ]
[ "return", "the", "value", "of", "this", "summation" ]
[ "public", "double", "get", "value", "(", ")", "{", "return", "value", ";", "}" ]
[ "define", "a", "new", "bolt", "in", "this", "topology", "with", "the", "specified", "amount", "of", "parallelism" ]
[ "public", "bolt", "declarer", "set", "bolt", "(", "string", "id", ",", "i", "rich", "bolt", "bolt", ",", "number", "parallelism", "hint", ")", "{", "validate", "unused", "id", "(", "id", ")", ";", "init", "common", "(", "id", ",", "bolt", ",", "parallelism", "hint", ")", ";", "bolts", "put", "(", "id", ",", "bolt", ")", ";", "return", "new", "bolt", "getter", "(", "id", ")", ";", "}" ]
[ "remove", "a", "register", "parameter", "vs", "change", "the", "register", "on", "a", "register", "parameter" ]
[ "public", "void", "test", "remove", "vs", "change", "reg", "param", "(", ")", "throws", "exception", "{", "mtf", "initialize", "(", "\"", "diff", "test", "pgm", "1", "\"", ",", "new", "original", "program", "modifier", "listener", "(", ")", "{", "@", "override", "public", "void", "modify", "original", "(", "program", "d", "b", "program", ")", "{", "int", "tx", "id", "=", "program", "start", "transaction", "(", "\"", "modify", "original", "program", "\"", ")", ";", "boolean", "commit", "=", "false", ";", "try", "{", "function", "apples", "function", "=", "create", "external", "function", "(", "program", ",", "new", "string", "[", "]", "{", "\"", "user", "3", "2", "dll", "\"", ",", "\"", "apples", "\"", "}", ",", "addr", "(", "program", ",", "\"", "7", "7db", "1", "0", "2", "0", "\"", ")", ",", "new", "byte", "data", "type", "(", ")", ",", "source", "type", "user", "defined", ")", ";", "assert", "not", "null", "(", "apples", "function", ")", ";", "parameter", "parameter", "1", "=", "new", "parameter", "impl", "(", "\"", "p1", "\"", ",", "new", "d", "word", "data", "type", "(", ")", ",", "program", ")", ";", "parameter", "1", "set", "comment", "(", "\"", "test", "parameter", "comment", "\"", ")", ";", "apples", "function", "add", "parameter", "(", "parameter", "1", ",", "source", "type", "user", "defined", ")", ";", "function", "oranges", "function", "=", "create", "external", "function", "(", "program", ",", "new", "string", "[", "]", "{", "\"", "user", "3", "2", "dll", "\"", ",", "\"", "oranges", "\"", "}", ")", ";", "add", "parameter", "(", "oranges", "function", ",", "\"", "a1", "\"", ",", "source", "type", "user", "defined", ",", "new", "d", "word", "data", "type", "(", ")", ",", "\"", "test", "a1", "comment", "\"", ")", ";", "commit", "=", "true", ";", "}", "catch", "(", "exception", "e", ")", "{", "assert", "fail", "(", "e", "get", "message", "(", ")", ")", ";", "}", "finally", "{", "program", "end", "transaction", "(", "tx", "id", ",", "commit", ")", ";", "}", "}", "@", "override", "public", "void", "modify", "latest", "(", "program", "d", "b", "program", ")", "{", "int", "tx", "id", "=", "program", "start", "transaction", "(", "\"", "modify", "latest", "program", "\"", ")", ";", "boolean", "commit", "=", "false", ";", "try", "{", "program", "context", "context", "=", "program", "get", "program", "context", "(", ")", ";", "function", "func", ";", "func", "=", "get", "external", "function", "(", "program", ",", "new", "string", "[", "]", "{", "\"", "user", "3", "2", "dll", "\"", ",", "\"", "apples", "\"", "}", ")", ";", "func", "set", "custom", "variable", "storage", "(", "true", ")", ";", "func", "remove", "parameter", "(", "0", ")", ";", "func", "=", "get", "external", "function", "(", "program", ",", "new", "string", "[", "]", "{", "\"", "user", "3", "2", "dll", "\"", ",", "\"", "oranges", "\"", "}", ")", ";", "func", "set", "custom", "variable", "storage", "(", "true", ")", ";", "change", "to", "register", "parameter", "(", "func", ",", "0", ",", "context", "get", "register", "(", "\"", "r", "2", "\"", ")", ")", ";", "commit", "=", "true", ";", "}", "catch", "(", "exception", "e", ")", "{", "e", "print", "stack", "trace", "(", ")", ";", "assert", "fail", "(", "e", "get", "message", "(", ")", ")", ";", "}", "finally", "{", "program", "end", "transaction", "(", "tx", "id", ",", "commit", ")", ";", "}", "}", "@", "override", "public", "void", "modify", "private", "(", "program", "d", "b", "program", ")", "{", "int", "tx", "id", "=", "program", "start", "transaction", "(", "\"", "modify", "my", "program", "\"", ")", ";", "boolean", "commit", "=", "false", ";", "try", "{", "program", "context", "context", "=", "program", "get", "program", "context", "(", ")", ";", "function", "func", ";", "func", "=", "get", "external", "function", "(", "program", ",", "new", "string", "[", "]", "{", "\"", "user", "3", "2", "dll", "\"", ",", "\"", "apples", "\"", "}", ")", ";", "func", "set", "custom", "variable", "storage", "(", "true", ")", ";", "change", "to", "register", "parameter", "(", "func", ",", "0", ",", "context", "get", "register", "(", "\"", "r", "3", "\"", ")", ")", ";", "func", "=", "get", "external", "function", "(", "program", ",", "new", "string", "[", "]", "{", "\"", "user", "3", "2", "dll", "\"", ",", "\"", "oranges", "\"", "}", ")", ";", "func", "set", "custom", "variable", "storage", "(", "true", ")", ";", "func", "remove", "parameter", "(", "0", ")", ";", "commit", "=", "true", ";", "}", "catch", "(", "exception", "e", ")", "{", "e", "print", "stack", "trace", "(", ")", ";", "assert", "fail", "(", "e", "get", "message", "(", ")", ")", ";", "}", "finally", "{", "program", "end", "transaction", "(", "tx", "id", ",", "commit", ")", ";", "}", "}", "}", ")", ";", "execute", "merge", "(", "ask", "user", ")", ";", "choose", "radio", "button", "(", "checked", "out", "button", "name", ")", ";", "choose", "radio", "button", "(", "checked", "out", "button", "name", ")", ";", "wait", "for", "merge", "completion", "(", ")", ";", "program", "context", "context", "=", "result", "program", "get", "program", "context", "(", ")", ";", "register", "r", "3", "reg", "=", "context", "get", "register", "(", "\"", "r", "3", "\"", ")", ";", "function", "func", "=", "get", "external", "function", "(", "result", "program", ",", "new", "string", "[", "]", "{", "\"", "user", "3", "2", "dll", "\"", ",", "\"", "apples", "\"", "}", ")", ";", "parameter", "[", "]", "parameters", "=", "func", "get", "parameters", "(", ")", ";", "assert", "equals", "(", "1", ",", "parameters", "length", ")", ";", "assert", "equals", "(", "\"", "p1", "\"", ",", "parameters", "[", "0", "]", "get", "name", "(", ")", ")", ";", "assert", "equals", "(", "r", "3", "reg", ",", "parameters", "[", "0", "]", "get", "register", "(", ")", ")", ";", "assert", "true", "(", "new", "d", "word", "data", "type", "(", ")", "is", "equivalent", "(", "parameters", "[", "0", "]", "get", "data", "type", "(", ")", ")", ")", ";", "variable", "[", "]", "local", "variables", "=", "func", "get", "local", "variables", "(", ")", ";", "assert", "equals", "(", "0", ",", "local", "variables", "length", ")", ";", "func", "=", "get", "external", "function", "(", "result", "program", ",", "new", "string", "[", "]", "{", "\"", "user", "3", "2", "dll", "\"", ",", "\"", "oranges", "\"", "}", ")", ";", "parameters", "=", "func", "get", "parameters", "(", ")", ";", "assert", "equals", "(", "0", ",", "parameters", "length", ")", ";", "local", "variables", "=", "func", "get", "local", "variables", "(", ")", ";", "assert", "equals", "(", "0", ",", "local", "variables", "length", ")", ";", "}" ]
[ "get", "item", "size" ]
[ "protected", "abstract", "int", "get", "item", "size", "(", "t", "item", ")", ";" ]
[ "finds", "a", "tool", "on", "a", "node", "checks", "if", "the", "location", "of", "the", "tool", "is", "overridden", "for", "the", "given", "node", ",", "and", "if", "so", ",", "return", "the", "node", "-", "specific", "home", "directory", "also", "checks", "available", "{", "@", "link", "tool", "location", "translator", "}", "s", "otherwise", "returns", "{", "@", "code", "installation", "get", "home", "(", ")", "}", "this", "is", "the", "core", "logic", "behind", "{", "@", "link", "node", "specific", "#", "for", "node", "(", "node", ",", "task", "listener", ")", "}", "for", "{", "@", "link", "tool", "installation", "}", ",", "and", "meant", "to", "be", "used", "by", "the", "{", "@", "code", "for", "node", "}", "implementations" ]
[ "protected", "string", "translate", "for", "(", "node", "node", ",", "task", "listener", "log", ")", "throws", "i", "o", "exception", ",", "interrupted", "exception", "{", "return", "tool", "location", "node", "property", "get", "tool", "home", "(", "node", ",", "this", ",", "log", ")", ";", "}" ]
[ "returns", "the", "start", "position", "of", "the", "first", "occurrence", "of", "the", "specified", "{", "@", "code", "target", "}", "within", "{", "@", "code", "array", "}", ",", "or", "{", "@", "code", "-", "1", "}", "if", "there", "is", "no", "such", "occurrence", "more", "formally", ",", "returns", "the", "lowest", "index", "{", "@", "code", "i", "}", "such", "that", "{", "@", "code", "arrays", "copy", "of", "range", "(", "array", ",", "i", ",", "i", "+", "target", "length", ")", "}", "contains", "exactly", "the", "same", "elements", "as", "{", "@", "code", "target", "}" ]
[ "public", "static", "int", "index", "of", "(", "byte", "[", "]", "array", ",", "byte", "[", "]", "target", ")", "{", "check", "not", "null", "(", "array", ",", "\"", "array", "\"", ")", ";", "check", "not", "null", "(", "target", ",", "\"", "target", "\"", ")", ";", "if", "(", "target", "length", "=", "=", "0", ")", "{", "return", "0", ";", "}", "outer", ":", "for", "(", "int", "i", "=", "0", ";", "i", "<", "array", "length", "-", "target", "length", "+", "1", ";", "i", "+", "+", ")", "{", "for", "(", "int", "j", "=", "0", ";", "j", "<", "target", "length", ";", "j", "+", "+", ")", "{", "if", "(", "array", "[", "i", "+", "j", "]", "!", "=", "target", "[", "j", "]", ")", "{", "continue", "outer", ";", "}", "}", "return", "i", ";", "}", "return", "-", "1", ";", "}" ]
[ "return", "the", "token", "of", "the", "block" ]
[ "token", "<", "block", "token", "identifier", ">", "get", "block", "token", "(", ")", "{", "return", "access", "token", ";", "}" ]
[ "adds", "the", "item", "to", "this", "queue", "for", "concurrent", "processing" ]
[ "public", "void", "add", "(", "i", "item", ")", "{", "lock", "lock", "(", ")", ";", "try", "{", "queue", "add", "(", "item", ")", ";", "tracker", "items", "added", "(", "1", ")", ";", "fill", "open", "processing", "slots", "(", ")", ";", "}", "finally", "{", "lock", "unlock", "(", ")", ";", "}", "}" ]
[ "gets", "the", "current", "limit", "in", "the", "memory", "segment", "this", "value", "points", "to", "the", "byte", "one", "after", "the", "last", "valid", "byte", "in", "the", "memory", "segment" ]
[ "public", "int", "get", "current", "segment", "limit", "(", ")", "{", "return", "this", "limit", "in", "segment", ";", "}" ]
[ "get", "the", "index", "name" ]
[ "public", "string", "get", "index", "name", "(", ")", "{", "return", "index", "name", ";", "}" ]
[ "remove", "the", "legacy", "token", "present", "and", "generate", "a", "new", "one", "using", "the", "given", "secret" ]
[ "public", "synchronized", "void", "regenerate", "token", "from", "legacy", "(", "@", "non", "null", "secret", "new", "legacy", "api", "token", ")", "{", "delete", "all", "legacy", "and", "generate", "new", "one", "(", "new", "legacy", "api", "token", ",", "false", ")", ";", "}" ]
[ "cancels", "the", "group", "any", "tasks", "that", "haven", "'", "t", "yet", "started", "will", "never", "run" ]
[ "public", "void", "set", "cancelled", "(", ")", "{", "cancelled", "=", "true", ";", "}" ]
[ "frame", "scheduling", "delay", "to", "shift", "the", "target", "render", "time", "for", "a", "frame", "within", "the", "frame", "'", "s", "visible", "window", "if", "the", "value", "is", "set", "to", "0", ",", "the", "frame", "will", "be", "scheduled", "right", "at", "the", "beginning", "of", "the", "frame", "'", "s", "visible", "window" ]
[ "public", "void", "set", "frame", "scheduling", "delay", "ms", "(", "long", "frame", "scheduling", "delay", "ms", ")", "{", "m", "frame", "scheduling", "delay", "ms", "=", "frame", "scheduling", "delay", "ms", ";", "}" ]
[ "signals", "that", "transformation", "has", "yielded", "{", "@", "link", "#", "process", "(", ")", "}", "will", "be", "called", "again", "with", "the", "same", "input", "element" ]
[ "public", "static", "<", "t", ">", "transformation", "state", "<", "t", ">", "yield", "(", ")", "{", "return", "(", "transformation", "state", "<", "t", ">", ")", "yield", "state", ";", "}" ]