Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 431 - 440 of 607 for Iterators (0.08 seconds)

  1. tests/benchmarks/test_general_performance.py

    import json
    import sys
    from collections.abc import Iterator
    from typing import Annotated, Any
    
    import pytest
    from fastapi import Depends, FastAPI
    from fastapi.testclient import TestClient
    from pydantic import BaseModel
    
    if "--codspeed" not in sys.argv:
        pytest.skip(
            "Benchmark tests are skipped by default; run with --codspeed.",
            allow_module_level=True,
        )
    
    LARGE_ITEMS: list[dict[str, Any]] = [
        {
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Fri Dec 26 20:40:26 GMT 2025
    - 11.1K bytes
    - Click Count (0)
  2. cmd/warm-backend-gcs.go

    package cmd
    
    import (
    	"context"
    	"errors"
    	"fmt"
    	"io"
    
    	"cloud.google.com/go/storage"
    	"github.com/minio/madmin-go/v3"
    	"google.golang.org/api/googleapi"
    	"google.golang.org/api/iterator"
    	"google.golang.org/api/option"
    
    	xioutil "github.com/minio/minio/internal/ioutil"
    )
    
    type warmBackendGCS struct {
    	client       *storage.Client
    	Bucket       string
    	Prefix       string
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Mar 30 00:56:02 GMT 2025
    - 6.1K bytes
    - Click Count (0)
  3. src/main/java/jcifs/smb/Kerb5Authenticator.java

        @Override
        public String getUserDomain() {
            if (this.realm == null && this.getSubject() != null) {
                Set<Principal> pr = this.getSubject().getPrincipals();
                for (Iterator<Principal> ite = pr.iterator(); ite.hasNext();) {
                    try {
                        KerberosPrincipal entry = (KerberosPrincipal) ite.next();
                        return entry.getRealm();
                    } catch (Exception e) {
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 13.2K bytes
    - Click Count (0)
  4. src/main/java/jcifs/smb1/smb1/Dfs.java

                String key = "\\" + domain + "\\" + root;
                if (!path.equals("\\")) {
                    key += path;
                }
                key = key.toLowerCase();
    
                final Iterator iter = referrals.map.keySet().iterator();
                while (iter.hasNext()) {
                    final String _key = (String) iter.next();
                    final int _klen = _key.length();
                    boolean match = false;
    
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 14.2K bytes
    - Click Count (0)
  5. impl/maven-core/src/test/java/org/apache/maven/project/harness/Xpp3DomAttributeIterator.java

    import org.apache.commons.jxpath.ri.QName;
    import org.apache.commons.jxpath.ri.model.NodeIterator;
    import org.apache.commons.jxpath.ri.model.NodePointer;
    import org.apache.maven.api.xml.XmlNode;
    
    /**
     * An attribute iterator for JXPath to support <code>Xpp3Dom</code>.
     *
     */
    class Xpp3DomAttributeIterator implements NodeIterator {
    
        private NodePointer parent;
    
        private XmlNode node;
    
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 2.3K bytes
    - Click Count (0)
  6. build-logic/binary-compatibility/src/test/groovy/gradlebuild/binarycompatibility/AcceptedApiChangesTest.groovy

                        }
                    ]
                }
            """])
    
            then:
            changes.acceptedChanges.size() == 1
            def acceptedChange = changes.acceptedChanges.entrySet().iterator().next()
            def change = acceptedChange.key
            change.type == "org.gradle.api.initialization.ConfigurableIncludedBuild"
            change.member == "Implemented interface org.gradle.api.initialization.IncludedBuild"
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Tue Jun 04 14:00:46 GMT 2024
    - 3.8K bytes
    - Click Count (0)
  7. guava/src/com/google/common/collect/ConsumingQueueIterator.java

    import static com.google.common.base.Preconditions.checkNotNull;
    
    import com.google.common.annotations.GwtCompatible;
    import java.util.Queue;
    import org.jspecify.annotations.Nullable;
    
    /**
     * An Iterator implementation which draws elements from a queue, removing them from the queue as it
     * iterates. This class is not thread safe.
     */
    @GwtCompatible
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 1.4K bytes
    - Click Count (0)
  8. android/guava/src/com/google/common/io/ByteSource.java

       * close the open underlying stream.
       *
       * <p>Note: The input {@code Iterator} will be copied to an {@code ImmutableList} when this method
       * is called. This will fail if the iterator is infinite and may cause problems if the iterator
       * eagerly fetches data for each source when iterated (rather than producing sources that only
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Sep 08 18:35:13 GMT 2025
    - 25.7K bytes
    - Click Count (0)
  9. impl/maven-core/src/test/java/org/apache/maven/lifecycle/internal/builder/multithreaded/ConcurrencyDependencyGraphTest.java

            // only Project.A has no dependencies
            assertEquals(1, rootSchedulableBuilds.size());
            assertEquals(
                    ProjectDependencyGraphStub.A, rootSchedulableBuilds.iterator().next());
            // double check A deps
            List<MavenProject> dependenciesA = graph.getDependencies(ProjectDependencyGraphStub.A);
            assertEquals(0, dependenciesA.size());
    
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 3.8K bytes
    - Click Count (0)
  10. okhttp-idna-mapping-table/src/main/kotlin/okhttp3/internal/idn/MappingTables.kt

     * a single section.
     */
    internal fun withoutSectionSpans(mappings: List<Mapping>): List<Mapping> {
      val result = mutableListOf<Mapping>()
    
      val i = mappings.iterator()
      var current = i.next()
    
      while (true) {
        if (current.spansSections) {
          result +=
            Mapping(
              current.sourceCodePoint0,
              current.section + 0x7f,
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 8.3K bytes
    - Click Count (0)
Back to Top