Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 488 for Reset (0.03 sec)

  1. tests/test_dependency_contextvars.py

    async def set_up_request_state_dependency():
        request_state = {"user": "deadpond"}
        contextvar_token = legacy_request_state_context_var.set(request_state)
        yield request_state
        legacy_request_state_context_var.reset(contextvar_token)
    
    
    @app.middleware("http")
    async def custom_middleware(
        request: Request, call_next: Callable[[Request], Awaitable[Response]]
    ):
        response = await call_next(request)
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Feb 17 12:40:12 UTC 2022
    - 1.5K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/io/InputStreamUtil.java

        /**
         * {@link InputStream}をリセットします。
         *
         * @param is
         *            入力ストリーム。{@literal null}であってはいけません
         * @see InputStream#reset()
         */
        public static void reset(final InputStream is) {
            assertArgumentNotNull("is", is);
    
            try {
                is.reset();
            } catch (final IOException e) {
                throw new IORuntimeException(e);
            }
        }
    
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  3. guava/src/com/google/common/io/Java8Compatibility.java

        b.limit(limit);
      }
    
      static void mark(Buffer b) {
        b.mark();
      }
    
      static void position(Buffer b, int position) {
        b.position(position);
      }
    
      static void reset(Buffer b) {
        b.reset();
      }
    
      private Java8Compatibility() {}
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 28 20:13:02 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  4. tensorflow/c/eager/parallel_device/parallel_device_lib.cc

          finished_execute_.wait(l);
        }
        if (TF_GetCode(status_.get()) != TF_OK) {
          TF_SetStatus(status, TF_GetCode(status_.get()),
                       TF_Message(status_.get()));
          // Reset the member `status_` so future op executions (after recovery from
          // the bad `status`) start with an OK status.
          TF_SetStatus(status_.get(), TF_OK, "");
        }
        cancellation_manager_ = nullptr;
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Mon Oct 21 04:14:14 UTC 2024
    - 25.9K bytes
    - Viewed (0)
  5. compat/maven-plugin-api/src/main/java/org/apache/maven/plugin/descriptor/PluginDescriptorBuilder.java

        }
    
        private static BufferedInputStream reset(StreamSupplier inputSupplier, BufferedInputStream bis) throws IOException {
            try {
                bis.reset();
                return bis;
            } catch (IOException e) {
                return new BufferedInputStream(inputSupplier.open(), BUFFER_SIZE);
            }
        }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  6. fess-crawler/src/main/java/org/codelibs/fess/crawler/helper/SitemapsHelper.java

                if (preloadDate.indexOf("<urlset") >= 0) {
                    // XML Sitemaps
                    bis.reset();
                    return parseXmlSitemaps(bis);
                }
                if (preloadDate.indexOf("<sitemapindex") >= 0) {
                    // XML Sitemaps Index
                    bis.reset();
                    return parseXmlSitemapsIndex(bis);
                }
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Sat Oct 12 01:40:57 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/io/Java8Compatibility.java

        b.limit(limit);
      }
    
      static void mark(Buffer b) {
        b.mark();
      }
    
      static void position(Buffer b, int position) {
        b.position(position);
      }
    
      static void reset(Buffer b) {
        b.reset();
      }
    
      private Java8Compatibility() {}
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 28 20:13:02 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  8. cmd/batch-handlers_gen_test.go

    	if buf.Len() > m {
    		t.Log("WARNING: TestEncodeDecodeBatchJobPrefix Msgsize() is inaccurate")
    	}
    
    	vn := BatchJobPrefix{}
    	err := msgp.Decode(&buf, &vn)
    	if err != nil {
    		t.Error(err)
    	}
    
    	buf.Reset()
    	msgp.Encode(&buf, &v)
    	err = msgp.NewReader(&buf).Skip()
    	if err != nil {
    		t.Error(err)
    	}
    }
    
    func BenchmarkEncodeBatchJobPrefix(b *testing.B) {
    	v := BatchJobPrefix{}
    	var buf bytes.Buffer
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 01 12:53:30 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  9. cmd/local-locker_gen_test.go

    	if buf.Len() > m {
    		t.Log("WARNING: TestEncodeDecodelocalLockMap Msgsize() is inaccurate")
    	}
    
    	vn := localLockMap{}
    	err := msgp.Decode(&buf, &vn)
    	if err != nil {
    		t.Error(err)
    	}
    
    	buf.Reset()
    	msgp.Encode(&buf, &v)
    	err = msgp.NewReader(&buf).Skip()
    	if err != nil {
    		t.Error(err)
    	}
    }
    
    func BenchmarkEncodelocalLockMap(b *testing.B) {
    	v := localLockMap{}
    	var buf bytes.Buffer
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Feb 19 22:54:46 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  10. helm/minio/templates/_helper_create_bucket.txt

    		echo \"Failed attempts: $ATTEMPTS\"
    		if [ $ATTEMPTS -gt $LIMIT ]; then
    			exit 1
    		fi
    		sleep 2 # 1 second intervals between attempts
    		$MC_COMMAND
    		STATUS=$?
    	done
    	set -e # reset `e` as active
    	return 0
    }
    
    # checkBucketExists ($bucket)
    # Check if the bucket exists, by using the exit code of `mc ls`
    checkBucketExists() {
    	BUCKET=$1
    	CMD=$(${MC} stat myminio/$BUCKET >/dev/null 2>&1)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jan 12 18:18:57 UTC 2024
    - 3.5K bytes
    - Viewed (0)
Back to top