docstring_tokens
list
code_tokens
list
[ "finds", "or", "creates", "a", "interface", "methodref", "constant", "constant", "pool", "entry", "with", "the", "given", "class", "constant", "pool", "entry", "index", ",", "method", "name", ",", "and", "descriptor" ]
[ "public", "int", "add", "interface", "methodref", "constant", "(", "int", "class", "index", ",", "string", "name", ",", "string", "descriptor", ",", "clazz", "referenced", "class", ",", "member", "referenced", "member", ")", "{", "return", "add", "interface", "methodref", "constant", "(", "class", "index", ",", "add", "name", "and", "type", "constant", "(", "name", ",", "descriptor", ")", ",", "referenced", "class", ",", "referenced", "member", ")", ";", "}" ]
[ "test", "the", "property", "'", "map", "map", "of", "string", "'" ]
[ "public", "void", "map", "map", "of", "string", "test", "(", ")", "{", "/", "/", "todo", ":", "test", "map", "map", "of", "string", "}" ]
[ "create", "a", "configuration", "from", "an", "input", "stream", "error", "canibalized", "from", "<", "code", ">", "configuration", "load", "resource", "(", ")", "<", "code", ">" ]
[ "public", "static", "void", "load", "(", "configuration", "conf", ",", "input", "stream", "is", ")", "throws", "i", "o", "exception", "{", "conf", "add", "resource", "(", "is", ")", ";", "}" ]
[ "pet", "status", "in", "the", "store" ]
[ "public", "status", "enum", "get", "status", "(", ")", "{", "return", "status", ";", "}" ]
[ "manually", "adds", "a", "view", "as", "a", "child", "of", "this", "component", "host", "for", "the", "purposes", "of", "testing", "this", "should", "only", "be", "used", "for", "tests", "as", "this", "is", "not", "safe", "and", "will", "likely", "cause", "weird", "crashes", "if", "used", "in", "a", "production", "environment" ]
[ "public", "void", "add", "view", "for", "test", "(", "view", "view", ")", "{", "final", "layout", "params", "params", "=", "view", "get", "layout", "params", "(", ")", "=", "=", "null", "?", "generate", "default", "layout", "params", "(", ")", ":", "view", "get", "layout", "params", "(", ")", ";", "super", "add", "view", "(", "view", ",", "-", "1", ",", "params", ")", ";", "}" ]
[ "load", "account", "collection" ]
[ "public", "collection", "<", "?", "extends", "yubi", "key", "account", ">", "load", "(", ")", "{", "return", "registry", "get", "accounts", "(", ")", ";", "}" ]
[ "get", "name", "wrapped", "array" ]
[ "public", "list", "<", "integer", ">", "get", "name", "wrapped", "array", "(", ")", "{", "return", "name", "wrapped", "array", ";", "}" ]
[ "create", "and", "xml", "sax", "parse", "tree", "from", "an", "input", "xml", "string", "todo", ":", "this", "probably", "doesn", "'", "t", "belong", "here" ]
[ "static", "public", "xml", "pull", "parser", "string", "tree", "(", "string", "xml", ",", "error", "handler", "handler", ")", "throws", "pcode", "x", "m", "l", "exception", "{", "try", "{", "xml", "pull", "parser", "parser", "=", "xml", "pull", "parser", "factory", "create", "(", "xml", ",", "\"", "decompiler", "result", "parser", "\"", ",", "handler", ",", "false", ")", ";", "return", "parser", ";", "}", "catch", "(", "exception", "e", ")", "{", "throw", "new", "pcode", "x", "m", "l", "exception", "(", "\"", "xml", "parsing", "error", ":", "\"", "+", "e", "get", "message", "(", ")", ",", "e", ")", ";", "}", "}" ]
[ "test", "org", "apache", "hadoop", "mapred", "pipes", "application", "test", "a", "internal", "functions", ":", "message", "type", "register", "counter", ",", "increment", "counter", ",", "status", ",", "progress" ]
[ "public", "void", "test", "application", "(", ")", "throws", "throwable", "{", "job", "conf", "conf", "=", "new", "job", "conf", "(", ")", ";", "record", "reader", "<", "float", "writable", ",", "null", "writable", ">", "r", "reader", "=", "new", "reader", "(", ")", ";", "/", "/", "client", "for", "test", "file", "f", "command", "=", "get", "file", "command", "(", "\"", "org", "apache", "hadoop", "mapred", "pipes", "pipe", "application", "stub", "\"", ")", ";", "test", "task", "reporter", "reporter", "=", "new", "test", "task", "reporter", "(", ")", ";", "file", "[", "]", "psw", "=", "clean", "token", "password", "file", "(", ")", ";", "try", "{", "conf", "set", "(", "m", "r", "job", "config", "task", "attempt", "id", ",", "task", "name", ")", ";", "conf", "set", "(", "m", "r", "job", "config", "cache", "localfiles", ",", "f", "command", "get", "absolute", "path", "(", ")", ")", ";", "/", "/", "token", "for", "authorization", "token", "<", "a", "m", "r", "m", "token", "identifier", ">", "token", "=", "new", "token", "<", "a", "m", "r", "m", "token", "identifier", ">", "(", "\"", "user", "\"", "get", "bytes", "(", ")", ",", "\"", "password", "\"", "get", "bytes", "(", ")", ",", "new", "text", "(", "\"", "kind", "\"", ")", ",", "new", "text", "(", "\"", "service", "\"", ")", ")", ";", "token", "cache", "set", "job", "token", "(", "token", ",", "conf", "get", "credentials", "(", ")", ")", ";", "fake", "collector", "output", "=", "new", "fake", "collector", "(", "new", "counters", "counter", "(", ")", ",", "new", "progress", "(", ")", ")", ";", "file", "system", "fs", "=", "new", "raw", "local", "file", "system", "(", ")", ";", "fs", "initialize", "(", "fs", "constants", "local", "fs", "uri", ",", "conf", ")", ";", "writer", "<", "int", "writable", ",", "text", ">", "wr", "=", "new", "writer", "<", "int", "writable", ",", "text", ">", "(", "conf", ",", "fs", "create", "(", "new", "path", "(", "work", "space", "get", "absolute", "path", "(", ")", "+", "file", "separator", "+", "\"", "outfile", "\"", ")", ")", ",", "int", "writable", "class", ",", "text", "class", ",", "null", ",", "null", ",", "true", ")", ";", "output", "set", "writer", "(", "wr", ")", ";", "conf", "set", "(", "submitter", "preserve", "commandfile", ",", "\"", "true", "\"", ")", ";", "init", "std", "out", "(", "conf", ")", ";", "application", "<", "writable", "comparable", "<", "int", "writable", ">", ",", "writable", ",", "int", "writable", ",", "text", ">", "application", "=", "new", "application", "<", "writable", "comparable", "<", "int", "writable", ">", ",", "writable", ",", "int", "writable", ",", "text", ">", "(", "conf", ",", "r", "reader", ",", "output", ",", "reporter", ",", "int", "writable", "class", ",", "text", "class", ")", ";", "application", "get", "downlink", "(", ")", "flush", "(", ")", ";", "application", "get", "downlink", "(", ")", "map", "item", "(", "new", "int", "writable", "(", "3", ")", ",", "new", "text", "(", "\"", "txt", "\"", ")", ")", ";", "application", "get", "downlink", "(", ")", "flush", "(", ")", ";", "application", "wait", "for", "finish", "(", ")", ";", "wr", "close", "(", ")", ";", "/", "/", "test", "get", "downlink", "(", ")", "map", "item", "(", ")", ";", "string", "std", "out", "=", "read", "std", "out", "(", "conf", ")", ";", "assert", "true", "(", "std", "out", "contains", "(", "\"", "key", ":", "3", "\"", ")", ")", ";", "assert", "true", "(", "std", "out", "contains", "(", "\"", "value", ":", "txt", "\"", ")", ")", ";", "/", "/", "reporter", "test", "counter", ",", "and", "status", "should", "be", "sended", "/", "/", "test", "message", "type", "register", "counter", "and", "increment", "counter", "assert", "equals", "(", "1", "0", ",", "reporter", "get", "progress", "(", ")", ",", "0", "01", ")", ";", "assert", "not", "null", "(", "reporter", "get", "counter", "(", "\"", "group", "\"", ",", "\"", "name", "\"", ")", ")", ";", "/", "/", "test", "status", "message", "type", "status", "assert", "equals", "(", "reporter", "get", "status", "(", ")", ",", "\"", "progress", "\"", ")", ";", "std", "out", "=", "read", "file", "(", "new", "file", "(", "work", "space", "get", "absolute", "path", "(", ")", "+", "file", "separator", "+", "\"", "outfile", "\"", ")", ")", ";", "/", "/", "check", "message", "type", "progress", "assert", "equals", "(", "0", "5", "5f", ",", "r", "reader", "get", "progress", "(", ")", ",", "0", "001", ")", ";", "application", "get", "downlink", "(", ")", "close", "(", ")", ";", "/", "/", "test", "message", "type", "output", "entry", "<", "int", "writable", ",", "text", ">", "entry", "=", "output", "get", "collect", "(", ")", "entry", "set", "(", ")", "iterator", "(", ")", "next", "(", ")", ";", "assert", "equals", "(", "123", ",", "entry", "get", "key", "(", ")", "get", "(", ")", ")", ";", "assert", "equals", "(", "\"", "value", "\"", ",", "entry", "get", "value", "(", ")", "to", "string", "(", ")", ")", ";", "try", "{", "/", "/", "try", "to", "abort", "application", "abort", "(", "new", "throwable", "(", ")", ")", ";", "fail", "(", ")", ";", "}", "catch", "(", "i", "o", "exception", "e", ")", "{", "/", "/", "abort", "works", "?", "assert", "equals", "(", "\"", "pipe", "child", "exception", "\"", ",", "e", "get", "message", "(", ")", ")", ";", "}", "}", "finally", "{", "if", "(", "psw", "!", "=", "null", ")", "{", "/", "/", "remove", "password", "files", "for", "(", "file", "file", ":", "psw", ")", "{", "file", "delete", "(", ")", ";", "}", "}", "}", "}" ]
[ "configure", "the", "pipeline", "for", "a", "cleartext", "upgrade", "from", "http", "to", "http2", "0" ]
[ "private", "void", "configure", "clear", "text", "(", "socket", "channel", "ch", ")", "{", "final", "channel", "pipeline", "p", "=", "ch", "pipeline", "(", ")", ";", "final", "http", "server", "codec", "source", "codec", "=", "new", "http", "server", "codec", "(", ")", ";", "p", "add", "last", "(", "source", "codec", ")", ";", "p", "add", "last", "(", "new", "http", "server", "upgrade", "handler", "(", "source", "codec", ",", "upgrade", "codec", "factory", ")", ")", ";", "p", "add", "last", "(", "new", "simple", "channel", "inbound", "handler", "<", "http", "message", ">", "(", ")", "{", "@", "override", "protected", "void", "channel", "read", "0", "(", "channel", "handler", "context", "ctx", ",", "http", "message", "msg", ")", "throws", "exception", "{", "/", "/", "if", "this", "handler", "is", "hit", "then", "no", "upgrade", "has", "been", "attempted", "and", "the", "client", "is", "just", "talking", "http", "system", "err", "println", "(", "\"", "directly", "talking", ":", "\"", "+", "msg", "protocol", "version", "(", ")", "+", "\"", "(", "no", "upgrade", "was", "attempted", ")", "\"", ")", ";", "channel", "pipeline", "pipeline", "=", "ctx", "pipeline", "(", ")", ";", "pipeline", "add", "after", "(", "ctx", "name", "(", ")", ",", "null", ",", "new", "hello", "world", "http", "1", "handler", "(", "\"", "direct", "no", "upgrade", "attempted", "\"", ")", ")", ";", "pipeline", "replace", "(", "this", ",", "null", ",", "new", "http", "object", "aggregator", "(", "max", "http", "content", "length", ")", ")", ";", "ctx", "fire", "channel", "read", "(", "reference", "count", "util", "retain", "(", "msg", ")", ")", ";", "}", "}", ")", ";", "p", "add", "last", "(", "new", "user", "event", "logger", "(", ")", ")", ";", "}" ]
[ "creates", "a", "failed", "{", "@", "link", "call", "}", "from", "{", "@", "code", "failure", "}" ]
[ "public", "static", "<", "t", ">", "call", "<", "t", ">", "failure", "(", "i", "o", "exception", "failure", ")", "{", "/", "/", "todo", "delete", "this", "overload", "in", "retrofit", "3", "0", "return", "new", "fake", "call", "<", ">", "(", "null", ",", "failure", ")", ";", "}" ]
[ "returns", "the", "escaped", "name", "for", "a", "given", "relative", "path", "as", "a", "string", "this", "takes", "a", "short", "relative", "path", "and", "turns", "it", "into", "a", "string", "suitable", "for", "use", "as", "a", "filename", "invalid", "filename", "characters", "are", "escaped", "with", "an", "'", "'", "+", "a", "single", "character", "token" ]
[ "public", "static", "string", "escaped", "path", "(", "string", "path", ")", "{", "return", "path", "escaper", "escape", "(", "path", ")", ";", "}" ]
[ "clean", "the", "internal", "cache", "directory", ":", "datadatapackagecache" ]
[ "public", "static", "boolean", "clean", "internal", "cache", "(", ")", "{", "return", "utils", "bridge", "delete", "all", "in", "dir", "(", "utils", "get", "app", "(", ")", "get", "cache", "dir", "(", ")", ")", ";", "}" ]
[ "returns", "true", "if", "the", "edges", "in", "this", "network", "are", "directed", "directed", "edges", "connect", "a", "{", "@", "link", "endpoint", "pair", "#", "source", "(", ")", "source", "node", "}", "to", "a", "{", "@", "link", "endpoint", "pair", "#", "target", "(", ")", "target", "node", "}", ",", "while", "undirected", "edges", "connect", "a", "pair", "of", "nodes", "to", "each", "other" ]
[ "boolean", "is", "directed", "(", ")", ";" ]
[ "generate", "the", "actual", "value", "from", "the", "given", "key", "and", "value", "the", "default", "behavior", "is", "that", "the", "actual", "value", "is", "equal", "to", "the", "given", "value" ]
[ "protected", "v", "generate", "actual", "value", "(", "k", "key", ",", "v", "value", ")", "{", "return", "value", ";", "}" ]
[ "returns", "the", "mean", "time", "spent", "in", "a", "paused", "state", "per", "foreground", "playback", ",", "in", "milliseconds", ",", "or", "{", "@", "link", "c", "#", "time", "unset", "}", "if", "no", "playback", "has", "been", "in", "foreground" ]
[ "public", "long", "get", "mean", "paused", "time", "ms", "(", ")", "{", "return", "foreground", "playback", "count", "=", "=", "0", "?", "c", "time", "unset", ":", "get", "total", "paused", "time", "ms", "(", ")", "/", "foreground", "playback", "count", ";", "}" ]
[ "reads", "a", "template", "'", "s", "contents", "from", "the", "specified", "location" ]
[ "public", "string", "read", "template", "(", "string", "name", ")", "{", "if", "(", "name", "=", "=", "null", "|", "|", "name", "contains", "(", "\"", "\"", ")", ")", "{", "throw", "new", "illegal", "argument", "exception", "(", "\"", "template", "location", "must", "be", "constrained", "to", "template", "directory", "\"", ")", ";", "}", "try", "(", "reader", "reader", "=", "get", "template", "reader", "(", "name", ")", ")", "{", "if", "(", "reader", "=", "=", "null", ")", "{", "throw", "new", "runtime", "exception", "(", "\"", "no", "file", "found", "\"", ")", ";", "}", "try", "(", "scanner", "s", "=", "new", "scanner", "(", "reader", ")", "use", "delimiter", "(", "\"", "\\", "\\", "a", "\"", ")", ")", "{", "return", "s", "has", "next", "(", ")", "?", "s", "next", "(", ")", ":", "\"", "\"", ";", "}", "}", "catch", "(", "exception", "e", ")", "{", "logger", "error", "(", "\"", "{", "}", "\"", ",", "e", "get", "message", "(", ")", ",", "e", ")", ";", "}", "throw", "new", "runtime", "exception", "(", "\"", "can", "'", "t", "load", "template", "\"", "+", "name", ")", ";", "}", "@", "suppress", "warnings", "(", "{", "\"", "squid", ":", "s2095", "\"", ",", "\"", "java", ":", "s112", "\"", "}" ]
[ "sets", "the", "min", "width", "and", "min", "height", "to", "the", "specified", "value" ]
[ "public", "cell", "<", "t", ">", "min", "size", "(", "value", "size", ")", "{", "if", "(", "size", "=", "=", "null", ")", "throw", "new", "illegal", "argument", "exception", "(", "\"", "size", "cannot", "be", "null", "\"", ")", ";", "min", "width", "=", "size", ";", "min", "height", "=", "size", ";", "return", "this", ";", "}" ]
[ "use", "the", "specified", "domain", "and", "metric", "name", "templates", "to", "generate", "an", "html", "table", "documenting", "the", "metrics", "a", "separate", "table", "section", "will", "be", "generated", "for", "each", "of", "the", "m", "beans", "and", "the", "associated", "attributes", "the", "m", "bean", "names", "are", "lexicographically", "sorted", "to", "determine", "the", "order", "of", "these", "sections", "this", "order", "is", "therefore", "dependent", "upon", "the", "order", "of", "the", "tags", "in", "each", "{", "@", "link", "metric", "name", "template", "}" ]
[ "public", "static", "string", "to", "html", "table", "(", "string", "domain", ",", "iterable", "<", "metric", "name", "template", ">", "all", "metrics", ")", "{", "map", "<", "string", ",", "map", "<", "string", ",", "string", ">", ">", "beans", "and", "attributes", "=", "new", "tree", "map", "<", ">", "(", ")", ";", "try", "(", "metrics", "metrics", "=", "new", "metrics", "(", ")", ")", "{", "for", "(", "metric", "name", "template", "template", ":", "all", "metrics", ")", "{", "map", "<", "string", ",", "string", ">", "tags", "=", "new", "linked", "hash", "map", "<", ">", "(", ")", ";", "for", "(", "string", "s", ":", "template", "tags", "(", ")", ")", "{", "tags", "put", "(", "s", ",", "\"", "{", "\"", "+", "s", "+", "\"", "}", "\"", ")", ";", "}", "metric", "name", "metric", "name", "=", "metrics", "metric", "name", "(", "template", "name", "(", ")", ",", "template", "group", "(", ")", ",", "template", "description", "(", ")", ",", "tags", ")", ";", "string", "m", "bean", "name", "=", "jmx", "reporter", "get", "m", "bean", "name", "(", "domain", ",", "metric", "name", ")", ";", "if", "(", "!", "beans", "and", "attributes", "contains", "key", "(", "m", "bean", "name", ")", ")", "{", "beans", "and", "attributes", "put", "(", "m", "bean", "name", ",", "new", "tree", "map", "<", ">", "(", ")", ")", ";", "}", "map", "<", "string", ",", "string", ">", "attr", "and", "desc", "=", "beans", "and", "attributes", "get", "(", "m", "bean", "name", ")", ";", "if", "(", "!", "attr", "and", "desc", "contains", "key", "(", "template", "name", "(", ")", ")", ")", "{", "attr", "and", "desc", "put", "(", "template", "name", "(", ")", ",", "template", "description", "(", ")", ")", ";", "}", "else", "{", "throw", "new", "illegal", "argument", "exception", "(", "\"", "m", "bean", "'", "\"", "+", "m", "bean", "name", "+", "\"", "'", "attribute", "'", "\"", "+", "template", "name", "(", ")", "+", "\"", "'", "is", "defined", "twice", "\"", ")", ";", "}", "}", "}", "string", "builder", "b", "=", "new", "string", "builder", "(", ")", ";", "b", "append", "(", "\"", "<", "table", "class", "=", "\\", "\"", "data", "-", "table", "\\", "\"", ">", "<", "tbody", ">", "\\", "n", "\"", ")", ";", "for", "(", "entry", "<", "string", ",", "map", "<", "string", ",", "string", ">", ">", "e", ":", "beans", "and", "attributes", "entry", "set", "(", ")", ")", "{", "b", "append", "(", "\"", "<", "tr", ">", "\\", "n", "\"", ")", ";", "b", "append", "(", "\"", "<", "td", "colspan", "=", "3", "class", "=", "\\", "\"", "mbean", "name", "\\", "\"", "style", "=", "\\", "\"", "background", "-", "color", ":", "#", "ccc", ";", "font", "-", "weight", ":", "bold", ";", "\\", "\"", ">", "\"", ")", ";", "b", "append", "(", "e", "get", "key", "(", ")", ")", ";", "b", "append", "(", "\"", "<", "/", "td", ">", "\"", ")", ";", "b", "append", "(", "\"", "<", "/", "tr", ">", "\\", "n", "\"", ")", ";", "b", "append", "(", "\"", "<", "tr", ">", "\\", "n", "\"", ")", ";", "b", "append", "(", "\"", "<", "th", "style", "=", "\\", "\"", "width", ":", "9", "0px", "\\", "\"", ">", "<", "/", "th", ">", "\\", "n", "\"", ")", ";", "b", "append", "(", "\"", "<", "th", ">", "attribute", "name", "<", "/", "th", ">", "\\", "n", "\"", ")", ";", "b", "append", "(", "\"", "<", "th", ">", "description", "<", "/", "th", ">", "\\", "n", "\"", ")", ";", "b", "append", "(", "\"", "<", "/", "tr", ">", "\\", "n", "\"", ")", ";", "for", "(", "entry", "<", "string", ",", "string", ">", "e", "2", ":", "e", "get", "value", "(", ")", "entry", "set", "(", ")", ")", "{", "b", "append", "(", "\"", "<", "tr", ">", "\\", "n", "\"", ")", ";", "b", "append", "(", "\"", "<", "td", ">", "<", "/", "td", ">", "\"", ")", ";", "b", "append", "(", "\"", "<", "td", ">", "\"", ")", ";", "b", "append", "(", "e", "2", "get", "key", "(", ")", ")", ";", "b", "append", "(", "\"", "<", "/", "td", ">", "\"", ")", ";", "b", "append", "(", "\"", "<", "td", ">", "\"", ")", ";", "b", "append", "(", "e", "2", "get", "value", "(", ")", ")", ";", "b", "append", "(", "\"", "<", "/", "td", ">", "\"", ")", ";", "b", "append", "(", "\"", "<", "/", "tr", ">", "\\", "n", "\"", ")", ";", "}", "}", "b", "append", "(", "\"", "<", "/", "tbody", ">", "<", "/", "table", ">", "\"", ")", ";", "return", "b", "to", "string", "(", ")", ";", "}" ]
[ "set", "the", "corrupt", "state", "flag", "for", "this", "buffer", "manager", "this", "will", "cause", "any", "snapshot", "attempt", "to", "fail", "and", "cause", "most", "public", "access", "methods", "to", "throw", "an", "i", "o", "exception", "the", "caller", "should", "log", "this", "action", "and", "the", "reason", "for", "it" ]
[ "public", "void", "set", "corrupted", "state", "(", ")", "{", "corrupted", "state", "=", "true", ";", "}" ]
[ "{", "@", "inherit", "doc", "}" ]
[ "public", "final", "dalv", "insn", "with", "registers", "(", "register", "spec", "list", "registers", ")", "{", "return", "new", "code", "address", "(", "get", "position", "(", ")", ")", ";", "}" ]
[ "returns", "an", "array", "of", "the", "segments", "defined", "in", "this", "segment", "table" ]
[ "public", "segment", "[", "]", "get", "segments", "(", ")", "{", "return", "segments", ";", "}" ]
[ "prints", "message", "to", "the", "terminal", "at", "{", "@", "code", "verbosity", "}", "level", ",", "without", "a", "newline" ]
[ "private", "void", "print", "(", "verbosity", "verbosity", ",", "string", "msg", ",", "boolean", "is", "error", ")", "{", "if", "(", "is", "printable", "(", "verbosity", ")", ")", "{", "print", "writer", "writer", "=", "is", "error", "?", "get", "error", "writer", "(", ")", ":", "get", "writer", "(", ")", ";", "writer", "print", "(", "msg", ")", ";", "writer", "flush", "(", ")", ";", "}", "}" ]
[ "{", "@", "link", "data", "input", "stream", "}", "reads", "a", "value", "in", "big", "-", "endian", ",", "so", "convert", "it", "to", "the", "correct", "value", "on", "little", "-", "endian", "systems" ]
[ "private", "static", "int", "adjust", "(", "int", "i", ")", "{", "if", "(", "is", "little", "endian", ")", "return", "(", "i", "<", "<", "24", ")", "|", "(", "(", "i", "<", "<", "8", ")", "&", "0x", "0", "0", "f", "f", "0", "0", "0", "0", ")", "|", "(", "(", "i", ">", ">", "8", ")", "&", "0x", "0", "0", "0", "0", "f", "f", "0", "0", ")", "|", "(", "i", ">", ">", ">", "24", ")", ";", "else", "return", "i", ";", "}" ]
[ "shift", "operators", "with", "explicit", "cast" ]
[ "public", "void", "test", "shift", "operator", "(", ")", "{", "assert", "equals", "(", "(", "byte", ")", "10", ",", "exec", "(", "\"", "long", "x", "=", "5l", ";", "return", "(", "byte", ")", "(", "x", "<", "<", "1", ")", ";", "\"", ")", ")", ";", "assert", "equals", "(", "(", "short", ")", "10", ",", "exec", "(", "\"", "long", "x", "=", "5l", ";", "return", "(", "short", ")", "(", "x", "<", "<", "1", ")", ";", "\"", ")", ")", ";", "assert", "equals", "(", "(", "char", ")", "10", ",", "exec", "(", "\"", "long", "x", "=", "5l", ";", "return", "(", "char", ")", "(", "x", "<", "<", "1", ")", ";", "\"", ")", ")", ";", "assert", "equals", "(", "10", ",", "exec", "(", "\"", "long", "x", "=", "5l", ";", "return", "(", "int", ")", "(", "x", "<", "<", "1", ")", ";", "\"", ")", ")", ";", "assert", "equals", "(", "10f", ",", "exec", "(", "\"", "long", "x", "=", "5l", ";", "return", "(", "float", ")", "(", "x", "<", "<", "1", ")", ";", "\"", ")", ")", ";", "assert", "equals", "(", "10l", ",", "exec", "(", "\"", "long", "x", "=", "5l", ";", "return", "(", "long", ")", "(", "x", "<", "<", "1", ")", ";", "\"", ")", ")", ";", "assert", "equals", "(", "10d", ",", "exec", "(", "\"", "long", "x", "=", "5l", ";", "return", "(", "double", ")", "(", "x", "<", "<", "1", ")", ";", "\"", ")", ")", ";", "}" ]
[ "applies", "a", "supplemental", "hash", "function", "to", "a", "given", "hash", "code", ",", "which", "defends", "against", "poor", "quality", "hash", "functions" ]
[ "int", "spread", "(", "int", "x", ")", "{", "x", "=", "(", "(", "x", ">", ">", ">", "16", ")", "^", "x", ")", "*", "0x", "4", "5d", "9f", "3b", ";", "x", "=", "(", "(", "x", ">", ">", ">", "16", ")", "^", "x", ")", "*", "0x", "4", "5d", "9f", "3b", ";", "return", "(", "x", ">", ">", ">", "16", ")", "^", "x", ";", "}" ]
[ "sanity", "checking", "with", "many", "combinations", "of", "false", "positive", "rates", "and", "expected", "insertions" ]
[ "public", "void", "test", "basic", "(", ")", "{", "for", "(", "double", "fpr", "=", "0", "0000001", ";", "fpr", "<", "0", "1", ";", "fpr", "*", "=", "10", ")", "{", "for", "(", "int", "expected", "insertions", "=", "1", ";", "expected", "insertions", "<", "=", "10000", ";", "expected", "insertions", "*", "=", "10", ")", "{", "check", "sanity", "(", "bloom", "filter", "create", "(", "hash", "test", "utils", "bad", "funnel", ",", "expected", "insertions", ",", "fpr", ")", ")", ";", "}", "}", "}" ]
[ "reads", "len", "bytes", "in", "a", "loop" ]
[ "public", "static", "void", "read", "fully", "(", "input", "stream", "in", ",", "byte", "[", "]", "buf", ",", "int", "off", ",", "int", "len", ")", "throws", "i", "o", "exception", "{", "int", "to", "read", "=", "len", ";", "while", "(", "to", "read", ">", "0", ")", "{", "int", "ret", "=", "in", "read", "(", "buf", ",", "off", ",", "to", "read", ")", ";", "if", "(", "ret", "<", "0", ")", "{", "throw", "new", "i", "o", "exception", "(", "\"", "premature", "eof", "from", "input", "stream", "\"", ")", ";", "}", "to", "read", "-", "=", "ret", ";", "off", "+", "=", "ret", ";", "}", "}" ]
[ "returns", "a", "string", "obtained", "by", "decoding", "the", "specified", "range", "of", "{", "@", "code", "data", "}", "using", "the", "specified", "{", "@", "code", "charset", "name", "}", "an", "empty", "string", "is", "returned", "if", "the", "range", "is", "invalid" ]
[ "private", "static", "string", "decode", "string", "if", "valid", "(", "byte", "[", "]", "data", ",", "int", "from", ",", "int", "to", ",", "string", "charset", "name", ")", "throws", "unsupported", "encoding", "exception", "{", "if", "(", "to", "<", "=", "from", "|", "|", "to", ">", "data", "length", ")", "{", "return", "\"", "\"", ";", "}", "return", "new", "string", "(", "data", ",", "from", ",", "to", "-", "from", ",", "charset", "name", ")", ";", "}" ]
[ "converts", "internal", "method", "access", "flags", "into", "an", "external", "access", "description" ]
[ "public", "static", "string", "external", "method", "access", "flags", "(", "int", "access", "flags", ",", "string", "prefix", ")", "{", "if", "(", "access", "flags", "=", "=", "0", ")", "{", "return", "empty", "string", ";", "}", "string", "buffer", "string", "=", "new", "string", "buffer", "(", "50", ")", ";", "if", "(", "(", "access", "flags", "&", "class", "constants", "acc", "public", ")", "!", "=", "0", ")", "{", "string", "append", "(", "prefix", ")", "append", "(", "java", "constants", "acc", "public", ")", "append", "(", "'", "'", ")", ";", "}", "if", "(", "(", "access", "flags", "&", "class", "constants", "acc", "private", ")", "!", "=", "0", ")", "{", "string", "append", "(", "prefix", ")", "append", "(", "java", "constants", "acc", "private", ")", "append", "(", "'", "'", ")", ";", "}", "if", "(", "(", "access", "flags", "&", "class", "constants", "acc", "protected", ")", "!", "=", "0", ")", "{", "string", "append", "(", "prefix", ")", "append", "(", "java", "constants", "acc", "protected", ")", "append", "(", "'", "'", ")", ";", "}", "if", "(", "(", "access", "flags", "&", "class", "constants", "acc", "static", ")", "!", "=", "0", ")", "{", "string", "append", "(", "prefix", ")", "append", "(", "java", "constants", "acc", "static", ")", "append", "(", "'", "'", ")", ";", "}", "if", "(", "(", "access", "flags", "&", "class", "constants", "acc", "final", ")", "!", "=", "0", ")", "{", "string", "append", "(", "prefix", ")", "append", "(", "java", "constants", "acc", "final", ")", "append", "(", "'", "'", ")", ";", "}", "if", "(", "(", "access", "flags", "&", "class", "constants", "acc", "synchronized", ")", "!", "=", "0", ")", "{", "string", "append", "(", "prefix", ")", "append", "(", "java", "constants", "acc", "synchronized", ")", "append", "(", "'", "'", ")", ";", "}", "if", "(", "(", "access", "flags", "&", "class", "constants", "acc", "bridge", ")", "!", "=", "0", ")", "{", "string", "append", "(", "prefix", ")", "append", "(", "java", "constants", "acc", "bridge", ")", "append", "(", "'", "'", ")", ";", "}", "if", "(", "(", "access", "flags", "&", "class", "constants", "acc", "varargs", ")", "!", "=", "0", ")", "{", "string", "append", "(", "prefix", ")", "append", "(", "java", "constants", "acc", "varargs", ")", "append", "(", "'", "'", ")", ";", "}", "if", "(", "(", "access", "flags", "&", "class", "constants", "acc", "native", ")", "!", "=", "0", ")", "{", "string", "append", "(", "prefix", ")", "append", "(", "java", "constants", "acc", "native", ")", "append", "(", "'", "'", ")", ";", "}", "if", "(", "(", "access", "flags", "&", "class", "constants", "acc", "abstract", ")", "!", "=", "0", ")", "{", "string", "append", "(", "prefix", ")", "append", "(", "java", "constants", "acc", "abstract", ")", "append", "(", "'", "'", ")", ";", "}", "if", "(", "(", "access", "flags", "&", "class", "constants", "acc", "strict", ")", "!", "=", "0", ")", "{", "string", "append", "(", "prefix", ")", "append", "(", "java", "constants", "acc", "strict", ")", "append", "(", "'", "'", ")", ";", "}", "if", "(", "(", "access", "flags", "&", "class", "constants", "acc", "synthetic", ")", "!", "=", "0", ")", "{", "string", "append", "(", "prefix", ")", "append", "(", "java", "constants", "acc", "synthetic", ")", "append", "(", "'", "'", ")", ";", "}", "return", "string", "to", "string", "(", ")", ";", "}" ]
[ "check", "for", "job", "access" ]
[ "boolean", "check", "access", "(", "job", "job", ")", "{", "string", "remote", "user", "=", "request", "(", ")", "get", "remote", "user", "(", ")", ";", "user", "group", "information", "caller", "u", "g", "i", "=", "null", ";", "if", "(", "remote", "user", "!", "=", "null", ")", "{", "caller", "u", "g", "i", "=", "user", "group", "information", "create", "remote", "user", "(", "remote", "user", ")", ";", "}", "if", "(", "caller", "u", "g", "i", "!", "=", "null", "&", "&", "!", "job", "check", "access", "(", "caller", "u", "g", "i", ",", "job", "a", "c", "l", "view", "job", ")", ")", "{", "return", "false", ";", "}", "return", "true", ";", "}" ]
[ "the", "set", "of", "xml", "attributevalue", "pairs", "for", "this", "style", "<", "code", ">", "repeated", "aapt", "pb", "style", "entry", "entry", "=", "3", ";", "<", "code", ">" ]
[ "public", "int", "get", "entry", "count", "(", ")", "{", "return", "entry", "size", "(", ")", ";", "}" ]
[ "determine", "whether", "the", "connections", "in", "the", "pool", "are", "in", "read", "-", "only", "mode" ]
[ "public", "boolean", "is", "read", "only", "(", ")", "{", "return", "is", "read", "only", ";", "}" ]
[ "returns", "whether", "the", "timestamp", "data", "is", "small", "enough", "to", "be", "stored", "in", "a", "long", "of", "milliseconds" ]
[ "public", "static", "boolean", "is", "compact", "(", "int", "precision", ")", "{", "return", "precision", "<", "=", "3", ";", "}" ]
[ "get", "my", "number" ]
[ "public", "big", "decimal", "get", "my", "number", "(", ")", "{", "return", "my", "number", ";", "}" ]
[ "process", "a", "delete", "failure", "by", "removing", "from", "the", "metastore", "all", "entries", "which", "where", "deleted", ",", "as", "inferred", "from", "the", "delete", "failures", "exception", "and", "the", "original", "list", "of", "files", "to", "delete", "declares", "to", "have", "been", "deleted" ]
[ "public", "triple", "<", "list", "<", "path", ">", ",", "list", "<", "path", ">", ",", "list", "<", "pair", "<", "path", ",", "i", "o", "exception", ">", ">", ">", "process", "delete", "failure", "(", "final", "multi", "object", "delete", "exception", "delete", "exception", ",", "final", "list", "<", "delete", "objects", "request", "key", "version", ">", "keys", "to", "delete", ",", "final", "list", "<", "path", ">", "retained", "markers", ")", "{", "final", "metadata", "store", "metadata", "store", "=", "check", "not", "null", "(", "get", "store", "context", "(", ")", "get", "metadata", "store", "(", ")", ",", "\"", "context", "metadatastore", "\"", ")", ";", "final", "list", "<", "pair", "<", "path", ",", "i", "o", "exception", ">", ">", "failures", "=", "new", "array", "list", "<", ">", "(", ")", ";", "final", "pair", "<", "list", "<", "key", "path", ">", ",", "list", "<", "key", "path", ">", ">", "outcome", "=", "split", "undeleted", "keys", "(", "delete", "exception", ",", "keys", "to", "delete", ")", ";", "list", "<", "key", "path", ">", "deleted", "=", "outcome", "get", "right", "(", ")", ";", "list", "<", "path", ">", "deleted", "paths", "=", "new", "array", "list", "<", ">", "(", ")", ";", "list", "<", "key", "path", ">", "undeleted", "=", "outcome", "get", "left", "(", ")", ";", "retained", "markers", "clear", "(", ")", ";", "list", "<", "path", ">", "undeleted", "paths", "=", "to", "path", "list", "(", "(", "list", "<", "key", "path", ">", ")", "undeleted", ")", ";", "/", "/", "sort", "shorter", "keys", "first", ",", "/", "/", "so", "that", "if", "the", "left", "key", "is", "longer", "than", "the", "first", "it", "is", "considered", "/", "/", "smaller", ",", "so", "appears", "in", "the", "list", "first", "/", "/", "thus", "when", "we", "look", "for", "a", "dir", "being", "empty", ",", "we", "know", "it", "holds", "deleted", "sort", "(", "(", "l", ",", "r", ")", "-", ">", "r", "get", "key", "(", ")", "length", "(", ")", "-", "l", "get", "key", "(", ")", "length", "(", ")", ")", ";", "/", "/", "now", "go", "through", "and", "delete", "from", "s", "3", "guard", "all", "paths", "listed", "in", "/", "/", "the", "result", "which", "are", "either", "files", "or", "directories", "with", "/", "/", "no", "children", "deleted", "for", "each", "(", "kp", "-", ">", "{", "path", "path", "=", "kp", "get", "path", "(", ")", ";", "try", "{", "boolean", "to", "delete", "=", "true", ";", "if", "(", "kp", "is", "directory", "marker", "(", ")", ")", "{", "/", "/", "its", "a", "dir", "marker", ",", "which", "could", "be", "an", "empty", "dir", "/", "/", "(", "which", "is", "then", "tombstoned", ")", ",", "or", "a", "non", "-", "empty", "dir", ",", "which", "/", "/", "is", "not", "tombstoned", "/", "/", "for", "this", "to", "be", "handled", ",", "we", "have", "to", "have", "removed", "children", "/", "/", "from", "the", "store", "first", ",", "which", "relies", "on", "the", "sort", "path", "metadata", "pmentry", "=", "metadata", "store", "get", "(", "path", ",", "true", ")", ";", "if", "(", "pmentry", "!", "=", "null", "&", "&", "!", "pmentry", "is", "deleted", "(", ")", ")", "{", "to", "delete", "=", "pmentry", "get", "file", "status", "(", ")", "is", "empty", "directory", "(", ")", "=", "=", "tristate", "true", ";", "}", "else", "{", "to", "delete", "=", "false", ";", "}", "}", "if", "(", "to", "delete", ")", "{", "log", "debug", "(", "\"", "removing", "deleted", "object", "from", "s", "3", "guard", "store", "{", "}", "\"", ",", "path", ")", ";", "metadata", "store", "delete", "(", "path", ",", "operation", "state", ")", ";", "}", "else", "{", "log", "debug", "(", "\"", "retaining", "s", "3", "guard", "directory", "entry", "{", "}", "\"", ",", "path", ")", ";", "retained", "markers", "add", "(", "path", ")", ";", "}", "}", "catch", "(", "i", "o", "exception", "e", ")", "{", "/", "/", "trouble", ":", "we", "failed", "to", "delete", "the", "far", "end", "entry", "/", "/", "try", "with", "the", "next", "one", "/", "/", "if", "this", "is", "a", "big", "network", "failure", ",", "this", "is", "going", "to", "be", "noisy", "log", "warn", "(", "\"", "failed", "to", "update", "s", "3", "guard", "store", "with", "deletion", "of", "{", "}", "\"", ",", "path", ")", ";", "failures", "add", "(", "pair", "of", "(", "path", ",", "e", ")", ")", ";", "}", "/", "/", "irrespective", "of", "the", "s", "3", "guard", "outcome", ",", "it", "is", "declared", "as", "deleted", ",", "as", "/", "/", "it", "is", "no", "longer", "in", "the", "s3", "store", "deleted", "paths", "add", "(", "path", ")", ";", "}", ")", ";", "if", "(", "log", "is", "debug", "enabled", "(", ")", ")", "{", "undeleted", "for", "each", "(", "p", "-", ">", "log", "debug", "(", "\"", "deleted", "{", "}", "\"", ",", "p", ")", ")", ";", "}", "return", "triple", "of", "(", "undeleted", "paths", ",", "deleted", "paths", ",", "failures", ")", ";", "}" ]
[ "get", "the", "options", "for", "the", "given", "category", "name", ";", "if", "no", "options", "exist", "with", "the", "given", "name", ",", "then", "one", "is", "created" ]
[ "public", "tool", "options", "get", "options", "(", "string", "category", "name", ")", "{", "return", "options", "mgr", "get", "options", "(", "category", "name", ")", ";", "}" ]
[ "post", "fakeouterboolean", "test", "serialization", "of", "outer", "boolean", "types" ]
[ "response", "entity", "<", "boolean", ">", "fake", "outer", "boolean", "serialize", "(", "@", "api", "param", "(", "value", "=", "\"", "input", "boolean", "as", "post", "body", "\"", ")", "@", "valid", "@", "request", "body", "(", "required", "=", "false", ")", "boolean", "body", ")", ";" ]
[ "writes", "the", "current", "checksum", "to", "a", "buffer", "if", "reset", "is", "true", ",", "then", "resets", "the", "checksum" ]
[ "public", "int", "write", "value", "(", "byte", "[", "]", "buf", ",", "int", "offset", ",", "boolean", "reset", ")", "throws", "i", "o", "exception", "{", "if", "(", "type", "size", "<", "=", "0", ")", "{", "return", "0", ";", "}", "if", "(", "type", "size", "=", "=", "4", ")", "{", "int", "checksum", "=", "(", "int", ")", "summer", "get", "value", "(", ")", ";", "buf", "[", "offset", "+", "0", "]", "=", "(", "byte", ")", "(", "(", "checksum", ">", ">", ">", "24", ")", "&", "0xff", ")", ";", "buf", "[", "offset", "+", "1", "]", "=", "(", "byte", ")", "(", "(", "checksum", ">", ">", ">", "16", ")", "&", "0xff", ")", ";", "buf", "[", "offset", "+", "2", "]", "=", "(", "byte", ")", "(", "(", "checksum", ">", ">", ">", "8", ")", "&", "0xff", ")", ";", "buf", "[", "offset", "+", "3", "]", "=", "(", "byte", ")", "(", "checksum", "&", "0xff", ")", ";", "}", "else", "{", "throw", "new", "i", "o", "exception", "(", "\"", "unknown", "checksum", "\"", "+", "type", ")", ";", "}", "if", "(", "reset", ")", "{", "reset", "(", ")", ";", "}", "return", "type", "size", ";", "}" ]
[ "creates", "a", "{", "@", "link", "transaction", "}", "out", "of", "a", "datasource" ]
[ "transaction", "new", "transaction", "(", "data", "source", "data", "source", ",", "transaction", "isolation", "level", "level", ",", "boolean", "auto", "commit", ")", ";" ]
[ "returns", "schema", "with", "nullable", "true" ]
[ "private", "static", "schema", "nullable", "schema", "(", "schema", "schema", ")", "{", "return", "schema", "is", "nullable", "(", ")", "?", "schema", ":", "schema", "create", "union", "(", "schema", "builder", "builder", "(", ")", "null", "type", "(", ")", ",", "schema", ")", ";", "}" ]
[ "request", "new", "value", "from", "proxied", "rr" ]
[ "public", "u", "create", "value", "(", ")", "{", "return", "rr", "create", "value", "(", ")", ";", "}" ]
[ "sets", "the", "address", "to", "the", "target", "this", "is", "a", "required", "field" ]
[ "public", "builder", "set", "target", "address", "(", "inet", "socket", "address", "target", "address", ")", "{", "this", "target", "address", "=", "check", "not", "null", "(", "target", "address", ",", "\"", "target", "address", "\"", ")", ";", "return", "this", ";", "}" ]
[ "checks", "if", "the", "path", "is", "a", "directory", "and", "is", "supposed", "to", "be", "present", "in", "all", "subclusters" ]
[ "boolean", "is", "multi", "dest", "directory", "(", "string", "src", ")", "throws", "i", "o", "exception", "{", "try", "{", "if", "(", "rpc", "server", "is", "path", "all", "(", "src", ")", ")", "{", "list", "<", "remote", "location", ">", "locations", ";", "locations", "=", "rpc", "server", "get", "locations", "for", "path", "(", "src", ",", "false", ",", "false", ")", ";", "remote", "method", "method", "=", "new", "remote", "method", "(", "\"", "get", "file", "info", "\"", ",", "new", "class", "<", "?", ">", "[", "]", "{", "string", "class", "}", ",", "new", "remote", "param", "(", ")", ")", ";", "hdfs", "file", "status", "file", "status", "=", "rpc", "client", "invoke", "sequential", "(", "locations", ",", "method", ",", "hdfs", "file", "status", "class", ",", "null", ")", ";", "if", "(", "file", "status", "!", "=", "null", ")", "{", "return", "file", "status", "is", "directory", "(", ")", ";", "}", "else", "{", "log", "debug", "(", "\"", "the", "destination", "{", "}", "doesn", "'", "t", "exist", "\"", ",", "src", ")", ";", "}", "}", "}", "catch", "(", "unresolved", "path", "exception", "e", ")", "{", "log", "debug", "(", "\"", "the", "destination", "{", "}", "is", "a", "symlink", "\"", ",", "src", ")", ";", "}", "return", "false", ";", "}" ]
[ "get", "property", "class" ]
[ "public", "string", "get", "property", "class", "(", ")", "{", "return", "property", "class", ";", "}" ]
[ "return", "true", "if", "this", "parent", "pet", "object", "is", "equal", "to", "o" ]
[ "public", "boolean", "equals", "(", "object", "o", ")", "{", "if", "(", "this", "=", "=", "o", ")", "{", "return", "true", ";", "}", "if", "(", "o", "=", "=", "null", "|", "|", "get", "class", "(", ")", "!", "=", "o", "get", "class", "(", ")", ")", "{", "return", "false", ";", "}", "return", "super", "equals", "(", "o", ")", ";", "}" ]
[ "get", "prefix", "ns", "array" ]
[ "public", "list", "<", "integer", ">", "get", "prefix", "ns", "array", "(", ")", "{", "return", "prefix", "ns", "array", ";", "}" ]
[ "creates", "the", "first", "index", "with", "a", "name", "of", "the", "given", "{", "@", "code", "index", "pattern", "prefix", "}", "followed", "by", "\"", "-", "000001", "\"", ",", "if", "the", "index", "is", "missing", "adds", "an", "{", "@", "code", "alias", "}", "to", "that", "index", "if", "it", "was", "created", ",", "or", "to", "the", "index", "with", "the", "highest", "suffix", "if", "the", "index", "did", "not", "have", "to", "be", "created", "the", "listener", "is", "notified", "with", "a", "{", "@", "code", "boolean", "}", "that", "informs", "whether", "the", "index", "or", "the", "alias", "were", "created", "if", "the", "index", "is", "created", ",", "the", "listener", "is", "not", "called", "until", "the", "index", "is", "ready", "to", "use", "via", "the", "supplied", "alias", ",", "so", "that", "a", "method", "that", "receives", "a", "success", "response", "from", "this", "method", "can", "safely", "use", "the", "index", "immediately" ]
[ "public", "static", "void", "create", "index", "and", "alias", "if", "necessary", "(", "client", "client", ",", "cluster", "state", "cluster", "state", ",", "index", "name", "expression", "resolver", "resolver", ",", "string", "index", "pattern", "prefix", ",", "string", "alias", ",", "action", "listener", "<", "boolean", ">", "final", "listener", ")", "{", "final", "action", "listener", "<", "boolean", ">", "logging", "listener", "=", "action", "listener", "wrap", "(", "final", "listener", ":", ":", "on", "response", ",", "e", "-", ">", "{", "logger", "error", "(", "new", "parameterized", "message", "(", "\"", "failed", "to", "create", "alias", "and", "index", "with", "pattern", "[", "{", "}", "]", "and", "alias", "[", "{", "}", "]", "\"", ",", "index", "pattern", "prefix", ",", "alias", ")", ",", "e", ")", ";", "final", "listener", "on", "failure", "(", "e", ")", ";", "}", ")", ";", "/", "/", "if", "both", "the", "index", "and", "alias", "were", "successfully", "created", "then", "wait", "for", "the", "shards", "of", "the", "index", "that", "the", "alias", "points", "to", "be", "ready", "action", "listener", "<", "boolean", ">", "index", "created", "listener", "=", "action", "listener", "wrap", "(", "created", "-", ">", "{", "if", "(", "created", ")", "{", "wait", "for", "shards", "ready", "(", "client", ",", "alias", ",", "logging", "listener", ")", ";", "}", "else", "{", "logging", "listener", "on", "response", "(", "false", ")", ";", "}", "}", ",", "logging", "listener", ":", ":", "on", "failure", ")", ";", "string", "legacy", "index", "without", "suffix", "=", "index", "pattern", "prefix", ";", "string", "index", "pattern", "=", "index", "pattern", "prefix", "+", "\"", "*", "\"", ";", "/", "/", "the", "initial", "index", "name", "must", "be", "suitable", "for", "rollover", "functionality", "string", "first", "concrete", "index", "=", "index", "pattern", "prefix", "+", "\"", "-", "000001", "\"", ";", "string", "[", "]", "concrete", "index", "names", "=", "resolver", "concrete", "index", "names", "(", "cluster", "state", ",", "indices", "options", "lenient", "expand", "open", "(", ")", ",", "index", "pattern", ")", ";", "optional", "<", "index", "metadata", ">", "index", "pointed", "by", "current", "write", "alias", "=", "cluster", "state", "get", "metadata", "(", ")", "has", "alias", "(", "alias", ")", "?", "cluster", "state", "get", "metadata", "(", ")", "get", "indices", "lookup", "(", ")", "get", "(", "alias", ")", "get", "indices", "(", ")", "stream", "(", ")", "find", "first", "(", ")", ":", "optional", "empty", "(", ")", ";", "if", "(", "concrete", "index", "names", "length", "=", "=", "0", ")", "{", "if", "(", "index", "pointed", "by", "current", "write", "alias", "is", "empty", "(", ")", ")", "{", "create", "first", "concrete", "index", "(", "client", ",", "first", "concrete", "index", ",", "alias", ",", "true", ",", "index", "created", "listener", ")", ";", "return", ";", "}", "logger", "error", "(", "\"", "there", "are", "no", "indices", "matching", "'", "{", "}", "'", "pattern", "but", "'", "{", "}", "'", "alias", "points", "at", "[", "{", "}", "]", "this", "should", "never", "happen", "\"", ",", "index", "pattern", ",", "alias", ",", "index", "pointed", "by", "current", "write", "alias", "get", "(", ")", ")", ";", "}", "else", "if", "(", "concrete", "index", "names", "length", "=", "=", "1", "&", "&", "concrete", "index", "names", "[", "0", "]", "equals", "(", "legacy", "index", "without", "suffix", ")", ")", "{", "if", "(", "index", "pointed", "by", "current", "write", "alias", "is", "empty", "(", ")", ")", "{", "create", "first", "concrete", "index", "(", "client", ",", "first", "concrete", "index", ",", "alias", ",", "true", ",", "index", "created", "listener", ")", ";", "return", ";", "}", "if", "(", "index", "pointed", "by", "current", "write", "alias", "get", "(", ")", "get", "index", "(", ")", "get", "name", "(", ")", "equals", "(", "legacy", "index", "without", "suffix", ")", ")", "{", "create", "first", "concrete", "index", "(", "client", ",", "first", "concrete", "index", ",", "alias", ",", "false", ",", "action", "listener", "wrap", "(", "unused", "-", ">", "update", "write", "alias", "(", "client", ",", "alias", ",", "legacy", "index", "without", "suffix", ",", "first", "concrete", "index", ",", "index", "created", "listener", ")", ",", "logging", "listener", ":", ":", "on", "failure", ")", ")", ";", "return", ";", "}", "logger", "error", "(", "\"", "there", "is", "exactly", "one", "index", "(", "i", "e", "'", "{", "}", "'", ")", "matching", "'", "{", "}", "'", "pattern", "but", "'", "{", "}", "'", "alias", "points", "at", "[", "{", "}", "]", "this", "should", "never", "happen", "\"", ",", "legacy", "index", "without", "suffix", ",", "index", "pattern", ",", "alias", ",", "index", "pointed", "by", "current", "write", "alias", "get", "(", ")", ")", ";", "}", "else", "{", "if", "(", "index", "pointed", "by", "current", "write", "alias", "is", "empty", "(", ")", ")", "{", "assert", "concrete", "index", "names", "length", ">", "0", ";", "string", "latest", "concrete", "index", "name", "=", "arrays", "stream", "(", "concrete", "index", "names", ")", "max", "(", "index", "name", "comparator", ")", "get", "(", ")", ";", "update", "write", "alias", "(", "client", ",", "alias", ",", "null", ",", "latest", "concrete", "index", "name", ",", "logging", "listener", ")", ";", "return", ";", "}", "}", "/", "/", "if", "the", "alias", "is", "set", ",", "there", "is", "nothing", "more", "to", "do", "logging", "listener", "on", "response", "(", "false", ")", ";", "}" ]
[ "return", "true", "if", "this", "name", "object", "is", "equal", "to", "o" ]
[ "public", "boolean", "equals", "(", "object", "o", ")", "{", "if", "(", "this", "=", "=", "o", ")", "{", "return", "true", ";", "}", "if", "(", "o", "=", "=", "null", "|", "|", "get", "class", "(", ")", "!", "=", "o", "get", "class", "(", ")", ")", "{", "return", "false", ";", "}", "name", "name", "=", "(", "name", ")", "o", ";", "return", "objects", "equals", "(", "this", "name", ",", "name", "name", ")", "&", "&", "objects", "equals", "(", "this", "snake", "case", ",", "name", "snake", "case", ")", "&", "&", "objects", "equals", "(", "this", "property", ",", "name", "property", ")", "&", "&", "objects", "equals", "(", "this", "1", "2", "3number", ",", "name", "1", "2", "3number", ")", ";", "}" ]
[ "creates", "and", "sets", "hystrix", "thread", "pool", "properties" ]
[ "public", "static", "hystrix", "thread", "pool", "properties", "setter", "initialize", "thread", "pool", "properties", "(", "list", "<", "hystrix", "property", ">", "properties", ")", "throws", "illegal", "argument", "exception", "{", "return", "initialize", "properties", "(", "hystrix", "thread", "pool", "properties", "setter", "(", ")", ",", "properties", ",", "tp", "prop", "map", ",", "\"", "thread", "pool", "\"", ")", ";", "}" ]
[ "verify", "if", "the", "weather", "passes", "in", "the", "order", "of", "the", "{", "@", "link", "weather", "type", "}", "s" ]
[ "public", "void", "test", "time", "passes", "(", ")", "{", "final", "var", "observer", "=", "mock", "(", "race", "class", ")", ";", "final", "var", "weather", "=", "new", "g", "weather", "(", ")", ";", "weather", "add", "observer", "(", "observer", ")", ";", "final", "var", "in", "order", "=", "in", "order", "(", "observer", ")", ";", "final", "var", "weather", "types", "=", "weather", "type", "values", "(", ")", ";", "for", "(", "var", "i", "=", "1", ";", "i", "<", "20", ";", "i", "+", "+", ")", "{", "weather", "time", "passes", "(", ")", ";", "in", "order", "verify", "(", "observer", ")", "update", "(", "weather", ",", "weather", "types", "[", "i", "%", "weather", "types", "length", "]", ")", ";", "}", "verify", "no", "more", "interactions", "(", "observer", ")", ";", "}" ]
[ "test", "the", "property", "'", "string", "item", "'" ]
[ "public", "void", "string", "item", "test", "(", ")", "{", "/", "/", "todo", ":", "test", "string", "item", "}" ]
[ "set", "the", "text", "size", "of", "toast" ]
[ "public", "final", "toast", "utils", "set", "text", "size", "(", "final", "int", "text", "size", ")", "{", "m", "text", "size", "=", "text", "size", ";", "return", "this", ";", "}" ]
[ "copies", "the", "contents", "of", "src", "to", "dst", ",", "starting", "from", "src", "[", "src", "offset", "]", ",", "copying", "num", "elements", "elements", "the", "{", "@", "link", "buffer", "}", "instance", "'", "s", "{", "@", "link", "buffer", "#", "position", "(", ")", "}", "is", "used", "to", "define", "the", "offset", "into", "the", "buffer", "itself", "the", "position", "will", "stay", "the", "same", ",", "the", "limit", "will", "be", "set", "to", "position", "+", "num", "elements", "<", "b", ">", "the", "buffer", "must", "be", "a", "direct", "buffer", "with", "native", "byte", "order", "no", "error", "checking", "is", "performed", "<", "b", ">" ]
[ "public", "static", "void", "copy", "(", "double", "[", "]", "src", ",", "int", "src", "offset", ",", "buffer", "dst", ",", "int", "num", "elements", ")", "{", "dst", "limit", "(", "dst", "position", "(", ")", "+", "bytes", "to", "elements", "(", "dst", ",", "num", "elements", "<", "<", "3", ")", ")", ";", "copy", "jni", "(", "src", ",", "src", "offset", ",", "dst", ",", "position", "in", "bytes", "(", "dst", ")", ",", "num", "elements", "<", "<", "3", ")", ";", "}" ]
[ "extracts", "the", "execution", "plan", "(", "as", "json", ")", "from", "the", "given", "{", "@", "link", "plan", "}" ]
[ "public", "static", "string", "get", "execution", "plan", "as", "j", "s", "o", "n", "(", "plan", "plan", ")", "{", "check", "not", "null", "(", "plan", ")", ";", "execution", "plan", "j", "s", "o", "n", "generator", "json", "generator", "=", "get", "j", "s", "o", "n", "generator", "(", ")", ";", "return", "json", "generator", "get", "execution", "plan", "(", "plan", ")", ";", "}" ]
[ "generates", "the", "raw", "byte", "data", "of", "the", "end", "of", "central", "directory", "record", "for", "the", "specified", "{", "@", "link", "zip", "file", "data", "}" ]
[ "static", "byte", "[", "]", "create", "(", "zip", "file", "data", "file", ",", "boolean", "allow", "zip", "6", "4", ")", "throws", "zip", "exception", "{", "byte", "[", "]", "comment", "=", "file", "get", "bytes", "(", "file", "get", "comment", "(", ")", ")", ";", "byte", "[", "]", "buf", "=", "new", "byte", "[", "fixed", "data", "size", "+", "comment", "length", "]", ";", "/", "/", "allow", "writing", "of", "zip", "file", "without", "zip", "6", "4", "extensions", "for", "large", "archives", "as", "a", "special", "case", "/", "/", "since", "many", "reading", "implementations", "can", "handle", "this", "short", "num", "entries", "=", "(", "short", ")", "(", "file", "get", "num", "entries", "(", ")", ">", "0xffff", "&", "&", "allow", "zip", "6", "4", "?", "-", "1", ":", "file", "get", "num", "entries", "(", ")", ")", ";", "int", "cd", "size", "=", "(", "int", ")", "(", "file", "get", "central", "directory", "size", "(", ")", ">", "0xffffffff", "l", "&", "&", "allow", "zip", "6", "4", "?", "-", "1", ":", "file", "get", "central", "directory", "size", "(", ")", ")", ";", "int", "cd", "offset", "=", "(", "int", ")", "(", "file", "get", "central", "directory", "offset", "(", ")", ">", "0xffffffff", "l", "&", "&", "allow", "zip", "6", "4", "?", "-", "1", ":", "file", "get", "central", "directory", "offset", "(", ")", ")", ";", "zip", "util", "int", "to", "little", "endian", "(", "buf", ",", "signature", "offset", ",", "signature", ")", ";", "zip", "util", "short", "to", "little", "endian", "(", "buf", ",", "disk", "number", "offset", ",", "(", "short", ")", "0", ")", ";", "zip", "util", "short", "to", "little", "endian", "(", "buf", ",", "cd", "disk", "offset", ",", "(", "short", ")", "0", ")", ";", "zip", "util", "short", "to", "little", "endian", "(", "buf", ",", "disk", "entries", "offset", ",", "num", "entries", ")", ";", "zip", "util", "short", "to", "little", "endian", "(", "buf", ",", "total", "entries", "offset", ",", "num", "entries", ")", ";", "zip", "util", "int", "to", "little", "endian", "(", "buf", ",", "cd", "size", "offset", ",", "cd", "size", ")", ";", "zip", "util", "int", "to", "little", "endian", "(", "buf", ",", "cd", "offset", "offset", ",", "cd", "offset", ")", ";", "zip", "util", "short", "to", "little", "endian", "(", "buf", ",", "comment", "length", "offset", ",", "(", "short", ")", "comment", "length", ")", ";", "system", "arraycopy", "(", "comment", ",", "0", ",", "buf", ",", "fixed", "data", "size", ",", "comment", "length", ")", ";", "return", "buf", ";", "}" ]
[ "returns", "the", "header", "search", "paths", "provided", "by", "the", "protobuf", "library" ]
[ "public", "nested", "set", "<", "path", "fragment", ">", "get", "protobuf", "header", "search", "paths", "(", ")", "{", "return", "protobuf", "header", "search", "paths", ";", "}" ]
[ "not", "supported", "<", "b", ">", "you", "are", "attempting", "to", "create", "a", "map", "that", "may", "contain", "non", "-", "{", "@", "code", "comparable", "}", "keys", "<", "b", ">", "proper", "calls", "will", "resolve", "to", "the", "version", "in", "{", "@", "code", "immutable", "sorted", "map", "}", ",", "not", "this", "dummy", "version" ]
[ "public", "static", "<", "k", ",", "v", ">", "immutable", "sorted", "map", "<", "k", ",", "v", ">", "of", "(", "k", "k", "1", ",", "v", "v", "1", ",", "k", "k", "2", ",", "v", "v", "2", ",", "k", "k", "3", ",", "v", "v", "3", ",", "k", "k", "4", ",", "v", "v", "4", ",", "k", "k", "5", ",", "v", "v", "5", ")", "{", "throw", "new", "unsupported", "operation", "exception", "(", ")", ";", "}" ]
[ "add", "a", "new", "range", "with", "no", "upper", "bound" ]
[ "public", "range", "aggregation", "builder", "add", "unbounded", "from", "(", "string", "key", ",", "double", "from", ")", "{", "add", "range", "(", "new", "range", "(", "key", ",", "from", ",", "null", ")", ")", ";", "return", "this", ";", "}" ]
[ "post", "-", "process", "for", "{", "@", "link", "rest", "method", "metadata", "}", ",", "sub", "-", "type", "could", "override", "this", "method", "for", "further", "works" ]
[ "protected", "void", "post", "process", "rest", "method", "metadata", "(", "processing", "environment", "processing", "env", ",", "type", "element", "service", "type", ",", "executable", "element", "method", ",", "rest", "method", "metadata", "metadata", ")", "{", "}" ]
[ "test", "the", "property", "'", "client", "'" ]
[ "public", "void", "client", "test", "(", ")", "{", "/", "/", "todo", ":", "test", "client", "}" ]
[ "returns", "the", "size", "of", "this", "big", "array", "in", "bytes" ]
[ "public", "long", "size", "of", "(", ")", "{", "return", "instance", "size", "+", "size", "of", "size", "of", "(", "array", ")", "+", "(", "segments", "*", "size", "of", "segment", ")", ";", "}" ]
[ "returns", "whether", "the", "device", "is", "required", "to", "not", "be", "low", "on", "internal", "storage" ]
[ "public", "boolean", "is", "storage", "not", "low", "required", "(", ")", "{", "return", "(", "requirements", "&", "device", "storage", "not", "low", ")", "!", "=", "0", ";", "}" ]
[ "test", "the", "property", "'", "class", "name", "'" ]
[ "public", "void", "class", "name", "test", "(", ")", "{", "/", "/", "todo", ":", "test", "class", "name", "}" ]
[ "gets", "the", "blob", "stream" ]
[ "public", "cli", "stream", "blob", "get", "blob", "stream", "(", ")", "{", "return", "blob", "stream", ";", "}" ]
[ "returns", "an", "<", "b", ">", "immutable", "<", "b", ">", "list", "containing", "{", "@", "code", "elements", "}", "sorted", "by", "this", "ordering", "the", "input", "is", "not", "modified", "unlike", "{", "@", "link", "sets", "#", "new", "tree", "set", "(", "iterable", ")", "}", ",", "this", "method", "does", "not", "discard", "elements", "that", "are", "duplicates", "according", "to", "the", "comparator", "the", "sort", "performed", "is", "stable", ",", "meaning", "that", "such", "elements", "will", "appear", "in", "the", "returned", "list", "in", "the", "same", "order", "they", "appeared", "in", "{", "@", "code", "elements", "}", "<", "b", ">", "performance", "note", ":", "<", "b", ">", "according", "to", "our", "benchmarking", "on", "open", "jdk", "7", ",", "this", "method", "is", "the", "most", "efficient", "way", "to", "make", "a", "sorted", "copy", "of", "a", "collection" ]
[ "public", "<", "e", "extends", "t", ">", "immutable", "list", "<", "e", ">", "immutable", "sorted", "copy", "(", "iterable", "<", "e", ">", "elements", ")", "{", "return", "immutable", "list", "sorted", "copy", "of", "(", "this", ",", "elements", ")", ";", "}" ]
[ "set", "the", "event", "type" ]
[ "public", "void", "set", "event", "type", "(", "string", "event", "type", ")", "{", "this", "event", "type", "=", "event", "type", ";", "}" ]
[ "model", "tests", "for", "array", "of", "number", "only" ]
[ "public", "void", "test", "array", "of", "number", "only", "(", ")", "{", "/", "/", "todo", ":", "test", "array", "of", "number", "only", "}" ]
[ "clear", "cached", "data", "as", "a", "result", "of", "an", "item", "changed", "callback", "from", "the", "filesystem" ]
[ "public", "void", "item", "changed", "(", ")", "{", "synchronized", "(", "file", "system", ")", "{", "/", "/", "nulling", "the", "repository", "item", "deletes", "the", "cache", "information", "&", "gets", "new", "version", "info", "repository", "item", "=", "null", ";", "}", "}" ]
[ "returns", "a", "<", "a", "href", "=", "\"", "https", ":", "en", "wikipedia", "orgwiki", "hex", "dump", "\"", ">", "hex", "dump", "of", "the", "specified", "byte", "array", "'", "s", "sub", "-", "region" ]
[ "public", "static", "string", "hex", "dump", "(", "byte", "[", "]", "array", ",", "int", "from", "index", ",", "int", "length", ")", "{", "return", "hex", "util", "hex", "dump", "(", "array", ",", "from", "index", ",", "length", ")", ";", "}" ]
[ "optional", "method", "for", "giving", "flink", "'", "s", "type", "extraction", "system", "information", "about", "the", "mapping", "of", "a", "generic", "type", "parameter", "to", "the", "type", "information", "of", "a", "subtype", "this", "information", "is", "necessary", "in", "cases", "where", "type", "information", "should", "be", "deduced", "from", "an", "input", "type", "for", "instance", ",", "a", "method", "for", "a", "{", "@", "link", "tuple", "2", "}", "would", "look", "like", "this", ":", "<", "code", ">", "map", "m", "=", "new", "hash", "map", "(", ")", ";", "m", "put", "(", "\"", "t0", "\"", ",", "this", "get", "type", "at", "(", "0", ")", ")", ";", "m", "put", "(", "\"", "t1", "\"", ",", "this", "get", "type", "at", "(", "1", ")", ")", ";", "return", "m", ";", "<", "code", ">" ]
[ "public", "map", "<", "string", ",", "type", "information", "<", "?", ">", ">", "get", "generic", "parameters", "(", ")", "{", "/", "/", "return", "an", "empty", "map", "as", "the", "default", "implementation", "return", "collections", "empty", "map", "(", ")", ";", "}" ]
[ "unescapes", "the", "specified", "escaped", "csv", "field", ",", "if", "necessary", "according", "to", "<", "a", "href", "=", "\"", "https", ":", "tools", "ietf", "orghtmlrfc", "4", "1", "8", "0", "#", "section", "-", "2", "\"", ">", "rfc", "-", "4180" ]
[ "public", "static", "char", "sequence", "unescape", "csv", "(", "char", "sequence", "value", ")", "{", "int", "length", "=", "check", "not", "null", "(", "value", ",", "\"", "value", "\"", ")", "length", "(", ")", ";", "if", "(", "length", "=", "=", "0", ")", "{", "return", "value", ";", "}", "int", "last", "=", "length", "-", "1", ";", "boolean", "quoted", "=", "is", "double", "quote", "(", "value", "char", "at", "(", "0", ")", ")", "&", "&", "is", "double", "quote", "(", "value", "char", "at", "(", "last", ")", ")", "&", "&", "length", "!", "=", "1", ";", "if", "(", "!", "quoted", ")", "{", "validate", "csv", "format", "(", "value", ")", ";", "return", "value", ";", "}", "string", "builder", "unescaped", "=", "internal", "thread", "local", "map", "get", "(", ")", "string", "builder", "(", ")", ";", "for", "(", "int", "i", "=", "1", ";", "i", "<", "last", ";", "i", "+", "+", ")", "{", "char", "current", "=", "value", "char", "at", "(", "i", ")", ";", "if", "(", "current", "=", "=", "double", "quote", ")", "{", "if", "(", "is", "double", "quote", "(", "value", "char", "at", "(", "i", "+", "1", ")", ")", "&", "&", "(", "i", "+", "1", ")", "!", "=", "last", ")", "{", "/", "/", "followed", "by", "a", "double", "-", "quote", "but", "not", "the", "last", "character", "/", "/", "just", "skip", "the", "next", "double", "-", "quote", "i", "+", "+", ";", "}", "else", "{", "/", "/", "not", "followed", "by", "a", "double", "-", "quote", "or", "the", "following", "double", "-", "quote", "is", "the", "last", "character", "throw", "new", "invalid", "escaped", "csv", "field", "exception", "(", "value", ",", "i", ")", ";", "}", "}", "unescaped", "append", "(", "current", ")", ";", "}", "return", "unescaped", "to", "string", "(", ")", ";", "}" ]
[ "create", "document", "client" ]
[ "public", "document", "client", "create", "document", "client", "(", "final", "base", "cosmos", "db", "properties", "properties", ")", "{", "val", "policy", "=", "connection", "policy", "get", "default", "(", ")", ";", "var", "user", "agent", "=", "(", "policy", "get", "user", "agent", "suffix", "(", ")", "=", "=", "null", "?", "string", "utils", "empty", ":", "'", ";", "'", "+", "policy", "get", "user", "agent", "suffix", "(", ")", ")", "+", "'", ";", "'", "+", "user", "agent", "suffix", ";", "if", "(", "properties", "is", "allow", "telemetry", "(", ")", "&", "&", "get", "hash", "mac", "get", "hash", "mac", "(", ")", "!", "=", "null", ")", "{", "user", "agent", "+", "=", "'", ";", "'", "+", "get", "hash", "mac", "get", "hash", "mac", "(", ")", ";", "}", "policy", "set", "user", "agent", "suffix", "(", "user", "agent", ")", ";", "return", "new", "document", "client", "(", "properties", "get", "uri", "(", ")", ",", "properties", "get", "key", "(", ")", ",", "policy", ",", "consistency", "level", "value", "of", "(", "properties", "get", "consistency", "level", "(", ")", ")", ")", ";", "}" ]
[ "sets", "the", "<", "code", ">", "1", "2", "3number", "<", "code", ">", "property", "<", "br", ">", "n", "b", "<", "code", ">", "1", "2", "3number", "<", "code", ">", "is", "<", "b", ">", "read", "only", "<", "b", ">", ";", "client", "code", "should", "not", "call", "this", "method" ]
[ "public", "void", "set", "1", "2", "3number", "(", "integer", "1", "2", "3number", ")", "{", "this", "1", "2", "3number", "=", "1", "2", "3number", ";", "}" ]
[ "enter", "a", "parse", "tree", "produced", "by", "the", "{", "@", "code", "constant", "default", "}", "labeled", "alternative", "in", "{", "@", "link", "sql", "base", "parser", "#", "primary", "expression", "}" ]
[ "void", "enter", "constant", "default", "(", "sql", "base", "parser", "constant", "default", "context", "ctx", ")", ";" ]
[ "encode", "attribute", "string" ]
[ "static", "string", "encode", "attribute", "(", "final", "string", "s", ")", "{", "return", "encoded", "attribute", "prefix", "+", "new", "string", "(", "hex", "encode", "hex", "(", "s", "get", "bytes", "(", "standard", "charsets", "utf", "8", ")", ")", ")", ";", "}" ]
[ "the", "default", "implementation", "inherited", "is", "based", "on", "iteration", "and", "removal", "of", "each", "element", "which", "can", "be", "overkill", "that", "'", "s", "why", "we", "forward", "this", "call", "directly", "to", "the", "backing", "list" ]
[ "public", "void", "clear", "(", ")", "{", "from", "list", "clear", "(", ")", ";", "}" ]
[ "checks", "that", "b", "l", "o", "bs", "for", "the", "given", "<", "tt", ">", "job", "id", "<", "tt", ">", "are", "cleaned", "up", "eventually", "(", "after", "calling", "{", "@", "link", "permanent", "blob", "cache", "#", "release", "job", "(", "job", "i", "d", ")", "}", ",", "which", "is", "not", "done", "by", "this", "method", "!", ")", "(", "waits", "at", "most", "3", "0s", ")" ]
[ "static", "void", "verify", "job", "cleanup", "(", "permanent", "blob", "cache", "cache", ",", "job", "i", "d", "job", "id", ",", "list", "<", "?", "extends", "blob", "key", ">", "keys", ")", "throws", "interrupted", "exception", ",", "i", "o", "exception", "{", "/", "/", "because", "we", "cannot", "guarantee", "that", "there", "are", "not", "thread", "races", "in", "the", "build", "system", ",", "we", "/", "/", "loop", "for", "a", "certain", "while", "until", "the", "references", "disappear", "{", "long", "deadline", "=", "system", "current", "time", "millis", "(", ")", "+", "30", "000l", ";", "do", "{", "thread", "sleep", "(", "100", ")", ";", "}", "while", "(", "check", "files", "exist", "(", "job", "id", ",", "keys", ",", "cache", ",", "false", ")", "!", "=", "0", "&", "&", "system", "current", "time", "millis", "(", ")", "<", "deadline", ")", ";", "}", "/", "/", "the", "blob", "cache", "should", "no", "longer", "contain", "the", "files", "/", "/", "this", "fails", "if", "we", "exited", "via", "a", "timeout", "check", "file", "count", "for", "job", "(", "0", ",", "job", "id", ",", "cache", ")", ";", "}" ]
[ "sets", "the", "{", "@", "link", "progress", "update", "listener", "}" ]
[ "public", "void", "set", "progress", "update", "listener", "(", "@", "nullable", "progress", "update", "listener", "listener", ")", "{", "this", "progress", "update", "listener", "=", "listener", ";", "}" ]
[ "map", "the", "route", "for", "http", "post", "requests" ]
[ "public", "static", "void", "post", "(", "string", "path", ",", "string", "accept", "type", ",", "route", "route", ",", "response", "transformer", "transformer", ")", "{", "get", "instance", "(", ")", "post", "(", "path", ",", "accept", "type", ",", "route", ",", "transformer", ")", ";", "}" ]
[ "whether", "the", "specified", "{", "@", "link", "codec", "capabilities", "}", "{", "@", "code", "feature", "}", "is", "required" ]
[ "boolean", "is", "feature", "required", "(", "string", "feature", ",", "string", "mime", "type", ",", "codec", "capabilities", "capabilities", ")", ";" ]
[ "add", "the", "given", "header", "value", "(", "s", ")", "under", "the", "given", "name" ]
[ "builder", "<", "t", ">", "header", "(", "string", "header", "name", ",", "string", "header", "values", ")", ";" ]
[ "returns", "the", "applier", "for", "this", "type", "that", "needs", "to", "be", "called", "when", "the", "data", "type", "is", "processed", "in", "dependency", "order", "this", "will", "usually", "return", "\"", "this", ",", "\"", "except", "in", "cases", "where", "there", "can", "be", "forward", "references", "and", "definition", "appliers", "for", "the", "same", "type" ]
[ "ms", "type", "applier", "get", "dependency", "applier", "(", ")", "{", "return", "this", ";", "}" ]
[ "adds", "the", "{", "@", "code", "runnable", "}", "and", "accompanying", "{", "@", "code", "executor", "}", "to", "the", "list", "of", "listeners", "to", "execute", "if", "execution", "has", "already", "begun", ",", "the", "listener", "is", "executed", "immediately", "when", "selecting", "an", "executor", ",", "note", "that", "{", "@", "code", "direct", "executor", "}", "is", "dangerous", "in", "some", "cases", "see", "the", "discussion", "in", "the", "{", "@", "link", "listenable", "future", "#", "add", "listener", "listenable", "future", "add", "listener", "}", "documentation" ]
[ "public", "void", "add", "(", "runnable", "runnable", ",", "executor", "executor", ")", "{", "/", "/", "fail", "fast", "on", "a", "null", "we", "throw", "npe", "here", "because", "the", "contract", "of", "executor", "states", "that", "it", "throws", "/", "/", "npe", "on", "null", "listener", ",", "so", "we", "propagate", "that", "contract", "up", "into", "the", "add", "method", "as", "well", "check", "not", "null", "(", "runnable", ",", "\"", "runnable", "was", "null", "\"", ")", ";", "check", "not", "null", "(", "executor", ",", "\"", "executor", "was", "null", "\"", ")", ";", "/", "/", "lock", "while", "we", "check", "state", "we", "must", "maintain", "the", "lock", "while", "adding", "the", "new", "pair", "so", "that", "/", "/", "another", "thread", "can", "'", "t", "run", "the", "list", "out", "from", "under", "us", "we", "only", "add", "to", "the", "list", "if", "we", "have", "not", "/", "/", "yet", "started", "execution", "synchronized", "(", "this", ")", "{", "if", "(", "!", "executed", ")", "{", "runnables", "=", "new", "runnable", "executor", "pair", "(", "runnable", ",", "executor", ",", "runnables", ")", ";", "return", ";", "}", "}", "/", "/", "execute", "the", "runnable", "immediately", "because", "of", "scheduling", "this", "may", "end", "up", "getting", "called", "before", "/", "/", "some", "of", "the", "previously", "added", "runnables", ",", "but", "we", "'", "re", "ok", "with", "that", "if", "we", "want", "to", "change", "the", "/", "/", "contract", "to", "guarantee", "ordering", "among", "runnables", "we", "'", "d", "have", "to", "modify", "the", "logic", "here", "to", "allow", "/", "/", "it", "execute", "listener", "(", "runnable", ",", "executor", ")", ";", "}" ]
[ "interface", "method", "called", "to", "process", "a", "plugin", "event" ]
[ "public", "void", "process", "event", "(", "plugin", "event", "event", ")", "{", "if", "(", "event", "instanceof", "program", "closed", "plugin", "event", ")", "{", "program", "program", "=", "(", "(", "program", "closed", "plugin", "event", ")", "event", ")", "get", "program", "(", ")", ";", "program", "closed", "(", "program", ")", ";", "return", ";", "}", "if", "(", "event", "instanceof", "program", "activated", "plugin", "event", ")", "{", "if", "(", "current", "program", "!", "=", "null", ")", "{", "current", "program", "remove", "listener", "(", "this", ")", ";", "}", "program", "activated", "plugin", "event", "evt", "=", "(", "program", "activated", "plugin", "event", ")", "event", ";", "clear", "markers", "(", "current", "program", ")", ";", "/", "/", "do", "this", "just", "before", "changing", "the", "program", "current", "program", "=", "evt", "get", "active", "program", "(", ")", ";", "if", "(", "current", "program", "!", "=", "null", ")", "{", "current", "program", "add", "listener", "(", "this", ")", ";", "current", "view", "=", "current", "program", "get", "memory", "(", ")", ";", "}", "else", "{", "current", "view", "=", "new", "address", "set", "(", ")", ";", "}", "connected", "provider", "do", "set", "program", "(", "current", "program", ")", ";", "update", "highlight", "provider", "(", ")", ";", "update", "background", "color", "model", "(", ")", ";", "set", "highlight", "(", "new", "field", "selection", "(", ")", ")", ";", "address", "factory", "current", "address", "factory", "=", "(", "current", "program", "!", "=", "null", ")", "?", "current", "program", "get", "address", "factory", "(", ")", ":", "null", ";", "set", "selection", "(", "new", "program", "selection", "(", "current", "address", "factory", ")", ")", ";", "}", "else", "if", "(", "event", "instanceof", "program", "location", "plugin", "event", ")", "{", "program", "location", "plugin", "event", "evt", "=", "(", "program", "location", "plugin", "event", ")", "event", ";", "program", "location", "location", "=", "evt", "get", "location", "(", ")", ";", "if", "(", "!", "connected", "provider", "set", "location", "(", "location", ")", ")", "{", "if", "(", "view", "manager", "!", "=", "null", ")", "{", "connected", "provider", "set", "view", "(", "view", "manager", "add", "to", "view", "(", "location", ")", ")", ";", "listing", "panel", "lp", "=", "connected", "provider", "get", "listing", "panel", "(", ")", ";", "lp", "go", "to", "(", "location", ",", "true", ")", ";", "}", "}", "}", "else", "if", "(", "event", "instanceof", "program", "selection", "plugin", "event", ")", "{", "program", "selection", "plugin", "event", "evt", "=", "(", "program", "selection", "plugin", "event", ")", "event", ";", "set", "selection", "(", "evt", "get", "selection", "(", ")", ")", ";", "}", "else", "if", "(", "event", "instanceof", "program", "highlight", "plugin", "event", ")", "{", "program", "highlight", "plugin", "event", "evt", "=", "(", "program", "highlight", "plugin", "event", ")", "event", ";", "if", "(", "evt", "get", "program", "(", ")", "=", "=", "current", "program", ")", "{", "set", "highlight", "(", "evt", "get", "highlight", "(", ")", ")", ";", "}", "}", "else", "if", "(", "event", "instanceof", "view", "changed", "plugin", "event", ")", "{", "address", "set", "view", "=", "(", "(", "view", "changed", "plugin", "event", ")", "event", ")", "get", "view", "(", ")", ";", "view", "changed", "(", "view", ")", ";", "}", "}" ]
[ "closes", "this", "random", "access", "file", "stream", "and", "releases", "any", "system", "resources", "associated", "with", "the", "stream", "a", "closed", "random", "access", "file", "cannot", "perform", "input", "or", "output", "operations", "and", "cannot", "be", "reopened", "@", "exception", "i", "o", "exception", "if", "an", "io", "error", "occurs" ]
[ "public", "void", "close", "(", ")", "throws", "i", "o", "exception", ";" ]
[ "model", "tests", "for", "inline", "response", "default" ]
[ "public", "void", "test", "inline", "response", "default", "(", ")", "{", "/", "/", "todo", ":", "test", "inline", "response", "default", "}" ]
[ "returns", "the", "maximum", "frequency", "in", "which", "words", "may", "still", "appear", "words", "that", "appear", "in", "more", "than", "this", "many", "docs", "will", "be", "ignored", "the", "default", "frequency", "is", "{", "@", "link", "#", "default", "max", "doc", "freq", "}" ]
[ "public", "int", "get", "max", "doc", "freq", "(", ")", "{", "return", "max", "doc", "freq", ";", "}" ]
[ "creates", "folders", "on", "the", "path", "to", "{", "@", "code", "relative", "link", "path", "}", "and", "a", "symlink", "to", "{", "@", "code", "target", "}", "at", "{", "@", "code", "relative", "link", "path", "}", "(", "equivalent", "to", "{", "@", "code", "ln", "-", "s", "<", "target", ">", "<", "relative", "link", "path", ">", "}", ")" ]
[ "protected", "void", "create", "symlink", "(", "string", "target", ",", "string", "relative", "link", "path", ")", "throws", "i", "o", "exception", "{", "path", "path", "=", "get", "workspace", "(", ")", "get", "relative", "(", "relative", "link", "path", ")", ";", "path", "get", "parent", "directory", "(", ")", "create", "directory", "and", "parents", "(", ")", ";", "path", "create", "symbolic", "link", "(", "path", "fragment", "create", "(", "target", ")", ")", ";", "}" ]
[ "adds", "a", "namevalue", "pair", "to", "the", "formatted", "output", "in", "{", "@", "code", "name", "=", "value", "}", "format" ]
[ "public", "to", "string", "helper", "add", "(", "string", "name", ",", "long", "value", ")", "{", "return", "add", "holder", "(", "name", ",", "string", "value", "of", "(", "value", ")", ")", ";", "}" ]
[ "select", "sync", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-" ]
[ "public", "send", "result", "send", "(", "message", "msg", ",", "message", "queue", "selector", "selector", ",", "object", "arg", ")", "throws", "m", "q", "client", "exception", ",", "remoting", "exception", ",", "m", "q", "broker", "exception", ",", "interrupted", "exception", "{", "return", "send", "(", "msg", ",", "selector", ",", "arg", ",", "this", "default", "m", "q", "producer", "get", "send", "msg", "timeout", "(", ")", ")", ";", "}" ]
[ "return", "a", "{", "@", "link", "formatting", "conversion", "service", "}", "for", "use", "with", "annotated", "controllers", "see", "{", "@", "link", "#", "add", "formatters", "}", "as", "an", "alternative", "to", "overriding", "this", "method" ]
[ "public", "formatting", "conversion", "service", "mvc", "conversion", "service", "(", ")", "{", "formatting", "conversion", "service", "conversion", "service", "=", "new", "default", "formatting", "conversion", "service", "(", ")", ";", "add", "formatters", "(", "conversion", "service", ")", ";", "return", "conversion", "service", ";", "}" ]
[ "write", "1", "byte", "fixed", "length", "integer", "to", "byte", "buffers" ]
[ "public", "void", "write", "int", "1", "(", "final", "int", "value", ")", "{", "byte", "buf", "write", "byte", "(", "value", ")", ";", "}" ]
[ "get", "first", "name" ]
[ "public", "string", "get", "first", "name", "(", ")", "{", "return", "first", "name", ";", "}" ]
[ "override", "subclass", "such", "that", "we", "benefit", "for", "async", "listing", "done", "in", "{", "@", "code", "s", "3", "a", "file", "system", "}", "see", "{", "@", "code", "listing", "#", "object", "listing", "iterator", "}", "{", "@", "inherit", "doc", "}" ]
[ "public", "remote", "iterator", "<", "file", "status", ">", "list", "status", "iterator", "(", "path", "p", ")", "throws", "file", "not", "found", "exception", ",", "i", "o", "exception", "{", "remote", "iterator", "<", "s", "3", "a", "file", "status", ">", "list", "status", "itr", "=", "once", "(", "\"", "list", "status", "\"", ",", "p", "to", "string", "(", ")", ",", "(", ")", "-", ">", "inner", "list", "status", "(", "p", ")", ")", ";", "return", "type", "casting", "remote", "iterator", "(", "list", "status", "itr", ")", ";", "}" ]
[ "returns", "the", "unresolved", "link", "target", "if", "{", "@", "link", "#", "is", "symlink", "(", ")", "}", "this", "is", "useful", "if", "the", "caller", "wants", "to", ",", "for", "example", ",", "duplicate", "a", "relative", "symlink", "an", "actual", "example", "could", "be", "a", "build", "rule", "that", "copies", "a", "set", "of", "input", "files", "to", "the", "output", "directory", ",", "but", "upon", "encountering", "symbolic", "links", "it", "can", "decide", "between", "copying", "or", "following", "them" ]
[ "public", "path", "fragment", "get", "unresolved", "link", "target", "(", ")", "{", "throw", "new", "illegal", "state", "exception", "(", "this", "to", "string", "(", ")", ")", ";", "}" ]
[ "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", "\"", ")", ";", "}" ]
[ "set", "the", "gravity", "scale", "of", "the", "body" ]
[ "public", "void", "set", "gravity", "scale", "(", "float", "scale", ")", "{", "body", "set", "gravity", "scale", "(", "scale", ")", ";", "}" ]
[ "returns", "a", "registered", "sprite", "if", "no", "sprite", "is", "found", "but", "a", "region", "exists", "with", "the", "name", ",", "a", "sprite", "is", "created", "from", "the", "region", "and", "stored", "in", "the", "skin", "if", "the", "region", "is", "an", "{", "@", "link", "atlas", "region", "}", "then", "an", "{", "@", "link", "atlas", "sprite", "}", "is", "used", "if", "the", "region", "has", "been", "whitespace", "stripped", "or", "packed", "rotated", "90", "degrees" ]
[ "public", "sprite", "get", "sprite", "(", "string", "name", ")", "{", "sprite", "sprite", "=", "optional", "(", "name", ",", "sprite", "class", ")", ";", "if", "(", "sprite", "!", "=", "null", ")", "return", "sprite", ";", "try", "{", "texture", "region", "texture", "region", "=", "get", "region", "(", "name", ")", ";", "if", "(", "texture", "region", "instanceof", "atlas", "region", ")", "{", "atlas", "region", "region", "=", "(", "atlas", "region", ")", "texture", "region", ";", "if", "(", "region", "rotate", "|", "|", "region", "packed", "width", "!", "=", "region", "original", "width", "|", "|", "region", "packed", "height", "!", "=", "region", "original", "height", ")", "sprite", "=", "new", "atlas", "sprite", "(", "region", ")", ";", "}", "if", "(", "sprite", "=", "=", "null", ")", "sprite", "=", "new", "sprite", "(", "texture", "region", ")", ";", "if", "(", "scale", "!", "=", "1", ")", "sprite", "set", "size", "(", "sprite", "get", "width", "(", ")", "*", "scale", ",", "sprite", "get", "height", "(", ")", "*", "scale", ")", ";", "add", "(", "name", ",", "sprite", ",", "sprite", "class", ")", ";", "return", "sprite", ";", "}", "catch", "(", "gdx", "runtime", "exception", "ex", ")", "{", "throw", "new", "gdx", "runtime", "exception", "(", "\"", "no", "nine", "patch", ",", "texture", "region", ",", "or", "texture", "registered", "with", "name", ":", "\"", "+", "name", ")", ";", "}", "}" ]
[ "tests", "that", "-", "-", "features", "=", "xbinaryfdo", "implicit", "thinlto", "enables", "thin", "l", "t", "o", "for", "xfdo", "with", "llvm" ]
[ "public", "void", "test", "x", "binary", "fdo", "implicit", "thin", "lto", "(", ")", "throws", "exception", "{", "scratch", "file", "(", "\"", "pkg", "/", "build", "\"", ",", "\"", "\"", ",", "\"", "cc", "binary", "(", "name", "=", "'", "bin", "'", ",", "\"", ",", "\"", "srcs", "=", "[", "'", "binfile", "cc", "'", ",", "]", ")", "\"", ",", "\"", "fdo", "profile", "(", "name", "=", "'", "out", "xfdo", "'", ",", "profile", "=", "'", "profiles", "xfdo", "'", ")", "\"", ")", ";", "scratch", "file", "(", "\"", "pkg", "/", "binfile", "cc", "\"", ",", "\"", "int", "main", "(", ")", "{", "}", "\"", ")", ";", "setup", "x", "binary", "fdo", "thin", "lto", "crosstool", "(", ")", ";", "use", "configuration", "(", "\"", "-", "-", "xbinary", "fdo", "=", "/", "/", "pkg", ":", "out", "xfdo", "\"", ",", "\"", "-", "-", "compilation", "mode", "=", "opt", "\"", ",", "\"", "-", "-", "features", "=", "xbinaryfdo", "implicit", "thinlto", "\"", ")", ";", "artifact", "bin", "artifact", "=", "get", "files", "to", "build", "(", "get", "configured", "target", "(", "\"", "/", "/", "pkg", ":", "bin", "\"", ")", ")", "get", "singleton", "(", ")", ";", "cpp", "link", "action", "link", "action", "=", "(", "cpp", "link", "action", ")", "get", "generating", "action", "(", "bin", "artifact", ")", ";", "assert", "that", "(", "link", "action", "get", "outputs", "(", ")", ")", "contains", "exactly", "(", "bin", "artifact", ")", ";", "lto", "backend", "action", "backend", "action", "=", "(", "lto", "backend", "action", ")", "get", "predecessor", "by", "input", "name", "(", "link", "action", ",", "\"", "pkg", "/", "bin", "lto", "/", "pkg", "/", "objs", "/", "bin", "/", "binfile", "o", "\"", ")", ";", "/", "/", "for", "thin", "l", "t", "o", "compilation", "we", "should", "have", "a", "non", "-", "null", "backend", "action", "assert", "that", "(", "backend", "action", ")", "is", "not", "null", "(", ")", ";", "}" ]