idx
int64
0
165k
question
stringlengths
73
4.15k
target
stringlengths
5
918
len_question
int64
21
890
len_target
int64
3
255
3,300
public static systemcpu_stats [ ] get ( nitro_service service ) throws Exception { systemcpu_stats obj = new systemcpu_stats ( ) ; systemcpu_stats [ ] response = ( systemcpu_stats [ ] ) obj . stat_resources ( service ) ; return response ; }
Use this API to fetch the statistics of all systemcpu_stats resources that are configured on netscaler .
62
22
3,301
public static systemcpu_stats get ( nitro_service service , Long id ) throws Exception { systemcpu_stats obj = new systemcpu_stats ( ) ; obj . set_id ( id ) ; systemcpu_stats response = ( systemcpu_stats ) obj . stat_resource ( service ) ; return response ; }
Use this API to fetch statistics of systemcpu_stats resource of given name .
68
16
3,302
final public TregexPattern Root ( ) throws ParseException { TregexPattern node ; node = SubNode ( Relation . ROOT ) ; jj_consume_token ( 11 ) ; { if ( true ) return node ; } throw new Error ( "Missing return statement in function" ) ; }
first expr is return val - passed up the tree after a production
64
13
3,303
final public TregexPattern Node ( Relation r ) throws ParseException { TregexPattern node ; switch ( ( jj_ntk == - 1 ) ? jj_ntk ( ) : jj_ntk ) { case 12 : jj_consume_token ( 12 ) ; node = SubNode ( r ) ; jj_consume_token ( 13 ) ; break ; case IDENTIFIER : case BLANK : case REGEX : case 14 : case 15 : case 18 : case 19 : node = ModDescription ( r ) ; break ; default : jj_la1 [ 0 ] = jj_gen ; jj_consume_token ( - 1 ) ; throw new ParseException ( ) ; } { if ( true ) return node ; } throw new Error ( "Missing return statement in function" ) ; }
pertains to this node gets passed all the way down to the Description node
180
15
3,304
public ParseException generateParseException ( ) { jj_expentries . clear ( ) ; boolean [ ] la1tokens = new boolean [ 25 ] ; if ( jj_kind >= 0 ) { la1tokens [ jj_kind ] = true ; jj_kind = - 1 ; } for ( int i = 0 ; i < 23 ; i ++ ) { if ( jj_la1 [ i ] == jj_gen ) { for ( int j = 0 ; j < 32 ; j ++ ) { if ( ( jj_la1_0 [ i ] & ( 1 << j ) ) != 0 ) { la1tokens [ j ] = true ; } } } } for ( int i = 0 ; i < 25 ; i ++ ) { if ( la1tokens [ i ] ) { jj_expentry = new int [ 1 ] ; jj_expentry [ 0 ] = i ; jj_expentries . add ( jj_expentry ) ; } } int [ ] [ ] exptokseq = new int [ jj_expentries . size ( ) ] [ ] ; for ( int i = 0 ; i < jj_expentries . size ( ) ; i ++ ) { exptokseq [ i ] = jj_expentries . get ( i ) ; } return new ParseException ( token , exptokseq , tokenImage ) ; }
Generate ParseException .
314
6
3,305
public static base_response sync ( nitro_service client , hafiles resource ) throws Exception { hafiles syncresource = new hafiles ( ) ; syncresource . mode = resource . mode ; return syncresource . perform_operation ( client , "sync" ) ; }
Use this API to sync hafiles .
56
8
3,306
public static base_response clear ( nitro_service client , lbpersistentsessions resource ) throws Exception { lbpersistentsessions clearresource = new lbpersistentsessions ( ) ; clearresource . vserver = resource . vserver ; clearresource . persistenceparameter = resource . persistenceparameter ; return clearresource . perform_operation ( client , "clear" ) ; }
Use this API to clear lbpersistentsessions .
80
11
3,307
public static base_responses clear ( nitro_service client , lbpersistentsessions resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { lbpersistentsessions clearresources [ ] = new lbpersistentsessions [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { clearresources [ i ] = new lbpersistentsessions ( ) ; clearresources [ i ] . vserver = resources [ i ] . vserver ; clearresources [ i ] . persistenceparameter = resources [ i ] . persistenceparameter ; } result = perform_operation_bulk_request ( client , clearresources , "clear" ) ; } return result ; }
Use this API to clear lbpersistentsessions resources .
164
12
3,308
public static lbpersistentsessions [ ] get ( nitro_service service , options option ) throws Exception { lbpersistentsessions obj = new lbpersistentsessions ( ) ; lbpersistentsessions [ ] response = ( lbpersistentsessions [ ] ) obj . get_resources ( service , option ) ; return response ; }
Use this API to fetch all the lbpersistentsessions resources that are configured on netscaler .
72
21
3,309
public static lbpersistentsessions [ ] get ( nitro_service service , lbpersistentsessions_args args ) throws Exception { lbpersistentsessions obj = new lbpersistentsessions ( ) ; options option = new options ( ) ; option . set_args ( nitro_util . object_to_string_withoutquotes ( args ) ) ; lbpersistentsessions [ ] response = ( lbpersistentsessions [ ] ) obj . get_resources ( service , option ) ; return response ; }
Use this API to fetch all the lbpersistentsessions resources that are configured on netscaler . This uses lbpersistentsessions_args which is a way to provide additional arguments while fetching the resources .
111
44
3,310
public static vpnvserver_staserver_binding [ ] get ( nitro_service service , String name ) throws Exception { vpnvserver_staserver_binding obj = new vpnvserver_staserver_binding ( ) ; obj . set_name ( name ) ; vpnvserver_staserver_binding response [ ] = ( vpnvserver_staserver_binding [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch vpnvserver_staserver_binding resources of given name .
104
20
3,311
public static appfwprofile_trustedlearningclients_binding [ ] get ( nitro_service service , String name ) throws Exception { appfwprofile_trustedlearningclients_binding obj = new appfwprofile_trustedlearningclients_binding ( ) ; obj . set_name ( name ) ; appfwprofile_trustedlearningclients_binding response [ ] = ( appfwprofile_trustedlearningclients_binding [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch appfwprofile_trustedlearningclients_binding resources of given name .
109
21
3,312
public static void run ( ProcessBuilder builder , Writer output , Writer error ) { try { Process process = builder . start ( ) ; consume ( process , output , error ) ; int result = process . waitFor ( ) ; if ( result != 0 ) { String msg = "process %s exited with value %d" ; throw new ProcessException ( String . format ( msg , builder . command ( ) , result ) ) ; } } catch ( InterruptedException e ) { throw new ProcessException ( e ) ; } catch ( IOException e ) { throw new ProcessException ( e ) ; } }
Start the process defined by the ProcessBuilder and run until complete .
124
13
3,313
private static void consume ( Process process , Writer outputWriter , Writer errorWriter ) throws IOException , InterruptedException { if ( outputWriter == null ) { outputWriter = new OutputStreamWriter ( System . out ) ; } if ( errorWriter == null ) { errorWriter = new OutputStreamWriter ( System . err ) ; } WriterThread outputThread = new WriterThread ( process . getInputStream ( ) , outputWriter ) ; WriterThread errorThread = new WriterThread ( process . getErrorStream ( ) , errorWriter ) ; outputThread . start ( ) ; errorThread . start ( ) ; outputThread . join ( ) ; errorThread . join ( ) ; }
Helper method that consumes the output and error streams of a process .
139
13
3,314
public static int getPID ( ) throws IOException { // note that we ask Perl for "ppid" -- process ID of parent -- that's us String [ ] cmd = new String [ ] { "perl" , "-e" , "print getppid() . \"\\n\";" } ; StringBuilder out = new StringBuilder ( ) ; runShellCommand ( cmd , out ) ; return Integer . parseInt ( out . toString ( ) ) ; }
Returns the process ID via an awful hack .
99
9
3,315
public static appqoe_stats get ( nitro_service service ) throws Exception { appqoe_stats obj = new appqoe_stats ( ) ; appqoe_stats [ ] response = ( appqoe_stats [ ] ) obj . stat_resources ( service ) ; return response [ 0 ] ; }
Use this API to fetch the statistics of all appqoe_stats resources that are configured on netscaler .
68
23
3,316
public static transformpolicy_binding get ( nitro_service service , String name ) throws Exception { transformpolicy_binding obj = new transformpolicy_binding ( ) ; obj . set_name ( name ) ; transformpolicy_binding response = ( transformpolicy_binding ) obj . get_resource ( service ) ; return response ; }
Use this API to fetch transformpolicy_binding resource of given name .
68
14
3,317
public static gslbvserver_binding get ( nitro_service service , String name ) throws Exception { gslbvserver_binding obj = new gslbvserver_binding ( ) ; obj . set_name ( name ) ; gslbvserver_binding response = ( gslbvserver_binding ) obj . get_resource ( service ) ; return response ; }
Use this API to fetch gslbvserver_binding resource of given name .
83
17
3,318
public static aaauser_vpnsessionpolicy_binding [ ] get ( nitro_service service , String username ) throws Exception { aaauser_vpnsessionpolicy_binding obj = new aaauser_vpnsessionpolicy_binding ( ) ; obj . set_username ( username ) ; aaauser_vpnsessionpolicy_binding response [ ] = ( aaauser_vpnsessionpolicy_binding [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch aaauser_vpnsessionpolicy_binding resources of given name .
104
20
3,319
public static tmtrafficpolicy_csvserver_binding [ ] get ( nitro_service service , String name ) throws Exception { tmtrafficpolicy_csvserver_binding obj = new tmtrafficpolicy_csvserver_binding ( ) ; obj . set_name ( name ) ; tmtrafficpolicy_csvserver_binding response [ ] = ( tmtrafficpolicy_csvserver_binding [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch tmtrafficpolicy_csvserver_binding resources of given name .
104
20
3,320
public static vpnclientlessaccesspolicy_vpnglobal_binding [ ] get ( nitro_service service , String name ) throws Exception { vpnclientlessaccesspolicy_vpnglobal_binding obj = new vpnclientlessaccesspolicy_vpnglobal_binding ( ) ; obj . set_name ( name ) ; vpnclientlessaccesspolicy_vpnglobal_binding response [ ] = ( vpnclientlessaccesspolicy_vpnglobal_binding [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch vpnclientlessaccesspolicy_vpnglobal_binding resources of given name .
119
23
3,321
public int numCorrect ( int recall ) { int correct = 0 ; for ( int j = scores . length - 1 ; j >= scores . length - recall ; j -- ) { if ( isCorrect [ j ] ) { correct ++ ; } } return correct ; }
how many correct do we have if we return the most confident num recall ones
55
15
3,322
public static tmsessionpolicy_aaagroup_binding [ ] get ( nitro_service service , String name ) throws Exception { tmsessionpolicy_aaagroup_binding obj = new tmsessionpolicy_aaagroup_binding ( ) ; obj . set_name ( name ) ; tmsessionpolicy_aaagroup_binding response [ ] = ( tmsessionpolicy_aaagroup_binding [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch tmsessionpolicy_aaagroup_binding resources of given name .
104
20
3,323
protected String cleanUpLabel ( String label ) { if ( label == null ) { return "" ; // This shouldn't really happen, but can happen if there are unlabeled nodes further down a tree, as apparently happens in at least the 20100730 era American National Corpus } boolean nptemp = NPTmpPattern . matcher ( label ) . matches ( ) ; boolean npadv = NPAdvPattern . matcher ( label ) . matches ( ) ; label = tlp . basicCategory ( label ) ; if ( nptemp ) { label = label + "-TMP" ; } else if ( npadv ) { label = label + "-ADV" ; } return label ; }
only leaves NP - TMP and NP - ADV
146
10
3,324
public double computeProb ( InfoTemplate temp ) { return computeProb ( temp . wname , temp . wacronym , temp . cname , temp . cacronym , temp . whomepage , temp . chomepage ) ; }
Scores the partial template containing only the fields relevant to the score .
53
14
3,325
public static authenticationlocalpolicy_vpnglobal_binding [ ] get ( nitro_service service , String name ) throws Exception { authenticationlocalpolicy_vpnglobal_binding obj = new authenticationlocalpolicy_vpnglobal_binding ( ) ; obj . set_name ( name ) ; authenticationlocalpolicy_vpnglobal_binding response [ ] = ( authenticationlocalpolicy_vpnglobal_binding [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch authenticationlocalpolicy_vpnglobal_binding resources of given name .
104
20
3,326
public static base_response update ( nitro_service client , ptp resource ) throws Exception { ptp updateresource = new ptp ( ) ; updateresource . state = resource . state ; return updateresource . update_resource ( client ) ; }
Use this API to update ptp .
52
8
3,327
public static ptp get ( nitro_service service ) throws Exception { ptp obj = new ptp ( ) ; ptp [ ] response = ( ptp [ ] ) obj . get_resources ( service ) ; return response [ 0 ] ; }
Use this API to fetch all the ptp resources that are configured on netscaler .
53
18
3,328
public static base_response update ( nitro_service client , nsratecontrol resource ) throws Exception { nsratecontrol updateresource = new nsratecontrol ( ) ; updateresource . tcpthreshold = resource . tcpthreshold ; updateresource . udpthreshold = resource . udpthreshold ; updateresource . icmpthreshold = resource . icmpthreshold ; updateresource . tcprstthreshold = resource . tcprstthreshold ; return updateresource . update_resource ( client ) ; }
Use this API to update nsratecontrol .
106
9
3,329
public static base_response unset ( nitro_service client , nsratecontrol resource , String [ ] args ) throws Exception { nsratecontrol unsetresource = new nsratecontrol ( ) ; return unsetresource . unset_resource ( client , args ) ; }
Use this API to unset the properties of nsratecontrol resource . Properties that need to be unset are specified in args array .
57
27
3,330
public static nsratecontrol get ( nitro_service service , options option ) throws Exception { nsratecontrol obj = new nsratecontrol ( ) ; nsratecontrol [ ] response = ( nsratecontrol [ ] ) obj . get_resources ( service , option ) ; return response [ 0 ] ; }
Use this API to fetch all the nsratecontrol resources that are configured on netscaler .
63
19
3,331
public static vpnglobal_sharefileserver_binding [ ] get ( nitro_service service ) throws Exception { vpnglobal_sharefileserver_binding obj = new vpnglobal_sharefileserver_binding ( ) ; vpnglobal_sharefileserver_binding response [ ] = ( vpnglobal_sharefileserver_binding [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch a vpnglobal_sharefileserver_binding resources .
92
18
3,332
public static base_response update ( nitro_service client , appflowparam resource ) throws Exception { appflowparam updateresource = new appflowparam ( ) ; updateresource . templaterefresh = resource . templaterefresh ; updateresource . appnamerefresh = resource . appnamerefresh ; updateresource . flowrecordinterval = resource . flowrecordinterval ; updateresource . udppmtu = resource . udppmtu ; updateresource . httpurl = resource . httpurl ; updateresource . aaausername = resource . aaausername ; updateresource . httpcookie = resource . httpcookie ; updateresource . httpreferer = resource . httpreferer ; updateresource . httpmethod = resource . httpmethod ; updateresource . httphost = resource . httphost ; updateresource . httpuseragent = resource . httpuseragent ; updateresource . clienttrafficonly = resource . clienttrafficonly ; updateresource . httpcontenttype = resource . httpcontenttype ; updateresource . httpauthorization = resource . httpauthorization ; updateresource . httpvia = resource . httpvia ; updateresource . httpxforwardedfor = resource . httpxforwardedfor ; updateresource . httplocation = resource . httplocation ; updateresource . httpsetcookie = resource . httpsetcookie ; updateresource . httpsetcookie2 = resource . httpsetcookie2 ; updateresource . connectionchaining = resource . connectionchaining ; return updateresource . update_resource ( client ) ; }
Use this API to update appflowparam .
314
9
3,333
public static base_response unset ( nitro_service client , appflowparam resource , String [ ] args ) throws Exception { appflowparam unsetresource = new appflowparam ( ) ; return unsetresource . unset_resource ( client , args ) ; }
Use this API to unset the properties of appflowparam resource . Properties that need to be unset are specified in args array .
57
27
3,334
public static appflowparam get ( nitro_service service ) throws Exception { appflowparam obj = new appflowparam ( ) ; appflowparam [ ] response = ( appflowparam [ ] ) obj . get_resources ( service ) ; return response [ 0 ] ; }
Use this API to fetch all the appflowparam resources that are configured on netscaler .
58
19
3,335
public boolean removeAll ( AbstractBooleanList other ) { // overridden for performance only. if ( ! ( other instanceof BooleanArrayList ) ) return super . removeAll ( other ) ; /* There are two possibilities to do the thing a) use other.indexOf(...) b) sort other, then use other.binarySearch(...) Let's try to figure out which one is faster. Let M=size, N=other.size, then a) takes O(M*N) steps b) takes O(N*logN + M*logN) steps (sorting is O(N*logN) and binarySearch is O(logN)) Hence, if N*logN + M*logN < M*N, we use b) otherwise we use a). */ if ( other . size ( ) == 0 ) { return false ; } //nothing to do int limit = other . size ( ) - 1 ; int j = 0 ; boolean [ ] theElements = elements ; int mySize = size ( ) ; double N = ( double ) other . size ( ) ; double M = ( double ) mySize ; if ( ( N + M ) * cern . colt . Math . log2 ( N ) < M * N ) { // it is faster to sort other before searching in it BooleanArrayList sortedList = ( BooleanArrayList ) other . clone ( ) ; sortedList . quickSort ( ) ; for ( int i = 0 ; i < mySize ; i ++ ) { if ( sortedList . binarySearchFromTo ( theElements [ i ] , 0 , limit ) < 0 ) theElements [ j ++ ] = theElements [ i ] ; } } else { // it is faster to search in other without sorting for ( int i = 0 ; i < mySize ; i ++ ) { if ( other . indexOfFromTo ( theElements [ i ] , 0 , limit ) < 0 ) theElements [ j ++ ] = theElements [ i ] ; } } boolean modified = ( j != mySize ) ; setSize ( j ) ; return modified ; }
Removes from the receiver all elements that are contained in the specified list . Tests for identity .
448
19
3,336
public static configobjects get ( nitro_service service ) throws Exception { configobjects obj = new configobjects ( ) ; configobjects [ ] response = ( configobjects [ ] ) obj . get_resources ( service ) ; return response [ 0 ] ; }
Use this API to fetch all the config objects resources that are available on netscaler .
53
18
3,337
public static authorizationpolicylabel_authorizationpolicy_binding [ ] get ( nitro_service service , String labelname ) throws Exception { authorizationpolicylabel_authorizationpolicy_binding obj = new authorizationpolicylabel_authorizationpolicy_binding ( ) ; obj . set_labelname ( labelname ) ; authorizationpolicylabel_authorizationpolicy_binding response [ ] = ( authorizationpolicylabel_authorizationpolicy_binding [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch authorizationpolicylabel_authorizationpolicy_binding resources of given name .
112
21
3,338
public static authenticationvserver_auditsyslogpolicy_binding [ ] get ( nitro_service service , String name ) throws Exception { authenticationvserver_auditsyslogpolicy_binding obj = new authenticationvserver_auditsyslogpolicy_binding ( ) ; obj . set_name ( name ) ; authenticationvserver_auditsyslogpolicy_binding response [ ] = ( authenticationvserver_auditsyslogpolicy_binding [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch authenticationvserver_auditsyslogpolicy_binding resources of given name .
109
21
3,339
public static gslbvserver_gslbservice_binding [ ] get ( nitro_service service , String name ) throws Exception { gslbvserver_gslbservice_binding obj = new gslbvserver_gslbservice_binding ( ) ; obj . set_name ( name ) ; gslbvserver_gslbservice_binding response [ ] = ( gslbvserver_gslbservice_binding [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch gslbvserver_gslbservice_binding resources of given name .
119
23
3,340
public static rewriteglobal_rewritepolicy_binding [ ] get ( nitro_service service ) throws Exception { rewriteglobal_rewritepolicy_binding obj = new rewriteglobal_rewritepolicy_binding ( ) ; rewriteglobal_rewritepolicy_binding response [ ] = ( rewriteglobal_rewritepolicy_binding [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch a rewriteglobal_rewritepolicy_binding resources .
87
17
3,341
public static void log ( RedwoodChannels channels , Object obj ) { log ( channels , obj . getClass ( ) . getSimpleName ( ) , obj ) ; }
Pretty log an object . Its class name will be used as a description .
36
15
3,342
public static base_response add ( nitro_service client , arp resource ) throws Exception { arp addresource = new arp ( ) ; addresource . ipaddress = resource . ipaddress ; addresource . td = resource . td ; addresource . mac = resource . mac ; addresource . ifnum = resource . ifnum ; addresource . ownernode = resource . ownernode ; return addresource . add_resource ( client ) ; }
Use this API to add arp .
96
8
3,343
public static base_responses add ( nitro_service client , arp resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { arp addresources [ ] = new arp [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { addresources [ i ] = new arp ( ) ; addresources [ i ] . ipaddress = resources [ i ] . ipaddress ; addresources [ i ] . td = resources [ i ] . td ; addresources [ i ] . mac = resources [ i ] . mac ; addresources [ i ] . ifnum = resources [ i ] . ifnum ; addresources [ i ] . ownernode = resources [ i ] . ownernode ; } result = add_bulk_request ( client , addresources ) ; } return result ; }
Use this API to add arp resources .
193
9
3,344
public static base_response delete ( nitro_service client , arp resource ) throws Exception { arp deleteresource = new arp ( ) ; deleteresource . ipaddress = resource . ipaddress ; deleteresource . td = resource . td ; deleteresource . all = resource . all ; deleteresource . ownernode = resource . ownernode ; return deleteresource . delete_resource ( client ) ; }
Use this API to delete arp .
85
8
3,345
public static base_responses delete ( nitro_service client , arp resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { arp deleteresources [ ] = new arp [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { deleteresources [ i ] = new arp ( ) ; deleteresources [ i ] . ipaddress = resources [ i ] . ipaddress ; deleteresources [ i ] . td = resources [ i ] . td ; deleteresources [ i ] . all = resources [ i ] . all ; deleteresources [ i ] . ownernode = resources [ i ] . ownernode ; } result = delete_bulk_request ( client , deleteresources ) ; } return result ; }
Use this API to delete arp resources .
176
9
3,346
public static base_response send ( nitro_service client , arp resource ) throws Exception { arp sendresource = new arp ( ) ; sendresource . ipaddress = resource . ipaddress ; sendresource . td = resource . td ; sendresource . all = resource . all ; return sendresource . perform_operation ( client , "send" ) ; }
Use this API to send arp .
76
8
3,347
public static base_responses send ( nitro_service client , arp resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { arp sendresources [ ] = new arp [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { sendresources [ i ] = new arp ( ) ; sendresources [ i ] . ipaddress = resources [ i ] . ipaddress ; sendresources [ i ] . td = resources [ i ] . td ; sendresources [ i ] . all = resources [ i ] . all ; } result = perform_operation_bulk_request ( client , sendresources , "send" ) ; } return result ; }
Use this API to send arp resources .
163
9
3,348
public static arp [ ] get ( nitro_service service ) throws Exception { arp obj = new arp ( ) ; arp [ ] response = ( arp [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch all the arp resources that are configured on netscaler .
52
18
3,349
public static sslpolicy_csvserver_binding [ ] get ( nitro_service service , String name ) throws Exception { sslpolicy_csvserver_binding obj = new sslpolicy_csvserver_binding ( ) ; obj . set_name ( name ) ; sslpolicy_csvserver_binding response [ ] = ( sslpolicy_csvserver_binding [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch sslpolicy_csvserver_binding resources of given name .
94
18
3,350
public static vpnvserver_authenticationldappolicy_binding [ ] get ( nitro_service service , String name ) throws Exception { vpnvserver_authenticationldappolicy_binding obj = new vpnvserver_authenticationldappolicy_binding ( ) ; obj . set_name ( name ) ; vpnvserver_authenticationldappolicy_binding response [ ] = ( vpnvserver_authenticationldappolicy_binding [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch vpnvserver_authenticationldappolicy_binding resources of given name .
114
22
3,351
public static base_response add ( nitro_service client , appfwpolicylabel resource ) throws Exception { appfwpolicylabel addresource = new appfwpolicylabel ( ) ; addresource . labelname = resource . labelname ; addresource . policylabeltype = resource . policylabeltype ; return addresource . add_resource ( client ) ; }
Use this API to add appfwpolicylabel .
79
12
3,352
public static appfwpolicylabel [ ] get ( nitro_service service ) throws Exception { appfwpolicylabel obj = new appfwpolicylabel ( ) ; appfwpolicylabel [ ] response = ( appfwpolicylabel [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch all the appfwpolicylabel resources that are configured on netscaler .
72
22
3,353
public static appfwpolicylabel get ( nitro_service service , String labelname ) throws Exception { appfwpolicylabel obj = new appfwpolicylabel ( ) ; obj . set_labelname ( labelname ) ; appfwpolicylabel response = ( appfwpolicylabel ) obj . get_resource ( service ) ; return response ; }
Use this API to fetch appfwpolicylabel resource of given name .
81
16
3,354
public boolean compare ( List < CoreLabel > doc1 , List < CoreLabel > doc2 ) { int i1 = 0 , i2 = 0 ; // String last1 = "O" , last2 = "O" ; boolean cm_set ; for ( int i = 0 ; i < doc1 . size ( ) ; i ++ ) { CoreLabel c1 = doc1 . get ( i ) ; CoreLabel c2 = doc2 . get ( i ) ; String a1 = c1 . getString ( AnswerAnnotation . class ) ; String a2 = c2 . getString ( AnswerAnnotation . class ) ; if ( a1 == null || a2 == null ) return false ; } // TODO return true ; }
Compare two classifier output
156
5
3,355
public static vpnglobal_authenticationldappolicy_binding [ ] get ( nitro_service service ) throws Exception { vpnglobal_authenticationldappolicy_binding obj = new vpnglobal_authenticationldappolicy_binding ( ) ; vpnglobal_authenticationldappolicy_binding response [ ] = ( vpnglobal_authenticationldappolicy_binding [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch a vpnglobal_authenticationldappolicy_binding resources .
102
20
3,356
public static systemglobal_authenticationtacacspolicy_binding [ ] get ( nitro_service service ) throws Exception { systemglobal_authenticationtacacspolicy_binding obj = new systemglobal_authenticationtacacspolicy_binding ( ) ; systemglobal_authenticationtacacspolicy_binding response [ ] = ( systemglobal_authenticationtacacspolicy_binding [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch a systemglobal_authenticationtacacspolicy_binding resources .
102
20
3,357
public static svcbindings get ( nitro_service service , String servicename ) throws Exception { svcbindings obj = new svcbindings ( ) ; obj . set_servicename ( servicename ) ; svcbindings response = ( svcbindings ) obj . get_resource ( service ) ; return response ; }
Use this API to fetch svcbindings resource of given name .
72
14
3,358
public static svcbindings [ ] get ( nitro_service service , String servicename [ ] ) throws Exception { if ( servicename != null && servicename . length > 0 ) { svcbindings response [ ] = new svcbindings [ servicename . length ] ; svcbindings obj [ ] = new svcbindings [ servicename . length ] ; for ( int i = 0 ; i < servicename . length ; i ++ ) { obj [ i ] = new svcbindings ( ) ; obj [ i ] . set_servicename ( servicename [ i ] ) ; response [ i ] = ( svcbindings ) obj [ i ] . get_resource ( service ) ; } return response ; } return null ; }
Use this API to fetch svcbindings resources of given names .
161
14
3,359
public static cachepolicylabel_stats [ ] get ( nitro_service service ) throws Exception { cachepolicylabel_stats obj = new cachepolicylabel_stats ( ) ; cachepolicylabel_stats [ ] response = ( cachepolicylabel_stats [ ] ) obj . stat_resources ( service ) ; return response ; }
Use this API to fetch the statistics of all cachepolicylabel_stats resources that are configured on netscaler .
77
25
3,360
public static cachepolicylabel_stats get ( nitro_service service , String labelname ) throws Exception { cachepolicylabel_stats obj = new cachepolicylabel_stats ( ) ; obj . set_labelname ( labelname ) ; cachepolicylabel_stats response = ( cachepolicylabel_stats ) obj . stat_resource ( service ) ; return response ; }
Use this API to fetch statistics of cachepolicylabel_stats resource of given name .
86
19
3,361
public static systementitytype get ( nitro_service service ) throws Exception { systementitytype obj = new systementitytype ( ) ; systementitytype [ ] response = ( systementitytype [ ] ) obj . get_resources ( service ) ; return response [ 0 ] ; }
Use this API to fetch all the systementitytype resources that are configured on netscaler .
58
19
3,362
public static systementitytype [ ] get ( nitro_service service , systementitytype_args args ) throws Exception { systementitytype obj = new systementitytype ( ) ; options option = new options ( ) ; option . set_args ( nitro_util . object_to_string_withoutquotes ( args ) ) ; systementitytype [ ] response = ( systementitytype [ ] ) obj . get_resources ( service , option ) ; return response ; }
Use this API to fetch all the systementitytype resources that are configured on netscaler . This uses systementitytype_args which is a way to provide additional arguments while fetching the resources .
99
40
3,363
public static spilloverpolicy_binding get ( nitro_service service , String name ) throws Exception { spilloverpolicy_binding obj = new spilloverpolicy_binding ( ) ; obj . set_name ( name ) ; spilloverpolicy_binding response = ( spilloverpolicy_binding ) obj . get_resource ( service ) ; return response ; }
Use this API to fetch spilloverpolicy_binding resource of given name .
73
15
3,364
public static cspolicy_binding get ( nitro_service service , String policyname ) throws Exception { cspolicy_binding obj = new cspolicy_binding ( ) ; obj . set_policyname ( policyname ) ; cspolicy_binding response = ( cspolicy_binding ) obj . get_resource ( service ) ; return response ; }
Use this API to fetch cspolicy_binding resource of given name .
80
15
3,365
public static gslbvserver_stats [ ] get ( nitro_service service ) throws Exception { gslbvserver_stats obj = new gslbvserver_stats ( ) ; gslbvserver_stats [ ] response = ( gslbvserver_stats [ ] ) obj . stat_resources ( service ) ; return response ; }
Use this API to fetch the statistics of all gslbvserver_stats resources that are configured on netscaler .
77
25
3,366
public static gslbvserver_stats get ( nitro_service service , String name ) throws Exception { gslbvserver_stats obj = new gslbvserver_stats ( ) ; obj . set_name ( name ) ; gslbvserver_stats response = ( gslbvserver_stats ) obj . stat_resource ( service ) ; return response ; }
Use this API to fetch statistics of gslbvserver_stats resource of given name .
83
19
3,367
public static filterglobal_binding get ( nitro_service service ) throws Exception { filterglobal_binding obj = new filterglobal_binding ( ) ; filterglobal_binding response = ( filterglobal_binding ) obj . get_resource ( service ) ; return response ; }
Use this API to fetch a filterglobal_binding resource .
56
12
3,368
public static server_servicegroup_binding [ ] get ( nitro_service service , String name ) throws Exception { server_servicegroup_binding obj = new server_servicegroup_binding ( ) ; obj . set_name ( name ) ; server_servicegroup_binding response [ ] = ( server_servicegroup_binding [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch server_servicegroup_binding resources of given name .
84
16
3,369
public static dospolicy_stats [ ] get ( nitro_service service ) throws Exception { dospolicy_stats obj = new dospolicy_stats ( ) ; dospolicy_stats [ ] response = ( dospolicy_stats [ ] ) obj . stat_resources ( service ) ; return response ; }
Use this API to fetch the statistics of all dospolicy_stats resources that are configured on netscaler .
67
23
3,370
public static dospolicy_stats get ( nitro_service service , String name ) throws Exception { dospolicy_stats obj = new dospolicy_stats ( ) ; obj . set_name ( name ) ; dospolicy_stats response = ( dospolicy_stats ) obj . stat_resource ( service ) ; return response ; }
Use this API to fetch statistics of dospolicy_stats resource of given name .
73
17
3,371
public static < X , Y , Z > Triple < X , Y , Z > makeTriple ( X x , Y y , Z z ) { return new Triple < X , Y , Z > ( x , y , z ) ; }
Returns a Triple constructed from X Y and Z . Convenience method ; the compiler will disambiguate the classes used for you so that you don t have to write out potentially long class names .
50
41
3,372
public static authenticationvserver_authenticationldappolicy_binding [ ] get ( nitro_service service , String name ) throws Exception { authenticationvserver_authenticationldappolicy_binding obj = new authenticationvserver_authenticationldappolicy_binding ( ) ; obj . set_name ( name ) ; authenticationvserver_authenticationldappolicy_binding response [ ] = ( authenticationvserver_authenticationldappolicy_binding [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch authenticationvserver_authenticationldappolicy_binding resources of given name .
109
21
3,373
public static responderglobal_binding get ( nitro_service service ) throws Exception { responderglobal_binding obj = new responderglobal_binding ( ) ; responderglobal_binding response = ( responderglobal_binding ) obj . get_resource ( service ) ; return response ; }
Use this API to fetch a responderglobal_binding resource .
61
13
3,374
public static sslvserver_sslpolicy_binding [ ] get ( nitro_service service , String vservername ) throws Exception { sslvserver_sslpolicy_binding obj = new sslvserver_sslpolicy_binding ( ) ; obj . set_vservername ( vservername ) ; sslvserver_sslpolicy_binding response [ ] = ( sslvserver_sslpolicy_binding [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch sslvserver_sslpolicy_binding resources of given name .
108
19
3,375
public static systemcounters get ( nitro_service service ) throws Exception { systemcounters obj = new systemcounters ( ) ; systemcounters [ ] response = ( systemcounters [ ] ) obj . get_resources ( service ) ; return response [ 0 ] ; }
Use this API to fetch all the systemcounters resources that are configured on netscaler .
58
19
3,376
public static systemcounters [ ] get ( nitro_service service , systemcounters_args args ) throws Exception { systemcounters obj = new systemcounters ( ) ; options option = new options ( ) ; option . set_args ( nitro_util . object_to_string_withoutquotes ( args ) ) ; systemcounters [ ] response = ( systemcounters [ ] ) obj . get_resources ( service , option ) ; return response ; }
Use this API to fetch all the systemcounters resources that are configured on netscaler . This uses systemcounters_args which is a way to provide additional arguments while fetching the resources .
99
40
3,377
public static responderpolicylabel_policybinding_binding [ ] get ( nitro_service service , String labelname ) throws Exception { responderpolicylabel_policybinding_binding obj = new responderpolicylabel_policybinding_binding ( ) ; obj . set_labelname ( labelname ) ; responderpolicylabel_policybinding_binding response [ ] = ( responderpolicylabel_policybinding_binding [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch responderpolicylabel_policybinding_binding resources of given name .
112
21
3,378
public static channel_binding get ( nitro_service service , String id ) throws Exception { channel_binding obj = new channel_binding ( ) ; obj . set_id ( id ) ; channel_binding response = ( channel_binding ) obj . get_resource ( service ) ; return response ; }
Use this API to fetch channel_binding resource of given name .
63
13
3,379
public static appfwprofile_binding get ( nitro_service service , String name ) throws Exception { appfwprofile_binding obj = new appfwprofile_binding ( ) ; obj . set_name ( name ) ; appfwprofile_binding response = ( appfwprofile_binding ) obj . get_resource ( service ) ; return response ; }
Use this API to fetch appfwprofile_binding resource of given name .
73
15
3,380
public static lbvserver_auditsyslogpolicy_binding [ ] get ( nitro_service service , String name ) throws Exception { lbvserver_auditsyslogpolicy_binding obj = new lbvserver_auditsyslogpolicy_binding ( ) ; obj . set_name ( name ) ; lbvserver_auditsyslogpolicy_binding response [ ] = ( lbvserver_auditsyslogpolicy_binding [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch lbvserver_auditsyslogpolicy_binding resources of given name .
109
21
3,381
public static appfwprofile_sqlinjection_binding [ ] get ( nitro_service service , String name ) throws Exception { appfwprofile_sqlinjection_binding obj = new appfwprofile_sqlinjection_binding ( ) ; obj . set_name ( name ) ; appfwprofile_sqlinjection_binding response [ ] = ( appfwprofile_sqlinjection_binding [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch appfwprofile_sqlinjection_binding resources of given name .
99
19
3,382
public static base_response add ( nitro_service client , clusternode resource ) throws Exception { clusternode addresource = new clusternode ( ) ; addresource . nodeid = resource . nodeid ; addresource . ipaddress = resource . ipaddress ; addresource . state = resource . state ; addresource . backplane = resource . backplane ; addresource . priority = resource . priority ; return addresource . add_resource ( client ) ; }
Use this API to add clusternode .
97
9
3,383
public static base_responses add ( nitro_service client , clusternode resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { clusternode addresources [ ] = new clusternode [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { addresources [ i ] = new clusternode ( ) ; addresources [ i ] . nodeid = resources [ i ] . nodeid ; addresources [ i ] . ipaddress = resources [ i ] . ipaddress ; addresources [ i ] . state = resources [ i ] . state ; addresources [ i ] . backplane = resources [ i ] . backplane ; addresources [ i ] . priority = resources [ i ] . priority ; } result = add_bulk_request ( client , addresources ) ; } return result ; }
Use this API to add clusternode resources .
195
10
3,384
public static base_response update ( nitro_service client , clusternode resource ) throws Exception { clusternode updateresource = new clusternode ( ) ; updateresource . nodeid = resource . nodeid ; updateresource . state = resource . state ; updateresource . backplane = resource . backplane ; updateresource . priority = resource . priority ; return updateresource . update_resource ( client ) ; }
Use this API to update clusternode .
86
9
3,385
public static base_responses update ( nitro_service client , clusternode resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { clusternode updateresources [ ] = new clusternode [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { updateresources [ i ] = new clusternode ( ) ; updateresources [ i ] . nodeid = resources [ i ] . nodeid ; updateresources [ i ] . state = resources [ i ] . state ; updateresources [ i ] . backplane = resources [ i ] . backplane ; updateresources [ i ] . priority = resources [ i ] . priority ; } result = update_bulk_request ( client , updateresources ) ; } return result ; }
Use this API to update clusternode resources .
178
10
3,386
public static base_response unset ( nitro_service client , clusternode resource , String [ ] args ) throws Exception { clusternode unsetresource = new clusternode ( ) ; unsetresource . nodeid = resource . nodeid ; return unsetresource . unset_resource ( client , args ) ; }
Use this API to unset the properties of clusternode resource . Properties that need to be unset are specified in args array .
69
27
3,387
public static base_responses unset ( nitro_service client , Long nodeid [ ] , String args [ ] ) throws Exception { base_responses result = null ; if ( nodeid != null && nodeid . length > 0 ) { clusternode unsetresources [ ] = new clusternode [ nodeid . length ] ; for ( int i = 0 ; i < nodeid . length ; i ++ ) { unsetresources [ i ] = new clusternode ( ) ; unsetresources [ i ] . nodeid = nodeid [ i ] ; } result = unset_bulk_request ( client , unsetresources , args ) ; } return result ; }
Use this API to unset the properties of clusternode resources . Properties that need to be unset are specified in args array .
145
27
3,388
public static base_response delete ( nitro_service client , clusternode resource ) throws Exception { clusternode deleteresource = new clusternode ( ) ; deleteresource . nodeid = resource . nodeid ; return deleteresource . delete_resource ( client ) ; }
Use this API to delete clusternode .
57
9
3,389
public static base_responses delete ( nitro_service client , Long nodeid [ ] ) throws Exception { base_responses result = null ; if ( nodeid != null && nodeid . length > 0 ) { clusternode deleteresources [ ] = new clusternode [ nodeid . length ] ; for ( int i = 0 ; i < nodeid . length ; i ++ ) { deleteresources [ i ] = new clusternode ( ) ; deleteresources [ i ] . nodeid = nodeid [ i ] ; } result = delete_bulk_request ( client , deleteresources ) ; } return result ; }
Use this API to delete clusternode resources of given names .
132
13
3,390
public static clusternode [ ] get ( nitro_service service ) throws Exception { clusternode obj = new clusternode ( ) ; clusternode [ ] response = ( clusternode [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch all the clusternode resources that are configured on netscaler .
57
19
3,391
public static clusternode get ( nitro_service service , Long nodeid ) throws Exception { clusternode obj = new clusternode ( ) ; obj . set_nodeid ( nodeid ) ; clusternode response = ( clusternode ) obj . get_resource ( service ) ; return response ; }
Use this API to fetch clusternode resource of given name .
66
13
3,392
public static clusternode [ ] get ( nitro_service service , Long nodeid [ ] ) throws Exception { if ( nodeid != null && nodeid . length > 0 ) { clusternode response [ ] = new clusternode [ nodeid . length ] ; clusternode obj [ ] = new clusternode [ nodeid . length ] ; for ( int i = 0 ; i < nodeid . length ; i ++ ) { obj [ i ] = new clusternode ( ) ; obj [ i ] . set_nodeid ( nodeid [ i ] ) ; response [ i ] = ( clusternode ) obj [ i ] . get_resource ( service ) ; } return response ; } return null ; }
Use this API to fetch clusternode resources of given names .
153
13
3,393
public static clusternode [ ] get_filtered ( nitro_service service , filtervalue [ ] filter ) throws Exception { clusternode obj = new clusternode ( ) ; options option = new options ( ) ; option . set_filter ( filter ) ; clusternode [ ] response = ( clusternode [ ] ) obj . getfiltered ( service , option ) ; return response ; }
Use this API to fetch filtered set of clusternode resources . set the filter parameter values in filtervalue object .
85
23
3,394
public static sslpolicy_binding get ( nitro_service service , String name ) throws Exception { sslpolicy_binding obj = new sslpolicy_binding ( ) ; obj . set_name ( name ) ; sslpolicy_binding response = ( sslpolicy_binding ) obj . get_resource ( service ) ; return response ; }
Use this API to fetch sslpolicy_binding resource of given name .
73
15
3,395
public static lbvserver_responderpolicy_binding [ ] get ( nitro_service service , String name ) throws Exception { lbvserver_responderpolicy_binding obj = new lbvserver_responderpolicy_binding ( ) ; obj . set_name ( name ) ; lbvserver_responderpolicy_binding response [ ] = ( lbvserver_responderpolicy_binding [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch lbvserver_responderpolicy_binding resources of given name .
99
19
3,396
public static cmppolicy_csvserver_binding [ ] get ( nitro_service service , String name ) throws Exception { cmppolicy_csvserver_binding obj = new cmppolicy_csvserver_binding ( ) ; obj . set_name ( name ) ; cmppolicy_csvserver_binding response [ ] = ( cmppolicy_csvserver_binding [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch cmppolicy_csvserver_binding resources of given name .
94
18
3,397
public static tunnelglobal_tunneltrafficpolicy_binding [ ] get ( nitro_service service ) throws Exception { tunnelglobal_tunneltrafficpolicy_binding obj = new tunnelglobal_tunneltrafficpolicy_binding ( ) ; tunnelglobal_tunneltrafficpolicy_binding response [ ] = ( tunnelglobal_tunneltrafficpolicy_binding [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch a tunnelglobal_tunneltrafficpolicy_binding resources .
97
19
3,398
public static pq_stats get ( nitro_service service ) throws Exception { pq_stats obj = new pq_stats ( ) ; pq_stats [ ] response = ( pq_stats [ ] ) obj . stat_resources ( service ) ; return response [ 0 ] ; }
Use this API to fetch the statistics of all pq_stats resources that are configured on netscaler .
63
22
3,399
public static csvserver_authorizationpolicy_binding [ ] get ( nitro_service service , String name ) throws Exception { csvserver_authorizationpolicy_binding obj = new csvserver_authorizationpolicy_binding ( ) ; obj . set_name ( name ) ; csvserver_authorizationpolicy_binding response [ ] = ( csvserver_authorizationpolicy_binding [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch csvserver_authorizationpolicy_binding resources of given name .
99
19