docstring_tokens
list
code_tokens
list
[ "closes", "the", "web", "socket", "connection" ]
[ "if", "(", "web", "socket", "!", "=", "null", ")", "{", "running", "=", "false", ";", "web", "socket", "close", "(", ")", ";", "web", "socket", "=", "null", ";", "}" ]
[ "finds", "a", "plex", "session", "for", "a", "certain", "client", "identified", "by", "machine", "identifier" ]
[ "for", "(", "entry", "<", "string", ",", "plex", "session", ">", "session", ":", "sessions", "entry", "set", "(", ")", ")", "{", "if", "(", "session", "get", "value", "(", ")", "get", "machine", "identifier", "(", ")", "equals", "(", "machine", "identifier", ")", ")", "{", "return", "session", "get", "value", "(", ")", ";", "}", "}", "return", "null", ";" ]
[ "{" ]
[ "return", "new", "convergence", "checker", "stub", "<", ">", "(", "sample", "size", ",", "external", "lb", "to", "internal", "mapping", ",", "loss", ",", "dataset", "builder", ",", "feature", "extractor", ",", "lb", "extractor", ")", ";" ]
[ "need", "to", "delete", "all", "metrics", "from", "accumulator", "before", "running", "another", "test" ]
[ "accumulator", "factory", "clear", "(", ")", ";" ]
[ "this", "method", "adds", "given", "transform", "with", "100", "%", "invocation", "probability", "to", "this", "pipelien" ]
[ "return", "add", "image", "transform", "(", "transform", ",", "1", "0", ")", ";" ]
[ "this", "method", "adds", "given", "transform", "with", "given", "invocation", "probability", "to", "this", "pipelien" ]
[ "if", "(", "probability", "<", "0", "0", ")", "{", "probability", "=", "0", "0", ";", "}", "if", "(", "probability", ">", "1", "0", ")", "{", "probability", "=", "1", "0", ";", "}", "image", "transforms", "add", "(", "pair", "make", "pair", "(", "transform", ",", "probability", ")", ")", ";", "return", "this", ";" ]
[ "this", "method", "returns", "new", "pipeline", "image", "transform", "instance" ]
[ "if", "(", "seed", "!", "=", "null", ")", "{", "return", "new", "pipeline", "image", "transform", "(", "seed", ",", "image", "transforms", ")", ";", "}", "else", "{", "return", "new", "pipeline", "image", "transform", "(", "image", "transforms", ")", ";", "}" ]
[ "<", "p", ">", "the", "arn", "of", "the", "hsm", "to", "modify", "<", "/", "p", ">" ]
[ "set", "hsm", "arn", "(", "hsm", "arn", ")", ";", "return", "this", ";" ]
[ "<", "p", ">", "the", "new", "identifier", "of", "the", "subnet", "that", "the", "hsm", "is", "in", "the", "new", "subnet", "must", "be", "in", "the", "same", "availability", "zone", "as", "the", "current", "subnet", "<", "/", "p", ">" ]
[ "set", "subnet", "id", "(", "subnet", "id", ")", ";", "return", "this", ";" ]
[ "<", "p", ">", "the", "new", "ip", "address", "for", "the", "elastic", "network", "interface", "(", "eni", ")", "attached", "to", "the", "hsm", "<", "/", "p", ">", "<", "p", ">", "if", "the", "hsm", "is", "moved", "to", "a", "different", "subnet", "and", "an", "ip", "address", "is", "not", "specified", "an", "ip", "address", "will", "be", "randomly", "chosen", "from", "the", "cidr", "range", "of", "the", "new", "subnet", "<", "/", "p", ">" ]
[ "set", "eni", "ip", "(", "eni", "ip", ")", ";", "return", "this", ";" ]
[ "<", "p", ">", "the", "new", "iam", "role", "arn", "<", "/", "p", ">" ]
[ "set", "iam", "role", "arn", "(", "iam", "role", "arn", ")", ";", "return", "this", ";" ]
[ "<", "p", ">", "the", "new", "external", "id", "<", "/", "p", ">" ]
[ "set", "external", "id", "(", "external", "id", ")", ";", "return", "this", ";" ]
[ "<", "p", ">", "the", "ip", "address", "for", "the", "syslog", "monitoring", "server", "the", "aws", "cloud", "h", "s", "m", "service", "only", "supports", "one", "syslog", "monitoring", "server", "<", "/", "p", ">" ]
[ "this", "syslog", "ip", "=", "syslog", "ip", ";" ]
[ "<", "p", ">", "the", "ip", "address", "for", "the", "syslog", "monitoring", "server", "the", "aws", "cloud", "h", "s", "m", "service", "only", "supports", "one", "syslog", "monitoring", "server", "<", "/", "p", ">" ]
[ "return", "this", "syslog", "ip", ";" ]
[ "<", "p", ">", "the", "new", "ip", "address", "for", "the", "syslog", "monitoring", "server", "the", "aws", "cloud", "h", "s", "m", "service", "only", "supports", "one", "syslog", "monitoring", "server", "<", "/", "p", ">" ]
[ "set", "syslog", "ip", "(", "syslog", "ip", ")", ";", "return", "this", ";" ]
[ "return", "the", "single", "instance", "of", "this", "class" ]
[ "return", "instance", ";" ]
[ "returns", "an", "unmodifiable", "list", "of", "all", "spoon", "plugins" ]
[ "return", "collections", "unmodifiable", "list", "(", "arrays", "as", "list", "(", "plugins", "values", "(", ")", "to", "array", "(", "new", "spoon", "plugin", "interface", "[", "]", "{", "}", ")", ")", ")", ";" ]
[ "notifies", "all", "registered", "spoon", "lifecycle", "listeners", "of", "the", "given", "spoon", "life", "cycle", "event" ]
[ "for", "(", "spoon", "plugin", "interface", "p", ":", "plugins", "values", "(", ")", ")", "{", "spoon", "lifecycle", "listener", "listener", "=", "p", "get", "lifecycle", "listener", "(", ")", ";", "if", "(", "listener", "!", "=", "null", ")", "{", "listener", "on", "event", "(", "evt", ")", ";", "}", "}" ]
[ "gets", "the", "entity", "that", "removed", "the", "hanging", "entity" ]
[ "return", "remover", ";" ]
[ "write", "measurement", "point" ]
[ "this", "influx", "db", "write", "(", "influx", "db", "properties", "get", "database", "(", ")", ",", "influx", "db", "properties", "get", "retention", "policy", "(", ")", ",", "point", ")", ";" ]
[ "write", "synchronized", "batch" ]
[ "val", "batch", "points", "=", "batch", "points", "database", "(", "influx", "db", "properties", "get", "database", "(", ")", ")", "retention", "policy", "(", "influx", "db", "properties", "get", "retention", "policy", "(", ")", ")", "consistency", "(", "influx", "d", "b", "consistency", "level", "value", "of", "(", "influx", "db", "properties", "get", "consistency", "level", "(", ")", ")", ")", "build", "(", ")", ";", "arrays", "stream", "(", "point", ")", "for", "each", "(", "batch", "points", ":", ":", "point", ")", ";", "influx", "db", "write", "(", "batch", "points", ")", ";" ]
[ "query", "result" ]
[ "return", "query", "(", "fields", ",", "measurement", ",", "influx", "db", "properties", "get", "database", "(", ")", ")", ";" ]
[ "}" ]
[ "return", "user", "session", "log", "in", "(", ")", "add", "permission", "(", "administer", ",", "organization", ")", ";" ]
[ "insert", "all", "the", "databases", "from", "the", "repository", "into", "the", "job", "meta", "object", "overwriting", "optionally" ]
[ "for", "(", "database", "meta", "database", "meta", ":", "database", "metas", ")", "{", "if", "(", "over", "write", "shared", "|", "|", "job", "meta", "find", "database", "(", "database", "meta", "get", "name", "(", ")", ")", "=", "=", "null", ")", "{", "if", "(", "database", "meta", "get", "name", "(", ")", "!", "=", "null", ")", "{", "database", "meta", "share", "variables", "with", "(", "job", "meta", ")", ";", "job", "meta", "add", "or", "replace", "database", "(", "database", "meta", ")", ";", "if", "(", "!", "over", "write", "shared", ")", "{", "database", "meta", "set", "changed", "(", "false", ")", ";", "}", "}", "}", "}", "job", "meta", "clear", "changed", "(", ")", ";" ]
[ "add", "the", "slave", "servers", "in", "the", "repository", "to", "this", "job", "if", "they", "are", "not", "yet", "present" ]
[ "for", "(", "slave", "server", "slave", "server", ":", "slave", "servers", ")", "{", "if", "(", "over", "write", "shared", "|", "|", "job", "meta", "find", "slave", "server", "(", "slave", "server", "get", "name", "(", ")", ")", "=", "=", "null", ")", "{", "if", "(", "!", "utils", "is", "empty", "(", "slave", "server", "get", "name", "(", ")", ")", ")", "{", "slave", "server", "share", "variables", "with", "(", "job", "meta", ")", ";", "job", "meta", "add", "or", "replace", "slave", "server", "(", "slave", "server", ")", ";", "if", "(", "!", "over", "write", "shared", ")", "{", "slave", "server", "set", "changed", "(", "false", ")", ";", "}", "}", "}", "}" ]
[ "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*" ]
[ "assert", "assert", "not", "null", "(", "exchange", ")", ";", "assert", "assert", "true", "(", "exchange", "get", "in", "(", ")", "get", "headers", "(", ")", "contains", "key", "(", "header", ")", ")", ";", "assert", "assert", "equals", "(", "expected", "value", ",", "exchange", "get", "in", "(", ")", "get", "header", "(", "header", ")", ")", ";" ]
[ "<", "p", ">", "the", "name", "of", "the", "lifecycle", "configuration", "to", "describe", "<", "/", "p", ">" ]
[ "set", "notebook", "instance", "lifecycle", "config", "name", "(", "notebook", "instance", "lifecycle", "config", "name", ")", ";", "return", "this", ";" ]
[ "create", "a", "new", "point" ]
[ "return", "new", "point", "builder", "(", ")", "coordinate", "(", "new", "coordinate", "(", "longitude", ",", "latitude", ")", ")", ";" ]
[ "return", "the", "descriptor", "for", "the", "model", "provider", "of", "the", "given", "id", "or", "<", "code", ">", "null", "<", "/", "code", ">", "if", "the", "provider", "has", "not", "been", "registered" ]
[ "i", "model", "provider", "descriptor", "[", "]", "descs", "=", "model", "provider", "manager", "get", "default", "(", ")", "get", "descriptors", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "descs", "length", ";", "i", "+", "+", ")", "{", "i", "model", "provider", "descriptor", "descriptor", "=", "descs", "[", "i", "]", ";", "if", "(", "descriptor", "get", "id", "(", ")", "equals", "(", "id", ")", ")", "{", "return", "descriptor", ";", "}", "}", "return", "null", ";" ]
[ "return", "the", "descriptors", "for", "all", "model", "providers", "that", "are", "registered" ]
[ "return", "model", "provider", "manager", "get", "default", "(", ")", "get", "descriptors", "(", ")", ";" ]
[ "/", "*", "(", "non", "-", "javadoc", ")" ]
[ "if", "(", "obj", "instanceof", "org", "eclipse", "core", "resources", "mapping", "model", "provider", ")", "{", "org", "eclipse", "core", "resources", "mapping", "model", "provider", "other", "=", "(", "org", "eclipse", "core", "resources", "mapping", "model", "provider", ")", "obj", ";", "return", "other", "get", "descriptor", "(", ")", "get", "id", "(", ")", "equals", "(", "get", "descriptor", "(", ")", "get", "id", "(", ")", ")", ";", "}", "return", "super", "equals", "(", "obj", ")", ";" ]
[ "return", "the", "descriptor", "of", "this", "model", "provider", "the", "descriptor", "is", "set", "during", "initialization", "so", "implements", "cannot", "call", "this", "method", "until", "after", "the", "<", "code", ">", "initialize", "<", "/", "code", ">", "method", "is", "invoked" ]
[ "return", "descriptor", ";" ]
[ "returns", "the", "unique", "identifier", "of", "this", "model", "provider" ]
[ "return", "descriptor", "get", "id", "(", ")", ";" ]
[ "return", "the", "resource", "mappings", "that", "cover", "the", "given", "resource", "by", "default", "an", "empty", "array", "is", "returned", "subclass", "may", "override", "this", "method", "but", "should", "consider", "overriding", "either", "{", "@", "link", "#", "get", "mappings", "(", "i", "resource", "[", "]", "org", "eclipse", "core", "resources", "mapping", "resource", "mapping", "context", "i", "progress", "monitor", ")", "}", "or", "{", "@", "link", "#", "get", "mappings", "(", "resource", "traversal", "[", "]", "org", "eclipse", "core", "resources", "mapping", "resource", "mapping", "context", "i", "progress", "monitor", ")", "}", "if", "more", "context", "is", "needed", "to", "determine", "the", "proper", "mappings" ]
[ "return", "new", "resource", "mapping", "[", "0", "]", ";" ]
[ "return", "the", "set", "of", "mappings", "that", "cover", "the", "given", "resources", "this", "method", "is", "used", "to", "map", "operations", "on", "resources", "to", "operations", "on", "resource", "mappings", "by", "default", "this", "method", "calls", "<", "code", ">", "get", "mapping", "(", "i", "resource", ")", "<", "/", "code", ">", "for", "each", "resource" ]
[ "set", "<", "resource", "mapping", ">", "mappings", "=", "new", "hash", "set", "<", "resource", "mapping", ">", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "resources", "length", ";", "i", "+", "+", ")", "{", "i", "resource", "resource", "=", "resources", "[", "i", "]", ";", "resource", "mapping", "[", "]", "resource", "mappings", "=", "get", "mappings", "(", "resource", ",", "context", ",", "monitor", ")", ";", "if", "(", "resource", "mappings", "length", ">", "0", ")", "mappings", "add", "all", "(", "arrays", "as", "list", "(", "resource", "mappings", ")", ")", ";", "}", "return", "mappings", "to", "array", "(", "new", "resource", "mapping", "[", "mappings", "size", "(", ")", "]", ")", ";" ]
[ "return", "the", "set", "of", "mappings", "that", "overlap", "with", "the", "given", "resource", "traversals", "this", "method", "is", "used", "to", "map", "operations", "on", "resources", "to", "operations", "on", "resource", "mappings", "by", "default", "this", "method", "calls", "{", "@", "link", "#", "get", "mappings", "(", "i", "resource", "[", "]", "org", "eclipse", "core", "resources", "mapping", "resource", "mapping", "context", "i", "progress", "monitor", ")", "}", "with", "the", "resources", "extracted", "from", "each", "traversal" ]
[ "set", "<", "resource", "mapping", ">", "result", "=", "new", "hash", "set", "<", "resource", "mapping", ">", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "traversals", "length", ";", "i", "+", "+", ")", "{", "resource", "traversal", "traversal", "=", "traversals", "[", "i", "]", ";", "resource", "mapping", "[", "]", "mappings", "=", "get", "mappings", "(", "traversal", "get", "resources", "(", ")", ",", "context", ",", "monitor", ")", ";", "for", "(", "int", "j", "=", "0", ";", "j", "<", "mappings", "length", ";", "j", "+", "+", ")", "result", "add", "(", "mappings", "[", "j", "]", ")", ";", "}", "return", "result", "to", "array", "(", "new", "resource", "mapping", "[", "result", "size", "(", ")", "]", ")", ";" ]
[ "/", "*", "(", "non", "-", "javadoc", ")" ]
[ "return", "get", "descriptor", "(", ")", "get", "id", "(", ")", "hash", "code", "(", ")", ";" ]
[ "validate", "the", "proposed", "changes", "contained", "in", "the", "given", "delta" ]
[ "return", "new", "model", "status", "(", "i", "status", "ok", ",", "resources", "plugin", "pi", "resources", ",", "descriptor", "get", "id", "(", ")", ",", "status", "ok", "status", "get", "message", "(", ")", ")", ";" ]
[ "<", "p", ">", "the", "amazon", "resource", "name", "(", "arn", ")", "of", "your", "instance", "profile", "<", "/", "p", ">" ]
[ "set", "arn", "(", "arn", ")", ";", "return", "this", ";" ]
[ "sets", "the", "minimal", "date", "supported", "by", "this", "{", "@", "link", "number", "picker", "}", "in", "milliseconds", "since", "january", "1", "1970", "00", ":", "00", ":", "00", "in", "{", "@", "link", "time", "zone", "#", "get", "default", "(", ")", "}", "time", "zone" ]
[ "calendar", "temp", "date", "=", "get", "calendar", "for", "locale", "(", "null", ",", "m", "current", "locale", ")", ";", "temp", "date", "set", "time", "in", "millis", "(", "min", "date", ")", ";", "if", "(", "temp", "date", "get", "(", "calendar", "year", ")", "=", "=", "m", "min", "date", "get", "(", "calendar", "year", ")", "&", "&", "temp", "date", "get", "(", "calendar", "day", "of", "year", ")", "!", "=", "m", "min", "date", "get", "(", "calendar", "day", "of", "year", ")", ")", "{", "return", ";", "}", "m", "min", "date", "set", "time", "in", "millis", "(", "min", "date", ")", ";", "if", "(", "m", "current", "date", "before", "(", "m", "min", "date", ")", ")", "{", "m", "current", "date", "set", "time", "in", "millis", "(", "m", "min", "date", "get", "time", "in", "millis", "(", ")", ")", ";", "}", "update", "spinners", "(", ")", ";" ]
[ "sets", "the", "maximal", "date", "supported", "by", "this", "{", "@", "link", "date", "picker", "}", "in", "milliseconds", "since", "january", "1", "1970", "00", ":", "00", ":", "00", "in", "{", "@", "link", "time", "zone", "#", "get", "default", "(", ")", "}", "time", "zone" ]
[ "calendar", "temp", "date", "=", "get", "calendar", "for", "locale", "(", "null", ",", "m", "current", "locale", ")", ";", "temp", "date", "set", "time", "in", "millis", "(", "max", "date", ")", ";", "if", "(", "temp", "date", "get", "(", "calendar", "year", ")", "=", "=", "m", "max", "date", "get", "(", "calendar", "year", ")", "&", "&", "temp", "date", "get", "(", "calendar", "day", "of", "year", ")", "!", "=", "m", "max", "date", "get", "(", "calendar", "day", "of", "year", ")", ")", "{", "return", ";", "}", "m", "max", "date", "set", "time", "in", "millis", "(", "max", "date", ")", ";", "if", "(", "m", "current", "date", "after", "(", "m", "max", "date", ")", ")", "{", "m", "current", "date", "set", "time", "in", "millis", "(", "m", "max", "date", "get", "time", "in", "millis", "(", ")", ")", ";", "}", "update", "spinners", "(", ")", ";" ]
[ "sets", "the", "current", "locale" ]
[ "if", "(", "locale", "equals", "(", "m", "current", "locale", ")", ")", "{", "return", ";", "}", "m", "current", "locale", "=", "locale", ";", "m", "min", "date", "=", "get", "calendar", "for", "locale", "(", "m", "min", "date", ",", "locale", ")", ";", "m", "max", "date", "=", "get", "calendar", "for", "locale", "(", "m", "max", "date", ",", "locale", ")", ";", "m", "current", "date", "=", "get", "calendar", "for", "locale", "(", "m", "current", "date", ",", "locale", ")", ";", "m", "short", "months", "=", "date", "format", "symbols", "get", "instance", "(", "m", "current", "locale", ")", "get", "short", "months", "(", ")", ";", "m", "number", "of", "months", "=", "m", "short", "months", "length", ";" ]
[ "updates", "the", "current", "date" ]
[ "if", "(", "!", "is", "new", "date", "(", "year", ",", "month", ")", ")", "{", "return", ";", "}", "set", "date", "(", "year", ",", "month", ")", ";", "update", "spinners", "(", ")", ";", "notify", "date", "changed", "(", ")", ";" ]
[ "initialize", "the", "state", "if", "the", "provided", "values", "designate", "an", "inconsistent", "date", "the", "values", "are", "normalized", "before", "updating", "the", "spinners" ]
[ "set", "date", "(", "year", ",", "month", "of", "year", ")", ";", "update", "spinners", "(", ")", ";", "m", "month", "changed", "listener", "=", "on", "month", "changed", "listener", ";" ]
[ "notifies", "the", "listener", "if", "such", "for", "a", "change", "in", "the", "selected", "date" ]
[ "send", "accessibility", "event", "(", "accessibility", "event", "type", "view", "selected", ")", ";", "if", "(", "m", "month", "changed", "listener", "!", "=", "null", ")", "{", "m", "month", "changed", "listener", "on", "month", "changed", "(", "this", ",", "get", "year", "(", ")", ",", "get", "month", "(", ")", ")", ";", "}" ]
[ "{" ]
[ "return", "names", ";" ]
[ "{" ]
[ "return", "patterns", ";" ]
[ "{" ]
[ "return", "macros", "count", ";" ]
[ "{" ]
[ "string", "[", "]", "values", "=", "process", "(", "action", "path", ",", "true", ")", ";", "if", "(", "values", "=", "=", "null", ")", "{", "return", "-", "1", ";", "}", "int", "macro", "chars", "=", "0", ";", "for", "(", "string", "value", ":", "values", ")", "{", "if", "(", "value", "!", "=", "null", ")", "{", "macro", "chars", "+", "=", "value", "length", "(", ")", ";", "}", "}", "return", "action", "path", "length", "(", ")", "-", "macro", "chars", ";" ]
[ "matches", "the", "stripped", "value", "with", "the", "pattern", "pattern", "at", "provided", "<", "code", ">", "macro", "index", "<", "/", "code", ">", "is", "not", "<", "code", ">", "null", "<", "/", "code", ">", "!" ]
[ "protected", "abstract", "boolean", "match", "value", "(", "int", "macro", "index", ",", "string", "value", ")", ";" ]
[ "{" ]
[ "return", "process", "(", "action", "path", ",", "false", ")", ";" ]
[ "splits", "the", "given", "data", "buffer", "on", "delimiter", "boundaries", "the", "returned", "flux", "contains", "a", "{" ]
[ "list", "<", "data", "buffer", ">", "frames", "=", "new", "array", "list", "<", ">", "(", ")", ";", "do", "{", "int", "length", "=", "integer", "max", "value", ";", "byte", "[", "]", "matching", "delimiter", "=", "null", ";", "for", "(", "byte", "[", "]", "delimiter", ":", "delimiter", "bytes", ")", "{", "int", "idx", "=", "index", "of", "(", "data", "buffer", ",", "delimiter", ")", ";", "if", "(", "idx", ">", "=", "0", "&", "&", "idx", "<", "length", ")", "{", "length", "=", "idx", ";", "matching", "delimiter", "=", "delimiter", ";", "}", "}", "data", "buffer", "frame", ";", "int", "read", "position", "=", "data", "buffer", "read", "position", "(", ")", ";", "if", "(", "matching", "delimiter", "!", "=", "null", ")", "{", "if", "(", "this", "strip", "delimiter", ")", "{", "frame", "=", "data", "buffer", "slice", "(", "read", "position", ",", "length", ")", ";", "}", "else", "{", "frame", "=", "data", "buffer", "slice", "(", "read", "position", ",", "length", "+", "matching", "delimiter", "length", ")", ";", "}", "data", "buffer", "read", "position", "(", "read", "position", "+", "length", "+", "matching", "delimiter", "length", ")", ";", "frames", "add", "(", "data", "buffer", "utils", "retain", "(", "frame", ")", ")", ";", "frames", "add", "(", "end", "frame", ")", ";", "}", "else", "{", "frame", "=", "data", "buffer", "slice", "(", "read", "position", ",", "data", "buffer", "readable", "byte", "count", "(", ")", ")", ";", "data", "buffer", "read", "position", "(", "read", "position", "+", "data", "buffer", "readable", "byte", "count", "(", ")", ")", ";", "frames", "add", "(", "data", "buffer", "utils", "retain", "(", "frame", ")", ")", ";", "}", "}", "while", "(", "data", "buffer", "readable", "byte", "count", "(", ")", ">", "0", ")", ";", "data", "buffer", "utils", "release", "(", "data", "buffer", ")", ";", "return", "flux", "from", "iterable", "(", "frames", ")", ";" ]
[ "finds", "the", "given", "delimiter", "in", "the", "given", "data", "buffer", "return", "the", "index", "of", "the", "delimiter", "or", "-", "1", "if", "not", "found" ]
[ "for", "(", "int", "i", "=", "data", "buffer", "read", "position", "(", ")", ";", "i", "<", "data", "buffer", "write", "position", "(", ")", ";", "i", "+", "+", ")", "{", "int", "data", "buffer", "pos", "=", "i", ";", "int", "delimiter", "pos", "=", "0", ";", "while", "(", "delimiter", "pos", "<", "delimiter", "length", ")", "{", "if", "(", "data", "buffer", "get", "byte", "(", "data", "buffer", "pos", ")", "!", "=", "delimiter", "[", "delimiter", "pos", "]", ")", "{", "break", ";", "}", "else", "{", "data", "buffer", "pos", "+", "+", ";", "if", "(", "data", "buffer", "pos", "=", "=", "data", "buffer", "write", "position", "(", ")", "&", "&", "delimiter", "pos", "!", "=", "delimiter", "length", "-", "1", ")", "{", "return", "-", "1", ";", "}", "}", "delimiter", "pos", "+", "+", ";", "}", "if", "(", "delimiter", "pos", "=", "=", "delimiter", "length", ")", "{", "return", "i", "-", "data", "buffer", "read", "position", "(", ")", ";", "}", "}", "return", "-", "1", ";" ]
[ "checks", "whether", "the", "given", "buffer", "is", "{" ]
[ "return", "data", "buffer", "=", "=", "end", "frame", ";" ]
[ "joins", "the", "given", "list", "of", "buffers", "into", "a", "single", "buffer" ]
[ "if", "(", "!", "data", "buffers", "is", "empty", "(", ")", ")", "{", "int", "last", "idx", "=", "data", "buffers", "size", "(", ")", "-", "1", ";", "if", "(", "is", "end", "frame", "(", "data", "buffers", "get", "(", "last", "idx", ")", ")", ")", "{", "data", "buffers", "remove", "(", "last", "idx", ")", ";", "}", "}", "flux", "<", "data", "buffer", ">", "flux", "=", "flux", "from", "iterable", "(", "data", "buffers", ")", ";", "return", "data", "buffer", "utils", "join", "(", "flux", ")", ";" ]
[ "create", "a", "{" ]
[ "return", "text", "plain", "only", "(", ")", ";" ]
[ "create", "a", "{" ]
[ "return", "text", "plain", "only", "(", "default", "delimiters", ",", "true", ")", ";" ]
[ "create", "a", "{" ]
[ "return", "all", "mime", "types", "(", ")", ";" ]
[ "create", "a", "{" ]
[ "return", "all", "mime", "types", "(", "default", "delimiters", ",", "true", ")", ";" ]
[ "creates", "an", "entry", "of", "type", "{" ]
[ "return", "new", "restriction", "entry", "(", "key", ",", "restriction", "entries", ",", "false", ")", ";" ]
[ "creates", "an", "entry", "of", "type", "{" ]
[ "return", "new", "restriction", "entry", "(", "key", ",", "restriction", "entries", ",", "true", ")", ";" ]
[ "returns", "the", "currently", "selected", "string", "value" ]
[ "return", "m", "current", "value", ";" ]
[ "returns", "the", "list", "of", "currently", "selected", "values" ]
[ "return", "m", "current", "values", ";" ]
[ "returns", "the", "current", "selected", "state", "for", "an", "entry", "of", "type", "{" ]
[ "return", "boolean", "parse", "boolean", "(", "m", "current", "value", ")", ";" ]
[ "returns", "the", "value", "of", "the", "entry", "as", "an", "integer", "when", "the", "type", "is", "{" ]
[ "return", "integer", "parse", "int", "(", "m", "current", "value", ")", ";" ]
[ "sets", "the", "integer", "value", "of", "the", "entry", "when", "the", "type", "is", "{" ]
[ "m", "current", "value", "=", "integer", "to", "string", "(", "value", ")", ";" ]
[ "sets", "the", "string", "value", "to", "use", "as", "the", "selected", "value", "for", "this", "restriction", "this", "value", "will", "be", "persisted", "by", "the", "system", "for", "later", "use", "by", "the", "application" ]
[ "m", "current", "value", "=", "selected", "string", ";" ]
[ "sets", "the", "current", "selected", "state", "for", "an", "entry", "of", "type", "{" ]
[ "m", "current", "value", "=", "boolean", "to", "string", "(", "state", ")", ";" ]
[ "sets", "the", "current", "list", "of", "selected", "values", "for", "an", "entry", "of", "type", "{" ]
[ "m", "current", "values", "=", "all", "selected", "strings", ";" ]
[ "sets", "a", "list", "of", "string", "values", "that", "can", "be", "selected", "by", "the", "user", "if", "no", "user", "-", "visible", "entries", "are", "set", "by", "a", "call", "to", "{" ]
[ "m", "choice", "values", "=", "choice", "values", ";" ]
[ "sets", "a", "list", "of", "string", "values", "that", "can", "be", "selected", "by", "the", "user", "similar", "to", "{" ]
[ "m", "choice", "values", "=", "context", "get", "resources", "(", ")", "get", "string", "array", "(", "string", "array", "res", "id", ")", ";" ]
[ "returns", "array", "of", "possible", "restriction", "entries", "that", "this", "entry", "may", "contain" ]
[ "return", "m", "restrictions", ";" ]
[ "sets", "an", "array", "of", "possible", "restriction", "entries", "that", "this", "entry", "may", "contain", "<", "p", ">", "this", "method", "is", "only", "relevant", "for", "types", "{" ]
[ "m", "restrictions", "=", "restrictions", ";" ]
[ "returns", "the", "list", "of", "possible", "string", "values", "set", "earlier" ]
[ "return", "m", "choice", "values", ";" ]
[ "sets", "a", "list", "of", "strings", "that", "will", "be", "presented", "as", "choices", "to", "the", "user", "when", "the", "user", "selects", "one", "or", "more", "of", "these", "choices", "the", "corresponding", "value", "from", "the", "possible", "values", "are", "stored", "as", "the", "selected", "strings", "the", "size", "of", "this", "array", "must", "match", "the", "size", "of", "the", "array", "set", "in", "{" ]
[ "m", "choice", "entries", "=", "choice", "entries", ";" ]
[ "sets", "a", "list", "of", "strings", "that", "will", "be", "presented", "as", "choices", "to", "the", "user", "this", "is", "similar", "to", "{" ]
[ "m", "choice", "entries", "=", "context", "get", "resources", "(", ")", "get", "string", "array", "(", "string", "array", "res", "id", ")", ";" ]
[ "returns", "the", "list", "of", "strings", "set", "earlier", "that", "will", "be", "presented", "as", "choices", "to", "the", "user" ]
[ "return", "m", "choice", "entries", ";" ]
[ "the", "i", "d", "3v", "2", "frame", "identifier" ]
[ "return", "i", "d", "3v", "2", "4", "frames", "frame", "id", "reverb", ";" ]
[ "skips", "leading", "whitespace", "and", "returns", "whatever", "sequence", "of", "non", "whitespace", "it", "can", "find", "(", "or", "hte", "empty", "string", ")" ]
[ "eatws", "(", ")", ";", "int", "start", "pos", "=", "pos", ";", "char", "ch", ";", "while", "(", "pos", "<", "end", ")", "{", "ch", "=", "val", "char", "at", "(", "pos", ")", ";", "if", "(", "character", "is", "whitespace", "(", "ch", ")", ")", "break", ";", "pos", "+", "+", ";", "}", "return", "val", "substring", "(", "start", "pos", ",", "pos", ")", ";" ]
[ "next", "non", "-", "whitespace", "char" ]
[ "return", "pos", "<", "end", "?", "val", "char", "at", "(", "pos", ")", ":", "0", ";" ]
[ "next", "char" ]
[ "return", "\"", "\"", "+", "val", "+", "\"", "\"", "+", "\"", "\"", "+", "pos", ";" ]
[ "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-" ]
[ "return", "read", "only", ";" ]
[ "setup", "to", "build", "a", "segment", "with", "raw", "indexes", "(", "no", "-", "dictionary", ")", "of", "various", "data", "types" ]
[ "schema", "schema", "=", "new", "schema", "(", ")", ";", "schema", "add", "field", "(", "new", "dimension", "field", "spec", "(", "int", "column", ",", "field", "spec", "data", "type", "int", ",", "true", ")", ")", ";", "schema", "add", "field", "(", "new", "dimension", "field", "spec", "(", "long", "column", ",", "field", "spec", "data", "type", "long", ",", "true", ")", ")", ";", "schema", "add", "field", "(", "new", "dimension", "field", "spec", "(", "float", "column", ",", "field", "spec", "data", "type", "float", ",", "true", ")", ")", ";", "schema", "add", "field", "(", "new", "dimension", "field", "spec", "(", "double", "column", ",", "field", "spec", "data", "type", "double", ",", "true", ")", ")", ";", "schema", "add", "field", "(", "new", "dimension", "field", "spec", "(", "string", "column", ",", "field", "spec", "data", "type", "string", ",", "true", ")", ")", ";", "random", "=", "new", "random", "(", "system", "nano", "time", "(", ")", ")", ";", "record", "reader", "=", "build", "index", "(", "schema", ")", ";" ]
[ "clean", "up", "after", "test" ]
[ "file", "utils", "delete", "quietly", "(", "new", "file", "(", "segment", "dir", "name", ")", ")", ";" ]
[ "test", "for", "int", "raw", "index", "creator", "compares", "values", "read", "from", "the", "raw", "index", "against", "expected", "value" ]
[ "test", "fixed", "length", "raw", "index", "creator", "(", "int", "column", ",", "field", "spec", "data", "type", "int", ")", ";" ]
[ "test", "for", "long", "raw", "index", "creator", "compares", "values", "read", "from", "the", "raw", "index", "against", "expected", "value" ]
[ "test", "fixed", "length", "raw", "index", "creator", "(", "long", "column", ",", "field", "spec", "data", "type", "long", ")", ";" ]
[ "test", "for", "float", "raw", "index", "creator", "compares", "values", "read", "from", "the", "raw", "index", "against", "expected", "value" ]
[ "test", "fixed", "length", "raw", "index", "creator", "(", "float", "column", ",", "field", "spec", "data", "type", "float", ")", ";" ]
[ "test", "for", "double", "raw", "index", "creator", "compares", "values", "read", "from", "the", "raw", "index", "against", "expected", "value" ]
[ "test", "fixed", "length", "raw", "index", "creator", "(", "double", "column", ",", "field", "spec", "data", "type", "double", ")", ";" ]
[ "test", "for", "string", "raw", "index", "creator", "compares", "values", "read", "from", "the", "raw", "index", "against", "expected", "value" ]
[ "pinot", "data", "buffer", "index", "buffer", "=", "get", "index", "buffer", "for", "column", "(", "string", "column", ")", ";", "var", "byte", "chunk", "single", "value", "reader", "raw", "index", "reader", "=", "new", "var", "byte", "chunk", "single", "value", "reader", "(", "index", "buffer", ")", ";", "record", "reader", "rewind", "(", ")", ";", "chunk", "reader", "context", "context", "=", "raw", "index", "reader", "create", "context", "(", ")", ";", "for", "(", "int", "row", "=", "0", ";", "row", "<", "num", "rows", ";", "row", "+", "+", ")", "{", "generic", "row", "expected", "row", "=", "record", "reader", "next", "(", ")", ";", "object", "expected", "=", "expected", "row", "get", "value", "(", "string", "column", ")", ";", "object", "actual", "=", "raw", "index", "reader", "get", "string", "(", "row", ",", "context", ")", ";", "assert", "assert", "equals", "(", "actual", ",", "expected", ")", ";", "}" ]
[ "helper", "method", "to", "perform", "actual", "tests", "for", "a", "given", "column" ]
[ "pinot", "data", "buffer", "index", "buffer", "=", "get", "index", "buffer", "for", "column", "(", "column", ")", ";", "fixed", "byte", "chunk", "single", "value", "reader", "raw", "index", "reader", "=", "new", "fixed", "byte", "chunk", "single", "value", "reader", "(", "index", "buffer", ")", ";", "record", "reader", "rewind", "(", ")", ";", "for", "(", "int", "row", "=", "0", ";", "row", "<", "num", "rows", ";", "row", "+", "+", ")", "{", "generic", "row", "expected", "row", "=", "record", "reader", "next", "(", ")", ";", "object", "expected", "=", "expected", "row", "get", "value", "(", "column", ")", ";", "object", "actual", ";", "actual", "=", "read", "value", "from", "index", "(", "raw", "index", "reader", ",", "data", "type", ",", "row", ")", ";", "assert", "assert", "equals", "(", "actual", ",", "expected", ")", ";", "}" ]
[ "helper", "method", "that", "returns", "index", "file", "name", "for", "a", "given", "column", "name" ]
[ "return", "segment", "reader", "get", "index", "for", "(", "column", ",", "column", "index", "type", "forward", "index", ")", ";" ]
[ "helper", "method", "to", "build", "a", "segment", "containing", "a", "single", "valued", "string", "column", "with", "raw", "(", "no", "-", "dictionary", ")", "index" ]
[ "segment", "generator", "config", "config", "=", "new", "segment", "generator", "config", "(", "schema", ")", ";", "config", "set", "raw", "index", "creation", "columns", "(", "schema", "get", "dimension", "names", "(", ")", ")", ";", "config", "set", "out", "dir", "(", "segment", "dir", "name", ")", ";", "config", "set", "segment", "name", "(", "segment", "name", ")", ";", "list", "<", "generic", "row", ">", "rows", "=", "new", "array", "list", "<", ">", "(", "num", "rows", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "num", "rows", ";", "i", "+", "+", ")", "{", "hash", "map", "<", "string", ",", "object", ">", "map", "=", "new", "hash", "map", "<", ">", "(", ")", ";", "for", "(", "field", "spec", "field", "spec", ":", "schema", "get", "all", "field", "specs", "(", ")", ")", "{", "object", "value", ";", "value", "=", "get", "random", "value", "(", "random", ",", "field", "spec", "get", "data", "type", "(", ")", ")", ";", "map", "put", "(", "field", "spec", "get", "name", "(", ")", ",", "value", ")", ";", "}", "generic", "row", "generic", "row", "=", "new", "generic", "row", "(", ")", ";", "generic", "row", "init", "(", "map", ")", ";", "rows", "add", "(", "generic", "row", ")", ";", "}", "record", "reader", "record", "reader", "=", "new", "generic", "row", "record", "reader", "(", "rows", ",", "schema", ")", ";", "segment", "index", "creation", "driver", "impl", "driver", "=", "new", "segment", "index", "creation", "driver", "impl", "(", ")", ";", "driver", "init", "(", "config", ",", "record", "reader", ")", ";", "driver", "build", "(", ")", ";", "segment", "directory", "=", "segment", "directory", "create", "from", "local", "f", "s", "(", "driver", "get", "output", "directory", "(", ")", ",", "read", "mode", "mmap", ")", ";", "segment", "reader", "=", "segment", "directory", "create", "reader", "(", ")", ";", "record", "reader", "rewind", "(", ")", ";", "return", "record", "reader", ";" ]
[ "<", "p", ">", "a", "list", "of", "scaling", "activity", "objects", "<", "/", "p", ">" ]
[ "return", "scaling", "activities", ";" ]
[ "<", "p", ">", "a", "list", "of", "scaling", "activity", "objects", "<", "/", "p", ">" ]
[ "if", "(", "scaling", "activities", "=", "=", "null", ")", "{", "this", "scaling", "activities", "=", "null", ";", "return", ";", "}", "this", "scaling", "activities", "=", "new", "java", "util", "array", "list", "<", "scaling", "activity", ">", "(", "scaling", "activities", ")", ";" ]
[ "<", "p", ">", "a", "list", "of", "scaling", "activity", "objects", "<", "/", "p", ">", "<", "p", ">", "<", "b", ">", "note", ":", "<", "/", "b", ">", "this", "method", "appends", "the", "values", "to", "the", "existing", "list", "(", "if", "any", ")", "use", "{", "@", "link", "#", "set", "scaling", "activities", "(", "java", "util", "collection", ")", "}", "or", "{", "@", "link", "#", "with", "scaling", "activities", "(", "java", "util", "collection", ")", "}", "if", "you", "want", "to", "override", "the", "existing", "values", "<", "/", "p", ">" ]
[ "if", "(", "this", "scaling", "activities", "=", "=", "null", ")", "{", "set", "scaling", "activities", "(", "new", "java", "util", "array", "list", "<", "scaling", "activity", ">", "(", "scaling", "activities", "length", ")", ")", ";", "}", "for", "(", "scaling", "activity", "ele", ":", "scaling", "activities", ")", "{", "this", "scaling", "activities", "add", "(", "ele", ")", ";", "}", "return", "this", ";" ]
[ "<", "p", ">", "a", "list", "of", "scaling", "activity", "objects", "<", "/", "p", ">" ]
[ "set", "scaling", "activities", "(", "scaling", "activities", ")", ";", "return", "this", ";" ]
[ "<", "p", ">", "the", "id", "of", "a", "usage", "plan", "key", "<", "/", "p", ">" ]
[ "set", "id", "(", "id", ")", ";", "return", "this", ";" ]
[ "<", "p", ">", "the", "type", "of", "a", "usage", "plan", "key", "currently", "the", "valid", "key", "type", "is", "<", "code", ">", "api", "key", "<", "/", "code", ">", "<", "/", "p", ">" ]
[ "set", "type", "(", "type", ")", ";", "return", "this", ";" ]
[ "<", "p", ">", "the", "value", "of", "a", "usage", "plan", "key", "<", "/", "p", ">" ]
[ "set", "value", "(", "value", ")", ";", "return", "this", ";" ]
[ "<", "p", ">", "the", "name", "of", "a", "usage", "plan", "key", "<", "/", "p", ">" ]
[ "set", "name", "(", "name", ")", ";", "return", "this", ";" ]