Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 350 for RES (0.03 sec)

  1. 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)
  2. pilot/pkg/config/kube/gateway/conversion.go

    					continue
    				}
    				if _, f := res[fromKey]; !f {
    					res[fromKey] = map[Reference]*Grants{}
    				}
    				if _, f := res[fromKey][toKey]; !f {
    					res[fromKey][toKey] = &Grants{
    						AllowedNames: sets.New[string](),
    					}
    				}
    				if to.Name != nil {
    					res[fromKey][toKey].AllowedNames.Insert(string(*to.Name))
    				} else {
    					res[fromKey][toKey].AllowAll = true
    				}
    			}
    		}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 14 04:34:37 UTC 2024
    - 84.7K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/model/adaptor.go

    		res = append(res, nestedValueValidationToStructural(&subSchema))
    	}
    	return res
    }
    
    func (s *Structural) OneOf() []common.Schema {
    	var res []common.Schema
    	for _, subSchema := range s.Structural.ValueValidation.OneOf {
    		subSchema := subSchema
    		res = append(res, nestedValueValidationToStructural(&subSchema))
    	}
    	return res
    }
    
    func (s *Structural) Not() common.Schema {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 20:13:14 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  4. src/net/http/client_test.go

    			t.Error("expected non-nil Request.Response")
    		}
    		return ErrUseLastResponse
    	}
    	res, err := c.Get(ts.URL)
    	if err != nil {
    		t.Fatal(err)
    	}
    	if res.StatusCode != StatusFound {
    		t.Errorf("status = %d; want %d", res.StatusCode, StatusFound)
    	}
    	defer res.Body.Close()
    	slurp, err := io.ReadAll(res.Body)
    	if err != nil {
    		t.Fatal(err)
    	}
    	if string(slurp) != body {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:30:50 UTC 2024
    - 63.8K bytes
    - Viewed (0)
  5. 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)
  6. src/net/http/serve_test.go

    		t.Run(tc.reqPath, func(t *testing.T) {
    			res, err := c.Get(ts.URL + tc.reqPath)
    			if err != nil {
    				t.Fatal(err)
    			}
    			res.Body.Close()
    			if tc.path == "" {
    				if res.StatusCode != StatusNotFound {
    					t.Errorf("got %q, want 404 Not Found", res.Status)
    				}
    				return
    			}
    			if res.StatusCode != StatusOK {
    				t.Fatalf("got %q, want 200 OK", res.Status)
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 202K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/stablehlo/odml_converter/folders.cc

      llvm::SmallVector<ElementsAttr> OperandData() {
        llvm::SmallVector<ElementsAttr> res;
        res.reserve(operation_->getNumOperands());
        for (auto opr : operation_->getOperands()) {
          auto op = llvm::dyn_cast<stablehlo::ConstantOp>(opr.getDefiningOp());
          res.push_back(op.getValue());
        }
        return res;
      }
    
      // Gets a pointer to the operation to be folded.
      Operation* Op() { return operation_; }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 08 06:11:55 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  8. 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)
  9. src/net/http/httputil/reverseproxy_test.go

    	getReq.Header.Set("Upgrade", "foo")
    	getReq.Close = true
    	res, err := frontendClient.Do(getReq)
    	if err != nil {
    		t.Fatalf("Get: %v", err)
    	}
    	if g, e := res.StatusCode, backendStatus; g != e {
    		t.Errorf("got res.StatusCode %d; expected %d", g, e)
    	}
    	if g, e := res.Header.Get("X-Foo"), "bar"; g != e {
    		t.Errorf("got X-Foo %q; expected %q", g, e)
    	}
    	if c := res.Header.Get(fakeHopHeader); c != "" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 54.6K bytes
    - Viewed (0)
  10. cmd/background-heal-ops.go

    			if !ok {
    				return
    			}
    
    			var res madmin.HealResultItem
    			var err error
    			switch task.bucket {
    			case nopHeal:
    				err = errSkipFile
    			case SlashSeparator:
    				res, err = healDiskFormat(ctx, objAPI, task.opts)
    			default:
    				if task.object == "" {
    					res, err = objAPI.HealBucket(ctx, task.bucket, task.opts)
    				} else {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 4.6K bytes
    - Viewed (0)
Back to top