Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 566 for Closest (0.16 sec)

  1. android/guava/src/com/google/common/collect/TopKSelector.java

    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * An accumulator that selects the "top" {@code k} elements added to it, relative to a provided
     * comparator. "Top" can mean the greatest or the lowest elements, specified in the factory used to
     * create the {@code TopKSelector} instance.
     *
     * <p>If your input data is available as an {@link Iterable} or {@link Iterator}, prefer {@link
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  2. platforms/software/resources/src/test/groovy/org/gradle/internal/resource/transfer/AccessorBackedExternalResourceTest.groovy

            result.bytesRead == 2
            1 * action.execute(_, metaData) >> { InputStream input, ExternalResourceMetaData m -> input.read(); input.read(); "result 2" }
            0 * _
        }
    
        def "closes response when Action fails"() {
            def name = new ExternalResourceName("resource")
            def action = Mock(Action)
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  3. src/cmd/internal/pgo/pgo.go

    // edge weight.
    type NamedEdgeMap struct {
    	Weight map[NamedCallEdge]int64
    
    	// ByWeight lists all keys in Weight, sorted by edge weight from
    	// highest to lowest.
    	ByWeight []NamedCallEdge
    }
    
    func emptyProfile() *Profile {
    	// Initialize empty maps/slices for easier use without a requiring a
    	// nil check.
    	return &Profile{
    		NamedEdgeMap: NamedEdgeMap{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 20:20:01 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  4. src/internal/poll/fd_mutex.go

    // It returns an error when fd cannot be used.
    func (fd *FD) incref() error {
    	if !fd.fdmu.incref() {
    		return errClosing(fd.isFile)
    	}
    	return nil
    }
    
    // decref removes a reference from fd.
    // It also closes fd when the state of fd is set to closed and there
    // is no remaining reference.
    func (fd *FD) decref() error {
    	if fd.fdmu.decref() {
    		return fd.destroy()
    	}
    	return nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 20 16:55:30 UTC 2018
    - 6.4K bytes
    - Viewed (0)
  5. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/AbstractCrossProcessCacheAccess.java

        /**
         * Opens this cache access instance when the cache is opened. State lock is held while this method is called.
         */
        public abstract void open();
    
        /**
         * Closes this cache access instance when the cache is opened. State lock is held while this method is called.
         */
        @Override
        public abstract void close();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:08:47 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  6. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/CacheCreationCoordinator.java

    import org.gradle.cache.IndexedCacheParameters;
    
    import java.io.Closeable;
    
    public interface CacheCreationCoordinator extends Closeable, HasCleanupAction {
        void open();
    
        /**
         * Closes the cache, blocking until all operations have completed.
         */
        @Override
        void close();
    
        <K, V> IndexedCache<K, V> newCache(IndexedCacheParameters<K, V> parameters);
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:08:47 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  7. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/btree/BlockStore.java

    public interface BlockStore {
        /**
         * Opens this store, calling the given action if the store is empty.
         */
        void open(Runnable initAction, Factory factory);
    
        /**
         * Closes this store.
         */
        void close();
    
        /**
         * Discards all blocks from this store.
         */
        void clear();
    
        /**
         * Removes the given block from this store.
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:08:47 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  8. platforms/software/resources-http/src/test/groovy/org/gradle/internal/resource/transport/http/HttpResourceUploaderTest.groovy

    import org.gradle.internal.resource.ExternalResourceName
    import org.gradle.internal.resource.ReadableContent
    
    class HttpResourceUploaderTest extends AbstractHttpClientTest {
    
        def 'uploader closes the request'() {
            given:
            HttpClientHelper client = Mock()
            ReadableContent resource = Mock()
            MockedHttpResponse mockedHttpResponse = mockedHttpResponse()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  9. src/cmd/internal/obj/loong64/a.out.go

    	ALAST
    
    	// aliases
    	AJMP = obj.AJMP
    	AJAL = obj.ACALL
    	ARET = obj.ARET
    )
    
    func init() {
    	// The asm encoder generally assumes that the lowest 5 bits of the
    	// REG_XX constants match the machine instruction encoding, i.e.
    	// the lowest 5 bits is the register number.
    	// Check this here.
    	if REG_R0%32 != 0 {
    		panic("REG_R0 is not a multiple of 32")
    	}
    	if REG_F0%32 != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 02:04:54 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  10. platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/IoActionsTest.groovy

            file.text == "bar⌘"
        }
    
        def "closes resource after executing action"() {
            def action = Mock(Action)
            def resource = Mock(Closeable)
    
            when:
            withResource(resource, action)
    
            then:
            1 * action.execute(resource)
    
            then:
            1 * resource.close()
            0 * _._
        }
    
        def "closes resource after action fails"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 5.1K bytes
    - Viewed (0)
Back to top