docstring_tokens
list
code_tokens
list
[ "<", "p", ">", "the", "base", "-", "64", "encoded", "saml", "authentication", "response", "provided", "by", "the", "id", "p", "<", "/", "p", ">", "<", "p", ">", "for", "more", "information", "see", "<", "a", "href", "=", "http", ":", "/", "/", "docs", "aws", "amazon", "com", "/", "iam", "/", "latest", "/", "user", "guide", "/", "create", "-", "role", "-", "saml", "-", "id", "p", "-", "tasks", "html", ">", "configuring", "a", "relying", "party", "and", "adding", "claims", "<", "/", "a", ">", "in", "the", "<", "i", ">", "using", "iam", "<", "/", "i", ">", "guide", "<", "/", "p", ">" ]
[ "return", "this", "s", "a", "m", "l", "assertion", ";" ]
[ "<", "p", ">", "the", "base", "-", "64", "encoded", "saml", "authentication", "response", "provided", "by", "the", "id", "p", "<", "/", "p", ">", "<", "p", ">", "for", "more", "information", "see", "<", "a", "href", "=", "http", ":", "/", "/", "docs", "aws", "amazon", "com", "/", "iam", "/", "latest", "/", "user", "guide", "/", "create", "-", "role", "-", "saml", "-", "id", "p", "-", "tasks", "html", ">", "configuring", "a", "relying", "party", "and", "adding", "claims", "<", "/", "a", ">", "in", "the", "<", "i", ">", "using", "iam", "<", "/", "i", ">", "guide", "<", "/", "p", ">" ]
[ "set", "s", "a", "m", "l", "assertion", "(", "s", "a", "m", "l", "assertion", ")", ";", "return", "this", ";" ]
[ "<", "p", ">", "an", "iam", "policy", "in", "json", "format", "<", "/", "p", ">", "<", "p", ">", "the", "policy", "parameter", "is", "optional", "if", "you", "pass", "a", "policy", "the", "temporary", "security", "credentials", "that", "are", "returned", "by", "the", "operation", "have", "the", "permissions", "that", "are", "allowed", "by", "both", "the", "access", "policy", "of", "the", "role", "that", "is", "being", "assumed", "<", "i", ">", "<", "b", ">", "and", "<", "/", "b", ">", "<", "/", "i", ">", "the", "policy", "that", "you", "pass", "this", "gives", "you", "a", "way", "to", "further", "restrict", "the", "permissions", "for", "the", "resulting", "temporary", "security", "credentials", "you", "cannot", "use", "the", "passed", "policy", "to", "grant", "permissions", "that", "are", "in", "excess", "of", "those", "allowed", "by", "the", "access", "policy", "of", "the", "role", "that", "is", "being", "assumed", "for", "more", "information", "<", "a", "href", "=", "http", ":", "/", "/", "docs", "aws", "amazon", "com", "/", "iam", "/", "latest", "/", "user", "guide", "/", "id", "credentials", "temp", "control", "-", "access", "assumerole", "html", ">", "permissions", "for", "assume", "role", "assume", "role", "with", "s", "a", "m", "l", "and", "assume", "role", "with", "web", "identity", "<", "/", "a", ">", "in", "the", "<", "i", ">", "iam", "user", "guide", "<", "/", "i", ">", "<", "/", "p", ">", "<", "p", ">", "the", "format", "for", "this", "parameter", "as", "described", "by", "its", "regex", "pattern", "is", "a", "string", "of", "characters", "up", "to", "2048", "characters", "in", "length", "the", "characters", "can", "be", "any", "ascii", "character", "from", "the", "space", "character", "to", "the", "end", "of", "the", "valid", "character", "list", "(", "-", "\\", "u", "0", "0", "f", "f", ")", "it", "can", "also", "include", "the", "tab", "(", ")", "linefeed", "(", ")", "and", "carriage", "return", "(", ")", "characters", "<", "/", "p", ">", "<", "note", ">", "<", "p", ">", "the", "policy", "plain", "text", "must", "be", "2048", "bytes", "or", "shorter", "however", "an", "internal", "conversion", "compresses", "it", "into", "a", "packed", "binary", "format", "with", "a", "separate", "limit", "the", "packed", "policy", "size", "response", "element", "indicates", "by", "percentage", "how", "close", "to", "the", "upper", "size", "limit", "the", "policy", "is", "with", "100", "%", "equaling", "the", "maximum", "allowed", "size", "<", "/", "p", ">", "<", "/", "note", ">" ]
[ "set", "policy", "(", "policy", ")", ";", "return", "this", ";" ]
[ "<", "p", ">", "the", "duration", "in", "seconds", "of", "the", "role", "session", "your", "role", "session", "lasts", "for", "the", "duration", "that", "you", "specify", "for", "the", "<", "code", ">", "duration", "seconds", "<", "/", "code", ">", "parameter", "or", "until", "the", "time", "specified", "in", "the", "saml", "authentication", "response", "s", "<", "code", ">", "session", "not", "on", "or", "after", "<", "/", "code", ">", "value", "whichever", "is", "shorter", "you", "can", "provide", "a", "<", "code", ">", "duration", "seconds", "<", "/", "code", ">", "value", "from", "900", "seconds", "(", "15", "minutes", ")", "up", "to", "the", "maximum", "session", "duration", "setting", "for", "the", "role", "this", "setting", "can", "have", "a", "value", "from", "1", "hour", "to", "12", "hours", "if", "you", "specify", "a", "value", "higher", "than", "this", "setting", "the", "operation", "fails", "for", "example", "if", "you", "specify", "a", "session", "duration", "of", "12", "hours", "but", "your", "administrator", "set", "the", "maximum", "session", "duration", "to", "6", "hours", "your", "operation", "fails", "to", "learn", "how", "to", "view", "the", "maximum", "value", "for", "your", "role", "see", "<", "a", "href", "=", "http", ":", "/", "/", "docs", "aws", "amazon", "com", "/", "iam", "/", "latest", "/", "user", "guide", "/", "id", "roles", "use", "html", "#", "id", "roles", "use", "view", "-", "role", "-", "max", "-", "session", ">", "view", "the", "maximum", "session", "duration", "setting", "for", "a", "role", "<", "/", "a", ">", "in", "the", "<", "i", ">", "iam", "user", "guide", "<", "/", "i", ">", "<", "/", "p", ">", "<", "p", ">", "by", "default", "the", "value", "is", "set", "to", "3600", "seconds", "<", "/", "p", ">", "<", "note", ">", "<", "p", ">", "the", "<", "code", ">", "duration", "seconds", "<", "/", "code", ">", "parameter", "is", "separate", "from", "the", "duration", "of", "a", "console", "session", "that", "you", "might", "request", "using", "the", "returned", "credentials", "the", "request", "to", "the", "federation", "endpoint", "for", "a", "console", "sign", "-", "in", "token", "takes", "a", "<", "code", ">", "session", "duration", "<", "/", "code", ">", "parameter", "that", "specifies", "the", "maximum", "length", "of", "the", "console", "session", "for", "more", "information", "see", "<", "a", "href", "=", "http", ":", "/", "/", "docs", "aws", "amazon", "com", "/", "iam", "/", "latest", "/", "user", "guide", "/", "id", "roles", "providers", "enable", "-", "console", "-", "custom", "-", "url", "html", ">", "creating", "a", "url", "that", "enables", "federated", "users", "to", "access", "the", "aws", "management", "console", "<", "/", "a", ">", "in", "the", "<", "i", ">", "iam", "user", "guide", "<", "/", "i", ">", "<", "/", "p", ">", "<", "/", "note", ">" ]
[ "set", "duration", "seconds", "(", "duration", "seconds", ")", ";", "return", "this", ";" ]
[ "returns", "true", "if", "any", "array", "elements", "are", "negative", "if", "the", "array", "is", "null", "it", "returns", "false" ]
[ "if", "(", "arr", "=", "=", "null", ")", "return", "false", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "arr", "length", ";", "i", "+", "+", ")", "{", "if", "(", "arr", "[", "i", "]", "<", "0", ")", "return", "true", ";", "}", "return", "false", ";" ]
[ "convert", "a", "int", "array", "to", "a", "string", "array" ]
[ "preconditions", "check", "not", "null", "(", "arr", ")", ";", "string", "[", "]", "ret", "=", "new", "string", "[", "arr", "length", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "arr", "length", ";", "i", "+", "+", ")", "{", "ret", "[", "i", "]", "=", "string", "value", "of", "(", "arr", "[", "i", "]", ")", ";", "}", "return", "ret", ";" ]
[ "proper", "comparison", "contains", "for", "list", "of", "int", "arrays" ]
[ "for", "(", "int", "[", "]", "arr", ":", "list", ")", "if", "(", "arrays", "equals", "(", "target", ",", "arr", ")", ")", "return", "true", ";", "return", "false", ";" ]
[ "repeat", "a", "value", "n", "times" ]
[ "int", "[", "]", "ret", "=", "new", "int", "[", "n", "]", ";", "arrays", "fill", "(", "ret", ",", "to", "replicate", ")", ";", "return", "ret", ";" ]
[ "returns", "true", "if", "all", "of", "the", "elements", "in", "the", "given", "int", "array", "are", "unique" ]
[ "set", "<", "integer", ">", "set", "=", "new", "hash", "set", "<", ">", "(", ")", ";", "for", "(", "int", "i", ":", "to", "test", ")", "{", "if", "(", "!", "set", "contains", "(", "i", ")", ")", "set", "add", "(", "i", ")", ";", "else", "return", "false", ";", "}", "return", "true", ";" ]
[ "credit", "to", "mikio", "braun", "from", "jblas", "<", "p", "/", ">", "create", "a", "random", "permutation", "of", "the", "numbers", "0", "size", "-", "1", "<", "p", "/", ">", "see", "algorithm", "p", "d", "e", "knuth", ":", "the", "art", "of", "computer", "programming", "vol", "2", "p", "145" ]
[ "random", "r", "=", "new", "random", "(", ")", ";", "int", "[", "]", "result", "=", "new", "int", "[", "size", "]", ";", "for", "(", "int", "j", "=", "0", ";", "j", "<", "size", ";", "j", "+", "+", ")", "{", "result", "[", "j", "]", "=", "j", "+", "1", ";", "}", "for", "(", "int", "j", "=", "size", "-", "1", ";", "j", ">", "0", ";", "j", "-", "-", ")", "{", "int", "k", "=", "r", "next", "int", "(", "j", ")", ";", "int", "temp", "=", "result", "[", "j", "]", ";", "result", "[", "j", "]", "=", "result", "[", "k", "]", ";", "result", "[", "k", "]", "=", "temp", ";", "}", "return", "result", ";" ]
[ "calculate", "the", "offset", "for", "a", "given", "stride", "array" ]
[ "int", "ret", "=", "0", ";", "for", "(", "int", "j", "=", "0", ";", "j", "<", "stride", "length", ";", "j", "+", "+", ")", "ret", "+", "=", "(", "i", "*", "stride", "[", "j", "]", ")", ";", "return", "ret", ";" ]
[ "sum", "of", "an", "int", "array" ]
[ "if", "(", "add", "size", "(", ")", "<", "1", ")", "return", "0", ";", "int", "ret", "=", "0", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "add", "size", "(", ")", ";", "i", "+", "+", ")", "ret", "+", "=", "add", "get", "(", "i", ")", ";", "return", "ret", ";" ]
[ "sum", "of", "an", "int", "array" ]
[ "if", "(", "add", "length", "<", "1", ")", "return", "0", ";", "int", "ret", "=", "0", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "add", "length", ";", "i", "+", "+", ")", "ret", "+", "=", "add", "[", "i", "]", ";", "return", "ret", ";" ]
[ "product", "of", "an", "int", "array" ]
[ "if", "(", "mult", "size", "(", ")", "<", "1", ")", "return", "0", ";", "int", "ret", "=", "1", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "mult", "size", "(", ")", ";", "i", "+", "+", ")", "ret", "*", "=", "mult", "get", "(", "i", ")", ";", "return", "ret", ";" ]
[ "product", "of", "an", "int", "array" ]
[ "if", "(", "mult", "length", "<", "1", ")", "return", "0", ";", "int", "ret", "=", "1", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "mult", "length", ";", "i", "+", "+", ")", "ret", "*", "=", "mult", "[", "i", "]", ";", "return", "ret", ";" ]
[ "product", "of", "an", "int", "array" ]
[ "if", "(", "mult", "length", "<", "1", ")", "return", "0", ";", "int", "ret", "=", "1", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "mult", "length", ";", "i", "+", "+", ")", "ret", "*", "=", "mult", "[", "i", "]", ";", "return", "ret", ";" ]
[ "product", "of", "an", "int", "array" ]
[ "if", "(", "mult", "size", "(", ")", "<", "1", ")", "return", "0", ";", "long", "ret", "=", "1", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "mult", "size", "(", ")", ";", "i", "+", "+", ")", "ret", "*", "=", "mult", "get", "(", "i", ")", "long", "value", "(", ")", ";", "return", "ret", ";" ]
[ "product", "of", "an", "int", "array" ]
[ "if", "(", "mult", "length", "<", "1", ")", "return", "0", ";", "long", "ret", "=", "1", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "mult", "length", ";", "i", "+", "+", ")", "ret", "*", "=", "mult", "[", "i", "]", ";", "return", "ret", ";" ]
[ "returns", "true", "if", "any", "of", "the", "elements", "are", "zero" ]
[ "for", "(", "int", "i", "=", "0", ";", "i", "<", "as", "length", ";", "i", "+", "+", ")", "{", "if", "(", "as", "[", "i", "]", "=", "=", "0", ")", "return", "true", ";", "}", "return", "false", ";" ]
[ "returns", "a", "subset", "of", "an", "array", "from", "0", "to", "to" ]
[ "return", "range", "(", "data", ",", "to", ",", "1", ")", ";" ]
[ "returns", "a", "subset", "of", "an", "array", "from", "0", "to", "to", "using", "the", "specified", "stride" ]
[ "return", "range", "(", "data", ",", "to", ",", "stride", ",", "1", ")", ";" ]
[ "returns", "a", "subset", "of", "an", "array", "from", "0", "to", "to", "using", "the", "specified", "stride" ]
[ "double", "[", "]", "ret", "=", "new", "double", "[", "to", "/", "stride", "]", ";", "if", "(", "ret", "length", "<", "1", ")", "ret", "=", "new", "double", "[", "1", "]", ";", "int", "count", "=", "0", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "data", "length", ";", "i", "+", "=", "stride", ")", "{", "for", "(", "int", "j", "=", "0", ";", "j", "<", "num", "elements", "each", "stride", ";", "j", "+", "+", ")", "{", "if", "(", "i", "+", "j", ">", "=", "data", "length", "|", "|", "count", ">", "=", "ret", "length", ")", "break", ";", "ret", "[", "count", "+", "+", "]", "=", "data", "[", "i", "+", "j", "]", ";", "}", "}", "return", "ret", ";" ]
[ "generate", "an", "int", "array", "ranging", "from", "from", "to", "to", "if", "from", "is", ">", "to", "this", "method", "will", "count", "backwards" ]
[ "int", "diff", "=", "math", "abs", "(", "from", "-", "to", ")", ";", "int", "[", "]", "ret", "=", "new", "int", "[", "diff", "/", "increment", "]", ";", "if", "(", "ret", "length", "<", "1", ")", "ret", "=", "new", "int", "[", "1", "]", ";", "if", "(", "from", "<", "to", ")", "{", "int", "count", "=", "0", ";", "for", "(", "int", "i", "=", "from", ";", "i", "<", "to", ";", "i", "+", "=", "increment", ")", "{", "if", "(", "count", ">", "=", "ret", "length", ")", "break", ";", "ret", "[", "count", "+", "+", "]", "=", "i", ";", "}", "}", "else", "if", "(", "from", ">", "to", ")", "{", "int", "count", "=", "0", ";", "for", "(", "int", "i", "=", "from", "-", "1", ";", "i", ">", "=", "to", ";", "i", "-", "=", "increment", ")", "{", "if", "(", "count", ">", "=", "ret", "length", ")", "break", ";", "ret", "[", "count", "+", "+", "]", "=", "i", ";", "}", "}", "return", "ret", ";" ]
[ "generate", "an", "int", "array", "ranging", "from", "from", "to", "to", "if", "from", "is", ">", "to", "this", "method", "will", "count", "backwards" ]
[ "if", "(", "from", "=", "=", "to", ")", "return", "new", "int", "[", "0", "]", ";", "return", "range", "(", "from", ",", "to", ",", "1", ")", ";" ]
[ "return", "a", "copy", "of", "this", "array", "with", "the", "given", "index", "omitted" ]
[ "int", "[", "]", "copy", "=", "copy", "(", "data", ")", ";", "copy", "[", "index", "]", "=", "new", "value", ";", "return", "copy", ";" ]
[ "return", "a", "copy", "of", "this", "array", "with", "only", "the", "given", "index", "(", "es", ")", "remaining" ]
[ "if", "(", "index", "length", "=", "=", "data", "length", ")", "return", "data", ";", "int", "[", "]", "ret", "=", "new", "int", "[", "index", "length", "]", ";", "int", "count", "=", "0", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "data", "length", ";", "i", "+", "+", ")", "if", "(", "ints", "contains", "(", "index", ",", "i", ")", ")", "ret", "[", "count", "+", "+", "]", "=", "data", "[", "i", "]", ";", "return", "ret", ";" ]
[ "return", "a", "copy", "of", "this", "array", "with", "only", "the", "given", "index", "(", "es", ")", "remaining" ]
[ "if", "(", "index", "length", "=", "=", "data", "length", ")", "return", "data", ";", "long", "[", "]", "ret", "=", "new", "long", "[", "index", "length", "]", ";", "int", "count", "=", "0", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "data", "length", ";", "i", "+", "+", ")", "if", "(", "ints", "contains", "(", "index", ",", "i", ")", ")", "ret", "[", "count", "+", "+", "]", "=", "data", "[", "i", "]", ";", "return", "ret", ";" ]
[ "zip", "2", "arrays", "in", "to", ":" ]
[ "int", "[", "]", "[", "]", "result", "=", "new", "int", "[", "as", "length", "]", "[", "2", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "result", "length", ";", "i", "+", "+", ")", "{", "result", "[", "i", "]", "=", "new", "int", "[", "]", "{", "as", "[", "i", "]", ",", "bs", "[", "i", "]", "}", ";", "}", "return", "result", ";" ]
[ "permute", "the", "given", "input", "switching", "the", "dimensions", "of", "the", "input", "shape", "array", "with", "in", "the", "order", "of", "the", "specified", "dimensions" ]
[ "int", "[", "]", "ret", "=", "new", "int", "[", "shape", "length", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "shape", "length", ";", "i", "+", "+", ")", "{", "ret", "[", "i", "]", "=", "shape", "[", "dimensions", "[", "i", "]", "]", ";", "}", "return", "ret", ";" ]
[ "original", "credit", ":", "https", ":", "/", "/", "github", "com", "/", "alberts", "/", "array", "4j", "/", "blob", "/", "master", "/", "src", "/", "main", "/", "java", "/", "net", "/", "lunglet", "/", "util", "/", "array", "utils", "java" ]
[ "return", "argsort", "(", "a", ",", "true", ")", ";" ]
[ "convert", "all", "dimensions", "in", "the", "specified", "axes", "array", "to", "be", "positive", "based", "on", "the", "specified", "range", "of", "values" ]
[ "int", "[", "]", "axes", "ret", "=", "array", "util", "range", "(", "0", ",", "range", ")", ";", "int", "[", "]", "new", "axes", "=", "array", "util", "copy", "(", "axes", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "axes", "length", ";", "i", "+", "+", ")", "{", "new", "axes", "[", "i", "]", "=", "axes", "[", "axes", "ret", "[", "i", "]", "]", ";", "}", "return", "new", "axes", ";" ]
[ "generate", "an", "array", "from", "0", "to", "length", "and", "generate", "take", "a", "subset" ]
[ "return", "arrays", "copy", "of", "range", "(", "array", "util", "range", "(", "0", ",", "length", ")", ",", "from", ",", "to", ")", ";" ]
[ "create", "a", "copy", "of", "the", "given", "array", "starting", "at", "the", "given", "index", "with", "the", "given", "length" ]
[ "int", "[", "]", "ret", "=", "new", "int", "[", "length", "]", ";", "arrays", "fill", "(", "ret", ",", "value", "starting", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "+", "+", ")", "{", "if", "(", "i", "+", "idx", "from", ">", "=", "copy", "length", "|", "|", "i", "+", "idx", "at", ">", "=", "ret", "length", ")", "break", ";", "ret", "[", "i", "+", "idx", "at", "]", "=", "copy", "[", "i", "+", "idx", "from", "]", ";", "}", "return", "ret", ";" ]
[ "returns", "the", "array", "with", "the", "item", "in", "index", "removed", "if", "the", "array", "is", "empty", "it", "will", "return", "the", "array", "itself" ]
[ "if", "(", "data", "=", "=", "null", ")", "return", "null", ";", "if", "(", "data", "length", "<", "1", ")", "return", "data", ";", "int", "len", "=", "data", "length", ";", "integer", "[", "]", "result", "=", "new", "integer", "[", "len", "-", "1", "]", ";", "system", "arraycopy", "(", "data", ",", "0", ",", "result", ",", "0", ",", "index", ")", ";", "system", "arraycopy", "(", "data", ",", "index", "+", "1", ",", "result", ",", "index", ",", "len", "-", "index", "-", "1", ")", ";", "return", "result", ";" ]
[ "computes", "the", "standard", "packed", "array", "strides", "for", "a", "given", "shape" ]
[ "if", "(", "shape", "length", "=", "=", "2", "&", "&", "(", "shape", "[", "0", "]", "=", "=", "1", "|", "|", "shape", "[", "1", "]", "=", "=", "1", ")", ")", "{", "int", "[", "]", "ret", "=", "new", "int", "[", "2", "]", ";", "arrays", "fill", "(", "ret", ",", "start", "num", ")", ";", "return", "ret", ";", "}", "int", "dimensions", "=", "shape", "length", ";", "int", "[", "]", "stride", "=", "new", "int", "[", "dimensions", "]", ";", "int", "st", "=", "start", "num", ";", "for", "(", "int", "j", "=", "0", ";", "j", "<", "stride", "length", ";", "j", "+", "+", ")", "{", "stride", "[", "j", "]", "=", "st", ";", "st", "*", "=", "shape", "[", "j", "]", ";", "}", "return", "stride", ";" ]
[ "computes", "the", "standard", "packed", "array", "strides", "for", "a", "given", "shape" ]
[ "if", "(", "shape", "length", "=", "=", "2", "&", "&", "(", "shape", "[", "0", "]", "=", "=", "1", "|", "|", "shape", "[", "1", "]", "=", "=", "1", ")", ")", "{", "long", "[", "]", "ret", "=", "new", "long", "[", "2", "]", ";", "arrays", "fill", "(", "ret", ",", "start", "num", ")", ";", "return", "ret", ";", "}", "int", "dimensions", "=", "shape", "length", ";", "long", "[", "]", "stride", "=", "new", "long", "[", "dimensions", "]", ";", "int", "st", "=", "start", "num", ";", "for", "(", "int", "j", "=", "0", ";", "j", "<", "stride", "length", ";", "j", "+", "+", ")", "{", "stride", "[", "j", "]", "=", "st", ";", "st", "*", "=", "shape", "[", "j", "]", ";", "}", "return", "stride", ";" ]
[ "computes", "the", "standard", "packed", "array", "strides", "for", "a", "given", "shape" ]
[ "return", "calc", "strides", "fortran", "(", "shape", ",", "1", ")", ";" ]
[ "computes", "the", "standard", "packed", "array", "strides", "for", "a", "given", "shape" ]
[ "if", "(", "shape", "length", "=", "=", "2", "&", "&", "(", "shape", "[", "0", "]", "=", "=", "1", "|", "|", "shape", "[", "1", "]", "=", "=", "1", ")", ")", "{", "int", "[", "]", "ret", "=", "new", "int", "[", "2", "]", ";", "arrays", "fill", "(", "ret", ",", "start", "value", ")", ";", "return", "ret", ";", "}", "int", "dimensions", "=", "shape", "length", ";", "int", "[", "]", "stride", "=", "new", "int", "[", "dimensions", "]", ";", "int", "st", "=", "start", "value", ";", "for", "(", "int", "j", "=", "dimensions", "-", "1", ";", "j", ">", "=", "0", ";", "j", "-", "-", ")", "{", "stride", "[", "j", "]", "=", "st", ";", "st", "*", "=", "shape", "[", "j", "]", ";", "}", "return", "stride", ";" ]
[ "computes", "the", "standard", "packed", "array", "strides", "for", "a", "given", "shape" ]
[ "if", "(", "shape", "length", "=", "=", "2", "&", "&", "(", "shape", "[", "0", "]", "=", "=", "1", "|", "|", "shape", "[", "1", "]", "=", "=", "1", ")", ")", "{", "long", "[", "]", "ret", "=", "new", "long", "[", "2", "]", ";", "arrays", "fill", "(", "ret", ",", "start", "value", ")", ";", "return", "ret", ";", "}", "int", "dimensions", "=", "shape", "length", ";", "long", "[", "]", "stride", "=", "new", "long", "[", "dimensions", "]", ";", "int", "st", "=", "start", "value", ";", "for", "(", "int", "j", "=", "dimensions", "-", "1", ";", "j", ">", "=", "0", ";", "j", "-", "-", ")", "{", "stride", "[", "j", "]", "=", "st", ";", "st", "*", "=", "shape", "[", "j", "]", ";", "}", "return", "stride", ";" ]
[ "returns", "true", "if", "the", "given", "two", "arrays", "are", "reverse", "copies", "of", "each", "other" ]
[ "int", "back", "ward", "count", "=", "second", "length", "-", "1", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "first", "length", ";", "i", "+", "+", ")", "{", "if", "(", "first", "[", "i", "]", "!", "=", "second", "[", "back", "ward", "count", "-", "-", "]", ")", "return", "false", ";", "}", "return", "true", ";" ]
[ "for", "use", "with", "row", "vectors", "to", "ensure", "consistent", "strides", "with", "varying", "offsets" ]
[ "for", "(", "int", "i", "=", "0", ";", "i", "<", "arr", "length", ";", "i", "+", "+", ")", "if", "(", "arr", "[", "i", "]", "!", "=", "1", ")", "return", "arr", "[", "i", "]", ";", "return", "1", ";" ]
[ "computes", "the", "standard", "packed", "array", "strides", "for", "a", "given", "shape" ]
[ "return", "calc", "strides", "(", "shape", ",", "1", ")", ";" ]
[ "create", "a", "backwards", "copy", "of", "the", "given", "array" ]
[ "if", "(", "e", "length", "<", "1", ")", "return", "e", ";", "int", "[", "]", "copy", "=", "new", "int", "[", "e", "length", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "=", "e", "length", "/", "2", ";", "i", "+", "+", ")", "{", "int", "temp", "=", "e", "[", "i", "]", ";", "copy", "[", "i", "]", "=", "e", "[", "e", "length", "-", "i", "-", "1", "]", ";", "copy", "[", "e", "length", "-", "i", "-", "1", "]", "=", "temp", ";", "}", "return", "copy", ";" ]
[ "multiply", "the", "given", "array", "by", "the", "given", "scalar" ]
[ "for", "(", "int", "i", "=", "0", ";", "i", "<", "arr", "length", ";", "i", "+", "+", ")", "arr", "[", "i", "]", "*", "=", "mult", ";" ]
[ "reverse", "the", "passed", "in", "array", "in", "place" ]
[ "for", "(", "int", "i", "=", "0", ";", "i", "<", "=", "e", "length", "/", "2", ";", "i", "+", "+", ")", "{", "int", "temp", "=", "e", "[", "i", "]", ";", "e", "[", "i", "]", "=", "e", "[", "e", "length", "-", "i", "-", "1", "]", ";", "e", "[", "e", "length", "-", "i", "-", "1", "]", "=", "temp", ";", "}" ]
[ "convert", "a", "2darray", "in", "to", "a", "flat", "array", "(", "row", "wise", ")" ]
[ "if", "(", "arr", "length", "=", "=", "0", "|", "|", "arr", "[", "0", "]", "length", "=", "=", "0", ")", "return", "new", "double", "[", "0", "]", ";", "double", "[", "]", "ret", "=", "new", "double", "[", "arr", "length", "*", "arr", "[", "0", "]", "length", "]", ";", "int", "count", "=", "0", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "arr", "length", ";", "i", "+", "+", ")", "for", "(", "int", "j", "=", "0", ";", "j", "<", "arr", "[", "i", "]", "length", ";", "j", "+", "+", ")", "ret", "[", "count", "+", "+", "]", "=", "arr", "[", "i", "]", "[", "j", "]", ";", "return", "ret", ";" ]
[ "convert", "a", "2darray", "in", "to", "a", "flat", "array", "(", "row", "wise", ")" ]
[ "double", "[", "]", "ret", "=", "new", "double", "[", "arr", "length", "*", "arr", "[", "0", "]", "length", "]", ";", "int", "count", "=", "0", ";", "for", "(", "int", "j", "=", "0", ";", "j", "<", "arr", "[", "0", "]", "length", ";", "j", "+", "+", ")", "for", "(", "int", "i", "=", "0", ";", "i", "<", "arr", "length", ";", "i", "+", "+", ")", "ret", "[", "count", "+", "+", "]", "=", "arr", "[", "i", "]", "[", "j", "]", ";", "return", "ret", ";" ]
[ "cast", "an", "int", "array", "to", "a", "double", "array" ]
[ "double", "[", "]", "[", "]", "ret", "=", "new", "double", "[", "arr", "length", "]", "[", "arr", "[", "0", "]", "length", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "arr", "length", ";", "i", "+", "+", ")", "{", "for", "(", "int", "j", "=", "0", ";", "j", "<", "arr", "[", "i", "]", "length", ";", "j", "+", "+", ")", "ret", "[", "i", "]", "[", "j", "]", "=", "arr", "[", "i", "]", "[", "j", "]", ";", "}", "return", "ret", ";" ]
[ "combines", "a", "apply", "transform", "to", "destination", "of", "int", "arrays", "in", "to", "one", "flat", "int", "array" ]
[ "int", "length", "=", "0", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "nums", "size", "(", ")", ";", "i", "+", "+", ")", "length", "+", "=", "nums", "get", "(", "i", ")", "length", ";", "float", "[", "]", "ret", "=", "new", "float", "[", "length", "]", ";", "int", "count", "=", "0", ";", "for", "(", "float", "[", "]", "i", ":", "nums", ")", "{", "for", "(", "int", "j", "=", "0", ";", "j", "<", "i", "length", ";", "j", "+", "+", ")", "{", "ret", "[", "count", "+", "+", "]", "=", "i", "[", "j", "]", ";", "}", "}", "return", "ret", ";" ]
[ "combines", "a", "apply", "of", "int", "arrays", "in", "to", "one", "flat", "int", "array" ]
[ "int", "length", "=", "0", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "nums", "size", "(", ")", ";", "i", "+", "+", ")", "length", "+", "=", "nums", "get", "(", "i", ")", "length", ";", "float", "[", "]", "ret", "=", "new", "float", "[", "length", "]", ";", "int", "count", "=", "0", ";", "for", "(", "float", "[", "]", "i", ":", "nums", ")", "{", "for", "(", "int", "j", "=", "0", ";", "j", "<", "i", "length", ";", "j", "+", "+", ")", "{", "ret", "[", "count", "+", "+", "]", "=", "i", "[", "j", "]", ";", "}", "}", "return", "ret", ";" ]
[ "combines", "a", "apply", "of", "int", "arrays", "in", "to", "one", "flat", "int", "array" ]
[ "int", "length", "=", "0", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "nums", "size", "(", ")", ";", "i", "+", "+", ")", "length", "+", "=", "nums", "get", "(", "i", ")", "length", ";", "double", "[", "]", "ret", "=", "new", "double", "[", "length", "]", ";", "int", "count", "=", "0", ";", "for", "(", "double", "[", "]", "i", ":", "nums", ")", "{", "for", "(", "int", "j", "=", "0", ";", "j", "<", "i", "length", ";", "j", "+", "+", ")", "{", "ret", "[", "count", "+", "+", "]", "=", "i", "[", "j", "]", ";", "}", "}", "return", "ret", ";" ]
[ "combines", "a", "apply", "of", "int", "arrays", "in", "to", "one", "flat", "int", "array" ]
[ "int", "length", "=", "0", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "ints", "length", ";", "i", "+", "+", ")", "length", "+", "=", "ints", "[", "i", "]", "length", ";", "double", "[", "]", "ret", "=", "new", "double", "[", "length", "]", ";", "int", "count", "=", "0", ";", "for", "(", "float", "[", "]", "i", ":", "ints", ")", "{", "for", "(", "int", "j", "=", "0", ";", "j", "<", "i", "length", ";", "j", "+", "+", ")", "{", "ret", "[", "count", "+", "+", "]", "=", "i", "[", "j", "]", ";", "}", "}", "return", "ret", ";" ]
[ "combines", "a", "apply", "of", "int", "arrays", "in", "to", "one", "flat", "int", "array" ]
[ "int", "length", "=", "0", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "ints", "length", ";", "i", "+", "+", ")", "length", "+", "=", "ints", "[", "i", "]", "length", ";", "int", "[", "]", "ret", "=", "new", "int", "[", "length", "]", ";", "int", "count", "=", "0", ";", "for", "(", "int", "[", "]", "i", ":", "ints", ")", "{", "for", "(", "int", "j", "=", "0", ";", "j", "<", "i", "length", ";", "j", "+", "+", ")", "{", "ret", "[", "count", "+", "+", "]", "=", "i", "[", "j", "]", ";", "}", "}", "return", "ret", ";" ]
[ "combines", "a", "apply", "of", "long", "arrays", "in", "to", "one", "flat", "long", "array" ]
[ "int", "length", "=", "0", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "ints", "length", ";", "i", "+", "+", ")", "length", "+", "=", "ints", "[", "i", "]", "length", ";", "long", "[", "]", "ret", "=", "new", "long", "[", "length", "]", ";", "int", "count", "=", "0", ";", "for", "(", "long", "[", "]", "i", ":", "ints", ")", "{", "for", "(", "int", "j", "=", "0", ";", "j", "<", "i", "length", ";", "j", "+", "+", ")", "{", "ret", "[", "count", "+", "+", "]", "=", "i", "[", "j", "]", ";", "}", "}", "return", "ret", ";" ]
[ "calculate", "the", "shape", "of", "an", "arbitrary", "multi", "-", "dimensional", "array", "assumes", ":", "<", "br", ">", "(", "a", ")", "array", "is", "rectangular", "(", "not", "ragged", ")", "and", "first", "elements", "(", "i", "e", "array", "[", "0", "]", "[", "0", "]", "[", "0", "]", ")", "are", "non", "-", "null", "<", "br", ">", "(", "b", ")", "first", "elements", "have", ">", "0", "length", "so", "array", "[", "0", "]", "length", ">", "0", "array", "[", "0", "]", "[", "0", "]", "length", ">", "0", "etc", "<", "br", ">", "can", "pass", "any", "java", "array", "op", "type", ":", "double", "[", "]", "object", "[", "]", "[", "]", "[", "]", "float", "[", "]", "[", "]", "etc", "<", "br", ">", "length", "of", "returned", "array", "is", "number", "of", "dimensions", ";", "returned", "[", "i", "]", "is", "size", "of", "ith", "dimension" ]
[ "return", "array", "shape", "(", "array", ",", "false", ")", ";" ]
[ "returns", "the", "maximum", "value", "in", "the", "array" ]
[ "int", "max", "=", "integer", "min", "value", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "in", "length", ";", "i", "+", "+", ")", "if", "(", "in", "[", "i", "]", ">", "max", ")", "max", "=", "in", "[", "i", "]", ";", "return", "max", ";" ]
[ "returns", "the", "minimum", "value", "in", "the", "array" ]
[ "int", "min", "=", "integer", "max", "value", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "in", "length", ";", "i", "+", "+", ")", "if", "(", "in", "[", "i", "]", "<", "min", ")", "min", "=", "in", "[", "i", "]", ";", "return", "min", ";" ]
[ "returns", "the", "index", "of", "the", "maximum", "value", "in", "the", "array", "if", "two", "entries", "have", "same", "maximum", "value", "index", "of", "the", "first", "one", "is", "returned" ]
[ "int", "max", "idx", "=", "0", ";", "for", "(", "int", "i", "=", "1", ";", "i", "<", "in", "length", ";", "i", "+", "+", ")", "if", "(", "in", "[", "i", "]", ">", "in", "[", "max", "idx", "]", ")", "max", "idx", "=", "i", ";", "return", "max", "idx", ";" ]
[ "returns", "the", "index", "of", "the", "minimum", "value", "in", "the", "array", "if", "two", "entries", "have", "same", "minimum", "value", "index", "of", "the", "first", "one", "is", "returned" ]
[ "int", "min", "idx", "=", "0", ";", "for", "(", "int", "i", "=", "1", ";", "i", "<", "in", "length", ";", "i", "+", "+", ")", "if", "(", "in", "[", "i", "]", "<", "in", "[", "min", "idx", "]", ")", "min", "idx", "=", "i", ";", "return", "min", "idx", ";" ]
[ "returns", "the", "index", "of", "the", "maximum", "value", "in", "the", "array", "if", "two", "entries", "have", "same", "maximum", "value", "index", "of", "the", "first", "one", "is", "returned" ]
[ "int", "max", "idx", "=", "0", ";", "for", "(", "int", "i", "=", "1", ";", "i", "<", "in", "length", ";", "i", "+", "+", ")", "if", "(", "in", "[", "i", "]", ">", "in", "[", "max", "idx", "]", ")", "max", "idx", "=", "i", ";", "return", "max", "idx", ";" ]
[ "returns", "the", "index", "of", "the", "minimum", "value", "in", "the", "array", "if", "two", "entries", "have", "same", "minimum", "value", "index", "of", "the", "first", "one", "is", "returned" ]
[ "int", "min", "idx", "=", "0", ";", "for", "(", "int", "i", "=", "1", ";", "i", "<", "in", "length", ";", "i", "+", "+", ")", "if", "(", "in", "[", "i", "]", "<", "in", "[", "min", "idx", "]", ")", "min", "idx", "=", "i", ";", "return", "min", "idx", ";" ]
[ "convert", "an", "int" ]
[ "return", "bool", "?", "1", ":", "0", ";" ]
[ "add", "support", "for", "a", "new", "icon", "font" ]
[ "return", "new", "iconify", "initializer", "(", "icon", "font", "descriptor", ")", ";" ]
[ "replace", "{", "}", "tags", "in", "the", "given", "text", "views", "with", "actual", "icons", "requesting", "the", "icon", "font", "descriptors", "one", "after", "the", "others", "<", "p", ">", "<", "strong", ">", "this", "is", "a", "one", "time", "call", "<", "/", "strong", ">", "if", "you", "call", "{" ]
[ "for", "(", "text", "view", "text", "view", ":", "text", "views", ")", "{", "if", "(", "text", "view", "=", "=", "null", ")", "continue", ";", "text", "view", "set", "text", "(", "compute", "(", "text", "view", "get", "context", "(", ")", ",", "text", "view", "get", "text", "(", ")", ",", "text", "view", ")", ")", ";", "}" ]
[ "add", "support", "for", "a", "new", "icon", "font" ]
[ "iconify", "add", "icon", "font", "descriptor", "(", "icon", "font", "descriptor", ")", ";", "return", "this", ";" ]
[ "finds", "the", "typeface", "to", "apply", "for", "a", "given", "icon" ]
[ "for", "(", "icon", "font", "descriptor", "wrapper", "icon", "font", "descriptor", ":", "icon", "font", "descriptors", ")", "{", "if", "(", "icon", "font", "descriptor", "has", "icon", "(", "icon", ")", ")", "{", "return", "icon", "font", "descriptor", ";", "}", "}", "return", "null", ";" ]
[ "retrieve", "an", "icon", "from", "a", "key" ]
[ "for", "(", "int", "i", "=", "0", ",", "icon", "font", "descriptors", "size", "=", "icon", "font", "descriptors", "size", "(", ")", ";", "i", "<", "icon", "font", "descriptors", "size", ";", "i", "+", "+", ")", "{", "icon", "font", "descriptor", "wrapper", "icon", "font", "descriptor", "=", "icon", "font", "descriptors", "get", "(", "i", ")", ";", "icon", "icon", "=", "icon", "font", "descriptor", "get", "icon", "(", "icon", "key", ")", ";", "if", "(", "icon", "!", "=", "null", ")", "return", "icon", ";", "}", "return", "null", ";" ]
[ "adds", "a", "recorded", "value" ]
[ "update", "(", "(", "long", ")", "value", ")", ";" ]
[ "adds", "a", "recorded", "value" ]
[ "count", "increment", "(", ")", ";", "reservoir", "update", "(", "value", ")", ";" ]
[ "this", "is", "a", "javadoc", "comment" ]
[]
[ "returns", "a", "new", "{" ]
[ "return", "wrap", "(", "vk", "refresh", "cycle", "duration", "g", "o", "o", "g", "l", "e", "class", ",", "nmem", "alloc", "checked", "(", "sizeof", ")", ")", ";" ]
[ "returns", "a", "new", "{" ]
[ "return", "wrap", "(", "vk", "refresh", "cycle", "duration", "g", "o", "o", "g", "l", "e", "class", ",", "nmem", "calloc", "checked", "(", "1", ",", "sizeof", ")", ")", ";" ]
[ "returns", "a", "new", "{" ]
[ "byte", "buffer", "container", "=", "buffer", "utils", "create", "byte", "buffer", "(", "sizeof", ")", ";", "return", "wrap", "(", "vk", "refresh", "cycle", "duration", "g", "o", "o", "g", "l", "e", "class", ",", "mem", "address", "(", "container", ")", ",", "container", ")", ";" ]
[ "returns", "a", "new", "{" ]
[ "return", "wrap", "(", "vk", "refresh", "cycle", "duration", "g", "o", "o", "g", "l", "e", "class", ",", "address", ")", ";" ]
[ "like", "{" ]
[ "return", "address", "=", "=", "null", "?", "null", ":", "wrap", "(", "vk", "refresh", "cycle", "duration", "g", "o", "o", "g", "l", "e", "class", ",", "address", ")", ";" ]
[ "returns", "a", "new", "{", "@", "link", "vk", "refresh", "cycle", "duration", "g", "o", "o", "g", "l", "e", "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", "refresh", "cycle", "duration", "g", "o", "o", "g", "l", "e", "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", "refresh", "cycle", "duration", "g", "o", "o", "g", "l", "e", "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", "refresh", "cycle", "duration", "g", "o", "o", "g", "l", "e", "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", "refresh", "cycle", "duration", "g", "o", "o", "g", "l", "e", "}", "instance", "allocated", "on", "the", "specified", "{", "@", "link", "memory", "stack", "}" ]
[ "return", "wrap", "(", "vk", "refresh", "cycle", "duration", "g", "o", "o", "g", "l", "e", "class", ",", "stack", "nmalloc", "(", "alignof", ",", "sizeof", ")", ")", ";" ]
[ "returns", "a", "new", "{", "@", "link", "vk", "refresh", "cycle", "duration", "g", "o", "o", "g", "l", "e", "}", "instance", "allocated", "on", "the", "specified", "{", "@", "link", "memory", "stack", "}", "and", "initializes", "all", "its", "bits", "to", "zero" ]
[ "return", "wrap", "(", "vk", "refresh", "cycle", "duration", "g", "o", "o", "g", "l", "e", "class", ",", "stack", "ncalloc", "(", "alignof", ",", "1", ",", "sizeof", ")", ")", ";" ]
[ "returns", "a", "new", "{", "@", "link", "vk", "refresh", "cycle", "duration", "g", "o", "o", "g", "l", "e", "buffer", "}", "instance", "allocated", "on", "the", "thread", "-", "local", "{", "@", "link", "memory", "stack", "}" ]
[ "return", "malloc", "stack", "(", "capacity", ",", "stack", "get", "(", ")", ")", ";" ]
[ "returns", "a", "new", "{", "@", "link", "vk", "refresh", "cycle", "duration", "g", "o", "o", "g", "l", "e", "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", "refresh", "cycle", "duration", "g", "o", "o", "g", "l", "e", "buffer", "}", "instance", "allocated", "on", "the", "specified", "{", "@", "link", "memory", "stack", "}" ]
[ "return", "wrap", "(", "buffer", "class", ",", "stack", "nmalloc", "(", "alignof", ",", "capacity", "*", "sizeof", ")", ",", "capacity", ")", ";" ]
[ "returns", "a", "new", "{", "@", "link", "vk", "refresh", "cycle", "duration", "g", "o", "o", "g", "l", "e", "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", "long", "(", "null", ",", "struct", "+", "vk", "refresh", "cycle", "duration", "g", "o", "o", "g", "l", "e", "refreshduration", ")", ";" ]
[ "gets", "archive", "dates" ]
[ "final", "query", "query", "=", "new", "query", "(", ")", "add", "sort", "(", "archive", "date", "archive", "time", ",", "sort", "direction", "descending", ")", "set", "page", "count", "(", "1", ")", ";", "final", "list", "<", "j", "s", "o", "n", "object", ">", "ret", "=", "get", "list", "(", "query", ")", ";", "remove", "for", "unpublished", "articles", "(", "ret", ")", ";", "return", "ret", ";" ]
[ "removes", "archive", "dates", "of", "unpublished", "articles", "from", "the", "specified", "archive", "dates" ]
[ "final", "iterator", "<", "j", "s", "o", "n", "object", ">", "iterator", "=", "archive", "dates", "iterator", "(", ")", ";", "while", "(", "iterator", "has", "next", "(", ")", ")", "{", "final", "j", "s", "o", "n", "object", "archive", "date", "=", "iterator", "next", "(", ")", ";", "if", "(", "0", "=", "=", "archive", "date", "opt", "int", "(", "archive", "date", "archive", "date", "published", "article", "count", ")", ")", "{", "iterator", "remove", "(", ")", ";", "}", "}" ]
[ "<", "p", ">", "the", "status", "of", "the", "account", "gate", "function", "<", "/", "p", ">", "<", "ul", ">", "<", "li", ">", "<", "p", ">", "<", "code", ">", "succeeded", "<", "/", "code", ">", ":", "the", "account", "gate", "function", "has", "determined", "that", "the", "account", "and", "region", "passes", "any", "requirements", "for", "a", "stack", "set", "operation", "to", "occur", "aws", "cloud", "formation", "proceeds", "with", "the", "stack", "operation", "in", "that", "account", "and", "region", "<", "/", "p", ">", "<", "/", "li", ">", "<", "li", ">", "<", "p", ">", "<", "code", ">", "failed", "<", "/", "code", ">", ":", "the", "account", "gate", "function", "has", "determined", "that", "the", "account", "and", "region", "does", "not", "meet", "the", "requirements", "for", "a", "stack", "set", "operation", "to", "occur", "aws", "cloud", "formation", "cancels", "the", "stack", "set", "operation", "in", "that", "account", "and", "region", "and", "sets", "the", "stack", "set", "operation", "result", "status", "for", "that", "account", "and", "region", "to", "<", "code", ">", "failed", "<", "/", "code", ">", "<", "/", "p", ">", "<", "/", "li", ">", "<", "li", ">", "<", "p", ">", "<", "code", ">", "skipped", "<", "/", "code", ">", ":", "aws", "cloud", "formation", "has", "skipped", "calling", "the", "account", "gate", "function", "for", "this", "account", "and", "region", "for", "one", "of", "the", "following", "reasons", ":", "<", "/", "p", ">", "<", "ul", ">", "<", "li", ">", "<", "p", ">", "an", "account", "gate", "function", "has", "not", "been", "specified", "for", "the", "account", "and", "region", "aws", "cloud", "formation", "proceeds", "with", "the", "stack", "set", "operation", "in", "this", "account", "and", "region", "<", "/", "p", ">", "<", "/", "li", ">", "<", "li", ">", "<", "p", ">", "the", "<", "code", ">", "a", "w", "s", "cloud", "formation", "stack", "set", "execution", "role", "<", "/", "code", ">", "of", "the", "stack", "set", "adminstration", "account", "lacks", "permissions", "to", "invoke", "the", "function", "aws", "cloud", "formation", "proceeds", "with", "the", "stack", "set", "operation", "in", "this", "account", "and", "region", "<", "/", "p", ">", "<", "/", "li", ">", "<", "li", ">", "<", "p", ">", "either", "no", "action", "is", "necessary", "or", "no", "action", "is", "possible", "on", "the", "stack", "aws", "cloud", "formation", "skips", "the", "stack", "set", "operation", "in", "this", "account", "and", "region", "<", "/", "p", ">", "<", "/", "li", ">", "<", "/", "ul", ">", "<", "/", "li", ">", "<", "/", "ul", ">" ]
[ "set", "status", "(", "status", ")", ";", "return", "this", ";" ]
[ "<", "p", ">", "the", "status", "of", "the", "account", "gate", "function", "<", "/", "p", ">", "<", "ul", ">", "<", "li", ">", "<", "p", ">", "<", "code", ">", "succeeded", "<", "/", "code", ">", ":", "the", "account", "gate", "function", "has", "determined", "that", "the", "account", "and", "region", "passes", "any", "requirements", "for", "a", "stack", "set", "operation", "to", "occur", "aws", "cloud", "formation", "proceeds", "with", "the", "stack", "operation", "in", "that", "account", "and", "region", "<", "/", "p", ">", "<", "/", "li", ">", "<", "li", ">", "<", "p", ">", "<", "code", ">", "failed", "<", "/", "code", ">", ":", "the", "account", "gate", "function", "has", "determined", "that", "the", "account", "and", "region", "does", "not", "meet", "the", "requirements", "for", "a", "stack", "set", "operation", "to", "occur", "aws", "cloud", "formation", "cancels", "the", "stack", "set", "operation", "in", "that", "account", "and", "region", "and", "sets", "the", "stack", "set", "operation", "result", "status", "for", "that", "account", "and", "region", "to", "<", "code", ">", "failed", "<", "/", "code", ">", "<", "/", "p", ">", "<", "/", "li", ">", "<", "li", ">", "<", "p", ">", "<", "code", ">", "skipped", "<", "/", "code", ">", ":", "aws", "cloud", "formation", "has", "skipped", "calling", "the", "account", "gate", "function", "for", "this", "account", "and", "region", "for", "one", "of", "the", "following", "reasons", ":", "<", "/", "p", ">", "<", "ul", ">", "<", "li", ">", "<", "p", ">", "an", "account", "gate", "function", "has", "not", "been", "specified", "for", "the", "account", "and", "region", "aws", "cloud", "formation", "proceeds", "with", "the", "stack", "set", "operation", "in", "this", "account", "and", "region", "<", "/", "p", ">", "<", "/", "li", ">", "<", "li", ">", "<", "p", ">", "the", "<", "code", ">", "a", "w", "s", "cloud", "formation", "stack", "set", "execution", "role", "<", "/", "code", ">", "of", "the", "stack", "set", "adminstration", "account", "lacks", "permissions", "to", "invoke", "the", "function", "aws", "cloud", "formation", "proceeds", "with", "the", "stack", "set", "operation", "in", "this", "account", "and", "region", "<", "/", "p", ">", "<", "/", "li", ">", "<", "li", ">", "<", "p", ">", "either", "no", "action", "is", "necessary", "or", "no", "action", "is", "possible", "on", "the", "stack", "aws", "cloud", "formation", "skips", "the", "stack", "set", "operation", "in", "this", "account", "and", "region", "<", "/", "p", ">", "<", "/", "li", ">", "<", "/", "ul", ">", "<", "/", "li", ">", "<", "/", "ul", ">" ]
[ "with", "status", "(", "status", ")", ";" ]
[ "<", "p", ">", "the", "status", "of", "the", "account", "gate", "function", "<", "/", "p", ">", "<", "ul", ">", "<", "li", ">", "<", "p", ">", "<", "code", ">", "succeeded", "<", "/", "code", ">", ":", "the", "account", "gate", "function", "has", "determined", "that", "the", "account", "and", "region", "passes", "any", "requirements", "for", "a", "stack", "set", "operation", "to", "occur", "aws", "cloud", "formation", "proceeds", "with", "the", "stack", "operation", "in", "that", "account", "and", "region", "<", "/", "p", ">", "<", "/", "li", ">", "<", "li", ">", "<", "p", ">", "<", "code", ">", "failed", "<", "/", "code", ">", ":", "the", "account", "gate", "function", "has", "determined", "that", "the", "account", "and", "region", "does", "not", "meet", "the", "requirements", "for", "a", "stack", "set", "operation", "to", "occur", "aws", "cloud", "formation", "cancels", "the", "stack", "set", "operation", "in", "that", "account", "and", "region", "and", "sets", "the", "stack", "set", "operation", "result", "status", "for", "that", "account", "and", "region", "to", "<", "code", ">", "failed", "<", "/", "code", ">", "<", "/", "p", ">", "<", "/", "li", ">", "<", "li", ">", "<", "p", ">", "<", "code", ">", "skipped", "<", "/", "code", ">", ":", "aws", "cloud", "formation", "has", "skipped", "calling", "the", "account", "gate", "function", "for", "this", "account", "and", "region", "for", "one", "of", "the", "following", "reasons", ":", "<", "/", "p", ">", "<", "ul", ">", "<", "li", ">", "<", "p", ">", "an", "account", "gate", "function", "has", "not", "been", "specified", "for", "the", "account", "and", "region", "aws", "cloud", "formation", "proceeds", "with", "the", "stack", "set", "operation", "in", "this", "account", "and", "region", "<", "/", "p", ">", "<", "/", "li", ">", "<", "li", ">", "<", "p", ">", "the", "<", "code", ">", "a", "w", "s", "cloud", "formation", "stack", "set", "execution", "role", "<", "/", "code", ">", "of", "the", "stack", "set", "adminstration", "account", "lacks", "permissions", "to", "invoke", "the", "function", "aws", "cloud", "formation", "proceeds", "with", "the", "stack", "set", "operation", "in", "this", "account", "and", "region", "<", "/", "p", ">", "<", "/", "li", ">", "<", "li", ">", "<", "p", ">", "either", "no", "action", "is", "necessary", "or", "no", "action", "is", "possible", "on", "the", "stack", "aws", "cloud", "formation", "skips", "the", "stack", "set", "operation", "in", "this", "account", "and", "region", "<", "/", "p", ">", "<", "/", "li", ">", "<", "/", "ul", ">", "<", "/", "li", ">", "<", "/", "ul", ">" ]
[ "this", "status", "=", "status", "to", "string", "(", ")", ";", "return", "this", ";" ]
[ "<", "p", ">", "the", "reason", "for", "the", "account", "gate", "status", "assigned", "to", "this", "account", "and", "region", "for", "the", "stack", "set", "operation", "<", "/", "p", ">" ]
[ "set", "status", "reason", "(", "status", "reason", ")", ";", "return", "this", ";" ]
[ "specify", "the", "default", "session", "id", "to", "use", "for", "each", "request" ]
[ "return", "new", "session", "config", "(", "session", "id", "name", ",", "default", "session", "id", ",", "true", ")", ";" ]
[ "set", "the", "session", "id", "name", "this", "is", "the", "name", "of", "the", "cookie", "that", "contains", "the", "session", "id", "by", "default", "it", "s", "{", "@", "value", "#", "default", "session", "id", "name", "}" ]
[ "return", "new", "session", "config", "(", "session", "id", "name", ",", "session", "id", "value", ",", "true", ")", ";" ]
[ "syntactic", "sugar" ]
[ "return", "this", ";" ]
[ "creates", "a", "new", "{" ]
[ "final", "object", "mapper", "mapper", "=", "new", "object", "mapper", "(", ")", ";", "return", "configure", "(", "mapper", ")", ";" ]
[ "creates", "a", "new", "{", "@", "link", "object", "mapper", "}", "with", "a", "custom", "{", "@", "link", "com", "fasterxml", "jackson", "core", "json", "factory", "}", "with", "guava", "logback", "and", "joda", "time", "support", "as", "well", "as", "support", "for", "{", "@", "link", "json", "snake", "case", "}", "also", "includes", "all", "{", "@", "link", "discoverable", "}", "interface", "implementations" ]
[ "final", "object", "mapper", "mapper", "=", "new", "object", "mapper", "(", "json", "factory", ")", ";", "return", "configure", "(", "mapper", ")", ";" ]