tokens
sequence | ner_tags
sequence |
---|---|
[
"From",
"the",
"manual",
":"
] | [
"O",
"O",
"O",
"O"
] |
[
"I",
"made",
"the",
"assumption",
"that",
"given",
"your",
"sample",
"data",
",",
"it",
"would",
"have",
"at",
"least",
"three",
"columns",
"and",
"that",
"the",
"variable",
"component",
"you",
"discuss",
"applies",
"to",
"the",
"columns",
"after",
"those",
"containing",
"words",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-User_Interface_Element",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-User_Interface_Element",
"O",
"O",
"O",
"O",
"O"
] |
[
"If",
"I",
"was",
"wrong",
",",
"you",
"can",
"simply",
"add",
"the",
"conditional",
":"
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"I",
"'m",
"writing",
"a",
"drawing",
"program",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"I",
"'m",
"trying",
"to",
"take",
"an",
"ordered",
"list",
"mouse",
"positions",
",",
"and",
"approximate",
"a",
"smooth",
"Quadratic",
"BSpline",
"Curve",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Device",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"Does",
"anyone",
"know",
"how",
"to",
"accomplish",
"this",
"?"
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"Thanks",
"!"
] | [
"O",
"O"
] |
[
"\"",
"B-spline",
"curve",
"fitting",
"based",
"on",
"adaptive",
"curve",
"refinement",
"using",
"dominant",
"points",
"\"",
"by",
"Park",
"&",
"Lee",
"and",
"\"",
"Fair",
"interpolation",
"and",
"approximation",
"of",
"B-splines",
"by",
"energy",
"minimization",
"and",
"points",
"insertion",
"\"",
"by",
"Vassilev",
"seem",
"to",
"be",
"solving",
"this",
"problem",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-User_Name",
"O",
"B-User_Name",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-User_Name",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"Also",
"there",
"look",
"like",
"a",
"few",
"references",
"on",
"the",
"first",
"link",
"that",
"should",
"help",
"you",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"Converting",
"data",
"points",
"to",
"control",
"points",
"in",
"areas",
"of",
"high",
"curvature",
"and",
"removing",
"data",
"points",
"in",
"areas",
"of",
"little",
"curvature",
"is",
"a",
"general",
"approach",
"."
] | [
"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"
] |
[
"We",
"have",
"svn",
"1.6",
",",
"a",
"trunk",
"with",
"approx",
"30000",
"files",
"(",
"1",
"GB",
")",
",",
"and",
"a",
"\"",
"test",
"\"",
"branch",
"originally",
"copied",
"from",
"trunk",
"."
] | [
"O",
"O",
"B-Application",
"B-Version",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"When",
"we",
"are",
"keeping",
"our",
"\"",
"test",
"\"",
"branch",
"in",
"sync",
",",
"the",
"svn",
"merge",
"^",
"/trunk",
"command",
"takes",
"a",
"long",
"time",
"(",
"30",
"min",
")",
"although",
"we",
"are",
"only",
"changing",
"a",
"few",
"files",
"in",
"a",
"specific",
"subdirectory",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"B-Value",
"I-Value",
"I-Value",
"O",
"O",
"B-Value",
"O",
"O",
"B-Code_Block",
"I-Code_Block",
"I-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",
"O",
"O"
] |
[
"My",
"question",
"is",
":",
"Does",
"anybody",
"know",
"a",
"way",
"to",
"make",
"the",
"merge",
"command",
"faster",
"?"
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"PS",
":",
"I",
"do",
"n't",
"understand",
"why",
"the",
"command",
"takes",
"so",
"much",
"time",
"(",
"not",
"going",
"through",
"the",
"list",
"of",
"changed",
"files",
"but",
"apparently",
"going",
"through",
"the",
"all",
"repository",
")",
"."
] | [
"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"
] |
[
"Does",
"anybody",
"knows",
"?"
] | [
"O",
"O",
"O",
"O"
] |
[
"It",
"is",
"probably",
"related",
"to",
"the",
"number",
"of",
"sub-folders",
"in",
"your",
"checkout",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"Each",
"of",
"them",
"has",
"an",
".svn",
"folder",
"which",
"needs",
"to",
"be",
"checked",
"for",
"local",
"changes",
"during",
"the",
"merge",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"B-File_Type",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"This",
"does",
"not",
"mean",
"that",
"having",
"one",
"huge",
"folder",
"with",
"30,000",
"files",
"would",
"be",
"any",
"faster",
",",
"though",
"..",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"Even",
"in",
"a",
"smaller",
"project",
",",
"there",
"is",
"a",
"noticeable",
"difference",
"in",
"time",
"it",
"takes",
"to",
"do",
"the",
"same",
"operation",
"when",
"running",
"on",
"a",
"fast",
"SSD",
"drive",
"vs",
".",
"regular",
"drive",
"or",
"a",
"networked",
"file",
"system",
"."
] | [
"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",
"I-Device",
"O",
"O",
"B-Device",
"I-Device",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"I",
"need",
"to",
"make",
"a",
"program",
"at",
"LC3",
"assembly",
"that",
"devides",
"2",
"natural",
"numbers",
"and",
"stores",
"the",
"remainder",
"at",
"R0.In",
"case",
"that",
"R1",
"is",
"zero",
",",
"R1",
"must",
"be",
"0.Else",
"R1",
"must",
"be",
"1",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Language",
"I-Language",
"O",
"O",
"O",
"B-Data_Type",
"I-Data_Type",
"O",
"O",
"O",
"O",
"O",
"B-Variable",
"O",
"O",
"B-Variable",
"O",
"B-Value",
"O",
"B-Variable",
"O",
"O",
"B-Value",
"B-Variable",
"O",
"O",
"B-Value",
"O"
] |
[
"My",
"code",
"is",
":"
] | [
"O",
"O",
"O",
"O"
] |
[
"This",
"is",
"my",
"first",
"program",
"at",
"LC3",
"assembly",
"...",
"I",
"am",
"a",
"total",
"beginner.Could",
"anyone",
"explain",
"to",
"me",
"why",
"this",
"does",
"n't",
"compile",
"?",
"I",
"always",
"get",
"a",
"\"",
"Invalid",
"label",
"'",
"#25",
"\"",
"\"",
"error",
"message.Thank",
"you",
"in",
"advance",
"for",
"your",
"help",
"!"
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-Language",
"I-Language",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Error_Name",
"I-Error_Name",
"I-Error_Name",
"I-Error_Name",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"I",
"want",
"some",
"suggestion",
"on",
"how",
"to",
"do",
"the",
"following",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"In",
"my",
"ASP.Net",
"MVC",
"application",
"I",
"have",
"a",
"view",
"which",
"can",
"be",
"accessed",
"unauthorized",
"and",
"this",
"view",
"have",
"a",
"registration",
"form",
"now",
"the",
"requirement",
"is",
"that",
"there",
"you",
"can",
"register",
"for",
"multiple",
"people",
"."
] | [
"O",
"O",
"B-Library",
"B-Algorithm",
"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"
] |
[
"So",
"for",
"example",
"if",
"the",
"event",
"can",
"have",
"two",
"persons",
"registered",
"so",
"I",
"need",
"to",
"show",
"two",
"registration",
"form",
"and",
"then",
"the",
"detaisl",
"should",
"be",
"filled",
"and",
"press",
"submit",
"then",
"this",
"whole",
"data",
"should",
"be",
"validated",
"and",
"passed",
"to",
"Controller",
"."
] | [
"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"
] |
[
"I",
"do",
"not",
"understand",
"how",
"to",
"do",
"this",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"Is",
"it",
"possible",
"to",
"have",
"a",
"ViewModel",
"like",
":"
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"?"
] | [
"O"
] |
[
"Please",
"suggest",
"."
] | [
"O",
"O",
"O"
] |
[
"Thanks"
] | [
"O"
] |
[
"I",
"'m",
"in",
"the",
"process",
"of",
"building",
"and",
"designing",
"my",
"first",
"Javascript",
"OOP",
"web",
"application",
"and",
"I",
"'m",
"wondering",
"what",
"kind",
"of",
"data",
"structure",
"/",
"management",
"system",
"would",
"be",
"best",
"to",
"use",
"."
] | [
"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",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"I",
"know",
"the",
"interaction",
"between",
"Javascript",
"and",
"XML",
"is",
"good",
"and",
"fairly",
"easy",
",",
"but",
"XML",
"is",
"n't",
"meant",
"to",
"be",
"used",
"as",
"a",
"database",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"B-Language",
"O",
"B-Language",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Language",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"Is",
"it",
"better",
"to",
"form",
"a",
"combination",
"of",
"both",
"?"
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"Have",
"a",
"server-side",
"language",
"(",
"PHP",
")",
"generate",
"XML",
"and",
"have",
"it",
"then",
"be",
"read",
"by",
"JS",
"?"
] | [
"O",
"O",
"O",
"O",
"O",
"B-Language",
"O",
"O",
"B-Language",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Language",
"O"
] |
[
"Or",
"am",
"I",
"heading",
"in",
"the",
"wrong",
"direction",
"with",
"this",
"?"
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"Javascript",
"itself",
"does",
"n't",
"do",
"queries",
"....",
"it",
"needs",
"a",
"helper",
"like",
"PHP",
",",
".net",
",",
"or",
"Java",
"."
] | [
"B-Language",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Language",
"O",
"B-Library",
"O",
"O",
"B-Language",
"O"
] |
[
"It",
"can",
"traverse",
"XML",
"or",
"JSON",
"just",
"fine",
"like",
"you",
"say",
",",
"but",
"sending",
"colossal",
"XML",
"documents",
"with",
"all",
"possible",
"data",
"when",
"only",
"small",
"amounts",
"of",
"the",
"data",
"is",
"actually",
"required",
"will",
"lead",
"to",
"massive",
"overhead",
"that",
"will",
"bring",
"your",
"app",
"to",
"its",
"knees",
"."
] | [
"O",
"O",
"O",
"B-Language",
"O",
"B-Language",
"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",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"It",
"'s",
"the",
"definition",
"of",
"lack-of-scalability",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"My",
"personal",
"preference",
"is",
"JQuery",
"Ajax",
"talking",
"to",
"a",
"PHP",
"backend",
"(",
"transactions",
"via",
"JSON",
")",
"."
] | [
"O",
"O",
"O",
"O",
"B-Library",
"B-Function",
"O",
"O",
"O",
"B-Language",
"O",
"O",
"O",
"O",
"B-Language",
"O",
"O"
] |
[
"If",
"I",
"'m",
"dealing",
"with",
"the",
"presentation",
"of",
"large",
"datasets",
"I",
"'ll",
"always",
"page",
"the",
"information",
"server-side",
"and",
"pipeline",
"it",
"(",
"load",
"data",
"ahead",
"of",
"and",
"behind",
"the",
"current",
"view",
"to",
"reduce",
"transactions",
")",
",",
"and",
"usually",
"present",
"in",
"via",
"jQuery",
"DataTables",
"."
] | [
"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-Library",
"B-Function",
"O"
] |
[
"Grids",
"are",
"always",
"your",
"friend",
"with",
"large",
"amounts",
"of",
"data",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"Again",
",",
"personal",
"preference",
",",
"but",
"I",
"make",
"heavy",
"use",
"of",
"jQuery",
"UI",
"for",
"layout",
"and",
"presentation",
",",
"and",
"I",
"do",
"write",
"custom",
"Javascript",
"for",
"the",
"\"",
"nifty",
"\"",
"one-off",
"type",
"things",
"that",
"come",
"up",
"."
] | [
"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-Language",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"Again",
",",
"any",
"server",
"language",
"you",
"have",
"access",
"to",
"and",
"are",
"comfortable",
"with",
"will",
"suffice",
",",
"as",
"Javascript",
"is",
"language",
"agnostic",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Language",
"O",
"O",
"O",
"O"
] |
[
"Javascript",
"can",
"get",
"out",
"of",
"hand",
"in",
"a",
"hurry",
"."
] | [
"B-Language",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"I",
"'d",
"recommend",
"that",
"unless",
"you",
"have",
"a",
"ton",
"of",
"time",
"on",
"your",
"hands",
"that",
"you",
"focus",
"on",
"clean",
"presentation",
"via",
"something",
"baseline",
"like",
"HTML",
"with",
"judicious",
"use",
"of",
"Javascript",
"and",
"CSS",
"for",
"progressive",
"enhancement",
"."
] | [
"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-Language",
"O",
"O",
"O",
"O",
"B-Language",
"O",
"B-Language",
"O",
"O",
"O",
"O"
] |
[
"Think",
"about",
"the",
"user",
"before",
"you",
"go",
"crazy",
"with",
"motion",
",",
"dynamic",
"elements",
",",
"etc",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"Do",
"n't",
"forget",
"the",
"old",
"adage",
",",
"\"",
"80%",
"of",
"the",
"people",
"only",
"use",
"20%",
"of",
"the",
"functionality",
"\"",
"Nail",
"that",
"20%",
"cleanly",
"before",
"going",
"to",
"town",
"on",
"flashy",
"javascript",
"fluff",
"."
] | [
"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-Language",
"O",
"O"
] |
[
"Your",
"users",
"will",
"thank",
"you",
"!"
] | [
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"JSON",
"is",
"by",
"far",
"the",
"fastest",
"to",
"parse",
",",
"since",
"it",
"IS",
"JavaScript",
"."
] | [
"B-File_Type",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Language",
"O"
] |
[
"Application",
"frameworks",
"like",
"EXT.JS",
"are",
"already",
"doing",
"this",
"with",
"great",
"success",
"."
] | [
"O",
"O",
"O",
"B-Library",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"The",
"following",
"describes",
"what",
"seems",
"to",
"be",
"a",
"bug",
"in",
"Ruby",
"1.8",
"(",
"and",
"REE",
")",
"but",
"has",
"been",
"fixed",
"in",
"1.9",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Language",
"B-Version",
"O",
"O",
"B-Version",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Version",
"O"
] |
[
"I",
"'d",
"like",
"to",
"know",
":"
] | [
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"Why",
"calling",
"==",
"on",
"String",
"or",
"Fixnum",
"triggers",
"calling",
"==",
"on",
"other",
"object",
"at",
"all",
"?"
] | [
"O",
"O",
"B-Function",
"O",
"B-Data_Type",
"O",
"B-Data_Type",
"O",
"O",
"B-Function",
"O",
"B-Variable",
"O",
"O",
"O",
"O"
] |
[
"Why",
"calling",
"==",
"on",
"String",
"works",
"differently",
"depending",
"on",
"the",
"other",
"object",
"class",
"?"
] | [
"O",
"O",
"B-Function",
"O",
"B-Data_Type",
"O",
"O",
"O",
"O",
"O",
"B-Variable",
"O",
"O",
"O"
] |
[
"Now",
"the",
"code",
":"
] | [
"O",
"O",
"O",
"O"
] |
[
"Example",
"1"
] | [
"O",
"O"
] |
[
"Nothing",
"interesting",
"here",
",",
"move",
"along",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"Example",
"2"
] | [
"O",
"O"
] |
[
"Calling",
"==",
"on",
"String",
"triggers",
"==",
"on",
"other",
"object",
"of",
"Exception",
"class",
"."
] | [
"O",
"B-Function",
"O",
"B-Data_Type",
"O",
"B-Function",
"O",
"B-Variable",
"O",
"O",
"B-Class",
"O",
"O"
] |
[
"Example",
"3"
] | [
"O",
"O"
] |
[
"Calling",
"==",
"on",
"Fixnum",
"triggers",
"==",
"on",
"other",
"object",
"."
] | [
"O",
"B-Function",
"O",
"B-Data_Type",
"O",
"B-Function",
"O",
"B-Variable",
"O",
"O"
] |
[
"Example",
"4"
] | [
"O",
"O"
] |
[
"Calling",
"==",
"on",
"String",
"triggers",
"==",
"on",
"other",
"object",
"of",
"Exception",
"class",
"."
] | [
"O",
"B-Function",
"O",
"B-Data_Type",
"O",
"B-Function",
"O",
"B-Variable",
"O",
"O",
"B-Class",
"O",
"O"
] |
[
"Ruby",
"is",
"an",
"object-oriented",
"language",
"."
] | [
"B-Language",
"O",
"O",
"O",
"O",
"O"
] |
[
"In",
"an",
"object-oriented",
"language",
",",
"you",
"send",
"messages",
"to",
"objects",
"and",
"those",
"objects",
"then",
"respond",
"to",
"those",
"messages",
"however",
"they",
"see",
"fit",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"This",
"means",
"that",
"the",
"receiver",
"of",
"the",
"message",
",",
"and",
"only",
"the",
"receiver(!)"
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"is",
"in",
"total",
"control",
"of",
"what",
"a",
"message",
"means",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"With",
"some",
"operators",
",",
"however",
",",
"there",
"are",
"certain",
"expectations",
"of",
"symmetry",
":",
"for",
"example",
",",
"a",
"==",
"b",
"is",
"expected",
"to",
"be",
"the",
"same",
"as",
"b",
"==",
"a",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Code_Block",
"I-Code_Block",
"I-Code_Block",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Code_Block",
"I-Code_Block",
"I-Code_Block",
"O"
] |
[
"But",
"in",
"an",
"OO",
"language",
"that",
"is",
"impossible",
"!"
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"Either",
"a",
"or",
"b",
"must",
"be",
"the",
"receiver",
"of",
"the",
"message",
",",
"so",
"in",
"one",
"case",
"a",
"gets",
"to",
"decide",
"whether",
"a",
"and",
"b",
"are",
"equal",
"and",
"in",
"the",
"other",
"case",
"b",
"gets",
"to",
"decide",
"."
] | [
"O",
"B-Variable",
"O",
"B-Variable",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Variable",
"O",
"O",
"O",
"O",
"B-Variable",
"O",
"B-Variable",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Variable",
"O",
"O",
"O",
"O"
] |
[
"They",
"might",
"decide",
"differently",
",",
"and",
"then",
"the",
"expectation",
"of",
"symmetry",
"would",
"be",
"broken",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"So",
",",
"in",
"some",
"classes",
"equality",
"is",
"actually",
"implemented",
"something",
"like",
"this",
":"
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"Here",
"'s",
"an",
"example",
":",
"if",
"you",
"write",
"your",
"own",
"Numeric",
"class",
"(",
"say",
",",
"a",
"Quaternion",
"class",
")",
",",
"then",
"the",
"system",
"builtin",
"Fixnum",
"class",
"does",
"n't",
"know",
"anything",
"about",
"Quaternions",
".",
"So",
",",
"when",
"you",
"ask",
"the",
"Fixnum",
"0",
"whether",
"it",
"is",
"equal",
"to",
"the",
"Quaternion",
"(",
"0",
",",
"0",
",",
"0",
",",
"0",
")",
",",
"it",
"will",
"responds",
"false",
",",
"even",
"though",
"that",
"'s",
"wrong",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Class",
"O",
"O",
"O",
"O",
"O",
"B-Class",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Class",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Class",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Class",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Class",
"B-Value",
"I-Value",
"I-Value",
"I-Value",
"I-Value",
"I-Value",
"I-Value",
"I-Value",
"I-Value",
"O",
"O",
"O",
"O",
"B-Value",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"So",
",",
"instead",
"the",
"Fixnum",
"will",
"first",
"check",
":",
"do",
"I",
"know",
"how",
"to",
"compare",
"myself",
"to",
"a",
"Quaternion",
"?"
] | [
"O",
"O",
"O",
"O",
"B-Class",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Class",
"O"
] |
[
"No",
",",
"I",
"do",
"n't",
",",
"but",
"maybe",
"a",
"Quaternion",
"knows",
"how",
"to",
"compare",
"itself",
"to",
"a",
"Fixnum",
"!"
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Class",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Class",
"O"
] |
[
"After",
"all",
",",
"the",
"Quaternion",
"class",
"did",
"n't",
"exist",
"when",
"the",
"Fixnum",
"class",
"was",
"written",
",",
"so",
"the",
"Fixnum",
"class",
"cannot",
"know",
"about",
"Quaternions",
".",
"But",
"when",
"the",
"Quaternion",
"class",
"was",
"written",
",",
"maybe",
"the",
"author",
"was",
"so",
"thoughtful",
"to",
"make",
"it",
"possible",
"to",
"compare",
"Quaternions",
"with",
"Fixnums",
"."
] | [
"O",
"O",
"O",
"O",
"B-Class",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Class",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Class",
"O",
"O",
"O",
"O",
"B-Class",
"O",
"O",
"O",
"O",
"B-Class",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Class",
"O",
"B-Class",
"O"
] |
[
"That",
"'s",
"why",
"Fixnum#",
"==",
"reverses",
"the",
"arguments",
"and",
"tries",
"again",
"."
] | [
"O",
"O",
"O",
"B-Function",
"I-Function",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"With",
"String",
",",
"it",
"'s",
"the",
"same",
"but",
"somewhat",
"more",
"complicated",
"."
] | [
"O",
"B-Data_Type",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"In",
"Ruby",
",",
"classes",
"are",
"n't",
"types",
"and",
"subtyping",
"and",
"subclassing",
"are",
"different",
"."
] | [
"O",
"B-Language",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"Ruby",
"itself",
"does",
"n't",
"have",
"a",
"concept",
"of",
"type",
"at",
"all",
"!"
] | [
"B-Language",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"The",
"type",
"of",
"an",
"object",
"is",
"its",
"protocol",
",",
"i.e",
".",
"the",
"messages",
"it",
"understands",
"and",
"how",
"it",
"responds",
"to",
"them",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"But",
"that",
"concept",
"is",
"not",
"recorded",
"in",
"Ruby",
"(",
"unlike",
"Objective-C",
",",
"for",
"example",
",",
"which",
"does",
"have",
"an",
"explicit",
"notion",
"of",
"protocol",
")",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Language",
"O",
"O",
"B-Language",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"There",
",",
"however",
",",
"some",
"cases",
",",
"where",
"you",
"want",
"to",
"break",
"OO",
"encapsulation",
",",
"and",
"know",
"the",
"specific",
"type",
"and",
"even",
"more",
":",
"the",
"specific",
"representation",
"of",
"the",
"type",
"."
] | [
"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"
] |
[
"(",
"Note",
":",
"this",
"violates",
"OO",
",",
"but",
"it",
"is",
"sometimes",
"necessary",
"for",
"performance",
".",
")"
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"In",
"cases",
",",
"where",
"Ruby",
"needs",
"an",
"object",
"to",
"be",
"of",
"a",
"specific",
"class",
"instead",
"of",
"just",
"responding",
"to",
"a",
"specific",
"protocol",
",",
"you",
"would",
"lose",
"a",
"lot",
"of",
"flexibility",
"."
] | [
"O",
"O",
"O",
"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",
"O",
"O",
"O"
] |
[
"You",
"have",
"to",
"use",
",",
"say",
",",
"a",
"String",
",",
"even",
"though",
"you",
"would",
"much",
"rather",
"use",
"a",
"Rope",
"instead",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Data_Type",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Data_Type",
"O",
"O"
] |
[
"In",
"order",
"to",
"give",
"you",
"back",
"some",
"flexibility",
",",
"Ruby",
"allows",
"you",
"to",
"pass",
"in",
"something",
"which",
"is",
"not",
"exactly",
"a",
"String",
"but",
"which",
"is",
"equivalent",
"to",
"one",
"and",
"can",
"be",
"converted",
"to",
"one",
"with",
"a",
"to_str",
"method",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Language",
"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",
"B-Function",
"O",
"O"
] |
[
"So",
",",
"unlike",
"other",
"languages",
",",
"where",
"A",
"IS-A",
"String",
"is",
"represented",
"by",
"A",
"being",
"a",
"subclass",
"of",
"String",
",",
"in",
"Ruby",
",",
"the",
"relationship",
"A",
"IS-A",
"String",
"is",
"represented",
"by",
"A",
"having",
"a",
"to_str",
"method",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Value",
"I-Value",
"I-Value",
"O",
"O",
"O",
"B-Class",
"O",
"O",
"O",
"O",
"B-Data_Type",
"O",
"O",
"B-Language",
"O",
"O",
"O",
"B-Value",
"I-Value",
"I-Value",
"O",
"O",
"O",
"B-Class",
"O",
"O",
"B-Function",
"O",
"O"
] |
[
"That",
"'s",
"what",
"you",
"are",
"seeing",
"above",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"If",
"the",
"argument",
"to",
"String#",
"==",
"is",
"n't",
"a",
"String",
",",
"then",
"String#",
"==",
"does",
"n't",
"know",
"what",
"to",
"do",
"with",
"it",
"."
] | [
"O",
"O",
"O",
"O",
"B-Function",
"I-Function",
"O",
"O",
"O",
"B-Data_Type",
"O",
"O",
"B-Function",
"I-Function",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"But",
"if",
"it",
"is",
"\"",
"string-like",
"\"",
",",
"i.e",
".",
"it",
"implements",
"to_str",
",",
"then",
"maybe",
"it",
"does",
"know",
"how",
"to",
"compare",
"itself",
"to",
"a",
"String",
"?"
] | [
"O",
"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",
"B-Data_Type",
"O"
] |
[
"Note",
"that",
"equality",
"is",
"very",
"hard",
"to",
"get",
"right",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"People",
"cannot",
"even",
"agree",
"on",
"what",
"it",
"means",
"in",
"a",
"purely",
"functional",
"language",
",",
"and",
"that",
"'s",
"the",
"easy",
"case",
"!"
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"In",
"Ruby",
",",
"there",
"are",
"two",
"additional",
"complications",
":",
"mutable",
"state",
"and",
"OO",
"."
] | [
"O",
"B-Language",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"Mutable",
"state",
"means",
"that",
"two",
"objects",
"that",
"were",
"equal",
"a",
"moment",
"ago",
"may",
"not",
"be",
"equal",
"anymore",
"a",
"couple",
"of",
"moments",
"later",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"Or",
"should",
"they",
"be",
"?"
] | [
"O",
"O",
"O",
"O",
"O"
] |
[
"Or",
"should",
"n't",
"they",
"be",
"?"
] | [
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"And",
"OO",
"means",
"that",
"equality",
"cannot",
"be",
"symmetric",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"That",
"'s",
"why",
"the",
"implementations",
"of",
"==",
"for",
"various",
"core",
"and",
"stdlib",
"classes",
"are",
"constantly",
"improved",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-Function",
"O",
"O",
"O",
"O",
"B-Library",
"O",
"O",
"O",
"O",
"O"
] |
[
"That",
"'s",
"also",
"why",
"you",
"may",
"see",
"weird",
"behavior",
"now",
"and",
"again",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |