docstring_tokens
sequence
code_tokens
sequence
[ "<", "p", ">", "information", "about", "the", "disk", "container", "<", "/", "p", ">" ]
[ "return", "this", "disk", "container", ";" ]
[ "<", "p", ">", "information", "about", "the", "disk", "container", "<", "/", "p", ">" ]
[ "set", "disk", "container", "(", "disk", "container", ")", ";", "return", "this", ";" ]
[ "<", "p", ">", "the", "name", "of", "the", "role", "to", "use", "when", "not", "using", "the", "default", "role", "vmimport", "<", "/", "p", ">" ]
[ "set", "role", "name", "(", "role", "name", ")", ";", "return", "this", ";" ]
[ "this", "method", "initiates", "the", "bottom", "navigation", "bar", "properties", "tries", "to", "get", "them", "form", "xml", "if", "not", "preset", "sets", "them", "to", "their", "default", "values" ]
[ "if", "(", "attrs", "!", "=", "null", ")", "{", "typed", "array", "typed", "array", "=", "context", "get", "theme", "(", ")", "obtain", "styled", "attributes", "(", "attrs", ",", "r", "styleable", "bottom", "navigation", "bar", ",", "0", ",", "0", ")", ";", "m", "active", "color", "=", "typed", "array", "get", "color", "(", "r", "styleable", "bottom", "navigation", "bar", "bnb", "active", "color", ",", "utils", "fetch", "context", "color", "(", "context", ",", "r", "attr", "color", "accent", ")", ")", ";", "m", "in", "active", "color", "=", "typed", "array", "get", "color", "(", "r", "styleable", "bottom", "navigation", "bar", "bnb", "inactive", "color", ",", "color", "ltgray", ")", ";", "m", "background", "color", "=", "typed", "array", "get", "color", "(", "r", "styleable", "bottom", "navigation", "bar", "bnb", "background", "color", ",", "color", "white", ")", ";", "m", "auto", "hide", "enabled", "=", "typed", "array", "get", "boolean", "(", "r", "styleable", "bottom", "navigation", "bar", "bnb", "auto", "hide", "enabled", ",", "true", ")", ";", "m", "elevation", "=", "typed", "array", "get", "dimension", "(", "r", "styleable", "bottom", "navigation", "bar", "bnb", "elevation", ",", "get", "resources", "(", ")", "get", "dimension", "(", "r", "dimen", "bottom", "navigation", "elevation", ")", ")", ";", "set", "animation", "duration", "(", "typed", "array", "get", "int", "(", "r", "styleable", "bottom", "navigation", "bar", "bnb", "animation", "duration", ",", "default", "animation", "duration", ")", ")", ";", "switch", "(", "typed", "array", "get", "int", "(", "r", "styleable", "bottom", "navigation", "bar", "bnb", "mode", ",", "mode", "default", ")", ")", "{", "case", "mode", "fixed", ":", "m", "mode", "=", "mode", "fixed", ";", "break", ";", "case", "mode", "shifting", ":", "m", "mode", "=", "mode", "shifting", ";", "break", ";", "case", "mode", "default", ":", "default", ":", "m", "mode", "=", "mode", "default", ";", "break", ";", "}", "switch", "(", "typed", "array", "get", "int", "(", "r", "styleable", "bottom", "navigation", "bar", "bnb", "background", "style", ",", "background", "style", "default", ")", ")", "{", "case", "background", "style", "static", ":", "m", "background", "style", "=", "background", "style", "static", ";", "break", ";", "case", "background", "style", "ripple", ":", "m", "background", "style", "=", "background", "style", "ripple", ";", "break", ";", "case", "background", "style", "default", ":", "default", ":", "m", "background", "style", "=", "background", "style", "default", ";", "break", ";", "}", "typed", "array", "recycle", "(", ")", ";", "}", "else", "{", "m", "active", "color", "=", "utils", "fetch", "context", "color", "(", "context", ",", "r", "attr", "color", "accent", ")", ";", "m", "in", "active", "color", "=", "color", "ltgray", ";", "m", "background", "color", "=", "color", "white", ";", "m", "elevation", "=", "get", "resources", "(", ")", "get", "dimension", "(", "r", "dimen", "bottom", "navigation", "elevation", ")", ";", "}" ]
[ "used", "to", "add", "a", "new", "tab" ]
[ "m", "bottom", "navigation", "items", "add", "(", "item", ")", ";", "return", "this", ";" ]
[ "used", "to", "remove", "a", "tab", "you", "should", "call", "initialise", "(", ")", "after", "this", "to", "see", "the", "results", "effected" ]
[ "m", "bottom", "navigation", "items", "remove", "(", "item", ")", ";", "return", "this", ";" ]
[ "will", "be", "public", "once", "all", "bugs", "are", "ressolved" ]
[ "m", "scrollable", "=", "scrollable", ";", "return", "this", ";" ]
[ "this", "method", "should", "be", "called", "at", "the", "end", "of", "all", "customisation", "method", "this", "method", "will", "take", "all", "changes", "in", "to", "consideration", "and", "redraws", "tabs" ]
[ "m", "selected", "position", "=", "default", "selected", "position", ";", "m", "bottom", "navigation", "tabs", "clear", "(", ")", ";", "if", "(", "!", "m", "bottom", "navigation", "items", "is", "empty", "(", ")", ")", "{", "m", "tab", "container", "remove", "all", "views", "(", ")", ";", "if", "(", "m", "mode", "=", "=", "mode", "default", ")", "{", "if", "(", "m", "bottom", "navigation", "items", "size", "(", ")", "<", "=", "min", "size", ")", "{", "m", "mode", "=", "mode", "fixed", ";", "}", "else", "{", "m", "mode", "=", "mode", "shifting", ";", "}", "}", "if", "(", "m", "background", "style", "=", "=", "background", "style", "default", ")", "{", "if", "(", "m", "mode", "=", "=", "mode", "fixed", ")", "{", "m", "background", "style", "=", "background", "style", "static", ";", "}", "else", "{", "m", "background", "style", "=", "background", "style", "ripple", ";", "}", "}", "if", "(", "m", "background", "style", "=", "=", "background", "style", "static", ")", "{", "m", "background", "overlay", "set", "visibility", "(", "view", "gone", ")", ";", "m", "container", "set", "background", "color", "(", "m", "background", "color", ")", ";", "}", "int", "screen", "width", "=", "utils", "get", "screen", "width", "(", "get", "context", "(", ")", ")", ";", "if", "(", "m", "mode", "=", "=", "mode", "fixed", ")", "{", "int", "[", "]", "widths", "=", "bottom", "navigation", "helper", "get", "measurements", "for", "fixed", "mode", "(", "get", "context", "(", ")", ",", "screen", "width", ",", "m", "bottom", "navigation", "items", "size", "(", ")", ",", "m", "scrollable", ")", ";", "int", "item", "width", "=", "widths", "[", "0", "]", ";", "for", "(", "bottom", "navigation", "item", "current", "item", ":", "m", "bottom", "navigation", "items", ")", "{", "fixed", "bottom", "navigation", "tab", "bottom", "navigation", "tab", "=", "new", "fixed", "bottom", "navigation", "tab", "(", "get", "context", "(", ")", ")", ";", "set", "up", "tab", "(", "bottom", "navigation", "tab", ",", "current", "item", ",", "item", "width", ",", "item", "width", ")", ";", "}", "}", "else", "if", "(", "m", "mode", "=", "=", "mode", "shifting", ")", "{", "int", "[", "]", "widths", "=", "bottom", "navigation", "helper", "get", "measurements", "for", "shifting", "mode", "(", "get", "context", "(", ")", ",", "screen", "width", ",", "m", "bottom", "navigation", "items", "size", "(", ")", ",", "m", "scrollable", ")", ";", "int", "item", "width", "=", "widths", "[", "0", "]", ";", "int", "item", "active", "width", "=", "widths", "[", "1", "]", ";", "for", "(", "bottom", "navigation", "item", "current", "item", ":", "m", "bottom", "navigation", "items", ")", "{", "shifting", "bottom", "navigation", "tab", "bottom", "navigation", "tab", "=", "new", "shifting", "bottom", "navigation", "tab", "(", "get", "context", "(", ")", ")", ";", "set", "up", "tab", "(", "bottom", "navigation", "tab", ",", "current", "item", ",", "item", "width", ",", "item", "active", "width", ")", ";", "}", "}", "if", "(", "m", "bottom", "navigation", "tabs", "size", "(", ")", ">", "m", "first", "selected", "position", ")", "{", "select", "tab", "internal", "(", "m", "first", "selected", "position", ",", "true", ",", "false", ",", "false", ")", ";", "}", "else", "if", "(", "!", "m", "bottom", "navigation", "tabs", "is", "empty", "(", ")", ")", "{", "select", "tab", "internal", "(", "0", ",", "true", ",", "false", ",", "false", ")", ";", "}", "}" ]
[ "ripple", "animation", "will", "be", "2", "5", "times", "this", "animation", "duration" ]
[ "this", "m", "animation", "duration", "=", "animation", "duration", ";", "this", "m", "ripple", "animation", "duration", "=", "(", "int", ")", "(", "animation", "duration", "*", "2", "5", ")", ";", "return", "this", ";" ]
[ "clears", "all", "stored", "data", "and", "this", "helps", "to", "re", "-", "initialise", "tabs", "from", "scratch" ]
[ "m", "tab", "container", "remove", "all", "views", "(", ")", ";", "m", "bottom", "navigation", "tabs", "clear", "(", ")", ";", "m", "bottom", "navigation", "items", "clear", "(", ")", ";", "m", "background", "overlay", "set", "visibility", "(", "view", "gone", ")", ";", "m", "container", "set", "background", "color", "(", "color", "transparent", ")", ";", "m", "selected", "position", "=", "default", "selected", "position", ";" ]
[ "should", "be", "called", "only", "after", "initialization", "of", "bottom", "bar", "(", "i", "e", "after", "calling", "initialize", "method", ")" ]
[ "select", "tab", "(", "new", "position", ",", "true", ")", ";" ]
[ "should", "be", "called", "only", "after", "initialization", "of", "bottom", "bar", "(", "i", "e", "after", "calling", "initialize", "method", ")" ]
[ "select", "tab", "internal", "(", "new", "position", ",", "false", ",", "call", "listener", ",", "call", "listener", ")", ";" ]
[ "internal", "method", "to", "setup", "tabs" ]
[ "bottom", "navigation", "tab", "set", "inactive", "width", "(", "item", "width", ")", ";", "bottom", "navigation", "tab", "set", "active", "width", "(", "item", "active", "width", ")", ";", "bottom", "navigation", "tab", "set", "position", "(", "m", "bottom", "navigation", "items", "index", "of", "(", "current", "item", ")", ")", ";", "bottom", "navigation", "tab", "set", "on", "click", "listener", "(", "new", "on", "click", "listener", "(", ")", "{", "@", "override", "public", "void", "on", "click", "(", "view", "v", ")", "{", "bottom", "navigation", "tab", "bottom", "navigation", "tab", "view", "=", "(", "bottom", "navigation", "tab", ")", "v", ";", "select", "tab", "internal", "(", "bottom", "navigation", "tab", "view", "get", "position", "(", ")", ",", "false", ",", "true", ",", "false", ")", ";", "}", "}", ")", ";", "m", "bottom", "navigation", "tabs", "add", "(", "bottom", "navigation", "tab", ")", ";", "bottom", "navigation", "helper", "bind", "tab", "with", "data", "(", "current", "item", ",", "bottom", "navigation", "tab", ",", "this", ")", ";", "if", "(", "bottom", "navigation", "tab", "instanceof", "fixed", "bottom", "navigation", "tab", "&", "&", "bottom", "navigation", "tab", "get", "label", "visibility", "(", ")", "=", "=", "view", "gone", ")", "{", "bottom", "navigation", "tab", "set", "icon", "layout", "gravity", "center", "(", ")", ";", "}", "bottom", "navigation", "tab", "initialise", "(", "m", "background", "style", "=", "=", "background", "style", "static", ")", ";", "m", "tab", "container", "add", "view", "(", "bottom", "navigation", "tab", ")", ";" ]
[ "show", "bottom", "navigation", "bar", "if", "it", "is", "hidden", "and", "hide", "if", "it", "is", "shown" ]
[ "if", "(", "m", "is", "hidden", ")", "{", "show", "(", "animate", ")", ";", "}", "else", "{", "hide", "(", "animate", ")", ";", "}" ]
[ "internal", "method", "<", "p", ">", "used", "to", "set", "animation", "and", "takes", "care", "of", "cancelling", "current", "animation", "and", "sets", "duration", "and", "interpolator", "for", "animation" ]
[ "if", "(", "m", "translation", "animator", "=", "=", "null", ")", "{", "m", "translation", "animator", "=", "view", "compat", "animate", "(", "this", ")", ";", "m", "translation", "animator", "set", "duration", "(", "m", "ripple", "animation", "duration", ")", ";", "m", "translation", "animator", "set", "interpolator", "(", "interpolator", ")", ";", "}", "else", "{", "m", "translation", "animator", "cancel", "(", ")", ";", "}", "m", "translation", "animator", "translation", "y", "(", "offset", ")", "start", "(", ")", ";" ]
[ "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/" ]
[ "return", "m", "auto", "hide", "enabled", ";" ]
[ "scheduled", "for", "next" ]
[ "view", "group", "layout", "params", "layout", "params", "=", "fab", "get", "layout", "params", "(", ")", ";", "if", "(", "layout", "params", "!", "=", "null", "&", "&", "layout", "params", "instanceof", "coordinator", "layout", "layout", "params", ")", "{", "coordinator", "layout", "layout", "params", "co", "layout", "params", "=", "(", "coordinator", "layout", "layout", "params", ")", "layout", "params", ";", "bottom", "nav", "bar", "fab", "behaviour", "bottom", "nav", "bar", "fab", "behaviour", "=", "new", "bottom", "nav", "bar", "fab", "behaviour", "(", ")", ";", "co", "layout", "params", "set", "behavior", "(", "bottom", "nav", "bar", "fab", "behaviour", ")", ";", "}" ]
[ "prompts", "if", "existing", "resources", "should", "be", "overwritten", "recursively", "collects", "existing", "read", "-", "only", "files", "to", "overwrite", "and", "resources", "that", "should", "not", "be", "overwritten" ]
[ "i", "workspace", "root", "workspace", "root", "=", "resources", "plugin", "get", "workspace", "(", ")", "get", "root", "(", ")", ";", "iterator", "source", "iter", "=", "sources", "iterator", "(", ")", ";", "i", "path", "source", "root", "path", "=", "null", ";", "if", "(", "this", "source", "!", "=", "null", ")", "{", "source", "root", "path", "=", "new", "path", "(", "provider", "get", "full", "path", "(", "this", "source", ")", ")", ";", "}", "while", "(", "source", "iter", "has", "next", "(", ")", ")", "{", "object", "next", "source", "=", "source", "iter", "next", "(", ")", ";", "i", "path", "source", "path", "=", "new", "path", "(", "provider", "get", "full", "path", "(", "next", "source", ")", ")", ";", "i", "path", "new", "destination", "path", ";", "i", "resource", "new", "destination", ";", "if", "(", "source", "root", "path", "=", "=", "null", ")", "{", "new", "destination", "path", "=", "source", "start", "append", "(", "provider", "get", "label", "(", "next", "source", ")", ")", ";", "}", "else", "{", "int", "prefix", "length", "=", "source", "path", "matching", "first", "segments", "(", "source", "root", "path", ")", ";", "i", "path", "relative", "source", "path", "=", "source", "path", "remove", "first", "segments", "(", "prefix", "length", ")", ";", "new", "destination", "path", "=", "this", "destination", "path", "append", "(", "relative", "source", "path", ")", ";", "}", "new", "destination", "=", "workspace", "root", "find", "member", "(", "new", "destination", "path", ")", ";", "if", "(", "new", "destination", "=", "=", "null", ")", "{", "continue", ";", "}", "i", "folder", "folder", "=", "get", "folder", "(", "new", "destination", ")", ";", "if", "(", "folder", "!", "=", "null", ")", "{", "if", "(", "policy", "!", "=", "policy", "force", "overwrite", ")", "{", "if", "(", "this", "overwrite", "state", "=", "=", "overwrite", "none", "|", "|", "!", "query", "overwrite", "(", "new", "destination", "path", ")", ")", "{", "no", "overwrite", "add", "(", "folder", ")", ";", "continue", ";", "}", "}", "if", "(", "provider", "is", "folder", "(", "next", "source", ")", ")", "{", "collect", "existing", "readonly", "files", "(", "new", "destination", "path", ",", "provider", "get", "children", "(", "next", "source", ")", ",", "no", "overwrite", ",", "overwrite", "readonly", ",", "policy", "force", "overwrite", ")", ";", "}", "}", "else", "{", "i", "file", "file", "=", "get", "file", "(", "new", "destination", ")", ";", "if", "(", "file", "!", "=", "null", ")", "{", "if", "(", "!", "query", "overwrite", "file", "(", "file", ",", "policy", ")", ")", "{", "no", "overwrite", "add", "(", "file", "get", "full", "path", "(", ")", ")", ";", "}", "else", "if", "(", "file", "is", "read", "only", "(", ")", ")", "{", "overwrite", "readonly", "add", "(", "file", ")", ";", "}", "}", "}", "}" ]
[ "deletes", "the", "given", "resource", "if", "the", "resource", "fails", "to", "be", "deleted", "adds", "a", "status", "object", "to", "the", "list", "to", "be", "returned", "by", "<", "code", ">", "get", "result", "<", "/", "code", ">" ]
[ "try", "{", "resource", "delete", "(", "i", "resource", "keep", "history", ",", "null", ")", ";", "}", "catch", "(", "core", "exception", "e", ")", "{", "error", "table", "add", "(", "e", "get", "status", "(", ")", ")", ";", "}" ]
[ "returns", "the", "container", "resource", "that", "the", "passed", "file", "system", "object", "should", "be", "imported", "into" ]
[ "i", "path", "pathname", "=", "new", "path", "(", "provider", "get", "full", "path", "(", "file", "system", "object", ")", ")", ";", "if", "(", "create", "container", "structure", ")", "{", "return", "create", "containers", "for", "(", "pathname", "remove", "last", "segments", "(", "1", ")", ")", ";", "}", "if", "(", "source", "=", "=", "file", "system", "object", ")", "{", "return", "null", ";", "}", "i", "path", "source", "path", "=", "new", "path", "(", "provider", "get", "full", "path", "(", "source", ")", ")", ";", "i", "path", "dest", "container", "path", "=", "pathname", "remove", "last", "segments", "(", "1", ")", ";", "i", "path", "relative", "path", "=", "dest", "container", "path", "remove", "first", "segments", "(", "source", "path", "segment", "count", "(", ")", ")", "set", "device", "(", "null", ")", ";", "return", "create", "containers", "for", "(", "relative", "path", ")", ";" ]
[ "returns", "the", "resource", "either", "casted", "to", "or", "adapted", "to", "an", "i", "file" ]
[ "if", "(", "resource", "instanceof", "i", "file", ")", "{", "return", "(", "i", "file", ")", "resource", ";", "}", "object", "adapted", "=", "(", "(", "i", "adaptable", ")", "resource", ")", "get", "adapter", "(", "i", "file", "class", ")", ";", "if", "(", "adapted", "=", "=", "null", ")", "{", "return", "null", ";", "}", "return", "(", "i", "file", ")", "adapted", ";" ]
[ "returns", "the", "resource", "either", "casted", "to", "or", "adapted", "to", "an", "i", "folder" ]
[ "if", "(", "resource", "instanceof", "i", "folder", ")", "{", "return", "(", "i", "folder", ")", "resource", ";", "}", "object", "adapted", "=", "(", "(", "i", "adaptable", ")", "resource", ")", "get", "adapter", "(", "i", "folder", "class", ")", ";", "if", "(", "adapted", "=", "=", "null", ")", "{", "return", "null", ";", "}", "return", "(", "i", "folder", ")", "adapted", ";" ]
[ "returns", "the", "rejected", "files", "based", "on", "the", "given", "multi", "status" ]
[ "array", "list", "filtered", "files", "=", "new", "array", "list", "(", ")", ";", "i", "status", "[", "]", "status", "=", "multi", "status", "get", "children", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "status", "length", ";", "i", "+", "+", ")", "{", "if", "(", "status", "[", "i", "]", "is", "o", "k", "(", ")", "=", "=", "false", ")", "{", "error", "table", "add", "(", "status", "[", "i", "]", ")", ";", "filtered", "files", "add", "(", "files", "[", "i", "]", "get", "full", "path", "(", ")", ")", ";", "}", "}", "return", "filtered", "files", ";" ]
[ "transform", "an", "absolute", "path", "uri", "to", "a", "relative", "path", "one", "(", "i", "e", "from", "c", ":", "\\", "foo", "\\", "bar", "\\", "file", "txt", "to", "var", "\\", "file", "txt", "granted", "that", "the", "relative", "variable", "is", "var", "and", "points", "to", "c", ":", "\\", "foo", "\\", "bar", "\\", ")" ]
[ "if", "(", "relative", "variable", "=", "=", "null", ")", "return", "location", ";", "if", "(", "relative", "variable", "equals", "(", "absolute", "path", ")", ")", "return", "location", ";", "i", "path", "variable", "manager", "path", "variable", "manager", "=", "resource", "get", "path", "variable", "manager", "(", ")", ";", "try", "{", "return", "u", "r", "i", "util", "to", "path", "(", "path", "variable", "manager", "convert", "to", "relative", "(", "u", "r", "i", "util", "to", "u", "r", "i", "(", "location", ")", ",", "true", ",", "relative", "variable", ")", ")", ";", "}", "catch", "(", "core", "exception", "e", ")", "{", "return", "location", ";", "}" ]
[ "imports", "the", "specified", "file", "system", "object", "recursively", "into", "the", "workspace", "if", "the", "import", "fails", "adds", "a", "status", "object", "to", "the", "list", "to", "be", "returned", "by", "<", "code", ">", "get", "status", "<", "/", "code", ">" ]
[ "if", "(", "monitor", "is", "canceled", "(", ")", ")", "{", "throw", "new", "operation", "canceled", "exception", "(", ")", ";", "}", "if", "(", "!", "provider", "is", "folder", "(", "file", "system", "object", ")", ")", "{", "import", "file", "(", "file", "system", "object", ",", "policy", ")", ";", "return", ";", "}", "int", "child", "policy", "=", "import", "folder", "(", "file", "system", "object", ",", "policy", ")", ";", "if", "(", "child", "policy", "!", "=", "policy", "skip", "children", ")", "{", "iterator", "children", "=", "provider", "get", "children", "(", "file", "system", "object", ")", "iterator", "(", ")", ";", "while", "(", "children", "has", "next", "(", ")", ")", "{", "import", "recursively", "from", "(", "children", "next", "(", ")", ",", "child", "policy", ")", ";", "}", "}" ]
[ "sets", "whether", "the", "containment", "structures", "that", "are", "implied", "from", "the", "full", "paths", "of", "file", "system", "objects", "being", "imported", "should", "be", "duplicated", "in", "the", "workbench" ]
[ "create", "container", "structure", "=", "value", ";" ]
[ "sets", "the", "file", "system", "objects", "to", "import" ]
[ "this", "selected", "files", "=", "files", "to", "import", ";" ]
[ "sets", "whether", "imported", "file", "system", "objects", "should", "automatically", "overwrite", "existing", "workbench", "resources", "when", "a", "conflict", "occurs" ]
[ "if", "(", "value", ")", "{", "this", "overwrite", "state", "=", "overwrite", "all", ";", "}" ]
[ "validates", "the", "given", "file", "system", "objects", "the", "user", "is", "prompted", "to", "overwrite", "existing", "files", "existing", "read", "-", "only", "files", "are", "validated", "with", "the", "vcm", "provider" ]
[ "array", "list", "no", "overwrite", "=", "new", "array", "list", "(", ")", ";", "array", "list", "overwrite", "readonly", "=", "new", "array", "list", "(", ")", ";", "collect", "existing", "readonly", "files", "(", "destination", "path", ",", "source", "files", ",", "no", "overwrite", ",", "overwrite", "readonly", ",", "policy", "default", ")", ";", "rejected", "files", "=", "validate", "edit", "(", "overwrite", "readonly", ")", ";", "rejected", "files", "add", "all", "(", "no", "overwrite", ")", ";" ]
[ "set", "whether", "groups", "and", "links", "will", "be", "created", "instead", "of", "files", "and", "folders" ]
[ "create", "virtual", "folder", "=", "virtual", "folders", ";" ]
[ "set", "whether", "links", "will", "be", "created", "instead", "of", "files", "and", "folders" ]
[ "create", "links", "=", "links", ";" ]
[ "set", "a", "variable", "relative", "to", "which", "the", "links", "are", "created" ]
[ "relative", "variable", "=", "variable", ";" ]
[ "resolves", "subpath", "in", "safer", "way", "for", "some", "reason", "if", "child", "starts", "with", "a", "separator", "it", "gets", "resolved", "as", "a", "full", "path", "ignoring", "the", "base", "this", "method", "acts", "different" ]
[ "if", "(", "string", "util", "starts", "with", "char", "(", "child", ",", "file", "separator", "char", ")", ")", "{", "child", "=", "child", "substring", "(", "1", ")", ";", "}", "return", "base", "resolve", "(", "child", ")", ";" ]
[ "deletes", "a", "directory", "recursively" ]
[ "files", "walk", "file", "tree", "(", "directory", ",", "new", "simple", "file", "visitor", "<", "path", ">", "(", ")", "{", "@", "override", "public", "file", "visit", "result", "visit", "file", "(", "final", "path", "file", ",", "final", "basic", "file", "attributes", "attrs", ")", "throws", "i", "o", "exception", "{", "files", "delete", "(", "file", ")", ";", "return", "file", "visit", "result", "continue", ";", "}", "@", "override", "public", "file", "visit", "result", "post", "visit", "directory", "(", "final", "path", "dir", ",", "final", "i", "o", "exception", "exc", ")", "throws", "i", "o", "exception", "{", "files", "delete", "(", "dir", ")", ";", "return", "file", "visit", "result", "continue", ";", "}", "}", ")", ";" ]
[ "construct", "an", "asynchronous", "implementation", "of", "a", "w", "s", "code", "commit", "async", "using", "the", "current", "builder", "configuration" ]
[ "return", "new", "a", "w", "s", "code", "commit", "async", "client", "(", "params", ")", ";" ]
[ "set", "storage" ]
[ "this", "sto", "=", "sto", ";" ]
[ "{" ]
[ "return", "sto", "size", "(", ")", ";" ]
[ "check", "index", "bounds" ]
[ "if", "(", "idx", "<", "0", "|", "|", "idx", ">", "=", "sto", "size", "(", ")", ")", "throw", "new", "index", "exception", "(", "idx", ")", ";" ]
[ "{" ]
[ "check", "index", "(", "idx", ")", ";", "return", "storage", "get", "(", "idx", ")", ";" ]
[ "{" ]
[ "return", "storage", "get", "(", "idx", ")", ";" ]
[ "{" ]
[ "if", "(", "is", "array", "based", "(", ")", ")", "arrays", "parallel", "sort", "(", "sto", "data", "(", ")", ")", ";", "else", "throw", "new", "unsupported", "operation", "exception", "(", ")", ";", "return", "this", ";" ]
[ "{" ]
[ "if", "(", "sto", "is", "array", "based", "(", ")", ")", "{", "double", "[", "]", "data", "=", "sto", "data", "(", ")", ";", "arrays", "set", "all", "(", "data", ",", "(", "idx", ")", "-", ">", "fun", "apply", "(", "data", "[", "idx", "]", ")", ")", ";", "}", "else", "{", "int", "len", "=", "size", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "len", ";", "i", "+", "+", ")", "storage", "set", "(", "i", ",", "fun", "apply", "(", "storage", "get", "(", "i", ")", ")", ")", ";", "}", "return", "this", ";" ]
[ "{" ]
[ "check", "cardinality", "(", "vec", ")", ";", "int", "len", "=", "size", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "len", ";", "i", "+", "+", ")", "storage", "set", "(", "i", ",", "fun", "apply", "(", "storage", "get", "(", "i", ")", ",", "vec", "get", "(", "i", ")", ")", ")", ";", "return", "this", ";" ]
[ "{" ]
[ "int", "len", "=", "size", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "len", ";", "i", "+", "+", ")", "storage", "set", "(", "i", ",", "fun", "apply", "(", "storage", "get", "(", "i", ")", ",", "y", ")", ")", ";", "return", "this", ";" ]
[ "{" ]
[ "if", "(", "min", "elm", "=", "=", "null", ")", "{", "int", "min", "idx", "=", "0", ";", "int", "len", "=", "size", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "len", ";", "i", "+", "+", ")", "if", "(", "storage", "get", "(", "i", ")", "<", "storage", "get", "(", "min", "idx", ")", ")", "min", "idx", "=", "i", ";", "min", "elm", "=", "make", "element", "(", "min", "idx", ")", ";", "}", "return", "min", "elm", ";" ]
[ "{" ]
[ "if", "(", "max", "elm", "=", "=", "null", ")", "{", "int", "max", "idx", "=", "0", ";", "int", "len", "=", "size", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "len", ";", "i", "+", "+", ")", "if", "(", "storage", "get", "(", "i", ")", ">", "storage", "get", "(", "max", "idx", ")", ")", "max", "idx", "=", "i", ";", "max", "elm", "=", "make", "element", "(", "max", "idx", ")", ";", "}", "return", "max", "elm", ";" ]
[ "{" ]
[ "check", "index", "(", "idx", ")", ";", "storage", "set", "(", "idx", ",", "val", ")", ";", "return", "this", ";" ]
[ "{" ]
[ "storage", "set", "(", "idx", ",", "val", ")", ";", "return", "this", ";" ]
[ "{" ]
[ "check", "index", "(", "idx", ")", ";", "storage", "set", "(", "idx", ",", "storage", "get", "(", "idx", ")", "+", "val", ")", ";", "return", "this", ";" ]
[ "{" ]
[ "storage", "set", "(", "idx", ",", "storage", "get", "(", "idx", ")", "+", "val", ")", ";", "return", "this", ";" ]
[ "tests", "if", "given", "value", "is", "considered", "a", "zero", "value" ]
[ "return", "val", "=", "=", "0", "0", ";" ]
[ "{" ]
[ "double", "sum", "=", "0", ";", "int", "len", "=", "size", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "len", ";", "i", "+", "+", ")", "sum", "+", "=", "storage", "get", "(", "i", ")", ";", "return", "sum", ";" ]
[ "{" ]
[ "int", "cnt", "=", "0", ";", "for", "(", "element", "ignored", ":", "non", "zeroes", "(", ")", ")", "cnt", "+", "+", ";", "return", "cnt", ";" ]
[ "{" ]
[ "t", "res", "=", "zero", "val", ";", "int", "len", "=", "size", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "len", ";", "i", "+", "+", ")", "res", "=", "fold", "fun", "apply", "(", "res", ",", "map", "fun", "apply", "(", "storage", "get", "(", "i", ")", ")", ")", ";", "return", "res", ";" ]
[ "{" ]
[ "check", "cardinality", "(", "vec", ")", ";", "t", "res", "=", "zero", "val", ";", "int", "len", "=", "size", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "len", ";", "i", "+", "+", ")", "res", "=", "fold", "fun", "apply", "(", "res", ",", "comb", "fun", "apply", "(", "storage", "get", "(", "i", ")", ",", "vec", "get", "x", "(", "i", ")", ")", ")", ";", "return", "res", ";" ]
[ "{" ]
[ "if", "(", "sto", "is", "array", "based", "(", ")", ")", "{", "ensure", "read", "only", "(", ")", ";", "arrays", "fill", "(", "sto", "data", "(", ")", ",", "val", ")", ";", "}", "else", "{", "int", "len", "=", "size", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "len", ";", "i", "+", "+", ")", "storage", "set", "(", "i", ",", "val", ")", ";", "}", "return", "this", ";" ]
[ "{" ]
[ "check", "cardinality", "(", "vals", ")", ";", "if", "(", "sto", "is", "array", "based", "(", ")", ")", "{", "ensure", "read", "only", "(", ")", ";", "system", "arraycopy", "(", "vals", ",", "0", ",", "sto", "data", "(", ")", ",", "0", ",", "vals", "length", ")", ";", "len", "sq", "=", "0", "0", ";", "}", "else", "{", "int", "len", "=", "size", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "len", ";", "i", "+", "+", ")", "storage", "set", "(", "i", ",", "vals", "[", "i", "]", ")", ";", "}", "return", "this", ";" ]
[ "{" ]
[ "check", "cardinality", "(", "vec", ")", ";", "for", "(", "vector", "element", "x", ":", "vec", "all", "(", ")", ")", "storage", "set", "(", "x", "index", "(", ")", ",", "x", "get", "(", ")", ")", ";", "return", "this", ";" ]
[ "{" ]
[ "assert", "fun", "!", "=", "null", ";", "if", "(", "sto", "is", "array", "based", "(", ")", ")", "{", "ensure", "read", "only", "(", ")", ";", "arrays", "set", "all", "(", "sto", "data", "(", ")", ",", "fun", ")", ";", "}", "else", "{", "int", "len", "=", "size", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "len", ";", "i", "+", "+", ")", "storage", "set", "(", "i", ",", "fun", "apply", "as", "double", "(", "i", ")", ")", ";", "}", "return", "this", ";" ]
[ "{" ]
[ "check", "cardinality", "(", "vec", ")", ";", "double", "sum", "=", "0", "0", ";", "int", "len", "=", "size", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "len", ";", "i", "+", "+", ")", "sum", "+", "=", "storage", "get", "(", "i", ")", "*", "vec", "get", "x", "(", "i", ")", ";", "return", "sum", ";" ]
[ "{" ]
[ "if", "(", "len", "sq", "=", "=", "0", "0", ")", "len", "sq", "=", "dot", "self", "(", ")", ";", "return", "len", "sq", ";" ]
[ "{" ]
[ "return", "sto", ";" ]
[ "{" ]
[ "return", "new", "vector", "view", "(", "this", ",", "off", ",", "len", ")", ";" ]
[ "{" ]
[ "matrix", "res", "=", "like", "matrix", "(", "size", "(", ")", ",", "vec", "size", "(", ")", ")", ";", "if", "(", "res", "=", "=", "null", ")", "return", "null", ";", "for", "(", "element", "e", ":", "non", "zeroes", "(", ")", ")", "{", "int", "row", "=", "e", "index", "(", ")", ";", "res", "assign", "row", "(", "row", ",", "vec", "times", "(", "get", "x", "(", "row", ")", ")", ")", ";", "}", "return", "res", ";" ]
[ "{" ]
[ "matrix", "res", "=", "like", "matrix", "(", "row", "like", "?", "1", ":", "size", "(", ")", ",", "row", "like", "?", "size", "(", ")", ":", "1", ")", ";", "if", "(", "res", "=", "=", "null", ")", "return", "null", ";", "if", "(", "row", "like", ")", "res", "assign", "row", "(", "0", ",", "this", ")", ";", "else", "res", "assign", "column", "(", "0", ",", "this", ")", ";", "return", "res", ";" ]
[ "{" ]
[ "matrix", "res", "=", "like", "matrix", "(", "row", "like", "?", "1", ":", "size", "(", ")", "+", "1", ",", "row", "like", "?", "size", "(", ")", "+", "1", ":", "1", ")", ";", "if", "(", "res", "=", "=", "null", ")", "return", "null", ";", "res", "set", "(", "0", ",", "0", ",", "zero", "val", ")", ";", "if", "(", "row", "like", ")", "new", "view", "matrix", "(", "res", ",", "0", ",", "1", ",", "1", ",", "size", "(", ")", ")", "assign", "row", "(", "0", ",", "this", ")", ";", "else", "new", "view", "matrix", "(", "res", ",", "1", ",", "0", ",", "size", "(", ")", ",", "1", ")", "assign", "column", "(", "0", ",", "this", ")", ";", "return", "res", ";" ]
[ "{" ]
[ "check", "cardinality", "(", "vec", ")", ";", "vector", "cp", "=", "copy", "(", ")", ";", "return", "cp", "map", "(", "vec", ",", "functions", "minus", ")", ";" ]
[ "{" ]
[ "vector", "cp", "=", "copy", "(", ")", ";", "return", "x", "!", "=", "0", "0", "?", "cp", "map", "(", "functions", "plus", "(", "x", ")", ")", ":", "cp", ";" ]
[ "{" ]
[ "vector", "cp", "=", "copy", "(", ")", ";", "if", "(", "x", "!", "=", "1", "0", ")", "for", "(", "element", "element", ":", "cp", "all", "(", ")", ")", "element", "set", "(", "element", "get", "(", ")", "/", "x", ")", ";", "return", "cp", ";" ]
[ "{" ]
[ "if", "(", "x", "=", "=", "0", "0", ")", "return", "like", "(", "size", "(", ")", ")", ";", "else", "return", "copy", "(", ")", "map", "(", "functions", "mult", "(", "x", ")", ")", ";" ]
[ "{" ]
[ "check", "cardinality", "(", "vec", ")", ";", "return", "copy", "(", ")", "map", "(", "vec", ",", "functions", "mult", ")", ";" ]
[ "{" ]
[ "check", "cardinality", "(", "vec", ")", ";", "vector", "cp", "=", "copy", "(", ")", ";", "return", "cp", "map", "(", "vec", ",", "functions", "plus", ")", ";" ]
[ "{" ]
[ "return", "log", "normalize", "(", "2", "0", ",", "math", "sqrt", "(", "get", "length", "squared", "(", ")", ")", ")", ";" ]
[ "{" ]
[ "return", "log", "normalize", "(", "power", ",", "k", "norm", "(", "power", ")", ")", ";" ]
[ "{" ]
[ "return", "divide", "(", "math", "sqrt", "(", "get", "length", "squared", "(", ")", ")", ")", ";" ]
[ "{" ]
[ "return", "divide", "(", "k", "norm", "(", "power", ")", ")", ";" ]
[ "{" ]
[ "return", "like", "(", "size", "(", ")", ")", "assign", "(", "this", ")", ";" ]
[ "{" ]
[ "return", "make", "element", "(", "idx", ")", ";" ]
[ "{" ]
[ "out", "write", "object", "(", "sto", ")", ";", "out", "write", "object", "(", "meta", ")", ";", "out", "write", "object", "(", "guid", ")", ";", "out", "write", "boolean", "(", "read", "only", ")", ";" ]
[ "{" ]
[ "sto", "destroy", "(", ")", ";" ]
[ "{" ]
[ "int", "res", "=", "1", ";", "res", "+", "=", "res", "*", "37", "+", "guid", "hash", "code", "(", ")", ";", "res", "+", "=", "sto", "=", "=", "null", "?", "0", ":", "res", "*", "37", "+", "sto", "hash", "code", "(", ")", ";", "return", "res", ";" ]
[ "{" ]
[ "if", "(", "this", "=", "=", "obj", ")", "return", "true", ";", "if", "(", "obj", "=", "=", "null", "|", "|", "get", "class", "(", ")", "!", "=", "obj", "get", "class", "(", ")", ")", "return", "false", ";", "abstract", "vector", "that", "=", "(", "abstract", "vector", ")", "obj", ";", "return", "(", "sto", "!", "=", "null", "?", "sto", "equals", "(", "that", "sto", ")", ":", "that", "sto", "=", "=", "null", ")", ";" ]
[ "{" ]
[ "storage", "set", "(", "idx", ",", "f", "apply", "(", "idx", ",", "storage", "get", "(", "idx", ")", ")", ")", ";", "len", "sq", "=", "0", "0", ";", "max", "elm", "=", "min", "elm", "=", "null", ";" ]
[ "release", "cached", "r", "d", "ds", "as", "soon", "as", "the", "job", "is", "done", "this", "is", "different", "from", "local", "spark", "client", "so", "as", "to", "save", "a", "rpc", "call", "/", "trip", "avoid", "passing", "cached", "rdd", "id", "information", "around", "otherwise", "we", "can", "follow", "the", "local", "spark", "client", "way", "to", "be", "consistent" ]
[ "if", "(", "cached", "r", "d", "d", "ids", "!", "=", "null", ")", "{", "for", "(", "integer", "cached", "r", "d", "d", "id", ":", "cached", "r", "d", "d", "ids", ")", "{", "jc", "sc", "(", ")", "sc", "(", ")", "unpersist", "r", "d", "d", "(", "cached", "r", "d", "d", "id", ",", "false", ")", ";", "}", "}" ]
[ "returns", "the", "client", "job", "id", "for", "the", "given", "spark", "job", "id" ]
[ "for", "(", "map", "entry", "<", "string", ",", "job", "wrapper", "<", "?", ">", ">", "e", ":", "active", "jobs", "entry", "set", "(", ")", ")", "{", "for", "(", "java", "future", "action", "<", "?", ">", "future", ":", "e", "get", "value", "(", ")", "jobs", ")", "{", "if", "(", "future", "job", "ids", "(", ")", "contains", "(", "job", "id", ")", ")", "{", "return", "e", "get", "key", "(", ")", ";", "}", "}", "}", "return", "null", ";" ]
[ "get", "the", "default", "scheduler", "for", "the", "provided", "camel", "context" ]
[ "return", "get", "quartz", "component", "(", "context", ")", "get", "factory", "(", ")", "get", "scheduler", "(", ")", ";" ]
[ "<", "code", ">", "repeated", "double", "double", "=", "1", "[", "packed", "=", "true", "]", ";", "<", "/", "code", ">" ]
[ "return", "double", ";" ]
[ "<", "code", ">", "repeated", "double", "double", "=", "1", "[", "packed", "=", "true", "]", ";", "<", "/", "code", ">" ]
[ "return", "double", "size", "(", ")", ";" ]
[ "<", "code", ">", "repeated", "double", "double", "=", "1", "[", "packed", "=", "true", "]", ";", "<", "/", "code", ">" ]
[ "return", "double", "get", "(", "index", ")", ";" ]
[ "<", "code", ">", "repeated", "float", "float", "=", "2", "[", "packed", "=", "true", "]", ";", "<", "/", "code", ">" ]
[ "return", "float", ";" ]
[ "<", "code", ">", "repeated", "float", "float", "=", "2", "[", "packed", "=", "true", "]", ";", "<", "/", "code", ">" ]
[ "return", "float", "size", "(", ")", ";" ]
[ "<", "code", ">", "repeated", "float", "float", "=", "2", "[", "packed", "=", "true", "]", ";", "<", "/", "code", ">" ]
[ "return", "float", "get", "(", "index", ")", ";" ]
[ "<", "code", ">", "repeated", "sint", "3", "2", "integer", "=", "3", "[", "packed", "=", "true", "]", ";", "<", "/", "code", ">" ]
[ "return", "integer", ";" ]
[ "<", "code", ">", "repeated", "sint", "3", "2", "integer", "=", "3", "[", "packed", "=", "true", "]", ";", "<", "/", "code", ">" ]
[ "return", "integer", "size", "(", ")", ";" ]
[ "<", "code", ">", "repeated", "sint", "3", "2", "integer", "=", "3", "[", "packed", "=", "true", "]", ";", "<", "/", "code", ">" ]
[ "return", "integer", "get", "(", "index", ")", ";" ]
[ "<", "code", ">", "repeated", "sint", "6", "4", "long", "=", "4", "[", "packed", "=", "true", "]", ";", "<", "/", "code", ">" ]
[ "return", "long", ";" ]
[ "<", "code", ">", "repeated", "sint", "6", "4", "long", "=", "4", "[", "packed", "=", "true", "]", ";", "<", "/", "code", ">" ]
[ "return", "long", "size", "(", ")", ";" ]
[ "<", "code", ">", "repeated", "sint", "6", "4", "long", "=", "4", "[", "packed", "=", "true", "]", ";", "<", "/", "code", ">" ]
[ "return", "long", "get", "(", "index", ")", ";" ]
[ "<", "code", ">", "repeated", "bool", "boolean", "=", "5", "[", "packed", "=", "true", "]", ";", "<", "/", "code", ">" ]
[ "return", "boolean", ";" ]
[ "<", "code", ">", "repeated", "bool", "boolean", "=", "5", "[", "packed", "=", "true", "]", ";", "<", "/", "code", ">" ]
[ "return", "boolean", "size", "(", ")", ";" ]