Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 426 for COPY (0.02 seconds)

  1. tests/test_dependency_yield_except_httpexception.py

    from fastapi.testclient import TestClient
    
    initial_fake_database = {"rick": "Rick Sanchez"}
    
    fake_database = initial_fake_database.copy()
    
    initial_state = {"except": False, "finally": False}
    
    state = initial_state.copy()
    
    app = FastAPI()
    
    
    async def get_database():
        temp_database = fake_database.copy()
        try:
            yield temp_database
            fake_database.update(temp_database)
        except HTTPException:
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Sep 29 03:29:38 GMT 2025
    - 1.9K bytes
    - Click Count (0)
  2. internal/ringbuffer/ring_buffer.go

    		return 0, ErrIsEmpty
    	}
    
    	if r.w > r.r {
    		n = min(r.w-r.r, len(p))
    		copy(p, r.buf[r.r:r.r+n])
    		r.r = (r.r + n) % r.size
    		return n, err
    	}
    
    	n = min(r.size-r.r+r.w, len(p))
    
    	if r.r+n <= r.size {
    		copy(p, r.buf[r.r:r.r+n])
    	} else {
    		c1 := r.size - r.r
    		copy(p, r.buf[r.r:r.size])
    		c2 := n - c1
    		copy(p[c1:], r.buf[0:c2])
    	}
    	r.r = (r.r + n) % r.size
    
    	r.isFull = false
    
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 13.3K bytes
    - Click Count (0)
  3. ci/official/containers/ml_build/Dockerfile

    # Install devtoolset build dependencies
    COPY setup.sources.sh /setup.sources.sh
    COPY setup.packages.sh /setup.packages.sh
    COPY builder.packages.txt /builder.packages.txt
    
    RUN /setup.sources.sh && /setup.packages.sh /builder.packages.txt
    
    # Setup Python
    COPY setup.python.sh /setup.python.sh
    COPY builder.requirements.txt /builder.requirements.txt
    Created: Tue Dec 30 12:39:10 GMT 2025
    - Last Modified: Thu Dec 18 21:55:23 GMT 2025
    - 4.5K bytes
    - Click Count (0)
  4. internal/crypto/sse-c.go

    	if err != nil || len(encryptedKey) != 64 {
    		return sealedKey, Errorf("The internal sealed key for SSE-C is invalid")
    	}
    
    	sealedKey.Algorithm = algorithm
    	copy(sealedKey.IV[:], iv)
    	copy(sealedKey.Key[:], encryptedKey)
    	return sealedKey, nil
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 5.2K bytes
    - Click Count (0)
  5. .github/workflows/cffconvert.yml

    # Copyright 2022 The TensorFlow Authors. All Rights Reserved.
    #
    # Licensed under the Apache License, Version 2.0 (the "License");
    # you may not use this file except in compliance with the License.
    # You may obtain a copy of the License at
    #
    #     http://www.apache.org/licenses/LICENSE-2.0
    #
    # Unless required by applicable law or agreed to in writing, software
    # distributed under the License is distributed on an "AS IS" BASIS,
    Created: Tue Dec 30 12:39:10 GMT 2025
    - Last Modified: Mon Dec 01 09:57:00 GMT 2025
    - 1.3K bytes
    - Click Count (0)
  6. compat/maven-model/src/main/java/org/apache/maven/model/InputLocation.java

         * @return InputLocation
         */
        public InputLocation clone() {
            try {
                InputLocation copy = (InputLocation) super.clone();
    
                if (copy.locations != null) {
                    copy.locations = new java.util.LinkedHashMap(copy.locations);
                }
    
                return copy;
            } catch (Exception ex) {
                throw (RuntimeException)
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Mon Sep 29 14:45:25 GMT 2025
    - 13.5K bytes
    - Click Count (0)
  7. compat/maven-model/src/main/java/org/apache/maven/model/InputSource.java

        // -----------/
    
        /**
         * Method clone.
         *
         * @return InputSource
         */
        public InputSource clone() {
            try {
                InputSource copy = (InputSource) super.clone();
    
                return copy;
            } catch (Exception ex) {
                throw (RuntimeException)
                        new UnsupportedOperationException(getClass().getName() + " does not support clone()").initCause(ex);
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Mon Sep 29 14:45:25 GMT 2025
    - 5.6K bytes
    - Click Count (0)
  8. cmd/erasure-healing-common.go

    	}
    }
    
    // Notes:
    // There are 5 possible states a disk could be in,
    // 1. __online__             - has the latest copy of xl.meta - returned by listOnlineDisks
    //
    // 2. __offline__            - err == errDiskNotFound
    //
    // 3. __availableWithParts__ - has the latest copy of xl.meta and has all
    //                             parts with checksums matching; returned by disksWithAllParts
    //
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 12K bytes
    - Click Count (0)
  9. cmd/bucket-stats.go

    	return len(brs.Stats) == 0 && brs.ReplicaSize == 0
    }
    
    // Clone creates a new BucketReplicationStats copy
    func (brs BucketReplicationStats) Clone() (c BucketReplicationStats) {
    	// This is called only by replicationStats cache and already holds a
    	// read lock before calling Clone()
    
    	c = brs
    	// We need to copy the map, so we do not reference the one in `brs`.
    	c.Stats = make(map[string]*BucketReplicationStat, len(brs.Stats))
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 13.5K bytes
    - Click Count (0)
  10. build-logic-settings/build.gradle.kts

    /*
     * Copyright 2024 the original author or authors.
     *
     * Licensed under the Apache License, Version 2.0 (the "License");
     * you may not use this file except in compliance with the License.
     * You may obtain a copy of the License at
     *
     *      http://www.apache.org/licenses/LICENSE-2.0
     *
     * Unless required by applicable law or agreed to in writing, software
     * distributed under the License is distributed on an "AS IS" BASIS,
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Tue Dec 30 04:30:54 GMT 2025
    - 785 bytes
    - Click Count (0)
Back to Top