_id stringlengths 2 7 | title stringlengths 3 140 | partition stringclasses 3
values | text stringlengths 73 34.1k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
q10600 | sslcertkey.unlink | train | public static base_responses unlink(nitro_service client, sslcertkey resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
sslcertkey unlinkresources[] = new sslcertkey[resources.length];
for (int i=0;i<resources.length;i++){
unlinkresources[i] = new sslcertkey();
unlinkresources[i].certkey = resources[i].certkey;
}
result = perform_operation_bulk_request(client, unlinkresources,"unlink");
}
return result;
} | java | {
"resource": ""
} |
q10601 | sslcertkey.change | train | public static base_response change(nitro_service client, sslcertkey resource) throws Exception {
sslcertkey updateresource = new sslcertkey();
updateresource.certkey = resource.certkey;
updateresource.cert = resource.cert;
updateresource.key = resource.key;
updateresource.password = resource.password;
updateresource.fipskey = resource.fipskey;
updateresource.inform = resource.inform;
updateresource.passplain = resource.passplain;
updateresource.nodomaincheck = resource.nodomaincheck;
return updateresource.perform_operation(client,"update");
} | java | {
"resource": ""
} |
q10602 | sslcertkey.change | train | public static base_responses change(nitro_service client, sslcertkey resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
sslcertkey updateresources[] = new sslcertkey[resources.length];
for (int i=0;i<resources.length;i++){
updateresources[i] = new sslcertkey();
updateresources[i].certkey = resources[i].certkey;
updateresources[i].cert = resources[i].cert;
updateresources[i].key = resources[i].key;
updateresources[i].password = resources[i].password;
updateresources[i].fipskey = resources[i].fipskey;
updateresources[i].inform = resources[i].inform;
updateresources[i].passplain = resources[i].passplain;
updateresources[i].nodomaincheck = resources[i].nodomaincheck;
}
result = perform_operation_bulk_request(client, updateresources,"update");
}
return result;
} | java | {
"resource": ""
} |
q10603 | sslcertkey.get | train | public static sslcertkey[] get(nitro_service service) throws Exception{
sslcertkey obj = new sslcertkey();
sslcertkey[] response = (sslcertkey[])obj.get_resources(service);
return response;
} | java | {
"resource": ""
} |
q10604 | sslcertkey.get | train | public static sslcertkey get(nitro_service service, String certkey) throws Exception{
sslcertkey obj = new sslcertkey();
obj.set_certkey(certkey);
sslcertkey response = (sslcertkey) obj.get_resource(service);
return response;
} | java | {
"resource": ""
} |
q10605 | sslcertkey.get | train | public static sslcertkey[] get(nitro_service service, String certkey[]) throws Exception{
if (certkey !=null && certkey.length>0) {
sslcertkey response[] = new sslcertkey[certkey.length];
sslcertkey obj[] = new sslcertkey[certkey.length];
for (int i=0;i<certkey.length;i++) {
obj[i] = new sslcertkey();
obj[i].set_certkey(certkey[i]);
response[i] = (sslcertkey) obj[i].get_resource(service);
}
return response;
}
return null;
} | java | {
"resource": ""
} |
q10606 | nsconfig.clear | train | public static base_response clear(nitro_service client, nsconfig resource) throws Exception {
nsconfig clearresource = new nsconfig();
clearresource.force = resource.force;
clearresource.level = resource.level;
return clearresource.perform_operation(client,"clear");
} | java | {
"resource": ""
} |
q10607 | nsconfig.update | train | public static base_response update(nitro_service client, nsconfig resource) throws Exception {
nsconfig updateresource = new nsconfig();
updateresource.ipaddress = resource.ipaddress;
updateresource.netmask = resource.netmask;
updateresource.nsvlan = resource.nsvlan;
updateresource.ifnum = resource.ifnum;
updateresource.tagged = resource.tagged;
updateresource.httpport = resource.httpport;
updateresource.maxconn = resource.maxconn;
updateresource.maxreq = resource.maxreq;
updateresource.cip = resource.cip;
updateresource.cipheader = resource.cipheader;
updateresource.cookieversion = resource.cookieversion;
updateresource.securecookie = resource.securecookie;
updateresource.pmtumin = resource.pmtumin;
updateresource.pmtutimeout = resource.pmtutimeout;
updateresource.ftpportrange = resource.ftpportrange;
updateresource.crportrange = resource.crportrange;
updateresource.timezone = resource.timezone;
updateresource.grantquotamaxclient = resource.grantquotamaxclient;
updateresource.exclusivequotamaxclient = resource.exclusivequotamaxclient;
updateresource.grantquotaspillover = resource.grantquotaspillover;
updateresource.exclusivequotaspillover = resource.exclusivequotaspillover;
updateresource.nwfwmode = resource.nwfwmode;
return updateresource.update_resource(client);
} | java | {
"resource": ""
} |
q10608 | nsconfig.unset | train | public static base_response unset(nitro_service client, nsconfig resource, String[] args) throws Exception{
nsconfig unsetresource = new nsconfig();
return unsetresource.unset_resource(client,args);
} | java | {
"resource": ""
} |
q10609 | nsconfig.save | train | public static base_response save(nitro_service client) throws Exception {
nsconfig saveresource = new nsconfig();
return saveresource.perform_operation(client,"save");
} | java | {
"resource": ""
} |
q10610 | nsconfig.diff | train | public static nsconfig diff(nitro_service client, nsconfig resource) throws Exception {
nsconfig diffresource = new nsconfig();
diffresource.config1 = resource.config1;
diffresource.config2 = resource.config2;
diffresource.outtype = resource.outtype;
diffresource.template = resource.template;
diffresource.ignoredevicespecific = resource.ignoredevicespecific;
return (nsconfig)diffresource.perform_operationEx(client,"diff");
} | java | {
"resource": ""
} |
q10611 | nsconfig.get | train | public static nsconfig get(nitro_service service) throws Exception{
nsconfig obj = new nsconfig();
nsconfig[] response = (nsconfig[])obj.get_resources(service);
return response[0];
} | java | {
"resource": ""
} |
q10612 | aaauser_aaagroup_binding.get | train | public static aaauser_aaagroup_binding[] get(nitro_service service, String username) throws Exception{
aaauser_aaagroup_binding obj = new aaauser_aaagroup_binding();
obj.set_username(username);
aaauser_aaagroup_binding response[] = (aaauser_aaagroup_binding[]) obj.get_resources(service);
return response;
} | java | {
"resource": ""
} |
q10613 | authenticationlocalpolicy_authenticationvserver_binding.get | train | public static authenticationlocalpolicy_authenticationvserver_binding[] get(nitro_service service, String name) throws Exception{
authenticationlocalpolicy_authenticationvserver_binding obj = new authenticationlocalpolicy_authenticationvserver_binding();
obj.set_name(name);
authenticationlocalpolicy_authenticationvserver_binding response[] = (authenticationlocalpolicy_authenticationvserver_binding[]) obj.get_resources(service);
return response;
} | java | {
"resource": ""
} |
q10614 | responderparam.update | train | public static base_response update(nitro_service client, responderparam resource) throws Exception {
responderparam updateresource = new responderparam();
updateresource.undefaction = resource.undefaction;
return updateresource.update_resource(client);
} | java | {
"resource": ""
} |
q10615 | responderparam.unset | train | public static base_response unset(nitro_service client, responderparam resource, String[] args) throws Exception{
responderparam unsetresource = new responderparam();
return unsetresource.unset_resource(client,args);
} | java | {
"resource": ""
} |
q10616 | responderparam.get | train | public static responderparam get(nitro_service service) throws Exception{
responderparam obj = new responderparam();
responderparam[] response = (responderparam[])obj.get_resources(service);
return response[0];
} | java | {
"resource": ""
} |
q10617 | tmtrafficaction.add | train | public static base_response add(nitro_service client, tmtrafficaction resource) throws Exception {
tmtrafficaction addresource = new tmtrafficaction();
addresource.name = resource.name;
addresource.apptimeout = resource.apptimeout;
addresource.sso = resource.sso;
addresource.formssoaction = resource.formssoaction;
addresource.persistentcookie = resource.persistentcookie;
addresource.initiatelogout = resource.initiatelogout;
addresource.kcdaccount = resource.kcdaccount;
addresource.samlssoprofile = resource.samlssoprofile;
return addresource.add_resource(client);
} | java | {
"resource": ""
} |
q10618 | tmtrafficaction.add | train | public static base_responses add(nitro_service client, tmtrafficaction resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
tmtrafficaction addresources[] = new tmtrafficaction[resources.length];
for (int i=0;i<resources.length;i++){
addresources[i] = new tmtrafficaction();
addresources[i].name = resources[i].name;
addresources[i].apptimeout = resources[i].apptimeout;
addresources[i].sso = resources[i].sso;
addresources[i].formssoaction = resources[i].formssoaction;
addresources[i].persistentcookie = resources[i].persistentcookie;
addresources[i].initiatelogout = resources[i].initiatelogout;
addresources[i].kcdaccount = resources[i].kcdaccount;
addresources[i].samlssoprofile = resources[i].samlssoprofile;
}
result = add_bulk_request(client, addresources);
}
return result;
} | java | {
"resource": ""
} |
q10619 | tmtrafficaction.update | train | public static base_response update(nitro_service client, tmtrafficaction resource) throws Exception {
tmtrafficaction updateresource = new tmtrafficaction();
updateresource.name = resource.name;
updateresource.apptimeout = resource.apptimeout;
updateresource.sso = resource.sso;
updateresource.formssoaction = resource.formssoaction;
updateresource.persistentcookie = resource.persistentcookie;
updateresource.initiatelogout = resource.initiatelogout;
updateresource.kcdaccount = resource.kcdaccount;
updateresource.samlssoprofile = resource.samlssoprofile;
return updateresource.update_resource(client);
} | java | {
"resource": ""
} |
q10620 | tmtrafficaction.update | train | public static base_responses update(nitro_service client, tmtrafficaction resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
tmtrafficaction updateresources[] = new tmtrafficaction[resources.length];
for (int i=0;i<resources.length;i++){
updateresources[i] = new tmtrafficaction();
updateresources[i].name = resources[i].name;
updateresources[i].apptimeout = resources[i].apptimeout;
updateresources[i].sso = resources[i].sso;
updateresources[i].formssoaction = resources[i].formssoaction;
updateresources[i].persistentcookie = resources[i].persistentcookie;
updateresources[i].initiatelogout = resources[i].initiatelogout;
updateresources[i].kcdaccount = resources[i].kcdaccount;
updateresources[i].samlssoprofile = resources[i].samlssoprofile;
}
result = update_bulk_request(client, updateresources);
}
return result;
} | java | {
"resource": ""
} |
q10621 | tmtrafficaction.get | train | public static tmtrafficaction[] get(nitro_service service) throws Exception{
tmtrafficaction obj = new tmtrafficaction();
tmtrafficaction[] response = (tmtrafficaction[])obj.get_resources(service);
return response;
} | java | {
"resource": ""
} |
q10622 | tmtrafficaction.get | train | public static tmtrafficaction get(nitro_service service, String name) throws Exception{
tmtrafficaction obj = new tmtrafficaction();
obj.set_name(name);
tmtrafficaction response = (tmtrafficaction) obj.get_resource(service);
return response;
} | java | {
"resource": ""
} |
q10623 | tmglobal_binding.get | train | public static tmglobal_binding get(nitro_service service) throws Exception{
tmglobal_binding obj = new tmglobal_binding();
tmglobal_binding response = (tmglobal_binding) obj.get_resource(service);
return response;
} | java | {
"resource": ""
} |
q10624 | csvserver_spilloverpolicy_binding.get | train | public static csvserver_spilloverpolicy_binding[] get(nitro_service service, String name) throws Exception{
csvserver_spilloverpolicy_binding obj = new csvserver_spilloverpolicy_binding();
obj.set_name(name);
csvserver_spilloverpolicy_binding response[] = (csvserver_spilloverpolicy_binding[]) obj.get_resources(service);
return response;
} | java | {
"resource": ""
} |
q10625 | WordLemmaTag.compareTo | train | public int compareTo(WordLemmaTag wordLemmaTag) {
int first = word().compareTo(wordLemmaTag.word());
if (first != 0)
return first;
int second = lemma().compareTo(wordLemmaTag.lemma());
if (second != 0)
return second;
else
return tag().compareTo(wordLemmaTag.tag());
} | java | {
"resource": ""
} |
q10626 | autoscaleprofile.add | train | public static base_response add(nitro_service client, autoscaleprofile resource) throws Exception {
autoscaleprofile addresource = new autoscaleprofile();
addresource.name = resource.name;
addresource.type = resource.type;
addresource.url = resource.url;
addresource.apikey = resource.apikey;
addresource.sharedsecret = resource.sharedsecret;
return addresource.add_resource(client);
} | java | {
"resource": ""
} |
q10627 | autoscaleprofile.add | train | public static base_responses add(nitro_service client, autoscaleprofile resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
autoscaleprofile addresources[] = new autoscaleprofile[resources.length];
for (int i=0;i<resources.length;i++){
addresources[i] = new autoscaleprofile();
addresources[i].name = resources[i].name;
addresources[i].type = resources[i].type;
addresources[i].url = resources[i].url;
addresources[i].apikey = resources[i].apikey;
addresources[i].sharedsecret = resources[i].sharedsecret;
}
result = add_bulk_request(client, addresources);
}
return result;
} | java | {
"resource": ""
} |
q10628 | autoscaleprofile.update | train | public static base_response update(nitro_service client, autoscaleprofile resource) throws Exception {
autoscaleprofile updateresource = new autoscaleprofile();
updateresource.name = resource.name;
updateresource.url = resource.url;
updateresource.apikey = resource.apikey;
updateresource.sharedsecret = resource.sharedsecret;
return updateresource.update_resource(client);
} | java | {
"resource": ""
} |
q10629 | autoscaleprofile.update | train | public static base_responses update(nitro_service client, autoscaleprofile resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
autoscaleprofile updateresources[] = new autoscaleprofile[resources.length];
for (int i=0;i<resources.length;i++){
updateresources[i] = new autoscaleprofile();
updateresources[i].name = resources[i].name;
updateresources[i].url = resources[i].url;
updateresources[i].apikey = resources[i].apikey;
updateresources[i].sharedsecret = resources[i].sharedsecret;
}
result = update_bulk_request(client, updateresources);
}
return result;
} | java | {
"resource": ""
} |
q10630 | autoscaleprofile.get | train | public static autoscaleprofile[] get(nitro_service service) throws Exception{
autoscaleprofile obj = new autoscaleprofile();
autoscaleprofile[] response = (autoscaleprofile[])obj.get_resources(service);
return response;
} | java | {
"resource": ""
} |
q10631 | autoscaleprofile.get | train | public static autoscaleprofile get(nitro_service service, String name) throws Exception{
autoscaleprofile obj = new autoscaleprofile();
obj.set_name(name);
autoscaleprofile response = (autoscaleprofile) obj.get_resource(service);
return response;
} | java | {
"resource": ""
} |
q10632 | servicegroupbindings.get | train | public static servicegroupbindings get(nitro_service service, String servicegroupname) throws Exception{
servicegroupbindings obj = new servicegroupbindings();
obj.set_servicegroupname(servicegroupname);
servicegroupbindings response = (servicegroupbindings) obj.get_resource(service);
return response;
} | java | {
"resource": ""
} |
q10633 | lbmonitor_binding.get | train | public static lbmonitor_binding get(nitro_service service, String monitorname) throws Exception{
lbmonitor_binding obj = new lbmonitor_binding();
obj.set_monitorname(monitorname);
lbmonitor_binding response = (lbmonitor_binding) obj.get_resource(service);
return response;
} | java | {
"resource": ""
} |
q10634 | lbmonitor_binding.get | train | public static lbmonitor_binding[] get(nitro_service service, String monitorname[]) throws Exception{
if (monitorname !=null && monitorname.length>0) {
lbmonitor_binding response[] = new lbmonitor_binding[monitorname.length];
lbmonitor_binding obj[] = new lbmonitor_binding[monitorname.length];
for (int i=0;i<monitorname.length;i++) {
obj[i] = new lbmonitor_binding();
obj[i].set_monitorname(monitorname[i]);
response[i] = (lbmonitor_binding) obj[i].get_resource(service);
}
return response;
}
return null;
} | java | {
"resource": ""
} |
q10635 | GenericSorting.med3 | train | private static int med3(int a, int b, int c, IntComparator comp) {
int ab = comp.compare(a,b);
int ac = comp.compare(a,c);
int bc = comp.compare(b,c);
return (ab<0 ?
(bc<0 ? b : ac<0 ? c : a) :
(bc>0 ? b : ac>0 ? c : a));
} | java | {
"resource": ""
} |
q10636 | GenericSorting.reverse | train | private static void reverse(int first, int last, Swapper swapper) {
// no more needed since manually inlined
while (first < --last) {
swapper.swap(first++,last);
}
} | java | {
"resource": ""
} |
q10637 | authenticationradiuspolicy_vpnvserver_binding.get | train | public static authenticationradiuspolicy_vpnvserver_binding[] get(nitro_service service, String name) throws Exception{
authenticationradiuspolicy_vpnvserver_binding obj = new authenticationradiuspolicy_vpnvserver_binding();
obj.set_name(name);
authenticationradiuspolicy_vpnvserver_binding response[] = (authenticationradiuspolicy_vpnvserver_binding[]) obj.get_resources(service);
return response;
} | java | {
"resource": ""
} |
q10638 | rnat6_nsip6_binding.get | train | public static rnat6_nsip6_binding[] get(nitro_service service, String name) throws Exception{
rnat6_nsip6_binding obj = new rnat6_nsip6_binding();
obj.set_name(name);
rnat6_nsip6_binding response[] = (rnat6_nsip6_binding[]) obj.get_resources(service);
return response;
} | java | {
"resource": ""
} |
q10639 | authorizationpolicylabel_binding.get | train | public static authorizationpolicylabel_binding get(nitro_service service, String labelname) throws Exception{
authorizationpolicylabel_binding obj = new authorizationpolicylabel_binding();
obj.set_labelname(labelname);
authorizationpolicylabel_binding response = (authorizationpolicylabel_binding) obj.get_resource(service);
return response;
} | java | {
"resource": ""
} |
q10640 | MtasPennTreebankParser.createCodeMappings | train | private void createCodeMappings(MtasTokenIdFactory mtasTokenIdFactory,
Level level, String stringValue, int offsetStart, int offsetEnd,
int realOffsetStart, int realOffsetEnd, List<Integer> codePositions)
throws IOException {
String[] stringValues = MtasPennTreebankReader.createStrings(stringValue,
Pattern.quote(STRING_SPLITTER));
MtasToken token = new MtasTokenString(mtasTokenIdFactory.createTokenId(),
level.node, filterString(stringValues[0].trim()));
token.setOffset(offsetStart, offsetEnd);
token.setRealOffset(realOffsetStart, realOffsetEnd);
token.addPositions(codePositions.stream().mapToInt(i -> i).toArray());
tokenCollection.add(token);
level.tokens.add(token);
} | java | {
"resource": ""
} |
q10641 | MtasPennTreebankParser.createNodeMappings | train | private void createNodeMappings(MtasTokenIdFactory mtasTokenIdFactory,
Level level, Level parentLevel) {
MtasToken nodeToken;
if (level.node != null && level.positionStart != null
&& level.positionEnd != null) {
nodeToken = new MtasTokenString(mtasTokenIdFactory.createTokenId(),
level.node, "");
nodeToken.setOffset(level.offsetStart, level.offsetEnd);
nodeToken.setRealOffset(level.realOffsetStart, level.realOffsetEnd);
nodeToken.addPositionRange(level.positionStart, level.positionEnd);
tokenCollection.add(nodeToken);
if (parentLevel != null) {
parentLevel.tokens.add(nodeToken);
}
// only for first mapping(?)
for (MtasToken token : level.tokens) {
token.setParentId(nodeToken.getId());
}
}
} | java | {
"resource": ""
} |
q10642 | MtasPennTreebankParser.createStringMappings | train | private void createStringMappings(MtasTokenIdFactory mtasTokenIdFactory,
Level level, String stringValue, int offsetStart, int offsetEnd,
int position) throws IOException {
// System.out.println("createStringMappings string ");
String[] stringValues = MtasPennTreebankReader.createStrings(stringValue,
Pattern.quote(STRING_SPLITTER));
if (stringValues.length > 0 && !stringValues[0].trim().isEmpty()) {
MtasToken token = new MtasTokenString(mtasTokenIdFactory.createTokenId(),
"t", filterString(stringValues[0].trim()), position);
token.setOffset(offsetStart, offsetEnd);
tokenCollection.add(token);
level.tokens.add(token);
}
if (stringValues.length > 1 && !stringValues[1].trim().isEmpty()) {
MtasToken token = new MtasTokenString(mtasTokenIdFactory.createTokenId(),
"lemma", filterString(stringValues[1].trim()), position);
token.setOffset(offsetStart, offsetEnd);
tokenCollection.add(token);
level.tokens.add(token);
}
} | java | {
"resource": ""
} |
q10643 | dospolicy.add | train | public static base_response add(nitro_service client, dospolicy resource) throws Exception {
dospolicy addresource = new dospolicy();
addresource.name = resource.name;
addresource.qdepth = resource.qdepth;
addresource.cltdetectrate = resource.cltdetectrate;
return addresource.add_resource(client);
} | java | {
"resource": ""
} |
q10644 | dospolicy.add | train | public static base_responses add(nitro_service client, dospolicy resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
dospolicy addresources[] = new dospolicy[resources.length];
for (int i=0;i<resources.length;i++){
addresources[i] = new dospolicy();
addresources[i].name = resources[i].name;
addresources[i].qdepth = resources[i].qdepth;
addresources[i].cltdetectrate = resources[i].cltdetectrate;
}
result = add_bulk_request(client, addresources);
}
return result;
} | java | {
"resource": ""
} |
q10645 | dospolicy.update | train | public static base_response update(nitro_service client, dospolicy resource) throws Exception {
dospolicy updateresource = new dospolicy();
updateresource.name = resource.name;
updateresource.qdepth = resource.qdepth;
updateresource.cltdetectrate = resource.cltdetectrate;
return updateresource.update_resource(client);
} | java | {
"resource": ""
} |
q10646 | dospolicy.update | train | public static base_responses update(nitro_service client, dospolicy resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
dospolicy updateresources[] = new dospolicy[resources.length];
for (int i=0;i<resources.length;i++){
updateresources[i] = new dospolicy();
updateresources[i].name = resources[i].name;
updateresources[i].qdepth = resources[i].qdepth;
updateresources[i].cltdetectrate = resources[i].cltdetectrate;
}
result = update_bulk_request(client, updateresources);
}
return result;
} | java | {
"resource": ""
} |
q10647 | dospolicy.get | train | public static dospolicy[] get(nitro_service service) throws Exception{
dospolicy obj = new dospolicy();
dospolicy[] response = (dospolicy[])obj.get_resources(service);
return response;
} | java | {
"resource": ""
} |
q10648 | dospolicy.get | train | public static dospolicy get(nitro_service service, String name) throws Exception{
dospolicy obj = new dospolicy();
obj.set_name(name);
dospolicy response = (dospolicy) obj.get_resource(service);
return response;
} | java | {
"resource": ""
} |
q10649 | dospolicy.get_filtered | train | public static dospolicy[] get_filtered(nitro_service service, filtervalue[] filter) throws Exception{
dospolicy obj = new dospolicy();
options option = new options();
option.set_filter(filter);
dospolicy[] response = (dospolicy[]) obj.getfiltered(service, option);
return response;
} | java | {
"resource": ""
} |
q10650 | cacheselector.add | train | public static base_responses add(nitro_service client, cacheselector resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
cacheselector addresources[] = new cacheselector[resources.length];
for (int i=0;i<resources.length;i++){
addresources[i] = new cacheselector();
addresources[i].selectorname = resources[i].selectorname;
addresources[i].rule = resources[i].rule;
}
result = add_bulk_request(client, addresources);
}
return result;
} | java | {
"resource": ""
} |
q10651 | cacheselector.delete | train | public static base_response delete(nitro_service client, String selectorname) throws Exception {
cacheselector deleteresource = new cacheselector();
deleteresource.selectorname = selectorname;
return deleteresource.delete_resource(client);
} | java | {
"resource": ""
} |
q10652 | cacheselector.delete | train | public static base_responses delete(nitro_service client, String selectorname[]) throws Exception {
base_responses result = null;
if (selectorname != null && selectorname.length > 0) {
cacheselector deleteresources[] = new cacheselector[selectorname.length];
for (int i=0;i<selectorname.length;i++){
deleteresources[i] = new cacheselector();
deleteresources[i].selectorname = selectorname[i];
}
result = delete_bulk_request(client, deleteresources);
}
return result;
} | java | {
"resource": ""
} |
q10653 | cacheselector.update | train | public static base_response update(nitro_service client, cacheselector resource) throws Exception {
cacheselector updateresource = new cacheselector();
updateresource.selectorname = resource.selectorname;
updateresource.rule = resource.rule;
return updateresource.update_resource(client);
} | java | {
"resource": ""
} |
q10654 | cacheselector.get | train | public static cacheselector[] get(nitro_service service, options option) throws Exception{
cacheselector obj = new cacheselector();
cacheselector[] response = (cacheselector[])obj.get_resources(service,option);
return response;
} | java | {
"resource": ""
} |
q10655 | cacheselector.get | train | public static cacheselector get(nitro_service service, String selectorname) throws Exception{
cacheselector obj = new cacheselector();
obj.set_selectorname(selectorname);
cacheselector response = (cacheselector) obj.get_resource(service);
return response;
} | java | {
"resource": ""
} |
q10656 | cacheselector.get | train | public static cacheselector[] get(nitro_service service, String selectorname[]) throws Exception{
if (selectorname !=null && selectorname.length>0) {
cacheselector response[] = new cacheselector[selectorname.length];
cacheselector obj[] = new cacheselector[selectorname.length];
for (int i=0;i<selectorname.length;i++) {
obj[i] = new cacheselector();
obj[i].set_selectorname(selectorname[i]);
response[i] = (cacheselector) obj[i].get_resource(service);
}
return response;
}
return null;
} | java | {
"resource": ""
} |
q10657 | AbstractSequenceClassifier.makeReaderAndWriter | train | public DocumentReaderAndWriter<IN> makeReaderAndWriter() {
DocumentReaderAndWriter<IN> readerAndWriter;
try {
readerAndWriter = ((DocumentReaderAndWriter<IN>)
Class.forName(flags.readerAndWriter).newInstance());
} catch (Exception e) {
throw new RuntimeException(String.format("Error loading flags.readerAndWriter: '%s'", flags.readerAndWriter), e);
}
readerAndWriter.init(flags);
return readerAndWriter;
} | java | {
"resource": ""
} |
q10658 | AbstractSequenceClassifier.makePlainTextReaderAndWriter | train | public DocumentReaderAndWriter<IN> makePlainTextReaderAndWriter() {
String readerClassName = flags.plainTextDocumentReaderAndWriter;
// We set this default here if needed because there may be models
// which don't have the reader flag set
if (readerClassName == null) {
readerClassName = SeqClassifierFlags.DEFAULT_PLAIN_TEXT_READER;
}
DocumentReaderAndWriter<IN> readerAndWriter;
try {
readerAndWriter = ((DocumentReaderAndWriter<IN>) Class.forName(readerClassName).newInstance());
} catch (Exception e) {
throw new RuntimeException(String.format("Error loading flags.plainTextDocumentReaderAndWriter: '%s'", flags.plainTextDocumentReaderAndWriter), e);
}
readerAndWriter.init(flags);
return readerAndWriter;
} | java | {
"resource": ""
} |
q10659 | AbstractSequenceClassifier.classify | train | public List<List<IN>> classify(String str) {
ObjectBank<List<IN>> documents =
makeObjectBankFromString(str, plainTextReaderAndWriter);
List<List<IN>> result = new ArrayList<List<IN>>();
for (List<IN> document : documents) {
classify(document);
List<IN> sentence = new ArrayList<IN>();
for (IN wi : document) {
// TaggedWord word = new TaggedWord(wi.word(), wi.answer());
// sentence.add(word);
sentence.add(wi);
}
result.add(sentence);
}
return result;
} | java | {
"resource": ""
} |
q10660 | AbstractSequenceClassifier.classifyRaw | train | public List<List<IN>> classifyRaw(String str,
DocumentReaderAndWriter<IN> readerAndWriter) {
ObjectBank<List<IN>> documents =
makeObjectBankFromString(str, readerAndWriter);
List<List<IN>> result = new ArrayList<List<IN>>();
for (List<IN> document : documents) {
classify(document);
List<IN> sentence = new ArrayList<IN>();
for (IN wi : document) {
// TaggedWord word = new TaggedWord(wi.word(), wi.answer());
// sentence.add(word);
sentence.add(wi);
}
result.add(sentence);
}
return result;
} | java | {
"resource": ""
} |
q10661 | AbstractSequenceClassifier.classifyFile | train | public List<List<IN>> classifyFile(String filename) {
ObjectBank<List<IN>> documents =
makeObjectBankFromFile(filename, plainTextReaderAndWriter);
List<List<IN>> result = new ArrayList<List<IN>>();
for (List<IN> document : documents) {
// System.err.println(document);
classify(document);
List<IN> sentence = new ArrayList<IN>();
for (IN wi : document) {
sentence.add(wi);
// System.err.println(wi);
}
result.add(sentence);
}
return result;
} | java | {
"resource": ""
} |
q10662 | AbstractSequenceClassifier.printProbs | train | public void printProbs(String filename,
DocumentReaderAndWriter<IN> readerAndWriter) {
// only for the OCR data does this matter
flags.ocrTrain = false;
ObjectBank<List<IN>> docs =
makeObjectBankFromFile(filename, readerAndWriter);
printProbsDocuments(docs);
} | java | {
"resource": ""
} |
q10663 | AbstractSequenceClassifier.classifyDocumentStdin | train | public boolean classifyDocumentStdin(DocumentReaderAndWriter<IN> readerWriter)
throws IOException
{
BufferedReader is = new BufferedReader(new InputStreamReader(System.in, flags.inputEncoding));
String line;
String text = "";
String eol = "\n";
String sentence = "<s>";
int blankLines = 0;
while ((line = is.readLine()) != null) {
if (line.trim().equals("")) {
++blankLines;
if (blankLines > 3) {
return false;
} else if (blankLines > 2) {
ObjectBank<List<IN>> documents = makeObjectBankFromString(text, readerWriter);
classifyAndWriteAnswers(documents, readerWriter);
text = "";
} else {
text += sentence + eol;
}
} else {
text += line + eol;
blankLines = 0;
}
}
// Classify last document before input stream end
if (text.trim() != "") {
ObjectBank<List<IN>> documents = makeObjectBankFromString(text, readerWriter);
classifyAndWriteAnswers(documents, readerWriter);
}
return (line == null); // reached eol
} | java | {
"resource": ""
} |
q10664 | AbstractSequenceClassifier.classifySentenceStdin | train | public boolean classifySentenceStdin(DocumentReaderAndWriter<IN> readerWriter)
throws IOException
{
BufferedReader is = new BufferedReader(new InputStreamReader(System.in, flags.inputEncoding));
String line;
String text = "";
String eol = "\n";
String sentence = "<s>";
while ((line = is.readLine()) != null) {
if (line.trim().equals("")) {
text += sentence + eol;
ObjectBank<List<IN>> documents = makeObjectBankFromString(text, readerWriter);
classifyAndWriteAnswers(documents, readerWriter);
text = "";
} else {
text += line + eol;
}
}
if (text.trim().equals("")) {
return false;
}
return true;
} | java | {
"resource": ""
} |
q10665 | AbstractSequenceClassifier.classifyAndWriteViterbiSearchGraph | train | public void classifyAndWriteViterbiSearchGraph(String testFile, String searchGraphPrefix, DocumentReaderAndWriter<IN> readerAndWriter) throws IOException {
Timing timer = new Timing();
ObjectBank<List<IN>> documents =
makeObjectBankFromFile(testFile, readerAndWriter);
int numWords = 0;
int numSentences = 0;
for (List<IN> doc : documents) {
DFSA<String, Integer> tagLattice = getViterbiSearchGraph(doc, AnswerAnnotation.class);
numWords += doc.size();
PrintWriter latticeWriter = new PrintWriter(new FileOutputStream(searchGraphPrefix + '.' + numSentences
+ ".wlattice"));
PrintWriter vsgWriter = new PrintWriter(new FileOutputStream(searchGraphPrefix + '.' + numSentences + ".lattice"));
if (readerAndWriter instanceof LatticeWriter)
((LatticeWriter) readerAndWriter).printLattice(tagLattice, doc, latticeWriter);
tagLattice.printAttFsmFormat(vsgWriter);
latticeWriter.close();
vsgWriter.close();
numSentences++;
}
long millis = timer.stop();
double wordspersec = numWords / (((double) millis) / 1000);
NumberFormat nf = new DecimalFormat("0.00"); // easier way!
System.err.println(this.getClass().getName() + " tagged " + numWords + " words in " + numSentences
+ " documents at " + nf.format(wordspersec) + " words per second.");
} | java | {
"resource": ""
} |
q10666 | AbstractSequenceClassifier.writeAnswers | train | public void writeAnswers(List<IN> doc, PrintWriter printWriter,
DocumentReaderAndWriter<IN> readerAndWriter)
throws IOException {
if (flags.lowerNewgeneThreshold) {
return;
}
if (flags.numRuns <= 1) {
readerAndWriter.printAnswers(doc, printWriter);
// out.println();
printWriter.flush();
}
} | java | {
"resource": ""
} |
q10667 | AbstractSequenceClassifier.printResults | train | public static void printResults(Counter<String> entityTP, Counter<String> entityFP,
Counter<String> entityFN) {
Set<String> entities = new TreeSet<String>();
entities.addAll(entityTP.keySet());
entities.addAll(entityFP.keySet());
entities.addAll(entityFN.keySet());
boolean printedHeader = false;
for (String entity : entities) {
double tp = entityTP.getCount(entity);
double fp = entityFP.getCount(entity);
double fn = entityFN.getCount(entity);
printedHeader = printPRLine(entity, tp, fp, fn, printedHeader);
}
double tp = entityTP.totalCount();
double fp = entityFP.totalCount();
double fn = entityFN.totalCount();
printedHeader = printPRLine("Totals", tp, fp, fn, printedHeader);
} | java | {
"resource": ""
} |
q10668 | AbstractSequenceClassifier.loadClassifier | train | public void loadClassifier(InputStream in, Properties props) throws IOException, ClassCastException,
ClassNotFoundException {
loadClassifier(new ObjectInputStream(in), props);
} | java | {
"resource": ""
} |
q10669 | AbstractSequenceClassifier.loadClassifier | train | public void loadClassifier(String loadPath, Properties props) throws ClassCastException, IOException, ClassNotFoundException {
InputStream is;
// ms, 10-04-2010: check first is this path exists in our CLASSPATH. This
// takes priority over the file system.
if ((is = loadStreamFromClasspath(loadPath)) != null) {
Timing.startDoing("Loading classifier from " + loadPath);
loadClassifier(is);
is.close();
Timing.endDoing();
} else {
loadClassifier(new File(loadPath), props);
}
} | java | {
"resource": ""
} |
q10670 | AbstractSequenceClassifier.loadClassifier | train | public void loadClassifier(File file, Properties props) throws ClassCastException, IOException,
ClassNotFoundException {
Timing.startDoing("Loading classifier from " + file.getAbsolutePath());
BufferedInputStream bis;
if (file.getName().endsWith(".gz")) {
bis = new BufferedInputStream(new GZIPInputStream(new FileInputStream(file)));
} else {
bis = new BufferedInputStream(new FileInputStream(file));
}
loadClassifier(bis, props);
bis.close();
Timing.endDoing();
} | java | {
"resource": ""
} |
q10671 | AbstractSequenceClassifier.printFeatures | train | protected void printFeatures(IN wi, Collection<String> features) {
if (flags.printFeatures == null || writtenNum > flags.printFeaturesUpto) {
return;
}
try {
if (cliqueWriter == null) {
cliqueWriter = new PrintWriter(new FileOutputStream("feats" + flags.printFeatures + ".txt"), true);
writtenNum = 0;
}
} catch (Exception ioe) {
throw new RuntimeException(ioe);
}
if (writtenNum >= flags.printFeaturesUpto) {
return;
}
if (wi instanceof CoreLabel) {
cliqueWriter.print(wi.get(TextAnnotation.class) + ' ' + wi.get(PartOfSpeechAnnotation.class) + ' '
+ wi.get(CoreAnnotations.GoldAnswerAnnotation.class) + '\t');
} else {
cliqueWriter.print(wi.get(CoreAnnotations.TextAnnotation.class)
+ wi.get(CoreAnnotations.GoldAnswerAnnotation.class) + '\t');
}
boolean first = true;
for (Object feat : features) {
if (first) {
first = false;
} else {
cliqueWriter.print(" ");
}
cliqueWriter.print(feat);
}
cliqueWriter.println();
writtenNum++;
} | java | {
"resource": ""
} |
q10672 | aaauser_intranetip_binding.get | train | public static aaauser_intranetip_binding[] get(nitro_service service, String username) throws Exception{
aaauser_intranetip_binding obj = new aaauser_intranetip_binding();
obj.set_username(username);
aaauser_intranetip_binding response[] = (aaauser_intranetip_binding[]) obj.get_resources(service);
return response;
} | java | {
"resource": ""
} |
q10673 | TregexMatcher.find | train | public boolean find() {
if (findIterator == null) {
findIterator = root.iterator();
}
if (findCurrent != null && matches()) {
return true;
}
while (findIterator.hasNext()) {
findCurrent = findIterator.next();
resetChildIter(findCurrent);
if (matches()) {
return true;
}
}
return false;
} | java | {
"resource": ""
} |
q10674 | sslciphersuite.get | train | public static sslciphersuite[] get(nitro_service service, options option) throws Exception{
sslciphersuite obj = new sslciphersuite();
sslciphersuite[] response = (sslciphersuite[])obj.get_resources(service,option);
return response;
} | java | {
"resource": ""
} |
q10675 | sslciphersuite.get | train | public static sslciphersuite get(nitro_service service, String ciphername) throws Exception{
sslciphersuite obj = new sslciphersuite();
obj.set_ciphername(ciphername);
sslciphersuite response = (sslciphersuite) obj.get_resource(service);
return response;
} | java | {
"resource": ""
} |
q10676 | sslciphersuite.get | train | public static sslciphersuite[] get(nitro_service service, String ciphername[]) throws Exception{
if (ciphername !=null && ciphername.length>0) {
sslciphersuite response[] = new sslciphersuite[ciphername.length];
sslciphersuite obj[] = new sslciphersuite[ciphername.length];
for (int i=0;i<ciphername.length;i++) {
obj[i] = new sslciphersuite();
obj[i].set_ciphername(ciphername[i]);
response[i] = (sslciphersuite) obj[i].get_resource(service);
}
return response;
}
return null;
} | java | {
"resource": ""
} |
q10677 | sslcipher_individualcipher_binding.get | train | public static sslcipher_individualcipher_binding[] get(nitro_service service, String ciphergroupname) throws Exception{
sslcipher_individualcipher_binding obj = new sslcipher_individualcipher_binding();
obj.set_ciphergroupname(ciphergroupname);
sslcipher_individualcipher_binding response[] = (sslcipher_individualcipher_binding[]) obj.get_resources(service);
return response;
} | java | {
"resource": ""
} |
q10678 | sslcipher_individualcipher_binding.get_filtered | train | public static sslcipher_individualcipher_binding[] get_filtered(nitro_service service, String ciphergroupname, filtervalue[] filter) throws Exception{
sslcipher_individualcipher_binding obj = new sslcipher_individualcipher_binding();
obj.set_ciphergroupname(ciphergroupname);
options option = new options();
option.set_filter(filter);
sslcipher_individualcipher_binding[] response = (sslcipher_individualcipher_binding[]) obj.getfiltered(service, option);
return response;
} | java | {
"resource": ""
} |
q10679 | sslcipher_individualcipher_binding.count | train | public static long count(nitro_service service, String ciphergroupname) throws Exception{
sslcipher_individualcipher_binding obj = new sslcipher_individualcipher_binding();
obj.set_ciphergroupname(ciphergroupname);
options option = new options();
option.set_count(true);
sslcipher_individualcipher_binding response[] = (sslcipher_individualcipher_binding[]) obj.get_resources(service,option);
if (response != null) {
return response[0].__count;
}
return 0;
} | java | {
"resource": ""
} |
q10680 | inat.add | train | public static base_response add(nitro_service client, inat resource) throws Exception {
inat addresource = new inat();
addresource.name = resource.name;
addresource.publicip = resource.publicip;
addresource.privateip = resource.privateip;
addresource.tcpproxy = resource.tcpproxy;
addresource.ftp = resource.ftp;
addresource.tftp = resource.tftp;
addresource.usip = resource.usip;
addresource.usnip = resource.usnip;
addresource.proxyip = resource.proxyip;
addresource.mode = resource.mode;
addresource.td = resource.td;
return addresource.add_resource(client);
} | java | {
"resource": ""
} |
q10681 | inat.add | train | public static base_responses add(nitro_service client, inat resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
inat addresources[] = new inat[resources.length];
for (int i=0;i<resources.length;i++){
addresources[i] = new inat();
addresources[i].name = resources[i].name;
addresources[i].publicip = resources[i].publicip;
addresources[i].privateip = resources[i].privateip;
addresources[i].tcpproxy = resources[i].tcpproxy;
addresources[i].ftp = resources[i].ftp;
addresources[i].tftp = resources[i].tftp;
addresources[i].usip = resources[i].usip;
addresources[i].usnip = resources[i].usnip;
addresources[i].proxyip = resources[i].proxyip;
addresources[i].mode = resources[i].mode;
addresources[i].td = resources[i].td;
}
result = add_bulk_request(client, addresources);
}
return result;
} | java | {
"resource": ""
} |
q10682 | inat.update | train | public static base_response update(nitro_service client, inat resource) throws Exception {
inat updateresource = new inat();
updateresource.name = resource.name;
updateresource.privateip = resource.privateip;
updateresource.tcpproxy = resource.tcpproxy;
updateresource.ftp = resource.ftp;
updateresource.tftp = resource.tftp;
updateresource.usip = resource.usip;
updateresource.usnip = resource.usnip;
updateresource.proxyip = resource.proxyip;
updateresource.mode = resource.mode;
return updateresource.update_resource(client);
} | java | {
"resource": ""
} |
q10683 | inat.update | train | public static base_responses update(nitro_service client, inat resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
inat updateresources[] = new inat[resources.length];
for (int i=0;i<resources.length;i++){
updateresources[i] = new inat();
updateresources[i].name = resources[i].name;
updateresources[i].privateip = resources[i].privateip;
updateresources[i].tcpproxy = resources[i].tcpproxy;
updateresources[i].ftp = resources[i].ftp;
updateresources[i].tftp = resources[i].tftp;
updateresources[i].usip = resources[i].usip;
updateresources[i].usnip = resources[i].usnip;
updateresources[i].proxyip = resources[i].proxyip;
updateresources[i].mode = resources[i].mode;
}
result = update_bulk_request(client, updateresources);
}
return result;
} | java | {
"resource": ""
} |
q10684 | inat.get | train | public static inat[] get(nitro_service service) throws Exception{
inat obj = new inat();
inat[] response = (inat[])obj.get_resources(service);
return response;
} | java | {
"resource": ""
} |
q10685 | inat.get | train | public static inat get(nitro_service service, String name) throws Exception{
inat obj = new inat();
obj.set_name(name);
inat response = (inat) obj.get_resource(service);
return response;
} | java | {
"resource": ""
} |
q10686 | vpnclientlessaccesspolicy.add | train | public static base_response add(nitro_service client, vpnclientlessaccesspolicy resource) throws Exception {
vpnclientlessaccesspolicy addresource = new vpnclientlessaccesspolicy();
addresource.name = resource.name;
addresource.rule = resource.rule;
addresource.profilename = resource.profilename;
return addresource.add_resource(client);
} | java | {
"resource": ""
} |
q10687 | vpnclientlessaccesspolicy.update | train | public static base_response update(nitro_service client, vpnclientlessaccesspolicy resource) throws Exception {
vpnclientlessaccesspolicy updateresource = new vpnclientlessaccesspolicy();
updateresource.name = resource.name;
updateresource.rule = resource.rule;
updateresource.profilename = resource.profilename;
return updateresource.update_resource(client);
} | java | {
"resource": ""
} |
q10688 | vpnclientlessaccesspolicy.get | train | public static vpnclientlessaccesspolicy[] get(nitro_service service) throws Exception{
vpnclientlessaccesspolicy obj = new vpnclientlessaccesspolicy();
vpnclientlessaccesspolicy[] response = (vpnclientlessaccesspolicy[])obj.get_resources(service);
return response;
} | java | {
"resource": ""
} |
q10689 | vpnclientlessaccesspolicy.get | train | public static vpnclientlessaccesspolicy get(nitro_service service, String name) throws Exception{
vpnclientlessaccesspolicy obj = new vpnclientlessaccesspolicy();
obj.set_name(name);
vpnclientlessaccesspolicy response = (vpnclientlessaccesspolicy) obj.get_resource(service);
return response;
} | java | {
"resource": ""
} |
q10690 | vpnclientlessaccesspolicy.get_filtered | train | public static vpnclientlessaccesspolicy[] get_filtered(nitro_service service, filtervalue[] filter) throws Exception{
vpnclientlessaccesspolicy obj = new vpnclientlessaccesspolicy();
options option = new options();
option.set_filter(filter);
vpnclientlessaccesspolicy[] response = (vpnclientlessaccesspolicy[]) obj.getfiltered(service, option);
return response;
} | java | {
"resource": ""
} |
q10691 | aaagroup_vpnsessionpolicy_binding.get | train | public static aaagroup_vpnsessionpolicy_binding[] get(nitro_service service, String groupname) throws Exception{
aaagroup_vpnsessionpolicy_binding obj = new aaagroup_vpnsessionpolicy_binding();
obj.set_groupname(groupname);
aaagroup_vpnsessionpolicy_binding response[] = (aaagroup_vpnsessionpolicy_binding[]) obj.get_resources(service);
return response;
} | java | {
"resource": ""
} |
q10692 | PennTreebankLanguagePack.main | train | public static void main(String[] args) {
TreebankLanguagePack tlp = new PennTreebankLanguagePack();
System.out.println("Start symbol: " + tlp.startSymbol());
String start = tlp.startSymbol();
System.out.println("Should be true: " + (tlp.isStartSymbol(start)));
String[] strs = {"-", "-LLB-", "NP-2", "NP=3", "NP-LGS", "NP-TMP=3"};
for (String str : strs) {
System.out.println("String: " + str + " basic: " + tlp.basicCategory(str) + " basicAndFunc: " + tlp.categoryAndFunction(str));
}
} | java | {
"resource": ""
} |
q10693 | auditsyslogpolicy_lbvserver_binding.get | train | public static auditsyslogpolicy_lbvserver_binding[] get(nitro_service service, String name) throws Exception{
auditsyslogpolicy_lbvserver_binding obj = new auditsyslogpolicy_lbvserver_binding();
obj.set_name(name);
auditsyslogpolicy_lbvserver_binding response[] = (auditsyslogpolicy_lbvserver_binding[]) obj.get_resources(service);
return response;
} | java | {
"resource": ""
} |
q10694 | appfwpolicylabel_policybinding_binding.get | train | public static appfwpolicylabel_policybinding_binding[] get(nitro_service service, String labelname) throws Exception{
appfwpolicylabel_policybinding_binding obj = new appfwpolicylabel_policybinding_binding();
obj.set_labelname(labelname);
appfwpolicylabel_policybinding_binding response[] = (appfwpolicylabel_policybinding_binding[]) obj.get_resources(service);
return response;
} | java | {
"resource": ""
} |
q10695 | nsacl6_stats.get | train | public static nsacl6_stats[] get(nitro_service service) throws Exception{
nsacl6_stats obj = new nsacl6_stats();
nsacl6_stats[] response = (nsacl6_stats[])obj.stat_resources(service);
return response;
} | java | {
"resource": ""
} |
q10696 | nsacl6_stats.get | train | public static nsacl6_stats get(nitro_service service, String acl6name) throws Exception{
nsacl6_stats obj = new nsacl6_stats();
obj.set_acl6name(acl6name);
nsacl6_stats response = (nsacl6_stats) obj.stat_resource(service);
return response;
} | java | {
"resource": ""
} |
q10697 | vpnglobal_vpntrafficpolicy_binding.get | train | public static vpnglobal_vpntrafficpolicy_binding[] get(nitro_service service) throws Exception{
vpnglobal_vpntrafficpolicy_binding obj = new vpnglobal_vpntrafficpolicy_binding();
vpnglobal_vpntrafficpolicy_binding response[] = (vpnglobal_vpntrafficpolicy_binding[]) obj.get_resources(service);
return response;
} | java | {
"resource": ""
} |
q10698 | authenticationnegotiatepolicy_binding.get | train | public static authenticationnegotiatepolicy_binding get(nitro_service service, String name) throws Exception{
authenticationnegotiatepolicy_binding obj = new authenticationnegotiatepolicy_binding();
obj.set_name(name);
authenticationnegotiatepolicy_binding response = (authenticationnegotiatepolicy_binding) obj.get_resource(service);
return response;
} | java | {
"resource": ""
} |
q10699 | WordStemmer.main | train | public static void main(String[] args) {
Treebank treebank = new DiskTreebank();
treebank.loadPath(args[0]);
WordStemmer ls = new WordStemmer();
for (Tree tree : treebank) {
ls.visitTree(tree);
System.out.println(tree);
}
} | java | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.