idx
int64
0
165k
question
stringlengths
73
5.81k
target
stringlengths
5
918
4,000
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 .
4,001
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 .
4,002
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 .
4,003
public static base_response update ( nitro_service client , dnsparameter resource ) throws Exception { dnsparameter updateresource = new dnsparameter ( ) ; updateresource . retries = resource . retries ; updateresource . minttl = resource . minttl ; updateresource . maxttl = resource . maxttl ; updateresource . cachere...
Use this API to update dnsparameter .
4,004
public static base_response unset ( nitro_service client , dnsparameter resource , String [ ] args ) throws Exception { dnsparameter unsetresource = new dnsparameter ( ) ; return unsetresource . unset_resource ( client , args ) ; }
Use this API to unset the properties of dnsparameter resource . Properties that need to be unset are specified in args array .
4,005
public static dnsparameter get ( nitro_service service ) throws Exception { dnsparameter obj = new dnsparameter ( ) ; dnsparameter [ ] response = ( dnsparameter [ ] ) obj . get_resources ( service ) ; return response [ 0 ] ; }
Use this API to fetch all the dnsparameter resources that are configured on netscaler .
4,006
private static HashSet < String > stringToStringValues ( String stringValue ) throws IOException { HashSet < String > stringValues = new HashSet < > ( ) ; JSONParser jsonParser = new JSONParser ( stringValue ) ; int event = jsonParser . nextEvent ( ) ; if ( event == JSONParser . ARRAY_START ) { while ( ( event = jsonPa...
String to string values .
4,007
public static systemglobal_binding get ( nitro_service service ) throws Exception { systemglobal_binding obj = new systemglobal_binding ( ) ; systemglobal_binding response = ( systemglobal_binding ) obj . get_resource ( service ) ; return response ; }
Use this API to fetch a systemglobal_binding resource .
4,008
protected IntDependency intern ( IntTaggedWord headTW , IntTaggedWord argTW , boolean leftHeaded , short dist ) { Map < IntDependency , IntDependency > map = expandDependencyMap ; IntDependency internTempDependency = new IntDependency ( itwInterner . intern ( headTW ) , itwInterner . intern ( argTW ) , leftHeaded , dis...
This is a custom interner that simultaneously creates and interns an IntDependency .
4,009
public static Analyzer getAnalyzer ( ) { if ( analyzer == null ) initAnalyzer ( ) ; if ( ! analyzer . enableGuessing ) System . err . println ( "Morphologic analyzer has disabled out-of-vocabulary guessing - this will reduce tagging accuracy" ) ; return analyzer ; }
Getter for the currently used analyzer
4,010
private static void applyLVmorphoanalysis ( CoreLabel wi , Collection < String > answerAttributes ) { Word analysis = analyzer . analyze ( wi . word ( ) ) ; applyLVmorphoanalysis ( wi , analysis , answerAttributes ) ; }
Performs LV morphology analysis of the token wi adds the possible readins and marks the most likely one . If an AnswerAnnotation exists then it is considered to be a morphosyntactic tag and the attributes are filtered for the training .
4,011
public static sslpolicy_sslglobal_binding [ ] get ( nitro_service service , String name ) throws Exception { sslpolicy_sslglobal_binding obj = new sslpolicy_sslglobal_binding ( ) ; obj . set_name ( name ) ; sslpolicy_sslglobal_binding response [ ] = ( sslpolicy_sslglobal_binding [ ] ) obj . get_resources ( service ) ; ...
Use this API to fetch sslpolicy_sslglobal_binding resources of given name .
4,012
public MtasDataItemNumberComparator < T > recomputeBoundary ( int n ) throws IOException { if ( sortDirection . equals ( CodecUtil . SORT_DESC ) ) { if ( value instanceof Integer ) { return new MtasDataItemNumberComparator ( Math . floorDiv ( ( Integer ) value , n ) , sortDirection ) ; } else if ( value instanceof Long...
Recompute boundary .
4,013
public static authenticationradiuspolicy_binding get ( nitro_service service , String name ) throws Exception { authenticationradiuspolicy_binding obj = new authenticationradiuspolicy_binding ( ) ; obj . set_name ( name ) ; authenticationradiuspolicy_binding response = ( authenticationradiuspolicy_binding ) obj . get_r...
Use this API to fetch authenticationradiuspolicy_binding resource of given name .
4,014
public void decimate ( Writer trainW , Writer devW , Writer testW ) throws IOException { PrintWriter trainPW = new PrintWriter ( trainW , true ) ; PrintWriter devPW = new PrintWriter ( devW , true ) ; PrintWriter testPW = new PrintWriter ( testW , true ) ; int i = 0 ; for ( Tree t : this ) { if ( i == 8 ) { t . pennPri...
Divide a Treebank into 3 by taking every 9th sentence for the dev set and every 10th for the test set . Penn people do this .
4,015
public static crvserver_cspolicy_binding [ ] get ( nitro_service service , String name ) throws Exception { crvserver_cspolicy_binding obj = new crvserver_cspolicy_binding ( ) ; obj . set_name ( name ) ; crvserver_cspolicy_binding response [ ] = ( crvserver_cspolicy_binding [ ] ) obj . get_resources ( service ) ; retur...
Use this API to fetch crvserver_cspolicy_binding resources of given name .
4,016
private String printConfigMappingTypes ( Map < QName , MtasParserType < MtasParserMapping < ? > > > types ) { StringBuilder text = new StringBuilder ( ) ; for ( Entry < QName , MtasParserType < MtasParserMapping < ? > > > entry : types . entrySet ( ) ) { text . append ( "- " + entry . getKey ( ) . getLocalPart ( ) + ":...
Prints the config mapping types .
4,017
private Collection < ? extends String > recursiveCollect ( String refId , Map < String , SortedSet < String > > relationKeyMap , int maxRecursion ) { Set < String > list = new HashSet < > ( ) ; if ( maxRecursion > 0 && relationKeyMap . containsKey ( refId ) ) { SortedSet < String > subList = relationKeyMap . get ( refI...
Recursive collect .
4,018
private QName getQName ( String key ) { QName qname ; if ( ( qname = qNames . get ( key ) ) == null ) { qname = new QName ( namespaceURI , key ) ; qNames . put ( key , qname ) ; } return qname ; }
Gets the q name .
4,019
public void collectAttributes ( MtasParserObject currentObject , XMLStreamReader streamReader ) { String attributeNamespaceURI ; currentObject . objectAttributes . clear ( ) ; currentObject . objectId = streamReader . getAttributeValue ( namespaceURI_id , "id" ) ; for ( int i = 0 ; i < streamReader . getAttributeCount ...
Collect attributes .
4,020
private Set < MtasParserObject > processCRMSentence ( MtasTokenIdFactory mtasTokenIdFactory , String name , String text , Integer currentOffset , List < MtasCRMParserFunctionOutput > functionOutputList , MtasCRMAncestors unknownAncestors , Map < String , List < MtasParserObject > > currentList , Map < String , Map < In...
Process CRM sentence .
4,021
private void closePrevious ( MtasTokenIdFactory mtasTokenIdFactory , Set < MtasParserObject > previous , Integer currentOffset , MtasCRMAncestors unknownAncestors , Map < String , List < MtasParserObject > > currentList , Map < String , Map < Integer , Set < String > > > updateList , Map < String , Set < Integer > > id...
Close previous .
4,022
private void processFunctions ( String name , String text , String type , List < MtasCRMParserFunctionOutput > functionOutputList ) { if ( functions . containsKey ( type ) && functions . get ( type ) . containsKey ( name ) && text != null ) { MtasCRMParserFunction function = functions . get ( type ) . get ( name ) ; St...
Process functions .
4,023
private String printConfigTypes ( HashMap < ? , MtasParserType < MtasParserMapping < ? > > > types ) { StringBuilder text = new StringBuilder ( ) ; for ( Entry < ? , MtasParserType < MtasParserMapping < ? > > > entry : types . entrySet ( ) ) { text . append ( "- " + entry . getKey ( ) + ": " + entry . getValue ( ) . it...
Prints the config types .
4,024
public int getMinStartPosition ( int docId , int position ) throws IOException { if ( ignoreSpans != null && docId == currentDocId ) { if ( position < minimumPosition ) { throw new IOException ( "Unexpected position, should be >= " + minimumPosition + "!" ) ; } else { computeFullStartPositionMinimum ( position ) ; if (...
Gets the min start position .
4,025
public int getMaxEndPosition ( int docId , int position ) throws IOException { if ( ignoreSpans != null && docId == currentDocId ) { if ( position < minimumPosition ) { throw new IOException ( "Unexpected position, should be >= " + minimumPosition + "!" ) ; } computeFullEndPositionList ( position ) ; if ( maxFullEndPos...
Gets the max end position .
4,026
public Set < Integer > getFullEndPositionList ( int docId , int position ) throws IOException { if ( ignoreSpans != null && docId == currentDocId ) { if ( position < minimumPosition ) { throw new IOException ( "Unexpected startPosition, should be >= " + minimumPosition + "!" ) ; } else { computeFullEndPositionList ( po...
Gets the full end position list .
4,027
private void computeFullStartPositionMinimum ( int position ) throws IOException { if ( ignoreSpans != null && ! minFullStartPosition . containsKey ( position ) ) { HashSet < Integer > list = baseStartPositionList . get ( position ) ; HashSet < Integer > newList = new HashSet < > ( ) ; int minimumStartPosition = positi...
Compute full start position minimum .
4,028
private void computeFullEndPositionList ( int position ) throws IOException { if ( ignoreSpans != null && ! fullEndPositionList . containsKey ( position ) ) { moveTo ( position ) ; HashSet < Integer > list = baseEndPositionList . get ( position ) ; if ( list != null && ! list . isEmpty ( ) ) { int maxEndPosition = maxB...
Compute full end position list .
4,029
private void moveTo ( int position ) { while ( position >= currentPosition ) { try { currentPosition = ignoreSpans . nextStartPosition ( ) ; if ( currentPosition != Spans . NO_MORE_POSITIONS && currentPosition >= minimumPosition ) { if ( ! baseEndPositionList . containsKey ( currentPosition ) ) { baseEndPositionList . ...
Move to .
4,030
public void removeBefore ( int docId , int position ) { if ( ignoreSpans != null && docId == currentDocId ) { baseStartPositionList . entrySet ( ) . removeIf ( entry -> entry . getKey ( ) < position ) ; baseEndPositionList . entrySet ( ) . removeIf ( entry -> entry . getKey ( ) < position ) ; fullEndPositionList . entr...
Removes the before .
4,031
public static vpnvserver_authenticationlocalpolicy_binding [ ] get ( nitro_service service , String name ) throws Exception { vpnvserver_authenticationlocalpolicy_binding obj = new vpnvserver_authenticationlocalpolicy_binding ( ) ; obj . set_name ( name ) ; vpnvserver_authenticationlocalpolicy_binding response [ ] = ( ...
Use this API to fetch vpnvserver_authenticationlocalpolicy_binding resources of given name .
4,032
public static base_response add ( nitro_service client , gslbvserver resource ) throws Exception { gslbvserver addresource = new gslbvserver ( ) ; addresource . name = resource . name ; addresource . servicetype = resource . servicetype ; addresource . iptype = resource . iptype ; addresource . dnsrecordtype = resource...
Use this API to add gslbvserver .
4,033
public static base_responses add ( nitro_service client , gslbvserver resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { gslbvserver addresources [ ] = new gslbvserver [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { addreso...
Use this API to add gslbvserver resources .
4,034
public static base_response update ( nitro_service client , gslbvserver resource ) throws Exception { gslbvserver updateresource = new gslbvserver ( ) ; updateresource . name = resource . name ; updateresource . iptype = resource . iptype ; updateresource . dnsrecordtype = resource . dnsrecordtype ; updateresource . ba...
Use this API to update gslbvserver .
4,035
public static base_responses disable ( nitro_service client , String name [ ] ) throws Exception { base_responses result = null ; if ( name != null && name . length > 0 ) { gslbvserver disableresources [ ] = new gslbvserver [ name . length ] ; for ( int i = 0 ; i < name . length ; i ++ ) { disableresources [ i ] = new ...
Use this API to disable gslbvserver resources of given names .
4,036
public static gslbvserver [ ] get ( nitro_service service ) throws Exception { gslbvserver obj = new gslbvserver ( ) ; gslbvserver [ ] response = ( gslbvserver [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch all the gslbvserver resources that are configured on netscaler .
4,037
public static gslbvserver get ( nitro_service service , String name ) throws Exception { gslbvserver obj = new gslbvserver ( ) ; obj . set_name ( name ) ; gslbvserver response = ( gslbvserver ) obj . get_resource ( service ) ; return response ; }
Use this API to fetch gslbvserver resource of given name .
4,038
public static base_response add ( nitro_service client , transformprofile resource ) throws Exception { transformprofile addresource = new transformprofile ( ) ; addresource . name = resource . name ; addresource . type = resource . type ; return addresource . add_resource ( client ) ; }
Use this API to add transformprofile .
4,039
public static base_response update ( nitro_service client , transformprofile resource ) throws Exception { transformprofile updateresource = new transformprofile ( ) ; updateresource . name = resource . name ; updateresource . type = resource . type ; updateresource . onlytransformabsurlinbody = resource . onlytransfor...
Use this API to update transformprofile .
4,040
public static base_responses update ( nitro_service client , transformprofile resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { transformprofile updateresources [ ] = new transformprofile [ resources . length ] ; for ( int i = 0 ; i < resources . leng...
Use this API to update transformprofile resources .
4,041
public static transformprofile [ ] get ( nitro_service service ) throws Exception { transformprofile obj = new transformprofile ( ) ; transformprofile [ ] response = ( transformprofile [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch all the transformprofile resources that are configured on netscaler .
4,042
public static transformprofile get ( nitro_service service , String name ) throws Exception { transformprofile obj = new transformprofile ( ) ; obj . set_name ( name ) ; transformprofile response = ( transformprofile ) obj . get_resource ( service ) ; return response ; }
Use this API to fetch transformprofile resource of given name .
4,043
public static appfwpolicy_appfwpolicylabel_binding [ ] get ( nitro_service service , String name ) throws Exception { appfwpolicy_appfwpolicylabel_binding obj = new appfwpolicy_appfwpolicylabel_binding ( ) ; obj . set_name ( name ) ; appfwpolicy_appfwpolicylabel_binding response [ ] = ( appfwpolicy_appfwpolicylabel_bin...
Use this API to fetch appfwpolicy_appfwpolicylabel_binding resources of given name .
4,044
public static nsversion get ( nitro_service service ) throws Exception { nsversion obj = new nsversion ( ) ; nsversion [ ] response = ( nsversion [ ] ) obj . get_resources ( service ) ; return response [ 0 ] ; }
Use this API to fetch all the nsversion resources that are configured on netscaler .
4,045
public static sc_stats get ( nitro_service service ) throws Exception { sc_stats obj = new sc_stats ( ) ; sc_stats [ ] response = ( sc_stats [ ] ) obj . stat_resources ( service ) ; return response [ 0 ] ; }
Use this API to fetch the statistics of all sc_stats resources that are configured on netscaler .
4,046
public static base_response create ( nitro_service client , sslwrapkey resource ) throws Exception { sslwrapkey createresource = new sslwrapkey ( ) ; createresource . wrapkeyname = resource . wrapkeyname ; createresource . password = resource . password ; createresource . salt = resource . salt ; return createresource ...
Use this API to create sslwrapkey .
4,047
public static base_responses create ( nitro_service client , sslwrapkey resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { sslwrapkey createresources [ ] = new sslwrapkey [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { crea...
Use this API to create sslwrapkey resources .
4,048
public static base_response delete ( nitro_service client , String wrapkeyname ) throws Exception { sslwrapkey deleteresource = new sslwrapkey ( ) ; deleteresource . wrapkeyname = wrapkeyname ; return deleteresource . delete_resource ( client ) ; }
Use this API to delete sslwrapkey of given name .
4,049
public static base_responses delete ( nitro_service client , String wrapkeyname [ ] ) throws Exception { base_responses result = null ; if ( wrapkeyname != null && wrapkeyname . length > 0 ) { sslwrapkey deleteresources [ ] = new sslwrapkey [ wrapkeyname . length ] ; for ( int i = 0 ; i < wrapkeyname . length ; i ++ ) ...
Use this API to delete sslwrapkey resources of given names .
4,050
public static sslwrapkey [ ] get ( nitro_service service ) throws Exception { sslwrapkey obj = new sslwrapkey ( ) ; sslwrapkey [ ] response = ( sslwrapkey [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch all the sslwrapkey resources that are configured on netscaler .
4,051
public static int min ( int a , int b , int c ) { int mi ; mi = a ; if ( b < mi ) { mi = b ; } if ( c < mi ) { mi = c ; } return mi ; }
Returns the minimum of three int values .
4,052
public static double exactBinomial ( int k , int n , double p ) { double total = 0.0 ; for ( int m = k ; m <= n ; m ++ ) { double nChooseM = 1.0 ; for ( int r = 1 ; r <= m ; r ++ ) { nChooseM *= ( n - r ) + 1 ; nChooseM /= r ; } total += nChooseM * Math . pow ( p , m ) * Math . pow ( 1.0 - p , n - m ) ; } return total ...
Find a one tailed exact binomial test probability . Finds the chance of this or a higher result
4,053
public static double factorial ( int x ) { double result = 1.0 ; for ( int i = x ; i > 1 ; i -- ) { result *= i ; } return result ; }
Uses floating point so that it can represent the really big numbers that come up .
4,054
public static base_response add ( nitro_service client , dnsaction64 resource ) throws Exception { dnsaction64 addresource = new dnsaction64 ( ) ; addresource . actionname = resource . actionname ; addresource . prefix = resource . prefix ; addresource . mappedrule = resource . mappedrule ; addresource . excluderule = ...
Use this API to add dnsaction64 .
4,055
public static base_responses add ( nitro_service client , dnsaction64 resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { dnsaction64 addresources [ ] = new dnsaction64 [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { addreso...
Use this API to add dnsaction64 resources .
4,056
public static base_response delete ( nitro_service client , String actionname ) throws Exception { dnsaction64 deleteresource = new dnsaction64 ( ) ; deleteresource . actionname = actionname ; return deleteresource . delete_resource ( client ) ; }
Use this API to delete dnsaction64 of given name .
4,057
public static base_response update ( nitro_service client , dnsaction64 resource ) throws Exception { dnsaction64 updateresource = new dnsaction64 ( ) ; updateresource . actionname = resource . actionname ; updateresource . prefix = resource . prefix ; updateresource . mappedrule = resource . mappedrule ; updateresourc...
Use this API to update dnsaction64 .
4,058
public static base_responses update ( nitro_service client , dnsaction64 resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { dnsaction64 updateresources [ ] = new dnsaction64 [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { u...
Use this API to update dnsaction64 resources .
4,059
public static base_responses unset ( nitro_service client , dnsaction64 resources [ ] , String [ ] args ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { dnsaction64 unsetresources [ ] = new dnsaction64 [ resources . length ] ; for ( int i = 0 ; i < resources . len...
Use this API to unset the properties of dnsaction64 resources . Properties that need to be unset are specified in args array .
4,060
public static dnsaction64 [ ] get ( nitro_service service ) throws Exception { dnsaction64 obj = new dnsaction64 ( ) ; dnsaction64 [ ] response = ( dnsaction64 [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch all the dnsaction64 resources that are configured on netscaler .
4,061
public static dnsaction64 get ( nitro_service service , String actionname ) throws Exception { dnsaction64 obj = new dnsaction64 ( ) ; obj . set_actionname ( actionname ) ; dnsaction64 response = ( dnsaction64 ) obj . get_resource ( service ) ; return response ; }
Use this API to fetch dnsaction64 resource of given name .
4,062
public static dnsaction64 [ ] get ( nitro_service service , String actionname [ ] ) throws Exception { if ( actionname != null && actionname . length > 0 ) { dnsaction64 response [ ] = new dnsaction64 [ actionname . length ] ; dnsaction64 obj [ ] = new dnsaction64 [ actionname . length ] ; for ( int i = 0 ; i < actionn...
Use this API to fetch dnsaction64 resources of given names .
4,063
public static vpnsessionpolicy_aaagroup_binding [ ] get ( nitro_service service , String name ) throws Exception { vpnsessionpolicy_aaagroup_binding obj = new vpnsessionpolicy_aaagroup_binding ( ) ; obj . set_name ( name ) ; vpnsessionpolicy_aaagroup_binding response [ ] = ( vpnsessionpolicy_aaagroup_binding [ ] ) obj ...
Use this API to fetch vpnsessionpolicy_aaagroup_binding resources of given name .
4,064
public TreeReaderFactory treeReaderFactory ( ) { return new TreeReaderFactory ( ) { public TreeReader newTreeReader ( Reader in ) { return new PennTreeReader ( in , new LabeledScoredTreeFactory ( ) , new NPTmpRetainingTreeNormalizer ( englishTrain . splitTMP , englishTrain . splitSGapped == 5 , englishTrain . leaveItAl...
Makes appropriate TreeReaderFactory with all options specified
4,065
private static String deduceTag ( String w ) { String word = w . toLowerCase ( ) ; if ( word . endsWith ( "ing" ) ) { return "VBG" ; } else if ( word . endsWith ( "d" ) || word . endsWith ( "t" ) ) { return "VBN" ; } else if ( word . endsWith ( "s" ) ) { return "VBZ" ; } else if ( word . equals ( "to" ) ) { return "TO"...
quite heuristic but not useless given tagging errors?
4,066
private boolean collectAndCheckLastSpans ( int nextSpans1StartPosition , int nextSpans1EndPosition ) throws IOException { if ( nextSpans1StartPosition == nextSpans2StartPosition && nextSpans1EndPosition == nextSpans2EndPosition ) { return false ; } if ( nextSpans1StartPosition == lastSpans2StartPosition && ( nextSpans1...
Collect and check last spans .
4,067
public static base_response add ( nitro_service client , vpnnexthopserver resource ) throws Exception { vpnnexthopserver addresource = new vpnnexthopserver ( ) ; addresource . name = resource . name ; addresource . nexthopip = resource . nexthopip ; addresource . nexthopport = resource . nexthopport ; addresource . sec...
Use this API to add vpnnexthopserver .
4,068
public static base_responses add ( nitro_service client , vpnnexthopserver resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { vpnnexthopserver addresources [ ] = new vpnnexthopserver [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i...
Use this API to add vpnnexthopserver resources .
4,069
public static vpnnexthopserver [ ] get ( nitro_service service ) throws Exception { vpnnexthopserver obj = new vpnnexthopserver ( ) ; vpnnexthopserver [ ] response = ( vpnnexthopserver [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch all the vpnnexthopserver resources that are configured on netscaler .
4,070
public static vpnnexthopserver get ( nitro_service service , String name ) throws Exception { vpnnexthopserver obj = new vpnnexthopserver ( ) ; obj . set_name ( name ) ; vpnnexthopserver response = ( vpnnexthopserver ) obj . get_resource ( service ) ; return response ; }
Use this API to fetch vpnnexthopserver resource of given name .
4,071
public static lbvserver_csvserver_binding [ ] get ( nitro_service service , String name ) throws Exception { lbvserver_csvserver_binding obj = new lbvserver_csvserver_binding ( ) ; obj . set_name ( name ) ; lbvserver_csvserver_binding response [ ] = ( lbvserver_csvserver_binding [ ] ) obj . get_resources ( service ) ; ...
Use this API to fetch lbvserver_csvserver_binding resources of given name .
4,072
public static nstrafficdomain_vlan_binding [ ] get ( nitro_service service , Long td ) throws Exception { nstrafficdomain_vlan_binding obj = new nstrafficdomain_vlan_binding ( ) ; obj . set_td ( td ) ; nstrafficdomain_vlan_binding response [ ] = ( nstrafficdomain_vlan_binding [ ] ) obj . get_resources ( service ) ; ret...
Use this API to fetch nstrafficdomain_vlan_binding resources of given name .
4,073
private Entry < E > getEntry ( int index ) { Entry < E > entry = indexToEntry . get ( index ) ; return entry ; }
Get entry by index exception if none .
4,074
public boolean add ( E key , double priority ) { if ( add ( key ) ) { relaxPriority ( key , priority ) ; return true ; } return false ; }
Convenience method for if you want to pretend relaxPriority doesn t exist or if you really want add s return conditions .
4,075
public boolean relaxPriority ( E key , double priority ) { Entry < E > entry = getEntry ( key ) ; if ( entry == null ) { entry = makeEntry ( key ) ; } if ( compare ( priority , entry . priority ) <= 0 ) { return false ; } entry . priority = priority ; heapifyUp ( entry ) ; return true ; }
Promotes a key in the queue adding it if it wasn t there already . If the specified priority is worse than the current priority nothing happens . Faster than add if you don t care about whether the key is new .
4,076
public boolean decreasePriority ( E key , double priority ) { Entry < E > entry = getEntry ( key ) ; if ( entry == null ) { entry = makeEntry ( key ) ; } if ( compare ( priority , entry . priority ) >= 0 ) { return false ; } entry . priority = priority ; heapifyDown ( entry ) ; return true ; }
Demotes a key in the queue adding it if it wasn t there already . If the specified priority is better than the current priority nothing happens . If you decrease the priority on a non - present key it will get added but at it s old implicit priority of Double . NEGATIVE_INFINITY .
4,077
public boolean changePriority ( E key , double priority ) { Entry < E > entry = getEntry ( key ) ; if ( entry == null ) { entry = makeEntry ( key ) ; } if ( compare ( priority , entry . priority ) == 0 ) { return false ; } entry . priority = priority ; heapify ( entry ) ; return true ; }
Changes a priority either up or down adding the key it if it wasn t there already .
4,078
public static base_response add ( nitro_service client , location resource ) throws Exception { location addresource = new location ( ) ; addresource . ipfrom = resource . ipfrom ; addresource . ipto = resource . ipto ; addresource . preferredlocation = resource . preferredlocation ; addresource . longitude = resource ...
Use this API to add location .
4,079
public static base_responses add ( nitro_service client , location resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { location addresources [ ] = new location [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { addresources [ i...
Use this API to add location resources .
4,080
public static base_response delete ( nitro_service client , String ipfrom ) throws Exception { location deleteresource = new location ( ) ; deleteresource . ipfrom = ipfrom ; return deleteresource . delete_resource ( client ) ; }
Use this API to delete location of given name .
4,081
public static base_response delete ( nitro_service client , location resource ) throws Exception { location deleteresource = new location ( ) ; deleteresource . ipfrom = resource . ipfrom ; deleteresource . ipto = resource . ipto ; return deleteresource . delete_resource ( client ) ; }
Use this API to delete location .
4,082
public static base_responses delete ( nitro_service client , String ipfrom [ ] ) throws Exception { base_responses result = null ; if ( ipfrom != null && ipfrom . length > 0 ) { location deleteresources [ ] = new location [ ipfrom . length ] ; for ( int i = 0 ; i < ipfrom . length ; i ++ ) { deleteresources [ i ] = new...
Use this API to delete location resources of given names .
4,083
public static base_responses delete ( nitro_service client , location resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { location deleteresources [ ] = new location [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { deletereso...
Use this API to delete location resources .
4,084
public static location [ ] get ( nitro_service service ) throws Exception { location obj = new location ( ) ; location [ ] response = ( location [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch all the location resources that are configured on netscaler .
4,085
public static location get ( nitro_service service , String ipfrom ) throws Exception { location obj = new location ( ) ; obj . set_ipfrom ( ipfrom ) ; location response = ( location ) obj . get_resource ( service ) ; return response ; }
Use this API to fetch location resource of given name .
4,086
public static location [ ] get ( nitro_service service , String ipfrom [ ] ) throws Exception { if ( ipfrom != null && ipfrom . length > 0 ) { location response [ ] = new location [ ipfrom . length ] ; location obj [ ] = new location [ ipfrom . length ] ; for ( int i = 0 ; i < ipfrom . length ; i ++ ) { obj [ i ] = new...
Use this API to fetch location resources of given names .
4,087
public static location [ ] get_filtered ( nitro_service service , filtervalue [ ] filter ) throws Exception { location obj = new location ( ) ; options option = new options ( ) ; option . set_filter ( filter ) ; location [ ] response = ( location [ ] ) obj . getfiltered ( service , option ) ; return response ; }
Use this API to fetch filtered set of location resources . set the filter parameter values in filtervalue object .
4,088
@ SuppressWarnings ( "unchecked" ) private void mergeNamedList ( ShardRequest sreq , NamedList < Object > mtasResponse , String key , Integer preferredPurpose ) { NamedList < Object > mtasListResponse ; Object o = mtasResponse . get ( key ) ; if ( o instanceof NamedList ) { mtasListResponse = ( NamedList < Object > ) o...
Merge named list .
4,089
@ SuppressWarnings ( "unchecked" ) private void mergeArrayList ( ShardRequest sreq , NamedList < Object > mtasResponse , String key , Integer preferredPurpose , boolean mergeAllShardResponses ) { ArrayList < Object > mtasListResponse ; Object o = mtasResponse . get ( key ) ; if ( o instanceof ArrayList ) { mtasListResp...
Merge array list .
4,090
private void mergeResponsesSortedSet ( SortedSet < Object > originalList , SortedSet < Object > shardList ) { for ( Object item : shardList ) { originalList . add ( item ) ; } }
Merge responses sorted set .
4,091
@ SuppressWarnings ( "unchecked" ) private void mergeResponsesArrayList ( ArrayList < Object > originalList , ArrayList < Object > shardList ) throws IOException { HashMap < String , Object > originalKeyList = new HashMap < > ( ) ; for ( Object item : originalList ) { if ( item instanceof NamedList < ? > ) { NamedList ...
Merge responses array list .
4,092
@ SuppressWarnings ( { "rawtypes" , "unchecked" } ) private void mergeResponsesNamedList ( NamedList < Object > mainResponse , NamedList < Object > shardResponse ) throws IOException { Iterator < Entry < String , Object > > it = shardResponse . iterator ( ) ; while ( it . hasNext ( ) ) { Entry < String , Object > entry...
Merge responses named list .
4,093
@ SuppressWarnings ( { "rawtypes" , "unchecked" } ) private Object adjustablePartsCloned ( Object original ) { if ( original instanceof NamedList ) { NamedList < Object > newObject = new SimpleOrderedMap ( ) ; NamedList < Object > originalObject = ( NamedList < Object > ) original ; for ( int i = 0 ; i < originalObject...
Adjustable parts cloned .
4,094
public static sslcertkey_service_binding [ ] get ( nitro_service service , String certkey ) throws Exception { sslcertkey_service_binding obj = new sslcertkey_service_binding ( ) ; obj . set_certkey ( certkey ) ; sslcertkey_service_binding response [ ] = ( sslcertkey_service_binding [ ] ) obj . get_resources ( service ...
Use this API to fetch sslcertkey_service_binding resources of given name .
4,095
public static csvserver_responderpolicy_binding [ ] get ( nitro_service service , String name ) throws Exception { csvserver_responderpolicy_binding obj = new csvserver_responderpolicy_binding ( ) ; obj . set_name ( name ) ; csvserver_responderpolicy_binding response [ ] = ( csvserver_responderpolicy_binding [ ] ) obj ...
Use this API to fetch csvserver_responderpolicy_binding resources of given name .
4,096
@ SuppressWarnings ( "unchecked" ) public < GR extends GrammaticalRelationAnnotation > boolean addArc ( Class < GR > arcLabel , TreeGraphNode node ) { if ( node == null ) { return false ; } if ( ! treeGraph ( ) . equals ( node . treeGraph ( ) ) ) { System . err . println ( "Warning: you are trying to add an arc from no...
Add a labeled arc from this node to the argument node .
4,097
public Set < Dependency < Label , Label , Object > > dependencies ( Filter < Dependency < Label , Label , Object > > f , HeadFinder hf ) { Set < Dependency < Label , Label , Object > > deps = Generics . newHashSet ( ) ; for ( Tree t : this ) { TreeGraphNode node = safeCast ( t ) ; if ( node == null || node . isLeaf ( )...
Return a set of node - node dependencies represented as Dependency objects for the Tree .
4,098
public static systemglobal_auditsyslogpolicy_binding [ ] get ( nitro_service service ) throws Exception { systemglobal_auditsyslogpolicy_binding obj = new systemglobal_auditsyslogpolicy_binding ( ) ; systemglobal_auditsyslogpolicy_binding response [ ] = ( systemglobal_auditsyslogpolicy_binding [ ] ) obj . get_resources...
Use this API to fetch a systemglobal_auditsyslogpolicy_binding resources .
4,099
public static base_response add ( nitro_service client , streamidentifier resource ) throws Exception { streamidentifier addresource = new streamidentifier ( ) ; addresource . name = resource . name ; addresource . selectorname = resource . selectorname ; addresource . interval = resource . interval ; addresource . sam...
Use this API to add streamidentifier .