docstring_tokens
list
code_tokens
list
[ "initializes", "this", "struct", "with", "the", "specified", "values" ]
[ "s", "type", "(", "s", "type", ")", ";", "p", "next", "(", "p", "next", ")", ";", "p", "attributes", "(", "p", "attributes", ")", ";", "dw", "access", "(", "dw", "access", ")", ";", "name", "(", "name", ")", ";", "return", "this", ";" ]
[ "copies", "the", "specified", "struct", "data", "to", "this", "struct" ]
[ "mem", "copy", "(", "src", "address", "(", ")", ",", "address", "(", ")", ",", "sizeof", ")", ";", "return", "this", ";" ]
[ "returns", "a", "new", "{" ]
[ "return", "wrap", "(", "vk", "export", "semaphore", "win", "3", "2", "handle", "info", "k", "h", "r", "class", ",", "nmem", "alloc", "checked", "(", "sizeof", ")", ")", ";" ]
[ "returns", "a", "new", "{" ]
[ "return", "wrap", "(", "vk", "export", "semaphore", "win", "3", "2", "handle", "info", "k", "h", "r", "class", ",", "nmem", "calloc", "checked", "(", "1", ",", "sizeof", ")", ")", ";" ]
[ "returns", "a", "new", "{" ]
[ "byte", "buffer", "container", "=", "buffer", "utils", "create", "byte", "buffer", "(", "sizeof", ")", ";", "return", "wrap", "(", "vk", "export", "semaphore", "win", "3", "2", "handle", "info", "k", "h", "r", "class", ",", "mem", "address", "(", "container", ")", ",", "container", ")", ";" ]
[ "returns", "a", "new", "{" ]
[ "return", "wrap", "(", "vk", "export", "semaphore", "win", "3", "2", "handle", "info", "k", "h", "r", "class", ",", "address", ")", ";" ]
[ "like", "{" ]
[ "return", "address", "=", "=", "null", "?", "null", ":", "wrap", "(", "vk", "export", "semaphore", "win", "3", "2", "handle", "info", "k", "h", "r", "class", ",", "address", ")", ";" ]
[ "returns", "a", "new", "{", "@", "link", "vk", "export", "semaphore", "win", "3", "2", "handle", "info", "k", "h", "r", "buffer", "}", "instance", "allocated", "with", "{", "@", "link", "memory", "util", "#", "mem", "alloc", "mem", "alloc", "}", "the", "instance", "must", "be", "explicitly", "freed" ]
[ "return", "wrap", "(", "buffer", "class", ",", "nmem", "alloc", "checked", "(", "check", "malloc", "(", "capacity", ",", "sizeof", ")", ")", ",", "capacity", ")", ";" ]
[ "returns", "a", "new", "{", "@", "link", "vk", "export", "semaphore", "win", "3", "2", "handle", "info", "k", "h", "r", "buffer", "}", "instance", "allocated", "with", "{", "@", "link", "memory", "util", "#", "mem", "calloc", "mem", "calloc", "}", "the", "instance", "must", "be", "explicitly", "freed" ]
[ "return", "wrap", "(", "buffer", "class", ",", "nmem", "calloc", "checked", "(", "capacity", ",", "sizeof", ")", ",", "capacity", ")", ";" ]
[ "returns", "a", "new", "{", "@", "link", "vk", "export", "semaphore", "win", "3", "2", "handle", "info", "k", "h", "r", "buffer", "}", "instance", "allocated", "with", "{", "@", "link", "buffer", "utils", "}" ]
[ "byte", "buffer", "container", "=", "create", "(", "capacity", ",", "sizeof", ")", ";", "return", "wrap", "(", "buffer", "class", ",", "mem", "address", "(", "container", ")", ",", "capacity", ",", "container", ")", ";" ]
[ "create", "a", "{", "@", "link", "vk", "export", "semaphore", "win", "3", "2", "handle", "info", "k", "h", "r", "buffer", "}", "instance", "at", "the", "specified", "memory" ]
[ "return", "wrap", "(", "buffer", "class", ",", "address", ",", "capacity", ")", ";" ]
[ "like", "{" ]
[ "return", "address", "=", "=", "null", "?", "null", ":", "wrap", "(", "buffer", "class", ",", "address", ",", "capacity", ")", ";" ]
[ "returns", "a", "new", "{" ]
[ "return", "malloc", "stack", "(", "stack", "get", "(", ")", ")", ";" ]
[ "returns", "a", "new", "{" ]
[ "return", "calloc", "stack", "(", "stack", "get", "(", ")", ")", ";" ]
[ "returns", "a", "new", "{", "@", "link", "vk", "export", "semaphore", "win", "3", "2", "handle", "info", "k", "h", "r", "}", "instance", "allocated", "on", "the", "specified", "{", "@", "link", "memory", "stack", "}" ]
[ "return", "wrap", "(", "vk", "export", "semaphore", "win", "3", "2", "handle", "info", "k", "h", "r", "class", ",", "stack", "nmalloc", "(", "alignof", ",", "sizeof", ")", ")", ";" ]
[ "returns", "a", "new", "{", "@", "link", "vk", "export", "semaphore", "win", "3", "2", "handle", "info", "k", "h", "r", "}", "instance", "allocated", "on", "the", "specified", "{", "@", "link", "memory", "stack", "}", "and", "initializes", "all", "its", "bits", "to", "zero" ]
[ "return", "wrap", "(", "vk", "export", "semaphore", "win", "3", "2", "handle", "info", "k", "h", "r", "class", ",", "stack", "ncalloc", "(", "alignof", ",", "1", ",", "sizeof", ")", ")", ";" ]
[ "returns", "a", "new", "{", "@", "link", "vk", "export", "semaphore", "win", "3", "2", "handle", "info", "k", "h", "r", "buffer", "}", "instance", "allocated", "on", "the", "thread", "-", "local", "{", "@", "link", "memory", "stack", "}" ]
[ "return", "malloc", "stack", "(", "capacity", ",", "stack", "get", "(", ")", ")", ";" ]
[ "returns", "a", "new", "{", "@", "link", "vk", "export", "semaphore", "win", "3", "2", "handle", "info", "k", "h", "r", "buffer", "}", "instance", "allocated", "on", "the", "thread", "-", "local", "{", "@", "link", "memory", "stack", "}", "and", "initializes", "all", "its", "bits", "to", "zero" ]
[ "return", "calloc", "stack", "(", "capacity", ",", "stack", "get", "(", ")", ")", ";" ]
[ "returns", "a", "new", "{", "@", "link", "vk", "export", "semaphore", "win", "3", "2", "handle", "info", "k", "h", "r", "buffer", "}", "instance", "allocated", "on", "the", "specified", "{", "@", "link", "memory", "stack", "}" ]
[ "return", "wrap", "(", "buffer", "class", ",", "stack", "nmalloc", "(", "alignof", ",", "capacity", "*", "sizeof", ")", ",", "capacity", ")", ";" ]
[ "returns", "a", "new", "{", "@", "link", "vk", "export", "semaphore", "win", "3", "2", "handle", "info", "k", "h", "r", "buffer", "}", "instance", "allocated", "on", "the", "specified", "{", "@", "link", "memory", "stack", "}", "and", "initializes", "all", "its", "bits", "to", "zero" ]
[ "return", "wrap", "(", "buffer", "class", ",", "stack", "ncalloc", "(", "alignof", ",", "capacity", ",", "sizeof", ")", ",", "capacity", ")", ";" ]
[ "unsafe", "version", "of", "{" ]
[ "return", "unsafe", "get", "int", "(", "null", ",", "struct", "+", "vk", "export", "semaphore", "win", "3", "2", "handle", "info", "k", "h", "r", "stype", ")", ";" ]
[ "unsafe", "version", "of", "{" ]
[ "return", "mem", "get", "address", "(", "struct", "+", "vk", "export", "semaphore", "win", "3", "2", "handle", "info", "k", "h", "r", "pnext", ")", ";" ]
[ "unsafe", "version", "of", "{" ]
[ "return", "security", "attributes", "create", "safe", "(", "mem", "get", "address", "(", "struct", "+", "vk", "export", "semaphore", "win", "3", "2", "handle", "info", "k", "h", "r", "pattributes", ")", ")", ";" ]
[ "unsafe", "version", "of", "{" ]
[ "return", "unsafe", "get", "int", "(", "null", ",", "struct", "+", "vk", "export", "semaphore", "win", "3", "2", "handle", "info", "k", "h", "r", "dwaccess", ")", ";" ]
[ "unsafe", "version", "of", "{" ]
[ "return", "mem", "byte", "buffer", "n", "t", "2", "(", "mem", "get", "address", "(", "struct", "+", "vk", "export", "semaphore", "win", "3", "2", "handle", "info", "k", "h", "r", "name", ")", ")", ";" ]
[ "unsafe", "version", "of", "{" ]
[ "return", "mem", "u", "t", "f", "1", "6", "(", "mem", "get", "address", "(", "struct", "+", "vk", "export", "semaphore", "win", "3", "2", "handle", "info", "k", "h", "r", "name", ")", ")", ";" ]
[ "unsafe", "version", "of", "{" ]
[ "unsafe", "put", "int", "(", "null", ",", "struct", "+", "vk", "export", "semaphore", "win", "3", "2", "handle", "info", "k", "h", "r", "stype", ",", "value", ")", ";" ]
[ "unsafe", "version", "of", "{" ]
[ "mem", "put", "address", "(", "struct", "+", "vk", "export", "semaphore", "win", "3", "2", "handle", "info", "k", "h", "r", "pnext", ",", "value", ")", ";" ]
[ "unsafe", "version", "of", "{" ]
[ "mem", "put", "address", "(", "struct", "+", "vk", "export", "semaphore", "win", "3", "2", "handle", "info", "k", "h", "r", "pattributes", ",", "mem", "address", "safe", "(", "value", ")", ")", ";" ]
[ "unsafe", "version", "of", "{" ]
[ "unsafe", "put", "int", "(", "null", ",", "struct", "+", "vk", "export", "semaphore", "win", "3", "2", "handle", "info", "k", "h", "r", "dwaccess", ",", "value", ")", ";" ]
[ "unsafe", "version", "of", "{" ]
[ "if", "(", "checks", ")", "{", "check", "n", "t", "2", "(", "value", ")", ";", "}", "mem", "put", "address", "(", "struct", "+", "vk", "export", "semaphore", "win", "3", "2", "handle", "info", "k", "h", "r", "name", ",", "mem", "address", "(", "value", ")", ")", ";" ]
[ "validates", "pointer", "members", "that", "should", "not", "be", "{", "@", "code", "null", "}" ]
[ "long", "p", "attributes", "=", "mem", "get", "address", "(", "struct", "+", "vk", "export", "semaphore", "win", "3", "2", "handle", "info", "k", "h", "r", "pattributes", ")", ";", "if", "(", "p", "attributes", "!", "=", "null", ")", "{", "security", "attributes", "validate", "(", "p", "attributes", ")", ";", "}", "check", "(", "mem", "get", "address", "(", "struct", "+", "vk", "export", "semaphore", "win", "3", "2", "handle", "info", "k", "h", "r", "name", ")", ")", ";" ]
[ "{" ]
[ "if", "(", "optional", "class", "equals", "(", "raw", "type", ")", ")", "{", "final", "list", "<", "class", "type", "pair", ">", "ctps", "=", "reflection", "helper", "get", "type", "argument", "and", "class", "(", "generic", "type", ")", ";", "final", "class", "type", "pair", "ctp", "=", "(", "ctps", "size", "(", ")", "=", "=", "1", ")", "?", "ctps", "get", "(", "0", ")", ":", "null", ";", "if", "(", "ctp", "=", "=", "null", "|", "|", "ctp", "raw", "class", "(", ")", "=", "=", "string", "class", ")", "{", "return", "new", "param", "converter", "<", "t", ">", "(", ")", "{", "@", "override", "public", "t", "from", "string", "(", "final", "string", "value", ")", "{", "return", "raw", "type", "cast", "(", "optional", "of", "nullable", "(", "value", ")", ")", ";", "}", "@", "override", "public", "string", "to", "string", "(", "final", "t", "value", ")", "{", "return", "value", "to", "string", "(", ")", ";", "}", "}", ";", "}", "for", "(", "param", "converter", "provider", "provider", ":", "providers", "get", "providers", "(", "manager", ",", "param", "converter", "provider", "class", ")", ")", "{", "final", "param", "converter", "<", "?", ">", "converter", "=", "provider", "get", "converter", "(", "ctp", "raw", "class", "(", ")", ",", "ctp", "type", "(", ")", ",", "annotations", ")", ";", "if", "(", "converter", "!", "=", "null", ")", "{", "return", "new", "param", "converter", "<", "t", ">", "(", ")", "{", "@", "override", "public", "t", "from", "string", "(", "final", "string", "value", ")", "{", "return", "raw", "type", "cast", "(", "optional", "of", "nullable", "(", "value", ")", "map", "(", "s", "-", ">", "converter", "from", "string", "(", "value", ")", ")", ")", ";", "}", "@", "override", "public", "string", "to", "string", "(", "final", "t", "value", ")", "{", "return", "value", "to", "string", "(", ")", ";", "}", "}", ";", "}", "}", "}", "return", "null", ";" ]
[ "adds", "an", "object", "or", "objects", "to", "a", "list" ]
[ "if", "(", "value", "instanceof", "list", ")", "{", "list", "add", "all", "(", "(", "list", ")", "value", ")", ";", "}", "else", "{", "list", "add", "(", "value", ")", ";", "}" ]
[ "mean", "error", "more", "sensitive", "to", "anomalies", "in", "data" ]
[ "data", "put", "(", "new", "double", "[", "]", "{", "10", ",", "11", "}", ",", "100000", "0", ")", ";", "local", "dataset", "builder", "<", "double", "[", "]", ",", "double", ">", "dataset", "builder", "=", "new", "local", "dataset", "builder", "<", ">", "(", "data", ",", "1", ")", ";", "convergence", "checker", "<", "double", "[", "]", ",", "double", ">", "checker", "=", "create", "checker", "(", "new", "mean", "abs", "value", "convergence", "checker", "factory", "(", "0", "1", ")", ",", "dataset", "builder", ")", ";", "try", "(", "local", "dataset", "<", "empty", "context", ",", "feature", "matrix", "with", "labels", "on", "heap", "data", ">", "dataset", "=", "dataset", "builder", "build", "(", "new", "empty", "context", "builder", "<", ">", "(", ")", ",", "new", "feature", "matrix", "with", "labels", "on", "heap", "data", "builder", "<", ">", "(", "f", "extr", ",", "lb", "extr", ")", ")", ")", "{", "double", "on", "d", "s", "error", "=", "checker", "compute", "mean", "error", "on", "dataset", "(", "dataset", ",", "not", "converged", "mdl", ")", ";", "assert", "assert", "equals", "(", "9090", "41", ",", "on", "d", "s", "error", ",", "0", "01", ")", ";", "}", "catch", "(", "exception", "e", ")", "{", "throw", "new", "runtime", "exception", "(", "e", ")", ";", "}" ]
[ "an", "object", "representing", "an", "{" ]
[ "return", "of", "(", "annotation", "type", ",", "immutable", "map", "of", "(", ")", ")", ";" ]
[ "an", "object", "representing", "an", "{" ]
[ "return", "new", "simple", "annotation", "mirror", "(", "annotation", "type", ",", "named", "values", ")", ";" ]
[ "{" ]
[]
[ "{" ]
[ "super", "before", "tests", "started", "(", ")", ";", "client", "=", "true", ";", "start", "grid", "(", "srvs", ")", ";" ]
[ "gets", "the", "element", "at", "the", "given", "index", "it", "is", "an", "error", "to", "call", "this", "with", "the", "index", "for", "an", "element", "which", "was", "never", "set", ";", "if", "you", "do", "that", "this", "will", "throw", "{", "@", "code", "null", "pointer", "exception", "}" ]
[ "return", "(", "basic", "block", ")", "get", "0", "(", "n", ")", ";" ]
[ "returns", "how", "many", "registers", "this", "method", "requires", "this", "is", "simply", "the", "maximum", "of", "register", "-", "number", "-", "plus", "-", "category", "referred", "to", "by", "this", "instance", "s", "instructions", "(", "indirectly", "through", "{", "@", "link", "basic", "block", "}", "instances", ")" ]
[ "if", "(", "reg", "count", "=", "=", "-", "1", ")", "{", "reg", "count", "visitor", "visitor", "=", "new", "reg", "count", "visitor", "(", ")", ";", "for", "each", "insn", "(", "visitor", ")", ";", "reg", "count", "=", "visitor", "get", "reg", "count", "(", ")", ";", "}", "return", "reg", "count", ";" ]
[ "gets", "the", "total", "instruction", "count", "for", "this", "instance", "this", "is", "the", "sum", "of", "the", "instruction", "counts", "of", "each", "block" ]
[ "int", "sz", "=", "size", "(", ")", ";", "int", "result", "=", "0", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "sz", ";", "i", "+", "+", ")", "{", "basic", "block", "one", "=", "(", "basic", "block", ")", "get", "or", "null", "0", "(", "i", ")", ";", "if", "(", "one", "!", "=", "null", ")", "{", "result", "+", "=", "one", "get", "insns", "(", ")", "size", "(", ")", ";", "}", "}", "return", "result", ";" ]
[ "gets", "the", "total", "instruction", "count", "for", "this", "instance", "ignoring", "mark", "-", "local", "instructions", "which", "are", "not", "actually", "emitted" ]
[ "int", "sz", "=", "size", "(", ")", ";", "int", "result", "=", "0", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "sz", ";", "i", "+", "+", ")", "{", "basic", "block", "one", "=", "(", "basic", "block", ")", "get", "or", "null", "0", "(", "i", ")", ";", "if", "(", "one", "!", "=", "null", ")", "{", "insn", "list", "insns", "=", "one", "get", "insns", "(", ")", ";", "int", "insns", "sz", "=", "insns", "size", "(", ")", ";", "for", "(", "int", "j", "=", "0", ";", "j", "<", "insns", "sz", ";", "j", "+", "+", ")", "{", "insn", "insn", "=", "insns", "get", "(", "j", ")", ";", "if", "(", "insn", "get", "opcode", "(", ")", "get", "opcode", "(", ")", "!", "=", "reg", "ops", "mark", "local", ")", "{", "result", "+", "+", ";", "}", "}", "}", "}", "return", "result", ";" ]
[ "visits", "each", "instruction", "of", "each", "block", "in", "the", "list", "in", "order" ]
[ "int", "sz", "=", "size", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "sz", ";", "i", "+", "+", ")", "{", "basic", "block", "one", "=", "get", "(", "i", ")", ";", "insn", "list", "insns", "=", "one", "get", "insns", "(", ")", ";", "insns", "for", "each", "(", "visitor", ")", ";", "}" ]
[ "returns", "an", "instance", "that", "is", "identical", "to", "this", "one", "except", "that", "the", "registers", "in", "each", "instruction", "are", "offset", "by", "the", "given", "amount", "mutability", "of", "the", "result", "is", "inherited", "from", "the", "original" ]
[ "int", "sz", "=", "size", "(", ")", ";", "basic", "block", "list", "result", "=", "new", "basic", "block", "list", "(", "sz", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "sz", ";", "i", "+", "+", ")", "{", "basic", "block", "one", "=", "(", "basic", "block", ")", "get", "0", "(", "i", ")", ";", "if", "(", "one", "!", "=", "null", ")", "{", "result", "set", "(", "i", ",", "one", "with", "register", "offset", "(", "delta", ")", ")", ";", "}", "}", "if", "(", "is", "immutable", "(", ")", ")", "{", "result", "set", "immutable", "(", ")", ";", "}", "return", "result", ";" ]
[ "returns", "a", "mutable", "copy", "of", "this", "list" ]
[ "return", "new", "basic", "block", "list", "(", "this", ")", ";" ]
[ "gets", "the", "preferred", "successor", "for", "the", "given", "block", "if", "the", "block", "only", "has", "one", "successor", "then", "that", "is", "the", "preferred", "successor", "otherwise", "if", "the", "block", "has", "a", "primay", "successor", "then", "that", "is", "the", "preferred", "successor", "if", "the", "block", "has", "no", "successors", "then", "this", "returns", "{", "@", "code", "null", "}" ]
[ "int", "primary", "successor", "=", "block", "get", "primary", "successor", "(", ")", ";", "int", "list", "successors", "=", "block", "get", "successors", "(", ")", ";", "int", "succ", "size", "=", "successors", "size", "(", ")", ";", "switch", "(", "succ", "size", ")", "{", "case", "0", ":", "{", "return", "null", ";", "}", "case", "1", ":", "{", "return", "label", "to", "block", "(", "successors", "get", "(", "0", ")", ")", ";", "}", "}", "if", "(", "primary", "successor", "!", "=", "-", "1", ")", "{", "return", "label", "to", "block", "(", "primary", "successor", ")", ";", "}", "else", "{", "return", "label", "to", "block", "(", "successors", "get", "(", "0", ")", ")", ";", "}" ]
[ "gets", "the", "register", "count" ]
[ "return", "reg", "count", ";" ]
[ "{" ]
[ "visit", "(", "insn", ")", ";" ]
[ "{" ]
[ "visit", "(", "insn", ")", ";" ]
[ "{" ]
[ "visit", "(", "insn", ")", ";" ]
[ "{" ]
[ "visit", "(", "insn", ")", ";" ]
[ "{" ]
[ "visit", "(", "insn", ")", ";" ]
[ "{" ]
[ "visit", "(", "insn", ")", ";" ]
[ "helper", "for", "all", "the", "{", "@", "code", "visit", "*", "}", "methods" ]
[ "register", "spec", "result", "=", "insn", "get", "result", "(", ")", ";", "if", "(", "result", "!", "=", "null", ")", "{", "process", "reg", "(", "result", ")", ";", "}", "register", "spec", "list", "sources", "=", "insn", "get", "sources", "(", ")", ";", "int", "sz", "=", "sources", "size", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "sz", ";", "i", "+", "+", ")", "{", "process", "reg", "(", "sources", "get", "(", "i", ")", ")", ";", "}" ]
[ "processes", "the", "given", "register", "spec" ]
[ "int", "reg", "=", "spec", "get", "next", "reg", "(", ")", ";", "if", "(", "reg", ">", "reg", "count", ")", "{", "reg", "count", "=", "reg", ";", "}" ]
[ "inform", "this", "container", "that", "the", "server", "has", "been", "started" ]
[ "this", "app", "handler", "on", "startup", "(", "this", ")", ";" ]
[ "inform", "this", "container", "that", "the", "server", "is", "being", "stopped" ]
[ "this", "app", "handler", "on", "shutdown", "(", "this", ")", ";" ]
[ "commits", "the", "response", "and", "logs", "a", "warning", "message" ]
[ "if", "(", "closed", "compare", "and", "set", "(", "false", ",", "true", ")", ")", "{", "exchange", "close", "(", ")", ";", "logger", "log", "(", "level", "warning", ",", "localization", "messages", "error", "responsewriter", "response", "uncommited", "(", ")", ")", ";", "}" ]
[ "a", "convenience", "method", "to", "inflate", "and", "initialize", "a", "signin", "and", "sync", "view" ]
[ "signin", "and", "sync", "view", "signin", "view", "=", "(", "signin", "and", "sync", "view", ")", "layout", "inflater", "from", "(", "parent", "get", "context", "(", ")", ")", "inflate", "(", "r", "layout", "signin", "and", "sync", "view", ",", "parent", ",", "false", ")", ";", "signin", "view", "init", "(", "listener", ",", "access", "point", ")", ";", "return", "signin", "view", ";" ]
[ "sign", "in", "state", "observer", "implementation", ":" ]
[ "update", "(", ")", ";" ]
[ "android", "sync", "settings", "android", "sync", "settings", "observer" ]
[ "update", "(", ")", ";" ]
[ "add", "a", "filter", "instance" ]
[ "return", "add", "filter", "(", "name", ",", "new", "filter", "holder", "(", "require", "non", "null", "(", "filter", ")", ")", ")", ";" ]
[ "add", "a", "filter", "class" ]
[ "return", "add", "filter", "(", "name", ",", "new", "filter", "holder", "(", "require", "non", "null", "(", "klass", ")", ")", ")", ";" ]
[ "add", "one", "or", "more", "servlet", "event", "listeners" ]
[ "for", "(", "event", "listener", "listener", ":", "listeners", ")", "{", "handler", "add", "event", "listener", "(", "listener", ")", ";", "}" ]
[ "set", "protected", "targets" ]
[ "handler", "set", "protected", "targets", "(", "arrays", "copy", "of", "(", "targets", ",", "targets", "length", ")", ")", ";" ]
[ "sets", "the", "base", "resource", "for", "this", "context" ]
[ "handler", "set", "base", "resource", "(", "base", "resource", ")", ";" ]
[ "sets", "the", "base", "resources", "for", "this", "context" ]
[ "handler", "set", "base", "resource", "(", "new", "resource", "collection", "(", "base", "resources", ")", ")", ";" ]
[ "sets", "the", "base", "resources", "for", "this", "context" ]
[ "handler", "set", "base", "resource", "(", "new", "resource", "collection", "(", "resources", ")", ")", ";" ]
[ "sets", "the", "base", "resource", "for", "this", "context" ]
[ "handler", "set", "resource", "base", "(", "resource", "base", ")", ";" ]
[ "set", "an", "initialization", "parameter" ]
[ "handler", "set", "init", "parameter", "(", "name", ",", "value", ")", ";" ]
[ "set", "the", "session", "handler" ]
[ "handler", "set", "sessions", "enabled", "(", "session", "handler", "!", "=", "null", ")", ";", "handler", "set", "session", "handler", "(", "session", "handler", ")", ";" ]
[ "set", "the", "security", "handler" ]
[ "handler", "set", "security", "enabled", "(", "security", "handler", "!", "=", "null", ")", ";", "handler", "set", "security", "handler", "(", "security", "handler", ")", ";" ]
[ "set", "a", "mime", "mapping" ]
[ "handler", "get", "mime", "types", "(", ")", "add", "mime", "mapping", "(", "extension", ",", "type", ")", ";" ]
[ "returns", "true", "if", "there", "s", "an", "instance", "of", "processing", "already", "running", "will", "not", "return", "true", "unless", "this", "code", "was", "able", "to", "successfully", "contact", "the", "already", "running", "instance", "to", "have", "it", "launch", "sketches" ]
[ "return", "preferences", "get", "(", "server", "port", ")", "!", "=", "null", "&", "&", "send", "arguments", "(", "args", ")", ";" ]
[ "get", "the", "local", "clustering", "coefficient", "score", "this", "is", "computed", "as", "the", "number", "of", "edges", "between", "neighbors", "equal", "to", "the", "triangle", "count", "divided", "by", "the", "number", "of", "potential", "edges", "between", "neighbors" ]
[ "long", "degree", "=", "get", "degree", "(", ")", "get", "value", "(", ")", ";", "long", "neighbor", "pairs", "=", "degree", "*", "(", "degree", "-", "1", ")", ";", "return", "(", "neighbor", "pairs", "=", "=", "0", ")", "?", "double", "na", "n", ":", "get", "triangle", "count", "(", ")", "get", "value", "(", ")", "/", "(", "double", ")", "neighbor", "pairs", ";" ]
[ "reads", "method", "name", "and", "stores", "it", "in", "local", "variable", "for", "methods", "that", "return", "<", "code", ">", "string", "<", "/", "code", ">", "returns", "the", "method", "name", "otherwise", "returns", "<", "code", ">", "null", "<", "/", "code", ">" ]
[ "method", "name", "=", "target", "method", "name", "(", ")", ";", "class", "return", "type", "=", "return", "type", "(", ")", ";", "if", "(", "return", "type", "=", "=", "string", "class", ")", "{", "return", "proxy", "target", "return", "value", "(", "target", "method", "name", "(", ")", ")", ";", "}", "return", "proxy", "target", "return", "value", "(", "null", ")", ";" ]
[ "given", "the", "list", "of", "added", "/", "removed", "servers", "and", "the", "old", "and", "new", "replica", "group", "configurations", "compute", "the", "type", "of", "update", "(", "e", "g", "replace", "server", "add", "servers", "to", "each", "replica", "group", "add", "replica", "groups", ")" ]
[ "boolean", "same", "num", "instances", "per", "partition", "=", "old", "num", "instances", "per", "partition", "=", "=", "target", "num", "instances", "per", "partition", ";", "boolean", "same", "num", "replica", "group", "=", "old", "num", "replica", "group", "=", "=", "target", "num", "replica", "group", ";", "boolean", "is", "added", "servers", "size", "zero", "=", "added", "servers", "size", "(", ")", "=", "=", "0", ";", "boolean", "is", "removed", "servers", "size", "zero", "=", "removed", "servers", "size", "(", ")", "=", "=", "0", ";", "if", "(", "same", "num", "instances", "per", "partition", "&", "&", "same", "num", "replica", "group", "&", "&", "added", "servers", "size", "(", ")", "=", "=", "removed", "servers", "size", "(", ")", ")", "{", "return", "replica", "group", "rebalance", "type", "replace", ";", "}", "else", "if", "(", "same", "num", "instances", "per", "partition", ")", "{", "if", "(", "old", "num", "replica", "group", "<", "target", "num", "replica", "group", "&", "&", "!", "is", "added", "servers", "size", "zero", "&", "&", "is", "removed", "servers", "size", "zero", "&", "&", "added", "servers", "size", "(", ")", "%", "target", "num", "instances", "per", "partition", "=", "=", "0", ")", "{", "return", "replica", "group", "rebalance", "type", "add", "replica", "group", ";", "}", "else", "if", "(", "old", "num", "replica", "group", ">", "target", "num", "replica", "group", "&", "&", "is", "added", "servers", "size", "zero", "&", "&", "!", "is", "removed", "servers", "size", "zero", "&", "&", "removed", "servers", "size", "(", ")", "%", "target", "num", "instances", "per", "partition", "=", "=", "0", ")", "{", "return", "replica", "group", "rebalance", "type", "remove", "replica", "group", ";", "}", "}", "else", "if", "(", "same", "num", "replica", "group", ")", "{", "if", "(", "old", "num", "instances", "per", "partition", "<", "target", "num", "instances", "per", "partition", "&", "&", "is", "removed", "servers", "size", "zero", "&", "&", "!", "is", "added", "servers", "size", "zero", "&", "&", "added", "servers", "size", "(", ")", "%", "target", "num", "replica", "group", "=", "=", "0", ")", "{", "return", "replica", "group", "rebalance", "type", "add", "server", ";", "}", "else", "if", "(", "old", "num", "instances", "per", "partition", ">", "target", "num", "instances", "per", "partition", "&", "&", "!", "is", "removed", "servers", "size", "zero", "&", "&", "is", "added", "servers", "size", "zero", "&", "&", "removed", "servers", "size", "(", ")", "%", "target", "num", "replica", "group", "=", "=", "0", ")", "{", "return", "replica", "group", "rebalance", "type", "remove", "server", ";", "}", "}", "return", "replica", "group", "rebalance", "type", "unsupported", ";" ]
[ "rebalances", "segments", "and", "updates", "the", "idealstate", "in", "helix" ]
[ "final", "function", "<", "ideal", "state", ",", "ideal", "state", ">", "updater", "function", "=", "new", "function", "<", "ideal", "state", ",", "ideal", "state", ">", "(", ")", "{", "@", "nullable", "@", "override", "public", "ideal", "state", "apply", "(", "@", "nullable", "ideal", "state", "ideal", "state", ")", "{", "return", "rebalance", "segments", "(", "ideal", "state", ",", "table", "config", ",", "replica", "group", "partition", "assignment", ")", ";", "}", "}", ";", "helix", "helper", "update", "ideal", "state", "(", "helix", "manager", ",", "table", "config", "get", "table", "name", "(", ")", ",", "updater", "function", ",", "retry", "policies", "exponential", "backoff", "retry", "policy", "(", "5", ",", "1000", ",", "2", "0f", ")", ")", ";", "return", "helix", "admin", "get", "resource", "ideal", "state", "(", "helix", "cluster", "name", ",", "table", "config", "get", "table", "name", "(", ")", ")", ";" ]
[ "build", "the", "mapping", "of", "servers", "to", "their", "associated", "segments", "given", "a", "mapping", "of", "segments", "to", "their", "associated", "servers" ]
[ "map", "<", "string", ",", "linked", "list", "<", "string", ">", ">", "server", "to", "segments", "=", "new", "hash", "map", "<", ">", "(", ")", ";", "for", "(", "string", "segment", ":", "segment", "to", "server", "mapping", "key", "set", "(", ")", ")", "{", "for", "(", "string", "server", ":", "segment", "to", "server", "mapping", "get", "(", "segment", ")", "key", "set", "(", ")", ")", "{", "if", "(", "!", "server", "to", "segments", "contains", "key", "(", "server", ")", ")", "{", "server", "to", "segments", "put", "(", "server", ",", "new", "linked", "list", "<", "string", ">", "(", ")", ")", ";", "}", "server", "to", "segments", "get", "(", "server", ")", "add", "(", "segment", ")", ";", "}", "}", "return", "server", "to", "segments", ";" ]
[ "build", "the", "mapping", "of", "segments", "to", "their", "associated", "servers", "given", "a", "mapping", "of", "servers", "to", "their", "associated", "segments" ]
[ "map", "<", "string", ",", "map", "<", "string", ",", "string", ">", ">", "segments", "to", "server", "mapping", "=", "new", "hash", "map", "<", ">", "(", ")", ";", "for", "(", "map", "entry", "<", "string", ",", "linked", "list", "<", "string", ">", ">", "entry", ":", "server", "to", "segments", "entry", "set", "(", ")", ")", "{", "string", "server", "=", "entry", "get", "key", "(", ")", ";", "for", "(", "string", "segment", ":", "entry", "get", "value", "(", ")", ")", "{", "if", "(", "!", "segments", "to", "server", "mapping", "contains", "key", "(", "segment", ")", ")", "{", "segments", "to", "server", "mapping", "put", "(", "segment", ",", "new", "hash", "map", "<", "string", ",", "string", ">", "(", ")", ")", ";", "}", "segments", "to", "server", "mapping", "get", "(", "segment", ")", "put", "(", "server", ",", "common", "constants", "helix", "state", "model", "segment", "online", "offline", "state", "model", "online", ")", ";", "}", "}", "return", "segments", "to", "server", "mapping", ";" ]
[ "returns", "path", "filter", "that", "passes", "all", "paths", "through" ]
[ "return", "arg", "0", "-", ">", "true", ";" ]
[ "returns", "path", "filter", "that", "passes", "directories", "through" ]
[ "return", "path", "-", ">", "{", "try", "{", "return", "fs", "get", "file", "status", "(", "path", ")", "is", "directory", "(", ")", ";", "}", "catch", "(", "i", "o", "exception", "ioe", ")", "{", "return", "false", ";", "}", "}", ";" ]
[ "turns", "an", "array", "of", "file", "status", "into", "an", "array", "of", "paths" ]
[ "if", "(", "stats", "=", "=", "null", ")", "{", "return", "null", ";", "}", "if", "(", "stats", "length", "=", "=", "0", ")", "{", "return", "new", "path", "[", "0", "]", ";", "}", "path", "[", "]", "res", "=", "new", "path", "[", "stats", "length", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "stats", "length", ";", "i", "+", "+", ")", "{", "res", "[", "i", "]", "=", "stats", "[", "i", "]", "get", "path", "(", ")", ";", "}", "return", "res", ";" ]
[ "requests", "for", "the", "display", "content", "of", "a", "{", "@", "link", "surface", "view", "}", "to", "be", "copied", "into", "a", "provided", "{", "@", "link", "bitmap", "}" ]
[ "request", "(", "source", "get", "holder", "(", ")", "get", "surface", "(", ")", ",", "dest", ",", "listener", ",", "listener", "thread", ")", ";" ]
[ "requests", "for", "the", "display", "content", "of", "a", "{", "@", "link", "surface", "view", "}", "to", "be", "copied", "into", "a", "provided", "{", "@", "link", "bitmap", "}" ]
[ "request", "(", "source", "get", "holder", "(", ")", "get", "surface", "(", ")", ",", "src", "rect", ",", "dest", ",", "listener", ",", "listener", "thread", ")", ";" ]
[ "requests", "a", "copy", "of", "the", "pixels", "from", "a", "{", "@", "link", "surface", "}", "to", "be", "copied", "into", "a", "provided", "{", "@", "link", "bitmap", "}" ]
[ "request", "(", "source", ",", "null", ",", "dest", ",", "listener", ",", "listener", "thread", ")", ";" ]
[ "requests", "a", "copy", "of", "the", "pixels", "from", "a", "{", "@", "link", "window", "}", "to", "be", "copied", "into", "a", "provided", "{", "@", "link", "bitmap", "}" ]
[ "request", "(", "source", ",", "null", ",", "dest", ",", "listener", ",", "listener", "thread", ")", ";" ]
[ "set", "to", "<", "code", ">", "null", "<", "/", "code", ">", "or", "empty", "set", "to", "remove", "existing", "tags" ]
[ "this", "tags", "=", "tags", ";", "this", "change", "tags", "=", "true", ";", "return", "this", ";" ]
[ "set", "to", "<", "code", ">", "null", "<", "/", "code", ">", "or", "blank", "to", "remove", "existing", "note" ]
[ "this", "markdown", "note", "=", "s", "=", "=", "null", "?", "null", ":", "string", "utils", "default", "if", "blank", "(", "s", ",", "null", ")", ";", "this", "change", "markdown", "note", "=", "true", ";", "return", "this", ";" ]
[ "parameters", "to", "be", "updated", "(", "only", "for", "custom", "rules", ")" ]
[ "check", "custom", "rule", "(", ")", ";", "this", "parameters", "clear", "(", ")", ";", "this", "parameters", "put", "all", "(", "params", ")", ";", "this", "change", "parameters", "=", "true", ";", "return", "this", ";" ]
[ "use", "to", "update", "a", "rule", "provided", "by", "a", "plugin", "(", "name", "description", "severity", "status", "and", "parameters", "cannot", "by", "changed", ")" ]
[ "return", "new", "rule", "update", "(", "rule", "key", ",", "plugin", "rule", ")", ";" ]
[ "use", "to", "update", "a", "custom", "rule" ]
[ "return", "new", "rule", "update", "(", "rule", "key", ",", "custom", "rule", ")", ";" ]
[ "convert", "list", "of", "dbnames", "into", "list", "of", "hive", "privilege", "object" ]
[ "list", "<", "hive", "privilege", "object", ">", "objs", "=", "new", "array", "list", "<", "hive", "privilege", "object", ">", "(", ")", ";", "for", "(", "string", "dbname", ":", "db", "list", ")", "{", "objs", "add", "(", "new", "hive", "privilege", "object", "(", "hive", "privilege", "object", "type", "database", ",", "dbname", ",", "dbname", ")", ")", ";", "}", "return", "objs", ";" ]
[ "/", "*", "causes", "parse", "failure" ]
[ "return", "new", "rectangle", "2", "d", "double", "(", ")", ";" ]
[ "/", "*", "causes", "parse", "failure" ]
[ "return", "new", "rectangle", "2", "d", "@", "ann", "double", "(", ")", ";" ]
[ "/", "*", "amazingly", "does", "not", "cause", "parse", "failure" ]
[ "rectangle", "2", "d", "@", "ann", "double", "rect", "=", "null", ";", "return", "rect", ";" ]
[ "gets", "the", "{", "@", "link", "keyguard", "update", "monitor", "callback", "}", "instance", "associated", "with", "this", "{", "@", "link", "keyguard", "indication", "controller", "}" ]
[ "if", "(", "m", "update", "monitor", "callback", "=", "=", "null", ")", "{", "m", "update", "monitor", "callback", "=", "new", "base", "keyguard", "callback", "(", ")", ";", "}", "return", "m", "update", "monitor", "callback", ";" ]
[ "sets", "the", "indication", "that", "is", "shown", "if", "nothing", "else", "is", "showing" ]
[ "m", "resting", "indication", "=", "resting", "indication", ";", "update", "indication", "(", "false", ")", ";" ]
[ "sets", "the", "active", "controller", "managing", "changes", "and", "callbacks", "to", "user", "information" ]
[]