Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 933 for Parses (0.12 sec)

  1. src/internal/trace/raw/reader.go

    // license that can be found in the LICENSE file.
    
    package raw
    
    import (
    	"bufio"
    	"encoding/binary"
    	"fmt"
    	"io"
    
    	"internal/trace/event"
    	"internal/trace/version"
    )
    
    // Reader parses trace bytes with only very basic validation
    // into an event stream.
    type Reader struct {
    	r     *bufio.Reader
    	v     version.Version
    	specs []event.Spec
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  2. src/encoding/csv/fuzz_test.go

    			}
    
    			// The reader turns \r\n into \n.
    			for _, record := range records {
    				for i, s := range record {
    					record[i] = strings.ReplaceAll(s, "\r\n", "\n")
    				}
    			}
    			// Note that the reader parses the quoted record "" as an empty string,
    			// and the writer turns that into an empty line, which the reader skips over.
    			// Filter those out to avoid false positives.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 05 01:26:13 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  3. internal/crypto/header.go

    	}
    	if _, ok := h[xhttp.AmzServerSideEncryptionCopyCustomerKey]; ok {
    		return true
    	}
    	if _, ok := h[xhttp.AmzServerSideEncryptionCopyCustomerKeyMD5]; ok {
    		return true
    	}
    	return false
    }
    
    // ParseHTTP parses the SSE-C copy headers and returns the SSE-C client key
    // on success. Regular SSE-C headers are ignored.
    func (ssecCopy) ParseHTTP(h http.Header) (key [32]byte, err error) {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Feb 22 06:26:06 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  4. pkg/kubelet/cm/container_manager.go

    	HardEvictionThresholds   []evictionapi.Threshold
    }
    
    type Status struct {
    	// Any soft requirements that were unsatisfied.
    	SoftRequirements error
    }
    
    // parsePercentage parses the percentage string to numeric value.
    func parsePercentage(v string) (int64, error) {
    	if !strings.HasSuffix(v, "%") {
    		return 0, fmt.Errorf("percentage expected, got '%s'", v)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:22:13 UTC 2024
    - 9K bytes
    - Viewed (0)
  5. src/log/slog/slogtest_test.go

    			continue
    		}
    		m, err := parse(line)
    		if err != nil {
    			return nil, fmt.Errorf("%s: %w", string(line), err)
    		}
    		records = append(records, m)
    	}
    	return records, nil
    }
    
    func parseJSON(bs []byte) (map[string]any, error) {
    	var m map[string]any
    	if err := json.Unmarshal(bs, &m); err != nil {
    		return nil, err
    	}
    	return m, nil
    }
    
    // parseText parses the output of a single call to TextHandler.Handle.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 10 12:50:22 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  6. pkg/kubelet/types/types.go

    	parsed, _ := time.Parse(logs.RFC3339NanoLenient, timeString)
    	return &Timestamp{parsed}
    }
    
    // Get returns the time as time.Time.
    func (t *Timestamp) Get() time.Time {
    	return t.time
    }
    
    // GetString returns the time in the string format using the RFC3339NanoFixed
    // layout.
    func (t *Timestamp) GetString() string {
    	return t.time.Format(logs.RFC3339NanoFixed)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 30 13:13:22 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  7. pkg/test/framework/label/filter.go

    	return Selector{
    		present: NewSet(present...),
    		absent:  NewSet(absent...),
    	}
    }
    
    var userLabelRegex = regexp.MustCompile(`^[a-zA-Z][a-zA-Z0-9_]*(\.[a-zA-Z0-9_]+)*$`)
    
    // ParseSelector parses and returns a new instance of Selector.
    func ParseSelector(s string) (Selector, error) {
    	var present, absent []Instance
    
    	parts := strings.Split(s, ",")
    	for _, p := range parts {
    		if len(p) == 0 {
    			continue
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  8. security/pkg/nodeagent/util/util.go

    )
    
    var k8sInCluster = env.Register("KUBERNETES_SERVICE_HOST", "",
    	"Kubernetes service host, set automatically when running in-cluster")
    
    // ParseCertAndGetExpiryTimestamp parses the first certificate in certByte and returns cert expire
    // time, or return error if fails to parse certificate.
    func ParseCertAndGetExpiryTimestamp(certByte []byte) (time.Time, error) {
    	block, _ := pem.Decode(certByte)
    	if block == nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 17 10:33:38 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/common/test_base.h

    #include "mlir/IR/Builders.h"  // from @llvm-project
    #include "mlir/IR/BuiltinOps.h"  // from @llvm-project
    #include "mlir/IR/MLIRContext.h"  // from @llvm-project
    #include "mlir/IR/OwningOpRef.h"  // from @llvm-project
    #include "mlir/Parser/Parser.h"  // from @llvm-project
    #include "mlir/Support/LogicalResult.h"  // from @llvm-project
    #include "stablehlo/dialect/StablehloOps.h"  // from @stablehlo
    #include "tensorflow/compiler/mlir/lite/ir/tfl_ops.h"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 04 07:19:09 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/http/ExchangeCodec.kt

      @Throws(IOException::class)
      fun flushRequest()
    
      /** Flush the request to the underlying socket and signal no more bytes will be transmitted. */
      @Throws(IOException::class)
      fun finishRequest()
    
      /**
       * Parses bytes of a response header from an HTTP transport.
       *
       * @param expectContinue true to return null if this is an intermediate response with a "100"
       * response code. Otherwise this method never returns null.
       */
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 3K bytes
    - Viewed (0)
Back to top