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/ns/nsxmlnamespace.java | nsxmlnamespace.delete | public static base_responses delete(nitro_service client, String prefix[]) throws Exception {
base_responses result = null;
if (prefix != null && prefix.length > 0) {
nsxmlnamespace deleteresources[] = new nsxmlnamespace[prefix.length];
for (int i=0;i<prefix.length;i++){
deleteresources[i] = new nsxmlname... | java | public static base_responses delete(nitro_service client, String prefix[]) throws Exception {
base_responses result = null;
if (prefix != null && prefix.length > 0) {
nsxmlnamespace deleteresources[] = new nsxmlnamespace[prefix.length];
for (int i=0;i<prefix.length;i++){
deleteresources[i] = new nsxmlname... | [
"public",
"static",
"base_responses",
"delete",
"(",
"nitro_service",
"client",
",",
"String",
"prefix",
"[",
"]",
")",
"throws",
"Exception",
"{",
"base_responses",
"result",
"=",
"null",
";",
"if",
"(",
"prefix",
"!=",
"null",
"&&",
"prefix",
".",
"length"... | Use this API to delete nsxmlnamespace resources of given names. | [
"Use",
"this",
"API",
"to",
"delete",
"nsxmlnamespace",
"resources",
"of",
"given",
"names",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nsxmlnamespace.java#L176-L187 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nsxmlnamespace.java | nsxmlnamespace.update | public static base_response update(nitro_service client, nsxmlnamespace resource) throws Exception {
nsxmlnamespace updateresource = new nsxmlnamespace();
updateresource.prefix = resource.prefix;
updateresource.Namespace = resource.Namespace;
updateresource.description = resource.description;
return updateres... | java | public static base_response update(nitro_service client, nsxmlnamespace resource) throws Exception {
nsxmlnamespace updateresource = new nsxmlnamespace();
updateresource.prefix = resource.prefix;
updateresource.Namespace = resource.Namespace;
updateresource.description = resource.description;
return updateres... | [
"public",
"static",
"base_response",
"update",
"(",
"nitro_service",
"client",
",",
"nsxmlnamespace",
"resource",
")",
"throws",
"Exception",
"{",
"nsxmlnamespace",
"updateresource",
"=",
"new",
"nsxmlnamespace",
"(",
")",
";",
"updateresource",
".",
"prefix",
"=",
... | Use this API to update nsxmlnamespace. | [
"Use",
"this",
"API",
"to",
"update",
"nsxmlnamespace",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nsxmlnamespace.java#L208-L214 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nsxmlnamespace.java | nsxmlnamespace.update | public static base_responses update(nitro_service client, nsxmlnamespace resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
nsxmlnamespace updateresources[] = new nsxmlnamespace[resources.length];
for (int i=0;i<resources.length;i++){
updateresou... | java | public static base_responses update(nitro_service client, nsxmlnamespace resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
nsxmlnamespace updateresources[] = new nsxmlnamespace[resources.length];
for (int i=0;i<resources.length;i++){
updateresou... | [
"public",
"static",
"base_responses",
"update",
"(",
"nitro_service",
"client",
",",
"nsxmlnamespace",
"resources",
"[",
"]",
")",
"throws",
"Exception",
"{",
"base_responses",
"result",
"=",
"null",
";",
"if",
"(",
"resources",
"!=",
"null",
"&&",
"resources",
... | Use this API to update nsxmlnamespace resources. | [
"Use",
"this",
"API",
"to",
"update",
"nsxmlnamespace",
"resources",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nsxmlnamespace.java#L219-L232 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nsxmlnamespace.java | nsxmlnamespace.unset | public static base_response unset(nitro_service client, nsxmlnamespace resource, String[] args) throws Exception{
nsxmlnamespace unsetresource = new nsxmlnamespace();
unsetresource.prefix = resource.prefix;
return unsetresource.unset_resource(client,args);
} | java | public static base_response unset(nitro_service client, nsxmlnamespace resource, String[] args) throws Exception{
nsxmlnamespace unsetresource = new nsxmlnamespace();
unsetresource.prefix = resource.prefix;
return unsetresource.unset_resource(client,args);
} | [
"public",
"static",
"base_response",
"unset",
"(",
"nitro_service",
"client",
",",
"nsxmlnamespace",
"resource",
",",
"String",
"[",
"]",
"args",
")",
"throws",
"Exception",
"{",
"nsxmlnamespace",
"unsetresource",
"=",
"new",
"nsxmlnamespace",
"(",
")",
";",
"un... | Use this API to unset the properties of nsxmlnamespace resource.
Properties that need to be unset are specified in args array. | [
"Use",
"this",
"API",
"to",
"unset",
"the",
"properties",
"of",
"nsxmlnamespace",
"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/nsxmlnamespace.java#L238-L242 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nsxmlnamespace.java | nsxmlnamespace.unset | public static base_responses unset(nitro_service client, String prefix[], String args[]) throws Exception {
base_responses result = null;
if (prefix != null && prefix.length > 0) {
nsxmlnamespace unsetresources[] = new nsxmlnamespace[prefix.length];
for (int i=0;i<prefix.length;i++){
unsetresources[i] = n... | java | public static base_responses unset(nitro_service client, String prefix[], String args[]) throws Exception {
base_responses result = null;
if (prefix != null && prefix.length > 0) {
nsxmlnamespace unsetresources[] = new nsxmlnamespace[prefix.length];
for (int i=0;i<prefix.length;i++){
unsetresources[i] = n... | [
"public",
"static",
"base_responses",
"unset",
"(",
"nitro_service",
"client",
",",
"String",
"prefix",
"[",
"]",
",",
"String",
"args",
"[",
"]",
")",
"throws",
"Exception",
"{",
"base_responses",
"result",
"=",
"null",
";",
"if",
"(",
"prefix",
"!=",
"nu... | Use this API to unset the properties of nsxmlnamespace resources.
Properties that need to be unset are specified in args array. | [
"Use",
"this",
"API",
"to",
"unset",
"the",
"properties",
"of",
"nsxmlnamespace",
"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/nsxmlnamespace.java#L248-L259 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nsxmlnamespace.java | nsxmlnamespace.get | public static nsxmlnamespace[] get(nitro_service service) throws Exception{
nsxmlnamespace obj = new nsxmlnamespace();
nsxmlnamespace[] response = (nsxmlnamespace[])obj.get_resources(service);
return response;
} | java | public static nsxmlnamespace[] get(nitro_service service) throws Exception{
nsxmlnamespace obj = new nsxmlnamespace();
nsxmlnamespace[] response = (nsxmlnamespace[])obj.get_resources(service);
return response;
} | [
"public",
"static",
"nsxmlnamespace",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
")",
"throws",
"Exception",
"{",
"nsxmlnamespace",
"obj",
"=",
"new",
"nsxmlnamespace",
"(",
")",
";",
"nsxmlnamespace",
"[",
"]",
"response",
"=",
"(",
"nsxmlnamespace",
"... | Use this API to fetch all the nsxmlnamespace resources that are configured on netscaler. | [
"Use",
"this",
"API",
"to",
"fetch",
"all",
"the",
"nsxmlnamespace",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nsxmlnamespace.java#L281-L285 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nsxmlnamespace.java | nsxmlnamespace.get | public static nsxmlnamespace get(nitro_service service, String prefix) throws Exception{
nsxmlnamespace obj = new nsxmlnamespace();
obj.set_prefix(prefix);
nsxmlnamespace response = (nsxmlnamespace) obj.get_resource(service);
return response;
} | java | public static nsxmlnamespace get(nitro_service service, String prefix) throws Exception{
nsxmlnamespace obj = new nsxmlnamespace();
obj.set_prefix(prefix);
nsxmlnamespace response = (nsxmlnamespace) obj.get_resource(service);
return response;
} | [
"public",
"static",
"nsxmlnamespace",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"prefix",
")",
"throws",
"Exception",
"{",
"nsxmlnamespace",
"obj",
"=",
"new",
"nsxmlnamespace",
"(",
")",
";",
"obj",
".",
"set_prefix",
"(",
"prefix",
")",
";",
"... | Use this API to fetch nsxmlnamespace resource of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"nsxmlnamespace",
"resource",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nsxmlnamespace.java#L297-L302 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nsxmlnamespace.java | nsxmlnamespace.get | public static nsxmlnamespace[] get(nitro_service service, String prefix[]) throws Exception{
if (prefix !=null && prefix.length>0) {
nsxmlnamespace response[] = new nsxmlnamespace[prefix.length];
nsxmlnamespace obj[] = new nsxmlnamespace[prefix.length];
for (int i=0;i<prefix.length;i++) {
obj[i] = new ns... | java | public static nsxmlnamespace[] get(nitro_service service, String prefix[]) throws Exception{
if (prefix !=null && prefix.length>0) {
nsxmlnamespace response[] = new nsxmlnamespace[prefix.length];
nsxmlnamespace obj[] = new nsxmlnamespace[prefix.length];
for (int i=0;i<prefix.length;i++) {
obj[i] = new ns... | [
"public",
"static",
"nsxmlnamespace",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"prefix",
"[",
"]",
")",
"throws",
"Exception",
"{",
"if",
"(",
"prefix",
"!=",
"null",
"&&",
"prefix",
".",
"length",
">",
"0",
")",
"{",
"nsxmlnamesp... | Use this API to fetch nsxmlnamespace resources of given names . | [
"Use",
"this",
"API",
"to",
"fetch",
"nsxmlnamespace",
"resources",
"of",
"given",
"names",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nsxmlnamespace.java#L307-L319 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nsxmlnamespace.java | nsxmlnamespace.get_filtered | public static nsxmlnamespace[] get_filtered(nitro_service service, filtervalue[] filter) throws Exception{
nsxmlnamespace obj = new nsxmlnamespace();
options option = new options();
option.set_filter(filter);
nsxmlnamespace[] response = (nsxmlnamespace[]) obj.getfiltered(service, option);
return response;
} | java | public static nsxmlnamespace[] get_filtered(nitro_service service, filtervalue[] filter) throws Exception{
nsxmlnamespace obj = new nsxmlnamespace();
options option = new options();
option.set_filter(filter);
nsxmlnamespace[] response = (nsxmlnamespace[]) obj.getfiltered(service, option);
return response;
} | [
"public",
"static",
"nsxmlnamespace",
"[",
"]",
"get_filtered",
"(",
"nitro_service",
"service",
",",
"filtervalue",
"[",
"]",
"filter",
")",
"throws",
"Exception",
"{",
"nsxmlnamespace",
"obj",
"=",
"new",
"nsxmlnamespace",
"(",
")",
";",
"options",
"option",
... | Use this API to fetch filtered set of nsxmlnamespace resources.
set the filter parameter values in filtervalue object. | [
"Use",
"this",
"API",
"to",
"fetch",
"filtered",
"set",
"of",
"nsxmlnamespace",
"resources",
".",
"set",
"the",
"filter",
"parameter",
"values",
"in",
"filtervalue",
"object",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nsxmlnamespace.java#L336-L342 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/lb/lbvserver_appfwpolicy_binding.java | lbvserver_appfwpolicy_binding.get | public static lbvserver_appfwpolicy_binding[] get(nitro_service service, String name) throws Exception{
lbvserver_appfwpolicy_binding obj = new lbvserver_appfwpolicy_binding();
obj.set_name(name);
lbvserver_appfwpolicy_binding response[] = (lbvserver_appfwpolicy_binding[]) obj.get_resources(service);
return res... | java | public static lbvserver_appfwpolicy_binding[] get(nitro_service service, String name) throws Exception{
lbvserver_appfwpolicy_binding obj = new lbvserver_appfwpolicy_binding();
obj.set_name(name);
lbvserver_appfwpolicy_binding response[] = (lbvserver_appfwpolicy_binding[]) obj.get_resources(service);
return res... | [
"public",
"static",
"lbvserver_appfwpolicy_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"lbvserver_appfwpolicy_binding",
"obj",
"=",
"new",
"lbvserver_appfwpolicy_binding",
"(",
")",
";",
"obj",
... | Use this API to fetch lbvserver_appfwpolicy_binding resources of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"lbvserver_appfwpolicy_binding",
"resources",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/lb/lbvserver_appfwpolicy_binding.java#L316-L321 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/ssl/sslservice_sslcertkey_binding.java | sslservice_sslcertkey_binding.get | public static sslservice_sslcertkey_binding[] get(nitro_service service, String servicename) throws Exception{
sslservice_sslcertkey_binding obj = new sslservice_sslcertkey_binding();
obj.set_servicename(servicename);
sslservice_sslcertkey_binding response[] = (sslservice_sslcertkey_binding[]) obj.get_resources(s... | java | public static sslservice_sslcertkey_binding[] get(nitro_service service, String servicename) throws Exception{
sslservice_sslcertkey_binding obj = new sslservice_sslcertkey_binding();
obj.set_servicename(servicename);
sslservice_sslcertkey_binding response[] = (sslservice_sslcertkey_binding[]) obj.get_resources(s... | [
"public",
"static",
"sslservice_sslcertkey_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"servicename",
")",
"throws",
"Exception",
"{",
"sslservice_sslcertkey_binding",
"obj",
"=",
"new",
"sslservice_sslcertkey_binding",
"(",
")",
";",
"o... | Use this API to fetch sslservice_sslcertkey_binding resources of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"sslservice_sslcertkey_binding",
"resources",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ssl/sslservice_sslcertkey_binding.java#L302-L307 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/basic/locationparameter.java | locationparameter.update | public static base_response update(nitro_service client, locationparameter resource) throws Exception {
locationparameter updateresource = new locationparameter();
updateresource.context = resource.context;
updateresource.q1label = resource.q1label;
updateresource.q2label = resource.q2label;
updateresource.q3... | java | public static base_response update(nitro_service client, locationparameter resource) throws Exception {
locationparameter updateresource = new locationparameter();
updateresource.context = resource.context;
updateresource.q1label = resource.q1label;
updateresource.q2label = resource.q2label;
updateresource.q3... | [
"public",
"static",
"base_response",
"update",
"(",
"nitro_service",
"client",
",",
"locationparameter",
"resource",
")",
"throws",
"Exception",
"{",
"locationparameter",
"updateresource",
"=",
"new",
"locationparameter",
"(",
")",
";",
"updateresource",
".",
"context... | Use this API to update locationparameter. | [
"Use",
"this",
"API",
"to",
"update",
"locationparameter",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/basic/locationparameter.java#L311-L321 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/basic/locationparameter.java | locationparameter.unset | public static base_response unset(nitro_service client, locationparameter resource, String[] args) throws Exception{
locationparameter unsetresource = new locationparameter();
return unsetresource.unset_resource(client,args);
} | java | public static base_response unset(nitro_service client, locationparameter resource, String[] args) throws Exception{
locationparameter unsetresource = new locationparameter();
return unsetresource.unset_resource(client,args);
} | [
"public",
"static",
"base_response",
"unset",
"(",
"nitro_service",
"client",
",",
"locationparameter",
"resource",
",",
"String",
"[",
"]",
"args",
")",
"throws",
"Exception",
"{",
"locationparameter",
"unsetresource",
"=",
"new",
"locationparameter",
"(",
")",
"... | Use this API to unset the properties of locationparameter resource.
Properties that need to be unset are specified in args array. | [
"Use",
"this",
"API",
"to",
"unset",
"the",
"properties",
"of",
"locationparameter",
"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/basic/locationparameter.java#L327-L330 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/basic/locationparameter.java | locationparameter.get | public static locationparameter get(nitro_service service) throws Exception{
locationparameter obj = new locationparameter();
locationparameter[] response = (locationparameter[])obj.get_resources(service);
return response[0];
} | java | public static locationparameter get(nitro_service service) throws Exception{
locationparameter obj = new locationparameter();
locationparameter[] response = (locationparameter[])obj.get_resources(service);
return response[0];
} | [
"public",
"static",
"locationparameter",
"get",
"(",
"nitro_service",
"service",
")",
"throws",
"Exception",
"{",
"locationparameter",
"obj",
"=",
"new",
"locationparameter",
"(",
")",
";",
"locationparameter",
"[",
"]",
"response",
"=",
"(",
"locationparameter",
... | Use this API to fetch all the locationparameter resources that are configured on netscaler. | [
"Use",
"this",
"API",
"to",
"fetch",
"all",
"the",
"locationparameter",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/basic/locationparameter.java#L335-L339 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nsappflowparam.java | nsappflowparam.update | public static base_response update(nitro_service client, nsappflowparam resource) throws Exception {
nsappflowparam updateresource = new nsappflowparam();
updateresource.templaterefresh = resource.templaterefresh;
updateresource.udppmtu = resource.udppmtu;
updateresource.httpurl = resource.httpurl;
updatereso... | java | public static base_response update(nitro_service client, nsappflowparam resource) throws Exception {
nsappflowparam updateresource = new nsappflowparam();
updateresource.templaterefresh = resource.templaterefresh;
updateresource.udppmtu = resource.udppmtu;
updateresource.httpurl = resource.httpurl;
updatereso... | [
"public",
"static",
"base_response",
"update",
"(",
"nitro_service",
"client",
",",
"nsappflowparam",
"resource",
")",
"throws",
"Exception",
"{",
"nsappflowparam",
"updateresource",
"=",
"new",
"nsappflowparam",
"(",
")",
";",
"updateresource",
".",
"templaterefresh"... | Use this API to update nsappflowparam. | [
"Use",
"this",
"API",
"to",
"update",
"nsappflowparam",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nsappflowparam.java#L264-L276 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nsappflowparam.java | nsappflowparam.unset | public static base_response unset(nitro_service client, nsappflowparam resource, String[] args) throws Exception{
nsappflowparam unsetresource = new nsappflowparam();
return unsetresource.unset_resource(client,args);
} | java | public static base_response unset(nitro_service client, nsappflowparam resource, String[] args) throws Exception{
nsappflowparam unsetresource = new nsappflowparam();
return unsetresource.unset_resource(client,args);
} | [
"public",
"static",
"base_response",
"unset",
"(",
"nitro_service",
"client",
",",
"nsappflowparam",
"resource",
",",
"String",
"[",
"]",
"args",
")",
"throws",
"Exception",
"{",
"nsappflowparam",
"unsetresource",
"=",
"new",
"nsappflowparam",
"(",
")",
";",
"re... | Use this API to unset the properties of nsappflowparam resource.
Properties that need to be unset are specified in args array. | [
"Use",
"this",
"API",
"to",
"unset",
"the",
"properties",
"of",
"nsappflowparam",
"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/nsappflowparam.java#L282-L285 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nsappflowparam.java | nsappflowparam.get | public static nsappflowparam get(nitro_service service) throws Exception{
nsappflowparam obj = new nsappflowparam();
nsappflowparam[] response = (nsappflowparam[])obj.get_resources(service);
return response[0];
} | java | public static nsappflowparam get(nitro_service service) throws Exception{
nsappflowparam obj = new nsappflowparam();
nsappflowparam[] response = (nsappflowparam[])obj.get_resources(service);
return response[0];
} | [
"public",
"static",
"nsappflowparam",
"get",
"(",
"nitro_service",
"service",
")",
"throws",
"Exception",
"{",
"nsappflowparam",
"obj",
"=",
"new",
"nsappflowparam",
"(",
")",
";",
"nsappflowparam",
"[",
"]",
"response",
"=",
"(",
"nsappflowparam",
"[",
"]",
"... | Use this API to fetch all the nsappflowparam resources that are configured on netscaler. | [
"Use",
"this",
"API",
"to",
"fetch",
"all",
"the",
"nsappflowparam",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nsappflowparam.java#L290-L294 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/classify/WeightedDataset.java | WeightedDataset.randomize | @Override
public void randomize(int randomSeed) {
Random rand = new Random(randomSeed);
for(int j = size - 1; j > 0; j --){
int randIndex = rand.nextInt(j);
int [] tmp = data[randIndex];
data[randIndex] = data[j];
data[j] = tmp;
int tmpl = labels[randIndex... | java | @Override
public void randomize(int randomSeed) {
Random rand = new Random(randomSeed);
for(int j = size - 1; j > 0; j --){
int randIndex = rand.nextInt(j);
int [] tmp = data[randIndex];
data[randIndex] = data[j];
data[j] = tmp;
int tmpl = labels[randIndex... | [
"@",
"Override",
"public",
"void",
"randomize",
"(",
"int",
"randomSeed",
")",
"{",
"Random",
"rand",
"=",
"new",
"Random",
"(",
"randomSeed",
")",
";",
"for",
"(",
"int",
"j",
"=",
"size",
"-",
"1",
";",
"j",
">",
"0",
";",
"j",
"--",
")",
"{",
... | Randomizes the data array in place
Needs to be redefined here because we need to randomize the weights as well | [
"Randomizes",
"the",
"data",
"array",
"in",
"place",
"Needs",
"to",
"be",
"redefined",
"here",
"because",
"we",
"need",
"to",
"randomize",
"the",
"weights",
"as",
"well"
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/classify/WeightedDataset.java#L91-L109 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/sc/scpolicy.java | scpolicy.add | public static base_response add(nitro_service client, scpolicy resource) throws Exception {
scpolicy addresource = new scpolicy();
addresource.name = resource.name;
addresource.url = resource.url;
addresource.rule = resource.rule;
addresource.delay = resource.delay;
addresource.maxconn = resource.maxconn;
... | java | public static base_response add(nitro_service client, scpolicy resource) throws Exception {
scpolicy addresource = new scpolicy();
addresource.name = resource.name;
addresource.url = resource.url;
addresource.rule = resource.rule;
addresource.delay = resource.delay;
addresource.maxconn = resource.maxconn;
... | [
"public",
"static",
"base_response",
"add",
"(",
"nitro_service",
"client",
",",
"scpolicy",
"resource",
")",
"throws",
"Exception",
"{",
"scpolicy",
"addresource",
"=",
"new",
"scpolicy",
"(",
")",
";",
"addresource",
".",
"name",
"=",
"resource",
".",
"name"... | Use this API to add scpolicy. | [
"Use",
"this",
"API",
"to",
"add",
"scpolicy",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/sc/scpolicy.java#L262-L273 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/sc/scpolicy.java | scpolicy.add | public static base_responses add(nitro_service client, scpolicy resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
scpolicy addresources[] = new scpolicy[resources.length];
for (int i=0;i<resources.length;i++){
addresources[i] = new scpolicy();
... | java | public static base_responses add(nitro_service client, scpolicy resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
scpolicy addresources[] = new scpolicy[resources.length];
for (int i=0;i<resources.length;i++){
addresources[i] = new scpolicy();
... | [
"public",
"static",
"base_responses",
"add",
"(",
"nitro_service",
"client",
",",
"scpolicy",
"resources",
"[",
"]",
")",
"throws",
"Exception",
"{",
"base_responses",
"result",
"=",
"null",
";",
"if",
"(",
"resources",
"!=",
"null",
"&&",
"resources",
".",
... | Use this API to add scpolicy resources. | [
"Use",
"this",
"API",
"to",
"add",
"scpolicy",
"resources",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/sc/scpolicy.java#L278-L296 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/sc/scpolicy.java | scpolicy.update | public static base_response update(nitro_service client, scpolicy resource) throws Exception {
scpolicy updateresource = new scpolicy();
updateresource.name = resource.name;
updateresource.url = resource.url;
updateresource.rule = resource.rule;
updateresource.delay = resource.delay;
updateresource.maxconn ... | java | public static base_response update(nitro_service client, scpolicy resource) throws Exception {
scpolicy updateresource = new scpolicy();
updateresource.name = resource.name;
updateresource.url = resource.url;
updateresource.rule = resource.rule;
updateresource.delay = resource.delay;
updateresource.maxconn ... | [
"public",
"static",
"base_response",
"update",
"(",
"nitro_service",
"client",
",",
"scpolicy",
"resource",
")",
"throws",
"Exception",
"{",
"scpolicy",
"updateresource",
"=",
"new",
"scpolicy",
"(",
")",
";",
"updateresource",
".",
"name",
"=",
"resource",
".",... | Use this API to update scpolicy. | [
"Use",
"this",
"API",
"to",
"update",
"scpolicy",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/sc/scpolicy.java#L351-L362 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/sc/scpolicy.java | scpolicy.update | public static base_responses update(nitro_service client, scpolicy resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
scpolicy updateresources[] = new scpolicy[resources.length];
for (int i=0;i<resources.length;i++){
updateresources[i] = new scpo... | java | public static base_responses update(nitro_service client, scpolicy resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
scpolicy updateresources[] = new scpolicy[resources.length];
for (int i=0;i<resources.length;i++){
updateresources[i] = new scpo... | [
"public",
"static",
"base_responses",
"update",
"(",
"nitro_service",
"client",
",",
"scpolicy",
"resources",
"[",
"]",
")",
"throws",
"Exception",
"{",
"base_responses",
"result",
"=",
"null",
";",
"if",
"(",
"resources",
"!=",
"null",
"&&",
"resources",
".",... | Use this API to update scpolicy resources. | [
"Use",
"this",
"API",
"to",
"update",
"scpolicy",
"resources",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/sc/scpolicy.java#L367-L385 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/sc/scpolicy.java | scpolicy.get | public static scpolicy[] get(nitro_service service) throws Exception{
scpolicy obj = new scpolicy();
scpolicy[] response = (scpolicy[])obj.get_resources(service);
return response;
} | java | public static scpolicy[] get(nitro_service service) throws Exception{
scpolicy obj = new scpolicy();
scpolicy[] response = (scpolicy[])obj.get_resources(service);
return response;
} | [
"public",
"static",
"scpolicy",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
")",
"throws",
"Exception",
"{",
"scpolicy",
"obj",
"=",
"new",
"scpolicy",
"(",
")",
";",
"scpolicy",
"[",
"]",
"response",
"=",
"(",
"scpolicy",
"[",
"]",
")",
"obj",
"... | Use this API to fetch all the scpolicy resources that are configured on netscaler. | [
"Use",
"this",
"API",
"to",
"fetch",
"all",
"the",
"scpolicy",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/sc/scpolicy.java#L434-L438 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/sc/scpolicy.java | scpolicy.get | public static scpolicy get(nitro_service service, String name) throws Exception{
scpolicy obj = new scpolicy();
obj.set_name(name);
scpolicy response = (scpolicy) obj.get_resource(service);
return response;
} | java | public static scpolicy get(nitro_service service, String name) throws Exception{
scpolicy obj = new scpolicy();
obj.set_name(name);
scpolicy response = (scpolicy) obj.get_resource(service);
return response;
} | [
"public",
"static",
"scpolicy",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"scpolicy",
"obj",
"=",
"new",
"scpolicy",
"(",
")",
";",
"obj",
".",
"set_name",
"(",
"name",
")",
";",
"scpolicy",
"response",... | Use this API to fetch scpolicy resource of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"scpolicy",
"resource",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/sc/scpolicy.java#L450-L455 | train |
meertensinstituut/mtas | src/main/java/mtas/parser/function/util/MtasFunctionParserFunction.java | MtasFunctionParserFunction.needArgumentsNumber | public final int needArgumentsNumber() {
int number = 0;
for (int i : needArgument) {
number = Math.max(number, (i + 1));
}
return number;
} | java | public final int needArgumentsNumber() {
int number = 0;
for (int i : needArgument) {
number = Math.max(number, (i + 1));
}
return number;
} | [
"public",
"final",
"int",
"needArgumentsNumber",
"(",
")",
"{",
"int",
"number",
"=",
"0",
";",
"for",
"(",
"int",
"i",
":",
"needArgument",
")",
"{",
"number",
"=",
"Math",
".",
"max",
"(",
"number",
",",
"(",
"i",
"+",
"1",
")",
")",
";",
"}",
... | Need arguments number.
@return the int | [
"Need",
"arguments",
"number",
"."
] | f02ae730848616bd88b553efa7f9eddc32818e64 | https://github.com/meertensinstituut/mtas/blob/f02ae730848616bd88b553efa7f9eddc32818e64/src/main/java/mtas/parser/function/util/MtasFunctionParserFunction.java#L151-L157 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/cs/csvserver_rewritepolicy_binding.java | csvserver_rewritepolicy_binding.get | public static csvserver_rewritepolicy_binding[] get(nitro_service service, String name) throws Exception{
csvserver_rewritepolicy_binding obj = new csvserver_rewritepolicy_binding();
obj.set_name(name);
csvserver_rewritepolicy_binding response[] = (csvserver_rewritepolicy_binding[]) obj.get_resources(service);
... | java | public static csvserver_rewritepolicy_binding[] get(nitro_service service, String name) throws Exception{
csvserver_rewritepolicy_binding obj = new csvserver_rewritepolicy_binding();
obj.set_name(name);
csvserver_rewritepolicy_binding response[] = (csvserver_rewritepolicy_binding[]) obj.get_resources(service);
... | [
"public",
"static",
"csvserver_rewritepolicy_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"csvserver_rewritepolicy_binding",
"obj",
"=",
"new",
"csvserver_rewritepolicy_binding",
"(",
")",
";",
"ob... | Use this API to fetch csvserver_rewritepolicy_binding resources of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"csvserver_rewritepolicy_binding",
"resources",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/cs/csvserver_rewritepolicy_binding.java#L327-L332 | train |
meertensinstituut/mtas | src/main/java/mtas/codec/util/collector/MtasDataCollectorResult.java | MtasDataCollectorResult.getComparatorList | @SuppressWarnings("rawtypes")
public final Map<String, MtasDataItemNumberComparator> getComparatorList()
throws IOException {
if (collectorType.equals(DataCollector.COLLECTOR_TYPE_LIST)) {
LinkedHashMap<String, MtasDataItemNumberComparator> comparatorList = new LinkedHashMap<>();
for (Entry<Stri... | java | @SuppressWarnings("rawtypes")
public final Map<String, MtasDataItemNumberComparator> getComparatorList()
throws IOException {
if (collectorType.equals(DataCollector.COLLECTOR_TYPE_LIST)) {
LinkedHashMap<String, MtasDataItemNumberComparator> comparatorList = new LinkedHashMap<>();
for (Entry<Stri... | [
"@",
"SuppressWarnings",
"(",
"\"rawtypes\"",
")",
"public",
"final",
"Map",
"<",
"String",
",",
"MtasDataItemNumberComparator",
">",
"getComparatorList",
"(",
")",
"throws",
"IOException",
"{",
"if",
"(",
"collectorType",
".",
"equals",
"(",
"DataCollector",
".",... | Gets the comparator list.
@return the comparator list
@throws IOException Signals that an I/O exception has occurred. | [
"Gets",
"the",
"comparator",
"list",
"."
] | f02ae730848616bd88b553efa7f9eddc32818e64 | https://github.com/meertensinstituut/mtas/blob/f02ae730848616bd88b553efa7f9eddc32818e64/src/main/java/mtas/codec/util/collector/MtasDataCollectorResult.java#L208-L221 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/lb/lbvserver_cmppolicy_binding.java | lbvserver_cmppolicy_binding.get | public static lbvserver_cmppolicy_binding[] get(nitro_service service, String name) throws Exception{
lbvserver_cmppolicy_binding obj = new lbvserver_cmppolicy_binding();
obj.set_name(name);
lbvserver_cmppolicy_binding response[] = (lbvserver_cmppolicy_binding[]) obj.get_resources(service);
return response;
} | java | public static lbvserver_cmppolicy_binding[] get(nitro_service service, String name) throws Exception{
lbvserver_cmppolicy_binding obj = new lbvserver_cmppolicy_binding();
obj.set_name(name);
lbvserver_cmppolicy_binding response[] = (lbvserver_cmppolicy_binding[]) obj.get_resources(service);
return response;
} | [
"public",
"static",
"lbvserver_cmppolicy_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"lbvserver_cmppolicy_binding",
"obj",
"=",
"new",
"lbvserver_cmppolicy_binding",
"(",
")",
";",
"obj",
".",
... | Use this API to fetch lbvserver_cmppolicy_binding resources of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"lbvserver_cmppolicy_binding",
"resources",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/lb/lbvserver_cmppolicy_binding.java#L316-L321 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwconfidfield.java | appfwconfidfield.add | public static base_response add(nitro_service client, appfwconfidfield resource) throws Exception {
appfwconfidfield addresource = new appfwconfidfield();
addresource.fieldname = resource.fieldname;
addresource.url = resource.url;
addresource.isregex = resource.isregex;
addresource.comment = resource.comment;... | java | public static base_response add(nitro_service client, appfwconfidfield resource) throws Exception {
appfwconfidfield addresource = new appfwconfidfield();
addresource.fieldname = resource.fieldname;
addresource.url = resource.url;
addresource.isregex = resource.isregex;
addresource.comment = resource.comment;... | [
"public",
"static",
"base_response",
"add",
"(",
"nitro_service",
"client",
",",
"appfwconfidfield",
"resource",
")",
"throws",
"Exception",
"{",
"appfwconfidfield",
"addresource",
"=",
"new",
"appfwconfidfield",
"(",
")",
";",
"addresource",
".",
"fieldname",
"=",
... | Use this API to add appfwconfidfield. | [
"Use",
"this",
"API",
"to",
"add",
"appfwconfidfield",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwconfidfield.java#L173-L181 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwconfidfield.java | appfwconfidfield.add | public static base_responses add(nitro_service client, appfwconfidfield resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
appfwconfidfield addresources[] = new appfwconfidfield[resources.length];
for (int i=0;i<resources.length;i++){
addresource... | java | public static base_responses add(nitro_service client, appfwconfidfield resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
appfwconfidfield addresources[] = new appfwconfidfield[resources.length];
for (int i=0;i<resources.length;i++){
addresource... | [
"public",
"static",
"base_responses",
"add",
"(",
"nitro_service",
"client",
",",
"appfwconfidfield",
"resources",
"[",
"]",
")",
"throws",
"Exception",
"{",
"base_responses",
"result",
"=",
"null",
";",
"if",
"(",
"resources",
"!=",
"null",
"&&",
"resources",
... | Use this API to add appfwconfidfield resources. | [
"Use",
"this",
"API",
"to",
"add",
"appfwconfidfield",
"resources",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwconfidfield.java#L186-L201 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwconfidfield.java | appfwconfidfield.delete | public static base_response delete(nitro_service client, String fieldname) throws Exception {
appfwconfidfield deleteresource = new appfwconfidfield();
deleteresource.fieldname = fieldname;
return deleteresource.delete_resource(client);
} | java | public static base_response delete(nitro_service client, String fieldname) throws Exception {
appfwconfidfield deleteresource = new appfwconfidfield();
deleteresource.fieldname = fieldname;
return deleteresource.delete_resource(client);
} | [
"public",
"static",
"base_response",
"delete",
"(",
"nitro_service",
"client",
",",
"String",
"fieldname",
")",
"throws",
"Exception",
"{",
"appfwconfidfield",
"deleteresource",
"=",
"new",
"appfwconfidfield",
"(",
")",
";",
"deleteresource",
".",
"fieldname",
"=",
... | Use this API to delete appfwconfidfield of given name. | [
"Use",
"this",
"API",
"to",
"delete",
"appfwconfidfield",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwconfidfield.java#L206-L210 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwconfidfield.java | appfwconfidfield.delete | public static base_response delete(nitro_service client, appfwconfidfield resource) throws Exception {
appfwconfidfield deleteresource = new appfwconfidfield();
deleteresource.fieldname = resource.fieldname;
deleteresource.url = resource.url;
return deleteresource.delete_resource(client);
} | java | public static base_response delete(nitro_service client, appfwconfidfield resource) throws Exception {
appfwconfidfield deleteresource = new appfwconfidfield();
deleteresource.fieldname = resource.fieldname;
deleteresource.url = resource.url;
return deleteresource.delete_resource(client);
} | [
"public",
"static",
"base_response",
"delete",
"(",
"nitro_service",
"client",
",",
"appfwconfidfield",
"resource",
")",
"throws",
"Exception",
"{",
"appfwconfidfield",
"deleteresource",
"=",
"new",
"appfwconfidfield",
"(",
")",
";",
"deleteresource",
".",
"fieldname"... | Use this API to delete appfwconfidfield. | [
"Use",
"this",
"API",
"to",
"delete",
"appfwconfidfield",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwconfidfield.java#L215-L220 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwconfidfield.java | appfwconfidfield.delete | public static base_responses delete(nitro_service client, String fieldname[]) throws Exception {
base_responses result = null;
if (fieldname != null && fieldname.length > 0) {
appfwconfidfield deleteresources[] = new appfwconfidfield[fieldname.length];
for (int i=0;i<fieldname.length;i++){
deleteresources... | java | public static base_responses delete(nitro_service client, String fieldname[]) throws Exception {
base_responses result = null;
if (fieldname != null && fieldname.length > 0) {
appfwconfidfield deleteresources[] = new appfwconfidfield[fieldname.length];
for (int i=0;i<fieldname.length;i++){
deleteresources... | [
"public",
"static",
"base_responses",
"delete",
"(",
"nitro_service",
"client",
",",
"String",
"fieldname",
"[",
"]",
")",
"throws",
"Exception",
"{",
"base_responses",
"result",
"=",
"null",
";",
"if",
"(",
"fieldname",
"!=",
"null",
"&&",
"fieldname",
".",
... | Use this API to delete appfwconfidfield resources of given names. | [
"Use",
"this",
"API",
"to",
"delete",
"appfwconfidfield",
"resources",
"of",
"given",
"names",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwconfidfield.java#L225-L236 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwconfidfield.java | appfwconfidfield.delete | public static base_responses delete(nitro_service client, appfwconfidfield resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
appfwconfidfield deleteresources[] = new appfwconfidfield[resources.length];
for (int i=0;i<resources.length;i++){
delet... | java | public static base_responses delete(nitro_service client, appfwconfidfield resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
appfwconfidfield deleteresources[] = new appfwconfidfield[resources.length];
for (int i=0;i<resources.length;i++){
delet... | [
"public",
"static",
"base_responses",
"delete",
"(",
"nitro_service",
"client",
",",
"appfwconfidfield",
"resources",
"[",
"]",
")",
"throws",
"Exception",
"{",
"base_responses",
"result",
"=",
"null",
";",
"if",
"(",
"resources",
"!=",
"null",
"&&",
"resources"... | Use this API to delete appfwconfidfield resources. | [
"Use",
"this",
"API",
"to",
"delete",
"appfwconfidfield",
"resources",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwconfidfield.java#L241-L253 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwconfidfield.java | appfwconfidfield.update | public static base_response update(nitro_service client, appfwconfidfield resource) throws Exception {
appfwconfidfield updateresource = new appfwconfidfield();
updateresource.fieldname = resource.fieldname;
updateresource.url = resource.url;
updateresource.comment = resource.comment;
updateresource.state = r... | java | public static base_response update(nitro_service client, appfwconfidfield resource) throws Exception {
appfwconfidfield updateresource = new appfwconfidfield();
updateresource.fieldname = resource.fieldname;
updateresource.url = resource.url;
updateresource.comment = resource.comment;
updateresource.state = r... | [
"public",
"static",
"base_response",
"update",
"(",
"nitro_service",
"client",
",",
"appfwconfidfield",
"resource",
")",
"throws",
"Exception",
"{",
"appfwconfidfield",
"updateresource",
"=",
"new",
"appfwconfidfield",
"(",
")",
";",
"updateresource",
".",
"fieldname"... | Use this API to update appfwconfidfield. | [
"Use",
"this",
"API",
"to",
"update",
"appfwconfidfield",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwconfidfield.java#L258-L265 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwconfidfield.java | appfwconfidfield.update | public static base_responses update(nitro_service client, appfwconfidfield resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
appfwconfidfield updateresources[] = new appfwconfidfield[resources.length];
for (int i=0;i<resources.length;i++){
updat... | java | public static base_responses update(nitro_service client, appfwconfidfield resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
appfwconfidfield updateresources[] = new appfwconfidfield[resources.length];
for (int i=0;i<resources.length;i++){
updat... | [
"public",
"static",
"base_responses",
"update",
"(",
"nitro_service",
"client",
",",
"appfwconfidfield",
"resources",
"[",
"]",
")",
"throws",
"Exception",
"{",
"base_responses",
"result",
"=",
"null",
";",
"if",
"(",
"resources",
"!=",
"null",
"&&",
"resources"... | Use this API to update appfwconfidfield resources. | [
"Use",
"this",
"API",
"to",
"update",
"appfwconfidfield",
"resources",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwconfidfield.java#L270-L284 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwconfidfield.java | appfwconfidfield.unset | public static base_response unset(nitro_service client, appfwconfidfield resource, String[] args) throws Exception{
appfwconfidfield unsetresource = new appfwconfidfield();
unsetresource.fieldname = resource.fieldname;
unsetresource.url = resource.url;
return unsetresource.unset_resource(client,args);
} | java | public static base_response unset(nitro_service client, appfwconfidfield resource, String[] args) throws Exception{
appfwconfidfield unsetresource = new appfwconfidfield();
unsetresource.fieldname = resource.fieldname;
unsetresource.url = resource.url;
return unsetresource.unset_resource(client,args);
} | [
"public",
"static",
"base_response",
"unset",
"(",
"nitro_service",
"client",
",",
"appfwconfidfield",
"resource",
",",
"String",
"[",
"]",
"args",
")",
"throws",
"Exception",
"{",
"appfwconfidfield",
"unsetresource",
"=",
"new",
"appfwconfidfield",
"(",
")",
";",... | Use this API to unset the properties of appfwconfidfield resource.
Properties that need to be unset are specified in args array. | [
"Use",
"this",
"API",
"to",
"unset",
"the",
"properties",
"of",
"appfwconfidfield",
"resource",
".",
"Properties",
"that",
"need",
"to",
"be",
"unset",
"are",
"specified",
"in",
"args",
"array",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwconfidfield.java#L290-L295 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwconfidfield.java | appfwconfidfield.unset | public static base_responses unset(nitro_service client, appfwconfidfield resources[], String[] args) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
appfwconfidfield unsetresources[] = new appfwconfidfield[resources.length];
for (int i=0;i<resources.length;i... | java | public static base_responses unset(nitro_service client, appfwconfidfield resources[], String[] args) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
appfwconfidfield unsetresources[] = new appfwconfidfield[resources.length];
for (int i=0;i<resources.length;i... | [
"public",
"static",
"base_responses",
"unset",
"(",
"nitro_service",
"client",
",",
"appfwconfidfield",
"resources",
"[",
"]",
",",
"String",
"[",
"]",
"args",
")",
"throws",
"Exception",
"{",
"base_responses",
"result",
"=",
"null",
";",
"if",
"(",
"resources... | Use this API to unset the properties of appfwconfidfield resources.
Properties that need to be unset are specified in args array. | [
"Use",
"this",
"API",
"to",
"unset",
"the",
"properties",
"of",
"appfwconfidfield",
"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/appfw/appfwconfidfield.java#L301-L313 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwconfidfield.java | appfwconfidfield.get | public static appfwconfidfield[] get(nitro_service service) throws Exception{
appfwconfidfield obj = new appfwconfidfield();
appfwconfidfield[] response = (appfwconfidfield[])obj.get_resources(service);
return response;
} | java | public static appfwconfidfield[] get(nitro_service service) throws Exception{
appfwconfidfield obj = new appfwconfidfield();
appfwconfidfield[] response = (appfwconfidfield[])obj.get_resources(service);
return response;
} | [
"public",
"static",
"appfwconfidfield",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
")",
"throws",
"Exception",
"{",
"appfwconfidfield",
"obj",
"=",
"new",
"appfwconfidfield",
"(",
")",
";",
"appfwconfidfield",
"[",
"]",
"response",
"=",
"(",
"appfwconfidf... | Use this API to fetch all the appfwconfidfield resources that are configured on netscaler. | [
"Use",
"this",
"API",
"to",
"fetch",
"all",
"the",
"appfwconfidfield",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwconfidfield.java#L318-L322 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnsnsrec.java | dnsnsrec.add | public static base_response add(nitro_service client, dnsnsrec resource) throws Exception {
dnsnsrec addresource = new dnsnsrec();
addresource.domain = resource.domain;
addresource.nameserver = resource.nameserver;
addresource.ttl = resource.ttl;
return addresource.add_resource(client);
} | java | public static base_response add(nitro_service client, dnsnsrec resource) throws Exception {
dnsnsrec addresource = new dnsnsrec();
addresource.domain = resource.domain;
addresource.nameserver = resource.nameserver;
addresource.ttl = resource.ttl;
return addresource.add_resource(client);
} | [
"public",
"static",
"base_response",
"add",
"(",
"nitro_service",
"client",
",",
"dnsnsrec",
"resource",
")",
"throws",
"Exception",
"{",
"dnsnsrec",
"addresource",
"=",
"new",
"dnsnsrec",
"(",
")",
";",
"addresource",
".",
"domain",
"=",
"resource",
".",
"dom... | Use this API to add dnsnsrec. | [
"Use",
"this",
"API",
"to",
"add",
"dnsnsrec",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnsnsrec.java#L178-L184 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnsnsrec.java | dnsnsrec.add | public static base_responses add(nitro_service client, dnsnsrec resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
dnsnsrec addresources[] = new dnsnsrec[resources.length];
for (int i=0;i<resources.length;i++){
addresources[i] = new dnsnsrec();
... | java | public static base_responses add(nitro_service client, dnsnsrec resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
dnsnsrec addresources[] = new dnsnsrec[resources.length];
for (int i=0;i<resources.length;i++){
addresources[i] = new dnsnsrec();
... | [
"public",
"static",
"base_responses",
"add",
"(",
"nitro_service",
"client",
",",
"dnsnsrec",
"resources",
"[",
"]",
")",
"throws",
"Exception",
"{",
"base_responses",
"result",
"=",
"null",
";",
"if",
"(",
"resources",
"!=",
"null",
"&&",
"resources",
".",
... | Use this API to add dnsnsrec resources. | [
"Use",
"this",
"API",
"to",
"add",
"dnsnsrec",
"resources",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnsnsrec.java#L189-L202 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnsnsrec.java | dnsnsrec.delete | public static base_response delete(nitro_service client, dnsnsrec resource) throws Exception {
dnsnsrec deleteresource = new dnsnsrec();
deleteresource.domain = resource.domain;
deleteresource.nameserver = resource.nameserver;
return deleteresource.delete_resource(client);
} | java | public static base_response delete(nitro_service client, dnsnsrec resource) throws Exception {
dnsnsrec deleteresource = new dnsnsrec();
deleteresource.domain = resource.domain;
deleteresource.nameserver = resource.nameserver;
return deleteresource.delete_resource(client);
} | [
"public",
"static",
"base_response",
"delete",
"(",
"nitro_service",
"client",
",",
"dnsnsrec",
"resource",
")",
"throws",
"Exception",
"{",
"dnsnsrec",
"deleteresource",
"=",
"new",
"dnsnsrec",
"(",
")",
";",
"deleteresource",
".",
"domain",
"=",
"resource",
".... | Use this API to delete dnsnsrec. | [
"Use",
"this",
"API",
"to",
"delete",
"dnsnsrec",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnsnsrec.java#L216-L221 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnsnsrec.java | dnsnsrec.get | public static dnsnsrec[] get(nitro_service service) throws Exception{
dnsnsrec obj = new dnsnsrec();
dnsnsrec[] response = (dnsnsrec[])obj.get_resources(service);
return response;
} | java | public static dnsnsrec[] get(nitro_service service) throws Exception{
dnsnsrec obj = new dnsnsrec();
dnsnsrec[] response = (dnsnsrec[])obj.get_resources(service);
return response;
} | [
"public",
"static",
"dnsnsrec",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
")",
"throws",
"Exception",
"{",
"dnsnsrec",
"obj",
"=",
"new",
"dnsnsrec",
"(",
")",
";",
"dnsnsrec",
"[",
"]",
"response",
"=",
"(",
"dnsnsrec",
"[",
"]",
")",
"obj",
"... | Use this API to fetch all the dnsnsrec resources that are configured on netscaler. | [
"Use",
"this",
"API",
"to",
"fetch",
"all",
"the",
"dnsnsrec",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnsnsrec.java#L259-L263 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnsnsrec.java | dnsnsrec.get | public static dnsnsrec[] get(nitro_service service, dnsnsrec_args args) throws Exception{
dnsnsrec obj = new dnsnsrec();
options option = new options();
option.set_args(nitro_util.object_to_string_withoutquotes(args));
dnsnsrec[] response = (dnsnsrec[])obj.get_resources(service, option);
return response;
} | java | public static dnsnsrec[] get(nitro_service service, dnsnsrec_args args) throws Exception{
dnsnsrec obj = new dnsnsrec();
options option = new options();
option.set_args(nitro_util.object_to_string_withoutquotes(args));
dnsnsrec[] response = (dnsnsrec[])obj.get_resources(service, option);
return response;
} | [
"public",
"static",
"dnsnsrec",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"dnsnsrec_args",
"args",
")",
"throws",
"Exception",
"{",
"dnsnsrec",
"obj",
"=",
"new",
"dnsnsrec",
"(",
")",
";",
"options",
"option",
"=",
"new",
"options",
"(",
")",... | Use this API to fetch all the dnsnsrec resources that are configured on netscaler.
This uses dnsnsrec_args which is a way to provide additional arguments while fetching the resources. | [
"Use",
"this",
"API",
"to",
"fetch",
"all",
"the",
"dnsnsrec",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
".",
"This",
"uses",
"dnsnsrec_args",
"which",
"is",
"a",
"way",
"to",
"provide",
"additional",
"arguments",
"while",
"fetching",
"the",... | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnsnsrec.java#L276-L282 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnsnsrec.java | dnsnsrec.get | public static dnsnsrec get(nitro_service service, String domain) throws Exception{
dnsnsrec obj = new dnsnsrec();
obj.set_domain(domain);
dnsnsrec response = (dnsnsrec) obj.get_resource(service);
return response;
} | java | public static dnsnsrec get(nitro_service service, String domain) throws Exception{
dnsnsrec obj = new dnsnsrec();
obj.set_domain(domain);
dnsnsrec response = (dnsnsrec) obj.get_resource(service);
return response;
} | [
"public",
"static",
"dnsnsrec",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"domain",
")",
"throws",
"Exception",
"{",
"dnsnsrec",
"obj",
"=",
"new",
"dnsnsrec",
"(",
")",
";",
"obj",
".",
"set_domain",
"(",
"domain",
")",
";",
"dnsnsrec",
"resp... | Use this API to fetch dnsnsrec resource of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"dnsnsrec",
"resource",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnsnsrec.java#L287-L292 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/io/IOUtils.java | IOUtils.writeObjectToTempFile | public static File writeObjectToTempFile(Object o, String filename)
throws IOException {
File file = File.createTempFile(filename, ".tmp");
file.deleteOnExit();
ObjectOutputStream oos = new ObjectOutputStream(new BufferedOutputStream(
new GZIPOutputStream(new FileOutputStream(file))));
o... | java | public static File writeObjectToTempFile(Object o, String filename)
throws IOException {
File file = File.createTempFile(filename, ".tmp");
file.deleteOnExit();
ObjectOutputStream oos = new ObjectOutputStream(new BufferedOutputStream(
new GZIPOutputStream(new FileOutputStream(file))));
o... | [
"public",
"static",
"File",
"writeObjectToTempFile",
"(",
"Object",
"o",
",",
"String",
"filename",
")",
"throws",
"IOException",
"{",
"File",
"file",
"=",
"File",
".",
"createTempFile",
"(",
"filename",
",",
"\".tmp\"",
")",
";",
"file",
".",
"deleteOnExit",
... | Write object to temp file which is destroyed when the program exits.
@param o
object to be written to file
@param filename
name of the temp file
@throws IOException
If file cannot be written
@return File containing the object | [
"Write",
"object",
"to",
"temp",
"file",
"which",
"is",
"destroyed",
"when",
"the",
"program",
"exits",
"."
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/io/IOUtils.java#L124-L133 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/io/IOUtils.java | IOUtils.writeObjectToTempFileNoExceptions | public static File writeObjectToTempFileNoExceptions(Object o, String filename) {
try {
return writeObjectToTempFile(o, filename);
} catch (Exception e) {
System.err.println("Error writing object to file " + filename);
e.printStackTrace();
return null;
}
} | java | public static File writeObjectToTempFileNoExceptions(Object o, String filename) {
try {
return writeObjectToTempFile(o, filename);
} catch (Exception e) {
System.err.println("Error writing object to file " + filename);
e.printStackTrace();
return null;
}
} | [
"public",
"static",
"File",
"writeObjectToTempFileNoExceptions",
"(",
"Object",
"o",
",",
"String",
"filename",
")",
"{",
"try",
"{",
"return",
"writeObjectToTempFile",
"(",
"o",
",",
"filename",
")",
";",
"}",
"catch",
"(",
"Exception",
"e",
")",
"{",
"Syst... | Write object to a temp file and ignore exceptions.
@param o
object to be written to file
@param filename
name of the temp file
@return File containing the object | [
"Write",
"object",
"to",
"a",
"temp",
"file",
"and",
"ignore",
"exceptions",
"."
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/io/IOUtils.java#L144-L152 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/io/IOUtils.java | IOUtils.writeStringToFile | public static void writeStringToFile(String contents, String path, String encoding) throws IOException {
OutputStream writer = null;
if (path.endsWith(".gz")) {
writer = new GZIPOutputStream(new FileOutputStream(path));
} else {
writer = new BufferedOutputStream(new FileOutputStream(path));
... | java | public static void writeStringToFile(String contents, String path, String encoding) throws IOException {
OutputStream writer = null;
if (path.endsWith(".gz")) {
writer = new GZIPOutputStream(new FileOutputStream(path));
} else {
writer = new BufferedOutputStream(new FileOutputStream(path));
... | [
"public",
"static",
"void",
"writeStringToFile",
"(",
"String",
"contents",
",",
"String",
"path",
",",
"String",
"encoding",
")",
"throws",
"IOException",
"{",
"OutputStream",
"writer",
"=",
"null",
";",
"if",
"(",
"path",
".",
"endsWith",
"(",
"\".gz\"",
"... | Writes a string to a file
@param contents The string to write
@param path The file path
@param encoding The encoding to encode in
@throws IOException In case of failure | [
"Writes",
"a",
"string",
"to",
"a",
"file"
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/io/IOUtils.java#L162-L170 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/io/IOUtils.java | IOUtils.writeStringToFileNoExceptions | public static void writeStringToFileNoExceptions(String contents, String path, String encoding) {
OutputStream writer = null;
try{
if (path.endsWith(".gz")) {
writer = new GZIPOutputStream(new FileOutputStream(path));
} else {
writer = new BufferedOutputStream(new FileOutputStream(path));
}
... | java | public static void writeStringToFileNoExceptions(String contents, String path, String encoding) {
OutputStream writer = null;
try{
if (path.endsWith(".gz")) {
writer = new GZIPOutputStream(new FileOutputStream(path));
} else {
writer = new BufferedOutputStream(new FileOutputStream(path));
}
... | [
"public",
"static",
"void",
"writeStringToFileNoExceptions",
"(",
"String",
"contents",
",",
"String",
"path",
",",
"String",
"encoding",
")",
"{",
"OutputStream",
"writer",
"=",
"null",
";",
"try",
"{",
"if",
"(",
"path",
".",
"endsWith",
"(",
"\".gz\"",
")... | Writes a string to a file, squashing exceptions
@param contents The string to write
@param path The file path
@param encoding The encoding to encode in | [
"Writes",
"a",
"string",
"to",
"a",
"file",
"squashing",
"exceptions"
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/io/IOUtils.java#L190-L204 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/io/IOUtils.java | IOUtils.writeStringToTempFile | public static File writeStringToTempFile(String contents, String path, String encoding) throws IOException {
OutputStream writer = null;
File tmp = File.createTempFile(path,".tmp");
if (path.endsWith(".gz")) {
writer = new GZIPOutputStream(new FileOutputStream(tmp));
} else {
writer = new BufferedOu... | java | public static File writeStringToTempFile(String contents, String path, String encoding) throws IOException {
OutputStream writer = null;
File tmp = File.createTempFile(path,".tmp");
if (path.endsWith(".gz")) {
writer = new GZIPOutputStream(new FileOutputStream(tmp));
} else {
writer = new BufferedOu... | [
"public",
"static",
"File",
"writeStringToTempFile",
"(",
"String",
"contents",
",",
"String",
"path",
",",
"String",
"encoding",
")",
"throws",
"IOException",
"{",
"OutputStream",
"writer",
"=",
"null",
";",
"File",
"tmp",
"=",
"File",
".",
"createTempFile",
... | Writes a string to a temporary file
@param contents The string to write
@param path The file path
@param encoding The encoding to encode in
@throws IOException In case of failure | [
"Writes",
"a",
"string",
"to",
"a",
"temporary",
"file"
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/io/IOUtils.java#L224-L235 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/io/IOUtils.java | IOUtils.writeStringToTempFileNoExceptions | public static File writeStringToTempFileNoExceptions(String contents, String path, String encoding) {
OutputStream writer = null;
File tmp = null;
try{
tmp = File.createTempFile(path,".tmp");
if (path.endsWith(".gz")) {
writer = new GZIPOutputStream(new FileOutputStream(tmp));
} else {
wr... | java | public static File writeStringToTempFileNoExceptions(String contents, String path, String encoding) {
OutputStream writer = null;
File tmp = null;
try{
tmp = File.createTempFile(path,".tmp");
if (path.endsWith(".gz")) {
writer = new GZIPOutputStream(new FileOutputStream(tmp));
} else {
wr... | [
"public",
"static",
"File",
"writeStringToTempFileNoExceptions",
"(",
"String",
"contents",
",",
"String",
"path",
",",
"String",
"encoding",
")",
"{",
"OutputStream",
"writer",
"=",
"null",
";",
"File",
"tmp",
"=",
"null",
";",
"try",
"{",
"tmp",
"=",
"File... | Writes a string to a temporary file, squashing exceptions
@param contents The string to write
@param path The file path
@param encoding The encoding to encode in | [
"Writes",
"a",
"string",
"to",
"a",
"temporary",
"file",
"squashing",
"exceptions"
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/io/IOUtils.java#L255-L272 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/io/IOUtils.java | IOUtils.readObjectFromFileNoExceptions | public static <T> T readObjectFromFileNoExceptions(File file) {
Object o = null;
try {
ObjectInputStream ois = new ObjectInputStream(new BufferedInputStream(
new GZIPInputStream(new FileInputStream(file))));
o = ois.readObject();
ois.close();
} catch (IOException e) {
... | java | public static <T> T readObjectFromFileNoExceptions(File file) {
Object o = null;
try {
ObjectInputStream ois = new ObjectInputStream(new BufferedInputStream(
new GZIPInputStream(new FileInputStream(file))));
o = ois.readObject();
ois.close();
} catch (IOException e) {
... | [
"public",
"static",
"<",
"T",
">",
"T",
"readObjectFromFileNoExceptions",
"(",
"File",
"file",
")",
"{",
"Object",
"o",
"=",
"null",
";",
"try",
"{",
"ObjectInputStream",
"ois",
"=",
"new",
"ObjectInputStream",
"(",
"new",
"BufferedInputStream",
"(",
"new",
... | Read an object from a stored file without throwing exceptions.
@param file
the file pointing to the object to be retrieved
@return the object read from the file, or null if an exception occurred. | [
"Read",
"an",
"object",
"from",
"a",
"stored",
"file",
"without",
"throwing",
"exceptions",
"."
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/io/IOUtils.java#L335-L348 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/io/IOUtils.java | IOUtils.findStreamInClasspathOrFileSystem | private static InputStream findStreamInClasspathOrFileSystem(String fn) throws FileNotFoundException {
// ms 10-04-2010:
// - even though this may look like a regular file, it may be a path inside a jar in the CLASSPATH
// - check for this first. This takes precedence over the file system.
InputStre... | java | private static InputStream findStreamInClasspathOrFileSystem(String fn) throws FileNotFoundException {
// ms 10-04-2010:
// - even though this may look like a regular file, it may be a path inside a jar in the CLASSPATH
// - check for this first. This takes precedence over the file system.
InputStre... | [
"private",
"static",
"InputStream",
"findStreamInClasspathOrFileSystem",
"(",
"String",
"fn",
")",
"throws",
"FileNotFoundException",
"{",
"// ms 10-04-2010:\r",
"// - even though this may look like a regular file, it may be a path inside a jar in the CLASSPATH\r",
"// - check for this fir... | Locates this file either in the CLASSPATH or in the file system. The CLASSPATH takes priority
@param fn
@throws FileNotFoundException
if the file does not exist | [
"Locates",
"this",
"file",
"either",
"in",
"the",
"CLASSPATH",
"or",
"in",
"the",
"file",
"system",
".",
"The",
"CLASSPATH",
"takes",
"priority"
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/io/IOUtils.java#L388-L396 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/io/IOUtils.java | IOUtils.openFile | public static InputStream openFile(File file) throws RuntimeIOException {
try {
InputStream is = new BufferedInputStream(new FileInputStream(file));
if (file.getName().endsWith(".gz")) {
is = new GZIPInputStream(is);
}
return is;
} catch (Exception e) {
throw new Ru... | java | public static InputStream openFile(File file) throws RuntimeIOException {
try {
InputStream is = new BufferedInputStream(new FileInputStream(file));
if (file.getName().endsWith(".gz")) {
is = new GZIPInputStream(is);
}
return is;
} catch (Exception e) {
throw new Ru... | [
"public",
"static",
"InputStream",
"openFile",
"(",
"File",
"file",
")",
"throws",
"RuntimeIOException",
"{",
"try",
"{",
"InputStream",
"is",
"=",
"new",
"BufferedInputStream",
"(",
"new",
"FileInputStream",
"(",
"file",
")",
")",
";",
"if",
"(",
"file",
".... | Quietly opens a File. If the file ends with a ".gz" extension,
automatically opens a GZIPInputStream to wrap the constructed
FileInputStream. | [
"Quietly",
"opens",
"a",
"File",
".",
"If",
"the",
"file",
"ends",
"with",
"a",
".",
"gz",
"extension",
"automatically",
"opens",
"a",
"GZIPInputStream",
"to",
"wrap",
"the",
"constructed",
"FileInputStream",
"."
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/io/IOUtils.java#L572-L582 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/io/IOUtils.java | IOUtils.slurpFile | public static String slurpFile(String filename, String encoding)
throws IOException {
Reader r = new InputStreamReader(new FileInputStream(filename), encoding);
return IOUtils.slurpReader(r);
} | java | public static String slurpFile(String filename, String encoding)
throws IOException {
Reader r = new InputStreamReader(new FileInputStream(filename), encoding);
return IOUtils.slurpReader(r);
} | [
"public",
"static",
"String",
"slurpFile",
"(",
"String",
"filename",
",",
"String",
"encoding",
")",
"throws",
"IOException",
"{",
"Reader",
"r",
"=",
"new",
"InputStreamReader",
"(",
"new",
"FileInputStream",
"(",
"filename",
")",
",",
"encoding",
")",
";",
... | Returns all the text in the given file with the given encoding. | [
"Returns",
"all",
"the",
"text",
"in",
"the",
"given",
"file",
"with",
"the",
"given",
"encoding",
"."
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/io/IOUtils.java#L726-L730 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/io/IOUtils.java | IOUtils.slurpReader | public static String slurpReader(Reader reader) {
BufferedReader r = new BufferedReader(reader);
StringBuilder buff = new StringBuilder();
try {
char[] chars = new char[SLURPBUFFSIZE];
while (true) {
int amountRead = r.read(chars, 0, SLURPBUFFSIZE);
if (amountRead < 0) {
... | java | public static String slurpReader(Reader reader) {
BufferedReader r = new BufferedReader(reader);
StringBuilder buff = new StringBuilder();
try {
char[] chars = new char[SLURPBUFFSIZE];
while (true) {
int amountRead = r.read(chars, 0, SLURPBUFFSIZE);
if (amountRead < 0) {
... | [
"public",
"static",
"String",
"slurpReader",
"(",
"Reader",
"reader",
")",
"{",
"BufferedReader",
"r",
"=",
"new",
"BufferedReader",
"(",
"reader",
")",
";",
"StringBuilder",
"buff",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"try",
"{",
"char",
"[",
"]",... | Returns all the text from the given Reader.
@return The text in the file. | [
"Returns",
"all",
"the",
"text",
"from",
"the",
"given",
"Reader",
"."
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/io/IOUtils.java#L903-L920 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/io/IOUtils.java | IOUtils.writeStreamToStream | public static void writeStreamToStream(InputStream input, OutputStream output)
throws IOException {
byte[] buffer = new byte[4096];
while (true) {
int len = input.read(buffer);
if (len == -1) {
break;
}
output.write(buffer, 0, len);
}
} | java | public static void writeStreamToStream(InputStream input, OutputStream output)
throws IOException {
byte[] buffer = new byte[4096];
while (true) {
int len = input.read(buffer);
if (len == -1) {
break;
}
output.write(buffer, 0, len);
}
} | [
"public",
"static",
"void",
"writeStreamToStream",
"(",
"InputStream",
"input",
",",
"OutputStream",
"output",
")",
"throws",
"IOException",
"{",
"byte",
"[",
"]",
"buffer",
"=",
"new",
"byte",
"[",
"4096",
"]",
";",
"while",
"(",
"true",
")",
"{",
"int",
... | Send all bytes from the input stream to the output stream.
@param input
The input bytes.
@param output
Where the bytes should be written. | [
"Send",
"all",
"bytes",
"from",
"the",
"input",
"stream",
"to",
"the",
"output",
"stream",
"."
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/io/IOUtils.java#L930-L940 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/io/IOUtils.java | IOUtils.readCSVWithHeader | public static List<Map<String,String>> readCSVWithHeader(String path, char quoteChar, char escapeChar) throws IOException {
String[] labels = null;
List<Map<String,String>> rows = Generics.newArrayList();
for (String line : IOUtils.readLines(path)) {
System.out.println("Splitting "+line);
i... | java | public static List<Map<String,String>> readCSVWithHeader(String path, char quoteChar, char escapeChar) throws IOException {
String[] labels = null;
List<Map<String,String>> rows = Generics.newArrayList();
for (String line : IOUtils.readLines(path)) {
System.out.println("Splitting "+line);
i... | [
"public",
"static",
"List",
"<",
"Map",
"<",
"String",
",",
"String",
">",
">",
"readCSVWithHeader",
"(",
"String",
"path",
",",
"char",
"quoteChar",
",",
"char",
"escapeChar",
")",
"throws",
"IOException",
"{",
"String",
"[",
"]",
"labels",
"=",
"null",
... | Read in a CSV formatted file with a header row
@param path - path to CSV file
@param quoteChar - character for enclosing strings, defaults to "
@param escapeChar - character for escaping quotes appearing in quoted strings; defaults to " (i.e. "" is used for " inside quotes, consistent with Excel)
@return a list of maps... | [
"Read",
"in",
"a",
"CSV",
"formatted",
"file",
"with",
"a",
"header",
"row"
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/io/IOUtils.java#L950-L966 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/io/IOUtils.java | IOUtils.readColumnSet | public static Set<String> readColumnSet(String infile, int field) throws IOException
{
BufferedReader br = IOUtils.getBufferedFileReader(infile);
String line;
Set<String> set = new HashSet<String>();
while ((line = br.readLine()) != null) {
line = line.trim();
if (line.length() > 0)... | java | public static Set<String> readColumnSet(String infile, int field) throws IOException
{
BufferedReader br = IOUtils.getBufferedFileReader(infile);
String line;
Set<String> set = new HashSet<String>();
while ((line = br.readLine()) != null) {
line = line.trim();
if (line.length() > 0)... | [
"public",
"static",
"Set",
"<",
"String",
">",
"readColumnSet",
"(",
"String",
"infile",
",",
"int",
"field",
")",
"throws",
"IOException",
"{",
"BufferedReader",
"br",
"=",
"IOUtils",
".",
"getBufferedFileReader",
"(",
"infile",
")",
";",
"String",
"line",
... | Read column as set
@param infile - filename
@param field index of field to read
@return a set of the entries in column field
@throws IOException | [
"Read",
"column",
"as",
"set"
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/io/IOUtils.java#L1126-L1146 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/io/IOUtils.java | IOUtils.stringFromFile | public static String stringFromFile(String filename, String encoding) {
try {
StringBuilder sb = new StringBuilder();
BufferedReader in = new BufferedReader(new EncodingFileReader(filename,encoding));
String line;
while ((line = in.readLine()) != null) {
sb.append(line);
... | java | public static String stringFromFile(String filename, String encoding) {
try {
StringBuilder sb = new StringBuilder();
BufferedReader in = new BufferedReader(new EncodingFileReader(filename,encoding));
String line;
while ((line = in.readLine()) != null) {
sb.append(line);
... | [
"public",
"static",
"String",
"stringFromFile",
"(",
"String",
"filename",
",",
"String",
"encoding",
")",
"{",
"try",
"{",
"StringBuilder",
"sb",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"BufferedReader",
"in",
"=",
"new",
"BufferedReader",
"(",
"new",
"... | Returns the contents of a file as a single string. The string may be
empty, if the file is empty. If there is an IOException, it is caught
and null is returned. Encoding can also be specified. | [
"Returns",
"the",
"contents",
"of",
"a",
"file",
"as",
"a",
"single",
"string",
".",
"The",
"string",
"may",
"be",
"empty",
"if",
"the",
"file",
"is",
"empty",
".",
"If",
"there",
"is",
"an",
"IOException",
"it",
"is",
"caught",
"and",
"null",
"is",
... | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/io/IOUtils.java#L1198-L1214 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/io/IOUtils.java | IOUtils.linesFromFile | public static List<String> linesFromFile(String filename,String encoding) {
try {
List<String> lines = new ArrayList<String>();
BufferedReader in = new BufferedReader(new EncodingFileReader(filename,encoding));
String line;
while ((line = in.readLine()) != null) {
lines.add(lin... | java | public static List<String> linesFromFile(String filename,String encoding) {
try {
List<String> lines = new ArrayList<String>();
BufferedReader in = new BufferedReader(new EncodingFileReader(filename,encoding));
String line;
while ((line = in.readLine()) != null) {
lines.add(lin... | [
"public",
"static",
"List",
"<",
"String",
">",
"linesFromFile",
"(",
"String",
"filename",
",",
"String",
"encoding",
")",
"{",
"try",
"{",
"List",
"<",
"String",
">",
"lines",
"=",
"new",
"ArrayList",
"<",
"String",
">",
"(",
")",
";",
"BufferedReader"... | Returns the contents of a file as a list of strings. The list may be
empty, if the file is empty. If there is an IOException, it is caught
and null is returned. Encoding can also be specified | [
"Returns",
"the",
"contents",
"of",
"a",
"file",
"as",
"a",
"list",
"of",
"strings",
".",
"The",
"list",
"may",
"be",
"empty",
"if",
"the",
"file",
"is",
"empty",
".",
"If",
"there",
"is",
"an",
"IOException",
"it",
"is",
"caught",
"and",
"null",
"is... | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/io/IOUtils.java#L1231-L1246 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/io/IOUtils.java | IOUtils.getJNLPLocalScratch | public static File getJNLPLocalScratch() {
try {
String machineName = InetAddress.getLocalHost().getHostName().split("\\.")[0];
String username = System.getProperty("user.name");
return new File("/"+machineName+"/scr1/"+username);
} catch (Exception e) {
return new File("./scr/");... | java | public static File getJNLPLocalScratch() {
try {
String machineName = InetAddress.getLocalHost().getHostName().split("\\.")[0];
String username = System.getProperty("user.name");
return new File("/"+machineName+"/scr1/"+username);
} catch (Exception e) {
return new File("./scr/");... | [
"public",
"static",
"File",
"getJNLPLocalScratch",
"(",
")",
"{",
"try",
"{",
"String",
"machineName",
"=",
"InetAddress",
".",
"getLocalHost",
"(",
")",
".",
"getHostName",
"(",
")",
".",
"split",
"(",
"\"\\\\.\"",
")",
"[",
"0",
"]",
";",
"String",
"us... | A JavaNLP specific convenience routine for obtaining the current
scratch directory for the machine you're currently running on. | [
"A",
"JavaNLP",
"specific",
"convenience",
"routine",
"for",
"obtaining",
"the",
"current",
"scratch",
"directory",
"for",
"the",
"machine",
"you",
"re",
"currently",
"running",
"on",
"."
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/io/IOUtils.java#L1273-L1281 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/io/IOUtils.java | IOUtils.ensureDir | public static File ensureDir(File tgtDir) throws Exception {
if (tgtDir.exists()) {
if (tgtDir.isDirectory()) return tgtDir;
else
throw new Exception("Could not create directory "+tgtDir.getAbsolutePath()+", as a file already exists at that path.");
} else {
tgtDir.mkdirs();
... | java | public static File ensureDir(File tgtDir) throws Exception {
if (tgtDir.exists()) {
if (tgtDir.isDirectory()) return tgtDir;
else
throw new Exception("Could not create directory "+tgtDir.getAbsolutePath()+", as a file already exists at that path.");
} else {
tgtDir.mkdirs();
... | [
"public",
"static",
"File",
"ensureDir",
"(",
"File",
"tgtDir",
")",
"throws",
"Exception",
"{",
"if",
"(",
"tgtDir",
".",
"exists",
"(",
")",
")",
"{",
"if",
"(",
"tgtDir",
".",
"isDirectory",
"(",
")",
")",
"return",
"tgtDir",
";",
"else",
"throw",
... | Given a filepath, makes sure a directory exists there. If not, creates and returns it.
Same as ENSURE-DIRECTORY in CL.
@throws Exception | [
"Given",
"a",
"filepath",
"makes",
"sure",
"a",
"directory",
"exists",
"there",
".",
"If",
"not",
"creates",
"and",
"returns",
"it",
".",
"Same",
"as",
"ENSURE",
"-",
"DIRECTORY",
"in",
"CL",
"."
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/io/IOUtils.java#L1288-L1297 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/util/ArrayCoreMap.java | ArrayCoreMap.compact | public void compact() {
if (keys.length > size) {
Class<?>[] newKeys = new Class<?>[size];
Object[] newVals = new Object[size];
System.arraycopy(keys, 0, newKeys, 0, size);
System.arraycopy(values, 0, newVals, 0, size);
keys = newKeys;
values = newVals;
}
} | java | public void compact() {
if (keys.length > size) {
Class<?>[] newKeys = new Class<?>[size];
Object[] newVals = new Object[size];
System.arraycopy(keys, 0, newKeys, 0, size);
System.arraycopy(values, 0, newVals, 0, size);
keys = newKeys;
values = newVals;
}
} | [
"public",
"void",
"compact",
"(",
")",
"{",
"if",
"(",
"keys",
".",
"length",
">",
"size",
")",
"{",
"Class",
"<",
"?",
">",
"[",
"]",
"newKeys",
"=",
"new",
"Class",
"<",
"?",
">",
"[",
"size",
"]",
";",
"Object",
"[",
"]",
"newVals",
"=",
"... | Reduces memory consumption to the minimum for representing the values
currently stored stored in this object. | [
"Reduces",
"memory",
"consumption",
"to",
"the",
"minimum",
"for",
"representing",
"the",
"values",
"currently",
"stored",
"stored",
"in",
"this",
"object",
"."
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/util/ArrayCoreMap.java#L258-L267 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/network/route.java | route.add | public static base_response add(nitro_service client, route resource) throws Exception {
route addresource = new route();
addresource.network = resource.network;
addresource.netmask = resource.netmask;
addresource.gateway = resource.gateway;
addresource.cost = resource.cost;
addresource.td = resource.td;
... | java | public static base_response add(nitro_service client, route resource) throws Exception {
route addresource = new route();
addresource.network = resource.network;
addresource.netmask = resource.netmask;
addresource.gateway = resource.gateway;
addresource.cost = resource.cost;
addresource.td = resource.td;
... | [
"public",
"static",
"base_response",
"add",
"(",
"nitro_service",
"client",
",",
"route",
"resource",
")",
"throws",
"Exception",
"{",
"route",
"addresource",
"=",
"new",
"route",
"(",
")",
";",
"addresource",
".",
"network",
"=",
"resource",
".",
"network",
... | Use this API to add route. | [
"Use",
"this",
"API",
"to",
"add",
"route",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/network/route.java#L717-L732 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/network/route.java | route.add | public static base_responses add(nitro_service client, route resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
route addresources[] = new route[resources.length];
for (int i=0;i<resources.length;i++){
addresources[i] = new route();
addresour... | java | public static base_responses add(nitro_service client, route resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
route addresources[] = new route[resources.length];
for (int i=0;i<resources.length;i++){
addresources[i] = new route();
addresour... | [
"public",
"static",
"base_responses",
"add",
"(",
"nitro_service",
"client",
",",
"route",
"resources",
"[",
"]",
")",
"throws",
"Exception",
"{",
"base_responses",
"result",
"=",
"null",
";",
"if",
"(",
"resources",
"!=",
"null",
"&&",
"resources",
".",
"le... | Use this API to add route resources. | [
"Use",
"this",
"API",
"to",
"add",
"route",
"resources",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/network/route.java#L737-L759 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/network/route.java | route.delete | public static base_response delete(nitro_service client, route resource) throws Exception {
route deleteresource = new route();
deleteresource.network = resource.network;
deleteresource.netmask = resource.netmask;
deleteresource.gateway = resource.gateway;
deleteresource.td = resource.td;
return deleteresou... | java | public static base_response delete(nitro_service client, route resource) throws Exception {
route deleteresource = new route();
deleteresource.network = resource.network;
deleteresource.netmask = resource.netmask;
deleteresource.gateway = resource.gateway;
deleteresource.td = resource.td;
return deleteresou... | [
"public",
"static",
"base_response",
"delete",
"(",
"nitro_service",
"client",
",",
"route",
"resource",
")",
"throws",
"Exception",
"{",
"route",
"deleteresource",
"=",
"new",
"route",
"(",
")",
";",
"deleteresource",
".",
"network",
"=",
"resource",
".",
"ne... | Use this API to delete route. | [
"Use",
"this",
"API",
"to",
"delete",
"route",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/network/route.java#L798-L805 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/network/route.java | route.delete | public static base_responses delete(nitro_service client, route resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
route deleteresources[] = new route[resources.length];
for (int i=0;i<resources.length;i++){
deleteresources[i] = new route();
... | java | public static base_responses delete(nitro_service client, route resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
route deleteresources[] = new route[resources.length];
for (int i=0;i<resources.length;i++){
deleteresources[i] = new route();
... | [
"public",
"static",
"base_responses",
"delete",
"(",
"nitro_service",
"client",
",",
"route",
"resources",
"[",
"]",
")",
"throws",
"Exception",
"{",
"base_responses",
"result",
"=",
"null",
";",
"if",
"(",
"resources",
"!=",
"null",
"&&",
"resources",
".",
... | Use this API to delete route resources. | [
"Use",
"this",
"API",
"to",
"delete",
"route",
"resources",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/network/route.java#L826-L840 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/network/route.java | route.update | public static base_response update(nitro_service client, route resource) throws Exception {
route updateresource = new route();
updateresource.network = resource.network;
updateresource.netmask = resource.netmask;
updateresource.gateway = resource.gateway;
updateresource.td = resource.td;
updateresource.dis... | java | public static base_response update(nitro_service client, route resource) throws Exception {
route updateresource = new route();
updateresource.network = resource.network;
updateresource.netmask = resource.netmask;
updateresource.gateway = resource.gateway;
updateresource.td = resource.td;
updateresource.dis... | [
"public",
"static",
"base_response",
"update",
"(",
"nitro_service",
"client",
",",
"route",
"resource",
")",
"throws",
"Exception",
"{",
"route",
"updateresource",
"=",
"new",
"route",
"(",
")",
";",
"updateresource",
".",
"network",
"=",
"resource",
".",
"ne... | Use this API to update route. | [
"Use",
"this",
"API",
"to",
"update",
"route",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/network/route.java#L845-L859 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/network/route.java | route.update | public static base_responses update(nitro_service client, route resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
route updateresources[] = new route[resources.length];
for (int i=0;i<resources.length;i++){
updateresources[i] = new route();
... | java | public static base_responses update(nitro_service client, route resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
route updateresources[] = new route[resources.length];
for (int i=0;i<resources.length;i++){
updateresources[i] = new route();
... | [
"public",
"static",
"base_responses",
"update",
"(",
"nitro_service",
"client",
",",
"route",
"resources",
"[",
"]",
")",
"throws",
"Exception",
"{",
"base_responses",
"result",
"=",
"null",
";",
"if",
"(",
"resources",
"!=",
"null",
"&&",
"resources",
".",
... | Use this API to update route resources. | [
"Use",
"this",
"API",
"to",
"update",
"route",
"resources",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/network/route.java#L864-L885 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/network/route.java | route.unset | public static base_response unset(nitro_service client, route resource, String[] args) throws Exception{
route unsetresource = new route();
unsetresource.network = resource.network;
unsetresource.netmask = resource.netmask;
unsetresource.gateway = resource.gateway;
unsetresource.td = resource.td;
return uns... | java | public static base_response unset(nitro_service client, route resource, String[] args) throws Exception{
route unsetresource = new route();
unsetresource.network = resource.network;
unsetresource.netmask = resource.netmask;
unsetresource.gateway = resource.gateway;
unsetresource.td = resource.td;
return uns... | [
"public",
"static",
"base_response",
"unset",
"(",
"nitro_service",
"client",
",",
"route",
"resource",
",",
"String",
"[",
"]",
"args",
")",
"throws",
"Exception",
"{",
"route",
"unsetresource",
"=",
"new",
"route",
"(",
")",
";",
"unsetresource",
".",
"net... | Use this API to unset the properties of route resource.
Properties that need to be unset are specified in args array. | [
"Use",
"this",
"API",
"to",
"unset",
"the",
"properties",
"of",
"route",
"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/route.java#L891-L898 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/network/route.java | route.get | public static route[] get(nitro_service service, options option) throws Exception{
route obj = new route();
route[] response = (route[])obj.get_resources(service,option);
return response;
} | java | public static route[] get(nitro_service service, options option) throws Exception{
route obj = new route();
route[] response = (route[])obj.get_resources(service,option);
return response;
} | [
"public",
"static",
"route",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"options",
"option",
")",
"throws",
"Exception",
"{",
"route",
"obj",
"=",
"new",
"route",
"(",
")",
";",
"route",
"[",
"]",
"response",
"=",
"(",
"route",
"[",
"]",
... | Use this API to fetch all the route resources that are configured on netscaler. | [
"Use",
"this",
"API",
"to",
"fetch",
"all",
"the",
"route",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/network/route.java#L931-L935 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/network/route.java | route.get | public static route[] get(nitro_service service, route_args args) throws Exception{
route obj = new route();
options option = new options();
option.set_args(nitro_util.object_to_string_withoutquotes(args));
route[] response = (route[])obj.get_resources(service, option);
return response;
} | java | public static route[] get(nitro_service service, route_args args) throws Exception{
route obj = new route();
options option = new options();
option.set_args(nitro_util.object_to_string_withoutquotes(args));
route[] response = (route[])obj.get_resources(service, option);
return response;
} | [
"public",
"static",
"route",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"route_args",
"args",
")",
"throws",
"Exception",
"{",
"route",
"obj",
"=",
"new",
"route",
"(",
")",
";",
"options",
"option",
"=",
"new",
"options",
"(",
")",
";",
"o... | Use this API to fetch all the route resources that are configured on netscaler.
This uses route_args which is a way to provide additional arguments while fetching the resources. | [
"Use",
"this",
"API",
"to",
"fetch",
"all",
"the",
"route",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
".",
"This",
"uses",
"route_args",
"which",
"is",
"a",
"way",
"to",
"provide",
"additional",
"arguments",
"while",
"fetching",
"the",
"re... | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/network/route.java#L965-L971 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nsappflowcollector.java | nsappflowcollector.add | public static base_response add(nitro_service client, nsappflowcollector resource) throws Exception {
nsappflowcollector addresource = new nsappflowcollector();
addresource.name = resource.name;
addresource.ipaddress = resource.ipaddress;
addresource.port = resource.port;
return addresource.add_resource(clien... | java | public static base_response add(nitro_service client, nsappflowcollector resource) throws Exception {
nsappflowcollector addresource = new nsappflowcollector();
addresource.name = resource.name;
addresource.ipaddress = resource.ipaddress;
addresource.port = resource.port;
return addresource.add_resource(clien... | [
"public",
"static",
"base_response",
"add",
"(",
"nitro_service",
"client",
",",
"nsappflowcollector",
"resource",
")",
"throws",
"Exception",
"{",
"nsappflowcollector",
"addresource",
"=",
"new",
"nsappflowcollector",
"(",
")",
";",
"addresource",
".",
"name",
"=",... | Use this API to add nsappflowcollector. | [
"Use",
"this",
"API",
"to",
"add",
"nsappflowcollector",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nsappflowcollector.java#L140-L146 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nsappflowcollector.java | nsappflowcollector.get | public static nsappflowcollector[] get(nitro_service service) throws Exception{
nsappflowcollector obj = new nsappflowcollector();
nsappflowcollector[] response = (nsappflowcollector[])obj.get_resources(service);
return response;
} | java | public static nsappflowcollector[] get(nitro_service service) throws Exception{
nsappflowcollector obj = new nsappflowcollector();
nsappflowcollector[] response = (nsappflowcollector[])obj.get_resources(service);
return response;
} | [
"public",
"static",
"nsappflowcollector",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
")",
"throws",
"Exception",
"{",
"nsappflowcollector",
"obj",
"=",
"new",
"nsappflowcollector",
"(",
")",
";",
"nsappflowcollector",
"[",
"]",
"response",
"=",
"(",
"nsap... | Use this API to fetch all the nsappflowcollector resources that are configured on netscaler. | [
"Use",
"this",
"API",
"to",
"fetch",
"all",
"the",
"nsappflowcollector",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nsappflowcollector.java#L219-L223 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nsappflowcollector.java | nsappflowcollector.get | public static nsappflowcollector get(nitro_service service, String name) throws Exception{
nsappflowcollector obj = new nsappflowcollector();
obj.set_name(name);
nsappflowcollector response = (nsappflowcollector) obj.get_resource(service);
return response;
} | java | public static nsappflowcollector get(nitro_service service, String name) throws Exception{
nsappflowcollector obj = new nsappflowcollector();
obj.set_name(name);
nsappflowcollector response = (nsappflowcollector) obj.get_resource(service);
return response;
} | [
"public",
"static",
"nsappflowcollector",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"nsappflowcollector",
"obj",
"=",
"new",
"nsappflowcollector",
"(",
")",
";",
"obj",
".",
"set_name",
"(",
"name",
")",
";... | Use this API to fetch nsappflowcollector resource of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"nsappflowcollector",
"resource",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nsappflowcollector.java#L235-L240 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/ie/pascal/PascalTemplate.java | PascalTemplate.setValue | public void setValue(String fieldName, String value) {
int index = getFieldIndex(fieldName);
assert(index != -1);
values[index] = value;
} | java | public void setValue(String fieldName, String value) {
int index = getFieldIndex(fieldName);
assert(index != -1);
values[index] = value;
} | [
"public",
"void",
"setValue",
"(",
"String",
"fieldName",
",",
"String",
"value",
")",
"{",
"int",
"index",
"=",
"getFieldIndex",
"(",
"fieldName",
")",
";",
"assert",
"(",
"index",
"!=",
"-",
"1",
")",
";",
"values",
"[",
"index",
"]",
"=",
"value",
... | Sets template values.
@param fieldName (i.e. workshopname, workshopdate) | [
"Sets",
"template",
"values",
"."
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/ie/pascal/PascalTemplate.java#L149-L153 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/system/systemcountergroup.java | systemcountergroup.get | public static systemcountergroup get(nitro_service service) throws Exception{
systemcountergroup obj = new systemcountergroup();
systemcountergroup[] response = (systemcountergroup[])obj.get_resources(service);
return response[0];
} | java | public static systemcountergroup get(nitro_service service) throws Exception{
systemcountergroup obj = new systemcountergroup();
systemcountergroup[] response = (systemcountergroup[])obj.get_resources(service);
return response[0];
} | [
"public",
"static",
"systemcountergroup",
"get",
"(",
"nitro_service",
"service",
")",
"throws",
"Exception",
"{",
"systemcountergroup",
"obj",
"=",
"new",
"systemcountergroup",
"(",
")",
";",
"systemcountergroup",
"[",
"]",
"response",
"=",
"(",
"systemcountergroup... | Use this API to fetch all the systemcountergroup resources that are configured on netscaler. | [
"Use",
"this",
"API",
"to",
"fetch",
"all",
"the",
"systemcountergroup",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/system/systemcountergroup.java#L107-L111 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/system/systemcountergroup.java | systemcountergroup.get | public static systemcountergroup[] get(nitro_service service, systemcountergroup_args args) throws Exception{
systemcountergroup obj = new systemcountergroup();
options option = new options();
option.set_args(nitro_util.object_to_string_withoutquotes(args));
systemcountergroup[] response = (systemcountergroup[]... | java | public static systemcountergroup[] get(nitro_service service, systemcountergroup_args args) throws Exception{
systemcountergroup obj = new systemcountergroup();
options option = new options();
option.set_args(nitro_util.object_to_string_withoutquotes(args));
systemcountergroup[] response = (systemcountergroup[]... | [
"public",
"static",
"systemcountergroup",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"systemcountergroup_args",
"args",
")",
"throws",
"Exception",
"{",
"systemcountergroup",
"obj",
"=",
"new",
"systemcountergroup",
"(",
")",
";",
"options",
"option",
... | Use this API to fetch all the systemcountergroup resources that are configured on netscaler.
This uses systemcountergroup_args which is a way to provide additional arguments while fetching the resources. | [
"Use",
"this",
"API",
"to",
"fetch",
"all",
"the",
"systemcountergroup",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
".",
"This",
"uses",
"systemcountergroup_args",
"which",
"is",
"a",
"way",
"to",
"provide",
"additional",
"arguments",
"while",
... | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/system/systemcountergroup.java#L126-L132 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/trees/tregex/Relation.java | Relation.getRelation | static Relation getRelation(String s, String arg,
Function<String,String> basicCatFunction,
HeadFinder headFinder)
throws ParseException
{
if (arg == null) {
return getRelation(s, basicCatFunction, headFinder);
}
Relation r;
... | java | static Relation getRelation(String s, String arg,
Function<String,String> basicCatFunction,
HeadFinder headFinder)
throws ParseException
{
if (arg == null) {
return getRelation(s, basicCatFunction, headFinder);
}
Relation r;
... | [
"static",
"Relation",
"getRelation",
"(",
"String",
"s",
",",
"String",
"arg",
",",
"Function",
"<",
"String",
",",
"String",
">",
"basicCatFunction",
",",
"HeadFinder",
"headFinder",
")",
"throws",
"ParseException",
"{",
"if",
"(",
"arg",
"==",
"null",
")",... | Static factory method for relations requiring an argument, including
HAS_ITH_CHILD, ITH_CHILD_OF, UNBROKEN_CATEGORY_DOMINATES,
UNBROKEN_CATEGORY_DOMINATED_BY.
@param s The String representation of the relation
@param arg The argument to the relation, as a string; could be a node
description or an integer
@return The s... | [
"Static",
"factory",
"method",
"for",
"relations",
"requiring",
"an",
"argument",
"including",
"HAS_ITH_CHILD",
"ITH_CHILD_OF",
"UNBROKEN_CATEGORY_DOMINATES",
"UNBROKEN_CATEGORY_DOMINATED_BY",
"."
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/trees/tregex/Relation.java#L135-L161 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/process/AbstractTokenizer.java | AbstractTokenizer.next | public T next() {
if (nextToken == null) {
nextToken = getNext();
}
T result = nextToken;
nextToken = null;
if (result == null) {
throw new NoSuchElementException();
}
return result;
} | java | public T next() {
if (nextToken == null) {
nextToken = getNext();
}
T result = nextToken;
nextToken = null;
if (result == null) {
throw new NoSuchElementException();
}
return result;
} | [
"public",
"T",
"next",
"(",
")",
"{",
"if",
"(",
"nextToken",
"==",
"null",
")",
"{",
"nextToken",
"=",
"getNext",
"(",
")",
";",
"}",
"T",
"result",
"=",
"nextToken",
";",
"nextToken",
"=",
"null",
";",
"if",
"(",
"result",
"==",
"null",
")",
"{... | Returns the next token from this Tokenizer.
@return the next token in the token stream.
@throws java.util.NoSuchElementException
if the token stream has no more tokens. | [
"Returns",
"the",
"next",
"token",
"from",
"this",
"Tokenizer",
"."
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/process/AbstractTokenizer.java#L36-L46 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/process/AbstractTokenizer.java | AbstractTokenizer.peek | public T peek() {
if (nextToken == null) {
nextToken = getNext();
}
if (nextToken == null) {
throw new NoSuchElementException();
}
return nextToken;
} | java | public T peek() {
if (nextToken == null) {
nextToken = getNext();
}
if (nextToken == null) {
throw new NoSuchElementException();
}
return nextToken;
} | [
"public",
"T",
"peek",
"(",
")",
"{",
"if",
"(",
"nextToken",
"==",
"null",
")",
"{",
"nextToken",
"=",
"getNext",
"(",
")",
";",
"}",
"if",
"(",
"nextToken",
"==",
"null",
")",
"{",
"throw",
"new",
"NoSuchElementException",
"(",
")",
";",
"}",
"re... | This is an optional operation, by default supported.
@return The next token in the token stream.
@throws java.util.NoSuchElementException
if the token stream has no more tokens. | [
"This",
"is",
"an",
"optional",
"operation",
"by",
"default",
"supported",
"."
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/process/AbstractTokenizer.java#L72-L80 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/process/AbstractTokenizer.java | AbstractTokenizer.tokenize | public List<T> tokenize() {
// System.out.println("tokenize called");
List<T> result = new ArrayList<T>();
while (hasNext()) {
result.add(next());
}
return result;
} | java | public List<T> tokenize() {
// System.out.println("tokenize called");
List<T> result = new ArrayList<T>();
while (hasNext()) {
result.add(next());
}
return result;
} | [
"public",
"List",
"<",
"T",
">",
"tokenize",
"(",
")",
"{",
"// System.out.println(\"tokenize called\");\r",
"List",
"<",
"T",
">",
"result",
"=",
"new",
"ArrayList",
"<",
"T",
">",
"(",
")",
";",
"while",
"(",
"hasNext",
"(",
")",
")",
"{",
"result",
... | Returns text as a List of tokens.
@return A list of all tokens remaining in the underlying Reader | [
"Returns",
"text",
"as",
"a",
"List",
"of",
"tokens",
"."
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/process/AbstractTokenizer.java#L87-L94 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/lb/lbvserver_transformpolicy_binding.java | lbvserver_transformpolicy_binding.get | public static lbvserver_transformpolicy_binding[] get(nitro_service service, String name) throws Exception{
lbvserver_transformpolicy_binding obj = new lbvserver_transformpolicy_binding();
obj.set_name(name);
lbvserver_transformpolicy_binding response[] = (lbvserver_transformpolicy_binding[]) obj.get_resources(se... | java | public static lbvserver_transformpolicy_binding[] get(nitro_service service, String name) throws Exception{
lbvserver_transformpolicy_binding obj = new lbvserver_transformpolicy_binding();
obj.set_name(name);
lbvserver_transformpolicy_binding response[] = (lbvserver_transformpolicy_binding[]) obj.get_resources(se... | [
"public",
"static",
"lbvserver_transformpolicy_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"lbvserver_transformpolicy_binding",
"obj",
"=",
"new",
"lbvserver_transformpolicy_binding",
"(",
")",
";",... | Use this API to fetch lbvserver_transformpolicy_binding resources of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"lbvserver_transformpolicy_binding",
"resources",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/lb/lbvserver_transformpolicy_binding.java#L306-L311 | train |
meertensinstituut/mtas | src/main/java/mtas/solr/handler/component/util/MtasSolrResultUtil.java | MtasSolrResultUtil.rewriteToArray | private static ArrayList<NamedList<Object>> rewriteToArray(
NamedList<Object> nnl) {
ArrayList<NamedList<Object>> al = new ArrayList<>();
String key;
Iterator<Entry<String, Object>> it = nnl.iterator();
while (it.hasNext()) {
Entry<String, Object> entry = it.next();
NamedList<Object> i... | java | private static ArrayList<NamedList<Object>> rewriteToArray(
NamedList<Object> nnl) {
ArrayList<NamedList<Object>> al = new ArrayList<>();
String key;
Iterator<Entry<String, Object>> it = nnl.iterator();
while (it.hasNext()) {
Entry<String, Object> entry = it.next();
NamedList<Object> i... | [
"private",
"static",
"ArrayList",
"<",
"NamedList",
"<",
"Object",
">",
">",
"rewriteToArray",
"(",
"NamedList",
"<",
"Object",
">",
"nnl",
")",
"{",
"ArrayList",
"<",
"NamedList",
"<",
"Object",
">>",
"al",
"=",
"new",
"ArrayList",
"<>",
"(",
")",
";",
... | Rewrite to array.
@param nnl the nnl
@return the array list | [
"Rewrite",
"to",
"array",
"."
] | f02ae730848616bd88b553efa7f9eddc32818e64 | https://github.com/meertensinstituut/mtas/blob/f02ae730848616bd88b553efa7f9eddc32818e64/src/main/java/mtas/solr/handler/component/util/MtasSolrResultUtil.java#L184-L203 | train |
meertensinstituut/mtas | src/main/java/mtas/solr/handler/component/util/MtasSolrResultUtil.java | MtasSolrResultUtil.rewriteMergeList | @SuppressWarnings({ "unchecked", "unused" })
private static void rewriteMergeList(String key, String subKey,
NamedList<Object> snl, NamedList<Object> tnl) {
for (int i = 0; i < tnl.size(); i++) {
Object item = snl.get(tnl.getName(i));
if (item != null && tnl.getVal(i) instanceof NamedList) {
... | java | @SuppressWarnings({ "unchecked", "unused" })
private static void rewriteMergeList(String key, String subKey,
NamedList<Object> snl, NamedList<Object> tnl) {
for (int i = 0; i < tnl.size(); i++) {
Object item = snl.get(tnl.getName(i));
if (item != null && tnl.getVal(i) instanceof NamedList) {
... | [
"@",
"SuppressWarnings",
"(",
"{",
"\"unchecked\"",
",",
"\"unused\"",
"}",
")",
"private",
"static",
"void",
"rewriteMergeList",
"(",
"String",
"key",
",",
"String",
"subKey",
",",
"NamedList",
"<",
"Object",
">",
"snl",
",",
"NamedList",
"<",
"Object",
">"... | Rewrite merge list.
@param key the key
@param subKey the sub key
@param snl the snl
@param tnl the tnl | [
"Rewrite",
"merge",
"list",
"."
] | f02ae730848616bd88b553efa7f9eddc32818e64 | https://github.com/meertensinstituut/mtas/blob/f02ae730848616bd88b553efa7f9eddc32818e64/src/main/java/mtas/solr/handler/component/util/MtasSolrResultUtil.java#L213-L231 | train |
meertensinstituut/mtas | src/main/java/mtas/solr/handler/component/util/MtasSolrResultUtil.java | MtasSolrResultUtil.rewriteMergeData | @SuppressWarnings({ "unused", "unchecked" })
private static void rewriteMergeData(String key, String subKey,
NamedList<Object> snl, NamedList<Object> tnl) {
if (snl != null) {
Object o = tnl.get(key);
NamedList<Object> tnnnl;
if (o != null && o instanceof NamedList) {
tnnnl = (Name... | java | @SuppressWarnings({ "unused", "unchecked" })
private static void rewriteMergeData(String key, String subKey,
NamedList<Object> snl, NamedList<Object> tnl) {
if (snl != null) {
Object o = tnl.get(key);
NamedList<Object> tnnnl;
if (o != null && o instanceof NamedList) {
tnnnl = (Name... | [
"@",
"SuppressWarnings",
"(",
"{",
"\"unused\"",
",",
"\"unchecked\"",
"}",
")",
"private",
"static",
"void",
"rewriteMergeData",
"(",
"String",
"key",
",",
"String",
"subKey",
",",
"NamedList",
"<",
"Object",
">",
"snl",
",",
"NamedList",
"<",
"Object",
">"... | Rewrite merge data.
@param key the key
@param subKey the sub key
@param snl the snl
@param tnl the tnl | [
"Rewrite",
"merge",
"data",
"."
] | f02ae730848616bd88b553efa7f9eddc32818e64 | https://github.com/meertensinstituut/mtas/blob/f02ae730848616bd88b553efa7f9eddc32818e64/src/main/java/mtas/solr/handler/component/util/MtasSolrResultUtil.java#L241-L255 | train |
meertensinstituut/mtas | src/main/java/mtas/solr/handler/component/util/MtasSolrResultUtil.java | MtasSolrResultUtil.getIdsFromParameters | public static SortedSet<String> getIdsFromParameters(SolrParams params,
String prefix) {
SortedSet<String> ids = new TreeSet<>();
Iterator<String> it = params.getParameterNamesIterator();
Pattern pattern = Pattern
.compile("^" + Pattern.quote(prefix) + "\\.([^\\.]+)(\\..*|$)");
while (it.h... | java | public static SortedSet<String> getIdsFromParameters(SolrParams params,
String prefix) {
SortedSet<String> ids = new TreeSet<>();
Iterator<String> it = params.getParameterNamesIterator();
Pattern pattern = Pattern
.compile("^" + Pattern.quote(prefix) + "\\.([^\\.]+)(\\..*|$)");
while (it.h... | [
"public",
"static",
"SortedSet",
"<",
"String",
">",
"getIdsFromParameters",
"(",
"SolrParams",
"params",
",",
"String",
"prefix",
")",
"{",
"SortedSet",
"<",
"String",
">",
"ids",
"=",
"new",
"TreeSet",
"<>",
"(",
")",
";",
"Iterator",
"<",
"String",
">",... | Gets the ids from parameters.
@param params the params
@param prefix the prefix
@return the ids from parameters | [
"Gets",
"the",
"ids",
"from",
"parameters",
"."
] | f02ae730848616bd88b553efa7f9eddc32818e64 | https://github.com/meertensinstituut/mtas/blob/f02ae730848616bd88b553efa7f9eddc32818e64/src/main/java/mtas/solr/handler/component/util/MtasSolrResultUtil.java#L370-L384 | train |
meertensinstituut/mtas | src/main/java/mtas/solr/handler/component/util/MtasSolrResultUtil.java | MtasSolrResultUtil.compareAndCheck | public static void compareAndCheck(String[] list, String[] original,
String nameNew, String nameOriginal, Boolean unique) throws IOException {
if (list != null) {
if (list.length != original.length) {
throw new IOException(
"unequal size " + nameNew + " and " + nameOriginal);
}... | java | public static void compareAndCheck(String[] list, String[] original,
String nameNew, String nameOriginal, Boolean unique) throws IOException {
if (list != null) {
if (list.length != original.length) {
throw new IOException(
"unequal size " + nameNew + " and " + nameOriginal);
}... | [
"public",
"static",
"void",
"compareAndCheck",
"(",
"String",
"[",
"]",
"list",
",",
"String",
"[",
"]",
"original",
",",
"String",
"nameNew",
",",
"String",
"nameOriginal",
",",
"Boolean",
"unique",
")",
"throws",
"IOException",
"{",
"if",
"(",
"list",
"!... | Compare and check.
@param list the list
@param original the original
@param nameNew the name new
@param nameOriginal the name original
@param unique the unique
@throws IOException Signals that an I/O exception has occurred. | [
"Compare",
"and",
"check",
"."
] | f02ae730848616bd88b553efa7f9eddc32818e64 | https://github.com/meertensinstituut/mtas/blob/f02ae730848616bd88b553efa7f9eddc32818e64/src/main/java/mtas/solr/handler/component/util/MtasSolrResultUtil.java#L396-L413 | train |
meertensinstituut/mtas | src/main/java/mtas/solr/handler/component/util/MtasSolrResultUtil.java | MtasSolrResultUtil.constructQuery | public static MtasSpanQuery constructQuery(String queryValue,
String queryType, String queryPrefix,
HashMap<String, String[]> queryVariables, String field,
String queryIgnore, Integer maximumIgnoreLength) throws IOException {
if (queryType == null || queryType.isEmpty()) {
throw new IOExcept... | java | public static MtasSpanQuery constructQuery(String queryValue,
String queryType, String queryPrefix,
HashMap<String, String[]> queryVariables, String field,
String queryIgnore, Integer maximumIgnoreLength) throws IOException {
if (queryType == null || queryType.isEmpty()) {
throw new IOExcept... | [
"public",
"static",
"MtasSpanQuery",
"constructQuery",
"(",
"String",
"queryValue",
",",
"String",
"queryType",
",",
"String",
"queryPrefix",
",",
"HashMap",
"<",
"String",
",",
"String",
"[",
"]",
">",
"queryVariables",
",",
"String",
"field",
",",
"String",
... | Construct query.
@param queryValue the query value
@param queryType the query type
@param queryPrefix the query prefix
@param queryVariables the query variables
@param field the field
@param queryIgnore the query ignore
@param maximumIgnoreLength the maximum ignore length
@return the mtas span query
@throws IOExceptio... | [
"Construct",
"query",
"."
] | f02ae730848616bd88b553efa7f9eddc32818e64 | https://github.com/meertensinstituut/mtas/blob/f02ae730848616bd88b553efa7f9eddc32818e64/src/main/java/mtas/solr/handler/component/util/MtasSolrResultUtil.java#L428-L474 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/ie/pascal/TeXHyphenator.java | TeXHyphenator.loadDefault | public void loadDefault() {
try {
load( new BufferedReader(new StringReader(
DefaultTeXHyphenData.hyphenData) ) );
} catch(IOException e) {
// shouldn't happen
throw new RuntimeException(e);
}
} | java | public void loadDefault() {
try {
load( new BufferedReader(new StringReader(
DefaultTeXHyphenData.hyphenData) ) );
} catch(IOException e) {
// shouldn't happen
throw new RuntimeException(e);
}
} | [
"public",
"void",
"loadDefault",
"(",
")",
"{",
"try",
"{",
"load",
"(",
"new",
"BufferedReader",
"(",
"new",
"StringReader",
"(",
"DefaultTeXHyphenData",
".",
"hyphenData",
")",
")",
")",
";",
"}",
"catch",
"(",
"IOException",
"e",
")",
"{",
"// shouldn't... | Loads the default hyphenation rules in DefaultTeXHyphenator. | [
"Loads",
"the",
"default",
"hyphenation",
"rules",
"in",
"DefaultTeXHyphenator",
"."
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/ie/pascal/TeXHyphenator.java#L22-L30 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/filter/filterpolicy_lbvserver_binding.java | filterpolicy_lbvserver_binding.get | public static filterpolicy_lbvserver_binding[] get(nitro_service service, String name) throws Exception{
filterpolicy_lbvserver_binding obj = new filterpolicy_lbvserver_binding();
obj.set_name(name);
filterpolicy_lbvserver_binding response[] = (filterpolicy_lbvserver_binding[]) obj.get_resources(service);
retur... | java | public static filterpolicy_lbvserver_binding[] get(nitro_service service, String name) throws Exception{
filterpolicy_lbvserver_binding obj = new filterpolicy_lbvserver_binding();
obj.set_name(name);
filterpolicy_lbvserver_binding response[] = (filterpolicy_lbvserver_binding[]) obj.get_resources(service);
retur... | [
"public",
"static",
"filterpolicy_lbvserver_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"filterpolicy_lbvserver_binding",
"obj",
"=",
"new",
"filterpolicy_lbvserver_binding",
"(",
")",
";",
"obj",... | Use this API to fetch filterpolicy_lbvserver_binding resources of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"filterpolicy_lbvserver_binding",
"resources",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/filter/filterpolicy_lbvserver_binding.java#L132-L137 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/appflow/appflowcollector.java | appflowcollector.add | public static base_response add(nitro_service client, appflowcollector resource) throws Exception {
appflowcollector addresource = new appflowcollector();
addresource.name = resource.name;
addresource.ipaddress = resource.ipaddress;
addresource.port = resource.port;
addresource.netprofile = resource.netprofil... | java | public static base_response add(nitro_service client, appflowcollector resource) throws Exception {
appflowcollector addresource = new appflowcollector();
addresource.name = resource.name;
addresource.ipaddress = resource.ipaddress;
addresource.port = resource.port;
addresource.netprofile = resource.netprofil... | [
"public",
"static",
"base_response",
"add",
"(",
"nitro_service",
"client",
",",
"appflowcollector",
"resource",
")",
"throws",
"Exception",
"{",
"appflowcollector",
"addresource",
"=",
"new",
"appflowcollector",
"(",
")",
";",
"addresource",
".",
"name",
"=",
"re... | Use this API to add appflowcollector. | [
"Use",
"this",
"API",
"to",
"add",
"appflowcollector",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/appflow/appflowcollector.java#L196-L203 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/appflow/appflowcollector.java | appflowcollector.get | public static appflowcollector[] get(nitro_service service) throws Exception{
appflowcollector obj = new appflowcollector();
appflowcollector[] response = (appflowcollector[])obj.get_resources(service);
return response;
} | java | public static appflowcollector[] get(nitro_service service) throws Exception{
appflowcollector obj = new appflowcollector();
appflowcollector[] response = (appflowcollector[])obj.get_resources(service);
return response;
} | [
"public",
"static",
"appflowcollector",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
")",
"throws",
"Exception",
"{",
"appflowcollector",
"obj",
"=",
"new",
"appflowcollector",
"(",
")",
";",
"appflowcollector",
"[",
"]",
"response",
"=",
"(",
"appflowcolle... | Use this API to fetch all the appflowcollector resources that are configured on netscaler. | [
"Use",
"this",
"API",
"to",
"fetch",
"all",
"the",
"appflowcollector",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/appflow/appflowcollector.java#L295-L299 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/appflow/appflowcollector.java | appflowcollector.get | public static appflowcollector get(nitro_service service, String name) throws Exception{
appflowcollector obj = new appflowcollector();
obj.set_name(name);
appflowcollector response = (appflowcollector) obj.get_resource(service);
return response;
} | java | public static appflowcollector get(nitro_service service, String name) throws Exception{
appflowcollector obj = new appflowcollector();
obj.set_name(name);
appflowcollector response = (appflowcollector) obj.get_resource(service);
return response;
} | [
"public",
"static",
"appflowcollector",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"appflowcollector",
"obj",
"=",
"new",
"appflowcollector",
"(",
")",
";",
"obj",
".",
"set_name",
"(",
"name",
")",
";",
"... | Use this API to fetch appflowcollector resource of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"appflowcollector",
"resource",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/appflow/appflowcollector.java#L311-L316 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/responder/responderaction.java | responderaction.add | public static base_response add(nitro_service client, responderaction resource) throws Exception {
responderaction addresource = new responderaction();
addresource.name = resource.name;
addresource.type = resource.type;
addresource.target = resource.target;
addresource.htmlpage = resource.htmlpage;
addresou... | java | public static base_response add(nitro_service client, responderaction resource) throws Exception {
responderaction addresource = new responderaction();
addresource.name = resource.name;
addresource.type = resource.type;
addresource.target = resource.target;
addresource.htmlpage = resource.htmlpage;
addresou... | [
"public",
"static",
"base_response",
"add",
"(",
"nitro_service",
"client",
",",
"responderaction",
"resource",
")",
"throws",
"Exception",
"{",
"responderaction",
"addresource",
"=",
"new",
"responderaction",
"(",
")",
";",
"addresource",
".",
"name",
"=",
"resou... | Use this API to add responderaction. | [
"Use",
"this",
"API",
"to",
"add",
"responderaction",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/responder/responderaction.java#L300-L309 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/responder/responderaction.java | responderaction.add | public static base_responses add(nitro_service client, responderaction resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
responderaction addresources[] = new responderaction[resources.length];
for (int i=0;i<resources.length;i++){
addresources[i... | java | public static base_responses add(nitro_service client, responderaction resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
responderaction addresources[] = new responderaction[resources.length];
for (int i=0;i<resources.length;i++){
addresources[i... | [
"public",
"static",
"base_responses",
"add",
"(",
"nitro_service",
"client",
",",
"responderaction",
"resources",
"[",
"]",
")",
"throws",
"Exception",
"{",
"base_responses",
"result",
"=",
"null",
";",
"if",
"(",
"resources",
"!=",
"null",
"&&",
"resources",
... | Use this API to add responderaction resources. | [
"Use",
"this",
"API",
"to",
"add",
"responderaction",
"resources",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/responder/responderaction.java#L314-L330 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/responder/responderaction.java | responderaction.update | public static base_response update(nitro_service client, responderaction resource) throws Exception {
responderaction updateresource = new responderaction();
updateresource.name = resource.name;
updateresource.target = resource.target;
updateresource.bypasssafetycheck = resource.bypasssafetycheck;
updateresou... | java | public static base_response update(nitro_service client, responderaction resource) throws Exception {
responderaction updateresource = new responderaction();
updateresource.name = resource.name;
updateresource.target = resource.target;
updateresource.bypasssafetycheck = resource.bypasssafetycheck;
updateresou... | [
"public",
"static",
"base_response",
"update",
"(",
"nitro_service",
"client",
",",
"responderaction",
"resource",
")",
"throws",
"Exception",
"{",
"responderaction",
"updateresource",
"=",
"new",
"responderaction",
"(",
")",
";",
"updateresource",
".",
"name",
"=",... | Use this API to update responderaction. | [
"Use",
"this",
"API",
"to",
"update",
"responderaction",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/responder/responderaction.java#L385-L393 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/responder/responderaction.java | responderaction.update | public static base_responses update(nitro_service client, responderaction resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
responderaction updateresources[] = new responderaction[resources.length];
for (int i=0;i<resources.length;i++){
updatere... | java | public static base_responses update(nitro_service client, responderaction resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
responderaction updateresources[] = new responderaction[resources.length];
for (int i=0;i<resources.length;i++){
updatere... | [
"public",
"static",
"base_responses",
"update",
"(",
"nitro_service",
"client",
",",
"responderaction",
"resources",
"[",
"]",
")",
"throws",
"Exception",
"{",
"base_responses",
"result",
"=",
"null",
";",
"if",
"(",
"resources",
"!=",
"null",
"&&",
"resources",... | Use this API to update responderaction resources. | [
"Use",
"this",
"API",
"to",
"update",
"responderaction",
"resources",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/responder/responderaction.java#L398-L413 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/responder/responderaction.java | responderaction.get | public static responderaction[] get(nitro_service service) throws Exception{
responderaction obj = new responderaction();
responderaction[] response = (responderaction[])obj.get_resources(service);
return response;
} | java | public static responderaction[] get(nitro_service service) throws Exception{
responderaction obj = new responderaction();
responderaction[] response = (responderaction[])obj.get_resources(service);
return response;
} | [
"public",
"static",
"responderaction",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
")",
"throws",
"Exception",
"{",
"responderaction",
"obj",
"=",
"new",
"responderaction",
"(",
")",
";",
"responderaction",
"[",
"]",
"response",
"=",
"(",
"responderaction"... | Use this API to fetch all the responderaction resources that are configured on netscaler. | [
"Use",
"this",
"API",
"to",
"fetch",
"all",
"the",
"responderaction",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/responder/responderaction.java#L480-L484 | train |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.