Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for newPara (0.12 sec)

  1. src/cmd/vendor/rsc.io/markdown/para.go

    	// might have been taken away to start a table.
    	pos := p.pos()
    	pos.EndLine = pos.StartLine + len(b.text) - 1
    	return &Paragraph{
    		pos,
    		p.newText(pos, s),
    	}
    }
    
    func newPara(p *parseState, s line) (line, bool) {
    	// Process paragraph continuation text or start new paragraph.
    	b := p.para()
    	indented := p.lineDepth == len(p.stack)-2 // fully indented, not playing "pargraph continuation text" games
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/inline/inlheur/testdata/props/returns2.go

    	x int
    	y string
    }
    
    func (b *Bar) Plark() Itf {
    	return b
    }
    
    type Itf interface {
    	Plark() Itf
    }
    
    func newBar(x int) Itf {
    	s := 0
    	for i := 0; i < x; i++ {
    		s += i
    	}
    	return &Bar{
    		x: s,
    	}
    }
    
    func newBar2(x int) (int, Itf, bool) {
    	s := 0
    	for i := 0; i < x; i++ {
    		s += i
    	}
    	return 0, &Bar{x: s}, false
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 16 20:15:01 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/transforms/modify_io_nodes.cc

            arg_type = quantize_output.getType();
            new_arg = block.addArgument(arg_type, loc);
            quantize_output.replaceAllUsesWith(new_arg);
          } else if (input_type.isUnsignedInteger(
                         current_type.getIntOrFloatBitWidth())) {  // int8 != uint8
            arg_type = quant::ConvertSignedQuantizedToUnsigned(
                quantize_output.getType(), loc);
            new_arg = block.addArgument(arg_type, loc);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  4. security/pkg/nodeagent/util/util.go

    	}
    
    	writeIfNotEqual := func(fileName string, newData []byte) error {
    		if newData == nil {
    			return nil
    		}
    		oldData, _ := os.ReadFile(path.Join(dir, fileName))
    		if !bytes.Equal(oldData, newData) {
    			if err := file.AtomicWrite(path.Join(dir, fileName), newData, certFileMode); err != nil {
    				return fmt.Errorf("failed to write data to file %v: %v", fileName, err)
    			}
    		}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 17 10:33:38 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apimachinery/pkg/runtime/extension_test.go

    			t.Errorf("1st unmarshal error: %v", err)
    		}
    		newData, err := json.Marshal(new1)
    		if err != nil {
    			t.Errorf("2st marshal error: %v", err)
    		}
    		if err = json.Unmarshal(newData, &new2); err != nil {
    			t.Errorf("2nd unmarshal error: %v", err)
    		}
    		if !bytes.Equal(data, newData) {
    			t.Errorf("%s: re-marshaled data differs from original: %v %v", k, data, newData)
    		}
    		if !reflect.DeepEqual(tc.orig, new1) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 08 22:36:37 UTC 2017
    - 2.8K bytes
    - Viewed (0)
  6. pkg/util/pod/pod.go

    	}
    
    	newData, err := json.Marshal(v1.Pod{
    		ObjectMeta: metav1.ObjectMeta{UID: uid}, // only put the uid in the new object to ensure it appears in the patch as a precondition
    		Status:     newPodStatus,
    	})
    	if err != nil {
    		return nil, false, fmt.Errorf("failed to Marshal newData for pod %q/%q: %v", namespace, name, err)
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 07 15:22:29 UTC 2022
    - 3K bytes
    - Viewed (0)
  7. src/internal/syscall/unix/getentropy_netbsd.go

    		syscall.SYS___SYSCTL,
    		uintptr(unsafe.Pointer(&mib[0])),
    		uintptr(len(mib)),
    		uintptr(unsafe.Pointer(&p[0])), // olddata
    		uintptr(unsafe.Pointer(&n)),    // &oldlen
    		uintptr(unsafe.Pointer(nil)),   // newdata
    		0)                              // newlen
    	if errno != 0 {
    		return syscall.Errno(errno)
    	}
    	if n != uintptr(len(p)) {
    		return syscall.EINVAL
    	}
    	return nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 15 19:42:54 UTC 2023
    - 779 bytes
    - Viewed (0)
  8. pilot/pkg/serviceregistry/kube/controller/namespacecontroller_test.go

    	watcher.SetAndNotify(nil, nil, newCaBundle)
    	newData := map[string]string{
    		constants.CACertNamespaceConfigMapDataName: string(newCaBundle),
    	}
    	expectConfigMap(t, nc.configmaps, CACertNamespaceConfigMap, "foo", newData)
    
    	deleteConfigMap(t, client.Kube(), "foo")
    	expectConfigMap(t, nc.configmaps, CACertNamespaceConfigMap, "foo", newData)
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 15:07:03 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  9. staging/src/k8s.io/cli-runtime/pkg/genericclioptions/record_flags.go

    		return nil, err
    	}
    
    	oldData, err := json.Marshal(obj)
    	if err != nil {
    		return nil, err
    	}
    	newData, err := json.Marshal(objCopy)
    	if err != nil {
    		return nil, err
    	}
    
    	return jsonpatch.CreateMergePatch(oldData, newData)
    }
    
    // parseCommandArguments will stringify and return all environment arguments ie. a command run by a client
    // using the factory.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 08:48:22 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  10. test/fixedbugs/issue5581.go

    // Copyright 2013 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    import "fmt"
    
    func NewBar() *Bar { return nil }
    
    func (x *Foo) Method() (int, error) {
    	for y := range x.m {
    		_ = y.A
    	}
    	return 0, nil
    }
    
    type Foo struct {
    	m map[*Bar]int
    }
    
    type Bar struct {
    	A *Foo
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 575 bytes
    - Viewed (0)
Back to top