tokens list | ner_tags list |
|---|---|
[
"Example",
"using",
"PHP"
] | [
"O",
"O",
"B-Language"
] |
[
"The",
"following",
"code",
"is",
"an",
"example",
"in",
"PHP",
"retrieving",
"the",
"CSV",
"(",
"using",
"cURL",
")",
"and",
"parsing",
"it",
"into",
"an",
"array",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Language",
"O",
"O",
"B-File_Type",
"O",
"O",
"B-Library",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Data_Structure",
"O"
] |
[
"From",
"what",
"you",
"are",
"describing",
",",
"this",
"sounds",
"like",
"an",
"issue",
"with",
"the",
"Database",
"taking",
"the",
"time",
"to",
"generate",
"the",
"results",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"If",
"this",
"is",
"the",
"case",
",",
"do",
"you",
"know",
"if",
"there",
"are",
"any",
"indexes",
"on",
"the",
"database",
"being",
"queried",
"?"
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"If",
"you",
"are",
"querying",
"data",
"across",
"multiple",
"linked",
"tables",
"(",
"which",
"it",
"looks",
"&",
"sounds",
"like",
"you",
"are",
")",
",",
"without",
"any",
"indexes",
",",
"then",
"the",
"queries",
"will",
"run",
"like",
"a",
"dog",
... | [
"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",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"This",
"website",
"offers",
"a",
"good",
"introduction",
"to",
"indexes",
"that",
"may",
"be",
"worth",
"taking",
"a",
"look",
"at",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"Other",
"than",
"this",
",",
"it",
"may",
"be",
"prevalent",
"to",
"setup",
"a",
"cron",
"to",
"automate",
"the",
"process",
"for",
"you",
"like",
"Anusha",
"has",
"described",
"in",
"the",
"comments",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Application",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-User_Name",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"I",
"would",
"recommend",
"looking",
"into",
"indexes",
"as",
"well",
"as",
"setting",
"up",
"the",
"cron",
"jobs",
",",
"as",
"rather",
"than",
"just",
"cut",
"down",
"the",
"amount",
"of",
"time",
"it",
"takes",
"for",
"you",
"to",
"generate",
"the",
... | [
"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",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"... |
[
"I",
"have",
"an",
"EF",
"model",
"where",
"I",
"logically",
"have",
"a",
"\"",
"template",
"\"",
"type",
"and",
"an",
"\"",
"instance",
"of",
"the",
"template",
"type",
"\""
] | [
"O",
"O",
"O",
"B-Library",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Class",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"Basically",
"my",
"templates",
"are",
"like",
"a",
"work",
"flow",
"and",
"the",
"instances",
"are",
"those",
"templates",
"applied",
"to",
"an",
"object",
"."
] | [
"O",
"O",
"B-Class",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Class",
"O",
"O",
"O",
"O",
"O"
] |
[
"The",
"association",
"is",
"that",
"a",
"template",
"has",
"zero",
"to",
"many",
"instances",
",",
"an",
"instance",
"is",
"always",
"based",
"on",
"a",
"template",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"B-Class",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Class",
"O"
] |
[
"For",
"example",
"the",
"template",
"may",
"be",
"\"",
"send",
"letter",
"\"",
"which",
"gets",
"applied",
"to",
"a",
"customer",
"to",
"create",
"an",
"instance",
"of",
"the",
"letter",
"sent",
",",
"which",
"includes",
"the",
"date",
"sent",
",",
"the... | [
"O",
"O",
"O",
"B-Class",
"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",
"O",
"O",
"O"
] |
[
"The",
"templates",
"have",
"a",
"few",
"subclasses/types",
"which",
"will",
"always",
"match",
"an",
"instance",
"which",
"also",
"has",
"a",
"corresponding",
"subclass",
"."
] | [
"O",
"B-Class",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"The",
"issue",
"is",
"how",
"can",
"I",
"ensure",
"that",
"when",
"I",
"create",
"an",
"instance",
"(",
"which",
"will",
"have",
"a",
"reference",
"to",
"the",
"template",
")",
"that",
"the",
"instance",
"is",
"of",
"the",
"correct",
"inherited",
"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",
"O",
"O"
] |
[
"For",
"example",
"if",
"the",
"template",
"is",
"of",
"type",
"TemplateType2",
"(",
"inherits",
"from",
"template",
")",
"and",
"I",
"add",
"an",
"instance",
"to",
"loan1",
".",
".",
"loan1.TemplateInstances.add(foo)",
"…",
"I",
"want",
"to",
"ensure",
"tha... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Class",
"O",
"O",
"O",
"B-Class",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Variable",
"O",
"O",
"B-Function",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Variable",
"O",
"O",
"O",
"B-Class",
"O"
] |
[
"The",
"way",
"I",
"am",
"doing",
"it",
"now",
"seems",
"like",
"such",
"a",
"hack",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"I",
"am",
"storing",
"the",
"instance",
"entity",
"name",
"as",
"a",
"scalar",
"value",
"in",
"the",
"template",
"entity",
",",
"and",
"using",
"reflection",
"to",
"create",
"the",
"correct",
"type",
"of",
"the",
"instance",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Class",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"It",
"works",
",",
"but",
"it",
"is",
"basically",
"using",
"the",
"value",
"of",
"a",
"property",
"to",
"do",
"mapping",
",",
"exposing",
"the",
"possibility",
"of",
"all",
"sorts",
"of",
"errors",
"if",
"they",
"do",
"not",
"match",
"the",
"name",
"... | [
"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",
"... |
[
"Any",
"ideas",
"or",
"thoughts",
"how",
"to",
"tackle",
"this",
"issue",
"?"
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"I",
"ended",
"up",
"solving",
"this",
"through",
"a",
"bit",
"of",
"a",
"hack",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"I",
"used",
"naming",
"conventions",
"and",
"adding",
"my",
"own",
"handler",
"to",
"the",
"context",
"savingchanges",
"method"
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Function",
"O"
] |
[
"and",
"then",
"a",
"bit",
"of",
"reflection",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"Not",
"the",
"best",
"solution",
"but",
"it",
"works",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"the",
"main",
"part",
"..",
"."
] | [
"O",
"O",
"O",
"O",
"O"
] |
[
"I",
"'m",
"trying",
"to",
"parse",
"a",
"string",
"with",
"parentheses",
"of",
"the",
"form",
"((Question)(Left_Node)(right_node))",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-Data_Type",
"O",
"O",
"O",
"O",
"O",
"B-Code_Block",
"O"
] |
[
"The",
"question",
"for",
"example",
"will",
"be",
"of",
"the",
"form",
"\"",
"if",
"segment",
"size",
"<",
"1.5",
",",
"then",
"choose",
"left",
"node",
",",
"else",
"right",
"\"",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Value",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"The",
"question",
"can",
"be",
"a",
"dictionary",
"with",
"a",
"key",
"and",
"a",
"value",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"B-Data_Structure",
"O",
"O",
"B-Variable",
"O",
"O",
"B-Variable",
"O"
] |
[
"The",
"left",
"and",
"right",
"node",
"represent",
"a",
"complete",
"left",
"or",
"right",
"half",
"tree",
",",
"which",
"will",
"be",
"traversed",
"recursively",
"until",
"the",
"leaf",
"node",
"is",
"reached",
"."
] | [
"O",
"O",
"O",
"O",
"B-Data_Structure",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Data_Structure",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Data_Structure",
"O",
"O",
"O"
] |
[
"In",
"this",
"manner",
"we",
"will",
"build",
"a",
"binary",
"decision",
"tree",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Data_Structure",
"O"
] |
[
"If",
"you",
"can",
"decide",
"on",
"the",
"details",
"of",
"the",
"input",
"format",
",",
"then",
"use",
"raw",
"python",
"source",
"code",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Language",
"O",
"O",
"O"
] |
[
"For",
"example",
"you",
"can",
"store",
"your",
"tree",
"in",
"a",
"python",
"dictionary",
"of",
"nodes",
":"
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-Data_Structure",
"O",
"O",
"B-Language",
"B-Data_Structure",
"O",
"B-Data_Structure",
"O"
] |
[
"Now",
"you",
"can",
"parse",
"this",
"tree",
"simply",
"with",
"the",
"python",
"parser",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"B-Data_Structure",
"O",
"O",
"O",
"B-Language",
"O",
"O"
] |
[
"Well",
",",
"if",
"the",
"input",
"format",
"is",
"already",
"specified",
",",
"then",
"we",
"cannot",
"help",
"you",
"if",
"you",
"do",
"n't",
"share",
"the",
"details",
"of",
"that",
"format",
"."
] | [
"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"
] |
[
"This",
"kind",
"of",
"syntax",
"is",
"really",
"the",
"target",
"for",
"pyparsing",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Library",
"O"
] |
[
"The",
"basic",
"format",
"is",
"simple",
"enough",
",",
"and",
"in",
"pyparsing",
",",
"it",
"looks",
"like",
":"
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Library",
"O",
"O",
"O",
"O",
"O"
] |
[
"But",
"once",
"you",
"start",
"to",
"add",
"arithmetic",
"expressions",
",",
"and",
"boolean",
"operations",
"and",
"support",
"for",
"'",
"and",
"'",
"and",
"'",
"or",
"'",
"operators",
",",
"things",
"get",
"complicated",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Code_Block",
"O",
"O",
"O",
"B-Code_Block",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"Also",
",",
"this",
"is",
"a",
"recursive",
"grammar",
",",
"since",
"an",
"action",
"can",
"itself",
"be",
"a",
"nested",
"decision",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"Pyparsing",
"has",
"built-in",
"support",
"that",
"simplifies",
"definition",
"of",
"arithmetic",
"and",
"boolean",
"expressions",
",",
"including",
"precedence",
"of",
"operations",
"and",
"gruping",
"in",
"parentheses",
",",
"plus",
"recursive",
"expressions",
".... | [
"B-Library",
"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",
"O"
] |
[
"Here",
"is",
"the",
"pyparsing",
"grammar",
"in",
"various",
"pieces",
"."
] | [
"O",
"O",
"O",
"B-Library",
"O",
"O",
"O",
"O",
"O"
] |
[
"First",
"here",
"are",
"some",
"of",
"the",
"basic",
"parsing",
"elements",
":"
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"The",
"parse",
"action",
"attached",
"to",
"the",
"number",
"expression",
"will",
"automatically",
"convert",
"the",
"parsed",
"number",
"to",
"a",
"float",
"value",
"at",
"parse",
"time",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Data_Type",
"O",
"O",
"O",
"O",
"O"
] |
[
"The",
"Word",
"class",
"takes",
"two",
"strings",
":",
"a",
"string",
"containing",
"all",
"valid",
"leading",
"characters",
",",
"and",
"a",
"string",
"of",
"all",
"valid",
"body",
"characters",
"."
] | [
"O",
"B-Class",
"O",
"O",
"O",
"B-Data_Type",
"O",
"O",
"B-Data_Type",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Data_Type",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"This",
"varname",
"definition",
"supports",
"variable",
"names",
"similar",
"to",
"Python",
"identifiers",
"."
] | [
"O",
"B-Variable",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Language",
"O",
"O"
] |
[
"Pyparsing",
"has",
"the",
"operatorPrecedence",
"method",
"that",
"takes",
"an",
"expression",
"for",
"the",
"basic",
"operand",
"definition",
",",
"and",
"a",
"list",
"of",
"tuples",
"to",
"define",
"each",
"level",
"of",
"operators",
":",
"an",
"expression"... | [
"B-Library",
"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",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Data_Type",
"O",
"O",
"O",
"O",
"O",
"O",
"O... |
[
"operatorPrecedence",
"takes",
"care",
"of",
"the",
"recursive",
"definition",
"of",
"arithmetic",
"expressions",
"nested",
"in",
"parentheses",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"This",
"expression",
"defines",
"basic",
"4-function",
"math",
":"
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"Now",
"here",
"is",
"the",
"definition",
"of",
"a",
"boolean",
"condition",
"(",
"which",
"we",
"'ll",
"eventually",
"use",
"to",
"define",
"the",
"decision",
"question",
")",
":"
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"Your",
"definition",
"of",
"actions",
"was",
"a",
"little",
"sketchy",
",",
"so",
"I",
"made",
"up",
"some",
"possible",
"statements",
":",
"an",
"assignment",
"statement",
",",
"a",
"print",
"statement",
",",
"and",
"since",
"this",
"is",
"a",
"speech",
... | [
"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"
] |
[
"In",
"addition",
"to",
"the",
"expression",
"definitions",
",",
"you",
"'ll",
"notice",
"that",
"some",
"expressions",
"are",
"followed",
"by",
"a",
"quoted",
"string",
",",
"as",
"if",
"the",
"expression",
"is",
"a",
"function",
"being",
"called",
"with",
... | [
"O",
"O",
"O",
"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",
"B-Data_Type",
"O"
] |
[
"In",
"fact",
",",
"this",
"\"",
"call",
"\"",
"actually",
"returns",
"a",
"copy",
"of",
"the",
"expression",
",",
"and",
"the",
"matched",
"tokens",
"are",
"tagged",
"with",
"that",
"name",
"."
] | [
"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"
] |
[
"These",
"results",
"names",
"are",
"very",
"helpful",
"at",
"post-parsing",
"time",
"at",
"picking",
"out",
"the",
"individual",
"matching",
"elements",
"(",
"similar",
"to",
"named",
"groups",
"in",
"regular",
"expressions",
")",
"."
] | [
"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"
] |
[
"Finally",
",",
"to",
"put",
"these",
"pieces",
"together",
"into",
"your",
"decision",
"expression",
",",
"here",
"are",
"the",
"question",
"and",
"action",
"expressions",
":"
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"Note",
"that",
"the",
"action",
"definition",
"can",
"include",
"a",
"decision",
",",
"but",
"action",
"is",
"used",
"to",
"define",
"decision",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"To",
"break",
"this",
"chicken-and-egg",
"dependency",
",",
"we",
"preface",
"this",
"section",
"with",
"defining",
"decision",
",",
"but",
"with",
"a",
"placeholder",
"expression",
"using",
"the",
"pyparsing",
"Forward",
"class",
":"
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Library",
"B-Class",
"O",
"O"
] |
[
"Then",
"after",
"question",
"and",
"action",
"are",
"defined",
",",
"we",
"use",
"the",
"'",
"<<",
"'",
"operator",
"to",
"\"",
"insert",
"\"",
"the",
"actual",
"expression",
"definition",
"in",
"the",
"existing",
"decision",
"variable",
":"
] | [
"O",
"O",
"B-Variable",
"O",
"B-Variable",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Code_Block",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Variable",
"O",
"O"
] |
[
"Again",
",",
"I",
"took",
"liberties",
"with",
"your",
"defined",
"format",
",",
"thinking",
"that",
"an",
"optional",
"else-clause",
"might",
"be",
"useful",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Code_Block",
"I-Code_Block",
"O",
"O",
"O",
"O"
] |
[
"If",
"you",
"do",
"n't",
"want",
"this",
"to",
"be",
"optional",
",",
"just",
"remove",
"the",
"Optional",
"wrapper",
"around",
"the",
"Group(action)(\"elseAction\")",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Code_Block",
"O",
"O",
"O",
"B-Code_Block",
"O"
] |
[
"That",
"defines",
"the",
"grammar",
",",
"now",
"here",
"are",
"some",
"test",
"cases",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"Using",
"dump()",
"on",
"the",
"results",
"returned",
"by",
"parseString",
"is",
"a",
"nice",
"way",
"to",
"print",
"out",
"the",
"tokens",
",",
"and",
"any",
"names",
"attached",
"to",
"them",
"."
] | [
"O",
"B-Function",
"O",
"O",
"O",
"O",
"O",
"B-Function",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"Here",
"'s",
"the",
"output",
":"
] | [
"O",
"O",
"O",
"O",
"O"
] |
[
"Here",
"is",
"a",
"link",
"to",
"the",
"full",
"parsing",
"program",
"-",
"http://pastebin.com/DnaNrx7j",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"This",
"is",
"just",
"the",
"first",
"stage",
",",
"parsing",
"the",
"input",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"The",
"next",
"step",
"is",
"actually",
"evaluating",
"the",
"expression",
"by",
"processing",
"the",
"returned",
"tokens",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"The",
"pyparsing",
"wiki",
"example",
"SimpleBool.py",
"(",
"http://pyparsing.wikispaces.com/file/view/simpleBool.py",
")",
"includes",
"an",
"example",
"of",
"attaching",
"parse",
"actions",
"to",
"convert",
"parsed",
"tokens",
"into",
"callable",
"class",
"instances",
... | [
"O",
"B-Library",
"O",
"O",
"B-File_Name",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"Hope",
"this",
"helps",
"."
] | [
"O",
"O",
"O",
"O"
] |
[
"I",
"have",
"noticed",
"people",
"use",
"this",
"code",
"to",
"localize"
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"Could",
"anyone",
"tell",
"me",
"what",
"CurrentUICulture",
"and",
"CurrentCulture",
"are",
"?"
] | [
"O",
"O",
"O",
"O",
"O",
"B-Variable",
"O",
"B-Variable",
"O",
"O"
] |
[
"Why",
"do",
"we",
"need",
"to",
"assign",
"same",
"value",
"to",
"both"
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"What",
"will",
"happen",
"if",
"I",
"assign",
"the",
"value",
"CultureInfo(\"fr-FR\")",
";",
"to",
"only",
"CurrentUICulture",
"or",
"CurrentCulture",
"?"
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Value",
"O",
"O",
"O",
"B-Variable",
"O",
"B-Variable",
"O"
] |
[
"I",
"would",
"really",
"like",
"to",
"know",
"in",
"detail",
"what",
"CurrentUICulture",
"and",
"CurrentCulture",
"does",
"?"
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Variable",
"O",
"B-Variable",
"O",
"O"
] |
[
"Suppose",
"client",
"pc",
"language",
"setting",
"could",
"be",
"German",
"or",
"French",
"etc",
".",
",",
"but",
"I",
"want",
"to",
"develop",
"my",
"application",
"in",
"such",
"a",
"way",
"that",
"whatever",
"language",
"setting",
"is",
"there",
",",
... | [
"O",
"O",
"B-Device",
"O",
"O",
"O",
"O",
"B-Value",
"O",
"B-Value",
"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"... |
[
"I",
"mean",
"that",
"all",
"the",
"controls",
"will",
"show",
"the",
"text",
"in",
"German",
"or",
"French",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"B-User_Interface_Element",
"O",
"O",
"O",
"O",
"O",
"B-Value",
"O",
"B-Value",
"O"
] |
[
"I",
"do",
"not",
"want",
"to",
"hard",
"code",
"the",
"culture",
"this",
"way",
"CultureInfo(\"fr-FR\")"
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Value"
] |
[
"I",
"would",
"rather",
"the",
"user",
"'s",
"language",
"setting",
"dictate",
"the",
"language",
"of",
"my",
"controls",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-User_Interface_Element",
"O"
] |
[
"How",
"would",
"I",
"go",
"about",
"doing",
"this",
"?"
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"It",
"'s",
"pretty",
"simple",
"."
] | [
"O",
"O",
"O",
"O",
"O"
] |
[
"CurrentCulture",
"is",
"the",
"culture",
"assigned",
"for",
"thread",
"to",
"be",
"used",
"in",
"various",
"culture-specific",
"methods",
"."
] | [
"B-Variable",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"To",
"example",
",",
"ToString()",
"one",
"."
] | [
"O",
"O",
"O",
"B-Function",
"O",
"O"
] |
[
"CurrentUICulture",
"is"
] | [
"B-Variable",
"O"
] |
[
"By",
"setting",
"both",
"you",
"ensure",
"what",
"all",
"ToString()",
"works",
"correctly",
"and",
"your",
"form",
"resources",
"are",
"loaded",
"from",
"appropriate",
"satellite",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Function",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"Regarding",
"usage",
",",
"you",
"may",
"think",
"to",
"provide",
"user",
"with",
"option",
"to",
"change",
"language",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"To",
"example",
",",
"I",
"have",
"native",
"German",
"windows",
",",
"but",
"I",
"set",
"English",
"culture",
"in",
"it",
"(",
"date",
"format",
"and",
"default",
"culture",
"for",
"console",
"applications",
")",
",",
"while",
"I",
"speak",
"Russian",
... | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-Value",
"O",
"O",
"O",
"O",
"O",
"B-Value",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Application",
"I-Application",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"Which",
"language",
"do",
"you",
"think",
"I",
"will",
"chose",
"when",
"using",
"your",
"software",
"?"
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"=P"
] | [
"O"
] |
[
"By",
"default",
",",
"either",
"take",
"language",
"chosen",
"in",
"installer",
"(",
"if",
"you",
"have",
"installer",
"in",
"multiple",
"languages",
"and",
"options",
"to",
"change",
"it",
"there",
")",
"or",
"current",
"Windows",
"user",
"language",
"pref... | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Application",
"O",
"O",
"O",
"O",
"B-Application",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Operating_System",
"O",
"O",
"O",
"O"
] |
[
"One",
"possible",
"scenario",
":"
] | [
"O",
"O",
"O",
"O"
] |
[
"Preconditions",
":",
"application",
"is",
"already",
"localized",
",",
"satellites",
"are",
"there",
"(",
"if",
"not",
",",
"read",
"this",
")",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"I",
"do",
"n't",
"like",
"satellites",
"myself",
",",
"but",
"they",
"are",
"easy",
"to",
"start",
"with",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"When",
"application",
"starts",
",",
"you",
"create",
"a",
"list",
"of",
"available",
"languages",
"(",
"either",
"statically",
"or",
"by",
"enumerating",
"satellites",
")",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Data_Structure",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"Then",
",",
"if",
"application",
"start",
"for",
"the",
"first",
"time",
"(",
"to",
"example",
",",
"you",
"have",
"string",
"language",
"setting",
"and",
"it",
"'s",
"by",
"default",
"null",
"or",
"\"\"",
",",
"this",
"would",
"be",
"a",
"flag",
"wha... | [
"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",
"B-Value",
"O",
"B-Value",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
... |
[
"and",
"if",
"it",
"'s",
"in",
"your",
"list",
",",
"then",
"you",
"set"
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"B-Data_Structure",
"O",
"O",
"O",
"O"
] |
[
"Otherwise",
",",
"if",
"you",
"do",
"n't",
"have",
"this",
"language",
",",
"then",
"use",
"\"",
"default",
"\"",
"language",
"(",
"to",
"example",
",",
"\"",
"en",
"\"",
")",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-Value",
"I-Value",
"I-Value",
"O",
"O"
] |
[
"If",
"its",
"done",
"at",
"at",
"the",
"start",
"of",
"your",
"application",
",",
"then",
"any",
"further",
"constructed",
"and",
"used",
"window",
"will",
"use",
"proper",
"resources",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"User",
"should",
"be",
"able",
"to",
"change",
"language",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"Give",
"him",
"possibility",
"to",
"chose",
"one",
"of",
"available",
"Languages",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"In",
"winforms",
"you",
"will",
"have",
"to",
"reload",
"forms",
"after",
"change",
"culture",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"Easiest",
"solution",
"would",
"be",
"to",
"simply",
"tell",
"user",
"what",
"\"",
"software",
"restart",
"is",
"required",
"\"",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"Newbie",
"Rails",
"coder",
"here",
"...",
".",
"spent",
"way",
"too",
"much",
"time",
"trying",
"to",
"figure",
"this",
"one",
"out",
"any",
"ideas",
"?"
] | [
"O",
"B-Library",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"The",
"following",
"script",
"works",
"on",
"my",
"dev",
"machine",
"but",
"fails",
"in",
"production",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O"
] |
[
"After",
"this",
"script",
"fails",
"-",
"when",
"I",
"check",
"/tmp",
"folder",
"the",
"\"",
"mini_magick20130627-17452-1k48fim.png",
"\"",
"file",
"is",
"actually",
"there",
"."
] | [
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"O",
"B-File_Name",
"O",
"O",
"O",
"B-File_Name",
"O",
"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.