docstring_tokens
list | code_tokens
list |
---|---|
[
"get",
"a",
"unix",
"timestamp",
"of",
"the",
"file",
"modification",
"time"
]
| [
"return",
"m",
"modified",
"timestamp",
"at",
"last",
"sync",
"for",
"data",
";"
]
|
[
"set",
"a",
"unix",
"timestamp",
"of",
"the",
"time",
"the",
"time",
"the",
"file",
"was",
"modified"
]
| [
"m",
"modified",
"timestamp",
"at",
"last",
"sync",
"for",
"data",
"=",
"modification",
"timestamp",
";"
]
|
[
"returns",
"the",
"filename",
"and",
"/",
"for",
"the",
"root",
"directory"
]
| [
"file",
"f",
"=",
"new",
"file",
"(",
"get",
"remote",
"path",
"(",
")",
")",
";",
"return",
"f",
"get",
"name",
"(",
")",
"length",
"(",
")",
"=",
"=",
"0",
"?",
"root",
"path",
":",
"f",
"get",
"name",
"(",
")",
";"
]
|
[
"can",
"be",
"used",
"to",
"get",
"the",
"mimetype"
]
| [
"return",
"m",
"mime",
"type",
";"
]
|
[
"used",
"internally",
"reset",
"all",
"file",
"properties"
]
| [
"m",
"id",
"=",
"-",
"1",
";",
"m",
"remote",
"path",
"=",
"null",
";",
"m",
"parent",
"id",
"=",
"0",
";",
"m",
"local",
"path",
"=",
"null",
";",
"m",
"mime",
"type",
"=",
"null",
";",
"m",
"length",
"=",
"0",
";",
"m",
"creation",
"timestamp",
"=",
"0",
";",
"m",
"modified",
"timestamp",
"=",
"0",
";",
"m",
"modified",
"timestamp",
"at",
"last",
"sync",
"for",
"data",
"=",
"0",
";",
"m",
"last",
"sync",
"date",
"for",
"properties",
"=",
"0",
";",
"m",
"last",
"sync",
"date",
"for",
"data",
"=",
"0",
";",
"m",
"available",
"offline",
"status",
"=",
"available",
"offline",
"status",
"not",
"available",
"offline",
";",
"m",
"etag",
"=",
"\"",
"\"",
";",
"m",
"tree",
"etag",
"=",
"\"",
"\"",
";",
"m",
"shared",
"by",
"link",
"=",
"false",
";",
"m",
"permissions",
"=",
"null",
";",
"m",
"remote",
"id",
"=",
"null",
";",
"m",
"needs",
"update",
"thumbnail",
"=",
"false",
";",
"m",
"is",
"downloading",
"=",
"false",
";",
"m",
"etag",
"in",
"conflict",
"=",
"null",
";",
"m",
"shared",
"with",
"sharee",
"=",
"false",
";",
"m",
"private",
"link",
"=",
"\"",
"\"",
";"
]
|
[
"sets",
"the",
"id",
"of",
"the",
"file"
]
| [
"m",
"id",
"=",
"file",
"id",
";"
]
|
[
"sets",
"the",
"mime",
"-",
"type",
"of",
"the"
]
| [
"m",
"mime",
"type",
"=",
"mimetype",
";"
]
|
[
"sets",
"the",
"id",
"of",
"the",
"parent",
"folder"
]
| [
"m",
"parent",
"id",
"=",
"parent",
"id",
";"
]
|
[
"sets",
"the",
"file",
"size",
"in",
"bytes"
]
| [
"m",
"length",
"=",
"file",
"len",
";"
]
|
[
"returns",
"the",
"size",
"of",
"the",
"file",
"in",
"bytes"
]
| [
"return",
"m",
"length",
";"
]
|
[
"creates",
"arguments",
"holder",
"with",
"required",
"parameters"
]
| [
"return",
"new",
"inspect",
"container",
"params",
"(",
")",
"with",
"container",
"(",
"container",
")",
";"
]
|
[
"adds",
"container",
"to",
"this",
"parameters"
]
| [
"require",
"non",
"null",
"(",
"container",
")",
";",
"this",
"container",
"=",
"container",
";",
"return",
"this",
";"
]
|
[
"adds",
"return",
"container",
"size",
"flag",
"to",
"this",
"parameters"
]
| [
"this",
"return",
"container",
"size",
"=",
"return",
"container",
"size",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"an",
"array",
"of",
"policy",
"statements",
"applied",
"to",
"the",
"application",
"<",
"/",
"p",
">",
"<",
"p",
">",
"<",
"b",
">",
"note",
":",
"<",
"/",
"b",
">",
"this",
"method",
"appends",
"the",
"values",
"to",
"the",
"existing",
"list",
"(",
"if",
"any",
")",
"use",
"{",
"@",
"link",
"#",
"set",
"statements",
"(",
"java",
"util",
"collection",
")",
"}",
"or",
"{",
"@",
"link",
"#",
"with",
"statements",
"(",
"java",
"util",
"collection",
")",
"}",
"if",
"you",
"want",
"to",
"override",
"the",
"existing",
"values",
"<",
"/",
"p",
">"
]
| [
"if",
"(",
"this",
"statements",
"=",
"=",
"null",
")",
"{",
"set",
"statements",
"(",
"new",
"java",
"util",
"array",
"list",
"<",
"application",
"policy",
"statement",
">",
"(",
"statements",
"length",
")",
")",
";",
"}",
"for",
"(",
"application",
"policy",
"statement",
"ele",
":",
"statements",
")",
"{",
"this",
"statements",
"add",
"(",
"ele",
")",
";",
"}",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"an",
"array",
"of",
"policy",
"statements",
"applied",
"to",
"the",
"application",
"<",
"/",
"p",
">"
]
| [
"set",
"statements",
"(",
"statements",
")",
";",
"return",
"this",
";"
]
|
[
"reuses",
"a",
"previous",
"freed",
"instance",
"or",
"creates",
"a",
"new",
"instance",
"and",
"set",
"it",
"to",
"reflect",
"the",
"specified",
"native",
"object"
]
| [
"final",
"bt",
"broadphase",
"pair",
"result",
"=",
"pool",
"obtain",
"(",
")",
";",
"result",
"reset",
"(",
"c",
"ptr",
",",
"own",
")",
";",
"return",
"result",
";"
]
|
[
"delete",
"the",
"native",
"object",
"if",
"required",
"and",
"allow",
"the",
"instance",
"to",
"be",
"reused",
"by",
"the",
"obtain",
"method"
]
| [
"inst",
"dispose",
"(",
")",
";",
"pool",
"free",
"(",
"inst",
")",
";"
]
|
[
"<",
"p",
">",
"a",
"name",
"for",
"the",
"attribute",
"<",
"/",
"p",
">"
]
| [
"set",
"attribute",
"name",
"(",
"attribute",
"name",
")",
";",
"return",
"this",
";"
]
|
[
"type",
"of",
"attribute",
"can",
"be",
"endpoint",
"-",
"custom",
"-",
"attributes",
"endpoint",
"-",
"custom",
"-",
"metrics",
"endpoint",
"-",
"user",
"-",
"attributes"
]
| [
"this",
"attribute",
"type",
"=",
"attribute",
"type",
";"
]
|
[
"type",
"of",
"attribute",
"can",
"be",
"endpoint",
"-",
"custom",
"-",
"attributes",
"endpoint",
"-",
"custom",
"-",
"metrics",
"endpoint",
"-",
"user",
"-",
"attributes"
]
| [
"return",
"this",
"attribute",
"type",
";"
]
|
[
"<",
"p",
">",
"the",
"data",
"type",
"for",
"the",
"attribute",
"where",
":",
"<",
"/",
"p",
">",
"<",
"ul",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"s",
"<",
"/",
"code",
">",
"-",
"the",
"attribute",
"is",
"of",
"type",
"string",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"n",
"<",
"/",
"code",
">",
"-",
"the",
"attribute",
"is",
"of",
"type",
"number",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"b",
"<",
"/",
"code",
">",
"-",
"the",
"attribute",
"is",
"of",
"type",
"binary",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"/",
"ul",
">"
]
| [
"set",
"attribute",
"type",
"(",
"attribute",
"type",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"data",
"type",
"for",
"the",
"attribute",
"where",
":",
"<",
"/",
"p",
">",
"<",
"ul",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"s",
"<",
"/",
"code",
">",
"-",
"the",
"attribute",
"is",
"of",
"type",
"string",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"n",
"<",
"/",
"code",
">",
"-",
"the",
"attribute",
"is",
"of",
"type",
"number",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"b",
"<",
"/",
"code",
">",
"-",
"the",
"attribute",
"is",
"of",
"type",
"binary",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"/",
"ul",
">"
]
| [
"with",
"attribute",
"type",
"(",
"attribute",
"type",
")",
";"
]
|
[
"<",
"p",
">",
"the",
"data",
"type",
"for",
"the",
"attribute",
"where",
":",
"<",
"/",
"p",
">",
"<",
"ul",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"s",
"<",
"/",
"code",
">",
"-",
"the",
"attribute",
"is",
"of",
"type",
"string",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"n",
"<",
"/",
"code",
">",
"-",
"the",
"attribute",
"is",
"of",
"type",
"number",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"li",
">",
"<",
"p",
">",
"<",
"code",
">",
"b",
"<",
"/",
"code",
">",
"-",
"the",
"attribute",
"is",
"of",
"type",
"binary",
"<",
"/",
"p",
">",
"<",
"/",
"li",
">",
"<",
"/",
"ul",
">"
]
| [
"this",
"attribute",
"type",
"=",
"attribute",
"type",
"to",
"string",
"(",
")",
";",
"return",
"this",
";"
]
|
[
"update",
"the",
"information",
"in",
"the",
"record"
]
| [
"m",
"sm",
"=",
"sm",
";",
"m",
"time",
"=",
"system",
"current",
"time",
"millis",
"(",
")",
";",
"m",
"what",
"=",
"(",
"msg",
"!",
"=",
"null",
")",
"?",
"msg",
"what",
":",
"0",
";",
"m",
"info",
"=",
"info",
";",
"m",
"state",
"=",
"state",
";",
"m",
"org",
"state",
"=",
"org",
"state",
";",
"m",
"dst",
"state",
"=",
"dst",
"state",
";"
]
|
[
"clear",
"the",
"list",
"of",
"records"
]
| [
"m",
"log",
"rec",
"vector",
"clear",
"(",
")",
";"
]
|
[
"add",
"a",
"processed",
"message"
]
| [
"m",
"count",
"+",
"=",
"1",
";",
"if",
"(",
"m",
"log",
"rec",
"vector",
"size",
"(",
")",
"<",
"m",
"max",
"size",
")",
"{",
"m",
"log",
"rec",
"vector",
"add",
"(",
"new",
"log",
"rec",
"(",
"sm",
",",
"msg",
",",
"message",
"info",
",",
"state",
",",
"org",
"state",
",",
"trans",
"to",
"state",
")",
")",
";",
"}",
"else",
"{",
"log",
"rec",
"pmi",
"=",
"m",
"log",
"rec",
"vector",
"get",
"(",
"m",
"oldest",
"index",
")",
";",
"m",
"oldest",
"index",
"+",
"=",
"1",
";",
"if",
"(",
"m",
"oldest",
"index",
">",
"=",
"m",
"max",
"size",
")",
"{",
"m",
"oldest",
"index",
"=",
"0",
";",
"}",
"pmi",
"update",
"(",
"sm",
",",
"msg",
",",
"message",
"info",
",",
"state",
",",
"org",
"state",
",",
"trans",
"to",
"state",
")",
";",
"}"
]
|
[
"remove",
"a",
"state",
"from",
"the",
"state",
"machine",
"will",
"not",
"remove",
"the",
"state",
"if",
"it",
"is",
"currently",
"active",
"or",
"if",
"it",
"has",
"any",
"children",
"in",
"the",
"hierarchy"
]
| [
"state",
"info",
"state",
"info",
"=",
"m",
"state",
"info",
"get",
"(",
"state",
")",
";",
"if",
"(",
"state",
"info",
"=",
"=",
"null",
"|",
"|",
"state",
"info",
"active",
")",
"{",
"return",
";",
"}",
"boolean",
"is",
"parent",
"=",
"m",
"state",
"info",
"values",
"(",
")",
"stream",
"(",
")",
"filter",
"(",
"si",
"-",
">",
"si",
"parent",
"state",
"info",
"=",
"=",
"state",
"info",
")",
"find",
"any",
"(",
")",
"is",
"present",
"(",
")",
";",
"if",
"(",
"is",
"parent",
")",
"{",
"return",
";",
"}",
"m",
"state",
"info",
"remove",
"(",
"state",
")",
";"
]
|
[
"validate",
"that",
"the",
"message",
"was",
"sent",
"by",
"quit",
"or",
"quit",
"now"
]
| [
"return",
"(",
"msg",
"what",
"=",
"=",
"sm",
"quit",
"cmd",
")",
"&",
"&",
"(",
"msg",
"obj",
"=",
"=",
"m",
"sm",
"handler",
"obj",
")",
";"
]
|
[
"initialize"
]
| [
"m",
"name",
"=",
"name",
";",
"m",
"sm",
"handler",
"=",
"new",
"sm",
"handler",
"(",
"looper",
",",
"this",
")",
";"
]
|
[
"notifies",
"subclass",
"that",
"the",
"state",
"machine",
"handler",
"is",
"about",
"to",
"process",
"the",
"message",
"msg"
]
| []
|
[
"notifies",
"subclass",
"that",
"the",
"state",
"machine",
"handler",
"has",
"finished",
"processing",
"the",
"message",
"msg",
"and",
"has",
"possibly",
"transitioned",
"to",
"a",
"new",
"state"
]
| []
|
[
"add",
"a",
"new",
"state",
"to",
"the",
"state",
"machine"
]
| [
"m",
"sm",
"handler",
"add",
"state",
"(",
"state",
",",
"parent",
")",
";"
]
|
[
"add",
"a",
"new",
"state",
"to",
"the",
"state",
"machine",
"parent",
"will",
"be",
"null"
]
| [
"m",
"sm",
"handler",
"add",
"state",
"(",
"state",
",",
"null",
")",
";"
]
|
[
"removes",
"a",
"state",
"from",
"the",
"state",
"machine",
"unless",
"it",
"is",
"currently",
"active",
"or",
"if",
"it",
"has",
"children"
]
| [
"m",
"sm",
"handler",
"remove",
"state",
"(",
"state",
")",
";"
]
|
[
"set",
"the",
"initial",
"state",
"this",
"must",
"be",
"invoked",
"before",
"and",
"messages",
"are",
"sent",
"to",
"the",
"state",
"machine"
]
| [
"m",
"sm",
"handler",
"set",
"initial",
"state",
"(",
"initial",
"state",
")",
";"
]
|
[
"transition",
"to",
"destination",
"state",
"upon",
"returning",
"from",
"process",
"message",
"the",
"current",
"state",
"s",
"exit",
"will",
"be",
"executed",
"and",
"upon",
"the",
"next",
"message",
"arriving",
"dest",
"state",
"enter",
"will",
"be",
"invoked"
]
| [
"m",
"sm",
"handler",
"transition",
"to",
"(",
"dest",
"state",
")",
";"
]
|
[
"transition",
"to",
"halt",
"state",
"upon",
"returning",
"from",
"process",
"message",
"we",
"will",
"exit",
"all",
"current",
"states",
"execute",
"the",
"on",
"halting",
"(",
")",
"method",
"and",
"then",
"for",
"all",
"subsequent",
"messages",
"halted",
"process",
"message",
"will",
"be",
"called"
]
| [
"m",
"sm",
"handler",
"transition",
"to",
"(",
"m",
"sm",
"handler",
"m",
"halting",
"state",
")",
";"
]
|
[
"defer",
"this",
"message",
"until",
"next",
"state",
"transition",
"upon",
"transitioning",
"all",
"deferred",
"messages",
"will",
"be",
"placed",
"on",
"the",
"queue",
"and",
"reprocessed",
"in",
"the",
"original",
"order",
"(",
"i",
"e",
"the",
"next",
"state",
"the",
"oldest",
"messages",
"will",
"be",
"processed",
"first",
")"
]
| [
"m",
"sm",
"handler",
"defer",
"message",
"(",
"msg",
")",
";"
]
|
[
"called",
"for",
"any",
"message",
"that",
"is",
"received",
"after",
"transition",
"to",
"halting",
"is",
"called"
]
| []
|
[
"this",
"will",
"be",
"called",
"once",
"after",
"handling",
"a",
"message",
"that",
"called",
"transition",
"to",
"halting",
"all",
"subsequent",
"messages",
"will",
"invoke",
"{"
]
| []
|
[
"this",
"will",
"be",
"called",
"once",
"after",
"a",
"quit",
"message",
"that",
"was",
"not",
"handled",
"by",
"the",
"derived",
"state",
"machine",
"the",
"state",
"machine",
"will",
"stop",
"and",
"any",
"subsequent",
"messages",
"will",
"be",
"ignored",
"in",
"addition",
"if",
"this",
"state",
"machine",
"created",
"the",
"thread",
"the",
"thread",
"will",
"be",
"stopped",
"after",
"this",
"method",
"returns"
]
| []
|
[
"set",
"number",
"of",
"log",
"records",
"to",
"maintain",
"and",
"clears",
"all",
"current",
"records"
]
| [
"m",
"sm",
"handler",
"m",
"log",
"records",
"set",
"size",
"(",
"max",
"size",
")",
";"
]
|
[
"set",
"to",
"log",
"only",
"messages",
"that",
"cause",
"a",
"state",
"transition"
]
| [
"m",
"sm",
"handler",
"m",
"log",
"records",
"set",
"log",
"only",
"transitions",
"(",
"enable",
")",
";"
]
|
[
"return",
"a",
"string",
"to",
"be",
"logged",
"by",
"log",
"rec",
"default",
"is",
"an",
"empty",
"string",
"override",
"if",
"additional",
"information",
"is",
"desired"
]
| [
"return",
"\"",
"\"",
";"
]
|
[
"get",
"a",
"message",
"and",
"set",
"message",
"target",
"state",
"machine",
"handler"
]
| [
"return",
"message",
"obtain",
"(",
"m",
"sm",
"handler",
")",
";"
]
|
[
"get",
"a",
"message",
"and",
"set",
"message",
"target",
"state",
"machine",
"handler",
"what"
]
| [
"return",
"message",
"obtain",
"(",
"m",
"sm",
"handler",
",",
"what",
")",
";"
]
|
[
"get",
"a",
"message",
"and",
"set",
"message",
"target",
"state",
"machine",
"handler",
"what",
"and",
"obj"
]
| [
"return",
"message",
"obtain",
"(",
"m",
"sm",
"handler",
",",
"what",
",",
"obj",
")",
";"
]
|
[
"get",
"a",
"message",
"and",
"set",
"message",
"target",
"state",
"machine",
"handler",
"what",
"arg",
"1",
"and",
"arg",
"2"
]
| [
"return",
"message",
"obtain",
"(",
"m",
"sm",
"handler",
",",
"what",
",",
"arg",
"1",
",",
"arg",
"2",
")",
";"
]
|
[
"get",
"a",
"message",
"and",
"set",
"message",
"target",
"state",
"machine",
"handler",
"what",
"arg",
"1",
"arg",
"2",
"and",
"obj"
]
| [
"return",
"message",
"obtain",
"(",
"m",
"sm",
"handler",
",",
"what",
",",
"arg",
"1",
",",
"arg",
"2",
",",
"obj",
")",
";"
]
|
[
"removes",
"a",
"message",
"from",
"the",
"deferred",
"messages",
"queue"
]
| [
"sm",
"handler",
"smh",
"=",
"m",
"sm",
"handler",
";",
"if",
"(",
"smh",
"=",
"=",
"null",
")",
"return",
";",
"iterator",
"<",
"message",
">",
"iterator",
"=",
"smh",
"m",
"deferred",
"messages",
"iterator",
"(",
")",
";",
"while",
"(",
"iterator",
"has",
"next",
"(",
")",
")",
"{",
"message",
"msg",
"=",
"iterator",
"next",
"(",
")",
";",
"if",
"(",
"msg",
"what",
"=",
"=",
"what",
")",
"iterator",
"remove",
"(",
")",
";",
"}"
]
|
[
"check",
"if",
"there",
"are",
"any",
"pending",
"messages",
"with",
"code",
"what",
"in",
"deferred",
"messages",
"queue"
]
| [
"sm",
"handler",
"smh",
"=",
"m",
"sm",
"handler",
";",
"if",
"(",
"smh",
"=",
"=",
"null",
")",
"return",
"false",
";",
"iterator",
"<",
"message",
">",
"iterator",
"=",
"smh",
"m",
"deferred",
"messages",
"iterator",
"(",
")",
";",
"while",
"(",
"iterator",
"has",
"next",
"(",
")",
")",
"{",
"message",
"msg",
"=",
"iterator",
"next",
"(",
")",
";",
"if",
"(",
"msg",
"what",
"=",
"=",
"what",
")",
"return",
"true",
";",
"}",
"return",
"false",
";"
]
|
[
"check",
"if",
"there",
"are",
"any",
"pending",
"posts",
"of",
"messages",
"with",
"code",
"what",
"in",
"the",
"message",
"queue",
"this",
"does",
"not",
"check",
"messages",
"in",
"deferred",
"message",
"queue"
]
| [
"sm",
"handler",
"smh",
"=",
"m",
"sm",
"handler",
";",
"if",
"(",
"smh",
"=",
"=",
"null",
")",
"return",
"false",
";",
"return",
"smh",
"has",
"messages",
"(",
"what",
")",
";"
]
|
[
"log",
"with",
"debug",
"and",
"add",
"to",
"the",
"log",
"records"
]
| [
"add",
"log",
"rec",
"(",
"s",
")",
";",
"log",
"(",
"s",
")",
";"
]
|
[
"log",
"with",
"debug"
]
| [
"log",
"d",
"(",
"m",
"name",
",",
"s",
")",
";"
]
|
[
"log",
"with",
"debug",
"attribute"
]
| [
"log",
"d",
"(",
"m",
"name",
",",
"s",
")",
";"
]
|
[
"log",
"with",
"verbose",
"attribute"
]
| [
"log",
"v",
"(",
"m",
"name",
",",
"s",
")",
";"
]
|
[
"log",
"with",
"info",
"attribute"
]
| [
"log",
"i",
"(",
"m",
"name",
",",
"s",
")",
";"
]
|
[
"log",
"with",
"warning",
"attribute"
]
| [
"log",
"w",
"(",
"m",
"name",
",",
"s",
")",
";"
]
|
[
"log",
"with",
"error",
"attribute"
]
| [
"log",
"e",
"(",
"m",
"name",
",",
"s",
")",
";"
]
|
[
"log",
"with",
"error",
"attribute"
]
| [
"log",
"e",
"(",
"m",
"name",
",",
"s",
",",
"e",
")",
";"
]
|
[
"<",
"p",
">",
"the",
"<",
"code",
">",
"byte",
"match",
"set",
"id",
"<",
"/",
"code",
">",
"for",
"a",
"<",
"code",
">",
"byte",
"match",
"set",
"<",
"/",
"code",
">",
"you",
"use",
"<",
"code",
">",
"byte",
"match",
"set",
"id",
"<",
"/",
"code",
">",
"to",
"get",
"information",
"about",
"a",
"<",
"code",
">",
"byte",
"match",
"set",
"<",
"/",
"code",
">",
"(",
"see",
"<",
"a",
">",
"get",
"byte",
"match",
"set",
"<",
"/",
"a",
">",
")",
"update",
"a",
"<",
"code",
">",
"byte",
"match",
"set",
"<",
"/",
"code",
">",
"(",
"see",
"<",
"a",
">",
"update",
"byte",
"match",
"set",
"<",
"/",
"a",
">",
")",
"insert",
"a",
"<",
"code",
">",
"byte",
"match",
"set",
"<",
"/",
"code",
">",
"into",
"a",
"<",
"code",
">",
"rule",
"<",
"/",
"code",
">",
"or",
"delete",
"one",
"from",
"a",
"<",
"code",
">",
"rule",
"<",
"/",
"code",
">",
"(",
"see",
"<",
"a",
">",
"update",
"rule",
"<",
"/",
"a",
">",
")",
"and",
"delete",
"a",
"<",
"code",
">",
"byte",
"match",
"set",
"<",
"/",
"code",
">",
"from",
"aws",
"waf",
"(",
"see",
"<",
"a",
">",
"delete",
"byte",
"match",
"set",
"<",
"/",
"a",
">",
")",
"<",
"/",
"p",
">",
"<",
"p",
">",
"<",
"code",
">",
"byte",
"match",
"set",
"id",
"<",
"/",
"code",
">",
"is",
"returned",
"by",
"<",
"a",
">",
"create",
"byte",
"match",
"set",
"<",
"/",
"a",
">",
"and",
"by",
"<",
"a",
">",
"list",
"byte",
"match",
"sets",
"<",
"/",
"a",
">",
"<",
"/",
"p",
">"
]
| [
"set",
"byte",
"match",
"set",
"id",
"(",
"byte",
"match",
"set",
"id",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"a",
"friendly",
"name",
"or",
"description",
"of",
"the",
"<",
"a",
">",
"byte",
"match",
"set",
"<",
"/",
"a",
">",
"you",
"can",
"t",
"change",
"<",
"code",
">",
"name",
"<",
"/",
"code",
">",
"after",
"you",
"create",
"a",
"<",
"code",
">",
"byte",
"match",
"set",
"<",
"/",
"code",
">",
"<",
"/",
"p",
">"
]
| [
"set",
"name",
"(",
"name",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"specifies",
"the",
"bytes",
"(",
"typically",
"a",
"string",
"that",
"corresponds",
"with",
"ascii",
"characters",
")",
"that",
"you",
"want",
"aws",
"waf",
"to",
"search",
"for",
"in",
"web",
"requests",
"the",
"location",
"in",
"requests",
"that",
"you",
"want",
"aws",
"waf",
"to",
"search",
"and",
"other",
"settings",
"<",
"/",
"p",
">"
]
| [
"return",
"byte",
"match",
"tuples",
";"
]
|
[
"<",
"p",
">",
"specifies",
"the",
"bytes",
"(",
"typically",
"a",
"string",
"that",
"corresponds",
"with",
"ascii",
"characters",
")",
"that",
"you",
"want",
"aws",
"waf",
"to",
"search",
"for",
"in",
"web",
"requests",
"the",
"location",
"in",
"requests",
"that",
"you",
"want",
"aws",
"waf",
"to",
"search",
"and",
"other",
"settings",
"<",
"/",
"p",
">"
]
| [
"if",
"(",
"byte",
"match",
"tuples",
"=",
"=",
"null",
")",
"{",
"this",
"byte",
"match",
"tuples",
"=",
"null",
";",
"return",
";",
"}",
"this",
"byte",
"match",
"tuples",
"=",
"new",
"java",
"util",
"array",
"list",
"<",
"byte",
"match",
"tuple",
">",
"(",
"byte",
"match",
"tuples",
")",
";"
]
|
[
"<",
"p",
">",
"specifies",
"the",
"bytes",
"(",
"typically",
"a",
"string",
"that",
"corresponds",
"with",
"ascii",
"characters",
")",
"that",
"you",
"want",
"aws",
"waf",
"to",
"search",
"for",
"in",
"web",
"requests",
"the",
"location",
"in",
"requests",
"that",
"you",
"want",
"aws",
"waf",
"to",
"search",
"and",
"other",
"settings",
"<",
"/",
"p",
">",
"<",
"p",
">",
"<",
"b",
">",
"note",
":",
"<",
"/",
"b",
">",
"this",
"method",
"appends",
"the",
"values",
"to",
"the",
"existing",
"list",
"(",
"if",
"any",
")",
"use",
"{",
"@",
"link",
"#",
"set",
"byte",
"match",
"tuples",
"(",
"java",
"util",
"collection",
")",
"}",
"or",
"{",
"@",
"link",
"#",
"with",
"byte",
"match",
"tuples",
"(",
"java",
"util",
"collection",
")",
"}",
"if",
"you",
"want",
"to",
"override",
"the",
"existing",
"values",
"<",
"/",
"p",
">"
]
| [
"if",
"(",
"this",
"byte",
"match",
"tuples",
"=",
"=",
"null",
")",
"{",
"set",
"byte",
"match",
"tuples",
"(",
"new",
"java",
"util",
"array",
"list",
"<",
"byte",
"match",
"tuple",
">",
"(",
"byte",
"match",
"tuples",
"length",
")",
")",
";",
"}",
"for",
"(",
"byte",
"match",
"tuple",
"ele",
":",
"byte",
"match",
"tuples",
")",
"{",
"this",
"byte",
"match",
"tuples",
"add",
"(",
"ele",
")",
";",
"}",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"specifies",
"the",
"bytes",
"(",
"typically",
"a",
"string",
"that",
"corresponds",
"with",
"ascii",
"characters",
")",
"that",
"you",
"want",
"aws",
"waf",
"to",
"search",
"for",
"in",
"web",
"requests",
"the",
"location",
"in",
"requests",
"that",
"you",
"want",
"aws",
"waf",
"to",
"search",
"and",
"other",
"settings",
"<",
"/",
"p",
">"
]
| [
"set",
"byte",
"match",
"tuples",
"(",
"byte",
"match",
"tuples",
")",
";",
"return",
"this",
";"
]
|
[
"constructs",
"a",
"{",
"@",
"code",
"left",
"}",
"either"
]
| [
"return",
"new",
"left",
"<",
">",
"(",
"left",
")",
";"
]
|
[
"constructs",
"a",
"{",
"@",
"code",
"right",
"}",
"either"
]
| [
"return",
"new",
"right",
"<",
">",
"(",
"right",
")",
";"
]
|
[
"collects",
"the",
"underlying",
"value",
"(",
"if",
"present",
")",
"using",
"the",
"provided",
"{",
"@",
"code",
"collector",
"}",
"<",
"p",
">",
"shortcut",
"for",
"{",
"@",
"code",
"stream",
"(",
")",
"collect",
"(",
"collector",
")",
"}"
]
| [
"return",
"stream",
"(",
")",
"collect",
"(",
"collector",
")",
";"
]
|
[
"gets",
"the",
"right",
"value",
"if",
"this",
"is",
"a",
"{",
"@",
"code",
"right",
"}",
"or",
"throws",
"if",
"this",
"is",
"a",
"{",
"@",
"code",
"left",
"}"
]
| [
"@",
"deprecated",
"public",
"abstract",
"r",
"get",
"(",
")",
";"
]
|
[
"gets",
"the",
"left",
"value",
"if",
"this",
"is",
"a",
"{",
"@",
"code",
"left",
"}",
"or",
"throws",
"if",
"this",
"is",
"a",
"{",
"@",
"code",
"right",
"}"
]
| [
"@",
"deprecated",
"public",
"abstract",
"l",
"get",
"left",
"(",
")",
";"
]
|
[
"gets",
"the",
"right",
"value",
"or",
"an",
"alternate",
"value",
"if",
"the",
"either",
"is",
"a",
"left"
]
| [
"return",
"is",
"right",
"(",
")",
"?",
"get",
"(",
")",
":",
"other",
";"
]
|
[
"converts",
"this",
"{",
"@",
"code",
"either",
"}",
"to",
"a",
"{",
"@",
"link",
"stream",
"}"
]
| [
"return",
"is",
"right",
"(",
")",
"?",
"stream",
"of",
"(",
"get",
"(",
")",
")",
":",
"stream",
"empty",
"(",
")",
";"
]
|
[
"converts",
"a",
"{",
"@",
"code",
"left",
"}",
"to",
"a",
"{",
"@",
"code",
"right",
"}",
"vice",
"versa",
"by",
"wrapping",
"the",
"value",
"in",
"a",
"new",
"type"
]
| [
"return",
"is",
"right",
"(",
")",
"?",
"left",
"(",
"get",
"(",
")",
")",
":",
"right",
"(",
"get",
"left",
"(",
")",
")",
";"
]
|
[
"converts",
"this",
"{",
"@",
"code",
"either",
"}",
"to",
"an",
"{",
"@",
"link",
"option",
"}"
]
| [
"return",
"is",
"right",
"(",
")",
"?",
"option",
"some",
"(",
"get",
"(",
")",
")",
":",
"option",
"none",
"(",
")",
";"
]
|
[
"converts",
"this",
"{",
"@",
"code",
"either",
"}",
"to",
"an",
"{",
"@",
"link",
"optional",
"}"
]
| [
"return",
"is",
"right",
"(",
")",
"?",
"optional",
"of",
"nullable",
"(",
"get",
"(",
")",
")",
":",
"optional",
"empty",
"(",
")",
";"
]
|
[
"returns",
"the",
"{"
]
| [
"return",
"m",
"helpers",
"get",
"(",
"text",
"view",
")",
";"
]
|
[
"returns",
"the",
"{"
]
| [
"return",
"m",
"helpers",
"get",
"(",
"get",
"child",
"at",
"(",
"index",
")",
")",
";"
]
|
[
"listen",
"to",
"the",
"{",
"@",
"link",
"sentinel",
"property",
"}",
"for",
"{",
"@",
"link",
"system",
"rule",
"}",
"s",
"the",
"property",
"is",
"the",
"source",
"of",
"{",
"@",
"link",
"system",
"rule",
"}",
"s",
"system",
"rules",
"can",
"also",
"be",
"set",
"by",
"{",
"@",
"link",
"#",
"load",
"rules",
"(",
"list",
")",
"}",
"directly"
]
| [
"synchronized",
"(",
"listener",
")",
"{",
"current",
"property",
"remove",
"listener",
"(",
"listener",
")",
";",
"property",
"add",
"listener",
"(",
"listener",
")",
";",
"current",
"property",
"=",
"property",
";",
"}"
]
|
[
"load",
"{",
"@",
"link",
"system",
"rule",
"}",
"s",
"former",
"rules",
"will",
"be",
"replaced"
]
| [
"current",
"property",
"update",
"value",
"(",
"rules",
")",
";"
]
|
[
"get",
"a",
"copy",
"of",
"the",
"rules"
]
| [
"list",
"<",
"system",
"rule",
">",
"result",
"=",
"new",
"array",
"list",
"<",
"system",
"rule",
">",
"(",
")",
";",
"if",
"(",
"!",
"check",
"system",
"status",
"get",
"(",
")",
")",
"{",
"return",
"result",
";",
"}",
"if",
"(",
"highest",
"system",
"load",
"is",
"set",
")",
"{",
"system",
"rule",
"load",
"rule",
"=",
"new",
"system",
"rule",
"(",
")",
";",
"load",
"rule",
"set",
"highest",
"system",
"load",
"(",
"highest",
"system",
"load",
")",
";",
"result",
"add",
"(",
"load",
"rule",
")",
";",
"}",
"if",
"(",
"max",
"rt",
"is",
"set",
")",
"{",
"system",
"rule",
"rt",
"rule",
"=",
"new",
"system",
"rule",
"(",
")",
";",
"rt",
"rule",
"set",
"avg",
"rt",
"(",
"max",
"rt",
")",
";",
"result",
"add",
"(",
"rt",
"rule",
")",
";",
"}",
"if",
"(",
"max",
"thread",
"is",
"set",
")",
"{",
"system",
"rule",
"thread",
"rule",
"=",
"new",
"system",
"rule",
"(",
")",
";",
"thread",
"rule",
"set",
"max",
"thread",
"(",
"max",
"thread",
")",
";",
"result",
"add",
"(",
"thread",
"rule",
")",
";",
"}",
"if",
"(",
"qps",
"is",
"set",
")",
"{",
"system",
"rule",
"qps",
"rule",
"=",
"new",
"system",
"rule",
"(",
")",
";",
"qps",
"rule",
"set",
"qps",
"(",
"qps",
")",
";",
"result",
"add",
"(",
"qps",
"rule",
")",
";",
"}",
"return",
"result",
";"
]
|
[
"{"
]
| [
"try",
"(",
"server",
"socket",
"sock",
"=",
"new",
"server",
"socket",
"(",
"0",
")",
")",
"{",
"port",
"=",
"sock",
"get",
"local",
"port",
"(",
")",
";",
"}",
"ignite",
"configuration",
"cfg",
"=",
"super",
"get",
"configuration",
"(",
"ignite",
"instance",
"name",
")",
";",
"cfg",
"set",
"cache",
"configuration",
"(",
"default",
"cache",
"configuration",
"(",
")",
")",
";",
"return",
"cfg",
";"
]
|
[
"{"
]
| [
"return",
"3",
";"
]
|
[
"{"
]
| [
"return",
"false",
";"
]
|
[
"{"
]
| [
"return",
"false",
";"
]
|
[
"{"
]
| [
"return",
"false",
";"
]
|
[
"adds",
"the",
"given",
"component",
"to",
"the",
"tool",
"bar",
"<",
"p",
">",
"the",
"icons",
"of",
"the",
"buttons",
"(",
"{",
"@",
"code",
"j",
"button",
"}",
"and",
"{",
"@",
"code",
"j",
"toggle",
"button",
"}",
")",
"added",
"are",
"automatically",
"scaled"
]
| [
"validate",
"component",
"non",
"null",
"(",
"component",
")",
";",
"if",
"(",
"component",
"instanceof",
"j",
"button",
")",
"{",
"add",
"button",
"(",
"(",
"j",
"button",
")",
"component",
")",
";",
"}",
"else",
"if",
"(",
"component",
"instanceof",
"j",
"toggle",
"button",
")",
"{",
"add",
"button",
"(",
"(",
"j",
"toggle",
"button",
")",
"component",
")",
";",
"}",
"else",
"{",
"get",
"toolbar",
"(",
")",
"add",
"(",
"component",
")",
";",
"}"
]
|
[
"removes",
"the",
"given",
"component",
"to",
"the",
"tool",
"bar"
]
| [
"validate",
"component",
"non",
"null",
"(",
"component",
")",
";",
"get",
"toolbar",
"(",
")",
"remove",
"(",
"component",
")",
";"
]
|
[
"adds",
"a",
"{",
"@",
"link",
"text",
"edit",
"based",
"change",
"group",
"text",
"edit",
"change",
"group",
"}",
"the",
"edits",
"managed",
"by",
"the",
"given",
"text",
"edit",
"change",
"group",
"must",
"be",
"part",
"of",
"the",
"change",
"s",
"root",
"edit"
]
| [
"assert",
"is",
"true",
"(",
"group",
"!",
"=",
"null",
")",
";",
"f",
"change",
"groups",
"add",
"(",
"group",
")",
";",
"if",
"(",
"f",
"combied",
"group",
"categories",
"!",
"=",
"null",
")",
"{",
"f",
"combied",
"group",
"categories",
"=",
"group",
"category",
"set",
"union",
"(",
"f",
"combied",
"group",
"categories",
",",
"group",
"get",
"group",
"category",
"set",
"(",
")",
")",
";",
"}"
]
|
[
"adds",
"a",
"{",
"@",
"link",
"text",
"edit",
"group",
"text",
"edit",
"group",
"}",
"this",
"method",
"is",
"a",
"convenience",
"method",
"for",
"calling",
"<",
"code",
">",
"change",
"add",
"change",
"group",
"(",
"new",
"text",
"edit",
"based",
"change",
"group",
"(",
"change",
"group",
")",
")",
";",
"<",
"/",
"code",
">"
]
| [
"add",
"change",
"group",
"(",
"new",
"text",
"edit",
"based",
"change",
"group",
"(",
"this",
",",
"group",
")",
")",
";"
]
|
[
"returns",
"<",
"code",
">",
"true",
"<",
"/",
"code",
">",
"if",
"the",
"change",
"has",
"one",
"of",
"the",
"given",
"group",
"categories",
"otherwise",
"<",
"code",
">",
"false",
"<",
"/",
"code",
">",
"is",
"returned"
]
| [
"if",
"(",
"f",
"combied",
"group",
"categories",
"=",
"=",
"null",
")",
"{",
"f",
"combied",
"group",
"categories",
"=",
"group",
"category",
"set",
"none",
";",
"for",
"(",
"iterator",
"iter",
"=",
"f",
"change",
"groups",
"iterator",
"(",
")",
";",
"iter",
"has",
"next",
"(",
")",
";",
")",
"{",
"text",
"edit",
"based",
"change",
"group",
"group",
"=",
"(",
"text",
"edit",
"based",
"change",
"group",
")",
"iter",
"next",
"(",
")",
";",
"f",
"combied",
"group",
"categories",
"=",
"group",
"category",
"set",
"union",
"(",
"f",
"combied",
"group",
"categories",
",",
"group",
"get",
"group",
"category",
"set",
"(",
")",
")",
";",
"}",
"}",
"return",
"f",
"combied",
"group",
"categories",
"contains",
"one",
"category",
"(",
"group",
"categories",
")",
";"
]
|
[
"returns",
"the",
"{",
"@",
"link",
"text",
"edit",
"based",
"change",
"group",
"text",
"edit",
"change",
"groups",
"}",
"managed",
"by",
"this",
"buffer",
"change"
]
| [
"return",
"(",
"text",
"edit",
"based",
"change",
"group",
"[",
"]",
")",
"f",
"change",
"groups",
"to",
"array",
"(",
"new",
"text",
"edit",
"based",
"change",
"group",
"[",
"f",
"change",
"groups",
"size",
"(",
")",
"]",
")",
";"
]
|
[
"returns",
"the",
"current",
"content",
"of",
"the",
"document",
"this",
"text",
"change",
"is",
"associated",
"with"
]
| [
"public",
"abstract",
"string",
"get",
"current",
"content",
"(",
"i",
"progress",
"monitor",
"pm",
")",
"throws",
"core",
"exception",
";"
]
|
[
"returns",
"the",
"current",
"content",
"of",
"the",
"text",
"edit",
"change",
"clipped",
"to",
"a",
"specific",
"region",
"the",
"region",
"is",
"determined",
"as",
"follows",
":"
]
| [
"public",
"abstract",
"string",
"get",
"current",
"content",
"(",
"i",
"region",
"region",
",",
"boolean",
"expand",
"region",
"to",
"full",
"line",
",",
"int",
"surrounding",
"lines",
",",
"i",
"progress",
"monitor",
"pm",
")",
"throws",
"core",
"exception",
";"
]
|
[
"returns",
"whether",
"preview",
"edits",
"are",
"remembered",
"for",
"further",
"region",
"tracking",
"or",
"not"
]
| [
"return",
"f",
"track",
"edits",
";"
]
|
[
"returns",
"a",
"preview",
"of",
"the",
"text",
"edit",
"change",
"clipped",
"to",
"a",
"specific",
"region",
"the",
"preview",
"is",
"created",
"by",
"applying",
"the",
"text",
"edits",
"managed",
"by",
"the",
"given",
"array",
"of",
"{",
"@",
"link",
"text",
"edit",
"based",
"change",
"group",
"text",
"edit",
"change",
"groups",
"}",
"the",
"region",
"is",
"determined",
"as",
"follows",
":"
]
| [
"public",
"abstract",
"string",
"get",
"preview",
"content",
"(",
"text",
"edit",
"based",
"change",
"group",
"[",
"]",
"change",
"groups",
",",
"i",
"region",
"region",
",",
"boolean",
"expand",
"region",
"to",
"full",
"line",
",",
"int",
"surrounding",
"lines",
",",
"i",
"progress",
"monitor",
"pm",
")",
"throws",
"core",
"exception",
";"
]
|
[
"returns",
"the",
"preview",
"content",
"as",
"a",
"string"
]
| [
"public",
"abstract",
"string",
"get",
"preview",
"content",
"(",
"i",
"progress",
"monitor",
"pm",
")",
"throws",
"core",
"exception",
";"
]
|
[
"{"
]
| [
"super",
"set",
"enabled",
"(",
"enabled",
")",
";",
"for",
"(",
"iterator",
"iter",
"=",
"f",
"change",
"groups",
"iterator",
"(",
")",
";",
"iter",
"has",
"next",
"(",
")",
";",
")",
"{",
"text",
"edit",
"based",
"change",
"group",
"element",
"=",
"(",
"text",
"edit",
"based",
"change",
"group",
")",
"iter",
"next",
"(",
")",
";",
"element",
"set",
"enabled",
"(",
"enabled",
")",
";",
"}"
]
|
[
"controls",
"whether",
"the",
"text",
"edit",
"change",
"should",
"keep",
"executed",
"edits",
"during",
"preview",
"generation"
]
| [
"f",
"track",
"edits",
"=",
"keep",
";"
]
|
[
"adds",
"a",
"new",
"map",
"item",
"value",
"to",
"the",
"mapping"
]
| [
"if",
"(",
"len",
">",
"=",
"items",
"length",
")",
"{",
"items",
"=",
"lazy",
"map",
"grow",
"(",
"items",
")",
";",
"}",
"items",
"[",
"len",
"]",
"=",
"miv",
";",
"len",
"+",
"+",
";"
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.