docstring_tokens
sequence | code_tokens
sequence |
---|---|
[
"gets",
"all",
"the",
"{",
"@",
"link",
"top",
"level",
"item",
"}",
"s",
"recursively",
"in",
"the",
"{",
"@",
"link",
"item",
"group",
"}",
"tree"
] | [
"return",
"root",
"get",
"all",
"items",
"(",
"top",
"level",
"item",
"class",
")",
";"
] |
[
"gets",
"the",
"name",
"to",
"the",
"given",
"item",
"relative",
"to",
"given",
"group"
] | [
"return",
"get",
"relative",
"name",
"from",
"(",
"p",
",",
"g",
",",
"false",
")",
";"
] |
[
"gets",
"the",
"relative",
"display",
"name",
"to",
"the",
"given",
"item",
"from",
"the",
"specified",
"group"
] | [
"return",
"get",
"relative",
"name",
"from",
"(",
"p",
",",
"g",
",",
"true",
")",
";"
] |
[
"converts",
"abc",
"to",
"abc"
] | [
"if",
"(",
"s",
"=",
"=",
"null",
"|",
"|",
"s",
"length",
"(",
")",
"=",
"=",
"0",
")",
"return",
"s",
";",
"return",
"character",
"to",
"upper",
"case",
"(",
"s",
"char",
"at",
"(",
"0",
")",
")",
"+",
"s",
"substring",
"(",
"1",
")",
";"
] |
[
"resource",
"path",
"prefix"
] | [
"return",
"jenkins",
"resource",
"path",
";"
] |
[
"can",
"be",
"used",
"to",
"check",
"a",
"checkbox",
"by",
"default",
"used",
"from",
"views",
"like",
"{"
] | [
"if",
"(",
"b",
"=",
"=",
"null",
")",
"return",
"true",
";",
"return",
"b",
";"
] |
[
"if",
"the",
"value",
"exists",
"return",
"that",
"value",
"otherwise",
"return",
"the",
"default",
"value",
"<",
"p",
">",
"starting",
"1",
"294",
"jexl",
"supports",
"the",
"elvis",
"operator",
"x",
"?",
":",
"y",
"that",
"supersedes",
"this"
] | [
"return",
"value",
"!",
"=",
"null",
"?",
"value",
":",
"default",
"value",
";"
] |
[
"prints",
"a",
"stack",
"trace",
"from",
"an",
"exception",
"into",
"a",
"readable",
"form",
"unlike",
"{"
] | [
"if",
"(",
"t",
"=",
"=",
"null",
")",
"{",
"return",
"messages",
"functions",
"no",
"exception",
"details",
"(",
")",
";",
"}",
"string",
"builder",
"s",
"=",
"new",
"string",
"builder",
"(",
")",
";",
"do",
"print",
"stack",
"trace",
"(",
"s",
",",
"t",
",",
"null",
",",
"\"",
"\"",
",",
"new",
"hash",
"set",
"<",
"throwable",
">",
"(",
")",
")",
";",
"return",
"s",
"to",
"string",
"(",
")",
";"
] |
[
"like",
"{"
] | [
"pw",
"println",
"(",
"print",
"throwable",
"(",
"t",
")",
"trim",
"(",
")",
")",
";"
] |
[
"like",
"{"
] | [
"ps",
"println",
"(",
"print",
"throwable",
"(",
"t",
")",
"trim",
"(",
")",
")",
";"
] |
[
"counts",
"the",
"number",
"of",
"rows",
"needed",
"for",
"textarea",
"to",
"fit",
"the",
"content",
"minimum",
"5",
"rows"
] | [
"if",
"(",
"s",
"=",
"=",
"null",
")",
"return",
"5",
";",
"return",
"math",
"max",
"(",
"5",
",",
"line",
"end",
"split",
"(",
"s",
")",
"length",
")",
";"
] |
[
"checks",
"if",
"the",
"current",
"user",
"is",
"anonymous"
] | [
"return",
"acl",
"is",
"anonymous",
"(",
"jenkins",
"get",
"authentication",
"(",
")",
")",
";"
] |
[
"when",
"called",
"from",
"within",
"jexl",
"expression",
"evaluation",
"this",
"method",
"returns",
"the",
"current",
"{",
"@",
"link",
"jelly",
"context",
"}",
"used",
"to",
"evaluate",
"the",
"script"
] | [
"jelly",
"context",
"context",
"=",
"expression",
"factory",
"2",
"current",
"context",
"get",
"(",
")",
";",
"assert",
"context",
"!",
"=",
"null",
";",
"return",
"context",
";"
] |
[
"evaluate",
"a",
"jelly",
"script",
"and",
"return",
"output",
"as",
"a",
"string"
] | [
"string",
"writer",
"out",
"=",
"new",
"string",
"writer",
"(",
")",
";",
"script",
"run",
"(",
"get",
"current",
"jelly",
"context",
"(",
")",
",",
"x",
"m",
"l",
"output",
"create",
"x",
"m",
"l",
"output",
"(",
"out",
")",
")",
";",
"return",
"out",
"to",
"string",
"(",
")",
";"
] |
[
"returns",
"a",
"sub",
"-",
"list",
"if",
"the",
"given",
"list",
"is",
"bigger",
"than",
"the",
"specified",
"{"
] | [
"if",
"(",
"max",
"size",
"<",
"base",
"size",
"(",
")",
")",
"return",
"base",
"sub",
"list",
"(",
"0",
",",
"max",
"size",
")",
";",
"else",
"return",
"base",
";"
] |
[
"combine",
"path",
"components",
"via",
"/",
"while",
"handling",
"leading",
"/",
"trailing",
"/",
"to",
"avoid",
"duplicates"
] | [
"string",
"builder",
"buf",
"=",
"new",
"string",
"builder",
"(",
")",
";",
"for",
"(",
"string",
"s",
":",
"components",
")",
"{",
"if",
"(",
"s",
"length",
"(",
")",
"=",
"=",
"0",
")",
"continue",
";",
"if",
"(",
"buf",
"length",
"(",
")",
">",
"0",
")",
"{",
"if",
"(",
"buf",
"char",
"at",
"(",
"buf",
"length",
"(",
")",
"-",
"1",
")",
"!",
"=",
"'",
"/",
"'",
")",
"buf",
"append",
"(",
"'",
"/",
"'",
")",
";",
"if",
"(",
"s",
"char",
"at",
"(",
"0",
")",
"=",
"=",
"'",
"/",
"'",
")",
"s",
"=",
"s",
"substring",
"(",
"1",
")",
";",
"}",
"buf",
"append",
"(",
"s",
")",
";",
"}",
"return",
"buf",
"to",
"string",
"(",
")",
";"
] |
[
"determines",
"the",
"form",
"validation",
"check",
"url",
"see",
"textbox",
"jelly"
] | [
"if",
"(",
"user",
"defined",
"!",
"=",
"null",
"|",
"|",
"field",
"=",
"=",
"null",
")",
"return",
"user",
"defined",
";",
"if",
"(",
"descriptor",
"instanceof",
"descriptor",
")",
"{",
"descriptor",
"d",
"=",
"(",
"descriptor",
")",
"descriptor",
";",
"return",
"d",
"get",
"check",
"url",
"(",
"field",
")",
";",
"}",
"return",
"null",
";"
] |
[
"gets",
"only",
"one",
"{"
] | [
"return",
"simple",
"page",
"decorator",
"first",
"(",
")",
";"
] |
[
"prepend",
"a",
"prefix",
"only",
"when",
"there",
"s",
"the",
"specified",
"body"
] | [
"if",
"(",
"body",
"!",
"=",
"null",
"&",
"&",
"body",
"length",
"(",
")",
">",
"0",
")",
"return",
"prefix",
"+",
"body",
";",
"return",
"body",
";"
] |
[
"returns",
"true",
"if",
"we",
"are",
"running",
"unit",
"tests"
] | [
"return",
"main",
"is",
"unit",
"test",
";"
] |
[
"used",
"for",
"arguments",
"to",
"internationalized",
"expressions",
"to",
"avoid",
"escape"
] | [
"return",
"o",
"=",
"=",
"null",
"?",
"null",
":",
"new",
"raw",
"html",
"argument",
"(",
"o",
")",
";"
] |
[
"returns",
"an",
"avatar",
"image",
"url",
"for",
"the",
"specified",
"user",
"and",
"preferred",
"image",
"size"
] | [
"return",
"user",
"avatar",
"resolver",
"resolve",
"(",
"user",
",",
"avatar",
"size",
")",
";"
] |
[
"<",
"p",
">",
"lists",
"summaries",
"of",
"the",
"operations",
"<",
"/",
"p",
">"
] | [
"if",
"(",
"operations",
"=",
"=",
"null",
")",
"{",
"operations",
"=",
"new",
"com",
"amazonaws",
"internal",
"sdk",
"internal",
"list",
"<",
"operation",
"summary",
">",
"(",
")",
";",
"}",
"return",
"operations",
";"
] |
[
"<",
"p",
">",
"lists",
"summaries",
"of",
"the",
"operations",
"<",
"/",
"p",
">"
] | [
"if",
"(",
"operations",
"=",
"=",
"null",
")",
"{",
"this",
"operations",
"=",
"null",
";",
"return",
";",
"}",
"this",
"operations",
"=",
"new",
"com",
"amazonaws",
"internal",
"sdk",
"internal",
"list",
"<",
"operation",
"summary",
">",
"(",
"operations",
")",
";"
] |
[
"<",
"p",
">",
"lists",
"summaries",
"of",
"the",
"operations",
"<",
"/",
"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",
"com",
"amazonaws",
"internal",
"sdk",
"internal",
"list",
"<",
"operation",
"summary",
">",
"(",
"operations",
"length",
")",
")",
";",
"}",
"for",
"(",
"operation",
"summary",
"ele",
":",
"operations",
")",
"{",
"this",
"operations",
"add",
"(",
"ele",
")",
";",
"}",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"summary",
"information",
"about",
"the",
"operations",
"that",
"match",
"the",
"specified",
"criteria",
"<",
"/",
"p",
">"
] | [
"set",
"operations",
"(",
"operations",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"if",
"there",
"are",
"more",
"domains",
"than",
"you",
"specified",
"for",
"<",
"code",
">",
"max",
"items",
"<",
"/",
"code",
">",
"in",
"the",
"request",
"submit",
"another",
"request",
"and",
"include",
"the",
"value",
"of",
"<",
"code",
">",
"next",
"page",
"marker",
"<",
"/",
"code",
">",
"in",
"the",
"value",
"of",
"<",
"code",
">",
"marker",
"<",
"/",
"code",
">",
"<",
"/",
"p",
">"
] | [
"this",
"next",
"page",
"marker",
"=",
"next",
"page",
"marker",
";"
] |
[
"<",
"p",
">",
"if",
"there",
"are",
"more",
"domains",
"than",
"you",
"specified",
"for",
"<",
"code",
">",
"max",
"items",
"<",
"/",
"code",
">",
"in",
"the",
"request",
"submit",
"another",
"request",
"and",
"include",
"the",
"value",
"of",
"<",
"code",
">",
"next",
"page",
"marker",
"<",
"/",
"code",
">",
"in",
"the",
"value",
"of",
"<",
"code",
">",
"marker",
"<",
"/",
"code",
">",
"<",
"/",
"p",
">"
] | [
"return",
"this",
"next",
"page",
"marker",
";"
] |
[
"<",
"p",
">",
"if",
"there",
"are",
"more",
"operations",
"than",
"you",
"specified",
"for",
"<",
"code",
">",
"max",
"items",
"<",
"/",
"code",
">",
"in",
"the",
"request",
"submit",
"another",
"request",
"and",
"include",
"the",
"value",
"of",
"<",
"code",
">",
"next",
"page",
"marker",
"<",
"/",
"code",
">",
"in",
"the",
"value",
"of",
"<",
"code",
">",
"marker",
"<",
"/",
"code",
">",
"<",
"/",
"p",
">"
] | [
"set",
"next",
"page",
"marker",
"(",
"next",
"page",
"marker",
")",
";",
"return",
"this",
";"
] |
[
"framework",
"paths"
] | [
"@",
"value",
"parameter",
"public",
"abstract",
"immutable",
"set",
"<",
"framework",
"path",
">",
"get",
"frameworks",
"(",
")",
";"
] |
[
"the",
"build",
"rules",
"which",
"produce",
"headers",
"found",
"in",
"the",
"includes",
"below"
] | [
"@",
"value",
"parameter",
"protected",
"abstract",
"immutable",
"set",
"<",
"build",
"target",
">",
"get",
"rules",
"(",
")",
";"
] |
[
"this",
"method",
"initializes",
"auth",
"model"
] | [
"if",
"(",
"keyboard",
"model",
"=",
"=",
"null",
")",
"{",
"keyboard",
"model",
"=",
"new",
"keyboard",
"shortcut",
"table",
"model",
"(",
")",
";",
"}",
"return",
"keyboard",
"model",
";"
] |
[
"<",
"p",
">",
"the",
"requested",
"job",
"definition",
"<",
"/",
"p",
">"
] | [
"this",
"job",
"=",
"job",
";"
] |
[
"<",
"p",
">",
"the",
"requested",
"job",
"definition",
"<",
"/",
"p",
">"
] | [
"return",
"this",
"job",
";"
] |
[
"<",
"p",
">",
"the",
"requested",
"job",
"definition",
"<",
"/",
"p",
">"
] | [
"set",
"job",
"(",
"job",
")",
";",
"return",
"this",
";"
] |
[
"returns",
"true",
"if",
"field",
"table",
"name",
"is",
"set",
"(",
"has",
"been",
"assigned",
"a",
"value",
")",
"and",
"false",
"otherwise"
] | [
"return",
"this",
"table",
"name",
"!",
"=",
"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",
"table",
"name",
":",
"return",
"is",
"set",
"table",
"name",
"(",
")",
";",
"}",
"throw",
"new",
"illegal",
"state",
"exception",
"(",
")",
";"
] |
[
"issue",
"396"
] | [
"if",
"(",
"!",
"dao",
"meta",
"(",
")",
"is",
"oracle",
"(",
")",
")",
"return",
";",
"dao",
"create",
"(",
"issue",
"3",
"9",
"6",
"master",
"class",
",",
"true",
")",
";"
] |
[
"/",
"*",
"*",
"read",
"and",
"discard",
"the",
"old",
"(",
"prior",
"to",
"6",
"5",
")",
"per",
"partition",
"normalization",
"values"
] | [
"in",
"read",
"string",
"(",
")",
";",
"in",
"read",
"string",
"(",
")",
";",
"in",
"read",
"double",
"(",
")",
";",
"in",
"read",
"double",
"(",
")",
";",
"in",
"read",
"double",
"(",
")",
";",
"return",
"null",
";"
] |
[
"timestamp",
"expressed",
"in",
"seconds",
"since",
"the",
"epoch",
"(",
"rather",
"than",
"java",
"s",
"convention",
"of",
"milliseconds",
")"
] | [
"return",
"timestamp",
"get",
"time",
"(",
")",
"/",
"1000",
";"
] |
[
"bucketspan",
"expressed",
"in",
"seconds"
] | [
"return",
"bucket",
"span",
";"
] |
[
"the",
"number",
"of",
"records",
"(",
"events",
")",
"actually",
"processed",
"in",
"this",
"bucket"
] | [
"return",
"event",
"count",
";"
] |
[
"compare",
"all",
"the",
"fields",
"and",
"embedded",
"anomaly",
"records",
"(",
"if",
"any",
")"
] | [
"if",
"(",
"this",
"=",
"=",
"other",
")",
"{",
"return",
"true",
";",
"}",
"if",
"(",
"other",
"instanceof",
"bucket",
"=",
"=",
"false",
")",
"{",
"return",
"false",
";",
"}",
"bucket",
"that",
"=",
"(",
"bucket",
")",
"other",
";",
"return",
"objects",
"equals",
"(",
"this",
"job",
"id",
",",
"that",
"job",
"id",
")",
"&",
"&",
"objects",
"equals",
"(",
"this",
"timestamp",
",",
"that",
"timestamp",
")",
"&",
"&",
"(",
"this",
"event",
"count",
"=",
"=",
"that",
"event",
"count",
")",
"&",
"&",
"(",
"this",
"bucket",
"span",
"=",
"=",
"that",
"bucket",
"span",
")",
"&",
"&",
"(",
"this",
"anomaly",
"score",
"=",
"=",
"that",
"anomaly",
"score",
")",
"&",
"&",
"(",
"this",
"initial",
"anomaly",
"score",
"=",
"=",
"that",
"initial",
"anomaly",
"score",
")",
"&",
"&",
"objects",
"equals",
"(",
"this",
"records",
",",
"that",
"records",
")",
"&",
"&",
"objects",
"equals",
"(",
"this",
"is",
"interim",
",",
"that",
"is",
"interim",
")",
"&",
"&",
"objects",
"equals",
"(",
"this",
"bucket",
"influencers",
",",
"that",
"bucket",
"influencers",
")",
"&",
"&",
"(",
"this",
"processing",
"time",
"ms",
"=",
"=",
"that",
"processing",
"time",
"ms",
")",
"&",
"&",
"objects",
"equals",
"(",
"this",
"scheduled",
"events",
",",
"that",
"scheduled",
"events",
")",
";"
] |
[
"this",
"method",
"encapsulated",
"the",
"logic",
"for",
"whether",
"a",
"bucket",
"should",
"be",
"normalized",
"buckets",
"that",
"have",
"a",
"zero",
"anomaly",
"score",
"themselves",
"and",
"no",
"partition",
"scores",
"with",
"non",
"-",
"zero",
"score",
"should",
"not",
"be",
"normalized",
"as",
"their",
"score",
"will",
"not",
"change",
"and",
"they",
"will",
"just",
"add",
"overhead"
] | [
"return",
"anomaly",
"score",
">",
"0",
"0",
";"
] |
[
"{"
] | [
"return",
"delegate",
"map",
"size",
"(",
")",
";"
] |
[
"/",
"*",
"(",
"non",
"-",
"javadoc",
")"
] | [
"return",
"key",
";"
] |
[
"start",
"expiring",
"thread"
] | [
"if",
"(",
"!",
"running",
")",
"{",
"running",
"=",
"true",
";",
"expirer",
"thread",
"start",
"(",
")",
";",
"}"
] |
[
"start",
"thread"
] | [
"if",
"(",
"running",
")",
"{",
"return",
";",
"}",
"start",
"expiring",
"(",
")",
";"
] |
[
"stop",
"thread"
] | [
"if",
"(",
"running",
")",
"{",
"running",
"=",
"false",
";",
"expirer",
"thread",
"interrupt",
"(",
")",
";",
"}"
] |
[
"get",
"time",
"to",
"live"
] | [
"return",
"(",
"int",
")",
"time",
"to",
"live",
"millis",
"/",
"1000",
";"
] |
[
"update",
"time",
"to",
"live"
] | [
"this",
"time",
"to",
"live",
"millis",
"=",
"time",
"to",
"live",
"*",
"1000",
";"
] |
[
"get",
"expiration",
"interval"
] | [
"return",
"(",
"int",
")",
"expiration",
"interval",
"millis",
"/",
"1000",
";"
] |
[
"set",
"expiration",
"interval"
] | [
"this",
"expiration",
"interval",
"millis",
"=",
"expiration",
"interval",
"*",
"1000",
";"
] |
[
"find",
"the",
"differences",
"between",
"two",
"texts",
"run",
"a",
"faster",
"slightly",
"less",
"optimal",
"diff",
"this",
"method",
"allows",
"the",
"checklines",
"of",
"diff",
"main",
"(",
")",
"to",
"be",
"optional",
"most",
"of",
"the",
"time",
"checklines",
"is",
"wanted",
"so",
"default",
"to",
"true"
] | [
"return",
"diff",
"main",
"(",
"text",
"1",
",",
"text",
"2",
",",
"true",
")",
";"
] |
[
"rehydrate",
"the",
"text",
"in",
"a",
"diff",
"from",
"a",
"string",
"of",
"line",
"hashes",
"to",
"real",
"lines",
"of",
"text"
] | [
"string",
"builder",
"text",
";",
"for",
"(",
"diff",
"diff",
":",
"diffs",
")",
"{",
"text",
"=",
"new",
"string",
"builder",
"(",
")",
";",
"for",
"(",
"int",
"y",
"=",
"0",
";",
"y",
"<",
"diff",
"text",
"length",
"(",
")",
";",
"y",
"+",
"+",
")",
"{",
"text",
"append",
"(",
"line",
"array",
"get",
"(",
"diff",
"text",
"char",
"at",
"(",
"y",
")",
")",
")",
";",
"}",
"diff",
"text",
"=",
"text",
"to",
"string",
"(",
")",
";",
"}"
] |
[
"compute",
"and",
"return",
"the",
"source",
"text",
"(",
"all",
"equalities",
"and",
"deletions",
")"
] | [
"string",
"builder",
"text",
"=",
"new",
"string",
"builder",
"(",
")",
";",
"for",
"(",
"diff",
"a",
"diff",
":",
"diffs",
")",
"{",
"if",
"(",
"a",
"diff",
"operation",
"!",
"=",
"operation",
"insert",
")",
"{",
"text",
"append",
"(",
"a",
"diff",
"text",
")",
";",
"}",
"}",
"return",
"text",
"to",
"string",
"(",
")",
";"
] |
[
"compute",
"and",
"return",
"the",
"destination",
"text",
"(",
"all",
"equalities",
"and",
"insertions",
")"
] | [
"string",
"builder",
"text",
"=",
"new",
"string",
"builder",
"(",
")",
";",
"for",
"(",
"diff",
"a",
"diff",
":",
"diffs",
")",
"{",
"if",
"(",
"a",
"diff",
"operation",
"!",
"=",
"operation",
"delete",
")",
"{",
"text",
"append",
"(",
"a",
"diff",
"text",
")",
";",
"}",
"}",
"return",
"text",
"to",
"string",
"(",
")",
";"
] |
[
"initialise",
"the",
"alphabet",
"for",
"the",
"bitap",
"algorithm"
] | [
"map",
"<",
"character",
",",
"integer",
">",
"s",
"=",
"new",
"hash",
"map",
"<",
"character",
",",
"integer",
">",
"(",
")",
";",
"char",
"[",
"]",
"char",
"pattern",
"=",
"pattern",
"to",
"char",
"array",
"(",
")",
";",
"for",
"(",
"char",
"c",
":",
"char",
"pattern",
")",
"{",
"s",
"put",
"(",
"c",
",",
"0",
")",
";",
"}",
"int",
"i",
"=",
"0",
";",
"for",
"(",
"char",
"c",
":",
"char",
"pattern",
")",
"{",
"s",
"put",
"(",
"c",
",",
"s",
"get",
"(",
"c",
")",
"|",
"(",
"1",
"<",
"<",
"(",
"pattern",
"length",
"(",
")",
"-",
"i",
"-",
"1",
")",
")",
")",
";",
"i",
"+",
"+",
";",
"}",
"return",
"s",
";"
] |
[
"compute",
"a",
"list",
"of",
"patches",
"to",
"turn",
"text",
"1",
"into",
"text",
"2",
"text",
"2",
"is",
"ignored",
"diffs",
"are",
"the",
"delta",
"between",
"text",
"1",
"and",
"text",
"2"
] | [
"return",
"patch",
"make",
"(",
"text",
"1",
",",
"diffs",
")",
";"
] |
[
"compute",
"a",
"list",
"of",
"patches",
"to",
"turn",
"text",
"1",
"into",
"text",
"2",
"a",
"set",
"of",
"diffs",
"will",
"be",
"computed"
] | [
"return",
"patch",
"to",
"text",
"(",
"patch",
"make",
"(",
"text",
"1",
",",
"text",
"2",
")",
")",
";"
] |
[
"given",
"an",
"array",
"of",
"patches",
"return",
"another",
"array",
"that",
"is",
"identical"
] | [
"linked",
"list",
"<",
"patch",
">",
"patches",
"copy",
"=",
"new",
"linked",
"list",
"<",
"patch",
">",
"(",
")",
";",
"for",
"(",
"patch",
"a",
"patch",
":",
"patches",
")",
"{",
"patch",
"patch",
"copy",
"=",
"new",
"patch",
"(",
")",
";",
"for",
"(",
"diff",
"a",
"diff",
":",
"a",
"patch",
"diffs",
")",
"{",
"diff",
"diff",
"copy",
"=",
"new",
"diff",
"(",
"a",
"diff",
"operation",
",",
"a",
"diff",
"text",
")",
";",
"patch",
"copy",
"diffs",
"add",
"(",
"diff",
"copy",
")",
";",
"}",
"patch",
"copy",
"start",
"1",
"=",
"a",
"patch",
"start",
"1",
";",
"patch",
"copy",
"start",
"2",
"=",
"a",
"patch",
"start",
"2",
";",
"patch",
"copy",
"length",
"1",
"=",
"a",
"patch",
"length",
"1",
";",
"patch",
"copy",
"length",
"2",
"=",
"a",
"patch",
"length",
"2",
";",
"patches",
"copy",
"add",
"(",
"patch",
"copy",
")",
";",
"}",
"return",
"patches",
"copy",
";"
] |
[
"take",
"a",
"list",
"of",
"patches",
"and",
"return",
"a",
"textual",
"representation"
] | [
"string",
"builder",
"text",
"=",
"new",
"string",
"builder",
"(",
")",
";",
"for",
"(",
"patch",
"a",
"patch",
":",
"patches",
")",
"{",
"text",
"append",
"(",
"a",
"patch",
")",
";",
"}",
"return",
"text",
"to",
"string",
"(",
")",
";"
] |
[
"is",
"this",
"diff",
"equivalent",
"to",
"another",
"diff",
"?"
] | [
"try",
"{",
"return",
"(",
"(",
"(",
"diff",
")",
"d",
")",
"operation",
"=",
"=",
"this",
"operation",
")",
"&",
"&",
"(",
"(",
"(",
"diff",
")",
"d",
")",
"text",
"equals",
"(",
"this",
"text",
")",
")",
";",
"}",
"catch",
"(",
"class",
"cast",
"exception",
"e",
")",
"{",
"return",
"false",
";",
"}"
] |
[
"experimental"
] | [
"this",
"beta",
"transfers",
"=",
"beta",
"transfers",
";"
] |
[
"experimental"
] | [
"this",
"beta",
"walk",
"time",
"=",
"beta",
"walk",
"time",
";"
] |
[
"implementations",
"for",
"verification",
"type"
] | [
"return",
"uninitialized",
"type",
";"
] |
[
"implementations",
"for",
"object"
] | [
"if",
"(",
"!",
"super",
"equals",
"(",
"object",
")",
")",
"{",
"return",
"false",
";",
"}",
"uninitialized",
"type",
"other",
"=",
"(",
"uninitialized",
"type",
")",
"object",
";",
"return",
"this",
"u",
"2new",
"instruction",
"offset",
"=",
"=",
"other",
"u",
"2new",
"instruction",
"offset",
";"
] |
[
"returns",
"true",
"if",
"line",
"no",
"is",
"header",
"lines",
"or",
"false"
] | [
"return",
"arrays",
"binary",
"search",
"(",
"ignore",
"lines",
",",
"line",
"no",
")",
">",
"=",
"0",
";"
] |
[
"set",
"the",
"lines",
"numbers",
"to",
"ignore",
"in",
"the",
"header",
"check"
] | [
"if",
"(",
"list",
"length",
"=",
"=",
"0",
")",
"{",
"ignore",
"lines",
"=",
"empty",
"int",
"array",
";",
"}",
"else",
"{",
"ignore",
"lines",
"=",
"new",
"int",
"[",
"list",
"length",
"]",
";",
"system",
"arraycopy",
"(",
"list",
",",
"0",
",",
"ignore",
"lines",
",",
"0",
",",
"list",
"length",
")",
";",
"arrays",
"sort",
"(",
"ignore",
"lines",
")",
";",
"}"
] |
[
"render",
"the",
"inner",
"{"
] | [
"do",
"render",
"from",
"collection",
"(",
"collection",
"utils",
"array",
"to",
"list",
"(",
"this",
"option",
"source",
")",
",",
"tag",
"writer",
")",
";"
] |
[
"render",
"the",
"inner",
"{"
] | [
"map",
"<",
"?",
",",
"?",
">",
"option",
"map",
"=",
"(",
"map",
"<",
"?",
",",
"?",
">",
")",
"this",
"option",
"source",
";",
"for",
"(",
"map",
"entry",
"<",
"?",
",",
"?",
">",
"entry",
":",
"option",
"map",
"entry",
"set",
"(",
")",
")",
"{",
"object",
"map",
"key",
"=",
"entry",
"get",
"key",
"(",
")",
";",
"object",
"map",
"value",
"=",
"entry",
"get",
"value",
"(",
")",
";",
"object",
"render",
"value",
"=",
"(",
"this",
"value",
"property",
"!",
"=",
"null",
"?",
"property",
"accessor",
"factory",
"for",
"bean",
"property",
"access",
"(",
"map",
"key",
")",
"get",
"property",
"value",
"(",
"this",
"value",
"property",
")",
":",
"map",
"key",
")",
";",
"object",
"render",
"label",
"=",
"(",
"this",
"label",
"property",
"!",
"=",
"null",
"?",
"property",
"accessor",
"factory",
"for",
"bean",
"property",
"access",
"(",
"map",
"value",
")",
"get",
"property",
"value",
"(",
"this",
"label",
"property",
")",
":",
"map",
"value",
")",
";",
"render",
"option",
"(",
"tag",
"writer",
",",
"map",
"key",
",",
"render",
"value",
",",
"render",
"label",
")",
";",
"}"
] |
[
"render",
"the",
"inner",
"{"
] | [
"do",
"render",
"from",
"collection",
"(",
"(",
"collection",
"<",
"?",
">",
")",
"this",
"option",
"source",
",",
"tag",
"writer",
")",
";"
] |
[
"render",
"the",
"inner",
"{"
] | [
"do",
"render",
"from",
"collection",
"(",
"collection",
"utils",
"array",
"to",
"list",
"(",
"(",
"(",
"class",
"<",
"?",
">",
")",
"this",
"option",
"source",
")",
"get",
"enum",
"constants",
"(",
")",
")",
",",
"tag",
"writer",
")",
";"
] |
[
"render",
"the",
"inner",
"{"
] | [
"for",
"(",
"object",
"item",
":",
"option",
"collection",
")",
"{",
"bean",
"wrapper",
"wrapper",
"=",
"property",
"accessor",
"factory",
"for",
"bean",
"property",
"access",
"(",
"item",
")",
";",
"object",
"value",
";",
"if",
"(",
"this",
"value",
"property",
"!",
"=",
"null",
")",
"{",
"value",
"=",
"wrapper",
"get",
"property",
"value",
"(",
"this",
"value",
"property",
")",
";",
"}",
"else",
"if",
"(",
"item",
"instanceof",
"enum",
")",
"{",
"value",
"=",
"(",
"(",
"enum",
"<",
"?",
">",
")",
"item",
")",
"name",
"(",
")",
";",
"}",
"else",
"{",
"value",
"=",
"item",
";",
"}",
"object",
"label",
"=",
"(",
"this",
"label",
"property",
"!",
"=",
"null",
"?",
"wrapper",
"get",
"property",
"value",
"(",
"this",
"label",
"property",
")",
":",
"item",
")",
";",
"render",
"option",
"(",
"tag",
"writer",
",",
"item",
",",
"value",
",",
"label",
")",
";",
"}"
] |
[
"determine",
"the",
"display",
"value",
"of",
"the",
"supplied",
"{"
] | [
"property",
"editor",
"editor",
"=",
"(",
"value",
"!",
"=",
"null",
"?",
"this",
"bind",
"status",
"find",
"editor",
"(",
"value",
"get",
"class",
"(",
")",
")",
":",
"null",
")",
";",
"return",
"value",
"formatter",
"get",
"display",
"string",
"(",
"value",
",",
"editor",
",",
"this",
"html",
"escape",
")",
";"
] |
[
"process",
"the",
"option",
"value",
"before",
"it",
"is",
"written",
"<",
"p",
">",
"the",
"default",
"implementation",
"simply",
"returns",
"the",
"same",
"value",
"unchanged"
] | [
"return",
"resolved",
"value",
";"
] |
[
"determine",
"whether",
"the",
"supplied",
"values",
"matched",
"the",
"selected",
"value",
"<",
"p",
">",
"delegates",
"to",
"{"
] | [
"return",
"selected",
"value",
"comparator",
"is",
"selected",
"(",
"this",
"bind",
"status",
",",
"resolved",
"value",
")",
";"
] |
[
"determine",
"whether",
"the",
"option",
"fields",
"should",
"be",
"disabled"
] | [
"return",
"false",
";"
] |
[
"write",
"default",
"attributes",
"configured",
"to",
"the",
"supplied",
"{"
] | [] |
[
"determine",
"whether",
"the",
"supplied",
"{"
] | [
"class",
"<",
"?",
">",
"[",
"]",
"ifcs",
"=",
"config",
"get",
"proxied",
"interfaces",
"(",
")",
";",
"return",
"(",
"ifcs",
"length",
"=",
"=",
"0",
"|",
"|",
"(",
"ifcs",
"length",
"=",
"=",
"1",
"&",
"&",
"spring",
"proxy",
"class",
"is",
"assignable",
"from",
"(",
"ifcs",
"[",
"0",
"]",
")",
")",
")",
";"
] |
[
"when",
"set",
"to",
"enabled",
"causes",
"video",
"audio",
"and",
"captions",
"to",
"be",
"blanked",
"when",
"indicated",
"by",
"program",
"metadata"
] | [
"return",
"this",
"state",
";"
] |
[
"<",
"p",
">",
"the",
"current",
"state",
"of",
"the",
"cluster",
"<",
"/",
"p",
">"
] | [
"set",
"state",
"(",
"state",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"current",
"state",
"of",
"the",
"cluster",
"<",
"/",
"p",
">"
] | [
"with",
"state",
"(",
"state",
")",
";"
] |
[
"<",
"p",
">",
"the",
"current",
"state",
"of",
"the",
"cluster",
"<",
"/",
"p",
">"
] | [
"this",
"state",
"=",
"state",
"to",
"string",
"(",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"reason",
"for",
"the",
"cluster",
"status",
"change",
"<",
"/",
"p",
">"
] | [
"this",
"state",
"change",
"reason",
"=",
"state",
"change",
"reason",
";"
] |
[
"<",
"p",
">",
"the",
"reason",
"for",
"the",
"cluster",
"status",
"change",
"<",
"/",
"p",
">"
] | [
"return",
"this",
"state",
"change",
"reason",
";"
] |
[
"<",
"p",
">",
"the",
"reason",
"for",
"the",
"cluster",
"status",
"change",
"<",
"/",
"p",
">"
] | [
"set",
"state",
"change",
"reason",
"(",
"state",
"change",
"reason",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"a",
"timeline",
"that",
"represents",
"the",
"status",
"of",
"a",
"cluster",
"over",
"the",
"lifetime",
"of",
"the",
"cluster",
"<",
"/",
"p",
">"
] | [
"this",
"timeline",
"=",
"timeline",
";"
] |
[
"<",
"p",
">",
"a",
"timeline",
"that",
"represents",
"the",
"status",
"of",
"a",
"cluster",
"over",
"the",
"lifetime",
"of",
"the",
"cluster",
"<",
"/",
"p",
">"
] | [
"return",
"this",
"timeline",
";"
] |
[
"<",
"p",
">",
"a",
"timeline",
"that",
"represents",
"the",
"status",
"of",
"a",
"cluster",
"over",
"the",
"lifetime",
"of",
"the",
"cluster",
"<",
"/",
"p",
">"
] | [
"set",
"timeline",
"(",
"timeline",
")",
";",
"return",
"this",
";"
] |
[
"/",
"*",
"make",
"sure",
"that",
"0",
"*",
"log",
"(",
"0",
"/",
"0",
")",
"=",
"0",
"0",
"*",
"log",
"(",
"0",
")",
"=",
"0",
"else",
"this",
"would",
"be",
"the",
"score",
":",
"double",
"score",
"=",
"n11",
"/",
"n",
"*",
"math",
"log",
"(",
"(",
"n",
"*",
"n11",
")",
"/",
"(",
"n1",
"*",
"n",
"1",
")",
")",
"+",
"n01",
"/",
"n",
"*",
"math",
"log",
"(",
"(",
"n",
"*",
"n01",
")",
"/",
"(",
"n0",
"*",
"n",
"1",
")",
")",
"+",
"n10",
"/",
"n",
"*",
"math",
"log",
"(",
"(",
"n",
"*",
"n10",
")",
"/",
"(",
"n1",
"*",
"n",
"0",
")",
")",
"+",
"n00",
"/",
"n",
"*",
"math",
"log",
"(",
"(",
"n",
"*",
"n00",
")",
"/",
"(",
"n0",
"*",
"n",
"0",
")",
")",
";"
] | [
"double",
"numerator",
"=",
"math",
"abs",
"(",
"n",
"*",
"nxy",
")",
";",
"double",
"denominator",
"=",
"math",
"abs",
"(",
"nx",
"*",
"n",
"y",
")",
";",
"double",
"factor",
"=",
"math",
"abs",
"(",
"nxy",
"/",
"n",
")",
";",
"if",
"(",
"numerator",
"<",
"1",
"e",
"-",
"7",
"&",
"&",
"factor",
"<",
"1",
"e",
"-",
"7",
")",
"{",
"return",
"0",
"0",
";",
"}",
"else",
"{",
"return",
"factor",
"*",
"math",
"log",
"(",
"numerator",
"/",
"denominator",
")",
";",
"}"
] |
[
"meaningless",
"field",
"used",
"to",
"test",
"that",
"plugin",
"suggesters",
"can",
"add",
"fields",
"to",
"their",
"entries"
] | [
"return",
"dummy",
";"
] |
[
"marshal",
"the",
"specified",
"object",
"instance",
"(",
"value",
")",
"into",
"a",
"byte",
"buffer"
] | [
"public",
"abstract",
"void",
"marshal",
"(",
"t",
"value",
",",
"byte",
"buffer",
"buffer",
")",
";"
] |
[
"unmarshal",
"a",
"new",
"object",
"instance",
"from",
"the",
"byte",
"buffer",
"into",
"its",
"managed",
"type"
] | [
"public",
"abstract",
"t",
"unmarshal",
"(",
"byte",
"buffer",
"buffer",
")",
";"
] |
[
"how",
"many",
"bytes",
"a",
"single",
"instance",
"of",
"{",
"@",
"code",
"t",
"}",
"will",
"take",
"up",
"if",
"marshalled",
"to",
"/",
"from",
"{",
"@",
"code",
"native",
"type",
"}"
] | [
"public",
"abstract",
"int",
"get",
"native",
"size",
"(",
")",
";"
] |
[
"the",
"type",
"reference",
"for",
"{"
] | [
"return",
"m",
"type",
"reference",
";"
] |
[
"the",
"native",
"type",
"corresponding",
"to",
"this",
"marshaler",
"for",
"the",
"native",
"side",
"of",
"this",
"marshaler"
] | [
"return",
"m",
"native",
"type",
";"
] |
[
"{"
] | [
"ignite",
"configuration",
"cfg",
"=",
"super",
"get",
"configuration",
"(",
"grid",
"name",
")",
";",
"cfg",
"set",
"client",
"connector",
"configuration",
"(",
"new",
"client",
"connector",
"configuration",
"(",
")",
"set",
"ssl",
"enabled",
"(",
"true",
")",
"set",
"use",
"ignite",
"ssl",
"context",
"factory",
"(",
"true",
")",
")",
";",
"cfg",
"set",
"ssl",
"context",
"factory",
"(",
"create",
"ssl",
"factory",
"(",
")",
")",
";",
"cache",
"configuration",
"ccfg",
"=",
"new",
"cache",
"configuration",
"(",
"test",
"cache",
"name",
")",
";",
"cfg",
"set",
"cache",
"configuration",
"(",
"ccfg",
")",
";",
"return",
"cfg",
";"
] |
[
"{"
] | [
"stop",
"all",
"grids",
"(",
")",
";",
"protocols",
"=",
"null",
";",
"cipher",
"suites",
"=",
"null",
";"
] |
[
"creates",
"and",
"returns",
"a",
"deep",
"copy",
"of",
"the",
"configuration"
] | [
"try",
"{",
"neural",
"net",
"configuration",
"clone",
"=",
"(",
"neural",
"net",
"configuration",
")",
"super",
"clone",
"(",
")",
";",
"if",
"(",
"clone",
"layer",
"!",
"=",
"null",
")",
"clone",
"layer",
"=",
"clone",
"layer",
"clone",
"(",
")",
";",
"if",
"(",
"clone",
"step",
"function",
"!",
"=",
"null",
")",
"clone",
"step",
"function",
"=",
"clone",
"step",
"function",
"clone",
"(",
")",
";",
"if",
"(",
"clone",
"variables",
"!",
"=",
"null",
")",
"clone",
"variables",
"=",
"new",
"array",
"list",
"<",
">",
"(",
"clone",
"variables",
")",
";",
"return",
"clone",
";",
"}",
"catch",
"(",
"clone",
"not",
"supported",
"exception",
"e",
")",
"{",
"throw",
"new",
"runtime",
"exception",
"(",
"e",
")",
";",
"}"
] |
Subsets and Splits