docstring_tokens
list
code_tokens
list
[ "unsafe", "version", "of", "{" ]
[ "mem", "put", "address", "(", "struct", "+", "vk", "export", "memory", "win", "3", "2", "handle", "info", "k", "h", "r", "pnext", ",", "value", ")", ";" ]
[ "unsafe", "version", "of", "{" ]
[ "mem", "put", "address", "(", "struct", "+", "vk", "export", "memory", "win", "3", "2", "handle", "info", "k", "h", "r", "pattributes", ",", "mem", "address", "safe", "(", "value", ")", ")", ";" ]
[ "unsafe", "version", "of", "{" ]
[ "unsafe", "put", "int", "(", "null", ",", "struct", "+", "vk", "export", "memory", "win", "3", "2", "handle", "info", "k", "h", "r", "dwaccess", ",", "value", ")", ";" ]
[ "unsafe", "version", "of", "{" ]
[ "if", "(", "checks", ")", "{", "check", "n", "t", "2", "(", "value", ")", ";", "}", "mem", "put", "address", "(", "struct", "+", "vk", "export", "memory", "win", "3", "2", "handle", "info", "k", "h", "r", "name", ",", "mem", "address", "(", "va...
[ "validates", "pointer", "members", "that", "should", "not", "be", "{", "@", "code", "null", "}" ]
[ "long", "p", "attributes", "=", "mem", "get", "address", "(", "struct", "+", "vk", "export", "memory", "win", "3", "2", "handle", "info", "k", "h", "r", "pattributes", ")", ";", "if", "(", "p", "attributes", "!", "=", "null", ")", "{", "security", ...
[ "set", "the", "output", "path", "for", "this", "step" ]
[ "this", "output", "=", "output", ";" ]
[ "<", "p", ">", "the", "json", "data", "output", "by", "the", "lambda", "function", "<", "/", "p", ">" ]
[ "set", "output", "(", "output", ")", ";", "return", "this", ";" ]
[ "for", "testing", "purposes", "only" ]
[ "return", "final", "bytes", "=", "=", "null", "?", "null", ":", "final", "bytes", "clone", "(", ")", ";" ]
[ "for", "testing", "purposes", "applicable", "only", "during", "encryption", ":", "returns", "the", "tag", "that", "has", "been", "produced", ";", "or", "null", "otherwise" ]
[ "return", "get", "cipher", "mode", "(", ")", "!", "=", "cipher", "encrypt", "mode", "|", "|", "final", "bytes", "=", "=", "null", "?", "null", ":", "arrays", "copy", "of", "range", "(", "final", "bytes", ",", "final", "bytes", "length", "-", "tag", ...
[ "for", "testing", "purposes" ]
[ "return", "output", "byte", "count", ";" ]
[ "for", "testing", "purposes" ]
[ "return", "current", "count", ";" ]
[ "for", "testing", "purposes" ]
[ "return", "marked", "count", ";" ]
[ "return", "the", "{" ]
[ "return", "this", "servlet", "response", ";" ]
[ "reset", "all", "the", "mock", "objects" ]
[ "reset", "(", "mock", "listener", ",", "mock", "builder", ",", "mock", "member", "comms", ")", ";", "if", "(", "member", "!", "=", "null", ")", "try", "{", "member", "close", "(", ")", ";", "}", "catch", "(", "i", "o", "exception", "e", ")", "{",...
[ "add", "a", "in", "barrier", "phase", "response", "to", "the", "mock", "controller", "when", "it", "gets", "a", "acquired", "notification" ]
[ "do", "answer", "(", "new", "answer", "<", "void", ">", "(", ")", "{", "@", "override", "public", "void", "answer", "(", "invocation", "on", "mock", "invocation", ")", "throws", "throwable", "{", "member", "received", "reached", "global", "barrier", "(", ...
[ "{" ]
[ "super", "after", "test", "(", ")", ";", "init", "schema", "=", "true", ";", "data", "src", "close", "(", ")", ";" ]
[ "tests" ]
[ "final", "request", "config", "request", "config", "=", "request", "config", "custom", "(", ")", "set", "connection", "request", "timeout", "(", "50", ")", "set", "connect", "timeout", "(", "50", ")", "set", "socket", "timeout", "(", "20", ")", "build", ...
[ "tests", "-", "configs" ]
[ "instance", "=", "http", "client", "builder", "create", "(", ")", "set", "connection", "manager", "(", "new", "basic", "http", "client", "connection", "manager", "(", ")", ")", "build", "(", ")", ";", "response", "=", "instance", "execute", "(", "new", "...
[ "a", "bitmask", "for", "two", "directions" ]
[ "return", "sc", "dir", "mask", ";" ]
[ "the", "bit", "for", "forward", "direction" ]
[ "return", "sc", "fwd", "dir", ";" ]
[ "the", "bit", "for", "backward", "direction" ]
[ "return", "sc", "bwd", "dir", ";" ]
[ "returns", "1", "if", "existing", "sc", "flags", "of", "an", "existing", "shortcut", "can", "be", "overwritten", "with", "a", "new", "shortcut", "by", "new", "sc", "flags", "without", "limiting", "or", "changing", "the", "directions", "of", "the", "existing"...
[ "if", "(", "(", "existing", "sc", "flags", "&", "sc", "dir", "mask", ")", "=", "=", "(", "new", "sc", "flags", "&", "sc", "dir", "mask", ")", ")", "return", "1", ";", "else", "if", "(", "(", "new", "sc", "flags", "&", "sc", "dir", "mask", ")"...
[ "fixme" ]
[ "return", "get", "create", "query", "(", "arrays", "as", "list", "(", "entities", ")", ",", "generate", "key", ",", "quick", ",", "option", ")", ";" ]
[ "@", "param", "column", "@", "param", "entity" ]
[ "method", "getter", "=", "or", "mapping", "get", "getter", "(", "column", ")", ";", "try", "{", "return", "getter", "invoke", "(", "entity", ")", ";", "}", "catch", "(", "exception", "e", ")", "{", "throw", "new", "runtime", "exception", "(", ")", ";...
[ "creates", "a", "join" ]
[ "return", "hive", "join", "get", "join", "(", "left", "get", "cluster", "(", ")", ",", "left", ",", "right", ",", "condition", ",", "join", "type", ")", ";" ]
[ "this", "zip", "file", "contains", "resource", "flat", "files", "that", "are", "the", "result", "of", "aapt", "2", "compile" ]
[ "return", "resources", ";" ]
[ "copies", "resources", "archive", "to", "a", "path", "and", "returns", "the", "new", "{" ]
[ "return", "new", "compiled", "resources", "(", "files", "copy", "(", "resources", ",", "destination", ")", ",", "manifest", ",", "assets", "dirs", ",", "stable", "ids", ")", ";" ]
[ "note", "that", "result", "of", "use", "native", "byte", "order", "is", "not", "reflected", "to", "return", "value", "of", "this", "method" ]
[ "return", "byte", "order", ";" ]
[ "<", "p", ">", "adds", "the", "specified", "modifier", "to", "the", "contained", "modifier", "list", "<", "/", "p", ">" ]
[ "m", "modifiers", "add", "(", "p", "modifier", ")", ";" ]
[ "<", "p", ">", "removes", "the", "specified", "modifier", "from", "the", "contained", "modifier", "list", "<", "/", "p", ">" ]
[ "return", "m", "modifiers", "remove", "(", "p", "modifier", ")", ";" ]
[ "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*" ]
[ "return", "default", "action", ";" ]
[ "the", "default", "action" ]
[ "this", "default", "action", "=", "default", "action", ";" ]
[ "the", "key", "to", "use", "if", "none", "is", "set", "in", "the", "header", "or", "to", "listen", "for", "events", "for", "a", "specific", "key" ]
[ "this", "key", "=", "default", "key", ";" ]
[ "the", "resource", "ttl" ]
[ "this", "ttl", "=", "ttl", ";" ]
[ "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*" ]
[ "try", "{", "return", "(", "atomix", "map", "configuration", ")", "super", "clone", "(", ")", ";", "}", "catch", "(", "clone", "not", "supported", "exception", "e", ")", "{", "throw", "new", "runtime", "camel", "exception", "(", "e", ")", ";", "}" ]
[ "<", "p", ">", "the", "amazon", "resource", "name", "(", "arn", ")", "for", "the", "stream", "being", "described", "<", "/", "p", ">" ]
[ "this", "stream", "a", "r", "n", "=", "stream", "a", "r", "n", ";" ]
[ "<", "p", ">", "the", "amazon", "resource", "name", "(", "arn", ")", "for", "the", "stream", "being", "described", "<", "/", "p", ">" ]
[ "return", "this", "stream", "a", "r", "n", ";" ]
[ "<", "p", ">", "the", "amazon", "resource", "name", "(", "arn", ")", "of", "the", "stream", "<", "/", "p", ">" ]
[ "set", "stream", "a", "r", "n", "(", "stream", "a", "r", "n", ")", ";", "return", "this", ";" ]
[ "<", "p", ">", "the", "hsm", "s", "identifier", "(", "id", ")", "<", "/", "p", ">" ]
[ "this", "hsm", "id", "=", "hsm", "id", ";" ]
[ "<", "p", ">", "the", "hsm", "s", "identifier", "(", "id", ")", "<", "/", "p", ">" ]
[ "return", "this", "hsm", "id", ";" ]
[ "<", "p", ">", "the", "identifier", "(", "id", ")", "of", "the", "hsm", "that", "was", "deleted", "<", "/", "p", ">" ]
[ "set", "hsm", "id", "(", "hsm", "id", ")", ";", "return", "this", ";" ]
[ "returns", "list", "of", "tuples", "for", "(", "a", "metric", "s", ")", "nested", "generator", "configs" ]
[ "list", "<", "tuple", ">", "tuples", "=", "new", "array", "list", "<", ">", "(", ")", ";", "linked", "list", "<", "metric", "tuple", ">", "stack", "=", "new", "linked", "list", "<", ">", "(", ")", ";", "stack", "push", "(", "new", "metric", "tupl...
[ "returns", "the", "bottom", "-", "level", "config", "for", "a", "given", "metric", "tuple", "from", "the", "root", "of", "a", "nested", "generator", "config" ]
[ "for", "(", "string", "element", ":", "path", "values", ")", "{", "map", "=", "(", "map", "<", "string", ",", "object", ">", ")", "map", "get", "(", "element", ")", ";", "}", "return", "map", ";" ]
[ "returns", "a", "filtered", "collection", "of", "tuples", "for", "a", "given", "prefix" ]
[ "return", "collections", "2", "filter", "(", "tuples", ",", "new", "predicate", "<", "tuple", ">", "(", ")", "{", "@", "override", "public", "boolean", "apply", "(", "@", "nullable", "tuple", "tuple", ")", "{", "if", "(", "tuple", "=", "=", "null", "...
[ "get", "the", "string", "at", "position", "{", "@", "code", "pos", "}", "in", "the", "array" ]
[ "char", "sequence", "cs", "=", "(", "char", "sequence", ")", "list", "get", "(", "pos", ")", ";", "return", "cs", "=", "=", "null", "?", "null", ":", "cs", "to", "string", "(", ")", ";" ]
[ "get", "the", "boolean", "at", "position", "{", "@", "code", "pos", "}", "in", "the", "array" ]
[ "return", "(", "boolean", ")", "list", "get", "(", "pos", ")", ";" ]
[ "get", "the", "json", "object", "at", "position", "{", "@", "code", "pos", "}", "in", "the", "array" ]
[ "object", "val", "=", "list", "get", "(", "pos", ")", ";", "if", "(", "val", "instanceof", "map", ")", "{", "val", "=", "new", "json", "object", "(", "(", "map", ")", "val", ")", ";", "}", "return", "(", "json", "object", ")", "val", ";" ]
[ "get", "the", "json", "array", "at", "position", "{", "@", "code", "pos", "}", "in", "the", "array" ]
[ "object", "val", "=", "list", "get", "(", "pos", ")", ";", "if", "(", "val", "instanceof", "list", ")", "{", "val", "=", "new", "json", "array", "(", "(", "list", ")", "val", ")", ";", "}", "return", "(", "json", "array", ")", "val", ";" ]
[ "get", "the", "byte", "[", "]", "at", "position", "{", "@", "code", "pos", "}", "in", "the", "array", "<", "p", ">", "json", "itself", "has", "no", "notion", "of", "a", "binary", "so", "this", "method", "assumes", "there", "is", "a", "string", "val...
[ "string", "val", "=", "(", "string", ")", "list", "get", "(", "pos", ")", ";", "if", "(", "val", "=", "=", "null", ")", "{", "return", "null", ";", "}", "else", "{", "return", "base", "6", "4", "get", "decoder", "(", ")", "decode", "(", "val", ...
[ "get", "the", "instant", "at", "position", "{", "@", "code", "pos", "}", "in", "the", "array", "<", "p", ">", "json", "itself", "has", "no", "notion", "of", "a", "temporal", "types", "this", "extension", "complies", "to", "the", "rfc", "-", "7493", "...
[ "string", "val", "=", "(", "string", ")", "list", "get", "(", "pos", ")", ";", "if", "(", "val", "=", "=", "null", ")", "{", "return", "null", ";", "}", "else", "{", "return", "instant", "from", "(", "iso", "instant", "parse", "(", "val", ")", ...
[ "get", "the", "object", "value", "at", "position", "{", "@", "code", "pos", "}", "in", "the", "array" ]
[ "object", "val", "=", "list", "get", "(", "pos", ")", ";", "if", "(", "val", "instanceof", "map", ")", "{", "val", "=", "new", "json", "object", "(", "(", "map", ")", "val", ")", ";", "}", "else", "if", "(", "val", "instanceof", "list", ")", "{...
[ "is", "there", "a", "null", "value", "at", "position", "pos", "?" ]
[ "return", "list", "get", "(", "pos", ")", "=", "=", "null", ";" ]
[ "add", "an", "enum", "to", "the", "json", "array", "<", "p", ">", "json", "has", "no", "concept", "of", "encoding", "enums", "so", "the", "enum", "will", "be", "converted", "to", "a", "string", "using", "the", "{", "@", "link", "java", "lang", "enum"...
[ "objects", "require", "non", "null", "(", "value", ")", ";", "list", "add", "(", "value", "name", "(", ")", ")", ";", "return", "this", ";" ]
[ "add", "a", "char", "sequence", "to", "the", "json", "array" ]
[ "objects", "require", "non", "null", "(", "value", ")", ";", "list", "add", "(", "value", "to", "string", "(", ")", ")", ";", "return", "this", ";" ]
[ "add", "a", "string", "to", "the", "json", "array" ]
[ "objects", "require", "non", "null", "(", "value", ")", ";", "list", "add", "(", "value", ")", ";", "return", "this", ";" ]
[ "add", "an", "integer", "to", "the", "json", "array" ]
[ "objects", "require", "non", "null", "(", "value", ")", ";", "list", "add", "(", "value", ")", ";", "return", "this", ";" ]
[ "add", "a", "long", "to", "the", "json", "array" ]
[ "objects", "require", "non", "null", "(", "value", ")", ";", "list", "add", "(", "value", ")", ";", "return", "this", ";" ]
[ "add", "a", "double", "to", "the", "json", "array" ]
[ "objects", "require", "non", "null", "(", "value", ")", ";", "list", "add", "(", "value", ")", ";", "return", "this", ";" ]
[ "add", "a", "float", "to", "the", "json", "array" ]
[ "objects", "require", "non", "null", "(", "value", ")", ";", "list", "add", "(", "value", ")", ";", "return", "this", ";" ]
[ "add", "a", "boolean", "to", "the", "json", "array" ]
[ "objects", "require", "non", "null", "(", "value", ")", ";", "list", "add", "(", "value", ")", ";", "return", "this", ";" ]
[ "adds", "a", "{" ]
[ "list", "add", "(", "null", ")", ";", "return", "this", ";" ]
[ "add", "a", "json", "object", "to", "the", "json", "array" ]
[ "objects", "require", "non", "null", "(", "value", ")", ";", "list", "add", "(", "value", ")", ";", "return", "this", ";" ]
[ "add", "another", "json", "array", "to", "the", "json", "array" ]
[ "objects", "require", "non", "null", "(", "value", ")", ";", "list", "add", "(", "value", ")", ";", "return", "this", ";" ]
[ "add", "a", "binary", "value", "to", "the", "json", "array", "<", "p", ">", "json", "has", "no", "notion", "of", "binary", "so", "the", "binary", "will", "be", "base", "6", "4", "encoded", "to", "a", "string", "and", "the", "string", "added" ]
[ "objects", "require", "non", "null", "(", "value", ")", ";", "list", "add", "(", "base", "6", "4", "get", "encoder", "(", ")", "encode", "to", "string", "(", "value", ")", ")", ";", "return", "this", ";" ]
[ "add", "a", "instant", "value", "to", "the", "json", "array", "<", "p", ">", "json", "has", "no", "notion", "of", "temporal", "data", "so", "the", "instant", "will", "be", "i", "s", "o", "string", "encoded", "and", "the", "string", "added" ]
[ "objects", "require", "non", "null", "(", "value", ")", ";", "list", "add", "(", "iso", "instant", "format", "(", "value", ")", ")", ";", "return", "this", ";" ]
[ "add", "an", "object", "to", "the", "json", "array" ]
[ "objects", "require", "non", "null", "(", "value", ")", ";", "value", "=", "json", "check", "and", "copy", "(", "value", ",", "false", ")", ";", "list", "add", "(", "value", ")", ";", "return", "this", ";" ]
[ "appends", "all", "of", "the", "elements", "in", "the", "specified", "array", "to", "the", "end", "of", "this", "json", "array" ]
[ "objects", "require", "non", "null", "(", "array", ")", ";", "list", "add", "all", "(", "array", "list", ")", ";", "return", "this", ";" ]
[ "does", "the", "json", "array", "contain", "the", "specified", "value", "?", "this", "method", "will", "scan", "the", "entire", "array", "until", "it", "finds", "a", "value", "or", "reaches", "the", "end" ]
[ "return", "list", "contains", "(", "value", ")", ";" ]
[ "remove", "the", "specified", "value", "from", "the", "json", "array", "this", "method", "will", "scan", "the", "entire", "array", "until", "it", "finds", "a", "value", "or", "reaches", "the", "end" ]
[ "return", "list", "remove", "(", "value", ")", ";" ]
[ "remove", "the", "value", "at", "the", "specified", "position", "in", "the", "json", "array" ]
[ "object", "removed", "=", "list", "remove", "(", "pos", ")", ";", "if", "(", "removed", "instanceof", "map", ")", "{", "return", "new", "json", "object", "(", "(", "map", ")", "removed", ")", ";", "}", "else", "if", "(", "removed", "instanceof", "arr...
[ "returns", "{" ]
[ "return", "list", "is", "empty", "(", ")", ";" ]
[ "removes", "all", "entries", "from", "the", "json", "array" ]
[ "list", "clear", "(", ")", ";", "return", "this", ";" ]
[ "returns", "an", "iterator", "over", "the", "values", "in", "the", "json", "array" ]
[ "return", "new", "iter", "(", "list", "iterator", "(", ")", ")", ";" ]
[ "encode", "the", "json", "array", "to", "a", "string" ]
[ "return", "json", "encode", "(", "list", ")", ";" ]
[ "encode", "this", "json", "object", "as", "buffer" ]
[ "return", "json", "encode", "to", "buffer", "(", "list", ")", ";" ]
[ "encode", "the", "json", "array", "prettily", "as", "a", "string" ]
[ "return", "json", "encode", "prettily", "(", "list", ")", ";" ]
[ "make", "a", "copy", "of", "the", "json", "array" ]
[ "list", "<", "object", ">", "copied", "list", "=", "new", "array", "list", "<", ">", "(", "list", "size", "(", ")", ")", ";", "for", "(", "object", "val", ":", "list", ")", "{", "val", "=", "json", "check", "and", "copy", "(", "val", ",", "true...
[ "get", "a", "stream", "over", "the", "entries", "in", "the", "json", "array" ]
[ "return", "json", "as", "stream", "(", "iterator", "(", ")", ")", ";" ]
[ "executes", "the", "specified", "script", "the", "default", "<", "code", ">", "script", "context", "<", "/", "code", ">", "for", "the", "<", "code", ">", "script", "engine", "<", "/", "code", ">", "is", "used", "variables", "from", "a", "groovy", "<", ...
[ "store", "binding", "vars", "(", "self", ",", "binding", ")", ";", "object", "result", "=", "self", "eval", "(", "script", ")", ";", "retrieve", "binding", "vars", "(", "self", ",", "binding", ")", ";", "return", "result", ";" ]
[ "same", "as", "<", "code", ">", "eval", "(", "script", "engine", "reader", "binding", ")", "<", "/", "code", ">", "except", "that", "the", "source", "of", "the", "script", "is", "provided", "as", "a", "<", "code", ">", "reader", "<", "/", "code", "...
[ "store", "binding", "vars", "(", "self", ",", "binding", ")", ";", "object", "result", "=", "self", "eval", "(", "reader", ")", ";", "retrieve", "binding", "vars", "(", "self", ",", "binding", ")", ";", "return", "result", ";" ]
[ "extracts", "the", "specified", "file", "into", "the", "temp", "directory", "if", "it", "does", "not", "already", "exist", "or", "the", "crc", "does", "not", "match", "if", "file", "extraction", "fails", "and", "the", "file", "exists", "at", "java", "libra...
[ "extract", "file", "(", "source", "path", ",", "crc", "(", "read", "file", "(", "source", "path", ")", ")", ",", "new", "file", "(", "dir", ",", "new", "file", "(", "source", "path", ")", "get", "name", "(", ")", ")", ")", ";" ]
[ "sets", "the", "library", "as", "loaded", "for", "when", "application", "code", "wants", "to", "handle", "libary", "loading", "itself" ]
[ "loaded", "libraries", "add", "(", "library", "name", ")", ";" ]
[ "add", "one", "or", "more", "resource", "locations", "from", "which", "to", "serve", "static", "content", "each", "location", "must", "point", "to", "a", "valid", "directory", "multiple", "locations", "may", "be", "specified", "as", "a", "comma", "-", "separ...
[ "this", "location", "values", "add", "all", "(", "arrays", "as", "list", "(", "resource", "locations", ")", ")", ";", "return", "this", ";" ]
[ "specify", "the", "cache", "period", "for", "the", "resources", "served", "by", "the", "resource", "handler", "in", "seconds", "the", "default", "is", "to", "not", "send", "any", "cache", "headers", "but", "to", "rely", "on", "last", "-", "modified", "time...
[ "this", "cache", "period", "=", "cache", "period", ";", "return", "this", ";" ]
[ "specify", "the", "{" ]
[ "this", "cache", "control", "=", "cache", "control", ";", "return", "this", ";" ]
[ "configure", "a", "chain", "of", "resource", "resolvers", "and", "transformers", "to", "use", "this", "can", "be", "useful", "for", "example", "to", "apply", "a", "version", "strategy", "to", "resource", "u", "r", "ls", "<", "p", ">", "if", "this", "meth...
[ "this", "resource", "chain", "registration", "=", "new", "resource", "chain", "registration", "(", "cache", "resources", ")", ";", "return", "this", "resource", "chain", "registration", ";" ]
[ "configure", "a", "chain", "of", "resource", "resolvers", "and", "transformers", "to", "use", "this", "can", "be", "useful", "for", "example", "to", "apply", "a", "version", "strategy", "to", "resource", "u", "r", "ls", "<", "p", ">", "if", "this", "meth...
[ "this", "resource", "chain", "registration", "=", "new", "resource", "chain", "registration", "(", "cache", "resources", ",", "cache", ")", ";", "return", "this", "resource", "chain", "registration", ";" ]
[ "returns", "the", "url", "path", "patterns", "for", "the", "resource", "handler" ]
[ "return", "this", "path", "patterns", ";" ]
[ "return", "a", "{" ]
[ "resource", "http", "request", "handler", "handler", "=", "new", "resource", "http", "request", "handler", "(", ")", ";", "if", "(", "this", "resource", "chain", "registration", "!", "=", "null", ")", "{", "handler", "set", "resource", "resolvers", "(", "t...
[ "add", "a", "segment", "to", "the", "buffer", "list" ]
[ "segments", "add", "(", "new", "buffer", "segment", "(", "buf", ",", "offset", ",", "len", ")", ")", ";", "total", "length", "+", "=", "len", ";" ]
[ "get", "the", "most", "recently", "added", "segment" ]
[ "if", "(", "segments", "is", "empty", "(", ")", ")", "{", "return", "null", ";", "}", "buffer", "segment", "seg", "=", "segments", "get", "(", "segments", "size", "(", ")", "-", "1", ")", ";", "return", "arrays", "copy", "of", "range", "(", "seg", ...
[ "get", "the", "number", "of", "segments", "that", "have", "added", "to", "this", "buffer", "list" ]
[ "return", "segments", "size", "(", ")", ";" ]
[ "check", "if", "the", "given", "key", "has", "more", "than", "one", "primary", "key", "elements", "inside" ]
[ "return", "p", "key", "list", "size", "(", ")", "=", "=", "1", "?", "false", ":", "true", ";" ]
[ "computes", "the", "number", "of", "subkeys" ]
[ "return", "p", "key", "list", "size", "(", ")", ";" ]
[ "given", "a", "schema", "field", "name", "to", "check", "if", "it", "is", "a", "(", "part", "of", "a", ")", "primary", "key" ]
[ "string", "trimmed", "f", "name", "=", "field", "name", "(", ")", "trim", "(", ")", ";", "return", "p", "key", "list", "contains", "(", "trimmed", "f", "name", ")", ";" ]
[ "a", "static", "helper", "method", "which", "is", "used", "for", "a", "very", "common", "use", "-", "case", "given", "a", "primary", "key", "field", "name", "and", "a", "schema", "field", "check", "if", "it", "is", "a", "primary", "key" ]
[ "boolean", "is", "primary", "key", "=", "false", ";", "try", "{", "primary", "key", "pk", "=", "new", "primary", "key", "(", "pk", "field", "name", ")", ";", "is", "primary", "key", "=", "pk", "is", "part", "of", "primary", "key", "(", "field", ")"...
[ "<", "p", ">", "the", "name", "of", "the", "project", "to", "create", "<", "/", "p", ">" ]
[ "set", "project", "name", "(", "project", "name", ")", ";", "return", "this", ";" ]
[ "<", "p", ">", "an", "object", "defining", "the", "project", "update", "once", "a", "project", "has", "been", "created", "you", "cannot", "add", "device", "template", "names", "to", "the", "project", "however", "for", "a", "given", "<", "code", ">", "pla...
[ "this", "placement", "template", "=", "placement", "template", ";" ]
[ "<", "p", ">", "an", "object", "defining", "the", "project", "update", "once", "a", "project", "has", "been", "created", "you", "cannot", "add", "device", "template", "names", "to", "the", "project", "however", "for", "a", "given", "<", "code", ">", "pla...
[ "return", "this", "placement", "template", ";" ]
[ "<", "p", ">", "the", "schema", "defining", "the", "placement", "to", "be", "created", "a", "placement", "template", "defines", "placement", "default", "attributes", "and", "device", "templates", "you", "cannot", "add", "or", "remove", "device", "templates", "...
[ "set", "placement", "template", "(", "placement", "template", ")", ";", "return", "this", ";" ]