repo
stringlengths 7
58
| path
stringlengths 12
218
| func_name
stringlengths 3
140
| original_string
stringlengths 73
34.1k
| language
stringclasses 1
value | code
stringlengths 73
34.1k
| code_tokens
sequence | docstring
stringlengths 3
16k
| docstring_tokens
sequence | sha
stringlengths 40
40
| url
stringlengths 105
339
| partition
stringclasses 1
value |
---|---|---|---|---|---|---|---|---|---|---|---|
meertensinstituut/mtas | src/main/java/mtas/analysis/util/MtasConfiguration.java | MtasConfiguration.readMtasCharFilterConfigurations | public static HashMap<String, MtasConfiguration> readMtasCharFilterConfigurations(
ResourceLoader resourceLoader, String configFile) throws IOException {
HashMap<String, HashMap<String, String>> configs = readConfigurations(
resourceLoader, configFile, MtasCharFilterFactory.class.getName());
if (configs == null) {
throw new IOException("no configurations");
} else {
HashMap<String, MtasConfiguration> result = new HashMap<String, MtasConfiguration>();
for (Entry<String, HashMap<String, String>> entry : configs.entrySet()) {
HashMap<String, String> config = entry.getValue();
if (config.containsKey(CHARFILTER_CONFIGURATION_TYPE)) {
MtasConfiguration item = new MtasConfiguration();
item.attributes.put(CHARFILTER_CONFIGURATION_TYPE,
config.get(CHARFILTER_CONFIGURATION_TYPE));
item.attributes.put(CHARFILTER_CONFIGURATION_PREFIX,
config.get(CHARFILTER_CONFIGURATION_PREFIX));
item.attributes.put(CHARFILTER_CONFIGURATION_POSTFIX,
config.get(CHARFILTER_CONFIGURATION_POSTFIX));
result.put(entry.getKey(), item);
} else {
throw new IOException("configuration " + entry.getKey() + " has no "
+ CHARFILTER_CONFIGURATION_TYPE);
}
}
return result;
}
} | java | public static HashMap<String, MtasConfiguration> readMtasCharFilterConfigurations(
ResourceLoader resourceLoader, String configFile) throws IOException {
HashMap<String, HashMap<String, String>> configs = readConfigurations(
resourceLoader, configFile, MtasCharFilterFactory.class.getName());
if (configs == null) {
throw new IOException("no configurations");
} else {
HashMap<String, MtasConfiguration> result = new HashMap<String, MtasConfiguration>();
for (Entry<String, HashMap<String, String>> entry : configs.entrySet()) {
HashMap<String, String> config = entry.getValue();
if (config.containsKey(CHARFILTER_CONFIGURATION_TYPE)) {
MtasConfiguration item = new MtasConfiguration();
item.attributes.put(CHARFILTER_CONFIGURATION_TYPE,
config.get(CHARFILTER_CONFIGURATION_TYPE));
item.attributes.put(CHARFILTER_CONFIGURATION_PREFIX,
config.get(CHARFILTER_CONFIGURATION_PREFIX));
item.attributes.put(CHARFILTER_CONFIGURATION_POSTFIX,
config.get(CHARFILTER_CONFIGURATION_POSTFIX));
result.put(entry.getKey(), item);
} else {
throw new IOException("configuration " + entry.getKey() + " has no "
+ CHARFILTER_CONFIGURATION_TYPE);
}
}
return result;
}
} | [
"public",
"static",
"HashMap",
"<",
"String",
",",
"MtasConfiguration",
">",
"readMtasCharFilterConfigurations",
"(",
"ResourceLoader",
"resourceLoader",
",",
"String",
"configFile",
")",
"throws",
"IOException",
"{",
"HashMap",
"<",
"String",
",",
"HashMap",
"<",
"String",
",",
"String",
">",
">",
"configs",
"=",
"readConfigurations",
"(",
"resourceLoader",
",",
"configFile",
",",
"MtasCharFilterFactory",
".",
"class",
".",
"getName",
"(",
")",
")",
";",
"if",
"(",
"configs",
"==",
"null",
")",
"{",
"throw",
"new",
"IOException",
"(",
"\"no configurations\"",
")",
";",
"}",
"else",
"{",
"HashMap",
"<",
"String",
",",
"MtasConfiguration",
">",
"result",
"=",
"new",
"HashMap",
"<",
"String",
",",
"MtasConfiguration",
">",
"(",
")",
";",
"for",
"(",
"Entry",
"<",
"String",
",",
"HashMap",
"<",
"String",
",",
"String",
">",
">",
"entry",
":",
"configs",
".",
"entrySet",
"(",
")",
")",
"{",
"HashMap",
"<",
"String",
",",
"String",
">",
"config",
"=",
"entry",
".",
"getValue",
"(",
")",
";",
"if",
"(",
"config",
".",
"containsKey",
"(",
"CHARFILTER_CONFIGURATION_TYPE",
")",
")",
"{",
"MtasConfiguration",
"item",
"=",
"new",
"MtasConfiguration",
"(",
")",
";",
"item",
".",
"attributes",
".",
"put",
"(",
"CHARFILTER_CONFIGURATION_TYPE",
",",
"config",
".",
"get",
"(",
"CHARFILTER_CONFIGURATION_TYPE",
")",
")",
";",
"item",
".",
"attributes",
".",
"put",
"(",
"CHARFILTER_CONFIGURATION_PREFIX",
",",
"config",
".",
"get",
"(",
"CHARFILTER_CONFIGURATION_PREFIX",
")",
")",
";",
"item",
".",
"attributes",
".",
"put",
"(",
"CHARFILTER_CONFIGURATION_POSTFIX",
",",
"config",
".",
"get",
"(",
"CHARFILTER_CONFIGURATION_POSTFIX",
")",
")",
";",
"result",
".",
"put",
"(",
"entry",
".",
"getKey",
"(",
")",
",",
"item",
")",
";",
"}",
"else",
"{",
"throw",
"new",
"IOException",
"(",
"\"configuration \"",
"+",
"entry",
".",
"getKey",
"(",
")",
"+",
"\" has no \"",
"+",
"CHARFILTER_CONFIGURATION_TYPE",
")",
";",
"}",
"}",
"return",
"result",
";",
"}",
"}"
] | Read mtas char filter configurations.
@param resourceLoader
the resource loader
@param configFile
the config file
@return the hash map
@throws IOException
Signals that an I/O exception has occurred. | [
"Read",
"mtas",
"char",
"filter",
"configurations",
"."
] | f02ae730848616bd88b553efa7f9eddc32818e64 | https://github.com/meertensinstituut/mtas/blob/f02ae730848616bd88b553efa7f9eddc32818e64/src/main/java/mtas/analysis/util/MtasConfiguration.java#L208-L234 | train |
meertensinstituut/mtas | src/main/java/mtas/analysis/util/MtasConfiguration.java | MtasConfiguration.readMtasTokenizerConfigurations | public static HashMap<String, MtasConfiguration> readMtasTokenizerConfigurations(
ResourceLoader resourceLoader, String configFile) throws IOException {
HashMap<String, HashMap<String, String>> configs = readConfigurations(
resourceLoader, configFile, MtasTokenizerFactory.class.getName());
if (configs == null) {
throw new IOException("no configurations");
} else {
HashMap<String, MtasConfiguration> result = new HashMap<String, MtasConfiguration>();
for (Entry<String, HashMap<String, String>> entry : configs.entrySet()) {
HashMap<String, String> config = entry.getValue();
if (config.containsKey(TOKENIZER_CONFIGURATION_FILE)) {
result.put(entry.getKey(), readConfiguration(resourceLoader
.openResource(config.get(TOKENIZER_CONFIGURATION_FILE))));
} else {
throw new IOException("configuration " + entry.getKey() + " has no "
+ TOKENIZER_CONFIGURATION_FILE);
}
}
return result;
}
} | java | public static HashMap<String, MtasConfiguration> readMtasTokenizerConfigurations(
ResourceLoader resourceLoader, String configFile) throws IOException {
HashMap<String, HashMap<String, String>> configs = readConfigurations(
resourceLoader, configFile, MtasTokenizerFactory.class.getName());
if (configs == null) {
throw new IOException("no configurations");
} else {
HashMap<String, MtasConfiguration> result = new HashMap<String, MtasConfiguration>();
for (Entry<String, HashMap<String, String>> entry : configs.entrySet()) {
HashMap<String, String> config = entry.getValue();
if (config.containsKey(TOKENIZER_CONFIGURATION_FILE)) {
result.put(entry.getKey(), readConfiguration(resourceLoader
.openResource(config.get(TOKENIZER_CONFIGURATION_FILE))));
} else {
throw new IOException("configuration " + entry.getKey() + " has no "
+ TOKENIZER_CONFIGURATION_FILE);
}
}
return result;
}
} | [
"public",
"static",
"HashMap",
"<",
"String",
",",
"MtasConfiguration",
">",
"readMtasTokenizerConfigurations",
"(",
"ResourceLoader",
"resourceLoader",
",",
"String",
"configFile",
")",
"throws",
"IOException",
"{",
"HashMap",
"<",
"String",
",",
"HashMap",
"<",
"String",
",",
"String",
">",
">",
"configs",
"=",
"readConfigurations",
"(",
"resourceLoader",
",",
"configFile",
",",
"MtasTokenizerFactory",
".",
"class",
".",
"getName",
"(",
")",
")",
";",
"if",
"(",
"configs",
"==",
"null",
")",
"{",
"throw",
"new",
"IOException",
"(",
"\"no configurations\"",
")",
";",
"}",
"else",
"{",
"HashMap",
"<",
"String",
",",
"MtasConfiguration",
">",
"result",
"=",
"new",
"HashMap",
"<",
"String",
",",
"MtasConfiguration",
">",
"(",
")",
";",
"for",
"(",
"Entry",
"<",
"String",
",",
"HashMap",
"<",
"String",
",",
"String",
">",
">",
"entry",
":",
"configs",
".",
"entrySet",
"(",
")",
")",
"{",
"HashMap",
"<",
"String",
",",
"String",
">",
"config",
"=",
"entry",
".",
"getValue",
"(",
")",
";",
"if",
"(",
"config",
".",
"containsKey",
"(",
"TOKENIZER_CONFIGURATION_FILE",
")",
")",
"{",
"result",
".",
"put",
"(",
"entry",
".",
"getKey",
"(",
")",
",",
"readConfiguration",
"(",
"resourceLoader",
".",
"openResource",
"(",
"config",
".",
"get",
"(",
"TOKENIZER_CONFIGURATION_FILE",
")",
")",
")",
")",
";",
"}",
"else",
"{",
"throw",
"new",
"IOException",
"(",
"\"configuration \"",
"+",
"entry",
".",
"getKey",
"(",
")",
"+",
"\" has no \"",
"+",
"TOKENIZER_CONFIGURATION_FILE",
")",
";",
"}",
"}",
"return",
"result",
";",
"}",
"}"
] | Read mtas tokenizer configurations.
@param resourceLoader
the resource loader
@param configFile
the config file
@return the hash map
@throws IOException
Signals that an I/O exception has occurred. | [
"Read",
"mtas",
"tokenizer",
"configurations",
"."
] | f02ae730848616bd88b553efa7f9eddc32818e64 | https://github.com/meertensinstituut/mtas/blob/f02ae730848616bd88b553efa7f9eddc32818e64/src/main/java/mtas/analysis/util/MtasConfiguration.java#L247-L267 | train |
meertensinstituut/mtas | src/main/java/mtas/analysis/util/MtasConfiguration.java | MtasConfiguration.readConfiguration | public static MtasConfiguration readConfiguration(InputStream reader)
throws IOException {
MtasConfiguration currentConfig = null;
// parse xml
XMLInputFactory factory = XMLInputFactory.newInstance();
try {
XMLStreamReader streamReader = factory.createXMLStreamReader(reader);
QName qname;
try {
int event = streamReader.getEventType();
while (true) {
switch (event) {
case XMLStreamConstants.START_DOCUMENT:
if (!streamReader.getCharacterEncodingScheme().equals("UTF-8")) {
throw new IOException("XML not UTF-8 encoded");
}
break;
case XMLStreamConstants.END_DOCUMENT:
case XMLStreamConstants.SPACE:
break;
case XMLStreamConstants.START_ELEMENT:
// get data
qname = streamReader.getName();
if (currentConfig == null) {
if (qname.getLocalPart().equals("mtas")) {
currentConfig = new MtasConfiguration();
} else {
throw new IOException("no Mtas Configuration");
}
} else {
MtasConfiguration parentConfig = currentConfig;
currentConfig = new MtasConfiguration();
parentConfig.children.add(currentConfig);
currentConfig.parent = parentConfig;
currentConfig.name = qname.getLocalPart();
for (int i = 0; i < streamReader.getAttributeCount(); i++) {
currentConfig.attributes.put(
streamReader.getAttributeLocalName(i),
streamReader.getAttributeValue(i));
}
}
break;
case XMLStreamConstants.END_ELEMENT:
if (currentConfig.parent == null) {
return currentConfig;
} else {
currentConfig = currentConfig.parent;
}
break;
case XMLStreamConstants.CHARACTERS:
break;
}
if (!streamReader.hasNext()) {
break;
}
event = streamReader.next();
}
} finally {
streamReader.close();
}
} catch (XMLStreamException e) {
log.debug(e);
}
return null;
} | java | public static MtasConfiguration readConfiguration(InputStream reader)
throws IOException {
MtasConfiguration currentConfig = null;
// parse xml
XMLInputFactory factory = XMLInputFactory.newInstance();
try {
XMLStreamReader streamReader = factory.createXMLStreamReader(reader);
QName qname;
try {
int event = streamReader.getEventType();
while (true) {
switch (event) {
case XMLStreamConstants.START_DOCUMENT:
if (!streamReader.getCharacterEncodingScheme().equals("UTF-8")) {
throw new IOException("XML not UTF-8 encoded");
}
break;
case XMLStreamConstants.END_DOCUMENT:
case XMLStreamConstants.SPACE:
break;
case XMLStreamConstants.START_ELEMENT:
// get data
qname = streamReader.getName();
if (currentConfig == null) {
if (qname.getLocalPart().equals("mtas")) {
currentConfig = new MtasConfiguration();
} else {
throw new IOException("no Mtas Configuration");
}
} else {
MtasConfiguration parentConfig = currentConfig;
currentConfig = new MtasConfiguration();
parentConfig.children.add(currentConfig);
currentConfig.parent = parentConfig;
currentConfig.name = qname.getLocalPart();
for (int i = 0; i < streamReader.getAttributeCount(); i++) {
currentConfig.attributes.put(
streamReader.getAttributeLocalName(i),
streamReader.getAttributeValue(i));
}
}
break;
case XMLStreamConstants.END_ELEMENT:
if (currentConfig.parent == null) {
return currentConfig;
} else {
currentConfig = currentConfig.parent;
}
break;
case XMLStreamConstants.CHARACTERS:
break;
}
if (!streamReader.hasNext()) {
break;
}
event = streamReader.next();
}
} finally {
streamReader.close();
}
} catch (XMLStreamException e) {
log.debug(e);
}
return null;
} | [
"public",
"static",
"MtasConfiguration",
"readConfiguration",
"(",
"InputStream",
"reader",
")",
"throws",
"IOException",
"{",
"MtasConfiguration",
"currentConfig",
"=",
"null",
";",
"// parse xml",
"XMLInputFactory",
"factory",
"=",
"XMLInputFactory",
".",
"newInstance",
"(",
")",
";",
"try",
"{",
"XMLStreamReader",
"streamReader",
"=",
"factory",
".",
"createXMLStreamReader",
"(",
"reader",
")",
";",
"QName",
"qname",
";",
"try",
"{",
"int",
"event",
"=",
"streamReader",
".",
"getEventType",
"(",
")",
";",
"while",
"(",
"true",
")",
"{",
"switch",
"(",
"event",
")",
"{",
"case",
"XMLStreamConstants",
".",
"START_DOCUMENT",
":",
"if",
"(",
"!",
"streamReader",
".",
"getCharacterEncodingScheme",
"(",
")",
".",
"equals",
"(",
"\"UTF-8\"",
")",
")",
"{",
"throw",
"new",
"IOException",
"(",
"\"XML not UTF-8 encoded\"",
")",
";",
"}",
"break",
";",
"case",
"XMLStreamConstants",
".",
"END_DOCUMENT",
":",
"case",
"XMLStreamConstants",
".",
"SPACE",
":",
"break",
";",
"case",
"XMLStreamConstants",
".",
"START_ELEMENT",
":",
"// get data",
"qname",
"=",
"streamReader",
".",
"getName",
"(",
")",
";",
"if",
"(",
"currentConfig",
"==",
"null",
")",
"{",
"if",
"(",
"qname",
".",
"getLocalPart",
"(",
")",
".",
"equals",
"(",
"\"mtas\"",
")",
")",
"{",
"currentConfig",
"=",
"new",
"MtasConfiguration",
"(",
")",
";",
"}",
"else",
"{",
"throw",
"new",
"IOException",
"(",
"\"no Mtas Configuration\"",
")",
";",
"}",
"}",
"else",
"{",
"MtasConfiguration",
"parentConfig",
"=",
"currentConfig",
";",
"currentConfig",
"=",
"new",
"MtasConfiguration",
"(",
")",
";",
"parentConfig",
".",
"children",
".",
"add",
"(",
"currentConfig",
")",
";",
"currentConfig",
".",
"parent",
"=",
"parentConfig",
";",
"currentConfig",
".",
"name",
"=",
"qname",
".",
"getLocalPart",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"streamReader",
".",
"getAttributeCount",
"(",
")",
";",
"i",
"++",
")",
"{",
"currentConfig",
".",
"attributes",
".",
"put",
"(",
"streamReader",
".",
"getAttributeLocalName",
"(",
"i",
")",
",",
"streamReader",
".",
"getAttributeValue",
"(",
"i",
")",
")",
";",
"}",
"}",
"break",
";",
"case",
"XMLStreamConstants",
".",
"END_ELEMENT",
":",
"if",
"(",
"currentConfig",
".",
"parent",
"==",
"null",
")",
"{",
"return",
"currentConfig",
";",
"}",
"else",
"{",
"currentConfig",
"=",
"currentConfig",
".",
"parent",
";",
"}",
"break",
";",
"case",
"XMLStreamConstants",
".",
"CHARACTERS",
":",
"break",
";",
"}",
"if",
"(",
"!",
"streamReader",
".",
"hasNext",
"(",
")",
")",
"{",
"break",
";",
"}",
"event",
"=",
"streamReader",
".",
"next",
"(",
")",
";",
"}",
"}",
"finally",
"{",
"streamReader",
".",
"close",
"(",
")",
";",
"}",
"}",
"catch",
"(",
"XMLStreamException",
"e",
")",
"{",
"log",
".",
"debug",
"(",
"e",
")",
";",
"}",
"return",
"null",
";",
"}"
] | Read configuration.
@param reader
the reader
@return the mtas configuration
@throws IOException
Signals that an I/O exception has occurred. | [
"Read",
"configuration",
"."
] | f02ae730848616bd88b553efa7f9eddc32818e64 | https://github.com/meertensinstituut/mtas/blob/f02ae730848616bd88b553efa7f9eddc32818e64/src/main/java/mtas/analysis/util/MtasConfiguration.java#L278-L342 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/stat/system/systemcpu_stats.java | systemcpu_stats.get | public static systemcpu_stats[] get(nitro_service service) throws Exception{
systemcpu_stats obj = new systemcpu_stats();
systemcpu_stats[] response = (systemcpu_stats[])obj.stat_resources(service);
return response;
} | java | public static systemcpu_stats[] get(nitro_service service) throws Exception{
systemcpu_stats obj = new systemcpu_stats();
systemcpu_stats[] response = (systemcpu_stats[])obj.stat_resources(service);
return response;
} | [
"public",
"static",
"systemcpu_stats",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
")",
"throws",
"Exception",
"{",
"systemcpu_stats",
"obj",
"=",
"new",
"systemcpu_stats",
"(",
")",
";",
"systemcpu_stats",
"[",
"]",
"response",
"=",
"(",
"systemcpu_stats",
"[",
"]",
")",
"obj",
".",
"stat_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch the statistics of all systemcpu_stats resources that are configured on netscaler. | [
"Use",
"this",
"API",
"to",
"fetch",
"the",
"statistics",
"of",
"all",
"systemcpu_stats",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/stat/system/systemcpu_stats.java#L133-L137 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/stat/system/systemcpu_stats.java | systemcpu_stats.get | public static systemcpu_stats get(nitro_service service, Long id) throws Exception{
systemcpu_stats obj = new systemcpu_stats();
obj.set_id(id);
systemcpu_stats response = (systemcpu_stats) obj.stat_resource(service);
return response;
} | java | public static systemcpu_stats get(nitro_service service, Long id) throws Exception{
systemcpu_stats obj = new systemcpu_stats();
obj.set_id(id);
systemcpu_stats response = (systemcpu_stats) obj.stat_resource(service);
return response;
} | [
"public",
"static",
"systemcpu_stats",
"get",
"(",
"nitro_service",
"service",
",",
"Long",
"id",
")",
"throws",
"Exception",
"{",
"systemcpu_stats",
"obj",
"=",
"new",
"systemcpu_stats",
"(",
")",
";",
"obj",
".",
"set_id",
"(",
"id",
")",
";",
"systemcpu_stats",
"response",
"=",
"(",
"systemcpu_stats",
")",
"obj",
".",
"stat_resource",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch statistics of systemcpu_stats resource of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"statistics",
"of",
"systemcpu_stats",
"resource",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/stat/system/systemcpu_stats.java#L151-L156 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/trees/tregex/TregexParser.java | TregexParser.Root | final public TregexPattern Root() throws ParseException {
TregexPattern node;
node = SubNode(Relation.ROOT);
jj_consume_token(11);
{if (true) return node;}
throw new Error("Missing return statement in function");
} | java | final public TregexPattern Root() throws ParseException {
TregexPattern node;
node = SubNode(Relation.ROOT);
jj_consume_token(11);
{if (true) return node;}
throw new Error("Missing return statement in function");
} | [
"final",
"public",
"TregexPattern",
"Root",
"(",
")",
"throws",
"ParseException",
"{",
"TregexPattern",
"node",
";",
"node",
"=",
"SubNode",
"(",
"Relation",
".",
"ROOT",
")",
";",
"jj_consume_token",
"(",
"11",
")",
";",
"{",
"if",
"(",
"true",
")",
"return",
"node",
";",
"}",
"throw",
"new",
"Error",
"(",
"\"Missing return statement in function\"",
")",
";",
"}"
] | first expr is return val- passed up the tree after a production | [
"first",
"expr",
"is",
"return",
"val",
"-",
"passed",
"up",
"the",
"tree",
"after",
"a",
"production"
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/trees/tregex/TregexParser.java#L43-L49 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/trees/tregex/TregexParser.java | TregexParser.Node | final public TregexPattern Node(Relation r) throws ParseException {
TregexPattern node;
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case 12:
jj_consume_token(12);
node = SubNode(r);
jj_consume_token(13);
break;
case IDENTIFIER:
case BLANK:
case REGEX:
case 14:
case 15:
case 18:
case 19:
node = ModDescription(r);
break;
default:
jj_la1[0] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
{if (true) return node;}
throw new Error("Missing return statement in function");
} | java | final public TregexPattern Node(Relation r) throws ParseException {
TregexPattern node;
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case 12:
jj_consume_token(12);
node = SubNode(r);
jj_consume_token(13);
break;
case IDENTIFIER:
case BLANK:
case REGEX:
case 14:
case 15:
case 18:
case 19:
node = ModDescription(r);
break;
default:
jj_la1[0] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
{if (true) return node;}
throw new Error("Missing return statement in function");
} | [
"final",
"public",
"TregexPattern",
"Node",
"(",
"Relation",
"r",
")",
"throws",
"ParseException",
"{",
"TregexPattern",
"node",
";",
"switch",
"(",
"(",
"jj_ntk",
"==",
"-",
"1",
")",
"?",
"jj_ntk",
"(",
")",
":",
"jj_ntk",
")",
"{",
"case",
"12",
":",
"jj_consume_token",
"(",
"12",
")",
";",
"node",
"=",
"SubNode",
"(",
"r",
")",
";",
"jj_consume_token",
"(",
"13",
")",
";",
"break",
";",
"case",
"IDENTIFIER",
":",
"case",
"BLANK",
":",
"case",
"REGEX",
":",
"case",
"14",
":",
"case",
"15",
":",
"case",
"18",
":",
"case",
"19",
":",
"node",
"=",
"ModDescription",
"(",
"r",
")",
";",
"break",
";",
"default",
":",
"jj_la1",
"[",
"0",
"]",
"=",
"jj_gen",
";",
"jj_consume_token",
"(",
"-",
"1",
")",
";",
"throw",
"new",
"ParseException",
"(",
")",
";",
"}",
"{",
"if",
"(",
"true",
")",
"return",
"node",
";",
"}",
"throw",
"new",
"Error",
"(",
"\"Missing return statement in function\"",
")",
";",
"}"
] | pertains to this node gets passed all the way down to the Description node | [
"pertains",
"to",
"this",
"node",
"gets",
"passed",
"all",
"the",
"way",
"down",
"to",
"the",
"Description",
"node"
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/trees/tregex/TregexParser.java#L53-L77 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/trees/tregex/TregexParser.java | TregexParser.generateParseException | public ParseException generateParseException() {
jj_expentries.clear();
boolean[] la1tokens = new boolean[25];
if (jj_kind >= 0) {
la1tokens[jj_kind] = true;
jj_kind = -1;
}
for (int i = 0; i < 23; i++) {
if (jj_la1[i] == jj_gen) {
for (int j = 0; j < 32; j++) {
if ((jj_la1_0[i] & (1<<j)) != 0) {
la1tokens[j] = true;
}
}
}
}
for (int i = 0; i < 25; i++) {
if (la1tokens[i]) {
jj_expentry = new int[1];
jj_expentry[0] = i;
jj_expentries.add(jj_expentry);
}
}
int[][] exptokseq = new int[jj_expentries.size()][];
for (int i = 0; i < jj_expentries.size(); i++) {
exptokseq[i] = jj_expentries.get(i);
}
return new ParseException(token, exptokseq, tokenImage);
} | java | public ParseException generateParseException() {
jj_expentries.clear();
boolean[] la1tokens = new boolean[25];
if (jj_kind >= 0) {
la1tokens[jj_kind] = true;
jj_kind = -1;
}
for (int i = 0; i < 23; i++) {
if (jj_la1[i] == jj_gen) {
for (int j = 0; j < 32; j++) {
if ((jj_la1_0[i] & (1<<j)) != 0) {
la1tokens[j] = true;
}
}
}
}
for (int i = 0; i < 25; i++) {
if (la1tokens[i]) {
jj_expentry = new int[1];
jj_expentry[0] = i;
jj_expentries.add(jj_expentry);
}
}
int[][] exptokseq = new int[jj_expentries.size()][];
for (int i = 0; i < jj_expentries.size(); i++) {
exptokseq[i] = jj_expentries.get(i);
}
return new ParseException(token, exptokseq, tokenImage);
} | [
"public",
"ParseException",
"generateParseException",
"(",
")",
"{",
"jj_expentries",
".",
"clear",
"(",
")",
";",
"boolean",
"[",
"]",
"la1tokens",
"=",
"new",
"boolean",
"[",
"25",
"]",
";",
"if",
"(",
"jj_kind",
">=",
"0",
")",
"{",
"la1tokens",
"[",
"jj_kind",
"]",
"=",
"true",
";",
"jj_kind",
"=",
"-",
"1",
";",
"}",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"23",
";",
"i",
"++",
")",
"{",
"if",
"(",
"jj_la1",
"[",
"i",
"]",
"==",
"jj_gen",
")",
"{",
"for",
"(",
"int",
"j",
"=",
"0",
";",
"j",
"<",
"32",
";",
"j",
"++",
")",
"{",
"if",
"(",
"(",
"jj_la1_0",
"[",
"i",
"]",
"&",
"(",
"1",
"<<",
"j",
")",
")",
"!=",
"0",
")",
"{",
"la1tokens",
"[",
"j",
"]",
"=",
"true",
";",
"}",
"}",
"}",
"}",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"25",
";",
"i",
"++",
")",
"{",
"if",
"(",
"la1tokens",
"[",
"i",
"]",
")",
"{",
"jj_expentry",
"=",
"new",
"int",
"[",
"1",
"]",
";",
"jj_expentry",
"[",
"0",
"]",
"=",
"i",
";",
"jj_expentries",
".",
"add",
"(",
"jj_expentry",
")",
";",
"}",
"}",
"int",
"[",
"]",
"[",
"]",
"exptokseq",
"=",
"new",
"int",
"[",
"jj_expentries",
".",
"size",
"(",
")",
"]",
"[",
"",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"jj_expentries",
".",
"size",
"(",
")",
";",
"i",
"++",
")",
"{",
"exptokseq",
"[",
"i",
"]",
"=",
"jj_expentries",
".",
"get",
"(",
"i",
")",
";",
"}",
"return",
"new",
"ParseException",
"(",
"token",
",",
"exptokseq",
",",
"tokenImage",
")",
";",
"}"
] | Generate ParseException. | [
"Generate",
"ParseException",
"."
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/trees/tregex/TregexParser.java#L625-L653 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/ha/hafiles.java | hafiles.sync | public static base_response sync(nitro_service client, hafiles resource) throws Exception {
hafiles syncresource = new hafiles();
syncresource.mode = resource.mode;
return syncresource.perform_operation(client,"sync");
} | java | public static base_response sync(nitro_service client, hafiles resource) throws Exception {
hafiles syncresource = new hafiles();
syncresource.mode = resource.mode;
return syncresource.perform_operation(client,"sync");
} | [
"public",
"static",
"base_response",
"sync",
"(",
"nitro_service",
"client",
",",
"hafiles",
"resource",
")",
"throws",
"Exception",
"{",
"hafiles",
"syncresource",
"=",
"new",
"hafiles",
"(",
")",
";",
"syncresource",
".",
"mode",
"=",
"resource",
".",
"mode",
";",
"return",
"syncresource",
".",
"perform_operation",
"(",
"client",
",",
"\"sync\"",
")",
";",
"}"
] | Use this API to sync hafiles. | [
"Use",
"this",
"API",
"to",
"sync",
"hafiles",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ha/hafiles.java#L108-L112 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/lb/lbpersistentsessions.java | lbpersistentsessions.clear | public static base_response clear(nitro_service client, lbpersistentsessions resource) throws Exception {
lbpersistentsessions clearresource = new lbpersistentsessions();
clearresource.vserver = resource.vserver;
clearresource.persistenceparameter = resource.persistenceparameter;
return clearresource.perform_operation(client,"clear");
} | java | public static base_response clear(nitro_service client, lbpersistentsessions resource) throws Exception {
lbpersistentsessions clearresource = new lbpersistentsessions();
clearresource.vserver = resource.vserver;
clearresource.persistenceparameter = resource.persistenceparameter;
return clearresource.perform_operation(client,"clear");
} | [
"public",
"static",
"base_response",
"clear",
"(",
"nitro_service",
"client",
",",
"lbpersistentsessions",
"resource",
")",
"throws",
"Exception",
"{",
"lbpersistentsessions",
"clearresource",
"=",
"new",
"lbpersistentsessions",
"(",
")",
";",
"clearresource",
".",
"vserver",
"=",
"resource",
".",
"vserver",
";",
"clearresource",
".",
"persistenceparameter",
"=",
"resource",
".",
"persistenceparameter",
";",
"return",
"clearresource",
".",
"perform_operation",
"(",
"client",
",",
"\"clear\"",
")",
";",
"}"
] | Use this API to clear lbpersistentsessions. | [
"Use",
"this",
"API",
"to",
"clear",
"lbpersistentsessions",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/lb/lbpersistentsessions.java#L225-L230 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/lb/lbpersistentsessions.java | lbpersistentsessions.clear | public static base_responses clear(nitro_service client, lbpersistentsessions resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
lbpersistentsessions clearresources[] = new lbpersistentsessions[resources.length];
for (int i=0;i<resources.length;i++){
clearresources[i] = new lbpersistentsessions();
clearresources[i].vserver = resources[i].vserver;
clearresources[i].persistenceparameter = resources[i].persistenceparameter;
}
result = perform_operation_bulk_request(client, clearresources,"clear");
}
return result;
} | java | public static base_responses clear(nitro_service client, lbpersistentsessions resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
lbpersistentsessions clearresources[] = new lbpersistentsessions[resources.length];
for (int i=0;i<resources.length;i++){
clearresources[i] = new lbpersistentsessions();
clearresources[i].vserver = resources[i].vserver;
clearresources[i].persistenceparameter = resources[i].persistenceparameter;
}
result = perform_operation_bulk_request(client, clearresources,"clear");
}
return result;
} | [
"public",
"static",
"base_responses",
"clear",
"(",
"nitro_service",
"client",
",",
"lbpersistentsessions",
"resources",
"[",
"]",
")",
"throws",
"Exception",
"{",
"base_responses",
"result",
"=",
"null",
";",
"if",
"(",
"resources",
"!=",
"null",
"&&",
"resources",
".",
"length",
">",
"0",
")",
"{",
"lbpersistentsessions",
"clearresources",
"[",
"]",
"=",
"new",
"lbpersistentsessions",
"[",
"resources",
".",
"length",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"resources",
".",
"length",
";",
"i",
"++",
")",
"{",
"clearresources",
"[",
"i",
"]",
"=",
"new",
"lbpersistentsessions",
"(",
")",
";",
"clearresources",
"[",
"i",
"]",
".",
"vserver",
"=",
"resources",
"[",
"i",
"]",
".",
"vserver",
";",
"clearresources",
"[",
"i",
"]",
".",
"persistenceparameter",
"=",
"resources",
"[",
"i",
"]",
".",
"persistenceparameter",
";",
"}",
"result",
"=",
"perform_operation_bulk_request",
"(",
"client",
",",
"clearresources",
",",
"\"clear\"",
")",
";",
"}",
"return",
"result",
";",
"}"
] | Use this API to clear lbpersistentsessions resources. | [
"Use",
"this",
"API",
"to",
"clear",
"lbpersistentsessions",
"resources",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/lb/lbpersistentsessions.java#L235-L247 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/lb/lbpersistentsessions.java | lbpersistentsessions.get | public static lbpersistentsessions[] get(nitro_service service, options option) throws Exception{
lbpersistentsessions obj = new lbpersistentsessions();
lbpersistentsessions[] response = (lbpersistentsessions[])obj.get_resources(service,option);
return response;
} | java | public static lbpersistentsessions[] get(nitro_service service, options option) throws Exception{
lbpersistentsessions obj = new lbpersistentsessions();
lbpersistentsessions[] response = (lbpersistentsessions[])obj.get_resources(service,option);
return response;
} | [
"public",
"static",
"lbpersistentsessions",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"options",
"option",
")",
"throws",
"Exception",
"{",
"lbpersistentsessions",
"obj",
"=",
"new",
"lbpersistentsessions",
"(",
")",
";",
"lbpersistentsessions",
"[",
"]",
"response",
"=",
"(",
"lbpersistentsessions",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
",",
"option",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch all the lbpersistentsessions resources that are configured on netscaler. | [
"Use",
"this",
"API",
"to",
"fetch",
"all",
"the",
"lbpersistentsessions",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/lb/lbpersistentsessions.java#L260-L264 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/lb/lbpersistentsessions.java | lbpersistentsessions.get | public static lbpersistentsessions[] get(nitro_service service, lbpersistentsessions_args args) throws Exception{
lbpersistentsessions obj = new lbpersistentsessions();
options option = new options();
option.set_args(nitro_util.object_to_string_withoutquotes(args));
lbpersistentsessions[] response = (lbpersistentsessions[])obj.get_resources(service, option);
return response;
} | java | public static lbpersistentsessions[] get(nitro_service service, lbpersistentsessions_args args) throws Exception{
lbpersistentsessions obj = new lbpersistentsessions();
options option = new options();
option.set_args(nitro_util.object_to_string_withoutquotes(args));
lbpersistentsessions[] response = (lbpersistentsessions[])obj.get_resources(service, option);
return response;
} | [
"public",
"static",
"lbpersistentsessions",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"lbpersistentsessions_args",
"args",
")",
"throws",
"Exception",
"{",
"lbpersistentsessions",
"obj",
"=",
"new",
"lbpersistentsessions",
"(",
")",
";",
"options",
"option",
"=",
"new",
"options",
"(",
")",
";",
"option",
".",
"set_args",
"(",
"nitro_util",
".",
"object_to_string_withoutquotes",
"(",
"args",
")",
")",
";",
"lbpersistentsessions",
"[",
"]",
"response",
"=",
"(",
"lbpersistentsessions",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
",",
"option",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch all the lbpersistentsessions resources that are configured on netscaler.
This uses lbpersistentsessions_args which is a way to provide additional arguments while fetching the resources. | [
"Use",
"this",
"API",
"to",
"fetch",
"all",
"the",
"lbpersistentsessions",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
".",
"This",
"uses",
"lbpersistentsessions_args",
"which",
"is",
"a",
"way",
"to",
"provide",
"additional",
"arguments",
"while",
"fetching",
"the",
"resources",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/lb/lbpersistentsessions.java#L269-L275 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/vpn/vpnvserver_staserver_binding.java | vpnvserver_staserver_binding.get | public static vpnvserver_staserver_binding[] get(nitro_service service, String name) throws Exception{
vpnvserver_staserver_binding obj = new vpnvserver_staserver_binding();
obj.set_name(name);
vpnvserver_staserver_binding response[] = (vpnvserver_staserver_binding[]) obj.get_resources(service);
return response;
} | java | public static vpnvserver_staserver_binding[] get(nitro_service service, String name) throws Exception{
vpnvserver_staserver_binding obj = new vpnvserver_staserver_binding();
obj.set_name(name);
vpnvserver_staserver_binding response[] = (vpnvserver_staserver_binding[]) obj.get_resources(service);
return response;
} | [
"public",
"static",
"vpnvserver_staserver_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"vpnvserver_staserver_binding",
"obj",
"=",
"new",
"vpnvserver_staserver_binding",
"(",
")",
";",
"obj",
".",
"set_name",
"(",
"name",
")",
";",
"vpnvserver_staserver_binding",
"response",
"[",
"]",
"=",
"(",
"vpnvserver_staserver_binding",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch vpnvserver_staserver_binding resources of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"vpnvserver_staserver_binding",
"resources",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/vpn/vpnvserver_staserver_binding.java#L174-L179 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwprofile_trustedlearningclients_binding.java | appfwprofile_trustedlearningclients_binding.get | public static appfwprofile_trustedlearningclients_binding[] get(nitro_service service, String name) throws Exception{
appfwprofile_trustedlearningclients_binding obj = new appfwprofile_trustedlearningclients_binding();
obj.set_name(name);
appfwprofile_trustedlearningclients_binding response[] = (appfwprofile_trustedlearningclients_binding[]) obj.get_resources(service);
return response;
} | java | public static appfwprofile_trustedlearningclients_binding[] get(nitro_service service, String name) throws Exception{
appfwprofile_trustedlearningclients_binding obj = new appfwprofile_trustedlearningclients_binding();
obj.set_name(name);
appfwprofile_trustedlearningclients_binding response[] = (appfwprofile_trustedlearningclients_binding[]) obj.get_resources(service);
return response;
} | [
"public",
"static",
"appfwprofile_trustedlearningclients_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"appfwprofile_trustedlearningclients_binding",
"obj",
"=",
"new",
"appfwprofile_trustedlearningclients_binding",
"(",
")",
";",
"obj",
".",
"set_name",
"(",
"name",
")",
";",
"appfwprofile_trustedlearningclients_binding",
"response",
"[",
"]",
"=",
"(",
"appfwprofile_trustedlearningclients_binding",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch appfwprofile_trustedlearningclients_binding resources of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"appfwprofile_trustedlearningclients_binding",
"resources",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwprofile_trustedlearningclients_binding.java#L196-L201 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/util/SystemUtils.java | SystemUtils.run | public static void run(ProcessBuilder builder, Writer output, Writer error) {
try {
Process process = builder.start();
consume(process, output, error);
int result = process.waitFor();
if (result != 0) {
String msg = "process %s exited with value %d";
throw new ProcessException(String.format(msg, builder.command(), result));
}
} catch (InterruptedException e) {
throw new ProcessException(e);
} catch (IOException e) {
throw new ProcessException(e);
}
} | java | public static void run(ProcessBuilder builder, Writer output, Writer error) {
try {
Process process = builder.start();
consume(process, output, error);
int result = process.waitFor();
if (result != 0) {
String msg = "process %s exited with value %d";
throw new ProcessException(String.format(msg, builder.command(), result));
}
} catch (InterruptedException e) {
throw new ProcessException(e);
} catch (IOException e) {
throw new ProcessException(e);
}
} | [
"public",
"static",
"void",
"run",
"(",
"ProcessBuilder",
"builder",
",",
"Writer",
"output",
",",
"Writer",
"error",
")",
"{",
"try",
"{",
"Process",
"process",
"=",
"builder",
".",
"start",
"(",
")",
";",
"consume",
"(",
"process",
",",
"output",
",",
"error",
")",
";",
"int",
"result",
"=",
"process",
".",
"waitFor",
"(",
")",
";",
"if",
"(",
"result",
"!=",
"0",
")",
"{",
"String",
"msg",
"=",
"\"process %s exited with value %d\"",
";",
"throw",
"new",
"ProcessException",
"(",
"String",
".",
"format",
"(",
"msg",
",",
"builder",
".",
"command",
"(",
")",
",",
"result",
")",
")",
";",
"}",
"}",
"catch",
"(",
"InterruptedException",
"e",
")",
"{",
"throw",
"new",
"ProcessException",
"(",
"e",
")",
";",
"}",
"catch",
"(",
"IOException",
"e",
")",
"{",
"throw",
"new",
"ProcessException",
"(",
"e",
")",
";",
"}",
"}"
] | Start the process defined by the ProcessBuilder, and run until complete.
@param builder The ProcessBuilder defining the process to run.
@param output Where the process output should be written. If null, the
process output will be written to System.out.
@param error Where the process error output should be written. If null,
the process error output will written to System.err. | [
"Start",
"the",
"process",
"defined",
"by",
"the",
"ProcessBuilder",
"and",
"run",
"until",
"complete",
"."
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/util/SystemUtils.java#L50-L64 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/util/SystemUtils.java | SystemUtils.consume | private static void consume(Process process, Writer outputWriter, Writer errorWriter)
throws IOException, InterruptedException {
if (outputWriter == null) {
outputWriter = new OutputStreamWriter(System.out);
}
if (errorWriter == null) {
errorWriter = new OutputStreamWriter(System.err);
}
WriterThread outputThread = new WriterThread(process.getInputStream(), outputWriter);
WriterThread errorThread = new WriterThread(process.getErrorStream(), errorWriter);
outputThread.start();
errorThread.start();
outputThread.join();
errorThread.join();
} | java | private static void consume(Process process, Writer outputWriter, Writer errorWriter)
throws IOException, InterruptedException {
if (outputWriter == null) {
outputWriter = new OutputStreamWriter(System.out);
}
if (errorWriter == null) {
errorWriter = new OutputStreamWriter(System.err);
}
WriterThread outputThread = new WriterThread(process.getInputStream(), outputWriter);
WriterThread errorThread = new WriterThread(process.getErrorStream(), errorWriter);
outputThread.start();
errorThread.start();
outputThread.join();
errorThread.join();
} | [
"private",
"static",
"void",
"consume",
"(",
"Process",
"process",
",",
"Writer",
"outputWriter",
",",
"Writer",
"errorWriter",
")",
"throws",
"IOException",
",",
"InterruptedException",
"{",
"if",
"(",
"outputWriter",
"==",
"null",
")",
"{",
"outputWriter",
"=",
"new",
"OutputStreamWriter",
"(",
"System",
".",
"out",
")",
";",
"}",
"if",
"(",
"errorWriter",
"==",
"null",
")",
"{",
"errorWriter",
"=",
"new",
"OutputStreamWriter",
"(",
"System",
".",
"err",
")",
";",
"}",
"WriterThread",
"outputThread",
"=",
"new",
"WriterThread",
"(",
"process",
".",
"getInputStream",
"(",
")",
",",
"outputWriter",
")",
";",
"WriterThread",
"errorThread",
"=",
"new",
"WriterThread",
"(",
"process",
".",
"getErrorStream",
"(",
")",
",",
"errorWriter",
")",
";",
"outputThread",
".",
"start",
"(",
")",
";",
"errorThread",
".",
"start",
"(",
")",
";",
"outputThread",
".",
"join",
"(",
")",
";",
"errorThread",
".",
"join",
"(",
")",
";",
"}"
] | Helper method that consumes the output and error streams of a process.
This should avoid deadlocks where, e.g. the process won't complete because
it is waiting for output to be read from stdout or stderr.
@param process A running process.
@param outputWriter Where to write output. If null, System.out is used.
@param errorWriter Where to write error output. If null, System.err is used. | [
"Helper",
"method",
"that",
"consumes",
"the",
"output",
"and",
"error",
"streams",
"of",
"a",
"process",
"."
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/util/SystemUtils.java#L76-L90 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/util/SystemUtils.java | SystemUtils.getPID | public static int getPID() throws IOException {
// note that we ask Perl for "ppid" -- process ID of parent -- that's us
String[] cmd =
new String[] {"perl", "-e", "print getppid() . \"\\n\";"};
StringBuilder out = new StringBuilder();
runShellCommand(cmd, out);
return Integer.parseInt(out.toString());
} | java | public static int getPID() throws IOException {
// note that we ask Perl for "ppid" -- process ID of parent -- that's us
String[] cmd =
new String[] {"perl", "-e", "print getppid() . \"\\n\";"};
StringBuilder out = new StringBuilder();
runShellCommand(cmd, out);
return Integer.parseInt(out.toString());
} | [
"public",
"static",
"int",
"getPID",
"(",
")",
"throws",
"IOException",
"{",
"// note that we ask Perl for \"ppid\" -- process ID of parent -- that's us\r",
"String",
"[",
"]",
"cmd",
"=",
"new",
"String",
"[",
"]",
"{",
"\"perl\"",
",",
"\"-e\"",
",",
"\"print getppid() . \\\"\\\\n\\\";\"",
"}",
";",
"StringBuilder",
"out",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"runShellCommand",
"(",
"cmd",
",",
"out",
")",
";",
"return",
"Integer",
".",
"parseInt",
"(",
"out",
".",
"toString",
"(",
")",
")",
";",
"}"
] | Returns the process ID, via an awful hack. | [
"Returns",
"the",
"process",
"ID",
"via",
"an",
"awful",
"hack",
"."
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/util/SystemUtils.java#L269-L276 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/stat/appqoe/appqoe_stats.java | appqoe_stats.get | public static appqoe_stats get(nitro_service service) throws Exception{
appqoe_stats obj = new appqoe_stats();
appqoe_stats[] response = (appqoe_stats[])obj.stat_resources(service);
return response[0];
} | java | public static appqoe_stats get(nitro_service service) throws Exception{
appqoe_stats obj = new appqoe_stats();
appqoe_stats[] response = (appqoe_stats[])obj.stat_resources(service);
return response[0];
} | [
"public",
"static",
"appqoe_stats",
"get",
"(",
"nitro_service",
"service",
")",
"throws",
"Exception",
"{",
"appqoe_stats",
"obj",
"=",
"new",
"appqoe_stats",
"(",
")",
";",
"appqoe_stats",
"[",
"]",
"response",
"=",
"(",
"appqoe_stats",
"[",
"]",
")",
"obj",
".",
"stat_resources",
"(",
"service",
")",
";",
"return",
"response",
"[",
"0",
"]",
";",
"}"
] | Use this API to fetch the statistics of all appqoe_stats resources that are configured on netscaler. | [
"Use",
"this",
"API",
"to",
"fetch",
"the",
"statistics",
"of",
"all",
"appqoe_stats",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/stat/appqoe/appqoe_stats.java#L591-L595 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/transform/transformpolicy_binding.java | transformpolicy_binding.get | public static transformpolicy_binding get(nitro_service service, String name) throws Exception{
transformpolicy_binding obj = new transformpolicy_binding();
obj.set_name(name);
transformpolicy_binding response = (transformpolicy_binding) obj.get_resource(service);
return response;
} | java | public static transformpolicy_binding get(nitro_service service, String name) throws Exception{
transformpolicy_binding obj = new transformpolicy_binding();
obj.set_name(name);
transformpolicy_binding response = (transformpolicy_binding) obj.get_resource(service);
return response;
} | [
"public",
"static",
"transformpolicy_binding",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"transformpolicy_binding",
"obj",
"=",
"new",
"transformpolicy_binding",
"(",
")",
";",
"obj",
".",
"set_name",
"(",
"name",
")",
";",
"transformpolicy_binding",
"response",
"=",
"(",
"transformpolicy_binding",
")",
"obj",
".",
"get_resource",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch transformpolicy_binding resource of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"transformpolicy_binding",
"resource",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/transform/transformpolicy_binding.java#L136-L141 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/gslb/gslbvserver_binding.java | gslbvserver_binding.get | public static gslbvserver_binding get(nitro_service service, String name) throws Exception{
gslbvserver_binding obj = new gslbvserver_binding();
obj.set_name(name);
gslbvserver_binding response = (gslbvserver_binding) obj.get_resource(service);
return response;
} | java | public static gslbvserver_binding get(nitro_service service, String name) throws Exception{
gslbvserver_binding obj = new gslbvserver_binding();
obj.set_name(name);
gslbvserver_binding response = (gslbvserver_binding) obj.get_resource(service);
return response;
} | [
"public",
"static",
"gslbvserver_binding",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"gslbvserver_binding",
"obj",
"=",
"new",
"gslbvserver_binding",
"(",
")",
";",
"obj",
".",
"set_name",
"(",
"name",
")",
";",
"gslbvserver_binding",
"response",
"=",
"(",
"gslbvserver_binding",
")",
"obj",
".",
"get_resource",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch gslbvserver_binding resource of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"gslbvserver_binding",
"resource",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/gslb/gslbvserver_binding.java#L125-L130 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/aaa/aaauser_vpnsessionpolicy_binding.java | aaauser_vpnsessionpolicy_binding.get | public static aaauser_vpnsessionpolicy_binding[] get(nitro_service service, String username) throws Exception{
aaauser_vpnsessionpolicy_binding obj = new aaauser_vpnsessionpolicy_binding();
obj.set_username(username);
aaauser_vpnsessionpolicy_binding response[] = (aaauser_vpnsessionpolicy_binding[]) obj.get_resources(service);
return response;
} | java | public static aaauser_vpnsessionpolicy_binding[] get(nitro_service service, String username) throws Exception{
aaauser_vpnsessionpolicy_binding obj = new aaauser_vpnsessionpolicy_binding();
obj.set_username(username);
aaauser_vpnsessionpolicy_binding response[] = (aaauser_vpnsessionpolicy_binding[]) obj.get_resources(service);
return response;
} | [
"public",
"static",
"aaauser_vpnsessionpolicy_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"username",
")",
"throws",
"Exception",
"{",
"aaauser_vpnsessionpolicy_binding",
"obj",
"=",
"new",
"aaauser_vpnsessionpolicy_binding",
"(",
")",
";",
"obj",
".",
"set_username",
"(",
"username",
")",
";",
"aaauser_vpnsessionpolicy_binding",
"response",
"[",
"]",
"=",
"(",
"aaauser_vpnsessionpolicy_binding",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch aaauser_vpnsessionpolicy_binding resources of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"aaauser_vpnsessionpolicy_binding",
"resources",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/aaa/aaauser_vpnsessionpolicy_binding.java#L240-L245 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/tm/tmtrafficpolicy_csvserver_binding.java | tmtrafficpolicy_csvserver_binding.get | public static tmtrafficpolicy_csvserver_binding[] get(nitro_service service, String name) throws Exception{
tmtrafficpolicy_csvserver_binding obj = new tmtrafficpolicy_csvserver_binding();
obj.set_name(name);
tmtrafficpolicy_csvserver_binding response[] = (tmtrafficpolicy_csvserver_binding[]) obj.get_resources(service);
return response;
} | java | public static tmtrafficpolicy_csvserver_binding[] get(nitro_service service, String name) throws Exception{
tmtrafficpolicy_csvserver_binding obj = new tmtrafficpolicy_csvserver_binding();
obj.set_name(name);
tmtrafficpolicy_csvserver_binding response[] = (tmtrafficpolicy_csvserver_binding[]) obj.get_resources(service);
return response;
} | [
"public",
"static",
"tmtrafficpolicy_csvserver_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"tmtrafficpolicy_csvserver_binding",
"obj",
"=",
"new",
"tmtrafficpolicy_csvserver_binding",
"(",
")",
";",
"obj",
".",
"set_name",
"(",
"name",
")",
";",
"tmtrafficpolicy_csvserver_binding",
"response",
"[",
"]",
"=",
"(",
"tmtrafficpolicy_csvserver_binding",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch tmtrafficpolicy_csvserver_binding resources of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"tmtrafficpolicy_csvserver_binding",
"resources",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/tm/tmtrafficpolicy_csvserver_binding.java#L132-L137 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/vpn/vpnclientlessaccesspolicy_vpnglobal_binding.java | vpnclientlessaccesspolicy_vpnglobal_binding.get | public static vpnclientlessaccesspolicy_vpnglobal_binding[] get(nitro_service service, String name) throws Exception{
vpnclientlessaccesspolicy_vpnglobal_binding obj = new vpnclientlessaccesspolicy_vpnglobal_binding();
obj.set_name(name);
vpnclientlessaccesspolicy_vpnglobal_binding response[] = (vpnclientlessaccesspolicy_vpnglobal_binding[]) obj.get_resources(service);
return response;
} | java | public static vpnclientlessaccesspolicy_vpnglobal_binding[] get(nitro_service service, String name) throws Exception{
vpnclientlessaccesspolicy_vpnglobal_binding obj = new vpnclientlessaccesspolicy_vpnglobal_binding();
obj.set_name(name);
vpnclientlessaccesspolicy_vpnglobal_binding response[] = (vpnclientlessaccesspolicy_vpnglobal_binding[]) obj.get_resources(service);
return response;
} | [
"public",
"static",
"vpnclientlessaccesspolicy_vpnglobal_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"vpnclientlessaccesspolicy_vpnglobal_binding",
"obj",
"=",
"new",
"vpnclientlessaccesspolicy_vpnglobal_binding",
"(",
")",
";",
"obj",
".",
"set_name",
"(",
"name",
")",
";",
"vpnclientlessaccesspolicy_vpnglobal_binding",
"response",
"[",
"]",
"=",
"(",
"vpnclientlessaccesspolicy_vpnglobal_binding",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch vpnclientlessaccesspolicy_vpnglobal_binding resources of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"vpnclientlessaccesspolicy_vpnglobal_binding",
"resources",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/vpn/vpnclientlessaccesspolicy_vpnglobal_binding.java#L132-L137 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/stats/MultiClassAccuracyStats.java | MultiClassAccuracyStats.numCorrect | public int numCorrect(int recall) {
int correct = 0;
for (int j = scores.length - 1; j >= scores.length - recall; j--) {
if (isCorrect[j]) {
correct++;
}
}
return correct;
} | java | public int numCorrect(int recall) {
int correct = 0;
for (int j = scores.length - 1; j >= scores.length - recall; j--) {
if (isCorrect[j]) {
correct++;
}
}
return correct;
} | [
"public",
"int",
"numCorrect",
"(",
"int",
"recall",
")",
"{",
"int",
"correct",
"=",
"0",
";",
"for",
"(",
"int",
"j",
"=",
"scores",
".",
"length",
"-",
"1",
";",
"j",
">=",
"scores",
".",
"length",
"-",
"recall",
";",
"j",
"--",
")",
"{",
"if",
"(",
"isCorrect",
"[",
"j",
"]",
")",
"{",
"correct",
"++",
";",
"}",
"}",
"return",
"correct",
";",
"}"
] | how many correct do we have if we return the most confident num recall ones | [
"how",
"many",
"correct",
"do",
"we",
"have",
"if",
"we",
"return",
"the",
"most",
"confident",
"num",
"recall",
"ones"
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/stats/MultiClassAccuracyStats.java#L133-L141 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/tm/tmsessionpolicy_aaagroup_binding.java | tmsessionpolicy_aaagroup_binding.get | public static tmsessionpolicy_aaagroup_binding[] get(nitro_service service, String name) throws Exception{
tmsessionpolicy_aaagroup_binding obj = new tmsessionpolicy_aaagroup_binding();
obj.set_name(name);
tmsessionpolicy_aaagroup_binding response[] = (tmsessionpolicy_aaagroup_binding[]) obj.get_resources(service);
return response;
} | java | public static tmsessionpolicy_aaagroup_binding[] get(nitro_service service, String name) throws Exception{
tmsessionpolicy_aaagroup_binding obj = new tmsessionpolicy_aaagroup_binding();
obj.set_name(name);
tmsessionpolicy_aaagroup_binding response[] = (tmsessionpolicy_aaagroup_binding[]) obj.get_resources(service);
return response;
} | [
"public",
"static",
"tmsessionpolicy_aaagroup_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"tmsessionpolicy_aaagroup_binding",
"obj",
"=",
"new",
"tmsessionpolicy_aaagroup_binding",
"(",
")",
";",
"obj",
".",
"set_name",
"(",
"name",
")",
";",
"tmsessionpolicy_aaagroup_binding",
"response",
"[",
"]",
"=",
"(",
"tmsessionpolicy_aaagroup_binding",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch tmsessionpolicy_aaagroup_binding resources of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"tmsessionpolicy_aaagroup_binding",
"resources",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/tm/tmsessionpolicy_aaagroup_binding.java#L132-L137 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/trees/DependencyTreeTransformer.java | DependencyTreeTransformer.cleanUpLabel | protected String cleanUpLabel(String label) {
if (label == null) {
return ""; // This shouldn't really happen, but can happen if there are unlabeled nodes further down a tree, as apparently happens in at least the 20100730 era American National Corpus
}
boolean nptemp = NPTmpPattern.matcher(label).matches();
boolean npadv = NPAdvPattern.matcher(label).matches();
label = tlp.basicCategory(label);
if (nptemp) {
label = label + "-TMP";
} else if (npadv) {
label = label + "-ADV";
}
return label;
} | java | protected String cleanUpLabel(String label) {
if (label == null) {
return ""; // This shouldn't really happen, but can happen if there are unlabeled nodes further down a tree, as apparently happens in at least the 20100730 era American National Corpus
}
boolean nptemp = NPTmpPattern.matcher(label).matches();
boolean npadv = NPAdvPattern.matcher(label).matches();
label = tlp.basicCategory(label);
if (nptemp) {
label = label + "-TMP";
} else if (npadv) {
label = label + "-ADV";
}
return label;
} | [
"protected",
"String",
"cleanUpLabel",
"(",
"String",
"label",
")",
"{",
"if",
"(",
"label",
"==",
"null",
")",
"{",
"return",
"\"\"",
";",
"// This shouldn't really happen, but can happen if there are unlabeled nodes further down a tree, as apparently happens in at least the 20100730 era American National Corpus\r",
"}",
"boolean",
"nptemp",
"=",
"NPTmpPattern",
".",
"matcher",
"(",
"label",
")",
".",
"matches",
"(",
")",
";",
"boolean",
"npadv",
"=",
"NPAdvPattern",
".",
"matcher",
"(",
"label",
")",
".",
"matches",
"(",
")",
";",
"label",
"=",
"tlp",
".",
"basicCategory",
"(",
"label",
")",
";",
"if",
"(",
"nptemp",
")",
"{",
"label",
"=",
"label",
"+",
"\"-TMP\"",
";",
"}",
"else",
"if",
"(",
"npadv",
")",
"{",
"label",
"=",
"label",
"+",
"\"-ADV\"",
";",
"}",
"return",
"label",
";",
"}"
] | only leaves NP-TMP and NP-ADV | [
"only",
"leaves",
"NP",
"-",
"TMP",
"and",
"NP",
"-",
"ADV"
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/trees/DependencyTreeTransformer.java#L54-L67 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/ie/pascal/AcronymModel.java | AcronymModel.computeProb | public double computeProb(InfoTemplate temp){
return computeProb(temp.wname,temp.wacronym,temp.cname,temp.cacronym,
temp.whomepage, temp.chomepage);
} | java | public double computeProb(InfoTemplate temp){
return computeProb(temp.wname,temp.wacronym,temp.cname,temp.cacronym,
temp.whomepage, temp.chomepage);
} | [
"public",
"double",
"computeProb",
"(",
"InfoTemplate",
"temp",
")",
"{",
"return",
"computeProb",
"(",
"temp",
".",
"wname",
",",
"temp",
".",
"wacronym",
",",
"temp",
".",
"cname",
",",
"temp",
".",
"cacronym",
",",
"temp",
".",
"whomepage",
",",
"temp",
".",
"chomepage",
")",
";",
"}"
] | Scores the partial template containing only the fields relevant to the score.
@param temp the {@link InfoTemplate} to be scored.
@return the model's score | [
"Scores",
"the",
"partial",
"template",
"containing",
"only",
"the",
"fields",
"relevant",
"to",
"the",
"score",
"."
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/ie/pascal/AcronymModel.java#L93-L96 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/authentication/authenticationlocalpolicy_vpnglobal_binding.java | authenticationlocalpolicy_vpnglobal_binding.get | public static authenticationlocalpolicy_vpnglobal_binding[] get(nitro_service service, String name) throws Exception{
authenticationlocalpolicy_vpnglobal_binding obj = new authenticationlocalpolicy_vpnglobal_binding();
obj.set_name(name);
authenticationlocalpolicy_vpnglobal_binding response[] = (authenticationlocalpolicy_vpnglobal_binding[]) obj.get_resources(service);
return response;
} | java | public static authenticationlocalpolicy_vpnglobal_binding[] get(nitro_service service, String name) throws Exception{
authenticationlocalpolicy_vpnglobal_binding obj = new authenticationlocalpolicy_vpnglobal_binding();
obj.set_name(name);
authenticationlocalpolicy_vpnglobal_binding response[] = (authenticationlocalpolicy_vpnglobal_binding[]) obj.get_resources(service);
return response;
} | [
"public",
"static",
"authenticationlocalpolicy_vpnglobal_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"authenticationlocalpolicy_vpnglobal_binding",
"obj",
"=",
"new",
"authenticationlocalpolicy_vpnglobal_binding",
"(",
")",
";",
"obj",
".",
"set_name",
"(",
"name",
")",
";",
"authenticationlocalpolicy_vpnglobal_binding",
"response",
"[",
"]",
"=",
"(",
"authenticationlocalpolicy_vpnglobal_binding",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch authenticationlocalpolicy_vpnglobal_binding resources of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"authenticationlocalpolicy_vpnglobal_binding",
"resources",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/authentication/authenticationlocalpolicy_vpnglobal_binding.java#L132-L137 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/network/ptp.java | ptp.update | public static base_response update(nitro_service client, ptp resource) throws Exception {
ptp updateresource = new ptp();
updateresource.state = resource.state;
return updateresource.update_resource(client);
} | java | public static base_response update(nitro_service client, ptp resource) throws Exception {
ptp updateresource = new ptp();
updateresource.state = resource.state;
return updateresource.update_resource(client);
} | [
"public",
"static",
"base_response",
"update",
"(",
"nitro_service",
"client",
",",
"ptp",
"resource",
")",
"throws",
"Exception",
"{",
"ptp",
"updateresource",
"=",
"new",
"ptp",
"(",
")",
";",
"updateresource",
".",
"state",
"=",
"resource",
".",
"state",
";",
"return",
"updateresource",
".",
"update_resource",
"(",
"client",
")",
";",
"}"
] | Use this API to update ptp. | [
"Use",
"this",
"API",
"to",
"update",
"ptp",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/network/ptp.java#L94-L98 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/network/ptp.java | ptp.get | public static ptp get(nitro_service service) throws Exception{
ptp obj = new ptp();
ptp[] response = (ptp[])obj.get_resources(service);
return response[0];
} | java | public static ptp get(nitro_service service) throws Exception{
ptp obj = new ptp();
ptp[] response = (ptp[])obj.get_resources(service);
return response[0];
} | [
"public",
"static",
"ptp",
"get",
"(",
"nitro_service",
"service",
")",
"throws",
"Exception",
"{",
"ptp",
"obj",
"=",
"new",
"ptp",
"(",
")",
";",
"ptp",
"[",
"]",
"response",
"=",
"(",
"ptp",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
"[",
"0",
"]",
";",
"}"
] | Use this API to fetch all the ptp resources that are configured on netscaler. | [
"Use",
"this",
"API",
"to",
"fetch",
"all",
"the",
"ptp",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/network/ptp.java#L103-L107 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nsratecontrol.java | nsratecontrol.update | public static base_response update(nitro_service client, nsratecontrol resource) throws Exception {
nsratecontrol updateresource = new nsratecontrol();
updateresource.tcpthreshold = resource.tcpthreshold;
updateresource.udpthreshold = resource.udpthreshold;
updateresource.icmpthreshold = resource.icmpthreshold;
updateresource.tcprstthreshold = resource.tcprstthreshold;
return updateresource.update_resource(client);
} | java | public static base_response update(nitro_service client, nsratecontrol resource) throws Exception {
nsratecontrol updateresource = new nsratecontrol();
updateresource.tcpthreshold = resource.tcpthreshold;
updateresource.udpthreshold = resource.udpthreshold;
updateresource.icmpthreshold = resource.icmpthreshold;
updateresource.tcprstthreshold = resource.tcprstthreshold;
return updateresource.update_resource(client);
} | [
"public",
"static",
"base_response",
"update",
"(",
"nitro_service",
"client",
",",
"nsratecontrol",
"resource",
")",
"throws",
"Exception",
"{",
"nsratecontrol",
"updateresource",
"=",
"new",
"nsratecontrol",
"(",
")",
";",
"updateresource",
".",
"tcpthreshold",
"=",
"resource",
".",
"tcpthreshold",
";",
"updateresource",
".",
"udpthreshold",
"=",
"resource",
".",
"udpthreshold",
";",
"updateresource",
".",
"icmpthreshold",
"=",
"resource",
".",
"icmpthreshold",
";",
"updateresource",
".",
"tcprstthreshold",
"=",
"resource",
".",
"tcprstthreshold",
";",
"return",
"updateresource",
".",
"update_resource",
"(",
"client",
")",
";",
"}"
] | Use this API to update nsratecontrol. | [
"Use",
"this",
"API",
"to",
"update",
"nsratecontrol",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nsratecontrol.java#L187-L194 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nsratecontrol.java | nsratecontrol.unset | public static base_response unset(nitro_service client, nsratecontrol resource, String[] args) throws Exception{
nsratecontrol unsetresource = new nsratecontrol();
return unsetresource.unset_resource(client,args);
} | java | public static base_response unset(nitro_service client, nsratecontrol resource, String[] args) throws Exception{
nsratecontrol unsetresource = new nsratecontrol();
return unsetresource.unset_resource(client,args);
} | [
"public",
"static",
"base_response",
"unset",
"(",
"nitro_service",
"client",
",",
"nsratecontrol",
"resource",
",",
"String",
"[",
"]",
"args",
")",
"throws",
"Exception",
"{",
"nsratecontrol",
"unsetresource",
"=",
"new",
"nsratecontrol",
"(",
")",
";",
"return",
"unsetresource",
".",
"unset_resource",
"(",
"client",
",",
"args",
")",
";",
"}"
] | Use this API to unset the properties of nsratecontrol resource.
Properties that need to be unset are specified in args array. | [
"Use",
"this",
"API",
"to",
"unset",
"the",
"properties",
"of",
"nsratecontrol",
"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/nsratecontrol.java#L200-L203 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nsratecontrol.java | nsratecontrol.get | public static nsratecontrol get(nitro_service service, options option) throws Exception{
nsratecontrol obj = new nsratecontrol();
nsratecontrol[] response = (nsratecontrol[])obj.get_resources(service,option);
return response[0];
} | java | public static nsratecontrol get(nitro_service service, options option) throws Exception{
nsratecontrol obj = new nsratecontrol();
nsratecontrol[] response = (nsratecontrol[])obj.get_resources(service,option);
return response[0];
} | [
"public",
"static",
"nsratecontrol",
"get",
"(",
"nitro_service",
"service",
",",
"options",
"option",
")",
"throws",
"Exception",
"{",
"nsratecontrol",
"obj",
"=",
"new",
"nsratecontrol",
"(",
")",
";",
"nsratecontrol",
"[",
"]",
"response",
"=",
"(",
"nsratecontrol",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
",",
"option",
")",
";",
"return",
"response",
"[",
"0",
"]",
";",
"}"
] | Use this API to fetch all the nsratecontrol resources that are configured on netscaler. | [
"Use",
"this",
"API",
"to",
"fetch",
"all",
"the",
"nsratecontrol",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nsratecontrol.java#L217-L221 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/vpn/vpnglobal_sharefileserver_binding.java | vpnglobal_sharefileserver_binding.get | public static vpnglobal_sharefileserver_binding[] get(nitro_service service) throws Exception{
vpnglobal_sharefileserver_binding obj = new vpnglobal_sharefileserver_binding();
vpnglobal_sharefileserver_binding response[] = (vpnglobal_sharefileserver_binding[]) obj.get_resources(service);
return response;
} | java | public static vpnglobal_sharefileserver_binding[] get(nitro_service service) throws Exception{
vpnglobal_sharefileserver_binding obj = new vpnglobal_sharefileserver_binding();
vpnglobal_sharefileserver_binding response[] = (vpnglobal_sharefileserver_binding[]) obj.get_resources(service);
return response;
} | [
"public",
"static",
"vpnglobal_sharefileserver_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
")",
"throws",
"Exception",
"{",
"vpnglobal_sharefileserver_binding",
"obj",
"=",
"new",
"vpnglobal_sharefileserver_binding",
"(",
")",
";",
"vpnglobal_sharefileserver_binding",
"response",
"[",
"]",
"=",
"(",
"vpnglobal_sharefileserver_binding",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch a vpnglobal_sharefileserver_binding resources. | [
"Use",
"this",
"API",
"to",
"fetch",
"a",
"vpnglobal_sharefileserver_binding",
"resources",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/vpn/vpnglobal_sharefileserver_binding.java#L131-L135 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/appflow/appflowparam.java | appflowparam.update | public static base_response update(nitro_service client, appflowparam resource) throws Exception {
appflowparam updateresource = new appflowparam();
updateresource.templaterefresh = resource.templaterefresh;
updateresource.appnamerefresh = resource.appnamerefresh;
updateresource.flowrecordinterval = resource.flowrecordinterval;
updateresource.udppmtu = resource.udppmtu;
updateresource.httpurl = resource.httpurl;
updateresource.aaausername = resource.aaausername;
updateresource.httpcookie = resource.httpcookie;
updateresource.httpreferer = resource.httpreferer;
updateresource.httpmethod = resource.httpmethod;
updateresource.httphost = resource.httphost;
updateresource.httpuseragent = resource.httpuseragent;
updateresource.clienttrafficonly = resource.clienttrafficonly;
updateresource.httpcontenttype = resource.httpcontenttype;
updateresource.httpauthorization = resource.httpauthorization;
updateresource.httpvia = resource.httpvia;
updateresource.httpxforwardedfor = resource.httpxforwardedfor;
updateresource.httplocation = resource.httplocation;
updateresource.httpsetcookie = resource.httpsetcookie;
updateresource.httpsetcookie2 = resource.httpsetcookie2;
updateresource.connectionchaining = resource.connectionchaining;
return updateresource.update_resource(client);
} | java | public static base_response update(nitro_service client, appflowparam resource) throws Exception {
appflowparam updateresource = new appflowparam();
updateresource.templaterefresh = resource.templaterefresh;
updateresource.appnamerefresh = resource.appnamerefresh;
updateresource.flowrecordinterval = resource.flowrecordinterval;
updateresource.udppmtu = resource.udppmtu;
updateresource.httpurl = resource.httpurl;
updateresource.aaausername = resource.aaausername;
updateresource.httpcookie = resource.httpcookie;
updateresource.httpreferer = resource.httpreferer;
updateresource.httpmethod = resource.httpmethod;
updateresource.httphost = resource.httphost;
updateresource.httpuseragent = resource.httpuseragent;
updateresource.clienttrafficonly = resource.clienttrafficonly;
updateresource.httpcontenttype = resource.httpcontenttype;
updateresource.httpauthorization = resource.httpauthorization;
updateresource.httpvia = resource.httpvia;
updateresource.httpxforwardedfor = resource.httpxforwardedfor;
updateresource.httplocation = resource.httplocation;
updateresource.httpsetcookie = resource.httpsetcookie;
updateresource.httpsetcookie2 = resource.httpsetcookie2;
updateresource.connectionchaining = resource.connectionchaining;
return updateresource.update_resource(client);
} | [
"public",
"static",
"base_response",
"update",
"(",
"nitro_service",
"client",
",",
"appflowparam",
"resource",
")",
"throws",
"Exception",
"{",
"appflowparam",
"updateresource",
"=",
"new",
"appflowparam",
"(",
")",
";",
"updateresource",
".",
"templaterefresh",
"=",
"resource",
".",
"templaterefresh",
";",
"updateresource",
".",
"appnamerefresh",
"=",
"resource",
".",
"appnamerefresh",
";",
"updateresource",
".",
"flowrecordinterval",
"=",
"resource",
".",
"flowrecordinterval",
";",
"updateresource",
".",
"udppmtu",
"=",
"resource",
".",
"udppmtu",
";",
"updateresource",
".",
"httpurl",
"=",
"resource",
".",
"httpurl",
";",
"updateresource",
".",
"aaausername",
"=",
"resource",
".",
"aaausername",
";",
"updateresource",
".",
"httpcookie",
"=",
"resource",
".",
"httpcookie",
";",
"updateresource",
".",
"httpreferer",
"=",
"resource",
".",
"httpreferer",
";",
"updateresource",
".",
"httpmethod",
"=",
"resource",
".",
"httpmethod",
";",
"updateresource",
".",
"httphost",
"=",
"resource",
".",
"httphost",
";",
"updateresource",
".",
"httpuseragent",
"=",
"resource",
".",
"httpuseragent",
";",
"updateresource",
".",
"clienttrafficonly",
"=",
"resource",
".",
"clienttrafficonly",
";",
"updateresource",
".",
"httpcontenttype",
"=",
"resource",
".",
"httpcontenttype",
";",
"updateresource",
".",
"httpauthorization",
"=",
"resource",
".",
"httpauthorization",
";",
"updateresource",
".",
"httpvia",
"=",
"resource",
".",
"httpvia",
";",
"updateresource",
".",
"httpxforwardedfor",
"=",
"resource",
".",
"httpxforwardedfor",
";",
"updateresource",
".",
"httplocation",
"=",
"resource",
".",
"httplocation",
";",
"updateresource",
".",
"httpsetcookie",
"=",
"resource",
".",
"httpsetcookie",
";",
"updateresource",
".",
"httpsetcookie2",
"=",
"resource",
".",
"httpsetcookie2",
";",
"updateresource",
".",
"connectionchaining",
"=",
"resource",
".",
"connectionchaining",
";",
"return",
"updateresource",
".",
"update_resource",
"(",
"client",
")",
";",
"}"
] | Use this API to update appflowparam. | [
"Use",
"this",
"API",
"to",
"update",
"appflowparam",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/appflow/appflowparam.java#L491-L514 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/appflow/appflowparam.java | appflowparam.unset | public static base_response unset(nitro_service client, appflowparam resource, String[] args) throws Exception{
appflowparam unsetresource = new appflowparam();
return unsetresource.unset_resource(client,args);
} | java | public static base_response unset(nitro_service client, appflowparam resource, String[] args) throws Exception{
appflowparam unsetresource = new appflowparam();
return unsetresource.unset_resource(client,args);
} | [
"public",
"static",
"base_response",
"unset",
"(",
"nitro_service",
"client",
",",
"appflowparam",
"resource",
",",
"String",
"[",
"]",
"args",
")",
"throws",
"Exception",
"{",
"appflowparam",
"unsetresource",
"=",
"new",
"appflowparam",
"(",
")",
";",
"return",
"unsetresource",
".",
"unset_resource",
"(",
"client",
",",
"args",
")",
";",
"}"
] | Use this API to unset the properties of appflowparam resource.
Properties that need to be unset are specified in args array. | [
"Use",
"this",
"API",
"to",
"unset",
"the",
"properties",
"of",
"appflowparam",
"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/appflow/appflowparam.java#L520-L523 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/appflow/appflowparam.java | appflowparam.get | public static appflowparam get(nitro_service service) throws Exception{
appflowparam obj = new appflowparam();
appflowparam[] response = (appflowparam[])obj.get_resources(service);
return response[0];
} | java | public static appflowparam get(nitro_service service) throws Exception{
appflowparam obj = new appflowparam();
appflowparam[] response = (appflowparam[])obj.get_resources(service);
return response[0];
} | [
"public",
"static",
"appflowparam",
"get",
"(",
"nitro_service",
"service",
")",
"throws",
"Exception",
"{",
"appflowparam",
"obj",
"=",
"new",
"appflowparam",
"(",
")",
";",
"appflowparam",
"[",
"]",
"response",
"=",
"(",
"appflowparam",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
"[",
"0",
"]",
";",
"}"
] | Use this API to fetch all the appflowparam resources that are configured on netscaler. | [
"Use",
"this",
"API",
"to",
"fetch",
"all",
"the",
"appflowparam",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/appflow/appflowparam.java#L528-L532 | train |
wellner/jcarafe | jcarafe-core/src/main/java/cern/colt/list/BooleanArrayList.java | BooleanArrayList.removeAll | public boolean removeAll(AbstractBooleanList other) {
// overridden for performance only.
if (! (other instanceof BooleanArrayList)) return super.removeAll(other);
/* There are two possibilities to do the thing
a) use other.indexOf(...)
b) sort other, then use other.binarySearch(...)
Let's try to figure out which one is faster. Let M=size, N=other.size, then
a) takes O(M*N) steps
b) takes O(N*logN + M*logN) steps (sorting is O(N*logN) and binarySearch is O(logN))
Hence, if N*logN + M*logN < M*N, we use b) otherwise we use a).
*/
if (other.size()==0) {return false;} //nothing to do
int limit = other.size()-1;
int j=0;
boolean[] theElements = elements;
int mySize = size();
double N=(double) other.size();
double M=(double) mySize;
if ( (N+M)*cern.colt.Math.log2(N) < M*N ) {
// it is faster to sort other before searching in it
BooleanArrayList sortedList = (BooleanArrayList) other.clone();
sortedList.quickSort();
for (int i=0; i<mySize ; i++) {
if (sortedList.binarySearchFromTo(theElements[i], 0, limit) < 0) theElements[j++]=theElements[i];
}
}
else {
// it is faster to search in other without sorting
for (int i=0; i<mySize ; i++) {
if (other.indexOfFromTo(theElements[i], 0, limit) < 0) theElements[j++]=theElements[i];
}
}
boolean modified = (j!=mySize);
setSize(j);
return modified;
} | java | public boolean removeAll(AbstractBooleanList other) {
// overridden for performance only.
if (! (other instanceof BooleanArrayList)) return super.removeAll(other);
/* There are two possibilities to do the thing
a) use other.indexOf(...)
b) sort other, then use other.binarySearch(...)
Let's try to figure out which one is faster. Let M=size, N=other.size, then
a) takes O(M*N) steps
b) takes O(N*logN + M*logN) steps (sorting is O(N*logN) and binarySearch is O(logN))
Hence, if N*logN + M*logN < M*N, we use b) otherwise we use a).
*/
if (other.size()==0) {return false;} //nothing to do
int limit = other.size()-1;
int j=0;
boolean[] theElements = elements;
int mySize = size();
double N=(double) other.size();
double M=(double) mySize;
if ( (N+M)*cern.colt.Math.log2(N) < M*N ) {
// it is faster to sort other before searching in it
BooleanArrayList sortedList = (BooleanArrayList) other.clone();
sortedList.quickSort();
for (int i=0; i<mySize ; i++) {
if (sortedList.binarySearchFromTo(theElements[i], 0, limit) < 0) theElements[j++]=theElements[i];
}
}
else {
// it is faster to search in other without sorting
for (int i=0; i<mySize ; i++) {
if (other.indexOfFromTo(theElements[i], 0, limit) < 0) theElements[j++]=theElements[i];
}
}
boolean modified = (j!=mySize);
setSize(j);
return modified;
} | [
"public",
"boolean",
"removeAll",
"(",
"AbstractBooleanList",
"other",
")",
"{",
"// overridden for performance only.\r",
"if",
"(",
"!",
"(",
"other",
"instanceof",
"BooleanArrayList",
")",
")",
"return",
"super",
".",
"removeAll",
"(",
"other",
")",
";",
"/* There are two possibilities to do the thing\r\n\t a) use other.indexOf(...)\r\n\t b) sort other, then use other.binarySearch(...)\r\n\t \r\n\t Let's try to figure out which one is faster. Let M=size, N=other.size, then\r\n\t a) takes O(M*N) steps\r\n\t b) takes O(N*logN + M*logN) steps (sorting is O(N*logN) and binarySearch is O(logN))\r\n \r\n\t Hence, if N*logN + M*logN < M*N, we use b) otherwise we use a).\r\n\t*/",
"if",
"(",
"other",
".",
"size",
"(",
")",
"==",
"0",
")",
"{",
"return",
"false",
";",
"}",
"//nothing to do\r",
"int",
"limit",
"=",
"other",
".",
"size",
"(",
")",
"-",
"1",
";",
"int",
"j",
"=",
"0",
";",
"boolean",
"[",
"]",
"theElements",
"=",
"elements",
";",
"int",
"mySize",
"=",
"size",
"(",
")",
";",
"double",
"N",
"=",
"(",
"double",
")",
"other",
".",
"size",
"(",
")",
";",
"double",
"M",
"=",
"(",
"double",
")",
"mySize",
";",
"if",
"(",
"(",
"N",
"+",
"M",
")",
"*",
"cern",
".",
"colt",
".",
"Math",
".",
"log2",
"(",
"N",
")",
"<",
"M",
"*",
"N",
")",
"{",
"// it is faster to sort other before searching in it\r",
"BooleanArrayList",
"sortedList",
"=",
"(",
"BooleanArrayList",
")",
"other",
".",
"clone",
"(",
")",
";",
"sortedList",
".",
"quickSort",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"mySize",
";",
"i",
"++",
")",
"{",
"if",
"(",
"sortedList",
".",
"binarySearchFromTo",
"(",
"theElements",
"[",
"i",
"]",
",",
"0",
",",
"limit",
")",
"<",
"0",
")",
"theElements",
"[",
"j",
"++",
"]",
"=",
"theElements",
"[",
"i",
"]",
";",
"}",
"}",
"else",
"{",
"// it is faster to search in other without sorting\r",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"mySize",
";",
"i",
"++",
")",
"{",
"if",
"(",
"other",
".",
"indexOfFromTo",
"(",
"theElements",
"[",
"i",
"]",
",",
"0",
",",
"limit",
")",
"<",
"0",
")",
"theElements",
"[",
"j",
"++",
"]",
"=",
"theElements",
"[",
"i",
"]",
";",
"}",
"}",
"boolean",
"modified",
"=",
"(",
"j",
"!=",
"mySize",
")",
";",
"setSize",
"(",
"j",
")",
";",
"return",
"modified",
";",
"}"
] | Removes from the receiver all elements that are contained in the specified list.
Tests for identity.
@param other the other list.
@return <code>true</code> if the receiver changed as a result of the call. | [
"Removes",
"from",
"the",
"receiver",
"all",
"elements",
"that",
"are",
"contained",
"in",
"the",
"specified",
"list",
".",
"Tests",
"for",
"identity",
"."
] | ab8b0a83dbf600fe80c27711815c90bd3055b217 | https://github.com/wellner/jcarafe/blob/ab8b0a83dbf600fe80c27711815c90bd3055b217/jcarafe-core/src/main/java/cern/colt/list/BooleanArrayList.java#L313-L354 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/base/configobjects.java | configobjects.get | public static configobjects get(nitro_service service) throws Exception{
configobjects obj = new configobjects();
configobjects[] response = (configobjects[])obj.get_resources(service);
return response[0];
} | java | public static configobjects get(nitro_service service) throws Exception{
configobjects obj = new configobjects();
configobjects[] response = (configobjects[])obj.get_resources(service);
return response[0];
} | [
"public",
"static",
"configobjects",
"get",
"(",
"nitro_service",
"service",
")",
"throws",
"Exception",
"{",
"configobjects",
"obj",
"=",
"new",
"configobjects",
"(",
")",
";",
"configobjects",
"[",
"]",
"response",
"=",
"(",
"configobjects",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
"[",
"0",
"]",
";",
"}"
] | Use this API to fetch all the config objects resources that are available on netscaler. | [
"Use",
"this",
"API",
"to",
"fetch",
"all",
"the",
"config",
"objects",
"resources",
"that",
"are",
"available",
"on",
"netscaler",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/base/configobjects.java#L65-L69 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/authorization/authorizationpolicylabel_authorizationpolicy_binding.java | authorizationpolicylabel_authorizationpolicy_binding.get | public static authorizationpolicylabel_authorizationpolicy_binding[] get(nitro_service service, String labelname) throws Exception{
authorizationpolicylabel_authorizationpolicy_binding obj = new authorizationpolicylabel_authorizationpolicy_binding();
obj.set_labelname(labelname);
authorizationpolicylabel_authorizationpolicy_binding response[] = (authorizationpolicylabel_authorizationpolicy_binding[]) obj.get_resources(service);
return response;
} | java | public static authorizationpolicylabel_authorizationpolicy_binding[] get(nitro_service service, String labelname) throws Exception{
authorizationpolicylabel_authorizationpolicy_binding obj = new authorizationpolicylabel_authorizationpolicy_binding();
obj.set_labelname(labelname);
authorizationpolicylabel_authorizationpolicy_binding response[] = (authorizationpolicylabel_authorizationpolicy_binding[]) obj.get_resources(service);
return response;
} | [
"public",
"static",
"authorizationpolicylabel_authorizationpolicy_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"labelname",
")",
"throws",
"Exception",
"{",
"authorizationpolicylabel_authorizationpolicy_binding",
"obj",
"=",
"new",
"authorizationpolicylabel_authorizationpolicy_binding",
"(",
")",
";",
"obj",
".",
"set_labelname",
"(",
"labelname",
")",
";",
"authorizationpolicylabel_authorizationpolicy_binding",
"response",
"[",
"]",
"=",
"(",
"authorizationpolicylabel_authorizationpolicy_binding",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch authorizationpolicylabel_authorizationpolicy_binding resources of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"authorizationpolicylabel_authorizationpolicy_binding",
"resources",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/authorization/authorizationpolicylabel_authorizationpolicy_binding.java#L285-L290 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/authentication/authenticationvserver_auditsyslogpolicy_binding.java | authenticationvserver_auditsyslogpolicy_binding.get | public static authenticationvserver_auditsyslogpolicy_binding[] get(nitro_service service, String name) throws Exception{
authenticationvserver_auditsyslogpolicy_binding obj = new authenticationvserver_auditsyslogpolicy_binding();
obj.set_name(name);
authenticationvserver_auditsyslogpolicy_binding response[] = (authenticationvserver_auditsyslogpolicy_binding[]) obj.get_resources(service);
return response;
} | java | public static authenticationvserver_auditsyslogpolicy_binding[] get(nitro_service service, String name) throws Exception{
authenticationvserver_auditsyslogpolicy_binding obj = new authenticationvserver_auditsyslogpolicy_binding();
obj.set_name(name);
authenticationvserver_auditsyslogpolicy_binding response[] = (authenticationvserver_auditsyslogpolicy_binding[]) obj.get_resources(service);
return response;
} | [
"public",
"static",
"authenticationvserver_auditsyslogpolicy_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"authenticationvserver_auditsyslogpolicy_binding",
"obj",
"=",
"new",
"authenticationvserver_auditsyslogpolicy_binding",
"(",
")",
";",
"obj",
".",
"set_name",
"(",
"name",
")",
";",
"authenticationvserver_auditsyslogpolicy_binding",
"response",
"[",
"]",
"=",
"(",
"authenticationvserver_auditsyslogpolicy_binding",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch authenticationvserver_auditsyslogpolicy_binding resources of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"authenticationvserver_auditsyslogpolicy_binding",
"resources",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/authentication/authenticationvserver_auditsyslogpolicy_binding.java#L254-L259 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/gslb/gslbvserver_gslbservice_binding.java | gslbvserver_gslbservice_binding.get | public static gslbvserver_gslbservice_binding[] get(nitro_service service, String name) throws Exception{
gslbvserver_gslbservice_binding obj = new gslbvserver_gslbservice_binding();
obj.set_name(name);
gslbvserver_gslbservice_binding response[] = (gslbvserver_gslbservice_binding[]) obj.get_resources(service);
return response;
} | java | public static gslbvserver_gslbservice_binding[] get(nitro_service service, String name) throws Exception{
gslbvserver_gslbservice_binding obj = new gslbvserver_gslbservice_binding();
obj.set_name(name);
gslbvserver_gslbservice_binding response[] = (gslbvserver_gslbservice_binding[]) obj.get_resources(service);
return response;
} | [
"public",
"static",
"gslbvserver_gslbservice_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"gslbvserver_gslbservice_binding",
"obj",
"=",
"new",
"gslbvserver_gslbservice_binding",
"(",
")",
";",
"obj",
".",
"set_name",
"(",
"name",
")",
";",
"gslbvserver_gslbservice_binding",
"response",
"[",
"]",
"=",
"(",
"gslbvserver_gslbservice_binding",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch gslbvserver_gslbservice_binding resources of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"gslbvserver_gslbservice_binding",
"resources",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/gslb/gslbvserver_gslbservice_binding.java#L337-L342 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/rewrite/rewriteglobal_rewritepolicy_binding.java | rewriteglobal_rewritepolicy_binding.get | public static rewriteglobal_rewritepolicy_binding[] get(nitro_service service) throws Exception{
rewriteglobal_rewritepolicy_binding obj = new rewriteglobal_rewritepolicy_binding();
rewriteglobal_rewritepolicy_binding response[] = (rewriteglobal_rewritepolicy_binding[]) obj.get_resources(service);
return response;
} | java | public static rewriteglobal_rewritepolicy_binding[] get(nitro_service service) throws Exception{
rewriteglobal_rewritepolicy_binding obj = new rewriteglobal_rewritepolicy_binding();
rewriteglobal_rewritepolicy_binding response[] = (rewriteglobal_rewritepolicy_binding[]) obj.get_resources(service);
return response;
} | [
"public",
"static",
"rewriteglobal_rewritepolicy_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
")",
"throws",
"Exception",
"{",
"rewriteglobal_rewritepolicy_binding",
"obj",
"=",
"new",
"rewriteglobal_rewritepolicy_binding",
"(",
")",
";",
"rewriteglobal_rewritepolicy_binding",
"response",
"[",
"]",
"=",
"(",
"rewriteglobal_rewritepolicy_binding",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch a rewriteglobal_rewritepolicy_binding resources. | [
"Use",
"this",
"API",
"to",
"fetch",
"a",
"rewriteglobal_rewritepolicy_binding",
"resources",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/rewrite/rewriteglobal_rewritepolicy_binding.java#L307-L311 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/util/logging/PrettyLogger.java | PrettyLogger.log | public static void log(RedwoodChannels channels, Object obj) {
log(channels, obj.getClass().getSimpleName(), obj);
} | java | public static void log(RedwoodChannels channels, Object obj) {
log(channels, obj.getClass().getSimpleName(), obj);
} | [
"public",
"static",
"void",
"log",
"(",
"RedwoodChannels",
"channels",
",",
"Object",
"obj",
")",
"{",
"log",
"(",
"channels",
",",
"obj",
".",
"getClass",
"(",
")",
".",
"getSimpleName",
"(",
")",
",",
"obj",
")",
";",
"}"
] | Pretty log an object. Its class name will be used as a description.
@param channels
the channels to pretty log to
@param obj
the object to be pretty logged | [
"Pretty",
"log",
"an",
"object",
".",
"Its",
"class",
"name",
"will",
"be",
"used",
"as",
"a",
"description",
"."
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/util/logging/PrettyLogger.java#L65-L67 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/network/arp.java | arp.add | public static base_response add(nitro_service client, arp resource) throws Exception {
arp addresource = new arp();
addresource.ipaddress = resource.ipaddress;
addresource.td = resource.td;
addresource.mac = resource.mac;
addresource.ifnum = resource.ifnum;
addresource.ownernode = resource.ownernode;
return addresource.add_resource(client);
} | java | public static base_response add(nitro_service client, arp resource) throws Exception {
arp addresource = new arp();
addresource.ipaddress = resource.ipaddress;
addresource.td = resource.td;
addresource.mac = resource.mac;
addresource.ifnum = resource.ifnum;
addresource.ownernode = resource.ownernode;
return addresource.add_resource(client);
} | [
"public",
"static",
"base_response",
"add",
"(",
"nitro_service",
"client",
",",
"arp",
"resource",
")",
"throws",
"Exception",
"{",
"arp",
"addresource",
"=",
"new",
"arp",
"(",
")",
";",
"addresource",
".",
"ipaddress",
"=",
"resource",
".",
"ipaddress",
";",
"addresource",
".",
"td",
"=",
"resource",
".",
"td",
";",
"addresource",
".",
"mac",
"=",
"resource",
".",
"mac",
";",
"addresource",
".",
"ifnum",
"=",
"resource",
".",
"ifnum",
";",
"addresource",
".",
"ownernode",
"=",
"resource",
".",
"ownernode",
";",
"return",
"addresource",
".",
"add_resource",
"(",
"client",
")",
";",
"}"
] | Use this API to add arp. | [
"Use",
"this",
"API",
"to",
"add",
"arp",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/network/arp.java#L278-L286 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/network/arp.java | arp.add | public static base_responses add(nitro_service client, arp resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
arp addresources[] = new arp[resources.length];
for (int i=0;i<resources.length;i++){
addresources[i] = new arp();
addresources[i].ipaddress = resources[i].ipaddress;
addresources[i].td = resources[i].td;
addresources[i].mac = resources[i].mac;
addresources[i].ifnum = resources[i].ifnum;
addresources[i].ownernode = resources[i].ownernode;
}
result = add_bulk_request(client, addresources);
}
return result;
} | java | public static base_responses add(nitro_service client, arp resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
arp addresources[] = new arp[resources.length];
for (int i=0;i<resources.length;i++){
addresources[i] = new arp();
addresources[i].ipaddress = resources[i].ipaddress;
addresources[i].td = resources[i].td;
addresources[i].mac = resources[i].mac;
addresources[i].ifnum = resources[i].ifnum;
addresources[i].ownernode = resources[i].ownernode;
}
result = add_bulk_request(client, addresources);
}
return result;
} | [
"public",
"static",
"base_responses",
"add",
"(",
"nitro_service",
"client",
",",
"arp",
"resources",
"[",
"]",
")",
"throws",
"Exception",
"{",
"base_responses",
"result",
"=",
"null",
";",
"if",
"(",
"resources",
"!=",
"null",
"&&",
"resources",
".",
"length",
">",
"0",
")",
"{",
"arp",
"addresources",
"[",
"]",
"=",
"new",
"arp",
"[",
"resources",
".",
"length",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"resources",
".",
"length",
";",
"i",
"++",
")",
"{",
"addresources",
"[",
"i",
"]",
"=",
"new",
"arp",
"(",
")",
";",
"addresources",
"[",
"i",
"]",
".",
"ipaddress",
"=",
"resources",
"[",
"i",
"]",
".",
"ipaddress",
";",
"addresources",
"[",
"i",
"]",
".",
"td",
"=",
"resources",
"[",
"i",
"]",
".",
"td",
";",
"addresources",
"[",
"i",
"]",
".",
"mac",
"=",
"resources",
"[",
"i",
"]",
".",
"mac",
";",
"addresources",
"[",
"i",
"]",
".",
"ifnum",
"=",
"resources",
"[",
"i",
"]",
".",
"ifnum",
";",
"addresources",
"[",
"i",
"]",
".",
"ownernode",
"=",
"resources",
"[",
"i",
"]",
".",
"ownernode",
";",
"}",
"result",
"=",
"add_bulk_request",
"(",
"client",
",",
"addresources",
")",
";",
"}",
"return",
"result",
";",
"}"
] | Use this API to add arp resources. | [
"Use",
"this",
"API",
"to",
"add",
"arp",
"resources",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/network/arp.java#L291-L306 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/network/arp.java | arp.delete | public static base_response delete(nitro_service client, arp resource) throws Exception {
arp deleteresource = new arp();
deleteresource.ipaddress = resource.ipaddress;
deleteresource.td = resource.td;
deleteresource.all = resource.all;
deleteresource.ownernode = resource.ownernode;
return deleteresource.delete_resource(client);
} | java | public static base_response delete(nitro_service client, arp resource) throws Exception {
arp deleteresource = new arp();
deleteresource.ipaddress = resource.ipaddress;
deleteresource.td = resource.td;
deleteresource.all = resource.all;
deleteresource.ownernode = resource.ownernode;
return deleteresource.delete_resource(client);
} | [
"public",
"static",
"base_response",
"delete",
"(",
"nitro_service",
"client",
",",
"arp",
"resource",
")",
"throws",
"Exception",
"{",
"arp",
"deleteresource",
"=",
"new",
"arp",
"(",
")",
";",
"deleteresource",
".",
"ipaddress",
"=",
"resource",
".",
"ipaddress",
";",
"deleteresource",
".",
"td",
"=",
"resource",
".",
"td",
";",
"deleteresource",
".",
"all",
"=",
"resource",
".",
"all",
";",
"deleteresource",
".",
"ownernode",
"=",
"resource",
".",
"ownernode",
";",
"return",
"deleteresource",
".",
"delete_resource",
"(",
"client",
")",
";",
"}"
] | Use this API to delete arp. | [
"Use",
"this",
"API",
"to",
"delete",
"arp",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/network/arp.java#L320-L327 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/network/arp.java | arp.delete | public static base_responses delete(nitro_service client, arp resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
arp deleteresources[] = new arp[resources.length];
for (int i=0;i<resources.length;i++){
deleteresources[i] = new arp();
deleteresources[i].ipaddress = resources[i].ipaddress;
deleteresources[i].td = resources[i].td;
deleteresources[i].all = resources[i].all;
deleteresources[i].ownernode = resources[i].ownernode;
}
result = delete_bulk_request(client, deleteresources);
}
return result;
} | java | public static base_responses delete(nitro_service client, arp resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
arp deleteresources[] = new arp[resources.length];
for (int i=0;i<resources.length;i++){
deleteresources[i] = new arp();
deleteresources[i].ipaddress = resources[i].ipaddress;
deleteresources[i].td = resources[i].td;
deleteresources[i].all = resources[i].all;
deleteresources[i].ownernode = resources[i].ownernode;
}
result = delete_bulk_request(client, deleteresources);
}
return result;
} | [
"public",
"static",
"base_responses",
"delete",
"(",
"nitro_service",
"client",
",",
"arp",
"resources",
"[",
"]",
")",
"throws",
"Exception",
"{",
"base_responses",
"result",
"=",
"null",
";",
"if",
"(",
"resources",
"!=",
"null",
"&&",
"resources",
".",
"length",
">",
"0",
")",
"{",
"arp",
"deleteresources",
"[",
"]",
"=",
"new",
"arp",
"[",
"resources",
".",
"length",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"resources",
".",
"length",
";",
"i",
"++",
")",
"{",
"deleteresources",
"[",
"i",
"]",
"=",
"new",
"arp",
"(",
")",
";",
"deleteresources",
"[",
"i",
"]",
".",
"ipaddress",
"=",
"resources",
"[",
"i",
"]",
".",
"ipaddress",
";",
"deleteresources",
"[",
"i",
"]",
".",
"td",
"=",
"resources",
"[",
"i",
"]",
".",
"td",
";",
"deleteresources",
"[",
"i",
"]",
".",
"all",
"=",
"resources",
"[",
"i",
"]",
".",
"all",
";",
"deleteresources",
"[",
"i",
"]",
".",
"ownernode",
"=",
"resources",
"[",
"i",
"]",
".",
"ownernode",
";",
"}",
"result",
"=",
"delete_bulk_request",
"(",
"client",
",",
"deleteresources",
")",
";",
"}",
"return",
"result",
";",
"}"
] | Use this API to delete arp resources. | [
"Use",
"this",
"API",
"to",
"delete",
"arp",
"resources",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/network/arp.java#L348-L362 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/network/arp.java | arp.send | public static base_response send(nitro_service client, arp resource) throws Exception {
arp sendresource = new arp();
sendresource.ipaddress = resource.ipaddress;
sendresource.td = resource.td;
sendresource.all = resource.all;
return sendresource.perform_operation(client,"send");
} | java | public static base_response send(nitro_service client, arp resource) throws Exception {
arp sendresource = new arp();
sendresource.ipaddress = resource.ipaddress;
sendresource.td = resource.td;
sendresource.all = resource.all;
return sendresource.perform_operation(client,"send");
} | [
"public",
"static",
"base_response",
"send",
"(",
"nitro_service",
"client",
",",
"arp",
"resource",
")",
"throws",
"Exception",
"{",
"arp",
"sendresource",
"=",
"new",
"arp",
"(",
")",
";",
"sendresource",
".",
"ipaddress",
"=",
"resource",
".",
"ipaddress",
";",
"sendresource",
".",
"td",
"=",
"resource",
".",
"td",
";",
"sendresource",
".",
"all",
"=",
"resource",
".",
"all",
";",
"return",
"sendresource",
".",
"perform_operation",
"(",
"client",
",",
"\"send\"",
")",
";",
"}"
] | Use this API to send arp. | [
"Use",
"this",
"API",
"to",
"send",
"arp",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/network/arp.java#L367-L373 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/network/arp.java | arp.send | public static base_responses send(nitro_service client, arp resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
arp sendresources[] = new arp[resources.length];
for (int i=0;i<resources.length;i++){
sendresources[i] = new arp();
sendresources[i].ipaddress = resources[i].ipaddress;
sendresources[i].td = resources[i].td;
sendresources[i].all = resources[i].all;
}
result = perform_operation_bulk_request(client, sendresources,"send");
}
return result;
} | java | public static base_responses send(nitro_service client, arp resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
arp sendresources[] = new arp[resources.length];
for (int i=0;i<resources.length;i++){
sendresources[i] = new arp();
sendresources[i].ipaddress = resources[i].ipaddress;
sendresources[i].td = resources[i].td;
sendresources[i].all = resources[i].all;
}
result = perform_operation_bulk_request(client, sendresources,"send");
}
return result;
} | [
"public",
"static",
"base_responses",
"send",
"(",
"nitro_service",
"client",
",",
"arp",
"resources",
"[",
"]",
")",
"throws",
"Exception",
"{",
"base_responses",
"result",
"=",
"null",
";",
"if",
"(",
"resources",
"!=",
"null",
"&&",
"resources",
".",
"length",
">",
"0",
")",
"{",
"arp",
"sendresources",
"[",
"]",
"=",
"new",
"arp",
"[",
"resources",
".",
"length",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"resources",
".",
"length",
";",
"i",
"++",
")",
"{",
"sendresources",
"[",
"i",
"]",
"=",
"new",
"arp",
"(",
")",
";",
"sendresources",
"[",
"i",
"]",
".",
"ipaddress",
"=",
"resources",
"[",
"i",
"]",
".",
"ipaddress",
";",
"sendresources",
"[",
"i",
"]",
".",
"td",
"=",
"resources",
"[",
"i",
"]",
".",
"td",
";",
"sendresources",
"[",
"i",
"]",
".",
"all",
"=",
"resources",
"[",
"i",
"]",
".",
"all",
";",
"}",
"result",
"=",
"perform_operation_bulk_request",
"(",
"client",
",",
"sendresources",
",",
"\"send\"",
")",
";",
"}",
"return",
"result",
";",
"}"
] | Use this API to send arp resources. | [
"Use",
"this",
"API",
"to",
"send",
"arp",
"resources",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/network/arp.java#L378-L391 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/network/arp.java | arp.get | public static arp[] get(nitro_service service) throws Exception{
arp obj = new arp();
arp[] response = (arp[])obj.get_resources(service);
return response;
} | java | public static arp[] get(nitro_service service) throws Exception{
arp obj = new arp();
arp[] response = (arp[])obj.get_resources(service);
return response;
} | [
"public",
"static",
"arp",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
")",
"throws",
"Exception",
"{",
"arp",
"obj",
"=",
"new",
"arp",
"(",
")",
";",
"arp",
"[",
"]",
"response",
"=",
"(",
"arp",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch all the arp resources that are configured on netscaler. | [
"Use",
"this",
"API",
"to",
"fetch",
"all",
"the",
"arp",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/network/arp.java#L396-L400 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/ssl/sslpolicy_csvserver_binding.java | sslpolicy_csvserver_binding.get | public static sslpolicy_csvserver_binding[] get(nitro_service service, String name) throws Exception{
sslpolicy_csvserver_binding obj = new sslpolicy_csvserver_binding();
obj.set_name(name);
sslpolicy_csvserver_binding response[] = (sslpolicy_csvserver_binding[]) obj.get_resources(service);
return response;
} | java | public static sslpolicy_csvserver_binding[] get(nitro_service service, String name) throws Exception{
sslpolicy_csvserver_binding obj = new sslpolicy_csvserver_binding();
obj.set_name(name);
sslpolicy_csvserver_binding response[] = (sslpolicy_csvserver_binding[]) obj.get_resources(service);
return response;
} | [
"public",
"static",
"sslpolicy_csvserver_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"sslpolicy_csvserver_binding",
"obj",
"=",
"new",
"sslpolicy_csvserver_binding",
"(",
")",
";",
"obj",
".",
"set_name",
"(",
"name",
")",
";",
"sslpolicy_csvserver_binding",
"response",
"[",
"]",
"=",
"(",
"sslpolicy_csvserver_binding",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch sslpolicy_csvserver_binding resources of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"sslpolicy_csvserver_binding",
"resources",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ssl/sslpolicy_csvserver_binding.java#L162-L167 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/vpn/vpnvserver_authenticationldappolicy_binding.java | vpnvserver_authenticationldappolicy_binding.get | public static vpnvserver_authenticationldappolicy_binding[] get(nitro_service service, String name) throws Exception{
vpnvserver_authenticationldappolicy_binding obj = new vpnvserver_authenticationldappolicy_binding();
obj.set_name(name);
vpnvserver_authenticationldappolicy_binding response[] = (vpnvserver_authenticationldappolicy_binding[]) obj.get_resources(service);
return response;
} | java | public static vpnvserver_authenticationldappolicy_binding[] get(nitro_service service, String name) throws Exception{
vpnvserver_authenticationldappolicy_binding obj = new vpnvserver_authenticationldappolicy_binding();
obj.set_name(name);
vpnvserver_authenticationldappolicy_binding response[] = (vpnvserver_authenticationldappolicy_binding[]) obj.get_resources(service);
return response;
} | [
"public",
"static",
"vpnvserver_authenticationldappolicy_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"vpnvserver_authenticationldappolicy_binding",
"obj",
"=",
"new",
"vpnvserver_authenticationldappolicy_binding",
"(",
")",
";",
"obj",
".",
"set_name",
"(",
"name",
")",
";",
"vpnvserver_authenticationldappolicy_binding",
"response",
"[",
"]",
"=",
"(",
"vpnvserver_authenticationldappolicy_binding",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch vpnvserver_authenticationldappolicy_binding resources of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"vpnvserver_authenticationldappolicy_binding",
"resources",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/vpn/vpnvserver_authenticationldappolicy_binding.java#L326-L331 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwpolicylabel.java | appfwpolicylabel.add | public static base_response add(nitro_service client, appfwpolicylabel resource) throws Exception {
appfwpolicylabel addresource = new appfwpolicylabel();
addresource.labelname = resource.labelname;
addresource.policylabeltype = resource.policylabeltype;
return addresource.add_resource(client);
} | java | public static base_response add(nitro_service client, appfwpolicylabel resource) throws Exception {
appfwpolicylabel addresource = new appfwpolicylabel();
addresource.labelname = resource.labelname;
addresource.policylabeltype = resource.policylabeltype;
return addresource.add_resource(client);
} | [
"public",
"static",
"base_response",
"add",
"(",
"nitro_service",
"client",
",",
"appfwpolicylabel",
"resource",
")",
"throws",
"Exception",
"{",
"appfwpolicylabel",
"addresource",
"=",
"new",
"appfwpolicylabel",
"(",
")",
";",
"addresource",
".",
"labelname",
"=",
"resource",
".",
"labelname",
";",
"addresource",
".",
"policylabeltype",
"=",
"resource",
".",
"policylabeltype",
";",
"return",
"addresource",
".",
"add_resource",
"(",
"client",
")",
";",
"}"
] | Use this API to add appfwpolicylabel. | [
"Use",
"this",
"API",
"to",
"add",
"appfwpolicylabel",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwpolicylabel.java#L222-L227 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwpolicylabel.java | appfwpolicylabel.get | public static appfwpolicylabel[] get(nitro_service service) throws Exception{
appfwpolicylabel obj = new appfwpolicylabel();
appfwpolicylabel[] response = (appfwpolicylabel[])obj.get_resources(service);
return response;
} | java | public static appfwpolicylabel[] get(nitro_service service) throws Exception{
appfwpolicylabel obj = new appfwpolicylabel();
appfwpolicylabel[] response = (appfwpolicylabel[])obj.get_resources(service);
return response;
} | [
"public",
"static",
"appfwpolicylabel",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
")",
"throws",
"Exception",
"{",
"appfwpolicylabel",
"obj",
"=",
"new",
"appfwpolicylabel",
"(",
")",
";",
"appfwpolicylabel",
"[",
"]",
"response",
"=",
"(",
"appfwpolicylabel",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch all the appfwpolicylabel resources that are configured on netscaler. | [
"Use",
"this",
"API",
"to",
"fetch",
"all",
"the",
"appfwpolicylabel",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwpolicylabel.java#L317-L321 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwpolicylabel.java | appfwpolicylabel.get | public static appfwpolicylabel get(nitro_service service, String labelname) throws Exception{
appfwpolicylabel obj = new appfwpolicylabel();
obj.set_labelname(labelname);
appfwpolicylabel response = (appfwpolicylabel) obj.get_resource(service);
return response;
} | java | public static appfwpolicylabel get(nitro_service service, String labelname) throws Exception{
appfwpolicylabel obj = new appfwpolicylabel();
obj.set_labelname(labelname);
appfwpolicylabel response = (appfwpolicylabel) obj.get_resource(service);
return response;
} | [
"public",
"static",
"appfwpolicylabel",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"labelname",
")",
"throws",
"Exception",
"{",
"appfwpolicylabel",
"obj",
"=",
"new",
"appfwpolicylabel",
"(",
")",
";",
"obj",
".",
"set_labelname",
"(",
"labelname",
")",
";",
"appfwpolicylabel",
"response",
"=",
"(",
"appfwpolicylabel",
")",
"obj",
".",
"get_resource",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch appfwpolicylabel resource of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"appfwpolicylabel",
"resource",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwpolicylabel.java#L333-L338 | train |
PeterisP/LVTagger | src/main/java/lv/lumii/ner/analysis/ClassifierComparator.java | ClassifierComparator.compare | public boolean compare(List<CoreLabel> doc1, List<CoreLabel> doc2) {
int i1 = 0, i2 = 0; //
String last1 = "O", last2 = "O";
boolean cm_set;
for (int i = 0; i < doc1.size(); i++) {
CoreLabel c1 = doc1.get(i);
CoreLabel c2 = doc2.get(i);
String a1 = c1.getString(AnswerAnnotation.class);
String a2 = c2.getString(AnswerAnnotation.class);
if (a1 == null || a2 == null) return false;
}
// TODO
return true;
} | java | public boolean compare(List<CoreLabel> doc1, List<CoreLabel> doc2) {
int i1 = 0, i2 = 0; //
String last1 = "O", last2 = "O";
boolean cm_set;
for (int i = 0; i < doc1.size(); i++) {
CoreLabel c1 = doc1.get(i);
CoreLabel c2 = doc2.get(i);
String a1 = c1.getString(AnswerAnnotation.class);
String a2 = c2.getString(AnswerAnnotation.class);
if (a1 == null || a2 == null) return false;
}
// TODO
return true;
} | [
"public",
"boolean",
"compare",
"(",
"List",
"<",
"CoreLabel",
">",
"doc1",
",",
"List",
"<",
"CoreLabel",
">",
"doc2",
")",
"{",
"int",
"i1",
"=",
"0",
",",
"i2",
"=",
"0",
";",
"//\r",
"String",
"last1",
"=",
"\"O\"",
",",
"last2",
"=",
"\"O\"",
";",
"boolean",
"cm_set",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"doc1",
".",
"size",
"(",
")",
";",
"i",
"++",
")",
"{",
"CoreLabel",
"c1",
"=",
"doc1",
".",
"get",
"(",
"i",
")",
";",
"CoreLabel",
"c2",
"=",
"doc2",
".",
"get",
"(",
"i",
")",
";",
"String",
"a1",
"=",
"c1",
".",
"getString",
"(",
"AnswerAnnotation",
".",
"class",
")",
";",
"String",
"a2",
"=",
"c2",
".",
"getString",
"(",
"AnswerAnnotation",
".",
"class",
")",
";",
"if",
"(",
"a1",
"==",
"null",
"||",
"a2",
"==",
"null",
")",
"return",
"false",
";",
"}",
"// TODO\r",
"return",
"true",
";",
"}"
] | Compare two classifier output
@param doc1
@param doc2
@return | [
"Compare",
"two",
"classifier",
"output"
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/lv/lumii/ner/analysis/ClassifierComparator.java#L269-L287 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/vpn/vpnglobal_authenticationldappolicy_binding.java | vpnglobal_authenticationldappolicy_binding.get | public static vpnglobal_authenticationldappolicy_binding[] get(nitro_service service) throws Exception{
vpnglobal_authenticationldappolicy_binding obj = new vpnglobal_authenticationldappolicy_binding();
vpnglobal_authenticationldappolicy_binding response[] = (vpnglobal_authenticationldappolicy_binding[]) obj.get_resources(service);
return response;
} | java | public static vpnglobal_authenticationldappolicy_binding[] get(nitro_service service) throws Exception{
vpnglobal_authenticationldappolicy_binding obj = new vpnglobal_authenticationldappolicy_binding();
vpnglobal_authenticationldappolicy_binding response[] = (vpnglobal_authenticationldappolicy_binding[]) obj.get_resources(service);
return response;
} | [
"public",
"static",
"vpnglobal_authenticationldappolicy_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
")",
"throws",
"Exception",
"{",
"vpnglobal_authenticationldappolicy_binding",
"obj",
"=",
"new",
"vpnglobal_authenticationldappolicy_binding",
"(",
")",
";",
"vpnglobal_authenticationldappolicy_binding",
"response",
"[",
"]",
"=",
"(",
"vpnglobal_authenticationldappolicy_binding",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch a vpnglobal_authenticationldappolicy_binding resources. | [
"Use",
"this",
"API",
"to",
"fetch",
"a",
"vpnglobal_authenticationldappolicy_binding",
"resources",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/vpn/vpnglobal_authenticationldappolicy_binding.java#L225-L229 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/system/systemglobal_authenticationtacacspolicy_binding.java | systemglobal_authenticationtacacspolicy_binding.get | public static systemglobal_authenticationtacacspolicy_binding[] get(nitro_service service) throws Exception{
systemglobal_authenticationtacacspolicy_binding obj = new systemglobal_authenticationtacacspolicy_binding();
systemglobal_authenticationtacacspolicy_binding response[] = (systemglobal_authenticationtacacspolicy_binding[]) obj.get_resources(service);
return response;
} | java | public static systemglobal_authenticationtacacspolicy_binding[] get(nitro_service service) throws Exception{
systemglobal_authenticationtacacspolicy_binding obj = new systemglobal_authenticationtacacspolicy_binding();
systemglobal_authenticationtacacspolicy_binding response[] = (systemglobal_authenticationtacacspolicy_binding[]) obj.get_resources(service);
return response;
} | [
"public",
"static",
"systemglobal_authenticationtacacspolicy_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
")",
"throws",
"Exception",
"{",
"systemglobal_authenticationtacacspolicy_binding",
"obj",
"=",
"new",
"systemglobal_authenticationtacacspolicy_binding",
"(",
")",
";",
"systemglobal_authenticationtacacspolicy_binding",
"response",
"[",
"]",
"=",
"(",
"systemglobal_authenticationtacacspolicy_binding",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch a systemglobal_authenticationtacacspolicy_binding resources. | [
"Use",
"this",
"API",
"to",
"fetch",
"a",
"systemglobal_authenticationtacacspolicy_binding",
"resources",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/system/systemglobal_authenticationtacacspolicy_binding.java#L180-L184 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/basic/svcbindings.java | svcbindings.get | public static svcbindings get(nitro_service service, String servicename) throws Exception{
svcbindings obj = new svcbindings();
obj.set_servicename(servicename);
svcbindings response = (svcbindings) obj.get_resource(service);
return response;
} | java | public static svcbindings get(nitro_service service, String servicename) throws Exception{
svcbindings obj = new svcbindings();
obj.set_servicename(servicename);
svcbindings response = (svcbindings) obj.get_resource(service);
return response;
} | [
"public",
"static",
"svcbindings",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"servicename",
")",
"throws",
"Exception",
"{",
"svcbindings",
"obj",
"=",
"new",
"svcbindings",
"(",
")",
";",
"obj",
".",
"set_servicename",
"(",
"servicename",
")",
";",
"svcbindings",
"response",
"=",
"(",
"svcbindings",
")",
"obj",
".",
"get_resource",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch svcbindings resource of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"svcbindings",
"resource",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/basic/svcbindings.java#L136-L141 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/basic/svcbindings.java | svcbindings.get | public static svcbindings[] get(nitro_service service, String servicename[]) throws Exception{
if (servicename !=null && servicename.length>0) {
svcbindings response[] = new svcbindings[servicename.length];
svcbindings obj[] = new svcbindings[servicename.length];
for (int i=0;i<servicename.length;i++) {
obj[i] = new svcbindings();
obj[i].set_servicename(servicename[i]);
response[i] = (svcbindings) obj[i].get_resource(service);
}
return response;
}
return null;
} | java | public static svcbindings[] get(nitro_service service, String servicename[]) throws Exception{
if (servicename !=null && servicename.length>0) {
svcbindings response[] = new svcbindings[servicename.length];
svcbindings obj[] = new svcbindings[servicename.length];
for (int i=0;i<servicename.length;i++) {
obj[i] = new svcbindings();
obj[i].set_servicename(servicename[i]);
response[i] = (svcbindings) obj[i].get_resource(service);
}
return response;
}
return null;
} | [
"public",
"static",
"svcbindings",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"servicename",
"[",
"]",
")",
"throws",
"Exception",
"{",
"if",
"(",
"servicename",
"!=",
"null",
"&&",
"servicename",
".",
"length",
">",
"0",
")",
"{",
"svcbindings",
"response",
"[",
"]",
"=",
"new",
"svcbindings",
"[",
"servicename",
".",
"length",
"]",
";",
"svcbindings",
"obj",
"[",
"]",
"=",
"new",
"svcbindings",
"[",
"servicename",
".",
"length",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"servicename",
".",
"length",
";",
"i",
"++",
")",
"{",
"obj",
"[",
"i",
"]",
"=",
"new",
"svcbindings",
"(",
")",
";",
"obj",
"[",
"i",
"]",
".",
"set_servicename",
"(",
"servicename",
"[",
"i",
"]",
")",
";",
"response",
"[",
"i",
"]",
"=",
"(",
"svcbindings",
")",
"obj",
"[",
"i",
"]",
".",
"get_resource",
"(",
"service",
")",
";",
"}",
"return",
"response",
";",
"}",
"return",
"null",
";",
"}"
] | Use this API to fetch svcbindings resources of given names . | [
"Use",
"this",
"API",
"to",
"fetch",
"svcbindings",
"resources",
"of",
"given",
"names",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/basic/svcbindings.java#L146-L158 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/stat/cache/cachepolicylabel_stats.java | cachepolicylabel_stats.get | public static cachepolicylabel_stats[] get(nitro_service service) throws Exception{
cachepolicylabel_stats obj = new cachepolicylabel_stats();
cachepolicylabel_stats[] response = (cachepolicylabel_stats[])obj.stat_resources(service);
return response;
} | java | public static cachepolicylabel_stats[] get(nitro_service service) throws Exception{
cachepolicylabel_stats obj = new cachepolicylabel_stats();
cachepolicylabel_stats[] response = (cachepolicylabel_stats[])obj.stat_resources(service);
return response;
} | [
"public",
"static",
"cachepolicylabel_stats",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
")",
"throws",
"Exception",
"{",
"cachepolicylabel_stats",
"obj",
"=",
"new",
"cachepolicylabel_stats",
"(",
")",
";",
"cachepolicylabel_stats",
"[",
"]",
"response",
"=",
"(",
"cachepolicylabel_stats",
"[",
"]",
")",
"obj",
".",
"stat_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch the statistics of all cachepolicylabel_stats resources that are configured on netscaler. | [
"Use",
"this",
"API",
"to",
"fetch",
"the",
"statistics",
"of",
"all",
"cachepolicylabel_stats",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/stat/cache/cachepolicylabel_stats.java#L131-L135 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/stat/cache/cachepolicylabel_stats.java | cachepolicylabel_stats.get | public static cachepolicylabel_stats get(nitro_service service, String labelname) throws Exception{
cachepolicylabel_stats obj = new cachepolicylabel_stats();
obj.set_labelname(labelname);
cachepolicylabel_stats response = (cachepolicylabel_stats) obj.stat_resource(service);
return response;
} | java | public static cachepolicylabel_stats get(nitro_service service, String labelname) throws Exception{
cachepolicylabel_stats obj = new cachepolicylabel_stats();
obj.set_labelname(labelname);
cachepolicylabel_stats response = (cachepolicylabel_stats) obj.stat_resource(service);
return response;
} | [
"public",
"static",
"cachepolicylabel_stats",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"labelname",
")",
"throws",
"Exception",
"{",
"cachepolicylabel_stats",
"obj",
"=",
"new",
"cachepolicylabel_stats",
"(",
")",
";",
"obj",
".",
"set_labelname",
"(",
"labelname",
")",
";",
"cachepolicylabel_stats",
"response",
"=",
"(",
"cachepolicylabel_stats",
")",
"obj",
".",
"stat_resource",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch statistics of cachepolicylabel_stats resource of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"statistics",
"of",
"cachepolicylabel_stats",
"resource",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/stat/cache/cachepolicylabel_stats.java#L149-L154 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/system/systementitytype.java | systementitytype.get | public static systementitytype get(nitro_service service) throws Exception{
systementitytype obj = new systementitytype();
systementitytype[] response = (systementitytype[])obj.get_resources(service);
return response[0];
} | java | public static systementitytype get(nitro_service service) throws Exception{
systementitytype obj = new systementitytype();
systementitytype[] response = (systementitytype[])obj.get_resources(service);
return response[0];
} | [
"public",
"static",
"systementitytype",
"get",
"(",
"nitro_service",
"service",
")",
"throws",
"Exception",
"{",
"systementitytype",
"obj",
"=",
"new",
"systementitytype",
"(",
")",
";",
"systementitytype",
"[",
"]",
"response",
"=",
"(",
"systementitytype",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
"[",
"0",
"]",
";",
"}"
] | Use this API to fetch all the systementitytype resources that are configured on netscaler. | [
"Use",
"this",
"API",
"to",
"fetch",
"all",
"the",
"systementitytype",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/system/systementitytype.java#L107-L111 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/system/systementitytype.java | systementitytype.get | public static systementitytype[] get(nitro_service service, systementitytype_args args) throws Exception{
systementitytype obj = new systementitytype();
options option = new options();
option.set_args(nitro_util.object_to_string_withoutquotes(args));
systementitytype[] response = (systementitytype[])obj.get_resources(service, option);
return response;
} | java | public static systementitytype[] get(nitro_service service, systementitytype_args args) throws Exception{
systementitytype obj = new systementitytype();
options option = new options();
option.set_args(nitro_util.object_to_string_withoutquotes(args));
systementitytype[] response = (systementitytype[])obj.get_resources(service, option);
return response;
} | [
"public",
"static",
"systementitytype",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"systementitytype_args",
"args",
")",
"throws",
"Exception",
"{",
"systementitytype",
"obj",
"=",
"new",
"systementitytype",
"(",
")",
";",
"options",
"option",
"=",
"new",
"options",
"(",
")",
";",
"option",
".",
"set_args",
"(",
"nitro_util",
".",
"object_to_string_withoutquotes",
"(",
"args",
")",
")",
";",
"systementitytype",
"[",
"]",
"response",
"=",
"(",
"systementitytype",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
",",
"option",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch all the systementitytype resources that are configured on netscaler.
This uses systementitytype_args which is a way to provide additional arguments while fetching the resources. | [
"Use",
"this",
"API",
"to",
"fetch",
"all",
"the",
"systementitytype",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
".",
"This",
"uses",
"systementitytype_args",
"which",
"is",
"a",
"way",
"to",
"provide",
"additional",
"arguments",
"while",
"fetching",
"the",
"resources",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/system/systementitytype.java#L126-L132 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/spillover/spilloverpolicy_binding.java | spilloverpolicy_binding.get | public static spilloverpolicy_binding get(nitro_service service, String name) throws Exception{
spilloverpolicy_binding obj = new spilloverpolicy_binding();
obj.set_name(name);
spilloverpolicy_binding response = (spilloverpolicy_binding) obj.get_resource(service);
return response;
} | java | public static spilloverpolicy_binding get(nitro_service service, String name) throws Exception{
spilloverpolicy_binding obj = new spilloverpolicy_binding();
obj.set_name(name);
spilloverpolicy_binding response = (spilloverpolicy_binding) obj.get_resource(service);
return response;
} | [
"public",
"static",
"spilloverpolicy_binding",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"spilloverpolicy_binding",
"obj",
"=",
"new",
"spilloverpolicy_binding",
"(",
")",
";",
"obj",
".",
"set_name",
"(",
"name",
")",
";",
"spilloverpolicy_binding",
"response",
"=",
"(",
"spilloverpolicy_binding",
")",
"obj",
".",
"get_resource",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch spilloverpolicy_binding resource of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"spilloverpolicy_binding",
"resource",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/spillover/spilloverpolicy_binding.java#L125-L130 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/cs/cspolicy_binding.java | cspolicy_binding.get | public static cspolicy_binding get(nitro_service service, String policyname) throws Exception{
cspolicy_binding obj = new cspolicy_binding();
obj.set_policyname(policyname);
cspolicy_binding response = (cspolicy_binding) obj.get_resource(service);
return response;
} | java | public static cspolicy_binding get(nitro_service service, String policyname) throws Exception{
cspolicy_binding obj = new cspolicy_binding();
obj.set_policyname(policyname);
cspolicy_binding response = (cspolicy_binding) obj.get_resource(service);
return response;
} | [
"public",
"static",
"cspolicy_binding",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"policyname",
")",
"throws",
"Exception",
"{",
"cspolicy_binding",
"obj",
"=",
"new",
"cspolicy_binding",
"(",
")",
";",
"obj",
".",
"set_policyname",
"(",
"policyname",
")",
";",
"cspolicy_binding",
"response",
"=",
"(",
"cspolicy_binding",
")",
"obj",
".",
"get_resource",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch cspolicy_binding resource of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"cspolicy_binding",
"resource",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/cs/cspolicy_binding.java#L125-L130 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/stat/gslb/gslbvserver_stats.java | gslbvserver_stats.get | public static gslbvserver_stats[] get(nitro_service service) throws Exception{
gslbvserver_stats obj = new gslbvserver_stats();
gslbvserver_stats[] response = (gslbvserver_stats[])obj.stat_resources(service);
return response;
} | java | public static gslbvserver_stats[] get(nitro_service service) throws Exception{
gslbvserver_stats obj = new gslbvserver_stats();
gslbvserver_stats[] response = (gslbvserver_stats[])obj.stat_resources(service);
return response;
} | [
"public",
"static",
"gslbvserver_stats",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
")",
"throws",
"Exception",
"{",
"gslbvserver_stats",
"obj",
"=",
"new",
"gslbvserver_stats",
"(",
")",
";",
"gslbvserver_stats",
"[",
"]",
"response",
"=",
"(",
"gslbvserver_stats",
"[",
"]",
")",
"obj",
".",
"stat_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch the statistics of all gslbvserver_stats resources that are configured on netscaler. | [
"Use",
"this",
"API",
"to",
"fetch",
"the",
"statistics",
"of",
"all",
"gslbvserver_stats",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/stat/gslb/gslbvserver_stats.java#L311-L315 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/stat/gslb/gslbvserver_stats.java | gslbvserver_stats.get | public static gslbvserver_stats get(nitro_service service, String name) throws Exception{
gslbvserver_stats obj = new gslbvserver_stats();
obj.set_name(name);
gslbvserver_stats response = (gslbvserver_stats) obj.stat_resource(service);
return response;
} | java | public static gslbvserver_stats get(nitro_service service, String name) throws Exception{
gslbvserver_stats obj = new gslbvserver_stats();
obj.set_name(name);
gslbvserver_stats response = (gslbvserver_stats) obj.stat_resource(service);
return response;
} | [
"public",
"static",
"gslbvserver_stats",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"gslbvserver_stats",
"obj",
"=",
"new",
"gslbvserver_stats",
"(",
")",
";",
"obj",
".",
"set_name",
"(",
"name",
")",
";",
"gslbvserver_stats",
"response",
"=",
"(",
"gslbvserver_stats",
")",
"obj",
".",
"stat_resource",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch statistics of gslbvserver_stats resource of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"statistics",
"of",
"gslbvserver_stats",
"resource",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/stat/gslb/gslbvserver_stats.java#L329-L334 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/filter/filterglobal_binding.java | filterglobal_binding.get | public static filterglobal_binding get(nitro_service service) throws Exception{
filterglobal_binding obj = new filterglobal_binding();
filterglobal_binding response = (filterglobal_binding) obj.get_resource(service);
return response;
} | java | public static filterglobal_binding get(nitro_service service) throws Exception{
filterglobal_binding obj = new filterglobal_binding();
filterglobal_binding response = (filterglobal_binding) obj.get_resource(service);
return response;
} | [
"public",
"static",
"filterglobal_binding",
"get",
"(",
"nitro_service",
"service",
")",
"throws",
"Exception",
"{",
"filterglobal_binding",
"obj",
"=",
"new",
"filterglobal_binding",
"(",
")",
";",
"filterglobal_binding",
"response",
"=",
"(",
"filterglobal_binding",
")",
"obj",
".",
"get_resource",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch a filterglobal_binding resource . | [
"Use",
"this",
"API",
"to",
"fetch",
"a",
"filterglobal_binding",
"resource",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/filter/filterglobal_binding.java#L84-L88 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/basic/server_servicegroup_binding.java | server_servicegroup_binding.get | public static server_servicegroup_binding[] get(nitro_service service, String name) throws Exception{
server_servicegroup_binding obj = new server_servicegroup_binding();
obj.set_name(name);
server_servicegroup_binding response[] = (server_servicegroup_binding[]) obj.get_resources(service);
return response;
} | java | public static server_servicegroup_binding[] get(nitro_service service, String name) throws Exception{
server_servicegroup_binding obj = new server_servicegroup_binding();
obj.set_name(name);
server_servicegroup_binding response[] = (server_servicegroup_binding[]) obj.get_resources(service);
return response;
} | [
"public",
"static",
"server_servicegroup_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"server_servicegroup_binding",
"obj",
"=",
"new",
"server_servicegroup_binding",
"(",
")",
";",
"obj",
".",
"set_name",
"(",
"name",
")",
";",
"server_servicegroup_binding",
"response",
"[",
"]",
"=",
"(",
"server_servicegroup_binding",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch server_servicegroup_binding resources of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"server_servicegroup_binding",
"resources",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/basic/server_servicegroup_binding.java#L192-L197 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/stat/dos/dospolicy_stats.java | dospolicy_stats.get | public static dospolicy_stats[] get(nitro_service service) throws Exception{
dospolicy_stats obj = new dospolicy_stats();
dospolicy_stats[] response = (dospolicy_stats[])obj.stat_resources(service);
return response;
} | java | public static dospolicy_stats[] get(nitro_service service) throws Exception{
dospolicy_stats obj = new dospolicy_stats();
dospolicy_stats[] response = (dospolicy_stats[])obj.stat_resources(service);
return response;
} | [
"public",
"static",
"dospolicy_stats",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
")",
"throws",
"Exception",
"{",
"dospolicy_stats",
"obj",
"=",
"new",
"dospolicy_stats",
"(",
")",
";",
"dospolicy_stats",
"[",
"]",
"response",
"=",
"(",
"dospolicy_stats",
"[",
"]",
")",
"obj",
".",
"stat_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch the statistics of all dospolicy_stats resources that are configured on netscaler. | [
"Use",
"this",
"API",
"to",
"fetch",
"the",
"statistics",
"of",
"all",
"dospolicy_stats",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/stat/dos/dospolicy_stats.java#L261-L265 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/stat/dos/dospolicy_stats.java | dospolicy_stats.get | public static dospolicy_stats get(nitro_service service, String name) throws Exception{
dospolicy_stats obj = new dospolicy_stats();
obj.set_name(name);
dospolicy_stats response = (dospolicy_stats) obj.stat_resource(service);
return response;
} | java | public static dospolicy_stats get(nitro_service service, String name) throws Exception{
dospolicy_stats obj = new dospolicy_stats();
obj.set_name(name);
dospolicy_stats response = (dospolicy_stats) obj.stat_resource(service);
return response;
} | [
"public",
"static",
"dospolicy_stats",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"dospolicy_stats",
"obj",
"=",
"new",
"dospolicy_stats",
"(",
")",
";",
"obj",
".",
"set_name",
"(",
"name",
")",
";",
"dospolicy_stats",
"response",
"=",
"(",
"dospolicy_stats",
")",
"obj",
".",
"stat_resource",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch statistics of dospolicy_stats resource of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"statistics",
"of",
"dospolicy_stats",
"resource",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/stat/dos/dospolicy_stats.java#L279-L284 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/util/Triple.java | Triple.makeTriple | public static <X, Y, Z> Triple<X, Y, Z> makeTriple(X x, Y y, Z z) {
return new Triple<X, Y, Z>(x, y, z);
} | java | public static <X, Y, Z> Triple<X, Y, Z> makeTriple(X x, Y y, Z z) {
return new Triple<X, Y, Z>(x, y, z);
} | [
"public",
"static",
"<",
"X",
",",
"Y",
",",
"Z",
">",
"Triple",
"<",
"X",
",",
"Y",
",",
"Z",
">",
"makeTriple",
"(",
"X",
"x",
",",
"Y",
"y",
",",
"Z",
"z",
")",
"{",
"return",
"new",
"Triple",
"<",
"X",
",",
"Y",
",",
"Z",
">",
"(",
"x",
",",
"y",
",",
"z",
")",
";",
"}"
] | Returns a Triple constructed from X, Y, and Z. Convenience method; the
compiler will disambiguate the classes used for you so that you don't have
to write out potentially long class names. | [
"Returns",
"a",
"Triple",
"constructed",
"from",
"X",
"Y",
"and",
"Z",
".",
"Convenience",
"method",
";",
"the",
"compiler",
"will",
"disambiguate",
"the",
"classes",
"used",
"for",
"you",
"so",
"that",
"you",
"don",
"t",
"have",
"to",
"write",
"out",
"potentially",
"long",
"class",
"names",
"."
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/util/Triple.java#L106-L108 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/authentication/authenticationvserver_authenticationldappolicy_binding.java | authenticationvserver_authenticationldappolicy_binding.get | public static authenticationvserver_authenticationldappolicy_binding[] get(nitro_service service, String name) throws Exception{
authenticationvserver_authenticationldappolicy_binding obj = new authenticationvserver_authenticationldappolicy_binding();
obj.set_name(name);
authenticationvserver_authenticationldappolicy_binding response[] = (authenticationvserver_authenticationldappolicy_binding[]) obj.get_resources(service);
return response;
} | java | public static authenticationvserver_authenticationldappolicy_binding[] get(nitro_service service, String name) throws Exception{
authenticationvserver_authenticationldappolicy_binding obj = new authenticationvserver_authenticationldappolicy_binding();
obj.set_name(name);
authenticationvserver_authenticationldappolicy_binding response[] = (authenticationvserver_authenticationldappolicy_binding[]) obj.get_resources(service);
return response;
} | [
"public",
"static",
"authenticationvserver_authenticationldappolicy_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"authenticationvserver_authenticationldappolicy_binding",
"obj",
"=",
"new",
"authenticationvserver_authenticationldappolicy_binding",
"(",
")",
";",
"obj",
".",
"set_name",
"(",
"name",
")",
";",
"authenticationvserver_authenticationldappolicy_binding",
"response",
"[",
"]",
"=",
"(",
"authenticationvserver_authenticationldappolicy_binding",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch authenticationvserver_authenticationldappolicy_binding resources of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"authenticationvserver_authenticationldappolicy_binding",
"resources",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/authentication/authenticationvserver_authenticationldappolicy_binding.java#L264-L269 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/responder/responderglobal_binding.java | responderglobal_binding.get | public static responderglobal_binding get(nitro_service service) throws Exception{
responderglobal_binding obj = new responderglobal_binding();
responderglobal_binding response = (responderglobal_binding) obj.get_resource(service);
return response;
} | java | public static responderglobal_binding get(nitro_service service) throws Exception{
responderglobal_binding obj = new responderglobal_binding();
responderglobal_binding response = (responderglobal_binding) obj.get_resource(service);
return response;
} | [
"public",
"static",
"responderglobal_binding",
"get",
"(",
"nitro_service",
"service",
")",
"throws",
"Exception",
"{",
"responderglobal_binding",
"obj",
"=",
"new",
"responderglobal_binding",
"(",
")",
";",
"responderglobal_binding",
"response",
"=",
"(",
"responderglobal_binding",
")",
"obj",
".",
"get_resource",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch a responderglobal_binding resource . | [
"Use",
"this",
"API",
"to",
"fetch",
"a",
"responderglobal_binding",
"resource",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/responder/responderglobal_binding.java#L84-L88 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/ssl/sslvserver_sslpolicy_binding.java | sslvserver_sslpolicy_binding.get | public static sslvserver_sslpolicy_binding[] get(nitro_service service, String vservername) throws Exception{
sslvserver_sslpolicy_binding obj = new sslvserver_sslpolicy_binding();
obj.set_vservername(vservername);
sslvserver_sslpolicy_binding response[] = (sslvserver_sslpolicy_binding[]) obj.get_resources(service);
return response;
} | java | public static sslvserver_sslpolicy_binding[] get(nitro_service service, String vservername) throws Exception{
sslvserver_sslpolicy_binding obj = new sslvserver_sslpolicy_binding();
obj.set_vservername(vservername);
sslvserver_sslpolicy_binding response[] = (sslvserver_sslpolicy_binding[]) obj.get_resources(service);
return response;
} | [
"public",
"static",
"sslvserver_sslpolicy_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"vservername",
")",
"throws",
"Exception",
"{",
"sslvserver_sslpolicy_binding",
"obj",
"=",
"new",
"sslvserver_sslpolicy_binding",
"(",
")",
";",
"obj",
".",
"set_vservername",
"(",
"vservername",
")",
";",
"sslvserver_sslpolicy_binding",
"response",
"[",
"]",
"=",
"(",
"sslvserver_sslpolicy_binding",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch sslvserver_sslpolicy_binding resources of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"sslvserver_sslpolicy_binding",
"resources",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ssl/sslvserver_sslpolicy_binding.java#L289-L294 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/system/systemcounters.java | systemcounters.get | public static systemcounters get(nitro_service service) throws Exception{
systemcounters obj = new systemcounters();
systemcounters[] response = (systemcounters[])obj.get_resources(service);
return response[0];
} | java | public static systemcounters get(nitro_service service) throws Exception{
systemcounters obj = new systemcounters();
systemcounters[] response = (systemcounters[])obj.get_resources(service);
return response[0];
} | [
"public",
"static",
"systemcounters",
"get",
"(",
"nitro_service",
"service",
")",
"throws",
"Exception",
"{",
"systemcounters",
"obj",
"=",
"new",
"systemcounters",
"(",
")",
";",
"systemcounters",
"[",
"]",
"response",
"=",
"(",
"systemcounters",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
"[",
"0",
"]",
";",
"}"
] | Use this API to fetch all the systemcounters resources that are configured on netscaler. | [
"Use",
"this",
"API",
"to",
"fetch",
"all",
"the",
"systemcounters",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/system/systemcounters.java#L126-L130 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/system/systemcounters.java | systemcounters.get | public static systemcounters[] get(nitro_service service, systemcounters_args args) throws Exception{
systemcounters obj = new systemcounters();
options option = new options();
option.set_args(nitro_util.object_to_string_withoutquotes(args));
systemcounters[] response = (systemcounters[])obj.get_resources(service, option);
return response;
} | java | public static systemcounters[] get(nitro_service service, systemcounters_args args) throws Exception{
systemcounters obj = new systemcounters();
options option = new options();
option.set_args(nitro_util.object_to_string_withoutquotes(args));
systemcounters[] response = (systemcounters[])obj.get_resources(service, option);
return response;
} | [
"public",
"static",
"systemcounters",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"systemcounters_args",
"args",
")",
"throws",
"Exception",
"{",
"systemcounters",
"obj",
"=",
"new",
"systemcounters",
"(",
")",
";",
"options",
"option",
"=",
"new",
"options",
"(",
")",
";",
"option",
".",
"set_args",
"(",
"nitro_util",
".",
"object_to_string_withoutquotes",
"(",
"args",
")",
")",
";",
"systemcounters",
"[",
"]",
"response",
"=",
"(",
"systemcounters",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
",",
"option",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch all the systemcounters resources that are configured on netscaler.
This uses systemcounters_args which is a way to provide additional arguments while fetching the resources. | [
"Use",
"this",
"API",
"to",
"fetch",
"all",
"the",
"systemcounters",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
".",
"This",
"uses",
"systemcounters_args",
"which",
"is",
"a",
"way",
"to",
"provide",
"additional",
"arguments",
"while",
"fetching",
"the",
"resources",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/system/systemcounters.java#L145-L151 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/responder/responderpolicylabel_policybinding_binding.java | responderpolicylabel_policybinding_binding.get | public static responderpolicylabel_policybinding_binding[] get(nitro_service service, String labelname) throws Exception{
responderpolicylabel_policybinding_binding obj = new responderpolicylabel_policybinding_binding();
obj.set_labelname(labelname);
responderpolicylabel_policybinding_binding response[] = (responderpolicylabel_policybinding_binding[]) obj.get_resources(service);
return response;
} | java | public static responderpolicylabel_policybinding_binding[] get(nitro_service service, String labelname) throws Exception{
responderpolicylabel_policybinding_binding obj = new responderpolicylabel_policybinding_binding();
obj.set_labelname(labelname);
responderpolicylabel_policybinding_binding response[] = (responderpolicylabel_policybinding_binding[]) obj.get_resources(service);
return response;
} | [
"public",
"static",
"responderpolicylabel_policybinding_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"labelname",
")",
"throws",
"Exception",
"{",
"responderpolicylabel_policybinding_binding",
"obj",
"=",
"new",
"responderpolicylabel_policybinding_binding",
"(",
")",
";",
"obj",
".",
"set_labelname",
"(",
"labelname",
")",
";",
"responderpolicylabel_policybinding_binding",
"response",
"[",
"]",
"=",
"(",
"responderpolicylabel_policybinding_binding",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch responderpolicylabel_policybinding_binding resources of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"responderpolicylabel_policybinding_binding",
"resources",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/responder/responderpolicylabel_policybinding_binding.java#L231-L236 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/network/channel_binding.java | channel_binding.get | public static channel_binding get(nitro_service service, String id) throws Exception{
channel_binding obj = new channel_binding();
obj.set_id(id);
channel_binding response = (channel_binding) obj.get_resource(service);
return response;
} | java | public static channel_binding get(nitro_service service, String id) throws Exception{
channel_binding obj = new channel_binding();
obj.set_id(id);
channel_binding response = (channel_binding) obj.get_resource(service);
return response;
} | [
"public",
"static",
"channel_binding",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"id",
")",
"throws",
"Exception",
"{",
"channel_binding",
"obj",
"=",
"new",
"channel_binding",
"(",
")",
";",
"obj",
".",
"set_id",
"(",
"id",
")",
";",
"channel_binding",
"response",
"=",
"(",
"channel_binding",
")",
"obj",
".",
"get_resource",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch channel_binding resource of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"channel_binding",
"resource",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/network/channel_binding.java#L105-L110 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwprofile_binding.java | appfwprofile_binding.get | public static appfwprofile_binding get(nitro_service service, String name) throws Exception{
appfwprofile_binding obj = new appfwprofile_binding();
obj.set_name(name);
appfwprofile_binding response = (appfwprofile_binding) obj.get_resource(service);
return response;
} | java | public static appfwprofile_binding get(nitro_service service, String name) throws Exception{
appfwprofile_binding obj = new appfwprofile_binding();
obj.set_name(name);
appfwprofile_binding response = (appfwprofile_binding) obj.get_resource(service);
return response;
} | [
"public",
"static",
"appfwprofile_binding",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"appfwprofile_binding",
"obj",
"=",
"new",
"appfwprofile_binding",
"(",
")",
";",
"obj",
".",
"set_name",
"(",
"name",
")",
";",
"appfwprofile_binding",
"response",
"=",
"(",
"appfwprofile_binding",
")",
"obj",
".",
"get_resource",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch appfwprofile_binding resource of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"appfwprofile_binding",
"resource",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwprofile_binding.java#L290-L295 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/lb/lbvserver_auditsyslogpolicy_binding.java | lbvserver_auditsyslogpolicy_binding.get | public static lbvserver_auditsyslogpolicy_binding[] get(nitro_service service, String name) throws Exception{
lbvserver_auditsyslogpolicy_binding obj = new lbvserver_auditsyslogpolicy_binding();
obj.set_name(name);
lbvserver_auditsyslogpolicy_binding response[] = (lbvserver_auditsyslogpolicy_binding[]) obj.get_resources(service);
return response;
} | java | public static lbvserver_auditsyslogpolicy_binding[] get(nitro_service service, String name) throws Exception{
lbvserver_auditsyslogpolicy_binding obj = new lbvserver_auditsyslogpolicy_binding();
obj.set_name(name);
lbvserver_auditsyslogpolicy_binding response[] = (lbvserver_auditsyslogpolicy_binding[]) obj.get_resources(service);
return response;
} | [
"public",
"static",
"lbvserver_auditsyslogpolicy_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"lbvserver_auditsyslogpolicy_binding",
"obj",
"=",
"new",
"lbvserver_auditsyslogpolicy_binding",
"(",
")",
";",
"obj",
".",
"set_name",
"(",
"name",
")",
";",
"lbvserver_auditsyslogpolicy_binding",
"response",
"[",
"]",
"=",
"(",
"lbvserver_auditsyslogpolicy_binding",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch lbvserver_auditsyslogpolicy_binding resources of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"lbvserver_auditsyslogpolicy_binding",
"resources",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/lb/lbvserver_auditsyslogpolicy_binding.java#L346-L351 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwprofile_sqlinjection_binding.java | appfwprofile_sqlinjection_binding.get | public static appfwprofile_sqlinjection_binding[] get(nitro_service service, String name) throws Exception{
appfwprofile_sqlinjection_binding obj = new appfwprofile_sqlinjection_binding();
obj.set_name(name);
appfwprofile_sqlinjection_binding response[] = (appfwprofile_sqlinjection_binding[]) obj.get_resources(service);
return response;
} | java | public static appfwprofile_sqlinjection_binding[] get(nitro_service service, String name) throws Exception{
appfwprofile_sqlinjection_binding obj = new appfwprofile_sqlinjection_binding();
obj.set_name(name);
appfwprofile_sqlinjection_binding response[] = (appfwprofile_sqlinjection_binding[]) obj.get_resources(service);
return response;
} | [
"public",
"static",
"appfwprofile_sqlinjection_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"appfwprofile_sqlinjection_binding",
"obj",
"=",
"new",
"appfwprofile_sqlinjection_binding",
"(",
")",
";",
"obj",
".",
"set_name",
"(",
"name",
")",
";",
"appfwprofile_sqlinjection_binding",
"response",
"[",
"]",
"=",
"(",
"appfwprofile_sqlinjection_binding",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch appfwprofile_sqlinjection_binding resources of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"appfwprofile_sqlinjection_binding",
"resources",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwprofile_sqlinjection_binding.java#L263-L268 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/cluster/clusternode.java | clusternode.add | public static base_response add(nitro_service client, clusternode resource) throws Exception {
clusternode addresource = new clusternode();
addresource.nodeid = resource.nodeid;
addresource.ipaddress = resource.ipaddress;
addresource.state = resource.state;
addresource.backplane = resource.backplane;
addresource.priority = resource.priority;
return addresource.add_resource(client);
} | java | public static base_response add(nitro_service client, clusternode resource) throws Exception {
clusternode addresource = new clusternode();
addresource.nodeid = resource.nodeid;
addresource.ipaddress = resource.ipaddress;
addresource.state = resource.state;
addresource.backplane = resource.backplane;
addresource.priority = resource.priority;
return addresource.add_resource(client);
} | [
"public",
"static",
"base_response",
"add",
"(",
"nitro_service",
"client",
",",
"clusternode",
"resource",
")",
"throws",
"Exception",
"{",
"clusternode",
"addresource",
"=",
"new",
"clusternode",
"(",
")",
";",
"addresource",
".",
"nodeid",
"=",
"resource",
".",
"nodeid",
";",
"addresource",
".",
"ipaddress",
"=",
"resource",
".",
"ipaddress",
";",
"addresource",
".",
"state",
"=",
"resource",
".",
"state",
";",
"addresource",
".",
"backplane",
"=",
"resource",
".",
"backplane",
";",
"addresource",
".",
"priority",
"=",
"resource",
".",
"priority",
";",
"return",
"addresource",
".",
"add_resource",
"(",
"client",
")",
";",
"}"
] | Use this API to add clusternode. | [
"Use",
"this",
"API",
"to",
"add",
"clusternode",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/cluster/clusternode.java#L355-L363 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/cluster/clusternode.java | clusternode.add | public static base_responses add(nitro_service client, clusternode resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
clusternode addresources[] = new clusternode[resources.length];
for (int i=0;i<resources.length;i++){
addresources[i] = new clusternode();
addresources[i].nodeid = resources[i].nodeid;
addresources[i].ipaddress = resources[i].ipaddress;
addresources[i].state = resources[i].state;
addresources[i].backplane = resources[i].backplane;
addresources[i].priority = resources[i].priority;
}
result = add_bulk_request(client, addresources);
}
return result;
} | java | public static base_responses add(nitro_service client, clusternode resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
clusternode addresources[] = new clusternode[resources.length];
for (int i=0;i<resources.length;i++){
addresources[i] = new clusternode();
addresources[i].nodeid = resources[i].nodeid;
addresources[i].ipaddress = resources[i].ipaddress;
addresources[i].state = resources[i].state;
addresources[i].backplane = resources[i].backplane;
addresources[i].priority = resources[i].priority;
}
result = add_bulk_request(client, addresources);
}
return result;
} | [
"public",
"static",
"base_responses",
"add",
"(",
"nitro_service",
"client",
",",
"clusternode",
"resources",
"[",
"]",
")",
"throws",
"Exception",
"{",
"base_responses",
"result",
"=",
"null",
";",
"if",
"(",
"resources",
"!=",
"null",
"&&",
"resources",
".",
"length",
">",
"0",
")",
"{",
"clusternode",
"addresources",
"[",
"]",
"=",
"new",
"clusternode",
"[",
"resources",
".",
"length",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"resources",
".",
"length",
";",
"i",
"++",
")",
"{",
"addresources",
"[",
"i",
"]",
"=",
"new",
"clusternode",
"(",
")",
";",
"addresources",
"[",
"i",
"]",
".",
"nodeid",
"=",
"resources",
"[",
"i",
"]",
".",
"nodeid",
";",
"addresources",
"[",
"i",
"]",
".",
"ipaddress",
"=",
"resources",
"[",
"i",
"]",
".",
"ipaddress",
";",
"addresources",
"[",
"i",
"]",
".",
"state",
"=",
"resources",
"[",
"i",
"]",
".",
"state",
";",
"addresources",
"[",
"i",
"]",
".",
"backplane",
"=",
"resources",
"[",
"i",
"]",
".",
"backplane",
";",
"addresources",
"[",
"i",
"]",
".",
"priority",
"=",
"resources",
"[",
"i",
"]",
".",
"priority",
";",
"}",
"result",
"=",
"add_bulk_request",
"(",
"client",
",",
"addresources",
")",
";",
"}",
"return",
"result",
";",
"}"
] | Use this API to add clusternode resources. | [
"Use",
"this",
"API",
"to",
"add",
"clusternode",
"resources",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/cluster/clusternode.java#L368-L383 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/cluster/clusternode.java | clusternode.update | public static base_response update(nitro_service client, clusternode resource) throws Exception {
clusternode updateresource = new clusternode();
updateresource.nodeid = resource.nodeid;
updateresource.state = resource.state;
updateresource.backplane = resource.backplane;
updateresource.priority = resource.priority;
return updateresource.update_resource(client);
} | java | public static base_response update(nitro_service client, clusternode resource) throws Exception {
clusternode updateresource = new clusternode();
updateresource.nodeid = resource.nodeid;
updateresource.state = resource.state;
updateresource.backplane = resource.backplane;
updateresource.priority = resource.priority;
return updateresource.update_resource(client);
} | [
"public",
"static",
"base_response",
"update",
"(",
"nitro_service",
"client",
",",
"clusternode",
"resource",
")",
"throws",
"Exception",
"{",
"clusternode",
"updateresource",
"=",
"new",
"clusternode",
"(",
")",
";",
"updateresource",
".",
"nodeid",
"=",
"resource",
".",
"nodeid",
";",
"updateresource",
".",
"state",
"=",
"resource",
".",
"state",
";",
"updateresource",
".",
"backplane",
"=",
"resource",
".",
"backplane",
";",
"updateresource",
".",
"priority",
"=",
"resource",
".",
"priority",
";",
"return",
"updateresource",
".",
"update_resource",
"(",
"client",
")",
";",
"}"
] | Use this API to update clusternode. | [
"Use",
"this",
"API",
"to",
"update",
"clusternode",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/cluster/clusternode.java#L388-L395 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/cluster/clusternode.java | clusternode.update | public static base_responses update(nitro_service client, clusternode resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
clusternode updateresources[] = new clusternode[resources.length];
for (int i=0;i<resources.length;i++){
updateresources[i] = new clusternode();
updateresources[i].nodeid = resources[i].nodeid;
updateresources[i].state = resources[i].state;
updateresources[i].backplane = resources[i].backplane;
updateresources[i].priority = resources[i].priority;
}
result = update_bulk_request(client, updateresources);
}
return result;
} | java | public static base_responses update(nitro_service client, clusternode resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
clusternode updateresources[] = new clusternode[resources.length];
for (int i=0;i<resources.length;i++){
updateresources[i] = new clusternode();
updateresources[i].nodeid = resources[i].nodeid;
updateresources[i].state = resources[i].state;
updateresources[i].backplane = resources[i].backplane;
updateresources[i].priority = resources[i].priority;
}
result = update_bulk_request(client, updateresources);
}
return result;
} | [
"public",
"static",
"base_responses",
"update",
"(",
"nitro_service",
"client",
",",
"clusternode",
"resources",
"[",
"]",
")",
"throws",
"Exception",
"{",
"base_responses",
"result",
"=",
"null",
";",
"if",
"(",
"resources",
"!=",
"null",
"&&",
"resources",
".",
"length",
">",
"0",
")",
"{",
"clusternode",
"updateresources",
"[",
"]",
"=",
"new",
"clusternode",
"[",
"resources",
".",
"length",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"resources",
".",
"length",
";",
"i",
"++",
")",
"{",
"updateresources",
"[",
"i",
"]",
"=",
"new",
"clusternode",
"(",
")",
";",
"updateresources",
"[",
"i",
"]",
".",
"nodeid",
"=",
"resources",
"[",
"i",
"]",
".",
"nodeid",
";",
"updateresources",
"[",
"i",
"]",
".",
"state",
"=",
"resources",
"[",
"i",
"]",
".",
"state",
";",
"updateresources",
"[",
"i",
"]",
".",
"backplane",
"=",
"resources",
"[",
"i",
"]",
".",
"backplane",
";",
"updateresources",
"[",
"i",
"]",
".",
"priority",
"=",
"resources",
"[",
"i",
"]",
".",
"priority",
";",
"}",
"result",
"=",
"update_bulk_request",
"(",
"client",
",",
"updateresources",
")",
";",
"}",
"return",
"result",
";",
"}"
] | Use this API to update clusternode resources. | [
"Use",
"this",
"API",
"to",
"update",
"clusternode",
"resources",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/cluster/clusternode.java#L400-L414 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/cluster/clusternode.java | clusternode.unset | public static base_response unset(nitro_service client, clusternode resource, String[] args) throws Exception{
clusternode unsetresource = new clusternode();
unsetresource.nodeid = resource.nodeid;
return unsetresource.unset_resource(client,args);
} | java | public static base_response unset(nitro_service client, clusternode resource, String[] args) throws Exception{
clusternode unsetresource = new clusternode();
unsetresource.nodeid = resource.nodeid;
return unsetresource.unset_resource(client,args);
} | [
"public",
"static",
"base_response",
"unset",
"(",
"nitro_service",
"client",
",",
"clusternode",
"resource",
",",
"String",
"[",
"]",
"args",
")",
"throws",
"Exception",
"{",
"clusternode",
"unsetresource",
"=",
"new",
"clusternode",
"(",
")",
";",
"unsetresource",
".",
"nodeid",
"=",
"resource",
".",
"nodeid",
";",
"return",
"unsetresource",
".",
"unset_resource",
"(",
"client",
",",
"args",
")",
";",
"}"
] | Use this API to unset the properties of clusternode resource.
Properties that need to be unset are specified in args array. | [
"Use",
"this",
"API",
"to",
"unset",
"the",
"properties",
"of",
"clusternode",
"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/cluster/clusternode.java#L420-L424 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/cluster/clusternode.java | clusternode.unset | public static base_responses unset(nitro_service client, Long nodeid[], String args[]) throws Exception {
base_responses result = null;
if (nodeid != null && nodeid.length > 0) {
clusternode unsetresources[] = new clusternode[nodeid.length];
for (int i=0;i<nodeid.length;i++){
unsetresources[i] = new clusternode();
unsetresources[i].nodeid = nodeid[i];
}
result = unset_bulk_request(client, unsetresources,args);
}
return result;
} | java | public static base_responses unset(nitro_service client, Long nodeid[], String args[]) throws Exception {
base_responses result = null;
if (nodeid != null && nodeid.length > 0) {
clusternode unsetresources[] = new clusternode[nodeid.length];
for (int i=0;i<nodeid.length;i++){
unsetresources[i] = new clusternode();
unsetresources[i].nodeid = nodeid[i];
}
result = unset_bulk_request(client, unsetresources,args);
}
return result;
} | [
"public",
"static",
"base_responses",
"unset",
"(",
"nitro_service",
"client",
",",
"Long",
"nodeid",
"[",
"]",
",",
"String",
"args",
"[",
"]",
")",
"throws",
"Exception",
"{",
"base_responses",
"result",
"=",
"null",
";",
"if",
"(",
"nodeid",
"!=",
"null",
"&&",
"nodeid",
".",
"length",
">",
"0",
")",
"{",
"clusternode",
"unsetresources",
"[",
"]",
"=",
"new",
"clusternode",
"[",
"nodeid",
".",
"length",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"nodeid",
".",
"length",
";",
"i",
"++",
")",
"{",
"unsetresources",
"[",
"i",
"]",
"=",
"new",
"clusternode",
"(",
")",
";",
"unsetresources",
"[",
"i",
"]",
".",
"nodeid",
"=",
"nodeid",
"[",
"i",
"]",
";",
"}",
"result",
"=",
"unset_bulk_request",
"(",
"client",
",",
"unsetresources",
",",
"args",
")",
";",
"}",
"return",
"result",
";",
"}"
] | Use this API to unset the properties of clusternode resources.
Properties that need to be unset are specified in args array. | [
"Use",
"this",
"API",
"to",
"unset",
"the",
"properties",
"of",
"clusternode",
"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/cluster/clusternode.java#L430-L441 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/cluster/clusternode.java | clusternode.delete | public static base_response delete(nitro_service client, clusternode resource) throws Exception {
clusternode deleteresource = new clusternode();
deleteresource.nodeid = resource.nodeid;
return deleteresource.delete_resource(client);
} | java | public static base_response delete(nitro_service client, clusternode resource) throws Exception {
clusternode deleteresource = new clusternode();
deleteresource.nodeid = resource.nodeid;
return deleteresource.delete_resource(client);
} | [
"public",
"static",
"base_response",
"delete",
"(",
"nitro_service",
"client",
",",
"clusternode",
"resource",
")",
"throws",
"Exception",
"{",
"clusternode",
"deleteresource",
"=",
"new",
"clusternode",
"(",
")",
";",
"deleteresource",
".",
"nodeid",
"=",
"resource",
".",
"nodeid",
";",
"return",
"deleteresource",
".",
"delete_resource",
"(",
"client",
")",
";",
"}"
] | Use this API to delete clusternode. | [
"Use",
"this",
"API",
"to",
"delete",
"clusternode",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/cluster/clusternode.java#L472-L476 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/cluster/clusternode.java | clusternode.delete | public static base_responses delete(nitro_service client, Long nodeid[]) throws Exception {
base_responses result = null;
if (nodeid != null && nodeid.length > 0) {
clusternode deleteresources[] = new clusternode[nodeid.length];
for (int i=0;i<nodeid.length;i++){
deleteresources[i] = new clusternode();
deleteresources[i].nodeid = nodeid[i];
}
result = delete_bulk_request(client, deleteresources);
}
return result;
} | java | public static base_responses delete(nitro_service client, Long nodeid[]) throws Exception {
base_responses result = null;
if (nodeid != null && nodeid.length > 0) {
clusternode deleteresources[] = new clusternode[nodeid.length];
for (int i=0;i<nodeid.length;i++){
deleteresources[i] = new clusternode();
deleteresources[i].nodeid = nodeid[i];
}
result = delete_bulk_request(client, deleteresources);
}
return result;
} | [
"public",
"static",
"base_responses",
"delete",
"(",
"nitro_service",
"client",
",",
"Long",
"nodeid",
"[",
"]",
")",
"throws",
"Exception",
"{",
"base_responses",
"result",
"=",
"null",
";",
"if",
"(",
"nodeid",
"!=",
"null",
"&&",
"nodeid",
".",
"length",
">",
"0",
")",
"{",
"clusternode",
"deleteresources",
"[",
"]",
"=",
"new",
"clusternode",
"[",
"nodeid",
".",
"length",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"nodeid",
".",
"length",
";",
"i",
"++",
")",
"{",
"deleteresources",
"[",
"i",
"]",
"=",
"new",
"clusternode",
"(",
")",
";",
"deleteresources",
"[",
"i",
"]",
".",
"nodeid",
"=",
"nodeid",
"[",
"i",
"]",
";",
"}",
"result",
"=",
"delete_bulk_request",
"(",
"client",
",",
"deleteresources",
")",
";",
"}",
"return",
"result",
";",
"}"
] | Use this API to delete clusternode resources of given names. | [
"Use",
"this",
"API",
"to",
"delete",
"clusternode",
"resources",
"of",
"given",
"names",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/cluster/clusternode.java#L481-L492 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/cluster/clusternode.java | clusternode.get | public static clusternode[] get(nitro_service service) throws Exception{
clusternode obj = new clusternode();
clusternode[] response = (clusternode[])obj.get_resources(service);
return response;
} | java | public static clusternode[] get(nitro_service service) throws Exception{
clusternode obj = new clusternode();
clusternode[] response = (clusternode[])obj.get_resources(service);
return response;
} | [
"public",
"static",
"clusternode",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
")",
"throws",
"Exception",
"{",
"clusternode",
"obj",
"=",
"new",
"clusternode",
"(",
")",
";",
"clusternode",
"[",
"]",
"response",
"=",
"(",
"clusternode",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch all the clusternode resources that are configured on netscaler. | [
"Use",
"this",
"API",
"to",
"fetch",
"all",
"the",
"clusternode",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/cluster/clusternode.java#L513-L517 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/cluster/clusternode.java | clusternode.get | public static clusternode get(nitro_service service, Long nodeid) throws Exception{
clusternode obj = new clusternode();
obj.set_nodeid(nodeid);
clusternode response = (clusternode) obj.get_resource(service);
return response;
} | java | public static clusternode get(nitro_service service, Long nodeid) throws Exception{
clusternode obj = new clusternode();
obj.set_nodeid(nodeid);
clusternode response = (clusternode) obj.get_resource(service);
return response;
} | [
"public",
"static",
"clusternode",
"get",
"(",
"nitro_service",
"service",
",",
"Long",
"nodeid",
")",
"throws",
"Exception",
"{",
"clusternode",
"obj",
"=",
"new",
"clusternode",
"(",
")",
";",
"obj",
".",
"set_nodeid",
"(",
"nodeid",
")",
";",
"clusternode",
"response",
"=",
"(",
"clusternode",
")",
"obj",
".",
"get_resource",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch clusternode resource of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"clusternode",
"resource",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/cluster/clusternode.java#L529-L534 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/cluster/clusternode.java | clusternode.get | public static clusternode[] get(nitro_service service, Long nodeid[]) throws Exception{
if (nodeid !=null && nodeid.length>0) {
clusternode response[] = new clusternode[nodeid.length];
clusternode obj[] = new clusternode[nodeid.length];
for (int i=0;i<nodeid.length;i++) {
obj[i] = new clusternode();
obj[i].set_nodeid(nodeid[i]);
response[i] = (clusternode) obj[i].get_resource(service);
}
return response;
}
return null;
} | java | public static clusternode[] get(nitro_service service, Long nodeid[]) throws Exception{
if (nodeid !=null && nodeid.length>0) {
clusternode response[] = new clusternode[nodeid.length];
clusternode obj[] = new clusternode[nodeid.length];
for (int i=0;i<nodeid.length;i++) {
obj[i] = new clusternode();
obj[i].set_nodeid(nodeid[i]);
response[i] = (clusternode) obj[i].get_resource(service);
}
return response;
}
return null;
} | [
"public",
"static",
"clusternode",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"Long",
"nodeid",
"[",
"]",
")",
"throws",
"Exception",
"{",
"if",
"(",
"nodeid",
"!=",
"null",
"&&",
"nodeid",
".",
"length",
">",
"0",
")",
"{",
"clusternode",
"response",
"[",
"]",
"=",
"new",
"clusternode",
"[",
"nodeid",
".",
"length",
"]",
";",
"clusternode",
"obj",
"[",
"]",
"=",
"new",
"clusternode",
"[",
"nodeid",
".",
"length",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"nodeid",
".",
"length",
";",
"i",
"++",
")",
"{",
"obj",
"[",
"i",
"]",
"=",
"new",
"clusternode",
"(",
")",
";",
"obj",
"[",
"i",
"]",
".",
"set_nodeid",
"(",
"nodeid",
"[",
"i",
"]",
")",
";",
"response",
"[",
"i",
"]",
"=",
"(",
"clusternode",
")",
"obj",
"[",
"i",
"]",
".",
"get_resource",
"(",
"service",
")",
";",
"}",
"return",
"response",
";",
"}",
"return",
"null",
";",
"}"
] | Use this API to fetch clusternode resources of given names . | [
"Use",
"this",
"API",
"to",
"fetch",
"clusternode",
"resources",
"of",
"given",
"names",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/cluster/clusternode.java#L539-L551 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/cluster/clusternode.java | clusternode.get_filtered | public static clusternode[] get_filtered(nitro_service service, filtervalue[] filter) throws Exception{
clusternode obj = new clusternode();
options option = new options();
option.set_filter(filter);
clusternode[] response = (clusternode[]) obj.getfiltered(service, option);
return response;
} | java | public static clusternode[] get_filtered(nitro_service service, filtervalue[] filter) throws Exception{
clusternode obj = new clusternode();
options option = new options();
option.set_filter(filter);
clusternode[] response = (clusternode[]) obj.getfiltered(service, option);
return response;
} | [
"public",
"static",
"clusternode",
"[",
"]",
"get_filtered",
"(",
"nitro_service",
"service",
",",
"filtervalue",
"[",
"]",
"filter",
")",
"throws",
"Exception",
"{",
"clusternode",
"obj",
"=",
"new",
"clusternode",
"(",
")",
";",
"options",
"option",
"=",
"new",
"options",
"(",
")",
";",
"option",
".",
"set_filter",
"(",
"filter",
")",
";",
"clusternode",
"[",
"]",
"response",
"=",
"(",
"clusternode",
"[",
"]",
")",
"obj",
".",
"getfiltered",
"(",
"service",
",",
"option",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch filtered set of clusternode resources.
set the filter parameter values in filtervalue object. | [
"Use",
"this",
"API",
"to",
"fetch",
"filtered",
"set",
"of",
"clusternode",
"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/cluster/clusternode.java#L568-L574 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/ssl/sslpolicy_binding.java | sslpolicy_binding.get | public static sslpolicy_binding get(nitro_service service, String name) throws Exception{
sslpolicy_binding obj = new sslpolicy_binding();
obj.set_name(name);
sslpolicy_binding response = (sslpolicy_binding) obj.get_resource(service);
return response;
} | java | public static sslpolicy_binding get(nitro_service service, String name) throws Exception{
sslpolicy_binding obj = new sslpolicy_binding();
obj.set_name(name);
sslpolicy_binding response = (sslpolicy_binding) obj.get_resource(service);
return response;
} | [
"public",
"static",
"sslpolicy_binding",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"sslpolicy_binding",
"obj",
"=",
"new",
"sslpolicy_binding",
"(",
")",
";",
"obj",
".",
"set_name",
"(",
"name",
")",
";",
"sslpolicy_binding",
"response",
"=",
"(",
"sslpolicy_binding",
")",
"obj",
".",
"get_resource",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch sslpolicy_binding resource of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"sslpolicy_binding",
"resource",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ssl/sslpolicy_binding.java#L158-L163 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/lb/lbvserver_responderpolicy_binding.java | lbvserver_responderpolicy_binding.get | public static lbvserver_responderpolicy_binding[] get(nitro_service service, String name) throws Exception{
lbvserver_responderpolicy_binding obj = new lbvserver_responderpolicy_binding();
obj.set_name(name);
lbvserver_responderpolicy_binding response[] = (lbvserver_responderpolicy_binding[]) obj.get_resources(service);
return response;
} | java | public static lbvserver_responderpolicy_binding[] get(nitro_service service, String name) throws Exception{
lbvserver_responderpolicy_binding obj = new lbvserver_responderpolicy_binding();
obj.set_name(name);
lbvserver_responderpolicy_binding response[] = (lbvserver_responderpolicy_binding[]) obj.get_resources(service);
return response;
} | [
"public",
"static",
"lbvserver_responderpolicy_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"lbvserver_responderpolicy_binding",
"obj",
"=",
"new",
"lbvserver_responderpolicy_binding",
"(",
")",
";",
"obj",
".",
"set_name",
"(",
"name",
")",
";",
"lbvserver_responderpolicy_binding",
"response",
"[",
"]",
"=",
"(",
"lbvserver_responderpolicy_binding",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch lbvserver_responderpolicy_binding resources of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"lbvserver_responderpolicy_binding",
"resources",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/lb/lbvserver_responderpolicy_binding.java#L306-L311 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/cmp/cmppolicy_csvserver_binding.java | cmppolicy_csvserver_binding.get | public static cmppolicy_csvserver_binding[] get(nitro_service service, String name) throws Exception{
cmppolicy_csvserver_binding obj = new cmppolicy_csvserver_binding();
obj.set_name(name);
cmppolicy_csvserver_binding response[] = (cmppolicy_csvserver_binding[]) obj.get_resources(service);
return response;
} | java | public static cmppolicy_csvserver_binding[] get(nitro_service service, String name) throws Exception{
cmppolicy_csvserver_binding obj = new cmppolicy_csvserver_binding();
obj.set_name(name);
cmppolicy_csvserver_binding response[] = (cmppolicy_csvserver_binding[]) obj.get_resources(service);
return response;
} | [
"public",
"static",
"cmppolicy_csvserver_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"cmppolicy_csvserver_binding",
"obj",
"=",
"new",
"cmppolicy_csvserver_binding",
"(",
")",
";",
"obj",
".",
"set_name",
"(",
"name",
")",
";",
"cmppolicy_csvserver_binding",
"response",
"[",
"]",
"=",
"(",
"cmppolicy_csvserver_binding",
"[",
"]",
")",
"obj",
".",
"get_resources",
"(",
"service",
")",
";",
"return",
"response",
";",
"}"
] | Use this API to fetch cmppolicy_csvserver_binding resources of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"cmppolicy_csvserver_binding",
"resources",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/cmp/cmppolicy_csvserver_binding.java#L162-L167 | train |
Subsets and Splits