docstring_tokens
list | code_tokens
list |
---|---|
[
"lazily",
"initialized"
] |
[
"if",
"(",
"property",
"paths",
"by",
"transient",
"entity",
"=",
"=",
"null",
")",
"{",
"property",
"paths",
"by",
"transient",
"entity",
"=",
"new",
"identity",
"hash",
"map",
"<",
">",
"(",
")",
";",
"}",
"set",
"<",
"string",
">",
"property",
"paths",
"=",
"property",
"paths",
"by",
"transient",
"entity",
"get",
"(",
"transient",
"entity",
")",
";",
"if",
"(",
"property",
"paths",
"=",
"=",
"null",
")",
"{",
"property",
"paths",
"=",
"new",
"hash",
"set",
"<",
">",
"(",
")",
";",
"property",
"paths",
"by",
"transient",
"entity",
"put",
"(",
"transient",
"entity",
",",
"property",
"paths",
")",
";",
"}",
"property",
"paths",
"add",
"(",
"property",
"name",
")",
";"
] |
[
"retrieve",
"the",
"paths",
"that",
"refer",
"to",
"the",
"transient",
"entity"
] |
[
"if",
"(",
"property",
"paths",
"by",
"transient",
"entity",
"=",
"=",
"null",
")",
"{",
"return",
"collections",
"empty",
"list",
"(",
")",
";",
"}",
"else",
"{",
"return",
"property",
"paths",
"by",
"transient",
"entity",
"get",
"(",
"entity",
")",
";",
"}"
] |
[
"are",
"there",
"any",
"paths",
"currently",
"tracked",
"here",
"?"
] |
[
"return",
"property",
"paths",
"by",
"transient",
"entity",
"=",
"=",
"null",
"|",
"|",
"property",
"paths",
"by",
"transient",
"entity",
"is",
"empty",
"(",
")",
";"
] |
[
"creates",
"a",
"new",
"{",
"@",
"code",
"thread",
"pool",
"executor",
"}",
"with",
"the",
"given",
"initial",
"parameters"
] |
[
"return",
"new",
"thread",
"pool",
"executor",
"(",
"core",
"pool",
"size",
",",
"maximum",
"pool",
"size",
",",
"keep",
"alive",
"time",
",",
"time",
"unit",
"seconds",
",",
"work",
"queue",
",",
"thread",
"factory",
",",
"handler",
")",
";"
] |
[
"get",
"the",
"maximum",
"number",
"of",
"threads",
"to",
"allow",
"in",
"the",
"thread",
"pool",
"<",
"p",
">",
"the",
"value",
"from",
"this",
"method",
"is",
"passed",
"as",
"one",
"of",
"the",
"input",
"parameters",
"in",
"a",
"call",
"to",
"the",
"{",
"@",
"link",
"#",
"create",
"executor",
"(",
"int",
"int",
"long",
"java",
"util",
"concurrent",
"blocking",
"queue",
"java",
"util",
"concurrent",
"thread",
"factory",
"java",
"util",
"concurrent",
"rejected",
"execution",
"handler",
")",
"}",
"method",
"<",
"/",
"p",
">",
"<",
"p",
">",
"the",
"method",
"can",
"be",
"overridden",
"to",
"customize",
"the",
"maximum",
"number",
"of",
"threads",
"allowed",
"in",
"the",
"provisioned",
"thread",
"pool",
"executor",
"if",
"not",
"customized",
"the",
"method",
"defaults",
"to",
"{",
"@",
"link",
"java",
"lang",
"integer",
"#",
"max",
"value",
"}",
"<",
"/",
"p",
">"
] |
[
"return",
"integer",
"max",
"value",
";"
] |
[
"get",
"the",
"thread",
"keep",
"-",
"alive",
"time",
"(",
"in",
"seconds",
")",
"<",
"p",
">",
"when",
"the",
"number",
"of",
"threads",
"in",
"the",
"provisioned",
"thread",
"pool",
"is",
"greater",
"than",
"the",
"core",
"this",
"is",
"the",
"maximum",
"time",
"(",
"in",
"seconds",
")",
"that",
"excess",
"idle",
"threads",
"will",
"wait",
"for",
"new",
"tasks",
"before",
"terminating",
"<",
"/",
"p",
">",
"<",
"p",
">",
"the",
"value",
"from",
"this",
"method",
"is",
"passed",
"as",
"one",
"of",
"the",
"input",
"parameters",
"in",
"a",
"call",
"to",
"the",
"{",
"@",
"link",
"#",
"create",
"executor",
"(",
"int",
"int",
"long",
"java",
"util",
"concurrent",
"blocking",
"queue",
"java",
"util",
"concurrent",
"thread",
"factory",
"java",
"util",
"concurrent",
"rejected",
"execution",
"handler",
")",
"}",
"method",
"<",
"/",
"p",
">",
"<",
"p",
">",
"the",
"method",
"can",
"be",
"overridden",
"to",
"customize",
"the",
"thread",
"keep",
"-",
"alive",
"time",
"in",
"the",
"provisioned",
"thread",
"pool",
"executor",
"if",
"not",
"customized",
"the",
"method",
"defaults",
"to",
":",
"<",
"ul",
">",
"<",
"li",
">",
"{",
"@",
"value",
"#",
"cached",
"pool",
"keep",
"alive",
"default",
"timeout",
"}",
"in",
"case",
"the",
"{",
"@",
"link",
"#",
"get",
"maximum",
"pool",
"size",
"(",
")",
"maximum",
"pool",
"size",
"}",
"is",
"equal",
"to",
"{",
"@",
"link",
"java",
"lang",
"integer",
"#",
"max",
"value",
"}",
"<",
"/",
"li",
">",
"<",
"li",
">",
"{",
"@",
"code",
"0l",
"}",
"in",
"case",
"the",
"maximum",
"pool",
"size",
"is",
"lower",
"than",
"{",
"@",
"code",
"java",
"lang",
"integer",
"#",
"max",
"value",
"}",
"<",
"/",
"li",
">",
"<",
"/",
"ul",
">",
"the",
"default",
"value",
"computation",
"closely",
"corresponds",
"to",
"the",
"thread",
"pool",
"executor",
"configurations",
"used",
"in",
"{",
"@",
"link",
"java",
"util",
"concurrent",
"executors",
"#",
"new",
"cached",
"thread",
"pool",
"(",
")",
"}",
"and",
"{",
"@",
"link",
"java",
"util",
"concurrent",
"executors",
"#",
"new",
"fixed",
"thread",
"pool",
"(",
"int",
")",
"}",
"methods",
"<",
"/",
"p",
">"
] |
[
"return",
"cached",
"pool",
"keep",
"alive",
"default",
"timeout",
";"
] |
[
"get",
"the",
"work",
"queue",
"for",
"the",
"provisioned",
"thread",
"pool",
"executor",
"<",
"p",
">",
"the",
"work",
"queue",
"is",
"used",
"to",
"hold",
"the",
"tasks",
"before",
"they",
"are",
"executed",
"by",
"the",
"provisioned",
"thread",
"pool",
"executor",
"the",
"queue",
"will",
"hold",
"only",
"the",
"{",
"@",
"link",
"runnable",
"}",
"tasks",
"submitted",
"by",
"the",
"{",
"@",
"link",
"thread",
"pool",
"executor",
"#",
"execute",
"}",
"method",
"<",
"/",
"p",
">",
"<",
"p",
">",
"the",
"value",
"from",
"this",
"method",
"is",
"passed",
"as",
"one",
"of",
"the",
"input",
"parameters",
"in",
"a",
"call",
"to",
"the",
"{",
"@",
"link",
"#",
"create",
"executor",
"(",
"int",
"int",
"long",
"java",
"util",
"concurrent",
"blocking",
"queue",
"java",
"util",
"concurrent",
"thread",
"factory",
"java",
"util",
"concurrent",
"rejected",
"execution",
"handler",
")",
"}",
"method",
"<",
"/",
"p",
">",
"<",
"p",
">",
"the",
"method",
"can",
"be",
"overridden",
"to",
"customize",
"the",
"work",
"queue",
"used",
"by",
"the",
"provisioned",
"thread",
"pool",
"executor",
"if",
"not",
"customized",
"the",
"method",
"defaults",
"to",
":",
"<",
"ul",
">",
"<",
"li",
">",
"{",
"@",
"link",
"java",
"util",
"concurrent",
"synchronous",
"queue",
"}",
"in",
"case",
"the",
"{",
"@",
"link",
"#",
"get",
"maximum",
"pool",
"size",
"(",
")",
"maximum",
"pool",
"size",
"}",
"is",
"equal",
"to",
"{",
"@",
"link",
"java",
"lang",
"integer",
"#",
"max",
"value",
"}",
"<",
"/",
"li",
">",
"<",
"li",
">",
"{",
"@",
"link",
"java",
"util",
"concurrent",
"linked",
"blocking",
"queue",
"}",
"in",
"case",
"the",
"maximum",
"pool",
"size",
"is",
"lower",
"than",
"{",
"@",
"code",
"java",
"lang",
"integer",
"#",
"max",
"value",
"}",
"<",
"/",
"li",
">",
"<",
"/",
"ul",
">",
"the",
"default",
"value",
"computation",
"closely",
"corresponds",
"to",
"the",
"thread",
"pool",
"executor",
"configurations",
"used",
"in",
"{",
"@",
"link",
"java",
"util",
"concurrent",
"executors",
"#",
"new",
"cached",
"thread",
"pool",
"(",
")",
"}",
"and",
"{",
"@",
"link",
"java",
"util",
"concurrent",
"executors",
"#",
"new",
"fixed",
"thread",
"pool",
"(",
"int",
")",
"}",
"methods",
"<",
"/",
"p",
">"
] |
[
"return",
"(",
"get",
"maximum",
"pool",
"size",
"(",
")",
"=",
"=",
"integer",
"max",
"value",
")",
"?",
"new",
"synchronous",
"queue",
"<",
"runnable",
">",
"(",
")",
":",
"new",
"linked",
"blocking",
"queue",
"<",
"runnable",
">",
"(",
")",
";"
] |
[
"generate",
"a",
"random",
"uuid",
"of",
"the",
"specified",
"length",
"example",
":",
"uuid",
"(",
"15",
")",
"returns",
"vcydxgltxr",
"v",
"z",
"s",
"t",
"v"
] |
[
"return",
"uuid",
"(",
"len",
",",
"chars",
"length",
")",
";"
] |
[
"initializes",
"the",
"adaptor",
"must",
"be",
"called",
"before",
"first",
"use"
] |
[
"m",
"bulk",
"cursor",
"=",
"d",
"cursor",
";",
"m",
"columns",
"=",
"d",
"column",
"names",
";",
"m",
"wants",
"all",
"on",
"move",
"calls",
"=",
"d",
"wants",
"all",
"on",
"move",
"calls",
";",
"m",
"count",
"=",
"d",
"count",
";",
"if",
"(",
"d",
"window",
"!",
"=",
"null",
")",
"{",
"set",
"window",
"(",
"d",
"window",
")",
";",
"}"
] |
[
"gets",
"a",
"self",
"data",
"change",
"oberserver",
"that",
"can",
"be",
"sent",
"to",
"a",
"remote",
"process",
"to",
"receive",
"change",
"notifications",
"over",
"ipc"
] |
[
"return",
"m",
"observer",
"bridge",
"get",
"content",
"observer",
"(",
")",
";"
] |
[
"returns",
"the",
"filter",
"s",
"name",
"<",
"p",
"/",
">",
"unless",
"overridden",
"by",
"calling",
"the",
"{",
"@",
"link",
"#",
"set",
"name",
"(",
"string",
")",
"set",
"name",
"(",
"string",
")",
"}",
"method",
"this",
"value",
"defaults",
"to",
"the",
"filter",
"name",
"as",
"specified",
"by",
"the",
"servlet",
"container",
"at",
"start",
"-",
"up",
":",
"<",
"pre",
">",
"this",
"name",
"=",
"{",
"@",
"link",
"#",
"get",
"filter",
"config",
"(",
")",
"get",
"filter",
"config",
"(",
")",
"}",
"{",
"@",
"link",
"javax",
"servlet",
"filter",
"config",
"#",
"get",
"filter",
"name",
"(",
")",
"get",
"name",
"(",
")",
"}",
";",
"<",
"/",
"pre",
">"
] |
[
"if",
"(",
"this",
"name",
"=",
"=",
"null",
")",
"{",
"filter",
"config",
"config",
"=",
"get",
"filter",
"config",
"(",
")",
";",
"if",
"(",
"config",
"!",
"=",
"null",
")",
"{",
"this",
"name",
"=",
"config",
"get",
"filter",
"name",
"(",
")",
";",
"}",
"}",
"return",
"this",
"name",
";"
] |
[
"returns",
"a",
"string",
"builder",
"instance",
"with",
"the",
"{",
"@",
"link",
"#",
"get",
"name",
"(",
")",
"name",
"}",
"or",
"if",
"the",
"name",
"is",
"{",
"@",
"code",
"null",
"}",
"just",
"the",
"{",
"@",
"code",
"super",
"to",
"string",
"builder",
"(",
")",
"}",
"instance"
] |
[
"string",
"name",
"=",
"get",
"name",
"(",
")",
";",
"if",
"(",
"name",
"=",
"=",
"null",
")",
"{",
"return",
"super",
"to",
"string",
"builder",
"(",
")",
";",
"}",
"else",
"{",
"string",
"builder",
"sb",
"=",
"new",
"string",
"builder",
"(",
")",
";",
"sb",
"append",
"(",
"name",
")",
";",
"return",
"sb",
";",
"}"
] |
[
"in",
"most",
"scopes",
"there",
"is",
"only",
"id",
"0",
"as",
"primary",
"id",
"such",
"as",
"service",
"endpoint",
"but",
"in",
"relation",
"the",
"id",
"includes",
"two",
"actually",
"such",
"as",
"service",
"relation",
"id",
"0",
"represents",
"the",
"source",
"service",
"id"
] |
[
"public",
"abstract",
"int",
"get",
"id",
"0",
"(",
")",
";"
] |
[
"only",
"exist",
"in",
"multiple",
"i",
"ds",
"case",
"such",
"as",
"service",
"relation",
"id",
"1",
"represents",
"the",
"dest",
"service",
"id"
] |
[
"public",
"abstract",
"int",
"get",
"id",
"1",
"(",
")",
";"
] |
[
"get",
"base",
"uri",
"of",
"war",
"distribution",
"not",
"jax",
"-",
"rs"
] |
[
"return",
"uri",
"info",
"get",
"base",
"uri",
"builder",
"(",
")",
"replace",
"path",
"(",
"get",
"context",
"path",
"(",
")",
")",
"build",
"(",
")",
";"
] |
[
"utility",
"function",
"that",
"constructs",
"admin",
"client"
] |
[
"client",
"config",
"config",
"=",
"new",
"client",
"config",
"(",
")",
"set",
"bootstrap",
"urls",
"(",
"url",
")",
"set",
"connection",
"timeout",
"(",
"5",
",",
"time",
"unit",
"seconds",
")",
";",
"admin",
"client",
"config",
"admin",
"config",
"=",
"new",
"admin",
"client",
"config",
"(",
")",
"set",
"admin",
"socket",
"timeout",
"sec",
"(",
"5",
")",
";",
"return",
"new",
"admin",
"client",
"(",
"admin",
"config",
",",
"config",
")",
";"
] |
[
"utility",
"function",
"that",
"fetches",
"node",
"ids"
] |
[
"list",
"<",
"integer",
">",
"node",
"ids",
"=",
"lists",
"new",
"array",
"list",
"(",
")",
";",
"for",
"(",
"integer",
"node",
"id",
":",
"admin",
"client",
"get",
"admin",
"client",
"cluster",
"(",
")",
"get",
"node",
"ids",
"(",
")",
")",
"{",
"node",
"ids",
"add",
"(",
"node",
"id",
")",
";",
"}",
"return",
"node",
"ids",
";"
] |
[
"utility",
"function",
"that",
"fetches",
"all",
"stores",
"on",
"a",
"node"
] |
[
"list",
"<",
"string",
">",
"store",
"names",
"=",
"lists",
"new",
"array",
"list",
"(",
")",
";",
"list",
"<",
"store",
"definition",
">",
"store",
"definition",
"list",
"=",
"admin",
"client",
"metadata",
"mgmt",
"ops",
"get",
"remote",
"store",
"def",
"list",
"(",
"node",
"id",
")",
"get",
"value",
"(",
")",
";",
"for",
"(",
"store",
"definition",
"store",
"definition",
":",
"store",
"definition",
"list",
")",
"{",
"store",
"names",
"add",
"(",
"store",
"definition",
"get",
"name",
"(",
")",
")",
";",
"}",
"return",
"store",
"names",
";"
] |
[
"utility",
"function",
"that",
"fetches",
"partitions"
] |
[
"list",
"<",
"integer",
">",
"part",
"ids",
"=",
"lists",
"new",
"array",
"list",
"(",
")",
";",
"part",
"ids",
"=",
"lists",
"new",
"array",
"list",
"(",
")",
";",
"for",
"(",
"node",
"node",
":",
"admin",
"client",
"get",
"admin",
"client",
"cluster",
"(",
")",
"get",
"nodes",
"(",
")",
")",
"{",
"part",
"ids",
"add",
"all",
"(",
"node",
"get",
"partition",
"ids",
"(",
")",
")",
";",
"}",
"return",
"part",
"ids",
";"
] |
[
"utility",
"function",
"that",
"fetches",
"system",
"store",
"definitions"
] |
[
"map",
"<",
"string",
",",
"store",
"definition",
">",
"sys",
"store",
"def",
"map",
"=",
"maps",
"new",
"hash",
"map",
"(",
")",
";",
"list",
"<",
"store",
"definition",
">",
"stores",
"defs",
"=",
"system",
"store",
"constants",
"get",
"all",
"system",
"store",
"defs",
"(",
")",
";",
"for",
"(",
"store",
"definition",
"def",
":",
"stores",
"defs",
")",
"{",
"sys",
"store",
"def",
"map",
"put",
"(",
"def",
"get",
"name",
"(",
")",
",",
"def",
")",
";",
"}",
"return",
"sys",
"store",
"def",
"map",
";"
] |
[
"utility",
"function",
"that",
"fetches",
"user",
"defined",
"store",
"definitions"
] |
[
"list",
"<",
"store",
"definition",
">",
"store",
"definition",
"list",
"=",
"admin",
"client",
"metadata",
"mgmt",
"ops",
"get",
"remote",
"store",
"def",
"list",
"(",
"node",
"id",
")",
"get",
"value",
"(",
")",
";",
"map",
"<",
"string",
",",
"store",
"definition",
">",
"store",
"definition",
"map",
"=",
"maps",
"new",
"hash",
"map",
"(",
")",
";",
"for",
"(",
"store",
"definition",
"store",
"definition",
":",
"store",
"definition",
"list",
")",
"{",
"store",
"definition",
"map",
"put",
"(",
"store",
"definition",
"get",
"name",
"(",
")",
",",
"store",
"definition",
")",
";",
"}",
"return",
"store",
"definition",
"map",
";"
] |
[
"utility",
"function",
"that",
"checks",
"the",
"execution",
"state",
"of",
"the",
"server",
"by",
"checking",
"the",
"state",
"of",
"{",
"@",
"link",
"voldemort",
"state",
"}",
"<",
"br",
">"
] |
[
"assert",
"server",
"in",
"normal",
"state",
"(",
"admin",
"client",
",",
"admin",
"client",
"get",
"admin",
"client",
"cluster",
"(",
")",
"get",
"node",
"ids",
"(",
")",
")",
";"
] |
[
"utility",
"function",
"that",
"checks",
"the",
"execution",
"state",
"of",
"the",
"server",
"by",
"checking",
"the",
"state",
"of",
"{",
"@",
"link",
"voldemort",
"state",
"}",
"<",
"br",
">"
] |
[
"assert",
"server",
"in",
"normal",
"state",
"(",
"admin",
"client",
",",
"lists",
"new",
"array",
"list",
"(",
"new",
"integer",
"[",
"]",
"{",
"node",
"id",
"}",
")",
")",
";"
] |
[
"utility",
"function",
"that",
"checks",
"the",
"execution",
"state",
"of",
"the",
"server",
"by",
"checking",
"the",
"state",
"of",
"{",
"@",
"link",
"voldemort",
"state",
"}",
"<",
"br",
">"
] |
[
"assert",
"server",
"state",
"(",
"admin",
"client",
",",
"node",
"ids",
",",
"voldemort",
"state",
"normal",
"server",
",",
"true",
")",
";"
] |
[
"utility",
"function",
"that",
"checks",
"the",
"execution",
"state",
"of",
"the",
"server",
"by",
"checking",
"the",
"state",
"of",
"{",
"@",
"link",
"voldemort",
"state",
"}",
"<",
"br",
">"
] |
[
"assert",
"server",
"state",
"(",
"admin",
"client",
",",
"node",
"ids",
",",
"voldemort",
"state",
"offline",
"server",
",",
"false",
")",
";"
] |
[
"utility",
"function",
"that",
"checks",
"the",
"execution",
"state",
"of",
"the",
"server",
"by",
"checking",
"the",
"state",
"of",
"{",
"@",
"link",
"voldemort",
"state",
"}",
"<",
"br",
">"
] |
[
"assert",
"server",
"not",
"in",
"rebalancing",
"state",
"(",
"admin",
"client",
",",
"admin",
"client",
"get",
"admin",
"client",
"cluster",
"(",
")",
"get",
"node",
"ids",
"(",
")",
")",
";"
] |
[
"utility",
"function",
"that",
"checks",
"the",
"execution",
"state",
"of",
"the",
"server",
"by",
"checking",
"the",
"state",
"of",
"{",
"@",
"link",
"voldemort",
"state",
"}",
"<",
"br",
">"
] |
[
"assert",
"server",
"not",
"in",
"rebalancing",
"state",
"(",
"admin",
"client",
",",
"lists",
"new",
"array",
"list",
"(",
"new",
"integer",
"[",
"]",
"{",
"node",
"id",
"}",
")",
")",
";"
] |
[
"utility",
"function",
"that",
"checks",
"the",
"execution",
"state",
"of",
"the",
"server",
"by",
"checking",
"the",
"state",
"of",
"{",
"@",
"link",
"voldemort",
"state",
"}",
"<",
"br",
">"
] |
[
"assert",
"server",
"state",
"(",
"admin",
"client",
",",
"node",
"ids",
",",
"voldemort",
"state",
"rebalancing",
"master",
"server",
",",
"false",
")",
";"
] |
[
"analog",
"of",
"c",
"match",
"or",
"replace"
] |
[
"native",
"reg",
"exp",
"re",
";",
"string",
"str",
"=",
"script",
"runtime",
"to",
"string",
"(",
"this",
"obj",
")",
";",
"data",
"str",
"=",
"str",
";",
"scriptable",
"top",
"scope",
"=",
"scriptable",
"object",
"get",
"top",
"level",
"scope",
"(",
"scope",
")",
";",
"if",
"(",
"args",
"length",
"=",
"=",
"0",
")",
"{",
"object",
"compiled",
"=",
"native",
"reg",
"exp",
"compile",
"r",
"e",
"(",
"cx",
",",
"\"",
"\"",
",",
"\"",
"\"",
",",
"false",
")",
";",
"re",
"=",
"new",
"native",
"reg",
"exp",
"(",
"top",
"scope",
",",
"compiled",
")",
";",
"}",
"else",
"if",
"(",
"args",
"[",
"0",
"]",
"instanceof",
"native",
"reg",
"exp",
")",
"{",
"re",
"=",
"(",
"native",
"reg",
"exp",
")",
"args",
"[",
"0",
"]",
";",
"}",
"else",
"{",
"string",
"src",
"=",
"script",
"runtime",
"to",
"string",
"(",
"args",
"[",
"0",
"]",
")",
";",
"string",
"opt",
";",
"if",
"(",
"data",
"optarg",
"<",
"args",
"length",
")",
"{",
"args",
"[",
"0",
"]",
"=",
"src",
";",
"opt",
"=",
"script",
"runtime",
"to",
"string",
"(",
"args",
"[",
"data",
"optarg",
"]",
")",
";",
"}",
"else",
"{",
"opt",
"=",
"null",
";",
"}",
"object",
"compiled",
"=",
"native",
"reg",
"exp",
"compile",
"r",
"e",
"(",
"cx",
",",
"src",
",",
"opt",
",",
"force",
"flat",
")",
";",
"re",
"=",
"new",
"native",
"reg",
"exp",
"(",
"top",
"scope",
",",
"compiled",
")",
";",
"}",
"data",
"global",
"=",
"(",
"re",
"get",
"flags",
"(",
")",
"&",
"native",
"reg",
"exp",
"jsreg",
"glob",
")",
"!",
"=",
"0",
";",
"int",
"[",
"]",
"indexp",
"=",
"{",
"0",
"}",
";",
"object",
"result",
"=",
"null",
";",
"if",
"(",
"data",
"mode",
"=",
"=",
"ra",
"search",
")",
"{",
"result",
"=",
"re",
"execute",
"reg",
"exp",
"(",
"cx",
",",
"scope",
",",
"re",
"impl",
",",
"str",
",",
"indexp",
",",
"native",
"reg",
"exp",
"test",
")",
";",
"if",
"(",
"result",
"!",
"=",
"null",
"&",
"&",
"result",
"equals",
"(",
"boolean",
"true",
")",
")",
"result",
"=",
"integer",
"value",
"of",
"(",
"re",
"impl",
"left",
"context",
"length",
")",
";",
"else",
"result",
"=",
"integer",
"value",
"of",
"(",
"-",
"1",
")",
";",
"}",
"else",
"if",
"(",
"data",
"global",
")",
"{",
"re",
"last",
"index",
"=",
"0",
";",
"for",
"(",
"int",
"count",
"=",
"0",
";",
"indexp",
"[",
"0",
"]",
"<",
"=",
"str",
"length",
"(",
")",
";",
"count",
"+",
"+",
")",
"{",
"result",
"=",
"re",
"execute",
"reg",
"exp",
"(",
"cx",
",",
"scope",
",",
"re",
"impl",
",",
"str",
",",
"indexp",
",",
"native",
"reg",
"exp",
"test",
")",
";",
"if",
"(",
"result",
"=",
"=",
"null",
"|",
"|",
"!",
"result",
"equals",
"(",
"boolean",
"true",
")",
")",
"break",
";",
"if",
"(",
"data",
"mode",
"=",
"=",
"ra",
"match",
")",
"{",
"match",
"glob",
"(",
"data",
",",
"cx",
",",
"scope",
",",
"count",
",",
"re",
"impl",
")",
";",
"}",
"else",
"{",
"if",
"(",
"data",
"mode",
"!",
"=",
"ra",
"replace",
")",
"kit",
"code",
"bug",
"(",
")",
";",
"sub",
"string",
"last",
"match",
"=",
"re",
"impl",
"last",
"match",
";",
"int",
"left",
"index",
"=",
"data",
"left",
"index",
";",
"int",
"leftlen",
"=",
"last",
"match",
"index",
"-",
"left",
"index",
";",
"data",
"left",
"index",
"=",
"last",
"match",
"index",
"+",
"last",
"match",
"length",
";",
"replace",
"glob",
"(",
"data",
",",
"cx",
",",
"scope",
",",
"re",
"impl",
",",
"left",
"index",
",",
"leftlen",
")",
";",
"}",
"if",
"(",
"re",
"impl",
"last",
"match",
"length",
"=",
"=",
"0",
")",
"{",
"if",
"(",
"indexp",
"[",
"0",
"]",
"=",
"=",
"str",
"length",
"(",
")",
")",
"break",
";",
"indexp",
"[",
"0",
"]",
"+",
"+",
";",
"}",
"}",
"}",
"else",
"{",
"result",
"=",
"re",
"execute",
"reg",
"exp",
"(",
"cx",
",",
"scope",
",",
"re",
"impl",
",",
"str",
",",
"indexp",
",",
"(",
"(",
"data",
"mode",
"=",
"=",
"ra",
"replace",
")",
"?",
"native",
"reg",
"exp",
"test",
":",
"native",
"reg",
"exp",
"match",
")",
")",
";",
"}",
"return",
"result",
";"
] |
[
"analog",
"of",
"regexp",
"paren",
"substring",
"in",
"c",
"jsregexp",
"h",
"assumes",
"zero",
"-",
"based",
";",
"i",
"e",
"for",
"$",
"3",
"i",
"=",
"=",
"2"
] |
[
"if",
"(",
"parens",
"!",
"=",
"null",
"&",
"&",
"i",
"<",
"parens",
"length",
")",
"{",
"sub",
"string",
"parsub",
"=",
"parens",
"[",
"i",
"]",
";",
"if",
"(",
"parsub",
"!",
"=",
"null",
")",
"{",
"return",
"parsub",
";",
"}",
"}",
"return",
"sub",
"string",
"empty",
"sub",
"string",
";"
] |
[
"/",
"*",
"analog",
"of",
"match",
"glob",
"(",
")",
"in",
"jsstr",
"c"
] |
[
"if",
"(",
"mdata",
"arrayobj",
"=",
"=",
"null",
")",
"{",
"mdata",
"arrayobj",
"=",
"cx",
"new",
"array",
"(",
"scope",
",",
"0",
")",
";",
"}",
"sub",
"string",
"matchsub",
"=",
"re",
"impl",
"last",
"match",
";",
"string",
"matchstr",
"=",
"matchsub",
"to",
"string",
"(",
")",
";",
"mdata",
"arrayobj",
"put",
"(",
"count",
",",
"mdata",
"arrayobj",
",",
"matchstr",
")",
";"
] |
[
"analog",
"of",
"do",
"replace",
"in",
"jsstr",
"c"
] |
[
"string",
"builder",
"char",
"buf",
"=",
"rdata",
"char",
"buf",
";",
"int",
"cp",
"=",
"0",
";",
"string",
"da",
"=",
"rdata",
"repstr",
";",
"int",
"dp",
"=",
"rdata",
"dollar",
";",
"if",
"(",
"dp",
"!",
"=",
"-",
"1",
")",
"{",
"int",
"[",
"]",
"skip",
"=",
"new",
"int",
"[",
"1",
"]",
";",
"do",
"{",
"int",
"len",
"=",
"dp",
"-",
"cp",
";",
"char",
"buf",
"append",
"(",
"da",
"substring",
"(",
"cp",
",",
"dp",
")",
")",
";",
"cp",
"=",
"dp",
";",
"sub",
"string",
"sub",
"=",
"interpret",
"dollar",
"(",
"cx",
",",
"reg",
"exp",
"impl",
",",
"da",
",",
"dp",
",",
"skip",
")",
";",
"if",
"(",
"sub",
"!",
"=",
"null",
")",
"{",
"len",
"=",
"sub",
"length",
";",
"if",
"(",
"len",
">",
"0",
")",
"{",
"char",
"buf",
"append",
"(",
"sub",
"str",
",",
"sub",
"index",
",",
"sub",
"index",
"+",
"len",
")",
";",
"}",
"cp",
"+",
"=",
"skip",
"[",
"0",
"]",
";",
"dp",
"+",
"=",
"skip",
"[",
"0",
"]",
";",
"}",
"else",
"{",
"+",
"+",
"dp",
";",
"}",
"dp",
"=",
"da",
"index",
"of",
"(",
"'",
"$",
"'",
",",
"dp",
")",
";",
"}",
"while",
"(",
"dp",
">",
"=",
"0",
")",
";",
"}",
"int",
"da",
"l",
"=",
"da",
"length",
"(",
")",
";",
"if",
"(",
"da",
"l",
">",
"cp",
")",
"{",
"char",
"buf",
"append",
"(",
"da",
"substring",
"(",
"cp",
",",
"da",
"l",
")",
")",
";",
"}"
] |
[
"sets",
"as",
"not",
"dirty",
"a",
"pojo",
"this",
"is",
"useful",
"when",
"you",
"change",
"some",
"other",
"object",
"and",
"need",
"to",
"tell",
"to",
"the",
"engine",
"to",
"treat",
"this",
"one",
"as",
"not",
"dirty"
] |
[
"if",
"(",
"i",
"pojo",
"=",
"=",
"null",
")",
"return",
";",
"final",
"o",
"document",
"record",
"=",
"get",
"record",
"by",
"user",
"object",
"(",
"i",
"pojo",
",",
"false",
")",
";",
"if",
"(",
"record",
"=",
"=",
"null",
")",
"return",
";",
"o",
"record",
"internal",
"unset",
"dirty",
"(",
"record",
")",
";"
] |
[
"returns",
"a",
"wrapped",
"o",
"command",
"request",
"instance",
"to",
"catch",
"the",
"result",
"-",
"set",
"by",
"converting",
"it",
"before",
"to",
"return",
"to",
"the",
"user",
"application"
] |
[
"return",
"(",
"ret",
")",
"new",
"o",
"command",
"s",
"q",
"l",
"pojo",
"wrapper",
"(",
"this",
",",
"underlying",
"command",
"(",
"i",
"command",
")",
")",
";"
] |
[
"returns",
"true",
"if",
"current",
"configuration",
"retains",
"objects",
"otherwise",
"false"
] |
[
"return",
"retain",
"objects",
";"
] |
[
"specifies",
"if",
"retain",
"handled",
"objects",
"in",
"memory",
"or",
"not",
"setting",
"it",
"to",
"false",
"can",
"improve",
"performance",
"on",
"large",
"inserts",
"default",
"is",
"enabled"
] |
[
"retain",
"objects",
"=",
"i",
"value",
";",
"return",
"this",
";"
] |
[
"register",
"a",
"new",
"pojo"
] |
[
"if",
"(",
"!",
"(",
"i",
"record",
"instanceof",
"o",
"document",
")",
")",
"return",
";",
"final",
"o",
"document",
"doc",
"=",
"(",
"o",
"document",
")",
"i",
"record",
";",
"final",
"boolean",
"is",
"tombstone",
"=",
"o",
"record",
"version",
"helper",
"is",
"tombstone",
"(",
"doc",
"get",
"version",
"(",
")",
")",
";",
"if",
"(",
"retain",
"objects",
")",
"{",
"if",
"(",
"i",
"object",
"!",
"=",
"null",
")",
"{",
"if",
"(",
"!",
"is",
"tombstone",
")",
"{",
"objects",
"2",
"records",
"put",
"(",
"i",
"object",
",",
"doc",
")",
";",
"records",
"2",
"objects",
"put",
"(",
"doc",
",",
"(",
"t",
")",
"i",
"object",
")",
";",
"}",
"o",
"object",
"serializer",
"helper",
"set",
"object",
"i",
"d",
"(",
"i",
"record",
"get",
"identity",
"(",
")",
",",
"i",
"object",
")",
";",
"o",
"object",
"serializer",
"helper",
"set",
"object",
"version",
"(",
"i",
"record",
"get",
"version",
"(",
")",
",",
"i",
"object",
")",
";",
"}",
"final",
"orid",
"rid",
"=",
"i",
"record",
"get",
"identity",
"(",
")",
";",
"if",
"(",
"rid",
"is",
"valid",
"(",
")",
"&",
"&",
"!",
"is",
"tombstone",
")",
"rid",
"2",
"records",
"put",
"(",
"rid",
",",
"doc",
")",
";",
"}"
] |
[
"<",
"p",
">",
"the",
"file",
"type",
"of",
"the",
"application",
"revision",
"must",
"be",
"one",
"of",
"the",
"following",
":",
"<",
"/",
"p",
">",
"<",
"ul",
">",
"<",
"li",
">",
"<",
"p",
">",
"tar",
":",
"a",
"tar",
"archive",
"file",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"tgz",
":",
"a",
"compressed",
"tar",
"archive",
"file",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"zip",
":",
"a",
"zip",
"archive",
"file",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"/",
"ul",
">"
] |
[
"this",
"bundle",
"type",
"=",
"bundle",
"type",
";"
] |
[
"<",
"p",
">",
"the",
"file",
"type",
"of",
"the",
"application",
"revision",
"must",
"be",
"one",
"of",
"the",
"following",
":",
"<",
"/",
"p",
">",
"<",
"ul",
">",
"<",
"li",
">",
"<",
"p",
">",
"tar",
":",
"a",
"tar",
"archive",
"file",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"tgz",
":",
"a",
"compressed",
"tar",
"archive",
"file",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"zip",
":",
"a",
"zip",
"archive",
"file",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"/",
"ul",
">"
] |
[
"return",
"this",
"bundle",
"type",
";"
] |
[
"<",
"p",
">",
"the",
"file",
"type",
"of",
"the",
"application",
"revision",
"must",
"be",
"one",
"of",
"the",
"following",
":",
"<",
"/",
"p",
">",
"<",
"ul",
">",
"<",
"li",
">",
"<",
"p",
">",
"tar",
":",
"a",
"tar",
"archive",
"file",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"tgz",
":",
"a",
"compressed",
"tar",
"archive",
"file",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"zip",
":",
"a",
"zip",
"archive",
"file",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"/",
"ul",
">"
] |
[
"set",
"bundle",
"type",
"(",
"bundle",
"type",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"file",
"type",
"of",
"the",
"application",
"revision",
"must",
"be",
"one",
"of",
"the",
"following",
":",
"<",
"/",
"p",
">",
"<",
"ul",
">",
"<",
"li",
">",
"<",
"p",
">",
"tar",
":",
"a",
"tar",
"archive",
"file",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"tgz",
":",
"a",
"compressed",
"tar",
"archive",
"file",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"zip",
":",
"a",
"zip",
"archive",
"file",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"/",
"ul",
">"
] |
[
"with",
"bundle",
"type",
"(",
"bundle",
"type",
")",
";"
] |
[
"<",
"p",
">",
"the",
"file",
"type",
"of",
"the",
"application",
"revision",
"must",
"be",
"one",
"of",
"the",
"following",
":",
"<",
"/",
"p",
">",
"<",
"ul",
">",
"<",
"li",
">",
"<",
"p",
">",
"tar",
":",
"a",
"tar",
"archive",
"file",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"tgz",
":",
"a",
"compressed",
"tar",
"archive",
"file",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"zip",
":",
"a",
"zip",
"archive",
"file",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"/",
"ul",
">"
] |
[
"this",
"bundle",
"type",
"=",
"bundle",
"type",
"to",
"string",
"(",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"e",
"tag",
"of",
"the",
"amazon",
"s3",
"object",
"that",
"represents",
"the",
"bundled",
"artifacts",
"for",
"the",
"application",
"revision",
"<",
"/",
"p",
">",
"<",
"p",
">",
"if",
"the",
"e",
"tag",
"is",
"not",
"specified",
"as",
"an",
"input",
"parameter",
"e",
"tag",
"validation",
"of",
"the",
"object",
"will",
"be",
"skipped",
"<",
"/",
"p",
">"
] |
[
"set",
"e",
"tag",
"(",
"e",
"tag",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"detach",
"the",
"{"
] |
[
"cancel",
"drag",
"(",
"true",
")",
";",
"if",
"(",
"m",
"handler",
"!",
"=",
"null",
")",
"{",
"m",
"handler",
"release",
"(",
")",
";",
"m",
"handler",
"=",
"null",
";",
"}",
"if",
"(",
"m",
"edge",
"effect",
"decorator",
"!",
"=",
"null",
")",
"{",
"m",
"edge",
"effect",
"decorator",
"finish",
"(",
")",
";",
"m",
"edge",
"effect",
"decorator",
"=",
"null",
";",
"}",
"if",
"(",
"m",
"recycler",
"view",
"!",
"=",
"null",
"&",
"&",
"m",
"internal",
"use",
"on",
"item",
"touch",
"listener",
"!",
"=",
"null",
")",
"{",
"m",
"recycler",
"view",
"remove",
"on",
"item",
"touch",
"listener",
"(",
"m",
"internal",
"use",
"on",
"item",
"touch",
"listener",
")",
";",
"}",
"m",
"internal",
"use",
"on",
"item",
"touch",
"listener",
"=",
"null",
";",
"if",
"(",
"m",
"recycler",
"view",
"!",
"=",
"null",
"&",
"&",
"m",
"internal",
"use",
"on",
"scroll",
"listener",
"!",
"=",
"null",
")",
"{",
"m",
"recycler",
"view",
"remove",
"on",
"scroll",
"listener",
"(",
"m",
"internal",
"use",
"on",
"scroll",
"listener",
")",
";",
"}",
"m",
"internal",
"use",
"on",
"scroll",
"listener",
"=",
"null",
";",
"if",
"(",
"m",
"scroll",
"on",
"dragging",
"process",
"!",
"=",
"null",
")",
"{",
"m",
"scroll",
"on",
"dragging",
"process",
"release",
"(",
")",
";",
"m",
"scroll",
"on",
"dragging",
"process",
"=",
"null",
";",
"}",
"m",
"wrapper",
"adapter",
"=",
"null",
";",
"m",
"recycler",
"view",
"=",
"null",
";",
"m",
"swap",
"target",
"translation",
"interpolator",
"=",
"null",
";"
] |
[
"indicates",
"whether",
"currently",
"performing",
"item",
"dragging"
] |
[
"return",
"(",
"m",
"dragging",
"item",
"info",
"!",
"=",
"null",
")",
"&",
"&",
"(",
"!",
"m",
"handler",
"is",
"cancel",
"drag",
"requested",
"(",
")",
")",
";"
] |
[
"sets",
"9",
"-",
"patch",
"image",
"which",
"is",
"used",
"for",
"the",
"actively",
"dragging",
"item"
] |
[
"m",
"shadow",
"drawable",
"=",
"drawable",
";"
] |
[
"sets",
"the",
"interpolator",
"which",
"is",
"used",
"for",
"determining",
"the",
"position",
"of",
"the",
"swapping",
"item"
] |
[
"m",
"swap",
"target",
"translation",
"interpolator",
"=",
"interpolator",
";"
] |
[
"returns",
"whether",
"dragging",
"starts",
"on",
"a",
"long",
"press",
"or",
"not"
] |
[
"return",
"m",
"initiate",
"on",
"long",
"press",
";"
] |
[
"sets",
"whether",
"dragging",
"starts",
"on",
"a",
"long",
"press",
"(",
"default",
":",
"false",
")"
] |
[
"m",
"initiate",
"on",
"long",
"press",
"=",
"initiate",
"on",
"long",
"press",
";"
] |
[
"returns",
"whether",
"dragging",
"starts",
"on",
"move",
"motions"
] |
[
"return",
"m",
"initiate",
"on",
"move",
";"
] |
[
"sets",
"whether",
"dragging",
"starts",
"on",
"move",
"motions",
"(",
"default",
":",
"true",
")"
] |
[
"m",
"initiate",
"on",
"move",
"=",
"initiate",
"on",
"move",
";"
] |
[
"returns",
"whether",
"dragging",
"starts",
"on",
"touch",
"the",
"handle",
"immediately"
] |
[
"return",
"m",
"initiate",
"on",
"touch",
";"
] |
[
"sets",
"whether",
"dragging",
"starts",
"on",
"touch",
"the",
"handle",
"immediately",
"(",
"default",
":",
"false",
")"
] |
[
"m",
"initiate",
"on",
"touch",
"=",
"initiate",
"on",
"touch",
";"
] |
[
"gets",
"the",
"interpolator",
"which",
"ise",
"used",
"for",
"determining",
"the",
"position",
"of",
"the",
"swapping",
"item"
] |
[
"return",
"m",
"swap",
"target",
"translation",
"interpolator",
";"
] |
[
"gets",
"on",
"item",
"drag",
"event",
"listener",
"listener"
] |
[
"return",
"m",
"item",
"drag",
"event",
"listener",
";"
] |
[
"sets",
"on",
"item",
"drag",
"event",
"listener",
"listener"
] |
[
"m",
"item",
"drag",
"event",
"listener",
"=",
"listener",
";"
] |
[
"sets",
"drag",
"edge",
"scroll",
"speed"
] |
[
"m",
"drag",
"edge",
"scroll",
"speed",
"=",
"math",
"min",
"(",
"math",
"max",
"(",
"speed",
",",
"0",
"0f",
")",
",",
"2",
"0f",
")",
";"
] |
[
"gets",
"drag",
"edge",
"scroll",
"speed"
] |
[
"return",
"m",
"drag",
"edge",
"scroll",
"speed",
";"
] |
[
"sets",
"whether",
"to",
"use",
"{",
"@",
"link",
"draggable",
"item",
"adapter",
"#",
"on",
"check",
"can",
"drop",
"(",
"int",
"int",
")",
"}"
] |
[
"m",
"check",
"can",
"drop",
"=",
"enabled",
";"
] |
[
"gets",
"whether",
"to",
"use",
"{",
"@",
"link",
"draggable",
"item",
"adapter",
"#",
"on",
"check",
"can",
"drop",
"(",
"int",
"int",
")",
"}"
] |
[
"return",
"m",
"check",
"can",
"drop",
";"
] |
[
"/",
"*",
"package"
] |
[
"if",
"(",
"disallow",
"intercept",
")",
"{",
"cancel",
"drag",
"(",
"true",
")",
";",
"}"
] |
[
"/",
"*",
"package"
] |
[
"if",
"(",
"m",
"initiate",
"on",
"long",
"press",
")",
"{",
"check",
"condition",
"and",
"start",
"dragging",
"(",
"m",
"recycler",
"view",
",",
"e",
",",
"false",
")",
";",
"}"
] |
[
"/",
"*",
"package"
] |
[
"final",
"recycler",
"view",
"view",
"holder",
"vh",
"=",
"m",
"recycler",
"view",
"find",
"view",
"holder",
"for",
"item",
"id",
"(",
"m",
"dragging",
"item",
"info",
"id",
")",
";",
"if",
"(",
"vh",
"=",
"=",
"null",
")",
"{",
"return",
";",
"}",
"final",
"int",
"w",
"=",
"vh",
"item",
"view",
"get",
"width",
"(",
")",
";",
"final",
"int",
"h",
"=",
"vh",
"item",
"view",
"get",
"height",
"(",
")",
";",
"if",
"(",
"!",
"(",
"w",
"=",
"=",
"m",
"dragging",
"item",
"info",
"width",
"&",
"&",
"h",
"=",
"=",
"m",
"dragging",
"item",
"info",
"height",
")",
")",
"{",
"m",
"dragging",
"item",
"info",
"=",
"dragging",
"item",
"info",
"create",
"with",
"new",
"view",
"(",
"m",
"dragging",
"item",
"info",
",",
"vh",
")",
";",
"m",
"dragging",
"item",
"decorator",
"update",
"dragging",
"item",
"view",
"(",
"m",
"dragging",
"item",
"info",
",",
"vh",
")",
";",
"}"
] |
[
"gets",
"item",
"move",
"mode"
] |
[
"return",
"m",
"item",
"move",
"mode",
";"
] |
[
"sets",
"item",
"move"
] |
[
"m",
"item",
"move",
"mode",
"=",
"mode",
";"
] |
[
"cancel",
"dragging"
] |
[
"cancel",
"drag",
"(",
"false",
")",
";"
] |
[
"/",
"*",
"package"
] |
[
"handle",
"action",
"up",
"or",
"cancel",
"(",
"motion",
"event",
"action",
"cancel",
",",
"false",
")",
";",
"if",
"(",
"immediately",
")",
"{",
"finish",
"dragging",
"(",
"false",
")",
";",
"}",
"else",
"{",
"if",
"(",
"is",
"dragging",
"(",
")",
")",
"{",
"m",
"handler",
"request",
"deferred",
"cancel",
"drag",
"(",
")",
";",
"}",
"}"
] |
[
"/",
"*",
"package"
] |
[
"final",
"recycler",
"view",
"rv",
"=",
"m",
"recycler",
"view",
";",
"boolean",
"horizontal",
";",
"switch",
"(",
"custom",
"recycler",
"view",
"utils",
"get",
"orientation",
"(",
"rv",
")",
")",
"{",
"case",
"custom",
"recycler",
"view",
"utils",
"orientation",
"vertical",
":",
"horizontal",
"=",
"false",
";",
"break",
";",
"case",
"custom",
"recycler",
"view",
"utils",
"orientation",
"horizontal",
":",
"horizontal",
"=",
"true",
";",
"break",
";",
"default",
":",
"return",
";",
"}",
"if",
"(",
"m",
"nested",
"scroll",
"view",
"!",
"=",
"null",
")",
"{",
"handle",
"scroll",
"on",
"dragging",
"internal",
"with",
"nested",
"scroll",
"view",
"(",
"rv",
",",
"horizontal",
")",
";",
"}",
"else",
"{",
"handle",
"scroll",
"on",
"dragging",
"internal",
"with",
"recycler",
"view",
"(",
"rv",
",",
"horizontal",
")",
";",
"}"
] |
[
"/",
"*",
"package"
] |
[
"return",
"m",
"recycler",
"view",
";"
] |
[
"sets",
"the",
"duration",
"of",
"settle",
"back",
"into",
"place",
"animation"
] |
[
"m",
"item",
"settle",
"back",
"into",
"place",
"animation",
"duration",
"=",
"duration",
";"
] |
[
"gets",
"the",
"duration",
"of",
"settle",
"back",
"into",
"place",
"animation"
] |
[
"return",
"m",
"item",
"settle",
"back",
"into",
"place",
"animation",
"duration",
";"
] |
[
"sets",
"the",
"interpolator",
"which",
"is",
"used",
"for",
"settle",
"back",
"into",
"place",
"animation"
] |
[
"m",
"item",
"settle",
"back",
"into",
"place",
"animation",
"interpolator",
"=",
"interpolator",
";"
] |
[
"gets",
"the",
"interpolator",
"which",
"ise",
"used",
"for",
"settle",
"back",
"into",
"place",
"animation"
] |
[
"return",
"m",
"item",
"settle",
"back",
"into",
"place",
"animation",
"interpolator",
";"
] |
[
"sets",
"duration",
"of",
"drag",
"start",
"item",
"animation"
] |
[
"m",
"dragging",
"item",
"effects",
"info",
"duration",
"millis",
"=",
"duration",
";"
] |
[
"gets",
"the",
"duration",
"of",
"drag",
"start",
"animation"
] |
[
"return",
"m",
"dragging",
"item",
"effects",
"info",
"duration",
"millis",
";"
] |
[
"sets",
"the",
"interpolator",
"which",
"is",
"used",
"for",
"drag",
"start",
"scaling",
"item",
"animation"
] |
[
"m",
"dragging",
"item",
"effects",
"info",
"scale",
"interpolator",
"=",
"interpolator",
";"
] |
[
"gets",
"the",
"interpolator",
"which",
"ise",
"used",
"for",
"drag",
"start",
"scaling",
"animation"
] |
[
"return",
"m",
"dragging",
"item",
"effects",
"info",
"scale",
"interpolator",
";"
] |
[
"sets",
"the",
"interpolator",
"which",
"is",
"used",
"for",
"drag",
"start",
"rotation",
"item",
"animation"
] |
[
"m",
"dragging",
"item",
"effects",
"info",
"rotation",
"interpolator",
"=",
"interpolator",
";"
] |
[
"gets",
"the",
"interpolator",
"which",
"ise",
"used",
"for",
"drag",
"start",
"rotation",
"animation"
] |
[
"return",
"m",
"dragging",
"item",
"effects",
"info",
"rotation",
"interpolator",
";"
] |
[
"sets",
"the",
"interpolator",
"which",
"is",
"used",
"for",
"drag",
"start",
"alpha",
"item",
"animation"
] |
[
"m",
"dragging",
"item",
"effects",
"info",
"alpha",
"interpolator",
"=",
"interpolator",
";"
] |
[
"gets",
"the",
"interpolator",
"which",
"ise",
"used",
"for",
"drag",
"start",
"alpha",
"animation"
] |
[
"return",
"m",
"dragging",
"item",
"effects",
"info",
"alpha",
"interpolator",
";"
] |
[
"sets",
"dragging",
"item",
"scaling",
"factor"
] |
[
"m",
"dragging",
"item",
"effects",
"info",
"scale",
"=",
"scale",
";"
] |
[
"gets",
"dragging",
"item",
"scaling",
"factor"
] |
[
"return",
"m",
"dragging",
"item",
"effects",
"info",
"scale",
";"
] |
[
"sets",
"dragging",
"item",
"rotation"
] |
[
"m",
"dragging",
"item",
"effects",
"info",
"rotation",
"=",
"rotation",
";"
] |
[
"gets",
"dragging",
"item",
"rotation"
] |
[
"return",
"m",
"dragging",
"item",
"effects",
"info",
"rotation",
";"
] |
[
"sets",
"dragging",
"item",
"alpha"
] |
[
"m",
"dragging",
"item",
"effects",
"info",
"alpha",
"=",
"alpha",
";"
] |
[
"gets",
"dragging",
"item",
"alpha"
] |
[
"return",
"m",
"dragging",
"item",
"effects",
"info",
"alpha",
";"
] |
[
"/",
"*",
"package"
] |
[
"if",
"(",
"holder",
"=",
"=",
"m",
"dragging",
"item",
"view",
"holder",
")",
"{",
"on",
"dragging",
"item",
"view",
"recycled",
"(",
")",
";",
"}",
"else",
"{",
"if",
"(",
"m",
"swap",
"target",
"item",
"operator",
"!",
"=",
"null",
")",
"{",
"m",
"swap",
"target",
"item",
"operator",
"on",
"item",
"view",
"recycled",
"(",
"holder",
")",
";",
"}",
"}"
] |
[
"/",
"*",
"package"
] |
[
"return",
"m",
"dragging",
"item",
"view",
"holder",
";"
] |
[
"/",
"*",
"package"
] |
[
"if",
"(",
"m",
"dragging",
"item",
"view",
"holder",
"!",
"=",
"null",
")",
"{",
"on",
"dragging",
"item",
"view",
"recycled",
"(",
")",
";",
"}",
"m",
"dragging",
"item",
"view",
"holder",
"=",
"holder",
";",
"m",
"dragging",
"item",
"decorator",
"set",
"dragging",
"item",
"view",
"holder",
"(",
"holder",
")",
";"
] |
[
"returns",
"a",
"reference",
"to",
"the",
"{"
] |
[
"if",
"(",
"s",
"instance",
"=",
"=",
"null",
")",
"{",
"synchronized",
"(",
"session",
"builder",
"class",
")",
"{",
"if",
"(",
"s",
"instance",
"=",
"=",
"null",
")",
"{",
"session",
"builder",
"s",
"instance",
"=",
"new",
"session",
"builder",
"(",
")",
";",
"}",
"}",
"}",
"return",
"s",
"instance",
";"
] |
[
"creates",
"a",
"new",
"{"
] |
[
"session",
"session",
";",
"session",
"=",
"new",
"session",
"(",
")",
";",
"session",
"set",
"origin",
"(",
"m",
"origin",
")",
";",
"session",
"set",
"destination",
"(",
"m",
"destination",
")",
";",
"session",
"set",
"time",
"to",
"live",
"(",
"m",
"time",
"to",
"live",
")",
";",
"session",
"set",
"callback",
"(",
"m",
"callback",
")",
";",
"switch",
"(",
"m",
"audio",
"encoder",
")",
"{",
"case",
"audio",
"aac",
":",
"a",
"a",
"c",
"stream",
"stream",
"=",
"new",
"a",
"a",
"c",
"stream",
"(",
")",
";",
"session",
"add",
"audio",
"track",
"(",
"stream",
")",
";",
"if",
"(",
"m",
"context",
"!",
"=",
"null",
")",
"stream",
"set",
"preferences",
"(",
"preference",
"manager",
"get",
"default",
"shared",
"preferences",
"(",
"m",
"context",
")",
")",
";",
"break",
";",
"case",
"audio",
"amrnb",
":",
"session",
"add",
"audio",
"track",
"(",
"new",
"a",
"m",
"r",
"n",
"b",
"stream",
"(",
")",
")",
";",
"break",
";",
"}",
"switch",
"(",
"m",
"video",
"encoder",
")",
"{",
"case",
"video",
"h263",
":",
"session",
"add",
"video",
"track",
"(",
"new",
"h",
"2",
"6",
"3",
"stream",
"(",
"m",
"camera",
")",
")",
";",
"break",
";",
"case",
"video",
"h264",
":",
"h",
"2",
"6",
"4",
"stream",
"stream",
"=",
"new",
"h",
"2",
"6",
"4",
"stream",
"(",
"m",
"camera",
")",
";",
"if",
"(",
"m",
"context",
"!",
"=",
"null",
")",
"stream",
"set",
"preferences",
"(",
"preference",
"manager",
"get",
"default",
"shared",
"preferences",
"(",
"m",
"context",
")",
")",
";",
"session",
"add",
"video",
"track",
"(",
"stream",
")",
";",
"break",
";",
"}",
"if",
"(",
"session",
"get",
"video",
"track",
"(",
")",
"!",
"=",
"null",
")",
"{",
"video",
"stream",
"video",
"=",
"session",
"get",
"video",
"track",
"(",
")",
";",
"video",
"set",
"flash",
"state",
"(",
"m",
"flash",
")",
";",
"video",
"set",
"video",
"quality",
"(",
"m",
"video",
"quality",
")",
";",
"video",
"set",
"surface",
"view",
"(",
"m",
"surface",
"view",
")",
";",
"video",
"set",
"preview",
"orientation",
"(",
"m",
"orientation",
")",
";",
"video",
"set",
"destination",
"ports",
"(",
"5006",
")",
";",
"}",
"if",
"(",
"session",
"get",
"audio",
"track",
"(",
")",
"!",
"=",
"null",
")",
"{",
"audio",
"stream",
"audio",
"=",
"session",
"get",
"audio",
"track",
"(",
")",
";",
"audio",
"set",
"audio",
"quality",
"(",
"m",
"audio",
"quality",
")",
";",
"audio",
"set",
"destination",
"ports",
"(",
"5004",
")",
";",
"}",
"return",
"session",
";"
] |
[
"access",
"to",
"the",
"context",
"is",
"needed",
"for",
"the",
"h",
"2",
"6",
"4",
"stream",
"class",
"to",
"store",
"some",
"stuff",
"in",
"the",
"shared",
"preferences",
"note",
"that",
"you",
"should",
"pass",
"the",
"application",
"context",
"not",
"the",
"context",
"of",
"an",
"activity"
] |
[
"m",
"context",
"=",
"context",
";",
"return",
"this",
";"
] |
[
"sets",
"the",
"destination",
"of",
"the",
"session"
] |
[
"m",
"destination",
"=",
"destination",
";",
"return",
"this",
";"
] |
[
"sets",
"the",
"origin",
"of",
"the",
"session",
"it",
"appears",
"in",
"the",
"sdp",
"of",
"the",
"session"
] |
[
"m",
"origin",
"=",
"origin",
";",
"return",
"this",
";"
] |
[
"sets",
"the",
"video",
"stream",
"quality"
] |
[
"m",
"video",
"quality",
"=",
"quality",
"clone",
"(",
")",
";",
"return",
"this",
";"
] |
[
"sets",
"the",
"audio",
"encoder"
] |
[
"m",
"audio",
"encoder",
"=",
"encoder",
";",
"return",
"this",
";"
] |
[
"sets",
"the",
"audio",
"quality"
] |
[
"m",
"audio",
"quality",
"=",
"quality",
"clone",
"(",
")",
";",
"return",
"this",
";"
] |
[
"sets",
"the",
"default",
"video",
"encoder"
] |
[
"m",
"video",
"encoder",
"=",
"encoder",
";",
"return",
"this",
";"
] |
[
"sets",
"the",
"surface",
"view",
"required",
"to",
"preview",
"the",
"video",
"stream"
] |
[
"m",
"surface",
"view",
"=",
"surface",
"view",
";",
"return",
"this",
";"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.