docstring_tokens
list
code_tokens
list
[ "<", "p", ">", "the", "list", "of", "scheduled", "audits", "<", "/", "p", ">" ]
[ "set", "scheduled", "audits", "(", "scheduled", "audits", ")", ";", "return", "this", ";" ]
[ "<", "p", ">", "a", "token", "that", "can", "be", "used", "to", "retrieve", "the", "next", "set", "of", "results", "or", "<", "code", ">", "null", "<", "/", "code", ">", "if", "there", "are", "no", "additional", "results", "<", "/", "p", ">" ]
[ "set", "next", "token", "(", "next", "token", ")", ";", "return", "this", ";" ]
[ "implementation", "of", "list", "<", "object", ">", "and", "assorted", "methods" ]
[ "object", "[", "]", "array", "=", "new", "object", "[", "length", "]", ";", "if", "(", "this", "array", "length", ">", "0", ")", "{", "system", "arraycopy", "(", "this", "array", ",", "0", ",", "array", ",", "0", ",", "this", "array", "length", ")", ";", "}", "this", "array", "=", "array", ";" ]
[ "end", "read", "only", "sub", "list" ]
[ "check", "single", "row", "(", ")", ";", "return", "array", ";" ]
[ "return", "the", "operation", "parameters" ]
[ "return", "this", "operation", "parameters", ";" ]
[ "this", "method", "returns", "the", "debugging", "information", "exposed", "by", "{" ]
[ "preconditions", "check", "argument", "(", "lifecycle", "lock", "await", "started", "(", "1", ",", "time", "unit", "milliseconds", ")", ")", ";", "map", "<", "string", ",", "object", ">", "result", "=", "new", "hash", "map", "<", ">", "(", "servers", "size", "(", ")", ")", ";", "for", "(", "map", "entry", "<", "string", ",", "druid", "server", "holder", ">", "e", ":", "servers", "entry", "set", "(", ")", ")", "{", "druid", "server", "holder", "server", "holder", "=", "e", "get", "value", "(", ")", ";", "result", "put", "(", "e", "get", "key", "(", ")", ",", "server", "holder", "syncer", "get", "debug", "info", "(", ")", ")", ";", "}", "return", "result", ";" ]
[ "<", "b", ">", "posix", "documentation", "<", "/", "b", ">" ]
[ "int", "result", "=", "delegate", "posix", "fadvise", "(", "fd", ",", "offset", ",", "len", ",", "advice", ")", ";", "if", "(", "result", "!", "=", "0", ")", "throw", "new", "i", "o", "exception", "(", "errno", "strerror", "(", "result", ")", ")", ";", "return", "result", ";" ]
[ "<", "b", ">", "posix", "documentation", "<", "/", "b", ">" ]
[ "int", "result", "=", "delegate", "posix", "fallocate", "(", "fd", ",", "offset", ",", "len", ")", ";", "if", "(", "result", "!", "=", "0", ")", "{", "logger", "warn", "(", "errno", "strerror", "(", "result", ")", ")", ";", "}", "return", "result", ";" ]
[ "prevent", "the", "realm", "instance", "from", "leaking" ]
[ "super", "on", "destroy", "(", ")", ";", "close", "realm", "(", ")", ";" ]
[ "wait", "while", "in", "a", "browser", "appears", "more", "the", "1", "window" ]
[ "new", "web", "driver", "wait", "(", "this", ",", "30", ")", "until", "(", "(", "expected", "condition", "<", "boolean", ">", ")", "input", "-", ">", "{", "set", "<", "string", ">", "driver", "windows", "=", "get", "window", "handles", "(", ")", ";", "return", "(", "driver", "windows", "size", "(", ")", ">", "1", ")", ";", "}", ")", ";" ]
[ "switch", "to", "the", "next", "browser", "window", "(", "this", "means", "that", "if", "opened", "2", "windows", "and", "we", "are", "in", "the", "window", "1", "we", "will", "be", "switched", "into", "the", "window", "2", ")" ]
[ "wait", "opened", "some", "win", "(", ")", ";", "for", "(", "string", "handle", ":", "get", "window", "handles", "(", ")", ")", "{", "if", "(", "!", "current", "window", "handler", "equals", "(", "handle", ")", ")", "{", "switch", "to", "(", ")", "window", "(", "handle", ")", ";", "break", ";", "}", "}" ]
[ "must", "be", "called", "before", "attempting", "to", "read", "records" ]
[ "super", "initialize", "(", "conf", ",", "split", ")", ";", "set", "conf", "(", "conf", ")", ";" ]
[ "helper", "function", "to", "help", "detect", "lines", "that", "are", "commented", "out", "may", "read", "ahead", "and", "cache", "a", "line" ]
[ "writable", "w", "=", "null", ";", "if", "(", "record", "lookahead", "!", "=", "null", ")", "{", "w", "=", "record", "lookahead", ";", "record", "lookahead", "=", "null", ";", "}", "while", "(", "w", "=", "=", "null", "&", "&", "super", "has", "next", "(", ")", ")", "{", "w", "=", "super", "next", "(", ")", "iterator", "(", ")", "next", "(", ")", ";", "if", "(", "!", "w", "to", "string", "(", ")", "starts", "with", "(", "comment", "char", ")", ")", "break", ";", "w", "=", "null", ";", "}", "return", "w", ";" ]
[ "returns", "the", "new", "comment", "entered", "by", "the", "user" ]
[ "return", "m", "description", "field", "get", "text", "(", ")", ";" ]
[ "#", "#", "#", "#", "tests", "pertaining", "to", "wait", "time", "#", "#", "#", "#" ]
[ "assert", "equals", "(", "0", ",", "gen", "new", "id", "base", "local", "(", "1516028439000l", ",", "1234", ",", "100", ")", "wait", "time", "millis", ")", ";" ]
[ "builds", "a", "distribution", "deployed", "waiter", "by", "using", "custom", "parameters", "waiter", "parameters", "and", "other", "parameters", "defined", "in", "the", "waiters", "specification", "and", "then", "polls", "until", "it", "determines", "whether", "the", "resource", "entered", "the", "desired", "state", "or", "not", "where", "polling", "criteria", "is", "bound", "by", "either", "default", "polling", "strategy", "or", "custom", "polling", "strategy" ]
[ "return", "new", "waiter", "builder", "<", "get", "distribution", "request", ",", "get", "distribution", "result", ">", "(", ")", "with", "sdk", "function", "(", "new", "get", "distribution", "function", "(", "client", ")", ")", "with", "acceptors", "(", "new", "distribution", "deployed", "is", "deployed", "matcher", "(", ")", ")", "with", "default", "polling", "strategy", "(", "new", "polling", "strategy", "(", "new", "max", "attempts", "retry", "strategy", "(", "25", ")", ",", "new", "fixed", "delay", "strategy", "(", "60", ")", ")", ")", "with", "executor", "service", "(", "executor", "service", ")", "build", "(", ")", ";" ]
[ "builds", "a", "streaming", "distribution", "deployed", "waiter", "by", "using", "custom", "parameters", "waiter", "parameters", "and", "other", "parameters", "defined", "in", "the", "waiters", "specification", "and", "then", "polls", "until", "it", "determines", "whether", "the", "resource", "entered", "the", "desired", "state", "or", "not", "where", "polling", "criteria", "is", "bound", "by", "either", "default", "polling", "strategy", "or", "custom", "polling", "strategy" ]
[ "return", "new", "waiter", "builder", "<", "get", "streaming", "distribution", "request", ",", "get", "streaming", "distribution", "result", ">", "(", ")", "with", "sdk", "function", "(", "new", "get", "streaming", "distribution", "function", "(", "client", ")", ")", "with", "acceptors", "(", "new", "streaming", "distribution", "deployed", "is", "deployed", "matcher", "(", ")", ")", "with", "default", "polling", "strategy", "(", "new", "polling", "strategy", "(", "new", "max", "attempts", "retry", "strategy", "(", "25", ")", ",", "new", "fixed", "delay", "strategy", "(", "60", ")", ")", ")", "with", "executor", "service", "(", "executor", "service", ")", "build", "(", ")", ";" ]
[ "builds", "a", "invalidation", "completed", "waiter", "by", "using", "custom", "parameters", "waiter", "parameters", "and", "other", "parameters", "defined", "in", "the", "waiters", "specification", "and", "then", "polls", "until", "it", "determines", "whether", "the", "resource", "entered", "the", "desired", "state", "or", "not", "where", "polling", "criteria", "is", "bound", "by", "either", "default", "polling", "strategy", "or", "custom", "polling", "strategy" ]
[ "return", "new", "waiter", "builder", "<", "get", "invalidation", "request", ",", "get", "invalidation", "result", ">", "(", ")", "with", "sdk", "function", "(", "new", "get", "invalidation", "function", "(", "client", ")", ")", "with", "acceptors", "(", "new", "invalidation", "completed", "is", "completed", "matcher", "(", ")", ")", "with", "default", "polling", "strategy", "(", "new", "polling", "strategy", "(", "new", "max", "attempts", "retry", "strategy", "(", "30", ")", ",", "new", "fixed", "delay", "strategy", "(", "20", ")", ")", ")", "with", "executor", "service", "(", "executor", "service", ")", "build", "(", ")", ";" ]
[ "get", "a", "fresh", "connection", "from", "h2" ]
[ "if", "(", "connection", "=", "=", "null", ")", "{", "try", "{", "class", "for", "name", "(", "driver", "(", ")", ")", ";", "connection", "=", "driver", "manager", "get", "connection", "(", "url", "(", ")", ",", "username", "(", ")", ",", "password", "(", ")", ")", ";", "connection", "set", "auto", "commit", "(", "false", ")", ";", "}", "catch", "(", "exception", "e", ")", "{", "throw", "new", "runtime", "exception", "(", "e", ")", ";", "}", "}", "return", "connection", ";" ]
[ "implementations", "of", "this", "method", "should", "not", "have", "any", "observable", "side", "-", "effects" ]
[ "@", "visible", "for", "testing", "protected", "abstract", "immutable", "list", "<", "string", ">", "get", "shell", "command", "internal", "(", "execution", "context", "context", ")", ";" ]
[ "returns", "the", "environment", "variables", "to", "include", "when", "running", "this", "{", "@", "link", "shell", "step", "}" ]
[ "return", "immutable", "map", "of", "(", ")", ";" ]
[ "{" ]
[ "@", "override", "public", "abstract", "int", "set", "clone", "(", ")", ";" ]
[ "{" ]
[ "@", "override", "public", "abstract", "int", "iterator", "iterator", "(", ")", ";" ]
[ "{" ]
[ "@", "override", "public", "abstract", "int", "iterator", "descending", "iterator", "(", ")", ";" ]
[ "{" ]
[ "int", "iterator", "this", "iterator", "=", "this", "descending", "iterator", "(", ")", ";", "int", "iterator", "other", "iterator", "=", "o", "descending", "iterator", "(", ")", ";", "while", "(", "this", "iterator", "has", "next", "(", ")", "&", "&", "other", "iterator", "has", "next", "(", ")", ")", "{", "int", "this", "item", "=", "this", "iterator", "next", "(", ")", ";", "int", "other", "item", "=", "other", "iterator", "next", "(", ")", ";", "if", "(", "this", "item", "<", "other", "item", ")", "{", "return", "-", "1", ";", "}", "if", "(", "this", "item", ">", "other", "item", ")", "{", "return", "1", ";", "}", "}", "return", "this", "iterator", "has", "next", "(", ")", "?", "1", ":", "(", "other", "iterator", "has", "next", "(", ")", "?", "-", "1", ":", "0", ")", ";" ]
[ "{" ]
[ "if", "(", "is", "empty", "(", ")", ")", "{", "return", "0", ";", "}", "int", "h", "=", "1", ";", "int", "iterator", "itr", "=", "iterator", "(", ")", ";", "if", "(", "!", "itr", "has", "next", "(", ")", ")", "{", "h", "=", "(", "h", "<", "<", "5", ")", "-", "h", "+", "itr", "next", "(", ")", ";", "}", "return", "h", ";" ]
[ "verify", "if", "a", "node", "contains", "a", "tag" ]
[ "return", "this", "tags", "contains", "key", "(", "tag", "name", "to", "lower", "case", "(", "locale", "root", ")", ")", ";" ]
[ "should", "receive", "the", "default", "field", "value", "directly", "by", "parameter" ]
[ "if", "(", "this", "to", "query", "string", "ignore", "fields", ")", "return", "true", ";", "if", "(", "fld", "=", "=", "null", ")", "return", "true", ";", "if", "(", "query", "node", "impl", "plaintext", "field", "name", "equals", "(", "string", "utils", "to", "string", "(", "fld", ")", ")", ")", "return", "true", ";", "return", "false", ";" ]
[ "blocking", "strategy", "that", "uses", "a", "lock", "and", "condition", "variable", "for", "consumer", "waiting", "on", "a", "barrier" ]
[ "return", "new", "blocking", "(", ")", ";" ]
[ "busy", "spin", "strategy", "that", "uses", "a", "busy", "spin", "loop", "for", "consumers", "waiting", "on", "a", "barrier" ]
[ "return", "busy", "spin", "instance", ";" ]
[ "test", "if", "exception", "is", "alert" ]
[ "return", "t", "=", "=", "alert", "exception", "instance", ";" ]
[ "variation", "of", "the", "{" ]
[ "return", "new", "lite", "blocking", "(", ")", ";" ]
[ "parking", "strategy", "that", "initially", "spins", "then", "uses", "a", "thread", "yield", "(", ")", "and", "eventually", "sleep", "(", "<", "code", ">", "lock", "support", "park", "nanos", "(", "1", ")", "<", "/", "code", ">", ")", "for", "the", "minimum", "number", "of", "nanos", "the", "os", "and", "jvm", "will", "allow", "while", "the", "consumers", "are", "waiting", "on", "a", "barrier", "<", "p", ">", "this", "strategy", "is", "a", "good", "compromise", "between", "performance", "and", "cpu", "resource", "latency", "spikes", "can", "occur", "after", "quiet", "periods" ]
[ "return", "parking", "instance", ";" ]
[ "parking", "strategy", "that", "initially", "spins", "then", "uses", "a", "thread", "yield", "(", ")", "and", "eventually", "sleep", "(", "<", "code", ">", "lock", "support", "park", "nanos", "(", "1", ")", "<", "/", "code", ">", ")", "for", "the", "minimum", "number", "of", "nanos", "the", "os", "and", "jvm", "will", "allow", "while", "the", "consumers", "are", "waiting", "on", "a", "barrier", "<", "p", ">", "this", "strategy", "is", "a", "good", "compromise", "between", "performance", "and", "cpu", "resource", "latency", "spikes", "can", "occur", "after", "quiet", "periods" ]
[ "return", "new", "parking", "(", "retries", ")", ";" ]
[ "<", "p", ">", "phased", "wait", "strategy", "for", "waiting", "consumers", "on", "a", "barrier", "<", "/", "p", ">", "<", "p", ">", "<", "p", ">", "this", "strategy", "can", "be", "used", "when", "throughput", "and", "low", "-", "latency", "are", "not", "as", "important", "as", "cpu", "resource", "spins", "then", "yields", "then", "waits", "using", "the", "configured", "fallback", "wait", "strategy", "<", "/", "p", ">" ]
[ "return", "new", "phased", "off", "(", "spin", "timeout", ",", "yield", "timeout", ",", "units", ",", "delegate", ")", ";" ]
[ "block", "with", "wait", "/", "notify", "all", "semantics" ]
[ "return", "phased", "off", "(", "spin", "timeout", ",", "yield", "timeout", ",", "units", ",", "lite", "blocking", "(", ")", ")", ";" ]
[ "block", "with", "wait", "/", "notify", "all", "semantics" ]
[ "return", "phased", "off", "(", "spin", "timeout", ",", "yield", "timeout", ",", "units", ",", "blocking", "(", ")", ")", ";" ]
[ "block", "by", "parking", "in", "a", "loop" ]
[ "return", "phased", "off", "(", "spin", "timeout", ",", "yield", "timeout", ",", "units", ",", "parking", "(", "0", ")", ")", ";" ]
[ "yielding", "strategy", "that", "uses", "a", "thread", "sleep", "(", "1", ")", "for", "consumers", "waiting", "on", "a", "barrier", "after", "an", "initially", "spinning" ]
[ "return", "sleeping", "instance", ";" ]
[ "yielding", "strategy", "that", "uses", "a", "thread", "yield", "(", ")", "for", "consumers", "waiting", "on", "a", "barrier", "after", "an", "initially", "spinning" ]
[ "return", "yielding", "instance", ";" ]
[ "implementations", "should", "signal", "the", "waiting", "consumers", "that", "the", "cursor", "has", "advanced" ]
[]
[ "wait", "for", "the", "given", "sequence", "to", "be", "available", "it", "is", "possible", "for", "this", "method", "to", "return", "a", "value", "less", "than", "the", "sequence", "number", "supplied", "depending", "on", "the", "implementation", "of", "the", "wait", "strategy", "a", "common", "use", "for", "this", "is", "to", "signal", "a", "timeout", "any", "event", "processor", "that", "is", "using", "a", "wait", "strategy", "to", "get", "notifications", "about", "message", "becoming", "available", "should", "remember", "to", "handle", "this", "case" ]
[ "public", "abstract", "long", "wait", "for", "(", "long", "sequence", ",", "long", "supplier", "cursor", ",", "runnable", "spin", "observer", ")", "throws", "interrupted", "exception", ";" ]
[ "throw", "an", "alert", "signal", "exception", "(", "singleton", ")", "that", "can", "be", "checked", "against", "{" ]
[ "throw", "alert", "exception", "instance", ";" ]
[ "returns", "the", "string", "values", "of", "nominal", "attribute" ]
[ "return", "values", "to", "array", "(", "new", "string", "[", "values", "size", "(", ")", "]", ")", ";" ]
[ "initializes", "class", "data" ]
[ "scroller", "=", "new", "wheel", "scroller", "(", "get", "context", "(", ")", ",", "scrolling", "listener", ")", ";" ]
[ "set", "the", "the", "specified", "scrolling", "interpolator" ]
[ "scroller", "set", "interpolator", "(", "interpolator", ")", ";" ]
[ "sets", "the", "desired", "count", "of", "visible", "items", "actual", "amount", "of", "visible", "items", "depends", "on", "wheel", "layout", "parameters", "to", "apply", "changes", "and", "rebuild", "view", "call", "measure", "(", ")" ]
[ "visible", "items", "=", "count", ";" ]
[ "gets", "view", "adapter" ]
[ "return", "view", "adapter", ";" ]
[ "sets", "view", "adapter", "usually", "new", "adapters", "contain", "different", "views", "so", "it", "needs", "to", "rebuild", "view", "by", "calling", "measure", "(", ")" ]
[ "if", "(", "this", "view", "adapter", "!", "=", "null", ")", "{", "this", "view", "adapter", "unregister", "data", "set", "observer", "(", "data", "observer", ")", ";", "}", "this", "view", "adapter", "=", "view", "adapter", ";", "if", "(", "this", "view", "adapter", "!", "=", "null", ")", "{", "this", "view", "adapter", "register", "data", "set", "observer", "(", "data", "observer", ")", ";", "}", "invalidate", "wheel", "(", "true", ")", ";" ]
[ "adds", "wheel", "changing", "listener" ]
[ "changing", "listeners", "add", "(", "listener", ")", ";" ]
[ "removes", "wheel", "changing", "listener" ]
[ "changing", "listeners", "remove", "(", "listener", ")", ";" ]
[ "notifies", "changing", "listeners" ]
[ "for", "(", "on", "wheel", "changed", "listener", "listener", ":", "changing", "listeners", ")", "{", "listener", "on", "changed", "(", "this", ",", "old", "value", ",", "new", "value", ")", ";", "}" ]
[ "adds", "wheel", "scrolling", "listener" ]
[ "scrolling", "listeners", "add", "(", "listener", ")", ";" ]
[ "removes", "wheel", "scrolling", "listener" ]
[ "scrolling", "listeners", "remove", "(", "listener", ")", ";" ]
[ "notifies", "listeners", "about", "starting", "scrolling" ]
[ "for", "(", "on", "wheel", "scroll", "listener", "listener", ":", "scrolling", "listeners", ")", "{", "listener", "on", "scrolling", "started", "(", "this", ")", ";", "}" ]
[ "notifies", "listeners", "about", "ending", "scrolling" ]
[ "for", "(", "on", "wheel", "scroll", "listener", "listener", ":", "scrolling", "listeners", ")", "{", "listener", "on", "scrolling", "finished", "(", "this", ")", ";", "}" ]
[ "adds", "wheel", "clicking", "listener" ]
[ "clicking", "listeners", "add", "(", "listener", ")", ";" ]
[ "removes", "wheel", "clicking", "listener" ]
[ "clicking", "listeners", "remove", "(", "listener", ")", ";" ]
[ "notifies", "listeners", "about", "clicking" ]
[ "for", "(", "on", "wheel", "clicked", "listener", "listener", ":", "clicking", "listeners", ")", "{", "listener", "on", "item", "clicked", "(", "this", ",", "item", ")", ";", "}" ]
[ "get", "the", "current", "item" ]
[ "return", "current", "item", ";" ]
[ "sets", "the", "current", "item", "w", "/", "o", "animation", "does", "nothing", "when", "index", "is", "wrong" ]
[ "set", "current", "item", "(", "index", ",", "false", ")", ";" ]
[ "tests", "if", "wheel", "is", "cyclic", "that", "means", "before", "the", "1st", "item", "there", "is", "shown", "the", "last", "one" ]
[ "return", "is", "cyclic", ";" ]
[ "set", "wheel", "cyclic", "flag" ]
[ "this", "is", "cyclic", "=", "is", "cyclic", ";", "invalidate", "wheel", "(", "false", ")", ";" ]
[ "determine", "whether", "shadows", "are", "drawn" ]
[ "return", "draw", "shadows", ";" ]
[ "set", "the", "shadow", "gradient", "color" ]
[ "shadows", "colors", "=", "new", "int", "[", "]", "{", "start", ",", "middle", ",", "end", "}", ";" ]
[ "sets", "the", "drawable", "for", "the", "wheel", "background" ]
[ "wheel", "background", "=", "resource", ";", "set", "background", "resource", "(", "wheel", "background", ")", ";" ]
[ "sets", "the", "drawable", "for", "the", "wheel", "foreground" ]
[ "wheel", "foreground", "=", "resource", ";", "center", "drawable", "=", "get", "context", "(", ")", "get", "resources", "(", ")", "get", "drawable", "(", "wheel", "foreground", ")", ";" ]
[ "initializes", "resources" ]
[ "if", "(", "center", "drawable", "=", "=", "null", ")", "{", "center", "drawable", "=", "get", "context", "(", ")", "get", "resources", "(", ")", "get", "drawable", "(", "wheel", "foreground", ")", ";", "}", "if", "(", "top", "shadow", "=", "=", "null", ")", "{", "top", "shadow", "=", "new", "gradient", "drawable", "(", "orientation", "top", "bottom", ",", "shadows", "colors", ")", ";", "}", "if", "(", "bottom", "shadow", "=", "=", "null", ")", "{", "bottom", "shadow", "=", "new", "gradient", "drawable", "(", "orientation", "bottom", "top", ",", "shadows", "colors", ")", ";", "}", "set", "background", "resource", "(", "wheel", "background", ")", ";" ]
[ "calculates", "desired", "height", "for", "layout" ]
[ "if", "(", "layout", "!", "=", "null", "&", "&", "layout", "get", "child", "at", "(", "0", ")", "!", "=", "null", ")", "{", "item", "height", "=", "layout", "get", "child", "at", "(", "0", ")", "get", "measured", "height", "(", ")", ";", "}", "int", "desired", "=", "item", "height", "*", "visible", "items", "-", "item", "height", "*", "item", "offset", "percent", "/", "50", ";", "return", "math", "max", "(", "desired", ",", "get", "suggested", "minimum", "height", "(", ")", ")", ";" ]
[ "returns", "height", "of", "wheel", "item" ]
[ "if", "(", "item", "height", "!", "=", "0", ")", "{", "return", "item", "height", ";", "}", "if", "(", "items", "layout", "!", "=", "null", "&", "&", "items", "layout", "get", "child", "at", "(", "0", ")", "!", "=", "null", ")", "{", "item", "height", "=", "items", "layout", "get", "child", "at", "(", "0", ")", "get", "height", "(", ")", ";", "return", "item", "height", ";", "}", "return", "get", "height", "(", ")", "/", "visible", "items", ";" ]
[ "sets", "layouts", "width", "and", "height" ]
[ "int", "items", "width", "=", "width", "-", "2", "*", "padding", ";", "items", "layout", "layout", "(", "0", ",", "0", ",", "items", "width", ",", "height", ")", ";" ]
[ "draws", "items" ]
[ "canvas", "save", "(", ")", ";", "int", "top", "=", "(", "current", "item", "-", "first", "item", ")", "*", "get", "item", "height", "(", ")", "+", "(", "get", "item", "height", "(", ")", "-", "get", "height", "(", ")", ")", "/", "2", ";", "canvas", "translate", "(", "padding", ",", "-", "top", "+", "scrolling", "offset", ")", ";", "items", "layout", "draw", "(", "canvas", ")", ";", "canvas", "restore", "(", ")", ";" ]
[ "scroll", "the", "wheel" ]
[ "int", "distance", "=", "items", "to", "scroll", "*", "get", "item", "height", "(", ")", "-", "scrolling", "offset", ";", "scroller", "scroll", "(", "distance", ",", "time", ")", ";" ]
[ "rebuilds", "wheel", "items", "if", "necessary", "caches", "all", "unused", "items" ]
[ "boolean", "updated", "=", "false", ";", "items", "range", "range", "=", "get", "items", "range", "(", ")", ";", "if", "(", "items", "layout", "!", "=", "null", ")", "{", "int", "first", "=", "recycle", "recycle", "items", "(", "items", "layout", ",", "first", "item", ",", "range", ")", ";", "updated", "=", "first", "item", "!", "=", "first", ";", "first", "item", "=", "first", ";", "}", "else", "{", "create", "items", "layout", "(", ")", ";", "updated", "=", "true", ";", "}", "if", "(", "!", "updated", ")", "{", "updated", "=", "first", "item", "!", "=", "range", "get", "first", "(", ")", "|", "|", "items", "layout", "get", "child", "count", "(", ")", "!", "=", "range", "get", "count", "(", ")", ";", "}", "if", "(", "first", "item", ">", "range", "get", "first", "(", ")", "&", "&", "first", "item", "<", "=", "range", "get", "last", "(", ")", ")", "{", "for", "(", "int", "i", "=", "first", "item", "-", "1", ";", "i", ">", "=", "range", "get", "first", "(", ")", ";", "i", "-", "-", ")", "{", "if", "(", "!", "add", "view", "item", "(", "i", ",", "true", ")", ")", "{", "break", ";", "}", "first", "item", "=", "i", ";", "}", "}", "else", "{", "first", "item", "=", "range", "get", "first", "(", ")", ";", "}", "int", "first", "=", "first", "item", ";", "for", "(", "int", "i", "=", "items", "layout", "get", "child", "count", "(", ")", ";", "i", "<", "range", "get", "count", "(", ")", ";", "i", "+", "+", ")", "{", "if", "(", "!", "add", "view", "item", "(", "first", "item", "+", "i", ",", "false", ")", "&", "&", "items", "layout", "get", "child", "count", "(", ")", "=", "=", "0", ")", "{", "first", "+", "+", ";", "}", "}", "first", "item", "=", "first", ";", "return", "updated", ";" ]
[ "updates", "view", "rebuilds", "items", "and", "label", "if", "necessary", "recalculate", "items", "sizes" ]
[ "if", "(", "rebuild", "items", "(", ")", ")", "{", "calculate", "layout", "width", "(", "get", "width", "(", ")", ",", "measure", "spec", "exactly", ")", ";", "layout", "(", "get", "width", "(", ")", ",", "get", "height", "(", ")", ")", ";", "}" ]
[ "creates", "item", "layouts", "if", "necessary" ]
[ "if", "(", "items", "layout", "=", "=", "null", ")", "{", "items", "layout", "=", "new", "linear", "layout", "(", "get", "context", "(", ")", ")", ";", "items", "layout", "set", "orientation", "(", "linear", "layout", "vertical", ")", ";", "}" ]
[ "adds", "view", "for", "item", "to", "items", "layout" ]
[ "view", "view", "=", "get", "item", "view", "(", "index", ")", ";", "if", "(", "view", "!", "=", "null", ")", "{", "if", "(", "first", ")", "{", "items", "layout", "add", "view", "(", "view", ",", "0", ")", ";", "}", "else", "{", "items", "layout", "add", "view", "(", "view", ")", ";", "}", "return", "true", ";", "}", "return", "false", ";" ]
[ "checks", "whether", "intem", "index", "is", "valid" ]
[ "return", "view", "adapter", "!", "=", "null", "&", "&", "view", "adapter", "get", "items", "count", "(", ")", ">", "0", "&", "&", "(", "is", "cyclic", "|", "|", "index", ">", "=", "0", "&", "&", "index", "<", "view", "adapter", "get", "items", "count", "(", ")", ")", ";" ]
[ "returns", "view", "for", "specified", "item" ]
[ "if", "(", "view", "adapter", "=", "=", "null", "|", "|", "view", "adapter", "get", "items", "count", "(", ")", "=", "=", "0", ")", "{", "return", "null", ";", "}", "int", "count", "=", "view", "adapter", "get", "items", "count", "(", ")", ";", "if", "(", "!", "is", "valid", "item", "index", "(", "index", ")", ")", "{", "return", "view", "adapter", "get", "empty", "item", "(", "recycle", "get", "empty", "item", "(", ")", ",", "items", "layout", ")", ";", "}", "else", "{", "while", "(", "index", "<", "0", ")", "{", "index", "=", "count", "+", "index", ";", "}", "}", "index", "%", "=", "count", ";", "return", "view", "adapter", "get", "item", "(", "index", ",", "recycle", "get", "item", "(", ")", ",", "items", "layout", ")", ";" ]
[ "stops", "scrolling" ]
[ "scroller", "stop", "scrolling", "(", ")", ";" ]
[ "updates", "the", "(", "potentially", "stale", ")", "priority", "value", "cached", "in", "this", "object", "this", "should", "be", "called", "when", "this", "object", "is", "outside", "the", "queue" ]
[ "priority", "new", "priority", "=", "task", "handle", "get", "priority", "(", ")", ";", "priority", "old", "priority", "=", "priority", "get", "and", "set", "(", "new", "priority", ")", ";", "return", "new", "priority", "get", "level", "(", ")", "!", "=", "old", "priority", "get", "level", "(", ")", ";" ]
[ "updates", "the", "task", "level", "priority", "to", "be", "greater", "than", "or", "equal", "to", "the", "minimum", "priority", "within", "that", "level", "this", "ensures", "that", "tasks", "that", "spend", "time", "blocked", "do", "not", "return", "and", "starve", "already", "-", "running", "tasks", "also", "updates", "the", "cached", "priority", "object" ]
[ "priority", "set", "(", "task", "handle", "reset", "level", "priority", "(", ")", ")", ";" ]
[ "<", "p", ">", "the", "type", "of", "placement", "strategy", "the", "<", "code", ">", "random", "<", "/", "code", ">", "placement", "strategy", "randomly", "places", "tasks", "on", "available", "candidates", "the", "<", "code", ">", "spread", "<", "/", "code", ">", "placement", "strategy", "spreads", "placement", "across", "available", "candidates", "evenly", "based", "on", "the", "<", "code", ">", "field", "<", "/", "code", ">", "parameter", "the", "<", "code", ">", "binpack", "<", "/", "code", ">", "strategy", "places", "tasks", "on", "available", "candidates", "that", "have", "the", "least", "available", "amount", "of", "the", "resource", "that", "is", "specified", "with", "the", "<", "code", ">", "field", "<", "/", "code", ">", "parameter", "for", "example", "if", "you", "binpack", "on", "memory", "a", "task", "is", "placed", "on", "the", "instance", "with", "the", "least", "amount", "of", "remaining", "memory", "(", "but", "still", "enough", "to", "run", "the", "task", ")", "<", "/", "p", ">" ]
[ "set", "type", "(", "type", ")", ";", "return", "this", ";" ]
[ "<", "p", ">", "the", "type", "of", "placement", "strategy", "the", "<", "code", ">", "random", "<", "/", "code", ">", "placement", "strategy", "randomly", "places", "tasks", "on", "available", "candidates", "the", "<", "code", ">", "spread", "<", "/", "code", ">", "placement", "strategy", "spreads", "placement", "across", "available", "candidates", "evenly", "based", "on", "the", "<", "code", ">", "field", "<", "/", "code", ">", "parameter", "the", "<", "code", ">", "binpack", "<", "/", "code", ">", "strategy", "places", "tasks", "on", "available", "candidates", "that", "have", "the", "least", "available", "amount", "of", "the", "resource", "that", "is", "specified", "with", "the", "<", "code", ">", "field", "<", "/", "code", ">", "parameter", "for", "example", "if", "you", "binpack", "on", "memory", "a", "task", "is", "placed", "on", "the", "instance", "with", "the", "least", "amount", "of", "remaining", "memory", "(", "but", "still", "enough", "to", "run", "the", "task", ")", "<", "/", "p", ">" ]
[ "with", "type", "(", "type", ")", ";" ]
[ "<", "p", ">", "the", "type", "of", "placement", "strategy", "the", "<", "code", ">", "random", "<", "/", "code", ">", "placement", "strategy", "randomly", "places", "tasks", "on", "available", "candidates", "the", "<", "code", ">", "spread", "<", "/", "code", ">", "placement", "strategy", "spreads", "placement", "across", "available", "candidates", "evenly", "based", "on", "the", "<", "code", ">", "field", "<", "/", "code", ">", "parameter", "the", "<", "code", ">", "binpack", "<", "/", "code", ">", "strategy", "places", "tasks", "on", "available", "candidates", "that", "have", "the", "least", "available", "amount", "of", "the", "resource", "that", "is", "specified", "with", "the", "<", "code", ">", "field", "<", "/", "code", ">", "parameter", "for", "example", "if", "you", "binpack", "on", "memory", "a", "task", "is", "placed", "on", "the", "instance", "with", "the", "least", "amount", "of", "remaining", "memory", "(", "but", "still", "enough", "to", "run", "the", "task", ")", "<", "/", "p", ">" ]
[ "this", "type", "=", "type", "to", "string", "(", ")", ";", "return", "this", ";" ]
[ "<", "p", ">", "the", "field", "to", "apply", "the", "placement", "strategy", "against", "for", "the", "<", "code", ">", "spread", "<", "/", "code", ">", "placement", "strategy", "valid", "values", "are", "<", "code", ">", "instance", "id", "<", "/", "code", ">", "(", "or", "<", "code", ">", "host", "<", "/", "code", ">", "which", "has", "the", "same", "effect", ")", "or", "any", "platform", "or", "custom", "attribute", "that", "is", "applied", "to", "a", "container", "instance", "such", "as", "<", "code", ">", "attribute", ":", "ecs", "availability", "-", "zone", "<", "/", "code", ">", "for", "the", "<", "code", ">", "binpack", "<", "/", "code", ">", "placement", "strategy", "valid", "values", "are", "<", "code", ">", "cpu", "<", "/", "code", ">", "and", "<", "code", ">", "memory", "<", "/", "code", ">", "for", "the", "<", "code", ">", "random", "<", "/", "code", ">", "placement", "strategy", "this", "field", "is", "not", "used", "<", "/", "p", ">" ]
[ "set", "field", "(", "field", ")", ";", "return", "this", ";" ]
[ "clears", "cache" ]
[ "enum", "cache", "clear", "(", ")", ";" ]
[ "sets", "a", "runnable", "to", "run", "when", "adding", "a", "splash", "screen", "which", "gets", "executed", "after", "the", "window", "has", "been", "added", "but", "before", "returning", "the", "surface" ]
[ "m", "runnable", "when", "adding", "splash", "screen", "=", "r", ";" ]
[ "construct", "a", "synchronous", "implementation", "of", "amazon", "connect", "using", "the", "current", "builder", "configuration" ]
[ "return", "new", "amazon", "connect", "client", "(", "params", ")", ";" ]
[ "<", "p", ">", "information", "about", "the", "cause", "of", "<", "code", ">", "out", "of", "service", "<", "/", "code", ">", "instances", "specifically", "whether", "the", "cause", "is", "elastic", "load", "balancing", "or", "the", "instance", "<", "/", "p", ">", "<", "p", ">", "valid", "values", ":", "<", "code", ">", "elb", "<", "/", "code", ">", "|", "<", "code", ">", "instance", "<", "/", "code", ">", "|", "<", "code", ">", "n", "/", "a", "<", "/", "code", ">", "<", "/", "p", ">" ]
[ "this", "reason", "code", "=", "reason", "code", ";" ]
[ "get", "the", "method", "signature", "or", "{", "@", "code", "null", "}", "if", "no", "method", "signature", "has", "been", "set", "for", "the", "method", "<", "p", ">", "this", "string", "uniquely", "identifies", "the", "method", "in", "case", "there", "are", "multiple", "methods", "in", "the", "class", "with", "the", "same", "name", "<", "/", "p", ">" ]
[ "return", "method", "signature", ";" ]
[ "gets", "the", "color", "used", "to", "display", "the", "background", "of", "the", "view" ]
[ "return", "m", "background", "paint", "get", "color", "(", ")", ";" ]
[ "set", "the", "draw", "progress", "the", "progress", "include", "0", "~", "1", "float", "on", "changed", "stop", "animation", "draw" ]
[ "if", "(", "progress", "<", "0", ")", "m", "progress", "=", "0", ";", "else", "if", "(", "m", "progress", ">", "1", ")", "m", "progress", "=", "1", ";", "else", "m", "progress", "=", "progress", ";", "stop", "(", ")", ";", "on", "progress", "change", "(", "m", "progress", ")", ";", "invalidate", "self", "(", ")", ";" ]
[ "<", "p", ">", "the", "namespace", "of", "the", "metric", "<", "/", "p", ">" ]
[ "set", "namespace", "(", "namespace", ")", ";", "return", "this", ";" ]
[ "<", "p", ">", "the", "name", "of", "the", "metric", "<", "/", "p", ">" ]
[ "set", "metric", "name", "(", "metric", "name", ")", ";", "return", "this", ";" ]
[ "<", "p", ">", "the", "dimensions", "for", "the", "metric", "<", "/", "p", ">", "<", "p", ">", "<", "b", ">", "note", ":", "<", "/", "b", ">", "this", "method", "appends", "the", "values", "to", "the", "existing", "list", "(", "if", "any", ")", "use", "{", "@", "link", "#", "set", "dimensions", "(", "java", "util", "collection", ")", "}", "or", "{", "@", "link", "#", "with", "dimensions", "(", "java", "util", "collection", ")", "}", "if", "you", "want", "to", "override", "the", "existing", "values", "<", "/", "p", ">" ]
[ "if", "(", "this", "dimensions", "=", "=", "null", ")", "{", "set", "dimensions", "(", "new", "com", "amazonaws", "internal", "sdk", "internal", "list", "<", "dimension", ">", "(", "dimensions", "length", ")", ")", ";", "}", "for", "(", "dimension", "ele", ":", "dimensions", ")", "{", "this", "dimensions", "add", "(", "ele", ")", ";", "}", "return", "this", ";" ]
[ "<", "p", ">", "the", "dimensions", "for", "the", "metric", "<", "/", "p", ">" ]
[ "set", "dimensions", "(", "dimensions", ")", ";", "return", "this", ";" ]
[ "/", "*", "return", "true", "is", "html", "image", "tag", "found" ]
[ "return", "md", "starts", "with", "(", "img", "tag", "open", ")", ";" ]
[ "optional", "help", "message", "to", "be", "displayed", "near", "the", "provider", "button" ]
[ "return", "help", "message", ";" ]
[ "sets", "the", "background", "color", "of", "the", "test", "integration", "link", "this", "is", "optional", ";", "if", "it", "isn", "t", "set", "the", "link", "created", "will", "use", "the", "default", "background", "color", "per", "the", "tool", "s", "css" ]
[ "this", "background", "color", "=", "background", "color", ";", "return", "this", ";" ]