docstring_tokens
list
code_tokens
list
[ "create", "a", "new", "acl", "entry", "with", "scope", "type", "and", "permission", "(", "no", "name", ")", "borrowed", "from", "test", "extended", "acls" ]
[ "return", "new", "acl", "entry", "builder", "(", ")", "set", "scope", "(", "scope", ")", "set", "type", "(", "type", ")", "set", "permission", "(", "permission", ")", "build", "(", ")", ";" ]
[ "create", "a", "new", "acl", "entry", "with", "scope", "type", "name", "and", "permission", "borrowed", "from", "test", "extended", "acls" ]
[ "return", "new", "acl", "entry", "builder", "(", ")", "set", "scope", "(", "scope", ")", "set", "type", "(", "type", ")", "set", "name", "(", "name", ")", "set", "permission", "(", "permission", ")", "build", "(", ")", ";" ]
[ "/", "*", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-" ]
[ "executor", "execute", "(", "job", ")", ";" ]
[ "restore", "し", "て", "き", "た", "γ‚„", "぀", "か", "ら", "{" ]
[ "saved", "state", "saved", "state", "=", "(", "saved", "state", ")", "state", ";", "super", "on", "restore", "instance", "state", "(", "saved", "state", "get", "super", "state", "(", ")", ")", ";", "set", "played", "(", "saved", "state", "played", ")", ";", "set", "up", "animator", "(", ")", ";", "invalidate", "(", ")", ";" ]
[ "{", "@", "link", "play", "pause", "button", "#", "m", "played", "}", "γ‚’γ‚»γƒƒγƒˆγ™γ‚‹" ]
[ "if", "(", "m", "played", "!", "=", "played", ")", "{", "m", "played", "=", "played", ";", "invalidate", "(", ")", ";", "}" ]
[ "the", "timeout", "in", "ms", "(", "milliseconds", ")", "for", "async", "write", "operations", "<", "p", ">", "negative", "values", "indicate", "a", "disabled", "timeout" ]
[ "return", "async", "write", "timeout", ";" ]
[ "the", "input", "(", "read", "from", "network", "layer", ")", "buffer", "size", "<", "p", ">", "this", "is", "the", "raw", "read", "operation", "buffer", "size", "before", "the", "parsing", "of", "the", "websocket", "frames", "<", "/", "p", ">" ]
[ "return", "input", "buffer", "size", ";" ]
[ "the", "output", "(", "write", "to", "network", "layer", ")", "buffer", "size", "<", "p", ">", "this", "is", "the", "raw", "write", "operation", "buffer", "size", "and", "has", "no", "relationship", "to", "the", "websocket", "frame", "<", "/", "p", ">" ]
[ "return", "output", "buffer", "size", ";" ]
[ "the", "maximum", "allowed", "frame", "size", "<", "p", ">", "this", "is", "used", "to", "manage", "frame", "payload", "memory", "allocation", "concerns", "if", "an", "excessively", "large", "frame", "payload", "size", "is", "received", "then", "this", "will", "short", "circuit", "the", "parsing", "step", "and", "trigger", "a", "close", "code", "1009", "{", "@", "link", "status", "code", "#", "message", "too", "large", "}", "for", "that", "endpoint", "before", "the", "allocation", "of", "the", "memory", "for", "that", "payload", "is", "even", "made", "<", "/", "p", ">" ]
[ "return", "max", "allowed", "frame", "size", ";" ]
[ "get", "the", "maximum", "size", "of", "a", "binary", "message", "buffer" ]
[ "return", "max", "binary", "message", "buffer", "size", ";" ]
[ "get", "the", "maximum", "size", "of", "a", "binary", "message", "during", "parsing", "<", "p", ">", "this", "is", "a", "memory", "conservation", "option", "memory", "over", "this", "limit", "will", "not", "be", "allocated", "by", "jetty", "for", "handling", "binary", "messages", "this", "applies", "to", "individual", "frames", "whole", "message", "handling", "and", "partial", "message", "handling", "<", "/", "p", ">", "<", "p", ">", "binary", "messages", "over", "this", "maximum", "will", "result", "in", "a", "close", "code", "1009", "{", "@", "link", "status", "code", "#", "message", "too", "large", "}", "<", "/", "p", ">" ]
[ "return", "max", "binary", "message", "size", ";" ]
[ "get", "the", "maximum", "size", "of", "a", "text", "message", "buffer", "(", "for", "streaming", "writing", ")" ]
[ "return", "max", "text", "message", "buffer", "size", ";" ]
[ "get", "the", "maximum", "size", "of", "a", "text", "message", "during", "parsing", "<", "p", ">", "this", "is", "a", "memory", "conservation", "option", "memory", "over", "this", "limit", "will", "not", "be", "allocated", "by", "jetty", "for", "handling", "text", "messages", "this", "applies", "to", "individual", "frames", "whole", "message", "handling", "and", "partial", "message", "handling", "<", "/", "p", ">", "<", "p", ">", "text", "messages", "over", "this", "maximum", "will", "result", "in", "a", "close", "code", "1009", "{", "@", "link", "status", "code", "#", "message", "too", "large", "}", "<", "/", "p", ">" ]
[ "return", "max", "text", "message", "size", ";" ]
[ "assert", "that", "the", "executor", "backing", "{", "@", "link", "client", "execution", "timer", "}", "was", "never", "created", "or", "used" ]
[ "assert", "null", "(", "request", "timer", "get", "executor", "(", ")", ")", ";" ]
[ "assert", "that", "the", "executor", "backing", "{", "@", "link", "client", "execution", "timer", "}", "was", "never", "created", "or", "used" ]
[ "assert", "null", "(", "client", "execution", "timer", "get", "executor", "(", ")", ")", ";" ]
[ "assert", "response", "was", "buffered", "into", "memory", "to", "enforce", "the", "timeout", "on", "both", "connection", "established", "and", "reading", "of", "content" ]
[ "verify", "(", "response", "proxy", ")", "set", "entity", "(", "any", "(", "buffered", "http", "entity", "class", ")", ")", ";" ]
[ "assert", "response", "was", "not", "buffered", "into", "memory", "as", "should", "be", "the", "case", "when", "client", "execution", "and", "request", "timeouts", "are", "disabled", "or", "an", "operation", "is", "streaming", "and", "it", "s", "content", "must", "be", "left", "open" ]
[ "verify", "(", "response", "proxy", ",", "never", "(", ")", ")", "set", "entity", "(", "any", "(", "buffered", "http", "entity", "class", ")", ")", ";" ]
[ "waits", "until", "a", "little", "after", "the", "thread", "pools", "keep", "alive", "time", "and", "then", "asserts", "that", "all", "thre" ]
[ "try", "{", "thread", "sleep", "(", "timer", "executor", "get", "keep", "alive", "time", "(", "time", "unit", "milliseconds", ")", "+", "1000", ")", ";", "}", "catch", "(", "interrupted", "exception", "ignored", ")", "{", "}", "assert", "equals", "(", "0", ",", "timer", "executor", "get", "pool", "size", "(", ")", ")", ";" ]
[ "if", "the", "request", "completes", "successfully", "then", "the", "timer", "task", "should", "be", "canceled", "and", "should", "be", "removed", "from", "the", "thread", "pool", "to", "prevent", "build", "up", "of", "canceled", "tasks" ]
[ "wait", "before", "assert", "on", "executor", "(", ")", ";", "assert", "equals", "(", "0", ",", "timer", "executor", "get", "queue", "(", ")", "size", "(", ")", ")", ";" ]
[ "asserts", "the", "timer", "never", "went", "off", "(", "i", "e", "no", "timeout", "was", "exceeded", "and", "no", "timer", "task", "was", "executed", ")" ]
[ "assert", "number", "of", "tasks", "triggered", "(", "timer", "executor", ",", "0", ")", ";" ]
[ "creates", "apache", "{", "@", "link", "http", "client", "}", "spy" ]
[ "http", "client", "factory", "<", "connection", "manager", "aware", "http", "client", ">", "http", "client", "factory", "=", "new", "apache", "http", "client", "factory", "(", ")", ";", "return", "spy", "(", "http", "client", "factory", "create", "(", "http", "client", "settings", "adapt", "(", "config", ",", "false", ")", ")", ")", ";" ]
[ "creates", "apache", "{" ]
[ "return", "create", "http", "response", "proxy", "(", "null", ")", ";" ]
[ "execute", "the", "request", "with", "a", "dummy", "response", "handler", "and", "error", "response", "handler" ]
[ "http", "client", "request", "execution", "builder", "(", ")", "request", "(", "request", ")", "error", "response", "handler", "(", "new", "null", "error", "response", "handler", "(", ")", ")", "execute", "(", "new", "error", "during", "unmarshalling", "response", "handler", "(", ")", ")", ";" ]
[ "static", "utility", "to", "parse", "a", "field", "of", "type", "short", "from", "a", "byte", "sequence", "that", "represents", "text", "characters", "(", "such", "as", "when", "read", "from", "a", "file", "stream", ")" ]
[ "return", "parse", "field", "(", "bytes", ",", "start", "pos", ",", "length", ",", "(", "char", ")", "0xffff", ")", ";" ]
[ "it", "here", "these", "norm", "methods", "should", "be", "used", "when", "needed", "not", "frivolously" ]
[ "return", "ctx", "is", "geo", "(", ")", "?", "distance", "utils", "norm", "lon", "d", "e", "g", "(", "x", ")", ":", "x", ";" ]
[ "reset", "(", ")", "s", "p", "and", "confines", "to", "world", "bounds", "might", "not", "be", "divisible", "if", "the", "world", "bound", "isn", "t", "divisible", "too" ]
[ "rectangle", "bounds", "=", "ctx", "get", "world", "bounds", "(", ")", ";", "double", "new", "x", "=", "bound", "x", "(", "divisible", "(", "p", "get", "x", "(", ")", ")", ",", "bounds", ")", ";", "double", "new", "y", "=", "bound", "y", "(", "divisible", "(", "p", "get", "y", "(", ")", ")", ",", "bounds", ")", ";", "p", "reset", "(", "new", "x", ",", "new", "y", ")", ";", "return", "p", ";" ]
[ "/", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "/", "*", "overrides", "for", "actual", "serialization", "value", "access", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*" ]
[ "return", "prov", "get", "attribute", "(", "attr", "name", ")", ";" ]
[ "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*" ]
[ "return", "configuration", ";" ]
[ "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*" ]
[ "consul", "health", "check", "repository", "configuration", "conf", "=", "configuration", ";", "if", "(", "conf", "=", "=", "null", ")", "{", "conf", "=", "new", "consul", "health", "check", "repository", "configuration", "(", ")", ";", "}", "return", "conf", "create", "consul", "client", "(", "camel", "context", ")", ";" ]
[ "gets", "side", "hot", "articles" ]
[ "if", "(", "side", "hot", "articles", "is", "empty", "(", ")", ")", "{", "return", "collections", "empty", "list", "(", ")", ";", "}", "return", "j", "s", "o", "ns", "clone", "(", "side", "hot", "articles", ")", ";" ]
[ "gets", "an", "article", "abstract", "by", "the", "specified", "article", "id" ]
[ "final", "j", "s", "o", "n", "object", "value", "=", "article", "abstract", "cache", "get", "(", "article", "id", ")", ";", "if", "(", "null", "=", "=", "value", ")", "{", "return", "null", ";", "}", "return", "value", "opt", "string", "(", "common", "data", ")", ";" ]
[ "gets", "perfect", "articles" ]
[ "if", "(", "perfect", "articles", "is", "empty", "(", ")", ")", "{", "return", "collections", "empty", "list", "(", ")", ";", "}", "return", "j", "s", "o", "ns", "clone", "(", "perfect", "articles", ")", ";" ]
[ "puts", "an", "article", "abstract", "by", "the", "specified", "article", "id", "and", "article", "abstract" ]
[ "final", "j", "s", "o", "n", "object", "value", "=", "new", "j", "s", "o", "n", "object", "(", ")", ";", "value", "put", "(", "common", "data", ",", "article", "abstract", ")", ";", "article", "abstract", "cache", "put", "(", "article", "id", ",", "value", ")", ";" ]
[ "gets", "an", "article", "by", "the", "specified", "article", "id" ]
[ "final", "j", "s", "o", "n", "object", "article", "=", "article", "cache", "get", "(", "id", ")", ";", "if", "(", "null", "=", "=", "article", ")", "{", "return", "null", ";", "}", "return", "j", "s", "o", "ns", "clone", "(", "article", ")", ";" ]
[ "adds", "or", "updates", "the", "specified", "article" ]
[ "final", "string", "article", "id", "=", "article", "opt", "string", "(", "keys", "object", "id", ")", ";", "article", "cache", "put", "(", "article", "id", ",", "j", "s", "o", "ns", "clone", "(", "article", ")", ")", ";", "article", "abstract", "cache", "remove", "(", "article", "id", ")", ";" ]
[ "removes", "an", "article", "by", "the", "specified", "article", "id" ]
[ "article", "cache", "remove", "(", "id", ")", ";", "article", "abstract", "cache", "remove", "(", "id", ")", ";" ]
[ "{" ]
[ "super", "before", "tests", "started", "(", ")", ";", "start", "grids", "(", "servers", "number", "(", ")", ")", ";", "if", "(", "servers", "number", "(", ")", ">", "1", ")", "{", "client", "=", "true", ";", "start", "grid", "(", "servers", "number", "(", ")", ")", ";", "start", "grid", "(", "servers", "number", "(", ")", "+", "1", ")", ";", "client", "=", "false", ";", "}", "await", "partition", "map", "exchange", "(", ")", ";" ]
[ "test", "checking", "all", "operations", "(", "exception", "resume", ")", "on", "suspended", "transaction", "from", "the", "other", "thread", "are", "prohibited" ]
[ "execute", "test", "for", "all", "caches", "(", "new", "c", "i", "2", "exc", "<", "ignite", ",", "ignite", "cache", "<", "integer", ",", "integer", ">", ">", "(", ")", "{", "@", "override", "public", "void", "applyx", "(", "ignite", "ignite", ",", "final", "ignite", "cache", "<", "integer", ",", "integer", ">", "cache", ")", "throws", "exception", "{", "for", "(", "final", "c", "i", "1", "exc", "<", "transaction", ">", "tx", "operation", ":", "suspended", "tx", "prohibited", "ops", ")", "{", "for", "(", "transaction", "isolation", "isolation", ":", "transaction", "isolation", "values", "(", ")", ")", "{", "final", "transaction", "tx", "=", "ignite", "transactions", "(", ")", "tx", "start", "(", "optimistic", ",", "isolation", ")", ";", "cache", "put", "(", "1", ",", "1", ")", ";", "tx", "suspend", "(", ")", ";", "multithreaded", "(", "new", "runnable", "x", "(", ")", "{", "@", "override", "public", "void", "runx", "(", ")", "throws", "exception", "{", "grid", "test", "utils", "assert", "throws", "with", "cause", "(", "tx", "operation", ",", "tx", ",", "ignite", "exception", "class", ")", ";", "}", "}", ",", "1", ")", ";", "tx", "resume", "(", ")", ";", "tx", "close", "(", ")", ";", "assert", "null", "(", "cache", "get", "(", "1", ")", ")", ";", "}", "}", "}", "}", ")", ";" ]
[ "test", "checking", "all", "operations", "(", "exception", "resume", ")", "on", "suspended", "transaction", "are", "prohibited" ]
[ "execute", "test", "for", "all", "caches", "(", "new", "c", "i", "2", "exc", "<", "ignite", ",", "ignite", "cache", "<", "integer", ",", "integer", ">", ">", "(", ")", "{", "@", "override", "public", "void", "applyx", "(", "ignite", "ignite", ",", "final", "ignite", "cache", "<", "integer", ",", "integer", ">", "cache", ")", "throws", "exception", "{", "for", "(", "c", "i", "1", "exc", "<", "transaction", ">", "tx", "operation", ":", "suspended", "tx", "prohibited", "ops", ")", "{", "for", "(", "transaction", "isolation", "isolation", ":", "transaction", "isolation", "values", "(", ")", ")", "{", "transaction", "tx", "=", "ignite", "transactions", "(", ")", "tx", "start", "(", "optimistic", ",", "isolation", ")", ";", "cache", "put", "(", "1", ",", "1", ")", ";", "tx", "suspend", "(", ")", ";", "grid", "test", "utils", "assert", "throws", "with", "cause", "(", "tx", "operation", ",", "tx", ",", "ignite", "exception", "class", ")", ";", "tx", "resume", "(", ")", ";", "tx", "close", "(", ")", ";", "assert", "null", "(", "cache", "get", "(", "1", ")", ")", ";", "}", "}", "}", "}", ")", ";" ]
[ "test", "checking", "timeout", "on", "resumed", "transaction" ]
[ "execute", "test", "for", "all", "caches", "(", "new", "c", "i", "2", "exc", "<", "ignite", ",", "ignite", "cache", "<", "integer", ",", "integer", ">", ">", "(", ")", "{", "@", "override", "public", "void", "applyx", "(", "ignite", "ignite", ",", "final", "ignite", "cache", "<", "integer", ",", "integer", ">", "cache", ")", "throws", "exception", "{", "for", "(", "transaction", "isolation", "isolation", ":", "transaction", "isolation", "values", "(", ")", ")", "{", "final", "transaction", "tx", "=", "ignite", "transactions", "(", ")", "tx", "start", "(", "optimistic", ",", "isolation", ",", "tx", "timeout", ",", "0", ")", ";", "cache", "put", "(", "1", ",", "1", ")", ";", "tx", "suspend", "(", ")", ";", "long", "start", "=", "u", "current", "time", "millis", "(", ")", ";", "while", "(", "tx", "timeout", ">", "=", "u", "current", "time", "millis", "(", ")", "-", "start", ")", "thread", "sleep", "(", "tx", "timeout", "*", "2", ")", ";", "grid", "test", "utils", "assert", "throws", "with", "cause", "(", "new", "callable", "<", "object", ">", "(", ")", "{", "@", "override", "public", "object", "call", "(", ")", "throws", "exception", "{", "tx", "resume", "(", ")", ";", "return", "null", ";", "}", "}", ",", "transaction", "timeout", "exception", "class", ")", ";", "assert", "true", "(", "grid", "test", "utils", "wait", "for", "condition", "(", "new", "pa", "(", ")", "{", "@", "override", "public", "boolean", "apply", "(", ")", "{", "return", "tx", "state", "(", ")", "=", "=", "rolled", "back", ";", "}", "}", ",", "get", "test", "timeout", "(", ")", ")", ")", ";", "assert", "equals", "(", "rolled", "back", ",", "tx", "state", "(", ")", ")", ";", "tx", "close", "(", ")", ";", "}", "}", "}", ")", ";" ]
[ "test", "checking", "timeout", "on", "suspended", "transaction" ]
[ "execute", "test", "for", "all", "caches", "(", "new", "c", "i", "2", "exc", "<", "ignite", ",", "ignite", "cache", "<", "integer", ",", "integer", ">", ">", "(", ")", "{", "@", "override", "public", "void", "applyx", "(", "ignite", "ignite", ",", "final", "ignite", "cache", "<", "integer", ",", "integer", ">", "cache", ")", "throws", "exception", "{", "for", "(", "transaction", "isolation", "isolation", ":", "transaction", "isolation", "values", "(", ")", ")", "{", "final", "transaction", "tx", "=", "ignite", "transactions", "(", ")", "tx", "start", "(", "optimistic", ",", "isolation", ",", "tx", "timeout", ",", "0", ")", ";", "cache", "put", "(", "1", ",", "1", ")", ";", "long", "start", "=", "u", "current", "time", "millis", "(", ")", ";", "while", "(", "tx", "timeout", ">", "=", "u", "current", "time", "millis", "(", ")", "-", "start", ")", "thread", "sleep", "(", "tx", "timeout", "*", "2", ")", ";", "grid", "test", "utils", "assert", "throws", "with", "cause", "(", "new", "callable", "<", "object", ">", "(", ")", "{", "@", "override", "public", "object", "call", "(", ")", "throws", "exception", "{", "tx", "suspend", "(", ")", ";", "return", "null", ";", "}", "}", ",", "transaction", "timeout", "exception", "class", ")", ";", "assert", "true", "(", "grid", "test", "utils", "wait", "for", "condition", "(", "new", "pa", "(", ")", "{", "@", "override", "public", "boolean", "apply", "(", ")", "{", "return", "tx", "state", "(", ")", "=", "=", "rolled", "back", ";", "}", "}", ",", "get", "test", "timeout", "(", ")", ")", ")", ";", "assert", "equals", "(", "rolled", "back", ",", "tx", "state", "(", ")", ")", ";", "tx", "close", "(", ")", ";", "assert", "null", "(", "cache", "get", "(", "1", ")", ")", ";", "}", "}", "}", ")", ";" ]
[ "test", "start", "1", "transaction", "suspend", "tx", "it", "and", "then", "start", "another", "transaction", "trying", "to", "write", "the", "same", "key", "and", "commit", "it" ]
[ "execute", "test", "for", "all", "caches", "(", "new", "c", "i", "2", "exc", "<", "ignite", ",", "ignite", "cache", "<", "integer", ",", "integer", ">", ">", "(", ")", "{", "@", "override", "public", "void", "applyx", "(", "ignite", "ignite", ",", "final", "ignite", "cache", "<", "integer", ",", "integer", ">", "cache", ")", "throws", "exception", "{", "for", "(", "transaction", "isolation", "tx", "1", "isolation", ":", "transaction", "isolation", "values", "(", ")", ")", "{", "for", "(", "transaction", "isolation", "tx", "2", "isolation", ":", "transaction", "isolation", "values", "(", ")", ")", "{", "transaction", "tx", "1", "=", "ignite", "transactions", "(", ")", "tx", "start", "(", "optimistic", ",", "tx", "1", "isolation", ")", ";", "cache", "put", "(", "1", ",", "1", ")", ";", "tx", "1", "suspend", "(", ")", ";", "assert", "false", "(", "cache", "contains", "key", "(", "1", ")", ")", ";", "transaction", "tx", "2", "=", "ignite", "transactions", "(", ")", "tx", "start", "(", "optimistic", ",", "tx", "2", "isolation", ")", ";", "cache", "put", "(", "1", ",", "2", ")", ";", "tx", "2", "commit", "(", ")", ";", "assert", "equals", "(", "2", ",", "(", "int", ")", "cache", "get", "(", "1", ")", ")", ";", "tx", "1", "resume", "(", ")", ";", "assert", "equals", "(", "1", ",", "(", "int", ")", "cache", "get", "(", "1", ")", ")", ";", "tx", "1", "close", "(", ")", ";", "cache", "remove", "all", "(", ")", ";", "}", "}", "}", "}", ")", ";" ]
[ "test", "start", "1", "transaction", "suspend", "tx", "it", "and", "then", "start", "another", "transaction", "trying", "to", "write", "the", "same", "key" ]
[ "execute", "test", "for", "all", "caches", "(", "new", "c", "i", "2", "exc", "<", "ignite", ",", "ignite", "cache", "<", "integer", ",", "integer", ">", ">", "(", ")", "{", "@", "override", "public", "void", "applyx", "(", "ignite", "ignite", ",", "final", "ignite", "cache", "<", "integer", ",", "integer", ">", "cache", ")", "throws", "exception", "{", "for", "(", "transaction", "isolation", "tx", "1", "isolation", ":", "transaction", "isolation", "values", "(", ")", ")", "{", "for", "(", "transaction", "isolation", "tx", "2", "isolation", ":", "transaction", "isolation", "values", "(", ")", ")", "{", "transaction", "tx", "1", "=", "ignite", "transactions", "(", ")", "tx", "start", "(", "optimistic", ",", "tx", "1", "isolation", ")", ";", "cache", "put", "(", "1", ",", "1", ")", ";", "tx", "1", "suspend", "(", ")", ";", "assert", "false", "(", "cache", "contains", "key", "(", "1", ")", ")", ";", "transaction", "tx", "2", "=", "ignite", "transactions", "(", ")", "tx", "start", "(", "optimistic", ",", "tx", "2", "isolation", ")", ";", "cache", "put", "(", "1", ",", "2", ")", ";", "tx", "2", "suspend", "(", ")", ";", "assert", "false", "(", "cache", "contains", "key", "(", "1", ")", ")", ";", "tx", "1", "resume", "(", ")", ";", "assert", "equals", "(", "1", ",", "(", "int", ")", "cache", "get", "(", "1", ")", ")", ";", "tx", "1", "suspend", "(", ")", ";", "tx", "2", "resume", "(", ")", ";", "assert", "equals", "(", "2", ",", "(", "int", ")", "cache", "get", "(", "1", ")", ")", ";", "tx", "2", "rollback", "(", ")", ";", "tx", "1", "resume", "(", ")", ";", "tx", "1", "rollback", "(", ")", ";", "cache", "remove", "all", "(", ")", ";", "}", "}", "}", "}", ")", ";" ]
[ "test", "we", "can", "resume", "and", "complete", "transaction", "if", "topology", "changed", "while", "transaction", "is", "suspended" ]
[ "execute", "test", "for", "all", "caches", "(", "new", "c", "i", "2", "exc", "<", "ignite", ",", "ignite", "cache", "<", "integer", ",", "integer", ">", ">", "(", ")", "{", "@", "override", "public", "void", "applyx", "(", "ignite", "ignite", ",", "final", "ignite", "cache", "<", "integer", ",", "integer", ">", "cache", ")", "throws", "exception", "{", "for", "(", "transaction", "isolation", "isolation", ":", "transaction", "isolation", "values", "(", ")", ")", "{", "transaction", "tx", "=", "ignite", "transactions", "(", ")", "tx", "start", "(", "optimistic", ",", "isolation", ")", ";", "cache", "put", "(", "1", ",", "1", ")", ";", "tx", "suspend", "(", ")", ";", "assert", "equals", "(", "suspended", ",", "tx", "state", "(", ")", ")", ";", "try", "(", "ignite", "ex", "g", "=", "start", "grid", "(", "servers", "number", "(", ")", "+", "3", ")", ")", "{", "tx", "resume", "(", ")", ";", "assert", "equals", "(", "active", ",", "tx", "state", "(", ")", ")", ";", "assert", "equals", "(", "1", ",", "(", "int", ")", "cache", "get", "(", "1", ")", ")", ";", "tx", "commit", "(", ")", ";", "assert", "equals", "(", "1", ",", "(", "int", ")", "cache", "get", "(", "1", ")", ")", ";", "}", "cache", "remove", "all", "(", ")", ";", "}", "}", "}", ")", ";" ]
[ "closure", "body" ]
[ "public", "abstract", "void", "applyx", "(", "e1", "e", "1", ",", "e2", "e", "2", ")", "throws", "exception", ";" ]
[ "{" ]
[ "try", "{", "applyx", "(", "e", "1", ",", "e", "2", ")", ";", "}", "catch", "(", "exception", "e", ")", "{", "throw", "new", "runtime", "exception", "(", "e", ")", ";", "}" ]
[ "closure", "body" ]
[ "public", "abstract", "void", "applyx", "(", "t", "o", ")", "throws", "exception", ";" ]
[ "{" ]
[ "try", "{", "applyx", "(", "o", ")", ";", "}", "catch", "(", "exception", "e", ")", "{", "throw", "new", "runtime", "exception", "(", "e", ")", ";", "}" ]
[ "closure", "body" ]
[ "public", "abstract", "void", "runx", "(", ")", "throws", "exception", ";" ]
[ "{" ]
[ "try", "{", "runx", "(", ")", ";", "}", "catch", "(", "exception", "e", ")", "{", "throw", "new", "runtime", "exception", "(", "e", ")", ";", "}" ]
[ "is", "the", "edge", "v", "-", "w", "in", "the", "level", "graph", "?" ]
[ "return", "(", "dist", "to", "[", "w", "]", "=", "=", "dist", "to", "[", "v", "]", "+", "1", ")", "&", "&", "is", "residual", "graph", "edge", "(", "v", ",", "w", ")", ";" ]
[ "{" ]
[ "context", "start", "subsystem", "element", "(", "namespace", "current", "get", "uri", "string", "(", ")", ",", "false", ")", ";", "model", "node", "node", "=", "context", "get", "model", "node", "(", ")", ";", "write", "archive", "validation", "(", "writer", ",", "node", ")", ";", "write", "bean", "validation", "(", "writer", ",", "node", ")", ";", "write", "tracer", "(", "writer", ",", "node", ")", ";", "write", "work", "managers", "(", "writer", ",", "node", ")", ";", "write", "distributed", "work", "managers", "(", "writer", ",", "node", ")", ";", "write", "bootstrap", "contexts", "(", "writer", ",", "node", ")", ";", "write", "cached", "connection", "manager", "(", "writer", ",", "node", ")", ";", "writer", "write", "end", "element", "(", ")", ";" ]
[ "inherit", "javadoc" ]
[ "int", "hash", "=", "1", ";", "byte", "[", "]", "b", "=", "this", "get", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "count", ";", "i", "+", "+", ")", "hash", "=", "(", "31", "*", "hash", ")", "+", "(", "int", ")", "b", "[", "i", "]", ";", "return", "hash", ";" ]
[ "define", "the", "sort", "order", "of", "the", "buffer" ]
[ "buffer", "right", "=", "(", "(", "buffer", ")", "other", ")", ";", "byte", "[", "]", "lb", "=", "this", "get", "(", ")", ";", "byte", "[", "]", "rb", "=", "right", "get", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "count", "&", "&", "i", "<", "right", "count", ";", "i", "+", "+", ")", "{", "int", "a", "=", "(", "lb", "[", "i", "]", "&", "0xff", ")", ";", "int", "b", "=", "(", "rb", "[", "i", "]", "&", "0xff", ")", ";", "if", "(", "a", "!", "=", "b", ")", "{", "return", "a", "-", "b", ";", "}", "}", "return", "count", "-", "right", "count", ";" ]
[ "inherit", "javadoc" ]
[ "if", "(", "other", "instanceof", "buffer", "&", "&", "this", "!", "=", "other", ")", "{", "return", "compare", "to", "(", "other", ")", "=", "=", "0", ";", "}", "return", "(", "this", "=", "=", "other", ")", ";" ]
[ "inheric", "javadoc" ]
[ "string", "builder", "sb", "=", "new", "string", "builder", "(", "2", "*", "count", ")", ";", "for", "(", "int", "idx", "=", "0", ";", "idx", "<", "count", ";", "idx", "+", "+", ")", "{", "sb", "append", "(", "character", "for", "digit", "(", "(", "bytes", "[", "idx", "]", "&", "0x", "f", "0", ")", ">", ">", "4", ",", "16", ")", ")", ";", "sb", "append", "(", "character", "for", "digit", "(", "bytes", "[", "idx", "]", "&", "0x", "0", "f", ",", "16", ")", ")", ";", "}", "return", "sb", "to", "string", "(", ")", ";" ]
[ "inherit", "javadoc" ]
[ "buffer", "result", "=", "(", "buffer", ")", "super", "clone", "(", ")", ";", "result", "copy", "(", "this", "get", "(", ")", ",", "0", ",", "this", "get", "count", "(", ")", ")", ";", "return", "result", ";" ]
[ "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*" ]
[ "return", "new", "reference", "count", "(", "on", "first", ",", "on", "release", ")", ";" ]
[ "formats", "the", "given", "string", "to", "resemble", "a", "scope", "variable" ]
[ "return", "scope", "variable", "prefix", "+", "scope", "+", "scope", "variable", "suffix", ";" ]
[ "concatenates", "the", "given", "component", "names", "separated", "by", "the", "delimiter", "character", "additionally", "the", "character", "filter", "is", "applied", "to", "all", "component", "names" ]
[ "string", "builder", "sb", "=", "new", "string", "builder", "(", ")", ";", "sb", "append", "(", "filter", "filter", "characters", "(", "components", "[", "0", "]", ")", ")", ";", "for", "(", "int", "x", "=", "1", ";", "x", "<", "components", "length", ";", "x", "+", "+", ")", "{", "sb", "append", "(", "delimiter", ")", ";", "sb", "append", "(", "filter", "filter", "characters", "(", "components", "[", "x", "]", ")", ")", ";", "}", "return", "sb", "to", "string", "(", ")", ";" ]
[ "<", "p", ">", "get", "the", "array", "which", "defines", "the", "exclude", "-", "value", "of", "each", "day", "of", "month", "<", "/", "p", ">" ]
[ "return", "exclude", "days", ";" ]
[ "<", "p", ">", "redefine", "the", "list", "of", "days", "excluded", "the", "array", "list", "should", "contain", "<", "code", ">", "java", "util", "calendar", "<", "/", "code", ">", "objects", "<", "/", "p", ">" ]
[ "if", "(", "days", "=", "=", "null", ")", "{", "exclude", "days", "=", "new", "array", "list", "<", "java", "util", "calendar", ">", "(", ")", ";", "}", "else", "{", "exclude", "days", "=", "days", ";", "}", "data", "sorted", "=", "false", ";" ]
[ "<", "p", ">", "redefine", "a", "certain", "day", "to", "be", "excluded", "(", "true", ")", "or", "included", "(", "false", ")", "<", "/", "p", ">" ]
[ "if", "(", "exclude", ")", "{", "if", "(", "is", "day", "excluded", "(", "day", ")", ")", "{", "return", ";", "}", "exclude", "days", "add", "(", "day", ")", ";", "data", "sorted", "=", "false", ";", "}", "else", "{", "if", "(", "!", "is", "day", "excluded", "(", "day", ")", ")", "{", "return", ";", "}", "remove", "excluded", "day", "(", "day", ",", "true", ")", ";", "}" ]
[ "remove", "the", "given", "day", "from", "the", "list", "of", "excluded", "days" ]
[ "remove", "excluded", "day", "(", "day", ",", "false", ")", ";" ]
[ "returns", "true", "if", "this", "task", "is", "applicable", "to", "the", "given", "project" ]
[ "public", "abstract", "boolean", "is", "applicable", "(", "abstract", "project", "<", "?", ",", "?", ">", "item", ")", ";" ]
[ "convenience", "method", "to", "clear", "a", "masked", "region", "of", "the", "attributes", "bit", "field" ]
[ "attributes", "&", "=", "~", "mask", ";" ]
[ "/", "*", "(", "non", "-", "javadoc", ")" ]
[ "return", "name", "compare", "to", "(", "(", "(", "file", "info", ")", "o", ")", "name", ")", ";" ]
[ "/", "*", "(", "non", "-", "javadoc", ")" ]
[ "return", "get", "attribute", "(", "attribute", "exists", ")", ";" ]
[ "/", "*", "(", "non", "-", "javadoc", ")" ]
[ "if", "(", "attribute", "=", "=", "efs", "attribute", "link", "target", ")", "return", "this", "link", "target", ";", "return", "null", ";" ]
[ "/", "*", "(", "non", "-", "javadoc", ")" ]
[ "return", "is", "set", "(", "attribute", "directory", ")", ";" ]
[ "/", "*", "(", "non", "-", "javadoc", ")" ]
[ "if", "(", "attribute", "=", "=", "efs", "attribute", "read", "only", "&", "&", "is", "attribute", "suported", "(", "efs", "attribute", "owner", "write", ")", ")", "{", "if", "(", "value", ")", "{", "clear", "(", "efs", "attribute", "owner", "write", "|", "efs", "attribute", "other", "write", "|", "efs", "attribute", "group", "write", ")", ";", "set", "(", "efs", "attribute", "immutable", ")", ";", "}", "else", "{", "set", "(", "efs", "attribute", "owner", "write", "|", "efs", "attribute", "owner", "read", ")", ";", "clear", "(", "efs", "attribute", "immutable", ")", ";", "}", "}", "else", "if", "(", "attribute", "=", "=", "efs", "attribute", "executable", "&", "&", "is", "attribute", "suported", "(", "efs", "attribute", "owner", "execute", ")", ")", "{", "if", "(", "value", ")", "set", "(", "efs", "attribute", "owner", "execute", ")", ";", "else", "clear", "(", "efs", "attribute", "owner", "execute", "|", "efs", "attribute", "group", "execute", "|", "efs", "attribute", "other", "execute", ")", ";", "}", "else", "{", "if", "(", "value", ")", "set", "(", "attribute", ")", ";", "else", "clear", "(", "attribute", ")", ";", "}" ]
[ "sets", "whether", "this", "is", "a", "file", "or", "directory" ]
[ "if", "(", "value", ")", "set", "(", "attribute", "directory", ")", ";", "else", "clear", "(", "attribute", "directory", ")", ";" ]
[ "sets", "whether", "this", "file", "or", "directory", "exists" ]
[ "if", "(", "value", ")", "set", "(", "attribute", "exists", ")", ";", "else", "clear", "(", "attribute", "exists", ")", ";" ]
[ "sets", "the", "error", "code", "indicating", "whether", "an", "i", "/", "o", "error", "was", "encountered", "when", "accessing", "the", "file" ]
[ "this", "error", "code", "=", "error", "code", ";" ]
[ "/", "*", "(", "non", "-", "javadoc", ")" ]
[ "last", "modified", "=", "value", ";" ]
[ "sets", "the", "length", "of", "this", "file", "a", "value", "of", "{", "@", "link", "efs", "#", "none", "}", "indicates", "the", "file", "does", "not", "exist", "is", "a", "directory", "or", "the", "length", "could", "not", "be", "computed" ]
[ "this", "length", "=", "value", ";" ]
[ "sets", "the", "name", "of", "this", "file" ]
[ "if", "(", "name", "=", "=", "null", ")", "throw", "new", "illegal", "argument", "exception", "(", ")", ";", "this", "name", "=", "name", ";" ]
[ "sets", "or", "clears", "a", "string", "attribute", "e", "g", "symbolic", "link", "target" ]
[ "if", "(", "attribute", "=", "=", "efs", "attribute", "link", "target", ")", "this", "link", "target", "=", "value", ";" ]
[ "returns", "the", "value", "for", "the", "cumulative", "total", "number", "of", "statements", "that", "can", "be", "made", "in", "all", "loops", "in", "a", "script", "before", "an", "exception", "is", "thrown", "this", "attempts", "to", "prevent", "infinite", "loops", "note", "if", "the", "counter", "is", "set", "to", "0", "no", "loop", "counter", "will", "be", "written" ]
[ "return", "max", "loop", "counter", ";" ]
[ "set", "the", "cumulative", "total", "number", "of", "statements", "that", "can", "be", "made", "in", "all", "loops" ]
[ "this", "max", "loop", "counter", "=", "max", ";" ]
[ "returns", "true", "if", "the", "compiler", "should", "be", "picky", "this", "means", "it", "runs", "slower", "and", "enables", "additional", "runtime", "checks", "throwing", "an", "exception", "if", "there", "are", "ambiguities", "in", "the", "grammar", "or", "other", "low", "level", "parsing", "problems" ]
[ "return", "picky", ";" ]
[ "set", "to", "true", "if", "compilation", "should", "be", "picky" ]
[ "this", "picky", "=", "picky", ";" ]
[ "returns", "initial", "call", "site", "depth", "this", "means", "we", "pretend", "we", "ve", "already", "seen", "n", "different", "types", "to", "better", "exercise", "fallback", "code", "in", "tests" ]
[ "return", "initial", "call", "site", "depth", ";" ]
[ "for", "testing", "megamorphic", "fallbacks", "do", "not", "use" ]
[ "this", "initial", "call", "site", "depth", "=", "depth", ";" ]
[ "are", "regexes", "enabled", "?", "they", "are", "currently", "disabled", "by", "default", "because", "they", "break", "out", "of", "the", "loop", "counter", "and", "even", "fairly", "simple", "<", "strong", ">", "looking", "<", "/", "strong", ">", "regexes", "can", "cause", "stack", "overflows" ]
[ "return", "regexes", "enabled", ";" ]
[ "are", "regexes", "enabled", "?", "they", "are", "currently", "disabled", "by", "default", "because", "they", "break", "out", "of", "the", "loop", "counter", "and", "even", "fairly", "simple", "<", "strong", ">", "looking", "<", "/", "strong", ">", "regexes", "can", "cause", "stack", "overflows" ]
[ "this", "regexes", "enabled", "=", "regexes", "enabled", ";" ]
[ "set", "the", "data", "type", "name", "if", "you", "specify", "xml", ":", "xyz", "the", "validator", "will", "be", "picked", "up", "if", "source", "type", "is", "xml", ":", "xyz", "if", "you", "specify", "just", "xml", "the", "validator", "matches", "with", "all", "of", "xml", "source", "type", "like", "xml", ":", "abc", "or", "xml", ":", "def" ]
[ "this", "type", "=", "type", ";", "return", "this", ";" ]
[ "set", "the", "data", "type", "using", "java", "class" ]
[ "this", "type", "=", "new", "data", "type", "(", "type", ")", "to", "string", "(", ")", ";", "return", "this", ";" ]
[ "set", "the", "uri", "to", "be", "used", "for", "the", "endpoint", "{", "@", "link", "validator", "}", "@", "see", "endpoint", "validator", "definition", "processor", "validator" ]
[ "reset", "type", "(", ")", ";", "this", "uri", "=", "uri", ";", "return", "this", ";" ]
[ "set", "the", "{", "@", "link", "expression", "}", "to", "be", "used", "for", "the", "predicate", "{", "@", "link", "validator", "}", "@", "see", "predicate", "validator", "definition", "processor", "validator" ]
[ "reset", "type", "(", ")", ";", "this", "expression", "=", "new", "expression", "definition", "(", "expression", ")", ";", "return", "this", ";" ]
[ "set", "the", "{", "@", "link", "predicate", "}", "to", "be", "used", "for", "the", "predicate", "{", "@", "link", "validator", "}", "@", "see", "predicate", "validator", "definition", "processor", "validator" ]
[ "reset", "type", "(", ")", ";", "this", "expression", "=", "new", "expression", "definition", "(", "predicate", ")", ";", "return", "this", ";" ]
[ "set", "the", "java", "{", "@", "code", "class", "}", "represents", "a", "custom", "{", "@", "code", "validator", "}", "implementation", "class", "@", "see", "custom", "validator", "definition" ]
[ "reset", "type", "(", ")", ";", "this", "clazz", "=", "clazz", ";", "return", "this", ";" ]
[ "set", "the", "java", "bean", "name", "to", "be", "used", "for", "custom", "{", "@", "code", "validator", "}", "@", "see", "custom", "validator", "definition" ]
[ "reset", "type", "(", ")", ";", "this", "bean", "ref", "=", "ref", ";", "return", "this", ";" ]
[ "gets", "a", "reference", "to", "a", "given", "drawable", "and", "prepares", "it", "for", "use", "with", "tinting", "through" ]
[ "return", "drawable", "compat", "wrap", "(", "resources", "compat", "get", "drawable", "(", "context", "get", "resources", "(", ")", ",", "res", "id", ",", "null", ")", ")", ";" ]
[ "the", "file", "before", "it", "is", "compressed" ]
[ "this", "in", "file", "=", "new", "exif", "interface", "(", "file", "path", ")", ";" ]
[ "the", "file", "after", "it", "has", "been", "compressed" ]
[ "this", "out", "file", "=", "new", "exif", "interface", "(", "file", "path", ")", ";" ]
[ "reads", "all", "the", "exif", "data", "from", "the", "input", "file" ]
[ "this", "aperture", "=", "in", "file", "get", "attribute", "(", "exif", "interface", "tag", "aperture", ")", ";", "this", "datetime", "=", "in", "file", "get", "attribute", "(", "exif", "interface", "tag", "datetime", ")", ";", "this", "exposure", "time", "=", "in", "file", "get", "attribute", "(", "exif", "interface", "tag", "exposure", "time", ")", ";", "this", "flash", "=", "in", "file", "get", "attribute", "(", "exif", "interface", "tag", "flash", ")", ";", "this", "focal", "length", "=", "in", "file", "get", "attribute", "(", "exif", "interface", "tag", "focal", "length", ")", ";", "this", "gps", "altitude", "=", "in", "file", "get", "attribute", "(", "exif", "interface", "tag", "gps", "altitude", ")", ";", "this", "gps", "altitude", "ref", "=", "in", "file", "get", "attribute", "(", "exif", "interface", "tag", "gps", "altitude", "ref", ")", ";", "this", "gps", "date", "stamp", "=", "in", "file", "get", "attribute", "(", "exif", "interface", "tag", "gps", "datestamp", ")", ";", "this", "gps", "latitude", "=", "in", "file", "get", "attribute", "(", "exif", "interface", "tag", "gps", "latitude", ")", ";", "this", "gps", "latitude", "ref", "=", "in", "file", "get", "attribute", "(", "exif", "interface", "tag", "gps", "latitude", "ref", ")", ";", "this", "gps", "longitude", "=", "in", "file", "get", "attribute", "(", "exif", "interface", "tag", "gps", "longitude", ")", ";", "this", "gps", "longitude", "ref", "=", "in", "file", "get", "attribute", "(", "exif", "interface", "tag", "gps", "longitude", "ref", ")", ";", "this", "gps", "processing", "method", "=", "in", "file", "get", "attribute", "(", "exif", "interface", "tag", "gps", "processing", "method", ")", ";", "this", "gps", "timestamp", "=", "in", "file", "get", "attribute", "(", "exif", "interface", "tag", "gps", "timestamp", ")", ";", "this", "iso", "=", "in", "file", "get", "attribute", "(", "exif", "interface", "tag", "iso", ")", ";", "this", "make", "=", "in", "file", "get", "attribute", "(", "exif", "interface", "tag", "make", ")", ";", "this", "model", "=", "in", "file", "get", "attribute", "(", "exif", "interface", "tag", "model", ")", ";", "this", "orientation", "=", "in", "file", "get", "attribute", "(", "exif", "interface", "tag", "orientation", ")", ";", "this", "white", "balance", "=", "in", "file", "get", "attribute", "(", "exif", "interface", "tag", "white", "balance", ")", ";" ]
[ "<", "p", ">", "the", "aws", "account", "that", "is", "set", "as", "the", "aws", "firewall", "manager", "administrator", "<", "/", "p", ">" ]
[ "set", "admin", "account", "(", "admin", "account", ")", ";", "return", "this", ";" ]
[ "<", "p", ">", "the", "status", "of", "the", "aws", "account", "that", "you", "set", "as", "the", "aws", "firewall", "manager", "administrator", "<", "/", "p", ">" ]
[ "this", "role", "status", "=", "role", "status", ";" ]
[ "<", "p", ">", "the", "status", "of", "the", "aws", "account", "that", "you", "set", "as", "the", "aws", "firewall", "manager", "administrator", "<", "/", "p", ">" ]
[ "return", "this", "role", "status", ";" ]