repo stringlengths 7 58 | path stringlengths 12 218 | func_name stringlengths 3 140 | original_string stringlengths 73 34.1k | language stringclasses 1
value | code stringlengths 73 34.1k | code_tokens list | docstring stringlengths 3 16k | docstring_tokens list | sha stringlengths 40 40 | url stringlengths 105 339 | partition stringclasses 1
value |
|---|---|---|---|---|---|---|---|---|---|---|---|
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/cmp/cmppolicylabel.java | cmppolicylabel.add | public static base_response add(nitro_service client, cmppolicylabel resource) throws Exception {
cmppolicylabel addresource = new cmppolicylabel();
addresource.labelname = resource.labelname;
addresource.type = resource.type;
return addresource.add_resource(client);
} | java | public static base_response add(nitro_service client, cmppolicylabel resource) throws Exception {
cmppolicylabel addresource = new cmppolicylabel();
addresource.labelname = resource.labelname;
addresource.type = resource.type;
return addresource.add_resource(client);
} | [
"public",
"static",
"base_response",
"add",
"(",
"nitro_service",
"client",
",",
"cmppolicylabel",
"resource",
")",
"throws",
"Exception",
"{",
"cmppolicylabel",
"addresource",
"=",
"new",
"cmppolicylabel",
"(",
")",
";",
"addresource",
".",
"labelname",
"=",
"res... | Use this API to add cmppolicylabel. | [
"Use",
"this",
"API",
"to",
"add",
"cmppolicylabel",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/cmp/cmppolicylabel.java#L226-L231 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/cmp/cmppolicylabel.java | cmppolicylabel.add | public static base_responses add(nitro_service client, cmppolicylabel resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
cmppolicylabel addresources[] = new cmppolicylabel[resources.length];
for (int i=0;i<resources.length;i++){
addresources[i] =... | java | public static base_responses add(nitro_service client, cmppolicylabel resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
cmppolicylabel addresources[] = new cmppolicylabel[resources.length];
for (int i=0;i<resources.length;i++){
addresources[i] =... | [
"public",
"static",
"base_responses",
"add",
"(",
"nitro_service",
"client",
",",
"cmppolicylabel",
"resources",
"[",
"]",
")",
"throws",
"Exception",
"{",
"base_responses",
"result",
"=",
"null",
";",
"if",
"(",
"resources",
"!=",
"null",
"&&",
"resources",
"... | Use this API to add cmppolicylabel resources. | [
"Use",
"this",
"API",
"to",
"add",
"cmppolicylabel",
"resources",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/cmp/cmppolicylabel.java#L236-L248 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/cmp/cmppolicylabel.java | cmppolicylabel.rename | public static base_response rename(nitro_service client, cmppolicylabel resource, String new_labelname) throws Exception {
cmppolicylabel renameresource = new cmppolicylabel();
renameresource.labelname = resource.labelname;
return renameresource.rename_resource(client,new_labelname);
} | java | public static base_response rename(nitro_service client, cmppolicylabel resource, String new_labelname) throws Exception {
cmppolicylabel renameresource = new cmppolicylabel();
renameresource.labelname = resource.labelname;
return renameresource.rename_resource(client,new_labelname);
} | [
"public",
"static",
"base_response",
"rename",
"(",
"nitro_service",
"client",
",",
"cmppolicylabel",
"resource",
",",
"String",
"new_labelname",
")",
"throws",
"Exception",
"{",
"cmppolicylabel",
"renameresource",
"=",
"new",
"cmppolicylabel",
"(",
")",
";",
"renam... | Use this API to rename a cmppolicylabel resource. | [
"Use",
"this",
"API",
"to",
"rename",
"a",
"cmppolicylabel",
"resource",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/cmp/cmppolicylabel.java#L303-L307 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/cmp/cmppolicylabel.java | cmppolicylabel.get | public static cmppolicylabel[] get(nitro_service service) throws Exception{
cmppolicylabel obj = new cmppolicylabel();
cmppolicylabel[] response = (cmppolicylabel[])obj.get_resources(service);
return response;
} | java | public static cmppolicylabel[] get(nitro_service service) throws Exception{
cmppolicylabel obj = new cmppolicylabel();
cmppolicylabel[] response = (cmppolicylabel[])obj.get_resources(service);
return response;
} | [
"public",
"static",
"cmppolicylabel",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
")",
"throws",
"Exception",
"{",
"cmppolicylabel",
"obj",
"=",
"new",
"cmppolicylabel",
"(",
")",
";",
"cmppolicylabel",
"[",
"]",
"response",
"=",
"(",
"cmppolicylabel",
"... | Use this API to fetch all the cmppolicylabel resources that are configured on netscaler. | [
"Use",
"this",
"API",
"to",
"fetch",
"all",
"the",
"cmppolicylabel",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/cmp/cmppolicylabel.java#L321-L325 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/cmp/cmppolicylabel.java | cmppolicylabel.get | public static cmppolicylabel get(nitro_service service, String labelname) throws Exception{
cmppolicylabel obj = new cmppolicylabel();
obj.set_labelname(labelname);
cmppolicylabel response = (cmppolicylabel) obj.get_resource(service);
return response;
} | java | public static cmppolicylabel get(nitro_service service, String labelname) throws Exception{
cmppolicylabel obj = new cmppolicylabel();
obj.set_labelname(labelname);
cmppolicylabel response = (cmppolicylabel) obj.get_resource(service);
return response;
} | [
"public",
"static",
"cmppolicylabel",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"labelname",
")",
"throws",
"Exception",
"{",
"cmppolicylabel",
"obj",
"=",
"new",
"cmppolicylabel",
"(",
")",
";",
"obj",
".",
"set_labelname",
"(",
"labelname",
")",
... | Use this API to fetch cmppolicylabel resource of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"cmppolicylabel",
"resource",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/cmp/cmppolicylabel.java#L337-L342 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/vpn/vpnvserver_vpnnexthopserver_binding.java | vpnvserver_vpnnexthopserver_binding.get | public static vpnvserver_vpnnexthopserver_binding[] get(nitro_service service, String name) throws Exception{
vpnvserver_vpnnexthopserver_binding obj = new vpnvserver_vpnnexthopserver_binding();
obj.set_name(name);
vpnvserver_vpnnexthopserver_binding response[] = (vpnvserver_vpnnexthopserver_binding[]) obj.get_re... | java | public static vpnvserver_vpnnexthopserver_binding[] get(nitro_service service, String name) throws Exception{
vpnvserver_vpnnexthopserver_binding obj = new vpnvserver_vpnnexthopserver_binding();
obj.set_name(name);
vpnvserver_vpnnexthopserver_binding response[] = (vpnvserver_vpnnexthopserver_binding[]) obj.get_re... | [
"public",
"static",
"vpnvserver_vpnnexthopserver_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"vpnvserver_vpnnexthopserver_binding",
"obj",
"=",
"new",
"vpnvserver_vpnnexthopserver_binding",
"(",
")",
... | Use this API to fetch vpnvserver_vpnnexthopserver_binding resources of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"vpnvserver_vpnnexthopserver_binding",
"resources",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/vpn/vpnvserver_vpnnexthopserver_binding.java#L164-L169 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/cache/cacheobject.java | cacheobject.expire | public static base_response expire(nitro_service client, cacheobject resource) throws Exception {
cacheobject expireresource = new cacheobject();
expireresource.locator = resource.locator;
expireresource.url = resource.url;
expireresource.host = resource.host;
expireresource.port = resource.port;
expirereso... | java | public static base_response expire(nitro_service client, cacheobject resource) throws Exception {
cacheobject expireresource = new cacheobject();
expireresource.locator = resource.locator;
expireresource.url = resource.url;
expireresource.host = resource.host;
expireresource.port = resource.port;
expirereso... | [
"public",
"static",
"base_response",
"expire",
"(",
"nitro_service",
"client",
",",
"cacheobject",
"resource",
")",
"throws",
"Exception",
"{",
"cacheobject",
"expireresource",
"=",
"new",
"cacheobject",
"(",
")",
";",
"expireresource",
".",
"locator",
"=",
"resou... | Use this API to expire cacheobject. | [
"Use",
"this",
"API",
"to",
"expire",
"cacheobject",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/cache/cacheobject.java#L902-L911 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/cache/cacheobject.java | cacheobject.expire | public static base_responses expire(nitro_service client, cacheobject resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
cacheobject expireresources[] = new cacheobject[resources.length];
for (int i=0;i<resources.length;i++){
expireresources[i] =... | java | public static base_responses expire(nitro_service client, cacheobject resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
cacheobject expireresources[] = new cacheobject[resources.length];
for (int i=0;i<resources.length;i++){
expireresources[i] =... | [
"public",
"static",
"base_responses",
"expire",
"(",
"nitro_service",
"client",
",",
"cacheobject",
"resources",
"[",
"]",
")",
"throws",
"Exception",
"{",
"base_responses",
"result",
"=",
"null",
";",
"if",
"(",
"resources",
"!=",
"null",
"&&",
"resources",
"... | Use this API to expire cacheobject resources. | [
"Use",
"this",
"API",
"to",
"expire",
"cacheobject",
"resources",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/cache/cacheobject.java#L916-L932 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/cache/cacheobject.java | cacheobject.flush | public static base_response flush(nitro_service client, cacheobject resource) throws Exception {
cacheobject flushresource = new cacheobject();
flushresource.locator = resource.locator;
flushresource.url = resource.url;
flushresource.host = resource.host;
flushresource.port = resource.port;
flushresource.gr... | java | public static base_response flush(nitro_service client, cacheobject resource) throws Exception {
cacheobject flushresource = new cacheobject();
flushresource.locator = resource.locator;
flushresource.url = resource.url;
flushresource.host = resource.host;
flushresource.port = resource.port;
flushresource.gr... | [
"public",
"static",
"base_response",
"flush",
"(",
"nitro_service",
"client",
",",
"cacheobject",
"resource",
")",
"throws",
"Exception",
"{",
"cacheobject",
"flushresource",
"=",
"new",
"cacheobject",
"(",
")",
";",
"flushresource",
".",
"locator",
"=",
"resource... | Use this API to flush cacheobject. | [
"Use",
"this",
"API",
"to",
"flush",
"cacheobject",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/cache/cacheobject.java#L937-L947 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/cache/cacheobject.java | cacheobject.flush | public static base_responses flush(nitro_service client, cacheobject resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
cacheobject flushresources[] = new cacheobject[resources.length];
for (int i=0;i<resources.length;i++){
flushresources[i] = ne... | java | public static base_responses flush(nitro_service client, cacheobject resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
cacheobject flushresources[] = new cacheobject[resources.length];
for (int i=0;i<resources.length;i++){
flushresources[i] = ne... | [
"public",
"static",
"base_responses",
"flush",
"(",
"nitro_service",
"client",
",",
"cacheobject",
"resources",
"[",
"]",
")",
"throws",
"Exception",
"{",
"base_responses",
"result",
"=",
"null",
";",
"if",
"(",
"resources",
"!=",
"null",
"&&",
"resources",
".... | Use this API to flush cacheobject resources. | [
"Use",
"this",
"API",
"to",
"flush",
"cacheobject",
"resources",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/cache/cacheobject.java#L952-L969 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/cache/cacheobject.java | cacheobject.save | public static base_response save(nitro_service client, cacheobject resource) throws Exception {
cacheobject saveresource = new cacheobject();
saveresource.locator = resource.locator;
return saveresource.perform_operation(client,"save");
} | java | public static base_response save(nitro_service client, cacheobject resource) throws Exception {
cacheobject saveresource = new cacheobject();
saveresource.locator = resource.locator;
return saveresource.perform_operation(client,"save");
} | [
"public",
"static",
"base_response",
"save",
"(",
"nitro_service",
"client",
",",
"cacheobject",
"resource",
")",
"throws",
"Exception",
"{",
"cacheobject",
"saveresource",
"=",
"new",
"cacheobject",
"(",
")",
";",
"saveresource",
".",
"locator",
"=",
"resource",
... | Use this API to save cacheobject. | [
"Use",
"this",
"API",
"to",
"save",
"cacheobject",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/cache/cacheobject.java#L974-L978 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/cache/cacheobject.java | cacheobject.save | public static base_responses save(nitro_service client, cacheobject resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
cacheobject saveresources[] = new cacheobject[resources.length];
for (int i=0;i<resources.length;i++){
saveresources[i] = new c... | java | public static base_responses save(nitro_service client, cacheobject resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
cacheobject saveresources[] = new cacheobject[resources.length];
for (int i=0;i<resources.length;i++){
saveresources[i] = new c... | [
"public",
"static",
"base_responses",
"save",
"(",
"nitro_service",
"client",
",",
"cacheobject",
"resources",
"[",
"]",
")",
"throws",
"Exception",
"{",
"base_responses",
"result",
"=",
"null",
";",
"if",
"(",
"resources",
"!=",
"null",
"&&",
"resources",
"."... | Use this API to save cacheobject resources. | [
"Use",
"this",
"API",
"to",
"save",
"cacheobject",
"resources",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/cache/cacheobject.java#L983-L994 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/cache/cacheobject.java | cacheobject.get | public static cacheobject[] get(nitro_service service) throws Exception{
cacheobject obj = new cacheobject();
cacheobject[] response = (cacheobject[])obj.get_resources(service);
return response;
} | java | public static cacheobject[] get(nitro_service service) throws Exception{
cacheobject obj = new cacheobject();
cacheobject[] response = (cacheobject[])obj.get_resources(service);
return response;
} | [
"public",
"static",
"cacheobject",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
")",
"throws",
"Exception",
"{",
"cacheobject",
"obj",
"=",
"new",
"cacheobject",
"(",
")",
";",
"cacheobject",
"[",
"]",
"response",
"=",
"(",
"cacheobject",
"[",
"]",
")... | Use this API to fetch all the cacheobject resources that are configured on netscaler. | [
"Use",
"this",
"API",
"to",
"fetch",
"all",
"the",
"cacheobject",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/cache/cacheobject.java#L999-L1003 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/cache/cacheobject.java | cacheobject.get | public static cacheobject[] get(nitro_service service, cacheobject_args args) throws Exception{
cacheobject obj = new cacheobject();
options option = new options();
option.set_args(nitro_util.object_to_string_withoutquotes(args));
cacheobject[] response = (cacheobject[])obj.get_resources(service, option);
ret... | java | public static cacheobject[] get(nitro_service service, cacheobject_args args) throws Exception{
cacheobject obj = new cacheobject();
options option = new options();
option.set_args(nitro_util.object_to_string_withoutquotes(args));
cacheobject[] response = (cacheobject[])obj.get_resources(service, option);
ret... | [
"public",
"static",
"cacheobject",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"cacheobject_args",
"args",
")",
"throws",
"Exception",
"{",
"cacheobject",
"obj",
"=",
"new",
"cacheobject",
"(",
")",
";",
"options",
"option",
"=",
"new",
"options",
... | Use this API to fetch all the cacheobject resources that are configured on netscaler.
This uses cacheobject_args which is a way to provide additional arguments while fetching the resources. | [
"Use",
"this",
"API",
"to",
"fetch",
"all",
"the",
"cacheobject",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
".",
"This",
"uses",
"cacheobject_args",
"which",
"is",
"a",
"way",
"to",
"provide",
"additional",
"arguments",
"while",
"fetching",
... | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/cache/cacheobject.java#L1016-L1022 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/ssl/sslpolicy_lbvserver_binding.java | sslpolicy_lbvserver_binding.get | public static sslpolicy_lbvserver_binding[] get(nitro_service service, String name) throws Exception{
sslpolicy_lbvserver_binding obj = new sslpolicy_lbvserver_binding();
obj.set_name(name);
sslpolicy_lbvserver_binding response[] = (sslpolicy_lbvserver_binding[]) obj.get_resources(service);
return response;
} | java | public static sslpolicy_lbvserver_binding[] get(nitro_service service, String name) throws Exception{
sslpolicy_lbvserver_binding obj = new sslpolicy_lbvserver_binding();
obj.set_name(name);
sslpolicy_lbvserver_binding response[] = (sslpolicy_lbvserver_binding[]) obj.get_resources(service);
return response;
} | [
"public",
"static",
"sslpolicy_lbvserver_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"sslpolicy_lbvserver_binding",
"obj",
"=",
"new",
"sslpolicy_lbvserver_binding",
"(",
")",
";",
"obj",
".",
... | Use this API to fetch sslpolicy_lbvserver_binding resources of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"sslpolicy_lbvserver_binding",
"resources",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ssl/sslpolicy_lbvserver_binding.java#L162-L167 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/stat/cmp/cmppolicy_stats.java | cmppolicy_stats.get | public static cmppolicy_stats[] get(nitro_service service) throws Exception{
cmppolicy_stats obj = new cmppolicy_stats();
cmppolicy_stats[] response = (cmppolicy_stats[])obj.stat_resources(service);
return response;
} | java | public static cmppolicy_stats[] get(nitro_service service) throws Exception{
cmppolicy_stats obj = new cmppolicy_stats();
cmppolicy_stats[] response = (cmppolicy_stats[])obj.stat_resources(service);
return response;
} | [
"public",
"static",
"cmppolicy_stats",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
")",
"throws",
"Exception",
"{",
"cmppolicy_stats",
"obj",
"=",
"new",
"cmppolicy_stats",
"(",
")",
";",
"cmppolicy_stats",
"[",
"]",
"response",
"=",
"(",
"cmppolicy_stats"... | Use this API to fetch the statistics of all cmppolicy_stats resources that are configured on netscaler. | [
"Use",
"this",
"API",
"to",
"fetch",
"the",
"statistics",
"of",
"all",
"cmppolicy_stats",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/stat/cmp/cmppolicy_stats.java#L151-L155 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/stat/cmp/cmppolicy_stats.java | cmppolicy_stats.get | public static cmppolicy_stats get(nitro_service service, String name) throws Exception{
cmppolicy_stats obj = new cmppolicy_stats();
obj.set_name(name);
cmppolicy_stats response = (cmppolicy_stats) obj.stat_resource(service);
return response;
} | java | public static cmppolicy_stats get(nitro_service service, String name) throws Exception{
cmppolicy_stats obj = new cmppolicy_stats();
obj.set_name(name);
cmppolicy_stats response = (cmppolicy_stats) obj.stat_resource(service);
return response;
} | [
"public",
"static",
"cmppolicy_stats",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"cmppolicy_stats",
"obj",
"=",
"new",
"cmppolicy_stats",
"(",
")",
";",
"obj",
".",
"set_name",
"(",
"name",
")",
";",
"cmp... | Use this API to fetch statistics of cmppolicy_stats resource of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"statistics",
"of",
"cmppolicy_stats",
"resource",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/stat/cmp/cmppolicy_stats.java#L169-L174 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/stat/appfw/appfwpolicylabel_stats.java | appfwpolicylabel_stats.get | public static appfwpolicylabel_stats[] get(nitro_service service) throws Exception{
appfwpolicylabel_stats obj = new appfwpolicylabel_stats();
appfwpolicylabel_stats[] response = (appfwpolicylabel_stats[])obj.stat_resources(service);
return response;
} | java | public static appfwpolicylabel_stats[] get(nitro_service service) throws Exception{
appfwpolicylabel_stats obj = new appfwpolicylabel_stats();
appfwpolicylabel_stats[] response = (appfwpolicylabel_stats[])obj.stat_resources(service);
return response;
} | [
"public",
"static",
"appfwpolicylabel_stats",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
")",
"throws",
"Exception",
"{",
"appfwpolicylabel_stats",
"obj",
"=",
"new",
"appfwpolicylabel_stats",
"(",
")",
";",
"appfwpolicylabel_stats",
"[",
"]",
"response",
"="... | Use this API to fetch the statistics of all appfwpolicylabel_stats resources that are configured on netscaler. | [
"Use",
"this",
"API",
"to",
"fetch",
"the",
"statistics",
"of",
"all",
"appfwpolicylabel_stats",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/stat/appfw/appfwpolicylabel_stats.java#L131-L135 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/stat/appfw/appfwpolicylabel_stats.java | appfwpolicylabel_stats.get | public static appfwpolicylabel_stats get(nitro_service service, String labelname) throws Exception{
appfwpolicylabel_stats obj = new appfwpolicylabel_stats();
obj.set_labelname(labelname);
appfwpolicylabel_stats response = (appfwpolicylabel_stats) obj.stat_resource(service);
return response;
} | java | public static appfwpolicylabel_stats get(nitro_service service, String labelname) throws Exception{
appfwpolicylabel_stats obj = new appfwpolicylabel_stats();
obj.set_labelname(labelname);
appfwpolicylabel_stats response = (appfwpolicylabel_stats) obj.stat_resource(service);
return response;
} | [
"public",
"static",
"appfwpolicylabel_stats",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"labelname",
")",
"throws",
"Exception",
"{",
"appfwpolicylabel_stats",
"obj",
"=",
"new",
"appfwpolicylabel_stats",
"(",
")",
";",
"obj",
".",
"set_labelname",
"(",... | Use this API to fetch statistics of appfwpolicylabel_stats resource of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"statistics",
"of",
"appfwpolicylabel_stats",
"resource",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/stat/appfw/appfwpolicylabel_stats.java#L149-L154 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nsfeature.java | nsfeature.enable | public static base_response enable(nitro_service client, nsfeature resource) throws Exception {
nsfeature enableresource = new nsfeature();
enableresource.feature = resource.feature;
return enableresource.perform_operation(client,"enable");
} | java | public static base_response enable(nitro_service client, nsfeature resource) throws Exception {
nsfeature enableresource = new nsfeature();
enableresource.feature = resource.feature;
return enableresource.perform_operation(client,"enable");
} | [
"public",
"static",
"base_response",
"enable",
"(",
"nitro_service",
"client",
",",
"nsfeature",
"resource",
")",
"throws",
"Exception",
"{",
"nsfeature",
"enableresource",
"=",
"new",
"nsfeature",
"(",
")",
";",
"enableresource",
".",
"feature",
"=",
"resource",
... | Use this API to enable nsfeature. | [
"Use",
"this",
"API",
"to",
"enable",
"nsfeature",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nsfeature.java#L397-L401 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nsfeature.java | nsfeature.disable | public static base_response disable(nitro_service client, nsfeature resource) throws Exception {
nsfeature disableresource = new nsfeature();
disableresource.feature = resource.feature;
return disableresource.perform_operation(client,"disable");
} | java | public static base_response disable(nitro_service client, nsfeature resource) throws Exception {
nsfeature disableresource = new nsfeature();
disableresource.feature = resource.feature;
return disableresource.perform_operation(client,"disable");
} | [
"public",
"static",
"base_response",
"disable",
"(",
"nitro_service",
"client",
",",
"nsfeature",
"resource",
")",
"throws",
"Exception",
"{",
"nsfeature",
"disableresource",
"=",
"new",
"nsfeature",
"(",
")",
";",
"disableresource",
".",
"feature",
"=",
"resource... | Use this API to disable nsfeature. | [
"Use",
"this",
"API",
"to",
"disable",
"nsfeature",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nsfeature.java#L406-L410 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nsfeature.java | nsfeature.get | public static nsfeature get(nitro_service service) throws Exception{
nsfeature obj = new nsfeature();
nsfeature[] response = (nsfeature[])obj.get_resources(service);
return response[0];
} | java | public static nsfeature get(nitro_service service) throws Exception{
nsfeature obj = new nsfeature();
nsfeature[] response = (nsfeature[])obj.get_resources(service);
return response[0];
} | [
"public",
"static",
"nsfeature",
"get",
"(",
"nitro_service",
"service",
")",
"throws",
"Exception",
"{",
"nsfeature",
"obj",
"=",
"new",
"nsfeature",
"(",
")",
";",
"nsfeature",
"[",
"]",
"response",
"=",
"(",
"nsfeature",
"[",
"]",
")",
"obj",
".",
"ge... | Use this API to fetch all the nsfeature resources that are configured on netscaler. | [
"Use",
"this",
"API",
"to",
"fetch",
"all",
"the",
"nsfeature",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nsfeature.java#L415-L419 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nsrpcnode.java | nsrpcnode.update | public static base_response update(nitro_service client, nsrpcnode resource) throws Exception {
nsrpcnode updateresource = new nsrpcnode();
updateresource.ipaddress = resource.ipaddress;
updateresource.password = resource.password;
updateresource.srcip = resource.srcip;
updateresource.secure = resource.secure... | java | public static base_response update(nitro_service client, nsrpcnode resource) throws Exception {
nsrpcnode updateresource = new nsrpcnode();
updateresource.ipaddress = resource.ipaddress;
updateresource.password = resource.password;
updateresource.srcip = resource.srcip;
updateresource.secure = resource.secure... | [
"public",
"static",
"base_response",
"update",
"(",
"nitro_service",
"client",
",",
"nsrpcnode",
"resource",
")",
"throws",
"Exception",
"{",
"nsrpcnode",
"updateresource",
"=",
"new",
"nsrpcnode",
"(",
")",
";",
"updateresource",
".",
"ipaddress",
"=",
"resource"... | Use this API to update nsrpcnode. | [
"Use",
"this",
"API",
"to",
"update",
"nsrpcnode",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nsrpcnode.java#L150-L157 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nsrpcnode.java | nsrpcnode.update | public static base_responses update(nitro_service client, nsrpcnode resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
nsrpcnode updateresources[] = new nsrpcnode[resources.length];
for (int i=0;i<resources.length;i++){
updateresources[i] = new n... | java | public static base_responses update(nitro_service client, nsrpcnode resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
nsrpcnode updateresources[] = new nsrpcnode[resources.length];
for (int i=0;i<resources.length;i++){
updateresources[i] = new n... | [
"public",
"static",
"base_responses",
"update",
"(",
"nitro_service",
"client",
",",
"nsrpcnode",
"resources",
"[",
"]",
")",
"throws",
"Exception",
"{",
"base_responses",
"result",
"=",
"null",
";",
"if",
"(",
"resources",
"!=",
"null",
"&&",
"resources",
"."... | Use this API to update nsrpcnode resources. | [
"Use",
"this",
"API",
"to",
"update",
"nsrpcnode",
"resources",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nsrpcnode.java#L162-L176 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nsrpcnode.java | nsrpcnode.unset | public static base_response unset(nitro_service client, nsrpcnode resource, String[] args) throws Exception{
nsrpcnode unsetresource = new nsrpcnode();
unsetresource.ipaddress = resource.ipaddress;
return unsetresource.unset_resource(client,args);
} | java | public static base_response unset(nitro_service client, nsrpcnode resource, String[] args) throws Exception{
nsrpcnode unsetresource = new nsrpcnode();
unsetresource.ipaddress = resource.ipaddress;
return unsetresource.unset_resource(client,args);
} | [
"public",
"static",
"base_response",
"unset",
"(",
"nitro_service",
"client",
",",
"nsrpcnode",
"resource",
",",
"String",
"[",
"]",
"args",
")",
"throws",
"Exception",
"{",
"nsrpcnode",
"unsetresource",
"=",
"new",
"nsrpcnode",
"(",
")",
";",
"unsetresource",
... | Use this API to unset the properties of nsrpcnode resource.
Properties that need to be unset are specified in args array. | [
"Use",
"this",
"API",
"to",
"unset",
"the",
"properties",
"of",
"nsrpcnode",
"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/nsrpcnode.java#L182-L186 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nsrpcnode.java | nsrpcnode.unset | public static base_responses unset(nitro_service client, String ipaddress[], String args[]) throws Exception {
base_responses result = null;
if (ipaddress != null && ipaddress.length > 0) {
nsrpcnode unsetresources[] = new nsrpcnode[ipaddress.length];
for (int i=0;i<ipaddress.length;i++){
unsetresources[i... | java | public static base_responses unset(nitro_service client, String ipaddress[], String args[]) throws Exception {
base_responses result = null;
if (ipaddress != null && ipaddress.length > 0) {
nsrpcnode unsetresources[] = new nsrpcnode[ipaddress.length];
for (int i=0;i<ipaddress.length;i++){
unsetresources[i... | [
"public",
"static",
"base_responses",
"unset",
"(",
"nitro_service",
"client",
",",
"String",
"ipaddress",
"[",
"]",
",",
"String",
"args",
"[",
"]",
")",
"throws",
"Exception",
"{",
"base_responses",
"result",
"=",
"null",
";",
"if",
"(",
"ipaddress",
"!=",... | Use this API to unset the properties of nsrpcnode resources.
Properties that need to be unset are specified in args array. | [
"Use",
"this",
"API",
"to",
"unset",
"the",
"properties",
"of",
"nsrpcnode",
"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/nsrpcnode.java#L192-L203 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nsrpcnode.java | nsrpcnode.get | public static nsrpcnode[] get(nitro_service service) throws Exception{
nsrpcnode obj = new nsrpcnode();
nsrpcnode[] response = (nsrpcnode[])obj.get_resources(service);
return response;
} | java | public static nsrpcnode[] get(nitro_service service) throws Exception{
nsrpcnode obj = new nsrpcnode();
nsrpcnode[] response = (nsrpcnode[])obj.get_resources(service);
return response;
} | [
"public",
"static",
"nsrpcnode",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
")",
"throws",
"Exception",
"{",
"nsrpcnode",
"obj",
"=",
"new",
"nsrpcnode",
"(",
")",
";",
"nsrpcnode",
"[",
"]",
"response",
"=",
"(",
"nsrpcnode",
"[",
"]",
")",
"obj"... | Use this API to fetch all the nsrpcnode resources that are configured on netscaler. | [
"Use",
"this",
"API",
"to",
"fetch",
"all",
"the",
"nsrpcnode",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nsrpcnode.java#L225-L229 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nsrpcnode.java | nsrpcnode.get | public static nsrpcnode get(nitro_service service, String ipaddress) throws Exception{
nsrpcnode obj = new nsrpcnode();
obj.set_ipaddress(ipaddress);
nsrpcnode response = (nsrpcnode) obj.get_resource(service);
return response;
} | java | public static nsrpcnode get(nitro_service service, String ipaddress) throws Exception{
nsrpcnode obj = new nsrpcnode();
obj.set_ipaddress(ipaddress);
nsrpcnode response = (nsrpcnode) obj.get_resource(service);
return response;
} | [
"public",
"static",
"nsrpcnode",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"ipaddress",
")",
"throws",
"Exception",
"{",
"nsrpcnode",
"obj",
"=",
"new",
"nsrpcnode",
"(",
")",
";",
"obj",
".",
"set_ipaddress",
"(",
"ipaddress",
")",
";",
"nsrpcn... | Use this API to fetch nsrpcnode resource of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"nsrpcnode",
"resource",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nsrpcnode.java#L241-L246 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nsrpcnode.java | nsrpcnode.get | public static nsrpcnode[] get(nitro_service service, String ipaddress[]) throws Exception{
if (ipaddress !=null && ipaddress.length>0) {
nsrpcnode response[] = new nsrpcnode[ipaddress.length];
nsrpcnode obj[] = new nsrpcnode[ipaddress.length];
for (int i=0;i<ipaddress.length;i++) {
obj[i] = new nsrpcnode... | java | public static nsrpcnode[] get(nitro_service service, String ipaddress[]) throws Exception{
if (ipaddress !=null && ipaddress.length>0) {
nsrpcnode response[] = new nsrpcnode[ipaddress.length];
nsrpcnode obj[] = new nsrpcnode[ipaddress.length];
for (int i=0;i<ipaddress.length;i++) {
obj[i] = new nsrpcnode... | [
"public",
"static",
"nsrpcnode",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"ipaddress",
"[",
"]",
")",
"throws",
"Exception",
"{",
"if",
"(",
"ipaddress",
"!=",
"null",
"&&",
"ipaddress",
".",
"length",
">",
"0",
")",
"{",
"nsrpcno... | Use this API to fetch nsrpcnode resources of given names . | [
"Use",
"this",
"API",
"to",
"fetch",
"nsrpcnode",
"resources",
"of",
"given",
"names",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nsrpcnode.java#L251-L263 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/stats/GeneralizedCounter.java | GeneralizedCounter.totalCount | public double totalCount() {
if (depth() == 1) {
return total; // I think this one is always OK. Not very principled here, though.
} else {
double result = 0.0;
for (K o: topLevelKeySet()) {
result += conditionalizeOnce(o).totalCount();
}
return result;
}
} | java | public double totalCount() {
if (depth() == 1) {
return total; // I think this one is always OK. Not very principled here, though.
} else {
double result = 0.0;
for (K o: topLevelKeySet()) {
result += conditionalizeOnce(o).totalCount();
}
return result;
}
} | [
"public",
"double",
"totalCount",
"(",
")",
"{",
"if",
"(",
"depth",
"(",
")",
"==",
"1",
")",
"{",
"return",
"total",
";",
"// I think this one is always OK. Not very principled here, though.\r",
"}",
"else",
"{",
"double",
"result",
"=",
"0.0",
";",
"for",
... | returns the total count of objects in the GeneralizedCounter. | [
"returns",
"the",
"total",
"count",
"of",
"objects",
"in",
"the",
"GeneralizedCounter",
"."
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/stats/GeneralizedCounter.java#L222-L232 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/stats/GeneralizedCounter.java | GeneralizedCounter.printKeySet | private void printKeySet() {
Set<?> keys = keySet();
System.out.println("printing keyset:");
for (Object o: keys) {
//System.out.println(Arrays.asList((Object[]) i.next()));
System.out.println(o);
}
} | java | private void printKeySet() {
Set<?> keys = keySet();
System.out.println("printing keyset:");
for (Object o: keys) {
//System.out.println(Arrays.asList((Object[]) i.next()));
System.out.println(o);
}
} | [
"private",
"void",
"printKeySet",
"(",
")",
"{",
"Set",
"<",
"?",
">",
"keys",
"=",
"keySet",
"(",
")",
";",
"System",
".",
"out",
".",
"println",
"(",
"\"printing keyset:\"",
")",
";",
"for",
"(",
"Object",
"o",
":",
"keys",
")",
"{",
"//System.out.... | below is testing code | [
"below",
"is",
"testing",
"code"
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/stats/GeneralizedCounter.java#L966-L973 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/autoscale/autoscalepolicy_binding.java | autoscalepolicy_binding.get | public static autoscalepolicy_binding get(nitro_service service, String name) throws Exception{
autoscalepolicy_binding obj = new autoscalepolicy_binding();
obj.set_name(name);
autoscalepolicy_binding response = (autoscalepolicy_binding) obj.get_resource(service);
return response;
} | java | public static autoscalepolicy_binding get(nitro_service service, String name) throws Exception{
autoscalepolicy_binding obj = new autoscalepolicy_binding();
obj.set_name(name);
autoscalepolicy_binding response = (autoscalepolicy_binding) obj.get_resource(service);
return response;
} | [
"public",
"static",
"autoscalepolicy_binding",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"autoscalepolicy_binding",
"obj",
"=",
"new",
"autoscalepolicy_binding",
"(",
")",
";",
"obj",
".",
"set_name",
"(",
"nam... | Use this API to fetch autoscalepolicy_binding resource of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"autoscalepolicy_binding",
"resource",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/autoscale/autoscalepolicy_binding.java#L103-L108 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/trees/AbstractTreebankLanguagePack.java | AbstractTreebankLanguagePack.isLabelAnnotationIntroducingCharacter | public boolean isLabelAnnotationIntroducingCharacter(char ch) {
char[] cutChars = labelAnnotationIntroducingCharacters();
for (char cutChar : cutChars) {
if (ch == cutChar) {
return true;
}
}
return false;
} | java | public boolean isLabelAnnotationIntroducingCharacter(char ch) {
char[] cutChars = labelAnnotationIntroducingCharacters();
for (char cutChar : cutChars) {
if (ch == cutChar) {
return true;
}
}
return false;
} | [
"public",
"boolean",
"isLabelAnnotationIntroducingCharacter",
"(",
"char",
"ch",
")",
"{",
"char",
"[",
"]",
"cutChars",
"=",
"labelAnnotationIntroducingCharacters",
"(",
")",
";",
"for",
"(",
"char",
"cutChar",
":",
"cutChars",
")",
"{",
"if",
"(",
"ch",
"=="... | Say whether this character is an annotation introducing
character.
@param ch The character to check
@return Whether it is an annotation introducing character | [
"Say",
"whether",
"this",
"character",
"is",
"an",
"annotation",
"introducing",
"character",
"."
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/trees/AbstractTreebankLanguagePack.java#L463-L471 | train |
meertensinstituut/mtas | src/main/java/mtas/search/spans/util/MtasExtendedTermSpans.java | MtasExtendedTermSpans.getPositions | public int[] getPositions() {
int[] list;
if (assumeSinglePosition) {
list = new int[1];
list[0] = super.startPosition();
return list;
} else {
try {
processEncodedPayload();
list = mtasPosition.getPositions();
if (list != null) {
return mtasPosition... | java | public int[] getPositions() {
int[] list;
if (assumeSinglePosition) {
list = new int[1];
list[0] = super.startPosition();
return list;
} else {
try {
processEncodedPayload();
list = mtasPosition.getPositions();
if (list != null) {
return mtasPosition... | [
"public",
"int",
"[",
"]",
"getPositions",
"(",
")",
"{",
"int",
"[",
"]",
"list",
";",
"if",
"(",
"assumeSinglePosition",
")",
"{",
"list",
"=",
"new",
"int",
"[",
"1",
"]",
";",
"list",
"[",
"0",
"]",
"=",
"super",
".",
"startPosition",
"(",
")... | Gets the positions.
@return the positions | [
"Gets",
"the",
"positions",
"."
] | f02ae730848616bd88b553efa7f9eddc32818e64 | https://github.com/meertensinstituut/mtas/blob/f02ae730848616bd88b553efa7f9eddc32818e64/src/main/java/mtas/search/spans/util/MtasExtendedTermSpans.java#L88-L112 | train |
meertensinstituut/mtas | src/main/java/mtas/search/spans/util/MtasExtendedTermSpans.java | MtasExtendedTermSpans.processEncodedPayload | private void processEncodedPayload() throws IOException {
if (!readPayload) {
payloadSpanCollector.reset();
collect(payloadSpanCollector);
Collection<byte[]> originalPayloadCollection = payloadSpanCollector
.getPayloads();
if (originalPayloadCollection.iterator().hasNext()) {
... | java | private void processEncodedPayload() throws IOException {
if (!readPayload) {
payloadSpanCollector.reset();
collect(payloadSpanCollector);
Collection<byte[]> originalPayloadCollection = payloadSpanCollector
.getPayloads();
if (originalPayloadCollection.iterator().hasNext()) {
... | [
"private",
"void",
"processEncodedPayload",
"(",
")",
"throws",
"IOException",
"{",
"if",
"(",
"!",
"readPayload",
")",
"{",
"payloadSpanCollector",
".",
"reset",
"(",
")",
";",
"collect",
"(",
"payloadSpanCollector",
")",
";",
"Collection",
"<",
"byte",
"[",
... | Process encoded payload.
@throws IOException Signals that an I/O exception has occurred. | [
"Process",
"encoded",
"payload",
"."
] | f02ae730848616bd88b553efa7f9eddc32818e64 | https://github.com/meertensinstituut/mtas/blob/f02ae730848616bd88b553efa7f9eddc32818e64/src/main/java/mtas/search/spans/util/MtasExtendedTermSpans.java#L119-L137 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/ie/crf/CRFBiasedClassifier.java | CRFBiasedClassifier.main | public static void main(String[] args) throws Exception {
System.err.println("CRFBiasedClassifier invoked at " + new Date()
+ " with arguments:");
for (String arg : args) {
System.err.print(" " + arg);
}
System.err.println();
Properties props = StringUtils.argsToProperties... | java | public static void main(String[] args) throws Exception {
System.err.println("CRFBiasedClassifier invoked at " + new Date()
+ " with arguments:");
for (String arg : args) {
System.err.print(" " + arg);
}
System.err.println();
Properties props = StringUtils.argsToProperties... | [
"public",
"static",
"void",
"main",
"(",
"String",
"[",
"]",
"args",
")",
"throws",
"Exception",
"{",
"System",
".",
"err",
".",
"println",
"(",
"\"CRFBiasedClassifier invoked at \"",
"+",
"new",
"Date",
"(",
")",
"+",
"\" with arguments:\"",
")",
";",
"for"... | The main method, which is essentially the same as in CRFClassifier. See the class documentation. | [
"The",
"main",
"method",
"which",
"is",
"essentially",
"the",
"same",
"as",
"in",
"CRFClassifier",
".",
"See",
"the",
"class",
"documentation",
"."
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/ie/crf/CRFBiasedClassifier.java#L141-L185 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnspolicy_dnsglobal_binding.java | dnspolicy_dnsglobal_binding.get | public static dnspolicy_dnsglobal_binding[] get(nitro_service service, String name) throws Exception{
dnspolicy_dnsglobal_binding obj = new dnspolicy_dnsglobal_binding();
obj.set_name(name);
dnspolicy_dnsglobal_binding response[] = (dnspolicy_dnsglobal_binding[]) obj.get_resources(service);
return response;
} | java | public static dnspolicy_dnsglobal_binding[] get(nitro_service service, String name) throws Exception{
dnspolicy_dnsglobal_binding obj = new dnspolicy_dnsglobal_binding();
obj.set_name(name);
dnspolicy_dnsglobal_binding response[] = (dnspolicy_dnsglobal_binding[]) obj.get_resources(service);
return response;
} | [
"public",
"static",
"dnspolicy_dnsglobal_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"dnspolicy_dnsglobal_binding",
"obj",
"=",
"new",
"dnspolicy_dnsglobal_binding",
"(",
")",
";",
"obj",
".",
... | Use this API to fetch dnspolicy_dnsglobal_binding resources of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"dnspolicy_dnsglobal_binding",
"resources",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnspolicy_dnsglobal_binding.java#L162-L167 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/snmp/snmpuser.java | snmpuser.add | public static base_response add(nitro_service client, snmpuser resource) throws Exception {
snmpuser addresource = new snmpuser();
addresource.name = resource.name;
addresource.group = resource.group;
addresource.authtype = resource.authtype;
addresource.authpasswd = resource.authpasswd;
addresource.privtyp... | java | public static base_response add(nitro_service client, snmpuser resource) throws Exception {
snmpuser addresource = new snmpuser();
addresource.name = resource.name;
addresource.group = resource.group;
addresource.authtype = resource.authtype;
addresource.authpasswd = resource.authpasswd;
addresource.privtyp... | [
"public",
"static",
"base_response",
"add",
"(",
"nitro_service",
"client",
",",
"snmpuser",
"resource",
")",
"throws",
"Exception",
"{",
"snmpuser",
"addresource",
"=",
"new",
"snmpuser",
"(",
")",
";",
"addresource",
".",
"name",
"=",
"resource",
".",
"name"... | Use this API to add snmpuser. | [
"Use",
"this",
"API",
"to",
"add",
"snmpuser",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/snmp/snmpuser.java#L239-L248 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/snmp/snmpuser.java | snmpuser.add | public static base_responses add(nitro_service client, snmpuser resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
snmpuser addresources[] = new snmpuser[resources.length];
for (int i=0;i<resources.length;i++){
addresources[i] = new snmpuser();
... | java | public static base_responses add(nitro_service client, snmpuser resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
snmpuser addresources[] = new snmpuser[resources.length];
for (int i=0;i<resources.length;i++){
addresources[i] = new snmpuser();
... | [
"public",
"static",
"base_responses",
"add",
"(",
"nitro_service",
"client",
",",
"snmpuser",
"resources",
"[",
"]",
")",
"throws",
"Exception",
"{",
"base_responses",
"result",
"=",
"null",
";",
"if",
"(",
"resources",
"!=",
"null",
"&&",
"resources",
".",
... | Use this API to add snmpuser resources. | [
"Use",
"this",
"API",
"to",
"add",
"snmpuser",
"resources",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/snmp/snmpuser.java#L253-L269 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/snmp/snmpuser.java | snmpuser.update | public static base_response update(nitro_service client, snmpuser resource) throws Exception {
snmpuser updateresource = new snmpuser();
updateresource.name = resource.name;
updateresource.group = resource.group;
updateresource.authtype = resource.authtype;
updateresource.authpasswd = resource.authpasswd;
u... | java | public static base_response update(nitro_service client, snmpuser resource) throws Exception {
snmpuser updateresource = new snmpuser();
updateresource.name = resource.name;
updateresource.group = resource.group;
updateresource.authtype = resource.authtype;
updateresource.authpasswd = resource.authpasswd;
u... | [
"public",
"static",
"base_response",
"update",
"(",
"nitro_service",
"client",
",",
"snmpuser",
"resource",
")",
"throws",
"Exception",
"{",
"snmpuser",
"updateresource",
"=",
"new",
"snmpuser",
"(",
")",
";",
"updateresource",
".",
"name",
"=",
"resource",
".",... | Use this API to update snmpuser. | [
"Use",
"this",
"API",
"to",
"update",
"snmpuser",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/snmp/snmpuser.java#L324-L333 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/snmp/snmpuser.java | snmpuser.update | public static base_responses update(nitro_service client, snmpuser resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
snmpuser updateresources[] = new snmpuser[resources.length];
for (int i=0;i<resources.length;i++){
updateresources[i] = new snmp... | java | public static base_responses update(nitro_service client, snmpuser resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
snmpuser updateresources[] = new snmpuser[resources.length];
for (int i=0;i<resources.length;i++){
updateresources[i] = new snmp... | [
"public",
"static",
"base_responses",
"update",
"(",
"nitro_service",
"client",
",",
"snmpuser",
"resources",
"[",
"]",
")",
"throws",
"Exception",
"{",
"base_responses",
"result",
"=",
"null",
";",
"if",
"(",
"resources",
"!=",
"null",
"&&",
"resources",
".",... | Use this API to update snmpuser resources. | [
"Use",
"this",
"API",
"to",
"update",
"snmpuser",
"resources",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/snmp/snmpuser.java#L338-L354 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/snmp/snmpuser.java | snmpuser.get | public static snmpuser[] get(nitro_service service, options option) throws Exception{
snmpuser obj = new snmpuser();
snmpuser[] response = (snmpuser[])obj.get_resources(service,option);
return response;
} | java | public static snmpuser[] get(nitro_service service, options option) throws Exception{
snmpuser obj = new snmpuser();
snmpuser[] response = (snmpuser[])obj.get_resources(service,option);
return response;
} | [
"public",
"static",
"snmpuser",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"options",
"option",
")",
"throws",
"Exception",
"{",
"snmpuser",
"obj",
"=",
"new",
"snmpuser",
"(",
")",
";",
"snmpuser",
"[",
"]",
"response",
"=",
"(",
"snmpuser",
... | Use this API to fetch all the snmpuser resources that are configured on netscaler. | [
"Use",
"this",
"API",
"to",
"fetch",
"all",
"the",
"snmpuser",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/snmp/snmpuser.java#L421-L425 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/snmp/snmpuser.java | snmpuser.get | public static snmpuser get(nitro_service service, String name) throws Exception{
snmpuser obj = new snmpuser();
obj.set_name(name);
snmpuser response = (snmpuser) obj.get_resource(service);
return response;
} | java | public static snmpuser get(nitro_service service, String name) throws Exception{
snmpuser obj = new snmpuser();
obj.set_name(name);
snmpuser response = (snmpuser) obj.get_resource(service);
return response;
} | [
"public",
"static",
"snmpuser",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"snmpuser",
"obj",
"=",
"new",
"snmpuser",
"(",
")",
";",
"obj",
".",
"set_name",
"(",
"name",
")",
";",
"snmpuser",
"response",... | Use this API to fetch snmpuser resource of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"snmpuser",
"resource",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/snmp/snmpuser.java#L429-L434 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/aaa/aaagroup_vpntrafficpolicy_binding.java | aaagroup_vpntrafficpolicy_binding.get | public static aaagroup_vpntrafficpolicy_binding[] get(nitro_service service, String groupname) throws Exception{
aaagroup_vpntrafficpolicy_binding obj = new aaagroup_vpntrafficpolicy_binding();
obj.set_groupname(groupname);
aaagroup_vpntrafficpolicy_binding response[] = (aaagroup_vpntrafficpolicy_binding[]) obj.g... | java | public static aaagroup_vpntrafficpolicy_binding[] get(nitro_service service, String groupname) throws Exception{
aaagroup_vpntrafficpolicy_binding obj = new aaagroup_vpntrafficpolicy_binding();
obj.set_groupname(groupname);
aaagroup_vpntrafficpolicy_binding response[] = (aaagroup_vpntrafficpolicy_binding[]) obj.g... | [
"public",
"static",
"aaagroup_vpntrafficpolicy_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"groupname",
")",
"throws",
"Exception",
"{",
"aaagroup_vpntrafficpolicy_binding",
"obj",
"=",
"new",
"aaagroup_vpntrafficpolicy_binding",
"(",
")",
... | Use this API to fetch aaagroup_vpntrafficpolicy_binding resources of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"aaagroup_vpntrafficpolicy_binding",
"resources",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/aaa/aaagroup_vpntrafficpolicy_binding.java#L246-L251 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/util/StringUtils.java | StringUtils.mapStringToMap | public static Map<String, String> mapStringToMap(String map) {
String[] m = map.split("[,;]");
Map<String, String> res = new HashMap<String, String>();
for (String str : m) {
int index = str.lastIndexOf('=');
String key = str.substring(0, index);
String val = str.substring(index + 1)... | java | public static Map<String, String> mapStringToMap(String map) {
String[] m = map.split("[,;]");
Map<String, String> res = new HashMap<String, String>();
for (String str : m) {
int index = str.lastIndexOf('=');
String key = str.substring(0, index);
String val = str.substring(index + 1)... | [
"public",
"static",
"Map",
"<",
"String",
",",
"String",
">",
"mapStringToMap",
"(",
"String",
"map",
")",
"{",
"String",
"[",
"]",
"m",
"=",
"map",
".",
"split",
"(",
"\"[,;]\"",
")",
";",
"Map",
"<",
"String",
",",
"String",
">",
"res",
"=",
"new... | Takes a string of the form "x1=y1,x2=y2,..." and returns Map
@param map A string of the form "x1=y1,x2=y2,..."
@return A Map m is returned such that m.get(xn) = yn | [
"Takes",
"a",
"string",
"of",
"the",
"form",
"x1",
"=",
"y1",
"x2",
"=",
"y2",
"...",
"and",
"returns",
"Map"
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/util/StringUtils.java#L120-L130 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/util/StringUtils.java | StringUtils.pad | public static String pad(String str, int totalChars) {
if (str == null) {
str = "null";
}
int slen = str.length();
StringBuilder sb = new StringBuilder(str);
for (int i = 0; i < totalChars - slen; i++) {
sb.append(' ');
}
return sb.toString();
} | java | public static String pad(String str, int totalChars) {
if (str == null) {
str = "null";
}
int slen = str.length();
StringBuilder sb = new StringBuilder(str);
for (int i = 0; i < totalChars - slen; i++) {
sb.append(' ');
}
return sb.toString();
} | [
"public",
"static",
"String",
"pad",
"(",
"String",
"str",
",",
"int",
"totalChars",
")",
"{",
"if",
"(",
"str",
"==",
"null",
")",
"{",
"str",
"=",
"\"null\"",
";",
"}",
"int",
"slen",
"=",
"str",
".",
"length",
"(",
")",
";",
"StringBuilder",
"sb... | Return a String of length a minimum of totalChars characters by
padding the input String str at the right end with spaces.
If str is already longer
than totalChars, it is returned unchanged. | [
"Return",
"a",
"String",
"of",
"length",
"a",
"minimum",
"of",
"totalChars",
"characters",
"by",
"padding",
"the",
"input",
"String",
"str",
"at",
"the",
"right",
"end",
"with",
"spaces",
".",
"If",
"str",
"is",
"already",
"longer",
"than",
"totalChars",
"... | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/util/StringUtils.java#L400-L410 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/util/StringUtils.java | StringUtils.padOrTrim | public static String padOrTrim(String str, int num) {
if (str == null) {
str = "null";
}
int leng = str.length();
if (leng < num) {
StringBuilder sb = new StringBuilder(str);
for (int i = 0; i < num - leng; i++) {
sb.append(' ');
}
return sb.toString();
... | java | public static String padOrTrim(String str, int num) {
if (str == null) {
str = "null";
}
int leng = str.length();
if (leng < num) {
StringBuilder sb = new StringBuilder(str);
for (int i = 0; i < num - leng; i++) {
sb.append(' ');
}
return sb.toString();
... | [
"public",
"static",
"String",
"padOrTrim",
"(",
"String",
"str",
",",
"int",
"num",
")",
"{",
"if",
"(",
"str",
"==",
"null",
")",
"{",
"str",
"=",
"\"null\"",
";",
"}",
"int",
"leng",
"=",
"str",
".",
"length",
"(",
")",
";",
"if",
"(",
"leng",
... | Pad or trim so as to produce a string of exactly a certain length.
@param str The String to be padded or truncated
@param num The desired length | [
"Pad",
"or",
"trim",
"so",
"as",
"to",
"produce",
"a",
"string",
"of",
"exactly",
"a",
"certain",
"length",
"."
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/util/StringUtils.java#L426-L442 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/util/StringUtils.java | StringUtils.padLeft | public static String padLeft(String str, int totalChars, char ch) {
if (str == null) {
str = "null";
}
StringBuilder sb = new StringBuilder();
for (int i = 0, num = totalChars - str.length(); i < num; i++) {
sb.append(ch);
}
sb.append(str);
return sb.toString();
} | java | public static String padLeft(String str, int totalChars, char ch) {
if (str == null) {
str = "null";
}
StringBuilder sb = new StringBuilder();
for (int i = 0, num = totalChars - str.length(); i < num; i++) {
sb.append(ch);
}
sb.append(str);
return sb.toString();
} | [
"public",
"static",
"String",
"padLeft",
"(",
"String",
"str",
",",
"int",
"totalChars",
",",
"char",
"ch",
")",
"{",
"if",
"(",
"str",
"==",
"null",
")",
"{",
"str",
"=",
"\"null\"",
";",
"}",
"StringBuilder",
"sb",
"=",
"new",
"StringBuilder",
"(",
... | Pads the given String to the left with the given character to ensure that
it's at least totalChars long. | [
"Pads",
"the",
"given",
"String",
"to",
"the",
"left",
"with",
"the",
"given",
"character",
"to",
"ensure",
"that",
"it",
"s",
"at",
"least",
"totalChars",
"long",
"."
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/util/StringUtils.java#L481-L491 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/util/StringUtils.java | StringUtils.trim | public static String trim(String s, int maxWidth) {
if (s.length() <= maxWidth) {
return (s);
}
return (s.substring(0, maxWidth));
} | java | public static String trim(String s, int maxWidth) {
if (s.length() <= maxWidth) {
return (s);
}
return (s.substring(0, maxWidth));
} | [
"public",
"static",
"String",
"trim",
"(",
"String",
"s",
",",
"int",
"maxWidth",
")",
"{",
"if",
"(",
"s",
".",
"length",
"(",
")",
"<=",
"maxWidth",
")",
"{",
"return",
"(",
"s",
")",
";",
"}",
"return",
"(",
"s",
".",
"substring",
"(",
"0",
... | Returns s if it's at most maxWidth chars, otherwise chops right side to fit. | [
"Returns",
"s",
"if",
"it",
"s",
"at",
"most",
"maxWidth",
"chars",
"otherwise",
"chops",
"right",
"side",
"to",
"fit",
"."
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/util/StringUtils.java#L518-L523 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/util/StringUtils.java | StringUtils.fileNameClean | public static String fileNameClean(String s) {
char[] chars = s.toCharArray();
StringBuilder sb = new StringBuilder();
for (char c : chars) {
if ((c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z') || (c >= '0' && c <= '9') || (c == '_')) {
sb.append(c);
} else {
if (c == ' '... | java | public static String fileNameClean(String s) {
char[] chars = s.toCharArray();
StringBuilder sb = new StringBuilder();
for (char c : chars) {
if ((c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z') || (c >= '0' && c <= '9') || (c == '_')) {
sb.append(c);
} else {
if (c == ' '... | [
"public",
"static",
"String",
"fileNameClean",
"(",
"String",
"s",
")",
"{",
"char",
"[",
"]",
"chars",
"=",
"s",
".",
"toCharArray",
"(",
")",
";",
"StringBuilder",
"sb",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"for",
"(",
"char",
"c",
":",
"cha... | Returns a "clean" version of the given filename in which spaces have
been converted to dashes and all non-alphanumeric chars are underscores. | [
"Returns",
"a",
"clean",
"version",
"of",
"the",
"given",
"filename",
"in",
"which",
"spaces",
"have",
"been",
"converted",
"to",
"dashes",
"and",
"all",
"non",
"-",
"alphanumeric",
"chars",
"are",
"underscores",
"."
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/util/StringUtils.java#L555-L570 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/util/StringUtils.java | StringUtils.truncate | public static String truncate(int n, int smallestDigit, int biggestDigit) {
int numDigits = biggestDigit - smallestDigit + 1;
char[] result = new char[numDigits];
for (int j = 1; j < smallestDigit; j++) {
n = n / 10;
}
for (int j = numDigits - 1; j >= 0; j--) {
result[j] = Charact... | java | public static String truncate(int n, int smallestDigit, int biggestDigit) {
int numDigits = biggestDigit - smallestDigit + 1;
char[] result = new char[numDigits];
for (int j = 1; j < smallestDigit; j++) {
n = n / 10;
}
for (int j = numDigits - 1; j >= 0; j--) {
result[j] = Charact... | [
"public",
"static",
"String",
"truncate",
"(",
"int",
"n",
",",
"int",
"smallestDigit",
",",
"int",
"biggestDigit",
")",
"{",
"int",
"numDigits",
"=",
"biggestDigit",
"-",
"smallestDigit",
"+",
"1",
";",
"char",
"[",
"]",
"result",
"=",
"new",
"char",
"[... | This returns a string from decimal digit smallestDigit to decimal digit
biggest digit. Smallest digit is labeled 1, and the limits are
inclusive. | [
"This",
"returns",
"a",
"string",
"from",
"decimal",
"digit",
"smallestDigit",
"to",
"decimal",
"digit",
"biggest",
"digit",
".",
"Smallest",
"digit",
"is",
"labeled",
"1",
"and",
"the",
"limits",
"are",
"inclusive",
"."
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/util/StringUtils.java#L598-L609 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/util/StringUtils.java | StringUtils.checkRequiredProperties | public static String checkRequiredProperties(Properties props,
String ... requiredProps) {
for (String required : requiredProps) {
if (props.getProperty(required) == null) {
return required;
}
}
return null;
} | java | public static String checkRequiredProperties(Properties props,
String ... requiredProps) {
for (String required : requiredProps) {
if (props.getProperty(required) == null) {
return required;
}
}
return null;
} | [
"public",
"static",
"String",
"checkRequiredProperties",
"(",
"Properties",
"props",
",",
"String",
"...",
"requiredProps",
")",
"{",
"for",
"(",
"String",
"required",
":",
"requiredProps",
")",
"{",
"if",
"(",
"props",
".",
"getProperty",
"(",
"required",
")"... | If any of the given list of properties are not found, returns the
name of that property. Otherwise, returns null. | [
"If",
"any",
"of",
"the",
"given",
"list",
"of",
"properties",
"are",
"not",
"found",
"returns",
"the",
"name",
"of",
"that",
"property",
".",
"Otherwise",
"returns",
"null",
"."
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/util/StringUtils.java#L861-L869 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/util/StringUtils.java | StringUtils.printToFile | public static void printToFile(String filename, String message) {
printToFile(new File(filename), message, false);
} | java | public static void printToFile(String filename, String message) {
printToFile(new File(filename), message, false);
} | [
"public",
"static",
"void",
"printToFile",
"(",
"String",
"filename",
",",
"String",
"message",
")",
"{",
"printToFile",
"(",
"new",
"File",
"(",
"filename",
")",
",",
"message",
",",
"false",
")",
";",
"}"
] | Prints to a file. If the file does not exist, rewrites the file;
does not append. | [
"Prints",
"to",
"a",
"file",
".",
"If",
"the",
"file",
"does",
"not",
"exist",
"rewrites",
"the",
"file",
";",
"does",
"not",
"append",
"."
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/util/StringUtils.java#L977-L979 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/util/StringUtils.java | StringUtils.longestCommonContiguousSubstring | public static int longestCommonContiguousSubstring(String s, String t) {
if (s.length() == 0 || t.length() == 0) {
return 0;
}
int M = s.length();
int N = t.length();
int[][] d = new int[M + 1][N + 1];
for (int j = 0; j <= N; j++) {
d[0][j] = 0;
}
for (int i = 0; i ... | java | public static int longestCommonContiguousSubstring(String s, String t) {
if (s.length() == 0 || t.length() == 0) {
return 0;
}
int M = s.length();
int N = t.length();
int[][] d = new int[M + 1][N + 1];
for (int j = 0; j <= N; j++) {
d[0][j] = 0;
}
for (int i = 0; i ... | [
"public",
"static",
"int",
"longestCommonContiguousSubstring",
"(",
"String",
"s",
",",
"String",
"t",
")",
"{",
"if",
"(",
"s",
".",
"length",
"(",
")",
"==",
"0",
"||",
"t",
".",
"length",
"(",
")",
"==",
"0",
")",
"{",
"return",
"0",
";",
"}",
... | Computes the longest common contiguous substring of s and t.
The LCCS is the longest run of characters that appear consecutively in
both s and t. For instance, the LCCS of "color" and "colour" is 4, because
of "colo". | [
"Computes",
"the",
"longest",
"common",
"contiguous",
"substring",
"of",
"s",
"and",
"t",
".",
"The",
"LCCS",
"is",
"the",
"longest",
"run",
"of",
"characters",
"that",
"appear",
"consecutively",
"in",
"both",
"s",
"and",
"t",
".",
"For",
"instance",
"the"... | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/util/StringUtils.java#L1218-L1248 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/util/StringUtils.java | StringUtils.pennPOSToWordnetPOS | public static String pennPOSToWordnetPOS(String s) {
if (s.matches("NN|NNP|NNS|NNPS")) {
return "noun";
}
if (s.matches("VB|VBD|VBG|VBN|VBZ|VBP|MD")) {
return "verb";
}
if (s.matches("JJ|JJR|JJS|CD")) {
return "adjective";
}
if (s.matches("RB|RBR|RBS|RP|WRB")) {
... | java | public static String pennPOSToWordnetPOS(String s) {
if (s.matches("NN|NNP|NNS|NNPS")) {
return "noun";
}
if (s.matches("VB|VBD|VBG|VBN|VBZ|VBP|MD")) {
return "verb";
}
if (s.matches("JJ|JJR|JJS|CD")) {
return "adjective";
}
if (s.matches("RB|RBR|RBS|RP|WRB")) {
... | [
"public",
"static",
"String",
"pennPOSToWordnetPOS",
"(",
"String",
"s",
")",
"{",
"if",
"(",
"s",
".",
"matches",
"(",
"\"NN|NNP|NNS|NNPS\"",
")",
")",
"{",
"return",
"\"noun\"",
";",
"}",
"if",
"(",
"s",
".",
"matches",
"(",
"\"VB|VBD|VBG|VBN|VBZ|VBP|MD\""... | Computes the WordNet 2.0 POS tag corresponding to the PTB POS tag s.
@param s a Penn TreeBank POS tag. | [
"Computes",
"the",
"WordNet",
"2",
".",
"0",
"POS",
"tag",
"corresponding",
"to",
"the",
"PTB",
"POS",
"tag",
"s",
"."
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/util/StringUtils.java#L1301-L1315 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/util/StringUtils.java | StringUtils.getShortClassName | public static String getShortClassName(Object o) {
String name = o.getClass().getName();
int index = name.lastIndexOf('.');
if (index >= 0) {
name = name.substring(index + 1);
}
return name;
} | java | public static String getShortClassName(Object o) {
String name = o.getClass().getName();
int index = name.lastIndexOf('.');
if (index >= 0) {
name = name.substring(index + 1);
}
return name;
} | [
"public",
"static",
"String",
"getShortClassName",
"(",
"Object",
"o",
")",
"{",
"String",
"name",
"=",
"o",
".",
"getClass",
"(",
")",
".",
"getName",
"(",
")",
";",
"int",
"index",
"=",
"name",
".",
"lastIndexOf",
"(",
"'",
"'",
")",
";",
"if",
"... | Returns a short class name for an object.
This is the class name stripped of any package name.
@return The name of the class minus a package name, for example
<code>ArrayList</code> | [
"Returns",
"a",
"short",
"class",
"name",
"for",
"an",
"object",
".",
"This",
"is",
"the",
"class",
"name",
"stripped",
"of",
"any",
"package",
"name",
"."
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/util/StringUtils.java#L1324-L1331 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/util/StringUtils.java | StringUtils.columnStringToObject | public static <T> T columnStringToObject(Class objClass, String str, String delimiterRegex, String[] fieldNames)
throws InstantiationException, IllegalAccessException, NoSuchFieldException, NoSuchMethodException, InvocationTargetException
{
Pattern delimiterPattern = Pattern.compile(delimiterRegex);
... | java | public static <T> T columnStringToObject(Class objClass, String str, String delimiterRegex, String[] fieldNames)
throws InstantiationException, IllegalAccessException, NoSuchFieldException, NoSuchMethodException, InvocationTargetException
{
Pattern delimiterPattern = Pattern.compile(delimiterRegex);
... | [
"public",
"static",
"<",
"T",
">",
"T",
"columnStringToObject",
"(",
"Class",
"objClass",
",",
"String",
"str",
",",
"String",
"delimiterRegex",
",",
"String",
"[",
"]",
"fieldNames",
")",
"throws",
"InstantiationException",
",",
"IllegalAccessException",
",",
"... | Converts a tab delimited string into an object with given fields
Requires the object has setXxx functions for the specified fields
@param objClass Class of object to be created
@param str string to convert
@param delimiterRegex delimiter regular expression
@param fieldNames fieldnames
@param <T> type to return
@return... | [
"Converts",
"a",
"tab",
"delimited",
"string",
"into",
"an",
"object",
"with",
"given",
"fields",
"Requires",
"the",
"object",
"has",
"setXxx",
"functions",
"for",
"the",
"specified",
"fields"
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/util/StringUtils.java#L1345-L1350 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/util/StringUtils.java | StringUtils.columnStringToObject | public static <T> T columnStringToObject(Class<?> objClass, String str, Pattern delimiterPattern, String[] fieldNames)
throws InstantiationException, IllegalAccessException, NoSuchMethodException, NoSuchFieldException, InvocationTargetException
{
String[] fields = delimiterPattern.split(str);
T ... | java | public static <T> T columnStringToObject(Class<?> objClass, String str, Pattern delimiterPattern, String[] fieldNames)
throws InstantiationException, IllegalAccessException, NoSuchMethodException, NoSuchFieldException, InvocationTargetException
{
String[] fields = delimiterPattern.split(str);
T ... | [
"public",
"static",
"<",
"T",
">",
"T",
"columnStringToObject",
"(",
"Class",
"<",
"?",
">",
"objClass",
",",
"String",
"str",
",",
"Pattern",
"delimiterPattern",
",",
"String",
"[",
"]",
"fieldNames",
")",
"throws",
"InstantiationException",
",",
"IllegalAcce... | Converts a tab delimited string into an object with given fields
Requires the object has public access for the specified fields
@param objClass Class of object to be created
@param str string to convert
@param delimiterPattern delimiter
@param fieldNames fieldnames
@param <T> type to return
@return Object created from... | [
"Converts",
"a",
"tab",
"delimited",
"string",
"into",
"an",
"object",
"with",
"given",
"fields",
"Requires",
"the",
"object",
"has",
"public",
"access",
"for",
"the",
"specified",
"fields"
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/util/StringUtils.java#L1363-L1378 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/util/StringUtils.java | StringUtils.objectToColumnString | public static String objectToColumnString(Object object, String delimiter, String[] fieldNames)
throws IllegalAccessException, NoSuchFieldException, NoSuchMethodException, InvocationTargetException
{
StringBuilder sb = new StringBuilder();
for (int i = 0; i < fieldNames.length; i++) {
if ... | java | public static String objectToColumnString(Object object, String delimiter, String[] fieldNames)
throws IllegalAccessException, NoSuchFieldException, NoSuchMethodException, InvocationTargetException
{
StringBuilder sb = new StringBuilder();
for (int i = 0; i < fieldNames.length; i++) {
if ... | [
"public",
"static",
"String",
"objectToColumnString",
"(",
"Object",
"object",
",",
"String",
"delimiter",
",",
"String",
"[",
"]",
"fieldNames",
")",
"throws",
"IllegalAccessException",
",",
"NoSuchFieldException",
",",
"NoSuchMethodException",
",",
"InvocationTargetEx... | Converts an object into a tab delimited string with given fields
Requires the object has public access for the specified fields
@param object Object to convert
@param delimiter delimiter
@param fieldNames fieldnames
@return String representing object | [
"Converts",
"an",
"object",
"into",
"a",
"tab",
"delimited",
"string",
"with",
"given",
"fields",
"Requires",
"the",
"object",
"has",
"public",
"access",
"for",
"the",
"specified",
"fields"
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/util/StringUtils.java#L1389-L1406 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/util/StringUtils.java | StringUtils.makeHTMLTable | public static String makeHTMLTable(String[][] table, String[] rowLabels, String[] colLabels) {
StringBuilder buff = new StringBuilder();
buff.append("<table class=\"auto\" border=\"1\" cellspacing=\"0\">\n");
// top row
buff.append("<tr>\n");
buff.append("<td></td>\n"); // the top left cell
... | java | public static String makeHTMLTable(String[][] table, String[] rowLabels, String[] colLabels) {
StringBuilder buff = new StringBuilder();
buff.append("<table class=\"auto\" border=\"1\" cellspacing=\"0\">\n");
// top row
buff.append("<tr>\n");
buff.append("<td></td>\n"); // the top left cell
... | [
"public",
"static",
"String",
"makeHTMLTable",
"(",
"String",
"[",
"]",
"[",
"]",
"table",
",",
"String",
"[",
"]",
"rowLabels",
",",
"String",
"[",
"]",
"colLabels",
")",
"{",
"StringBuilder",
"buff",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"buff",
... | Returns an HTML table containing the matrix of Strings passed in.
The first dimension of the matrix should represent the rows, and the
second dimension the columns. | [
"Returns",
"an",
"HTML",
"table",
"containing",
"the",
"matrix",
"of",
"Strings",
"passed",
"in",
".",
"The",
"first",
"dimension",
"of",
"the",
"matrix",
"should",
"represent",
"the",
"rows",
"and",
"the",
"second",
"dimension",
"the",
"columns",
"."
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/util/StringUtils.java#L1445-L1469 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/util/StringUtils.java | StringUtils.makeAsciiTable | public static String makeAsciiTable(Object[][] table, Object[] rowLabels, Object[] colLabels, int padLeft, int padRight, boolean tsv) {
StringBuilder buff = new StringBuilder();
// top row
buff.append(makeAsciiTableCell("", padLeft, padRight, tsv)); // the top left cell
for (int j = 0; j < table[0].... | java | public static String makeAsciiTable(Object[][] table, Object[] rowLabels, Object[] colLabels, int padLeft, int padRight, boolean tsv) {
StringBuilder buff = new StringBuilder();
// top row
buff.append(makeAsciiTableCell("", padLeft, padRight, tsv)); // the top left cell
for (int j = 0; j < table[0].... | [
"public",
"static",
"String",
"makeAsciiTable",
"(",
"Object",
"[",
"]",
"[",
"]",
"table",
",",
"Object",
"[",
"]",
"rowLabels",
",",
"Object",
"[",
"]",
"colLabels",
",",
"int",
"padLeft",
",",
"int",
"padRight",
",",
"boolean",
"tsv",
")",
"{",
"Str... | Returns an text table containing the matrix of Strings passed in.
The first dimension of the matrix should represent the rows, and the
second dimension the columns. | [
"Returns",
"an",
"text",
"table",
"containing",
"the",
"matrix",
"of",
"Strings",
"passed",
"in",
".",
"The",
"first",
"dimension",
"of",
"the",
"matrix",
"should",
"represent",
"the",
"rows",
"and",
"the",
"second",
"dimension",
"the",
"columns",
"."
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/util/StringUtils.java#L1476-L1494 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/util/StringUtils.java | StringUtils.makeAsciiTableCell | private static String makeAsciiTableCell(Object obj, int padLeft, int padRight, boolean tsv) {
String result = obj.toString();
if (padLeft > 0) {
result = padLeft(result, padLeft);
}
if (padRight > 0) {
result = pad(result, padRight);
}
if (tsv) {
result = result + '\t... | java | private static String makeAsciiTableCell(Object obj, int padLeft, int padRight, boolean tsv) {
String result = obj.toString();
if (padLeft > 0) {
result = padLeft(result, padLeft);
}
if (padRight > 0) {
result = pad(result, padRight);
}
if (tsv) {
result = result + '\t... | [
"private",
"static",
"String",
"makeAsciiTableCell",
"(",
"Object",
"obj",
",",
"int",
"padLeft",
",",
"int",
"padRight",
",",
"boolean",
"tsv",
")",
"{",
"String",
"result",
"=",
"obj",
".",
"toString",
"(",
")",
";",
"if",
"(",
"padLeft",
">",
"0",
"... | The cell String is the string representation of the object.
If padLeft is greater than 0, it is padded. Ditto right | [
"The",
"cell",
"String",
"is",
"the",
"string",
"representation",
"of",
"the",
"object",
".",
"If",
"padLeft",
"is",
"greater",
"than",
"0",
"it",
"is",
"padded",
".",
"Ditto",
"right"
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/util/StringUtils.java#L1501-L1513 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/util/StringUtils.java | StringUtils.main | public static void main(String[] args) {
String[] s = {"there once was a man", "this one is a manic", "hey there", "there once was a mane", "once in a manger.", "where is one match?", "Jo3seph Smarr!", "Joseph R Smarr"};
for (int i = 0; i < 8; i++) {
for (int j = 0; j < 8; j++) {
System.out.... | java | public static void main(String[] args) {
String[] s = {"there once was a man", "this one is a manic", "hey there", "there once was a mane", "once in a manger.", "where is one match?", "Jo3seph Smarr!", "Joseph R Smarr"};
for (int i = 0; i < 8; i++) {
for (int j = 0; j < 8; j++) {
System.out.... | [
"public",
"static",
"void",
"main",
"(",
"String",
"[",
"]",
"args",
")",
"{",
"String",
"[",
"]",
"s",
"=",
"{",
"\"there once was a man\"",
",",
"\"this one is a manic\"",
",",
"\"hey there\"",
",",
"\"there once was a mane\"",
",",
"\"once in a manger.\"",
",",... | Tests the string edit distance function. | [
"Tests",
"the",
"string",
"edit",
"distance",
"function",
"."
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/util/StringUtils.java#L1518-L1531 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/util/StringUtils.java | StringUtils.chomp | public static String chomp(String s) {
if(s.length() == 0)
return s;
int l_1 = s.length() - 1;
if (s.charAt(l_1) == '\n') {
return s.substring(0, l_1);
}
return s;
} | java | public static String chomp(String s) {
if(s.length() == 0)
return s;
int l_1 = s.length() - 1;
if (s.charAt(l_1) == '\n') {
return s.substring(0, l_1);
}
return s;
} | [
"public",
"static",
"String",
"chomp",
"(",
"String",
"s",
")",
"{",
"if",
"(",
"s",
".",
"length",
"(",
")",
"==",
"0",
")",
"return",
"s",
";",
"int",
"l_1",
"=",
"s",
".",
"length",
"(",
")",
"-",
"1",
";",
"if",
"(",
"s",
".",
"charAt",
... | Returns the supplied string with any trailing '\n' removed. | [
"Returns",
"the",
"supplied",
"string",
"with",
"any",
"trailing",
"\\",
"n",
"removed",
"."
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/util/StringUtils.java#L1645-L1653 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/util/StringUtils.java | StringUtils.isPunct | public static boolean isPunct(String s){
Pattern p = Pattern.compile("^[\\p{Punct}]+$");
Matcher m = p.matcher(s);
return m.matches();
} | java | public static boolean isPunct(String s){
Pattern p = Pattern.compile("^[\\p{Punct}]+$");
Matcher m = p.matcher(s);
return m.matches();
} | [
"public",
"static",
"boolean",
"isPunct",
"(",
"String",
"s",
")",
"{",
"Pattern",
"p",
"=",
"Pattern",
".",
"compile",
"(",
"\"^[\\\\p{Punct}]+$\"",
")",
";",
"Matcher",
"m",
"=",
"p",
".",
"matcher",
"(",
"s",
")",
";",
"return",
"m",
".",
"matches",... | Given a String the method uses Regex to check if the String only contains punctuation characters
@param s a String to check using regex
@return true if the String is valid | [
"Given",
"a",
"String",
"the",
"method",
"uses",
"Regex",
"to",
"check",
"if",
"the",
"String",
"only",
"contains",
"punctuation",
"characters"
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/util/StringUtils.java#L1746-L1750 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/authentication/authenticationvserver_auditnslogpolicy_binding.java | authenticationvserver_auditnslogpolicy_binding.get | public static authenticationvserver_auditnslogpolicy_binding[] get(nitro_service service, String name) throws Exception{
authenticationvserver_auditnslogpolicy_binding obj = new authenticationvserver_auditnslogpolicy_binding();
obj.set_name(name);
authenticationvserver_auditnslogpolicy_binding response[] = (authe... | java | public static authenticationvserver_auditnslogpolicy_binding[] get(nitro_service service, String name) throws Exception{
authenticationvserver_auditnslogpolicy_binding obj = new authenticationvserver_auditnslogpolicy_binding();
obj.set_name(name);
authenticationvserver_auditnslogpolicy_binding response[] = (authe... | [
"public",
"static",
"authenticationvserver_auditnslogpolicy_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"authenticationvserver_auditnslogpolicy_binding",
"obj",
"=",
"new",
"authenticationvserver_auditnsl... | Use this API to fetch authenticationvserver_auditnslogpolicy_binding resources of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"authenticationvserver_auditnslogpolicy_binding",
"resources",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/authentication/authenticationvserver_auditnslogpolicy_binding.java#L254-L259 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/basic/servicegroup_lbmonitor_binding.java | servicegroup_lbmonitor_binding.get | public static servicegroup_lbmonitor_binding[] get(nitro_service service, String servicegroupname) throws Exception{
servicegroup_lbmonitor_binding obj = new servicegroup_lbmonitor_binding();
obj.set_servicegroupname(servicegroupname);
servicegroup_lbmonitor_binding response[] = (servicegroup_lbmonitor_binding[])... | java | public static servicegroup_lbmonitor_binding[] get(nitro_service service, String servicegroupname) throws Exception{
servicegroup_lbmonitor_binding obj = new servicegroup_lbmonitor_binding();
obj.set_servicegroupname(servicegroupname);
servicegroup_lbmonitor_binding response[] = (servicegroup_lbmonitor_binding[])... | [
"public",
"static",
"servicegroup_lbmonitor_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"servicegroupname",
")",
"throws",
"Exception",
"{",
"servicegroup_lbmonitor_binding",
"obj",
"=",
"new",
"servicegroup_lbmonitor_binding",
"(",
")",
"... | Use this API to fetch servicegroup_lbmonitor_binding resources of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"servicegroup_lbmonitor_binding",
"resources",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/basic/servicegroup_lbmonitor_binding.java#L379-L384 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nstrafficdomain_bridgegroup_binding.java | nstrafficdomain_bridgegroup_binding.get | public static nstrafficdomain_bridgegroup_binding[] get(nitro_service service, Long td) throws Exception{
nstrafficdomain_bridgegroup_binding obj = new nstrafficdomain_bridgegroup_binding();
obj.set_td(td);
nstrafficdomain_bridgegroup_binding response[] = (nstrafficdomain_bridgegroup_binding[]) obj.get_resources(... | java | public static nstrafficdomain_bridgegroup_binding[] get(nitro_service service, Long td) throws Exception{
nstrafficdomain_bridgegroup_binding obj = new nstrafficdomain_bridgegroup_binding();
obj.set_td(td);
nstrafficdomain_bridgegroup_binding response[] = (nstrafficdomain_bridgegroup_binding[]) obj.get_resources(... | [
"public",
"static",
"nstrafficdomain_bridgegroup_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"Long",
"td",
")",
"throws",
"Exception",
"{",
"nstrafficdomain_bridgegroup_binding",
"obj",
"=",
"new",
"nstrafficdomain_bridgegroup_binding",
"(",
")",
";... | Use this API to fetch nstrafficdomain_bridgegroup_binding resources of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"nstrafficdomain_bridgegroup_binding",
"resources",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nstrafficdomain_bridgegroup_binding.java#L175-L180 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nstrafficdomain_bridgegroup_binding.java | nstrafficdomain_bridgegroup_binding.count | public static long count(nitro_service service, Long td) throws Exception{
nstrafficdomain_bridgegroup_binding obj = new nstrafficdomain_bridgegroup_binding();
obj.set_td(td);
options option = new options();
option.set_count(true);
nstrafficdomain_bridgegroup_binding response[] = (nstrafficdomain_bridgegroup_... | java | public static long count(nitro_service service, Long td) throws Exception{
nstrafficdomain_bridgegroup_binding obj = new nstrafficdomain_bridgegroup_binding();
obj.set_td(td);
options option = new options();
option.set_count(true);
nstrafficdomain_bridgegroup_binding response[] = (nstrafficdomain_bridgegroup_... | [
"public",
"static",
"long",
"count",
"(",
"nitro_service",
"service",
",",
"Long",
"td",
")",
"throws",
"Exception",
"{",
"nstrafficdomain_bridgegroup_binding",
"obj",
"=",
"new",
"nstrafficdomain_bridgegroup_binding",
"(",
")",
";",
"obj",
".",
"set_td",
"(",
"td... | Use this API to count nstrafficdomain_bridgegroup_binding resources configued on NetScaler. | [
"Use",
"this",
"API",
"to",
"count",
"nstrafficdomain_bridgegroup_binding",
"resources",
"configued",
"on",
"NetScaler",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nstrafficdomain_bridgegroup_binding.java#L211-L221 | train |
wellner/jcarafe | jcarafe-core/src/main/java/cern/colt/map/AbstractIntIntMap.java | AbstractIntIntMap.toStringByValue | public String toStringByValue() {
IntArrayList theKeys = new IntArrayList();
keysSortedByValue(theKeys);
StringBuffer buf = new StringBuffer();
buf.append("[");
int maxIndex = theKeys.size() - 1;
for (int i = 0; i <= maxIndex; i++) {
int key = theKeys.get(i);
buf.append(String.valueOf(key));
b... | java | public String toStringByValue() {
IntArrayList theKeys = new IntArrayList();
keysSortedByValue(theKeys);
StringBuffer buf = new StringBuffer();
buf.append("[");
int maxIndex = theKeys.size() - 1;
for (int i = 0; i <= maxIndex; i++) {
int key = theKeys.get(i);
buf.append(String.valueOf(key));
b... | [
"public",
"String",
"toStringByValue",
"(",
")",
"{",
"IntArrayList",
"theKeys",
"=",
"new",
"IntArrayList",
"(",
")",
";",
"keysSortedByValue",
"(",
"theKeys",
")",
";",
"StringBuffer",
"buf",
"=",
"new",
"StringBuffer",
"(",
")",
";",
"buf",
".",
"append",... | Returns a string representation of the receiver, containing
the String representation of each key-value pair, sorted ascending by value. | [
"Returns",
"a",
"string",
"representation",
"of",
"the",
"receiver",
"containing",
"the",
"String",
"representation",
"of",
"each",
"key",
"-",
"value",
"pair",
"sorted",
"ascending",
"by",
"value",
"."
] | ab8b0a83dbf600fe80c27711815c90bd3055b217 | https://github.com/wellner/jcarafe/blob/ab8b0a83dbf600fe80c27711815c90bd3055b217/jcarafe-core/src/main/java/cern/colt/map/AbstractIntIntMap.java#L366-L382 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/stat/sc/scpolicy_stats.java | scpolicy_stats.get | public static scpolicy_stats[] get(nitro_service service) throws Exception{
scpolicy_stats obj = new scpolicy_stats();
scpolicy_stats[] response = (scpolicy_stats[])obj.stat_resources(service);
return response;
} | java | public static scpolicy_stats[] get(nitro_service service) throws Exception{
scpolicy_stats obj = new scpolicy_stats();
scpolicy_stats[] response = (scpolicy_stats[])obj.stat_resources(service);
return response;
} | [
"public",
"static",
"scpolicy_stats",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
")",
"throws",
"Exception",
"{",
"scpolicy_stats",
"obj",
"=",
"new",
"scpolicy_stats",
"(",
")",
";",
"scpolicy_stats",
"[",
"]",
"response",
"=",
"(",
"scpolicy_stats",
"... | Use this API to fetch the statistics of all scpolicy_stats resources that are configured on netscaler. | [
"Use",
"this",
"API",
"to",
"fetch",
"the",
"statistics",
"of",
"all",
"scpolicy_stats",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/stat/sc/scpolicy_stats.java#L411-L415 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/stat/sc/scpolicy_stats.java | scpolicy_stats.get | public static scpolicy_stats get(nitro_service service, String name) throws Exception{
scpolicy_stats obj = new scpolicy_stats();
obj.set_name(name);
scpolicy_stats response = (scpolicy_stats) obj.stat_resource(service);
return response;
} | java | public static scpolicy_stats get(nitro_service service, String name) throws Exception{
scpolicy_stats obj = new scpolicy_stats();
obj.set_name(name);
scpolicy_stats response = (scpolicy_stats) obj.stat_resource(service);
return response;
} | [
"public",
"static",
"scpolicy_stats",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"scpolicy_stats",
"obj",
"=",
"new",
"scpolicy_stats",
"(",
")",
";",
"obj",
".",
"set_name",
"(",
"name",
")",
";",
"scpoli... | Use this API to fetch statistics of scpolicy_stats resource of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"statistics",
"of",
"scpolicy_stats",
"resource",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/stat/sc/scpolicy_stats.java#L429-L434 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/vpn/vpnvserver_vpnsessionpolicy_binding.java | vpnvserver_vpnsessionpolicy_binding.get | public static vpnvserver_vpnsessionpolicy_binding[] get(nitro_service service, String name) throws Exception{
vpnvserver_vpnsessionpolicy_binding obj = new vpnvserver_vpnsessionpolicy_binding();
obj.set_name(name);
vpnvserver_vpnsessionpolicy_binding response[] = (vpnvserver_vpnsessionpolicy_binding[]) obj.get_re... | java | public static vpnvserver_vpnsessionpolicy_binding[] get(nitro_service service, String name) throws Exception{
vpnvserver_vpnsessionpolicy_binding obj = new vpnvserver_vpnsessionpolicy_binding();
obj.set_name(name);
vpnvserver_vpnsessionpolicy_binding response[] = (vpnvserver_vpnsessionpolicy_binding[]) obj.get_re... | [
"public",
"static",
"vpnvserver_vpnsessionpolicy_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"vpnvserver_vpnsessionpolicy_binding",
"obj",
"=",
"new",
"vpnvserver_vpnsessionpolicy_binding",
"(",
")",
... | Use this API to fetch vpnvserver_vpnsessionpolicy_binding resources of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"vpnvserver_vpnsessionpolicy_binding",
"resources",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/vpn/vpnvserver_vpnsessionpolicy_binding.java#L326-L331 | train |
wellner/jcarafe | jcarafe-core/src/main/java/cern/colt/map/PrimeFinder.java | PrimeFinder.main | protected static void main(String args[]) {
int from = Integer.parseInt(args[0]);
int to = Integer.parseInt(args[1]);
statistics(from,to);
} | java | protected static void main(String args[]) {
int from = Integer.parseInt(args[0]);
int to = Integer.parseInt(args[1]);
statistics(from,to);
} | [
"protected",
"static",
"void",
"main",
"(",
"String",
"args",
"[",
"]",
")",
"{",
"int",
"from",
"=",
"Integer",
".",
"parseInt",
"(",
"args",
"[",
"0",
"]",
")",
";",
"int",
"to",
"=",
"Integer",
".",
"parseInt",
"(",
"args",
"[",
"1",
"]",
")",... | Tests correctness. Try
from=1000, to=10000
from=200, to=1000
from=16, to=1000
from=1000, to=Integer.MAX_VALUE | [
"Tests",
"correctness",
".",
"Try",
"from",
"=",
"1000",
"to",
"=",
"10000",
"from",
"=",
"200",
"to",
"=",
"1000",
"from",
"=",
"16",
"to",
"=",
"1000",
"from",
"=",
"1000",
"to",
"=",
"Integer",
".",
"MAX_VALUE"
] | ab8b0a83dbf600fe80c27711815c90bd3055b217 | https://github.com/wellner/jcarafe/blob/ab8b0a83dbf600fe80c27711815c90bd3055b217/jcarafe-core/src/main/java/cern/colt/map/PrimeFinder.java#L143-L148 | train |
wellner/jcarafe | jcarafe-core/src/main/java/cern/colt/map/PrimeFinder.java | PrimeFinder.statistics | protected static void statistics(int from, int to) {
// check that primes contain no accidental errors
for (int i=0; i<primeCapacities.length-1; i++) {
if (primeCapacities[i] >= primeCapacities[i+1]) throw new RuntimeException("primes are unsorted or contain duplicates; detected at "+i+"@"+primeCapacities[i]);
... | java | protected static void statistics(int from, int to) {
// check that primes contain no accidental errors
for (int i=0; i<primeCapacities.length-1; i++) {
if (primeCapacities[i] >= primeCapacities[i+1]) throw new RuntimeException("primes are unsorted or contain duplicates; detected at "+i+"@"+primeCapacities[i]);
... | [
"protected",
"static",
"void",
"statistics",
"(",
"int",
"from",
",",
"int",
"to",
")",
"{",
"// check that primes contain no accidental errors\r",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"primeCapacities",
".",
"length",
"-",
"1",
";",
"i",
"++",
... | Tests correctness. | [
"Tests",
"correctness",
"."
] | ab8b0a83dbf600fe80c27711815c90bd3055b217 | https://github.com/wellner/jcarafe/blob/ab8b0a83dbf600fe80c27711815c90bd3055b217/jcarafe-core/src/main/java/cern/colt/map/PrimeFinder.java#L166-L193 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/parser/lexparser/Options.java | Options.readData | public void readData(BufferedReader in) throws IOException {
String line, value;
// skip old variables if still present
lexOptions.readData(in);
line = in.readLine();
value = line.substring(line.indexOf(' ') + 1);
try {
tlpParams = (TreebankLangParserParams) Class.forName(value).new... | java | public void readData(BufferedReader in) throws IOException {
String line, value;
// skip old variables if still present
lexOptions.readData(in);
line = in.readLine();
value = line.substring(line.indexOf(' ') + 1);
try {
tlpParams = (TreebankLangParserParams) Class.forName(value).new... | [
"public",
"void",
"readData",
"(",
"BufferedReader",
"in",
")",
"throws",
"IOException",
"{",
"String",
"line",
",",
"value",
";",
"// skip old variables if still present\r",
"lexOptions",
".",
"readData",
"(",
"in",
")",
";",
"line",
"=",
"in",
".",
"readLine",... | Populates data in this Options from the character stream.
@param in The Reader
@throws IOException If there is a problem reading data | [
"Populates",
"data",
"in",
"this",
"Options",
"from",
"the",
"character",
"stream",
"."
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/parser/lexparser/Options.java#L1003-L1056 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/stat/protocol/protocolip_stats.java | protocolip_stats.get | public static protocolip_stats get(nitro_service service) throws Exception{
protocolip_stats obj = new protocolip_stats();
protocolip_stats[] response = (protocolip_stats[])obj.stat_resources(service);
return response[0];
} | java | public static protocolip_stats get(nitro_service service) throws Exception{
protocolip_stats obj = new protocolip_stats();
protocolip_stats[] response = (protocolip_stats[])obj.stat_resources(service);
return response[0];
} | [
"public",
"static",
"protocolip_stats",
"get",
"(",
"nitro_service",
"service",
")",
"throws",
"Exception",
"{",
"protocolip_stats",
"obj",
"=",
"new",
"protocolip_stats",
"(",
")",
";",
"protocolip_stats",
"[",
"]",
"response",
"=",
"(",
"protocolip_stats",
"[",
... | Use this API to fetch the statistics of all protocolip_stats resources that are configured on netscaler. | [
"Use",
"this",
"API",
"to",
"fetch",
"the",
"statistics",
"of",
"all",
"protocolip_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/protocolip_stats.java#L544-L548 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/util/Filters.java | Filters.switchedFilter | public static <E> Filter<E> switchedFilter(Filter<E> filter, boolean negated) {
return (new NegatedFilter<E>(filter, negated));
} | java | public static <E> Filter<E> switchedFilter(Filter<E> filter, boolean negated) {
return (new NegatedFilter<E>(filter, negated));
} | [
"public",
"static",
"<",
"E",
">",
"Filter",
"<",
"E",
">",
"switchedFilter",
"(",
"Filter",
"<",
"E",
">",
"filter",
",",
"boolean",
"negated",
")",
"{",
"return",
"(",
"new",
"NegatedFilter",
"<",
"E",
">",
"(",
"filter",
",",
"negated",
")",
")",
... | Filter that's either negated or normal as specified. | [
"Filter",
"that",
"s",
"either",
"negated",
"or",
"normal",
"as",
"specified",
"."
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/util/Filters.java#L217-L219 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/util/Filters.java | Filters.filter | @SuppressWarnings("unchecked")
public static <E> E[] filter(E[] elems, Filter<E> filter) {
List<E> filtered = new ArrayList<E>();
for (E elem: elems) {
if (filter.accept(elem)) {
filtered.add(elem);
}
}
return (filtered.toArray((E[]) Array.newInstance(elems.getClass().getCo... | java | @SuppressWarnings("unchecked")
public static <E> E[] filter(E[] elems, Filter<E> filter) {
List<E> filtered = new ArrayList<E>();
for (E elem: elems) {
if (filter.accept(elem)) {
filtered.add(elem);
}
}
return (filtered.toArray((E[]) Array.newInstance(elems.getClass().getCo... | [
"@",
"SuppressWarnings",
"(",
"\"unchecked\"",
")",
"public",
"static",
"<",
"E",
">",
"E",
"[",
"]",
"filter",
"(",
"E",
"[",
"]",
"elems",
",",
"Filter",
"<",
"E",
">",
"filter",
")",
"{",
"List",
"<",
"E",
">",
"filtered",
"=",
"new",
"ArrayList... | Applies the given filter to each of the given elems, and returns the
list of elems that were accepted. The runtime type of the returned
array is the same as the passed in array. | [
"Applies",
"the",
"given",
"filter",
"to",
"each",
"of",
"the",
"given",
"elems",
"and",
"returns",
"the",
"list",
"of",
"elems",
"that",
"were",
"accepted",
".",
"The",
"runtime",
"type",
"of",
"the",
"returned",
"array",
"is",
"the",
"same",
"as",
"the... | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/util/Filters.java#L254-L263 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/util/Filters.java | Filters.retainAll | public static <E> void retainAll(Collection<E> elems, Filter<? super E> filter) {
for (Iterator<E> iter = elems.iterator(); iter.hasNext();) {
E elem = iter.next();
if ( ! filter.accept(elem)) {
iter.remove();
}
}
} | java | public static <E> void retainAll(Collection<E> elems, Filter<? super E> filter) {
for (Iterator<E> iter = elems.iterator(); iter.hasNext();) {
E elem = iter.next();
if ( ! filter.accept(elem)) {
iter.remove();
}
}
} | [
"public",
"static",
"<",
"E",
">",
"void",
"retainAll",
"(",
"Collection",
"<",
"E",
">",
"elems",
",",
"Filter",
"<",
"?",
"super",
"E",
">",
"filter",
")",
"{",
"for",
"(",
"Iterator",
"<",
"E",
">",
"iter",
"=",
"elems",
".",
"iterator",
"(",
... | Removes all elems in the given Collection that aren't accepted by the given Filter. | [
"Removes",
"all",
"elems",
"in",
"the",
"given",
"Collection",
"that",
"aren",
"t",
"accepted",
"by",
"the",
"given",
"Filter",
"."
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/util/Filters.java#L268-L275 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/appflow/appflowpolicy_binding.java | appflowpolicy_binding.get | public static appflowpolicy_binding get(nitro_service service, String name) throws Exception{
appflowpolicy_binding obj = new appflowpolicy_binding();
obj.set_name(name);
appflowpolicy_binding response = (appflowpolicy_binding) obj.get_resource(service);
return response;
} | java | public static appflowpolicy_binding get(nitro_service service, String name) throws Exception{
appflowpolicy_binding obj = new appflowpolicy_binding();
obj.set_name(name);
appflowpolicy_binding response = (appflowpolicy_binding) obj.get_resource(service);
return response;
} | [
"public",
"static",
"appflowpolicy_binding",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"appflowpolicy_binding",
"obj",
"=",
"new",
"appflowpolicy_binding",
"(",
")",
";",
"obj",
".",
"set_name",
"(",
"name",
... | Use this API to fetch appflowpolicy_binding resource of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"appflowpolicy_binding",
"resource",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/appflow/appflowpolicy_binding.java#L136-L141 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/ha/hanode_routemonitor_binding.java | hanode_routemonitor_binding.get | public static hanode_routemonitor_binding[] get(nitro_service service, Long id) throws Exception{
hanode_routemonitor_binding obj = new hanode_routemonitor_binding();
obj.set_id(id);
hanode_routemonitor_binding response[] = (hanode_routemonitor_binding[]) obj.get_resources(service);
return response;
} | java | public static hanode_routemonitor_binding[] get(nitro_service service, Long id) throws Exception{
hanode_routemonitor_binding obj = new hanode_routemonitor_binding();
obj.set_id(id);
hanode_routemonitor_binding response[] = (hanode_routemonitor_binding[]) obj.get_resources(service);
return response;
} | [
"public",
"static",
"hanode_routemonitor_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"Long",
"id",
")",
"throws",
"Exception",
"{",
"hanode_routemonitor_binding",
"obj",
"=",
"new",
"hanode_routemonitor_binding",
"(",
")",
";",
"obj",
".",
"se... | Use this API to fetch hanode_routemonitor_binding resources of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"hanode_routemonitor_binding",
"resources",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ha/hanode_routemonitor_binding.java#L199-L204 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnsview.java | dnsview.add | public static base_response add(nitro_service client, dnsview resource) throws Exception {
dnsview addresource = new dnsview();
addresource.viewname = resource.viewname;
return addresource.add_resource(client);
} | java | public static base_response add(nitro_service client, dnsview resource) throws Exception {
dnsview addresource = new dnsview();
addresource.viewname = resource.viewname;
return addresource.add_resource(client);
} | [
"public",
"static",
"base_response",
"add",
"(",
"nitro_service",
"client",
",",
"dnsview",
"resource",
")",
"throws",
"Exception",
"{",
"dnsview",
"addresource",
"=",
"new",
"dnsview",
"(",
")",
";",
"addresource",
".",
"viewname",
"=",
"resource",
".",
"view... | Use this API to add dnsview. | [
"Use",
"this",
"API",
"to",
"add",
"dnsview",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnsview.java#L106-L110 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnsview.java | dnsview.add | public static base_responses add(nitro_service client, dnsview resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
dnsview addresources[] = new dnsview[resources.length];
for (int i=0;i<resources.length;i++){
addresources[i] = new dnsview();
a... | java | public static base_responses add(nitro_service client, dnsview resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
dnsview addresources[] = new dnsview[resources.length];
for (int i=0;i<resources.length;i++){
addresources[i] = new dnsview();
a... | [
"public",
"static",
"base_responses",
"add",
"(",
"nitro_service",
"client",
",",
"dnsview",
"resources",
"[",
"]",
")",
"throws",
"Exception",
"{",
"base_responses",
"result",
"=",
"null",
";",
"if",
"(",
"resources",
"!=",
"null",
"&&",
"resources",
".",
"... | Use this API to add dnsview resources. | [
"Use",
"this",
"API",
"to",
"add",
"dnsview",
"resources",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnsview.java#L115-L126 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnsview.java | dnsview.delete | public static base_response delete(nitro_service client, String viewname) throws Exception {
dnsview deleteresource = new dnsview();
deleteresource.viewname = viewname;
return deleteresource.delete_resource(client);
} | java | public static base_response delete(nitro_service client, String viewname) throws Exception {
dnsview deleteresource = new dnsview();
deleteresource.viewname = viewname;
return deleteresource.delete_resource(client);
} | [
"public",
"static",
"base_response",
"delete",
"(",
"nitro_service",
"client",
",",
"String",
"viewname",
")",
"throws",
"Exception",
"{",
"dnsview",
"deleteresource",
"=",
"new",
"dnsview",
"(",
")",
";",
"deleteresource",
".",
"viewname",
"=",
"viewname",
";",... | Use this API to delete dnsview of given name. | [
"Use",
"this",
"API",
"to",
"delete",
"dnsview",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnsview.java#L131-L135 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnsview.java | dnsview.get | public static dnsview[] get(nitro_service service) throws Exception{
dnsview obj = new dnsview();
dnsview[] response = (dnsview[])obj.get_resources(service);
return response;
} | java | public static dnsview[] get(nitro_service service) throws Exception{
dnsview obj = new dnsview();
dnsview[] response = (dnsview[])obj.get_resources(service);
return response;
} | [
"public",
"static",
"dnsview",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
")",
"throws",
"Exception",
"{",
"dnsview",
"obj",
"=",
"new",
"dnsview",
"(",
")",
";",
"dnsview",
"[",
"]",
"response",
"=",
"(",
"dnsview",
"[",
"]",
")",
"obj",
".",
... | Use this API to fetch all the dnsview resources that are configured on netscaler. | [
"Use",
"this",
"API",
"to",
"fetch",
"all",
"the",
"dnsview",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnsview.java#L181-L185 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnsview.java | dnsview.get | public static dnsview get(nitro_service service, String viewname) throws Exception{
dnsview obj = new dnsview();
obj.set_viewname(viewname);
dnsview response = (dnsview) obj.get_resource(service);
return response;
} | java | public static dnsview get(nitro_service service, String viewname) throws Exception{
dnsview obj = new dnsview();
obj.set_viewname(viewname);
dnsview response = (dnsview) obj.get_resource(service);
return response;
} | [
"public",
"static",
"dnsview",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"viewname",
")",
"throws",
"Exception",
"{",
"dnsview",
"obj",
"=",
"new",
"dnsview",
"(",
")",
";",
"obj",
".",
"set_viewname",
"(",
"viewname",
")",
";",
"dnsview",
"re... | Use this API to fetch dnsview resource of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"dnsview",
"resource",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnsview.java#L197-L202 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnsview.java | dnsview.get | public static dnsview[] get(nitro_service service, String viewname[]) throws Exception{
if (viewname !=null && viewname.length>0) {
dnsview response[] = new dnsview[viewname.length];
dnsview obj[] = new dnsview[viewname.length];
for (int i=0;i<viewname.length;i++) {
obj[i] = new dnsview();
obj[i].set... | java | public static dnsview[] get(nitro_service service, String viewname[]) throws Exception{
if (viewname !=null && viewname.length>0) {
dnsview response[] = new dnsview[viewname.length];
dnsview obj[] = new dnsview[viewname.length];
for (int i=0;i<viewname.length;i++) {
obj[i] = new dnsview();
obj[i].set... | [
"public",
"static",
"dnsview",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"viewname",
"[",
"]",
")",
"throws",
"Exception",
"{",
"if",
"(",
"viewname",
"!=",
"null",
"&&",
"viewname",
".",
"length",
">",
"0",
")",
"{",
"dnsview",
... | Use this API to fetch dnsview resources of given names . | [
"Use",
"this",
"API",
"to",
"fetch",
"dnsview",
"resources",
"of",
"given",
"names",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnsview.java#L207-L219 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/network/onlinkipv6prefix.java | onlinkipv6prefix.add | public static base_response add(nitro_service client, onlinkipv6prefix resource) throws Exception {
onlinkipv6prefix addresource = new onlinkipv6prefix();
addresource.ipv6prefix = resource.ipv6prefix;
addresource.onlinkprefix = resource.onlinkprefix;
addresource.autonomusprefix = resource.autonomusprefix;
add... | java | public static base_response add(nitro_service client, onlinkipv6prefix resource) throws Exception {
onlinkipv6prefix addresource = new onlinkipv6prefix();
addresource.ipv6prefix = resource.ipv6prefix;
addresource.onlinkprefix = resource.onlinkprefix;
addresource.autonomusprefix = resource.autonomusprefix;
add... | [
"public",
"static",
"base_response",
"add",
"(",
"nitro_service",
"client",
",",
"onlinkipv6prefix",
"resource",
")",
"throws",
"Exception",
"{",
"onlinkipv6prefix",
"addresource",
"=",
"new",
"onlinkipv6prefix",
"(",
")",
";",
"addresource",
".",
"ipv6prefix",
"=",... | Use this API to add onlinkipv6prefix. | [
"Use",
"this",
"API",
"to",
"add",
"onlinkipv6prefix",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/network/onlinkipv6prefix.java#L248-L258 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/network/onlinkipv6prefix.java | onlinkipv6prefix.add | public static base_responses add(nitro_service client, onlinkipv6prefix resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
onlinkipv6prefix addresources[] = new onlinkipv6prefix[resources.length];
for (int i=0;i<resources.length;i++){
addresource... | java | public static base_responses add(nitro_service client, onlinkipv6prefix resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
onlinkipv6prefix addresources[] = new onlinkipv6prefix[resources.length];
for (int i=0;i<resources.length;i++){
addresource... | [
"public",
"static",
"base_responses",
"add",
"(",
"nitro_service",
"client",
",",
"onlinkipv6prefix",
"resources",
"[",
"]",
")",
"throws",
"Exception",
"{",
"base_responses",
"result",
"=",
"null",
";",
"if",
"(",
"resources",
"!=",
"null",
"&&",
"resources",
... | Use this API to add onlinkipv6prefix resources. | [
"Use",
"this",
"API",
"to",
"add",
"onlinkipv6prefix",
"resources",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/network/onlinkipv6prefix.java#L263-L280 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/network/onlinkipv6prefix.java | onlinkipv6prefix.delete | public static base_response delete(nitro_service client, String ipv6prefix) throws Exception {
onlinkipv6prefix deleteresource = new onlinkipv6prefix();
deleteresource.ipv6prefix = ipv6prefix;
return deleteresource.delete_resource(client);
} | java | public static base_response delete(nitro_service client, String ipv6prefix) throws Exception {
onlinkipv6prefix deleteresource = new onlinkipv6prefix();
deleteresource.ipv6prefix = ipv6prefix;
return deleteresource.delete_resource(client);
} | [
"public",
"static",
"base_response",
"delete",
"(",
"nitro_service",
"client",
",",
"String",
"ipv6prefix",
")",
"throws",
"Exception",
"{",
"onlinkipv6prefix",
"deleteresource",
"=",
"new",
"onlinkipv6prefix",
"(",
")",
";",
"deleteresource",
".",
"ipv6prefix",
"="... | Use this API to delete onlinkipv6prefix of given name. | [
"Use",
"this",
"API",
"to",
"delete",
"onlinkipv6prefix",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/network/onlinkipv6prefix.java#L285-L289 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/network/onlinkipv6prefix.java | onlinkipv6prefix.update | public static base_response update(nitro_service client, onlinkipv6prefix resource) throws Exception {
onlinkipv6prefix updateresource = new onlinkipv6prefix();
updateresource.ipv6prefix = resource.ipv6prefix;
updateresource.onlinkprefix = resource.onlinkprefix;
updateresource.autonomusprefix = resource.autonom... | java | public static base_response update(nitro_service client, onlinkipv6prefix resource) throws Exception {
onlinkipv6prefix updateresource = new onlinkipv6prefix();
updateresource.ipv6prefix = resource.ipv6prefix;
updateresource.onlinkprefix = resource.onlinkprefix;
updateresource.autonomusprefix = resource.autonom... | [
"public",
"static",
"base_response",
"update",
"(",
"nitro_service",
"client",
",",
"onlinkipv6prefix",
"resource",
")",
"throws",
"Exception",
"{",
"onlinkipv6prefix",
"updateresource",
"=",
"new",
"onlinkipv6prefix",
"(",
")",
";",
"updateresource",
".",
"ipv6prefix... | Use this API to update onlinkipv6prefix. | [
"Use",
"this",
"API",
"to",
"update",
"onlinkipv6prefix",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/network/onlinkipv6prefix.java#L335-L345 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/network/onlinkipv6prefix.java | onlinkipv6prefix.update | public static base_responses update(nitro_service client, onlinkipv6prefix resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
onlinkipv6prefix updateresources[] = new onlinkipv6prefix[resources.length];
for (int i=0;i<resources.length;i++){
updat... | java | public static base_responses update(nitro_service client, onlinkipv6prefix resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
onlinkipv6prefix updateresources[] = new onlinkipv6prefix[resources.length];
for (int i=0;i<resources.length;i++){
updat... | [
"public",
"static",
"base_responses",
"update",
"(",
"nitro_service",
"client",
",",
"onlinkipv6prefix",
"resources",
"[",
"]",
")",
"throws",
"Exception",
"{",
"base_responses",
"result",
"=",
"null",
";",
"if",
"(",
"resources",
"!=",
"null",
"&&",
"resources"... | Use this API to update onlinkipv6prefix resources. | [
"Use",
"this",
"API",
"to",
"update",
"onlinkipv6prefix",
"resources",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/network/onlinkipv6prefix.java#L350-L367 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/network/onlinkipv6prefix.java | onlinkipv6prefix.unset | public static base_response unset(nitro_service client, onlinkipv6prefix resource, String[] args) throws Exception{
onlinkipv6prefix unsetresource = new onlinkipv6prefix();
unsetresource.ipv6prefix = resource.ipv6prefix;
return unsetresource.unset_resource(client,args);
} | java | public static base_response unset(nitro_service client, onlinkipv6prefix resource, String[] args) throws Exception{
onlinkipv6prefix unsetresource = new onlinkipv6prefix();
unsetresource.ipv6prefix = resource.ipv6prefix;
return unsetresource.unset_resource(client,args);
} | [
"public",
"static",
"base_response",
"unset",
"(",
"nitro_service",
"client",
",",
"onlinkipv6prefix",
"resource",
",",
"String",
"[",
"]",
"args",
")",
"throws",
"Exception",
"{",
"onlinkipv6prefix",
"unsetresource",
"=",
"new",
"onlinkipv6prefix",
"(",
")",
";",... | Use this API to unset the properties of onlinkipv6prefix resource.
Properties that need to be unset are specified in args array. | [
"Use",
"this",
"API",
"to",
"unset",
"the",
"properties",
"of",
"onlinkipv6prefix",
"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/onlinkipv6prefix.java#L373-L377 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/network/onlinkipv6prefix.java | onlinkipv6prefix.unset | public static base_responses unset(nitro_service client, onlinkipv6prefix resources[], String[] args) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
onlinkipv6prefix unsetresources[] = new onlinkipv6prefix[resources.length];
for (int i=0;i<resources.length;i... | java | public static base_responses unset(nitro_service client, onlinkipv6prefix resources[], String[] args) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
onlinkipv6prefix unsetresources[] = new onlinkipv6prefix[resources.length];
for (int i=0;i<resources.length;i... | [
"public",
"static",
"base_responses",
"unset",
"(",
"nitro_service",
"client",
",",
"onlinkipv6prefix",
"resources",
"[",
"]",
",",
"String",
"[",
"]",
"args",
")",
"throws",
"Exception",
"{",
"base_responses",
"result",
"=",
"null",
";",
"if",
"(",
"resources... | Use this API to unset the properties of onlinkipv6prefix resources.
Properties that need to be unset are specified in args array. | [
"Use",
"this",
"API",
"to",
"unset",
"the",
"properties",
"of",
"onlinkipv6prefix",
"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/network/onlinkipv6prefix.java#L400-L411 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/network/onlinkipv6prefix.java | onlinkipv6prefix.get | public static onlinkipv6prefix[] get(nitro_service service) throws Exception{
onlinkipv6prefix obj = new onlinkipv6prefix();
onlinkipv6prefix[] response = (onlinkipv6prefix[])obj.get_resources(service);
return response;
} | java | public static onlinkipv6prefix[] get(nitro_service service) throws Exception{
onlinkipv6prefix obj = new onlinkipv6prefix();
onlinkipv6prefix[] response = (onlinkipv6prefix[])obj.get_resources(service);
return response;
} | [
"public",
"static",
"onlinkipv6prefix",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
")",
"throws",
"Exception",
"{",
"onlinkipv6prefix",
"obj",
"=",
"new",
"onlinkipv6prefix",
"(",
")",
";",
"onlinkipv6prefix",
"[",
"]",
"response",
"=",
"(",
"onlinkipv6pr... | Use this API to fetch all the onlinkipv6prefix resources that are configured on netscaler. | [
"Use",
"this",
"API",
"to",
"fetch",
"all",
"the",
"onlinkipv6prefix",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/network/onlinkipv6prefix.java#L416-L420 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/network/onlinkipv6prefix.java | onlinkipv6prefix.get | public static onlinkipv6prefix get(nitro_service service, String ipv6prefix) throws Exception{
onlinkipv6prefix obj = new onlinkipv6prefix();
obj.set_ipv6prefix(ipv6prefix);
onlinkipv6prefix response = (onlinkipv6prefix) obj.get_resource(service);
return response;
} | java | public static onlinkipv6prefix get(nitro_service service, String ipv6prefix) throws Exception{
onlinkipv6prefix obj = new onlinkipv6prefix();
obj.set_ipv6prefix(ipv6prefix);
onlinkipv6prefix response = (onlinkipv6prefix) obj.get_resource(service);
return response;
} | [
"public",
"static",
"onlinkipv6prefix",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"ipv6prefix",
")",
"throws",
"Exception",
"{",
"onlinkipv6prefix",
"obj",
"=",
"new",
"onlinkipv6prefix",
"(",
")",
";",
"obj",
".",
"set_ipv6prefix",
"(",
"ipv6prefix",... | Use this API to fetch onlinkipv6prefix resource of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"onlinkipv6prefix",
"resource",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/network/onlinkipv6prefix.java#L432-L437 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/network/onlinkipv6prefix.java | onlinkipv6prefix.get | public static onlinkipv6prefix[] get(nitro_service service, String ipv6prefix[]) throws Exception{
if (ipv6prefix !=null && ipv6prefix.length>0) {
onlinkipv6prefix response[] = new onlinkipv6prefix[ipv6prefix.length];
onlinkipv6prefix obj[] = new onlinkipv6prefix[ipv6prefix.length];
for (int i=0;i<ipv6prefix... | java | public static onlinkipv6prefix[] get(nitro_service service, String ipv6prefix[]) throws Exception{
if (ipv6prefix !=null && ipv6prefix.length>0) {
onlinkipv6prefix response[] = new onlinkipv6prefix[ipv6prefix.length];
onlinkipv6prefix obj[] = new onlinkipv6prefix[ipv6prefix.length];
for (int i=0;i<ipv6prefix... | [
"public",
"static",
"onlinkipv6prefix",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"ipv6prefix",
"[",
"]",
")",
"throws",
"Exception",
"{",
"if",
"(",
"ipv6prefix",
"!=",
"null",
"&&",
"ipv6prefix",
".",
"length",
">",
"0",
")",
"{",
... | Use this API to fetch onlinkipv6prefix resources of given names . | [
"Use",
"this",
"API",
"to",
"fetch",
"onlinkipv6prefix",
"resources",
"of",
"given",
"names",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/network/onlinkipv6prefix.java#L442-L454 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/vpn/vpnsessionpolicy_aaauser_binding.java | vpnsessionpolicy_aaauser_binding.get | public static vpnsessionpolicy_aaauser_binding[] get(nitro_service service, String name) throws Exception{
vpnsessionpolicy_aaauser_binding obj = new vpnsessionpolicy_aaauser_binding();
obj.set_name(name);
vpnsessionpolicy_aaauser_binding response[] = (vpnsessionpolicy_aaauser_binding[]) obj.get_resources(service... | java | public static vpnsessionpolicy_aaauser_binding[] get(nitro_service service, String name) throws Exception{
vpnsessionpolicy_aaauser_binding obj = new vpnsessionpolicy_aaauser_binding();
obj.set_name(name);
vpnsessionpolicy_aaauser_binding response[] = (vpnsessionpolicy_aaauser_binding[]) obj.get_resources(service... | [
"public",
"static",
"vpnsessionpolicy_aaauser_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"vpnsessionpolicy_aaauser_binding",
"obj",
"=",
"new",
"vpnsessionpolicy_aaauser_binding",
"(",
")",
";",
... | Use this API to fetch vpnsessionpolicy_aaauser_binding resources of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"vpnsessionpolicy_aaauser_binding",
"resources",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/vpn/vpnsessionpolicy_aaauser_binding.java#L132-L137 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/vpn/vpnvserver_authenticationradiuspolicy_binding.java | vpnvserver_authenticationradiuspolicy_binding.get | public static vpnvserver_authenticationradiuspolicy_binding[] get(nitro_service service, String name) throws Exception{
vpnvserver_authenticationradiuspolicy_binding obj = new vpnvserver_authenticationradiuspolicy_binding();
obj.set_name(name);
vpnvserver_authenticationradiuspolicy_binding response[] = (vpnvserve... | java | public static vpnvserver_authenticationradiuspolicy_binding[] get(nitro_service service, String name) throws Exception{
vpnvserver_authenticationradiuspolicy_binding obj = new vpnvserver_authenticationradiuspolicy_binding();
obj.set_name(name);
vpnvserver_authenticationradiuspolicy_binding response[] = (vpnvserve... | [
"public",
"static",
"vpnvserver_authenticationradiuspolicy_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"vpnvserver_authenticationradiuspolicy_binding",
"obj",
"=",
"new",
"vpnvserver_authenticationradiusp... | Use this API to fetch vpnvserver_authenticationradiuspolicy_binding resources of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"vpnvserver_authenticationradiuspolicy_binding",
"resources",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/vpn/vpnvserver_authenticationradiuspolicy_binding.java#L326-L331 | train |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.