docstring_tokens list | code_tokens list |
|---|---|
[
"this",
"method",
"returns",
"average",
"frequency",
"of",
"events",
"happened",
"within",
"predefined",
"timeframe"
] | [
"if",
"(",
"is",
"alive",
"(",
")",
")",
"{",
"return",
"1",
";",
"}",
"else",
"{",
"return",
"0",
";",
"}"
] |
[
"this",
"method",
"returns",
"total",
"number",
"of",
"events",
"happened",
"withing",
"predefined",
"timeframe"
] | [
"if",
"(",
"is",
"alive",
"(",
")",
")",
"{",
"return",
"1",
";",
"}",
"else",
"{",
"return",
"0",
";",
"}"
] |
[
"copy",
"information",
"from",
"the",
"meta",
"-",
"data",
"input",
"to",
"the",
"dialog",
"fields"
] | [
"w",
"types",
"select",
"(",
"input",
"get",
"file",
"type",
"(",
")",
")",
";",
"if",
"(",
"input",
"get",
"filename",
"field",
"(",
")",
"!",
"=",
"null",
")",
"{",
"w",
"filename",
"field",
"set",
"text",
"(",
"input",
"get",
"filename",
"field"... |
[
"override",
"this",
"to",
"set",
"the",
"datatype",
"of",
"the",
"tests",
"defined",
"in",
"the",
"child",
"class"
] | [
"return",
"data",
"buffer",
"type",
"float",
";"
] |
[
"checks",
"whether",
"a",
"point",
"is",
"within",
"the",
"bounding",
"box",
"of",
"this",
"graphic",
"the",
"provided",
"point",
"should",
"be",
"relative",
"to",
"this",
"graphic",
"s",
"containing",
"overlay"
] | [
"text",
"block",
"text",
"=",
"m",
"text",
";",
"if",
"(",
"text",
"=",
"=",
"null",
")",
"{",
"return",
"false",
";",
"}",
"rect",
"f",
"rect",
"=",
"new",
"rect",
"f",
"(",
"text",
"get",
"bounding",
"box",
"(",
")",
")",
";",
"rect",
"left",... |
[
"this",
"method",
"takes",
"the",
"value",
"of",
"{",
"@",
"link",
"#",
"get",
"average",
"bytes",
"per",
"sec",
"(",
")",
"}",
"and",
"calculates",
"the",
"kbps",
"out",
"of",
"it",
"by",
"simply",
"multiplying",
"by",
"8",
"and",
"dividing",
"by",
... | [
"return",
"(",
"int",
")",
"get",
"average",
"bytes",
"per",
"sec",
"(",
")",
"*",
"8",
"/",
"1000",
";"
] |
[
"this",
"mehtod",
"returns",
"whether",
"the",
"audio",
"stream",
"data",
"is",
"error",
"concealed",
"<",
"br",
">",
"for",
"now",
"only",
"interleaved",
"concealment",
"is",
"known",
"<",
"br",
">"
] | [
"return",
"get",
"error",
"concealment",
"(",
")",
"equals",
"(",
"guid",
"guid",
"audio",
"error",
"concealement",
"interleaved",
")",
";"
] |
[
"sets",
"the",
"bits",
"per",
"sample"
] | [
"this",
"bits",
"per",
"sample",
"=",
"bps",
";"
] |
[
"sets",
"the",
"block",
"alignment"
] | [
"this",
"block",
"alignment",
"=",
"align",
";"
] |
[
"sets",
"the",
"codec",
"data"
] | [
"if",
"(",
"codec",
"specific",
"data",
"=",
"=",
"null",
")",
"{",
"throw",
"new",
"illegal",
"argument",
"exception",
"(",
")",
";",
"}",
"this",
"codec",
"data",
"=",
"codec",
"specific",
"data",
"clone",
"(",
")",
";"
] |
[
"this",
"method",
"sets",
"the",
"error",
"concealment",
"type",
"which",
"is",
"given",
"by",
"two",
"g",
"u",
"i",
"ds",
"<",
"br",
">"
] | [
"this",
"error",
"concealment",
"=",
"err",
"conc",
";"
] |
[
"the",
"implementation",
"of",
"the",
"algorithm",
"renamed",
"from",
"{",
"@",
"link",
"graph",
"algorithm",
"#",
"run",
"(",
"graph",
")",
"}"
] | [
"protected",
"abstract",
"graph",
"<",
"out",
"k",
",",
"out",
"vv",
",",
"out",
"ev",
">",
"run",
"internal",
"(",
"graph",
"<",
"in",
"k",
",",
"in",
"vv",
",",
"in",
"ev",
">",
"input",
")",
"throws",
"exception",
";"
] |
[
"consider",
"using",
"{"
] | [
"this",
"min",
"=",
"math",
"min",
"(",
"this",
"min",
",",
"value",
")",
";"
] |
[
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"... | [
"this",
"min",
"=",
"math",
"min",
"(",
"this",
"min",
",",
"value",
")",
";"
] |
[
"shows",
"the",
"register",
"values",
"of",
"a",
"given",
"thread",
"in",
"the",
"gui"
] | [
"if",
"(",
"old",
"thread",
"!",
"=",
"null",
")",
"{",
"old",
"thread",
"remove",
"listener",
"(",
"m",
"thread",
"listener",
")",
";",
"}",
"if",
"(",
"new",
"thread",
"!",
"=",
"null",
")",
"{",
"m",
"data",
"provider",
"set",
"register",
"infor... |
[
"updates",
"the",
"gui",
"according",
"to",
"the",
"state",
"of",
"the",
"debugger"
] | [
"final",
"i",
"debugger",
"active",
"debugger",
"=",
"m",
"debug",
"perspective",
"model",
"get",
"current",
"selected",
"debugger",
"(",
")",
";",
"final",
"target",
"process",
"thread",
"active",
"thread",
"=",
"active",
"debugger",
"=",
"=",
"null",
"?",
... |
[
"cleans",
"up",
"allocated",
"resources"
] | [
"m",
"debug",
"perspective",
"model",
"remove",
"listener",
"(",
"m",
"debug",
"listener",
")",
";",
"final",
"i",
"debugger",
"active",
"debugger",
"=",
"m",
"debug",
"perspective",
"model",
"get",
"current",
"selected",
"debugger",
"(",
")",
";",
"final",
... |
[
"the",
"default",
"implementation",
"calls",
"{",
"@",
"link",
"#",
"collect",
"match",
"(",
"search",
"match",
")",
"}",
"for",
"all",
"matches",
"that",
"make",
"it",
"through",
"{",
"@",
"link",
"#",
"filter",
"match",
"(",
"search",
"match",
")",
"... | [
"if",
"(",
"!",
"filter",
"match",
"(",
"match",
")",
")",
"collect",
"match",
"(",
"match",
")",
";"
] |
[
"return",
"a",
"localized",
"string",
"for",
"am",
"or",
"pm"
] | [
"return",
"locale",
"data",
"get",
"(",
"locale",
"get",
"default",
"(",
")",
")",
"am",
"pm",
"[",
"ampm",
"-",
"calendar",
"am",
"]",
";"
] |
[
"return",
"a",
"localized",
"string",
"for",
"the",
"month",
"of",
"the",
"year"
] | [
"locale",
"data",
"d",
"=",
"locale",
"data",
"get",
"(",
"locale",
"get",
"default",
"(",
")",
")",
";",
"string",
"[",
"]",
"names",
";",
"switch",
"(",
"abbrev",
")",
"{",
"case",
"length",
"long",
":",
"names",
"=",
"d",
"long",
"month",
"names... |
[
"returns",
"a",
"string",
"describing",
"the",
"elapsed",
"time",
"since",
"start",
"time",
"<",
"p",
">",
"the",
"minimum",
"timespan",
"to",
"report",
"is",
"set",
"to",
"{"
] | [
"return",
"get",
"relative",
"time",
"span",
"string",
"(",
"start",
"time",
",",
"system",
"current",
"time",
"millis",
"(",
")",
",",
"minute",
"in",
"millis",
")",
";"
] |
[
"returns",
"a",
"string",
"describing",
"time",
"as",
"a",
"time",
"relative",
"to",
"now",
"<",
"p",
">",
"time",
"spans",
"in",
"the",
"past",
"are",
"formatted",
"like",
"42",
"minutes",
"ago",
"time",
"spans",
"in",
"the",
"future",
"are",
"formatted... | [
"int",
"flags",
"=",
"format",
"show",
"date",
"|",
"format",
"show",
"year",
"|",
"format",
"abbrev",
"month",
";",
"return",
"get",
"relative",
"time",
"span",
"string",
"(",
"time",
",",
"now",
",",
"min",
"resolution",
",",
"flags",
")",
";"
] |
[
"returns",
"a",
"string",
"describing",
"time",
"as",
"a",
"time",
"relative",
"to",
"now",
"<",
"p",
">",
"time",
"spans",
"in",
"the",
"past",
"are",
"formatted",
"like",
"42",
"minutes",
"ago",
"time",
"spans",
"in",
"the",
"future",
"are",
"formatted... | [
"return",
"relative",
"date",
"time",
"formatter",
"get",
"relative",
"time",
"span",
"string",
"(",
"locale",
"get",
"default",
"(",
")",
",",
"time",
"zone",
"get",
"default",
"(",
")",
",",
"time",
",",
"now",
",",
"min",
"resolution",
",",
"flags",
... |
[
"returns",
"the",
"given",
"duration",
"in",
"a",
"human",
"-",
"friendly",
"format",
"for",
"example",
"4",
"minutes",
"or",
"1",
"second",
"returns",
"only",
"the",
"largest",
"meaningful",
"unit",
"of",
"time",
"from",
"seconds",
"up",
"to",
"hours"
] | [
"return",
"format",
"duration",
"(",
"millis",
",",
"length",
"long",
")",
";"
] |
[
"returns",
"the",
"given",
"duration",
"in",
"a",
"human",
"-",
"friendly",
"format",
"for",
"example",
"4",
"minutes",
"or",
"1",
"second",
"returns",
"only",
"the",
"largest",
"meaningful",
"unit",
"of",
"time",
"from",
"seconds",
"up",
"to",
"hours",
"<... | [
"final",
"format",
"width",
"width",
";",
"switch",
"(",
"abbrev",
")",
"{",
"case",
"length",
"long",
":",
"width",
"=",
"format",
"width",
"wide",
";",
"break",
";",
"case",
"length",
"short",
":",
"case",
"length",
"shorter",
":",
"case",
"length",
... |
[
"formats",
"an",
"elapsed",
"time",
"in",
"the",
"form",
"mm",
":",
"ss",
"or",
"h",
":",
"mm",
":",
"ss",
"for",
"display",
"on",
"the",
"call",
"-",
"in",
"-",
"progress",
"screen"
] | [
"return",
"format",
"elapsed",
"time",
"(",
"null",
",",
"elapsed",
"seconds",
")",
";"
] |
[
"format",
"a",
"date",
"/",
"time",
"such",
"that",
"if",
"the",
"then",
"is",
"on",
"the",
"same",
"day",
"as",
"now",
"it",
"shows",
"just",
"the",
"time",
"and",
"if",
"it",
"s",
"a",
"different",
"day",
"it",
"shows",
"just",
"the",
"date"
] | [
"calendar",
"then",
"cal",
"=",
"new",
"gregorian",
"calendar",
"(",
")",
";",
"then",
"cal",
"set",
"time",
"in",
"millis",
"(",
"then",
")",
";",
"date",
"then",
"date",
"=",
"then",
"cal",
"get",
"time",
"(",
")",
";",
"calendar",
"now",
"cal",
... |
[
"formats",
"a",
"date",
"or",
"a",
"time",
"range",
"according",
"to",
"the",
"local",
"conventions",
"<",
"p",
">",
"note",
"that",
"this",
"is",
"a",
"convenience",
"method",
"using",
"it",
"involves",
"creating",
"an",
"internal",
"{",
"@",
"link",
"j... | [
"formatter",
"f",
"=",
"new",
"formatter",
"(",
"new",
"string",
"builder",
"(",
"50",
")",
",",
"locale",
"get",
"default",
"(",
")",
")",
";",
"return",
"format",
"date",
"range",
"(",
"context",
",",
"f",
",",
"start",
"millis",
",",
"end",
"milli... |
[
"formats",
"a",
"date",
"or",
"a",
"time",
"range",
"according",
"to",
"the",
"local",
"conventions",
"<",
"p",
">",
"note",
"that",
"this",
"is",
"a",
"convenience",
"method",
"for",
"formatting",
"the",
"date",
"or",
"time",
"range",
"in",
"the",
"loca... | [
"return",
"format",
"date",
"range",
"(",
"context",
",",
"formatter",
",",
"start",
"millis",
",",
"end",
"millis",
",",
"flags",
",",
"null",
")",
";"
] |
[
"formats",
"a",
"date",
"or",
"a",
"time",
"according",
"to",
"the",
"local",
"conventions",
"there",
"are",
"lots",
"of",
"options",
"that",
"allow",
"the",
"caller",
"to",
"control",
"for",
"example",
"if",
"the",
"time",
"is",
"shown",
"if",
"the",
"d... | [
"return",
"format",
"date",
"range",
"(",
"context",
",",
"millis",
",",
"millis",
",",
"flags",
")",
";"
] |
[
"test",
"the",
"scenario",
"where",
"the",
"max",
"container",
"size",
"is",
"the",
"default"
] | [
"int",
"default",
"num",
"instancesper",
"container",
"=",
"4",
";",
"packing",
"plan",
"packing",
"plan",
"=",
"pack",
"(",
"topology",
")",
";",
"assert",
"assert",
"equals",
"(",
"2",
",",
"packing",
"plan",
"get",
"containers",
"(",
")",
"size",
"(",... |
[
"test",
"the",
"scenario",
"where",
"the",
"max",
"container",
"size",
"is",
"the",
"default",
"but",
"padding",
"is",
"configured"
] | [
"int",
"padding",
"=",
"50",
";",
"int",
"default",
"num",
"instancesper",
"container",
"=",
"4",
";",
"topology",
"config",
"set",
"container",
"padding",
"percentage",
"(",
"padding",
")",
";",
"topology",
"a",
"p",
"i",
"topology",
"new",
"topology",
"=... |
[
"test",
"the",
"scenario",
"where",
"the",
"max",
"container",
"size",
"is",
"the",
"default",
"and",
"scaling",
"is",
"requested"
] | [
"int",
"default",
"num",
"instancesper",
"container",
"=",
"4",
";",
"int",
"num",
"scaling",
"instances",
"=",
"5",
";",
"map",
"<",
"string",
",",
"integer",
">",
"component",
"changes",
"=",
"new",
"hash",
"map",
"<",
">",
"(",
")",
";",
"component"... |
[
"test",
"the",
"scenario",
"ram",
"map",
"config",
"is",
"partially",
"set",
"and",
"scaling",
"is",
"requested"
] | [
"byte",
"amount",
"bolt",
"ram",
"=",
"byte",
"amount",
"from",
"gigabytes",
"(",
"4",
")",
";",
"byte",
"amount",
"max",
"container",
"ram",
"=",
"byte",
"amount",
"from",
"gigabytes",
"(",
"10",
")",
";",
"topology",
"config",
"set",
"container",
"max"... |
[
"set",
"the",
"value",
"of",
"the",
"{"
] | [
"this",
"id",
"=",
"id",
";"
] |
[
"get",
"the",
"value",
"of",
"the",
"{"
] | [
"return",
"this",
"id",
";"
] |
[
"get",
"the",
"value",
"for",
"the",
"html",
"{"
] | [
"return",
"get",
"property",
"path",
"(",
")",
";"
] |
[
"get",
"the",
"value",
"of",
"the",
"nested",
"path",
"that",
"may",
"have",
"been",
"exposed",
"by",
"the",
"{"
] | [
"return",
"(",
"string",
")",
"this",
"page",
"context",
"get",
"attribute",
"(",
"nested",
"path",
"variable",
"name",
",",
"page",
"context",
"request",
"scope",
")",
";"
] |
[
"build",
"the",
"property",
"path",
"for",
"this",
"tag",
"including",
"the",
"nested",
"path",
"but",
"<",
"i",
">",
"not",
"<",
"/",
"i",
">",
"prefixed",
"with",
"the",
"name",
"of",
"the",
"form",
"attribute"
] | [
"string",
"expression",
"=",
"get",
"bind",
"status",
"(",
")",
"get",
"expression",
"(",
")",
";",
"return",
"(",
"expression",
"!",
"=",
"null",
"?",
"expression",
":",
"\"",
"\"",
")",
";"
] |
[
"get",
"the",
"bound",
"value"
] | [
"return",
"get",
"bind",
"status",
"(",
")",
"get",
"value",
"(",
")",
";"
] |
[
"get",
"the",
"{"
] | [
"return",
"get",
"bind",
"status",
"(",
")",
"get",
"editor",
"(",
")",
";"
] |
[
"exposes",
"the",
"{"
] | [
"return",
"get",
"property",
"editor",
"(",
")",
";"
] |
[
"get",
"a",
"display",
"string",
"for",
"the",
"given",
"value",
"converted",
"by",
"a",
"property",
"editor",
"that",
"the",
"bind",
"status",
"may",
"have",
"registered",
"for",
"the",
"value",
"s",
"class"
] | [
"property",
"editor",
"editor",
"=",
"(",
"value",
"!",
"=",
"null",
"?",
"get",
"bind",
"status",
"(",
")",
"find",
"editor",
"(",
"value",
"get",
"class",
"(",
")",
")",
":",
"null",
")",
";",
"return",
"get",
"display",
"string",
"(",
"value",
"... |
[
"process",
"the",
"given",
"form",
"field",
"through",
"a",
"{"
] | [
"request",
"data",
"value",
"processor",
"processor",
"=",
"get",
"request",
"context",
"(",
")",
"get",
"request",
"data",
"value",
"processor",
"(",
")",
";",
"servlet",
"request",
"request",
"=",
"this",
"page",
"context",
"get",
"request",
"(",
")",
";... |
[
"ensures",
"that",
"{",
"@",
"code",
"expression",
"}",
"is",
"{",
"@",
"code",
"true",
"}",
"throwing",
"a",
"{",
"@",
"code",
"verify",
"exception",
"}",
"with",
"no",
"message",
"otherwise"
] | [
"if",
"(",
"!",
"expression",
")",
"{",
"throw",
"new",
"verify",
"exception",
"(",
")",
";",
"}"
] |
[
"ensures",
"that",
"{",
"@",
"code",
"expression",
"}",
"is",
"{",
"@",
"code",
"true",
"}",
"throwing",
"a",
"{",
"@",
"code",
"verify",
"exception",
"}",
"with",
"a",
"custom",
"message",
"otherwise"
] | [
"if",
"(",
"!",
"expression",
")",
"{",
"throw",
"new",
"verify",
"exception",
"(",
"lenient",
"format",
"(",
"error",
"message",
"template",
",",
"error",
"message",
"args",
")",
")",
";",
"}"
] |
[
"ensures",
"that",
"{",
"@",
"code",
"expression",
"}",
"is",
"{",
"@",
"code",
"true",
"}",
"throwing",
"a",
"{",
"@",
"code",
"verify",
"exception",
"}",
"with",
"a",
"custom",
"message",
"otherwise"
] | [
"if",
"(",
"!",
"expression",
")",
"{",
"throw",
"new",
"verify",
"exception",
"(",
"lenient",
"format",
"(",
"error",
"message",
"template",
",",
"p",
"1",
")",
")",
";",
"}"
] |
[
"ensures",
"that",
"{",
"@",
"code",
"expression",
"}",
"is",
"{",
"@",
"code",
"true",
"}",
"throwing",
"a",
"{",
"@",
"code",
"verify",
"exception",
"}",
"with",
"a",
"custom",
"message",
"otherwise"
] | [
"if",
"(",
"!",
"expression",
")",
"{",
"throw",
"new",
"verify",
"exception",
"(",
"lenient",
"format",
"(",
"error",
"message",
"template",
",",
"p",
"1",
")",
")",
";",
"}"
] |
[
"ensures",
"that",
"{",
"@",
"code",
"expression",
"}",
"is",
"{",
"@",
"code",
"true",
"}",
"throwing",
"a",
"{",
"@",
"code",
"verify",
"exception",
"}",
"with",
"a",
"custom",
"message",
"otherwise"
] | [
"if",
"(",
"!",
"expression",
")",
"{",
"throw",
"new",
"verify",
"exception",
"(",
"lenient",
"format",
"(",
"error",
"message",
"template",
",",
"p",
"1",
")",
")",
";",
"}"
] |
[
"ensures",
"that",
"{",
"@",
"code",
"expression",
"}",
"is",
"{",
"@",
"code",
"true",
"}",
"throwing",
"a",
"{",
"@",
"code",
"verify",
"exception",
"}",
"with",
"a",
"custom",
"message",
"otherwise"
] | [
"if",
"(",
"!",
"expression",
")",
"{",
"throw",
"new",
"verify",
"exception",
"(",
"lenient",
"format",
"(",
"error",
"message",
"template",
",",
"p",
"1",
")",
")",
";",
"}"
] |
[
"ensures",
"that",
"{",
"@",
"code",
"expression",
"}",
"is",
"{",
"@",
"code",
"true",
"}",
"throwing",
"a",
"{",
"@",
"code",
"verify",
"exception",
"}",
"with",
"a",
"custom",
"message",
"otherwise"
] | [
"if",
"(",
"!",
"expression",
")",
"{",
"throw",
"new",
"verify",
"exception",
"(",
"lenient",
"format",
"(",
"error",
"message",
"template",
",",
"p",
"1",
",",
"p",
"2",
")",
")",
";",
"}"
] |
[
"ensures",
"that",
"{",
"@",
"code",
"expression",
"}",
"is",
"{",
"@",
"code",
"true",
"}",
"throwing",
"a",
"{",
"@",
"code",
"verify",
"exception",
"}",
"with",
"a",
"custom",
"message",
"otherwise"
] | [
"if",
"(",
"!",
"expression",
")",
"{",
"throw",
"new",
"verify",
"exception",
"(",
"lenient",
"format",
"(",
"error",
"message",
"template",
",",
"p",
"1",
",",
"p",
"2",
")",
")",
";",
"}"
] |
[
"ensures",
"that",
"{",
"@",
"code",
"expression",
"}",
"is",
"{",
"@",
"code",
"true",
"}",
"throwing",
"a",
"{",
"@",
"code",
"verify",
"exception",
"}",
"with",
"a",
"custom",
"message",
"otherwise"
] | [
"if",
"(",
"!",
"expression",
")",
"{",
"throw",
"new",
"verify",
"exception",
"(",
"lenient",
"format",
"(",
"error",
"message",
"template",
",",
"p",
"1",
",",
"p",
"2",
")",
")",
";",
"}"
] |
[
"ensures",
"that",
"{",
"@",
"code",
"expression",
"}",
"is",
"{",
"@",
"code",
"true",
"}",
"throwing",
"a",
"{",
"@",
"code",
"verify",
"exception",
"}",
"with",
"a",
"custom",
"message",
"otherwise"
] | [
"if",
"(",
"!",
"expression",
")",
"{",
"throw",
"new",
"verify",
"exception",
"(",
"lenient",
"format",
"(",
"error",
"message",
"template",
",",
"p",
"1",
",",
"p",
"2",
")",
")",
";",
"}"
] |
[
"ensures",
"that",
"{",
"@",
"code",
"expression",
"}",
"is",
"{",
"@",
"code",
"true",
"}",
"throwing",
"a",
"{",
"@",
"code",
"verify",
"exception",
"}",
"with",
"a",
"custom",
"message",
"otherwise"
] | [
"if",
"(",
"!",
"expression",
")",
"{",
"throw",
"new",
"verify",
"exception",
"(",
"lenient",
"format",
"(",
"error",
"message",
"template",
",",
"p",
"1",
",",
"p",
"2",
")",
")",
";",
"}"
] |
[
"ensures",
"that",
"{",
"@",
"code",
"expression",
"}",
"is",
"{",
"@",
"code",
"true",
"}",
"throwing",
"a",
"{",
"@",
"code",
"verify",
"exception",
"}",
"with",
"a",
"custom",
"message",
"otherwise"
] | [
"if",
"(",
"!",
"expression",
")",
"{",
"throw",
"new",
"verify",
"exception",
"(",
"lenient",
"format",
"(",
"error",
"message",
"template",
",",
"p",
"1",
",",
"p",
"2",
")",
")",
";",
"}"
] |
[
"ensures",
"that",
"{",
"@",
"code",
"expression",
"}",
"is",
"{",
"@",
"code",
"true",
"}",
"throwing",
"a",
"{",
"@",
"code",
"verify",
"exception",
"}",
"with",
"a",
"custom",
"message",
"otherwise"
] | [
"if",
"(",
"!",
"expression",
")",
"{",
"throw",
"new",
"verify",
"exception",
"(",
"lenient",
"format",
"(",
"error",
"message",
"template",
",",
"p",
"1",
",",
"p",
"2",
")",
")",
";",
"}"
] |
[
"ensures",
"that",
"{",
"@",
"code",
"expression",
"}",
"is",
"{",
"@",
"code",
"true",
"}",
"throwing",
"a",
"{",
"@",
"code",
"verify",
"exception",
"}",
"with",
"a",
"custom",
"message",
"otherwise"
] | [
"if",
"(",
"!",
"expression",
")",
"{",
"throw",
"new",
"verify",
"exception",
"(",
"lenient",
"format",
"(",
"error",
"message",
"template",
",",
"p",
"1",
",",
"p",
"2",
")",
")",
";",
"}"
] |
[
"ensures",
"that",
"{",
"@",
"code",
"expression",
"}",
"is",
"{",
"@",
"code",
"true",
"}",
"throwing",
"a",
"{",
"@",
"code",
"verify",
"exception",
"}",
"with",
"a",
"custom",
"message",
"otherwise"
] | [
"if",
"(",
"!",
"expression",
")",
"{",
"throw",
"new",
"verify",
"exception",
"(",
"lenient",
"format",
"(",
"error",
"message",
"template",
",",
"p",
"1",
",",
"p",
"2",
")",
")",
";",
"}"
] |
[
"ensures",
"that",
"{",
"@",
"code",
"expression",
"}",
"is",
"{",
"@",
"code",
"true",
"}",
"throwing",
"a",
"{",
"@",
"code",
"verify",
"exception",
"}",
"with",
"a",
"custom",
"message",
"otherwise"
] | [
"if",
"(",
"!",
"expression",
")",
"{",
"throw",
"new",
"verify",
"exception",
"(",
"lenient",
"format",
"(",
"error",
"message",
"template",
",",
"p",
"1",
",",
"p",
"2",
")",
")",
";",
"}"
] |
[
"ensures",
"that",
"{",
"@",
"code",
"expression",
"}",
"is",
"{",
"@",
"code",
"true",
"}",
"throwing",
"a",
"{",
"@",
"code",
"verify",
"exception",
"}",
"with",
"a",
"custom",
"message",
"otherwise"
] | [
"if",
"(",
"!",
"expression",
")",
"{",
"throw",
"new",
"verify",
"exception",
"(",
"lenient",
"format",
"(",
"error",
"message",
"template",
",",
"p",
"1",
",",
"p",
"2",
")",
")",
";",
"}"
] |
[
"ensures",
"that",
"{",
"@",
"code",
"expression",
"}",
"is",
"{",
"@",
"code",
"true",
"}",
"throwing",
"a",
"{",
"@",
"code",
"verify",
"exception",
"}",
"with",
"a",
"custom",
"message",
"otherwise"
] | [
"if",
"(",
"!",
"expression",
")",
"{",
"throw",
"new",
"verify",
"exception",
"(",
"lenient",
"format",
"(",
"error",
"message",
"template",
",",
"p",
"1",
",",
"p",
"2",
")",
")",
";",
"}"
] |
[
"ensures",
"that",
"{",
"@",
"code",
"expression",
"}",
"is",
"{",
"@",
"code",
"true",
"}",
"throwing",
"a",
"{",
"@",
"code",
"verify",
"exception",
"}",
"with",
"a",
"custom",
"message",
"otherwise"
] | [
"if",
"(",
"!",
"expression",
")",
"{",
"throw",
"new",
"verify",
"exception",
"(",
"lenient",
"format",
"(",
"error",
"message",
"template",
",",
"p",
"1",
",",
"p",
"2",
")",
")",
";",
"}"
] |
[
"ensures",
"that",
"{",
"@",
"code",
"expression",
"}",
"is",
"{",
"@",
"code",
"true",
"}",
"throwing",
"a",
"{",
"@",
"code",
"verify",
"exception",
"}",
"with",
"a",
"custom",
"message",
"otherwise"
] | [
"if",
"(",
"!",
"expression",
")",
"{",
"throw",
"new",
"verify",
"exception",
"(",
"lenient",
"format",
"(",
"error",
"message",
"template",
",",
"p",
"1",
",",
"p",
"2",
")",
")",
";",
"}"
] |
[
"ensures",
"that",
"{",
"@",
"code",
"expression",
"}",
"is",
"{",
"@",
"code",
"true",
"}",
"throwing",
"a",
"{",
"@",
"code",
"verify",
"exception",
"}",
"with",
"a",
"custom",
"message",
"otherwise"
] | [
"if",
"(",
"!",
"expression",
")",
"{",
"throw",
"new",
"verify",
"exception",
"(",
"lenient",
"format",
"(",
"error",
"message",
"template",
",",
"p",
"1",
",",
"p",
"2",
")",
")",
";",
"}"
] |
[
"ensures",
"that",
"{",
"@",
"code",
"expression",
"}",
"is",
"{",
"@",
"code",
"true",
"}",
"throwing",
"a",
"{",
"@",
"code",
"verify",
"exception",
"}",
"with",
"a",
"custom",
"message",
"otherwise"
] | [
"if",
"(",
"!",
"expression",
")",
"{",
"throw",
"new",
"verify",
"exception",
"(",
"lenient",
"format",
"(",
"error",
"message",
"template",
",",
"p",
"1",
",",
"p",
"2",
")",
")",
";",
"}"
] |
[
"ensures",
"that",
"{",
"@",
"code",
"expression",
"}",
"is",
"{",
"@",
"code",
"true",
"}",
"throwing",
"a",
"{",
"@",
"code",
"verify",
"exception",
"}",
"with",
"a",
"custom",
"message",
"otherwise"
] | [
"if",
"(",
"!",
"expression",
")",
"{",
"throw",
"new",
"verify",
"exception",
"(",
"lenient",
"format",
"(",
"error",
"message",
"template",
",",
"p",
"1",
",",
"p",
"2",
",",
"p",
"3",
")",
")",
";",
"}"
] |
[
"ensures",
"that",
"{",
"@",
"code",
"expression",
"}",
"is",
"{",
"@",
"code",
"true",
"}",
"throwing",
"a",
"{",
"@",
"code",
"verify",
"exception",
"}",
"with",
"a",
"custom",
"message",
"otherwise"
] | [
"if",
"(",
"!",
"expression",
")",
"{",
"throw",
"new",
"verify",
"exception",
"(",
"lenient",
"format",
"(",
"error",
"message",
"template",
",",
"p",
"1",
",",
"p",
"2",
",",
"p",
"3",
",",
"p",
"4",
")",
")",
";",
"}"
] |
[
"ensures",
"that",
"{",
"@",
"code",
"reference",
"}",
"is",
"non",
"-",
"null",
"throwing",
"a",
"{",
"@",
"code",
"verify",
"exception",
"}",
"with",
"a",
"custom",
"message",
"otherwise"
] | [
"verify",
"(",
"reference",
"!",
"=",
"null",
",",
"error",
"message",
"template",
",",
"error",
"message",
"args",
")",
";",
"return",
"reference",
";"
] |
[
"gets",
"the",
"wrapped",
"date",
"time",
"field"
] | [
"return",
"i",
"field",
";"
] |
[
"register",
"listener",
"for",
"when",
"cursor",
"refreshes"
] | [
"synchronized",
"(",
"cursor",
"refresh",
"listener",
"set",
")",
"{",
"cursor",
"refresh",
"listener",
"set",
"add",
"(",
"on",
"cursor",
"refresh",
"listener",
")",
";",
"}"
] |
[
"sets",
"this",
"list",
"to",
"cache",
"models",
"if",
"set",
"to",
"false",
"it",
"will",
"immediately",
"clear",
"the",
"cache",
"for",
"you"
] | [
"this",
"cache",
"models",
"=",
"cache",
"models",
";",
"if",
"(",
"!",
"cache",
"models",
")",
"{",
"clear",
"cache",
"(",
")",
";",
"}"
] |
[
"clears",
"the",
"{"
] | [
"if",
"(",
"cache",
"models",
")",
"{",
"model",
"cache",
"clear",
"(",
")",
";",
"}"
] |
[
"returns",
"a",
"model",
"at",
"the",
"specified",
"position",
"if",
"we",
"are",
"using",
"the",
"cache",
"and",
"it",
"does",
"not",
"contain",
"a",
"model",
"at",
"that",
"position",
"we",
"move",
"the",
"cursor",
"to",
"the",
"specified",
"position",
... | [
"throw",
"if",
"cursor",
"closed",
"(",
")",
";",
"warn",
"empty",
"cursor",
"(",
")",
";",
"t",
"model",
"model",
"=",
"null",
";",
"if",
"(",
"cache",
"models",
")",
"{",
"model",
"=",
"model",
"cache",
"get",
"(",
"position",
")",
";",
"if",
"... |
[
"closes",
"the",
"cursor",
"backed",
"by",
"this",
"list"
] | [
"warn",
"empty",
"cursor",
"(",
")",
";",
"if",
"(",
"cursor",
"!",
"=",
"null",
")",
"{",
"cursor",
"close",
"(",
")",
";",
"}",
"cursor",
"=",
"null",
";"
] |
[
"<",
"p",
">",
"the",
"work",
"spaces",
"to",
"reboot",
"you",
"can",
"specify",
"up",
"to",
"25",
"work",
"spaces",
"<",
"/",
"p",
">"
] | [
"if",
"(",
"reboot",
"workspace",
"requests",
"=",
"=",
"null",
")",
"{",
"reboot",
"workspace",
"requests",
"=",
"new",
"com",
"amazonaws",
"internal",
"sdk",
"internal",
"list",
"<",
"reboot",
"request",
">",
"(",
")",
";",
"}",
"return",
"reboot",
"wo... |
[
"<",
"p",
">",
"the",
"work",
"spaces",
"to",
"reboot",
"you",
"can",
"specify",
"up",
"to",
"25",
"work",
"spaces",
"<",
"/",
"p",
">"
] | [
"if",
"(",
"reboot",
"workspace",
"requests",
"=",
"=",
"null",
")",
"{",
"this",
"reboot",
"workspace",
"requests",
"=",
"null",
";",
"return",
";",
"}",
"this",
"reboot",
"workspace",
"requests",
"=",
"new",
"com",
"amazonaws",
"internal",
"sdk",
"intern... |
[
"<",
"p",
">",
"the",
"work",
"spaces",
"to",
"reboot",
"you",
"can",
"specify",
"up",
"to",
"25",
"work",
"spaces",
"<",
"/",
"p",
">",
"<",
"p",
">",
"<",
"b",
">",
"note",
":",
"<",
"/",
"b",
">",
"this",
"method",
"appends",
"the",
"values"... | [
"if",
"(",
"this",
"reboot",
"workspace",
"requests",
"=",
"=",
"null",
")",
"{",
"set",
"reboot",
"workspace",
"requests",
"(",
"new",
"com",
"amazonaws",
"internal",
"sdk",
"internal",
"list",
"<",
"reboot",
"request",
">",
"(",
"reboot",
"workspace",
"r... |
[
"<",
"p",
">",
"the",
"work",
"spaces",
"to",
"reboot",
"you",
"can",
"specify",
"up",
"to",
"25",
"work",
"spaces",
"<",
"/",
"p",
">"
] | [
"set",
"reboot",
"workspace",
"requests",
"(",
"reboot",
"workspace",
"requests",
")",
";",
"return",
"this",
";"
] |
[
"returns",
"the",
"alias",
"filter",
"{"
] | [
"return",
"filter",
";"
] |
[
"recycler",
"adapter",
"<",
"<",
"<",
"<",
"<",
"<",
"<",
"<",
"<",
"<",
"<",
"<",
"<",
"<",
"<",
"<",
"<",
"<",
"<",
"<",
"<",
"<",
"<",
"<",
"<",
"<",
"<",
"<",
"<",
"<",
"<",
"<",
"<",
"<",
"<",
"<",
"<",
"<",
"<",
"<",
"<",
"<... | [
"final",
"bv",
"bv",
"=",
"create",
"view",
"(",
"view",
"type",
",",
"parent",
")",
";",
"bv",
"create",
"view",
"(",
")",
";",
"bv",
"set",
"on",
"view",
"click",
"listener",
"(",
"on",
"view",
"click",
"listener",
")",
";",
"bv",
"item",
"view",... |
[
"returns",
"true",
"if",
"the",
"batch",
"was",
"added",
"at",
"the",
"head"
] | [
"int",
"index",
"=",
"collections",
"binary",
"search",
"(",
"list",
",",
"new",
"batch",
",",
"s",
"batch",
"order",
")",
";",
"if",
"(",
"index",
"<",
"0",
")",
"{",
"index",
"=",
"0",
"-",
"index",
"-",
"1",
";",
"}",
"list",
"add",
"(",
"in... |
[
"return",
"the",
"index",
"of",
"the",
"matching",
"batch",
"or",
"-",
"1",
"if",
"none",
"found"
] | [
"final",
"int",
"n",
"=",
"m",
"alarm",
"batches",
"size",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"n",
";",
"i",
"+",
"+",
")",
"{",
"batch",
"b",
"=",
"m",
"alarm",
"batches",
"get",
"(",
"i",
")",
";",
"if",
"("... |
[
"the",
"rtc",
"clock",
"has",
"moved",
"arbitrarily",
"so",
"we",
"need",
"to",
"recalculate",
"all",
"the",
"batching"
] | [
"synchronized",
"(",
"m",
"lock",
")",
"{",
"rebatch",
"all",
"alarms",
"locked",
"(",
"true",
")",
";",
"}"
] |
[
"re",
"-",
"orders",
"the",
"alarm",
"batches",
"based",
"on",
"newly",
"evaluated",
"send",
"times",
"based",
"on",
"the",
"current",
"app",
"-",
"standby",
"buckets"
] | [
"final",
"long",
"start",
"=",
"m",
"stat",
"logger",
"get",
"time",
"(",
")",
";",
"final",
"array",
"list",
"<",
"alarm",
">",
"rescheduled",
"alarms",
"=",
"new",
"array",
"list",
"<",
">",
"(",
")",
";",
"for",
"(",
"int",
"batch",
"index",
"="... |
[
"check",
"all",
"alarms",
"in",
"{",
"@",
"link",
"#",
"m",
"pending",
"background",
"alarms",
"}",
"and",
"send",
"the",
"ones",
"that",
"are",
"not",
"restricted"
] | [
"final",
"array",
"list",
"<",
"alarm",
">",
"alarms",
"to",
"deliver",
"=",
"new",
"array",
"list",
"<",
">",
"(",
")",
";",
"find",
"all",
"unrestricted",
"pending",
"background",
"alarms",
"locked",
"inner",
"(",
"m",
"pending",
"background",
"alarms",
... |
[
"updates",
"next",
"alarm",
"formatted",
"and",
"sends",
"next",
"alarm",
"clock",
"changed",
"intent",
"for",
"all",
"users",
"for",
"which",
"alarm",
"clocks",
"have",
"changed",
"since",
"the",
"last",
"call",
"to",
"this"
] | [
"sparse",
"array",
"<",
"alarm",
"manager",
"alarm",
"clock",
"info",
">",
"pending",
"users",
"=",
"m",
"handler",
"sparse",
"alarm",
"clock",
"array",
";",
"pending",
"users",
"clear",
"(",
")",
";",
"synchronized",
"(",
"m",
"lock",
")",
"{",
"final",... |
[
"returns",
"true",
"if",
"either",
"matches"
] | [
"return",
"(",
"operation",
"!",
"=",
"null",
")",
"?",
"operation",
"equals",
"(",
"pi",
")",
":",
"rec",
"!",
"=",
"null",
"&",
"&",
"listener",
"as",
"binder",
"(",
")",
"equals",
"(",
"rec",
"as",
"binder",
"(",
")",
")",
";"
] |
[
"callback",
"that",
"arrives",
"when",
"a",
"pending",
"intent",
"alarm",
"has",
"finished",
"delivery"
] | [
"synchronized",
"(",
"m",
"lock",
")",
"{",
"m",
"send",
"finish",
"count",
"+",
"+",
";",
"update",
"tracking",
"locked",
"(",
"remove",
"locked",
"(",
"pi",
",",
"intent",
")",
")",
";",
"}"
] |
[
"<",
"p",
">",
"boolean",
"value",
"that",
"indicates",
"whether",
"the",
"face",
"is",
"smiling",
"or",
"not",
"<",
"/",
"p",
">"
] | [
"set",
"value",
"(",
"value",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"level",
"of",
"confidence",
"in",
"the",
"determination",
"<",
"/",
"p",
">"
] | [
"set",
"confidence",
"(",
"confidence",
")",
";",
"return",
"this",
";"
] |
[
"returns",
"a",
"digest",
"of",
"the",
"content",
"of",
"the",
"underlying",
"file",
"system",
"object",
";",
"must",
"always",
"return",
"a",
"non",
"-",
"null",
"value",
"for",
"instances",
"of",
"type",
"{",
"@",
"link",
"file",
"state",
"type",
"#",
... | [
"@",
"nullable",
"public",
"abstract",
"byte",
"[",
"]",
"get",
"digest",
"(",
")",
";"
] |
[
"returns",
"the",
"last",
"modified",
"time",
";",
"see",
"the",
"documentation",
"of",
"{"
] | [
"public",
"abstract",
"long",
"get",
"modified",
"time",
"(",
")",
";"
] |
[
"index",
"used",
"to",
"resolve",
"remote",
"files"
] | [
"return",
"0",
";"
] |
[
"returns",
"{"
] | [
"return",
"this",
"instanceof",
"singleton",
";"
] |
[
"provides",
"a",
"best",
"-",
"effort",
"determination",
"whether",
"the",
"file",
"was",
"changed",
"since",
"the",
"digest",
"was",
"computed",
"this",
"method",
"performs",
"file",
"system",
"i",
"/",
"o",
"so",
"may",
"be",
"expensive",
"it",
"s",
"pri... | [
"public",
"abstract",
"boolean",
"was",
"modified",
"since",
"digest",
"(",
"path",
"path",
")",
"throws",
"i",
"o",
"exception",
";"
] |
[
"<",
"p",
">",
"the",
"client",
"-",
"specific",
"data",
"<",
"/",
"p",
">"
] | [
"set",
"client",
"data",
"(",
"client",
"data",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"token",
"to",
"enable",
"idempotency",
"for",
"vm",
"import",
"requests",
"<",
"/",
"p",
">"
] | [
"set",
"client",
"token",
"(",
"client",
"token",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"description",
"string",
"for",
"the",
"import",
"snapshot",
"task",
"<",
"/",
"p",
">"
] | [
"set",
"description",
"(",
"description",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"information",
"about",
"the",
"disk",
"container",
"<",
"/",
"p",
">"
] | [
"this",
"disk",
"container",
"=",
"disk",
"container",
";"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.