docstring_tokens
sequence
code_tokens
sequence
[ "sets", "the", "token", "number", "referenced", "by", "the", "match" ]
[ "token", "ref", "=", "i", ";" ]
[ "gets", "the", "token", "number", "referenced", "by", "the", "match" ]
[ "return", "token", "ref", ";" ]
[ "used", "to", "let", "lt", "know", "that", "it", "should", "change", "the", "case", "of", "the", "match" ]
[ "return", "case", "conversion", "type", "!", "=", "case", "conversion", "none", ";" ]
[ "visit", "invoke", "dynamic", "insn" ]
[ "super", "visit", "parameter", "(", "name", ",", "access", ")", ";" ]
[ "this", "is", "only", "used", "in", "test", "for", "legacy", "purpose", "please", "call", "pipeline", "service", "save", "(", "a", "pipeline", ")", "instead", "<", "p", "/", ">", "this", "is", "particularly", "bad", "as", "it", "does", "not", "do", "the", "same", "as", "what", "the", "system", "does", "in", "the", "real", "code", "in", "particular", "it", "does", "not", "save", "the", "job", "instances", "correctly", "we", "need", "to", "remove", "this", "method", "and", "make", "sure", "that", "tests", "are", "using", "the", "same", "behaviour", "as", "the", "real", "code" ]
[ "update", "counter", "(", "pipeline", ")", ";", "pipeline", "saved", "pipeline", "=", "save", "(", "pipeline", ")", ";", "for", "(", "stage", "stage", ":", "pipeline", "get", "stages", "(", ")", ")", "{", "stage", "dao", "save", "with", "jobs", "(", "saved", "pipeline", ",", "stage", ")", ";", "}", "return", "saved", "pipeline", ";" ]
[ "return", "the", "aop", "proxy", "factory", "that", "this", "proxy", "config", "uses" ]
[ "return", "this", "aop", "proxy", "factory", ";" ]
[ "subclasses", "should", "call", "this", "to", "get", "a", "new", "aop", "proxy", "they", "should", "<", "b", ">", "not", "<", "/", "b", ">", "create", "an", "aop", "proxy", "with", "{" ]
[ "if", "(", "!", "this", "active", ")", "{", "activate", "(", ")", ";", "}", "return", "get", "aop", "proxy", "factory", "(", ")", "create", "aop", "proxy", "(", "this", ")", ";" ]
[ "activate", "this", "proxy", "configuration" ]
[ "this", "active", "=", "true", ";", "for", "(", "advised", "support", "listener", "listener", ":", "this", "listeners", ")", "{", "listener", "activated", "(", "this", ")", ";", "}" ]
[ "propagate", "advice", "change", "event", "to", "all", "advised", "support", "listeners" ]
[ "super", "advice", "changed", "(", ")", ";", "synchronized", "(", "this", ")", "{", "if", "(", "this", "active", ")", "{", "for", "(", "advised", "support", "listener", "listener", ":", "this", "listeners", ")", "{", "listener", "advice", "changed", "(", "this", ")", ";", "}", "}", "}" ]
[ "subclasses", "can", "call", "this", "to", "check", "whether", "any", "aop", "proxies", "have", "been", "created", "yet" ]
[ "return", "this", "active", ";" ]
[ "returns", "the", "color", "selected", "by", "the", "user" ]
[ "return", "m", "panel", "get", "color", "(", ")", ";" ]
[ "creates", "a", "{", "@", "code", "b", "g", "f", "x", "release", "function", "callback", "}", "instance", "from", "the", "specified", "function", "pointer" ]
[ "b", "g", "f", "x", "release", "function", "callback", "i", "instance", "=", "callback", "get", "(", "function", "pointer", ")", ";", "return", "instance", "instanceof", "b", "g", "f", "x", "release", "function", "callback", "?", "(", "b", "g", "f", "x", "release", "function", "callback", ")", "instance", ":", "new", "container", "(", "function", "pointer", ",", "instance", ")", ";" ]
[ "like", "{" ]
[ "return", "function", "pointer", "=", "=", "null", "?", "null", ":", "create", "(", "function", "pointer", ")", ";" ]
[ "creates", "a", "{" ]
[ "return", "instance", "instanceof", "b", "g", "f", "x", "release", "function", "callback", "?", "(", "b", "g", "f", "x", "release", "function", "callback", ")", "instance", ":", "new", "container", "(", "instance", "address", "(", ")", ",", "instance", ")", ";" ]
[ "/", "*", "todo", "this", "should", "use", "the", "decode", "/", "crop", "/", "encode", "single", "step", "api", "so", "that", "the", "whole", "(", "possibly", "large", ")", "bitmap", "doesn", "t", "need", "to", "be", "read", "into", "memory" ]
[ "if", "(", "crop", "view", "=", "=", "null", "|", "|", "is", "saving", ")", "{", "return", ";", "}", "is", "saving", "=", "true", ";", "bitmap", "cropped", "image", "=", "null", ";", "rect", "r", "=", "crop", "view", "get", "scaled", "crop", "rect", "(", "sample", "size", ")", ";", "int", "width", "=", "r", "width", "(", ")", ";", "int", "height", "=", "r", "height", "(", ")", ";", "int", "out", "width", "=", "width", ",", "out", "height", "=", "height", ";", "if", "(", "max", "x", ">", "0", "&", "&", "max", "y", ">", "0", "&", "&", "(", "width", ">", "max", "x", "|", "|", "height", ">", "max", "y", ")", ")", "{", "float", "ratio", "=", "(", "float", ")", "width", "/", "(", "float", ")", "height", ";", "if", "(", "(", "float", ")", "max", "x", "/", "(", "float", ")", "max", "y", ">", "ratio", ")", "{", "out", "height", "=", "max", "y", ";", "out", "width", "=", "(", "int", ")", "(", "(", "float", ")", "max", "y", "*", "ratio", "+", "5f", ")", ";", "}", "else", "{", "out", "width", "=", "max", "x", ";", "out", "height", "=", "(", "int", ")", "(", "(", "float", ")", "max", "x", "/", "ratio", "+", "5f", ")", ";", "}", "}", "if", "(", "in", "memory", "crop", "&", "&", "rotate", "bitmap", "!", "=", "null", ")", "{", "cropped", "image", "=", "in", "memory", "crop", "(", "rotate", "bitmap", ",", "cropped", "image", ",", "r", ",", "width", ",", "height", ",", "out", "width", ",", "out", "height", ")", ";", "if", "(", "cropped", "image", "!", "=", "null", ")", "{", "image", "view", "set", "image", "bitmap", "reset", "base", "(", "cropped", "image", ",", "true", ")", ";", "image", "view", "center", "(", "true", ",", "true", ")", ";", "image", "view", "highlight", "views", "clear", "(", ")", ";", "}", "}", "else", "{", "try", "{", "cropped", "image", "=", "decode", "region", "crop", "(", "cropped", "image", ",", "r", ")", ";", "}", "catch", "(", "illegal", "argument", "exception", "e", ")", "{", "set", "result", "exception", "(", "e", ")", ";", "finish", "(", ")", ";", "return", ";", "}", "if", "(", "cropped", "image", "!", "=", "null", ")", "{", "image", "view", "set", "image", "rotate", "bitmap", "reset", "base", "(", "new", "rotate", "bitmap", "(", "cropped", "image", ",", "exif", "rotation", ")", ",", "true", ")", ";", "image", "view", "center", "(", "true", ",", "true", ")", ";", "image", "view", "highlight", "views", "clear", "(", ")", ";", "}", "}", "save", "image", "(", "cropped", "image", ")", ";" ]
[ "generate", "fingerprint", "of", "str", "equivalent", "to", "utf", "-", "encoding", "str", "into", "bytes", "and", "then", "fingerprinting", "those", "bytes" ]
[ "byte", "[", "]", "tmp", "=", "str", "get", "bytes", "(", "utf", "8", ")", ";", "return", "fp", "fingerprint", "(", "tmp", ",", "0", ",", "tmp", "length", ")", ";" ]
[ "tells", "if", "the", "given", "class", "is", "a", "spock", "specification", "might", "return", "<", "tt", ">", "false", "<", "/", "tt", ">", "even", "though", "the", "class", "implements", "<", "tt", ">", "spock", "lang", "specification", "<", "/", "tt", ">", "this", "can", "happen", "if", "the", "class", "wasn", "t", "compiled", "properly", "(", "i", "e", "spock", "s", "ast", "transform", "wasn", "t", "run", ")" ]
[ "return", "clazz", "is", "annotation", "present", "(", "spec", "metadata", "class", ")", ";" ]
[ "returns", "the", "number", "of", "features", "contained", "in", "the", "given", "specification", "because", "spock", "allows", "for", "the", "dynamic", "creation", "of", "new", "features", "at", "specification", "run", "time", "this", "number", "is", "only", "an", "estimate" ]
[ "check", "is", "spec", "(", "spec", ")", ";", "int", "count", "=", "0", ";", "do", "{", "for", "(", "method", "method", ":", "spec", "get", "declared", "methods", "(", ")", ")", "if", "(", "method", "is", "annotation", "present", "(", "feature", "metadata", "class", ")", ")", "count", "+", "+", ";", "spec", "=", "spec", "get", "superclass", "(", ")", ";", "}", "while", "(", "spec", "!", "=", "null", "&", "&", "is", "spec", "(", "spec", ")", ")", ";", "return", "count", ";" ]
[ "a", "version", "of", "the", "{" ]
[ "add", "(", "name", "and", "value", ",", "name", "and", "value", ")", ";", "return", "this", ";" ]
[ "i", "can", "t", "do", "this", "with" ]
[ "start", "thread", "(", "type", ",", "stop", "after", "one", ",", "new", "atomic", "boolean", "(", ")", ")", ";" ]
[ "in", "hive", "1", "3", "0", "delta", "file", "names", "changed", "to", "delta", "xxxx", "yyyy", "zzzz", ";", "prior", "to", "that", "the", "name", "was", "delta", "xxxx", "yyyy", "we", "want", "to", "run", "compaction", "tests", "such", "that", "both", "formats", "are", "used", "since", "new", "(", "1", "3", ")", "code", "has", "to", "be", "able", "to", "read", "old", "files" ]
[ "abstract", "boolean", "use", "hive", "1", "3", "0", "delta", "dir", "name", "(", ")", ";" ]
[ "delta", "dir", "name", "after", "compaction" ]
[ "return", "acid", "utils", "delta", "subdir", "(", "min", "txn", "id", ",", "max", "txn", "id", ")", ";" ]
[ "returns", "a", "string", "containing", "the", "{", "@", "link", "query", "spaces", "}", "graph", "as", "a", "tree", "structure" ]
[ "return", "as", "string", "(", "spaces", ",", "0", ",", "alias", "resolution", "context", ")", ";" ]
[ "returns", "a", "string", "containing", "the", "{", "@", "link", "query", "spaces", "}", "graph", "as", "a", "tree", "structure", "starting", "at", "a", "particular", "depth" ]
[ "final", "byte", "array", "output", "stream", "byte", "array", "output", "stream", "=", "new", "byte", "array", "output", "stream", "(", ")", ";", "final", "print", "stream", "print", "stream", "=", "new", "print", "stream", "(", "byte", "array", "output", "stream", ")", ";", "write", "(", "spaces", ",", "depth", ",", "alias", "resolution", "context", ",", "print", "stream", ")", ";", "print", "stream", "flush", "(", ")", ";", "return", "new", "string", "(", "byte", "array", "output", "stream", "to", "byte", "array", "(", ")", ")", ";" ]
[ "returns", "a", "string", "containing", "the", "{", "@", "link", "query", "spaces", "}", "graph", "as", "a", "tree", "structure", "starting", "at", "a", "particular", "depth" ]
[ "write", "(", "spaces", ",", "depth", ",", "alias", "resolution", "context", ",", "new", "print", "writer", "(", "print", "stream", ")", ")", ";" ]
[ "<", "p", ">", "the", "access", "key", "for", "the", "session", "<", "/", "p", ">" ]
[ "set", "access", "key", "id", "(", "access", "key", "id", ")", ";", "return", "this", ";" ]
[ "<", "p", ">", "the", "secret", "access", "key", "for", "the", "session", "<", "/", "p", ">" ]
[ "set", "secret", "access", "key", "(", "secret", "access", "key", ")", ";", "return", "this", ";" ]
[ "<", "p", ">", "the", "token", "for", "the", "session", "<", "/", "p", ">" ]
[ "set", "session", "token", "(", "session", "token", ")", ";", "return", "this", ";" ]
[ "<", "p", ">", "one", "or", "more", "iam", "instance", "profile", "associations", "<", "/", "p", ">" ]
[ "if", "(", "association", "ids", "=", "=", "null", ")", "{", "association", "ids", "=", "new", "com", "amazonaws", "internal", "sdk", "internal", "list", "<", "string", ">", "(", ")", ";", "}", "return", "association", "ids", ";" ]
[ "<", "p", ">", "one", "or", "more", "iam", "instance", "profile", "associations", "<", "/", "p", ">" ]
[ "if", "(", "association", "ids", "=", "=", "null", ")", "{", "this", "association", "ids", "=", "null", ";", "return", ";", "}", "this", "association", "ids", "=", "new", "com", "amazonaws", "internal", "sdk", "internal", "list", "<", "string", ">", "(", "association", "ids", ")", ";" ]
[ "<", "p", ">", "the", "association", "i", "ds", "that", "you", "want", "to", "execute", "immediately", "and", "only", "one", "time", "<", "/", "p", ">", "<", "p", ">", "<", "b", ">", "note", ":", "<", "/", "b", ">", "this", "method", "appends", "the", "values", "to", "the", "existing", "list", "(", "if", "any", ")", "use", "{", "@", "link", "#", "set", "association", "ids", "(", "java", "util", "collection", ")", "}", "or", "{", "@", "link", "#", "with", "association", "ids", "(", "java", "util", "collection", ")", "}", "if", "you", "want", "to", "override", "the", "existing", "values", "<", "/", "p", ">" ]
[ "if", "(", "this", "association", "ids", "=", "=", "null", ")", "{", "set", "association", "ids", "(", "new", "com", "amazonaws", "internal", "sdk", "internal", "list", "<", "string", ">", "(", "association", "ids", "length", ")", ")", ";", "}", "for", "(", "string", "ele", ":", "association", "ids", ")", "{", "this", "association", "ids", "add", "(", "ele", ")", ";", "}", "return", "this", ";" ]
[ "<", "p", ">", "the", "association", "i", "ds", "that", "you", "want", "to", "execute", "immediately", "and", "only", "one", "time", "<", "/", "p", ">" ]
[ "set", "association", "ids", "(", "association", "ids", ")", ";", "return", "this", ";" ]
[ "setter", "for", "devices" ]
[ "devices", "put", "(", "name", ",", "device", "i", "d", ")", ";" ]
[ "getter", "for", "device" ]
[ "return", "devices", "get", "(", "name", ")", ";" ]
[ "getter", "for", "config", "parameter" ]
[ "return", "config", "params", ";" ]
[ "setter", "for", "config", "parameter" ]
[ "this", "config", "params", "=", "config", "params", ";" ]
[ "getter", "for", "the", "message", "item", "id" ]
[ "return", "message", "item", "id", ";" ]
[ "setter", "for", "the", "message", "item", "id" ]
[ "try", "{", "this", "message", "item", "id", "=", "integer", "parse", "int", "(", "toggle", "time", ")", ";", "}", "catch", "(", "number", "format", "exception", "e", ")", "{", "this", "message", "item", "id", "=", "0", ";", "}" ]
[ "getter", "for", "message", "part", "id" ]
[ "return", "message", "part", ";" ]
[ "setter", "for", "the", "message", "part", "id" ]
[ "try", "{", "this", "message", "part", "=", "integer", "parse", "int", "(", "port", ")", ";", "}", "catch", "(", "number", "format", "exception", "e", ")", "{", "this", "message", "part", "=", "0", ";", "}" ]
[ "evaluates", "a", "visibility", "criterium", "match", "on", "a", "node" ]
[ "return", "node", "get", "raw", "node", "(", ")", "is", "visible", "(", ")", "=", "=", "(", "visibility", "state", "=", "=", "visibility", "state", "visible", ")", ";" ]
[ "returns", "a", "one", "time", "nonce", "to", "be", "used", "with", "the", "api", "call", "specified", "by", "the", "url" ]
[ "string", "nonce", "=", "long", "to", "hex", "string", "(", "random", "next", "long", "(", ")", ")", ";", "this", "nonces", "put", "(", "nonce", ",", "new", "nonce", "(", "nonce", ",", "api", "url", ",", "true", ")", ")", ";", "return", "nonce", ";" ]
[ "returns", "a", "nonce", "that", "will", "be", "valid", "for", "the", "lifetime", "of", "the", "zap", "process", "to", "used", "with", "the", "api", "call", "specified", "by", "the", "url" ]
[ "string", "nonce", "=", "long", "to", "hex", "string", "(", "random", "next", "long", "(", ")", ")", ";", "this", "nonces", "put", "(", "nonce", ",", "new", "nonce", "(", "nonce", ",", "api", "url", ",", "false", ")", ")", ";", "return", "nonce", ";" ]
[ "returns", "true", "if", "the", "api", "call", "has", "a", "valid", "key" ]
[ "try", "{", "return", "this", "has", "valid", "key", "(", "msg", "get", "request", "header", "(", ")", ",", "get", "params", "(", "msg", "get", "request", "header", "(", ")", "get", "u", "r", "i", "(", ")", "get", "escaped", "query", "(", ")", ")", ")", ";", "}", "catch", "(", "api", "exception", "e", ")", "{", "logger", "error", "(", "e", "get", "message", "(", ")", ",", "e", ")", ";", "return", "false", ";", "}" ]
[ "https", ":", "/", "/", "github", "com", "/", "aws", "/", "aws", "-", "sdk", "-", "java", "/", "issues", "/", "812" ]
[ "new", "profiles", "config", "file", "(", "(", "file", ")", "null", ")", ";" ]
[ "set", "the", "search", "string", "used", "to", "narrow", "the", "filtered", "set", "of", "builds" ]
[ "this", "search", "string", "=", "search", "string", ";" ]
[ "add", "build", "items", "to", "the", "history", "page" ]
[ "add", "internal", "(", "run", "items", ")", ";" ]
[ "add", "build", "items", "to", "the", "history", "page" ]
[ "add", "internal", "(", "run", "items", ")", ";" ]
[ "add", "run", "items", "and", "queued", "items", "to", "the", "history", "page" ]
[ "sort", "(", "queue", "items", ")", ";", "add", "internal", "(", "iterables", "concat", "(", "queue", "items", ",", "run", "items", ")", ")", ";" ]
[ "get", "the", "number", "of", "items", "required", "to", "fill", "the", "page" ]
[ "return", "math", "max", "(", "0", ",", "(", "max", "entries", "-", "size", "(", ")", ")", ")", ";" ]
[ "determines", "the", "selected", "view", "of", "the", "tree", "component" ]
[ "final", "tree", "path", "path", "=", "m", "tree", "get", "selection", "path", "(", ")", ";", "if", "(", "path", "=", "=", "null", ")", "{", "return", "null", ";", "}", "final", "object", "component", "=", "path", "get", "last", "path", "component", "(", ")", ";", "if", "(", "component", "instanceof", "c", "view", "icon", "node", ")", "{", "return", "(", "(", "c", "view", "icon", "node", ")", "component", ")", "get", "view", "(", ")", ";", "}", "else", "{", "return", "null", ";", "}" ]
[ "the", "range", "of", "characters", "in", "the", "original", "source", "to", "replace" ]
[ "return", "replace", "range", ";" ]
[ "the", "string", "to", "replace", "the", "range", "of", "characters", "with" ]
[ "return", "replacement", "string", ";" ]
[ "since", "the", "two", "es", "are", "not", "the", "same" ]
[ "check", "overrides", "in", "set", "(", "immutable", "set", "<", "class", "<", "?", ">", ">", "of", "(", "collection", "class", ",", "list", "class", ",", "abstract", "collection", "class", ",", "abstract", "list", "class", ")", ")", ";" ]
[ "by", "default", "returns", "the", "name", "returned", "by", "{", "@", "code", "get", "name", "(", ")", "}" ]
[ "return", "get", "name", "(", ")", ";" ]
[ "set", "the", "order", "for", "the", "resulting", "{" ]
[ "this", "order", "=", "order", ";" ]
[ "returns", "the", "{", "@", "code", "locale", "}", "of", "the", "{", "@", "code", "formatter", "}" ]
[ "check", "closed", "(", ")", ";", "return", "locale", ";" ]
[ "returns", "the", "output", "destination", "of", "the", "{", "@", "code", "formatter", "}" ]
[ "check", "closed", "(", ")", ";", "return", "out", ";" ]
[ "returns", "the", "content", "by", "calling", "the", "{", "@", "code", "to", "string", "(", ")", "}", "method", "of", "the", "output", "destination" ]
[ "check", "closed", "(", ")", ";", "return", "out", "to", "string", "(", ")", ";" ]
[ "flushes", "the", "{", "@", "code", "formatter", "}", "if", "the", "output", "destination", "is", "{", "@", "link", "flushable", "}", "then", "the", "method", "{", "@", "code", "flush", "(", ")", "}", "will", "be", "called", "on", "that", "destination" ]
[ "check", "closed", "(", ")", ";", "if", "(", "out", "instanceof", "flushable", ")", "{", "try", "{", "(", "(", "flushable", ")", "out", ")", "flush", "(", ")", ";", "}", "catch", "(", "i", "o", "exception", "e", ")", "{", "last", "i", "o", "exception", "=", "e", ";", "}", "}" ]
[ "closes", "the", "{", "@", "code", "formatter", "}", "if", "the", "output", "destination", "is", "{", "@", "link", "closeable", "}", "then", "the", "method", "{", "@", "code", "close", "(", ")", "}", "will", "be", "called", "on", "that", "destination" ]
[ "closed", "=", "true", ";", "try", "{", "if", "(", "out", "instanceof", "closeable", ")", "{", "(", "(", "closeable", ")", "out", ")", "close", "(", ")", ";", "}", "}", "catch", "(", "i", "o", "exception", "e", ")", "{", "last", "i", "o", "exception", "=", "e", ";", "}" ]
[ "writes", "a", "formatted", "string", "to", "the", "output", "destination", "of", "the", "{", "@", "code", "formatter", "}" ]
[ "return", "format", "(", "locale", ",", "format", ",", "args", ")", ";" ]
[ "retrieve", "the", "response", "flags" ]
[ "return", "flags", ";" ]
[ "/", "*", "sets", "qualified", "char", "as", "one", "of", "the", "flags", "if", "the", "char", "is", "qualified", "sets", "it", "as", "a", "flag", "and", "returns", "true", "or", "else", "returns", "false" ]
[ "int", "new", "flag", ";", "switch", "(", "c", ")", "{", "case", "'", "-", "'", ":", "{", "new", "flag", "=", "flag", "minus", ";", "break", ";", "}", "case", "'", "#", "'", ":", "{", "new", "flag", "=", "flag", "sharp", ";", "break", ";", "}", "case", "'", "+", "'", ":", "{", "new", "flag", "=", "flag", "add", ";", "break", ";", "}", "case", "'", "'", ":", "{", "new", "flag", "=", "flag", "space", ";", "break", ";", "}", "case", "'", "0", "'", ":", "{", "new", "flag", "=", "flag", "zero", ";", "break", ";", "}", "case", "'", ",", "'", ":", "{", "new", "flag", "=", "flag", "comma", ";", "break", ";", "}", "case", "'", "(", "'", ":", "{", "new", "flag", "=", "flag", "parenthesis", ";", "break", ";", "}", "default", ":", "return", "false", ";", "}", "if", "(", "0", "!", "=", "(", "flags", "&", "new", "flag", ")", ")", "{", "throw", "new", "duplicate", "format", "flags", "exception", "(", "string", "value", "of", "(", "c", ")", ")", ";", "}", "flags", "=", "(", "flags", "|", "new", "flag", ")", ";", "str", "flags", "append", "(", "c", ")", ";", "return", "true", ";" ]
[ "/", "*", "gets", "next", "char", "from", "the", "format", "string" ]
[ "if", "(", "format", "has", "remaining", "(", ")", ")", "{", "return", "format", "get", "(", ")", ";", "}", "return", "eos", ";" ]
[ "/", "*", "parses", "integer", "value", "from", "the", "given", "buffer" ]
[ "int", "start", "=", "buffer", "position", "(", ")", "-", "1", ";", "int", "end", "=", "buffer", "limit", "(", ")", ";", "while", "(", "buffer", "has", "remaining", "(", ")", ")", "{", "if", "(", "!", "character", "is", "digit", "(", "buffer", "get", "(", ")", ")", ")", "{", "end", "=", "buffer", "position", "(", ")", "-", "1", ";", "break", ";", "}", "}", "buffer", "position", "(", "0", ")", ";", "string", "int", "str", "=", "buffer", "sub", "sequence", "(", "start", ",", "end", ")", "to", "string", "(", ")", ";", "buffer", "position", "(", "end", ")", ";", "try", "{", "return", "integer", "parse", "int", "(", "int", "str", ")", ";", "}", "catch", "(", "number", "format", "exception", "e", ")", "{", "return", "format", "token", "unset", ";", "}" ]
[ "insert", "data", "in", "the", "source", "table" ]
[ "for", "(", "int", "idx", "=", "0", ";", "idx", "<", "insert", "statement", "length", ";", "idx", "+", "+", ")", "{", "db", "exec", "statement", "(", "insert", "statement", "[", "idx", "]", ")", ";", "}" ]
[ "fill", "row", "with", "the", "given", "value", "if", "the", "value", "type", "is", "other", "than", "long", "string", "byte", "[", "]", "or", "double", "the", "null", "will", "be", "filled" ]
[ "if", "(", "put", "value", "(", "window", ",", "value", ",", "pos", ",", "column", ")", ")", "{", "return", "true", ";", "}", "else", "{", "window", "free", "last", "row", "(", ")", ";", "return", "false", ";", "}" ]
[ "put", "the", "value", "in", "given", "window", "if", "the", "value", "type", "is", "other", "than", "long", "string", "byte", "[", "]", "or", "double", "the", "null", "will", "be", "filled" ]
[ "if", "(", "value", "=", "=", "null", ")", "{", "return", "window", "put", "null", "(", "pos", ",", "column", ")", ";", "}", "else", "if", "(", "value", "instanceof", "long", ")", "{", "return", "window", "put", "long", "(", "(", "long", ")", "value", ",", "pos", ",", "column", ")", ";", "}", "else", "if", "(", "value", "instanceof", "string", ")", "{", "return", "window", "put", "string", "(", "(", "string", ")", "value", ",", "pos", ",", "column", ")", ";", "}", "else", "if", "(", "value", "instanceof", "byte", "[", "]", "&", "&", "(", "(", "byte", "[", "]", ")", "value", ")", "length", ">", "0", ")", "{", "return", "window", "put", "blob", "(", "(", "byte", "[", "]", ")", "value", ",", "pos", ",", "column", ")", ";", "}", "else", "if", "(", "value", "instanceof", "double", ")", "{", "return", "window", "put", "double", "(", "(", "double", ")", "value", ",", "pos", ",", "column", ")", ";", "}", "else", "{", "return", "window", "put", "null", "(", "pos", ",", "column", ")", ";", "}" ]
[ "determines", "if", "there", "are", "any", "more", "attachments", "to", "read", "if", "the", "last", "attachment", "is", "in", "the", "process", "of", "being", "read", "this", "will", "return", "false" ]
[ "return", "multi", "part", "m", "i", "m", "e", "reader", "have", "all", "parts", "finished", "(", ")", ";" ]
[ "please", "do", "not", "use", "this", "is", "for", "internal", "use", "only" ]
[ "multi", "part", "m", "i", "m", "e", "reader", "abandon", "all", "data", "sources", "(", ")", ";" ]
[ "please", "do", "not", "use", "this", "is", "for", "internal", "use", "only" ]
[ "register", "attachment", "reader", "callback", "(", "new", "rest", "li", "attachment", "reader", "callback", "(", ")", "{", "@", "override", "public", "void", "on", "new", "attachment", "(", "single", "rest", "li", "attachment", "reader", "single", "rest", "li", "attachment", "reader", ")", "{", "callback", "on", "new", "data", "source", "writer", "(", "single", "rest", "li", "attachment", "reader", ")", ";", "}", "@", "override", "public", "void", "on", "finished", "(", ")", "{", "callback", "on", "finished", "(", ")", ";", "}", "@", "override", "public", "void", "on", "drain", "complete", "(", ")", "{", "callback", "on", "abandon", "complete", "(", ")", ";", "}", "@", "override", "public", "void", "on", "stream", "error", "(", "throwable", "throwable", ")", "{", "callback", "on", "stream", "error", "(", "throwable", ")", ";", "}", "}", ")", ";" ]
[ "denotes", "the", "unique", "identifier", "for", "this", "attachment" ]
[ "return", "attachment", "i", "d", ";" ]
[ "reads", "bytes", "from", "this", "attachment", "and", "notifies", "the", "registered", "callback", "on", "{", "@", "link", "single", "rest", "li", "attachment", "reader", "callback", "#", "on", "attachment", "data", "available", "(", "com", "linkedin", "data", "byte", "string", ")", "}" ]
[ "try", "{", "single", "part", "m", "i", "m", "e", "reader", "request", "part", "data", "(", ")", ";", "}", "catch", "(", "general", "multi", "part", "m", "i", "m", "e", "reader", "stream", "exception", "reader", "exception", ")", "{", "throw", "new", "rest", "li", "attachment", "reader", "exception", "(", "reader", "exception", ")", ";", "}" ]
[ "drains", "all", "bytes", "from", "this", "attachment", "and", "then", "notifies", "the", "registered", "callback", "(", "if", "present", ")", "on", "{", "@", "link", "single", "rest", "li", "attachment", "reader", "callback", "#", "on", "drain", "complete", "(", ")", "}" ]
[ "try", "{", "single", "part", "m", "i", "m", "e", "reader", "drain", "part", "(", ")", ";", "}", "catch", "(", "general", "multi", "part", "m", "i", "m", "e", "reader", "stream", "exception", "reader", "exception", ")", "{", "throw", "new", "rest", "li", "attachment", "reader", "exception", "(", "reader", "exception", ")", ";", "}" ]
[ "this", "call", "registers", "a", "callback", "and", "commits", "to", "reading", "this", "attachment", "this", "can", "only", "happen", "once", "per", "life", "of", "each", "single", "part", "rest", "li", "attachment", "reader", "subsequent", "attempts", "to", "modify", "this", "will", "throw", "{", "@", "link", "com", "linkedin", "restli", "common", "attachments", "rest", "li", "attachment", "reader", "exception", "}" ]
[ "try", "{", "single", "part", "m", "i", "m", "e", "reader", "register", "reader", "callback", "(", "new", "single", "part", "m", "i", "m", "e", "reader", "callback", "(", ")", "{", "@", "override", "public", "void", "on", "part", "data", "available", "(", "byte", "string", "part", "data", ")", "{", "callback", "on", "attachment", "data", "available", "(", "part", "data", ")", ";", "}", "@", "override", "public", "void", "on", "finished", "(", ")", "{", "callback", "on", "finished", "(", ")", ";", "}", "@", "override", "public", "void", "on", "drain", "complete", "(", ")", "{", "callback", "on", "drain", "complete", "(", ")", ";", "}", "@", "override", "public", "void", "on", "stream", "error", "(", "throwable", "throwable", ")", "{", "callback", "on", "attachment", "error", "(", "throwable", ")", ";", "}", "}", ")", ";", "}", "catch", "(", "general", "multi", "part", "m", "i", "m", "e", "reader", "stream", "exception", "reader", "exception", ")", "{", "throw", "new", "rest", "li", "attachment", "reader", "exception", "(", "reader", "exception", ")", ";", "}" ]
[ "please", "do", "not", "use", "this", "is", "for", "internal", "use", "only" ]
[ "single", "part", "m", "i", "m", "e", "reader", "on", "init", "(", "wh", ")", ";" ]
[ "please", "do", "not", "use", "this", "is", "for", "internal", "use", "only" ]
[ "single", "part", "m", "i", "m", "e", "reader", "on", "write", "possible", "(", ")", ";" ]
[ "please", "do", "not", "use", "this", "is", "for", "internal", "use", "only" ]
[ "single", "part", "m", "i", "m", "e", "reader", "on", "abort", "(", "e", ")", ";" ]
[ "<", "p", ">", "information", "about", "the", "hsm", "that", "was", "created", "<", "/", "p", ">" ]
[ "this", "hsm", "=", "hsm", ";" ]
[ "<", "p", ">", "information", "about", "the", "hsm", "that", "was", "created", "<", "/", "p", ">" ]
[ "return", "this", "hsm", ";" ]
[ "<", "p", ">", "information", "about", "the", "hsm", "that", "was", "created", "<", "/", "p", ">" ]
[ "set", "hsm", "(", "hsm", ")", ";", "return", "this", ";" ]
[ "overridden", "method", "to", "configure", "the", "prepared", "statement", "creator", "factory", "based", "on", "our", "declared", "parameters" ]
[ "this", "prepared", "statement", "factory", "=", "new", "prepared", "statement", "creator", "factory", "(", "resolve", "sql", "(", ")", ",", "get", "declared", "parameters", "(", ")", ")", ";", "this", "prepared", "statement", "factory", "set", "result", "set", "type", "(", "get", "result", "set", "type", "(", ")", ")", ";", "this", "prepared", "statement", "factory", "set", "updatable", "results", "(", "is", "updatable", "results", "(", ")", ")", ";", "this", "prepared", "statement", "factory", "set", "return", "generated", "keys", "(", "is", "return", "generated", "keys", "(", ")", ")", ";", "if", "(", "get", "generated", "keys", "column", "names", "(", ")", "!", "=", "null", ")", "{", "this", "prepared", "statement", "factory", "set", "generated", "keys", "column", "names", "(", "get", "generated", "keys", "column", "names", "(", ")", ")", ";", "}", "on", "compile", "internal", "(", ")", ";" ]
[ "obtain", "a", "parsed", "representation", "of", "this", "operation", "s", "sql", "statement", "<", "p", ">", "typically", "used", "for", "named", "parameter", "parsing" ]
[ "synchronized", "(", "this", "parsed", "sql", "monitor", ")", "{", "if", "(", "this", "cached", "sql", "=", "=", "null", ")", "{", "this", "cached", "sql", "=", "named", "parameter", "utils", "parse", "sql", "statement", "(", "resolve", "sql", "(", ")", ")", ";", "}", "return", "this", "cached", "sql", ";", "}" ]
[ "loads", "multiple", "slices", "into", "a", "map", "from", "a", "generic", "map", "that", "probably", "came", "from", "deserialized", "json" ]
[ "if", "(", "generic", "slices", "=", "=", "null", ")", "return", "collections", "empty", "map", "(", ")", ";", "map", "<", "string", ",", "slice", ">", "result", "=", "new", "linked", "hash", "map", "<", ">", "(", "generic", "slices", "size", "(", ")", ")", ";", "for", "(", "map", "entry", "<", "string", ",", "object", ">", "entry", ":", "generic", "slices", "entry", "set", "(", ")", ")", "{", "string", "name", "=", "entry", "get", "key", "(", ")", ";", "object", "val", "=", "entry", "get", "value", "(", ")", ";", "if", "(", "val", "instanceof", "slice", ")", "{", "result", "put", "(", "name", ",", "(", "slice", ")", "val", ")", ";", "}", "else", "if", "(", "val", "instanceof", "map", ")", "{", "result", "put", "(", "name", ",", "new", "slice", "(", "name", ",", "null", ",", "(", "map", "<", "string", ",", "object", ">", ")", "val", ")", ")", ";", "}", "}", "return", "result", ";" ]
[ "gets", "the", "list", "of", "all", "replicas", "for", "this", "slice" ]
[ "return", "replicas", "values", "(", ")", ";" ]
[ "gets", "all", "replicas", "that", "match", "a", "predicate" ]
[ "return", "replicas", "values", "(", ")", "stream", "(", ")", "filter", "(", "pred", ")", "collect", "(", "collectors", "to", "list", "(", ")", ")", ";" ]
[ "gets", "the", "list", "of", "replicas", "that", "have", "a", "type", "present", "in", "s" ]
[ "return", "this", "get", "replicas", "(", "r", "-", ">", "s", "contains", "(", "r", "get", "type", "(", ")", ")", ")", ";" ]
[ "get", "the", "map", "of", "core", "node", "name", "to", "replicas", "for", "this", "slice" ]
[ "return", "replicas", ";" ]
[ "sets", "the", "initial", "partition", "table", "and", "state", "version", "if", "any", "partition", "has", "a", "replica", "the", "partition", "state", "manager", "is", "set", "to", "initialized", "otherwise", "{", "@", "link", "#", "partition", "state", "manager", "#", "is", "initialized", "(", ")", "}", "stays", "uninitialized", "but", "the", "current", "state", "will", "be", "updated", "nevertheless", "this", "method", "acquires", "the", "partition", "service", "lock" ]
[ "lock", "lock", "(", ")", ";", "try", "{", "partition", "state", "manager", "set", "initial", "state", "(", "partition", "table", ")", ";", "}", "finally", "{", "lock", "unlock", "(", ")", ";", "}" ]
[ "returns", "a", "copy", "of", "the", "partition", "table", "or", "{" ]
[ "lock", "lock", "(", ")", ";", "try", "{", "if", "(", "!", "partition", "state", "manager", "is", "initialized", "(", ")", ")", "{", "return", "null", ";", "}", "list", "<", "migration", "info", ">", "completed", "migrations", "=", "migration", "manager", "get", "completed", "migrations", "copy", "(", ")", ";", "internal", "partition", "[", "]", "partitions", "=", "partition", "state", "manager", "get", "partitions", "(", ")", ";", "partition", "runtime", "state", "state", "=", "new", "partition", "runtime", "state", "(", "partitions", ",", "completed", "migrations", ",", "get", "partition", "state", "version", "(", ")", ")", ";", "state", "set", "active", "migration", "(", "migration", "manager", "get", "active", "migration", "(", ")", ")", ";", "return", "state", ";", "}", "finally", "{", "lock", "unlock", "(", ")", ";", "}" ]
[ "creates", "a", "transient", "partition", "runtime", "state", "to", "commit", "given", "migration", "result", "migration", "is", "applied", "to", "partition", "table", "and", "migration", "is", "added", "to", "completed", "-", "migrations", "set", "version", "of", "created", "partition", "table", "is", "incremented", "by", "1" ]
[ "lock", "lock", "(", ")", ";", "try", "{", "if", "(", "!", "partition", "state", "manager", "is", "initialized", "(", ")", ")", "{", "return", "null", ";", "}", "list", "<", "migration", "info", ">", "completed", "migrations", "=", "migration", "manager", "get", "completed", "migrations", "copy", "(", ")", ";", "internal", "partition", "[", "]", "partitions", "=", "partition", "state", "manager", "get", "partitions", "copy", "(", ")", ";", "int", "partition", "id", "=", "migration", "info", "get", "partition", "id", "(", ")", ";", "internal", "partition", "impl", "partition", "=", "(", "internal", "partition", "impl", ")", "partitions", "[", "partition", "id", "]", ";", "migration", "manager", "apply", "migration", "(", "partition", ",", "migration", "info", ")", ";", "migration", "info", "set", "status", "(", "migration", "status", "success", ")", ";", "completed", "migrations", "add", "(", "migration", "info", ")", ";", "int", "committed", "version", "=", "get", "partition", "state", "version", "(", ")", "+", "1", ";", "return", "new", "partition", "runtime", "state", "(", "partitions", ",", "completed", "migrations", ",", "committed", "version", ")", ";", "}", "finally", "{", "lock", "unlock", "(", ")", ";", "}" ]
[ "creates", "a", "transient", "{", "@", "link", "partition", "runtime", "state", "}", "to", "commit", "promotions", "by", "applying", "the", "{", "@", "code", "migration", "infos", "}", "the", "partition", "table", "version", "is", "incremented", "by", "number", "of", "promotions", "this", "method", "will", "acquire", "the", "partition", "service", "lock" ]
[ "lock", "lock", "(", ")", ";", "try", "{", "if", "(", "!", "partition", "state", "manager", "is", "initialized", "(", ")", ")", "{", "return", "null", ";", "}", "list", "<", "migration", "info", ">", "completed", "migrations", "=", "migration", "manager", "get", "completed", "migrations", "copy", "(", ")", ";", "internal", "partition", "[", "]", "partitions", "=", "partition", "state", "manager", "get", "partitions", "copy", "(", ")", ";", "for", "(", "migration", "info", "migration", "info", ":", "migration", "infos", ")", "{", "int", "partition", "id", "=", "migration", "info", "get", "partition", "id", "(", ")", ";", "internal", "partition", "impl", "partition", "=", "(", "internal", "partition", "impl", ")", "partitions", "[", "partition", "id", "]", ";", "migration", "manager", "apply", "migration", "(", "partition", ",", "migration", "info", ")", ";", "migration", "info", "set", "status", "(", "migration", "status", "success", ")", ";", "}", "int", "committed", "version", "=", "get", "partition", "state", "version", "(", ")", "+", "migration", "infos", "size", "(", ")", ";", "return", "new", "partition", "runtime", "state", "(", "partitions", ",", "completed", "migrations", ",", "committed", "version", ")", ";", "}", "finally", "{", "lock", "unlock", "(", ")", ";", "}" ]
[ "sends", "a", "{" ]
[ "final", "cluster", "service", "impl", "cluster", "service", "=", "node", "cluster", "service", ";", "list", "<", "future", "<", "boolean", ">", ">", "calls", "=", "new", "array", "list", "<", "future", "<", "boolean", ">", ">", "(", "members", "size", "(", ")", ")", ";", "for", "(", "member", "impl", "member", ":", "members", ")", "{", "if", "(", "!", "(", "member", "local", "member", "(", ")", "|", "|", "cluster", "service", "is", "member", "removed", "in", "not", "joinable", "state", "(", "member", "get", "address", "(", ")", ")", ")", ")", "{", "try", "{", "address", "address", "=", "member", "get", "address", "(", ")", ";", "partition", "state", "operation", "operation", "=", "new", "partition", "state", "operation", "(", "partition", "state", ",", "true", ")", ";", "future", "<", "boolean", ">", "f", "=", "operation", "service", "invoke", "on", "target", "(", "service", "name", ",", "operation", ",", "address", ")", ";", "calls", "add", "(", "f", ")", ";", "}", "catch", "(", "exception", "e", ")", "{", "logger", "finest", "(", "e", ")", ";", "}", "}", "}", "return", "calls", ";" ]
[ "sets", "the", "replica", "addresses", "for", "all", "partitions" ]
[ "for", "(", "int", "partition", "id", "=", "0", ";", "partition", "id", "<", "partition", "count", ";", "partition", "id", "+", "+", ")", "{", "address", "[", "]", "replicas", "=", "partition", "table", "[", "partition", "id", "]", ";", "partition", "state", "manager", "update", "replica", "addresses", "(", "partition", "id", ",", "replicas", ")", ";", "}" ]
[ "<", "p", ">", "return", "results", "that", "match", "either", "<", "code", ">", "dimension", "<", "/", "code", ">", "object", "<", "/", "p", ">" ]
[ "return", "or", ";" ]
[ "<", "p", ">", "return", "results", "that", "match", "either", "<", "code", ">", "dimension", "<", "/", "code", ">", "object", "<", "/", "p", ">" ]
[ "if", "(", "or", "=", "=", "null", ")", "{", "this", "or", "=", "null", ";", "return", ";", "}", "this", "or", "=", "new", "java", "util", "array", "list", "<", "expression", ">", "(", "or", ")", ";" ]
[ "<", "p", ">", "return", "results", "that", "match", "either", "<", "code", ">", "dimension", "<", "/", "code", ">", "object", "<", "/", "p", ">", "<", "p", ">", "<", "b", ">", "note", ":", "<", "/", "b", ">", "this", "method", "appends", "the", "values", "to", "the", "existing", "list", "(", "if", "any", ")", "use", "{", "@", "link", "#", "set", "or", "(", "java", "util", "collection", ")", "}", "or", "{", "@", "link", "#", "with", "or", "(", "java", "util", "collection", ")", "}", "if", "you", "want", "to", "override", "the", "existing", "values", "<", "/", "p", ">" ]
[ "if", "(", "this", "or", "=", "=", "null", ")", "{", "set", "or", "(", "new", "java", "util", "array", "list", "<", "expression", ">", "(", "or", "length", ")", ")", ";", "}", "for", "(", "expression", "ele", ":", "or", ")", "{", "this", "or", "add", "(", "ele", ")", ";", "}", "return", "this", ";" ]
[ "<", "p", ">", "return", "results", "that", "match", "either", "<", "code", ">", "dimension", "<", "/", "code", ">", "object", "<", "/", "p", ">" ]
[ "set", "or", "(", "or", ")", ";", "return", "this", ";" ]
[ "<", "p", ">", "return", "results", "that", "match", "both", "<", "code", ">", "dimension", "<", "/", "code", ">", "objects", "<", "/", "p", ">" ]
[ "return", "and", ";" ]