Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 930 for sloc (0.04 sec)

  1. src/go/printer/testdata/slow.golden

    Russ Cox <******@****.***> 1410149331 -0400
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 08 04:08:51 UTC 2014
    - 2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/python/flatbuffer_to_mlir.cc

      std::string error;
      auto loc =
          mlir::FileLineColLoc::get(context, input->getBufferIdentifier(), 0, 0);
      std::vector<std::string> inputs;
      std::vector<std::string> outputs;
      return tflite::FlatBufferToMlir(
          absl::string_view(input->getBufferStart(), input->getBufferSize()),
          context, loc, false, inputs, outputs, false);
    }
    
    }  // namespace
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun May 12 12:39:37 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  3. src/log/slog/internal/benchmarks/handlers.go

    	case slog.KindUint64:
    		*buf = strconv.AppendUint(*buf, v.Uint64(), 10)
    	case slog.KindFloat64:
    		*buf = strconv.AppendFloat(*buf, v.Float64(), 'g', -1, 64)
    	case slog.KindBool:
    		*buf = strconv.AppendBool(*buf, v.Bool())
    	case slog.KindDuration:
    		*buf = strconv.AppendInt(*buf, v.Duration().Nanoseconds(), 10)
    	case slog.KindTime:
    		h.appendTime(buf, v.Time())
    	case slog.KindAny:
    		a := v.Any()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 12 20:33:37 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  4. src/log/slog/example_test.go

    package slog_test
    
    import (
    	"log/slog"
    	"net/http"
    	"os"
    	"time"
    )
    
    func ExampleGroup() {
    	r, _ := http.NewRequest("GET", "localhost", nil)
    	// ...
    
    	logger := slog.New(
    		slog.NewTextHandler(os.Stdout, &slog.HandlerOptions{
    			ReplaceAttr: func(groups []string, a slog.Attr) slog.Attr {
    				if a.Key == slog.TimeKey && len(groups) == 0 {
    					return slog.Attr{}
    				}
    				return a
    			},
    		}),
    	)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 17 14:56:30 UTC 2023
    - 857 bytes
    - Viewed (0)
  5. src/log/slog/example_wrap_test.go

    	r := slog.NewRecord(time.Now(), slog.LevelInfo, fmt.Sprintf(format, args...), pcs[0])
    	_ = logger.Handler().Handle(context.Background(), r)
    }
    
    func Example_wrapping() {
    	replace := func(groups []string, a slog.Attr) slog.Attr {
    		// Remove time.
    		if a.Key == slog.TimeKey && len(groups) == 0 {
    			return slog.Attr{}
    		}
    		// Remove the directory from the source's filename.
    		if a.Key == slog.SourceKey {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 04 18:32:54 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  6. src/log/slog/internal/benchmarks/handlers_test.go

    			t.Fatal(err)
    		}
    		got := h.ringBuffer[0]
    		if !got.Time.Equal(r.Time) || !slices.EqualFunc(attrSlice(got), attrSlice(r), slog.Attr.Equal) {
    			t.Errorf("got %+v, want %+v", got, r)
    		}
    	})
    }
    
    func attrSlice(r slog.Record) []slog.Attr {
    	var as []slog.Attr
    	r.Attrs(func(a slog.Attr) bool { as = append(as, a); return true })
    	return as
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 17 23:34:11 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  7. src/log/slog/internal/benchmarks/benchmarks.go

    	testInt      = 32768
    	testDuration = 23 * time.Second
    	testError    = errors.New("fail")
    )
    
    var testAttrs = []slog.Attr{
    	slog.String("string", testString),
    	slog.Int("status", testInt),
    	slog.Duration("duration", testDuration),
    	slog.Time("time", testTime),
    	slog.Any("error", testError),
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Mar 25 12:14:46 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/cache/Striped64.java

       * the capacity, it is doubled in size unless some other thread
       * holds the lock. If a hashed slot is empty, and lock is
       * available, a new Cell is created. Otherwise, if the slot
       * exists, a CAS is tried.  Retries proceed by "double hashing",
       * using a secondary hash (Marsaglia XorShift) to try to find a
       * free slot.
       *
       * The table size is capped because, when there are more threads
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Jun 07 22:25:23 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  9. guava/src/com/google/common/cache/Striped64.java

       * the capacity, it is doubled in size unless some other thread
       * holds the lock. If a hashed slot is empty, and lock is
       * available, a new Cell is created. Otherwise, if the slot
       * exists, a CAS is tried.  Retries proceed by "double hashing",
       * using a secondary hash (Marsaglia XorShift) to try to find a
       * free slot.
       *
       * The table size is capped because, when there are more threads
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Jun 07 22:25:23 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/hash/Striped64.java

       * the capacity, it is doubled in size unless some other thread
       * holds the lock. If a hashed slot is empty, and lock is
       * available, a new Cell is created. Otherwise, if the slot
       * exists, a CAS is tried.  Retries proceed by "double hashing",
       * using a secondary hash (Marsaglia XorShift) to try to find a
       * free slot.
       *
       * The table size is capped because, when there are more threads
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Jun 07 22:25:23 UTC 2024
    - 11.5K bytes
    - Viewed (0)
Back to top