Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 363 for RES (0.02 sec)

  1. samples/bookinfo/src/productpage/productpage.py

            res = send_request(url, headers=headers, timeout=3.0)
        except BaseException:
            res = None
        if res and res.status_code == 200:
            request_result_counter.labels(destination_app='details', response_code=200).inc()
            return 200, res.json()
        else:
            status = res.status_code if res is not None and res.status_code else 500
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jun 10 14:35:54 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  2. src/index/suffixarray/suffixarray_test.go

    func find(src, s string, n int) []int {
    	var res []int
    	if s != "" && n != 0 {
    		// find at most n occurrences of s in src
    		for i := -1; n < 0 || len(res) < n; {
    			j := strings.Index(src[i+1:], s)
    			if j < 0 {
    				break
    			}
    			i += j + 1
    			res = append(res, i)
    		}
    	}
    	return res
    }
    
    func testLookup(t *testing.T, tc *testCase, x *Index, s string, n int) {
    	res := x.Lookup([]byte(s), n)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/server/filters/timeout_test.go

    	))
    	defer ts.Close()
    
    	// No timeouts
    	ctx = context.Background()
    	sendResponse <- resp
    	res, err := http.Get(ts.URL)
    	if err != nil {
    		t.Fatal(err)
    	}
    	if res.StatusCode != http.StatusOK {
    		t.Errorf("got res.StatusCode %d; expected %d", res.StatusCode, http.StatusOK)
    	}
    	body, _ := ioutil.ReadAll(res.Body)
    	if string(body) != resp {
    		t.Errorf("got body %q; expected %q", string(body), resp)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 26 16:28:45 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  4. internal/event/target/elasticsearch.go

    	if err == nil && exists {
    		res, err := c.Delete(
    			index,
    			key,
    			c.Delete.WithContext(ctx),
    		)
    		if err != nil {
    			return err
    		}
    		defer xhttp.DrainBody(res.Body)
    		if res.IsError() {
    			return fmt.Errorf("Delete err: %s", res.String())
    		}
    		return nil
    	}
    	return err
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 15K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/quantization/quantization_context.cc

        for (int res = 0, e = op.getNumResults(); res != e; ++res) {
          auto &state = states_manager_.GetResultQuantState(op, res);
          auto &requantize = states_manager_.GetResultRequantizeState(op, res);
          if (state.IsEmpty() && requantize.pos == RequantizeState::NO_REQUANTIZE) {
            output_specs.push_back(original_output_specs[res]);
          } else if (requantize.pos == RequantizeState::ON_INPUT) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 08 01:38:03 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  6. src/cmd/go/internal/cache/prog.go

    		return Entry{}, &entryNotFoundError{}
    	}
    	res, err := c.send(c.ctx, &ProgRequest{
    		Command:  cmdGet,
    		ActionID: a[:],
    	})
    	if err != nil {
    		return Entry{}, err // TODO(bradfitz): or entryNotFoundError? Audit callers.
    	}
    	if res.Miss {
    		return Entry{}, &entryNotFoundError{}
    	}
    	e := Entry{
    		Size: res.Size,
    	}
    	if res.Time != nil {
    		e.Time = *res.Time
    	} else {
    		e.Time = time.Now()
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 14 19:23:25 UTC 2023
    - 11.8K bytes
    - Viewed (0)
  7. src/net/http/responsecontroller_test.go

    			t.Errorf("ctl.Flush() = %v, want nil", err)
    			return
    		}
    		<-continuec
    		w.Write([]byte("two"))
    	}))
    
    	res, err := cst.c.Get(cst.ts.URL)
    	if err != nil {
    		t.Fatalf("unexpected connection error: %v", err)
    	}
    	defer res.Body.Close()
    
    	buf := make([]byte, 16)
    	n, err := res.Body.Read(buf)
    	close(continuec)
    	if err != nil || string(buf[:n]) != "one" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 06 19:20:31 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  8. pilot/pkg/status/distribution/reporter.go

    // only the resources we expect to be in flight, not the ones that have already distributed
    func (r *Reporter) AddInProgressResource(res config.Config) {
    	tryLedgerPut(r.ledger, res)
    	myRes := status.ResourceFromModelConfig(res)
    	if myRes == (status.Resource{}) {
    		scope.Errorf("Unable to locate schema for %v, will not update status.", res)
    		return
    	}
    	r.mu.Lock()
    	defer r.mu.Unlock()
    	r.inProgressResources[myRes.ToModelKey()] = &inProgressEntry{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jan 30 17:25:17 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/stablehlo/tests/optimize.mlir

      func.return %0 : tensor<f32>
    
    // CHECK:      %[[RES:.*]] = "mhlo.dot_general"(%arg0, %arg1) <{
    // CHECK-SAME:   dot_dimension_numbers = #mhlo.dot<
    // CHECK-SAME:     lhs_contracting_dimensions = [0],
    // CHECK-SAME:     rhs_contracting_dimensions = [0]
    // CHECK-SAME: >}> : (tensor<3072xf32>, tensor<3072xf32>) -> tensor<f32>
    // CHECK:      return %[[RES]] : tensor<f32>
    }
    
    // -----
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 06 15:32:52 UTC 2024
    - 22.7K bytes
    - Viewed (0)
  10. pkg/kube/inject/template.go

    		return "{}"
    	}
    
    	return m
    }
    
    func indent(spaces int, source string) string {
    	res := strings.Split(source, "\n")
    	for i, line := range res {
    		if i > 0 {
    			res[i] = fmt.Sprintf(fmt.Sprintf("%% %ds%%s", spaces), "", line)
    		}
    	}
    	return strings.Join(res, "\n")
    }
    
    func toYaml(value any) string {
    	y, err := yaml.Marshal(value)
    	if err != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Nov 16 02:12:03 UTC 2023
    - 9.9K bytes
    - Viewed (0)
Back to top