Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 33 for getBuf (0.17 sec)

  1. src/net/http/httputil/reverseproxy_test.go

    		mu.Lock()
    		defer mu.Unlock()
    		log = append(log, event)
    	}
    	rp := NewSingleHostReverseProxy(backendURL)
    	const size = 1234
    	rp.BufferPool = bufferPool{
    		get: func() []byte {
    			addLog("getBuf")
    			return make([]byte, size)
    		},
    		put: func(p []byte) {
    			addLog("putBuf-" + strconv.Itoa(len(p)))
    		},
    	}
    	frontend := httptest.NewServer(rp)
    	defer frontend.Close()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 54.6K bytes
    - Viewed (0)
  2. security/pkg/util/jwtutil.go

    	case float64:
    		expiration = time.Unix(int64(exp), 0)
    	case json.Number:
    		v, _ := exp.Int64()
    		expiration = time.Unix(v, 0)
    	}
    	return expiration, nil
    }
    
    // GetAud returns the claim `aud` from the token. Returns nil if not found.
    func GetAud(token string) ([]string, error) {
    	claims, err := parseJwtClaims(token)
    	if err != nil {
    		return nil, err
    	}
    
    	rawAud := claims["aud"]
    	if rawAud == nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 31 16:07:11 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  3. security/pkg/util/jwtutil_test.go

    		},
    		"two audiences list": {
    			jwt: twoAudList,
    			aud: []string{"abc", "xyz"},
    		},
    	}
    
    	for id, tc := range testCases {
    		t.Run(id, func(t *testing.T) {
    			if got, _ := GetAud(tc.jwt); !reflect.DeepEqual(tc.aud, got) {
    				t.Errorf("want audience %v but got %v", tc.aud, got)
    			}
    		})
    	}
    }
    
    func TestBase64UrlPartDecoding(t *testing.T) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 31 16:07:11 UTC 2024
    - 6K bytes
    - Viewed (0)
  4. platforms/core-runtime/launcher/src/test/groovy/org/gradle/launcher/daemon/client/DefaultDaemonConnectorTest.groovy

                return { connection } as ConnectCompletion
            }
        }
    
        def createAddress(int i) {
            new Address() {
                int getNum() { i }
    
                String getDisplayName() { getNum() }
            }
        }
    
        def createConnector() {
            def connector = Spy(DefaultDaemonConnector, constructorArgs: [
                    new EmbeddedDaemonRegistry(),
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 10:50:51 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  5. src/time/format.go

    		case stdHour:
    			hour, value, err = getnum(value, false)
    			if hour < 0 || 24 <= hour {
    				rangeErrString = "hour"
    			}
    		case stdHour12, stdZeroHour12:
    			hour, value, err = getnum(value, std == stdZeroHour12)
    			if hour < 0 || 12 < hour {
    				rangeErrString = "hour"
    			}
    		case stdMinute, stdZeroMinute:
    			min, value, err = getnum(value, std == stdZeroMinute)
    			if min < 0 || 60 <= min {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 17:09:28 UTC 2024
    - 49.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tfr/passes/decompose.cc

              new_results.push_back(element_op.getOut());
            }
          }
        }
        for (auto res : llvm::zip(op->getResults(), new_results)) {
          auto casted = builder.create<CastOp>(
              op->getLoc(), std::get<0>(res).getType(), std::get<1>(res));
          std::get<0>(res).replaceAllUsesWith(casted.getOut());
        }
    
        // Copy all the unregisted attributes to the new op.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  7. pkg/kube/kclient/client.go

    func NewWriteClient[T controllers.ComparableObject](c kube.Client) Writer[T] {
    	return &writeClient[T]{client: c}
    }
    
    func newDelayedInformer[T controllers.ComparableObject](
    	gvr schema.GroupVersionResource,
    	getInf func() informerfactory.StartableInformer,
    	delay kubetypes.DelayedFilter,
    	filter Filter,
    ) Informer[T] {
    	delayedClient := &delayedClient[T]{
    		inf:     new(atomic.Pointer[Informer[T]]),
    		delayed: delay,
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 17 07:14:28 UTC 2024
    - 13K bytes
    - Viewed (0)
  8. pkg/kubelet/server/server.go

    	ws := new(restful.WebService)
    	ws.
    		Path("/run")
    	ws.Route(ws.POST("/{podNamespace}/{podID}/{containerName}").
    		To(s.getRun).
    		Operation("getRun"))
    	ws.Route(ws.POST("/{podNamespace}/{podID}/{uid}/{containerName}").
    		To(s.getRun).
    		Operation("getRun"))
    	s.restfulCont.Add(ws)
    
    	s.addMetricsBucketMatcher("exec")
    	ws = new(restful.WebService)
    	ws.
    		Path("/exec")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 40.1K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tfr/passes/raise_to_tf.cc

            auto casted =
                rewriter.create<CastOp>(loc, unconstrainted_type, new_res);
            tensor_list.push_back(casted.getOut());
          }
          auto list_op = rewriter.create<BuildListOp>(loc, res_type, tensor_list);
          new_results.push_back(list_op.getOut());
        }
      }
    
      // Copy all the allowed attributes to the new op.
      if (failed(CopyNonSymbolRefAttrs(call_op, new_op))) return failure();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 21.8K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/resource_op_lifting_cleanup.cc

    Value LocalVarOp_resource(LocalVarOp &op) {
      if (auto var_handle_op = std::get_if<TF::VarHandleOp>(&op)) {
        return var_handle_op->getResource();
      } else {
        return std::get<TF::MlirLocalVarOp>(op).getResource();
      }
    }
    
    void LocalVarOp_erase(LocalVarOp &op) {
      if (auto var_handle_op = std::get_if<TF::VarHandleOp>(&op)) {
        var_handle_op->erase();
      } else {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 19.7K bytes
    - Viewed (0)
Back to top