idx
int64
0
34.9k
question
stringlengths
12
26.4k
target
stringlengths
15
2.15k
100
public static int hashObject ( Object o ) { return o == null ? 0 : o . hashCode ( ) ; }
Resize the specified cluster.
101
boolean needToCheckExclude ( ) { return false ; }
Adds and binds all shortcuts marked for addition.
102
public synchronized void checkAccess ( LicenseCheckerCallback callback ) { if ( mPolicy . allowAccess ( ) ) { Log . i ( TAG , "Using cached license response" ) ; callback . allow ( Policy . LICENSED ) ; } else { LicenseValidator validator = new LicenseValidator ( mPolicy , new NullDeviceLimiter ( ) , callback , generat...
Releases any resources we may have (or inherit)
103
public Area ( final StendhalRPZone zone , int x , int y , int width , int height ) { this . zone = zone ; final Rectangle2D myshape = new Rectangle2D . Double ( ) ; myshape . setRect ( x , y , width , height ) ; this . shape = myshape ; }
Generates a PublicKey instance from a string containing the Base64-encoded public key.
104
private byte nextTC ( ) throws IOException { if ( hasPushbackTC ) { hasPushbackTC = false ; } else { pushbackTC = input . readByte ( ) ; } return pushbackTC ; }
Returns a "name (i)" if name is already in use. This new name should then be used as operator name.
105
private void newline ( ) { print ( "\n" ) ; }
Draw a guideline on canvas
106
public int size ( ) { return seq . size ( ) ; }
This method will update the gathering status
107
public static String digestString ( String pass , String algorithm ) throws NoSuchAlgorithmException { MessageDigest md ; ByteArrayOutputStream bos ; try { md = MessageDigest . getInstance ( algorithm ) ; byte [ ] digest = md . digest ( pass . getBytes ( "iso-8859-1" ) ) ; bos = new ByteArrayOutputStream ( ) ; OutputSt...
Drop the Monitor, its not longer needed
108
void storeBlock ( long lobId , int seq , long pos , byte [ ] b , String compressAlgorithm ) throws SQLException { long block ; boolean blockExists = false ; if ( compressAlgorithm != null ) { b = compress . compress ( b , compressAlgorithm ) ; } int hash = Arrays . hashCode ( b ) ; assertHoldsLock ( conn . getSession (...
This method identifies the root or enclosing server span that contains the supplied client span.
109
public static boolean isDirectory ( String path ) { File f = new File ( path ) ; return f . isDirectory ( ) ; }
Appends a new line.
110
private void putWithValidation ( String key , Object value ) throws BitcoinURIParseException { if ( parameterMap . containsKey ( key ) ) { throw new BitcoinURIParseException ( String . format ( Locale . US , "'%s' is duplicated, URI is invalid" , key ) ) ; } else { parameterMap . put ( key , value ) ; } }
Joins 2 arrays together, if any array is null or empty then other array will be retuned without coping anything.
111
static void transformKillSlot ( final RPObject object ) { final RPObject kills = KeyedSlotUtil . getKeyedSlotObject ( object , "!kills" ) ; if ( kills != null ) { final RPObject newKills = new RPObject ( ) ; for ( final String attr : kills ) { if ( ! attr . equals ( "id" ) ) { String newAttr = attr ; String value = kil...
A shard exists/existed in a node only if shard state file exists in the node
112
public static CharSequence trimTrailingWhitespace ( CharSequence source ) { if ( source == null ) return "" ; int i = source . length ( ) ; while ( -- i >= 0 && Character . isWhitespace ( source . charAt ( i ) ) ) { } return source . subSequence ( 0 , i + 1 ) ; }
Shortcut for quickly creating a new dialog
113
private static void WriteStringVectorToFile ( Vector inputVec , String fileName ) throws StringVectorToFileException { try { BufferedWriter fileW = new BufferedWriter ( new FileWriter ( fileName ) ) ; int lineNum = 0 ; while ( lineNum < inputVec . size ( ) ) { fileW . write ( ( String ) inputVec . elementAt ( lineNum )...
Write a message with trace level INFO to the trace system.
114
public boolean before ( String userDefinedValue ) throws IllegalArgumentException { try { return value . before ( getDate ( userDefinedValue ) ) ; } catch ( DataTypeValidationException e ) { throw new IllegalArgumentException ( e . getMessage ( ) ) ; } }
Returns true if at least one of the variables given as argument is an ancestor of this node, and false otherwise
115
public void close ( ) { if ( null != inputStreamReader ) { CarbonUtil . closeStreams ( inputStreamReader ) ; } }
Determines whether the specified date1 is the same day with the specified date2.
116
public static double exponent ( Object left , Object right ) throws PageException { return StrictMath . pow ( Caster . toDoubleValue ( left ) , Caster . toDoubleValue ( right ) ) ; }
Tests two nominal mappings for its size and values.
117
public synchronized void addActionListener ( ActionListener actionListener ) { if ( actionListeners == null ) actionListeners = new ArrayList < ActionListener > ( ) ; actionListeners . add ( actionListener ) ; if ( fired ) { actionListener . actionPerformed ( new ActionEvent ( this , ActionEvent . ACTION_PERFORMED , ""...
Returns true if the device is compatible to run the agent.
118
public String writeDataFile ( ) throws DataFileException { ByteArrayOutputStream bos = new ByteArrayOutputStream ( ) ; writeDataFile ( bos ) ; String outString = bos . toString ( ) ; try { if ( bos != null ) bos . close ( ) ; } catch ( IOException e ) { Debug . logWarning ( e , module ) ; } return outString ; }
Creates a new builder that adds the newly created property matchers to the given issue matcher and that uses the given function to obtain the actual values from an issue.
119
public static Color determineBackgroundColor ( final INaviInstruction startInstruction , final String trackedRegister , final CInstructionResult result ) { Preconditions . checkNotNull ( startInstruction , "IE01671: Start instruction argument can not be null" ) ; Preconditions . checkNotNull ( trackedRegister , "IE0167...
Whether this core is closed.
120
public void removeOnCentralPositionChangedListener ( OnCentralPositionChangedListener listener ) { mOnCentralPositionChangedListeners . remove ( listener ) ; }
Returns true when there are shippable items in the cart
121
public void addPickupRS ( ) { int old = _pickupRS ; _pickupRS ++ ; setDirtyAndFirePropertyChange ( "locationAddPickupRS" , Integer . toString ( old ) , Integer . toString ( _pickupRS ) ) ; }
Creates a range list containing numbers in given range.
122
public void addHeaderView ( View v ) { addHeaderView ( v , null , true ) ; }
Tests comparison of different attributes.
123
public double convert ( ) { return Double . longBitsToDouble ( ints2long ( high , low ) ) ; }
This method was generated by MyBatis Generator. This method corresponds to the database table collection
124
public void warn ( XPathContext xctxt , String msg , Object args [ ] ) throws javax . xml . transform . TransformerException { String formattedMsg = XSLMessages . createWarning ( msg , args ) ; ErrorListener errHandler = xctxt . getErrorListener ( ) ; errHandler . warning ( new TransformerException ( formattedMsg , ( S...
Returns whether another revision is available or not.
125
public void clearArchiveDirectory ( ) { File directory = new File ( getArchiveDirectory ( ) ) ; if ( directory . exists ( ) && directory . isDirectory ( ) ) { String [ ] listing = directory . list ( ) ; for ( String aListing : listing ) { File file = new File ( getArchiveDirectory ( ) , aListing ) ; file . delete ( ) ;...
check, if a value matches a wildcard expression.
126
public void testDivideRemainderIsZero ( ) { String a = "8311389578904553209874735431110" ; int aScale = - 15 ; String b = "237468273682987234567849583746" ; int bScale = 20 ; String c = "3.5000000000000000000000000000000E+36" ; int resScale = - 5 ; BigDecimal aNumber = new BigDecimal ( new BigInteger ( a ) , aScale ) ;...
Adds a line of context to this instance.
127
public static boolean nonemptyQueryResult ( ResultSet R ) { logger . trace ( "nonemptyQueryResult(R)" ) ; boolean nonEmpty = false ; if ( R == null ) { return false ; } try { if ( R . getRow ( ) != 0 ) { nonEmpty = true ; } else { logger . trace ( "nonemptyQueryResult(R) - check R.first()..." ) ; nonEmpty = R . first (...
Returns true iff the test reaches a decision (if/while) with an uncovered branch
128
private String createFullMessageText ( String senderName , String receiverName , String text ) { if ( senderName . equals ( receiverName ) ) { return "You mutter to yourself: " + text ; } else { return senderName + " tells you: " + text ; } }
Serialize a Java object into a YAML String.
129
public void validate ( ) throws IgniteCheckedException { for ( CachePluginProvider provider : providersList ) provider . validate ( ) ; }
Re-measure the Loading Views height, and adjust internal padding as necessary
130
public void testCompareLessScale1 ( ) { String a = "12380964839238475457356735674573563567890295784902768787678287" ; int aScale = 18 ; String b = "4573563567890295784902768787678287" ; int bScale = 28 ; BigDecimal aNumber = new BigDecimal ( new BigInteger ( a ) , aScale ) ; BigDecimal bNumber = new BigDecimal ( new Bi...
Creates new instance of document handler.
131
protected boolean oneSameNetwork ( MacAddress m1 , MacAddress m2 ) { String net1 = macToGuid . get ( m1 ) ; String net2 = macToGuid . get ( m2 ) ; if ( net1 == null ) return false ; if ( net2 == null ) return false ; return net1 . equals ( net2 ) ; }
Adds Sample to the sample list and initializes and sets the adapter
132
public static Object [ ] polar2CartesianArray ( Double r , Double alpha ) { double x = r . doubleValue ( ) * Math . cos ( alpha . doubleValue ( ) ) ; double y = r . doubleValue ( ) * Math . sin ( alpha . doubleValue ( ) ) ; return new Object [ ] { new Double ( x ) , new Double ( y ) } ; }
Removes all ACL entries from this ACL.
133
protected void singleEnsemble ( final double [ ] ensemble , final NumberVector vec ) { double [ ] buf = new double [ 1 ] ; for ( int i = 0 ; i < ensemble . length ; i ++ ) { buf [ 0 ] = vec . doubleValue ( i ) ; ensemble [ i ] = voting . combine ( buf , 1 ) ; if ( Double . isNaN ( ensemble [ i ] ) ) { LOG . warning ( "...
Searches this vector for the specified object.
134
@ Override public boolean is_IntBox ( ) { for ( int index = 0 ; index < lines_size ( ) ; ++ index ) { PlaLineInt curr_line = tline_get ( index ) ; if ( ! curr_line . is_orthogonal ( ) ) return false ; if ( ! corner_is_bounded ( index ) ) return false ; } return true ; }
Converts the specified integer to its string representation.
135
public void addItemAtIndex ( T item , int index ) { if ( index <= items . size ( ) ) { items . add ( index , item ) ; fireDataChangedEvent ( DataChangedListener . ADDED , index ) ; } }
This method stop adb server
136
private boolean crossCheckDiagonal ( int startI , int centerJ , int maxCount , int originalStateCountTotal ) { int [ ] stateCount = getCrossCheckStateCount ( ) ; int i = 0 ; while ( startI >= i && centerJ >= i && image . get ( centerJ - i , startI - i ) ) { stateCount [ 2 ] ++ ; i ++ ; } if ( startI < i || centerJ < i ...
Deserialize a self-contained XStream with object from an XML Reader.
137
public static MatchedValuesRequestControl newControl ( final boolean isCritical , final String ... filters ) { Reject . ifFalse ( filters . length > 0 , "filters is empty" ) ; final List < Filter > parsedFilters = new ArrayList < > ( filters . length ) ; for ( final String filter : filters ) { parsedFilters . add ( val...
merge any duplicate method calls
138
private void updateIPEndPointDetails ( Map < String , Object > keyMap , StoragePort port , CIMInstance ipPointInstance , String portInstanceID ) throws IOException { if ( null != port ) { updateIPAddress ( getCIMPropertyValue ( ipPointInstance , IPv4Address ) , port ) ; _dbClient . persistObject ( port ) ; } }
Returns true for a public class.
139
public void replace ( String param , String value ) { int [ ] range ; while ( ( range = findTemplate ( param ) ) != null ) buff . replace ( range [ 0 ] , range [ 1 ] , value ) ; }
This is the method that should be implemented by specific FilteredMatchDAOImpl's to persist filtered matches.
140
public void calcMajorTick ( ) { fraction = UNIT ; double u = majorTick ; double r = maxTick - minTick ; majorTickCount = ( int ) ( r / u ) ; while ( majorTickCount < prefMajorTickCount ) { u = majorTick / 2 ; if ( ! isDiscrete || u == Math . floor ( u ) ) { majorTickCount = ( int ) ( r / u ) ; fraction = HALFS ; if ( m...
Deletes an existing entry (and associated media content, if any) using the specified edit URI.
141
private void updateProgress ( String progressLabel , int progress ) { if ( myHost != null && ( ( progress != previousProgress ) || ( ! progressLabel . equals ( previousProgressLabel ) ) ) ) { myHost . updateProgress ( progressLabel , progress ) ; } previousProgress = progress ; previousProgressLabel = progressLabel ; }
Method that gets called to process the documents' cas objects
142
private static void decodeBase256Segment ( BitSource bits , StringBuilder result , Collection < byte [ ] > byteSegments ) throws FormatException { int codewordPosition = 1 + bits . getByteOffset ( ) ; int d1 = unrandomize255State ( bits . readBits ( 8 ) , codewordPosition ++ ) ; int count ; if ( d1 == 0 ) { count = bit...
Whether or not state from the source JSR instruction has been merged
143
public static < V > int addDistinctList ( List < V > sourceList , List < V > entryList ) { if ( sourceList == null || isEmpty ( entryList ) ) { return 0 ; } int sourceCount = sourceList . size ( ) ; for ( V entry : entryList ) { if ( ! sourceList . contains ( entry ) ) { sourceList . add ( entry ) ; } } return sourceLi...
Adds the name to the queue to be requested, unless it already has capitalization or the request failed before. If already in the queue, it increases the activity for that name.
144
private JsonWriter open ( JsonScope empty , String openBracket ) throws IOException { beforeValue ( true ) ; stack . add ( empty ) ; out . write ( openBracket ) ; return this ; }
Manually add a tuple to emit.
145
public static boolean isCompositionPlaylist ( ResourceByteRangeProvider resourceByteRangeProvider ) throws IOException { try ( InputStream inputStream = resourceByteRangeProvider . getByteRangeAsStream ( 0 , resourceByteRangeProvider . getResourceSize ( ) - 1 ) ) { DocumentBuilderFactory documentBuilderFactory = Docume...
Compares two character sequences for equality.
146
public XMLParser ( final String namespace , final String schema ) throws XMLException { try { JAXBContext jc = JAXBContext . newInstance ( namespace ) ; marshaller = jc . createMarshaller ( ) ; marshaller . setSchema ( XMLSchemaUtils . createSchema ( schema ) ) ; unmarshaller = jc . createUnmarshaller ( ) ; unmarshalle...
Assert that the given object is not an instanceof expectedClassType.
147
public void warn ( String msg , Object args [ ] ) throws org . xml . sax . SAXException { String formattedMsg = XSLMessages . createWarning ( msg , args ) ; SAXSourceLocator locator = getLocator ( ) ; ErrorListener handler = m_stylesheetProcessor . getErrorListener ( ) ; try { if ( null != handler ) handler . warning (...
Clears both interceptor lists maintained by this processor.
148
public Shape triangle_up ( float x , float y , float height ) { m_path . reset ( ) ; m_path . moveTo ( x , y + height ) ; m_path . lineTo ( x + height / 2 , y ) ; m_path . lineTo ( x + height , ( y + height ) ) ; m_path . closePath ( ) ; return m_path ; }
Adds any types exposed to this set. Even if the root type is to be pruned, the actual type arguments are processed.
149
public double minDataDLIfExists ( int index , double expFPRate , boolean checkErr ) { double [ ] rulesetStat = new double [ 6 ] ; for ( int j = 0 ; j < m_SimpleStats . size ( ) ; j ++ ) { rulesetStat [ 0 ] += m_SimpleStats . get ( j ) [ 0 ] ; rulesetStat [ 2 ] += m_SimpleStats . get ( j ) [ 2 ] ; rulesetStat [ 4 ] += m...
Create the smallest AbstractLiteralIV that will fit the provided value. Public and static so it can be easily used as a building block for other InlineURIHandlders.
150
public static void writeIntegerCollection ( @ Nonnull NBTTagCompound data , @ Nonnull Collection < Integer > coll ) { data . setInteger ( "size" , coll . size ( ) ) ; final int [ ] ary = new int [ coll . size ( ) ] ; int i = 0 ; for ( Integer num : coll ) { ary [ i ] = num ; i ++ ; } data . setTag ( "data" , new NBTTag...
Open/creates file, returning AsynchronousFileChannel to access the file
151
@ SuppressWarnings ( "unchecked" ) public void queryForDump ( String cfName , String fileName , String [ ] ids ) throws Exception { final Class clazz = getClassFromCFName ( cfName ) ; if ( clazz == null ) { return ; } initDumpXmlFile ( cfName ) ; for ( String id : ids ) { queryAndPrintRecord ( URI . create ( id ) , cla...
Create a new AbstractRegionPainter
152
private AsciiFuncs ( ) { }
Registers an ore generator to the world generator registry.
153
public DialogueImporter importDialogue ( String dialogueFile ) { List < DialogueState > turns = XMLDialogueReader . extractDialogue ( dialogueFile ) ; DialogueImporter importer = new DialogueImporter ( this , turns ) ; importer . start ( ) ; return importer ; }
Stores the stack for the given exception
154
public static int darker ( int color , float factor ) { int a = Color . alpha ( color ) ; int r = Color . red ( color ) ; int g = Color . green ( color ) ; int b = Color . blue ( color ) ; return Color . argb ( a , Math . max ( ( int ) ( r * factor ) , 0 ) , Math . max ( ( int ) ( g * factor ) , 0 ) , Math . max ( ( in...
Called when there is new data to deliver to the client. The super class will take care of delivering it; the implementation here just adds a little more logic.
155
public static String transformFilename ( String fileName ) { if ( ! fileName . endsWith ( ".fb" ) ) { fileName = fileName + ".fb" ; } return fileName ; }
Find column index by database name.
156
public String readLine ( ) throws IOException { return keepCarriageReturns ? readUntilNewline ( ) : reader . readLine ( ) ; }
Adds fill components to empty cells in the first row and first column of the grid. This ensures that the grid spacing will be the same as shown in the designer.
157
public void hideValidationMessages ( ) { for ( ValidationErrorMessage invalidField : validationMessages ) { View view = parentView . findViewWithTag ( invalidField . getPaymentProductFieldId ( ) ) ; validationMessageRenderer . removeValidationMessage ( ( ViewGroup ) view . getParent ( ) , invalidField . getPaymentProdu...
Reduces the current indent level by two spaces, or crashes if the indent level is zero.
158
private synchronized void removeLoader ( ClassLoader loader ) { int i ; for ( i = _loaders . size ( ) - 1 ; i >= 0 ; i -- ) { WeakReference < ClassLoader > ref = _loaders . get ( i ) ; ClassLoader refLoader = ref . get ( ) ; if ( refLoader == null ) _loaders . remove ( i ) ; else if ( refLoader == loader ) _loaders . r...
Generates integers within the interval as Strings. It shrinks towards the smallest absolute value as a String. The Source is weighted so that it is likely to generate endInclusive and startInclusive at least once.
159
public static double parseString ( String value ) { return Double . parseDouble ( value ) ; }
Processes mouse motion events, such as MouseEvent.MOUSE_DRAGGED.
160
private void writePostContent ( HttpURLConnection connection , String postContent ) throws Exception { connection . setRequestMethod ( "POST" ) ; connection . addRequestProperty ( "Content-Type" , "application/xml; charset=utf-8" ) ; connection . setDoOutput ( true ) ; connection . setDoInput ( true ) ; connection . se...
javaNew returns a new instance of a given clazz
161
public void add ( WFNode node ) { m_nodes . add ( node ) ; }
Creates a small control window with 4 arrow buttons. When clicked, each button will create a new dialogue act corresponding to the instruction to perform, and add it to the dialogue state.
162
@ Override public int clampViewPositionVertical ( View child , int top , int dy ) { int topBound = 0 ; int bottomBound = 0 ; switch ( draggerView . getDragPosition ( ) ) { case TOP : if ( top > 0 ) { topBound = draggerView . getPaddingTop ( ) ; bottomBound = ( int ) draggerListener . dragVerticalDragRange ( ) ; } break...
Instantiates a new time stamp.
163
public String forceGetValueAsString ( ) { if ( mValue == null ) { return "" ; } else if ( mValue instanceof byte [ ] ) { if ( mDataType == TYPE_ASCII ) { return new String ( ( byte [ ] ) mValue , US_ASCII ) ; } else { return Arrays . toString ( ( byte [ ] ) mValue ) ; } } else if ( mValue instanceof long [ ] ) { if ( (...
Create New Order Cost Detail for Movements. Called from Doc_Movement
164
@ GET @ Produces ( { MediaType . APPLICATION_XML , MediaType . APPLICATION_JSON } ) @ Path ( "/{id}/hosts" ) @ Deprecated public HostList listHosts ( @ PathParam ( "id" ) URI id ) throws DatabaseException { getTenantById ( id , false ) ; verifyAuthorizedInTenantOrg ( id , getUserFromContext ( ) ) ; HostList list = new ...
Returns the export rest endpoint proxy property.
165
private void processDirectorStats ( Map < String , MetricHeaderInfo > metricHeaderInfoMap , Map < String , Double > maxValues , Map < String , String > lastSample ) { MetricHeaderInfo headerInfo = metricHeaderInfoMap . get ( HEADER_KEY_DIRECTOR_BUSY ) ; if ( headerInfo != null ) { String directorBusyString = lastSample...
Determine if the current Operating System is Windows
166
public Point2D transform ( Point2D p ) { if ( p == null ) return null ; return transform . transform ( p , null ) ; }
Subclasses should override this returning true if the instance represents a literal character. The default implementation returns false.
167
static public void assertEquals ( String message , String expected , String actual ) { if ( expected == null && actual == null ) return ; if ( expected != null && expected . equals ( actual ) ) return ; throw new ComparisonFailure ( message , expected , actual ) ; }
Check if uri represents local resource
168
private void correctChanged ( ) { clock . setCorrectHardware ( correctCheckBox . isSelected ( ) , true ) ; changed = true ; }
Skips specified number of bytes of uncompressed data.
169
private void writeOFMessagesToSwitch ( DatapathId dpid , List < OFMessage > messages ) { IOFSwitch ofswitch = switchService . getSwitch ( dpid ) ; if ( ofswitch != null ) { if ( log . isDebugEnabled ( ) ) { log . debug ( "Sending {} new entries to {}" , messages . size ( ) , dpid ) ; } ofswitch . write ( messages ) ; }...
Gets the name of the references, null safe
170
private Set < HiCSSubspace > calculateSubspaces ( Relation < ? extends NumberVector > relation , ArrayList < ArrayDBIDs > subspaceIndex , Random random ) { final int dbdim = RelationUtil . dimensionality ( relation ) ; FiniteProgress dprog = LOG . isVerbose ( ) ? new FiniteProgress ( "Subspace dimensionality" , dbdim ,...
Merge the given array into the given Collection.
171
public void testFailoverAutoReconnect ( ) throws Exception { Set < String > downedHosts = new HashSet < String > ( ) ; downedHosts . add ( HOST_1 ) ; downedHosts . add ( HOST_2 ) ; Properties props = new Properties ( ) ; props . setProperty ( "retriesAllDown" , "2" ) ; props . setProperty ( "maxReconnects" , "2" ) ; pr...
Generates a filename prepended with the stable storage directory path.
172
public void addContainerRequest ( Map < StreamingContainerAgent . ContainerStartRequest , MutablePair < Integer , ContainerRequest > > requestedResources , int loopCounter , List < ContainerRequest > containerRequests , StreamingContainerAgent . ContainerStartRequest csr , ContainerRequest cr ) { MutablePair < Integer ...
Draw the background for the projection.
173
public void waitForChannelState ( DistributedMember member , Map channelState ) throws InterruptedException { if ( Thread . interrupted ( ) ) throw new InterruptedException ( ) ; TCPConduit tc = this . conduit ; if ( tc != null ) { tc . waitForThreadOwnedOrderedConnectionState ( member , channelState ) ; } }
Test examines the behavior of the cursor when delete markers are enabled and the cursor is willing to visited deleted tuples. Since delete markers are enabled remove() will actually be an update that sets the delete marker on the tuple and clears the value associated with that tuple. Since deleted tuples are being vis...
174
private boolean isSameCircleOfTrust ( BaseConfigType config , String realm , String entityID ) { boolean isTrusted = false ; if ( config != null ) { Map attr = IDFFMetaUtils . getAttributes ( config ) ; List cotList = ( List ) attr . get ( IDFFCOTUtils . COT_LIST ) ; if ( ( cotList != null ) && ! cotList . isEmpty ( ) ...
Adds a virtual method.
175
public RuleGrounding ( ) { groundings = new HashSet < Assignment > ( ) ; groundings . add ( new Assignment ( ) ) ; }
Stop the plotting thread
176
public void removeIndexKeyspace ( final String index ) throws IOException { try { QueryProcessor . process ( String . format ( "DROP KEYSPACE \"%s\";" , index ) , ConsistencyLevel . LOCAL_ONE ) ; } catch ( Throwable e ) { throw new IOException ( e . getMessage ( ) , e ) ; } }
Updates listeners with data source.
177
public void writeVecor ( File ftrain , File ftest , File all , File trainLabel ) throws Exception { int labels [ ] = readLabels ( ) ; FileWriter fw = new FileWriter ( ftrain ) ; FileWriter fwt = new FileWriter ( ftest ) ; FileWriter flabel = new FileWriter ( trainLabel ) ; for ( int i = 0 ; i < dataNum ; i ++ ) { if ( ...
Adds +working to the query
178
private static Mode decodeAsciiSegment ( BitSource bits , StringBuilder result , StringBuilder resultTrailer ) throws FormatException { boolean upperShift = false ; do { int oneByte = bits . readBits ( 8 ) ; if ( oneByte == 0 ) { throw FormatException . getFormatInstance ( ) ; } else if ( oneByte <= 128 ) { if ( upperS...
Replace the value on the top of the stack with the given value.
179
public static String unhtmlAngleBrackets ( String str ) { str = str . replaceAll ( "&lt;" , "<" ) ; str = str . replaceAll ( "&gt;" , ">" ) ; return str ; }
creates an Attribute from the given XML node
180
public long next ( long fromTime ) { if ( getCurrentCount ( ) == 0 || fromTime == 0 || fromTime == startDate . getTime ( ) ) { return first ( ) ; } if ( Debug . verboseOn ( ) ) { Debug . logVerbose ( "Date List Size: " + ( rDateList == null ? 0 : rDateList . size ( ) ) , module ) ; Debug . logVerbose ( "Rule List Size:...
Trims zeros at the end of an array.
181
public static boolean isFileExist ( String filePath , FileType fileType , boolean performFileCheck ) throws IOException { filePath = filePath . replace ( "\\" , "/" ) ; switch ( fileType ) { case HDFS : case VIEWFS : Path path = new Path ( filePath ) ; FileSystem fs = path . getFileSystem ( configuration ) ; if ( perfo...
Starts all of the Animation instances in this ChromeAnimation. This sets up the appropriate state so that calls to update() can properly track how much time has passed and set the initial values for each Animation.
182
public ResultT extractLatestAttempted ( ) { ArrayList < UpdateT > updates = new ArrayList < > ( inflightAttempted . size ( ) + 1 ) ; synchronized ( attemptedLock ) { updates . add ( finishedAttempted ) ; updates . addAll ( inflightAttempted . values ( ) ) ; } return aggregation . extract ( aggregation . combine ( updat...
Validate the board state. An IllegalArgumentException is thrown if the board is an invalid representation of the puzzle.
183
public Set < JsonUser > loadKnownUsers ( ) throws InterruptedException , ExecutionException , RemoteException , OperationApplicationException { Set < JsonUser > users = getUsersFromDb ( ) ; if ( users . isEmpty ( ) ) { LOG . i ( "Database contains no user; fetching from server" ) ; users = syncKnownUsers ( ) ; } LOG . ...
make sure co-ords valid and throw exception if not
184
public void start ( ) { eventLogThread . start ( ) ; LOGGER . info ( "Started " + eventLogThread . getName ( ) + " with ID " + eventLogThread . getId ( ) + "." ) ; }
Converts a message digest to a String in hexadecimal format.
185
private static String htmlencode ( String str ) { if ( str == null ) { return "" ; } else { StringBuilder buf = new StringBuilder ( ) ; for ( char ch : str . toCharArray ( ) ) { switch ( ch ) { case '<' : buf . append ( "&lt;" ) ; break ; case '>' : buf . append ( "&gt;" ) ; break ; case '&' : buf . append ( "&amp;" ) ...
This method process the Manual Calibration message
186
public void testCase3 ( ) { byte aBytes [ ] = { 3 , 4 , 5 , 6 , 7 , 8 , 9 } ; byte bBytes [ ] = { 1 , 2 , 3 , 4 , 5 , 6 , 7 } ; byte rBytes [ ] = { 2 , 2 , 2 , 2 , 2 , 2 , 2 } ; int aSign = 1 ; int bSign = - 1 ; BigInteger aNumber = new BigInteger ( aSign , aBytes ) ; BigInteger bNumber = new BigInteger ( bSign , bByte...
Creates a new generator with a default number formatter.
187
public static void begin ( ServletRequest request , ServletResponse response , String serviceName , String objectId ) throws ServletException { ServiceContext context = ( ServiceContext ) _localContext . get ( ) ; if ( context == null ) { context = new ServiceContext ( ) ; _localContext . set ( context ) ; } context . ...
Extends the existing groundings with the alternative groundings
188
public final BufferedImage loadStoredImage ( String current_image ) { if ( current_image == null ) { return null ; } current_image = removeIllegalFileNameCharacters ( current_image ) ; final String flag = image_type . get ( current_image ) ; BufferedImage image = null ; if ( flag == null ) { return null ; } else if ( f...
Creates a new map identical to the specified map.
189
public boolean canUseCachedProjectData ( ) { if ( ! myGradlePluginVersion . equals ( GRADLE_PLUGIN_RECOMMENDED_VERSION ) ) { return false ; } for ( Map . Entry < String , byte [ ] > entry : myFileChecksums . entrySet ( ) ) { File file = new File ( entry . getKey ( ) ) ; if ( ! file . isAbsolute ( ) ) { file = new File ...
Add a new Decoration run with the given Decoration at the given index.
190
protected void waitForImage ( Image image ) { int id = ++ nextTrackerID ; tracker . addImage ( image , id ) ; try { tracker . waitForID ( id , 0 ) ; } catch ( InterruptedException e ) { e . printStackTrace ( ) ; } tracker . removeImage ( image , id ) ; }
Determines whether the components host, port, and user info are valid as a server authority.
191
public static String stripFileProtocol ( String uriString ) { if ( uriString . startsWith ( "file://" ) ) { uriString = uriString . substring ( 7 ) ; } return uriString ; }
Call EMM system app in COPE mode.
192
@ Override public Object [ ] toArray ( ) { return newArray ( new Object [ size ( ) ] ) ; }
Removes the element at the specified position in this list. Shifts any subsequent elements to the left (subtracts one from their indices). Returns the element that was removed from the list.
193
private static boolean isNonLeft ( int i0 , int i1 , int i2 , int i3 , double [ ] pts ) { double l1 , l2 , l4 , l5 , l6 , angle1 , angle2 , angle ; l1 = Math . sqrt ( Math . pow ( pts [ i2 + 1 ] - pts [ i1 + 1 ] , 2 ) + Math . pow ( pts [ i2 ] - pts [ i1 ] , 2 ) ) ; l2 = Math . sqrt ( Math . pow ( pts [ i3 + 1 ] - pts ...
Run the request, starting the connection if necessary.
194
@ RequestMapping ( value = "/SAML2/SLO/{tenant:.*}" ) public void sloError ( Locale locale , @ PathVariable ( value = "tenant" ) String tenant , HttpServletResponse response ) throws IOException { logger . info ( "SLO binding error! The client locale is " + locale . toString ( ) + ", tenant is " + tenant ) ; sloDefault...
Returns an enumeration describing the available options.
195
public static double cdf ( double x , double lambda ) { return 1.0 - Math . exp ( - lambda * x ) ; }
Removes the given TimeSection from the list of areas. Areas in the Medusa library usually are more eye-catching than Sections.
196
public void testAddMathContextDiffScalePosNeg ( ) { String a = "1231212478987482988429808779810457634781384756794987" ; int aScale = 15 ; String b = "747233429293018787918347987234564568" ; int bScale = - 10 ; String c = "7.47233429416141E+45" ; int cScale = - 31 ; BigDecimal aNumber = new BigDecimal ( new BigInteger (...
Updates the connection information
197
private boolean isDerivedByRestriction ( String ancestorNS , String ancestorName , XSTypeDefinition type ) { XSTypeDefinition oldType = null ; while ( type != null && type != oldType ) { if ( ( ancestorName . equals ( type . getName ( ) ) ) && ( ( ancestorNS != null && ancestorNS . equals ( type . getNamespace ( ) ) ) ...
Checks whether the mouse event is a middle/wheel-click event. Ctrl/Alt/Shift are allowed.
198
protected Document createConfigurationDocument ( AVList params ) { Document doc = super . createConfigurationDocument ( params ) ; if ( doc == null || doc . getDocumentElement ( ) == null ) return doc ; DataConfigurationUtils . createWMSLayerConfigElements ( params , doc . getDocumentElement ( ) ) ; return doc ; }
deletes POJO from DB
199
public static void onOperatorError ( BiFunction < ? super Throwable , Object , ? extends Throwable > f ) { log . info ( "Hooking new default : onOperatorError" ) ; onOperatorErrorHook = Objects . requireNonNull ( f , "onOperatorErrorHook" ) ; }
Start by removing all vowels, then pull 1 letter at a time off the end of each _ separated segment, go until it is less than or equal to the desired length