docstring_tokens list | code_tokens list |
|---|---|
[
"indicate",
"that",
"source",
"should",
"be",
"returned",
"with",
"every",
"hit",
"with",
"an",
"include",
"and",
"/",
"or",
"exclude",
"set",
"which",
"can",
"include",
"simple",
"wildcard",
"elements"
] | [
"request",
"fetch",
"source",
"(",
"include",
",",
"exclude",
")",
";",
"return",
"this",
";"
] |
[
"indicate",
"that",
"source",
"should",
"be",
"returned",
"with",
"an",
"include",
"and",
"/",
"or",
"exclude",
"set",
"which",
"can",
"include",
"simple",
"wildcard",
"elements"
] | [
"request",
"fetch",
"source",
"(",
"includes",
",",
"excludes",
")",
";",
"return",
"this",
";"
] |
[
"indicates",
"whether",
"the",
"response",
"should",
"contain",
"the",
"updated",
"source"
] | [
"request",
"fetch",
"source",
"(",
"fetch",
"source",
")",
";",
"return",
"this",
";"
] |
[
"sets",
"the",
"number",
"of",
"retries",
"of",
"a",
"version",
"conflict",
"occurs",
"because",
"the",
"document",
"was",
"updated",
"between",
"getting",
"it",
"and",
"updating",
"it",
"defaults",
"to",
"0"
] | [
"request",
"retry",
"on",
"conflict",
"(",
"retry",
"on",
"conflict",
")",
";",
"return",
"this",
";"
] |
[
"sets",
"the",
"version",
"which",
"will",
"cause",
"the",
"index",
"operation",
"to",
"only",
"be",
"performed",
"if",
"a",
"matching",
"version",
"exists",
"and",
"no",
"changes",
"happened",
"on",
"the",
"doc",
"since",
"then"
] | [
"request",
"version",
"(",
"version",
")",
";",
"return",
"this",
";"
] |
[
"sets",
"the",
"versioning",
"type",
"defaults",
"to",
"{"
] | [
"request",
"version",
"type",
"(",
"version",
"type",
")",
";",
"return",
"this",
";"
] |
[
"sets",
"the",
"number",
"of",
"shard",
"copies",
"that",
"must",
"be",
"active",
"before",
"proceeding",
"with",
"the",
"write",
"see",
"{"
] | [
"request",
"wait",
"for",
"active",
"shards",
"(",
"wait",
"for",
"active",
"shards",
")",
";",
"return",
"this",
";"
] |
[
"a",
"shortcut",
"for",
"{"
] | [
"return",
"set",
"wait",
"for",
"active",
"shards",
"(",
"active",
"shard",
"count",
"from",
"(",
"wait",
"for",
"active",
"shards",
")",
")",
";"
] |
[
"sets",
"the",
"doc",
"to",
"use",
"for",
"updates",
"when",
"a",
"script",
"is",
"not",
"specified"
] | [
"request",
"doc",
"(",
"index",
"request",
")",
";",
"return",
"this",
";"
] |
[
"sets",
"the",
"doc",
"to",
"use",
"for",
"updates",
"when",
"a",
"script",
"is",
"not",
"specified"
] | [
"request",
"doc",
"(",
"source",
")",
";",
"return",
"this",
";"
] |
[
"sets",
"the",
"doc",
"to",
"use",
"for",
"updates",
"when",
"a",
"script",
"is",
"not",
"specified"
] | [
"request",
"doc",
"(",
"source",
")",
";",
"return",
"this",
";"
] |
[
"sets",
"the",
"doc",
"to",
"use",
"for",
"updates",
"when",
"a",
"script",
"is",
"not",
"specified"
] | [
"request",
"doc",
"(",
"source",
",",
"content",
"type",
")",
";",
"return",
"this",
";"
] |
[
"sets",
"the",
"doc",
"to",
"use",
"for",
"updates",
"when",
"a",
"script",
"is",
"not",
"specified"
] | [
"request",
"doc",
"(",
"source",
",",
"x",
"content",
"type",
")",
";",
"return",
"this",
";"
] |
[
"sets",
"the",
"doc",
"to",
"use",
"for",
"updates",
"when",
"a",
"script",
"is",
"not",
"specified"
] | [
"request",
"doc",
"(",
"source",
",",
"x",
"content",
"type",
")",
";",
"return",
"this",
";"
] |
[
"sets",
"the",
"doc",
"to",
"use",
"for",
"updates",
"when",
"a",
"script",
"is",
"not",
"specified"
] | [
"request",
"doc",
"(",
"source",
",",
"offset",
",",
"length",
",",
"x",
"content",
"type",
")",
";",
"return",
"this",
";"
] |
[
"sets",
"the",
"doc",
"to",
"use",
"for",
"updates",
"when",
"a",
"script",
"is",
"not",
"specified",
"the",
"doc",
"provided",
"is",
"a",
"field",
"and",
"value",
"pairs"
] | [
"request",
"doc",
"(",
"source",
")",
";",
"return",
"this",
";"
] |
[
"sets",
"the",
"doc",
"to",
"use",
"for",
"updates",
"when",
"a",
"script",
"is",
"not",
"specified",
"the",
"doc",
"provided",
"is",
"a",
"field",
"and",
"value",
"pairs"
] | [
"request",
"doc",
"(",
"x",
"content",
"type",
",",
"source",
")",
";",
"return",
"this",
";"
] |
[
"sets",
"the",
"index",
"request",
"to",
"be",
"used",
"if",
"the",
"document",
"does",
"not",
"exists",
"otherwise",
"a",
"{"
] | [
"request",
"upsert",
"(",
"index",
"request",
")",
";",
"return",
"this",
";"
] |
[
"sets",
"the",
"doc",
"source",
"of",
"the",
"update",
"request",
"to",
"be",
"used",
"when",
"the",
"document",
"does",
"not",
"exists"
] | [
"request",
"upsert",
"(",
"source",
")",
";",
"return",
"this",
";"
] |
[
"sets",
"the",
"doc",
"source",
"of",
"the",
"update",
"request",
"to",
"be",
"used",
"when",
"the",
"document",
"does",
"not",
"exists"
] | [
"request",
"upsert",
"(",
"source",
")",
";",
"return",
"this",
";"
] |
[
"sets",
"the",
"doc",
"source",
"of",
"the",
"update",
"request",
"to",
"be",
"used",
"when",
"the",
"document",
"does",
"not",
"exists"
] | [
"request",
"upsert",
"(",
"source",
",",
"content",
"type",
")",
";",
"return",
"this",
";"
] |
[
"sets",
"the",
"doc",
"source",
"of",
"the",
"update",
"request",
"to",
"be",
"used",
"when",
"the",
"document",
"does",
"not",
"exists"
] | [
"request",
"upsert",
"(",
"source",
",",
"x",
"content",
"type",
")",
";",
"return",
"this",
";"
] |
[
"sets",
"the",
"doc",
"source",
"of",
"the",
"update",
"request",
"to",
"be",
"used",
"when",
"the",
"document",
"does",
"not",
"exists"
] | [
"request",
"upsert",
"(",
"source",
",",
"x",
"content",
"type",
")",
";",
"return",
"this",
";"
] |
[
"sets",
"the",
"doc",
"source",
"of",
"the",
"update",
"request",
"to",
"be",
"used",
"when",
"the",
"document",
"does",
"not",
"exists"
] | [
"request",
"upsert",
"(",
"source",
",",
"offset",
",",
"length",
",",
"x",
"content",
"type",
")",
";",
"return",
"this",
";"
] |
[
"sets",
"the",
"doc",
"source",
"of",
"the",
"update",
"request",
"to",
"be",
"used",
"when",
"the",
"document",
"does",
"not",
"exists",
"the",
"doc",
"includes",
"field",
"and",
"value",
"pairs"
] | [
"request",
"upsert",
"(",
"source",
")",
";",
"return",
"this",
";"
] |
[
"sets",
"the",
"doc",
"source",
"of",
"the",
"update",
"request",
"to",
"be",
"used",
"when",
"the",
"document",
"does",
"not",
"exists",
"the",
"doc",
"includes",
"field",
"and",
"value",
"pairs"
] | [
"request",
"upsert",
"(",
"x",
"content",
"type",
",",
"source",
")",
";",
"return",
"this",
";"
] |
[
"sets",
"whether",
"the",
"specified",
"doc",
"parameter",
"should",
"be",
"used",
"as",
"upsert",
"document"
] | [
"request",
"doc",
"as",
"upsert",
"(",
"should",
"upsert",
"doc",
")",
";",
"return",
"this",
";"
] |
[
"sets",
"whether",
"to",
"perform",
"extra",
"effort",
"to",
"detect",
"noop",
"updates",
"via",
"doc",
"as",
"upsert",
"defaults",
"to",
"true"
] | [
"request",
"detect",
"noop",
"(",
"detect",
"noop",
")",
";",
"return",
"this",
";"
] |
[
"sets",
"whether",
"the",
"script",
"should",
"be",
"run",
"in",
"the",
"case",
"of",
"an",
"insert"
] | [
"request",
"scripted",
"upsert",
"(",
"scripted",
"upsert",
")",
";",
"return",
"this",
";"
] |
[
"sets",
"a",
"listener",
"to",
"be",
"notified",
"when",
"a",
"share",
"target",
"has",
"been",
"selected",
"the",
"listener",
"can",
"optionally",
"decide",
"to",
"handle",
"the",
"selection",
"and",
"not",
"rely",
"on",
"the",
"default",
"behavior",
"which... | [
"m",
"on",
"share",
"target",
"selected",
"listener",
"=",
"listener",
";",
"set",
"activity",
"chooser",
"policy",
"if",
"needed",
"(",
")",
";"
] |
[
"{"
] | [
"return",
"true",
";"
] |
[
"sets",
"the",
"file",
"name",
"of",
"a",
"file",
"for",
"persisting",
"the",
"share",
"history",
"which",
"history",
"will",
"be",
"used",
"for",
"ordering",
"share",
"targets",
"this",
"file",
"will",
"be",
"used",
"for",
"all",
"view",
"created",
"by",
... | [
"m",
"share",
"history",
"file",
"name",
"=",
"share",
"history",
"file",
";",
"set",
"activity",
"chooser",
"policy",
"if",
"needed",
"(",
")",
";"
] |
[
"sets",
"an",
"intent",
"with",
"information",
"about",
"the",
"share",
"action",
"here",
"is",
"a",
"sample",
"for",
"constructing",
"a",
"share",
"intent",
":",
"<",
"p",
">",
"<",
"pre",
">",
"<",
"code",
">",
"intent",
"share",
"intent",
"=",
"new"... | [
"activity",
"chooser",
"model",
"data",
"model",
"=",
"activity",
"chooser",
"model",
"get",
"(",
"m",
"context",
",",
"m",
"share",
"history",
"file",
"name",
")",
";",
"data",
"model",
"set",
"intent",
"(",
"share",
"intent",
")",
";"
] |
[
"set",
"the",
"activity",
"chooser",
"policy",
"of",
"the",
"model",
"backed",
"by",
"the",
"current",
"share",
"history",
"file",
"if",
"needed",
"which",
"is",
"if",
"there",
"is",
"a",
"registered",
"callback"
] | [
"if",
"(",
"m",
"on",
"share",
"target",
"selected",
"listener",
"=",
"=",
"null",
")",
"{",
"return",
";",
"}",
"if",
"(",
"m",
"on",
"choose",
"activity",
"listener",
"=",
"=",
"null",
")",
"{",
"m",
"on",
"choose",
"activity",
"listener",
"=",
"... |
[
"split",
"the",
"input",
"using",
"configured",
"pattern"
] | [
"return",
"new",
"pattern",
"tokenizer",
"(",
"factory",
",",
"pattern",
",",
"group",
")",
";"
] |
[
"<",
"p",
">",
"the",
"size",
"of",
"the",
"array",
"if",
"this",
"is",
"an",
"array",
"batch",
"job",
"valid",
"values",
"are",
"integers",
"between",
"2",
"and",
"10",
"000",
"<",
"/",
"p",
">"
] | [
"this",
"size",
"=",
"size",
";"
] |
[
"<",
"p",
">",
"the",
"size",
"of",
"the",
"array",
"if",
"this",
"is",
"an",
"array",
"batch",
"job",
"valid",
"values",
"are",
"integers",
"between",
"2",
"and",
"10",
"000",
"<",
"/",
"p",
">"
] | [
"return",
"this",
"size",
";"
] |
[
"<",
"p",
">",
"the",
"size",
"of",
"the",
"array",
"job",
"<",
"/",
"p",
">"
] | [
"set",
"size",
"(",
"size",
")",
";",
"return",
"this",
";"
] |
[
"if",
"the",
"member",
"variable",
"represented",
"by",
"this",
"instance",
"is",
"an",
"array",
"this",
"method",
"returns",
"the",
"number",
"of",
"elements",
"in",
"that",
"array"
] | [
"return",
"number",
"of",
"elements",
";"
] |
[
"writes",
"the",
"given",
"string",
"to",
"the",
"given",
"file"
] | [
"output",
"stream",
"writer",
"writer",
"=",
"new",
"output",
"stream",
"writer",
"(",
"file",
"system",
"create",
"(",
"file",
")",
")",
";",
"writer",
"write",
"(",
"content",
")",
";",
"writer",
"close",
"(",
")",
";"
] |
[
"gets",
"whether",
"to",
"include",
"the",
"timing",
"information",
"in",
"the",
"result",
"information",
"defaults",
"to",
"true"
] | [
"return",
"verbose",
";"
] |
[
"<",
"p",
">",
"is",
"<",
"code",
">",
"true",
"<",
"/",
"code",
">",
"if",
"the",
"request",
"succeeds",
"and",
"an",
"error",
"otherwise",
"<",
"/",
"p",
">"
] | [
"this",
"return",
"value",
"=",
"return",
"value",
";"
] |
[
"<",
"p",
">",
"is",
"<",
"code",
">",
"true",
"<",
"/",
"code",
">",
"if",
"the",
"request",
"succeeds",
"and",
"an",
"error",
"otherwise",
"<",
"/",
"p",
">"
] | [
"return",
"this",
"return",
"value",
";"
] |
[
"<",
"p",
">",
"returns",
"<",
"code",
">",
"true",
"<",
"/",
"code",
">",
"if",
"the",
"request",
"succeeds",
";",
"otherwise",
"it",
"returns",
"an",
"error",
"<",
"/",
"p",
">"
] | [
"set",
"return",
"(",
"return",
"value",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"is",
"<",
"code",
">",
"true",
"<",
"/",
"code",
">",
"if",
"the",
"request",
"succeeds",
"and",
"an",
"error",
"otherwise",
"<",
"/",
"p",
">"
] | [
"return",
"this",
"return",
"value",
";"
] |
[
"<",
"p",
">",
"the",
"name",
"of",
"the",
"project",
"containing",
"the",
"placement",
"<",
"/",
"p",
">"
] | [
"this",
"project",
"name",
"=",
"project",
"name",
";"
] |
[
"<",
"p",
">",
"the",
"name",
"of",
"the",
"project",
"containing",
"the",
"placement",
"<",
"/",
"p",
">"
] | [
"return",
"this",
"project",
"name",
";"
] |
[
"<",
"p",
">",
"the",
"name",
"of",
"the",
"aws",
"code",
"build",
"project",
"<",
"/",
"p",
">"
] | [
"set",
"project",
"name",
"(",
"project",
"name",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"a",
"regular",
"expression",
"used",
"to",
"determine",
"which",
"branches",
"in",
"a",
"repository",
"are",
"built",
"when",
"a",
"webhook",
"is",
"triggered",
"if",
"the",
"name",
"of",
"a",
"branch",
"matches",
"the",
"regular",
"express... | [
"this",
"branch",
"filter",
"=",
"branch",
"filter",
";"
] |
[
"<",
"p",
">",
"a",
"regular",
"expression",
"used",
"to",
"determine",
"which",
"branches",
"in",
"a",
"repository",
"are",
"built",
"when",
"a",
"webhook",
"is",
"triggered",
"if",
"the",
"name",
"of",
"a",
"branch",
"matches",
"the",
"regular",
"express... | [
"return",
"this",
"branch",
"filter",
";"
] |
[
"<",
"p",
">",
"a",
"regular",
"expression",
"used",
"to",
"determine",
"which",
"branches",
"in",
"a",
"repository",
"are",
"built",
"when",
"a",
"webhook",
"is",
"triggered",
"if",
"the",
"name",
"of",
"a",
"branch",
"matches",
"the",
"regular",
"express... | [
"set",
"branch",
"filter",
"(",
"branch",
"filter",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"a",
"boolean",
"value",
"that",
"specifies",
"whether",
"the",
"associated",
"repository",
"s",
"secret",
"token",
"should",
"be",
"updated",
"<",
"/",
"p",
">"
] | [
"this",
"rotate",
"secret",
"=",
"rotate",
"secret",
";"
] |
[
"<",
"p",
">",
"a",
"boolean",
"value",
"that",
"specifies",
"whether",
"the",
"associated",
"repository",
"s",
"secret",
"token",
"should",
"be",
"updated",
"<",
"/",
"p",
">"
] | [
"return",
"this",
"rotate",
"secret",
";"
] |
[
"<",
"p",
">",
"a",
"boolean",
"value",
"that",
"specifies",
"whether",
"the",
"associated",
"repository",
"s",
"secret",
"token",
"should",
"be",
"updated",
"<",
"/",
"p",
">"
] | [
"set",
"rotate",
"secret",
"(",
"rotate",
"secret",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"a",
"boolean",
"value",
"that",
"specifies",
"whether",
"the",
"associated",
"repository",
"s",
"secret",
"token",
"should",
"be",
"updated",
"<",
"/",
"p",
">"
] | [
"return",
"this",
"rotate",
"secret",
";"
] |
[
"blast",
"some",
"random",
"strings",
"through",
"the",
"analyzer"
] | [
"check",
"random",
"data",
"(",
"random",
"(",
")",
",",
"analyzer",
",",
"1000",
"*",
"random",
"multiplier",
")",
";"
] |
[
"tests",
"whether",
"the",
"first",
"specified",
"unsigned",
"integer",
"is",
"greater",
"than",
"the",
"second",
"one",
"*"
] | [
"if",
"(",
"(",
"unsigned",
"a",
"^",
"unsigned",
"b",
")",
">",
"=",
"0",
")",
"unsigned",
"a",
"=",
"unsigned",
"b",
"-",
"unsigned",
"a",
";",
"return",
"unsigned",
"a",
"<",
"0",
";"
] |
[
"tests",
"whether",
"the",
"first",
"specified",
"unsigned",
"integer",
"is",
"greater",
"or",
"equal",
"to",
"the",
"second",
"one",
"*"
] | [
"if",
"(",
"(",
"unsigned",
"a",
"^",
"unsigned",
"b",
")",
">",
"=",
"0",
")",
"unsigned",
"b",
"=",
"unsigned",
"a",
"-",
"unsigned",
"b",
";",
"return",
"unsigned",
"b",
">",
"=",
"0",
";"
] |
[
"compares",
"two",
"given",
"unsigned",
"integer",
"values",
"*",
"this",
"method",
"returns",
"a",
"signed",
"integer",
"indicating",
"less",
"-",
"equal",
"-",
"greater",
"relation",
"between",
"the",
"specified",
"<",
"code",
">",
"int",
"<",
"/",
"code",... | [
"int",
"cmp",
"=",
"unsigned",
"b",
"|",
"1",
";",
"if",
"(",
"(",
"unsigned",
"a",
"^",
"unsigned",
"b",
")",
">",
"=",
"0",
")",
"cmp",
"=",
"unsigned",
"a",
"-",
"unsigned",
"b",
";",
"return",
"cmp",
";"
] |
[
"compares",
"two",
"given",
"(",
"signed",
")",
"integer",
"values",
"*",
"this",
"method",
"returns",
"a",
"signed",
"integer",
"indicating",
"less",
"-",
"equal",
"-",
"greater",
"relation",
"between",
"the",
"specified",
"<",
"code",
">",
"int",
"<",
"/... | [
"int",
"cmp",
"=",
"value",
"a",
"|",
"1",
";",
"if",
"(",
"(",
"value",
"a",
"^",
"value",
"b",
")",
">",
"=",
"0",
")",
"cmp",
"=",
"value",
"a",
"-",
"value",
"b",
";",
"return",
"cmp",
";"
] |
[
"returns",
"the",
"minimum",
"of",
"two",
"given",
"unsigned",
"integer",
"values",
"*"
] | [
"int",
"delta",
"=",
"unsigned",
"b",
";",
"if",
"(",
"(",
"unsigned",
"a",
"^",
"unsigned",
"b",
")",
">",
"=",
"0",
")",
"delta",
"=",
"unsigned",
"a",
"-",
"unsigned",
"b",
";",
"if",
"(",
"delta",
">",
"=",
"0",
")",
"unsigned",
"a",
"=",
... |
[
"returns",
"the",
"maximum",
"of",
"two",
"given",
"unsigned",
"integer",
"values",
"*"
] | [
"int",
"delta",
"=",
"unsigned",
"b",
";",
"if",
"(",
"(",
"unsigned",
"a",
"^",
"unsigned",
"b",
")",
">",
"=",
"0",
")",
"delta",
"=",
"unsigned",
"a",
"-",
"unsigned",
"b",
";",
"if",
"(",
"delta",
">",
"=",
"0",
")",
"unsigned",
"b",
"=",
... |
[
"returns",
"the",
"median",
"(",
"middle",
"value",
")",
"of",
"three",
"given",
"unsigned",
"integer",
"values",
"*"
] | [
"int",
"delta",
";",
"if",
"(",
"(",
"(",
"delta",
"=",
"unsigned",
"a",
")",
"^",
"unsigned",
"b",
")",
">",
"=",
"0",
")",
"delta",
"=",
"unsigned",
"b",
"-",
"unsigned",
"a",
";",
"if",
"(",
"delta",
">",
"=",
"0",
")",
"{",
"delta",
"=",
... |
[
"returns",
"the",
"median",
"(",
"middle",
"value",
")",
"of",
"three",
"given",
"(",
"signed",
")",
"integer",
"values",
"*"
] | [
"if",
"(",
"value",
"a",
"<",
"=",
"value",
"b",
")",
"{",
"int",
"delta",
"=",
"value",
"a",
";",
"value",
"a",
"=",
"value",
"b",
";",
"value",
"b",
"=",
"delta",
";",
"}",
"if",
"(",
"value",
"a",
">",
"=",
"value",
"c",
"&",
"&",
"(",
... |
[
"returns",
"the",
"highest",
"half",
"of",
"long",
"(",
"full",
")",
"product",
"of",
"two",
"given",
"unsigned",
"integers",
"*"
] | [
"if",
"(",
"java",
"consts",
"long",
"size",
">",
">",
"1",
">",
"=",
"java",
"consts",
"int",
"size",
")",
"return",
"(",
"int",
")",
"(",
"(",
"(",
"unsigned",
"a",
"&",
"java",
"consts",
"int",
"lmask",
")",
"*",
"(",
"unsigned",
"b",
"&",
"... |
[
"returns",
"the",
"lowest",
"half",
"of",
"long",
"(",
"full",
")",
"product",
"of",
"two",
"given",
"unsigned",
"integers",
"*"
] | [
"return",
"unsigned",
"a",
"*",
"unsigned",
"b",
";"
] |
[
"returns",
"the",
"product",
"of",
"two",
"given",
"unsigned",
"<",
"code",
">",
"int",
"<",
"/",
"code",
">",
"values",
"extended",
"to",
"<",
"code",
">",
"long",
"<",
"/",
"code",
">",
"type",
"*"
] | [
"return",
"(",
"unsigned",
"a",
"&",
"java",
"consts",
"int",
"lmask",
")",
"*",
"(",
"unsigned",
"b",
"&",
"java",
"consts",
"int",
"lmask",
")",
";"
] |
[
"returns",
"the",
"result",
"of",
"integer",
"division",
"of",
"one",
"given",
"unsigned",
"value",
"by",
"another",
"one",
"*"
] | [
"int",
"unsigned",
"res",
"=",
"0",
";",
"if",
"(",
"unsigned",
"a",
">",
"=",
"0",
")",
"{",
"if",
"(",
"unsigned",
"b",
">",
"=",
"0",
")",
"unsigned",
"res",
"=",
"unsigned",
"a",
"/",
"unsigned",
"b",
";",
"}",
"else",
"if",
"(",
"unsigned"... |
[
"returns",
"the",
"result",
"of",
"integer",
"division",
"of",
"one",
"given",
"unsigned",
"<",
"code",
">",
"long",
"<",
"/",
"code",
">",
"value",
"by",
"another",
"unsigned",
"<",
"code",
">",
"int",
"<",
"/",
"code",
">",
"value",
"*"
] | [
"long",
"unsigned",
"long",
"res",
",",
"long",
"b",
"=",
"unsigned",
"b",
"&",
"java",
"consts",
"int",
"lmask",
";",
"if",
"(",
"unsigned",
"long",
"a",
">",
"=",
"0l",
")",
"unsigned",
"long",
"res",
"=",
"unsigned",
"long",
"a",
"/",
"long",
"b... |
[
"returns",
"the",
"highest",
"half",
"of",
"the",
"result",
"of",
"integer",
"division",
"of",
"join",
"of",
"two",
"given",
"halves",
"of",
"unsigned",
"value",
"by",
"another",
"one",
"*",
"the",
"result",
"is",
"the",
"same",
"as",
"of",
"<",
"code",
... | [
"return",
"div",
"(",
"unsigned",
"high",
"a",
",",
"unsigned",
"b",
")",
";"
] |
[
"returns",
"the",
"highest",
"half",
"of",
"the",
"result",
"of",
"integer",
"division",
"of",
"one",
"given",
"unsigned",
"<",
"code",
">",
"long",
"<",
"/",
"code",
">",
"value",
"by",
"another",
"unsigned",
"<",
"code",
">",
"int",
"<",
"/",
"code",... | [
"return",
"(",
"int",
")",
"(",
"div",
"(",
"unsigned",
"long",
"a",
",",
"unsigned",
"b",
")",
">",
">",
">",
"java",
"consts",
"int",
"size",
")",
";"
] |
[
"returns",
"the",
"lowest",
"half",
"of",
"the",
"result",
"of",
"integer",
"division",
"of",
"join",
"of",
"two",
"given",
"halves",
"of",
"unsigned",
"value",
"by",
"another",
"one",
"*"
] | [
"if",
"(",
"java",
"consts",
"long",
"size",
">",
">",
"1",
">",
"=",
"java",
"consts",
"int",
"size",
")",
"return",
"(",
"int",
")",
"div",
"(",
"(",
"(",
"unsigned",
"high",
"a",
"&",
"java",
"consts",
"int",
"lmask",
")",
"<",
"<",
"java",
... |
[
"returns",
"the",
"lowest",
"half",
"of",
"the",
"result",
"of",
"integer",
"division",
"of",
"one",
"given",
"unsigned",
"<",
"code",
">",
"long",
"<",
"/",
"code",
">",
"value",
"by",
"another",
"unsigned",
"<",
"code",
">",
"int",
"<",
"/",
"code",
... | [
"return",
"(",
"int",
")",
"div",
"(",
"unsigned",
"long",
"a",
",",
"unsigned",
"b",
")",
";"
] |
[
"returns",
"the",
"remainder",
"of",
"integer",
"division",
"of",
"one",
"given",
"unsigned",
"value",
"by",
"another",
"one",
"*",
"the",
"result",
"is",
"the",
"same",
"as",
"of",
"<",
"code",
">",
"(",
"unsigned",
"a",
"-",
"div",
"(",
"unsigned",
"... | [
"if",
"(",
"unsigned",
"a",
">",
"=",
"0",
")",
"{",
"if",
"(",
"unsigned",
"b",
">",
"=",
"0",
")",
"unsigned",
"a",
"%",
"=",
"unsigned",
"b",
";",
"}",
"else",
"if",
"(",
"unsigned",
"b",
">",
"=",
"0",
"&",
"&",
"(",
"unsigned",
"a",
"=... |
[
"returns",
"the",
"remainder",
"of",
"integer",
"division",
"of",
"one",
"given",
"unsigned",
"<",
"code",
">",
"long",
"<",
"/",
"code",
">",
"value",
"by",
"another",
"unsigned",
"<",
"code",
">",
"int",
"<",
"/",
"code",
">",
"value",
"*"
] | [
"long",
"long",
"b",
"=",
"unsigned",
"b",
"&",
"java",
"consts",
"int",
"lmask",
";",
"if",
"(",
"(",
"unsigned",
"long",
"a",
"=",
"(",
"(",
"(",
"unsigned",
"long",
"a",
">",
">",
">",
"1",
")",
"%",
"long",
"b",
")",
"<",
"<",
"1",
")",
... |
[
"returns",
"the",
"remainder",
"of",
"integer",
"division",
"of",
"join",
"of",
"two",
"given",
"halves",
"of",
"unsigned",
"value",
"by",
"another",
"one",
"*"
] | [
"if",
"(",
"java",
"consts",
"long",
"size",
">",
">",
"1",
">",
"=",
"java",
"consts",
"int",
"size",
")",
"return",
"rem",
"(",
"(",
"(",
"unsigned",
"high",
"a",
"&",
"java",
"consts",
"int",
"lmask",
")",
"<",
"<",
"java",
"consts",
"int",
"s... |
[
"returns",
"a",
"given",
"value",
"involved",
"to",
"the",
"power",
"of",
"the",
"specified",
"degree",
"*",
"overflow",
"is",
"not",
"checked",
"if",
"<",
"var",
">",
"degree",
"<",
"/",
"var",
">",
"is",
"negative",
"then",
"<",
"code",
">",
"0",
"... | [
"int",
"res",
"=",
"0",
";",
"if",
"(",
"degree",
">",
"=",
"0",
")",
"if",
"(",
"(",
"(",
"2",
"-",
"value",
")",
"|",
"value",
")",
"<",
"0",
")",
"{",
"for",
"(",
"res",
"=",
"1",
";",
"degree",
">",
"0",
";",
"value",
"*",
"=",
"val... |
[
"returns",
"the",
"integer",
"part",
"of",
"binary",
"logarithm",
"of",
"a",
"given",
"unsigned",
"value",
"*",
"if",
"<",
"var",
">",
"unsigned",
"value",
"<",
"/",
"var",
">",
"is",
"zero",
"then",
"<",
"code",
">",
"-",
"1",
"<",
"/",
"code",
">... | [
"int",
"res",
"=",
"-",
"1",
";",
"while",
"(",
"unsigned",
"value",
"!",
"=",
"0",
")",
"{",
"unsigned",
"value",
">",
">",
">",
"=",
"1",
";",
"res",
"+",
"+",
";",
"}",
"return",
"res",
";"
] |
[
"computes",
"the",
"factorial",
"of",
"a",
"given",
"value",
"*",
"overflow",
"is",
"not",
"checked",
"if",
"<",
"var",
">",
"value",
"<",
"/",
"var",
">",
"is",
"negative",
"or",
"zero",
"then",
"<",
"code",
">",
"0",
"<",
"/",
"code",
">",
"is",
... | [
"int",
"unsigned",
"res",
"=",
"0",
";",
"if",
"(",
"value",
">",
"0",
")",
"for",
"(",
"unsigned",
"res",
"=",
"1",
";",
"value",
">",
"1",
";",
"unsigned",
"res",
"*",
"=",
"value",
"-",
"-",
")",
";",
"return",
"unsigned",
"res",
";"
] |
[
"computes",
"the",
"greatest",
"common",
"divisor",
"(",
"gcd",
")",
"of",
"two",
"given",
"unsigned",
"non",
"-",
"zero",
"values",
"*",
"important",
"notes",
":",
"zero",
"value",
"(",
"for",
"any",
"argument",
"or",
"result",
")",
"is",
"treated",
"as... | [
"int",
"shift",
"=",
"0",
",",
"delta",
";",
"if",
"(",
"unsigned",
"a",
"=",
"=",
"0",
"|",
"|",
"unsigned",
"b",
"=",
"=",
"0",
")",
"if",
"(",
"(",
"unsigned",
"a",
"&",
"1",
")",
"=",
"=",
"0",
")",
"{",
"unsigned",
"a",
"=",
"(",
"("... |
[
"computes",
"the",
"modular",
"inversion",
"of",
"a",
"given",
"unsigned",
"value",
"*",
"it",
"is",
"the",
"inverse",
"operation",
"for",
"modular",
"multiplication",
"that",
"is",
"if",
"both",
"<",
"var",
">",
"unsigned",
"a",
"<",
"/",
"var",
">",
"a... | [
"int",
"unsigned",
"b",
",",
"unsigned",
"res",
"=",
"1",
";",
"if",
"(",
"unsigned",
"a",
"<",
"0",
")",
"{",
"if",
"(",
"+",
"+",
"unsigned",
"max",
">",
"0",
"&",
"&",
"(",
"unsigned",
"a",
"=",
"(",
"(",
"(",
"unsigned",
"a",
">",
">",
... |
[
"computes",
"the",
"modular",
"multiplication",
"of",
"two",
"given",
"unsigned",
"values",
"*",
"this",
"method",
"returns",
"the",
"remainder",
"of",
"the",
"result",
"of",
"integer",
"division",
"of",
"long",
"(",
"full",
")",
"product",
"of",
"<",
"var",... | [
"int",
"unsigned",
"res",
"=",
"0",
";",
"if",
"(",
"unsigned",
"a",
"!",
"=",
"0",
"&",
"&",
"unsigned",
"b",
"!",
"=",
"0",
")",
"{",
"unsigned",
"res",
"=",
"unsigned",
"a",
"*",
"unsigned",
"b",
";",
"if",
"(",
"+",
"+",
"unsigned",
"max",
... |
[
"returns",
"the",
"lowest",
"half",
"of",
"the",
"result",
"of",
"integer",
"division",
"of",
"long",
"(",
"full",
")",
"product",
"of",
"the",
"first",
"two",
"given",
"unsigned",
"non",
"-",
"zero",
"values",
"by",
"the",
"third",
"given",
"unsigned",
... | [
"int",
"unsigned",
"high",
";",
"if",
"(",
"unsigned",
"a",
"=",
"=",
"0",
"|",
"|",
"unsigned",
"a",
"=",
"=",
"unsigned",
"c",
")",
"{",
"unsigned",
"high",
"=",
"unsigned",
"b",
";",
"unsigned",
"b",
"=",
"unsigned",
"a",
";",
"unsigned",
"a",
... |
[
"puts",
"a",
"given",
"value",
"into",
"the",
"specified",
"byte",
"array",
"*",
"this",
"method",
"splits",
"<",
"var",
">",
"unsigned",
"value",
"<",
"/",
"var",
">",
"to",
"separate",
"bytes",
"and",
"puts",
"them",
"into",
"<",
"var",
">",
"bytes",... | [
"if",
"(",
"len",
">",
"0",
")",
"{",
"byte",
"temp",
";",
"for",
"(",
"temp",
"=",
"bytes",
"[",
"offset",
"+",
"len",
"-",
"1",
"]",
";",
"len",
">",
"java",
"consts",
"int",
"length",
";",
"bytes",
"[",
"offset",
"+",
"+",
"]",
"=",
"0",
... |
[
"converts",
"a",
"given",
"value",
"into",
"a",
"byte",
"array",
"*",
"this",
"method",
"splits",
"<",
"var",
">",
"unsigned",
"value",
"<",
"/",
"var",
">",
"to",
"separate",
"bytes",
"and",
"sequentially",
"puts",
"them",
"into",
"a",
"newly",
"created... | [
"if",
"(",
"len",
"<",
"=",
"0",
")",
"len",
"=",
"0",
";",
"byte",
"[",
"]",
"bytes",
"=",
"new",
"byte",
"[",
"len",
"]",
";",
"put",
"to",
"byte",
"array",
"(",
"bytes",
",",
"0",
",",
"unsigned",
"value",
",",
"len",
")",
";",
"return",
... |
[
"converts",
"the",
"specified",
"region",
"of",
"a",
"given",
"byte",
"array",
"into",
"an",
"unsigned",
"value",
"*",
"this",
"method",
"gets",
"the",
"elements",
"of",
"<",
"var",
">",
"bytes",
"<",
"/",
"var",
">",
"array",
"sequentially",
"starting",
... | [
"int",
"unsigned",
"value",
"=",
"0",
";",
"if",
"(",
"len",
">",
"0",
")",
"do",
"{",
"unsigned",
"value",
"=",
"(",
"unsigned",
"value",
"<",
"<",
"java",
"consts",
"byte",
"size",
")",
"|",
"bytes",
"[",
"offset",
"+",
"+",
"]",
"&",
"java",
... |
[
"puts",
"a",
"given",
"value",
"into",
"the",
"specified",
"byte",
"array",
"in",
"the",
"reversed",
"order",
"*",
"this",
"method",
"splits",
"<",
"var",
">",
"unsigned",
"value",
"<",
"/",
"var",
">",
"to",
"separate",
"bytes",
"and",
"puts",
"them",
... | [
"if",
"(",
"len",
">",
"0",
")",
"{",
"byte",
"temp",
";",
"temp",
"=",
"bytes",
"[",
"offset",
"+",
"len",
"-",
"1",
"]",
";",
"do",
"{",
"bytes",
"[",
"offset",
"+",
"+",
"]",
"=",
"(",
"byte",
")",
"unsigned",
"value",
";",
"if",
"(",
"-... |
[
"converts",
"a",
"given",
"value",
"in",
"the",
"reversed",
"order",
"into",
"a",
"byte",
"array",
"*",
"this",
"method",
"splits",
"<",
"var",
">",
"unsigned",
"value",
"<",
"/",
"var",
">",
"to",
"separate",
"bytes",
"and",
"sequentially",
"puts",
"the... | [
"if",
"(",
"len",
"<",
"=",
"0",
")",
"len",
"=",
"0",
";",
"byte",
"[",
"]",
"bytes",
"=",
"new",
"byte",
"[",
"len",
"]",
";",
"put",
"to",
"intel",
"array",
"(",
"bytes",
",",
"0",
",",
"unsigned",
"value",
",",
"len",
")",
";",
"return",
... |
[
"converts",
"the",
"specified",
"region",
"of",
"a",
"given",
"byte",
"array",
"into",
"an",
"unsigned",
"value",
"in",
"the",
"reversed",
"order",
"*",
"this",
"method",
"gets",
"the",
"elements",
"of",
"<",
"var",
">",
"bytes",
"<",
"/",
"var",
">",
... | [
"int",
"unsigned",
"value",
"=",
"0",
";",
"if",
"(",
"len",
">",
"0",
")",
"{",
"byte",
"temp",
";",
"temp",
"=",
"bytes",
"[",
"offset",
"+",
"len",
"-",
"1",
"]",
";",
"if",
"(",
"len",
">",
"=",
"java",
"consts",
"int",
"length",
")",
"le... |
[
"writes",
"a",
"group",
"of",
"bits",
"to",
"a",
"given",
"output",
"stream",
"*",
"negative",
"<",
"var",
">",
"count",
"<",
"/",
"var",
">",
"is",
"treated",
"as",
"zero",
"important",
"notes",
":",
"if",
"<",
"var",
">",
"count",
"<",
"/",
"var"... | [
"out",
"equals",
"(",
"out",
")",
";",
"if",
"(",
"count",
">",
"0",
")",
"{",
"int",
"shift",
";",
"if",
"(",
"(",
"shift",
"=",
"count",
"%",
"java",
"consts",
"byte",
"size",
")",
">",
"0",
")",
"out",
"write",
"(",
"(",
"count",
"-",
"=",... |
[
"reads",
"a",
"group",
"of",
"bits",
"from",
"a",
"given",
"input",
"stream",
"*",
"negative",
"<",
"var",
">",
"count",
"<",
"/",
"var",
">",
"is",
"treated",
"as",
"zero",
"if",
"the",
"end",
"-",
"of",
"-",
"stream",
"is",
"detected",
"then",
"<... | [
"in",
"equals",
"(",
"in",
")",
";",
"int",
"unsigned",
"value",
"=",
"0",
",",
"shift",
";",
"if",
"(",
"count",
">",
"0",
")",
"{",
"if",
"(",
"(",
"shift",
"=",
"count",
"%",
"java",
"consts",
"byte",
"size",
")",
">",
"0",
")",
"{",
"if",... |
[
"reads",
"one",
"input",
"<",
"code",
">",
"byte",
"<",
"/",
"code",
">",
"as",
"an",
"unsigned",
"value",
"*",
"if",
"the",
"end",
"-",
"of",
"-",
"stream",
"is",
"detected",
"then",
"<",
"code",
">",
"e",
"o",
"f",
"exception",
"<",
"/",
"code"... | [
"int",
"unsigned",
"byte",
";",
"if",
"(",
"(",
"unsigned",
"byte",
"=",
"in",
"read",
"(",
")",
")",
"<",
"0",
")",
"throw",
"new",
"e",
"o",
"f",
"exception",
"(",
")",
";",
"return",
"unsigned",
"byte",
"&",
"java",
"consts",
"byte",
"mask",
"... |
[
"converts",
"a",
"given",
"signed",
"/",
"unsigned",
"value",
"into",
"its",
"string",
"representation",
"in",
"the",
"specified",
"radix",
"*",
"<",
"var",
">",
"value",
"<",
"/",
"var",
">",
"is",
"unsigned",
"only",
"if",
"<",
"var",
">",
"is",
"uns... | [
"char",
"[",
"]",
"chars",
";",
"int",
"offset",
",",
"zero",
"prefix",
";",
"if",
"(",
"radix",
"<",
"=",
"2",
")",
"radix",
"=",
"2",
";",
"if",
"(",
"radix",
">",
"=",
"(",
"'",
"9",
"'",
"-",
"'",
"0",
"'",
"+",
"1",
")",
"+",
"(",
... |
[
"converts",
"a",
"given",
"signed",
"/",
"unsigned",
"value",
"into",
"its",
"decimal",
"string",
"representation",
"*"
] | [
"int",
"min",
"length",
";",
"char",
"[",
"]",
"chars",
"=",
"new",
"char",
"[",
"min",
"length",
"=",
"(",
"java",
"consts",
"int",
"size",
"-",
"1",
")",
"/",
"3",
"+",
"2",
"]",
";",
"if",
"(",
"!",
"is",
"unsigned",
")",
"if",
"(",
"value... |
[
"converts",
"a",
"given",
"unsigned",
"value",
"into",
"its",
"binary",
"string",
"representation",
"*",
"the",
"result",
"is",
"left",
"-",
"padded",
"with",
"spaces",
"if",
"<",
"var",
">",
"min",
"length",
"<",
"/",
"var",
">",
"is",
"negative",
"else... | [
"char",
"[",
"]",
"chars",
";",
"int",
"offset",
";",
"char",
"prefix",
"=",
"'",
"0",
"'",
";",
"if",
"(",
"min",
"length",
"<",
"0",
")",
"if",
"(",
"(",
"min",
"length",
"=",
"-",
"min",
"length",
")",
"<",
"0",
")",
"min",
"length",
"-",
... |
[
"converts",
"a",
"given",
"unsigned",
"value",
"into",
"its",
"octal",
"string",
"representation",
"*",
"the",
"result",
"is",
"left",
"-",
"padded",
"with",
"spaces",
"if",
"<",
"var",
">",
"min",
"length",
"<",
"/",
"var",
">",
"is",
"negative",
"else"... | [
"char",
"[",
"]",
"chars",
";",
"int",
"offset",
";",
"char",
"prefix",
"=",
"'",
"0",
"'",
";",
"if",
"(",
"min",
"length",
"<",
"0",
")",
"if",
"(",
"(",
"min",
"length",
"=",
"-",
"min",
"length",
")",
"<",
"0",
")",
"min",
"length",
"-",
... |
[
"converts",
"a",
"given",
"unsigned",
"value",
"into",
"its",
"hexadecimal",
"string",
"representation",
"*",
"the",
"result",
"is",
"left",
"-",
"padded",
"with",
"spaces",
"if",
"<",
"var",
">",
"min",
"length",
"<",
"/",
"var",
">",
"is",
"negative",
... | [
"char",
"[",
"]",
"chars",
";",
"int",
"digit",
",",
"offset",
";",
"char",
"prefix",
"=",
"'",
"0",
"'",
";",
"if",
"(",
"min",
"length",
"<",
"0",
")",
"if",
"(",
"(",
"min",
"length",
"=",
"-",
"min",
"length",
")",
"<",
"0",
")",
"min",
... |
[
"parses",
"a",
"given",
"string",
"region",
"as",
"a",
"signed",
"/",
"unsigned",
"integer",
"in",
"the",
"specified",
"radix",
"*",
"leading",
"spaces",
"(",
"before",
"the",
"sign",
"prefix",
")",
"are",
"ignored",
"sign",
"prefix",
"(",
"+",
"or",
"-"... | [
"int",
"value",
"=",
"str",
"length",
"(",
")",
";",
"if",
"(",
"begin",
"index",
"<",
"0",
")",
"throw",
"new",
"string",
"index",
"out",
"of",
"bounds",
"exception",
"(",
"begin",
"index",
")",
";",
"if",
"(",
"end",
"index",
"<",
"begin",
"index... |
[
"decodes",
"a",
"given",
"string",
"region",
"as",
"an",
"unsigned",
"octal",
"/",
"decimal",
"/",
"hexadecimal",
"integer",
"value",
"*",
"the",
"following",
"unsigned",
"<",
"code",
">",
"int",
"<",
"/",
"code",
">",
"value",
"formats",
"are",
"accepted"... | [
"char",
"ch",
"=",
"'",
"'",
";",
"int",
"radix",
"=",
"'",
"9",
"'",
"-",
"'",
"0",
"'",
"+",
"1",
";",
"if",
"(",
"(",
"(",
"str",
"length",
"(",
")",
"-",
"end",
"index",
")",
"|",
"begin",
"index",
")",
">",
"=",
"0",
")",
"{",
"beg... |
[
"converts",
"a",
"given",
"value",
"into",
"its",
"roman",
"notation",
"*",
"zero",
"value",
"is",
"represented",
"as",
"a",
"single",
"-",
"if",
"value",
"is",
"negative",
"then",
"-",
"is",
"prepended",
"before",
"roman",
"digits",
"spaces",
"are",
"prep... | [
"int",
"offset",
"=",
"1",
",",
"len",
",",
"digit",
";",
"string",
"digits",
";",
"if",
"(",
"(",
"len",
"=",
"(",
"digits",
"=",
"roman",
"digits",
")",
"length",
"(",
")",
"-",
"1",
")",
"<",
"0",
")",
"value",
"=",
"0",
";",
"boolean",
"n... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.