Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 446 for mathml (0.05 sec)

  1. tests/lru_test.go

    package tests_test
    
    import (
    	"crypto/rand"
    	"fmt"
    	"gorm.io/gorm/internal/lru"
    	"math"
    	"math/big"
    	"reflect"
    	"sync"
    	"testing"
    	"time"
    )
    
    func TestLRU_Add_ExistingKey_UpdatesValueAndExpiresAt(t *testing.T) {
    	lru := lru.NewLRU[string, int](10, nil, time.Hour)
    	lru.Add("key1", 1)
    	lru.Add("key1", 2)
    
    	if value, ok := lru.Get("key1"); !ok || value != 2 {
    		t.Errorf("Expected value to be updated to 2, got %v", value)
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Sun May 25 07:40:40 UTC 2025
    - 10.4K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/smb2/multichannel/ChannelLoadBalancer.java

            }
        }
    
        private ChannelInfo selectRoundRobin(Collection<ChannelInfo> channels) {
            List<ChannelInfo> list = new ArrayList<>(channels);
            int index = Math.abs(roundRobinCounter.getAndIncrement() % list.size());
            return list.get(index);
        }
    
        private ChannelInfo selectLeastLoaded(Collection<ChannelInfo> channels) {
            ChannelInfo leastLoadedChannel = null;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 8.2K bytes
    - Viewed (0)
  3. guava-gwt/test-super/com/google/common/math/super/com/google/common/math/TestPlatform.java

     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package com.google.common.math;
    
    import com.google.common.annotations.GwtCompatible;
    
    /**
     * @author Chris Povirk
     */
    @GwtCompatible
    final class TestPlatform {
      static boolean intsCanGoOutOfRange() {
        return true;
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 909 bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/base/Utf8Test.java

      // 18,304
      private static final long EXPECTED_TWO_BYTE_ROUNDTRIPPABLE_COUNT =
          // Both bytes are one byte characters
          (long) Math.pow(EXPECTED_ONE_BYTE_ROUNDTRIPPABLE_COUNT, 2)
              +
              // The possible number of two byte characters
              TWO_BYTE_ROUNDTRIPPABLE_CHARACTERS;
    
      // 2048
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  5. src/cmd/asm/internal/asm/testdata/arm.s

    	MOVB	R0, math·Exp(SB)     // MOVB R0, math.Exp(SB)
    	MOVB	math·Exp(SB), R0     // MOVB math.Exp(SB), R0
    	MOVBS	R0, math·Exp(SB)     // MOVBS R0, math.Exp(SB)
    	MOVBS	math·Exp(SB), R0     // MOVBS math.Exp(SB), R0
    	MOVBU	R0, math·Exp(SB)     // MOVBU R0, math.Exp(SB)
    	MOVBU	math·Exp(SB), R0     // MOVBU math.Exp(SB), R0
    	MOVB	R2, R0>>28(R1)                                    // 202ec1e7
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Fri Dec 15 20:51:01 UTC 2023
    - 69K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb2/ioctl/Smb2IoctlResponse.java

            if (this.inputData != null) {
                this.inputData.decode(buffer, inputOffset, inputCount);
            }
            bufferIndex = Math.max(inputOffset + inputCount, bufferIndex);
    
            if (this.outputBuffer != null) {
                if (outputCount > this.outputBuffer.length) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  7. internal/stmt_store/stmt_store.go

    package stmt_store
    
    import (
    	"context"
    	"database/sql"
    	"math"
    	"sync"
    	"time"
    
    	"gorm.io/gorm/internal/lru"
    )
    
    type Stmt struct {
    	*sql.Stmt
    	Transaction bool
    	prepared    chan struct{}
    	prepareErr  error
    }
    
    func (stmt *Stmt) Error() error {
    	return stmt.prepareErr
    }
    
    func (stmt *Stmt) Close() error {
    	<-stmt.prepared
    
    	if stmt.Stmt != nil {
    		return stmt.Stmt.Close()
    	}
    	return nil
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Sun Apr 27 06:05:16 UTC 2025
    - 6K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/core/convert/BigIntegerConversionUtil.java

     * either express or implied. See the License for the specific language
     * governing permissions and limitations under the License.
     */
    package org.codelibs.core.convert;
    
    import java.math.BigInteger;
    
    /**
     * Utility class for conversions related to {@link BigInteger}.
     *
     * @author higa
     */
    public abstract class BigIntegerConversionUtil {
    
        /**
         * Do not instantiate.
         */
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 1.8K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/smb2/rdma/disni/DisniRdmaConnection.java

            }
    
            try {
                // In real implementation, this would perform RDMA read into the buffer
                // For skeleton implementation, simulate reading the requested amount
                int bytesToRead = Math.min(length, buffer.remaining());
    
                // Simulate RDMA read operation
                log.debug("DiSNI RDMA read request: {} bytes from remote address 0x{}", bytesToRead, Long.toHexString(remoteAddress));
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 05:11:12 UTC 2025
    - 10.2K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/witness/WitnessClient.java

                        // Exponential backoff on errors: max 30 seconds, based on consecutive failures
                        try {
                            int failures = Math.min(registration.getHeartbeatFailures(), MAX_FAILURE_LIMIT);
                            long backoffDelay = Math.min(MAX_ERROR_BACKOFF, BASE_ERROR_DELAY * (1L << failures));
                            Thread.sleep(backoffDelay);
                        } catch (InterruptedException ie) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 20.8K bytes
    - Viewed (0)
Back to top