docstring_tokens
sequence | code_tokens
sequence |
---|---|
[
"when",
"set",
"to",
"ignore",
"segment",
"descriptors",
"with",
"web",
"delivery",
"allowed",
"flag",
"set",
"to",
"0",
"will",
"no",
"longer",
"trigger",
"blackouts",
"or",
"ad",
"avail",
"slates"
] | [
"this",
"web",
"delivery",
"allowed",
"flag",
"=",
"web",
"delivery",
"allowed",
"flag",
"to",
"string",
"(",
")",
";",
"return",
"this",
";"
] |
[
"use",
"this",
"when",
"writing",
"to",
"a",
"stream",
"and",
"you",
"want",
"to",
"use",
"the",
"pb",
"merge",
"delimited",
"from",
"(",
"w",
"/",
"o",
"the",
"delimiter",
"pb",
"reads",
"to",
"eof",
"which",
"may",
"not",
"be",
"what",
"you",
"want",
")"
] | [
"return",
"protobuf",
"util",
"prepend",
"p",
"b",
"magic",
"(",
"convert",
"(",
")",
"to",
"byte",
"array",
"(",
")",
")",
";"
] |
[
"test",
"split",
"string",
"with",
"delimiter",
"and",
"enclosure"
] | [
"string",
"[",
"]",
"result",
"=",
"const",
"split",
"string",
"(",
"null",
",",
"null",
",",
"null",
")",
";",
"assert",
"null",
"(",
"result",
")",
";"
] |
[
"reads",
"from",
"the",
"{",
"@",
"link",
"xml",
"pull",
"parser",
"}",
"assuming",
"that",
"it",
"is",
"already",
"on",
"the",
"<",
"code",
">",
"<",
"usagestats",
">",
"<",
"/",
"code",
">",
"tag"
] | [
"stats",
"out",
"package",
"stats",
"clear",
"(",
")",
";",
"stats",
"out",
"configurations",
"clear",
"(",
")",
";",
"stats",
"out",
"active",
"configuration",
"=",
"null",
";",
"if",
"(",
"stats",
"out",
"events",
"!",
"=",
"null",
")",
"{",
"stats",
"out",
"events",
"clear",
"(",
")",
";",
"}",
"stats",
"out",
"end",
"time",
"=",
"stats",
"out",
"begin",
"time",
"+",
"xml",
"utils",
"read",
"long",
"attribute",
"(",
"parser",
",",
"end",
"time",
"attr",
")",
";",
"int",
"event",
"code",
";",
"int",
"outer",
"depth",
"=",
"parser",
"get",
"depth",
"(",
")",
";",
"while",
"(",
"(",
"event",
"code",
"=",
"parser",
"next",
"(",
")",
")",
"!",
"=",
"xml",
"pull",
"parser",
"end",
"document",
"&",
"&",
"(",
"event",
"code",
"!",
"=",
"xml",
"pull",
"parser",
"end",
"tag",
"|",
"|",
"parser",
"get",
"depth",
"(",
")",
">",
"outer",
"depth",
")",
")",
"{",
"if",
"(",
"event",
"code",
"!",
"=",
"xml",
"pull",
"parser",
"start",
"tag",
")",
"{",
"continue",
";",
"}",
"final",
"string",
"tag",
"=",
"parser",
"get",
"name",
"(",
")",
";",
"switch",
"(",
"tag",
")",
"{",
"case",
"interactive",
"tag",
":",
"load",
"count",
"and",
"time",
"(",
"parser",
",",
"stats",
"out",
"interactive",
"tracker",
")",
";",
"break",
";",
"case",
"non",
"interactive",
"tag",
":",
"load",
"count",
"and",
"time",
"(",
"parser",
",",
"stats",
"out",
"non",
"interactive",
"tracker",
")",
";",
"break",
";",
"case",
"keyguard",
"shown",
"tag",
":",
"load",
"count",
"and",
"time",
"(",
"parser",
",",
"stats",
"out",
"keyguard",
"shown",
"tracker",
")",
";",
"break",
";",
"case",
"keyguard",
"hidden",
"tag",
":",
"load",
"count",
"and",
"time",
"(",
"parser",
",",
"stats",
"out",
"keyguard",
"hidden",
"tracker",
")",
";",
"break",
";",
"case",
"package",
"tag",
":",
"load",
"usage",
"stats",
"(",
"parser",
",",
"stats",
"out",
")",
";",
"break",
";",
"case",
"config",
"tag",
":",
"load",
"config",
"stats",
"(",
"parser",
",",
"stats",
"out",
")",
";",
"break",
";",
"case",
"event",
"tag",
":",
"load",
"event",
"(",
"parser",
",",
"stats",
"out",
")",
";",
"break",
";",
"}",
"}"
] |
[
"writes",
"the",
"stats",
"object",
"to",
"an",
"xml",
"file",
"the",
"{",
"@",
"link",
"xml",
"serializer",
"}",
"has",
"already",
"written",
"the",
"<",
"code",
">",
"<",
"usagestats",
">",
"<",
"/",
"code",
">",
"tag",
"but",
"attributes",
"may",
"still",
"be",
"added"
] | [
"xml",
"utils",
"write",
"long",
"attribute",
"(",
"xml",
",",
"end",
"time",
"attr",
",",
"stats",
"end",
"time",
"-",
"stats",
"begin",
"time",
")",
";",
"write",
"count",
"and",
"time",
"(",
"xml",
",",
"interactive",
"tag",
",",
"stats",
"interactive",
"tracker",
"count",
",",
"stats",
"interactive",
"tracker",
"duration",
")",
";",
"write",
"count",
"and",
"time",
"(",
"xml",
",",
"non",
"interactive",
"tag",
",",
"stats",
"non",
"interactive",
"tracker",
"count",
",",
"stats",
"non",
"interactive",
"tracker",
"duration",
")",
";",
"write",
"count",
"and",
"time",
"(",
"xml",
",",
"keyguard",
"shown",
"tag",
",",
"stats",
"keyguard",
"shown",
"tracker",
"count",
",",
"stats",
"keyguard",
"shown",
"tracker",
"duration",
")",
";",
"write",
"count",
"and",
"time",
"(",
"xml",
",",
"keyguard",
"hidden",
"tag",
",",
"stats",
"keyguard",
"hidden",
"tracker",
"count",
",",
"stats",
"keyguard",
"hidden",
"tracker",
"duration",
")",
";",
"xml",
"start",
"tag",
"(",
"null",
",",
"packages",
"tag",
")",
";",
"final",
"int",
"stats",
"count",
"=",
"stats",
"package",
"stats",
"size",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"stats",
"count",
";",
"i",
"+",
"+",
")",
"{",
"write",
"usage",
"stats",
"(",
"xml",
",",
"stats",
",",
"stats",
"package",
"stats",
"value",
"at",
"(",
"i",
")",
")",
";",
"}",
"xml",
"end",
"tag",
"(",
"null",
",",
"packages",
"tag",
")",
";",
"xml",
"start",
"tag",
"(",
"null",
",",
"configurations",
"tag",
")",
";",
"final",
"int",
"config",
"count",
"=",
"stats",
"configurations",
"size",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"config",
"count",
";",
"i",
"+",
"+",
")",
"{",
"boolean",
"active",
"=",
"stats",
"active",
"configuration",
"equals",
"(",
"stats",
"configurations",
"key",
"at",
"(",
"i",
")",
")",
";",
"write",
"config",
"stats",
"(",
"xml",
",",
"stats",
",",
"stats",
"configurations",
"value",
"at",
"(",
"i",
")",
",",
"active",
")",
";",
"}",
"xml",
"end",
"tag",
"(",
"null",
",",
"configurations",
"tag",
")",
";",
"xml",
"start",
"tag",
"(",
"null",
",",
"event",
"log",
"tag",
")",
";",
"final",
"int",
"event",
"count",
"=",
"stats",
"events",
"!",
"=",
"null",
"?",
"stats",
"events",
"size",
"(",
")",
":",
"0",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"event",
"count",
";",
"i",
"+",
"+",
")",
"{",
"write",
"event",
"(",
"xml",
",",
"stats",
",",
"stats",
"events",
"get",
"(",
"i",
")",
")",
";",
"}",
"xml",
"end",
"tag",
"(",
"null",
",",
"event",
"log",
"tag",
")",
";"
] |
[
"<",
"p",
">",
"a",
"list",
"of",
"zero",
"or",
"more",
"import",
"image",
"tasks",
"that",
"are",
"currently",
"active",
"or",
"were",
"completed",
"or",
"canceled",
"in",
"the",
"previous",
"7",
"days",
"<",
"/",
"p",
">"
] | [
"if",
"(",
"import",
"image",
"tasks",
"=",
"=",
"null",
")",
"{",
"import",
"image",
"tasks",
"=",
"new",
"com",
"amazonaws",
"internal",
"sdk",
"internal",
"list",
"<",
"import",
"image",
"task",
">",
"(",
")",
";",
"}",
"return",
"import",
"image",
"tasks",
";"
] |
[
"<",
"p",
">",
"a",
"list",
"of",
"zero",
"or",
"more",
"import",
"image",
"tasks",
"that",
"are",
"currently",
"active",
"or",
"were",
"completed",
"or",
"canceled",
"in",
"the",
"previous",
"7",
"days",
"<",
"/",
"p",
">"
] | [
"if",
"(",
"import",
"image",
"tasks",
"=",
"=",
"null",
")",
"{",
"this",
"import",
"image",
"tasks",
"=",
"null",
";",
"return",
";",
"}",
"this",
"import",
"image",
"tasks",
"=",
"new",
"com",
"amazonaws",
"internal",
"sdk",
"internal",
"list",
"<",
"import",
"image",
"task",
">",
"(",
"import",
"image",
"tasks",
")",
";"
] |
[
"<",
"p",
">",
"a",
"list",
"of",
"zero",
"or",
"more",
"import",
"image",
"tasks",
"that",
"are",
"currently",
"active",
"or",
"were",
"completed",
"or",
"canceled",
"in",
"the",
"previous",
"7",
"days",
"<",
"/",
"p",
">",
"<",
"p",
">",
"<",
"b",
">",
"note",
":",
"<",
"/",
"b",
">",
"this",
"method",
"appends",
"the",
"values",
"to",
"the",
"existing",
"list",
"(",
"if",
"any",
")",
"use",
"{",
"@",
"link",
"#",
"set",
"import",
"image",
"tasks",
"(",
"java",
"util",
"collection",
")",
"}",
"or",
"{",
"@",
"link",
"#",
"with",
"import",
"image",
"tasks",
"(",
"java",
"util",
"collection",
")",
"}",
"if",
"you",
"want",
"to",
"override",
"the",
"existing",
"values",
"<",
"/",
"p",
">"
] | [
"if",
"(",
"this",
"import",
"image",
"tasks",
"=",
"=",
"null",
")",
"{",
"set",
"import",
"image",
"tasks",
"(",
"new",
"com",
"amazonaws",
"internal",
"sdk",
"internal",
"list",
"<",
"import",
"image",
"task",
">",
"(",
"import",
"image",
"tasks",
"length",
")",
")",
";",
"}",
"for",
"(",
"import",
"image",
"task",
"ele",
":",
"import",
"image",
"tasks",
")",
"{",
"this",
"import",
"image",
"tasks",
"add",
"(",
"ele",
")",
";",
"}",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"a",
"list",
"of",
"zero",
"or",
"more",
"import",
"image",
"tasks",
"that",
"are",
"currently",
"active",
"or",
"were",
"completed",
"or",
"canceled",
"in",
"the",
"previous",
"7",
"days",
"<",
"/",
"p",
">"
] | [
"set",
"import",
"image",
"tasks",
"(",
"import",
"image",
"tasks",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"token",
"to",
"use",
"to",
"get",
"the",
"next",
"page",
"of",
"results",
"this",
"value",
"is",
"<",
"code",
">",
"null",
"<",
"/",
"code",
">",
"when",
"there",
"are",
"no",
"more",
"results",
"to",
"return",
"<",
"/",
"p",
">"
] | [
"set",
"next",
"token",
"(",
"next",
"token",
")",
";",
"return",
"this",
";"
] |
[
"first",
"element",
"holds",
"the",
"default",
"name"
] | [
"serialized",
"name",
"annotation",
"=",
"f",
"get",
"annotation",
"(",
"serialized",
"name",
"class",
")",
";",
"if",
"(",
"annotation",
"=",
"=",
"null",
")",
"{",
"string",
"name",
"=",
"field",
"naming",
"policy",
"translate",
"name",
"(",
"f",
")",
";",
"return",
"collections",
"singleton",
"list",
"(",
"name",
")",
";",
"}",
"string",
"serialized",
"name",
"=",
"annotation",
"value",
"(",
")",
";",
"string",
"[",
"]",
"alternates",
"=",
"annotation",
"alternate",
"(",
")",
";",
"if",
"(",
"alternates",
"length",
"=",
"=",
"0",
")",
"{",
"return",
"collections",
"singleton",
"list",
"(",
"serialized",
"name",
")",
";",
"}",
"list",
"<",
"string",
">",
"field",
"names",
"=",
"new",
"array",
"list",
"<",
"string",
">",
"(",
"alternates",
"length",
"+",
"1",
")",
";",
"field",
"names",
"add",
"(",
"serialized",
"name",
")",
";",
"for",
"(",
"string",
"alternate",
":",
"alternates",
")",
"{",
"field",
"names",
"add",
"(",
"alternate",
")",
";",
"}",
"return",
"field",
"names",
";"
] |
[
"get",
"the",
"unique",
"notification",
"control",
"creating",
"it",
"if",
"necessary"
] | [
"synchronized",
"(",
"lock",
")",
"{",
"if",
"(",
"s",
"instance",
"=",
"=",
"null",
")",
"{",
"s",
"instance",
"=",
"new",
"cast",
"notification",
"control",
"(",
"context",
")",
";",
"}",
"s",
"instance",
"set",
"route",
"controller",
"(",
"media",
"route",
"controller",
")",
";",
"return",
"s",
"instance",
";",
"}"
] |
[
"sets",
"the",
"poster",
"bitmap",
"to",
"display",
"on",
"the",
"transport",
"control"
] | [
"if",
"(",
"m",
"poster",
"bitmap",
"=",
"=",
"poster",
"bitmap",
"|",
"|",
"(",
"m",
"poster",
"bitmap",
"!",
"=",
"null",
"&",
"&",
"m",
"poster",
"bitmap",
"same",
"as",
"(",
"poster",
"bitmap",
")",
")",
")",
"{",
"return",
";",
"}",
"m",
"poster",
"bitmap",
"=",
"poster",
"bitmap",
";",
"if",
"(",
"m",
"notification",
"builder",
"=",
"=",
"null",
"|",
"|",
"m",
"media",
"route",
"controller",
"=",
"=",
"null",
")",
"return",
";",
"m",
"notification",
"builder",
"set",
"large",
"icon",
"(",
"m",
"media",
"route",
"controller",
"get",
"poster",
"(",
")",
")",
";",
"update",
"notification",
"(",
")",
";"
] |
[
"poster",
"changes"
] | [
"if",
"(",
"m",
"notification",
"builder",
"=",
"=",
"null",
"|",
"|",
"m",
"media",
"route",
"controller",
"=",
"=",
"null",
")",
"return",
";",
"m",
"notification",
"builder",
"set",
"large",
"icon",
"(",
"m",
"media",
"route",
"controller",
"get",
"poster",
"(",
")",
")",
";",
"update",
"notification",
"(",
")",
";"
] |
[
"media",
"route",
"controller",
"ui",
"listener",
"implementation"
] | [
"if",
"(",
"!",
"m",
"is",
"showing",
"&",
"&",
"(",
"new",
"state",
"=",
"=",
"player",
"state",
"playing",
"|",
"|",
"new",
"state",
"=",
"=",
"player",
"state",
"loading",
"|",
"|",
"new",
"state",
"=",
"=",
"player",
"state",
"paused",
")",
")",
"{",
"show",
"(",
"new",
"state",
")",
";",
"return",
";",
"}",
"if",
"(",
"m",
"state",
"=",
"=",
"new",
"state",
"|",
"|",
"m",
"state",
"=",
"=",
"player",
"state",
"paused",
"&",
"&",
"new",
"state",
"=",
"=",
"player",
"state",
"loading",
"&",
"&",
"m",
"is",
"showing",
")",
"{",
"return",
";",
"}",
"m",
"state",
"=",
"new",
"state",
";",
"update",
"notification",
"(",
")",
";"
] |
[
"media",
"notification",
"listener",
"methods"
] | [
"m",
"media",
"route",
"controller",
"resume",
"(",
")",
";"
] |
[
"fills",
"char",
"term",
"attribute",
"with",
"the",
"current",
"token",
"text"
] | [
"t",
"copy",
"buffer",
"(",
"zz",
"buffer",
",",
"zz",
"start",
"read",
",",
"zz",
"marked",
"pos",
"-",
"zz",
"start",
"read",
")",
";"
] |
[
"returns",
"the",
"total",
"counts"
] | [
"return",
"total",
";"
] |
[
"populates",
"the",
"builder",
"with",
"extracted",
"fields",
"to",
"be",
"overridden"
] | [
"builder",
"desc",
"(",
"fields",
"get",
"(",
"property",
"descriptor",
"field",
"description",
")",
")",
";",
"if",
"(",
"fields",
"contains",
"key",
"(",
"property",
"descriptor",
"field",
"ui",
"order",
")",
")",
"{",
"builder",
"ui",
"order",
"(",
"float",
"parse",
"float",
"(",
"fields",
"get",
"(",
"property",
"descriptor",
"field",
"ui",
"order",
")",
")",
")",
";",
"}"
] |
[
"future",
"1",
"8",
":",
"use",
"a",
"supplier",
"constructor",
"parameter"
] | [
"t",
"builder",
"=",
"new",
"builder",
"(",
"fields",
"get",
"(",
"property",
"descriptor",
"field",
"name",
")",
")",
";",
"populate",
"(",
"builder",
",",
"fields",
")",
";",
"builder",
"is",
"defined",
"in",
"x",
"m",
"l",
"=",
"true",
";",
"return",
"builder",
"build",
"(",
")",
";"
] |
[
"helper",
"method",
"to",
"start",
"compress",
"service"
] | [
"int",
"mode",
"=",
"check",
"folder",
"(",
"file",
"get",
"parent",
"file",
"(",
")",
",",
"main",
"activity",
")",
";",
"if",
"(",
"mode",
"=",
"=",
"2",
")",
"{",
"main",
"activity",
"oppathe",
"=",
"(",
"file",
"get",
"path",
"(",
")",
")",
";",
"main",
"activity",
"operation",
"=",
"data",
"utils",
"compress",
";",
"main",
"activity",
"oparray",
"list",
"=",
"base",
"files",
";",
"}",
"else",
"if",
"(",
"mode",
"=",
"=",
"1",
")",
"{",
"intent",
"intent",
"2",
"=",
"new",
"intent",
"(",
"main",
"activity",
",",
"zip",
"service",
"class",
")",
";",
"intent",
"2",
"put",
"extra",
"(",
"zip",
"service",
"key",
"compress",
"path",
",",
"file",
"get",
"path",
"(",
")",
")",
";",
"intent",
"2",
"put",
"extra",
"(",
"zip",
"service",
"key",
"compress",
"files",
",",
"base",
"files",
")",
";",
"service",
"watcher",
"util",
"run",
"service",
"(",
"main",
"activity",
",",
"intent",
"2",
")",
";",
"}",
"else",
"toast",
"make",
"text",
"(",
"main",
"activity",
",",
"r",
"string",
"not",
"allowed",
",",
"toast",
"length",
"short",
")",
"show",
"(",
")",
";"
] |
[
"adds",
"a",
"search",
"fragment",
"that",
"can",
"persist",
"it",
"s",
"state",
"on",
"config",
"change"
] | [
"bundle",
"args",
"=",
"new",
"bundle",
"(",
")",
";",
"args",
"put",
"string",
"(",
"search",
"worker",
"fragment",
"key",
"input",
",",
"input",
")",
";",
"args",
"put",
"string",
"(",
"search",
"worker",
"fragment",
"key",
"path",
",",
"path",
")",
";",
"args",
"put",
"int",
"(",
"search",
"worker",
"fragment",
"key",
"open",
"mode",
",",
"open",
"mode",
"ordinal",
"(",
")",
")",
";",
"args",
"put",
"boolean",
"(",
"search",
"worker",
"fragment",
"key",
"root",
"mode",
",",
"root",
"mode",
")",
";",
"args",
"put",
"boolean",
"(",
"search",
"worker",
"fragment",
"key",
"regex",
",",
"regex",
")",
";",
"args",
"put",
"boolean",
"(",
"search",
"worker",
"fragment",
"key",
"regex",
"matches",
",",
"matches",
")",
";",
"fragment",
"set",
"arguments",
"(",
"args",
")",
";",
"fragment",
"manager",
"begin",
"transaction",
"(",
")",
"add",
"(",
"fragment",
",",
"main",
"activity",
"tag",
"async",
"helper",
")",
"commit",
"(",
")",
";"
] |
[
"check",
"whether",
"creation",
"of",
"new",
"directory",
"is",
"inside",
"the",
"same",
"directory",
"with",
"the",
"same",
"name",
"or",
"not",
"directory",
"inside",
"the",
"same",
"directory",
"with",
"similar",
"filename",
"shall",
"not",
"be",
"allowed",
"doesn",
"t",
"work",
"at",
"an",
"otg",
"path"
] | [
"return",
"file",
"get",
"name",
"(",
")",
"equals",
"(",
"file",
"get",
"parent",
"name",
"(",
")",
")",
";"
] |
[
"gets",
"the",
"int",
"mapped",
"from",
"the",
"specified",
"key",
"or",
"the",
"specified",
"value",
"if",
"no",
"such",
"mapping",
"has",
"been",
"made"
] | [
"int",
"i",
"=",
"container",
"helpers",
"binary",
"search",
"(",
"m",
"keys",
",",
"m",
"size",
",",
"key",
")",
";",
"if",
"(",
"i",
"<",
"0",
")",
"{",
"return",
"value",
"if",
"key",
"not",
"found",
";",
"}",
"else",
"{",
"return",
"m",
"values",
"[",
"i",
"]",
";",
"}"
] |
[
"removes",
"the",
"mapping",
"from",
"the",
"specified",
"key",
"if",
"there",
"was",
"any"
] | [
"int",
"i",
"=",
"container",
"helpers",
"binary",
"search",
"(",
"m",
"keys",
",",
"m",
"size",
",",
"key",
")",
";",
"if",
"(",
"i",
">",
"=",
"0",
")",
"{",
"remove",
"at",
"(",
"i",
")",
";",
"}"
] |
[
"adds",
"a",
"mapping",
"from",
"the",
"specified",
"key",
"to",
"the",
"specified",
"value",
"replacing",
"the",
"previous",
"mapping",
"from",
"the",
"specified",
"key",
"if",
"there",
"was",
"one"
] | [
"int",
"i",
"=",
"container",
"helpers",
"binary",
"search",
"(",
"m",
"keys",
",",
"m",
"size",
",",
"key",
")",
";",
"if",
"(",
"i",
">",
"=",
"0",
")",
"{",
"m",
"values",
"[",
"i",
"]",
"=",
"value",
";",
"}",
"else",
"{",
"i",
"=",
"~",
"i",
";",
"m",
"keys",
"=",
"growing",
"array",
"utils",
"insert",
"(",
"m",
"keys",
",",
"m",
"size",
",",
"i",
",",
"key",
")",
";",
"m",
"values",
"=",
"growing",
"array",
"utils",
"insert",
"(",
"m",
"values",
",",
"m",
"size",
",",
"i",
",",
"value",
")",
";",
"m",
"size",
"+",
"+",
";",
"}"
] |
[
"directly",
"set",
"the",
"value",
"at",
"a",
"particular",
"index"
] | [
"m",
"values",
"[",
"index",
"]",
"=",
"value",
";"
] |
[
"returns",
"an",
"index",
"for",
"which",
"{"
] | [
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"m",
"size",
";",
"i",
"+",
"+",
")",
"if",
"(",
"m",
"values",
"[",
"i",
"]",
"=",
"=",
"value",
")",
"return",
"i",
";",
"return",
"-",
"1",
";"
] |
[
"puts",
"a",
"key",
"/",
"value",
"pair",
"into",
"the",
"array",
"optimizing",
"for",
"the",
"case",
"where",
"the",
"key",
"is",
"greater",
"than",
"all",
"existing",
"keys",
"in",
"the",
"array"
] | [
"if",
"(",
"m",
"size",
"!",
"=",
"0",
"&",
"&",
"key",
"<",
"=",
"m",
"keys",
"[",
"m",
"size",
"-",
"1",
"]",
")",
"{",
"put",
"(",
"key",
",",
"value",
")",
";",
"return",
";",
"}",
"m",
"keys",
"=",
"growing",
"array",
"utils",
"append",
"(",
"m",
"keys",
",",
"m",
"size",
",",
"key",
")",
";",
"m",
"values",
"=",
"growing",
"array",
"utils",
"append",
"(",
"m",
"values",
",",
"m",
"size",
",",
"value",
")",
";",
"m",
"size",
"+",
"+",
";"
] |
[
"provides",
"a",
"copy",
"of",
"keys"
] | [
"if",
"(",
"size",
"(",
")",
"=",
"=",
"0",
")",
"{",
"return",
"null",
";",
"}",
"return",
"arrays",
"copy",
"of",
"(",
"m",
"keys",
",",
"size",
"(",
")",
")",
";"
] |
[
"tests",
"for",
"default",
"{"
] | [
"file",
"location",
"options",
"options",
"=",
"file",
"location",
"options",
"defaults",
"(",
")",
";",
"assert",
"assert",
"equals",
"(",
"0",
",",
"options",
"get",
"offset",
"(",
")",
")",
";"
] |
[
"tests",
"getting",
"and",
"setting",
"fields"
] | [
"file",
"location",
"options",
"options",
"=",
"file",
"location",
"options",
"defaults",
"(",
")",
";",
"long",
"[",
"]",
"offsets",
"=",
"{",
"100",
",",
"110",
",",
"150",
",",
"200",
"}",
";",
"for",
"(",
"long",
"offset",
":",
"offsets",
")",
"{",
"options",
"set",
"offset",
"(",
"offset",
")",
";",
"assert",
"assert",
"equals",
"(",
"offset",
",",
"options",
"get",
"offset",
"(",
")",
")",
";",
"}"
] |
[
"<",
"p",
">",
"the",
"amazon",
"resource",
"name",
"(",
"arn",
")",
"of",
"the",
"user",
"in",
"iam",
"<",
"/",
"p",
">"
] | [
"set",
"user",
"arn",
"(",
"user",
"arn",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"name",
"that",
"is",
"displayed",
"as",
"the",
"friendly",
"name",
"for",
"the",
"user",
"in",
"aws",
"code",
"star",
"<",
"/",
"p",
">"
] | [
"set",
"display",
"name",
"(",
"display",
"name",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"email",
"address",
"that",
"is",
"displayed",
"as",
"part",
"of",
"the",
"user",
"s",
"profile",
"in",
"aws",
"code",
"star",
"<",
"/",
"p",
">"
] | [
"set",
"email",
"address",
"(",
"email",
"address",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"ssh",
"public",
"key",
"associated",
"with",
"the",
"user",
"in",
"aws",
"code",
"star",
"this",
"is",
"the",
"public",
"portion",
"of",
"the",
"public",
"/",
"private",
"keypair",
"the",
"user",
"can",
"use",
"to",
"access",
"project",
"resources",
"if",
"a",
"project",
"owner",
"allows",
"the",
"user",
"remote",
"access",
"to",
"those",
"resources",
"<",
"/",
"p",
">"
] | [
"set",
"ssh",
"public",
"key",
"(",
"ssh",
"public",
"key",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"date",
"the",
"user",
"profile",
"was",
"created",
"in",
"timestamp",
"format",
"<",
"/",
"p",
">"
] | [
"set",
"created",
"timestamp",
"(",
"created",
"timestamp",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"date",
"the",
"user",
"profile",
"was",
"last",
"modified",
"in",
"timestamp",
"format",
"<",
"/",
"p",
">"
] | [
"set",
"last",
"modified",
"timestamp",
"(",
"last",
"modified",
"timestamp",
")",
";",
"return",
"this",
";"
] |
[
"get",
"an",
"open",
"instance",
"of",
"the",
"selected",
"storage",
"class",
"defaults",
"to",
"hdfs",
"storage",
"if",
"none",
"is",
"specified"
] | [
"templeton",
"storage",
"storage",
"=",
"get",
"storage",
"instance",
"(",
"conf",
")",
";",
"storage",
"open",
"storage",
"(",
"conf",
")",
";",
"return",
"storage",
";"
] |
[
"for",
"storage",
"methods",
"that",
"require",
"a",
"connection",
"this",
"is",
"a",
"hint",
"that",
"it",
"s",
"time",
"to",
"close",
"the",
"connection"
] | [
"storage",
"close",
"storage",
"(",
")",
";"
] |
[
"store",
"a",
"string",
"field",
"from",
"the",
"store"
] | [
"try",
"{",
"storage",
"save",
"field",
"(",
"type",
",",
"id",
",",
"name",
",",
"val",
")",
";",
"}",
"catch",
"(",
"not",
"found",
"exception",
"ne",
")",
"{",
"throw",
"new",
"i",
"o",
"exception",
"(",
"ne",
"get",
"message",
"(",
")",
")",
";",
"}"
] |
[
"sets",
"the",
"delay",
"of",
"the",
"repeater"
] | [
"if",
"(",
"delay",
">",
"4",
")",
"{",
"delay",
"=",
"4",
";",
"}",
"if",
"(",
"delay",
"<",
"1",
")",
"{",
"delay",
"=",
"1",
";",
"}",
"byte",
"new",
"data",
"=",
"(",
"byte",
")",
"(",
"get",
"data",
"(",
")",
"&",
"0x",
"3",
")",
";",
"set",
"data",
"(",
"(",
"byte",
")",
"(",
"new",
"data",
"|",
"(",
"(",
"delay",
"-",
"1",
")",
"<",
"<",
"2",
")",
")",
")",
";"
] |
[
"gets",
"the",
"delay",
"of",
"the",
"repeater",
"in",
"ticks"
] | [
"return",
"(",
"get",
"data",
"(",
")",
">",
">",
"2",
")",
"+",
"1",
";"
] |
[
"<",
"p",
">",
"the",
"<",
"code",
">",
"resolver",
"<",
"/",
"code",
">",
"object",
"<",
"/",
"p",
">"
] | [
"set",
"resolver",
"(",
"resolver",
")",
";",
"return",
"this",
";"
] |
[
"<",
"!",
"-",
"-",
"begin",
"-",
"user",
"-",
"doc",
"-",
"-",
">",
"<",
"!",
"-",
"-",
"end",
"-",
"user",
"-",
"doc",
"-",
"-",
">"
] | [
"return",
"model",
"package",
"literals",
"ptc",
"connected",
";"
] |
[
"<",
"!",
"-",
"-",
"begin",
"-",
"user",
"-",
"doc",
"-",
"-",
">",
"<",
"!",
"-",
"-",
"end",
"-",
"user",
"-",
"doc",
"-",
"-",
">"
] | [
"logger",
"old",
"logger",
"=",
"logger",
";",
"logger",
"=",
"new",
"logger",
";",
"if",
"(",
"e",
"notification",
"required",
"(",
")",
")",
"e",
"notify",
"(",
"new",
"e",
"notification",
"impl",
"(",
"this",
",",
"notification",
"set",
",",
"model",
"package",
"ptc",
"connected",
"logger",
",",
"old",
"logger",
",",
"logger",
")",
")",
";"
] |
[
"<",
"!",
"-",
"-",
"begin",
"-",
"user",
"-",
"doc",
"-",
"-",
">",
"<",
"!",
"-",
"-",
"end",
"-",
"user",
"-",
"doc",
"-",
"-",
">"
] | [
"string",
"old",
"uid",
"=",
"uid",
";",
"uid",
"=",
"new",
"uid",
";",
"if",
"(",
"e",
"notification",
"required",
"(",
")",
")",
"e",
"notify",
"(",
"new",
"e",
"notification",
"impl",
"(",
"this",
",",
"notification",
"set",
",",
"model",
"package",
"ptc",
"connected",
"uid",
",",
"old",
"uid",
",",
"uid",
")",
")",
";"
] |
[
"<",
"!",
"-",
"-",
"begin",
"-",
"user",
"-",
"doc",
"-",
"-",
">",
"<",
"!",
"-",
"-",
"end",
"-",
"user",
"-",
"doc",
"-",
"-",
">"
] | [
"boolean",
"old",
"poll",
"=",
"poll",
";",
"poll",
"=",
"new",
"poll",
";",
"if",
"(",
"e",
"notification",
"required",
"(",
")",
")",
"e",
"notify",
"(",
"new",
"e",
"notification",
"impl",
"(",
"this",
",",
"notification",
"set",
",",
"model",
"package",
"ptc",
"connected",
"poll",
",",
"old",
"poll",
",",
"poll",
")",
")",
";"
] |
[
"<",
"!",
"-",
"-",
"begin",
"-",
"user",
"-",
"doc",
"-",
"-",
">",
"<",
"!",
"-",
"-",
"end",
"-",
"user",
"-",
"doc",
"-",
"-",
">"
] | [
"atomic",
"boolean",
"old",
"enabled",
"a",
"=",
"enabled",
"a",
";",
"enabled",
"a",
"=",
"new",
"enabled",
"a",
";",
"if",
"(",
"e",
"notification",
"required",
"(",
")",
")",
"e",
"notify",
"(",
"new",
"e",
"notification",
"impl",
"(",
"this",
",",
"notification",
"set",
",",
"model",
"package",
"ptc",
"connected",
"enabled",
"a",
",",
"old",
"enabled",
"a",
",",
"enabled",
"a",
")",
")",
";"
] |
[
"<",
"!",
"-",
"-",
"begin",
"-",
"user",
"-",
"doc",
"-",
"-",
">",
"<",
"!",
"-",
"-",
"end",
"-",
"user",
"-",
"doc",
"-",
"-",
">"
] | [
"string",
"old",
"sub",
"id",
"=",
"sub",
"id",
";",
"sub",
"id",
"=",
"new",
"sub",
"id",
";",
"if",
"(",
"e",
"notification",
"required",
"(",
")",
")",
"e",
"notify",
"(",
"new",
"e",
"notification",
"impl",
"(",
"this",
",",
"notification",
"set",
",",
"model",
"package",
"ptc",
"connected",
"sub",
"id",
",",
"old",
"sub",
"id",
",",
"sub",
"id",
")",
")",
";"
] |
[
"<",
"!",
"-",
"-",
"begin",
"-",
"user",
"-",
"doc",
"-",
"-",
">",
"<",
"!",
"-",
"-",
"end",
"-",
"user",
"-",
"doc",
"-",
"-",
">"
] | [
"if",
"(",
"e",
"container",
"feature",
"i",
"d",
"(",
")",
"!",
"=",
"model",
"package",
"ptc",
"connected",
"mbrick",
")",
"return",
"null",
";",
"return",
"(",
"m",
"bricklet",
"p",
"t",
"c",
")",
"e",
"container",
"(",
")",
";"
] |
[
"<",
"!",
"-",
"-",
"begin",
"-",
"user",
"-",
"doc",
"-",
"-",
">",
"<",
"!",
"-",
"-",
"end",
"-",
"user",
"-",
"doc",
"-",
"-",
">"
] | [
"if",
"(",
"e",
"container",
"feature",
"i",
"d",
"(",
")",
"!",
"=",
"model",
"package",
"ptc",
"connected",
"mbrick",
")",
"return",
"null",
";",
"return",
"(",
"m",
"bricklet",
"p",
"t",
"c",
")",
"e",
"internal",
"container",
"(",
")",
";"
] |
[
"<",
"!",
"-",
"-",
"begin",
"-",
"user",
"-",
"doc",
"-",
"-",
">",
"<",
"!",
"-",
"-",
"end",
"-",
"user",
"-",
"doc",
"-",
"-",
">"
] | [
"msgs",
"=",
"e",
"basic",
"set",
"container",
"(",
"(",
"internal",
"e",
"object",
")",
"new",
"mbrick",
",",
"model",
"package",
"ptc",
"connected",
"mbrick",
",",
"msgs",
")",
";",
"return",
"msgs",
";"
] |
[
"<",
"!",
"-",
"-",
"begin",
"-",
"user",
"-",
"doc",
"-",
"-",
">",
"<",
"!",
"-",
"-",
"end",
"-",
"user",
"-",
"doc",
"-",
"-",
">"
] | [
"high",
"low",
"value",
"old",
"sensor",
"value",
"=",
"sensor",
"value",
";",
"sensor",
"value",
"=",
"new",
"sensor",
"value",
";",
"if",
"(",
"e",
"notification",
"required",
"(",
")",
")",
"e",
"notify",
"(",
"new",
"e",
"notification",
"impl",
"(",
"this",
",",
"notification",
"set",
",",
"model",
"package",
"ptc",
"connected",
"sensor",
"value",
",",
"old",
"sensor",
"value",
",",
"sensor",
"value",
")",
")",
";"
] |
[
"<",
"!",
"-",
"-",
"begin",
"-",
"user",
"-",
"doc",
"-",
"-",
">",
"<",
"!",
"-",
"-",
"end",
"-",
"user",
"-",
"doc",
"-",
"-",
">"
] | [
"try",
"{",
"boolean",
"sensor",
"connected",
"=",
"tinkerforge",
"device",
"is",
"sensor",
"connected",
"(",
")",
";",
"high",
"low",
"value",
"new",
"value",
"=",
"sensor",
"connected",
"?",
"high",
"low",
"value",
"low",
":",
"high",
"low",
"value",
"high",
";",
"set",
"sensor",
"value",
"(",
"new",
"value",
")",
";",
"}",
"catch",
"(",
"timeout",
"exception",
"e",
")",
"{",
"tinkerforge",
"error",
"handler",
"handle",
"error",
"(",
"this",
",",
"tinkerforge",
"error",
"handler",
"tf",
"timeout",
"exception",
",",
"e",
")",
";",
"}",
"catch",
"(",
"not",
"connected",
"exception",
"e",
")",
"{",
"tinkerforge",
"error",
"handler",
"handle",
"error",
"(",
"this",
",",
"tinkerforge",
"error",
"handler",
"tf",
"not",
"connection",
"exception",
",",
"e",
")",
";",
"}"
] |
[
"<",
"!",
"-",
"-",
"begin",
"-",
"user",
"-",
"doc",
"-",
"-",
">",
"<",
"!",
"-",
"-",
"end",
"-",
"user",
"-",
"doc",
"-",
"-",
">"
] | [
"set",
"enabled",
"a",
"(",
"new",
"atomic",
"boolean",
"(",
")",
")",
";",
"logger",
"=",
"logger",
"factory",
"get",
"logger",
"(",
"p",
"t",
"c",
"connected",
"impl",
"class",
")",
";"
] |
[
"<",
"!",
"-",
"-",
"begin",
"-",
"user",
"-",
"doc",
"-",
"-",
">",
"<",
"!",
"-",
"-",
"end",
"-",
"user",
"-",
"doc",
"-",
"-",
">"
] | [
"tinkerforge",
"device",
"=",
"get",
"mbrick",
"(",
")",
"get",
"tinkerforge",
"device",
"(",
")",
";"
] |
[
"<",
"!",
"-",
"-",
"begin",
"-",
"user",
"-",
"doc",
"-",
"-",
">",
"<",
"!",
"-",
"-",
"end",
"-",
"user",
"-",
"doc",
"-",
"-",
">"
] | [
"switch",
"(",
"feature",
"i",
"d",
")",
"{",
"case",
"model",
"package",
"ptc",
"connected",
"mbrick",
":",
"if",
"(",
"e",
"internal",
"container",
"(",
")",
"!",
"=",
"null",
")",
"msgs",
"=",
"e",
"basic",
"remove",
"from",
"container",
"(",
"msgs",
")",
";",
"return",
"basic",
"set",
"mbrick",
"(",
"(",
"m",
"bricklet",
"p",
"t",
"c",
")",
"other",
"end",
",",
"msgs",
")",
";",
"}",
"return",
"super",
"e",
"inverse",
"add",
"(",
"other",
"end",
",",
"feature",
"i",
"d",
",",
"msgs",
")",
";"
] |
[
"<",
"!",
"-",
"-",
"begin",
"-",
"user",
"-",
"doc",
"-",
"-",
">",
"<",
"!",
"-",
"-",
"end",
"-",
"user",
"-",
"doc",
"-",
"-",
">"
] | [
"switch",
"(",
"feature",
"i",
"d",
")",
"{",
"case",
"model",
"package",
"ptc",
"connected",
"mbrick",
":",
"return",
"basic",
"set",
"mbrick",
"(",
"null",
",",
"msgs",
")",
";",
"}",
"return",
"super",
"e",
"inverse",
"remove",
"(",
"other",
"end",
",",
"feature",
"i",
"d",
",",
"msgs",
")",
";"
] |
[
"<",
"!",
"-",
"-",
"begin",
"-",
"user",
"-",
"doc",
"-",
"-",
">",
"<",
"!",
"-",
"-",
"end",
"-",
"user",
"-",
"doc",
"-",
"-",
">"
] | [
"switch",
"(",
"e",
"container",
"feature",
"i",
"d",
"(",
")",
")",
"{",
"case",
"model",
"package",
"ptc",
"connected",
"mbrick",
":",
"return",
"e",
"internal",
"container",
"(",
")",
"e",
"inverse",
"remove",
"(",
"this",
",",
"model",
"package",
"msub",
"device",
"holder",
"msubdevices",
",",
"m",
"sub",
"device",
"holder",
"class",
",",
"msgs",
")",
";",
"}",
"return",
"super",
"e",
"basic",
"remove",
"from",
"container",
"feature",
"(",
"msgs",
")",
";"
] |
[
"<",
"!",
"-",
"-",
"begin",
"-",
"user",
"-",
"doc",
"-",
"-",
">",
"<",
"!",
"-",
"-",
"end",
"-",
"user",
"-",
"doc",
"-",
"-",
">"
] | [
"switch",
"(",
"feature",
"i",
"d",
")",
"{",
"case",
"model",
"package",
"ptc",
"connected",
"logger",
":",
"return",
"get",
"logger",
"(",
")",
";",
"case",
"model",
"package",
"ptc",
"connected",
"uid",
":",
"return",
"get",
"uid",
"(",
")",
";",
"case",
"model",
"package",
"ptc",
"connected",
"poll",
":",
"return",
"is",
"poll",
"(",
")",
";",
"case",
"model",
"package",
"ptc",
"connected",
"enabled",
"a",
":",
"return",
"get",
"enabled",
"a",
"(",
")",
";",
"case",
"model",
"package",
"ptc",
"connected",
"sub",
"id",
":",
"return",
"get",
"sub",
"id",
"(",
")",
";",
"case",
"model",
"package",
"ptc",
"connected",
"mbrick",
":",
"if",
"(",
"resolve",
")",
"return",
"get",
"mbrick",
"(",
")",
";",
"return",
"basic",
"get",
"mbrick",
"(",
")",
";",
"case",
"model",
"package",
"ptc",
"connected",
"sensor",
"value",
":",
"return",
"get",
"sensor",
"value",
"(",
")",
";",
"case",
"model",
"package",
"ptc",
"connected",
"device",
"type",
":",
"return",
"get",
"device",
"type",
"(",
")",
";",
"}",
"return",
"super",
"e",
"get",
"(",
"feature",
"i",
"d",
",",
"resolve",
",",
"core",
"type",
")",
";"
] |
[
"<",
"!",
"-",
"-",
"begin",
"-",
"user",
"-",
"doc",
"-",
"-",
">",
"<",
"!",
"-",
"-",
"end",
"-",
"user",
"-",
"doc",
"-",
"-",
">"
] | [
"switch",
"(",
"feature",
"i",
"d",
")",
"{",
"case",
"model",
"package",
"ptc",
"connected",
"logger",
":",
"set",
"logger",
"(",
"(",
"logger",
")",
"new",
"value",
")",
";",
"return",
";",
"case",
"model",
"package",
"ptc",
"connected",
"uid",
":",
"set",
"uid",
"(",
"(",
"string",
")",
"new",
"value",
")",
";",
"return",
";",
"case",
"model",
"package",
"ptc",
"connected",
"poll",
":",
"set",
"poll",
"(",
"(",
"boolean",
")",
"new",
"value",
")",
";",
"return",
";",
"case",
"model",
"package",
"ptc",
"connected",
"enabled",
"a",
":",
"set",
"enabled",
"a",
"(",
"(",
"atomic",
"boolean",
")",
"new",
"value",
")",
";",
"return",
";",
"case",
"model",
"package",
"ptc",
"connected",
"sub",
"id",
":",
"set",
"sub",
"id",
"(",
"(",
"string",
")",
"new",
"value",
")",
";",
"return",
";",
"case",
"model",
"package",
"ptc",
"connected",
"mbrick",
":",
"set",
"mbrick",
"(",
"(",
"m",
"bricklet",
"p",
"t",
"c",
")",
"new",
"value",
")",
";",
"return",
";",
"case",
"model",
"package",
"ptc",
"connected",
"sensor",
"value",
":",
"set",
"sensor",
"value",
"(",
"(",
"high",
"low",
"value",
")",
"new",
"value",
")",
";",
"return",
";",
"}",
"super",
"e",
"set",
"(",
"feature",
"i",
"d",
",",
"new",
"value",
")",
";"
] |
[
"<",
"!",
"-",
"-",
"begin",
"-",
"user",
"-",
"doc",
"-",
"-",
">",
"<",
"!",
"-",
"-",
"end",
"-",
"user",
"-",
"doc",
"-",
"-",
">"
] | [
"switch",
"(",
"feature",
"i",
"d",
")",
"{",
"case",
"model",
"package",
"ptc",
"connected",
"logger",
":",
"set",
"logger",
"(",
"logger",
"edefault",
")",
";",
"return",
";",
"case",
"model",
"package",
"ptc",
"connected",
"uid",
":",
"set",
"uid",
"(",
"uid",
"edefault",
")",
";",
"return",
";",
"case",
"model",
"package",
"ptc",
"connected",
"poll",
":",
"set",
"poll",
"(",
"poll",
"edefault",
")",
";",
"return",
";",
"case",
"model",
"package",
"ptc",
"connected",
"enabled",
"a",
":",
"set",
"enabled",
"a",
"(",
"enabled",
"a",
"edefault",
")",
";",
"return",
";",
"case",
"model",
"package",
"ptc",
"connected",
"sub",
"id",
":",
"set",
"sub",
"id",
"(",
"sub",
"id",
"edefault",
")",
";",
"return",
";",
"case",
"model",
"package",
"ptc",
"connected",
"mbrick",
":",
"set",
"mbrick",
"(",
"(",
"m",
"bricklet",
"p",
"t",
"c",
")",
"null",
")",
";",
"return",
";",
"case",
"model",
"package",
"ptc",
"connected",
"sensor",
"value",
":",
"set",
"sensor",
"value",
"(",
"(",
"high",
"low",
"value",
")",
"null",
")",
";",
"return",
";",
"}",
"super",
"e",
"unset",
"(",
"feature",
"i",
"d",
")",
";"
] |
[
"<",
"!",
"-",
"-",
"begin",
"-",
"user",
"-",
"doc",
"-",
"-",
">",
"<",
"!",
"-",
"-",
"end",
"-",
"user",
"-",
"doc",
"-",
"-",
">"
] | [
"switch",
"(",
"feature",
"i",
"d",
")",
"{",
"case",
"model",
"package",
"ptc",
"connected",
"logger",
":",
"return",
"logger",
"edefault",
"=",
"=",
"null",
"?",
"logger",
"!",
"=",
"null",
":",
"!",
"logger",
"edefault",
"equals",
"(",
"logger",
")",
";",
"case",
"model",
"package",
"ptc",
"connected",
"uid",
":",
"return",
"uid",
"edefault",
"=",
"=",
"null",
"?",
"uid",
"!",
"=",
"null",
":",
"!",
"uid",
"edefault",
"equals",
"(",
"uid",
")",
";",
"case",
"model",
"package",
"ptc",
"connected",
"poll",
":",
"return",
"poll",
"!",
"=",
"poll",
"edefault",
";",
"case",
"model",
"package",
"ptc",
"connected",
"enabled",
"a",
":",
"return",
"enabled",
"a",
"edefault",
"=",
"=",
"null",
"?",
"enabled",
"a",
"!",
"=",
"null",
":",
"!",
"enabled",
"a",
"edefault",
"equals",
"(",
"enabled",
"a",
")",
";",
"case",
"model",
"package",
"ptc",
"connected",
"sub",
"id",
":",
"return",
"sub",
"id",
"edefault",
"=",
"=",
"null",
"?",
"sub",
"id",
"!",
"=",
"null",
":",
"!",
"sub",
"id",
"edefault",
"equals",
"(",
"sub",
"id",
")",
";",
"case",
"model",
"package",
"ptc",
"connected",
"mbrick",
":",
"return",
"basic",
"get",
"mbrick",
"(",
")",
"!",
"=",
"null",
";",
"case",
"model",
"package",
"ptc",
"connected",
"sensor",
"value",
":",
"return",
"sensor",
"value",
"!",
"=",
"null",
";",
"case",
"model",
"package",
"ptc",
"connected",
"device",
"type",
":",
"return",
"device",
"type",
"edefault",
"=",
"=",
"null",
"?",
"device",
"type",
"!",
"=",
"null",
":",
"!",
"device",
"type",
"edefault",
"equals",
"(",
"device",
"type",
")",
";",
"}",
"return",
"super",
"e",
"is",
"set",
"(",
"feature",
"i",
"d",
")",
";"
] |
[
"<",
"!",
"-",
"-",
"begin",
"-",
"user",
"-",
"doc",
"-",
"-",
">",
"<",
"!",
"-",
"-",
"end",
"-",
"user",
"-",
"doc",
"-",
"-",
">"
] | [
"if",
"(",
"base",
"class",
"=",
"=",
"m",
"sensor",
"class",
")",
"{",
"switch",
"(",
"derived",
"feature",
"i",
"d",
")",
"{",
"case",
"model",
"package",
"ptc",
"connected",
"sensor",
"value",
":",
"return",
"model",
"package",
"msensor",
"sensor",
"value",
";",
"default",
":",
"return",
"-",
"1",
";",
"}",
"}",
"return",
"super",
"e",
"base",
"structural",
"feature",
"i",
"d",
"(",
"derived",
"feature",
"i",
"d",
",",
"base",
"class",
")",
";"
] |
[
"<",
"!",
"-",
"-",
"begin",
"-",
"user",
"-",
"doc",
"-",
"-",
">",
"<",
"!",
"-",
"-",
"end",
"-",
"user",
"-",
"doc",
"-",
"-",
">"
] | [
"if",
"(",
"base",
"class",
"=",
"=",
"m",
"sensor",
"class",
")",
"{",
"switch",
"(",
"base",
"feature",
"i",
"d",
")",
"{",
"case",
"model",
"package",
"msensor",
"sensor",
"value",
":",
"return",
"model",
"package",
"ptc",
"connected",
"sensor",
"value",
";",
"default",
":",
"return",
"-",
"1",
";",
"}",
"}",
"return",
"super",
"e",
"derived",
"structural",
"feature",
"i",
"d",
"(",
"base",
"feature",
"i",
"d",
",",
"base",
"class",
")",
";"
] |
[
"<",
"!",
"-",
"-",
"begin",
"-",
"user",
"-",
"doc",
"-",
"-",
">",
"<",
"!",
"-",
"-",
"end",
"-",
"user",
"-",
"doc",
"-",
"-",
">"
] | [
"if",
"(",
"base",
"class",
"=",
"=",
"m",
"sensor",
"class",
")",
"{",
"switch",
"(",
"base",
"operation",
"i",
"d",
")",
"{",
"case",
"model",
"package",
"msensor",
"fetch",
"sensor",
"value",
":",
"return",
"model",
"package",
"ptc",
"connected",
"fetch",
"sensor",
"value",
";",
"default",
":",
"return",
"-",
"1",
";",
"}",
"}",
"return",
"super",
"e",
"derived",
"operation",
"i",
"d",
"(",
"base",
"operation",
"i",
"d",
",",
"base",
"class",
")",
";"
] |
[
"<",
"!",
"-",
"-",
"begin",
"-",
"user",
"-",
"doc",
"-",
"-",
">",
"<",
"!",
"-",
"-",
"end",
"-",
"user",
"-",
"doc",
"-",
"-",
">"
] | [
"switch",
"(",
"operation",
"i",
"d",
")",
"{",
"case",
"model",
"package",
"ptc",
"connected",
"fetch",
"sensor",
"value",
":",
"fetch",
"sensor",
"value",
"(",
")",
";",
"return",
"null",
";",
"case",
"model",
"package",
"ptc",
"connected",
"init",
":",
"init",
"(",
")",
";",
"return",
"null",
";",
"case",
"model",
"package",
"ptc",
"connected",
"enable",
":",
"enable",
"(",
")",
";",
"return",
"null",
";",
"case",
"model",
"package",
"ptc",
"connected",
"disable",
":",
"disable",
"(",
")",
";",
"return",
"null",
";",
"}",
"return",
"super",
"e",
"invoke",
"(",
"operation",
"i",
"d",
",",
"arguments",
")",
";"
] |
[
"<",
"p",
">",
"the",
"name",
"you",
"assign",
"to",
"this",
"job",
"definition",
"it",
"must",
"be",
"unique",
"in",
"your",
"account",
"<",
"/",
"p",
">"
] | [
"set",
"name",
"(",
"name",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"this",
"field",
"is",
"reserved",
"for",
"future",
"use",
"<",
"/",
"p",
">"
] | [
"set",
"log",
"uri",
"(",
"log",
"uri",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"an",
"execution",
"property",
"specifying",
"the",
"maximum",
"number",
"of",
"concurrent",
"runs",
"allowed",
"for",
"this",
"job",
"<",
"/",
"p",
">"
] | [
"set",
"execution",
"property",
"(",
"execution",
"property",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"job",
"command",
"that",
"executes",
"this",
"job",
"<",
"/",
"p",
">"
] | [
"set",
"command",
"(",
"command",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"default",
"arguments",
"for",
"this",
"job",
"<",
"/",
"p",
">",
"<",
"p",
">",
"you",
"can",
"specify",
"arguments",
"here",
"that",
"your",
"own",
"job",
"-",
"execution",
"script",
"consumes",
"as",
"well",
"as",
"arguments",
"that",
"aws",
"glue",
"itself",
"consumes",
"<",
"/",
"p",
">",
"<",
"p",
">",
"for",
"information",
"about",
"how",
"to",
"specify",
"and",
"consume",
"your",
"own",
"job",
"arguments",
"see",
"the",
"<",
"a",
"href",
"=",
"http",
":",
"/",
"/",
"docs",
"aws",
"amazon",
"com",
"/",
"glue",
"/",
"latest",
"/",
"dg",
"/",
"aws",
"-",
"glue",
"-",
"programming",
"-",
"python",
"-",
"calling",
"html",
">",
"calling",
"aws",
"glue",
"a",
"p",
"is",
"in",
"python",
"<",
"/",
"a",
">",
"topic",
"in",
"the",
"developer",
"guide",
"<",
"/",
"p",
">",
"<",
"p",
">",
"for",
"information",
"about",
"the",
"key",
"-",
"value",
"pairs",
"that",
"aws",
"glue",
"consumes",
"to",
"set",
"up",
"your",
"job",
"see",
"the",
"<",
"a",
"href",
"=",
"http",
":",
"/",
"/",
"docs",
"aws",
"amazon",
"com",
"/",
"glue",
"/",
"latest",
"/",
"dg",
"/",
"aws",
"-",
"glue",
"-",
"programming",
"-",
"etl",
"-",
"glue",
"-",
"arguments",
"html",
">",
"special",
"parameters",
"used",
"by",
"aws",
"glue",
"<",
"/",
"a",
">",
"topic",
"in",
"the",
"developer",
"guide",
"<",
"/",
"p",
">"
] | [
"set",
"default",
"arguments",
"(",
"default",
"arguments",
")",
";",
"return",
"this",
";"
] |
[
"removes",
"all",
"the",
"entries",
"added",
"into",
"default",
"arguments"
] | [
"this",
"default",
"arguments",
"=",
"null",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"connections",
"used",
"for",
"this",
"job",
"<",
"/",
"p",
">"
] | [
"set",
"connections",
"(",
"connections",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"maximum",
"number",
"of",
"times",
"to",
"retry",
"this",
"job",
"if",
"it",
"fails",
"<",
"/",
"p",
">"
] | [
"set",
"max",
"retries",
"(",
"max",
"retries",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"number",
"of",
"aws",
"glue",
"data",
"processing",
"units",
"(",
"d",
"p",
"us",
")",
"to",
"allocate",
"to",
"this",
"job",
"from",
"2",
"to",
"100",
"d",
"p",
"us",
"can",
"be",
"allocated",
";",
"the",
"default",
"is",
"10",
"a",
"dpu",
"is",
"a",
"relative",
"measure",
"of",
"processing",
"power",
"that",
"consists",
"of",
"4",
"v",
"c",
"p",
"us",
"of",
"compute",
"capacity",
"and",
"16",
"gb",
"of",
"memory",
"for",
"more",
"information",
"see",
"the",
"<",
"a",
"href",
"=",
"https",
":",
"/",
"/",
"aws",
"amazon",
"com",
"/",
"glue",
"/",
"pricing",
"/",
">",
"aws",
"glue",
"pricing",
"page",
"<",
"/",
"a",
">",
"<",
"/",
"p",
">"
] | [
"set",
"allocated",
"capacity",
"(",
"allocated",
"capacity",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"job",
"timeout",
"in",
"minutes",
"this",
"is",
"the",
"maximum",
"time",
"that",
"a",
"job",
"run",
"can",
"consume",
"resources",
"before",
"it",
"is",
"terminated",
"and",
"enters",
"<",
"code",
">",
"timeout",
"<",
"/",
"code",
">",
"status",
"the",
"default",
"is",
"2",
"880",
"minutes",
"(",
"48",
"hours",
")",
"<",
"/",
"p",
">"
] | [
"set",
"timeout",
"(",
"timeout",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"specifies",
"configuration",
"properties",
"of",
"a",
"job",
"notification",
"<",
"/",
"p",
">"
] | [
"set",
"notification",
"property",
"(",
"notification",
"property",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"name",
"of",
"the",
"security",
"configuration",
"structure",
"to",
"be",
"used",
"with",
"this",
"job",
"<",
"/",
"p",
">"
] | [
"set",
"security",
"configuration",
"(",
"security",
"configuration",
")",
";",
"return",
"this",
";"
] |
[
"{"
] | [
"return",
"value",
"!",
"=",
"0x",
"0",
"0",
"?",
"one",
":",
"decimal",
"type",
"zero",
";"
] |
[
"adds",
"an",
"an",
"input",
"that",
"will",
"be",
"return",
"from",
"{"
] | [
"text",
"input",
"add",
"(",
"input",
")",
";"
] |
[
"adds",
"an",
"an",
"input",
"that",
"will",
"be",
"return",
"from",
"{"
] | [
"secret",
"input",
"add",
"(",
"input",
")",
";"
] |
[
"wipes",
"the",
"input",
"and",
"output"
] | [
"buffer",
"reset",
"(",
")",
";",
"text",
"index",
"=",
"0",
";",
"text",
"input",
"clear",
"(",
")",
";",
"secret",
"index",
"=",
"0",
";",
"secret",
"input",
"clear",
"(",
")",
";"
] |
[
"gets",
"the",
"indicated",
"element",
"it",
"is",
"an",
"error",
"to",
"call",
"this",
"with",
"the",
"index",
"for",
"an",
"element",
"which",
"was",
"never",
"set",
";",
"if",
"you",
"do",
"that",
"this",
"will",
"throw",
"{",
"@",
"code",
"null",
"pointer",
"exception",
"}"
] | [
"return",
"(",
"byte",
"block",
")",
"get",
"0",
"(",
"n",
")",
";"
] |
[
"sets",
"the",
"element",
"at",
"the",
"given",
"index"
] | [
"super",
"set",
"(",
"n",
",",
"bb",
")",
";"
] |
[
"the",
"unique",
"id",
"of",
"your",
"amazon",
"pinpoint",
"application"
] | [
"set",
"application",
"id",
"(",
"application",
"id",
")",
";",
"return",
"this",
";"
] |
[
"register",
"a",
"listener",
"that",
"will",
"be",
"called",
"when",
"this",
"model",
"is",
"bound",
"to",
"a",
"view",
"<",
"p",
">",
"the",
"listener",
"will",
"contribute",
"to",
"this",
"model",
"s",
"hash",
"code",
"state",
"per",
"the",
"{"
] | [
"on",
"mutation",
"(",
")",
";",
"this",
"on",
"model",
"bound",
"listener",
"epoxy",
"generated",
"model",
"=",
"listener",
";",
"return",
"this",
";"
] |
[
"register",
"a",
"listener",
"that",
"will",
"be",
"called",
"when",
"this",
"model",
"is",
"unbound",
"from",
"a",
"view",
"<",
"p",
">",
"the",
"listener",
"will",
"contribute",
"to",
"this",
"model",
"s",
"hash",
"code",
"state",
"per",
"the",
"{"
] | [
"on",
"mutation",
"(",
")",
";",
"this",
"on",
"model",
"unbound",
"listener",
"epoxy",
"generated",
"model",
"=",
"listener",
";",
"return",
"this",
";"
] |
[
"register",
"a",
"listener",
"that",
"will",
"be",
"called",
"when",
"this",
"model",
"visibility",
"state",
"has",
"changed",
"<",
"p",
">",
"the",
"listener",
"will",
"contribute",
"to",
"this",
"model",
"s",
"hash",
"code",
"state",
"per",
"the",
"{"
] | [
"on",
"mutation",
"(",
")",
";",
"this",
"on",
"model",
"visibility",
"state",
"changed",
"listener",
"epoxy",
"generated",
"model",
"=",
"listener",
";",
"return",
"this",
";"
] |
[
"register",
"a",
"listener",
"that",
"will",
"be",
"called",
"when",
"this",
"model",
"visibility",
"has",
"changed",
"<",
"p",
">",
"the",
"listener",
"will",
"contribute",
"to",
"this",
"model",
"s",
"hash",
"code",
"state",
"per",
"the",
"{"
] | [
"on",
"mutation",
"(",
")",
";",
"this",
"on",
"model",
"visibility",
"changed",
"listener",
"epoxy",
"generated",
"model",
"=",
"listener",
";",
"return",
"this",
";"
] |
[
"used",
"when",
"creating",
"raw",
"content"
] | [
"return",
"data",
"bytes",
";"
] |
[
"transforms",
"a",
"comma",
"-",
"separated",
"list",
"string",
"property",
"in",
"to",
"a",
"array",
"of",
"trimmed",
"strings"
] | [
"string",
"prop",
"value",
"=",
"properties",
"get",
"(",
"key",
")",
";",
"if",
"(",
"prop",
"value",
"!",
"=",
"null",
")",
"{",
"return",
"parse",
"as",
"csv",
"(",
"key",
",",
"prop",
"value",
")",
";",
"}",
"return",
"new",
"string",
"[",
"0",
"]",
";"
] |
[
"/",
"*",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-"
] | [
"user",
"identity",
"user",
"=",
"login",
"service",
"login",
"(",
"username",
",",
"password",
",",
"request",
")",
";",
"if",
"(",
"user",
"!",
"=",
"null",
")",
"{",
"renew",
"session",
"(",
"(",
"http",
"servlet",
"request",
")",
"request",
",",
"(",
"request",
"instanceof",
"request",
"?",
"(",
"(",
"request",
")",
"request",
")",
"get",
"response",
"(",
")",
":",
"null",
")",
")",
";",
"return",
"user",
";",
"}",
"return",
"null",
";"
] |
[
"creates",
"a",
"state",
"used",
"for",
"actually",
"matching",
"a",
"token"
] | [
"match",
"state",
"state",
"=",
"new",
"match",
"state",
"(",
"this",
",",
"synthesizer",
")",
";",
"state",
"set",
"token",
"(",
"token",
")",
";",
"return",
"state",
";"
] |
[
"creates",
"a",
"state",
"used",
"for",
"actually",
"matching",
"a",
"token"
] | [
"match",
"state",
"state",
"=",
"new",
"match",
"state",
"(",
"this",
",",
"synthesizer",
")",
";",
"state",
"set",
"token",
"(",
"tokens",
",",
"index",
",",
"next",
")",
";",
"return",
"state",
";"
] |
[
"checks",
"if",
"the",
"match",
"element",
"is",
"used",
"for",
"setting",
"the",
"part",
"of",
"speech",
":",
"{"
] | [
"return",
"set",
"pos",
";"
] |
[
"checks",
"if",
"the",
"match",
"element",
"uses",
"regexp",
"-",
"based",
"form",
"of",
"the",
"pos",
"tag"
] | [
"return",
"postag",
"regexp",
";"
] |
[
"sets",
"a",
"base",
"form",
"(",
"lemma",
")",
"that",
"will",
"be",
"formatted",
"or",
"synthesized",
"using",
"the",
"specified",
"pos",
"regular",
"expressions"
] | [
"if",
"(",
"!",
"string",
"tools",
"is",
"empty",
"(",
"lemma",
"string",
")",
")",
"{",
"lemma",
"=",
"lemma",
"string",
";",
"static",
"lemma",
"=",
"true",
";",
"postag",
"regexp",
"=",
"true",
";",
"if",
"(",
"pos",
"tag",
"!",
"=",
"null",
")",
"{",
"p",
"pos",
"regex",
"match",
"=",
"pattern",
"compile",
"(",
"pos",
"tag",
")",
";",
"}",
"}"
] |
[
"used",
"to",
"tell",
"whether",
"the",
"match",
"class",
"will",
"spell",
"-",
"check",
"the",
"result",
"so",
"that",
"misspelled",
"suggestions",
"are",
"suppressed"
] | [
"return",
"suppress",
"misspelled",
";"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.