_id stringlengths 2 7 | title stringlengths 3 140 | partition stringclasses 3
values | text stringlengths 73 34.1k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
q11500 | netbridge_iptunnel_binding.get | train | public static netbridge_iptunnel_binding[] get(nitro_service service, String name) throws Exception{
netbridge_iptunnel_binding obj = new netbridge_iptunnel_binding();
obj.set_name(name);
netbridge_iptunnel_binding response[] = (netbridge_iptunnel_binding[]) obj.get_resources(service);
return response;
} | java | {
"resource": ""
} |
q11501 | crvserver_lbvserver_binding.get | train | public static crvserver_lbvserver_binding[] get(nitro_service service, String name) throws Exception{
crvserver_lbvserver_binding obj = new crvserver_lbvserver_binding();
obj.set_name(name);
crvserver_lbvserver_binding response[] = (crvserver_lbvserver_binding[]) obj.get_resources(service);
return response;
} | java | {
"resource": ""
} |
q11502 | dnsaction.add | train | public static base_response add(nitro_service client, dnsaction resource) throws Exception {
dnsaction addresource = new dnsaction();
addresource.actionname = resource.actionname;
addresource.actiontype = resource.actiontype;
addresource.ipaddress = resource.ipaddress;
addresource.ttl = resource.ttl;
addresource.viewname = resource.viewname;
addresource.preferredloclist = resource.preferredloclist;
return addresource.add_resource(client);
} | java | {
"resource": ""
} |
q11503 | dnsaction.add | train | public static base_responses add(nitro_service client, dnsaction resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
dnsaction addresources[] = new dnsaction[resources.length];
for (int i=0;i<resources.length;i++){
addresources[i] = new dnsaction();
addresources[i].actionname = resources[i].actionname;
addresources[i].actiontype = resources[i].actiontype;
addresources[i].ipaddress = resources[i].ipaddress;
addresources[i].ttl = resources[i].ttl;
addresources[i].viewname = resources[i].viewname;
addresources[i].preferredloclist = resources[i].preferredloclist;
}
result = add_bulk_request(client, addresources);
}
return result;
} | java | {
"resource": ""
} |
q11504 | dnsaction.delete | train | public static base_responses delete(nitro_service client, String actionname[]) throws Exception {
base_responses result = null;
if (actionname != null && actionname.length > 0) {
dnsaction deleteresources[] = new dnsaction[actionname.length];
for (int i=0;i<actionname.length;i++){
deleteresources[i] = new dnsaction();
deleteresources[i].actionname = actionname[i];
}
result = delete_bulk_request(client, deleteresources);
}
return result;
} | java | {
"resource": ""
} |
q11505 | dnsaction.update | train | public static base_response update(nitro_service client, dnsaction resource) throws Exception {
dnsaction updateresource = new dnsaction();
updateresource.actionname = resource.actionname;
updateresource.ipaddress = resource.ipaddress;
updateresource.ttl = resource.ttl;
updateresource.viewname = resource.viewname;
updateresource.preferredloclist = resource.preferredloclist;
return updateresource.update_resource(client);
} | java | {
"resource": ""
} |
q11506 | dnsaction.update | train | public static base_responses update(nitro_service client, dnsaction resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
dnsaction updateresources[] = new dnsaction[resources.length];
for (int i=0;i<resources.length;i++){
updateresources[i] = new dnsaction();
updateresources[i].actionname = resources[i].actionname;
updateresources[i].ipaddress = resources[i].ipaddress;
updateresources[i].ttl = resources[i].ttl;
updateresources[i].viewname = resources[i].viewname;
updateresources[i].preferredloclist = resources[i].preferredloclist;
}
result = update_bulk_request(client, updateresources);
}
return result;
} | java | {
"resource": ""
} |
q11507 | dnsaction.unset | train | public static base_response unset(nitro_service client, dnsaction resource, String[] args) throws Exception{
dnsaction unsetresource = new dnsaction();
unsetresource.actionname = resource.actionname;
return unsetresource.unset_resource(client,args);
} | java | {
"resource": ""
} |
q11508 | dnsaction.get | train | public static dnsaction[] get(nitro_service service) throws Exception{
dnsaction obj = new dnsaction();
dnsaction[] response = (dnsaction[])obj.get_resources(service);
return response;
} | java | {
"resource": ""
} |
q11509 | dnsaction.get | train | public static dnsaction get(nitro_service service, String actionname) throws Exception{
dnsaction obj = new dnsaction();
obj.set_actionname(actionname);
dnsaction response = (dnsaction) obj.get_resource(service);
return response;
} | java | {
"resource": ""
} |
q11510 | crvserver_cmppolicy_binding.get | train | public static crvserver_cmppolicy_binding[] get(nitro_service service, String name) throws Exception{
crvserver_cmppolicy_binding obj = new crvserver_cmppolicy_binding();
obj.set_name(name);
crvserver_cmppolicy_binding response[] = (crvserver_cmppolicy_binding[]) obj.get_resources(service);
return response;
} | java | {
"resource": ""
} |
q11511 | Dataset.readSVMLightFormat | train | public static Dataset<String, String> readSVMLightFormat(String filename) {
return readSVMLightFormat(filename, new HashIndex<String>(), new HashIndex<String>());
} | java | {
"resource": ""
} |
q11512 | Dataset.getFeatureCounter | train | public Counter<F> getFeatureCounter()
{
Counter<F> featureCounts = new ClassicCounter<F>();
for (int i=0; i < this.size(); i++)
{
BasicDatum<L, F> datum = (BasicDatum<L, F>) getDatum(i);
Set<F> featureSet = new HashSet<F>(datum.asFeatures());
for (F key : featureSet) {
featureCounts.incrementCount(key, 1.0);
}
}
return featureCounts;
} | java | {
"resource": ""
} |
q11513 | Dataset.getL1NormalizedTFIDFDatum | train | public RVFDatum<L,F> getL1NormalizedTFIDFDatum(Datum<L,F> datum,Counter<F> featureDocCounts){
Counter<F> tfidfFeatures = new ClassicCounter<F>();
for(F feature : datum.asFeatures()){
if(featureDocCounts.containsKey(feature))
tfidfFeatures.incrementCount(feature,1.0);
}
double l1norm = 0;
for(F feature: tfidfFeatures.keySet()){
double idf = Math.log(((double)(this.size()+1))/(featureDocCounts.getCount(feature)+0.5));
double tf = tfidfFeatures.getCount(feature);
tfidfFeatures.setCount(feature, tf*idf);
l1norm += tf*idf;
}
for(F feature: tfidfFeatures.keySet()){
double tfidf = tfidfFeatures.getCount(feature);
tfidfFeatures.setCount(feature, tfidf/l1norm);
}
RVFDatum<L,F> rvfDatum = new RVFDatum<L,F>(tfidfFeatures,datum.label());
return rvfDatum;
} | java | {
"resource": ""
} |
q11514 | Dataset.getL1NormalizedTFIDFDataset | train | public RVFDataset<L,F> getL1NormalizedTFIDFDataset(){
RVFDataset<L,F> rvfDataset = new RVFDataset<L,F>(this.size(),this.featureIndex,this.labelIndex);
Counter<F> featureDocCounts = getFeatureCounter();
for(int i = 0; i < this.size(); i++){
Datum<L,F> datum = this.getDatum(i);
RVFDatum<L,F> rvfDatum = getL1NormalizedTFIDFDatum(datum,featureDocCounts);
rvfDataset.add(rvfDatum);
}
return rvfDataset;
} | java | {
"resource": ""
} |
q11515 | Dataset.printFullFeatureMatrix | train | public void printFullFeatureMatrix(PrintWriter pw) {
String sep = "\t";
for (int i = 0; i < featureIndex.size(); i++) {
pw.print(sep + featureIndex.get(i));
}
pw.println();
for (int i = 0; i < labels.length; i++) {
pw.print(labelIndex.get(i));
Set<Integer> feats = new HashSet<Integer>();
for (int j = 0; j < data[i].length; j++) {
int feature = data[i][j];
feats.add(Integer.valueOf(feature));
}
for (int j = 0; j < featureIndex.size(); j++) {
if (feats.contains(Integer.valueOf(j))) {
pw.print(sep + '1');
} else {
pw.print(sep + '0');
}
}
}
} | java | {
"resource": ""
} |
q11516 | Dataset.selectFeatures | train | public void selectFeatures(int numFeatures, double[] scores) {
List<ScoredObject<F>> scoredFeatures = new ArrayList<ScoredObject<F>>();
for (int i = 0; i < scores.length; i++) {
scoredFeatures.add(new ScoredObject<F>(featureIndex.get(i), scores[i]));
}
Collections.sort(scoredFeatures, ScoredComparator.DESCENDING_COMPARATOR);
Index<F> newFeatureIndex = new HashIndex<F>();
for (int i = 0; i < scoredFeatures.size() && i < numFeatures; i++) {
newFeatureIndex.add(scoredFeatures.get(i).object());
//System.err.println(scoredFeatures.get(i));
}
for (int i = 0; i < size; i++) {
int[] newData = new int[data[i].length];
int curIndex = 0;
for (int j = 0; j < data[i].length; j++) {
int index;
if ((index = newFeatureIndex.indexOf(featureIndex.get(data[i][j]))) != -1) {
newData[curIndex++] = index;
}
}
int[] newDataTrimmed = new int[curIndex];
System.arraycopy(newData, 0, newDataTrimmed, 0, curIndex);
data[i] = newDataTrimmed;
}
featureIndex = newFeatureIndex;
} | java | {
"resource": ""
} |
q11517 | Dataset.printSVMLightFormat | train | public static void printSVMLightFormat(PrintWriter pw, ClassicCounter<Integer> c, int classNo) {
Integer[] features = c.keySet().toArray(new Integer[c.keySet().size()]);
Arrays.sort(features);
StringBuilder sb = new StringBuilder();
sb.append(classNo);
sb.append(' ');
for (int f: features) {
sb.append(f + 1).append(':').append(c.getCount(f)).append(' ');
}
pw.println(sb.toString());
} | java | {
"resource": ""
} |
q11518 | systemglobaldata.get | train | public static systemglobaldata[] get(nitro_service service, systemglobaldata_args args) throws Exception{
systemglobaldata obj = new systemglobaldata();
options option = new options();
option.set_args(nitro_util.object_to_string_withoutquotes(args));
systemglobaldata[] response = (systemglobaldata[])obj.get_resources(service, option);
return response;
} | java | {
"resource": ""
} |
q11519 | lbvserver_copolicy_binding.get | train | public static lbvserver_copolicy_binding[] get(nitro_service service, String name) throws Exception{
lbvserver_copolicy_binding obj = new lbvserver_copolicy_binding();
obj.set_name(name);
lbvserver_copolicy_binding response[] = (lbvserver_copolicy_binding[]) obj.get_resources(service);
return response;
} | java | {
"resource": ""
} |
q11520 | auditsyslogpolicy_aaagroup_binding.get | train | public static auditsyslogpolicy_aaagroup_binding[] get(nitro_service service, String name) throws Exception{
auditsyslogpolicy_aaagroup_binding obj = new auditsyslogpolicy_aaagroup_binding();
obj.set_name(name);
auditsyslogpolicy_aaagroup_binding response[] = (auditsyslogpolicy_aaagroup_binding[]) obj.get_resources(service);
return response;
} | java | {
"resource": ""
} |
q11521 | sslcertkey_binding.get | train | public static sslcertkey_binding get(nitro_service service, String certkey) throws Exception{
sslcertkey_binding obj = new sslcertkey_binding();
obj.set_certkey(certkey);
sslcertkey_binding response = (sslcertkey_binding) obj.get_resource(service);
return response;
} | java | {
"resource": ""
} |
q11522 | nslimitidentifier_nslimitsessions_binding.get | train | public static nslimitidentifier_nslimitsessions_binding[] get(nitro_service service, String limitidentifier) throws Exception{
nslimitidentifier_nslimitsessions_binding obj = new nslimitidentifier_nslimitsessions_binding();
obj.set_limitidentifier(limitidentifier);
nslimitidentifier_nslimitsessions_binding response[] = (nslimitidentifier_nslimitsessions_binding[]) obj.get_resources(service);
return response;
} | java | {
"resource": ""
} |
q11523 | nslimitidentifier_nslimitsessions_binding.get_filtered | train | public static nslimitidentifier_nslimitsessions_binding[] get_filtered(nitro_service service, String limitidentifier, filtervalue[] filter) throws Exception{
nslimitidentifier_nslimitsessions_binding obj = new nslimitidentifier_nslimitsessions_binding();
obj.set_limitidentifier(limitidentifier);
options option = new options();
option.set_filter(filter);
nslimitidentifier_nslimitsessions_binding[] response = (nslimitidentifier_nslimitsessions_binding[]) obj.getfiltered(service, option);
return response;
} | java | {
"resource": ""
} |
q11524 | nslimitidentifier_nslimitsessions_binding.count | train | public static long count(nitro_service service, String limitidentifier) throws Exception{
nslimitidentifier_nslimitsessions_binding obj = new nslimitidentifier_nslimitsessions_binding();
obj.set_limitidentifier(limitidentifier);
options option = new options();
option.set_count(true);
nslimitidentifier_nslimitsessions_binding response[] = (nslimitidentifier_nslimitsessions_binding[]) obj.get_resources(service,option);
if (response != null) {
return response[0].__count;
}
return 0;
} | java | {
"resource": ""
} |
q11525 | cacheforwardproxy.add | train | public static base_response add(nitro_service client, cacheforwardproxy resource) throws Exception {
cacheforwardproxy addresource = new cacheforwardproxy();
addresource.ipaddress = resource.ipaddress;
addresource.port = resource.port;
return addresource.add_resource(client);
} | java | {
"resource": ""
} |
q11526 | cacheforwardproxy.add | train | public static base_responses add(nitro_service client, cacheforwardproxy resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
cacheforwardproxy addresources[] = new cacheforwardproxy[resources.length];
for (int i=0;i<resources.length;i++){
addresources[i] = new cacheforwardproxy();
addresources[i].ipaddress = resources[i].ipaddress;
addresources[i].port = resources[i].port;
}
result = add_bulk_request(client, addresources);
}
return result;
} | java | {
"resource": ""
} |
q11527 | cacheforwardproxy.delete | train | public static base_response delete(nitro_service client, String ipaddress) throws Exception {
cacheforwardproxy deleteresource = new cacheforwardproxy();
deleteresource.ipaddress = ipaddress;
return deleteresource.delete_resource(client);
} | java | {
"resource": ""
} |
q11528 | cacheforwardproxy.delete | train | public static base_response delete(nitro_service client, cacheforwardproxy resource) throws Exception {
cacheforwardproxy deleteresource = new cacheforwardproxy();
deleteresource.ipaddress = resource.ipaddress;
deleteresource.port = resource.port;
return deleteresource.delete_resource(client);
} | java | {
"resource": ""
} |
q11529 | cacheforwardproxy.delete | train | public static base_responses delete(nitro_service client, String ipaddress[]) throws Exception {
base_responses result = null;
if (ipaddress != null && ipaddress.length > 0) {
cacheforwardproxy deleteresources[] = new cacheforwardproxy[ipaddress.length];
for (int i=0;i<ipaddress.length;i++){
deleteresources[i] = new cacheforwardproxy();
deleteresources[i].ipaddress = ipaddress[i];
}
result = delete_bulk_request(client, deleteresources);
}
return result;
} | java | {
"resource": ""
} |
q11530 | cacheforwardproxy.delete | train | public static base_responses delete(nitro_service client, cacheforwardproxy resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
cacheforwardproxy deleteresources[] = new cacheforwardproxy[resources.length];
for (int i=0;i<resources.length;i++){
deleteresources[i] = new cacheforwardproxy();
deleteresources[i].ipaddress = resources[i].ipaddress;
deleteresources[i].port = resources[i].port;
}
result = delete_bulk_request(client, deleteresources);
}
return result;
} | java | {
"resource": ""
} |
q11531 | cacheforwardproxy.get | train | public static cacheforwardproxy[] get(nitro_service service) throws Exception{
cacheforwardproxy obj = new cacheforwardproxy();
cacheforwardproxy[] response = (cacheforwardproxy[])obj.get_resources(service);
return response;
} | java | {
"resource": ""
} |
q11532 | autoscalepolicy_nstimer_binding.get | train | public static autoscalepolicy_nstimer_binding[] get(nitro_service service, String name) throws Exception{
autoscalepolicy_nstimer_binding obj = new autoscalepolicy_nstimer_binding();
obj.set_name(name);
autoscalepolicy_nstimer_binding response[] = (autoscalepolicy_nstimer_binding[]) obj.get_resources(service);
return response;
} | java | {
"resource": ""
} |
q11533 | cmppolicy_cmpglobal_binding.get | train | public static cmppolicy_cmpglobal_binding[] get(nitro_service service, String name) throws Exception{
cmppolicy_cmpglobal_binding obj = new cmppolicy_cmpglobal_binding();
obj.set_name(name);
cmppolicy_cmpglobal_binding response[] = (cmppolicy_cmpglobal_binding[]) obj.get_resources(service);
return response;
} | java | {
"resource": ""
} |
q11534 | appfwglobal_binding.get | train | public static appfwglobal_binding get(nitro_service service) throws Exception{
appfwglobal_binding obj = new appfwglobal_binding();
appfwglobal_binding response = (appfwglobal_binding) obj.get_resource(service);
return response;
} | java | {
"resource": ""
} |
q11535 | lbmonitor.delete | train | public static base_response delete(nitro_service client, String monitorname) throws Exception {
lbmonitor deleteresource = new lbmonitor();
deleteresource.monitorname = monitorname;
return deleteresource.delete_resource(client);
} | java | {
"resource": ""
} |
q11536 | lbmonitor.delete | train | public static base_response delete(nitro_service client, lbmonitor resource) throws Exception {
lbmonitor deleteresource = new lbmonitor();
deleteresource.monitorname = resource.monitorname;
deleteresource.type = resource.type;
deleteresource.respcode = resource.respcode;
return deleteresource.delete_resource(client);
} | java | {
"resource": ""
} |
q11537 | lbmonitor.delete | train | public static base_responses delete(nitro_service client, String monitorname[]) throws Exception {
base_responses result = null;
if (monitorname != null && monitorname.length > 0) {
lbmonitor deleteresources[] = new lbmonitor[monitorname.length];
for (int i=0;i<monitorname.length;i++){
deleteresources[i] = new lbmonitor();
deleteresources[i].monitorname = monitorname[i];
}
result = delete_bulk_request(client, deleteresources);
}
return result;
} | java | {
"resource": ""
} |
q11538 | lbmonitor.delete | train | public static base_responses delete(nitro_service client, lbmonitor resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
lbmonitor deleteresources[] = new lbmonitor[resources.length];
for (int i=0;i<resources.length;i++){
deleteresources[i] = new lbmonitor();
deleteresources[i].monitorname = resources[i].monitorname;
deleteresources[i].type = resources[i].type;
deleteresources[i].respcode = resources[i].respcode;
}
result = delete_bulk_request(client, deleteresources);
}
return result;
} | java | {
"resource": ""
} |
q11539 | lbmonitor.unset | train | public static base_response unset(nitro_service client, lbmonitor resource, String[] args) throws Exception{
lbmonitor unsetresource = new lbmonitor();
unsetresource.monitorname = resource.monitorname;
unsetresource.type = resource.type;
unsetresource.ipaddress = resource.ipaddress;
return unsetresource.unset_resource(client,args);
} | java | {
"resource": ""
} |
q11540 | lbmonitor.unset | train | public static base_responses unset(nitro_service client, lbmonitor resources[], String[] args) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
lbmonitor unsetresources[] = new lbmonitor[resources.length];
for (int i=0;i<resources.length;i++){
unsetresources[i] = new lbmonitor();
unsetresources[i].monitorname = resources[i].monitorname;
unsetresources[i].type = resources[i].type;
unsetresources[i].ipaddress = resources[i].ipaddress;
}
result = unset_bulk_request(client, unsetresources,args);
}
return result;
} | java | {
"resource": ""
} |
q11541 | lbmonitor.enable | train | public static base_response enable(nitro_service client, String monitorname) throws Exception {
lbmonitor enableresource = new lbmonitor();
enableresource.monitorname = monitorname;
return enableresource.perform_operation(client,"enable");
} | java | {
"resource": ""
} |
q11542 | lbmonitor.enable | train | public static base_response enable(nitro_service client, lbmonitor resource) throws Exception {
lbmonitor enableresource = new lbmonitor();
enableresource.servicename = resource.servicename;
enableresource.servicegroupname = resource.servicegroupname;
enableresource.monitorname = resource.monitorname;
return enableresource.perform_operation(client,"enable");
} | java | {
"resource": ""
} |
q11543 | lbmonitor.enable | train | public static base_responses enable(nitro_service client, String monitorname[]) throws Exception {
base_responses result = null;
if (monitorname != null && monitorname.length > 0) {
lbmonitor enableresources[] = new lbmonitor[monitorname.length];
for (int i=0;i<monitorname.length;i++){
enableresources[i] = new lbmonitor();
enableresources[i].monitorname = monitorname[i];
}
result = perform_operation_bulk_request(client, enableresources,"enable");
}
return result;
} | java | {
"resource": ""
} |
q11544 | lbmonitor.enable | train | public static base_responses enable(nitro_service client, lbmonitor resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
lbmonitor enableresources[] = new lbmonitor[resources.length];
for (int i=0;i<resources.length;i++){
enableresources[i] = new lbmonitor();
enableresources[i].servicename = resources[i].servicename;
enableresources[i].servicegroupname = resources[i].servicegroupname;
enableresources[i].monitorname = resources[i].monitorname;
}
result = perform_operation_bulk_request(client, enableresources,"enable");
}
return result;
} | java | {
"resource": ""
} |
q11545 | lbmonitor.disable | train | public static base_response disable(nitro_service client, String monitorname) throws Exception {
lbmonitor disableresource = new lbmonitor();
disableresource.monitorname = monitorname;
return disableresource.perform_operation(client,"disable");
} | java | {
"resource": ""
} |
q11546 | lbmonitor.disable | train | public static base_response disable(nitro_service client, lbmonitor resource) throws Exception {
lbmonitor disableresource = new lbmonitor();
disableresource.servicename = resource.servicename;
disableresource.servicegroupname = resource.servicegroupname;
disableresource.monitorname = resource.monitorname;
return disableresource.perform_operation(client,"disable");
} | java | {
"resource": ""
} |
q11547 | lbmonitor.disable | train | public static base_responses disable(nitro_service client, String monitorname[]) throws Exception {
base_responses result = null;
if (monitorname != null && monitorname.length > 0) {
lbmonitor disableresources[] = new lbmonitor[monitorname.length];
for (int i=0;i<monitorname.length;i++){
disableresources[i] = new lbmonitor();
disableresources[i].monitorname = monitorname[i];
}
result = perform_operation_bulk_request(client, disableresources,"disable");
}
return result;
} | java | {
"resource": ""
} |
q11548 | lbmonitor.disable | train | public static base_responses disable(nitro_service client, lbmonitor resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
lbmonitor disableresources[] = new lbmonitor[resources.length];
for (int i=0;i<resources.length;i++){
disableresources[i] = new lbmonitor();
disableresources[i].servicename = resources[i].servicename;
disableresources[i].servicegroupname = resources[i].servicegroupname;
disableresources[i].monitorname = resources[i].monitorname;
}
result = perform_operation_bulk_request(client, disableresources,"disable");
}
return result;
} | java | {
"resource": ""
} |
q11549 | lbmonitor.get | train | public static lbmonitor[] get(nitro_service service) throws Exception{
lbmonitor obj = new lbmonitor();
lbmonitor[] response = (lbmonitor[])obj.get_resources(service);
return response;
} | java | {
"resource": ""
} |
q11550 | lbmonitor.get | train | public static lbmonitor[] get(nitro_service service, lbmonitor_args args) throws Exception{
lbmonitor obj = new lbmonitor();
options option = new options();
option.set_args(nitro_util.object_to_string_withoutquotes(args));
lbmonitor[] response = (lbmonitor[])obj.get_resources(service, option);
return response;
} | java | {
"resource": ""
} |
q11551 | lbmonitor.get | train | public static lbmonitor get(nitro_service service, String monitorname) throws Exception{
lbmonitor obj = new lbmonitor();
obj.set_monitorname(monitorname);
lbmonitor response = (lbmonitor) obj.get_resource(service);
return response;
} | java | {
"resource": ""
} |
q11552 | lbvserver_spilloverpolicy_binding.get | train | public static lbvserver_spilloverpolicy_binding[] get(nitro_service service, String name) throws Exception{
lbvserver_spilloverpolicy_binding obj = new lbvserver_spilloverpolicy_binding();
obj.set_name(name);
lbvserver_spilloverpolicy_binding response[] = (lbvserver_spilloverpolicy_binding[]) obj.get_resources(service);
return response;
} | java | {
"resource": ""
} |
q11553 | nsstats.clear | train | public static base_response clear(nitro_service client, nsstats resource) throws Exception {
nsstats clearresource = new nsstats();
clearresource.cleanuplevel = resource.cleanuplevel;
return clearresource.perform_operation(client,"clear");
} | java | {
"resource": ""
} |
q11554 | appqoecustomresp.Import | train | public static base_response Import(nitro_service client, appqoecustomresp resource) throws Exception {
appqoecustomresp Importresource = new appqoecustomresp();
Importresource.src = resource.src;
Importresource.name = resource.name;
return Importresource.perform_operation(client,"Import");
} | java | {
"resource": ""
} |
q11555 | appqoecustomresp.Import | train | public static base_responses Import(nitro_service client, appqoecustomresp resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
appqoecustomresp Importresources[] = new appqoecustomresp[resources.length];
for (int i=0;i<resources.length;i++){
Importresources[i] = new appqoecustomresp();
Importresources[i].src = resources[i].src;
Importresources[i].name = resources[i].name;
}
result = perform_operation_bulk_request(client, Importresources,"Import");
}
return result;
} | java | {
"resource": ""
} |
q11556 | appqoecustomresp.change | train | public static base_responses change(nitro_service client, appqoecustomresp resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
appqoecustomresp updateresources[] = new appqoecustomresp[resources.length];
for (int i=0;i<resources.length;i++){
updateresources[i] = new appqoecustomresp();
updateresources[i].name = resources[i].name;
}
result = perform_operation_bulk_request(client, updateresources,"update");
}
return result;
} | java | {
"resource": ""
} |
q11557 | appqoecustomresp.get | train | public static appqoecustomresp[] get(nitro_service service, options option) throws Exception{
appqoecustomresp obj = new appqoecustomresp();
appqoecustomresp[] response = (appqoecustomresp[])obj.get_resources(service,option);
return response;
} | java | {
"resource": ""
} |
q11558 | CodecInfo.getCodecInfoFromTerms | train | @SuppressWarnings("unchecked")
public static CodecInfo getCodecInfoFromTerms(Terms t) throws IOException {
try {
HashMap<String, IndexInput> indexInputList = null;
HashMap<String, Long> indexInputOffsetList = null;
Object version = null;
Method[] methods = t.getClass().getMethods();
Object[] emptyArgs = null;
for (Method m : methods) {
if (m.getName().equals("getIndexInputList")) {
indexInputList = (HashMap<String, IndexInput>) m.invoke(t, emptyArgs);
} else if (m.getName().equals("getIndexInputOffsetList")) {
indexInputOffsetList = (HashMap<String, Long>) m.invoke(t, emptyArgs);
} else if (m.getName().equals("getVersion")) {
version = m.invoke(t, emptyArgs);
}
}
if (indexInputList == null || indexInputOffsetList == null
|| version == null) {
throw new IOException("Reader doesn't provide MtasFieldsProducer");
} else {
return new CodecInfo(indexInputList, indexInputOffsetList,
(int) version);
}
} catch (IllegalAccessException | InvocationTargetException e) {
throw new IOException("Can't get codecInfo", e);
}
} | java | {
"resource": ""
} |
q11559 | CodecInfo.getObjectById | train | public MtasToken getObjectById(String field, int docId, int mtasId)
throws IOException {
try {
Long ref;
Long objectRefApproxCorrection;
IndexDoc doc = getDoc(field, docId);
IndexInput inObjectId = indexInputList.get("indexObjectId");
IndexInput inObject = indexInputList.get("object");
IndexInput inTerm = indexInputList.get("term");
if (doc.storageFlags == MtasCodecPostingsFormat.MTAS_STORAGE_BYTE) {
inObjectId.seek(doc.fpIndexObjectId + (mtasId * 1L));
objectRefApproxCorrection = Long.valueOf(inObjectId.readByte());
} else if (doc.storageFlags == MtasCodecPostingsFormat.MTAS_STORAGE_SHORT) {
inObjectId.seek(doc.fpIndexObjectId + (mtasId * 2L));
objectRefApproxCorrection = Long.valueOf(inObjectId.readShort());
} else if (doc.storageFlags == MtasCodecPostingsFormat.MTAS_STORAGE_INTEGER) {
inObjectId.seek(doc.fpIndexObjectId + (mtasId * 4L));
objectRefApproxCorrection = Long.valueOf(inObjectId.readInt());
} else {
inObjectId.seek(doc.fpIndexObjectId + (mtasId * 8L));
objectRefApproxCorrection = Long.valueOf(inObjectId.readLong());
}
ref = objectRefApproxCorrection + doc.objectRefApproxOffset
+ (mtasId * (long) doc.objectRefApproxQuotient);
return MtasCodecPostingsFormat.getToken(inObject, inTerm, ref);
} catch (Exception e) {
throw new IOException(e);
}
} | java | {
"resource": ""
} |
q11560 | CodecInfo.getObjectsByParentId | train | public List<MtasTokenString> getObjectsByParentId(String field, int docId,
int position) throws IOException {
IndexDoc doc = getDoc(field, docId);
IndexInput inIndexObjectParent = indexInputList.get("indexObjectParent");
ArrayList<MtasTreeHit<?>> hits = CodecSearchTree.searchMtasTree(position,
inIndexObjectParent, doc.fpIndexObjectParent,
doc.smallestObjectFilepointer);
return getObjects(hits);
} | java | {
"resource": ""
} |
q11561 | CodecInfo.getObjectsByPosition | train | public ArrayList<MtasTokenString> getObjectsByPosition(String field,
int docId, int position) throws IOException {
IndexDoc doc = getDoc(field, docId);
IndexInput inIndexObjectPosition = indexInputList
.get("indexObjectPosition");
ArrayList<MtasTreeHit<?>> hits = CodecSearchTree.searchMtasTree(position,
inIndexObjectPosition, doc.fpIndexObjectPosition,
doc.smallestObjectFilepointer);
return getObjects(hits);
} | java | {
"resource": ""
} |
q11562 | CodecInfo.getPrefixFilteredObjectsByPositions | train | public List<MtasTokenString> getPrefixFilteredObjectsByPositions(String field,
int docId, List<String> prefixes, int startPosition, int endPosition)
throws IOException {
IndexDoc doc = getDoc(field, docId);
IndexInput inIndexObjectPosition = indexInputList
.get("indexObjectPosition");
if (doc != null) {
ArrayList<MtasTreeHit<?>> hits = CodecSearchTree.searchMtasTree(
startPosition, endPosition, inIndexObjectPosition,
doc.fpIndexObjectPosition, doc.smallestObjectFilepointer);
return getPrefixFilteredObjects(hits, prefixes);
} else {
return new ArrayList<>();
}
} | java | {
"resource": ""
} |
q11563 | CodecInfo.getPrefixFilteredObjects | train | private List<MtasTokenString> getPrefixFilteredObjects(
List<MtasTreeHit<?>> hits, List<String> prefixes) throws IOException {
ArrayList<MtasTokenString> tokens = new ArrayList<>();
IndexInput inObject = indexInputList.get("object");
IndexInput inTerm = indexInputList.get("term");
for (MtasTreeHit<?> hit : hits) {
MtasTokenString token = MtasCodecPostingsFormat.getToken(inObject, inTerm,
hit.ref);
if (token != null) {
if (prefixes != null && !prefixes.isEmpty()) {
if (prefixes.contains(token.getPrefix())) {
tokens.add(token);
}
} else {
tokens.add(token);
}
}
}
return tokens;
} | java | {
"resource": ""
} |
q11564 | CodecInfo.getPositionedTermsByPrefixesAndPosition | train | public List<MtasTreeHit<String>> getPositionedTermsByPrefixesAndPosition(
String field, int docId, List<String> prefixes, int position)
throws IOException {
return getPositionedTermsByPrefixesAndPositionRange(field, docId, prefixes,
position, position);
} | java | {
"resource": ""
} |
q11565 | CodecInfo.getPositionedTermsByPrefixesAndPositionRange | train | public List<MtasTreeHit<String>> getPositionedTermsByPrefixesAndPositionRange(
String field, int docId, List<String> prefixes, int startPosition,
int endPosition) throws IOException {
IndexDoc doc = getDoc(field, docId);
IndexInput inIndexObjectPosition = indexInputList
.get("indexObjectPosition");
if (doc != null) {
ArrayList<MtasTreeHit<?>> hitItems = CodecSearchTree.searchMtasTree(
startPosition, endPosition, inIndexObjectPosition,
doc.fpIndexObjectPosition, doc.smallestObjectFilepointer);
List<MtasTreeHit<String>> hits = new ArrayList<>();
Map<String, Integer> prefixIds = getPrefixesIds(field, prefixes);
if (prefixIds != null && prefixIds.size() > 0) {
ArrayList<MtasTreeHit<?>> filteredHitItems = new ArrayList<MtasTreeHit<?>>();
for (MtasTreeHit<?> hitItem : hitItems) {
if (prefixIds.containsValue(hitItem.additionalId)) {
filteredHitItems.add(hitItem);
}
}
if (filteredHitItems.size() > 0) {
ArrayList<MtasTokenString> objects = getObjects(filteredHitItems);
for (MtasTokenString token : objects) {
MtasTreeHit<String> hit = new MtasTreeHit<String>(
token.getPositionStart(), token.getPositionEnd(),
token.getTokenRef(), 0, 0, token.getValue());
hits.add(hit);
}
}
}
return hits;
} else {
return new ArrayList<MtasTreeHit<String>>();
}
} | java | {
"resource": ""
} |
q11566 | CodecInfo.collectTermsByPrefixesForListOfHitPositions | train | public void collectTermsByPrefixesForListOfHitPositions(String field,
int docId, ArrayList<String> prefixes,
ArrayList<IntervalTreeNodeData<String>> positionsHits)
throws IOException {
IndexDoc doc = getDoc(field, docId);
IndexInput inIndexObjectPosition = indexInputList
.get("indexObjectPosition");
IndexInput inTerm = indexInputList.get("term");
// create tree interval hits
IntervalRBTree<String> positionTree = new IntervalRBTree<String>(
positionsHits);
// find prefixIds
Map<String, Integer> prefixIds = getPrefixesIds(field, prefixes);
// search matching tokens
if (prefixIds != null) {
CodecSearchTree.searchMtasTreeWithIntervalTree(prefixIds.values(),
positionTree, inIndexObjectPosition, doc.fpIndexObjectPosition,
doc.smallestObjectFilepointer);
// reverse list
Map<Integer, String> idPrefixes = new HashMap<>();
for (Entry<String, Integer> entry : prefixIds.entrySet()) {
idPrefixes.put(entry.getValue(), entry.getKey());
}
// term administration
Map<Long, String> refTerms = new HashMap<>();
for (IntervalTreeNodeData<String> positionHit : positionsHits) {
for (MtasTreeHit<String> hit : positionHit.list) {
if (hit.idData == null) {
hit.idData = idPrefixes.get(hit.additionalId);
if (!refTerms.containsKey(hit.additionalRef)) {
refTerms.put(hit.additionalRef,
MtasCodecPostingsFormat.getTerm(inTerm, hit.additionalRef));
}
hit.refData = refTerms.get(hit.additionalRef);
}
}
}
}
} | java | {
"resource": ""
} |
q11567 | CodecInfo.getTerms | train | public ArrayList<MtasTreeHit<String>> getTerms(ArrayList<MtasTreeHit<?>> refs)
throws IOException {
try {
ArrayList<MtasTreeHit<String>> terms = new ArrayList<MtasTreeHit<String>>();
IndexInput inTerm = indexInputList.get("term");
for (MtasTreeHit<?> hit : refs) {
inTerm.seek(hit.ref);
String term = inTerm.readString();
MtasTreeHit<String> newHit = new MtasTreeHit<String>(hit.startPosition,
hit.endPosition, hit.ref, hit.additionalId, hit.additionalRef,
term);
terms.add(newHit);
}
return terms;
} catch (Exception e) {
throw new IOException(e);
}
} | java | {
"resource": ""
} |
q11568 | CodecInfo.getPrefixesIds | train | Map<String, Integer> getPrefixesIds(String field, List<String> prefixes) {
LinkedHashMap<String, Long> refs = getPrefixRefs(field);
if (refs != null) {
List<String> list = new ArrayList<>(refs.keySet());
Map<String, Integer> result = new HashMap<>();
for (String prefix : prefixes) {
int id = list.indexOf(prefix);
if (id >= 0) {
result.put(prefix, id + 1);
}
}
return result;
} else {
return null;
}
} | java | {
"resource": ""
} |
q11569 | CodecInfo.getPrefixRefs | train | private LinkedHashMap<String, Long> getPrefixRefs(String field) {
if (fieldReferences.containsKey(field)) {
FieldReferences fr = fieldReferences.get(field);
if (!prefixReferences.containsKey(field)) {
LinkedHashMap<String, Long> refs = new LinkedHashMap<String, Long>();
try {
IndexInput inPrefix = indexInputList.get("prefix");
inPrefix.seek(fr.refPrefix);
for (int i = 0; i < fr.numberOfPrefixes; i++) {
Long ref = inPrefix.getFilePointer();
String prefix = inPrefix.readString();
refs.put(prefix, ref);
}
} catch (Exception e) {
log.error(e);
refs.clear();
}
prefixReferences.put(field, refs);
return refs;
} else {
return prefixReferences.get(field);
}
} else {
return null;
}
} | java | {
"resource": ""
} |
q11570 | CodecInfo.getDoc | train | public IndexDoc getDoc(String field, int docId) {
if (fieldReferences.containsKey(field)) {
FieldReferences fr = fieldReferences.get(field);
try {
IndexInput inIndexDocId = indexInputList.get("indexDocId");
ArrayList<MtasTreeHit<?>> list = CodecSearchTree.searchMtasTree(docId,
inIndexDocId, fr.refIndexDocId, fr.refIndexDoc);
if (list.size() == 1) {
return new IndexDoc(list.get(0).ref);
}
} catch (IOException e) {
log.debug(e);
return null;
}
}
return null;
} | java | {
"resource": ""
} |
q11571 | CodecInfo.getNextDoc | train | public IndexDoc getNextDoc(String field, int previousDocId) {
if (fieldReferences.containsKey(field)) {
FieldReferences fr = fieldReferences.get(field);
try {
if (previousDocId < 0) {
return new IndexDoc(fr.refIndexDoc);
} else {
int nextDocId = previousDocId + 1;
IndexInput inIndexDocId = indexInputList.get("indexDocId");
ArrayList<MtasTreeHit<?>> list = CodecSearchTree.advanceMtasTree(
nextDocId, inIndexDocId, fr.refIndexDocId, fr.refIndexDoc);
if (list.size() == 1) {
IndexInput inDoc = indexInputList.get("doc");
inDoc.seek(list.get(0).ref);
return new IndexDoc(inDoc.getFilePointer());
}
}
} catch (IOException e) {
log.debug(e);
return null;
}
}
return null;
} | java | {
"resource": ""
} |
q11572 | CodecInfo.getNumberOfDocs | train | public int getNumberOfDocs(String field) {
if (fieldReferences.containsKey(field)) {
FieldReferences fr = fieldReferences.get(field);
return fr.numberOfDocs;
} else {
return 0;
}
} | java | {
"resource": ""
} |
q11573 | CodecInfo.getNumberOfPositions | train | public Integer getNumberOfPositions(String field, int docId) {
if (fieldReferences.containsKey(field)) {
IndexDoc doc = getDoc(field, docId);
if (doc != null) {
return 1 + doc.maxPosition - doc.minPosition;
}
}
return null;
} | java | {
"resource": ""
} |
q11574 | CodecInfo.getAllNumberOfPositions | train | public HashMap<Integer, Integer> getAllNumberOfPositions(String field,
int docBase) throws IOException {
HashMap<Integer, Integer> numbers = new HashMap<Integer, Integer>();
if (fieldReferences.containsKey(field)) {
FieldReferences fr = fieldReferences.get(field);
IndexInput inIndexDoc = indexInputList.get("doc");
inIndexDoc.seek(fr.refIndexDoc);
IndexDoc doc;
for (int i = 0; i < fr.numberOfDocs; i++) {
doc = new IndexDoc(null);
numbers.put((doc.docId + docBase),
(1 + doc.maxPosition - doc.minPosition));
}
}
return numbers;
} | java | {
"resource": ""
} |
q11575 | CodecInfo.getNumberOfTokens | train | public Integer getNumberOfTokens(String field, int docId) {
if (fieldReferences.containsKey(field)) {
IndexDoc doc = getDoc(field, docId);
if (doc != null) {
return doc.size;
}
}
return null;
} | java | {
"resource": ""
} |
q11576 | FeatureFactory.addAllInterningAndSuffixing | train | @SuppressWarnings({"MethodMayBeStatic"})
protected void addAllInterningAndSuffixing(Collection<String> accumulator, Collection<String> addend, String suffix) {
boolean nonNullSuffix = suffix != null && ! "".equals(suffix);
if (nonNullSuffix) {
suffix = '|' + suffix;
}
// boolean intern2 = flags.intern2;
for (String feat : addend) {
if (nonNullSuffix) {
feat = feat.concat(suffix);
}
// if (intern2) {
// feat = feat.intern();
// }
accumulator.add(feat);
}
} | java | {
"resource": ""
} |
q11577 | FeatureFactory.getWord | train | protected String getWord(CoreLabel label) {
String word = label.getString(TextAnnotation.class);
if (flags.wordFunction != null) {
word = flags.wordFunction.apply(word);
}
return word;
} | java | {
"resource": ""
} |
q11578 | ClassicCounter.mutableRemove | train | private MutableDouble mutableRemove(E key) {
MutableDouble md = map.remove(key);
if (md != null) {
totalCount -= md.doubleValue();
}
return md;
} | java | {
"resource": ""
} |
q11579 | nsacls.renumber | train | public static base_response renumber(nitro_service client) throws Exception {
nsacls renumberresource = new nsacls();
return renumberresource.perform_operation(client,"renumber");
} | java | {
"resource": ""
} |
q11580 | nsacls.clear | train | public static base_response clear(nitro_service client) throws Exception {
nsacls clearresource = new nsacls();
return clearresource.perform_operation(client,"clear");
} | java | {
"resource": ""
} |
q11581 | nsacls.apply | train | public static base_response apply(nitro_service client) throws Exception {
nsacls applyresource = new nsacls();
return applyresource.perform_operation(client,"apply");
} | java | {
"resource": ""
} |
q11582 | vlan_linkset_binding.get | train | public static vlan_linkset_binding[] get(nitro_service service, Long id) throws Exception{
vlan_linkset_binding obj = new vlan_linkset_binding();
obj.set_id(id);
vlan_linkset_binding response[] = (vlan_linkset_binding[]) obj.get_resources(service);
return response;
} | java | {
"resource": ""
} |
q11583 | nsencryptionparams.update | train | public static base_response update(nitro_service client, nsencryptionparams resource) throws Exception {
nsencryptionparams updateresource = new nsencryptionparams();
updateresource.method = resource.method;
updateresource.keyvalue = resource.keyvalue;
return updateresource.update_resource(client);
} | java | {
"resource": ""
} |
q11584 | nsencryptionparams.get | train | public static nsencryptionparams get(nitro_service service) throws Exception{
nsencryptionparams obj = new nsencryptionparams();
nsencryptionparams[] response = (nsencryptionparams[])obj.get_resources(service);
return response[0];
} | java | {
"resource": ""
} |
q11585 | vpnvserver_auditsyslogpolicy_binding.get | train | public static vpnvserver_auditsyslogpolicy_binding[] get(nitro_service service, String name) throws Exception{
vpnvserver_auditsyslogpolicy_binding obj = new vpnvserver_auditsyslogpolicy_binding();
obj.set_name(name);
vpnvserver_auditsyslogpolicy_binding response[] = (vpnvserver_auditsyslogpolicy_binding[]) obj.get_resources(service);
return response;
} | java | {
"resource": ""
} |
q11586 | appfwprofile_xmldosurl_binding.get | train | public static appfwprofile_xmldosurl_binding[] get(nitro_service service, String name) throws Exception{
appfwprofile_xmldosurl_binding obj = new appfwprofile_xmldosurl_binding();
obj.set_name(name);
appfwprofile_xmldosurl_binding response[] = (appfwprofile_xmldosurl_binding[]) obj.get_resources(service);
return response;
} | java | {
"resource": ""
} |
q11587 | TregexPatternCompiler.compile | train | public TregexPattern compile(String tregex) {
for (Pair<String, String> macro : macros) {
tregex = tregex.replaceAll(macro.first(), macro.second());
}
TregexPattern pattern;
try {
TregexParser parser = new TregexParser(new StringReader(tregex + '\n'),
basicCatFunction, headFinder);
pattern = parser.Root();
} catch (TokenMgrError tme) {
throw new TregexParseException("Could not parse " + tregex, tme);
} catch (ParseException e) {
throw new TregexParseException("Could not parse " + tregex, e);
}
pattern.setPatternString(tregex);
return pattern;
} | java | {
"resource": ""
} |
q11588 | responderpolicy_csvserver_binding.get | train | public static responderpolicy_csvserver_binding[] get(nitro_service service, String name) throws Exception{
responderpolicy_csvserver_binding obj = new responderpolicy_csvserver_binding();
obj.set_name(name);
responderpolicy_csvserver_binding response[] = (responderpolicy_csvserver_binding[]) obj.get_resources(service);
return response;
} | java | {
"resource": ""
} |
q11589 | sslcrl_serialnumber_binding.get | train | public static sslcrl_serialnumber_binding[] get(nitro_service service, String crlname) throws Exception{
sslcrl_serialnumber_binding obj = new sslcrl_serialnumber_binding();
obj.set_crlname(crlname);
sslcrl_serialnumber_binding response[] = (sslcrl_serialnumber_binding[]) obj.get_resources(service);
return response;
} | java | {
"resource": ""
} |
q11590 | sslcrl_serialnumber_binding.count | train | public static long count(nitro_service service, String crlname) throws Exception{
sslcrl_serialnumber_binding obj = new sslcrl_serialnumber_binding();
obj.set_crlname(crlname);
options option = new options();
option.set_count(true);
sslcrl_serialnumber_binding response[] = (sslcrl_serialnumber_binding[]) obj.get_resources(service,option);
if (response != null) {
return response[0].__count;
}
return 0;
} | java | {
"resource": ""
} |
q11591 | aaauser.add | train | public static base_response add(nitro_service client, aaauser resource) throws Exception {
aaauser addresource = new aaauser();
addresource.username = resource.username;
addresource.password = resource.password;
return addresource.add_resource(client);
} | java | {
"resource": ""
} |
q11592 | aaauser.add | train | public static base_responses add(nitro_service client, aaauser resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
aaauser addresources[] = new aaauser[resources.length];
for (int i=0;i<resources.length;i++){
addresources[i] = new aaauser();
addresources[i].username = resources[i].username;
addresources[i].password = resources[i].password;
}
result = add_bulk_request(client, addresources);
}
return result;
} | java | {
"resource": ""
} |
q11593 | aaauser.update | train | public static base_response update(nitro_service client, aaauser resource) throws Exception {
aaauser updateresource = new aaauser();
updateresource.username = resource.username;
updateresource.password = resource.password;
return updateresource.update_resource(client);
} | java | {
"resource": ""
} |
q11594 | aaauser.get | train | public static aaauser[] get(nitro_service service) throws Exception{
aaauser obj = new aaauser();
aaauser[] response = (aaauser[])obj.get_resources(service);
return response;
} | java | {
"resource": ""
} |
q11595 | aaauser.get | train | public static aaauser[] get(nitro_service service, aaauser_args args) throws Exception{
aaauser obj = new aaauser();
options option = new options();
option.set_args(nitro_util.object_to_string_withoutquotes(args));
aaauser[] response = (aaauser[])obj.get_resources(service, option);
return response;
} | java | {
"resource": ""
} |
q11596 | aaauser.get | train | public static aaauser get(nitro_service service, String username) throws Exception{
aaauser obj = new aaauser();
obj.set_username(username);
aaauser response = (aaauser) obj.get_resource(service);
return response;
} | java | {
"resource": ""
} |
q11597 | aaauser.get | train | public static aaauser[] get(nitro_service service, String username[]) throws Exception{
if (username !=null && username.length>0) {
aaauser response[] = new aaauser[username.length];
aaauser obj[] = new aaauser[username.length];
for (int i=0;i<username.length;i++) {
obj[i] = new aaauser();
obj[i].set_username(username[i]);
response[i] = (aaauser) obj[i].get_resource(service);
}
return response;
}
return null;
} | java | {
"resource": ""
} |
q11598 | authenticationcertpolicy_authenticationvserver_binding.get | train | public static authenticationcertpolicy_authenticationvserver_binding[] get(nitro_service service, String name) throws Exception{
authenticationcertpolicy_authenticationvserver_binding obj = new authenticationcertpolicy_authenticationvserver_binding();
obj.set_name(name);
authenticationcertpolicy_authenticationvserver_binding response[] = (authenticationcertpolicy_authenticationvserver_binding[]) obj.get_resources(service);
return response;
} | java | {
"resource": ""
} |
q11599 | MLEDependencyGrammar.addRule | train | public void addRule(IntDependency dependency, double count) {
if ( ! directional) {
dependency = new IntDependency(dependency.head, dependency.arg, false, dependency.distance);
}
if (verbose) System.err.println("Adding dep " + dependency);
// coreDependencies.incrementCount(dependency, count);
/*new IntDependency(dependency.head.word,
dependency.head.tag,
dependency.arg.word,
dependency.arg.tag,
dependency.leftHeaded,
dependency.distance), count);
*/
expandDependency(dependency, count);
// System.err.println("stopCounter: " + stopCounter);
// System.err.println("argCounter: " + argCounter);
} | java | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.