docstring_tokens
list | code_tokens
list |
---|---|
[
"returns",
"the",
"private",
"address",
"of",
"the",
"discovered",
"node",
"the",
"private",
"address",
"<",
"b",
">",
"must",
"not",
"be",
"<",
"/",
"b",
">",
"null"
] |
[
"public",
"abstract",
"address",
"get",
"private",
"address",
"(",
")",
";"
] |
[
"returns",
"the",
"public",
"address",
"of",
"the",
"discovered",
"node",
"if",
"available",
"public",
"addresses",
"are",
"optional",
"and",
"this",
"method",
"may",
"return",
"null",
"or",
"the",
"same",
"address",
"as",
"{",
"@",
"link",
"#",
"get",
"private",
"address",
"(",
")",
"}"
] |
[
"public",
"abstract",
"address",
"get",
"public",
"address",
"(",
")",
";"
] |
[
"returns",
"a",
"{"
] |
[
"return",
"new",
"fragment",
"controller",
"(",
"callbacks",
")",
";"
] |
[
"returns",
"a",
"{"
] |
[
"return",
"m",
"host",
"get",
"fragment",
"manager",
"impl",
"(",
")",
";"
] |
[
"returns",
"a",
"{"
] |
[
"return",
"m",
"host",
"get",
"loader",
"manager",
"impl",
"(",
")",
";"
] |
[
"returns",
"a",
"fragment",
"with",
"the",
"given",
"identifier"
] |
[
"return",
"m",
"host",
"m",
"fragment",
"manager",
"find",
"fragment",
"by",
"who",
"(",
"who",
")",
";"
] |
[
"instantiates",
"a",
"fragment",
"s",
"view"
] |
[
"return",
"m",
"host",
"m",
"fragment",
"manager",
"on",
"create",
"view",
"(",
"parent",
",",
"name",
",",
"context",
",",
"attrs",
")",
";"
] |
[
"marks",
"the",
"fragment",
"state",
"as",
"unsaved",
"this",
"allows",
"for",
"state",
"loss",
"detection"
] |
[
"m",
"host",
"m",
"fragment",
"manager",
"note",
"state",
"not",
"saved",
"(",
")",
";"
] |
[
"saves",
"the",
"state",
"for",
"all",
"fragments"
] |
[
"return",
"m",
"host",
"m",
"fragment",
"manager",
"save",
"all",
"state",
"(",
")",
";"
] |
[
"restores",
"the",
"saved",
"state",
"for",
"all",
"fragments",
"the",
"given",
"fragment",
"list",
"are",
"fragment",
"instances",
"retained",
"across",
"configuration",
"changes"
] |
[
"m",
"host",
"m",
"fragment",
"manager",
"restore",
"all",
"state",
"(",
"state",
",",
"new",
"fragment",
"manager",
"non",
"config",
"(",
"non",
"config",
"list",
",",
"null",
")",
")",
";"
] |
[
"restores",
"the",
"saved",
"state",
"for",
"all",
"fragments",
"the",
"given",
"fragment",
"manager",
"non",
"config",
"are",
"fragment",
"instances",
"retained",
"across",
"configuration",
"changes",
"including",
"nested",
"fragments"
] |
[
"m",
"host",
"m",
"fragment",
"manager",
"restore",
"all",
"state",
"(",
"state",
",",
"non",
"config",
")",
";"
] |
[
"returns",
"a",
"list",
"of",
"fragments",
"that",
"have",
"opted",
"to",
"retain",
"their",
"instance",
"across",
"configuration",
"changes"
] |
[
"return",
"m",
"host",
"m",
"fragment",
"manager",
"retain",
"non",
"config",
"(",
")",
"get",
"fragments",
"(",
")",
";"
] |
[
"returns",
"a",
"nested",
"tree",
"of",
"fragments",
"that",
"have",
"opted",
"to",
"retain",
"their",
"instance",
"across",
"configuration",
"changes"
] |
[
"return",
"m",
"host",
"m",
"fragment",
"manager",
"retain",
"non",
"config",
"(",
")",
";"
] |
[
"moves",
"all",
"fragments",
"managed",
"by",
"the",
"controller",
"s",
"fragment",
"manager",
"into",
"the",
"create",
"state",
"<",
"p",
">",
"call",
"when",
"fragments",
"should",
"be",
"created"
] |
[
"m",
"host",
"m",
"fragment",
"manager",
"dispatch",
"create",
"(",
")",
";"
] |
[
"moves",
"all",
"fragments",
"managed",
"by",
"the",
"controller",
"s",
"fragment",
"manager",
"into",
"the",
"activity",
"created",
"state",
"<",
"p",
">",
"call",
"when",
"fragments",
"should",
"be",
"informed",
"their",
"host",
"has",
"been",
"created"
] |
[
"m",
"host",
"m",
"fragment",
"manager",
"dispatch",
"activity",
"created",
"(",
")",
";"
] |
[
"moves",
"all",
"fragments",
"managed",
"by",
"the",
"controller",
"s",
"fragment",
"manager",
"into",
"the",
"start",
"state",
"<",
"p",
">",
"call",
"when",
"fragments",
"should",
"be",
"started"
] |
[
"m",
"host",
"m",
"fragment",
"manager",
"dispatch",
"start",
"(",
")",
";"
] |
[
"moves",
"all",
"fragments",
"managed",
"by",
"the",
"controller",
"s",
"fragment",
"manager",
"into",
"the",
"resume",
"state",
"<",
"p",
">",
"call",
"when",
"fragments",
"should",
"be",
"resumed"
] |
[
"m",
"host",
"m",
"fragment",
"manager",
"dispatch",
"resume",
"(",
")",
";"
] |
[
"moves",
"all",
"fragments",
"managed",
"by",
"the",
"controller",
"s",
"fragment",
"manager",
"into",
"the",
"pause",
"state",
"<",
"p",
">",
"call",
"when",
"fragments",
"should",
"be",
"paused"
] |
[
"m",
"host",
"m",
"fragment",
"manager",
"dispatch",
"pause",
"(",
")",
";"
] |
[
"moves",
"all",
"fragments",
"managed",
"by",
"the",
"controller",
"s",
"fragment",
"manager",
"into",
"the",
"stop",
"state",
"<",
"p",
">",
"call",
"when",
"fragments",
"should",
"be",
"stopped"
] |
[
"m",
"host",
"m",
"fragment",
"manager",
"dispatch",
"stop",
"(",
")",
";"
] |
[
"moves",
"all",
"fragments",
"managed",
"by",
"the",
"controller",
"s",
"fragment",
"manager",
"into",
"the",
"destroy",
"view",
"state",
"<",
"p",
">",
"call",
"when",
"the",
"fragment",
"s",
"views",
"should",
"be",
"destroyed"
] |
[
"m",
"host",
"m",
"fragment",
"manager",
"dispatch",
"destroy",
"view",
"(",
")",
";"
] |
[
"moves",
"all",
"fragments",
"managed",
"by",
"the",
"controller",
"s",
"fragment",
"manager",
"into",
"the",
"destroy",
"state",
"<",
"p",
">",
"call",
"when",
"fragments",
"should",
"be",
"destroyed"
] |
[
"m",
"host",
"m",
"fragment",
"manager",
"dispatch",
"destroy",
"(",
")",
";"
] |
[
"lets",
"all",
"fragments",
"managed",
"by",
"the",
"controller",
"s",
"fragment",
"manager",
"know",
"the",
"multi",
"-",
"window",
"mode",
"of",
"the",
"activity",
"changed",
"<",
"p",
">",
"call",
"when",
"the",
"multi",
"-",
"window",
"mode",
"of",
"the",
"activity",
"changed"
] |
[
"m",
"host",
"m",
"fragment",
"manager",
"dispatch",
"multi",
"window",
"mode",
"changed",
"(",
"is",
"in",
"multi",
"window",
"mode",
")",
";"
] |
[
"lets",
"all",
"fragments",
"managed",
"by",
"the",
"controller",
"s",
"fragment",
"manager",
"know",
"the",
"multi",
"-",
"window",
"mode",
"of",
"the",
"activity",
"changed",
"<",
"p",
">",
"call",
"when",
"the",
"multi",
"-",
"window",
"mode",
"of",
"the",
"activity",
"changed"
] |
[
"m",
"host",
"m",
"fragment",
"manager",
"dispatch",
"multi",
"window",
"mode",
"changed",
"(",
"is",
"in",
"multi",
"window",
"mode",
",",
"new",
"config",
")",
";"
] |
[
"lets",
"all",
"fragments",
"managed",
"by",
"the",
"controller",
"s",
"fragment",
"manager",
"know",
"the",
"picture",
"-",
"in",
"-",
"picture",
"mode",
"of",
"the",
"activity",
"changed",
"<",
"p",
">",
"call",
"when",
"the",
"picture",
"-",
"in",
"-",
"picture",
"mode",
"of",
"the",
"activity",
"changed"
] |
[
"m",
"host",
"m",
"fragment",
"manager",
"dispatch",
"picture",
"in",
"picture",
"mode",
"changed",
"(",
"is",
"in",
"picture",
"in",
"picture",
"mode",
")",
";"
] |
[
"lets",
"all",
"fragments",
"managed",
"by",
"the",
"controller",
"s",
"fragment",
"manager",
"know",
"the",
"picture",
"-",
"in",
"-",
"picture",
"mode",
"of",
"the",
"activity",
"changed",
"<",
"p",
">",
"call",
"when",
"the",
"picture",
"-",
"in",
"-",
"picture",
"mode",
"of",
"the",
"activity",
"changed"
] |
[
"m",
"host",
"m",
"fragment",
"manager",
"dispatch",
"picture",
"in",
"picture",
"mode",
"changed",
"(",
"is",
"in",
"picture",
"in",
"picture",
"mode",
",",
"new",
"config",
")",
";"
] |
[
"lets",
"all",
"fragments",
"managed",
"by",
"the",
"controller",
"s",
"fragment",
"manager",
"know",
"a",
"configuration",
"change",
"occurred",
"<",
"p",
">",
"call",
"when",
"there",
"is",
"a",
"configuration",
"change"
] |
[
"m",
"host",
"m",
"fragment",
"manager",
"dispatch",
"configuration",
"changed",
"(",
"new",
"config",
")",
";"
] |
[
"lets",
"all",
"fragments",
"managed",
"by",
"the",
"controller",
"s",
"fragment",
"manager",
"know",
"the",
"device",
"is",
"in",
"a",
"low",
"memory",
"condition",
"<",
"p",
">",
"call",
"when",
"the",
"device",
"is",
"low",
"on",
"memory",
"and",
"fragment",
"s",
"should",
"trim",
"their",
"memory",
"usage"
] |
[
"m",
"host",
"m",
"fragment",
"manager",
"dispatch",
"low",
"memory",
"(",
")",
";"
] |
[
"lets",
"all",
"fragments",
"managed",
"by",
"the",
"controller",
"s",
"fragment",
"manager",
"know",
"they",
"should",
"trim",
"their",
"memory",
"usage",
"<",
"p",
">",
"call",
"when",
"the",
"fragment",
"can",
"release",
"allocated",
"memory",
"[",
"such",
"as",
"if",
"the",
"fragment",
"is",
"in",
"the",
"background",
"]"
] |
[
"m",
"host",
"m",
"fragment",
"manager",
"dispatch",
"trim",
"memory",
"(",
"level",
")",
";"
] |
[
"lets",
"all",
"fragments",
"managed",
"by",
"the",
"controller",
"s",
"fragment",
"manager",
"know",
"they",
"should",
"create",
"an",
"options",
"menu",
"<",
"p",
">",
"call",
"when",
"the",
"fragment",
"should",
"create",
"an",
"options",
"menu"
] |
[
"return",
"m",
"host",
"m",
"fragment",
"manager",
"dispatch",
"create",
"options",
"menu",
"(",
"menu",
",",
"inflater",
")",
";"
] |
[
"lets",
"all",
"fragments",
"managed",
"by",
"the",
"controller",
"s",
"fragment",
"manager",
"know",
"they",
"should",
"prepare",
"their",
"options",
"menu",
"for",
"display",
"<",
"p",
">",
"call",
"immediately",
"before",
"displaying",
"the",
"fragment",
"s",
"options",
"menu"
] |
[
"return",
"m",
"host",
"m",
"fragment",
"manager",
"dispatch",
"prepare",
"options",
"menu",
"(",
"menu",
")",
";"
] |
[
"sends",
"an",
"option",
"item",
"selection",
"event",
"to",
"the",
"fragments",
"managed",
"by",
"the",
"controller",
"s",
"fragment",
"manager",
"once",
"the",
"event",
"has",
"been",
"consumed",
"no",
"additional",
"handling",
"will",
"be",
"performed",
"<",
"p",
">",
"call",
"immediately",
"after",
"an",
"options",
"menu",
"item",
"has",
"been",
"selected"
] |
[
"return",
"m",
"host",
"m",
"fragment",
"manager",
"dispatch",
"options",
"item",
"selected",
"(",
"item",
")",
";"
] |
[
"sends",
"a",
"context",
"item",
"selection",
"event",
"to",
"the",
"fragments",
"managed",
"by",
"the",
"controller",
"s",
"fragment",
"manager",
"once",
"the",
"event",
"has",
"been",
"consumed",
"no",
"additional",
"handling",
"will",
"be",
"performed",
"<",
"p",
">",
"call",
"immediately",
"after",
"an",
"options",
"menu",
"item",
"has",
"been",
"selected"
] |
[
"return",
"m",
"host",
"m",
"fragment",
"manager",
"dispatch",
"context",
"item",
"selected",
"(",
"item",
")",
";"
] |
[
"lets",
"all",
"fragments",
"managed",
"by",
"the",
"controller",
"s",
"fragment",
"manager",
"know",
"their",
"options",
"menu",
"has",
"closed",
"<",
"p",
">",
"call",
"immediately",
"after",
"closing",
"the",
"fragment",
"s",
"options",
"menu"
] |
[
"m",
"host",
"m",
"fragment",
"manager",
"dispatch",
"options",
"menu",
"closed",
"(",
"menu",
")",
";"
] |
[
"execute",
"any",
"pending",
"actions",
"for",
"the",
"fragments",
"managed",
"by",
"the",
"controller",
"s",
"fragment",
"manager",
"<",
"p",
">",
"call",
"when",
"queued",
"actions",
"can",
"be",
"performed",
"[",
"eg",
"when",
"the",
"fragment",
"moves",
"into",
"a",
"start",
"or",
"resume",
"state",
"]"
] |
[
"return",
"m",
"host",
"m",
"fragment",
"manager",
"exec",
"pending",
"actions",
"(",
")",
";"
] |
[
"starts",
"the",
"loaders"
] |
[
"m",
"host",
"do",
"loader",
"start",
"(",
")",
";"
] |
[
"stops",
"the",
"loaders",
"optionally",
"retaining",
"their",
"state",
"this",
"is",
"useful",
"for",
"keeping",
"the",
"loader",
"state",
"across",
"configuration",
"changes"
] |
[
"m",
"host",
"do",
"loader",
"stop",
"(",
"retain",
")",
";"
] |
[
"destroys",
"the",
"loaders",
"and",
"if",
"their",
"state",
"is",
"not",
"being",
"retained",
"removes",
"them"
] |
[
"m",
"host",
"do",
"loader",
"destroy",
"(",
")",
";"
] |
[
"lets",
"the",
"loaders",
"know",
"the",
"host",
"is",
"ready",
"to",
"receive",
"notifications"
] |
[
"m",
"host",
"report",
"loader",
"start",
"(",
")",
";"
] |
[
"returns",
"a",
"list",
"of",
"loader",
"managers",
"that",
"have",
"opted",
"to",
"retain",
"their",
"instance",
"across",
"configuration",
"changes"
] |
[
"return",
"m",
"host",
"retain",
"loader",
"non",
"config",
"(",
")",
";"
] |
[
"restores",
"the",
"saved",
"state",
"for",
"all",
"loader",
"managers",
"the",
"given",
"loader",
"manager",
"list",
"are",
"loader",
"manager",
"instances",
"retained",
"across",
"configuration",
"changes"
] |
[
"m",
"host",
"restore",
"loader",
"non",
"config",
"(",
"loader",
"managers",
")",
";"
] |
[
"dumps",
"the",
"current",
"state",
"of",
"the",
"loaders"
] |
[
"m",
"host",
"dump",
"loaders",
"(",
"prefix",
",",
"fd",
",",
"writer",
",",
"args",
")",
";"
] |
[
"helper",
"method",
"to",
"load",
"values",
"for",
"a",
"single",
"-",
"value",
"dimension"
] |
[
"dictionary",
"dictionary",
"=",
"index",
"segment",
"get",
"data",
"source",
"(",
"column",
")",
"get",
"dictionary",
"(",
")",
";",
"set",
"<",
"object",
">",
"values",
"=",
"single",
"value",
"dimension",
"values",
"map",
"get",
"(",
"column",
")",
";",
"if",
"(",
"values",
"=",
"=",
"null",
")",
"{",
"values",
"=",
"new",
"hash",
"set",
"<",
">",
"(",
")",
";",
"single",
"value",
"dimension",
"values",
"map",
"put",
"(",
"column",
",",
"values",
")",
";",
"}",
"int",
"length",
"=",
"dictionary",
"length",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"length",
";",
"i",
"+",
"+",
")",
"{",
"values",
"add",
"(",
"dictionary",
"get",
"(",
"i",
")",
")",
";",
"}"
] |
[
"return",
"the",
"list",
"of",
"single",
"-",
"value",
"dimension",
"columns"
] |
[
"return",
"single",
"value",
"dimension",
"columns",
";"
] |
[
"return",
"the",
"list",
"of",
"metric",
"columns"
] |
[
"return",
"metric",
"columns",
";"
] |
[
"return",
"the",
"map",
"from",
"single",
"-",
"value",
"dimension",
"names",
"to",
"values",
"list",
"for",
"the",
"column"
] |
[
"return",
"single",
"value",
"dimension",
"values",
"map",
";"
] |
[
"{"
] |
[
"return",
"hadoop",
"next",
"job",
"id",
"(",
")",
";"
] |
[
"compares",
"the",
"contents",
"of",
"two",
"instances",
"to",
"see",
"if",
"they",
"are",
"equal"
] |
[
"if",
"(",
"obj",
"=",
"=",
"null",
")",
"{",
"return",
"false",
";",
"}",
"if",
"(",
"get",
"class",
"(",
")",
"!",
"=",
"obj",
"get",
"class",
"(",
")",
")",
"{",
"return",
"false",
";",
"}",
"final",
"bloom",
"filter",
"other",
"=",
"(",
"bloom",
"filter",
")",
"obj",
";",
"if",
"(",
"this",
"expected",
"number",
"of",
"filter",
"elements",
"!",
"=",
"other",
"expected",
"number",
"of",
"filter",
"elements",
")",
"{",
"return",
"false",
";",
"}",
"if",
"(",
"this",
"k",
"!",
"=",
"other",
"k",
")",
"{",
"return",
"false",
";",
"}",
"if",
"(",
"this",
"bit",
"set",
"size",
"!",
"=",
"other",
"bit",
"set",
"size",
")",
"{",
"return",
"false",
";",
"}",
"if",
"(",
"this",
"bitset",
"!",
"=",
"other",
"bitset",
"&",
"&",
"(",
"this",
"bitset",
"=",
"=",
"null",
"|",
"|",
"!",
"this",
"bitset",
"equals",
"(",
"other",
"bitset",
")",
")",
")",
"{",
"return",
"false",
";",
"}",
"return",
"true",
";"
] |
[
"calculates",
"a",
"hash",
"code",
"for",
"this",
"class"
] |
[
"int",
"hash",
"=",
"7",
";",
"hash",
"=",
"61",
"*",
"hash",
"+",
"(",
"this",
"bitset",
"!",
"=",
"null",
"?",
"this",
"bitset",
"hash",
"code",
"(",
")",
":",
"0",
")",
";",
"hash",
"=",
"61",
"*",
"hash",
"+",
"this",
"expected",
"number",
"of",
"filter",
"elements",
";",
"hash",
"=",
"61",
"*",
"hash",
"+",
"this",
"bit",
"set",
"size",
";",
"hash",
"=",
"61",
"*",
"hash",
"+",
"this",
"k",
";",
"return",
"hash",
";"
] |
[
"calculates",
"the",
"expected",
"probability",
"of",
"false",
"positives",
"based",
"on",
"the",
"number",
"of",
"expected",
"filter",
"elements",
"and",
"the",
"size",
"of",
"the",
"bloom",
"filter",
"<",
"br",
"/",
">",
"<",
"br",
"/",
">",
"the",
"value",
"returned",
"by",
"this",
"method",
"is",
"the",
"<",
"i",
">",
"expected",
"<",
"/",
"i",
">",
"rate",
"of",
"false",
"positives",
"assuming",
"the",
"number",
"of",
"inserted",
"elements",
"equals",
"the",
"number",
"of",
"expected",
"elements",
"if",
"the",
"number",
"of",
"elements",
"in",
"the",
"bloom",
"filter",
"is",
"less",
"than",
"the",
"expected",
"value",
"the",
"true",
"probability",
"of",
"false",
"positives",
"will",
"be",
"lower"
] |
[
"return",
"get",
"false",
"positive",
"probability",
"(",
"expected",
"number",
"of",
"filter",
"elements",
")",
";"
] |
[
"get",
"the",
"current",
"probability",
"of",
"a",
"false",
"positive",
"the",
"probability",
"is",
"calculated",
"from",
"the",
"size",
"of",
"the",
"bloom",
"filter",
"and",
"the",
"current",
"number",
"of",
"elements",
"added",
"to",
"it"
] |
[
"return",
"get",
"false",
"positive",
"probability",
"(",
"number",
"of",
"added",
"elements",
")",
";"
] |
[
"sets",
"all",
"bits",
"to",
"false",
"in",
"the",
"bloom",
"filter"
] |
[
"bitset",
"clear",
"(",
")",
";",
"number",
"of",
"added",
"elements",
"=",
"0",
";"
] |
[
"adds",
"an",
"array",
"of",
"bytes",
"to",
"the",
"bloom",
"filter"
] |
[
"int",
"[",
"]",
"hashes",
"=",
"create",
"hashes",
"(",
"bytes",
",",
"k",
")",
";",
"for",
"(",
"int",
"hash",
":",
"hashes",
")",
"bitset",
"set",
"(",
"math",
"abs",
"(",
"hash",
"%",
"bit",
"set",
"size",
")",
",",
"true",
")",
";",
"number",
"of",
"added",
"elements",
"+",
"+",
";"
] |
[
"returns",
"true",
"if",
"the",
"array",
"of",
"bytes",
"could",
"have",
"been",
"inserted",
"into",
"the",
"bloom",
"filter",
"use",
"get",
"false",
"positive",
"probability",
"(",
")",
"to",
"calculate",
"the",
"probability",
"of",
"this",
"being",
"correct"
] |
[
"int",
"[",
"]",
"hashes",
"=",
"create",
"hashes",
"(",
"bytes",
",",
"k",
")",
";",
"for",
"(",
"int",
"hash",
":",
"hashes",
")",
"{",
"if",
"(",
"!",
"bitset",
"get",
"(",
"math",
"abs",
"(",
"hash",
"%",
"bit",
"set",
"size",
")",
")",
")",
"{",
"return",
"false",
";",
"}",
"}",
"return",
"true",
";"
] |
[
"read",
"a",
"single",
"bit",
"from",
"the",
"bloom",
"filter"
] |
[
"return",
"bitset",
"get",
"(",
"bit",
")",
";"
] |
[
"set",
"a",
"single",
"bit",
"in",
"the",
"bloom",
"filter"
] |
[
"bitset",
"set",
"(",
"bit",
",",
"value",
")",
";"
] |
[
"return",
"the",
"bit",
"set",
"used",
"to",
"store",
"the",
"bloom",
"filter"
] |
[
"return",
"bitset",
";"
] |
[
"returns",
"the",
"number",
"of",
"bits",
"in",
"the",
"bloom",
"filter",
"use",
"count",
"(",
")",
"to",
"retrieve",
"the",
"number",
"of",
"inserted",
"elements"
] |
[
"return",
"this",
"bit",
"set",
"size",
";"
] |
[
"returns",
"the",
"number",
"of",
"elements",
"added",
"to",
"the",
"bloom",
"filter",
"after",
"it",
"was",
"constructed",
"or",
"after",
"clear",
"(",
")",
"was",
"called"
] |
[
"return",
"this",
"number",
"of",
"added",
"elements",
";"
] |
[
"returns",
"the",
"expected",
"number",
"of",
"elements",
"to",
"be",
"inserted",
"into",
"the",
"filter",
"this",
"value",
"is",
"the",
"same",
"value",
"as",
"the",
"one",
"passed",
"to",
"the",
"constructor"
] |
[
"return",
"expected",
"number",
"of",
"filter",
"elements",
";"
] |
[
"get",
"expected",
"number",
"of",
"bits",
"per",
"element",
"when",
"the",
"bloom",
"filter",
"is",
"full",
"this",
"value",
"is",
"set",
"by",
"the",
"constructor",
"when",
"the",
"bloom",
"filter",
"is",
"created",
"see",
"also",
"get",
"bits",
"per",
"element",
"(",
")"
] |
[
"return",
"this",
"bits",
"per",
"element",
";"
] |
[
"get",
"actual",
"number",
"of",
"bits",
"per",
"element",
"based",
"on",
"the",
"number",
"of",
"elements",
"that",
"have",
"currently",
"been",
"inserted",
"and",
"the",
"length",
"of",
"the",
"bloom",
"filter",
"see",
"also",
"get",
"expected",
"bits",
"per",
"element",
"(",
")"
] |
[
"return",
"this",
"bit",
"set",
"size",
"/",
"(",
"double",
")",
"number",
"of",
"added",
"elements",
";"
] |
[
"multiply"
] |
[
"lhs",
"set",
"memory",
"(",
"lhs",
"get",
"memory",
"(",
")",
"+",
"(",
"int",
")",
"(",
"rhs",
"get",
"memory",
"(",
")",
"*",
"by",
")",
")",
";",
"lhs",
"set",
"virtual",
"cores",
"(",
"lhs",
"get",
"virtual",
"cores",
"(",
")",
"+",
"(",
"int",
")",
"(",
"rhs",
"get",
"virtual",
"cores",
"(",
")",
"*",
"by",
")",
")",
";",
"return",
"lhs",
";"
] |
[
"gets",
"resource"
] |
[
"return",
"rsrc",
";"
] |
[
"{"
] |
[
"grid",
"resource",
"utils",
"inject",
"(",
"field",
"get",
"field",
"(",
")",
",",
"target",
",",
"rsrc",
")",
";"
] |
[
"{"
] |
[
"grid",
"resource",
"utils",
"inject",
"(",
"mtd",
"get",
"method",
"(",
")",
",",
"target",
",",
"rsrc",
")",
";"
] |
[
"{"
] |
[
"return",
"s",
"to",
"string",
"(",
"grid",
"resource",
"basic",
"injector",
"class",
",",
"this",
")",
";"
] |
[
"<",
"p",
">",
"[",
"ec2",
"-",
"vpc",
"]",
"the",
"association",
"id",
"required",
"for",
"ec2",
"-",
"vpc",
"<",
"/",
"p",
">"
] |
[
"set",
"association",
"id",
"(",
"association",
"id",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"[",
"ec2",
"-",
"classic",
"]",
"the",
"elastic",
"ip",
"address",
"required",
"for",
"ec2",
"-",
"classic",
"<",
"/",
"p",
">"
] |
[
"set",
"public",
"ip",
"(",
"public",
"ip",
")",
";",
"return",
"this",
";"
] |
[
"retrieve",
"a",
"lazy",
"list",
"of",
"map",
"entries",
"associated",
"with",
"specified",
"hostname",
"by",
"taking",
"into",
"account",
"the",
"domain",
"suffix",
"matches"
] |
[
"if",
"(",
"host",
"=",
"=",
"null",
")",
"return",
"lazy",
"list",
"get",
"list",
"(",
"super",
"entry",
"set",
"(",
")",
")",
";",
"int",
"idx",
"=",
"0",
";",
"string",
"domain",
"=",
"host",
"trim",
"(",
")",
";",
"hash",
"set",
"<",
"string",
">",
"domains",
"=",
"new",
"hash",
"set",
"<",
"string",
">",
"(",
")",
";",
"do",
"{",
"domains",
"add",
"(",
"domain",
")",
";",
"if",
"(",
"(",
"idx",
"=",
"domain",
"index",
"of",
"(",
"'",
"'",
")",
")",
">",
"0",
")",
"{",
"domain",
"=",
"domain",
"substring",
"(",
"idx",
"+",
"1",
")",
";",
"}",
"}",
"while",
"(",
"idx",
">",
"0",
")",
";",
"object",
"entries",
"=",
"null",
";",
"for",
"(",
"map",
"entry",
"<",
"string",
",",
"type",
">",
"entry",
":",
"super",
"entry",
"set",
"(",
")",
")",
"{",
"if",
"(",
"domains",
"contains",
"(",
"entry",
"get",
"key",
"(",
")",
")",
")",
"{",
"entries",
"=",
"lazy",
"list",
"add",
"(",
"entries",
",",
"entry",
")",
";",
"}",
"}",
"return",
"entries",
";"
] |
[
"merge",
"the",
"given",
"cells",
"and",
"return",
"the",
"resulting",
"cell"
] |
[
"if",
"(",
"m",
"cmd",
"=",
"=",
"e",
"cmd",
"&",
"&",
"m",
"ref",
"=",
"=",
"e",
"ref",
"&",
"&",
"m",
"skip",
"=",
"=",
"e",
"skip",
")",
"{",
"cell",
"c",
"=",
"new",
"cell",
"(",
"m",
")",
";",
"c",
"cnt",
"+",
"=",
"e",
"cnt",
";",
"return",
"c",
";",
"}",
"else",
"{",
"return",
"null",
";",
"}"
] |
[
"stop",
"the",
"server"
] |
[
"env",
"get",
"admin",
"context",
"(",
")",
"stop",
"(",
")",
";"
] |
[
"returns",
"the",
"id",
"of",
"the",
"{",
"@",
"link",
"type",
"instance",
"instance",
"}",
"which",
"is",
"associated",
"to",
"this",
"{",
"@",
"link",
"operand",
"tree",
"node",
"node",
"}"
] |
[
"return",
"type",
"instance",
"id",
";"
] |
[
"asserts",
"that",
"each",
"injection",
"point",
"has",
"the",
"specified",
"dependencies",
"in",
"the",
"given",
"order"
] |
[
"for",
"(",
"injection",
"point",
"point",
":",
"points",
")",
"{",
"assert",
"equals",
"(",
"literals",
"length",
",",
"point",
"get",
"dependencies",
"(",
")",
"size",
"(",
")",
")",
";",
"for",
"(",
"dependency",
"<",
"?",
">",
"dep",
":",
"point",
"get",
"dependencies",
"(",
")",
")",
"{",
"assert",
"equals",
"(",
"literals",
"[",
"dep",
"get",
"parameter",
"index",
"(",
")",
"]",
",",
"dep",
"get",
"key",
"(",
")",
"get",
"type",
"literal",
"(",
")",
")",
";",
"}",
"}"
] |
[
"implementations",
"for",
"attribute"
] |
[
"attribute",
"visitor",
"visit",
"runtime",
"visible",
"parameter",
"annotations",
"attribute",
"(",
"clazz",
",",
"method",
",",
"this",
")",
";"
] |
[
"{"
] |
[
"bind",
"factory",
"(",
"new",
"eureka",
"server",
"context",
"factory",
"(",
")",
")",
"to",
"(",
"eureka",
"server",
"context",
"class",
")",
";"
] |
[
"reset",
"any",
"internal",
"state",
"allowing",
"this",
"builder",
"to",
"be",
"recycled"
] |
[
"m",
"selection",
"set",
"length",
"(",
"0",
")",
";",
"m",
"selection",
"args",
"clear",
"(",
")",
";",
"return",
"this",
";"
] |
[
"return",
"selection",
"string",
"for",
"current",
"internal",
"state"
] |
[
"return",
"m",
"selection",
"to",
"string",
"(",
")",
";"
] |
[
"return",
"selection",
"arguments",
"for",
"current",
"internal",
"state"
] |
[
"return",
"m",
"selection",
"args",
"to",
"array",
"(",
"new",
"string",
"[",
"m",
"selection",
"args",
"size",
"(",
")",
"]",
")",
";"
] |
[
"execute",
"query",
"using",
"the",
"current",
"internal",
"state",
"as",
"{"
] |
[
"return",
"query",
"(",
"db",
",",
"table",
",",
"columns",
",",
"null",
",",
"null",
",",
"order",
"by",
",",
"null",
")",
";"
] |
[
"execute",
"query",
"using",
"the",
"current",
"internal",
"state",
"as",
"{"
] |
[
"return",
"db",
"query",
"(",
"table",
",",
"columns",
",",
"get",
"selection",
"(",
")",
",",
"get",
"selection",
"args",
"(",
")",
",",
"group",
"by",
",",
"having",
",",
"order",
"by",
",",
"limit",
")",
";"
] |
[
"execute",
"update",
"using",
"the",
"current",
"internal",
"state",
"as",
"{"
] |
[
"return",
"db",
"update",
"(",
"table",
",",
"values",
",",
"get",
"selection",
"(",
")",
",",
"get",
"selection",
"args",
"(",
")",
")",
";"
] |
[
"execute",
"delete",
"using",
"the",
"current",
"internal",
"state",
"as",
"{"
] |
[
"return",
"db",
"delete",
"(",
"table",
",",
"get",
"selection",
"(",
")",
",",
"get",
"selection",
"args",
"(",
")",
")",
";"
] |
[
"searches",
"a",
"list",
"of",
"methods",
"by",
"trying",
"the",
"three",
"phases",
"of",
"method",
"overload",
"resolution",
"https",
":",
"/",
"/",
"docs",
"oracle",
"com",
"/",
"javase",
"/",
"specs",
"/",
"jls",
"/",
"se",
"7",
"/",
"html",
"/",
"jls",
"-",
"15",
"html",
"#",
"jls",
"-",
"15",
"12",
"2"
] |
[
"try",
"{",
"list",
"<",
"method",
"type",
">",
"selected",
"methods",
"=",
"select",
"methods",
"first",
"phase",
"(",
"context",
",",
"methods",
",",
"arguments",
")",
";",
"if",
"(",
"!",
"selected",
"methods",
"is",
"empty",
"(",
")",
")",
"{",
"return",
"select",
"most",
"specific",
"method",
"(",
"selected",
"methods",
")",
"get",
"return",
"type",
"(",
")",
";",
"}",
"selected",
"methods",
"=",
"select",
"methods",
"second",
"phase",
"(",
"methods",
",",
"arguments",
")",
";",
"if",
"(",
"!",
"selected",
"methods",
"is",
"empty",
"(",
")",
")",
"{",
"return",
"select",
"most",
"specific",
"method",
"(",
"selected",
"methods",
")",
"get",
"return",
"type",
"(",
")",
";",
"}",
"selected",
"methods",
"=",
"select",
"methods",
"third",
"phase",
"(",
"methods",
",",
"arguments",
")",
";",
"if",
"(",
"!",
"selected",
"methods",
"is",
"empty",
"(",
")",
")",
"{",
"return",
"select",
"most",
"specific",
"method",
"(",
"selected",
"methods",
")",
"get",
"return",
"type",
"(",
")",
";",
"}",
"return",
"null",
";",
"}",
"catch",
"(",
"resolution",
"failed",
"exception",
"e",
")",
"{",
"return",
"null",
";",
"}"
] |
[
"<",
"p",
">",
"the",
"arn",
"of",
"the",
"certificate",
"<",
"/",
"p",
">"
] |
[
"this",
"transferred",
"certificate",
"arn",
"=",
"transferred",
"certificate",
"arn",
";"
] |
[
"<",
"p",
">",
"the",
"arn",
"of",
"the",
"certificate",
"<",
"/",
"p",
">"
] |
[
"return",
"this",
"transferred",
"certificate",
"arn",
";"
] |
[
"<",
"p",
">",
"the",
"arn",
"of",
"the",
"certificate",
"<",
"/",
"p",
">"
] |
[
"set",
"transferred",
"certificate",
"arn",
"(",
"transferred",
"certificate",
"arn",
")",
";",
"return",
"this",
";"
] |
[
"this",
"implementation",
"compares",
"the",
"underlying",
"description",
"string"
] |
[
"return",
"(",
"this",
"=",
"=",
"other",
"|",
"|",
"(",
"other",
"instanceof",
"descriptive",
"resource",
"&",
"&",
"(",
"(",
"descriptive",
"resource",
")",
"other",
")",
"description",
"equals",
"(",
"this",
"description",
")",
")",
")",
";"
] |
[
"this",
"implementation",
"returns",
"the",
"hash",
"code",
"of",
"the",
"underlying",
"description",
"string"
] |
[
"return",
"this",
"description",
"hash",
"code",
"(",
")",
";"
] |
[
"generates",
"32",
"bit",
"hash",
"from",
"byte",
"array",
"with",
"default",
"seed",
"value"
] |
[
"return",
"murmur",
"hash",
"2",
"hash",
"(",
"data",
",",
"0x",
"9",
"7",
"4",
"7b",
"2",
"8c",
",",
"offset",
",",
"len",
")",
";"
] |
[
"releases",
"the",
"workspace",
"lock",
"without",
"changing",
"the",
"nested",
"operation",
"depth",
"must",
"be",
"followed",
"eventually",
"by",
"end",
"unprotected",
"any",
"begin",
"unprotected",
"/",
"end",
"unprotected",
"pair",
"must",
"be",
"done",
"entirely",
"within",
"the",
"scope",
"of",
"a",
"check",
"in",
"/",
"check",
"out",
"pair",
"returns",
"the",
"old",
"lock",
"depth"
] |
[
"int",
"depth",
"=",
"lock",
"get",
"depth",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"depth",
";",
"i",
"+",
"+",
")",
"lock",
"release",
"(",
")",
";",
"return",
"depth",
";"
] |
[
"this",
"method",
"can",
"only",
"be",
"safely",
"called",
"from",
"inside",
"a",
"workspace",
"operation",
"should",
"not",
"be",
"called",
"from",
"outside",
"a",
"prepare",
"operation",
"/",
"end",
"operation",
"block"
] |
[
"prepared",
"operations",
"-",
"-",
";"
] |
[
"re",
"-",
"acquires",
"the",
"workspace",
"lock",
"that",
"was",
"temporarily",
"released",
"during",
"an",
"operation",
"and",
"restores",
"the",
"old",
"lock",
"depth"
] |
[
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"depth",
";",
"i",
"+",
"+",
")",
"lock",
"acquire",
"(",
")",
";"
] |
[
"returns",
"the",
"work",
"manager",
"s",
"lock"
] |
[
"return",
"lock",
";"
] |
[
"returns",
"the",
"scheduling",
"rule",
"used",
"during",
"resource",
"change",
"notifications"
] |
[
"return",
"notify",
"rule",
";"
] |
[
"this",
"method",
"can",
"only",
"be",
"safely",
"called",
"from",
"inside",
"a",
"workspace",
"operation",
"should",
"not",
"be",
"called",
"from",
"outside",
"a",
"prepare",
"operation",
"/",
"end",
"operation",
"block"
] |
[
"return",
"prepared",
"operations",
";"
] |
[
"this",
"method",
"can",
"only",
"be",
"safely",
"called",
"from",
"inside",
"a",
"workspace",
"operation",
"should",
"not",
"be",
"called",
"from",
"outside",
"a",
"prepare",
"operation",
"/",
"end",
"operation",
"block"
] |
[
"nested",
"operations",
"+",
"+",
";"
] |
[
"this",
"method",
"can",
"only",
"be",
"safely",
"called",
"from",
"inside",
"a",
"workspace",
"operation",
"should",
"not",
"be",
"called",
"from",
"outside",
"a",
"prepare",
"operation",
"/",
"end",
"operation",
"block"
] |
[
"prepared",
"operations",
"+",
"+",
";"
] |
[
"returns",
"true",
"if",
"the",
"nested",
"operation",
"depth",
"is",
"the",
"same",
"as",
"the",
"prepared",
"operation",
"depth",
"and",
"false",
"otherwise",
"this",
"method",
"can",
"only",
"be",
"safely",
"called",
"from",
"inside",
"a",
"workspace",
"operation",
"should",
"not",
"be",
"called",
"from",
"outside",
"a",
"prepare",
"operation",
"/",
"end",
"operation",
"block"
] |
[
"return",
"nested",
"operations",
"=",
"=",
"prepared",
"operations",
";"
] |
[
"this",
"method",
"can",
"only",
"be",
"safely",
"called",
"from",
"inside",
"a",
"workspace",
"operation",
"should",
"not",
"be",
"called",
"from",
"outside",
"a",
"prepare",
"operation",
"/",
"end",
"operation",
"block"
] |
[
"operation",
"canceled",
"=",
"true",
";"
] |
[
"used",
"to",
"make",
"things",
"stable",
"again",
"after",
"an",
"operation",
"has",
"failed",
"between",
"a",
"workspace",
"prepare",
"operation",
"(",
")",
"and",
"workspace",
"begin",
"operation",
"(",
")",
"this",
"method",
"can",
"only",
"be",
"safely",
"called",
"from",
"inside",
"a",
"workspace",
"operation",
"should",
"not",
"be",
"called",
"from",
"outside",
"a",
"prepare",
"operation",
"/",
"end",
"operation",
"block"
] |
[
"nested",
"operations",
"=",
"prepared",
"operations",
";"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.