Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 124 for newBar (0.11 sec)

  1. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultModelPathTranslator.java

        }
    
        private Resource alignToBaseDirectory(Resource resource, Path basedir) {
            if (resource != null) {
                String newDir = alignToBaseDirectory(resource.getDirectory(), basedir);
                if (newDir != null) {
                    return resource.withDirectory(newDir);
                }
            }
            return resource;
        }
    
        private String alignToBaseDirectory(String path, Path basedir) {
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Fri Apr 12 10:50:18 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  2. src/crypto/aes/modes_test.go

    func TestCTRAble(t *testing.T) {
    	b := cipher.Block(&testBlock{})
    	if _, ok := b.(ctrAble); !ok {
    		t.Fatalf("testBlock does not implement the ctrAble interface")
    	}
    	s := cipher.NewCTR(b, []byte{})
    	if _, ok := s.(testInterface); !ok {
    		t.Fatalf("cipher.NewCTR did not use ctrAble interface")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 14 15:32:26 UTC 2018
    - 3.5K bytes
    - Viewed (0)
  3. test/stress/maps.go

    	// For now, just one:
    	return []MapType{intMapType{}}
    }
    
    type MapType interface {
    	NewMap() Map
    }
    
    type Map interface {
    	AddItem()
    	DelItem()
    	Len() int
    	GetItem()
    	RangeAll()
    }
    
    func stressMapType(mt MapType, done func()) {
    	defer done()
    	m := mt.NewMap()
    	for m.Len() < 10000 {
    		Println("map at ", m.Len())
    		if m.Len()%100 == 0 {
    			runtime.Gosched()
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 1.8K bytes
    - Viewed (0)
  4. src/go/types/interface.go

    		return &emptyInterface
    	}
    
    	// set method receivers if necessary
    	typ := (*Checker)(nil).newInterface()
    	for _, m := range methods {
    		if sig := m.typ.(*Signature); sig.recv == nil {
    			sig.recv = NewVar(m.pos, m.pkg, "", typ)
    		}
    	}
    
    	// sort for API stability
    	sortMethods(methods)
    
    	typ.methods = methods
    	typ.embeddeds = embeddeds
    	typ.complete = true
    
    	return typ
    }
    
    // check may be nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 17:24:42 UTC 2023
    - 8.1K bytes
    - Viewed (0)
  5. src/crypto/aes/ctr_s390x.go

    	storage [streamBufferSize]byte // array backing buffer slice
    }
    
    // NewCTR returns a Stream which encrypts/decrypts using the AES block
    // cipher in counter mode. The length of iv must be the same as [BlockSize].
    func (c *aesCipherAsm) NewCTR(iv []byte) cipher.Stream {
    	if len(iv) != BlockSize {
    		panic("cipher.NewCTR: IV length must equal block size")
    	}
    	var ac aesctr
    	ac.block = c
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/interface.go

    		return &emptyInterface
    	}
    
    	// set method receivers if necessary
    	typ := (*Checker)(nil).newInterface()
    	for _, m := range methods {
    		if sig := m.typ.(*Signature); sig.recv == nil {
    			sig.recv = NewVar(m.pos, m.pkg, "", typ)
    		}
    	}
    
    	// sort for API stability
    	sortMethods(methods)
    
    	typ.methods = methods
    	typ.embeddeds = embeddeds
    	typ.complete = true
    
    	return typ
    }
    
    // check may be nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 17:24:42 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/types2/context_test.go

    		nullaryQ = NewSignatureType(nil, nil, []*TypeParam{tparam}, nil, nil, false)
    	}
    	{
    		// type unaryP = func[P any](_ P)
    		tparam := NewTypeParam(NewTypeName(nopos, nil, "P", nil), &emptyInterface)
    		params := NewTuple(NewVar(nopos, nil, "_", tparam))
    		unaryP = NewSignatureType(nil, nil, []*TypeParam{tparam}, params, nil, false)
    	}
    
    	ctxt := NewContext()
    
    	// Update the context with an instantiation of nullaryP.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 17 04:32:02 UTC 2021
    - 2.3K bytes
    - Viewed (0)
  8. src/go/types/context_test.go

    		nullaryQ = NewSignatureType(nil, nil, []*TypeParam{tparam}, nil, nil, false)
    	}
    	{
    		// type unaryP = func[P any](_ P)
    		tparam := NewTypeParam(NewTypeName(nopos, nil, "P", nil), &emptyInterface)
    		params := NewTuple(NewVar(nopos, nil, "_", tparam))
    		unaryP = NewSignatureType(nil, nil, []*TypeParam{tparam}, params, nil, false)
    	}
    
    	ctxt := NewContext()
    
    	// Update the context with an instantiation of nullaryP.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  9. maven-model-builder/src/main/java/org/apache/maven/model/path/DefaultModelPathTranslator.java

        }
    
        private Resource alignToBaseDirectory(Resource resource, Path basedir) {
            if (resource != null) {
                String newDir = alignToBaseDirectory(resource.getDirectory(), basedir);
                if (newDir != null) {
                    return resource.withDirectory(newDir);
                }
            }
            return resource;
        }
    
        private String alignToBaseDirectory(String path, Path basedir) {
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Mon Feb 26 17:04:44 UTC 2024
    - 5K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/admission/plugin/cel/composition.go

    	if a.result.Error != nil {
    		return types.NewErr("composited variable %q fails to compile: %v", a.name, a.result.Error)
    	}
    
    	v, details, err := a.result.Program.ContextEval(a.context, a.activation)
    	if details == nil {
    		return types.NewErr("unable to get evaluation details of variable %q", a.name)
    	}
    	costPtr := details.ActualCost()
    	if costPtr == nil {
    		return types.NewErr("unable to calculate cost of variable %q", a.name)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 13 21:06:39 UTC 2024
    - 7.4K bytes
    - Viewed (0)
Back to top