docstring_tokens
sequence | code_tokens
sequence |
---|---|
[
"test",
"whether",
"the",
"translation",
"motor",
"is",
"powered"
] | [
"return",
"is",
"powered",
"lin",
"motor",
"(",
"object",
"id",
")",
";"
] |
[
"alter",
"whether",
"the",
"translation",
"motor",
"is",
"powered"
] | [
"set",
"powered",
"lin",
"motor",
"(",
"object",
"id",
",",
"powered",
"lin",
"motor",
")",
";"
] |
[
"read",
"the",
"velocity",
"target",
"of",
"the",
"translation",
"motor"
] | [
"return",
"get",
"target",
"lin",
"motor",
"velocity",
"(",
"object",
"id",
")",
";"
] |
[
"alter",
"the",
"velocity",
"target",
"of",
"the",
"translation",
"motor"
] | [
"set",
"target",
"lin",
"motor",
"velocity",
"(",
"object",
"id",
",",
"target",
"lin",
"motor",
"velocity",
")",
";"
] |
[
"read",
"the",
"maximum",
"force",
"of",
"the",
"translation",
"motor"
] | [
"return",
"get",
"max",
"lin",
"motor",
"force",
"(",
"object",
"id",
")",
";"
] |
[
"alter",
"the",
"maximum",
"force",
"of",
"the",
"translation",
"motor"
] | [
"set",
"max",
"lin",
"motor",
"force",
"(",
"object",
"id",
",",
"max",
"lin",
"motor",
"force",
")",
";"
] |
[
"test",
"whether",
"the",
"rotation",
"motor",
"is",
"powered"
] | [
"return",
"is",
"powered",
"ang",
"motor",
"(",
"object",
"id",
")",
";"
] |
[
"alter",
"whether",
"the",
"rotation",
"motor",
"is",
"powered"
] | [
"set",
"powered",
"ang",
"motor",
"(",
"object",
"id",
",",
"powered",
"ang",
"motor",
")",
";"
] |
[
"read",
"the",
"velocity",
"target",
"of",
"the",
"rotation",
"motor"
] | [
"return",
"get",
"target",
"ang",
"motor",
"velocity",
"(",
"object",
"id",
")",
";"
] |
[
"alter",
"the",
"velocity",
"target",
"of",
"the",
"rotation",
"motor"
] | [
"set",
"target",
"ang",
"motor",
"velocity",
"(",
"object",
"id",
",",
"target",
"ang",
"motor",
"velocity",
")",
";"
] |
[
"read",
"the",
"maximum",
"force",
"of",
"the",
"rotation",
"motor"
] | [
"return",
"get",
"max",
"ang",
"motor",
"force",
"(",
"object",
"id",
")",
";"
] |
[
"alter",
"the",
"maximum",
"force",
"of",
"the",
"rotation",
"motor"
] | [
"set",
"max",
"ang",
"motor",
"force",
"(",
"object",
"id",
",",
"max",
"ang",
"motor",
"force",
")",
";"
] |
[
"return",
"the",
"result",
"value",
"printer"
] | [
"return",
"this",
"printer",
";"
] |
[
"get",
"the",
"ssl",
"engine",
"for",
"a",
"given",
"connection"
] | [
"if",
"(",
"connection",
"instanceof",
"undertow",
"ssl",
"connection",
")",
"{",
"return",
"(",
"(",
"undertow",
"ssl",
"connection",
")",
"connection",
")",
"get",
"s",
"s",
"l",
"engine",
"(",
")",
";",
"}",
"else",
"{",
"return",
"jsse",
"xnio",
"ssl",
"get",
"ssl",
"engine",
"(",
"connection",
")",
";",
"}"
] |
[
"create",
"a",
"new",
"ssl",
"engine",
"configured",
"from",
"an",
"option",
"map"
] | [
"final",
"s",
"s",
"l",
"engine",
"engine",
"=",
"ssl",
"context",
"create",
"s",
"s",
"l",
"engine",
"(",
"option",
"map",
"get",
"(",
"options",
"ssl",
"peer",
"host",
"name",
",",
"peer",
"address",
"get",
"host",
"string",
"(",
")",
")",
",",
"option",
"map",
"get",
"(",
"options",
"ssl",
"peer",
"port",
",",
"peer",
"address",
"get",
"port",
"(",
")",
")",
")",
";",
"engine",
"set",
"use",
"client",
"mode",
"(",
"client",
")",
";",
"engine",
"set",
"enable",
"session",
"creation",
"(",
"option",
"map",
"get",
"(",
"options",
"ssl",
"enable",
"session",
"creation",
",",
"true",
")",
")",
";",
"final",
"sequence",
"<",
"string",
">",
"cipher",
"suites",
"=",
"option",
"map",
"get",
"(",
"options",
"ssl",
"enabled",
"cipher",
"suites",
")",
";",
"if",
"(",
"cipher",
"suites",
"!",
"=",
"null",
")",
"{",
"final",
"set",
"<",
"string",
">",
"supported",
"=",
"new",
"hash",
"set",
"<",
"string",
">",
"(",
"arrays",
"as",
"list",
"(",
"engine",
"get",
"supported",
"cipher",
"suites",
"(",
")",
")",
")",
";",
"final",
"list",
"<",
"string",
">",
"final",
"list",
"=",
"new",
"array",
"list",
"<",
"string",
">",
"(",
")",
";",
"for",
"(",
"string",
"name",
":",
"cipher",
"suites",
")",
"{",
"if",
"(",
"supported",
"contains",
"(",
"name",
")",
")",
"{",
"final",
"list",
"add",
"(",
"name",
")",
";",
"}",
"}",
"engine",
"set",
"enabled",
"cipher",
"suites",
"(",
"final",
"list",
"to",
"array",
"(",
"new",
"string",
"[",
"final",
"list",
"size",
"(",
")",
"]",
")",
")",
";",
"}",
"final",
"sequence",
"<",
"string",
">",
"protocols",
"=",
"option",
"map",
"get",
"(",
"options",
"ssl",
"enabled",
"protocols",
")",
";",
"if",
"(",
"protocols",
"!",
"=",
"null",
")",
"{",
"final",
"set",
"<",
"string",
">",
"supported",
"=",
"new",
"hash",
"set",
"<",
"string",
">",
"(",
"arrays",
"as",
"list",
"(",
"engine",
"get",
"supported",
"protocols",
"(",
")",
")",
")",
";",
"final",
"list",
"<",
"string",
">",
"final",
"list",
"=",
"new",
"array",
"list",
"<",
"string",
">",
"(",
")",
";",
"for",
"(",
"string",
"name",
":",
"protocols",
")",
"{",
"if",
"(",
"supported",
"contains",
"(",
"name",
")",
")",
"{",
"final",
"list",
"add",
"(",
"name",
")",
";",
"}",
"}",
"engine",
"set",
"enabled",
"protocols",
"(",
"final",
"list",
"to",
"array",
"(",
"new",
"string",
"[",
"final",
"list",
"size",
"(",
")",
"]",
")",
")",
";",
"}",
"return",
"engine",
";"
] |
[
"updates",
"the",
"s",
"s",
"l",
"context",
"that",
"is",
"in",
"use",
"all",
"new",
"connections",
"will",
"use",
"this",
"new",
"context",
"however",
"established",
"connections",
"will",
"not",
"be",
"affected"
] | [
"this",
"ssl",
"context",
"=",
"context",
";"
] |
[
"{"
] | [
"assert",
"arg",
"get",
"method",
"parameters",
"(",
")",
"length",
"=",
"=",
"1",
";",
"return",
"collections",
"singleton",
"list",
"(",
"new",
"test",
"gridify",
"job",
"(",
"(",
"string",
")",
"arg",
"get",
"method",
"parameters",
"(",
")",
"[",
"0",
"]",
")",
")",
";"
] |
[
"https",
":",
"/",
"/",
"github",
"com",
"/",
"square",
"/",
"mortar",
"/",
"issues",
"/",
"59"
] | [
"simple",
"presenter",
"presenter",
"=",
"new",
"simple",
"presenter",
"(",
")",
";",
"some",
"view",
"view",
"=",
"new",
"some",
"view",
"(",
")",
";",
"presenter",
"take",
"view",
"(",
"view",
")",
";",
"assert",
"that",
"(",
"presenter",
"loaded",
")",
"is",
"true",
"(",
")",
";",
"presenter",
"loaded",
"=",
"false",
";",
"bundle",
"service",
"runner",
"get",
"bundle",
"service",
"runner",
"(",
"activity",
"scope",
")",
"on",
"create",
"(",
"null",
")",
";",
"assert",
"that",
"(",
"presenter",
"loaded",
")",
"is",
"false",
"(",
")",
";"
] |
[
"when",
"take",
"view",
"clobbers",
"an",
"existing",
"view",
"drop",
"view",
"should",
"be",
"called",
"(",
"we",
"could",
"drop",
"this",
"requirement",
"if",
"drop",
"view",
"were",
"final",
"see",
"https",
":",
"/",
"/",
"github",
"com",
"/",
"square",
"/",
"mortar",
"/",
"issues",
"/",
"52",
")"
] | [
"simple",
"presenter",
"presenter",
"=",
"new",
"simple",
"presenter",
"(",
")",
";",
"some",
"view",
"view",
"one",
"=",
"new",
"some",
"view",
"(",
")",
";",
"some",
"view",
"view",
"two",
"=",
"new",
"some",
"view",
"(",
")",
";",
"presenter",
"take",
"view",
"(",
"view",
"one",
")",
";",
"presenter",
"take",
"view",
"(",
"view",
"two",
")",
";",
"assert",
"that",
"(",
"presenter",
"dropped",
"view",
")",
"is",
"same",
"as",
"(",
"view",
"one",
")",
";"
] |
[
"this",
"is",
"a",
"convinience",
"method",
"equivalent",
"to",
"{",
"@",
"link",
"#",
"get",
"text",
"(",
"string",
"buffer",
"node",
"boolean",
")",
"get",
"text",
"(",
"sb",
"node",
"false",
")",
"}"
] | [
"get",
"text",
"(",
"sb",
",",
"node",
",",
"false",
")",
";"
] |
[
"returns",
"the",
"max",
"time",
"{"
] | [
"long",
"max",
"=",
"this",
"max",
"get",
"and",
"set",
"(",
"-",
"1",
")",
";",
"if",
"(",
"max",
">",
"=",
"0",
")",
"{",
"return",
"(",
"int",
")",
"max",
";",
"}",
"else",
"{",
"return",
"null",
";",
"}"
] |
[
"returns",
"the",
"min",
"time",
"{"
] | [
"long",
"min",
"=",
"this",
"min",
"get",
"and",
"set",
"(",
"-",
"1",
")",
";",
"if",
"(",
"min",
">",
"=",
"0",
")",
"{",
"return",
"(",
"int",
")",
"min",
";",
"}",
"else",
"{",
"return",
"null",
";",
"}"
] |
[
"<",
"p",
">",
"the",
"minimum",
"value",
"in",
"the",
"range",
"<",
"/",
"p",
">"
] | [
"this",
"from",
"=",
"from",
";"
] |
[
"<",
"p",
">",
"the",
"minimum",
"value",
"in",
"the",
"range",
"<",
"/",
"p",
">"
] | [
"return",
"this",
"from",
";"
] |
[
"<",
"p",
">",
"the",
"minimum",
"value",
"in",
"the",
"range",
"<",
"/",
"p",
">"
] | [
"set",
"from",
"(",
"from",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"maximum",
"value",
"in",
"the",
"range",
"<",
"/",
"p",
">"
] | [
"this",
"to",
"=",
"to",
";"
] |
[
"<",
"p",
">",
"the",
"maximum",
"value",
"in",
"the",
"range",
"<",
"/",
"p",
">"
] | [
"return",
"this",
"to",
";"
] |
[
"<",
"p",
">",
"the",
"maximum",
"value",
"in",
"the",
"range",
"<",
"/",
"p",
">"
] | [
"set",
"to",
"(",
"to",
")",
";",
"return",
"this",
";"
] |
[
"returns",
"whether",
"or",
"not",
"any",
"layers",
"in",
"this",
"composition",
"has",
"masks"
] | [
"return",
"composition",
"layer",
"!",
"=",
"null",
"&",
"&",
"composition",
"layer",
"has",
"masks",
"(",
")",
";"
] |
[
"returns",
"whether",
"or",
"not",
"any",
"layers",
"in",
"this",
"composition",
"has",
"a",
"matte",
"layer"
] | [
"return",
"composition",
"layer",
"!",
"=",
"null",
"&",
"&",
"composition",
"layer",
"has",
"matte",
"(",
")",
";"
] |
[
"if",
"you",
"use",
"image",
"assets",
"you",
"must",
"explicitly",
"specify",
"the",
"folder",
"in",
"assets",
"/",
"in",
"which",
"they",
"are",
"located",
"because",
"bodymovin",
"uses",
"the",
"name",
"filenames",
"across",
"all",
"compositions",
"(",
"img",
"#",
")",
"do",
"not",
"rename",
"the",
"images",
"themselves"
] | [
"this",
"image",
"assets",
"folder",
"=",
"image",
"assets",
"folder",
";"
] |
[
"if",
"you",
"have",
"image",
"assets",
"and",
"use",
"{",
"@",
"link",
"lottie",
"drawable",
"}",
"directly",
"you",
"must",
"call",
"this",
"yourself"
] | [
"if",
"(",
"image",
"asset",
"manager",
"!",
"=",
"null",
")",
"{",
"image",
"asset",
"manager",
"recycle",
"bitmaps",
"(",
")",
";",
"}"
] |
[
"<",
"editor",
"-",
"fold",
"desc",
"=",
"animator",
">"
] | [
"play",
"animation",
"(",
")",
";"
] |
[
"plays",
"the",
"animation",
"from",
"the",
"beginning",
"if",
"speed",
"is",
"<",
"0",
"it",
"will",
"start",
"at",
"the",
"end",
"and",
"play",
"towards",
"the",
"beginning"
] | [
"if",
"(",
"composition",
"layer",
"=",
"=",
"null",
")",
"{",
"lazy",
"composition",
"tasks",
"add",
"(",
"new",
"lazy",
"composition",
"task",
"(",
")",
"{",
"@",
"override",
"public",
"void",
"run",
"(",
"lottie",
"composition",
"composition",
")",
"{",
"play",
"animation",
"(",
")",
";",
"}",
"}",
")",
";",
"return",
";",
"}",
"animator",
"play",
"animation",
"(",
")",
";"
] |
[
"continues",
"playing",
"the",
"animation",
"from",
"its",
"current",
"position",
"if",
"speed",
"<",
"0",
"it",
"will",
"play",
"backwards",
"from",
"the",
"current",
"position"
] | [
"if",
"(",
"composition",
"layer",
"=",
"=",
"null",
")",
"{",
"lazy",
"composition",
"tasks",
"add",
"(",
"new",
"lazy",
"composition",
"task",
"(",
")",
"{",
"@",
"override",
"public",
"void",
"run",
"(",
"lottie",
"composition",
"composition",
")",
"{",
"resume",
"animation",
"(",
")",
";",
"}",
"}",
")",
";",
"return",
";",
"}",
"animator",
"resume",
"animation",
"(",
")",
";"
] |
[
"sets",
"the",
"minimum",
"frame",
"that",
"the",
"animation",
"will",
"start",
"from",
"when",
"playing",
"or",
"looping"
] | [
"if",
"(",
"composition",
"=",
"=",
"null",
")",
"{",
"lazy",
"composition",
"tasks",
"add",
"(",
"new",
"lazy",
"composition",
"task",
"(",
")",
"{",
"@",
"override",
"public",
"void",
"run",
"(",
"lottie",
"composition",
"composition",
")",
"{",
"set",
"min",
"frame",
"(",
"min",
"frame",
")",
";",
"}",
"}",
")",
";",
"return",
";",
"}",
"animator",
"set",
"min",
"frame",
"(",
"min",
"frame",
")",
";"
] |
[
"returns",
"the",
"minimum",
"frame",
"set",
"by",
"{"
] | [
"return",
"animator",
"get",
"min",
"frame",
"(",
")",
";"
] |
[
"sets",
"the",
"minimum",
"progress",
"that",
"the",
"animation",
"will",
"start",
"from",
"when",
"playing",
"or",
"looping"
] | [
"if",
"(",
"composition",
"=",
"=",
"null",
")",
"{",
"lazy",
"composition",
"tasks",
"add",
"(",
"new",
"lazy",
"composition",
"task",
"(",
")",
"{",
"@",
"override",
"public",
"void",
"run",
"(",
"lottie",
"composition",
"composition",
")",
"{",
"set",
"min",
"progress",
"(",
"min",
"progress",
")",
";",
"}",
"}",
")",
";",
"return",
";",
"}",
"set",
"min",
"frame",
"(",
"(",
"int",
")",
"misc",
"utils",
"lerp",
"(",
"composition",
"get",
"start",
"frame",
"(",
")",
",",
"composition",
"get",
"end",
"frame",
"(",
")",
",",
"min",
"progress",
")",
")",
";"
] |
[
"sets",
"the",
"maximum",
"frame",
"that",
"the",
"animation",
"will",
"end",
"at",
"when",
"playing",
"or",
"looping"
] | [
"if",
"(",
"composition",
"=",
"=",
"null",
")",
"{",
"lazy",
"composition",
"tasks",
"add",
"(",
"new",
"lazy",
"composition",
"task",
"(",
")",
"{",
"@",
"override",
"public",
"void",
"run",
"(",
"lottie",
"composition",
"composition",
")",
"{",
"set",
"max",
"frame",
"(",
"max",
"frame",
")",
";",
"}",
"}",
")",
";",
"return",
";",
"}",
"animator",
"set",
"max",
"frame",
"(",
"max",
"frame",
")",
";"
] |
[
"returns",
"the",
"maximum",
"frame",
"set",
"by",
"{"
] | [
"return",
"animator",
"get",
"max",
"frame",
"(",
")",
";"
] |
[
"sets",
"the",
"maximum",
"progress",
"that",
"the",
"animation",
"will",
"end",
"at",
"when",
"playing",
"or",
"looping"
] | [
"if",
"(",
"composition",
"=",
"=",
"null",
")",
"{",
"lazy",
"composition",
"tasks",
"add",
"(",
"new",
"lazy",
"composition",
"task",
"(",
")",
"{",
"@",
"override",
"public",
"void",
"run",
"(",
"lottie",
"composition",
"composition",
")",
"{",
"set",
"max",
"progress",
"(",
"max",
"progress",
")",
";",
"}",
"}",
")",
";",
"return",
";",
"}",
"set",
"max",
"frame",
"(",
"(",
"int",
")",
"misc",
"utils",
"lerp",
"(",
"composition",
"get",
"start",
"frame",
"(",
")",
",",
"composition",
"get",
"end",
"frame",
"(",
")",
",",
"max",
"progress",
")",
")",
";"
] |
[
"reverses",
"the",
"current",
"animation",
"speed",
"this",
"does",
"not",
"play",
"the",
"animation"
] | [
"animator",
"reverse",
"animation",
"speed",
"(",
")",
";"
] |
[
"sets",
"the",
"playback",
"speed",
"if",
"speed",
"<",
"0",
"the",
"animation",
"will",
"play",
"backwards"
] | [
"animator",
"set",
"speed",
"(",
"speed",
")",
";"
] |
[
"returns",
"the",
"current",
"playback",
"speed",
"this",
"will",
"be",
"<",
"0",
"if",
"the",
"animation",
"is",
"playing",
"backwards"
] | [
"return",
"animator",
"get",
"speed",
"(",
")",
";"
] |
[
"sets",
"the",
"progress",
"to",
"the",
"specified",
"frame",
"if",
"the",
"composition",
"isn",
"t",
"set",
"yet",
"the",
"progress",
"will",
"be",
"set",
"to",
"the",
"frame",
"when",
"it",
"is"
] | [
"if",
"(",
"composition",
"=",
"=",
"null",
")",
"{",
"lazy",
"composition",
"tasks",
"add",
"(",
"new",
"lazy",
"composition",
"task",
"(",
")",
"{",
"@",
"override",
"public",
"void",
"run",
"(",
"lottie",
"composition",
"composition",
")",
"{",
"set",
"frame",
"(",
"frame",
")",
";",
"}",
"}",
")",
";",
"return",
";",
"}",
"animator",
"set",
"frame",
"(",
"frame",
")",
";"
] |
[
"get",
"the",
"currently",
"rendered",
"frame"
] | [
"return",
"(",
"int",
")",
"animator",
"get",
"frame",
"(",
")",
";"
] |
[
"defines",
"what",
"this",
"animation",
"should",
"do",
"when",
"it",
"reaches",
"the",
"end",
"this",
"setting",
"is",
"applied",
"only",
"when",
"the",
"repeat",
"count",
"is",
"either",
"greater",
"than",
"0",
"or",
"{",
"@",
"link",
"#",
"infinite",
"}",
"defaults",
"to",
"{",
"@",
"link",
"#",
"restart",
"}"
] | [
"animator",
"set",
"repeat",
"mode",
"(",
"mode",
")",
";"
] |
[
"defines",
"what",
"this",
"animation",
"should",
"do",
"when",
"it",
"reaches",
"the",
"end"
] | [
"return",
"animator",
"get",
"repeat",
"mode",
"(",
")",
";"
] |
[
"sets",
"how",
"many",
"times",
"the",
"animation",
"should",
"be",
"repeated",
"if",
"the",
"repeat",
"count",
"is",
"0",
"the",
"animation",
"is",
"never",
"repeated",
"if",
"the",
"repeat",
"count",
"is",
"greater",
"than",
"0",
"or",
"{",
"@",
"link",
"#",
"infinite",
"}",
"the",
"repeat",
"mode",
"will",
"be",
"taken",
"into",
"account",
"the",
"repeat",
"count",
"is",
"0",
"by",
"default"
] | [
"animator",
"set",
"repeat",
"count",
"(",
"count",
")",
";"
] |
[
"defines",
"how",
"many",
"times",
"the",
"animation",
"should",
"repeat",
"the",
"default",
"value",
"is",
"0"
] | [
"return",
"animator",
"get",
"repeat",
"count",
"(",
")",
";"
] |
[
"set",
"the",
"scale",
"on",
"the",
"current",
"composition",
"the",
"only",
"cost",
"of",
"this",
"function",
"is",
"re",
"-",
"rendering",
"the",
"current",
"frame",
"so",
"you",
"may",
"call",
"it",
"frequent",
"to",
"scale",
"something",
"up",
"or",
"down"
] | [
"this",
"scale",
"=",
"scale",
";",
"update",
"bounds",
"(",
")",
";"
] |
[
"overload",
"of",
"{"
] | [
"add",
"value",
"callback",
"(",
"key",
"path",
",",
"property",
",",
"new",
"lottie",
"value",
"callback",
"<",
"t",
">",
"(",
")",
"{",
"@",
"override",
"public",
"t",
"get",
"value",
"(",
"lottie",
"frame",
"info",
"<",
"t",
">",
"frame",
"info",
")",
"{",
"return",
"callback",
"get",
"value",
"(",
"frame",
"info",
")",
";",
"}",
"}",
")",
";"
] |
[
"if",
"the",
"composition",
"is",
"larger",
"than",
"the",
"canvas",
"we",
"have",
"to",
"use",
"a",
"different",
"method",
"to",
"scale",
"it",
"up",
"see",
"the",
"comments",
"in",
"{"
] | [
"float",
"max",
"scale",
"x",
"=",
"canvas",
"get",
"width",
"(",
")",
"/",
"(",
"float",
")",
"composition",
"get",
"bounds",
"(",
")",
"width",
"(",
")",
";",
"float",
"max",
"scale",
"y",
"=",
"canvas",
"get",
"height",
"(",
")",
"/",
"(",
"float",
")",
"composition",
"get",
"bounds",
"(",
")",
"height",
"(",
")",
";",
"return",
"math",
"min",
"(",
"max",
"scale",
"x",
",",
"max",
"scale",
"y",
")",
";"
] |
[
"reset",
"projection",
"object",
"when",
"the",
"plot",
"canvas",
"size",
"changed"
] | [
"projection",
"reset",
"(",
")",
";"
] |
[
"returns",
"the",
"projection",
"object"
] | [
"return",
"projection",
";"
] |
[
"returns",
"the",
"java",
"2",
"d",
"graphics",
"object"
] | [
"return",
"g",
"2d",
";"
] |
[
"returns",
"the",
"lower",
"bounds",
"of",
"coordinate",
"space"
] | [
"return",
"projection",
"canvas",
"base",
"lower",
"bound",
";"
] |
[
"returns",
"the",
"upper",
"bounds",
"of",
"coordinate",
"space"
] | [
"return",
"projection",
"canvas",
"base",
"upper",
"bound",
";"
] |
[
"get",
"the",
"current",
"font"
] | [
"return",
"g",
"2d",
"get",
"font",
"(",
")",
";"
] |
[
"set",
"the",
"font"
] | [
"g",
"2d",
"set",
"font",
"(",
"font",
")",
";",
"return",
"this",
";"
] |
[
"get",
"the",
"current",
"color"
] | [
"return",
"g",
"2d",
"get",
"color",
"(",
")",
";"
] |
[
"set",
"the",
"color"
] | [
"g",
"2d",
"set",
"color",
"(",
"color",
")",
";",
"return",
"this",
";"
] |
[
"get",
"the",
"current",
"paint",
"object"
] | [
"return",
"g",
"2d",
"get",
"paint",
"(",
")",
";"
] |
[
"set",
"the",
"paint",
"object"
] | [
"g",
"2d",
"set",
"paint",
"(",
"paint",
")",
";",
"return",
"this",
";"
] |
[
"get",
"the",
"current",
"stroke"
] | [
"return",
"g",
"2d",
"get",
"stroke",
"(",
")",
";"
] |
[
"set",
"the",
"stroke"
] | [
"g",
"2d",
"set",
"stroke",
"(",
"stroke",
")",
";",
"return",
"this",
";"
] |
[
"restrict",
"the",
"draw",
"area",
"to",
"the",
"valid",
"base",
"coordinate",
"space"
] | [
"int",
"x",
"=",
"(",
"int",
")",
"(",
"projection",
"canvas",
"get",
"width",
"(",
")",
"*",
"projection",
"canvas",
"margin",
")",
";",
"int",
"y",
"=",
"(",
"int",
")",
"(",
"projection",
"canvas",
"get",
"height",
"(",
")",
"*",
"projection",
"canvas",
"margin",
")",
";",
"int",
"w",
"=",
"(",
"int",
")",
"(",
"projection",
"canvas",
"get",
"width",
"(",
")",
"*",
"(",
"1",
"-",
"2",
"*",
"projection",
"canvas",
"margin",
")",
")",
";",
"int",
"h",
"=",
"(",
"int",
")",
"(",
"projection",
"canvas",
"get",
"height",
"(",
")",
"*",
"(",
"1",
"-",
"2",
"*",
"projection",
"canvas",
"margin",
")",
")",
";",
"original",
"clip",
"=",
"g",
"2d",
"get",
"clip",
"(",
")",
";",
"g",
"2d",
"clip",
"rect",
"(",
"x",
",",
"y",
",",
"w",
",",
"h",
")",
";"
] |
[
"clear",
"the",
"restriction",
"of",
"the",
"draw",
"area"
] | [
"if",
"(",
"original",
"clip",
"!",
"=",
"null",
")",
"{",
"g",
"2d",
"set",
"clip",
"(",
"original",
"clip",
")",
";",
"original",
"clip",
"=",
"null",
";",
"}"
] |
[
"draw",
"a",
"string",
"reference",
"point",
"is",
"the",
"center",
"of",
"string",
"the",
"coordinates",
"are",
"logical",
"coordinates"
] | [
"draw",
"text",
"(",
"label",
",",
"0",
"5",
",",
"0",
"5",
",",
"0",
"0",
",",
"coord",
")",
";"
] |
[
"draw",
"a",
"string",
"with",
"given",
"rotation",
"angle",
"reference",
"point",
"is",
"the",
"center",
"of",
"string",
"the",
"coordinates",
"are",
"logical",
"coordinates",
"the",
"angle",
"of",
"rotation",
"is",
"in",
"radians"
] | [
"draw",
"text",
"(",
"label",
",",
"0",
"5",
",",
"0",
"5",
",",
"rotation",
",",
"coord",
")",
";"
] |
[
"draw",
"a",
"string",
"with",
"given",
"reference",
"point",
"(",
"0",
"5",
"0",
"5",
")",
"is",
"center",
"(",
"0",
"0",
")",
"is",
"lower",
"left",
"(",
"0",
"1",
")",
"is",
"upper",
"left",
"etc",
"the",
"coordinates",
"are",
"logical",
"coordinates"
] | [
"draw",
"text",
"(",
"label",
",",
"horizontal",
"reference",
",",
"vertical",
"reference",
",",
"0",
"0",
",",
"coord",
")",
";"
] |
[
"draw",
"a",
"string",
"with",
"given",
"rotation",
"angle",
"reference",
"point",
"is",
"the",
"center",
"of",
"string",
"the",
"logical",
"coordinates",
"are",
"proportional",
"to",
"the",
"base",
"coordinates"
] | [
"draw",
"text",
"base",
"ratio",
"(",
"label",
",",
"0",
"5",
",",
"0",
"5",
",",
"0",
"0",
",",
"coord",
")",
";"
] |
[
"draw",
"a",
"string",
"with",
"given",
"rotation",
"angle",
"reference",
"point",
"is",
"the",
"center",
"of",
"string",
"the",
"angle",
"of",
"rotation",
"is",
"in",
"radians",
"the",
"logical",
"coordinates",
"are",
"proportional",
"to",
"the",
"base",
"coordinates"
] | [
"draw",
"text",
"base",
"ratio",
"(",
"label",
",",
"0",
"5",
",",
"0",
"5",
",",
"0",
"0",
",",
"coord",
")",
";"
] |
[
"draw",
"a",
"string",
"with",
"given",
"reference",
"point",
"(",
"0",
"5",
"0",
"5",
")",
"is",
"center",
"(",
"0",
"0",
")",
"is",
"lower",
"left",
"(",
"0",
"1",
")",
"is",
"upper",
"left",
"etc",
"the",
"logical",
"coordinates",
"are",
"proportional",
"to",
"the",
"base",
"coordinates"
] | [
"draw",
"text",
"base",
"ratio",
"(",
"label",
",",
"horizontal",
"reference",
",",
"vertical",
"reference",
",",
"0",
"0",
",",
"coord",
")",
";"
] |
[
"draw",
"poly",
"line"
] | [
"int",
"[",
"]",
"x",
"=",
"new",
"int",
"[",
"coord",
"length",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"coord",
"length",
";",
"i",
"+",
"+",
")",
"{",
"x",
"[",
"i",
"]",
"=",
"coord",
"[",
"i",
"]",
"[",
"0",
"]",
";",
"}",
"int",
"[",
"]",
"y",
"=",
"new",
"int",
"[",
"coord",
"length",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"coord",
"length",
";",
"i",
"+",
"+",
")",
"{",
"y",
"[",
"i",
"]",
"=",
"coord",
"[",
"i",
"]",
"[",
"1",
"]",
";",
"}",
"g",
"2d",
"draw",
"polyline",
"(",
"x",
",",
"y",
",",
"coord",
"length",
")",
";"
] |
[
"draw",
"poly",
"line",
"the",
"coordinates",
"are",
"in",
"logical",
"coordinates"
] | [
"int",
"[",
"]",
"[",
"]",
"sc",
"=",
"new",
"int",
"[",
"coord",
"length",
"]",
"[",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"sc",
"length",
";",
"i",
"+",
"+",
")",
"{",
"sc",
"[",
"i",
"]",
"=",
"projection",
"screen",
"projection",
"(",
"coord",
"[",
"i",
"]",
")",
";",
"}",
"draw",
"line",
"(",
"sc",
")",
";"
] |
[
"draw",
"poly",
"line",
"the",
"logical",
"coordinates",
"are",
"proportional",
"to",
"the",
"base",
"coordinates"
] | [
"int",
"[",
"]",
"[",
"]",
"sc",
"=",
"new",
"int",
"[",
"coord",
"length",
"]",
"[",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"sc",
"length",
";",
"i",
"+",
"+",
")",
"{",
"sc",
"[",
"i",
"]",
"=",
"projection",
"screen",
"projection",
"base",
"ratio",
"(",
"coord",
"[",
"i",
"]",
")",
";",
"}",
"draw",
"line",
"(",
"sc",
")",
";"
] |
[
"draw",
"a",
"dot",
"the",
"coordinates",
"are",
"in",
"logical",
"coordinates"
] | [
"draw",
"point",
"(",
"'",
"'",
",",
"coord",
")",
";"
] |
[
"draw",
"a",
"dot",
"with",
"given",
"pattern",
"the",
"coordinates",
"are",
"in",
"logical",
"coordinates"
] | [
"int",
"size",
"=",
"2",
";",
"int",
"mid",
"size",
"=",
"3",
";",
"int",
"big",
"size",
"=",
"4",
";",
"int",
"[",
"]",
"sc",
"=",
"projection",
"screen",
"projection",
"(",
"coord",
")",
";",
"int",
"x",
"=",
"sc",
"[",
"0",
"]",
";",
"int",
"y",
"=",
"sc",
"[",
"1",
"]",
";",
"switch",
"(",
"dot",
")",
"{",
"case",
"'",
"+",
"'",
":",
"g",
"2d",
"draw",
"line",
"(",
"x",
"-",
"size",
",",
"y",
",",
"x",
"+",
"size",
",",
"y",
")",
";",
"g",
"2d",
"draw",
"line",
"(",
"x",
",",
"y",
"-",
"size",
",",
"x",
",",
"y",
"+",
"size",
")",
";",
"break",
";",
"case",
"'",
"-",
"'",
":",
"g",
"2d",
"draw",
"line",
"(",
"x",
"-",
"size",
",",
"y",
",",
"x",
"+",
"size",
",",
"y",
")",
";",
"break",
";",
"case",
"'",
"|",
"'",
":",
"g",
"2d",
"draw",
"line",
"(",
"x",
",",
"y",
"-",
"size",
",",
"x",
",",
"y",
"+",
"size",
")",
";",
"break",
";",
"case",
"'",
"x",
"'",
":",
"g",
"2d",
"draw",
"line",
"(",
"x",
"-",
"size",
",",
"y",
"-",
"size",
",",
"x",
"+",
"size",
",",
"y",
"+",
"size",
")",
";",
"g",
"2d",
"draw",
"line",
"(",
"x",
"+",
"size",
",",
"y",
"-",
"size",
",",
"x",
"-",
"size",
",",
"y",
"+",
"size",
")",
";",
"break",
";",
"case",
"'",
"*",
"'",
":",
"g",
"2d",
"draw",
"line",
"(",
"x",
"-",
"big",
"size",
",",
"y",
",",
"x",
"+",
"big",
"size",
",",
"y",
")",
";",
"g",
"2d",
"draw",
"line",
"(",
"x",
",",
"y",
"-",
"big",
"size",
",",
"x",
",",
"y",
"+",
"big",
"size",
")",
";",
"g",
"2d",
"draw",
"line",
"(",
"x",
"-",
"mid",
"size",
",",
"y",
"-",
"mid",
"size",
",",
"x",
"+",
"mid",
"size",
",",
"y",
"+",
"mid",
"size",
")",
";",
"g",
"2d",
"draw",
"line",
"(",
"x",
"+",
"mid",
"size",
",",
"y",
"-",
"mid",
"size",
",",
"x",
"-",
"mid",
"size",
",",
"y",
"+",
"mid",
"size",
")",
";",
"break",
";",
"case",
"'",
"o",
"'",
":",
"g",
"2d",
"draw",
"oval",
"(",
"x",
"-",
"size",
",",
"y",
"-",
"size",
",",
"2",
"*",
"size",
",",
"2",
"*",
"size",
")",
";",
"break",
";",
"case",
"'",
"o",
"'",
":",
"g",
"2d",
"draw",
"oval",
"(",
"x",
"-",
"big",
"size",
",",
"y",
"-",
"big",
"size",
",",
"2",
"*",
"big",
"size",
",",
"2",
"*",
"big",
"size",
")",
";",
"break",
";",
"case",
"'",
"@",
"'",
":",
"g",
"2d",
"fill",
"oval",
"(",
"x",
"-",
"size",
",",
"y",
"-",
"size",
",",
"2",
"*",
"size",
",",
"2",
"*",
"size",
")",
";",
"break",
";",
"case",
"'",
"#",
"'",
":",
"g",
"2d",
"fill",
"oval",
"(",
"x",
"-",
"big",
"size",
",",
"y",
"-",
"big",
"size",
",",
"2",
"*",
"big",
"size",
",",
"2",
"*",
"big",
"size",
")",
";",
"break",
";",
"case",
"'",
"s",
"'",
":",
"g",
"2d",
"draw",
"rect",
"(",
"x",
"-",
"size",
",",
"y",
"-",
"size",
",",
"2",
"*",
"size",
",",
"2",
"*",
"size",
")",
";",
"break",
";",
"case",
"'",
"s",
"'",
":",
"g",
"2d",
"draw",
"rect",
"(",
"x",
"-",
"big",
"size",
",",
"y",
"-",
"big",
"size",
",",
"2",
"*",
"big",
"size",
",",
"2",
"*",
"big",
"size",
")",
";",
"break",
";",
"case",
"'",
"q",
"'",
":",
"g",
"2d",
"fill",
"rect",
"(",
"x",
"-",
"size",
",",
"y",
"-",
"size",
",",
"2",
"*",
"size",
",",
"2",
"*",
"size",
")",
";",
"break",
";",
"case",
"'",
"q",
"'",
":",
"g",
"2d",
"fill",
"rect",
"(",
"x",
"-",
"big",
"size",
",",
"y",
"-",
"big",
"size",
",",
"2",
"*",
"big",
"size",
",",
"2",
"*",
"big",
"size",
")",
";",
"break",
";",
"default",
":",
"g",
"2d",
"draw",
"rect",
"(",
"x",
",",
"y",
",",
"1",
",",
"1",
")",
";",
"break",
";",
"}"
] |
[
"draw",
"polygon",
"the",
"coordinates",
"are",
"in",
"logical",
"coordinates"
] | [
"int",
"[",
"]",
"[",
"]",
"c",
"=",
"new",
"int",
"[",
"coord",
"length",
"]",
"[",
"2",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"coord",
"length",
";",
"i",
"+",
"+",
")",
"{",
"c",
"[",
"i",
"]",
"=",
"projection",
"screen",
"projection",
"(",
"coord",
"[",
"i",
"]",
")",
";",
"}",
"int",
"[",
"]",
"x",
"=",
"new",
"int",
"[",
"c",
"length",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"c",
"length",
";",
"i",
"+",
"+",
")",
"{",
"x",
"[",
"i",
"]",
"=",
"c",
"[",
"i",
"]",
"[",
"0",
"]",
";",
"}",
"int",
"[",
"]",
"y",
"=",
"new",
"int",
"[",
"c",
"length",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"c",
"length",
";",
"i",
"+",
"+",
")",
"{",
"y",
"[",
"i",
"]",
"=",
"c",
"[",
"i",
"]",
"[",
"1",
"]",
";",
"}",
"g",
"2d",
"draw",
"polygon",
"(",
"x",
",",
"y",
",",
"c",
"length",
")",
";"
] |
[
"fill",
"polygon",
"the",
"coordinates",
"are",
"in",
"logical",
"coordinates"
] | [
"int",
"[",
"]",
"[",
"]",
"c",
"=",
"new",
"int",
"[",
"coord",
"length",
"]",
"[",
"2",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"coord",
"length",
";",
"i",
"+",
"+",
")",
"{",
"c",
"[",
"i",
"]",
"=",
"projection",
"screen",
"projection",
"(",
"coord",
"[",
"i",
"]",
")",
";",
"}",
"int",
"[",
"]",
"x",
"=",
"new",
"int",
"[",
"c",
"length",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"c",
"length",
";",
"i",
"+",
"+",
")",
"{",
"x",
"[",
"i",
"]",
"=",
"c",
"[",
"i",
"]",
"[",
"0",
"]",
";",
"}",
"int",
"[",
"]",
"y",
"=",
"new",
"int",
"[",
"c",
"length",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"c",
"length",
";",
"i",
"+",
"+",
")",
"{",
"y",
"[",
"i",
"]",
"=",
"c",
"[",
"i",
"]",
"[",
"1",
"]",
";",
"}",
"g",
"2d",
"fill",
"polygon",
"(",
"x",
",",
"y",
",",
"c",
"length",
")",
";"
] |
[
"fill",
"polygon",
"the",
"coordinates",
"are",
"in",
"logical",
"coordinates",
"this",
"also",
"supports",
"basic",
"alpha",
"compositing",
"rules",
"for",
"combining",
"source",
"and",
"destination",
"colors",
"to",
"achieve",
"blending",
"and",
"transparency",
"effects",
"with",
"graphics",
"and",
"images"
] | [
"int",
"[",
"]",
"[",
"]",
"c",
"=",
"new",
"int",
"[",
"coord",
"length",
"]",
"[",
"2",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"coord",
"length",
";",
"i",
"+",
"+",
")",
"{",
"c",
"[",
"i",
"]",
"=",
"projection",
"screen",
"projection",
"(",
"coord",
"[",
"i",
"]",
")",
";",
"}",
"int",
"[",
"]",
"x",
"=",
"new",
"int",
"[",
"c",
"length",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"c",
"length",
";",
"i",
"+",
"+",
")",
"{",
"x",
"[",
"i",
"]",
"=",
"c",
"[",
"i",
"]",
"[",
"0",
"]",
";",
"}",
"int",
"[",
"]",
"y",
"=",
"new",
"int",
"[",
"c",
"length",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"c",
"length",
";",
"i",
"+",
"+",
")",
"{",
"y",
"[",
"i",
"]",
"=",
"c",
"[",
"i",
"]",
"[",
"1",
"]",
";",
"}",
"composite",
"cs",
"=",
"g",
"2d",
"get",
"composite",
"(",
")",
";",
"g",
"2d",
"set",
"composite",
"(",
"alpha",
"composite",
"get",
"instance",
"(",
"alpha",
"composite",
"src",
"over",
",",
"alpha",
")",
")",
";",
"g",
"2d",
"fill",
"polygon",
"(",
"x",
",",
"y",
",",
"c",
"length",
")",
";",
"g",
"2d",
"set",
"composite",
"(",
"cs",
")",
";"
] |
[
"creates",
"a",
"comparator",
"for",
"the",
"field",
"in",
"the",
"given",
"index"
] | [
"public",
"abstract",
"field",
"comparator",
"<",
"?",
">",
"new",
"comparator",
"(",
"string",
"fieldname",
",",
"int",
"num",
"hits",
",",
"int",
"sort",
"pos",
",",
"boolean",
"reversed",
")",
";"
] |
[
"generates",
"and",
"returns",
"an",
"o",
"auth",
"signature",
"for",
"the",
"given",
"request",
"parameters",
"and",
"secrets"
] | [
"return",
"get",
"signature",
"method",
"(",
"params",
")",
"sign",
"(",
"base",
"string",
"(",
"request",
",",
"params",
")",
",",
"secrets",
")",
";"
] |
[
"verifies",
"the",
"o",
"auth",
"signature",
"for",
"a",
"given",
"request",
"parameters",
"and",
"secrets"
] | [
"return",
"get",
"signature",
"method",
"(",
"params",
")",
"verify",
"(",
"base",
"string",
"(",
"request",
",",
"params",
")",
",",
"secrets",
",",
"params",
"get",
"signature",
"(",
")",
")",
";"
] |
[
"retrieves",
"an",
"instance",
"of",
"a",
"signature",
"method",
"that",
"can",
"be",
"used",
"to",
"generate",
"or",
"verify",
"signatures",
"for",
"data"
] | [
"final",
"o",
"auth",
"1",
"signature",
"method",
"method",
"=",
"methods",
"get",
"(",
"params",
"get",
"signature",
"method",
"(",
")",
")",
";",
"if",
"(",
"method",
"=",
"=",
"null",
")",
"{",
"throw",
"new",
"unsupported",
"signature",
"method",
"exception",
"(",
"params",
"get",
"signature",
"method",
"(",
")",
")",
";",
"}",
"return",
"method",
";"
] |
[
"returns",
"the",
"displayed",
"width",
"of",
"a",
"string",
"taking",
"in",
"account",
"the",
"displayed",
"tab",
"width",
"the",
"result",
"can",
"be",
"compared",
"against",
"the",
"print",
"margin"
] | [
"final",
"int",
"tab",
"width",
"=",
"get",
"preference",
"store",
"(",
")",
"get",
"int",
"(",
"abstract",
"decorated",
"text",
"editor",
"preference",
"constants",
"editor",
"tab",
"width",
")",
";",
"int",
"column",
"=",
"0",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"string",
"length",
"(",
")",
";",
"i",
"+",
"+",
")",
"{",
"if",
"(",
"'",
"\\",
"t",
"'",
"=",
"=",
"string",
"char",
"at",
"(",
"i",
")",
")",
"{",
"column",
"+",
"=",
"tab",
"width",
"-",
"(",
"column",
"%",
"tab",
"width",
")",
";",
"}",
"else",
"{",
"column",
"+",
"+",
";",
"}",
"}",
"return",
"column",
";"
] |
[
"returns",
"<",
"code",
">",
"true",
"<",
"/",
"code",
">",
"if",
"the",
"comment",
"line",
"is",
"too",
"short",
"<",
"code",
">",
"false",
"<",
"/",
"code",
">",
"otherwise"
] | [
"if",
"(",
"!",
"is",
"comment",
"line",
"(",
"document",
",",
"line",
"+",
"1",
")",
")",
"{",
"return",
"false",
";",
"}",
"string",
"next",
"line",
"=",
"get",
"line",
"contents",
"(",
"document",
",",
"line",
"+",
"1",
")",
";",
"return",
"next",
"line",
"trim",
"(",
")",
"length",
"(",
")",
"!",
"=",
"0",
";"
] |
[
"returns",
"<",
"code",
">",
"true",
"<",
"/",
"code",
">",
"if",
"the",
"line",
"is",
"too",
"long",
"<",
"code",
">",
"false",
"<",
"/",
"code",
">",
"otherwise"
] | [
"string",
"line",
"contents",
"=",
"get",
"line",
"(",
"document",
",",
"line",
")",
";",
"return",
"calculate",
"displayed",
"width",
"(",
"line",
"contents",
")",
">",
"get",
"margin",
"(",
")",
";"
] |
[
"two",
"statements",
"on",
"the",
"same",
"line",
"(",
"they",
"both",
"are",
"distributed",
"over",
"two",
"lines",
")",
"are",
"illegal"
] | [
"to",
"string",
"(",
")",
";",
"to",
"string",
"(",
")",
";"
] |
[
"multiline",
"for",
"loop",
"statement",
"is",
"legal"
] | [
"for",
"(",
"int",
"n",
"=",
"0",
",",
"k",
"=",
"1",
";",
"n",
"<",
"5",
";",
"n",
"+",
"+",
",",
"k",
"-",
"-",
")",
"{",
"}"
] |
[
"multiline",
"for",
"loop",
"statement",
"is",
"legal"
] | [
"for",
"(",
"int",
"n",
"=",
"0",
",",
"k",
"=",
"1",
";",
"n",
"<",
"5",
";",
"n",
"+",
"+",
",",
"k",
"-",
"-",
")",
"{",
"}"
] |
[
"one",
"statement",
"inside",
"multiline",
"for",
"loop",
"block",
"is",
"legal"
] | [
"for",
"(",
"int",
"n",
"=",
"0",
",",
"k",
"=",
"1",
";",
"n",
"<",
"5",
";",
")",
"{",
"int",
"a",
"=",
"5",
",",
"b",
"=",
"2",
";",
"}"
] |
[
"two",
"statements",
"on",
"the",
"same",
"lne",
"inside",
"multiline",
"for",
"loop",
"block",
"are",
"illegal"
] | [
"for",
"(",
"int",
"n",
"=",
"0",
",",
"k",
"=",
"1",
";",
"n",
"<",
"5",
";",
"n",
"+",
"+",
",",
"k",
"-",
"-",
")",
"{",
"var",
"1",
"+",
"+",
";",
"var",
"2",
"+",
"+",
";",
"}"
] |
[
"multiple",
"statements",
"within",
"try",
"-",
"with",
"-",
"resource",
"on",
"a",
"separate",
"line",
"is",
"legal"
] | [
"try",
"(",
"auto",
"closeable",
"i",
"=",
"new",
"java",
"io",
"string",
"reader",
"(",
"\"",
"\"",
")",
";",
"auto",
"closeable",
"k",
"=",
"new",
"java",
"io",
"string",
"reader",
"(",
"\"",
"\"",
")",
";",
")",
"{",
"}",
"catch",
"(",
"exception",
"e",
"1",
")",
"{",
"}"
] |
[
"multiple",
"statements",
"within",
"try",
"-",
"with",
"-",
"resource",
"on",
"a",
"separate",
"line",
"is",
"legal",
"per",
"pr",
"comment",
":"
] | [
"try",
"(",
"auto",
"closeable",
"i",
"=",
"new",
"java",
"io",
"string",
"reader",
"(",
"\"",
"\"",
")",
";",
"auto",
"closeable",
"k",
"=",
"new",
"java",
"io",
"string",
"reader",
"(",
"\"",
"\"",
")",
";",
")",
"{",
"}",
"catch",
"(",
"exception",
"e",
"1",
")",
"{",
"}"
] |
[
"multiple",
"statements",
"within",
"try",
"-",
"with",
"-",
"resource",
"on",
"next",
"line",
"after",
"try",
"is",
"illegal"
] | [
"try",
"(",
"auto",
"closeable",
"i",
"=",
"new",
"java",
"io",
"string",
"reader",
"(",
"\"",
"\"",
")",
";",
"auto",
"closeable",
"k",
"=",
"new",
"java",
"io",
"string",
"reader",
"(",
"\"",
"\"",
")",
";",
")",
"{",
"}",
"catch",
"(",
"exception",
"e",
"1",
")",
"{",
"}"
] |
[
"multiple",
"statements",
"within",
"try",
"-",
"with",
"-",
"resource",
"on",
"a",
"same",
"line",
"as",
"try",
"is",
"illegal",
"pr",
"comment",
":"
] | [
"try",
"(",
"auto",
"closeable",
"i",
"=",
"new",
"string",
"reader",
"(",
"\"",
"\"",
")",
";",
"auto",
"closeable",
"k",
"=",
"new",
"string",
"reader",
"(",
"\"",
"\"",
")",
";",
")",
"{",
"}",
"catch",
"(",
"exception",
"e",
"1",
")",
"{",
"}"
] |
[
"write",
"a",
"value",
"to",
"excel",
"increasing",
"data",
"position",
"x",
"with",
"one",
"afterwards"
] | [
"return",
"write",
"field",
"(",
"v",
",",
"v",
"meta",
",",
"excel",
"field",
",",
"column",
",",
"false",
")",
";"
] |
[
"end",
"an",
"array",
"this",
"method",
"most",
"be",
"called",
"to",
"balance",
"calls",
"to",
"<",
"code",
">",
"array",
"<",
"/",
"code",
">"
] | [
"return",
"this",
"end",
"(",
"'",
"a",
"'",
",",
"'",
"]",
"'",
")",
";"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.