docstring_tokens
list
code_tokens
list
[ "if", "in", "lazy", "chop", "mode", "and", "the", "object", "is", "a", "lazy", "value", "map", "or", "a", "value", "list", "then", "we", "force", "a", "chop", "operation", "for", "each", "of", "its", "items" ]
[ "if", "(", "lazy", "chop", ")", "{", "if", "(", "object", "instanceof", "lazy", "value", "map", ")", "{", "lazy", "value", "map", "m", "=", "(", "lazy", "value", "map", ")", "object", ";", "m", "chop", "map", "(", ")", ";", "}", "else", "if", "(", "object", "instanceof", "value", "list", ")", "{", "value", "list", "list", "=", "(", "value", "list", ")", "object", ";", "list", "chop", "list", "(", ")", ";", "}", "}" ]
[ "/", "*", "we", "need", "to", "chop", "up", "this", "child", "container" ]
[ "object", "obj", "=", "value", "to", "value", "(", ")", ";", "if", "(", "obj", "instanceof", "lazy", "value", "map", ")", "{", "lazy", "value", "map", "map", "=", "(", "lazy", "value", "map", ")", "obj", ";", "map", "chop", "map", "(", ")", ";", "}", "else", "if", "(", "obj", "instanceof", "value", "list", ")", "{", "value", "list", "list", "=", "(", "value", "list", ")", "obj", ";", "list", "chop", "list", "(", ")", ";", "}" ]
[ "selects", "the", "given", "entry", "corresponding", "to", "the", "given", "base", "type" ]
[ "final", "int", "index", "=", "filtered", "types", "index", "of", "(", "base", "type", ")", ";", "if", "(", "index", "!", "=", "-", "1", ")", "{", "set", "selected", "item", "(", "base", "type", ")", ";", "}" ]
[ "associates", "the", "given", "animator", "with", "the", "provided", "drawable", "state", "specs", "so", "that", "it", "will", "be", "run", "when", "the", "view", "s", "drawable", "state", "matches", "the", "specs" ]
[ "tuple", "tuple", "=", "new", "tuple", "(", "specs", ",", "animator", ")", ";", "tuple", "m", "animator", "add", "listener", "(", "m", "animator", "listener", ")", ";", "m", "tuples", "add", "(", "tuple", ")", ";", "m", "changing", "configurations", "|", "=", "animator", "get", "changing", "configurations", "(", ")", ";" ]
[ "returns", "the", "current", "{", "@", "link", "android", "animation", "animator", "}", "which", "is", "started", "because", "of", "a", "state", "change" ]
[ "return", "m", "running", "animator", ";" ]
[ "called", "by", "view" ]
[ "final", "view", "current", "=", "get", "target", "(", ")", ";", "if", "(", "current", "=", "=", "view", ")", "{", "return", ";", "}", "if", "(", "current", "!", "=", "null", ")", "{", "clear", "target", "(", ")", ";", "}", "if", "(", "view", "!", "=", "null", ")", "{", "m", "view", "ref", "=", "new", "weak", "reference", "<", "view", ">", "(", "view", ")", ";", "}" ]
[ "called", "by", "view" ]
[ "tuple", "match", "=", "null", ";", "final", "int", "count", "=", "m", "tuples", "size", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "count", ";", "i", "+", "+", ")", "{", "final", "tuple", "tuple", "=", "m", "tuples", "get", "(", "i", ")", ";", "if", "(", "state", "set", "state", "set", "matches", "(", "tuple", "m", "specs", ",", "state", ")", ")", "{", "match", "=", "tuple", ";", "break", ";", "}", "}", "if", "(", "match", "=", "=", "m", "last", "match", ")", "{", "return", ";", "}", "if", "(", "m", "last", "match", "!", "=", "null", ")", "{", "cancel", "(", ")", ";", "}", "m", "last", "match", "=", "match", ";", "if", "(", "match", "!", "=", "null", ")", "{", "start", "(", "match", ")", ";", "}" ]
[ "if", "there", "is", "an", "animation", "running", "for", "a", "recent", "state", "change", "ends", "it", "<", "p", ">", "this", "causes", "the", "animation", "to", "assign", "the", "end", "value", "(", "s", ")", "to", "the", "view" ]
[ "if", "(", "m", "running", "animator", "!", "=", "null", ")", "{", "m", "running", "animator", "end", "(", ")", ";", "}" ]
[ "return", "a", "{", "@", "link", "android", "content", "res", "constant", "state", "}", "instance", "that", "holds", "the", "shared", "state", "of", "this", "animator", "<", "p", ">", "this", "constant", "state", "is", "used", "to", "create", "new", "instances", "of", "this", "animator", "when", "needed", "default", "implementation", "creates", "a", "new", "{", "@", "link", "state", "list", "animator", "constant", "state", "}", "you", "can", "override", "this", "method", "to", "provide", "your", "custom", "logic", "or", "return", "null", "if", "you", "don", "t", "want", "this", "animator", "to", "be", "cached" ]
[ "return", "new", "state", "list", "animator", "constant", "state", "(", "this", ")", ";" ]
[ "<", "p", ">", "test", "if", "given", "parameter", "is", "valid", "for", "a", "project", "/", "module", "valid", "format", "is", ":", "<", "/", "p", ">", "<", "ul", ">", "<", "li", ">", "allowed", "characters", ":", "<", "ul", ">", "<", "li", ">", "uppercase", "ascii", "letters", "a", "-", "z", "<", "/", "li", ">", "<", "li", ">", "lowercase", "ascii", "letters", "a", "-", "z", "<", "/", "li", ">", "<", "li", ">", "ascii", "digits", "0", "-", "9", "<", "/", "li", ">", "<", "li", ">", "punctuation", "signs", "dash", "-", "underscore", "period", "and", "colon", ":", "<", "/", "li", ">", "<", "/", "ul", ">", "<", "/", "li", ">", "<", "li", ">", "at", "least", "one", "non", "-", "digit", "<", "/", "li", ">", "<", "/", "ul", ">" ]
[ "return", "key", "candidate", "matches", "(", "valid", "module", "key", "regexp", ")", ";" ]
[ "same", "as", "{" ]
[ "return", "key", "candidate", "matches", "(", "valid", "module", "key", "issues", "mode", "regexp", ")", ";" ]
[ "<", "p", ">", "test", "if", "given", "parameter", "is", "valid", "for", "a", "branch", "valid", "format", "is", ":", "<", "/", "p", ">", "<", "ul", ">", "<", "li", ">", "allowed", "characters", ":", "<", "ul", ">", "<", "li", ">", "uppercase", "ascii", "letters", "a", "-", "z", "<", "/", "li", ">", "<", "li", ">", "lowercase", "ascii", "letters", "a", "-", "z", "<", "/", "li", ">", "<", "li", ">", "ascii", "digits", "0", "-", "9", "<", "/", "li", ">", "<", "li", ">", "punctuation", "signs", "dash", "-", "underscore", "period", "and", "/", "<", "/", "li", ">", "<", "/", "ul", ">", "<", "/", "li", ">", "<", "/", "ul", ">" ]
[ "return", "branch", "candidate", "matches", "(", "valid", "branch", "regexp", ")", ";" ]
[ "return", "the", "project", "/", "module", "key", "with", "potential", "branch" ]
[ "if", "(", "string", "utils", "is", "not", "blank", "(", "branch", ")", ")", "{", "return", "string", "format", "(", "key", "with", "branch", "format", ",", "key", "without", "branch", ",", "branch", ")", ";", "}", "else", "{", "return", "key", "without", "branch", ";", "}" ]
[ "unsafe", "version", "of", ":", "{", "@", "link", "#", "gl", "compressed", "tex", "image", "1", "d", "compressed", "tex", "image", "1", "d", "}" ]
[ "public", "static", "native", "void", "ngl", "compressed", "tex", "image", "1", "d", "(", "int", "target", ",", "int", "level", ",", "int", "internalformat", ",", "int", "width", ",", "int", "border", ",", "int", "image", "size", ",", "long", "data", ")", ";" ]
[ "unsafe", "version", "of", ":", "{", "@", "link", "#", "gl", "compressed", "tex", "sub", "image", "1", "d", "compressed", "tex", "sub", "image", "1", "d", "}" ]
[ "public", "static", "native", "void", "ngl", "compressed", "tex", "sub", "image", "1", "d", "(", "int", "target", ",", "int", "level", ",", "int", "xoffset", ",", "int", "width", ",", "int", "format", ",", "int", "image", "size", ",", "long", "data", ")", ";" ]
[ "unsafe", "version", "of", ":", "{" ]
[ "public", "static", "native", "void", "ngl", "get", "compressed", "tex", "image", "(", "int", "target", ",", "int", "level", ",", "long", "pixels", ")", ";" ]
[ "serialize", "an", "object", "to", "json", "use", "when", "it", "is", "not", "know", "whether", "an", "object", "can", "be", "json", "serializable" ]
[ "return", "object", "mapper", "write", "value", "as", "bytes", "(", "value", ")", ";" ]
[ "serialize", "an", "object", "to", "json", "use", "when", "object", "is", "expected", "to", "be", "json", "serializable" ]
[ "try", "{", "return", "object", "mapper", "write", "value", "as", "bytes", "(", "value", ")", ";", "}", "catch", "(", "json", "processing", "exception", "e", ")", "{", "throw", "new", "runtime", "exception", "(", "e", ")", ";", "}" ]
[ "serialize", "an", "object", "to", "a", "json", "string", "use", "when", "it", "is", "not", "know", "whether", "an", "object", "can", "be", "json", "serializable" ]
[ "return", "object", "mapper", "write", "value", "as", "string", "(", "value", ")", ";" ]
[ "serialize", "an", "object", "to", "a", "json", "string", "use", "when", "object", "is", "expected", "to", "be", "json", "serializable" ]
[ "try", "{", "return", "as", "string", "(", "value", ")", ";", "}", "catch", "(", "json", "processing", "exception", "e", ")", "{", "throw", "new", "runtime", "exception", "(", "e", ")", ";", "}" ]
[ "serialize", "an", "object", "to", "a", "json", "string", "use", "when", "it", "is", "not", "know", "whether", "an", "object", "can", "be", "json", "serializable" ]
[ "return", "pretty", "object", "writer", "write", "value", "as", "string", "(", "value", ")", ";" ]
[ "serialize", "an", "object", "to", "a", "json", "string", "use", "when", "object", "is", "expected", "to", "be", "json", "serializable" ]
[ "try", "{", "return", "as", "pretty", "string", "(", "value", ")", ";", "}", "catch", "(", "json", "processing", "exception", "e", ")", "{", "throw", "new", "runtime", "exception", "(", "e", ")", ";", "}" ]
[ "serialize", "an", "object", "to", "a", "json", "string", "ordering", "fields", "and", "omitting", "null", "and", "empty", "fields", "use", "when", "it", "is", "not", "know", "whether", "an", "object", "can", "be", "json", "serializable" ]
[ "return", "normalizing", "object", "writer", "write", "value", "as", "string", "(", "value", ")", ";" ]
[ "serialize", "an", "object", "to", "a", "json", "string", "ordering", "fields", "and", "omitting", "null", "and", "empty", "fields", "use", "when", "object", "is", "expected", "to", "be", "json", "serializable" ]
[ "try", "{", "return", "as", "normalized", "string", "(", "value", ")", ";", "}", "catch", "(", "json", "processing", "exception", "e", ")", "{", "throw", "new", "runtime", "exception", "(", "e", ")", ";", "}" ]
[ "set", "user", "credententials", "for", "this", "proxy", "and", "the", "current", "thread", "the", "given", "username", "and", "password", "will", "be", "applied", "to", "all", "subsequent", "{" ]
[ "this", "thread", "bound", "credentials", "set", "(", "new", "jdbc", "user", "credentials", "(", "username", ",", "password", ")", ")", ";" ]
[ "determine", "whether", "there", "are", "currently", "thread", "-", "bound", "credentials", "using", "them", "if", "available", "falling", "back", "to", "the", "statically", "specified", "username", "and", "password", "(", "i", "e", "values", "of", "the", "bean", "properties", ")", "else", "<", "p", ">", "delegates", "to", "{" ]
[ "jdbc", "user", "credentials", "thread", "credentials", "=", "this", "thread", "bound", "credentials", "get", "(", ")", ";", "connection", "con", "=", "(", "thread", "credentials", "!", "=", "null", "?", "do", "get", "connection", "(", "thread", "credentials", "username", ",", "thread", "credentials", "password", ")", ":", "do", "get", "connection", "(", "this", "username", ",", "this", "password", ")", ")", ";", "if", "(", "this", "catalog", "!", "=", "null", ")", "{", "con", "set", "catalog", "(", "this", "catalog", ")", ";", "}", "if", "(", "this", "schema", "!", "=", "null", ")", "{", "con", "set", "schema", "(", "this", "schema", ")", ";", "}", "return", "con", ";" ]
[ "this", "method", "initializes", "this" ]
[ "this", "set", "default", "close", "operation", "(", "javax", "swing", "j", "frame", "do", "nothing", "on", "close", ")", ";", "this", "set", "content", "pane", "(", "get", "j", "panel", "(", ")", ")", ";", "this", "set", "preferred", "size", "(", "new", "dimension", "(", "550", ",", "375", ")", ")", ";", "this", "add", "window", "listener", "(", "new", "java", "awt", "event", "window", "adapter", "(", ")", "{", "@", "override", "public", "void", "window", "closing", "(", "java", "awt", "event", "window", "event", "e", ")", "{", "btn", "decline", "do", "click", "(", ")", ";", "}", "}", ")", ";", "show", "license", "(", "current", "page", ")", ";" ]
[ "uninstall", "the", "service" ]
[ "boolean", "success", "=", "false", ";", "sc", "handle", "service", "manager", "=", "open", "service", "control", "manager", "(", "null", ",", "winsvc", "sc", "manager", "all", "access", ")", ";", "if", "(", "service", "manager", "!", "=", "null", ")", "{", "sc", "handle", "service", "=", "advapi", "3", "2", "open", "service", "(", "service", "manager", ",", "service", "name", ",", "winsvc", "service", "all", "access", ")", ";", "if", "(", "service", "!", "=", "null", ")", "{", "success", "=", "advapi", "3", "2", "delete", "service", "(", "service", ")", ";", "advapi", "3", "2", "close", "service", "handle", "(", "service", ")", ";", "}", "advapi", "3", "2", "close", "service", "handle", "(", "service", "manager", ")", ";", "}", "return", "success", ";" ]
[ "ask", "the", "service", "control", "manager", "to", "start", "the", "service" ]
[ "boolean", "success", "=", "false", ";", "sc", "handle", "service", "manager", "=", "open", "service", "control", "manager", "(", "null", ",", "win", "n", "t", "generic", "execute", ")", ";", "if", "(", "service", "manager", "!", "=", "null", ")", "{", "sc", "handle", "service", "=", "advapi", "3", "2", "open", "service", "(", "service", "manager", ",", "service", "name", ",", "win", "n", "t", "generic", "execute", ")", ";", "if", "(", "service", "!", "=", "null", ")", "{", "success", "=", "advapi", "3", "2", "start", "service", "(", "service", ",", "0", ",", "null", ")", ";", "advapi", "3", "2", "close", "service", "handle", "(", "service", ")", ";", "}", "advapi", "3", "2", "close", "service", "handle", "(", "service", "manager", ")", ";", "}", "return", "success", ";" ]
[ "get", "a", "handle", "to", "the", "service", "control", "manager" ]
[ "return", "advapi", "3", "2", "open", "s", "c", "manager", "(", "machine", ",", "null", ",", "access", ")", ";" ]
[ "report", "service", "status", "to", "the", "service", "control", "manager" ]
[ "service", "status", "service", "status", "=", "new", "service", "status", "(", ")", ";", "service", "status", "dw", "service", "type", "=", "win", "n", "t", "service", "win32", "own", "process", ";", "service", "status", "dw", "controls", "accepted", "=", "winsvc", "service", "accept", "stop", "|", "winsvc", "service", "accept", "shutdown", ";", "service", "status", "dw", "win", "3", "2", "exit", "code", "=", "win", "3", "2", "exit", "code", ";", "service", "status", "dw", "wait", "hint", "=", "wait", "hint", ";", "service", "status", "dw", "current", "state", "=", "status", ";", "advapi", "3", "2", "set", "service", "status", "(", "service", "status", "handle", ",", "service", "status", ")", ";" ]
[ "called", "when", "the", "service", "get", "a", "control", "code" ]
[ "switch", "(", "dw", "control", ")", "{", "case", "winsvc", "service", "control", "stop", ":", "case", "winsvc", "service", "control", "shutdown", ":", "report", "status", "(", "winsvc", "service", "stop", "pending", ",", "win", "error", "no", "error", ",", "5000", ")", ";", "on", "stop", "(", ")", ";", "synchronized", "(", "wait", "object", ")", "{", "wait", "object", "notify", "all", "(", ")", ";", "}", "}", "return", "win", "error", "no", "error", ";" ]
[ "{" ]
[ "return", "for", "create", ";" ]
[ "{" ]
[ "return", "for", "access", ";" ]
[ "{" ]
[ "return", "for", "update", ";" ]
[ "{" ]
[ "byte", "flags", "=", "0", ";", "duration", "create", "=", "plc", "get", "expiry", "for", "creation", "(", ")", ";", "if", "(", "create", "!", "=", "null", ")", "flags", "|", "=", "create", "ttl", "mask", ";", "duration", "update", "=", "plc", "get", "expiry", "for", "update", "(", ")", ";", "if", "(", "update", "!", "=", "null", ")", "flags", "|", "=", "update", "ttl", "mask", ";", "duration", "access", "=", "plc", "get", "expiry", "for", "access", "(", ")", ";", "if", "(", "access", "!", "=", "null", ")", "flags", "|", "=", "access", "ttl", "mask", ";", "out", "write", "byte", "(", "flags", ")", ";", "write", "duration", "(", "out", ",", "create", ")", ";", "write", "duration", "(", "out", ",", "update", ")", ";", "write", "duration", "(", "out", ",", "access", ")", ";" ]
[ "{" ]
[ "byte", "flags", "=", "in", "read", "byte", "(", ")", ";", "if", "(", "(", "flags", "&", "create", "ttl", "mask", ")", "!", "=", "0", ")", "for", "create", "=", "read", "duration", "(", "in", ")", ";", "if", "(", "(", "flags", "&", "update", "ttl", "mask", ")", "!", "=", "0", ")", "for", "update", "=", "read", "duration", "(", "in", ")", ";", "if", "(", "(", "flags", "&", "access", "ttl", "mask", ")", "!", "=", "0", ")", "for", "access", "=", "read", "duration", "(", "in", ")", ";" ]
[ "{" ]
[ "return", "s", "to", "string", "(", "ignite", "externalizable", "expiry", "policy", "class", ",", "this", ")", ";" ]
[ "{" ]
[ "return", "b", "t", "c", "trade", "adapters", "adapt", "ticker", "(", "get", "b", "t", "c", "trade", "ticker", "(", ")", ",", "currency", "pair", ")", ";" ]
[ "{" ]
[ "return", "b", "t", "c", "trade", "adapters", "adapt", "order", "book", "(", "get", "b", "t", "c", "trade", "depth", "(", ")", ",", "currency", "pair", ")", ";" ]
[ "{" ]
[ "final", "b", "t", "c", "trade", "trade", "[", "]", "trades", ";", "if", "(", "args", "=", "=", "null", "|", "|", "args", "length", "=", "=", "0", ")", "{", "trades", "=", "get", "b", "t", "c", "trade", "trades", "(", ")", ";", "}", "else", "{", "trades", "=", "get", "b", "t", "c", "trade", "trades", "(", "to", "long", "(", "args", "[", "0", "]", ")", ")", ";", "}", "return", "b", "t", "c", "trade", "adapters", "adapt", "trades", "(", "trades", ",", "currency", "pair", ")", ";" ]
[ "logs", "the", "status", "of", "a", "location", "report", "received", "from", "the", "hal" ]
[ "if", "(", "!", "is", "successful", ")", "{", "location", "failure", "statistics", "add", "item", "(", "1", "0", ")", ";", "return", ";", "}", "location", "failure", "statistics", "add", "item", "(", "0", "0", ")", ";", "return", ";" ]
[ "logs", "missed", "reports" ]
[ "int", "num", "report", "missed", "=", "(", "actual", "time", "between", "fixes", "milli", "seconds", "/", "math", "max", "(", "default", "time", "between", "fixes", "millisecs", ",", "desired", "time", "between", "fixes", "milli", "seconds", ")", ")", "-", "1", ";", "if", "(", "num", "report", "missed", ">", "0", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "num", "report", "missed", ";", "i", "+", "+", ")", "{", "location", "failure", "statistics", "add", "item", "(", "1", "0", ")", ";", "}", "}", "return", ";" ]
[ "logs", "time", "to", "first", "fix" ]
[ "time", "to", "first", "fix", "sec", "statistics", "add", "item", "(", "(", "double", ")", "(", "time", "to", "first", "fix", "milli", "seconds", "/", "1000", ")", ")", ";", "return", ";" ]
[ "logs", "position", "accuracy" ]
[ "position", "accuracy", "meter", "statistics", "add", "item", "(", "(", "double", ")", "position", "accuracy", "meters", ")", ";", "return", ";" ]
[ "/", "*", "logs", "cn0", "when", "at", "least", "4", "s", "vs", "are", "available" ]
[ "if", "(", "num", "sv", "=", "=", "0", "|", "|", "cn", "0s", "=", "=", "null", "|", "|", "cn", "0s", "length", "=", "=", "0", "|", "|", "cn", "0s", "length", "<", "num", "sv", ")", "{", "if", "(", "num", "sv", "=", "=", "0", ")", "{", "m", "gnss", "power", "metrics", "report", "signal", "quality", "(", "null", ",", "0", ")", ";", "}", "return", ";", "}", "float", "[", "]", "cn", "0", "array", "=", "arrays", "copy", "of", "(", "cn", "0s", ",", "num", "sv", ")", ";", "arrays", "sort", "(", "cn", "0", "array", ")", ";", "m", "gnss", "power", "metrics", "report", "signal", "quality", "(", "cn", "0", "array", ",", "num", "sv", ")", ";", "if", "(", "num", "sv", "<", "4", ")", "{", "return", ";", "}", "if", "(", "cn", "0", "array", "[", "num", "sv", "-", "4", "]", ">", "0", "0", ")", "{", "double", "top", "4", "avg", "cn", "0", "=", "0", "0", ";", "for", "(", "int", "i", "=", "num", "sv", "-", "4", ";", "i", "<", "num", "sv", ";", "i", "+", "+", ")", "{", "top", "4", "avg", "cn", "0", "+", "=", "(", "double", ")", "cn", "0", "array", "[", "i", "]", ";", "}", "top", "4", "avg", "cn", "0", "/", "=", "4", ";", "top", "four", "average", "cn", "0", "statistics", "add", "item", "(", "top", "4", "avg", "cn", "0", ")", ";", "}", "return", ";" ]
[ "dumps", "gnss", "metrics", "as", "a", "proto", "string" ]
[ "gnss", "log", "msg", "=", "new", "gnss", "log", "(", ")", ";", "if", "(", "location", "failure", "statistics", "get", "count", "(", ")", ">", "0", ")", "{", "msg", "num", "location", "report", "processed", "=", "location", "failure", "statistics", "get", "count", "(", ")", ";", "msg", "percentage", "location", "failure", "=", "(", "int", ")", "(", "100", "0", "*", "location", "failure", "statistics", "get", "mean", "(", ")", ")", ";", "}", "if", "(", "time", "to", "first", "fix", "sec", "statistics", "get", "count", "(", ")", ">", "0", ")", "{", "msg", "num", "time", "to", "first", "fix", "processed", "=", "time", "to", "first", "fix", "sec", "statistics", "get", "count", "(", ")", ";", "msg", "mean", "time", "to", "first", "fix", "secs", "=", "(", "int", ")", "time", "to", "first", "fix", "sec", "statistics", "get", "mean", "(", ")", ";", "msg", "standard", "deviation", "time", "to", "first", "fix", "secs", "=", "(", "int", ")", "time", "to", "first", "fix", "sec", "statistics", "get", "standard", "deviation", "(", ")", ";", "}", "if", "(", "position", "accuracy", "meter", "statistics", "get", "count", "(", ")", ">", "0", ")", "{", "msg", "num", "position", "accuracy", "processed", "=", "position", "accuracy", "meter", "statistics", "get", "count", "(", ")", ";", "msg", "mean", "position", "accuracy", "meters", "=", "(", "int", ")", "position", "accuracy", "meter", "statistics", "get", "mean", "(", ")", ";", "msg", "standard", "deviation", "position", "accuracy", "meters", "=", "(", "int", ")", "position", "accuracy", "meter", "statistics", "get", "standard", "deviation", "(", ")", ";", "}", "if", "(", "top", "four", "average", "cn", "0", "statistics", "get", "count", "(", ")", ">", "0", ")", "{", "msg", "num", "top", "four", "average", "cn", "0", "processed", "=", "top", "four", "average", "cn", "0", "statistics", "get", "count", "(", ")", ";", "msg", "mean", "top", "four", "average", "cn", "0", "db", "hz", "=", "top", "four", "average", "cn", "0", "statistics", "get", "mean", "(", ")", ";", "msg", "standard", "deviation", "top", "four", "average", "cn", "0", "db", "hz", "=", "top", "four", "average", "cn", "0", "statistics", "get", "standard", "deviation", "(", ")", ";", "}", "msg", "power", "metrics", "=", "m", "gnss", "power", "metrics", "build", "proto", "(", ")", ";", "string", "s", "=", "base", "6", "4", "encode", "to", "string", "(", "gnss", "log", "to", "byte", "array", "(", "msg", ")", ",", "base", "6", "4", "default", ")", ";", "reset", "(", ")", ";", "return", "s", ";" ]
[ "resets", "statistics" ]
[ "count", "=", "0", ";", "sum", "=", "0", "0", ";", "sum", "square", "=", "0", "0", ";" ]
[ "adds", "an", "item" ]
[ "count", "+", "+", ";", "sum", "+", "=", "item", ";", "sum", "square", "+", "=", "item", "*", "item", ";" ]
[ "returns", "mean" ]
[ "return", "sum", "/", "count", ";" ]
[ "returns", "standard", "deviation" ]
[ "double", "m", "=", "sum", "/", "count", ";", "m", "=", "m", "*", "m", ";", "double", "v", "=", "sum", "square", "/", "count", ";", "if", "(", "v", ">", "m", ")", "{", "return", "math", "sqrt", "(", "v", "-", "m", ")", ";", "}", "return", "0", ";" ]
[ "resets", "gnss", "metrics" ]
[ "string", "builder", "s", "=", "new", "string", "builder", "(", ")", ";", "time", "utils", "format", "duration", "(", "system", "clock", "elapsed", "realtime", "nanos", "(", ")", "/", "1000000l", ",", "s", ")", ";", "log", "start", "in", "elapsed", "real", "time", "=", "s", "to", "string", "(", ")", ";", "location", "failure", "statistics", "reset", "(", ")", ";", "time", "to", "first", "fix", "sec", "statistics", "reset", "(", ")", ";", "position", "accuracy", "meter", "statistics", "reset", "(", ")", ";", "top", "four", "average", "cn", "0", "statistics", "reset", "(", ")", ";", "return", ";" ]
[ "builds", "power", "metrics", "proto", "buf", "this", "is", "included", "in", "the", "gnss", "proto", "buf" ]
[ "power", "metrics", "p", "=", "new", "power", "metrics", "(", ")", ";", "gps", "battery", "stats", "stats", "=", "m", "gnss", "power", "metrics", "get", "gps", "battery", "stats", "(", ")", ";", "if", "(", "stats", "!", "=", "null", ")", "{", "p", "logging", "duration", "ms", "=", "stats", "get", "logging", "duration", "ms", "(", ")", ";", "p", "energy", "consumed", "mah", "=", "stats", "get", "energy", "consumed", "ma", "ms", "(", ")", "/", "(", "(", "double", ")", "date", "utils", "hour", "in", "millis", ")", ";", "long", "[", "]", "t", "=", "stats", "get", "time", "in", "gps", "signal", "quality", "level", "(", ")", ";", "p", "time", "in", "signal", "quality", "level", "ms", "=", "new", "long", "[", "t", "length", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "t", "length", ";", "i", "+", "+", ")", "{", "p", "time", "in", "signal", "quality", "level", "ms", "[", "i", "]", "=", "t", "[", "i", "]", ";", "}", "}", "return", "p", ";" ]
[ "obtains", "signal", "level", "based", "on", "cn0" ]
[ "if", "(", "cn", "0", ">", "poor", "top", "four", "avg", "cn0", "threshold", "db", "hz", ")", "{", "return", "gnss", "metrics", "gps", "signal", "quality", "good", ";", "}", "return", "gnss", "metrics", "gps", "signal", "quality", "poor", ";" ]
[ "<", "p", ">", "the", "id", "of", "the", "maintenance", "window", "whose", "executions", "should", "be", "retrieved", "<", "/", "p", ">" ]
[ "set", "window", "id", "(", "window", "id", ")", ";", "return", "this", ";" ]
[ "<", "p", ">", "each", "entry", "in", "the", "array", "is", "a", "structure", "containing", ":", "<", "/", "p", ">", "<", "p", ">", "key", "(", "string", "between", "1", "and", "128", "characters", ")", "<", "/", "p", ">", "<", "p", ">", "values", "(", "array", "of", "strings", "each", "string", "is", "between", "1", "and", "256", "characters", ")", "<", "/", "p", ">", "<", "p", ">", "the", "supported", "keys", "are", "executed", "before", "and", "executed", "after", "with", "the", "value", "being", "a", "date", "/", "time", "string", "such", "as", "2016", "-", "11", "-", "04t05", ":", "00", ":", "00z", "<", "/", "p", ">", "<", "p", ">", "<", "b", ">", "note", ":", "<", "/", "b", ">", "this", "method", "appends", "the", "values", "to", "the", "existing", "list", "(", "if", "any", ")", "use", "{", "@", "link", "#", "set", "filters", "(", "java", "util", "collection", ")", "}", "or", "{", "@", "link", "#", "with", "filters", "(", "java", "util", "collection", ")", "}", "if", "you", "want", "to", "override", "the", "existing", "values", "<", "/", "p", ">" ]
[ "if", "(", "this", "filters", "=", "=", "null", ")", "{", "set", "filters", "(", "new", "com", "amazonaws", "internal", "sdk", "internal", "list", "<", "maintenance", "window", "filter", ">", "(", "filters", "length", ")", ")", ";", "}", "for", "(", "maintenance", "window", "filter", "ele", ":", "filters", ")", "{", "this", "filters", "add", "(", "ele", ")", ";", "}", "return", "this", ";" ]
[ "<", "p", ">", "each", "entry", "in", "the", "array", "is", "a", "structure", "containing", ":", "<", "/", "p", ">", "<", "p", ">", "key", "(", "string", "between", "1", "and", "128", "characters", ")", "<", "/", "p", ">", "<", "p", ">", "values", "(", "array", "of", "strings", "each", "string", "is", "between", "1", "and", "256", "characters", ")", "<", "/", "p", ">", "<", "p", ">", "the", "supported", "keys", "are", "executed", "before", "and", "executed", "after", "with", "the", "value", "being", "a", "date", "/", "time", "string", "such", "as", "2016", "-", "11", "-", "04t05", ":", "00", ":", "00z", "<", "/", "p", ">" ]
[ "set", "filters", "(", "filters", ")", ";", "return", "this", ";" ]
[ "<", "p", ">", "the", "maximum", "number", "of", "items", "to", "return", "for", "this", "call", "the", "call", "also", "returns", "a", "token", "that", "you", "can", "specify", "in", "a", "subsequent", "call", "to", "get", "the", "next", "set", "of", "results", "<", "/", "p", ">" ]
[ "set", "max", "results", "(", "max", "results", ")", ";", "return", "this", ";" ]
[ "<", "p", ">", "the", "token", "for", "the", "next", "set", "of", "items", "to", "return", "(", "you", "received", "this", "token", "from", "a", "previous", "call", ")", "<", "/", "p", ">" ]
[ "set", "next", "token", "(", "next", "token", ")", ";", "return", "this", ";" ]
[ "sets", "new", "values", "to", "all", "fields", "of", "the", "tuple" ]
[ "this", "f", "0", "=", "value", "0", ";", "this", "f", "1", "=", "value", "1", ";", "this", "f", "2", "=", "value", "2", ";" ]
[ "creates", "a", "new", "tuple", "and", "assigns", "the", "given", "values", "to", "the", "tuple", "s", "fields", "this", "is", "more", "convenient", "than", "using", "the", "constructor", "because", "the", "compiler", "can", "infer", "the", "generic", "type", "arguments", "implicitly", "for", "example", ":", "{" ]
[ "return", "new", "tuple", "3", "<", ">", "(", "value", "0", ",", "value", "1", ",", "value", "2", ")", ";" ]
[ "see", "at", "hash", "and", "c", "hash", "in", "oidc", "specification" ]
[ "return", "oidc", "hash", "(", "jwt", "algorithm", "name", "(", ")", ",", "input", ")", ";" ]
[ "for", "debugging", "only" ]
[ "try", "{", "h", "2omapper", "m", "=", "new", "h", "2omapper", "(", ")", ";", "m", "run", "(", "null", ")", ";", "}", "catch", "(", "exception", "e", ")", "{", "e", "print", "stack", "trace", "(", ")", ";", "}" ]
[ "method", "new", "string" ]
[ "int", "str", "length", "=", "random", "int", "(", "1", ",", "max", "string", "length", ")", ";", "char", "[", "]", "chars", "=", "new", "char", "[", "str", "length", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "chars", "length", ";", "i", "+", "+", ")", "{", "chars", "[", "i", "]", "=", "random", "char", "in", "(", "charset", ")", ";", "}", "return", "new", "string", "(", "chars", ")", ";" ]
[ "method", "random", "char", "in" ]
[ "return", "random", "char", "(", "chars", ")", ";" ]
[ "gets", "all", "beans", "of", "{", "@", "link", "reference", "bean", "}" ]
[ "return", "this", "reference", "beans", "cache", "values", "(", ")", ";" ]
[ "get", "{", "@", "link", "reference", "bean", "}", "{", "@", "link", "map", "}", "in", "injected", "field" ]
[ "map", "<", "injection", "metadata", "injected", "element", ",", "reference", "bean", "<", "?", ">", ">", "injected", "element", "reference", "bean", "map", "=", "new", "linked", "hash", "map", "<", "injection", "metadata", "injected", "element", ",", "reference", "bean", "<", "?", ">", ">", "(", ")", ";", "for", "(", "reference", "injection", "metadata", "metadata", ":", "injection", "metadata", "cache", "values", "(", ")", ")", "{", "collection", "<", "reference", "field", "element", ">", "field", "elements", "=", "metadata", "get", "field", "elements", "(", ")", ";", "for", "(", "reference", "field", "element", "field", "element", ":", "field", "elements", ")", "{", "injected", "element", "reference", "bean", "map", "put", "(", "field", "element", ",", "field", "element", "reference", "bean", ")", ";", "}", "}", "return", "injected", "element", "reference", "bean", "map", ";" ]
[ "get", "{", "@", "link", "reference", "bean", "}", "{", "@", "link", "map", "}", "in", "injected", "method" ]
[ "map", "<", "injection", "metadata", "injected", "element", ",", "reference", "bean", "<", "?", ">", ">", "injected", "element", "reference", "bean", "map", "=", "new", "linked", "hash", "map", "<", "injection", "metadata", "injected", "element", ",", "reference", "bean", "<", "?", ">", ">", "(", ")", ";", "for", "(", "reference", "injection", "metadata", "metadata", ":", "injection", "metadata", "cache", "values", "(", ")", ")", "{", "collection", "<", "reference", "method", "element", ">", "method", "elements", "=", "metadata", "get", "method", "elements", "(", ")", ";", "for", "(", "reference", "method", "element", "method", "element", ":", "method", "elements", ")", "{", "injected", "element", "reference", "bean", "map", "put", "(", "method", "element", ",", "method", "element", "reference", "bean", ")", ";", "}", "}", "return", "injected", "element", "reference", "bean", "map", ";" ]
[ "gets", "immutable", "version", "of", "this", "configuration" ]
[ "if", "(", "read", "only", "=", "=", "null", ")", "{", "read", "only", "=", "new", "map", "index", "config", "read", "only", "(", "this", ")", ";", "}", "return", "read", "only", ";" ]
[ "sets", "the", "attribute", "that", "is", "going", "to", "be", "indexed" ]
[ "this", "attribute", "=", "validate", "index", "attribute", "(", "attribute", ")", ";", "return", "this", ";" ]
[ "configures", "the", "index", "to", "be", "ordered", "or", "not", "ordered", "some", "indices", "can", "be", "ordered", "such", "as", "age", "sometimes", "you", "want", "to", "look", "for", "all", "people", "with", "an", "age", "equal", "or", "greater", "than", "x", "in", "other", "cases", "an", "ordered", "index", "doesn", "t", "make", "sense", "such", "as", "a", "phone", "number", "for", "a", "person" ]
[ "this", "ordered", "=", "ordered", ";", "return", "this", ";" ]
[ "returns", "node", "id", "where", "failure", "occurred" ]
[ "return", "node", "id", ";" ]
[ "but", "this", "is", "very", "simple", "and", "algorithms", "only", "check", "this", "for", "values", "of", "0", "anyway", "(", "doesnt", "slow", "down", "normal", "decode", ")" ]
[ "long", "bits", "=", "0", ";", "int", "count", "=", "0", ";", "for", "(", "object", "v", ":", "values", ")", "{", "if", "(", "count", "=", "=", "64", ")", "{", "data", "write", "long", "(", "bits", ")", ";", "count", "=", "0", ";", "bits", "=", "0", ";", "}", "if", "(", "v", "!", "=", "null", ")", "{", "bits", "|", "=", "1l", "<", "<", "(", "count", "&", "0x", "3f", ")", ";", "}", "count", "+", "+", ";", "}", "if", "(", "count", ">", "0", ")", "{", "data", "write", "long", "(", "bits", ")", ";", "}" ]
[ "just", "aggregates", "the", "count", "values", "so", "they", "become", "addresses", "and", "adds", "one", "more", "value", "in", "the", "end", "(", "the", "final", "sum", ")" ]
[ "return", "new", "iterable", "<", "number", ">", "(", ")", "{", "@", "override", "public", "iterator", "<", "number", ">", "iterator", "(", ")", "{", "final", "iterator", "<", "number", ">", "iter", "=", "counts", "iterator", "(", ")", ";", "return", "new", "iterator", "<", "number", ">", "(", ")", "{", "long", "sum", ";", "boolean", "ended", ";", "@", "override", "public", "boolean", "has", "next", "(", ")", "{", "return", "iter", "has", "next", "(", ")", "|", "|", "!", "ended", ";", "}", "@", "override", "public", "number", "next", "(", ")", "{", "long", "to", "return", "=", "sum", ";", "if", "(", "iter", "has", "next", "(", ")", ")", "{", "number", "n", "=", "iter", "next", "(", ")", ";", "if", "(", "n", "!", "=", "null", ")", "{", "sum", "+", "=", "n", "long", "value", "(", ")", ";", "}", "}", "else", "if", "(", "!", "ended", ")", "{", "ended", "=", "true", ";", "}", "else", "{", "assert", "false", ";", "}", "return", "to", "return", ";", "}", "@", "override", "public", "void", "remove", "(", ")", "{", "throw", "new", "unsupported", "operation", "exception", "(", ")", ";", "}", "}", ";", "}", "}", ";" ]
[ "gets", "the", "value", "for", "ims", "service", "/", "capabilities", "parameters", "from", "the", "provisioned", "value", "storage", "synchronous", "blocking", "call" ]
[ "return", "-", "1", ";" ]
[ "gets", "the", "value", "for", "ims", "service", "/", "capabilities", "parameters", "from", "the", "provisioned", "value", "storage", "synchronous", "blocking", "call" ]
[ "return", "null", ";" ]
[ "sets", "the", "value", "for", "ims", "service", "/", "capabilities", "parameters", "by", "the", "operator", "device", "management", "entity", "it", "sets", "the", "config", "item", "value", "in", "the", "provisioned", "storage", "from", "which", "the", "master", "value", "is", "derived", "synchronous", "blocking", "call" ]
[ "return", "ims", "config", "operation", "status", "constants", "failed", ";" ]
[ "sets", "the", "value", "for", "ims", "service", "/", "capabilities", "parameters", "by", "the", "operator", "device", "management", "entity", "it", "sets", "the", "config", "item", "value", "in", "the", "provisioned", "storage", "from", "which", "the", "master", "value", "is", "derived", "synchronous", "blocking", "call" ]
[ "return", "ims", "config", "operation", "status", "constants", "failed", ";" ]
[ "gets", "the", "value", "of", "the", "specified", "ims", "feature", "item", "for", "specified", "network", "type", "this", "operation", "gets", "the", "feature", "config", "value", "from", "the", "master", "storage", "(", "i", "e", "final", "value", ")", "asynchronous", "non", "-", "blocking", "call" ]
[]
[ "sets", "the", "value", "for", "ims", "feature", "item", "for", "specified", "network", "type", "this", "operation", "stores", "the", "user", "setting", "in", "setting", "db", "from", "which", "master", "db", "is", "derived" ]
[]
[ "gets", "the", "value", "for", "ims", "vo", "l", "t", "e", "provisioned", "this", "should", "be", "the", "same", "as", "the", "operator", "provisioned", "value", "if", "applies" ]
[ "return", "false", ";" ]
[ "gets", "the", "value", "for", "ims", "feature", "item", "video", "quality" ]
[]
[ "sets", "the", "value", "for", "ims", "feature", "item", "video", "quality" ]
[]
[ "updates", "provisioning", "value", "and", "notifies", "the", "framework", "of", "the", "change", "doesn", "t", "call", "#", "set", "provisioned", "value", "and", "assumes", "the", "result", "succeeded", "this", "should", "only", "be", "used", "by", "modem", "when", "they", "implicitly", "changed", "provisioned", "values" ]
[ "m", "ims", "config", "stub", "update", "cached", "value", "(", "item", ",", "value", ",", "true", ")", ";" ]
[ "updates", "provisioning", "value", "and", "notifies", "the", "framework", "of", "the", "change", "doesn", "t", "call", "#", "set", "provisioned", "value", "and", "assumes", "the", "result", "succeeded", "this", "should", "only", "be", "used", "by", "modem", "when", "they", "implicitly", "changed", "provisioned", "values" ]
[ "m", "ims", "config", "stub", "update", "cached", "value", "(", "item", ",", "value", ",", "true", ")", ";" ]
[ "gets", "the", "value", "for", "ims", "service", "/", "capabilities", "parameters", "it", "first", "checks", "its", "local", "cache", "if", "missed", "it", "will", "call", "ims", "config", "impl", "base", "get", "provisioned", "value", "synchronous", "blocking", "call" ]
[ "if", "(", "m", "provisioned", "int", "value", "contains", "key", "(", "item", ")", ")", "{", "return", "m", "provisioned", "int", "value", "get", "(", "item", ")", ";", "}", "else", "{", "int", "ret", "val", "=", "get", "ims", "config", "impl", "(", ")", "get", "provisioned", "value", "(", "item", ")", ";", "if", "(", "ret", "val", "!", "=", "ims", "config", "operation", "status", "constants", "unknown", ")", "{", "update", "cached", "value", "(", "item", ",", "ret", "val", ",", "false", ")", ";", "}", "return", "ret", "val", ";", "}" ]
[ "gets", "the", "value", "for", "ims", "service", "/", "capabilities", "parameters", "it", "first", "checks", "its", "local", "cache", "if", "missed", "it", "will", "call", "#", "ims", "config", "impl", "base", "get", "provisioned", "value", "synchronous", "blocking", "call" ]
[ "if", "(", "m", "provisioned", "int", "value", "contains", "key", "(", "item", ")", ")", "{", "return", "m", "provisioned", "string", "value", "get", "(", "item", ")", ";", "}", "else", "{", "string", "ret", "val", "=", "get", "ims", "config", "impl", "(", ")", "get", "provisioned", "string", "value", "(", "item", ")", ";", "if", "(", "ret", "val", "!", "=", "null", ")", "{", "update", "cached", "value", "(", "item", ",", "ret", "val", ",", "false", ")", ";", "}", "return", "ret", "val", ";", "}" ]
[ "sets", "the", "value", "for", "ims", "service", "/", "capabilities", "parameters", "by", "the", "operator", "device", "management", "entity", "it", "sets", "the", "config", "item", "value", "in", "the", "provisioned", "storage", "from", "which", "the", "master", "value", "is", "derived", "and", "write", "it", "into", "local", "cache", "synchronous", "blocking", "call" ]
[ "m", "provisioned", "string", "value", "remove", "(", "item", ")", ";", "int", "ret", "val", "=", "get", "ims", "config", "impl", "(", ")", "set", "provisioned", "string", "value", "(", "item", ",", "value", ")", ";", "if", "(", "ret", "val", "=", "=", "ims", "config", "operation", "status", "constants", "success", ")", "{", "update", "cached", "value", "(", "item", ",", "value", ",", "true", ")", ";", "}", "return", "ret", "val", ";" ]
[ "wrapper", "function", "to", "call", "ims", "config", "impl", "base", "get", "feature", "value" ]
[ "get", "ims", "config", "impl", "(", ")", "get", "feature", "value", "(", "feature", ",", "network", ",", "listener", ")", ";" ]
[ "wrapper", "function", "to", "call", "ims", "config", "impl", "base", "set", "feature", "value" ]
[ "get", "ims", "config", "impl", "(", ")", "set", "feature", "value", "(", "feature", ",", "network", ",", "value", ",", "listener", ")", ";" ]
[ "wrapper", "function", "to", "call", "ims", "config", "impl", "base", "get", "volte", "provisioned" ]
[ "return", "get", "ims", "config", "impl", "(", ")", "get", "volte", "provisioned", "(", ")", ";" ]
[ "wrapper", "function", "to", "call", "ims", "config", "impl", "base", "get", "video", "quality" ]
[ "get", "ims", "config", "impl", "(", ")", "get", "video", "quality", "(", "listener", ")", ";" ]
[ "wrapper", "function", "to", "call", "ims", "config", "impl", "base", "set", "video", "quality" ]
[ "get", "ims", "config", "impl", "(", ")", "set", "video", "quality", "(", "quality", ",", "listener", ")", ";" ]
[ "get", "all", "addresses", "by", "host", "name" ]
[ "return", "inet", "address", "get", "all", "by", "name", "(", "host", ")", ";" ]
[ "get", "next", "server", "index" ]
[ "if", "(", "len", "=", "=", "1", ")", "return", "0", ";", "else", "{", "long", "next", "idx", "=", "idx", "gen", "get", "and", "increment", "(", ")", ";", "return", "(", "int", ")", "(", "next", "idx", "%", "len", ")", ";", "}" ]
[ "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/" ]
[ "return", "new", "spent", "info", "(", "proto", "get", "block", "height", "(", ")", ",", "proto", "get", "tx", "id", "(", ")", ",", "proto", "get", "input", "index", "(", ")", ")", ";" ]
[ "there", "is", "a", "weird", "bug", "in", "geometry", "comparison", "if", "a", "geometry", "envelope", "is", "not", "loaded", "it", "may", "return", "false", "for", "two", "empty", "line", "strings", "or", "multiline", "strings" ]
[ "geometry", "envelope", "(", ")", ";" ]
[ "the", "list", "of", "settings", "this", "builder", "will", "register" ]
[ "public", "abstract", "list", "<", "setting", "<", "?", ">", ">", "get", "registered", "settings", "(", ")", ";" ]
[ "return", "an", "executor", "settings", "object", "from", "the", "node", "-", "level", "settings" ]
[ "abstract", "u", "get", "settings", "(", "settings", "settings", ")", ";" ]
[ "builds", "the", "executor", "with", "the", "specified", "executor", "settings" ]
[ "abstract", "thread", "pool", "executor", "holder", "build", "(", "u", "settings", ",", "thread", "context", "thread", "context", ")", ";" ]