_id stringlengths 2 7 | title stringlengths 3 140 | partition stringclasses 3
values | text stringlengths 73 34.1k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
q10700 | gslbldnsentries.clear | train | public static base_response clear(nitro_service client) throws Exception {
gslbldnsentries clearresource = new gslbldnsentries();
return clearresource.perform_operation(client,"clear");
} | java | {
"resource": ""
} |
q10701 | gslbldnsentries.clear | train | public static base_responses clear(nitro_service client, gslbldnsentries resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
gslbldnsentries clearresources[] = new gslbldnsentries[resources.length];
for (int i=0;i<resources.length;i++){
clearresources[i] = new gslbldnsentries();
}
result = perform_operation_bulk_request(client, clearresources,"clear");
}
return result;
} | java | {
"resource": ""
} |
q10702 | gslbldnsentries.get | train | public static gslbldnsentries[] get(nitro_service service) throws Exception{
gslbldnsentries obj = new gslbldnsentries();
gslbldnsentries[] response = (gslbldnsentries[])obj.get_resources(service);
return response;
} | java | {
"resource": ""
} |
q10703 | AutomatonInstance.doClone | train | public AutomatonInstance doClone() {
AutomatonInstance clone = new AutomatonInstance(this.automatonEng, this.current, this.instanceId, this.safeGuard);
clone.failed = this.failed;
clone.transitionCount = this.transitionCount;
clone.failCount = this.failCount;
clone.iterateCount = this.iterateCount;
clone.backtrackCount = this.backtrackCount;
clone.trace = new LinkedList<>();
for(StateExploration se:this.trace) {
clone.trace.add(se.doClone());
}
return clone;
} | java | {
"resource": ""
} |
q10704 | clusternodegroup.add | train | public static base_response add(nitro_service client, clusternodegroup resource) throws Exception {
clusternodegroup addresource = new clusternodegroup();
addresource.name = resource.name;
addresource.strict = resource.strict;
return addresource.add_resource(client);
} | java | {
"resource": ""
} |
q10705 | clusternodegroup.add | train | public static base_responses add(nitro_service client, clusternodegroup resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
clusternodegroup addresources[] = new clusternodegroup[resources.length];
for (int i=0;i<resources.length;i++){
addresources[i] = new clusternodegroup();
addresources[i].name = resources[i].name;
addresources[i].strict = resources[i].strict;
}
result = add_bulk_request(client, addresources);
}
return result;
} | java | {
"resource": ""
} |
q10706 | clusternodegroup.update | train | public static base_response update(nitro_service client, clusternodegroup resource) throws Exception {
clusternodegroup updateresource = new clusternodegroup();
updateresource.name = resource.name;
updateresource.strict = resource.strict;
return updateresource.update_resource(client);
} | java | {
"resource": ""
} |
q10707 | clusternodegroup.update | train | public static base_responses update(nitro_service client, clusternodegroup resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
clusternodegroup updateresources[] = new clusternodegroup[resources.length];
for (int i=0;i<resources.length;i++){
updateresources[i] = new clusternodegroup();
updateresources[i].name = resources[i].name;
updateresources[i].strict = resources[i].strict;
}
result = update_bulk_request(client, updateresources);
}
return result;
} | java | {
"resource": ""
} |
q10708 | clusternodegroup.unset | train | public static base_responses unset(nitro_service client, String name[], String args[]) throws Exception {
base_responses result = null;
if (name != null && name.length > 0) {
clusternodegroup unsetresources[] = new clusternodegroup[name.length];
for (int i=0;i<name.length;i++){
unsetresources[i] = new clusternodegroup();
unsetresources[i].name = name[i];
}
result = unset_bulk_request(client, unsetresources,args);
}
return result;
} | java | {
"resource": ""
} |
q10709 | clusternodegroup.get | train | public static clusternodegroup[] get(nitro_service service) throws Exception{
clusternodegroup obj = new clusternodegroup();
clusternodegroup[] response = (clusternodegroup[])obj.get_resources(service);
return response;
} | java | {
"resource": ""
} |
q10710 | clusternodegroup.get | train | public static clusternodegroup get(nitro_service service, String name) throws Exception{
clusternodegroup obj = new clusternodegroup();
obj.set_name(name);
clusternodegroup response = (clusternodegroup) obj.get_resource(service);
return response;
} | java | {
"resource": ""
} |
q10711 | Haikunator.haikunate | train | public String haikunate() {
if (tokenHex) {
tokenChars = "0123456789abcdef";
}
String adjective = randomString(adjectives);
String noun = randomString(nouns);
StringBuilder token = new StringBuilder();
if (tokenChars != null && tokenChars.length() > 0) {
for (int i = 0; i < tokenLength; i++) {
token.append(tokenChars.charAt(random.nextInt(tokenChars.length())));
}
}
return Stream.of(adjective, noun, token.toString())
.filter(s -> s != null && !s.isEmpty())
.collect(joining(delimiter));
} | java | {
"resource": ""
} |
q10712 | Haikunator.randomString | train | private String randomString(String[] s) {
if (s == null || s.length <= 0) return "";
return s[this.random.nextInt(s.length)];
} | java | {
"resource": ""
} |
q10713 | systemeventhistory.get | train | public static systemeventhistory[] get(nitro_service service, systemeventhistory_args args) throws Exception{
systemeventhistory obj = new systemeventhistory();
options option = new options();
option.set_args(nitro_util.object_to_string_withoutquotes(args));
systemeventhistory[] response = (systemeventhistory[])obj.get_resources(service, option);
return response;
} | java | {
"resource": ""
} |
q10714 | PunctEquivalenceClasser.getPunctClass | train | public static String getPunctClass(String punc) {
if(punc.equals("%") || punc.equals("-PLUS-"))//-PLUS- is an escape for "+" in the ATB
return "perc";
else if(punc.startsWith("*"))
return "bullet";
else if(sfClass.contains(punc))
return "sf";
else if(colonClass.contains(punc) || pEllipsis.matcher(punc).matches())
return "colon";
else if(commaClass.contains(punc))
return "comma";
else if(currencyClass.contains(punc))
return "curr";
else if(slashClass.contains(punc))
return "slash";
else if(lBracketClass.contains(punc))
return "lrb";
else if(rBracketClass.contains(punc))
return "rrb";
else if(quoteClass.contains(punc))
return "quote";
return "";
} | java | {
"resource": ""
} |
q10715 | vpnclientlessaccesspolicy_binding.get | train | public static vpnclientlessaccesspolicy_binding get(nitro_service service, String name) throws Exception{
vpnclientlessaccesspolicy_binding obj = new vpnclientlessaccesspolicy_binding();
obj.set_name(name);
vpnclientlessaccesspolicy_binding response = (vpnclientlessaccesspolicy_binding) obj.get_resource(service);
return response;
} | java | {
"resource": ""
} |
q10716 | crvserver_policymap_binding.get | train | public static crvserver_policymap_binding[] get(nitro_service service, String name) throws Exception{
crvserver_policymap_binding obj = new crvserver_policymap_binding();
obj.set_name(name);
crvserver_policymap_binding response[] = (crvserver_policymap_binding[]) obj.get_resources(service);
return response;
} | java | {
"resource": ""
} |
q10717 | dnsnsecrec.get | train | public static dnsnsecrec[] get(nitro_service service) throws Exception{
dnsnsecrec obj = new dnsnsecrec();
dnsnsecrec[] response = (dnsnsecrec[])obj.get_resources(service);
return response;
} | java | {
"resource": ""
} |
q10718 | dnsnsecrec.get | train | public static dnsnsecrec[] get(nitro_service service, dnsnsecrec_args args) throws Exception{
dnsnsecrec obj = new dnsnsecrec();
options option = new options();
option.set_args(nitro_util.object_to_string_withoutquotes(args));
dnsnsecrec[] response = (dnsnsecrec[])obj.get_resources(service, option);
return response;
} | java | {
"resource": ""
} |
q10719 | dnsnsecrec.get | train | public static dnsnsecrec get(nitro_service service, String hostname) throws Exception{
dnsnsecrec obj = new dnsnsecrec();
obj.set_hostname(hostname);
dnsnsecrec response = (dnsnsecrec) obj.get_resource(service);
return response;
} | java | {
"resource": ""
} |
q10720 | dnsnsecrec.get | train | public static dnsnsecrec[] get(nitro_service service, String hostname[]) throws Exception{
if (hostname !=null && hostname.length>0) {
dnsnsecrec response[] = new dnsnsecrec[hostname.length];
dnsnsecrec obj[] = new dnsnsecrec[hostname.length];
for (int i=0;i<hostname.length;i++) {
obj[i] = new dnsnsecrec();
obj[i].set_hostname(hostname[i]);
response[i] = (dnsnsecrec) obj[i].get_resource(service);
}
return response;
}
return null;
} | java | {
"resource": ""
} |
q10721 | Sets.diff | train | public static <E> Set<E> diff(Set<E> s1, Set<E> s2) {
Set<E> s = new HashSet<E>();
for (E o : s1) {
if (!s2.contains(o)) {
s.add(o);
}
}
return s;
} | java | {
"resource": ""
} |
q10722 | Sets.union | train | public static <E> Set<E> union(Set<E> s1, Set<E> s2) {
Set<E> s = new HashSet<E>();
s.addAll(s1);
s.addAll(s2);
return s;
} | java | {
"resource": ""
} |
q10723 | Sets.intersection | train | public static <E> Set<E> intersection(Set<E> s1, Set<E> s2) {
Set<E> s = new HashSet<E>();
s.addAll(s1);
s.retainAll(s2);
return s;
} | java | {
"resource": ""
} |
q10724 | IntervalRBTree.updateMaxMin | train | private void updateMaxMin(IntervalRBTreeNode<T> n, IntervalRBTreeNode<T> c) {
if (c != null) {
if (n.max < c.max) {
n.max = c.max;
}
if (n.min > c.min) {
n.min = c.min;
}
}
} | java | {
"resource": ""
} |
q10725 | IntervalRBTree.setMaxMin | train | private void setMaxMin(IntervalRBTreeNode<T> n) {
n.min = n.left;
n.max = n.right;
if (n.leftChild != null) {
n.min = Math.min(n.min, n.leftChild.min);
n.max = Math.max(n.max, n.leftChild.max);
}
if (n.rightChild != null) {
n.min = Math.min(n.min, n.rightChild.min);
n.max = Math.max(n.max, n.rightChild.max);
}
} | java | {
"resource": ""
} |
q10726 | appflowglobal_binding.get | train | public static appflowglobal_binding get(nitro_service service) throws Exception{
appflowglobal_binding obj = new appflowglobal_binding();
appflowglobal_binding response = (appflowglobal_binding) obj.get_resource(service);
return response;
} | java | {
"resource": ""
} |
q10727 | authenticationvserver_authenticationcertpolicy_binding.get | train | public static authenticationvserver_authenticationcertpolicy_binding[] get(nitro_service service, String name) throws Exception{
authenticationvserver_authenticationcertpolicy_binding obj = new authenticationvserver_authenticationcertpolicy_binding();
obj.set_name(name);
authenticationvserver_authenticationcertpolicy_binding response[] = (authenticationvserver_authenticationcertpolicy_binding[]) obj.get_resources(service);
return response;
} | java | {
"resource": ""
} |
q10728 | reboot.Reboot | train | public static base_response Reboot(nitro_service client, reboot resource) throws Exception {
reboot Rebootresource = new reboot();
Rebootresource.warm = resource.warm;
return Rebootresource.perform_operation(client);
} | java | {
"resource": ""
} |
q10729 | policydataset_value_binding.get | train | public static policydataset_value_binding[] get(nitro_service service, String name) throws Exception{
policydataset_value_binding obj = new policydataset_value_binding();
obj.set_name(name);
policydataset_value_binding response[] = (policydataset_value_binding[]) obj.get_resources(service);
return response;
} | java | {
"resource": ""
} |
q10730 | authenticationvserver_binding.get | train | public static authenticationvserver_binding get(nitro_service service, String name) throws Exception{
authenticationvserver_binding obj = new authenticationvserver_binding();
obj.set_name(name);
authenticationvserver_binding response = (authenticationvserver_binding) obj.get_resource(service);
return response;
} | java | {
"resource": ""
} |
q10731 | appqoepolicy.get | train | public static appqoepolicy[] get(nitro_service service) throws Exception{
appqoepolicy obj = new appqoepolicy();
appqoepolicy[] response = (appqoepolicy[])obj.get_resources(service);
return response;
} | java | {
"resource": ""
} |
q10732 | appqoepolicy.get | train | public static appqoepolicy get(nitro_service service, String name) throws Exception{
appqoepolicy obj = new appqoepolicy();
obj.set_name(name);
appqoepolicy response = (appqoepolicy) obj.get_resource(service);
return response;
} | java | {
"resource": ""
} |
q10733 | appqoepolicy.get_filtered | train | public static appqoepolicy[] get_filtered(nitro_service service, filtervalue[] filter) throws Exception{
appqoepolicy obj = new appqoepolicy();
options option = new options();
option.set_filter(filter);
appqoepolicy[] response = (appqoepolicy[]) obj.getfiltered(service, option);
return response;
} | java | {
"resource": ""
} |
q10734 | bridgegroup_nsip_binding.get | train | public static bridgegroup_nsip_binding[] get(nitro_service service, Long id) throws Exception{
bridgegroup_nsip_binding obj = new bridgegroup_nsip_binding();
obj.set_id(id);
bridgegroup_nsip_binding response[] = (bridgegroup_nsip_binding[]) obj.get_resources(service);
return response;
} | java | {
"resource": ""
} |
q10735 | gslbservice_stats.get | train | public static gslbservice_stats[] get(nitro_service service) throws Exception{
gslbservice_stats obj = new gslbservice_stats();
gslbservice_stats[] response = (gslbservice_stats[])obj.stat_resources(service);
return response;
} | java | {
"resource": ""
} |
q10736 | gslbservice_stats.get | train | public static gslbservice_stats get(nitro_service service, String servicename) throws Exception{
gslbservice_stats obj = new gslbservice_stats();
obj.set_servicename(servicename);
gslbservice_stats response = (gslbservice_stats) obj.stat_resource(service);
return response;
} | java | {
"resource": ""
} |
q10737 | sslpolicylabel.get | train | public static sslpolicylabel[] get(nitro_service service) throws Exception{
sslpolicylabel obj = new sslpolicylabel();
sslpolicylabel[] response = (sslpolicylabel[])obj.get_resources(service);
return response;
} | java | {
"resource": ""
} |
q10738 | sslpolicylabel.get | train | public static sslpolicylabel get(nitro_service service, String labelname) throws Exception{
sslpolicylabel obj = new sslpolicylabel();
obj.set_labelname(labelname);
sslpolicylabel response = (sslpolicylabel) obj.get_resource(service);
return response;
} | java | {
"resource": ""
} |
q10739 | sslcertlink.get | train | public static sslcertlink[] get(nitro_service service) throws Exception{
sslcertlink obj = new sslcertlink();
sslcertlink[] response = (sslcertlink[])obj.get_resources(service);
return response;
} | java | {
"resource": ""
} |
q10740 | MtasSpanSequenceSpans.computeCosts | train | private void computeCosts() {
cost = Long.MAX_VALUE;
for (QueueItem item : queueSpans) {
cost = Math.min(cost, item.sequenceSpans.spans.cost());
}
} | java | {
"resource": ""
} |
q10741 | MtasSpanSequenceSpans.fillQueue | train | private void fillQueue(QueueItem item, Integer minStartPosition,
Integer maxStartPosition, Integer minEndPosition) throws IOException {
int newStartPosition;
int newEndPosition;
Integer firstRetrievedPosition = null;
// remove everything below minStartPosition
if ((minStartPosition != null) && (item.lowestPosition != null)
&& (item.lowestPosition < minStartPosition)) {
item.del((minStartPosition - 1));
}
// fill queue
while (!item.noMorePositions) {
boolean doNotCollectAnotherPosition;
doNotCollectAnotherPosition = item.filledPosition
&& (minStartPosition == null) && (maxStartPosition == null);
doNotCollectAnotherPosition |= item.filledPosition
&& (maxStartPosition != null) && (item.lastRetrievedPosition != null)
&& (maxStartPosition < item.lastRetrievedPosition);
if (doNotCollectAnotherPosition) {
return;
} else {
// collect another full position
firstRetrievedPosition = null;
while (!item.noMorePositions) {
newStartPosition = item.sequenceSpans.spans.nextStartPosition();
if (newStartPosition == NO_MORE_POSITIONS) {
if (!item.queue.isEmpty()) {
item.filledPosition = true;
item.lastFilledPosition = item.lastRetrievedPosition;
}
item.noMorePositions = true;
return;
} else if ((minStartPosition != null)
&& (newStartPosition < minStartPosition)) {
// do nothing
} else {
newEndPosition = item.sequenceSpans.spans.endPosition();
if ((minEndPosition == null) || (newEndPosition >= minEndPosition
- ignoreItem.getMinStartPosition(docId, newEndPosition))) {
item.add(newStartPosition, newEndPosition);
if (firstRetrievedPosition == null) {
firstRetrievedPosition = newStartPosition;
} else if (!firstRetrievedPosition.equals(newStartPosition)) {
break;
}
}
}
}
}
}
} | java | {
"resource": ""
} |
q10742 | appfwprofile_stats.get | train | public static appfwprofile_stats[] get(nitro_service service) throws Exception{
appfwprofile_stats obj = new appfwprofile_stats();
appfwprofile_stats[] response = (appfwprofile_stats[])obj.stat_resources(service);
return response;
} | java | {
"resource": ""
} |
q10743 | appfwprofile_stats.get | train | public static appfwprofile_stats get(nitro_service service, String name) throws Exception{
appfwprofile_stats obj = new appfwprofile_stats();
obj.set_name(name);
appfwprofile_stats response = (appfwprofile_stats) obj.stat_resource(service);
return response;
} | java | {
"resource": ""
} |
q10744 | LogPrior.intToType | train | private static LogPriorType intToType(int intPrior) {
LogPriorType[] values = LogPriorType.values();
for (LogPriorType val : values) {
if (val.ordinal() == intPrior) {
return val;
}
}
throw new IllegalArgumentException(intPrior + " is not a legal LogPrior.");
} | java | {
"resource": ""
} |
q10745 | sslpkcs12.convert | train | public static base_response convert(nitro_service client, sslpkcs12 resource) throws Exception {
sslpkcs12 convertresource = new sslpkcs12();
convertresource.outfile = resource.outfile;
convertresource.Import = resource.Import;
convertresource.pkcs12file = resource.pkcs12file;
convertresource.des = resource.des;
convertresource.des3 = resource.des3;
convertresource.export = resource.export;
convertresource.certfile = resource.certfile;
convertresource.keyfile = resource.keyfile;
convertresource.password = resource.password;
convertresource.pempassphrase = resource.pempassphrase;
return convertresource.perform_operation(client,"convert");
} | java | {
"resource": ""
} |
q10746 | protocolhttpband.update | train | public static base_response update(nitro_service client, protocolhttpband resource) throws Exception {
protocolhttpband updateresource = new protocolhttpband();
updateresource.reqbandsize = resource.reqbandsize;
updateresource.respbandsize = resource.respbandsize;
return updateresource.update_resource(client);
} | java | {
"resource": ""
} |
q10747 | protocolhttpband.unset | train | public static base_response unset(nitro_service client, protocolhttpband resource, String[] args) throws Exception{
protocolhttpband unsetresource = new protocolhttpband();
return unsetresource.unset_resource(client,args);
} | java | {
"resource": ""
} |
q10748 | protocolhttpband.get | train | public static protocolhttpband[] get(nitro_service service, protocolhttpband_args args) throws Exception{
protocolhttpband obj = new protocolhttpband();
options option = new options();
option.set_args(nitro_util.object_to_string_withoutquotes(args));
protocolhttpband[] response = (protocolhttpband[])obj.get_resources(service, option);
return response;
} | java | {
"resource": ""
} |
q10749 | authenticationldappolicy_vpnglobal_binding.get | train | public static authenticationldappolicy_vpnglobal_binding[] get(nitro_service service, String name) throws Exception{
authenticationldappolicy_vpnglobal_binding obj = new authenticationldappolicy_vpnglobal_binding();
obj.set_name(name);
authenticationldappolicy_vpnglobal_binding response[] = (authenticationldappolicy_vpnglobal_binding[]) obj.get_resources(service);
return response;
} | java | {
"resource": ""
} |
q10750 | hafailover.Force | train | public static base_response Force(nitro_service client, hafailover resource) throws Exception {
hafailover Forceresource = new hafailover();
Forceresource.force = resource.force;
return Forceresource.perform_operation(client,"Force");
} | java | {
"resource": ""
} |
q10751 | aaapreauthenticationpolicy_binding.get | train | public static aaapreauthenticationpolicy_binding get(nitro_service service, String name) throws Exception{
aaapreauthenticationpolicy_binding obj = new aaapreauthenticationpolicy_binding();
obj.set_name(name);
aaapreauthenticationpolicy_binding response = (aaapreauthenticationpolicy_binding) obj.get_resource(service);
return response;
} | java | {
"resource": ""
} |
q10752 | AbstractDocument.numericEquals | train | protected static boolean numericEquals(Field vector1, Field vector2) {
if (vector1.size() != vector2.size())
return false;
if (vector1.isEmpty())
return true;
Iterator<Object> it1 = vector1.iterator();
Iterator<Object> it2 = vector2.iterator();
while (it1.hasNext()) {
Object obj1 = it1.next();
Object obj2 = it2.next();
if (!(obj1 instanceof Number && obj2 instanceof Number))
return false;
if (((Number) obj1).doubleValue() != ((Number) obj2).doubleValue())
return false;
}
return true;
} | java | {
"resource": ""
} |
q10753 | AbstractDocument.setFieldIfNecessary | train | protected boolean setFieldIfNecessary(String field, Object value) {
if (!isOpen())
throw new ClosedObjectException("The Document object is closed.");
if (!compareFieldValue(field, value)) {
_doc.setField(field, value);
return true;
}
return false;
} | java | {
"resource": ""
} |
q10754 | appflowpolicy_appflowglobal_binding.get | train | public static appflowpolicy_appflowglobal_binding[] get(nitro_service service, String name) throws Exception{
appflowpolicy_appflowglobal_binding obj = new appflowpolicy_appflowglobal_binding();
obj.set_name(name);
appflowpolicy_appflowglobal_binding response[] = (appflowpolicy_appflowglobal_binding[]) obj.get_resources(service);
return response;
} | java | {
"resource": ""
} |
q10755 | lbroute.add | train | public static base_response add(nitro_service client, lbroute resource) throws Exception {
lbroute addresource = new lbroute();
addresource.network = resource.network;
addresource.netmask = resource.netmask;
addresource.gatewayname = resource.gatewayname;
return addresource.add_resource(client);
} | java | {
"resource": ""
} |
q10756 | lbroute.delete | train | public static base_response delete(nitro_service client, lbroute resource) throws Exception {
lbroute deleteresource = new lbroute();
deleteresource.network = resource.network;
deleteresource.netmask = resource.netmask;
return deleteresource.delete_resource(client);
} | java | {
"resource": ""
} |
q10757 | lbroute.get | train | public static lbroute[] get(nitro_service service) throws Exception{
lbroute obj = new lbroute();
lbroute[] response = (lbroute[])obj.get_resources(service);
return response;
} | java | {
"resource": ""
} |
q10758 | nsip6.add | train | public static base_response add(nitro_service client, nsip6 resource) throws Exception {
nsip6 addresource = new nsip6();
addresource.ipv6address = resource.ipv6address;
addresource.scope = resource.scope;
addresource.type = resource.type;
addresource.vlan = resource.vlan;
addresource.nd = resource.nd;
addresource.icmp = resource.icmp;
addresource.vserver = resource.vserver;
addresource.telnet = resource.telnet;
addresource.ftp = resource.ftp;
addresource.gui = resource.gui;
addresource.ssh = resource.ssh;
addresource.snmp = resource.snmp;
addresource.mgmtaccess = resource.mgmtaccess;
addresource.restrictaccess = resource.restrictaccess;
addresource.dynamicrouting = resource.dynamicrouting;
addresource.hostroute = resource.hostroute;
addresource.ip6hostrtgw = resource.ip6hostrtgw;
addresource.metric = resource.metric;
addresource.vserverrhilevel = resource.vserverrhilevel;
addresource.ospf6lsatype = resource.ospf6lsatype;
addresource.ospfarea = resource.ospfarea;
addresource.state = resource.state;
addresource.map = resource.map;
addresource.ownernode = resource.ownernode;
addresource.td = resource.td;
return addresource.add_resource(client);
} | java | {
"resource": ""
} |
q10759 | nsip6.add | train | public static base_responses add(nitro_service client, nsip6 resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
nsip6 addresources[] = new nsip6[resources.length];
for (int i=0;i<resources.length;i++){
addresources[i] = new nsip6();
addresources[i].ipv6address = resources[i].ipv6address;
addresources[i].scope = resources[i].scope;
addresources[i].type = resources[i].type;
addresources[i].vlan = resources[i].vlan;
addresources[i].nd = resources[i].nd;
addresources[i].icmp = resources[i].icmp;
addresources[i].vserver = resources[i].vserver;
addresources[i].telnet = resources[i].telnet;
addresources[i].ftp = resources[i].ftp;
addresources[i].gui = resources[i].gui;
addresources[i].ssh = resources[i].ssh;
addresources[i].snmp = resources[i].snmp;
addresources[i].mgmtaccess = resources[i].mgmtaccess;
addresources[i].restrictaccess = resources[i].restrictaccess;
addresources[i].dynamicrouting = resources[i].dynamicrouting;
addresources[i].hostroute = resources[i].hostroute;
addresources[i].ip6hostrtgw = resources[i].ip6hostrtgw;
addresources[i].metric = resources[i].metric;
addresources[i].vserverrhilevel = resources[i].vserverrhilevel;
addresources[i].ospf6lsatype = resources[i].ospf6lsatype;
addresources[i].ospfarea = resources[i].ospfarea;
addresources[i].state = resources[i].state;
addresources[i].map = resources[i].map;
addresources[i].ownernode = resources[i].ownernode;
addresources[i].td = resources[i].td;
}
result = add_bulk_request(client, addresources);
}
return result;
} | java | {
"resource": ""
} |
q10760 | nsip6.delete | train | public static base_response delete(nitro_service client, String ipv6address) throws Exception {
nsip6 deleteresource = new nsip6();
deleteresource.ipv6address = ipv6address;
return deleteresource.delete_resource(client);
} | java | {
"resource": ""
} |
q10761 | nsip6.delete | train | public static base_response delete(nitro_service client, nsip6 resource) throws Exception {
nsip6 deleteresource = new nsip6();
deleteresource.ipv6address = resource.ipv6address;
deleteresource.td = resource.td;
return deleteresource.delete_resource(client);
} | java | {
"resource": ""
} |
q10762 | nsip6.delete | train | public static base_responses delete(nitro_service client, String ipv6address[]) throws Exception {
base_responses result = null;
if (ipv6address != null && ipv6address.length > 0) {
nsip6 deleteresources[] = new nsip6[ipv6address.length];
for (int i=0;i<ipv6address.length;i++){
deleteresources[i] = new nsip6();
deleteresources[i].ipv6address = ipv6address[i];
}
result = delete_bulk_request(client, deleteresources);
}
return result;
} | java | {
"resource": ""
} |
q10763 | nsip6.delete | train | public static base_responses delete(nitro_service client, nsip6 resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
nsip6 deleteresources[] = new nsip6[resources.length];
for (int i=0;i<resources.length;i++){
deleteresources[i] = new nsip6();
deleteresources[i].ipv6address = resources[i].ipv6address;
deleteresources[i].td = resources[i].td;
}
result = delete_bulk_request(client, deleteresources);
}
return result;
} | java | {
"resource": ""
} |
q10764 | nsip6.update | train | public static base_response update(nitro_service client, nsip6 resource) throws Exception {
nsip6 updateresource = new nsip6();
updateresource.ipv6address = resource.ipv6address;
updateresource.td = resource.td;
updateresource.nd = resource.nd;
updateresource.icmp = resource.icmp;
updateresource.vserver = resource.vserver;
updateresource.telnet = resource.telnet;
updateresource.ftp = resource.ftp;
updateresource.gui = resource.gui;
updateresource.ssh = resource.ssh;
updateresource.snmp = resource.snmp;
updateresource.mgmtaccess = resource.mgmtaccess;
updateresource.restrictaccess = resource.restrictaccess;
updateresource.state = resource.state;
updateresource.map = resource.map;
updateresource.dynamicrouting = resource.dynamicrouting;
updateresource.hostroute = resource.hostroute;
updateresource.ip6hostrtgw = resource.ip6hostrtgw;
updateresource.metric = resource.metric;
updateresource.vserverrhilevel = resource.vserverrhilevel;
updateresource.ospf6lsatype = resource.ospf6lsatype;
updateresource.ospfarea = resource.ospfarea;
return updateresource.update_resource(client);
} | java | {
"resource": ""
} |
q10765 | nsip6.update | train | public static base_responses update(nitro_service client, nsip6 resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
nsip6 updateresources[] = new nsip6[resources.length];
for (int i=0;i<resources.length;i++){
updateresources[i] = new nsip6();
updateresources[i].ipv6address = resources[i].ipv6address;
updateresources[i].td = resources[i].td;
updateresources[i].nd = resources[i].nd;
updateresources[i].icmp = resources[i].icmp;
updateresources[i].vserver = resources[i].vserver;
updateresources[i].telnet = resources[i].telnet;
updateresources[i].ftp = resources[i].ftp;
updateresources[i].gui = resources[i].gui;
updateresources[i].ssh = resources[i].ssh;
updateresources[i].snmp = resources[i].snmp;
updateresources[i].mgmtaccess = resources[i].mgmtaccess;
updateresources[i].restrictaccess = resources[i].restrictaccess;
updateresources[i].state = resources[i].state;
updateresources[i].map = resources[i].map;
updateresources[i].dynamicrouting = resources[i].dynamicrouting;
updateresources[i].hostroute = resources[i].hostroute;
updateresources[i].ip6hostrtgw = resources[i].ip6hostrtgw;
updateresources[i].metric = resources[i].metric;
updateresources[i].vserverrhilevel = resources[i].vserverrhilevel;
updateresources[i].ospf6lsatype = resources[i].ospf6lsatype;
updateresources[i].ospfarea = resources[i].ospfarea;
}
result = update_bulk_request(client, updateresources);
}
return result;
} | java | {
"resource": ""
} |
q10766 | nsip6.unset | train | public static base_response unset(nitro_service client, nsip6 resource, String[] args) throws Exception{
nsip6 unsetresource = new nsip6();
unsetresource.ipv6address = resource.ipv6address;
unsetresource.td = resource.td;
return unsetresource.unset_resource(client,args);
} | java | {
"resource": ""
} |
q10767 | nsip6.get | train | public static nsip6[] get(nitro_service service) throws Exception{
nsip6 obj = new nsip6();
nsip6[] response = (nsip6[])obj.get_resources(service);
return response;
} | java | {
"resource": ""
} |
q10768 | MultiClassPrecisionRecallExtendedStats.getAccuracyInfo | train | public Triple<Double, Integer, Integer> getAccuracyInfo()
{
int totalCorrect = tokensCorrect;
int totalWrong = tokensCount - tokensCorrect;
return new Triple<Double, Integer, Integer>((((double) totalCorrect) / tokensCount),
totalCorrect, totalWrong);
} | java | {
"resource": ""
} |
q10769 | MultiClassPrecisionRecallExtendedStats.getAccuracyDescription | train | public String getAccuracyDescription(int numDigits) {
NumberFormat nf = NumberFormat.getNumberInstance();
nf.setMaximumFractionDigits(numDigits);
Triple<Double, Integer, Integer> accu = getAccuracyInfo();
return nf.format(accu.first()) + " (" + accu.second() + "/" + (accu.second() + accu.third()) + ")";
} | java | {
"resource": ""
} |
q10770 | TwoDimensionalCounter.setCounter | train | public ClassicCounter<K2> setCounter(K1 o, Counter<K2> c) {
ClassicCounter<K2> old = getCounter(o);
total -= old.totalCount();
if (c instanceof ClassicCounter) {
map.put(o, (ClassicCounter<K2>) c);
} else {
map.put(o, new ClassicCounter<K2>(c));
}
total += c.totalCount();
return old;
} | java | {
"resource": ""
} |
q10771 | TwoDimensionalCounter.reverseIndexOrder | train | @SuppressWarnings( { "unchecked" })
public static <K1, K2> TwoDimensionalCounter<K2, K1> reverseIndexOrder(TwoDimensionalCounter<K1, K2> cc) {
// they typing on the outerMF is violated a bit, but it'll work....
TwoDimensionalCounter<K2, K1> result = new TwoDimensionalCounter<K2, K1>((MapFactory) cc.outerMF,
(MapFactory) cc.innerMF);
for (K1 key1 : cc.firstKeySet()) {
ClassicCounter<K2> c = cc.getCounter(key1);
for (K2 key2 : c.keySet()) {
double count = c.getCount(key2);
result.setCount(key2, key1, count);
}
}
return result;
} | java | {
"resource": ""
} |
q10772 | TwoDimensionalCounter.sumInnerCounter | train | public Counter<K1> sumInnerCounter() {
Counter<K1> summed = new ClassicCounter<K1>();
for (K1 key : this.firstKeySet()) {
summed.incrementCount(key, this.getCounter(key).totalCount());
}
return summed;
} | java | {
"resource": ""
} |
q10773 | appfwpolicylabel_binding.get | train | public static appfwpolicylabel_binding get(nitro_service service, String labelname) throws Exception{
appfwpolicylabel_binding obj = new appfwpolicylabel_binding();
obj.set_labelname(labelname);
appfwpolicylabel_binding response = (appfwpolicylabel_binding) obj.get_resource(service);
return response;
} | java | {
"resource": ""
} |
q10774 | ssldhparam.create | train | public static base_response create(nitro_service client, ssldhparam resource) throws Exception {
ssldhparam createresource = new ssldhparam();
createresource.dhfile = resource.dhfile;
createresource.bits = resource.bits;
createresource.gen = resource.gen;
return createresource.perform_operation(client,"create");
} | java | {
"resource": ""
} |
q10775 | auditnslogpolicy_vpnvserver_binding.get | train | public static auditnslogpolicy_vpnvserver_binding[] get(nitro_service service, String name) throws Exception{
auditnslogpolicy_vpnvserver_binding obj = new auditnslogpolicy_vpnvserver_binding();
obj.set_name(name);
auditnslogpolicy_vpnvserver_binding response[] = (auditnslogpolicy_vpnvserver_binding[]) obj.get_resources(service);
return response;
} | java | {
"resource": ""
} |
q10776 | authenticationvserver_authenticationtacacspolicy_binding.get | train | public static authenticationvserver_authenticationtacacspolicy_binding[] get(nitro_service service, String name) throws Exception{
authenticationvserver_authenticationtacacspolicy_binding obj = new authenticationvserver_authenticationtacacspolicy_binding();
obj.set_name(name);
authenticationvserver_authenticationtacacspolicy_binding response[] = (authenticationvserver_authenticationtacacspolicy_binding[]) obj.get_resources(service);
return response;
} | java | {
"resource": ""
} |
q10777 | vpntrafficpolicy_aaagroup_binding.get | train | public static vpntrafficpolicy_aaagroup_binding[] get(nitro_service service, String name) throws Exception{
vpntrafficpolicy_aaagroup_binding obj = new vpntrafficpolicy_aaagroup_binding();
obj.set_name(name);
vpntrafficpolicy_aaagroup_binding response[] = (vpntrafficpolicy_aaagroup_binding[]) obj.get_resources(service);
return response;
} | java | {
"resource": ""
} |
q10778 | Sentence.listToString | train | public static <T> String listToString(List<T> list, final boolean justValue) {
return listToString(list, justValue, null);
} | java | {
"resource": ""
} |
q10779 | Sentence.listToString | train | public static <T> String listToString(List<T> list, final boolean justValue,
final String separator) {
StringBuilder s = new StringBuilder();
for (Iterator<T> wordIterator = list.iterator(); wordIterator.hasNext();) {
T o = wordIterator.next();
s.append(wordToString(o, justValue, separator));
if (wordIterator.hasNext()) {
s.append(' ');
}
}
return s.toString();
} | java | {
"resource": ""
} |
q10780 | CMMClassifier.getTags | train | public Set<String> getTags() {
Set<String> tags = new HashSet<String>(classIndex.objectsList());
tags.remove(flags.backgroundSymbol);
return tags;
} | java | {
"resource": ""
} |
q10781 | CMMClassifier.classOf | train | protected String classOf(List<IN> lineInfos, int pos) {
Datum<String, String> d = makeDatum(lineInfos, pos, featureFactory);
return classifier.classOf(d);
} | java | {
"resource": ""
} |
q10782 | CMMClassifier.loglikelihood | train | public double loglikelihood(List<IN> lineInfos) {
double cll = 0.0;
for (int i = 0; i < lineInfos.size(); i++) {
Datum<String, String> d = makeDatum(lineInfos, i, featureFactory);
Counter<String> c = classifier.logProbabilityOf(d);
double total = Double.NEGATIVE_INFINITY;
for (String s : c.keySet()) {
total = SloppyMath.logAdd(total, c.getCount(s));
}
cll -= c.getCount(d.label()) - total;
}
// quadratic prior
// HN: TODO: add other priors
if (classifier instanceof LinearClassifier) {
double sigmaSq = flags.sigma * flags.sigma;
LinearClassifier<String, String> lc = (LinearClassifier<String, String>)classifier;
for (String feature: lc.features()) {
for (String classLabel: classIndex) {
double w = lc.weight(feature, classLabel);
cll += w * w / 2.0 / sigmaSq;
}
}
}
return cll;
} | java | {
"resource": ""
} |
q10783 | CMMClassifier.getDataset | train | public Dataset<String, String> getDataset(Dataset<String, String> oldData, Index<String> goodFeatures) {
//public Dataset getDataset(List data, Collection goodFeatures) {
//makeAnswerArraysAndTagIndex(data);
int[][] oldDataArray = oldData.getDataArray();
int[] oldLabelArray = oldData.getLabelsArray();
Index<String> oldFeatureIndex = oldData.featureIndex;
int[] oldToNewFeatureMap = new int[oldFeatureIndex.size()];
int[][] newDataArray = new int[oldDataArray.length][];
System.err.print("Building reduced dataset...");
int size = oldFeatureIndex.size();
int max = 0;
for (int i = 0; i < size; i++) {
oldToNewFeatureMap[i] = goodFeatures.indexOf(oldFeatureIndex.get(i));
if (oldToNewFeatureMap[i] > max) {
max = oldToNewFeatureMap[i];
}
}
for (int i = 0; i < oldDataArray.length; i++) {
int[] data = oldDataArray[i];
size = 0;
for (int j = 0; j < data.length; j++) {
if (oldToNewFeatureMap[data[j]] > 0) {
size++;
}
}
int[] newData = new int[size];
int index = 0;
for (int j = 0; j < data.length; j++) {
int f = oldToNewFeatureMap[data[j]];
if (f > 0) {
newData[index++] = f;
}
}
newDataArray[i] = newData;
}
Dataset<String, String> train = new Dataset<String, String>(oldData.labelIndex, oldLabelArray, goodFeatures, newDataArray, newDataArray.length);
System.err.println("done.");
if (flags.featThreshFile != null) {
System.err.println("applying thresholds...");
List<Pair<Pattern,Integer>> thresh = getThresholds(flags.featThreshFile);
train.applyFeatureCountThreshold(thresh);
} else if (flags.featureThreshold > 1) {
System.err.println("Removing Features with counts < " + flags.featureThreshold);
train.applyFeatureCountThreshold(flags.featureThreshold);
}
train.summaryStatistics();
return train;
} | java | {
"resource": ""
} |
q10784 | CMMClassifier.makeDatum | train | public <T extends CoreLabel> Datum<String, String> makeDatum(List<IN> info, int loc, FeatureFactory featureFactory) {
PaddedList<IN> pInfo = new PaddedList<IN>(info, pad);
Collection<String> features = new ArrayList<String>();
List<Clique> cliques = featureFactory.getCliques();
for (Clique c : cliques) {
Collection<String> feats = featureFactory.getCliqueFeatures(pInfo, loc, c);
feats = addOtherClasses(feats, pInfo, loc, c);
features.addAll(feats);
}
printFeatures(pInfo.get(loc), features);
CoreLabel c = info.get(loc);
return new BasicDatum<String, String>(features, c.get(AnswerAnnotation.class));
} | java | {
"resource": ""
} |
q10785 | CMMClassifier.addOtherClasses | train | private static Collection<String> addOtherClasses(Collection<String> feats, List<? extends CoreLabel> info,
int loc, Clique c) {
String addend = null;
String pAnswer = info.get(loc - 1).get(AnswerAnnotation.class);
String p2Answer = info.get(loc - 2).get(AnswerAnnotation.class);
String p3Answer = info.get(loc - 3).get(AnswerAnnotation.class);
String p4Answer = info.get(loc - 4).get(AnswerAnnotation.class);
String p5Answer = info.get(loc - 5).get(AnswerAnnotation.class);
String nAnswer = info.get(loc + 1).get(AnswerAnnotation.class);
// cdm 2009: Is this really right? Do we not need to differentiate names that would collide???
if (c == FeatureFactory.cliqueCpC) {
addend = '|' + pAnswer;
} else if (c == FeatureFactory.cliqueCp2C) {
addend = '|' + p2Answer;
} else if (c == FeatureFactory.cliqueCp3C) {
addend = '|' + p3Answer;
} else if (c == FeatureFactory.cliqueCp4C) {
addend = '|' + p4Answer;
} else if (c == FeatureFactory.cliqueCp5C) {
addend = '|' + p5Answer;
} else if (c == FeatureFactory.cliqueCpCp2C) {
addend = '|' + pAnswer + '-' + p2Answer;
} else if (c == FeatureFactory.cliqueCpCp2Cp3C) {
addend = '|' + pAnswer + '-' + p2Answer + '-' + p3Answer;
} else if (c == FeatureFactory.cliqueCpCp2Cp3Cp4C) {
addend = '|' + pAnswer + '-' + p2Answer + '-' + p3Answer + '-' + p4Answer;
} else if (c == FeatureFactory.cliqueCpCp2Cp3Cp4Cp5C) {
addend = '|' + pAnswer + '-' + p2Answer + '-' + p3Answer + '-' + p4Answer + '-' + p5Answer;
} else if (c == FeatureFactory.cliqueCnC) {
addend = '|' + nAnswer;
} else if (c == FeatureFactory.cliqueCpCnC) {
addend = '|' + pAnswer + '-' + nAnswer;
}
if (addend == null) {
return feats;
}
Collection<String> newFeats = new HashSet<String>();
for (String feat : feats) {
String newFeat = feat + addend;
newFeats.add(newFeat);
}
return newFeats;
} | java | {
"resource": ""
} |
q10786 | CMMClassifier.main | train | public static void main(String[] args) throws Exception {
StringUtils.printErrInvocationString("CMMClassifier", args);
Properties props = StringUtils.argsToProperties(args);
CMMClassifier cmm = new CMMClassifier<CoreLabel>(props);
String testFile = cmm.flags.testFile;
String textFile = cmm.flags.textFile;
String loadPath = cmm.flags.loadClassifier;
String serializeTo = cmm.flags.serializeTo;
// cmm.crossValidateTrainAndTest(trainFile);
if (loadPath != null) {
cmm.loadClassifierNoExceptions(loadPath, props);
} else if (cmm.flags.loadJarClassifier != null) {
cmm.loadJarClassifier(cmm.flags.loadJarClassifier, props);
} else if (cmm.flags.trainFile != null) {
if (cmm.flags.biasedTrainFile != null) {
cmm.trainSemiSup();
} else {
cmm.train();
}
} else {
cmm.loadDefaultClassifier();
}
if (serializeTo != null) {
cmm.serializeClassifier(serializeTo);
}
if (testFile != null) {
cmm.classifyAndWriteAnswers(testFile, cmm.makeReaderAndWriter());
} else if (cmm.flags.testFiles != null) {
cmm.classifyAndWriteAnswers(cmm.flags.baseTestDir, cmm.flags.testFiles,
cmm.makeReaderAndWriter());
}
if (textFile != null) {
DocumentReaderAndWriter readerAndWriter =
new PlainTextDocumentReaderAndWriter();
cmm.classifyAndWriteAnswers(textFile, readerAndWriter);
}
} | java | {
"resource": ""
} |
q10787 | nspbr6_stats.get | train | public static nspbr6_stats[] get(nitro_service service, options option) throws Exception{
nspbr6_stats obj = new nspbr6_stats();
nspbr6_stats[] response = (nspbr6_stats[])obj.stat_resources(service,option);
return response;
} | java | {
"resource": ""
} |
q10788 | nspbr6_stats.get | train | public static nspbr6_stats get(nitro_service service, String name) throws Exception{
nspbr6_stats obj = new nspbr6_stats();
obj.set_name(name);
nspbr6_stats response = (nspbr6_stats) obj.stat_resource(service);
return response;
} | java | {
"resource": ""
} |
q10789 | gslbsite.add | train | public static base_response add(nitro_service client, gslbsite resource) throws Exception {
gslbsite addresource = new gslbsite();
addresource.sitename = resource.sitename;
addresource.sitetype = resource.sitetype;
addresource.siteipaddress = resource.siteipaddress;
addresource.publicip = resource.publicip;
addresource.metricexchange = resource.metricexchange;
addresource.nwmetricexchange = resource.nwmetricexchange;
addresource.sessionexchange = resource.sessionexchange;
addresource.triggermonitor = resource.triggermonitor;
addresource.parentsite = resource.parentsite;
return addresource.add_resource(client);
} | java | {
"resource": ""
} |
q10790 | gslbsite.add | train | public static base_responses add(nitro_service client, gslbsite resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
gslbsite addresources[] = new gslbsite[resources.length];
for (int i=0;i<resources.length;i++){
addresources[i] = new gslbsite();
addresources[i].sitename = resources[i].sitename;
addresources[i].sitetype = resources[i].sitetype;
addresources[i].siteipaddress = resources[i].siteipaddress;
addresources[i].publicip = resources[i].publicip;
addresources[i].metricexchange = resources[i].metricexchange;
addresources[i].nwmetricexchange = resources[i].nwmetricexchange;
addresources[i].sessionexchange = resources[i].sessionexchange;
addresources[i].triggermonitor = resources[i].triggermonitor;
addresources[i].parentsite = resources[i].parentsite;
}
result = add_bulk_request(client, addresources);
}
return result;
} | java | {
"resource": ""
} |
q10791 | gslbsite.delete | train | public static base_response delete(nitro_service client, String sitename) throws Exception {
gslbsite deleteresource = new gslbsite();
deleteresource.sitename = sitename;
return deleteresource.delete_resource(client);
} | java | {
"resource": ""
} |
q10792 | gslbsite.delete | train | public static base_responses delete(nitro_service client, String sitename[]) throws Exception {
base_responses result = null;
if (sitename != null && sitename.length > 0) {
gslbsite deleteresources[] = new gslbsite[sitename.length];
for (int i=0;i<sitename.length;i++){
deleteresources[i] = new gslbsite();
deleteresources[i].sitename = sitename[i];
}
result = delete_bulk_request(client, deleteresources);
}
return result;
} | java | {
"resource": ""
} |
q10793 | gslbsite.update | train | public static base_response update(nitro_service client, gslbsite resource) throws Exception {
gslbsite updateresource = new gslbsite();
updateresource.sitename = resource.sitename;
updateresource.metricexchange = resource.metricexchange;
updateresource.nwmetricexchange = resource.nwmetricexchange;
updateresource.sessionexchange = resource.sessionexchange;
updateresource.triggermonitor = resource.triggermonitor;
return updateresource.update_resource(client);
} | java | {
"resource": ""
} |
q10794 | gslbsite.update | train | public static base_responses update(nitro_service client, gslbsite resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
gslbsite updateresources[] = new gslbsite[resources.length];
for (int i=0;i<resources.length;i++){
updateresources[i] = new gslbsite();
updateresources[i].sitename = resources[i].sitename;
updateresources[i].metricexchange = resources[i].metricexchange;
updateresources[i].nwmetricexchange = resources[i].nwmetricexchange;
updateresources[i].sessionexchange = resources[i].sessionexchange;
updateresources[i].triggermonitor = resources[i].triggermonitor;
}
result = update_bulk_request(client, updateresources);
}
return result;
} | java | {
"resource": ""
} |
q10795 | gslbsite.unset | train | public static base_response unset(nitro_service client, gslbsite resource, String[] args) throws Exception{
gslbsite unsetresource = new gslbsite();
unsetresource.sitename = resource.sitename;
return unsetresource.unset_resource(client,args);
} | java | {
"resource": ""
} |
q10796 | gslbsite.unset | train | public static base_responses unset(nitro_service client, String sitename[], String args[]) throws Exception {
base_responses result = null;
if (sitename != null && sitename.length > 0) {
gslbsite unsetresources[] = new gslbsite[sitename.length];
for (int i=0;i<sitename.length;i++){
unsetresources[i] = new gslbsite();
unsetresources[i].sitename = sitename[i];
}
result = unset_bulk_request(client, unsetresources,args);
}
return result;
} | java | {
"resource": ""
} |
q10797 | gslbsite.get | train | public static gslbsite[] get(nitro_service service, options option) throws Exception{
gslbsite obj = new gslbsite();
gslbsite[] response = (gslbsite[])obj.get_resources(service,option);
return response;
} | java | {
"resource": ""
} |
q10798 | gslbsite.get | train | public static gslbsite get(nitro_service service, String sitename) throws Exception{
gslbsite obj = new gslbsite();
obj.set_sitename(sitename);
gslbsite response = (gslbsite) obj.get_resource(service);
return response;
} | java | {
"resource": ""
} |
q10799 | gslbsite.get | train | public static gslbsite[] get(nitro_service service, String sitename[]) throws Exception{
if (sitename !=null && sitename.length>0) {
gslbsite response[] = new gslbsite[sitename.length];
gslbsite obj[] = new gslbsite[sitename.length];
for (int i=0;i<sitename.length;i++) {
obj[i] = new gslbsite();
obj[i].set_sitename(sitename[i]);
response[i] = (gslbsite) obj[i].get_resource(service);
}
return response;
}
return null;
} | java | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.