tokens list | ner_tags list |
|---|---|
[
"You",
"are",
"saying"
] | [
"O",
"O",
"O"
] |
[
"it",
"should",
"be"
] | [
"O",
"O",
"O"
] |
[
"Using",
"Spark",
"1.5.1",
","
] | [
"O",
"B-Library",
"B-Version",
"O"
] |
[
"I",
"'ve",
"been",
"trying",
"to",
"forward",
"fill",
"null",
"values",
"with",
"the",
"last",
"known",
"observation",
"for",
"one",
"column",
"of",
"my",
"DataFrame",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Value",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Data_Structure",
"O",
"O",
"B-Class",
"O"
] |
[
"It",
"is",
"possible",
"to",
"start",
"with",
"a",
"null",
"value",
"and",
"for",
"this",
"case",
"I",
"would",
"to",
"backward",
"fill",
"this",
"null",
"value",
"with",
"the",
"first",
"knwn",
"observation",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Value",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Value",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"However",
",",
"If",
"that",
"too",
"complicates",
"the",
"code",
",",
"this",
"point",
"can",
"be",
"skipped",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"In",
"this",
"post",
",",
"a",
"solution",
"in",
"Scala",
"was",
"provided",
"for",
"a",
"very",
"similar",
"problem",
"by",
"zero323",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Language",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-User_Name",
"O"
] |
[
"But",
",",
"I",
"do",
"n't",
"know",
"Scala",
"and",
"I",
"do",
"n't",
"succeed",
"to",
"''",
"translate''",
"it",
"in",
"Pyspark",
"API",
"code",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-Language",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Library",
"I-Library",
"O",
"O"
] |
[
"It",
"'s",
"possible",
"to",
"do",
"it",
"with",
"Pyspark",
"?"
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Library",
"O"
] |
[
"Thanks",
"for",
"your",
"help",
"."
] | [
"O",
"O",
"O",
"O",
"O"
] |
[
"Below",
",",
"a",
"simple",
"example",
"sample",
"input",
":"
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"And",
"the",
"expected",
"output",
":"
] | [
"O",
"O",
"O",
"O",
"O"
] |
[
"The",
"partitioned",
"example",
"code",
"from",
"Spark",
"/",
"Scala",
":",
"forward",
"fill",
"with",
"last",
"observation",
"in",
"pyspark",
"is",
"shown",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"B-Library",
"O",
"B-Language",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Library",
"O",
"O",
"O"
] |
[
"This",
"only",
"works",
"for",
"data",
"that",
"can",
"be",
"partitioned",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"Load",
"the",
"data"
] | [
"O",
"O",
"O"
] |
[
"The",
"DataFrame",
"is"
] | [
"O",
"B-Class",
"O"
] |
[
"Column",
"used",
"to",
"sort",
"the",
"partitions"
] | [
"B-Data_Structure",
"O",
"O",
"O",
"O",
"O"
] |
[
"The",
"fill",
"function",
"."
] | [
"O",
"B-Function",
"O",
"O"
] |
[
"Can",
"be",
"used",
"to",
"fill",
"in",
"multiple",
"columns",
"if",
"necessary",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Data_Structure",
"O",
"O",
"O"
] |
[
"Convert",
"to",
"rdd",
",",
"partition",
",",
"sort",
"and",
"fill",
"the",
"missing",
"values"
] | [
"O",
"O",
"B-Data_Structure",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"Convert",
"back",
"to",
"DataFrame"
] | [
"O",
"O",
"O",
"B-Class"
] |
[
"The",
"output",
"is"
] | [
"O",
"O",
"O"
] |
[
"Cloudera",
"has",
"released",
"a",
"library",
"called",
"spark-ts",
"that",
"offers",
"a",
"suite",
"of",
"useful",
"methods",
"for",
"processing",
"time",
"series",
"and",
"sequential",
"data",
"in",
"Spark",
"."
] | [
"B-Website",
"O",
"O",
"O",
"O",
"O",
"B-Library",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Library",
"O"
] |
[
"This",
"library",
"supports",
"a",
"number",
"of",
"time-windowed",
"methods",
"for",
"imputing",
"data",
"points",
"based",
"on",
"other",
"data",
"in",
"the",
"sequence",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"http://blog.cloudera.com/blog/2015/12/spark-ts-a-new-library-for-analyzing-time-series-data-with-apache-spark/"
] | [
"O"
] |
[
"inside",
"response",
"i",
"have",
"bellow",
"html",
"code",
"with",
"simple",
"JavaScript",
"function"
] | [
"O",
"O",
"O",
"O",
"O",
"B-Language",
"O",
"O",
"O",
"B-Language",
"O"
] |
[
"here",
",",
"this",
"popup()function",
"is",
"not",
"working",
"please",
"help",
"me",
"."
] | [
"O",
"O",
"O",
"B-Function",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"The",
"problem",
"is",
"you",
"expect",
"that",
"Javascript",
"contained",
"within",
"an",
"ajax",
"response",
"is",
"executed",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-Language",
"O",
"O",
"O",
"B-Function",
"O",
"O",
"O",
"O"
] |
[
"This",
"is",
"n't",
"the",
"case",
",",
"the",
"browser",
"does",
"n't",
"execute",
"any",
"Javascript",
"contained",
"within",
"ajax",
"responses",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Application",
"O",
"O",
"O",
"O",
"B-Language",
"O",
"O",
"B-Function",
"O",
"O"
] |
[
"It",
"might",
"be",
"possible",
"to",
"try",
"to",
"parse",
"out",
"the",
"Javascript",
"and",
"execute",
"it",
"in",
"some",
"way",
",",
"such",
"as",
"eval()",
"but",
"that",
"would",
"be",
"nasty",
"and",
"not",
"a",
"good",
"idea",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Language",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Function",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"Using",
"eval()",
"you",
"also",
"have",
"to",
"consider",
"that",
"it",
"will",
"only",
"accept",
"valid",
"Javascript",
",",
"so",
"you",
"could",
"n't",
"just",
"pass",
"your",
"response",
"to",
"it",
"because",
"that",
"includes",
"some",
"HTML",
"."
... | [
"O",
"B-Function",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Language",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Language",
"O"
] |
[
"A",
"possible",
"solution",
"could",
"be",
"to",
"have",
"the",
"popup()",
"function",
"already",
"defined",
"in",
"the",
"page",
"or",
"an",
"external",
"Javascript",
"file",
",",
"and",
"to",
"assign",
"the",
"click",
"handler",
"after",
"you",
"add",
"... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Function",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-File_Type",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Language",
"O",
"O",
"B-Library",
"O"
] |
[
"For",
"example",
":"
] | [
"O",
"O",
"O"
] |
[
"Make",
"that",
"string",
"hidden",
"in",
"your",
"page",
"and",
"just",
"display",
"it",
"on",
"success",
"."
] | [
"O",
"O",
"B-Data_Type",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"like",
":"
] | [
"O",
"O"
] |
[
"Better",
"way",
"to",
"try",
"with",
"DOM",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"B-Library",
"O"
] |
[
"Let",
"me",
"know",
"if",
"above",
"code",
"is",
"work",
"for",
"you",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"I",
"try",
"to",
"traverse",
"some",
"excel2007",
"data",
"by",
"using",
"poi.jar",
"based",
"on",
"jdk1.6.But",
"when",
"I",
"seem",
"to",
"find",
"a",
"strange",
"phenomenon",
"that",
"when",
"I",
"traverse",
"the",
"row",
"(",
"stored",
"by",
"HashMap(... | [
"O",
"O",
"O",
"O",
"O",
"B-Application",
"O",
"O",
"O",
"B-File_Name",
"O",
"O",
"B-Application",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Class",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Class",... |
[
"And",
"starting",
"the",
"next",
"iterator",
",",
"I",
"first",
"clear",
"the",
"row",
"data",
"by",
"invoking",
"Map.clear()",
",",
"but",
"when",
"again",
"invoking",
"the",
"ArrayList.add()",
"method",
",",
"this",
"row",
"data",
"is",
"overridden",
"the... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Function",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Function",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"Next",
"Snippets",
"show",
"the",
"debug",
"log",
"for",
"rowForSheet(List)"
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Variable"
] |
[
"the",
"later",
"data",
"override",
"the",
"older",
"data"
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"Did",
"you",
"?"
] | [
"O",
"O",
"O"
] |
[
"First",
"off",
",",
"I",
"would",
"put",
"the",
"creation",
"of",
"your",
"map",
"inside",
"of",
"the",
"loops",
"so",
"you",
"add",
"a",
"new",
"map",
"each",
"time",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Class",
"O",
"O",
"O",
"B-Code_Block",
"O",
"O",
"O",
"O",
"O",
"B-Class",
"O",
"O",
"O"
] |
[
"Now",
"each",
"item",
"in",
"the",
"list",
"will",
"be",
"a",
"different",
"map",
",",
"with",
"the",
"new",
"data",
"you",
"'ve",
"added",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"B-Data_Structure",
"O",
"O",
"O",
"O",
"B-Class",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"I",
"'m",
"using",
"Amazon",
"Redshift",
"to",
"do",
"data",
"analysis",
",",
"and",
"sometimes",
"I",
"use",
"'",
"unload",
"'",
"to",
"unload",
"a",
"RedShift",
"table",
"into",
"S3",
"and",
"then",
"copy",
"the",
"data",
"into",
"another",
"Redshift"... | [
"O",
"O",
"O",
"B-Application",
"I-Application",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Function",
"O",
"O",
"O",
"O",
"B-Data_Structure",
"I-Data_Structure",
"O",
"B-File_Type",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Application",
"O",
... |
[
"Since",
"I",
"only",
"need",
"to",
"specify",
"a",
"prefix",
"of",
"the",
"data",
"file",
"when",
"doing",
"'",
"unload",
"'",
",",
"and",
"it",
"will",
"create",
"many",
"files",
"in",
"S3",
"bucket",
",",
"I",
"need",
"a",
"graceful",
"way",
"to",... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Function",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-File_Type",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"I",
"do",
"n't",
"want",
"to",
"enumerate",
"each",
"object",
"in",
"the",
"bucket",
"and",
"check",
"if",
"the",
"key",
"matches",
"the",
"prefix",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"It",
"'s",
"very",
"easy",
"with",
"s3cmd",
"from",
"s3tools",
"(",
"get",
"your",
"own",
"copy",
"from",
"http://s3tools.org/s3cmd",
")"
] | [
"O",
"O",
"O",
"O",
"O",
"B-Application",
"O",
"B-Website",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"First",
"configure",
"this",
"program",
"with",
"a",
"command",
":"
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"Then",
"the",
"rest",
"is",
"just",
"one",
"command",
":"
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"I",
"have",
"two",
"web",
"roles",
"and",
"one",
"of",
"them",
"runs",
"the",
"service",
"layer",
"consisting",
"of",
"3",
"WCF",
"services",
"connected",
"with",
"net.tcp",
",",
"each",
"deployed",
"as",
"a",
"website",
"on",
"port",
"808",
",",
"810",... | [
"O",
"O",
"O",
"B-HTML_XML_Tag",
"I-HTML_XML_Tag",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Library",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Device",
"B-Value",
"O",
"B-Value",
"O",
"O",
"B-Value",
"O"
] |
[
"Now",
"I",
"want",
"the",
"service",
"layer",
"to",
"only",
"be",
"open",
"to",
"my",
"other",
"web",
"role",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-HTML_XML_Tag",
"I-HTML_XML_Tag",
"O"
] |
[
"So",
"I",
"tried",
"to",
"make",
"one",
"of",
"the",
"services",
"endpoint",
"internal",
"and",
"to",
"give",
"access",
"for",
"my",
"front",
"web",
"role",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-HTML_XML_Tag",
"I-HTML_XML_Tag",
"O"
] |
[
"Like",
"this",
":"
] | [
"O",
"O",
"O"
] |
[
"But",
"when",
"the",
"UserService",
"is",
"attempted",
"it",
"seems",
"to",
"time",
"out",
"."
] | [
"O",
"O",
"O",
"B-File_Name",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"I",
"have",
"also",
"tried",
"to",
"set",
"<AllowAllTraffic/>",
"instead",
"of",
"<WhenSource",
"...>",
"but",
"that",
"has",
"no",
"effect",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-HTML_XML_Tag",
"O",
"O",
"B-HTML_XML_Tag",
"I-HTML_XML_Tag",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"Second",
"attempt",
":"
] | [
"O",
"O",
"O"
] |
[
"After",
"some",
"feedback",
"I",
"have",
"tried",
"some",
"variations",
"to",
"set",
"a",
"FixedPort",
"and",
"PortRange",
"to",
"811",
"and",
"the",
"role",
"listening",
"to",
"port",
"=\"*\"",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-HTML_XML_Tag",
"O",
"B-HTML_XML_Tag",
"O",
"B-Value",
"O",
"O",
"O",
"O",
"O",
"B-Code_Block",
"I-Code_Block",
"O"
] |
[
"I",
"have",
"kept",
"the",
"NetworkTrafficRules",
"as",
"in",
"previous",
"attempts",
"."
] | [
"O",
"O",
"O",
"O",
"B-HTML_XML_Tag",
"O",
"O",
"O",
"O",
"O"
] |
[
"I",
"also",
"added",
"the",
"following",
"code",
"to",
"make",
"sure",
"there",
"is",
"a",
"listener",
"for",
"a",
"dynamic",
"port",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Device",
"O"
] |
[
"In",
"my",
"WebRole.cs",
"file",
":"
] | [
"O",
"O",
"B-File_Name",
"O",
"O"
] |
[
"Another",
"note",
"is",
"that",
"the",
"calling",
"service",
"uses",
"port",
"811",
"to",
"find",
"the",
"right",
"service",
"since",
"the",
"service",
"runs",
"three",
"different",
"WCF",
"project",
"sites",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Device",
"B-Value",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Library",
"O",
"O",
"O"
] |
[
"And",
"the",
"service",
"I",
"'m",
"calling",
"also",
"uses",
"a",
"specified",
"port",
"number",
"which",
"I",
"think",
"can",
"be",
"a",
"problem",
"if",
"it",
"all",
"of",
"a",
"sudden",
"should",
"be",
"dynamic",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Device",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"The",
"calling",
"service",
"looks",
"like",
"this",
":"
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"And",
"on",
"the",
"receiving(Internal)",
"WebRole",
"sites",
"I",
"have",
"the",
"following",
"types",
"of",
"configurations",
"."
] | [
"O",
"O",
"O",
"O",
"B-HTML_XML_Tag",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"And",
"the",
"other",
"WCF",
"site",
"on",
"port",
"811",
":"
] | [
"O",
"O",
"O",
"B-Library",
"O",
"O",
"B-Device",
"B-Value",
"O"
] |
[
"You",
"could",
"use",
"the",
"internal",
"endpoint",
"IP-addresses",
"and",
"instead",
"of",
"the",
"external",
"address",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"Here",
"is",
"an",
"example",
":"
] | [
"O",
"O",
"O",
"O",
"O"
] |
[
"works",
"if",
"I",
"give",
"as",
"input",
"->",
"c:\\data"
] | [
"O",
"O",
"O",
"O",
"O",
"B-Code_Block",
"I-Code_Block",
"I-Code_Block"
] |
[
"but",
"not",
"if",
":"
] | [
"O",
"O",
"O",
"O"
] |
[
"Can",
"someone",
"explain",
"me",
"the",
"reason",
"for",
"this",
"behaviour",
"?"
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"Thank",
"you",
"."
] | [
"O",
"O",
"O"
] |
[
"Because",
"in",
"literal",
"strings",
",",
"\\",
"is",
"an",
"escape",
"character",
"-",
"allow",
"putting",
"quotes/tabs/newlines",
"etc",
".",
"in",
"literal",
"strings",
"."
] | [
"O",
"O",
"O",
"B-Data_Type",
"O",
"B-Value",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Value",
"O",
"O",
"O",
"O",
"B-Data_Type",
"O"
] |
[
"You",
"should",
"use",
"'",
"c:\\\\data",
"'",
"or",
"'",
"c:/data",
"'",
"(",
"forward",
"slash",
"works",
"fine",
"in",
"windows",
")"
] | [
"O",
"O",
"O",
"B-Value",
"I-Value",
"B-Value",
"O",
"B-Value",
"I-Value",
"I-Value",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Operating_System",
"O"
] |
[
"Another",
"way",
"is",
"to",
"use",
"\"",
"raw",
"\"",
"strings",
"r'c:\\data'",
"but",
"be",
"careful",
",",
"because",
"you",
"ca",
"n't",
"use",
"any",
"escaped",
"characters",
"anymore"
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Data_Type",
"B-Value",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"I",
"am",
"just",
"trying",
"to",
"make",
"multiplication"
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"when",
"I",
"type",
"something",
"like",
"that",
"(",
"3*",
"5)",
"give",
"me",
"that",
"error",
":"
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-Value",
"I-Value",
"I-Value",
"O",
"O",
"O",
"O",
"O"
] |
[
"and",
"when",
"I",
"am",
"using",
"backslah",
"to",
"escape",
":"
] | [
"O",
"O",
"O",
"O",
"O",
"B-Value",
"O",
"O",
"O"
] |
[
"I",
"see",
"unclosed",
"character",
"literal",
"and",
"illegal",
"start",
"of",
"expression",
"errors"
] | [
"O",
"O",
"B-Error_Name",
"I-Error_Name",
"I-Error_Name",
"O",
"B-Error_Name",
"I-Error_Name",
"I-Error_Name",
"I-Error_Name",
"O"
] |
[
"what",
"should",
"I",
"do",
"?"
] | [
"O",
"O",
"O",
"O",
"O"
] |
[
"Refer",
"to",
"the",
"Javadoc",
"of",
"String.replaceFirst",
":"
] | [
"O",
"O",
"O",
"O",
"O",
"B-Function",
"O"
] |
[
"The",
"first",
"parameter",
"is",
"a",
"regular",
"expression",
"(",
"meaning",
"characters",
"like",
"*",
"have",
"special",
"meaning",
")",
";"
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Value",
"O",
"O",
"O",
"O",
"O"
] |
[
"The",
"second",
"parameter",
"is",
"a",
"regex",
"replacement",
"(",
"meaning",
"certain",
"character",
"sequences",
"have",
"special",
"meaning",
",",
"e.g",
".",
"\\",
"and",
"$",
")",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Value",
"O",
"B-Value",
"O",
"O"
] |
[
"If",
"you",
"want",
"to",
"pass",
"in",
"strings",
"from",
"an",
"untrusted",
"source",
"(",
"like",
"user",
"input",
")",
",",
"you",
"need",
"to",
"quote",
"them",
"appropriately",
":"
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-Data_Type",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"However",
",",
"String.replaceFirst",
"is",
"not",
"the",
"right",
"tool",
"for",
"this",
"job",
"."
] | [
"O",
"O",
"B-Function",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"It",
"wo",
"n't",
"work",
"correctly",
"if",
"there",
"is",
"a",
"match",
"for",
"the",
"search",
"string",
"before",
"the",
"one",
"you",
"are",
"really",
"looking",
"for",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Data_Type",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"The",
"most",
"straightforward",
"modification",
"to",
"your",
"code",
"would",
"be",
"to",
"use",
"String.substring",
"-",
"you",
"know",
"exactly",
"where",
"the",
"thing",
"you",
"want",
"to",
"replace",
"is",
",",
"so",
"make",
"use",
"of",
"that",
"i... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Function",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"(",
"This",
"would",
"replace",
"the",
"last",
"7",
"lines",
"in",
"the",
"loop",
")"
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"You",
"can",
"do",
"this",
"better",
"again",
"by",
"using",
"a",
"StringBuilder",
",",
"to",
"avoid",
"creating",
"unnecessary",
"strings",
"in",
"the",
"loop",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Class",
"O",
"O",
"O",
"O",
"O",
"B-Data_Type",
"O",
"O",
"O",
"O"
] |
[
"However",
",",
"this",
"still",
"would",
"n't",
"work",
"in",
"the",
"case",
"of",
"multi-digit",
"or",
"negative",
"numbers",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"I",
"have",
"a",
"question",
"regarding",
"Java",
"code",
"implementation",
"for",
"the",
"following",
"scenario",
","
] | [
"O",
"O",
"O",
"O",
"O",
"B-Language",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"Get",
"User",
"Input",
"[",
"String",
"from",
"Scanner",
"]"
] | [
"O",
"O",
"O",
"O",
"B-Data_Type",
"O",
"B-Class",
"O"
] |
[
"Convert",
"the",
"String",
"input",
"to",
"1D",
"Array"
] | [
"O",
"O",
"B-Data_Type",
"O",
"O",
"O",
"B-Data_Structure"
] |
[
"From",
"the",
"1D",
"char",
"array",
",",
"populate",
"it",
"accordingly",
"to",
"2D",
"char",
"array",
"based",
"on",
"positions",
",",
"[",
"0",
"]",
"[",
"0",
"]",
",",
"[",
"0",
"]",
"[",
"1",
"]",
"etc"
] | [
"O",
"O",
"O",
"B-Data_Type",
"B-Data_Structure",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Data_Type",
"B-Data_Structure",
"O",
"O",
"O",
"O",
"B-Value",
"I-Value",
"I-Value",
"B-Value",
"I-Value",
"I-Value",
"O",
"B-Value",
"I-Value",
"I-Value",
"B-Value",
"I-Value",... |
[
"What",
"I",
"have",
"done",
"is",
"as",
"follows",
","
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"charArray",
"has",
"been",
"created",
"as",
"a",
"6",
"by",
"6",
"array.char[][]",
"charArray",
"=",
"new",
"char[6][6]",
";"
] | [
"B-Variable",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Data_Structure",
"B-Code_Block",
"I-Code_Block",
"I-Code_Block",
"I-Code_Block",
"I-Code_Block"
] |
[
"It",
"seems",
"from",
"the",
"printing",
"of",
"messages",
",",
"I",
"could",
"get",
"the",
"text",
"'s",
"i",
"position",
"and",
"to",
"it",
"'s",
"corresponding",
"2D",
"array",
"positions",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Variable",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Data_Structure",
"O",
"O"
] |
[
"But",
"I",
"could",
"not",
"populate",
"the",
"values",
"by",
"assigning",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"I",
"appreciate",
"any",
"tips",
"and",
"guidance",
"for",
"the",
"above",
"case",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"Thank",
"you",
"very",
"much",
"."
] | [
"O",
"O",
"O",
"O",
"O"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.