docstring_tokens list | code_tokens list |
|---|---|
[
"return",
"the",
"start",
"of",
"the",
"range",
"(",
"line",
"-",
"character",
"position",
")"
] | [
"return",
"this",
"from",
";"
] |
[
"return",
"the",
"end",
"of",
"the",
"range",
"(",
"line",
"-",
"character",
"position",
")"
] | [
"return",
"this",
"to",
";"
] |
[
"returns",
"the",
"new",
"content"
] | [
"return",
"this",
"new",
"text",
";"
] |
[
"sets",
"the",
"start",
"position",
"of",
"the",
"change"
] | [
"this",
"from",
"=",
"from",
";",
"return",
"this",
";"
] |
[
"sets",
"the",
"end",
"position",
"of",
"the",
"change"
] | [
"this",
"to",
"=",
"to",
";",
"return",
"this",
";"
] |
[
"sets",
"the",
"new",
"text",
"for",
"the",
"change"
] | [
"this",
"new",
"text",
"=",
"inserted",
";",
"return",
"this",
";"
] |
[
"creates",
"the",
"instance",
"of",
"{",
"@",
"link",
"text",
"change",
"}",
"using",
"the",
"values",
"that",
"where",
"provided"
] | [
"return",
"new",
"text",
"change",
"(",
"this",
"from",
",",
"this",
"to",
",",
"this",
"new",
"text",
")",
";"
] |
[
"runs",
"a",
"task",
"in",
"the",
"background",
"and",
"passes",
"the",
"result",
"of",
"the",
"computation",
"to",
"a",
"task",
"that",
"is",
"run",
"on",
"the",
"main",
"thread",
"will",
"only",
"invoke",
"the",
"{"
] | [
"if",
"(",
"!",
"is",
"valid",
"(",
"lifecycle",
")",
")",
"{",
"return",
";",
"}",
"async",
"task",
"thread",
"pool",
"executor",
"execute",
"(",
"(",
")",
"-",
">",
"{",
"final",
"e",
"result",
"=",
"background",
"task",
"run",
"(",
")",
";",
"... |
[
"<",
"p",
">",
"a",
"list",
"of",
"fragment",
"numbers",
"that",
"correspond",
"to",
"the",
"time",
"stamp",
"range",
"provided",
"<",
"/",
"p",
">"
] | [
"return",
"fragments",
";"
] |
[
"<",
"p",
">",
"a",
"list",
"of",
"fragment",
"numbers",
"that",
"correspond",
"to",
"the",
"time",
"stamp",
"range",
"provided",
"<",
"/",
"p",
">"
] | [
"if",
"(",
"fragments",
"=",
"=",
"null",
")",
"{",
"this",
"fragments",
"=",
"null",
";",
"return",
";",
"}",
"this",
"fragments",
"=",
"new",
"java",
"util",
"array",
"list",
"<",
"fragment",
">",
"(",
"fragments",
")",
";"
] |
[
"<",
"p",
">",
"a",
"list",
"of",
"fragment",
"numbers",
"that",
"correspond",
"to",
"the",
"time",
"stamp",
"range",
"provided",
"<",
"/",
"p",
">",
"<",
"p",
">",
"<",
"b",
">",
"note",
":",
"<",
"/",
"b",
">",
"this",
"method",
"appends",
"the... | [
"if",
"(",
"this",
"fragments",
"=",
"=",
"null",
")",
"{",
"set",
"fragments",
"(",
"new",
"java",
"util",
"array",
"list",
"<",
"fragment",
">",
"(",
"fragments",
"length",
")",
")",
";",
"}",
"for",
"(",
"fragment",
"ele",
":",
"fragments",
")",
... |
[
"<",
"p",
">",
"a",
"list",
"of",
"fragment",
"numbers",
"that",
"correspond",
"to",
"the",
"time",
"stamp",
"range",
"provided",
"<",
"/",
"p",
">"
] | [
"set",
"fragments",
"(",
"fragments",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"if",
"the",
"returned",
"list",
"is",
"truncated",
"the",
"operation",
"returns",
"this",
"token",
"to",
"use",
"to",
"retrieve",
"the",
"next",
"page",
"of",
"results",
"this",
"value",
"is",
"<",
"code",
">",
"null",
"<",
"/",
"code",... | [
"set",
"next",
"token",
"(",
"next",
"token",
")",
";",
"return",
"this",
";"
] |
[
"subclasses",
"must",
"define",
"the",
"schemes",
"domains",
"smileys",
"and",
"acronyms",
"that",
"are",
"necessary",
"for",
"parsing"
] | [
"protected",
"abstract",
"resources",
"get",
"resources",
"(",
")",
";"
] |
[
"returns",
"the",
"raw",
"text",
"being",
"parsed"
] | [
"return",
"text",
";"
] |
[
"return",
"the",
"number",
"of",
"parts"
] | [
"return",
"parts",
"size",
"(",
")",
";"
] |
[
"return",
"the",
"part",
"at",
"the",
"given",
"index"
] | [
"return",
"parts",
"get",
"(",
"index",
")",
";"
] |
[
"return",
"the",
"list",
"of",
"parts",
"from",
"the",
"parsed",
"text"
] | [
"return",
"parts",
";"
] |
[
"returns",
"the",
"last",
"part",
"in",
"the",
"list"
] | [
"return",
"parts",
"get",
"(",
"parts",
"size",
"(",
")",
"-",
"1",
")",
";"
] |
[
"looks",
"for",
"a",
"music",
"track",
"(",
"\\",
"u",
"2",
"6",
"6",
"b",
"is",
"first",
"character",
"everything",
"else",
"is",
"track",
"info",
")"
] | [
"if",
"(",
"parse",
"music",
"&",
"&",
"text",
"starts",
"with",
"(",
"music",
"note",
")",
")",
"{",
"add",
"token",
"(",
"new",
"music",
"track",
"(",
"text",
"substring",
"(",
"music",
"note",
"length",
"(",
")",
")",
")",
")",
";",
"next",
"c... |
[
"looks",
"for",
"smileys",
"(",
"e",
"g",
":",
")",
")",
"in",
"the",
"text",
"the",
"set",
"of",
"known",
"smileys",
"is",
"loaded",
"from",
"a",
"file",
"into",
"a",
"trie",
"at",
"server",
"start"
] | [
"if",
"(",
"!",
"parse",
"smilies",
")",
"{",
"return",
"false",
";",
"}",
"trie",
"node",
"match",
"=",
"longest",
"match",
"(",
"get",
"resources",
"(",
")",
"get",
"smileys",
"(",
")",
",",
"this",
",",
"next",
"char",
",",
"true",
")",
";",
"... |
[
"looks",
"for",
"acronyms",
"(",
"e",
"g",
"lol",
")",
"in",
"the",
"text"
] | [
"if",
"(",
"!",
"parse",
"acronyms",
")",
"{",
"return",
"false",
";",
"}",
"trie",
"node",
"match",
"=",
"longest",
"match",
"(",
"get",
"resources",
"(",
")",
"get",
"acronyms",
"(",
")",
",",
"this",
",",
"next",
"char",
")",
";",
"if",
"(",
"... |
[
"determines",
"if",
"this",
"is",
"an",
"allowable",
"domain",
"character"
] | [
"return",
"c",
"=",
"=",
"'",
"-",
"'",
"|",
"|",
"character",
"is",
"letter",
"(",
"c",
")",
"|",
"|",
"character",
"is",
"digit",
"(",
"c",
")",
";"
] |
[
"adds",
"the",
"appropriate",
"token",
"for",
"the",
"given",
"url",
"this",
"might",
"be",
"a",
"simple",
"link",
"or",
"it",
"might",
"be",
"a",
"recognized",
"media",
"type"
] | [
"add",
"token",
"(",
"token",
"for",
"url",
"(",
"url",
",",
"text",
")",
")",
";"
] |
[
"determines",
"whether",
"the",
"given",
"index",
"could",
"be",
"a",
"possible",
"word",
"break"
] | [
"return",
"get",
"char",
"class",
"(",
"index",
"-",
"1",
")",
"!",
"=",
"get",
"char",
"class",
"(",
"index",
")",
";"
] |
[
"determines",
"whether",
"the",
"given",
"index",
"could",
"be",
"a",
"possible",
"smiley",
"break"
] | [
"if",
"(",
"index",
">",
"0",
"&",
"&",
"index",
"<",
"text",
"length",
"(",
")",
")",
"{",
"if",
"(",
"is",
"smiley",
"break",
"(",
"text",
"char",
"at",
"(",
"index",
"-",
"1",
")",
",",
"text",
"char",
"at",
"(",
"index",
")",
")",
")",
... |
[
"verifies",
"that",
"the",
"character",
"before",
"the",
"given",
"index",
"is",
"end",
"of",
"line",
"whitespace",
"or",
"punctuation"
] | [
"switch",
"(",
"get",
"char",
"class",
"(",
"index",
"-",
"1",
")",
")",
"{",
"case",
"2",
":",
"case",
"3",
":",
"case",
"4",
":",
"return",
"false",
";",
"case",
"0",
":",
"case",
"1",
":",
"default",
":",
"return",
"true",
";",
"}"
] |
[
"determines",
"whether",
"the",
"given",
"character",
"is",
"punctuation"
] | [
"switch",
"(",
"ch",
")",
"{",
"case",
"'",
"'",
":",
"case",
"'",
",",
"'",
":",
"case",
"'",
"\"",
"'",
":",
"case",
"'",
":",
"'",
":",
"case",
"'",
";",
"'",
":",
"case",
"'",
"?",
"'",
":",
"case",
"'",
"!",
"'",
":",
"case",
"'",
... |
[
"determines",
"whether",
"the",
"given",
"character",
"is",
"the",
"beginning",
"or",
"end",
"of",
"a",
"section",
"with",
"special",
"formatting"
] | [
"switch",
"(",
"ch",
")",
"{",
"case",
"'",
"*",
"'",
":",
"case",
"'",
"'",
":",
"case",
"'",
"^",
"'",
":",
"return",
"true",
";",
"default",
":",
"return",
"false",
";",
"}"
] |
[
"get",
"the",
"relevant",
"information",
"about",
"a",
"token"
] | [
"list",
"<",
"string",
">",
"info",
"=",
"new",
"array",
"list",
"<",
"string",
">",
"(",
")",
";",
"info",
"add",
"(",
"get",
"type",
"(",
")",
"to",
"string",
"(",
")",
")",
";",
"return",
"info",
";"
] |
[
"the",
"token",
"can",
"change",
"the",
"caps",
"of",
"the",
"text",
"after",
"that",
"point"
] | [
"return",
"false",
";"
] |
[
"not",
"supported",
"info",
"should",
"not",
"be",
"needed",
"for",
"this",
"type"
] | [
"throw",
"new",
"unsupported",
"operation",
"exception",
"(",
")",
";"
] |
[
"returns",
"a",
"video",
"object",
"if",
"the",
"given",
"url",
"is",
"to",
"a",
"video"
] | [
"matcher",
"m",
"=",
"url",
"pattern",
"matcher",
"(",
"url",
")",
";",
"if",
"(",
"m",
"matches",
"(",
")",
")",
"{",
"return",
"new",
"video",
"(",
"m",
"group",
"(",
"1",
")",
",",
"text",
")",
";",
"}",
"else",
"{",
"return",
"null",
";",
... |
[
"(",
"for",
"testing",
"purposes",
":",
")",
"returns",
"a",
"video",
"url",
"with",
"the",
"given",
"parts"
] | [
"return",
"get",
"u",
"r",
"l",
"(",
"docid",
",",
"null",
")",
";"
] |
[
"returns",
"a",
"video",
"object",
"if",
"the",
"given",
"url",
"is",
"to",
"a",
"video"
] | [
"matcher",
"m",
"=",
"url",
"pattern",
"matcher",
"(",
"url",
")",
";",
"if",
"(",
"m",
"matches",
"(",
")",
")",
"{",
"return",
"new",
"you",
"tube",
"video",
"(",
"m",
"group",
"(",
"1",
")",
",",
"text",
")",
";",
"}",
"else",
"{",
"return",... |
[
"returns",
"a",
"photo",
"object",
"if",
"the",
"given",
"url",
"is",
"to",
"a",
"photo",
"or",
"album"
] | [
"matcher",
"m",
"=",
"url",
"pattern",
"matcher",
"(",
"url",
")",
";",
"if",
"(",
"m",
"matches",
"(",
")",
")",
"{",
"return",
"new",
"photo",
"(",
"m",
"group",
"(",
"1",
")",
",",
"m",
"group",
"(",
"2",
")",
",",
"m",
"group",
"(",
"3",
... |
[
"returns",
"a",
"flickr",
"photo",
"object",
"if",
"the",
"given",
"url",
"is",
"to",
"a",
"photo",
"or",
"flickr",
"user"
] | [
"matcher",
"m",
"=",
"grouping",
"pattern",
"matcher",
"(",
"url",
")",
";",
"if",
"(",
"m",
"matches",
"(",
")",
")",
"{",
"return",
"new",
"flickr",
"photo",
"(",
"m",
"group",
"(",
"1",
")",
",",
"null",
",",
"m",
"group",
"(",
"2",
")",
","... |
[
"returns",
"the",
"url",
"for",
"the",
"rss",
"description"
] | [
"return",
"null",
";"
] |
[
"adds",
"the",
"given",
"token",
"to",
"the",
"parsed",
"output"
] | [
"tokens",
"add",
"(",
"token",
")",
";"
] |
[
"returns",
"the",
"reverse",
"of",
"the",
"given",
"string"
] | [
"string",
"builder",
"buf",
"=",
"new",
"string",
"builder",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"str",
"length",
"(",
")",
"-",
"1",
";",
"i",
">",
"=",
"0",
";",
"-",
"-",
"i",
")",
"{",
"buf",
"append",
"(",
"str",
"char",
"at",
... |
[
"gets",
"the",
"raw",
"text",
"of",
"this",
"chunk"
] | [
"return",
"text",
";"
] |
[
"adds",
"the",
"given",
"string",
"into",
"the",
"trie"
] | [
"int",
"index",
"=",
"0",
";",
"while",
"(",
"index",
"<",
"str",
"length",
"(",
")",
")",
"{",
"root",
"=",
"root",
"get",
"or",
"create",
"child",
"(",
"str",
"char",
"at",
"(",
"index",
"+",
"+",
")",
")",
";",
"}",
"root",
"set",
"value",
... |
[
"determines",
"whether",
"the",
"given",
"string",
"is",
"in",
"the",
"given",
"trie"
] | [
"int",
"index",
"=",
"0",
";",
"while",
"(",
"index",
"<",
"str",
"length",
"(",
")",
")",
"{",
"root",
"=",
"root",
"get",
"child",
"(",
"str",
"char",
"at",
"(",
"index",
"+",
"+",
")",
")",
";",
"if",
"(",
"root",
"=",
"=",
"null",
")",
... |
[
"returns",
"the",
"longest",
"substring",
"of",
"the",
"given",
"string",
"starting",
"at",
"the",
"given",
"index",
"that",
"exists",
"in",
"the",
"trie"
] | [
"return",
"longest",
"match",
"(",
"root",
",",
"p",
",",
"start",
",",
"false",
")",
";"
] |
[
"returns",
"the",
"longest",
"substring",
"of",
"the",
"given",
"string",
"starting",
"at",
"the",
"given",
"index",
"that",
"exists",
"in",
"the",
"trie",
"with",
"a",
"special",
"tokenizing",
"case",
"for",
"smileys",
"if",
"specified"
] | [
"int",
"index",
"=",
"start",
";",
"trie",
"node",
"best",
"match",
"=",
"null",
";",
"while",
"(",
"index",
"<",
"p",
"get",
"raw",
"text",
"(",
")",
"length",
"(",
")",
")",
"{",
"root",
"=",
"root",
"get",
"child",
"(",
"p",
"get",
"raw",
"t... |
[
"convenience",
"method",
"for",
"getting",
"the",
"token",
"of",
"a",
"part",
"that",
"represents",
"a",
"media",
"token",
"parts",
"of",
"this",
"kind",
"will",
"always",
"only",
"have",
"a",
"single",
"token"
] | [
"if",
"(",
"is",
"media",
"(",
")",
")",
"{",
"return",
"tokens",
"get",
"(",
"0",
")",
";",
"}",
"return",
"null",
";"
] |
[
"returns",
"the",
"original",
"text",
"of",
"this",
"part"
] | [
"string",
"builder",
"buf",
"=",
"new",
"string",
"builder",
"(",
")",
";",
"if",
"(",
"me",
"text",
"!",
"=",
"null",
")",
"{",
"buf",
"append",
"(",
"me",
"text",
")",
";",
"}",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"tokens",
"si... |
[
"returns",
"the",
"tokens",
"in",
"this",
"part"
] | [
"return",
"tokens",
";"
] |
[
"get",
"the",
"type",
"of",
"this",
"animation",
"event"
] | [
"return",
"animation",
"type",
";"
] |
[
"initializes",
"an",
"{"
] | [
"if",
"(",
"android",
"debug",
"bridge",
"get",
"bridge",
"(",
")",
"=",
"=",
"null",
"|",
"|",
"!",
"is",
"adb",
"initialized",
"(",
"android",
"debug",
"bridge",
"get",
"bridge",
"(",
")",
")",
")",
"{",
"android",
"debug",
"bridge",
"init",
"if",
... |
[
"send",
"the",
"input",
"listener",
"a",
"special",
"mouse",
"-",
"motion",
"event",
"with",
"zero",
"deltas",
"in",
"order",
"to",
"initialize",
"the",
"listener",
"s",
"cursor",
"position"
] | [
"assert",
"listener",
"!",
"=",
"null",
";",
"int",
"x",
"delta",
"=",
"0",
";",
"int",
"y",
"delta",
"=",
"0",
";",
"int",
"wheel",
"delta",
"=",
"0",
";",
"mouse",
"motion",
"event",
"evt",
"=",
"new",
"mouse",
"motion",
"event",
"(",
"mouse",
... |
[
"simply",
"converts",
"the",
"glfw",
"button",
"code",
"to",
"a",
"jme",
"button",
"code",
"if",
"there",
"is",
"no",
"match",
"it",
"just",
"returns",
"the",
"glfw",
"button",
"code",
"bear",
"in",
"mind",
"glfw",
"supports",
"8",
"different",
"mouse",
... | [
"switch",
"(",
"glfw",
"button",
")",
"{",
"case",
"glfw",
"mouse",
"button",
"left",
":",
"return",
"mouse",
"input",
"button",
"left",
";",
"case",
"glfw",
"mouse",
"button",
"middle",
":",
"return",
"mouse",
"input",
"button",
"middle",
";",
"case",
"... |
[
"gets",
"the",
"decoded",
"positions",
"list",
"valid",
"after",
"calling",
"{",
"@",
"code",
"decode",
"}"
] | [
"return",
"positions",
";"
] |
[
"gets",
"the",
"decoded",
"locals",
"list",
"in",
"ascending",
"start",
"-",
"address",
"order",
"valid",
"after",
"calling",
"{",
"@",
"code",
"decode",
"}"
] | [
"return",
"locals",
";"
] |
[
"reads",
"a",
"string",
"index",
"string",
"indicies",
"are",
"offset",
"by",
"1",
"and",
"a",
"0",
"value",
"in",
"the",
"stream",
"(",
"-",
"1",
"as",
"returned",
"by",
"this",
"method",
")",
"means",
"null"
] | [
"int",
"offset",
"index",
"=",
"leb",
"1",
"2",
"8",
"read",
"unsigned",
"leb",
"1",
"2",
"8",
"(",
"bs",
")",
";",
"return",
"offset",
"index",
"-",
"1",
";"
] |
[
"gets",
"the",
"register",
"that",
"begins",
"the",
"method",
"s",
"parameter",
"range",
"(",
"including",
"the",
"this",
"parameter",
"for",
"non",
"-",
"static",
"methods",
")",
"the",
"range",
"continues",
"until",
"{",
"@",
"code",
"reg",
"size",
"}"
] | [
"return",
"reg",
"size",
"-",
"desc",
"get",
"parameter",
"types",
"(",
")",
"get",
"word",
"count",
"(",
")",
"-",
"(",
"is",
"static",
"?",
"0",
":",
"1",
")",
";"
] |
[
"called",
"to",
"initialize",
"new",
"emitted",
"particles"
] | [] |
[
"called",
"to",
"notify",
"which",
"particles",
"have",
"been",
"killed"
] | [] |
[
"ends",
"the",
"animation",
"this",
"causes",
"the",
"animation",
"to",
"assign",
"the",
"end",
"value",
"of",
"the",
"property",
"being",
"animated",
"then",
"calling",
"the",
"{",
"@",
"link",
"android",
"animation",
"animator",
"animator",
"listener",
"#",
... | [] |
[
"called",
"during",
"initialization",
"to",
"allocate",
"additional",
"particles",
"channels"
] | [] |
[
"<",
"p",
">",
"a",
"list",
"of",
"configuration",
"recorder",
"names",
"<",
"/",
"p",
">"
] | [
"if",
"(",
"configuration",
"recorder",
"names",
"=",
"=",
"null",
")",
"{",
"configuration",
"recorder",
"names",
"=",
"new",
"com",
"amazonaws",
"internal",
"sdk",
"internal",
"list",
"<",
"string",
">",
"(",
")",
";",
"}",
"return",
"configuration",
"re... |
[
"<",
"p",
">",
"a",
"list",
"of",
"configuration",
"recorder",
"names",
"<",
"/",
"p",
">"
] | [
"if",
"(",
"configuration",
"recorder",
"names",
"=",
"=",
"null",
")",
"{",
"this",
"configuration",
"recorder",
"names",
"=",
"null",
";",
"return",
";",
"}",
"this",
"configuration",
"recorder",
"names",
"=",
"new",
"com",
"amazonaws",
"internal",
"sdk",
... |
[
"<",
"p",
">",
"the",
"name",
"(",
"s",
")",
"of",
"the",
"configuration",
"recorder",
"if",
"the",
"name",
"is",
"not",
"specified",
"the",
"action",
"returns",
"the",
"current",
"status",
"of",
"all",
"the",
"configuration",
"recorders",
"associated",
"w... | [
"if",
"(",
"this",
"configuration",
"recorder",
"names",
"=",
"=",
"null",
")",
"{",
"set",
"configuration",
"recorder",
"names",
"(",
"new",
"com",
"amazonaws",
"internal",
"sdk",
"internal",
"list",
"<",
"string",
">",
"(",
"configuration",
"recorder",
"na... |
[
"<",
"p",
">",
"the",
"name",
"(",
"s",
")",
"of",
"the",
"configuration",
"recorder",
"if",
"the",
"name",
"is",
"not",
"specified",
"the",
"action",
"returns",
"the",
"current",
"status",
"of",
"all",
"the",
"configuration",
"recorders",
"associated",
"w... | [
"set",
"configuration",
"recorder",
"names",
"(",
"configuration",
"recorder",
"names",
")",
";",
"return",
"this",
";"
] |
[
"unsafe",
"version",
"of",
":",
"{",
"@",
"link",
"#",
"gl",
"draw",
"elements",
"instanced",
"a",
"r",
"b",
"draw",
"elements",
"instanced",
"a",
"r",
"b",
"}"
] | [
"public",
"static",
"native",
"void",
"ngl",
"draw",
"elements",
"instanced",
"a",
"r",
"b",
"(",
"int",
"mode",
",",
"int",
"count",
",",
"int",
"type",
",",
"long",
"indices",
",",
"int",
"primcount",
")",
";"
] |
[
"create",
"the",
"loading",
"view",
"default",
"is",
"{",
"@",
"code",
"find",
"view",
"by",
"id",
"(",
"r",
"id",
"loading",
"view",
")",
"}"
] | [
"return",
"view",
"find",
"view",
"by",
"id",
"(",
"r",
"id",
"loading",
"view",
")",
";"
] |
[
"create",
"the",
"content",
"view",
"default",
"is",
"{",
"@",
"code",
"find",
"view",
"by",
"id",
"(",
"r",
"id",
"content",
"view",
")",
"}"
] | [
"return",
"(",
"cv",
")",
"view",
"find",
"view",
"by",
"id",
"(",
"r",
"id",
"content",
"view",
")",
";"
] |
[
"create",
"the",
"error",
"view",
"default",
"is",
"{",
"@",
"code",
"find",
"view",
"by",
"id",
"(",
"r",
"id",
"error",
"view",
")",
"}"
] | [
"return",
"(",
"text",
"view",
")",
"view",
"find",
"view",
"by",
"id",
"(",
"r",
"id",
"error",
"view",
")",
";"
] |
[
"override",
"this",
"method",
"if",
"you",
"want",
"to",
"provide",
"your",
"own",
"animation",
"for",
"showing",
"the",
"loading",
"view"
] | [
"lce",
"animator",
"show",
"loading",
"(",
"loading",
"view",
",",
"content",
"view",
",",
"error",
"view",
")",
";"
] |
[
"called",
"to",
"animate",
"from",
"loading",
"view",
"to",
"content",
"view"
] | [
"lce",
"animator",
"show",
"content",
"(",
"loading",
"view",
",",
"content",
"view",
",",
"error",
"view",
")",
";"
] |
[
"get",
"the",
"error",
"message",
"for",
"a",
"certain",
"exception",
"that",
"will",
"be",
"shown",
"on",
"{"
] | [
"protected",
"abstract",
"string",
"get",
"error",
"message",
"(",
"throwable",
"e",
",",
"boolean",
"pull",
"to",
"refresh",
")",
";"
] |
[
"the",
"default",
"behaviour",
"is",
"to",
"display",
"a",
"toast",
"message",
"as",
"light",
"error",
"(",
"i",
"e",
"pull",
"-",
"to",
"-",
"refresh",
"error",
")",
"override",
"this",
"method",
"if",
"you",
"want",
"to",
"display",
"the",
"light",
"... | [
"if",
"(",
"get",
"activity",
"(",
")",
"!",
"=",
"null",
")",
"{",
"toast",
"make",
"text",
"(",
"get",
"activity",
"(",
")",
",",
"msg",
",",
"toast",
"length",
"short",
")",
"show",
"(",
")",
";",
"}"
] |
[
"called",
"if",
"the",
"error",
"view",
"has",
"been",
"clicked",
"to",
"disable",
"clicking",
"on",
"the",
"error",
"view",
"use",
"<",
"code",
">",
"error",
"view",
"set",
"clickable",
"(",
"false",
")",
"<",
"/",
"code",
">"
] | [
"load",
"data",
"(",
"false",
")",
";"
] |
[
"animates",
"the",
"error",
"view",
"in",
"(",
"instead",
"of",
"displaying",
"content",
"view",
"/",
"loading",
"view",
")"
] | [
"lce",
"animator",
"show",
"error",
"view",
"(",
"loading",
"view",
",",
"content",
"view",
",",
"error",
"view",
")",
";"
] |
[
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"setter",
"/",
"getter",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
"=",
... | [
"this",
"config",
"client",
"service",
"=",
"config",
"client",
"service",
";"
] |
[
"tears",
"down",
"mini",
"-",
"cluster"
] | [
"if",
"(",
"testing",
"util",
"!",
"=",
"null",
")",
"{",
"testing",
"util",
"shutdown",
"mini",
"cluster",
"(",
")",
";",
"}"
] |
[
"call",
"this",
"inside",
"your",
"authenticate",
"method"
] | [
"auth",
"outcome",
"outcome",
"=",
"authenticator",
"authenticate",
"(",
")",
";",
"if",
"(",
"outcome",
"=",
"=",
"auth",
"outcome",
"authenticated",
")",
"{",
"register",
"notifications",
"(",
"security",
"context",
")",
";",
"return",
"authentication",
"mec... |
[
"reads",
"in",
"a",
"sequence",
"of",
"bytes",
"from",
"standard",
"input",
"and",
"draws",
"them",
"to",
"standard",
"drawing",
"output",
"as",
"a",
"width",
"-",
"by",
"-",
"height",
"picture",
"using",
"black",
"for",
"1",
"and",
"white",
"for",
"0",
... | [
"int",
"width",
"=",
"integer",
"parse",
"int",
"(",
"args",
"[",
"0",
"]",
")",
";",
"int",
"height",
"=",
"integer",
"parse",
"int",
"(",
"args",
"[",
"1",
"]",
")",
";",
"picture",
"picture",
"=",
"new",
"picture",
"(",
"width",
",",
"height",
... |
[
"increment",
"getter"
] | [
"return",
"increment",
";"
] |
[
"construct",
"a",
"synchronous",
"implementation",
"of",
"a",
"w",
"s",
"code",
"build",
"using",
"the",
"current",
"builder",
"configuration"
] | [
"return",
"new",
"a",
"w",
"s",
"code",
"build",
"client",
"(",
"params",
")",
";"
] |
[
"return",
"the",
"{"
] | [
"return",
"launcher",
";"
] |
[
"returns",
"the",
"applicable",
"nested",
"computer",
"launcher",
"types",
"the",
"default",
"implementation",
"avoids",
"all",
"delegating",
"descriptors",
"as",
"that",
"creates",
"infinite",
"recursion"
] | [
"list",
"<",
"descriptor",
"<",
"computer",
"launcher",
">",
">",
"r",
"=",
"new",
"array",
"list",
"<",
"descriptor",
"<",
"computer",
"launcher",
">",
">",
"(",
")",
";",
"for",
"(",
"descriptor",
"<",
"computer",
"launcher",
">",
"d",
":",
"it",
"... |
[
"returns",
"true",
"if",
"field",
"requirements",
"is",
"set",
"(",
"has",
"been",
"assigned",
"a",
"value",
")",
"and",
"false",
"otherwise"
] | [
"return",
"this",
"requirements",
"!",
"=",
"null",
";"
] |
[
"returns",
"true",
"if",
"field",
"corresponding",
"to",
"field",
"i",
"d",
"is",
"set",
"(",
"has",
"been",
"assigned",
"a",
"value",
")",
"and",
"false",
"otherwise"
] | [
"if",
"(",
"field",
"=",
"=",
"null",
")",
"{",
"throw",
"new",
"java",
"lang",
"illegal",
"argument",
"exception",
"(",
")",
";",
"}",
"switch",
"(",
"field",
")",
"{",
"case",
"requirements",
":",
"return",
"is",
"set",
"requirements",
"(",
")",
";... |
[
"sets",
"whether",
"or",
"not",
"to",
"validate",
"surrounding",
"whitespaces",
"at",
"comments"
] | [
"this",
"validate",
"comments",
"=",
"validate",
"comments",
";"
] |
[
"issue",
":",
"https",
":",
"/",
"/",
"github",
"com",
"/",
"sevntu",
"-",
"checkstyle",
"/",
"sevntu",
"checkstyle",
"/",
"issues",
"/",
"166"
] | [
"return",
"validate",
"comments",
";"
] |
[
"checks",
"if",
"characters",
"in",
"{",
"@",
"code",
"line",
"}",
"at",
"and",
"around",
"{",
"@",
"code",
"column",
"no",
"}",
"has",
"the",
"correct",
"number",
"of",
"spaces",
"to",
"return",
"{",
"@",
"code",
"true",
"}",
"the",
"following",
"co... | [
"return",
"is",
"single",
"space",
"(",
"line",
",",
"column",
"no",
")",
"|",
"|",
"!",
"is",
"whitespace",
"(",
"line",
",",
"column",
"no",
")",
"|",
"|",
"is",
"first",
"in",
"line",
"(",
"line",
",",
"column",
"no",
")",
"|",
"|",
"!",
"va... |
[
"checks",
"if",
"the",
"{",
"@",
"code",
"line",
"}",
"at",
"{",
"@",
"code",
"column",
"no",
"}",
"is",
"a",
"single",
"space",
"and",
"not",
"preceded",
"by",
"another",
"space"
] | [
"return",
"!",
"is",
"preceded",
"by",
"multiple",
"whitespaces",
"(",
"line",
",",
"column",
"no",
")",
"&",
"&",
"is",
"space",
"(",
"line",
",",
"column",
"no",
")",
";"
] |
[
"checks",
"if",
"the",
"{",
"@",
"code",
"line",
"}",
"at",
"{",
"@",
"code",
"column",
"no",
"}",
"is",
"a",
"space"
] | [
"return",
"line",
"char",
"at",
"(",
"column",
"no",
")",
"=",
"=",
"'",
"'",
";"
] |
[
"checks",
"if",
"the",
"{",
"@",
"code",
"line",
"}",
"at",
"{",
"@",
"code",
"column",
"no",
"}",
"is",
"preceded",
"by",
"at",
"least",
"2",
"whitespaces"
] | [
"return",
"character",
"is",
"whitespace",
"(",
"line",
"char",
"at",
"(",
"column",
"no",
")",
")",
"&",
"&",
"character",
"is",
"whitespace",
"(",
"line",
"char",
"at",
"(",
"column",
"no",
"-",
"1",
")",
")",
";"
] |
[
"checks",
"if",
"the",
"{",
"@",
"code",
"line",
"}",
"at",
"{",
"@",
"code",
"column",
"no",
"}",
"is",
"a",
"whitespace",
"character"
] | [
"return",
"character",
"is",
"whitespace",
"(",
"line",
"char",
"at",
"(",
"column",
"no",
")",
")",
";"
] |
[
"checks",
"if",
"the",
"{",
"@",
"code",
"line",
"}",
"up",
"to",
"and",
"including",
"{",
"@",
"code",
"column",
"no",
"}",
"is",
"all",
"non",
"-",
"whitespace",
"text",
"encountered"
] | [
"return",
"common",
"util",
"is",
"blank",
"(",
"line",
"substring",
"(",
"0",
",",
"column",
"no",
")",
")",
";"
] |
[
"reflection",
"helper",
"which",
"returns",
"the",
"actual",
"class",
"for",
"a",
"method",
"s",
"parameter"
] | [
"return",
"method",
"get",
"return",
"type",
"(",
")",
";"
] |
[
"creates",
"a",
"new",
"empty",
"{",
"@",
"code",
"array",
"list",
"multimap",
"}",
"with",
"the",
"default",
"initial",
"capacities"
] | [
"return",
"new",
"array",
"list",
"multimap",
"<",
">",
"(",
")",
";"
] |
[
"constructs",
"an",
"empty",
"{",
"@",
"code",
"array",
"list",
"multimap",
"}",
"with",
"enough",
"capacity",
"to",
"hold",
"the",
"specified",
"numbers",
"of",
"keys",
"and",
"values",
"without",
"resizing"
] | [
"return",
"new",
"array",
"list",
"multimap",
"<",
">",
"(",
"expected",
"keys",
",",
"expected",
"values",
"per",
"key",
")",
";"
] |
[
"constructs",
"an",
"{",
"@",
"code",
"array",
"list",
"multimap",
"}",
"with",
"the",
"same",
"mappings",
"as",
"the",
"specified",
"multimap"
] | [
"return",
"new",
"array",
"list",
"multimap",
"<",
">",
"(",
"multimap",
")",
";"
] |
[
"creates",
"a",
"new",
"empty",
"{"
] | [
"return",
"new",
"array",
"list",
"<",
"v",
">",
"(",
"expected",
"values",
"per",
"key",
")",
";"
] |
[
"reduces",
"the",
"memory",
"used",
"by",
"this",
"{",
"@",
"code",
"array",
"list",
"multimap",
"}",
"if",
"feasible"
] | [
"for",
"(",
"collection",
"<",
"v",
">",
"collection",
":",
"backing",
"map",
"(",
")",
"values",
"(",
")",
")",
"{",
"array",
"list",
"<",
"v",
">",
"array",
"list",
"=",
"(",
"array",
"list",
"<",
"v",
">",
")",
"collection",
";",
"array",
"lis... |
[
"creates",
"a",
"{",
"@",
"link",
"config",
"value",
"}",
"from",
"a",
"plain",
"java",
"boxed",
"value",
"which",
"may",
"be",
"a",
"<",
"code",
">",
"boolean",
"<",
"/",
"code",
">",
"<",
"code",
">",
"number",
"<",
"/",
"code",
">",
"<",
"code... | [
"return",
"config",
"impl",
"from",
"any",
"ref",
"(",
"object",
",",
"origin",
"description",
")",
";"
] |
[
"see",
"the",
"{",
"@",
"link",
"#",
"from",
"any",
"ref",
"(",
"object",
"string",
")",
"}",
"documentation",
"for",
"details",
"this",
"is",
"a",
"typesafe",
"wrapper",
"that",
"only",
"works",
"on",
"{",
"@",
"link",
"java",
"util",
"map",
"}",
"a... | [
"return",
"(",
"config",
"object",
")",
"from",
"any",
"ref",
"(",
"values",
",",
"origin",
"description",
")",
";"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.