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
sequence | docstring
stringlengths 3
16k
| docstring_tokens
sequence | sha
stringlengths 40
40
| url
stringlengths 105
339
| partition
stringclasses 1
value |
---|---|---|---|---|---|---|---|---|---|---|---|
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nslimitidentifier.java | nslimitidentifier.unset | public static base_responses unset(nitro_service client, String limitidentifier[], String args[]) throws Exception {
base_responses result = null;
if (limitidentifier != null && limitidentifier.length > 0) {
nslimitidentifier unsetresources[] = new nslimitidentifier[limitidentifier.length];
for (int i=0;i<limitidentifier.length;i++){
unsetresources[i] = new nslimitidentifier();
unsetresources[i].limitidentifier = limitidentifier[i];
}
result = unset_bulk_request(client, unsetresources,args);
}
return result;
} | java | public static base_responses unset(nitro_service client, String limitidentifier[], String args[]) throws Exception {
base_responses result = null;
if (limitidentifier != null && limitidentifier.length > 0) {
nslimitidentifier unsetresources[] = new nslimitidentifier[limitidentifier.length];
for (int i=0;i<limitidentifier.length;i++){
unsetresources[i] = new nslimitidentifier();
unsetresources[i].limitidentifier = limitidentifier[i];
}
result = unset_bulk_request(client, unsetresources,args);
}
return result;
} | [
"public",
"static",
"base_responses",
"unset",
"(",
"nitro_service",
"client",
",",
"String",
"limitidentifier",
"[",
"]",
",",
"String",
"args",
"[",
"]",
")",
"throws",
"Exception",
"{",
"base_responses",
"result",
"=",
"null",
";",
"if",
"(",
"limitidentifier",
"!=",
"null",
"&&",
"limitidentifier",
".",
"length",
">",
"0",
")",
"{",
"nslimitidentifier",
"unsetresources",
"[",
"]",
"=",
"new",
"nslimitidentifier",
"[",
"limitidentifier",
".",
"length",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"limitidentifier",
".",
"length",
";",
"i",
"++",
")",
"{",
"unsetresources",
"[",
"i",
"]",
"=",
"new",
"nslimitidentifier",
"(",
")",
";",
"unsetresources",
"[",
"i",
"]",
".",
"limitidentifier",
"=",
"limitidentifier",
"[",
"i",
"]",
";",
"}",
"result",
"=",
"unset_bulk_request",
"(",
"client",
",",
"unsetresources",
",",
"args",
")",
";",
"}",
"return",
"result",
";",
"}"
] | Use this API to unset the properties of nslimitidentifier resources.
Properties that need to be unset are specified in args array. | [
"Use",
"this",
"API",
"to",
"unset",
"the",
"properties",
"of",
"nslimitidentifier",
"resources",
".",
"Properties",
"that",
"need",
"to",
"be",
"unset",
"are",
"specified",
"in",
"args",
"array",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nslimitidentifier.java#L541-L552 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nslimitidentifier.java | nslimitidentifier.get | public static nslimitidentifier[] get(nitro_service service) throws Exception{
nslimitidentifier obj = new nslimitidentifier();
nslimitidentifier[] response = (nslimitidentifier[])obj.get_resources(service);
return response;
} | java | public static nslimitidentifier[] get(nitro_service service) throws Exception{
nslimitidentifier obj = new nslimitidentifier();
nslimitidentifier[] response = (nslimitidentifier[])obj.get_resources(service);
return response;
} | [
"public",
"static",
"nslimitidentifier",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
")",
"throws",
"Exception",
"{",
"nslimitidentifier",
"obj",
"=",
"new",
"nslimitidentifier",
"(",
")",
";",
"nslimitidentifier",
"[",
"]",
"response",
"=",
"(",
"nslimitidentifier",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch all the nslimitidentifier resources that are configured on netscaler. | [
"Use",
"this",
"API",
"to",
"fetch",
"all",
"the",
"nslimitidentifier",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nslimitidentifier.java#L574-L578 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nslimitidentifier.java | nslimitidentifier.get | public static nslimitidentifier get(nitro_service service, String limitidentifier) throws Exception{
nslimitidentifier obj = new nslimitidentifier();
obj.set_limitidentifier(limitidentifier);
nslimitidentifier response = (nslimitidentifier) obj.get_resource(service);
return response;
} | java | public static nslimitidentifier get(nitro_service service, String limitidentifier) throws Exception{
nslimitidentifier obj = new nslimitidentifier();
obj.set_limitidentifier(limitidentifier);
nslimitidentifier response = (nslimitidentifier) obj.get_resource(service);
return response;
} | [
"public",
"static",
"nslimitidentifier",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"limitidentifier",
")",
"throws",
"Exception",
"{",
"nslimitidentifier",
"obj",
"=",
"new",
"nslimitidentifier",
"(",
")",
";",
"obj",
".",
"set_limitidentifier",
"(",
"limitidentifier",
")",
";",
"nslimitidentifier",
"response",
"=",
"(",
"nslimitidentifier",
")",
"obj",
".",
"get_resource",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch nslimitidentifier resource of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"nslimitidentifier",
"resource",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nslimitidentifier.java#L590-L595 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nslimitidentifier.java | nslimitidentifier.get | public static nslimitidentifier[] get(nitro_service service, String limitidentifier[]) throws Exception{
if (limitidentifier !=null && limitidentifier.length>0) {
nslimitidentifier response[] = new nslimitidentifier[limitidentifier.length];
nslimitidentifier obj[] = new nslimitidentifier[limitidentifier.length];
for (int i=0;i<limitidentifier.length;i++) {
obj[i] = new nslimitidentifier();
obj[i].set_limitidentifier(limitidentifier[i]);
response[i] = (nslimitidentifier) obj[i].get_resource(service);
}
return response;
}
return null;
} | java | public static nslimitidentifier[] get(nitro_service service, String limitidentifier[]) throws Exception{
if (limitidentifier !=null && limitidentifier.length>0) {
nslimitidentifier response[] = new nslimitidentifier[limitidentifier.length];
nslimitidentifier obj[] = new nslimitidentifier[limitidentifier.length];
for (int i=0;i<limitidentifier.length;i++) {
obj[i] = new nslimitidentifier();
obj[i].set_limitidentifier(limitidentifier[i]);
response[i] = (nslimitidentifier) obj[i].get_resource(service);
}
return response;
}
return null;
} | [
"public",
"static",
"nslimitidentifier",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"limitidentifier",
"[",
"]",
")",
"throws",
"Exception",
"{",
"if",
"(",
"limitidentifier",
"!=",
"null",
"&&",
"limitidentifier",
".",
"length",
">",
"0",
")",
"{",
"nslimitidentifier",
"response",
"[",
"]",
"=",
"new",
"nslimitidentifier",
"[",
"limitidentifier",
".",
"length",
"]",
";",
"nslimitidentifier",
"obj",
"[",
"]",
"=",
"new",
"nslimitidentifier",
"[",
"limitidentifier",
".",
"length",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"limitidentifier",
".",
"length",
";",
"i",
"++",
")",
"{",
"obj",
"[",
"i",
"]",
"=",
"new",
"nslimitidentifier",
"(",
")",
";",
"obj",
"[",
"i",
"]",
".",
"set_limitidentifier",
"(",
"limitidentifier",
"[",
"i",
"]",
")",
";",
"response",
"[",
"i",
"]",
"=",
"(",
"nslimitidentifier",
")",
"obj",
"[",
"i",
"]",
".",
"get_resource",
"(",
"service",
")",
";",
"}",
"return",
"response",
";",
"}",
"return",
"null",
";",
"}"
] | Use this API to fetch nslimitidentifier resources of given names . | [
"Use",
"this",
"API",
"to",
"fetch",
"nslimitidentifier",
"resources",
"of",
"given",
"names",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nslimitidentifier.java#L600-L612 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwprofile_starturl_binding.java | appfwprofile_starturl_binding.get | public static appfwprofile_starturl_binding[] get(nitro_service service, String name) throws Exception{
appfwprofile_starturl_binding obj = new appfwprofile_starturl_binding();
obj.set_name(name);
appfwprofile_starturl_binding response[] = (appfwprofile_starturl_binding[]) obj.get_resources(service);
return response;
} | java | public static appfwprofile_starturl_binding[] get(nitro_service service, String name) throws Exception{
appfwprofile_starturl_binding obj = new appfwprofile_starturl_binding();
obj.set_name(name);
appfwprofile_starturl_binding response[] = (appfwprofile_starturl_binding[]) obj.get_resources(service);
return response;
} | [
"public",
"static",
"appfwprofile_starturl_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"appfwprofile_starturl_binding",
"obj",
"=",
"new",
"appfwprofile_starturl_binding",
"(",
")",
";",
"obj",
".",
"set_name",
"(",
"name",
")",
";",
"appfwprofile_starturl_binding",
"response",
"[",
"]",
"=",
"(",
"appfwprofile_starturl_binding",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch appfwprofile_starturl_binding resources of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"appfwprofile_starturl_binding",
"resources",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwprofile_starturl_binding.java#L196-L201 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/vpn/vpnglobal_authenticationradiuspolicy_binding.java | vpnglobal_authenticationradiuspolicy_binding.get | public static vpnglobal_authenticationradiuspolicy_binding[] get(nitro_service service) throws Exception{
vpnglobal_authenticationradiuspolicy_binding obj = new vpnglobal_authenticationradiuspolicy_binding();
vpnglobal_authenticationradiuspolicy_binding response[] = (vpnglobal_authenticationradiuspolicy_binding[]) obj.get_resources(service);
return response;
} | java | public static vpnglobal_authenticationradiuspolicy_binding[] get(nitro_service service) throws Exception{
vpnglobal_authenticationradiuspolicy_binding obj = new vpnglobal_authenticationradiuspolicy_binding();
vpnglobal_authenticationradiuspolicy_binding response[] = (vpnglobal_authenticationradiuspolicy_binding[]) obj.get_resources(service);
return response;
} | [
"public",
"static",
"vpnglobal_authenticationradiuspolicy_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
")",
"throws",
"Exception",
"{",
"vpnglobal_authenticationradiuspolicy_binding",
"obj",
"=",
"new",
"vpnglobal_authenticationradiuspolicy_binding",
"(",
")",
";",
"vpnglobal_authenticationradiuspolicy_binding",
"response",
"[",
"]",
"=",
"(",
"vpnglobal_authenticationradiuspolicy_binding",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch a vpnglobal_authenticationradiuspolicy_binding resources. | [
"Use",
"this",
"API",
"to",
"fetch",
"a",
"vpnglobal_authenticationradiuspolicy_binding",
"resources",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/vpn/vpnglobal_authenticationradiuspolicy_binding.java#L225-L229 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/ssl/sslglobal_binding.java | sslglobal_binding.get | public static sslglobal_binding get(nitro_service service) throws Exception{
sslglobal_binding obj = new sslglobal_binding();
sslglobal_binding response = (sslglobal_binding) obj.get_resource(service);
return response;
} | java | public static sslglobal_binding get(nitro_service service) throws Exception{
sslglobal_binding obj = new sslglobal_binding();
sslglobal_binding response = (sslglobal_binding) obj.get_resource(service);
return response;
} | [
"public",
"static",
"sslglobal_binding",
"get",
"(",
"nitro_service",
"service",
")",
"throws",
"Exception",
"{",
"sslglobal_binding",
"obj",
"=",
"new",
"sslglobal_binding",
"(",
")",
";",
"sslglobal_binding",
"response",
"=",
"(",
"sslglobal_binding",
")",
"obj",
".",
"get_resource",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch a sslglobal_binding resource . | [
"Use",
"this",
"API",
"to",
"fetch",
"a",
"sslglobal_binding",
"resource",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ssl/sslglobal_binding.java#L84-L88 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/stats/MultiClassPrecisionRecallStats.java | MultiClassPrecisionRecallStats.getRecallDescription | public String getRecallDescription(int numDigits) {
NumberFormat nf = NumberFormat.getNumberInstance();
nf.setMaximumFractionDigits(numDigits);
Triple<Double, Integer, Integer> recall = getRecallInfo();
return nf.format(recall.first()) + " (" + recall.second() + "/" + (recall.second() + recall.third()) + ")";
} | java | public String getRecallDescription(int numDigits) {
NumberFormat nf = NumberFormat.getNumberInstance();
nf.setMaximumFractionDigits(numDigits);
Triple<Double, Integer, Integer> recall = getRecallInfo();
return nf.format(recall.first()) + " (" + recall.second() + "/" + (recall.second() + recall.third()) + ")";
} | [
"public",
"String",
"getRecallDescription",
"(",
"int",
"numDigits",
")",
"{",
"NumberFormat",
"nf",
"=",
"NumberFormat",
".",
"getNumberInstance",
"(",
")",
";",
"nf",
".",
"setMaximumFractionDigits",
"(",
"numDigits",
")",
";",
"Triple",
"<",
"Double",
",",
"Integer",
",",
"Integer",
">",
"recall",
"=",
"getRecallInfo",
"(",
")",
";",
"return",
"nf",
".",
"format",
"(",
"recall",
".",
"first",
"(",
")",
")",
"+",
"\" (\"",
"+",
"recall",
".",
"second",
"(",
")",
"+",
"\"/\"",
"+",
"(",
"recall",
".",
"second",
"(",
")",
"+",
"recall",
".",
"third",
"(",
")",
")",
"+",
"\")\"",
";",
"}"
] | Returns a String summarizing precision that will print nicely. | [
"Returns",
"a",
"String",
"summarizing",
"precision",
"that",
"will",
"print",
"nicely",
"."
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/stats/MultiClassPrecisionRecallStats.java#L181-L186 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/filter/filterpolicy_crvserver_binding.java | filterpolicy_crvserver_binding.get | public static filterpolicy_crvserver_binding[] get(nitro_service service, String name) throws Exception{
filterpolicy_crvserver_binding obj = new filterpolicy_crvserver_binding();
obj.set_name(name);
filterpolicy_crvserver_binding response[] = (filterpolicy_crvserver_binding[]) obj.get_resources(service);
return response;
} | java | public static filterpolicy_crvserver_binding[] get(nitro_service service, String name) throws Exception{
filterpolicy_crvserver_binding obj = new filterpolicy_crvserver_binding();
obj.set_name(name);
filterpolicy_crvserver_binding response[] = (filterpolicy_crvserver_binding[]) obj.get_resources(service);
return response;
} | [
"public",
"static",
"filterpolicy_crvserver_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"filterpolicy_crvserver_binding",
"obj",
"=",
"new",
"filterpolicy_crvserver_binding",
"(",
")",
";",
"obj",
".",
"set_name",
"(",
"name",
")",
";",
"filterpolicy_crvserver_binding",
"response",
"[",
"]",
"=",
"(",
"filterpolicy_crvserver_binding",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch filterpolicy_crvserver_binding resources of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"filterpolicy_crvserver_binding",
"resources",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/filter/filterpolicy_crvserver_binding.java#L132-L137 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/cmp/cmppolicy.java | cmppolicy.add | public static base_response add(nitro_service client, cmppolicy resource) throws Exception {
cmppolicy addresource = new cmppolicy();
addresource.name = resource.name;
addresource.rule = resource.rule;
addresource.resaction = resource.resaction;
return addresource.add_resource(client);
} | java | public static base_response add(nitro_service client, cmppolicy resource) throws Exception {
cmppolicy addresource = new cmppolicy();
addresource.name = resource.name;
addresource.rule = resource.rule;
addresource.resaction = resource.resaction;
return addresource.add_resource(client);
} | [
"public",
"static",
"base_response",
"add",
"(",
"nitro_service",
"client",
",",
"cmppolicy",
"resource",
")",
"throws",
"Exception",
"{",
"cmppolicy",
"addresource",
"=",
"new",
"cmppolicy",
"(",
")",
";",
"addresource",
".",
"name",
"=",
"resource",
".",
"name",
";",
"addresource",
".",
"rule",
"=",
"resource",
".",
"rule",
";",
"addresource",
".",
"resaction",
"=",
"resource",
".",
"resaction",
";",
"return",
"addresource",
".",
"add_resource",
"(",
"client",
")",
";",
"}"
] | Use this API to add cmppolicy. | [
"Use",
"this",
"API",
"to",
"add",
"cmppolicy",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/cmp/cmppolicy.java#L303-L309 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/cmp/cmppolicy.java | cmppolicy.update | public static base_response update(nitro_service client, cmppolicy resource) throws Exception {
cmppolicy updateresource = new cmppolicy();
updateresource.name = resource.name;
updateresource.rule = resource.rule;
updateresource.resaction = resource.resaction;
return updateresource.update_resource(client);
} | java | public static base_response update(nitro_service client, cmppolicy resource) throws Exception {
cmppolicy updateresource = new cmppolicy();
updateresource.name = resource.name;
updateresource.rule = resource.rule;
updateresource.resaction = resource.resaction;
return updateresource.update_resource(client);
} | [
"public",
"static",
"base_response",
"update",
"(",
"nitro_service",
"client",
",",
"cmppolicy",
"resource",
")",
"throws",
"Exception",
"{",
"cmppolicy",
"updateresource",
"=",
"new",
"cmppolicy",
"(",
")",
";",
"updateresource",
".",
"name",
"=",
"resource",
".",
"name",
";",
"updateresource",
".",
"rule",
"=",
"resource",
".",
"rule",
";",
"updateresource",
".",
"resaction",
"=",
"resource",
".",
"resaction",
";",
"return",
"updateresource",
".",
"update_resource",
"(",
"client",
")",
";",
"}"
] | Use this API to update cmppolicy. | [
"Use",
"this",
"API",
"to",
"update",
"cmppolicy",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/cmp/cmppolicy.java#L382-L388 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/cmp/cmppolicy.java | cmppolicy.get | public static cmppolicy[] get(nitro_service service) throws Exception{
cmppolicy obj = new cmppolicy();
cmppolicy[] response = (cmppolicy[])obj.get_resources(service);
return response;
} | java | public static cmppolicy[] get(nitro_service service) throws Exception{
cmppolicy obj = new cmppolicy();
cmppolicy[] response = (cmppolicy[])obj.get_resources(service);
return response;
} | [
"public",
"static",
"cmppolicy",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
")",
"throws",
"Exception",
"{",
"cmppolicy",
"obj",
"=",
"new",
"cmppolicy",
"(",
")",
";",
"cmppolicy",
"[",
"]",
"response",
"=",
"(",
"cmppolicy",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch all the cmppolicy resources that are configured on netscaler. | [
"Use",
"this",
"API",
"to",
"fetch",
"all",
"the",
"cmppolicy",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/cmp/cmppolicy.java#L429-L433 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/cmp/cmppolicy.java | cmppolicy.get | public static cmppolicy get(nitro_service service, String name) throws Exception{
cmppolicy obj = new cmppolicy();
obj.set_name(name);
cmppolicy response = (cmppolicy) obj.get_resource(service);
return response;
} | java | public static cmppolicy get(nitro_service service, String name) throws Exception{
cmppolicy obj = new cmppolicy();
obj.set_name(name);
cmppolicy response = (cmppolicy) obj.get_resource(service);
return response;
} | [
"public",
"static",
"cmppolicy",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"cmppolicy",
"obj",
"=",
"new",
"cmppolicy",
"(",
")",
";",
"obj",
".",
"set_name",
"(",
"name",
")",
";",
"cmppolicy",
"response",
"=",
"(",
"cmppolicy",
")",
"obj",
".",
"get_resource",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch cmppolicy resource of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"cmppolicy",
"resource",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/cmp/cmppolicy.java#L445-L450 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/vpn/vpnvserver_vpnurl_binding.java | vpnvserver_vpnurl_binding.get | public static vpnvserver_vpnurl_binding[] get(nitro_service service, String name) throws Exception{
vpnvserver_vpnurl_binding obj = new vpnvserver_vpnurl_binding();
obj.set_name(name);
vpnvserver_vpnurl_binding response[] = (vpnvserver_vpnurl_binding[]) obj.get_resources(service);
return response;
} | java | public static vpnvserver_vpnurl_binding[] get(nitro_service service, String name) throws Exception{
vpnvserver_vpnurl_binding obj = new vpnvserver_vpnurl_binding();
obj.set_name(name);
vpnvserver_vpnurl_binding response[] = (vpnvserver_vpnurl_binding[]) obj.get_resources(service);
return response;
} | [
"public",
"static",
"vpnvserver_vpnurl_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"vpnvserver_vpnurl_binding",
"obj",
"=",
"new",
"vpnvserver_vpnurl_binding",
"(",
")",
";",
"obj",
".",
"set_name",
"(",
"name",
")",
";",
"vpnvserver_vpnurl_binding",
"response",
"[",
"]",
"=",
"(",
"vpnvserver_vpnurl_binding",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch vpnvserver_vpnurl_binding resources of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"vpnvserver_vpnurl_binding",
"resources",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/vpn/vpnvserver_vpnurl_binding.java#L164-L169 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwsettings.java | appfwsettings.update | public static base_response update(nitro_service client, appfwsettings resource) throws Exception {
appfwsettings updateresource = new appfwsettings();
updateresource.defaultprofile = resource.defaultprofile;
updateresource.undefaction = resource.undefaction;
updateresource.sessiontimeout = resource.sessiontimeout;
updateresource.learnratelimit = resource.learnratelimit;
updateresource.sessionlifetime = resource.sessionlifetime;
updateresource.sessioncookiename = resource.sessioncookiename;
updateresource.clientiploggingheader = resource.clientiploggingheader;
updateresource.importsizelimit = resource.importsizelimit;
updateresource.signatureautoupdate = resource.signatureautoupdate;
updateresource.signatureurl = resource.signatureurl;
updateresource.cookiepostencryptprefix = resource.cookiepostencryptprefix;
updateresource.logmalformedreq = resource.logmalformedreq;
updateresource.ceflogging = resource.ceflogging;
updateresource.entitydecoding = resource.entitydecoding;
updateresource.useconfigurablesecretkey = resource.useconfigurablesecretkey;
return updateresource.update_resource(client);
} | java | public static base_response update(nitro_service client, appfwsettings resource) throws Exception {
appfwsettings updateresource = new appfwsettings();
updateresource.defaultprofile = resource.defaultprofile;
updateresource.undefaction = resource.undefaction;
updateresource.sessiontimeout = resource.sessiontimeout;
updateresource.learnratelimit = resource.learnratelimit;
updateresource.sessionlifetime = resource.sessionlifetime;
updateresource.sessioncookiename = resource.sessioncookiename;
updateresource.clientiploggingheader = resource.clientiploggingheader;
updateresource.importsizelimit = resource.importsizelimit;
updateresource.signatureautoupdate = resource.signatureautoupdate;
updateresource.signatureurl = resource.signatureurl;
updateresource.cookiepostencryptprefix = resource.cookiepostencryptprefix;
updateresource.logmalformedreq = resource.logmalformedreq;
updateresource.ceflogging = resource.ceflogging;
updateresource.entitydecoding = resource.entitydecoding;
updateresource.useconfigurablesecretkey = resource.useconfigurablesecretkey;
return updateresource.update_resource(client);
} | [
"public",
"static",
"base_response",
"update",
"(",
"nitro_service",
"client",
",",
"appfwsettings",
"resource",
")",
"throws",
"Exception",
"{",
"appfwsettings",
"updateresource",
"=",
"new",
"appfwsettings",
"(",
")",
";",
"updateresource",
".",
"defaultprofile",
"=",
"resource",
".",
"defaultprofile",
";",
"updateresource",
".",
"undefaction",
"=",
"resource",
".",
"undefaction",
";",
"updateresource",
".",
"sessiontimeout",
"=",
"resource",
".",
"sessiontimeout",
";",
"updateresource",
".",
"learnratelimit",
"=",
"resource",
".",
"learnratelimit",
";",
"updateresource",
".",
"sessionlifetime",
"=",
"resource",
".",
"sessionlifetime",
";",
"updateresource",
".",
"sessioncookiename",
"=",
"resource",
".",
"sessioncookiename",
";",
"updateresource",
".",
"clientiploggingheader",
"=",
"resource",
".",
"clientiploggingheader",
";",
"updateresource",
".",
"importsizelimit",
"=",
"resource",
".",
"importsizelimit",
";",
"updateresource",
".",
"signatureautoupdate",
"=",
"resource",
".",
"signatureautoupdate",
";",
"updateresource",
".",
"signatureurl",
"=",
"resource",
".",
"signatureurl",
";",
"updateresource",
".",
"cookiepostencryptprefix",
"=",
"resource",
".",
"cookiepostencryptprefix",
";",
"updateresource",
".",
"logmalformedreq",
"=",
"resource",
".",
"logmalformedreq",
";",
"updateresource",
".",
"ceflogging",
"=",
"resource",
".",
"ceflogging",
";",
"updateresource",
".",
"entitydecoding",
"=",
"resource",
".",
"entitydecoding",
";",
"updateresource",
".",
"useconfigurablesecretkey",
"=",
"resource",
".",
"useconfigurablesecretkey",
";",
"return",
"updateresource",
".",
"update_resource",
"(",
"client",
")",
";",
"}"
] | Use this API to update appfwsettings. | [
"Use",
"this",
"API",
"to",
"update",
"appfwsettings",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwsettings.java#L406-L424 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwsettings.java | appfwsettings.unset | public static base_response unset(nitro_service client, appfwsettings resource, String[] args) throws Exception{
appfwsettings unsetresource = new appfwsettings();
return unsetresource.unset_resource(client,args);
} | java | public static base_response unset(nitro_service client, appfwsettings resource, String[] args) throws Exception{
appfwsettings unsetresource = new appfwsettings();
return unsetresource.unset_resource(client,args);
} | [
"public",
"static",
"base_response",
"unset",
"(",
"nitro_service",
"client",
",",
"appfwsettings",
"resource",
",",
"String",
"[",
"]",
"args",
")",
"throws",
"Exception",
"{",
"appfwsettings",
"unsetresource",
"=",
"new",
"appfwsettings",
"(",
")",
";",
"return",
"unsetresource",
".",
"unset_resource",
"(",
"client",
",",
"args",
")",
";",
"}"
] | Use this API to unset the properties of appfwsettings resource.
Properties that need to be unset are specified in args array. | [
"Use",
"this",
"API",
"to",
"unset",
"the",
"properties",
"of",
"appfwsettings",
"resource",
".",
"Properties",
"that",
"need",
"to",
"be",
"unset",
"are",
"specified",
"in",
"args",
"array",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwsettings.java#L430-L433 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwsettings.java | appfwsettings.get | public static appfwsettings get(nitro_service service) throws Exception{
appfwsettings obj = new appfwsettings();
appfwsettings[] response = (appfwsettings[])obj.get_resources(service);
return response[0];
} | java | public static appfwsettings get(nitro_service service) throws Exception{
appfwsettings obj = new appfwsettings();
appfwsettings[] response = (appfwsettings[])obj.get_resources(service);
return response[0];
} | [
"public",
"static",
"appfwsettings",
"get",
"(",
"nitro_service",
"service",
")",
"throws",
"Exception",
"{",
"appfwsettings",
"obj",
"=",
"new",
"appfwsettings",
"(",
")",
";",
"appfwsettings",
"[",
"]",
"response",
"=",
"(",
"appfwsettings",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
"[",
"0",
"]",
";",
"}"
] | Use this API to fetch all the appfwsettings resources that are configured on netscaler. | [
"Use",
"this",
"API",
"to",
"fetch",
"all",
"the",
"appfwsettings",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwsettings.java#L438-L442 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/spillover/spilloverpolicy_csvserver_binding.java | spilloverpolicy_csvserver_binding.get | public static spilloverpolicy_csvserver_binding[] get(nitro_service service, String name) throws Exception{
spilloverpolicy_csvserver_binding obj = new spilloverpolicy_csvserver_binding();
obj.set_name(name);
spilloverpolicy_csvserver_binding response[] = (spilloverpolicy_csvserver_binding[]) obj.get_resources(service);
return response;
} | java | public static spilloverpolicy_csvserver_binding[] get(nitro_service service, String name) throws Exception{
spilloverpolicy_csvserver_binding obj = new spilloverpolicy_csvserver_binding();
obj.set_name(name);
spilloverpolicy_csvserver_binding response[] = (spilloverpolicy_csvserver_binding[]) obj.get_resources(service);
return response;
} | [
"public",
"static",
"spilloverpolicy_csvserver_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"spilloverpolicy_csvserver_binding",
"obj",
"=",
"new",
"spilloverpolicy_csvserver_binding",
"(",
")",
";",
"obj",
".",
"set_name",
"(",
"name",
")",
";",
"spilloverpolicy_csvserver_binding",
"response",
"[",
"]",
"=",
"(",
"spilloverpolicy_csvserver_binding",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch spilloverpolicy_csvserver_binding resources of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"spilloverpolicy_csvserver_binding",
"resources",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/spillover/spilloverpolicy_csvserver_binding.java#L162-L167 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/policy/policydataset_binding.java | policydataset_binding.get | public static policydataset_binding get(nitro_service service, String name) throws Exception{
policydataset_binding obj = new policydataset_binding();
obj.set_name(name);
policydataset_binding response = (policydataset_binding) obj.get_resource(service);
return response;
} | java | public static policydataset_binding get(nitro_service service, String name) throws Exception{
policydataset_binding obj = new policydataset_binding();
obj.set_name(name);
policydataset_binding response = (policydataset_binding) obj.get_resource(service);
return response;
} | [
"public",
"static",
"policydataset_binding",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"policydataset_binding",
"obj",
"=",
"new",
"policydataset_binding",
"(",
")",
";",
"obj",
".",
"set_name",
"(",
"name",
")",
";",
"policydataset_binding",
"response",
"=",
"(",
"policydataset_binding",
")",
"obj",
".",
"get_resource",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch policydataset_binding resource of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"policydataset_binding",
"resource",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/policy/policydataset_binding.java#L103-L108 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/ssl/sslservice_binding.java | sslservice_binding.get | public static sslservice_binding get(nitro_service service, String servicename) throws Exception{
sslservice_binding obj = new sslservice_binding();
obj.set_servicename(servicename);
sslservice_binding response = (sslservice_binding) obj.get_resource(service);
return response;
} | java | public static sslservice_binding get(nitro_service service, String servicename) throws Exception{
sslservice_binding obj = new sslservice_binding();
obj.set_servicename(servicename);
sslservice_binding response = (sslservice_binding) obj.get_resource(service);
return response;
} | [
"public",
"static",
"sslservice_binding",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"servicename",
")",
"throws",
"Exception",
"{",
"sslservice_binding",
"obj",
"=",
"new",
"sslservice_binding",
"(",
")",
";",
"obj",
".",
"set_servicename",
"(",
"servicename",
")",
";",
"sslservice_binding",
"response",
"=",
"(",
"sslservice_binding",
")",
"obj",
".",
"get_resource",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch sslservice_binding resource of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"sslservice_binding",
"resource",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ssl/sslservice_binding.java#L136-L141 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nsconsoleloginprompt.java | nsconsoleloginprompt.update | public static base_response update(nitro_service client, nsconsoleloginprompt resource) throws Exception {
nsconsoleloginprompt updateresource = new nsconsoleloginprompt();
updateresource.promptstring = resource.promptstring;
return updateresource.update_resource(client);
} | java | public static base_response update(nitro_service client, nsconsoleloginprompt resource) throws Exception {
nsconsoleloginprompt updateresource = new nsconsoleloginprompt();
updateresource.promptstring = resource.promptstring;
return updateresource.update_resource(client);
} | [
"public",
"static",
"base_response",
"update",
"(",
"nitro_service",
"client",
",",
"nsconsoleloginprompt",
"resource",
")",
"throws",
"Exception",
"{",
"nsconsoleloginprompt",
"updateresource",
"=",
"new",
"nsconsoleloginprompt",
"(",
")",
";",
"updateresource",
".",
"promptstring",
"=",
"resource",
".",
"promptstring",
";",
"return",
"updateresource",
".",
"update_resource",
"(",
"client",
")",
";",
"}"
] | Use this API to update nsconsoleloginprompt. | [
"Use",
"this",
"API",
"to",
"update",
"nsconsoleloginprompt",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nsconsoleloginprompt.java#L91-L95 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nsconsoleloginprompt.java | nsconsoleloginprompt.unset | public static base_response unset(nitro_service client, nsconsoleloginprompt resource, String[] args) throws Exception{
nsconsoleloginprompt unsetresource = new nsconsoleloginprompt();
return unsetresource.unset_resource(client,args);
} | java | public static base_response unset(nitro_service client, nsconsoleloginprompt resource, String[] args) throws Exception{
nsconsoleloginprompt unsetresource = new nsconsoleloginprompt();
return unsetresource.unset_resource(client,args);
} | [
"public",
"static",
"base_response",
"unset",
"(",
"nitro_service",
"client",
",",
"nsconsoleloginprompt",
"resource",
",",
"String",
"[",
"]",
"args",
")",
"throws",
"Exception",
"{",
"nsconsoleloginprompt",
"unsetresource",
"=",
"new",
"nsconsoleloginprompt",
"(",
")",
";",
"return",
"unsetresource",
".",
"unset_resource",
"(",
"client",
",",
"args",
")",
";",
"}"
] | Use this API to unset the properties of nsconsoleloginprompt resource.
Properties that need to be unset are specified in args array. | [
"Use",
"this",
"API",
"to",
"unset",
"the",
"properties",
"of",
"nsconsoleloginprompt",
"resource",
".",
"Properties",
"that",
"need",
"to",
"be",
"unset",
"are",
"specified",
"in",
"args",
"array",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nsconsoleloginprompt.java#L101-L104 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nsconsoleloginprompt.java | nsconsoleloginprompt.get | public static nsconsoleloginprompt get(nitro_service service, options option) throws Exception{
nsconsoleloginprompt obj = new nsconsoleloginprompt();
nsconsoleloginprompt[] response = (nsconsoleloginprompt[])obj.get_resources(service,option);
return response[0];
} | java | public static nsconsoleloginprompt get(nitro_service service, options option) throws Exception{
nsconsoleloginprompt obj = new nsconsoleloginprompt();
nsconsoleloginprompt[] response = (nsconsoleloginprompt[])obj.get_resources(service,option);
return response[0];
} | [
"public",
"static",
"nsconsoleloginprompt",
"get",
"(",
"nitro_service",
"service",
",",
"options",
"option",
")",
"throws",
"Exception",
"{",
"nsconsoleloginprompt",
"obj",
"=",
"new",
"nsconsoleloginprompt",
"(",
")",
";",
"nsconsoleloginprompt",
"[",
"]",
"response",
"=",
"(",
"nsconsoleloginprompt",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
",",
"option",
")",
";",
"return",
"response",
"[",
"0",
"]",
";",
"}"
] | Use this API to fetch all the nsconsoleloginprompt resources that are configured on netscaler. | [
"Use",
"this",
"API",
"to",
"fetch",
"all",
"the",
"nsconsoleloginprompt",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nsconsoleloginprompt.java#L118-L122 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/network/forwardingsession.java | forwardingsession.add | public static base_response add(nitro_service client, forwardingsession resource) throws Exception {
forwardingsession addresource = new forwardingsession();
addresource.name = resource.name;
addresource.network = resource.network;
addresource.netmask = resource.netmask;
addresource.acl6name = resource.acl6name;
addresource.aclname = resource.aclname;
addresource.connfailover = resource.connfailover;
return addresource.add_resource(client);
} | java | public static base_response add(nitro_service client, forwardingsession resource) throws Exception {
forwardingsession addresource = new forwardingsession();
addresource.name = resource.name;
addresource.network = resource.network;
addresource.netmask = resource.netmask;
addresource.acl6name = resource.acl6name;
addresource.aclname = resource.aclname;
addresource.connfailover = resource.connfailover;
return addresource.add_resource(client);
} | [
"public",
"static",
"base_response",
"add",
"(",
"nitro_service",
"client",
",",
"forwardingsession",
"resource",
")",
"throws",
"Exception",
"{",
"forwardingsession",
"addresource",
"=",
"new",
"forwardingsession",
"(",
")",
";",
"addresource",
".",
"name",
"=",
"resource",
".",
"name",
";",
"addresource",
".",
"network",
"=",
"resource",
".",
"network",
";",
"addresource",
".",
"netmask",
"=",
"resource",
".",
"netmask",
";",
"addresource",
".",
"acl6name",
"=",
"resource",
".",
"acl6name",
";",
"addresource",
".",
"aclname",
"=",
"resource",
".",
"aclname",
";",
"addresource",
".",
"connfailover",
"=",
"resource",
".",
"connfailover",
";",
"return",
"addresource",
".",
"add_resource",
"(",
"client",
")",
";",
"}"
] | Use this API to add forwardingsession. | [
"Use",
"this",
"API",
"to",
"add",
"forwardingsession",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/network/forwardingsession.java#L192-L201 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/network/forwardingsession.java | forwardingsession.add | public static base_responses add(nitro_service client, forwardingsession resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
forwardingsession addresources[] = new forwardingsession[resources.length];
for (int i=0;i<resources.length;i++){
addresources[i] = new forwardingsession();
addresources[i].name = resources[i].name;
addresources[i].network = resources[i].network;
addresources[i].netmask = resources[i].netmask;
addresources[i].acl6name = resources[i].acl6name;
addresources[i].aclname = resources[i].aclname;
addresources[i].connfailover = resources[i].connfailover;
}
result = add_bulk_request(client, addresources);
}
return result;
} | java | public static base_responses add(nitro_service client, forwardingsession resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
forwardingsession addresources[] = new forwardingsession[resources.length];
for (int i=0;i<resources.length;i++){
addresources[i] = new forwardingsession();
addresources[i].name = resources[i].name;
addresources[i].network = resources[i].network;
addresources[i].netmask = resources[i].netmask;
addresources[i].acl6name = resources[i].acl6name;
addresources[i].aclname = resources[i].aclname;
addresources[i].connfailover = resources[i].connfailover;
}
result = add_bulk_request(client, addresources);
}
return result;
} | [
"public",
"static",
"base_responses",
"add",
"(",
"nitro_service",
"client",
",",
"forwardingsession",
"resources",
"[",
"]",
")",
"throws",
"Exception",
"{",
"base_responses",
"result",
"=",
"null",
";",
"if",
"(",
"resources",
"!=",
"null",
"&&",
"resources",
".",
"length",
">",
"0",
")",
"{",
"forwardingsession",
"addresources",
"[",
"]",
"=",
"new",
"forwardingsession",
"[",
"resources",
".",
"length",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"resources",
".",
"length",
";",
"i",
"++",
")",
"{",
"addresources",
"[",
"i",
"]",
"=",
"new",
"forwardingsession",
"(",
")",
";",
"addresources",
"[",
"i",
"]",
".",
"name",
"=",
"resources",
"[",
"i",
"]",
".",
"name",
";",
"addresources",
"[",
"i",
"]",
".",
"network",
"=",
"resources",
"[",
"i",
"]",
".",
"network",
";",
"addresources",
"[",
"i",
"]",
".",
"netmask",
"=",
"resources",
"[",
"i",
"]",
".",
"netmask",
";",
"addresources",
"[",
"i",
"]",
".",
"acl6name",
"=",
"resources",
"[",
"i",
"]",
".",
"acl6name",
";",
"addresources",
"[",
"i",
"]",
".",
"aclname",
"=",
"resources",
"[",
"i",
"]",
".",
"aclname",
";",
"addresources",
"[",
"i",
"]",
".",
"connfailover",
"=",
"resources",
"[",
"i",
"]",
".",
"connfailover",
";",
"}",
"result",
"=",
"add_bulk_request",
"(",
"client",
",",
"addresources",
")",
";",
"}",
"return",
"result",
";",
"}"
] | Use this API to add forwardingsession resources. | [
"Use",
"this",
"API",
"to",
"add",
"forwardingsession",
"resources",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/network/forwardingsession.java#L206-L222 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/network/forwardingsession.java | forwardingsession.update | public static base_response update(nitro_service client, forwardingsession resource) throws Exception {
forwardingsession updateresource = new forwardingsession();
updateresource.name = resource.name;
updateresource.connfailover = resource.connfailover;
return updateresource.update_resource(client);
} | java | public static base_response update(nitro_service client, forwardingsession resource) throws Exception {
forwardingsession updateresource = new forwardingsession();
updateresource.name = resource.name;
updateresource.connfailover = resource.connfailover;
return updateresource.update_resource(client);
} | [
"public",
"static",
"base_response",
"update",
"(",
"nitro_service",
"client",
",",
"forwardingsession",
"resource",
")",
"throws",
"Exception",
"{",
"forwardingsession",
"updateresource",
"=",
"new",
"forwardingsession",
"(",
")",
";",
"updateresource",
".",
"name",
"=",
"resource",
".",
"name",
";",
"updateresource",
".",
"connfailover",
"=",
"resource",
".",
"connfailover",
";",
"return",
"updateresource",
".",
"update_resource",
"(",
"client",
")",
";",
"}"
] | Use this API to update forwardingsession. | [
"Use",
"this",
"API",
"to",
"update",
"forwardingsession",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/network/forwardingsession.java#L227-L232 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/network/forwardingsession.java | forwardingsession.update | public static base_responses update(nitro_service client, forwardingsession resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
forwardingsession updateresources[] = new forwardingsession[resources.length];
for (int i=0;i<resources.length;i++){
updateresources[i] = new forwardingsession();
updateresources[i].name = resources[i].name;
updateresources[i].connfailover = resources[i].connfailover;
}
result = update_bulk_request(client, updateresources);
}
return result;
} | java | public static base_responses update(nitro_service client, forwardingsession resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
forwardingsession updateresources[] = new forwardingsession[resources.length];
for (int i=0;i<resources.length;i++){
updateresources[i] = new forwardingsession();
updateresources[i].name = resources[i].name;
updateresources[i].connfailover = resources[i].connfailover;
}
result = update_bulk_request(client, updateresources);
}
return result;
} | [
"public",
"static",
"base_responses",
"update",
"(",
"nitro_service",
"client",
",",
"forwardingsession",
"resources",
"[",
"]",
")",
"throws",
"Exception",
"{",
"base_responses",
"result",
"=",
"null",
";",
"if",
"(",
"resources",
"!=",
"null",
"&&",
"resources",
".",
"length",
">",
"0",
")",
"{",
"forwardingsession",
"updateresources",
"[",
"]",
"=",
"new",
"forwardingsession",
"[",
"resources",
".",
"length",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"resources",
".",
"length",
";",
"i",
"++",
")",
"{",
"updateresources",
"[",
"i",
"]",
"=",
"new",
"forwardingsession",
"(",
")",
";",
"updateresources",
"[",
"i",
"]",
".",
"name",
"=",
"resources",
"[",
"i",
"]",
".",
"name",
";",
"updateresources",
"[",
"i",
"]",
".",
"connfailover",
"=",
"resources",
"[",
"i",
"]",
".",
"connfailover",
";",
"}",
"result",
"=",
"update_bulk_request",
"(",
"client",
",",
"updateresources",
")",
";",
"}",
"return",
"result",
";",
"}"
] | Use this API to update forwardingsession resources. | [
"Use",
"this",
"API",
"to",
"update",
"forwardingsession",
"resources",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/network/forwardingsession.java#L237-L249 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/network/forwardingsession.java | forwardingsession.get | public static forwardingsession[] get(nitro_service service) throws Exception{
forwardingsession obj = new forwardingsession();
forwardingsession[] response = (forwardingsession[])obj.get_resources(service);
return response;
} | java | public static forwardingsession[] get(nitro_service service) throws Exception{
forwardingsession obj = new forwardingsession();
forwardingsession[] response = (forwardingsession[])obj.get_resources(service);
return response;
} | [
"public",
"static",
"forwardingsession",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
")",
"throws",
"Exception",
"{",
"forwardingsession",
"obj",
"=",
"new",
"forwardingsession",
"(",
")",
";",
"forwardingsession",
"[",
"]",
"response",
"=",
"(",
"forwardingsession",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch all the forwardingsession resources that are configured on netscaler. | [
"Use",
"this",
"API",
"to",
"fetch",
"all",
"the",
"forwardingsession",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/network/forwardingsession.java#L304-L308 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/network/forwardingsession.java | forwardingsession.get | public static forwardingsession get(nitro_service service, String name) throws Exception{
forwardingsession obj = new forwardingsession();
obj.set_name(name);
forwardingsession response = (forwardingsession) obj.get_resource(service);
return response;
} | java | public static forwardingsession get(nitro_service service, String name) throws Exception{
forwardingsession obj = new forwardingsession();
obj.set_name(name);
forwardingsession response = (forwardingsession) obj.get_resource(service);
return response;
} | [
"public",
"static",
"forwardingsession",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"forwardingsession",
"obj",
"=",
"new",
"forwardingsession",
"(",
")",
";",
"obj",
".",
"set_name",
"(",
"name",
")",
";",
"forwardingsession",
"response",
"=",
"(",
"forwardingsession",
")",
"obj",
".",
"get_resource",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch forwardingsession resource of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"forwardingsession",
"resource",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/network/forwardingsession.java#L320-L325 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/aaa/aaapreauthenticationpolicy_vpnvserver_binding.java | aaapreauthenticationpolicy_vpnvserver_binding.get | public static aaapreauthenticationpolicy_vpnvserver_binding[] get(nitro_service service, String name) throws Exception{
aaapreauthenticationpolicy_vpnvserver_binding obj = new aaapreauthenticationpolicy_vpnvserver_binding();
obj.set_name(name);
aaapreauthenticationpolicy_vpnvserver_binding response[] = (aaapreauthenticationpolicy_vpnvserver_binding[]) obj.get_resources(service);
return response;
} | java | public static aaapreauthenticationpolicy_vpnvserver_binding[] get(nitro_service service, String name) throws Exception{
aaapreauthenticationpolicy_vpnvserver_binding obj = new aaapreauthenticationpolicy_vpnvserver_binding();
obj.set_name(name);
aaapreauthenticationpolicy_vpnvserver_binding response[] = (aaapreauthenticationpolicy_vpnvserver_binding[]) obj.get_resources(service);
return response;
} | [
"public",
"static",
"aaapreauthenticationpolicy_vpnvserver_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"aaapreauthenticationpolicy_vpnvserver_binding",
"obj",
"=",
"new",
"aaapreauthenticationpolicy_vpnvserver_binding",
"(",
")",
";",
"obj",
".",
"set_name",
"(",
"name",
")",
";",
"aaapreauthenticationpolicy_vpnvserver_binding",
"response",
"[",
"]",
"=",
"(",
"aaapreauthenticationpolicy_vpnvserver_binding",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch aaapreauthenticationpolicy_vpnvserver_binding resources of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"aaapreauthenticationpolicy_vpnvserver_binding",
"resources",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/aaa/aaapreauthenticationpolicy_vpnvserver_binding.java#L132-L137 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/authentication/authenticationcertpolicy_vpnvserver_binding.java | authenticationcertpolicy_vpnvserver_binding.get | public static authenticationcertpolicy_vpnvserver_binding[] get(nitro_service service, String name) throws Exception{
authenticationcertpolicy_vpnvserver_binding obj = new authenticationcertpolicy_vpnvserver_binding();
obj.set_name(name);
authenticationcertpolicy_vpnvserver_binding response[] = (authenticationcertpolicy_vpnvserver_binding[]) obj.get_resources(service);
return response;
} | java | public static authenticationcertpolicy_vpnvserver_binding[] get(nitro_service service, String name) throws Exception{
authenticationcertpolicy_vpnvserver_binding obj = new authenticationcertpolicy_vpnvserver_binding();
obj.set_name(name);
authenticationcertpolicy_vpnvserver_binding response[] = (authenticationcertpolicy_vpnvserver_binding[]) obj.get_resources(service);
return response;
} | [
"public",
"static",
"authenticationcertpolicy_vpnvserver_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"authenticationcertpolicy_vpnvserver_binding",
"obj",
"=",
"new",
"authenticationcertpolicy_vpnvserver_binding",
"(",
")",
";",
"obj",
".",
"set_name",
"(",
"name",
")",
";",
"authenticationcertpolicy_vpnvserver_binding",
"response",
"[",
"]",
"=",
"(",
"authenticationcertpolicy_vpnvserver_binding",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch authenticationcertpolicy_vpnvserver_binding resources of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"authenticationcertpolicy_vpnvserver_binding",
"resources",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/authentication/authenticationcertpolicy_vpnvserver_binding.java#L132-L137 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwpolicy.java | appfwpolicy.get | public static appfwpolicy[] get(nitro_service service) throws Exception{
appfwpolicy obj = new appfwpolicy();
appfwpolicy[] response = (appfwpolicy[])obj.get_resources(service);
return response;
} | java | public static appfwpolicy[] get(nitro_service service) throws Exception{
appfwpolicy obj = new appfwpolicy();
appfwpolicy[] response = (appfwpolicy[])obj.get_resources(service);
return response;
} | [
"public",
"static",
"appfwpolicy",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
")",
"throws",
"Exception",
"{",
"appfwpolicy",
"obj",
"=",
"new",
"appfwpolicy",
"(",
")",
";",
"appfwpolicy",
"[",
"]",
"response",
"=",
"(",
"appfwpolicy",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch all the appfwpolicy resources that are configured on netscaler. | [
"Use",
"this",
"API",
"to",
"fetch",
"all",
"the",
"appfwpolicy",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwpolicy.java#L413-L417 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwpolicy.java | appfwpolicy.get | public static appfwpolicy get(nitro_service service, String name) throws Exception{
appfwpolicy obj = new appfwpolicy();
obj.set_name(name);
appfwpolicy response = (appfwpolicy) obj.get_resource(service);
return response;
} | java | public static appfwpolicy get(nitro_service service, String name) throws Exception{
appfwpolicy obj = new appfwpolicy();
obj.set_name(name);
appfwpolicy response = (appfwpolicy) obj.get_resource(service);
return response;
} | [
"public",
"static",
"appfwpolicy",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"appfwpolicy",
"obj",
"=",
"new",
"appfwpolicy",
"(",
")",
";",
"obj",
".",
"set_name",
"(",
"name",
")",
";",
"appfwpolicy",
"response",
"=",
"(",
"appfwpolicy",
")",
"obj",
".",
"get_resource",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch appfwpolicy resource of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"appfwpolicy",
"resource",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwpolicy.java#L429-L434 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwpolicy.java | appfwpolicy.get_filtered | public static appfwpolicy[] get_filtered(nitro_service service, filtervalue[] filter) throws Exception{
appfwpolicy obj = new appfwpolicy();
options option = new options();
option.set_filter(filter);
appfwpolicy[] response = (appfwpolicy[]) obj.getfiltered(service, option);
return response;
} | java | public static appfwpolicy[] get_filtered(nitro_service service, filtervalue[] filter) throws Exception{
appfwpolicy obj = new appfwpolicy();
options option = new options();
option.set_filter(filter);
appfwpolicy[] response = (appfwpolicy[]) obj.getfiltered(service, option);
return response;
} | [
"public",
"static",
"appfwpolicy",
"[",
"]",
"get_filtered",
"(",
"nitro_service",
"service",
",",
"filtervalue",
"[",
"]",
"filter",
")",
"throws",
"Exception",
"{",
"appfwpolicy",
"obj",
"=",
"new",
"appfwpolicy",
"(",
")",
";",
"options",
"option",
"=",
"new",
"options",
"(",
")",
";",
"option",
".",
"set_filter",
"(",
"filter",
")",
";",
"appfwpolicy",
"[",
"]",
"response",
"=",
"(",
"appfwpolicy",
"[",
"]",
")",
"obj",
".",
"getfiltered",
"(",
"service",
",",
"option",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch filtered set of appfwpolicy resources.
set the filter parameter values in filtervalue object. | [
"Use",
"this",
"API",
"to",
"fetch",
"filtered",
"set",
"of",
"appfwpolicy",
"resources",
".",
"set",
"the",
"filter",
"parameter",
"values",
"in",
"filtervalue",
"object",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwpolicy.java#L468-L474 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/ie/crf/NERGUI.java | NERGUI.buildContentPanel | private void buildContentPanel() {
editorPane = new JEditorPane ();
editorPane.setContentType("text/rtf");
editorPane.addKeyListener(new InputListener());
// defaultAttrSet = ((StyledEditorKit)editorPane.getEditorKit()).getInputAttributes();
StyleConstants.setFontFamily(defaultAttrSet, "Lucida Sans");
Document doc = new DefaultStyledDocument();
editorPane.setDocument(doc);
try {
doc.insertString(0, initText, defaultAttrSet);
} catch (Exception ex) {
throw new RuntimeException(ex);
}
JScrollPane scrollPane = new JScrollPane(editorPane);
frame.getContentPane().add(scrollPane, BorderLayout.CENTER);
editorPane.setEditable(true);
} | java | private void buildContentPanel() {
editorPane = new JEditorPane ();
editorPane.setContentType("text/rtf");
editorPane.addKeyListener(new InputListener());
// defaultAttrSet = ((StyledEditorKit)editorPane.getEditorKit()).getInputAttributes();
StyleConstants.setFontFamily(defaultAttrSet, "Lucida Sans");
Document doc = new DefaultStyledDocument();
editorPane.setDocument(doc);
try {
doc.insertString(0, initText, defaultAttrSet);
} catch (Exception ex) {
throw new RuntimeException(ex);
}
JScrollPane scrollPane = new JScrollPane(editorPane);
frame.getContentPane().add(scrollPane, BorderLayout.CENTER);
editorPane.setEditable(true);
} | [
"private",
"void",
"buildContentPanel",
"(",
")",
"{",
"editorPane",
"=",
"new",
"JEditorPane",
"(",
")",
";",
"editorPane",
".",
"setContentType",
"(",
"\"text/rtf\"",
")",
";",
"editorPane",
".",
"addKeyListener",
"(",
"new",
"InputListener",
"(",
")",
")",
";",
"// defaultAttrSet = ((StyledEditorKit)editorPane.getEditorKit()).getInputAttributes();\r",
"StyleConstants",
".",
"setFontFamily",
"(",
"defaultAttrSet",
",",
"\"Lucida Sans\"",
")",
";",
"Document",
"doc",
"=",
"new",
"DefaultStyledDocument",
"(",
")",
";",
"editorPane",
".",
"setDocument",
"(",
"doc",
")",
";",
"try",
"{",
"doc",
".",
"insertString",
"(",
"0",
",",
"initText",
",",
"defaultAttrSet",
")",
";",
"}",
"catch",
"(",
"Exception",
"ex",
")",
"{",
"throw",
"new",
"RuntimeException",
"(",
"ex",
")",
";",
"}",
"JScrollPane",
"scrollPane",
"=",
"new",
"JScrollPane",
"(",
"editorPane",
")",
";",
"frame",
".",
"getContentPane",
"(",
")",
".",
"add",
"(",
"scrollPane",
",",
"BorderLayout",
".",
"CENTER",
")",
";",
"editorPane",
".",
"setEditable",
"(",
"true",
")",
";",
"}"
] | private String initText = "In"; | [
"private",
"String",
"initText",
"=",
"In",
";"
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/ie/crf/NERGUI.java#L583-L604 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/ie/crf/NERGUI.java | NERGUI.getNColors | public static Color[] getNColors(int n) {
Color[] colors = new Color[n];
if (n <= basicColors.length) {
System.arraycopy(basicColors, 0, colors, 0, n);
} else {
int s = 255 / (int)Math.ceil(Math.pow(n, (1.0 / 3.0)));
int index = 0;
OUTER: for (int i = 0; i < 256; i += s) {
for (int j = 0; j < 256; j += s) {
for (int k = 0; k < 256; k += s) {
colors[index++] = new Color(i,j,k);
if (index == n) { break OUTER; }
}
}
}
}
return colors;
} | java | public static Color[] getNColors(int n) {
Color[] colors = new Color[n];
if (n <= basicColors.length) {
System.arraycopy(basicColors, 0, colors, 0, n);
} else {
int s = 255 / (int)Math.ceil(Math.pow(n, (1.0 / 3.0)));
int index = 0;
OUTER: for (int i = 0; i < 256; i += s) {
for (int j = 0; j < 256; j += s) {
for (int k = 0; k < 256; k += s) {
colors[index++] = new Color(i,j,k);
if (index == n) { break OUTER; }
}
}
}
}
return colors;
} | [
"public",
"static",
"Color",
"[",
"]",
"getNColors",
"(",
"int",
"n",
")",
"{",
"Color",
"[",
"]",
"colors",
"=",
"new",
"Color",
"[",
"n",
"]",
";",
"if",
"(",
"n",
"<=",
"basicColors",
".",
"length",
")",
"{",
"System",
".",
"arraycopy",
"(",
"basicColors",
",",
"0",
",",
"colors",
",",
"0",
",",
"n",
")",
";",
"}",
"else",
"{",
"int",
"s",
"=",
"255",
"/",
"(",
"int",
")",
"Math",
".",
"ceil",
"(",
"Math",
".",
"pow",
"(",
"n",
",",
"(",
"1.0",
"/",
"3.0",
")",
")",
")",
";",
"int",
"index",
"=",
"0",
";",
"OUTER",
":",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"256",
";",
"i",
"+=",
"s",
")",
"{",
"for",
"(",
"int",
"j",
"=",
"0",
";",
"j",
"<",
"256",
";",
"j",
"+=",
"s",
")",
"{",
"for",
"(",
"int",
"k",
"=",
"0",
";",
"k",
"<",
"256",
";",
"k",
"+=",
"s",
")",
"{",
"colors",
"[",
"index",
"++",
"]",
"=",
"new",
"Color",
"(",
"i",
",",
"j",
",",
"k",
")",
";",
"if",
"(",
"index",
"==",
"n",
")",
"{",
"break",
"OUTER",
";",
"}",
"}",
"}",
"}",
"}",
"return",
"colors",
";",
"}"
] | Color.DARK_GRAY}; | [
"Color",
".",
"DARK_GRAY",
"}",
";"
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/ie/crf/NERGUI.java#L747-L764 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/ie/crf/NERGUI.java | NERGUI.main | public static void main(String[] args) {
//Schedule a job for the event-dispatching thread:
//creating and showing this application's GUI.
SwingUtilities.invokeLater(new Runnable() {
public void run() {
NERGUI gui = new NERGUI();
gui.createAndShowGUI();
}
});
} | java | public static void main(String[] args) {
//Schedule a job for the event-dispatching thread:
//creating and showing this application's GUI.
SwingUtilities.invokeLater(new Runnable() {
public void run() {
NERGUI gui = new NERGUI();
gui.createAndShowGUI();
}
});
} | [
"public",
"static",
"void",
"main",
"(",
"String",
"[",
"]",
"args",
")",
"{",
"//Schedule a job for the event-dispatching thread:\r",
"//creating and showing this application's GUI.\r",
"SwingUtilities",
".",
"invokeLater",
"(",
"new",
"Runnable",
"(",
")",
"{",
"public",
"void",
"run",
"(",
")",
"{",
"NERGUI",
"gui",
"=",
"new",
"NERGUI",
"(",
")",
";",
"gui",
".",
"createAndShowGUI",
"(",
")",
";",
"}",
"}",
")",
";",
"}"
] | Run the GUI. This program accepts no command-line arguments.
Everything is entered into the GUI. | [
"Run",
"the",
"GUI",
".",
"This",
"program",
"accepts",
"no",
"command",
"-",
"line",
"arguments",
".",
"Everything",
"is",
"entered",
"into",
"the",
"GUI",
"."
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/ie/crf/NERGUI.java#L769-L778 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/ha/hanode_partialfailureinterfaces_binding.java | hanode_partialfailureinterfaces_binding.get | public static hanode_partialfailureinterfaces_binding[] get(nitro_service service, Long id) throws Exception{
hanode_partialfailureinterfaces_binding obj = new hanode_partialfailureinterfaces_binding();
obj.set_id(id);
hanode_partialfailureinterfaces_binding response[] = (hanode_partialfailureinterfaces_binding[]) obj.get_resources(service);
return response;
} | java | public static hanode_partialfailureinterfaces_binding[] get(nitro_service service, Long id) throws Exception{
hanode_partialfailureinterfaces_binding obj = new hanode_partialfailureinterfaces_binding();
obj.set_id(id);
hanode_partialfailureinterfaces_binding response[] = (hanode_partialfailureinterfaces_binding[]) obj.get_resources(service);
return response;
} | [
"public",
"static",
"hanode_partialfailureinterfaces_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"Long",
"id",
")",
"throws",
"Exception",
"{",
"hanode_partialfailureinterfaces_binding",
"obj",
"=",
"new",
"hanode_partialfailureinterfaces_binding",
"(",
")",
";",
"obj",
".",
"set_id",
"(",
"id",
")",
";",
"hanode_partialfailureinterfaces_binding",
"response",
"[",
"]",
"=",
"(",
"hanode_partialfailureinterfaces_binding",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch hanode_partialfailureinterfaces_binding resources of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"hanode_partialfailureinterfaces_binding",
"resources",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ha/hanode_partialfailureinterfaces_binding.java#L143-L148 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/network/l4param.java | l4param.update | public static base_response update(nitro_service client, l4param resource) throws Exception {
l4param updateresource = new l4param();
updateresource.l2connmethod = resource.l2connmethod;
updateresource.l4switch = resource.l4switch;
return updateresource.update_resource(client);
} | java | public static base_response update(nitro_service client, l4param resource) throws Exception {
l4param updateresource = new l4param();
updateresource.l2connmethod = resource.l2connmethod;
updateresource.l4switch = resource.l4switch;
return updateresource.update_resource(client);
} | [
"public",
"static",
"base_response",
"update",
"(",
"nitro_service",
"client",
",",
"l4param",
"resource",
")",
"throws",
"Exception",
"{",
"l4param",
"updateresource",
"=",
"new",
"l4param",
"(",
")",
";",
"updateresource",
".",
"l2connmethod",
"=",
"resource",
".",
"l2connmethod",
";",
"updateresource",
".",
"l4switch",
"=",
"resource",
".",
"l4switch",
";",
"return",
"updateresource",
".",
"update_resource",
"(",
"client",
")",
";",
"}"
] | Use this API to update l4param. | [
"Use",
"this",
"API",
"to",
"update",
"l4param",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/network/l4param.java#L113-L118 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/network/l4param.java | l4param.unset | public static base_response unset(nitro_service client, l4param resource, String[] args) throws Exception{
l4param unsetresource = new l4param();
return unsetresource.unset_resource(client,args);
} | java | public static base_response unset(nitro_service client, l4param resource, String[] args) throws Exception{
l4param unsetresource = new l4param();
return unsetresource.unset_resource(client,args);
} | [
"public",
"static",
"base_response",
"unset",
"(",
"nitro_service",
"client",
",",
"l4param",
"resource",
",",
"String",
"[",
"]",
"args",
")",
"throws",
"Exception",
"{",
"l4param",
"unsetresource",
"=",
"new",
"l4param",
"(",
")",
";",
"return",
"unsetresource",
".",
"unset_resource",
"(",
"client",
",",
"args",
")",
";",
"}"
] | Use this API to unset the properties of l4param resource.
Properties that need to be unset are specified in args array. | [
"Use",
"this",
"API",
"to",
"unset",
"the",
"properties",
"of",
"l4param",
"resource",
".",
"Properties",
"that",
"need",
"to",
"be",
"unset",
"are",
"specified",
"in",
"args",
"array",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/network/l4param.java#L124-L127 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/network/l4param.java | l4param.get | public static l4param get(nitro_service service) throws Exception{
l4param obj = new l4param();
l4param[] response = (l4param[])obj.get_resources(service);
return response[0];
} | java | public static l4param get(nitro_service service) throws Exception{
l4param obj = new l4param();
l4param[] response = (l4param[])obj.get_resources(service);
return response[0];
} | [
"public",
"static",
"l4param",
"get",
"(",
"nitro_service",
"service",
")",
"throws",
"Exception",
"{",
"l4param",
"obj",
"=",
"new",
"l4param",
"(",
")",
";",
"l4param",
"[",
"]",
"response",
"=",
"(",
"l4param",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
"[",
"0",
"]",
";",
"}"
] | Use this API to fetch all the l4param resources that are configured on netscaler. | [
"Use",
"this",
"API",
"to",
"fetch",
"all",
"the",
"l4param",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/network/l4param.java#L132-L136 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/trees/international/pennchinese/CHTBLexer.java | CHTBLexer.main | public static void main(String argv[]) {
if (argv.length == 0) {
System.out.println("Usage : java CHTBLexer <inputfile>");
}
else {
for (int i = 0; i < argv.length; i++) {
CHTBLexer scanner = null;
try {
scanner = new CHTBLexer( new java.io.FileReader(argv[i]) );
while ( !scanner.zzAtEOF ) scanner.yylex();
}
catch (java.io.FileNotFoundException e) {
System.out.println("File not found : \""+argv[i]+"\"");
}
catch (java.io.IOException e) {
System.out.println("IO error scanning file \""+argv[i]+"\"");
System.out.println(e);
}
catch (Exception e) {
System.out.println("Unexpected exception:");
e.printStackTrace();
}
}
}
} | java | public static void main(String argv[]) {
if (argv.length == 0) {
System.out.println("Usage : java CHTBLexer <inputfile>");
}
else {
for (int i = 0; i < argv.length; i++) {
CHTBLexer scanner = null;
try {
scanner = new CHTBLexer( new java.io.FileReader(argv[i]) );
while ( !scanner.zzAtEOF ) scanner.yylex();
}
catch (java.io.FileNotFoundException e) {
System.out.println("File not found : \""+argv[i]+"\"");
}
catch (java.io.IOException e) {
System.out.println("IO error scanning file \""+argv[i]+"\"");
System.out.println(e);
}
catch (Exception e) {
System.out.println("Unexpected exception:");
e.printStackTrace();
}
}
}
} | [
"public",
"static",
"void",
"main",
"(",
"String",
"argv",
"[",
"]",
")",
"{",
"if",
"(",
"argv",
".",
"length",
"==",
"0",
")",
"{",
"System",
".",
"out",
".",
"println",
"(",
"\"Usage : java CHTBLexer <inputfile>\"",
")",
";",
"}",
"else",
"{",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"argv",
".",
"length",
";",
"i",
"++",
")",
"{",
"CHTBLexer",
"scanner",
"=",
"null",
";",
"try",
"{",
"scanner",
"=",
"new",
"CHTBLexer",
"(",
"new",
"java",
".",
"io",
".",
"FileReader",
"(",
"argv",
"[",
"i",
"]",
")",
")",
";",
"while",
"(",
"!",
"scanner",
".",
"zzAtEOF",
")",
"scanner",
".",
"yylex",
"(",
")",
";",
"}",
"catch",
"(",
"java",
".",
"io",
".",
"FileNotFoundException",
"e",
")",
"{",
"System",
".",
"out",
".",
"println",
"(",
"\"File not found : \\\"\"",
"+",
"argv",
"[",
"i",
"]",
"+",
"\"\\\"\"",
")",
";",
"}",
"catch",
"(",
"java",
".",
"io",
".",
"IOException",
"e",
")",
"{",
"System",
".",
"out",
".",
"println",
"(",
"\"IO error scanning file \\\"\"",
"+",
"argv",
"[",
"i",
"]",
"+",
"\"\\\"\"",
")",
";",
"System",
".",
"out",
".",
"println",
"(",
"e",
")",
";",
"}",
"catch",
"(",
"Exception",
"e",
")",
"{",
"System",
".",
"out",
".",
"println",
"(",
"\"Unexpected exception:\"",
")",
";",
"e",
".",
"printStackTrace",
"(",
")",
";",
"}",
"}",
"}",
"}"
] | Runs the scanner on input files.
This is a standalone scanner, it will print any unmatched
text to System.out unchanged.
@param argv the command line, contains the filenames to run
the scanner on. | [
"Runs",
"the",
"scanner",
"on",
"input",
"files",
"."
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/trees/international/pennchinese/CHTBLexer.java#L760-L784 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/lb/lbmetrictable_metric_binding.java | lbmetrictable_metric_binding.get | public static lbmetrictable_metric_binding[] get(nitro_service service, String metrictable) throws Exception{
lbmetrictable_metric_binding obj = new lbmetrictable_metric_binding();
obj.set_metrictable(metrictable);
lbmetrictable_metric_binding response[] = (lbmetrictable_metric_binding[]) obj.get_resources(service);
return response;
} | java | public static lbmetrictable_metric_binding[] get(nitro_service service, String metrictable) throws Exception{
lbmetrictable_metric_binding obj = new lbmetrictable_metric_binding();
obj.set_metrictable(metrictable);
lbmetrictable_metric_binding response[] = (lbmetrictable_metric_binding[]) obj.get_resources(service);
return response;
} | [
"public",
"static",
"lbmetrictable_metric_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"metrictable",
")",
"throws",
"Exception",
"{",
"lbmetrictable_metric_binding",
"obj",
"=",
"new",
"lbmetrictable_metric_binding",
"(",
")",
";",
"obj",
".",
"set_metrictable",
"(",
"metrictable",
")",
";",
"lbmetrictable_metric_binding",
"response",
"[",
"]",
"=",
"(",
"lbmetrictable_metric_binding",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch lbmetrictable_metric_binding resources of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"lbmetrictable_metric_binding",
"resources",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/lb/lbmetrictable_metric_binding.java#L185-L190 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/lb/lbmetrictable_metric_binding.java | lbmetrictable_metric_binding.count | public static long count(nitro_service service, String metrictable) throws Exception{
lbmetrictable_metric_binding obj = new lbmetrictable_metric_binding();
obj.set_metrictable(metrictable);
options option = new options();
option.set_count(true);
lbmetrictable_metric_binding response[] = (lbmetrictable_metric_binding[]) obj.get_resources(service,option);
if (response != null) {
return response[0].__count;
}
return 0;
} | java | public static long count(nitro_service service, String metrictable) throws Exception{
lbmetrictable_metric_binding obj = new lbmetrictable_metric_binding();
obj.set_metrictable(metrictable);
options option = new options();
option.set_count(true);
lbmetrictable_metric_binding response[] = (lbmetrictable_metric_binding[]) obj.get_resources(service,option);
if (response != null) {
return response[0].__count;
}
return 0;
} | [
"public",
"static",
"long",
"count",
"(",
"nitro_service",
"service",
",",
"String",
"metrictable",
")",
"throws",
"Exception",
"{",
"lbmetrictable_metric_binding",
"obj",
"=",
"new",
"lbmetrictable_metric_binding",
"(",
")",
";",
"obj",
".",
"set_metrictable",
"(",
"metrictable",
")",
";",
"options",
"option",
"=",
"new",
"options",
"(",
")",
";",
"option",
".",
"set_count",
"(",
"true",
")",
";",
"lbmetrictable_metric_binding",
"response",
"[",
"]",
"=",
"(",
"lbmetrictable_metric_binding",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
",",
"option",
")",
";",
"if",
"(",
"response",
"!=",
"null",
")",
"{",
"return",
"response",
"[",
"0",
"]",
".",
"__count",
";",
"}",
"return",
"0",
";",
"}"
] | Use this API to count lbmetrictable_metric_binding resources configued on NetScaler. | [
"Use",
"this",
"API",
"to",
"count",
"lbmetrictable_metric_binding",
"resources",
"configued",
"on",
"NetScaler",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/lb/lbmetrictable_metric_binding.java#L221-L231 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/appflow/appflowpolicy.java | appflowpolicy.get | public static appflowpolicy[] get(nitro_service service) throws Exception{
appflowpolicy obj = new appflowpolicy();
appflowpolicy[] response = (appflowpolicy[])obj.get_resources(service);
return response;
} | java | public static appflowpolicy[] get(nitro_service service) throws Exception{
appflowpolicy obj = new appflowpolicy();
appflowpolicy[] response = (appflowpolicy[])obj.get_resources(service);
return response;
} | [
"public",
"static",
"appflowpolicy",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
")",
"throws",
"Exception",
"{",
"appflowpolicy",
"obj",
"=",
"new",
"appflowpolicy",
"(",
")",
";",
"appflowpolicy",
"[",
"]",
"response",
"=",
"(",
"appflowpolicy",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch all the appflowpolicy resources that are configured on netscaler. | [
"Use",
"this",
"API",
"to",
"fetch",
"all",
"the",
"appflowpolicy",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/appflow/appflowpolicy.java#L392-L396 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/appflow/appflowpolicy.java | appflowpolicy.get | public static appflowpolicy get(nitro_service service, String name) throws Exception{
appflowpolicy obj = new appflowpolicy();
obj.set_name(name);
appflowpolicy response = (appflowpolicy) obj.get_resource(service);
return response;
} | java | public static appflowpolicy get(nitro_service service, String name) throws Exception{
appflowpolicy obj = new appflowpolicy();
obj.set_name(name);
appflowpolicy response = (appflowpolicy) obj.get_resource(service);
return response;
} | [
"public",
"static",
"appflowpolicy",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"appflowpolicy",
"obj",
"=",
"new",
"appflowpolicy",
"(",
")",
";",
"obj",
".",
"set_name",
"(",
"name",
")",
";",
"appflowpolicy",
"response",
"=",
"(",
"appflowpolicy",
")",
"obj",
".",
"get_resource",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch appflowpolicy resource of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"appflowpolicy",
"resource",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/appflow/appflowpolicy.java#L408-L413 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/appflow/appflowpolicy.java | appflowpolicy.get_filtered | public static appflowpolicy[] get_filtered(nitro_service service, filtervalue[] filter) throws Exception{
appflowpolicy obj = new appflowpolicy();
options option = new options();
option.set_filter(filter);
appflowpolicy[] response = (appflowpolicy[]) obj.getfiltered(service, option);
return response;
} | java | public static appflowpolicy[] get_filtered(nitro_service service, filtervalue[] filter) throws Exception{
appflowpolicy obj = new appflowpolicy();
options option = new options();
option.set_filter(filter);
appflowpolicy[] response = (appflowpolicy[]) obj.getfiltered(service, option);
return response;
} | [
"public",
"static",
"appflowpolicy",
"[",
"]",
"get_filtered",
"(",
"nitro_service",
"service",
",",
"filtervalue",
"[",
"]",
"filter",
")",
"throws",
"Exception",
"{",
"appflowpolicy",
"obj",
"=",
"new",
"appflowpolicy",
"(",
")",
";",
"options",
"option",
"=",
"new",
"options",
"(",
")",
";",
"option",
".",
"set_filter",
"(",
"filter",
")",
";",
"appflowpolicy",
"[",
"]",
"response",
"=",
"(",
"appflowpolicy",
"[",
"]",
")",
"obj",
".",
"getfiltered",
"(",
"service",
",",
"option",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch filtered set of appflowpolicy resources.
set the filter parameter values in filtervalue object. | [
"Use",
"this",
"API",
"to",
"fetch",
"filtered",
"set",
"of",
"appflowpolicy",
"resources",
".",
"set",
"the",
"filter",
"parameter",
"values",
"in",
"filtervalue",
"object",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/appflow/appflowpolicy.java#L447-L453 | train |
RestComm/cluster | cache/src/main/java/org/restcomm/cache/CacheData.java | CacheData.create | public boolean create() {
if (!exists()) {
node = mobicentsCache.getJBossCache().getRoot().addChild(nodeFqn);
if (doTraceLogs) {
logger.trace("created cache node "+nodeFqn);
}
return true;
}
else {
return false;
}
} | java | public boolean create() {
if (!exists()) {
node = mobicentsCache.getJBossCache().getRoot().addChild(nodeFqn);
if (doTraceLogs) {
logger.trace("created cache node "+nodeFqn);
}
return true;
}
else {
return false;
}
} | [
"public",
"boolean",
"create",
"(",
")",
"{",
"if",
"(",
"!",
"exists",
"(",
")",
")",
"{",
"node",
"=",
"mobicentsCache",
".",
"getJBossCache",
"(",
")",
".",
"getRoot",
"(",
")",
".",
"addChild",
"(",
"nodeFqn",
")",
";",
"if",
"(",
"doTraceLogs",
")",
"{",
"logger",
".",
"trace",
"(",
"\"created cache node \"",
"+",
"nodeFqn",
")",
";",
"}",
"return",
"true",
";",
"}",
"else",
"{",
"return",
"false",
";",
"}",
"}"
] | Creates node to hold data in cache | [
"Creates",
"node",
"to",
"hold",
"data",
"in",
"cache"
] | 46bff5e9ae89528ccc7b43ba50a0de5b96913e6f | https://github.com/RestComm/cluster/blob/46bff5e9ae89528ccc7b43ba50a0de5b96913e6f/cache/src/main/java/org/restcomm/cache/CacheData.java#L83-L94 | train |
RestComm/cluster | cache/src/main/java/org/restcomm/cache/CacheData.java | CacheData.remove | public boolean remove() {
if (exists() && !isRemoved()) {
isRemoved = true;
node.getParent().removeChild(nodeFqn.getLastElement());
if (doTraceLogs) {
logger.trace("removed cache node "+nodeFqn);
}
return true;
}
else {
return false;
}
} | java | public boolean remove() {
if (exists() && !isRemoved()) {
isRemoved = true;
node.getParent().removeChild(nodeFqn.getLastElement());
if (doTraceLogs) {
logger.trace("removed cache node "+nodeFqn);
}
return true;
}
else {
return false;
}
} | [
"public",
"boolean",
"remove",
"(",
")",
"{",
"if",
"(",
"exists",
"(",
")",
"&&",
"!",
"isRemoved",
"(",
")",
")",
"{",
"isRemoved",
"=",
"true",
";",
"node",
".",
"getParent",
"(",
")",
".",
"removeChild",
"(",
"nodeFqn",
".",
"getLastElement",
"(",
")",
")",
";",
"if",
"(",
"doTraceLogs",
")",
"{",
"logger",
".",
"trace",
"(",
"\"removed cache node \"",
"+",
"nodeFqn",
")",
";",
"}",
"return",
"true",
";",
"}",
"else",
"{",
"return",
"false",
";",
"}",
"}"
] | Removes node that holds data in cache | [
"Removes",
"node",
"that",
"holds",
"data",
"in",
"cache"
] | 46bff5e9ae89528ccc7b43ba50a0de5b96913e6f | https://github.com/RestComm/cluster/blob/46bff5e9ae89528ccc7b43ba50a0de5b96913e6f/cache/src/main/java/org/restcomm/cache/CacheData.java#L107-L119 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/audit/auditsyslogpolicy_vpnvserver_binding.java | auditsyslogpolicy_vpnvserver_binding.get | public static auditsyslogpolicy_vpnvserver_binding[] get(nitro_service service, String name) throws Exception{
auditsyslogpolicy_vpnvserver_binding obj = new auditsyslogpolicy_vpnvserver_binding();
obj.set_name(name);
auditsyslogpolicy_vpnvserver_binding response[] = (auditsyslogpolicy_vpnvserver_binding[]) obj.get_resources(service);
return response;
} | java | public static auditsyslogpolicy_vpnvserver_binding[] get(nitro_service service, String name) throws Exception{
auditsyslogpolicy_vpnvserver_binding obj = new auditsyslogpolicy_vpnvserver_binding();
obj.set_name(name);
auditsyslogpolicy_vpnvserver_binding response[] = (auditsyslogpolicy_vpnvserver_binding[]) obj.get_resources(service);
return response;
} | [
"public",
"static",
"auditsyslogpolicy_vpnvserver_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"auditsyslogpolicy_vpnvserver_binding",
"obj",
"=",
"new",
"auditsyslogpolicy_vpnvserver_binding",
"(",
")",
";",
"obj",
".",
"set_name",
"(",
"name",
")",
";",
"auditsyslogpolicy_vpnvserver_binding",
"response",
"[",
"]",
"=",
"(",
"auditsyslogpolicy_vpnvserver_binding",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch auditsyslogpolicy_vpnvserver_binding resources of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"auditsyslogpolicy_vpnvserver_binding",
"resources",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/audit/auditsyslogpolicy_vpnvserver_binding.java#L132-L137 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/filter/filterpostbodyinjection.java | filterpostbodyinjection.update | public static base_response update(nitro_service client, filterpostbodyinjection resource) throws Exception {
filterpostbodyinjection updateresource = new filterpostbodyinjection();
updateresource.postbody = resource.postbody;
return updateresource.update_resource(client);
} | java | public static base_response update(nitro_service client, filterpostbodyinjection resource) throws Exception {
filterpostbodyinjection updateresource = new filterpostbodyinjection();
updateresource.postbody = resource.postbody;
return updateresource.update_resource(client);
} | [
"public",
"static",
"base_response",
"update",
"(",
"nitro_service",
"client",
",",
"filterpostbodyinjection",
"resource",
")",
"throws",
"Exception",
"{",
"filterpostbodyinjection",
"updateresource",
"=",
"new",
"filterpostbodyinjection",
"(",
")",
";",
"updateresource",
".",
"postbody",
"=",
"resource",
".",
"postbody",
";",
"return",
"updateresource",
".",
"update_resource",
"(",
"client",
")",
";",
"}"
] | Use this API to update filterpostbodyinjection. | [
"Use",
"this",
"API",
"to",
"update",
"filterpostbodyinjection",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/filter/filterpostbodyinjection.java#L107-L111 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/filter/filterpostbodyinjection.java | filterpostbodyinjection.unset | public static base_response unset(nitro_service client, filterpostbodyinjection resource, String[] args) throws Exception{
filterpostbodyinjection unsetresource = new filterpostbodyinjection();
return unsetresource.unset_resource(client,args);
} | java | public static base_response unset(nitro_service client, filterpostbodyinjection resource, String[] args) throws Exception{
filterpostbodyinjection unsetresource = new filterpostbodyinjection();
return unsetresource.unset_resource(client,args);
} | [
"public",
"static",
"base_response",
"unset",
"(",
"nitro_service",
"client",
",",
"filterpostbodyinjection",
"resource",
",",
"String",
"[",
"]",
"args",
")",
"throws",
"Exception",
"{",
"filterpostbodyinjection",
"unsetresource",
"=",
"new",
"filterpostbodyinjection",
"(",
")",
";",
"return",
"unsetresource",
".",
"unset_resource",
"(",
"client",
",",
"args",
")",
";",
"}"
] | Use this API to unset the properties of filterpostbodyinjection resource.
Properties that need to be unset are specified in args array. | [
"Use",
"this",
"API",
"to",
"unset",
"the",
"properties",
"of",
"filterpostbodyinjection",
"resource",
".",
"Properties",
"that",
"need",
"to",
"be",
"unset",
"are",
"specified",
"in",
"args",
"array",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/filter/filterpostbodyinjection.java#L117-L120 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/filter/filterpostbodyinjection.java | filterpostbodyinjection.get | public static filterpostbodyinjection get(nitro_service service) throws Exception{
filterpostbodyinjection obj = new filterpostbodyinjection();
filterpostbodyinjection[] response = (filterpostbodyinjection[])obj.get_resources(service);
return response[0];
} | java | public static filterpostbodyinjection get(nitro_service service) throws Exception{
filterpostbodyinjection obj = new filterpostbodyinjection();
filterpostbodyinjection[] response = (filterpostbodyinjection[])obj.get_resources(service);
return response[0];
} | [
"public",
"static",
"filterpostbodyinjection",
"get",
"(",
"nitro_service",
"service",
")",
"throws",
"Exception",
"{",
"filterpostbodyinjection",
"obj",
"=",
"new",
"filterpostbodyinjection",
"(",
")",
";",
"filterpostbodyinjection",
"[",
"]",
"response",
"=",
"(",
"filterpostbodyinjection",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
"[",
"0",
"]",
";",
"}"
] | Use this API to fetch all the filterpostbodyinjection resources that are configured on netscaler. | [
"Use",
"this",
"API",
"to",
"fetch",
"all",
"the",
"filterpostbodyinjection",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/filter/filterpostbodyinjection.java#L125-L129 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/network/vrid6_binding.java | vrid6_binding.get | public static vrid6_binding get(nitro_service service, Long id) throws Exception{
vrid6_binding obj = new vrid6_binding();
obj.set_id(id);
vrid6_binding response = (vrid6_binding) obj.get_resource(service);
return response;
} | java | public static vrid6_binding get(nitro_service service, Long id) throws Exception{
vrid6_binding obj = new vrid6_binding();
obj.set_id(id);
vrid6_binding response = (vrid6_binding) obj.get_resource(service);
return response;
} | [
"public",
"static",
"vrid6_binding",
"get",
"(",
"nitro_service",
"service",
",",
"Long",
"id",
")",
"throws",
"Exception",
"{",
"vrid6_binding",
"obj",
"=",
"new",
"vrid6_binding",
"(",
")",
";",
"obj",
".",
"set_id",
"(",
"id",
")",
";",
"vrid6_binding",
"response",
"=",
"(",
"vrid6_binding",
")",
"obj",
".",
"get_resource",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch vrid6_binding resource of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"vrid6_binding",
"resource",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/network/vrid6_binding.java#L137-L142 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/ipsec/ipsecparameter.java | ipsecparameter.update | public static base_response update(nitro_service client, ipsecparameter resource) throws Exception {
ipsecparameter updateresource = new ipsecparameter();
updateresource.ikeversion = resource.ikeversion;
updateresource.encalgo = resource.encalgo;
updateresource.hashalgo = resource.hashalgo;
updateresource.lifetime = resource.lifetime;
updateresource.livenesscheckinterval = resource.livenesscheckinterval;
updateresource.replaywindowsize = resource.replaywindowsize;
updateresource.ikeretryinterval = resource.ikeretryinterval;
updateresource.retransmissiontime = resource.retransmissiontime;
return updateresource.update_resource(client);
} | java | public static base_response update(nitro_service client, ipsecparameter resource) throws Exception {
ipsecparameter updateresource = new ipsecparameter();
updateresource.ikeversion = resource.ikeversion;
updateresource.encalgo = resource.encalgo;
updateresource.hashalgo = resource.hashalgo;
updateresource.lifetime = resource.lifetime;
updateresource.livenesscheckinterval = resource.livenesscheckinterval;
updateresource.replaywindowsize = resource.replaywindowsize;
updateresource.ikeretryinterval = resource.ikeretryinterval;
updateresource.retransmissiontime = resource.retransmissiontime;
return updateresource.update_resource(client);
} | [
"public",
"static",
"base_response",
"update",
"(",
"nitro_service",
"client",
",",
"ipsecparameter",
"resource",
")",
"throws",
"Exception",
"{",
"ipsecparameter",
"updateresource",
"=",
"new",
"ipsecparameter",
"(",
")",
";",
"updateresource",
".",
"ikeversion",
"=",
"resource",
".",
"ikeversion",
";",
"updateresource",
".",
"encalgo",
"=",
"resource",
".",
"encalgo",
";",
"updateresource",
".",
"hashalgo",
"=",
"resource",
".",
"hashalgo",
";",
"updateresource",
".",
"lifetime",
"=",
"resource",
".",
"lifetime",
";",
"updateresource",
".",
"livenesscheckinterval",
"=",
"resource",
".",
"livenesscheckinterval",
";",
"updateresource",
".",
"replaywindowsize",
"=",
"resource",
".",
"replaywindowsize",
";",
"updateresource",
".",
"ikeretryinterval",
"=",
"resource",
".",
"ikeretryinterval",
";",
"updateresource",
".",
"retransmissiontime",
"=",
"resource",
".",
"retransmissiontime",
";",
"return",
"updateresource",
".",
"update_resource",
"(",
"client",
")",
";",
"}"
] | Use this API to update ipsecparameter. | [
"Use",
"this",
"API",
"to",
"update",
"ipsecparameter",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ipsec/ipsecparameter.java#L275-L286 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/ipsec/ipsecparameter.java | ipsecparameter.unset | public static base_response unset(nitro_service client, ipsecparameter resource, String[] args) throws Exception{
ipsecparameter unsetresource = new ipsecparameter();
return unsetresource.unset_resource(client,args);
} | java | public static base_response unset(nitro_service client, ipsecparameter resource, String[] args) throws Exception{
ipsecparameter unsetresource = new ipsecparameter();
return unsetresource.unset_resource(client,args);
} | [
"public",
"static",
"base_response",
"unset",
"(",
"nitro_service",
"client",
",",
"ipsecparameter",
"resource",
",",
"String",
"[",
"]",
"args",
")",
"throws",
"Exception",
"{",
"ipsecparameter",
"unsetresource",
"=",
"new",
"ipsecparameter",
"(",
")",
";",
"return",
"unsetresource",
".",
"unset_resource",
"(",
"client",
",",
"args",
")",
";",
"}"
] | Use this API to unset the properties of ipsecparameter resource.
Properties that need to be unset are specified in args array. | [
"Use",
"this",
"API",
"to",
"unset",
"the",
"properties",
"of",
"ipsecparameter",
"resource",
".",
"Properties",
"that",
"need",
"to",
"be",
"unset",
"are",
"specified",
"in",
"args",
"array",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ipsec/ipsecparameter.java#L292-L295 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/ipsec/ipsecparameter.java | ipsecparameter.get | public static ipsecparameter get(nitro_service service) throws Exception{
ipsecparameter obj = new ipsecparameter();
ipsecparameter[] response = (ipsecparameter[])obj.get_resources(service);
return response[0];
} | java | public static ipsecparameter get(nitro_service service) throws Exception{
ipsecparameter obj = new ipsecparameter();
ipsecparameter[] response = (ipsecparameter[])obj.get_resources(service);
return response[0];
} | [
"public",
"static",
"ipsecparameter",
"get",
"(",
"nitro_service",
"service",
")",
"throws",
"Exception",
"{",
"ipsecparameter",
"obj",
"=",
"new",
"ipsecparameter",
"(",
")",
";",
"ipsecparameter",
"[",
"]",
"response",
"=",
"(",
"ipsecparameter",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
"[",
"0",
"]",
";",
"}"
] | Use this API to fetch all the ipsecparameter resources that are configured on netscaler. | [
"Use",
"this",
"API",
"to",
"fetch",
"all",
"the",
"ipsecparameter",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ipsec/ipsecparameter.java#L300-L304 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nstcpparam.java | nstcpparam.update | public static base_response update(nitro_service client, nstcpparam resource) throws Exception {
nstcpparam updateresource = new nstcpparam();
updateresource.ws = resource.ws;
updateresource.wsval = resource.wsval;
updateresource.sack = resource.sack;
updateresource.learnvsvrmss = resource.learnvsvrmss;
updateresource.maxburst = resource.maxburst;
updateresource.initialcwnd = resource.initialcwnd;
updateresource.recvbuffsize = resource.recvbuffsize;
updateresource.delayedack = resource.delayedack;
updateresource.downstaterst = resource.downstaterst;
updateresource.nagle = resource.nagle;
updateresource.limitedpersist = resource.limitedpersist;
updateresource.oooqsize = resource.oooqsize;
updateresource.ackonpush = resource.ackonpush;
updateresource.maxpktpermss = resource.maxpktpermss;
updateresource.pktperretx = resource.pktperretx;
updateresource.minrto = resource.minrto;
updateresource.slowstartincr = resource.slowstartincr;
updateresource.maxdynserverprobes = resource.maxdynserverprobes;
updateresource.synholdfastgiveup = resource.synholdfastgiveup;
updateresource.maxsynholdperprobe = resource.maxsynholdperprobe;
updateresource.maxsynhold = resource.maxsynhold;
updateresource.msslearninterval = resource.msslearninterval;
updateresource.msslearndelay = resource.msslearndelay;
updateresource.maxtimewaitconn = resource.maxtimewaitconn;
updateresource.kaprobeupdatelastactivity = resource.kaprobeupdatelastactivity;
updateresource.maxsynackretx = resource.maxsynackretx;
updateresource.synattackdetection = resource.synattackdetection;
updateresource.connflushifnomem = resource.connflushifnomem;
updateresource.connflushthres = resource.connflushthres;
updateresource.mptcpconcloseonpassivesf = resource.mptcpconcloseonpassivesf;
updateresource.mptcpchecksum = resource.mptcpchecksum;
updateresource.mptcpsftimeout = resource.mptcpsftimeout;
updateresource.mptcpsfreplacetimeout = resource.mptcpsfreplacetimeout;
updateresource.mptcpmaxsf = resource.mptcpmaxsf;
updateresource.mptcpmaxpendingsf = resource.mptcpmaxpendingsf;
updateresource.mptcppendingjointhreshold = resource.mptcppendingjointhreshold;
updateresource.mptcprtostoswitchsf = resource.mptcprtostoswitchsf;
updateresource.mptcpusebackupondss = resource.mptcpusebackupondss;
updateresource.tcpmaxretries = resource.tcpmaxretries;
updateresource.mptcpimmediatesfcloseonfin = resource.mptcpimmediatesfcloseonfin;
return updateresource.update_resource(client);
} | java | public static base_response update(nitro_service client, nstcpparam resource) throws Exception {
nstcpparam updateresource = new nstcpparam();
updateresource.ws = resource.ws;
updateresource.wsval = resource.wsval;
updateresource.sack = resource.sack;
updateresource.learnvsvrmss = resource.learnvsvrmss;
updateresource.maxburst = resource.maxburst;
updateresource.initialcwnd = resource.initialcwnd;
updateresource.recvbuffsize = resource.recvbuffsize;
updateresource.delayedack = resource.delayedack;
updateresource.downstaterst = resource.downstaterst;
updateresource.nagle = resource.nagle;
updateresource.limitedpersist = resource.limitedpersist;
updateresource.oooqsize = resource.oooqsize;
updateresource.ackonpush = resource.ackonpush;
updateresource.maxpktpermss = resource.maxpktpermss;
updateresource.pktperretx = resource.pktperretx;
updateresource.minrto = resource.minrto;
updateresource.slowstartincr = resource.slowstartincr;
updateresource.maxdynserverprobes = resource.maxdynserverprobes;
updateresource.synholdfastgiveup = resource.synholdfastgiveup;
updateresource.maxsynholdperprobe = resource.maxsynholdperprobe;
updateresource.maxsynhold = resource.maxsynhold;
updateresource.msslearninterval = resource.msslearninterval;
updateresource.msslearndelay = resource.msslearndelay;
updateresource.maxtimewaitconn = resource.maxtimewaitconn;
updateresource.kaprobeupdatelastactivity = resource.kaprobeupdatelastactivity;
updateresource.maxsynackretx = resource.maxsynackretx;
updateresource.synattackdetection = resource.synattackdetection;
updateresource.connflushifnomem = resource.connflushifnomem;
updateresource.connflushthres = resource.connflushthres;
updateresource.mptcpconcloseonpassivesf = resource.mptcpconcloseonpassivesf;
updateresource.mptcpchecksum = resource.mptcpchecksum;
updateresource.mptcpsftimeout = resource.mptcpsftimeout;
updateresource.mptcpsfreplacetimeout = resource.mptcpsfreplacetimeout;
updateresource.mptcpmaxsf = resource.mptcpmaxsf;
updateresource.mptcpmaxpendingsf = resource.mptcpmaxpendingsf;
updateresource.mptcppendingjointhreshold = resource.mptcppendingjointhreshold;
updateresource.mptcprtostoswitchsf = resource.mptcprtostoswitchsf;
updateresource.mptcpusebackupondss = resource.mptcpusebackupondss;
updateresource.tcpmaxretries = resource.tcpmaxretries;
updateresource.mptcpimmediatesfcloseonfin = resource.mptcpimmediatesfcloseonfin;
return updateresource.update_resource(client);
} | [
"public",
"static",
"base_response",
"update",
"(",
"nitro_service",
"client",
",",
"nstcpparam",
"resource",
")",
"throws",
"Exception",
"{",
"nstcpparam",
"updateresource",
"=",
"new",
"nstcpparam",
"(",
")",
";",
"updateresource",
".",
"ws",
"=",
"resource",
".",
"ws",
";",
"updateresource",
".",
"wsval",
"=",
"resource",
".",
"wsval",
";",
"updateresource",
".",
"sack",
"=",
"resource",
".",
"sack",
";",
"updateresource",
".",
"learnvsvrmss",
"=",
"resource",
".",
"learnvsvrmss",
";",
"updateresource",
".",
"maxburst",
"=",
"resource",
".",
"maxburst",
";",
"updateresource",
".",
"initialcwnd",
"=",
"resource",
".",
"initialcwnd",
";",
"updateresource",
".",
"recvbuffsize",
"=",
"resource",
".",
"recvbuffsize",
";",
"updateresource",
".",
"delayedack",
"=",
"resource",
".",
"delayedack",
";",
"updateresource",
".",
"downstaterst",
"=",
"resource",
".",
"downstaterst",
";",
"updateresource",
".",
"nagle",
"=",
"resource",
".",
"nagle",
";",
"updateresource",
".",
"limitedpersist",
"=",
"resource",
".",
"limitedpersist",
";",
"updateresource",
".",
"oooqsize",
"=",
"resource",
".",
"oooqsize",
";",
"updateresource",
".",
"ackonpush",
"=",
"resource",
".",
"ackonpush",
";",
"updateresource",
".",
"maxpktpermss",
"=",
"resource",
".",
"maxpktpermss",
";",
"updateresource",
".",
"pktperretx",
"=",
"resource",
".",
"pktperretx",
";",
"updateresource",
".",
"minrto",
"=",
"resource",
".",
"minrto",
";",
"updateresource",
".",
"slowstartincr",
"=",
"resource",
".",
"slowstartincr",
";",
"updateresource",
".",
"maxdynserverprobes",
"=",
"resource",
".",
"maxdynserverprobes",
";",
"updateresource",
".",
"synholdfastgiveup",
"=",
"resource",
".",
"synholdfastgiveup",
";",
"updateresource",
".",
"maxsynholdperprobe",
"=",
"resource",
".",
"maxsynholdperprobe",
";",
"updateresource",
".",
"maxsynhold",
"=",
"resource",
".",
"maxsynhold",
";",
"updateresource",
".",
"msslearninterval",
"=",
"resource",
".",
"msslearninterval",
";",
"updateresource",
".",
"msslearndelay",
"=",
"resource",
".",
"msslearndelay",
";",
"updateresource",
".",
"maxtimewaitconn",
"=",
"resource",
".",
"maxtimewaitconn",
";",
"updateresource",
".",
"kaprobeupdatelastactivity",
"=",
"resource",
".",
"kaprobeupdatelastactivity",
";",
"updateresource",
".",
"maxsynackretx",
"=",
"resource",
".",
"maxsynackretx",
";",
"updateresource",
".",
"synattackdetection",
"=",
"resource",
".",
"synattackdetection",
";",
"updateresource",
".",
"connflushifnomem",
"=",
"resource",
".",
"connflushifnomem",
";",
"updateresource",
".",
"connflushthres",
"=",
"resource",
".",
"connflushthres",
";",
"updateresource",
".",
"mptcpconcloseonpassivesf",
"=",
"resource",
".",
"mptcpconcloseonpassivesf",
";",
"updateresource",
".",
"mptcpchecksum",
"=",
"resource",
".",
"mptcpchecksum",
";",
"updateresource",
".",
"mptcpsftimeout",
"=",
"resource",
".",
"mptcpsftimeout",
";",
"updateresource",
".",
"mptcpsfreplacetimeout",
"=",
"resource",
".",
"mptcpsfreplacetimeout",
";",
"updateresource",
".",
"mptcpmaxsf",
"=",
"resource",
".",
"mptcpmaxsf",
";",
"updateresource",
".",
"mptcpmaxpendingsf",
"=",
"resource",
".",
"mptcpmaxpendingsf",
";",
"updateresource",
".",
"mptcppendingjointhreshold",
"=",
"resource",
".",
"mptcppendingjointhreshold",
";",
"updateresource",
".",
"mptcprtostoswitchsf",
"=",
"resource",
".",
"mptcprtostoswitchsf",
";",
"updateresource",
".",
"mptcpusebackupondss",
"=",
"resource",
".",
"mptcpusebackupondss",
";",
"updateresource",
".",
"tcpmaxretries",
"=",
"resource",
".",
"tcpmaxretries",
";",
"updateresource",
".",
"mptcpimmediatesfcloseonfin",
"=",
"resource",
".",
"mptcpimmediatesfcloseonfin",
";",
"return",
"updateresource",
".",
"update_resource",
"(",
"client",
")",
";",
"}"
] | Use this API to update nstcpparam. | [
"Use",
"this",
"API",
"to",
"update",
"nstcpparam",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nstcpparam.java#L1090-L1133 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nstcpparam.java | nstcpparam.unset | public static base_response unset(nitro_service client, nstcpparam resource, String[] args) throws Exception{
nstcpparam unsetresource = new nstcpparam();
return unsetresource.unset_resource(client,args);
} | java | public static base_response unset(nitro_service client, nstcpparam resource, String[] args) throws Exception{
nstcpparam unsetresource = new nstcpparam();
return unsetresource.unset_resource(client,args);
} | [
"public",
"static",
"base_response",
"unset",
"(",
"nitro_service",
"client",
",",
"nstcpparam",
"resource",
",",
"String",
"[",
"]",
"args",
")",
"throws",
"Exception",
"{",
"nstcpparam",
"unsetresource",
"=",
"new",
"nstcpparam",
"(",
")",
";",
"return",
"unsetresource",
".",
"unset_resource",
"(",
"client",
",",
"args",
")",
";",
"}"
] | Use this API to unset the properties of nstcpparam resource.
Properties that need to be unset are specified in args array. | [
"Use",
"this",
"API",
"to",
"unset",
"the",
"properties",
"of",
"nstcpparam",
"resource",
".",
"Properties",
"that",
"need",
"to",
"be",
"unset",
"are",
"specified",
"in",
"args",
"array",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nstcpparam.java#L1139-L1142 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nstcpparam.java | nstcpparam.get | public static nstcpparam get(nitro_service service) throws Exception{
nstcpparam obj = new nstcpparam();
nstcpparam[] response = (nstcpparam[])obj.get_resources(service);
return response[0];
} | java | public static nstcpparam get(nitro_service service) throws Exception{
nstcpparam obj = new nstcpparam();
nstcpparam[] response = (nstcpparam[])obj.get_resources(service);
return response[0];
} | [
"public",
"static",
"nstcpparam",
"get",
"(",
"nitro_service",
"service",
")",
"throws",
"Exception",
"{",
"nstcpparam",
"obj",
"=",
"new",
"nstcpparam",
"(",
")",
";",
"nstcpparam",
"[",
"]",
"response",
"=",
"(",
"nstcpparam",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
"[",
"0",
"]",
";",
"}"
] | Use this API to fetch all the nstcpparam resources that are configured on netscaler. | [
"Use",
"this",
"API",
"to",
"fetch",
"all",
"the",
"nstcpparam",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nstcpparam.java#L1147-L1151 | train |
meertensinstituut/mtas | src/main/java/mtas/codec/payload/MtasBitOutputStream.java | MtasBitOutputStream.writeBit | public void writeBit(int value, int number) throws IOException {
int localNumber = number;
while (localNumber > 0) {
localNumber--;
bitBuffer |= ((value & 1) << bitCount++);
if (bitCount == 8) {
createByte();
}
}
} | java | public void writeBit(int value, int number) throws IOException {
int localNumber = number;
while (localNumber > 0) {
localNumber--;
bitBuffer |= ((value & 1) << bitCount++);
if (bitCount == 8) {
createByte();
}
}
} | [
"public",
"void",
"writeBit",
"(",
"int",
"value",
",",
"int",
"number",
")",
"throws",
"IOException",
"{",
"int",
"localNumber",
"=",
"number",
";",
"while",
"(",
"localNumber",
">",
"0",
")",
"{",
"localNumber",
"--",
";",
"bitBuffer",
"|=",
"(",
"(",
"value",
"&",
"1",
")",
"<<",
"bitCount",
"++",
")",
";",
"if",
"(",
"bitCount",
"==",
"8",
")",
"{",
"createByte",
"(",
")",
";",
"}",
"}",
"}"
] | Write bit.
@param value the value
@param number the number
@throws IOException Signals that an I/O exception has occurred. | [
"Write",
"bit",
"."
] | f02ae730848616bd88b553efa7f9eddc32818e64 | https://github.com/meertensinstituut/mtas/blob/f02ae730848616bd88b553efa7f9eddc32818e64/src/main/java/mtas/codec/payload/MtasBitOutputStream.java#L41-L50 | train |
meertensinstituut/mtas | src/main/java/mtas/codec/payload/MtasBitOutputStream.java | MtasBitOutputStream.writeEliasGammaCodingPositiveInteger | public void writeEliasGammaCodingPositiveInteger(int value)
throws IOException {
if (value > 0) {
if (value == 1) {
writeBit(1);
} else {
writeBit(0);
writeEliasGammaCodingPositiveInteger(value / 2);
writeBit(value % 2);
}
}
} | java | public void writeEliasGammaCodingPositiveInteger(int value)
throws IOException {
if (value > 0) {
if (value == 1) {
writeBit(1);
} else {
writeBit(0);
writeEliasGammaCodingPositiveInteger(value / 2);
writeBit(value % 2);
}
}
} | [
"public",
"void",
"writeEliasGammaCodingPositiveInteger",
"(",
"int",
"value",
")",
"throws",
"IOException",
"{",
"if",
"(",
"value",
">",
"0",
")",
"{",
"if",
"(",
"value",
"==",
"1",
")",
"{",
"writeBit",
"(",
"1",
")",
";",
"}",
"else",
"{",
"writeBit",
"(",
"0",
")",
";",
"writeEliasGammaCodingPositiveInteger",
"(",
"value",
"/",
"2",
")",
";",
"writeBit",
"(",
"value",
"%",
"2",
")",
";",
"}",
"}",
"}"
] | Write elias gamma coding positive integer.
@param value the value
@throws IOException Signals that an I/O exception has occurred. | [
"Write",
"elias",
"gamma",
"coding",
"positive",
"integer",
"."
] | f02ae730848616bd88b553efa7f9eddc32818e64 | https://github.com/meertensinstituut/mtas/blob/f02ae730848616bd88b553efa7f9eddc32818e64/src/main/java/mtas/codec/payload/MtasBitOutputStream.java#L85-L96 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/stat/ns/nspbr_stats.java | nspbr_stats.get | public static nspbr_stats[] get(nitro_service service) throws Exception{
nspbr_stats obj = new nspbr_stats();
nspbr_stats[] response = (nspbr_stats[])obj.stat_resources(service);
return response;
} | java | public static nspbr_stats[] get(nitro_service service) throws Exception{
nspbr_stats obj = new nspbr_stats();
nspbr_stats[] response = (nspbr_stats[])obj.stat_resources(service);
return response;
} | [
"public",
"static",
"nspbr_stats",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
")",
"throws",
"Exception",
"{",
"nspbr_stats",
"obj",
"=",
"new",
"nspbr_stats",
"(",
")",
";",
"nspbr_stats",
"[",
"]",
"response",
"=",
"(",
"nspbr_stats",
"[",
"]",
")",
"obj",
".",
"stat_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch the statistics of all nspbr_stats resources that are configured on netscaler. | [
"Use",
"this",
"API",
"to",
"fetch",
"the",
"statistics",
"of",
"all",
"nspbr_stats",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/stat/ns/nspbr_stats.java#L211-L215 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/stat/ns/nspbr_stats.java | nspbr_stats.get | public static nspbr_stats get(nitro_service service, String name) throws Exception{
nspbr_stats obj = new nspbr_stats();
obj.set_name(name);
nspbr_stats response = (nspbr_stats) obj.stat_resource(service);
return response;
} | java | public static nspbr_stats get(nitro_service service, String name) throws Exception{
nspbr_stats obj = new nspbr_stats();
obj.set_name(name);
nspbr_stats response = (nspbr_stats) obj.stat_resource(service);
return response;
} | [
"public",
"static",
"nspbr_stats",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"nspbr_stats",
"obj",
"=",
"new",
"nspbr_stats",
"(",
")",
";",
"obj",
".",
"set_name",
"(",
"name",
")",
";",
"nspbr_stats",
"response",
"=",
"(",
"nspbr_stats",
")",
"obj",
".",
"stat_resource",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch statistics of nspbr_stats resource of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"statistics",
"of",
"nspbr_stats",
"resource",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/stat/ns/nspbr_stats.java#L229-L234 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nstimer_autoscalepolicy_binding.java | nstimer_autoscalepolicy_binding.get | public static nstimer_autoscalepolicy_binding[] get(nitro_service service, String name) throws Exception{
nstimer_autoscalepolicy_binding obj = new nstimer_autoscalepolicy_binding();
obj.set_name(name);
nstimer_autoscalepolicy_binding response[] = (nstimer_autoscalepolicy_binding[]) obj.get_resources(service);
return response;
} | java | public static nstimer_autoscalepolicy_binding[] get(nitro_service service, String name) throws Exception{
nstimer_autoscalepolicy_binding obj = new nstimer_autoscalepolicy_binding();
obj.set_name(name);
nstimer_autoscalepolicy_binding response[] = (nstimer_autoscalepolicy_binding[]) obj.get_resources(service);
return response;
} | [
"public",
"static",
"nstimer_autoscalepolicy_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"nstimer_autoscalepolicy_binding",
"obj",
"=",
"new",
"nstimer_autoscalepolicy_binding",
"(",
")",
";",
"obj",
".",
"set_name",
"(",
"name",
")",
";",
"nstimer_autoscalepolicy_binding",
"response",
"[",
"]",
"=",
"(",
"nstimer_autoscalepolicy_binding",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch nstimer_autoscalepolicy_binding resources of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"nstimer_autoscalepolicy_binding",
"resources",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nstimer_autoscalepolicy_binding.java#L286-L291 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/lb/lbwlm_binding.java | lbwlm_binding.get | public static lbwlm_binding get(nitro_service service, String wlmname) throws Exception{
lbwlm_binding obj = new lbwlm_binding();
obj.set_wlmname(wlmname);
lbwlm_binding response = (lbwlm_binding) obj.get_resource(service);
return response;
} | java | public static lbwlm_binding get(nitro_service service, String wlmname) throws Exception{
lbwlm_binding obj = new lbwlm_binding();
obj.set_wlmname(wlmname);
lbwlm_binding response = (lbwlm_binding) obj.get_resource(service);
return response;
} | [
"public",
"static",
"lbwlm_binding",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"wlmname",
")",
"throws",
"Exception",
"{",
"lbwlm_binding",
"obj",
"=",
"new",
"lbwlm_binding",
"(",
")",
";",
"obj",
".",
"set_wlmname",
"(",
"wlmname",
")",
";",
"lbwlm_binding",
"response",
"=",
"(",
"lbwlm_binding",
")",
"obj",
".",
"get_resource",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch lbwlm_binding resource of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"lbwlm_binding",
"resource",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/lb/lbwlm_binding.java#L103-L108 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/stat/protocol/protocolipv6_stats.java | protocolipv6_stats.get | public static protocolipv6_stats get(nitro_service service) throws Exception{
protocolipv6_stats obj = new protocolipv6_stats();
protocolipv6_stats[] response = (protocolipv6_stats[])obj.stat_resources(service);
return response[0];
} | java | public static protocolipv6_stats get(nitro_service service) throws Exception{
protocolipv6_stats obj = new protocolipv6_stats();
protocolipv6_stats[] response = (protocolipv6_stats[])obj.stat_resources(service);
return response[0];
} | [
"public",
"static",
"protocolipv6_stats",
"get",
"(",
"nitro_service",
"service",
")",
"throws",
"Exception",
"{",
"protocolipv6_stats",
"obj",
"=",
"new",
"protocolipv6_stats",
"(",
")",
";",
"protocolipv6_stats",
"[",
"]",
"response",
"=",
"(",
"protocolipv6_stats",
"[",
"]",
")",
"obj",
".",
"stat_resources",
"(",
"service",
")",
";",
"return",
"response",
"[",
"0",
"]",
";",
"}"
] | Use this API to fetch the statistics of all protocolipv6_stats resources that are configured on netscaler. | [
"Use",
"this",
"API",
"to",
"fetch",
"the",
"statistics",
"of",
"all",
"protocolipv6_stats",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/stat/protocol/protocolipv6_stats.java#L584-L588 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/authorization/authorizationpolicy_csvserver_binding.java | authorizationpolicy_csvserver_binding.get | public static authorizationpolicy_csvserver_binding[] get(nitro_service service, String name) throws Exception{
authorizationpolicy_csvserver_binding obj = new authorizationpolicy_csvserver_binding();
obj.set_name(name);
authorizationpolicy_csvserver_binding response[] = (authorizationpolicy_csvserver_binding[]) obj.get_resources(service);
return response;
} | java | public static authorizationpolicy_csvserver_binding[] get(nitro_service service, String name) throws Exception{
authorizationpolicy_csvserver_binding obj = new authorizationpolicy_csvserver_binding();
obj.set_name(name);
authorizationpolicy_csvserver_binding response[] = (authorizationpolicy_csvserver_binding[]) obj.get_resources(service);
return response;
} | [
"public",
"static",
"authorizationpolicy_csvserver_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"authorizationpolicy_csvserver_binding",
"obj",
"=",
"new",
"authorizationpolicy_csvserver_binding",
"(",
")",
";",
"obj",
".",
"set_name",
"(",
"name",
")",
";",
"authorizationpolicy_csvserver_binding",
"response",
"[",
"]",
"=",
"(",
"authorizationpolicy_csvserver_binding",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch authorizationpolicy_csvserver_binding resources of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"authorizationpolicy_csvserver_binding",
"resources",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/authorization/authorizationpolicy_csvserver_binding.java#L122-L127 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/cache/cachepolicy_binding.java | cachepolicy_binding.get | public static cachepolicy_binding get(nitro_service service, String policyname) throws Exception{
cachepolicy_binding obj = new cachepolicy_binding();
obj.set_policyname(policyname);
cachepolicy_binding response = (cachepolicy_binding) obj.get_resource(service);
return response;
} | java | public static cachepolicy_binding get(nitro_service service, String policyname) throws Exception{
cachepolicy_binding obj = new cachepolicy_binding();
obj.set_policyname(policyname);
cachepolicy_binding response = (cachepolicy_binding) obj.get_resource(service);
return response;
} | [
"public",
"static",
"cachepolicy_binding",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"policyname",
")",
"throws",
"Exception",
"{",
"cachepolicy_binding",
"obj",
"=",
"new",
"cachepolicy_binding",
"(",
")",
";",
"obj",
".",
"set_policyname",
"(",
"policyname",
")",
";",
"cachepolicy_binding",
"response",
"=",
"(",
"cachepolicy_binding",
")",
"obj",
".",
"get_resource",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch cachepolicy_binding resource of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"cachepolicy_binding",
"resource",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/cache/cachepolicy_binding.java#L136-L141 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/cache/cachepolicy_binding.java | cachepolicy_binding.get | public static cachepolicy_binding[] get(nitro_service service, String policyname[]) throws Exception{
if (policyname !=null && policyname.length>0) {
cachepolicy_binding response[] = new cachepolicy_binding[policyname.length];
cachepolicy_binding obj[] = new cachepolicy_binding[policyname.length];
for (int i=0;i<policyname.length;i++) {
obj[i] = new cachepolicy_binding();
obj[i].set_policyname(policyname[i]);
response[i] = (cachepolicy_binding) obj[i].get_resource(service);
}
return response;
}
return null;
} | java | public static cachepolicy_binding[] get(nitro_service service, String policyname[]) throws Exception{
if (policyname !=null && policyname.length>0) {
cachepolicy_binding response[] = new cachepolicy_binding[policyname.length];
cachepolicy_binding obj[] = new cachepolicy_binding[policyname.length];
for (int i=0;i<policyname.length;i++) {
obj[i] = new cachepolicy_binding();
obj[i].set_policyname(policyname[i]);
response[i] = (cachepolicy_binding) obj[i].get_resource(service);
}
return response;
}
return null;
} | [
"public",
"static",
"cachepolicy_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"policyname",
"[",
"]",
")",
"throws",
"Exception",
"{",
"if",
"(",
"policyname",
"!=",
"null",
"&&",
"policyname",
".",
"length",
">",
"0",
")",
"{",
"cachepolicy_binding",
"response",
"[",
"]",
"=",
"new",
"cachepolicy_binding",
"[",
"policyname",
".",
"length",
"]",
";",
"cachepolicy_binding",
"obj",
"[",
"]",
"=",
"new",
"cachepolicy_binding",
"[",
"policyname",
".",
"length",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"policyname",
".",
"length",
";",
"i",
"++",
")",
"{",
"obj",
"[",
"i",
"]",
"=",
"new",
"cachepolicy_binding",
"(",
")",
";",
"obj",
"[",
"i",
"]",
".",
"set_policyname",
"(",
"policyname",
"[",
"i",
"]",
")",
";",
"response",
"[",
"i",
"]",
"=",
"(",
"cachepolicy_binding",
")",
"obj",
"[",
"i",
"]",
".",
"get_resource",
"(",
"service",
")",
";",
"}",
"return",
"response",
";",
"}",
"return",
"null",
";",
"}"
] | Use this API to fetch cachepolicy_binding resources of given names . | [
"Use",
"this",
"API",
"to",
"fetch",
"cachepolicy_binding",
"resources",
"of",
"given",
"names",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/cache/cachepolicy_binding.java#L146-L158 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/trees/TreePrint.java | TreePrint.getCollocationProcessedTree | private static synchronized Tree getCollocationProcessedTree(Tree tree,
HeadFinder hf) {
if (wnc == null) {
try {
Class<?> cl = Class.forName("edu.stanford.nlp.trees.WordNetInstance");
wnc = (WordNetConnection) cl.newInstance();
} catch (Exception e) {
System.err.println("Couldn't open WordNet Connection. Aborting collocation detection.");
e.printStackTrace();
wnc = null;
}
}
if (wnc != null) {
CollocationFinder cf = new CollocationFinder(tree, wnc, hf);
tree = cf.getMangledTree();
} else {
System.err.println("ERROR: WordNetConnection unavailable for collocations.");
}
return tree;
} | java | private static synchronized Tree getCollocationProcessedTree(Tree tree,
HeadFinder hf) {
if (wnc == null) {
try {
Class<?> cl = Class.forName("edu.stanford.nlp.trees.WordNetInstance");
wnc = (WordNetConnection) cl.newInstance();
} catch (Exception e) {
System.err.println("Couldn't open WordNet Connection. Aborting collocation detection.");
e.printStackTrace();
wnc = null;
}
}
if (wnc != null) {
CollocationFinder cf = new CollocationFinder(tree, wnc, hf);
tree = cf.getMangledTree();
} else {
System.err.println("ERROR: WordNetConnection unavailable for collocations.");
}
return tree;
} | [
"private",
"static",
"synchronized",
"Tree",
"getCollocationProcessedTree",
"(",
"Tree",
"tree",
",",
"HeadFinder",
"hf",
")",
"{",
"if",
"(",
"wnc",
"==",
"null",
")",
"{",
"try",
"{",
"Class",
"<",
"?",
">",
"cl",
"=",
"Class",
".",
"forName",
"(",
"\"edu.stanford.nlp.trees.WordNetInstance\"",
")",
";",
"wnc",
"=",
"(",
"WordNetConnection",
")",
"cl",
".",
"newInstance",
"(",
")",
";",
"}",
"catch",
"(",
"Exception",
"e",
")",
"{",
"System",
".",
"err",
".",
"println",
"(",
"\"Couldn't open WordNet Connection. Aborting collocation detection.\"",
")",
";",
"e",
".",
"printStackTrace",
"(",
")",
";",
"wnc",
"=",
"null",
";",
"}",
"}",
"if",
"(",
"wnc",
"!=",
"null",
")",
"{",
"CollocationFinder",
"cf",
"=",
"new",
"CollocationFinder",
"(",
"tree",
",",
"wnc",
",",
"hf",
")",
";",
"tree",
"=",
"cf",
".",
"getMangledTree",
"(",
")",
";",
"}",
"else",
"{",
"System",
".",
"err",
".",
"println",
"(",
"\"ERROR: WordNetConnection unavailable for collocations.\"",
")",
";",
"}",
"return",
"tree",
";",
"}"
] | For the input tree, collapse any collocations in it that exist in
WordNet and are contiguous in the tree into a single node.
A single static Wordnet connection is used by all instances of this
class. Reflection to check that a Wordnet connection exists. Otherwise
we print an error and do nothing.
@param tree The input tree. NOTE: This tree is mangled by this method
@param hf The head finder to use
@return The collocation collapsed tree | [
"For",
"the",
"input",
"tree",
"collapse",
"any",
"collocations",
"in",
"it",
"that",
"exist",
"in",
"WordNet",
"and",
"are",
"contiguous",
"in",
"the",
"tree",
"into",
"a",
"single",
"node",
".",
"A",
"single",
"static",
"Wordnet",
"connection",
"is",
"used",
"by",
"all",
"instances",
"of",
"this",
"class",
".",
"Reflection",
"to",
"check",
"that",
"a",
"Wordnet",
"connection",
"exists",
".",
"Otherwise",
"we",
"print",
"an",
"error",
"and",
"do",
"nothing",
"."
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/trees/TreePrint.java#L672-L691 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nshardware.java | nshardware.get | public static nshardware get(nitro_service service) throws Exception{
nshardware obj = new nshardware();
nshardware[] response = (nshardware[])obj.get_resources(service);
return response[0];
} | java | public static nshardware get(nitro_service service) throws Exception{
nshardware obj = new nshardware();
nshardware[] response = (nshardware[])obj.get_resources(service);
return response[0];
} | [
"public",
"static",
"nshardware",
"get",
"(",
"nitro_service",
"service",
")",
"throws",
"Exception",
"{",
"nshardware",
"obj",
"=",
"new",
"nshardware",
"(",
")",
";",
"nshardware",
"[",
"]",
"response",
"=",
"(",
"nshardware",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
"[",
"0",
"]",
";",
"}"
] | Use this API to fetch all the nshardware resources that are configured on netscaler. | [
"Use",
"this",
"API",
"to",
"fetch",
"all",
"the",
"nshardware",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nshardware.java#L178-L182 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/system/systemuser_systemgroup_binding.java | systemuser_systemgroup_binding.get | public static systemuser_systemgroup_binding[] get(nitro_service service, String username) throws Exception{
systemuser_systemgroup_binding obj = new systemuser_systemgroup_binding();
obj.set_username(username);
systemuser_systemgroup_binding response[] = (systemuser_systemgroup_binding[]) obj.get_resources(service);
return response;
} | java | public static systemuser_systemgroup_binding[] get(nitro_service service, String username) throws Exception{
systemuser_systemgroup_binding obj = new systemuser_systemgroup_binding();
obj.set_username(username);
systemuser_systemgroup_binding response[] = (systemuser_systemgroup_binding[]) obj.get_resources(service);
return response;
} | [
"public",
"static",
"systemuser_systemgroup_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"username",
")",
"throws",
"Exception",
"{",
"systemuser_systemgroup_binding",
"obj",
"=",
"new",
"systemuser_systemgroup_binding",
"(",
")",
";",
"obj",
".",
"set_username",
"(",
"username",
")",
";",
"systemuser_systemgroup_binding",
"response",
"[",
"]",
"=",
"(",
"systemuser_systemgroup_binding",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch systemuser_systemgroup_binding resources of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"systemuser_systemgroup_binding",
"resources",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/system/systemuser_systemgroup_binding.java#L159-L164 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/authorization/authorizationpolicy_authorizationpolicylabel_binding.java | authorizationpolicy_authorizationpolicylabel_binding.get | public static authorizationpolicy_authorizationpolicylabel_binding[] get(nitro_service service, String name) throws Exception{
authorizationpolicy_authorizationpolicylabel_binding obj = new authorizationpolicy_authorizationpolicylabel_binding();
obj.set_name(name);
authorizationpolicy_authorizationpolicylabel_binding response[] = (authorizationpolicy_authorizationpolicylabel_binding[]) obj.get_resources(service);
return response;
} | java | public static authorizationpolicy_authorizationpolicylabel_binding[] get(nitro_service service, String name) throws Exception{
authorizationpolicy_authorizationpolicylabel_binding obj = new authorizationpolicy_authorizationpolicylabel_binding();
obj.set_name(name);
authorizationpolicy_authorizationpolicylabel_binding response[] = (authorizationpolicy_authorizationpolicylabel_binding[]) obj.get_resources(service);
return response;
} | [
"public",
"static",
"authorizationpolicy_authorizationpolicylabel_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"authorizationpolicy_authorizationpolicylabel_binding",
"obj",
"=",
"new",
"authorizationpolicy_authorizationpolicylabel_binding",
"(",
")",
";",
"obj",
".",
"set_name",
"(",
"name",
")",
";",
"authorizationpolicy_authorizationpolicylabel_binding",
"response",
"[",
"]",
"=",
"(",
"authorizationpolicy_authorizationpolicylabel_binding",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch authorizationpolicy_authorizationpolicylabel_binding resources of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"authorizationpolicy_authorizationpolicylabel_binding",
"resources",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/authorization/authorizationpolicy_authorizationpolicylabel_binding.java#L122-L127 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/parser/metrics/AbstractEval.java | AbstractEval.precision | protected static double precision(Set<?> s1, Set<?> s2) {
double n = 0.0;
double p = 0.0;
for (Object o1 : s1) {
if (s2.contains(o1)) {
p += 1.0;
}
if (DEBUG) {
if (s2.contains(o1)) {
System.err.println("Eval Found: "+o1);
} else {
System.err.println("Eval Failed to find: "+o1);
}
}
n += 1.0;
}
if (DEBUG) System.err.println("Matched " + p + " of " + n);
return (n > 0.0 ? p / n : 0.0);
} | java | protected static double precision(Set<?> s1, Set<?> s2) {
double n = 0.0;
double p = 0.0;
for (Object o1 : s1) {
if (s2.contains(o1)) {
p += 1.0;
}
if (DEBUG) {
if (s2.contains(o1)) {
System.err.println("Eval Found: "+o1);
} else {
System.err.println("Eval Failed to find: "+o1);
}
}
n += 1.0;
}
if (DEBUG) System.err.println("Matched " + p + " of " + n);
return (n > 0.0 ? p / n : 0.0);
} | [
"protected",
"static",
"double",
"precision",
"(",
"Set",
"<",
"?",
">",
"s1",
",",
"Set",
"<",
"?",
">",
"s2",
")",
"{",
"double",
"n",
"=",
"0.0",
";",
"double",
"p",
"=",
"0.0",
";",
"for",
"(",
"Object",
"o1",
":",
"s1",
")",
"{",
"if",
"(",
"s2",
".",
"contains",
"(",
"o1",
")",
")",
"{",
"p",
"+=",
"1.0",
";",
"}",
"if",
"(",
"DEBUG",
")",
"{",
"if",
"(",
"s2",
".",
"contains",
"(",
"o1",
")",
")",
"{",
"System",
".",
"err",
".",
"println",
"(",
"\"Eval Found: \"",
"+",
"o1",
")",
";",
"}",
"else",
"{",
"System",
".",
"err",
".",
"println",
"(",
"\"Eval Failed to find: \"",
"+",
"o1",
")",
";",
"}",
"}",
"n",
"+=",
"1.0",
";",
"}",
"if",
"(",
"DEBUG",
")",
"System",
".",
"err",
".",
"println",
"(",
"\"Matched \"",
"+",
"p",
"+",
"\" of \"",
"+",
"n",
")",
";",
"return",
"(",
"n",
">",
"0.0",
"?",
"p",
"/",
"n",
":",
"0.0",
")",
";",
"}"
] | should be able to pass in a comparator! | [
"should",
"be",
"able",
"to",
"pass",
"in",
"a",
"comparator!"
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/parser/metrics/AbstractEval.java#L92-L110 | train |
chen0040/java-moea | src/main/java/com/github/chen0040/moea/components/NondominatedSortingPopulation.java | NondominatedSortingPopulation.invertedCompare | public static int invertedCompare(Solution s1, Solution s2) {
int flag = InvertedCompareUtils.RankCompare(s1, s2);
if (flag == 0)
{
flag = InvertedCompareUtils.CrowdingDistanceCompare(s1, s2);
}
return flag;
} | java | public static int invertedCompare(Solution s1, Solution s2) {
int flag = InvertedCompareUtils.RankCompare(s1, s2);
if (flag == 0)
{
flag = InvertedCompareUtils.CrowdingDistanceCompare(s1, s2);
}
return flag;
} | [
"public",
"static",
"int",
"invertedCompare",
"(",
"Solution",
"s1",
",",
"Solution",
"s2",
")",
"{",
"int",
"flag",
"=",
"InvertedCompareUtils",
".",
"RankCompare",
"(",
"s1",
",",
"s2",
")",
";",
"if",
"(",
"flag",
"==",
"0",
")",
"{",
"flag",
"=",
"InvertedCompareUtils",
".",
"CrowdingDistanceCompare",
"(",
"s1",
",",
"s2",
")",
";",
"}",
"return",
"flag",
";",
"}"
] | return -1 if s2 is better | [
"return",
"-",
"1",
"if",
"s2",
"is",
"better"
] | 2d865b5ba5a333f44883333efe590460aad7d545 | https://github.com/chen0040/java-moea/blob/2d865b5ba5a333f44883333efe590460aad7d545/src/main/java/com/github/chen0040/moea/components/NondominatedSortingPopulation.java#L38-L46 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/network/rnat6_binding.java | rnat6_binding.get | public static rnat6_binding get(nitro_service service, String name) throws Exception{
rnat6_binding obj = new rnat6_binding();
obj.set_name(name);
rnat6_binding response = (rnat6_binding) obj.get_resource(service);
return response;
} | java | public static rnat6_binding get(nitro_service service, String name) throws Exception{
rnat6_binding obj = new rnat6_binding();
obj.set_name(name);
rnat6_binding response = (rnat6_binding) obj.get_resource(service);
return response;
} | [
"public",
"static",
"rnat6_binding",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"rnat6_binding",
"obj",
"=",
"new",
"rnat6_binding",
"(",
")",
";",
"obj",
".",
"set_name",
"(",
"name",
")",
";",
"rnat6_binding",
"response",
"=",
"(",
"rnat6_binding",
")",
"obj",
".",
"get_resource",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch rnat6_binding resource of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"rnat6_binding",
"resource",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/network/rnat6_binding.java#L103-L108 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/cache/cachepolicy_csvserver_binding.java | cachepolicy_csvserver_binding.get | public static cachepolicy_csvserver_binding[] get(nitro_service service, String policyname) throws Exception{
cachepolicy_csvserver_binding obj = new cachepolicy_csvserver_binding();
obj.set_policyname(policyname);
cachepolicy_csvserver_binding response[] = (cachepolicy_csvserver_binding[]) obj.get_resources(service);
return response;
} | java | public static cachepolicy_csvserver_binding[] get(nitro_service service, String policyname) throws Exception{
cachepolicy_csvserver_binding obj = new cachepolicy_csvserver_binding();
obj.set_policyname(policyname);
cachepolicy_csvserver_binding response[] = (cachepolicy_csvserver_binding[]) obj.get_resources(service);
return response;
} | [
"public",
"static",
"cachepolicy_csvserver_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"policyname",
")",
"throws",
"Exception",
"{",
"cachepolicy_csvserver_binding",
"obj",
"=",
"new",
"cachepolicy_csvserver_binding",
"(",
")",
";",
"obj",
".",
"set_policyname",
"(",
"policyname",
")",
";",
"cachepolicy_csvserver_binding",
"response",
"[",
"]",
"=",
"(",
"cachepolicy_csvserver_binding",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch cachepolicy_csvserver_binding resources of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"cachepolicy_csvserver_binding",
"resources",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/cache/cachepolicy_csvserver_binding.java#L162-L167 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnspolicy64_binding.java | dnspolicy64_binding.get | public static dnspolicy64_binding get(nitro_service service, String name) throws Exception{
dnspolicy64_binding obj = new dnspolicy64_binding();
obj.set_name(name);
dnspolicy64_binding response = (dnspolicy64_binding) obj.get_resource(service);
return response;
} | java | public static dnspolicy64_binding get(nitro_service service, String name) throws Exception{
dnspolicy64_binding obj = new dnspolicy64_binding();
obj.set_name(name);
dnspolicy64_binding response = (dnspolicy64_binding) obj.get_resource(service);
return response;
} | [
"public",
"static",
"dnspolicy64_binding",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"dnspolicy64_binding",
"obj",
"=",
"new",
"dnspolicy64_binding",
"(",
")",
";",
"obj",
".",
"set_name",
"(",
"name",
")",
";",
"dnspolicy64_binding",
"response",
"=",
"(",
"dnspolicy64_binding",
")",
"obj",
".",
"get_resource",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch dnspolicy64_binding resource of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"dnspolicy64_binding",
"resource",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnspolicy64_binding.java#L103-L108 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwpolicy_binding.java | appfwpolicy_binding.get | public static appfwpolicy_binding get(nitro_service service, String name) throws Exception{
appfwpolicy_binding obj = new appfwpolicy_binding();
obj.set_name(name);
appfwpolicy_binding response = (appfwpolicy_binding) obj.get_resource(service);
return response;
} | java | public static appfwpolicy_binding get(nitro_service service, String name) throws Exception{
appfwpolicy_binding obj = new appfwpolicy_binding();
obj.set_name(name);
appfwpolicy_binding response = (appfwpolicy_binding) obj.get_resource(service);
return response;
} | [
"public",
"static",
"appfwpolicy_binding",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"appfwpolicy_binding",
"obj",
"=",
"new",
"appfwpolicy_binding",
"(",
")",
";",
"obj",
".",
"set_name",
"(",
"name",
")",
";",
"appfwpolicy_binding",
"response",
"=",
"(",
"appfwpolicy_binding",
")",
"obj",
".",
"get_resource",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch appfwpolicy_binding resource of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"appfwpolicy_binding",
"resource",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwpolicy_binding.java#L136-L141 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/util/IdentityHashSet.java | IdentityHashSet.writeObject | private void writeObject(ObjectOutputStream s) throws IOException {
Iterator<E> it = iterator();
s.writeInt(size() * 2); // expectedMaxSize
s.writeInt(size());
while (it.hasNext())
s.writeObject(it.next());
} | java | private void writeObject(ObjectOutputStream s) throws IOException {
Iterator<E> it = iterator();
s.writeInt(size() * 2); // expectedMaxSize
s.writeInt(size());
while (it.hasNext())
s.writeObject(it.next());
} | [
"private",
"void",
"writeObject",
"(",
"ObjectOutputStream",
"s",
")",
"throws",
"IOException",
"{",
"Iterator",
"<",
"E",
">",
"it",
"=",
"iterator",
"(",
")",
";",
"s",
".",
"writeInt",
"(",
"size",
"(",
")",
"*",
"2",
")",
";",
"// expectedMaxSize\r",
"s",
".",
"writeInt",
"(",
"size",
"(",
")",
")",
";",
"while",
"(",
"it",
".",
"hasNext",
"(",
")",
")",
"s",
".",
"writeObject",
"(",
"it",
".",
"next",
"(",
")",
")",
";",
"}"
] | Serialize this Object in a manner which is binary-compatible with the
JDK. | [
"Serialize",
"this",
"Object",
"in",
"a",
"manner",
"which",
"is",
"binary",
"-",
"compatible",
"with",
"the",
"JDK",
"."
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/util/IdentityHashSet.java#L215-L221 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/util/IdentityHashSet.java | IdentityHashSet.readObject | private void readObject(ObjectInputStream s)
throws IOException, ClassNotFoundException {
int size, expectedMaxSize;
Object o;
expectedMaxSize = s.readInt();
size = s.readInt();
map = new IdentityHashMap<E, Boolean>(expectedMaxSize);
for (int i = 0; i < size; i++) {
o = s.readObject();
internalAdd(ErasureUtils.<E>uncheckedCast(o));
}
} | java | private void readObject(ObjectInputStream s)
throws IOException, ClassNotFoundException {
int size, expectedMaxSize;
Object o;
expectedMaxSize = s.readInt();
size = s.readInt();
map = new IdentityHashMap<E, Boolean>(expectedMaxSize);
for (int i = 0; i < size; i++) {
o = s.readObject();
internalAdd(ErasureUtils.<E>uncheckedCast(o));
}
} | [
"private",
"void",
"readObject",
"(",
"ObjectInputStream",
"s",
")",
"throws",
"IOException",
",",
"ClassNotFoundException",
"{",
"int",
"size",
",",
"expectedMaxSize",
";",
"Object",
"o",
";",
"expectedMaxSize",
"=",
"s",
".",
"readInt",
"(",
")",
";",
"size",
"=",
"s",
".",
"readInt",
"(",
")",
";",
"map",
"=",
"new",
"IdentityHashMap",
"<",
"E",
",",
"Boolean",
">",
"(",
"expectedMaxSize",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"size",
";",
"i",
"++",
")",
"{",
"o",
"=",
"s",
".",
"readObject",
"(",
")",
";",
"internalAdd",
"(",
"ErasureUtils",
".",
"<",
"E",
">",
"uncheckedCast",
"(",
"o",
")",
")",
";",
"}",
"}"
] | Deserialize this Object in a manner which is binary-compatible with
the JDK. | [
"Deserialize",
"this",
"Object",
"in",
"a",
"manner",
"which",
"is",
"binary",
"-",
"compatible",
"with",
"the",
"JDK",
"."
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/util/IdentityHashSet.java#L226-L239 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/optimization/CGMinimizer.java | CGMinimizer.lineMinimize | double[] lineMinimize(DiffFunction function, double[] initial, double[] direction) {
// make a 1-dim function along the direction line
// THIS IS A HACK (but it's the NRiC peoples' hack)
OneDimDiffFunction oneDim = new OneDimDiffFunction(function, initial, direction);
// do a 1-dim line min on this function
//Double Ax = new Double(0.0);
//Double Xx = new Double(1.0);
//Double Bx = new Double(0.0);
// bracket the extreme pt
double guess = 0.01;
//System.err.println("Current "+oneDim.valueAt(0)+" nudge "+(oneDim.smallestZeroPositiveLocation()*1e-2)+" "+oneDim.valueAt(oneDim.smallestZeroPositiveLocation()*1e-5));
if (!silent) {
System.err.print("[");
}
Triple bracketing = mnbrak(new Triple(0, guess, 0), oneDim);
if (!silent) {
System.err.print("]");
}
double ax = bracketing.a;
double xx = bracketing.b;
double bx = bracketing.c;
//lastXx = xx;
// CHECK FOR END OF WORLD
if (!(ax <= xx && xx <= bx) && !(bx <= xx && xx <= ax)) {
System.err.println("Bad bracket order!");
}
if (verbose) {
System.err.println("Bracketing found: " + ax + " " + xx + " " + bx);
System.err.println("Bracketing found: " + oneDim.valueAt(ax) + " " + oneDim.valueAt(xx) + " " + oneDim.valueAt(bx));
//System.err.println("Bracketing found: "+arrayToString(oneDim.vectorOf(ax),3)+" "+arrayToString(oneDim.vectorOf(xx),3)+" "+arrayToString(oneDim.vectorOf(bx),3));
}
// find the extreme pt
if (!silent) {
System.err.print("<");
}
double xmin = dbrent(oneDim, ax, xx, bx);
if (!silent) {
System.err.print(">");
}
// return the full vector
//System.err.println("Went "+xmin+" during lineMinimize");
return oneDim.vectorOf(xmin);
} | java | double[] lineMinimize(DiffFunction function, double[] initial, double[] direction) {
// make a 1-dim function along the direction line
// THIS IS A HACK (but it's the NRiC peoples' hack)
OneDimDiffFunction oneDim = new OneDimDiffFunction(function, initial, direction);
// do a 1-dim line min on this function
//Double Ax = new Double(0.0);
//Double Xx = new Double(1.0);
//Double Bx = new Double(0.0);
// bracket the extreme pt
double guess = 0.01;
//System.err.println("Current "+oneDim.valueAt(0)+" nudge "+(oneDim.smallestZeroPositiveLocation()*1e-2)+" "+oneDim.valueAt(oneDim.smallestZeroPositiveLocation()*1e-5));
if (!silent) {
System.err.print("[");
}
Triple bracketing = mnbrak(new Triple(0, guess, 0), oneDim);
if (!silent) {
System.err.print("]");
}
double ax = bracketing.a;
double xx = bracketing.b;
double bx = bracketing.c;
//lastXx = xx;
// CHECK FOR END OF WORLD
if (!(ax <= xx && xx <= bx) && !(bx <= xx && xx <= ax)) {
System.err.println("Bad bracket order!");
}
if (verbose) {
System.err.println("Bracketing found: " + ax + " " + xx + " " + bx);
System.err.println("Bracketing found: " + oneDim.valueAt(ax) + " " + oneDim.valueAt(xx) + " " + oneDim.valueAt(bx));
//System.err.println("Bracketing found: "+arrayToString(oneDim.vectorOf(ax),3)+" "+arrayToString(oneDim.vectorOf(xx),3)+" "+arrayToString(oneDim.vectorOf(bx),3));
}
// find the extreme pt
if (!silent) {
System.err.print("<");
}
double xmin = dbrent(oneDim, ax, xx, bx);
if (!silent) {
System.err.print(">");
}
// return the full vector
//System.err.println("Went "+xmin+" during lineMinimize");
return oneDim.vectorOf(xmin);
} | [
"double",
"[",
"]",
"lineMinimize",
"(",
"DiffFunction",
"function",
",",
"double",
"[",
"]",
"initial",
",",
"double",
"[",
"]",
"direction",
")",
"{",
"// make a 1-dim function along the direction line\r",
"// THIS IS A HACK (but it's the NRiC peoples' hack)\r",
"OneDimDiffFunction",
"oneDim",
"=",
"new",
"OneDimDiffFunction",
"(",
"function",
",",
"initial",
",",
"direction",
")",
";",
"// do a 1-dim line min on this function\r",
"//Double Ax = new Double(0.0);\r",
"//Double Xx = new Double(1.0);\r",
"//Double Bx = new Double(0.0);\r",
"// bracket the extreme pt\r",
"double",
"guess",
"=",
"0.01",
";",
"//System.err.println(\"Current \"+oneDim.valueAt(0)+\" nudge \"+(oneDim.smallestZeroPositiveLocation()*1e-2)+\" \"+oneDim.valueAt(oneDim.smallestZeroPositiveLocation()*1e-5));\r",
"if",
"(",
"!",
"silent",
")",
"{",
"System",
".",
"err",
".",
"print",
"(",
"\"[\"",
")",
";",
"}",
"Triple",
"bracketing",
"=",
"mnbrak",
"(",
"new",
"Triple",
"(",
"0",
",",
"guess",
",",
"0",
")",
",",
"oneDim",
")",
";",
"if",
"(",
"!",
"silent",
")",
"{",
"System",
".",
"err",
".",
"print",
"(",
"\"]\"",
")",
";",
"}",
"double",
"ax",
"=",
"bracketing",
".",
"a",
";",
"double",
"xx",
"=",
"bracketing",
".",
"b",
";",
"double",
"bx",
"=",
"bracketing",
".",
"c",
";",
"//lastXx = xx;\r",
"// CHECK FOR END OF WORLD\r",
"if",
"(",
"!",
"(",
"ax",
"<=",
"xx",
"&&",
"xx",
"<=",
"bx",
")",
"&&",
"!",
"(",
"bx",
"<=",
"xx",
"&&",
"xx",
"<=",
"ax",
")",
")",
"{",
"System",
".",
"err",
".",
"println",
"(",
"\"Bad bracket order!\"",
")",
";",
"}",
"if",
"(",
"verbose",
")",
"{",
"System",
".",
"err",
".",
"println",
"(",
"\"Bracketing found: \"",
"+",
"ax",
"+",
"\" \"",
"+",
"xx",
"+",
"\" \"",
"+",
"bx",
")",
";",
"System",
".",
"err",
".",
"println",
"(",
"\"Bracketing found: \"",
"+",
"oneDim",
".",
"valueAt",
"(",
"ax",
")",
"+",
"\" \"",
"+",
"oneDim",
".",
"valueAt",
"(",
"xx",
")",
"+",
"\" \"",
"+",
"oneDim",
".",
"valueAt",
"(",
"bx",
")",
")",
";",
"//System.err.println(\"Bracketing found: \"+arrayToString(oneDim.vectorOf(ax),3)+\" \"+arrayToString(oneDim.vectorOf(xx),3)+\" \"+arrayToString(oneDim.vectorOf(bx),3));\r",
"}",
"// find the extreme pt\r",
"if",
"(",
"!",
"silent",
")",
"{",
"System",
".",
"err",
".",
"print",
"(",
"\"<\"",
")",
";",
"}",
"double",
"xmin",
"=",
"dbrent",
"(",
"oneDim",
",",
"ax",
",",
"xx",
",",
"bx",
")",
";",
"if",
"(",
"!",
"silent",
")",
"{",
"System",
".",
"err",
".",
"print",
"(",
"\">\"",
")",
";",
"}",
"// return the full vector\r",
"//System.err.println(\"Went \"+xmin+\" during lineMinimize\");\r",
"return",
"oneDim",
".",
"vectorOf",
"(",
"xmin",
")",
";",
"}"
] | public double lastXx = 1.0; | [
"public",
"double",
"lastXx",
"=",
"1",
".",
"0",
";"
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/optimization/CGMinimizer.java#L404-L446 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/ssl/sslpolicy.java | sslpolicy.add | public static base_response add(nitro_service client, sslpolicy resource) throws Exception {
sslpolicy addresource = new sslpolicy();
addresource.name = resource.name;
addresource.rule = resource.rule;
addresource.reqaction = resource.reqaction;
addresource.action = resource.action;
addresource.undefaction = resource.undefaction;
addresource.comment = resource.comment;
return addresource.add_resource(client);
} | java | public static base_response add(nitro_service client, sslpolicy resource) throws Exception {
sslpolicy addresource = new sslpolicy();
addresource.name = resource.name;
addresource.rule = resource.rule;
addresource.reqaction = resource.reqaction;
addresource.action = resource.action;
addresource.undefaction = resource.undefaction;
addresource.comment = resource.comment;
return addresource.add_resource(client);
} | [
"public",
"static",
"base_response",
"add",
"(",
"nitro_service",
"client",
",",
"sslpolicy",
"resource",
")",
"throws",
"Exception",
"{",
"sslpolicy",
"addresource",
"=",
"new",
"sslpolicy",
"(",
")",
";",
"addresource",
".",
"name",
"=",
"resource",
".",
"name",
";",
"addresource",
".",
"rule",
"=",
"resource",
".",
"rule",
";",
"addresource",
".",
"reqaction",
"=",
"resource",
".",
"reqaction",
";",
"addresource",
".",
"action",
"=",
"resource",
".",
"action",
";",
"addresource",
".",
"undefaction",
"=",
"resource",
".",
"undefaction",
";",
"addresource",
".",
"comment",
"=",
"resource",
".",
"comment",
";",
"return",
"addresource",
".",
"add_resource",
"(",
"client",
")",
";",
"}"
] | Use this API to add sslpolicy. | [
"Use",
"this",
"API",
"to",
"add",
"sslpolicy",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ssl/sslpolicy.java#L253-L262 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/ssl/sslpolicy.java | sslpolicy.get | public static sslpolicy[] get(nitro_service service) throws Exception{
sslpolicy obj = new sslpolicy();
sslpolicy[] response = (sslpolicy[])obj.get_resources(service);
return response;
} | java | public static sslpolicy[] get(nitro_service service) throws Exception{
sslpolicy obj = new sslpolicy();
sslpolicy[] response = (sslpolicy[])obj.get_resources(service);
return response;
} | [
"public",
"static",
"sslpolicy",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
")",
"throws",
"Exception",
"{",
"sslpolicy",
"obj",
"=",
"new",
"sslpolicy",
"(",
")",
";",
"sslpolicy",
"[",
"]",
"response",
"=",
"(",
"sslpolicy",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch all the sslpolicy resources that are configured on netscaler. | [
"Use",
"this",
"API",
"to",
"fetch",
"all",
"the",
"sslpolicy",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ssl/sslpolicy.java#L415-L419 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/ssl/sslpolicy.java | sslpolicy.get | public static sslpolicy get(nitro_service service, String name) throws Exception{
sslpolicy obj = new sslpolicy();
obj.set_name(name);
sslpolicy response = (sslpolicy) obj.get_resource(service);
return response;
} | java | public static sslpolicy get(nitro_service service, String name) throws Exception{
sslpolicy obj = new sslpolicy();
obj.set_name(name);
sslpolicy response = (sslpolicy) obj.get_resource(service);
return response;
} | [
"public",
"static",
"sslpolicy",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"sslpolicy",
"obj",
"=",
"new",
"sslpolicy",
"(",
")",
";",
"obj",
".",
"set_name",
"(",
"name",
")",
";",
"sslpolicy",
"response",
"=",
"(",
"sslpolicy",
")",
"obj",
".",
"get_resource",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch sslpolicy resource of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"sslpolicy",
"resource",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ssl/sslpolicy.java#L431-L436 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/system/systemgroup_systemuser_binding.java | systemgroup_systemuser_binding.get | public static systemgroup_systemuser_binding[] get(nitro_service service, String groupname) throws Exception{
systemgroup_systemuser_binding obj = new systemgroup_systemuser_binding();
obj.set_groupname(groupname);
systemgroup_systemuser_binding response[] = (systemgroup_systemuser_binding[]) obj.get_resources(service);
return response;
} | java | public static systemgroup_systemuser_binding[] get(nitro_service service, String groupname) throws Exception{
systemgroup_systemuser_binding obj = new systemgroup_systemuser_binding();
obj.set_groupname(groupname);
systemgroup_systemuser_binding response[] = (systemgroup_systemuser_binding[]) obj.get_resources(service);
return response;
} | [
"public",
"static",
"systemgroup_systemuser_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"groupname",
")",
"throws",
"Exception",
"{",
"systemgroup_systemuser_binding",
"obj",
"=",
"new",
"systemgroup_systemuser_binding",
"(",
")",
";",
"obj",
".",
"set_groupname",
"(",
"groupname",
")",
";",
"systemgroup_systemuser_binding",
"response",
"[",
"]",
"=",
"(",
"systemgroup_systemuser_binding",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch systemgroup_systemuser_binding resources of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"systemgroup_systemuser_binding",
"resources",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/system/systemgroup_systemuser_binding.java#L154-L159 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nsconnectiontable.java | nsconnectiontable.get | public static nsconnectiontable[] get(nitro_service service) throws Exception{
nsconnectiontable obj = new nsconnectiontable();
nsconnectiontable[] response = (nsconnectiontable[])obj.get_resources(service);
return response;
} | java | public static nsconnectiontable[] get(nitro_service service) throws Exception{
nsconnectiontable obj = new nsconnectiontable();
nsconnectiontable[] response = (nsconnectiontable[])obj.get_resources(service);
return response;
} | [
"public",
"static",
"nsconnectiontable",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
")",
"throws",
"Exception",
"{",
"nsconnectiontable",
"obj",
"=",
"new",
"nsconnectiontable",
"(",
")",
";",
"nsconnectiontable",
"[",
"]",
"response",
"=",
"(",
"nsconnectiontable",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch all the nsconnectiontable resources that are configured on netscaler. | [
"Use",
"this",
"API",
"to",
"fetch",
"all",
"the",
"nsconnectiontable",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nsconnectiontable.java#L717-L721 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nsconnectiontable.java | nsconnectiontable.get | public static nsconnectiontable[] get(nitro_service service, nsconnectiontable_args args) throws Exception{
nsconnectiontable obj = new nsconnectiontable();
options option = new options();
option.set_args(nitro_util.object_to_string_withoutquotes(args));
nsconnectiontable[] response = (nsconnectiontable[])obj.get_resources(service, option);
return response;
} | java | public static nsconnectiontable[] get(nitro_service service, nsconnectiontable_args args) throws Exception{
nsconnectiontable obj = new nsconnectiontable();
options option = new options();
option.set_args(nitro_util.object_to_string_withoutquotes(args));
nsconnectiontable[] response = (nsconnectiontable[])obj.get_resources(service, option);
return response;
} | [
"public",
"static",
"nsconnectiontable",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"nsconnectiontable_args",
"args",
")",
"throws",
"Exception",
"{",
"nsconnectiontable",
"obj",
"=",
"new",
"nsconnectiontable",
"(",
")",
";",
"options",
"option",
"=",
"new",
"options",
"(",
")",
";",
"option",
".",
"set_args",
"(",
"nitro_util",
".",
"object_to_string_withoutquotes",
"(",
"args",
")",
")",
";",
"nsconnectiontable",
"[",
"]",
"response",
"=",
"(",
"nsconnectiontable",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
",",
"option",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch all the nsconnectiontable resources that are configured on netscaler.
This uses nsconnectiontable_args which is a way to provide additional arguments while fetching the resources. | [
"Use",
"this",
"API",
"to",
"fetch",
"all",
"the",
"nsconnectiontable",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
".",
"This",
"uses",
"nsconnectiontable_args",
"which",
"is",
"a",
"way",
"to",
"provide",
"additional",
"arguments",
"while",
"fetching",
"the",
"resources",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nsconnectiontable.java#L734-L740 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/ling/AnnotationLookup.java | AnnotationLookup.getCoreKey | public static KeyLookup getCoreKey(String oldKey) {
for (KeyLookup lookup : KeyLookup.values()) {
if (lookup.oldKey.equals(oldKey)) {
return lookup;
}
}
return null;
} | java | public static KeyLookup getCoreKey(String oldKey) {
for (KeyLookup lookup : KeyLookup.values()) {
if (lookup.oldKey.equals(oldKey)) {
return lookup;
}
}
return null;
} | [
"public",
"static",
"KeyLookup",
"getCoreKey",
"(",
"String",
"oldKey",
")",
"{",
"for",
"(",
"KeyLookup",
"lookup",
":",
"KeyLookup",
".",
"values",
"(",
")",
")",
"{",
"if",
"(",
"lookup",
".",
"oldKey",
".",
"equals",
"(",
"oldKey",
")",
")",
"{",
"return",
"lookup",
";",
"}",
"}",
"return",
"null",
";",
"}"
] | Returns a CoreAnnotation class key for the given old-style FeatureLabel
key if one exists; null otherwise. | [
"Returns",
"a",
"CoreAnnotation",
"class",
"key",
"for",
"the",
"given",
"old",
"-",
"style",
"FeatureLabel",
"key",
"if",
"one",
"exists",
";",
"null",
"otherwise",
"."
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/ling/AnnotationLookup.java#L149-L156 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/ling/AnnotationLookup.java | AnnotationLookup.getValueType | @SuppressWarnings("unchecked")
public static Class<?> getValueType(Class<? extends CoreAnnotation> key) {
Class type = valueCache.get(key);
if (type == null) {
try {
type = key.newInstance().getType();
} catch (Exception e) {
throw new RuntimeException("Unexpected failure to instantiate - is your key class fancy?", e);
}
valueCache.put((Class)key, type);
}
return type;
} | java | @SuppressWarnings("unchecked")
public static Class<?> getValueType(Class<? extends CoreAnnotation> key) {
Class type = valueCache.get(key);
if (type == null) {
try {
type = key.newInstance().getType();
} catch (Exception e) {
throw new RuntimeException("Unexpected failure to instantiate - is your key class fancy?", e);
}
valueCache.put((Class)key, type);
}
return type;
} | [
"@",
"SuppressWarnings",
"(",
"\"unchecked\"",
")",
"public",
"static",
"Class",
"<",
"?",
">",
"getValueType",
"(",
"Class",
"<",
"?",
"extends",
"CoreAnnotation",
">",
"key",
")",
"{",
"Class",
"type",
"=",
"valueCache",
".",
"get",
"(",
"key",
")",
";",
"if",
"(",
"type",
"==",
"null",
")",
"{",
"try",
"{",
"type",
"=",
"key",
".",
"newInstance",
"(",
")",
".",
"getType",
"(",
")",
";",
"}",
"catch",
"(",
"Exception",
"e",
")",
"{",
"throw",
"new",
"RuntimeException",
"(",
"\"Unexpected failure to instantiate - is your key class fancy?\"",
",",
"e",
")",
";",
"}",
"valueCache",
".",
"put",
"(",
"(",
"Class",
")",
"key",
",",
"type",
")",
";",
"}",
"return",
"type",
";",
"}"
] | Returns the runtime value type associated with the given key. Caches
results. | [
"Returns",
"the",
"runtime",
"value",
"type",
"associated",
"with",
"the",
"given",
"key",
".",
"Caches",
"results",
"."
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/ling/AnnotationLookup.java#L165-L177 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/policy/policypatset.java | policypatset.add | public static base_response add(nitro_service client, policypatset resource) throws Exception {
policypatset addresource = new policypatset();
addresource.name = resource.name;
addresource.indextype = resource.indextype;
return addresource.add_resource(client);
} | java | public static base_response add(nitro_service client, policypatset resource) throws Exception {
policypatset addresource = new policypatset();
addresource.name = resource.name;
addresource.indextype = resource.indextype;
return addresource.add_resource(client);
} | [
"public",
"static",
"base_response",
"add",
"(",
"nitro_service",
"client",
",",
"policypatset",
"resource",
")",
"throws",
"Exception",
"{",
"policypatset",
"addresource",
"=",
"new",
"policypatset",
"(",
")",
";",
"addresource",
".",
"name",
"=",
"resource",
".",
"name",
";",
"addresource",
".",
"indextype",
"=",
"resource",
".",
"indextype",
";",
"return",
"addresource",
".",
"add_resource",
"(",
"client",
")",
";",
"}"
] | Use this API to add policypatset. | [
"Use",
"this",
"API",
"to",
"add",
"policypatset",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/policy/policypatset.java#L125-L130 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/policy/policypatset.java | policypatset.get | public static policypatset[] get(nitro_service service) throws Exception{
policypatset obj = new policypatset();
policypatset[] response = (policypatset[])obj.get_resources(service);
return response;
} | java | public static policypatset[] get(nitro_service service) throws Exception{
policypatset obj = new policypatset();
policypatset[] response = (policypatset[])obj.get_resources(service);
return response;
} | [
"public",
"static",
"policypatset",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
")",
"throws",
"Exception",
"{",
"policypatset",
"obj",
"=",
"new",
"policypatset",
"(",
")",
";",
"policypatset",
"[",
"]",
"response",
"=",
"(",
"policypatset",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch all the policypatset resources that are configured on netscaler. | [
"Use",
"this",
"API",
"to",
"fetch",
"all",
"the",
"policypatset",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/policy/policypatset.java#L202-L206 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/policy/policypatset.java | policypatset.get | public static policypatset get(nitro_service service, String name) throws Exception{
policypatset obj = new policypatset();
obj.set_name(name);
policypatset response = (policypatset) obj.get_resource(service);
return response;
} | java | public static policypatset get(nitro_service service, String name) throws Exception{
policypatset obj = new policypatset();
obj.set_name(name);
policypatset response = (policypatset) obj.get_resource(service);
return response;
} | [
"public",
"static",
"policypatset",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"policypatset",
"obj",
"=",
"new",
"policypatset",
"(",
")",
";",
"obj",
".",
"set_name",
"(",
"name",
")",
";",
"policypatset",
"response",
"=",
"(",
"policypatset",
")",
"obj",
".",
"get_resource",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch policypatset resource of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"policypatset",
"resource",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/policy/policypatset.java#L218-L223 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/policy/policypatset.java | policypatset.get_filtered | public static policypatset[] get_filtered(nitro_service service, filtervalue[] filter) throws Exception{
policypatset obj = new policypatset();
options option = new options();
option.set_filter(filter);
policypatset[] response = (policypatset[]) obj.getfiltered(service, option);
return response;
} | java | public static policypatset[] get_filtered(nitro_service service, filtervalue[] filter) throws Exception{
policypatset obj = new policypatset();
options option = new options();
option.set_filter(filter);
policypatset[] response = (policypatset[]) obj.getfiltered(service, option);
return response;
} | [
"public",
"static",
"policypatset",
"[",
"]",
"get_filtered",
"(",
"nitro_service",
"service",
",",
"filtervalue",
"[",
"]",
"filter",
")",
"throws",
"Exception",
"{",
"policypatset",
"obj",
"=",
"new",
"policypatset",
"(",
")",
";",
"options",
"option",
"=",
"new",
"options",
"(",
")",
";",
"option",
".",
"set_filter",
"(",
"filter",
")",
";",
"policypatset",
"[",
"]",
"response",
"=",
"(",
"policypatset",
"[",
"]",
")",
"obj",
".",
"getfiltered",
"(",
"service",
",",
"option",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch filtered set of policypatset resources.
set the filter parameter values in filtervalue object. | [
"Use",
"this",
"API",
"to",
"fetch",
"filtered",
"set",
"of",
"policypatset",
"resources",
".",
"set",
"the",
"filter",
"parameter",
"values",
"in",
"filtervalue",
"object",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/policy/policypatset.java#L257-L263 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/filter/filterpolicy_filterglobal_binding.java | filterpolicy_filterglobal_binding.get | public static filterpolicy_filterglobal_binding[] get(nitro_service service, String name) throws Exception{
filterpolicy_filterglobal_binding obj = new filterpolicy_filterglobal_binding();
obj.set_name(name);
filterpolicy_filterglobal_binding response[] = (filterpolicy_filterglobal_binding[]) obj.get_resources(service);
return response;
} | java | public static filterpolicy_filterglobal_binding[] get(nitro_service service, String name) throws Exception{
filterpolicy_filterglobal_binding obj = new filterpolicy_filterglobal_binding();
obj.set_name(name);
filterpolicy_filterglobal_binding response[] = (filterpolicy_filterglobal_binding[]) obj.get_resources(service);
return response;
} | [
"public",
"static",
"filterpolicy_filterglobal_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"filterpolicy_filterglobal_binding",
"obj",
"=",
"new",
"filterpolicy_filterglobal_binding",
"(",
")",
";",
"obj",
".",
"set_name",
"(",
"name",
")",
";",
"filterpolicy_filterglobal_binding",
"response",
"[",
"]",
"=",
"(",
"filterpolicy_filterglobal_binding",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch filterpolicy_filterglobal_binding resources of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"filterpolicy_filterglobal_binding",
"resources",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/filter/filterpolicy_filterglobal_binding.java#L132-L137 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nstcpbufparam.java | nstcpbufparam.update | public static base_response update(nitro_service client, nstcpbufparam resource) throws Exception {
nstcpbufparam updateresource = new nstcpbufparam();
updateresource.size = resource.size;
updateresource.memlimit = resource.memlimit;
return updateresource.update_resource(client);
} | java | public static base_response update(nitro_service client, nstcpbufparam resource) throws Exception {
nstcpbufparam updateresource = new nstcpbufparam();
updateresource.size = resource.size;
updateresource.memlimit = resource.memlimit;
return updateresource.update_resource(client);
} | [
"public",
"static",
"base_response",
"update",
"(",
"nitro_service",
"client",
",",
"nstcpbufparam",
"resource",
")",
"throws",
"Exception",
"{",
"nstcpbufparam",
"updateresource",
"=",
"new",
"nstcpbufparam",
"(",
")",
";",
"updateresource",
".",
"size",
"=",
"resource",
".",
"size",
";",
"updateresource",
".",
"memlimit",
"=",
"resource",
".",
"memlimit",
";",
"return",
"updateresource",
".",
"update_resource",
"(",
"client",
")",
";",
"}"
] | Use this API to update nstcpbufparam. | [
"Use",
"this",
"API",
"to",
"update",
"nstcpbufparam",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nstcpbufparam.java#L131-L136 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nstcpbufparam.java | nstcpbufparam.unset | public static base_response unset(nitro_service client, nstcpbufparam resource, String[] args) throws Exception{
nstcpbufparam unsetresource = new nstcpbufparam();
return unsetresource.unset_resource(client,args);
} | java | public static base_response unset(nitro_service client, nstcpbufparam resource, String[] args) throws Exception{
nstcpbufparam unsetresource = new nstcpbufparam();
return unsetresource.unset_resource(client,args);
} | [
"public",
"static",
"base_response",
"unset",
"(",
"nitro_service",
"client",
",",
"nstcpbufparam",
"resource",
",",
"String",
"[",
"]",
"args",
")",
"throws",
"Exception",
"{",
"nstcpbufparam",
"unsetresource",
"=",
"new",
"nstcpbufparam",
"(",
")",
";",
"return",
"unsetresource",
".",
"unset_resource",
"(",
"client",
",",
"args",
")",
";",
"}"
] | Use this API to unset the properties of nstcpbufparam resource.
Properties that need to be unset are specified in args array. | [
"Use",
"this",
"API",
"to",
"unset",
"the",
"properties",
"of",
"nstcpbufparam",
"resource",
".",
"Properties",
"that",
"need",
"to",
"be",
"unset",
"are",
"specified",
"in",
"args",
"array",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nstcpbufparam.java#L142-L145 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nstcpbufparam.java | nstcpbufparam.get | public static nstcpbufparam get(nitro_service service) throws Exception{
nstcpbufparam obj = new nstcpbufparam();
nstcpbufparam[] response = (nstcpbufparam[])obj.get_resources(service);
return response[0];
} | java | public static nstcpbufparam get(nitro_service service) throws Exception{
nstcpbufparam obj = new nstcpbufparam();
nstcpbufparam[] response = (nstcpbufparam[])obj.get_resources(service);
return response[0];
} | [
"public",
"static",
"nstcpbufparam",
"get",
"(",
"nitro_service",
"service",
")",
"throws",
"Exception",
"{",
"nstcpbufparam",
"obj",
"=",
"new",
"nstcpbufparam",
"(",
")",
";",
"nstcpbufparam",
"[",
"]",
"response",
"=",
"(",
"nstcpbufparam",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
"[",
"0",
"]",
";",
"}"
] | Use this API to fetch all the nstcpbufparam resources that are configured on netscaler. | [
"Use",
"this",
"API",
"to",
"fetch",
"all",
"the",
"nstcpbufparam",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nstcpbufparam.java#L150-L154 | train |
meertensinstituut/mtas | src/main/java/mtas/codec/util/collector/MtasDataCollector.java | MtasDataCollector.increaseNewListSize | @SuppressWarnings("unchecked")
protected void increaseNewListSize() throws IOException {
if (!closed) {
String[] tmpNewKeyList = newKeyList;
int[] tmpNewSourceNumberList = newSourceNumberList;
int[] tmpNewErrorNumber = newErrorNumber;
HashMap<String, Integer>[] tmpNewErrorList = newErrorList;
int tmpNewSize = newSize;
newSize = 2 * newSize;
newKeyList = new String[newSize];
newSourceNumberList = new int[newSize];
newErrorNumber = new int[newSize];
newErrorList = (HashMap<String, Integer>[]) new HashMap<?, ?>[newSize];
System.arraycopy(tmpNewKeyList, 0, newKeyList, 0, tmpNewSize);
System.arraycopy(tmpNewSourceNumberList, 0, newSourceNumberList, 0,
tmpNewSize);
System.arraycopy(tmpNewErrorNumber, 0, newErrorNumber, 0, tmpNewSize);
System.arraycopy(tmpNewErrorList, 0, newErrorList, 0, tmpNewSize);
if (hasSub) {
MtasDataCollector<?, ?>[] tmpNewSubCollectorListNextLevel = newSubCollectorListNextLevel;
newSubCollectorListNextLevel = new MtasDataCollector[newSize];
System.arraycopy(tmpNewSubCollectorListNextLevel, 0,
newSubCollectorListNextLevel, 0, tmpNewSize);
}
} else {
throw new IOException("already closed");
}
} | java | @SuppressWarnings("unchecked")
protected void increaseNewListSize() throws IOException {
if (!closed) {
String[] tmpNewKeyList = newKeyList;
int[] tmpNewSourceNumberList = newSourceNumberList;
int[] tmpNewErrorNumber = newErrorNumber;
HashMap<String, Integer>[] tmpNewErrorList = newErrorList;
int tmpNewSize = newSize;
newSize = 2 * newSize;
newKeyList = new String[newSize];
newSourceNumberList = new int[newSize];
newErrorNumber = new int[newSize];
newErrorList = (HashMap<String, Integer>[]) new HashMap<?, ?>[newSize];
System.arraycopy(tmpNewKeyList, 0, newKeyList, 0, tmpNewSize);
System.arraycopy(tmpNewSourceNumberList, 0, newSourceNumberList, 0,
tmpNewSize);
System.arraycopy(tmpNewErrorNumber, 0, newErrorNumber, 0, tmpNewSize);
System.arraycopy(tmpNewErrorList, 0, newErrorList, 0, tmpNewSize);
if (hasSub) {
MtasDataCollector<?, ?>[] tmpNewSubCollectorListNextLevel = newSubCollectorListNextLevel;
newSubCollectorListNextLevel = new MtasDataCollector[newSize];
System.arraycopy(tmpNewSubCollectorListNextLevel, 0,
newSubCollectorListNextLevel, 0, tmpNewSize);
}
} else {
throw new IOException("already closed");
}
} | [
"@",
"SuppressWarnings",
"(",
"\"unchecked\"",
")",
"protected",
"void",
"increaseNewListSize",
"(",
")",
"throws",
"IOException",
"{",
"if",
"(",
"!",
"closed",
")",
"{",
"String",
"[",
"]",
"tmpNewKeyList",
"=",
"newKeyList",
";",
"int",
"[",
"]",
"tmpNewSourceNumberList",
"=",
"newSourceNumberList",
";",
"int",
"[",
"]",
"tmpNewErrorNumber",
"=",
"newErrorNumber",
";",
"HashMap",
"<",
"String",
",",
"Integer",
">",
"[",
"]",
"tmpNewErrorList",
"=",
"newErrorList",
";",
"int",
"tmpNewSize",
"=",
"newSize",
";",
"newSize",
"=",
"2",
"*",
"newSize",
";",
"newKeyList",
"=",
"new",
"String",
"[",
"newSize",
"]",
";",
"newSourceNumberList",
"=",
"new",
"int",
"[",
"newSize",
"]",
";",
"newErrorNumber",
"=",
"new",
"int",
"[",
"newSize",
"]",
";",
"newErrorList",
"=",
"(",
"HashMap",
"<",
"String",
",",
"Integer",
">",
"[",
"]",
")",
"new",
"HashMap",
"<",
"?",
",",
"?",
">",
"[",
"newSize",
"]",
";",
"System",
".",
"arraycopy",
"(",
"tmpNewKeyList",
",",
"0",
",",
"newKeyList",
",",
"0",
",",
"tmpNewSize",
")",
";",
"System",
".",
"arraycopy",
"(",
"tmpNewSourceNumberList",
",",
"0",
",",
"newSourceNumberList",
",",
"0",
",",
"tmpNewSize",
")",
";",
"System",
".",
"arraycopy",
"(",
"tmpNewErrorNumber",
",",
"0",
",",
"newErrorNumber",
",",
"0",
",",
"tmpNewSize",
")",
";",
"System",
".",
"arraycopy",
"(",
"tmpNewErrorList",
",",
"0",
",",
"newErrorList",
",",
"0",
",",
"tmpNewSize",
")",
";",
"if",
"(",
"hasSub",
")",
"{",
"MtasDataCollector",
"<",
"?",
",",
"?",
">",
"[",
"]",
"tmpNewSubCollectorListNextLevel",
"=",
"newSubCollectorListNextLevel",
";",
"newSubCollectorListNextLevel",
"=",
"new",
"MtasDataCollector",
"[",
"newSize",
"]",
";",
"System",
".",
"arraycopy",
"(",
"tmpNewSubCollectorListNextLevel",
",",
"0",
",",
"newSubCollectorListNextLevel",
",",
"0",
",",
"tmpNewSize",
")",
";",
"}",
"}",
"else",
"{",
"throw",
"new",
"IOException",
"(",
"\"already closed\"",
")",
";",
"}",
"}"
] | Increase new list size.
@throws IOException Signals that an I/O exception has occurred. | [
"Increase",
"new",
"list",
"size",
"."
] | f02ae730848616bd88b553efa7f9eddc32818e64 | https://github.com/meertensinstituut/mtas/blob/f02ae730848616bd88b553efa7f9eddc32818e64/src/main/java/mtas/codec/util/collector/MtasDataCollector.java#L464-L491 | train |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.