docstring_tokens
list
code_tokens
list
[ "<", "p", ">", "the", "name", "of", "the", "repository", "that", "contains", "the", "pull", "request", "<", "/", "p", ">" ]
[ "set", "repository", "name", "(", "repository", "name", ")", ";", "return", "this", ";" ]
[ "<", "p", ">", "the", "full", "commit", "id", "of", "the", "commit", "that", "was", "the", "tip", "of", "the", "destination", "branch", "when", "the", "pull", "request", "was", "created", "this", "commit", "will", "be", "superceded", "by", "the", "after", "commit", "in", "the", "source", "branch", "when", "and", "if", "you", "merge", "the", "source", "branch", "into", "the", "destination", "branch", "<", "/", "p", ">" ]
[ "set", "before", "commit", "id", "(", "before", "commit", "id", ")", ";", "return", "this", ";" ]
[ "<", "p", ">", "he", "full", "commit", "id", "of", "the", "commit", "that", "was", "the", "tip", "of", "the", "source", "branch", "at", "the", "time", "the", "comment", "was", "made", "<", "/", "p", ">" ]
[ "set", "after", "commit", "id", "(", "after", "commit", "id", ")", ";", "return", "this", ";" ]
[ "<", "p", ">", "the", "full", "blob", "id", "of", "the", "file", "on", "which", "you", "want", "to", "comment", "on", "the", "destination", "commit", "<", "/", "p", ">" ]
[ "set", "before", "blob", "id", "(", "before", "blob", "id", ")", ";", "return", "this", ";" ]
[ "<", "p", ">", "the", "full", "blob", "id", "of", "the", "file", "on", "which", "you", "want", "to", "comment", "on", "the", "source", "commit", "<", "/", "p", ">" ]
[ "set", "after", "blob", "id", "(", "after", "blob", "id", ")", ";", "return", "this", ";" ]
[ "<", "p", ">", "location", "information", "about", "the", "comment", "on", "the", "pull", "request", "including", "the", "file", "name", "line", "number", "and", "whether", "the", "version", "of", "the", "file", "where", "the", "comment", "was", "made", "is", "before", "(", "destination", "branch", ")", "or", "after", "(", "source", "branch", ")", "<", "/", "p", ">" ]
[ "set", "location", "(", "location", ")", ";", "return", "this", ";" ]
[ "<", "p", ">", "an", "array", "of", "comment", "objects", "each", "comment", "object", "contains", "information", "about", "a", "comment", "on", "the", "pull", "request", "<", "/", "p", ">", "<", "p", ">", "<", "b", ">", "note", ":", "<", "/", "b", ">", "this", "method", "appends", "the", "values", "to", "the", "existing", "list", "(", "if", "any", ")", "use", "{", "@", "link", "#", "set", "comments", "(", "java", "util", "collection", ")", "}", "or", "{", "@", "link", "#", "with", "comments", "(", "java", "util", "collection", ")", "}", "if", "you", "want", "to", "override", "the", "existing", "values", "<", "/", "p", ">" ]
[ "if", "(", "this", "comments", "=", "=", "null", ")", "{", "set", "comments", "(", "new", "java", "util", "array", "list", "<", "comment", ">", "(", "comments", "length", ")", ")", ";", "}", "for", "(", "comment", "ele", ":", "comments", ")", "{", "this", "comments", "add", "(", "ele", ")", ";", "}", "return", "this", ";" ]
[ "<", "p", ">", "an", "array", "of", "comment", "objects", "each", "comment", "object", "contains", "information", "about", "a", "comment", "on", "the", "pull", "request", "<", "/", "p", ">" ]
[ "set", "comments", "(", "comments", ")", ";", "return", "this", ";" ]
[ "returns", "the", "result", "of", "substituting", "the", "variables", "defined", "by", "the", "fields", "of", "this", "class", "(", "a", "concrete", "subclass", "of", "template", "vars", ")", "into", "the", "template", "returned", "by", "{" ]
[ "map", "<", "string", ",", "object", ">", "vars", "=", "to", "vars", "(", ")", ";", "return", "parsed", "template", "(", ")", "evaluate", "(", "vars", ")", ";" ]
[ "system", "does", "run", "it", "using", "a", "jar", "so", "we", "do", "have", "coverage" ]
[ "file", "resource", "file", "=", "new", "file", "(", "resource", "url", "to", "u", "r", "i", "(", ")", ")", ";", "return", "new", "file", "input", "stream", "(", "resource", "file", ")", ";" ]
[ "<", "p", ">", "the", "name", "of", "the", "vocabulary", "that", "was", "updated", "<", "/", "p", ">" ]
[ "set", "vocabulary", "name", "(", "vocabulary", "name", ")", ";", "return", "this", ";" ]
[ "<", "p", ">", "the", "language", "code", "of", "the", "vocabulary", "entries", "<", "/", "p", ">" ]
[ "set", "language", "code", "(", "language", "code", ")", ";", "return", "this", ";" ]
[ "<", "p", ">", "the", "language", "code", "of", "the", "vocabulary", "entries", "<", "/", "p", ">" ]
[ "this", "language", "code", "=", "language", "code", "to", "string", "(", ")", ";", "return", "this", ";" ]
[ "<", "p", ">", "the", "date", "and", "time", "that", "the", "vocabulary", "was", "updated", "<", "/", "p", ">" ]
[ "set", "last", "modified", "time", "(", "last", "modified", "time", ")", ";", "return", "this", ";" ]
[ "<", "p", ">", "the", "processing", "state", "of", "the", "vocabulary", "when", "the", "<", "code", ">", "vocabulary", "state", "<", "/", "code", ">", "field", "contains", "<", "code", ">", "ready", "<", "/", "code", ">", "the", "vocabulary", "is", "ready", "to", "be", "used", "in", "a", "<", "code", ">", "start", "transcription", "job", "<", "/", "code", ">", "request", "<", "/", "p", ">" ]
[ "set", "vocabulary", "state", "(", "vocabulary", "state", ")", ";", "return", "this", ";" ]
[ "<", "p", ">", "the", "processing", "state", "of", "the", "vocabulary", "when", "the", "<", "code", ">", "vocabulary", "state", "<", "/", "code", ">", "field", "contains", "<", "code", ">", "ready", "<", "/", "code", ">", "the", "vocabulary", "is", "ready", "to", "be", "used", "in", "a", "<", "code", ">", "start", "transcription", "job", "<", "/", "code", ">", "request", "<", "/", "p", ">" ]
[ "this", "vocabulary", "state", "=", "vocabulary", "state", "to", "string", "(", ")", ";", "return", "this", ";" ]
[ "this", "method", "checks", "if", "the", "literal", "matches", "the", "pattern", "if", "it", "does", "a", "violation", "is", "logged" ]
[ "init", "(", ")", ";", "string", "image", "=", "node", "get", "image", "(", ")", ";", "if", "(", "image", "!", "=", "null", "&", "&", "image", "length", "(", ")", ">", "0", "&", "&", "regex", "helper", "is", "match", "(", "this", "pattern", ",", "image", ")", ")", "{", "add", "violation", "(", "data", ",", "node", ")", ";", "}", "return", "data", ";" ]
[ "converts", "an", "byte", "array", "to", "a", "nonnegative", "integer", "(", "https", ":", "/", "/", "tools", "ietf", "org", "/", "html", "/", "rfc", "8", "0", "1", "7", "#", "section", "-", "4", "1", ")" ]
[ "return", "new", "big", "integer", "(", "1", ",", "bs", ")", ";" ]
[ "the", "shard", "store", "class", "that", "should", "be", "used", "for", "each", "shard" ]
[ "return", "new", "fs", "directory", "service", "(", "index", "settings", ",", "this", ",", "path", ")", ";" ]
[ "find", "a", "slave", "sequence", "with", "a", "certain", "name" ]
[ "for", "(", "slave", "sequence", "slave", "sequence", ":", "slave", "sequences", ")", "{", "if", "(", "slave", "sequence", "get", "name", "(", ")", "equals", "ignore", "case", "(", "name", ")", ")", "{", "return", "slave", "sequence", ";", "}", "}", "return", "null", ";" ]
[ "static", "for", "direct", "access", "by", "connectivity", "service" ]
[ "return", "get", "captive", "portal", "server", "http", "url", "(", "dependencies", "default", ",", "context", ")", ";" ]
[ "retrieves", "this", "location", "s", "parent", "within", "this", "list", "if", "any" ]
[ "for", "(", "location", "final", "location", ":", "final", "locations", ")", "{", "if", "(", "final", "location", "is", "parent", "of", "(", "location", ")", ")", "{", "return", "final", "location", ";", "}", "}", "return", "null", ";" ]
[ "rehashing", "all", "of", "the", "keys" ]
[ "separate", "chaining", "hash", "s", "t", "<", "key", ",", "value", ">", "temp", "=", "new", "separate", "chaining", "hash", "s", "t", "<", "key", ",", "value", ">", "(", "chains", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "m", ";", "i", "+", "+", ")", "{", "for", "(", "key", "key", ":", "st", "[", "i", "]", "keys", "(", ")", ")", "{", "temp", "put", "(", "key", ",", "st", "[", "i", "]", "get", "(", "key", ")", ")", ";", "}", "}", "this", "m", "=", "temp", "m", ";", "this", "n", "=", "temp", "n", ";", "this", "st", "=", "temp", "st", ";" ]
[ "return", "keys", "in", "symbol", "table", "as", "an", "iterable" ]
[ "queue", "<", "key", ">", "queue", "=", "new", "queue", "<", "key", ">", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "m", ";", "i", "+", "+", ")", "{", "for", "(", "key", "key", ":", "st", "[", "i", "]", "keys", "(", ")", ")", "queue", "enqueue", "(", "key", ")", ";", "}", "return", "queue", ";" ]
[ "check", "if", "the", "calling", "user", "has", "the", "access", "to", "application", "information" ]
[ "return", "applications", "a", "c", "ls", "manager", "check", "access", "(", "caller", "u", "g", "i", ",", "operation", "performed", ",", "owner", ",", "application", "get", "application", "id", "(", ")", ")", "|", "|", "queue", "a", "c", "ls", "manager", "check", "access", "(", "caller", "u", "g", "i", ",", "queue", "a", "c", "l", "administer", "queue", ",", "application", "get", "queue", "(", ")", ")", ";" ]
[ "build", "a", "list", "of", "elements", "by", "visiting", "root", "and", "every", "descendant", "of", "root", "and", "testing", "it", "against", "the", "evaluator" ]
[ "elements", "elements", "=", "new", "elements", "(", ")", ";", "node", "traversor", "traverse", "(", "new", "accumulator", "(", "root", ",", "elements", ",", "eval", ")", ",", "root", ")", ";", "return", "elements", ";" ]
[ "{" ]
[ "if", "(", "compilation", "unit", "=", "=", "null", ")", "return", "null", ";", "boolean", "use", "type", "parameters", "=", "is", "enabled", "(", "clean", "up", "constants", "use", "type", "arguments", ")", ";", "if", "(", "!", "use", "type", "parameters", ")", "return", "null", ";", "return", "type", "parameters", "fix", "create", "clean", "up", "(", "compilation", "unit", ",", "is", "enabled", "(", "clean", "up", "constants", "insert", "inferred", "type", "arguments", ")", ",", "is", "enabled", "(", "clean", "up", "constants", "remove", "redundant", "type", "arguments", ")", ")", ";" ]
[ "{" ]
[ "list", "<", "string", ">", "result", "=", "new", "array", "list", "<", "string", ">", "(", ")", ";", "if", "(", "is", "enabled", "(", "clean", "up", "constants", "use", "type", "arguments", ")", "&", "&", "is", "enabled", "(", "clean", "up", "constants", "insert", "inferred", "type", "arguments", ")", ")", "{", "result", "add", "(", "multi", "fix", "messages", "type", "parameters", "clean", "up", "insert", "inferred", "type", "arguments", "description", ")", ";", "}", "else", "if", "(", "is", "enabled", "(", "clean", "up", "constants", "use", "type", "arguments", ")", "&", "&", "is", "enabled", "(", "clean", "up", "constants", "remove", "redundant", "type", "arguments", ")", ")", "{", "result", "add", "(", "multi", "fix", "messages", "type", "parameters", "clean", "up", "remove", "redundant", "type", "arguments", "description", ")", ";", "}", "return", "result", "to", "array", "(", "new", "string", "[", "result", "size", "(", ")", "]", ")", ";" ]
[ "{" ]
[ "int", "problem", "id", "=", "problem", "get", "problem", "id", "(", ")", ";", "if", "(", "problem", "id", "=", "=", "i", "problem", "redundant", "specification", "of", "type", "arguments", ")", "return", "is", "enabled", "(", "clean", "up", "constants", "remove", "redundant", "type", "arguments", ")", ";", "if", "(", "problem", "id", "=", "=", "i", "problem", "diamond", "not", "below", "1", "7", ")", "return", "is", "enabled", "(", "clean", "up", "constants", "insert", "inferred", "type", "arguments", ")", ";", "return", "false", ";" ]
[ "{" ]
[ "if", "(", "f", "options", "=", "=", "null", ")", "return", "0", ";", "int", "result", "=", "0", ";", "i", "problem", "[", "]", "problems", "=", "compilation", "unit", "get", "problems", "(", ")", ";", "if", "(", "is", "enabled", "(", "clean", "up", "constants", "remove", "redundant", "type", "arguments", ")", ")", "result", "=", "get", "number", "of", "problems", "(", "problems", ",", "i", "problem", "redundant", "specification", "of", "type", "arguments", ")", ";", "else", "if", "(", "is", "enabled", "(", "clean", "up", "constants", "insert", "inferred", "type", "arguments", ")", ")", "result", "=", "get", "number", "of", "problems", "(", "problems", ",", "i", "problem", "diamond", "not", "below", "1", "7", ")", ";", "return", "result", ";" ]
[ "gets", "the", "bson", "output", "backing", "this", "instance" ]
[ "return", "bson", "output", ";" ]
[ "sets", "a", "maximum", "size", "for", "documents", "from", "this", "point" ]
[ "max", "document", "size", "stack", "push", "(", "max", "document", "size", ")", ";" ]
[ "reset", "the", "maximum", "document", "size", "to", "its", "previous", "value" ]
[ "max", "document", "size", "stack", "pop", "(", ")", ";" ]
[ "create", "a", "snapshot", "of", "this", "writer", "s", "context", "at", "a", "point", "in", "time" ]
[ "mark", "=", "new", "mark", "(", ")", ";" ]
[ "{" ]
[ "return", "(", "db", "jtx", "transaction", ")", "super", "request", "transaction", "(", "mode", ",", "null", ")", ";" ]
[ "{" ]
[ "return", "(", "db", "jtx", "transaction", ")", "super", "request", "transaction", "(", "mode", ",", "scope", ")", ";" ]
[ "builds", "new", "transaction", "instance" ]
[ "return", "new", "db", "jtx", "transaction", "(", "this", ",", "tm", ",", "scope", ",", "active", ")", ";" ]
[ "delegate", "the", "call", "to", "the", "internal", "{" ]
[ "delegate", "read", "lock", "(", ")", "lock", "(", ")", ";", "inc", "read", "lock", "count", "(", ")", ";" ]
[ "delegate", "the", "call", "to", "the", "internal", "{" ]
[ "delegate", "read", "lock", "(", ")", "lock", "interruptibly", "(", ")", ";", "inc", "read", "lock", "count", "(", ")", ";" ]
[ "delegate", "the", "call", "to", "the", "internal", "{" ]
[ "if", "(", "delegate", "read", "lock", "(", ")", "try", "lock", "(", ")", ")", "{", "inc", "read", "lock", "count", "(", ")", ";", "return", "true", ";", "}", "return", "false", ";" ]
[ "delegate", "the", "call", "to", "the", "internal", "{" ]
[ "if", "(", "delegate", "read", "lock", "(", ")", "try", "lock", "(", "time", ",", "unit", ")", ")", "{", "inc", "read", "lock", "count", "(", ")", ";", "return", "true", ";", "}", "return", "false", ";" ]
[ "delegate", "the", "call", "to", "the", "internal", "{" ]
[ "delegate", "read", "lock", "(", ")", "unlock", "(", ")", ";", "dec", "read", "lock", "count", "(", ")", ";" ]
[ "ensures", "that", "the", "current", "thread", "doesn", "t", "hold", "any", "read", "locks", "if", "the", "thread", "holds", "any", "read", "locks", "this", "method", "throws", "a", "{" ]
[ "check", "loopback", "(", ")", ";", "delegate", "write", "lock", "(", ")", "lock", "(", ")", ";" ]
[ "ensures", "that", "the", "current", "thread", "doesn", "t", "hold", "any", "read", "locks", "if", "the", "thread", "holds", "any", "read", "locks", "this", "method", "throws", "a", "{" ]
[ "check", "loopback", "(", ")", ";", "delegate", "write", "lock", "(", ")", "lock", "interruptibly", "(", ")", ";" ]
[ "ensures", "that", "the", "current", "thread", "doesn", "t", "hold", "any", "read", "locks", "if", "the", "thread", "holds", "any", "read", "locks", "this", "method", "throws", "a", "{" ]
[ "check", "loopback", "(", ")", ";", "return", "delegate", "write", "lock", "(", ")", "try", "lock", "(", ")", ";" ]
[ "ensures", "that", "the", "current", "thread", "doesn", "t", "hold", "any", "read", "locks", "if", "the", "thread", "holds", "any", "read", "locks", "this", "method", "throws", "a", "{" ]
[ "check", "loopback", "(", ")", ";", "return", "delegate", "write", "lock", "(", ")", "try", "lock", "(", "time", ",", "unit", ")", ";" ]
[ "this", "method", "delegates", "the", "call", "to", "the", "internal", "delegate", "{" ]
[ "delegate", "write", "lock", "(", ")", "unlock", "(", ")", ";" ]
[ "increments", "the", "read", "lock", "count", "held", "by", "the", "thread" ]
[ "integer", "current", "=", "read", "lock", "count", "get", "(", ")", ";", "int", "next", ";", "if", "(", "current", "=", "=", "null", ")", "next", "=", "1", ";", "else", "next", "=", "current", "int", "value", "(", ")", "+", "1", ";", "read", "lock", "count", "set", "(", "new", "integer", "(", "next", ")", ")", ";" ]
[ "@", "hide", "vector", "add" ]
[ "this", "x", "+", "=", "a", "x", ";", "this", "y", "+", "=", "a", "y", ";", "this", "z", "+", "=", "a", "z", ";" ]
[ "@", "hide", "vector", "add" ]
[ "short", "3", "result", "=", "new", "short", "3", "(", ")", ";", "result", "x", "=", "(", "short", ")", "(", "a", "x", "+", "b", "x", ")", ";", "result", "y", "=", "(", "short", ")", "(", "a", "y", "+", "b", "y", ")", ";", "result", "z", "=", "(", "short", ")", "(", "a", "z", "+", "b", "z", ")", ";", "return", "result", ";" ]
[ "@", "hide", "vector", "add" ]
[ "x", "+", "=", "value", ";", "y", "+", "=", "value", ";", "z", "+", "=", "value", ";" ]
[ "@", "hide", "vector", "add" ]
[ "short", "3", "result", "=", "new", "short", "3", "(", ")", ";", "result", "x", "=", "(", "short", ")", "(", "a", "x", "+", "b", ")", ";", "result", "y", "=", "(", "short", ")", "(", "a", "y", "+", "b", ")", ";", "result", "z", "=", "(", "short", ")", "(", "a", "z", "+", "b", ")", ";", "return", "result", ";" ]
[ "@", "hide", "vector", "subtraction" ]
[ "this", "x", "-", "=", "a", "x", ";", "this", "y", "-", "=", "a", "y", ";", "this", "z", "-", "=", "a", "z", ";" ]
[ "@", "hide", "vector", "subtraction" ]
[ "short", "3", "result", "=", "new", "short", "3", "(", ")", ";", "result", "x", "=", "(", "short", ")", "(", "a", "x", "-", "b", "x", ")", ";", "result", "y", "=", "(", "short", ")", "(", "a", "y", "-", "b", "y", ")", ";", "result", "z", "=", "(", "short", ")", "(", "a", "z", "-", "b", "z", ")", ";", "return", "result", ";" ]
[ "@", "hide", "vector", "subtraction" ]
[ "x", "-", "=", "value", ";", "y", "-", "=", "value", ";", "z", "-", "=", "value", ";" ]
[ "@", "hide", "vector", "subtraction" ]
[ "short", "3", "result", "=", "new", "short", "3", "(", ")", ";", "result", "x", "=", "(", "short", ")", "(", "a", "x", "-", "b", ")", ";", "result", "y", "=", "(", "short", ")", "(", "a", "y", "-", "b", ")", ";", "result", "z", "=", "(", "short", ")", "(", "a", "z", "-", "b", ")", ";", "return", "result", ";" ]
[ "@", "hide", "vector", "multiplication" ]
[ "this", "x", "*", "=", "a", "x", ";", "this", "y", "*", "=", "a", "y", ";", "this", "z", "*", "=", "a", "z", ";" ]
[ "@", "hide", "vector", "multiplication" ]
[ "short", "3", "result", "=", "new", "short", "3", "(", ")", ";", "result", "x", "=", "(", "short", ")", "(", "a", "x", "*", "b", "x", ")", ";", "result", "y", "=", "(", "short", ")", "(", "a", "y", "*", "b", "y", ")", ";", "result", "z", "=", "(", "short", ")", "(", "a", "z", "*", "b", "z", ")", ";", "return", "result", ";" ]
[ "@", "hide", "vector", "multiplication" ]
[ "x", "*", "=", "value", ";", "y", "*", "=", "value", ";", "z", "*", "=", "value", ";" ]
[ "@", "hide", "vector", "multiplication" ]
[ "short", "3", "result", "=", "new", "short", "3", "(", ")", ";", "result", "x", "=", "(", "short", ")", "(", "a", "x", "*", "b", ")", ";", "result", "y", "=", "(", "short", ")", "(", "a", "y", "*", "b", ")", ";", "result", "z", "=", "(", "short", ")", "(", "a", "z", "*", "b", ")", ";", "return", "result", ";" ]
[ "@", "hide", "vector", "division" ]
[ "this", "x", "/", "=", "a", "x", ";", "this", "y", "/", "=", "a", "y", ";", "this", "z", "/", "=", "a", "z", ";" ]
[ "@", "hide", "vector", "division" ]
[ "short", "3", "result", "=", "new", "short", "3", "(", ")", ";", "result", "x", "=", "(", "short", ")", "(", "a", "x", "/", "b", "x", ")", ";", "result", "y", "=", "(", "short", ")", "(", "a", "y", "/", "b", "y", ")", ";", "result", "z", "=", "(", "short", ")", "(", "a", "z", "/", "b", "z", ")", ";", "return", "result", ";" ]
[ "@", "hide", "vector", "division" ]
[ "x", "/", "=", "value", ";", "y", "/", "=", "value", ";", "z", "/", "=", "value", ";" ]
[ "@", "hide", "vector", "division" ]
[ "short", "3", "result", "=", "new", "short", "3", "(", ")", ";", "result", "x", "=", "(", "short", ")", "(", "a", "x", "/", "b", ")", ";", "result", "y", "=", "(", "short", ")", "(", "a", "y", "/", "b", ")", ";", "result", "z", "=", "(", "short", ")", "(", "a", "z", "/", "b", ")", ";", "return", "result", ";" ]
[ "@", "hide", "vector", "modulo" ]
[ "this", "x", "%", "=", "a", "x", ";", "this", "y", "%", "=", "a", "y", ";", "this", "z", "%", "=", "a", "z", ";" ]
[ "@", "hide", "vector", "modulo" ]
[ "short", "3", "result", "=", "new", "short", "3", "(", ")", ";", "result", "x", "=", "(", "short", ")", "(", "a", "x", "%", "b", "x", ")", ";", "result", "y", "=", "(", "short", ")", "(", "a", "y", "%", "b", "y", ")", ";", "result", "z", "=", "(", "short", ")", "(", "a", "z", "%", "b", "z", ")", ";", "return", "result", ";" ]
[ "@", "hide", "vector", "modulo" ]
[ "x", "%", "=", "value", ";", "y", "%", "=", "value", ";", "z", "%", "=", "value", ";" ]
[ "@", "hide", "vector", "modulo" ]
[ "short", "3", "result", "=", "new", "short", "3", "(", ")", ";", "result", "x", "=", "(", "short", ")", "(", "a", "x", "%", "b", ")", ";", "result", "y", "=", "(", "short", ")", "(", "a", "y", "%", "b", ")", ";", "result", "z", "=", "(", "short", ")", "(", "a", "z", "%", "b", ")", ";", "return", "result", ";" ]
[ "@", "hide", "get", "vector", "length" ]
[ "return", "3", ";" ]
[ "@", "hide", "vector", "dot", "product" ]
[ "return", "(", "short", ")", "(", "(", "x", "*", "a", "x", ")", "+", "(", "y", "*", "a", "y", ")", "+", "(", "z", "*", "a", "z", ")", ")", ";" ]
[ "@", "hide", "vector", "dot", "product" ]
[ "return", "(", "short", ")", "(", "(", "b", "x", "*", "a", "x", ")", "+", "(", "b", "y", "*", "a", "y", ")", "+", "(", "b", "z", "*", "a", "z", ")", ")", ";" ]
[ "@", "hide", "vector", "add", "multiple" ]
[ "x", "+", "=", "a", "x", "*", "factor", ";", "y", "+", "=", "a", "y", "*", "factor", ";", "z", "+", "=", "a", "z", "*", "factor", ";" ]
[ "@", "hide", "set", "vector", "value", "by", "short", "3" ]
[ "this", "x", "=", "a", "x", ";", "this", "y", "=", "a", "y", ";", "this", "z", "=", "a", "z", ";" ]
[ "@", "hide", "set", "the", "vector", "field", "value", "by", "short" ]
[ "this", "x", "=", "a", ";", "this", "y", "=", "b", ";", "this", "z", "=", "c", ";" ]
[ "@", "hide", "return", "the", "element", "sum", "of", "vector" ]
[ "return", "(", "short", ")", "(", "x", "+", "y", "+", "z", ")", ";" ]
[ "@", "hide", "copy", "the", "vector", "to", "short", "array" ]
[ "data", "[", "offset", "]", "=", "(", "short", ")", "(", "x", ")", ";", "data", "[", "offset", "+", "1", "]", "=", "(", "short", ")", "(", "y", ")", ";", "data", "[", "offset", "+", "2", "]", "=", "(", "short", ")", "(", "z", ")", ";" ]
[ "blocking", "retrieval", "and", "removal", "of", "the", "object", "to", "share" ]
[ "try", "{", "v", "obj", "to", "share", "=", "retrieve", "shared", "queue", "(", "key", ")", "take", "(", ")", ";", "mediations", "remove", "(", "key", ")", ";", "return", "obj", "to", "share", ";", "}", "catch", "(", "interrupted", "exception", "e", ")", "{", "throw", "new", "runtime", "exception", "(", "e", ")", ";", "}" ]
[ "blocking", "retrieval", "and", "removal", "of", "the", "object", "to", "share" ]
[ "mediations", "remove", "(", "key", ")", ";" ]
[ "thread", "-", "safe", "call", "to", "get", "a", "shared", "{" ]
[ "blocking", "queue", "<", "v", ">", "queue", "=", "mediations", "get", "(", "key", ")", ";", "if", "(", "queue", "=", "=", "null", ")", "{", "queue", "=", "new", "array", "blocking", "queue", "<", "v", ">", "(", "1", ")", ";", "blocking", "queue", "<", "v", ">", "common", "queue", "=", "mediations", "put", "if", "absent", "(", "key", ",", "queue", ")", ";", "return", "common", "queue", "!", "=", "null", "?", "common", "queue", ":", "queue", ";", "}", "else", "{", "return", "queue", ";", "}" ]
[ "creates", "a", "filter", "that", "returns", "true", "for", "any", "value", "in", "the", "specified", "list", "of", "values", "and", "false", "for", "all", "other", "cases" ]
[ "return", "in", "(", "new", "hash", "set", "<", "t", ">", "(", "arrays", "as", "list", "(", "values", ")", ")", ")", ";" ]
[ "creates", "a", "filter", "that", "returns", "true", "for", "any", "value", "in", "the", "specified", "collection", "and", "false", "for", "all", "other", "cases" ]
[ "return", "new", "in", "filter", "<", "t", ">", "(", "collection", ")", ";" ]
[ "creates", "a", "filter", "that", "returns", "true", "for", "any", "value", "not", "in", "the", "specified", "list", "of", "values", "and", "false", "for", "all", "other", "cases", "this", "is", "the", "equivalent", "of", "calling", "not", "(", "in", "(", "values", ")", ")" ]
[ "return", "not", "(", "in", "(", "values", ")", ")", ";" ]
[ "creates", "a", "filter", "that", "returns", "true", "for", "any", "value", "not", "in", "the", "specified", "collection", "and", "false", "for", "all", "other", "cases", "this", "is", "the", "equivalent", "of", "calling", "not", "(", "in", "(", "collection", ")", ")" ]
[ "return", "not", "(", "in", "(", "collection", ")", ")", ";" ]
[ "creates", "a", "filter", "that", "returns", "true", "for", "inputs", "that", "are", "equals", "(", ")", "equivalent", "to", "the", "specified", "value" ]
[ "return", "new", "equal", "to", "filter", "<", "t", ">", "(", "value", ")", ";" ]
[ "creates", "a", "filter", "that", "returns", "true", "for", "inputs", "that", "are", "not", "equals", "(", ")", "equivalent", "to", "the", "specified", "value", "this", "is", "the", "equivalent", "of", "calling", "not", "(", "equal", "to", "(", "value", ")", ")" ]
[ "return", "not", "(", "equal", "to", "(", "value", ")", ")", ";" ]
[ "creates", "a", "filter", "that", "returns", "true", "when", "the", "specified", "delegate", "filter", "returns", "false", "and", "vice", "versa" ]
[ "return", "new", "not", "filter", "<", "t", ">", "(", "f", ")", ";" ]
[ "normalize", "by", "zero", "mean", "unit", "variance" ]
[ "return", "zeromean", "unit", "variance", "(", "frame", ",", "collections", "<", "string", ">", "empty", "list", "(", ")", ")", ";" ]
[ "normalize", "by", "zero", "mean", "unit", "variance" ]
[ "return", "zeromean", "unit", "variance", "(", "schema", ",", "data", ",", "collections", "<", "string", ">", "empty", "list", "(", ")", ")", ";" ]
[ "scale", "based", "on", "min", "max" ]
[ "return", "normalize", "(", "data", "frame", ",", "min", ",", "max", ",", "collections", "<", "string", ">", "empty", "list", "(", ")", ")", ";" ]
[ "scale", "based", "on", "min", "max" ]
[ "data", "rows", "facade", "frame", "=", "data", "frames", "to", "data", "frame", "(", "schema", ",", "data", ")", ";", "return", "data", "frames", "to", "records", "(", "normalize", "(", "frame", ",", "min", ",", "max", ",", "collections", "<", "string", ">", "empty", "list", "(", ")", ")", ")", "get", "second", "(", ")", ";" ]
[ "scale", "based", "on", "min", "max" ]
[ "return", "normalize", "(", "data", "frame", ",", "0", ",", "1", ",", "collections", "<", "string", ">", "empty", "list", "(", ")", ")", ";" ]
[ "scale", "all", "data", "0", "to", "1" ]
[ "return", "normalize", "(", "schema", ",", "data", ",", "0", ",", "1", ",", "collections", "<", "string", ">", "empty", "list", "(", ")", ")", ";" ]
[ "normalize", "by", "zero", "mean", "unit", "variance" ]
[ "data", "rows", "facade", "frame", "=", "data", "frames", "to", "data", "frame", "(", "schema", ",", "data", ")", ";", "return", "data", "frames", "to", "records", "(", "zeromean", "unit", "variance", "(", "frame", ",", "skip", "columns", ")", ")", "get", "second", "(", ")", ";" ]
[ "normalize", "the", "sequence", "by", "zero", "mean", "unit", "variance" ]
[ "return", "zero", "mean", "unit", "variance", "sequence", "(", "schema", ",", "sequence", ",", "null", ")", ";" ]
[ "normalize", "the", "sequence", "by", "zero", "mean", "unit", "variance" ]
[ "data", "rows", "facade", "frame", "=", "data", "frames", "to", "data", "frame", "sequence", "(", "schema", ",", "sequence", ")", ";", "if", "(", "exclude", "columns", "=", "=", "null", ")", "exclude", "columns", "=", "arrays", "as", "list", "(", "data", "frames", "sequence", "uuid", "column", ",", "data", "frames", "sequence", "index", "column", ")", ";", "else", "{", "exclude", "columns", "=", "new", "array", "list", "<", ">", "(", "exclude", "columns", ")", ";", "exclude", "columns", "add", "(", "data", "frames", "sequence", "uuid", "column", ")", ";", "exclude", "columns", "add", "(", "data", "frames", "sequence", "index", "column", ")", ";", "}", "frame", "=", "zeromean", "unit", "variance", "(", "frame", ",", "exclude", "columns", ")", ";", "return", "data", "frames", "to", "records", "sequence", "(", "frame", ")", "get", "second", "(", ")", ";" ]
[ "returns", "the", "min", "and", "max", "of", "the", "given", "columns" ]
[ "string", "[", "]", "arr", "=", "new", "string", "[", "columns", "size", "(", ")", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "arr", "length", ";", "i", "+", "+", ")", "arr", "[", "i", "]", "=", "columns", "get", "(", "i", ")", ";", "return", "min", "max", "columns", "(", "data", ",", "arr", ")", ";" ]
[ "returns", "the", "standard", "deviation", "and", "mean", "of", "the", "given", "columns" ]
[ "string", "[", "]", "arr", "=", "new", "string", "[", "columns", "size", "(", ")", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "arr", "length", ";", "i", "+", "+", ")", "arr", "[", "i", "]", "=", "columns", "get", "(", "i", ")", ";", "return", "std", "dev", "mean", "columns", "(", "data", ",", "arr", ")", ";" ]
[ "scale", "based", "on", "min", "max" ]
[ "data", "rows", "facade", "frame", "=", "data", "frames", "to", "data", "frame", "(", "schema", ",", "data", ")", ";", "return", "data", "frames", "to", "records", "(", "normalize", "(", "frame", ",", "min", ",", "max", ",", "skip", "columns", ")", ")", "get", "second", "(", ")", ";" ]
[ "normalize", "each", "column", "of", "a", "sequence", "based", "on", "min", "/", "max" ]
[ "return", "normalize", "sequence", "(", "schema", ",", "data", ",", "min", ",", "max", ",", "null", ")", ";" ]
[ "normalize", "each", "column", "of", "a", "sequence", "based", "on", "min", "/", "max" ]
[ "if", "(", "exclude", "columns", "=", "=", "null", ")", "exclude", "columns", "=", "arrays", "as", "list", "(", "data", "frames", "sequence", "uuid", "column", ",", "data", "frames", "sequence", "index", "column", ")", ";", "else", "{", "exclude", "columns", "=", "new", "array", "list", "<", ">", "(", "exclude", "columns", ")", ";", "exclude", "columns", "add", "(", "data", "frames", "sequence", "uuid", "column", ")", ";", "exclude", "columns", "add", "(", "data", "frames", "sequence", "index", "column", ")", ";", "}", "data", "rows", "facade", "frame", "=", "data", "frames", "to", "data", "frame", "sequence", "(", "schema", ",", "data", ")", ";", "return", "data", "frames", "to", "records", "sequence", "(", "normalize", "(", "frame", ",", "min", ",", "max", ",", "exclude", "columns", ")", ")", "get", "second", "(", ")", ";" ]