docstring_tokens
list
code_tokens
list
[ "asks", "the", "menu", "bar", "to", "update", "itself" ]
[ "m", "action", "save", "set", "enabled", "(", "m", "model", "get", "graph", "(", ")", "get", "raw", "view", "(", ")", "get", "type", "(", ")", "=", "=", "view", "type", "non", "native", ")", ";" ]
[ "sets", "the", "distribution", "to", "be", "used", "to", "generate", "the", "sizes", "of", "communities" ]
[ "this", "community", "size", "=", "community", ";" ]
[ "sets", "the", "distribution", "to", "be", "used", "to", "generate", "the", "out", "-", "degrees", "of", "vertices" ]
[ "this", "edge", "degree", "=", "degree", ";" ]
[ "returns", "the", "configured", "cross", "community", "percentage" ]
[ "return", "cross", "community", "percentage", ";" ]
[ "generates", "a", "synthetic", "network", "for", "all", "vertices", "in", "the", "given", "graph", "such", "that", "the", "provided", "expected", "number", "of", "communities", "are", "generated", "with", "the", "specified", "expected", "number", "of", "edges" ]
[ "return", "generate", "(", "graph", ",", "graph", "get", "vertices", "(", ")", ",", "expected", "num", "communities", ",", "expected", "num", "edges", ")", ";" ]
[ "{" ]
[ "recent", "file", "list", "clear", "(", ")", ";" ]
[ "is", "admin", "allowed", "to", "map", "this", "role", "?" ]
[ "if", "(", "root", "users", "(", ")", "can", "manage", "default", "(", ")", ")", "return", "check", "admin", "roles", "(", "role", ")", ";", "if", "(", "!", "root", "is", "admin", "same", "realm", "(", ")", ")", "{", "return", "false", ";", "}", "if", "(", "role", "get", "container", "(", ")", "instanceof", "client", "model", ")", "{", "if", "(", "root", "clients", "(", ")", "can", "map", "roles", "(", "(", "client", "model", ")", "role", "get", "container", "(", ")", ")", ")", "return", "true", ";", "}", "if", "(", "!", "is", "permissions", "enabled", "(", "role", ")", ")", "{", "return", "false", ";", "}", "resource", "server", "resource", "server", "=", "resource", "server", "(", "role", ")", ";", "if", "(", "resource", "server", "=", "=", "null", ")", "return", "false", ";", "policy", "policy", "=", "authz", "get", "store", "factory", "(", ")", "get", "policy", "store", "(", ")", "find", "by", "name", "(", "get", "map", "role", "permission", "name", "(", "role", ")", ",", "resource", "server", "get", "id", "(", ")", ")", ";", "if", "(", "policy", "=", "=", "null", "|", "|", "policy", "get", "associated", "policies", "(", ")", "is", "empty", "(", ")", ")", "{", "return", "false", ";", "}", "resource", "role", "resource", "=", "resource", "(", "role", ")", ";", "scope", "map", "role", "scope", "=", "map", "role", "scope", "(", "resource", "server", ")", ";", "if", "(", "root", "evaluate", "permission", "(", "role", "resource", ",", "resource", "server", ",", "map", "role", "scope", ")", ")", "{", "return", "check", "admin", "roles", "(", "role", ")", ";", "}", "else", "{", "return", "false", ";", "}" ]
[ "exposes", "the", "exporter", "s", "service", "interface", "if", "any", "as", "target", "interface" ]
[ "class", "<", "?", ">", "ifc", "=", "this", "rmi", "exporter", "get", "service", "interface", "(", ")", ";", "return", "(", "ifc", "!", "=", "null", "?", "ifc", "get", "name", "(", ")", ":", "null", ")", ";" ]
[ "delegates", "the", "actual", "invocation", "handling", "to", "the", "rmi", "exporter" ]
[ "return", "this", "rmi", "exporter", "invoke", "(", "invocation", ",", "this", "wrapped", "object", ")", ";" ]
[ "wrap", "a", "regular", "{" ]
[ "return", "new", "hierarchy", "tree", "change", "listener", "(", "delegate", ")", ";" ]
[ "set", "up", "for", "test" ]
[ "mockito", "annotations", "init", "mocks", "(", "this", ")", ";", "when", "(", "frame", "writer", "max", "data", "length", "(", ")", ")", "then", "return", "(", "integer", "max", "value", ")", ";", "frame", "reader", "=", "new", "mock", "frame", "reader", "(", ")", ";" ]
[ "when", "next", "frame", "throws", "i", "o", "exception", "the", "transport", "should", "be", "aborted" ]
[ "init", "transport", "(", ")", ";", "mock", "stream", "listener", "listener", "1", "=", "new", "mock", "stream", "listener", "(", ")", ";", "mock", "stream", "listener", "listener", "2", "=", "new", "mock", "stream", "listener", "(", ")", ";", "ok", "http", "client", "stream", "stream", "1", "=", "client", "transport", "new", "stream", "(", "method", ",", "new", "metadata", "(", ")", ",", "call", "options", "default", ")", ";", "stream", "1", "start", "(", "listener", "1", ")", ";", "stream", "1", "request", "(", "1", ")", ";", "ok", "http", "client", "stream", "stream", "2", "=", "client", "transport", "new", "stream", "(", "method", ",", "new", "metadata", "(", ")", ",", "call", "options", "default", ")", ";", "stream", "2", "start", "(", "listener", "2", ")", ";", "stream", "2", "request", "(", "1", ")", ";", "assert", "equals", "(", "2", ",", "active", "stream", "count", "(", ")", ")", ";", "assert", "contain", "stream", "(", "3", ")", ";", "assert", "contain", "stream", "(", "5", ")", ";", "frame", "reader", "throw", "io", "exception", "for", "next", "frame", "(", ")", ";", "listener", "1", "wait", "until", "stream", "closed", "(", ")", ";", "listener", "2", "wait", "until", "stream", "closed", "(", ")", ";", "assert", "equals", "(", "0", ",", "active", "stream", "count", "(", ")", ")", ";", "assert", "equals", "(", "status", "unavailable", "get", "code", "(", ")", ",", "listener", "1", "status", "get", "code", "(", ")", ")", ";", "assert", "equals", "(", "network", "issue", "message", ",", "listener", "1", "status", "get", "cause", "(", ")", "get", "message", "(", ")", ")", ";", "assert", "equals", "(", "status", "unavailable", "get", "code", "(", ")", ",", "listener", "2", "status", "get", "code", "(", ")", ")", ";", "assert", "equals", "(", "network", "issue", "message", ",", "listener", "2", "status", "get", "cause", "(", ")", "get", "message", "(", ")", ")", ";", "verify", "(", "transport", "listener", ",", "timeout", "(", "time", "out", "ms", ")", ")", "transport", "shutdown", "(", "is", "a", "(", "status", "class", ")", ")", ";", "verify", "(", "transport", "listener", ",", "timeout", "(", "time", "out", "ms", ")", ")", "transport", "terminated", "(", ")", ";", "shutdown", "and", "verify", "(", ")", ";" ]
[ "test", "that", "even", "if", "an", "error", "is", "thrown", "from", "the", "reading", "loop", "of", "the", "transport", "it", "can", "still", "clean", "up", "and", "call", "transport", "shutdown", "(", ")", "and", "transport", "terminated", "(", ")", "as", "expected", "by", "the", "channel" ]
[ "init", "transport", "(", ")", ";", "mock", "stream", "listener", "listener", "=", "new", "mock", "stream", "listener", "(", ")", ";", "ok", "http", "client", "stream", "stream", "=", "client", "transport", "new", "stream", "(", "method", ",", "new", "metadata", "(", ")", ",", "call", "options", "default", ")", ";", "stream", "start", "(", "listener", ")", ";", "stream", "request", "(", "1", ")", ";", "assert", "equals", "(", "1", ",", "active", "stream", "count", "(", ")", ")", ";", "assert", "contain", "stream", "(", "3", ")", ";", "frame", "reader", "throw", "error", "for", "next", "frame", "(", ")", ";", "listener", "wait", "until", "stream", "closed", "(", ")", ";", "assert", "equals", "(", "0", ",", "active", "stream", "count", "(", ")", ")", ";", "assert", "equals", "(", "status", "unavailable", "get", "code", "(", ")", ",", "listener", "status", "get", "code", "(", ")", ")", ";", "assert", "equals", "(", "error", "message", ",", "listener", "status", "get", "cause", "(", ")", "get", "message", "(", ")", ")", ";", "verify", "(", "transport", "listener", ",", "timeout", "(", "time", "out", "ms", ")", ")", "transport", "shutdown", "(", "is", "a", "(", "status", "class", ")", ")", ";", "verify", "(", "transport", "listener", ",", "timeout", "(", "time", "out", "ms", ")", ")", "transport", "terminated", "(", ")", ";", "shutdown", "and", "verify", "(", ")", ";" ]
[ "{" ]
[ "for", "(", "int", "i", "=", "0", ";", "i", "<", "num", "buckets", ";", "i", "+", "+", ")", "{", "int", "idx", "curr", "=", "(", "idx", "start", "+", "i", ")", "%", "num", "buckets", ";", "if", "(", "is", "empty", "at", "(", "idx", "curr", ")", ")", "continue", ";", "long", "base", "=", "entry", "base", "(", "idx", "curr", ")", ";", "return", "new", "replace", "candidate", "(", "get", "version", "(", "base", ")", ",", "get", "value", "(", "base", ")", ",", "get", "full", "page", "id", "(", "base", ")", ")", ";", "}", "return", "null", ";" ]
[ "{" ]
[ "return", "num", "buckets", ";" ]
[ "sets", "cell", "value", "to", "be", "empty" ]
[ "set", "page", "id", "(", "addr", ",", "empty", "page", "id", ")", ";", "set", "grp", "id", "(", "addr", ",", "empty", "cache", "grp", "id", ")", ";", "set", "value", "(", "addr", ",", "0", ")", ";", "set", "ideal", "bucket", "(", "addr", ",", "0", ")", ";", "set", "version", "(", "addr", ",", "0", ")", ";" ]
[ "{" ]
[ "return", "grid", "unsafe", "get", "int", "(", "base", "addr", "+", "mapsize", "offset", ")", ";" ]
[ "changes", "collection", "size" ]
[ "put", "int", "(", "base", "addr", "+", "mapsize", "offset", ",", "sz", ")", ";" ]
[ "{" ]
[ "for", "(", "int", "i", "=", "0", ";", "i", "<", "num", "buckets", ";", "i", "+", "+", ")", "{", "if", "(", "is", "empty", "at", "(", "i", ")", ")", "continue", ";", "long", "base", "=", "entry", "base", "(", "i", ")", ";", "act", "accept", "(", "get", "full", "page", "id", "(", "base", ")", ",", "get", "value", "(", "base", ")", ")", ";", "}" ]
[ "{" ]
[ "return", "new", "person", "(", "i", ",", "long", "to", "string", "(", "i", ")", ",", "long", "to", "string", "(", "i", ")", ",", "(", "short", ")", "(", "i", "%", "100", ")", ",", "i", "%", "2", "=", "=", "0", ",", "i", ",", "i", ",", "date", ",", "phones", ")", ";" ]
[ "parses", "the", "specified", "string", "as", "a", "signed", "decimal", "integer", "value", "the", "ascii", "character", "{", "@", "code", "-", "}", "(", "<", "code", ">", "&", "#", "92", ";", "u", "0", "0", "2", "d", "<", "/", "code", ">", ")", "is", "recognized", "as", "the", "minus", "sign" ]
[ "return", "try", "parse", "(", "string", ",", "10", ")", ";" ]
[ "parses", "the", "specified", "string", "as", "a", "signed", "integer", "value", "using", "the", "specified", "radix", "the", "ascii", "character", "{", "@", "code", "-", "}", "(", "<", "code", ">", "&", "#", "92", ";", "u", "0", "0", "2", "d", "<", "/", "code", ">", ")", "is", "recognized", "as", "the", "minus", "sign" ]
[ "long", "result", "=", "longs", "try", "parse", "(", "string", ",", "radix", ")", ";", "if", "(", "result", "=", "=", "null", "|", "|", "result", "long", "value", "(", ")", "!", "=", "result", "int", "value", "(", ")", ")", "{", "return", "null", ";", "}", "else", "{", "return", "result", "int", "value", "(", ")", ";", "}" ]
[ "generates", "a", "{", "@", "link", "clob", "}", "proxy", "using", "the", "string", "data" ]
[ "return", "(", "clob", ")", "proxy", "new", "proxy", "instance", "(", "get", "proxy", "class", "loader", "(", ")", ",", "proxy", "interfaces", ",", "new", "clob", "proxy", "(", "string", ")", ")", ";" ]
[ "generates", "a", "{", "@", "link", "clob", "}", "proxy", "using", "a", "character", "reader", "of", "given", "length" ]
[ "return", "(", "clob", ")", "proxy", "new", "proxy", "instance", "(", "get", "proxy", "class", "loader", "(", ")", ",", "proxy", "interfaces", ",", "new", "clob", "proxy", "(", "reader", ",", "length", ")", ")", ";" ]
[ "determines", "the", "appropriate", "class", "loader", "to", "which", "the", "generated", "proxy", "should", "be", "scoped" ]
[ "return", "clob", "implementer", "class", "get", "class", "loader", "(", ")", ";" ]
[ "initializes", "appender" ]
[ "grid", "test", "log", "4j", "logger", "add", "appender", "(", "this", ")", ";" ]
[ "{" ]
[ "return", "node", "id", ";" ]
[ "{" ]
[ "if", "(", "node", "id", "!", "=", "null", ")", "super", "set", "file", "(", "file", "name", ",", "file", "append", ",", "buf", "i", "o", ",", "buf", "size", ")", ";" ]
[ "returns", "the", "{", "@", "link", "token", "type", "token", "type", "}" ]
[ "return", "this", "token", "type", ";" ]
[ "tests", "the", "{" ]
[ "assert", "equals", "(", "new", "blocks", ",", "m", "info", "get", "blocks", "(", ")", ")", ";", "assert", "equals", "(", "total", "bytes", "on", "tiers", ",", "m", "info", "get", "total", "bytes", "on", "tiers", "(", ")", ")", ";", "assert", "equals", "(", "constants", "kb", "*", "6l", ",", "m", "info", "get", "capacity", "bytes", "(", ")", ")", ";", "assert", "equals", "(", "used", "bytes", "on", "tiers", ",", "m", "info", "get", "used", "bytes", "on", "tiers", "(", ")", ")", ";", "assert", "equals", "(", "constants", "kb", "*", "2l", ",", "m", "info", "get", "used", "bytes", "(", ")", ")", ";" ]
[ "tests", "that", "re", "-", "registering", "via", "{" ]
[ "set", "<", "long", ">", "new", "blocks", "=", "sets", "new", "hash", "set", "(", "3l", ")", ";", "set", "<", "long", ">", "removed", "blocks", "=", "m", "info", "register", "(", "global", "storage", "tier", "assoc", ",", "storage", "tier", "aliases", ",", "total", "bytes", "on", "tiers", ",", "used", "bytes", "on", "tiers", ",", "new", "blocks", ")", ";", "assert", "equals", "(", "new", "blocks", ",", "removed", "blocks", ")", ";", "assert", "equals", "(", "new", "blocks", ",", "m", "info", "get", "blocks", "(", ")", ")", ";" ]
[ "test", "method", "for", "{" ]
[ "bytes", "ref", "builder", "ref", "=", "new", "bytes", "ref", "builder", "(", ")", ";", "int", "num", "=", "at", "least", "(", "2", ")", ";", "for", "(", "int", "j", "=", "0", ";", "j", "<", "num", ";", "j", "+", "+", ")", "{", "final", "int", "mod", "=", "1", "+", "random", "(", ")", "next", "int", "(", "39", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "797", ";", "i", "+", "+", ")", "{", "string", "str", ";", "do", "{", "str", "=", "test", "util", "random", "realistic", "unicode", "string", "(", "random", "(", ")", ",", "1000", ")", ";", "}", "while", "(", "str", "length", "(", ")", "=", "=", "0", ")", ";", "ref", "copy", "chars", "(", "str", ")", ";", "int", "count", "=", "hash", "size", "(", ")", ";", "int", "key", "=", "hash", "add", "(", "ref", "get", "(", ")", ")", ";", "if", "(", "key", "<", "0", ")", "assert", "equals", "(", "hash", "size", "(", ")", ",", "count", ")", ";", "else", "assert", "equals", "(", "hash", "size", "(", ")", ",", "count", "+", "1", ")", ";", "if", "(", "i", "%", "mod", "=", "=", "0", ")", "{", "hash", "clear", "(", ")", ";", "assert", "equals", "(", "0", ",", "hash", "size", "(", ")", ")", ";", "hash", "reinit", "(", ")", ";", "}", "}", "}" ]
[ "test", "method", "for", "{" ]
[ "bytes", "ref", "builder", "ref", "=", "new", "bytes", "ref", "builder", "(", ")", ";", "bytes", "ref", "scratch", "=", "new", "bytes", "ref", "(", ")", ";", "int", "num", "=", "at", "least", "(", "2", ")", ";", "for", "(", "int", "j", "=", "0", ";", "j", "<", "num", ";", "j", "+", "+", ")", "{", "map", "<", "string", ",", "integer", ">", "strings", "=", "new", "hash", "map", "<", ">", "(", ")", ";", "int", "unique", "count", "=", "0", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "797", ";", "i", "+", "+", ")", "{", "string", "str", ";", "do", "{", "str", "=", "test", "util", "random", "realistic", "unicode", "string", "(", "random", "(", ")", ",", "1000", ")", ";", "}", "while", "(", "str", "length", "(", ")", "=", "=", "0", ")", ";", "ref", "copy", "chars", "(", "str", ")", ";", "int", "count", "=", "hash", "size", "(", ")", ";", "int", "key", "=", "hash", "add", "(", "ref", "get", "(", ")", ")", ";", "if", "(", "key", ">", "=", "0", ")", "{", "assert", "null", "(", "strings", "put", "(", "str", ",", "integer", "value", "of", "(", "key", ")", ")", ")", ";", "assert", "equals", "(", "unique", "count", ",", "key", ")", ";", "unique", "count", "+", "+", ";", "assert", "equals", "(", "hash", "size", "(", ")", ",", "count", "+", "1", ")", ";", "}", "else", "{", "assert", "true", "(", "(", "-", "key", ")", "-", "1", "<", "count", ")", ";", "assert", "equals", "(", "hash", "size", "(", ")", ",", "count", ")", ";", "}", "}", "for", "(", "entry", "<", "string", ",", "integer", ">", "entry", ":", "strings", "entry", "set", "(", ")", ")", "{", "ref", "copy", "chars", "(", "entry", "get", "key", "(", ")", ")", ";", "assert", "equals", "(", "ref", "get", "(", ")", ",", "hash", "get", "(", "entry", "get", "value", "(", ")", "int", "value", "(", ")", ",", "scratch", ")", ")", ";", "}", "hash", "clear", "(", ")", ";", "assert", "equals", "(", "0", ",", "hash", "size", "(", ")", ")", ";", "hash", "reinit", "(", ")", ";", "}" ]
[ "test", "method", "for", "{" ]
[ "bytes", "ref", "builder", "ref", "=", "new", "bytes", "ref", "builder", "(", ")", ";", "int", "num", "=", "at", "least", "(", "2", ")", ";", "for", "(", "int", "j", "=", "0", ";", "j", "<", "num", ";", "j", "+", "+", ")", "{", "int", "num", "entries", "=", "0", ";", "final", "int", "size", "=", "797", ";", "bit", "set", "bits", "=", "new", "bit", "set", "(", "size", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "size", ";", "i", "+", "+", ")", "{", "string", "str", ";", "do", "{", "str", "=", "test", "util", "random", "realistic", "unicode", "string", "(", "random", "(", ")", ",", "1000", ")", ";", "}", "while", "(", "str", "length", "(", ")", "=", "=", "0", ")", ";", "ref", "copy", "chars", "(", "str", ")", ";", "final", "int", "key", "=", "hash", "add", "(", "ref", "get", "(", ")", ")", ";", "if", "(", "key", "<", "0", ")", "{", "assert", "true", "(", "bits", "get", "(", "(", "-", "key", ")", "-", "1", ")", ")", ";", "}", "else", "{", "assert", "false", "(", "bits", "get", "(", "key", ")", ")", ";", "bits", "set", "(", "key", ")", ";", "num", "entries", "+", "+", ";", "}", "}", "assert", "equals", "(", "hash", "size", "(", ")", ",", "bits", "cardinality", "(", ")", ")", ";", "assert", "equals", "(", "num", "entries", ",", "bits", "cardinality", "(", ")", ")", ";", "assert", "equals", "(", "num", "entries", ",", "hash", "size", "(", ")", ")", ";", "int", "[", "]", "compact", "=", "hash", "compact", "(", ")", ";", "assert", "true", "(", "num", "entries", "<", "compact", "length", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "num", "entries", ";", "i", "+", "+", ")", "{", "bits", "set", "(", "compact", "[", "i", "]", ",", "false", ")", ";", "}", "assert", "equals", "(", "0", ",", "bits", "cardinality", "(", ")", ")", ";", "hash", "clear", "(", ")", ";", "assert", "equals", "(", "0", ",", "hash", "size", "(", ")", ")", ";", "hash", "reinit", "(", ")", ";", "}" ]
[ "test", "method", "for", "{" ]
[ "bytes", "ref", "builder", "ref", "=", "new", "bytes", "ref", "builder", "(", ")", ";", "bytes", "ref", "scratch", "=", "new", "bytes", "ref", "(", ")", ";", "int", "num", "=", "at", "least", "(", "2", ")", ";", "for", "(", "int", "j", "=", "0", ";", "j", "<", "num", ";", "j", "+", "+", ")", "{", "set", "<", "string", ">", "strings", "=", "new", "hash", "set", "<", ">", "(", ")", ";", "int", "unique", "count", "=", "0", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "797", ";", "i", "+", "+", ")", "{", "string", "str", ";", "do", "{", "str", "=", "test", "util", "random", "realistic", "unicode", "string", "(", "random", "(", ")", ",", "1000", ")", ";", "}", "while", "(", "str", "length", "(", ")", "=", "=", "0", ")", ";", "ref", "copy", "chars", "(", "str", ")", ";", "int", "count", "=", "hash", "size", "(", ")", ";", "int", "key", "=", "hash", "add", "(", "ref", "get", "(", ")", ")", ";", "if", "(", "key", ">", "=", "0", ")", "{", "assert", "true", "(", "strings", "add", "(", "str", ")", ")", ";", "assert", "equals", "(", "unique", "count", ",", "key", ")", ";", "assert", "equals", "(", "hash", "size", "(", ")", ",", "count", "+", "1", ")", ";", "unique", "count", "+", "+", ";", "}", "else", "{", "assert", "false", "(", "strings", "add", "(", "str", ")", ")", ";", "assert", "true", "(", "(", "-", "key", ")", "-", "1", "<", "count", ")", ";", "assert", "equals", "(", "str", ",", "hash", "get", "(", "(", "-", "key", ")", "-", "1", ",", "scratch", ")", "utf", "8", "to", "string", "(", ")", ")", ";", "assert", "equals", "(", "count", ",", "hash", "size", "(", ")", ")", ";", "}", "}", "assert", "all", "in", "(", "strings", ",", "hash", ")", ";", "hash", "clear", "(", ")", ";", "assert", "equals", "(", "0", ",", "hash", "size", "(", ")", ")", ";", "hash", "reinit", "(", ")", ";", "}" ]
[ "<", "p", ">", "information", "about", "the", "on", "-", "premises", "instances", "<", "/", "p", ">" ]
[ "if", "(", "instance", "infos", "=", "=", "null", ")", "{", "instance", "infos", "=", "new", "com", "amazonaws", "internal", "sdk", "internal", "list", "<", "instance", "info", ">", "(", ")", ";", "}", "return", "instance", "infos", ";" ]
[ "<", "p", ">", "information", "about", "the", "on", "-", "premises", "instances", "<", "/", "p", ">" ]
[ "if", "(", "instance", "infos", "=", "=", "null", ")", "{", "this", "instance", "infos", "=", "null", ";", "return", ";", "}", "this", "instance", "infos", "=", "new", "com", "amazonaws", "internal", "sdk", "internal", "list", "<", "instance", "info", ">", "(", "instance", "infos", ")", ";" ]
[ "<", "p", ">", "information", "about", "the", "on", "-", "premises", "instances", "<", "/", "p", ">", "<", "p", ">", "<", "b", ">", "note", ":", "<", "/", "b", ">", "this", "method", "appends", "the", "values", "to", "the", "existing", "list", "(", "if", "any", ")", "use", "{", "@", "link", "#", "set", "instance", "infos", "(", "java", "util", "collection", ")", "}", "or", "{", "@", "link", "#", "with", "instance", "infos", "(", "java", "util", "collection", ")", "}", "if", "you", "want", "to", "override", "the", "existing", "values", "<", "/", "p", ">" ]
[ "if", "(", "this", "instance", "infos", "=", "=", "null", ")", "{", "set", "instance", "infos", "(", "new", "com", "amazonaws", "internal", "sdk", "internal", "list", "<", "instance", "info", ">", "(", "instance", "infos", "length", ")", ")", ";", "}", "for", "(", "instance", "info", "ele", ":", "instance", "infos", ")", "{", "this", "instance", "infos", "add", "(", "ele", ")", ";", "}", "return", "this", ";" ]
[ "<", "p", ">", "information", "about", "the", "on", "-", "premises", "instances", "<", "/", "p", ">" ]
[ "set", "instance", "infos", "(", "instance", "infos", ")", ";", "return", "this", ";" ]
[ "unsafe", "version", "of", ":", "{" ]
[ "long", "function", "address", "=", "device", "get", "capabilities", "(", ")", "vk", "create", "swapchain", "k", "h", "r", ";", "if", "(", "checks", ")", "{", "check", "(", "function", "address", ")", ";", "vk", "swapchain", "create", "info", "k", "h", "r", "validate", "(", "p", "create", "info", ")", ";", "if", "(", "p", "allocator", "!", "=", "null", ")", "{", "vk", "allocation", "callbacks", "validate", "(", "p", "allocator", ")", ";", "}", "}", "return", "call", "p", "p", "p", "p", "i", "(", "function", "address", ",", "device", "address", "(", ")", ",", "p", "create", "info", ",", "p", "allocator", ",", "p", "swapchain", ")", ";" ]
[ "unsafe", "version", "of", ":", "{" ]
[ "long", "function", "address", "=", "device", "get", "capabilities", "(", ")", "vk", "destroy", "swapchain", "k", "h", "r", ";", "if", "(", "checks", ")", "{", "check", "(", "function", "address", ")", ";", "if", "(", "p", "allocator", "!", "=", "null", ")", "{", "vk", "allocation", "callbacks", "validate", "(", "p", "allocator", ")", ";", "}", "}", "call", "p", "j", "p", "v", "(", "function", "address", ",", "device", "address", "(", ")", ",", "swapchain", ",", "p", "allocator", ")", ";" ]
[ "unsafe", "version", "of", ":", "{", "@", "link", "#", "vk", "get", "swapchain", "images", "k", "h", "r", "get", "swapchain", "images", "k", "h", "r", "}" ]
[ "long", "function", "address", "=", "device", "get", "capabilities", "(", ")", "vk", "get", "swapchain", "images", "k", "h", "r", ";", "if", "(", "checks", ")", "{", "check", "(", "function", "address", ")", ";", "}", "return", "call", "p", "j", "p", "p", "i", "(", "function", "address", ",", "device", "address", "(", ")", ",", "swapchain", ",", "p", "swapchain", "image", "count", ",", "p", "swapchain", "images", ")", ";" ]
[ "unsafe", "version", "of", ":", "{" ]
[ "long", "function", "address", "=", "device", "get", "capabilities", "(", ")", "vk", "acquire", "next", "image", "k", "h", "r", ";", "if", "(", "checks", ")", "{", "check", "(", "function", "address", ")", ";", "}", "return", "call", "p", "j", "j", "j", "j", "p", "i", "(", "function", "address", ",", "device", "address", "(", ")", ",", "swapchain", ",", "timeout", ",", "semaphore", ",", "fence", ",", "p", "image", "index", ")", ";" ]
[ "unsafe", "version", "of", ":", "{" ]
[ "long", "function", "address", "=", "queue", "get", "capabilities", "(", ")", "vk", "queue", "present", "k", "h", "r", ";", "if", "(", "checks", ")", "{", "check", "(", "function", "address", ")", ";", "vk", "present", "info", "k", "h", "r", "validate", "(", "p", "present", "info", ")", ";", "}", "return", "call", "p", "p", "i", "(", "function", "address", ",", "queue", "address", "(", ")", ",", "p", "present", "info", ")", ";" ]
[ "unsafe", "version", "of", ":", "{" ]
[ "long", "function", "address", "=", "device", "get", "capabilities", "(", ")", "vk", "get", "device", "group", "present", "capabilities", "k", "h", "r", ";", "if", "(", "checks", ")", "{", "check", "(", "function", "address", ")", ";", "}", "return", "call", "p", "p", "i", "(", "function", "address", ",", "device", "address", "(", ")", ",", "p", "device", "group", "present", "capabilities", ")", ";" ]
[ "unsafe", "version", "of", ":", "{" ]
[ "long", "function", "address", "=", "device", "get", "capabilities", "(", ")", "vk", "get", "device", "group", "surface", "present", "modes", "k", "h", "r", ";", "if", "(", "checks", ")", "{", "check", "(", "function", "address", ")", ";", "}", "return", "call", "p", "j", "p", "i", "(", "function", "address", ",", "device", "address", "(", ")", ",", "surface", ",", "p", "modes", ")", ";" ]
[ "unsafe", "version", "of", ":", "{", "@", "link", "#", "vk", "get", "physical", "device", "present", "rectangles", "k", "h", "r", "get", "physical", "device", "present", "rectangles", "k", "h", "r", "}" ]
[ "long", "function", "address", "=", "physical", "device", "get", "capabilities", "(", ")", "vk", "get", "physical", "device", "present", "rectangles", "k", "h", "r", ";", "if", "(", "checks", ")", "{", "check", "(", "function", "address", ")", ";", "}", "return", "call", "p", "j", "p", "p", "i", "(", "function", "address", ",", "physical", "device", "address", "(", ")", ",", "surface", ",", "p", "rect", "count", ",", "p", "rects", ")", ";" ]
[ "unsafe", "version", "of", ":", "{" ]
[ "long", "function", "address", "=", "device", "get", "capabilities", "(", ")", "vk", "acquire", "next", "image", "2", "k", "h", "r", ";", "if", "(", "checks", ")", "{", "check", "(", "function", "address", ")", ";", "}", "return", "call", "p", "p", "p", "i", "(", "function", "address", ",", "device", "address", "(", ")", ",", "p", "acquire", "info", ",", "p", "image", "index", ")", ";" ]
[ "test", "method", "for", "{", "@", "link", "org", "opengrok", "indexer", "analysis", "document", "troff", "analyzer", "#", "analyze", "(", "org", "apache", "lucene", "document", "document", "java", "io", "input", "stream", ")", "}" ]
[ "document", "doc", "=", "new", "document", "(", ")", ";", "string", "writer", "xref", "out", "=", "new", "string", "writer", "(", ")", ";", "analyzer", "analyze", "(", "doc", ",", "new", "stream", "source", "(", ")", "{", "@", "override", "public", "input", "stream", "get", "stream", "(", ")", "throws", "i", "o", "exception", "{", "return", "new", "byte", "array", "input", "stream", "(", "content", "get", "bytes", "(", ")", ")", ";", "}", "}", ",", "xref", "out", ")", ";" ]
[ "asserts", "that", "the", "array", "of", "characters", "has", "a", "given", "length" ]
[ "assert", "equals", "(", "length", ",", "array", "length", ")", ";" ]
[ "asserts", "that", "the", "array", "of", "ints", "has", "a", "given", "length" ]
[ "assert", "equals", "(", "length", ",", "array", "length", ")", ";" ]
[ "asserts", "that", "the", "array", "of", "objects", "has", "a", "given", "length" ]
[ "assert", "equals", "(", "length", ",", "array", "length", ")", ";" ]
[ "see", "{" ]
[ "groovy", "assert", "assert", "script", "(", "script", ")", ";" ]
[ "see", "{" ]
[ "return", "groovy", "assert", "should", "fail", "(", "code", ")", "get", "message", "(", ")", ";" ]
[ "see", "{" ]
[ "return", "groovy", "assert", "should", "fail", "(", "clazz", ",", "code", ")", "get", "message", "(", ")", ";" ]
[ "see", "{" ]
[ "return", "groovy", "assert", "should", "fail", "with", "cause", "(", "clazz", ",", "code", ")", "get", "message", "(", ")", ";" ]
[ "see", "{" ]
[ "return", "groovy", "assert", "should", "fail", "(", "clazz", ",", "script", ")", "get", "message", "(", ")", ";" ]
[ "see", "{" ]
[ "return", "groovy", "assert", "should", "fail", "(", "script", ")", "get", "message", "(", ")", ";" ]
[ "see", "{" ]
[ "return", "groovy", "assert", "not", "yet", "implemented", "(", "caller", ")", ";" ]
[ "convenience", "method", "for", "subclasses", "of", "groovy", "test", "case", "identical", "to", "<", "pre", ">", "groovy", "test", "case", "not", "yet", "implemented", "(", "this", ")", ";", "<", "/", "pre", ">" ]
[ "return", "not", "yet", "implemented", "(", "this", ")", ";" ]
[ "sets", "the", "duration", "to", "be", "used", "by", "all", "animations", "of", "this", "transition", "object", "if", "you", "want", "to", "set", "the", "duration", "of", "just", "one", "of", "the", "animations", "in", "particular", "use", "the", "{", "@", "link", "#", "set", "duration", "(", "int", "long", ")", "}", "method" ]
[ "m", "changing", "appearing", "duration", "=", "duration", ";", "m", "changing", "disappearing", "duration", "=", "duration", ";", "m", "changing", "duration", "=", "duration", ";", "m", "appearing", "duration", "=", "duration", ";", "m", "disappearing", "duration", "=", "duration", ";" ]
[ "enables", "the", "specified", "transition", "type", "for", "this", "layout", "transition", "object", "by", "default", "a", "layout", "transition", "listens", "for", "changes", "in", "children", "being", "added", "/", "remove", "/", "hidden", "/", "shown", "in", "the", "container", "and", "runs", "the", "animations", "associated", "with", "those", "events", "that", "is", "all", "transition", "types", "besides", "{", "@", "link", "#", "changing", "}", "are", "enabled", "by", "default", "you", "can", "also", "enable", "{", "@", "link", "#", "changing", "}", "animations", "by", "calling", "this", "method", "with", "the", "{", "@", "link", "#", "changing", "}", "transition", "type" ]
[ "switch", "(", "transition", "type", ")", "{", "case", "appearing", ":", "m", "transition", "types", "|", "=", "flag", "appearing", ";", "break", ";", "case", "disappearing", ":", "m", "transition", "types", "|", "=", "flag", "disappearing", ";", "break", ";", "case", "change", "appearing", ":", "m", "transition", "types", "|", "=", "flag", "change", "appearing", ";", "break", ";", "case", "change", "disappearing", ":", "m", "transition", "types", "|", "=", "flag", "change", "disappearing", ";", "break", ";", "case", "changing", ":", "m", "transition", "types", "|", "=", "flag", "changing", ";", "break", ";", "}" ]
[ "disables", "the", "specified", "transition", "type", "for", "this", "layout", "transition", "object", "by", "default", "all", "transition", "types", "except", "{", "@", "link", "#", "changing", "}", "are", "enabled" ]
[ "switch", "(", "transition", "type", ")", "{", "case", "appearing", ":", "m", "transition", "types", "&", "=", "~", "flag", "appearing", ";", "break", ";", "case", "disappearing", ":", "m", "transition", "types", "&", "=", "~", "flag", "disappearing", ";", "break", ";", "case", "change", "appearing", ":", "m", "transition", "types", "&", "=", "~", "flag", "change", "appearing", ";", "break", ";", "case", "change", "disappearing", ":", "m", "transition", "types", "&", "=", "~", "flag", "change", "disappearing", ";", "break", ";", "case", "changing", ":", "m", "transition", "types", "&", "=", "~", "flag", "changing", ";", "break", ";", "}" ]
[ "returns", "whether", "the", "specified", "transition", "type", "is", "enabled", "for", "this", "layout", "transition", "object", "by", "default", "all", "transition", "types", "except", "{", "@", "link", "#", "changing", "}", "are", "enabled" ]
[ "switch", "(", "transition", "type", ")", "{", "case", "appearing", ":", "return", "(", "m", "transition", "types", "&", "flag", "appearing", ")", "=", "=", "flag", "appearing", ";", "case", "disappearing", ":", "return", "(", "m", "transition", "types", "&", "flag", "disappearing", ")", "=", "=", "flag", "disappearing", ";", "case", "change", "appearing", ":", "return", "(", "m", "transition", "types", "&", "flag", "change", "appearing", ")", "=", "=", "flag", "change", "appearing", ";", "case", "change", "disappearing", ":", "return", "(", "m", "transition", "types", "&", "flag", "change", "disappearing", ")", "=", "=", "flag", "change", "disappearing", ";", "case", "changing", ":", "return", "(", "m", "transition", "types", "&", "flag", "changing", ")", "=", "=", "flag", "changing", ";", "}", "return", "false", ";" ]
[ "sets", "the", "start", "delay", "on", "one", "of", "the", "animation", "objects", "used", "by", "this", "transition", "the", "<", "code", ">", "transition", "type", "<", "/", "code", ">", "parameter", "determines", "the", "animation", "whose", "start", "delay", "is", "being", "set" ]
[ "switch", "(", "transition", "type", ")", "{", "case", "change", "appearing", ":", "m", "changing", "appearing", "delay", "=", "delay", ";", "break", ";", "case", "change", "disappearing", ":", "m", "changing", "disappearing", "delay", "=", "delay", ";", "break", ";", "case", "changing", ":", "m", "changing", "delay", "=", "delay", ";", "break", ";", "case", "appearing", ":", "m", "appearing", "delay", "=", "delay", ";", "break", ";", "case", "disappearing", ":", "m", "disappearing", "delay", "=", "delay", ";", "break", ";", "}" ]
[ "sets", "the", "duration", "on", "one", "of", "the", "animation", "objects", "used", "by", "this", "transition", "the", "<", "code", ">", "transition", "type", "<", "/", "code", ">", "parameter", "determines", "the", "animation", "whose", "duration", "is", "being", "set" ]
[ "switch", "(", "transition", "type", ")", "{", "case", "change", "appearing", ":", "m", "changing", "appearing", "duration", "=", "duration", ";", "break", ";", "case", "change", "disappearing", ":", "m", "changing", "disappearing", "duration", "=", "duration", ";", "break", ";", "case", "changing", ":", "m", "changing", "duration", "=", "duration", ";", "break", ";", "case", "appearing", ":", "m", "appearing", "duration", "=", "duration", ";", "break", ";", "case", "disappearing", ":", "m", "disappearing", "duration", "=", "duration", ";", "break", ";", "}" ]
[ "sets", "the", "interpolator", "on", "one", "of", "the", "animation", "objects", "used", "by", "this", "transition", "the", "<", "code", ">", "transition", "type", "<", "/", "code", ">", "parameter", "determines", "the", "animation", "whose", "interpolator", "is", "being", "set" ]
[ "switch", "(", "transition", "type", ")", "{", "case", "change", "appearing", ":", "m", "changing", "appearing", "interpolator", "=", "interpolator", ";", "break", ";", "case", "change", "disappearing", ":", "m", "changing", "disappearing", "interpolator", "=", "interpolator", ";", "break", ";", "case", "changing", ":", "m", "changing", "interpolator", "=", "interpolator", ";", "break", ";", "case", "appearing", ":", "m", "appearing", "interpolator", "=", "interpolator", ";", "break", ";", "case", "disappearing", ":", "m", "disappearing", "interpolator", "=", "interpolator", ";", "break", ";", "}" ]
[ "sets", "the", "animation", "used", "during", "one", "of", "the", "transition", "types", "that", "may", "run", "any", "animator", "object", "can", "be", "used", "but", "to", "be", "most", "useful", "in", "the", "context", "of", "layout", "transitions", "the", "animation", "should", "either", "be", "a", "object", "animator", "or", "a", "animator", "set", "of", "animations", "including", "property", "animators", "also", "these", "object", "animator", "objects", "should", "be", "able", "to", "get", "and", "set", "values", "on", "their", "target", "objects", "automatically", "for", "example", "a", "object", "animator", "that", "animates", "the", "property", "left", "is", "able", "to", "set", "and", "get", "the", "<", "code", ">", "left", "<", "/", "code", ">", "property", "from", "the", "view", "objects", "being", "animated", "by", "the", "layout", "transition", "the", "transition", "works", "by", "setting", "target", "objects", "and", "properties", "dynamically", "according", "to", "the", "pre", "-", "and", "post", "-", "layoout", "values", "of", "those", "objects", "so", "having", "animations", "that", "can", "handle", "those", "properties", "appropriately", "will", "work", "best", "for", "custom", "animation", "the", "dynamic", "setting", "of", "values", "is", "only", "the", "case", "for", "the", "change", "animations", ";", "the", "appearing", "and", "disappearing", "animations", "are", "simply", "run", "with", "the", "values", "they", "have" ]
[ "switch", "(", "transition", "type", ")", "{", "case", "change", "appearing", ":", "m", "changing", "appearing", "anim", "=", "animator", ";", "break", ";", "case", "change", "disappearing", ":", "m", "changing", "disappearing", "anim", "=", "animator", ";", "break", ";", "case", "changing", ":", "m", "changing", "anim", "=", "animator", ";", "break", ";", "case", "appearing", ":", "m", "appearing", "anim", "=", "animator", ";", "break", ";", "case", "disappearing", ":", "m", "disappearing", "anim", "=", "animator", ";", "break", ";", "}" ]
[ "this", "flag", "controls", "whether", "change", "appearing", "or", "change", "disappearing", "animations", "will", "cause", "the", "default", "changing", "animation", "to", "be", "run", "on", "the", "parent", "hierarchy", "as", "well", "this", "allows", "containers", "of", "transitioning", "views", "to", "also", "transition", "which", "may", "be", "necessary", "in", "situations", "where", "the", "containers", "bounds", "change", "between", "the", "before", "/", "after", "states", "and", "may", "clip", "their", "children", "during", "the", "transition", "animations", "for", "example", "layouts", "with", "wrap", "content", "will", "adjust", "their", "bounds", "according", "to", "the", "dimensions", "of", "their", "children" ]
[ "m", "animate", "parent", "hierarchy", "=", "animate", "parent", "hierarchy", ";" ]
[ "starts", "the", "animations", "set", "up", "for", "a", "changing", "transition", "we", "separate", "the", "setup", "of", "these", "animations", "from", "actually", "starting", "them", "to", "avoid", "side", "-", "effects", "that", "starting", "the", "animations", "may", "have", "on", "the", "properties", "of", "the", "affected", "objects", "after", "setup", "we", "tell", "the", "affected", "parent", "that", "this", "transition", "should", "be", "started", "the", "parent", "informs", "its", "view", "ancestor", "which", "then", "starts", "the", "transition", "after", "the", "current", "layout", "/", "measurement", "phase", "just", "prior", "to", "drawing", "the", "view", "hierarchy" ]
[ "linked", "hash", "map", "<", "view", ",", "animator", ">", "current", "anim", "copy", "=", "(", "linked", "hash", "map", "<", "view", ",", "animator", ">", ")", "current", "changing", "animations", "clone", "(", ")", ";", "for", "(", "animator", "anim", ":", "current", "anim", "copy", "values", "(", ")", ")", "{", "if", "(", "anim", "instanceof", "object", "animator", ")", "{", "(", "(", "object", "animator", ")", "anim", ")", "set", "current", "play", "time", "(", "0", ")", ";", "}", "anim", "start", "(", ")", ";", "}" ]
[ "returns", "true", "if", "animations", "are", "running", "which", "animate", "layout", "-", "related", "properties", "this", "essentially", "means", "that", "either", "change", "appearing", "or", "change", "disappearing", "animations", "are", "running", "since", "these", "animations", "operate", "on", "layout", "-", "related", "properties" ]
[ "return", "(", "current", "changing", "animations", "size", "(", ")", ">", "0", ")", ";" ]
[ "returns", "true", "if", "any", "of", "the", "animations", "in", "this", "transition", "are", "currently", "running" ]
[ "return", "(", "current", "changing", "animations", "size", "(", ")", ">", "0", "|", "|", "current", "appearing", "animations", "size", "(", ")", ">", "0", "|", "|", "current", "disappearing", "animations", "size", "(", ")", ">", "0", ")", ";" ]
[ "cancels", "the", "currently", "running", "transition", "note", "that", "we", "cancel", "(", ")", "the", "changing", "animations", "but", "end", "(", ")", "the", "visibility", "animations", "this", "is", "because", "this", "method", "is", "currently", "called", "in", "the", "context", "of", "starting", "a", "new", "transition", "so", "we", "want", "to", "move", "things", "from", "their", "mid", "-", "transition", "positions", "but", "we", "want", "them", "to", "have", "their", "end", "-", "transition", "visibility" ]
[ "if", "(", "current", "changing", "animations", "size", "(", ")", ">", "0", ")", "{", "linked", "hash", "map", "<", "view", ",", "animator", ">", "current", "anim", "copy", "=", "(", "linked", "hash", "map", "<", "view", ",", "animator", ">", ")", "current", "changing", "animations", "clone", "(", ")", ";", "for", "(", "animator", "anim", ":", "current", "anim", "copy", "values", "(", ")", ")", "{", "anim", "cancel", "(", ")", ";", "}", "current", "changing", "animations", "clear", "(", ")", ";", "}", "if", "(", "current", "appearing", "animations", "size", "(", ")", ">", "0", ")", "{", "linked", "hash", "map", "<", "view", ",", "animator", ">", "current", "anim", "copy", "=", "(", "linked", "hash", "map", "<", "view", ",", "animator", ">", ")", "current", "appearing", "animations", "clone", "(", ")", ";", "for", "(", "animator", "anim", ":", "current", "anim", "copy", "values", "(", ")", ")", "{", "anim", "end", "(", ")", ";", "}", "current", "appearing", "animations", "clear", "(", ")", ";", "}", "if", "(", "current", "disappearing", "animations", "size", "(", ")", ">", "0", ")", "{", "linked", "hash", "map", "<", "view", ",", "animator", ">", "current", "anim", "copy", "=", "(", "linked", "hash", "map", "<", "view", ",", "animator", ">", ")", "current", "disappearing", "animations", "clone", "(", ")", ";", "for", "(", "animator", "anim", ":", "current", "anim", "copy", "values", "(", ")", ")", "{", "anim", "end", "(", ")", ";", "}", "current", "disappearing", "animations", "clear", "(", ")", ";", "}" ]
[ "cancels", "the", "specified", "type", "of", "transition", "note", "that", "we", "cancel", "(", ")", "the", "changing", "animations", "but", "end", "(", ")", "the", "visibility", "animations", "this", "is", "because", "this", "method", "is", "currently", "called", "in", "the", "context", "of", "starting", "a", "new", "transition", "so", "we", "want", "to", "move", "things", "from", "their", "mid", "-", "transition", "positions", "but", "we", "want", "them", "to", "have", "their", "end", "-", "transition", "visibility" ]
[ "switch", "(", "transition", "type", ")", "{", "case", "change", "appearing", ":", "case", "change", "disappearing", ":", "case", "changing", ":", "if", "(", "current", "changing", "animations", "size", "(", ")", ">", "0", ")", "{", "linked", "hash", "map", "<", "view", ",", "animator", ">", "current", "anim", "copy", "=", "(", "linked", "hash", "map", "<", "view", ",", "animator", ">", ")", "current", "changing", "animations", "clone", "(", ")", ";", "for", "(", "animator", "anim", ":", "current", "anim", "copy", "values", "(", ")", ")", "{", "anim", "cancel", "(", ")", ";", "}", "current", "changing", "animations", "clear", "(", ")", ";", "}", "break", ";", "case", "appearing", ":", "if", "(", "current", "appearing", "animations", "size", "(", ")", ">", "0", ")", "{", "linked", "hash", "map", "<", "view", ",", "animator", ">", "current", "anim", "copy", "=", "(", "linked", "hash", "map", "<", "view", ",", "animator", ">", ")", "current", "appearing", "animations", "clone", "(", ")", ";", "for", "(", "animator", "anim", ":", "current", "anim", "copy", "values", "(", ")", ")", "{", "anim", "end", "(", ")", ";", "}", "current", "appearing", "animations", "clear", "(", ")", ";", "}", "break", ";", "case", "disappearing", ":", "if", "(", "current", "disappearing", "animations", "size", "(", ")", ">", "0", ")", "{", "linked", "hash", "map", "<", "view", ",", "animator", ">", "current", "anim", "copy", "=", "(", "linked", "hash", "map", "<", "view", ",", "animator", ">", ")", "current", "disappearing", "animations", "clone", "(", ")", ";", "for", "(", "animator", "anim", ":", "current", "anim", "copy", "values", "(", ")", ")", "{", "anim", "end", "(", ")", ";", "}", "current", "disappearing", "animations", "clear", "(", ")", ";", "}", "break", ";", "}" ]
[ "this", "method", "runs", "the", "animation", "that", "makes", "an", "added", "item", "appear" ]
[ "animator", "current", "animation", "=", "current", "disappearing", "animations", "get", "(", "child", ")", ";", "if", "(", "current", "animation", "!", "=", "null", ")", "{", "current", "animation", "cancel", "(", ")", ";", "}", "if", "(", "m", "appearing", "anim", "=", "=", "null", ")", "{", "if", "(", "has", "listeners", "(", ")", ")", "{", "array", "list", "<", "transition", "listener", ">", "listeners", "=", "(", "array", "list", "<", "transition", "listener", ">", ")", "m", "listeners", "clone", "(", ")", ";", "for", "(", "transition", "listener", "listener", ":", "listeners", ")", "{", "listener", "end", "transition", "(", "layout", "transition", "this", ",", "parent", ",", "child", ",", "appearing", ")", ";", "}", "}", "return", ";", "}", "animator", "anim", "=", "m", "appearing", "anim", "clone", "(", ")", ";", "anim", "set", "target", "(", "child", ")", ";", "anim", "set", "start", "delay", "(", "m", "appearing", "delay", ")", ";", "anim", "set", "duration", "(", "m", "appearing", "duration", ")", ";", "if", "(", "m", "appearing", "interpolator", "!", "=", "s", "appearing", "interpolator", ")", "{", "anim", "set", "interpolator", "(", "m", "appearing", "interpolator", ")", ";", "}", "if", "(", "anim", "instanceof", "object", "animator", ")", "{", "(", "(", "object", "animator", ")", "anim", ")", "set", "current", "play", "time", "(", "0", ")", ";", "}", "anim", "add", "listener", "(", "new", "animator", "listener", "adapter", "(", ")", "{", "@", "override", "public", "void", "on", "animation", "end", "(", "animator", "anim", ")", "{", "current", "appearing", "animations", "remove", "(", "child", ")", ";", "if", "(", "has", "listeners", "(", ")", ")", "{", "array", "list", "<", "transition", "listener", ">", "listeners", "=", "(", "array", "list", "<", "transition", "listener", ">", ")", "m", "listeners", "clone", "(", ")", ";", "for", "(", "transition", "listener", "listener", ":", "listeners", ")", "{", "listener", "end", "transition", "(", "layout", "transition", "this", ",", "parent", ",", "child", ",", "appearing", ")", ";", "}", "}", "}", "}", ")", ";", "current", "appearing", "animations", "put", "(", "child", ",", "anim", ")", ";", "anim", "start", "(", ")", ";" ]
[ "this", "method", "runs", "the", "animation", "that", "makes", "a", "removed", "item", "disappear" ]
[ "animator", "current", "animation", "=", "current", "appearing", "animations", "get", "(", "child", ")", ";", "if", "(", "current", "animation", "!", "=", "null", ")", "{", "current", "animation", "cancel", "(", ")", ";", "}", "if", "(", "m", "disappearing", "anim", "=", "=", "null", ")", "{", "if", "(", "has", "listeners", "(", ")", ")", "{", "array", "list", "<", "transition", "listener", ">", "listeners", "=", "(", "array", "list", "<", "transition", "listener", ">", ")", "m", "listeners", "clone", "(", ")", ";", "for", "(", "transition", "listener", "listener", ":", "listeners", ")", "{", "listener", "end", "transition", "(", "layout", "transition", "this", ",", "parent", ",", "child", ",", "disappearing", ")", ";", "}", "}", "return", ";", "}", "animator", "anim", "=", "m", "disappearing", "anim", "clone", "(", ")", ";", "anim", "set", "start", "delay", "(", "m", "disappearing", "delay", ")", ";", "anim", "set", "duration", "(", "m", "disappearing", "duration", ")", ";", "if", "(", "m", "disappearing", "interpolator", "!", "=", "s", "disappearing", "interpolator", ")", "{", "anim", "set", "interpolator", "(", "m", "disappearing", "interpolator", ")", ";", "}", "anim", "set", "target", "(", "child", ")", ";", "final", "float", "pre", "anim", "alpha", "=", "child", "get", "alpha", "(", ")", ";", "anim", "add", "listener", "(", "new", "animator", "listener", "adapter", "(", ")", "{", "@", "override", "public", "void", "on", "animation", "end", "(", "animator", "anim", ")", "{", "current", "disappearing", "animations", "remove", "(", "child", ")", ";", "child", "set", "alpha", "(", "pre", "anim", "alpha", ")", ";", "if", "(", "has", "listeners", "(", ")", ")", "{", "array", "list", "<", "transition", "listener", ">", "listeners", "=", "(", "array", "list", "<", "transition", "listener", ">", ")", "m", "listeners", "clone", "(", ")", ";", "for", "(", "transition", "listener", "listener", ":", "listeners", ")", "{", "listener", "end", "transition", "(", "layout", "transition", "this", ",", "parent", ",", "child", ",", "disappearing", ")", ";", "}", "}", "}", "}", ")", ";", "if", "(", "anim", "instanceof", "object", "animator", ")", "{", "(", "(", "object", "animator", ")", "anim", ")", "set", "current", "play", "time", "(", "0", ")", ";", "}", "current", "disappearing", "animations", "put", "(", "child", ",", "anim", ")", ";", "anim", "start", "(", ")", ";" ]
[ "this", "method", "is", "called", "by", "view", "group", "when", "a", "child", "view", "is", "about", "to", "be", "added", "to", "the", "container", "this", "callback", "starts", "the", "process", "of", "a", "transition", ";", "we", "grab", "the", "starting", "values", "listen", "for", "changes", "to", "all", "of", "the", "children", "of", "the", "container", "and", "start", "appropriate", "animations" ]
[ "add", "child", "(", "parent", ",", "child", ",", "true", ")", ";" ]
[ "this", "method", "is", "called", "by", "view", "group", "when", "a", "child", "view", "is", "about", "to", "be", "made", "visible", "in", "the", "container", "this", "callback", "starts", "the", "process", "of", "a", "transition", ";", "we", "grab", "the", "starting", "values", "listen", "for", "changes", "to", "all", "of", "the", "children", "of", "the", "container", "and", "start", "appropriate", "animations" ]
[ "add", "child", "(", "parent", ",", "child", ",", "old", "visibility", "=", "=", "view", "gone", ")", ";" ]
[ "this", "method", "is", "called", "by", "view", "group", "when", "a", "child", "view", "is", "about", "to", "be", "removed", "from", "the", "container", "this", "callback", "starts", "the", "process", "of", "a", "transition", ";", "we", "grab", "the", "starting", "values", "listen", "for", "changes", "to", "all", "of", "the", "children", "of", "the", "container", "and", "start", "appropriate", "animations" ]
[ "remove", "child", "(", "parent", ",", "child", ",", "true", ")", ";" ]
[ "this", "method", "is", "called", "by", "view", "group", "when", "a", "child", "view", "is", "about", "to", "be", "hidden", "in", "container", "this", "callback", "starts", "the", "process", "of", "a", "transition", ";", "we", "grab", "the", "starting", "values", "listen", "for", "changes", "to", "all", "of", "the", "children", "of", "the", "container", "and", "start", "appropriate", "animations" ]
[ "remove", "child", "(", "parent", ",", "child", ",", "new", "visibility", "=", "=", "view", "gone", ")", ";" ]
[ "add", "a", "listener", "that", "will", "be", "called", "when", "the", "bounds", "of", "the", "view", "change", "due", "to", "layout", "processing" ]
[ "if", "(", "m", "listeners", "=", "=", "null", ")", "{", "m", "listeners", "=", "new", "array", "list", "<", "transition", "listener", ">", "(", ")", ";", "}", "m", "listeners", "add", "(", "listener", ")", ";" ]
[ "remove", "a", "listener", "for", "layout", "changes" ]
[ "if", "(", "m", "listeners", "=", "=", "null", ")", "{", "return", ";", "}", "m", "listeners", "remove", "(", "listener", ")", ";" ]
[ "gets", "the", "current", "list", "of", "listeners", "for", "layout", "changes" ]
[ "return", "m", "listeners", ";" ]
[ "nodes", "are", "equal", "if", "they", "are", "from", "the", "same", "file", "and", "same", "starting", "point" ]
[ "if", "(", "!", "(", "obj", "instanceof", "node", ")", ")", "{", "return", "false", ";", "}", "else", "{", "node", "node", "=", "(", "node", ")", "obj", ";", "return", "(", "this", "start", "=", "=", "node", "start", "&", "&", "this", "end", "=", "=", "node", "end", "&", "&", "same", "(", "this", "file", ",", "node", "file", ")", ")", ";", "}" ]
[ "this", "test", "writes", "{", "@", "link", "#", "num", "entries", "}", "using", "{", "@", "link", "var", "byte", "chunk", "single", "value", "writer", "}", "it", "then", "reads", "the", "strings", "&", "bytes", "using", "{", "@", "link", "var", "byte", "chunk", "single", "value", "reader", "}", "and", "asserts", "that", "what", "was", "written", "is", "the", "same", "as", "what", "was", "read", "in" ]
[ "string", "[", "]", "expected", "=", "new", "string", "[", "num", "entries", "]", ";", "random", "random", "=", "new", "random", "(", ")", ";", "file", "out", "file", "=", "new", "file", "(", "test", "file", ")", ";", "file", "utils", "delete", "quietly", "(", "out", "file", ")", ";", "int", "max", "string", "length", "in", "bytes", "=", "0", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "num", "entries", ";", "i", "+", "+", ")", "{", "expected", "[", "i", "]", "=", "random", "string", "utils", "random", "(", "random", "next", "int", "(", "max", "string", "length", ")", ")", ";", "max", "string", "length", "in", "bytes", "=", "math", "max", "(", "max", "string", "length", "in", "bytes", ",", "expected", "[", "i", "]", "get", "bytes", "(", "utf", "8", ")", "length", ")", ";", "}", "var", "byte", "chunk", "single", "value", "writer", "writer", "=", "new", "var", "byte", "chunk", "single", "value", "writer", "(", "out", "file", ",", "compression", "type", ",", "num", "entries", ",", "num", "docs", "per", "chunk", ",", "max", "string", "length", "in", "bytes", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "num", "entries", ";", "i", "+", "=", "2", ")", "{", "writer", "set", "string", "(", "i", ",", "expected", "[", "i", "]", ")", ";", "writer", "set", "bytes", "(", "i", "+", "1", ",", "expected", "[", "i", "]", "get", "bytes", "(", "utf", "8", ")", ")", ";", "}", "writer", "close", "(", ")", ";", "try", "(", "var", "byte", "chunk", "single", "value", "reader", "reader", "=", "new", "var", "byte", "chunk", "single", "value", "reader", "(", "pinot", "data", "buffer", "map", "read", "only", "big", "endian", "file", "(", "out", "file", ")", ")", ")", "{", "chunk", "reader", "context", "context", "=", "reader", "create", "context", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "num", "entries", ";", "i", "+", "=", "2", ")", "{", "string", "actual", "=", "reader", "get", "string", "(", "i", ",", "context", ")", ";", "assert", "assert", "equals", "(", "actual", ",", "expected", "[", "i", "]", ")", ";", "assert", "assert", "equals", "(", "actual", "get", "bytes", "(", "utf", "8", ")", ",", "expected", "[", "i", "]", "get", "bytes", "(", "utf", "8", ")", ")", ";", "assert", "assert", "equals", "(", "reader", "get", "bytes", "(", "i", "+", "1", ")", ",", "expected", "[", "i", "]", "get", "bytes", "(", "utf", "8", ")", ")", ";", "}", "}", "file", "utils", "delete", "quietly", "(", "out", "file", ")", ";" ]
[ "validates", "a", "loaded", "{", "@", "link", "com", "android", "manifmerger", "xml", "document", "}", "and", "return", "a", "status", "of", "the", "merging", "model" ]
[ "validate", "manifest", "attribute", "(", "merging", "report", ",", "xml", "document", "get", "root", "node", "(", ")", ",", "xml", "document", "get", "file", "type", "(", ")", ")", ";", "return", "validate", "(", "merging", "report", ",", "xml", "document", "get", "root", "node", "(", ")", ")", ";" ]
[ "validate", "attributes", "part", "of", "the", "{" ]
[ "for", "(", "xml", "attribute", "xml", "attribute", ":", "xml", "element", "get", "attributes", "(", ")", ")", "{", "attribute", "model", "model", "=", "xml", "attribute", "get", "model", "(", ")", ";", "if", "(", "model", "!", "=", "null", "&", "&", "model", "get", "on", "read", "validator", "(", ")", "!", "=", "null", ")", "{", "model", "get", "on", "read", "validator", "(", ")", "validates", "(", "merging", "report", ",", "xml", "attribute", ",", "xml", "attribute", "get", "value", "(", ")", ")", ";", "}", "}" ]
[ "initializes", "the", "item", "queue", "with", "items", "from", "the", "queue", "store", "if", "the", "store", "is", "enabled", "and", "if", "item", "queue", "is", "not", "being", "initialized", "as", "a", "part", "of", "a", "backup", "operation", "if", "the", "item", "queue", "is", "being", "initialized", "as", "a", "part", "of", "a", "backup", "operation", "then", "the", "operation", "is", "in", "charge", "of", "adding", "items", "to", "a", "queue", "and", "the", "items", "are", "not", "loaded", "from", "a", "queue", "store" ]
[ "if", "(", "!", "from", "backup", "&", "&", "store", "is", "enabled", "(", ")", ")", "{", "set", "<", "long", ">", "keys", "=", "store", "load", "all", "keys", "(", ")", ";", "if", "(", "keys", "!", "=", "null", ")", "{", "long", "max", "id", "=", "-", "1", ";", "for", "(", "long", "key", ":", "keys", ")", "{", "queue", "item", "item", "=", "new", "queue", "item", "(", "this", ",", "key", ",", "null", ")", ";", "get", "item", "queue", "(", ")", "offer", "(", "item", ")", ";", "max", "id", "=", "math", "max", "(", "max", "id", ",", "key", ")", ";", "}", "id", "generator", "=", "max", "id", "+", "1", ";", "}", "}" ]
[ "tries", "to", "obtain", "an", "item", "by", "removing", "the", "head", "of", "the", "queue", "or", "removing", "an", "item", "previously", "reserved", "by", "invoking", "{", "@", "link", "#", "txn", "offer", "reserve", "(", "string", ")", "}", "with", "{", "@", "code", "reserved", "offer", "id", "}", "<", "p", ">", "if", "the", "queue", "item", "does", "not", "have", "data", "in", "-", "memory", "it", "will", "load", "the", "data", "from", "the", "queue", "store", "if", "the", "queue", "store", "is", "configured", "and", "enabled" ]
[ "queue", "item", "item", "=", "get", "item", "queue", "(", ")", "peek", "(", ")", ";", "if", "(", "item", "=", "=", "null", ")", "{", "tx", "queue", "item", "tx", "item", "=", "tx", "map", "remove", "(", "reserved", "offer", "id", ")", ";", "if", "(", "tx", "item", "=", "=", "null", ")", "{", "return", "null", ";", "}", "item", "=", "new", "queue", "item", "(", "this", ",", "tx", "item", "get", "item", "id", "(", ")", ",", "tx", "item", "get", "data", "(", ")", ")", ";", "return", "item", ";", "}", "if", "(", "store", "is", "enabled", "(", ")", "&", "&", "item", "get", "data", "(", ")", "=", "=", "null", ")", "{", "try", "{", "load", "(", "item", ")", ";", "}", "catch", "(", "exception", "e", ")", "{", "throw", "new", "hazelcast", "exception", "(", "e", ")", ";", "}", "}", "get", "item", "queue", "(", ")", "poll", "(", ")", ";", "tx", "map", "put", "(", "item", "get", "item", "id", "(", ")", ",", "new", "tx", "queue", "item", "(", "item", ")", "set", "poll", "operation", "(", "true", ")", "set", "transaction", "id", "(", "transaction", "id", ")", ")", ";", "return", "item", ";" ]
[ "rolls", "back", "the", "effects", "of", "the", "{", "@", "link", "#", "txn", "poll", "reserve", "(", "long", "string", ")", "}", "the", "{", "@", "code", "backup", "}", "parameter", "defines", "whether", "this", "item", "was", "stored", "on", "a", "backup", "queue", "or", "a", "primary", "queue", "it", "will", "return", "the", "item", "to", "the", "queue", "or", "backup", "map", "if", "it", "wasn", "t", "offered", "as", "a", "part", "of", "the", "transaction", "cancels", "the", "queue", "eviction", "if", "one", "is", "scheduled" ]
[ "tx", "queue", "item", "item", "=", "tx", "map", "remove", "(", "item", "id", ")", ";", "if", "(", "item", "=", "=", "null", ")", "{", "return", "false", ";", "}", "if", "(", "backup", ")", "{", "get", "backup", "map", "(", ")", "put", "(", "item", "id", ",", "item", ")", ";", "}", "else", "{", "add", "tx", "item", "ordered", "(", "item", ")", ";", "}", "cancel", "eviction", "if", "exists", "(", ")", ";", "return", "true", ";" ]
[ "reserves", "an", "id", "for", "a", "future", "queue", "item", "and", "associates", "it", "with", "the", "given", "{", "@", "code", "transaction", "id", "}", "the", "item", "is", "not", "yet", "visible", "in", "the", "queue", "it", "is", "just", "reserved", "for", "future", "insertion" ]
[ "long", "item", "id", "=", "next", "id", "(", ")", ";", "txn", "offer", "reserve", "internal", "(", "item", "id", ",", "transaction", "id", ")", ";", "return", "item", "id", ";" ]
[ "add", "a", "reservation", "for", "an", "item", "with", "{" ]
[ "tx", "queue", "item", "item", "=", "new", "tx", "queue", "item", "(", "this", ",", "item", "id", ",", "null", ")", "set", "transaction", "id", "(", "transaction", "id", ")", "set", "poll", "operation", "(", "false", ")", ";", "return", "tx", "map", "put", "(", "item", "id", ",", "item", ")", ";" ]
[ "removes", "a", "reserved", "item", "with", "the", "given", "{", "@", "code", "item", "id", "}", "also", "schedules", "the", "queue", "for", "destruction", "if", "it", "is", "empty", "or", "destroys", "it", "immediately", "if", "it", "is", "empty", "and", "{", "@", "link", "queue", "config", "#", "get", "empty", "queue", "ttl", "(", ")", "}", "is", "0" ]
[ "boolean", "result", "=", "txn", "rollback", "offer", "backup", "(", "item", "id", ")", ";", "schedule", "eviction", "if", "empty", "(", ")", ";", "return", "result", ";" ]
[ "retrieves", "but", "does", "not", "remove", "the", "head", "of", "the", "queue", "if", "the", "queue", "is", "empty", "checks", "if", "there", "is", "a", "reserved", "item", "with", "the", "associated", "{", "@", "code", "offer", "id", "}", "and", "returns", "it", "if", "the", "item", "was", "retrieved", "from", "the", "queue", "but", "does", "not", "contain", "any", "data", "and", "the", "queue", "store", "is", "enabled", "this", "method", "will", "try", "load", "the", "data", "from", "the", "data", "store" ]
[ "queue", "item", "item", "=", "get", "item", "queue", "(", ")", "peek", "(", ")", ";", "if", "(", "item", "=", "=", "null", ")", "{", "if", "(", "offer", "id", "=", "=", "-", "1", ")", "{", "return", "null", ";", "}", "tx", "queue", "item", "tx", "item", "=", "tx", "map", "get", "(", "offer", "id", ")", ";", "if", "(", "tx", "item", "=", "=", "null", ")", "{", "return", "null", ";", "}", "item", "=", "new", "queue", "item", "(", "this", ",", "tx", "item", "get", "item", "id", "(", ")", ",", "tx", "item", "get", "data", "(", ")", ")", ";", "return", "item", ";", "}", "if", "(", "store", "is", "enabled", "(", ")", "&", "&", "item", "get", "data", "(", ")", "=", "=", "null", ")", "{", "try", "{", "load", "(", "item", ")", ";", "}", "catch", "(", "exception", "e", ")", "{", "throw", "new", "hazelcast", "exception", "(", "e", ")", ";", "}", "}", "return", "item", ";" ]
[ "tx", "methods", "ends" ]
[ "queue", "item", "item", "=", "new", "queue", "item", "(", "this", ",", "next", "id", "(", ")", ",", "null", ")", ";", "if", "(", "store", "is", "enabled", "(", ")", ")", "{", "try", "{", "store", "store", "(", "item", "get", "item", "id", "(", ")", ",", "data", ")", ";", "}", "catch", "(", "exception", "e", ")", "{", "throw", "new", "hazelcast", "exception", "(", "e", ")", ";", "}", "}", "if", "(", "!", "store", "is", "enabled", "(", ")", "|", "|", "store", "get", "memory", "limit", "(", ")", ">", "get", "item", "queue", "(", ")", "size", "(", ")", ")", "{", "item", "set", "data", "(", "data", ")", ";", "}", "get", "item", "queue", "(", ")", "offer", "(", "item", ")", ";", "cancel", "eviction", "if", "exists", "(", ")", ";", "return", "item", "get", "item", "id", "(", ")", ";" ]
[ "offers", "the", "item", "to", "the", "backup", "map", "if", "the", "memory", "limit", "has", "been", "achieved", "the", "item", "data", "will", "not", "be", "kept", "in", "-", "memory", "executed", "on", "the", "backup", "replica" ]
[ "queue", "item", "item", "=", "new", "queue", "item", "(", "this", ",", "item", "id", ",", "null", ")", ";", "if", "(", "!", "store", "is", "enabled", "(", ")", "|", "|", "store", "get", "memory", "limit", "(", ")", ">", "get", "item", "queue", "(", ")", "size", "(", ")", ")", "{", "item", "set", "data", "(", "data", ")", ";", "}", "get", "backup", "map", "(", ")", "put", "(", "item", "id", ",", "item", ")", ";" ]
[ "adds", "all", "items", "from", "the", "{", "@", "code", "data", "list", "}", "to", "the", "queue", "the", "data", "will", "be", "stored", "in", "the", "queue", "store", "if", "configured", "and", "enabled", "if", "the", "store", "is", "enabled", "only", "{", "@", "link", "queue", "store", "wrapper", "#", "get", "memory", "limit", "(", ")", "}", "item", "data", "will", "be", "stored", "in", "memory", "cancels", "the", "eviction", "if", "one", "is", "scheduled" ]
[ "map", "<", "long", ",", "data", ">", "map", "=", "create", "hash", "map", "(", "data", "list", "size", "(", ")", ")", ";", "list", "<", "queue", "item", ">", "list", "=", "new", "array", "list", "<", "queue", "item", ">", "(", "data", "list", "size", "(", ")", ")", ";", "for", "(", "data", "data", ":", "data", "list", ")", "{", "queue", "item", "item", "=", "new", "queue", "item", "(", "this", ",", "next", "id", "(", ")", ",", "null", ")", ";", "if", "(", "!", "store", "is", "enabled", "(", ")", "|", "|", "store", "get", "memory", "limit", "(", ")", ">", "get", "item", "queue", "(", ")", "size", "(", ")", ")", "{", "item", "set", "data", "(", "data", ")", ";", "}", "map", "put", "(", "item", "get", "item", "id", "(", ")", ",", "data", ")", ";", "list", "add", "(", "item", ")", ";", "}", "if", "(", "store", "is", "enabled", "(", ")", "&", "&", "!", "map", "is", "empty", "(", ")", ")", "{", "try", "{", "store", "store", "all", "(", "map", ")", ";", "}", "catch", "(", "exception", "e", ")", "{", "throw", "new", "hazelcast", "exception", "(", "e", ")", ";", "}", "}", "if", "(", "!", "list", "is", "empty", "(", ")", ")", "{", "get", "item", "queue", "(", ")", "add", "all", "(", "list", ")", ";", "cancel", "eviction", "if", "exists", "(", ")", ";", "}", "return", "map", ";" ]
[ "offers", "the", "items", "to", "the", "backup", "map", "in", "bulk", "if", "the", "memory", "limit", "has", "been", "achieved", "the", "item", "data", "will", "not", "be", "kept", "in", "-", "memory", "executed", "on", "the", "backup", "replica" ]
[ "for", "(", "map", "entry", "<", "long", ",", "data", ">", "entry", ":", "data", "map", "entry", "set", "(", ")", ")", "{", "queue", "item", "item", "=", "new", "queue", "item", "(", "this", ",", "entry", "get", "key", "(", ")", ",", "null", ")", ";", "if", "(", "!", "store", "is", "enabled", "(", ")", "|", "|", "store", "get", "memory", "limit", "(", ")", ">", "get", "item", "queue", "(", ")", "size", "(", ")", ")", "{", "item", "set", "data", "(", "entry", "get", "value", "(", ")", ")", ";", "}", "get", "backup", "map", "(", ")", "put", "(", "item", "get", "item", "id", "(", ")", ",", "item", ")", ";", "}" ]
[ "retrieves", "but", "does", "not", "remove", "the", "head", "of", "this", "queue", "or", "returns", "{", "@", "code", "null", "}", "if", "this", "queue", "is", "empty", "loads", "the", "data", "from", "the", "queue", "store", "if", "the", "item", "data", "is", "empty" ]
[ "queue", "item", "item", "=", "get", "item", "queue", "(", ")", "peek", "(", ")", ";", "if", "(", "item", "=", "=", "null", ")", "{", "return", "null", ";", "}", "if", "(", "store", "is", "enabled", "(", ")", "&", "&", "item", "get", "data", "(", ")", "=", "=", "null", ")", "{", "try", "{", "load", "(", "item", ")", ";", "}", "catch", "(", "exception", "e", ")", "{", "throw", "new", "hazelcast", "exception", "(", "e", ")", ";", "}", "}", "return", "item", ";" ]
[ "retrieves", "and", "removes", "the", "head", "of", "the", "queue", "(", "in", "other", "words", "the", "first", "item", ")", "or", "returns", "{", "@", "code", "null", "}", "if", "it", "is", "empty", "also", "calls", "the", "queue", "store", "for", "item", "deletion", "by", "item", "id" ]
[ "queue", "item", "item", "=", "peek", "(", ")", ";", "if", "(", "item", "=", "=", "null", ")", "{", "return", "null", ";", "}", "if", "(", "store", "is", "enabled", "(", ")", ")", "{", "try", "{", "store", "delete", "(", "item", "get", "item", "id", "(", ")", ")", ";", "}", "catch", "(", "exception", "e", ")", "{", "throw", "new", "hazelcast", "exception", "(", "e", ")", ";", "}", "}", "get", "item", "queue", "(", ")", "poll", "(", ")", ";", "age", "(", "item", ",", "clock", "current", "time", "millis", "(", ")", ")", ";", "schedule", "eviction", "if", "empty", "(", ")", ";", "return", "item", ";" ]