docstring_tokens
sequence
code_tokens
sequence
[ "the", "class", "holding", "records", "for", "this", "type" ]
[ "return", "record", "class", ";" ]
[ "{" ]
[ "return", "information", "schema", "information", "schema", ";" ]
[ "regenerates", "the", "content", "of", "the", "node", "and", "updates", "the", "graph", "view" ]
[ "m", "realizer", "regenerate", "(", ")", ";", "m", "graph", "update", "views", "(", ")", ";" ]
[ "sets", "the", "realizer", "of", "the", "node", "to", "update" ]
[ "m", "realizer", "=", "realizer", ";" ]
[ "/", "*", "(", "non", "-", "javadoc", ")" ]
[ "current", "num", "frags", "=", "1", ";", "current", "offset", "=", "0", ";", "add", "hot", "spots", "(", "original", "text", ")", ";", "pos", "inc", "att", "=", "token", "stream", "get", "attribute", "(", "position", "increment", "attribute", "class", ")", ";", "offset", "att", "=", "token", "stream", "get", "attribute", "(", "offset", "attribute", "class", ")", ";" ]
[ "resolves", "the", "x", "stream", "instance", "to", "be", "used", "by", "this", "data", "format", "if", "x", "stream", "is", "not", "explicitly", "set", "new", "instance", "will", "be", "created", "and", "cached" ]
[ "if", "(", "xstream", "=", "=", "null", ")", "{", "xstream", "=", "create", "x", "stream", "(", "resolver", ")", ";", "}", "return", "xstream", ";" ]
[ "resolves", "the", "x", "stream", "instance", "to", "be", "used", "by", "this", "data", "format", "if", "x", "stream", "is", "not", "explicitly", "set", "new", "instance", "will", "be", "created", "and", "cached" ]
[ "if", "(", "xstream", "=", "=", "null", ")", "{", "xstream", "=", "create", "x", "stream", "(", "context", "get", "class", "resolver", "(", ")", ",", "context", "get", "application", "context", "class", "loader", "(", ")", ")", ";", "}", "return", "xstream", ";" ]
[ "gets", "aliases", "map" ]
[ "return", "aliases", ";" ]
[ "alias", "a", "class", "to", "a", "shorter", "name", "to", "be", "used", "in", "xml", "elements" ]
[ "this", "aliases", "=", "aliases", ";" ]
[ "adds", "a", "default", "implicit", "collection", "which", "is", "used", "for", "any", "unmapped", "xml", "tag" ]
[ "this", "implicit", "collections", "=", "implicit", "collections", ";" ]
[ "prevents", "a", "field", "from", "being", "serialized", "to", "omit", "a", "field", "you", "must", "always", "provide", "the", "declaring", "type", "and", "not", "necessarily", "the", "type", "that", "is", "converted" ]
[ "this", "omit", "fields", "=", "omit", "fields", ";" ]
[ "returns", "the", "partition", "mode", "information", "extracted", "from", "the", "api", "message" ]
[ "return", "mode", ";" ]
[ "if", "enabled", "then", "xml", "json", "will", "set", "the", "content", "-", "type", "header", "to", "<", "tt", ">", "application", "/", "json", "<", "/", "tt", ">", "when", "marshalling", "and", "<", "tt", ">", "application", "/", "xml", "<", "/", "tt", ">", "when", "unmarshalling" ]
[ "this", "content", "type", "header", "=", "content", "type", "header", ";" ]
[ "gets", "the", "cache", "for", "current", "cache", "id", "with", "binary", "mode", "enabled" ]
[ "return", "raw", "cache", "(", "ctx", ")", "with", "keep", "binary", "(", ")", ";" ]
[ "gets", "a", "value", "indicating", "whether", "keep", "binary", "flag", "is", "set", "in", "this", "request" ]
[ "return", "(", "flags", "&", "flag", "keep", "binary", ")", "=", "=", "flag", "keep", "binary", ";" ]
[ "gets", "the", "cache", "for", "current", "cache", "id", "ignoring", "any", "flags" ]
[ "dynamic", "cache", "descriptor", "cache", "desc", "=", "cache", "descriptor", "(", "ctx", ")", ";", "string", "cache", "name", "=", "cache", "desc", "cache", "name", "(", ")", ";", "return", "ctx", "kernal", "context", "(", ")", "grid", "(", ")", "cache", "(", "cache", "name", ")", ";" ]
[ "gets", "the", "cache", "descriptor" ]
[ "return", "cache", "descriptor", "(", "ctx", ",", "cache", "id", ")", ";" ]
[ "gets", "the", "cache", "id" ]
[ "return", "cache", "id", ";" ]
[ "{" ]
[ "security", "context", "sec", "ctx", "=", "ctx", "security", "context", "(", ")", ";", "if", "(", "sec", "ctx", "!", "=", "null", ")", "{", "dynamic", "cache", "descriptor", "cache", "desc", "=", "cache", "descriptor", "(", "ctx", ",", "cache", "id", ")", ";", "run", "with", "security", "exception", "handler", "(", "(", ")", "-", ">", "{", "ctx", "kernal", "context", "(", ")", "security", "(", ")", "authorize", "(", "cache", "desc", "cache", "name", "(", ")", ",", "perm", ",", "sec", "ctx", ")", ";", "}", ")", ";", "}" ]
[ "authorize", "for", "multiple", "permissions" ]
[ "security", "context", "sec", "ctx", "=", "ctx", "security", "context", "(", ")", ";", "if", "(", "sec", "ctx", "!", "=", "null", ")", "{", "dynamic", "cache", "descriptor", "cache", "desc", "=", "cache", "descriptor", "(", "ctx", ",", "cache", "id", ")", ";", "run", "with", "security", "exception", "handler", "(", "(", ")", "-", ">", "{", "for", "(", "security", "permission", "p", ":", "perm", ")", "ctx", "kernal", "context", "(", ")", "security", "(", ")", "authorize", "(", "cache", "desc", "cache", "name", "(", ")", ",", "p", ",", "sec", "ctx", ")", ";", "}", ")", ";", "}" ]
[ "the", "actual", "factory", "method", "that", "creates", "the", "factory", "used", "to", "eventually", "obtain", "the", "delegate", "for", "a", "sam" ]
[ "return", "new", "test", "server", "auth", "config", "(", "layer", ",", "app", "context", ",", "handler", "=", "=", "null", "?", "create", "default", "callback", "handler", "(", ")", ":", "handler", ",", "provider", "properties", ",", "server", "auth", "module", ")", ";" ]
[ "compiles", "the", "code", "and", "checks", "that", "the", "set", "of", "types", "for", "each", "field", "matches", "the", "expected", "value" ]
[ "test", "(", "srcs", "(", "js", ")", ")", ";", "assert", "that", "(", "map", "to", "string", "(", "last", "pass", "get", "renamed", "types", "for", "testing", "(", ")", ")", ")", "is", "equal", "to", "(", "field", "types", ")", ";" ]
[ "compiles", "the", "code", "and", "checks", "that", "the", "set", "of", "types", "for", "each", "field", "matches", "the", "expected", "value" ]
[ "test", "(", "srcs", "(", "js", ")", ",", "warning", "(", "warning", ")", ",", "(", "postcondition", ")", "unused", "-", ">", "assert", "equals", "(", "field", "types", ",", "map", "to", "string", "(", "last", "pass", "get", "renamed", "types", "for", "testing", "(", ")", ")", ")", ")", ";" ]
[ "sorts", "the", "map", "and", "converts", "to", "a", "string", "for", "comparison", "purposes" ]
[ "tree", "map", "<", "string", ",", "string", ">", "ret", "map", "=", "new", "tree", "map", "<", ">", "(", ")", ";", "for", "(", "string", "key", ":", "map", "key", "set", "(", ")", ")", "{", "tree", "set", "<", "string", ">", "tree", "set", "=", "new", "tree", "set", "<", ">", "(", ")", ";", "for", "(", "collection", "<", "t", ">", "collection", ":", "map", "get", "(", "key", ")", ")", "{", "set", "<", "string", ">", "sub", "set", "=", "new", "tree", "set", "<", ">", "(", ")", ";", "for", "(", "t", "type", ":", "collection", ")", "{", "sub", "set", "add", "(", "type", "to", "string", "(", ")", ")", ";", "}", "tree", "set", "add", "(", "sub", "set", "to", "string", "(", ")", ")", ";", "}", "ret", "map", "put", "(", "key", ",", "tree", "set", "to", "string", "(", ")", ")", ";", "}", "return", "ret", "map", "to", "string", "(", ")", ";" ]
[ "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/" ]
[ "pb", "evaluated", "proposal", "builder", "builder", "=", "pb", "evaluated", "proposal", "new", "builder", "(", ")", "set", "is", "accepted", "(", "is", "accepted", ")", "set", "proposal", "vote", "result", "(", "proposal", "vote", "result", "to", "proto", "message", "(", ")", ")", "set", "required", "quorum", "(", "required", "quorum", ")", "set", "required", "threshold", "(", "required", "threshold", ")", ";", "return", "builder", "build", "(", ")", ";" ]
[ "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/" ]
[ "return", "proposal", "vote", "result", "get", "proposal", "(", ")", ";" ]
[ "<", "p", ">", "information", "about", "the", "<", "a", ">", "regex", "match", "set", "<", "/", "a", ">", "that", "you", "specified", "in", "the", "<", "code", ">", "get", "regex", "match", "set", "<", "/", "code", ">", "request", "for", "more", "information", "see", "<", "a", ">", "regex", "match", "tuple", "<", "/", "a", ">", "<", "/", "p", ">" ]
[ "this", "regex", "match", "set", "=", "regex", "match", "set", ";" ]
[ "<", "p", ">", "information", "about", "the", "<", "a", ">", "regex", "match", "set", "<", "/", "a", ">", "that", "you", "specified", "in", "the", "<", "code", ">", "get", "regex", "match", "set", "<", "/", "code", ">", "request", "for", "more", "information", "see", "<", "a", ">", "regex", "match", "tuple", "<", "/", "a", ">", "<", "/", "p", ">" ]
[ "return", "this", "regex", "match", "set", ";" ]
[ "<", "p", ">", "a", "<", "a", ">", "regex", "match", "set", "<", "/", "a", ">", "that", "contains", "no", "<", "code", ">", "regex", "match", "tuple", "<", "/", "code", ">", "objects", "<", "/", "p", ">" ]
[ "set", "regex", "match", "set", "(", "regex", "match", "set", ")", ";", "return", "this", ";" ]
[ "<", "p", ">", "the", "<", "code", ">", "change", "token", "<", "/", "code", ">", "that", "you", "used", "to", "submit", "the", "<", "code", ">", "update", "xss", "match", "set", "<", "/", "code", ">", "request", "you", "can", "also", "use", "this", "value", "to", "query", "the", "status", "of", "the", "request", "for", "more", "information", "see", "<", "a", ">", "get", "change", "token", "status", "<", "/", "a", ">", "<", "/", "p", ">" ]
[ "this", "change", "token", "=", "change", "token", ";" ]
[ "<", "p", ">", "the", "<", "code", ">", "change", "token", "<", "/", "code", ">", "that", "you", "used", "to", "submit", "the", "<", "code", ">", "update", "xss", "match", "set", "<", "/", "code", ">", "request", "you", "can", "also", "use", "this", "value", "to", "query", "the", "status", "of", "the", "request", "for", "more", "information", "see", "<", "a", ">", "get", "change", "token", "status", "<", "/", "a", ">", "<", "/", "p", ">" ]
[ "return", "this", "change", "token", ";" ]
[ "<", "p", ">", "the", "<", "code", ">", "change", "token", "<", "/", "code", ">", "that", "you", "used", "to", "submit", "the", "<", "code", ">", "create", "regex", "match", "set", "<", "/", "code", ">", "request", "you", "can", "also", "use", "this", "value", "to", "query", "the", "status", "of", "the", "request", "for", "more", "information", "see", "<", "a", ">", "get", "change", "token", "status", "<", "/", "a", ">", "<", "/", "p", ">" ]
[ "set", "change", "token", "(", "change", "token", ")", ";", "return", "this", ";" ]
[ "name", "of", "this", "node" ]
[ "@", "exported", "(", "visibility", "=", "999", ")", "@", "nonnull", "public", "abstract", "string", "get", "node", "name", "(", ")", ";" ]
[ "when", "the", "user", "clones", "a", "{", "@", "link", "node", "}", "hudson", "uses", "this", "method", "to", "change", "the", "node", "name", "right", "after", "the", "cloned", "{", "@", "link", "node", "}", "object", "is", "instantiated" ]
[ "@", "deprecated", "public", "abstract", "void", "set", "node", "name", "(", "string", "name", ")", ";" ]
[ "human", "-", "readable", "description", "of", "this", "node" ]
[ "@", "exported", "public", "abstract", "string", "get", "node", "description", "(", ")", ";" ]
[ "returns", "a", "{", "@", "link", "launcher", "}", "for", "executing", "programs", "on", "this", "node" ]
[ "public", "abstract", "launcher", "create", "launcher", "(", "task", "listener", "listener", ")", ";" ]
[ "returns", "the", "number", "of", "{", "@", "link", "executor", "}", "s" ]
[ "@", "exported", "public", "abstract", "int", "get", "num", "executors", "(", ")", ";" ]
[ "returns", "{" ]
[ "@", "exported", "public", "abstract", "mode", "get", "mode", "(", ")", ";" ]
[ "gets", "the", "corresponding", "{", "@", "link", "computer", "}", "object" ]
[ "abstract", "c", "i", "base", "ci", "base", "=", "jenkins", "get", "instance", "(", ")", ";", "return", "ci", "base", "get", "computer", "(", "this", ")", ";" ]
[ "gets", "the", "current", "channel", "if", "the", "node", "is", "connected", "and", "online", "or", "null" ]
[ "computer", "c", "=", "to", "computer", "(", ")", ";", "return", "c", "=", "=", "null", "?", "null", ":", "c", "get", "channel", "(", ")", ";" ]
[ "creates", "a", "new", "{", "@", "link", "computer", "}", "object", "that", "acts", "as", "the", "ui", "peer", "of", "this", "{", "@", "link", "node", "}" ]
[ "@", "check", "for", "null", "@", "restricted", "(", "protected", "externally", "class", ")", "protected", "abstract", "computer", "create", "computer", "(", ")", ";" ]
[ "returns", "{", "@", "code", "true", "}", "if", "the", "node", "is", "accepting", "tasks", "needed", "to", "allow", "agents", "programmatic", "suspension", "of", "task", "scheduling", "that", "does", "not", "overlap", "with", "being", "offline", "called", "by", "{", "@", "link", "computer", "#", "is", "accepting", "tasks", "(", ")", "}", "this", "method", "is", "distinct", "from", "{", "@", "link", "computer", "#", "is", "accepting", "tasks", "(", ")", "}", "as", "sometimes", "the", "{", "@", "link", "node", "}", "concrete", "class", "may", "not", "have", "control", "over", "the", "{", "@", "link", "hudson", "model", "computer", "}", "concrete", "class", "associated", "with", "it" ]
[ "return", "true", ";" ]
[ "return", "the", "possibly", "empty", "tag", "cloud", "for", "the", "labels", "of", "this", "node" ]
[ "return", "new", "tag", "cloud", "<", "label", "atom", ">", "(", "get", "assigned", "labels", "(", ")", ",", "new", "weight", "function", "<", "label", "atom", ">", "(", ")", "{", "public", "float", "weight", "(", "label", "atom", "item", ")", "{", "return", "item", "get", "tied", "job", "count", "(", ")", ";", "}", "}", ")", ";" ]
[ "returns", "the", "possibly", "empty", "set", "of", "labels", "that", "are", "assigned", "to", "this", "node", "including", "the", "automatic", "{", "@", "link", "#", "get", "self", "label", "(", ")", "self", "label", "}", "manually", "assigned", "labels", "and", "dynamically", "assigned", "labels", "via", "the", "{", "@", "link", "label", "finder", "}", "extension", "point" ]
[ "set", "<", "label", "atom", ">", "r", "=", "label", "parse", "(", "get", "label", "string", "(", ")", ")", ";", "r", "add", "(", "get", "self", "label", "(", ")", ")", ";", "r", "add", "all", "(", "get", "dynamic", "labels", "(", ")", ")", ";", "return", "collections", "unmodifiable", "set", "(", "r", ")", ";" ]
[ "returns", "the", "manually", "configured", "label", "for", "a", "node", "the", "list", "of", "assigned", "and", "dynamically", "determined", "labels", "is", "available", "via", "{", "@", "link", "#", "get", "assigned", "labels", "(", ")", "}", "and", "includes", "all", "labels", "that", "have", "been", "manually", "configured" ]
[ "public", "abstract", "string", "get", "label", "string", "(", ")", ";" ]
[ "gets", "the", "special", "label", "that", "represents", "this", "node", "itself" ]
[ "return", "label", "atom", "get", "(", "get", "node", "name", "(", ")", ")", ";" ]
[ "called", "by", "the", "{", "@", "link", "node", "}", "to", "help", "determine", "whether", "or", "not", "it", "should", "take", "the", "given", "task", "individual", "properties", "can", "return", "a", "non", "-", "null", "value", "here", "if", "there", "is", "some", "reason", "the", "given", "task", "should", "not", "be", "run", "on", "its", "associated", "node", "by", "default", "this", "method", "returns", "<", "code", ">", "null", "<", "/", "code", ">" ]
[ "return", "null", ";" ]
[ "todo", ":", "should", "this", "be", "modified", "now", "that", "get", "workspace", "is", "moved", "from", "abstract", "project", "to", "abstract", "build", "?" ]
[ "public", "abstract", "@", "check", "for", "null", "file", "path", "get", "workspace", "for", "(", "top", "level", "item", "item", ")", ";" ]
[ "gets", "the", "root", "directory", "of", "this", "node" ]
[ "public", "abstract", "@", "check", "for", "null", "file", "path", "get", "root", "path", "(", ")", ";" ]
[ "gets", "the", "{" ]
[ "public", "abstract", "@", "nonnull", "describable", "list", "<", "node", "property", "<", "?", ">", ",", "node", "property", "descriptor", ">", "get", "node", "properties", "(", ")", ";" ]
[ "gets", "the", "specified", "property", "or", "null", "if", "the", "property", "is", "not", "configured", "for", "this", "node" ]
[ "for", "(", "node", "property", "p", ":", "get", "node", "properties", "(", ")", ")", "{", "if", "(", "clazz", "is", "instance", "(", "p", ")", ")", "{", "return", "clazz", "cast", "(", "p", ")", ";", "}", "}", "return", "null", ";" ]
[ "gets", "the", "property", "from", "the", "given", "classname", "or", "null", "if", "the", "property", "is", "not", "configured", "for", "this", "node" ]
[ "for", "(", "node", "property", "p", ":", "get", "node", "properties", "(", ")", ")", "{", "if", "(", "p", "get", "class", "(", ")", "get", "name", "(", ")", "equals", "(", "class", "name", ")", ")", "{", "return", "p", ";", "}", "}", "return", "null", ";" ]
[ "used", "in", "the", "jelly", "script", "to", "expose", "descriptors" ]
[ "return", "node", "property", "for", "(", "this", ")", ";" ]
[ "returns", "the", "{" ]
[ "return", "jenkins", "get", "instance", "(", ")", "get", "authorization", "strategy", "(", ")", "get", "a", "c", "l", "(", "this", ")", ";" ]
[ "returns", "a", "{", "@", "link", "callable", "}", "that", "when", "run", "on", "the", "channel", "estimates", "the", "clock", "difference" ]
[ "public", "abstract", "callable", "<", "clock", "difference", ",", "i", "o", "exception", ">", "get", "clock", "difference", "callable", "(", ")", ";" ]
[ "returns", "the", "<", "tt", ">", "simple", "property", "<", "/", "tt", ">" ]
[ "return", "this", "property", ";" ]
[ "returns", "the", "coordinate", "s", "decimal", "value" ]
[ "return", "dec", "coordinate", ";" ]
[ "determines", "whether", "a", "decimal", "position", "is", "valid" ]
[ "switch", "(", "co", "ordinate", ")", "{", "case", "lat", ":", "if", "(", "math", "abs", "(", "dec", "coordinate", ")", ">", "90", "0", ")", "{", "return", "false", ";", "}", "break", ";", "case", "lng", ":", "if", "(", "math", "abs", "(", "dec", "coordinate", ")", ">", "180", ")", "{", "return", "false", ";", "}", "}", "return", "true", ";" ]
[ "populate", "this", "object", "by", "parsing", "the", "arguments", "to", "the", "function", "placed", "here", "to", "allow", "multiple", "constructors", "to", "use", "it" ]
[ "num", "util", "nu", "=", "new", "num", "util", "(", ")", ";", "switch", "(", "co", "ordinate", ")", "{", "case", "lat", ":", "switch", "(", "quad", ")", "{", "case", "n", ":", "this", "deg", "=", "deg", ";", "this", "mins", "dec", "mins", "=", "mins", "dec", "mins", ";", "this", "co", "ordinate", "=", "co", "ordinate", ";", "dec", "coordinate", "=", "nu", "round", "(", "this", "deg", "+", "(", "float", ")", "this", "mins", "dec", "mins", "/", "60", ",", "coordinate", "minprecision", ")", ";", "break", ";", "case", "s", ":", "this", "deg", "=", "-", "deg", ";", "this", "mins", "dec", "mins", "=", "mins", "dec", "mins", ";", "this", "co", "ordinate", "=", "co", "ordinate", ";", "dec", "coordinate", "=", "nu", "round", "(", "this", "deg", "-", "(", "(", "float", ")", "this", "mins", "dec", "mins", "/", "60", ")", ",", "coordinate", "minprecision", ")", ";", "}", "case", "lng", ":", "switch", "(", "quad", ")", "{", "case", "e", ":", "this", "deg", "=", "deg", ";", "this", "mins", "dec", "mins", "=", "mins", "dec", "mins", ";", "this", "co", "ordinate", "=", "co", "ordinate", ";", "dec", "coordinate", "=", "nu", "round", "(", "this", "deg", "+", "(", "(", "float", ")", "this", "mins", "dec", "mins", "/", "60", ")", ",", "coordinate", "minprecision", ")", ";", "break", ";", "case", "w", ":", "this", "deg", "=", "-", "deg", ";", "this", "mins", "dec", "mins", "=", "mins", "dec", "mins", ";", "this", "co", "ordinate", "=", "co", "ordinate", ";", "dec", "coordinate", "=", "nu", "round", "(", "this", "deg", "-", "(", "(", "float", ")", "this", "mins", "dec", "mins", "/", "60", ")", ",", "coordinate", "minprecision", ")", ";", "}", "}" ]
[ "heartbeat", "count", "times", "with", "interval", "millis", "milliseconds", "in", "between", "heartbeats", "starting", "at", "clock", "current", "time", "millis" ]
[ "long", "now", "=", "clock", "current", "time", "millis", "(", ")", ";", "heartbeat", "(", "now", ",", "count", ",", "interval", "millis", ")", ";" ]
[ "cleanup", "usage", "of", "separate", "classloader", "in", "test", "involving", "clock", "offset" ]
[ "if", "(", "tccl", "!", "=", "null", ")", "{", "current", "thread", "(", ")", "set", "context", "class", "loader", "(", "tccl", ")", ";", "}", "system", "clear", "property", "(", "clock", "properties", "hazelcast", "clock", "offset", ")", ";" ]
[ "/", "/", "/", "/", "/", "/", "/", "/", "/", "behavior", "boilerplate", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/" ]
[ "return", "new", "event", "source", "<", "event", ">", "(", "ref", ")", ";" ]
[ "sets", "the", "list", "of", "apps", "in", "this", "view", "used", "to", "determine", "the", "fastscroll", "position" ]
[ "m", "apps", "=", "apps", ";", "m", "fast", "scroll", "helper", "=", "new", "all", "apps", "fast", "scroll", "helper", "(", "this", ",", "apps", ")", ";" ]
[ "sets", "the", "number", "of", "apps", "per", "row", "in", "this", "recycler", "view" ]
[ "m", "num", "apps", "per", "row", "=", "num", "apps", "per", "row", ";", "recycler", "view", "recycled", "view", "pool", "pool", "=", "get", "recycled", "view", "pool", "(", ")", ";", "int", "approx", "rows", "=", "(", "int", ")", "math", "ceil", "(", "grid", "available", "height", "px", "/", "grid", "all", "apps", "icon", "size", "px", ")", ";", "pool", "set", "max", "recycled", "views", "(", "all", "apps", "grid", "adapter", "view", "type", "empty", "search", ",", "1", ")", ";", "pool", "set", "max", "recycled", "views", "(", "all", "apps", "grid", "adapter", "view", "type", "search", "divider", ",", "1", ")", ";", "pool", "set", "max", "recycled", "views", "(", "all", "apps", "grid", "adapter", "view", "type", "search", "market", "divider", ",", "1", ")", ";", "pool", "set", "max", "recycled", "views", "(", "all", "apps", "grid", "adapter", "view", "type", "search", "market", ",", "1", ")", ";", "pool", "set", "max", "recycled", "views", "(", "all", "apps", "grid", "adapter", "view", "type", "icon", ",", "approx", "rows", "*", "m", "num", "apps", "per", "row", ")", ";", "pool", "set", "max", "recycled", "views", "(", "all", "apps", "grid", "adapter", "view", "type", "section", "break", ",", "approx", "rows", ")", ";" ]
[ "returns", "the", "available", "scroll", "height", ":", "available", "scroll", "height", "=", "total", "height", "of", "the", "all", "items", "-", "last", "page", "height" ]
[ "int", "padded", "height", "=", "get", "current", "scroll", "y", "(", "m", "apps", "get", "adapter", "items", "(", ")", "size", "(", ")", ",", "0", ")", ";", "int", "total", "height", "=", "padded", "height", "+", "get", "padding", "bottom", "(", ")", ";", "return", "total", "height", "-", "get", "visible", "height", "(", ")", ";" ]
[ "sleep", "a", "bit", "to", "allow", "zookeeper", "state", "propagation" ]
[ "try", "{", "thread", "sleep", "(", "100", ")", ";", "}", "catch", "(", "interrupted", "exception", "e", ")", "{", "thread", "current", "thread", "(", ")", "interrupt", "(", ")", ";", "throw", "new", "runtime", "exception", "(", "e", ")", ";", "}" ]
[ "parses", "the", "given", "file", "and", "returns", "a", "list", "of", "dependency", "information", "that", "it", "contained" ]
[ "return", "parse", "file", "reader", "(", "file", "path", ",", "files", "new", "reader", "(", "new", "file", "(", "file", "path", ")", ",", "standard", "charsets", "utf", "8", ")", ")", ";" ]
[ "parses", "the", "given", "file", "and", "returns", "a", "list", "of", "dependency", "information", "that", "it", "contained", "it", "uses", "the", "passed", "in", "file", "contents", "instead", "of", "reading", "the", "file" ]
[ "return", "parse", "file", "reader", "(", "file", "path", ",", "new", "string", "reader", "(", "file", "contents", ")", ")", ";" ]
[ "optional", "unique", "id", "for", "the", "related", "{", "@", "link", "identity", "provider", "}", "if", "two", "{", "@", "link", "identity", "provider", "}", "define", "two", "users", "with", "the", "same", "id", "then", "users", "are", "considered", "as", "identical" ]
[ "return", "id", ";" ]
[ "non", "-", "blank", "user", "login", "for", "the", "related", "{" ]
[ "return", "provider", "login", ";" ]
[ "return", "true", "if", "groups", "should", "be", "synchronized", "for", "this", "user" ]
[ "return", "groups", "provided", ";" ]
[ "ensures", "that", "the", "xmpp", "server", "instance", "is", "created", "and", "stopped", "before", "the", "camel", "routes", "are", "initialized" ]
[ "embedded", "xmpp", "test", "server", "=", "new", "embedded", "xmpp", "test", "server", "(", ")", ";", "embedded", "xmpp", "test", "server", "stop", "xmpp", "endpoint", "(", ")", ";" ]
[ "get", "an", "identifier", "for", "the", "specified", "details", "by", "default", "this", "method", "will", "return", "an", "identifier", "with", "the", "name", "adapted", "based", "on", "the", "result", "of", "{" ]
[ "if", "(", "is", "case", "insensitive", "(", "jdbc", "environment", ")", ")", "{", "name", "=", "name", "to", "lower", "case", "(", "locale", "root", ")", ";", "}", "return", "new", "identifier", "(", "name", ",", "quoted", ")", ";" ]
[ "specify", "whether", "the", "database", "is", "case", "sensitive" ]
[ "return", "true", ";" ]
[ "return", "the", "rating", "threshold", "above", "which", "ratings", "are", "considered", "to", "be", "relevant", "for", "this", "metric", "defaults", "to", "1" ]
[ "return", "relevant", "rating", "threshhold", ";" ]
[ "compute", "reciprocal", "rank", "based", "on", "provided", "relevant", "document", "i", "ds" ]
[ "list", "<", "rated", "search", "hit", ">", "rated", "hits", "=", "join", "hits", "with", "ratings", "(", "hits", ",", "rated", "docs", ")", ";", "int", "first", "relevant", "=", "-", "1", ";", "int", "rank", "=", "1", ";", "for", "(", "rated", "search", "hit", "hit", ":", "rated", "hits", ")", "{", "optional", "int", "rating", "=", "hit", "get", "rating", "(", ")", ";", "if", "(", "rating", "is", "present", "(", ")", ")", "{", "if", "(", "rating", "get", "as", "int", "(", ")", ">", "=", "this", "relevant", "rating", "threshhold", ")", "{", "first", "relevant", "=", "rank", ";", "break", ";", "}", "}", "rank", "+", "+", ";", "}", "double", "reciprocal", "rank", "=", "(", "first", "relevant", "=", "=", "-", "1", ")", "?", "0", ":", "1", "0d", "/", "first", "relevant", ";", "eval", "query", "quality", "eval", "query", "quality", "=", "new", "eval", "query", "quality", "(", "task", "id", ",", "reciprocal", "rank", ")", ";", "eval", "query", "quality", "set", "metric", "details", "(", "new", "detail", "(", "first", "relevant", ")", ")", ";", "eval", "query", "quality", "add", "hits", "and", "ratings", "(", "rated", "hits", ")", ";", "return", "eval", "query", "quality", ";" ]
[ "the", "ranking", "of", "the", "first", "relevant", "document", "or", "-", "1", "if", "no", "relevant", "document", "was", "found" ]
[ "return", "first", "relevant", "rank", ";" ]
[ "check", "unique", "id", "and", "generated", "hash", "code" ]
[ "check", "hash", "(", "uuid", "from", "string", "(", "uuid", ")", ",", "code", ")", ";" ]
[ "{" ]
[ "cache", "configuration", "cfg", "=", "super", "cache", "configuration", "(", "ignite", "instance", "name", ")", ";", "cfg", "set", "cache", "mode", "(", "local", ")", ";", "cfg", "set", "atomicity", "mode", "(", "atomic", ")", ";", "return", "cfg", ";" ]
[ "{" ]
[ "return", "grid", "cnt", ";" ]
[ "{" ]
[ "return", "1", ";" ]
[ "{" ]
[ "return", "1", ";" ]
[ "during", "jenkins", "start", "-", "up", "before", "{", "@", "link", "init", "milestone", "#", "plugins", "started", "}", "the", "extensions", "lists", "will", "be", "empty", "and", "they", "are", "not", "guaranteed", "to", "be", "fully", "populated", "until", "after", "{", "@", "link", "init", "milestone", "#", "extensions", "augmented", "}", "similarly", "during", "termination", "after", "{", "@", "link", "jenkins", "#", "is", "terminating", "(", ")", "}", "is", "set", "it", "is", "no", "longer", "safe", "to", "access", "the", "extensions", "lists", "if", "you", "attempt", "to", "access", "the", "extensions", "list", "from", "a", "ui", "thread", "while", "the", "extensions", "are", "being", "loaded", "you", "will", "hit", "a", "big", "honking", "great", "monitor", "lock", "that", "will", "block", "until", "the", "effective", "extension", "list", "has", "been", "determined", "(", "as", "if", "a", "plugin", "fails", "to", "start", "all", "of", "the", "failed", "plugin", "s", "extensions", "and", "any", "dependent", "plugins", "extensions", "will", "have", "to", "be", "evicted", "from", "the", "list", "of", "extensions", "in", "practical", "terms", "this", "only", "affects", "the", "jenkins", "is", "loading", "screen", "but", "as", "that", "screen", "uses", "the", "generic", "layouts", "we", "provide", "this", "utility", "method", "so", "that", "the", "generic", "layouts", "can", "avoid", "iterating", "extension", "lists", "while", "jenkins", "is", "starting", "up", "if", "you", "attempt", "to", "access", "the", "extensions", "list", "from", "a", "ui", "thread", "while", "jenkins", "is", "being", "shut", "down", "the", "extensions", "themselves", "may", "no", "longer", "be", "in", "a", "valid", "state", "and", "could", "attempt", "to", "revive", "themselves", "and", "block", "termination", "in", "actual", "terms", "the", "termination", "only", "affects", "those", "views", "required", "to", "render", "{", "@", "link", "hudson", "is", "restarting", "}", "s", "{", "@", "code", "index", "jelly", "}", "which", "is", "the", "same", "set", "as", "the", "{", "@", "link", "hudson", "is", "loading", "}", "pages", "so", "it", "makes", "sense", "to", "use", "both", "checks", "here" ]
[ "final", "jenkins", "jenkins", "=", "jenkins", "get", "instance", "or", "null", "(", ")", ";", "return", "jenkins", "!", "=", "null", "&", "&", "jenkins", "get", "init", "level", "(", ")", "compare", "to", "(", "init", "milestone", "extensions", "augmented", ")", ">", "=", "0", "&", "&", "!", "jenkins", "is", "terminating", "(", ")", ";" ]
[ "adds", "the", "proper", "suffix" ]
[ "string", "builder", "buf", "=", "new", "string", "builder", "(", ")", ";", "buf", "append", "(", "n", ")", "append", "(", "'", "'", ")", ";", "if", "(", "n", "=", "=", "1", ")", "buf", "append", "(", "singular", ")", ";", "else", "buf", "append", "(", "plural", ")", ";", "return", "buf", "to", "string", "(", ")", ";" ]
[ "the", "base", "url", "for", "relative", "links", "contained", "in", "the", "content", "maybe", "be", "different", "from", "url", "if", "the", "request", "redirected" ]
[ "return", "base", ";" ]
[ "returns", "the", "same", "page", "in", "the", "next", "build" ]
[ "return", "get", "url", "(", "run", "get", "next", "build", "(", ")", ")", ";" ]
[ "returns", "the", "same", "page", "in", "the", "previous", "build" ]
[ "return", "get", "url", "(", "run", "get", "previous", "build", "(", ")", ")", ";" ]
[ "gets", "the", "system", "property", "indicated", "by", "the", "specified", "key" ]
[ "return", "system", "properties", "get", "string", "(", "key", ")", ";" ]
[ "reverses", "a", "collection", "so", "that", "it", "can", "be", "easily", "walked", "in", "reverse", "order" ]
[ "list", "<", "t", ">", "list", "=", "new", "array", "list", "<", "t", ">", "(", "collection", ")", ";", "collections", "reverse", "(", "list", ")", ";", "return", "list", ";" ]
[ "creates", "a", "sub", "map", "by", "using", "the", "given", "range", "(", "both", "ends", "inclusive", ")" ]
[ "if", "(", "from", "=", "=", "null", "&", "&", "to", "=", "=", "null", ")", "return", "map", ";", "if", "(", "to", "=", "=", "null", ")", "return", "map", "head", "map", "(", "integer", "parse", "int", "(", "from", ")", "-", "1", ")", ";", "if", "(", "from", "=", "=", "null", ")", "return", "map", "tail", "map", "(", "integer", "parse", "int", "(", "to", ")", ")", ";", "return", "map", "sub", "map", "(", "integer", "parse", "int", "(", "to", ")", ",", "integer", "parse", "int", "(", "from", ")", "-", "1", ")", ";" ]
[ "creates", "a", "sub", "map", "by", "using", "the", "given", "range", "(", "upper", "end", "inclusive", ")" ]
[ "if", "(", "from", "=", "=", "null", "&", "&", "to", "=", "=", "null", ")", "return", "map", ";", "if", "(", "to", "=", "=", "null", ")", "return", "map", "head", "map", "(", "integer", "parse", "int", "(", "from", ")", ")", ";", "if", "(", "from", "=", "=", "null", ")", "return", "map", "tail", "map", "(", "integer", "parse", "int", "(", "to", ")", ")", ";", "return", "map", "sub", "map", "(", "integer", "parse", "int", "(", "to", ")", ",", "integer", "parse", "int", "(", "from", ")", ")", ";" ]
[ "finds", "the", "given", "object", "in", "the", "ancestor", "list", "and", "returns", "its", "url", "this", "is", "used", "to", "determine", "the", "current", "url", "assigned", "to", "the", "given", "object", "so", "that", "one", "can", "compute", "relative", "u", "r", "ls", "from", "it" ]
[ "list", "list", "=", "req", "get", "ancestors", "(", ")", ";", "for", "(", "int", "i", "=", "list", "size", "(", ")", "-", "1", ";", "i", ">", "=", "0", ";", "i", "-", "-", ")", "{", "ancestor", "anc", "=", "(", "ancestor", ")", "list", "get", "(", "i", ")", ";", "if", "(", "anc", "get", "object", "(", ")", "=", "=", "it", ")", "return", "anc", "get", "url", "(", ")", ";", "}", "return", "null", ";" ]
[ "this", "version", "is", "so", "that", "the", "check", "permission", "on", "{" ]
[ "if", "(", "permission", "=", "=", "null", ")", "return", ";", "if", "(", "object", "instanceof", "access", "controlled", ")", "check", "permission", "(", "(", "access", "controlled", ")", "object", ",", "permission", ")", ";", "else", "{", "list", "<", "ancestor", ">", "ancs", "=", "stapler", "get", "current", "request", "(", ")", "get", "ancestors", "(", ")", ";", "for", "(", "ancestor", "anc", ":", "iterators", "reverse", "(", "ancs", ")", ")", "{", "object", "o", "=", "anc", "get", "object", "(", ")", ";", "if", "(", "o", "instanceof", "access", "controlled", ")", "{", "check", "permission", "(", "(", "access", "controlled", ")", "o", ",", "permission", ")", ";", "return", ";", "}", "}", "check", "permission", "(", "jenkins", "get", "instance", "(", ")", ",", "permission", ")", ";", "}" ]
[ "returns", "true", "if", "the", "current", "user", "has", "the", "given", "permission" ]
[ "return", "has", "permission", "(", "jenkins", "get", "instance", "(", ")", ",", "permission", ")", ";" ]
[ "this", "version", "is", "so", "that", "the", "has", "permission", "can", "degrade", "gracefully", "if", "it", "is", "not", "an", "{" ]
[ "if", "(", "permission", "=", "=", "null", ")", "return", "true", ";", "if", "(", "object", "instanceof", "access", "controlled", ")", "return", "(", "(", "access", "controlled", ")", "object", ")", "has", "permission", "(", "permission", ")", ";", "else", "{", "list", "<", "ancestor", ">", "ancs", "=", "stapler", "get", "current", "request", "(", ")", "get", "ancestors", "(", ")", ";", "for", "(", "ancestor", "anc", ":", "iterators", "reverse", "(", "ancs", ")", ")", "{", "object", "o", "=", "anc", "get", "object", "(", ")", ";", "if", "(", "o", "instanceof", "access", "controlled", ")", "{", "return", "(", "(", "access", "controlled", ")", "o", ")", "has", "permission", "(", "permission", ")", ";", "}", "}", "return", "jenkins", "get", "instance", "(", ")", "has", "permission", "(", "permission", ")", ";", "}" ]
[ "returns", "those", "node", "properties", "which", "can", "be", "configured", "as", "global", "node", "properties" ]
[ "list", "<", "node", "property", "descriptor", ">", "result", "=", "new", "array", "list", "<", "node", "property", "descriptor", ">", "(", ")", ";", "collection", "<", "node", "property", "descriptor", ">", "list", "=", "(", "collection", ")", "jenkins", "get", "instance", "(", ")", "get", "descriptor", "list", "(", "node", "property", "class", ")", ";", "for", "(", "node", "property", "descriptor", "npd", ":", "list", ")", "{", "if", "(", "npd", "is", "applicable", "as", "global", "(", ")", ")", "{", "result", "add", "(", "npd", ")", ";", "}", "}", "return", "result", ";" ]
[ "gets", "all", "the", "descriptors", "sorted", "by", "their", "inheritance", "tree", "of", "{", "@", "link", "describable", "}", "so", "that", "descriptors", "of", "similar", "types", "come", "nearby" ]
[ "extension", "list", "<", "descriptor", ">", "exts", "=", "extension", "list", "lookup", "(", "descriptor", "class", ")", ";", "list", "<", "tag", ">", "r", "=", "new", "array", "list", "<", "tag", ">", "(", "exts", "size", "(", ")", ")", ";", "for", "(", "extension", "component", "<", "descriptor", ">", "c", ":", "exts", "get", "components", "(", ")", ")", "{", "descriptor", "d", "=", "c", "get", "instance", "(", ")", ";", "if", "(", "d", "get", "global", "config", "page", "(", ")", "=", "=", "null", ")", "continue", ";", "if", "(", "predicate", "apply", "(", "d", "get", "category", "(", ")", ")", ")", "{", "r", "add", "(", "new", "tag", "(", "c", "ordinal", "(", ")", ",", "d", ")", ")", ";", "}", "}", "collections", "sort", "(", "r", ")", ";", "list", "<", "descriptor", ">", "answer", "=", "new", "array", "list", "<", "descriptor", ">", "(", "r", "size", "(", ")", ")", ";", "for", "(", "tag", "d", ":", "r", ")", "answer", "add", "(", "d", "d", ")", ";", "return", "descriptor", "visibility", "filter", "apply", "(", "jenkins", "get", "instance", "(", ")", ",", "answer", ")", ";" ]
[ "like", "{" ]
[ "return", "get", "sorted", "descriptors", "for", "global", "config", "(", "predicates", "<", "global", "configuration", "category", ">", "always", "true", "(", ")", ")", ";" ]
[ "like", "{" ]
[ "return", "get", "sorted", "descriptors", "for", "global", "config", "(", "new", "predicate", "<", "global", "configuration", "category", ">", "(", ")", "{", "public", "boolean", "apply", "(", "global", "configuration", "category", "cat", ")", "{", "return", "cat", "instanceof", "global", "configuration", "category", "unclassified", ";", "}", "}", ")", ";" ]
[ "works", "like", "jstl", "build", "-", "in", "size", "(", "x", ")", "function", "but", "handle", "null", "gracefully" ]
[ "if", "(", "o", "=", "=", "null", ")", "return", "0", ";", "return", "a", "s", "t", "size", "function", "size", "of", "(", "o", ",", "introspector", "get", "uberspect", "(", ")", ")", ";" ]
README.md exists but content is empty. Use the Edit dataset card button to edit it.
Downloads last month
4
Edit dataset card