docstring_tokens
sequence | code_tokens
sequence |
---|---|
[
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/"
] | [
"key",
"selector",
"<",
"tuple",
"2",
"<",
"integer",
"[",
"]",
",",
"string",
">",
",",
"int",
"[",
"]",
">",
"key",
"selector",
"=",
"new",
"key",
"selector",
"<",
"tuple",
"2",
"<",
"integer",
"[",
"]",
",",
"string",
">",
",",
"int",
"[",
"]",
">",
"(",
")",
"{",
"@",
"override",
"public",
"int",
"[",
"]",
"get",
"key",
"(",
"tuple",
"2",
"<",
"integer",
"[",
"]",
",",
"string",
">",
"value",
")",
"throws",
"exception",
"{",
"int",
"[",
"]",
"ks",
"=",
"new",
"int",
"[",
"value",
"f",
"0",
"length",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"ks",
"length",
";",
"i",
"+",
"+",
")",
"{",
"ks",
"[",
"i",
"]",
"=",
"value",
"f",
"0",
"[",
"i",
"]",
";",
"}",
"return",
"ks",
";",
"}",
"}",
";",
"test",
"key",
"rejection",
"(",
"key",
"selector",
",",
"primitive",
"array",
"type",
"info",
"int",
"primitive",
"array",
"type",
"info",
")",
";"
] |
[
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/",
"/"
] | [
"stream",
"execution",
"environment",
"env",
"=",
"data",
"stream",
"get",
"execution",
"environment",
"(",
")",
";",
"stream",
"graph",
"stream",
"graph",
"=",
"env",
"get",
"stream",
"graph",
"(",
")",
";",
"return",
"stream",
"graph",
"get",
"stream",
"node",
"(",
"data",
"stream",
"get",
"id",
"(",
")",
")",
"get",
"operator",
"(",
")",
";"
] |
[
"/",
"*",
"public",
"static",
"void",
"turn",
"off",
"hardware",
"acceleration",
"(",
"window",
"window",
")",
"{",
"if",
"(",
"window",
"=",
"=",
"null",
"|",
"|",
"build",
"model",
"=",
"=",
"null",
")",
"{",
"return",
";",
"}",
"if",
"(",
"build",
"model",
"contains",
"(",
"gt",
"-",
"s5301",
")",
"|",
"|",
"build",
"model",
"contains",
"(",
"gt",
"-",
"s5303",
")",
"|",
"|",
"build",
"model",
"contains",
"(",
"gt",
"-",
"b5330",
")",
"|",
"|",
"build",
"model",
"contains",
"(",
"gt",
"-",
"s5302",
")",
"|",
"|",
"build",
"model",
"contains",
"(",
"gt",
"-",
"s6012b",
")",
"|",
"|",
"build",
"model",
"contains",
"(",
"mega",
"fon",
"sp",
"-",
"ai",
")",
")",
"{",
"window",
"clear",
"flags",
"(",
"window",
"manager",
"layout",
"params",
"flag",
"hardware",
"accelerated",
")",
";",
"}",
"}"
] | [
"crash",
"manager",
"register",
"(",
"context",
",",
"build",
"vars",
"debug",
"version",
"?",
"build",
"vars",
"hockey",
"app",
"hash",
"debug",
":",
"build",
"vars",
"hockey",
"app",
"hash",
",",
"new",
"crash",
"manager",
"listener",
"(",
")",
"{",
"@",
"override",
"public",
"boolean",
"include",
"device",
"data",
"(",
")",
"{",
"return",
"true",
";",
"}",
"}",
")",
";"
] |
[
"{"
] | [
"super",
"write",
"binary",
"(",
"writer",
",",
"ver",
")",
";",
"writer",
"write",
"long",
"(",
"query",
"id",
")",
";",
"writer",
"write",
"boolean",
"(",
"is",
"query",
")",
";",
"if",
"(",
"is",
"query",
")",
"{",
"assert",
"items",
"!",
"=",
"null",
";",
"writer",
"write",
"boolean",
"(",
"last",
")",
";",
"jdbc",
"utils",
"write",
"items",
"(",
"writer",
",",
"items",
")",
";",
"}",
"else",
"writer",
"write",
"long",
"(",
"update",
"cnt",
")",
";"
] |
[
"{"
] | [
"super",
"read",
"binary",
"(",
"reader",
",",
"ver",
")",
";",
"query",
"id",
"=",
"reader",
"read",
"long",
"(",
")",
";",
"is",
"query",
"=",
"reader",
"read",
"boolean",
"(",
")",
";",
"if",
"(",
"is",
"query",
")",
"{",
"last",
"=",
"reader",
"read",
"boolean",
"(",
")",
";",
"items",
"=",
"jdbc",
"utils",
"read",
"items",
"(",
"reader",
")",
";",
"}",
"else",
"{",
"last",
"=",
"true",
";",
"update",
"cnt",
"=",
"reader",
"read",
"long",
"(",
")",
";",
"}"
] |
[
"{"
] | [
"return",
"s",
"to",
"string",
"(",
"jdbc",
"query",
"execute",
"result",
"class",
",",
"this",
")",
";"
] |
[
"use",
"{",
"@",
"link",
"#",
"create",
"(",
")",
"}",
"instead"
] | [
"return",
"new",
"list",
"recycler",
"configuration",
"(",
"linear",
"layout",
"manager",
"vertical",
",",
"false",
",",
"snap",
"none",
",",
"recycler",
"binder",
"configuration",
",",
"builder",
"linear",
"layout",
"info",
"factory",
")",
";"
] |
[
"builds",
"a",
"{"
] | [
"list",
"recycler",
"configuration",
"configuration",
"=",
"new",
"list",
"recycler",
"configuration",
"(",
"m",
"orientation",
",",
"m",
"reverse",
"layout",
",",
"m",
"snap",
"mode",
",",
"m",
"recycler",
"binder",
"configuration",
",",
"m",
"linear",
"layout",
"info",
"factory",
")",
";",
"validate",
"(",
"configuration",
")",
";",
"return",
"configuration",
";"
] |
[
"construct",
"an",
"asynchronous",
"implementation",
"of",
"amazon",
"guard",
"duty",
"async",
"using",
"the",
"current",
"builder",
"configuration"
] | [
"return",
"new",
"amazon",
"guard",
"duty",
"async",
"client",
"(",
"params",
")",
";"
] |
[
"register",
"an",
"observer",
"class"
] | [
"synchronized",
"(",
"configuration",
"observers",
")",
"{",
"configuration",
"observers",
"add",
"(",
"observer",
")",
";",
"if",
"(",
"observer",
"instanceof",
"propagating",
"configuration",
"observer",
")",
"{",
"(",
"(",
"propagating",
"configuration",
"observer",
")",
"observer",
")",
"register",
"children",
"(",
"this",
")",
";",
"}",
"}"
] |
[
"deregister",
"an",
"observer",
"class"
] | [
"synchronized",
"(",
"configuration",
"observers",
")",
"{",
"configuration",
"observers",
"remove",
"(",
"observer",
")",
";",
"if",
"(",
"observer",
"instanceof",
"propagating",
"configuration",
"observer",
")",
"{",
"(",
"(",
"propagating",
"configuration",
"observer",
")",
"observer",
")",
"deregister",
"children",
"(",
"this",
")",
";",
"}",
"}"
] |
[
"send",
"a",
"message",
"to",
"the",
"jms",
"queue"
] | [
"context",
"create",
"producer",
"(",
")",
"send",
"(",
"sync",
"queue",
",",
"message",
")",
";"
] |
[
"reads",
"all",
"bytes",
"from",
"an",
"input",
"stream",
"and",
"stores",
"them",
"in",
"an",
"array",
"up",
"to",
"a",
"maximum",
"count"
] | [
"byte",
"array",
"output",
"stream",
"output",
"stream",
"=",
"new",
"byte",
"array",
"output",
"stream",
"(",
")",
";",
"byte",
"[",
"]",
"buf",
"=",
"new",
"byte",
"[",
"read",
"buffer",
"length",
"]",
";",
"int",
"read",
";",
"while",
"(",
"(",
"read",
"=",
"in",
"read",
"(",
"buf",
",",
"0",
",",
"read",
"buffer",
"length",
")",
")",
"!",
"=",
"-",
"1",
")",
"{",
"output",
"stream",
"write",
"(",
"buf",
",",
"0",
",",
"read",
")",
";",
"}",
"return",
"output",
"stream",
"to",
"byte",
"array",
"(",
")",
";"
] |
[
"parses",
"a",
"property",
"list",
"from",
"a",
"file"
] | [
"return",
"parse",
"(",
"new",
"file",
"(",
"file",
"path",
")",
")",
";"
] |
[
"parses",
"a",
"property",
"list",
"from",
"an",
"input",
"stream"
] | [
"return",
"parse",
"(",
"read",
"all",
"(",
"is",
")",
")",
";"
] |
[
"converts",
"a",
"given",
"property",
"list",
"file",
"into",
"the",
"os",
"x",
"and",
"i",
"o",
"s",
"xml",
"format"
] | [
"n",
"s",
"object",
"root",
"=",
"parse",
"(",
"in",
")",
";",
"save",
"as",
"x",
"m",
"l",
"(",
"root",
",",
"out",
")",
";"
] |
[
"saves",
"a",
"property",
"list",
"with",
"the",
"given",
"object",
"as",
"root",
"in",
"binary",
"format",
"into",
"an",
"output",
"stream"
] | [
"binary",
"property",
"list",
"writer",
"write",
"(",
"out",
",",
"root",
")",
";"
] |
[
"converts",
"a",
"given",
"property",
"list",
"file",
"into",
"the",
"os",
"x",
"and",
"i",
"o",
"s",
"binary",
"format"
] | [
"n",
"s",
"object",
"root",
"=",
"parse",
"(",
"in",
")",
";",
"save",
"as",
"binary",
"(",
"root",
",",
"out",
")",
";"
] |
[
"/",
"*",
"returns",
"index",
"of",
"the",
"top",
"of",
"the",
"stack",
"stack",
"num",
"in",
"absolute",
"terms"
] | [
"return",
"stack",
"num",
"*",
"stack",
"size",
"+",
"stack",
"pointer",
"[",
"stack",
"num",
"]",
";"
] |
[
"get",
"the",
"qualified",
"(",
"prefixed",
"by",
"alias",
")",
"names",
"of",
"the",
"columns",
"of",
"the",
"owning",
"entity",
"which",
"are",
"to",
"be",
"used",
"in",
"the",
"join"
] | [
"return",
"get",
"aliased",
"l",
"h",
"s",
"column",
"names",
"(",
"type",
",",
"alias",
",",
"property",
",",
"0",
",",
"lhs",
"persister",
",",
"mapping",
")",
";"
] |
[
"get",
"the",
"unqualified",
"names",
"of",
"the",
"columns",
"of",
"the",
"owning",
"entity",
"which",
"are",
"to",
"be",
"used",
"in",
"the",
"join"
] | [
"return",
"get",
"l",
"h",
"s",
"column",
"names",
"(",
"type",
",",
"property",
",",
"0",
",",
"lhs",
"persister",
",",
"mapping",
")",
";"
] |
[
"get",
"the",
"columns",
"of",
"the",
"associated",
"table",
"which",
"are",
"to",
"be",
"used",
"in",
"the",
"join"
] | [
"final",
"string",
"unique",
"key",
"property",
"name",
"=",
"type",
"get",
"r",
"h",
"s",
"unique",
"key",
"property",
"name",
"(",
")",
";",
"final",
"joinable",
"joinable",
"=",
"type",
"get",
"associated",
"joinable",
"(",
"factory",
")",
";",
"if",
"(",
"unique",
"key",
"property",
"name",
"=",
"=",
"null",
")",
"{",
"return",
"joinable",
"get",
"key",
"column",
"names",
"(",
")",
";",
"}",
"else",
"{",
"return",
"(",
"(",
"outer",
"join",
"loadable",
")",
"joinable",
")",
"get",
"property",
"column",
"names",
"(",
"unique",
"key",
"property",
"name",
")",
";",
"}"
] |
[
"<",
"p",
">",
"information",
"about",
"the",
"associations",
"that",
"succeeded",
"<",
"/",
"p",
">"
] | [
"if",
"(",
"successful",
"=",
"=",
"null",
")",
"{",
"successful",
"=",
"new",
"com",
"amazonaws",
"internal",
"sdk",
"internal",
"list",
"<",
"association",
"description",
">",
"(",
")",
";",
"}",
"return",
"successful",
";"
] |
[
"<",
"p",
">",
"information",
"about",
"the",
"associations",
"that",
"succeeded",
"<",
"/",
"p",
">"
] | [
"if",
"(",
"successful",
"=",
"=",
"null",
")",
"{",
"this",
"successful",
"=",
"null",
";",
"return",
";",
"}",
"this",
"successful",
"=",
"new",
"com",
"amazonaws",
"internal",
"sdk",
"internal",
"list",
"<",
"association",
"description",
">",
"(",
"successful",
")",
";"
] |
[
"<",
"p",
">",
"information",
"about",
"the",
"associations",
"that",
"succeeded",
"<",
"/",
"p",
">",
"<",
"p",
">",
"<",
"b",
">",
"note",
":",
"<",
"/",
"b",
">",
"this",
"method",
"appends",
"the",
"values",
"to",
"the",
"existing",
"list",
"(",
"if",
"any",
")",
"use",
"{",
"@",
"link",
"#",
"set",
"successful",
"(",
"java",
"util",
"collection",
")",
"}",
"or",
"{",
"@",
"link",
"#",
"with",
"successful",
"(",
"java",
"util",
"collection",
")",
"}",
"if",
"you",
"want",
"to",
"override",
"the",
"existing",
"values",
"<",
"/",
"p",
">"
] | [
"if",
"(",
"this",
"successful",
"=",
"=",
"null",
")",
"{",
"set",
"successful",
"(",
"new",
"com",
"amazonaws",
"internal",
"sdk",
"internal",
"list",
"<",
"association",
"description",
">",
"(",
"successful",
"length",
")",
")",
";",
"}",
"for",
"(",
"association",
"description",
"ele",
":",
"successful",
")",
"{",
"this",
"successful",
"add",
"(",
"ele",
")",
";",
"}",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"information",
"about",
"the",
"associations",
"that",
"succeeded",
"<",
"/",
"p",
">"
] | [
"set",
"successful",
"(",
"successful",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"information",
"about",
"the",
"associations",
"that",
"failed",
"<",
"/",
"p",
">"
] | [
"if",
"(",
"failed",
"=",
"=",
"null",
")",
"{",
"failed",
"=",
"new",
"com",
"amazonaws",
"internal",
"sdk",
"internal",
"list",
"<",
"failed",
"create",
"association",
">",
"(",
")",
";",
"}",
"return",
"failed",
";"
] |
[
"<",
"p",
">",
"information",
"about",
"the",
"associations",
"that",
"failed",
"<",
"/",
"p",
">"
] | [
"if",
"(",
"failed",
"=",
"=",
"null",
")",
"{",
"this",
"failed",
"=",
"null",
";",
"return",
";",
"}",
"this",
"failed",
"=",
"new",
"com",
"amazonaws",
"internal",
"sdk",
"internal",
"list",
"<",
"failed",
"create",
"association",
">",
"(",
"failed",
")",
";"
] |
[
"<",
"p",
">",
"information",
"about",
"the",
"associations",
"that",
"failed",
"<",
"/",
"p",
">",
"<",
"p",
">",
"<",
"b",
">",
"note",
":",
"<",
"/",
"b",
">",
"this",
"method",
"appends",
"the",
"values",
"to",
"the",
"existing",
"list",
"(",
"if",
"any",
")",
"use",
"{",
"@",
"link",
"#",
"set",
"failed",
"(",
"java",
"util",
"collection",
")",
"}",
"or",
"{",
"@",
"link",
"#",
"with",
"failed",
"(",
"java",
"util",
"collection",
")",
"}",
"if",
"you",
"want",
"to",
"override",
"the",
"existing",
"values",
"<",
"/",
"p",
">"
] | [
"if",
"(",
"this",
"failed",
"=",
"=",
"null",
")",
"{",
"set",
"failed",
"(",
"new",
"com",
"amazonaws",
"internal",
"sdk",
"internal",
"list",
"<",
"failed",
"create",
"association",
">",
"(",
"failed",
"length",
")",
")",
";",
"}",
"for",
"(",
"failed",
"create",
"association",
"ele",
":",
"failed",
")",
"{",
"this",
"failed",
"add",
"(",
"ele",
")",
";",
"}",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"information",
"about",
"the",
"associations",
"that",
"failed",
"<",
"/",
"p",
">"
] | [
"set",
"failed",
"(",
"failed",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"id",
"that",
"amazon",
"route",
"53",
"assigned",
"to",
"the",
"traffic",
"policy",
"when",
"you",
"created",
"it",
"<",
"/",
"p",
">"
] | [
"set",
"id",
"(",
"id",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"name",
"that",
"you",
"specified",
"for",
"the",
"traffic",
"policy",
"when",
"you",
"created",
"it",
"<",
"/",
"p",
">"
] | [
"set",
"name",
"(",
"name",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"dns",
"type",
"of",
"the",
"resource",
"record",
"sets",
"that",
"amazon",
"route",
"53",
"creates",
"when",
"you",
"use",
"a",
"traffic",
"policy",
"to",
"create",
"a",
"traffic",
"policy",
"instance",
"<",
"/",
"p",
">"
] | [
"set",
"type",
"(",
"type",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"dns",
"type",
"of",
"the",
"resource",
"record",
"sets",
"that",
"amazon",
"route",
"53",
"creates",
"when",
"you",
"use",
"a",
"traffic",
"policy",
"to",
"create",
"a",
"traffic",
"policy",
"instance",
"<",
"/",
"p",
">"
] | [
"this",
"type",
"=",
"type",
"to",
"string",
"(",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"version",
"number",
"of",
"the",
"latest",
"version",
"of",
"the",
"traffic",
"policy",
"<",
"/",
"p",
">"
] | [
"this",
"latest",
"version",
"=",
"latest",
"version",
";"
] |
[
"<",
"p",
">",
"the",
"version",
"number",
"of",
"the",
"latest",
"version",
"of",
"the",
"traffic",
"policy",
"<",
"/",
"p",
">"
] | [
"return",
"this",
"latest",
"version",
";"
] |
[
"<",
"p",
">",
"the",
"version",
"number",
"of",
"the",
"latest",
"version",
"of",
"the",
"traffic",
"policy",
"<",
"/",
"p",
">"
] | [
"set",
"latest",
"version",
"(",
"latest",
"version",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"number",
"of",
"traffic",
"policies",
"that",
"are",
"associated",
"with",
"the",
"current",
"aws",
"account",
"<",
"/",
"p",
">"
] | [
"this",
"traffic",
"policy",
"count",
"=",
"traffic",
"policy",
"count",
";"
] |
[
"<",
"p",
">",
"the",
"number",
"of",
"traffic",
"policies",
"that",
"are",
"associated",
"with",
"the",
"current",
"aws",
"account",
"<",
"/",
"p",
">"
] | [
"return",
"this",
"traffic",
"policy",
"count",
";"
] |
[
"<",
"p",
">",
"the",
"number",
"of",
"traffic",
"policies",
"that",
"are",
"associated",
"with",
"the",
"current",
"aws",
"account",
"<",
"/",
"p",
">"
] | [
"set",
"traffic",
"policy",
"count",
"(",
"traffic",
"policy",
"count",
")",
";",
"return",
"this",
";"
] |
[
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-"
] | [
"new",
"massive",
"string",
"value",
"sorting",
"(",
")",
"test",
"string",
"value",
"sorting",
"(",
")",
";",
"new",
"massive",
"string",
"value",
"sorting",
"(",
")",
"test",
"string",
"value",
"tuples",
"sorting",
"(",
")",
";"
] |
[
"execute",
"a",
"statement",
"that",
"returns",
"a",
"1",
"by",
"1",
"table",
"with",
"a",
"numeric",
"value",
"for",
"example",
"select",
"count",
"(",
"*",
")",
"from",
"table",
"please",
"see",
"{"
] | [
"return",
"long",
"value",
"(",
"database",
"wrapper",
")",
";"
] |
[
"execute",
"a",
"statement",
"that",
"returns",
"a",
"1",
"by",
"1",
"table",
"with",
"a",
"numeric",
"value",
"for",
"example",
"select",
"count",
"(",
"*",
")",
"from",
"table",
"please",
"see",
"{"
] | [
"return",
"long",
"value",
"(",
")",
";"
] |
[
"/",
"*"
] | [
"inject",
"injectable",
"(",
"instance",
",",
"instance",
"get",
"class",
"(",
")",
",",
"config",
"framework",
"(",
")",
")",
";",
"apply",
"methods",
"(",
"instance",
",",
"(",
"class",
"<",
"t",
">",
")",
"instance",
"get",
"class",
"(",
")",
")",
";",
"return",
"instance",
";"
] |
[
"execute",
"{",
"@",
"link",
"inject",
"introspector",
"#",
"introspect",
"method",
"}"
] | [
"if",
"(",
"!",
"push",
"back",
"injection",
"contains",
"(",
"instance",
")",
")",
"{",
"set",
"<",
"method",
">",
"methods",
"=",
"(",
"get",
"inherited",
"private",
"method",
"(",
"default",
"type",
")",
")",
";",
"inject",
"methods",
"(",
"methods",
",",
"instance",
")",
";",
"}"
] |
[
"use",
"this",
"method",
"to",
"retrieve",
"available",
"{",
"@",
"link",
"injectable",
"}",
"this",
"method",
"is",
"for",
"application",
"that",
"inject",
"their",
"own",
"{",
"@",
"link",
"injectable",
"}",
"and",
"needs",
"already",
"constructed",
"classes"
] | [
"for",
"(",
"injectable",
"c",
":",
"injectables",
")",
"{",
"if",
"(",
"c",
"supported",
"type",
"(",
"u",
")",
")",
"{",
"return",
"(",
"u",
")",
"c",
"injectable",
"(",
"config",
")",
";",
"}",
"}",
"return",
"null",
";"
] |
[
"combines",
"two",
"strings",
"by",
"inserting",
"the",
"second",
"string",
"in",
"between",
"each",
"two",
"tokens",
"of",
"the",
"first",
"string",
"if",
"the",
"first",
"string",
"consist",
"of",
"<",
"code",
">",
"n",
"<",
"/",
"code",
">",
"tokens",
"then",
"this",
"method",
"returns",
"an",
"array",
"of",
"<",
"code",
">",
"n",
"-",
"1",
"<",
"/",
"code",
">",
"strings"
] | [
"string",
"[",
"]",
"tokens",
"=",
"s",
"1",
"split",
"(",
"\"",
"\"",
")",
";",
"string",
"[",
"]",
"combined",
"=",
"new",
"string",
"[",
"tokens",
"length",
"-",
"1",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"combined",
"length",
";",
"i",
"+",
"+",
")",
"{",
"combined",
"[",
"i",
"]",
"=",
"\"",
"\"",
";",
"for",
"(",
"int",
"j",
"=",
"0",
";",
"j",
"<",
"combined",
"length",
";",
"j",
"+",
"+",
")",
"{",
"combined",
"[",
"i",
"]",
"+",
"=",
"tokens",
"[",
"j",
"]",
"+",
"\"",
"\"",
";",
"if",
"(",
"i",
"=",
"=",
"j",
")",
"combined",
"[",
"i",
"]",
"+",
"=",
"s",
"2",
"+",
"\"",
"\"",
";",
"}",
"combined",
"[",
"i",
"]",
"+",
"=",
"tokens",
"[",
"tokens",
"length",
"-",
"1",
"]",
";",
"}",
"return",
"combined",
";"
] |
[
"test",
"that",
"policy",
"set",
"of",
"{",
"null",
"network",
"policy",
"null",
"}",
"does",
"not",
"crash",
"and",
"restores",
"the",
"valid",
"network",
"policy"
] | [
"network",
"policy",
"[",
"]",
"policies",
"=",
"new",
"network",
"policy",
"[",
"3",
"]",
";",
"policies",
"[",
"1",
"]",
"=",
"build",
"default",
"fake",
"mobile",
"policy",
"(",
")",
";",
"set",
"network",
"policies",
"(",
"policies",
")",
";",
"assert",
"network",
"policy",
"equals",
"(",
"default",
"cycle",
"day",
",",
"m",
"default",
"warning",
"bytes",
",",
"m",
"default",
"limit",
"bytes",
",",
"true",
")",
";"
] |
[
"creates",
"a",
"mock",
"and",
"registers",
"it",
"to",
"{"
] | [
"final",
"t",
"mock",
"=",
"mock",
"(",
"clazz",
")",
";",
"local",
"services",
"add",
"service",
"(",
"clazz",
",",
"mock",
")",
";",
"return",
"mock",
";"
] |
[
"returns",
"the",
"cached",
"session",
"using",
"the",
"session",
"id"
] | [
"final",
"session",
"elem",
"=",
"this",
"cache",
"get",
"if",
"present",
"(",
"session",
"id",
")",
";",
"return",
"elem",
";"
] |
[
"adds",
"a",
"session",
"to",
"the",
"cache",
"accessible",
"through",
"the",
"session",
"id"
] | [
"this",
"cache",
"put",
"(",
"session",
"get",
"session",
"id",
"(",
")",
",",
"session",
")",
";"
] |
[
"removes",
"the",
"session",
"from",
"the",
"cache"
] | [
"this",
"cache",
"invalidate",
"(",
"id",
")",
";"
] |
[
"set",
"regex",
"for",
"matching",
"method",
"names",
"to",
"ignore"
] | [
"ignore",
"method",
"names",
"regex",
"=",
"pattern",
";"
] |
[
"sets",
"minimal",
"amount",
"of",
"lines",
"in",
"method",
"to",
"allow",
"no",
"documentation"
] | [
"min",
"line",
"count",
"=",
"value",
";"
] |
[
"allow",
"validating",
"throws",
"tag"
] | [
"validate",
"throws",
"=",
"value",
";"
] |
[
"sets",
"list",
"of",
"annotations"
] | [
"allowed",
"annotations",
"=",
"arrays",
"as",
"list",
"(",
"user",
"annotations",
")",
";"
] |
[
"check",
"s",
"property",
"is",
"part",
"of",
"api",
"(",
"used",
"in",
"configurations",
")"
] | [
"allow",
"undeclared",
"r",
"t",
"e",
"=",
"flag",
";"
] |
[
"controls",
"whether",
"to",
"allow",
"documented",
"exception",
"that",
"are",
"subclass",
"of",
"one",
"of",
"declared",
"exceptions"
] | [
"allow",
"throws",
"tags",
"for",
"subclasses",
"=",
"flag",
";"
] |
[
"controls",
"whether",
"to",
"allow",
"a",
"type",
"which",
"has",
"type",
"parameters",
"to",
"omit",
"matching",
"param",
"tags",
"in",
"the",
"javadoc",
"defaults",
"to",
"false"
] | [
"allow",
"missing",
"param",
"tags",
"=",
"flag",
";"
] |
[
"controls",
"whether",
"to",
"allow",
"a",
"method",
"which",
"declares",
"that",
"it",
"throws",
"exceptions",
"to",
"omit",
"matching",
"throws",
"tags",
"in",
"the",
"javadoc",
"defaults",
"to",
"false"
] | [
"allow",
"missing",
"throws",
"tags",
"=",
"flag",
";"
] |
[
"controls",
"whether",
"to",
"allow",
"a",
"method",
"which",
"returns",
"non",
"-",
"void",
"type",
"to",
"omit",
"the",
"return",
"tag",
"in",
"the",
"javadoc",
"defaults",
"to",
"false"
] | [
"allow",
"missing",
"return",
"tag",
"=",
"flag",
";"
] |
[
"controls",
"whether",
"to",
"ignore",
"errors",
"when",
"there",
"is",
"no",
"javadoc",
"defaults",
"to",
"false"
] | [
"allow",
"missing",
"javadoc",
"=",
"flag",
";"
] |
[
"controls",
"whether",
"to",
"ignore",
"errors",
"when",
"there",
"is",
"no",
"javadoc",
"for",
"a",
"property",
"accessor",
"(",
"setter",
"/",
"getter",
"methods",
")",
"defaults",
"to",
"false"
] | [
"allow",
"missing",
"property",
"javadoc",
"=",
"flag",
";"
] |
[
"some",
"javadoc"
] | [
"boolean",
"result",
"=",
"false",
";",
"final",
"detail",
"a",
"s",
"t",
"modifiers",
"node",
"=",
"method",
"def",
"find",
"first",
"token",
"(",
"token",
"types",
"modifiers",
")",
";",
"detail",
"a",
"s",
"t",
"annotation",
"node",
"=",
"modifiers",
"node",
"find",
"first",
"token",
"(",
"token",
"types",
"annotation",
")",
";",
"while",
"(",
"annotation",
"node",
"!",
"=",
"null",
"&",
"&",
"annotation",
"node",
"get",
"type",
"(",
")",
"=",
"=",
"token",
"types",
"annotation",
")",
"{",
"detail",
"a",
"s",
"t",
"ident",
"node",
"=",
"annotation",
"node",
"find",
"first",
"token",
"(",
"token",
"types",
"ident",
")",
";",
"if",
"(",
"ident",
"node",
"=",
"=",
"null",
")",
"{",
"ident",
"node",
"=",
"annotation",
"node",
"find",
"first",
"token",
"(",
"token",
"types",
"dot",
")",
"find",
"first",
"token",
"(",
"token",
"types",
"ident",
")",
";",
"}",
"if",
"(",
"allowed",
"annotations",
"contains",
"(",
"ident",
"node",
"get",
"text",
"(",
")",
")",
")",
"{",
"result",
"=",
"true",
";",
"break",
";",
"}",
"annotation",
"node",
"=",
"annotation",
"node",
"get",
"next",
"sibling",
"(",
")",
";",
"}",
"return",
"result",
";"
] |
[
"some",
"javadoc"
] | [
"final",
"int",
"number",
"of",
"lines",
";",
"final",
"detail",
"a",
"s",
"t",
"lcurly",
"=",
"method",
"def",
"get",
"last",
"child",
"(",
")",
";",
"final",
"detail",
"a",
"s",
"t",
"rcurly",
"=",
"lcurly",
"get",
"last",
"child",
"(",
")",
";",
"if",
"(",
"lcurly",
"get",
"first",
"child",
"(",
")",
"=",
"=",
"rcurly",
")",
"{",
"number",
"of",
"lines",
"=",
"1",
";",
"}",
"else",
"{",
"number",
"of",
"lines",
"=",
"rcurly",
"get",
"line",
"no",
"(",
")",
"-",
"lcurly",
"get",
"line",
"no",
"(",
")",
"-",
"1",
";",
"}",
"return",
"number",
"of",
"lines",
";"
] |
[
"checks",
"if",
"a",
"missing",
"javadoc",
"is",
"allowed",
"by",
"the",
"check",
"s",
"configuration"
] | [
"return",
"allow",
"missing",
"javadoc",
"|",
"|",
"allow",
"missing",
"property",
"javadoc",
"&",
"&",
"(",
"check",
"util",
"is",
"setter",
"method",
"(",
"ast",
")",
"|",
"|",
"check",
"util",
"is",
"getter",
"method",
"(",
"ast",
")",
")",
"|",
"|",
"matches",
"skip",
"regex",
"(",
"ast",
")",
"|",
"|",
"is",
"contents",
"allow",
"missing",
"javadoc",
"(",
"ast",
")",
";"
] |
[
"checks",
"if",
"the",
"javadoc",
"can",
"be",
"missing",
"if",
"the",
"method",
"or",
"constructor",
"is",
"below",
"the",
"minimum",
"line",
"count",
"or",
"has",
"a",
"special",
"annotation"
] | [
"return",
"(",
"ast",
"get",
"type",
"(",
")",
"=",
"=",
"token",
"types",
"method",
"def",
"|",
"|",
"ast",
"get",
"type",
"(",
")",
"=",
"=",
"token",
"types",
"ctor",
"def",
")",
"&",
"&",
"(",
"get",
"methods",
"number",
"of",
"line",
"(",
"ast",
")",
"<",
"=",
"min",
"line",
"count",
"|",
"|",
"has",
"allowed",
"annotations",
"(",
"ast",
")",
")",
";"
] |
[
"checks",
"if",
"the",
"given",
"method",
"name",
"matches",
"the",
"regex",
"in",
"that",
"case",
"we",
"skip",
"enforcement",
"of",
"javadoc",
"for",
"this",
"method"
] | [
"boolean",
"result",
"=",
"false",
";",
"if",
"(",
"ignore",
"method",
"names",
"regex",
"!",
"=",
"null",
")",
"{",
"final",
"detail",
"a",
"s",
"t",
"ident",
"=",
"method",
"def",
"find",
"first",
"token",
"(",
"token",
"types",
"ident",
")",
";",
"final",
"string",
"method",
"name",
"=",
"ident",
"get",
"text",
"(",
")",
";",
"final",
"matcher",
"matcher",
"=",
"ignore",
"method",
"names",
"regex",
"matcher",
"(",
"method",
"name",
")",
";",
"if",
"(",
"matcher",
"matches",
"(",
")",
")",
"{",
"result",
"=",
"true",
";",
"}",
"}",
"return",
"result",
";"
] |
[
"whether",
"we",
"should",
"check",
"this",
"node"
] | [
"final",
"scope",
"surrounding",
"scope",
"=",
"scope",
"util",
"get",
"surrounding",
"scope",
"(",
"ast",
")",
";",
"return",
"(",
"exclude",
"scope",
"=",
"=",
"null",
"|",
"|",
"node",
"scope",
"!",
"=",
"exclude",
"scope",
"&",
"&",
"surrounding",
"scope",
"!",
"=",
"exclude",
"scope",
")",
"&",
"&",
"node",
"scope",
"is",
"in",
"(",
"scope",
")",
"&",
"&",
"surrounding",
"scope",
"is",
"in",
"(",
"scope",
")",
";"
] |
[
"returns",
"the",
"scope",
"for",
"the",
"method",
"/",
"constructor",
"at",
"the",
"specified",
"ast",
"if",
"the",
"method",
"is",
"in",
"an",
"interface",
"or",
"annotation",
"block",
"the",
"scope",
"is",
"assumed",
"to",
"be",
"public"
] | [
"final",
"scope",
"scope",
";",
"if",
"(",
"scope",
"util",
"is",
"in",
"interface",
"or",
"annotation",
"block",
"(",
"ast",
")",
")",
"{",
"scope",
"=",
"scope",
"public",
";",
"}",
"else",
"{",
"final",
"detail",
"a",
"s",
"t",
"mods",
"=",
"ast",
"find",
"first",
"token",
"(",
"token",
"types",
"modifiers",
")",
";",
"scope",
"=",
"scope",
"util",
"get",
"scope",
"from",
"mods",
"(",
"mods",
")",
";",
"}",
"return",
"scope",
";"
] |
[
"returns",
"the",
"tags",
"in",
"a",
"javadoc",
"comment",
"only",
"finds",
"throws",
"exception",
"param",
"return",
"and",
"see",
"tags"
] | [
"final",
"string",
"[",
"]",
"lines",
"=",
"comment",
"get",
"text",
"(",
")",
";",
"final",
"list",
"<",
"javadoc",
"tag",
">",
"tags",
"=",
"new",
"array",
"list",
"<",
">",
"(",
")",
";",
"int",
"current",
"line",
"=",
"comment",
"get",
"start",
"line",
"no",
"(",
")",
"-",
"1",
";",
"final",
"int",
"start",
"column",
"number",
"=",
"comment",
"get",
"start",
"col",
"no",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"lines",
"length",
";",
"i",
"+",
"+",
")",
"{",
"current",
"line",
"+",
"+",
";",
"final",
"matcher",
"javadoc",
"arg",
"matcher",
"=",
"match",
"javadoc",
"arg",
"matcher",
"(",
"lines",
"[",
"i",
"]",
")",
";",
"final",
"matcher",
"javadoc",
"noarg",
"matcher",
"=",
"match",
"javadoc",
"noarg",
"matcher",
"(",
"lines",
"[",
"i",
"]",
")",
";",
"final",
"matcher",
"noarg",
"curly",
"matcher",
"=",
"match",
"javadoc",
"noarg",
"curly",
"matcher",
"(",
"lines",
"[",
"i",
"]",
")",
";",
"final",
"matcher",
"arg",
"multiline",
"start",
"=",
"match",
"javadoc",
"arg",
"multiline",
"start",
"matcher",
"(",
"lines",
"[",
"i",
"]",
")",
";",
"final",
"matcher",
"noarg",
"multiline",
"start",
"=",
"match",
"javadoc",
"noarg",
"multiline",
"start",
"matcher",
"(",
"lines",
"[",
"i",
"]",
")",
";",
"if",
"(",
"javadoc",
"arg",
"matcher",
"find",
"(",
")",
")",
"{",
"final",
"int",
"col",
"=",
"calculate",
"tag",
"column",
"(",
"javadoc",
"arg",
"matcher",
",",
"i",
",",
"start",
"column",
"number",
")",
";",
"tags",
"add",
"(",
"new",
"javadoc",
"tag",
"(",
"current",
"line",
",",
"col",
",",
"javadoc",
"arg",
"matcher",
"group",
"(",
"1",
")",
",",
"javadoc",
"arg",
"matcher",
"group",
"(",
"2",
")",
")",
")",
";",
"}",
"else",
"if",
"(",
"javadoc",
"noarg",
"matcher",
"find",
"(",
")",
")",
"{",
"final",
"int",
"col",
"=",
"calculate",
"tag",
"column",
"(",
"javadoc",
"noarg",
"matcher",
",",
"i",
",",
"start",
"column",
"number",
")",
";",
"tags",
"add",
"(",
"new",
"javadoc",
"tag",
"(",
"current",
"line",
",",
"col",
",",
"javadoc",
"noarg",
"matcher",
"group",
"(",
"1",
")",
")",
")",
";",
"}",
"else",
"if",
"(",
"noarg",
"curly",
"matcher",
"find",
"(",
")",
")",
"{",
"final",
"int",
"col",
"=",
"calculate",
"tag",
"column",
"(",
"noarg",
"curly",
"matcher",
",",
"i",
",",
"start",
"column",
"number",
")",
";",
"tags",
"add",
"(",
"new",
"javadoc",
"tag",
"(",
"current",
"line",
",",
"col",
",",
"noarg",
"curly",
"matcher",
"group",
"(",
"1",
")",
")",
")",
";",
"}",
"else",
"if",
"(",
"arg",
"multiline",
"start",
"find",
"(",
")",
")",
"{",
"final",
"int",
"col",
"=",
"calculate",
"tag",
"column",
"(",
"arg",
"multiline",
"start",
",",
"i",
",",
"start",
"column",
"number",
")",
";",
"tags",
"add",
"all",
"(",
"get",
"multiline",
"arg",
"tags",
"(",
"arg",
"multiline",
"start",
",",
"col",
",",
"lines",
",",
"i",
",",
"current",
"line",
")",
")",
";",
"}",
"else",
"if",
"(",
"noarg",
"multiline",
"start",
"find",
"(",
")",
")",
"{",
"tags",
"add",
"all",
"(",
"get",
"multiline",
"no",
"arg",
"tags",
"(",
"noarg",
"multiline",
"start",
",",
"lines",
",",
"i",
",",
"current",
"line",
")",
")",
";",
"}",
"}",
"return",
"tags",
";"
] |
[
"calculates",
"column",
"number",
"using",
"javadoc",
"tag",
"matcher"
] | [
"int",
"col",
"=",
"javadoc",
"tag",
"matcher",
"start",
"(",
"1",
")",
"-",
"1",
";",
"if",
"(",
"line",
"number",
"=",
"=",
"0",
")",
"{",
"col",
"+",
"=",
"start",
"column",
"number",
";",
"}",
"return",
"col",
";"
] |
[
"gets",
"multiline",
"javadoc",
"tags",
"with",
"arguments"
] | [
"final",
"list",
"<",
"javadoc",
"tag",
">",
"tags",
"=",
"new",
"array",
"list",
"<",
">",
"(",
")",
";",
"final",
"string",
"param",
"1",
"=",
"arg",
"multiline",
"start",
"group",
"(",
"1",
")",
";",
"final",
"string",
"param",
"2",
"=",
"arg",
"multiline",
"start",
"group",
"(",
"2",
")",
";",
"int",
"rem",
"index",
"=",
"line",
"index",
"+",
"1",
";",
"while",
"(",
"rem",
"index",
"<",
"lines",
"length",
")",
"{",
"final",
"matcher",
"multiline",
"cont",
"=",
"match",
"javadoc",
"multiline",
"cont",
"matcher",
"(",
"lines",
"[",
"rem",
"index",
"]",
")",
";",
"if",
"(",
"multiline",
"cont",
"find",
"(",
")",
")",
"{",
"rem",
"index",
"=",
"lines",
"length",
";",
"final",
"string",
"l",
"fin",
"=",
"multiline",
"cont",
"group",
"(",
"1",
")",
";",
"if",
"(",
"!",
"l",
"fin",
"equals",
"(",
"next",
"tag",
")",
"&",
"&",
"!",
"l",
"fin",
"equals",
"(",
"end",
"javadoc",
")",
")",
"{",
"tags",
"add",
"(",
"new",
"javadoc",
"tag",
"(",
"tag",
"line",
",",
"column",
",",
"param",
"1",
",",
"param",
"2",
")",
")",
";",
"}",
"}",
"rem",
"index",
"+",
"+",
";",
"}",
"return",
"tags",
";"
] |
[
"gets",
"multiline",
"javadoc",
"tags",
"with",
"no",
"arguments"
] | [
"final",
"string",
"param",
"1",
"=",
"noarg",
"multiline",
"start",
"group",
"(",
"1",
")",
";",
"final",
"int",
"col",
"=",
"noarg",
"multiline",
"start",
"start",
"(",
"1",
")",
"-",
"1",
";",
"final",
"list",
"<",
"javadoc",
"tag",
">",
"tags",
"=",
"new",
"array",
"list",
"<",
">",
"(",
")",
";",
"int",
"rem",
"index",
"=",
"line",
"index",
"+",
"1",
";",
"while",
"(",
"rem",
"index",
"<",
"lines",
"length",
")",
"{",
"final",
"matcher",
"multiline",
"cont",
"=",
"match",
"javadoc",
"multiline",
"cont",
"matcher",
"(",
"lines",
"[",
"rem",
"index",
"]",
")",
";",
"if",
"(",
"multiline",
"cont",
"find",
"(",
")",
")",
"{",
"rem",
"index",
"=",
"lines",
"length",
";",
"final",
"string",
"l",
"fin",
"=",
"multiline",
"cont",
"group",
"(",
"1",
")",
";",
"if",
"(",
"!",
"l",
"fin",
"equals",
"(",
"next",
"tag",
")",
"&",
"&",
"!",
"l",
"fin",
"equals",
"(",
"end",
"javadoc",
")",
")",
"{",
"tags",
"add",
"(",
"new",
"javadoc",
"tag",
"(",
"tag",
"line",
",",
"col",
",",
"param",
"1",
")",
")",
";",
"}",
"}",
"rem",
"index",
"+",
"+",
";",
"}",
"return",
"tags",
";"
] |
[
"computes",
"the",
"parameter",
"nodes",
"for",
"a",
"method"
] | [
"final",
"detail",
"a",
"s",
"t",
"params",
"=",
"ast",
"find",
"first",
"token",
"(",
"token",
"types",
"parameters",
")",
";",
"final",
"list",
"<",
"detail",
"a",
"s",
"t",
">",
"return",
"value",
"=",
"new",
"array",
"list",
"<",
">",
"(",
")",
";",
"detail",
"a",
"s",
"t",
"child",
"=",
"params",
"get",
"first",
"child",
"(",
")",
";",
"while",
"(",
"child",
"!",
"=",
"null",
")",
"{",
"if",
"(",
"child",
"get",
"type",
"(",
")",
"=",
"=",
"token",
"types",
"parameter",
"def",
")",
"{",
"final",
"detail",
"a",
"s",
"t",
"ident",
"=",
"child",
"find",
"first",
"token",
"(",
"token",
"types",
"ident",
")",
";",
"if",
"(",
"ident",
"!",
"=",
"null",
")",
"{",
"return",
"value",
"add",
"(",
"ident",
")",
";",
"}",
"}",
"child",
"=",
"child",
"get",
"next",
"sibling",
"(",
")",
";",
"}",
"return",
"return",
"value",
";"
] |
[
"computes",
"the",
"exception",
"nodes",
"for",
"a",
"method"
] | [
"final",
"list",
"<",
"exception",
"info",
">",
"return",
"value",
"=",
"new",
"array",
"list",
"<",
">",
"(",
")",
";",
"final",
"detail",
"a",
"s",
"t",
"throws",
"a",
"s",
"t",
"=",
"ast",
"find",
"first",
"token",
"(",
"token",
"types",
"literal",
"throws",
")",
";",
"if",
"(",
"throws",
"a",
"s",
"t",
"!",
"=",
"null",
")",
"{",
"detail",
"a",
"s",
"t",
"child",
"=",
"throws",
"a",
"s",
"t",
"get",
"first",
"child",
"(",
")",
";",
"while",
"(",
"child",
"!",
"=",
"null",
")",
"{",
"if",
"(",
"child",
"get",
"type",
"(",
")",
"=",
"=",
"token",
"types",
"ident",
"|",
"|",
"child",
"get",
"type",
"(",
")",
"=",
"=",
"token",
"types",
"dot",
")",
"{",
"final",
"full",
"ident",
"ident",
"=",
"full",
"ident",
"create",
"full",
"ident",
"(",
"child",
")",
";",
"final",
"exception",
"info",
"exception",
"info",
"=",
"new",
"exception",
"info",
"(",
"create",
"class",
"info",
"(",
"new",
"token",
"(",
"ident",
")",
",",
"get",
"current",
"class",
"name",
"(",
")",
")",
")",
";",
"return",
"value",
"add",
"(",
"exception",
"info",
")",
";",
"}",
"child",
"=",
"child",
"get",
"next",
"sibling",
"(",
")",
";",
"}",
"}",
"return",
"return",
"value",
";"
] |
[
"remove",
"parameter",
"from",
"params",
"collection",
"by",
"name"
] | [
"boolean",
"found",
"=",
"false",
";",
"final",
"iterator",
"<",
"detail",
"a",
"s",
"t",
">",
"param",
"it",
"=",
"params",
"iterator",
"(",
")",
";",
"while",
"(",
"param",
"it",
"has",
"next",
"(",
")",
")",
"{",
"final",
"detail",
"a",
"s",
"t",
"param",
"=",
"param",
"it",
"next",
"(",
")",
";",
"if",
"(",
"param",
"get",
"text",
"(",
")",
"equals",
"(",
"param",
"name",
")",
")",
"{",
"found",
"=",
"true",
";",
"param",
"it",
"remove",
"(",
")",
";",
"break",
";",
"}",
"}",
"return",
"found",
";"
] |
[
"mark",
"that",
"the",
"exception",
"has",
"associated",
"throws",
"tag"
] | [
"found",
"=",
"true",
";"
] |
[
"checks",
"that",
"the",
"exception",
"has",
"throws",
"tag",
"associated",
"with",
"it"
] | [
"return",
"found",
";"
] |
[
"gets",
"exception",
"name"
] | [
"return",
"class",
"info",
"get",
"name",
"(",
")",
";"
] |
[
"gets",
"exception",
"class"
] | [
"return",
"class",
"info",
"get",
"clazz",
"(",
")",
";"
] |
[
"sec",
"-",
"1262"
] | [
"configure",
"for",
"el",
"annotations",
"(",
")",
";",
"security",
"context",
"holder",
"get",
"context",
"(",
")",
"set",
"authentication",
"(",
"anne",
")",
";",
"pre",
"post",
"secured",
"deny",
"all",
"method",
"(",
")",
";"
] |
[
"get",
"the",
"quoted",
"content"
] | [
"return",
"quoted",
"content",
"to",
"string",
"(",
")",
";"
] |
[
"set",
"the",
"quoted",
"content",
"the",
"insertion",
"point",
"should",
"be",
"set",
"against",
"this",
"content"
] | [
"this",
"quoted",
"content",
"=",
"content",
";"
] |
[
"remove",
"all",
"quoted",
"content"
] | [
"quoted",
"content",
"set",
"length",
"(",
"0",
")",
";",
"footer",
"insertion",
"point",
"=",
"0",
";",
"header",
"insertion",
"point",
"=",
"0",
";"
] |
[
"set",
"the",
"inserted",
"content",
"to",
"the",
"specified",
"content",
"replaces",
"anything",
"currently",
"in",
"the",
"inserted",
"content",
"buffer"
] | [
"user",
"content",
"=",
"new",
"string",
"builder",
"(",
"content",
")",
";"
] |
[
"configure",
"where",
"user",
"content",
"should",
"be",
"inserted",
"either",
"before",
"or",
"after",
"the",
"quoted",
"content"
] | [
"this",
"insertion",
"location",
"=",
"insertion",
"location",
";"
] |
[
"fetch",
"the",
"insertion",
"point",
"based",
"upon",
"the",
"quote",
"style"
] | [
"if",
"(",
"insertion",
"location",
"=",
"=",
"insertion",
"location",
"before",
"quote",
")",
"{",
"return",
"header",
"insertion",
"point",
";",
"}",
"else",
"{",
"return",
"footer",
"insertion",
"point",
";",
"}"
] |
[
"get",
"the",
"footer",
"insertion",
"point"
] | [
"return",
"footer",
"insertion",
"point",
";"
] |
[
"copy",
"information",
"from",
"the",
"meta",
"-",
"data",
"input",
"to",
"the",
"dialog",
"fields"
] | [
"if",
"(",
"input",
"get",
"g",
"p",
"g",
"location",
"(",
")",
"!",
"=",
"null",
")",
"{",
"w",
"g",
"p",
"g",
"location",
"set",
"text",
"(",
"input",
"get",
"g",
"p",
"g",
"location",
"(",
")",
")",
";",
"}",
"if",
"(",
"input",
"get",
"stream",
"field",
"(",
")",
"!",
"=",
"null",
")",
"{",
"w",
"stream",
"field",
"name",
"set",
"text",
"(",
"input",
"get",
"stream",
"field",
"(",
")",
")",
";",
"}",
"if",
"(",
"input",
"get",
"result",
"field",
"name",
"(",
")",
"!",
"=",
"null",
")",
"{",
"w",
"result",
"set",
"text",
"(",
"input",
"get",
"result",
"field",
"name",
"(",
")",
")",
";",
"}",
"if",
"(",
"input",
"get",
"key",
"name",
"(",
")",
"!",
"=",
"null",
")",
"{",
"w",
"key",
"name",
"set",
"text",
"(",
"input",
"get",
"key",
"name",
"(",
")",
")",
";",
"}",
"w",
"key",
"name",
"from",
"field",
"set",
"selection",
"(",
"input",
"is",
"keyname",
"in",
"field",
"(",
")",
")",
";",
"if",
"(",
"input",
"get",
"keyname",
"field",
"name",
"(",
")",
"!",
"=",
"null",
")",
"{",
"w",
"key",
"name",
"field",
"name",
"set",
"text",
"(",
"input",
"get",
"keyname",
"field",
"name",
"(",
")",
")",
";",
"}",
"w",
"stepname",
"select",
"all",
"(",
")",
";",
"w",
"stepname",
"set",
"focus",
"(",
")",
";"
] |
[
"schedule",
"the",
"specified",
"timer",
"task",
"for",
"execution",
"at",
"the",
"specified",
"time",
"with",
"the",
"specified",
"period",
"in",
"milliseconds"
] | [
"assert",
"delay",
">",
"=",
"0",
":",
"delay",
";",
"assert",
"period",
">",
"0",
"|",
"|",
"period",
"=",
"=",
"-",
"1",
":",
"period",
";",
"cancelable",
"task",
"obj",
"=",
"new",
"cancelable",
"task",
"(",
"task",
",",
"u",
"current",
"time",
"millis",
"(",
")",
"+",
"delay",
",",
"period",
")",
";",
"add",
"timeout",
"object",
"(",
"obj",
")",
";",
"return",
"obj",
";"
] |
[
"wait",
"for",
"a",
"future",
"(",
"listen",
"with",
"timeout",
")"
] | [
"if",
"(",
"timeout",
"=",
"=",
"-",
"1",
")",
"{",
"clo",
"apply",
"(",
"null",
",",
"false",
")",
";",
"return",
";",
"}",
"if",
"(",
"fut",
"=",
"=",
"null",
"|",
"|",
"fut",
"is",
"done",
"(",
")",
")",
"clo",
"apply",
"(",
"null",
",",
"false",
")",
";",
"else",
"{",
"wait",
"future",
"timeout",
"object",
"timeout",
"obj",
"=",
"null",
";",
"if",
"(",
"timeout",
">",
"0",
")",
"{",
"timeout",
"obj",
"=",
"new",
"wait",
"future",
"timeout",
"object",
"(",
"fut",
",",
"timeout",
",",
"clo",
")",
";",
"add",
"timeout",
"object",
"(",
"timeout",
"obj",
")",
";",
"}",
"final",
"wait",
"future",
"timeout",
"object",
"final",
"timeout",
"obj",
"=",
"timeout",
"obj",
";",
"fut",
"listen",
"(",
"new",
"ignite",
"in",
"closure",
"<",
"ignite",
"internal",
"future",
"<",
"?",
">",
">",
"(",
")",
"{",
"@",
"override",
"public",
"void",
"apply",
"(",
"ignite",
"internal",
"future",
"<",
"?",
">",
"fut",
")",
"{",
"if",
"(",
"final",
"timeout",
"obj",
"!",
"=",
"null",
"&",
"&",
"!",
"final",
"timeout",
"obj",
"finish",
"guard",
"compare",
"and",
"set",
"(",
"false",
",",
"true",
")",
")",
"return",
";",
"try",
"{",
"fut",
"get",
"(",
")",
";",
"clo",
"apply",
"(",
"null",
",",
"false",
")",
";",
"}",
"catch",
"(",
"ignite",
"checked",
"exception",
"e",
")",
"{",
"clo",
"apply",
"(",
"e",
",",
"false",
")",
";",
"}",
"finally",
"{",
"if",
"(",
"final",
"timeout",
"obj",
"!",
"=",
"null",
")",
"remove",
"timeout",
"object",
"(",
"final",
"timeout",
"obj",
")",
";",
"}",
"}",
"}",
")",
";",
"}"
] |
[
"{"
] | [
"if",
"(",
"cancel",
")",
"return",
";",
"try",
"{",
"task",
"run",
"(",
")",
";",
"}",
"finally",
"{",
"if",
"(",
"!",
"cancel",
"&",
"&",
"period",
">",
"0",
")",
"{",
"end",
"time",
"=",
"u",
"current",
"time",
"millis",
"(",
")",
"+",
"period",
";",
"add",
"timeout",
"object",
"(",
"this",
")",
";",
"}",
"}"
] |
[
"{"
] | [
"return",
"s",
"to",
"string",
"(",
"cancelable",
"task",
"class",
",",
"this",
")",
";"
] |
[
"{"
] | [
"if",
"(",
"!",
"fut",
"is",
"done",
"(",
")",
"&",
"&",
"finish",
"guard",
"compare",
"and",
"set",
"(",
"false",
",",
"true",
")",
")",
"clo",
"apply",
"(",
"null",
",",
"true",
")",
";"
] |
[
"{"
] | [
"return",
"s",
"to",
"string",
"(",
"wait",
"future",
"timeout",
"object",
"class",
",",
"this",
")",
";"
] |
[
"when",
"specified",
"this",
"offset",
"(",
"in",
"milliseconds",
")",
"is",
"added",
"to",
"the",
"input",
"ad",
"avail",
"pts",
"time",
"this",
"only",
"applies",
"to",
"embedded",
"scte",
"104",
"/",
"35",
"messages",
"and",
"does",
"not",
"apply",
"to",
"oob",
"messages"
] | [
"set",
"ad",
"avail",
"offset",
"(",
"ad",
"avail",
"offset",
")",
";",
"return",
"this",
";"
] |
[
"when",
"set",
"to",
"ignore",
"segment",
"descriptors",
"with",
"no",
"regional",
"blackout",
"flag",
"set",
"to",
"0",
"will",
"no",
"longer",
"trigger",
"blackouts",
"or",
"ad",
"avail",
"slates"
] | [
"set",
"no",
"regional",
"blackout",
"flag",
"(",
"no",
"regional",
"blackout",
"flag",
")",
";",
"return",
"this",
";"
] |
[
"when",
"set",
"to",
"ignore",
"segment",
"descriptors",
"with",
"no",
"regional",
"blackout",
"flag",
"set",
"to",
"0",
"will",
"no",
"longer",
"trigger",
"blackouts",
"or",
"ad",
"avail",
"slates"
] | [
"this",
"no",
"regional",
"blackout",
"flag",
"=",
"no",
"regional",
"blackout",
"flag",
"to",
"string",
"(",
")",
";",
"return",
"this",
";"
] |
[
"when",
"set",
"to",
"ignore",
"segment",
"descriptors",
"with",
"web",
"delivery",
"allowed",
"flag",
"set",
"to",
"0",
"will",
"no",
"longer",
"trigger",
"blackouts",
"or",
"ad",
"avail",
"slates"
] | [
"set",
"web",
"delivery",
"allowed",
"flag",
"(",
"web",
"delivery",
"allowed",
"flag",
")",
";",
"return",
"this",
";"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.