id int32 0 165k | repo stringlengths 7 58 | path stringlengths 12 218 | func_name stringlengths 3 140 | original_string stringlengths 73 34.1k | language stringclasses 1
value | code stringlengths 73 34.1k | code_tokens list | docstring stringlengths 3 16k | docstring_tokens list | sha stringlengths 40 40 | url stringlengths 105 339 |
|---|---|---|---|---|---|---|---|---|---|---|---|
100,800 | webmetrics/browsermob-proxy | src/main/java/org/browsermob/proxy/jetty/http/HttpServer.java | HttpServer.service | public HttpContext service(HttpRequest request,HttpResponse response)
throws IOException, HttpException
{
String host=request.getHost();
if (_requestsPerGC>0 && _gcRequests++>_requestsPerGC)
{
_gcRequests=0;
System.gc();
}
while (true... | java | public HttpContext service(HttpRequest request,HttpResponse response)
throws IOException, HttpException
{
String host=request.getHost();
if (_requestsPerGC>0 && _gcRequests++>_requestsPerGC)
{
_gcRequests=0;
System.gc();
}
while (true... | [
"public",
"HttpContext",
"service",
"(",
"HttpRequest",
"request",
",",
"HttpResponse",
"response",
")",
"throws",
"IOException",
",",
"HttpException",
"{",
"String",
"host",
"=",
"request",
".",
"getHost",
"(",
")",
";",
"if",
"(",
"_requestsPerGC",
">",
"0",... | Service a request.
Handle the request by passing it to the HttpHandler contained in
the mapped HttpContexts.
The requests host and path are used to select a list of
HttpContexts. Each HttpHandler in these context is offered
the request in turn, until the request is handled.
If no handler handles the request, 404 Not F... | [
"Service",
"a",
"request",
".",
"Handle",
"the",
"request",
"by",
"passing",
"it",
"to",
"the",
"HttpHandler",
"contained",
"in",
"the",
"mapped",
"HttpContexts",
".",
"The",
"requests",
"host",
"and",
"path",
"are",
"used",
"to",
"select",
"a",
"list",
"o... | a9252e62246ac33d55d51b993ba1159404e7d389 | https://github.com/webmetrics/browsermob-proxy/blob/a9252e62246ac33d55d51b993ba1159404e7d389/src/main/java/org/browsermob/proxy/jetty/http/HttpServer.java#L857-L934 |
100,801 | webmetrics/browsermob-proxy | src/main/java/org/browsermob/proxy/jetty/http/HttpServer.java | HttpServer.findHandler | public HttpHandler findHandler(Class handlerClass,
String uri,
String[] vhosts)
{
uri = URI.stripPath(uri);
if (vhosts==null || vhosts.length==0)
vhosts=__noVirtualHost;
for (int h=0; h<vhosts.length ... | java | public HttpHandler findHandler(Class handlerClass,
String uri,
String[] vhosts)
{
uri = URI.stripPath(uri);
if (vhosts==null || vhosts.length==0)
vhosts=__noVirtualHost;
for (int h=0; h<vhosts.length ... | [
"public",
"HttpHandler",
"findHandler",
"(",
"Class",
"handlerClass",
",",
"String",
"uri",
",",
"String",
"[",
"]",
"vhosts",
")",
"{",
"uri",
"=",
"URI",
".",
"stripPath",
"(",
"uri",
")",
";",
"if",
"(",
"vhosts",
"==",
"null",
"||",
"vhosts",
".",
... | Find handler.
Find a handler for a URI. This method is provided for
the servlet context getContext method to search for another
context by URI. A list of hosts may be passed to qualify the
search.
@param uri URI that must be satisfied by the servlet handler
@param vhosts null or a list of virtual hosts names to searc... | [
"Find",
"handler",
".",
"Find",
"a",
"handler",
"for",
"a",
"URI",
".",
"This",
"method",
"is",
"provided",
"for",
"the",
"servlet",
"context",
"getContext",
"method",
"to",
"search",
"for",
"another",
"context",
"by",
"URI",
".",
"A",
"list",
"of",
"hos... | a9252e62246ac33d55d51b993ba1159404e7d389 | https://github.com/webmetrics/browsermob-proxy/blob/a9252e62246ac33d55d51b993ba1159404e7d389/src/main/java/org/browsermob/proxy/jetty/http/HttpServer.java#L946-L989 |
100,802 | webmetrics/browsermob-proxy | src/main/java/org/browsermob/proxy/jetty/http/HttpServer.java | HttpServer.getRealm | public UserRealm getRealm(String realmName)
{
if (realmName==null)
{
if (_realmMap.size()==1)
return (UserRealm)_realmMap.values().iterator().next();
log.warn("Null realmName with multiple known realms");
}
return (UserRealm)_realmMap.get(realm... | java | public UserRealm getRealm(String realmName)
{
if (realmName==null)
{
if (_realmMap.size()==1)
return (UserRealm)_realmMap.values().iterator().next();
log.warn("Null realmName with multiple known realms");
}
return (UserRealm)_realmMap.get(realm... | [
"public",
"UserRealm",
"getRealm",
"(",
"String",
"realmName",
")",
"{",
"if",
"(",
"realmName",
"==",
"null",
")",
"{",
"if",
"(",
"_realmMap",
".",
"size",
"(",
")",
"==",
"1",
")",
"return",
"(",
"UserRealm",
")",
"_realmMap",
".",
"values",
"(",
... | Get a named UserRealm.
@param realmName The name of the realm or null.
@return The named realm. If the name is null and only a single realm
is known, that is returned. | [
"Get",
"a",
"named",
"UserRealm",
"."
] | a9252e62246ac33d55d51b993ba1159404e7d389 | https://github.com/webmetrics/browsermob-proxy/blob/a9252e62246ac33d55d51b993ba1159404e7d389/src/main/java/org/browsermob/proxy/jetty/http/HttpServer.java#L1003-L1012 |
100,803 | webmetrics/browsermob-proxy | src/main/java/org/browsermob/proxy/jetty/http/HttpServer.java | HttpServer.statsReset | public void statsReset()
{
_statsStartedAt=System.currentTimeMillis();
_connections=0;
_connectionsOpenMin=_connectionsOpen;
_connectionsOpenMax=_connectionsOpen;
_connectionsOpen=0;
_connectionsDurationMin=0;
_connectionsDurationMax=0;
... | java | public void statsReset()
{
_statsStartedAt=System.currentTimeMillis();
_connections=0;
_connectionsOpenMin=_connectionsOpen;
_connectionsOpenMax=_connectionsOpen;
_connectionsOpen=0;
_connectionsDurationMin=0;
_connectionsDurationMax=0;
... | [
"public",
"void",
"statsReset",
"(",
")",
"{",
"_statsStartedAt",
"=",
"System",
".",
"currentTimeMillis",
"(",
")",
";",
"_connections",
"=",
"0",
";",
"_connectionsOpenMin",
"=",
"_connectionsOpen",
";",
"_connectionsOpenMax",
"=",
"_connectionsOpen",
";",
"_con... | Reset statistics. | [
"Reset",
"statistics",
"."
] | a9252e62246ac33d55d51b993ba1159404e7d389 | https://github.com/webmetrics/browsermob-proxy/blob/a9252e62246ac33d55d51b993ba1159404e7d389/src/main/java/org/browsermob/proxy/jetty/http/HttpServer.java#L1081-L1108 |
100,804 | webmetrics/browsermob-proxy | src/main/java/org/browsermob/proxy/jetty/http/HttpServer.java | HttpServer.save | public void save(String saveat)
throws MalformedURLException,
IOException
{
Resource resource = Resource.newResource(saveat);
ObjectOutputStream out = new ObjectOutputStream(resource.getOutputStream());
out.writeObject(this);
out.flush();
out.close();
... | java | public void save(String saveat)
throws MalformedURLException,
IOException
{
Resource resource = Resource.newResource(saveat);
ObjectOutputStream out = new ObjectOutputStream(resource.getOutputStream());
out.writeObject(this);
out.flush();
out.close();
... | [
"public",
"void",
"save",
"(",
"String",
"saveat",
")",
"throws",
"MalformedURLException",
",",
"IOException",
"{",
"Resource",
"resource",
"=",
"Resource",
".",
"newResource",
"(",
"saveat",
")",
";",
"ObjectOutputStream",
"out",
"=",
"new",
"ObjectOutputStream",... | Save the HttpServer
The server is saved by serialization to the given filename or URL.
@param saveat A file or URL to save the configuration at.
@exception MalformedURLException
@exception IOException | [
"Save",
"the",
"HttpServer",
"The",
"server",
"is",
"saved",
"by",
"serialization",
"to",
"the",
"given",
"filename",
"or",
"URL",
"."
] | a9252e62246ac33d55d51b993ba1159404e7d389 | https://github.com/webmetrics/browsermob-proxy/blob/a9252e62246ac33d55d51b993ba1159404e7d389/src/main/java/org/browsermob/proxy/jetty/http/HttpServer.java#L1371-L1381 |
100,805 | webmetrics/browsermob-proxy | src/main/java/org/browsermob/proxy/jetty/http/HttpServer.java | HttpServer.main | public static void main(String[] args)
{
if (args.length==0 || args.length>2)
{
System.err.println
("\nUsage - java org.browsermob.proxy.jetty.http.HttpServer [<addr>:]<port>");
System.err.println
("\nUsage - java org.browsermob.proxy.jetty.htt... | java | public static void main(String[] args)
{
if (args.length==0 || args.length>2)
{
System.err.println
("\nUsage - java org.browsermob.proxy.jetty.http.HttpServer [<addr>:]<port>");
System.err.println
("\nUsage - java org.browsermob.proxy.jetty.htt... | [
"public",
"static",
"void",
"main",
"(",
"String",
"[",
"]",
"args",
")",
"{",
"if",
"(",
"args",
".",
"length",
"==",
"0",
"||",
"args",
".",
"length",
">",
"2",
")",
"{",
"System",
".",
"err",
".",
"println",
"(",
"\"\\nUsage - java org.browsermob.pr... | Construct server from command line arguments.
@param args | [
"Construct",
"server",
"from",
"command",
"line",
"arguments",
"."
] | a9252e62246ac33d55d51b993ba1159404e7d389 | https://github.com/webmetrics/browsermob-proxy/blob/a9252e62246ac33d55d51b993ba1159404e7d389/src/main/java/org/browsermob/proxy/jetty/http/HttpServer.java#L1409-L1460 |
100,806 | webmetrics/browsermob-proxy | src/main/java/org/xbill/DNS/security/CERTConverter.java | CERTConverter.parseRecord | public static Certificate
parseRecord(CERTRecord r) {
int type = r.getCertType();
byte [] data = r.getCert();
Certificate cert;
try {
switch (type) {
case CERTRecord.PKIX: {
CertificateFactory cf;
ByteArrayInputStream bs;
cf = CertificateFactory.getInstance("X.509");
bs = new ByteArrayInputStr... | java | public static Certificate
parseRecord(CERTRecord r) {
int type = r.getCertType();
byte [] data = r.getCert();
Certificate cert;
try {
switch (type) {
case CERTRecord.PKIX: {
CertificateFactory cf;
ByteArrayInputStream bs;
cf = CertificateFactory.getInstance("X.509");
bs = new ByteArrayInputStr... | [
"public",
"static",
"Certificate",
"parseRecord",
"(",
"CERTRecord",
"r",
")",
"{",
"int",
"type",
"=",
"r",
".",
"getCertType",
"(",
")",
";",
"byte",
"[",
"]",
"data",
"=",
"r",
".",
"getCert",
"(",
")",
";",
"Certificate",
"cert",
";",
"try",
"{",... | Converts a CERT record into a Certificate | [
"Converts",
"a",
"CERT",
"record",
"into",
"a",
"Certificate"
] | a9252e62246ac33d55d51b993ba1159404e7d389 | https://github.com/webmetrics/browsermob-proxy/blob/a9252e62246ac33d55d51b993ba1159404e7d389/src/main/java/org/xbill/DNS/security/CERTConverter.java#L27-L53 |
100,807 | webmetrics/browsermob-proxy | src/main/java/org/xbill/DNS/security/CERTConverter.java | CERTConverter.buildRecord | public static CERTRecord
buildRecord(Name name, int dclass, long ttl, Certificate cert, int tag,
int alg)
{
int type;
byte [] data;
try {
if (cert instanceof X509Certificate) {
type = CERTRecord.PKIX;
data = cert.getEncoded();
}
else
return null;
return new CERTRecord(name, dclass, ttl, type,... | java | public static CERTRecord
buildRecord(Name name, int dclass, long ttl, Certificate cert, int tag,
int alg)
{
int type;
byte [] data;
try {
if (cert instanceof X509Certificate) {
type = CERTRecord.PKIX;
data = cert.getEncoded();
}
else
return null;
return new CERTRecord(name, dclass, ttl, type,... | [
"public",
"static",
"CERTRecord",
"buildRecord",
"(",
"Name",
"name",
",",
"int",
"dclass",
",",
"long",
"ttl",
",",
"Certificate",
"cert",
",",
"int",
"tag",
",",
"int",
"alg",
")",
"{",
"int",
"type",
";",
"byte",
"[",
"]",
"data",
";",
"try",
"{",... | Builds a CERT record from a Certificate associated with a key also in DNS | [
"Builds",
"a",
"CERT",
"record",
"from",
"a",
"Certificate",
"associated",
"with",
"a",
"key",
"also",
"in",
"DNS"
] | a9252e62246ac33d55d51b993ba1159404e7d389 | https://github.com/webmetrics/browsermob-proxy/blob/a9252e62246ac33d55d51b993ba1159404e7d389/src/main/java/org/xbill/DNS/security/CERTConverter.java#L56-L78 |
100,808 | webmetrics/browsermob-proxy | src/main/java/org/xbill/DNS/security/CERTConverter.java | CERTConverter.buildRecord | public static CERTRecord
buildRecord(Name name, int dclass, long ttl, Certificate cert) {
return buildRecord(name, dclass, ttl, cert, 0, 0);
} | java | public static CERTRecord
buildRecord(Name name, int dclass, long ttl, Certificate cert) {
return buildRecord(name, dclass, ttl, cert, 0, 0);
} | [
"public",
"static",
"CERTRecord",
"buildRecord",
"(",
"Name",
"name",
",",
"int",
"dclass",
",",
"long",
"ttl",
",",
"Certificate",
"cert",
")",
"{",
"return",
"buildRecord",
"(",
"name",
",",
"dclass",
",",
"ttl",
",",
"cert",
",",
"0",
",",
"0",
")",... | Builds a CERT record from a Certificate | [
"Builds",
"a",
"CERT",
"record",
"from",
"a",
"Certificate"
] | a9252e62246ac33d55d51b993ba1159404e7d389 | https://github.com/webmetrics/browsermob-proxy/blob/a9252e62246ac33d55d51b993ba1159404e7d389/src/main/java/org/xbill/DNS/security/CERTConverter.java#L81-L84 |
100,809 | webmetrics/browsermob-proxy | src/main/java/org/browsermob/proxy/jetty/util/ByteArrayPool.java | ByteArrayPool.getByteArray | public static byte[] getByteArray(int size)
{
byte[][] pool = (byte[][])__pools.get();
boolean full=true;
for (int i=pool.length;i-->0;)
{
if (pool[i]!=null && pool[i].length==size)
{
byte[]b = pool[i];
pool[i]=null;
... | java | public static byte[] getByteArray(int size)
{
byte[][] pool = (byte[][])__pools.get();
boolean full=true;
for (int i=pool.length;i-->0;)
{
if (pool[i]!=null && pool[i].length==size)
{
byte[]b = pool[i];
pool[i]=null;
... | [
"public",
"static",
"byte",
"[",
"]",
"getByteArray",
"(",
"int",
"size",
")",
"{",
"byte",
"[",
"]",
"[",
"]",
"pool",
"=",
"(",
"byte",
"[",
"]",
"[",
"]",
")",
"__pools",
".",
"get",
"(",
")",
";",
"boolean",
"full",
"=",
"true",
";",
"for",... | Get a byte array from the pool of known size.
@param size Size of the byte array.
@return Byte array of known size. | [
"Get",
"a",
"byte",
"array",
"from",
"the",
"pool",
"of",
"known",
"size",
"."
] | a9252e62246ac33d55d51b993ba1159404e7d389 | https://github.com/webmetrics/browsermob-proxy/blob/a9252e62246ac33d55d51b993ba1159404e7d389/src/main/java/org/browsermob/proxy/jetty/util/ByteArrayPool.java#L39-L60 |
100,810 | webmetrics/browsermob-proxy | src/main/java/org/browsermob/proxy/jetty/util/QuotedStringTokenizer.java | QuotedStringTokenizer.quote | public static String quote(String s, String delim)
{
if (s==null)
return null;
if (s.length()==0)
return "\"\"";
for (int i=0;i<s.length();i++)
{
char c = s.charAt(i);
if (c=='"' ||
c=='\\' ||
c... | java | public static String quote(String s, String delim)
{
if (s==null)
return null;
if (s.length()==0)
return "\"\"";
for (int i=0;i<s.length();i++)
{
char c = s.charAt(i);
if (c=='"' ||
c=='\\' ||
c... | [
"public",
"static",
"String",
"quote",
"(",
"String",
"s",
",",
"String",
"delim",
")",
"{",
"if",
"(",
"s",
"==",
"null",
")",
"return",
"null",
";",
"if",
"(",
"s",
".",
"length",
"(",
")",
"==",
"0",
")",
"return",
"\"\\\"\\\"\"",
";",
"for",
... | Quote a string.
The string is quoted only if quoting is required due to
embeded delimiters, quote characters or the
empty string.
@param s The string to quote.
@return quoted string | [
"Quote",
"a",
"string",
".",
"The",
"string",
"is",
"quoted",
"only",
"if",
"quoting",
"is",
"required",
"due",
"to",
"embeded",
"delimiters",
"quote",
"characters",
"or",
"the",
"empty",
"string",
"."
] | a9252e62246ac33d55d51b993ba1159404e7d389 | https://github.com/webmetrics/browsermob-proxy/blob/a9252e62246ac33d55d51b993ba1159404e7d389/src/main/java/org/browsermob/proxy/jetty/util/QuotedStringTokenizer.java#L267-L290 |
100,811 | webmetrics/browsermob-proxy | src/main/java/org/browsermob/proxy/jetty/util/QuotedStringTokenizer.java | QuotedStringTokenizer.quote | public static void quote(StringBuffer buf, String s)
{
synchronized(buf)
{
buf.append('"');
for (int i=0;i<s.length();i++)
{
char c = s.charAt(i);
if (c=='"')
{
buf.append("\\\"");
... | java | public static void quote(StringBuffer buf, String s)
{
synchronized(buf)
{
buf.append('"');
for (int i=0;i<s.length();i++)
{
char c = s.charAt(i);
if (c=='"')
{
buf.append("\\\"");
... | [
"public",
"static",
"void",
"quote",
"(",
"StringBuffer",
"buf",
",",
"String",
"s",
")",
"{",
"synchronized",
"(",
"buf",
")",
"{",
"buf",
".",
"append",
"(",
"'",
"'",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"s",
".",
"leng... | Quote a string into a StringBuffer.
@param buf The StringBuffer
@param s The String to quote. | [
"Quote",
"a",
"string",
"into",
"a",
"StringBuffer",
"."
] | a9252e62246ac33d55d51b993ba1159404e7d389 | https://github.com/webmetrics/browsermob-proxy/blob/a9252e62246ac33d55d51b993ba1159404e7d389/src/main/java/org/browsermob/proxy/jetty/util/QuotedStringTokenizer.java#L297-L320 |
100,812 | webmetrics/browsermob-proxy | src/main/java/org/browsermob/proxy/jetty/util/TempByteHolder.java | TempByteHolder.truncate | public void truncate(int offset) throws IOException {
if ((offset < 0)||(offset > _write_pos)) throw new IOException("bad truncate offset");
if (_read_pos > offset) _read_pos = offset;
if (_mark_pos > offset) _mark_pos = offset;
_write_pos = offset;
if (_file_high > offset) _file... | java | public void truncate(int offset) throws IOException {
if ((offset < 0)||(offset > _write_pos)) throw new IOException("bad truncate offset");
if (_read_pos > offset) _read_pos = offset;
if (_mark_pos > offset) _mark_pos = offset;
_write_pos = offset;
if (_file_high > offset) _file... | [
"public",
"void",
"truncate",
"(",
"int",
"offset",
")",
"throws",
"IOException",
"{",
"if",
"(",
"(",
"offset",
"<",
"0",
")",
"||",
"(",
"offset",
">",
"_write_pos",
")",
")",
"throw",
"new",
"IOException",
"(",
"\"bad truncate offset\"",
")",
";",
"if... | Truncates buffered data to specified size. Can not be used to extend data.
Repositions OutputStream at the end of truncated data.
If current read offset or mark is past the new end of data, it is moved at the new end. | [
"Truncates",
"buffered",
"data",
"to",
"specified",
"size",
".",
"Can",
"not",
"be",
"used",
"to",
"extend",
"data",
".",
"Repositions",
"OutputStream",
"at",
"the",
"end",
"of",
"truncated",
"data",
".",
"If",
"current",
"read",
"offset",
"or",
"mark",
"i... | a9252e62246ac33d55d51b993ba1159404e7d389 | https://github.com/webmetrics/browsermob-proxy/blob/a9252e62246ac33d55d51b993ba1159404e7d389/src/main/java/org/browsermob/proxy/jetty/util/TempByteHolder.java#L167-L174 |
100,813 | webmetrics/browsermob-proxy | src/main/java/org/browsermob/proxy/jetty/util/TempByteHolder.java | TempByteHolder.setTempDirectory | public void setTempDirectory(File dir) throws IOException {
File td = dir.getCanonicalFile();
if (td.isDirectory()) {
_temp_directory = td;
}
} | java | public void setTempDirectory(File dir) throws IOException {
File td = dir.getCanonicalFile();
if (td.isDirectory()) {
_temp_directory = td;
}
} | [
"public",
"void",
"setTempDirectory",
"(",
"File",
"dir",
")",
"throws",
"IOException",
"{",
"File",
"td",
"=",
"dir",
".",
"getCanonicalFile",
"(",
")",
";",
"if",
"(",
"td",
".",
"isDirectory",
"(",
")",
")",
"{",
"_temp_directory",
"=",
"td",
";",
"... | Override directory to create temporary file in.
Does not affect already open temp file.
@param dir File object representing temporary directory.
May be null which means that system default
(java.io.tmpdir system property) should be used.
@throws IOException | [
"Override",
"directory",
"to",
"create",
"temporary",
"file",
"in",
".",
"Does",
"not",
"affect",
"already",
"open",
"temp",
"file",
"."
] | a9252e62246ac33d55d51b993ba1159404e7d389 | https://github.com/webmetrics/browsermob-proxy/blob/a9252e62246ac33d55d51b993ba1159404e7d389/src/main/java/org/browsermob/proxy/jetty/util/TempByteHolder.java#L185-L190 |
100,814 | webmetrics/browsermob-proxy | src/main/java/org/browsermob/proxy/jetty/util/TempByteHolder.java | TempByteHolder.getString | public String getString(String character_encoding) throws java.io.UnsupportedEncodingException {
if (_file_mode) throw new IllegalStateException("data too large");
return new String(_memory_buffer,0,_write_pos,character_encoding);
} | java | public String getString(String character_encoding) throws java.io.UnsupportedEncodingException {
if (_file_mode) throw new IllegalStateException("data too large");
return new String(_memory_buffer,0,_write_pos,character_encoding);
} | [
"public",
"String",
"getString",
"(",
"String",
"character_encoding",
")",
"throws",
"java",
".",
"io",
".",
"UnsupportedEncodingException",
"{",
"if",
"(",
"_file_mode",
")",
"throw",
"new",
"IllegalStateException",
"(",
"\"data too large\"",
")",
";",
"return",
... | Returns buffered data as String using given character encoding.
@param character_encoding Name of character encoding to use for
converting bytes to String.
@return Buffered data as String.
@throws IllegalStateException when data is too large to be read this way.
@throws java.io.UnsupportedEncodingException when this en... | [
"Returns",
"buffered",
"data",
"as",
"String",
"using",
"given",
"character",
"encoding",
"."
] | a9252e62246ac33d55d51b993ba1159404e7d389 | https://github.com/webmetrics/browsermob-proxy/blob/a9252e62246ac33d55d51b993ba1159404e7d389/src/main/java/org/browsermob/proxy/jetty/util/TempByteHolder.java#L242-L245 |
100,815 | webmetrics/browsermob-proxy | src/main/java/org/browsermob/proxy/jetty/util/TempByteHolder.java | TempByteHolder.getInputStream | public java.io.InputStream getInputStream() {
if (_input_stream == null) {
_input_stream = new TempByteHolder.InputStream();
}
return _input_stream;
} | java | public java.io.InputStream getInputStream() {
if (_input_stream == null) {
_input_stream = new TempByteHolder.InputStream();
}
return _input_stream;
} | [
"public",
"java",
".",
"io",
".",
"InputStream",
"getInputStream",
"(",
")",
"{",
"if",
"(",
"_input_stream",
"==",
"null",
")",
"{",
"_input_stream",
"=",
"new",
"TempByteHolder",
".",
"InputStream",
"(",
")",
";",
"}",
"return",
"_input_stream",
";",
"}"... | Returns InputSream for reading buffered data.
@return InputSream for reading buffered data. | [
"Returns",
"InputSream",
"for",
"reading",
"buffered",
"data",
"."
] | a9252e62246ac33d55d51b993ba1159404e7d389 | https://github.com/webmetrics/browsermob-proxy/blob/a9252e62246ac33d55d51b993ba1159404e7d389/src/main/java/org/browsermob/proxy/jetty/util/TempByteHolder.java#L261-L266 |
100,816 | webmetrics/browsermob-proxy | src/main/java/org/browsermob/proxy/jetty/util/TempByteHolder.java | TempByteHolder.writeTo | public void writeTo(java.io.OutputStream os, int start_offset, int length) throws IOException {
int towrite = min(length, _write_pos-start_offset);
int writeoff = start_offset;
if (towrite > 0) {
while (towrite >= _window_size) {
moveWindow(writeoff);
... | java | public void writeTo(java.io.OutputStream os, int start_offset, int length) throws IOException {
int towrite = min(length, _write_pos-start_offset);
int writeoff = start_offset;
if (towrite > 0) {
while (towrite >= _window_size) {
moveWindow(writeoff);
... | [
"public",
"void",
"writeTo",
"(",
"java",
".",
"io",
".",
"OutputStream",
"os",
",",
"int",
"start_offset",
",",
"int",
"length",
")",
"throws",
"IOException",
"{",
"int",
"towrite",
"=",
"min",
"(",
"length",
",",
"_write_pos",
"-",
"start_offset",
")",
... | Writes efficiently part of the content to output stream.
@param os OutputStream to write to
@param start_offset Offset of data fragment to be written
@param length Length of data fragment to be written
@throws IOException | [
"Writes",
"efficiently",
"part",
"of",
"the",
"content",
"to",
"output",
"stream",
"."
] | a9252e62246ac33d55d51b993ba1159404e7d389 | https://github.com/webmetrics/browsermob-proxy/blob/a9252e62246ac33d55d51b993ba1159404e7d389/src/main/java/org/browsermob/proxy/jetty/util/TempByteHolder.java#L286-L301 |
100,817 | webmetrics/browsermob-proxy | src/main/java/org/browsermob/proxy/jetty/util/TempByteHolder.java | TempByteHolder.readFrom | public void readFrom(java.io.InputStream is) throws IOException {
int howmuch = 0;
do {
_write_pos += howmuch;
moveWindow(_write_pos);
howmuch = is.read(_memory_buffer);
} while (howmuch != -1);
} | java | public void readFrom(java.io.InputStream is) throws IOException {
int howmuch = 0;
do {
_write_pos += howmuch;
moveWindow(_write_pos);
howmuch = is.read(_memory_buffer);
} while (howmuch != -1);
} | [
"public",
"void",
"readFrom",
"(",
"java",
".",
"io",
".",
"InputStream",
"is",
")",
"throws",
"IOException",
"{",
"int",
"howmuch",
"=",
"0",
";",
"do",
"{",
"_write_pos",
"+=",
"howmuch",
";",
"moveWindow",
"(",
"_write_pos",
")",
";",
"howmuch",
"=",
... | Reads all available data from input stream.
@param is
@throws IOException | [
"Reads",
"all",
"available",
"data",
"from",
"input",
"stream",
"."
] | a9252e62246ac33d55d51b993ba1159404e7d389 | https://github.com/webmetrics/browsermob-proxy/blob/a9252e62246ac33d55d51b993ba1159404e7d389/src/main/java/org/browsermob/proxy/jetty/util/TempByteHolder.java#L309-L316 |
100,818 | webmetrics/browsermob-proxy | src/main/java/org/browsermob/proxy/jetty/util/TempByteHolder.java | TempByteHolder.createTempFile | private void createTempFile() throws IOException {
_tempfilef = File.createTempFile("org.browsermob.proxy.jetty.util.TempByteHolder-",".tmp",_temp_directory).getCanonicalFile();
_tempfilef.deleteOnExit();
_tempfile = new RandomAccessFile(_tempfilef,"rw");
} | java | private void createTempFile() throws IOException {
_tempfilef = File.createTempFile("org.browsermob.proxy.jetty.util.TempByteHolder-",".tmp",_temp_directory).getCanonicalFile();
_tempfilef.deleteOnExit();
_tempfile = new RandomAccessFile(_tempfilef,"rw");
} | [
"private",
"void",
"createTempFile",
"(",
")",
"throws",
"IOException",
"{",
"_tempfilef",
"=",
"File",
".",
"createTempFile",
"(",
"\"org.browsermob.proxy.jetty.util.TempByteHolder-\"",
",",
"\".tmp\"",
",",
"_temp_directory",
")",
".",
"getCanonicalFile",
"(",
")",
... | Create tempfile if it does not already exist | [
"Create",
"tempfile",
"if",
"it",
"does",
"not",
"already",
"exist"
] | a9252e62246ac33d55d51b993ba1159404e7d389 | https://github.com/webmetrics/browsermob-proxy/blob/a9252e62246ac33d55d51b993ba1159404e7d389/src/main/java/org/browsermob/proxy/jetty/util/TempByteHolder.java#L324-L328 |
100,819 | webmetrics/browsermob-proxy | src/main/java/org/browsermob/proxy/jetty/util/TempByteHolder.java | TempByteHolder.writeToTempFile | private void writeToTempFile(int at_offset, byte[] data, int offset, int len) throws IOException {
if (_tempfile == null) {
createTempFile();
_file_pos = -1;
}
_file_mode = true;
if (at_offset != _file_pos) {
_tempfile.seek((long)at_offset);
}
... | java | private void writeToTempFile(int at_offset, byte[] data, int offset, int len) throws IOException {
if (_tempfile == null) {
createTempFile();
_file_pos = -1;
}
_file_mode = true;
if (at_offset != _file_pos) {
_tempfile.seek((long)at_offset);
}
... | [
"private",
"void",
"writeToTempFile",
"(",
"int",
"at_offset",
",",
"byte",
"[",
"]",
"data",
",",
"int",
"offset",
",",
"int",
"len",
")",
"throws",
"IOException",
"{",
"if",
"(",
"_tempfile",
"==",
"null",
")",
"{",
"createTempFile",
"(",
")",
";",
"... | Write chunk of data at specified offset in temp file.
Marks data as big.
Updates high water mark on tempfile content. | [
"Write",
"chunk",
"of",
"data",
"at",
"specified",
"offset",
"in",
"temp",
"file",
".",
"Marks",
"data",
"as",
"big",
".",
"Updates",
"high",
"water",
"mark",
"on",
"tempfile",
"content",
"."
] | a9252e62246ac33d55d51b993ba1159404e7d389 | https://github.com/webmetrics/browsermob-proxy/blob/a9252e62246ac33d55d51b993ba1159404e7d389/src/main/java/org/browsermob/proxy/jetty/util/TempByteHolder.java#L335-L347 |
100,820 | webmetrics/browsermob-proxy | src/main/java/org/browsermob/proxy/jetty/util/TempByteHolder.java | TempByteHolder.readFromTempFile | private void readFromTempFile(int at_offset, byte[] data, int offset, int len) throws IOException {
if (_file_pos != at_offset) {
_tempfile.seek((long)at_offset);
}
_tempfile.readFully(data,offset,len);
_file_pos = at_offset+len;
} | java | private void readFromTempFile(int at_offset, byte[] data, int offset, int len) throws IOException {
if (_file_pos != at_offset) {
_tempfile.seek((long)at_offset);
}
_tempfile.readFully(data,offset,len);
_file_pos = at_offset+len;
} | [
"private",
"void",
"readFromTempFile",
"(",
"int",
"at_offset",
",",
"byte",
"[",
"]",
"data",
",",
"int",
"offset",
",",
"int",
"len",
")",
"throws",
"IOException",
"{",
"if",
"(",
"_file_pos",
"!=",
"at_offset",
")",
"{",
"_tempfile",
".",
"seek",
"(",... | Read chunk of data from specified offset in tempfile | [
"Read",
"chunk",
"of",
"data",
"from",
"specified",
"offset",
"in",
"tempfile"
] | a9252e62246ac33d55d51b993ba1159404e7d389 | https://github.com/webmetrics/browsermob-proxy/blob/a9252e62246ac33d55d51b993ba1159404e7d389/src/main/java/org/browsermob/proxy/jetty/util/TempByteHolder.java#L352-L358 |
100,821 | webmetrics/browsermob-proxy | src/main/java/org/browsermob/proxy/jetty/util/TempByteHolder.java | TempByteHolder.min | private static int min(int a, int b, int c) {
int r = a;
if (r > b) r = b;
if (r > c) r = c;
return r;
} | java | private static int min(int a, int b, int c) {
int r = a;
if (r > b) r = b;
if (r > c) r = c;
return r;
} | [
"private",
"static",
"int",
"min",
"(",
"int",
"a",
",",
"int",
"b",
",",
"int",
"c",
")",
"{",
"int",
"r",
"=",
"a",
";",
"if",
"(",
"r",
">",
"b",
")",
"r",
"=",
"b",
";",
"if",
"(",
"r",
">",
"c",
")",
"r",
"=",
"c",
";",
"return",
... | Simple minimum for 3 ints | [
"Simple",
"minimum",
"for",
"3",
"ints"
] | a9252e62246ac33d55d51b993ba1159404e7d389 | https://github.com/webmetrics/browsermob-proxy/blob/a9252e62246ac33d55d51b993ba1159404e7d389/src/main/java/org/browsermob/proxy/jetty/util/TempByteHolder.java#L427-L432 |
100,822 | webmetrics/browsermob-proxy | src/main/java/org/browsermob/proxy/jetty/http/PathMap.java | PathMap.put | public synchronized Object put(Object pathSpec, Object object)
{
StringTokenizer tok = new StringTokenizer(pathSpec.toString(),__pathSpecSeparators);
Object old =null;
while (tok.hasMoreTokens())
{
String spec=tok.nextToken();
if (!spec.s... | java | public synchronized Object put(Object pathSpec, Object object)
{
StringTokenizer tok = new StringTokenizer(pathSpec.toString(),__pathSpecSeparators);
Object old =null;
while (tok.hasMoreTokens())
{
String spec=tok.nextToken();
if (!spec.s... | [
"public",
"synchronized",
"Object",
"put",
"(",
"Object",
"pathSpec",
",",
"Object",
"object",
")",
"{",
"StringTokenizer",
"tok",
"=",
"new",
"StringTokenizer",
"(",
"pathSpec",
".",
"toString",
"(",
")",
",",
"__pathSpecSeparators",
")",
";",
"Object",
"old"... | Add a single path match to the PathMap.
@param pathSpec The path specification, or comma separated list of
path specifications.
@param object The object the path maps to | [
"Add",
"a",
"single",
"path",
"match",
"to",
"the",
"PathMap",
"."
] | a9252e62246ac33d55d51b993ba1159404e7d389 | https://github.com/webmetrics/browsermob-proxy/blob/a9252e62246ac33d55d51b993ba1159404e7d389/src/main/java/org/browsermob/proxy/jetty/http/PathMap.java#L149-L198 |
100,823 | webmetrics/browsermob-proxy | src/main/java/org/browsermob/proxy/jetty/http/PathMap.java | PathMap.match | public Object match(String path)
{
Map.Entry entry = getMatch(path);
if (entry!=null)
return entry.getValue();
return null;
} | java | public Object match(String path)
{
Map.Entry entry = getMatch(path);
if (entry!=null)
return entry.getValue();
return null;
} | [
"public",
"Object",
"match",
"(",
"String",
"path",
")",
"{",
"Map",
".",
"Entry",
"entry",
"=",
"getMatch",
"(",
"path",
")",
";",
"if",
"(",
"entry",
"!=",
"null",
")",
"return",
"entry",
".",
"getValue",
"(",
")",
";",
"return",
"null",
";",
"}"... | Get object matched by the path.
@param path the path.
@return Best matched object or null. | [
"Get",
"object",
"matched",
"by",
"the",
"path",
"."
] | a9252e62246ac33d55d51b993ba1159404e7d389 | https://github.com/webmetrics/browsermob-proxy/blob/a9252e62246ac33d55d51b993ba1159404e7d389/src/main/java/org/browsermob/proxy/jetty/http/PathMap.java#L205-L211 |
100,824 | webmetrics/browsermob-proxy | src/main/java/org/browsermob/proxy/jetty/http/PathMap.java | PathMap.getMatch | public Map.Entry getMatch(String path)
{
Map.Entry entry;
if (path==null)
return null;
int l=path.indexOf(';');
if (l<0)
{
l=path.indexOf('?');
if (l<0)
l=path.length();
}
// try exact match
... | java | public Map.Entry getMatch(String path)
{
Map.Entry entry;
if (path==null)
return null;
int l=path.indexOf(';');
if (l<0)
{
l=path.indexOf('?');
if (l<0)
l=path.length();
}
// try exact match
... | [
"public",
"Map",
".",
"Entry",
"getMatch",
"(",
"String",
"path",
")",
"{",
"Map",
".",
"Entry",
"entry",
";",
"if",
"(",
"path",
"==",
"null",
")",
"return",
"null",
";",
"int",
"l",
"=",
"path",
".",
"indexOf",
"(",
"'",
"'",
")",
";",
"if",
... | Get the entry mapped by the best specification.
@param path the path.
@return Map.Entry of the best matched or null. | [
"Get",
"the",
"entry",
"mapped",
"by",
"the",
"best",
"specification",
"."
] | a9252e62246ac33d55d51b993ba1159404e7d389 | https://github.com/webmetrics/browsermob-proxy/blob/a9252e62246ac33d55d51b993ba1159404e7d389/src/main/java/org/browsermob/proxy/jetty/http/PathMap.java#L219-L263 |
100,825 | webmetrics/browsermob-proxy | src/main/java/org/browsermob/proxy/jetty/http/PathMap.java | PathMap.getMatches | public List getMatches(String path)
{
Map.Entry entry;
Object entries=null;
if (path==null)
return LazyList.getList(entries);
int l=path.indexOf(';');
if (l<0)
{
l=path.indexOf('?');
if (l<0)
l=path... | java | public List getMatches(String path)
{
Map.Entry entry;
Object entries=null;
if (path==null)
return LazyList.getList(entries);
int l=path.indexOf(';');
if (l<0)
{
l=path.indexOf('?');
if (l<0)
l=path... | [
"public",
"List",
"getMatches",
"(",
"String",
"path",
")",
"{",
"Map",
".",
"Entry",
"entry",
";",
"Object",
"entries",
"=",
"null",
";",
"if",
"(",
"path",
"==",
"null",
")",
"return",
"LazyList",
".",
"getList",
"(",
"entries",
")",
";",
"int",
"l... | Get all entries matched by the path.
Best match first.
@param path Path to match
@return List of Map.Entry instances key=pathSpec | [
"Get",
"all",
"entries",
"matched",
"by",
"the",
"path",
".",
"Best",
"match",
"first",
"."
] | a9252e62246ac33d55d51b993ba1159404e7d389 | https://github.com/webmetrics/browsermob-proxy/blob/a9252e62246ac33d55d51b993ba1159404e7d389/src/main/java/org/browsermob/proxy/jetty/http/PathMap.java#L271-L325 |
100,826 | webmetrics/browsermob-proxy | src/main/java/org/browsermob/proxy/jetty/http/PathMap.java | PathMap.pathMatch | public static String pathMatch(String pathSpec, String path)
{
char c = pathSpec.charAt(0);
if (c=='/')
{
if (pathSpec.length()==1)
return path;
if (pathSpec.equals(path))
return path;
if (pa... | java | public static String pathMatch(String pathSpec, String path)
{
char c = pathSpec.charAt(0);
if (c=='/')
{
if (pathSpec.length()==1)
return path;
if (pathSpec.equals(path))
return path;
if (pa... | [
"public",
"static",
"String",
"pathMatch",
"(",
"String",
"pathSpec",
",",
"String",
"path",
")",
"{",
"char",
"c",
"=",
"pathSpec",
".",
"charAt",
"(",
"0",
")",
";",
"if",
"(",
"c",
"==",
"'",
"'",
")",
"{",
"if",
"(",
"pathSpec",
".",
"length",
... | Return the portion of a path that matches a path spec.
@return null if no match at all. | [
"Return",
"the",
"portion",
"of",
"a",
"path",
"that",
"matches",
"a",
"path",
"spec",
"."
] | a9252e62246ac33d55d51b993ba1159404e7d389 | https://github.com/webmetrics/browsermob-proxy/blob/a9252e62246ac33d55d51b993ba1159404e7d389/src/main/java/org/browsermob/proxy/jetty/http/PathMap.java#L422-L448 |
100,827 | webmetrics/browsermob-proxy | src/main/java/org/browsermob/proxy/jetty/http/PathMap.java | PathMap.pathInfo | public static String pathInfo(String pathSpec, String path)
{
char c = pathSpec.charAt(0);
if (c=='/')
{
if (pathSpec.length()==1)
return null;
if (pathSpec.equals(path))
return null;
if (p... | java | public static String pathInfo(String pathSpec, String path)
{
char c = pathSpec.charAt(0);
if (c=='/')
{
if (pathSpec.length()==1)
return null;
if (pathSpec.equals(path))
return null;
if (p... | [
"public",
"static",
"String",
"pathInfo",
"(",
"String",
"pathSpec",
",",
"String",
"path",
")",
"{",
"char",
"c",
"=",
"pathSpec",
".",
"charAt",
"(",
"0",
")",
";",
"if",
"(",
"c",
"==",
"'",
"'",
")",
"{",
"if",
"(",
"pathSpec",
".",
"length",
... | Return the portion of a path that is after a path spec.
@return The path info string | [
"Return",
"the",
"portion",
"of",
"a",
"path",
"that",
"is",
"after",
"a",
"path",
"spec",
"."
] | a9252e62246ac33d55d51b993ba1159404e7d389 | https://github.com/webmetrics/browsermob-proxy/blob/a9252e62246ac33d55d51b993ba1159404e7d389/src/main/java/org/browsermob/proxy/jetty/http/PathMap.java#L454-L475 |
100,828 | webmetrics/browsermob-proxy | src/main/java/org/browsermob/proxy/jetty/http/PathMap.java | PathMap.relativePath | public static String relativePath(String base,
String pathSpec,
String path )
{
String info=pathInfo(pathSpec,path);
if (info==null)
info=path;
if( info.startsWith( "./"))
info = info.substri... | java | public static String relativePath(String base,
String pathSpec,
String path )
{
String info=pathInfo(pathSpec,path);
if (info==null)
info=path;
if( info.startsWith( "./"))
info = info.substri... | [
"public",
"static",
"String",
"relativePath",
"(",
"String",
"base",
",",
"String",
"pathSpec",
",",
"String",
"path",
")",
"{",
"String",
"info",
"=",
"pathInfo",
"(",
"pathSpec",
",",
"path",
")",
";",
"if",
"(",
"info",
"==",
"null",
")",
"info",
"=... | Relative path.
@param base The base the path is relative to.
@param pathSpec The spec of the path segment to ignore.
@param path the additional path
@return base plus path with pathspec removed | [
"Relative",
"path",
"."
] | a9252e62246ac33d55d51b993ba1159404e7d389 | https://github.com/webmetrics/browsermob-proxy/blob/a9252e62246ac33d55d51b993ba1159404e7d389/src/main/java/org/browsermob/proxy/jetty/http/PathMap.java#L485-L506 |
100,829 | webmetrics/browsermob-proxy | src/main/java/org/browsermob/proxy/jetty/util/LogSupport.java | LogSupport.ignore | public static void ignore(Log log,Throwable th)
{
if (log.isTraceEnabled()) log.trace(IGNORED,th);
} | java | public static void ignore(Log log,Throwable th)
{
if (log.isTraceEnabled()) log.trace(IGNORED,th);
} | [
"public",
"static",
"void",
"ignore",
"(",
"Log",
"log",
",",
"Throwable",
"th",
")",
"{",
"if",
"(",
"log",
".",
"isTraceEnabled",
"(",
")",
")",
"log",
".",
"trace",
"(",
"IGNORED",
",",
"th",
")",
";",
"}"
] | Ignore an exception unless trace is enabled.
This works around the problem that log4j does not support the trace level. | [
"Ignore",
"an",
"exception",
"unless",
"trace",
"is",
"enabled",
".",
"This",
"works",
"around",
"the",
"problem",
"that",
"log4j",
"does",
"not",
"support",
"the",
"trace",
"level",
"."
] | a9252e62246ac33d55d51b993ba1159404e7d389 | https://github.com/webmetrics/browsermob-proxy/blob/a9252e62246ac33d55d51b993ba1159404e7d389/src/main/java/org/browsermob/proxy/jetty/util/LogSupport.java#L34-L37 |
100,830 | webmetrics/browsermob-proxy | src/main/java/org/xbill/DNS/security/DNSSECVerifier.java | DNSSECVerifier.verify | public int
verify(RRset set, Cache cache) {
Iterator sigs = set.sigs();
if (Options.check("verbosesec"))
System.out.print("Verifying " + set.getName() + "/" +
Type.string(set.getType()) + ": ");
if (!sigs.hasNext()) {
if (Options.check("verbosesec"))
System.out.println("Insecure");
return DNSSEC.Insecu... | java | public int
verify(RRset set, Cache cache) {
Iterator sigs = set.sigs();
if (Options.check("verbosesec"))
System.out.print("Verifying " + set.getName() + "/" +
Type.string(set.getType()) + ": ");
if (!sigs.hasNext()) {
if (Options.check("verbosesec"))
System.out.println("Insecure");
return DNSSEC.Insecu... | [
"public",
"int",
"verify",
"(",
"RRset",
"set",
",",
"Cache",
"cache",
")",
"{",
"Iterator",
"sigs",
"=",
"set",
".",
"sigs",
"(",
")",
";",
"if",
"(",
"Options",
".",
"check",
"(",
"\"verbosesec\"",
")",
")",
"System",
".",
"out",
".",
"print",
"(... | Attempts to verify an RRset. This does not modify the set.
@param set The RRset to verify
@param cache The Cache where obtained secure keys are found (may be null)
@return The new security status of the set
@see RRset | [
"Attempts",
"to",
"verify",
"an",
"RRset",
".",
"This",
"does",
"not",
"modify",
"the",
"set",
"."
] | a9252e62246ac33d55d51b993ba1159404e7d389 | https://github.com/webmetrics/browsermob-proxy/blob/a9252e62246ac33d55d51b993ba1159404e7d389/src/main/java/org/xbill/DNS/security/DNSSECVerifier.java#L146-L168 |
100,831 | webmetrics/browsermob-proxy | src/main/java/org/xbill/DNS/DNSInput.java | DNSInput.readU16 | public int
readU16() throws WireParseException {
require(2);
int b1 = array[pos++] & 0xFF;
int b2 = array[pos++] & 0xFF;
return ((b1 << 8) + b2);
} | java | public int
readU16() throws WireParseException {
require(2);
int b1 = array[pos++] & 0xFF;
int b2 = array[pos++] & 0xFF;
return ((b1 << 8) + b2);
} | [
"public",
"int",
"readU16",
"(",
")",
"throws",
"WireParseException",
"{",
"require",
"(",
"2",
")",
";",
"int",
"b1",
"=",
"array",
"[",
"pos",
"++",
"]",
"&",
"0xFF",
";",
"int",
"b2",
"=",
"array",
"[",
"pos",
"++",
"]",
"&",
"0xFF",
";",
"ret... | Reads an unsigned 16 bit value from the stream, as an int.
@return An unsigned 16 bit value.
@throws WireParseException The end of the stream was reached. | [
"Reads",
"an",
"unsigned",
"16",
"bit",
"value",
"from",
"the",
"stream",
"as",
"an",
"int",
"."
] | a9252e62246ac33d55d51b993ba1159404e7d389 | https://github.com/webmetrics/browsermob-proxy/blob/a9252e62246ac33d55d51b993ba1159404e7d389/src/main/java/org/xbill/DNS/DNSInput.java#L137-L143 |
100,832 | webmetrics/browsermob-proxy | src/main/java/org/xbill/DNS/DNSInput.java | DNSInput.readU32 | public long
readU32() throws WireParseException {
require(4);
int b1 = array[pos++] & 0xFF;
int b2 = array[pos++] & 0xFF;
int b3 = array[pos++] & 0xFF;
int b4 = array[pos++] & 0xFF;
return (((long)b1 << 24) + (b2 << 16) + (b3 << 8) + b4);
} | java | public long
readU32() throws WireParseException {
require(4);
int b1 = array[pos++] & 0xFF;
int b2 = array[pos++] & 0xFF;
int b3 = array[pos++] & 0xFF;
int b4 = array[pos++] & 0xFF;
return (((long)b1 << 24) + (b2 << 16) + (b3 << 8) + b4);
} | [
"public",
"long",
"readU32",
"(",
")",
"throws",
"WireParseException",
"{",
"require",
"(",
"4",
")",
";",
"int",
"b1",
"=",
"array",
"[",
"pos",
"++",
"]",
"&",
"0xFF",
";",
"int",
"b2",
"=",
"array",
"[",
"pos",
"++",
"]",
"&",
"0xFF",
";",
"in... | Reads an unsigned 32 bit value from the stream, as a long.
@return An unsigned 32 bit value.
@throws WireParseException The end of the stream was reached. | [
"Reads",
"an",
"unsigned",
"32",
"bit",
"value",
"from",
"the",
"stream",
"as",
"a",
"long",
"."
] | a9252e62246ac33d55d51b993ba1159404e7d389 | https://github.com/webmetrics/browsermob-proxy/blob/a9252e62246ac33d55d51b993ba1159404e7d389/src/main/java/org/xbill/DNS/DNSInput.java#L150-L158 |
100,833 | webmetrics/browsermob-proxy | src/main/java/org/java_bandwidthlimiter/StreamManager.java | StreamManager.simulate | private static long simulate(long bytesPerSecond, long latency, int bytes, long timeTaken, boolean roundUp) {
if ( bytesPerSecond <= 0) { //< defensive code
return 0;
}
// workout how much we should have waited to read this amount of bytes
double d = ((double) bytes / bytesP... | java | private static long simulate(long bytesPerSecond, long latency, int bytes, long timeTaken, boolean roundUp) {
if ( bytesPerSecond <= 0) { //< defensive code
return 0;
}
// workout how much we should have waited to read this amount of bytes
double d = ((double) bytes / bytesP... | [
"private",
"static",
"long",
"simulate",
"(",
"long",
"bytesPerSecond",
",",
"long",
"latency",
",",
"int",
"bytes",
",",
"long",
"timeTaken",
",",
"boolean",
"roundUp",
")",
"{",
"if",
"(",
"bytesPerSecond",
"<=",
"0",
")",
"{",
"//< defensive code",
"retur... | to adjust the waiting time | [
"to",
"adjust",
"the",
"waiting",
"time"
] | a9252e62246ac33d55d51b993ba1159404e7d389 | https://github.com/webmetrics/browsermob-proxy/blob/a9252e62246ac33d55d51b993ba1159404e7d389/src/main/java/org/java_bandwidthlimiter/StreamManager.java#L354-L369 |
100,834 | webmetrics/browsermob-proxy | src/main/java/org/browsermob/proxy/selenium/CertificateCreator.java | CertificateCreator.mitmDuplicateCertificate | public static X509Certificate mitmDuplicateCertificate(final X509Certificate originalCert,
final PublicKey newPubKey,
final X509Certificate caCert,
final PrivateKey caPrivateKey,
Set<String> extensionOidsNotToCopy)
throws CertificateParsingException,
SignatureException,
InvalidKeyException,
Certi... | java | public static X509Certificate mitmDuplicateCertificate(final X509Certificate originalCert,
final PublicKey newPubKey,
final X509Certificate caCert,
final PrivateKey caPrivateKey,
Set<String> extensionOidsNotToCopy)
throws CertificateParsingException,
SignatureException,
InvalidKeyException,
Certi... | [
"public",
"static",
"X509Certificate",
"mitmDuplicateCertificate",
"(",
"final",
"X509Certificate",
"originalCert",
",",
"final",
"PublicKey",
"newPubKey",
",",
"final",
"X509Certificate",
"caCert",
",",
"final",
"PrivateKey",
"caPrivateKey",
",",
"Set",
"<",
"String",
... | This method creates an X509v3 certificate based on an an existing certificate.
It attempts to create as faithful a copy of the existing certificate as possible
by duplicating all certificate extensions.
If you are testing an application that makes use of additional certificate
extensions (e.g. logotype, S/MIME capabil... | [
"This",
"method",
"creates",
"an",
"X509v3",
"certificate",
"based",
"on",
"an",
"an",
"existing",
"certificate",
".",
"It",
"attempts",
"to",
"create",
"as",
"faithful",
"a",
"copy",
"of",
"the",
"existing",
"certificate",
"as",
"possible",
"by",
"duplicating... | a9252e62246ac33d55d51b993ba1159404e7d389 | https://github.com/webmetrics/browsermob-proxy/blob/a9252e62246ac33d55d51b993ba1159404e7d389/src/main/java/org/browsermob/proxy/selenium/CertificateCreator.java#L242-L311 |
100,835 | webmetrics/browsermob-proxy | src/main/java/org/browsermob/proxy/selenium/CertificateCreator.java | CertificateCreator.mitmDuplicateCertificate | public static X509Certificate mitmDuplicateCertificate(final X509Certificate originalCert,
final PublicKey newPubKey,
final X509Certificate caCert,
final PrivateKey caPrivateKey)
throws CertificateParsingException, SignatureException, InvalidKeyException, CertificateExpiredException, CertificateNotYetValidExc... | java | public static X509Certificate mitmDuplicateCertificate(final X509Certificate originalCert,
final PublicKey newPubKey,
final X509Certificate caCert,
final PrivateKey caPrivateKey)
throws CertificateParsingException, SignatureException, InvalidKeyException, CertificateExpiredException, CertificateNotYetValidExc... | [
"public",
"static",
"X509Certificate",
"mitmDuplicateCertificate",
"(",
"final",
"X509Certificate",
"originalCert",
",",
"final",
"PublicKey",
"newPubKey",
",",
"final",
"X509Certificate",
"caCert",
",",
"final",
"PrivateKey",
"caPrivateKey",
")",
"throws",
"CertificatePa... | Convenience method for the most common case of certificate duplication.
This method will not add any custom extensions and won't copy the extensions 2.5.29.8 : Issuer Alternative Name,
2.5.29.18 : Issuer Alternative Name 2, 2.5.29.31 : CRL Distribution Point or 1.3.6.1.5.5.7.1.1 : Authority Info Access, if they are pr... | [
"Convenience",
"method",
"for",
"the",
"most",
"common",
"case",
"of",
"certificate",
"duplication",
"."
] | a9252e62246ac33d55d51b993ba1159404e7d389 | https://github.com/webmetrics/browsermob-proxy/blob/a9252e62246ac33d55d51b993ba1159404e7d389/src/main/java/org/browsermob/proxy/selenium/CertificateCreator.java#L333-L340 |
100,836 | webmetrics/browsermob-proxy | src/main/java/org/browsermob/proxy/jetty/util/IO.java | IO.copyThread | public static void copyThread(InputStream in, OutputStream out)
{
try{
instance().run(new Job(in,out));
}
catch(InterruptedException e)
{
log.warn(LogSupport.EXCEPTION,e);
}
} | java | public static void copyThread(InputStream in, OutputStream out)
{
try{
instance().run(new Job(in,out));
}
catch(InterruptedException e)
{
log.warn(LogSupport.EXCEPTION,e);
}
} | [
"public",
"static",
"void",
"copyThread",
"(",
"InputStream",
"in",
",",
"OutputStream",
"out",
")",
"{",
"try",
"{",
"instance",
"(",
")",
".",
"run",
"(",
"new",
"Job",
"(",
"in",
",",
"out",
")",
")",
";",
"}",
"catch",
"(",
"InterruptedException",
... | Copy Stream in to Stream out until EOF or exception.
in own thread | [
"Copy",
"Stream",
"in",
"to",
"Stream",
"out",
"until",
"EOF",
"or",
"exception",
".",
"in",
"own",
"thread"
] | a9252e62246ac33d55d51b993ba1159404e7d389 | https://github.com/webmetrics/browsermob-proxy/blob/a9252e62246ac33d55d51b993ba1159404e7d389/src/main/java/org/browsermob/proxy/jetty/util/IO.java#L86-L95 |
100,837 | webmetrics/browsermob-proxy | src/main/java/org/browsermob/proxy/jetty/util/IO.java | IO.copyThread | public static void copyThread(Reader in, Writer out)
{
try
{
instance().run(new Job(in,out));
}
catch(InterruptedException e)
{
log.warn(LogSupport.EXCEPTION,e);
}
} | java | public static void copyThread(Reader in, Writer out)
{
try
{
instance().run(new Job(in,out));
}
catch(InterruptedException e)
{
log.warn(LogSupport.EXCEPTION,e);
}
} | [
"public",
"static",
"void",
"copyThread",
"(",
"Reader",
"in",
",",
"Writer",
"out",
")",
"{",
"try",
"{",
"instance",
"(",
")",
".",
"run",
"(",
"new",
"Job",
"(",
"in",
",",
"out",
")",
")",
";",
"}",
"catch",
"(",
"InterruptedException",
"e",
")... | Copy Stream in to Stream out until EOF or exception
in own thread | [
"Copy",
"Stream",
"in",
"to",
"Stream",
"out",
"until",
"EOF",
"or",
"exception",
"in",
"own",
"thread"
] | a9252e62246ac33d55d51b993ba1159404e7d389 | https://github.com/webmetrics/browsermob-proxy/blob/a9252e62246ac33d55d51b993ba1159404e7d389/src/main/java/org/browsermob/proxy/jetty/util/IO.java#L110-L120 |
100,838 | webmetrics/browsermob-proxy | src/main/java/org/browsermob/proxy/jetty/util/IO.java | IO.copy | public static void copy(Reader in,
Writer out,
long byteCount)
throws IOException
{
char buffer[] = new char[bufferSize];
int len=bufferSize;
if (byteCount>=0)
{
while (byteCount>0)
{
... | java | public static void copy(Reader in,
Writer out,
long byteCount)
throws IOException
{
char buffer[] = new char[bufferSize];
int len=bufferSize;
if (byteCount>=0)
{
while (byteCount>0)
{
... | [
"public",
"static",
"void",
"copy",
"(",
"Reader",
"in",
",",
"Writer",
"out",
",",
"long",
"byteCount",
")",
"throws",
"IOException",
"{",
"char",
"buffer",
"[",
"]",
"=",
"new",
"char",
"[",
"bufferSize",
"]",
";",
"int",
"len",
"=",
"bufferSize",
";... | Copy Reader to Writer for byteCount bytes or until EOF or exception. | [
"Copy",
"Reader",
"to",
"Writer",
"for",
"byteCount",
"bytes",
"or",
"until",
"EOF",
"or",
"exception",
"."
] | a9252e62246ac33d55d51b993ba1159404e7d389 | https://github.com/webmetrics/browsermob-proxy/blob/a9252e62246ac33d55d51b993ba1159404e7d389/src/main/java/org/browsermob/proxy/jetty/util/IO.java#L175-L209 |
100,839 | webmetrics/browsermob-proxy | src/main/java/org/xbill/DNS/TSIG.java | TSIG.fromString | static public TSIG
fromString(String str) {
String [] parts = str.split("[:/]");
if (parts.length < 2 || parts.length > 3)
throw new IllegalArgumentException("Invalid TSIG key " +
"specification");
if (parts.length == 3)
return new TSIG(parts[0], parts[1], parts[2]);
else
return new TSIG(HMAC_MD5, pa... | java | static public TSIG
fromString(String str) {
String [] parts = str.split("[:/]");
if (parts.length < 2 || parts.length > 3)
throw new IllegalArgumentException("Invalid TSIG key " +
"specification");
if (parts.length == 3)
return new TSIG(parts[0], parts[1], parts[2]);
else
return new TSIG(HMAC_MD5, pa... | [
"static",
"public",
"TSIG",
"fromString",
"(",
"String",
"str",
")",
"{",
"String",
"[",
"]",
"parts",
"=",
"str",
".",
"split",
"(",
"\"[:/]\"",
")",
";",
"if",
"(",
"parts",
".",
"length",
"<",
"2",
"||",
"parts",
".",
"length",
">",
"3",
")",
... | Creates a new TSIG object with the hmac-md5 algorithm, which can be used to
sign or verify a message.
@param str The TSIG key, in the form name:secret, name/secret,
alg:name:secret, or alg/name/secret. If an algorithm is specified, it must
be "hmac-md5", "hmac-sha1", or "hmac-sha256".
@throws IllegalArgumentException ... | [
"Creates",
"a",
"new",
"TSIG",
"object",
"with",
"the",
"hmac",
"-",
"md5",
"algorithm",
"which",
"can",
"be",
"used",
"to",
"sign",
"or",
"verify",
"a",
"message",
"."
] | a9252e62246ac33d55d51b993ba1159404e7d389 | https://github.com/webmetrics/browsermob-proxy/blob/a9252e62246ac33d55d51b993ba1159404e7d389/src/main/java/org/xbill/DNS/TSIG.java#L151-L161 |
100,840 | webmetrics/browsermob-proxy | src/main/java/org/browsermob/proxy/jetty/util/DateCache.java | DateCache.setTimeZone | public void setTimeZone(TimeZone tz)
{
setTzFormatString(tz);
if( _locale != null )
{
_tzFormat=new SimpleDateFormat(_tzFormatString,_locale);
_minFormat=new SimpleDateFormat(_minFormatString,_locale);
}
else if( _dfs != null )
{
... | java | public void setTimeZone(TimeZone tz)
{
setTzFormatString(tz);
if( _locale != null )
{
_tzFormat=new SimpleDateFormat(_tzFormatString,_locale);
_minFormat=new SimpleDateFormat(_minFormatString,_locale);
}
else if( _dfs != null )
{
... | [
"public",
"void",
"setTimeZone",
"(",
"TimeZone",
"tz",
")",
"{",
"setTzFormatString",
"(",
"tz",
")",
";",
"if",
"(",
"_locale",
"!=",
"null",
")",
"{",
"_tzFormat",
"=",
"new",
"SimpleDateFormat",
"(",
"_tzFormatString",
",",
"_locale",
")",
";",
"_minFo... | Set the timezone.
@param tz TimeZone | [
"Set",
"the",
"timezone",
"."
] | a9252e62246ac33d55d51b993ba1159404e7d389 | https://github.com/webmetrics/browsermob-proxy/blob/a9252e62246ac33d55d51b993ba1159404e7d389/src/main/java/org/browsermob/proxy/jetty/util/DateCache.java#L111-L133 |
100,841 | webmetrics/browsermob-proxy | src/main/java/org/browsermob/proxy/jetty/util/DateCache.java | DateCache.format | public synchronized String format(long inDate)
{
long seconds = inDate / 1000;
// Is it not suitable to cache?
if (seconds<_lastSeconds ||
_lastSeconds>0 && seconds>_lastSeconds+__hitWindow)
{
// It's a cache miss
_misses++;
if (_misse... | java | public synchronized String format(long inDate)
{
long seconds = inDate / 1000;
// Is it not suitable to cache?
if (seconds<_lastSeconds ||
_lastSeconds>0 && seconds>_lastSeconds+__hitWindow)
{
// It's a cache miss
_misses++;
if (_misse... | [
"public",
"synchronized",
"String",
"format",
"(",
"long",
"inDate",
")",
"{",
"long",
"seconds",
"=",
"inDate",
"/",
"1000",
";",
"// Is it not suitable to cache?",
"if",
"(",
"seconds",
"<",
"_lastSeconds",
"||",
"_lastSeconds",
">",
"0",
"&&",
"seconds",
">... | Format a date according to our stored formatter.
@param inDate
@return Formatted date | [
"Format",
"a",
"date",
"according",
"to",
"our",
"stored",
"formatter",
"."
] | a9252e62246ac33d55d51b993ba1159404e7d389 | https://github.com/webmetrics/browsermob-proxy/blob/a9252e62246ac33d55d51b993ba1159404e7d389/src/main/java/org/browsermob/proxy/jetty/util/DateCache.java#L228-L303 |
100,842 | webmetrics/browsermob-proxy | src/main/java/org/xbill/DNS/OPTRecord.java | OPTRecord.getOptions | public List
getOptions(int code) {
if (options == null)
return Collections.EMPTY_LIST;
List list = null;
for (Iterator it = options.iterator(); it.hasNext(); ) {
Option opt = (Option) it.next();
if (opt.code == code) {
if (list == null)
list = new ArrayList();
list.add(opt.data);
}
}
if (list == ... | java | public List
getOptions(int code) {
if (options == null)
return Collections.EMPTY_LIST;
List list = null;
for (Iterator it = options.iterator(); it.hasNext(); ) {
Option opt = (Option) it.next();
if (opt.code == code) {
if (list == null)
list = new ArrayList();
list.add(opt.data);
}
}
if (list == ... | [
"public",
"List",
"getOptions",
"(",
"int",
"code",
")",
"{",
"if",
"(",
"options",
"==",
"null",
")",
"return",
"Collections",
".",
"EMPTY_LIST",
";",
"List",
"list",
"=",
"null",
";",
"for",
"(",
"Iterator",
"it",
"=",
"options",
".",
"iterator",
"("... | Gets all options in the OPTRecord with a specific code. This returns a
list of byte arrays. | [
"Gets",
"all",
"options",
"in",
"the",
"OPTRecord",
"with",
"a",
"specific",
"code",
".",
"This",
"returns",
"a",
"list",
"of",
"byte",
"arrays",
"."
] | a9252e62246ac33d55d51b993ba1159404e7d389 | https://github.com/webmetrics/browsermob-proxy/blob/a9252e62246ac33d55d51b993ba1159404e7d389/src/main/java/org/xbill/DNS/OPTRecord.java#L203-L219 |
100,843 | webmetrics/browsermob-proxy | src/main/java/org/browsermob/proxy/jetty/http/SocketListener.java | SocketListener.createConnection | protected HttpConnection createConnection(Socket socket)
throws IOException
{
HttpConnection c = new HttpConnection(this,
socket.getInetAddress(),
socket.getInputStream(),
socket.getOutputStream(),
... | java | protected HttpConnection createConnection(Socket socket)
throws IOException
{
HttpConnection c = new HttpConnection(this,
socket.getInetAddress(),
socket.getInputStream(),
socket.getOutputStream(),
... | [
"protected",
"HttpConnection",
"createConnection",
"(",
"Socket",
"socket",
")",
"throws",
"IOException",
"{",
"HttpConnection",
"c",
"=",
"new",
"HttpConnection",
"(",
"this",
",",
"socket",
".",
"getInetAddress",
"(",
")",
",",
"socket",
".",
"getInputStream",
... | Create an HttpConnection instance. This method can be used to
override the connection instance.
@param socket The underlying socket. | [
"Create",
"an",
"HttpConnection",
"instance",
".",
"This",
"method",
"can",
"be",
"used",
"to",
"override",
"the",
"connection",
"instance",
"."
] | a9252e62246ac33d55d51b993ba1159404e7d389 | https://github.com/webmetrics/browsermob-proxy/blob/a9252e62246ac33d55d51b993ba1159404e7d389/src/main/java/org/browsermob/proxy/jetty/http/SocketListener.java#L253-L262 |
100,844 | webmetrics/browsermob-proxy | src/main/java/org/browsermob/proxy/jetty/http/SocketListener.java | SocketListener.persistConnection | public void persistConnection(HttpConnection connection)
{
try
{
Socket socket=(Socket)(connection.getConnection());
if (_lowResourcePersistTimeMs>0 && isLowOnResources())
{
socket.setSoTimeout(_lowResourcePersistTimeMs);
connectio... | java | public void persistConnection(HttpConnection connection)
{
try
{
Socket socket=(Socket)(connection.getConnection());
if (_lowResourcePersistTimeMs>0 && isLowOnResources())
{
socket.setSoTimeout(_lowResourcePersistTimeMs);
connectio... | [
"public",
"void",
"persistConnection",
"(",
"HttpConnection",
"connection",
")",
"{",
"try",
"{",
"Socket",
"socket",
"=",
"(",
"Socket",
")",
"(",
"connection",
".",
"getConnection",
"(",
")",
")",
";",
"if",
"(",
"_lowResourcePersistTimeMs",
">",
"0",
"&&"... | Persist the connection.
This method is called by the HttpConnection in order to prepare a
connection to be persisted. For this implementation,
if the listener is low on resources, the connection read
timeout is set to lowResourcePersistTimeMs. The
customizeRequest method is used to reset this to the normal
value after... | [
"Persist",
"the",
"connection",
".",
"This",
"method",
"is",
"called",
"by",
"the",
"HttpConnection",
"in",
"order",
"to",
"prepare",
"a",
"connection",
"to",
"be",
"persisted",
".",
"For",
"this",
"implementation",
"if",
"the",
"listener",
"is",
"low",
"on"... | a9252e62246ac33d55d51b993ba1159404e7d389 | https://github.com/webmetrics/browsermob-proxy/blob/a9252e62246ac33d55d51b993ba1159404e7d389/src/main/java/org/browsermob/proxy/jetty/http/SocketListener.java#L318-L336 |
100,845 | webmetrics/browsermob-proxy | src/main/java/org/browsermob/proxy/jetty/http/HttpInputStream.java | HttpInputStream.resetStream | public void resetStream()
throws IllegalStateException
{
if ((_deChunker!=null && _deChunker._chunkSize>0) ||
_realIn.getByteLimit()>0)
throw new IllegalStateException("Unread input");
if(log.isTraceEnabled())log.trace("resetStream()");
in=_realIn;
if ... | java | public void resetStream()
throws IllegalStateException
{
if ((_deChunker!=null && _deChunker._chunkSize>0) ||
_realIn.getByteLimit()>0)
throw new IllegalStateException("Unread input");
if(log.isTraceEnabled())log.trace("resetStream()");
in=_realIn;
if ... | [
"public",
"void",
"resetStream",
"(",
")",
"throws",
"IllegalStateException",
"{",
"if",
"(",
"(",
"_deChunker",
"!=",
"null",
"&&",
"_deChunker",
".",
"_chunkSize",
">",
"0",
")",
"||",
"_realIn",
".",
"getByteLimit",
"(",
")",
">",
"0",
")",
"throw",
"... | Reset the stream.
Turn chunking off and disable all filters.
@exception IllegalStateException The stream cannot be reset if
there is some unread chunked input or a content length greater
than zero remaining. | [
"Reset",
"the",
"stream",
".",
"Turn",
"chunking",
"off",
"and",
"disable",
"all",
"filters",
"."
] | a9252e62246ac33d55d51b993ba1159404e7d389 | https://github.com/webmetrics/browsermob-proxy/blob/a9252e62246ac33d55d51b993ba1159404e7d389/src/main/java/org/browsermob/proxy/jetty/http/HttpInputStream.java#L225-L237 |
100,846 | webmetrics/browsermob-proxy | src/main/java/org/browsermob/proxy/jetty/http/HttpInputStream.java | HttpInputStream.setContentLength | public void setContentLength(int len)
{
if (_chunking && len>=0 && getExpectContinues()==null)
throw new IllegalStateException("Chunking");
_realIn.setByteLimit(len);
} | java | public void setContentLength(int len)
{
if (_chunking && len>=0 && getExpectContinues()==null)
throw new IllegalStateException("Chunking");
_realIn.setByteLimit(len);
} | [
"public",
"void",
"setContentLength",
"(",
"int",
"len",
")",
"{",
"if",
"(",
"_chunking",
"&&",
"len",
">=",
"0",
"&&",
"getExpectContinues",
"(",
")",
"==",
"null",
")",
"throw",
"new",
"IllegalStateException",
"(",
"\"Chunking\"",
")",
";",
"_realIn",
"... | Set the content length.
Only this number of bytes can be read before EOF is returned.
@param len length. | [
"Set",
"the",
"content",
"length",
".",
"Only",
"this",
"number",
"of",
"bytes",
"can",
"be",
"read",
"before",
"EOF",
"is",
"returned",
"."
] | a9252e62246ac33d55d51b993ba1159404e7d389 | https://github.com/webmetrics/browsermob-proxy/blob/a9252e62246ac33d55d51b993ba1159404e7d389/src/main/java/org/browsermob/proxy/jetty/http/HttpInputStream.java#L252-L257 |
100,847 | dashbuilder/dashbuilder | dashbuilder-client/dashbuilder-dataset-client/src/main/java/org/dashbuilder/dataset/client/DataSetClientServices.java | DataSetClientServices.fetchMetadata | public void fetchMetadata(final String uuid,
final DataSetMetadataCallback listener) throws Exception {
final DataSetMetadata metadata = clientDataSetManager.getDataSetMetadata(uuid);
if (metadata != null) {
listener.callback(metadata);
} else if (dataS... | java | public void fetchMetadata(final String uuid,
final DataSetMetadataCallback listener) throws Exception {
final DataSetMetadata metadata = clientDataSetManager.getDataSetMetadata(uuid);
if (metadata != null) {
listener.callback(metadata);
} else if (dataS... | [
"public",
"void",
"fetchMetadata",
"(",
"final",
"String",
"uuid",
",",
"final",
"DataSetMetadataCallback",
"listener",
")",
"throws",
"Exception",
"{",
"final",
"DataSetMetadata",
"metadata",
"=",
"clientDataSetManager",
".",
"getDataSetMetadata",
"(",
"uuid",
")",
... | Fetch the metadata instance for the specified data set.
@param uuid The UUID of the data set
@throws Exception It there is an unexpected error trying to execute the lookup request. | [
"Fetch",
"the",
"metadata",
"instance",
"for",
"the",
"specified",
"data",
"set",
"."
] | 50ef88210726b4f2f33f1a82eaf0f542e38dedd9 | https://github.com/dashbuilder/dashbuilder/blob/50ef88210726b4f2f33f1a82eaf0f542e38dedd9/dashbuilder-client/dashbuilder-dataset-client/src/main/java/org/dashbuilder/dataset/client/DataSetClientServices.java#L131-L157 |
100,848 | dashbuilder/dashbuilder | dashbuilder-client/dashbuilder-dataset-client/src/main/java/org/dashbuilder/dataset/client/DataSetClientServices.java | DataSetClientServices.getMetadata | public DataSetMetadata getMetadata(String uuid) {
DataSetMetadata metadata = clientDataSetManager.getDataSetMetadata(uuid);
if (metadata != null) {
return metadata;
}
return remoteMetadataMap.get(uuid);
} | java | public DataSetMetadata getMetadata(String uuid) {
DataSetMetadata metadata = clientDataSetManager.getDataSetMetadata(uuid);
if (metadata != null) {
return metadata;
}
return remoteMetadataMap.get(uuid);
} | [
"public",
"DataSetMetadata",
"getMetadata",
"(",
"String",
"uuid",
")",
"{",
"DataSetMetadata",
"metadata",
"=",
"clientDataSetManager",
".",
"getDataSetMetadata",
"(",
"uuid",
")",
";",
"if",
"(",
"metadata",
"!=",
"null",
")",
"{",
"return",
"metadata",
";",
... | Get the cached metadata instance for the specified data set.
@param uuid The UUID of the data set. Null if the metadata is not stored on client yet. | [
"Get",
"the",
"cached",
"metadata",
"instance",
"for",
"the",
"specified",
"data",
"set",
"."
] | 50ef88210726b4f2f33f1a82eaf0f542e38dedd9 | https://github.com/dashbuilder/dashbuilder/blob/50ef88210726b4f2f33f1a82eaf0f542e38dedd9/dashbuilder-client/dashbuilder-dataset-client/src/main/java/org/dashbuilder/dataset/client/DataSetClientServices.java#L168-L175 |
100,849 | dashbuilder/dashbuilder | dashbuilder-client/dashbuilder-dataset-client/src/main/java/org/dashbuilder/dataset/client/DataSetClientServices.java | DataSetClientServices.exportDataSetCSV | public void exportDataSetCSV(final DataSetLookup request,
final DataSetExportReadyCallback listener) throws Exception {
if (dataSetLookupServices != null) {
// Look always into the client data set manager.
if (clientDataSetManager.getDataSet(request.getD... | java | public void exportDataSetCSV(final DataSetLookup request,
final DataSetExportReadyCallback listener) throws Exception {
if (dataSetLookupServices != null) {
// Look always into the client data set manager.
if (clientDataSetManager.getDataSet(request.getD... | [
"public",
"void",
"exportDataSetCSV",
"(",
"final",
"DataSetLookup",
"request",
",",
"final",
"DataSetExportReadyCallback",
"listener",
")",
"throws",
"Exception",
"{",
"if",
"(",
"dataSetLookupServices",
"!=",
"null",
")",
"{",
"// Look always into the client data set ma... | Export a data set, specified by a data set lookup request, to CSV format.
@param request The data set lookup request
@throws Exception It there is an unexpected error during the export. | [
"Export",
"a",
"data",
"set",
"specified",
"by",
"a",
"data",
"set",
"lookup",
"request",
"to",
"CSV",
"format",
"."
] | 50ef88210726b4f2f33f1a82eaf0f542e38dedd9 | https://github.com/dashbuilder/dashbuilder/blob/50ef88210726b4f2f33f1a82eaf0f542e38dedd9/dashbuilder-client/dashbuilder-dataset-client/src/main/java/org/dashbuilder/dataset/client/DataSetClientServices.java#L183-L230 |
100,850 | dashbuilder/dashbuilder | dashbuilder-client/dashbuilder-dataset-client/src/main/java/org/dashbuilder/dataset/client/DataSetClientServices.java | DataSetClientServices.exportDataSetExcel | public void exportDataSetExcel(final DataSetLookup request,
final DataSetExportReadyCallback listener) throws Exception {
if (dataSetLookupServices != null) {
// Look always into the client data set manager.
if (clientDataSetManager.getDataSet(request.... | java | public void exportDataSetExcel(final DataSetLookup request,
final DataSetExportReadyCallback listener) throws Exception {
if (dataSetLookupServices != null) {
// Look always into the client data set manager.
if (clientDataSetManager.getDataSet(request.... | [
"public",
"void",
"exportDataSetExcel",
"(",
"final",
"DataSetLookup",
"request",
",",
"final",
"DataSetExportReadyCallback",
"listener",
")",
"throws",
"Exception",
"{",
"if",
"(",
"dataSetLookupServices",
"!=",
"null",
")",
"{",
"// Look always into the client data set ... | Export a data set, specified by a data set lookup request, to Excel format.
@param request The data set lookup request
@throws Exception It there is an unexpected error during the export. | [
"Export",
"a",
"data",
"set",
"specified",
"by",
"a",
"data",
"set",
"lookup",
"request",
"to",
"Excel",
"format",
"."
] | 50ef88210726b4f2f33f1a82eaf0f542e38dedd9 | https://github.com/dashbuilder/dashbuilder/blob/50ef88210726b4f2f33f1a82eaf0f542e38dedd9/dashbuilder-client/dashbuilder-dataset-client/src/main/java/org/dashbuilder/dataset/client/DataSetClientServices.java#L238-L281 |
100,851 | dashbuilder/dashbuilder | dashbuilder-client/dashbuilder-dataset-client/src/main/java/org/dashbuilder/dataset/client/DataSetClientServices.java | DataSetClientServices.newDataSet | public void newDataSet(DataSetProviderType type,
RemoteCallback<DataSetDef> callback) throws Exception {
dataSetDefServices.call(callback).createDataSetDef(type);
} | java | public void newDataSet(DataSetProviderType type,
RemoteCallback<DataSetDef> callback) throws Exception {
dataSetDefServices.call(callback).createDataSetDef(type);
} | [
"public",
"void",
"newDataSet",
"(",
"DataSetProviderType",
"type",
",",
"RemoteCallback",
"<",
"DataSetDef",
">",
"callback",
")",
"throws",
"Exception",
"{",
"dataSetDefServices",
".",
"call",
"(",
"callback",
")",
".",
"createDataSetDef",
"(",
"type",
")",
";... | Creates a brand new data set definition for the provider type specified
@param type The provider type
@return A data set definition instance | [
"Creates",
"a",
"brand",
"new",
"data",
"set",
"definition",
"for",
"the",
"provider",
"type",
"specified"
] | 50ef88210726b4f2f33f1a82eaf0f542e38dedd9 | https://github.com/dashbuilder/dashbuilder/blob/50ef88210726b4f2f33f1a82eaf0f542e38dedd9/dashbuilder-client/dashbuilder-dataset-client/src/main/java/org/dashbuilder/dataset/client/DataSetClientServices.java#L289-L292 |
100,852 | dashbuilder/dashbuilder | dashbuilder-client/dashbuilder-dataset-client/src/main/java/org/dashbuilder/dataset/client/DataSetClientServices.java | DataSetClientServices.lookupDataSet | public void lookupDataSet(final DataSetDef def,
final DataSetLookup request,
final DataSetReadyCallback listener) throws Exception {
if (dataSetLookupServices != null) {
try {
dataSetLookupServices.call(
... | java | public void lookupDataSet(final DataSetDef def,
final DataSetLookup request,
final DataSetReadyCallback listener) throws Exception {
if (dataSetLookupServices != null) {
try {
dataSetLookupServices.call(
... | [
"public",
"void",
"lookupDataSet",
"(",
"final",
"DataSetDef",
"def",
",",
"final",
"DataSetLookup",
"request",
",",
"final",
"DataSetReadyCallback",
"listener",
")",
"throws",
"Exception",
"{",
"if",
"(",
"dataSetLookupServices",
"!=",
"null",
")",
"{",
"try",
... | Process the specified data set lookup request for a given definition.
@param def The data set definition
@param request The data set lookup request
@throws Exception It there is an unexpected error trying to execute the lookup request. | [
"Process",
"the",
"specified",
"data",
"set",
"lookup",
"request",
"for",
"a",
"given",
"definition",
"."
] | 50ef88210726b4f2f33f1a82eaf0f542e38dedd9 | https://github.com/dashbuilder/dashbuilder/blob/50ef88210726b4f2f33f1a82eaf0f542e38dedd9/dashbuilder-client/dashbuilder-dataset-client/src/main/java/org/dashbuilder/dataset/client/DataSetClientServices.java#L301-L334 |
100,853 | dashbuilder/dashbuilder | dashbuilder-client/dashbuilder-dataset-client/src/main/java/org/dashbuilder/dataset/client/DataSetClientServices.java | DataSetClientServices.lookupDataSet | public void lookupDataSet(final DataSetLookup request,
final DataSetReadyCallback listener) throws Exception {
// Look always into the client data set manager.
if (clientDataSetManager.getDataSet(request.getDataSetUUID()) != null) {
DataSet dataSet = clientData... | java | public void lookupDataSet(final DataSetLookup request,
final DataSetReadyCallback listener) throws Exception {
// Look always into the client data set manager.
if (clientDataSetManager.getDataSet(request.getDataSetUUID()) != null) {
DataSet dataSet = clientData... | [
"public",
"void",
"lookupDataSet",
"(",
"final",
"DataSetLookup",
"request",
",",
"final",
"DataSetReadyCallback",
"listener",
")",
"throws",
"Exception",
"{",
"// Look always into the client data set manager.",
"if",
"(",
"clientDataSetManager",
".",
"getDataSet",
"(",
"... | Process the specified data set lookup request.
@param request The data set lookup request
@throws Exception It there is an unexpected error trying to execute the lookup request. | [
"Process",
"the",
"specified",
"data",
"set",
"lookup",
"request",
"."
] | 50ef88210726b4f2f33f1a82eaf0f542e38dedd9 | https://github.com/dashbuilder/dashbuilder/blob/50ef88210726b4f2f33f1a82eaf0f542e38dedd9/dashbuilder-client/dashbuilder-dataset-client/src/main/java/org/dashbuilder/dataset/client/DataSetClientServices.java#L342-L403 |
100,854 | dashbuilder/dashbuilder | dashbuilder-client/dashbuilder-renderers/dashbuilder-renderer-default/src/main/java/org/dashbuilder/renderer/client/table/TableDisplayer.java | TableDisplayer.onFilterLabelRemoved | void onFilterLabelRemoved(String columnId, int row) {
super.filterUpdate(columnId, row);
// Update the displayer view in order to reflect the current selection
// (only if not has already been redrawn in the previous filterUpdate() call)
if (!displayerSettings.isFilterSelfApplyEnabled()... | java | void onFilterLabelRemoved(String columnId, int row) {
super.filterUpdate(columnId, row);
// Update the displayer view in order to reflect the current selection
// (only if not has already been redrawn in the previous filterUpdate() call)
if (!displayerSettings.isFilterSelfApplyEnabled()... | [
"void",
"onFilterLabelRemoved",
"(",
"String",
"columnId",
",",
"int",
"row",
")",
"{",
"super",
".",
"filterUpdate",
"(",
"columnId",
",",
"row",
")",
";",
"// Update the displayer view in order to reflect the current selection",
"// (only if not has already been redrawn in ... | Filter label set component notifications | [
"Filter",
"label",
"set",
"component",
"notifications"
] | 50ef88210726b4f2f33f1a82eaf0f542e38dedd9 | https://github.com/dashbuilder/dashbuilder/blob/50ef88210726b4f2f33f1a82eaf0f542e38dedd9/dashbuilder-client/dashbuilder-renderers/dashbuilder-renderer-default/src/main/java/org/dashbuilder/renderer/client/table/TableDisplayer.java#L354-L362 |
100,855 | dashbuilder/dashbuilder | dashbuilder-client/dashbuilder-renderers/dashbuilder-renderer-default/src/main/java/org/dashbuilder/renderer/client/table/TableDisplayer.java | TableDisplayer.onFilterEnabled | @Override
public void onFilterEnabled(Displayer displayer, DataSetGroup groupOp) {
view.gotoFirstPage();
super.onFilterEnabled(displayer, groupOp);
} | java | @Override
public void onFilterEnabled(Displayer displayer, DataSetGroup groupOp) {
view.gotoFirstPage();
super.onFilterEnabled(displayer, groupOp);
} | [
"@",
"Override",
"public",
"void",
"onFilterEnabled",
"(",
"Displayer",
"displayer",
",",
"DataSetGroup",
"groupOp",
")",
"{",
"view",
".",
"gotoFirstPage",
"(",
")",
";",
"super",
".",
"onFilterEnabled",
"(",
"displayer",
",",
"groupOp",
")",
";",
"}"
] | Reset the current navigation status on filter requests from external displayers | [
"Reset",
"the",
"current",
"navigation",
"status",
"on",
"filter",
"requests",
"from",
"external",
"displayers"
] | 50ef88210726b4f2f33f1a82eaf0f542e38dedd9 | https://github.com/dashbuilder/dashbuilder/blob/50ef88210726b4f2f33f1a82eaf0f542e38dedd9/dashbuilder-client/dashbuilder-renderers/dashbuilder-renderer-default/src/main/java/org/dashbuilder/renderer/client/table/TableDisplayer.java#L376-L380 |
100,856 | dashbuilder/dashbuilder | dashbuilder-client/dashbuilder-displayer-screen/src/main/java/org/dashbuilder/displayer/client/PerspectiveCoordinator.java | PerspectiveCoordinator.editOn | public void editOn() {
editOn = true;
// Turns off the automatic refresh of all the displayers.
for (Displayer displayer : displayerCoordinator.getDisplayerList()) {
displayer.setRefreshOn(false);
}
} | java | public void editOn() {
editOn = true;
// Turns off the automatic refresh of all the displayers.
for (Displayer displayer : displayerCoordinator.getDisplayerList()) {
displayer.setRefreshOn(false);
}
} | [
"public",
"void",
"editOn",
"(",
")",
"{",
"editOn",
"=",
"true",
";",
"// Turns off the automatic refresh of all the displayers.",
"for",
"(",
"Displayer",
"displayer",
":",
"displayerCoordinator",
".",
"getDisplayerList",
"(",
")",
")",
"{",
"displayer",
".",
"set... | Turn on the edition of the perspective | [
"Turn",
"on",
"the",
"edition",
"of",
"the",
"perspective"
] | 50ef88210726b4f2f33f1a82eaf0f542e38dedd9 | https://github.com/dashbuilder/dashbuilder/blob/50ef88210726b4f2f33f1a82eaf0f542e38dedd9/dashbuilder-client/dashbuilder-displayer-screen/src/main/java/org/dashbuilder/displayer/client/PerspectiveCoordinator.java#L80-L87 |
100,857 | dashbuilder/dashbuilder | dashbuilder-client/dashbuilder-renderers/dashbuilder-renderer-default/src/main/java/org/dashbuilder/renderer/client/selector/SelectorDisplayer.java | SelectorDisplayer.onFilterEnabled | @Override
public void onFilterEnabled(Displayer displayer, DataSetGroup groupOp) {
String firstColumnId = dataSet.getColumnByIndex(0).getId();
List<Integer> currentFilter = super.filterIndexes(firstColumnId);
// If selector is active then ignore external filters.
if (currentFilter.i... | java | @Override
public void onFilterEnabled(Displayer displayer, DataSetGroup groupOp) {
String firstColumnId = dataSet.getColumnByIndex(0).getId();
List<Integer> currentFilter = super.filterIndexes(firstColumnId);
// If selector is active then ignore external filters.
if (currentFilter.i... | [
"@",
"Override",
"public",
"void",
"onFilterEnabled",
"(",
"Displayer",
"displayer",
",",
"DataSetGroup",
"groupOp",
")",
"{",
"String",
"firstColumnId",
"=",
"dataSet",
".",
"getColumnByIndex",
"(",
"0",
")",
".",
"getId",
"(",
")",
";",
"List",
"<",
"Integ... | KEEP IN SYNC THE CURRENT SELECTION WITH ANY EXTERNAL FILTER | [
"KEEP",
"IN",
"SYNC",
"THE",
"CURRENT",
"SELECTION",
"WITH",
"ANY",
"EXTERNAL",
"FILTER"
] | 50ef88210726b4f2f33f1a82eaf0f542e38dedd9 | https://github.com/dashbuilder/dashbuilder/blob/50ef88210726b4f2f33f1a82eaf0f542e38dedd9/dashbuilder-client/dashbuilder-renderers/dashbuilder-renderer-default/src/main/java/org/dashbuilder/renderer/client/selector/SelectorDisplayer.java#L181-L193 |
100,858 | dashbuilder/dashbuilder | dashbuilder-client/dashbuilder-renderers/dashbuilder-renderer-google/src/main/java/org/dashbuilder/renderer/google/client/GoogleTableDisplayer.java | GoogleTableDisplayer.onFilterEnabled | @Override
public void onFilterEnabled(Displayer displayer, DataSetGroup groupOp) {
currentPage = 1;
super.onFilterEnabled(displayer, groupOp);
} | java | @Override
public void onFilterEnabled(Displayer displayer, DataSetGroup groupOp) {
currentPage = 1;
super.onFilterEnabled(displayer, groupOp);
} | [
"@",
"Override",
"public",
"void",
"onFilterEnabled",
"(",
"Displayer",
"displayer",
",",
"DataSetGroup",
"groupOp",
")",
"{",
"currentPage",
"=",
"1",
";",
"super",
".",
"onFilterEnabled",
"(",
"displayer",
",",
"groupOp",
")",
";",
"}"
] | Reset the current navigation status on filter requests from external displayers. | [
"Reset",
"the",
"current",
"navigation",
"status",
"on",
"filter",
"requests",
"from",
"external",
"displayers",
"."
] | 50ef88210726b4f2f33f1a82eaf0f542e38dedd9 | https://github.com/dashbuilder/dashbuilder/blob/50ef88210726b4f2f33f1a82eaf0f542e38dedd9/dashbuilder-client/dashbuilder-renderers/dashbuilder-renderer-google/src/main/java/org/dashbuilder/renderer/google/client/GoogleTableDisplayer.java#L207-L211 |
100,859 | dashbuilder/dashbuilder | dashbuilder-client/dashbuilder-widgets/src/main/java/org/dashbuilder/client/widgets/dataset/editor/column/ColumnListEditor.java | ColumnListEditor.onValueRestricted | @Override
public void onValueRestricted(final String value) {
this.restrictedColumns.add(value);
setEditorEnabled(value, false, DataSetEditorConstants.INSTANCE.columnIsUsedInFilter());
} | java | @Override
public void onValueRestricted(final String value) {
this.restrictedColumns.add(value);
setEditorEnabled(value, false, DataSetEditorConstants.INSTANCE.columnIsUsedInFilter());
} | [
"@",
"Override",
"public",
"void",
"onValueRestricted",
"(",
"final",
"String",
"value",
")",
"{",
"this",
".",
"restrictedColumns",
".",
"add",
"(",
"value",
")",
";",
"setEditorEnabled",
"(",
"value",
",",
"false",
",",
"DataSetEditorConstants",
".",
"INSTAN... | Set the column that cannot be removed from the list, as it's used by the filter.
@param value The column id. | [
"Set",
"the",
"column",
"that",
"cannot",
"be",
"removed",
"from",
"the",
"list",
"as",
"it",
"s",
"used",
"by",
"the",
"filter",
"."
] | 50ef88210726b4f2f33f1a82eaf0f542e38dedd9 | https://github.com/dashbuilder/dashbuilder/blob/50ef88210726b4f2f33f1a82eaf0f542e38dedd9/dashbuilder-client/dashbuilder-widgets/src/main/java/org/dashbuilder/client/widgets/dataset/editor/column/ColumnListEditor.java#L112-L116 |
100,860 | dashbuilder/dashbuilder | dashbuilder-client/dashbuilder-widgets/src/main/java/org/dashbuilder/client/widgets/dataset/editor/column/ColumnListEditor.java | ColumnListEditor.onValueUnRestricted | @Override
public void onValueUnRestricted(final String value) {
this.restrictedColumns.remove(value);
// Check single column used in data set -> it cannot be unselected.
if (listEditor.getList().size() == 1) {
setEditorEnabled(0 ,false, DataSetEditorConstants.INSTANCE.da... | java | @Override
public void onValueUnRestricted(final String value) {
this.restrictedColumns.remove(value);
// Check single column used in data set -> it cannot be unselected.
if (listEditor.getList().size() == 1) {
setEditorEnabled(0 ,false, DataSetEditorConstants.INSTANCE.da... | [
"@",
"Override",
"public",
"void",
"onValueUnRestricted",
"(",
"final",
"String",
"value",
")",
"{",
"this",
".",
"restrictedColumns",
".",
"remove",
"(",
"value",
")",
";",
"// Check single column used in data set -> it cannot be unselected.",
"if",
"(",
"listEditor",
... | Set the column that can be removed again from the list, as it's no longer used by the filter.
@param value The column id. | [
"Set",
"the",
"column",
"that",
"can",
"be",
"removed",
"again",
"from",
"the",
"list",
"as",
"it",
"s",
"no",
"longer",
"used",
"by",
"the",
"filter",
"."
] | 50ef88210726b4f2f33f1a82eaf0f542e38dedd9 | https://github.com/dashbuilder/dashbuilder/blob/50ef88210726b4f2f33f1a82eaf0f542e38dedd9/dashbuilder-client/dashbuilder-widgets/src/main/java/org/dashbuilder/client/widgets/dataset/editor/column/ColumnListEditor.java#L122-L132 |
100,861 | dashbuilder/dashbuilder | dashbuilder-client/dashbuilder-widgets/src/main/java/org/dashbuilder/client/widgets/dataset/editor/column/ColumnListEditor.java | ColumnListEditor.checkSingleColumnEditorDisabled | private boolean checkSingleColumnEditorDisabled() {
final int size = listEditor.getList().size();
final boolean hasEditors = !listEditor.getEditors().isEmpty();
if (size == 1 && hasEditors) {
setEditorEnabled(0 ,false, DataSetEditorConstants.INSTANCE.dataSetMustHaveAtLeastOneColumn()... | java | private boolean checkSingleColumnEditorDisabled() {
final int size = listEditor.getList().size();
final boolean hasEditors = !listEditor.getEditors().isEmpty();
if (size == 1 && hasEditors) {
setEditorEnabled(0 ,false, DataSetEditorConstants.INSTANCE.dataSetMustHaveAtLeastOneColumn()... | [
"private",
"boolean",
"checkSingleColumnEditorDisabled",
"(",
")",
"{",
"final",
"int",
"size",
"=",
"listEditor",
".",
"getList",
"(",
")",
".",
"size",
"(",
")",
";",
"final",
"boolean",
"hasEditors",
"=",
"!",
"listEditor",
".",
"getEditors",
"(",
")",
... | Checks that if only single column used in data set -> it cannot be unselected. | [
"Checks",
"that",
"if",
"only",
"single",
"column",
"used",
"in",
"data",
"set",
"-",
">",
"it",
"cannot",
"be",
"unselected",
"."
] | 50ef88210726b4f2f33f1a82eaf0f542e38dedd9 | https://github.com/dashbuilder/dashbuilder/blob/50ef88210726b4f2f33f1a82eaf0f542e38dedd9/dashbuilder-client/dashbuilder-widgets/src/main/java/org/dashbuilder/client/widgets/dataset/editor/column/ColumnListEditor.java#L282-L290 |
100,862 | dashbuilder/dashbuilder | dashbuilder-client/dashbuilder-widgets/src/main/java/org/dashbuilder/client/widgets/dataset/editor/column/ColumnListEditor.java | ColumnListEditor.checkMultipleColumnsEditorEnabled | private boolean checkMultipleColumnsEditorEnabled() {
final int size = listEditor.getList().size();
if (size == 2 && !listEditor.getEditors().isEmpty()) {
final String cId = listEditor.getEditors().get(0).id().getValue();
if (!restrictedColumns.contains(cId)) {
se... | java | private boolean checkMultipleColumnsEditorEnabled() {
final int size = listEditor.getList().size();
if (size == 2 && !listEditor.getEditors().isEmpty()) {
final String cId = listEditor.getEditors().get(0).id().getValue();
if (!restrictedColumns.contains(cId)) {
se... | [
"private",
"boolean",
"checkMultipleColumnsEditorEnabled",
"(",
")",
"{",
"final",
"int",
"size",
"=",
"listEditor",
".",
"getList",
"(",
")",
".",
"size",
"(",
")",
";",
"if",
"(",
"size",
"==",
"2",
"&&",
"!",
"listEditor",
".",
"getEditors",
"(",
")",... | Checks that if multiple columns are used in data set -> the column editors must be enabed, if the columns are not are restricted. | [
"Checks",
"that",
"if",
"multiple",
"columns",
"are",
"used",
"in",
"data",
"set",
"-",
">",
"the",
"column",
"editors",
"must",
"be",
"enabed",
"if",
"the",
"columns",
"are",
"not",
"are",
"restricted",
"."
] | 50ef88210726b4f2f33f1a82eaf0f542e38dedd9 | https://github.com/dashbuilder/dashbuilder/blob/50ef88210726b4f2f33f1a82eaf0f542e38dedd9/dashbuilder-client/dashbuilder-widgets/src/main/java/org/dashbuilder/client/widgets/dataset/editor/column/ColumnListEditor.java#L295-L305 |
100,863 | dashbuilder/dashbuilder | dashbuilder-shared/dashbuilder-displayer-api/src/main/java/org/dashbuilder/displayer/DisplayerSettings.java | DisplayerSettings.setDisplayerSetting | public void setDisplayerSetting( DisplayerAttributeDef displayerAttributeDef, String value ) {
settings.put(getSettingPath(displayerAttributeDef), value);
} | java | public void setDisplayerSetting( DisplayerAttributeDef displayerAttributeDef, String value ) {
settings.put(getSettingPath(displayerAttributeDef), value);
} | [
"public",
"void",
"setDisplayerSetting",
"(",
"DisplayerAttributeDef",
"displayerAttributeDef",
",",
"String",
"value",
")",
"{",
"settings",
".",
"put",
"(",
"getSettingPath",
"(",
"displayerAttributeDef",
")",
",",
"value",
")",
";",
"}"
] | 'Generic' setter method | [
"Generic",
"setter",
"method"
] | 50ef88210726b4f2f33f1a82eaf0f542e38dedd9 | https://github.com/dashbuilder/dashbuilder/blob/50ef88210726b4f2f33f1a82eaf0f542e38dedd9/dashbuilder-shared/dashbuilder-displayer-api/src/main/java/org/dashbuilder/displayer/DisplayerSettings.java#L224-L226 |
100,864 | dashbuilder/dashbuilder | dashbuilder-shared/dashbuilder-displayer-api/src/main/java/org/dashbuilder/displayer/DisplayerSettings.java | DisplayerSettings.removeDisplayerSetting | public void removeDisplayerSetting( DisplayerAttributeGroupDef displayerAttributeGroup ) {
for (DisplayerAttributeDef attributeDef : displayerAttributeGroup.getChildren()) {
settings.remove(getSettingPath(attributeDef));
}
} | java | public void removeDisplayerSetting( DisplayerAttributeGroupDef displayerAttributeGroup ) {
for (DisplayerAttributeDef attributeDef : displayerAttributeGroup.getChildren()) {
settings.remove(getSettingPath(attributeDef));
}
} | [
"public",
"void",
"removeDisplayerSetting",
"(",
"DisplayerAttributeGroupDef",
"displayerAttributeGroup",
")",
"{",
"for",
"(",
"DisplayerAttributeDef",
"attributeDef",
":",
"displayerAttributeGroup",
".",
"getChildren",
"(",
")",
")",
"{",
"settings",
".",
"remove",
"(... | 'Generic' remove method | [
"Generic",
"remove",
"method"
] | 50ef88210726b4f2f33f1a82eaf0f542e38dedd9 | https://github.com/dashbuilder/dashbuilder/blob/50ef88210726b4f2f33f1a82eaf0f542e38dedd9/dashbuilder-shared/dashbuilder-displayer-api/src/main/java/org/dashbuilder/displayer/DisplayerSettings.java#L239-L243 |
100,865 | dashbuilder/dashbuilder | dashbuilder-client/dashbuilder-renderers/dashbuilder-renderer-google/src/main/java/org/dashbuilder/renderer/google/client/GoogleDisplayerView.java | GoogleDisplayerView.draw | @Override
public void draw() {
if (googleRenderer == null) {
getPresenter().showError(new ClientRuntimeError("Google renderer not set"));
}
else if (!getPresenter().isDrawn()) {
List<Displayer> displayerList = new ArrayList<Displayer>();
displayerList.ad... | java | @Override
public void draw() {
if (googleRenderer == null) {
getPresenter().showError(new ClientRuntimeError("Google renderer not set"));
}
else if (!getPresenter().isDrawn()) {
List<Displayer> displayerList = new ArrayList<Displayer>();
displayerList.ad... | [
"@",
"Override",
"public",
"void",
"draw",
"(",
")",
"{",
"if",
"(",
"googleRenderer",
"==",
"null",
")",
"{",
"getPresenter",
"(",
")",
".",
"showError",
"(",
"new",
"ClientRuntimeError",
"(",
"\"Google renderer not set\"",
")",
")",
";",
"}",
"else",
"if... | GCharts drawing is performed asynchronously | [
"GCharts",
"drawing",
"is",
"performed",
"asynchronously"
] | 50ef88210726b4f2f33f1a82eaf0f542e38dedd9 | https://github.com/dashbuilder/dashbuilder/blob/50ef88210726b4f2f33f1a82eaf0f542e38dedd9/dashbuilder-client/dashbuilder-renderers/dashbuilder-renderer-google/src/main/java/org/dashbuilder/renderer/google/client/GoogleDisplayerView.java#L79-L89 |
100,866 | dashbuilder/dashbuilder | dashbuilder-client/dashbuilder-widgets/src/main/java/org/dashbuilder/client/widgets/dataset/editor/DataSetDefPreviewTable.java | DataSetDefPreviewTable.draw | void draw(final DisplayerListener displayerListener) {
tableDisplayer.addListener(displayerListener);
view.setDisplayer(tableDisplayer);
tableDisplayer.draw();
} | java | void draw(final DisplayerListener displayerListener) {
tableDisplayer.addListener(displayerListener);
view.setDisplayer(tableDisplayer);
tableDisplayer.draw();
} | [
"void",
"draw",
"(",
"final",
"DisplayerListener",
"displayerListener",
")",
"{",
"tableDisplayer",
".",
"addListener",
"(",
"displayerListener",
")",
";",
"view",
".",
"setDisplayer",
"(",
"tableDisplayer",
")",
";",
"tableDisplayer",
".",
"draw",
"(",
")",
";"... | Show the table displayer. | [
"Show",
"the",
"table",
"displayer",
"."
] | 50ef88210726b4f2f33f1a82eaf0f542e38dedd9 | https://github.com/dashbuilder/dashbuilder/blob/50ef88210726b4f2f33f1a82eaf0f542e38dedd9/dashbuilder-client/dashbuilder-widgets/src/main/java/org/dashbuilder/client/widgets/dataset/editor/DataSetDefPreviewTable.java#L158-L162 |
100,867 | dashbuilder/dashbuilder | dashbuilder-client/dashbuilder-navigation-client/src/main/java/org/dashbuilder/client/navigation/plugin/PerspectivePluginManager.java | PerspectivePluginManager.onPlugInAdded | public void onPlugInAdded(@Observes final PluginAdded event) {
Plugin plugin = event.getPlugin();
if (isRuntimePerspective(plugin)) {
pluginMap.put(plugin.getName(), plugin);
perspectivesChangedEvent.fire(new PerspectivePluginsChangedEvent());
}
} | java | public void onPlugInAdded(@Observes final PluginAdded event) {
Plugin plugin = event.getPlugin();
if (isRuntimePerspective(plugin)) {
pluginMap.put(plugin.getName(), plugin);
perspectivesChangedEvent.fire(new PerspectivePluginsChangedEvent());
}
} | [
"public",
"void",
"onPlugInAdded",
"(",
"@",
"Observes",
"final",
"PluginAdded",
"event",
")",
"{",
"Plugin",
"plugin",
"=",
"event",
".",
"getPlugin",
"(",
")",
";",
"if",
"(",
"isRuntimePerspective",
"(",
"plugin",
")",
")",
"{",
"pluginMap",
".",
"put",... | Sync up both the internals plugin & widget registry | [
"Sync",
"up",
"both",
"the",
"internals",
"plugin",
"&",
"widget",
"registry"
] | 50ef88210726b4f2f33f1a82eaf0f542e38dedd9 | https://github.com/dashbuilder/dashbuilder/blob/50ef88210726b4f2f33f1a82eaf0f542e38dedd9/dashbuilder-client/dashbuilder-navigation-client/src/main/java/org/dashbuilder/client/navigation/plugin/PerspectivePluginManager.java#L180-L186 |
100,868 | dashbuilder/dashbuilder | dashbuilder-client/dashbuilder-widgets/src/main/java/org/dashbuilder/client/widgets/dataset/editor/workflow/DataSetEditorWorkflowFactory.java | DataSetEditorWorkflowFactory.edit | public DataSetEditWorkflow edit(final DataSetProviderType type) {
final boolean isSQL = type != null && DataSetProviderType.SQL.equals(type);
final boolean isBean = type != null && DataSetProviderType.BEAN.equals(type);
final boolean isCSV = type != null && DataSetProviderType.CSV.equals(type);
... | java | public DataSetEditWorkflow edit(final DataSetProviderType type) {
final boolean isSQL = type != null && DataSetProviderType.SQL.equals(type);
final boolean isBean = type != null && DataSetProviderType.BEAN.equals(type);
final boolean isCSV = type != null && DataSetProviderType.CSV.equals(type);
... | [
"public",
"DataSetEditWorkflow",
"edit",
"(",
"final",
"DataSetProviderType",
"type",
")",
"{",
"final",
"boolean",
"isSQL",
"=",
"type",
"!=",
"null",
"&&",
"DataSetProviderType",
".",
"SQL",
".",
"equals",
"(",
"type",
")",
";",
"final",
"boolean",
"isBean",... | Obtain the bean for editing a data set definition for a given type.
@param type The data set definition provider type to edit.
@return The workflow instance. | [
"Obtain",
"the",
"bean",
"for",
"editing",
"a",
"data",
"set",
"definition",
"for",
"a",
"given",
"type",
"."
] | 50ef88210726b4f2f33f1a82eaf0f542e38dedd9 | https://github.com/dashbuilder/dashbuilder/blob/50ef88210726b4f2f33f1a82eaf0f542e38dedd9/dashbuilder-client/dashbuilder-widgets/src/main/java/org/dashbuilder/client/widgets/dataset/editor/workflow/DataSetEditorWorkflowFactory.java#L35-L51 |
100,869 | dashbuilder/dashbuilder | dashbuilder-client/dashbuilder-common-client/src/main/java/org/dashbuilder/common/client/StringUtils.java | StringUtils.join | public static String join(Collection strings, String delimiter) {
StringBuilder builder = new StringBuilder();
Iterator<String> iter = strings.iterator();
while (iter.hasNext()) {
builder.append(iter.next());
if (!iter.hasNext()) {
break;
}
... | java | public static String join(Collection strings, String delimiter) {
StringBuilder builder = new StringBuilder();
Iterator<String> iter = strings.iterator();
while (iter.hasNext()) {
builder.append(iter.next());
if (!iter.hasNext()) {
break;
}
... | [
"public",
"static",
"String",
"join",
"(",
"Collection",
"strings",
",",
"String",
"delimiter",
")",
"{",
"StringBuilder",
"builder",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"Iterator",
"<",
"String",
">",
"iter",
"=",
"strings",
".",
"iterator",
"(",
... | Joins a collection of string with a given delimiter.
@param strings The collection of strings to join.
@param delimiter The delimiter to use to join them.
@return The string built by joining the string with the delimiter. | [
"Joins",
"a",
"collection",
"of",
"string",
"with",
"a",
"given",
"delimiter",
"."
] | 50ef88210726b4f2f33f1a82eaf0f542e38dedd9 | https://github.com/dashbuilder/dashbuilder/blob/50ef88210726b4f2f33f1a82eaf0f542e38dedd9/dashbuilder-client/dashbuilder-common-client/src/main/java/org/dashbuilder/common/client/StringUtils.java#L120-L131 |
100,870 | dashbuilder/dashbuilder | dashbuilder-client/dashbuilder-displayer-client/src/main/java/org/dashbuilder/displayer/client/AbstractDisplayer.java | AbstractDisplayer.draw | @Override
public void draw() {
if (displayerSettings == null) {
getView().errorMissingSettings();
}
else if (dataSetHandler == null) {
getView().errorMissingHandler();
}
else if (!isDrawn()) {
try {
drawn = true;
... | java | @Override
public void draw() {
if (displayerSettings == null) {
getView().errorMissingSettings();
}
else if (dataSetHandler == null) {
getView().errorMissingHandler();
}
else if (!isDrawn()) {
try {
drawn = true;
... | [
"@",
"Override",
"public",
"void",
"draw",
"(",
")",
"{",
"if",
"(",
"displayerSettings",
"==",
"null",
")",
"{",
"getView",
"(",
")",
".",
"errorMissingSettings",
"(",
")",
";",
"}",
"else",
"if",
"(",
"dataSetHandler",
"==",
"null",
")",
"{",
"getVie... | Draw the displayer by executing first the lookup call to retrieve the target data set | [
"Draw",
"the",
"displayer",
"by",
"executing",
"first",
"the",
"lookup",
"call",
"to",
"retrieve",
"the",
"target",
"data",
"set"
] | 50ef88210726b4f2f33f1a82eaf0f542e38dedd9 | https://github.com/dashbuilder/dashbuilder/blob/50ef88210726b4f2f33f1a82eaf0f542e38dedd9/dashbuilder-client/dashbuilder-displayer-client/src/main/java/org/dashbuilder/displayer/client/AbstractDisplayer.java#L234-L285 |
100,871 | dashbuilder/dashbuilder | dashbuilder-client/dashbuilder-displayer-client/src/main/java/org/dashbuilder/displayer/client/AbstractDisplayer.java | AbstractDisplayer.redraw | @Override
public void redraw() {
if (!isDrawn()) {
draw();
} else {
try {
beforeLoad();
beforeDataSetLookup();
dataSetHandler.lookupDataSet(new DataSetReadyCallback() {
public void callback(DataSet result) {
... | java | @Override
public void redraw() {
if (!isDrawn()) {
draw();
} else {
try {
beforeLoad();
beforeDataSetLookup();
dataSetHandler.lookupDataSet(new DataSetReadyCallback() {
public void callback(DataSet result) {
... | [
"@",
"Override",
"public",
"void",
"redraw",
"(",
")",
"{",
"if",
"(",
"!",
"isDrawn",
"(",
")",
")",
"{",
"draw",
"(",
")",
";",
"}",
"else",
"{",
"try",
"{",
"beforeLoad",
"(",
")",
";",
"beforeDataSetLookup",
"(",
")",
";",
"dataSetHandler",
"."... | Just reload the data set and make the current displayer to redraw. | [
"Just",
"reload",
"the",
"data",
"set",
"and",
"make",
"the",
"current",
"displayer",
"to",
"redraw",
"."
] | 50ef88210726b4f2f33f1a82eaf0f542e38dedd9 | https://github.com/dashbuilder/dashbuilder/blob/50ef88210726b4f2f33f1a82eaf0f542e38dedd9/dashbuilder-client/dashbuilder-displayer-client/src/main/java/org/dashbuilder/displayer/client/AbstractDisplayer.java#L290-L328 |
100,872 | dashbuilder/dashbuilder | dashbuilder-client/dashbuilder-displayer-client/src/main/java/org/dashbuilder/displayer/client/AbstractDisplayer.java | AbstractDisplayer.filterIntervals | public List<Interval> filterIntervals(String columnId) {
List<Interval> selected = columnSelectionMap.get(columnId);
if (selected == null) {
return new ArrayList<>();
}
return selected;
} | java | public List<Interval> filterIntervals(String columnId) {
List<Interval> selected = columnSelectionMap.get(columnId);
if (selected == null) {
return new ArrayList<>();
}
return selected;
} | [
"public",
"List",
"<",
"Interval",
">",
"filterIntervals",
"(",
"String",
"columnId",
")",
"{",
"List",
"<",
"Interval",
">",
"selected",
"=",
"columnSelectionMap",
".",
"get",
"(",
"columnId",
")",
";",
"if",
"(",
"selected",
"==",
"null",
")",
"{",
"re... | Get the current filter intervals for the given data set column.
@param columnId The column identifier.
@return A list of intervals. | [
"Get",
"the",
"current",
"filter",
"intervals",
"for",
"the",
"given",
"data",
"set",
"column",
"."
] | 50ef88210726b4f2f33f1a82eaf0f542e38dedd9 | https://github.com/dashbuilder/dashbuilder/blob/50ef88210726b4f2f33f1a82eaf0f542e38dedd9/dashbuilder-client/dashbuilder-displayer-client/src/main/java/org/dashbuilder/displayer/client/AbstractDisplayer.java#L538-L544 |
100,873 | dashbuilder/dashbuilder | dashbuilder-client/dashbuilder-displayer-client/src/main/java/org/dashbuilder/displayer/client/AbstractDisplayer.java | AbstractDisplayer.filterInterval | public Interval filterInterval(String columnId, int idx) {
List<Interval> selected = columnSelectionMap.get(columnId);
if (selected != null && !selected.isEmpty()) {
for (Interval interval : selected) {
if (interval.getIndex() == idx) {
return interval;
... | java | public Interval filterInterval(String columnId, int idx) {
List<Interval> selected = columnSelectionMap.get(columnId);
if (selected != null && !selected.isEmpty()) {
for (Interval interval : selected) {
if (interval.getIndex() == idx) {
return interval;
... | [
"public",
"Interval",
"filterInterval",
"(",
"String",
"columnId",
",",
"int",
"idx",
")",
"{",
"List",
"<",
"Interval",
">",
"selected",
"=",
"columnSelectionMap",
".",
"get",
"(",
"columnId",
")",
";",
"if",
"(",
"selected",
"!=",
"null",
"&&",
"!",
"s... | Get the current filter interval matching the specified index
@param columnId The column identifier.
@param idx The index of the interval
@return The target interval matching the specified parameters or null if it does not exist. | [
"Get",
"the",
"current",
"filter",
"interval",
"matching",
"the",
"specified",
"index"
] | 50ef88210726b4f2f33f1a82eaf0f542e38dedd9 | https://github.com/dashbuilder/dashbuilder/blob/50ef88210726b4f2f33f1a82eaf0f542e38dedd9/dashbuilder-client/dashbuilder-displayer-client/src/main/java/org/dashbuilder/displayer/client/AbstractDisplayer.java#L553-L563 |
100,874 | dashbuilder/dashbuilder | dashbuilder-client/dashbuilder-displayer-client/src/main/java/org/dashbuilder/displayer/client/AbstractDisplayer.java | AbstractDisplayer.filterIndexes | public List<Integer> filterIndexes(String columnId) {
List<Integer> result = new ArrayList<>();
List<Interval> selected = columnSelectionMap.get(columnId);
if (selected == null) {
return result;
}
for (Interval interval : selected) {
result.add(interval.ge... | java | public List<Integer> filterIndexes(String columnId) {
List<Integer> result = new ArrayList<>();
List<Interval> selected = columnSelectionMap.get(columnId);
if (selected == null) {
return result;
}
for (Interval interval : selected) {
result.add(interval.ge... | [
"public",
"List",
"<",
"Integer",
">",
"filterIndexes",
"(",
"String",
"columnId",
")",
"{",
"List",
"<",
"Integer",
">",
"result",
"=",
"new",
"ArrayList",
"<>",
"(",
")",
";",
"List",
"<",
"Interval",
">",
"selected",
"=",
"columnSelectionMap",
".",
"g... | Get the current filter selected interval indexes for the given data set column.
@param columnId The column identifier.
@return A list of interval indexes | [
"Get",
"the",
"current",
"filter",
"selected",
"interval",
"indexes",
"for",
"the",
"given",
"data",
"set",
"column",
"."
] | 50ef88210726b4f2f33f1a82eaf0f542e38dedd9 | https://github.com/dashbuilder/dashbuilder/blob/50ef88210726b4f2f33f1a82eaf0f542e38dedd9/dashbuilder-client/dashbuilder-displayer-client/src/main/java/org/dashbuilder/displayer/client/AbstractDisplayer.java#L571-L581 |
100,875 | dashbuilder/dashbuilder | dashbuilder-client/dashbuilder-displayer-client/src/main/java/org/dashbuilder/displayer/client/AbstractDisplayer.java | AbstractDisplayer.filterUpdate | public void filterUpdate(String columnId, int row, Integer maxSelections) {
if (displayerSettings.isFilterEnabled()) {
List<Interval> selectedIntervals = columnSelectionMap.get(columnId);
Interval intervalFiltered = filterInterval(columnId, row);
// Existing interval reset
... | java | public void filterUpdate(String columnId, int row, Integer maxSelections) {
if (displayerSettings.isFilterEnabled()) {
List<Interval> selectedIntervals = columnSelectionMap.get(columnId);
Interval intervalFiltered = filterInterval(columnId, row);
// Existing interval reset
... | [
"public",
"void",
"filterUpdate",
"(",
"String",
"columnId",
",",
"int",
"row",
",",
"Integer",
"maxSelections",
")",
"{",
"if",
"(",
"displayerSettings",
".",
"isFilterEnabled",
"(",
")",
")",
"{",
"List",
"<",
"Interval",
">",
"selectedIntervals",
"=",
"co... | Updates the current filter values for the given data set column.
@param columnId The column to filter for.
@param row The row selected.
@param maxSelections The number of different selectable values available. | [
"Updates",
"the",
"current",
"filter",
"values",
"for",
"the",
"given",
"data",
"set",
"column",
"."
] | 50ef88210726b4f2f33f1a82eaf0f542e38dedd9 | https://github.com/dashbuilder/dashbuilder/blob/50ef88210726b4f2f33f1a82eaf0f542e38dedd9/dashbuilder-client/dashbuilder-displayer-client/src/main/java/org/dashbuilder/displayer/client/AbstractDisplayer.java#L600-L643 |
100,876 | dashbuilder/dashbuilder | dashbuilder-client/dashbuilder-displayer-client/src/main/java/org/dashbuilder/displayer/client/AbstractDisplayer.java | AbstractDisplayer.filterApply | public void filterApply(String columnId, List<Interval> intervalList) {
if (displayerSettings.isFilterEnabled()) {
// For string column filters, init the group interval selection operation.
DataSetGroup groupOp = dataSetHandler.getGroupOperation(columnId);
groupOp.setSelecte... | java | public void filterApply(String columnId, List<Interval> intervalList) {
if (displayerSettings.isFilterEnabled()) {
// For string column filters, init the group interval selection operation.
DataSetGroup groupOp = dataSetHandler.getGroupOperation(columnId);
groupOp.setSelecte... | [
"public",
"void",
"filterApply",
"(",
"String",
"columnId",
",",
"List",
"<",
"Interval",
">",
"intervalList",
")",
"{",
"if",
"(",
"displayerSettings",
".",
"isFilterEnabled",
"(",
")",
")",
"{",
"// For string column filters, init the group interval selection operatio... | Filter the values of the given column.
@param columnId The name of the column to filter.
@param intervalList A list of interval selections to filter for. | [
"Filter",
"the",
"values",
"of",
"the",
"given",
"column",
"."
] | 50ef88210726b4f2f33f1a82eaf0f542e38dedd9 | https://github.com/dashbuilder/dashbuilder/blob/50ef88210726b4f2f33f1a82eaf0f542e38dedd9/dashbuilder-client/dashbuilder-displayer-client/src/main/java/org/dashbuilder/displayer/client/AbstractDisplayer.java#L651-L670 |
100,877 | dashbuilder/dashbuilder | dashbuilder-client/dashbuilder-displayer-client/src/main/java/org/dashbuilder/displayer/client/AbstractDisplayer.java | AbstractDisplayer.filterApply | public void filterApply(DataSetFilter filter) {
if (displayerSettings.isFilterEnabled()) {
this.currentFilter = filter;
// Notify to those interested parties the selection event.
if (displayerSettings.isFilterNotificationEnabled()) {
for (DisplayerListener l... | java | public void filterApply(DataSetFilter filter) {
if (displayerSettings.isFilterEnabled()) {
this.currentFilter = filter;
// Notify to those interested parties the selection event.
if (displayerSettings.isFilterNotificationEnabled()) {
for (DisplayerListener l... | [
"public",
"void",
"filterApply",
"(",
"DataSetFilter",
"filter",
")",
"{",
"if",
"(",
"displayerSettings",
".",
"isFilterEnabled",
"(",
")",
")",
"{",
"this",
".",
"currentFilter",
"=",
"filter",
";",
"// Notify to those interested parties the selection event.",
"if",... | Apply the given filter
@param filter A filter | [
"Apply",
"the",
"given",
"filter"
] | 50ef88210726b4f2f33f1a82eaf0f542e38dedd9 | https://github.com/dashbuilder/dashbuilder/blob/50ef88210726b4f2f33f1a82eaf0f542e38dedd9/dashbuilder-client/dashbuilder-displayer-client/src/main/java/org/dashbuilder/displayer/client/AbstractDisplayer.java#L677-L694 |
100,878 | dashbuilder/dashbuilder | dashbuilder-client/dashbuilder-displayer-client/src/main/java/org/dashbuilder/displayer/client/AbstractDisplayer.java | AbstractDisplayer.filterUpdate | public void filterUpdate(DataSetFilter filter) {
if (displayerSettings.isFilterEnabled()) {
DataSetFilter oldFilter = currentFilter;
this.currentFilter = filter;
// Notify to those interested parties the selection event.
if (displayerSettings.isFilterNotificatio... | java | public void filterUpdate(DataSetFilter filter) {
if (displayerSettings.isFilterEnabled()) {
DataSetFilter oldFilter = currentFilter;
this.currentFilter = filter;
// Notify to those interested parties the selection event.
if (displayerSettings.isFilterNotificatio... | [
"public",
"void",
"filterUpdate",
"(",
"DataSetFilter",
"filter",
")",
"{",
"if",
"(",
"displayerSettings",
".",
"isFilterEnabled",
"(",
")",
")",
"{",
"DataSetFilter",
"oldFilter",
"=",
"currentFilter",
";",
"this",
".",
"currentFilter",
"=",
"filter",
";",
"... | Updates the current filter values for the given data set column. Any previous filter is reset.
@param filter A filter | [
"Updates",
"the",
"current",
"filter",
"values",
"for",
"the",
"given",
"data",
"set",
"column",
".",
"Any",
"previous",
"filter",
"is",
"reset",
"."
] | 50ef88210726b4f2f33f1a82eaf0f542e38dedd9 | https://github.com/dashbuilder/dashbuilder/blob/50ef88210726b4f2f33f1a82eaf0f542e38dedd9/dashbuilder-client/dashbuilder-displayer-client/src/main/java/org/dashbuilder/displayer/client/AbstractDisplayer.java#L701-L720 |
100,879 | dashbuilder/dashbuilder | dashbuilder-client/dashbuilder-displayer-client/src/main/java/org/dashbuilder/displayer/client/AbstractDisplayer.java | AbstractDisplayer.filterReset | public void filterReset(String columnId) {
if (displayerSettings.isFilterEnabled()) {
columnSelectionMap.remove(columnId);
DataSetGroup groupOp = dataSetHandler.getGroupOperation(columnId);
// Notify to those interested parties the reset event.
if (displayerSett... | java | public void filterReset(String columnId) {
if (displayerSettings.isFilterEnabled()) {
columnSelectionMap.remove(columnId);
DataSetGroup groupOp = dataSetHandler.getGroupOperation(columnId);
// Notify to those interested parties the reset event.
if (displayerSett... | [
"public",
"void",
"filterReset",
"(",
"String",
"columnId",
")",
"{",
"if",
"(",
"displayerSettings",
".",
"isFilterEnabled",
"(",
")",
")",
"{",
"columnSelectionMap",
".",
"remove",
"(",
"columnId",
")",
";",
"DataSetGroup",
"groupOp",
"=",
"dataSetHandler",
... | Clear any filter on the given column.
@param columnId The name of the column to reset. | [
"Clear",
"any",
"filter",
"on",
"the",
"given",
"column",
"."
] | 50ef88210726b4f2f33f1a82eaf0f542e38dedd9 | https://github.com/dashbuilder/dashbuilder/blob/50ef88210726b4f2f33f1a82eaf0f542e38dedd9/dashbuilder-client/dashbuilder-displayer-client/src/main/java/org/dashbuilder/displayer/client/AbstractDisplayer.java#L727-L745 |
100,880 | dashbuilder/dashbuilder | dashbuilder-client/dashbuilder-displayer-client/src/main/java/org/dashbuilder/displayer/client/AbstractDisplayer.java | AbstractDisplayer.filterReset | public void filterReset() {
if (displayerSettings.isFilterEnabled()) {
List<DataSetGroup> groupOpList = new ArrayList<DataSetGroup>();
for (String columnId : columnSelectionMap.keySet()) {
DataSetGroup groupOp = dataSetHandler.getGroupOperation(columnId);
... | java | public void filterReset() {
if (displayerSettings.isFilterEnabled()) {
List<DataSetGroup> groupOpList = new ArrayList<DataSetGroup>();
for (String columnId : columnSelectionMap.keySet()) {
DataSetGroup groupOp = dataSetHandler.getGroupOperation(columnId);
... | [
"public",
"void",
"filterReset",
"(",
")",
"{",
"if",
"(",
"displayerSettings",
".",
"isFilterEnabled",
"(",
")",
")",
"{",
"List",
"<",
"DataSetGroup",
">",
"groupOpList",
"=",
"new",
"ArrayList",
"<",
"DataSetGroup",
">",
"(",
")",
";",
"for",
"(",
"St... | Clear any filter. | [
"Clear",
"any",
"filter",
"."
] | 50ef88210726b4f2f33f1a82eaf0f542e38dedd9 | https://github.com/dashbuilder/dashbuilder/blob/50ef88210726b4f2f33f1a82eaf0f542e38dedd9/dashbuilder-client/dashbuilder-displayer-client/src/main/java/org/dashbuilder/displayer/client/AbstractDisplayer.java#L750-L792 |
100,881 | dashbuilder/dashbuilder | dashbuilder-webapp/src/main/java/org/dashbuilder/client/ShowcaseEntryPoint.java | ShowcaseEntryPoint.hideLoadingPopup | private void hideLoadingPopup() {
final Element e = RootPanel.get("loading").getElement();
new Animation() {
@Override
protected void onUpdate( double progress ) {
e.getStyle().setOpacity( 1.0 - progress );
}
@Override
protec... | java | private void hideLoadingPopup() {
final Element e = RootPanel.get("loading").getElement();
new Animation() {
@Override
protected void onUpdate( double progress ) {
e.getStyle().setOpacity( 1.0 - progress );
}
@Override
protec... | [
"private",
"void",
"hideLoadingPopup",
"(",
")",
"{",
"final",
"Element",
"e",
"=",
"RootPanel",
".",
"get",
"(",
"\"loading\"",
")",
".",
"getElement",
"(",
")",
";",
"new",
"Animation",
"(",
")",
"{",
"@",
"Override",
"protected",
"void",
"onUpdate",
"... | Fade out the "Loading application" pop-up | [
"Fade",
"out",
"the",
"Loading",
"application",
"pop",
"-",
"up"
] | 50ef88210726b4f2f33f1a82eaf0f542e38dedd9 | https://github.com/dashbuilder/dashbuilder/blob/50ef88210726b4f2f33f1a82eaf0f542e38dedd9/dashbuilder-webapp/src/main/java/org/dashbuilder/client/ShowcaseEntryPoint.java#L149-L164 |
100,882 | dashbuilder/dashbuilder | dashbuilder-client/dashbuilder-renderers/dashbuilder-renderer-chartjs/src/main/java/org/dashbuilder/renderer/chartjs/lib/Chart.java | Chart.getSnapshot | public Image getSnapshot(){
String code= getBase64Image(nativeCanvas);
if(code == null)
return null;
Image image = new Image(code);
return image;
} | java | public Image getSnapshot(){
String code= getBase64Image(nativeCanvas);
if(code == null)
return null;
Image image = new Image(code);
return image;
} | [
"public",
"Image",
"getSnapshot",
"(",
")",
"{",
"String",
"code",
"=",
"getBase64Image",
"(",
"nativeCanvas",
")",
";",
"if",
"(",
"code",
"==",
"null",
")",
"return",
"null",
";",
"Image",
"image",
"=",
"new",
"Image",
"(",
"code",
")",
";",
"return"... | Creates snapshot of current state of chart as image
@return Image object or null if Chart not rendered (or in progress) | [
"Creates",
"snapshot",
"of",
"current",
"state",
"of",
"chart",
"as",
"image"
] | 50ef88210726b4f2f33f1a82eaf0f542e38dedd9 | https://github.com/dashbuilder/dashbuilder/blob/50ef88210726b4f2f33f1a82eaf0f542e38dedd9/dashbuilder-client/dashbuilder-renderers/dashbuilder-renderer-chartjs/src/main/java/org/dashbuilder/renderer/chartjs/lib/Chart.java#L155-L161 |
100,883 | dashbuilder/dashbuilder | dashbuilder-webapp/src/main/java/org/dashbuilder/backend/ClusterMetricsGenerator.java | ClusterMetricsGenerator.printDataSet | protected static void printDataSet(DataSet dataSet) {
final String SPACER = "| \t |";
if (dataSet == null) System.out.println("DataSet is null");
if (dataSet.getRowCount() == 0) System.out.println("DataSet is empty");
List<DataColumn> dataSetColumns = dataSet.getColumns();
int ... | java | protected static void printDataSet(DataSet dataSet) {
final String SPACER = "| \t |";
if (dataSet == null) System.out.println("DataSet is null");
if (dataSet.getRowCount() == 0) System.out.println("DataSet is empty");
List<DataColumn> dataSetColumns = dataSet.getColumns();
int ... | [
"protected",
"static",
"void",
"printDataSet",
"(",
"DataSet",
"dataSet",
")",
"{",
"final",
"String",
"SPACER",
"=",
"\"| \\t |\"",
";",
"if",
"(",
"dataSet",
"==",
"null",
")",
"System",
".",
"out",
".",
"println",
"(",
"\"DataSet is null\"",
")",
";",
"... | Helper method to print to standard output the dataset values. | [
"Helper",
"method",
"to",
"print",
"to",
"standard",
"output",
"the",
"dataset",
"values",
"."
] | 50ef88210726b4f2f33f1a82eaf0f542e38dedd9 | https://github.com/dashbuilder/dashbuilder/blob/50ef88210726b4f2f33f1a82eaf0f542e38dedd9/dashbuilder-webapp/src/main/java/org/dashbuilder/backend/ClusterMetricsGenerator.java#L307-L329 |
100,884 | dashbuilder/dashbuilder | dashbuilder-client/dashbuilder-renderers/dashbuilder-renderer-google/src/main/java/org/dashbuilder/renderer/google/client/GoogleRenderer.java | GoogleRenderer.draw | public void draw(final List<Displayer> displayerList) {
// Get the modules to load.
Set<ChartPackage> packageList = EnumSet.noneOf(ChartPackage.class);
for (Displayer displayer : displayerList) {
try {
GoogleDisplayer googleDisplayer = (GoogleDisplayer) displayer;
... | java | public void draw(final List<Displayer> displayerList) {
// Get the modules to load.
Set<ChartPackage> packageList = EnumSet.noneOf(ChartPackage.class);
for (Displayer displayer : displayerList) {
try {
GoogleDisplayer googleDisplayer = (GoogleDisplayer) displayer;
... | [
"public",
"void",
"draw",
"(",
"final",
"List",
"<",
"Displayer",
">",
"displayerList",
")",
"{",
"// Get the modules to load.",
"Set",
"<",
"ChartPackage",
">",
"packageList",
"=",
"EnumSet",
".",
"noneOf",
"(",
"ChartPackage",
".",
"class",
")",
";",
"for",
... | In Google the renderer mechanism is asynchronous. | [
"In",
"Google",
"the",
"renderer",
"mechanism",
"is",
"asynchronous",
"."
] | 50ef88210726b4f2f33f1a82eaf0f542e38dedd9 | https://github.com/dashbuilder/dashbuilder/blob/50ef88210726b4f2f33f1a82eaf0f542e38dedd9/dashbuilder-client/dashbuilder-renderers/dashbuilder-renderer-google/src/main/java/org/dashbuilder/renderer/google/client/GoogleRenderer.java#L155-L188 |
100,885 | phax/ph-ubl | ph-ubltr/src/main/java/com/helger/ubltr/UBLTRDocumentTypes.java | UBLTRDocumentTypes.getImplementationClassOfLocalName | @Nullable
public static Class <?> getImplementationClassOfLocalName (@Nullable final String sLocalName)
{
final EUBLTRDocumentType eDocType = getDocumentTypeOfLocalName (sLocalName);
return eDocType == null ? null : eDocType.getImplementationClass ();
} | java | @Nullable
public static Class <?> getImplementationClassOfLocalName (@Nullable final String sLocalName)
{
final EUBLTRDocumentType eDocType = getDocumentTypeOfLocalName (sLocalName);
return eDocType == null ? null : eDocType.getImplementationClass ();
} | [
"@",
"Nullable",
"public",
"static",
"Class",
"<",
"?",
">",
"getImplementationClassOfLocalName",
"(",
"@",
"Nullable",
"final",
"String",
"sLocalName",
")",
"{",
"final",
"EUBLTRDocumentType",
"eDocType",
"=",
"getDocumentTypeOfLocalName",
"(",
"sLocalName",
")",
"... | Get the domain object class of the passed document element local name.
@param sLocalName
The document element local name of any UBLTR document type. May be
<code>null</code>.
@return <code>null</code> if no such implementation class exists. | [
"Get",
"the",
"domain",
"object",
"class",
"of",
"the",
"passed",
"document",
"element",
"local",
"name",
"."
] | 30121914b1169d6149c601f551febf3a6ca6b4af | https://github.com/phax/ph-ubl/blob/30121914b1169d6149c601f551febf3a6ca6b4af/ph-ubltr/src/main/java/com/helger/ubltr/UBLTRDocumentTypes.java#L99-L104 |
100,886 | phax/ph-ubl | ph-ubltr/src/main/java/com/helger/ubltr/UBLTRDocumentTypes.java | UBLTRDocumentTypes.getDocumentTypeOfImplementationClass | @Nullable
public static EUBLTRDocumentType getDocumentTypeOfImplementationClass (@Nullable final Class <?> aImplClass)
{
if (aImplClass == null)
return null;
return ArrayHelper.findFirst (EUBLTRDocumentType.values (),
eDocType -> eDocType.getImplementationClass ().equ... | java | @Nullable
public static EUBLTRDocumentType getDocumentTypeOfImplementationClass (@Nullable final Class <?> aImplClass)
{
if (aImplClass == null)
return null;
return ArrayHelper.findFirst (EUBLTRDocumentType.values (),
eDocType -> eDocType.getImplementationClass ().equ... | [
"@",
"Nullable",
"public",
"static",
"EUBLTRDocumentType",
"getDocumentTypeOfImplementationClass",
"(",
"@",
"Nullable",
"final",
"Class",
"<",
"?",
">",
"aImplClass",
")",
"{",
"if",
"(",
"aImplClass",
"==",
"null",
")",
"return",
"null",
";",
"return",
"ArrayH... | Get the UBLTR document type matching the passed implementation class.
@param aImplClass
The implementation class to use. May be <code>null</code>.
@return <code>null</code> if the implementation class is <code>null</code>
or if no UBLTR document type has the specified implementation
class. | [
"Get",
"the",
"UBLTR",
"document",
"type",
"matching",
"the",
"passed",
"implementation",
"class",
"."
] | 30121914b1169d6149c601f551febf3a6ca6b4af | https://github.com/phax/ph-ubl/blob/30121914b1169d6149c601f551febf3a6ca6b4af/ph-ubltr/src/main/java/com/helger/ubltr/UBLTRDocumentTypes.java#L115-L122 |
100,887 | phax/ph-ubl | ph-ubltr/src/main/java/com/helger/ubltr/UBLTRDocumentTypes.java | UBLTRDocumentTypes.getSchemaOfLocalName | @Nullable
public static Schema getSchemaOfLocalName (@Nullable final String sLocalName)
{
final EUBLTRDocumentType eDocType = getDocumentTypeOfLocalName (sLocalName);
return eDocType == null ? null : eDocType.getSchema ();
} | java | @Nullable
public static Schema getSchemaOfLocalName (@Nullable final String sLocalName)
{
final EUBLTRDocumentType eDocType = getDocumentTypeOfLocalName (sLocalName);
return eDocType == null ? null : eDocType.getSchema ();
} | [
"@",
"Nullable",
"public",
"static",
"Schema",
"getSchemaOfLocalName",
"(",
"@",
"Nullable",
"final",
"String",
"sLocalName",
")",
"{",
"final",
"EUBLTRDocumentType",
"eDocType",
"=",
"getDocumentTypeOfLocalName",
"(",
"sLocalName",
")",
";",
"return",
"eDocType",
"... | Get the XSD Schema object for the UBLTR document type of the passed
document element local name.
@param sLocalName
The document element local name of any UBLTR document type. May be
<code>null</code>.
@return <code>null</code> if no such UBLTR document type exists. | [
"Get",
"the",
"XSD",
"Schema",
"object",
"for",
"the",
"UBLTR",
"document",
"type",
"of",
"the",
"passed",
"document",
"element",
"local",
"name",
"."
] | 30121914b1169d6149c601f551febf3a6ca6b4af | https://github.com/phax/ph-ubl/blob/30121914b1169d6149c601f551febf3a6ca6b4af/ph-ubltr/src/main/java/com/helger/ubltr/UBLTRDocumentTypes.java#L133-L138 |
100,888 | phax/ph-ubl | ph-ubltr/src/main/java/com/helger/ubltr/UBLTRDocumentTypes.java | UBLTRDocumentTypes.getSchemaOfImplementationClass | @Nullable
public static Schema getSchemaOfImplementationClass (@Nullable final Class <?> aImplClass)
{
final EUBLTRDocumentType eDocType = getDocumentTypeOfImplementationClass (aImplClass);
return eDocType == null ? null : eDocType.getSchema ();
} | java | @Nullable
public static Schema getSchemaOfImplementationClass (@Nullable final Class <?> aImplClass)
{
final EUBLTRDocumentType eDocType = getDocumentTypeOfImplementationClass (aImplClass);
return eDocType == null ? null : eDocType.getSchema ();
} | [
"@",
"Nullable",
"public",
"static",
"Schema",
"getSchemaOfImplementationClass",
"(",
"@",
"Nullable",
"final",
"Class",
"<",
"?",
">",
"aImplClass",
")",
"{",
"final",
"EUBLTRDocumentType",
"eDocType",
"=",
"getDocumentTypeOfImplementationClass",
"(",
"aImplClass",
"... | Get the XSD Schema object for the UBLTR document type of the passed
implementation class.
@param aImplClass
The implementation class of any UBLTR document type. May be
<code>null</code>.
@return <code>null</code> if no such UBLTR document type exists. | [
"Get",
"the",
"XSD",
"Schema",
"object",
"for",
"the",
"UBLTR",
"document",
"type",
"of",
"the",
"passed",
"implementation",
"class",
"."
] | 30121914b1169d6149c601f551febf3a6ca6b4af | https://github.com/phax/ph-ubl/blob/30121914b1169d6149c601f551febf3a6ca6b4af/ph-ubltr/src/main/java/com/helger/ubltr/UBLTRDocumentTypes.java#L149-L154 |
100,889 | phax/ph-ubl | ph-ubl21/src/main/java/com/helger/ubl21/UBL21DocumentTypes.java | UBL21DocumentTypes.getImplementationClassOfNamespace | @Nullable
public static Class <?> getImplementationClassOfNamespace (@Nullable final String sNamespace)
{
final EUBL21DocumentType eDocType = getDocumentTypeOfNamespace (sNamespace);
return eDocType == null ? null : eDocType.getImplementationClass ();
} | java | @Nullable
public static Class <?> getImplementationClassOfNamespace (@Nullable final String sNamespace)
{
final EUBL21DocumentType eDocType = getDocumentTypeOfNamespace (sNamespace);
return eDocType == null ? null : eDocType.getImplementationClass ();
} | [
"@",
"Nullable",
"public",
"static",
"Class",
"<",
"?",
">",
"getImplementationClassOfNamespace",
"(",
"@",
"Nullable",
"final",
"String",
"sNamespace",
")",
"{",
"final",
"EUBL21DocumentType",
"eDocType",
"=",
"getDocumentTypeOfNamespace",
"(",
"sNamespace",
")",
"... | Get the domain object class of the passed namespace.
@param sNamespace
The namespace URI of any UBL 2.1 document type. May be
<code>null</code>.
@return <code>null</code> if no such UBL 2.1 document type exists. | [
"Get",
"the",
"domain",
"object",
"class",
"of",
"the",
"passed",
"namespace",
"."
] | 30121914b1169d6149c601f551febf3a6ca6b4af | https://github.com/phax/ph-ubl/blob/30121914b1169d6149c601f551febf3a6ca6b4af/ph-ubl21/src/main/java/com/helger/ubl21/UBL21DocumentTypes.java#L104-L109 |
100,890 | phax/ph-ubl | ph-ubl21/src/main/java/com/helger/ubl21/UBL21DocumentTypes.java | UBL21DocumentTypes.getSchemaOfNamespace | @Nullable
public static Schema getSchemaOfNamespace (@Nullable final String sNamespace)
{
final EUBL21DocumentType eDocType = getDocumentTypeOfNamespace (sNamespace);
return eDocType == null ? null : eDocType.getSchema ();
} | java | @Nullable
public static Schema getSchemaOfNamespace (@Nullable final String sNamespace)
{
final EUBL21DocumentType eDocType = getDocumentTypeOfNamespace (sNamespace);
return eDocType == null ? null : eDocType.getSchema ();
} | [
"@",
"Nullable",
"public",
"static",
"Schema",
"getSchemaOfNamespace",
"(",
"@",
"Nullable",
"final",
"String",
"sNamespace",
")",
"{",
"final",
"EUBL21DocumentType",
"eDocType",
"=",
"getDocumentTypeOfNamespace",
"(",
"sNamespace",
")",
";",
"return",
"eDocType",
"... | Get the XSD Schema object for the UBL 2.1 document type of the passed
namespace.
@param sNamespace
The namespace URI of any UBL 2.1 document type. May be
<code>null</code>.
@return <code>null</code> if no such UBL 2.1 document type exists. | [
"Get",
"the",
"XSD",
"Schema",
"object",
"for",
"the",
"UBL",
"2",
".",
"1",
"document",
"type",
"of",
"the",
"passed",
"namespace",
"."
] | 30121914b1169d6149c601f551febf3a6ca6b4af | https://github.com/phax/ph-ubl/blob/30121914b1169d6149c601f551febf3a6ca6b4af/ph-ubl21/src/main/java/com/helger/ubl21/UBL21DocumentTypes.java#L138-L143 |
100,891 | RallyTools/RallyRestToolkitForJava | src/main/java/com/rallydev/rest/response/GetResponse.java | GetResponse.getRoot | @Override
protected String getRoot() {
JsonObject result = ((JsonObject) new JsonParser().parse(raw));
String root = null;
for(Map.Entry<String, JsonElement> member : result.entrySet()) {
root = member.getKey();
}
return root;
} | java | @Override
protected String getRoot() {
JsonObject result = ((JsonObject) new JsonParser().parse(raw));
String root = null;
for(Map.Entry<String, JsonElement> member : result.entrySet()) {
root = member.getKey();
}
return root;
} | [
"@",
"Override",
"protected",
"String",
"getRoot",
"(",
")",
"{",
"JsonObject",
"result",
"=",
"(",
"(",
"JsonObject",
")",
"new",
"JsonParser",
"(",
")",
".",
"parse",
"(",
"raw",
")",
")",
";",
"String",
"root",
"=",
"null",
";",
"for",
"(",
"Map",... | Get the name of the root JSON result
@return the root element name | [
"Get",
"the",
"name",
"of",
"the",
"root",
"JSON",
"result"
] | 542afa16ea44c9c64cebb0299500dcbbb50b6d7d | https://github.com/RallyTools/RallyRestToolkitForJava/blob/542afa16ea44c9c64cebb0299500dcbbb50b6d7d/src/main/java/com/rallydev/rest/response/GetResponse.java#L28-L36 |
100,892 | RallyTools/RallyRestToolkitForJava | src/main/java/com/rallydev/rest/client/BasicAuthClient.java | BasicAuthClient.attachSecurityInfo | protected void attachSecurityInfo(HttpRequestBase request) throws IOException, URISyntaxException {
if (!SECURITY_ENDPOINT_DOES_NOT_EXIST.equals(securityToken)) {
try {
if (securityToken == null) {
HttpGet httpGet = new HttpGet(getWsapiUrl() + SECURITY_TOKEN_URL);... | java | protected void attachSecurityInfo(HttpRequestBase request) throws IOException, URISyntaxException {
if (!SECURITY_ENDPOINT_DOES_NOT_EXIST.equals(securityToken)) {
try {
if (securityToken == null) {
HttpGet httpGet = new HttpGet(getWsapiUrl() + SECURITY_TOKEN_URL);... | [
"protected",
"void",
"attachSecurityInfo",
"(",
"HttpRequestBase",
"request",
")",
"throws",
"IOException",
",",
"URISyntaxException",
"{",
"if",
"(",
"!",
"SECURITY_ENDPOINT_DOES_NOT_EXIST",
".",
"equals",
"(",
"securityToken",
")",
")",
"{",
"try",
"{",
"if",
"(... | Attach the security token parameter to the request.
Response Structure:
{"OperationResult": {"SecurityToken": "UUID"}}
@param request the request to be modified
@throws IOException if a non-200 response code is returned or if some other
problem occurs while executing the request
@throws URISyntaxException if there is... | [
"Attach",
"the",
"security",
"token",
"parameter",
"to",
"the",
"request",
"."
] | 542afa16ea44c9c64cebb0299500dcbbb50b6d7d | https://github.com/RallyTools/RallyRestToolkitForJava/blob/542afa16ea44c9c64cebb0299500dcbbb50b6d7d/src/main/java/com/rallydev/rest/client/BasicAuthClient.java#L70-L88 |
100,893 | RallyTools/RallyRestToolkitForJava | src/main/java/com/rallydev/rest/RallyRestApi.java | RallyRestApi.create | public CreateResponse create(CreateRequest request) throws IOException {
return new CreateResponse(client.doPost(request.toUrl(), request.getBody()));
} | java | public CreateResponse create(CreateRequest request) throws IOException {
return new CreateResponse(client.doPost(request.toUrl(), request.getBody()));
} | [
"public",
"CreateResponse",
"create",
"(",
"CreateRequest",
"request",
")",
"throws",
"IOException",
"{",
"return",
"new",
"CreateResponse",
"(",
"client",
".",
"doPost",
"(",
"request",
".",
"toUrl",
"(",
")",
",",
"request",
".",
"getBody",
"(",
")",
")",
... | Create the specified object.
@param request the {@link CreateRequest} specifying the object to be created.
@return the resulting {@link CreateResponse}
@throws IOException if an error occurs during the creation. | [
"Create",
"the",
"specified",
"object",
"."
] | 542afa16ea44c9c64cebb0299500dcbbb50b6d7d | https://github.com/RallyTools/RallyRestToolkitForJava/blob/542afa16ea44c9c64cebb0299500dcbbb50b6d7d/src/main/java/com/rallydev/rest/RallyRestApi.java#L124-L126 |
100,894 | RallyTools/RallyRestToolkitForJava | src/main/java/com/rallydev/rest/RallyRestApi.java | RallyRestApi.update | public UpdateResponse update(UpdateRequest request) throws IOException {
return new UpdateResponse(client.doPost(request.toUrl(), request.getBody()));
} | java | public UpdateResponse update(UpdateRequest request) throws IOException {
return new UpdateResponse(client.doPost(request.toUrl(), request.getBody()));
} | [
"public",
"UpdateResponse",
"update",
"(",
"UpdateRequest",
"request",
")",
"throws",
"IOException",
"{",
"return",
"new",
"UpdateResponse",
"(",
"client",
".",
"doPost",
"(",
"request",
".",
"toUrl",
"(",
")",
",",
"request",
".",
"getBody",
"(",
")",
")",
... | Update the specified object.
@param request the {@link UpdateRequest} specifying the object to be updated.
@return the resulting {@link UpdateResponse}
@throws IOException if an error occurs during the update. | [
"Update",
"the",
"specified",
"object",
"."
] | 542afa16ea44c9c64cebb0299500dcbbb50b6d7d | https://github.com/RallyTools/RallyRestToolkitForJava/blob/542afa16ea44c9c64cebb0299500dcbbb50b6d7d/src/main/java/com/rallydev/rest/RallyRestApi.java#L135-L137 |
100,895 | RallyTools/RallyRestToolkitForJava | src/main/java/com/rallydev/rest/RallyRestApi.java | RallyRestApi.updateCollection | public CollectionUpdateResponse updateCollection(CollectionUpdateRequest request) throws IOException {
return new CollectionUpdateResponse(client.doPost(request.toUrl(), request.getBody()));
} | java | public CollectionUpdateResponse updateCollection(CollectionUpdateRequest request) throws IOException {
return new CollectionUpdateResponse(client.doPost(request.toUrl(), request.getBody()));
} | [
"public",
"CollectionUpdateResponse",
"updateCollection",
"(",
"CollectionUpdateRequest",
"request",
")",
"throws",
"IOException",
"{",
"return",
"new",
"CollectionUpdateResponse",
"(",
"client",
".",
"doPost",
"(",
"request",
".",
"toUrl",
"(",
")",
",",
"request",
... | Update the specified collection.
Note that this method is only usable with WSAPI versions 2.0 and above.
@param request the {@link CollectionUpdateRequest} specifying the collection to be updated.
@return the resulting {@link CollectionUpdateResponse}
@throws IOException if an error occurs during the update. | [
"Update",
"the",
"specified",
"collection",
".",
"Note",
"that",
"this",
"method",
"is",
"only",
"usable",
"with",
"WSAPI",
"versions",
"2",
".",
"0",
"and",
"above",
"."
] | 542afa16ea44c9c64cebb0299500dcbbb50b6d7d | https://github.com/RallyTools/RallyRestToolkitForJava/blob/542afa16ea44c9c64cebb0299500dcbbb50b6d7d/src/main/java/com/rallydev/rest/RallyRestApi.java#L147-L149 |
100,896 | RallyTools/RallyRestToolkitForJava | src/main/java/com/rallydev/rest/RallyRestApi.java | RallyRestApi.delete | public DeleteResponse delete(DeleteRequest request) throws IOException {
return new DeleteResponse(client.doDelete(request.toUrl()));
} | java | public DeleteResponse delete(DeleteRequest request) throws IOException {
return new DeleteResponse(client.doDelete(request.toUrl()));
} | [
"public",
"DeleteResponse",
"delete",
"(",
"DeleteRequest",
"request",
")",
"throws",
"IOException",
"{",
"return",
"new",
"DeleteResponse",
"(",
"client",
".",
"doDelete",
"(",
"request",
".",
"toUrl",
"(",
")",
")",
")",
";",
"}"
] | Delete the specified object.
@param request the {@link DeleteRequest} specifying the object to be deleted.
@return the resulting {@link DeleteResponse}
@throws IOException if an error occurs during the deletion. | [
"Delete",
"the",
"specified",
"object",
"."
] | 542afa16ea44c9c64cebb0299500dcbbb50b6d7d | https://github.com/RallyTools/RallyRestToolkitForJava/blob/542afa16ea44c9c64cebb0299500dcbbb50b6d7d/src/main/java/com/rallydev/rest/RallyRestApi.java#L158-L160 |
100,897 | RallyTools/RallyRestToolkitForJava | src/main/java/com/rallydev/rest/RallyRestApi.java | RallyRestApi.query | public QueryResponse query(QueryRequest request) throws IOException {
QueryResponse queryResponse = new QueryResponse(client.doGet(request.toUrl()));
if (queryResponse.wasSuccessful()) {
int receivedRecords = request.getPageSize();
while (receivedRecords < request.getLimit() &&
... | java | public QueryResponse query(QueryRequest request) throws IOException {
QueryResponse queryResponse = new QueryResponse(client.doGet(request.toUrl()));
if (queryResponse.wasSuccessful()) {
int receivedRecords = request.getPageSize();
while (receivedRecords < request.getLimit() &&
... | [
"public",
"QueryResponse",
"query",
"(",
"QueryRequest",
"request",
")",
"throws",
"IOException",
"{",
"QueryResponse",
"queryResponse",
"=",
"new",
"QueryResponse",
"(",
"client",
".",
"doGet",
"(",
"request",
".",
"toUrl",
"(",
")",
")",
")",
";",
"if",
"(... | Query for objects matching the specified request.
By default one page of data will be returned.
Paging will automatically be performed if a limit is set on the request.
@param request the {@link QueryRequest} specifying the object to be created.
@return the resulting {@link QueryResponse}
@throws IOException if an err... | [
"Query",
"for",
"objects",
"matching",
"the",
"specified",
"request",
".",
"By",
"default",
"one",
"page",
"of",
"data",
"will",
"be",
"returned",
".",
"Paging",
"will",
"automatically",
"be",
"performed",
"if",
"a",
"limit",
"is",
"set",
"on",
"the",
"req... | 542afa16ea44c9c64cebb0299500dcbbb50b6d7d | https://github.com/RallyTools/RallyRestToolkitForJava/blob/542afa16ea44c9c64cebb0299500dcbbb50b6d7d/src/main/java/com/rallydev/rest/RallyRestApi.java#L171-L189 |
100,898 | RallyTools/RallyRestToolkitForJava | src/main/java/com/rallydev/rest/RallyRestApi.java | RallyRestApi.get | public GetResponse get(GetRequest request) throws IOException {
return new GetResponse(client.doGet(request.toUrl()));
} | java | public GetResponse get(GetRequest request) throws IOException {
return new GetResponse(client.doGet(request.toUrl()));
} | [
"public",
"GetResponse",
"get",
"(",
"GetRequest",
"request",
")",
"throws",
"IOException",
"{",
"return",
"new",
"GetResponse",
"(",
"client",
".",
"doGet",
"(",
"request",
".",
"toUrl",
"(",
")",
")",
")",
";",
"}"
] | Get the specified object.
@param request the {@link GetRequest} specifying the object to be retrieved.
@return the resulting {@link GetResponse}
@throws IOException if an error occurs during the retrieval. | [
"Get",
"the",
"specified",
"object",
"."
] | 542afa16ea44c9c64cebb0299500dcbbb50b6d7d | https://github.com/RallyTools/RallyRestToolkitForJava/blob/542afa16ea44c9c64cebb0299500dcbbb50b6d7d/src/main/java/com/rallydev/rest/RallyRestApi.java#L198-L200 |
100,899 | RallyTools/RallyRestToolkitForJava | src/main/java/com/rallydev/rest/util/QueryFilter.java | QueryFilter.and | public static QueryFilter and(QueryFilter... queryFilters) {
QueryFilter result = null;
for (QueryFilter q : queryFilters) {
result = result == null ? q : result.and(q);
}
return result;
} | java | public static QueryFilter and(QueryFilter... queryFilters) {
QueryFilter result = null;
for (QueryFilter q : queryFilters) {
result = result == null ? q : result.and(q);
}
return result;
} | [
"public",
"static",
"QueryFilter",
"and",
"(",
"QueryFilter",
"...",
"queryFilters",
")",
"{",
"QueryFilter",
"result",
"=",
"null",
";",
"for",
"(",
"QueryFilter",
"q",
":",
"queryFilters",
")",
"{",
"result",
"=",
"result",
"==",
"null",
"?",
"q",
":",
... | Get a query filter that is the ANDed combination of the specified filters.
@param queryFilters one or more query filters to be ANDed together
@return the ANDed query filter | [
"Get",
"a",
"query",
"filter",
"that",
"is",
"the",
"ANDed",
"combination",
"of",
"the",
"specified",
"filters",
"."
] | 542afa16ea44c9c64cebb0299500dcbbb50b6d7d | https://github.com/RallyTools/RallyRestToolkitForJava/blob/542afa16ea44c9c64cebb0299500dcbbb50b6d7d/src/main/java/com/rallydev/rest/util/QueryFilter.java#L94-L100 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.