_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++){
clearresou... | 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.ba... | 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++){
addresource... | 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++){
updat... | 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 clu... | 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) {
... | 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[]... | 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) ||... | 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);... | 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 re... | 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... | 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 = M... | 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_authenticationcertpo... | 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) &&... | 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.d... | 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_res... | 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[] = (authenticationldappol... | 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(serv... | 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();
O... | 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_re... | 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;
ad... | 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();
addresour... | 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 ns... | 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();
... | 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 = r... | 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();
... | 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();
... | 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... | 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_re... | 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_authentication... | 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(se... | 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(w... | 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 (... | 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.getLabelsArra... | 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 : cli... | 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(AnswerAnnota... | 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.fl... | 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;
... | 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();
... | 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();... | 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;
updatereso... | 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 gslb... | 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... | 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[... | java | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.