idx
int64
0
165k
question
stringlengths
73
4.15k
target
stringlengths
5
918
len_question
int64
21
890
len_target
int64
3
255
3,700
public static nslimitidentifier [ ] get ( nitro_service service , String limitidentifier [ ] ) throws Exception { if ( limitidentifier != null && limitidentifier . length > 0 ) { nslimitidentifier response [ ] = new nslimitidentifier [ limitidentifier . length ] ; nslimitidentifier obj [ ] = new nslimitidentifier [ lim...
Use this API to fetch nslimitidentifier resources of given names .
168
14
3,701
public static appfwprofile_starturl_binding [ ] get ( nitro_service service , String name ) throws Exception { appfwprofile_starturl_binding obj = new appfwprofile_starturl_binding ( ) ; obj . set_name ( name ) ; appfwprofile_starturl_binding response [ ] = ( appfwprofile_starturl_binding [ ] ) obj . get_resources ( se...
Use this API to fetch appfwprofile_starturl_binding resources of given name .
94
18
3,702
public static vpnglobal_authenticationradiuspolicy_binding [ ] get ( nitro_service service ) throws Exception { vpnglobal_authenticationradiuspolicy_binding obj = new vpnglobal_authenticationradiuspolicy_binding ( ) ; vpnglobal_authenticationradiuspolicy_binding response [ ] = ( vpnglobal_authenticationradiuspolicy_bin...
Use this API to fetch a vpnglobal_authenticationradiuspolicy_binding resources .
97
19
3,703
public static sslglobal_binding get ( nitro_service service ) throws Exception { sslglobal_binding obj = new sslglobal_binding ( ) ; sslglobal_binding response = ( sslglobal_binding ) obj . get_resource ( service ) ; return response ; }
Use this API to fetch a sslglobal_binding resource .
61
13
3,704
public String getRecallDescription ( int numDigits ) { NumberFormat nf = NumberFormat . getNumberInstance ( ) ; nf . setMaximumFractionDigits ( numDigits ) ; Triple < Double , Integer , Integer > recall = getRecallInfo ( ) ; return nf . format ( recall . first ( ) ) + " (" + recall . second ( ) + "/" + ( recall . secon...
Returns a String summarizing precision that will print nicely .
102
11
3,705
public static filterpolicy_crvserver_binding [ ] get ( nitro_service service , String name ) throws Exception { filterpolicy_crvserver_binding obj = new filterpolicy_crvserver_binding ( ) ; obj . set_name ( name ) ; filterpolicy_crvserver_binding response [ ] = ( filterpolicy_crvserver_binding [ ] ) obj . get_resources...
Use this API to fetch filterpolicy_crvserver_binding resources of given name .
94
18
3,706
public static base_response add ( nitro_service client , cmppolicy resource ) throws Exception { cmppolicy addresource = new cmppolicy ( ) ; addresource . name = resource . name ; addresource . rule = resource . rule ; addresource . resaction = resource . resaction ; return addresource . add_resource ( client ) ; }
Use this API to add cmppolicy .
75
9
3,707
public static base_response update ( nitro_service client , cmppolicy resource ) throws Exception { cmppolicy updateresource = new cmppolicy ( ) ; updateresource . name = resource . name ; updateresource . rule = resource . rule ; updateresource . resaction = resource . resaction ; return updateresource . update_resour...
Use this API to update cmppolicy .
75
9
3,708
public static cmppolicy [ ] get ( nitro_service service ) throws Exception { cmppolicy obj = new cmppolicy ( ) ; cmppolicy [ ] response = ( cmppolicy [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch all the cmppolicy resources that are configured on netscaler .
57
19
3,709
public static cmppolicy get ( nitro_service service , String name ) throws Exception { cmppolicy obj = new cmppolicy ( ) ; obj . set_name ( name ) ; cmppolicy response = ( cmppolicy ) obj . get_resource ( service ) ; return response ; }
Use this API to fetch cmppolicy resource of given name .
63
13
3,710
public static vpnvserver_vpnurl_binding [ ] get ( nitro_service service , String name ) throws Exception { vpnvserver_vpnurl_binding obj = new vpnvserver_vpnurl_binding ( ) ; obj . set_name ( name ) ; vpnvserver_vpnurl_binding response [ ] = ( vpnvserver_vpnurl_binding [ ] ) obj . get_resources ( service ) ; return res...
Use this API to fetch vpnvserver_vpnurl_binding resources of given name .
104
20
3,711
public static base_response update ( nitro_service client , appfwsettings resource ) throws Exception { appfwsettings updateresource = new appfwsettings ( ) ; updateresource . defaultprofile = resource . defaultprofile ; updateresource . undefaction = resource . undefaction ; updateresource . sessiontimeout = resource ...
Use this API to update appfwsettings .
261
9
3,712
public static base_response unset ( nitro_service client , appfwsettings resource , String [ ] args ) throws Exception { appfwsettings unsetresource = new appfwsettings ( ) ; return unsetresource . unset_resource ( client , args ) ; }
Use this API to unset the properties of appfwsettings resource . Properties that need to be unset are specified in args array .
57
27
3,713
public static appfwsettings get ( nitro_service service ) throws Exception { appfwsettings obj = new appfwsettings ( ) ; appfwsettings [ ] response = ( appfwsettings [ ] ) obj . get_resources ( service ) ; return response [ 0 ] ; }
Use this API to fetch all the appfwsettings resources that are configured on netscaler .
58
19
3,714
public static spilloverpolicy_csvserver_binding [ ] get ( nitro_service service , String name ) throws Exception { spilloverpolicy_csvserver_binding obj = new spilloverpolicy_csvserver_binding ( ) ; obj . set_name ( name ) ; spilloverpolicy_csvserver_binding response [ ] = ( spilloverpolicy_csvserver_binding [ ] ) obj ...
Use this API to fetch spilloverpolicy_csvserver_binding resources of given name .
94
18
3,715
public static policydataset_binding get ( nitro_service service , String name ) throws Exception { policydataset_binding obj = new policydataset_binding ( ) ; obj . set_name ( name ) ; policydataset_binding response = ( policydataset_binding ) obj . get_resource ( service ) ; return response ; }
Use this API to fetch policydataset_binding resource of given name .
78
16
3,716
public static sslservice_binding get ( nitro_service service , String servicename ) throws Exception { sslservice_binding obj = new sslservice_binding ( ) ; obj . set_servicename ( servicename ) ; sslservice_binding response = ( sslservice_binding ) obj . get_resource ( service ) ; return response ; }
Use this API to fetch sslservice_binding resource of given name .
77
15
3,717
public static base_response update ( nitro_service client , nsconsoleloginprompt resource ) throws Exception { nsconsoleloginprompt updateresource = new nsconsoleloginprompt ( ) ; updateresource . promptstring = resource . promptstring ; return updateresource . update_resource ( client ) ; }
Use this API to update nsconsoleloginprompt .
63
11
3,718
public static base_response unset ( nitro_service client , nsconsoleloginprompt resource , String [ ] args ) throws Exception { nsconsoleloginprompt unsetresource = new nsconsoleloginprompt ( ) ; return unsetresource . unset_resource ( client , args ) ; }
Use this API to unset the properties of nsconsoleloginprompt resource . Properties that need to be unset are specified in args array .
63
29
3,719
public static nsconsoleloginprompt get ( nitro_service service , options option ) throws Exception { nsconsoleloginprompt obj = new nsconsoleloginprompt ( ) ; nsconsoleloginprompt [ ] response = ( nsconsoleloginprompt [ ] ) obj . get_resources ( service , option ) ; return response [ 0 ] ; }
Use this API to fetch all the nsconsoleloginprompt resources that are configured on netscaler .
73
21
3,720
public static base_response add ( nitro_service client , forwardingsession resource ) throws Exception { forwardingsession addresource = new forwardingsession ( ) ; addresource . name = resource . name ; addresource . network = resource . network ; addresource . netmask = resource . netmask ; addresource . acl6name = r...
Use this API to add forwardingsession .
116
9
3,721
public static base_responses add ( nitro_service client , forwardingsession resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { forwardingsession addresources [ ] = new forwardingsession [ resources . length ] ; for ( int i = 0 ; i < resources . length ...
Use this API to add forwardingsession resources .
220
10
3,722
public static base_response update ( nitro_service client , forwardingsession resource ) throws Exception { forwardingsession updateresource = new forwardingsession ( ) ; updateresource . name = resource . name ; updateresource . connfailover = resource . connfailover ; return updateresource . update_resource ( client ...
Use this API to update forwardingsession .
68
9
3,723
public static base_responses update ( nitro_service client , forwardingsession resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { forwardingsession updateresources [ ] = new forwardingsession [ resources . length ] ; for ( int i = 0 ; i < resources . l...
Use this API to update forwardingsession resources .
148
10
3,724
public static forwardingsession [ ] get ( nitro_service service ) throws Exception { forwardingsession obj = new forwardingsession ( ) ; forwardingsession [ ] response = ( forwardingsession [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch all the forwardingsession resources that are configured on netscaler .
57
19
3,725
public static forwardingsession get ( nitro_service service , String name ) throws Exception { forwardingsession obj = new forwardingsession ( ) ; obj . set_name ( name ) ; forwardingsession response = ( forwardingsession ) obj . get_resource ( service ) ; return response ; }
Use this API to fetch forwardingsession resource of given name .
63
13
3,726
public static aaapreauthenticationpolicy_vpnvserver_binding [ ] get ( nitro_service service , String name ) throws Exception { aaapreauthenticationpolicy_vpnvserver_binding obj = new aaapreauthenticationpolicy_vpnvserver_binding ( ) ; obj . set_name ( name ) ; aaapreauthenticationpolicy_vpnvserver_binding response [ ] ...
Use this API to fetch aaapreauthenticationpolicy_vpnvserver_binding resources of given name .
124
24
3,727
public static authenticationcertpolicy_vpnvserver_binding [ ] get ( nitro_service service , String name ) throws Exception { authenticationcertpolicy_vpnvserver_binding obj = new authenticationcertpolicy_vpnvserver_binding ( ) ; obj . set_name ( name ) ; authenticationcertpolicy_vpnvserver_binding response [ ] = ( auth...
Use this API to fetch authenticationcertpolicy_vpnvserver_binding resources of given name .
104
20
3,728
public static appfwpolicy [ ] get ( nitro_service service ) throws Exception { appfwpolicy obj = new appfwpolicy ( ) ; appfwpolicy [ ] response = ( appfwpolicy [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch all the appfwpolicy resources that are configured on netscaler .
62
20
3,729
public static appfwpolicy get ( nitro_service service , String name ) throws Exception { appfwpolicy obj = new appfwpolicy ( ) ; obj . set_name ( name ) ; appfwpolicy response = ( appfwpolicy ) obj . get_resource ( service ) ; return response ; }
Use this API to fetch appfwpolicy resource of given name .
68
14
3,730
public static appfwpolicy [ ] get_filtered ( nitro_service service , filtervalue [ ] filter ) throws Exception { appfwpolicy obj = new appfwpolicy ( ) ; options option = new options ( ) ; option . set_filter ( filter ) ; appfwpolicy [ ] response = ( appfwpolicy [ ] ) obj . getfiltered ( service , option ) ; return resp...
Use this API to fetch filtered set of appfwpolicy resources . set the filter parameter values in filtervalue object .
90
24
3,731
private void buildContentPanel ( ) { editorPane = new JEditorPane ( ) ; editorPane . setContentType ( "text/rtf" ) ; editorPane . addKeyListener ( new InputListener ( ) ) ; // defaultAttrSet = ((StyledEditorKit)editorPane.getEditorKit()).getInputAttributes(); StyleConstants . setFontFamily ( defaultAttrSet , "Lucida Sa...
private String initText = In ;
204
7
3,732
public static Color [ ] getNColors ( int n ) { Color [ ] colors = new Color [ n ] ; if ( n <= basicColors . length ) { System . arraycopy ( basicColors , 0 , colors , 0 , n ) ; } else { int s = 255 / ( int ) Math . ceil ( Math . pow ( n , ( 1.0 / 3.0 ) ) ) ; int index = 0 ; OUTER : for ( int i = 0 ; i < 256 ; i += s ) ...
Color . DARK_GRAY } ;
180
8
3,733
public static void main ( String [ ] args ) { //Schedule a job for the event-dispatching thread: //creating and showing this application's GUI. SwingUtilities . invokeLater ( new Runnable ( ) { public void run ( ) { NERGUI gui = new NERGUI ( ) ; gui . createAndShowGUI ( ) ; } } ) ; }
Run the GUI . This program accepts no command - line arguments . Everything is entered into the GUI .
81
20
3,734
public static hanode_partialfailureinterfaces_binding [ ] get ( nitro_service service , Long id ) throws Exception { hanode_partialfailureinterfaces_binding obj = new hanode_partialfailureinterfaces_binding ( ) ; obj . set_id ( id ) ; hanode_partialfailureinterfaces_binding response [ ] = ( hanode_partialfailureinterfa...
Use this API to fetch hanode_partialfailureinterfaces_binding resources of given name .
109
21
3,735
public static base_response update ( nitro_service client , l4param resource ) throws Exception { l4param updateresource = new l4param ( ) ; updateresource . l2connmethod = resource . l2connmethod ; updateresource . l4switch = resource . l4switch ; return updateresource . update_resource ( client ) ; }
Use this API to update l4param .
74
9
3,736
public static base_response unset ( nitro_service client , l4param resource , String [ ] args ) throws Exception { l4param unsetresource = new l4param ( ) ; return unsetresource . unset_resource ( client , args ) ; }
Use this API to unset the properties of l4param resource . Properties that need to be unset are specified in args array .
57
27
3,737
public static l4param get ( nitro_service service ) throws Exception { l4param obj = new l4param ( ) ; l4param [ ] response = ( l4param [ ] ) obj . get_resources ( service ) ; return response [ 0 ] ; }
Use this API to fetch all the l4param resources that are configured on netscaler .
58
19
3,738
public static void main ( String argv [ ] ) { if ( argv . length == 0 ) { System . out . println ( "Usage : java CHTBLexer <inputfile>" ) ; } else { for ( int i = 0 ; i < argv . length ; i ++ ) { CHTBLexer scanner = null ; try { scanner = new CHTBLexer ( new java . io . FileReader ( argv [ i ] ) ) ; while ( ! scanner ....
Runs the scanner on input files .
237
8
3,739
public static lbmetrictable_metric_binding [ ] get ( nitro_service service , String metrictable ) throws Exception { lbmetrictable_metric_binding obj = new lbmetrictable_metric_binding ( ) ; obj . set_metrictable ( metrictable ) ; lbmetrictable_metric_binding response [ ] = ( lbmetrictable_metric_binding [ ] ) obj . ge...
Use this API to fetch lbmetrictable_metric_binding resources of given name .
105
19
3,740
public static long count ( nitro_service service , String metrictable ) throws Exception { lbmetrictable_metric_binding obj = new lbmetrictable_metric_binding ( ) ; obj . set_metrictable ( metrictable ) ; options option = new options ( ) ; option . set_count ( true ) ; lbmetrictable_metric_binding response [ ] = ( lbme...
Use this API to count lbmetrictable_metric_binding resources configued on NetScaler .
131
22
3,741
public static appflowpolicy [ ] get ( nitro_service service ) throws Exception { appflowpolicy obj = new appflowpolicy ( ) ; appflowpolicy [ ] response = ( appflowpolicy [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch all the appflowpolicy resources that are configured on netscaler .
57
19
3,742
public static appflowpolicy get ( nitro_service service , String name ) throws Exception { appflowpolicy obj = new appflowpolicy ( ) ; obj . set_name ( name ) ; appflowpolicy response = ( appflowpolicy ) obj . get_resource ( service ) ; return response ; }
Use this API to fetch appflowpolicy resource of given name .
63
13
3,743
public static appflowpolicy [ ] get_filtered ( nitro_service service , filtervalue [ ] filter ) throws Exception { appflowpolicy obj = new appflowpolicy ( ) ; options option = new options ( ) ; option . set_filter ( filter ) ; appflowpolicy [ ] response = ( appflowpolicy [ ] ) obj . getfiltered ( service , option ) ; r...
Use this API to fetch filtered set of appflowpolicy resources . set the filter parameter values in filtervalue object .
85
23
3,744
public boolean create ( ) { if ( ! exists ( ) ) { node = mobicentsCache . getJBossCache ( ) . getRoot ( ) . addChild ( nodeFqn ) ; if ( doTraceLogs ) { logger . trace ( "created cache node " + nodeFqn ) ; } return true ; } else { return false ; } }
Creates node to hold data in cache
79
8
3,745
public boolean remove ( ) { if ( exists ( ) && ! isRemoved ( ) ) { isRemoved = true ; node . getParent ( ) . removeChild ( nodeFqn . getLastElement ( ) ) ; if ( doTraceLogs ) { logger . trace ( "removed cache node " + nodeFqn ) ; } return true ; } else { return false ; } }
Removes node that holds data in cache
84
8
3,746
public static auditsyslogpolicy_vpnvserver_binding [ ] get ( nitro_service service , String name ) throws Exception { auditsyslogpolicy_vpnvserver_binding obj = new auditsyslogpolicy_vpnvserver_binding ( ) ; obj . set_name ( name ) ; auditsyslogpolicy_vpnvserver_binding response [ ] = ( auditsyslogpolicy_vpnvserver_bin...
Use this API to fetch auditsyslogpolicy_vpnvserver_binding resources of given name .
109
21
3,747
public static base_response update ( nitro_service client , filterpostbodyinjection resource ) throws Exception { filterpostbodyinjection updateresource = new filterpostbodyinjection ( ) ; updateresource . postbody = resource . postbody ; return updateresource . update_resource ( client ) ; }
Use this API to update filterpostbodyinjection .
63
11
3,748
public static base_response unset ( nitro_service client , filterpostbodyinjection resource , String [ ] args ) throws Exception { filterpostbodyinjection unsetresource = new filterpostbodyinjection ( ) ; return unsetresource . unset_resource ( client , args ) ; }
Use this API to unset the properties of filterpostbodyinjection resource . Properties that need to be unset are specified in args array .
63
29
3,749
public static filterpostbodyinjection get ( nitro_service service ) throws Exception { filterpostbodyinjection obj = new filterpostbodyinjection ( ) ; filterpostbodyinjection [ ] response = ( filterpostbodyinjection [ ] ) obj . get_resources ( service ) ; return response [ 0 ] ; }
Use this API to fetch all the filterpostbodyinjection resources that are configured on netscaler .
68
21
3,750
public static vrid6_binding get ( nitro_service service , Long id ) throws Exception { vrid6_binding obj = new vrid6_binding ( ) ; obj . set_id ( id ) ; vrid6_binding response = ( vrid6_binding ) obj . get_resource ( service ) ; return response ; }
Use this API to fetch vrid6_binding resource of given name .
73
15
3,751
public static base_response update ( nitro_service client , ipsecparameter resource ) throws Exception { ipsecparameter updateresource = new ipsecparameter ( ) ; updateresource . ikeversion = resource . ikeversion ; updateresource . encalgo = resource . encalgo ; updateresource . hashalgo = resource . hashalgo ; update...
Use this API to update ipsecparameter .
161
10
3,752
public static base_response unset ( nitro_service client , ipsecparameter resource , String [ ] args ) throws Exception { ipsecparameter unsetresource = new ipsecparameter ( ) ; return unsetresource . unset_resource ( client , args ) ; }
Use this API to unset the properties of ipsecparameter resource . Properties that need to be unset are specified in args array .
60
28
3,753
public static ipsecparameter get ( nitro_service service ) throws Exception { ipsecparameter obj = new ipsecparameter ( ) ; ipsecparameter [ ] response = ( ipsecparameter [ ] ) obj . get_resources ( service ) ; return response [ 0 ] ; }
Use this API to fetch all the ipsecparameter resources that are configured on netscaler .
63
20
3,754
public static base_response update ( nitro_service client , nstcpparam resource ) throws Exception { nstcpparam updateresource = new nstcpparam ( ) ; updateresource . ws = resource . ws ; updateresource . wsval = resource . wsval ; updateresource . sack = resource . sack ; updateresource . learnvsvrmss = resource . lea...
Use this API to update nstcpparam .
729
10
3,755
public static base_response unset ( nitro_service client , nstcpparam resource , String [ ] args ) throws Exception { nstcpparam unsetresource = new nstcpparam ( ) ; return unsetresource . unset_resource ( client , args ) ; }
Use this API to unset the properties of nstcpparam resource . Properties that need to be unset are specified in args array .
60
28
3,756
public static nstcpparam get ( nitro_service service ) throws Exception { nstcpparam obj = new nstcpparam ( ) ; nstcpparam [ ] response = ( nstcpparam [ ] ) obj . get_resources ( service ) ; return response [ 0 ] ; }
Use this API to fetch all the nstcpparam resources that are configured on netscaler .
63
20
3,757
public void writeBit ( int value , int number ) throws IOException { int localNumber = number ; while ( localNumber > 0 ) { localNumber -- ; bitBuffer |= ( ( value & 1 ) << bitCount ++ ) ; if ( bitCount == 8 ) { createByte ( ) ; } } }
Write bit .
65
3
3,758
public void writeEliasGammaCodingPositiveInteger ( int value ) throws IOException { if ( value > 0 ) { if ( value == 1 ) { writeBit ( 1 ) ; } else { writeBit ( 0 ) ; writeEliasGammaCodingPositiveInteger ( value / 2 ) ; writeBit ( value % 2 ) ; } } }
Write elias gamma coding positive integer .
76
8
3,759
public static nspbr_stats [ ] get ( nitro_service service ) throws Exception { nspbr_stats obj = new nspbr_stats ( ) ; nspbr_stats [ ] response = ( nspbr_stats [ ] ) obj . stat_resources ( service ) ; return response ; }
Use this API to fetch the statistics of all nspbr_stats resources that are configured on netscaler .
67
23
3,760
public static nspbr_stats get ( nitro_service service , String name ) throws Exception { nspbr_stats obj = new nspbr_stats ( ) ; obj . set_name ( name ) ; nspbr_stats response = ( nspbr_stats ) obj . stat_resource ( service ) ; return response ; }
Use this API to fetch statistics of nspbr_stats resource of given name .
73
17
3,761
public static nstimer_autoscalepolicy_binding [ ] get ( nitro_service service , String name ) throws Exception { nstimer_autoscalepolicy_binding obj = new nstimer_autoscalepolicy_binding ( ) ; obj . set_name ( name ) ; nstimer_autoscalepolicy_binding response [ ] = ( nstimer_autoscalepolicy_binding [ ] ) obj . get_reso...
Use this API to fetch nstimer_autoscalepolicy_binding resources of given name .
109
21
3,762
public static lbwlm_binding get ( nitro_service service , String wlmname ) throws Exception { lbwlm_binding obj = new lbwlm_binding ( ) ; obj . set_wlmname ( wlmname ) ; lbwlm_binding response = ( lbwlm_binding ) obj . get_resource ( service ) ; return response ; }
Use this API to fetch lbwlm_binding resource of given name .
81
15
3,763
public static protocolipv6_stats get ( nitro_service service ) throws Exception { protocolipv6_stats obj = new protocolipv6_stats ( ) ; protocolipv6_stats [ ] response = ( protocolipv6_stats [ ] ) obj . stat_resources ( service ) ; return response [ 0 ] ; }
Use this API to fetch the statistics of all protocolipv6_stats resources that are configured on netscaler .
73
24
3,764
public static authorizationpolicy_csvserver_binding [ ] get ( nitro_service service , String name ) throws Exception { authorizationpolicy_csvserver_binding obj = new authorizationpolicy_csvserver_binding ( ) ; obj . set_name ( name ) ; authorizationpolicy_csvserver_binding response [ ] = ( authorizationpolicy_csvserve...
Use this API to fetch authorizationpolicy_csvserver_binding resources of given name .
89
17
3,765
public static cachepolicy_binding get ( nitro_service service , String policyname ) throws Exception { cachepolicy_binding obj = new cachepolicy_binding ( ) ; obj . set_policyname ( policyname ) ; cachepolicy_binding response = ( cachepolicy_binding ) obj . get_resource ( service ) ; return response ; }
Use this API to fetch cachepolicy_binding resource of given name .
75
14
3,766
public static cachepolicy_binding [ ] get ( nitro_service service , String policyname [ ] ) throws Exception { if ( policyname != null && policyname . length > 0 ) { cachepolicy_binding response [ ] = new cachepolicy_binding [ policyname . length ] ; cachepolicy_binding obj [ ] = new cachepolicy_binding [ policyname . ...
Use this API to fetch cachepolicy_binding resources of given names .
169
14
3,767
private static synchronized Tree getCollocationProcessedTree ( Tree tree , HeadFinder hf ) { if ( wnc == null ) { try { Class < ? > cl = Class . forName ( "edu.stanford.nlp.trees.WordNetInstance" ) ; wnc = ( WordNetConnection ) cl . newInstance ( ) ; } catch ( Exception e ) { System . err . println ( "Couldn't open Wor...
For the input tree collapse any collocations in it that exist in WordNet and are contiguous in the tree into a single node . A single static Wordnet connection is used by all instances of this class . Reflection to check that a Wordnet connection exists . Otherwise we print an error and do nothing .
188
61
3,768
public static nshardware get ( nitro_service service ) throws Exception { nshardware obj = new nshardware ( ) ; nshardware [ ] response = ( nshardware [ ] ) obj . get_resources ( service ) ; return response [ 0 ] ; }
Use this API to fetch all the nshardware resources that are configured on netscaler .
63
20
3,769
public static systemuser_systemgroup_binding [ ] get ( nitro_service service , String username ) throws Exception { systemuser_systemgroup_binding obj = new systemuser_systemgroup_binding ( ) ; obj . set_username ( username ) ; systemuser_systemgroup_binding response [ ] = ( systemuser_systemgroup_binding [ ] ) obj . g...
Use this API to fetch systemuser_systemgroup_binding resources of given name .
89
17
3,770
public static authorizationpolicy_authorizationpolicylabel_binding [ ] get ( nitro_service service , String name ) throws Exception { authorizationpolicy_authorizationpolicylabel_binding obj = new authorizationpolicy_authorizationpolicylabel_binding ( ) ; obj . set_name ( name ) ; authorizationpolicy_authorizationpolic...
Use this API to fetch authorizationpolicy_authorizationpolicylabel_binding resources of given name .
109
21
3,771
protected static double precision ( Set < ? > s1 , Set < ? > s2 ) { double n = 0.0 ; double p = 0.0 ; for ( Object o1 : s1 ) { if ( s2 . contains ( o1 ) ) { p += 1.0 ; } if ( DEBUG ) { if ( s2 . contains ( o1 ) ) { System . err . println ( "Eval Found: " + o1 ) ; } else { System . err . println ( "Eval Failed to find: ...
should be able to pass in a comparator!
170
10
3,772
public static int invertedCompare ( Solution s1 , Solution s2 ) { int flag = InvertedCompareUtils . RankCompare ( s1 , s2 ) ; if ( flag == 0 ) { flag = InvertedCompareUtils . CrowdingDistanceCompare ( s1 , s2 ) ; } return flag ; }
return - 1 if s2 is better
66
8
3,773
public static rnat6_binding get ( nitro_service service , String name ) throws Exception { rnat6_binding obj = new rnat6_binding ( ) ; obj . set_name ( name ) ; rnat6_binding response = ( rnat6_binding ) obj . get_resource ( service ) ; return response ; }
Use this API to fetch rnat6_binding resource of given name .
73
15
3,774
public static cachepolicy_csvserver_binding [ ] get ( nitro_service service , String policyname ) throws Exception { cachepolicy_csvserver_binding obj = new cachepolicy_csvserver_binding ( ) ; obj . set_policyname ( policyname ) ; cachepolicy_csvserver_binding response [ ] = ( cachepolicy_csvserver_binding [ ] ) obj . ...
Use this API to fetch cachepolicy_csvserver_binding resources of given name .
96
17
3,775
public static dnspolicy64_binding get ( nitro_service service , String name ) throws Exception { dnspolicy64_binding obj = new dnspolicy64_binding ( ) ; obj . set_name ( name ) ; dnspolicy64_binding response = ( dnspolicy64_binding ) obj . get_resource ( service ) ; return response ; }
Use this API to fetch dnspolicy64_binding resource of given name .
83
17
3,776
public static appfwpolicy_binding get ( nitro_service service , String name ) throws Exception { appfwpolicy_binding obj = new appfwpolicy_binding ( ) ; obj . set_name ( name ) ; appfwpolicy_binding response = ( appfwpolicy_binding ) obj . get_resource ( service ) ; return response ; }
Use this API to fetch appfwpolicy_binding resource of given name .
78
16
3,777
private void writeObject ( ObjectOutputStream s ) throws IOException { Iterator < E > it = iterator ( ) ; s . writeInt ( size ( ) * 2 ) ; // expectedMaxSize s . writeInt ( size ( ) ) ; while ( it . hasNext ( ) ) s . writeObject ( it . next ( ) ) ; }
Serialize this Object in a manner which is binary - compatible with the JDK .
73
17
3,778
private void readObject ( ObjectInputStream s ) throws IOException , ClassNotFoundException { int size , expectedMaxSize ; Object o ; expectedMaxSize = s . readInt ( ) ; size = s . readInt ( ) ; map = new IdentityHashMap < E , Boolean > ( expectedMaxSize ) ; for ( int i = 0 ; i < size ; i ++ ) { o = s . readObject ( ) ...
Deserialize this Object in a manner which is binary - compatible with the JDK .
110
18
3,779
double [ ] lineMinimize ( DiffFunction function , double [ ] initial , double [ ] direction ) { // make a 1-dim function along the direction line // THIS IS A HACK (but it's the NRiC peoples' hack) OneDimDiffFunction oneDim = new OneDimDiffFunction ( function , initial , direction ) ; // do a 1-dim line min on this fun...
public double lastXx = 1 . 0 ;
565
10
3,780
public static base_response add ( nitro_service client , sslpolicy resource ) throws Exception { sslpolicy addresource = new sslpolicy ( ) ; addresource . name = resource . name ; addresource . rule = resource . rule ; addresource . reqaction = resource . reqaction ; addresource . action = resource . action ; addresour...
Use this API to add sslpolicy .
106
9
3,781
public static sslpolicy [ ] get ( nitro_service service ) throws Exception { sslpolicy obj = new sslpolicy ( ) ; sslpolicy [ ] response = ( sslpolicy [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch all the sslpolicy resources that are configured on netscaler .
57
19
3,782
public static sslpolicy get ( nitro_service service , String name ) throws Exception { sslpolicy obj = new sslpolicy ( ) ; obj . set_name ( name ) ; sslpolicy response = ( sslpolicy ) obj . get_resource ( service ) ; return response ; }
Use this API to fetch sslpolicy resource of given name .
63
13
3,783
public static systemgroup_systemuser_binding [ ] get ( nitro_service service , String groupname ) throws Exception { systemgroup_systemuser_binding obj = new systemgroup_systemuser_binding ( ) ; obj . set_groupname ( groupname ) ; systemgroup_systemuser_binding response [ ] = ( systemgroup_systemuser_binding [ ] ) obj ...
Use this API to fetch systemgroup_systemuser_binding resources of given name .
92
17
3,784
public static nsconnectiontable [ ] get ( nitro_service service ) throws Exception { nsconnectiontable obj = new nsconnectiontable ( ) ; nsconnectiontable [ ] response = ( nsconnectiontable [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch all the nsconnectiontable resources that are configured on netscaler .
57
19
3,785
public static nsconnectiontable [ ] get ( nitro_service service , nsconnectiontable_args args ) throws Exception { nsconnectiontable obj = new nsconnectiontable ( ) ; options option = new options ( ) ; option . set_args ( nitro_util . object_to_string_withoutquotes ( args ) ) ; nsconnectiontable [ ] response = ( nsconn...
Use this API to fetch all the nsconnectiontable resources that are configured on netscaler . This uses nsconnectiontable_args which is a way to provide additional arguments while fetching the resources .
99
40
3,786
public static KeyLookup getCoreKey ( String oldKey ) { for ( KeyLookup lookup : KeyLookup . values ( ) ) { if ( lookup . oldKey . equals ( oldKey ) ) { return lookup ; } } return null ; }
Returns a CoreAnnotation class key for the given old - style FeatureLabel key if one exists ; null otherwise .
53
23
3,787
@ SuppressWarnings ( "unchecked" ) public static Class < ? > getValueType ( Class < ? extends CoreAnnotation > key ) { Class type = valueCache . get ( key ) ; if ( type == null ) { try { type = key . newInstance ( ) . getType ( ) ; } catch ( Exception e ) { throw new RuntimeException ( "Unexpected failure to instantiat...
Returns the runtime value type associated with the given key . Caches results .
116
15
3,788
public static base_response add ( nitro_service client , policypatset resource ) throws Exception { policypatset addresource = new policypatset ( ) ; addresource . name = resource . name ; addresource . indextype = resource . indextype ; return addresource . add_resource ( client ) ; }
Use this API to add policypatset .
71
10
3,789
public static policypatset [ ] get ( nitro_service service ) throws Exception { policypatset obj = new policypatset ( ) ; policypatset [ ] response = ( policypatset [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch all the policypatset resources that are configured on netscaler .
62
20
3,790
public static policypatset get ( nitro_service service , String name ) throws Exception { policypatset obj = new policypatset ( ) ; obj . set_name ( name ) ; policypatset response = ( policypatset ) obj . get_resource ( service ) ; return response ; }
Use this API to fetch policypatset resource of given name .
68
14
3,791
public static policypatset [ ] get_filtered ( nitro_service service , filtervalue [ ] filter ) throws Exception { policypatset obj = new policypatset ( ) ; options option = new options ( ) ; option . set_filter ( filter ) ; policypatset [ ] response = ( policypatset [ ] ) obj . getfiltered ( service , option ) ; return...
Use this API to fetch filtered set of policypatset resources . set the filter parameter values in filtervalue object .
90
24
3,792
public static filterpolicy_filterglobal_binding [ ] get ( nitro_service service , String name ) throws Exception { filterpolicy_filterglobal_binding obj = new filterpolicy_filterglobal_binding ( ) ; obj . set_name ( name ) ; filterpolicy_filterglobal_binding response [ ] = ( filterpolicy_filterglobal_binding [ ] ) obj ...
Use this API to fetch filterpolicy_filterglobal_binding resources of given name .
89
17
3,793
public static base_response update ( nitro_service client , nstcpbufparam resource ) throws Exception { nstcpbufparam updateresource = new nstcpbufparam ( ) ; updateresource . size = resource . size ; updateresource . memlimit = resource . memlimit ; return updateresource . update_resource ( client ) ; }
Use this API to update nstcpbufparam .
72
11
3,794
public static base_response unset ( nitro_service client , nstcpbufparam resource , String [ ] args ) throws Exception { nstcpbufparam unsetresource = new nstcpbufparam ( ) ; return unsetresource . unset_resource ( client , args ) ; }
Use this API to unset the properties of nstcpbufparam resource . Properties that need to be unset are specified in args array .
63
29
3,795
public static nstcpbufparam get ( nitro_service service ) throws Exception { nstcpbufparam obj = new nstcpbufparam ( ) ; nstcpbufparam [ ] response = ( nstcpbufparam [ ] ) obj . get_resources ( service ) ; return response [ 0 ] ; }
Use this API to fetch all the nstcpbufparam resources that are configured on netscaler .
68
21
3,796
@ SuppressWarnings ( "unchecked" ) protected void increaseNewListSize ( ) throws IOException { if ( ! closed ) { String [ ] tmpNewKeyList = newKeyList ; int [ ] tmpNewSourceNumberList = newSourceNumberList ; int [ ] tmpNewErrorNumber = newErrorNumber ; HashMap < String , Integer > [ ] tmpNewErrorList = newErrorList ; i...
Increase new list size .
361
5
3,797
public void closeSegmentKeyValueRegistration ( ) throws IOException { if ( ! closed ) { if ( segmentRegistration != null ) { Map < String , T1 > keyValueList = segmentKeyValueList . get ( segmentName ) ; T1 tmpSegmentValueBoundary = segmentValuesBoundary . get ( segmentName ) ; for ( Entry < String , T1 > entry : keyVa...
Close segment key value registration .
156
6
3,798
public void recomputeSegmentKeys ( ) throws IOException { if ( ! closed && segmentRegistration != null ) { if ( segmentRegistration . equals ( SEGMENT_SORT_ASC ) || segmentRegistration . equals ( SEGMENT_SORT_DESC ) || segmentRegistration . equals ( SEGMENT_BOUNDARY_ASC ) || segmentRegistration . equals ( SEGMENT_BOUND...
Recompute segment keys .
645
6
3,799
protected boolean validateWithSegmentBoundary ( T1 value ) throws IOException { if ( ! closed && segmentRegistration != null ) { T1 tmpSegmentValueBoundary = segmentValuesBoundary . get ( segmentName ) ; if ( tmpSegmentValueBoundary == null || compareWithBoundary ( value , tmpSegmentValueBoundary ) ) { return true ; } ...
Validate with segment boundary .
84
6