docstring_tokens
list | code_tokens
list |
---|---|
[
"get",
"the",
"horizontal",
"padding",
"around",
"the",
"text",
"drawn",
"on",
"the",
"switch",
"itself"
]
| [
"return",
"m",
"thumb",
"text",
"padding",
";"
]
|
[
"set",
"the",
"drawable",
"used",
"for",
"the",
"track",
"that",
"the",
"switch",
"slides",
"within"
]
| [
"if",
"(",
"m",
"track",
"drawable",
"!",
"=",
"null",
")",
"{",
"m",
"track",
"drawable",
"set",
"callback",
"(",
"null",
")",
";",
"}",
"m",
"track",
"drawable",
"=",
"track",
";",
"if",
"(",
"track",
"!",
"=",
"null",
")",
"{",
"track",
"set",
"callback",
"(",
"this",
")",
";",
"}",
"request",
"layout",
"(",
")",
";"
]
|
[
"get",
"the",
"drawable",
"used",
"for",
"the",
"track",
"that",
"the",
"switch",
"slides",
"within"
]
| [
"return",
"m",
"track",
"drawable",
";"
]
|
[
"set",
"the",
"drawable",
"used",
"for",
"the",
"switch",
"thumb",
"-",
"the",
"piece",
"that",
"the",
"user",
"can",
"physically",
"touch",
"and",
"drag",
"along",
"the",
"track"
]
| [
"if",
"(",
"m",
"thumb",
"drawable",
"!",
"=",
"null",
")",
"{",
"m",
"thumb",
"drawable",
"set",
"callback",
"(",
"null",
")",
";",
"}",
"m",
"thumb",
"drawable",
"=",
"thumb",
";",
"if",
"(",
"thumb",
"!",
"=",
"null",
")",
"{",
"thumb",
"set",
"callback",
"(",
"this",
")",
";",
"}",
"request",
"layout",
"(",
")",
";"
]
|
[
"specifies",
"whether",
"the",
"track",
"should",
"be",
"split",
"by",
"the",
"thumb",
"when",
"true",
"the",
"thumb",
"s",
"optical",
"bounds",
"will",
"be",
"clipped",
"out",
"of",
"the",
"track",
"drawable",
"then",
"the",
"thumb",
"will",
"be",
"drawn",
"into",
"the",
"resulting",
"gap"
]
| [
"m",
"split",
"track",
"=",
"split",
"track",
";",
"invalidate",
"(",
")",
";"
]
|
[
"returns",
"whether",
"the",
"track",
"should",
"be",
"split",
"by",
"the",
"thumb"
]
| [
"return",
"m",
"split",
"track",
";"
]
|
[
"the",
"absolute",
"local",
"path",
"of",
"the",
"resource",
"inside",
"the",
"lambda",
"environment"
]
| [
"set",
"destination",
"path",
"(",
"destination",
"path",
")",
";",
"return",
"this",
";"
]
|
[
"the",
"uri",
"of",
"the",
"source",
"model",
"in",
"an",
"s3",
"bucket",
"the",
"model",
"package",
"must",
"be",
"in",
"tar",
"gz",
"or",
"zip",
"format"
]
| [
"set",
"s",
"3",
"uri",
"(",
"s",
"3",
"uri",
")",
";",
"return",
"this",
";"
]
|
[
"for",
"each",
"given",
"{",
"@",
"link",
"resource",
"model",
"}",
"the",
"classpath",
"is",
"checked",
"for",
"a",
"restspec",
"json",
"matching",
"the",
"name",
"of",
"the",
"{",
"@",
"link",
"resource",
"model",
"}",
"if",
"found",
"it",
"is",
"loaded",
"if",
"a",
"restspec",
"json",
"file",
"is",
"not",
"found",
"one",
"is",
"created",
"{",
"@",
"link",
"resource",
"schema",
"collection",
"}",
"from",
"specified",
"root",
"{",
"@",
"link",
"resource",
"model",
"}",
"all",
"resources",
"will",
"be",
"recursively",
"traversed",
"to",
"discover",
"subresources",
"root",
"resources",
"not",
"specified",
"are",
"excluded"
]
| [
"final",
"resource",
"model",
"encoder",
"encoder",
"=",
"new",
"resource",
"model",
"encoder",
"(",
"new",
"null",
"docs",
"provider",
"(",
")",
")",
";",
"final",
"map",
"<",
"string",
",",
"resource",
"schema",
">",
"schema",
"map",
"=",
"new",
"tree",
"map",
"<",
"string",
",",
"resource",
"schema",
">",
"(",
")",
";",
"for",
"(",
"resource",
"model",
"resource",
":",
"root",
"resources",
"values",
"(",
")",
")",
"{",
"schema",
"map",
"put",
"(",
"resource",
"get",
"name",
"(",
")",
",",
"encoder",
"load",
"or",
"build",
"resource",
"schema",
"(",
"resource",
")",
")",
";",
"}",
"return",
"new",
"resource",
"schema",
"collection",
"(",
"schema",
"map",
")",
";"
]
|
[
"retrieve",
"the",
"resource",
"schema",
"for",
"the",
"specified",
"path"
]
| [
"return",
"all",
"resources",
"get",
"(",
"resource",
"path",
")",
";"
]
|
[
"<",
"p",
">",
"name",
"of",
"the",
"crawler",
"to",
"stop",
"<",
"/",
"p",
">"
]
| [
"set",
"name",
"(",
"name",
")",
";",
"return",
"this",
";"
]
|
[
"returns",
"a",
"set",
"of",
"resource",
"classes",
"needed",
"by",
"this",
"test"
]
| [
"protected",
"abstract",
"set",
"<",
"class",
"<",
"?",
">",
">",
"get",
"resource",
"classes",
"(",
")",
";"
]
|
[
"set",
"the",
"name",
"of",
"a",
"parameter",
"of",
"the",
"annotation",
"that",
"specifies",
"whether",
"it",
"is",
"required"
]
| [
"this",
"required",
"parameter",
"name",
"=",
"required",
"parameter",
"name",
";"
]
|
[
"set",
"the",
"boolean",
"value",
"that",
"marks",
"a",
"dependency",
"as",
"required",
"<",
"p",
">",
"for",
"example",
"if",
"using",
"required",
"=",
"true",
"(",
"the",
"default",
")",
"this",
"value",
"should",
"be",
"{"
]
| [
"this",
"required",
"parameter",
"value",
"=",
"required",
"parameter",
"value",
";"
]
|
[
"determine",
"if",
"the",
"annotated",
"field",
"or",
"method",
"requires",
"its",
"dependency",
"<",
"p",
">",
"a",
"required",
"dependency",
"means",
"that",
"autowiring",
"should",
"fail",
"when",
"no",
"beans",
"are",
"found",
"otherwise",
"the",
"autowiring",
"process",
"will",
"simply",
"bypass",
"the",
"field",
"or",
"method",
"when",
"no",
"beans",
"are",
"found"
]
| [
"return",
"(",
"!",
"ann",
"contains",
"key",
"(",
"this",
"required",
"parameter",
"name",
")",
"|",
"|",
"this",
"required",
"parameter",
"value",
"=",
"=",
"ann",
"get",
"boolean",
"(",
"this",
"required",
"parameter",
"name",
")",
")",
";"
]
|
[
"clears",
"all",
"existing",
"user",
"-",
"specified",
"properties"
]
| [
"m",
"user",
"props",
"clear",
"(",
")",
";",
"m",
"sources",
"clear",
"(",
")",
";"
]
|
[
"puts",
"the",
"key",
"value",
"pair",
"specified",
"by",
"users"
]
| [
"if",
"(",
"!",
"m",
"user",
"props",
"contains",
"key",
"(",
"key",
")",
"|",
"|",
"source",
"compare",
"to",
"(",
"get",
"source",
"(",
"key",
")",
")",
">",
"=",
"0",
")",
"{",
"m",
"user",
"props",
"put",
"(",
"key",
",",
"optional",
"of",
"nullable",
"(",
"value",
")",
")",
";",
"m",
"sources",
"put",
"(",
"key",
",",
"source",
")",
";",
"}"
]
|
[
"remove",
"the",
"value",
"set",
"for",
"key"
]
| [
"m",
"user",
"props",
"put",
"(",
"key",
",",
"optional",
"empty",
"(",
")",
")",
";"
]
|
[
"iterates",
"over",
"all",
"the",
"key",
"value",
"pairs",
"and",
"performs",
"the",
"given",
"action"
]
| [
"for",
"(",
"map",
"entry",
"<",
"property",
"key",
",",
"string",
">",
"entry",
":",
"entry",
"set",
"(",
")",
")",
"{",
"action",
"accept",
"(",
"entry",
"get",
"key",
"(",
")",
",",
"entry",
"get",
"value",
"(",
")",
")",
";",
"}"
]
|
[
"sets",
"the",
"source",
"for",
"a",
"given",
"key"
]
| [
"m",
"sources",
"put",
"(",
"key",
",",
"source",
")",
";"
]
|
[
"todo",
"(",
"ulfjack",
")",
":",
"remove",
"this",
"method"
]
| [
"return",
"0",
";"
]
|
[
"sets",
"the",
"state",
"of",
"this",
"<",
"tt",
">",
"simple",
"digital",
"in",
"<",
"/",
"tt",
">",
"this",
"method",
"should",
"only",
"be",
"used",
"from",
"master",
"/",
"device",
"side"
]
| [
"m",
"set",
"=",
"b",
";"
]
|
[
"shuts",
"down",
"the",
"gpodnet",
"service",
"s",
"http",
"client",
"the",
"service",
"will",
"be",
"shut",
"down",
"in",
"a",
"separate",
"thread",
"to",
"avoid",
"network",
"on",
"main",
"thread",
"exceptions"
]
| [
"new",
"thread",
"(",
")",
"{",
"@",
"override",
"public",
"void",
"run",
"(",
")",
"{",
"antennapod",
"http",
"client",
"cleanup",
"(",
")",
";",
"}",
"}",
"start",
"(",
")",
";"
]
|
[
"evaluates",
"the",
"specified",
"block",
"which",
"is",
"expected",
"to",
"contain",
"one",
"or",
"more",
"explicit",
"conditions",
"(",
"i",
"e",
"assert",
"statements",
")",
"any",
"caught",
"exception",
"will",
"be",
"rethrown",
"from",
"<",
"tt",
">",
"await",
"(",
")",
"<",
"/",
"tt",
">"
]
| [
"try",
"{",
"block",
"run",
"(",
")",
";",
"}",
"catch",
"(",
"throwable",
"t",
")",
"{",
"exceptions",
"add",
"(",
"t",
")",
";",
"wake",
"up",
"(",
")",
";",
"}",
"latch",
"count",
"down",
"(",
")",
";"
]
|
[
"same",
"as",
"{"
]
| [
"await",
"(",
"1",
")",
";"
]
|
[
"waits",
"until",
"all",
"evaluate",
"blocks",
"have",
"completed",
"or",
"the",
"specified",
"timeout",
"expires",
"if",
"one",
"of",
"the",
"evaluate",
"blocks",
"throws",
"an",
"exception",
"it",
"is",
"rethrown",
"from",
"this",
"method"
]
| [
"await",
"(",
"time",
"util",
"to",
"seconds",
"(",
"value",
",",
"unit",
")",
")",
";"
]
|
[
"microservice",
"entry",
"point"
]
| [
"spring",
"application",
"run",
"(",
"price",
"application",
"class",
",",
"args",
")",
";"
]
|
[
"<",
"p",
">",
"the",
"id",
"of",
"the",
"resource",
"being",
"exported",
"<",
"/",
"p",
">"
]
| [
"set",
"instance",
"id",
"(",
"instance",
"id",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"target",
"virtualization",
"environment",
"<",
"/",
"p",
">"
]
| [
"set",
"target",
"environment",
"(",
"target",
"environment",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"target",
"virtualization",
"environment",
"<",
"/",
"p",
">"
]
| [
"this",
"target",
"environment",
"=",
"target",
"environment",
"to",
"string",
"(",
")",
";",
"return",
"this",
";"
]
|
[
"maps",
"the",
"changed",
"collection",
"element",
"to",
"the",
"given",
"map"
]
| [
"protected",
"abstract",
"void",
"map",
"to",
"map",
"from",
"object",
"(",
"session",
"implementor",
"session",
",",
"map",
"<",
"string",
",",
"object",
">",
"id",
"data",
",",
"map",
"<",
"string",
",",
"object",
">",
"data",
",",
"object",
"changed",
")",
";"
]
|
[
"creates",
"map",
"for",
"storing",
"identifier",
"data",
"ordinal",
"parameter",
"guarantees",
"uniqueness",
"of",
"primary",
"key",
"composite",
"primary",
"key",
"cannot",
"contain",
"embeddable",
"properties",
"since",
"they",
"might",
"be",
"nullable"
]
| [
"final",
"map",
"<",
"string",
",",
"object",
">",
"id",
"map",
"=",
"new",
"hash",
"map",
"<",
">",
"(",
")",
";",
"if",
"(",
"ordinal",
"in",
"id",
")",
"{",
"id",
"map",
"put",
"(",
"common",
"collection",
"mapper",
"data",
"get",
"ver",
"ent",
"cfg",
"(",
")",
"get",
"embeddable",
"set",
"ordinal",
"property",
"name",
"(",
")",
",",
"ordinal",
")",
";",
"}",
"return",
"id",
"map",
";"
]
|
[
"checks",
"whether",
"the",
"old",
"collection",
"element",
"and",
"new",
"collection",
"element",
"are",
"the",
"same",
"by",
"default",
"this",
"delegates",
"to",
"the",
"collection",
"persister",
"s",
"{",
"@",
"link",
"collection",
"persister",
"#",
"get",
"element",
"type",
"(",
")",
"}"
]
| [
"return",
"collection",
"persister",
"get",
"element",
"type",
"(",
")",
"is",
"same",
"(",
"old",
"object",
",",
"new",
"object",
")",
";"
]
|
[
"map",
"collection",
"changes",
"using",
"hash",
"identity"
]
| [
"protected",
"abstract",
"list",
"<",
"persistent",
"collection",
"change",
"data",
">",
"map",
"collection",
"changes",
"(",
"session",
"implementor",
"session",
",",
"persistent",
"collection",
"new",
"coll",
",",
"serializable",
"old",
"coll",
",",
"serializable",
"id",
")",
";"
]
|
[
"reloads",
"the",
"ip",
"list"
]
| [
"ip",
"list",
"=",
"ip",
"list",
"reload",
"(",
")",
";",
"update",
"cache",
"expiry",
"time",
"(",
")",
";"
]
|
[
"refreshes",
"the",
"ip",
"list"
]
| [
"cache",
"expiry",
"time",
"stamp",
"=",
"0",
";"
]
|
[
"removes",
"all",
"previously",
"added",
"listeners"
]
| [
"m",
"debugger",
"remove",
"listener",
"(",
"m",
"debugger",
"listener",
")",
";",
"m",
"debugger",
"get",
"process",
"manager",
"(",
")",
"remove",
"listener",
"(",
"m",
"process",
"listener",
")",
";"
]
|
[
"closes",
"the",
"attached",
"progress",
"dialog"
]
| [
"m",
"finished",
"=",
"true",
";",
"remove",
"listeners",
"(",
")",
";",
"finish",
"(",
")",
";"
]
|
[
"returns",
"whether",
"the",
"memory",
"dump",
"operation",
"was",
"successful",
"or",
"not"
]
| [
"return",
"m",
"success",
";"
]
|
[
"returns",
"the",
"type",
"to",
"look",
"up",
"a",
"type",
"adapter",
"for",
"when",
"writing",
"{"
]
| [
"if",
"(",
"map",
"class",
"is",
"assignable",
"from",
"(",
"value",
"class",
")",
")",
"return",
"map",
"class",
";",
"if",
"(",
"collection",
"class",
"is",
"assignable",
"from",
"(",
"value",
"class",
")",
")",
"return",
"collection",
"class",
";",
"return",
"value",
"class",
";"
]
|
[
"call",
"if",
"the",
"udf",
"can",
"handle",
"an",
"unbounded",
"number",
"of",
"arguments"
]
| [
"max",
"args",
"=",
"no",
"max",
"args",
";",
"return",
"this",
";"
]
|
[
"run",
"the",
"tests",
"!"
]
| [
"validate",
"and",
"build",
"(",
")",
";",
"test",
"too",
"few",
"arguments",
"(",
")",
";",
"test",
"too",
"many",
"arguments",
"(",
")",
";",
"test",
"null",
"handling",
"(",
")",
";",
"test",
"type",
"checking",
"(",
")",
";"
]
|
[
"tells",
"the",
"video",
"recorder",
"to",
"refresh",
"its",
"egl",
"surface",
"(",
"call",
"from",
"non",
"-",
"encoder",
"thread",
")"
]
| [
"m",
"handler",
"send",
"message",
"(",
"m",
"handler",
"obtain",
"message",
"(",
"msg",
"update",
"shared",
"context",
",",
"shared",
"context",
")",
")",
";"
]
|
[
"tells",
"the",
"video",
"recorder",
"what",
"texture",
"name",
"to",
"use",
"this",
"is",
"the",
"external",
"texture",
"that",
"we",
"re",
"receiving",
"camera",
"previews",
"in",
"(",
"call",
"from",
"non",
"-",
"encoder",
"thread",
")",
"<",
"p",
">",
"todo",
":",
"do",
"something",
"less",
"clumsy"
]
| [
"synchronized",
"(",
"m",
"ready",
"fence",
")",
"{",
"if",
"(",
"!",
"m",
"ready",
")",
"{",
"return",
";",
"}",
"}",
"m",
"handler",
"send",
"message",
"(",
"m",
"handler",
"obtain",
"message",
"(",
"msg",
"set",
"texture",
"id",
",",
"id",
",",
"0",
",",
"null",
")",
")",
";"
]
|
[
"draws",
"a",
"box",
"with",
"position",
"offset"
]
| [
"final",
"int",
"width",
"=",
"m",
"input",
"window",
"surface",
"get",
"width",
"(",
")",
";",
"int",
"xpos",
"=",
"(",
"posn",
"*",
"4",
")",
"%",
"(",
"width",
"-",
"50",
")",
";",
"gles20",
"gl",
"enable",
"(",
"gles20",
"gl",
"scissor",
"test",
")",
";",
"gles20",
"gl",
"scissor",
"(",
"xpos",
",",
"0",
",",
"100",
",",
"100",
")",
";",
"gles20",
"gl",
"clear",
"color",
"(",
"1",
"0f",
",",
"0",
"0f",
",",
"1",
"0f",
",",
"1",
"0f",
")",
";",
"gles20",
"gl",
"clear",
"(",
"gles20",
"gl",
"color",
"buffer",
"bit",
")",
";",
"gles20",
"gl",
"disable",
"(",
"gles20",
"gl",
"scissor",
"test",
")",
";"
]
|
[
"tells",
"whether",
"or",
"not",
"the",
"button",
"should",
"be",
"enabled",
"for",
"the",
"selected",
"messages",
"of",
"the",
"given",
"message",
"container",
"<",
"p",
">",
"defaults",
"to",
"call",
"the",
"method",
"{",
"@",
"code",
"is",
"button",
"enabled",
"for",
"selected",
"history",
"references",
"(",
"list",
")",
"}",
"with",
"the",
"selected",
"messages",
"obtained",
"by",
"calling",
"the",
"method",
"{",
"@",
"code",
"get",
"selected",
"history",
"references",
"(",
"http",
"message",
"container",
")",
"}",
"with",
"the",
"given",
"message",
"container",
"as",
"parameter",
"<",
"/",
"p",
">",
"<",
"p",
">",
"normally",
"overridden",
"if",
"other",
"implementations",
"of",
"{",
"@",
"code",
"http",
"message",
"container",
"}",
"are",
"supported",
"<",
"/",
"p",
">"
]
| [
"return",
"is",
"button",
"enabled",
"for",
"selected",
"history",
"references",
"(",
"get",
"selected",
"history",
"references",
"(",
"message",
"container",
")",
")",
";"
]
|
[
"tells",
"whether",
"or",
"not",
"the",
"selected",
"messages",
"of",
"the",
"given",
"message",
"container",
"are",
"in",
"scope",
"<",
"p",
">",
"by",
"default",
"the",
"selected",
"messages",
"are",
"obtained",
"by",
"calling",
"the",
"method",
"get",
"selected",
"history",
"references",
"(",
"http",
"message",
"container",
")",
"with",
"the",
"given",
"message",
"container",
"as",
"parameter",
"and",
"for",
"each",
"selected",
"message",
"is",
"called",
"the",
"method",
"{",
"@",
"code",
"session",
"#",
"is",
"in",
"scope",
"(",
"history",
"reference",
")",
"}",
"with",
"the",
"message",
"as",
"parameter",
"<",
"/",
"p",
">",
"<",
"p",
">",
"normally",
"overridden",
"if",
"other",
"implementations",
"of",
"{",
"@",
"code",
"http",
"message",
"container",
"}",
"are",
"supported",
"default",
"are",
"{",
"@",
"code",
"single",
"history",
"reference",
"container",
"}",
"and",
"{",
"@",
"code",
"selectable",
"history",
"references",
"container",
"}",
"<",
"/",
"p",
">"
]
| [
"final",
"session",
"session",
"=",
"model",
"get",
"singleton",
"(",
")",
"get",
"session",
"(",
")",
";",
"for",
"(",
"history",
"reference",
"history",
"reference",
":",
"get",
"selected",
"history",
"references",
"(",
"message",
"container",
")",
")",
"{",
"if",
"(",
"history",
"reference",
"!",
"=",
"null",
"&",
"&",
"!",
"session",
"is",
"in",
"scope",
"(",
"history",
"reference",
")",
")",
"{",
"return",
"false",
";",
"}",
"}",
"return",
"true",
";"
]
|
[
"performs",
"the",
"actions",
"on",
"the",
"the",
"given",
"message",
"container",
"<",
"p",
">",
"calls",
"the",
"method",
"{",
"@",
"code",
"perform",
"history",
"reference",
"actions",
"(",
"list",
")",
"}",
"with",
"the",
"selected",
"messages",
"obtained",
"by",
"calling",
"the",
"method",
"{",
"@",
"code",
"get",
"selected",
"history",
"references",
"(",
"http",
"message",
"container",
")",
"}",
"with",
"the",
"given",
"message",
"container",
"as",
"parameter",
"<",
"/",
"p",
">"
]
| [
"perform",
"history",
"reference",
"actions",
"(",
"get",
"selected",
"history",
"references",
"(",
"http",
"message",
"container",
")",
")",
";"
]
|
[
"does",
"nothing",
"never",
"called"
]
| []
|
[
"does",
"nothing",
"never",
"called"
]
| []
|
[
"performs",
"the",
"actions",
"on",
"all",
"the",
"the",
"given",
"messages",
"<",
"p",
">",
"defaults",
"to",
"call",
"the",
"method",
"{",
"@",
"code",
"perform",
"action",
"(",
"history",
"reference",
")",
"}",
"for",
"each",
"message",
"(",
"with",
"the",
"history",
"references",
"as",
"parameter",
")",
"<",
"/",
"p",
">",
"<",
"p",
">",
"normally",
"overridden",
"if",
"other",
"implementations",
"of",
"{",
"@",
"code",
"http",
"message",
"container",
"}",
"are",
"supported",
"(",
"or",
"not",
"the",
"desired",
"behaviour",
")",
"<",
"/",
"p",
">"
]
| [
"for",
"(",
"history",
"reference",
"history",
"reference",
":",
"history",
"references",
")",
"{",
"if",
"(",
"history",
"reference",
"!",
"=",
"null",
")",
"{",
"this",
"perform",
"action",
"(",
"history",
"reference",
")",
";",
"}",
"}"
]
|
[
"performs",
"an",
"action",
"on",
"the",
"given",
"history",
"reference"
]
| [
"protected",
"abstract",
"void",
"perform",
"action",
"(",
"history",
"reference",
"history",
"reference",
")",
";"
]
|
[
"specifies",
"item",
"collection"
]
| [
"this",
"items",
"=",
"items",
";"
]
|
[
"specifies",
"variable",
"name",
"that",
"will",
"be",
"used",
"for",
"item",
"during",
"iteration"
]
| [
"this",
"var",
"=",
"var",
";"
]
|
[
"sets",
"starting",
"index"
]
| [
"this",
"from",
"=",
"from",
";"
]
|
[
"sets",
"count",
"as",
"total",
"number",
"of",
"items",
"to",
"iterate"
]
| [
"this",
"count",
"=",
"count",
";"
]
|
[
"calculates",
"to"
]
| [
"int",
"to",
"=",
"size",
";",
"if",
"(",
"count",
"!",
"=",
"-",
"1",
")",
"{",
"to",
"=",
"from",
"+",
"count",
";",
"if",
"(",
"to",
">",
"size",
")",
"{",
"to",
"=",
"size",
";",
"}",
"}",
"return",
"to",
";"
]
|
[
"iterates",
"collection"
]
| [
"jsp",
"fragment",
"body",
"=",
"get",
"jsp",
"body",
"(",
")",
";",
"iterator",
"iter",
"=",
"collection",
"iterator",
"(",
")",
";",
"int",
"i",
"=",
"0",
";",
"int",
"to",
"=",
"calculate",
"to",
"(",
"from",
",",
"count",
",",
"collection",
"size",
"(",
")",
")",
";",
"while",
"(",
"i",
"<",
"to",
")",
"{",
"object",
"item",
"=",
"iter",
"next",
"(",
")",
";",
"if",
"(",
"i",
">",
"=",
"from",
")",
"{",
"if",
"(",
"status",
"!",
"=",
"null",
")",
"{",
"iterator",
"status",
"next",
"(",
"!",
"iter",
"has",
"next",
"(",
")",
")",
";",
"}",
"tag",
"util",
"set",
"scope",
"attribute",
"(",
"var",
",",
"item",
",",
"scope",
",",
"page",
"context",
")",
";",
"tag",
"util",
"invoke",
"body",
"(",
"body",
")",
";",
"}",
"i",
"+",
"+",
";",
"}"
]
|
[
"iterates",
"arrays"
]
| [
"jsp",
"fragment",
"body",
"=",
"get",
"jsp",
"body",
"(",
")",
";",
"int",
"len",
"=",
"array",
"length",
";",
"int",
"to",
"=",
"calculate",
"to",
"(",
"from",
",",
"count",
",",
"len",
")",
";",
"int",
"last",
"=",
"to",
"-",
"1",
";",
"for",
"(",
"int",
"i",
"=",
"from",
";",
"i",
"<",
"to",
";",
"i",
"+",
"+",
")",
"{",
"object",
"item",
"=",
"array",
"[",
"i",
"]",
";",
"if",
"(",
"status",
"!",
"=",
"null",
")",
"{",
"iterator",
"status",
"next",
"(",
"i",
"=",
"=",
"last",
")",
";",
"}",
"tag",
"util",
"set",
"scope",
"attribute",
"(",
"var",
",",
"item",
",",
"scope",
",",
"page",
"context",
")",
";",
"tag",
"util",
"invoke",
"body",
"(",
"body",
")",
";",
"}"
]
|
[
"implementation",
"adapted",
"from",
"org",
"jdesktop",
"swingx",
"decorator",
"icon",
"highlighter",
"#",
"do",
"highlight",
"(",
"component",
"component",
"adapter",
")"
]
| [
"final",
"icon",
"icon",
"=",
"get",
"icon",
"(",
"adapter",
"get",
"value",
"(",
"column",
"index",
")",
")",
";",
"if",
"(",
"icon",
"!",
"=",
"null",
")",
"{",
"if",
"(",
"component",
"instanceof",
"icon",
"aware",
")",
"{",
"(",
"(",
"icon",
"aware",
")",
"component",
")",
"set",
"icon",
"(",
"icon",
")",
";",
"}",
"else",
"if",
"(",
"component",
"instanceof",
"j",
"label",
")",
"{",
"(",
"(",
"j",
"label",
")",
"component",
")",
"set",
"icon",
"(",
"icon",
")",
";",
"}",
"}",
"else",
"{",
"if",
"(",
"component",
"instanceof",
"j",
"label",
")",
"{",
"(",
"(",
"j",
"label",
")",
"component",
")",
"set",
"text",
"(",
"\"",
"\"",
")",
";",
"}",
"}",
"return",
"component",
";"
]
|
[
"method",
"/",
"java",
"doc",
"copied",
"from",
"org",
"jdesktop",
"swingx",
"decorator",
"icon",
"highlighter",
"#",
"can",
"highlight",
"(",
"component",
"component",
"adapter",
")"
]
| [
"return",
"component",
"instanceof",
"icon",
"aware",
"|",
"|",
"component",
"instanceof",
"j",
"label",
";"
]
|
[
"escape",
"quotes",
"\\",
"/",
"\\",
"r",
"\\",
"n",
"\\",
"b",
"\\",
"f",
"\\",
"t",
"and",
"other",
"control",
"characters",
"(",
"u",
"+",
"0000",
"through",
"u",
"+",
"001f",
")"
]
| [
"if",
"(",
"s",
"=",
"=",
"null",
")",
"return",
"null",
";",
"string",
"buffer",
"sb",
"=",
"new",
"string",
"buffer",
"(",
")",
";",
"escape",
"(",
"s",
",",
"sb",
")",
";",
"return",
"sb",
"to",
"string",
"(",
")",
";"
]
|
[
"returns",
"true",
"if",
"this",
"input",
"stream",
"exists"
]
| [
"return",
"scanner",
"!",
"=",
"null",
";"
]
|
[
"returns",
"true",
"if",
"input",
"stream",
"is",
"empty",
"(",
"except",
"possibly",
"whitespace",
")",
"use",
"this",
"to",
"know",
"whether",
"the",
"next",
"call",
"to",
"{",
"@",
"link",
"#",
"read",
"string",
"(",
")",
"}",
"{",
"@",
"link",
"#",
"read",
"double",
"(",
")",
"}",
"etc",
"will",
"succeed"
]
| [
"return",
"!",
"scanner",
"has",
"next",
"(",
")",
";"
]
|
[
"returns",
"true",
"if",
"this",
"input",
"stream",
"has",
"more",
"input",
"(",
"including",
"whitespace",
")",
"use",
"this",
"method",
"to",
"know",
"whether",
"the",
"next",
"call",
"to",
"{",
"@",
"link",
"#",
"read",
"char",
"(",
")",
"}",
"will",
"succeed",
"this",
"method",
"is",
"functionally",
"equivalent",
"to",
"{",
"@",
"link",
"#",
"has",
"next",
"line",
"(",
")",
"}"
]
| [
"scanner",
"use",
"delimiter",
"(",
"empty",
"pattern",
")",
";",
"boolean",
"result",
"=",
"scanner",
"has",
"next",
"(",
")",
";",
"scanner",
"use",
"delimiter",
"(",
"whitespace",
"pattern",
")",
";",
"return",
"result",
";"
]
|
[
"reads",
"and",
"returns",
"the",
"next",
"line",
"in",
"this",
"input",
"stream"
]
| [
"string",
"line",
";",
"try",
"{",
"line",
"=",
"scanner",
"next",
"line",
"(",
")",
";",
"}",
"catch",
"(",
"no",
"such",
"element",
"exception",
"e",
")",
"{",
"line",
"=",
"null",
";",
"}",
"return",
"line",
";"
]
|
[
"reads",
"all",
"remaining",
"lines",
"from",
"this",
"input",
"stream",
"and",
"returns",
"them",
"as",
"an",
"array",
"of",
"strings"
]
| [
"array",
"list",
"<",
"string",
">",
"lines",
"=",
"new",
"array",
"list",
"<",
"string",
">",
"(",
")",
";",
"while",
"(",
"has",
"next",
"line",
"(",
")",
")",
"{",
"lines",
"add",
"(",
"read",
"line",
"(",
")",
")",
";",
"}",
"return",
"lines",
"to",
"array",
"(",
"new",
"string",
"[",
"lines",
"size",
"(",
")",
"]",
")",
";"
]
|
[
"reads",
"all",
"remaining",
"tokens",
"from",
"this",
"input",
"stream",
"parses",
"them",
"as",
"integers",
"and",
"returns",
"them",
"as",
"an",
"array",
"of",
"integers"
]
| [
"string",
"[",
"]",
"fields",
"=",
"read",
"all",
"strings",
"(",
")",
";",
"int",
"[",
"]",
"vals",
"=",
"new",
"int",
"[",
"fields",
"length",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"fields",
"length",
";",
"i",
"+",
"+",
")",
"vals",
"[",
"i",
"]",
"=",
"integer",
"parse",
"int",
"(",
"fields",
"[",
"i",
"]",
")",
";",
"return",
"vals",
";"
]
|
[
"reads",
"all",
"remaining",
"tokens",
"from",
"this",
"input",
"stream",
"parses",
"them",
"as",
"longs",
"and",
"returns",
"them",
"as",
"an",
"array",
"of",
"longs"
]
| [
"string",
"[",
"]",
"fields",
"=",
"read",
"all",
"strings",
"(",
")",
";",
"long",
"[",
"]",
"vals",
"=",
"new",
"long",
"[",
"fields",
"length",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"fields",
"length",
";",
"i",
"+",
"+",
")",
"vals",
"[",
"i",
"]",
"=",
"long",
"parse",
"long",
"(",
"fields",
"[",
"i",
"]",
")",
";",
"return",
"vals",
";"
]
|
[
"reads",
"all",
"remaining",
"tokens",
"from",
"this",
"input",
"stream",
"parses",
"them",
"as",
"doubles",
"and",
"returns",
"them",
"as",
"an",
"array",
"of",
"doubles"
]
| [
"string",
"[",
"]",
"fields",
"=",
"read",
"all",
"strings",
"(",
")",
";",
"double",
"[",
"]",
"vals",
"=",
"new",
"double",
"[",
"fields",
"length",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"fields",
"length",
";",
"i",
"+",
"+",
")",
"vals",
"[",
"i",
"]",
"=",
"double",
"parse",
"double",
"(",
"fields",
"[",
"i",
"]",
")",
";",
"return",
"vals",
";"
]
|
[
"closes",
"this",
"input",
"stream"
]
| [
"scanner",
"close",
"(",
")",
";"
]
|
[
"reads",
"all",
"integers",
"from",
"a",
"file",
"and",
"returns",
"them",
"as",
"an",
"array",
"of",
"integers"
]
| [
"return",
"new",
"in",
"(",
"filename",
")",
"read",
"all",
"ints",
"(",
")",
";"
]
|
[
"reads",
"all",
"doubles",
"from",
"a",
"file",
"and",
"returns",
"them",
"as",
"an",
"array",
"of",
"doubles"
]
| [
"return",
"new",
"in",
"(",
"filename",
")",
"read",
"all",
"doubles",
"(",
")",
";"
]
|
[
"reads",
"all",
"strings",
"from",
"a",
"file",
"and",
"returns",
"them",
"as",
"an",
"array",
"of",
"strings"
]
| [
"return",
"new",
"in",
"(",
"filename",
")",
"read",
"all",
"strings",
"(",
")",
";"
]
|
[
"reads",
"all",
"integers",
"from",
"standard",
"input",
"and",
"returns",
"them",
"an",
"array",
"of",
"integers"
]
| [
"return",
"new",
"in",
"(",
")",
"read",
"all",
"ints",
"(",
")",
";"
]
|
[
"reads",
"all",
"doubles",
"from",
"standard",
"input",
"and",
"returns",
"them",
"as",
"an",
"array",
"of",
"doubles"
]
| [
"return",
"new",
"in",
"(",
")",
"read",
"all",
"doubles",
"(",
")",
";"
]
|
[
"reads",
"all",
"strings",
"from",
"standard",
"input",
"and",
"returns",
"them",
"as",
"an",
"array",
"of",
"strings"
]
| [
"return",
"new",
"in",
"(",
")",
"read",
"all",
"strings",
"(",
")",
";"
]
|
[
"invoked",
"when",
"an",
"event",
"source",
"has",
"been",
"accepted",
"by",
"the",
"remote",
"peer",
"and",
"may",
"begin",
"transmitting",
"events"
]
| []
|
[
"todo",
"description"
]
| []
|
[
"todo",
"description",
"no",
"further",
"calls",
"to",
"this",
"listener",
"will",
"be",
"made"
]
| []
|
[
"invoked",
"when",
"an",
"event",
"source",
"has",
"been",
"closed",
"due",
"to",
"an",
"error",
"reading",
"from",
"or",
"writing",
"to",
"the",
"network",
"incoming",
"events",
"may",
"have",
"been",
"lost",
"no",
"further",
"calls",
"to",
"this",
"listener",
"will",
"be",
"made"
]
| []
|
[
"create",
"and",
"initialise",
"an",
"s",
"s",
"l",
"context"
]
| [
"return",
"create",
"s",
"s",
"l",
"context",
"(",
"protocol",
",",
"key",
"manager",
"=",
"=",
"null",
"?",
"null",
":",
"new",
"key",
"manager",
"[",
"]",
"{",
"key",
"manager",
"}",
",",
"trust",
"manager",
"=",
"=",
"null",
"?",
"null",
":",
"new",
"trust",
"manager",
"[",
"]",
"{",
"trust",
"manager",
"}",
")",
";"
]
|
[
"<",
"p",
">",
"the",
"status",
"of",
"the",
"analysis",
"scheme",
"being",
"deleted",
"<",
"/",
"p",
">"
]
| [
"set",
"analysis",
"scheme",
"(",
"analysis",
"scheme",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"unique",
"identifier",
"of",
"the",
"device",
"<",
"/",
"p",
">"
]
| [
"set",
"device",
"id",
"(",
"device",
"id",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"start",
"date",
"for",
"the",
"device",
"event",
"query",
"in",
"iso8061",
"format",
"for",
"example",
"2018",
"-",
"03",
"-",
"28t15",
":",
"45",
":",
"12",
"880z",
"<",
"/",
"p",
">"
]
| [
"this",
"from",
"time",
"stamp",
"=",
"from",
"time",
"stamp",
";"
]
|
[
"<",
"p",
">",
"the",
"start",
"date",
"for",
"the",
"device",
"event",
"query",
"in",
"iso8061",
"format",
"for",
"example",
"2018",
"-",
"03",
"-",
"28t15",
":",
"45",
":",
"12",
"880z",
"<",
"/",
"p",
">"
]
| [
"return",
"this",
"from",
"time",
"stamp",
";"
]
|
[
"<",
"p",
">",
"the",
"start",
"date",
"for",
"the",
"device",
"event",
"query",
"in",
"iso8061",
"format",
"for",
"example",
"2018",
"-",
"03",
"-",
"28t15",
":",
"45",
":",
"12",
"880z",
"<",
"/",
"p",
">"
]
| [
"set",
"from",
"time",
"stamp",
"(",
"from",
"time",
"stamp",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"end",
"date",
"for",
"the",
"device",
"event",
"query",
"in",
"iso8061",
"format",
"for",
"example",
"2018",
"-",
"03",
"-",
"28t15",
":",
"45",
":",
"12",
"880z",
"<",
"/",
"p",
">"
]
| [
"this",
"to",
"time",
"stamp",
"=",
"to",
"time",
"stamp",
";"
]
|
[
"<",
"p",
">",
"the",
"end",
"date",
"for",
"the",
"device",
"event",
"query",
"in",
"iso8061",
"format",
"for",
"example",
"2018",
"-",
"03",
"-",
"28t15",
":",
"45",
":",
"12",
"880z",
"<",
"/",
"p",
">"
]
| [
"return",
"this",
"to",
"time",
"stamp",
";"
]
|
[
"<",
"p",
">",
"the",
"end",
"date",
"for",
"the",
"device",
"event",
"query",
"in",
"iso8061",
"format",
"for",
"example",
"2018",
"-",
"03",
"-",
"28t15",
":",
"45",
":",
"12",
"880z",
"<",
"/",
"p",
">"
]
| [
"set",
"to",
"time",
"stamp",
"(",
"to",
"time",
"stamp",
")",
";",
"return",
"this",
";"
]
|
[
"menu"
]
| [
"inflater",
"inflate",
"(",
"r",
"menu",
"preview",
"column",
"chart",
",",
"menu",
")",
";"
]
|
[
"sets",
"the",
"name",
"of",
"the",
"bucket",
"whose",
"website",
"configuration",
"is",
"being",
"retrieved",
"and",
"returns",
"this",
"updated",
"request",
"object",
"so",
"that",
"additional",
"method",
"calls",
"can",
"be",
"chained",
"together"
]
| [
"set",
"bucket",
"name",
"(",
"bucket",
"name",
")",
";",
"return",
"this",
";"
]
|
[
"sum",
"of",
"<",
"code",
">",
"get",
"check",
"conditions",
"ticks",
"<",
"/",
"code",
">",
"<",
"code",
">",
"get",
"create",
"change",
"ticks",
"<",
"/",
"code",
">",
"and",
"<",
"code",
">",
"get",
"initialize",
"change",
"ticks",
"<",
"/",
"code",
">"
]
| [
"return",
"get",
"check",
"all",
"conditions",
"ticks",
"(",
")",
"+",
"f",
"values",
"[",
"create",
"change",
"]",
"+",
"f",
"values",
"[",
"initialize",
"change",
"]",
";"
]
|
[
"sum",
"of",
"<",
"code",
">",
"get",
"check",
"initial",
"conditions",
"ticks",
"(",
")",
"<",
"/",
"code",
">",
"and",
"<",
"code",
">",
"get",
"check",
"final",
"conditions",
"ticks",
"<",
"/",
"code",
">"
]
| [
"return",
"f",
"values",
"[",
"check",
"initial",
"conditions",
"]",
"+",
"f",
"values",
"[",
"check",
"final",
"conditions",
"]",
";"
]
|
[
"number",
"of",
"ticks",
"reserved",
"in",
"the",
"parent",
"progress",
"monitor",
"of",
"the",
"progress",
"monitor",
"passed",
"to",
"<",
"code",
">",
"refactoring",
"#",
"check",
"initial",
"conditions",
"(",
")",
"<",
"/",
"code",
">"
]
| [
"return",
"f",
"values",
"[",
"check",
"initial",
"conditions",
"]",
";"
]
|
[
"number",
"of",
"ticks",
"reserved",
"in",
"the",
"parent",
"progress",
"monitor",
"of",
"the",
"progress",
"monitor",
"passed",
"to",
"<",
"code",
">",
"refactoring",
"#",
"check",
"final",
"conditions",
"(",
")",
"<",
"/",
"code",
">"
]
| [
"return",
"f",
"values",
"[",
"check",
"final",
"conditions",
"]",
";"
]
|
[
"number",
"of",
"ticks",
"reserved",
"in",
"the",
"parent",
"progress",
"monitor",
"of",
"the",
"progress",
"monitor",
"passed",
"to",
"<",
"code",
">",
"refactoring",
"#",
"create",
"change",
"(",
")",
"<",
"/",
"code",
">"
]
| [
"return",
"f",
"values",
"[",
"create",
"change",
"]",
";"
]
|
[
"number",
"of",
"ticks",
"reserved",
"in",
"the",
"parent",
"progress",
"monitor",
"for",
"the",
"progress",
"monitor",
"passed",
"to",
"<",
"code",
">",
"{",
"@",
"link",
"change",
"#",
"initialize",
"validation",
"data",
"(",
"i",
"progress",
"monitor",
")",
"}",
"<",
"/",
"code",
">",
"which",
"is",
"executed",
"on",
"the",
"object",
"returned",
"by",
"<",
"code",
">",
"refactoring",
"#",
"create",
"change",
"(",
")",
"<",
"/",
"code",
">"
]
| [
"return",
"f",
"values",
"[",
"initialize",
"change",
"]",
";"
]
|
[
"reset",
"the",
"stats",
"associated",
"with",
"build",
"rule",
"event",
"counts",
"can",
"be",
"used",
"to",
"reset",
"progress",
"estimation",
"for",
"a",
"second",
"build",
"instance"
]
| [
"number",
"of",
"rules",
"set",
"(",
"0",
")",
";",
"number",
"of",
"started",
"rules",
"set",
"(",
"0",
")",
";",
"number",
"of",
"finished",
"rules",
"set",
"(",
"0",
")",
";",
"build",
"progress",
"set",
"(",
"-",
"1",
"0",
")",
";"
]
|
[
"sets",
"the",
"current",
"command",
"that",
"we",
"are",
"estimating"
]
| [
"command",
"=",
"command",
"name",
"+",
"\"",
"\"",
"+",
"joiner",
"on",
"(",
"\"",
"\"",
")",
"join",
"(",
"command",
"args",
")",
";",
"return",
"fill",
"estimations",
"for",
"command",
"(",
"command",
")",
";"
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.