Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for globAbs (0.12 sec)

  1. src/path/filepath/match_test.go

    	}
    
    	// test absolute paths
    	for _, test := range tests {
    		var p string
    		if err := test.globAbs(tmpDir, tmpDir); err != nil {
    			t.Error(err)
    		}
    		// test C:\*Documents and Settings\...
    		p = tmpDir
    		p = strings.Replace(p, `:\`, `:\*`, 1)
    		if err := test.globAbs(tmpDir, p); err != nil {
    			t.Error(err)
    		}
    		// test C:\Documents and Settings*\...
    		p = tmpDir
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 22 16:38:19 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  2. tensorflow/api_template.__init__.py

      )
    
    # Add Keras module aliases
    _losses = _KerasLazyLoader(globals(), submodule="losses", name="losses")
    _metrics = _KerasLazyLoader(globals(), submodule="metrics", name="metrics")
    _optimizers = _KerasLazyLoader(
        globals(), submodule="optimizers", name="optimizers")
    _initializers = _KerasLazyLoader(
        globals(), submodule="initializers", name="initializers")
    setattr(_current_module, "losses", _losses)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 05 06:27:59 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  3. src/internal/abi/escape.go

    //
    // WARNING: This is very subtle to use correctly. The caller must
    // ensure that it's truly safe for p to not escape to the heap by
    // maintaining runtime pointer invariants (for example, that globals
    // and the heap may not generally point into a stack).
    //
    //go:nosplit
    //go:nocheckptr
    func NoEscape(p unsafe.Pointer) unsafe.Pointer {
    	x := uintptr(p)
    	return unsafe.Pointer(x ^ 0)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 21:25:11 UTC 2024
    - 884 bytes
    - Viewed (0)
  4. src/io/fs/glob_test.go

    	_, err := Glob(os.DirFS("."), "/*"+strings.Repeat("/", 10001))
    	if err != path.ErrBadPattern {
    		t.Fatalf("Glob returned err=%v, want %v", err, path.ErrBadPattern)
    	}
    }
    
    type globOnly struct{ GlobFS }
    
    func (globOnly) Open(name string) (File, error) { return nil, ErrNotExist }
    
    func TestGlobMethod(t *testing.T) {
    	check := func(desc string, names []string, err error) {
    		t.Helper()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:36:52 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  5. src/internal/trace/testdata/testprog/cpu-profile.go

    		accum = f(accum)
    	}
    	*y = accum
    }
    
    var (
    	salt1 = 0
    )
    
    // The actual CPU hogging function.
    // Must not call other functions nor access heap/globals in the loop,
    // otherwise under race detector the samples will be in the race runtime.
    func cpuHog1(x int) int {
    	return cpuHog0(x, 1e5)
    }
    
    func cpuHog0(x, n int) int {
    	foo := x
    	for i := 0; i < n; i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  6. pkg/config/security/security.go

    		}
    	}
    	return nil
    }
    
    func CheckValidPathTemplate(key string, paths []string) error {
    	for _, path := range paths {
    		containsPathTemplate := ContainsPathTemplate(path)
    		globs := strings.Split(path, "/")
    		for _, glob := range globs {
    			// If glob is a supported path template, skip the check.
    			if glob == MatchAnyTemplate || glob == MatchOneTemplate {
    				continue
    			}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 07 04:43:34 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  7. docs/pt/docs/advanced/events.md

    Fazendo isso em funções separadas que não compartilham lógica ou variáveis entre elas é mais difícil já que você precisa armazenar os valores em variáveis globais ou truques parecidos.
    
    Por causa disso, agora é recomendado em vez disso usar o `lifespan` como explicado acima.
    
    ## Detalhes técnicos
    
    Só um detalhe técnico para nerds curiosos. 🤓
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 8.6K bytes
    - Viewed (0)
Back to top