docstring_tokens list | code_tokens list |
|---|---|
[
"<",
"p",
">",
"the",
"approximate",
"date",
"and",
"time",
"when",
"the",
"stream",
"record",
"was",
"created",
"in",
"<",
"a",
"href",
"=",
"http",
":",
"/",
"/",
"www",
"epochconverter",
"com",
"/",
">",
"unix",
"epoch",
"time",
"<",
"/",
"a",
"... | [
"this",
"approximate",
"creation",
"date",
"time",
"=",
"approximate",
"creation",
"date",
"time",
";"
] |
[
"<",
"p",
">",
"the",
"approximate",
"date",
"and",
"time",
"when",
"the",
"stream",
"record",
"was",
"created",
"in",
"<",
"a",
"href",
"=",
"http",
":",
"/",
"/",
"www",
"epochconverter",
"com",
"/",
">",
"unix",
"epoch",
"time",
"<",
"/",
"a",
"... | [
"return",
"this",
"approximate",
"creation",
"date",
"time",
";"
] |
[
"<",
"p",
">",
"the",
"approximate",
"date",
"and",
"time",
"when",
"the",
"stream",
"record",
"was",
"created",
"in",
"<",
"a",
"href",
"=",
"http",
":",
"/",
"/",
"www",
"epochconverter",
"com",
"/",
">",
"unix",
"epoch",
"time",
"<",
"/",
"a",
"... | [
"set",
"approximate",
"creation",
"date",
"time",
"(",
"approximate",
"creation",
"date",
"time",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"primary",
"key",
"attribute",
"(",
"s",
")",
"for",
"the",
"dynamo",
"d",
"b",
"item",
"that",
"was",
"modified",
"<",
"/",
"p",
">"
] | [
"return",
"keys",
";"
] |
[
"<",
"p",
">",
"the",
"primary",
"key",
"attribute",
"(",
"s",
")",
"for",
"the",
"dynamo",
"d",
"b",
"item",
"that",
"was",
"modified",
"<",
"/",
"p",
">"
] | [
"this",
"keys",
"=",
"keys",
";"
] |
[
"<",
"p",
">",
"the",
"primary",
"key",
"attribute",
"(",
"s",
")",
"for",
"the",
"dynamo",
"d",
"b",
"item",
"that",
"was",
"modified",
"<",
"/",
"p",
">"
] | [
"set",
"keys",
"(",
"keys",
")",
";",
"return",
"this",
";"
] |
[
"removes",
"all",
"the",
"entries",
"added",
"into",
"keys"
] | [
"this",
"keys",
"=",
"null",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"item",
"in",
"the",
"dynamo",
"d",
"b",
"table",
"as",
"it",
"appeared",
"after",
"it",
"was",
"modified",
"<",
"/",
"p",
">"
] | [
"return",
"new",
"image",
";"
] |
[
"<",
"p",
">",
"the",
"item",
"in",
"the",
"dynamo",
"d",
"b",
"table",
"as",
"it",
"appeared",
"after",
"it",
"was",
"modified",
"<",
"/",
"p",
">"
] | [
"this",
"new",
"image",
"=",
"new",
"image",
";"
] |
[
"<",
"p",
">",
"the",
"item",
"in",
"the",
"dynamo",
"d",
"b",
"table",
"as",
"it",
"appeared",
"after",
"it",
"was",
"modified",
"<",
"/",
"p",
">"
] | [
"set",
"new",
"image",
"(",
"new",
"image",
")",
";",
"return",
"this",
";"
] |
[
"removes",
"all",
"the",
"entries",
"added",
"into",
"new",
"image"
] | [
"this",
"new",
"image",
"=",
"null",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"item",
"in",
"the",
"dynamo",
"d",
"b",
"table",
"as",
"it",
"appeared",
"before",
"it",
"was",
"modified",
"<",
"/",
"p",
">"
] | [
"return",
"old",
"image",
";"
] |
[
"<",
"p",
">",
"the",
"item",
"in",
"the",
"dynamo",
"d",
"b",
"table",
"as",
"it",
"appeared",
"before",
"it",
"was",
"modified",
"<",
"/",
"p",
">"
] | [
"this",
"old",
"image",
"=",
"old",
"image",
";"
] |
[
"<",
"p",
">",
"the",
"item",
"in",
"the",
"dynamo",
"d",
"b",
"table",
"as",
"it",
"appeared",
"before",
"it",
"was",
"modified",
"<",
"/",
"p",
">"
] | [
"set",
"old",
"image",
"(",
"old",
"image",
")",
";",
"return",
"this",
";"
] |
[
"removes",
"all",
"the",
"entries",
"added",
"into",
"old",
"image"
] | [
"this",
"old",
"image",
"=",
"null",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"sequence",
"number",
"of",
"the",
"stream",
"record",
"<",
"/",
"p",
">"
] | [
"set",
"sequence",
"number",
"(",
"sequence",
"number",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"size",
"of",
"the",
"stream",
"record",
"in",
"bytes",
"<",
"/",
"p",
">"
] | [
"this",
"size",
"bytes",
"=",
"size",
"bytes",
";"
] |
[
"<",
"p",
">",
"the",
"size",
"of",
"the",
"stream",
"record",
"in",
"bytes",
"<",
"/",
"p",
">"
] | [
"return",
"this",
"size",
"bytes",
";"
] |
[
"<",
"p",
">",
"the",
"size",
"of",
"the",
"stream",
"record",
"in",
"bytes",
"<",
"/",
"p",
">"
] | [
"set",
"size",
"bytes",
"(",
"size",
"bytes",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"type",
"of",
"data",
"from",
"the",
"modified",
"dynamo",
"d",
"b",
"item",
"that",
"was",
"captured",
"in",
"this",
"stream",
"record",
":",
"<",
"/",
"p",
">",
"<",
"ul",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",... | [
"set",
"stream",
"view",
"type",
"(",
"stream",
"view",
"type",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"type",
"of",
"data",
"from",
"the",
"modified",
"dynamo",
"d",
"b",
"item",
"that",
"was",
"captured",
"in",
"this",
"stream",
"record",
":",
"<",
"/",
"p",
">",
"<",
"ul",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",... | [
"this",
"stream",
"view",
"type",
"=",
"stream",
"view",
"type",
"to",
"string",
"(",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"you",
"can",
"opt",
"out",
"of",
"certificate",
"transparency",
"logging",
"by",
"specifying",
"the",
"<",
"code",
">",
"disabled",
"<",
"/",
"code",
">",
"option",
"opt",
"in",
"by",
"specifying",
"<",
"code",
">",
"enabled",
"<",
"/",... | [
"this",
"certificate",
"transparency",
"logging",
"preference",
"=",
"certificate",
"transparency",
"logging",
"preference",
";"
] |
[
"<",
"p",
">",
"you",
"can",
"opt",
"out",
"of",
"certificate",
"transparency",
"logging",
"by",
"specifying",
"the",
"<",
"code",
">",
"disabled",
"<",
"/",
"code",
">",
"option",
"opt",
"in",
"by",
"specifying",
"<",
"code",
">",
"enabled",
"<",
"/",... | [
"return",
"this",
"certificate",
"transparency",
"logging",
"preference",
";"
] |
[
"<",
"p",
">",
"you",
"can",
"opt",
"out",
"of",
"certificate",
"transparency",
"logging",
"by",
"specifying",
"the",
"<",
"code",
">",
"disabled",
"<",
"/",
"code",
">",
"option",
"opt",
"in",
"by",
"specifying",
"<",
"code",
">",
"enabled",
"<",
"/",... | [
"set",
"certificate",
"transparency",
"logging",
"preference",
"(",
"certificate",
"transparency",
"logging",
"preference",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"you",
"can",
"opt",
"out",
"of",
"certificate",
"transparency",
"logging",
"by",
"specifying",
"the",
"<",
"code",
">",
"disabled",
"<",
"/",
"code",
">",
"option",
"opt",
"in",
"by",
"specifying",
"<",
"code",
">",
"enabled",
"<",
"/",... | [
"this",
"certificate",
"transparency",
"logging",
"preference",
"=",
"certificate",
"transparency",
"logging",
"preference",
"to",
"string",
"(",
")",
";",
"return",
"this",
";"
] |
[
"this",
"method",
"states",
"if",
"we",
"should",
"insert",
"a",
"custom",
"element",
"at",
"the",
"vien",
"position"
] | [
"public",
"abstract",
"boolean",
"should",
"insert",
"item",
"at",
"position",
"(",
"int",
"position",
")",
";"
] |
[
"this",
"method",
"calculates",
"how",
"many",
"elements",
"were",
"already",
"inserted",
"before",
"this",
"position",
";"
] | [
"public",
"abstract",
"int",
"item",
"inserted",
"before",
"count",
"(",
"int",
"position",
")",
";"
] |
[
"overwrite",
"the",
"register",
"adapter",
"data",
"observer",
"to",
"correctly",
"forward",
"all",
"events",
"to",
"the",
"fast",
"adapter"
] | [
"super",
"register",
"adapter",
"data",
"observer",
"(",
"observer",
")",
";",
"if",
"(",
"m",
"adapter",
"!",
"=",
"null",
")",
"{",
"m",
"adapter",
"register",
"adapter",
"data",
"observer",
"(",
"observer",
")",
";",
"}"
] |
[
"overwrite",
"the",
"unregister",
"adapter",
"data",
"observer",
"to",
"correctly",
"forward",
"all",
"events",
"to",
"the",
"fast",
"adapter"
] | [
"super",
"unregister",
"adapter",
"data",
"observer",
"(",
"observer",
")",
";",
"if",
"(",
"m",
"adapter",
"!",
"=",
"null",
")",
"{",
"m",
"adapter",
"unregister",
"adapter",
"data",
"observer",
"(",
"observer",
")",
";",
"}"
] |
[
"overwrite",
"the",
"get",
"item",
"view",
"type",
"to",
"correctly",
"return",
"the",
"value",
"from",
"the",
"fast",
"adapter"
] | [
"if",
"(",
"should",
"insert",
"item",
"at",
"position",
"(",
"position",
")",
")",
"{",
"return",
"get",
"item",
"(",
"position",
")",
"get",
"type",
"(",
")",
";",
"}",
"else",
"{",
"return",
"m",
"adapter",
"get",
"item",
"view",
"type",
"(",
"p... |
[
"overwrite",
"the",
"get",
"item",
"id",
"to",
"correctly",
"return",
"the",
"value",
"from",
"the",
"fast",
"adapter"
] | [
"if",
"(",
"should",
"insert",
"item",
"at",
"position",
"(",
"position",
")",
")",
"{",
"return",
"get",
"item",
"(",
"position",
")",
"get",
"identifier",
"(",
")",
";",
"}",
"else",
"{",
"return",
"m",
"adapter",
"get",
"item",
"id",
"(",
"positio... |
[
"make",
"sure",
"we",
"return",
"the",
"item",
"from",
"the",
"fast",
"adapter",
"so",
"we",
"retrieve",
"the",
"item",
"from",
"all",
"adapters"
] | [
"if",
"(",
"should",
"insert",
"item",
"at",
"position",
"(",
"position",
")",
")",
"{",
"return",
"m",
"items",
"get",
"(",
"item",
"inserted",
"before",
"count",
"(",
"position",
"-",
"1",
")",
")",
";",
"}",
"return",
"null",
";"
] |
[
"make",
"sure",
"we",
"return",
"the",
"count",
"from",
"the",
"fast",
"adapter",
"so",
"we",
"retrieve",
"the",
"count",
"from",
"all",
"adapters"
] | [
"int",
"item",
"count",
"=",
"m",
"adapter",
"get",
"item",
"count",
"(",
")",
";",
"return",
"item",
"count",
"+",
"item",
"inserted",
"before",
"count",
"(",
"item",
"count",
")",
";"
] |
[
"the",
"on",
"bind",
"view",
"holder",
"is",
"managed",
"by",
"the",
"fast",
"adapter",
"so",
"forward",
"this",
"correctly"
] | [
"if",
"(",
"should",
"insert",
"item",
"at",
"position",
"(",
"position",
")",
")",
"{",
"get",
"item",
"(",
"position",
")",
"bind",
"view",
"(",
"holder",
",",
"payloads",
")",
";",
"}",
"else",
"{",
"m",
"adapter",
"on",
"bind",
"view",
"holder",
... |
[
"the",
"on",
"view",
"recycled",
"is",
"managed",
"by",
"the",
"fast",
"adapter",
"so",
"forward",
"this",
"correctly"
] | [
"m",
"adapter",
"on",
"view",
"recycled",
"(",
"holder",
")",
";"
] |
[
"the",
"on",
"failed",
"to",
"recycle",
"view",
"is",
"managed",
"by",
"the",
"fast",
"adapter",
"so",
"forward",
"this",
"correctly"
] | [
"return",
"m",
"adapter",
"on",
"failed",
"to",
"recycle",
"view",
"(",
"holder",
")",
";"
] |
[
"the",
"on",
"view",
"detached",
"from",
"window",
"is",
"managed",
"by",
"the",
"fast",
"adapter",
"so",
"forward",
"this",
"correctly"
] | [
"m",
"adapter",
"on",
"view",
"detached",
"from",
"window",
"(",
"holder",
")",
";"
] |
[
"the",
"on",
"view",
"attached",
"to",
"window",
"is",
"managed",
"by",
"the",
"fast",
"adapter",
"so",
"forward",
"this",
"correctly"
] | [
"m",
"adapter",
"on",
"view",
"attached",
"to",
"window",
"(",
"holder",
")",
";"
] |
[
"<",
"p",
">",
"the",
"namespace",
"of",
"the",
"aws",
"service",
"that",
"provides",
"the",
"resource",
"or",
"<",
"code",
">",
"custom",
"-",
"resource",
"<",
"/",
"code",
">",
"for",
"a",
"resource",
"provided",
"by",
"your",
"own",
"application",
"... | [
"set",
"service",
"namespace",
"(",
"service",
"namespace",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"namespace",
"of",
"the",
"aws",
"service",
"that",
"provides",
"the",
"resource",
"or",
"<",
"code",
">",
"custom",
"-",
"resource",
"<",
"/",
"code",
">",
"for",
"a",
"resource",
"provided",
"by",
"your",
"own",
"application",
"... | [
"this",
"service",
"namespace",
"=",
"service",
"namespace",
"to",
"string",
"(",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"identifier",
"of",
"the",
"resource",
"associated",
"with",
"the",
"scalable",
"target",
"this",
"string",
"consists",
"of",
"the",
"resource",
"type",
"and",
"unique",
"identifier",
"<",
"/",
"p",
">",
"<",
"ul",
">",
"<",
"li",
... | [
"set",
"resource",
"id",
"(",
"resource",
"id",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"scalable",
"dimension",
"associated",
"with",
"the",
"scalable",
"target",
"this",
"string",
"consists",
"of",
"the",
"service",
"namespace",
"resource",
"type",
"and",
"scaling",
"property",
"<",
"/",
"p",
">",
"<",
"ul",
">",
"<",
... | [
"set",
"scalable",
"dimension",
"(",
"scalable",
"dimension",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"scalable",
"dimension",
"associated",
"with",
"the",
"scalable",
"target",
"this",
"string",
"consists",
"of",
"the",
"service",
"namespace",
"resource",
"type",
"and",
"scaling",
"property",
"<",
"/",
"p",
">",
"<",
"ul",
">",
"<",
... | [
"this",
"scalable",
"dimension",
"=",
"scalable",
"dimension",
"to",
"string",
"(",
")",
";",
"return",
"this",
";"
] |
[
"notify",
"the",
"system",
"that",
"current",
"data",
"call",
"list",
"changed",
"data",
"service",
"must",
"invoke",
"this",
"method",
"whenever",
"there",
"is",
"any",
"data",
"call",
"status",
"changed"
] | [
"synchronized",
"(",
"m",
"data",
"call",
"list",
"changed",
"callbacks",
")",
"{",
"for",
"(",
"i",
"data",
"service",
"callback",
"callback",
":",
"m",
"data",
"call",
"list",
"changed",
"callbacks",
")",
"{",
"m",
"handler",
"obtain",
"message",
"(",
... |
[
"called",
"when",
"the",
"instance",
"of",
"data",
"service",
"is",
"destroyed",
"(",
"e",
"g",
"got",
"unbind",
"or",
"binder",
"died",
")"
] | [
"m",
"data",
"call",
"list",
"changed",
"callbacks",
"clear",
"(",
")",
";"
] |
[
"create",
"the",
"instance",
"of",
"{",
"@",
"link",
"data",
"service",
"provider",
"}",
"data",
"service",
"provider",
"must",
"override",
"this",
"method",
"to",
"facilitate",
"the",
"creation",
"of",
"{",
"@",
"link",
"data",
"service",
"provider",
"}",
... | [
"public",
"abstract",
"data",
"service",
"provider",
"create",
"data",
"service",
"provider",
"(",
"int",
"slot",
"id",
")",
";"
] |
[
"notifies",
"that",
"from",
"view",
"is",
"ready",
"even",
"if",
"there",
"is",
"no",
"such",
"view",
"can",
"be",
"used",
"in",
"cases",
"when",
"we",
"know",
"that",
"there",
"will",
"be",
"no",
"from",
"view",
"but",
"animation",
"should",
"be",
"st... | [
"set",
"from",
"internal",
"(",
"id",
",",
"null",
",",
"null",
")",
";"
] |
[
"called",
"when",
"both",
"from",
"and",
"to",
"views",
"are",
"ready",
"for",
"given",
"index",
"at",
"this",
"point",
"transition",
"is",
"ready",
"to",
"be",
"started",
"<",
"p",
">",
"note",
"that",
"this",
"method",
"will",
"be",
"called",
"each",
... | [
"if",
"(",
"ready",
"listener",
"!",
"=",
"null",
")",
"{",
"ready",
"listener",
"on",
"views",
"ready",
"(",
"id",
")",
";",
"}"
] |
[
"the",
"i",
"d",
"3v",
"2",
"frame",
"identifier"
] | [
"return",
"i",
"d",
"3v",
"2",
"4",
"frames",
"frame",
"id",
"bpm",
";"
] |
[
"indents",
"the",
"line",
"range",
"specified",
"by",
"<",
"code",
">",
"lines",
"<",
"/",
"code",
">",
"in",
"<",
"code",
">",
"document",
"<",
"/",
"code",
">",
"the",
"passed",
"java",
"project",
"may",
"be",
"<",
"code",
">",
"null",
"<",
"/",
... | [
"int",
"number",
"of",
"lines",
"=",
"lines",
"get",
"number",
"of",
"lines",
"(",
")",
";",
"if",
"(",
"number",
"of",
"lines",
"<",
"1",
")",
"return",
"new",
"indent",
"result",
"(",
"null",
")",
";",
"result",
"=",
"reuse",
"or",
"create",
"tok... |
[
"computes",
"the",
"difference",
"of",
"two",
"indentations",
"and",
"returns",
"the",
"difference",
"in",
"length",
"of",
"current",
"and",
"correct",
"if",
"the",
"return",
"value",
"is",
"positive",
"<",
"code",
">",
"addition",
"<",
"/",
"code",
">",
"... | [
"int",
"c",
"1",
"=",
"compute",
"visual",
"length",
"(",
"correct",
",",
"tab",
"size",
")",
";",
"int",
"c",
"2",
"=",
"compute",
"visual",
"length",
"(",
"current",
",",
"tab",
"size",
")",
";",
"int",
"diff",
"=",
"c",
"1",
"-",
"c",
"2",
"... |
[
"<",
"p",
">",
"api",
"id",
"of",
"the",
"associated",
"api",
"stage",
"in",
"a",
"usage",
"plan",
"<",
"/",
"p",
">"
] | [
"set",
"api",
"id",
"(",
"api",
"id",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"api",
"stage",
"name",
"of",
"the",
"associated",
"api",
"stage",
"in",
"a",
"usage",
"plan",
"<",
"/",
"p",
">"
] | [
"set",
"stage",
"(",
"stage",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"map",
"containing",
"method",
"level",
"throttling",
"information",
"for",
"api",
"stage",
"in",
"a",
"usage",
"plan",
"<",
"/",
"p",
">"
] | [
"return",
"throttle",
";"
] |
[
"<",
"p",
">",
"map",
"containing",
"method",
"level",
"throttling",
"information",
"for",
"api",
"stage",
"in",
"a",
"usage",
"plan",
"<",
"/",
"p",
">"
] | [
"this",
"throttle",
"=",
"throttle",
";"
] |
[
"<",
"p",
">",
"map",
"containing",
"method",
"level",
"throttling",
"information",
"for",
"api",
"stage",
"in",
"a",
"usage",
"plan",
"<",
"/",
"p",
">"
] | [
"set",
"throttle",
"(",
"throttle",
")",
";",
"return",
"this",
";"
] |
[
"removes",
"all",
"the",
"entries",
"added",
"into",
"throttle"
] | [
"this",
"throttle",
"=",
"null",
";",
"return",
"this",
";"
] |
[
"deemphasize",
"transient",
"forces"
] | [
"float",
"m",
"alpha",
"=",
"0",
"8f",
";",
"return",
"gravity",
"*",
"m",
"alpha",
"+",
"current",
"*",
"(",
"1",
"-",
"m",
"alpha",
")",
";"
] |
[
"{"
] | [
"return",
"(",
"field",
")",
"get",
"0",
"(",
"n",
")",
";"
] |
[
"sets",
"the",
"field",
"at",
"the",
"given",
"index"
] | [
"set",
"0",
"(",
"n",
",",
"field",
")",
";"
] |
[
"returns",
"all",
"paths"
] | [
"bytes",
"ref",
"builder",
"scratch",
"bytes",
"ref",
"builder",
"=",
"new",
"bytes",
"ref",
"builder",
"(",
")",
";",
"set",
"<",
"string",
">",
"paths",
"=",
"new",
"hash",
"set",
"<",
">",
"(",
")",
";",
"for",
"(",
"ints",
"ref",
"ir",
":",
"... |
[
"tests",
"the",
"{"
] | [
"inode",
"file",
"inode",
"1",
"=",
"create",
"inode",
"file",
"(",
"1",
")",
";",
"assert",
"equals",
"(",
"create",
"inode",
"file",
"id",
"(",
"1",
")",
",",
"inode",
"1",
"get",
"id",
"(",
")",
")",
";"
] |
[
"tests",
"the",
"{"
] | [
"inode",
"file",
"inode",
"file",
"=",
"create",
"inode",
"file",
"(",
"1",
")",
";",
"inode",
"file",
"set",
"length",
"(",
"length",
")",
";",
"assert",
"equals",
"(",
"length",
",",
"inode",
"file",
"get",
"length",
"(",
")",
")",
";"
] |
[
"tests",
"the",
"{"
] | [
"inode",
"file",
"inode",
"1",
"=",
"create",
"inode",
"file",
"(",
"1",
")",
";",
"assert",
"equals",
"(",
"constants",
"kb",
",",
"inode",
"1",
"get",
"block",
"size",
"bytes",
"(",
")",
")",
";"
] |
[
"tests",
"the",
"{"
] | [
"inode",
"file",
"inode",
"1",
"=",
"create",
"inode",
"file",
"(",
"1",
")",
";",
"assert",
"false",
"(",
"inode",
"1",
"is",
"completed",
"(",
")",
")",
";",
"inode",
"1",
"set",
"completed",
"(",
"true",
")",
";",
"assert",
"true",
"(",
"inode",... |
[
"tests",
"the",
"{"
] | [
"inode",
"file",
"inode",
"1",
"=",
"create",
"inode",
"file",
"(",
"1",
")",
";",
"assert",
"equals",
"(",
"test",
"owner",
",",
"inode",
"1",
"get",
"owner",
"(",
")",
")",
";",
"assert",
"equals",
"(",
"test",
"group",
",",
"inode",
"1",
"get",
... |
[
"tests",
"the",
"{"
] | [
"inode",
"file",
"inode",
"1",
"=",
"create",
"inode",
"file",
"(",
"1",
")",
";",
"assert",
"false",
"(",
"inode",
"1",
"is",
"read",
"locked",
"(",
")",
")",
";",
"assert",
"false",
"(",
"inode",
"1",
"is",
"write",
"locked",
"(",
")",
")",
";"... |
[
"tests",
"the",
"{"
] | [
"inode",
"file",
"inode",
"1",
"=",
"create",
"inode",
"file",
"(",
"1",
")",
";",
"inode",
"directory",
"dir",
"1",
"=",
"create",
"inode",
"directory",
"(",
")",
";",
"inode",
"1",
"set",
"parent",
"id",
"(",
"dir",
"1",
"get",
"id",
"(",
")",
... |
[
"tests",
"the",
"{"
] | [
"m",
"expected",
"exception",
"expect",
"(",
"invalid",
"path",
"exception",
"class",
")",
";",
"m",
"expected",
"exception",
"expect",
"message",
"(",
"exception",
"message",
"path",
"invalid",
"concurrent",
"rename",
"get",
"message",
"(",
")",
")",
";",
"... |
[
"tests",
"the",
"{"
] | [
"inode",
"file",
"inode",
"1",
"=",
"create",
"inode",
"file",
"(",
"1",
")",
";",
"inode",
"1",
"lock",
"write",
"(",
")",
";",
"assert",
"false",
"(",
"inode",
"1",
"is",
"read",
"locked",
"(",
")",
")",
";",
"assert",
"true",
"(",
"inode",
"1"... |
[
"tests",
"the",
"{"
] | [
"inode",
"file",
"inode",
"1",
"=",
"create",
"inode",
"file",
"(",
"1",
")",
";",
"inode",
"directory",
"dir",
"1",
"=",
"create",
"inode",
"directory",
"(",
")",
";",
"inode",
"1",
"set",
"parent",
"id",
"(",
"dir",
"1",
"get",
"id",
"(",
")",
... |
[
"tests",
"the",
"{"
] | [
"m",
"expected",
"exception",
"expect",
"(",
"invalid",
"path",
"exception",
"class",
")",
";",
"m",
"expected",
"exception",
"expect",
"message",
"(",
"exception",
"message",
"path",
"invalid",
"concurrent",
"rename",
"get",
"message",
"(",
")",
")",
";",
"... |
[
"test",
"existence",
"check",
"when",
"the",
"path",
"exists",
"both",
"locally",
"and",
"remotely"
] | [
"create",
"(",
"igfs",
",",
"paths",
"(",
"dir",
")",
",",
"null",
")",
";",
"check",
"exist",
"(",
"igfs",
",",
"igfs",
"secondary",
",",
"dir",
")",
";"
] |
[
"test",
"existence",
"check",
"when",
"the",
"path",
"doesn",
"t",
"exist",
"remotely"
] | [
"assert",
"!",
"igfs",
"exists",
"(",
"dir",
")",
";"
] |
[
"test",
"list",
"files",
"routine"
] | [
"create",
"(",
"igfs",
",",
"paths",
"(",
"dir",
",",
"subdir",
",",
"subsubdir",
")",
",",
"paths",
"(",
"file",
")",
")",
";",
"collection",
"<",
"igfs",
"file",
">",
"paths",
"=",
"igfs",
"list",
"files",
"(",
"subdir",
")",
";",
"assert",
"path... |
[
"test",
"info",
"routine",
"when",
"the",
"path",
"exists",
"both",
"locally",
"and",
"remotely"
] | [
"create",
"(",
"igfs",
",",
"paths",
"(",
"dir",
")",
",",
"null",
")",
";",
"igfs",
"file",
"info",
"=",
"igfs",
"info",
"(",
"dir",
")",
";",
"assert",
"info",
"!",
"=",
"null",
";",
"assert",
"equals",
"(",
"dir",
",",
"info",
"path",
"(",
"... |
[
"test",
"rename",
"in",
"case",
"both",
"local",
"and",
"remote",
"file",
"systems",
"have",
"the",
"same",
"folder",
"structure",
"and",
"the",
"path",
"being",
"renamed",
"is",
"a",
"file"
] | [
"create",
"(",
"igfs",
",",
"paths",
"(",
"dir",
",",
"subdir",
")",
",",
"paths",
"(",
"file",
")",
")",
";",
"igfs",
"rename",
"(",
"file",
",",
"file2",
")",
";",
"check",
"exist",
"(",
"igfs",
",",
"igfs",
"secondary",
",",
"file2",
")",
";",... |
[
"test",
"rename",
"in",
"case",
"both",
"local",
"and",
"remote",
"file",
"systems",
"have",
"the",
"same",
"folder",
"structure",
"and",
"the",
"path",
"being",
"renamed",
"is",
"a",
"directory"
] | [
"create",
"(",
"igfs",
",",
"paths",
"(",
"dir",
",",
"subdir",
")",
",",
"null",
")",
";",
"igfs",
"rename",
"(",
"subdir",
",",
"subdir2",
")",
";",
"check",
"exist",
"(",
"igfs",
",",
"igfs",
"secondary",
",",
"subdir2",
")",
";",
"check",
"not"... |
[
"test",
"move",
"in",
"case",
"both",
"local",
"and",
"remote",
"file",
"systems",
"have",
"the",
"same",
"folder",
"structure",
"and",
"the",
"path",
"being",
"renamed",
"is",
"a",
"file"
] | [
"create",
"(",
"igfs",
",",
"paths",
"(",
"dir",
",",
"subdir",
",",
"dir",
"new",
",",
"subdir",
"new",
")",
",",
"paths",
"(",
"file",
")",
")",
";",
"igfs",
"rename",
"(",
"file",
",",
"subdir",
"new",
")",
";",
"check",
"exist",
"(",
"igfs",
... |
[
"test",
"move",
"and",
"rename",
"in",
"case",
"both",
"local",
"and",
"remote",
"file",
"systems",
"have",
"the",
"same",
"folder",
"structure",
"and",
"the",
"path",
"being",
"renamed",
"is",
"a",
"file"
] | [
"create",
"(",
"igfs",
",",
"paths",
"(",
"dir",
",",
"subdir",
",",
"dir",
"new",
",",
"subdir",
"new",
")",
",",
"paths",
"(",
"file",
")",
")",
";",
"igfs",
"rename",
"(",
"file",
",",
"file",
"new",
")",
";",
"check",
"exist",
"(",
"igfs",
... |
[
"test",
"move",
"in",
"case",
"both",
"local",
"and",
"remote",
"file",
"systems",
"have",
"the",
"same",
"folder",
"structure",
"and",
"the",
"path",
"being",
"renamed",
"is",
"a",
"directory"
] | [
"create",
"(",
"igfs",
",",
"paths",
"(",
"dir",
",",
"subdir",
",",
"subsubdir",
",",
"dir",
"new",
",",
"subdir",
"new",
")",
",",
"null",
")",
";",
"igfs",
"rename",
"(",
"subsubdir",
",",
"subdir",
"new",
")",
";",
"check",
"exist",
"(",
"igfs"... |
[
"test",
"move",
"and",
"rename",
"in",
"case",
"both",
"local",
"and",
"remote",
"file",
"systems",
"have",
"the",
"same",
"folder",
"structure",
"and",
"the",
"path",
"being",
"renamed",
"is",
"a",
"directory"
] | [
"create",
"(",
"igfs",
",",
"paths",
"(",
"dir",
",",
"subdir",
",",
"subsubdir",
",",
"dir",
"new",
",",
"subdir",
"new",
")",
",",
"null",
")",
";",
"igfs",
"rename",
"(",
"subsubdir",
",",
"subsubdir",
"new",
")",
";",
"check",
"exist",
"(",
"ig... |
[
"ensure",
"that",
"rename",
"doesn",
"t",
"occur",
"in",
"case",
"source",
"doesn",
"t",
"exist",
"remotely"
] | [
"create",
"(",
"igfs",
",",
"paths",
"(",
"dir",
",",
"dir",
"new",
")",
",",
"null",
")",
";",
"grid",
"test",
"utils",
"assert",
"throws",
"inherited",
"(",
"log",
",",
"new",
"callable",
"<",
"object",
">",
"(",
")",
"{",
"@",
"override",
"publi... |
[
"test",
"delete",
"in",
"case",
"both",
"local",
"and",
"remote",
"file",
"systems",
"have",
"the",
"same",
"folder",
"structure"
] | [
"create",
"(",
"igfs",
",",
"paths",
"(",
"dir",
",",
"subdir",
",",
"subsubdir",
")",
",",
"paths",
"(",
"file",
")",
")",
";",
"igfs",
"delete",
"(",
"subdir",
",",
"true",
")",
";",
"check",
"not",
"exist",
"(",
"igfs",
",",
"igfs",
"secondary",... |
[
"test",
"delete",
"when",
"the",
"path",
"parent",
"is",
"the",
"root"
] | [
"create",
"(",
"igfs",
",",
"paths",
"(",
"dir",
",",
"subdir",
",",
"subsubdir",
")",
",",
"paths",
"(",
"file",
")",
")",
";",
"igfs",
"delete",
"(",
"dir",
",",
"true",
")",
";",
"check",
"not",
"exist",
"(",
"igfs",
",",
"igfs",
"secondary",
... |
[
"check",
"root",
"property",
"update"
] | [
"igfs",
"update",
"(",
"igfs",
"path",
"root",
",",
"collections",
"singleton",
"map",
"(",
"prop",
",",
"set",
"val",
")",
")",
";",
"igfs",
"clear",
"(",
")",
";",
"igfs",
"file",
"file",
"=",
"igfs",
"info",
"(",
"igfs",
"path",
"root",
")",
";"... |
[
"test",
"subsequent",
"create",
"commands",
"on",
"the",
"same",
"file",
"without",
"closing",
"the",
"output",
"streams"
] | [
"if",
"(",
"mode",
"!",
"=",
"primary",
")",
"return",
";",
"create",
"(",
"igfs",
",",
"paths",
"(",
"dir",
",",
"subdir",
")",
",",
"null",
")",
";",
"grid",
"test",
"utils",
"assert",
"throws",
"(",
"log",
"(",
")",
",",
"new",
"callable",
"<"... |
[
"test",
"rename",
"on",
"the",
"file",
"when",
"it",
"was",
"opened",
"for",
"write",
"(",
"create",
")",
"and",
"is",
"not",
"closed",
"yet"
] | [
"if",
"(",
"dual",
")",
"return",
";",
"create",
"(",
"igfs",
",",
"paths",
"(",
"dir",
",",
"subdir",
")",
",",
"null",
")",
";",
"igfs",
"output",
"stream",
"os",
"=",
"null",
";",
"try",
"{",
"os",
"=",
"igfs",
"create",
"(",
"file",
",",
"t... |
[
"test",
"rename",
"on",
"the",
"file",
"parent",
"when",
"it",
"was",
"opened",
"for",
"write",
"(",
"create",
")",
"and",
"is",
"not",
"closed",
"yet"
] | [
"if",
"(",
"dual",
")",
"return",
";",
"create",
"(",
"igfs",
",",
"paths",
"(",
"dir",
",",
"subdir",
")",
",",
"null",
")",
";",
"igfs",
"output",
"stream",
"os",
"=",
"null",
";",
"try",
"{",
"os",
"=",
"igfs",
"create",
"(",
"file",
",",
"t... |
[
"test",
"subsequent",
"append",
"commands",
"on",
"the",
"same",
"file",
"without",
"closing",
"the",
"output",
"streams"
] | [
"if",
"(",
"mode",
"!",
"=",
"primary",
")",
"return",
";",
"if",
"(",
"append",
"supported",
"(",
")",
")",
"{",
"create",
"(",
"igfs",
",",
"paths",
"(",
"dir",
",",
"subdir",
")",
",",
"null",
")",
";",
"create",
"file",
"(",
"igfs",
",",
"f... |
[
"test",
"rename",
"on",
"the",
"file",
"when",
"it",
"was",
"opened",
"for",
"write",
"(",
"append",
")",
"and",
"is",
"not",
"closed",
"yet"
] | [
"if",
"(",
"dual",
")",
"return",
";",
"if",
"(",
"append",
"supported",
"(",
")",
")",
"{",
"create",
"(",
"igfs",
",",
"paths",
"(",
"dir",
",",
"subdir",
")",
",",
"null",
")",
";",
"create",
"file",
"(",
"igfs",
",",
"file",
",",
"false",
"... |
[
"test",
"rename",
"on",
"the",
"file",
"parent",
"when",
"it",
"was",
"opened",
"for",
"write",
"(",
"append",
")",
"and",
"is",
"not",
"closed",
"yet"
] | [
"if",
"(",
"dual",
")",
"return",
";",
"if",
"(",
"append",
"supported",
"(",
")",
")",
"{",
"create",
"(",
"igfs",
",",
"paths",
"(",
"dir",
",",
"subdir",
")",
",",
"null",
")",
";",
"create",
"file",
"(",
"igfs",
",",
"file",
",",
"false",
"... |
[
"ensure",
"that",
"deadlocks",
"do",
"not",
"occur",
"during",
"concurrent",
"rename",
"operations"
] | [
"check",
"deadlocks",
"repeat",
"(",
"5",
",",
"2",
",",
"2",
",",
"2",
",",
"rename",
"cnt",
",",
"0",
",",
"0",
",",
"0",
",",
"0",
")",
";"
] |
[
"ensure",
"that",
"deadlocks",
"do",
"not",
"occur",
"during",
"concurrent",
"delete",
"operations"
] | [
"check",
"deadlocks",
"repeat",
"(",
"5",
",",
"2",
",",
"2",
",",
"2",
",",
"0",
",",
"delete",
"cnt",
",",
"0",
",",
"0",
",",
"0",
")",
";"
] |
[
"ensure",
"that",
"deadlocks",
"do",
"not",
"occur",
"during",
"concurrent",
"update",
"operations"
] | [
"check",
"deadlocks",
"repeat",
"(",
"5",
",",
"2",
",",
"2",
",",
"2",
",",
"0",
",",
"0",
",",
"update",
"cnt",
",",
"0",
",",
"0",
")",
";"
] |
[
"ensure",
"that",
"deadlocks",
"do",
"not",
"occur",
"during",
"concurrent",
"directory",
"creation",
"operations"
] | [
"check",
"deadlocks",
"repeat",
"(",
"5",
",",
"2",
",",
"2",
",",
"2",
",",
"0",
",",
"0",
",",
"0",
",",
"mkdirs",
"cnt",
",",
"0",
")",
";"
] |
[
"ensure",
"that",
"deadlocks",
"do",
"not",
"occur",
"during",
"concurrent",
"delete",
"&",
"rename",
"operations"
] | [
"check",
"deadlocks",
"repeat",
"(",
"5",
",",
"2",
",",
"2",
",",
"2",
",",
"rename",
"cnt",
",",
"delete",
"cnt",
",",
"0",
",",
"0",
",",
"0",
")",
";"
] |
[
"ensure",
"that",
"deadlocks",
"do",
"not",
"occur",
"during",
"concurrent",
"delete",
"&",
"rename",
"operations"
] | [
"check",
"deadlocks",
"repeat",
"(",
"5",
",",
"2",
",",
"2",
",",
"2",
",",
"rename",
"cnt",
",",
"delete",
"cnt",
",",
"0",
",",
"mkdirs",
"cnt",
",",
"0",
")",
";"
] |
[
"ensure",
"that",
"deadlocks",
"do",
"not",
"occur",
"during",
"concurrent",
"delete",
"&",
"rename",
"operations"
] | [
"check",
"deadlocks",
"repeat",
"(",
"5",
",",
"2",
",",
"2",
",",
"2",
",",
"0",
",",
"delete",
"cnt",
",",
"0",
",",
"mkdirs",
"cnt",
",",
"0",
")",
";"
] |
[
"ensure",
"that",
"deadlocks",
"do",
"not",
"occur",
"during",
"concurrent",
"file",
"creation",
"operations"
] | [
"check",
"deadlocks",
"repeat",
"(",
"5",
",",
"2",
",",
"2",
",",
"2",
",",
"0",
",",
"0",
",",
"0",
",",
"0",
",",
"create",
"cnt",
")",
";"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.