tokens
sequence | ner_tags
sequence |
---|---|
[
"I",
"'m",
"trying",
"to",
"use",
"a",
"sqlite3",
"in",
"Intel-PIN",
"but",
"I",
"failed",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-Library",
"O",
"B-Application",
"O",
"O",
"O",
"O"
] |
[
"So",
"I",
"searched",
"a",
"lot",
"and",
"found",
"a",
"way",
"to",
"use",
"a",
"PinCRT",
"to",
"create",
"a",
"socket",
"and",
"send",
"a",
"data",
"to",
"other",
"process",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Application",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"But",
"in",
"my",
"case",
",",
"I",
"seems",
"does",
"n't",
"work",
"as",
"well",
"I",
"guess",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"I",
"have",
"these",
"codes",
"and",
"a",
"server",
"cannot",
"get",
"the",
"data",
"from",
"the",
"Pin",
"process",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-Application",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Application",
"O",
"O"
] |
[
"Server",
"code",
":"
] | [
"B-Application",
"O",
"O"
] |
[
"Pin",
"code",
":"
] | [
"B-Application",
"O",
"O"
] |
[
"I",
"guess",
"there",
"'s",
"an",
"error",
"while",
"using",
"PinCRT",
"APIs",
"but",
"I",
"cannot",
"find",
"a",
"way",
"how",
"to",
"check",
"a",
"_OS_RETURN_CODE",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Application",
"I-Application",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Class",
"O"
] |
[
"_OS_RETURN_CODE",
"does",
"n't",
"have",
"a",
"==",
"or",
"!=",
"operators",
"and",
"I",
"tried",
"to",
"cast",
"a",
"_OS_RETURN_CODE",
"type",
"to",
"int",
"but",
"failed",
"again",
"."
] | [
"B-Class",
"O",
"O",
"O",
"O",
"B-Code_Block",
"O",
"B-Code_Block",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Class",
"O",
"O",
"B-Data_Type",
"O",
"O",
"O",
"O"
] |
[
"I",
"cannot",
"find",
"the",
"problem",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"Please",
"somebody",
"help",
"me",
"."
] | [
"O",
"O",
"O",
"O",
"O"
] |
[
"I",
"need",
"to",
"handle",
"tens",
"of",
"Gigabytes",
"data",
"in",
"one",
"binary",
"file",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-File_Type",
"O",
"O"
] |
[
"Each",
"record",
"in",
"the",
"data",
"file",
"is",
"variable",
"length",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"So",
"the",
"file",
"is",
"like",
":"
] | [
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"The",
"data",
"contains",
"integer",
",",
"pointer",
",",
"double",
"value",
"and",
"so",
"on",
"."
] | [
"O",
"O",
"O",
"B-Data_Type",
"O",
"B-Data_Type",
"O",
"B-Data_Type",
"O",
"O",
"O",
"O",
"O"
] |
[
"I",
"found",
"python",
"can",
"not",
"even",
"handle",
"this",
"situation",
"."
] | [
"O",
"O",
"B-Language",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"There",
"is",
"no",
"problem",
"if",
"I",
"read",
"the",
"whole",
"file",
"in",
"memory",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"It",
"'s",
"fast",
"."
] | [
"O",
"O",
"O",
"O"
] |
[
"But",
"it",
"seems",
"the",
"struct",
"package",
"is",
"not",
"good",
"at",
"performance",
"."
] | [
"O",
"O",
"O",
"O",
"B-Library",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"It",
"almost",
"stuck",
"on",
"unpack",
"the",
"bytes",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"Any",
"help",
"is",
"appreciated",
"."
] | [
"O",
"O",
"O",
"O",
"O"
] |
[
"Thanks",
"."
] | [
"O",
"O"
] |
[
"struct",
"and",
"array",
",",
"which",
"other",
"answers",
"recommend",
",",
"are",
"fine",
"for",
"the",
"details",
"of",
"the",
"implementation",
",",
"and",
"might",
"be",
"all",
"you",
"need",
"if",
"your",
"needs",
"are",
"always",
"to",
"sequentially",
"read",
"all",
"of",
"the",
"file",
"or",
"a",
"prefix",
"of",
"it",
"."
] | [
"B-Library",
"O",
"B-Library",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"Other",
"options",
"include",
"buffer",
",",
"mmap",
",",
"even",
"ctypes",
",",
"depending",
"on",
"many",
"details",
"you",
"do",
"n't",
"mention",
"regarding",
"your",
"exact",
"needs",
"."
] | [
"O",
"O",
"O",
"B-Library",
"O",
"B-Library",
"O",
"O",
"B-Library",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"Maybe",
"a",
"little",
"specialized",
"Cython-coded",
"helper",
"can",
"offer",
"all",
"the",
"extra",
"performance",
"you",
"need",
",",
"if",
"no",
"suitable",
"and",
"accessible",
"library",
"(",
"in",
"C",
",",
"C++",
",",
"Fortran",
",",
"..",
".",
")",
"already",
"exists",
"that",
"can",
"be",
"interfaced",
"for",
"the",
"purpose",
"of",
"handling",
"this",
"humongous",
"file",
"as",
"you",
"need",
"to",
"."
] | [
"O",
"O",
"O",
"O",
"B-Language",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Language",
"O",
"B-Language",
"O",
"B-Language",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"But",
"clearly",
"there",
"are",
"peculiar",
"issues",
"here",
"-",
"-",
"how",
"can",
"a",
"data",
"file",
"contain",
"pointers",
",",
"for",
"example",
",",
"which",
"are",
"intrinsically",
"a",
"concept",
"related",
"to",
"addressing",
"memory",
"?"
] | [
"O",
"O",
"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",
"O",
"O",
"O",
"O",
"O"
] |
[
"Are",
"they",
"maybe",
"\"",
"offsets",
"\"",
"instead",
",",
"and",
",",
"if",
"so",
",",
"how",
"exactly",
"are",
"they",
"based",
"and",
"coded",
"?"
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"Are",
"your",
"needs",
"at",
"all",
"more",
"advanced",
"than",
"simply",
"sequential",
"reading",
"(",
"e.g",
".",
",",
"random",
"access",
")",
",",
"and",
"if",
"so",
",",
"can",
"you",
"do",
"a",
"first",
"\"",
"indexing",
"\"",
"pass",
"to",
"get",
"all",
"the",
"offsets",
"from",
"start",
"of",
"file",
"to",
"start",
"of",
"record",
"into",
"a",
"more",
"usable",
",",
"compact",
",",
"handily-formatted",
"auxiliary",
"file",
"?"
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-File_Type",
"O",
"O"
] |
[
"(",
"That",
"binary",
"file",
"of",
"offsets",
"would",
"be",
"a",
"natural",
"for",
"array",
"-",
"-",
"unless",
"the",
"offsets",
"need",
"to",
"be",
"longer",
"than",
"array",
"supports",
"on",
"your",
"machine",
"!",
")",
"."
] | [
"O",
"O",
"B-File_Type",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Library",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Library",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"What",
"is",
"the",
"distribution",
"of",
"record",
"lengths",
"and",
"compositions",
"and",
"number",
"of",
"records",
"to",
"make",
"up",
"the",
"\"",
"tens",
"of",
"gigabytes",
"\"",
"?"
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"Etc",
",",
"etc",
"."
] | [
"O",
"O",
"O",
"O"
] |
[
"You",
"have",
"a",
"very",
"large",
"scale",
"problem",
"(",
"and",
"no",
"doubt",
"very",
"large",
"scale",
"hardware",
"to",
"support",
"it",
",",
"since",
"you",
"mention",
"that",
"you",
"can",
"easily",
"read",
"all",
"of",
"the",
"file",
"into",
"memory",
"that",
"means",
"a",
"64bit",
"box",
"with",
"many",
"tens",
"of",
"GB",
"of",
"RAM",
"-",
"-",
"wow",
"!"
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Device",
"O",
"O",
"O",
"O"
] |
[
")",
",",
"so",
"it",
"'s",
"well",
"worth",
"the",
"detailed",
"care",
"to",
"optimize",
"the",
"handling",
"thereof",
"-",
"-",
"but",
"we",
"ca",
"n't",
"help",
"much",
"with",
"such",
"detailed",
"care",
"unless",
"we",
"know",
"enough",
"detail",
"to",
"do",
"so",
"!",
"-",
")",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"What",
"if",
"you",
"use",
"dump",
"the",
"data",
"file",
"into",
"sqlite3",
"in",
"memory",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Library",
"O",
"O",
"O"
] |
[
"You",
"can",
"then",
"use",
"sql",
"to",
"process",
"the",
"data",
"."
] | [
"O",
"O",
"O",
"O",
"B-Language",
"O",
"O",
"O",
"O",
"O"
] |
[
"Besides",
",",
"you",
"might",
"want",
"to",
"look",
"at",
"generators",
"(",
"or",
"here",
")",
"and",
"iterators",
"(",
"or",
"here",
"and",
"here",
")",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"What",
"command",
"could",
"I",
"write",
"in",
"one",
"line",
"that",
"would",
"turn",
"this",
"text",
":"
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"into",
"this",
":"
] | [
"O",
"O",
"O"
] |
[
"let",
"your",
"source",
"file",
"be",
"input.txt"
] | [
"O",
"O",
"O",
"O",
"O",
"B-File_Name"
] |
[
"we",
"can",
"use",
"below",
"code",
"to",
"add",
"a",
"tab",
"at",
"starting",
"of",
"each",
"line",
"which",
"contain",
"the",
"string",
"berry"
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Data_Type",
"B-Value"
] |
[
"optionally",
",",
"use",
"-i",
"option",
"to",
"change",
"the",
"source",
"file",
"itself",
","
] | [
"O",
"O",
"O",
"B-Code_Block",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"Then",
"to",
"add",
"heading",
"berries",
":",
"we",
"can",
"use",
"below",
","
] | [
"O",
"O",
"O",
"O",
"B-Value",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"Note",
":",
"assuming",
"the",
"input",
"file",
"is",
"sorted",
"so",
"all",
"berries",
"are",
"in",
"adjacent",
"lines",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Value",
"O",
"O",
"O",
"O",
"O"
] |
[
"At",
"a",
"simplistic",
"level",
",",
"this",
"does",
"more",
"or",
"less",
"what",
"you",
"ask",
":"
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"Sample",
"Output"
] | [
"O",
"O"
] |
[
"That",
"says.",
".",
"find",
"all",
"the",
"lines",
"NOT",
"containing",
"\"",
"berry",
"\"",
"in",
"original.txt",
"because",
"grep",
"-v",
"is",
"a",
"negative",
"search",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Value",
"I-Value",
"I-Value",
"O",
"B-File_Name",
"O",
"B-Code_Block",
"I-Code_Block",
"O",
"O",
"O",
"O",
"O"
] |
[
"Then",
"it",
"prints",
"the",
"title",
"\"",
"berries",
"\"",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"B-Value",
"I-Value",
"I-Value",
"O"
] |
[
"Then",
"it",
"starts",
"a",
"new",
"sed",
"with",
"-n",
"so",
"that",
",",
"by",
"default",
",",
"it",
"prints",
"nothing",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"B-Code_Block",
"O",
"B-Code_Block",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"On",
"lines",
"matching",
"\"",
"berry",
"\"",
",",
"it",
"replaces",
"the",
"start",
"of",
"line",
"with",
"3",
"spaces",
"and",
"then",
"prints",
"the",
"line",
"with",
"p",
"."
] | [
"O",
"O",
"O",
"B-Value",
"I-Value",
"I-Value",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Code_Block",
"O"
] |
[
"It",
"will",
"find",
"\"",
"loganberry",
"\"",
",",
"but",
"it",
"wo",
"n't",
"work",
"as",
"expected",
"if",
"\"",
"strawberries",
"\"",
"appears",
"in",
"the",
"original",
"."
] | [
"O",
"O",
"O",
"B-Value",
"I-Value",
"I-Value",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Value",
"I-Value",
"I-Value",
"O",
"O",
"O",
"O",
"O"
] |
[
"It",
"will",
"also",
"print",
"the",
"\"",
"berries",
":",
"\"",
"title",
"even",
"if",
"there",
"are",
"no",
"berries",
"in",
"the",
"file",
"..",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"B-Value",
"I-Value",
"I-Value",
"I-Value",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Value",
"O",
"O",
"O",
"O",
"O"
] |
[
"I",
"tried",
"to",
"use",
"the",
"Slider",
"in",
"my",
"project",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"B-Library",
"O",
"O",
"O",
"O"
] |
[
"When",
"I",
"tried",
"to",
"drag",
"it",
"using",
"Chrome",
"developer",
"environment",
"with",
"device",
"emulation",
"turned",
"on",
"the",
"tool-tips",
"showing",
"the",
"current",
"value",
"are",
"visible",
",",
"but",
"I",
"cannot",
"drag",
"it",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Application",
"I-Application",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"When",
"I",
"tried",
"the",
"very",
"same",
"project",
"on",
"my",
"IPhone",
",",
"I",
"can",
"drag",
"it",
"perfectly",
"but",
"the",
"tool-tips",
"do",
"n't",
"show",
"up",
",",
"so",
"I",
"ca",
"n't",
"see",
"the",
"value",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Device",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-User_Interface_Element",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"Any",
"help",
"will",
"be",
"very",
"much",
"appreciated",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"I",
"found",
"out",
"that",
"using",
"the",
"attribute",
"does",
"the",
"trick",
"and",
"it",
"actually",
"works",
"on",
"touch",
"devices",
"like",
"my",
"IPhone",
"6s",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Device",
"B-Version",
"O"
] |
[
"This",
"is",
"remarable",
"because",
"tooltips",
"do",
"n't",
"work",
"on",
"buttons",
"using",
"gwtbootstrap3",
"."
] | [
"O",
"O",
"O",
"O",
"B-User_Interface_Element",
"O",
"O",
"O",
"O",
"B-User_Interface_Element",
"O",
"B-Library",
"O"
] |
[
"Actually",
"they",
"work",
"but",
"they",
"take",
"the",
"first",
"tip",
"to",
"show",
"up",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"So",
"you",
"need",
"to",
"tip",
"twice",
"on",
"a",
"button",
"which",
"is",
"not",
"good",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-User_Interface_Element",
"O",
"O",
"O",
"O",
"O"
] |
[
"I",
"am",
"trying",
"to",
"create",
"thread",
"library.For",
"this",
"I",
"am",
"trying",
"to",
"implement",
"queue",
"to",
"store",
"the",
"pending",
"threads",
"to",
"be",
"executed",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Data_Structure",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"The",
"reason",
"I",
"mentioned",
"the",
"queue",
"because",
"i",
"tried",
"experimenting",
"by",
"removing",
"below",
"code",
"from",
"'",
"MyThreadYield",
"'",
"function",
"and",
"it",
"workes",
"fine",
"but",
"doesnt",
"do",
"the",
"intended",
"functionality",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"B-Data_Structure",
"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"
] |
[
"getcontext(&(save.context))",
";"
] | [
"B-Function",
"I-Function"
] |
[
"addToQueue(save)",
";"
] | [
"B-Function",
"I-Function"
] |
[
"For",
"one",
",",
"your",
"queue",
"implementation",
"is",
"not",
"thread-safe",
"at",
"this",
"point",
"."
] | [
"O",
"O",
"O",
"O",
"B-Data_Structure",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"Your",
"question",
"strongly",
"suggests",
"that",
"this",
"code",
"will",
"be",
"used",
"in",
"a",
"multi-threaded",
"environment",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"Having",
"a",
"non",
"thread-safe",
"queue",
"will",
"give",
"you",
"wrong",
"results",
",",
"and",
"weird",
"things",
"can",
"happen",
"(",
"like",
"removeFromQueue()",
"returning",
"the",
"same",
"thing",
"to",
"two",
"different",
"threads",
",",
"or",
"addToQueue()",
"inserting",
"two",
"items",
"in",
"the",
"same",
"position",
")",
"."
] | [
"O",
"O",
"O",
"O",
"B-Data_Structure",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Function",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Function",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"Aside",
"from",
"that",
",",
"your",
"queue",
"implementation",
"would",
"never",
"work",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"B-Data_Structure",
"O",
"O",
"O",
"O",
"O"
] |
[
"You",
"are",
"not",
"using",
"front",
"and",
"rear",
"correctly",
"."
] | [
"O",
"O",
"O",
"O",
"B-Variable",
"O",
"B-Variable",
"O",
"O"
] |
[
"Look",
"carefully",
"at",
"the",
"insert",
"function",
":"
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"You",
"check",
"if",
"rear",
"is",
"MAX",
",",
"yet",
",",
"you",
"write",
"into",
"queue[front]",
"and",
"increment",
"front",
"."
] | [
"O",
"O",
"O",
"B-Variable",
"O",
"B-Variable",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Variable",
"O",
"O",
"B-Variable",
"O"
] |
[
"What",
"if",
"I",
"just",
"keep",
"adding",
"items",
"to",
"the",
"queue",
",",
"eventually",
"reaching",
"the",
"buffer",
"'s",
"limit",
"?"
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"rear",
"will",
"always",
"be",
"0",
",",
"front",
"will",
"grow",
"indefinitely",
",",
"and",
"your",
"function",
"will",
"write",
"beyond",
"the",
"limits",
"of",
"queue",
"."
] | [
"B-Variable",
"O",
"O",
"O",
"B-Value",
"O",
"B-Variable",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Data_Structure",
"O"
] |
[
"That",
"'s",
"probably",
"the",
"cause",
"of",
"your",
"segmentation",
"fault",
"errors",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Error_Name",
"I-Error_Name",
"O",
"O"
] |
[
"I",
"think",
"you",
"wanted",
"to",
"check",
"for",
"front",
"instead",
":"
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Variable",
"O",
"O"
] |
[
"The",
"code",
"for",
"removeFromQueue()",
"looks",
"superficially",
"ok",
",",
"as",
"long",
"as",
"queue",
"is",
"a",
"global",
"array",
"(",
"since",
"you",
"'re",
"returning",
"a",
"pointer",
",",
"and",
"ca",
"n't",
"return",
"pointers",
"to",
"local",
"variables",
")",
"."
] | [
"O",
"O",
"O",
"B-Function",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Data_Structure",
"O",
"O",
"B-Data_Type",
"B-Data_Structure",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Data_Type",
"O",
"O",
"O",
"O",
"O",
"B-Data_Type",
"O",
"O",
"O",
"O",
"O"
] |
[
"However",
",",
"the",
"single",
",",
"most",
"important",
"fact",
"you",
"have",
"to",
"take",
"out",
"of",
"this",
"answer",
",",
"is",
"that",
"your",
"queue",
"implementation",
"will",
"not",
"scale",
"in",
"the",
"long-term",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Data_Structure",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"An",
"array-based",
"queue",
"is",
"a",
"terrible",
"choice",
"."
] | [
"O",
"O",
"B-Data_Structure",
"O",
"O",
"O",
"O",
"O"
] |
[
"What",
"do",
"you",
"do",
"when",
"you",
"run",
"out",
"of",
"space",
"in",
"the",
"array",
"?"
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Data_Structure",
"O"
] |
[
"What",
"if",
"I",
"insert",
"MAX",
"elements",
",",
"then",
"remove",
"2",
"or",
"3",
",",
"and",
"try",
"to",
"insert",
"more",
"?"
] | [
"O",
"O",
"O",
"O",
"B-Variable",
"O",
"O",
"O",
"O",
"B-Value",
"O",
"B-Value",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"Your",
"code",
"will",
"say",
"the",
"queue",
"is",
"full",
",",
"because",
"it",
"only",
"ever",
"allows",
"you",
"to",
"insert",
"MAX",
"elements",
"in",
"total",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"B-Data_Structure",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Variable",
"O",
"O",
"O",
"O"
] |
[
"You",
"could",
"shift",
"every",
"element",
"in",
"the",
"queue",
"to",
"the",
"left",
"when",
"an",
"element",
"is",
"removed",
",",
"but",
"that",
"'s",
"crazy",
",",
"and",
"extremely",
"inefficient",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Data_Structure",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"Or",
"you",
"could",
"increment",
"front",
"modulo",
"MAX",
",",
"allowing",
"rear",
"to",
"be",
"ahead",
"of",
"front",
",",
"as",
"long",
"as",
"you",
"know",
"that",
"no",
"more",
"than",
"MAX",
"elements",
"can",
"be",
"inserted",
"."
] | [
"O",
"O",
"O",
"O",
"B-Variable",
"O",
"B-Variable",
"O",
"O",
"B-Variable",
"O",
"O",
"O",
"O",
"B-Variable",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Variable",
"O",
"O",
"O",
"O",
"O"
] |
[
"That",
"would",
"be",
"better",
",",
"but",
"it",
"would",
"break",
"the",
"logic",
"in",
"removeFromQueue()",
",",
"since",
"the",
"pointers",
"returned",
"earlier",
"will",
"possibly",
"point",
"to",
"a",
"different",
"thread",
"struct",
"as",
"you",
"manipulate",
"the",
"queue",
"-",
"total",
"disaster",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Function",
"O",
"O",
"O",
"B-Data_Type",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Data_Structure",
"O",
"O",
"O",
"O",
"B-Data_Structure",
"O",
"O",
"O",
"O"
] |
[
"Definitely",
"not",
"what",
"you",
"want",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"A",
"much",
",",
"much",
"better",
"approach",
"would",
"be",
"to",
"implement",
"this",
"with",
"a",
"linked",
"list",
"where",
"you",
"keep",
"a",
"pointer",
"to",
"the",
"head",
"and",
"a",
"pointer",
"to",
"the",
"tail",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Data_Structure",
"I-Data_Structure",
"O",
"O",
"O",
"O",
"B-Data_Type",
"O",
"O",
"O",
"O",
"O",
"B-Data_Type",
"O",
"O",
"O",
"O"
] |
[
"Have",
"a",
"look",
"at",
"http://en.wikipedia.org/wiki/Queue_(abstract_data_type)#Queue_implementation"
] | [
"O",
"O",
"O",
"O",
"O"
] |
[
"I",
"tried",
"this",
"code",
"."
] | [
"O",
"O",
"O",
"O",
"O"
] |
[
"It",
"is",
"not",
"working",
"."
] | [
"O",
"O",
"O",
"O",
"O"
] |
[
"Try",
":"
] | [
"O",
"O"
] |
[
"I",
"destroyed",
"my",
"subversion",
"tree",
",",
"and",
"I",
"do",
"n't",
"know",
"what",
"could",
"have",
"caused",
"it",
"."
] | [
"O",
"O",
"O",
"B-Application",
"B-Data_Structure",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"I",
"used",
"svn",
"ignore",
"on",
"some",
"files",
"a",
"while",
"ago",
",",
"but",
"as",
"the",
"project",
"is",
"being",
"revisited",
",",
"I",
"decided",
"to",
"retract",
"the",
"svn",
"ignore",
"by",
"using",
"svn",
"propdel",
"svn:ignore",
"-R",
"."
] | [
"O",
"O",
"B-Code_Block",
"I-Code_Block",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Code_Block",
"I-Code_Block",
"O",
"O",
"B-Code_Block",
"I-Code_Block",
"I-Code_Block",
"I-Code_Block",
"O"
] |
[
"This",
"removes",
"all",
"ingnores",
"I",
"'ve",
"made",
",",
"but",
"I",
"did",
"n't",
"think",
"that",
"would",
"be",
"a",
"problem",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"However",
",",
"when",
"I",
"now",
"try",
"to",
"update",
",",
"I",
"get",
"the",
"following",
"message",
":"
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"Conflict",
"for",
"property",
"'",
"svn:ignore",
"'",
"discovered",
"on",
"''",
"."
] | [
"B-Output_Block",
"I-Output_Block",
"I-Output_Block",
"I-Output_Block",
"I-Output_Block",
"I-Output_Block",
"I-Output_Block",
"I-Output_Block",
"I-Output_Block",
"I-Output_Block"
] |
[
"What",
"does",
"the",
"empty",
"single",
"quotes",
"mean",
"?"
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"Also",
",",
"subversion",
"seems",
"to",
"have",
"trouble",
"finding",
"my",
"working",
"directory",
",",
"as",
"I",
"'m",
"getting",
"!",
"M",
".",
"at",
"the",
"top",
"of",
"the",
"output",
"when",
"I",
"run",
"svn",
"up",
"."
] | [
"O",
"O",
"B-Application",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Value",
"I-Value",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Application",
"O",
"O"
] |
[
"Finally",
",",
"what",
"does",
"n't",
"make",
"sense",
"to",
"me",
"is",
"how",
"does",
"svn",
"accurately",
"display",
"what",
"files",
"I",
"'ve",
"modified",
"if",
"it",
"ca",
"n't",
"find",
"my",
"directory",
"?"
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Application",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"(",
"Maybe",
"I",
"'m",
"misinterpreting",
"the",
"!",
"M",
"message",
",",
"does",
"n't",
"that",
"mean",
"that",
"the",
"path",
"is",
"missing",
"?",
")"
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-Value",
"I-Value",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"I",
"'ve",
"trying",
"to",
"use",
"Eclipse",
"JDT",
"AST",
"parsing",
"classes",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"B-Class",
"I-Class",
"I-Class",
"O",
"O",
"O"
] |
[
"After",
"including",
"the",
"initial",
"JAR",
",",
"and",
"sorting",
"out",
"a",
"couple",
"more",
"dependencies",
",",
"it",
"is",
"with",
"7+",
"JARs",
"and",
"I",
"still",
"having",
"NoClassDefFoundError",
"exceptions",
"."
] | [
"O",
"O",
"O",
"O",
"B-File_Type",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-File_Type",
"O",
"O",
"O",
"O",
"B-Error_Name",
"B-Class",
"O"
] |
[
"This",
"situation",
"arises",
"whenever",
"I",
"'m",
"trying",
"to",
"test",
"libraries",
"with",
"little",
"or",
"no",
"documentation",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |