docstring_tokens
sequence | code_tokens
sequence |
---|---|
[
"ensure",
"that",
"deadlocks",
"do",
"not",
"occur",
"during",
"concurrent",
"operations",
"of",
"various",
"types"
] | [
"check",
"deadlocks",
"repeat",
"(",
"5",
",",
"2",
",",
"2",
",",
"2",
",",
"rename",
"cnt",
",",
"delete",
"cnt",
",",
"update",
"cnt",
",",
"mkdirs",
"cnt",
",",
"create",
"cnt",
")",
";"
] |
[
"add",
"all",
"edges",
"e",
"incident",
"to",
"v",
"onto",
"pq",
"if",
"the",
"other",
"endpoint",
"has",
"not",
"yet",
"been",
"scanned"
] | [
"assert",
"!",
"marked",
"[",
"v",
"]",
";",
"marked",
"[",
"v",
"]",
"=",
"true",
";",
"for",
"(",
"edge",
"e",
":",
"g",
"adj",
"(",
"v",
")",
")",
"if",
"(",
"!",
"marked",
"[",
"e",
"other",
"(",
"v",
")",
"]",
")",
"pq",
"insert",
"(",
"e",
")",
";"
] |
[
"indexer",
"implements",
"i",
"fn",
"for",
"attr",
"access"
] | [
"if",
"(",
"obj",
"instanceof",
"i",
"lookup",
")",
"return",
"(",
"(",
"i",
"lookup",
")",
"obj",
")",
"val",
"at",
"(",
"this",
")",
";",
"return",
"rt",
"get",
"(",
"obj",
",",
"this",
")",
";"
] |
[
"used",
"in",
"tests",
"to",
"test",
"whether",
"the",
"scanner",
"has",
"been",
"suspended"
] | [
"return",
"resumer",
"!",
"=",
"null",
";"
] |
[
"used",
"internally",
"accumulating",
"metrics",
"on",
"scan",
"to",
"enable",
"collection",
"of",
"metrics",
"on",
"a",
"scanner",
"call",
"{"
] | [
"return",
"scan",
"metrics",
";"
] |
[
"execute",
"with",
"callback"
] | [
"execute",
"(",
")",
";",
"if",
"(",
"callback",
"!",
"=",
"null",
")",
"{",
"callback",
"call",
"(",
")",
";",
"}"
] |
[
"-",
"-",
"-",
"[",
"egl",
"get",
"output",
"layers",
"e",
"x",
"t",
"]",
"-",
"-",
"-"
] | [
"long",
"function",
"address",
"=",
"egl",
"get",
"capabilities",
"(",
")",
"egl",
"get",
"output",
"layers",
"e",
"x",
"t",
";",
"if",
"(",
"checks",
")",
"{",
"check",
"(",
"function",
"address",
")",
";",
"check",
"(",
"dpy",
")",
";",
"}",
"return",
"call",
"p",
"p",
"p",
"p",
"i",
"(",
"function",
"address",
",",
"dpy",
",",
"attrib",
"list",
",",
"layers",
",",
"max",
"layers",
",",
"num",
"layers",
")",
";"
] |
[
"-",
"-",
"-",
"[",
"egl",
"get",
"output",
"ports",
"e",
"x",
"t",
"]",
"-",
"-",
"-"
] | [
"long",
"function",
"address",
"=",
"egl",
"get",
"capabilities",
"(",
")",
"egl",
"get",
"output",
"ports",
"e",
"x",
"t",
";",
"if",
"(",
"checks",
")",
"{",
"check",
"(",
"function",
"address",
")",
";",
"check",
"(",
"dpy",
")",
";",
"}",
"return",
"call",
"p",
"p",
"p",
"p",
"i",
"(",
"function",
"address",
",",
"dpy",
",",
"attrib",
"list",
",",
"ports",
",",
"max",
"ports",
",",
"num",
"ports",
")",
";"
] |
[
"-",
"-",
"-",
"[",
"egl",
"query",
"output",
"layer",
"attrib",
"e",
"x",
"t",
"]",
"-",
"-",
"-"
] | [
"long",
"function",
"address",
"=",
"egl",
"get",
"capabilities",
"(",
")",
"egl",
"query",
"output",
"layer",
"attrib",
"e",
"x",
"t",
";",
"if",
"(",
"checks",
")",
"{",
"check",
"(",
"function",
"address",
")",
";",
"check",
"(",
"dpy",
")",
";",
"check",
"(",
"layer",
")",
";",
"}",
"return",
"call",
"p",
"p",
"p",
"i",
"(",
"function",
"address",
",",
"dpy",
",",
"layer",
",",
"attribute",
",",
"value",
")",
";"
] |
[
"-",
"-",
"-",
"[",
"egl",
"query",
"output",
"layer",
"string",
"e",
"x",
"t",
"]",
"-",
"-",
"-"
] | [
"long",
"function",
"address",
"=",
"egl",
"get",
"capabilities",
"(",
")",
"egl",
"query",
"output",
"layer",
"string",
"e",
"x",
"t",
";",
"if",
"(",
"checks",
")",
"{",
"check",
"(",
"function",
"address",
")",
";",
"check",
"(",
"dpy",
")",
";",
"check",
"(",
"layer",
")",
";",
"}",
"return",
"call",
"p",
"p",
"p",
"(",
"function",
"address",
",",
"dpy",
",",
"layer",
",",
"name",
")",
";"
] |
[
"-",
"-",
"-",
"[",
"egl",
"query",
"output",
"port",
"attrib",
"e",
"x",
"t",
"]",
"-",
"-",
"-"
] | [
"long",
"function",
"address",
"=",
"egl",
"get",
"capabilities",
"(",
")",
"egl",
"query",
"output",
"port",
"attrib",
"e",
"x",
"t",
";",
"if",
"(",
"checks",
")",
"{",
"check",
"(",
"function",
"address",
")",
";",
"check",
"(",
"dpy",
")",
";",
"check",
"(",
"port",
")",
";",
"}",
"return",
"call",
"p",
"p",
"p",
"i",
"(",
"function",
"address",
",",
"dpy",
",",
"port",
",",
"attribute",
",",
"value",
")",
";"
] |
[
"-",
"-",
"-",
"[",
"egl",
"query",
"output",
"port",
"string",
"e",
"x",
"t",
"]",
"-",
"-",
"-"
] | [
"long",
"function",
"address",
"=",
"egl",
"get",
"capabilities",
"(",
")",
"egl",
"query",
"output",
"port",
"string",
"e",
"x",
"t",
";",
"if",
"(",
"checks",
")",
"{",
"check",
"(",
"function",
"address",
")",
";",
"check",
"(",
"dpy",
")",
";",
"check",
"(",
"port",
")",
";",
"}",
"return",
"call",
"p",
"p",
"p",
"(",
"function",
"address",
",",
"dpy",
",",
"port",
",",
"name",
")",
";"
] |
[
"returns",
"true",
"if",
"field",
"full",
"resource",
"plan",
"is",
"set",
"(",
"has",
"been",
"assigned",
"a",
"value",
")",
"and",
"false",
"otherwise"
] | [
"return",
"this",
"full",
"resource",
"plan",
"!",
"=",
"null",
";"
] |
[
"returns",
"true",
"if",
"field",
"corresponding",
"to",
"field",
"i",
"d",
"is",
"set",
"(",
"has",
"been",
"assigned",
"a",
"value",
")",
"and",
"false",
"otherwise"
] | [
"if",
"(",
"field",
"=",
"=",
"null",
")",
"{",
"throw",
"new",
"illegal",
"argument",
"exception",
"(",
")",
";",
"}",
"switch",
"(",
"field",
")",
"{",
"case",
"full",
"resource",
"plan",
":",
"return",
"is",
"set",
"full",
"resource",
"plan",
"(",
")",
";",
"}",
"throw",
"new",
"illegal",
"state",
"exception",
"(",
")",
";"
] |
[
"/",
"*",
"add",
"bottles",
"to",
"test",
"strips"
] | [
"for",
"(",
"bottle",
"bottle",
":",
"bottles",
")",
"{",
"int",
"id",
"=",
"bottle",
"get",
"id",
"(",
")",
";",
"int",
"bit",
"index",
"=",
"0",
";",
"while",
"(",
"id",
">",
"0",
")",
"{",
"if",
"(",
"(",
"id",
"&",
"1",
")",
"=",
"=",
"1",
")",
"{",
"test",
"strips",
"get",
"(",
"bit",
"index",
")",
"add",
"drop",
"on",
"day",
"(",
"0",
",",
"bottle",
")",
";",
"}",
"bit",
"index",
"+",
"+",
";",
"id",
">",
">",
"=",
"1",
";",
"}",
"}"
] |
[
"/",
"*",
"get",
"test",
"strips",
"that",
"are",
"positive",
"on",
"a",
"particular",
"day"
] | [
"array",
"list",
"<",
"integer",
">",
"positive",
"=",
"new",
"array",
"list",
"<",
"integer",
">",
"(",
")",
";",
"for",
"(",
"test",
"strip",
"test",
"strip",
":",
"test",
"strips",
")",
"{",
"int",
"id",
"=",
"test",
"strip",
"get",
"id",
"(",
")",
";",
"if",
"(",
"test",
"strip",
"is",
"positive",
"on",
"day",
"(",
"day",
")",
")",
"{",
"positive",
"add",
"(",
"id",
")",
";",
"}",
"}",
"return",
"positive",
";"
] |
[
"/",
"*",
"create",
"number",
"by",
"setting",
"bits",
"with",
"indices",
"specified",
"in",
"positive"
] | [
"int",
"id",
"=",
"0",
";",
"for",
"(",
"integer",
"bit",
"index",
":",
"positive",
")",
"{",
"id",
"|",
"=",
"1",
"<",
"<",
"bit",
"index",
";",
"}",
"return",
"id",
";"
] |
[
"<",
"p",
">",
"an",
"object",
"representing",
"the",
"api",
"operations",
"<",
"/",
"p",
">",
"<",
"p",
">",
"these",
"ssl",
"/",
"tls",
"certificates",
"are",
"only",
"usable",
"by",
"lightsail",
"load",
"balancers",
"you",
"can",
"t",
"get",
"the",
"certificate",
"and",
"use",
"it",
"for",
"another",
"purpose",
"<",
"/",
"p",
">",
"<",
"p",
">",
"<",
"b",
">",
"note",
":",
"<",
"/",
"b",
">",
"this",
"method",
"appends",
"the",
"values",
"to",
"the",
"existing",
"list",
"(",
"if",
"any",
")",
"use",
"{",
"@",
"link",
"#",
"set",
"operations",
"(",
"java",
"util",
"collection",
")",
"}",
"or",
"{",
"@",
"link",
"#",
"with",
"operations",
"(",
"java",
"util",
"collection",
")",
"}",
"if",
"you",
"want",
"to",
"override",
"the",
"existing",
"values",
"<",
"/",
"p",
">"
] | [
"if",
"(",
"this",
"operations",
"=",
"=",
"null",
")",
"{",
"set",
"operations",
"(",
"new",
"java",
"util",
"array",
"list",
"<",
"operation",
">",
"(",
"operations",
"length",
")",
")",
";",
"}",
"for",
"(",
"operation",
"ele",
":",
"operations",
")",
"{",
"this",
"operations",
"add",
"(",
"ele",
")",
";",
"}",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"an",
"object",
"representing",
"the",
"api",
"operations",
"<",
"/",
"p",
">",
"<",
"p",
">",
"these",
"ssl",
"/",
"tls",
"certificates",
"are",
"only",
"usable",
"by",
"lightsail",
"load",
"balancers",
"you",
"can",
"t",
"get",
"the",
"certificate",
"and",
"use",
"it",
"for",
"another",
"purpose",
"<",
"/",
"p",
">"
] | [
"set",
"operations",
"(",
"operations",
")",
";",
"return",
"this",
";"
] |
[
"adds",
"feature",
"extractor",
"as",
"a",
"zero",
"stage"
] | [
"this",
"final",
"feature",
"extractor",
"=",
"feature",
"extractor",
";",
"return",
"this",
";"
] |
[
"adds",
"a",
"label",
"extractor",
"for",
"the",
"produced",
"model"
] | [
"this",
"lb",
"extractor",
"=",
"lb",
"extractor",
";",
"return",
"this",
";"
] |
[
"adds",
"a",
"preprocessor"
] | [
"preprocessors",
"add",
"(",
"preprocessor",
")",
";",
"return",
"this",
";"
] |
[
"adds",
"a",
"trainer"
] | [
"this",
"final",
"stage",
"=",
"trainer",
";",
"return",
"this",
";"
] |
[
"fits",
"the",
"pipeline",
"to",
"the",
"input",
"cache"
] | [
"dataset",
"builder",
"dataset",
"builder",
"=",
"new",
"cache",
"based",
"dataset",
"builder",
"<",
">",
"(",
"ignite",
",",
"cache",
")",
";",
"return",
"fit",
"(",
"dataset",
"builder",
")",
";"
] |
[
"fits",
"the",
"pipeline",
"to",
"the",
"input",
"mock",
"data"
] | [
"dataset",
"builder",
"dataset",
"builder",
"=",
"new",
"local",
"dataset",
"builder",
"<",
">",
"(",
"data",
",",
"parts",
")",
";",
"return",
"fit",
"(",
"dataset",
"builder",
")",
";"
] |
[
"sets",
"another",
"array",
"to",
"be",
"wrapped",
"by",
"<",
"code",
">",
"this",
"<",
"/",
"code",
">",
"vector",
"*",
"important",
"notes",
":",
"<",
"code",
">",
"resize",
"(",
"int",
")",
"<",
"/",
"code",
">",
"and",
"<",
"code",
">",
"ensure",
"size",
"(",
"int",
")",
"<",
"/",
"code",
">",
"methods",
"may",
"change",
"the",
"array",
"to",
"be",
"wrapped",
"too",
"(",
"but",
"only",
"with",
"its",
"copy",
"of",
"a",
"different",
"length",
")",
";",
"this",
"method",
"does",
"not",
"copy",
"<",
"var",
">",
"array",
"<",
"/",
"var",
">",
"if",
"an",
"exception",
"is",
"thrown",
"then",
"<",
"code",
">",
"this",
"<",
"/",
"code",
">",
"vector",
"remains",
"unchanged",
"*"
] | [
"int",
"len",
";",
"len",
"=",
"array",
"length",
";",
"this",
"array",
"=",
"array",
";"
] |
[
"returns",
"array",
"wrapped",
"by",
"<",
"code",
">",
"this",
"<",
"/",
"code",
">",
"vector",
"*",
"important",
"notes",
":",
"this",
"method",
"does",
"not",
"copy",
"<",
"var",
">",
"array",
"<",
"/",
"var",
">",
"*"
] | [
"return",
"this",
"array",
";"
] |
[
"returns",
"the",
"wrapped",
"value",
"of",
"the",
"element",
"at",
"the",
"specified",
"index",
"*",
"the",
"result",
"is",
"the",
"same",
"as",
"of",
"<",
"code",
">",
"new",
"long",
"(",
"array",
"(",
")",
"[",
"index",
"]",
")",
"<",
"/",
"code",
">",
"*"
] | [
"return",
"new",
"long",
"(",
"this",
"array",
"[",
"index",
"]",
")",
";"
] |
[
"returns",
"value",
"of",
"the",
"element",
"at",
"the",
"specified",
"index",
"*",
"the",
"result",
"is",
"the",
"same",
"as",
"of",
"<",
"code",
">",
"array",
"(",
")",
"[",
"index",
"]",
"<",
"/",
"code",
">",
"*"
] | [
"return",
"this",
"array",
"[",
"index",
"]",
";"
] |
[
"assigns",
"a",
"new",
"value",
"to",
"the",
"element",
"at",
"the",
"specified",
"index",
"*",
"if",
"an",
"exception",
"is",
"thrown",
"then",
"<",
"code",
">",
"this",
"<",
"/",
"code",
">",
"vector",
"remains",
"unchanged",
"*"
] | [
"this",
"array",
"[",
"index",
"]",
"=",
"value",
";"
] |
[
"copies",
"a",
"region",
"of",
"values",
"at",
"one",
"offset",
"to",
"another",
"offset",
"in",
"<",
"code",
">",
"this",
"<",
"/",
"code",
">",
"vector",
"*",
"copying",
"is",
"performed",
"here",
"through",
"<",
"code",
">",
"arraycopy",
"(",
"object",
"int",
"object",
"int",
"int",
")",
"<",
"/",
"code",
">",
"method",
"of",
"<",
"code",
">",
"system",
"<",
"/",
"code",
">",
"class",
"negative",
"<",
"var",
">",
"len",
"<",
"/",
"var",
">",
"is",
"treated",
"as",
"zero",
"if",
"an",
"exception",
"is",
"thrown",
"then",
"<",
"code",
">",
"this",
"<",
"/",
"code",
">",
"vector",
"remains",
"unchanged",
"*"
] | [
"if",
"(",
"len",
">",
"0",
")",
"{",
"long",
"[",
"]",
"array",
"=",
"this",
"array",
";",
"system",
"arraycopy",
"(",
"array",
",",
"src",
"offset",
",",
"array",
",",
"dest",
"offset",
",",
"len",
")",
";",
"}"
] |
[
"resizes",
"<",
"code",
">",
"this",
"<",
"/",
"code",
">",
"vector",
"*",
"the",
"result",
"is",
"the",
"same",
"as",
"of",
"<",
"code",
">",
"set",
"array",
"(",
"resize",
"(",
"array",
"(",
")",
"size",
")",
")",
"<",
"/",
"code",
">",
"this",
"method",
"changes",
"the",
"length",
"of",
"<",
"code",
">",
"this",
"<",
"/",
"code",
">",
"vector",
"to",
"the",
"specified",
"one",
"important",
"notes",
":",
"if",
"size",
"(",
"length",
")",
"of",
"the",
"vector",
"grows",
"then",
"its",
"new",
"elements",
"are",
"set",
"to",
"zero",
"if",
"an",
"exception",
"is",
"thrown",
"then",
"<",
"code",
">",
"this",
"<",
"/",
"code",
">",
"vector",
"remains",
"unchanged",
"*"
] | [
"int",
"len",
";",
"long",
"[",
"]",
"array",
"=",
"this",
"array",
";",
"if",
"(",
"(",
"len",
"=",
"array",
"length",
")",
"!",
"=",
"size",
")",
"{",
"long",
"[",
"]",
"new",
"array",
"=",
"empty",
";",
"if",
"(",
"size",
"!",
"=",
"0",
")",
"{",
"if",
"(",
"len",
">",
"size",
")",
"if",
"(",
"size",
"<",
"0",
")",
"size",
"=",
"-",
"1",
">",
">",
">",
"1",
";",
"else",
"len",
"=",
"size",
";",
"system",
"arraycopy",
"(",
"array",
",",
"0",
",",
"new",
"array",
"=",
"new",
"long",
"[",
"size",
"]",
",",
"0",
",",
"len",
")",
";",
"}",
"this",
"array",
"=",
"new",
"array",
";",
"}"
] |
[
"ensures",
"the",
"size",
"(",
"capacity",
")",
"of",
"<",
"code",
">",
"this",
"<",
"/",
"code",
">",
"vector",
"*",
"the",
"result",
"is",
"the",
"same",
"as",
"of",
"<",
"code",
">",
"set",
"array",
"(",
"ensure",
"size",
"(",
"array",
"(",
")",
"size",
")",
")",
"<",
"/",
"code",
">",
"this",
"method",
"changes",
"(",
"only",
"if",
"<",
"var",
">",
"size",
"<",
"/",
"var",
">",
"is",
"greater",
"than",
"<",
"code",
">",
"length",
"(",
")",
"<",
"/",
"code",
">",
")",
"the",
"length",
"of",
"<",
"code",
">",
"this",
"<",
"/",
"code",
">",
"vector",
"to",
"a",
"value",
"not",
"less",
"than",
"<",
"var",
">",
"size",
"<",
"/",
"var",
">",
"important",
"notes",
":",
"if",
"size",
"(",
"length",
")",
"of",
"the",
"vector",
"grows",
"then",
"its",
"new",
"elements",
"are",
"set",
"to",
"zero",
"if",
"an",
"exception",
"is",
"thrown",
"then",
"<",
"code",
">",
"this",
"<",
"/",
"code",
">",
"vector",
"remains",
"unchanged",
"*"
] | [
"int",
"len",
";",
"long",
"[",
"]",
"array",
"=",
"this",
"array",
",",
"new",
"array",
";",
"if",
"(",
"(",
"(",
"(",
"len",
"=",
"array",
"length",
")",
"-",
"size",
")",
"|",
"size",
")",
"<",
"0",
")",
"{",
"if",
"(",
"size",
"<",
"0",
")",
"size",
"=",
"-",
"1",
">",
">",
">",
"1",
";",
"if",
"(",
"(",
"len",
"+",
"=",
"len",
">",
">",
"1",
")",
">",
"=",
"size",
")",
"size",
"=",
"len",
";",
"system",
"arraycopy",
"(",
"array",
",",
"0",
",",
"new",
"array",
"=",
"new",
"long",
"[",
"size",
"]",
",",
"0",
",",
"array",
"length",
")",
";",
"this",
"array",
"=",
"new",
"array",
";",
"}"
] |
[
"resizes",
"a",
"given",
"array",
"*",
"this",
"method",
"changes",
"(",
"creates",
"a",
"new",
"array",
"and",
"copies",
"the",
"content",
"to",
"it",
")",
"the",
"length",
"of",
"the",
"specified",
"array",
"to",
"the",
"specified",
"one",
"important",
"notes",
":",
"<",
"var",
">",
"array",
"<",
"/",
"var",
">",
"elements",
"are",
"not",
"changed",
";",
"if",
"<",
"code",
">",
"length",
"<",
"/",
"code",
">",
"of",
"<",
"var",
">",
"array",
"<",
"/",
"var",
">",
"is",
"the",
"same",
"as",
"<",
"var",
">",
"size",
"<",
"/",
"var",
">",
"then",
"<",
"var",
">",
"array",
"<",
"/",
"var",
">",
"is",
"returned",
"else",
"<",
"var",
">",
"array",
"<",
"/",
"var",
">",
"content",
"is",
"copied",
"into",
"the",
"result",
"(",
"all",
"new",
"elements",
"are",
"set",
"to",
"zero",
")",
"*"
] | [
"int",
"len",
";",
"if",
"(",
"(",
"len",
"=",
"array",
"length",
")",
"!",
"=",
"size",
")",
"{",
"long",
"[",
"]",
"new",
"array",
"=",
"empty",
";",
"if",
"(",
"size",
"!",
"=",
"0",
")",
"{",
"if",
"(",
"len",
">",
"size",
")",
"if",
"(",
"size",
"<",
"0",
")",
"size",
"=",
"-",
"1",
">",
">",
">",
"1",
";",
"else",
"len",
"=",
"size",
";",
"system",
"arraycopy",
"(",
"array",
",",
"0",
",",
"new",
"array",
"=",
"new",
"long",
"[",
"size",
"]",
",",
"0",
",",
"len",
")",
";",
"}",
"array",
"=",
"new",
"array",
";",
"}",
"return",
"array",
";"
] |
[
"ensures",
"the",
"length",
"(",
"capacity",
")",
"of",
"a",
"given",
"array",
"*",
"this",
"method",
"grows",
"(",
"only",
"if",
"<",
"var",
">",
"size",
"<",
"/",
"var",
">",
"is",
"greater",
"than",
"<",
"code",
">",
"length",
"<",
"/",
"code",
">",
"of",
"<",
"var",
">",
"array",
"<",
"/",
"var",
">",
")",
"the",
"length",
"of",
"<",
"var",
">",
"array",
"<",
"/",
"var",
">",
"important",
"notes",
":",
"<",
"var",
">",
"array",
"<",
"/",
"var",
">",
"elements",
"are",
"not",
"changed",
";",
"if",
"<",
"code",
">",
"length",
"<",
"/",
"code",
">",
"of",
"<",
"var",
">",
"array",
"<",
"/",
"var",
">",
"is",
"greater",
"or",
"the",
"same",
"as",
"<",
"var",
">",
"size",
"<",
"/",
"var",
">",
"then",
"<",
"var",
">",
"array",
"<",
"/",
"var",
">",
"is",
"returned",
"else",
"<",
"var",
">",
"array",
"<",
"/",
"var",
">",
"content",
"is",
"copied",
"into",
"the",
"result",
"(",
"all",
"new",
"elements",
"are",
"set",
"to",
"zero",
")",
"*"
] | [
"int",
"len",
";",
"if",
"(",
"(",
"(",
"(",
"len",
"=",
"array",
"length",
")",
"-",
"size",
")",
"|",
"size",
")",
"<",
"0",
")",
"{",
"if",
"(",
"size",
"<",
"0",
")",
"size",
"=",
"-",
"1",
">",
">",
">",
"1",
";",
"if",
"(",
"(",
"len",
"+",
"=",
"len",
">",
">",
"1",
")",
">",
"=",
"size",
")",
"size",
"=",
"len",
";",
"long",
"[",
"]",
"new",
"array",
";",
"system",
"arraycopy",
"(",
"array",
",",
"0",
",",
"new",
"array",
"=",
"new",
"long",
"[",
"size",
"]",
",",
"0",
",",
"array",
"length",
")",
";",
"array",
"=",
"new",
"array",
";",
"}",
"return",
"array",
";"
] |
[
"fills",
"in",
"the",
"region",
"of",
"a",
"given",
"array",
"with",
"the",
"specified",
"value",
"*",
"all",
"the",
"elements",
"in",
"the",
"specified",
"region",
"of",
"<",
"var",
">",
"array",
"<",
"/",
"var",
">",
"are",
"set",
"to",
"<",
"var",
">",
"value",
"<",
"/",
"var",
">",
"negative",
"<",
"var",
">",
"len",
"<",
"/",
"var",
">",
"is",
"treated",
"as",
"zero",
"if",
"an",
"exception",
"is",
"thrown",
"then",
"<",
"var",
">",
"array",
"<",
"/",
"var",
">",
"remains",
"unchanged",
"else",
"<",
"var",
">",
"array",
"<",
"/",
"var",
">",
"content",
"is",
"altered",
"important",
"notes",
":",
"region",
"filling",
"is",
"performed",
"using",
"<",
"code",
">",
"arraycopy",
"(",
"object",
"int",
"object",
"int",
"int",
")",
"<",
"/",
"code",
">",
"method",
"of",
"<",
"code",
">",
"system",
"<",
"/",
"code",
">",
"class",
"*"
] | [
"int",
"next",
"=",
"array",
"length",
",",
"block",
";",
"if",
"(",
"len",
">",
"0",
")",
"{",
"long",
"temp",
";",
"temp",
"=",
"array",
"[",
"(",
"block",
"=",
"offset",
")",
"+",
"(",
"-",
"-",
"len",
")",
"]",
";",
"if",
"(",
"(",
"next",
"=",
"len",
")",
">",
"2",
")",
"next",
"=",
"3",
";",
"do",
"{",
"array",
"[",
"block",
"+",
"+",
"]",
"=",
"value",
";",
"}",
"while",
"(",
"next",
"-",
"-",
">",
"0",
")",
";",
"len",
"-",
"-",
";",
"next",
"=",
"2",
";",
"while",
"(",
"(",
"len",
"-",
"=",
"next",
")",
">",
"0",
")",
"{",
"if",
"(",
"(",
"block",
"=",
"next",
"<",
"<",
"=",
"1",
")",
">",
"=",
"len",
")",
"next",
"=",
"len",
";",
"system",
"arraycopy",
"(",
"array",
",",
"offset",
",",
"array",
",",
"offset",
"+",
"block",
",",
"next",
")",
";",
"}",
"}"
] |
[
"reverses",
"the",
"elements",
"order",
"in",
"a",
"given",
"array",
"*",
"the",
"first",
"element",
"is",
"exchanged",
"with",
"the",
"least",
"one",
"the",
"second",
"one",
"is",
"exchanged",
"with",
"the",
"element",
"just",
"before",
"the",
"last",
"one",
"etc",
"<",
"var",
">",
"array",
"<",
"/",
"var",
">",
"content",
"is",
"altered",
"*"
] | [
"int",
"offset",
"=",
"0",
",",
"len",
"=",
"array",
"length",
";",
"while",
"(",
"-",
"-",
"len",
">",
"offset",
")",
"{",
"long",
"value",
"=",
"array",
"[",
"offset",
"]",
";",
"array",
"[",
"offset",
"+",
"+",
"]",
"=",
"array",
"[",
"len",
"]",
";",
"array",
"[",
"len",
"]",
"=",
"value",
";",
"}"
] |
[
"adds",
"a",
"given",
"vector",
"(",
"array",
")",
"to",
"another",
"one",
"*",
"every",
"element",
"of",
"the",
"second",
"array",
"(",
"missing",
"element",
"is",
"treated",
"to",
"be",
"zero",
")",
"is",
"added",
"to",
"the",
"corresponding",
"element",
"(",
"if",
"not",
"missing",
")",
"of",
"the",
"first",
"array",
"(",
"overflow",
"is",
"not",
"checked",
")",
"<",
"var",
">",
"array",
"a",
"<",
"/",
"var",
">",
"content",
"is",
"altered",
"*"
] | [
"int",
"offset",
"=",
"array",
"a",
"length",
",",
"len",
";",
"if",
"(",
"array",
"a",
"!",
"=",
"array",
"b",
")",
"{",
"if",
"(",
"(",
"len",
"=",
"array",
"b",
"length",
")",
"<",
"=",
"offset",
")",
"offset",
"=",
"len",
";",
"while",
"(",
"offset",
"-",
"-",
">",
"0",
")",
"array",
"a",
"[",
"offset",
"]",
"+",
"=",
"array",
"b",
"[",
"offset",
"]",
";",
"}",
"while",
"(",
"offset",
"-",
"-",
">",
"0",
")",
"array",
"a",
"[",
"offset",
"]",
"<",
"<",
"=",
"1",
";"
] |
[
"subtracts",
"a",
"given",
"vector",
"(",
"array",
")",
"from",
"another",
"one",
"*",
"every",
"element",
"of",
"the",
"second",
"array",
"(",
"missing",
"element",
"is",
"treated",
"to",
"be",
"zero",
")",
"is",
"subtracted",
"from",
"the",
"corresponding",
"element",
"(",
"if",
"not",
"missing",
")",
"of",
"the",
"first",
"array",
"(",
"overflow",
"is",
"not",
"checked",
")",
"<",
"var",
">",
"array",
"a",
"<",
"/",
"var",
">",
"content",
"is",
"altered",
"*"
] | [
"int",
"offset",
"=",
"array",
"a",
"length",
",",
"len",
";",
"if",
"(",
"array",
"a",
"!",
"=",
"array",
"b",
")",
"{",
"if",
"(",
"(",
"len",
"=",
"array",
"b",
"length",
")",
"<",
"=",
"offset",
")",
"offset",
"=",
"len",
";",
"while",
"(",
"offset",
"-",
"-",
">",
"0",
")",
"array",
"a",
"[",
"offset",
"]",
"-",
"=",
"array",
"b",
"[",
"offset",
"]",
";",
"}",
"while",
"(",
"offset",
"-",
"-",
">",
"0",
")",
"array",
"a",
"[",
"offset",
"]",
"=",
"0l",
";"
] |
[
"multiplies",
"a",
"given",
"vector",
"(",
"array",
")",
"by",
"a",
"value",
"*",
"every",
"element",
"of",
"the",
"specified",
"array",
"is",
"multiplied",
"by",
"<",
"var",
">",
"value",
"<",
"/",
"var",
">",
"(",
"overflow",
"is",
"not",
"checked",
")",
"<",
"var",
">",
"array",
"<",
"/",
"var",
">",
"content",
"is",
"altered",
"*"
] | [
"int",
"offset",
"=",
"array",
"length",
";",
"if",
"(",
"value",
"!",
"=",
"1l",
")",
"{",
"if",
"(",
"value",
"=",
"=",
"0l",
")",
"while",
"(",
"offset",
"-",
"-",
">",
"0",
")",
"array",
"[",
"offset",
"]",
"=",
"0l",
";",
"while",
"(",
"offset",
"-",
"-",
">",
"0",
")",
"array",
"[",
"offset",
"]",
"*",
"=",
"value",
";",
"}"
] |
[
"multiplies",
"two",
"given",
"vectors",
"(",
"arrays",
")",
"in",
"a",
"scalar",
"way",
"*",
"every",
"element",
"of",
"the",
"first",
"array",
"is",
"multiplied",
"by",
"the",
"corresponding",
"element",
"of",
"the",
"second",
"array",
"(",
"missing",
"element",
"is",
"treated",
"to",
"be",
"zero",
")",
"and",
"the",
"results",
"of",
"these",
"multiplications",
"are",
"summed",
"together",
"(",
"overflow",
"is",
"not",
"checked",
")",
"*"
] | [
"int",
"offset",
";",
"long",
"result",
"=",
"0l",
";",
"int",
"len",
"=",
"array",
"a",
"length",
";",
"if",
"(",
"(",
"offset",
"=",
"array",
"b",
"length",
")",
">",
"=",
"len",
")",
"offset",
"=",
"len",
";",
"while",
"(",
"offset",
"-",
"-",
">",
"0",
")",
"result",
"+",
"=",
"array",
"a",
"[",
"offset",
"]",
"*",
"array",
"b",
"[",
"offset",
"]",
";",
"return",
"result",
";"
] |
[
"computes",
"the",
"result",
"of",
"substitution",
"of",
"a",
"given",
"value",
"into",
"the",
"polynome",
"specified",
"by",
"its",
"coefficients",
"*",
"the",
"result",
"is",
"the",
"same",
"as",
"of",
"<",
"code",
">",
"sum",
"(",
"array",
"[",
"index",
"]",
"*",
"power",
"(",
"value",
"index",
")",
")",
"<",
"/",
"code",
">",
"overflow",
"is",
"not",
"checked",
"if",
"<",
"code",
">",
"length",
"<",
"/",
"code",
">",
"of",
"<",
"var",
">",
"array",
"<",
"/",
"var",
">",
"is",
"zero",
"then",
"<",
"code",
">",
"0",
"<",
"/",
"code",
">",
"is",
"returned",
"*"
] | [
"int",
"offset",
"=",
"array",
"length",
"-",
"1",
";",
"long",
"result",
"=",
"0l",
";",
"if",
"(",
"offset",
">",
"=",
"0",
")",
"{",
"if",
"(",
"value",
"=",
"=",
"0l",
")",
"offset",
"=",
"0",
";",
"for",
"(",
"result",
"=",
"array",
"[",
"offset",
"]",
";",
"offset",
">",
"0",
";",
"result",
"=",
"result",
"*",
"value",
"+",
"array",
"[",
"-",
"-",
"offset",
"]",
")",
";",
"}",
"return",
"result",
";"
] |
[
"sums",
"the",
"elements",
"in",
"the",
"region",
"of",
"a",
"given",
"array",
"*",
"negative",
"<",
"var",
">",
"len",
"<",
"/",
"var",
">",
"is",
"treated",
"as",
"zero",
"the",
"sum",
"overflow",
"is",
"not",
"checked",
"*"
] | [
"long",
"result",
"=",
"array",
"length",
";",
"result",
"=",
"0l",
";",
"while",
"(",
"len",
"-",
"-",
">",
"0",
")",
"result",
"+",
"=",
"array",
"[",
"offset",
"+",
"+",
"]",
";",
"return",
"result",
";"
] |
[
"count",
"non",
"-",
"zero",
"elements",
"in",
"a",
"given",
"array",
"*",
"this",
"method",
"returns",
"the",
"count",
"of",
"elements",
"of",
"<",
"var",
">",
"array",
"<",
"/",
"var",
">",
"which",
"are",
"not",
"equal",
"to",
"zero",
"*"
] | [
"int",
"offset",
"=",
"array",
"length",
",",
"count",
"=",
"0",
";",
"while",
"(",
"offset",
"-",
"-",
">",
"0",
")",
"if",
"(",
"array",
"[",
"offset",
"]",
"!",
"=",
"0l",
")",
"count",
"+",
"+",
";",
"return",
"count",
";"
] |
[
"searches",
"forward",
"for",
"value",
"in",
"a",
"given",
"array",
"*",
"negative",
"<",
"var",
">",
"index",
"<",
"/",
"var",
">",
"is",
"treated",
"as",
"zero",
"too",
"big",
"<",
"var",
">",
"index",
"<",
"/",
"var",
">",
"is",
"treated",
"as",
"<",
"code",
">",
"length",
"<",
"/",
"code",
">",
"of",
"<",
"var",
">",
"array",
"<",
"/",
"var",
">",
"if",
"<",
"var",
">",
"value",
"<",
"/",
"var",
">",
"is",
"not",
"found",
"then",
"the",
"result",
"is",
"<",
"code",
">",
"-",
"1",
"<",
"/",
"code",
">",
"*"
] | [
"if",
"(",
"index",
"<",
"=",
"0",
")",
"index",
"=",
"0",
";",
"index",
"-",
"-",
";",
"int",
"len",
"=",
"array",
"length",
";",
"while",
"(",
"+",
"+",
"index",
"<",
"len",
"&",
"&",
"array",
"[",
"index",
"]",
"!",
"=",
"value",
")",
";",
"if",
"(",
"index",
">",
"=",
"len",
")",
"index",
"=",
"-",
"1",
";",
"return",
"index",
";"
] |
[
"searches",
"backward",
"for",
"value",
"in",
"a",
"given",
"array",
"*",
"negative",
"<",
"var",
">",
"index",
"<",
"/",
"var",
">",
"is",
"treated",
"as",
"<",
"code",
">",
"-",
"1",
"<",
"/",
"code",
">",
"too",
"big",
"<",
"var",
">",
"index",
"<",
"/",
"var",
">",
"is",
"treated",
"as",
"<",
"code",
">",
"length",
"<",
"/",
"code",
">",
"of",
"<",
"var",
">",
"array",
"<",
"/",
"var",
">",
"minus",
"one",
"if",
"<",
"var",
">",
"value",
"<",
"/",
"var",
">",
"is",
"not",
"found",
"then",
"the",
"result",
"is",
"<",
"code",
">",
"-",
"1",
"<",
"/",
"code",
">",
"*"
] | [
"if",
"(",
"index",
"<",
"0",
")",
"index",
"=",
"-",
"1",
";",
"int",
"len",
";",
"if",
"(",
"(",
"len",
"=",
"array",
"length",
")",
"<",
"=",
"index",
")",
"index",
"=",
"len",
"-",
"1",
";",
"index",
"+",
"+",
";",
"while",
"(",
"index",
"-",
"-",
">",
"0",
"&",
"&",
"array",
"[",
"index",
"]",
"!",
"=",
"value",
")",
";",
"return",
"index",
";"
] |
[
"searches",
"forward",
"for",
"the",
"specified",
"sequence",
"in",
"a",
"given",
"array",
"*",
"the",
"searched",
"sequence",
"of",
"values",
"is",
"specified",
"by",
"<",
"var",
">",
"sub",
"array",
"<",
"/",
"var",
">",
"<",
"var",
">",
"offset",
"<",
"/",
"var",
">",
"and",
"<",
"var",
">",
"len",
"<",
"/",
"var",
">",
"negative",
"<",
"var",
">",
"len",
"<",
"/",
"var",
">",
"is",
"treated",
"as",
"zero",
"negative",
"<",
"var",
">",
"index",
"<",
"/",
"var",
">",
"is",
"treated",
"as",
"zero",
"too",
"big",
"<",
"var",
">",
"index",
"<",
"/",
"var",
">",
"is",
"treated",
"as",
"<",
"code",
">",
"length",
"<",
"/",
"code",
">",
"of",
"<",
"var",
">",
"array",
"<",
"/",
"var",
">",
"if",
"the",
"sequence",
"is",
"not",
"found",
"then",
"the",
"result",
"is",
"<",
"code",
">",
"-",
"1",
"<",
"/",
"code",
">",
"*"
] | [
"int",
"cur",
"offset",
"=",
"sub",
"array",
"length",
",",
"array",
"len",
"=",
"array",
"length",
";",
"if",
"(",
"index",
"<",
"=",
"0",
")",
"index",
"=",
"0",
";",
"if",
"(",
"len",
">",
"0",
")",
"{",
"array",
"len",
"-",
"=",
"len",
";",
"long",
"value",
"=",
"sub",
"array",
"[",
"offset",
"]",
";",
"cur",
"offset",
"=",
"(",
"int",
")",
"sub",
"array",
"[",
"len",
"+",
"=",
"offset",
"-",
"1",
"]",
";",
"index",
"-",
"-",
";",
"while",
"(",
"+",
"+",
"index",
"<",
"=",
"array",
"len",
")",
"if",
"(",
"array",
"[",
"index",
"]",
"=",
"=",
"value",
")",
"{",
"cur",
"offset",
"=",
"offset",
";",
"int",
"cur",
"index",
"=",
"index",
";",
"while",
"(",
"+",
"+",
"cur",
"offset",
"<",
"=",
"len",
"&",
"&",
"array",
"[",
"+",
"+",
"cur",
"index",
"]",
"=",
"=",
"sub",
"array",
"[",
"cur",
"offset",
"]",
")",
";",
"if",
"(",
"cur",
"offset",
">",
"len",
")",
"break",
";",
"}",
"}",
"if",
"(",
"index",
">",
"array",
"len",
")",
"index",
"=",
"-",
"1",
";",
"return",
"index",
";"
] |
[
"searches",
"backward",
"for",
"the",
"specified",
"sequence",
"in",
"a",
"given",
"array",
"*",
"the",
"searched",
"sequence",
"of",
"values",
"is",
"specified",
"by",
"<",
"var",
">",
"sub",
"array",
"<",
"/",
"var",
">",
"<",
"var",
">",
"offset",
"<",
"/",
"var",
">",
"and",
"<",
"var",
">",
"len",
"<",
"/",
"var",
">",
"negative",
"<",
"var",
">",
"len",
"<",
"/",
"var",
">",
"is",
"treated",
"as",
"zero",
"negative",
"<",
"var",
">",
"index",
"<",
"/",
"var",
">",
"is",
"treated",
"as",
"<",
"code",
">",
"-",
"1",
"<",
"/",
"code",
">",
"too",
"big",
"<",
"var",
">",
"index",
"<",
"/",
"var",
">",
"is",
"treated",
"as",
"<",
"code",
">",
"length",
"<",
"/",
"code",
">",
"of",
"<",
"var",
">",
"array",
"<",
"/",
"var",
">",
"minus",
"one",
"if",
"the",
"sequence",
"is",
"not",
"found",
"then",
"the",
"result",
"is",
"<",
"code",
">",
"-",
"1",
"<",
"/",
"code",
">",
"*"
] | [
"int",
"cur",
"offset",
"=",
"sub",
"array",
"length",
",",
"array",
"len",
";",
"if",
"(",
"len",
"<",
"=",
"0",
")",
"len",
"=",
"0",
";",
"if",
"(",
"(",
"array",
"len",
"=",
"array",
"length",
"-",
"len",
")",
"<",
"=",
"index",
")",
"index",
"=",
"array",
"len",
";",
"if",
"(",
"index",
"<",
"0",
")",
"index",
"=",
"-",
"1",
";",
"if",
"(",
"len",
">",
"0",
")",
"{",
"long",
"value",
"=",
"sub",
"array",
"[",
"offset",
"]",
";",
"cur",
"offset",
"=",
"(",
"int",
")",
"sub",
"array",
"[",
"len",
"+",
"=",
"offset",
"-",
"1",
"]",
";",
"index",
"+",
"+",
";",
"while",
"(",
"index",
"-",
"-",
">",
"0",
")",
"if",
"(",
"array",
"[",
"index",
"]",
"=",
"=",
"value",
")",
"{",
"cur",
"offset",
"=",
"offset",
";",
"array",
"len",
"=",
"index",
";",
"while",
"(",
"+",
"+",
"cur",
"offset",
"<",
"=",
"len",
"&",
"&",
"array",
"[",
"+",
"+",
"array",
"len",
"]",
"=",
"=",
"sub",
"array",
"[",
"cur",
"offset",
"]",
")",
";",
"if",
"(",
"cur",
"offset",
">",
"len",
")",
"break",
";",
"}",
"}",
"return",
"index",
";"
] |
[
"converts",
"the",
"region",
"of",
"a",
"given",
"array",
"to",
"its",
"in",
"-",
"line",
"string",
"representation",
"*",
"the",
"decimal",
"string",
"representations",
"of",
"signed",
"or",
"unsigned",
"<",
"code",
">",
"long",
"<",
"/",
"code",
">",
"values",
"(",
"of",
"the",
"specified",
"region",
"of",
"<",
"var",
">",
"array",
"<",
"/",
"var",
">",
")",
"are",
"placed",
"into",
"the",
"resulting",
"string",
"in",
"the",
"direct",
"index",
"order",
"delimited",
"by",
"a",
"single",
"<",
"var",
">",
"separator",
"<",
"/",
"var",
">",
"character",
"negative",
"<",
"var",
">",
"len",
"<",
"/",
"var",
">",
"is",
"treated",
"as",
"zero",
"*"
] | [
"int",
"digit",
"=",
"array",
"length",
";",
"long",
"value",
";",
"digit",
"=",
"0",
";",
"if",
"(",
"len",
">",
"0",
")",
"{",
"value",
"=",
"array",
"[",
"offset",
"]",
";",
"value",
"=",
"array",
"[",
"offset",
"+",
"len",
"-",
"1",
"]",
";",
"if",
"(",
"(",
"digit",
"=",
"len",
"<",
"<",
"2",
")",
"<",
"=",
"24",
")",
"digit",
"=",
"24",
";",
"}",
"string",
"buffer",
"s",
"buf",
"=",
"new",
"string",
"buffer",
"(",
"digit",
")",
";",
"if",
"(",
"len",
">",
"0",
")",
"do",
"{",
"if",
"(",
"(",
"value",
"=",
"array",
"[",
"offset",
"+",
"+",
"]",
")",
"<",
"0l",
"&",
"&",
"!",
"is",
"unsigned",
")",
"{",
"value",
"=",
"-",
"value",
";",
"s",
"buf",
"append",
"(",
"'",
"-",
"'",
")",
";",
"}",
"long",
"shift",
",",
"max",
",",
"prev",
"=",
"0l",
";",
"if",
"(",
"value",
"-",
"(",
"max",
"=",
"(",
"(",
"value",
">",
">",
">",
"1",
")",
"/",
"(",
"'",
"9",
"'",
"-",
"'",
"0",
"'",
"+",
"1",
")",
")",
"<",
"<",
"1",
")",
"*",
"(",
"'",
"9",
"'",
"-",
"'",
"0",
"'",
"+",
"1",
")",
">",
"'",
"9",
"'",
"-",
"'",
"0",
"'",
")",
"max",
"+",
"+",
";",
"for",
"(",
"shift",
"=",
"1l",
";",
"max",
">",
"0l",
";",
"shift",
"*",
"=",
"'",
"9",
"'",
"-",
"'",
"0",
"'",
"+",
"1",
")",
"{",
"max",
"/",
"=",
"'",
"9",
"'",
"-",
"'",
"0",
"'",
"+",
"1",
";",
"prev",
"=",
"shift",
";",
"}",
"digit",
"=",
"0",
";",
"if",
"(",
"shift",
"<",
"0l",
"|",
"|",
"(",
"value",
"-",
"=",
"(",
"digit",
"=",
"(",
"int",
")",
"(",
"(",
"value",
">",
">",
">",
"1",
")",
"/",
"shift",
")",
"<",
"<",
"1",
")",
"*",
"shift",
")",
">",
"=",
"shift",
")",
"{",
"value",
"-",
"=",
"shift",
";",
"digit",
"+",
"+",
";",
"}",
"shift",
"=",
"prev",
";",
"do",
"{",
"s",
"buf",
"append",
"(",
"(",
"char",
")",
"(",
"digit",
"+",
"'",
"0",
"'",
")",
")",
";",
"if",
"(",
"shift",
"<",
"=",
"0l",
")",
"break",
";",
"value",
"-",
"=",
"(",
"digit",
"=",
"(",
"int",
")",
"(",
"value",
"/",
"shift",
")",
")",
"*",
"shift",
";",
"shift",
"/",
"=",
"'",
"9",
"'",
"-",
"'",
"0",
"'",
"+",
"1",
";",
"}",
"while",
"(",
"true",
")",
";",
"if",
"(",
"-",
"-",
"len",
"<",
"=",
"0",
")",
"break",
";",
"s",
"buf",
"append",
"(",
"separator",
")",
";",
"}",
"while",
"(",
"true",
")",
";",
"return",
"new",
"string",
"(",
"s",
"buf",
")",
";"
] |
[
"produces",
"a",
"hash",
"code",
"value",
"for",
"a",
"given",
"array",
"*",
"this",
"method",
"mixes",
"hash",
"codes",
"of",
"all",
"the",
"elements",
"of",
"<",
"var",
">",
"array",
"<",
"/",
"var",
">",
"to",
"produce",
"a",
"single",
"hash",
"code",
"value",
"*"
] | [
"int",
"code",
"=",
"0",
",",
"offset",
"=",
"0",
";",
"long",
"value",
";",
"for",
"(",
"int",
"len",
"=",
"array",
"length",
";",
"offset",
"<",
"len",
";",
"code",
"=",
"(",
"code",
"<",
"<",
"5",
")",
"-",
"code",
")",
"{",
"value",
"=",
"array",
"[",
"offset",
"+",
"+",
"]",
";",
"code",
"^",
"=",
"(",
"int",
")",
"(",
"(",
"value",
">",
">",
"(",
"java",
"consts",
"int",
"size",
"-",
"1",
")",
")",
">",
">",
"1",
")",
"^",
"(",
"int",
")",
"value",
";",
"}",
"return",
"code",
"^",
"offset",
";"
] |
[
"tests",
"whether",
"or",
"not",
"the",
"specified",
"two",
"arrays",
"are",
"equal",
"*",
"this",
"method",
"returns",
"<",
"code",
">",
"true",
"<",
"/",
"code",
">",
"if",
"and",
"only",
"if",
"both",
"of",
"the",
"arrays",
"are",
"of",
"the",
"same",
"length",
"and",
"all",
"the",
"elements",
"of",
"the",
"first",
"array",
"are",
"equal",
"to",
"the",
"corresponding",
"elements",
"of",
"the",
"second",
"array",
"*"
] | [
"int",
"offset",
"=",
"array",
"a",
"length",
";",
"if",
"(",
"array",
"a",
"!",
"=",
"array",
"b",
")",
"if",
"(",
"array",
"b",
"length",
"!",
"=",
"offset",
")",
"return",
"false",
";",
"else",
"while",
"(",
"offset",
"-",
"-",
">",
"0",
")",
"if",
"(",
"array",
"a",
"[",
"offset",
"]",
"!",
"=",
"array",
"b",
"[",
"offset",
"]",
")",
"return",
"false",
";",
"return",
"true",
";"
] |
[
"count",
"the",
"mismatches",
"of",
"two",
"given",
"array",
"regions",
"*",
"this",
"method",
"returns",
"the",
"count",
"of",
"elements",
"of",
"the",
"first",
"array",
"region",
"which",
"are",
"not",
"equal",
"to",
"the",
"corresponding",
"elements",
"of",
"the",
"second",
"array",
"region",
"negative",
"<",
"var",
">",
"len",
"<",
"/",
"var",
">",
"is",
"treated",
"as",
"zero",
"*"
] | [
"int",
"count",
"=",
"array",
"a",
"length",
"-",
"array",
"b",
"length",
";",
"count",
"=",
"0",
";",
"if",
"(",
"len",
">",
"0",
")",
"{",
"long",
"value",
"=",
"array",
"a",
"[",
"offset",
"a",
"]",
";",
"value",
"=",
"array",
"a",
"[",
"offset",
"a",
"+",
"len",
"-",
"1",
"]",
";",
"value",
"=",
"array",
"b",
"[",
"offset",
"b",
"]",
";",
"value",
"=",
"array",
"b",
"[",
"offset",
"b",
"+",
"len",
"-",
"1",
"]",
";",
"if",
"(",
"offset",
"a",
"!",
"=",
"offset",
"b",
"|",
"|",
"array",
"a",
"!",
"=",
"array",
"b",
")",
"do",
"{",
"if",
"(",
"array",
"a",
"[",
"offset",
"a",
"+",
"+",
"]",
"!",
"=",
"array",
"b",
"[",
"offset",
"b",
"+",
"+",
"]",
")",
"count",
"+",
"+",
";",
"}",
"while",
"(",
"-",
"-",
"len",
">",
"0",
")",
";",
"}",
"return",
"count",
";"
] |
[
"compares",
"two",
"given",
"array",
"regions",
"*",
"this",
"method",
"returns",
"a",
"signed",
"integer",
"indicating",
"less",
"-",
"equal",
"-",
"greater",
"relation",
"between",
"the",
"specified",
"array",
"regions",
"of",
"signed",
"or",
"unsigned",
"<",
"code",
">",
"long",
"<",
"/",
"code",
">",
"values",
"(",
"the",
"absolute",
"value",
"of",
"the",
"result",
"in",
"fact",
"is",
"the",
"distance",
"between",
"the",
"first",
"found",
"mismatch",
"and",
"the",
"end",
"of",
"the",
"bigger",
"-",
"length",
"region",
")",
"negative",
"<",
"var",
">",
"len",
"a",
"<",
"/",
"var",
">",
"is",
"treated",
"as",
"zero",
"negative",
"<",
"var",
">",
"len",
"b",
"<",
"/",
"var",
">",
"is",
"treated",
"as",
"zero",
"important",
"notes",
":",
"the",
"content",
"of",
"array",
"regions",
"is",
"compared",
"before",
"comparing",
"their",
"length",
"*"
] | [
"long",
"value",
"=",
"array",
"a",
"length",
"-",
"array",
"b",
"length",
";",
"if",
"(",
"len",
"a",
">",
"0",
")",
"{",
"value",
"=",
"array",
"a",
"[",
"offset",
"a",
"]",
";",
"value",
"=",
"array",
"a",
"[",
"offset",
"a",
"+",
"len",
"a",
"-",
"1",
"]",
";",
"}",
"else",
"len",
"a",
"=",
"0",
";",
"if",
"(",
"len",
"b",
">",
"0",
")",
"{",
"value",
"=",
"array",
"b",
"[",
"offset",
"b",
"]",
";",
"value",
"=",
"array",
"b",
"[",
"offset",
"b",
"+",
"len",
"b",
"-",
"1",
"]",
";",
"}",
"else",
"len",
"b",
"=",
"0",
";",
"if",
"(",
"(",
"len",
"b",
"=",
"len",
"a",
"-",
"len",
"b",
")",
">",
"=",
"0",
")",
"len",
"a",
"-",
"=",
"len",
"b",
";",
"if",
"(",
"offset",
"a",
"!",
"=",
"offset",
"b",
"|",
"|",
"array",
"a",
"!",
"=",
"array",
"b",
")",
"while",
"(",
"len",
"a",
">",
"0",
")",
"{",
"long",
"temp",
"=",
"array",
"b",
"[",
"offset",
"b",
"+",
"+",
"]",
";",
"if",
"(",
"(",
"value",
"=",
"array",
"a",
"[",
"offset",
"a",
"+",
"+",
"]",
")",
"!",
"=",
"temp",
")",
"{",
"if",
"(",
"len",
"b",
"<",
"=",
"0",
")",
"len",
"b",
"=",
"-",
"len",
"b",
";",
"len",
"b",
"+",
"=",
"len",
"a",
";",
"if",
"(",
"is",
"unsigned",
"&",
"&",
"(",
"value",
"^",
"temp",
")",
"<",
"0l",
")",
"{",
"value",
"=",
"temp",
";",
"temp",
"=",
"0l",
";",
"}",
"if",
"(",
"value",
">",
"=",
"temp",
")",
"break",
";",
"len",
"b",
"=",
"-",
"len",
"b",
";",
"break",
";",
"}",
"len",
"a",
"-",
"-",
";",
"}",
"return",
"len",
"b",
";"
] |
[
"sorts",
"the",
"elements",
"in",
"the",
"region",
"of",
"a",
"given",
"array",
"using",
"quick",
"algorithm",
"*",
"elements",
"in",
"the",
"region",
"are",
"sorted",
"into",
"ascending",
"signed",
"or",
"unsigned",
"order",
"but",
"equal",
"elements",
"may",
"be",
"reordered",
"(",
"since",
"the",
"algorithm",
"is",
"not",
"stable",
")",
"a",
"small",
"working",
"stack",
"is",
"allocated",
"(",
"since",
"the",
"algorithm",
"is",
"in",
"-",
"place",
"and",
"recursive",
")",
"the",
"algorithm",
"cost",
"is",
"<",
"code",
">",
"o",
"(",
"log",
"(",
"len",
")",
"*",
"len",
")",
"<",
"/",
"code",
">",
"typically",
"but",
"may",
"be",
"of",
"<",
"code",
">",
"o",
"(",
"len",
"*",
"len",
")",
"<",
"/",
"code",
">",
"in",
"the",
"worst",
"case",
"(",
"which",
"is",
"rare",
"in",
"fact",
")",
"negative",
"<",
"var",
">",
"len",
"<",
"/",
"var",
">",
"is",
"treated",
"as",
"zero",
"if",
"an",
"exception",
"is",
"thrown",
"then",
"<",
"var",
">",
"array",
"<",
"/",
"var",
">",
"remains",
"unchanged",
"else",
"the",
"region",
"content",
"is",
"altered",
"*"
] | [
"if",
"(",
"len",
">",
"0",
")",
"{",
"long",
"value",
"=",
"array",
"[",
"offset",
"]",
",",
"temp",
";",
"if",
"(",
"len",
">",
"1",
")",
"{",
"value",
"=",
"array",
"[",
"len",
"+",
"=",
"offset",
"-",
"1",
"]",
";",
"int",
"[",
"]",
"bounds",
"=",
"new",
"int",
"[",
"(",
"java",
"consts",
"int",
"size",
"-",
"2",
")",
"<",
"<",
"1",
"]",
";",
"int",
"level",
"=",
"2",
",",
"index",
",",
"last",
";",
"if",
"(",
"is",
"unsigned",
")",
"{",
"index",
"=",
"offset",
"-",
"-",
";",
"last",
"=",
"len",
";",
"do",
"{",
"while",
"(",
"+",
"+",
"offset",
"<",
"len",
"&",
"&",
"array",
"[",
"offset",
"]",
">",
"=",
"0l",
")",
";",
"len",
"+",
"+",
";",
"while",
"(",
"-",
"-",
"len",
">",
"=",
"offset",
"&",
"&",
"array",
"[",
"len",
"]",
"<",
"0l",
")",
";",
"if",
"(",
"offset",
">",
"=",
"len",
")",
"break",
";",
"value",
"=",
"array",
"[",
"len",
"]",
";",
"array",
"[",
"len",
"-",
"-",
"]",
"=",
"array",
"[",
"offset",
"]",
";",
"array",
"[",
"offset",
"]",
"=",
"value",
";",
"}",
"while",
"(",
"true",
")",
";",
"offset",
"=",
"index",
";",
"if",
"(",
"(",
"index",
"=",
"len",
"+",
"1",
")",
"<",
"last",
")",
"if",
"(",
"offset",
"<",
"len",
")",
"{",
"bounds",
"[",
"2",
"]",
"=",
"index",
";",
"bounds",
"[",
"3",
"]",
"=",
"last",
";",
"level",
"=",
"4",
";",
"}",
"else",
"{",
"offset",
"=",
"index",
";",
"len",
"=",
"last",
";",
"}",
"else",
"if",
"(",
"offset",
">",
"=",
"len",
")",
"return",
";",
"}",
"do",
"{",
"do",
"{",
"index",
"=",
"offset",
";",
"if",
"(",
"(",
"last",
"=",
"len",
")",
"-",
"offset",
"<",
"8",
")",
"{",
"len",
"=",
"offset",
";",
"do",
"{",
"value",
"=",
"array",
"[",
"offset",
"=",
"+",
"+",
"index",
"]",
";",
"do",
"{",
"if",
"(",
"!",
"(",
"(",
"temp",
"=",
"array",
"[",
"offset",
"-",
"1",
"]",
")",
">",
"value",
")",
")",
"break",
";",
"array",
"[",
"offset",
"-",
"-",
"]",
"=",
"temp",
";",
"}",
"while",
"(",
"offset",
">",
"len",
")",
";",
"array",
"[",
"offset",
"]",
"=",
"value",
";",
"}",
"while",
"(",
"index",
"<",
"last",
")",
";",
"break",
";",
"}",
"value",
"=",
"array",
"[",
"len",
"=",
"(",
"offset",
"+",
"len",
")",
">",
">",
">",
"1",
"]",
";",
"array",
"[",
"len",
"]",
"=",
"array",
"[",
"offset",
"]",
";",
"array",
"[",
"offset",
"]",
"=",
"value",
";",
"len",
"=",
"last",
";",
"do",
"{",
"while",
"(",
"+",
"+",
"offset",
"<",
"len",
"&",
"&",
"value",
">",
"array",
"[",
"offset",
"]",
")",
";",
"len",
"+",
"+",
";",
"while",
"(",
"-",
"-",
"len",
">",
"=",
"offset",
"&",
"&",
"array",
"[",
"len",
"]",
">",
"value",
")",
";",
"if",
"(",
"offset",
">",
"=",
"len",
")",
"break",
";",
"temp",
"=",
"array",
"[",
"len",
"]",
";",
"array",
"[",
"len",
"-",
"-",
"]",
"=",
"array",
"[",
"offset",
"]",
";",
"array",
"[",
"offset",
"]",
"=",
"temp",
";",
"}",
"while",
"(",
"true",
")",
";",
"array",
"[",
"offset",
"=",
"index",
"]",
"=",
"array",
"[",
"len",
"]",
";",
"array",
"[",
"len",
"]",
"=",
"value",
";",
"if",
"(",
"len",
"-",
"offset",
">",
"last",
"-",
"len",
")",
"{",
"offset",
"=",
"len",
"+",
"1",
";",
"len",
"=",
"last",
";",
"last",
"=",
"offset",
"-",
"2",
";",
"}",
"else",
"index",
"=",
"(",
"len",
"-",
"-",
")",
"+",
"1",
";",
"bounds",
"[",
"level",
"+",
"+",
"]",
"=",
"index",
";",
"bounds",
"[",
"level",
"+",
"+",
"]",
"=",
"last",
";",
"}",
"while",
"(",
"offset",
"<",
"len",
")",
";",
"len",
"=",
"bounds",
"[",
"-",
"-",
"level",
"]",
";",
"offset",
"=",
"bounds",
"[",
"-",
"-",
"level",
"]",
";",
"}",
"while",
"(",
"level",
">",
"0",
")",
";",
"}",
"}",
"len",
"=",
"array",
"length",
";"
] |
[
"searches",
"(",
"fast",
")",
"for",
"value",
"in",
"a",
"given",
"sorted",
"array",
"*",
"<",
"var",
">",
"array",
"<",
"/",
"var",
">",
"(",
"or",
"its",
"specified",
"range",
")",
"must",
"be",
"sorted",
"ascending",
"or",
"the",
"result",
"is",
"undefined",
"the",
"algorithm",
"cost",
"is",
"of",
"<",
"code",
">",
"o",
"(",
"log",
"(",
"len",
")",
")",
"<",
"/",
"code",
">",
"negative",
"<",
"var",
">",
"len",
"<",
"/",
"var",
">",
"is",
"treated",
"as",
"zero",
"if",
"<",
"var",
">",
"value",
"<",
"/",
"var",
">",
"is",
"not",
"found",
"then",
"<",
"code",
">",
"(",
"-",
"result",
"-",
"1",
")",
"<",
"/",
"code",
">",
"is",
"the",
"offset",
"of",
"the",
"insertion",
"point",
"for",
"<",
"var",
">",
"value",
"<",
"/",
"var",
">",
"*"
] | [
"if",
"(",
"len",
">",
"0",
")",
"{",
"int",
"middle",
";",
"long",
"temp",
"=",
"array",
"[",
"offset",
"]",
";",
"temp",
"=",
"array",
"[",
"len",
"+",
"=",
"offset",
"-",
"1",
"]",
";",
"if",
"(",
"!",
"is",
"unsigned",
")",
"do",
"{",
"if",
"(",
"(",
"temp",
"=",
"array",
"[",
"middle",
"=",
"(",
"offset",
"+",
"len",
")",
">",
">",
">",
"1",
"]",
")",
">",
"value",
")",
"len",
"=",
"middle",
"-",
"1",
";",
"else",
"if",
"(",
"temp",
"!",
"=",
"value",
")",
"offset",
"=",
"middle",
"+",
"1",
";",
"else",
"break",
";",
"}",
"while",
"(",
"offset",
"<",
"=",
"len",
")",
";",
"else",
"if",
"(",
"value",
">",
"=",
"0l",
")",
"do",
"{",
"temp",
"=",
"array",
"[",
"middle",
"=",
"(",
"offset",
"+",
"len",
")",
">",
">",
">",
"1",
"]",
";",
"if",
"(",
"(",
"(",
"value",
"-",
"temp",
")",
"|",
"temp",
")",
"<",
"0l",
")",
"len",
"=",
"middle",
"-",
"1",
";",
"else",
"if",
"(",
"temp",
"!",
"=",
"value",
")",
"offset",
"=",
"middle",
"+",
"1",
";",
"else",
"break",
";",
"}",
"while",
"(",
"offset",
"<",
"=",
"len",
")",
";",
"else",
"do",
"{",
"temp",
"=",
"array",
"[",
"middle",
"=",
"(",
"offset",
"+",
"len",
")",
">",
">",
">",
"1",
"]",
";",
"if",
"(",
"(",
"(",
"value",
"-",
"temp",
")",
"&",
"temp",
")",
"<",
"0l",
")",
"len",
"=",
"middle",
"-",
"1",
";",
"else",
"if",
"(",
"temp",
"!",
"=",
"value",
")",
"offset",
"=",
"middle",
"+",
"1",
";",
"else",
"break",
";",
"}",
"while",
"(",
"offset",
"<",
"=",
"len",
")",
";",
"if",
"(",
"offset",
"<",
"=",
"len",
")",
"offset",
"=",
"~",
"middle",
";",
"}",
"len",
"=",
"array",
"length",
";",
"return",
"~",
"offset",
";"
] |
[
"indicates",
"whether",
"<",
"code",
">",
"this",
"<",
"/",
"code",
">",
"object",
"is",
"equal",
"to",
"the",
"specified",
"one",
"*",
"this",
"method",
"returns",
"<",
"code",
">",
"true",
"<",
"/",
"code",
">",
"if",
"and",
"only",
"if",
"<",
"var",
">",
"obj",
"<",
"/",
"var",
">",
"is",
"instance",
"of",
"this",
"vector",
"class",
"and",
"all",
"elements",
"of",
"<",
"code",
">",
"this",
"<",
"/",
"code",
">",
"vector",
"are",
"equal",
"to",
"the",
"corresponding",
"elements",
"of",
"<",
"var",
">",
"obj",
"<",
"/",
"var",
">",
"vector",
"*"
] | [
"return",
"obj",
"=",
"=",
"this",
"|",
"|",
"obj",
"instanceof",
"long",
"vector",
"&",
"&",
"equals",
"(",
"this",
"array",
",",
"(",
"(",
"long",
"vector",
")",
"obj",
")",
"array",
")",
";"
] |
[
"tests",
"for",
"being",
"semantically",
"greater",
"than",
"the",
"argument",
"*",
"the",
"result",
"is",
"<",
"code",
">",
"true",
"<",
"/",
"code",
">",
"if",
"and",
"only",
"if",
"<",
"var",
">",
"obj",
"<",
"/",
"var",
">",
"is",
"instance",
"of",
"<",
"code",
">",
"this",
"<",
"/",
"code",
">",
"class",
"and",
"<",
"code",
">",
"this",
"<",
"/",
"code",
">",
"object",
"is",
"greater",
"than",
"the",
"specified",
"object",
"vectors",
"are",
"compared",
"in",
"the",
"element",
"-",
"by",
"-",
"element",
"(",
"signed",
")",
"manner",
"starting",
"at",
"index",
"<",
"code",
">",
"0",
"<",
"/",
"code",
">",
"*"
] | [
"if",
"(",
"obj",
"!",
"=",
"this",
"&",
"&",
"obj",
"instanceof",
"long",
"vector",
")",
"{",
"long",
"[",
"]",
"array",
"=",
"this",
"array",
",",
"other",
"array",
"=",
"(",
"(",
"long",
"vector",
")",
"obj",
")",
"array",
";",
"if",
"(",
"compare",
"(",
"array",
",",
"0",
",",
"array",
"length",
",",
"other",
"array",
",",
"0",
",",
"other",
"array",
"length",
",",
"false",
")",
">",
"0",
")",
"return",
"true",
";",
"}",
"return",
"false",
";"
] |
[
"converts",
"<",
"code",
">",
"this",
"<",
"/",
"code",
">",
"vector",
"to",
"its",
"in",
"-",
"line",
"string",
"representation",
"*",
"the",
"decimal",
"string",
"representations",
"of",
"signed",
"<",
"code",
">",
"long",
"<",
"/",
"code",
">",
"values",
"of",
"the",
"wrapped",
"<",
"var",
">",
"array",
"<",
"/",
"var",
">",
"are",
"placed",
"into",
"the",
"resulting",
"string",
"in",
"the",
"direct",
"index",
"order",
"delimited",
"by",
"a",
"single",
"space",
"*"
] | [
"long",
"[",
"]",
"array",
"=",
"this",
"array",
";",
"return",
"to",
"string",
"(",
"array",
",",
"0",
",",
"array",
"length",
",",
"'",
"'",
",",
"false",
")",
";"
] |
[
"create",
"a",
"socket",
"channel"
] | [
"socket",
"channel",
"sock",
";",
"sock",
"=",
"socket",
"channel",
"open",
"(",
")",
";",
"sock",
"configure",
"blocking",
"(",
"false",
")",
";",
"sock",
"socket",
"(",
")",
"set",
"so",
"linger",
"(",
"false",
",",
"-",
"1",
")",
";",
"sock",
"socket",
"(",
")",
"set",
"tcp",
"no",
"delay",
"(",
"true",
")",
";",
"return",
"sock",
";"
] |
[
"register",
"with",
"the",
"selection",
"and",
"connect"
] | [
"sock",
"key",
"=",
"sock",
"register",
"(",
"selector",
",",
"selection",
"key",
"op",
"connect",
")",
";",
"boolean",
"immediate",
"connect",
"=",
"sock",
"connect",
"(",
"addr",
")",
";",
"if",
"(",
"immediate",
"connect",
")",
"{",
"send",
"thread",
"prime",
"connection",
"(",
")",
";",
"}"
] |
[
"returns",
"the",
"address",
"to",
"which",
"the",
"socket",
"is",
"connected"
] | [
"return",
"remote",
"socket",
"address",
";"
] |
[
"returns",
"the",
"local",
"address",
"to",
"which",
"the",
"socket",
"is",
"bound"
] | [
"return",
"local",
"socket",
"address",
";"
] |
[
"enter",
"a",
"loop",
"processing",
"incoming",
"frames",
"until",
"orderly",
"shutdown",
"or",
"a",
"socket",
"exception",
"is",
"thrown",
"this",
"method",
"returns",
"normally",
"on",
"orderly",
"shutdown",
"throws",
"otherwise"
] | [
"frame",
"frame",
"=",
"new",
"frame",
"(",
")",
";",
"do",
"{",
"frame",
"read",
"from",
"(",
"m",
"buffered",
"input",
")",
";",
"m",
"current",
"payload",
"write",
"(",
"frame",
"payload",
"data",
",",
"0",
",",
"(",
"int",
")",
"frame",
"payload",
"len",
")",
";",
"if",
"(",
"frame",
"fin",
")",
"{",
"byte",
"[",
"]",
"complete",
"payload",
"=",
"m",
"current",
"payload",
"to",
"byte",
"array",
"(",
")",
";",
"read",
"callback",
"on",
"complete",
"frame",
"(",
"frame",
"opcode",
",",
"complete",
"payload",
",",
"complete",
"payload",
"length",
")",
";",
"m",
"current",
"payload",
"reset",
"(",
")",
";",
"}",
"}",
"while",
"(",
"frame",
"opcode",
"!",
"=",
"frame",
"opcode",
"connection",
"close",
")",
";"
] |
[
"{"
] | [
"authorize",
"(",
"ctx",
",",
"security",
"permission",
"cache",
"read",
")",
";",
"ignite",
"cache",
"cache",
"=",
"filter",
"platform",
"=",
"=",
"filter",
"platform",
"java",
"&",
"&",
"!",
"is",
"keep",
"binary",
"(",
")",
"?",
"raw",
"cache",
"(",
"ctx",
")",
":",
"cache",
"(",
"ctx",
")",
";",
"scan",
"query",
"qry",
"=",
"new",
"scan",
"query",
"(",
")",
"set",
"local",
"(",
"loc",
")",
"set",
"page",
"size",
"(",
"page",
"size",
")",
"set",
"partition",
"(",
"part",
")",
"set",
"filter",
"(",
"create",
"filter",
"(",
"ctx",
")",
")",
";",
"ctx",
"increment",
"cursors",
"(",
")",
";",
"try",
"{",
"query",
"cursor",
"cur",
"=",
"cache",
"query",
"(",
"qry",
")",
";",
"client",
"cache",
"entry",
"query",
"cursor",
"cli",
"cur",
"=",
"new",
"client",
"cache",
"entry",
"query",
"cursor",
"(",
"cur",
",",
"page",
"size",
",",
"ctx",
")",
";",
"long",
"cursor",
"id",
"=",
"ctx",
"resources",
"(",
")",
"put",
"(",
"cli",
"cur",
")",
";",
"cli",
"cur",
"id",
"(",
"cursor",
"id",
")",
";",
"return",
"new",
"client",
"cache",
"query",
"response",
"(",
"request",
"id",
"(",
")",
",",
"cli",
"cur",
")",
";",
"}",
"catch",
"(",
"exception",
"e",
")",
"{",
"ctx",
"decrement",
"cursors",
"(",
")",
";",
"throw",
"e",
";",
"}"
] |
[
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-"
] | [
"return",
"class",
"for",
"name",
"(",
"class",
"name",
")",
";"
] |
[
"ignores",
"fields",
"fields",
"are",
"not",
"copied",
"to",
"the",
"destination"
] | [
"return",
"null",
";"
] |
[
"finalizes",
"creation",
"of",
"destination",
"proxy",
"class"
] | [
"make",
"static",
"init",
"block",
"(",
")",
";",
"make",
"proxy",
"constructor",
"(",
")",
";",
"process",
"super",
"methods",
"(",
")",
";",
"wd",
"dest",
"visit",
"end",
"(",
")",
";"
] |
[
"creates",
"static",
"initialization",
"block",
"that",
"simply",
"calls",
"all",
"advice",
"static",
"init",
"methods",
"in",
"correct",
"order"
] | [
"if",
"(",
"wd",
"advice",
"clinits",
"!",
"=",
"null",
")",
"{",
"method",
"visitor",
"mv",
"=",
"wd",
"dest",
"visit",
"method",
"(",
"asm",
"util",
"acc",
"static",
",",
"clinit",
",",
"desc",
"void",
",",
"null",
",",
"null",
")",
";",
"mv",
"visit",
"code",
"(",
")",
";",
"for",
"(",
"string",
"name",
":",
"wd",
"advice",
"clinits",
")",
"{",
"mv",
"visit",
"method",
"insn",
"(",
"invokestatic",
",",
"wd",
"this",
"reference",
",",
"name",
",",
"desc",
"void",
",",
"false",
")",
";",
"}",
"mv",
"visit",
"insn",
"(",
"return",
")",
";",
"mv",
"visit",
"maxs",
"(",
"0",
",",
"0",
")",
";",
"mv",
"visit",
"end",
"(",
")",
";",
"}"
] |
[
"creates",
"init",
"method",
"that",
"simply",
"calls",
"all",
"advice",
"constructor",
"methods",
"in",
"correct",
"order",
"this",
"created",
"init",
"method",
"is",
"called",
"from",
"each",
"destination",
"s",
"constructor"
] | [
"method",
"visitor",
"mv",
"=",
"wd",
"dest",
"visit",
"method",
"(",
"asm",
"util",
"acc",
"private",
"|",
"asm",
"util",
"acc",
"final",
",",
"proxetta",
"names",
"init",
"method",
"name",
",",
"desc",
"void",
",",
"null",
",",
"null",
")",
";",
"mv",
"visit",
"code",
"(",
")",
";",
"if",
"(",
"wd",
"advice",
"inits",
"!",
"=",
"null",
")",
"{",
"for",
"(",
"string",
"name",
":",
"wd",
"advice",
"inits",
")",
"{",
"mv",
"visit",
"var",
"insn",
"(",
"aload",
",",
"0",
")",
";",
"mv",
"visit",
"method",
"insn",
"(",
"invokespecial",
",",
"wd",
"this",
"reference",
",",
"name",
",",
"desc",
"void",
",",
"false",
")",
";",
"}",
"}",
"mv",
"visit",
"insn",
"(",
"return",
")",
";",
"mv",
"visit",
"maxs",
"(",
"0",
",",
"0",
")",
";",
"mv",
"visit",
"end",
"(",
")",
";"
] |
[
"checks",
"for",
"all",
"public",
"super",
"methods",
"that",
"are",
"not",
"overridden"
] | [
"for",
"(",
"class",
"reader",
"cr",
":",
"target",
"class",
"info",
"super",
"class",
"readers",
")",
"{",
"cr",
"accept",
"(",
"new",
"empty",
"class",
"visitor",
"(",
")",
"{",
"string",
"declared",
"class",
"name",
";",
"@",
"override",
"public",
"void",
"visit",
"(",
"final",
"int",
"version",
",",
"final",
"int",
"access",
",",
"final",
"string",
"name",
",",
"final",
"string",
"signature",
",",
"final",
"string",
"super",
"name",
",",
"final",
"string",
"[",
"]",
"interfaces",
")",
"{",
"declared",
"class",
"name",
"=",
"name",
";",
"}",
"@",
"override",
"public",
"method",
"visitor",
"visit",
"method",
"(",
"final",
"int",
"access",
",",
"final",
"string",
"name",
",",
"final",
"string",
"desc",
",",
"final",
"string",
"signature",
",",
"final",
"string",
"[",
"]",
"exceptions",
")",
"{",
"if",
"(",
"name",
"equals",
"(",
"init",
")",
"|",
"|",
"name",
"equals",
"(",
"clinit",
")",
")",
"{",
"return",
"null",
";",
"}",
"method",
"signature",
"visitor",
"msign",
"=",
"target",
"class",
"info",
"lookup",
"method",
"signature",
"visitor",
"(",
"access",
",",
"name",
",",
"desc",
",",
"declared",
"class",
"name",
")",
";",
"if",
"(",
"msign",
"=",
"=",
"null",
")",
"{",
"return",
"null",
";",
"}",
"return",
"apply",
"proxy",
"(",
"msign",
")",
";",
"}",
"}",
",",
"0",
")",
";",
"}"
] |
[
"matches",
"pointcuts",
"on",
"method",
"if",
"no",
"pointcut",
"found",
"returns",
"<",
"code",
">",
"null",
"<",
"/",
"code",
">"
] | [
"list",
"<",
"proxy",
"aspect",
"data",
">",
"aspect",
"list",
"=",
"null",
";",
"for",
"(",
"proxy",
"aspect",
"data",
"aspect",
"data",
":",
"wd",
"proxy",
"aspects",
")",
"{",
"if",
"(",
"aspect",
"data",
"apply",
"(",
"msign",
")",
")",
"{",
"if",
"(",
"aspect",
"list",
"=",
"=",
"null",
")",
"{",
"aspect",
"list",
"=",
"new",
"array",
"list",
"<",
">",
"(",
"wd",
"proxy",
"aspects",
"length",
")",
";",
"}",
"aspect",
"list",
"add",
"(",
"aspect",
"data",
")",
";",
"}",
"}",
"return",
"aspect",
"list",
";"
] |
[
"adds",
"32",
"-",
"bit",
"integer",
"to",
"output"
] | [
"m",
"storage",
"write",
"(",
"event",
"type",
"int",
")",
";",
"write",
"4",
"bytes",
"(",
"val",
")",
";"
] |
[
"adds",
"64",
"-",
"bit",
"long",
"to",
"output"
] | [
"m",
"storage",
"write",
"(",
"event",
"type",
"long",
")",
";",
"write",
"8",
"bytes",
"(",
"val",
")",
";"
] |
[
"adds",
"a",
"4",
"-",
"byte",
"floating",
"point",
"value",
"to",
"output"
] | [
"int",
"v",
"=",
"float",
"float",
"to",
"int",
"bits",
"(",
"val",
")",
";",
"m",
"storage",
"write",
"(",
"event",
"type",
"float",
")",
";",
"write",
"4",
"bytes",
"(",
"v",
")",
";"
] |
[
"adds",
"a",
"string",
"to",
"the",
"output"
] | [
"m",
"storage",
"write",
"(",
"event",
"type",
"string",
")",
";",
"write",
"4",
"bytes",
"(",
"val",
"length",
"(",
")",
")",
";",
"byte",
"[",
"]",
"bytes",
"=",
"val",
"get",
"bytes",
"(",
"standard",
"charsets",
"utf",
"8",
")",
";",
"m",
"storage",
"write",
"(",
"bytes",
",",
"0",
",",
"bytes",
"length",
")",
";"
] |
[
"used",
"to",
"print",
"out",
"token",
"names",
"like",
"id",
"during",
"debugging",
"and",
"error",
"reporting",
"the",
"generated",
"parsers",
"implement",
"a",
"method",
"that",
"overrides",
"this",
"to",
"point",
"to",
"their",
"string",
"[",
"]",
"token",
"names"
] | [
"@",
"deprecated",
"public",
"abstract",
"string",
"[",
"]",
"get",
"token",
"names",
"(",
")",
";"
] |
[
"for",
"debugging",
"and",
"other",
"purposes",
"might",
"want",
"the",
"grammar",
"name",
"have",
"antlr",
"generate",
"an",
"implementation",
"for",
"this",
"method"
] | [
"public",
"abstract",
"string",
"get",
"grammar",
"file",
"name",
"(",
")",
";"
] |
[
"get",
"the",
"atn",
"interpreter",
"used",
"by",
"the",
"recognizer",
"for",
"prediction"
] | [
"return",
"interp",
";"
] |
[
"if",
"profiling",
"during",
"the",
"parse",
"/",
"lex",
"this",
"will",
"return",
"decision",
"info",
"records",
"for",
"each",
"decision",
"in",
"recognizer",
"in",
"a",
"parse",
"info",
"object"
] | [
"return",
"null",
";"
] |
[
"set",
"the",
"atn",
"interpreter",
"used",
"by",
"the",
"recognizer",
"for",
"prediction"
] | [
"interp",
"=",
"interpreter",
";"
] |
[
"that",
"the",
"atn",
"interp",
"needs",
"to",
"execute"
] | [
"return",
"true",
";"
] |
[
"marks",
"that",
"there",
"are",
"no",
"more",
"keys",
"to",
"be",
"claimed",
"in",
"the",
"range"
] | [
"last",
"attempted",
"key",
"=",
"range",
"get",
"end",
"key",
"(",
")",
";"
] |
[
"calculates",
"the",
"next",
"{"
] | [
"return",
"byte",
"key",
"copy",
"from",
"(",
"bytes",
"concat",
"(",
"key",
"get",
"bytes",
"(",
")",
",",
"zero",
"byte",
"array",
")",
")",
";"
] |
[
"write",
"{",
"@",
"code",
"name",
"i",
"d",
"type",
"}",
"to",
"stream"
] | [
"stax",
"util",
"write",
"start",
"element",
"(",
"writer",
",",
"tag",
"get",
"prefix",
"(",
")",
",",
"tag",
"get",
"local",
"part",
"(",
")",
",",
"tag",
"get",
"namespace",
"u",
"r",
"i",
"(",
")",
")",
";",
"stax",
"util",
"write",
"name",
"space",
"(",
"writer",
",",
"assertion",
"prefix",
",",
"assertion",
"nsuri",
"get",
"(",
")",
")",
";",
"uri",
"format",
"=",
"name",
"i",
"d",
"type",
"get",
"format",
"(",
")",
";",
"if",
"(",
"format",
"!",
"=",
"null",
")",
"{",
"stax",
"util",
"write",
"attribute",
"(",
"writer",
",",
"j",
"boss",
"s",
"a",
"m",
"l",
"constants",
"format",
"get",
"(",
")",
",",
"format",
"to",
"a",
"s",
"c",
"i",
"i",
"string",
"(",
")",
")",
";",
"}",
"string",
"sp",
"provided",
"i",
"d",
"=",
"name",
"i",
"d",
"type",
"get",
"s",
"p",
"provided",
"i",
"d",
"(",
")",
";",
"if",
"(",
"string",
"util",
"is",
"not",
"null",
"(",
"sp",
"provided",
"i",
"d",
")",
")",
"{",
"stax",
"util",
"write",
"attribute",
"(",
"writer",
",",
"j",
"boss",
"s",
"a",
"m",
"l",
"constants",
"sp",
"provided",
"id",
"get",
"(",
")",
",",
"sp",
"provided",
"i",
"d",
")",
";",
"}",
"string",
"sp",
"name",
"qualifier",
"=",
"name",
"i",
"d",
"type",
"get",
"s",
"p",
"name",
"qualifier",
"(",
")",
";",
"if",
"(",
"string",
"util",
"is",
"not",
"null",
"(",
"sp",
"name",
"qualifier",
")",
")",
"{",
"stax",
"util",
"write",
"attribute",
"(",
"writer",
",",
"j",
"boss",
"s",
"a",
"m",
"l",
"constants",
"sp",
"name",
"qualifier",
"get",
"(",
")",
",",
"sp",
"name",
"qualifier",
")",
";",
"}",
"string",
"name",
"qualifier",
"=",
"name",
"i",
"d",
"type",
"get",
"name",
"qualifier",
"(",
")",
";",
"if",
"(",
"string",
"util",
"is",
"not",
"null",
"(",
"name",
"qualifier",
")",
")",
"{",
"stax",
"util",
"write",
"attribute",
"(",
"writer",
",",
"j",
"boss",
"s",
"a",
"m",
"l",
"constants",
"name",
"qualifier",
"get",
"(",
")",
",",
"name",
"qualifier",
")",
";",
"}",
"string",
"value",
"=",
"name",
"i",
"d",
"type",
"get",
"value",
"(",
")",
";",
"if",
"(",
"string",
"util",
"is",
"not",
"null",
"(",
"value",
")",
")",
"{",
"stax",
"util",
"write",
"characters",
"(",
"writer",
",",
"value",
")",
";",
"}",
"stax",
"util",
"write",
"end",
"element",
"(",
"writer",
")",
";",
"stax",
"util",
"flush",
"(",
"writer",
")",
";"
] |
[
"write",
"an",
"{",
"@",
"code",
"attribute",
"type",
"}",
"to",
"stream"
] | [
"stax",
"util",
"write",
"start",
"element",
"(",
"writer",
",",
"assertion",
"prefix",
",",
"j",
"boss",
"s",
"a",
"m",
"l",
"constants",
"attribute",
"get",
"(",
")",
",",
"assertion",
"nsuri",
"get",
"(",
")",
")",
";",
"write",
"attribute",
"type",
"without",
"root",
"tag",
"(",
"attribute",
"type",
")",
";",
"stax",
"util",
"write",
"end",
"element",
"(",
"writer",
")",
";",
"stax",
"util",
"flush",
"(",
"writer",
")",
";"
] |
[
"guard",
"duty",
"finding",
"activity",
"type"
] | [
"set",
"action",
"type",
"(",
"action",
"type",
")",
";",
"return",
"this",
";"
] |
[
"information",
"about",
"the",
"aws",
"api",
"call",
"action",
"described",
"in",
"this",
"finding"
] | [
"this",
"aws",
"api",
"call",
"action",
"=",
"aws",
"api",
"call",
"action",
";"
] |
[
"information",
"about",
"the",
"aws",
"api",
"call",
"action",
"described",
"in",
"this",
"finding"
] | [
"return",
"this",
"aws",
"api",
"call",
"action",
";"
] |
[
"information",
"about",
"the",
"aws",
"api",
"call",
"action",
"described",
"in",
"this",
"finding"
] | [
"set",
"aws",
"api",
"call",
"action",
"(",
"aws",
"api",
"call",
"action",
")",
";",
"return",
"this",
";"
] |
[
"information",
"about",
"the",
"dns",
"request",
"action",
"described",
"in",
"this",
"finding"
] | [
"this",
"dns",
"request",
"action",
"=",
"dns",
"request",
"action",
";"
] |
[
"information",
"about",
"the",
"dns",
"request",
"action",
"described",
"in",
"this",
"finding"
] | [
"return",
"this",
"dns",
"request",
"action",
";"
] |
[
"information",
"about",
"the",
"dns",
"request",
"action",
"described",
"in",
"this",
"finding"
] | [
"set",
"dns",
"request",
"action",
"(",
"dns",
"request",
"action",
")",
";",
"return",
"this",
";"
] |
[
"information",
"about",
"the",
"network",
"connection",
"action",
"described",
"in",
"this",
"finding"
] | [
"this",
"network",
"connection",
"action",
"=",
"network",
"connection",
"action",
";"
] |
[
"information",
"about",
"the",
"network",
"connection",
"action",
"described",
"in",
"this",
"finding"
] | [
"return",
"this",
"network",
"connection",
"action",
";"
] |
[
"information",
"about",
"the",
"network",
"connection",
"action",
"described",
"in",
"this",
"finding"
] | [
"set",
"network",
"connection",
"action",
"(",
"network",
"connection",
"action",
")",
";",
"return",
"this",
";"
] |
[
"information",
"about",
"the",
"port",
"probe",
"action",
"described",
"in",
"this",
"finding"
] | [
"this",
"port",
"probe",
"action",
"=",
"port",
"probe",
"action",
";"
] |
[
"information",
"about",
"the",
"port",
"probe",
"action",
"described",
"in",
"this",
"finding"
] | [
"return",
"this",
"port",
"probe",
"action",
";"
] |
[
"information",
"about",
"the",
"port",
"probe",
"action",
"described",
"in",
"this",
"finding"
] | [
"set",
"port",
"probe",
"action",
"(",
"port",
"probe",
"action",
")",
";",
"return",
"this",
";"
] |
[
"initialises",
"the",
"puzzle",
"and",
"solution",
"set",
"at",
"[",
"0",
"0",
"]"
] | [
"solve",
"(",
"0x",
"0",
"0",
"0",
"2",
"0",
"0",
"4",
"0",
"0",
"8",
"0",
"1",
"0",
"0",
"2",
"0",
"l",
",",
"0",
",",
"0",
")",
";",
"return",
"solutions",
";"
] |
[
"serializes",
"the",
"current",
"solution",
"to",
"a",
"string"
] | [
"char",
"[",
"]",
"puzzle",
"=",
"new",
"char",
"[",
"50",
"]",
";",
"shape",
"shape",
";",
"int",
"row",
";",
"int",
"col",
";",
"for",
"(",
"entry",
"entry",
":",
"solution",
")",
"{",
"shape",
"=",
"entry",
"shape",
";",
"row",
"=",
"entry",
"row",
";",
"col",
"=",
"entry",
"col",
";",
"for",
"(",
"int",
"[",
"]",
"xy",
":",
"shape",
"vector",
")",
"puzzle",
"[",
"5",
"*",
"(",
"row",
"+",
"xy",
"[",
"0",
"]",
")",
"+",
"(",
"col",
"+",
"xy",
"[",
"1",
"]",
")",
"/",
"2",
"]",
"=",
"shape",
"symbol",
";",
"}",
"return",
"new",
"string",
"(",
"puzzle",
")",
";"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.