Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for create_node (0.18 sec)

  1. pkg/controller/testutil/test_utils.go

    			nodes = append(nodes, m.Existing[i])
    		}
    	}
    	for i := 0; i < len(m.CreatedNodes); i++ {
    		if !contains(m.CreatedNodes[i], m.DeletedNodes) && !contains(m.CreatedNodes[i], nodes) {
    			nodes = append(nodes, m.CreatedNodes[i])
    		}
    	}
    	nodeList := &v1.NodeList{}
    	for _, node := range nodes {
    		nodeList.Items = append(nodeList.Items, *node)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 08:48:22 UTC 2024
    - 15.6K bytes
    - Viewed (0)
  2. pkg/scheduler/extender_test.go

    			ctx, cancel := context.WithCancel(ctx)
    			defer cancel()
    
    			cache := internalcache.New(ctx, time.Duration(0))
    			for _, name := range test.nodes {
    				cache.AddNode(logger, createNode(name))
    			}
    			fwk, err := tf.NewFramework(
    				ctx,
    				test.registerPlugins, "",
    				runtime.WithClientSet(client),
    				runtime.WithInformerFactory(informerFactory),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 26 19:07:19 UTC 2024
    - 16.7K bytes
    - Viewed (0)
  3. src/internal/profile/graph.go

    	if id < uint64(len(l.s)) {
    		return l.s[id]
    	} else {
    		return l.m[id]
    	}
    }
    
    // CreateNodes creates graph nodes for all locations in a profile. It
    // returns set of all nodes, plus a mapping of each location to the
    // set of corresponding nodes (one per location.Line).
    func CreateNodes(prof *Profile, o *Options) (Nodes, locationMap) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 05 20:59:15 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  4. fastapi/_compat.py

        Sequence,
        Set,
        Tuple,
        Type,
        Union,
    )
    
    from fastapi.exceptions import RequestErrorModel
    from fastapi.types import IncEx, ModelNameMap, UnionType
    from pydantic import BaseModel, create_model
    from pydantic.version import VERSION as P_VERSION
    from starlette.datastructures import UploadFile
    from typing_extensions import Annotated, Literal, get_args, get_origin
    
    # Reassign variable to make it reexported for mypy
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 22.6K bytes
    - Viewed (0)
  5. guava/src/com/google/common/util/concurrent/CycleDetectingLockFactory.java

      /** Creates a {@code CycleDetectingLockFactory.WithExplicitOrdering<E>}. */
      public static <E extends Enum<E>> WithExplicitOrdering<E> newInstanceWithExplicitOrdering(
          Class<E> enumClass, Policy policy) {
        // createNodes maps each enumClass to a Map with the corresponding enum key
        // type.
        checkNotNull(enumClass);
        checkNotNull(policy);
        @SuppressWarnings("unchecked")
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Dec 15 19:31:54 UTC 2023
    - 35.9K bytes
    - Viewed (0)
  6. pkg/volume/util/subpath/subpath_windows.go

    	}
    	access := uint32(syscall.GENERIC_READ)
    	sharemode := uint32(syscall.FILE_SHARE_READ)
    	createmode := uint32(syscall.OPEN_EXISTING)
    	flags := uint32(syscall.FILE_FLAG_BACKUP_SEMANTICS | syscall.FILE_FLAG_OPEN_REPARSE_POINT)
    	fd, err := syscall.CreateFile(pathp, access, sharemode, nil, createmode, flags, 0)
    	return uintptr(fd), err
    }
    
    // Lock all directories in subPath and check they're not symlinks.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Aug 23 12:57:11 UTC 2023
    - 12.5K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/util/concurrent/CycleDetectingLockFactory.java

      /** Creates a {@code CycleDetectingLockFactory.WithExplicitOrdering<E>}. */
      public static <E extends Enum<E>> WithExplicitOrdering<E> newInstanceWithExplicitOrdering(
          Class<E> enumClass, Policy policy) {
        // createNodes maps each enumClass to a Map with the corresponding enum key
        // type.
        checkNotNull(enumClass);
        checkNotNull(policy);
        @SuppressWarnings("unchecked")
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Dec 15 19:31:54 UTC 2023
    - 35.9K bytes
    - Viewed (0)
  8. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/api/ConfigurationRoleUsageIntegrationTest.groovy

            succeeds 'help'
        }
    
        def "locked configurations' usage can not be updated with all"() {
            given:
            buildFile << """
                configurations {
                    $createCode
                }
    
                configurations.all {
                    canBeResolved = !canBeResolved
                    canBeConsumed = !canBeConsumed
                    canBeDeclared = !canBeDeclared
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 27 01:42:49 UTC 2024
    - 27.5K bytes
    - Viewed (0)
  9. src/cmd/vendor/github.com/google/pprof/internal/graph/graph.go

    		return true
    	case n.Flat == 0 && n.Cum < 0:
    		return true
    	default:
    		return false
    	}
    }
    
    // CreateNodes creates graph nodes for all locations in a profile. It
    // returns set of all nodes, plus a mapping of each location to the
    // set of corresponding nodes (one per location.Line).
    func CreateNodes(prof *profile.Profile, o *Options) (Nodes, map[uint64]Nodes) {
    	locations := make(map[uint64]Nodes, len(prof.Location))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 31K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/util/concurrent/CycleDetectingLockFactoryTest.java

              Class<E> enumClass, Policy policy) {
        return new CycleDetectingLockFactory.WithExplicitOrdering<E>(
            policy, CycleDetectingLockFactory.createNodes(enumClass));
      }
    
      public void testDeadlock_twoLocks() {
        // Establish an acquisition order of lockA -> lockB.
        lockA.lock();
        lockB.lock();
        lockA.unlock();
        lockB.unlock();
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 16.1K bytes
    - Viewed (0)
Back to top