Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 1,134 for switch3 (0.28 sec)

  1. cmd/postpolicyform.go

    	policyCondStartsWith    = "starts-with"
    	policyCondContentLength = "content-length-range"
    )
    
    // toString - Safely convert interface to string without causing panic.
    func toString(val interface{}) string {
    	switch v := val.(type) {
    	case string:
    		return v
    	default:
    		return ""
    	}
    }
    
    // toLowerString - safely convert interface to lower string
    func toLowerString(val interface{}) string {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon May 06 10:52:41 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/tools/internal/analysisinternal/analysis.go

    	// Don't call Underlying unconditionally: although it removes
    	// Named and Alias, it also removes TypeParam.
    	if n, ok := under.(*types.Named); ok {
    		under = n.Underlying()
    	}
    	switch under := under.(type) {
    	case *types.Basic:
    		switch {
    		case under.Info()&types.IsNumeric != 0:
    			return &ast.BasicLit{Kind: token.INT, Value: "0"}
    		case under.Info()&types.IsBoolean != 0:
    			return &ast.Ident{Name: "false"}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  3. platforms/core-runtime/instrumentation-agent-services/src/main/java/org/gradle/internal/instrumentation/agent/AgentUtils.java

     */
    public final class AgentUtils {
        private AgentUtils() {}
    
        public static final String AGENT_MODULE_NAME = "gradle-instrumentation-agent";
    
        /**
         * Checks if the command-line argument looks like JVM switch that applies gradle instrumentation agent.
         * If the returned value is {@code true} then the argument is definitely a java agent application.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:51:15 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  4. src/net/ipsock_posix.go

    func (p *ipStackCapabilities) probe() {
    	switch runtime.GOOS {
    	case "js", "wasip1":
    		// Both ipv4 and ipv6 are faked; see net_fake.go.
    		p.ipv4Enabled = true
    		p.ipv6Enabled = true
    		p.ipv4MappedIPv6Enabled = true
    		return
    	}
    
    	s, err := sysSocket(syscall.AF_INET, syscall.SOCK_STREAM, syscall.IPPROTO_TCP)
    	switch err {
    	case syscall.EAFNOSUPPORT, syscall.EPROTONOSUPPORT:
    	case nil:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  5. platforms/core-execution/snapshots/src/main/java/org/gradle/internal/fingerprint/impl/DefaultFileSystemLocationFingerprint.java

            this.normalizedContentHash = hashForType(type, contentHash);
            this.normalizedPath = normalizedPath;
        }
    
        private static HashCode hashForType(FileType fileType, HashCode hash) {
            switch (fileType) {
                case Directory:
                    return DIR_SIGNATURE;
                case Missing:
                    return MISSING_FILE_SIGNATURE;
                case RegularFile:
                    return hash;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 16:02:35 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/labels.go

    			}
    
    			// determine and validate target
    			name := s.Label.Value
    			switch s.Tok {
    			case syntax.Break:
    				// spec: "If there is a label, it must be that of an enclosing
    				// "for", "switch", or "select" statement, and that is the one
    				// whose execution terminates."
    				valid := false
    				if t := b.enclosingTarget(name); t != nil {
    					switch t.Stmt.(type) {
    					case *syntax.SwitchStmt, *syntax.SelectStmt, *syntax.ForStmt:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/jit/node_matchers_test.cc

      ops::Switch sw(root.WithOpName("switch"), data, pred);
      Output add = ops::Add(root.WithOpName("add"), sw.output_true,
                            ops::Placeholder(root.WithOpName("addend"), DT_FLOAT));
    
      EXPECT_THAT(add.node(), NodeWith(Inputs(Out(1, NodeWith(Op("Switch"))), _)));
      EXPECT_EQ(
          Explain(add.node(), NodeWith(Inputs(Out(0, NodeWith(Op("Switch"))), _))),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 20 14:43:57 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  8. callbacks/preload.go

    			return err
    		}
    	}
    
    	fieldValues := make([]interface{}, len(relForeignFields))
    
    	// clean up old values before preloading
    	switch reflectValue.Kind() {
    	case reflect.Struct:
    		switch rel.Type {
    		case schema.HasMany, schema.Many2Many:
    			tx.AddError(rel.Field.Set(tx.Statement.Context, reflectValue, reflect.MakeSlice(rel.Field.IndirectFieldType, 0, 10).Interface()))
    		default:
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 10:52:33 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  9. src/runtime/export_debug_test.go

    	// this to avoid write barriers.
    
    	switch h.gp.atomicstatus.Load() {
    	case _Grunning:
    		if getg().m != h.mp {
    			println("trap on wrong M", getg().m, h.mp)
    			return false
    		}
    		// Save the signal context
    		h.saveSigContext(ctxt)
    		// Set PC to debugCallV2.
    		ctxt.setsigpc(uint64(abi.FuncPCABIInternal(debugCallV2)))
    		// Call injected. Switch to the debugCall protocol.
    		testSigtrap = h.handleF
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 15:41:45 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  10. src/debug/elf/file.go

    	}
    
    	f := new(File)
    	f.Class = Class(ident[EI_CLASS])
    	switch f.Class {
    	case ELFCLASS32:
    	case ELFCLASS64:
    		// ok
    	default:
    		return nil, &FormatError{0, "unknown ELF class", f.Class}
    	}
    
    	f.Data = Data(ident[EI_DATA])
    	var bo binary.ByteOrder
    	switch f.Data {
    	case ELFDATA2LSB:
    		bo = binary.LittleEndian
    	case ELFDATA2MSB:
    		bo = binary.BigEndian
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 23 16:49:58 UTC 2024
    - 43.1K bytes
    - Viewed (0)
Back to top