docstring_tokens
list
code_tokens
list
[ "test", "the", "property", "'", "enum", "number", "'" ]
[ "public", "void", "enum", "number", "test", "(", ")", "{", "/", "/", "todo", ":", "test", "enum", "number", "}" ]
[ "calculates", "the", "relative", "opcode", "number", "of", "this", "opcode", ",", "as", "compared", "to", "a", "base", "opcode", "ie", "if", "this", "opcode", "was", "dw", "op", "reg", "1", "2", "(", "0x", "5c", ")", ",", "and", "the", "base", "op", "code", "was", "dw", "op", "reg", "0", "(", "0x", "5", "0", ")", ",", "the", "result", "value", "would", "be", "12" ]
[ "public", "int", "get", "relative", "op", "code", "offset", "(", "int", "base", "op", "code", ")", "{", "return", "opcode", "-", "base", "op", "code", ";", "}" ]
[ "add", "splits", "to", "the", "split", "fetcher", "this", "operation", "is", "asynchronous" ]
[ "public", "void", "add", "splits", "(", "list", "<", "split", "t", ">", "splits", "to", "add", ")", "{", "enqueue", "task", "(", "new", "add", "splits", "task", "<", ">", "(", "split", "reader", ",", "splits", "to", "add", ",", "assigned", "splits", ")", ")", ";", "wake", "up", "(", "true", ")", ";", "}" ]
[ "(", "asynchronously", ")", "test", "serialization", "of", "object", "with", "outer", "number", "type" ]
[ "public", "okhttp", "3", "call", "fake", "outer", "composite", "serialize", "async", "(", "outer", "composite", "body", ",", "final", "api", "callback", "<", "outer", "composite", ">", "callback", ")", "throws", "api", "exception", "{", "okhttp", "3", "call", "local", "var", "call", "=", "fake", "outer", "composite", "serialize", "validate", "before", "call", "(", "body", ",", "callback", ")", ";", "type", "local", "var", "return", "type", "=", "new", "type", "token", "<", "outer", "composite", ">", "(", ")", "{", "}", "get", "type", "(", ")", ";", "local", "var", "api", "client", "execute", "async", "(", "local", "var", "call", ",", "local", "var", "return", "type", ",", "callback", ")", ";", "return", "local", "var", "call", ";", "}" ]
[ "sets", "the", "scroll", "offset", "so", "the", "specified", "rectangle", "is", "fully", "in", "view", ",", "if", "possible", "coordinates", "are", "in", "the", "scroll", "pane", "widget", "'", "s", "coordinate", "system" ]
[ "public", "void", "scroll", "to", "(", "float", "x", ",", "float", "y", ",", "float", "width", ",", "float", "height", ")", "{", "scroll", "to", "(", "x", ",", "y", ",", "width", ",", "height", ",", "false", ",", "false", ")", ";", "}" ]
[ "get", "prefix", "integer" ]
[ "public", "integer", "get", "prefix", "integer", "(", ")", "{", "return", "prefix", "integer", ";", "}" ]
[ "shutdown", "the", "metrics", "system" ]
[ "public", "static", "void", "shutdown", "(", ")", "{", "instance", "shutdown", "instance", "(", ")", ";", "}" ]
[ "returns", "bytes", "reference", "composed", "of", "the", "provided", "byte", "buffers" ]
[ "static", "bytes", "reference", "from", "byte", "buffers", "(", "byte", "buffer", "[", "]", "buffers", ")", "{", "int", "buffer", "count", "=", "buffers", "length", ";", "if", "(", "buffer", "count", "=", "=", "0", ")", "{", "return", "bytes", "array", "empty", ";", "}", "else", "if", "(", "buffer", "count", "=", "=", "1", ")", "{", "return", "from", "byte", "buffer", "(", "buffers", "[", "0", "]", ")", ";", "}", "else", "{", "bytes", "reference", "[", "]", "references", "=", "new", "bytes", "reference", "[", "buffer", "count", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "buffer", "count", ";", "+", "+", "i", ")", "{", "references", "[", "i", "]", "=", "from", "byte", "buffer", "(", "buffers", "[", "i", "]", ")", ";", "}", "return", "composite", "bytes", "reference", "of", "(", "references", ")", ";", "}", "}" ]
[ "do", "what", "needs", "to", "be", "done", "before", "the", "header", "is", "rendered", "this", "usually", "involves", "setting", "page", "variables", "for", "javascript", "and", "css", "rendering" ]
[ "protected", "void", "pre", "head", "(", "page", "html", "<", ">", "html", ")", "{", "}" ]
[ "test", "the", "property", "'", "id", "'" ]
[ "public", "void", "id", "test", "(", ")", "{", "/", "/", "todo", ":", "test", "id", "}" ]
[ "set", "table", "'", "s", "maximum", "long", "key", "value" ]
[ "void", "set", "max", "key", "(", "long", "max", "key", ")", "{", "record", "set", "long", "value", "(", "max", "key", "column", ",", "max", "key", ")", ";", "}" ]
[ "a", "sensible", "definition", "of", "{", "@", "link", "#", "iterator", "}", "in", "terms", "of", "{", "@", "link", "#", "entry", "set", "}", "and", "{", "@", "link", "#", "remove", "(", "object", ")", "}", "if", "you", "override", "either", "of", "these", "methods", ",", "you", "may", "wish", "to", "override", "{", "@", "link", "#", "iterator", "}", "to", "forward", "to", "this", "implementation" ]
[ "protected", "iterator", "<", "e", ">", "standard", "iterator", "(", ")", "{", "return", "multisets", "iterator", "impl", "(", "this", ")", ";", "}" ]
[ "get", "the", "specific", "external", "resource", "information", "by", "the", "resource", "name" ]
[ "set", "<", "external", "resource", "info", ">", "get", "external", "resource", "infos", "(", "string", "resource", "name", ")", ";" ]
[ "get", "accounts", "collection" ]
[ "public", "mongo", "collection", "<", "document", ">", "get", "accounts", "collection", "(", ")", "{", "return", "accounts", "collection", ";", "}" ]
[ "it", "'", "s", "recommended", "to", "call", "exactly", "once", "in", "the", "entire", "lifetime", "of", "the", "application" ]
[ "public", "static", "downloader", "impl", "init", "(", "@", "nullable", "final", "ok", "http", "client", "builder", "builder", ")", "{", "instance", "=", "new", "downloader", "impl", "(", "builder", "!", "=", "null", "?", "builder", ":", "new", "ok", "http", "client", "builder", "(", ")", ")", ";", "return", "instance", ";", "}" ]
[ "set", "the", "blue", "component", "of", "{", "@", "code", "color", "}", "to", "be", "{", "@", "code", "blue", "}" ]
[ "public", "static", "int", "set", "blue", "component", "(", "@", "color", "int", "int", "color", ",", "@", "float", "range", "(", "from", "=", "0", ",", "to", "=", "1", ")", "float", "blue", ")", "{", "return", "(", "color", "&", "0xffffff", "0", "0", ")", "|", "(", "int", ")", "(", "blue", "*", "255", "0f", "+", "0", "5f", ")", ";", "}" ]
[ "clears", "the", "queue" ]
[ "public", "void", "clear", "(", ")", "{", "if", "(", "length", "=", "=", "0", ")", "{", "return", ";", "}", "media", "period", "holder", "front", "=", "assertions", "check", "state", "not", "null", "(", "playing", ")", ";", "old", "front", "period", "uid", "=", "front", "uid", ";", "old", "front", "period", "window", "sequence", "number", "=", "front", "info", "id", "window", "sequence", "number", ";", "while", "(", "front", "!", "=", "null", ")", "{", "front", "release", "(", ")", ";", "front", "=", "front", "get", "next", "(", ")", ";", "}", "playing", "=", "null", ";", "loading", "=", "null", ";", "reading", "=", "null", ";", "length", "=", "0", ";", "notify", "queue", "update", "(", ")", ";", "}" ]
[ "given", "a", "set", "of", "schedulables", "and", "a", "number", "of", "slots", ",", "compute", "their", "weighted", "fair", "shares", "the", "min", "and", "max", "shares", "and", "of", "the", "schedulables", "are", "assumed", "to", "be", "set", "beforehand", "we", "compute", "the", "fairest", "possible", "allocation", "of", "shares", "to", "the", "schedulables", "that", "respects", "their", "min", "and", "max", "shares", "to", "understand", "what", "this", "method", "does", ",", "we", "must", "first", "define", "what", "weighted", "fair", "sharing", "means", "in", "the", "presence", "of", "min", "and", "max", "shares", "if", "there", "were", "no", "minimum", "or", "maximum", "shares", ",", "then", "weighted", "fair", "sharing", "would", "be", "achieved", "if", "the", "ratio", "of", "slots", "assigned", "weight", "was", "equal", "for", "each", "schedulable", "and", "all", "slots", "were", "assigned", "minimum", "and", "maximum", "shares", "add", "a", "further", "twist", "-", "some", "schedulables", "may", "have", "a", "min", "share", "higher", "than", "their", "assigned", "share", "or", "a", "max", "share", "lower", "than", "their", "assigned", "share", "to", "deal", "with", "these", "possibilities", ",", "we", "define", "an", "assignment", "of", "slots", "as", "being", "fair", "if", "there", "exists", "a", "ratio", "r", "such", "that", ":", "schedulables", "s", "where", "s", "min", "share", "{", "@", "literal", ">", "}", "r", "s", "weight", "are", "given", "share", "s", "min", "share", "-", "schedulables", "s", "where", "s", "max", "share", "{", "@", "literal", "<", "}", "r", "s", "weight", "are", "given", "s", "max", "share", "-", "all", "other", "schedulables", "s", "are", "assigned", "share", "r", "s", "weight", "-", "the", "sum", "of", "all", "the", "shares", "is", "total", "slots", "we", "call", "r", "the", "weight", "-", "to", "-", "slots", "ratio", "because", "it", "converts", "a", "schedulable", "'", "s", "weight", "to", "the", "number", "of", "slots", "it", "is", "assigned", "we", "compute", "a", "fair", "allocation", "by", "finding", "a", "suitable", "weight", "-", "to", "-", "slot", "ratio", "r", "to", "do", "this", ",", "we", "use", "binary", "search", "given", "a", "ratio", "r", ",", "we", "compute", "the", "number", "of", "slots", "that", "would", "be", "used", "in", "total", "with", "this", "ratio", "(", "the", "sum", "of", "the", "shares", "computed", "using", "the", "conditions", "above", ")", "if", "this", "number", "of", "slots", "is", "less", "than", "total", "slots", ",", "then", "r", "is", "too", "small", "and", "more", "slots", "could", "be", "assigned", "if", "the", "number", "of", "slots", "is", "more", "than", "total", "slots", ",", "then", "r", "is", "too", "large", "we", "begin", "the", "binary", "search", "with", "a", "lower", "bound", "on", "r", "of", "0", "(", "which", "means", "that", "all", "schedulables", "are", "only", "given", "their", "min", "share", ")", "and", "an", "upper", "bound", "computed", "to", "be", "large", "enough", "that", "too", "many", "slots", "are", "given", "(", "by", "doubling", "r", "until", "we", "use", "more", "than", "total", "resources", "resources", ")", "the", "helper", "method", "resource", "used", "with", "weight", "to", "resource", "ratio", "computes", "the", "total", "resources", "used", "with", "a", "given", "value", "of", "r", "the", "running", "time", "of", "this", "algorithm", "is", "linear", "in", "the", "number", "of", "schedulables", ",", "because", "resource", "used", "with", "weight", "to", "resource", "ratio", "is", "linear", "-", "time", "and", "the", "number", "of", "iterations", "of", "binary", "search", "is", "a", "constant", "(", "dependent", "on", "desired", "precision", ")" ]
[ "private", "static", "void", "compute", "shares", "internal", "(", "collection", "<", "?", "extends", "schedulable", ">", "all", "schedulables", ",", "resource", "total", "resources", ",", "string", "type", ",", "boolean", "is", "steady", "share", ")", "{", "collection", "<", "schedulable", ">", "schedulables", "=", "new", "array", "list", "<", ">", "(", ")", ";", "long", "taken", "resources", "=", "handle", "fixed", "fair", "shares", "(", "all", "schedulables", ",", "schedulables", ",", "is", "steady", "share", ",", "type", ")", ";", "if", "(", "schedulables", "is", "empty", "(", ")", ")", "{", "return", ";", "}", "/", "/", "find", "an", "upper", "bound", "on", "r", "that", "we", "can", "use", "in", "our", "binary", "search", "we", "start", "/", "/", "at", "r", "=", "1", "and", "double", "it", "until", "we", "have", "either", "used", "all", "the", "resources", "or", "we", "/", "/", "have", "met", "all", "schedulables", "'", "max", "shares", "long", "total", "max", "share", "=", "0", ";", "for", "(", "schedulable", "sched", ":", "schedulables", ")", "{", "long", "max", "share", "=", "sched", "get", "max", "share", "(", ")", "get", "resource", "value", "(", "type", ")", ";", "total", "max", "share", "=", "safe", "add", "(", "max", "share", ",", "total", "max", "share", ")", ";", "if", "(", "total", "max", "share", "=", "=", "long", "max", "value", ")", "{", "break", ";", "}", "}", "long", "total", "resource", "=", "math", "max", "(", "(", "total", "resources", "get", "resource", "value", "(", "type", ")", "-", "taken", "resources", ")", ",", "0", ")", ";", "total", "resource", "=", "math", "min", "(", "total", "max", "share", ",", "total", "resource", ")", ";", "double", "r", "max", "=", "1", "0", ";", "while", "(", "resource", "used", "with", "weight", "to", "resource", "ratio", "(", "r", "max", ",", "schedulables", ",", "type", ")", "<", "total", "resource", ")", "{", "r", "max", "*", "=", "2", "0", ";", "}", "/", "/", "perform", "the", "binary", "search", "for", "up", "to", "compute", "fair", "shares", "iterations", "steps", "double", "left", "=", "0", ";", "double", "right", "=", "r", "max", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "compute", "fair", "shares", "iterations", ";", "i", "+", "+", ")", "{", "double", "mid", "=", "(", "left", "+", "right", ")", "/", "2", "0", ";", "long", "planned", "resource", "used", "=", "resource", "used", "with", "weight", "to", "resource", "ratio", "(", "mid", ",", "schedulables", ",", "type", ")", ";", "if", "(", "planned", "resource", "used", "=", "=", "total", "resource", ")", "{", "right", "=", "mid", ";", "break", ";", "}", "else", "if", "(", "planned", "resource", "used", "<", "total", "resource", ")", "{", "left", "=", "mid", ";", "}", "else", "{", "right", "=", "mid", ";", "}", "}", "/", "/", "set", "the", "fair", "shares", "based", "on", "the", "value", "of", "r", "we", "'", "ve", "converged", "to", "for", "(", "schedulable", "sched", ":", "schedulables", ")", "{", "resource", "target", ";", "if", "(", "is", "steady", "share", ")", "{", "target", "=", "(", "(", "f", "s", "queue", ")", "sched", ")", "get", "steady", "fair", "share", "(", ")", ";", "}", "else", "{", "target", "=", "sched", "get", "fair", "share", "(", ")", ";", "}", "target", "set", "resource", "value", "(", "type", ",", "compute", "share", "(", "sched", ",", "right", ",", "type", ")", ")", ";", "}", "}" ]
[ "find", "the", "fields", "constant", "that", "matches", "name", ",", "or", "null", "if", "its", "not", "found" ]
[ "public", "static", "fields", "find", "by", "name", "(", "string", "name", ")", "{", "return", "by", "name", "get", "(", "name", ")", ";", "}" ]
[ "clean", "close", "the", "internal", "{", "@", "link", "producer", "}" ]
[ "void", "close", "clean", "(", ")", ";" ]
[ "executes", "the", "given", "task", "in", "a", "fixed", "thread", "pool", "at", "fix", "rate" ]
[ "public", "static", "<", "t", ">", "void", "execute", "by", "fixed", "at", "fix", "rate", "(", "@", "int", "range", "(", "from", "=", "1", ")", "final", "int", "size", ",", "final", "task", "<", "t", ">", "task", ",", "final", "long", "period", ",", "final", "time", "unit", "unit", ",", "@", "int", "range", "(", "from", "=", "1", ",", "to", "=", "10", ")", "final", "int", "priority", ")", "{", "execute", "at", "fixed", "rate", "(", "get", "pool", "by", "type", "and", "priority", "(", "size", ",", "priority", ")", ",", "task", ",", "0", ",", "period", ",", "unit", ")", ";", "}" ]
[ "sets", "spark", "to", "trust", "forwarded", ",", "x", "-", "forwarded", "-", "host", ",", "x", "-", "forwarded", "-", "server", ",", "x", "-", "forwarded", "-", "for", ",", "x", "-", "forwarded", "-", "proto", ",", "x", "-", "proxied", "-", "https", "headers", "as", "defined", "at", "https", ":", "www", "eclipse", "orgjettyjavadoccurrentorgeclipsejettyserver", "forwarded", "request", "customizer", "html" ]
[ "public", "static", "void", "trust", "forward", "headers", "(", ")", "{", "get", "instance", "(", ")", "trust", "forward", "headers", "(", ")", ";", "}" ]
[ "gets", "the", "current", "matrix" ]
[ "public", "matrix", "get", "matrix", "(", ")", "{", "return", "m", "matrix", ";", "}" ]
[ "model", "tests", "for", "format", "test" ]
[ "public", "void", "test", "format", "test", "(", ")", "{", "/", "/", "todo", ":", "test", "format", "test", "}" ]
[ "return", "whether", "the", "sources", "of", "the", "rule", "in", "{", "@", "code", "rule", "context", "}", "should", "be", "instrumented", "based", "on", "the", "-", "-", "instrumentation", "filter", "and", "-", "-", "instrument", "test", "targets", "config", "settings" ]
[ "public", "static", "boolean", "should", "include", "local", "sources", "(", "build", "configuration", "config", ",", "label", "label", ",", "boolean", "is", "test", ")", "{", "return", "(", "(", "config", "should", "instrument", "test", "targets", "(", ")", "|", "|", "!", "is", "test", ")", "&", "&", "config", "get", "instrumentation", "filter", "(", ")", "is", "included", "(", "label", "to", "string", "(", ")", ")", ")", ";", "}" ]
[ "get", "an", "xattr", "for", "a", "file", "or", "directory", "the", "name", "must", "be", "prefixed", "with", "the", "namespace", "followed", "by", "\"", "\"", "for", "example", ",", "\"", "user", "attr", "\"", "refer", "to", "the", "hdfs", "extended", "attributes", "user", "documentation", "for", "details" ]
[ "public", "byte", "[", "]", "get", "x", "attr", "(", "path", "path", ",", "final", "string", "name", ")", "throws", "i", "o", "exception", "{", "final", "path", "abs", "f", "=", "fix", "relative", "part", "(", "path", ")", ";", "return", "new", "f", "s", "link", "resolver", "<", "byte", "[", "]", ">", "(", ")", "{", "@", "override", "public", "byte", "[", "]", "next", "(", "final", "abstract", "file", "system", "fs", ",", "final", "path", "p", ")", "throws", "i", "o", "exception", "{", "return", "fs", "get", "x", "attr", "(", "p", ",", "name", ")", ";", "}", "}", "resolve", "(", "this", ",", "abs", "f", ")", ";", "}" ]
[ "gets", "the", "rack", "name", "of", "the", "node", "where", "the", "attempt", "ran" ]
[ "public", "string", "get", "rack", "name", "(", ")", "{", "return", "rack", "name", "=", "=", "null", "?", "null", ":", "rack", "name", "to", "string", "(", ")", ";", "}" ]
[ "create", "a", "generic", "helper", "function", "that", "performs", "all", "the", "work", "of", "merging", "the", "global", "highlight", "builder", "parameter", ",", "the", "(", "potential", ")", "overwrite", "on", "the", "field", "level", "and", "the", "default", "value", "from", "{", "@", "link", "highlight", "builder", "#", "default", "options", "}", "before", "making", "the", "assertion", "that", "the", "value", "in", "the", "highlight", "builder", "and", "the", "actual", "value", "in", "the", "{", "@", "link", "field", "options", "}", "passed", "in", "is", "the", "same" ]
[ "private", "static", "bi", "consumer", "<", "function", "<", "abstract", "highlighter", "builder", "<", "?", ">", ",", "object", ">", ",", "function", "<", "field", "options", ",", "object", ">", ">", "merge", "before", "chek", "(", "highlight", "builder", "highlight", "builder", ",", "field", "field", "builder", ",", "field", "options", "options", ")", "{", "return", "(", "highlight", "builder", "parameter", "accessor", ",", "field", "options", "parameter", "accessor", ")", "-", ">", "{", "object", "expected", "value", "=", "null", ";", "object", "global", "level", "value", "=", "highlight", "builder", "parameter", "accessor", "apply", "(", "highlight", "builder", ")", ";", "object", "field", "level", "value", "=", "highlight", "builder", "parameter", "accessor", "apply", "(", "field", "builder", ")", ";", "if", "(", "field", "level", "value", "!", "=", "null", ")", "{", "expected", "value", "=", "field", "level", "value", ";", "}", "else", "if", "(", "global", "level", "value", "!", "=", "null", ")", "{", "expected", "value", "=", "global", "level", "value", ";", "}", "else", "{", "expected", "value", "=", "field", "options", "parameter", "accessor", "apply", "(", "highlight", "builder", "default", "options", ")", ";", "}", "object", "actual", "value", "=", "field", "options", "parameter", "accessor", "apply", "(", "options", ")", ";", "if", "(", "actual", "value", "instanceof", "string", "[", "]", ")", "{", "assert", "array", "equals", "(", "(", "string", "[", "]", ")", "expected", "value", ",", "(", "string", "[", "]", ")", "actual", "value", ")", ";", "}", "else", "if", "(", "actual", "value", "instanceof", "character", "[", "]", ")", "{", "if", "(", "expected", "value", "instanceof", "char", "[", "]", ")", "{", "assert", "array", "equals", "(", "highlight", "builder", "convert", "char", "array", "(", "(", "char", "[", "]", ")", "expected", "value", ")", ",", "(", "character", "[", "]", ")", "actual", "value", ")", ";", "}", "else", "{", "assert", "array", "equals", "(", "(", "character", "[", "]", ")", "expected", "value", ",", "(", "character", "[", "]", ")", "actual", "value", ")", ";", "}", "}", "else", "{", "assert", "equals", "(", "expected", "value", ",", "actual", "value", ")", ";", "}", "}", ";", "}" ]
[ "return", "the", "content", "-", "length", "header", "or", "-", "1", "if", "unknown" ]
[ "public", "long", "get", "content", "length", "(", ")", "{", "string", "value", "=", "get", "first", "(", "content", "length", ")", ";", "return", "(", "value", "!", "=", "null", "?", "long", "parse", "long", "(", "value", ")", ":", "-", "1", ")", ";", "}" ]
[ "return", "the", "wrapped", "method", "parameter", ",", "assuming", "it", "is", "present" ]
[ "protected", "final", "method", "parameter", "obtain", "method", "parameter", "(", ")", "{", "assert", "state", "(", "this", "method", "parameter", "!", "=", "null", ",", "\"", "neither", "field", "nor", "method", "parameter", "\"", ")", ";", "return", "this", "method", "parameter", ";", "}" ]
[ "gets", "the", "match", "for", "the", "association", "indicated", "by", "the", "source", "and", "destination", "address" ]
[ "protected", "v", "t", "match", "get", "match", "(", "address", "source", ",", "address", "destination", ")", "{", "list", "<", "v", "t", "match", "set", ">", "match", "sets", "=", "session", "get", "match", "sets", "(", ")", ";", "/", "/", "get", "match", "set", "2", "since", "0", "is", "manual", "matches", "and", "1", "is", "implied", "matches", "v", "t", "match", "set", "vt", "match", "set", "=", "match", "sets", "get", "(", "2", ")", ";", "assert", "not", "null", "(", "vt", "match", "set", ")", ";", "collection", "<", "v", "t", "match", ">", "matches", "=", "vt", "match", "set", "get", "matches", "(", "source", ",", "destination", ")", ";", "if", "(", "matches", "is", "empty", "(", ")", ")", "{", "return", "null", ";", "}", "v", "t", "match", "[", "]", "matches", "array", "=", "matches", "to", "array", "(", "new", "v", "t", "match", "[", "matches", "size", "(", ")", "]", ")", ";", "assert", "equals", "(", "1", ",", "matches", "array", "length", ")", ";", "v", "t", "match", "vt", "match", "=", "matches", "array", "[", "0", "]", ";", "wait", "for", "swing", "(", ")", ";", "return", "vt", "match", ";", "}" ]
[ "verifies", "that", "an", "operation", "returning", "a", "\"", "maybe", "i", "o", "e", "\"", "failed", "with", "an", "access", "denied", "exception", "in", "the", "maybe", "instance" ]
[ "public", "void", "assert", "commit", "access", "denied", "(", "final", "path", "path", ",", "final", "commit", "operations", "maybe", "i", "o", "e", "maybe", "i", "o", "e", ")", "{", "i", "o", "exception", "ex", "=", "maybe", "i", "o", "e", "get", "exception", "(", ")", ";", "assert", "not", "null", "(", "\"", "no", "ioe", "in", "\"", "+", "maybe", "i", "o", "e", "+", "\"", "for", "\"", "+", "path", ",", "ex", ")", ";", "if", "(", "!", "(", "ex", "instanceof", "access", "denied", "exception", ")", ")", "{", "contract", "test", "utils", "fail", "(", "\"", "wrong", "exception", "class", "for", "commit", "to", "\"", "+", "path", ",", "ex", ")", ";", "}", "}" ]
[ "set", "the", "timeout", "for", "this", "object", "in", "seconds" ]
[ "public", "void", "set", "timeout", "in", "seconds", "(", "int", "seconds", ")", "{", "set", "timeout", "in", "millis", "(", "seconds", "*", "1000l", ")", ";", "}" ]
[ "adds", "query", "command", "options" ]
[ "private", "void", "add", "query", "commands", "(", "options", "opt", ")", "{", "option", "query", "=", "option", "builder", "with", "long", "opt", "(", "query", ")", "has", "arg", "(", ")", "with", "description", "(", "\"", "queries", "the", "disk", "balancer", "\"", "+", "\"", "status", "of", "a", "given", "datanode", "\"", ")", "create", "(", ")", ";", "get", "query", "options", "(", ")", "add", "option", "(", "query", ")", ";", "opt", "add", "option", "(", "query", ")", ";", "/", "/", "please", "note", ":", "adding", "this", "only", "to", "query", "options", "since", "-", "v", "is", "already", "/", "/", "added", "to", "global", "table", "option", "verbose", "=", "option", "builder", "with", "long", "opt", "(", "verbose", ")", "with", "description", "(", "\"", "prints", "details", "of", "the", "plan", "that", "is", "being", "executed", "\"", "+", "\"", "on", "the", "node", "\"", ")", "create", "(", ")", ";", "get", "query", "options", "(", ")", "add", "option", "(", "verbose", ")", ";", "}" ]
[ "converts", "a", "short", "to", "the", "corresponding", "2", "-", "byte", "little", "endian", "array" ]
[ "static", "byte", "[", "]", "short", "to", "little", "endian", "(", "short", "value", ")", "{", "return", "integer", "to", "little", "endian", "(", "new", "byte", "[", "2", "]", ",", "0", ",", "value", ",", "2", ")", ";", "}" ]
[ "get", "the", "value", "of", "the", "<", "code", ">", "name", "<", "code", ">", "property", ",", "without", "doing", "<", "a", "href", "=", "\"", "#", "variable", "expansion", "\"", ">", "variable", "expansion", "if", "the", "key", "is", "deprecated", ",", "it", "returns", "the", "value", "of", "the", "first", "key", "which", "replaces", "the", "deprecated", "key", "and", "is", "not", "null" ]
[ "public", "string", "get", "raw", "(", "string", "name", ")", "{", "string", "[", "]", "names", "=", "handle", "deprecation", "(", "deprecation", "context", "get", "(", ")", ",", "name", ")", ";", "string", "result", "=", "null", ";", "for", "(", "string", "n", ":", "names", ")", "{", "result", "=", "get", "props", "(", ")", "get", "property", "(", "n", ")", ";", "}", "return", "result", ";", "}" ]
[ "returns", "{", "@", "code", "true", "}", "if", "{", "@", "link", "equivalence", "#", "equivalent", "(", "object", ",", "object", ")", "}", "applied", "to", "the", "wrapped", "references", "is", "{", "@", "code", "true", "}", "and", "both", "wrappers", "use", "the", "{", "@", "link", "object", "#", "equals", "(", "object", ")", "same", "}", "equivalence" ]
[ "public", "boolean", "equals", "(", "@", "nullable", "object", "obj", ")", "{", "if", "(", "obj", "=", "=", "this", ")", "{", "return", "true", ";", "}", "if", "(", "obj", "instanceof", "wrapper", ")", "{", "wrapper", "<", "?", ">", "that", "=", "(", "wrapper", "<", "?", ">", ")", "obj", ";", "/", "/", "note", ":", "not", "necessarily", "a", "wrapper", "<", "t", ">", "if", "(", "this", "equivalence", "equals", "(", "that", "equivalence", ")", ")", "{", "/", "*", "*", "we", "'", "ll", "accept", "that", "as", "sufficient", "\"", "proof", "\"", "that", "either", "equivalence", "should", "be", "able", "to", "*", "handle", "either", "reference", ",", "so", "it", "'", "s", "safe", "to", "circumvent", "compile", "-", "time", "type", "checking", "*", "/", "@", "suppress", "warnings", "(", "\"", "unchecked", "\"", ")", "equivalence", "<", "object", ">", "equivalence", "=", "(", "equivalence", "<", "object", ">", ")", "this", "equivalence", ";", "return", "equivalence", "equivalent", "(", "this", "reference", ",", "that", "reference", ")", ";", "}", "}", "return", "false", ";", "}" ]
[ "return", "the", "configured", "{", "@", "link", "builder", "#", "route", "matcher", "(", "route", "matcher", ")", "}" ]
[ "route", "matcher", "route", "matcher", "(", ")", ";" ]
[ "verifies", "that", "the", "{", "@", "code", "set", "}", "returned", "by", "{", "@", "code", "adjacent", "edges", "}", "has", "the", "expected", "mutability", "property", "(", "see", "the", "{", "@", "code", "network", "}", "documentation", "for", "more", "information", ")" ]
[ "public", "abstract", "void", "adjacent", "edges", "check", "returned", "set", "mutability", "(", ")", ";" ]
[ "set", "the", "array", "of", "string", "values", "for", "the", "<", "code", ">", "name", "<", "code", ">", "property", "as", "as", "comma", "delimited", "values" ]
[ "public", "void", "set", "strings", "(", "string", "name", ",", "string", "values", ")", "{", "set", "(", "name", ",", "string", "utils", "array", "to", "string", "(", "values", ")", ")", ";", "}" ]
[ "get", "a", "listing", "of", "the", "given", "directory", "using", "{", "@", "link", "file", "util", "#", "list", "files", "(", "file", ")", "}" ]
[ "public", "string", "[", "]", "list", "(", "@", "nullable", "fs", "volume", "spi", "volume", ",", "file", "dir", ")", "throws", "i", "o", "exception", "{", "final", "long", "begin", "=", "profiling", "event", "hook", "before", "metadata", "op", "(", "volume", ",", "list", ")", ";", "try", "{", "fault", "injector", "event", "hook", "before", "metadata", "op", "(", "volume", ",", "list", ")", ";", "string", "[", "]", "children", "=", "file", "util", "list", "(", "dir", ")", ";", "profiling", "event", "hook", "after", "metadata", "op", "(", "volume", ",", "list", ",", "begin", ")", ";", "return", "children", ";", "}", "catch", "(", "exception", "e", ")", "{", "on", "failure", "(", "volume", ",", "begin", ")", ";", "throw", "e", ";", "}", "}" ]
[ "sets", "{", "@", "link", "format", "#", "drm", "init", "data", "}", "the", "default", "value", "is", "{", "@", "code", "null", "}" ]
[ "public", "builder", "set", "drm", "init", "data", "(", "@", "nullable", "drm", "init", "data", "drm", "init", "data", ")", "{", "this", "drm", "init", "data", "=", "drm", "init", "data", ";", "return", "this", ";", "}" ]
[ "same", "as", "{", "@", "link", "#", "get", "derived", "artifact", "(", "path", "fragment", ",", "artifact", "root", ")", "}", "but", "includes", "the", "option", "to", "use", "a", "content", "-", "based", "path", "for", "this", "artifact", "(", "see", "{", "@", "link", "build", "configuration", "#", "use", "content", "based", "output", "paths", "(", ")", "}", ")" ]
[ "artifact", "derived", "artifact", "get", "derived", "artifact", "(", "path", "fragment", "root", "relative", "path", ",", "artifact", "root", "root", ",", "boolean", "content", "based", "path", ")", ";" ]
[ "set", "the", "separator", "to", "use", "in", "-", "between", "file", "name", "parts", "default", "is", "an", "underscore", "(", "\"", "\"", ")" ]
[ "public", "void", "set", "separator", "(", "@", "nullable", "string", "separator", ")", "{", "this", "separator", "=", "(", "separator", "!", "=", "null", "?", "separator", ":", "default", "separator", ")", ";", "}" ]
[ "try", "to", "commit", "the", "allocation", "proposal", "this", "also", "gives", "the", "option", "of", "not", "updating", "a", "pending", "queued", "request" ]
[ "boolean", "try", "commit", "(", "resource", "cluster", ",", "resource", "commit", "request", "proposal", ",", "boolean", "update", "pending", ")", ";" ]
[ "testing", "statistics", "of", "open", ",", "append", ",", "rename", "and", "exists", "method", "calls" ]
[ "public", "void", "test", "open", "append", "rename", "exists", "(", ")", "throws", "i", "o", "exception", "{", "describe", "(", "\"", "testing", "counter", "values", "on", "calling", "open", ",", "append", "and", "rename", "and", "\"", "+", "\"", "exists", "methods", "on", "abfs", "\"", ")", ";", "azure", "blob", "file", "system", "fs", "=", "get", "file", "system", "(", ")", ";", "path", "create", "file", "path", "=", "path", "(", "get", "method", "name", "(", ")", ")", ";", "path", "dest", "create", "file", "path", "=", "path", "(", "get", "method", "name", "(", ")", "+", "\"", "new", "\"", ")", ";", "fs", "create", "(", "create", "file", "path", ")", ";", "fs", "open", "(", "create", "file", "path", ")", ";", "fs", "append", "(", "create", "file", "path", ")", ";", "assert", "true", "(", "fs", "rename", "(", "create", "file", "path", ",", "dest", "create", "file", "path", ")", ")", ";", "map", "<", "string", ",", "long", ">", "metric", "map", "=", "fs", "get", "instrumentation", "map", "(", ")", ";", "/", "/", "testing", "single", "method", "calls", "to", "open", ",", "append", "and", "rename", "assert", "abfs", "statistics", "(", "abfs", "statistic", "call", "open", ",", "1", ",", "metric", "map", ")", ";", "assert", "abfs", "statistics", "(", "abfs", "statistic", "call", "append", ",", "1", ",", "metric", "map", ")", ";", "assert", "abfs", "statistics", "(", "abfs", "statistic", "call", "rename", ",", "1", ",", "metric", "map", ")", ";", "/", "/", "testing", "if", "file", "exists", "at", "path", "assert", "true", "(", "string", "format", "(", "\"", "file", "with", "name", "%", "s", "should", "exist", "\"", ",", "dest", "create", "file", "path", ")", ",", "fs", "exists", "(", "dest", "create", "file", "path", ")", ")", ";", "assert", "false", "(", "string", "format", "(", "\"", "file", "with", "name", "%", "s", "should", "not", "exist", "\"", ",", "create", "file", "path", ")", ",", "fs", "exists", "(", "create", "file", "path", ")", ")", ";", "metric", "map", "=", "fs", "get", "instrumentation", "map", "(", ")", ";", "/", "/", "testing", "exists", "(", ")", "calls", "assert", "abfs", "statistics", "(", "abfs", "statistic", "call", "exist", ",", "2", ",", "metric", "map", ")", ";", "/", "/", "re", "-", "initialising", "abfs", "to", "reset", "statistic", "values", "fs", "initialize", "(", "fs", "get", "uri", "(", ")", ",", "fs", "get", "conf", "(", ")", ")", ";", "fs", "create", "(", "dest", "create", "file", "path", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "number", "of", "ops", ";", "i", "+", "+", ")", "{", "fs", "open", "(", "dest", "create", "file", "path", ")", ";", "fs", "append", "(", "dest", "create", "file", "path", ")", ";", "}", "metric", "map", "=", "fs", "get", "instrumentation", "map", "(", ")", ";", "/", "/", "testing", "large", "number", "of", "method", "calls", "to", "open", ",", "append", "assert", "abfs", "statistics", "(", "abfs", "statistic", "call", "open", ",", "number", "of", "ops", ",", "metric", "map", ")", ";", "assert", "abfs", "statistics", "(", "abfs", "statistic", "call", "append", ",", "number", "of", "ops", ",", "metric", "map", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "number", "of", "ops", ";", "i", "+", "+", ")", "{", "/", "/", "rename", "and", "then", "back", "to", "earlier", "name", "for", "no", "error", "while", "looping", "assert", "true", "(", "fs", "rename", "(", "dest", "create", "file", "path", ",", "create", "file", "path", ")", ")", ";", "assert", "true", "(", "fs", "rename", "(", "create", "file", "path", ",", "dest", "create", "file", "path", ")", ")", ";", "/", "/", "check", "if", "first", "name", "is", "existing", "and", "2nd", "is", "not", "existing", "assert", "true", "(", "string", "format", "(", "\"", "file", "with", "name", "%", "s", "should", "exist", "\"", ",", "dest", "create", "file", "path", ")", ",", "fs", "exists", "(", "dest", "create", "file", "path", ")", ")", ";", "assert", "false", "(", "string", "format", "(", "\"", "file", "with", "name", "%", "s", "should", "not", "exist", "\"", ",", "create", "file", "path", ")", ",", "fs", "exists", "(", "create", "file", "path", ")", ")", ";", "}", "metric", "map", "=", "fs", "get", "instrumentation", "map", "(", ")", ";", "/", "*", "testing", "exists", "(", ")", "calls", "and", "rename", "calls", "since", "both", "were", "called", "2", "times", "in", "1", "loop", "2", "*", "number", "of", "ops", "is", "expected", "value", "*", "/", "assert", "abfs", "statistics", "(", "abfs", "statistic", "call", "rename", ",", "2", "*", "number", "of", "ops", ",", "metric", "map", ")", ";", "assert", "abfs", "statistics", "(", "abfs", "statistic", "call", "exist", ",", "2", "*", "number", "of", "ops", ",", "metric", "map", ")", ";", "}" ]
[ "checks", "that", "all", "environments", "declared", "by", "this", "group", "are", "in", "the", "same", "package", "as", "the", "group", "(", "so", "we", "can", "perform", "an", "environment", "-", "-", ">", "environment", "group", "lookup", "and", "know", "the", "package", "is", "available", ")", "and", "checks", "that", "all", "defaults", "are", "legitimate", "members", "of", "the", "group", "does", "<", "b", ">", "not", "<", "b", ">", "check", "that", "the", "referenced", "environments", "exist", "(", "see", "{", "@", "link", "#", "process", "member", "environments", "}", ")" ]
[ "list", "<", "event", ">", "validate", "membership", "(", ")", "{", "list", "<", "event", ">", "events", "=", "new", "array", "list", "<", ">", "(", ")", ";", "/", "/", "all", "environments", "should", "belong", "to", "the", "same", "package", "as", "this", "group", "for", "(", "label", "environment", ":", "iterables", "filter", "(", "environment", "labels", "environments", ",", "new", "different", "package", "(", "containing", "package", ")", ")", ")", "{", "events", "add", "(", "package", "error", "(", "location", ",", "environment", "+", "\"", "is", "not", "in", "the", "same", "package", "as", "group", "\"", "+", "environment", "labels", "label", ",", "code", "environment", "in", "different", "package", ")", ")", ";", "}", "/", "/", "the", "defaults", "must", "be", "a", "subset", "of", "the", "member", "environments", "for", "(", "label", "unknown", "default", ":", "sets", "difference", "(", "environment", "labels", "defaults", ",", "environment", "labels", "environments", ")", ")", "{", "events", "add", "(", "package", "error", "(", "location", ",", "string", "format", "(", "\"", "default", "%", "s", "is", "not", "a", "declared", "environment", "for", "group", "%", "s", "\"", ",", "unknown", "default", ",", "get", "label", "(", ")", ")", ",", "code", "default", "environment", "undeclared", ")", ")", ";", "}", "return", "events", ";", "}" ]
[ "test", "the", "property", "'", "files", "'" ]
[ "public", "void", "files", "test", "(", ")", "{", "/", "/", "todo", ":", "test", "files", "}" ]
[ "creates", "list", "of", "users", "with", "given", "input", "array" ]
[ "public", "void", "create", "users", "with", "list", "input", "(", "list", "<", "user", ">", "user", ",", "final", "response", "listener", "<", "string", ">", "response", "listener", ",", "final", "response", "error", "listener", "error", "listener", ")", "{", "object", "post", "body", "=", "user", ";", "/", "/", "verify", "the", "required", "parameter", "'", "user", "'", "is", "set", "if", "(", "user", "=", "=", "null", ")", "{", "volley", "error", "error", "=", "new", "volley", "error", "(", "\"", "missing", "the", "required", "parameter", "'", "user", "'", "when", "calling", "create", "users", "with", "list", "input", "\"", ",", "new", "api", "exception", "(", "400", ",", "\"", "missing", "the", "required", "parameter", "'", "user", "'", "when", "calling", "create", "users", "with", "list", "input", "\"", ")", ")", ";", "}", "/", "/", "create", "path", "and", "map", "variables", "string", "path", "=", "\"", "/", "user", "/", "create", "with", "list", "\"", "replace", "all", "(", "\"", "\\", "\\", "{", "format", "\\", "\\", "}", "\"", ",", "\"", "json", "\"", ")", ";", "/", "/", "query", "params", "list", "<", "pair", ">", "query", "params", "=", "new", "array", "list", "<", "pair", ">", "(", ")", ";", "/", "/", "header", "params", "map", "<", "string", ",", "string", ">", "header", "params", "=", "new", "hash", "map", "<", "string", ",", "string", ">", "(", ")", ";", "/", "/", "form", "params", "map", "<", "string", ",", "string", ">", "form", "params", "=", "new", "hash", "map", "<", "string", ",", "string", ">", "(", ")", ";", "string", "[", "]", "content", "types", "=", "{", "}", ";", "string", "content", "type", "=", "content", "types", "length", ">", "0", "?", "content", "types", "[", "0", "]", ":", "\"", "application", "/", "json", "\"", ";", "if", "(", "content", "type", "starts", "with", "(", "\"", "multipart", "/", "form", "-", "data", "\"", ")", ")", "{", "/", "/", "file", "uploading", "multipart", "entity", "builder", "local", "var", "builder", "=", "multipart", "entity", "builder", "create", "(", ")", ";", "http", "entity", "http", "entity", "=", "local", "var", "builder", "build", "(", ")", ";", "post", "body", "=", "http", "entity", ";", "}", "else", "{", "/", "/", "normal", "form", "params", "}", "string", "[", "]", "auth", "names", "=", "new", "string", "[", "]", "{", "}", ";", "try", "{", "api", "invoker", "invoke", "a", "p", "i", "(", "base", "path", ",", "path", ",", "\"", "post", "\"", ",", "query", "params", ",", "post", "body", ",", "header", "params", ",", "form", "params", ",", "content", "type", ",", "auth", "names", ",", "new", "response", "listener", "<", "string", ">", "(", ")", "{", "@", "override", "public", "void", "on", "response", "(", "string", "local", "var", "response", ")", "{", "response", "listener", "on", "response", "(", "local", "var", "response", ")", ";", "}", "}", ",", "new", "response", "error", "listener", "(", ")", "{", "@", "override", "public", "void", "on", "error", "response", "(", "volley", "error", "error", ")", "{", "error", "listener", "on", "error", "response", "(", "error", ")", ";", "}", "}", ")", ";", "}", "catch", "(", "api", "exception", "ex", ")", "{", "error", "listener", "on", "error", "response", "(", "new", "volley", "error", "(", "ex", ")", ")", ";", "}", "}" ]
[ "sets", "command", "actions", "{", "@", "link", "command", "actions", "}" ]
[ "public", "builder", "command", "actions", "(", "command", "actions", "p", "command", "actions", ")", "{", "this", "command", "actions", "=", "p", "command", "actions", ";", "return", "this", ";", "}" ]
[ "returns", "whether", "seeking", "is", "supported" ]
[ "boolean", "is", "seekable", "(", ")", ";" ]
[ "shutdowns", "properly", "the", "service", ",", "this", "method", "is", "not", "a", "public", "api" ]
[ "public", "void", "close", "(", ")", "{", "if", "(", "quorum", "peer", "!", "=", "null", ")", "{", "try", "{", "quorum", "peer", "shutdown", "(", ")", ";", "}", "finally", "{", "quorum", "peer", "=", "null", ";", "}", "}", "}" ]
[ "compute", "valid", "completions", "given", "the", "prefix" ]
[ "protected", "collection", "<", "assembly", "completion", ">", "compute", "completions", "(", "string", "text", ")", "{", "final", "assembly", "pattern", "block", "ctx", "=", "assembler", "get", "context", "at", "(", "addr", ")", ";", "set", "<", "assembly", "completion", ">", "result", "=", "new", "tree", "set", "<", ">", "(", ")", ";", "collection", "<", "assembly", "parse", "result", ">", "parses", "=", "assembler", "parse", "line", "(", "text", ")", ";", "for", "(", "assembly", "parse", "result", "parse", ":", "parses", ")", "{", "if", "(", "parse", "is", "error", "(", ")", ")", "{", "assembly", "parse", "error", "result", "err", "=", "(", "assembly", "parse", "error", "result", ")", "parse", ";", "string", "buffer", "=", "err", "get", "buffer", "(", ")", ";", "for", "(", "string", "s", ":", "err", "get", "suggestions", "(", ")", ")", "{", "if", "(", "s", "starts", "with", "(", "buffer", ")", ")", "{", "result", "add", "(", "new", "assembly", "suggestion", "(", "s", "substring", "(", "buffer", "length", "(", ")", ")", ",", "format", "suggestion", "(", "text", ",", "s", ",", "buffer", ")", ")", ")", ";", "}", "}", "}", "}", "/", "/", "hack", "(", "sort", "of", ")", ":", "circumvents", "the", "api", "to", "get", "full", "text", "string", "full", "text", "=", "get", "text", "(", ")", ";", "parses", "=", "assembler", "parse", "line", "(", "full", "text", ")", ";", "for", "(", "assembly", "parse", "result", "parse", ":", "parses", ")", "{", "if", "(", "!", "parse", "is", "error", "(", ")", ")", "{", "assembly", "resolution", "results", "sems", "=", "assembler", "resolve", "tree", "(", "parse", ",", "addr", ")", ";", "for", "(", "assembly", "resolution", "ar", ":", "sems", ")", "{", "if", "(", "ar", "is", "error", "(", ")", ")", "{", "/", "/", "result", "add", "(", "new", "assembly", "error", "(", "\"", "\"", ",", "ar", "to", "string", "(", ")", ")", ")", ";", "continue", ";", "}", "assembly", "resolved", "constructor", "rc", "=", "(", "assembly", "resolved", "constructor", ")", "ar", ";", "for", "(", "byte", "[", "]", "ins", ":", "rc", "possible", "ins", "vals", "(", "ctx", ")", ")", "{", "result", "add", "(", "new", "assembly", "instruction", "(", "text", ",", "arrays", "copy", "of", "(", "ins", ",", "ins", "length", ")", ",", "compute", "preference", "(", "rc", ",", "existing", ")", ")", ")", ";", "if", "(", "!", "exhaust", "undefined", ")", "{", "break", ";", "}", "}", "}", "}", "}", "if", "(", "result", "is", "empty", "(", ")", ")", "{", "result", "add", "(", "new", "assembly", "error", "(", "\"", "\"", ",", "\"", "invalid", "instruction", "and", "/", "or", "prefix", "\"", ")", ")", ";", "}", "return", "result", ";", "}" ]
[ "get", "application", "list", "@", "api", "group", "app", "list", "controller", "@", "api", "name", "get", "@", "api", "{", "get", "}", "app", "list", "get", "list", "of", "deployed", "applications", "@", "api", "success", "{", "object", "[", "]", "}", "list", "<", "app", "entry", ">", "list", "of", "deployed", "applications", "@", "api", "success", "example", "{", "json", "}", "success", "-", "response", ":", "http1", "1", "200", "ok", "[", "{", "\"", "id", "\"", ":", "\"", "howita", "-", "man", "\"", ",", "\"", "name", "\"", ":", "\"", "howita", "-", "man", "\"", ",", "\"", "app", "\"", ":", "\"", "jenkins", "-", "ci", "org", "jenkins", "\"", ",", "\"", "yarnfile", "\"", ":", "{", "\"", "name", "\"", ":", "\"", "howita", "man", "\"", ",", "\"", "lifetime", "\"", ":", "3600", ",", "\"", "containers", "\"", ":", "[", "]", ",", "\"", "components", "\"", ":", "[", "{", "\"", "name", "\"", ":", "\"", "jenkins", "\"", ",", "\"", "dependencies", "\"", ":", "[", "]", ",", "\"", "artifact", "\"", ":", "{", "\"", "id", "\"", ":", "\"", "eyang", "-", "1", "openstacklocal", ":", "5", "0", "0", "0jenkins", ":", "latest", "\"", ",", "\"", "type", "\"", ":", "\"", "docker", "\"", "}", ",", "\"", "launch", "command", "\"", ":", "\"", "\"", ",", "\"", "resource", "\"", ":", "{", "\"", "uri", "\"", ":", "null", ",", "\"", "profile", "\"", ":", "null", ",", "\"", "cpus", "\"", ":", "1", ",", "\"", "memory", "\"", ":", "\"", "2048", "\"", "}", ",", "\"", "number", "of", "containers", "\"", ":", "1", ",", "\"", "run", "privileged", "container", "\"", ":", "false", ",", "\"", "configuration", "\"", ":", "{", "\"", "properties", "\"", ":", "{", "}", ",", "\"", "env", "\"", ":", "{", "}", ",", "\"", "files", "\"", ":", "[", "]", "}", ",", "\"", "quicklinks", "\"", ":", "[", "]", ",", "\"", "containers", "\"", ":", "[", "]", "}", "]", ",", "\"", "configuration", "\"", ":", "{", "\"", "properties", "\"", ":", "{", "}", ",", "\"", "env", "\"", ":", "{", "}", ",", "\"", "files", "\"", ":", "[", "]", "}", ",", "\"", "quicklinks", "\"", ":", "{", "\"", "jenkins", "ui", "\"", ":", "\"", "http", ":", "jenkins", "$", "{", "service", "name", "}", "$", "{", "user", "}", "$", "{", "domain", "}", ":", "8080", "\"", "}", "}", "}", ",", "{", "}", "]" ]
[ "public", "list", "<", "app", "entry", ">", "get", "list", "(", ")", "{", "app", "catalog", "solr", "client", "sc", "=", "new", "app", "catalog", "solr", "client", "(", ")", ";", "return", "sc", "list", "app", "entries", "(", ")", ";", "}" ]
[ "get", "the", "indicated", "program", "version" ]
[ "public", "program", "get", "program", "(", "int", "version", ")", "{", "return", "programs", "[", "version", "]", ";", "}" ]
[ "returns", "the", "built", "{", "@", "link", "command", "helper", "}" ]
[ "public", "command", "helper", "build", "(", ")", "{", "return", "new", "command", "helper", "(", "rule", "context", ",", "tool", "dependencies", "build", "(", ")", ",", "label", "map", "build", "(", ")", ")", ";", "}" ]
[ "test", "method", "'", "conf", "'", "should", "set", "job", "conf", "page", "class", "for", "rendering" ]
[ "public", "void", "test", "configuration", "(", ")", "{", "app", "controller", "conf", "(", ")", ";", "assert", "equals", "(", "job", "conf", "page", "class", ",", "app", "controller", "get", "clazz", "(", ")", ")", ";", "}" ]
[ "setter", "factory", "method", "with", "required", "values", "all", "optional", "arguments", "can", "be", "set", "via", "the", "chained", "methods" ]
[ "public", "static", "setter", "with", "group", "key", "(", "hystrix", "command", "group", "key", "group", "key", ")", "{", "return", "new", "setter", "(", "group", "key", ")", ";", "}" ]
[ "clears", "the", "playlist", "and", "adds", "the", "specified", "{", "@", "link", "media", "item", "}" ]
[ "void", "set", "media", "item", "(", "media", "item", "media", "item", ",", "long", "start", "position", "ms", ")", ";" ]
[ "set", "the", "documentation", "for", "this", "schema" ]
[ "public", "schema", "builder", "doc", "(", "string", "doc", ")", "{", "check", "can", "set", "(", "doc", "field", ",", "this", "doc", ",", "doc", ")", ";", "this", "doc", "=", "doc", ";", "return", "this", ";", "}" ]
[ "tests", "that", "validates", "that", "a", "single", "pipelined", "component", "instance", "from", "one", "source", "works", "correctly", "+", "-", "-", "(", "v", "4", ")", "+", "-", "-", "(", "v", "2", ")", "-", "+", "|", "+", "-", "-", "(", "v", "5", ")", "(", "v", "1", ")", "-", "-", "+", "|", "+", "-", "-", "(", "v", "6", ")", "+", "-", "-", "(", "v", "3", ")", "-", "+", "+", "-", "-", "(", "v", "7", ")" ]
[ "public", "void", "test", "one", "component", "instance", "from", "one", "source", "(", ")", "{", "testing", "scheduling", "topology", "topology", "=", "new", "testing", "scheduling", "topology", "(", ")", ";", "testing", "scheduling", "execution", "vertex", "v", "1", "=", "topology", "new", "execution", "vertex", "(", ")", ";", "testing", "scheduling", "execution", "vertex", "v", "2", "=", "topology", "new", "execution", "vertex", "(", ")", ";", "testing", "scheduling", "execution", "vertex", "v", "3", "=", "topology", "new", "execution", "vertex", "(", ")", ";", "testing", "scheduling", "execution", "vertex", "v", "4", "=", "topology", "new", "execution", "vertex", "(", ")", ";", "testing", "scheduling", "execution", "vertex", "v", "5", "=", "topology", "new", "execution", "vertex", "(", ")", ";", "testing", "scheduling", "execution", "vertex", "v", "6", "=", "topology", "new", "execution", "vertex", "(", ")", ";", "testing", "scheduling", "execution", "vertex", "v", "7", "=", "topology", "new", "execution", "vertex", "(", ")", ";", "topology", "connect", "(", "v", "1", ",", "v", "2", ",", "result", "partition", "type", "pipelined", ")", "connect", "(", "v", "1", ",", "v", "3", ",", "result", "partition", "type", "pipelined", ")", "connect", "(", "v", "2", ",", "v", "4", ",", "result", "partition", "type", "pipelined", ")", "connect", "(", "v", "2", ",", "v", "5", ",", "result", "partition", "type", "pipelined", ")", "connect", "(", "v", "3", ",", "v", "6", ",", "result", "partition", "type", "pipelined", ")", "connect", "(", "v", "3", ",", "v", "7", ",", "result", "partition", "type", "pipelined", ")", ";", "map", "<", "execution", "vertex", "i", "d", ",", "set", "<", "scheduling", "execution", "vertex", ">", ">", "pipelined", "region", "by", "vertex", "=", "compute", "pipelined", "region", "by", "vertex", "(", "topology", ")", ";", "set", "<", "scheduling", "execution", "vertex", ">", "r", "1", "=", "pipelined", "region", "by", "vertex", "get", "(", "v", "1", "get", "id", "(", ")", ")", ";", "set", "<", "scheduling", "execution", "vertex", ">", "r", "2", "=", "pipelined", "region", "by", "vertex", "get", "(", "v", "2", "get", "id", "(", ")", ")", ";", "set", "<", "scheduling", "execution", "vertex", ">", "r", "3", "=", "pipelined", "region", "by", "vertex", "get", "(", "v", "3", "get", "id", "(", ")", ")", ";", "set", "<", "scheduling", "execution", "vertex", ">", "r", "4", "=", "pipelined", "region", "by", "vertex", "get", "(", "v", "4", "get", "id", "(", ")", ")", ";", "set", "<", "scheduling", "execution", "vertex", ">", "r", "5", "=", "pipelined", "region", "by", "vertex", "get", "(", "v", "5", "get", "id", "(", ")", ")", ";", "set", "<", "scheduling", "execution", "vertex", ">", "r", "6", "=", "pipelined", "region", "by", "vertex", "get", "(", "v", "6", "get", "id", "(", ")", ")", ";", "set", "<", "scheduling", "execution", "vertex", ">", "r", "7", "=", "pipelined", "region", "by", "vertex", "get", "(", "v", "7", "get", "id", "(", ")", ")", ";", "assert", "same", "region", "(", "r", "1", ",", "r", "2", ",", "r", "3", ",", "r", "4", ",", "r", "5", ",", "r", "6", ",", "r", "7", ")", ";", "}" ]
[ "used", "by", "metrics" ]
[ "public", "long", "get", "total", "replicated", "blocks", "(", ")", "{", "return", "blocks", "map", "get", "replicated", "blocks", "(", ")", ";", "}" ]
[ "adds", "{", "@", "code", "delta", "}", "to", "the", "value", "currently", "associated", "with", "{", "@", "code", "key", "}", ",", "and", "returns", "the", "old", "value" ]
[ "public", "long", "get", "and", "add", "(", "k", "key", ",", "long", "delta", ")", "{", "outer", ":", "while", "(", "true", ")", "{", "atomic", "long", "atomic", "=", "map", "get", "(", "key", ")", ";", "if", "(", "atomic", "=", "=", "null", ")", "{", "atomic", "=", "map", "put", "if", "absent", "(", "key", ",", "new", "atomic", "long", "(", "delta", ")", ")", ";", "if", "(", "atomic", "=", "=", "null", ")", "{", "return", "0l", ";", "}", "/", "/", "atomic", "is", "now", "non", "-", "null", ";", "fall", "through", "}", "while", "(", "true", ")", "{", "long", "old", "value", "=", "atomic", "get", "(", ")", ";", "if", "(", "old", "value", "=", "=", "0l", ")", "{", "/", "/", "don", "'", "t", "compare", "and", "set", "a", "zero", "if", "(", "map", "replace", "(", "key", ",", "atomic", ",", "new", "atomic", "long", "(", "delta", ")", ")", ")", "{", "return", "0l", ";", "}", "/", "/", "atomic", "replaced", "continue", "outer", ";", "}", "long", "new", "value", "=", "old", "value", "+", "delta", ";", "if", "(", "atomic", "compare", "and", "set", "(", "old", "value", ",", "new", "value", ")", ")", "{", "return", "old", "value", ";", "}", "/", "/", "value", "changed", "}", "}", "}" ]
[ "test", "of", "minor", "variations", "between", "actions", "we", "pass", "command", "line", "options", "to", "gcc", "and", "test", "if", "we", "correctly", "rebuild", "the", "application" ]
[ "public", "void", "test", "changing", "command", "line", "option", "rebuilds", "(", ")", "throws", "exception", "{", "write", "source", "files", "(", ")", ";", "write", "(", "\"", "pkg", "/", "build", "\"", ",", "\"", "cc", "binary", "(", "name", "=", "'", "hello", "'", ",", "\"", ",", "\"", "malloc", "=", "'", "/", "/", "base", ":", "system", "malloc", "'", ",", "\"", ",", "\"", "srcs", "=", "[", "'", "hello", "cc", "'", "]", ",", "\"", ",", "\"", "defines", "=", "[", "'", "default", "greeting", "=", "\\", "\\", "\\", "\\", "\\", "\\", "\\", "\"", "hello", "\\", "\\", "\\", "\\", "\\", "\\", "\\", "\"", "'", "]", ")", "\"", ")", ";", "/", "/", "here", "'", "s", "why", "we", "need", "so", "many", "backslashes", ":", "/", "/", "java", "source", ":", "\"", "'", "default", "greeting", "=", "\\", "\\", "\\", "\\", "\\", "\\", "\\", "\"", "hello", "\\", "\\", "\\", "\\", "\\", "\\", "\\", "\"", "'", "\"", "/", "/", "build", "file", ":", "'", "default", "greeting", "=", "\\", "\\", "\\", "\"", "hello", "\\", "\\", "\\", "\"", "'", "/", "/", "makefile", ":", "-", "ddefault", "greeting", "=", "\\", "\"", "hello", "\\", "\"", "/", "/", "arguments", "passed", "to", "sh", ":", "-", "ddefault", "greeting", "=", "\\", "\"", "hello", "\\", "\"", "/", "/", "arguments", "passed", "to", "gcc", ":", "-", "ddefault", "greeting", "=", "\"", "hello", "\"", "/", "/", "blaze", "doesn", "'", "t", "go", "through", "the", "\"", "makefile", "\"", "or", "\"", "sh", "\"", "stages", ",", "but", "blaze", "'", "s", "/", "/", "treatment", "of", "backslash", "escapes", "is", "compatible", "with", "make", "-", "dbg", ",", "which", "does", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "(", "1", ")", "build", "using", "default", "request", "options", ":", "build", "app", "(", ")", ";", "path", "hello", "=", "get", "executable", "location", "(", "\"", "/", "/", "pkg", ":", "hello", "\"", ")", ";", "/", "/", "check", "the", "output", "of", "'", "hello", "'", ":", "assert", "that", "(", "run", "(", "hello", ")", ")", "is", "equal", "to", "(", "\"", "hello", ",", "world", "!", "\"", ")", ";", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "(", "2", ")", "build", "again", "using", "a", "different", "cc", "binary", "rule", "write", "(", "\"", "pkg", "/", "build", "\"", ",", "\"", "cc", "binary", "(", "name", "=", "'", "hello", "'", ",", "\"", ",", "\"", "malloc", "=", "'", "/", "/", "base", ":", "system", "malloc", "'", ",", "\"", ",", "\"", "srcs", "=", "[", "'", "hello", "cc", "'", "]", ",", "\"", ",", "\"", "defines", "=", "[", "'", "default", "greeting", "=", "\\", "\\", "'", "\\", "\"", "hello", "again", "\\", "\"", "\\", "\\", "'", "'", "]", ")", "\"", ")", ";", "/", "/", "here", "'", "s", "why", "we", "need", "so", "many", "quotes", "and", "backslashes", ":", "/", "/", "java", "source", ":", "\"", "'", "default", "greeting", "=", "\\", "\\", "'", "\\", "\"", "hello", "again", "\\", "\"", "\\", "\\", "'", "'", "\"", "/", "/", "build", "file", ":", "'", "default", "greeting", "=", "\\", "'", "\"", "hello", "again", "\"", "\\", "'", "'", "/", "/", "(", "makefile", ":", "-", "ddefault", "greeting", "=", "'", "\"", "hello", "again", "\"", "'", ")", "/", "/", "(", "arguments", "passed", "to", "sh", ":", "-", "ddefault", "greeting", "=", "'", "\"", "hello", "again", "\"", "'", ")", "/", "/", "arguments", "passed", "to", "gcc", ":", "-", "ddefault", "greeting", "=", "\"", "hello", "again", "\"", "/", "/", "blaze", "doesn", "'", "t", "go", "through", "the", "\"", "makefile", "\"", "or", "\"", "sh", "\"", "stages", ",", "but", "blaze", "'", "s", "/", "/", "treatment", "of", "backslash", "escapes", "is", "compatible", "with", "make", "-", "dbg", ",", "which", "does", "build", "app", "(", ")", ";", "/", "/", "check", "that", "the", "output", "of", "'", "hello", "'", "was", "affected", "by", "changing", "the", "rule", "assert", "that", "(", "run", "(", "hello", ")", ")", "is", "equal", "to", "(", "\"", "hello", "again", ",", "world", "!", "\"", ")", ";", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "(", "3", ")", "build", "again", "using", "additional", "command", "line", "options", ":", "write", "(", "\"", "pkg", "/", "build", "\"", ",", "\"", "cc", "binary", "(", "name", "=", "'", "hello", "'", ",", "\"", ",", "\"", "malloc", "=", "'", "/", "/", "base", ":", "system", "malloc", "'", ",", "\"", ",", "\"", "srcs", "=", "[", "'", "hello", "cc", "'", "]", ")", "\"", ")", ";", "build", "app", "(", "\"", "-", "-", "copt", "\"", ",", "\"", "-", "dgreeting", "=", "\\", "\"", "hi", "\\", "\"", "\"", ")", ";", "/", "/", "check", "that", "the", "output", "of", "'", "hello", "'", "was", "affected", "by", "adding", "the", "request", "/", "/", "options", ":", "assert", "that", "(", "run", "(", "hello", ")", ")", "is", "equal", "to", "(", "\"", "hi", ",", "world", "!", "\"", ")", ";", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "(", "4", ")", "build", "again", "using", "different", "command", "line", "options", ":", "/", "/", "we", "need", "the", "-", "u", "option", "to", "override", "the", "-", "d", "option", "set", "by", "the", "/", "/", "previous", "call", "to", "build", "app", "(", ")", "earlier", "in", "this", "method", "build", "app", "(", "\"", "-", "-", "copt", "\"", ",", "\"", "-", "ugreeting", "\"", ",", "\"", "-", "-", "copt", "\"", ",", "\"", "-", "dgreeting", "=", "\\", "\"", "goodbye", "\\", "\"", "\"", ")", ";", "/", "/", "check", "that", "the", "output", "of", "'", "hello", "'", "was", "affected", "by", "changing", "the", "request", "/", "/", "options", ":", "assert", "that", "(", "run", "(", "hello", ")", ")", "is", "equal", "to", "(", "\"", "goodbye", ",", "world", "!", "\"", ")", ";", "}" ]
[ "verifies", "the", "display", "of", "references", "to", "data" ]
[ "public", "void", "test", "view", "references", "to", "data", "(", ")", "{", "double", "click", "x", "ref", "(", "\"", "1001007", "\"", ",", "\"", "xref", "[", "2", "]", ":", "\"", ")", ";", "component", "provider", "comp", "=", "wait", "for", "component", "provider", "(", "table", "component", "provider", "class", ")", ";", "table", "component", "provider", "<", "?", ">", "table", "=", "(", "table", "component", "provider", "<", "?", ">", ")", "comp", ";", "assert", "equals", "(", "2", ",", "table", "get", "model", "(", ")", "get", "row", "count", "(", ")", ")", ";", "}" ]
[ "model", "tests", "for", "capitalization" ]
[ "public", "void", "test", "capitalization", "(", ")", "{", "/", "/", "todo", ":", "test", "capitalization", "}" ]
[ "moves", "the", "entry", "to", "the", "mru", "position" ]
[ "private", "void", "on", "protected", "hit", "(", "node", "node", ")", "{", "admittor", "record", "(", "node", "key", ")", ";", "node", "move", "to", "tail", "(", "head", "protected", ")", ";", "}" ]
[ "gets", "a", "handle", "to", "the", "system", "'", "s", "keyvalue", "list", "state", "this", "state", "is", "similar", "to", "the", "state", "accessed", "via", "{", "@", "link", "#", "get", "state", "(", "value", "state", "descriptor", ")", "}", ",", "but", "is", "optimized", "for", "state", "that", "holds", "lists", "one", "can", "add", "elements", "to", "the", "list", ",", "or", "retrieve", "the", "list", "as", "a", "whole", "this", "state", "is", "only", "accessible", "if", "the", "function", "is", "executed", "on", "a", "keyed", "stream", "{", "@", "code", "data", "stream", "<", "my", "type", ">", "stream", "=", ";", "keyed", "stream", "<", "my", "type", ">", "keyed", "stream", "=", "stream", "key", "by", "(", "\"", "id", "\"", ")", ";", "keyed", "stream", "map", "(", "new", "rich", "flat", "map", "function", "<", "my", "type", ",", "list", "<", "my", "type", ">", ">", "(", ")", "{", "private", "list", "state", "<", "my", "type", ">", "state", ";", "public", "void", "open", "(", "configuration", "cfg", ")", "{", "state", "=", "get", "runtime", "context", "(", ")", "get", "list", "state", "(", "new", "list", "state", "descriptor", "<", ">", "(", "\"", "my", "state", "\"", ",", "my", "type", "class", ")", ")", ";", "}", "public", "void", "flat", "map", "(", "my", "type", "value", ",", "collector", "<", "my", "type", ">", "out", ")", "{", "if", "(", "value", "is", "divider", "(", ")", ")", "{", "for", "(", "my", "type", "t", ":", "state", "get", "(", ")", ")", "{", "out", "collect", "(", "t", ")", ";", "}", "}", "else", "{", "state", "add", "(", "value", ")", ";", "}", "}", "}", ")", ";", "}" ]
[ "<", "t", ">", "list", "state", "<", "t", ">", "get", "list", "state", "(", "list", "state", "descriptor", "<", "t", ">", "state", "properties", ")", ";" ]
[ "returns", "all", "static", "method", "and", "field", "injection", "points", "on", "{", "@", "code", "type", "}" ]
[ "public", "static", "set", "<", "injection", "point", ">", "for", "static", "methods", "and", "fields", "(", "type", "literal", "type", ")", "{", "set", "<", "injection", "point", ">", "result", "=", "new", "hash", "set", "<", ">", "(", ")", ";", "errors", "errors", "=", "new", "errors", "(", ")", ";", "add", "injection", "points", "(", "type", ",", "factory", "fields", ",", "true", ",", "result", ",", "errors", ")", ";", "add", "injection", "points", "(", "type", ",", "factory", "methods", ",", "true", ",", "result", ",", "errors", ")", ";", "result", "=", "unmodifiable", "set", "(", "result", ")", ";", "if", "(", "errors", "has", "errors", "(", ")", ")", "{", "throw", "new", "configuration", "exception", "(", "errors", "get", "messages", "(", ")", ")", "with", "partial", "value", "(", "result", ")", ";", "}", "return", "result", ";", "}" ]
[ "set", "the", "scope", "to", "export", "the", "variable", "to", "default", "is", "scope", "page", "(", "\"", "page", "\"", ")" ]
[ "public", "void", "set", "scope", "(", "string", "scope", ")", "{", "this", "scope", "=", "scope", ";", "}" ]
[ "stop", "the", "test", "-", "case", "teardown", "from", "deleting", "the", "test", "path" ]
[ "protected", "void", "delete", "test", "dir", "in", "teardown", "(", ")", "throws", "i", "o", "exception", "{", "/", "/", "this", "is", "a", "no", "-", "op", ",", "so", "the", "test", "file", "is", "preserved", "/", "/", "the", "last", "test", "in", "the", "suite", "does", "the", "teardown", "}" ]
[ "mounts", "the", "component", "&", "triggers", "the", "focused", "visibility", "event", "requires", "that", "the", "component", "supports", "incremental", "mounting", "{", "@", "link", "com", "facebook", "litho", "focused", "visible", "event", "}", "deprecated", ":", "prefer", "using", "{", "@", "link", "#", "trigger", "visibility", "event", "(", "litho", "view", ",", "class", ")", "}", "instead" ]
[ "public", "static", "litho", "view", "dispatch", "on", "focused", "visible", "event", "(", "component", "context", "context", ",", "event", "handler", "on", "focused", "visible", "handler", ",", "component", "component", ")", "{", "return", "dispatch", "visibility", "event", "(", "context", ",", "on", "focused", "visible", "handler", ",", "new", "focused", "visible", "event", "(", ")", ",", "component", ")", ";", "}" ]
[ "return", "a", "resolvable", "constructor", "for", "the", "provided", "class", ",", "either", "a", "primary", "constructor", "or", "single", "public", "constructor", "or", "simply", "a", "default", "constructor", "callers", "have", "to", "be", "prepared", "to", "resolve", "arguments", "for", "the", "returned", "constructor", "'", "s", "parameters", ",", "if", "any" ]
[ "public", "static", "<", "t", ">", "constructor", "<", "t", ">", "get", "resolvable", "constructor", "(", "class", "<", "t", ">", "clazz", ")", "{", "constructor", "<", "t", ">", "ctor", "=", "find", "primary", "constructor", "(", "clazz", ")", ";", "if", "(", "ctor", "=", "=", "null", ")", "{", "constructor", "<", "?", ">", "[", "]", "ctors", "=", "clazz", "get", "constructors", "(", ")", ";", "if", "(", "ctors", "length", "=", "=", "1", ")", "{", "ctor", "=", "(", "constructor", "<", "t", ">", ")", "ctors", "[", "0", "]", ";", "}", "else", "{", "try", "{", "ctor", "=", "clazz", "get", "declared", "constructor", "(", ")", ";", "}", "catch", "(", "no", "such", "method", "exception", "ex", ")", "{", "throw", "new", "illegal", "state", "exception", "(", "\"", "no", "primary", "or", "single", "public", "constructor", "found", "for", "\"", "+", "clazz", "+", "\"", "-", "and", "no", "default", "constructor", "found", "either", "\"", ")", ";", "}", "}", "}", "return", "ctor", ";", "}" ]
[ "create", "a", "new", "leaf", "and", "add", "to", "the", "node", "manager", "the", "new", "leaf", "'", "s", "parent", "is", "unknown" ]
[ "var", "key", "record", "node", "create", "new", "leaf", "(", "int", "prev", "leaf", "id", ",", "int", "next", "leaf", "id", ")", "throws", "i", "o", "exception", "{", "return", "new", "var", "key", "record", "node", "(", "node", "mgr", ",", "prev", "leaf", "id", ",", "next", "leaf", "id", ",", "key", "type", ")", ";", "}" ]
[ "returns", "the", "parsed", "value", "from", "a", "tag", ",", "if", "this", "{", "@", "link", "parseable", "requirement", "}", "detects", "that", "it", "is", "responsible", "for", "it", ",", "otherwise", "returns", "{", "@", "code", "null", "}" ]
[ "public", "string", "parse", "if", "matches", "(", "string", "tag", ")", "throws", "validation", "exception", "{", "matcher", "matcher", "=", "detection", "pattern", "(", ")", "matcher", "(", "tag", ")", ";", "if", "(", "!", "matcher", "matches", "(", ")", ")", "{", "return", "null", ";", "}", "string", "tag", "value", "=", "matcher", "group", "(", "1", ")", ";", "string", "error", "msg", "=", "validator", "(", ")", "apply", "(", "tag", "value", ")", ";", "if", "(", "error", "msg", "!", "=", "null", ")", "{", "throw", "new", "validation", "exception", "(", "tag", "value", ",", "error", "msg", ")", ";", "}", "return", "tag", "value", ";", "}" ]
[ "returns", "the", "original", "environment", "for", "build", "-", "loaded", "bzl", "files", ",", "not", "accounting", "for", "builtins", "injection", "the", "post", "-", "injection", "environment", "may", "differ", "from", "this", "one", "by", "what", "symbols", "a", "name", "is", "bound", "to", ",", "but", "the", "set", "of", "symbols", "remains", "the", "same" ]
[ "public", "immutable", "map", "<", "string", ",", "object", ">", "get", "uninjected", "build", "bzl", "env", "(", ")", "{", "return", "uninjected", "build", "bzl", "env", ";", "}" ]
[ "assert", "that", "at", "least", "the", "requested", "number", "of", "workers", "are", "up", "and", "running" ]
[ "public", "void", "assert", "exactly", "num", "workers", "are", "up", "(", "int", "num", "workers", ",", "string", "detail", "message", ")", "throws", "interrupted", "exception", "{", "try", "{", "wait", "for", "condition", "(", "(", ")", "-", ">", "check", "workers", "up", "(", "num", "workers", ",", "(", "actual", ",", "expected", ")", "-", ">", "actual", "=", "=", "expected", ")", "or", "else", "(", "false", ")", ",", "worker", "setup", "duration", "ms", ",", "\"", "didn", "'", "t", "meet", "the", "exact", "requested", "number", "of", "online", "workers", ":", "\"", "+", "num", "workers", ")", ";", "}", "catch", "(", "assertion", "error", "e", ")", "{", "throw", "new", "assertion", "error", "(", "detail", "message", ",", "e", ")", ";", "}", "}" ]
[ "returns", "all", "of", "the", "lines", "in", "the", "file", "without", "any", "newline", "characters", "the", "file", "is", "treated", "as", "utf", "-", "8", "encoded" ]
[ "public", "static", "list", "<", "string", ">", "get", "lines", "(", "resource", "file", "file", ")", "throws", "i", "o", "exception", "{", "try", "(", "input", "stream", "is", "=", "file", "get", "input", "stream", "(", ")", ")", "{", "return", "get", "lines", "(", "is", ")", ";", "}", "catch", "(", "file", "not", "found", "exception", "exc", ")", "{", "return", "new", "array", "list", "<", ">", "(", ")", ";", "}", "}" ]
[ "builds", "a", "bit", "set", "of", "block", "indices", "from", "a", "basic", "block", "list", "and", "a", "list", "of", "labels", "taken", "from", "rop", "form" ]
[ "static", "bit", "set", "bit", "set", "from", "label", "list", "(", "basic", "block", "list", "blocks", ",", "int", "list", "label", "list", ")", "{", "bit", "set", "result", "=", "new", "bit", "set", "(", "blocks", "size", "(", ")", ")", ";", "for", "(", "int", "i", "=", "0", ",", "sz", "=", "label", "list", "size", "(", ")", ";", "i", "<", "sz", ";", "i", "+", "+", ")", "{", "result", "set", "(", "blocks", "index", "of", "label", "(", "label", "list", "get", "(", "i", ")", ")", ")", ";", "}", "return", "result", ";", "}" ]
[ "get", "int", "6", "4" ]
[ "public", "long", "get", "int", "6", "4", "(", ")", "{", "return", "int", "6", "4", ";", "}" ]
[ "constructs", "an", "{", "@", "code", "immutable", "set", "}", "from", "the", "first", "{", "@", "code", "n", "}", "elements", "of", "the", "specified", "array", "if", "{", "@", "code", "k", "}", "is", "the", "size", "of", "the", "returned", "{", "@", "code", "immutable", "set", "}", ",", "then", "the", "unique", "elements", "of", "{", "@", "code", "elements", "}", "will", "be", "in", "the", "first", "{", "@", "code", "k", "}", "positions", ",", "and", "{", "@", "code", "elements", "[", "i", "]", "=", "=", "null", "}", "for", "{", "@", "code", "k", "<", "=", "i", "<", "n", "}", "this", "may", "modify", "{", "@", "code", "elements", "}", "additionally", ",", "if", "{", "@", "code", "n", "=", "=", "elements", "length", "}", "and", "{", "@", "code", "elements", "}", "contains", "no", "duplicates", ",", "{", "@", "code", "elements", "}", "may", "be", "used", "without", "copying", "in", "the", "returned", "{", "@", "code", "immutable", "set", "}", ",", "in", "which", "case", "it", "may", "no", "longer", "be", "modified", "{", "@", "code", "elements", "}", "may", "contain", "only", "values", "of", "type", "{", "@", "code", "e", "}" ]
[ "private", "static", "<", "e", ">", "immutable", "set", "<", "e", ">", "construct", "(", "int", "n", ",", "int", "expected", "size", ",", "object", "elements", ")", "{", "switch", "(", "n", ")", "{", "case", "0", ":", "return", "of", "(", ")", ";", "case", "1", ":", "@", "suppress", "warnings", "(", "\"", "unchecked", "\"", ")", "/", "/", "safe", ";", "elements", "contains", "only", "e", "'", "s", "e", "elem", "=", "(", "e", ")", "elements", "[", "0", "]", ";", "return", "of", "(", "elem", ")", ";", "default", ":", "set", "builder", "impl", "<", "e", ">", "builder", "=", "new", "regular", "set", "builder", "impl", "<", "e", ">", "(", "expected", "size", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "n", ";", "i", "+", "+", ")", "{", "@", "suppress", "warnings", "(", "\"", "unchecked", "\"", ")", "e", "e", "=", "(", "e", ")", "check", "not", "null", "(", "elements", "[", "i", "]", ")", ";", "builder", "=", "builder", "add", "(", "e", ")", ";", "}", "return", "builder", "review", "(", ")", "build", "(", ")", ";", "}", "}" ]
[ "get", "prefix", "ns", "integer" ]
[ "public", "integer", "get", "prefix", "ns", "integer", "(", ")", "{", "return", "prefix", "ns", "integer", ";", "}" ]
[ "creates", "a", "{", "@", "link", "connection", "factory", "}", "to", "be", "used", "in", "this", "test" ]
[ "protected", "abstract", "connection", "factory", "create", "connection", "factory", "(", ")", ";" ]
[ "returns", "a", "{", "@", "code", "nul", "(", "0x", "0", "0", ")", "}", "delimiter", ",", "which", "could", "be", "used", "for", "flash", "xml", "socket", "or", "any", "similar", "protocols" ]
[ "public", "static", "byte", "buf", "[", "]", "nul", "delimiter", "(", ")", "{", "return", "new", "byte", "buf", "[", "]", "{", "unpooled", "wrapped", "buffer", "(", "new", "byte", "[", "]", "{", "0", "}", ")", "}", ";", "}" ]
[ "returns", "true", "if", "the", "initial", "protections", "include", "execute" ]
[ "public", "boolean", "is", "execute", "(", ")", "{", "return", "(", "init", "prot", "&", "segment", "constants", "protection", "x", ")", "!", "=", "0", ";", "}" ]
[ "get", "array", "array", "of", "model" ]
[ "public", "list", "<", "list", "<", "read", "only", "first", ">", ">", "get", "array", "array", "of", "model", "(", ")", "{", "return", "array", "array", "of", "model", ";", "}" ]
[ "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", "\"", ")", ";", "}" ]
[ "get", "the", "section", "header", "which", "corresponds", "to", "this", "table", ",", "or", "null", "if", "only", "associated", "with", "a", "dynamic", "table", "entry" ]
[ "public", "elf", "section", "header", "get", "table", "section", "header", "(", ")", "{", "return", "symbol", "table", "section", ";", "}" ]
[ "return", "a", "map", "from", "model", "name", "to", "schema", "for", "efficient", "lookup" ]
[ "protected", "map", "<", "string", ",", "schema", ">", "get", "model", "name", "to", "schema", "cache", "(", ")", "{", "if", "(", "model", "name", "to", "schema", "cache", "=", "=", "null", ")", "{", "/", "/", "create", "a", "cache", "to", "efficiently", "lookup", "schema", "based", "on", "model", "name", "map", "<", "string", ",", "schema", ">", "m", "=", "new", "hash", "map", "<", "string", ",", "schema", ">", "(", ")", ";", "model", "utils", "get", "schemas", "(", "open", "a", "p", "i", ")", "for", "each", "(", "(", "key", ",", "schema", ")", "-", ">", "{", "m", "put", "(", "to", "model", "name", "(", "key", ")", ",", "schema", ")", ";", "}", ")", ";", "model", "name", "to", "schema", "cache", "=", "collections", "unmodifiable", "map", "(", "m", ")", ";", "}", "return", "model", "name", "to", "schema", "cache", ";", "}" ]
[ "set", "this", "to", "true", "to", "enable", "drawing", "the", "grid", "lines", "for", "this", "axis" ]
[ "public", "void", "set", "draw", "grid", "lines", "(", "boolean", "enabled", ")", "{", "m", "draw", "grid", "lines", "=", "enabled", ";", "}" ]
[ "order", "by", "process", "instance", "id", "(", "needs", "to", "be", "followed", "by", "{", "@", "link", "#", "asc", "(", ")", "}", "or", "{", "@", "link", "#", "desc", "(", ")", "}", ")" ]
[ "job", "query", "order", "by", "process", "instance", "id", "(", ")", ";" ]
[ "returns", "the", "{", "@", "link", "http", "method", "wrapper", "}", "to", "be", "used", "for", "the", "request" ]
[ "http", "method", "wrapper", "get", "http", "method", "(", ")", ";" ]
[ "trying", "to", "abort", "with", "a", "handle", "of", "size", "0", "must", "fail" ]
[ "public", "void", "test", "abort", "empty", "upload", "handle", "(", ")", "throws", "exception", "{", "byte", "buffer", "byte", "buffer", "=", "byte", "buffer", "wrap", "(", "new", "byte", "[", "0", "]", ")", ";", "intercept", "(", "illegal", "argument", "exception", "class", ",", "(", ")", "-", ">", "abort", "upload", "(", "b", "b", "upload", "handle", "from", "(", "byte", "buffer", ")", ",", "method", "path", "(", ")", ")", ")", ";", "}" ]
[ "convert", "the", "given", "object", "to", "string", "with", "each", "line", "indented", "by", "4", "spaces", "(", "except", "the", "first", "line", ")" ]
[ "private", "static", "string", "to", "indented", "string", "(", "object", "o", ")", "{", "if", "(", "o", "=", "=", "null", ")", "{", "return", "\"", "null", "\"", ";", "}", "return", "o", "to", "string", "(", ")", "replace", "(", "\"", "\\", "n", "\"", ",", "\"", "\\", "n", "\"", ")", ";", "}" ]
[ "the", "provided", "task", "executor", "is", "used", "to", ":", "handle", "{", "@", "link", "callable", "}", "controller", "method", "return", "values", "perform", "blocking", "writes", "when", "streaming", "to", "the", "response", "through", "a", "reactive", "(", "e", "g", "reactor", ",", "rx", "java", ")", "controller", "method", "return", "value", "by", "default", "only", "a", "{", "@", "link", "simple", "async", "task", "executor", "}", "is", "used", "however", "when", "using", "the", "above", "two", "use", "cases", ",", "it", "'", "s", "recommended", "to", "configure", "an", "executor", "backed", "by", "a", "thread", "pool", "such", "as", "{", "@", "link", "thread", "pool", "task", "executor", "}" ]
[ "public", "async", "support", "configurer", "set", "task", "executor", "(", "async", "task", "executor", "task", "executor", ")", "{", "this", "task", "executor", "=", "task", "executor", ";", "return", "this", ";", "}" ]
[ "returns", "how", "many", "bytes", "we", "are", "currently", "moving", "from", "heap", "to", "disk" ]
[ "public", "abstract", "long", "get", "writing", "bytes", "(", ")", ";" ]
[ "the", "test", "calls", "{", "@", "link", "#", "do", "the", "job", "(", "configuration", ",", "string", ",", "long", ",", "short", ",", "boolean", ",", "enum", "set", ")", "}", "while", "requiring", "the", "semantic", "of", "{", "@", "link", "sync", "flag", "#", "update", "length", "}", "similar", "with", "{", "@", "link", "#", "h", "flush", "02", "(", ")", "}", ",", "it", "writes", "a", "file", "with", "a", "custom", "block", "size", "so", "the", "writes", "will", "be", "happening", "across", "block", "'", "boundaries" ]
[ "public", "void", "h", "sync", "update", "length", "02", "(", ")", "throws", "i", "o", "exception", "{", "configuration", "conf", "=", "new", "hdfs", "configuration", "(", ")", ";", "int", "custom", "per", "checksum", "size", "=", "512", ";", "int", "custom", "block", "size", "=", "custom", "per", "checksum", "size", "*", "3", ";", "/", "/", "modify", "defaul", "filesystem", "settings", "conf", "set", "int", "(", "d", "f", "s", "config", "keys", "dfs", "bytes", "per", "checksum", "key", ",", "custom", "per", "checksum", "size", ")", ";", "conf", "set", "long", "(", "d", "f", "s", "config", "keys", "dfs", "block", "size", "key", ",", "custom", "block", "size", ")", ";", "do", "the", "job", "(", "conf", ",", "f", "name", ",", "custom", "block", "size", ",", "(", "short", ")", "2", ",", "true", ",", "enum", "set", "of", "(", "sync", "flag", "update", "length", ")", ")", ";", "}" ]
[ "enqueue", "this", "input", "channel", "in", "the", "pipeline", "for", "notifying", "the", "producer", "of", "unannounced", "credit" ]
[ "private", "void", "notify", "credit", "available", "(", ")", "throws", "i", "o", "exception", "{", "check", "partition", "request", "queue", "initialized", "(", ")", ";", "partition", "request", "client", "notify", "credit", "available", "(", "this", ")", ";", "}" ]
[ "creates", "a", "new", "fs", "instance", "with", "the", "simplest", "binding", "lifecycle", ";", "get", "a", "token", "this", "verifies", "the", "classic", "binding", "mechanism", "works" ]
[ "public", "void", "test", "base", "d", "t", "lifecycle", "(", ")", "throws", "throwable", "{", "configuration", "conf", "=", "new", "configuration", "(", "get", "raw", "configuration", "(", ")", ")", ";", "classic", "delegation", "token", "manager", "use", "classic", "d", "t", "manager", "(", "conf", ")", ";", "try", "(", "file", "system", "fs", "=", "file", "system", "new", "instance", "(", "get", "filesystem", "u", "r", "i", "(", ")", ",", "conf", ")", ")", "{", "credentials", "credentials", "=", "mk", "tokens", "(", "fs", ")", ";", "assert", "equals", "(", "\"", "number", "of", "collected", "tokens", "\"", ",", "1", ",", "credentials", "number", "of", "tokens", "(", ")", ")", ";", "verify", "credentials", "contains", "token", "(", "credentials", ",", "fs", "get", "canonical", "service", "name", "(", ")", ",", "classic", "delegation", "token", "manager", "unset", ")", ";", "}", "}" ]
[ "increment", "the", "number", "of", "records", "skipped" ]
[ "public", "void", "record", "skipped", "(", ")", "{", "records", "skipped", "record", "(", ")", ";", "}" ]