repo
stringlengths
7
58
path
stringlengths
12
218
func_name
stringlengths
3
140
original_string
stringlengths
73
34.1k
language
stringclasses
1 value
code
stringlengths
73
34.1k
code_tokens
sequence
docstring
stringlengths
3
16k
docstring_tokens
sequence
sha
stringlengths
40
40
url
stringlengths
105
339
partition
stringclasses
1 value
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/system/systemcollectionparam.java
systemcollectionparam.update
public static base_response update(nitro_service client, systemcollectionparam resource) throws Exception { systemcollectionparam updateresource = new systemcollectionparam(); updateresource.communityname = resource.communityname; updateresource.loglevel = resource.loglevel; updateresource.datapath = resource.datapath; return updateresource.update_resource(client); }
java
public static base_response update(nitro_service client, systemcollectionparam resource) throws Exception { systemcollectionparam updateresource = new systemcollectionparam(); updateresource.communityname = resource.communityname; updateresource.loglevel = resource.loglevel; updateresource.datapath = resource.datapath; return updateresource.update_resource(client); }
[ "public", "static", "base_response", "update", "(", "nitro_service", "client", ",", "systemcollectionparam", "resource", ")", "throws", "Exception", "{", "systemcollectionparam", "updateresource", "=", "new", "systemcollectionparam", "(", ")", ";", "updateresource", ".", "communityname", "=", "resource", ".", "communityname", ";", "updateresource", ".", "loglevel", "=", "resource", ".", "loglevel", ";", "updateresource", ".", "datapath", "=", "resource", ".", "datapath", ";", "return", "updateresource", ".", "update_resource", "(", "client", ")", ";", "}" ]
Use this API to update systemcollectionparam.
[ "Use", "this", "API", "to", "update", "systemcollectionparam", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/system/systemcollectionparam.java#L132-L138
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/system/systemcollectionparam.java
systemcollectionparam.unset
public static base_response unset(nitro_service client, systemcollectionparam resource, String[] args) throws Exception{ systemcollectionparam unsetresource = new systemcollectionparam(); return unsetresource.unset_resource(client,args); }
java
public static base_response unset(nitro_service client, systemcollectionparam resource, String[] args) throws Exception{ systemcollectionparam unsetresource = new systemcollectionparam(); return unsetresource.unset_resource(client,args); }
[ "public", "static", "base_response", "unset", "(", "nitro_service", "client", ",", "systemcollectionparam", "resource", ",", "String", "[", "]", "args", ")", "throws", "Exception", "{", "systemcollectionparam", "unsetresource", "=", "new", "systemcollectionparam", "(", ")", ";", "return", "unsetresource", ".", "unset_resource", "(", "client", ",", "args", ")", ";", "}" ]
Use this API to unset the properties of systemcollectionparam resource. Properties that need to be unset are specified in args array.
[ "Use", "this", "API", "to", "unset", "the", "properties", "of", "systemcollectionparam", "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/system/systemcollectionparam.java#L144-L147
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/system/systemcollectionparam.java
systemcollectionparam.get
public static systemcollectionparam get(nitro_service service) throws Exception{ systemcollectionparam obj = new systemcollectionparam(); systemcollectionparam[] response = (systemcollectionparam[])obj.get_resources(service); return response[0]; }
java
public static systemcollectionparam get(nitro_service service) throws Exception{ systemcollectionparam obj = new systemcollectionparam(); systemcollectionparam[] response = (systemcollectionparam[])obj.get_resources(service); return response[0]; }
[ "public", "static", "systemcollectionparam", "get", "(", "nitro_service", "service", ")", "throws", "Exception", "{", "systemcollectionparam", "obj", "=", "new", "systemcollectionparam", "(", ")", ";", "systemcollectionparam", "[", "]", "response", "=", "(", "systemcollectionparam", "[", "]", ")", "obj", ".", "get_resources", "(", "service", ")", ";", "return", "response", "[", "0", "]", ";", "}" ]
Use this API to fetch all the systemcollectionparam resources that are configured on netscaler.
[ "Use", "this", "API", "to", "fetch", "all", "the", "systemcollectionparam", "resources", "that", "are", "configured", "on", "netscaler", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/system/systemcollectionparam.java#L152-L156
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/gslb/gslbconfig.java
gslbconfig.sync
public static base_response sync(nitro_service client, gslbconfig resource) throws Exception { gslbconfig syncresource = new gslbconfig(); syncresource.preview = resource.preview; syncresource.debug = resource.debug; syncresource.forcesync = resource.forcesync; syncresource.nowarn = resource.nowarn; syncresource.saveconfig = resource.saveconfig; syncresource.command = resource.command; return syncresource.perform_operation(client,"sync"); }
java
public static base_response sync(nitro_service client, gslbconfig resource) throws Exception { gslbconfig syncresource = new gslbconfig(); syncresource.preview = resource.preview; syncresource.debug = resource.debug; syncresource.forcesync = resource.forcesync; syncresource.nowarn = resource.nowarn; syncresource.saveconfig = resource.saveconfig; syncresource.command = resource.command; return syncresource.perform_operation(client,"sync"); }
[ "public", "static", "base_response", "sync", "(", "nitro_service", "client", ",", "gslbconfig", "resource", ")", "throws", "Exception", "{", "gslbconfig", "syncresource", "=", "new", "gslbconfig", "(", ")", ";", "syncresource", ".", "preview", "=", "resource", ".", "preview", ";", "syncresource", ".", "debug", "=", "resource", ".", "debug", ";", "syncresource", ".", "forcesync", "=", "resource", ".", "forcesync", ";", "syncresource", ".", "nowarn", "=", "resource", ".", "nowarn", ";", "syncresource", ".", "saveconfig", "=", "resource", ".", "saveconfig", ";", "syncresource", ".", "command", "=", "resource", ".", "command", ";", "return", "syncresource", ".", "perform_operation", "(", "client", ",", "\"sync\"", ")", ";", "}" ]
Use this API to sync gslbconfig.
[ "Use", "this", "API", "to", "sync", "gslbconfig", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/gslb/gslbconfig.java#L227-L236
train
PeterisP/LVTagger
src/main/java/edu/stanford/nlp/process/WordShapeClassifier.java
WordShapeClassifier.lookupShaper
public static int lookupShaper(String name) { if (name == null) { return NOWORDSHAPE; } else if (name.equalsIgnoreCase("dan1")) { return WORDSHAPEDAN1; } else if (name.equalsIgnoreCase("chris1")) { return WORDSHAPECHRIS1; } else if (name.equalsIgnoreCase("dan2")) { return WORDSHAPEDAN2; } else if (name.equalsIgnoreCase("dan2useLC")) { return WORDSHAPEDAN2USELC; } else if (name.equalsIgnoreCase("dan2bio")) { return WORDSHAPEDAN2BIO; } else if (name.equalsIgnoreCase("dan2bioUseLC")) { return WORDSHAPEDAN2BIOUSELC; } else if (name.equalsIgnoreCase("jenny1")) { return WORDSHAPEJENNY1; } else if (name.equalsIgnoreCase("jenny1useLC")) { return WORDSHAPEJENNY1USELC; } else if (name.equalsIgnoreCase("chris2")) { return WORDSHAPECHRIS2; } else if (name.equalsIgnoreCase("chris2useLC")) { return WORDSHAPECHRIS2USELC; } else if (name.equalsIgnoreCase("chris3")) { return WORDSHAPECHRIS3; } else if (name.equalsIgnoreCase("chris3useLC")) { return WORDSHAPECHRIS3USELC; } else if (name.equalsIgnoreCase("chris4")) { return WORDSHAPECHRIS4; } else if (name.equalsIgnoreCase("digits")) { return WORDSHAPEDIGITS; } else { return NOWORDSHAPE; } }
java
public static int lookupShaper(String name) { if (name == null) { return NOWORDSHAPE; } else if (name.equalsIgnoreCase("dan1")) { return WORDSHAPEDAN1; } else if (name.equalsIgnoreCase("chris1")) { return WORDSHAPECHRIS1; } else if (name.equalsIgnoreCase("dan2")) { return WORDSHAPEDAN2; } else if (name.equalsIgnoreCase("dan2useLC")) { return WORDSHAPEDAN2USELC; } else if (name.equalsIgnoreCase("dan2bio")) { return WORDSHAPEDAN2BIO; } else if (name.equalsIgnoreCase("dan2bioUseLC")) { return WORDSHAPEDAN2BIOUSELC; } else if (name.equalsIgnoreCase("jenny1")) { return WORDSHAPEJENNY1; } else if (name.equalsIgnoreCase("jenny1useLC")) { return WORDSHAPEJENNY1USELC; } else if (name.equalsIgnoreCase("chris2")) { return WORDSHAPECHRIS2; } else if (name.equalsIgnoreCase("chris2useLC")) { return WORDSHAPECHRIS2USELC; } else if (name.equalsIgnoreCase("chris3")) { return WORDSHAPECHRIS3; } else if (name.equalsIgnoreCase("chris3useLC")) { return WORDSHAPECHRIS3USELC; } else if (name.equalsIgnoreCase("chris4")) { return WORDSHAPECHRIS4; } else if (name.equalsIgnoreCase("digits")) { return WORDSHAPEDIGITS; } else { return NOWORDSHAPE; } }
[ "public", "static", "int", "lookupShaper", "(", "String", "name", ")", "{", "if", "(", "name", "==", "null", ")", "{", "return", "NOWORDSHAPE", ";", "}", "else", "if", "(", "name", ".", "equalsIgnoreCase", "(", "\"dan1\"", ")", ")", "{", "return", "WORDSHAPEDAN1", ";", "}", "else", "if", "(", "name", ".", "equalsIgnoreCase", "(", "\"chris1\"", ")", ")", "{", "return", "WORDSHAPECHRIS1", ";", "}", "else", "if", "(", "name", ".", "equalsIgnoreCase", "(", "\"dan2\"", ")", ")", "{", "return", "WORDSHAPEDAN2", ";", "}", "else", "if", "(", "name", ".", "equalsIgnoreCase", "(", "\"dan2useLC\"", ")", ")", "{", "return", "WORDSHAPEDAN2USELC", ";", "}", "else", "if", "(", "name", ".", "equalsIgnoreCase", "(", "\"dan2bio\"", ")", ")", "{", "return", "WORDSHAPEDAN2BIO", ";", "}", "else", "if", "(", "name", ".", "equalsIgnoreCase", "(", "\"dan2bioUseLC\"", ")", ")", "{", "return", "WORDSHAPEDAN2BIOUSELC", ";", "}", "else", "if", "(", "name", ".", "equalsIgnoreCase", "(", "\"jenny1\"", ")", ")", "{", "return", "WORDSHAPEJENNY1", ";", "}", "else", "if", "(", "name", ".", "equalsIgnoreCase", "(", "\"jenny1useLC\"", ")", ")", "{", "return", "WORDSHAPEJENNY1USELC", ";", "}", "else", "if", "(", "name", ".", "equalsIgnoreCase", "(", "\"chris2\"", ")", ")", "{", "return", "WORDSHAPECHRIS2", ";", "}", "else", "if", "(", "name", ".", "equalsIgnoreCase", "(", "\"chris2useLC\"", ")", ")", "{", "return", "WORDSHAPECHRIS2USELC", ";", "}", "else", "if", "(", "name", ".", "equalsIgnoreCase", "(", "\"chris3\"", ")", ")", "{", "return", "WORDSHAPECHRIS3", ";", "}", "else", "if", "(", "name", ".", "equalsIgnoreCase", "(", "\"chris3useLC\"", ")", ")", "{", "return", "WORDSHAPECHRIS3USELC", ";", "}", "else", "if", "(", "name", ".", "equalsIgnoreCase", "(", "\"chris4\"", ")", ")", "{", "return", "WORDSHAPECHRIS4", ";", "}", "else", "if", "(", "name", ".", "equalsIgnoreCase", "(", "\"digits\"", ")", ")", "{", "return", "WORDSHAPEDIGITS", ";", "}", "else", "{", "return", "NOWORDSHAPE", ";", "}", "}" ]
Look up a shaper by a short String name. @param name Shaper name. Known names have patterns along the lines of: dan[12](bio)?(UseLC)?, jenny1(useLC)?, chris[1234](useLC)?. @return An integer constant for the shaper
[ "Look", "up", "a", "shaper", "by", "a", "short", "String", "name", "." ]
b3d44bab9ec07ace0d13612c448a6b7298c1f681
https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/process/WordShapeClassifier.java#L51-L85
train
PeterisP/LVTagger
src/main/java/edu/stanford/nlp/process/WordShapeClassifier.java
WordShapeClassifier.wordShape
public static String wordShape(String inStr, int wordShaper, Collection<String> knownLCWords) { // this first bit is for backwards compatibility with how things were first // implemented, where the word shaper name encodes whether to useLC. // If the shaper is in the old compatibility list, then a specified // list of knownLCwords is ignored if (knownLCWords != null && dontUseLC(wordShaper)) { knownLCWords = null; } switch (wordShaper) { case NOWORDSHAPE: return inStr; case WORDSHAPEDAN1: return wordShapeDan1(inStr); case WORDSHAPECHRIS1: return wordShapeChris1(inStr); case WORDSHAPEDAN2: return wordShapeDan2(inStr, knownLCWords); case WORDSHAPEDAN2USELC: return wordShapeDan2(inStr, knownLCWords); case WORDSHAPEDAN2BIO: return wordShapeDan2Bio(inStr, knownLCWords); case WORDSHAPEDAN2BIOUSELC: return wordShapeDan2Bio(inStr, knownLCWords); case WORDSHAPEJENNY1: return wordShapeJenny1(inStr, knownLCWords); case WORDSHAPEJENNY1USELC: return wordShapeJenny1(inStr, knownLCWords); case WORDSHAPECHRIS2: return wordShapeChris2(inStr, false, knownLCWords); case WORDSHAPECHRIS2USELC: return wordShapeChris2(inStr, false, knownLCWords); case WORDSHAPECHRIS3: return wordShapeChris2(inStr, true, knownLCWords); case WORDSHAPECHRIS3USELC: return wordShapeChris2(inStr, true, knownLCWords); case WORDSHAPECHRIS4: return wordShapeChris4(inStr, false, knownLCWords); case WORDSHAPEDIGITS: return wordShapeDigits(inStr); default: throw new IllegalStateException("Bad WordShapeClassifier"); } }
java
public static String wordShape(String inStr, int wordShaper, Collection<String> knownLCWords) { // this first bit is for backwards compatibility with how things were first // implemented, where the word shaper name encodes whether to useLC. // If the shaper is in the old compatibility list, then a specified // list of knownLCwords is ignored if (knownLCWords != null && dontUseLC(wordShaper)) { knownLCWords = null; } switch (wordShaper) { case NOWORDSHAPE: return inStr; case WORDSHAPEDAN1: return wordShapeDan1(inStr); case WORDSHAPECHRIS1: return wordShapeChris1(inStr); case WORDSHAPEDAN2: return wordShapeDan2(inStr, knownLCWords); case WORDSHAPEDAN2USELC: return wordShapeDan2(inStr, knownLCWords); case WORDSHAPEDAN2BIO: return wordShapeDan2Bio(inStr, knownLCWords); case WORDSHAPEDAN2BIOUSELC: return wordShapeDan2Bio(inStr, knownLCWords); case WORDSHAPEJENNY1: return wordShapeJenny1(inStr, knownLCWords); case WORDSHAPEJENNY1USELC: return wordShapeJenny1(inStr, knownLCWords); case WORDSHAPECHRIS2: return wordShapeChris2(inStr, false, knownLCWords); case WORDSHAPECHRIS2USELC: return wordShapeChris2(inStr, false, knownLCWords); case WORDSHAPECHRIS3: return wordShapeChris2(inStr, true, knownLCWords); case WORDSHAPECHRIS3USELC: return wordShapeChris2(inStr, true, knownLCWords); case WORDSHAPECHRIS4: return wordShapeChris4(inStr, false, knownLCWords); case WORDSHAPEDIGITS: return wordShapeDigits(inStr); default: throw new IllegalStateException("Bad WordShapeClassifier"); } }
[ "public", "static", "String", "wordShape", "(", "String", "inStr", ",", "int", "wordShaper", ",", "Collection", "<", "String", ">", "knownLCWords", ")", "{", "// this first bit is for backwards compatibility with how things were first\r", "// implemented, where the word shaper name encodes whether to useLC.\r", "// If the shaper is in the old compatibility list, then a specified\r", "// list of knownLCwords is ignored\r", "if", "(", "knownLCWords", "!=", "null", "&&", "dontUseLC", "(", "wordShaper", ")", ")", "{", "knownLCWords", "=", "null", ";", "}", "switch", "(", "wordShaper", ")", "{", "case", "NOWORDSHAPE", ":", "return", "inStr", ";", "case", "WORDSHAPEDAN1", ":", "return", "wordShapeDan1", "(", "inStr", ")", ";", "case", "WORDSHAPECHRIS1", ":", "return", "wordShapeChris1", "(", "inStr", ")", ";", "case", "WORDSHAPEDAN2", ":", "return", "wordShapeDan2", "(", "inStr", ",", "knownLCWords", ")", ";", "case", "WORDSHAPEDAN2USELC", ":", "return", "wordShapeDan2", "(", "inStr", ",", "knownLCWords", ")", ";", "case", "WORDSHAPEDAN2BIO", ":", "return", "wordShapeDan2Bio", "(", "inStr", ",", "knownLCWords", ")", ";", "case", "WORDSHAPEDAN2BIOUSELC", ":", "return", "wordShapeDan2Bio", "(", "inStr", ",", "knownLCWords", ")", ";", "case", "WORDSHAPEJENNY1", ":", "return", "wordShapeJenny1", "(", "inStr", ",", "knownLCWords", ")", ";", "case", "WORDSHAPEJENNY1USELC", ":", "return", "wordShapeJenny1", "(", "inStr", ",", "knownLCWords", ")", ";", "case", "WORDSHAPECHRIS2", ":", "return", "wordShapeChris2", "(", "inStr", ",", "false", ",", "knownLCWords", ")", ";", "case", "WORDSHAPECHRIS2USELC", ":", "return", "wordShapeChris2", "(", "inStr", ",", "false", ",", "knownLCWords", ")", ";", "case", "WORDSHAPECHRIS3", ":", "return", "wordShapeChris2", "(", "inStr", ",", "true", ",", "knownLCWords", ")", ";", "case", "WORDSHAPECHRIS3USELC", ":", "return", "wordShapeChris2", "(", "inStr", ",", "true", ",", "knownLCWords", ")", ";", "case", "WORDSHAPECHRIS4", ":", "return", "wordShapeChris4", "(", "inStr", ",", "false", ",", "knownLCWords", ")", ";", "case", "WORDSHAPEDIGITS", ":", "return", "wordShapeDigits", "(", "inStr", ")", ";", "default", ":", "throw", "new", "IllegalStateException", "(", "\"Bad WordShapeClassifier\"", ")", ";", "}", "}" ]
Specify the string and the int identifying which word shaper to use and this returns the result of using that wordshaper on the String. @param inStr String to calculate word shape of @param wordShaper Constant for which shaping formula to use @param knownLCWords A Collection of known lowercase words, which some shapers use to decide the class of capitalized words. <i>Note: while this code works with any Collection, you should provide a Set for decent performance.</i> If this parameter is null or empty, then this option is not used (capitalized words are treated the same, regardless of whether the lowercased version of the String has been seen). @return The wordshape String
[ "Specify", "the", "string", "and", "the", "int", "identifying", "which", "word", "shaper", "to", "use", "and", "this", "returns", "the", "result", "of", "using", "that", "wordshaper", "on", "the", "String", "." ]
b3d44bab9ec07ace0d13612c448a6b7298c1f681
https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/process/WordShapeClassifier.java#L136-L178
train
PeterisP/LVTagger
src/main/java/edu/stanford/nlp/process/WordShapeClassifier.java
WordShapeClassifier.wordShapeDan1
private static String wordShapeDan1(String s) { boolean digit = true; boolean upper = true; boolean lower = true; boolean mixed = true; for (int i = 0; i < s.length(); i++) { char c = s.charAt(i); if (!Character.isDigit(c)) { digit = false; } if (!Character.isLowerCase(c)) { lower = false; } if (!Character.isUpperCase(c)) { upper = false; } if ((i == 0 && !Character.isUpperCase(c)) || (i >= 1 && !Character.isLowerCase(c))) { mixed = false; } } if (digit) { return "ALL-DIGITS"; } if (upper) { return "ALL-UPPER"; } if (lower) { return "ALL-LOWER"; } if (mixed) { return "MIXED-CASE"; } return "OTHER"; }
java
private static String wordShapeDan1(String s) { boolean digit = true; boolean upper = true; boolean lower = true; boolean mixed = true; for (int i = 0; i < s.length(); i++) { char c = s.charAt(i); if (!Character.isDigit(c)) { digit = false; } if (!Character.isLowerCase(c)) { lower = false; } if (!Character.isUpperCase(c)) { upper = false; } if ((i == 0 && !Character.isUpperCase(c)) || (i >= 1 && !Character.isLowerCase(c))) { mixed = false; } } if (digit) { return "ALL-DIGITS"; } if (upper) { return "ALL-UPPER"; } if (lower) { return "ALL-LOWER"; } if (mixed) { return "MIXED-CASE"; } return "OTHER"; }
[ "private", "static", "String", "wordShapeDan1", "(", "String", "s", ")", "{", "boolean", "digit", "=", "true", ";", "boolean", "upper", "=", "true", ";", "boolean", "lower", "=", "true", ";", "boolean", "mixed", "=", "true", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "s", ".", "length", "(", ")", ";", "i", "++", ")", "{", "char", "c", "=", "s", ".", "charAt", "(", "i", ")", ";", "if", "(", "!", "Character", ".", "isDigit", "(", "c", ")", ")", "{", "digit", "=", "false", ";", "}", "if", "(", "!", "Character", ".", "isLowerCase", "(", "c", ")", ")", "{", "lower", "=", "false", ";", "}", "if", "(", "!", "Character", ".", "isUpperCase", "(", "c", ")", ")", "{", "upper", "=", "false", ";", "}", "if", "(", "(", "i", "==", "0", "&&", "!", "Character", ".", "isUpperCase", "(", "c", ")", ")", "||", "(", "i", ">=", "1", "&&", "!", "Character", ".", "isLowerCase", "(", "c", ")", ")", ")", "{", "mixed", "=", "false", ";", "}", "}", "if", "(", "digit", ")", "{", "return", "\"ALL-DIGITS\"", ";", "}", "if", "(", "upper", ")", "{", "return", "\"ALL-UPPER\"", ";", "}", "if", "(", "lower", ")", "{", "return", "\"ALL-LOWER\"", ";", "}", "if", "(", "mixed", ")", "{", "return", "\"MIXED-CASE\"", ";", "}", "return", "\"OTHER\"", ";", "}" ]
A fairly basic 5-way classifier, that notes digits, and upper and lower case, mixed, and non-alphanumeric. @param s String to find word shape of @return Its word shape: a 5 way classification
[ "A", "fairly", "basic", "5", "-", "way", "classifier", "that", "notes", "digits", "and", "upper", "and", "lower", "case", "mixed", "and", "non", "-", "alphanumeric", "." ]
b3d44bab9ec07ace0d13612c448a6b7298c1f681
https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/process/WordShapeClassifier.java#L187-L220
train
PeterisP/LVTagger
src/main/java/edu/stanford/nlp/process/WordShapeClassifier.java
WordShapeClassifier.wordShapeChris2Long
private static String wordShapeChris2Long(String s, boolean omitIfInBoundary, int len, Collection<String> knownLCWords) { final char[] beginChars = new char[BOUNDARY_SIZE]; final char[] endChars = new char[BOUNDARY_SIZE]; int beginUpto = 0; int endUpto = 0; final Set<Character> seenSet = new TreeSet<Character>(); // TreeSet guarantees stable ordering; has no size parameter boolean nonLetters = false; for (int i = 0; i < len; i++) { int iIncr = 0; char c = s.charAt(i); char m = c; if (Character.isDigit(c)) { m = 'd'; } else if (Character.isLowerCase(c)) { m = 'x'; } else if (Character.isUpperCase(c) || Character.isTitleCase(c)) { m = 'X'; } for (String gr : greek) { if (s.startsWith(gr, i)) { m = 'g'; //System.out.println(s + " :: " + s.substring(i+1)); iIncr = gr.length() - 1; break; } } if (m != 'x' && m != 'X') { nonLetters = true; } if (i < BOUNDARY_SIZE) { beginChars[beginUpto++] = m; } else if (i < len - BOUNDARY_SIZE) { seenSet.add(Character.valueOf(m)); } else { endChars[endUpto++] = m; } i += iIncr; // System.out.println("Position skips to " + i); } // Calculate size. This may be an upperbound, but is often correct int sbSize = beginUpto + endUpto + seenSet.size(); if (knownLCWords != null) { sbSize++; } final StringBuilder sb = new StringBuilder(sbSize); // put in the beginning chars sb.append(beginChars, 0, beginUpto); // put in the stored ones sorted if (omitIfInBoundary) { for (Character chr : seenSet) { char ch = chr.charValue(); boolean insert = true; for (int i = 0; i < beginUpto; i++) { if (beginChars[i] == ch) { insert = false; break; } } for (int i = 0; i < endUpto; i++) { if (endChars[i] == ch) { insert = false; break; } } if (insert) { sb.append(ch); } } } else { for (Character chr : seenSet) { sb.append(chr.charValue()); } } // and add end ones sb.append(endChars, 0, endUpto); if (knownLCWords != null) { if (!nonLetters && knownLCWords.contains(s.toLowerCase())) { sb.append('k'); } } // System.out.println(s + " became " + sb); return sb.toString(); }
java
private static String wordShapeChris2Long(String s, boolean omitIfInBoundary, int len, Collection<String> knownLCWords) { final char[] beginChars = new char[BOUNDARY_SIZE]; final char[] endChars = new char[BOUNDARY_SIZE]; int beginUpto = 0; int endUpto = 0; final Set<Character> seenSet = new TreeSet<Character>(); // TreeSet guarantees stable ordering; has no size parameter boolean nonLetters = false; for (int i = 0; i < len; i++) { int iIncr = 0; char c = s.charAt(i); char m = c; if (Character.isDigit(c)) { m = 'd'; } else if (Character.isLowerCase(c)) { m = 'x'; } else if (Character.isUpperCase(c) || Character.isTitleCase(c)) { m = 'X'; } for (String gr : greek) { if (s.startsWith(gr, i)) { m = 'g'; //System.out.println(s + " :: " + s.substring(i+1)); iIncr = gr.length() - 1; break; } } if (m != 'x' && m != 'X') { nonLetters = true; } if (i < BOUNDARY_SIZE) { beginChars[beginUpto++] = m; } else if (i < len - BOUNDARY_SIZE) { seenSet.add(Character.valueOf(m)); } else { endChars[endUpto++] = m; } i += iIncr; // System.out.println("Position skips to " + i); } // Calculate size. This may be an upperbound, but is often correct int sbSize = beginUpto + endUpto + seenSet.size(); if (knownLCWords != null) { sbSize++; } final StringBuilder sb = new StringBuilder(sbSize); // put in the beginning chars sb.append(beginChars, 0, beginUpto); // put in the stored ones sorted if (omitIfInBoundary) { for (Character chr : seenSet) { char ch = chr.charValue(); boolean insert = true; for (int i = 0; i < beginUpto; i++) { if (beginChars[i] == ch) { insert = false; break; } } for (int i = 0; i < endUpto; i++) { if (endChars[i] == ch) { insert = false; break; } } if (insert) { sb.append(ch); } } } else { for (Character chr : seenSet) { sb.append(chr.charValue()); } } // and add end ones sb.append(endChars, 0, endUpto); if (knownLCWords != null) { if (!nonLetters && knownLCWords.contains(s.toLowerCase())) { sb.append('k'); } } // System.out.println(s + " became " + sb); return sb.toString(); }
[ "private", "static", "String", "wordShapeChris2Long", "(", "String", "s", ",", "boolean", "omitIfInBoundary", ",", "int", "len", ",", "Collection", "<", "String", ">", "knownLCWords", ")", "{", "final", "char", "[", "]", "beginChars", "=", "new", "char", "[", "BOUNDARY_SIZE", "]", ";", "final", "char", "[", "]", "endChars", "=", "new", "char", "[", "BOUNDARY_SIZE", "]", ";", "int", "beginUpto", "=", "0", ";", "int", "endUpto", "=", "0", ";", "final", "Set", "<", "Character", ">", "seenSet", "=", "new", "TreeSet", "<", "Character", ">", "(", ")", ";", "// TreeSet guarantees stable ordering; has no size parameter\r", "boolean", "nonLetters", "=", "false", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "len", ";", "i", "++", ")", "{", "int", "iIncr", "=", "0", ";", "char", "c", "=", "s", ".", "charAt", "(", "i", ")", ";", "char", "m", "=", "c", ";", "if", "(", "Character", ".", "isDigit", "(", "c", ")", ")", "{", "m", "=", "'", "'", ";", "}", "else", "if", "(", "Character", ".", "isLowerCase", "(", "c", ")", ")", "{", "m", "=", "'", "'", ";", "}", "else", "if", "(", "Character", ".", "isUpperCase", "(", "c", ")", "||", "Character", ".", "isTitleCase", "(", "c", ")", ")", "{", "m", "=", "'", "'", ";", "}", "for", "(", "String", "gr", ":", "greek", ")", "{", "if", "(", "s", ".", "startsWith", "(", "gr", ",", "i", ")", ")", "{", "m", "=", "'", "'", ";", "//System.out.println(s + \" :: \" + s.substring(i+1));\r", "iIncr", "=", "gr", ".", "length", "(", ")", "-", "1", ";", "break", ";", "}", "}", "if", "(", "m", "!=", "'", "'", "&&", "m", "!=", "'", "'", ")", "{", "nonLetters", "=", "true", ";", "}", "if", "(", "i", "<", "BOUNDARY_SIZE", ")", "{", "beginChars", "[", "beginUpto", "++", "]", "=", "m", ";", "}", "else", "if", "(", "i", "<", "len", "-", "BOUNDARY_SIZE", ")", "{", "seenSet", ".", "add", "(", "Character", ".", "valueOf", "(", "m", ")", ")", ";", "}", "else", "{", "endChars", "[", "endUpto", "++", "]", "=", "m", ";", "}", "i", "+=", "iIncr", ";", "// System.out.println(\"Position skips to \" + i);\r", "}", "// Calculate size. This may be an upperbound, but is often correct\r", "int", "sbSize", "=", "beginUpto", "+", "endUpto", "+", "seenSet", ".", "size", "(", ")", ";", "if", "(", "knownLCWords", "!=", "null", ")", "{", "sbSize", "++", ";", "}", "final", "StringBuilder", "sb", "=", "new", "StringBuilder", "(", "sbSize", ")", ";", "// put in the beginning chars\r", "sb", ".", "append", "(", "beginChars", ",", "0", ",", "beginUpto", ")", ";", "// put in the stored ones sorted\r", "if", "(", "omitIfInBoundary", ")", "{", "for", "(", "Character", "chr", ":", "seenSet", ")", "{", "char", "ch", "=", "chr", ".", "charValue", "(", ")", ";", "boolean", "insert", "=", "true", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "beginUpto", ";", "i", "++", ")", "{", "if", "(", "beginChars", "[", "i", "]", "==", "ch", ")", "{", "insert", "=", "false", ";", "break", ";", "}", "}", "for", "(", "int", "i", "=", "0", ";", "i", "<", "endUpto", ";", "i", "++", ")", "{", "if", "(", "endChars", "[", "i", "]", "==", "ch", ")", "{", "insert", "=", "false", ";", "break", ";", "}", "}", "if", "(", "insert", ")", "{", "sb", ".", "append", "(", "ch", ")", ";", "}", "}", "}", "else", "{", "for", "(", "Character", "chr", ":", "seenSet", ")", "{", "sb", ".", "append", "(", "chr", ".", "charValue", "(", ")", ")", ";", "}", "}", "// and add end ones\r", "sb", ".", "append", "(", "endChars", ",", "0", ",", "endUpto", ")", ";", "if", "(", "knownLCWords", "!=", "null", ")", "{", "if", "(", "!", "nonLetters", "&&", "knownLCWords", ".", "contains", "(", "s", ".", "toLowerCase", "(", ")", ")", ")", "{", "sb", ".", "append", "(", "'", "'", ")", ";", "}", "}", "// System.out.println(s + \" became \" + sb);\r", "return", "sb", ".", "toString", "(", ")", ";", "}" ]
That is, of size 6, which become 8, since HashMaps are powers of 2. Still, it's half the size
[ "That", "is", "of", "size", "6", "which", "become", "8", "since", "HashMaps", "are", "powers", "of", "2", ".", "Still", "it", "s", "half", "the", "size" ]
b3d44bab9ec07ace0d13612c448a6b7298c1f681
https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/process/WordShapeClassifier.java#L402-L487
train
PeterisP/LVTagger
src/main/java/edu/stanford/nlp/process/WordShapeClassifier.java
WordShapeClassifier.wordShapeChris4
private static String wordShapeChris4(String s, boolean omitIfInBoundary, Collection<String> knownLCWords) { int len = s.length(); if (len <= BOUNDARY_SIZE * 2) { return wordShapeChris4Short(s, len, knownLCWords); } else { return wordShapeChris4Long(s, omitIfInBoundary, len, knownLCWords); } }
java
private static String wordShapeChris4(String s, boolean omitIfInBoundary, Collection<String> knownLCWords) { int len = s.length(); if (len <= BOUNDARY_SIZE * 2) { return wordShapeChris4Short(s, len, knownLCWords); } else { return wordShapeChris4Long(s, omitIfInBoundary, len, knownLCWords); } }
[ "private", "static", "String", "wordShapeChris4", "(", "String", "s", ",", "boolean", "omitIfInBoundary", ",", "Collection", "<", "String", ">", "knownLCWords", ")", "{", "int", "len", "=", "s", ".", "length", "(", ")", ";", "if", "(", "len", "<=", "BOUNDARY_SIZE", "*", "2", ")", "{", "return", "wordShapeChris4Short", "(", "s", ",", "len", ",", "knownLCWords", ")", ";", "}", "else", "{", "return", "wordShapeChris4Long", "(", "s", ",", "omitIfInBoundary", ",", "len", ",", "knownLCWords", ")", ";", "}", "}" ]
This one picks up on Dan2 ideas, but seeks to make less distinctions mid sequence by sorting for long words, but to maintain extra distinctions for short words, by always recording the class of the first and last two characters of the word. Compared to chris2 on which it is based, it uses more Unicode classes, and so collapses things like punctuation more, and might work better with real unicode. @param s The String to find the word shape of @param omitIfInBoundary If true, character classes present in the first or last two (i.e., BOUNDARY_SIZE) letters of the word are not also registered as classes that appear in the middle of the word. @param knownLCWords If non-null and non-empty, tag with a "k" suffix words that are in this list when lowercased (representing that the word is "known" as a lowercase word). @return A word shape for the word.
[ "This", "one", "picks", "up", "on", "Dan2", "ideas", "but", "seeks", "to", "make", "less", "distinctions", "mid", "sequence", "by", "sorting", "for", "long", "words", "but", "to", "maintain", "extra", "distinctions", "for", "short", "words", "by", "always", "recording", "the", "class", "of", "the", "first", "and", "last", "two", "characters", "of", "the", "word", ".", "Compared", "to", "chris2", "on", "which", "it", "is", "based", "it", "uses", "more", "Unicode", "classes", "and", "so", "collapses", "things", "like", "punctuation", "more", "and", "might", "work", "better", "with", "real", "unicode", "." ]
b3d44bab9ec07ace0d13612c448a6b7298c1f681
https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/process/WordShapeClassifier.java#L555-L562
train
PeterisP/LVTagger
src/main/java/edu/stanford/nlp/process/WordShapeClassifier.java
WordShapeClassifier.wordShapeDan2Bio
private static String wordShapeDan2Bio(String s, Collection<String> knownLCWords) { if (containsGreekLetter(s)) { return wordShapeDan2(s, knownLCWords) + "-GREEK"; } else { return wordShapeDan2(s, knownLCWords); } }
java
private static String wordShapeDan2Bio(String s, Collection<String> knownLCWords) { if (containsGreekLetter(s)) { return wordShapeDan2(s, knownLCWords) + "-GREEK"; } else { return wordShapeDan2(s, knownLCWords); } }
[ "private", "static", "String", "wordShapeDan2Bio", "(", "String", "s", ",", "Collection", "<", "String", ">", "knownLCWords", ")", "{", "if", "(", "containsGreekLetter", "(", "s", ")", ")", "{", "return", "wordShapeDan2", "(", "s", ",", "knownLCWords", ")", "+", "\"-GREEK\"", ";", "}", "else", "{", "return", "wordShapeDan2", "(", "s", ",", "knownLCWords", ")", ";", "}", "}" ]
Returns a fine-grained word shape classifier, that equivalence classes lower and upper case and digits, and collapses sequences of the same type, but keeps all punctuation. This adds an extra recognizer for a greek letter embedded in the String, which is useful for bio.
[ "Returns", "a", "fine", "-", "grained", "word", "shape", "classifier", "that", "equivalence", "classes", "lower", "and", "upper", "case", "and", "digits", "and", "collapses", "sequences", "of", "the", "same", "type", "but", "keeps", "all", "punctuation", ".", "This", "adds", "an", "extra", "recognizer", "for", "a", "greek", "letter", "embedded", "in", "the", "String", "which", "is", "useful", "for", "bio", "." ]
b3d44bab9ec07ace0d13612c448a6b7298c1f681
https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/process/WordShapeClassifier.java#L658-L664
train
PeterisP/LVTagger
src/main/java/edu/stanford/nlp/process/WordShapeClassifier.java
WordShapeClassifier.containsGreekLetter
private static boolean containsGreekLetter(String s) { Matcher m = biogreek.matcher(s); return m.find(); }
java
private static boolean containsGreekLetter(String s) { Matcher m = biogreek.matcher(s); return m.find(); }
[ "private", "static", "boolean", "containsGreekLetter", "(", "String", "s", ")", "{", "Matcher", "m", "=", "biogreek", ".", "matcher", "(", "s", ")", ";", "return", "m", ".", "find", "(", ")", ";", "}" ]
Somewhat ad-hoc list of only greek letters that bio people use, partly to avoid false positives on short ones. @param s String to check for Greek @return true iff there is a greek lette embedded somewhere in the String
[ "Somewhat", "ad", "-", "hoc", "list", "of", "only", "greek", "letters", "that", "bio", "people", "use", "partly", "to", "avoid", "false", "positives", "on", "short", "ones", "." ]
b3d44bab9ec07ace0d13612c448a6b7298c1f681
https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/process/WordShapeClassifier.java#L680-L683
train
PeterisP/LVTagger
src/main/java/edu/stanford/nlp/process/WordShapeClassifier.java
WordShapeClassifier.wordShapeDigits
private static String wordShapeDigits(final String s) { char[] outChars = null; for (int i = 0; i < s.length(); i++) { char c = s.charAt(i); if (Character.isDigit(c)) { if (outChars == null) { outChars = s.toCharArray(); } outChars[i] = '9'; } } if (outChars == null) { // no digit found return s; } else { return new String(outChars); } }
java
private static String wordShapeDigits(final String s) { char[] outChars = null; for (int i = 0; i < s.length(); i++) { char c = s.charAt(i); if (Character.isDigit(c)) { if (outChars == null) { outChars = s.toCharArray(); } outChars[i] = '9'; } } if (outChars == null) { // no digit found return s; } else { return new String(outChars); } }
[ "private", "static", "String", "wordShapeDigits", "(", "final", "String", "s", ")", "{", "char", "[", "]", "outChars", "=", "null", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "s", ".", "length", "(", ")", ";", "i", "++", ")", "{", "char", "c", "=", "s", ".", "charAt", "(", "i", ")", ";", "if", "(", "Character", ".", "isDigit", "(", "c", ")", ")", "{", "if", "(", "outChars", "==", "null", ")", "{", "outChars", "=", "s", ".", "toCharArray", "(", ")", ";", "}", "outChars", "[", "i", "]", "=", "'", "'", ";", "}", "}", "if", "(", "outChars", "==", "null", ")", "{", "// no digit found\r", "return", "s", ";", "}", "else", "{", "return", "new", "String", "(", "outChars", ")", ";", "}", "}" ]
Just collapses digits to 9 characters. Does lazy copying of String. @param s String to find word shape of @return The same string except digits are equivalence classed to 9.
[ "Just", "collapses", "digits", "to", "9", "characters", ".", "Does", "lazy", "copying", "of", "String", "." ]
b3d44bab9ec07ace0d13612c448a6b7298c1f681
https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/process/WordShapeClassifier.java#L824-L842
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/aaa/aaagroup_authorizationpolicy_binding.java
aaagroup_authorizationpolicy_binding.get
public static aaagroup_authorizationpolicy_binding[] get(nitro_service service, String groupname) throws Exception{ aaagroup_authorizationpolicy_binding obj = new aaagroup_authorizationpolicy_binding(); obj.set_groupname(groupname); aaagroup_authorizationpolicy_binding response[] = (aaagroup_authorizationpolicy_binding[]) obj.get_resources(service); return response; }
java
public static aaagroup_authorizationpolicy_binding[] get(nitro_service service, String groupname) throws Exception{ aaagroup_authorizationpolicy_binding obj = new aaagroup_authorizationpolicy_binding(); obj.set_groupname(groupname); aaagroup_authorizationpolicy_binding response[] = (aaagroup_authorizationpolicy_binding[]) obj.get_resources(service); return response; }
[ "public", "static", "aaagroup_authorizationpolicy_binding", "[", "]", "get", "(", "nitro_service", "service", ",", "String", "groupname", ")", "throws", "Exception", "{", "aaagroup_authorizationpolicy_binding", "obj", "=", "new", "aaagroup_authorizationpolicy_binding", "(", ")", ";", "obj", ".", "set_groupname", "(", "groupname", ")", ";", "aaagroup_authorizationpolicy_binding", "response", "[", "]", "=", "(", "aaagroup_authorizationpolicy_binding", "[", "]", ")", "obj", ".", "get_resources", "(", "service", ")", ";", "return", "response", ";", "}" ]
Use this API to fetch aaagroup_authorizationpolicy_binding resources of given name .
[ "Use", "this", "API", "to", "fetch", "aaagroup_authorizationpolicy_binding", "resources", "of", "given", "name", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/aaa/aaagroup_authorizationpolicy_binding.java#L246-L251
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/cache/cachepolicylabel_policybinding_binding.java
cachepolicylabel_policybinding_binding.get
public static cachepolicylabel_policybinding_binding[] get(nitro_service service, String labelname) throws Exception{ cachepolicylabel_policybinding_binding obj = new cachepolicylabel_policybinding_binding(); obj.set_labelname(labelname); cachepolicylabel_policybinding_binding response[] = (cachepolicylabel_policybinding_binding[]) obj.get_resources(service); return response; }
java
public static cachepolicylabel_policybinding_binding[] get(nitro_service service, String labelname) throws Exception{ cachepolicylabel_policybinding_binding obj = new cachepolicylabel_policybinding_binding(); obj.set_labelname(labelname); cachepolicylabel_policybinding_binding response[] = (cachepolicylabel_policybinding_binding[]) obj.get_resources(service); return response; }
[ "public", "static", "cachepolicylabel_policybinding_binding", "[", "]", "get", "(", "nitro_service", "service", ",", "String", "labelname", ")", "throws", "Exception", "{", "cachepolicylabel_policybinding_binding", "obj", "=", "new", "cachepolicylabel_policybinding_binding", "(", ")", ";", "obj", ".", "set_labelname", "(", "labelname", ")", ";", "cachepolicylabel_policybinding_binding", "response", "[", "]", "=", "(", "cachepolicylabel_policybinding_binding", "[", "]", ")", "obj", ".", "get_resources", "(", "service", ")", ";", "return", "response", ";", "}" ]
Use this API to fetch cachepolicylabel_policybinding_binding resources of given name .
[ "Use", "this", "API", "to", "fetch", "cachepolicylabel_policybinding_binding", "resources", "of", "given", "name", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/cache/cachepolicylabel_policybinding_binding.java#L225-L230
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/cs/csvserver_copolicy_binding.java
csvserver_copolicy_binding.get
public static csvserver_copolicy_binding[] get(nitro_service service, String name) throws Exception{ csvserver_copolicy_binding obj = new csvserver_copolicy_binding(); obj.set_name(name); csvserver_copolicy_binding response[] = (csvserver_copolicy_binding[]) obj.get_resources(service); return response; }
java
public static csvserver_copolicy_binding[] get(nitro_service service, String name) throws Exception{ csvserver_copolicy_binding obj = new csvserver_copolicy_binding(); obj.set_name(name); csvserver_copolicy_binding response[] = (csvserver_copolicy_binding[]) obj.get_resources(service); return response; }
[ "public", "static", "csvserver_copolicy_binding", "[", "]", "get", "(", "nitro_service", "service", ",", "String", "name", ")", "throws", "Exception", "{", "csvserver_copolicy_binding", "obj", "=", "new", "csvserver_copolicy_binding", "(", ")", ";", "obj", ".", "set_name", "(", "name", ")", ";", "csvserver_copolicy_binding", "response", "[", "]", "=", "(", "csvserver_copolicy_binding", "[", "]", ")", "obj", ".", "get_resources", "(", "service", ")", ";", "return", "response", ";", "}" ]
Use this API to fetch csvserver_copolicy_binding resources of given name .
[ "Use", "this", "API", "to", "fetch", "csvserver_copolicy_binding", "resources", "of", "given", "name", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/cs/csvserver_copolicy_binding.java#L327-L332
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/stat/ipsec/ipseccounters_stats.java
ipseccounters_stats.get
public static ipseccounters_stats get(nitro_service service) throws Exception{ ipseccounters_stats obj = new ipseccounters_stats(); ipseccounters_stats[] response = (ipseccounters_stats[])obj.stat_resources(service); return response[0]; }
java
public static ipseccounters_stats get(nitro_service service) throws Exception{ ipseccounters_stats obj = new ipseccounters_stats(); ipseccounters_stats[] response = (ipseccounters_stats[])obj.stat_resources(service); return response[0]; }
[ "public", "static", "ipseccounters_stats", "get", "(", "nitro_service", "service", ")", "throws", "Exception", "{", "ipseccounters_stats", "obj", "=", "new", "ipseccounters_stats", "(", ")", ";", "ipseccounters_stats", "[", "]", "response", "=", "(", "ipseccounters_stats", "[", "]", ")", "obj", ".", "stat_resources", "(", "service", ")", ";", "return", "response", "[", "0", "]", ";", "}" ]
Use this API to fetch the statistics of all ipseccounters_stats resources that are configured on netscaler.
[ "Use", "this", "API", "to", "fetch", "the", "statistics", "of", "all", "ipseccounters_stats", "resources", "that", "are", "configured", "on", "netscaler", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/stat/ipsec/ipseccounters_stats.java#L174-L178
train
PeterisP/LVTagger
src/main/java/edu/stanford/nlp/util/logging/RedwoodConfiguration.java
RedwoodConfiguration.clear
public RedwoodConfiguration clear(){ tasks = new LinkedList<Runnable>(); tasks.add(new Runnable(){ public void run(){ Redwood.clearHandlers(); Redwood.restoreSystemStreams(); Redwood.clearLoggingClasses(); } }); return this; }
java
public RedwoodConfiguration clear(){ tasks = new LinkedList<Runnable>(); tasks.add(new Runnable(){ public void run(){ Redwood.clearHandlers(); Redwood.restoreSystemStreams(); Redwood.clearLoggingClasses(); } }); return this; }
[ "public", "RedwoodConfiguration", "clear", "(", ")", "{", "tasks", "=", "new", "LinkedList", "<", "Runnable", ">", "(", ")", ";", "tasks", ".", "add", "(", "new", "Runnable", "(", ")", "{", "public", "void", "run", "(", ")", "{", "Redwood", ".", "clearHandlers", "(", ")", ";", "Redwood", ".", "restoreSystemStreams", "(", ")", ";", "Redwood", ".", "clearLoggingClasses", "(", ")", ";", "}", "}", ")", ";", "return", "this", ";", "}" ]
Clear any custom configurations to Redwood @return this
[ "Clear", "any", "custom", "configurations", "to", "Redwood" ]
b3d44bab9ec07ace0d13612c448a6b7298c1f681
https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/util/logging/RedwoodConfiguration.java#L45-L53
train
PeterisP/LVTagger
src/main/java/edu/stanford/nlp/util/logging/RedwoodConfiguration.java
RedwoodConfiguration.stdout
public RedwoodConfiguration stdout(){ LogRecordHandler visibility = new VisibilityHandler(); LogRecordHandler console = Redwood.ConsoleHandler.out(); return this .rootHandler(visibility) .handler(visibility, console); }
java
public RedwoodConfiguration stdout(){ LogRecordHandler visibility = new VisibilityHandler(); LogRecordHandler console = Redwood.ConsoleHandler.out(); return this .rootHandler(visibility) .handler(visibility, console); }
[ "public", "RedwoodConfiguration", "stdout", "(", ")", "{", "LogRecordHandler", "visibility", "=", "new", "VisibilityHandler", "(", ")", ";", "LogRecordHandler", "console", "=", "Redwood", ".", "ConsoleHandler", ".", "out", "(", ")", ";", "return", "this", ".", "rootHandler", "(", "visibility", ")", ".", "handler", "(", "visibility", ",", "console", ")", ";", "}" ]
Add a console pipeline to the Redwood handler tree, printing to stdout. Calling this multiple times will result in messages being printed multiple times. @return this
[ "Add", "a", "console", "pipeline", "to", "the", "Redwood", "handler", "tree", "printing", "to", "stdout", ".", "Calling", "this", "multiple", "times", "will", "result", "in", "messages", "being", "printed", "multiple", "times", "." ]
b3d44bab9ec07ace0d13612c448a6b7298c1f681
https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/util/logging/RedwoodConfiguration.java#L62-L68
train
PeterisP/LVTagger
src/main/java/edu/stanford/nlp/util/logging/RedwoodConfiguration.java
RedwoodConfiguration.stderr
public RedwoodConfiguration stderr(){ LogRecordHandler visibility = new VisibilityHandler(); LogRecordHandler console = Redwood.ConsoleHandler.err(); return this .rootHandler(visibility) .handler(visibility, console); }
java
public RedwoodConfiguration stderr(){ LogRecordHandler visibility = new VisibilityHandler(); LogRecordHandler console = Redwood.ConsoleHandler.err(); return this .rootHandler(visibility) .handler(visibility, console); }
[ "public", "RedwoodConfiguration", "stderr", "(", ")", "{", "LogRecordHandler", "visibility", "=", "new", "VisibilityHandler", "(", ")", ";", "LogRecordHandler", "console", "=", "Redwood", ".", "ConsoleHandler", ".", "err", "(", ")", ";", "return", "this", ".", "rootHandler", "(", "visibility", ")", ".", "handler", "(", "visibility", ",", "console", ")", ";", "}" ]
Add a console pipeline to the Redwood handler tree, printing to stderr. Calling this multiple times will result in messages being printed multiple times. @return this
[ "Add", "a", "console", "pipeline", "to", "the", "Redwood", "handler", "tree", "printing", "to", "stderr", ".", "Calling", "this", "multiple", "times", "will", "result", "in", "messages", "being", "printed", "multiple", "times", "." ]
b3d44bab9ec07ace0d13612c448a6b7298c1f681
https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/util/logging/RedwoodConfiguration.java#L77-L83
train
PeterisP/LVTagger
src/main/java/edu/stanford/nlp/util/logging/RedwoodConfiguration.java
RedwoodConfiguration.rootHandler
public RedwoodConfiguration rootHandler(final LogRecordHandler handler){ tasks.add(new Runnable(){ public void run(){ Redwood.appendHandler(handler); } }); Redwood.appendHandler(handler); return this; }
java
public RedwoodConfiguration rootHandler(final LogRecordHandler handler){ tasks.add(new Runnable(){ public void run(){ Redwood.appendHandler(handler); } }); Redwood.appendHandler(handler); return this; }
[ "public", "RedwoodConfiguration", "rootHandler", "(", "final", "LogRecordHandler", "handler", ")", "{", "tasks", ".", "add", "(", "new", "Runnable", "(", ")", "{", "public", "void", "run", "(", ")", "{", "Redwood", ".", "appendHandler", "(", "handler", ")", ";", "}", "}", ")", ";", "Redwood", ".", "appendHandler", "(", "handler", ")", ";", "return", "this", ";", "}" ]
Add a custom Log Record Handler to the root of the tree @param handler The handler to add @return this
[ "Add", "a", "custom", "Log", "Record", "Handler", "to", "the", "root", "of", "the", "tree" ]
b3d44bab9ec07ace0d13612c448a6b7298c1f681
https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/util/logging/RedwoodConfiguration.java#L115-L119
train
PeterisP/LVTagger
src/main/java/edu/stanford/nlp/util/logging/RedwoodConfiguration.java
RedwoodConfiguration.loggingClass
public RedwoodConfiguration loggingClass(final String classToIgnoreInTraces){ tasks.add(new Runnable() { public void run() { Redwood.addLoggingClass(classToIgnoreInTraces); } }); return this; }
java
public RedwoodConfiguration loggingClass(final String classToIgnoreInTraces){ tasks.add(new Runnable() { public void run() { Redwood.addLoggingClass(classToIgnoreInTraces); } }); return this; }
[ "public", "RedwoodConfiguration", "loggingClass", "(", "final", "String", "classToIgnoreInTraces", ")", "{", "tasks", ".", "add", "(", "new", "Runnable", "(", ")", "{", "public", "void", "run", "(", ")", "{", "Redwood", ".", "addLoggingClass", "(", "classToIgnoreInTraces", ")", ";", "}", "}", ")", ";", "return", "this", ";", "}" ]
Set a Java classname path to ignore when printing stack traces @param classToIgnoreInTraces The class name (with packages, etc) to ignore. @return this
[ "Set", "a", "Java", "classname", "path", "to", "ignore", "when", "printing", "stack", "traces" ]
b3d44bab9ec07ace0d13612c448a6b7298c1f681
https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/util/logging/RedwoodConfiguration.java#L149-L152
train
PeterisP/LVTagger
src/main/java/edu/stanford/nlp/util/logging/RedwoodConfiguration.java
RedwoodConfiguration.loggingClass
public RedwoodConfiguration loggingClass(final Class<?> classToIgnoreInTraces){ tasks.add(new Runnable() { public void run() { Redwood.addLoggingClass(classToIgnoreInTraces.getName()); } }); return this; }
java
public RedwoodConfiguration loggingClass(final Class<?> classToIgnoreInTraces){ tasks.add(new Runnable() { public void run() { Redwood.addLoggingClass(classToIgnoreInTraces.getName()); } }); return this; }
[ "public", "RedwoodConfiguration", "loggingClass", "(", "final", "Class", "<", "?", ">", "classToIgnoreInTraces", ")", "{", "tasks", ".", "add", "(", "new", "Runnable", "(", ")", "{", "public", "void", "run", "(", ")", "{", "Redwood", ".", "addLoggingClass", "(", "classToIgnoreInTraces", ".", "getName", "(", ")", ")", ";", "}", "}", ")", ";", "return", "this", ";", "}" ]
Set a Java class to ignore when printing stack traces @param classToIgnoreInTraces The class to ignore. @return this
[ "Set", "a", "Java", "class", "to", "ignore", "when", "printing", "stack", "traces" ]
b3d44bab9ec07ace0d13612c448a6b7298c1f681
https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/util/logging/RedwoodConfiguration.java#L158-L161
train
PeterisP/LVTagger
src/main/java/edu/stanford/nlp/util/logging/RedwoodConfiguration.java
RedwoodConfiguration.collapseExact
public RedwoodConfiguration collapseExact(){ tasks.add(new Runnable() { public void run() { Redwood.spliceHandler(VisibilityHandler.class, new RepeatedRecordHandler(RepeatedRecordHandler.EXACT), OutputHandler.class); } }); return this; }
java
public RedwoodConfiguration collapseExact(){ tasks.add(new Runnable() { public void run() { Redwood.spliceHandler(VisibilityHandler.class, new RepeatedRecordHandler(RepeatedRecordHandler.EXACT), OutputHandler.class); } }); return this; }
[ "public", "RedwoodConfiguration", "collapseExact", "(", ")", "{", "tasks", ".", "add", "(", "new", "Runnable", "(", ")", "{", "public", "void", "run", "(", ")", "{", "Redwood", ".", "spliceHandler", "(", "VisibilityHandler", ".", "class", ",", "new", "RepeatedRecordHandler", "(", "RepeatedRecordHandler", ".", "EXACT", ")", ",", "OutputHandler", ".", "class", ")", ";", "}", "}", ")", ";", "return", "this", ";", "}" ]
Collapse repeated records, using exact string match on the record. This is generally useful for making very verbose logs more readable. @return this
[ "Collapse", "repeated", "records", "using", "exact", "string", "match", "on", "the", "record", ".", "This", "is", "generally", "useful", "for", "making", "very", "verbose", "logs", "more", "readable", "." ]
b3d44bab9ec07ace0d13612c448a6b7298c1f681
https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/util/logging/RedwoodConfiguration.java#L179-L182
train
PeterisP/LVTagger
src/main/java/edu/stanford/nlp/util/logging/RedwoodConfiguration.java
RedwoodConfiguration.captureStdout
public RedwoodConfiguration captureStdout(){ tasks.add(new Runnable() { public void run() { Redwood.captureSystemStreams(true, false); } }); return this; }
java
public RedwoodConfiguration captureStdout(){ tasks.add(new Runnable() { public void run() { Redwood.captureSystemStreams(true, false); } }); return this; }
[ "public", "RedwoodConfiguration", "captureStdout", "(", ")", "{", "tasks", ".", "add", "(", "new", "Runnable", "(", ")", "{", "public", "void", "run", "(", ")", "{", "Redwood", ".", "captureSystemStreams", "(", "true", ",", "false", ")", ";", "}", "}", ")", ";", "return", "this", ";", "}" ]
Capture stdout and route them through Redwood @return this
[ "Capture", "stdout", "and", "route", "them", "through", "Redwood" ]
b3d44bab9ec07ace0d13612c448a6b7298c1f681
https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/util/logging/RedwoodConfiguration.java#L197-L200
train
PeterisP/LVTagger
src/main/java/edu/stanford/nlp/util/logging/RedwoodConfiguration.java
RedwoodConfiguration.neatExit
public RedwoodConfiguration neatExit(){ tasks.add(new Runnable() { public void run() { Runtime.getRuntime().addShutdownHook(new Thread(){ @Override public void run(){ Redwood.stop(); } }); }}); return this; }
java
public RedwoodConfiguration neatExit(){ tasks.add(new Runnable() { public void run() { Runtime.getRuntime().addShutdownHook(new Thread(){ @Override public void run(){ Redwood.stop(); } }); }}); return this; }
[ "public", "RedwoodConfiguration", "neatExit", "(", ")", "{", "tasks", ".", "add", "(", "new", "Runnable", "(", ")", "{", "public", "void", "run", "(", ")", "{", "Runtime", ".", "getRuntime", "(", ")", ".", "addShutdownHook", "(", "new", "Thread", "(", ")", "{", "@", "Override", "public", "void", "run", "(", ")", "{", "Redwood", ".", "stop", "(", ")", ";", "}", "}", ")", ";", "}", "}", ")", ";", "return", "this", ";", "}" ]
Close tracks when the JVM shuts down. @return this
[ "Close", "tracks", "when", "the", "JVM", "shuts", "down", "." ]
b3d44bab9ec07ace0d13612c448a6b7298c1f681
https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/util/logging/RedwoodConfiguration.java#L223-L230
train
PeterisP/LVTagger
src/main/java/edu/stanford/nlp/util/logging/RedwoodConfiguration.java
RedwoodConfiguration.printChannels
public RedwoodConfiguration printChannels(final int width){ tasks.add(new Runnable() { public void run() { Redwood.Util.printChannels(width);} }); return this; }
java
public RedwoodConfiguration printChannels(final int width){ tasks.add(new Runnable() { public void run() { Redwood.Util.printChannels(width);} }); return this; }
[ "public", "RedwoodConfiguration", "printChannels", "(", "final", "int", "width", ")", "{", "tasks", ".", "add", "(", "new", "Runnable", "(", ")", "{", "public", "void", "run", "(", ")", "{", "Redwood", ".", "Util", ".", "printChannels", "(", "width", ")", ";", "}", "}", ")", ";", "return", "this", ";", "}" ]
Print channels to the left of log messages @param width The width (in characters) to print the channels @return this
[ "Print", "channels", "to", "the", "left", "of", "log", "messages" ]
b3d44bab9ec07ace0d13612c448a6b7298c1f681
https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/util/logging/RedwoodConfiguration.java#L237-L240
train
PeterisP/LVTagger
src/main/java/edu/stanford/nlp/util/logging/RedwoodConfiguration.java
RedwoodConfiguration.hideChannels
public RedwoodConfiguration hideChannels(final Object[] channels){ tasks.add(new Runnable() { public void run() { Redwood.hideChannels(channels); } }); return this; }
java
public RedwoodConfiguration hideChannels(final Object[] channels){ tasks.add(new Runnable() { public void run() { Redwood.hideChannels(channels); } }); return this; }
[ "public", "RedwoodConfiguration", "hideChannels", "(", "final", "Object", "[", "]", "channels", ")", "{", "tasks", ".", "add", "(", "new", "Runnable", "(", ")", "{", "public", "void", "run", "(", ")", "{", "Redwood", ".", "hideChannels", "(", "channels", ")", ";", "}", "}", ")", ";", "return", "this", ";", "}" ]
Hide the following channels. @param channels The names of the channels to hide. @return this
[ "Hide", "the", "following", "channels", "." ]
b3d44bab9ec07ace0d13612c448a6b7298c1f681
https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/util/logging/RedwoodConfiguration.java#L247-L250
train
PeterisP/LVTagger
src/main/java/edu/stanford/nlp/util/logging/RedwoodConfiguration.java
RedwoodConfiguration.showOnlyChannels
public RedwoodConfiguration showOnlyChannels(final Object[] channels){ tasks.add(new Runnable() { public void run() { Redwood.showOnlyChannels(channels); } }); return this; }
java
public RedwoodConfiguration showOnlyChannels(final Object[] channels){ tasks.add(new Runnable() { public void run() { Redwood.showOnlyChannels(channels); } }); return this; }
[ "public", "RedwoodConfiguration", "showOnlyChannels", "(", "final", "Object", "[", "]", "channels", ")", "{", "tasks", ".", "add", "(", "new", "Runnable", "(", ")", "{", "public", "void", "run", "(", ")", "{", "Redwood", ".", "showOnlyChannels", "(", "channels", ")", ";", "}", "}", ")", ";", "return", "this", ";", "}" ]
Show only the following channels. @param channels The names of the channels to show. @return this
[ "Show", "only", "the", "following", "channels", "." ]
b3d44bab9ec07ace0d13612c448a6b7298c1f681
https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/util/logging/RedwoodConfiguration.java#L257-L260
train
PeterisP/LVTagger
src/main/java/edu/stanford/nlp/util/logging/RedwoodConfiguration.java
RedwoodConfiguration.get
private static String get(Properties p, String key, String defaultValue, Set<String> used){ String rtn = p.getProperty(key, defaultValue); used.add(key); return rtn; }
java
private static String get(Properties p, String key, String defaultValue, Set<String> used){ String rtn = p.getProperty(key, defaultValue); used.add(key); return rtn; }
[ "private", "static", "String", "get", "(", "Properties", "p", ",", "String", "key", ",", "String", "defaultValue", ",", "Set", "<", "String", ">", "used", ")", "{", "String", "rtn", "=", "p", ".", "getProperty", "(", "key", ",", "defaultValue", ")", ";", "used", ".", "add", "(", "key", ")", ";", "return", "rtn", ";", "}" ]
Helper for parsing properties @param p The properties object @param key The key to retrieve @param defaultValue The default value if the key does not exist @param used The set of keys we have seen @return The value of the property at the key
[ "Helper", "for", "parsing", "properties" ]
b3d44bab9ec07ace0d13612c448a6b7298c1f681
https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/util/logging/RedwoodConfiguration.java#L298-L302
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/vpn/vpnglobal_auditnslogpolicy_binding.java
vpnglobal_auditnslogpolicy_binding.get
public static vpnglobal_auditnslogpolicy_binding[] get(nitro_service service) throws Exception{ vpnglobal_auditnslogpolicy_binding obj = new vpnglobal_auditnslogpolicy_binding(); vpnglobal_auditnslogpolicy_binding response[] = (vpnglobal_auditnslogpolicy_binding[]) obj.get_resources(service); return response; }
java
public static vpnglobal_auditnslogpolicy_binding[] get(nitro_service service) throws Exception{ vpnglobal_auditnslogpolicy_binding obj = new vpnglobal_auditnslogpolicy_binding(); vpnglobal_auditnslogpolicy_binding response[] = (vpnglobal_auditnslogpolicy_binding[]) obj.get_resources(service); return response; }
[ "public", "static", "vpnglobal_auditnslogpolicy_binding", "[", "]", "get", "(", "nitro_service", "service", ")", "throws", "Exception", "{", "vpnglobal_auditnslogpolicy_binding", "obj", "=", "new", "vpnglobal_auditnslogpolicy_binding", "(", ")", ";", "vpnglobal_auditnslogpolicy_binding", "response", "[", "]", "=", "(", "vpnglobal_auditnslogpolicy_binding", "[", "]", ")", "obj", ".", "get_resources", "(", "service", ")", ";", "return", "response", ";", "}" ]
Use this API to fetch a vpnglobal_auditnslogpolicy_binding resources.
[ "Use", "this", "API", "to", "fetch", "a", "vpnglobal_auditnslogpolicy_binding", "resources", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/vpn/vpnglobal_auditnslogpolicy_binding.java#L225-L229
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/vpn/vpnglobal_auditnslogpolicy_binding.java
vpnglobal_auditnslogpolicy_binding.get_filtered
public static vpnglobal_auditnslogpolicy_binding[] get_filtered(nitro_service service, filtervalue[] filter) throws Exception{ vpnglobal_auditnslogpolicy_binding obj = new vpnglobal_auditnslogpolicy_binding(); options option = new options(); option.set_filter(filter); vpnglobal_auditnslogpolicy_binding[] response = (vpnglobal_auditnslogpolicy_binding[]) obj.getfiltered(service, option); return response; }
java
public static vpnglobal_auditnslogpolicy_binding[] get_filtered(nitro_service service, filtervalue[] filter) throws Exception{ vpnglobal_auditnslogpolicy_binding obj = new vpnglobal_auditnslogpolicy_binding(); options option = new options(); option.set_filter(filter); vpnglobal_auditnslogpolicy_binding[] response = (vpnglobal_auditnslogpolicy_binding[]) obj.getfiltered(service, option); return response; }
[ "public", "static", "vpnglobal_auditnslogpolicy_binding", "[", "]", "get_filtered", "(", "nitro_service", "service", ",", "filtervalue", "[", "]", "filter", ")", "throws", "Exception", "{", "vpnglobal_auditnslogpolicy_binding", "obj", "=", "new", "vpnglobal_auditnslogpolicy_binding", "(", ")", ";", "options", "option", "=", "new", "options", "(", ")", ";", "option", ".", "set_filter", "(", "filter", ")", ";", "vpnglobal_auditnslogpolicy_binding", "[", "]", "response", "=", "(", "vpnglobal_auditnslogpolicy_binding", "[", "]", ")", "obj", ".", "getfiltered", "(", "service", ",", "option", ")", ";", "return", "response", ";", "}" ]
Use this API to fetch filtered set of vpnglobal_auditnslogpolicy_binding resources. set the filter parameter values in filtervalue object.
[ "Use", "this", "API", "to", "fetch", "filtered", "set", "of", "vpnglobal_auditnslogpolicy_binding", "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/vpn/vpnglobal_auditnslogpolicy_binding.java#L247-L253
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/filter/filterpolicy_csvserver_binding.java
filterpolicy_csvserver_binding.get
public static filterpolicy_csvserver_binding[] get(nitro_service service, String name) throws Exception{ filterpolicy_csvserver_binding obj = new filterpolicy_csvserver_binding(); obj.set_name(name); filterpolicy_csvserver_binding response[] = (filterpolicy_csvserver_binding[]) obj.get_resources(service); return response; }
java
public static filterpolicy_csvserver_binding[] get(nitro_service service, String name) throws Exception{ filterpolicy_csvserver_binding obj = new filterpolicy_csvserver_binding(); obj.set_name(name); filterpolicy_csvserver_binding response[] = (filterpolicy_csvserver_binding[]) obj.get_resources(service); return response; }
[ "public", "static", "filterpolicy_csvserver_binding", "[", "]", "get", "(", "nitro_service", "service", ",", "String", "name", ")", "throws", "Exception", "{", "filterpolicy_csvserver_binding", "obj", "=", "new", "filterpolicy_csvserver_binding", "(", ")", ";", "obj", ".", "set_name", "(", "name", ")", ";", "filterpolicy_csvserver_binding", "response", "[", "]", "=", "(", "filterpolicy_csvserver_binding", "[", "]", ")", "obj", ".", "get_resources", "(", "service", ")", ";", "return", "response", ";", "}" ]
Use this API to fetch filterpolicy_csvserver_binding resources of given name .
[ "Use", "this", "API", "to", "fetch", "filterpolicy_csvserver_binding", "resources", "of", "given", "name", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/filter/filterpolicy_csvserver_binding.java#L132-L137
train
PeterisP/LVTagger
src/main/java/edu/stanford/nlp/trees/EnglishGrammaticalStructure.java
EnglishGrammaticalStructure.isConjWithNoPrep
private static boolean isConjWithNoPrep(TreeGraphNode node, Collection<TypedDependency> list) { for (TypedDependency td : list) { if (td.gov() == node && td.reln() == CONJUNCT) { // we have a conjunct // check the POS of the dependent String tdDepPOS = td.dep().parent().value(); if (!(tdDepPOS.equals("IN") || tdDepPOS.equals("TO"))) { return true; } } } return false; }
java
private static boolean isConjWithNoPrep(TreeGraphNode node, Collection<TypedDependency> list) { for (TypedDependency td : list) { if (td.gov() == node && td.reln() == CONJUNCT) { // we have a conjunct // check the POS of the dependent String tdDepPOS = td.dep().parent().value(); if (!(tdDepPOS.equals("IN") || tdDepPOS.equals("TO"))) { return true; } } } return false; }
[ "private", "static", "boolean", "isConjWithNoPrep", "(", "TreeGraphNode", "node", ",", "Collection", "<", "TypedDependency", ">", "list", ")", "{", "for", "(", "TypedDependency", "td", ":", "list", ")", "{", "if", "(", "td", ".", "gov", "(", ")", "==", "node", "&&", "td", ".", "reln", "(", ")", "==", "CONJUNCT", ")", "{", "// we have a conjunct\r", "// check the POS of the dependent\r", "String", "tdDepPOS", "=", "td", ".", "dep", "(", ")", ".", "parent", "(", ")", ".", "value", "(", ")", ";", "if", "(", "!", "(", "tdDepPOS", ".", "equals", "(", "\"IN\"", ")", "||", "tdDepPOS", ".", "equals", "(", "\"TO\"", ")", ")", ")", "{", "return", "true", ";", "}", "}", "}", "return", "false", ";", "}" ]
Given a list of typedDependencies, returns true if the node "node" is the governor of a conj relation with a dependent which is not a preposition @param node A node in this GrammaticalStructure @param list A list of typedDependencies @return true If node is the governor of a conj relation in the list with the dep not being a preposition
[ "Given", "a", "list", "of", "typedDependencies", "returns", "true", "if", "the", "node", "node", "is", "the", "governor", "of", "a", "conj", "relation", "with", "a", "dependent", "which", "is", "not", "a", "preposition" ]
b3d44bab9ec07ace0d13612c448a6b7298c1f681
https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/trees/EnglishGrammaticalStructure.java#L1106-L1118
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwglobal_auditnslogpolicy_binding.java
appfwglobal_auditnslogpolicy_binding.get
public static appfwglobal_auditnslogpolicy_binding[] get(nitro_service service) throws Exception{ appfwglobal_auditnslogpolicy_binding obj = new appfwglobal_auditnslogpolicy_binding(); appfwglobal_auditnslogpolicy_binding response[] = (appfwglobal_auditnslogpolicy_binding[]) obj.get_resources(service); return response; }
java
public static appfwglobal_auditnslogpolicy_binding[] get(nitro_service service) throws Exception{ appfwglobal_auditnslogpolicy_binding obj = new appfwglobal_auditnslogpolicy_binding(); appfwglobal_auditnslogpolicy_binding response[] = (appfwglobal_auditnslogpolicy_binding[]) obj.get_resources(service); return response; }
[ "public", "static", "appfwglobal_auditnslogpolicy_binding", "[", "]", "get", "(", "nitro_service", "service", ")", "throws", "Exception", "{", "appfwglobal_auditnslogpolicy_binding", "obj", "=", "new", "appfwglobal_auditnslogpolicy_binding", "(", ")", ";", "appfwglobal_auditnslogpolicy_binding", "response", "[", "]", "=", "(", "appfwglobal_auditnslogpolicy_binding", "[", "]", ")", "obj", ".", "get_resources", "(", "service", ")", ";", "return", "response", ";", "}" ]
Use this API to fetch a appfwglobal_auditnslogpolicy_binding resources.
[ "Use", "this", "API", "to", "fetch", "a", "appfwglobal_auditnslogpolicy_binding", "resources", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwglobal_auditnslogpolicy_binding.java#L340-L344
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/lb/lbsipparameters.java
lbsipparameters.update
public static base_response update(nitro_service client, lbsipparameters resource) throws Exception { lbsipparameters updateresource = new lbsipparameters(); updateresource.rnatsrcport = resource.rnatsrcport; updateresource.rnatdstport = resource.rnatdstport; updateresource.retrydur = resource.retrydur; updateresource.addrportvip = resource.addrportvip; updateresource.sip503ratethreshold = resource.sip503ratethreshold; return updateresource.update_resource(client); }
java
public static base_response update(nitro_service client, lbsipparameters resource) throws Exception { lbsipparameters updateresource = new lbsipparameters(); updateresource.rnatsrcport = resource.rnatsrcport; updateresource.rnatdstport = resource.rnatdstport; updateresource.retrydur = resource.retrydur; updateresource.addrportvip = resource.addrportvip; updateresource.sip503ratethreshold = resource.sip503ratethreshold; return updateresource.update_resource(client); }
[ "public", "static", "base_response", "update", "(", "nitro_service", "client", ",", "lbsipparameters", "resource", ")", "throws", "Exception", "{", "lbsipparameters", "updateresource", "=", "new", "lbsipparameters", "(", ")", ";", "updateresource", ".", "rnatsrcport", "=", "resource", ".", "rnatsrcport", ";", "updateresource", ".", "rnatdstport", "=", "resource", ".", "rnatdstport", ";", "updateresource", ".", "retrydur", "=", "resource", ".", "retrydur", ";", "updateresource", ".", "addrportvip", "=", "resource", ".", "addrportvip", ";", "updateresource", ".", "sip503ratethreshold", "=", "resource", ".", "sip503ratethreshold", ";", "return", "updateresource", ".", "update_resource", "(", "client", ")", ";", "}" ]
Use this API to update lbsipparameters.
[ "Use", "this", "API", "to", "update", "lbsipparameters", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/lb/lbsipparameters.java#L206-L214
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/lb/lbsipparameters.java
lbsipparameters.unset
public static base_response unset(nitro_service client, lbsipparameters resource, String[] args) throws Exception{ lbsipparameters unsetresource = new lbsipparameters(); return unsetresource.unset_resource(client,args); }
java
public static base_response unset(nitro_service client, lbsipparameters resource, String[] args) throws Exception{ lbsipparameters unsetresource = new lbsipparameters(); return unsetresource.unset_resource(client,args); }
[ "public", "static", "base_response", "unset", "(", "nitro_service", "client", ",", "lbsipparameters", "resource", ",", "String", "[", "]", "args", ")", "throws", "Exception", "{", "lbsipparameters", "unsetresource", "=", "new", "lbsipparameters", "(", ")", ";", "return", "unsetresource", ".", "unset_resource", "(", "client", ",", "args", ")", ";", "}" ]
Use this API to unset the properties of lbsipparameters resource. Properties that need to be unset are specified in args array.
[ "Use", "this", "API", "to", "unset", "the", "properties", "of", "lbsipparameters", "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/lb/lbsipparameters.java#L220-L223
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/lb/lbsipparameters.java
lbsipparameters.get
public static lbsipparameters get(nitro_service service) throws Exception{ lbsipparameters obj = new lbsipparameters(); lbsipparameters[] response = (lbsipparameters[])obj.get_resources(service); return response[0]; }
java
public static lbsipparameters get(nitro_service service) throws Exception{ lbsipparameters obj = new lbsipparameters(); lbsipparameters[] response = (lbsipparameters[])obj.get_resources(service); return response[0]; }
[ "public", "static", "lbsipparameters", "get", "(", "nitro_service", "service", ")", "throws", "Exception", "{", "lbsipparameters", "obj", "=", "new", "lbsipparameters", "(", ")", ";", "lbsipparameters", "[", "]", "response", "=", "(", "lbsipparameters", "[", "]", ")", "obj", ".", "get_resources", "(", "service", ")", ";", "return", "response", "[", "0", "]", ";", "}" ]
Use this API to fetch all the lbsipparameters resources that are configured on netscaler.
[ "Use", "this", "API", "to", "fetch", "all", "the", "lbsipparameters", "resources", "that", "are", "configured", "on", "netscaler", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/lb/lbsipparameters.java#L228-L232
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwjsoncontenttype.java
appfwjsoncontenttype.add
public static base_response add(nitro_service client, appfwjsoncontenttype resource) throws Exception { appfwjsoncontenttype addresource = new appfwjsoncontenttype(); addresource.jsoncontenttypevalue = resource.jsoncontenttypevalue; addresource.isregex = resource.isregex; return addresource.add_resource(client); }
java
public static base_response add(nitro_service client, appfwjsoncontenttype resource) throws Exception { appfwjsoncontenttype addresource = new appfwjsoncontenttype(); addresource.jsoncontenttypevalue = resource.jsoncontenttypevalue; addresource.isregex = resource.isregex; return addresource.add_resource(client); }
[ "public", "static", "base_response", "add", "(", "nitro_service", "client", ",", "appfwjsoncontenttype", "resource", ")", "throws", "Exception", "{", "appfwjsoncontenttype", "addresource", "=", "new", "appfwjsoncontenttype", "(", ")", ";", "addresource", ".", "jsoncontenttypevalue", "=", "resource", ".", "jsoncontenttypevalue", ";", "addresource", ".", "isregex", "=", "resource", ".", "isregex", ";", "return", "addresource", ".", "add_resource", "(", "client", ")", ";", "}" ]
Use this API to add appfwjsoncontenttype.
[ "Use", "this", "API", "to", "add", "appfwjsoncontenttype", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwjsoncontenttype.java#L125-L130
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwjsoncontenttype.java
appfwjsoncontenttype.add
public static base_responses add(nitro_service client, appfwjsoncontenttype resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { appfwjsoncontenttype addresources[] = new appfwjsoncontenttype[resources.length]; for (int i=0;i<resources.length;i++){ addresources[i] = new appfwjsoncontenttype(); addresources[i].jsoncontenttypevalue = resources[i].jsoncontenttypevalue; addresources[i].isregex = resources[i].isregex; } result = add_bulk_request(client, addresources); } return result; }
java
public static base_responses add(nitro_service client, appfwjsoncontenttype resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { appfwjsoncontenttype addresources[] = new appfwjsoncontenttype[resources.length]; for (int i=0;i<resources.length;i++){ addresources[i] = new appfwjsoncontenttype(); addresources[i].jsoncontenttypevalue = resources[i].jsoncontenttypevalue; addresources[i].isregex = resources[i].isregex; } result = add_bulk_request(client, addresources); } return result; }
[ "public", "static", "base_responses", "add", "(", "nitro_service", "client", ",", "appfwjsoncontenttype", "resources", "[", "]", ")", "throws", "Exception", "{", "base_responses", "result", "=", "null", ";", "if", "(", "resources", "!=", "null", "&&", "resources", ".", "length", ">", "0", ")", "{", "appfwjsoncontenttype", "addresources", "[", "]", "=", "new", "appfwjsoncontenttype", "[", "resources", ".", "length", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "resources", ".", "length", ";", "i", "++", ")", "{", "addresources", "[", "i", "]", "=", "new", "appfwjsoncontenttype", "(", ")", ";", "addresources", "[", "i", "]", ".", "jsoncontenttypevalue", "=", "resources", "[", "i", "]", ".", "jsoncontenttypevalue", ";", "addresources", "[", "i", "]", ".", "isregex", "=", "resources", "[", "i", "]", ".", "isregex", ";", "}", "result", "=", "add_bulk_request", "(", "client", ",", "addresources", ")", ";", "}", "return", "result", ";", "}" ]
Use this API to add appfwjsoncontenttype resources.
[ "Use", "this", "API", "to", "add", "appfwjsoncontenttype", "resources", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwjsoncontenttype.java#L135-L147
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwjsoncontenttype.java
appfwjsoncontenttype.delete
public static base_response delete(nitro_service client, String jsoncontenttypevalue) throws Exception { appfwjsoncontenttype deleteresource = new appfwjsoncontenttype(); deleteresource.jsoncontenttypevalue = jsoncontenttypevalue; return deleteresource.delete_resource(client); }
java
public static base_response delete(nitro_service client, String jsoncontenttypevalue) throws Exception { appfwjsoncontenttype deleteresource = new appfwjsoncontenttype(); deleteresource.jsoncontenttypevalue = jsoncontenttypevalue; return deleteresource.delete_resource(client); }
[ "public", "static", "base_response", "delete", "(", "nitro_service", "client", ",", "String", "jsoncontenttypevalue", ")", "throws", "Exception", "{", "appfwjsoncontenttype", "deleteresource", "=", "new", "appfwjsoncontenttype", "(", ")", ";", "deleteresource", ".", "jsoncontenttypevalue", "=", "jsoncontenttypevalue", ";", "return", "deleteresource", ".", "delete_resource", "(", "client", ")", ";", "}" ]
Use this API to delete appfwjsoncontenttype of given name.
[ "Use", "this", "API", "to", "delete", "appfwjsoncontenttype", "of", "given", "name", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwjsoncontenttype.java#L152-L156
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwjsoncontenttype.java
appfwjsoncontenttype.delete
public static base_responses delete(nitro_service client, String jsoncontenttypevalue[]) throws Exception { base_responses result = null; if (jsoncontenttypevalue != null && jsoncontenttypevalue.length > 0) { appfwjsoncontenttype deleteresources[] = new appfwjsoncontenttype[jsoncontenttypevalue.length]; for (int i=0;i<jsoncontenttypevalue.length;i++){ deleteresources[i] = new appfwjsoncontenttype(); deleteresources[i].jsoncontenttypevalue = jsoncontenttypevalue[i]; } result = delete_bulk_request(client, deleteresources); } return result; }
java
public static base_responses delete(nitro_service client, String jsoncontenttypevalue[]) throws Exception { base_responses result = null; if (jsoncontenttypevalue != null && jsoncontenttypevalue.length > 0) { appfwjsoncontenttype deleteresources[] = new appfwjsoncontenttype[jsoncontenttypevalue.length]; for (int i=0;i<jsoncontenttypevalue.length;i++){ deleteresources[i] = new appfwjsoncontenttype(); deleteresources[i].jsoncontenttypevalue = jsoncontenttypevalue[i]; } result = delete_bulk_request(client, deleteresources); } return result; }
[ "public", "static", "base_responses", "delete", "(", "nitro_service", "client", ",", "String", "jsoncontenttypevalue", "[", "]", ")", "throws", "Exception", "{", "base_responses", "result", "=", "null", ";", "if", "(", "jsoncontenttypevalue", "!=", "null", "&&", "jsoncontenttypevalue", ".", "length", ">", "0", ")", "{", "appfwjsoncontenttype", "deleteresources", "[", "]", "=", "new", "appfwjsoncontenttype", "[", "jsoncontenttypevalue", ".", "length", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "jsoncontenttypevalue", ".", "length", ";", "i", "++", ")", "{", "deleteresources", "[", "i", "]", "=", "new", "appfwjsoncontenttype", "(", ")", ";", "deleteresources", "[", "i", "]", ".", "jsoncontenttypevalue", "=", "jsoncontenttypevalue", "[", "i", "]", ";", "}", "result", "=", "delete_bulk_request", "(", "client", ",", "deleteresources", ")", ";", "}", "return", "result", ";", "}" ]
Use this API to delete appfwjsoncontenttype resources of given names.
[ "Use", "this", "API", "to", "delete", "appfwjsoncontenttype", "resources", "of", "given", "names", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwjsoncontenttype.java#L170-L181
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwjsoncontenttype.java
appfwjsoncontenttype.get
public static appfwjsoncontenttype[] get(nitro_service service, options option) throws Exception{ appfwjsoncontenttype obj = new appfwjsoncontenttype(); appfwjsoncontenttype[] response = (appfwjsoncontenttype[])obj.get_resources(service,option); return response; }
java
public static appfwjsoncontenttype[] get(nitro_service service, options option) throws Exception{ appfwjsoncontenttype obj = new appfwjsoncontenttype(); appfwjsoncontenttype[] response = (appfwjsoncontenttype[])obj.get_resources(service,option); return response; }
[ "public", "static", "appfwjsoncontenttype", "[", "]", "get", "(", "nitro_service", "service", ",", "options", "option", ")", "throws", "Exception", "{", "appfwjsoncontenttype", "obj", "=", "new", "appfwjsoncontenttype", "(", ")", ";", "appfwjsoncontenttype", "[", "]", "response", "=", "(", "appfwjsoncontenttype", "[", "]", ")", "obj", ".", "get_resources", "(", "service", ",", "option", ")", ";", "return", "response", ";", "}" ]
Use this API to fetch all the appfwjsoncontenttype resources that are configured on netscaler.
[ "Use", "this", "API", "to", "fetch", "all", "the", "appfwjsoncontenttype", "resources", "that", "are", "configured", "on", "netscaler", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwjsoncontenttype.java#L210-L214
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwjsoncontenttype.java
appfwjsoncontenttype.get
public static appfwjsoncontenttype get(nitro_service service, String jsoncontenttypevalue) throws Exception{ appfwjsoncontenttype obj = new appfwjsoncontenttype(); obj.set_jsoncontenttypevalue(jsoncontenttypevalue); appfwjsoncontenttype response = (appfwjsoncontenttype) obj.get_resource(service); return response; }
java
public static appfwjsoncontenttype get(nitro_service service, String jsoncontenttypevalue) throws Exception{ appfwjsoncontenttype obj = new appfwjsoncontenttype(); obj.set_jsoncontenttypevalue(jsoncontenttypevalue); appfwjsoncontenttype response = (appfwjsoncontenttype) obj.get_resource(service); return response; }
[ "public", "static", "appfwjsoncontenttype", "get", "(", "nitro_service", "service", ",", "String", "jsoncontenttypevalue", ")", "throws", "Exception", "{", "appfwjsoncontenttype", "obj", "=", "new", "appfwjsoncontenttype", "(", ")", ";", "obj", ".", "set_jsoncontenttypevalue", "(", "jsoncontenttypevalue", ")", ";", "appfwjsoncontenttype", "response", "=", "(", "appfwjsoncontenttype", ")", "obj", ".", "get_resource", "(", "service", ")", ";", "return", "response", ";", "}" ]
Use this API to fetch appfwjsoncontenttype resource of given name .
[ "Use", "this", "API", "to", "fetch", "appfwjsoncontenttype", "resource", "of", "given", "name", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwjsoncontenttype.java#L218-L223
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwjsoncontenttype.java
appfwjsoncontenttype.get
public static appfwjsoncontenttype[] get(nitro_service service, String jsoncontenttypevalue[]) throws Exception{ if (jsoncontenttypevalue !=null && jsoncontenttypevalue.length>0) { appfwjsoncontenttype response[] = new appfwjsoncontenttype[jsoncontenttypevalue.length]; appfwjsoncontenttype obj[] = new appfwjsoncontenttype[jsoncontenttypevalue.length]; for (int i=0;i<jsoncontenttypevalue.length;i++) { obj[i] = new appfwjsoncontenttype(); obj[i].set_jsoncontenttypevalue(jsoncontenttypevalue[i]); response[i] = (appfwjsoncontenttype) obj[i].get_resource(service); } return response; } return null; }
java
public static appfwjsoncontenttype[] get(nitro_service service, String jsoncontenttypevalue[]) throws Exception{ if (jsoncontenttypevalue !=null && jsoncontenttypevalue.length>0) { appfwjsoncontenttype response[] = new appfwjsoncontenttype[jsoncontenttypevalue.length]; appfwjsoncontenttype obj[] = new appfwjsoncontenttype[jsoncontenttypevalue.length]; for (int i=0;i<jsoncontenttypevalue.length;i++) { obj[i] = new appfwjsoncontenttype(); obj[i].set_jsoncontenttypevalue(jsoncontenttypevalue[i]); response[i] = (appfwjsoncontenttype) obj[i].get_resource(service); } return response; } return null; }
[ "public", "static", "appfwjsoncontenttype", "[", "]", "get", "(", "nitro_service", "service", ",", "String", "jsoncontenttypevalue", "[", "]", ")", "throws", "Exception", "{", "if", "(", "jsoncontenttypevalue", "!=", "null", "&&", "jsoncontenttypevalue", ".", "length", ">", "0", ")", "{", "appfwjsoncontenttype", "response", "[", "]", "=", "new", "appfwjsoncontenttype", "[", "jsoncontenttypevalue", ".", "length", "]", ";", "appfwjsoncontenttype", "obj", "[", "]", "=", "new", "appfwjsoncontenttype", "[", "jsoncontenttypevalue", ".", "length", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "jsoncontenttypevalue", ".", "length", ";", "i", "++", ")", "{", "obj", "[", "i", "]", "=", "new", "appfwjsoncontenttype", "(", ")", ";", "obj", "[", "i", "]", ".", "set_jsoncontenttypevalue", "(", "jsoncontenttypevalue", "[", "i", "]", ")", ";", "response", "[", "i", "]", "=", "(", "appfwjsoncontenttype", ")", "obj", "[", "i", "]", ".", "get_resource", "(", "service", ")", ";", "}", "return", "response", ";", "}", "return", "null", ";", "}" ]
Use this API to fetch appfwjsoncontenttype resources of given names .
[ "Use", "this", "API", "to", "fetch", "appfwjsoncontenttype", "resources", "of", "given", "names", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwjsoncontenttype.java#L228-L240
train
PeterisP/LVTagger
src/main/java/edu/stanford/nlp/trees/AbstractCollinsHeadFinder.java
AbstractCollinsHeadFinder.determineHead
public Tree determineHead(Tree t, Tree parent) { if (nonTerminalInfo == null) { throw new RuntimeException("Classes derived from AbstractCollinsHeadFinder must" + " create and fill HashMap nonTerminalInfo."); } if (t == null || t.isLeaf()) { return null; } if (DEBUG) { System.err.println("determineHead for " + t.value()); } Tree[] kids = t.children(); Tree theHead; // first check if subclass found explicitly marked head if ((theHead = findMarkedHead(t)) != null) { if (DEBUG) { System.err.println("Find marked head method returned " + theHead.label() + " as head of " + t.label()); } return theHead; } // if the node is a unary, then that kid must be the head // it used to special case preterminal and ROOT/TOP case // but that seemed bad (especially hardcoding string "ROOT") if (kids.length == 1) { if (DEBUG) { System.err.println("Only one child determines " + kids[0].label() + " as head of " + t.label()); } return kids[0]; } return determineNonTrivialHead(t, parent); }
java
public Tree determineHead(Tree t, Tree parent) { if (nonTerminalInfo == null) { throw new RuntimeException("Classes derived from AbstractCollinsHeadFinder must" + " create and fill HashMap nonTerminalInfo."); } if (t == null || t.isLeaf()) { return null; } if (DEBUG) { System.err.println("determineHead for " + t.value()); } Tree[] kids = t.children(); Tree theHead; // first check if subclass found explicitly marked head if ((theHead = findMarkedHead(t)) != null) { if (DEBUG) { System.err.println("Find marked head method returned " + theHead.label() + " as head of " + t.label()); } return theHead; } // if the node is a unary, then that kid must be the head // it used to special case preterminal and ROOT/TOP case // but that seemed bad (especially hardcoding string "ROOT") if (kids.length == 1) { if (DEBUG) { System.err.println("Only one child determines " + kids[0].label() + " as head of " + t.label()); } return kids[0]; } return determineNonTrivialHead(t, parent); }
[ "public", "Tree", "determineHead", "(", "Tree", "t", ",", "Tree", "parent", ")", "{", "if", "(", "nonTerminalInfo", "==", "null", ")", "{", "throw", "new", "RuntimeException", "(", "\"Classes derived from AbstractCollinsHeadFinder must\"", "+", "\" create and fill HashMap nonTerminalInfo.\"", ")", ";", "}", "if", "(", "t", "==", "null", "||", "t", ".", "isLeaf", "(", ")", ")", "{", "return", "null", ";", "}", "if", "(", "DEBUG", ")", "{", "System", ".", "err", ".", "println", "(", "\"determineHead for \"", "+", "t", ".", "value", "(", ")", ")", ";", "}", "Tree", "[", "]", "kids", "=", "t", ".", "children", "(", ")", ";", "Tree", "theHead", ";", "// first check if subclass found explicitly marked head\r", "if", "(", "(", "theHead", "=", "findMarkedHead", "(", "t", ")", ")", "!=", "null", ")", "{", "if", "(", "DEBUG", ")", "{", "System", ".", "err", ".", "println", "(", "\"Find marked head method returned \"", "+", "theHead", ".", "label", "(", ")", "+", "\" as head of \"", "+", "t", ".", "label", "(", ")", ")", ";", "}", "return", "theHead", ";", "}", "// if the node is a unary, then that kid must be the head\r", "// it used to special case preterminal and ROOT/TOP case\r", "// but that seemed bad (especially hardcoding string \"ROOT\")\r", "if", "(", "kids", ".", "length", "==", "1", ")", "{", "if", "(", "DEBUG", ")", "{", "System", ".", "err", ".", "println", "(", "\"Only one child determines \"", "+", "kids", "[", "0", "]", ".", "label", "(", ")", "+", "\" as head of \"", "+", "t", ".", "label", "(", ")", ")", ";", "}", "return", "kids", "[", "0", "]", ";", "}", "return", "determineNonTrivialHead", "(", "t", ",", "parent", ")", ";", "}" ]
Determine which daughter of the current parse tree is the head. @param t The parse tree to examine the daughters of. If this is a leaf, <code>null</code> is returned @param parent The parent of t @return The daughter parse tree that is the head of <code>t</code>. Returns null for leaf nodes. @see Tree#percolateHeads(HeadFinder) for a routine to call this and spread heads throughout a tree
[ "Determine", "which", "daughter", "of", "the", "current", "parse", "tree", "is", "the", "head", "." ]
b3d44bab9ec07ace0d13612c448a6b7298c1f681
https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/trees/AbstractCollinsHeadFinder.java#L134-L169
train
PeterisP/LVTagger
src/main/java/edu/stanford/nlp/trees/AbstractCollinsHeadFinder.java
AbstractCollinsHeadFinder.determineNonTrivialHead
protected Tree determineNonTrivialHead(Tree t, Tree parent) { Tree theHead = null; String motherCat = tlp.basicCategory(t.label().value()); if (DEBUG) { System.err.println("Looking for head of " + t.label() + "; value is |" + t.label().value() + "|, " + " baseCat is |" + motherCat + '|'); } // We know we have nonterminals underneath // (a bit of a Penn Treebank assumption, but). // Look at label. // a total special case.... // first look for POS tag at end // this appears to be redundant in the Collins case since the rule already would do that // Tree lastDtr = t.lastChild(); // if (tlp.basicCategory(lastDtr.label().value()).equals("POS")) { // theHead = lastDtr; // } else { String[][] how = nonTerminalInfo.get(motherCat); if (how == null) { if (DEBUG) { System.err.println("Warning: No rule found for " + motherCat + " (first char: " + motherCat.charAt(0) + ')'); System.err.println("Known nonterms are: " + nonTerminalInfo.keySet()); } if (defaultRule != null) { if (DEBUG) { System.err.println(" Using defaultRule"); } return traverseLocate(t.children(), defaultRule, true); } else { return null; } } for (int i = 0; i < how.length; i++) { boolean lastResort = (i == how.length - 1); theHead = traverseLocate(t.children(), how[i], lastResort); if (theHead != null) { break; } } if (DEBUG) { System.err.println(" Chose " + theHead.label()); } return theHead; }
java
protected Tree determineNonTrivialHead(Tree t, Tree parent) { Tree theHead = null; String motherCat = tlp.basicCategory(t.label().value()); if (DEBUG) { System.err.println("Looking for head of " + t.label() + "; value is |" + t.label().value() + "|, " + " baseCat is |" + motherCat + '|'); } // We know we have nonterminals underneath // (a bit of a Penn Treebank assumption, but). // Look at label. // a total special case.... // first look for POS tag at end // this appears to be redundant in the Collins case since the rule already would do that // Tree lastDtr = t.lastChild(); // if (tlp.basicCategory(lastDtr.label().value()).equals("POS")) { // theHead = lastDtr; // } else { String[][] how = nonTerminalInfo.get(motherCat); if (how == null) { if (DEBUG) { System.err.println("Warning: No rule found for " + motherCat + " (first char: " + motherCat.charAt(0) + ')'); System.err.println("Known nonterms are: " + nonTerminalInfo.keySet()); } if (defaultRule != null) { if (DEBUG) { System.err.println(" Using defaultRule"); } return traverseLocate(t.children(), defaultRule, true); } else { return null; } } for (int i = 0; i < how.length; i++) { boolean lastResort = (i == how.length - 1); theHead = traverseLocate(t.children(), how[i], lastResort); if (theHead != null) { break; } } if (DEBUG) { System.err.println(" Chose " + theHead.label()); } return theHead; }
[ "protected", "Tree", "determineNonTrivialHead", "(", "Tree", "t", ",", "Tree", "parent", ")", "{", "Tree", "theHead", "=", "null", ";", "String", "motherCat", "=", "tlp", ".", "basicCategory", "(", "t", ".", "label", "(", ")", ".", "value", "(", ")", ")", ";", "if", "(", "DEBUG", ")", "{", "System", ".", "err", ".", "println", "(", "\"Looking for head of \"", "+", "t", ".", "label", "(", ")", "+", "\"; value is |\"", "+", "t", ".", "label", "(", ")", ".", "value", "(", ")", "+", "\"|, \"", "+", "\" baseCat is |\"", "+", "motherCat", "+", "'", "'", ")", ";", "}", "// We know we have nonterminals underneath\r", "// (a bit of a Penn Treebank assumption, but).\r", "// Look at label.\r", "// a total special case....\r", "// first look for POS tag at end\r", "// this appears to be redundant in the Collins case since the rule already would do that\r", "// Tree lastDtr = t.lastChild();\r", "// if (tlp.basicCategory(lastDtr.label().value()).equals(\"POS\")) {\r", "// theHead = lastDtr;\r", "// } else {\r", "String", "[", "]", "[", "]", "how", "=", "nonTerminalInfo", ".", "get", "(", "motherCat", ")", ";", "if", "(", "how", "==", "null", ")", "{", "if", "(", "DEBUG", ")", "{", "System", ".", "err", ".", "println", "(", "\"Warning: No rule found for \"", "+", "motherCat", "+", "\" (first char: \"", "+", "motherCat", ".", "charAt", "(", "0", ")", "+", "'", "'", ")", ";", "System", ".", "err", ".", "println", "(", "\"Known nonterms are: \"", "+", "nonTerminalInfo", ".", "keySet", "(", ")", ")", ";", "}", "if", "(", "defaultRule", "!=", "null", ")", "{", "if", "(", "DEBUG", ")", "{", "System", ".", "err", ".", "println", "(", "\" Using defaultRule\"", ")", ";", "}", "return", "traverseLocate", "(", "t", ".", "children", "(", ")", ",", "defaultRule", ",", "true", ")", ";", "}", "else", "{", "return", "null", ";", "}", "}", "for", "(", "int", "i", "=", "0", ";", "i", "<", "how", ".", "length", ";", "i", "++", ")", "{", "boolean", "lastResort", "=", "(", "i", "==", "how", ".", "length", "-", "1", ")", ";", "theHead", "=", "traverseLocate", "(", "t", ".", "children", "(", ")", ",", "how", "[", "i", "]", ",", "lastResort", ")", ";", "if", "(", "theHead", "!=", "null", ")", "{", "break", ";", "}", "}", "if", "(", "DEBUG", ")", "{", "System", ".", "err", ".", "println", "(", "\" Chose \"", "+", "theHead", ".", "label", "(", ")", ")", ";", "}", "return", "theHead", ";", "}" ]
Called by determineHead and may be overridden in subclasses if special treatment is necessary for particular categories.
[ "Called", "by", "determineHead", "and", "may", "be", "overridden", "in", "subclasses", "if", "special", "treatment", "is", "necessary", "for", "particular", "categories", "." ]
b3d44bab9ec07ace0d13612c448a6b7298c1f681
https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/trees/AbstractCollinsHeadFinder.java#L174-L220
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/policy/policydataset.java
policydataset.add
public static base_response add(nitro_service client, policydataset resource) throws Exception { policydataset addresource = new policydataset(); addresource.name = resource.name; addresource.type = resource.type; addresource.indextype = resource.indextype; return addresource.add_resource(client); }
java
public static base_response add(nitro_service client, policydataset resource) throws Exception { policydataset addresource = new policydataset(); addresource.name = resource.name; addresource.type = resource.type; addresource.indextype = resource.indextype; return addresource.add_resource(client); }
[ "public", "static", "base_response", "add", "(", "nitro_service", "client", ",", "policydataset", "resource", ")", "throws", "Exception", "{", "policydataset", "addresource", "=", "new", "policydataset", "(", ")", ";", "addresource", ".", "name", "=", "resource", ".", "name", ";", "addresource", ".", "type", "=", "resource", ".", "type", ";", "addresource", ".", "indextype", "=", "resource", ".", "indextype", ";", "return", "addresource", ".", "add_resource", "(", "client", ")", ";", "}" ]
Use this API to add policydataset.
[ "Use", "this", "API", "to", "add", "policydataset", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/policy/policydataset.java#L144-L150
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/policy/policydataset.java
policydataset.get
public static policydataset[] get(nitro_service service) throws Exception{ policydataset obj = new policydataset(); policydataset[] response = (policydataset[])obj.get_resources(service); return response; }
java
public static policydataset[] get(nitro_service service) throws Exception{ policydataset obj = new policydataset(); policydataset[] response = (policydataset[])obj.get_resources(service); return response; }
[ "public", "static", "policydataset", "[", "]", "get", "(", "nitro_service", "service", ")", "throws", "Exception", "{", "policydataset", "obj", "=", "new", "policydataset", "(", ")", ";", "policydataset", "[", "]", "response", "=", "(", "policydataset", "[", "]", ")", "obj", ".", "get_resources", "(", "service", ")", ";", "return", "response", ";", "}" ]
Use this API to fetch all the policydataset resources that are configured on netscaler.
[ "Use", "this", "API", "to", "fetch", "all", "the", "policydataset", "resources", "that", "are", "configured", "on", "netscaler", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/policy/policydataset.java#L223-L227
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/policy/policydataset.java
policydataset.get
public static policydataset get(nitro_service service, String name) throws Exception{ policydataset obj = new policydataset(); obj.set_name(name); policydataset response = (policydataset) obj.get_resource(service); return response; }
java
public static policydataset get(nitro_service service, String name) throws Exception{ policydataset obj = new policydataset(); obj.set_name(name); policydataset response = (policydataset) obj.get_resource(service); return response; }
[ "public", "static", "policydataset", "get", "(", "nitro_service", "service", ",", "String", "name", ")", "throws", "Exception", "{", "policydataset", "obj", "=", "new", "policydataset", "(", ")", ";", "obj", ".", "set_name", "(", "name", ")", ";", "policydataset", "response", "=", "(", "policydataset", ")", "obj", ".", "get_resource", "(", "service", ")", ";", "return", "response", ";", "}" ]
Use this API to fetch policydataset resource of given name .
[ "Use", "this", "API", "to", "fetch", "policydataset", "resource", "of", "given", "name", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/policy/policydataset.java#L239-L244
train
meertensinstituut/mtas
src/main/java/mtas/codec/util/CodecUtil.java
CodecUtil.isSinglePositionPrefix
public static boolean isSinglePositionPrefix(FieldInfo fieldInfo, String prefix) throws IOException { if (fieldInfo == null) { throw new IOException("no fieldInfo"); } else { String info = fieldInfo.getAttribute( MtasCodecPostingsFormat.MTAS_FIELDINFO_ATTRIBUTE_PREFIX_SINGLE_POSITION); if (info == null) { throw new IOException("no " + MtasCodecPostingsFormat.MTAS_FIELDINFO_ATTRIBUTE_PREFIX_SINGLE_POSITION); } else { return Arrays.asList(info.split(Pattern.quote(MtasToken.DELIMITER))) .contains(prefix); } } }
java
public static boolean isSinglePositionPrefix(FieldInfo fieldInfo, String prefix) throws IOException { if (fieldInfo == null) { throw new IOException("no fieldInfo"); } else { String info = fieldInfo.getAttribute( MtasCodecPostingsFormat.MTAS_FIELDINFO_ATTRIBUTE_PREFIX_SINGLE_POSITION); if (info == null) { throw new IOException("no " + MtasCodecPostingsFormat.MTAS_FIELDINFO_ATTRIBUTE_PREFIX_SINGLE_POSITION); } else { return Arrays.asList(info.split(Pattern.quote(MtasToken.DELIMITER))) .contains(prefix); } } }
[ "public", "static", "boolean", "isSinglePositionPrefix", "(", "FieldInfo", "fieldInfo", ",", "String", "prefix", ")", "throws", "IOException", "{", "if", "(", "fieldInfo", "==", "null", ")", "{", "throw", "new", "IOException", "(", "\"no fieldInfo\"", ")", ";", "}", "else", "{", "String", "info", "=", "fieldInfo", ".", "getAttribute", "(", "MtasCodecPostingsFormat", ".", "MTAS_FIELDINFO_ATTRIBUTE_PREFIX_SINGLE_POSITION", ")", ";", "if", "(", "info", "==", "null", ")", "{", "throw", "new", "IOException", "(", "\"no \"", "+", "MtasCodecPostingsFormat", ".", "MTAS_FIELDINFO_ATTRIBUTE_PREFIX_SINGLE_POSITION", ")", ";", "}", "else", "{", "return", "Arrays", ".", "asList", "(", "info", ".", "split", "(", "Pattern", ".", "quote", "(", "MtasToken", ".", "DELIMITER", ")", ")", ")", ".", "contains", "(", "prefix", ")", ";", "}", "}", "}" ]
Checks if is single position prefix. @param fieldInfo the field info @param prefix the prefix @return true, if is single position prefix @throws IOException Signals that an I/O exception has occurred.
[ "Checks", "if", "is", "single", "position", "prefix", "." ]
f02ae730848616bd88b553efa7f9eddc32818e64
https://github.com/meertensinstituut/mtas/blob/f02ae730848616bd88b553efa7f9eddc32818e64/src/main/java/mtas/codec/util/CodecUtil.java#L159-L174
train
meertensinstituut/mtas
src/main/java/mtas/codec/util/CodecUtil.java
CodecUtil.termValue
public static String termValue(String term) { int i = term.indexOf(MtasToken.DELIMITER); String value = null; if (i >= 0) { value = term.substring((i + MtasToken.DELIMITER.length())); value = (value.length() > 0) ? value : null; } return (value == null) ? null : value.replace("\u0000", ""); }
java
public static String termValue(String term) { int i = term.indexOf(MtasToken.DELIMITER); String value = null; if (i >= 0) { value = term.substring((i + MtasToken.DELIMITER.length())); value = (value.length() > 0) ? value : null; } return (value == null) ? null : value.replace("\u0000", ""); }
[ "public", "static", "String", "termValue", "(", "String", "term", ")", "{", "int", "i", "=", "term", ".", "indexOf", "(", "MtasToken", ".", "DELIMITER", ")", ";", "String", "value", "=", "null", ";", "if", "(", "i", ">=", "0", ")", "{", "value", "=", "term", ".", "substring", "(", "(", "i", "+", "MtasToken", ".", "DELIMITER", ".", "length", "(", ")", ")", ")", ";", "value", "=", "(", "value", ".", "length", "(", ")", ">", "0", ")", "?", "value", ":", "null", ";", "}", "return", "(", "value", "==", "null", ")", "?", "null", ":", "value", ".", "replace", "(", "\"\\u0000\"", ",", "\"\"", ")", ";", "}" ]
Term value. @param term the term @return the string
[ "Term", "value", "." ]
f02ae730848616bd88b553efa7f9eddc32818e64
https://github.com/meertensinstituut/mtas/blob/f02ae730848616bd88b553efa7f9eddc32818e64/src/main/java/mtas/codec/util/CodecUtil.java#L183-L191
train
meertensinstituut/mtas
src/main/java/mtas/codec/util/CodecUtil.java
CodecUtil.termPrefix
public static String termPrefix(String term) { int i = term.indexOf(MtasToken.DELIMITER); String prefix = term; if (i >= 0) { prefix = term.substring(0, i); } return prefix.replace("\u0000", ""); }
java
public static String termPrefix(String term) { int i = term.indexOf(MtasToken.DELIMITER); String prefix = term; if (i >= 0) { prefix = term.substring(0, i); } return prefix.replace("\u0000", ""); }
[ "public", "static", "String", "termPrefix", "(", "String", "term", ")", "{", "int", "i", "=", "term", ".", "indexOf", "(", "MtasToken", ".", "DELIMITER", ")", ";", "String", "prefix", "=", "term", ";", "if", "(", "i", ">=", "0", ")", "{", "prefix", "=", "term", ".", "substring", "(", "0", ",", "i", ")", ";", "}", "return", "prefix", ".", "replace", "(", "\"\\u0000\"", ",", "\"\"", ")", ";", "}" ]
Term prefix. @param term the term @return the string
[ "Term", "prefix", "." ]
f02ae730848616bd88b553efa7f9eddc32818e64
https://github.com/meertensinstituut/mtas/blob/f02ae730848616bd88b553efa7f9eddc32818e64/src/main/java/mtas/codec/util/CodecUtil.java#L200-L207
train
meertensinstituut/mtas
src/main/java/mtas/codec/util/CodecUtil.java
CodecUtil.createStatsItems
static SortedSet<String> createStatsItems(String statsType) throws IOException { SortedSet<String> statsItems = new TreeSet<>(); SortedSet<String> functionItems = new TreeSet<>(); if (statsType != null) { Matcher m = fpStatsItems.matcher(statsType.trim()); while (m.find()) { String tmpStatsItem = m.group(2).trim(); if (STATS_TYPES.contains(tmpStatsItem)) { statsItems.add(tmpStatsItem); } else if (tmpStatsItem.equals(STATS_TYPE_ALL)) { for (String type : STATS_TYPES) { statsItems.add(type); } } else if (STATS_FUNCTIONS.contains(tmpStatsItem)) { if (m.group(3) == null) { throw new IOException("'" + tmpStatsItem + "' should be called as '" + tmpStatsItem + "()' with an optional argument"); } else { functionItems.add(m.group(1).trim()); } } else { throw new IOException("unknown statsType '" + tmpStatsItem + "'"); } } } if (statsItems.size() == 0 && functionItems.size() == 0) { statsItems.add(STATS_TYPE_SUM); statsItems.add(STATS_TYPE_N); statsItems.add(STATS_TYPE_MEAN); } if (functionItems.size() > 0) { statsItems.addAll(functionItems); } return statsItems; }
java
static SortedSet<String> createStatsItems(String statsType) throws IOException { SortedSet<String> statsItems = new TreeSet<>(); SortedSet<String> functionItems = new TreeSet<>(); if (statsType != null) { Matcher m = fpStatsItems.matcher(statsType.trim()); while (m.find()) { String tmpStatsItem = m.group(2).trim(); if (STATS_TYPES.contains(tmpStatsItem)) { statsItems.add(tmpStatsItem); } else if (tmpStatsItem.equals(STATS_TYPE_ALL)) { for (String type : STATS_TYPES) { statsItems.add(type); } } else if (STATS_FUNCTIONS.contains(tmpStatsItem)) { if (m.group(3) == null) { throw new IOException("'" + tmpStatsItem + "' should be called as '" + tmpStatsItem + "()' with an optional argument"); } else { functionItems.add(m.group(1).trim()); } } else { throw new IOException("unknown statsType '" + tmpStatsItem + "'"); } } } if (statsItems.size() == 0 && functionItems.size() == 0) { statsItems.add(STATS_TYPE_SUM); statsItems.add(STATS_TYPE_N); statsItems.add(STATS_TYPE_MEAN); } if (functionItems.size() > 0) { statsItems.addAll(functionItems); } return statsItems; }
[ "static", "SortedSet", "<", "String", ">", "createStatsItems", "(", "String", "statsType", ")", "throws", "IOException", "{", "SortedSet", "<", "String", ">", "statsItems", "=", "new", "TreeSet", "<>", "(", ")", ";", "SortedSet", "<", "String", ">", "functionItems", "=", "new", "TreeSet", "<>", "(", ")", ";", "if", "(", "statsType", "!=", "null", ")", "{", "Matcher", "m", "=", "fpStatsItems", ".", "matcher", "(", "statsType", ".", "trim", "(", ")", ")", ";", "while", "(", "m", ".", "find", "(", ")", ")", "{", "String", "tmpStatsItem", "=", "m", ".", "group", "(", "2", ")", ".", "trim", "(", ")", ";", "if", "(", "STATS_TYPES", ".", "contains", "(", "tmpStatsItem", ")", ")", "{", "statsItems", ".", "add", "(", "tmpStatsItem", ")", ";", "}", "else", "if", "(", "tmpStatsItem", ".", "equals", "(", "STATS_TYPE_ALL", ")", ")", "{", "for", "(", "String", "type", ":", "STATS_TYPES", ")", "{", "statsItems", ".", "add", "(", "type", ")", ";", "}", "}", "else", "if", "(", "STATS_FUNCTIONS", ".", "contains", "(", "tmpStatsItem", ")", ")", "{", "if", "(", "m", ".", "group", "(", "3", ")", "==", "null", ")", "{", "throw", "new", "IOException", "(", "\"'\"", "+", "tmpStatsItem", "+", "\"' should be called as '\"", "+", "tmpStatsItem", "+", "\"()' with an optional argument\"", ")", ";", "}", "else", "{", "functionItems", ".", "add", "(", "m", ".", "group", "(", "1", ")", ".", "trim", "(", ")", ")", ";", "}", "}", "else", "{", "throw", "new", "IOException", "(", "\"unknown statsType '\"", "+", "tmpStatsItem", "+", "\"'\"", ")", ";", "}", "}", "}", "if", "(", "statsItems", ".", "size", "(", ")", "==", "0", "&&", "functionItems", ".", "size", "(", ")", "==", "0", ")", "{", "statsItems", ".", "add", "(", "STATS_TYPE_SUM", ")", ";", "statsItems", ".", "add", "(", "STATS_TYPE_N", ")", ";", "statsItems", ".", "add", "(", "STATS_TYPE_MEAN", ")", ";", "}", "if", "(", "functionItems", ".", "size", "(", ")", ">", "0", ")", "{", "statsItems", ".", "addAll", "(", "functionItems", ")", ";", "}", "return", "statsItems", ";", "}" ]
Creates the stats items. @param statsType the stats type @return the sorted set @throws IOException Signals that an I/O exception has occurred.
[ "Creates", "the", "stats", "items", "." ]
f02ae730848616bd88b553efa7f9eddc32818e64
https://github.com/meertensinstituut/mtas/blob/f02ae730848616bd88b553efa7f9eddc32818e64/src/main/java/mtas/codec/util/CodecUtil.java#L295-L330
train
meertensinstituut/mtas
src/main/java/mtas/codec/util/CodecUtil.java
CodecUtil.createStatsType
static String createStatsType(Set<String> statsItems, String sortType, MtasFunctionParserFunction functionParser) { String statsType = STATS_BASIC; for (String statsItem : statsItems) { if (STATS_FULL_TYPES.contains(statsItem)) { statsType = STATS_FULL; break; } else if (STATS_ADVANCED_TYPES.contains(statsItem)) { statsType = STATS_ADVANCED; } else if (statsType != STATS_ADVANCED && STATS_BASIC_TYPES.contains(statsItem)) { statsType = STATS_BASIC; } else { Matcher m = fpStatsFunctionItems.matcher(statsItem.trim()); if (m.find()) { if (STATS_FUNCTIONS.contains(m.group(2).trim())) { statsType = STATS_FULL; break; } } } } if (sortType != null && STATS_TYPES.contains(sortType)) { if (STATS_FULL_TYPES.contains(sortType)) { statsType = STATS_FULL; } else if (STATS_ADVANCED_TYPES.contains(sortType)) { statsType = (statsType == null || statsType != STATS_FULL) ? STATS_ADVANCED : statsType; } } return statsType; }
java
static String createStatsType(Set<String> statsItems, String sortType, MtasFunctionParserFunction functionParser) { String statsType = STATS_BASIC; for (String statsItem : statsItems) { if (STATS_FULL_TYPES.contains(statsItem)) { statsType = STATS_FULL; break; } else if (STATS_ADVANCED_TYPES.contains(statsItem)) { statsType = STATS_ADVANCED; } else if (statsType != STATS_ADVANCED && STATS_BASIC_TYPES.contains(statsItem)) { statsType = STATS_BASIC; } else { Matcher m = fpStatsFunctionItems.matcher(statsItem.trim()); if (m.find()) { if (STATS_FUNCTIONS.contains(m.group(2).trim())) { statsType = STATS_FULL; break; } } } } if (sortType != null && STATS_TYPES.contains(sortType)) { if (STATS_FULL_TYPES.contains(sortType)) { statsType = STATS_FULL; } else if (STATS_ADVANCED_TYPES.contains(sortType)) { statsType = (statsType == null || statsType != STATS_FULL) ? STATS_ADVANCED : statsType; } } return statsType; }
[ "static", "String", "createStatsType", "(", "Set", "<", "String", ">", "statsItems", ",", "String", "sortType", ",", "MtasFunctionParserFunction", "functionParser", ")", "{", "String", "statsType", "=", "STATS_BASIC", ";", "for", "(", "String", "statsItem", ":", "statsItems", ")", "{", "if", "(", "STATS_FULL_TYPES", ".", "contains", "(", "statsItem", ")", ")", "{", "statsType", "=", "STATS_FULL", ";", "break", ";", "}", "else", "if", "(", "STATS_ADVANCED_TYPES", ".", "contains", "(", "statsItem", ")", ")", "{", "statsType", "=", "STATS_ADVANCED", ";", "}", "else", "if", "(", "statsType", "!=", "STATS_ADVANCED", "&&", "STATS_BASIC_TYPES", ".", "contains", "(", "statsItem", ")", ")", "{", "statsType", "=", "STATS_BASIC", ";", "}", "else", "{", "Matcher", "m", "=", "fpStatsFunctionItems", ".", "matcher", "(", "statsItem", ".", "trim", "(", ")", ")", ";", "if", "(", "m", ".", "find", "(", ")", ")", "{", "if", "(", "STATS_FUNCTIONS", ".", "contains", "(", "m", ".", "group", "(", "2", ")", ".", "trim", "(", ")", ")", ")", "{", "statsType", "=", "STATS_FULL", ";", "break", ";", "}", "}", "}", "}", "if", "(", "sortType", "!=", "null", "&&", "STATS_TYPES", ".", "contains", "(", "sortType", ")", ")", "{", "if", "(", "STATS_FULL_TYPES", ".", "contains", "(", "sortType", ")", ")", "{", "statsType", "=", "STATS_FULL", ";", "}", "else", "if", "(", "STATS_ADVANCED_TYPES", ".", "contains", "(", "sortType", ")", ")", "{", "statsType", "=", "(", "statsType", "==", "null", "||", "statsType", "!=", "STATS_FULL", ")", "?", "STATS_ADVANCED", ":", "statsType", ";", "}", "}", "return", "statsType", ";", "}" ]
Creates the stats type. @param statsItems the stats items @param sortType the sort type @param functionParser the function parser @return the string
[ "Creates", "the", "stats", "type", "." ]
f02ae730848616bd88b553efa7f9eddc32818e64
https://github.com/meertensinstituut/mtas/blob/f02ae730848616bd88b553efa7f9eddc32818e64/src/main/java/mtas/codec/util/CodecUtil.java#L343-L374
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwwsdl.java
appfwwsdl.get
public static appfwwsdl get(nitro_service service) throws Exception{ appfwwsdl obj = new appfwwsdl(); appfwwsdl[] response = (appfwwsdl[])obj.get_resources(service); return response[0]; }
java
public static appfwwsdl get(nitro_service service) throws Exception{ appfwwsdl obj = new appfwwsdl(); appfwwsdl[] response = (appfwwsdl[])obj.get_resources(service); return response[0]; }
[ "public", "static", "appfwwsdl", "get", "(", "nitro_service", "service", ")", "throws", "Exception", "{", "appfwwsdl", "obj", "=", "new", "appfwwsdl", "(", ")", ";", "appfwwsdl", "[", "]", "response", "=", "(", "appfwwsdl", "[", "]", ")", "obj", ".", "get_resources", "(", "service", ")", ";", "return", "response", "[", "0", "]", ";", "}" ]
Use this API to fetch all the appfwwsdl resources that are configured on netscaler.
[ "Use", "this", "API", "to", "fetch", "all", "the", "appfwwsdl", "resources", "that", "are", "configured", "on", "netscaler", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwwsdl.java#L107-L111
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwwsdl.java
appfwwsdl.get
public static appfwwsdl get(nitro_service service, String name) throws Exception{ appfwwsdl obj = new appfwwsdl(); obj.set_name(name); appfwwsdl response = (appfwwsdl) obj.get_resource(service); return response; }
java
public static appfwwsdl get(nitro_service service, String name) throws Exception{ appfwwsdl obj = new appfwwsdl(); obj.set_name(name); appfwwsdl response = (appfwwsdl) obj.get_resource(service); return response; }
[ "public", "static", "appfwwsdl", "get", "(", "nitro_service", "service", ",", "String", "name", ")", "throws", "Exception", "{", "appfwwsdl", "obj", "=", "new", "appfwwsdl", "(", ")", ";", "obj", ".", "set_name", "(", "name", ")", ";", "appfwwsdl", "response", "=", "(", "appfwwsdl", ")", "obj", ".", "get_resource", "(", "service", ")", ";", "return", "response", ";", "}" ]
Use this API to fetch appfwwsdl resource of given name .
[ "Use", "this", "API", "to", "fetch", "appfwwsdl", "resource", "of", "given", "name", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwwsdl.java#L125-L130
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/lb/lbvserver_servicegroup_binding.java
lbvserver_servicegroup_binding.get
public static lbvserver_servicegroup_binding[] get(nitro_service service, String name) throws Exception{ lbvserver_servicegroup_binding obj = new lbvserver_servicegroup_binding(); obj.set_name(name); lbvserver_servicegroup_binding response[] = (lbvserver_servicegroup_binding[]) obj.get_resources(service); return response; }
java
public static lbvserver_servicegroup_binding[] get(nitro_service service, String name) throws Exception{ lbvserver_servicegroup_binding obj = new lbvserver_servicegroup_binding(); obj.set_name(name); lbvserver_servicegroup_binding response[] = (lbvserver_servicegroup_binding[]) obj.get_resources(service); return response; }
[ "public", "static", "lbvserver_servicegroup_binding", "[", "]", "get", "(", "nitro_service", "service", ",", "String", "name", ")", "throws", "Exception", "{", "lbvserver_servicegroup_binding", "obj", "=", "new", "lbvserver_servicegroup_binding", "(", ")", ";", "obj", ".", "set_name", "(", "name", ")", ";", "lbvserver_servicegroup_binding", "response", "[", "]", "=", "(", "lbvserver_servicegroup_binding", "[", "]", ")", "obj", ".", "get_resources", "(", "service", ")", ";", "return", "response", ";", "}" ]
Use this API to fetch lbvserver_servicegroup_binding resources of given name .
[ "Use", "this", "API", "to", "fetch", "lbvserver_servicegroup_binding", "resources", "of", "given", "name", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/lb/lbvserver_servicegroup_binding.java#L211-L216
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/system/systemsession.java
systemsession.kill
public static base_response kill(nitro_service client, systemsession resource) throws Exception { systemsession killresource = new systemsession(); killresource.sid = resource.sid; killresource.all = resource.all; return killresource.perform_operation(client,"kill"); }
java
public static base_response kill(nitro_service client, systemsession resource) throws Exception { systemsession killresource = new systemsession(); killresource.sid = resource.sid; killresource.all = resource.all; return killresource.perform_operation(client,"kill"); }
[ "public", "static", "base_response", "kill", "(", "nitro_service", "client", ",", "systemsession", "resource", ")", "throws", "Exception", "{", "systemsession", "killresource", "=", "new", "systemsession", "(", ")", ";", "killresource", ".", "sid", "=", "resource", ".", "sid", ";", "killresource", ".", "all", "=", "resource", ".", "all", ";", "return", "killresource", ".", "perform_operation", "(", "client", ",", "\"kill\"", ")", ";", "}" ]
Use this API to kill systemsession.
[ "Use", "this", "API", "to", "kill", "systemsession", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/system/systemsession.java#L196-L201
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/system/systemsession.java
systemsession.kill
public static base_responses kill(nitro_service client, systemsession resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { systemsession killresources[] = new systemsession[resources.length]; for (int i=0;i<resources.length;i++){ killresources[i] = new systemsession(); killresources[i].sid = resources[i].sid; killresources[i].all = resources[i].all; } result = perform_operation_bulk_request(client, killresources,"kill"); } return result; }
java
public static base_responses kill(nitro_service client, systemsession resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { systemsession killresources[] = new systemsession[resources.length]; for (int i=0;i<resources.length;i++){ killresources[i] = new systemsession(); killresources[i].sid = resources[i].sid; killresources[i].all = resources[i].all; } result = perform_operation_bulk_request(client, killresources,"kill"); } return result; }
[ "public", "static", "base_responses", "kill", "(", "nitro_service", "client", ",", "systemsession", "resources", "[", "]", ")", "throws", "Exception", "{", "base_responses", "result", "=", "null", ";", "if", "(", "resources", "!=", "null", "&&", "resources", ".", "length", ">", "0", ")", "{", "systemsession", "killresources", "[", "]", "=", "new", "systemsession", "[", "resources", ".", "length", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "resources", ".", "length", ";", "i", "++", ")", "{", "killresources", "[", "i", "]", "=", "new", "systemsession", "(", ")", ";", "killresources", "[", "i", "]", ".", "sid", "=", "resources", "[", "i", "]", ".", "sid", ";", "killresources", "[", "i", "]", ".", "all", "=", "resources", "[", "i", "]", ".", "all", ";", "}", "result", "=", "perform_operation_bulk_request", "(", "client", ",", "killresources", ",", "\"kill\"", ")", ";", "}", "return", "result", ";", "}" ]
Use this API to kill systemsession resources.
[ "Use", "this", "API", "to", "kill", "systemsession", "resources", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/system/systemsession.java#L206-L218
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/system/systemsession.java
systemsession.get
public static systemsession[] get(nitro_service service) throws Exception{ systemsession obj = new systemsession(); systemsession[] response = (systemsession[])obj.get_resources(service); return response; }
java
public static systemsession[] get(nitro_service service) throws Exception{ systemsession obj = new systemsession(); systemsession[] response = (systemsession[])obj.get_resources(service); return response; }
[ "public", "static", "systemsession", "[", "]", "get", "(", "nitro_service", "service", ")", "throws", "Exception", "{", "systemsession", "obj", "=", "new", "systemsession", "(", ")", ";", "systemsession", "[", "]", "response", "=", "(", "systemsession", "[", "]", ")", "obj", ".", "get_resources", "(", "service", ")", ";", "return", "response", ";", "}" ]
Use this API to fetch all the systemsession resources that are configured on netscaler.
[ "Use", "this", "API", "to", "fetch", "all", "the", "systemsession", "resources", "that", "are", "configured", "on", "netscaler", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/system/systemsession.java#L223-L227
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/system/systemsession.java
systemsession.get
public static systemsession get(nitro_service service, Long sid) throws Exception{ systemsession obj = new systemsession(); obj.set_sid(sid); systemsession response = (systemsession) obj.get_resource(service); return response; }
java
public static systemsession get(nitro_service service, Long sid) throws Exception{ systemsession obj = new systemsession(); obj.set_sid(sid); systemsession response = (systemsession) obj.get_resource(service); return response; }
[ "public", "static", "systemsession", "get", "(", "nitro_service", "service", ",", "Long", "sid", ")", "throws", "Exception", "{", "systemsession", "obj", "=", "new", "systemsession", "(", ")", ";", "obj", ".", "set_sid", "(", "sid", ")", ";", "systemsession", "response", "=", "(", "systemsession", ")", "obj", ".", "get_resource", "(", "service", ")", ";", "return", "response", ";", "}" ]
Use this API to fetch systemsession resource of given name .
[ "Use", "this", "API", "to", "fetch", "systemsession", "resource", "of", "given", "name", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/system/systemsession.java#L239-L244
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/system/systemsession.java
systemsession.get
public static systemsession[] get(nitro_service service, Long sid[]) throws Exception{ if (sid !=null && sid.length>0) { systemsession response[] = new systemsession[sid.length]; systemsession obj[] = new systemsession[sid.length]; for (int i=0;i<sid.length;i++) { obj[i] = new systemsession(); obj[i].set_sid(sid[i]); response[i] = (systemsession) obj[i].get_resource(service); } return response; } return null; }
java
public static systemsession[] get(nitro_service service, Long sid[]) throws Exception{ if (sid !=null && sid.length>0) { systemsession response[] = new systemsession[sid.length]; systemsession obj[] = new systemsession[sid.length]; for (int i=0;i<sid.length;i++) { obj[i] = new systemsession(); obj[i].set_sid(sid[i]); response[i] = (systemsession) obj[i].get_resource(service); } return response; } return null; }
[ "public", "static", "systemsession", "[", "]", "get", "(", "nitro_service", "service", ",", "Long", "sid", "[", "]", ")", "throws", "Exception", "{", "if", "(", "sid", "!=", "null", "&&", "sid", ".", "length", ">", "0", ")", "{", "systemsession", "response", "[", "]", "=", "new", "systemsession", "[", "sid", ".", "length", "]", ";", "systemsession", "obj", "[", "]", "=", "new", "systemsession", "[", "sid", ".", "length", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "sid", ".", "length", ";", "i", "++", ")", "{", "obj", "[", "i", "]", "=", "new", "systemsession", "(", ")", ";", "obj", "[", "i", "]", ".", "set_sid", "(", "sid", "[", "i", "]", ")", ";", "response", "[", "i", "]", "=", "(", "systemsession", ")", "obj", "[", "i", "]", ".", "get_resource", "(", "service", ")", ";", "}", "return", "response", ";", "}", "return", "null", ";", "}" ]
Use this API to fetch systemsession resources of given names .
[ "Use", "this", "API", "to", "fetch", "systemsession", "resources", "of", "given", "names", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/system/systemsession.java#L249-L261
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/snmp/snmpalarm.java
snmpalarm.update
public static base_response update(nitro_service client, snmpalarm resource) throws Exception { snmpalarm updateresource = new snmpalarm(); updateresource.trapname = resource.trapname; updateresource.thresholdvalue = resource.thresholdvalue; updateresource.normalvalue = resource.normalvalue; updateresource.time = resource.time; updateresource.state = resource.state; updateresource.severity = resource.severity; updateresource.logging = resource.logging; return updateresource.update_resource(client); }
java
public static base_response update(nitro_service client, snmpalarm resource) throws Exception { snmpalarm updateresource = new snmpalarm(); updateresource.trapname = resource.trapname; updateresource.thresholdvalue = resource.thresholdvalue; updateresource.normalvalue = resource.normalvalue; updateresource.time = resource.time; updateresource.state = resource.state; updateresource.severity = resource.severity; updateresource.logging = resource.logging; return updateresource.update_resource(client); }
[ "public", "static", "base_response", "update", "(", "nitro_service", "client", ",", "snmpalarm", "resource", ")", "throws", "Exception", "{", "snmpalarm", "updateresource", "=", "new", "snmpalarm", "(", ")", ";", "updateresource", ".", "trapname", "=", "resource", ".", "trapname", ";", "updateresource", ".", "thresholdvalue", "=", "resource", ".", "thresholdvalue", ";", "updateresource", ".", "normalvalue", "=", "resource", ".", "normalvalue", ";", "updateresource", ".", "time", "=", "resource", ".", "time", ";", "updateresource", ".", "state", "=", "resource", ".", "state", ";", "updateresource", ".", "severity", "=", "resource", ".", "severity", ";", "updateresource", ".", "logging", "=", "resource", ".", "logging", ";", "return", "updateresource", ".", "update_resource", "(", "client", ")", ";", "}" ]
Use this API to update snmpalarm.
[ "Use", "this", "API", "to", "update", "snmpalarm", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/snmp/snmpalarm.java#L249-L259
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/snmp/snmpalarm.java
snmpalarm.update
public static base_responses update(nitro_service client, snmpalarm resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { snmpalarm updateresources[] = new snmpalarm[resources.length]; for (int i=0;i<resources.length;i++){ updateresources[i] = new snmpalarm(); updateresources[i].trapname = resources[i].trapname; updateresources[i].thresholdvalue = resources[i].thresholdvalue; updateresources[i].normalvalue = resources[i].normalvalue; updateresources[i].time = resources[i].time; updateresources[i].state = resources[i].state; updateresources[i].severity = resources[i].severity; updateresources[i].logging = resources[i].logging; } result = update_bulk_request(client, updateresources); } return result; }
java
public static base_responses update(nitro_service client, snmpalarm resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { snmpalarm updateresources[] = new snmpalarm[resources.length]; for (int i=0;i<resources.length;i++){ updateresources[i] = new snmpalarm(); updateresources[i].trapname = resources[i].trapname; updateresources[i].thresholdvalue = resources[i].thresholdvalue; updateresources[i].normalvalue = resources[i].normalvalue; updateresources[i].time = resources[i].time; updateresources[i].state = resources[i].state; updateresources[i].severity = resources[i].severity; updateresources[i].logging = resources[i].logging; } result = update_bulk_request(client, updateresources); } return result; }
[ "public", "static", "base_responses", "update", "(", "nitro_service", "client", ",", "snmpalarm", "resources", "[", "]", ")", "throws", "Exception", "{", "base_responses", "result", "=", "null", ";", "if", "(", "resources", "!=", "null", "&&", "resources", ".", "length", ">", "0", ")", "{", "snmpalarm", "updateresources", "[", "]", "=", "new", "snmpalarm", "[", "resources", ".", "length", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "resources", ".", "length", ";", "i", "++", ")", "{", "updateresources", "[", "i", "]", "=", "new", "snmpalarm", "(", ")", ";", "updateresources", "[", "i", "]", ".", "trapname", "=", "resources", "[", "i", "]", ".", "trapname", ";", "updateresources", "[", "i", "]", ".", "thresholdvalue", "=", "resources", "[", "i", "]", ".", "thresholdvalue", ";", "updateresources", "[", "i", "]", ".", "normalvalue", "=", "resources", "[", "i", "]", ".", "normalvalue", ";", "updateresources", "[", "i", "]", ".", "time", "=", "resources", "[", "i", "]", ".", "time", ";", "updateresources", "[", "i", "]", ".", "state", "=", "resources", "[", "i", "]", ".", "state", ";", "updateresources", "[", "i", "]", ".", "severity", "=", "resources", "[", "i", "]", ".", "severity", ";", "updateresources", "[", "i", "]", ".", "logging", "=", "resources", "[", "i", "]", ".", "logging", ";", "}", "result", "=", "update_bulk_request", "(", "client", ",", "updateresources", ")", ";", "}", "return", "result", ";", "}" ]
Use this API to update snmpalarm resources.
[ "Use", "this", "API", "to", "update", "snmpalarm", "resources", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/snmp/snmpalarm.java#L264-L281
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/snmp/snmpalarm.java
snmpalarm.unset
public static base_response unset(nitro_service client, snmpalarm resource, String[] args) throws Exception{ snmpalarm unsetresource = new snmpalarm(); unsetresource.trapname = resource.trapname; return unsetresource.unset_resource(client,args); }
java
public static base_response unset(nitro_service client, snmpalarm resource, String[] args) throws Exception{ snmpalarm unsetresource = new snmpalarm(); unsetresource.trapname = resource.trapname; return unsetresource.unset_resource(client,args); }
[ "public", "static", "base_response", "unset", "(", "nitro_service", "client", ",", "snmpalarm", "resource", ",", "String", "[", "]", "args", ")", "throws", "Exception", "{", "snmpalarm", "unsetresource", "=", "new", "snmpalarm", "(", ")", ";", "unsetresource", ".", "trapname", "=", "resource", ".", "trapname", ";", "return", "unsetresource", ".", "unset_resource", "(", "client", ",", "args", ")", ";", "}" ]
Use this API to unset the properties of snmpalarm resource. Properties that need to be unset are specified in args array.
[ "Use", "this", "API", "to", "unset", "the", "properties", "of", "snmpalarm", "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/snmp/snmpalarm.java#L287-L291
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/snmp/snmpalarm.java
snmpalarm.unset
public static base_responses unset(nitro_service client, String trapname[], String args[]) throws Exception { base_responses result = null; if (trapname != null && trapname.length > 0) { snmpalarm unsetresources[] = new snmpalarm[trapname.length]; for (int i=0;i<trapname.length;i++){ unsetresources[i] = new snmpalarm(); unsetresources[i].trapname = trapname[i]; } result = unset_bulk_request(client, unsetresources,args); } return result; }
java
public static base_responses unset(nitro_service client, String trapname[], String args[]) throws Exception { base_responses result = null; if (trapname != null && trapname.length > 0) { snmpalarm unsetresources[] = new snmpalarm[trapname.length]; for (int i=0;i<trapname.length;i++){ unsetresources[i] = new snmpalarm(); unsetresources[i].trapname = trapname[i]; } result = unset_bulk_request(client, unsetresources,args); } return result; }
[ "public", "static", "base_responses", "unset", "(", "nitro_service", "client", ",", "String", "trapname", "[", "]", ",", "String", "args", "[", "]", ")", "throws", "Exception", "{", "base_responses", "result", "=", "null", ";", "if", "(", "trapname", "!=", "null", "&&", "trapname", ".", "length", ">", "0", ")", "{", "snmpalarm", "unsetresources", "[", "]", "=", "new", "snmpalarm", "[", "trapname", ".", "length", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "trapname", ".", "length", ";", "i", "++", ")", "{", "unsetresources", "[", "i", "]", "=", "new", "snmpalarm", "(", ")", ";", "unsetresources", "[", "i", "]", ".", "trapname", "=", "trapname", "[", "i", "]", ";", "}", "result", "=", "unset_bulk_request", "(", "client", ",", "unsetresources", ",", "args", ")", ";", "}", "return", "result", ";", "}" ]
Use this API to unset the properties of snmpalarm resources. Properties that need to be unset are specified in args array.
[ "Use", "this", "API", "to", "unset", "the", "properties", "of", "snmpalarm", "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/snmp/snmpalarm.java#L297-L308
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/snmp/snmpalarm.java
snmpalarm.enable
public static base_response enable(nitro_service client, String trapname) throws Exception { snmpalarm enableresource = new snmpalarm(); enableresource.trapname = trapname; return enableresource.perform_operation(client,"enable"); }
java
public static base_response enable(nitro_service client, String trapname) throws Exception { snmpalarm enableresource = new snmpalarm(); enableresource.trapname = trapname; return enableresource.perform_operation(client,"enable"); }
[ "public", "static", "base_response", "enable", "(", "nitro_service", "client", ",", "String", "trapname", ")", "throws", "Exception", "{", "snmpalarm", "enableresource", "=", "new", "snmpalarm", "(", ")", ";", "enableresource", ".", "trapname", "=", "trapname", ";", "return", "enableresource", ".", "perform_operation", "(", "client", ",", "\"enable\"", ")", ";", "}" ]
Use this API to enable snmpalarm of given name.
[ "Use", "this", "API", "to", "enable", "snmpalarm", "of", "given", "name", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/snmp/snmpalarm.java#L330-L334
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/snmp/snmpalarm.java
snmpalarm.enable
public static base_responses enable(nitro_service client, String trapname[]) throws Exception { base_responses result = null; if (trapname != null && trapname.length > 0) { snmpalarm enableresources[] = new snmpalarm[trapname.length]; for (int i=0;i<trapname.length;i++){ enableresources[i] = new snmpalarm(); enableresources[i].trapname = trapname[i]; } result = perform_operation_bulk_request(client, enableresources,"enable"); } return result; }
java
public static base_responses enable(nitro_service client, String trapname[]) throws Exception { base_responses result = null; if (trapname != null && trapname.length > 0) { snmpalarm enableresources[] = new snmpalarm[trapname.length]; for (int i=0;i<trapname.length;i++){ enableresources[i] = new snmpalarm(); enableresources[i].trapname = trapname[i]; } result = perform_operation_bulk_request(client, enableresources,"enable"); } return result; }
[ "public", "static", "base_responses", "enable", "(", "nitro_service", "client", ",", "String", "trapname", "[", "]", ")", "throws", "Exception", "{", "base_responses", "result", "=", "null", ";", "if", "(", "trapname", "!=", "null", "&&", "trapname", ".", "length", ">", "0", ")", "{", "snmpalarm", "enableresources", "[", "]", "=", "new", "snmpalarm", "[", "trapname", ".", "length", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "trapname", ".", "length", ";", "i", "++", ")", "{", "enableresources", "[", "i", "]", "=", "new", "snmpalarm", "(", ")", ";", "enableresources", "[", "i", "]", ".", "trapname", "=", "trapname", "[", "i", "]", ";", "}", "result", "=", "perform_operation_bulk_request", "(", "client", ",", "enableresources", ",", "\"enable\"", ")", ";", "}", "return", "result", ";", "}" ]
Use this API to enable snmpalarm resources of given names.
[ "Use", "this", "API", "to", "enable", "snmpalarm", "resources", "of", "given", "names", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/snmp/snmpalarm.java#L348-L359
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/snmp/snmpalarm.java
snmpalarm.disable
public static base_response disable(nitro_service client, String trapname) throws Exception { snmpalarm disableresource = new snmpalarm(); disableresource.trapname = trapname; return disableresource.perform_operation(client,"disable"); }
java
public static base_response disable(nitro_service client, String trapname) throws Exception { snmpalarm disableresource = new snmpalarm(); disableresource.trapname = trapname; return disableresource.perform_operation(client,"disable"); }
[ "public", "static", "base_response", "disable", "(", "nitro_service", "client", ",", "String", "trapname", ")", "throws", "Exception", "{", "snmpalarm", "disableresource", "=", "new", "snmpalarm", "(", ")", ";", "disableresource", ".", "trapname", "=", "trapname", ";", "return", "disableresource", ".", "perform_operation", "(", "client", ",", "\"disable\"", ")", ";", "}" ]
Use this API to disable snmpalarm of given name.
[ "Use", "this", "API", "to", "disable", "snmpalarm", "of", "given", "name", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/snmp/snmpalarm.java#L380-L384
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/snmp/snmpalarm.java
snmpalarm.disable
public static base_responses disable(nitro_service client, String trapname[]) throws Exception { base_responses result = null; if (trapname != null && trapname.length > 0) { snmpalarm disableresources[] = new snmpalarm[trapname.length]; for (int i=0;i<trapname.length;i++){ disableresources[i] = new snmpalarm(); disableresources[i].trapname = trapname[i]; } result = perform_operation_bulk_request(client, disableresources,"disable"); } return result; }
java
public static base_responses disable(nitro_service client, String trapname[]) throws Exception { base_responses result = null; if (trapname != null && trapname.length > 0) { snmpalarm disableresources[] = new snmpalarm[trapname.length]; for (int i=0;i<trapname.length;i++){ disableresources[i] = new snmpalarm(); disableresources[i].trapname = trapname[i]; } result = perform_operation_bulk_request(client, disableresources,"disable"); } return result; }
[ "public", "static", "base_responses", "disable", "(", "nitro_service", "client", ",", "String", "trapname", "[", "]", ")", "throws", "Exception", "{", "base_responses", "result", "=", "null", ";", "if", "(", "trapname", "!=", "null", "&&", "trapname", ".", "length", ">", "0", ")", "{", "snmpalarm", "disableresources", "[", "]", "=", "new", "snmpalarm", "[", "trapname", ".", "length", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "trapname", ".", "length", ";", "i", "++", ")", "{", "disableresources", "[", "i", "]", "=", "new", "snmpalarm", "(", ")", ";", "disableresources", "[", "i", "]", ".", "trapname", "=", "trapname", "[", "i", "]", ";", "}", "result", "=", "perform_operation_bulk_request", "(", "client", ",", "disableresources", ",", "\"disable\"", ")", ";", "}", "return", "result", ";", "}" ]
Use this API to disable snmpalarm resources of given names.
[ "Use", "this", "API", "to", "disable", "snmpalarm", "resources", "of", "given", "names", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/snmp/snmpalarm.java#L398-L409
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/snmp/snmpalarm.java
snmpalarm.get
public static snmpalarm[] get(nitro_service service) throws Exception{ snmpalarm obj = new snmpalarm(); snmpalarm[] response = (snmpalarm[])obj.get_resources(service); return response; }
java
public static snmpalarm[] get(nitro_service service) throws Exception{ snmpalarm obj = new snmpalarm(); snmpalarm[] response = (snmpalarm[])obj.get_resources(service); return response; }
[ "public", "static", "snmpalarm", "[", "]", "get", "(", "nitro_service", "service", ")", "throws", "Exception", "{", "snmpalarm", "obj", "=", "new", "snmpalarm", "(", ")", ";", "snmpalarm", "[", "]", "response", "=", "(", "snmpalarm", "[", "]", ")", "obj", ".", "get_resources", "(", "service", ")", ";", "return", "response", ";", "}" ]
Use this API to fetch all the snmpalarm resources that are configured on netscaler.
[ "Use", "this", "API", "to", "fetch", "all", "the", "snmpalarm", "resources", "that", "are", "configured", "on", "netscaler", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/snmp/snmpalarm.java#L430-L434
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/snmp/snmpalarm.java
snmpalarm.get
public static snmpalarm get(nitro_service service, String trapname) throws Exception{ snmpalarm obj = new snmpalarm(); obj.set_trapname(trapname); snmpalarm response = (snmpalarm) obj.get_resource(service); return response; }
java
public static snmpalarm get(nitro_service service, String trapname) throws Exception{ snmpalarm obj = new snmpalarm(); obj.set_trapname(trapname); snmpalarm response = (snmpalarm) obj.get_resource(service); return response; }
[ "public", "static", "snmpalarm", "get", "(", "nitro_service", "service", ",", "String", "trapname", ")", "throws", "Exception", "{", "snmpalarm", "obj", "=", "new", "snmpalarm", "(", ")", ";", "obj", ".", "set_trapname", "(", "trapname", ")", ";", "snmpalarm", "response", "=", "(", "snmpalarm", ")", "obj", ".", "get_resource", "(", "service", ")", ";", "return", "response", ";", "}" ]
Use this API to fetch snmpalarm resource of given name .
[ "Use", "this", "API", "to", "fetch", "snmpalarm", "resource", "of", "given", "name", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/snmp/snmpalarm.java#L446-L451
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/snmp/snmpalarm.java
snmpalarm.get
public static snmpalarm[] get(nitro_service service, String trapname[]) throws Exception{ if (trapname !=null && trapname.length>0) { snmpalarm response[] = new snmpalarm[trapname.length]; snmpalarm obj[] = new snmpalarm[trapname.length]; for (int i=0;i<trapname.length;i++) { obj[i] = new snmpalarm(); obj[i].set_trapname(trapname[i]); response[i] = (snmpalarm) obj[i].get_resource(service); } return response; } return null; }
java
public static snmpalarm[] get(nitro_service service, String trapname[]) throws Exception{ if (trapname !=null && trapname.length>0) { snmpalarm response[] = new snmpalarm[trapname.length]; snmpalarm obj[] = new snmpalarm[trapname.length]; for (int i=0;i<trapname.length;i++) { obj[i] = new snmpalarm(); obj[i].set_trapname(trapname[i]); response[i] = (snmpalarm) obj[i].get_resource(service); } return response; } return null; }
[ "public", "static", "snmpalarm", "[", "]", "get", "(", "nitro_service", "service", ",", "String", "trapname", "[", "]", ")", "throws", "Exception", "{", "if", "(", "trapname", "!=", "null", "&&", "trapname", ".", "length", ">", "0", ")", "{", "snmpalarm", "response", "[", "]", "=", "new", "snmpalarm", "[", "trapname", ".", "length", "]", ";", "snmpalarm", "obj", "[", "]", "=", "new", "snmpalarm", "[", "trapname", ".", "length", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "trapname", ".", "length", ";", "i", "++", ")", "{", "obj", "[", "i", "]", "=", "new", "snmpalarm", "(", ")", ";", "obj", "[", "i", "]", ".", "set_trapname", "(", "trapname", "[", "i", "]", ")", ";", "response", "[", "i", "]", "=", "(", "snmpalarm", ")", "obj", "[", "i", "]", ".", "get_resource", "(", "service", ")", ";", "}", "return", "response", ";", "}", "return", "null", ";", "}" ]
Use this API to fetch snmpalarm resources of given names .
[ "Use", "this", "API", "to", "fetch", "snmpalarm", "resources", "of", "given", "names", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/snmp/snmpalarm.java#L456-L468
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnsglobal_binding.java
dnsglobal_binding.get
public static dnsglobal_binding get(nitro_service service) throws Exception{ dnsglobal_binding obj = new dnsglobal_binding(); dnsglobal_binding response = (dnsglobal_binding) obj.get_resource(service); return response; }
java
public static dnsglobal_binding get(nitro_service service) throws Exception{ dnsglobal_binding obj = new dnsglobal_binding(); dnsglobal_binding response = (dnsglobal_binding) obj.get_resource(service); return response; }
[ "public", "static", "dnsglobal_binding", "get", "(", "nitro_service", "service", ")", "throws", "Exception", "{", "dnsglobal_binding", "obj", "=", "new", "dnsglobal_binding", "(", ")", ";", "dnsglobal_binding", "response", "=", "(", "dnsglobal_binding", ")", "obj", ".", "get_resource", "(", "service", ")", ";", "return", "response", ";", "}" ]
Use this API to fetch a dnsglobal_binding resource .
[ "Use", "this", "API", "to", "fetch", "a", "dnsglobal_binding", "resource", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnsglobal_binding.java#L84-L88
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/ssl/sslfipskey.java
sslfipskey.create
public static base_response create(nitro_service client, sslfipskey resource) throws Exception { sslfipskey createresource = new sslfipskey(); createresource.fipskeyname = resource.fipskeyname; createresource.modulus = resource.modulus; createresource.exponent = resource.exponent; return createresource.perform_operation(client,"create"); }
java
public static base_response create(nitro_service client, sslfipskey resource) throws Exception { sslfipskey createresource = new sslfipskey(); createresource.fipskeyname = resource.fipskeyname; createresource.modulus = resource.modulus; createresource.exponent = resource.exponent; return createresource.perform_operation(client,"create"); }
[ "public", "static", "base_response", "create", "(", "nitro_service", "client", ",", "sslfipskey", "resource", ")", "throws", "Exception", "{", "sslfipskey", "createresource", "=", "new", "sslfipskey", "(", ")", ";", "createresource", ".", "fipskeyname", "=", "resource", ".", "fipskeyname", ";", "createresource", ".", "modulus", "=", "resource", ".", "modulus", ";", "createresource", ".", "exponent", "=", "resource", ".", "exponent", ";", "return", "createresource", ".", "perform_operation", "(", "client", ",", "\"create\"", ")", ";", "}" ]
Use this API to create sslfipskey.
[ "Use", "this", "API", "to", "create", "sslfipskey", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ssl/sslfipskey.java#L247-L253
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/ssl/sslfipskey.java
sslfipskey.create
public static base_responses create(nitro_service client, sslfipskey resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { sslfipskey createresources[] = new sslfipskey[resources.length]; for (int i=0;i<resources.length;i++){ createresources[i] = new sslfipskey(); createresources[i].fipskeyname = resources[i].fipskeyname; createresources[i].modulus = resources[i].modulus; createresources[i].exponent = resources[i].exponent; } result = perform_operation_bulk_request(client, createresources,"create"); } return result; }
java
public static base_responses create(nitro_service client, sslfipskey resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { sslfipskey createresources[] = new sslfipskey[resources.length]; for (int i=0;i<resources.length;i++){ createresources[i] = new sslfipskey(); createresources[i].fipskeyname = resources[i].fipskeyname; createresources[i].modulus = resources[i].modulus; createresources[i].exponent = resources[i].exponent; } result = perform_operation_bulk_request(client, createresources,"create"); } return result; }
[ "public", "static", "base_responses", "create", "(", "nitro_service", "client", ",", "sslfipskey", "resources", "[", "]", ")", "throws", "Exception", "{", "base_responses", "result", "=", "null", ";", "if", "(", "resources", "!=", "null", "&&", "resources", ".", "length", ">", "0", ")", "{", "sslfipskey", "createresources", "[", "]", "=", "new", "sslfipskey", "[", "resources", ".", "length", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "resources", ".", "length", ";", "i", "++", ")", "{", "createresources", "[", "i", "]", "=", "new", "sslfipskey", "(", ")", ";", "createresources", "[", "i", "]", ".", "fipskeyname", "=", "resources", "[", "i", "]", ".", "fipskeyname", ";", "createresources", "[", "i", "]", ".", "modulus", "=", "resources", "[", "i", "]", ".", "modulus", ";", "createresources", "[", "i", "]", ".", "exponent", "=", "resources", "[", "i", "]", ".", "exponent", ";", "}", "result", "=", "perform_operation_bulk_request", "(", "client", ",", "createresources", ",", "\"create\"", ")", ";", "}", "return", "result", ";", "}" ]
Use this API to create sslfipskey resources.
[ "Use", "this", "API", "to", "create", "sslfipskey", "resources", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ssl/sslfipskey.java#L258-L271
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/ssl/sslfipskey.java
sslfipskey.delete
public static base_response delete(nitro_service client, String fipskeyname) throws Exception { sslfipskey deleteresource = new sslfipskey(); deleteresource.fipskeyname = fipskeyname; return deleteresource.delete_resource(client); }
java
public static base_response delete(nitro_service client, String fipskeyname) throws Exception { sslfipskey deleteresource = new sslfipskey(); deleteresource.fipskeyname = fipskeyname; return deleteresource.delete_resource(client); }
[ "public", "static", "base_response", "delete", "(", "nitro_service", "client", ",", "String", "fipskeyname", ")", "throws", "Exception", "{", "sslfipskey", "deleteresource", "=", "new", "sslfipskey", "(", ")", ";", "deleteresource", ".", "fipskeyname", "=", "fipskeyname", ";", "return", "deleteresource", ".", "delete_resource", "(", "client", ")", ";", "}" ]
Use this API to delete sslfipskey of given name.
[ "Use", "this", "API", "to", "delete", "sslfipskey", "of", "given", "name", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ssl/sslfipskey.java#L276-L280
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/ssl/sslfipskey.java
sslfipskey.delete
public static base_responses delete(nitro_service client, String fipskeyname[]) throws Exception { base_responses result = null; if (fipskeyname != null && fipskeyname.length > 0) { sslfipskey deleteresources[] = new sslfipskey[fipskeyname.length]; for (int i=0;i<fipskeyname.length;i++){ deleteresources[i] = new sslfipskey(); deleteresources[i].fipskeyname = fipskeyname[i]; } result = delete_bulk_request(client, deleteresources); } return result; }
java
public static base_responses delete(nitro_service client, String fipskeyname[]) throws Exception { base_responses result = null; if (fipskeyname != null && fipskeyname.length > 0) { sslfipskey deleteresources[] = new sslfipskey[fipskeyname.length]; for (int i=0;i<fipskeyname.length;i++){ deleteresources[i] = new sslfipskey(); deleteresources[i].fipskeyname = fipskeyname[i]; } result = delete_bulk_request(client, deleteresources); } return result; }
[ "public", "static", "base_responses", "delete", "(", "nitro_service", "client", ",", "String", "fipskeyname", "[", "]", ")", "throws", "Exception", "{", "base_responses", "result", "=", "null", ";", "if", "(", "fipskeyname", "!=", "null", "&&", "fipskeyname", ".", "length", ">", "0", ")", "{", "sslfipskey", "deleteresources", "[", "]", "=", "new", "sslfipskey", "[", "fipskeyname", ".", "length", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "fipskeyname", ".", "length", ";", "i", "++", ")", "{", "deleteresources", "[", "i", "]", "=", "new", "sslfipskey", "(", ")", ";", "deleteresources", "[", "i", "]", ".", "fipskeyname", "=", "fipskeyname", "[", "i", "]", ";", "}", "result", "=", "delete_bulk_request", "(", "client", ",", "deleteresources", ")", ";", "}", "return", "result", ";", "}" ]
Use this API to delete sslfipskey resources of given names.
[ "Use", "this", "API", "to", "delete", "sslfipskey", "resources", "of", "given", "names", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ssl/sslfipskey.java#L294-L305
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/ssl/sslfipskey.java
sslfipskey.Import
public static base_response Import(nitro_service client, sslfipskey resource) throws Exception { sslfipskey Importresource = new sslfipskey(); Importresource.fipskeyname = resource.fipskeyname; Importresource.key = resource.key; Importresource.inform = resource.inform; Importresource.wrapkeyname = resource.wrapkeyname; Importresource.iv = resource.iv; Importresource.exponent = resource.exponent; return Importresource.perform_operation(client,"Import"); }
java
public static base_response Import(nitro_service client, sslfipskey resource) throws Exception { sslfipskey Importresource = new sslfipskey(); Importresource.fipskeyname = resource.fipskeyname; Importresource.key = resource.key; Importresource.inform = resource.inform; Importresource.wrapkeyname = resource.wrapkeyname; Importresource.iv = resource.iv; Importresource.exponent = resource.exponent; return Importresource.perform_operation(client,"Import"); }
[ "public", "static", "base_response", "Import", "(", "nitro_service", "client", ",", "sslfipskey", "resource", ")", "throws", "Exception", "{", "sslfipskey", "Importresource", "=", "new", "sslfipskey", "(", ")", ";", "Importresource", ".", "fipskeyname", "=", "resource", ".", "fipskeyname", ";", "Importresource", ".", "key", "=", "resource", ".", "key", ";", "Importresource", ".", "inform", "=", "resource", ".", "inform", ";", "Importresource", ".", "wrapkeyname", "=", "resource", ".", "wrapkeyname", ";", "Importresource", ".", "iv", "=", "resource", ".", "iv", ";", "Importresource", ".", "exponent", "=", "resource", ".", "exponent", ";", "return", "Importresource", ".", "perform_operation", "(", "client", ",", "\"Import\"", ")", ";", "}" ]
Use this API to Import sslfipskey.
[ "Use", "this", "API", "to", "Import", "sslfipskey", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ssl/sslfipskey.java#L326-L335
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/ssl/sslfipskey.java
sslfipskey.Import
public static base_responses Import(nitro_service client, sslfipskey resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { sslfipskey Importresources[] = new sslfipskey[resources.length]; for (int i=0;i<resources.length;i++){ Importresources[i] = new sslfipskey(); Importresources[i].fipskeyname = resources[i].fipskeyname; Importresources[i].key = resources[i].key; Importresources[i].inform = resources[i].inform; Importresources[i].wrapkeyname = resources[i].wrapkeyname; Importresources[i].iv = resources[i].iv; Importresources[i].exponent = resources[i].exponent; } result = perform_operation_bulk_request(client, Importresources,"Import"); } return result; }
java
public static base_responses Import(nitro_service client, sslfipskey resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { sslfipskey Importresources[] = new sslfipskey[resources.length]; for (int i=0;i<resources.length;i++){ Importresources[i] = new sslfipskey(); Importresources[i].fipskeyname = resources[i].fipskeyname; Importresources[i].key = resources[i].key; Importresources[i].inform = resources[i].inform; Importresources[i].wrapkeyname = resources[i].wrapkeyname; Importresources[i].iv = resources[i].iv; Importresources[i].exponent = resources[i].exponent; } result = perform_operation_bulk_request(client, Importresources,"Import"); } return result; }
[ "public", "static", "base_responses", "Import", "(", "nitro_service", "client", ",", "sslfipskey", "resources", "[", "]", ")", "throws", "Exception", "{", "base_responses", "result", "=", "null", ";", "if", "(", "resources", "!=", "null", "&&", "resources", ".", "length", ">", "0", ")", "{", "sslfipskey", "Importresources", "[", "]", "=", "new", "sslfipskey", "[", "resources", ".", "length", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "resources", ".", "length", ";", "i", "++", ")", "{", "Importresources", "[", "i", "]", "=", "new", "sslfipskey", "(", ")", ";", "Importresources", "[", "i", "]", ".", "fipskeyname", "=", "resources", "[", "i", "]", ".", "fipskeyname", ";", "Importresources", "[", "i", "]", ".", "key", "=", "resources", "[", "i", "]", ".", "key", ";", "Importresources", "[", "i", "]", ".", "inform", "=", "resources", "[", "i", "]", ".", "inform", ";", "Importresources", "[", "i", "]", ".", "wrapkeyname", "=", "resources", "[", "i", "]", ".", "wrapkeyname", ";", "Importresources", "[", "i", "]", ".", "iv", "=", "resources", "[", "i", "]", ".", "iv", ";", "Importresources", "[", "i", "]", ".", "exponent", "=", "resources", "[", "i", "]", ".", "exponent", ";", "}", "result", "=", "perform_operation_bulk_request", "(", "client", ",", "Importresources", ",", "\"Import\"", ")", ";", "}", "return", "result", ";", "}" ]
Use this API to Import sslfipskey resources.
[ "Use", "this", "API", "to", "Import", "sslfipskey", "resources", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ssl/sslfipskey.java#L340-L356
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/ssl/sslfipskey.java
sslfipskey.export
public static base_response export(nitro_service client, sslfipskey resource) throws Exception { sslfipskey exportresource = new sslfipskey(); exportresource.fipskeyname = resource.fipskeyname; exportresource.key = resource.key; return exportresource.perform_operation(client,"export"); }
java
public static base_response export(nitro_service client, sslfipskey resource) throws Exception { sslfipskey exportresource = new sslfipskey(); exportresource.fipskeyname = resource.fipskeyname; exportresource.key = resource.key; return exportresource.perform_operation(client,"export"); }
[ "public", "static", "base_response", "export", "(", "nitro_service", "client", ",", "sslfipskey", "resource", ")", "throws", "Exception", "{", "sslfipskey", "exportresource", "=", "new", "sslfipskey", "(", ")", ";", "exportresource", ".", "fipskeyname", "=", "resource", ".", "fipskeyname", ";", "exportresource", ".", "key", "=", "resource", ".", "key", ";", "return", "exportresource", ".", "perform_operation", "(", "client", ",", "\"export\"", ")", ";", "}" ]
Use this API to export sslfipskey.
[ "Use", "this", "API", "to", "export", "sslfipskey", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ssl/sslfipskey.java#L361-L366
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/ssl/sslfipskey.java
sslfipskey.export
public static base_responses export(nitro_service client, sslfipskey resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { sslfipskey exportresources[] = new sslfipskey[resources.length]; for (int i=0;i<resources.length;i++){ exportresources[i] = new sslfipskey(); exportresources[i].fipskeyname = resources[i].fipskeyname; exportresources[i].key = resources[i].key; } result = perform_operation_bulk_request(client, exportresources,"export"); } return result; }
java
public static base_responses export(nitro_service client, sslfipskey resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { sslfipskey exportresources[] = new sslfipskey[resources.length]; for (int i=0;i<resources.length;i++){ exportresources[i] = new sslfipskey(); exportresources[i].fipskeyname = resources[i].fipskeyname; exportresources[i].key = resources[i].key; } result = perform_operation_bulk_request(client, exportresources,"export"); } return result; }
[ "public", "static", "base_responses", "export", "(", "nitro_service", "client", ",", "sslfipskey", "resources", "[", "]", ")", "throws", "Exception", "{", "base_responses", "result", "=", "null", ";", "if", "(", "resources", "!=", "null", "&&", "resources", ".", "length", ">", "0", ")", "{", "sslfipskey", "exportresources", "[", "]", "=", "new", "sslfipskey", "[", "resources", ".", "length", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "resources", ".", "length", ";", "i", "++", ")", "{", "exportresources", "[", "i", "]", "=", "new", "sslfipskey", "(", ")", ";", "exportresources", "[", "i", "]", ".", "fipskeyname", "=", "resources", "[", "i", "]", ".", "fipskeyname", ";", "exportresources", "[", "i", "]", ".", "key", "=", "resources", "[", "i", "]", ".", "key", ";", "}", "result", "=", "perform_operation_bulk_request", "(", "client", ",", "exportresources", ",", "\"export\"", ")", ";", "}", "return", "result", ";", "}" ]
Use this API to export sslfipskey resources.
[ "Use", "this", "API", "to", "export", "sslfipskey", "resources", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ssl/sslfipskey.java#L371-L383
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/ssl/sslfipskey.java
sslfipskey.get
public static sslfipskey[] get(nitro_service service) throws Exception{ sslfipskey obj = new sslfipskey(); sslfipskey[] response = (sslfipskey[])obj.get_resources(service); return response; }
java
public static sslfipskey[] get(nitro_service service) throws Exception{ sslfipskey obj = new sslfipskey(); sslfipskey[] response = (sslfipskey[])obj.get_resources(service); return response; }
[ "public", "static", "sslfipskey", "[", "]", "get", "(", "nitro_service", "service", ")", "throws", "Exception", "{", "sslfipskey", "obj", "=", "new", "sslfipskey", "(", ")", ";", "sslfipskey", "[", "]", "response", "=", "(", "sslfipskey", "[", "]", ")", "obj", ".", "get_resources", "(", "service", ")", ";", "return", "response", ";", "}" ]
Use this API to fetch all the sslfipskey resources that are configured on netscaler.
[ "Use", "this", "API", "to", "fetch", "all", "the", "sslfipskey", "resources", "that", "are", "configured", "on", "netscaler", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ssl/sslfipskey.java#L388-L392
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/ssl/sslfipskey.java
sslfipskey.get
public static sslfipskey get(nitro_service service, String fipskeyname) throws Exception{ sslfipskey obj = new sslfipskey(); obj.set_fipskeyname(fipskeyname); sslfipskey response = (sslfipskey) obj.get_resource(service); return response; }
java
public static sslfipskey get(nitro_service service, String fipskeyname) throws Exception{ sslfipskey obj = new sslfipskey(); obj.set_fipskeyname(fipskeyname); sslfipskey response = (sslfipskey) obj.get_resource(service); return response; }
[ "public", "static", "sslfipskey", "get", "(", "nitro_service", "service", ",", "String", "fipskeyname", ")", "throws", "Exception", "{", "sslfipskey", "obj", "=", "new", "sslfipskey", "(", ")", ";", "obj", ".", "set_fipskeyname", "(", "fipskeyname", ")", ";", "sslfipskey", "response", "=", "(", "sslfipskey", ")", "obj", ".", "get_resource", "(", "service", ")", ";", "return", "response", ";", "}" ]
Use this API to fetch sslfipskey resource of given name .
[ "Use", "this", "API", "to", "fetch", "sslfipskey", "resource", "of", "given", "name", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ssl/sslfipskey.java#L404-L409
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/ssl/sslfipskey.java
sslfipskey.get
public static sslfipskey[] get(nitro_service service, String fipskeyname[]) throws Exception{ if (fipskeyname !=null && fipskeyname.length>0) { sslfipskey response[] = new sslfipskey[fipskeyname.length]; sslfipskey obj[] = new sslfipskey[fipskeyname.length]; for (int i=0;i<fipskeyname.length;i++) { obj[i] = new sslfipskey(); obj[i].set_fipskeyname(fipskeyname[i]); response[i] = (sslfipskey) obj[i].get_resource(service); } return response; } return null; }
java
public static sslfipskey[] get(nitro_service service, String fipskeyname[]) throws Exception{ if (fipskeyname !=null && fipskeyname.length>0) { sslfipskey response[] = new sslfipskey[fipskeyname.length]; sslfipskey obj[] = new sslfipskey[fipskeyname.length]; for (int i=0;i<fipskeyname.length;i++) { obj[i] = new sslfipskey(); obj[i].set_fipskeyname(fipskeyname[i]); response[i] = (sslfipskey) obj[i].get_resource(service); } return response; } return null; }
[ "public", "static", "sslfipskey", "[", "]", "get", "(", "nitro_service", "service", ",", "String", "fipskeyname", "[", "]", ")", "throws", "Exception", "{", "if", "(", "fipskeyname", "!=", "null", "&&", "fipskeyname", ".", "length", ">", "0", ")", "{", "sslfipskey", "response", "[", "]", "=", "new", "sslfipskey", "[", "fipskeyname", ".", "length", "]", ";", "sslfipskey", "obj", "[", "]", "=", "new", "sslfipskey", "[", "fipskeyname", ".", "length", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "fipskeyname", ".", "length", ";", "i", "++", ")", "{", "obj", "[", "i", "]", "=", "new", "sslfipskey", "(", ")", ";", "obj", "[", "i", "]", ".", "set_fipskeyname", "(", "fipskeyname", "[", "i", "]", ")", ";", "response", "[", "i", "]", "=", "(", "sslfipskey", ")", "obj", "[", "i", "]", ".", "get_resource", "(", "service", ")", ";", "}", "return", "response", ";", "}", "return", "null", ";", "}" ]
Use this API to fetch sslfipskey resources of given names .
[ "Use", "this", "API", "to", "fetch", "sslfipskey", "resources", "of", "given", "names", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ssl/sslfipskey.java#L414-L426
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/aaa/aaauser_vpntrafficpolicy_binding.java
aaauser_vpntrafficpolicy_binding.get
public static aaauser_vpntrafficpolicy_binding[] get(nitro_service service, String username) throws Exception{ aaauser_vpntrafficpolicy_binding obj = new aaauser_vpntrafficpolicy_binding(); obj.set_username(username); aaauser_vpntrafficpolicy_binding response[] = (aaauser_vpntrafficpolicy_binding[]) obj.get_resources(service); return response; }
java
public static aaauser_vpntrafficpolicy_binding[] get(nitro_service service, String username) throws Exception{ aaauser_vpntrafficpolicy_binding obj = new aaauser_vpntrafficpolicy_binding(); obj.set_username(username); aaauser_vpntrafficpolicy_binding response[] = (aaauser_vpntrafficpolicy_binding[]) obj.get_resources(service); return response; }
[ "public", "static", "aaauser_vpntrafficpolicy_binding", "[", "]", "get", "(", "nitro_service", "service", ",", "String", "username", ")", "throws", "Exception", "{", "aaauser_vpntrafficpolicy_binding", "obj", "=", "new", "aaauser_vpntrafficpolicy_binding", "(", ")", ";", "obj", ".", "set_username", "(", "username", ")", ";", "aaauser_vpntrafficpolicy_binding", "response", "[", "]", "=", "(", "aaauser_vpntrafficpolicy_binding", "[", "]", ")", "obj", ".", "get_resources", "(", "service", ")", ";", "return", "response", ";", "}" ]
Use this API to fetch aaauser_vpntrafficpolicy_binding resources of given name .
[ "Use", "this", "API", "to", "fetch", "aaauser_vpntrafficpolicy_binding", "resources", "of", "given", "name", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/aaa/aaauser_vpntrafficpolicy_binding.java#L240-L245
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/stat/gslb/gslbdomain_stats.java
gslbdomain_stats.get
public static gslbdomain_stats[] get(nitro_service service) throws Exception{ gslbdomain_stats obj = new gslbdomain_stats(); gslbdomain_stats[] response = (gslbdomain_stats[])obj.stat_resources(service); return response; }
java
public static gslbdomain_stats[] get(nitro_service service) throws Exception{ gslbdomain_stats obj = new gslbdomain_stats(); gslbdomain_stats[] response = (gslbdomain_stats[])obj.stat_resources(service); return response; }
[ "public", "static", "gslbdomain_stats", "[", "]", "get", "(", "nitro_service", "service", ")", "throws", "Exception", "{", "gslbdomain_stats", "obj", "=", "new", "gslbdomain_stats", "(", ")", ";", "gslbdomain_stats", "[", "]", "response", "=", "(", "gslbdomain_stats", "[", "]", ")", "obj", ".", "stat_resources", "(", "service", ")", ";", "return", "response", ";", "}" ]
Use this API to fetch the statistics of all gslbdomain_stats resources that are configured on netscaler.
[ "Use", "this", "API", "to", "fetch", "the", "statistics", "of", "all", "gslbdomain_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/gslbdomain_stats.java#L131-L135
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/stat/gslb/gslbdomain_stats.java
gslbdomain_stats.get
public static gslbdomain_stats get(nitro_service service, String name) throws Exception{ gslbdomain_stats obj = new gslbdomain_stats(); obj.set_name(name); gslbdomain_stats response = (gslbdomain_stats) obj.stat_resource(service); return response; }
java
public static gslbdomain_stats get(nitro_service service, String name) throws Exception{ gslbdomain_stats obj = new gslbdomain_stats(); obj.set_name(name); gslbdomain_stats response = (gslbdomain_stats) obj.stat_resource(service); return response; }
[ "public", "static", "gslbdomain_stats", "get", "(", "nitro_service", "service", ",", "String", "name", ")", "throws", "Exception", "{", "gslbdomain_stats", "obj", "=", "new", "gslbdomain_stats", "(", ")", ";", "obj", ".", "set_name", "(", "name", ")", ";", "gslbdomain_stats", "response", "=", "(", "gslbdomain_stats", ")", "obj", ".", "stat_resource", "(", "service", ")", ";", "return", "response", ";", "}" ]
Use this API to fetch statistics of gslbdomain_stats resource of given name .
[ "Use", "this", "API", "to", "fetch", "statistics", "of", "gslbdomain_stats", "resource", "of", "given", "name", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/stat/gslb/gslbdomain_stats.java#L149-L154
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwsignatures.java
appfwsignatures.Import
public static base_response Import(nitro_service client, appfwsignatures resource) throws Exception { appfwsignatures Importresource = new appfwsignatures(); Importresource.src = resource.src; Importresource.name = resource.name; Importresource.xslt = resource.xslt; Importresource.comment = resource.comment; Importresource.overwrite = resource.overwrite; Importresource.merge = resource.merge; Importresource.sha1 = resource.sha1; return Importresource.perform_operation(client,"Import"); }
java
public static base_response Import(nitro_service client, appfwsignatures resource) throws Exception { appfwsignatures Importresource = new appfwsignatures(); Importresource.src = resource.src; Importresource.name = resource.name; Importresource.xslt = resource.xslt; Importresource.comment = resource.comment; Importresource.overwrite = resource.overwrite; Importresource.merge = resource.merge; Importresource.sha1 = resource.sha1; return Importresource.perform_operation(client,"Import"); }
[ "public", "static", "base_response", "Import", "(", "nitro_service", "client", ",", "appfwsignatures", "resource", ")", "throws", "Exception", "{", "appfwsignatures", "Importresource", "=", "new", "appfwsignatures", "(", ")", ";", "Importresource", ".", "src", "=", "resource", ".", "src", ";", "Importresource", ".", "name", "=", "resource", ".", "name", ";", "Importresource", ".", "xslt", "=", "resource", ".", "xslt", ";", "Importresource", ".", "comment", "=", "resource", ".", "comment", ";", "Importresource", ".", "overwrite", "=", "resource", ".", "overwrite", ";", "Importresource", ".", "merge", "=", "resource", ".", "merge", ";", "Importresource", ".", "sha1", "=", "resource", ".", "sha1", ";", "return", "Importresource", ".", "perform_operation", "(", "client", ",", "\"Import\"", ")", ";", "}" ]
Use this API to Import appfwsignatures.
[ "Use", "this", "API", "to", "Import", "appfwsignatures", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwsignatures.java#L287-L297
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwsignatures.java
appfwsignatures.change
public static base_response change(nitro_service client, appfwsignatures resource) throws Exception { appfwsignatures updateresource = new appfwsignatures(); updateresource.name = resource.name; updateresource.mergedefault = resource.mergedefault; return updateresource.perform_operation(client,"update"); }
java
public static base_response change(nitro_service client, appfwsignatures resource) throws Exception { appfwsignatures updateresource = new appfwsignatures(); updateresource.name = resource.name; updateresource.mergedefault = resource.mergedefault; return updateresource.perform_operation(client,"update"); }
[ "public", "static", "base_response", "change", "(", "nitro_service", "client", ",", "appfwsignatures", "resource", ")", "throws", "Exception", "{", "appfwsignatures", "updateresource", "=", "new", "appfwsignatures", "(", ")", ";", "updateresource", ".", "name", "=", "resource", ".", "name", ";", "updateresource", ".", "mergedefault", "=", "resource", ".", "mergedefault", ";", "return", "updateresource", ".", "perform_operation", "(", "client", ",", "\"update\"", ")", ";", "}" ]
Use this API to change appfwsignatures.
[ "Use", "this", "API", "to", "change", "appfwsignatures", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwsignatures.java#L302-L307
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwsignatures.java
appfwsignatures.get
public static appfwsignatures get(nitro_service service) throws Exception{ appfwsignatures obj = new appfwsignatures(); appfwsignatures[] response = (appfwsignatures[])obj.get_resources(service); return response[0]; }
java
public static appfwsignatures get(nitro_service service) throws Exception{ appfwsignatures obj = new appfwsignatures(); appfwsignatures[] response = (appfwsignatures[])obj.get_resources(service); return response[0]; }
[ "public", "static", "appfwsignatures", "get", "(", "nitro_service", "service", ")", "throws", "Exception", "{", "appfwsignatures", "obj", "=", "new", "appfwsignatures", "(", ")", ";", "appfwsignatures", "[", "]", "response", "=", "(", "appfwsignatures", "[", "]", ")", "obj", ".", "get_resources", "(", "service", ")", ";", "return", "response", "[", "0", "]", ";", "}" ]
Use this API to fetch all the appfwsignatures resources that are configured on netscaler.
[ "Use", "this", "API", "to", "fetch", "all", "the", "appfwsignatures", "resources", "that", "are", "configured", "on", "netscaler", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwsignatures.java#L312-L316
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwsignatures.java
appfwsignatures.get
public static appfwsignatures get(nitro_service service, String name) throws Exception{ appfwsignatures obj = new appfwsignatures(); obj.set_name(name); appfwsignatures response = (appfwsignatures) obj.get_resource(service); return response; }
java
public static appfwsignatures get(nitro_service service, String name) throws Exception{ appfwsignatures obj = new appfwsignatures(); obj.set_name(name); appfwsignatures response = (appfwsignatures) obj.get_resource(service); return response; }
[ "public", "static", "appfwsignatures", "get", "(", "nitro_service", "service", ",", "String", "name", ")", "throws", "Exception", "{", "appfwsignatures", "obj", "=", "new", "appfwsignatures", "(", ")", ";", "obj", ".", "set_name", "(", "name", ")", ";", "appfwsignatures", "response", "=", "(", "appfwsignatures", ")", "obj", ".", "get_resource", "(", "service", ")", ";", "return", "response", ";", "}" ]
Use this API to fetch appfwsignatures resource of given name .
[ "Use", "this", "API", "to", "fetch", "appfwsignatures", "resource", "of", "given", "name", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwsignatures.java#L330-L335
train
meertensinstituut/mtas
src/main/java/mtas/analysis/token/MtasToken.java
MtasToken.addPosition
final public void addPosition(int position) { if (tokenPosition == null) { tokenPosition = new MtasPosition(position); } else { tokenPosition.add(position); } }
java
final public void addPosition(int position) { if (tokenPosition == null) { tokenPosition = new MtasPosition(position); } else { tokenPosition.add(position); } }
[ "final", "public", "void", "addPosition", "(", "int", "position", ")", "{", "if", "(", "tokenPosition", "==", "null", ")", "{", "tokenPosition", "=", "new", "MtasPosition", "(", "position", ")", ";", "}", "else", "{", "tokenPosition", ".", "add", "(", "position", ")", ";", "}", "}" ]
Adds the position. @param position the position
[ "Adds", "the", "position", "." ]
f02ae730848616bd88b553efa7f9eddc32818e64
https://github.com/meertensinstituut/mtas/blob/f02ae730848616bd88b553efa7f9eddc32818e64/src/main/java/mtas/analysis/token/MtasToken.java#L279-L285
train
meertensinstituut/mtas
src/main/java/mtas/analysis/token/MtasToken.java
MtasToken.addPositionRange
final public void addPositionRange(int start, int end) { if (tokenPosition == null) { tokenPosition = new MtasPosition(start, end); } else { int[] positions = new int[end - start + 1]; for (int i = start; i <= end; i++) { positions[i - start] = i; } tokenPosition.add(positions); } }
java
final public void addPositionRange(int start, int end) { if (tokenPosition == null) { tokenPosition = new MtasPosition(start, end); } else { int[] positions = new int[end - start + 1]; for (int i = start; i <= end; i++) { positions[i - start] = i; } tokenPosition.add(positions); } }
[ "final", "public", "void", "addPositionRange", "(", "int", "start", ",", "int", "end", ")", "{", "if", "(", "tokenPosition", "==", "null", ")", "{", "tokenPosition", "=", "new", "MtasPosition", "(", "start", ",", "end", ")", ";", "}", "else", "{", "int", "[", "]", "positions", "=", "new", "int", "[", "end", "-", "start", "+", "1", "]", ";", "for", "(", "int", "i", "=", "start", ";", "i", "<=", "end", ";", "i", "++", ")", "{", "positions", "[", "i", "-", "start", "]", "=", "i", ";", "}", "tokenPosition", ".", "add", "(", "positions", ")", ";", "}", "}" ]
Adds the position range. @param start the start @param end the end
[ "Adds", "the", "position", "range", "." ]
f02ae730848616bd88b553efa7f9eddc32818e64
https://github.com/meertensinstituut/mtas/blob/f02ae730848616bd88b553efa7f9eddc32818e64/src/main/java/mtas/analysis/token/MtasToken.java#L293-L303
train
meertensinstituut/mtas
src/main/java/mtas/analysis/token/MtasToken.java
MtasToken.checkPositionType
final public Boolean checkPositionType(String type) { if (tokenPosition == null) { return false; } else { return tokenPosition.checkType(type); } }
java
final public Boolean checkPositionType(String type) { if (tokenPosition == null) { return false; } else { return tokenPosition.checkType(type); } }
[ "final", "public", "Boolean", "checkPositionType", "(", "String", "type", ")", "{", "if", "(", "tokenPosition", "==", "null", ")", "{", "return", "false", ";", "}", "else", "{", "return", "tokenPosition", ".", "checkType", "(", "type", ")", ";", "}", "}" ]
Check position type. @param type the type @return the boolean
[ "Check", "position", "type", "." ]
f02ae730848616bd88b553efa7f9eddc32818e64
https://github.com/meertensinstituut/mtas/blob/f02ae730848616bd88b553efa7f9eddc32818e64/src/main/java/mtas/analysis/token/MtasToken.java#L337-L343
train
meertensinstituut/mtas
src/main/java/mtas/analysis/token/MtasToken.java
MtasToken.checkRealOffset
final public Boolean checkRealOffset() { if ((tokenRealOffset == null) || !provideRealOffset) { return false; } else if (tokenOffset == null) { return true; } else if (tokenOffset.getStart() == tokenRealOffset.getStart() && tokenOffset.getEnd() == tokenRealOffset.getEnd()) { return false; } else { return true; } }
java
final public Boolean checkRealOffset() { if ((tokenRealOffset == null) || !provideRealOffset) { return false; } else if (tokenOffset == null) { return true; } else if (tokenOffset.getStart() == tokenRealOffset.getStart() && tokenOffset.getEnd() == tokenRealOffset.getEnd()) { return false; } else { return true; } }
[ "final", "public", "Boolean", "checkRealOffset", "(", ")", "{", "if", "(", "(", "tokenRealOffset", "==", "null", ")", "||", "!", "provideRealOffset", ")", "{", "return", "false", ";", "}", "else", "if", "(", "tokenOffset", "==", "null", ")", "{", "return", "true", ";", "}", "else", "if", "(", "tokenOffset", ".", "getStart", "(", ")", "==", "tokenRealOffset", ".", "getStart", "(", ")", "&&", "tokenOffset", ".", "getEnd", "(", ")", "==", "tokenRealOffset", ".", "getEnd", "(", ")", ")", "{", "return", "false", ";", "}", "else", "{", "return", "true", ";", "}", "}" ]
Check real offset. @return the boolean
[ "Check", "real", "offset", "." ]
f02ae730848616bd88b553efa7f9eddc32818e64
https://github.com/meertensinstituut/mtas/blob/f02ae730848616bd88b553efa7f9eddc32818e64/src/main/java/mtas/analysis/token/MtasToken.java#L399-L410
train
meertensinstituut/mtas
src/main/java/mtas/analysis/token/MtasToken.java
MtasToken.addOffset
final public void addOffset(Integer start, Integer end) { if (tokenOffset == null) { setOffset(start, end); } else if ((start == null) || (end == null)) { // do nothing } else if (start > end) { throw new IllegalArgumentException("Start offset after end offset"); } else { tokenOffset.add(start, end); } }
java
final public void addOffset(Integer start, Integer end) { if (tokenOffset == null) { setOffset(start, end); } else if ((start == null) || (end == null)) { // do nothing } else if (start > end) { throw new IllegalArgumentException("Start offset after end offset"); } else { tokenOffset.add(start, end); } }
[ "final", "public", "void", "addOffset", "(", "Integer", "start", ",", "Integer", "end", ")", "{", "if", "(", "tokenOffset", "==", "null", ")", "{", "setOffset", "(", "start", ",", "end", ")", ";", "}", "else", "if", "(", "(", "start", "==", "null", ")", "||", "(", "end", "==", "null", ")", ")", "{", "// do nothing", "}", "else", "if", "(", "start", ">", "end", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"Start offset after end offset\"", ")", ";", "}", "else", "{", "tokenOffset", ".", "add", "(", "start", ",", "end", ")", ";", "}", "}" ]
Adds the offset. @param start the start @param end the end
[ "Adds", "the", "offset", "." ]
f02ae730848616bd88b553efa7f9eddc32818e64
https://github.com/meertensinstituut/mtas/blob/f02ae730848616bd88b553efa7f9eddc32818e64/src/main/java/mtas/analysis/token/MtasToken.java#L434-L444
train
meertensinstituut/mtas
src/main/java/mtas/analysis/token/MtasToken.java
MtasToken.setRealOffset
final public void setRealOffset(Integer start, Integer end) { if ((start == null) || (end == null)) { // do nothing } else if (start > end) { throw new IllegalArgumentException( "Start real offset after end real offset"); } else { tokenRealOffset = new MtasOffset(start, end); } }
java
final public void setRealOffset(Integer start, Integer end) { if ((start == null) || (end == null)) { // do nothing } else if (start > end) { throw new IllegalArgumentException( "Start real offset after end real offset"); } else { tokenRealOffset = new MtasOffset(start, end); } }
[ "final", "public", "void", "setRealOffset", "(", "Integer", "start", ",", "Integer", "end", ")", "{", "if", "(", "(", "start", "==", "null", ")", "||", "(", "end", "==", "null", ")", ")", "{", "// do nothing", "}", "else", "if", "(", "start", ">", "end", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"Start real offset after end real offset\"", ")", ";", "}", "else", "{", "tokenRealOffset", "=", "new", "MtasOffset", "(", "start", ",", "end", ")", ";", "}", "}" ]
Sets the real offset. @param start the start @param end the end
[ "Sets", "the", "real", "offset", "." ]
f02ae730848616bd88b553efa7f9eddc32818e64
https://github.com/meertensinstituut/mtas/blob/f02ae730848616bd88b553efa7f9eddc32818e64/src/main/java/mtas/analysis/token/MtasToken.java#L461-L470
train
meertensinstituut/mtas
src/main/java/mtas/analysis/token/MtasToken.java
MtasToken.getPrefixFromValue
public static String getPrefixFromValue(String value) { if (value == null) { return null; } else if (value.contains(DELIMITER)) { String[] list = value.split(DELIMITER); if (list != null && list.length > 0) { return list[0].replaceAll("\u0000", ""); } else { return null; } } else { return value.replaceAll("\u0000", ""); } }
java
public static String getPrefixFromValue(String value) { if (value == null) { return null; } else if (value.contains(DELIMITER)) { String[] list = value.split(DELIMITER); if (list != null && list.length > 0) { return list[0].replaceAll("\u0000", ""); } else { return null; } } else { return value.replaceAll("\u0000", ""); } }
[ "public", "static", "String", "getPrefixFromValue", "(", "String", "value", ")", "{", "if", "(", "value", "==", "null", ")", "{", "return", "null", ";", "}", "else", "if", "(", "value", ".", "contains", "(", "DELIMITER", ")", ")", "{", "String", "[", "]", "list", "=", "value", ".", "split", "(", "DELIMITER", ")", ";", "if", "(", "list", "!=", "null", "&&", "list", ".", "length", ">", "0", ")", "{", "return", "list", "[", "0", "]", ".", "replaceAll", "(", "\"\\u0000\"", ",", "\"\"", ")", ";", "}", "else", "{", "return", "null", ";", "}", "}", "else", "{", "return", "value", ".", "replaceAll", "(", "\"\\u0000\"", ",", "\"\"", ")", ";", "}", "}" ]
Gets the prefix from value. @param value the value @return the prefix from value
[ "Gets", "the", "prefix", "from", "value", "." ]
f02ae730848616bd88b553efa7f9eddc32818e64
https://github.com/meertensinstituut/mtas/blob/f02ae730848616bd88b553efa7f9eddc32818e64/src/main/java/mtas/analysis/token/MtasToken.java#L550-L563
train
meertensinstituut/mtas
src/main/java/mtas/analysis/token/MtasToken.java
MtasToken.createAutomatonMap
public static Map<String, Automaton> createAutomatonMap(String prefix, List<String> valueList, Boolean filter) { HashMap<String, Automaton> automatonMap = new HashMap<>(); if (valueList != null) { for (String item : valueList) { if (filter) { item = item.replaceAll("([\\\"\\)\\(\\<\\>\\.\\@\\#\\]\\[\\{\\}])", "\\\\$1"); } automatonMap.put(item, new RegExp(prefix + MtasToken.DELIMITER + item + "\u0000*") .toAutomaton()); } } return automatonMap; }
java
public static Map<String, Automaton> createAutomatonMap(String prefix, List<String> valueList, Boolean filter) { HashMap<String, Automaton> automatonMap = new HashMap<>(); if (valueList != null) { for (String item : valueList) { if (filter) { item = item.replaceAll("([\\\"\\)\\(\\<\\>\\.\\@\\#\\]\\[\\{\\}])", "\\\\$1"); } automatonMap.put(item, new RegExp(prefix + MtasToken.DELIMITER + item + "\u0000*") .toAutomaton()); } } return automatonMap; }
[ "public", "static", "Map", "<", "String", ",", "Automaton", ">", "createAutomatonMap", "(", "String", "prefix", ",", "List", "<", "String", ">", "valueList", ",", "Boolean", "filter", ")", "{", "HashMap", "<", "String", ",", "Automaton", ">", "automatonMap", "=", "new", "HashMap", "<>", "(", ")", ";", "if", "(", "valueList", "!=", "null", ")", "{", "for", "(", "String", "item", ":", "valueList", ")", "{", "if", "(", "filter", ")", "{", "item", "=", "item", ".", "replaceAll", "(", "\"([\\\\\\\"\\\\)\\\\(\\\\<\\\\>\\\\.\\\\@\\\\#\\\\]\\\\[\\\\{\\\\}])\"", ",", "\"\\\\\\\\$1\"", ")", ";", "}", "automatonMap", ".", "put", "(", "item", ",", "new", "RegExp", "(", "prefix", "+", "MtasToken", ".", "DELIMITER", "+", "item", "+", "\"\\u0000*\"", ")", ".", "toAutomaton", "(", ")", ")", ";", "}", "}", "return", "automatonMap", ";", "}" ]
Creates the automaton map. @param prefix the prefix @param valueList the value list @param filter the filter @return the map
[ "Creates", "the", "automaton", "map", "." ]
f02ae730848616bd88b553efa7f9eddc32818e64
https://github.com/meertensinstituut/mtas/blob/f02ae730848616bd88b553efa7f9eddc32818e64/src/main/java/mtas/analysis/token/MtasToken.java#L738-L753
train