docstring_tokens
sequence
code_tokens
sequence
[ "<", "code", ">", "replace", "function", "variable", "name", "<", "code", ">", "replaces", "the", "name", "on", "the", "indicated", "function", "variable", "in", "program", "1", "with", "the", "name", "from", "the", "equivalent", "variable", "in", "program", "2" ]
[ "public", "void", "replace", "function", "variable", "name", "(", "address", "origin", "entry", "point", ",", "variable", "var", ",", "task", "monitor", "monitor", ")", "throws", "duplicate", "name", "exception", ",", "invalid", "input", "exception", "{", "if", "(", "var", "instanceof", "parameter", ")", "{", "replace", "function", "parameter", "name", "(", "origin", "entry", "point", ",", "(", "(", "parameter", ")", "var", ")", "get", "ordinal", "(", ")", ",", "monitor", ")", ";", "return", ";", "}", "address", "result", "entry", "point", "=", "origin", "to", "result", "translator", "get", "address", "(", "origin", "entry", "point", ")", ";", "function", "f", "1", "=", "result", "program", "get", "function", "manager", "(", ")", "get", "function", "at", "(", "result", "entry", "point", ")", ";", "function", "f", "2", "=", "origin", "program", "get", "function", "manager", "(", ")", "get", "function", "at", "(", "origin", "entry", "point", ")", ";", "if", "(", "f", "1", "!", "=", "null", "&", "&", "f", "2", "!", "=", "null", ")", "{", "variable", "to", "var", "=", "find", "variable", "(", "var", ",", "f", "1", "get", "local", "variables", "(", ")", ")", ";", "variable", "from", "var", "=", "find", "variable", "(", "var", ",", "f", "2", "get", "local", "variables", "(", ")", ")", ";", "source", "type", "source", ";", "if", "(", "from", "var", "!", "=", "null", ")", "{", "source", "=", "from", "var", "get", "source", "(", ")", ";", "}", "else", "if", "(", "to", "var", "!", "=", "null", ")", "{", "source", "=", "to", "var", "get", "source", "(", ")", ";", "}", "else", "{", "source", "=", "var", "get", "source", "(", ")", ";", "}", "string", "from", "name", "=", "(", "from", "var", "!", "=", "null", ")", "?", "from", "var", "get", "name", "(", ")", ":", "null", ";", "if", "(", "to", "var", "!", "=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "integer", "max", "value", ";", "i", "+", "+", ")", "{", "string", "new", "name", "=", "(", "i", "=", "=", "0", ")", "?", "from", "name", ":", "from", "name", "+", "program", "merge", "symbol", "conflict", "suffix", "+", "i", ";", "try", "{", "to", "var", "set", "name", "(", "new", "name", ",", "source", ")", ";", "if", "(", "i", ">", "0", ")", "{", "info", "msg", "append", "(", "\"", "variable", "'", "\"", "+", "from", "name", "+", "\"", "'", "was", "merged", "as", "'", "\"", "+", "new", "name", "+", "\"", "'", "in", "function", "\"", "+", "f", "1", "get", "name", "(", ")", "+", "\"", "\\", "n", "\"", ")", ";", "}", "return", ";", "}", "catch", "(", "duplicate", "name", "exception", "e", ")", "{", "continue", ";", "}", "}", "to", "var", "set", "name", "(", "from", "name", ",", "source", ")", ";", "/", "/", "get", "it", "to", "throw", "the", "first", "duplicate", "name", "exception", "}", "}", "}" ]
[ "checks", ",", "if", "the", "given", "value", "matches", "all", "the", "{", "@", "code", "comparison", "expression", "}", "this", "implies", "an", "and", "logic", "between", "the", "expressions" ]
[ "public", "boolean", "match", "(", "long", "value", ",", "boolean", "default", "value", ")", "{", "if", "(", "comparison", "expressions", "is", "empty", "(", ")", ")", "{", "return", "default", "value", ";", "}", "return", "comparison", "expressions", "stream", "(", ")", "all", "match", "(", "expr", "-", ">", "expr", "match", "(", "value", ")", ")", ";", "}" ]
[ "get", "small", "camel" ]
[ "public", "string", "get", "small", "camel", "(", ")", "{", "return", "small", "camel", ";", "}" ]
[ "check", "the", "given", "{", "@", "code", "time", "value", "}", "is", "a", "multiple", "of", "the", "{", "@", "code", "base", "unit", "}" ]
[ "public", "static", "void", "check", "multiple", "(", "time", "value", "time", "value", ",", "time", "unit", "base", "unit", ",", "parse", "field", "field", ")", "{", "long", "nanos", "=", "time", "value", "get", "nanos", "(", ")", ";", "time", "value", "base", "=", "new", "time", "value", "(", "1", ",", "base", "unit", ")", ";", "long", "base", "nanos", "=", "base", "get", "nanos", "(", ")", ";", "if", "(", "nanos", "%", "base", "nanos", "!", "=", "0", ")", "{", "throw", "new", "illegal", "argument", "exception", "(", "field", "get", "preferred", "name", "(", ")", "+", "\"", "has", "to", "be", "a", "multiple", "of", "\"", "+", "base", "to", "string", "(", ")", "+", "\"", ";", "actual", "was", "'", "\"", "+", "time", "value", "to", "string", "(", ")", "+", "\"", "'", "\"", ")", ";", "}", "}" ]
[ "configure", "a", "{", "@", "link", "stomp", "encoder", "}", "for", "encoding", "stomp", "frames" ]
[ "public", "void", "set", "encoder", "(", "stomp", "encoder", "encoder", ")", "{", "this", "stomp", "encoder", "=", "encoder", ";", "}" ]
[ "set", "the", "key", "class", "for", "the", "{", "@", "link", "sequence", "file", "}", "this", "allows", "the", "user", "to", "specify", "the", "key", "class", "to", "be", "different", "from", "the", "actual", "class", "(", "{", "@", "link", "bytes", "writable", "}", ")", "used", "for", "writing" ]
[ "static", "public", "void", "set", "sequence", "file", "output", "key", "class", "(", "job", "conf", "conf", ",", "class", "<", "?", ">", "the", "class", ")", "{", "conf", "set", "class", "(", "org", "apache", "hadoop", "mapreduce", "lib", "output", "sequence", "file", "as", "binary", "output", "format", "key", "class", ",", "the", "class", ",", "object", "class", ")", ";", "}" ]
[ "configuration", "for", "the", "'", "fields", "'", "response" ]
[ "public", "fetch", "fields", "context", "fetch", "fields", "context", "(", ")", "{", "return", "search", "context", "fetch", "fields", "context", "(", ")", ";", "}" ]
[ "tests", "that", "a", "null", "override", "can", "be", "cleared" ]
[ "public", "void", "select", "tracks", "with", "cleared", "null", "override", "(", ")", "throws", "exo", "playback", "exception", "{", "track", "selector", "set", "parameters", "(", "track", "selector", "build", "upon", "parameters", "(", ")", "set", "selection", "override", "(", "0", ",", "new", "track", "group", "array", "(", "video", "track", "group", ")", ",", "null", ")", "clear", "selection", "override", "(", "0", ",", "new", "track", "group", "array", "(", "video", "track", "group", ")", ")", ")", ";", "track", "selector", "result", "result", "=", "track", "selector", "select", "tracks", "(", "renderer", "capabilities", ",", "track", "groups", ",", "period", "id", ",", "timeline", ")", ";", "assert", "selections", "(", "result", ",", "track", "selections", ")", ";", "assert", "that", "(", "result", "renderer", "configurations", ")", "is", "equal", "to", "(", "new", "renderer", "configuration", "[", "]", "{", "default", ",", "default", "}", ")", ";", "}" ]
[ "get", "anytype", "1" ]
[ "public", "object", "get", "anytype", "1", "(", ")", "{", "return", "anytype", "1", ";", "}" ]
[ "gets", "leniency", "setting", "that", "controls", "if", "format", "based", "failures", "will", "be", "ignored" ]
[ "public", "boolean", "lenient", "(", ")", "{", "return", "this", "lenient", ";", "}" ]
[ "retrieves", "and", "removes", "the", "head", "of", "the", "queue", "represented", "by", "this", "queue", "(", "in", "other", "words", ",", "the", "first", "element", "of", "this", "queue", ")", ",", "or", "returns", "<", "tt", ">", "null", "<", "tt", ">", "if", "this", "queue", "is", "empty" ]
[ "public", "e", "poll", "(", ")", "{", "int", "h", "=", "head", ";", "@", "suppress", "warnings", "(", "\"", "unchecked", "\"", ")", "e", "result", "=", "(", "e", ")", "elements", "[", "h", "]", ";", "/", "/", "element", "is", "null", "if", "queue", "empty", "if", "(", "result", "=", "=", "null", ")", "return", "null", ";", "elements", "[", "h", "]", "=", "null", ";", "/", "/", "must", "null", "out", "slot", "head", "=", "(", "h", "+", "1", ")", "&", "(", "elements", "length", "-", "1", ")", ";", "return", "result", ";", "}" ]
[ "this", "implementation", "disposes", "of", "the", "{", "@", "link", "s", "x", "s", "s", "f", "workbook", "}", "when", "done", "with", "rendering" ]
[ "protected", "void", "render", "workbook", "(", "workbook", "workbook", ",", "http", "servlet", "response", "response", ")", "throws", "i", "o", "exception", "{", "super", "render", "workbook", "(", "workbook", ",", "response", ")", ";", "/", "/", "dispose", "of", "temporary", "files", "in", "case", "of", "streaming", "variant", "(", "(", "s", "x", "s", "s", "f", "workbook", ")", "workbook", ")", "dispose", "(", ")", ";", "}" ]
[ "helper", "method", "to", "set", "the", "scopes", "for", "the", "first", "o", "auth", "2", "authentication" ]
[ "public", "api", "client", "set", "oauth", "scope", "(", "string", "scope", ")", "{", "for", "(", "authentication", "auth", ":", "authentications", "values", "(", ")", ")", "{", "if", "(", "auth", "instanceof", "o", "auth", ")", "{", "(", "(", "o", "auth", ")", "auth", ")", "set", "scope", "(", "scope", ")", ";", "return", "this", ";", "}", "}", "throw", "new", "runtime", "exception", "(", "\"", "no", "o", "auth", "2", "authentication", "configured", "!", "\"", ")", ";", "}" ]
[ "sets", "new", "values", "to", "all", "fields", "of", "the", "tuple" ]
[ "public", "void", "set", "fields", "(", "t0", "value", "0", ",", "t1", "value", "1", ",", "t2", "value", "2", ",", "t3", "value", "3", ",", "t4", "value", "4", ",", "t5", "value", "5", ",", "t6", "value", "6", ",", "t7", "value", "7", ",", "t8", "value", "8", ")", "{", "this", "f", "0", "=", "value", "0", ";", "this", "f", "1", "=", "value", "1", ";", "this", "f", "2", "=", "value", "2", ";", "this", "f", "3", "=", "value", "3", ";", "this", "f", "4", "=", "value", "4", ";", "this", "f", "5", "=", "value", "5", ";", "this", "f", "6", "=", "value", "6", ";", "this", "f", "7", "=", "value", "7", ";", "this", "f", "8", "=", "value", "8", ";", "}", "/", "/", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "/", "/", "standard", "utilities", "/", "/", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-" ]
[ "request", "focus", "to", "a", "specific", "index", "position" ]
[ "void", "request", "focus", "(", "int", "index", ")", "{", "request", "focus", "with", "offset", "(", "index", ",", "0", ")", ";", "}" ]
[ "set", "the", "exception", "handler", "on", "this", "promise" ]
[ "public", "promise", "<", "t", ">", "on", "error", "(", "consumer", "<", "?", "super", "throwable", ">", "exception", "handler", ")", "{", "this", "exception", "handler", "=", "exception", "handler", ";", "return", "this", ";", "}" ]
[ "wait", "for", "condition", "to", "be", "met", "for", "at", "most", "{", "@", "code", "max", "wait", "ms", "}", "and", "throw", "assertion", "failure", "otherwise", "this", "should", "be", "used", "instead", "of", "{", "@", "code", "thread", "sleep", "}", "whenever", "possible", "as", "it", "allows", "a", "longer", "timeout", "to", "be", "used", "without", "unnecessarily", "increasing", "test", "time", "(", "as", "the", "condition", "is", "checked", "frequently", ")", "the", "longer", "timeout", "is", "needed", "to", "avoid", "transient", "failures", "due", "to", "slow", "or", "overloaded", "machines" ]
[ "public", "static", "void", "wait", "for", "condition", "(", "final", "test", "condition", "test", "condition", ",", "final", "long", "max", "wait", "ms", ",", "supplier", "<", "string", ">", "condition", "details", "supplier", ")", "throws", "interrupted", "exception", "{", "retry", "on", "exception", "with", "timeout", "(", "max", "wait", "ms", ",", "(", ")", "-", ">", "{", "string", "condition", "details", "supplied", "=", "condition", "details", "supplier", "!", "=", "null", "?", "condition", "details", "supplier", "get", "(", ")", ":", "null", ";", "string", "condition", "details", "=", "condition", "details", "supplied", "!", "=", "null", "?", "condition", "details", "supplied", ":", "\"", "\"", ";", "assert", "true", "(", "test", "condition", "condition", "met", "(", ")", ",", "\"", "condition", "not", "met", "within", "timeout", "\"", "+", "max", "wait", "ms", "+", "\"", "\"", "+", "condition", "details", ")", ";", "}", ")", ";", "}" ]
[ "override", "this", "method", "if", "you", "want", "the", "options", "used", "by", "the", "validator", "to", "differ", "from", "the", "default", "version", "tracking", "apply", "markup", "options" ]
[ "protected", "tool", "options", "get", "options", "(", ")", "{", "tool", "options", "apply", "options", "=", "new", "tool", "options", "(", "version", "tracking", "options", "name", ")", ";", "apply", "options", "set", "enum", "(", "function", "name", ",", "function", "name", "choices", "replace", "always", ")", ";", "apply", "options", "set", "enum", "(", "labels", ",", "label", "choices", "add", ")", ";", "apply", "options", "set", "enum", "(", "function", "signature", ",", "function", "signature", "choices", "when", "same", "parameter", "count", ")", ";", "apply", "options", "set", "enum", "(", "calling", "convention", ",", "calling", "convention", "choices", "same", "language", ")", ";", "apply", "options", "set", "enum", "(", "inline", ",", "replace", "choices", "replace", ")", ";", "apply", "options", "set", "enum", "(", "no", "return", ",", "replace", "choices", "replace", ")", ";", "apply", "options", "set", "enum", "(", "function", "return", "type", ",", "parameter", "data", "type", "choices", "replace", "undefined", "data", "types", "only", ")", ";", "apply", "options", "set", "enum", "(", "parameter", "data", "types", ",", "parameter", "data", "type", "choices", "replace", "undefined", "data", "types", "only", ")", ";", "apply", "options", "set", "enum", "(", "parameter", "names", ",", "source", "priority", "choices", "priority", "replace", ")", ";", "apply", "options", "set", "enum", "(", "highest", "name", "priority", ",", "highest", "source", "priority", "choices", "user", "priority", "highest", ")", ";", "apply", "options", "set", "boolean", "(", "parameter", "names", "replace", "if", "same", "priority", ",", "default", "option", "for", "parameter", "names", "replace", "if", "same", "priority", ")", ";", "/", "/", "apply", "options", "put", "boolean", "(", "parameter", "names", "only", "replace", "defaults", ",", "false", ")", ";", "/", "/", "apply", "options", "put", "boolean", "(", "parameter", "names", "do", "not", "replace", "with", "defaults", ",", "false", ")", ";", "apply", "options", "set", "enum", "(", "parameter", "comments", ",", "comment", "choices", "append", "to", "existing", ")", ";", "apply", "options", "set", "enum", "(", "plate", "comment", ",", "comment", "choices", "append", "to", "existing", ")", ";", "apply", "options", "set", "enum", "(", "pre", "comment", ",", "comment", "choices", "append", "to", "existing", ")", ";", "apply", "options", "set", "enum", "(", "end", "of", "line", "comment", ",", "comment", "choices", "append", "to", "existing", ")", ";", "apply", "options", "set", "enum", "(", "repeatable", "comment", ",", "comment", "choices", "append", "to", "existing", ")", ";", "apply", "options", "set", "enum", "(", "post", "comment", ",", "comment", "choices", "append", "to", "existing", ")", ";", "apply", "options", "set", "enum", "(", "data", "match", "data", "type", ",", "replace", "data", "choices", "replace", "undefined", "data", "only", ")", ";", "return", "apply", "options", ";", "}" ]
[ "syntactic", "sugar", "for", "creating", "a", "schema", "keywordstring", "field" ]
[ "protected", "final", "field", "attribute", "keyword", "(", "string", "name", ")", "{", "return", "field", "(", "name", ",", "new", "keyword", "es", "field", "(", "name", ")", ")", ";", "}" ]
[ "server", "receives", "a", "connection", "request", "and", "handles", "it", "asynchronously", "via", "separate", "thread" ]
[ "public", "void", "receive", "connection", "async", "(", "final", "socket", "sock", ")", "{", "try", "{", "log", "debug", "(", "\"", "async", "handling", "of", "connection", "request", "received", "from", ":", "{", "}", "\"", ",", "sock", "get", "remote", "socket", "address", "(", ")", ")", ";", "connection", "executor", "execute", "(", "new", "quorum", "connection", "receiver", "thread", "(", "sock", ")", ")", ";", "connection", "thread", "cnt", "increment", "and", "get", "(", ")", ";", "}", "catch", "(", "throwable", "e", ")", "{", "log", "error", "(", "\"", "exception", "handling", "connection", ",", "addr", ":", "{", "}", ",", "closing", "server", "connection", "\"", ",", "sock", "get", "remote", "socket", "address", "(", ")", ")", ";", "log", "debug", "(", "\"", "exception", "details", ":", "\"", ",", "e", ")", ";", "close", "socket", "(", "sock", ")", ";", "}", "}" ]
[ "declare", "that", "the", "test", "requires", "the", "csv", "test", "dataset" ]
[ "private", "void", "require", "c", "s", "v", "test", "data", "(", ")", "{", "assume", "(", "assumption", "message", ",", "test", "data", "available", ")", ";", "}" ]
[ "{", "@", "inherit", "doc", "}" ]
[ "public", "string", "type", "name", "(", ")", "{", "return", "\"", "type", "\"", ";", "}" ]
[ "generate", "an", "exception", "announcing", "a", "failure", "to", "create", "the", "service" ]
[ "protected", "service", "launch", "exception", "service", "creation", "failure", "(", "exception", "exception", ")", "{", "return", "new", "service", "launch", "exception", "(", "exit", "service", "creation", "failure", ",", "exception", ")", ";", "}" ]
[ "optional", ",", "user", "name" ]
[ "public", "builder", "set", "username", "(", "string", "username", ")", "{", "this", "username", "=", "username", ";", "return", "this", ";", "}" ]
[ "loads", "and", "validates", "the", "mesos", "scheduler", "configuration" ]
[ "public", "static", "mesos", "configuration", "create", "mesos", "scheduler", "configuration", "(", "configuration", "flink", "config", ",", "string", "hostname", ")", "{", "protos", "framework", "info", "builder", "framework", "info", "=", "protos", "framework", "info", "new", "builder", "(", ")", "set", "hostname", "(", "hostname", ")", ";", "protos", "credential", "builder", "credential", "=", "null", ";", "if", "(", "!", "flink", "config", "contains", "(", "mesos", "options", "master", "url", ")", ")", "{", "throw", "new", "illegal", "configuration", "exception", "(", "mesos", "options", "master", "url", "key", "(", ")", "+", "\"", "must", "be", "configured", "\"", ")", ";", "}", "string", "master", "url", "=", "flink", "config", "get", "string", "(", "mesos", "options", "master", "url", ")", ";", "duration", "failover", "timeout", "=", "finite", "duration", "apply", "(", "flink", "config", "get", "integer", "(", "mesos", "options", "failover", "timeout", "seconds", ")", ",", "time", "unit", "seconds", ")", ";", "framework", "info", "set", "failover", "timeout", "(", "failover", "timeout", "to", "seconds", "(", ")", ")", ";", "framework", "info", "set", "name", "(", "flink", "config", "get", "string", "(", "mesos", "options", "resourcemanager", "framework", "name", ")", ")", ";", "framework", "info", "set", "role", "(", "flink", "config", "get", "string", "(", "mesos", "options", "resourcemanager", "framework", "role", ")", ")", ";", "framework", "info", "set", "user", "(", "flink", "config", "get", "string", "(", "mesos", "options", "resourcemanager", "framework", "user", ")", ")", ";", "if", "(", "flink", "config", "contains", "(", "mesos", "options", "resourcemanager", "framework", "principal", ")", ")", "{", "framework", "info", "set", "principal", "(", "flink", "config", "get", "string", "(", "mesos", "options", "resourcemanager", "framework", "principal", ")", ")", ";", "credential", "=", "protos", "credential", "new", "builder", "(", ")", ";", "credential", "set", "principal", "(", "framework", "info", "get", "principal", "(", ")", ")", ";", "/", "/", "some", "environments", "use", "a", "side", "-", "channel", "to", "communicate", "the", "secret", "to", "mesos", ",", "/", "/", "and", "thus", "don", "'", "t", "set", "the", "'", "secret", "'", "configuration", "setting", "if", "(", "flink", "config", "contains", "(", "mesos", "options", "resourcemanager", "framework", "secret", ")", ")", "{", "credential", "set", "secret", "(", "flink", "config", "get", "string", "(", "mesos", "options", "resourcemanager", "framework", "secret", ")", ")", ";", "}", "}", "mesos", "configuration", "mesos", "=", "new", "mesos", "configuration", "(", "master", "url", ",", "framework", "info", ",", "scala", "option", "apply", "(", "credential", ")", ")", ";", "return", "mesos", ";", "}" ]
[ "test", "if", "the", "values", "passed", "through", "the", "constructor", "matches", "the", "values", "fetched", "from", "the", "getters" ]
[ "public", "void", "test", "constructor", "(", ")", "{", "final", "var", "rectangle", "=", "new", "rectangle", "(", "1", ",", "2", ",", "3", ",", "4", ")", ";", "assert", "equals", "(", "1", ",", "rectangle", "get", "left", "(", ")", ")", ";", "assert", "equals", "(", "2", ",", "rectangle", "get", "top", "(", ")", ")", ";", "assert", "equals", "(", "3", ",", "rectangle", "get", "right", "(", ")", ")", ";", "assert", "equals", "(", "4", ",", "rectangle", "get", "bottom", "(", ")", ")", ";", "}" ]
[ "perform", "operations", "such", "as", "setting", "quota", ",", "deletion", "of", "files", ",", "rename", "and", "ensure", "system", "can", "apply", "edits", "log", "during", "startup" ]
[ "public", "void", "test", "edits", "log", "rename", "(", ")", "throws", "exception", "{", "distributed", "file", "system", "fs", "=", "cluster", "get", "file", "system", "(", ")", ";", "path", "src", "1", "=", "get", "test", "root", "path", "(", "fc", ",", "\"", "test", "edits", "log", "rename", "/", "srcdir", "/", "src", "1", "\"", ")", ";", "path", "dst", "1", "=", "get", "test", "root", "path", "(", "fc", ",", "\"", "test", "edits", "log", "rename", "/", "dstdir", "/", "dst", "1", "\"", ")", ";", "create", "file", "(", "src", "1", ")", ";", "fs", "mkdirs", "(", "dst", "1", "get", "parent", "(", ")", ")", ";", "create", "file", "(", "dst", "1", ")", ";", "/", "/", "set", "quota", "so", "that", "dst", "1", "parent", "cannot", "allow", "under", "it", "new", "files", "/", "directories", "fs", "set", "quota", "(", "dst", "1", "get", "parent", "(", ")", ",", "2", ",", "hdfs", "constants", "quota", "dont", "set", ")", ";", "/", "/", "free", "up", "quota", "for", "a", "subsequent", "rename", "fs", "delete", "(", "dst", "1", ",", "true", ")", ";", "rename", "(", "src", "1", ",", "dst", "1", ",", "false", ",", "true", ",", "rename", "overwrite", ")", ";", "/", "/", "restart", "the", "cluster", "and", "ensure", "the", "above", "operations", "can", "be", "/", "/", "loaded", "from", "the", "edits", "log", "restart", "cluster", "(", ")", ";", "fs", "=", "cluster", "get", "file", "system", "(", ")", ";", "src", "1", "=", "get", "test", "root", "path", "(", "fc", ",", "\"", "test", "edits", "log", "rename", "/", "srcdir", "/", "src", "1", "\"", ")", ";", "dst", "1", "=", "get", "test", "root", "path", "(", "fc", ",", "\"", "test", "edits", "log", "rename", "/", "dstdir", "/", "dst", "1", "\"", ")", ";", "assert", "assert", "false", "(", "fs", "exists", "(", "src", "1", ")", ")", ";", "/", "/", "ensure", "src", "1", "is", "already", "renamed", "assert", "assert", "true", "(", "fs", "exists", "(", "dst", "1", ")", ")", ";", "/", "/", "ensure", "rename", "dst", "exists", "}" ]
[ "executes", "the", "given", "task", "in", "a", "cpu", "thread", "pool", "at", "fix", "rate" ]
[ "public", "static", "<", "t", ">", "void", "execute", "by", "cpu", "at", "fix", "rate", "(", "final", "task", "<", "t", ">", "task", ",", "final", "long", "period", ",", "final", "time", "unit", "unit", ")", "{", "execute", "at", "fixed", "rate", "(", "get", "pool", "by", "type", "and", "priority", "(", "type", "cpu", ")", ",", "task", ",", "0", ",", "period", ",", "unit", ")", ";", "}" ]
[ "tests", "that", "reserved", "resources", "are", "prioritized" ]
[ "public", "void", "test", "reservation", "prioritization", "(", ")", "{", "mesos", "resource", "allocation", "allocation", "=", "new", "mesos", "resource", "allocation", "(", "resources", "(", "cpus", "(", "role", "a", ",", "1", "0", ")", ",", "cpus", "(", "unreserved", "role", ",", "1", "0", ")", ",", "cpus", "(", "role", "b", ",", "1", "0", ")", ")", ")", ";", "assert", "assert", "equals", "(", "resources", "(", "cpus", "(", "role", "a", ",", "1", "0", ")", ",", "cpus", "(", "role", "b", ",", "1", "0", ")", ",", "cpus", "(", "unreserved", "role", ",", "1", "0", ")", ")", ",", "allocation", "get", "remaining", "(", ")", ")", ";", "}" ]
[ "tests", "the", "mask", "all", "operands", "tool" ]
[ "public", "void", "test", "mask", "operands", "(", ")", "{", "/", "/", "first", "switch", "to", "binary", "view", "to", "make", "sure", "we", "'", "re", "testing", "for", "the", "right", "values", "set", "toggle", "button", "selected", "(", "component", ",", "\"", "binary", "view", "button", "\"", ",", "true", ")", ";", "wait", "for", "swing", "(", ")", ";", "instruction", "table", "data", "object", "cell", "0", "0", "=", "(", "instruction", "table", "data", "object", ")", "preview", "table", "get", "model", "(", ")", "get", "value", "at", "(", "0", ",", "0", ")", ";", "assert", "equals", "(", "cell", "0", "0", "get", "data", "(", ")", "trim", "(", ")", ",", "\"", "01000111", "\"", ")", ";", "instruction", "table", "data", "object", "cell", "1", "0", "=", "(", "instruction", "table", "data", "object", ")", "preview", "table", "get", "model", "(", ")", "get", "value", "at", "(", "1", ",", "0", ")", ";", "assert", "equals", "(", "cell", "1", "0", "get", "data", "(", ")", "trim", "(", ")", ",", "\"", "01010111", "\"", ")", ";", "instruction", "table", "data", "object", "cell", "2", "0", "=", "(", "instruction", "table", "data", "object", ")", "preview", "table", "get", "model", "(", ")", "get", "value", "at", "(", "2", ",", "0", ")", ";", "assert", "equals", "(", "cell", "2", "0", "get", "data", "(", ")", "trim", "(", ")", ",", "\"", "10001101", "01000101", "00001000", "\"", ")", ";", "instruction", "table", "data", "object", "cell", "3", "0", "=", "(", "instruction", "table", "data", "object", ")", "preview", "table", "get", "model", "(", ")", "get", "value", "at", "(", "3", ",", "0", ")", ";", "assert", "equals", "(", "cell", "3", "0", "get", "data", "(", ")", "trim", "(", ")", ",", "\"", "01010000", "\"", ")", ";", "instruction", "table", "data", "object", "cell", "4", "0", "=", "(", "instruction", "table", "data", "object", ")", "preview", "table", "get", "model", "(", ")", "get", "value", "at", "(", "4", ",", "0", ")", ";", "assert", "equals", "(", "cell", "4", "0", "get", "data", "(", ")", "trim", "(", ")", ",", "\"", "11111111", "01110101", "00001100", "\"", ")", ";", "instruction", "table", "data", "object", "cell", "5", "0", "=", "(", "instruction", "table", "data", "object", ")", "preview", "table", "get", "model", "(", ")", "get", "value", "at", "(", "5", ",", "0", ")", ";", "assert", "equals", "(", "cell", "5", "0", "get", "data", "(", ")", "trim", "(", ")", ",", "\"", "11101000", "10000100", "00101100", "00000000", "00000000", "\"", ")", ";", "instruction", "table", "data", "object", "cell", "6", "0", "=", "(", "instruction", "table", "data", "object", ")", "preview", "table", "get", "model", "(", ")", "get", "value", "at", "(", "6", ",", "0", ")", ";", "assert", "equals", "(", "cell", "6", "0", "get", "data", "(", ")", "trim", "(", ")", ",", "\"", "10000011", "11000100", "00001100", "\"", ")", ";", "instruction", "table", "data", "object", "cell", "7", "0", "=", "(", "instruction", "table", "data", "object", ")", "preview", "table", "get", "model", "(", ")", "get", "value", "at", "(", "7", ",", "0", ")", ";", "assert", "equals", "(", "cell", "7", "0", "get", "data", "(", ")", "trim", "(", ")", ",", "\"", "10001001", "01000101", "11111100", "\"", ")", ";", "/", "/", "now", "activate", "the", "address", "mask", "tool", ",", "which", "should", "mask", "out", "the", "last", "param", "/", "/", "of", "the", "add", "instruction", "press", "button", "by", "name", "(", "component", ",", "\"", "mask", "operands", "button", "\"", ")", ";", "/", "/", "wait", "for", "the", "button", "select", "to", "finish", "dialog", "wait", "for", "current", "task", "(", ")", ";", "/", "/", "now", "grab", "the", "preview", "panel", "content", "and", "check", "again", "cell", "0", "0", "=", "(", "instruction", "table", "data", "object", ")", "preview", "table", "get", "model", "(", ")", "get", "value", "at", "(", "0", ",", "0", ")", ";", "assert", "equals", "(", "cell", "0", "0", "get", "data", "(", ")", "trim", "(", ")", ",", "\"", "01000", "\"", ")", ";", "cell", "1", "0", "=", "(", "instruction", "table", "data", "object", ")", "preview", "table", "get", "model", "(", ")", "get", "value", "at", "(", "1", ",", "0", ")", ";", "assert", "equals", "(", "cell", "1", "0", "get", "data", "(", ")", "trim", "(", ")", ",", "\"", "01010", "\"", ")", ";", "cell", "2", "0", "=", "(", "instruction", "table", "data", "object", ")", "preview", "table", "get", "model", "(", ")", "get", "value", "at", "(", "2", ",", "0", ")", ";", "assert", "equals", "(", "cell", "2", "0", "get", "data", "(", ")", "trim", "(", ")", ",", "\"", "10001101", "01", "\"", ")", ";", "cell", "3", "0", "=", "(", "instruction", "table", "data", "object", ")", "preview", "table", "get", "model", "(", ")", "get", "value", "at", "(", "3", ",", "0", ")", ";", "assert", "equals", "(", "cell", "3", "0", "get", "data", "(", ")", "trim", "(", ")", ",", "\"", "01010", "\"", ")", ";", "cell", "4", "0", "=", "(", "instruction", "table", "data", "object", ")", "preview", "table", "get", "model", "(", ")", "get", "value", "at", "(", "4", ",", "0", ")", ";", "assert", "equals", "(", "cell", "4", "0", "get", "data", "(", ")", "trim", "(", ")", ",", "\"", "11111111", "01110", "\"", ")", ";", "cell", "5", "0", "=", "(", "instruction", "table", "data", "object", ")", "preview", "table", "get", "model", "(", ")", "get", "value", "at", "(", "5", ",", "0", ")", ";", "assert", "equals", "(", "cell", "5", "0", "get", "data", "(", ")", "trim", "(", ")", ",", "\"", "11101000", "\"", ")", ";", "cell", "6", "0", "=", "(", "instruction", "table", "data", "object", ")", "preview", "table", "get", "model", "(", ")", "get", "value", "at", "(", "6", ",", "0", ")", ";", "assert", "equals", "(", "cell", "6", "0", "get", "data", "(", ")", "trim", "(", ")", ",", "\"", "10000011", "11000", "\"", ")", ";", "cell", "7", "0", "=", "(", "instruction", "table", "data", "object", ")", "preview", "table", "get", "model", "(", ")", "get", "value", "at", "(", "7", ",", "0", ")", ";", "assert", "equals", "(", "cell", "7", "0", "get", "data", "(", ")", "trim", "(", ")", ",", "\"", "10001001", "01", "\"", ")", ";", "}" ]
[ "convert", "the", "given", "object", "to", "string", "with", "each", "line", "indented", "by", "4", "spaces", "(", "except", "the", "first", "line", ")" ]
[ "private", "string", "to", "indented", "string", "(", "object", "o", ")", "{", "if", "(", "o", "=", "=", "null", ")", "{", "return", "\"", "null", "\"", ";", "}", "return", "o", "to", "string", "(", ")", "replace", "(", "\"", "\\", "n", "\"", ",", "\"", "\\", "n", "\"", ")", ";", "}" ]
[ "register", "a", "listener", "that", "will", "be", "called", "when", "this", "model", "is", "bound", "to", "a", "view", "the", "listener", "will", "contribute", "to", "this", "model", "'", "s", "hash", "code", "state", "per", "the", "{", "@", "link", "com", "airbnb", "epoxy", "epoxy", "attribute", "option", "#", "do", "not", "hash", "}", "rules", "you", "may", "clear", "the", "listener", "by", "setting", "a", "null", "value", ",", "or", "by", "calling", "{", "@", "link", "#", "reset", "(", ")", "}" ]
[ "public", "model", "with", "private", "view", "click", "listener", "on", "bind", "(", "on", "model", "bound", "listener", "<", "model", "with", "private", "view", "click", "listener", ",", "object", ">", "listener", ")", "{", "on", "mutation", "(", ")", ";", "this", "on", "model", "bound", "listener", "epoxy", "generated", "model", "=", "listener", ";", "return", "this", ";", "}" ]
[ "get", "int", "3", "2", "minimum", ":", "20", "maximum", ":", "200" ]
[ "public", "integer", "get", "int", "3", "2", "(", ")", "{", "return", "int", "3", "2", ";", "}" ]
[ "invisible", "injection", "of", "zookeeper", "client", "via", "iocspi" ]
[ "public", "void", "set", "zookeeper", "transporter", "(", "zookeeper", "transporter", "zookeeper", "transporter", ")", "{", "this", "zookeeper", "transporter", "=", "zookeeper", "transporter", ";", "}" ]
[ "tgt", "storage", "timeout" ]
[ "default", "function", "<", "cas", "configuration", "properties", ",", "integer", ">", "get", "ticket", "granting", "ticket", "storage", "timeout", "(", ")", "{", "return", "p", "-", ">", "p", "get", "ticket", "(", ")", "get", "tgt", "(", ")", "get", "max", "time", "to", "live", "in", "seconds", "(", ")", ";", "}" ]
[ "model", "tests", "for", "tag" ]
[ "public", "void", "test", "tag", "(", ")", "{", "/", "/", "todo", ":", "test", "tag", "}" ]
[ "method", "set", "program", "tree", "view" ]
[ "void", "set", "program", "tree", "view", "(", "program", "dn", "d", "tree", "tree", ")", "{", "this", "tree", "=", "tree", ";", "tree", "model", "=", "(", "default", "tree", "model", ")", "tree", "get", "model", "(", ")", ";", "}" ]
[ "sets", "whether", "the", "task", "can", "be", "cancelled", "the", "default", "is", "<", "code", ">", "true", "<", "code", ">" ]
[ "public", "task", "builder", "set", "can", "cancel", "(", "boolean", "can", "cancel", ")", "{", "this", "can", "cancel", "=", "can", "cancel", ";", "return", "this", ";", "}" ]
[ "should", "be", "called", "when", "the", "inputs", "of", "the", "action", "become", "known", ",", "that", "is", ",", "either", "during", "{", "@", "link", "#", "discover", "inputs", "(", "action", "execution", "context", ")", "}", "or", "during", "{", "@", "link", "#", "execute", "(", "action", "execution", "context", ")", "}", "when", "an", "action", "discovers", "inputs", ",", "it", "must", "have", "been", "called", "by", "the", "time", "{", "@", "code", "#", "execute", "(", ")", "}", "returns", "it", "can", "be", "called", "both", "during", "{", "@", "code", "discover", "inputs", "}", "and", "during", "{", "@", "code", "execute", "(", ")", "}", "in", "addition", "to", "being", "called", "from", "action", "implementations", ",", "it", "will", "also", "be", "called", "by", "bazel", "itself", "when", "an", "action", "is", "loaded", "from", "the", "on", "-", "disk", "action", "cache" ]
[ "public", "synchronized", "void", "update", "inputs", "(", "nested", "set", "<", "artifact", ">", "inputs", ")", "{", "preconditions", "check", "state", "(", "discovers", "inputs", "(", ")", ",", "\"", "can", "'", "t", "update", "inputs", "unless", "discovering", ":", "%", "s", "%", "s", "\"", ",", "this", ",", "inputs", ")", ";", "this", "inputs", "=", "inputs", ";", "inputs", "discovered", "=", "true", ";", "}" ]
[ "not", "providing", "support", ",", "the", "need", "to", "refresh", "is", "specified", "by", "the", "respective", "refresh", "configuration", "and", "not", "use", "it", "at", "the", "same", "time" ]
[ "public", "string", "get", "refreshable", "dataids", "(", ")", "{", "return", "null", "=", "=", "get", "shared", "configs", "(", ")", "?", "null", ":", "get", "shared", "configs", "(", ")", "stream", "(", ")", "filter", "(", "config", ":", ":", "is", "refresh", ")", "map", "(", "config", ":", ":", "get", "data", "id", ")", "collect", "(", "collectors", "joining", "(", "commas", ")", ")", ";", "}" ]
[ "test", "the", "property", "'", "name", "integer", "'" ]
[ "public", "void", "name", "integer", "test", "(", ")", "{", "/", "/", "todo", ":", "test", "name", "integer", "}" ]
[ "gets", "all", "instances", "that", "matches", "the", "given", "type" ]
[ "public", "<", "u", "extends", "t", ">", "list", "<", "u", ">", "get", "all", "(", "class", "<", "u", ">", "type", ")", "{", "list", "<", "u", ">", "r", "=", "new", "array", "list", "<", ">", "(", ")", ";", "for", "(", "t", "t", ":", "data", ")", "if", "(", "type", "is", "instance", "(", "t", ")", ")", "r", "add", "(", "type", "cast", "(", "t", ")", ")", ";", "return", "r", ";", "}" ]
[ "return", "a", "list", "of", "sid", "in", "set", "as", "string" ]
[ "private", "string", "get", "sid", "set", "string", "(", "set", "<", "long", ">", "sid", "set", ")", "{", "string", "builder", "sids", "=", "new", "string", "builder", "(", ")", ";", "iterator", "<", "long", ">", "iter", "=", "sid", "set", "iterator", "(", ")", ";", "while", "(", "iter", "has", "next", "(", ")", ")", "{", "sids", "append", "(", "iter", "next", "(", ")", ")", ";", "if", "(", "!", "iter", "has", "next", "(", ")", ")", "{", "break", ";", "}", "sids", "append", "(", "\"", ",", "\"", ")", ";", "}", "return", "sids", "to", "string", "(", ")", ";", "}" ]
[ "processes", "the", "entire", "stream", "provided", "by", "{", "@", "code", "input", "buffer", "provider", "}", "in", "chunks", "of", "{", "@", "code", "input", "buffer", "size", "}", "and", "returns", "the", "total", "number", "of", "output", "frames" ]
[ "private", "static", "long", "process", "(", "silence", "skipping", "audio", "processor", "processor", ",", "input", "buffer", "provider", "input", "buffer", "provider", ",", "int", "input", "buffer", "size", ")", "{", "int", "bytes", "per", "frame", "=", "audio", "format", "bytes", "per", "frame", ";", "processor", "flush", "(", ")", ";", "long", "total", "output", "frames", "=", "0", ";", "while", "(", "input", "buffer", "provider", "has", "remaining", "(", ")", ")", "{", "byte", "buffer", "input", "buffer", "=", "input", "buffer", "provider", "get", "next", "input", "buffer", "(", "input", "buffer", "size", ")", ";", "while", "(", "input", "buffer", "has", "remaining", "(", ")", ")", "{", "processor", "queue", "input", "(", "input", "buffer", ")", ";", "byte", "buffer", "output", "buffer", "=", "processor", "get", "output", "(", ")", ";", "total", "output", "frames", "+", "=", "output", "buffer", "remaining", "(", ")", "/", "bytes", "per", "frame", ";", "output", "buffer", "clear", "(", ")", ";", "}", "}", "processor", "queue", "end", "of", "stream", "(", ")", ";", "while", "(", "!", "processor", "is", "ended", "(", ")", ")", "{", "byte", "buffer", "output", "buffer", "=", "processor", "get", "output", "(", ")", ";", "total", "output", "frames", "+", "=", "output", "buffer", "remaining", "(", ")", "/", "bytes", "per", "frame", ";", "output", "buffer", "clear", "(", ")", ";", "}", "return", "total", "output", "frames", ";", "}" ]
[ "returns", "an", "{", "@", "link", "input", "stream", "}", "for", "reading", "from", "an", "asset", "file" ]
[ "public", "static", "input", "stream", "get", "input", "stream", "(", "context", "context", ",", "string", "file", "name", ")", "throws", "i", "o", "exception", "{", "return", "context", "get", "resources", "(", ")", "get", "assets", "(", ")", "open", "(", "file", "name", ")", ";", "}" ]
[ "removes", "all", "of", "the", "elements", "from", "this", "set", "the", "set", "will", "be", "empty", "after", "this", "call", "returns" ]
[ "public", "void", "clear", "(", ")", "{", "map", "clear", "(", ")", ";", "}" ]
[ "returns", "a", "dupswap", "opcode", "that", "is", "corrected", "for", "the", "stack", "entries", "that", "are", "present", "before", "the", "instruction", "and", "necessary", "after", "the", "instruction", "the", "returned", "integer", "opcode", "may", "contain", "multiple", "byte", "opcodes", "(", "least", "significant", "byte", "first", ")" ]
[ "private", "int", "fix", "dup", "swap", "(", "int", "instruction", "offset", ",", "byte", "dup", "swap", "opcode", ",", "int", "top", "before", ",", "int", "top", "after", ")", "{", "switch", "(", "dup", "swap", "opcode", ")", "{", "case", "instruction", "constants", "op", "dup", ":", "return", "fixed", "dup", "(", "instruction", "offset", ",", "top", "before", ",", "top", "after", ")", ";", "case", "instruction", "constants", "op", "dup", "x1", ":", "return", "fixed", "dup", "x", "1", "(", "instruction", "offset", ",", "top", "before", ",", "top", "after", ")", ";", "case", "instruction", "constants", "op", "dup", "x2", ":", "return", "fixed", "dup", "x", "2", "(", "instruction", "offset", ",", "top", "before", ",", "top", "after", ")", ";", "case", "instruction", "constants", "op", "dup2", ":", "return", "fixed", "dup", "2", "(", "instruction", "offset", ",", "top", "before", ",", "top", "after", ")", ";", "case", "instruction", "constants", "op", "dup2", "x1", ":", "return", "fixed", "dup", "2", "x", "1", "(", "instruction", "offset", ",", "top", "before", ",", "top", "after", ")", ";", "case", "instruction", "constants", "op", "dup2", "x2", ":", "return", "fixed", "dup", "2", "x", "2", "(", "instruction", "offset", ",", "top", "before", ",", "top", "after", ")", ";", "case", "instruction", "constants", "op", "swap", ":", "return", "fixed", "swap", "(", "instruction", "offset", ",", "top", "before", ",", "top", "after", ")", ";", "default", ":", "throw", "new", "illegal", "argument", "exception", "(", "\"", "not", "a", "dup", "/", "swap", "opcode", "[", "\"", "+", "dup", "swap", "opcode", "+", "\"", "]", "\"", ")", ";", "}", "}" ]
[ "writes", "a", "map", "header" ]
[ "public", "void", "write", "map", "header", "(", "int", "length", ")", "throws", "i", "o", "exception", "{", "out", "write", "(", "type", "map", "code", ")", ";", "out", "write", "int", "(", "length", ")", ";", "}" ]
[ "call", "refresh", "on", "the", "indexes", "we", "'", "ve", "written", "to", "after", "the", "request", "ends", "?" ]
[ "public", "boolean", "is", "refresh", "(", ")", "{", "return", "refresh", ";", "}" ]
[ "get", "the", "indicator", "of", "whether", "or", "not", "the", "default", "application", "lifetime", "was", "set", "by", "a", "config", "property", "or", "was", "calculated", "by", "the", "capacity", "scheduler" ]
[ "boolean", "get", "default", "app", "lifetime", "was", "specified", "in", "config", "(", ")", ";" ]
[ "a", "list", "of", "alternate", "names", "to", "verify", "the", "subject", "identity", "in", "the", "certificate", "presented", "by", "the", "client", "<", "code", ">", "repeated", "string", "subject", "alt", "names", "=", "6", ";", "<", "code", ">" ]
[ "public", "int", "get", "subject", "alt", "names", "count", "(", ")", "{", "return", "subject", "alt", "names", "size", "(", ")", ";", "}" ]
[ "create", "a", "file", "with", "a", "length", "of", "<", "code", ">", "file", "size", "<", "code", ">", "the", "file", "is", "filled", "with", "'", "a", "'" ]
[ "private", "void", "gen", "file", "(", "path", "file", ",", "long", "file", "size", ")", "throws", "i", "o", "exception", "{", "long", "start", "timestamp", "=", "time", "monotonic", "now", "(", ")", ";", "f", "s", "data", "output", "stream", "out", "=", "null", ";", "boolean", "is", "out", "closed", "=", "false", ";", "try", "{", "out", "=", "fc", "create", "(", "file", ",", "enum", "set", "of", "(", "create", "flag", "create", ",", "create", "flag", "overwrite", ")", ",", "create", "opts", "create", "parent", "(", ")", ",", "create", "opts", "buffer", "size", "(", "4096", ")", ",", "create", "opts", "rep", "fac", "(", "(", "short", ")", "3", ")", ")", ";", "execution", "time", "[", "create", "]", "+", "=", "(", "time", "monotonic", "now", "(", ")", "-", "start", "timestamp", ")", ";", "num", "of", "ops", "[", "create", "]", "+", "+", ";", "long", "i", "=", "file", "size", ";", "while", "(", "i", ">", "0", ")", "{", "long", "s", "=", "math", "min", "(", "file", "size", ",", "write", "contents", "length", ")", ";", "out", "write", "(", "write", "contents", ",", "0", ",", "(", "int", ")", "s", ")", ";", "i", "-", "=", "s", ";", "}", "start", "time", "=", "time", "monotonic", "now", "(", ")", ";", "out", "close", "(", ")", ";", "execution", "time", "[", "write", "close", "]", "+", "=", "(", "time", "monotonic", "now", "(", ")", "-", "start", "time", ")", ";", "num", "of", "ops", "[", "write", "close", "]", "+", "+", ";", "is", "out", "closed", "=", "true", ";", "}", "finally", "{", "if", "(", "!", "is", "out", "closed", "&", "&", "out", "!", "=", "null", ")", "{", "out", "close", "(", ")", ";", "}", "}", "}" ]
[ "where", "the", "attribute", "was", "defined", "within", "the", "&", "lt", ";", "declare", "-", "styleable", "&", "gt", ";", "block", "<", "code", ">", "optional", "aapt", "pb", "source", "source", "=", "1", ";", "<", "code", ">" ]
[ "private", "void", "clear", "source", "(", ")", "{", "source", "=", "null", ";", "bit", "field", "0", "=", "(", "bit", "field", "0", "&", "~", "0x", "0", "0", "0", "0", "0", "0", "0", "1", ")", ";", "}" ]
[ "returns", "a", "{", "@", "link", "string", "}", "representation", "of", "this", "{", "@", "link", "circle", "}", "of", "the", "form", "{", "@", "code", "x", ",", "y", ",", "radius", "}" ]
[ "public", "string", "to", "string", "(", ")", "{", "return", "x", "+", "\"", ",", "\"", "+", "y", "+", "\"", ",", "\"", "+", "radius", ";", "}" ]
[ "return", "an", "<", "code", ">", "openssl", "cipher", "<", "code", ">", "object", "that", "implements", "the", "specified", "transformation" ]
[ "public", "static", "openssl", "cipher", "get", "instance", "(", "string", "transformation", ",", "string", "engine", "id", ")", "throws", "no", "such", "algorithm", "exception", ",", "no", "such", "padding", "exception", "{", "transform", "transform", "=", "tokenize", "transformation", "(", "transformation", ")", ";", "int", "alg", "mode", "=", "alg", "mode", "get", "(", "transform", "alg", ",", "transform", "mode", ")", ";", "int", "padding", "=", "padding", "get", "(", "transform", "padding", ")", ";", "long", "context", "=", "init", "context", "(", "alg", "mode", ",", "padding", ")", ";", "long", "engine", "=", "(", "engine", "id", "!", "=", "null", ")", "?", "init", "engine", "(", "engine", "id", ")", ":", "0", ";", "return", "new", "openssl", "cipher", "(", "context", ",", "alg", "mode", ",", "padding", ",", "engine", ")", ";", "}" ]
[ "add", "an", "optional", "detail" ]
[ "public", "result", "builder", "with", "detail", "(", "string", "key", ",", "object", "data", ")", "{", "if", "(", "this", "details", "=", "=", "null", ")", "{", "this", "details", "=", "new", "linked", "hash", "map", "<", ">", "(", ")", ";", "}", "this", "details", "put", "(", "key", ",", "data", ")", ";", "return", "this", ";", "}" ]
[ "sets", "the", "state", "if", "the", "current", "state", "{", "@", "code", "equals", "(", ")", "}", "the", "specified", "expected", "state", "if", "the", "new", "state", "does", "not", "{", "@", "code", "equals", "(", ")", "}", "the", "current", "state", ",", "listeners", "and", "waiters", "will", "be", "notified" ]
[ "public", "boolean", "compare", "and", "set", "(", "t", "expected", "state", ",", "t", "new", "state", ")", "{", "check", "state", "(", "!", "thread", "holds", "lock", "(", "lock", ")", ",", "\"", "can", "not", "set", "state", "while", "holding", "the", "lock", "\"", ")", ";", "require", "non", "null", "(", "expected", "state", ",", "\"", "expected", "state", "is", "null", "\"", ")", ";", "require", "non", "null", "(", "new", "state", ",", "\"", "new", "state", "is", "null", "\"", ")", ";", "future", "state", "change", "<", "t", ">", "future", "state", "change", ";", "immutable", "list", "<", "state", "change", "listener", "<", "t", ">", ">", "state", "change", "listeners", ";", "synchronized", "(", "lock", ")", "{", "if", "(", "!", "state", "equals", "(", "expected", "state", ")", ")", "{", "return", "false", ";", "}", "/", "/", "change", "to", "same", "state", "is", "not", "a", "change", ",", "and", "does", "not", "notify", "the", "notify", "listeners", "if", "(", "state", "equals", "(", "new", "state", ")", ")", "{", "return", "false", ";", "}", "check", "state", "(", "!", "is", "terminal", "state", "(", "state", ")", ",", "\"", "%", "s", "can", "not", "transition", "from", "%", "s", "to", "%", "s", "\"", ",", "name", ",", "state", ",", "new", "state", ")", ";", "state", "=", "new", "state", ";", "future", "state", "change", "=", "this", "future", "state", "change", "get", "and", "set", "(", "new", "future", "state", "change", "<", ">", "(", ")", ")", ";", "state", "change", "listeners", "=", "immutable", "list", "copy", "of", "(", "this", "state", "change", "listeners", ")", ";", "/", "/", "if", "we", "are", "now", "in", "a", "terminal", "state", ",", "free", "the", "listeners", "since", "this", "will", "be", "the", "last", "notification", "if", "(", "is", "terminal", "state", "(", "state", ")", ")", "{", "this", "state", "change", "listeners", "clear", "(", ")", ";", "}", "}", "fire", "state", "changed", "(", "new", "state", ",", "future", "state", "change", ",", "state", "change", "listeners", ")", ";", "return", "true", ";", "}" ]
[ "read", "rest", "of", "packet", "string", "from", "byte", "buffers" ]
[ "public", "string", "read", "string", "e", "o", "f", "(", ")", "{", "byte", "[", "]", "result", "=", "new", "byte", "[", "byte", "buf", "readable", "bytes", "(", ")", "]", ";", "byte", "buf", "read", "bytes", "(", "result", ")", ";", "return", "new", "string", "(", "result", ")", ";", "}" ]
[ "gets", "the", "number", "of", "try", "block", "map", "entries", "for", "this", "function", "information", "data" ]
[ "public", "int", "get", "try", "block", "count", "(", ")", "throws", "invalid", "data", "type", "exception", "{", "check", "validity", "(", ")", ";", "/", "/", "component", "3", "is", "number", "of", "try", "block", "records", "return", "e", "h", "data", "type", "utilities", "get", "count", "(", "get", "data", "type", "(", ")", ",", "try", "block", "count", "ordinal", ",", "get", "mem", "buffer", "(", ")", ")", ";", "}" ]
[ "unwraps", "a", "command", "that", "was", "previously", "wrapped", "by", "{", "@", "link", "#", "preserve", "context", "(", "runnable", ")", "}" ]
[ "public", "runnable", "unwrap", "(", "runnable", "command", ")", "{", "if", "(", "command", "instanceof", "wrapped", "runnable", ")", "{", "return", "(", "(", "wrapped", "runnable", ")", "command", ")", "unwrap", "(", ")", ";", "}", "return", "command", ";", "}" ]
[ "calculates", "the", "preferred", "locations", "based", "on", "the", "location", "preference", "constraint" ]
[ "public", "completable", "future", "<", "collection", "<", "task", "manager", "location", ">", ">", "calculate", "preferred", "locations", "(", "location", "preference", "constraint", "location", "preference", "constraint", ")", "{", "final", "collection", "<", "completable", "future", "<", "task", "manager", "location", ">", ">", "preferred", "location", "futures", "=", "get", "vertex", "(", ")", "get", "preferred", "locations", "(", ")", ";", "final", "completable", "future", "<", "collection", "<", "task", "manager", "location", ">", ">", "preferred", "locations", "future", ";", "switch", "(", "location", "preference", "constraint", ")", "{", "case", "all", ":", "preferred", "locations", "future", "=", "future", "utils", "combine", "all", "(", "preferred", "location", "futures", ")", ";", "break", ";", "case", "any", ":", "final", "array", "list", "<", "task", "manager", "location", ">", "completed", "task", "manager", "locations", "=", "new", "array", "list", "<", ">", "(", "preferred", "location", "futures", "size", "(", ")", ")", ";", "for", "(", "completable", "future", "<", "task", "manager", "location", ">", "preferred", "location", "future", ":", "preferred", "location", "futures", ")", "{", "if", "(", "preferred", "location", "future", "is", "done", "(", ")", "&", "&", "!", "preferred", "location", "future", "is", "completed", "exceptionally", "(", ")", ")", "{", "final", "task", "manager", "location", "task", "manager", "location", "=", "preferred", "location", "future", "get", "now", "(", "null", ")", ";", "if", "(", "task", "manager", "location", "=", "=", "null", ")", "{", "throw", "new", "flink", "runtime", "exception", "(", "\"", "task", "manager", "location", "future", "was", "completed", "with", "null", "this", "indicates", "a", "programming", "bug", "\"", ")", ";", "}", "completed", "task", "manager", "locations", "add", "(", "task", "manager", "location", ")", ";", "}", "}", "preferred", "locations", "future", "=", "completable", "future", "completed", "future", "(", "completed", "task", "manager", "locations", ")", ";", "break", ";", "default", ":", "throw", "new", "runtime", "exception", "(", "\"", "unknown", "location", "preference", "constraint", "\"", "+", "location", "preference", "constraint", "+", "'", "'", ")", ";", "}", "return", "preferred", "locations", "future", ";", "}" ]
[ "returns", "whether", "the", "given", "{", "@", "link", "i", "o", "exception", "}", "was", "caused", "by", "a", "{", "@", "link", "data", "source", "exception", "}", "whose", "{", "@", "link", "#", "reason", "}", "is", "{", "@", "link", "#", "position", "out", "of", "range", "}", "in", "its", "cause", "stack" ]
[ "public", "static", "boolean", "is", "caused", "by", "position", "out", "of", "range", "(", "i", "o", "exception", "e", ")", "{", "@", "nullable", "throwable", "cause", "=", "e", ";", "while", "(", "cause", "!", "=", "null", ")", "{", "if", "(", "cause", "instanceof", "data", "source", "exception", ")", "{", "int", "reason", "=", "(", "(", "data", "source", "exception", ")", "cause", ")", "reason", ";", "if", "(", "reason", "=", "=", "data", "source", "exception", "position", "out", "of", "range", ")", "{", "return", "true", ";", "}", "}", "cause", "=", "cause", "get", "cause", "(", ")", ";", "}", "return", "false", ";", "}" ]
[ "request", "the", "{", "@", "link", "job", "status", "}", "of", "the", "given", "job" ]
[ "default", "completable", "future", "<", "job", "status", ">", "request", "job", "status", "(", "job", "i", "d", "job", "id", ",", "@", "rpc", "timeout", "time", "timeout", ")", "{", "throw", "new", "unsupported", "operation", "exception", "(", ")", ";", "}" ]
[ "shutdown", "the", "client" ]
[ "public", "void", "shutdown", "(", ")", "{", "if", "(", "this", "connection", "manager", "!", "=", "null", ")", "{", "this", "connection", "manager", "close", "(", ")", ";", "}", "if", "(", "this", "executor", "service", "!", "=", "null", ")", "{", "this", "executor", "service", "shutdown", "now", "(", ")", ";", "}", "if", "(", "this", "router", "rpc", "fairness", "policy", "controller", "!", "=", "null", ")", "{", "this", "router", "rpc", "fairness", "policy", "controller", "shutdown", "(", ")", ";", "}", "}" ]
[ "resume", "outer", "transaction", "after", "inner", "transaction", "begin", "failed" ]
[ "private", "void", "resume", "after", "begin", "exception", "(", "object", "transaction", ",", "@", "nullable", "suspended", "resources", "holder", "suspended", "resources", ",", "throwable", "begin", "ex", ")", "{", "try", "{", "resume", "(", "transaction", ",", "suspended", "resources", ")", ";", "}", "catch", "(", "runtime", "exception", "|", "error", "resume", "ex", ")", "{", "string", "ex", "message", "=", "\"", "inner", "transaction", "begin", "exception", "overridden", "by", "outer", "transaction", "resume", "exception", "\"", ";", "logger", "error", "(", "ex", "message", ",", "begin", "ex", ")", ";", "throw", "resume", "ex", ";", "}", "}" ]
[ "{", "@", "inherit", "doc", "}", "records", "the", "number", "of", "times", "abfs", "output", "stream", "try", "to", "remove", "the", "completed", "write", "operations", "from", "the", "beginning", "of", "write", "operation", "task", "queue" ]
[ "public", "void", "queue", "shrunk", "(", ")", "{", "io", "statistics", "store", "increment", "counter", "(", "stream", "statistic", "names", "queue", "shrunk", "ops", ")", ";", "}" ]
[ "tests", "edit", "log", "file", "output", "stream", "doesn", "'", "t", "throw", "null", "pointer", "exception", "on", "being", "abortabort", "sequence", "see", "hdfs", "-", "2011" ]
[ "public", "void", "test", "edit", "log", "file", "output", "stream", "abort", "abort", "(", ")", "throws", "i", "o", "exception", "{", "/", "/", "abort", "after", "a", "close", "should", "just", "ignore", "edit", "log", "file", "output", "stream", "edit", "log", "stream", "=", "null", ";", "try", "{", "edit", "log", "stream", "=", "new", "edit", "log", "file", "output", "stream", "(", "conf", ",", "test", "edits", ",", "0", ")", ";", "edit", "log", "stream", "abort", "(", ")", ";", "edit", "log", "stream", "abort", "(", ")", ";", "}", "finally", "{", "i", "o", "utils", "cleanup", "(", "null", ",", "edit", "log", "stream", ")", ";", "}", "}" ]
[ "compile", "a", "sort" ]
[ "public", "abstract", "optional", "<", "sort", "and", "formats", ">", "build", "sort", "(", "list", "<", "sort", "builder", "<", "?", ">", ">", "sort", "builders", ")", "throws", "i", "o", "exception", ";" ]
[ "returns", "true", "if", "the", "module", "will", "arrange", "for", "a", "{", "@", "code", "build", "metrics", "event", "}", "to", "be", "posted", "after", "the", "build", "completes", "the", "blaze", "runtime", "ensures", "that", "it", "has", "exactly", "one", "module", "for", "which", "this", "method", "returns", "true", ",", "substituting", "its", "own", "module", "if", "none", "is", "supplied", "explicitly", "it", "is", "an", "error", "if", "multiple", "modules", "return", "true" ]
[ "public", "boolean", "posts", "build", "metrics", "event", "(", ")", "{", "return", "false", ";", "}" ]
[ "generates", "a", "persistent", "id", "based", "on", "some", "algorithm", "plus", "the", "principal" ]
[ "default", "string", "generate", "(", "final", "string", "principal", ",", "final", "service", "service", ")", "{", "return", "generate", "(", "principal", ",", "service", "get", "id", "(", ")", ")", ";", "}" ]
[ "returns", "the", "index", "settings", "for", "this", "context", "this", "might", "return", "null", "if", "the", "context", "has", "not", "index", "scope" ]
[ "public", "index", "settings", "get", "index", "settings", "(", ")", "{", "return", "index", "settings", ";", "}" ]
[ "get", "my", "number" ]
[ "public", "big", "decimal", "get", "my", "number", "(", ")", "{", "return", "my", "number", ";", "}" ]
[ "executes", "a", "reindex", "request", "see", "<", "a", "href", "=", "\"", "https", ":", "www", "elastic", "coguideenelasticsearchreferencecurrentdocs", "-", "reindex", "html", "\"", ">", "reindex", "api", "on", "elastic", "co" ]
[ "public", "final", "bulk", "by", "scroll", "response", "reindex", "(", "reindex", "request", "reindex", "request", ",", "request", "options", "options", ")", "throws", "i", "o", "exception", "{", "return", "perform", "request", "and", "parse", "entity", "(", "reindex", "request", ",", "request", "converters", ":", ":", "reindex", ",", "options", ",", "bulk", "by", "scroll", "response", ":", ":", "from", "x", "content", ",", "singleton", "(", "409", ")", ")", ";", "}" ]
[ "synchronously", "gets", "all", "numbers", "of", "children", "nodes", "under", "a", "specific", "path" ]
[ "public", "int", "get", "all", "children", "number", "(", "final", "string", "path", ")", "throws", "keeper", "exception", ",", "interrupted", "exception", "{", "final", "string", "client", "path", "=", "path", ";", "path", "utils", "validate", "path", "(", "client", "path", ")", ";", "final", "string", "server", "path", "=", "prepend", "chroot", "(", "client", "path", ")", ";", "request", "header", "h", "=", "new", "request", "header", "(", ")", ";", "h", "set", "type", "(", "zoo", "defs", "op", "code", "get", "all", "children", "number", ")", ";", "get", "all", "children", "number", "request", "request", "=", "new", "get", "all", "children", "number", "request", "(", "server", "path", ")", ";", "get", "all", "children", "number", "response", "response", "=", "new", "get", "all", "children", "number", "response", "(", ")", ";", "reply", "header", "r", "=", "cnxn", "submit", "request", "(", "h", ",", "request", ",", "response", ",", "null", ")", ";", "if", "(", "r", "get", "err", "(", ")", "!", "=", "0", ")", "{", "throw", "keeper", "exception", "create", "(", "keeper", "exception", "code", "get", "(", "r", "get", "err", "(", ")", ")", ",", "client", "path", ")", ";", "}", "return", "response", "get", "total", "number", "(", ")", ";", "}" ]
[ "set", "the", "name", "of", "the", "connection", "pool", "this", "is", "primarily", "used", "for", "the", "m", "bean", "to", "uniquely", "identify", "the", "pool", "configuration" ]
[ "public", "void", "set", "pool", "name", "(", "string", "pool", "name", ")", "{", "check", "if", "sealed", "(", ")", ";", "this", "pool", "name", "=", "pool", "name", ";", "}" ]
[ "save", "current", "image", "with", "applied", "filter", "to", "pictures", "it", "will", "be", "stored", "on", "the", "default", "picture", "folder", "on", "the", "phone", "below", "the", "given", "folder", "name", "and", "file", "name", "<", "br", ">", "this", "method", "is", "async", "and", "will", "notify", "when", "the", "image", "was", "saved", "through", "the", "listener" ]
[ "public", "void", "save", "to", "pictures", "(", "final", "string", "folder", "name", ",", "final", "string", "file", "name", ",", "final", "on", "picture", "saved", "listener", "listener", ")", "{", "new", "save", "task", "(", "folder", "name", ",", "file", "name", ",", "listener", ")", "execute", "on", "executor", "(", "async", "task", "thread", "pool", "executor", ")", ";", "}" ]
[ "test", "the", "property", "'", "pet", "id", "'" ]
[ "public", "void", "pet", "id", "test", "(", ")", "{", "/", "/", "todo", ":", "test", "pet", "id", "}" ]
[ "returns", "the", "implicit", "port", "to", "use", "if", "no", "port", "was", "specified", "explicitly", "by", "the", "user" ]
[ "int", "get", "default", "port", "(", ")", ";" ]
[ "get", "fakejson", "form", "data", ":", "test", "json", "serialization", "of", "form", "data" ]
[ "default", "response", "entity", "<", "void", ">", "test", "json", "form", "data", "(", "@", "api", "param", "(", "value", "=", "\"", "field", "1", "\"", ",", "required", "=", "true", ")", "@", "valid", "@", "request", "part", "(", "value", "=", "\"", "param", "\"", ",", "required", "=", "true", ")", "string", "param", ",", "@", "api", "param", "(", "value", "=", "\"", "field", "2", "\"", ",", "required", "=", "true", ")", "@", "valid", "@", "request", "part", "(", "value", "=", "\"", "param", "2", "\"", ",", "required", "=", "true", ")", "string", "param", "2", ")", "{", "return", "get", "delegate", "(", ")", "test", "json", "form", "data", "(", "param", ",", "param", "2", ")", ";", "}" ]
[ "return", "the", "manufacturer", "of", "the", "producthardware", "e", "g", "xiaomi" ]
[ "public", "static", "string", "get", "manufacturer", "(", ")", "{", "return", "build", "manufacturer", ";", "}" ]
[ "returns", "tool", "field", "this", "is", "the", "name", "of", "the", "tool", "exactly", "as", "written", "in", "the", "xml", "being", "imported" ]
[ "public", "string", "get", "tool", "(", ")", "{", "return", "tool", ";", "}" ]
[ "get", "the", "association", "type" ]
[ "public", "int", "get", "association", "type", "(", ")", "{", "return", "association", "type", ";", "}" ]
[ "program", "entry", "point" ]
[ "public", "static", "void", "main", "(", "string", "[", "]", "args", ")", "{", "final", "var", "logger", "=", "logger", "factory", "get", "logger", "(", "app", "class", ")", ";", "var", "guard", "=", "new", "guard", "(", ")", ";", "var", "thief", "=", "new", "thief", "(", ")", ";", "/", "/", "noinspection", "constant", "conditions", "if", "(", "guard", "instanceof", "permission", ")", "{", "guard", "enter", "(", ")", ";", "}", "else", "{", "logger", "info", "(", "\"", "you", "have", "no", "permission", "to", "enter", ",", "please", "leave", "this", "area", "\"", ")", ";", "}", "/", "/", "noinspection", "constant", "conditions", "if", "(", "thief", "instanceof", "permission", ")", "{", "thief", "steal", "(", ")", ";", "}", "else", "{", "thief", "do", "nothing", "(", ")", ";", "}", "}" ]
[ "returns", "the", "path", "of", "the", "{", "@", "code", "linux", "-", "sandbox", "}", "binary", ",", "or", "null", "if", "it", "doesn", "'", "t", "exist" ]
[ "public", "static", "path", "get", "linux", "sandbox", "(", "command", "environment", "cmd", "env", ")", "{", "return", "cmd", "env", "get", "blaze", "workspace", "(", ")", "get", "bin", "tools", "(", ")", "get", "embedded", "path", "(", "linux", "sandbox", ")", ";", "}" ]
[ "find", "a", "cached", "item", "only", "for", "{", "@", "link", "cacheable", "operation", "}", "that", "passes", "the", "condition" ]
[ "private", "cache", "value", "wrapper", "find", "cached", "item", "(", "collection", "<", "cache", "operation", "context", ">", "contexts", ")", "{", "object", "result", "=", "cache", "operation", "expression", "evaluator", "no", "result", ";", "for", "(", "cache", "operation", "context", "context", ":", "contexts", ")", "{", "if", "(", "is", "condition", "passing", "(", "context", ",", "result", ")", ")", "{", "object", "key", "=", "generate", "key", "(", "context", ",", "result", ")", ";", "cache", "value", "wrapper", "cached", "=", "find", "in", "caches", "(", "context", ",", "key", ")", ";", "if", "(", "cached", "!", "=", "null", ")", "{", "return", "cached", ";", "}", "else", "{", "if", "(", "logger", "is", "trace", "enabled", "(", ")", ")", "{", "logger", "trace", "(", "\"", "no", "cache", "entry", "for", "key", "'", "\"", "+", "key", "+", "\"", "'", "in", "cache", "(", "s", ")", "\"", "+", "context", "get", "cache", "names", "(", ")", ")", ";", "}", "}", "}", "}", "return", "null", ";", "}" ]
[ "creates", "and", "returns", "a", "byte", "array", "of", "the", "extra", "data", "list" ]
[ "public", "byte", "[", "]", "get", "bytes", "(", ")", "{", "byte", "[", "]", "extra", "=", "new", "byte", "[", "get", "length", "(", ")", "]", ";", "try", "{", "get", "byte", "stream", "(", ")", "read", "(", "extra", ")", ";", "}", "catch", "(", "i", "o", "exception", "impossible", ")", "{", "throw", "new", "assertion", "error", "(", "impossible", ")", ";", "}", "return", "extra", ";", "}" ]
[ "sets", "the", "{", "@", "link", "resource", "usage", "metrics", "}", "for", "this", "{", "@", "link", "spec", "}" ]
[ "public", "void", "set", "resource", "usage", "specification", "(", "resource", "usage", "metrics", "metrics", ")", "{", "this", "metrics", "=", "metrics", ";", "if", "(", "metrics", "!", "=", "null", ")", "{", "this", "size", "of", "resource", "usage", "metrics", "=", "metrics", "size", "(", ")", ";", "}", "else", "{", "this", "size", "of", "resource", "usage", "metrics", "=", "0", ";", "}", "}" ]
[ "constructs", "{", "@", "code", "cluster", "state", "}", "with", "the", "specified", "data", "streams", "and", "indices" ]
[ "public", "static", "cluster", "state", "get", "cluster", "state", "with", "data", "streams", "(", "list", "<", "tuple", "<", "string", ",", "integer", ">", ">", "data", "streams", ",", "list", "<", "string", ">", "index", "names", ")", "{", "return", "get", "cluster", "state", "with", "data", "streams", "(", "data", "streams", ",", "index", "names", ",", "1", ")", ";", "}" ]
[ "encode", "\"", "-", "v", "-", "\"" ]
[ "void", "encode", "v", "(", ")", "{", "/", "/", "eat", "redundant", "'", "v", "'", "if", "(", "char", "at", "(", "m", "current", "+", "1", ")", "=", "=", "'", "v", "'", ")", "{", "m", "current", "+", "=", "2", ";", "}", "else", "{", "m", "current", "+", "+", ";", "}", "metaph", "add", "exact", "approx", "(", "\"", "v", "\"", ",", "\"", "f", "\"", ")", ";", "}" ]
[ "creates", "a", "timeout", "task", "monitor", "that", "will", "be", "cancelled", "after", "the", "specified", "timeout" ]
[ "public", "static", "timeout", "task", "monitor", "timeout", "in", "(", "long", "timeout", ",", "time", "unit", "time", "unit", ")", "{", "task", "monitor", "delegate", "=", "new", "task", "monitor", "adapter", "(", "true", ")", ";", "timeout", "task", "monitor", "timeout", "monitor", "=", "timeout", "in", "(", "timeout", ",", "time", "unit", ",", "delegate", ")", ";", "return", "timeout", "monitor", ";", "}" ]
[ "create", "user", "resource", "boolean" ]
[ "protected", "boolean", "create", "user", "resource", "(", "final", "principal", "p", ",", "final", "credential", "credential", ")", "{", "val", "user", "=", "new", "user", "resource", "(", "core", "schema", "user", "descriptor", ")", ";", "this", "mapper", "map", "(", "user", ",", "p", ",", "credential", ")", ";", "return", "get", "scim", "endpoint", "(", ")", "create", "(", "user", ")", "!", "=", "null", ";", "}" ]
[ "assert", "that", "the", "given", "component", "contains", "the", "drawable", "identified", "by", "the", "provided", "drawable", "resource", "id" ]
[ "public", "litho", "view", "assert", "has", "visible", "drawable", "(", "@", "drawable", "res", "int", "drawable", "res", ")", "{", "assert", "that", "view", "tree", "(", ")", "has", "visible", "drawable", "(", "drawable", "res", ")", ";", "return", "this", ";", "}" ]
[ "set", "the", "iso", "format", "used", "to", "format", "date", "values" ]
[ "public", "void", "set", "iso", "(", "iso", "iso", ")", "{", "this", "iso", "=", "iso", ";", "}" ]
[ "returns", "the", "offset", "at", "which", "this", "file", "is", "corrupted" ]
[ "public", "long", "get", "offset", "(", ")", "{", "return", "offset", ";", "}" ]
[ "record", "a", "variable", "has", "been", "deleted", ",", "if", "audit", "history", "is", "enabled" ]
[ "void", "record", "variable", "removed", "(", "variable", "instance", "entity", "variable", ")", ";" ]
[ "test", "that", "when", "a", "service", "listener", "is", "unregistered", ",", "it", "stops", "being", "invoked" ]
[ "public", "void", "test", "service", "notifications", "stop", "once", "unregistered", "(", ")", "throws", "throwable", "{", "breakable", "service", "svc", "=", "new", "breakable", "service", "(", "false", ",", "false", ",", "false", ")", ";", "breakable", "state", "change", "listener", "listener", "=", "new", "breakable", "state", "change", "listener", "(", ")", ";", "svc", "register", "service", "listener", "(", "listener", ")", ";", "svc", "init", "(", "new", "configuration", "(", ")", ")", ";", "assert", "event", "count", "(", "listener", ",", "1", ")", ";", "svc", "unregister", "service", "listener", "(", "listener", ")", ";", "svc", "start", "(", ")", ";", "assert", "event", "count", "(", "listener", ",", "1", ")", ";", "svc", "stop", "(", ")", ";", "assert", "event", "count", "(", "listener", ",", "1", ")", ";", "svc", "stop", "(", ")", ";", "}" ]
[ "convert", "the", "given", "object", "to", "string", "with", "each", "line", "indented", "by", "4", "spaces", "(", "except", "the", "first", "line", ")" ]
[ "private", "static", "string", "to", "indented", "string", "(", "object", "o", ")", "{", "if", "(", "o", "=", "=", "null", ")", "{", "return", "\"", "null", "\"", ";", "}", "return", "o", "to", "string", "(", ")", "replace", "(", "\"", "\\", "n", "\"", ",", "\"", "\\", "n", "\"", ")", ";", "}" ]
[ "returns", "a", "string", "representation", "of", "this", "location" ]
[ "public", "string", "to", "string", "(", ")", "{", "return", "super", "to", "string", "(", ")", "+", "\"", ",", "function", "signature", "source", "=", "\"", "+", "source", ";", "}" ]
[ "utility", "function", "to", "convert", "{", "@", "link", "kinesis", "stream", "shard", "}", "into", "the", "new", "{", "@", "link", "stream", "shard", "metadata", "}", "model" ]
[ "public", "static", "stream", "shard", "metadata", "convert", "to", "stream", "shard", "metadata", "(", "kinesis", "stream", "shard", "kinesis", "stream", "shard", ")", "{", "stream", "shard", "metadata", "stream", "shard", "metadata", "=", "new", "stream", "shard", "metadata", "(", ")", ";", "stream", "shard", "metadata", "set", "stream", "name", "(", "kinesis", "stream", "shard", "get", "stream", "name", "(", ")", ")", ";", "stream", "shard", "metadata", "set", "shard", "id", "(", "kinesis", "stream", "shard", "get", "shard", "(", ")", "get", "shard", "id", "(", ")", ")", ";", "stream", "shard", "metadata", "set", "parent", "shard", "id", "(", "kinesis", "stream", "shard", "get", "shard", "(", ")", "get", "parent", "shard", "id", "(", ")", ")", ";", "stream", "shard", "metadata", "set", "adjacent", "parent", "shard", "id", "(", "kinesis", "stream", "shard", "get", "shard", "(", ")", "get", "adjacent", "parent", "shard", "id", "(", ")", ")", ";", "if", "(", "kinesis", "stream", "shard", "get", "shard", "(", ")", "get", "hash", "key", "range", "(", ")", "!", "=", "null", ")", "{", "stream", "shard", "metadata", "set", "starting", "hash", "key", "(", "kinesis", "stream", "shard", "get", "shard", "(", ")", "get", "hash", "key", "range", "(", ")", "get", "starting", "hash", "key", "(", ")", ")", ";", "stream", "shard", "metadata", "set", "ending", "hash", "key", "(", "kinesis", "stream", "shard", "get", "shard", "(", ")", "get", "hash", "key", "range", "(", ")", "get", "ending", "hash", "key", "(", ")", ")", ";", "}", "if", "(", "kinesis", "stream", "shard", "get", "shard", "(", ")", "get", "sequence", "number", "range", "(", ")", "!", "=", "null", ")", "{", "stream", "shard", "metadata", "set", "starting", "sequence", "number", "(", "kinesis", "stream", "shard", "get", "shard", "(", ")", "get", "sequence", "number", "range", "(", ")", "get", "starting", "sequence", "number", "(", ")", ")", ";", "stream", "shard", "metadata", "set", "ending", "sequence", "number", "(", "kinesis", "stream", "shard", "get", "shard", "(", ")", "get", "sequence", "number", "range", "(", ")", "get", "ending", "sequence", "number", "(", ")", ")", ";", "}", "return", "stream", "shard", "metadata", ";", "}" ]
[ "gets", "the", "size", "in", "bytes", "of", "a", "row", "in", "this", "table", "return", "the", "size", "in", "bytes", "of", "a", "row", "in", "this", "table" ]
[ "public", "int", "get", "row", "size", "(", ")", "{", "return", "get", "row", "data", "type", "(", ")", "get", "length", "(", ")", ";", "}" ]