tokens
sequence | ner_tags
sequence |
---|---|
[
"MySubclassedViewController.h"
] | [
"B-File_Name"
] |
[
"MySubclassedViewController.m"
] | [
"B-File_Name"
] |
[
"B",
":",
"Category",
"(",
"you",
"just",
"want",
"to",
"add",
"some",
"extra",
"method",
"to",
"a",
"class",
")",
":"
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"UIViewController+",
"SpecialCatrgory.h"
] | [
"B-Class",
"B-File_Name"
] |
[
"UIViewController+",
"SpecialCatrgory.m"
] | [
"B-Class",
"B-File_Name"
] |
[
"C",
":",
"Dedicated",
"helper",
"class"
] | [
"O",
"O",
"O",
"O",
"O"
] |
[
"On",
"the",
"other",
"hand",
"if",
"you",
"find",
"yourself",
"using",
"some",
"independent",
"method",
"on",
"more",
"than",
"one",
"place",
"you",
"might"
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"want",
"to",
"consider",
"writing",
"up",
"a",
"helper",
"class",
"and",
"use",
"it",
"as",
"a",
"singleton",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"MyHelperClass.h"
] | [
"B-File_Name"
] |
[
"MyHelperClass.m"
] | [
"B-File_Name"
] |
[
"You",
"use",
"it",
"simply",
"by",
"importing",
"MyHelperClass.h",
"(",
"or",
"putting",
"it",
"in",
"-Prefix.pch",
")",
",",
"without",
"explicitly",
"creating",
"an",
"instance",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-File_Name",
"O",
"O",
"O",
"O",
"O",
"B-File_Name",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"For",
"example",
":"
] | [
"O",
"O",
"O"
] |
[
"I",
"am",
"trying",
"to",
"implement",
"a",
"queue",
",",
"dequeueing",
"and",
"requeueing",
"in",
"a",
"single",
"channel",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-Data_Structure",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"I",
"have",
"two",
"questions",
":"
] | [
"O",
"O",
"O",
"O",
"O"
] |
[
"why",
"do",
"I",
"obtain",
"a",
"deadlock",
"?"
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"I",
"was",
"expecting",
"an",
"infinite",
"loop",
"(",
"since",
"I",
"am",
"requeueing",
"even",
"elements",
"which",
"generate",
"more",
"elements",
"and",
"so",
"on",
")",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"Should",
"n't",
"the",
"range",
"queue",
"always",
"listening",
"to",
"the",
"channel",
"?"
] | [
"O",
"O",
"O",
"B-Code_Block",
"I-Code_Block",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"this",
"is",
"part",
"of",
"the",
"print",
"before",
"the",
"deadloks",
":"
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"Are",
"two",
"different",
"goroutines",
"dequeueing",
"the",
"same",
"element",
"?"
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"I",
"do",
"n't",
"understand",
"why",
"this",
"data",
"race",
";",
"I",
"thought",
"that",
"the",
"range",
"would",
"pick",
"one",
"per",
"time",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Code_Block",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"Code",
"in",
"Playground"
] | [
"O",
"O",
"B-Application"
] |
[
"When",
"a",
"range",
"loop",
"over",
"a",
"channel",
"reaches",
"the",
"end",
"of",
"the",
"channel",
"'s",
"buffer",
"(",
"if",
"the",
"channel",
"has",
"one",
")",
"it",
"will",
"block",
",",
"waiting",
"for",
"more",
"elements",
"to",
"be",
"sent",
"through",
"the",
"channel",
"."
] | [
"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",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"If",
"there",
"are",
"no",
"other",
"running",
"or",
"runnable",
"goroutines",
"then",
"we",
"'ve",
"reached",
"a",
"deadlock",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"Minimal",
"example",
":"
] | [
"O",
"O",
"O"
] |
[
"http://play.golang.org/p/Vb4-RFEmm3"
] | [
"O"
] |
[
"No",
"."
] | [
"O",
"O"
] |
[
"What",
"'s",
"happening",
"is",
"that",
"this",
"line",
"(",
"26",
")",
":"
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"instructs",
"Go",
"'s",
"runtime",
"to",
"schedule",
"a",
"new",
"goroutine",
",",
"it",
"does",
"not",
"necessarily",
"execute",
"immediately",
"."
] | [
"O",
"B-Language",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"When",
"the",
"goroutine",
"effectively",
"runs",
",",
"new",
"'s",
"value",
"is",
"1001",
",",
"not",
"1000",
"as",
"printed",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-Variable",
"O",
"O",
"O",
"B-Value",
"O",
"O",
"B-Value",
"O",
"O",
"O"
] |
[
"It",
"'s",
"a",
"scope",
"problem",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"This",
"happens",
"a",
"lot",
"when",
"getting",
"started",
"with",
"go",
"func()",
"{",
"...",
"}",
";",
"it",
"might",
"be",
"more",
"common",
"than",
"real",
"problems",
"with",
"concurrency",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Code_Block",
"I-Code_Block",
"B-Code_Block",
"I-Code_Block",
"I-Code_Block",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"There",
"are",
"sections",
"in",
"the",
"FAQ",
"and",
"the",
"Go",
"wiki",
"about",
"it",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Language",
"O",
"O",
"O",
"O"
] |
[
"The",
"anonymous",
"func",
"you",
"create",
"gets",
"a",
"reference",
"to",
"a",
"variable",
"in",
"the",
"outer",
"scope",
",",
"not",
"to",
"its",
"value",
"at",
"the",
"time",
"the",
"func",
"statement",
"runs",
"."
] | [
"O",
"O",
"B-Code_Block",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Code_Block",
"O",
"O",
"O"
] |
[
"And",
"that",
"loop",
"variable",
"is",
"updated",
"each",
"pass",
"through",
"the",
"loop",
",",
"so",
"it",
"changes",
"between",
"your",
"go",
"statement",
"and",
"when",
"the",
"goroutine",
"actually",
"runs",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Code_Block",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"You",
"can",
"work",
"around",
"this",
"by",
"declaring",
"another",
"variable",
"during",
"each",
"iteration",
"of",
"the",
"loop",
"(",
"i.e",
".",
",",
"inside",
"the",
"for",
"braces",
")",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Code_Block",
"O",
"O",
"O"
] |
[
"If",
"your",
"loop",
"was",
"for",
"i",
":=",
"range",
"arr",
"{",
"...",
"}",
"you",
"could",
"just",
"add",
"i",
":=",
"i",
"."
] | [
"O",
"O",
"O",
"O",
"B-Code_Block",
"I-Code_Block",
"I-Code_Block",
"I-Code_Block",
"I-Code_Block",
"B-Code_Block",
"I-Code_Block",
"I-Code_Block",
"O",
"O",
"O",
"O",
"B-Code_Block",
"I-Code_Block",
"I-Code_Block",
"O"
] |
[
"So",
",",
"this",
"bad",
"version",
":"
] | [
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"always",
"...",
"prints",
"9",
"."
] | [
"O",
"O",
"O",
"B-Value",
"O"
] |
[
"A",
"fixed",
"version",
",",
"redeclaring",
"i",
"inside",
"the",
"loop",
":"
] | [
"O",
"O",
"O",
"O",
"O",
"B-Variable",
"O",
"O",
"O",
"O"
] |
[
"prints",
"..",
"0-9",
"."
] | [
"O",
"O",
"B-Value",
"O"
] |
[
"A",
"different",
",",
"arguably",
"more",
"elegant",
"way",
"to",
"redeclare",
"i",
"is",
"to",
"make",
"it",
"a",
"param",
"of",
"the",
"anonymous",
"func",
";",
"then",
"it",
"'s",
"not",
"a",
"weird-looking",
"standalone",
"statement",
":"
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Variable",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Code_Block",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"Here",
"'s",
"that",
"code",
"."
] | [
"O",
"O",
"O",
"O",
"O"
] |
[
"For",
"all",
"of",
"the",
"Playground",
"versions",
",",
"I",
"had",
"to",
"add",
"synchronization",
"so",
"main",
"would",
"n't",
"exit",
"before",
"the",
"goroutines",
"run",
"."
] | [
"O",
"O",
"O",
"O",
"B-Application",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Function",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"It",
"'s",
"confusing",
"that",
"a",
"declaration",
"that",
"\"",
"runs",
"\"",
"once",
"each",
"time",
"through",
"the",
"loop",
"behaves",
"differently",
"(",
"weird",
"way",
"for",
"scope",
"to",
"manifest",
")",
"but",
"the",
"way",
"to",
"get",
"around",
"it",
"is",
"straightforward",
"enough",
"."
] | [
"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"
] |
[
"In",
"your",
"case",
":",
"queue",
"<",
"-",
"new",
"can",
"run",
"at",
"any",
"time",
",",
"and",
"it",
"turns",
"out",
"to",
"run",
"after",
"you",
"'ve",
"gone",
"through",
"the",
"for",
"_",
",",
"new",
"loop",
"entirely",
"."
] | [
"O",
"O",
"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",
"B-Code_Block",
"I-Code_Block",
"I-Code_Block",
"I-Code_Block",
"O",
"O",
"O"
] |
[
"However",
",",
"it",
"uses",
"whatever",
"the",
"value",
"of",
"new",
"is",
"as",
"of",
"when",
"it",
"actually",
"runs",
",",
"not",
"as",
"of",
"when",
"the",
"go",
"statement",
"was",
"executed",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Variable",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Language",
"O",
"O",
"O",
"O"
] |
[
"In",
"this",
"case",
",",
"both",
"the",
"goroutines",
"you",
"start",
"get",
"the",
"value",
"1001",
",",
"the",
"so",
"second",
"time",
"through",
"both",
"values",
"passed",
"into",
"enqueue",
"are",
"odd",
"(",
"you",
"can",
"see",
"that",
"as",
"two",
"using",
"1001s",
"in",
"your",
"output",
")",
"so",
"nothing",
"writes",
"to",
"the",
"queue",
",",
"so",
"there",
"is",
"nothing",
"for",
"the",
"range",
"queue",
"loop",
"to",
"consume",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Value",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Function",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Output_Block",
"I-Output_Block",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Data_Structure",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Code_Block",
"I-Code_Block",
"O",
"O",
"O",
"O"
] |
[
"The",
"channel",
"is",
"n't",
"closed",
"either",
",",
"so",
"the",
"main",
"ca",
"n't",
"just",
"end",
",",
"so",
"you",
"get",
"a",
"deadlock",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Function",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"You",
"want",
"a",
"different",
"value",
"to",
"be",
"\"",
"captured",
"\"",
"for",
"each",
"execution",
"of",
"the",
"goroutine",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"For",
"that",
",",
"you",
"can",
"put",
"new",
":=",
"new",
"at",
"the",
"top",
"of",
"the",
"loop",
",",
"as",
"funny",
"as",
"that",
"looks",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-Code_Block",
"I-Code_Block",
"I-Code_Block",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"That",
"'s",
"enough",
"to",
"make",
"the",
"value",
"from",
"each",
"iteration",
"a",
"\"",
"different",
"var",
"\"",
"from",
"Go",
"'s",
"perspective",
",",
"so",
"you",
"get",
"1000",
"and",
"1001",
"inserted",
"in",
"the",
"channel",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Data_Type",
"O",
"O",
"B-Language",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Value",
"O",
"B-Value",
"O",
"O",
"O",
"O",
"O"
] |
[
"Once",
"you",
"'ve",
"actually",
"got",
"it",
"working",
",",
"the",
"Playground",
"wo",
"n't",
"actually",
"run",
"your",
"code",
"successfully",
"because",
"it",
"loops",
"forever",
"and",
"there",
"are",
"a",
"zillion",
"goroutines",
"running",
"and",
"I",
"guess",
"the",
"Playground",
"does",
"n't",
"like",
"that",
"(",
"overusing",
"resources",
")",
"."
] | [
"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",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Application",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"If",
"you",
"add",
"a",
"limit",
"of",
"100",
"elements",
"dequeued",
"before",
"quitting",
",",
"you",
"get",
"http://play.golang.org/p/bBM3uTnvxi",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"You",
"'ll",
"also",
"notice",
"the",
"numbers",
"it",
"outputs",
"get",
"weird",
"because",
"multiplying",
"by",
"100",
"each",
"time",
"will",
"eventually",
"overflow",
"the",
"machine",
"'s",
"int",
"type",
",",
"but",
"that",
"'s",
"just",
"how",
"it",
"goes",
"writing",
"programs",
"in",
"lowish-level",
"languages",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Value",
"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",
"O"
] |
[
"As",
"a",
"minor",
"thing",
",",
"you",
"probably",
"do",
"n't",
"want",
"to",
"name",
"a",
"variable",
"new",
"because",
"that",
"'s",
"also",
"the",
"name",
"of",
"a",
"built-in",
"function",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Variable",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"It",
"'s",
"legal",
"to",
"do",
"so",
",",
"just",
"confusing",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"(",
"It",
"can",
"be",
"kind",
"of",
"reflexive",
"to",
"name",
"a",
"length",
"variable",
"len",
",",
"especially",
"if",
"nothing",
"was",
"wrong",
"with",
"that",
"in",
"the",
"language",
"you",
"'re",
"coming",
"from",
".",
")"
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Variable",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"I",
"wish",
"I",
"could",
"ask",
"this",
"question",
"in",
"context",
",",
"but",
"I",
"do",
"n't",
"have",
"enough",
"rep",
"to",
"comment",
"and",
"ask",
"my",
"question",
"there",
",",
"so",
"I",
"have",
"to",
"make",
"a",
"new",
"post",
"."
] | [
"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",
"am",
"trying",
"to",
"use",
"the",
"code",
"from",
"this",
"comment",
":"
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"https://stackoverflow.com/a/21034111/432509"
] | [
"O"
] |
[
"I",
"am",
"working",
"in",
"Python",
"in",
"Houdini",
"at",
"school",
",",
"so",
"I",
"am",
"limited",
"on",
"what",
"libraries",
"I",
"can",
"utilize",
"to",
"what",
"they",
"have",
"installed",
",",
"so",
"I",
"was",
"going",
"to",
"use",
"the",
"pure",
"python",
"implementation",
"to",
"write",
"some",
"data",
"out",
"as",
"a",
"PNG",
"map",
",",
"but",
"I",
"am",
"running",
"into",
"an",
"error",
"in",
"this",
"line",
":"
] | [
"O",
"O",
"O",
"O",
"B-Language",
"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",
"B-Language",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-File_Type",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"I",
"am",
"getting",
"the",
"following",
"error",
":"
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"Unfortunately",
"I",
"am",
"not",
"familiar",
"with",
"all",
"of",
"this",
"syntax",
"and",
"as",
"such",
"I",
"am",
"not",
"able",
"to",
"repair",
"the",
"error",
"myself",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"Any",
"clues",
"?"
] | [
"O",
"O",
"O"
] |
[
"How",
"does",
"one",
"inject",
"state",
"into",
"ring",
"handlers",
"most",
"conveniently",
"(",
"without",
"using",
"global",
"vars",
")",
"?"
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-Library",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Data_Type",
"O",
"O",
"O"
] |
[
"Here",
"is",
"an",
"example",
":"
] | [
"O",
"O",
"O",
"O",
"O"
] |
[
"I",
"would",
"like",
"to",
"get",
"the-state",
"into",
"the",
"compojure",
"handler",
"for",
"main-routes",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"B-Variable",
"O",
"O",
"B-Library",
"O",
"O",
"B-Function",
"O"
] |
[
"The",
"state",
"might",
"be",
"something",
"like",
"a",
"map",
"created",
"with",
":"
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Data_Structure",
"O",
"O",
"O"
] |
[
"In",
"a",
"non",
"ring",
"application",
"I",
"would",
"create",
"the",
"state",
"in",
"a",
"main",
"function",
"and",
"start",
"injecting",
"it",
",",
"or",
"parts",
"of",
"it",
",",
"as",
"function",
"parameters",
"to",
"the",
"different",
"components",
"of",
"the",
"application",
"."
] | [
"O",
"O",
"O",
"B-Library",
"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",
"O",
"O"
] |
[
"Can",
"something",
"similar",
"be",
"done",
"with",
"ring",
"'s",
":init",
"function",
"without",
"using",
"a",
"global",
"var",
"?"
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-Library",
"O",
"B-Function",
"O",
"O",
"O",
"O",
"B-Data_Type",
"O",
"O"
] |
[
"The",
"\"",
"correct",
"\"",
"way",
"to",
"do",
"this",
"is",
"to",
"use",
"a",
"dynamically",
"bound",
"var",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"You",
"define",
"a",
"var",
"with",
":"
] | [
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"And",
"then",
"you",
"create",
"some",
"ring",
"middleware",
"which",
"binds",
"the",
"var",
"for",
"each",
"handler",
"call",
":"
] | [
"O",
"O",
"O",
"O",
"O",
"B-Library",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"You",
"would",
"use",
"this",
"to",
"inject",
"dependencies",
"by",
"using",
"this",
"in",
"your",
"'",
"main",
"'",
"function",
"where",
"you",
"launch",
"the",
"server",
":"
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Function",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Application",
"O"
] |
[
"I",
"'ve",
"seen",
"this",
"done",
"a",
"couple",
"of",
"ways",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"The",
"first",
"is",
"using",
"middleware",
"that",
"injects",
"the",
"state",
"as",
"a",
"new",
"key",
"in",
"the",
"request",
"map",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Data_Structure",
"O"
] |
[
"For",
"instance",
":"
] | [
"O",
"O",
"O"
] |
[
"The",
"other",
"approach",
"is",
"to",
"replace",
"the",
"call",
"to",
"defroutes",
",",
"which",
"behind",
"the",
"scenes",
"will",
"create",
"a",
"handler",
"and",
"assign",
"it",
"to",
"a",
"var",
",",
"with",
"a",
"function",
"that",
"will",
"accept",
"some",
"state",
"and",
"then",
"create",
"the",
"routes",
",",
"injecting",
"the",
"state",
"as",
"parameters",
"to",
"function",
"calls",
"within",
"the",
"route",
"definitions",
":"
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Code_Block",
"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-Function",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Function",
"O",
"O"
] |
[
"Given",
"a",
"choice",
",",
"I",
"'d",
"probably",
"go",
"with",
"the",
"second",
"approach",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"I",
"have",
"a",
"NSTableview",
"which",
"shows",
"50",
"rows",
"currently",
"which",
"is",
"fixed",
"static",
"."
] | [
"O",
"O",
"O",
"B-Class",
"O",
"O",
"O",
"B-User_Interface_Element",
"O",
"O",
"O",
"O",
"B-Data_Type",
"O"
] |
[
"Now",
"I",
"want",
"to",
"add",
"a",
"feature",
"into",
"it",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"I",
"want",
"to",
"add",
"a",
"more",
"50",
"rows",
"to",
"the",
"table",
"when",
"user",
"reach",
"to",
"the",
"last",
"row",
"of",
"the",
"NSTableView",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-User_Interface_Element",
"O",
"O",
"B-User_Interface_Element",
"O",
"O",
"O",
"O",
"O",
"O",
"B-User_Interface_Element",
"O",
"O",
"B-Class",
"O"
] |
[
"I",
"mean",
"currently",
"I",
"am",
"showing",
"fixed",
"50",
"rows",
"in",
"the",
"application",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-User_Interface_Element",
"O",
"O",
"O",
"O"
] |
[
"But",
"now",
"I",
"want",
"to",
"add",
"50",
"more",
"rows",
"whenever",
"user",
"reaches",
"to",
"the",
"last",
"row",
"of",
"previous",
"NsTableview",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-User_Interface_Element",
"O",
"O",
"O",
"O",
"O",
"O",
"B-User_Interface_Element",
"O",
"O",
"B-Class",
"O"
] |
[
"Please",
"give",
"me",
"any",
"suggestions",
"or",
"any",
"sample",
"code",
"to",
"achieve",
"my",
"motive",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"Thanks",
"in",
"advance",
"."
] | [
"O",
"O",
"O",
"O"
] |
[
"What",
"i",
"have",
"done",
"is",
"(",
"This",
"code",
"does",
"not",
"work",
"with",
"row",
"selected",
"(",
"Down",
"key",
"pressed",
")",
",",
"and",
"does",
"not",
"load",
"new",
"rows",
")",
"-"
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-User_Interface_Element",
"O",
"O",
"B-Keyboard_IP",
"I-Keyboard_IP",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-User_Interface_Element",
"O",
"O"
] |
[
"Trying",
"to",
"use",
"features",
"from",
"OpenMP",
"3"
] | [
"O",
"O",
"O",
"O",
"O",
"B-Library",
"B-Version"
] |
[
"in",
"Visual",
"Studio",
"2017",
";",
"i",
"'m",
"getting",
"error",
"c3005",
":",
"'",
"collapse",
"'",
"unexpected",
"token",
"encountered",
"on",
"openmp",
"'",
"parallel",
"for",
"'",
"directive"
] | [
"O",
"B-Application",
"I-Application",
"B-Version",
"O",
"O",
"O",
"O",
"B-Error_Name",
"I-Error_Name",
"O",
"B-Output_Block",
"I-Output_Block",
"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",
"B-Output_Block",
"I-Output_Block"
] |
[
"It",
"seems",
"Visual",
"Studio",
"2017",
"only",
"supports",
"OpenMP2",
"."
] | [
"O",
"O",
"B-Application",
"I-Application",
"B-Version",
"O",
"O",
"B-Library",
"O"
] |
[
"In",
"a",
"request",
"to",
"support",
"OpenMP4.5",
"it",
"was",
"said",
"from",
"VS",
"team"
] | [
"O",
"O",
"O",
"O",
"O",
"B-Library",
"O",
"O",
"O",
"O",
"B-Application",
"O"
] |
[
"Another",
"answer",
"said"
] | [
"O",
"O",
"O"
] |
[
"How",
"to",
"use",
"clang-cl",
"with",
"Visual",
"Studio",
"2017",
"and",
"what",
"is",
"the",
"fallback",
"option",
"?"
] | [
"O",
"O",
"O",
"B-Application",
"O",
"B-Application",
"I-Application",
"B-Version",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"You",
"may",
"obtain",
"clang-cl",
"from",
"http://llvm.org/builds/"
] | [
"O",
"O",
"O",
"B-Application",
"O",
"O"
] |
[
"But",
"you",
"may",
"run",
"into",
"integration",
"issues",
"starting",
"with",
"VS2017",
":"
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Application",
"O"
] |
[
"https://bugs.llvm.org/show_bug.cgi?id=33672"
] | [
"O"
] |
[
"https://www.reddit.com/r/cpp/comments/6oepq4/making_windows_clang_401_play_nice_with_visual/"
] | [
"O"
] |
[
"There",
"is",
"an",
"attempt",
"at",
"solving",
"this",
":"
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"https://github.com/WubbaLubba/LlvmForVS2017"
] | [
"O"
] |
[
"/fallback",
"is",
"a",
"clang-cl",
"option",
"which",
"makes",
"it",
"fall",
"back",
"to",
"Microsoft",
"'s",
"compiler",
"if",
"it",
"ca",
"n't",
"compile",
"something",
"itself",
"."
] | [
"B-Code_Block",
"O",
"O",
"B-Application",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Organization",
"O",
"B-Application",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |