idx int64 0 165k | question stringlengths 73 4.15k | target stringlengths 5 918 | len_question int64 21 890 | len_target int64 3 255 |
|---|---|---|---|---|
3,900 | public static base_response update ( nitro_service client , filterhtmlinjectionvariable resource ) throws Exception { filterhtmlinjectionvariable updateresource = new filterhtmlinjectionvariable ( ) ; updateresource . variable = resource . variable ; updateresource . value = resource . value ; return updateresource . u... | Use this API to update filterhtmlinjectionvariable . | 70 | 11 |
3,901 | public static base_responses update ( nitro_service client , filterhtmlinjectionvariable resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { filterhtmlinjectionvariable updateresources [ ] = new filterhtmlinjectionvariable [ resources . length ] ; for (... | Use this API to update filterhtmlinjectionvariable resources . | 152 | 12 |
3,902 | public static base_response unset ( nitro_service client , filterhtmlinjectionvariable resource , String [ ] args ) throws Exception { filterhtmlinjectionvariable unsetresource = new filterhtmlinjectionvariable ( ) ; unsetresource . variable = resource . variable ; return unsetresource . unset_resource ( client , args ... | Use this API to unset the properties of filterhtmlinjectionvariable resource . Properties that need to be unset are specified in args array . | 73 | 29 |
3,903 | public static base_responses unset ( nitro_service client , String variable [ ] , String args [ ] ) throws Exception { base_responses result = null ; if ( variable != null && variable . length > 0 ) { filterhtmlinjectionvariable unsetresources [ ] = new filterhtmlinjectionvariable [ variable . length ] ; for ( int i = ... | Use this API to unset the properties of filterhtmlinjectionvariable resources . Properties that need to be unset are specified in args array . | 144 | 29 |
3,904 | public static filterhtmlinjectionvariable [ ] get ( nitro_service service ) throws Exception { filterhtmlinjectionvariable obj = new filterhtmlinjectionvariable ( ) ; filterhtmlinjectionvariable [ ] response = ( filterhtmlinjectionvariable [ ] ) obj . get_resources ( service ) ; return response ; } | Use this API to fetch all the filterhtmlinjectionvariable resources that are configured on netscaler . | 67 | 21 |
3,905 | public static filterhtmlinjectionvariable get ( nitro_service service , String variable ) throws Exception { filterhtmlinjectionvariable obj = new filterhtmlinjectionvariable ( ) ; obj . set_variable ( variable ) ; filterhtmlinjectionvariable response = ( filterhtmlinjectionvariable ) obj . get_resource ( service ) ; r... | Use this API to fetch filterhtmlinjectionvariable resource of given name . | 73 | 15 |
3,906 | public static filterhtmlinjectionvariable [ ] get ( nitro_service service , String variable [ ] ) throws Exception { if ( variable != null && variable . length > 0 ) { filterhtmlinjectionvariable response [ ] = new filterhtmlinjectionvariable [ variable . length ] ; filterhtmlinjectionvariable obj [ ] = new filterhtmli... | Use this API to fetch filterhtmlinjectionvariable resources of given names . | 159 | 15 |
3,907 | public static lbgroup_binding get ( nitro_service service , String name ) throws Exception { lbgroup_binding obj = new lbgroup_binding ( ) ; obj . set_name ( name ) ; lbgroup_binding response = ( lbgroup_binding ) obj . get_resource ( service ) ; return response ; } | Use this API to fetch lbgroup_binding resource of given name . | 68 | 14 |
3,908 | public static sslservicegroup_sslciphersuite_binding [ ] get ( nitro_service service , String servicegroupname ) throws Exception { sslservicegroup_sslciphersuite_binding obj = new sslservicegroup_sslciphersuite_binding ( ) ; obj . set_servicegroupname ( servicegroupname ) ; sslservicegroup_sslciphersuite_binding respo... | Use this API to fetch sslservicegroup_sslciphersuite_binding resources of given name . | 120 | 22 |
3,909 | public static long count ( nitro_service service , String servicegroupname ) throws Exception { sslservicegroup_sslciphersuite_binding obj = new sslservicegroup_sslciphersuite_binding ( ) ; obj . set_servicegroupname ( servicegroupname ) ; options option = new options ( ) ; option . set_count ( true ) ; sslservicegroup... | Use this API to count sslservicegroup_sslciphersuite_binding resources configued on NetScaler . | 143 | 25 |
3,910 | public static base_response update ( nitro_service client , cacheparameter resource ) throws Exception { cacheparameter updateresource = new cacheparameter ( ) ; updateresource . memlimit = resource . memlimit ; updateresource . via = resource . via ; updateresource . verifyusing = resource . verifyusing ; updateresour... | Use this API to update cacheparameter . | 146 | 9 |
3,911 | public static base_response unset ( nitro_service client , cacheparameter resource , String [ ] args ) throws Exception { cacheparameter unsetresource = new cacheparameter ( ) ; return unsetresource . unset_resource ( client , args ) ; } | Use this API to unset the properties of cacheparameter resource . Properties that need to be unset are specified in args array . | 57 | 27 |
3,912 | public static cacheparameter get ( nitro_service service ) throws Exception { cacheparameter obj = new cacheparameter ( ) ; cacheparameter [ ] response = ( cacheparameter [ ] ) obj . get_resources ( service ) ; return response [ 0 ] ; } | Use this API to fetch all the cacheparameter resources that are configured on netscaler . | 58 | 19 |
3,913 | public static auditsyslogpolicy_csvserver_binding [ ] get ( nitro_service service , String name ) throws Exception { auditsyslogpolicy_csvserver_binding obj = new auditsyslogpolicy_csvserver_binding ( ) ; obj . set_name ( name ) ; auditsyslogpolicy_csvserver_binding response [ ] = ( auditsyslogpolicy_csvserver_binding ... | Use this API to fetch auditsyslogpolicy_csvserver_binding resources of given name . | 99 | 19 |
3,914 | public static base_response clear ( nitro_service client , nslimitsessions resource ) throws Exception { nslimitsessions clearresource = new nslimitsessions ( ) ; clearresource . limitidentifier = resource . limitidentifier ; return clearresource . perform_operation ( client , "clear" ) ; } | Use this API to clear nslimitsessions . | 63 | 9 |
3,915 | public static base_responses clear ( nitro_service client , nslimitsessions resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { nslimitsessions clearresources [ ] = new nslimitsessions [ resources . length ] ; for ( int i = 0 ; i < resources . length ; ... | Use this API to clear nslimitsessions resources . | 139 | 10 |
3,916 | public static nslimitsessions [ ] get ( nitro_service service , nslimitsessions_args args ) throws Exception { nslimitsessions obj = new nslimitsessions ( ) ; options option = new options ( ) ; option . set_args ( nitro_util . object_to_string_withoutquotes ( args ) ) ; nslimitsessions [ ] response = ( nslimitsessions ... | Use this API to fetch all the nslimitsessions resources that are configured on netscaler . This uses nslimitsessions_args which is a way to provide additional arguments while fetching the resources . | 99 | 40 |
3,917 | public static base_response update ( nitro_service client , lbgroup resource ) throws Exception { lbgroup updateresource = new lbgroup ( ) ; updateresource . name = resource . name ; updateresource . persistencetype = resource . persistencetype ; updateresource . persistencebackup = resource . persistencebackup ; updat... | Use this API to update lbgroup . | 177 | 8 |
3,918 | public static base_responses update ( nitro_service client , lbgroup resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { lbgroup updateresources [ ] = new lbgroup [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { updateresourc... | Use this API to update lbgroup resources . | 304 | 9 |
3,919 | public static lbgroup [ ] get ( nitro_service service ) throws Exception { lbgroup obj = new lbgroup ( ) ; lbgroup [ ] response = ( lbgroup [ ] ) obj . get_resources ( service ) ; return response ; } | Use this API to fetch all the lbgroup resources that are configured on netscaler . | 52 | 18 |
3,920 | public static lbgroup get ( nitro_service service , String name ) throws Exception { lbgroup obj = new lbgroup ( ) ; obj . set_name ( name ) ; lbgroup response = ( lbgroup ) obj . get_resource ( service ) ; return response ; } | Use this API to fetch lbgroup resource of given name . | 58 | 12 |
3,921 | public static lbgroup [ ] get_filtered ( nitro_service service , filtervalue [ ] filter ) throws Exception { lbgroup obj = new lbgroup ( ) ; options option = new options ( ) ; option . set_filter ( filter ) ; lbgroup [ ] response = ( lbgroup [ ] ) obj . getfiltered ( service , option ) ; return response ; } | Use this API to fetch filtered set of lbgroup resources . set the filter parameter values in filtervalue object . | 80 | 22 |
3,922 | public static base_responses add ( nitro_service client , tmformssoaction resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { tmformssoaction addresources [ ] = new tmformssoaction [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++... | Use this API to add tmformssoaction resources . | 285 | 12 |
3,923 | public static tmformssoaction [ ] get ( nitro_service service ) throws Exception { tmformssoaction obj = new tmformssoaction ( ) ; tmformssoaction [ ] response = ( tmformssoaction [ ] ) obj . get_resources ( service ) ; return response ; } | Use this API to fetch all the tmformssoaction resources that are configured on netscaler . | 67 | 21 |
3,924 | public static tmformssoaction get ( nitro_service service , String name ) throws Exception { tmformssoaction obj = new tmformssoaction ( ) ; obj . set_name ( name ) ; tmformssoaction response = ( tmformssoaction ) obj . get_resource ( service ) ; return response ; } | Use this API to fetch tmformssoaction resource of given name . | 73 | 15 |
3,925 | public static crvserver_crpolicy_binding [ ] get ( nitro_service service , String name ) throws Exception { crvserver_crpolicy_binding obj = new crvserver_crpolicy_binding ( ) ; obj . set_name ( name ) ; crvserver_crpolicy_binding response [ ] = ( crvserver_crpolicy_binding [ ] ) obj . get_resources ( service ) ; retur... | Use this API to fetch crvserver_crpolicy_binding resources of given name . | 94 | 18 |
3,926 | public static vpnsessionpolicy_vpnvserver_binding [ ] get ( nitro_service service , String name ) throws Exception { vpnsessionpolicy_vpnvserver_binding obj = new vpnsessionpolicy_vpnvserver_binding ( ) ; obj . set_name ( name ) ; vpnsessionpolicy_vpnvserver_binding response [ ] = ( vpnsessionpolicy_vpnvserver_binding ... | Use this API to fetch vpnsessionpolicy_vpnvserver_binding resources of given name . | 114 | 22 |
3,927 | public static pqpolicy_stats [ ] get ( nitro_service service ) throws Exception { pqpolicy_stats obj = new pqpolicy_stats ( ) ; pqpolicy_stats [ ] response = ( pqpolicy_stats [ ] ) obj . stat_resources ( service ) ; return response ; } | Use this API to fetch the statistics of all pqpolicy_stats resources that are configured on netscaler . | 67 | 23 |
3,928 | public static pqpolicy_stats get ( nitro_service service , String policyname ) throws Exception { pqpolicy_stats obj = new pqpolicy_stats ( ) ; obj . set_policyname ( policyname ) ; pqpolicy_stats response = ( pqpolicy_stats ) obj . stat_resource ( service ) ; return response ; } | Use this API to fetch statistics of pqpolicy_stats resource of given name . | 80 | 17 |
3,929 | public static appqoepolicy_lbvserver_binding [ ] get ( nitro_service service , String name ) throws Exception { appqoepolicy_lbvserver_binding obj = new appqoepolicy_lbvserver_binding ( ) ; obj . set_name ( name ) ; appqoepolicy_lbvserver_binding response [ ] = ( appqoepolicy_lbvserver_binding [ ] ) obj . get_resources... | Use this API to fetch appqoepolicy_lbvserver_binding resources of given name . | 109 | 21 |
3,930 | public static < X , Y > Map < Y , X > invert ( Map < X , Y > map ) { Map < Y , X > invertedMap = new HashMap < Y , X > ( ) ; for ( Map . Entry < X , Y > entry : map . entrySet ( ) ) { X key = entry . getKey ( ) ; Y value = entry . getValue ( ) ; invertedMap . put ( value , key ) ; } return invertedMap ; } | Inverts a map x - > y to a map y - > x assuming unique preimages . If they are not unique you get an arbitrary ones as the values in the inverted map . | 101 | 38 |
3,931 | public static < K extends Comparable < ? super K > , V > List < Map . Entry < K , V > > sortedEntries ( Collection < Map . Entry < K , V > > entries ) { List < Entry < K , V > > entriesList = new ArrayList < Map . Entry < K , V > > ( entries ) ; Collections . sort ( entriesList , new Comparator < Map . Entry < K , V > ... | Sorts a list of entries . This menthod is here since the entries might come from a Counter . | 153 | 21 |
3,932 | public static < K extends Comparable < ? super K > , V > List < Map . Entry < K , V > > sortedEntries ( Map < K , V > map ) { return sortedEntries ( map . entrySet ( ) ) ; } | Returns a List of entries in the map sorted by key . | 53 | 12 |
3,933 | public void sampleSequenceRepeatedly ( SequenceModel model , int [ ] sequence , int numSamples ) { sequence = copy ( sequence ) ; // so we don't change the initial, or the one we just stored listener . setInitialSequence ( sequence ) ; for ( int iter = 0 ; iter < numSamples ; iter ++ ) { sampleSequenceForward ( model ,... | Samples the sequence repeatedly making numSamples passes over the entire sequence . | 85 | 15 |
3,934 | public void sampleSequenceRepeatedly ( SequenceModel model , int numSamples ) { int [ ] sequence = getRandomSequence ( model ) ; sampleSequenceRepeatedly ( model , sequence , numSamples ) ; } | Samples the sequence repeatedly making numSamples passes over the entire sequence . Destructively modifies the sequence in place . | 49 | 25 |
3,935 | public void sampleSequenceForward ( SequenceModel model , int [ ] sequence , double temperature ) { // System.err.println("Sampling forward"); for ( int pos = 0 ; pos < sequence . length ; pos ++ ) { samplePosition ( model , sequence , pos , temperature ) ; } } | Samples the complete sequence once in the forward direction Destructively modifies the sequence in place . | 62 | 20 |
3,936 | public void sampleSequenceBackward ( SequenceModel model , int [ ] sequence , double temperature ) { for ( int pos = sequence . length - 1 ; pos >= 0 ; pos -- ) { samplePosition ( model , sequence , pos , temperature ) ; } } | Samples the complete sequence once in the backward direction Destructively modifies the sequence in place . | 54 | 20 |
3,937 | public double samplePosition ( SequenceModel model , int [ ] sequence , int pos , double temperature ) { double [ ] distribution = model . scoresOf ( sequence , pos ) ; if ( temperature != 1.0 ) { if ( temperature == 0.0 ) { // set the max to 1.0 int argmax = ArrayMath . argmax ( distribution ) ; Arrays . fill ( distri... | Samples a single position in the sequence . Destructively modifies the sequence in place . returns the score of the new sequence | 244 | 26 |
3,938 | public static aaagroup_binding get ( nitro_service service , String groupname ) throws Exception { aaagroup_binding obj = new aaagroup_binding ( ) ; obj . set_groupname ( groupname ) ; aaagroup_binding response = ( aaagroup_binding ) obj . get_resource ( service ) ; return response ; } | Use this API to fetch aaagroup_binding resource of given name . | 81 | 16 |
3,939 | public static gslbsyncstatus get ( nitro_service service ) throws Exception { gslbsyncstatus obj = new gslbsyncstatus ( ) ; gslbsyncstatus [ ] response = ( gslbsyncstatus [ ] ) obj . get_resources ( service ) ; return response [ 0 ] ; } | Use this API to fetch all the gslbsyncstatus resources that are configured on netscaler . | 68 | 21 |
3,940 | public static vpnvserver_authenticationnegotiatepolicy_binding [ ] get ( nitro_service service , String name ) throws Exception { vpnvserver_authenticationnegotiatepolicy_binding obj = new vpnvserver_authenticationnegotiatepolicy_binding ( ) ; obj . set_name ( name ) ; vpnvserver_authenticationnegotiatepolicy_binding r... | Use this API to fetch vpnvserver_authenticationnegotiatepolicy_binding resources of given name . | 119 | 23 |
3,941 | public static authenticationvserver_tmsessionpolicy_binding [ ] get ( nitro_service service , String name ) throws Exception { authenticationvserver_tmsessionpolicy_binding obj = new authenticationvserver_tmsessionpolicy_binding ( ) ; obj . set_name ( name ) ; authenticationvserver_tmsessionpolicy_binding response [ ] ... | Use this API to fetch authenticationvserver_tmsessionpolicy_binding resources of given name . | 104 | 20 |
3,942 | public static vpnglobal_authenticationtacacspolicy_binding [ ] get ( nitro_service service ) throws Exception { vpnglobal_authenticationtacacspolicy_binding obj = new vpnglobal_authenticationtacacspolicy_binding ( ) ; vpnglobal_authenticationtacacspolicy_binding response [ ] = ( vpnglobal_authenticationtacacspolicy_bin... | Use this API to fetch a vpnglobal_authenticationtacacspolicy_binding resources . | 112 | 22 |
3,943 | public static sslservice_sslcipher_binding [ ] get ( nitro_service service , String servicename ) throws Exception { sslservice_sslcipher_binding obj = new sslservice_sslcipher_binding ( ) ; obj . set_servicename ( servicename ) ; sslservice_sslcipher_binding response [ ] = ( sslservice_sslcipher_binding [ ] ) obj . ge... | Use this API to fetch sslservice_sslcipher_binding resources of given name . | 103 | 19 |
3,944 | private ComponentFields getMtasFields ( ResponseBuilder rb ) { return ( ComponentFields ) rb . req . getContext ( ) . get ( ComponentFields . class ) ; } | Gets the mtas fields . | 43 | 7 |
3,945 | private void initializeRequestHandler ( ResponseBuilder rb ) { if ( requestHandler == null ) { // try to initialize for ( Entry < String , SolrInfoBean > entry : rb . req . getCore ( ) . getInfoRegistry ( ) . entrySet ( ) ) { if ( entry . getValue ( ) instanceof MtasRequestHandler ) { requestHandlerName = entry . getKe... | Initialize request handler . | 110 | 5 |
3,946 | private void checkStatus ( MtasSolrStatus status ) throws IOException { if ( ! status . finished ( ) ) { if ( status . error ( ) ) { status . setFinished ( ) ; if ( requestHandler != null ) { requestHandler . finishStatus ( status ) ; } throw new IOException ( status . errorMessage ( ) ) ; } else if ( status . abort ( ... | Check status . | 127 | 3 |
3,947 | private void errorStatus ( MtasSolrStatus status , IOException exception ) { try { status . setError ( exception ) ; if ( requestHandler != null ) { requestHandler . finishStatus ( status ) ; } } catch ( IOException e ) { log . error ( e ) ; } } | Error status . | 62 | 3 |
3,948 | public double computeAverage ( Function < Triple < GeneralDataset < L , F > , GeneralDataset < L , F > , SavedState > , Double > function ) { double sum = 0 ; Iterator < Triple < GeneralDataset < L , F > , GeneralDataset < L , F > , SavedState > > foldIt = iterator ( ) ; while ( foldIt . hasNext ( ) ) { sum += function... | This computes the average over all folds of the function we re trying to optimize . The input triple contains in order the train set the test set and the saved state . You don t have to use the saved state if you don t want to . | 114 | 50 |
3,949 | public static vpnvserver_binding get ( nitro_service service , String name ) throws Exception { vpnvserver_binding obj = new vpnvserver_binding ( ) ; obj . set_name ( name ) ; vpnvserver_binding response = ( vpnvserver_binding ) obj . get_resource ( service ) ; return response ; } | Use this API to fetch vpnvserver_binding resource of given name . | 78 | 16 |
3,950 | public static tmglobal_auditsyslogpolicy_binding [ ] get ( nitro_service service ) throws Exception { tmglobal_auditsyslogpolicy_binding obj = new tmglobal_auditsyslogpolicy_binding ( ) ; tmglobal_auditsyslogpolicy_binding response [ ] = ( tmglobal_auditsyslogpolicy_binding [ ] ) obj . get_resources ( service ) ; retur... | Use this API to fetch a tmglobal_auditsyslogpolicy_binding resources . | 97 | 19 |
3,951 | public static appflow_stats get ( nitro_service service ) throws Exception { appflow_stats obj = new appflow_stats ( ) ; appflow_stats [ ] response = ( appflow_stats [ ] ) obj . stat_resources ( service ) ; return response [ 0 ] ; } | Use this API to fetch the statistics of all appflow_stats resources that are configured on netscaler . | 63 | 22 |
3,952 | protected Map < Term , TermContext > getTermContexts ( List < MtasSpanNotQueryWeight > items ) { List < SpanWeight > weights = new ArrayList <> ( ) ; for ( MtasSpanNotQueryWeight item : items ) { weights . add ( item . spanWeight ) ; } return getTermContexts ( weights ) ; } | Gets the term contexts . | 76 | 6 |
3,953 | private List < F > getHighPrecisionFeatures ( GeneralDataset < L , F > dataset , double minPrecision , int maxNumFeatures ) { int [ ] [ ] feature2label = new int [ dataset . numFeatures ( ) ] [ dataset . numClasses ( ) ] ; for ( int f = 0 ; f < dataset . numFeatures ( ) ; f ++ ) Arrays . fill ( feature2label [ f ] , 0 ... | Returns a list of featured thresholded by minPrecision and sorted by their frequency of occurrence . precision in this case is defined as the frequency of majority label over total frequency for that feature . | 442 | 38 |
3,954 | public LinearClassifier < L , F > trainClassifierV ( GeneralDataset < L , F > train , GeneralDataset < L , F > validation , double min , double max , boolean accuracy ) { labelIndex = train . labelIndex ( ) ; featureIndex = train . featureIndex ( ) ; this . min = min ; this . max = max ; heldOutSetSigma ( train , valid... | Train a classifier with a sigma tuned on a validation set . | 132 | 14 |
3,955 | public Classifier < String , String > loadFromFilename ( String file ) { try { File tgtFile = new File ( file ) ; BufferedReader in = new BufferedReader ( new FileReader ( tgtFile ) ) ; // Format: read indicies first, weights, then thresholds Index < String > labelIndex = HashIndex . loadFromReader ( in ) ; Index < Str... | Given the path to a file representing the text based serialization of a Linear Classifier reconstitutes and returns that LinearClassifier . | 477 | 27 |
3,956 | public static vpnsessionpolicy_vpnglobal_binding [ ] get ( nitro_service service , String name ) throws Exception { vpnsessionpolicy_vpnglobal_binding obj = new vpnsessionpolicy_vpnglobal_binding ( ) ; obj . set_name ( name ) ; vpnsessionpolicy_vpnglobal_binding response [ ] = ( vpnsessionpolicy_vpnglobal_binding [ ] )... | Use this API to fetch vpnsessionpolicy_vpnglobal_binding resources of given name . | 114 | 22 |
3,957 | public static clusternode_stats [ ] get ( nitro_service service ) throws Exception { clusternode_stats obj = new clusternode_stats ( ) ; clusternode_stats [ ] response = ( clusternode_stats [ ] ) obj . stat_resources ( service ) ; return response ; } | Use this API to fetch the statistics of all clusternode_stats resources that are configured on netscaler . | 67 | 23 |
3,958 | public static clusternode_stats get ( nitro_service service , Long nodeid ) throws Exception { clusternode_stats obj = new clusternode_stats ( ) ; obj . set_nodeid ( nodeid ) ; clusternode_stats response = ( clusternode_stats ) obj . stat_resource ( service ) ; return response ; } | Use this API to fetch statistics of clusternode_stats resource of given name . | 76 | 17 |
3,959 | public T build ( ConfigurationSourceProvider provider , String path ) throws IOException , ConfigurationException { try ( InputStream input = provider . open ( checkNotNull ( path ) ) ) { final JsonNode node = mapper . readTree ( hoconFactory . createParser ( input ) ) ; return build ( node , path ) ; } catch ( ConfigE... | Loads parses binds and validates a configuration object . | 164 | 12 |
3,960 | public T build ( File file ) throws IOException , ConfigurationException { return build ( new FileConfigurationSourceProvider ( ) , file . toString ( ) ) ; } | Loads parses binds and validates a configuration object from a file . | 34 | 15 |
3,961 | public static bridgegroup_binding get ( nitro_service service , Long id ) throws Exception { bridgegroup_binding obj = new bridgegroup_binding ( ) ; obj . set_id ( id ) ; bridgegroup_binding response = ( bridgegroup_binding ) obj . get_resource ( service ) ; return response ; } | Use this API to fetch bridgegroup_binding resource of given name . | 68 | 14 |
3,962 | private static String lemmatize ( String word , String tag , Morpha lexer , boolean lowercase ) { boolean wordHasForbiddenChar = word . indexOf ( ' ' ) >= 0 || word . indexOf ( ' ' ) >= 0 ; String quotedWord = word ; if ( wordHasForbiddenChar ) { // choose something unlikely. Classical Vedic! quotedWord = quotedWord . ... | Lemmatize the word being sensitive to the tag using the passed in lexer . | 333 | 18 |
3,963 | public static base_response update ( nitro_service client , appqoeparameter resource ) throws Exception { appqoeparameter updateresource = new appqoeparameter ( ) ; updateresource . sessionlife = resource . sessionlife ; updateresource . avgwaitingclient = resource . avgwaitingclient ; updateresource . maxaltrespbandwi... | Use this API to update appqoeparameter . | 113 | 12 |
3,964 | public static base_response unset ( nitro_service client , appqoeparameter resource , String [ ] args ) throws Exception { appqoeparameter unsetresource = new appqoeparameter ( ) ; return unsetresource . unset_resource ( client , args ) ; } | Use this API to unset the properties of appqoeparameter resource . Properties that need to be unset are specified in args array . | 66 | 30 |
3,965 | public static appqoeparameter get ( nitro_service service ) throws Exception { appqoeparameter obj = new appqoeparameter ( ) ; appqoeparameter [ ] response = ( appqoeparameter [ ] ) obj . get_resources ( service ) ; return response [ 0 ] ; } | Use this API to fetch all the appqoeparameter resources that are configured on netscaler . | 73 | 22 |
3,966 | public static base_response add ( nitro_service client , server resource ) throws Exception { server addresource = new server ( ) ; addresource . name = resource . name ; addresource . ipaddress = resource . ipaddress ; addresource . domain = resource . domain ; addresource . translationip = resource . translationip ; ... | Use this API to add server . | 150 | 7 |
3,967 | public static base_responses add ( nitro_service client , server resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { server addresources [ ] = new server [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { addresources [ i ] = n... | Use this API to add server resources . | 276 | 8 |
3,968 | public static base_response update ( nitro_service client , server resource ) throws Exception { server updateresource = new server ( ) ; updateresource . name = resource . name ; updateresource . ipaddress = resource . ipaddress ; updateresource . domainresolveretry = resource . domainresolveretry ; updateresource . t... | Use this API to update server . | 125 | 7 |
3,969 | public static base_responses update ( nitro_service client , server resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { server updateresources [ ] = new server [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { updateresources ... | Use this API to update server resources . | 233 | 8 |
3,970 | public static server [ ] get ( nitro_service service ) throws Exception { server obj = new server ( ) ; server [ ] response = ( server [ ] ) obj . get_resources ( service ) ; return response ; } | Use this API to fetch all the server resources that are configured on netscaler . | 47 | 17 |
3,971 | public static server [ ] get ( nitro_service service , server_args args ) throws Exception { server obj = new server ( ) ; options option = new options ( ) ; option . set_args ( nitro_util . object_to_string_withoutquotes ( args ) ) ; server [ ] response = ( server [ ] ) obj . get_resources ( service , option ) ; retur... | Use this API to fetch all the server resources that are configured on netscaler . This uses server_args which is a way to provide additional arguments while fetching the resources . | 87 | 36 |
3,972 | public static server get ( nitro_service service , String name ) throws Exception { server obj = new server ( ) ; obj . set_name ( name ) ; server response = ( server ) obj . get_resource ( service ) ; return response ; } | Use this API to fetch server resource of given name . | 53 | 11 |
3,973 | public static server [ ] get_filtered ( nitro_service service , filtervalue [ ] filter ) throws Exception { server obj = new server ( ) ; options option = new options ( ) ; option . set_filter ( filter ) ; server [ ] response = ( server [ ] ) obj . getfiltered ( service , option ) ; return response ; } | Use this API to fetch filtered set of server resources . set the filter parameter values in filtervalue object . | 75 | 21 |
3,974 | public static systemglobal_auditnslogpolicy_binding [ ] get ( nitro_service service ) throws Exception { systemglobal_auditnslogpolicy_binding obj = new systemglobal_auditnslogpolicy_binding ( ) ; systemglobal_auditnslogpolicy_binding response [ ] = ( systemglobal_auditnslogpolicy_binding [ ] ) obj . get_resources ( se... | Use this API to fetch a systemglobal_auditnslogpolicy_binding resources . | 92 | 18 |
3,975 | public static ntpstatus get ( nitro_service service ) throws Exception { ntpstatus obj = new ntpstatus ( ) ; ntpstatus [ ] response = ( ntpstatus [ ] ) obj . get_resources ( service ) ; return response [ 0 ] ; } | Use this API to fetch all the ntpstatus resources that are configured on netscaler . | 58 | 19 |
3,976 | public static dns_stats get ( nitro_service service ) throws Exception { dns_stats obj = new dns_stats ( ) ; dns_stats [ ] response = ( dns_stats [ ] ) obj . stat_resources ( service ) ; return response [ 0 ] ; } | Use this API to fetch the statistics of all dns_stats resources that are configured on netscaler . | 63 | 22 |
3,977 | public static netbridge_nsip6_binding [ ] get ( nitro_service service , String name ) throws Exception { netbridge_nsip6_binding obj = new netbridge_nsip6_binding ( ) ; obj . set_name ( name ) ; netbridge_nsip6_binding response [ ] = ( netbridge_nsip6_binding [ ] ) obj . get_resources ( service ) ; return response ; } | Use this API to fetch netbridge_nsip6_binding resources of given name . | 94 | 18 |
3,978 | public static long count ( nitro_service service , String name ) throws Exception { netbridge_nsip6_binding obj = new netbridge_nsip6_binding ( ) ; obj . set_name ( name ) ; options option = new options ( ) ; option . set_count ( true ) ; netbridge_nsip6_binding response [ ] = ( netbridge_nsip6_binding [ ] ) obj . get_... | Use this API to count netbridge_nsip6_binding resources configued on NetScaler . | 121 | 21 |
3,979 | public static appfwxmlschema get ( nitro_service service ) throws Exception { appfwxmlschema obj = new appfwxmlschema ( ) ; appfwxmlschema [ ] response = ( appfwxmlschema [ ] ) obj . get_resources ( service ) ; return response [ 0 ] ; } | Use this API to fetch all the appfwxmlschema resources that are configured on netscaler . | 68 | 21 |
3,980 | public static appfwxmlschema get ( nitro_service service , String name ) throws Exception { appfwxmlschema obj = new appfwxmlschema ( ) ; obj . set_name ( name ) ; appfwxmlschema response = ( appfwxmlschema ) obj . get_resource ( service ) ; return response ; } | Use this API to fetch appfwxmlschema resource of given name . | 73 | 15 |
3,981 | public HasWord apply ( HasWord w ) { String str = w . word ( ) ; String outStr = americanize ( str , capitalizeTimex ) ; if ( ! outStr . equals ( str ) ) { w . setWord ( outStr ) ; } return w ; } | Americanize the HasWord or String coming in . | 60 | 10 |
3,982 | public static String americanize ( String str , boolean capitalizeTimex ) { // System.err.println("str is |" + str + "|"); // System.err.println("timexMapping.contains is " + // timexMapping.containsKey(str)); if ( capitalizeTimex && timexMapping . containsKey ( str ) ) { return timexMapping . get ( str ) ; } else if (... | Convert the spelling of a word from British to American English . This is deterministic spelling conversion and so cannot deal with certain cases involving complex ambiguities but it can do most of the simple cases of English to American conversion . | 255 | 46 |
3,983 | public static void main ( String [ ] args ) throws IOException { System . err . println ( new Americanize ( ) ) ; System . err . println ( ) ; if ( args . length == 0 ) { // stdin -> stdout: BufferedReader buf = new BufferedReader ( new InputStreamReader ( System . in ) ) ; String line ; while ( ( line = buf . readLine... | Americanize and print the command line arguments . This main method is just for debugging . | 189 | 17 |
3,984 | public static < E extends Comparable < E > > Interval < E > toValidInterval ( E a , E b ) { return toValidInterval ( a , b , 0 ) ; } | Create an interval with the specified endpoints reordering them as needed | 42 | 13 |
3,985 | public static < E extends Comparable < E > > Interval < E > toValidInterval ( E a , E b , int flags ) { int comp = a . compareTo ( b ) ; if ( comp <= 0 ) { return new Interval ( a , b , flags ) ; } else { return new Interval ( b , a , flags ) ; } } | Create an interval with the specified endpoints reordering them as needed using the specified flags | 78 | 17 |
3,986 | public boolean contains ( E p ) { // Check that the start point is before p boolean check1 = ( includesBegin ( ) ) ? ( first . compareTo ( p ) <= 0 ) : ( first . compareTo ( p ) < 0 ) ; // Check that the end point is after p boolean check2 = ( includesEnd ( ) ) ? ( second . compareTo ( p ) >= 0 ) : ( second . compareTo... | Checks whether the point p is contained inside this interval | 106 | 11 |
3,987 | public boolean isIntervalComparable ( Interval < E > other ) { int flags = getRelationFlags ( other ) ; if ( checkMultipleBitSet ( flags & REL_FLAGS_INTERVAL_UNKNOWN ) ) { return false ; } return checkFlagSet ( flags , REL_FLAGS_INTERVAL_BEFORE ) || checkFlagSet ( flags , REL_FLAGS_INTERVAL_AFTER ) ; } | Checks whether this interval is comparable with another interval comes before or after | 91 | 14 |
3,988 | public int compareIntervalOrder ( Interval < E > other ) { int flags = getRelationFlags ( other ) ; if ( checkFlagExclusiveSet ( flags , REL_FLAGS_INTERVAL_BEFORE , REL_FLAGS_INTERVAL_UNKNOWN ) ) { return - 1 ; } else if ( checkFlagExclusiveSet ( flags , REL_FLAGS_INTERVAL_AFTER , REL_FLAGS_INTERVAL_UNKNOWN ) ) { retur... | Returns order of another interval compared to this one | 111 | 9 |
3,989 | public int getRelationFlags ( Interval < E > other ) { if ( other == null ) return 0 ; int flags = 0 ; int comp11 = this . first . compareTo ( other . first ( ) ) ; // 3 choices flags |= toRelFlags ( comp11 , REL_FLAGS_SS_SHIFT ) ; int comp22 = this . second . compareTo ( other . second ( ) ) ; // 3 choices flags |= to... | Return set of flags indicating possible relationships between this interval and another interval . | 215 | 14 |
3,990 | public static boolean checkMultipleBitSet ( int flags ) { boolean set = false ; while ( flags != 0 ) { if ( ( flags & 0x01 ) != 0 ) { if ( set ) { return false ; } else { set = true ; } } flags = flags >> 1 ; } return false ; } | Utility function to check if multiple bits are set for flags | 65 | 12 |
3,991 | public static boolean checkFlagExclusiveSet ( int flags , int flag , int mask ) { int f = flags & flag ; if ( f != 0 ) { return ( ( flags & mask & ~ flag ) != 0 ) ? false : true ; } else { return false ; } } | Utility function to check if a particular flag is set exclusively given a particular set of flags and a mask | 59 | 21 |
3,992 | public RelType getRelation ( Interval < E > other ) { // TODO: Handle open/closed intervals? if ( other == null ) return RelType . NONE ; int comp11 = this . first . compareTo ( other . first ( ) ) ; // 3 choices int comp22 = this . second . compareTo ( other . second ( ) ) ; // 3 choices if ( comp11 == 0 ) { if ( comp... | Returns the relationship of this interval to the other interval The most specific relationship from the following is returned . | 494 | 20 |
3,993 | public static vpnglobal_vpnurl_binding [ ] get ( nitro_service service ) throws Exception { vpnglobal_vpnurl_binding obj = new vpnglobal_vpnurl_binding ( ) ; vpnglobal_vpnurl_binding response [ ] = ( vpnglobal_vpnurl_binding [ ] ) obj . get_resources ( service ) ; return response ; } | Use this API to fetch a vpnglobal_vpnurl_binding resources . | 92 | 18 |
3,994 | public static base_response add ( nitro_service client , streamselector resource ) throws Exception { streamselector addresource = new streamselector ( ) ; addresource . name = resource . name ; addresource . rule = resource . rule ; return addresource . add_resource ( client ) ; } | Use this API to add streamselector . | 64 | 9 |
3,995 | public static base_response update ( nitro_service client , streamselector resource ) throws Exception { streamselector updateresource = new streamselector ( ) ; updateresource . name = resource . name ; updateresource . rule = resource . rule ; return updateresource . update_resource ( client ) ; } | Use this API to update streamselector . | 64 | 9 |
3,996 | public static streamselector [ ] get ( nitro_service service ) throws Exception { streamselector obj = new streamselector ( ) ; streamselector [ ] response = ( streamselector [ ] ) obj . get_resources ( service ) ; return response ; } | Use this API to fetch all the streamselector resources that are configured on netscaler . | 57 | 19 |
3,997 | public static streamselector get ( nitro_service service , String name ) throws Exception { streamselector obj = new streamselector ( ) ; obj . set_name ( name ) ; streamselector response = ( streamselector ) obj . get_resource ( service ) ; return response ; } | Use this API to fetch streamselector resource of given name . | 63 | 13 |
3,998 | public static appfwglobal_appfwpolicy_binding [ ] get ( nitro_service service ) throws Exception { appfwglobal_appfwpolicy_binding obj = new appfwglobal_appfwpolicy_binding ( ) ; appfwglobal_appfwpolicy_binding response [ ] = ( appfwglobal_appfwpolicy_binding [ ] ) obj . get_resources ( service ) ; return response ; } | Use this API to fetch a appfwglobal_appfwpolicy_binding resources . | 92 | 18 |
3,999 | public static appfwprofile_fieldconsistency_binding [ ] get ( nitro_service service , String name ) throws Exception { appfwprofile_fieldconsistency_binding obj = new appfwprofile_fieldconsistency_binding ( ) ; obj . set_name ( name ) ; appfwprofile_fieldconsistency_binding response [ ] = ( appfwprofile_fieldconsistenc... | Use this API to fetch appfwprofile_fieldconsistency_binding resources of given name . | 104 | 20 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.