docstring_tokens
list
code_tokens
list
[ "increments", "and", "returns", "pending", "predecessor", "task", "count" ]
[ "public", "int", "increment", "and", "get", "pending", "predecessor", "tasks", "(", ")", "{", "return", "number", "of", "pending", "predecessor", "tasks", "increment", "and", "get", "(", ")", ";", "}" ]
[ "actually", "resolve", "the", "given", "exception", "that", "got", "thrown", "during", "handler", "execution", ",", "returning", "a", "{", "@", "link", "model", "and", "view", "}", "that", "represents", "a", "specific", "error", "page", "if", "appropriate", ...
[ "protected", "abstract", "model", "and", "view", "do", "resolve", "exception", "(", "http", "servlet", "request", "request", ",", "http", "servlet", "response", "response", ",", "@", "nullable", "object", "handler", ",", "exception", "ex", ")", ";" ]
[ "create", "the", "rpc", "server", "implementation", "used", "as", "an", "extension", "point", "for", "the", "backup", "node" ]
[ "protected", "name", "node", "rpc", "server", "create", "rpc", "server", "(", "configuration", "conf", ")", "throws", "i", "o", "exception", "{", "return", "new", "name", "node", "rpc", "server", "(", "conf", ",", "this", ")", ";", "}" ]
[ "get", "remote", "path", "through", "json", "api" ]
[ "private", "string", "get", "remote", "f", "s", "(", "node", "node", ",", "string", "user", ")", "throws", "exception", "{", "jenkins", "rule", "web", "client", "wc", "=", "j", "create", "web", "client", "(", ")", ";", "if", "(", "user", "!", "=", ...
[ "test", "that", "setting", "parameters", "has", "the", "desired", "effect" ]
[ "public", "void", "check", "configuration", "(", ")", "{", "configuration", "conf", "=", "new", "configuration", "(", ")", ";", "test", "num", "retries", "(", "conf", ")", ";", "test", "wait", "interval", "(", "conf", ")", ";", "test", "timeout", "(", ...
[ "set", "the", "persistence", "unit", "post", "processors", "to", "be", "applied", "to", "each", "persistence", "unit", "info", "that", "has", "been", "parsed", "by", "this", "manager", "such", "post", "-", "processors", "can", ",", "for", "example", ",", "...
[ "public", "void", "set", "persistence", "unit", "post", "processors", "(", "@", "nullable", "persistence", "unit", "post", "processor", "post", "processors", ")", "{", "this", "persistence", "unit", "post", "processors", "=", "post", "processors", ";", "}" ]
[ "handles", "a", "{", "@", "code", "evaluate", "request", "}", "and", "returns", "its", "response" ]
[ "private", "starlark", "debugging", "protos", "debug", "event", "evaluate", "(", "long", "sequence", "number", ",", "starlark", "debugging", "protos", "evaluate", "request", "request", ")", "throws", "debug", "request", "exception", "{", "return", "debug", "event"...
[ "returns", "the", "list", "of", "symbols", "i", "ds", "that", "have", "been", "added" ]
[ "long", "[", "]", "get", "symbol", "additions", "(", ")", ";" ]
[ "due", "to", "a", "bug", "in", "mod", "-", "auth", "-", "cas", "and", "possibly", "other", "clients", "in", "the", "way", "tickets", "are", "parsed", ",", "the", "ticket", "id", "body", "is", "sanitized", "to", "remove", "the", "character", "\"", "\"",...
[ "public", "string", "get", "new", "ticket", "id", "(", "final", "string", "prefix", ")", "{", "val", "number", "=", "this", "numeric", "generator", "get", "next", "number", "as", "string", "(", ")", ";", "val", "ticket", "body", "=", "this", "random", ...
[ "determine", "if", "specified", "program", "already", "exists", "with", "the", "program", "cache" ]
[ "public", "boolean", "is", "program", "cached", "(", "string", "program", "name", ")", "{", "return", "program", "manager", "is", "program", "cached", "(", "program", "name", ")", ";", "}" ]
[ "set", "the", "error", "response", "factory", "to", "be", "used", "when", "an", "error", "is", "triggered", "this", "factory", "may", "only", "return", "responses", "for", "which", "{", "@", "link", "response", "#", "is", "successful", "(", ")", "}", "re...
[ "public", "void", "set", "error", "factory", "(", "callable", "<", "response", "<", "?", ">", ">", "error", "factory", ")", "{", "if", "(", "error", "factory", "=", "=", "null", ")", "{", "throw", "new", "null", "pointer", "exception", "(", "\"", "er...
[ "returns", "a", "memoizing", "{", "@", "link", "serialization", "context", "}", ",", "as", "get", "memoizing", "context", "above", "unlike", "get", "memoizing", "context", ",", "this", "method", "is", "not", "idempotent", "-", "the", "returned", "context", "...
[ "public", "serialization", "context", "get", "new", "memoizing", "context", "(", ")", "{", "return", "get", "new", "memoizing", "context", "(", "allow", "futures", "to", "block", "writing", "on", ")", ";", "}" ]
[ "execute", "the", "command" ]
[ "public", "static", "command", "result", "exec", "cmd", "(", "final", "string", "[", "]", "commands", ",", "final", "boolean", "is", "rooted", ",", "final", "boolean", "is", "need", "result", "msg", ")", "{", "int", "result", "=", "-", "1", ";", "if", ...
[ "remove", "an", "existing", "key", "from", "the", "array", "map" ]
[ "public", "v", "remove", "(", "object", "key", ")", "{", "final", "int", "index", "=", "index", "of", "key", "(", "key", ")", ";", "if", "(", "index", ">", "=", "0", ")", "{", "return", "remove", "at", "(", "index", ")", ";", "}", "return", "nu...
[ "model", "tests", "for", "format", "test" ]
[ "public", "void", "test", "format", "test", "(", ")", "{", "/", "/", "todo", ":", "test", "format", "test", "}" ]
[ "find", "pet", "by", "id", "returns", "a", "single", "pet" ]
[ "public", "single", "<", "pet", ">", "rx", "get", "pet", "by", "id", "(", "long", "pet", "id", ")", "{", "return", "single", "create", "(", "new", "io", "vertx", "rx", "java", "single", "on", "subscribe", "adapter", "<", ">", "(", "fut", "-", ">", ...
[ "returns", "whether", "or", "not", "the", "given", "value", "appears", "in", "the", "list", "this", "will", "do", "a", "binary", "search", "if", "the", "list", "is", "sorted", "or", "a", "linear", "search", "if", "not" ]
[ "public", "boolean", "contains", "(", "int", "value", ")", "{", "return", "index", "of", "(", "value", ")", ">", "=", "0", ";", "}" ]
[ "\"", "constraining", "\"", "a", "rule", "'", "s", "environments", "explicitly", "sets", "them" ]
[ "public", "void", "constrained", "supported", "environments", "(", ")", "throws", "exception", "{", "new", "environment", "group", "maker", "(", "\"", "buildenv", "/", "foo", "\"", ")", "set", "environments", "(", "\"", "a", "\"", ",", "\"", "b", "\"", "...
[ "seeks", "inside", "this", "sample", "stream", "seeks", "to", "just", "before", "the", "first", "sample", "with", "{", "@", "code", "sample", "time", ">", "=", "time", "us", "}", ",", "or", "to", "the", "end", "of", "the", "stream", "otherwise" ]
[ "public", "void", "seek", "to", "(", "long", "time", "us", ")", "{", "format", "applicable", "format", "=", "initial", "format", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "fake", "sample", "stream", "items", "size", "(", ")", ";", "i", ...
[ "this", "should", "return", "the", "initial", "endpoints", "in", "a", "single", "-", "string", "without", "resolving", "them" ]
[ "@", "override", "string", "to", "string", "(", ")", ";" ]
[ "get", "the", "offset", "storage", "reader", "for", "this", "source", "task" ]
[ "offset", "storage", "reader", "offset", "storage", "reader", "(", ")", ";" ]
[ "check", "if", "the", "iterator", "is", "still", "valid", "getters", "like", "{", "@", "link", "#", "key", "(", ")", "}", ",", "{", "@", "link", "#", "value", "(", ")", "}", ",", "etc", "as", "well", "as", "{", "@", "link", "#", "next", "(", ...
[ "public", "boolean", "is", "valid", "(", ")", "{", "return", "valid", ";", "}" ]
[ "call", "this", "method", "to", "register", "a", "custom", "attribute", "type", ",", "see", "the", "wiki", "for", "an", "example", "if", "the", "alias", "already", "exists", ",", "then", "that", "id", "will", "be", "reused", "the", "alias", "should", "be...
[ "protected", "final", "static", "long", "register", "(", "final", "string", "alias", ")", "{", "long", "result", "=", "get", "attribute", "type", "(", "alias", ")", ";", "if", "(", "result", ">", "0", ")", "return", "result", ";", "types", "add", "(", ...
[ "get", "the", "data", "format", "model", "of", "the", "view", "that", "is", "in", "focus" ]
[ "data", "format", "model", "get", "current", "model", "(", ")", "{", "if", "(", "current", "view", "=", "=", "null", ")", "{", "return", "null", ";", "}", "return", "current", "view", "get", "data", "model", "(", ")", ";", "}" ]
[ "check", "that", "whether", "debugging", "is", "enabled", "for", "this", "api", "client" ]
[ "public", "boolean", "is", "debugging", "(", ")", "{", "return", "debugging", ";", "}" ]
[ "return", "a", "full", "description", "of", "this", "event", ",", "involving", "all", "available", "context", "data" ]
[ "public", "string", "get", "description", "(", ")", "{", "string", "builder", "sb", "=", "new", "string", "builder", "(", ")", ";", "sb", "append", "(", "\"", "session", "=", "[", "\"", ")", "append", "(", "this", "session", "id", ")", "append", "(",...
[ "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", "\"", "...
[ "stores", "the", "jvm", "property", "value", "of", "https", "cipher", "suites", "and", "sets", "its", "value", "to", "an", "empty", "string", "this", "ensures", "that", "the", "value", "https", "cipher", "suites", "does", "not", "affect", "the", "result", ...
[ "static", "void", "store", "https", "cipher", "suites", "(", ")", "{", "string", "cipher", "suites", "=", "system", "get", "property", "(", "https", "cipher", "suites", "key", ")", ";", "if", "(", "cipher", "suites", "!", "=", "null", ")", "{", "log", ...
[ "clears", "the", "playlist", ",", "adds", "the", "specified", "{", "@", "link", "media", "source", "}", "and", "resets", "the", "position", "to", "the", "default", "position" ]
[ "void", "set", "media", "source", "(", "media", "source", "media", "source", ")", ";" ]
[ "handle", "udp", "l", "4" ]
[ "private", "void", "handle", "u", "d", "p", "(", "channel", "handler", "context", "ctx", ",", "object", "msg", ")", "{", "byte", "buf", "udp", "buf", "=", "ctx", "alloc", "(", ")", "buffer", "(", ")", ";", "try", "{", "if", "(", "msg", "instanceof"...
[ "executes", "the", "given", "task", "in", "a", "single", "thread", "pool", "at", "fix", "rate" ]
[ "public", "static", "<", "t", ">", "void", "execute", "by", "single", "at", "fix", "rate", "(", "final", "task", "<", "t", ">", "task", ",", "long", "initial", "delay", ",", "final", "long", "period", ",", "final", "time", "unit", "unit", ")", "{", ...
[ "removes", "any", "temporary", "storage", "leftovers", "removes", "all", "temp", "files", "and", "folder", "which", "might", "be", "there", "as", "a", "result", "of", "an", "unclean", "node", "shutdown", "or", "broken", "clients", "do", "not", "call", "while...
[ "public", "void", "cleanup", "local", "tmp", "storage", "in", "case", "of", "unclean", "shutdown", "(", ")", "{", "try", "{", "for", "(", "path", "p", ":", "environment", "data", "files", "(", ")", ")", "{", "i", "o", "utils", "rm", "(", "p", "reso...
[ "set", "the", "\"", "global", "\"", "cors", "configuration", "source", "by", "default", "the", "first", "matching", "url", "pattern", "is", "combined", "with", "the", "cors", "configuration", "for", "the", "handler", ",", "if", "any" ]
[ "public", "void", "set", "cors", "configuration", "source", "(", "cors", "configuration", "source", "cors", "configuration", "source", ")", "{", "assert", "not", "null", "(", "cors", "configuration", "source", ",", "\"", "cors", "configuration", "source", "must"...
[ "<", "code", ">", "optional", "string", "foo", "=", "1", ";", "<", "code", ">" ]
[ "public", "builder", "set", "foo", "bytes", "(", "com", "google", "protobuf", "byte", "string", "value", ")", "{", "if", "(", "value", "=", "=", "null", ")", "{", "throw", "new", "null", "pointer", "exception", "(", ")", ";", "}", "bit", "field", "0"...
[ "rollback", "the", "instruction", "stream", "for", "a", "program", "so", "that", "the", "indicated", "instruction", "(", "via", "instruction", "index", ")", "is", "no", "longer", "in", "the", "stream", "untested", "!" ]
[ "public", "void", "rollback", "(", "string", "program", "name", ",", "int", "instruction", "index", ")", "{", "list", "<", "rewrite", "operation", ">", "is", "=", "programs", "get", "(", "program", "name", ")", ";", "if", "(", "is", "!", "=", "null", ...
[ "set", "the", "job", "retire", "flag", "to", "true" ]
[ "protected", "synchronized", "void", "set", "retired", "(", ")", "{", "this", "is", "retired", "=", "true", ";", "}" ]
[ "creates", "the", "kind", "of", "array", "for", "{", "@", "link", "list", "#", "to", "array", "(", "object", "[", "]", ")", "}" ]
[ "private", "static", "object", "[", "]", "create", "object", "array", "kind", "(", "class", "<", "?", ">", "element", "clazz", ")", "{", "/", "/", "e", "g", "int", "[", "]", "is", "not", "a", "object", "[", "]", "if", "(", "element", "clazz", "is...
[ "decrease", "current", "thread", "count" ]
[ "void", "decrease", "thread", "num", "(", ")", ";" ]
[ "logs", "a", "message" ]
[ "public", "abstract", "void", "log", "(", "channel", "log", "level", "level", ",", "string", "message", ")", ";" ]
[ "marks", "the", "stack", "entries", "andor", "their", "producing", "instructions", "at", "the", "given", "offsets" ]
[ "private", "void", "mark", "stack", "entry", "producers", "(", "instruction", "offset", "value", "producer", "offsets", ",", "int", "stack", "index", ",", "boolean", "mark", "producing", "instructions", ",", "boolean", "mark", "produced", "stack", "entries", ")"...
[ "tests", "that", "the", "sampler", "aggregation", "works", "correctly", "if", "the", "parent", "bucket", "does", "not", "contain", "any", "hit" ]
[ "public", "void", "test", "empty", "parent", "bucket", "(", ")", "throws", "exception", "{", "index", "writer", "config", "index", "writer", "config", "=", "new", "index", "writer", "config", "(", ")", ";", "try", "(", "directory", "dir", "=", "new", "di...
[ "unregister", "task", "manager", "from", "this", "pool", ",", "all", "the", "related", "slots", "will", "be", "released", "and", "tasks", "be", "canceled", "called", "when", "we", "find", "some", "task", "manager", "becomes", "\"", "dead", "\"", "or", "\""...
[ "public", "boolean", "release", "task", "manager", "(", "final", "resource", "i", "d", "resource", "id", ",", "final", "exception", "cause", ")", "{", "component", "main", "thread", "executor", "assert", "running", "in", "main", "thread", "(", ")", ";", "i...
[ "submits", "a", "runnable", "to", "be", "executed", "by", "this", "thread", "pool" ]
[ "public", "<", "t", ">", "future", "<", "t", ">", "submit", "(", "runnable", "task", ",", "t", "result", ")", "{", "return", "executor", "submit", "(", "task", ",", "result", ")", ";", "}" ]
[ "set", "whether", "or", "not", "version", "conflicts", "cause", "the", "action", "to", "abort" ]
[ "public", "self", "set", "abort", "on", "version", "conflict", "(", "boolean", "abort", "on", "version", "conflict", ")", "{", "this", "abort", "on", "version", "conflict", "=", "abort", "on", "version", "conflict", ";", "return", "self", "(", ")", ";", ...
[ "determines", "if", "a", "function", "match", "can", "be", "created", "for", "the", "selected", "source", "and", "destination" ]
[ "public", "boolean", "can", "create", "match", "(", ")", ";" ]
[ "returns", "the", "configuration", "properties", "for", "orm", "tools" ]
[ "map", "<", "string", ",", "string", ">", "get", "properties", "(", ")", ";" ]
[ "test", "{", "@", "code", "map", "file", "reader", "final", "key", "(", ")", "}", "method" ]
[ "public", "void", "test", "on", "final", "key", "(", ")", "{", "final", "string", "test", "method", "key", "=", "\"", "test", "on", "final", "key", "mapfile", "\"", ";", "int", "size", "=", "10", ";", "map", "file", "writer", "writer", "=", "null", ...
[ "submit", "a", "local", "file", "to", "the", "filesystem", "references", "by", "the", "instance", "'", "s", "cluster", "filesystem" ]
[ "public", "local", "resource", "submit", "file", "(", "file", "local", "file", ",", "path", "temp", "path", ",", "string", "subdir", ",", "string", "dest", "file", "name", ")", "throws", "i", "o", "exception", "{", "path", "src", "=", "new", "path", "(...
[ "this", "test", "will", "fail", "whenever", "someone", "updatesreorders", "the", "bloom", "filter", "strategies", "constants", "only", "appending", "a", "new", "constant", "is", "allowed" ]
[ "public", "void", "test", "bloom", "filter", "strategies", "(", ")", "{", "assert", "that", "(", "bloom", "filter", "strategies", "values", "(", ")", ")", "has", "length", "(", "2", ")", ";", "assert", "equals", "(", "bloom", "filter", "strategies", "mur...
[ "sets", "the", "visibility", "of", "the", "given", "models", ",", "and", "notifies", "that", "the", "items", "changed", "if", "the", "new", "visibility", "is", "different", "from", "the", "previous" ]
[ "protected", "void", "show", "models", "(", "boolean", "show", ",", "epoxy", "model", "<", "?", ">", "models", ")", "{", "show", "models", "(", "arrays", "as", "list", "(", "models", ")", ",", "show", ")", ";", "}" ]
[ "save", "off", "the", "current", "context", "and", "set", "the", "current", "context", "to", "a", "copy", "this", "is", "done", "so", "that", "the", "values", "in", "the", "context", "are", "not", "changed", ",", "but", "can", "be", "used", "for", "com...
[ "protected", "varnode", "context", "save", "off", "current", "context", "(", "address", "start", "addr", ")", "{", "language", "language", "=", "program", "get", "language", "(", ")", ";", "program", "context", "new", "value", "context", "=", "new", "program...
[ "logs", "out", "current", "logged", "in", "user", "session" ]
[ "completion", "stage", "<", "response", "<", "void", ">", ">", "logout", "user", "(", ")", ";" ]
[ "add", "new", "bean", "post", "processors", "that", "will", "get", "applied", "to", "beans", "created", "by", "this", "factory", "to", "be", "invoked", "during", "factory", "configuration" ]
[ "public", "void", "add", "bean", "post", "processors", "(", "collection", "<", "?", "extends", "bean", "post", "processor", ">", "bean", "post", "processors", ")", "{", "this", "bean", "post", "processors", "remove", "all", "(", "bean", "post", "processors",...
[ "get", "the", "configured", "trash", "policy" ]
[ "trash", "policy", "get", "trash", "policy", "(", ")", "{", "return", "trash", "policy", ";", "}" ]
[ "loads", "the", "resource", "at", "a", "given", "index", "into", "the", "properties" ]
[ "private", "synchronized", "void", "load", "props", "(", "final", "properties", "props", ",", "final", "int", "start", "idx", ",", "final", "boolean", "full", "reload", ")", "{", "if", "(", "props", "!", "=", "null", ")", "{", "map", "<", "string", ","...
[ "set", "the", "response", "as", "an", "error", "response", "plus", "some", "data" ]
[ "public", "static", "http", "response", "error", "j", "s", "o", "n", "(", "@", "non", "null", "string", "message", ",", "@", "non", "null", "j", "s", "o", "n", "object", "data", ")", "{", "return", "new", "j", "s", "o", "n", "object", "response", ...
[ "delete", "user", "this", "can", "only", "be", "done", "by", "the", "logged", "in", "user" ]
[ "public", "api", "response", "<", "void", ">", "delete", "user", "with", "http", "info", "(", "string", "username", ")", "throws", "api", "exception", "{", "http", "request", "builder", "local", "var", "request", "builder", "=", "delete", "user", "request", ...