hunk
dict
file
stringlengths
0
11.8M
file_path
stringlengths
2
234
label
int64
0
1
commit_url
stringlengths
74
103
dependency_score
listlengths
5
5
{ "id": 4, "code_window": [ "\n", "\tfor now := range tick {\n", "\t\tnowSec := now.UTC().Unix() + cacheDurationSec\n", "\t\tfor idx, id := range us.validUserIds {\n", "\t\t\tus.generateNewHashes(lastSec, nowSec, idx, id)\n", "\t\t}\n", "\t\tlastSec = nowSec\n" ], "labels": [ "ke...
package user import ( "sync" "time" "github.com/v2ray/v2ray-core/common/collect" "github.com/v2ray/v2ray-core/proxy/vmess/config" ) const ( updateIntervalSec = 10 cacheDurationSec = 120 ) type UserSet interface { AddUser(user config.User) error GetUser(timeHash []byte) (*config.ID, int64, bool) } type Tim...
proxy/vmess/protocol/user/userset.go
1
https://github.com/v2ray/v2ray-core/commit/fdb41bbd50444b702940b117efee5216a4f4756a
[ 0.9970882534980774, 0.3040297031402588, 0.0001670221536187455, 0.00789879634976387, 0.4535047709941864 ]
{ "id": 4, "code_window": [ "\n", "\tfor now := range tick {\n", "\t\tnowSec := now.UTC().Unix() + cacheDurationSec\n", "\t\tfor idx, id := range us.validUserIds {\n", "\t\t\tus.generateNewHashes(lastSec, nowSec, idx, id)\n", "\t\t}\n", "\t\tlastSec = nowSec\n" ], "labels": [ "ke...
# 开发指引 ## 基本 ### 版本控制 Git ### Branch 本项目只使用一个 Branch:master。所有更改全部提交进 master,并确保 master 在任一时刻都是可编译可使用的。 ### 引用其它项目 * golang * 产品代码只能使用 golang 的标准库,即名称不包含任何网址的包; * 测试代码可以使用 golang.org/x/... ; * 如需引用其它项目请事先创建 Issue 讨论; * 其它 * 只要不违反双方的协议(本项目为 MIT),且对项目有帮助的工具,都可以使用。 ## 开发流程 ### 写代码之前 发现任何问题,或对项目有任何想法,请立即[创建...
spec/develop.md
0
https://github.com/v2ray/v2ray-core/commit/fdb41bbd50444b702940b117efee5216a4f4756a
[ 0.00016861256153788418, 0.00016576923371758312, 0.00016375862469431013, 0.00016482167120557278, 0.0000019262886326032458 ]
{ "id": 4, "code_window": [ "\n", "\tfor now := range tick {\n", "\t\tnowSec := now.UTC().Unix() + cacheDurationSec\n", "\t\tfor idx, id := range us.validUserIds {\n", "\t\t\tus.generateNewHashes(lastSec, nowSec, idx, id)\n", "\t\t}\n", "\t\tlastSec = nowSec\n" ], "labels": [ "ke...
package retry import ( "errors" "time" ) var ( RetryFailed = errors.New("All retry attempts failed.") ) type RetryStrategy interface { On(func() error) error } type retryer struct { NextDelay func(int) int } func (r *retryer) On(method func() error) error { attempt := 0 for { err := method() if err == n...
common/retry/retry.go
0
https://github.com/v2ray/v2ray-core/commit/fdb41bbd50444b702940b117efee5216a4f4756a
[ 0.0001809952809708193, 0.0001737548445817083, 0.00016825761122163385, 0.0001727206981740892, 0.000004606364655046491 ]
{ "id": 4, "code_window": [ "\n", "\tfor now := range tick {\n", "\t\tnowSec := now.UTC().Unix() + cacheDurationSec\n", "\t\tfor idx, id := range us.validUserIds {\n", "\t\t\tus.generateNewHashes(lastSec, nowSec, idx, id)\n", "\t\t}\n", "\t\tlastSec = nowSec\n" ], "labels": [ "ke...
package json import ( "encoding/json" "github.com/v2ray/v2ray-core/proxy/vmess/config" ) // ConfigUser is an user account in VMess configuration. type ConfigUser struct { Id *config.ID Email string } func (u *ConfigUser) UnmarshalJSON(data []byte) error { type rawUser struct { IdString string `json:"id...
proxy/vmess/config/json/user.go
0
https://github.com/v2ray/v2ray-core/commit/fdb41bbd50444b702940b117efee5216a4f4756a
[ 0.00030954243266023695, 0.0002136851690011099, 0.00016473288997076452, 0.0001902326912386343, 0.000059082867664983496 ]
{ "id": 5, "code_window": [ "func (us *TimedUserSet) AddUser(user config.User) error {\n", "\tid := user.ID()\n", "\tidx := len(us.validUserIds)\n", "\tus.validUserIds = append(us.validUserIds, id)\n", "\n", "\tnowSec := time.Now().UTC().Unix()\n", "\tlastSec := nowSec - cacheDurationSec...
// Package vmess contains protocol definition, io lib for VMess. package protocol import ( "crypto/aes" "crypto/cipher" "encoding/binary" "hash/fnv" "io" "time" "github.com/v2ray/v2ray-core/common/alloc" v2io "github.com/v2ray/v2ray-core/common/io" "github.com/v2ray/v2ray-core/common/log" v2net "github.com/...
proxy/vmess/protocol/vmess.go
1
https://github.com/v2ray/v2ray-core/commit/fdb41bbd50444b702940b117efee5216a4f4756a
[ 0.012807883322238922, 0.000788861361797899, 0.0001643110445002094, 0.00017339264741167426, 0.0026250588707625866 ]
{ "id": 5, "code_window": [ "func (us *TimedUserSet) AddUser(user config.User) error {\n", "\tid := user.ID()\n", "\tidx := len(us.validUserIds)\n", "\tus.validUserIds = append(us.validUserIds, id)\n", "\n", "\tnowSec := time.Now().UTC().Unix()\n", "\tlastSec := nowSec - cacheDurationSec...
package mocks import ( "github.com/v2ray/v2ray-core/proxy/vmess/config" ) type MockUserSet struct { UserIds []*config.ID UserHashes map[string]int Timestamps map[string]int64 } func (us *MockUserSet) AddUser(user config.User) error { us.UserIds = append(us.UserIds, user.ID()) return nil } func (us *MockUse...
testing/mocks/mockuserset.go
0
https://github.com/v2ray/v2ray-core/commit/fdb41bbd50444b702940b117efee5216a4f4756a
[ 0.9760235548019409, 0.33122268319129944, 0.0062319207936525345, 0.011412526480853558, 0.45594796538352966 ]
{ "id": 5, "code_window": [ "func (us *TimedUserSet) AddUser(user config.User) error {\n", "\tid := user.ID()\n", "\tidx := len(us.validUserIds)\n", "\tus.validUserIds = append(us.validUserIds, id)\n", "\n", "\tnowSec := time.Now().UTC().Unix()\n", "\tlastSec := nowSec - cacheDurationSec...
# Issue 指引 在新建 Issue 之前请先阅读下面的内容,以提高 Issue 的质量和效率。 ## 开放分类 在创建 Issue 的时候可标记为以下分类: ### Bug 代码的质量问题,可以是功能性(Functionality),稳定性(Reliability)或者性能(Performance)。在 Bug 的内容中请注明下列内容以方便重现: * 操作系统:如 Windows 10,Ubuntu 14.04 等,64 位 / 32 位 * V2Ray 版本:版本号或源码同步日期 * Golang 版本:如果有的话 * 问题描述:任何的错误信息,不正常的行为等 * 日志文件:如果有的话 如对软件使用有任何问题也请...
spec/issue.md
0
https://github.com/v2ray/v2ray-core/commit/fdb41bbd50444b702940b117efee5216a4f4756a
[ 0.00017347051471006125, 0.0001692368823569268, 0.00016326173499692231, 0.00017110853514168411, 0.000003743624574781279 ]
{ "id": 5, "code_window": [ "func (us *TimedUserSet) AddUser(user config.User) error {\n", "\tid := user.ID()\n", "\tidx := len(us.validUserIds)\n", "\tus.validUserIds = append(us.validUserIds, id)\n", "\n", "\tnowSec := time.Now().UTC().Unix()\n", "\tlastSec := nowSec - cacheDurationSec...
The MIT License (MIT) Copyright (c) 2015 V2Ray Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, d...
LICENSE
0
https://github.com/v2ray/v2ray-core/commit/fdb41bbd50444b702940b117efee5216a4f4756a
[ 0.00017666745407041162, 0.00017185870092362165, 0.00016861865879036486, 0.00017028998991008848, 0.000003468084742053179 ]
{ "id": 6, "code_window": [ "\t\tbuffer = alloc.NewSmallBuffer().Clear()\n", "\t}\n", "\n", "\tcounter := randomRangeInt64(time.Now().UTC().Unix(), 30)\n", "\thash := idHash.Hash(request.UserId.Bytes[:], counter)\n", "\n", "\tbuffer.Append(hash)\n", "\n", "\tencryptionBegin := bu...
package user import ( "sync" "time" "github.com/v2ray/v2ray-core/common/collect" "github.com/v2ray/v2ray-core/proxy/vmess/config" ) const ( updateIntervalSec = 10 cacheDurationSec = 120 ) type UserSet interface { AddUser(user config.User) error GetUser(timeHash []byte) (*config.ID, int64, bool) } type Tim...
proxy/vmess/protocol/user/userset.go
1
https://github.com/v2ray/v2ray-core/commit/fdb41bbd50444b702940b117efee5216a4f4756a
[ 0.00163706683088094, 0.0004058672930113971, 0.00016379563021473587, 0.0002475320070516318, 0.0004286165058147162 ]
{ "id": 6, "code_window": [ "\t\tbuffer = alloc.NewSmallBuffer().Clear()\n", "\t}\n", "\n", "\tcounter := randomRangeInt64(time.Now().UTC().Unix(), 30)\n", "\thash := idHash.Hash(request.UserId.Bytes[:], counter)\n", "\n", "\tbuffer.Append(hash)\n", "\n", "\tencryptionBegin := bu...
package json import ( "encoding/json" "net" "strings" "github.com/v2ray/v2ray-core/common/log" v2net "github.com/v2ray/v2ray-core/common/net" "github.com/v2ray/v2ray-core/config" jsonconfig "github.com/v2ray/v2ray-core/config/json" vmessconfig "github.com/v2ray/v2ray-core/proxy/vmess/config" ) type RawConfig...
proxy/vmess/config/json/outbound.go
0
https://github.com/v2ray/v2ray-core/commit/fdb41bbd50444b702940b117efee5216a4f4756a
[ 0.00017353470320813358, 0.0001698164560366422, 0.00016235171642620116, 0.00017087195010390133, 0.0000035123082398058614 ]
{ "id": 6, "code_window": [ "\t\tbuffer = alloc.NewSmallBuffer().Clear()\n", "\t}\n", "\n", "\tcounter := randomRangeInt64(time.Now().UTC().Unix(), 30)\n", "\thash := idHash.Hash(request.UserId.Bytes[:], counter)\n", "\n", "\tbuffer.Append(hash)\n", "\n", "\tencryptionBegin := bu...
package json import ( "github.com/v2ray/v2ray-core/config" "github.com/v2ray/v2ray-core/config/json" ) type BlackHoleConfig struct { } func init() { json.RegisterConfigType("blackhole", config.TypeInbound, func() interface{} { return new(BlackHoleConfig) }) }
proxy/blackhole/config/json/json.go
0
https://github.com/v2ray/v2ray-core/commit/fdb41bbd50444b702940b117efee5216a4f4756a
[ 0.00016732596850488335, 0.00016702490393072367, 0.00016672382480464876, 0.00016702490393072367, 3.01071850117296e-7 ]
{ "id": 6, "code_window": [ "\t\tbuffer = alloc.NewSmallBuffer().Clear()\n", "\t}\n", "\n", "\tcounter := randomRangeInt64(time.Now().UTC().Unix(), 30)\n", "\thash := idHash.Hash(request.UserId.Bytes[:], counter)\n", "\n", "\tbuffer.Append(hash)\n", "\n", "\tencryptionBegin := bu...
package unit import ( "strconv" ) type IntSubject struct { *Subject value int } func NewIntSubject(base *Subject, value int) *IntSubject { return &IntSubject{ Subject: base, value: value, } } func (subject *IntSubject) Named(name string) *IntSubject { subject.Subject.Named(name) return subject } func ...
testing/unit/intsubject.go
0
https://github.com/v2ray/v2ray-core/commit/fdb41bbd50444b702940b117efee5216a4f4756a
[ 0.00017592296353541315, 0.0001733635290293023, 0.00017049568123184144, 0.0001736778940539807, 0.000001780440470611211 ]
{ "id": 0, "code_window": [ "\tExternalNamespace namespace.Instance\n", "\n", "\t// Ingressgateway instance\n", "\tIngress ingress.Instance\n", "\t// Eastwest gateway instance\n", "\tEastWest ingress.Instance\n", "\n", "\t// Standard echo app to be used by tests\n", "\tPodA echo....
// +build integ // Copyright Istio Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ...
tests/integration/pilot/common/apps.go
1
https://github.com/istio/istio/commit/33d59c1dfd4678bea158d6940ce03f9dae537961
[ 0.1049795150756836, 0.00526468874886632, 0.0001625813019927591, 0.00019538924971129745, 0.0199582576751709 ]
{ "id": 0, "code_window": [ "\tExternalNamespace namespace.Instance\n", "\n", "\t// Ingressgateway instance\n", "\tIngress ingress.Instance\n", "\t// Eastwest gateway instance\n", "\tEastWest ingress.Instance\n", "\n", "\t// Standard echo app to be used by tests\n", "\tPodA echo....
// Copyright Istio Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in wri...
pilot/pkg/networking/core/v1alpha3/route/route.go
0
https://github.com/istio/istio/commit/33d59c1dfd4678bea158d6940ce03f9dae537961
[ 0.002635426353663206, 0.00023102863633539528, 0.00016396002320107073, 0.0001697121188044548, 0.00028461049078032374 ]
{ "id": 0, "code_window": [ "\tExternalNamespace namespace.Instance\n", "\n", "\t// Ingressgateway instance\n", "\tIngress ingress.Instance\n", "\t// Eastwest gateway instance\n", "\tEastWest ingress.Instance\n", "\n", "\t// Standard echo app to be used by tests\n", "\tPodA echo....
# Environment variables used to configure istio startup # Comma separated list of CIDRs used for services. If set, iptables will be run to allow istio # sidecar to intercept outbound calls to configured addresses. If not set, outbound istio sidecar # will not be used via iptables. # ISTIO_SERVICE_CIDR= # Name of the ...
tools/packaging/common/sidecar.env
0
https://github.com/istio/istio/commit/33d59c1dfd4678bea158d6940ce03f9dae537961
[ 0.00017857667990028858, 0.00016868919192347676, 0.0001630414481041953, 0.0001682505535427481, 0.000003863680831273086 ]
{ "id": 0, "code_window": [ "\tExternalNamespace namespace.Instance\n", "\n", "\t// Ingressgateway instance\n", "\tIngress ingress.Instance\n", "\t// Eastwest gateway instance\n", "\tEastWest ingress.Instance\n", "\n", "\t// Standard echo app to be used by tests\n", "\tPodA echo....
// Copyright Istio Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in wri...
galley/pkg/config/testing/fixtures/accumulator_test.go
0
https://github.com/istio/istio/commit/33d59c1dfd4678bea158d6940ce03f9dae537961
[ 0.0001781951723387465, 0.00017287934315390885, 0.00016923040675465018, 0.00017211982049047947, 0.0000032599791666143574 ]
{ "id": 1, "code_window": [ "\tif err != nil {\n", "\t\treturn err\n", "\t}\n", "\n", "\tapps.Ingress = i.IngressFor(t.Clusters().Default())\n", "\tapps.EastWest = i.CustomIngressFor(t.Clusters().Default(), \"istio-eastwestgateway\", \"eastwestgateway\")\n", "\n", "\t// Headless serv...
// +build integ // Copyright Istio Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ...
tests/integration/pilot/common/apps.go
1
https://github.com/istio/istio/commit/33d59c1dfd4678bea158d6940ce03f9dae537961
[ 0.9990826845169067, 0.2490234076976776, 0.00016451030387543142, 0.00205548875965178, 0.410453736782074 ]
{ "id": 1, "code_window": [ "\tif err != nil {\n", "\t\treturn err\n", "\t}\n", "\n", "\tapps.Ingress = i.IngressFor(t.Clusters().Default())\n", "\tapps.EastWest = i.CustomIngressFor(t.Clusters().Default(), \"istio-eastwestgateway\", \"eastwestgateway\")\n", "\n", "\t// Headless serv...
// Copyright Istio Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in wri...
pilot/tools/debug/pilot_cli.go
0
https://github.com/istio/istio/commit/33d59c1dfd4678bea158d6940ce03f9dae537961
[ 0.001464565983042121, 0.0002826411509886384, 0.00015735266788396984, 0.00016898226749617606, 0.0003157682076562196 ]
{ "id": 1, "code_window": [ "\tif err != nil {\n", "\t\treturn err\n", "\t}\n", "\n", "\tapps.Ingress = i.IngressFor(t.Clusters().Default())\n", "\tapps.EastWest = i.CustomIngressFor(t.Clusters().Default(), \"istio-eastwestgateway\", \"eastwestgateway\")\n", "\n", "\t// Headless serv...
config_path: "/etc/istio/proxy" binary_path: "/usr/local/bin/envoy" service_cluster: "istio-proxy" drain_duration: {seconds: 2} parent_shutdown_duration: {seconds: 3} discovery_address: "istio-pilot:15010" proxy_admin_port: 15000 control_plane_auth_poli...
pkg/bootstrap/testdata/tracing_tls_custom_sni.proxycfg
0
https://github.com/istio/istio/commit/33d59c1dfd4678bea158d6940ce03f9dae537961
[ 0.00016687413153704256, 0.00016467302339151502, 0.00016247190069407225, 0.00016467302339151502, 0.000002201115421485156 ]
{ "id": 1, "code_window": [ "\tif err != nil {\n", "\t\treturn err\n", "\t}\n", "\n", "\tapps.Ingress = i.IngressFor(t.Clusters().Default())\n", "\tapps.EastWest = i.CustomIngressFor(t.Clusters().Default(), \"istio-eastwestgateway\", \"eastwestgateway\")\n", "\n", "\t// Headless serv...
// Copyright Istio Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in wri...
galley/pkg/config/source/kube/interfaces.go
0
https://github.com/istio/istio/commit/33d59c1dfd4678bea158d6940ce03f9dae537961
[ 0.00017784515512175858, 0.0001671710779191926, 0.00016140569641720504, 0.00016443348431494087, 0.000005281124686007388 ]
{ "id": 2, "code_window": [ "\t\t\t\t\tal = nil\n", "\t\t\t\t}\n", "\t\t\t\tchilds = append(childs, TrafficCall{\n", "\t\t\t\t\tname: fmt.Sprintf(\"mode:%v,sni:%v,alpn:%v\", mode, sni, alpn),\n", "\t\t\t\t\tcall: apps.EastWest.CallWithRetryOrFail,\n", "\t\t\t\t\topts: echo.CallOptions{\n", ...
// +build integ // Copyright Istio Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ...
tests/integration/pilot/common/apps.go
1
https://github.com/istio/istio/commit/33d59c1dfd4678bea158d6940ce03f9dae537961
[ 0.001158876926638186, 0.00027565762866288424, 0.0001616502704564482, 0.00017218907305505127, 0.00025253373314626515 ]
{ "id": 2, "code_window": [ "\t\t\t\t\tal = nil\n", "\t\t\t\t}\n", "\t\t\t\tchilds = append(childs, TrafficCall{\n", "\t\t\t\t\tname: fmt.Sprintf(\"mode:%v,sni:%v,alpn:%v\", mode, sni, alpn),\n", "\t\t\t\t\tcall: apps.EastWest.CallWithRetryOrFail,\n", "\t\t\t\t\topts: echo.CallOptions{\n", ...
// Copyright Istio Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in wri...
pkg/test/framework/components/namespace/static.go
0
https://github.com/istio/istio/commit/33d59c1dfd4678bea158d6940ce03f9dae537961
[ 0.0001834545546444133, 0.00017552879580762237, 0.00016586836136411875, 0.0001751538657117635, 0.000005738524578191573 ]
{ "id": 2, "code_window": [ "\t\t\t\t\tal = nil\n", "\t\t\t\t}\n", "\t\t\t\tchilds = append(childs, TrafficCall{\n", "\t\t\t\t\tname: fmt.Sprintf(\"mode:%v,sni:%v,alpn:%v\", mode, sni, alpn),\n", "\t\t\t\t\tcall: apps.EastWest.CallWithRetryOrFail,\n", "\t\t\t\t\topts: echo.CallOptions{\n", ...
The `istio-cni-repair` binary. Can be run as a standalone command line tool or as a daemon.
cni/cmd/istio-cni-repair/README.md
0
https://github.com/istio/istio/commit/33d59c1dfd4678bea158d6940ce03f9dae537961
[ 0.00016468798276036978, 0.00016468798276036978, 0.00016468798276036978, 0.00016468798276036978, 0 ]
{ "id": 2, "code_window": [ "\t\t\t\t\tal = nil\n", "\t\t\t\t}\n", "\t\t\t\tchilds = append(childs, TrafficCall{\n", "\t\t\t\t\tname: fmt.Sprintf(\"mode:%v,sni:%v,alpn:%v\", mode, sni, alpn),\n", "\t\t\t\t\tcall: apps.EastWest.CallWithRetryOrFail,\n", "\t\t\t\t\topts: echo.CallOptions{\n", ...
apiVersion: release-notes/v2 kind: bug-fix area: installation issue: - 29364 releaseNotes: - | **Fixed** Newer control plane installations were removing permissions for `rbac.istio.io` from `istiod`, causing older control planes relying on that CRD group to hang on restart.
releasenotes/notes/29372.yaml
0
https://github.com/istio/istio/commit/33d59c1dfd4678bea158d6940ce03f9dae537961
[ 0.0001688772317720577, 0.0001688772317720577, 0.0001688772317720577, 0.0001688772317720577, 0 ]
{ "id": 3, "code_window": [ "\t\t\t\t\topts: echo.CallOptions{\n", "\t\t\t\t\t\tPort: &echo.Port{\n", "\t\t\t\t\t\t\tServicePort: 15443,\n", "\t\t\t\t\t\t\tProtocol: protocol.HTTPS,\n", "\t\t\t\t\t\t},\n", "\t\t\t\t\t\tServerName: sni,\n", "\t\t\t\t\t\tAlpn: al,\n", "\t\t\t\...
// +build integ // Copyright Istio Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ...
tests/integration/pilot/common/apps.go
1
https://github.com/istio/istio/commit/33d59c1dfd4678bea158d6940ce03f9dae537961
[ 0.0013389342930167913, 0.00023502492695115507, 0.00016236735973507166, 0.00016841331671457738, 0.00022031755361240357 ]
{ "id": 3, "code_window": [ "\t\t\t\t\topts: echo.CallOptions{\n", "\t\t\t\t\t\tPort: &echo.Port{\n", "\t\t\t\t\t\t\tServicePort: 15443,\n", "\t\t\t\t\t\t\tProtocol: protocol.HTTPS,\n", "\t\t\t\t\t\t},\n", "\t\t\t\t\t\tServerName: sni,\n", "\t\t\t\t\t\tAlpn: al,\n", "\t\t\t\...
ARG BASE_VERSION=latest FROM gcr.io/istio-release/base:${BASE_VERSION} COPY client /usr/local/bin/client COPY server /usr/local/bin/server COPY certs/cert.crt /cert.crt COPY certs/cert.key /cert.key ENTRYPOINT ["/usr/local/bin/server"]
pkg/test/echo/docker/Dockerfile.app
0
https://github.com/istio/istio/commit/33d59c1dfd4678bea158d6940ce03f9dae537961
[ 0.00017046512220986187, 0.00016655771469231695, 0.00016265030717477202, 0.00016655771469231695, 0.000003907407517544925 ]
{ "id": 3, "code_window": [ "\t\t\t\t\topts: echo.CallOptions{\n", "\t\t\t\t\t\tPort: &echo.Port{\n", "\t\t\t\t\t\t\tServicePort: 15443,\n", "\t\t\t\t\t\t\tProtocol: protocol.HTTPS,\n", "\t\t\t\t\t\t},\n", "\t\t\t\t\t\tServerName: sni,\n", "\t\t\t\t\t\tAlpn: al,\n", "\t\t\t\...
// +build integ // Copyright Istio Authors. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required...
tests/integration/telemetry/stackdriver/stackdriver_tcp_filter_test.go
0
https://github.com/istio/istio/commit/33d59c1dfd4678bea158d6940ce03f9dae537961
[ 0.00017765312804840505, 0.00017189113714266568, 0.0001633866340853274, 0.00017207943892572075, 0.000004380223344924161 ]
{ "id": 3, "code_window": [ "\t\t\t\t\topts: echo.CallOptions{\n", "\t\t\t\t\t\tPort: &echo.Port{\n", "\t\t\t\t\t\t\tServicePort: 15443,\n", "\t\t\t\t\t\t\tProtocol: protocol.HTTPS,\n", "\t\t\t\t\t\t},\n", "\t\t\t\t\t\tServerName: sni,\n", "\t\t\t\t\t\tAlpn: al,\n", "\t\t\t\...
// Copyright Istio Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in wri...
pilot/pkg/security/model/authentication_test.go
0
https://github.com/istio/istio/commit/33d59c1dfd4678bea158d6940ce03f9dae537961
[ 0.00020191505609545857, 0.00016974283789750189, 0.00016377172141801566, 0.00016812099784146994, 0.000006313029643933987 ]
{ "id": 4, "code_window": [ " name: cross-network-gateway-test\n", " namespace: istio-system\n", "spec:\n", " selector:\n", " istio: eastwestgateway\n", " servers:\n", " - port:\n" ], "labels": [ "keep", "keep", "keep", "keep", "replace", "keep", ...
// +build integ // Copyright Istio Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ...
tests/integration/pilot/common/routing.go
1
https://github.com/istio/istio/commit/33d59c1dfd4678bea158d6940ce03f9dae537961
[ 0.030579369515180588, 0.0005524296429939568, 0.00016424839850515127, 0.0001711202785372734, 0.0024453329388052225 ]
{ "id": 4, "code_window": [ " name: cross-network-gateway-test\n", " namespace: istio-system\n", "spec:\n", " selector:\n", " istio: eastwestgateway\n", " servers:\n", " - port:\n" ], "labels": [ "keep", "keep", "keep", "keep", "replace", "keep", ...
apiVersion: networking.istio.io/v1alpha3 kind: ServiceEntry metadata: name: invalid-service-entry spec: ports: - number: 80 name: http protocol: HTTP discovery: DNS endpoints: # Rather than relying on an external host that might become unreachable (causing test failures) # we can mock the external...
galley/testdatasets/validation/dataset/networking-v1alpha3-ServiceEntry-invalid.yaml
0
https://github.com/istio/istio/commit/33d59c1dfd4678bea158d6940ce03f9dae537961
[ 0.0011401252122595906, 0.001112204510718584, 0.0010842836927622557, 0.001112204510718584, 0.00002792075974866748 ]
{ "id": 4, "code_window": [ " name: cross-network-gateway-test\n", " namespace: istio-system\n", "spec:\n", " selector:\n", " istio: eastwestgateway\n", " servers:\n", " - port:\n" ], "labels": [ "keep", "keep", "keep", "keep", "replace", "keep", ...
#!/bin/bash # # Copyright Istio Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
samples/helloworld/loadgen.sh
0
https://github.com/istio/istio/commit/33d59c1dfd4678bea158d6940ce03f9dae537961
[ 0.0001730946241877973, 0.00017300200124736875, 0.0001729093783069402, 0.00017300200124736875, 9.262294042855501e-8 ]
{ "id": 4, "code_window": [ " name: cross-network-gateway-test\n", " namespace: istio-system\n", "spec:\n", " selector:\n", " istio: eastwestgateway\n", " servers:\n", " - port:\n" ], "labels": [ "keep", "keep", "keep", "keep", "replace", "keep", ...
// Copyright Istio Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in wri...
operator/cmd/mesh/manifest-generate_test.go
0
https://github.com/istio/istio/commit/33d59c1dfd4678bea158d6940ce03f9dae537961
[ 0.005652351304888725, 0.0003052596584893763, 0.00016645838331896812, 0.00017423342796973884, 0.0005789262941107154 ]
{ "id": 5, "code_window": [ " servers:\n", " - port:\n", " number: 15443\n", " name: tls\n", " protocol: TLS\n", " tls:\n", " mode: AUTO_PASSTHROUGH\n", " hosts:\n" ], "labels": [ "keep", "keep", "replace", "keep", "ke...
// +build integ // Copyright Istio Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ...
tests/integration/pilot/common/routing.go
1
https://github.com/istio/istio/commit/33d59c1dfd4678bea158d6940ce03f9dae537961
[ 0.07420551776885986, 0.001148221199400723, 0.00016177208453882486, 0.00017140059208031744, 0.005811321083456278 ]
{ "id": 5, "code_window": [ " servers:\n", " - port:\n", " number: 15443\n", " name: tls\n", " protocol: TLS\n", " tls:\n", " mode: AUTO_PASSTHROUGH\n", " hosts:\n" ], "labels": [ "keep", "keep", "replace", "keep", "ke...
{ "node": { "id": "{{ .nodeID }}", "cluster": "{{ .cluster }}", "locality": { {{ if .region }} "region": "{{ .region }}", {{ end }} {{ if .zone }} "zone": "{{ .zone }}", {{ end }} {{ if .sub_zone }} "sub_zone": "{{ .sub_zone }}", {{ end }} }, "...
tools/packaging/common/gcp_envoy_bootstrap.json
0
https://github.com/istio/istio/commit/33d59c1dfd4678bea158d6940ce03f9dae537961
[ 0.00017222421593032777, 0.00016903545474633574, 0.00016531525761820376, 0.0001686615578364581, 0.0000019950480236730073 ]
{ "id": 5, "code_window": [ " servers:\n", " - port:\n", " number: 15443\n", " name: tls\n", " protocol: TLS\n", " tls:\n", " mode: AUTO_PASSTHROUGH\n", " hosts:\n" ], "labels": [ "keep", "keep", "replace", "keep", "ke...
// Copyright Istio Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in wri...
pilot/pkg/serviceregistry/kube/controller/controller.go
0
https://github.com/istio/istio/commit/33d59c1dfd4678bea158d6940ce03f9dae537961
[ 0.008101117797195911, 0.00033660410554148257, 0.00016059158951975405, 0.0001695117389317602, 0.0008607752388343215 ]
{ "id": 5, "code_window": [ " servers:\n", " - port:\n", " number: 15443\n", " name: tls\n", " protocol: TLS\n", " tls:\n", " mode: AUTO_PASSTHROUGH\n", " hosts:\n" ], "labels": [ "keep", "keep", "replace", "keep", "ke...
// Copyright Istio Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in wri...
operator/cmd/mesh/profile-dump_test.go
0
https://github.com/istio/istio/commit/33d59c1dfd4678bea158d6940ce03f9dae537961
[ 0.00017570385534781963, 0.00017093312635552138, 0.0001669233024585992, 0.00017108028987422585, 0.0000027947801299887942 ]
{ "id": 0, "code_window": [ "| ----- | ---- | ----- | ----------- | -------------- |\n", "| node_id | [int32](#cockroach.server.serverpb.DecommissionPreCheckResponse-int32) | | | [reserved](#support-status) |\n", "| decommission_readiness | [DecommissionPreCheckResponse.NodeReadiness](#cockroach.serve...
// Copyright 2016 The Cockroach Authors. // // Use of this software is governed by the Business Source License // included in the file licenses/BSL.txt. // // As of the Change Date specified in that file, in accordance with // the Business Source License, use of this software will be governed // by the Apache License, ...
pkg/server/serverpb/admin.proto
1
https://github.com/cockroachdb/cockroach/commit/977f72e4cc24f5d14424c278d6d6921016c3fc62
[ 0.052202749997377396, 0.002342925174161792, 0.0001590865576872602, 0.00017696891154628247, 0.00638567516580224 ]
{ "id": 0, "code_window": [ "| ----- | ---- | ----- | ----------- | -------------- |\n", "| node_id | [int32](#cockroach.server.serverpb.DecommissionPreCheckResponse-int32) | | | [reserved](#support-status) |\n", "| decommission_readiness | [DecommissionPreCheckResponse.NodeReadiness](#cockroach.serve...
<svg width="20" height="15" viewBox="0 0 20 15" fill="none" xmlns="http://www.w3.org/2000/svg"> <path fill-rule="evenodd" clip-rule="evenodd" d="M3.12831 3.31205C4.82208 1.75218 7.24647 0.25 10 0.25C12.7535 0.25 15.1779 1.75218 16.8717 3.31205C17.7269 4.09966 18.4233 4.92647 18.9113 5.63868C19.1549 5.99418 19.3538 6.33...
pkg/ui/workspaces/cluster-ui/src/assets/eye.svg
0
https://github.com/cockroachdb/cockroach/commit/977f72e4cc24f5d14424c278d6d6921016c3fc62
[ 0.0001653806830290705, 0.0001653806830290705, 0.0001653806830290705, 0.0001653806830290705, 0 ]
{ "id": 0, "code_window": [ "| ----- | ---- | ----- | ----------- | -------------- |\n", "| node_id | [int32](#cockroach.server.serverpb.DecommissionPreCheckResponse-int32) | | | [reserved](#support-status) |\n", "| decommission_readiness | [DecommissionPreCheckResponse.NodeReadiness](#cockroach.serve...
### Bug fixes - Feature A release note 1 some text for note 1 [#1][#1] [2fcb5a5bd][2fcb5a5bd] - Feature A release note 2 some text for note 2 [#1][#1] [2fcb5a5bd][2fcb5a5bd] - Feature B release note 1 [#1][#1] [8e82a68d7][8e82a68d7] - Feature C [#1][#1] [170e4d8b1][170e4d8b1] - Feature D [#1][#1] [662a10125]...
scripts/release-notes/test4.notes.ref.txt
0
https://github.com/cockroachdb/cockroach/commit/977f72e4cc24f5d14424c278d6d6921016c3fc62
[ 0.00023212509404402226, 0.00018424069276079535, 0.00016803732432890683, 0.00017122816643677652, 0.000024441198547719978 ]
{ "id": 0, "code_window": [ "| ----- | ---- | ----- | ----------- | -------------- |\n", "| node_id | [int32](#cockroach.server.serverpb.DecommissionPreCheckResponse-int32) | | | [reserved](#support-status) |\n", "| decommission_readiness | [DecommissionPreCheckResponse.NodeReadiness](#cockroach.serve...
CC += -std=c99 CPPFLAGS += -I/usr/include/postgresql LDLIBS += -lpq -lpqtypes
pkg/acceptance/testdata/c/Makefile
0
https://github.com/cockroachdb/cockroach/commit/977f72e4cc24f5d14424c278d6d6921016c3fc62
[ 0.00016431529365945607, 0.00016431529365945607, 0.00016431529365945607, 0.00016431529365945607, 0 ]
{ "id": 1, "code_window": [ "\t\t\tresultsByNodeID[nID] = serverpb.DecommissionPreCheckResponse_NodeCheckResult{\n", "\t\t\t\tNodeID: nID,\n", "\t\t\t\tDecommissionReadiness: serverpb.DecommissionPreCheckResponse_UNKNOWN,\n", "\t\t\t\tLivenessStatus: livenessStatus,\n", "\t...
// Copyright 2016 The Cockroach Authors. // // Use of this software is governed by the Business Source License // included in the file licenses/BSL.txt. // // As of the Change Date specified in that file, in accordance with // the Business Source License, use of this software will be governed // by the Apache License, ...
pkg/server/serverpb/admin.proto
1
https://github.com/cockroachdb/cockroach/commit/977f72e4cc24f5d14424c278d6d6921016c3fc62
[ 0.011312483809888363, 0.0006289592711254954, 0.00016132583550643176, 0.00017111407942138612, 0.001435846439562738 ]
{ "id": 1, "code_window": [ "\t\t\tresultsByNodeID[nID] = serverpb.DecommissionPreCheckResponse_NodeCheckResult{\n", "\t\t\t\tNodeID: nID,\n", "\t\t\t\tDecommissionReadiness: serverpb.DecommissionPreCheckResponse_UNKNOWN,\n", "\t\t\t\tLivenessStatus: livenessStatus,\n", "\t...
use registry=a ---- ev tableid=1 indexid=1 key=key id=a duration=1 ---- # Add an event on a non-SQL key. evnonsql key=key id=a duration=1 ---- check ---- tableID=1 indexID=1 num contention events: 1 cumulative contention time: 1ns keys: /Table/1/1/"key" contending txns: id=a count=1 non-SQL key "\xff...
pkg/sql/contention/testdata/contention_registry
0
https://github.com/cockroachdb/cockroach/commit/977f72e4cc24f5d14424c278d6d6921016c3fc62
[ 0.00017352608847431839, 0.00016996808699332178, 0.0001618462847545743, 0.00017039508384186774, 0.000002182018533858354 ]
{ "id": 1, "code_window": [ "\t\t\tresultsByNodeID[nID] = serverpb.DecommissionPreCheckResponse_NodeCheckResult{\n", "\t\t\t\tNodeID: nID,\n", "\t\t\t\tDecommissionReadiness: serverpb.DecommissionPreCheckResponse_UNKNOWN,\n", "\t\t\t\tLivenessStatus: livenessStatus,\n", "\t...
// Copyright 2021 The Cockroach Authors. // // Licensed as a CockroachDB Enterprise file under the Cockroach Community // License (the "License"); you may not use this file except in compliance with // the License. You may obtain a copy of the License at // // https://github.com/cockroachdb/cockroach/blob/master/li...
pkg/ccl/telemetryccl/telemetry_test.go
0
https://github.com/cockroachdb/cockroach/commit/977f72e4cc24f5d14424c278d6d6921016c3fc62
[ 0.0001766678033163771, 0.0001716892293188721, 0.00016520527424290776, 0.0001725480251479894, 0.0000040052400436252356 ]
{ "id": 1, "code_window": [ "\t\t\tresultsByNodeID[nID] = serverpb.DecommissionPreCheckResponse_NodeCheckResult{\n", "\t\t\t\tNodeID: nID,\n", "\t\t\t\tDecommissionReadiness: serverpb.DecommissionPreCheckResponse_UNKNOWN,\n", "\t\t\t\tLivenessStatus: livenessStatus,\n", "\t...
// Copyright 2021 The Cockroach Authors. // // Use of this software is governed by the Business Source License // included in the file licenses/BSL.txt. // // As of the Change Date specified in that file, in accordance with // the Business Source License, use of this software will be governed // by the Apache License, ...
pkg/sql/schemachanger/scplan/internal/opgen/opgen_index_comment.go
0
https://github.com/cockroachdb/cockroach/commit/977f72e4cc24f5d14424c278d6d6921016c3fc62
[ 0.00017842077068053186, 0.0001704571332084015, 0.00016432421398349106, 0.00016929190314840525, 0.000005157967734703561 ]
{ "id": 3, "code_window": [ "\n", "\t\tresultsByNodeID[nID] = serverpb.DecommissionPreCheckResponse_NodeCheckResult{\n", "\t\t\tNodeID: nID,\n", "\t\t\tDecommissionReadiness: readiness,\n", "\t\t\tLivenessStatus: livenessStatusByNodeID[nID],\n", "\t\t\tReplicaCount: ...
// Copyright 2016 The Cockroach Authors. // // Use of this software is governed by the Business Source License // included in the file licenses/BSL.txt. // // As of the Change Date specified in that file, in accordance with // the Business Source License, use of this software will be governed // by the Apache License, ...
pkg/server/serverpb/admin.proto
1
https://github.com/cockroachdb/cockroach/commit/977f72e4cc24f5d14424c278d6d6921016c3fc62
[ 0.02688104659318924, 0.0010579858208075166, 0.00016206265718210489, 0.0001719602005323395, 0.002835372928529978 ]
{ "id": 3, "code_window": [ "\n", "\t\tresultsByNodeID[nID] = serverpb.DecommissionPreCheckResponse_NodeCheckResult{\n", "\t\t\tNodeID: nID,\n", "\t\t\tDecommissionReadiness: readiness,\n", "\t\t\tLivenessStatus: livenessStatusByNodeID[nID],\n", "\t\t\tReplicaCount: ...
# The directory Mix will write compiled artifacts to. /_build/ # If you run "mix test --cover", coverage assets end up here. /cover/ # The directory Mix downloads your dependencies sources to. /deps/ # Where third-party dependencies like ExDoc output generated docs. /doc/ # Ignore .fetch files in case you like to e...
pkg/acceptance/testdata/elixir/test_crdb/.gitignore
0
https://github.com/cockroachdb/cockroach/commit/977f72e4cc24f5d14424c278d6d6921016c3fc62
[ 0.00017789941921364516, 0.00017489127640146762, 0.00017256596765946597, 0.00017420845688320696, 0.000002230263589808601 ]
{ "id": 3, "code_window": [ "\n", "\t\tresultsByNodeID[nID] = serverpb.DecommissionPreCheckResponse_NodeCheckResult{\n", "\t\t\tNodeID: nID,\n", "\t\t\tDecommissionReadiness: readiness,\n", "\t\t\tLivenessStatus: livenessStatusByNodeID[nID],\n", "\t\t\tReplicaCount: ...
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") go_library( name = "prometheus", srcs = ["prometheus.go"], importpath = "github.com/cockroachdb/cockroach/pkg/roachprod/prometheus", visibility = ["//visibility:public"], deps = [ "//pkg/roachprod/install", "//pkg/roach...
pkg/roachprod/prometheus/BUILD.bazel
0
https://github.com/cockroachdb/cockroach/commit/977f72e4cc24f5d14424c278d6d6921016c3fc62
[ 0.00017651911184657365, 0.00017589675553608686, 0.00017514383944217116, 0.00017596202087588608, 4.997689302399522e-7 ]
{ "id": 3, "code_window": [ "\n", "\t\tresultsByNodeID[nID] = serverpb.DecommissionPreCheckResponse_NodeCheckResult{\n", "\t\t\tNodeID: nID,\n", "\t\t\tDecommissionReadiness: readiness,\n", "\t\t\tLivenessStatus: livenessStatusByNodeID[nID],\n", "\t\t\tReplicaCount: ...
// Copyright 2016 The Cockroach Authors. // // Use of this software is governed by the Business Source License // included in the file licenses/BSL.txt. // // As of the Change Date specified in that file, in accordance with // the Business Source License, use of this software will be governed // by the Apache License, ...
pkg/kv/kvserver/scheduler.go
0
https://github.com/cockroachdb/cockroach/commit/977f72e4cc24f5d14424c278d6d6921016c3fc62
[ 0.007494134828448296, 0.0003879683499690145, 0.00016308404156006873, 0.00017086698790080845, 0.0010295023676007986 ]
{ "id": 5, "code_window": [ "\trequire.Equal(t, serverpb.DecommissionPreCheckResponse_NodeCheckResult{\n", "\t\tNodeID: invalidDecommissioningNodeID,\n", "\t\tDecommissionReadiness: serverpb.DecommissionPreCheckResponse_UNKNOWN,\n", "\t\tLivenessStatus: livenesspb.NodeLivenessS...
// Copyright 2016 The Cockroach Authors. // // Use of this software is governed by the Business Source License // included in the file licenses/BSL.txt. // // As of the Change Date specified in that file, in accordance with // the Business Source License, use of this software will be governed // by the Apache License, ...
pkg/server/serverpb/admin.proto
1
https://github.com/cockroachdb/cockroach/commit/977f72e4cc24f5d14424c278d6d6921016c3fc62
[ 0.01775066740810871, 0.0010241479612886906, 0.00016002464690245688, 0.0001717632112558931, 0.0024853493086993694 ]
{ "id": 5, "code_window": [ "\trequire.Equal(t, serverpb.DecommissionPreCheckResponse_NodeCheckResult{\n", "\t\tNodeID: invalidDecommissioningNodeID,\n", "\t\tDecommissionReadiness: serverpb.DecommissionPreCheckResponse_UNKNOWN,\n", "\t\tLivenessStatus: livenesspb.NodeLivenessS...
load("@io_bazel_rules_go//go:def.bzl", "go_test") go_test( name = "backuprand_test", srcs = [ "backup_rand_test.go", "main_test.go", ], args = ["-test.timeout=295s"], data = ["//c-deps:libgeos"], tags = ["ccl_test"], deps = [ "//pkg/base", "//pkg/ccl", ...
pkg/ccl/backupccl/backuprand/BUILD.bazel
0
https://github.com/cockroachdb/cockroach/commit/977f72e4cc24f5d14424c278d6d6921016c3fc62
[ 0.0001758496800903231, 0.00017170370847452432, 0.00016793832764960825, 0.00017151341307908297, 0.0000032250234198727412 ]
{ "id": 5, "code_window": [ "\trequire.Equal(t, serverpb.DecommissionPreCheckResponse_NodeCheckResult{\n", "\t\tNodeID: invalidDecommissioningNodeID,\n", "\t\tDecommissionReadiness: serverpb.DecommissionPreCheckResponse_UNKNOWN,\n", "\t\tLivenessStatus: livenesspb.NodeLivenessS...
{ "annotations": { "list": [ { "builtIn": 1, "datasource": "-- Grafana --", "enable": true, "hide": true, "iconColor": "rgba(0, 211, 255, 1)", "name": "Annotations & Alerts", "type": "dashboard" } ] }, "editable": true, "gnetId": null, ...
monitoring/grafana-dashboards/slow_request.json
0
https://github.com/cockroachdb/cockroach/commit/977f72e4cc24f5d14424c278d6d6921016c3fc62
[ 0.00017718908202368766, 0.00017332912830170244, 0.00016993963799905032, 0.00017304063658230007, 0.0000018557506109573296 ]
{ "id": 5, "code_window": [ "\trequire.Equal(t, serverpb.DecommissionPreCheckResponse_NodeCheckResult{\n", "\t\tNodeID: invalidDecommissioningNodeID,\n", "\t\tDecommissionReadiness: serverpb.DecommissionPreCheckResponse_UNKNOWN,\n", "\t\tLivenessStatus: livenesspb.NodeLivenessS...
// Copyright 2021 The Cockroach Authors. // // Use of this software is governed by the Business Source License // included in the file licenses/BSL.txt. // // As of the Change Date specified in that file, in accordance with // the Business Source License, use of this software will be governed // by the Apache License, ...
pkg/util/log/eventpb/telemetry.proto
0
https://github.com/cockroachdb/cockroach/commit/977f72e4cc24f5d14424c278d6d6921016c3fc62
[ 0.00017817545449361205, 0.00017000120715238154, 0.00016398815205320716, 0.0001701976580079645, 0.0000034954196053149644 ]
{ "id": 6, "code_window": [ " (gogoproto.casttype) = \"github.com/cockroachdb/cockroach/pkg/roachpb.NodeID\"];\n", "\n", " // The node's decommission readiness status.\n", " NodeReadiness decommission_readiness = 2;\n", "\n", " // The liveness status of the given node.\n", ...
// Copyright 2016 The Cockroach Authors. // // Use of this software is governed by the Business Source License // included in the file licenses/BSL.txt. // // As of the Change Date specified in that file, in accordance with // the Business Source License, use of this software will be governed // by the Apache License, ...
pkg/server/serverpb/admin.proto
1
https://github.com/cockroachdb/cockroach/commit/977f72e4cc24f5d14424c278d6d6921016c3fc62
[ 0.9985815286636353, 0.034970417618751526, 0.00016244183643721044, 0.0002355801552766934, 0.15831175446510315 ]
{ "id": 6, "code_window": [ " (gogoproto.casttype) = \"github.com/cockroachdb/cockroach/pkg/roachpb.NodeID\"];\n", "\n", " // The node's decommission readiness status.\n", " NodeReadiness decommission_readiness = 2;\n", "\n", " // The liveness status of the given node.\n", ...
# This is a dummy rule that always triggers an alert groups: - name: rules/dummy.rules rules: - alert: TestAlertManager expr: vector(1)
monitoring/rules/dummy.rules.yml
0
https://github.com/cockroachdb/cockroach/commit/977f72e4cc24f5d14424c278d6d6921016c3fc62
[ 0.00017574004596099257, 0.00017574004596099257, 0.00017574004596099257, 0.00017574004596099257, 0 ]
{ "id": 6, "code_window": [ " (gogoproto.casttype) = \"github.com/cockroachdb/cockroach/pkg/roachpb.NodeID\"];\n", "\n", " // The node's decommission readiness status.\n", " NodeReadiness decommission_readiness = 2;\n", "\n", " // The liveness status of the given node.\n", ...
// Copyright 2019 The Cockroach Authors. // // Use of this software is governed by the Business Source License // included in the file licenses/BSL.txt. // // As of the Change Date specified in that file, in accordance with // the Business Source License, use of this software will be governed // by the Apache License, ...
pkg/util/timeutil/stopwatch.go
0
https://github.com/cockroachdb/cockroach/commit/977f72e4cc24f5d14424c278d6d6921016c3fc62
[ 0.00021302214008755982, 0.00017596599354874343, 0.00016642727132420987, 0.00017388320702593774, 0.000010388854207121767 ]
{ "id": 6, "code_window": [ " (gogoproto.casttype) = \"github.com/cockroachdb/cockroach/pkg/roachpb.NodeID\"];\n", "\n", " // The node's decommission readiness status.\n", " NodeReadiness decommission_readiness = 2;\n", "\n", " // The liveness status of the given node.\n", ...
// Copyright 2019 The Cockroach Authors. // // Use of this software is governed by the Business Source License // included in the file licenses/BSL.txt. // // As of the Change Date specified in that file, in accordance with // the Business Source License, use of this software will be governed // by the Apache License, ...
pkg/sql/pgwire/pgcode/codes.go
0
https://github.com/cockroachdb/cockroach/commit/977f72e4cc24f5d14424c278d6d6921016c3fc62
[ 0.00030254852026700974, 0.0001748240611050278, 0.00016287968901451677, 0.00017043198749888688, 0.000021627603928209282 ]
{ "id": 3, "code_window": [ "\n", "// validates that the service created, updated by REST\n", "// has correct ClusterIPs related fields\n", "func isValidClusterIPFields(t *testing.T, storage *REST, pre *api.Service, post *api.Service) {\n", "\t// valid for gate off/on scenarios\n", "\t// Clu...
/* Copyright 2014 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, ...
pkg/registry/core/service/storage/rest.go
1
https://github.com/kubernetes/kubernetes/commit/75dea6b8bc2b7fb889cd41957bc5d061ab614ff4
[ 0.9953840374946594, 0.23208406567573547, 0.00016194679483305663, 0.002276231534779072, 0.36972546577453613 ]
{ "id": 3, "code_window": [ "\n", "// validates that the service created, updated by REST\n", "// has correct ClusterIPs related fields\n", "func isValidClusterIPFields(t *testing.T, storage *REST, pre *api.Service, post *api.Service) {\n", "\t// valid for gate off/on scenarios\n", "\t// Clu...
/* Copyright 2021 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, ...
test/e2e/cloud/gcp/network/framework.go
0
https://github.com/kubernetes/kubernetes/commit/75dea6b8bc2b7fb889cd41957bc5d061ab614ff4
[ 0.00017834424215834588, 0.0001749686780385673, 0.00016894456348381937, 0.00017761722847353667, 0.0000042700198719103355 ]
{ "id": 3, "code_window": [ "\n", "// validates that the service created, updated by REST\n", "// has correct ClusterIPs related fields\n", "func isValidClusterIPFields(t *testing.T, storage *REST, pre *api.Service, post *api.Service) {\n", "\t// valid for gate off/on scenarios\n", "\t// Clu...
Additional IP Rights Grant (Patents) "This implementation" means the copyrightable works distributed by Google as part of the Go project. Google hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, o...
vendor/golang.org/x/term/PATENTS
0
https://github.com/kubernetes/kubernetes/commit/75dea6b8bc2b7fb889cd41957bc5d061ab614ff4
[ 0.00017627001216169447, 0.00017552472127135843, 0.00017454999033361673, 0.0001757541176630184, 7.20689854460943e-7 ]
{ "id": 3, "code_window": [ "\n", "// validates that the service created, updated by REST\n", "// has correct ClusterIPs related fields\n", "func isValidClusterIPFields(t *testing.T, storage *REST, pre *api.Service, post *api.Service) {\n", "\t// valid for gate off/on scenarios\n", "\t// Clu...
package migration import ( "errors" "github.com/coredns/corefile-migration/migration/corefile" ) type plugin struct { status string replacedBy string additional string namedOptions map[string]option patternOptions map[string]option action pluginActionFn // action affecting this plug...
vendor/github.com/coredns/corefile-migration/migration/plugins.go
0
https://github.com/kubernetes/kubernetes/commit/75dea6b8bc2b7fb889cd41957bc5d061ab614ff4
[ 0.00032671380904503167, 0.0001743636094033718, 0.0001642339921090752, 0.0001712075900286436, 0.000021384359570220113 ]
{ "id": 0, "code_window": [ "dev-dynamic-mem: BUILD_TAGS+=memprofiler\n", "dev-dynamic-mem: dev-dynamic\n", "\n", "# Creates a Docker image by adding the compiled linux/amd64 binary found in ./bin.\n", "# The resulting image is tagged \"vault:dev\". \n", "docker-dev: prep\n" ], "labels":...
# Multi-stage builder to avoid polluting users environment with wrong # architecture binaries. Since this binary is used in an alpine container, # we're explicitly compiling for 'linux/amd64' FROM debian:buster AS builder ARG VERSION=1.13.10 ARG CGO_ENABLED=0 ARG BUILD_TAGS ENV JOBS=2 RUN apt-get update -y && apt-ge...
scripts/docker/Dockerfile.ui
1
https://github.com/hashicorp/vault/commit/9204c47af7b04eadff6677db70909663b55ed56b
[ 0.007558389566838741, 0.0015452387742698193, 0.00016920603229664266, 0.00041821127524599433, 0.0024299626238644123 ]
{ "id": 0, "code_window": [ "dev-dynamic-mem: BUILD_TAGS+=memprofiler\n", "dev-dynamic-mem: dev-dynamic\n", "\n", "# Creates a Docker image by adding the compiled linux/amd64 binary found in ./bin.\n", "# The resulting image is tagged \"vault:dev\". \n", "docker-dev: prep\n" ], "labels":...
/* * Copyright 2018 - Present Okta, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
vendor/github.com/okta/okta-sdk-golang/v2/okta/applicationCredentialsSigningUse.go
0
https://github.com/hashicorp/vault/commit/9204c47af7b04eadff6677db70909663b55ed56b
[ 0.00021085147454869002, 0.00018672480655368418, 0.0001743598550092429, 0.00017496307555120438, 0.000017061911421478726 ]
{ "id": 0, "code_window": [ "dev-dynamic-mem: BUILD_TAGS+=memprofiler\n", "dev-dynamic-mem: dev-dynamic\n", "\n", "# Creates a Docker image by adding the compiled linux/amd64 binary found in ./bin.\n", "# The resulting image is tagged \"vault:dev\". \n", "docker-dev: prep\n" ], "labels":...
// Copyright 2013 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package yaml import ( "bytes" "encoding" "encoding/json" "reflect" "sort" "strings" "sync" "unicode" "unicode/utf8" ) // indirect walks down v allocat...
vendor/github.com/ghodss/yaml/fields.go
0
https://github.com/hashicorp/vault/commit/9204c47af7b04eadff6677db70909663b55ed56b
[ 0.0008049817406572402, 0.00018926554184872657, 0.00016430855612270534, 0.00017117918469011784, 0.00009256261546397582 ]
{ "id": 0, "code_window": [ "dev-dynamic-mem: BUILD_TAGS+=memprofiler\n", "dev-dynamic-mem: dev-dynamic\n", "\n", "# Creates a Docker image by adding the compiled linux/amd64 binary found in ./bin.\n", "# The resulting image is tagged \"vault:dev\". \n", "docker-dev: prep\n" ], "labels":...
syntax = "proto3"; option go_package = "types"; package github_com_hashicorp_go_raftchunking_types; message ChunkInfo { // OpNum is the ID of the op, used to ensure values are applied to the // right operation uint64 op_num = 1; // SequenceNum is the current number of the ops; when applying we should // see th...
vendor/github.com/hashicorp/go-raftchunking/types/types.proto
0
https://github.com/hashicorp/vault/commit/9204c47af7b04eadff6677db70909663b55ed56b
[ 0.00016935034363996238, 0.0001685442985035479, 0.0001675439125392586, 0.00016873863933142275, 7.501664640585659e-7 ]
{ "id": 1, "code_window": [ "docker-dev: prep\n", "\tdocker build -f scripts/docker/Dockerfile -t vault:dev .\n", "\n", "docker-dev-ui: prep\n" ], "labels": [ "keep", "replace", "keep", "keep" ], "after_edit": [ "\tdocker build --build-arg VERSION=$(GO_VERSION_MIN) -f scr...
# Multi-stage builder to avoid polluting users environment with wrong # architecture binaries. Since this binary is used in an alpine container, # we're explicitly compiling for 'linux/amd64' ARG VERSION=1.13.10 FROM golang:${VERSION} AS builder ARG CGO_ENABLED=0 ARG BUILD_TAGS WORKDIR /go/src/github.com/hashicor...
scripts/docker/Dockerfile
1
https://github.com/hashicorp/vault/commit/9204c47af7b04eadff6677db70909663b55ed56b
[ 0.011588783003389835, 0.0019492844585329294, 0.0001701565779512748, 0.0003214319294784218, 0.003939106594771147 ]
{ "id": 1, "code_window": [ "docker-dev: prep\n", "\tdocker build -f scripts/docker/Dockerfile -t vault:dev .\n", "\n", "docker-dev-ui: prep\n" ], "labels": [ "keep", "replace", "keep", "keep" ], "after_edit": [ "\tdocker build --build-arg VERSION=$(GO_VERSION_MIN) -f scr...
package command import ( "io/ioutil" "os" "strings" "testing" "github.com/mitchellh/cli" ) func testPolicyFmtCommand(tb testing.TB) (*cli.MockUi, *PolicyFmtCommand) { tb.Helper() ui := cli.NewMockUi() return ui, &PolicyFmtCommand{ BaseCommand: &BaseCommand{ UI: ui, }, } } func TestPolicyFmtCommand_...
command/policy_fmt_test.go
0
https://github.com/hashicorp/vault/commit/9204c47af7b04eadff6677db70909663b55ed56b
[ 0.0011431919410824776, 0.00028072320856153965, 0.0001679191191215068, 0.00017065418069250882, 0.00025028048548847437 ]
{ "id": 1, "code_window": [ "docker-dev: prep\n", "\tdocker build -f scripts/docker/Dockerfile -t vault:dev .\n", "\n", "docker-dev-ui: prep\n" ], "labels": [ "keep", "replace", "keep", "keep" ], "after_edit": [ "\tdocker build --build-arg VERSION=$(GO_VERSION_MIN) -f scr...
module github.com/prometheus/procfs go 1.12 require ( github.com/google/go-cmp v0.3.1 golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e )
vendor/github.com/prometheus/procfs/go.mod
0
https://github.com/hashicorp/vault/commit/9204c47af7b04eadff6677db70909663b55ed56b
[ 0.00016793017857708037, 0.00016793017857708037, 0.00016793017857708037, 0.00016793017857708037, 0 ]
{ "id": 1, "code_window": [ "docker-dev: prep\n", "\tdocker build -f scripts/docker/Dockerfile -t vault:dev .\n", "\n", "docker-dev-ui: prep\n" ], "labels": [ "keep", "replace", "keep", "keep" ], "after_edit": [ "\tdocker build --build-arg VERSION=$(GO_VERSION_MIN) -f scr...
Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, ...
vendor/github.com/aws/aws-sdk-go/LICENSE.txt
0
https://github.com/hashicorp/vault/commit/9204c47af7b04eadff6677db70909663b55ed56b
[ 0.00017648209177423269, 0.00017084965656977147, 0.00016237696399912238, 0.00017128008767031133, 0.0000032077659852802753 ]
{ "id": 2, "code_window": [ "\n", "docker-dev-ui: prep\n", "\tdocker build -f scripts/docker/Dockerfile.ui -t vault:dev-ui .\n", "\n", "# test runs the unit tests and vets the code\n", "test: prep\n" ], "labels": [ "keep", "keep", "replace", "keep", "keep", "keep"...
# Determine this makefile's path. # Be sure to place this BEFORE `include` directives, if any. THIS_FILE := $(lastword $(MAKEFILE_LIST)) TEST?=$$($(GO_CMD) list ./... | grep -v /vendor/ | grep -v /integ) TEST_TIMEOUT?=45m EXTENDED_TEST_TIMEOUT=60m INTEG_TEST_TIMEOUT=120m VETARGS?=-asmdecl -atomic -bool -buildtags -cop...
Makefile
1
https://github.com/hashicorp/vault/commit/9204c47af7b04eadff6677db70909663b55ed56b
[ 0.0051825931295752525, 0.0006063089822418988, 0.00016493233852088451, 0.0001707655901554972, 0.0010831530671566725 ]
{ "id": 2, "code_window": [ "\n", "docker-dev-ui: prep\n", "\tdocker build -f scripts/docker/Dockerfile.ui -t vault:dev-ui .\n", "\n", "# test runs the unit tests and vets the code\n", "test: prep\n" ], "labels": [ "keep", "keep", "replace", "keep", "keep", "keep"...
package mock import ( "context" "github.com/hashicorp/vault/sdk/framework" "github.com/hashicorp/vault/sdk/logical" ) // pathInternal is used to test viewing internal backend values. In this case, // it is used to test the invalidate func. func pathInternal(b *backend) *framework.Path { return &framework.Path{ ...
vendor/github.com/hashicorp/vault/sdk/plugin/mock/path_internal.go
0
https://github.com/hashicorp/vault/commit/9204c47af7b04eadff6677db70909663b55ed56b
[ 0.00017286321963183582, 0.00016964029055088758, 0.00016649696044623852, 0.00016960050561465323, 0.0000022607903247262584 ]
{ "id": 2, "code_window": [ "\n", "docker-dev-ui: prep\n", "\tdocker build -f scripts/docker/Dockerfile.ui -t vault:dev-ui .\n", "\n", "# test runs the unit tests and vets the code\n", "test: prep\n" ], "labels": [ "keep", "keep", "replace", "keep", "keep", "keep"...
import { module, test } from 'qunit'; import { setupRenderingTest } from 'ember-qunit'; import { settled, render, click, fillIn, findAll, find, triggerEvent, waitUntil } from '@ember/test-helpers'; import hbs from 'htmlbars-inline-precompile'; let file; const fileEvent = () => { const data = { some: 'content' }; f...
ui/tests/integration/components/pgp-file-test.js
0
https://github.com/hashicorp/vault/commit/9204c47af7b04eadff6677db70909663b55ed56b
[ 0.00017551833298057318, 0.0001698935084277764, 0.0001655687519814819, 0.00016978816711343825, 0.0000024214846234826837 ]
{ "id": 2, "code_window": [ "\n", "docker-dev-ui: prep\n", "\tdocker build -f scripts/docker/Dockerfile.ui -t vault:dev-ui .\n", "\n", "# test runs the unit tests and vets the code\n", "test: prep\n" ], "labels": [ "keep", "keep", "replace", "keep", "keep", "keep"...
// +build !enterprise package vault type sentinelPolicy struct{}
vault/policy_util.go
0
https://github.com/hashicorp/vault/commit/9204c47af7b04eadff6677db70909663b55ed56b
[ 0.0001958275679498911, 0.0001958275679498911, 0.0001958275679498911, 0.0001958275679498911, 0 ]
{ "id": 3, "code_window": [ "# Multi-stage builder to avoid polluting users environment with wrong \n", "# architecture binaries. Since this binary is used in an alpine container, \n", "# we're explicitly compiling for 'linux/amd64'\n" ], "labels": [ "replace", "replace", "keep" ], ...
# Determine this makefile's path. # Be sure to place this BEFORE `include` directives, if any. THIS_FILE := $(lastword $(MAKEFILE_LIST)) TEST?=$$($(GO_CMD) list ./... | grep -v /vendor/ | grep -v /integ) TEST_TIMEOUT?=45m EXTENDED_TEST_TIMEOUT=60m INTEG_TEST_TIMEOUT=120m VETARGS?=-asmdecl -atomic -bool -buildtags -cop...
Makefile
1
https://github.com/hashicorp/vault/commit/9204c47af7b04eadff6677db70909663b55ed56b
[ 0.004244254436343908, 0.0004955537151545286, 0.00016564250108785927, 0.0001994109625229612, 0.0008269241661764681 ]
{ "id": 3, "code_window": [ "# Multi-stage builder to avoid polluting users environment with wrong \n", "# architecture binaries. Since this binary is used in an alpine container, \n", "# we're explicitly compiling for 'linux/amd64'\n" ], "labels": [ "replace", "replace", "keep" ], ...
--- layout: guides page_title: 'Identity: Entities and Groups - Guides' sidebar_title: Identity - Entities & Groups description: |- This guide demonstrates the commands to create entities, entity aliases, and groups. For the purpose of the demonstration, userpass auth method will be used. --- # Identity - Entit...
website/pages/guides/identity/identity.mdx
0
https://github.com/hashicorp/vault/commit/9204c47af7b04eadff6677db70909663b55ed56b
[ 0.0006611528224311769, 0.00018233276205137372, 0.00016333258827216923, 0.00016667899035383016, 0.000060091118939453736 ]
{ "id": 3, "code_window": [ "# Multi-stage builder to avoid polluting users environment with wrong \n", "# architecture binaries. Since this binary is used in an alpine container, \n", "# we're explicitly compiling for 'linux/amd64'\n" ], "labels": [ "replace", "replace", "keep" ], ...
import Controller from '@ember/controller'; import ListController from 'vault/mixins/list-controller'; export default Controller.extend(ListController, {});
ui/app/controllers/vault/cluster/access/method/item/list.js
0
https://github.com/hashicorp/vault/commit/9204c47af7b04eadff6677db70909663b55ed56b
[ 0.0001675413514021784, 0.0001675413514021784, 0.0001675413514021784, 0.0001675413514021784, 0 ]
{ "id": 3, "code_window": [ "# Multi-stage builder to avoid polluting users environment with wrong \n", "# architecture binaries. Since this binary is used in an alpine container, \n", "# we're explicitly compiling for 'linux/amd64'\n" ], "labels": [ "replace", "replace", "keep" ], ...
package ram //Licensed under the Apache License, Version 2.0 (the "License"); //you may not use this file except in compliance with the License. //You may obtain a copy of the License at // //http://www.apache.org/licenses/LICENSE-2.0 // //Unless required by applicable law or agreed to in writing, software //distribut...
vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ram/get_policy_version.go
0
https://github.com/hashicorp/vault/commit/9204c47af7b04eadff6677db70909663b55ed56b
[ 0.005311202257871628, 0.0014856496127322316, 0.00016678741667419672, 0.0003383011498954147, 0.0017900525126606226 ]
{ "id": 4, "code_window": [ "# we're explicitly compiling for 'linux/amd64'\n", "ARG VERSION=1.13.10\n", "\n", "FROM golang:${VERSION} AS builder\n", "\n", "ARG CGO_ENABLED=0\n" ], "labels": [ "keep", "replace", "keep", "keep", "keep", "keep" ], "after_edit": ...
# Multi-stage builder to avoid polluting users environment with wrong # architecture binaries. Since this binary is used in an alpine container, # we're explicitly compiling for 'linux/amd64' ARG VERSION=1.13.10 FROM golang:${VERSION} AS builder ARG CGO_ENABLED=0 ARG BUILD_TAGS WORKDIR /go/src/github.com/hashicor...
scripts/docker/Dockerfile
1
https://github.com/hashicorp/vault/commit/9204c47af7b04eadff6677db70909663b55ed56b
[ 0.778939962387085, 0.20333607494831085, 0.00016621460963506252, 0.00016934242739807814, 0.32298043370246887 ]
{ "id": 4, "code_window": [ "# we're explicitly compiling for 'linux/amd64'\n", "ARG VERSION=1.13.10\n", "\n", "FROM golang:${VERSION} AS builder\n", "\n", "ARG CGO_ENABLED=0\n" ], "labels": [ "keep", "replace", "keep", "keep", "keep", "keep" ], "after_edit": ...
package pgx import ( "database/sql/driver" "math" "reflect" "time" "github.com/jackc/pgx/pgio" "github.com/jackc/pgx/pgtype" ) const ( copyData = 'd' copyFail = 'f' copyDone = 'c' varHeaderSize = 4 ) type FieldDescription struct { Name string Table pgtype.OID Attribu...
vendor/github.com/jackc/pgx/messages.go
0
https://github.com/hashicorp/vault/commit/9204c47af7b04eadff6677db70909663b55ed56b
[ 0.00028674936038441956, 0.00017546927847433835, 0.0001643908180994913, 0.00016934872837737203, 0.000023662329112994485 ]
{ "id": 4, "code_window": [ "# we're explicitly compiling for 'linux/amd64'\n", "ARG VERSION=1.13.10\n", "\n", "FROM golang:${VERSION} AS builder\n", "\n", "ARG CGO_ENABLED=0\n" ], "labels": [ "keep", "replace", "keep", "keep", "keep", "keep" ], "after_edit": ...
// +build !windows package metrics import ( "syscall" ) const ( // DefaultSignal is used with DefaultInmemSignal DefaultSignal = syscall.SIGUSR1 )
vendor/github.com/armon/go-metrics/const_unix.go
0
https://github.com/hashicorp/vault/commit/9204c47af7b04eadff6677db70909663b55ed56b
[ 0.00029081778484396636, 0.00026351091219112277, 0.00023620403953827918, 0.00026351091219112277, 0.000027306872652843595 ]
{ "id": 4, "code_window": [ "# we're explicitly compiling for 'linux/amd64'\n", "ARG VERSION=1.13.10\n", "\n", "FROM golang:${VERSION} AS builder\n", "\n", "ARG CGO_ENABLED=0\n" ], "labels": [ "keep", "replace", "keep", "keep", "keep", "keep" ], "after_edit": ...
import Controller from '@ember/controller'; export default Controller.extend({ queryParams: ['filter'], filter: '', });
ui/lib/open-api-explorer/addon/controllers/index.js
0
https://github.com/hashicorp/vault/commit/9204c47af7b04eadff6677db70909663b55ed56b
[ 0.00017240380111616105, 0.00017240380111616105, 0.00017240380111616105, 0.00017240380111616105, 0 ]
{ "id": 5, "code_window": [ "# architecture binaries. Since this binary is used in an alpine container,\n", "# we're explicitly compiling for 'linux/amd64'\n", "FROM debian:buster AS builder\n", "\n", "ARG VERSION=1.13.10\n", "ARG CGO_ENABLED=0\n", "ARG BUILD_TAGS\n", "ENV JOBS=2\n"...
# Multi-stage builder to avoid polluting users environment with wrong # architecture binaries. Since this binary is used in an alpine container, # we're explicitly compiling for 'linux/amd64' ARG VERSION=1.13.10 FROM golang:${VERSION} AS builder ARG CGO_ENABLED=0 ARG BUILD_TAGS WORKDIR /go/src/github.com/hashicor...
scripts/docker/Dockerfile
1
https://github.com/hashicorp/vault/commit/9204c47af7b04eadff6677db70909663b55ed56b
[ 0.9742634296417236, 0.2547973692417145, 0.00016386968491133302, 0.0002508019970264286, 0.40473830699920654 ]
{ "id": 5, "code_window": [ "# architecture binaries. Since this binary is used in an alpine container,\n", "# we're explicitly compiling for 'linux/amd64'\n", "FROM debian:buster AS builder\n", "\n", "ARG VERSION=1.13.10\n", "ARG CGO_ENABLED=0\n", "ARG BUILD_TAGS\n", "ENV JOBS=2\n"...
/* * * Copyright 2017 gRPC authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
vendor/google.golang.org/grpc/picker_wrapper.go
0
https://github.com/hashicorp/vault/commit/9204c47af7b04eadff6677db70909663b55ed56b
[ 0.00017404409300070256, 0.00016936264000833035, 0.00016293639782816172, 0.00016923622752074152, 0.0000024668672722327756 ]
{ "id": 5, "code_window": [ "# architecture binaries. Since this binary is used in an alpine container,\n", "# we're explicitly compiling for 'linux/amd64'\n", "FROM debian:buster AS builder\n", "\n", "ARG VERSION=1.13.10\n", "ARG CGO_ENABLED=0\n", "ARG BUILD_TAGS\n", "ENV JOBS=2\n"...
// +build go1.8 package ir import "go/types" var structTypesIdentical = types.IdenticalIgnoreTags
vendor/honnef.co/go/tools/ir/identical.go
0
https://github.com/hashicorp/vault/commit/9204c47af7b04eadff6677db70909663b55ed56b
[ 0.0006547889788635075, 0.0006547889788635075, 0.0006547889788635075, 0.0006547889788635075, 0 ]
{ "id": 5, "code_window": [ "# architecture binaries. Since this binary is used in an alpine container,\n", "# we're explicitly compiling for 'linux/amd64'\n", "FROM debian:buster AS builder\n", "\n", "ARG VERSION=1.13.10\n", "ARG CGO_ENABLED=0\n", "ARG BUILD_TAGS\n", "ENV JOBS=2\n"...
package reflectwalk //go:generate stringer -type=Location location.go type Location uint const ( None Location = iota Map MapKey MapValue Slice SliceElem Array ArrayElem Struct StructField WalkLoc )
vendor/github.com/mitchellh/reflectwalk/location.go
0
https://github.com/hashicorp/vault/commit/9204c47af7b04eadff6677db70909663b55ed56b
[ 0.0001712278462946415, 0.00016978662461042404, 0.00016834538837429136, 0.00016978662461042404, 0.0000014412289601750672 ]
{ "id": 0, "code_window": [ "\tttl := c.Int(\"ttl\")\n", "\n", "\tctx, cancel := contextWithTotalTimeout(c)\n", "\t_, err := ki.Set(ctx, key, \"\", &client.SetOptions{TTL: time.Duration(ttl) * time.Second, Dir: true, PrevExist: prevExist})\n", "\tcancel()\n", "\tif err != nil {\n", "\t\t...
// Copyright 2015 The etcd Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed t...
etcdctl/ctlv2/command/rm_command.go
1
https://github.com/etcd-io/etcd/commit/205f10aeb6d7a2869d4da16131cccb77ba5289e2
[ 0.1594787836074829, 0.023169727995991707, 0.00016525220416951925, 0.00017302151536569, 0.0556509755551815 ]
{ "id": 0, "code_window": [ "\tttl := c.Int(\"ttl\")\n", "\n", "\tctx, cancel := contextWithTotalTimeout(c)\n", "\t_, err := ki.Set(ctx, key, \"\", &client.SetOptions{TTL: time.Duration(ttl) * time.Second, Dir: true, PrevExist: prevExist})\n", "\tcancel()\n", "\tif err != nil {\n", "\t\t...
Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, ...
cmd/vendor/github.com/cockroachdb/cmux/LICENSE
0
https://github.com/etcd-io/etcd/commit/205f10aeb6d7a2869d4da16131cccb77ba5289e2
[ 0.00017922763072419912, 0.00017619652498979121, 0.00017028787988238037, 0.00017652736278250813, 0.0000017601003037270857 ]
{ "id": 0, "code_window": [ "\tttl := c.Int(\"ttl\")\n", "\n", "\tctx, cancel := contextWithTotalTimeout(c)\n", "\t_, err := ki.Set(ctx, key, \"\", &client.SetOptions{TTL: time.Duration(ttl) * time.Second, Dir: true, PrevExist: prevExist})\n", "\tcancel()\n", "\tif err != nil {\n", "\t\t...
package pflag import ( "fmt" "strconv" ) // -- float32 Value type float32Value float32 func newFloat32Value(val float32, p *float32) *float32Value { *p = val return (*float32Value)(p) } func (f *float32Value) Set(s string) error { v, err := strconv.ParseFloat(s, 32) *f = float32Value(v) return err } func (f...
cmd/vendor/github.com/spf13/pflag/float32.go
0
https://github.com/etcd-io/etcd/commit/205f10aeb6d7a2869d4da16131cccb77ba5289e2
[ 0.0009559377213008702, 0.00034015762503258884, 0.0001642186543904245, 0.00017697903967928141, 0.0002643519837874919 ]
{ "id": 0, "code_window": [ "\tttl := c.Int(\"ttl\")\n", "\n", "\tctx, cancel := contextWithTotalTimeout(c)\n", "\t_, err := ki.Set(ctx, key, \"\", &client.SetOptions{TTL: time.Duration(ttl) * time.Second, Dir: true, PrevExist: prevExist})\n", "\tcancel()\n", "\tif err != nil {\n", "\t\t...
// Copyright 2009 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // +build !gccgo #include "textflag.h" // // System call support for 386, NetBSD // // Just jump to package syscall's implementation for all these functions....
cmd/vendor/golang.org/x/sys/unix/asm_netbsd_386.s
0
https://github.com/etcd-io/etcd/commit/205f10aeb6d7a2869d4da16131cccb77ba5289e2
[ 0.00017933275375980884, 0.0001766548230079934, 0.00017482783005107194, 0.00017580388521309942, 0.000001935054797286284 ]
{ "id": 1, "code_window": [ "\tcancel()\n", "\tif err != nil {\n", "\t\thandleError(ExitServerError, err)\n", "\t}\n", "}" ], "labels": [ "keep", "keep", "keep", "add", "keep" ], "after_edit": [ "\tif c.GlobalString(\"output\") != \"simple\" {\n", "\t\tprintRe...
// Copyright 2015 The etcd Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed t...
etcdctl/ctlv2/command/update_dir_command.go
1
https://github.com/etcd-io/etcd/commit/205f10aeb6d7a2869d4da16131cccb77ba5289e2
[ 0.14485082030296326, 0.025103451684117317, 0.00016767624765634537, 0.00017758709145709872, 0.053582608699798584 ]
{ "id": 1, "code_window": [ "\tcancel()\n", "\tif err != nil {\n", "\t\thandleError(ExitServerError, err)\n", "\t}\n", "}" ], "labels": [ "keep", "keep", "keep", "add", "keep" ], "after_edit": [ "\tif c.GlobalString(\"output\") != \"simple\" {\n", "\t\tprintRe...
// Copyright 2015 The etcd Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed t...
pkg/transport/timeout_listener_test.go
0
https://github.com/etcd-io/etcd/commit/205f10aeb6d7a2869d4da16131cccb77ba5289e2
[ 0.0006218733033165336, 0.00023942551342770457, 0.00016776179836597294, 0.00017722186748869717, 0.00012786878505721688 ]
{ "id": 1, "code_window": [ "\tcancel()\n", "\tif err != nil {\n", "\t\thandleError(ExitServerError, err)\n", "\t}\n", "}" ], "labels": [ "keep", "keep", "keep", "add", "keep" ], "after_edit": [ "\tif c.GlobalString(\"output\") != \"simple\" {\n", "\t\tprintRe...
// Copyright 2015 The etcd Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed t...
pkg/fileutil/purge.go
0
https://github.com/etcd-io/etcd/commit/205f10aeb6d7a2869d4da16131cccb77ba5289e2
[ 0.0004153094778303057, 0.0002052770578302443, 0.00016556844639126211, 0.00017741411284077913, 0.00007966475823195651 ]
{ "id": 1, "code_window": [ "\tcancel()\n", "\tif err != nil {\n", "\t\thandleError(ExitServerError, err)\n", "\t}\n", "}" ], "labels": [ "keep", "keep", "keep", "add", "keep" ], "after_edit": [ "\tif c.GlobalString(\"output\") != \"simple\" {\n", "\t\tprintRe...
// Copyright 2016 The etcd Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed t...
tools/benchmark/cmd/timeseries_test.go
0
https://github.com/etcd-io/etcd/commit/205f10aeb6d7a2869d4da16131cccb77ba5289e2
[ 0.0001785976201063022, 0.00017589793424122036, 0.00016973898163996637, 0.00017762754578143358, 0.000003577966708689928 ]
{ "id": 2, "code_window": [ "\tresp, err := ki.Delete(ctx, key, &client.DeleteOptions{PrevIndex: uint64(prevIndex), PrevValue: prevValue, Dir: dir, Recursive: recursive})\n", "\tcancel()\n", "\tif err != nil {\n", "\t\thandleError(ExitServerError, err)\n", "\t}\n", "\n", "\tif !resp.Node...
// Copyright 2015 The etcd Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed t...
etcdctl/ctlv2/command/update_dir_command.go
1
https://github.com/etcd-io/etcd/commit/205f10aeb6d7a2869d4da16131cccb77ba5289e2
[ 0.003008207306265831, 0.0006645587855018675, 0.00016729217895772308, 0.00017737253801897168, 0.0010488874977454543 ]
{ "id": 2, "code_window": [ "\tresp, err := ki.Delete(ctx, key, &client.DeleteOptions{PrevIndex: uint64(prevIndex), PrevValue: prevValue, Dir: dir, Recursive: recursive})\n", "\tcancel()\n", "\tif err != nil {\n", "\t\thandleError(ExitServerError, err)\n", "\t}\n", "\n", "\tif !resp.Node...
// Extensions for Protocol Buffers to create more go like structures. // // Copyright (c) 2013, Vastech SA (PTY) LTD. All rights reserved. // http://github.com/gogo/protobuf/gogoproto // // Go support for Protocol Buffers - Google's data interchange format // // Copyright 2010 The Go Authors. All rights reserved. // h...
cmd/vendor/github.com/gogo/protobuf/proto/text.go
0
https://github.com/etcd-io/etcd/commit/205f10aeb6d7a2869d4da16131cccb77ba5289e2
[ 0.00017907950677908957, 0.00017231453966815025, 0.00016306291217915714, 0.00017304990615230054, 0.000004084311512997374 ]
{ "id": 2, "code_window": [ "\tresp, err := ki.Delete(ctx, key, &client.DeleteOptions{PrevIndex: uint64(prevIndex), PrevValue: prevValue, Dir: dir, Recursive: recursive})\n", "\tcancel()\n", "\tif err != nil {\n", "\t\thandleError(ExitServerError, err)\n", "\t}\n", "\n", "\tif !resp.Node...
// Copyright 2014 The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to...
cmd/vendor/github.com/prometheus/client_golang/prometheus/registry.go
0
https://github.com/etcd-io/etcd/commit/205f10aeb6d7a2869d4da16131cccb77ba5289e2
[ 0.003688797354698181, 0.00022186934074852616, 0.0001635136577533558, 0.00017413374735042453, 0.00040863422327674925 ]
{ "id": 2, "code_window": [ "\tresp, err := ki.Delete(ctx, key, &client.DeleteOptions{PrevIndex: uint64(prevIndex), PrevValue: prevValue, Dir: dir, Recursive: recursive})\n", "\tcancel()\n", "\tif err != nil {\n", "\t\thandleError(ExitServerError, err)\n", "\t}\n", "\n", "\tif !resp.Node...
// Copyright 2014 The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to...
cmd/vendor/github.com/prometheus/client_golang/prometheus/untyped.go
0
https://github.com/etcd-io/etcd/commit/205f10aeb6d7a2869d4da16131cccb77ba5289e2
[ 0.00017866847338154912, 0.0001707540504867211, 0.00016395282000303268, 0.00016979061183519661, 0.000004596174676407827 ]
{ "id": 3, "code_window": [ "\tif err != nil {\n", "\t\thandleError(ExitServerError, err)\n", "\t}\n", "\n", "\tif !resp.Node.Dir {\n", "\t\tprintResponseKey(resp, c.GlobalString(\"output\"))\n", "\t}\n", "}" ], "labels": [ "keep", "keep", "keep", "keep", "rep...
// Copyright 2015 The etcd Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed t...
etcdctl/ctlv2/command/rmdir_command.go
1
https://github.com/etcd-io/etcd/commit/205f10aeb6d7a2869d4da16131cccb77ba5289e2
[ 0.07921238988637924, 0.014291745610535145, 0.00017672272224444896, 0.00022121405345387757, 0.02910379134118557 ]
{ "id": 3, "code_window": [ "\tif err != nil {\n", "\t\thandleError(ExitServerError, err)\n", "\t}\n", "\n", "\tif !resp.Node.Dir {\n", "\t\tprintResponseKey(resp, c.GlobalString(\"output\"))\n", "\t}\n", "}" ], "labels": [ "keep", "keep", "keep", "keep", "rep...
rclone.conf bin etcd2-backup.tgz *~
contrib/systemd/etcd2-backup-coreos/.gitignore
0
https://github.com/etcd-io/etcd/commit/205f10aeb6d7a2869d4da16131cccb77ba5289e2
[ 0.0001730030489852652, 0.0001730030489852652, 0.0001730030489852652, 0.0001730030489852652, 0 ]
{ "id": 3, "code_window": [ "\tif err != nil {\n", "\t\thandleError(ExitServerError, err)\n", "\t}\n", "\n", "\tif !resp.Node.Dir {\n", "\t\tprintResponseKey(resp, c.GlobalString(\"output\"))\n", "\t}\n", "}" ], "labels": [ "keep", "keep", "keep", "keep", "rep...
// Copyright 2015 The etcd Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed t...
mvcc/key_index.go
0
https://github.com/etcd-io/etcd/commit/205f10aeb6d7a2869d4da16131cccb77ba5289e2
[ 0.00022136275947559625, 0.00017432717140763998, 0.0001672181679168716, 0.00017325291992165148, 0.000008745950253796764 ]
{ "id": 3, "code_window": [ "\tif err != nil {\n", "\t\thandleError(ExitServerError, err)\n", "\t}\n", "\n", "\tif !resp.Node.Dir {\n", "\t\tprintResponseKey(resp, c.GlobalString(\"output\"))\n", "\t}\n", "}" ], "labels": [ "keep", "keep", "keep", "keep", "rep...
// Copyright 2015 The etcd Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed t...
pkg/osutil/osutil.go
0
https://github.com/etcd-io/etcd/commit/205f10aeb6d7a2869d4da16131cccb77ba5289e2
[ 0.00017926248256117105, 0.00017260669847019017, 0.0001670396886765957, 0.00017483248666394502, 0.000004819466994376853 ]