text stringlengths 11 6.3k | embedding listlengths 768 768 |
|---|---|
func (Processor_State) EnumDescriptor() ([]byte, []int) {
return file_go_chromium_org_luci_cipd_api_cipd_v1_repo_proto_rawDescGZIP(), []int{27, 0}
} | [
-0.5244789719581604,
0.30327239632606506,
0.30540376901626587,
-1.1984647512435913,
-0.05338640511035919,
-0.3130229115486145,
0.48443910479545593,
1.2886940240859985,
0.12137296795845032,
0.6906765699386597,
0.14405928552150726,
0.5042684674263,
-0.21967168152332306,
0.8076755404472351,
... |
func (*PrefixRequest) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_cipd_api_cipd_v1_repo_proto_rawDescGZIP(), []int{0}
} | [
-0.12512972950935364,
0.37523743510246277,
0.18070384860038757,
-0.4578050673007965,
0.0194905623793602,
-0.5689130425453186,
0.04113904386758804,
0.8991510272026062,
0.14706632494926453,
0.09855486452579498,
0.37325501441955566,
0.7222458720207214,
-0.23201984167099,
1.0879677534103394,
... |
func (*PrefixMetadata) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_cipd_api_cipd_v1_repo_proto_rawDescGZIP(), []int{1}
} | [
0.11617333441972733,
0.4043908417224884,
0.12963919341564178,
-0.42848822474479675,
0.5673981308937073,
0.07462666928768158,
-0.23409287631511688,
0.09756974130868912,
-0.19528312981128693,
0.8707873821258545,
-0.4759737253189087,
0.8002439141273499,
-0.256247341632843,
0.16443313658237457... |
func (*InheritedPrefixMetadata) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_cipd_api_cipd_v1_repo_proto_rawDescGZIP(), []int{2}
} | [
-0.21099533140659332,
0.1956208050251007,
0.14496733248233795,
-0.1400434374809265,
0.6051247715950012,
0.4042656719684601,
-0.0552699975669384,
-0.7143575549125671,
0.08204536885023117,
0.47555258870124817,
-0.9894518852233887,
0.7677240967750549,
-0.6523494124412537,
0.6798250079154968,
... |
func (*RolesInPrefixResponse) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_cipd_api_cipd_v1_repo_proto_rawDescGZIP(), []int{3}
} | [
-0.5096087455749512,
-0.4338279068470001,
-0.43108931183815,
-1.8038467168807983,
0.01508500799536705,
-0.8739284873008728,
0.2911718189716339,
0.4554148018360138,
0.10672999918460846,
-0.27268311381340027,
-0.07832261919975281,
-0.1883406788110733,
-1.0403082370758057,
0.08261718600988388... |
func (*ListPrefixRequest) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_cipd_api_cipd_v1_repo_proto_rawDescGZIP(), []int{4}
} | [
-0.725081741809845,
-0.1663823127746582,
0.31588655710220337,
0.06889601051807404,
0.025001956149935722,
-0.8363046646118164,
-0.33867964148521423,
0.7565576434135437,
0.7386204600334167,
-0.04521671310067177,
-0.4895826578140259,
0.16870003938674927,
-0.24569422006607056,
1.09121429920196... |
func (*ListPrefixResponse) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_cipd_api_cipd_v1_repo_proto_rawDescGZIP(), []int{5}
} | [
-0.25732582807540894,
-0.5170124769210815,
-0.1210530549287796,
-0.37601903080940247,
0.3201065957546234,
-0.9390916228294373,
0.05211315304040909,
0.3536759912967682,
0.8926454186439514,
-0.3963838815689087,
-1.2036329507827759,
-0.5248647332191467,
-0.6331071257591248,
0.1160038337111473... |
func (*PackageRequest) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_cipd_api_cipd_v1_repo_proto_rawDescGZIP(), []int{6}
} | [
-0.9280409216880798,
0.6964478492736816,
0.29969629645347595,
-0.22232845425605774,
-0.01598765142261982,
-0.7652883529663086,
0.141137033700943,
0.8544767498970032,
-0.07742506265640259,
0.0897783488035202,
0.19563233852386475,
-0.15243679285049438,
-0.018196703866124153,
0.96830278635025... |
func (*Instance) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_cipd_api_cipd_v1_repo_proto_rawDescGZIP(), []int{7}
} | [
-0.9844207763671875,
0.3957761824131012,
0.3484874963760376,
-1.4230501651763916,
-0.025879565626382828,
0.5137302875518799,
0.4535997211933136,
1.4544059038162231,
-0.33575746417045593,
-0.11310307681560516,
-0.06997519731521606,
-0.26446646451950073,
-0.37949272990226746,
0.6984357833862... |
func (*RegisterInstanceResponse) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_cipd_api_cipd_v1_repo_proto_rawDescGZIP(), []int{8}
} | [
-0.7946462631225586,
0.48650380969047546,
-0.1747005730867386,
-0.9523910880088806,
0.8756990432739258,
-0.5899981260299683,
0.3016274869441986,
0.7146342992782593,
-0.17075172066688538,
-0.11842790991067886,
-1.000333547592163,
-0.02578895352780819,
-1.6776632070541382,
0.2795897126197815... |
func (*ListInstancesRequest) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_cipd_api_cipd_v1_repo_proto_rawDescGZIP(), []int{9}
} | [
-1.437511920928955,
0.26330846548080444,
0.22109630703926086,
-0.9816944599151611,
0.023229725658893585,
-0.4043084383010864,
-0.7278903126716614,
0.7066470384597778,
0.4630650579929352,
-0.6117938160896301,
-0.1745670586824417,
0.4691861569881439,
-0.511645495891571,
1.174956202507019,
... |
func (*ListInstancesResponse) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_cipd_api_cipd_v1_repo_proto_rawDescGZIP(), []int{10}
} | [
-0.7503563761711121,
-0.08253427594900131,
-0.35866138339042664,
-1.2140657901763916,
-0.08515668660402298,
-0.7763736844062805,
-0.3978096842765808,
0.2554164230823517,
0.4497990012168884,
-0.11754646897315979,
-0.8330649733543396,
-0.18402287364006042,
-0.6611365675926208,
0.397117763757... |
func (*SearchInstancesRequest) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_cipd_api_cipd_v1_repo_proto_rawDescGZIP(), []int{11}
} | [
-1.5746525526046753,
0.5394841432571411,
0.26509544253349304,
-0.9297898411750793,
0.04806514456868172,
-0.44250667095184326,
-0.6103585362434387,
0.2782489061355591,
-0.45862552523612976,
-0.5616158246994019,
-0.0882895365357399,
0.539871096611023,
-0.8252851366996765,
0.796938419342041,
... |
func (*SearchInstancesResponse) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_cipd_api_cipd_v1_repo_proto_rawDescGZIP(), []int{12}
} | [
-0.7587409019470215,
0.17727012932300568,
-0.22494389116764069,
-1.151043176651001,
0.025037864223122597,
-0.8500199913978577,
-0.27861288189888,
-0.1709582507610321,
-0.26775601506233215,
-0.1289823353290558,
-0.7526959776878357,
-0.10056917369365692,
-1.2234641313552856,
-0.0123121412470... |
func (*Ref) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_cipd_api_cipd_v1_repo_proto_rawDescGZIP(), []int{13}
} | [
-0.12050560116767883,
0.601303219795227,
0.2873336672782898,
-0.4539000391960144,
0.2430311143398285,
-0.052793752402067184,
0.5631564855575562,
0.6303606033325195,
-0.30493152141571045,
0.38258886337280273,
0.06376741826534271,
0.47690457105636597,
-0.39574727416038513,
0.9848800897598267... |
func (*DeleteRefRequest) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_cipd_api_cipd_v1_repo_proto_rawDescGZIP(), []int{14}
} | [
-0.22335748374462128,
0.7117506265640259,
0.6179845333099365,
-0.41946229338645935,
0.4013047516345978,
-0.987698495388031,
0.18744462728500366,
0.6121833324432373,
0.553251326084137,
-0.3063126802444458,
0.6008861064910889,
0.7553310990333557,
-0.46441811323165894,
1.5704798698425293,
0... |
func (*ListRefsRequest) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_cipd_api_cipd_v1_repo_proto_rawDescGZIP(), []int{15}
} | [
-1.1115700006484985,
0.25369709730148315,
0.2813737988471985,
-1.146013855934143,
0.6606176495552063,
-0.6976133584976196,
-0.390482634305954,
0.00659872917458415,
0.28600770235061646,
-1.0209650993347168,
0.11344890296459198,
0.8015766143798828,
-0.3779312074184418,
1.0868970155715942,
... |
func (*ListRefsResponse) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_cipd_api_cipd_v1_repo_proto_rawDescGZIP(), []int{16}
} | [
-0.18396210670471191,
0.14681154489517212,
-0.13534066081047058,
-1.400020956993103,
0.6519507765769958,
-1.0684200525283813,
0.01581634394824505,
-0.5526094436645508,
0.5411186218261719,
-0.891076385974884,
-0.542190670967102,
-0.1415744125843048,
-1.027037262916565,
-0.1166544258594513,
... |
func (*Tag) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_cipd_api_cipd_v1_repo_proto_rawDescGZIP(), []int{17}
} | [
-0.23295000195503235,
0.21654489636421204,
0.11457695811986923,
-0.4658598303794861,
0.7657739520072937,
0.2667435109615326,
0.03914278373122215,
1.0277692079544067,
-0.9289325475692749,
-0.16608057916164398,
-0.2731662094593048,
0.08042644709348679,
-0.2950342893600464,
0.8439778089523315... |
func (*AttachTagsRequest) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_cipd_api_cipd_v1_repo_proto_rawDescGZIP(), []int{18}
} | [
-0.18366694450378418,
0.6174816489219666,
0.5041192173957825,
-1.1931724548339844,
0.45502451062202454,
-0.839717447757721,
-0.011711394414305687,
-0.5119747519493103,
-0.3931846618652344,
-0.3468528985977173,
0.200254887342453,
0.15842363238334656,
-0.20253336429595947,
1.5820790529251099... |
func (*DetachTagsRequest) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_cipd_api_cipd_v1_repo_proto_rawDescGZIP(), []int{19}
} | [
0.10512548685073853,
0.94451904296875,
0.5554265975952148,
-0.8105795383453369,
0.3180549442768097,
-1.230947494506836,
0.07884422689676285,
0.012754334136843681,
-0.23507605493068695,
-0.13424238562583923,
-0.845715343952179,
-0.1543090045452118,
-0.4174335300922394,
1.244735598564148,
... |
func (*InstanceMetadata) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_cipd_api_cipd_v1_repo_proto_rawDescGZIP(), []int{20}
} | [
-0.18584030866622925,
0.057726841419935226,
0.07770240306854248,
-1.0939139127731323,
0.5368974804878235,
0.6518174409866333,
-0.02330029010772705,
0.47292932868003845,
-0.8434303402900696,
0.8709573149681091,
-0.6210649013519287,
0.9056898355484009,
-0.8312041163444519,
0.0347735621035099... |
func (*AttachMetadataRequest) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_cipd_api_cipd_v1_repo_proto_rawDescGZIP(), []int{21}
} | [
-0.591076135635376,
-0.09728237986564636,
0.6189282536506653,
-0.6108953356742859,
-0.22045908868312836,
1.0510841608047485,
0.5353015065193176,
0.3006225526332855,
-0.6314494013786316,
0.44683191180229187,
0.621033787727356,
0.7911776900291443,
0.07626732438802719,
0.7835066318511963,
0... |
func (*DetachMetadataRequest) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_cipd_api_cipd_v1_repo_proto_rawDescGZIP(), []int{22}
} | [
-0.26767775416374207,
0.3207150101661682,
0.4933153986930847,
-0.5264682769775391,
-0.6118031144142151,
0.5872188210487366,
0.719043493270874,
0.41020551323890686,
-0.441616415977478,
0.2509399950504303,
-0.14490848779678345,
0.517586886882782,
0.12883324921131134,
0.3116694390773773,
0.... |
func (*ListMetadataRequest) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_cipd_api_cipd_v1_repo_proto_rawDescGZIP(), []int{23}
} | [
-0.7064036130905151,
-0.1402910053730011,
0.13382704555988312,
-0.18210752308368683,
0.2569463551044464,
0.11668727546930313,
-0.2883392870426178,
0.9479654431343079,
-0.040866345167160034,
0.2554098665714264,
-0.5834583044052124,
0.4943442940711975,
0.10916725546121597,
0.6406421661376953... |
func (*ListMetadataResponse) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_cipd_api_cipd_v1_repo_proto_rawDescGZIP(), []int{24}
} | [
-0.3032725751399994,
-0.5419489741325378,
-0.3163803517818451,
-0.6647247672080994,
0.5526772141456604,
-0.4286465048789978,
0.02273101918399334,
0.3576982617378235,
0.22145874798297882,
0.46029892563819885,
-1.231629490852356,
-0.22449330985546112,
-0.608938992023468,
-0.04709142446517944... |
func (*ResolveVersionRequest) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_cipd_api_cipd_v1_repo_proto_rawDescGZIP(), []int{25}
} | [
-1.136441707611084,
0.08275335282087326,
0.3289896249771118,
0.39540064334869385,
0.7001634836196899,
-0.5865972638130188,
0.27750322222709656,
1.0990629196166992,
-0.5554880499839783,
0.22922712564468384,
-0.34559762477874756,
-0.7882000803947449,
-0.6348598003387451,
0.5600368976593018,
... |
func (*GetInstanceURLRequest) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_cipd_api_cipd_v1_repo_proto_rawDescGZIP(), []int{26}
} | [
-0.24668700993061066,
0.28797560930252075,
0.5183279514312744,
-0.6404998302459717,
0.15165717899799347,
0.2487652599811554,
-0.3858169913291931,
1.2429083585739136,
-0.4128773510456085,
-0.6537262201309204,
-0.3177032470703125,
1.201169729232788,
-0.9808849096298218,
0.05917415767908096,
... |
func (*Processor) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_cipd_api_cipd_v1_repo_proto_rawDescGZIP(), []int{27}
} | [
-0.975085437297821,
0.45753923058509827,
0.18155096471309662,
-1.0275429487228394,
-0.16662602126598358,
0.137320414185524,
0.24536912143230438,
1.252119541168213,
-0.053854554891586304,
0.12057027965784073,
-0.16726526618003845,
0.00446283258497715,
-0.67070472240448,
0.6091095805168152,
... |
func (*DescribeInstanceRequest) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_cipd_api_cipd_v1_repo_proto_rawDescGZIP(), []int{28}
} | [
-0.5544542074203491,
0.8915140628814697,
0.2971029579639435,
-0.9388857483863831,
-0.12968212366104126,
0.04060709476470947,
0.05405648052692413,
0.32052794098854065,
-0.11053295433521271,
0.36793678998947144,
-0.07307350635528564,
0.927459716796875,
-1.4825581312179565,
0.9230926632881165... |
func (*DescribeInstanceResponse) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_cipd_api_cipd_v1_repo_proto_rawDescGZIP(), []int{29}
} | [
-0.10197019577026367,
0.2985840141773224,
-0.08053205162286758,
-1.215819239616394,
0.14329184591770172,
-0.16380417346954346,
0.12554270029067993,
0.35774827003479004,
0.2883060574531555,
0.2975468635559082,
-0.7724375128746033,
-0.16362939774990082,
-1.8618321418762207,
-0.17455273866653... |
func (*DescribeClientRequest) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_cipd_api_cipd_v1_repo_proto_rawDescGZIP(), []int{30}
} | [
-0.11806593835353851,
0.6234334111213684,
0.3121001422405243,
-0.5282750129699707,
-0.010125022381544113,
-0.3958553075790405,
0.6151332259178162,
-0.0682232528924942,
-0.39859238266944885,
0.33016273379325867,
0.07132600992918015,
1.1575815677642822,
-0.6275174021720886,
1.219881534576416... |
func (*DescribeClientResponse) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_cipd_api_cipd_v1_repo_proto_rawDescGZIP(), []int{31}
} | [
0.17292065918445587,
0.33113953471183777,
-0.15793181955814362,
-0.8801431655883789,
0.22601045668125153,
-0.5523512959480286,
0.5327973961830139,
-0.10989385098218918,
0.09477579593658447,
0.20055700838565826,
-0.7043560147285461,
0.25315263867378235,
-1.4628241062164307,
0.01085207890719... |
func (*DescribeBootstrapBundleRequest) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_cipd_api_cipd_v1_repo_proto_rawDescGZIP(), []int{32}
} | [
-0.33639419078826904,
0.40903428196907043,
0.679199755191803,
0.03735441714525223,
-0.2142481505870819,
-0.49398836493492126,
0.6213840842247009,
0.43773353099823,
-1.159919023513794,
0.025929976254701614,
-0.4341672658920288,
0.7994588017463684,
-0.5314540863037109,
1.2036350965499878,
... |
func (*DescribeBootstrapBundleResponse) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_cipd_api_cipd_v1_repo_proto_rawDescGZIP(), []int{33}
} | [
0.2914409637451172,
0.24449686706066132,
0.09289512783288956,
0.029405517503619194,
-0.02379530295729637,
-0.7819480299949646,
0.6877337694168091,
0.044902198016643524,
-0.8170202970504761,
0.2965347468852997,
-0.9396173357963562,
-0.0040503437630832195,
-1.272958755493164,
0.6663615703582... |
func (*PrefixMetadata_ACL) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_cipd_api_cipd_v1_repo_proto_rawDescGZIP(), []int{1, 0}
} | [
0.3611827492713928,
0.09680604189634323,
0.23019419610500336,
-0.2331448197364807,
0.1948789805173874,
0.08584568649530411,
0.21913819015026093,
-0.12375183403491974,
-0.1654408872127533,
1.1252598762512207,
0.6294764280319214,
1.0695022344589233,
0.5433051586151123,
-0.15052880346775055,
... |
func (*RolesInPrefixResponse_RoleInPrefix) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_cipd_api_cipd_v1_repo_proto_rawDescGZIP(), []int{3, 0}
} | [
-0.636500895023346,
-0.7223355770111084,
-0.297924667596817,
-1.6694778203964233,
0.14786066114902496,
-0.6520139575004578,
-0.19983798265457153,
0.7316128611564636,
-0.2970559298992157,
-0.2777656018733978,
-0.3121788203716278,
-0.21194139122962952,
-1.1460121870040894,
-0.500968873500824... |
func (*DescribeBootstrapBundleResponse_BootstrapFile) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_cipd_api_cipd_v1_repo_proto_rawDescGZIP(), []int{33, 0}
} | [
0.980286717414856,
0.24083168804645538,
0.3895990252494812,
-0.10675951838493347,
0.06684659421443939,
-0.6392239332199097,
0.7331541776657104,
0.5868277549743652,
-1.2907248735427856,
-0.07907894253730774,
-0.6699118614196777,
-0.5318887829780579,
-0.7680886387825012,
0.2717103660106659,
... |
func StaticDir() (string, error) {
cwd, err := os.Getwd()
if err != nil {
return "", err
}
return path.Join(cwd, "web", StaticPrefix), nil
} | [
0.26229235529899597,
0.10624825954437256,
0.510994553565979,
0.39459556341171265,
-0.5975385904312134,
0.6218069195747375,
0.3558996021747589,
0.22315461933612823,
0.605341374874115,
-0.39725640416145325,
0.6149974465370178,
0.5849539041519165,
-0.10460039228200912,
1.6381185054779053,
0... |
func NewMeshController(clients k8s.Client, cfg MeshControllerConfig) (*Controller, error) {
ignored := k8s.NewIgnored()
for _, ns := range cfg.IgnoreNamespaces {
ignored.AddIgnoredNamespace(ns)
}
ignored.AddIgnoredService("kubernetes", metav1.NamespaceDefault)
ignored.AddIgnoredNamespace(metav1.NamespaceSystem... | [
0.6871166229248047,
-0.10163182765245438,
0.6379064321517944,
-0.06542734056711197,
-0.47271469235420227,
0.05920219421386719,
0.33337894082069397,
-0.5054879784584045,
0.5697214603424072,
0.4774271845817566,
-0.5063014626502991,
0.0731809213757515,
-0.47073742747306824,
0.8454431891441345... |
func (c *Controller) Run(stopCh <-chan struct{}) error {
var err error
// Handle a panic with logging and exiting.
defer utilruntime.HandleCrash()
c.log.Debug("Initializing Mesh controller")
// Start the informers.
c.startInformers(stopCh, 10*time.Second)
// Create the mesh services here to ensure that they e... | [
-0.4170829951763153,
-0.3315502107143402,
0.7422804832458496,
-0.25359123945236206,
1.0059598684310913,
-0.15290772914886475,
0.9847097992897034,
-0.0000060184333960933145,
-0.41942548751831055,
0.41092297434806824,
-0.3484562039375305,
-0.13905708491802216,
-0.630746603012085,
0.551990747... |
func (c *Controller) startInformers(stopCh <-chan struct{}, syncTimeout time.Duration) {
// Start the informers with a timeout.
ctx, cancel := context.WithTimeout(context.Background(), syncTimeout)
defer cancel()
c.log.Debug("Starting Informers")
c.kubernetesFactory.Start(stopCh)
for t, ok := range c.kubernetes... | [
-0.49958810210227966,
0.348029762506485,
0.4031097888946533,
0.37984931468963623,
0.49926435947418213,
-0.06141217052936554,
0.586952805519104,
0.39156320691108704,
-0.45004940032958984,
-0.3097917437553406,
-0.37214791774749756,
0.6038393974304199,
-0.2821763753890991,
0.6771243810653687,... |
func (c *Controller) deployConfiguration(config *dynamic.Configuration) error {
sel := labels.Everything()
r, err := labels.NewRequirement("component", selection.Equals, []string{"maesh-mesh"})
if err != nil {
return err
}
sel = sel.Add(*r)
podList, err := c.PodLister.Pods(c.meshNamespace).List(sel)
if err ... | [
-1.2186059951782227,
-0.754163384437561,
0.5830180644989014,
0.25074487924575806,
0.7260419726371765,
0.17213432490825653,
0.6629528999328613,
-0.10236449539661407,
0.14387843012809753,
1.1409764289855957,
-0.8782054781913757,
-0.616480827331543,
-0.5968902111053467,
1.0180360078811646,
... |
func (c *Controller) deployConfigurationToUnreadyNodes(config *dynamic.Configuration) error {
sel := labels.Everything()
r, err := labels.NewRequirement("component", selection.Equals, []string{"maesh-mesh"})
if err != nil {
return err
}
sel = sel.Add(*r)
podList, err := c.PodLister.Pods(c.meshNamespace).List... | [
-1.257607102394104,
-0.508135974407196,
0.671014666557312,
-0.6863346099853516,
0.9150537252426147,
-0.13585062325000763,
0.9249740242958069,
0.1478853076696396,
-0.14623042941093445,
1.2261013984680176,
-0.589627206325531,
0.07836834341287613,
-0.14300636947155,
0.6908051371574402,
-0.2... |
func isMeshPod(pod *corev1.Pod) bool {
return pod.Labels["component"] == "maesh-mesh"
} | [
-0.5486454367637634,
0.4087558388710022,
0.5455656051635742,
0.6787670254707336,
0.6284746527671814,
0.7611929178237915,
-0.6123974919319153,
-0.33517271280288696,
1.1350958347320557,
0.8136255145072937,
-0.5060938596725464,
0.05875285342335701,
0.4312468469142914,
0.8141151070594788,
-0... |
func getSSLInfo(url string) (data []string) {
tr := &http.Transport{
TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
}
client := &http.Client{Transport: tr}
seedUrl := url
resp, err := client.Get(seedUrl)
defer resp.Body.Close()
if err != nil {
fmt.Errorf(seedUrl, " 请求失败")
panic(err)
}
//fmt.... | [
-0.05240663141012192,
-0.3342426121234894,
0.9199665188789368,
0.0728711411356926,
-0.24490869045257568,
0.5315535068511963,
0.032680921256542206,
-0.4913721978664398,
-0.5927632451057434,
0.09517773240804672,
-0.8741714954376221,
0.34182146191596985,
-0.6221960186958313,
0.455767035484313... |
func U2(w http.ResponseWriter) (err error) {
return Fail(w, 404, map[string]string{"generic": "resource not found"})
} | [
-1.0595097541809082,
-1.536062240600586,
0.6614239811897278,
-0.57466059923172,
-0.5481274127960205,
-0.06726474314928055,
0.1398058980703354,
0.1397862285375595,
-0.7395969033241272,
-0.3374606966972351,
-0.05219241976737976,
0.2689386308193207,
1.3700298070907593,
0.739260196685791,
-0... |
func Gandalf(w http.ResponseWriter) (err error) {
return Fail(w, 401, map[string]string{"authorization": "access denied"})
} | [
0.24891886115074158,
-0.3949160873889923,
0.4773041903972626,
0.3428305387496948,
-0.9331645369529724,
0.14575479924678802,
0.046888694167137146,
-0.2276739478111267,
0.25256937742233276,
0.2844409644603729,
0.6131225228309631,
0.21395143866539001,
0.02576063945889473,
0.6166934967041016,
... |
func Zoidberg(w http.ResponseWriter) (err error) {
return Fail(w, 400, map[string]string{"generic": "bad specification for requested resource"})
} | [
-0.32678037881851196,
-0.6349440813064575,
0.4299676716327667,
-0.1593848317861557,
-0.29593056440353394,
0.42292913794517517,
-0.17784593999385834,
-0.6403468251228333,
-0.27689775824546814,
0.8263071179389954,
0.22148597240447998,
-0.42067819833755493,
-0.2525762617588043,
0.753706216812... |
func Kirk(w http.ResponseWriter) (err error) {
return Error(w, "there has been a server error")
} | [
0.7949705719947815,
-0.13597676157951355,
0.1078747883439064,
0.02145528793334961,
-0.21762190759181976,
-0.8399825096130371,
0.059336598962545395,
0.28331759572029114,
0.5506904125213623,
-0.012740283273160458,
0.4784708321094513,
0.580559492111206,
0.14998647570610046,
0.6288492679595947... |
func ConstructorTrie() Trie {
d := make(map[string]bool)
p := make(map[string]bool)
return Trie{d, p}
} | [
-0.43601635098457336,
0.05555129051208496,
0.17541305720806122,
-0.9511560797691345,
-0.30082273483276367,
0.343697190284729,
-0.0315789170563221,
0.7719975709915161,
-1.343586802482605,
0.17369681596755981,
0.3711317181587219,
0.12281361222267151,
0.22672118246555328,
0.04956306517124176,... |
func (this *Trie) Insert(word string) {
this.dict[word] = true
for i := 0; i < len(word); i++ {
this.dictPrefix[word[:i]] = true
}
} | [
-0.6147430539131165,
1.2398760318756104,
0.45951807498931885,
-1.5328835248947144,
-0.21723569929599762,
0.1736941784620285,
0.5068686604499817,
1.3164197206497192,
-0.5156683325767517,
0.7624654173851013,
-1.3087972402572632,
-0.18703602254390717,
-1.421600580215454,
0.5826987624168396,
... |
func (this *Trie) Search(word string) bool {
return this.dict[word]
} | [
-0.4499845802783966,
0.8499258160591125,
0.16979791224002838,
-0.4058312177658081,
-0.9467450976371765,
0.7742399573326111,
-0.10757514834403992,
0.0829877257347107,
-0.5495553612709045,
0.11836949735879898,
0.04830503463745117,
-0.4599860906600952,
-1.3484809398651123,
0.09888087958097458... |
func (this *Trie) StartsWith(prefix string) bool {
return this.dict[prefix] || this.dictPrefix[prefix]
} | [
-0.2895969748497009,
-0.21640631556510925,
0.38622626662254333,
-0.2630475163459778,
-0.6347320079803467,
-1.0274819135665894,
-1.2309330701828003,
0.3646952509880066,
0.4098794758319855,
0.11883213371038437,
-0.26065585017204285,
-0.06580499559640884,
0.19431139528751373,
0.56171482801437... |
func main() {
var number1 int
var number2 int
var remainder int
fmt.Println("Please enter your first number:")
fmt.Scan(&number1)
fmt.Println("Please enter another number:")
fmt.Scan(&number2)
if number1 > number2 {
remainder = number1 / number2
} else {
remainder = number2 / number1
}
fmt.Println("la... | [
-0.025768350809812546,
-0.48103630542755127,
0.5081424117088318,
0.8411924242973328,
-0.8251191973686218,
0.43245092034339905,
0.6446645855903625,
-0.5529640316963196,
0.23955915868282318,
-1.373429298400879,
-0.15114839375019073,
-0.1718875914812088,
-0.25626346468925476,
0.58290570974349... |
func NewUnmarshal(config *config.Config, metrics *metrics.Metrics) (u Unmarshal) {
u.Config = config
u.Metrics = metrics
return
} | [
0.002801470225676894,
0.16660837829113007,
0.3936275839805603,
0.3460243046283722,
-0.6865782141685486,
0.5812528133392334,
0.49263155460357666,
1.2142573595046997,
0.1126909926533699,
-0.5987066626548767,
0.31260043382644653,
0.8012530207633972,
0.17521247267723083,
-0.43852245807647705,
... |
func Default() (*DNSProvider, error) {
var opt Options
err := envconfig.Process("", &opt)
if err != nil {
return nil, err
}
return New(opt)
} | [
-0.12235569208860397,
1.3544813394546509,
0.048316288739442825,
0.10625161975622177,
0.4290057420730591,
0.29058900475502014,
-0.6701871752738953,
-0.39342498779296875,
0.15906153619289398,
0.48845580220222473,
-0.6701520681381226,
0.7944375276565552,
-0.5999708771705627,
-0.10082927346229... |
func New(opt Options) (*DNSProvider, error) {
if opt.Email == "" || opt.APIKey == "" {
return nil, errors.New("CloudFlare credentials missing")
}
api, err := cf.New(opt.APIKey, opt.Email, cf.HTTPClient(&http.Client{Timeout: time.Second * 10}))
if err != nil {
return nil, err
}
return &DNSProvider{api: api}, ... | [
-0.0662492886185646,
1.3384501934051514,
0.17393021285533905,
-0.2687463164329529,
-0.526974618434906,
-0.09197026491165161,
-0.3045394718647003,
-0.40032240748405457,
-0.3358830213546753,
0.5218552350997925,
-0.5623553395271301,
0.19521039724349976,
-0.30352112650871277,
0.30292809009552,... |
func (c *DNSProvider) Timeout() (timeout, interval time.Duration) {
return 120 * time.Second, 2 * time.Second
} | [
-0.5787895917892456,
1.1980435848236084,
0.29726701974868774,
-0.19550026953220367,
-0.3799348771572113,
0.3022046983242035,
-0.17269408702850342,
-0.17927205562591553,
0.8601037859916687,
0.801372230052948,
-1.100101351737976,
1.2402311563491821,
0.5165204405784607,
0.08075277507305145,
... |
func getIDFromKeyARN(arn string) string {
if ss := strings.Split(arn, "/"); len(ss) > 0 {
arn = ss[len(ss)-1]
}
return arn
} | [
-0.26446107029914856,
-0.8801814913749695,
0.5493859052658081,
0.8036839962005615,
0.026229042559862137,
0.1455271989107132,
0.09268758445978165,
0.0294601209461689,
0.4598578214645386,
-0.0545918345451355,
-0.02519366890192032,
0.4036703407764435,
-0.7038706541061401,
-0.30879899859428406... |
func Create(filePath string, level string) (*zap.Logger, error) {
var zapLevel zapcore.Level
err := zapLevel.UnmarshalText([]byte(level))
if err != nil {
return nil, err
}
loggerConfig := zap.NewProductionConfig()
loggerConfig.Level = zap.NewAtomicLevelAt(zapLevel)
loggerConfig.OutputPaths = []string{filePath... | [
0.13845813274383545,
-0.8935989737510681,
0.38781920075416565,
-0.07332422584295273,
-0.6961889863014221,
0.3992226719856262,
-0.43049079179763794,
-0.045383814722299576,
-1.1993647813796997,
0.4627196192741394,
-0.07310521602630615,
-0.32389920949935913,
-0.6952688694000244,
0.60155099630... |
func (m MacAddrTableEntry) String() string {
jm, _ := json.Marshal(m)
return string(jm)
} | [
0.6958391666412354,
-0.9254817962646484,
-0.0047624013386666775,
-0.8327978253364563,
-0.61493980884552,
0.5329461097717285,
-0.20112840831279755,
-1.009238839149475,
-0.1564837396144867,
0.4018920958042145,
0.5231606364250183,
0.5941964387893677,
0.13912644982337952,
0.2794605493545532,
... |
func (m MacAddrTableEntries) String() string {
jm, _ := json.Marshal(m)
return string(jm)
} | [
0.6804441809654236,
-0.7923025488853455,
-0.04600733518600464,
-0.7669429183006287,
-0.7384975552558899,
0.47506386041641235,
0.05975496768951416,
-0.8652725219726562,
-0.420650839805603,
0.31875309348106384,
0.39912673830986023,
0.38510507345199585,
0.10680452734231949,
0.707996666431427,... |
func (m *MacAddrTableEntry) Validate(tx *pop.Connection) (*validate.Errors, error) {
return validate.NewErrors(), nil
} | [
0.6629681587219238,
0.08038429170846939,
0.18743237853050232,
0.16610130667686462,
-0.04083476588129997,
0.0018253421876579523,
-0.3472796082496643,
-0.49525201320648193,
-0.8293763995170593,
0.5690953135490417,
0.8148148655891418,
-0.17172780632972717,
-0.5928945541381836,
0.9307097792625... |
func (m *MacAddrTableEntry) ValidateCreate(tx *pop.Connection) (*validate.Errors, error) {
return validate.NewErrors(), nil
} | [
0.44478753209114075,
0.26307210326194763,
0.349376380443573,
0.5706786513328552,
0.2643217146396637,
0.29095184803009033,
-0.21916568279266357,
-0.8312548995018005,
-1.467714786529541,
0.338015079498291,
0.6227163672447205,
-0.6645117998123169,
-0.4597008526325226,
1.031361699104309,
0.0... |
func (m *MacAddrTableEntry) ValidateUpdate(tx *pop.Connection) (*validate.Errors, error) {
return validate.NewErrors(), nil
} | [
0.18599440157413483,
-0.708537757396698,
0.34962567687034607,
0.42545706033706665,
-0.439119428396225,
0.0656948909163475,
-0.3715622127056122,
-0.31531375646591187,
-0.23772218823432922,
0.5636060237884521,
0.8502592444419861,
-0.4402220547199249,
-0.8073276281356812,
0.6240226626396179,
... |
func testPackages() {
arrayOfNumbers := []int{2 ,6, 9, 8, 20, 15, 3, 5, 6, 9}
sort.Ints(arrayOfNumbers)
min := arrayOfNumbers[0]
max := arrayOfNumbers[len(arrayOfNumbers)-1]
fmt.Println("\nBuilt in functions:")
fmt.Println("Min = ", min)
fmt.Println("Max = ", max)
fmt.Print(arrayOfNumbers)
} | [
-0.1703919619321823,
-0.6677944660186768,
0.7776384949684143,
0.05239463970065117,
0.2026747167110443,
0.04189357906579971,
0.19679662585258484,
-0.43716514110565186,
0.7283205389976501,
-0.7724642157554626,
-0.5297476053237915,
1.061841607093811,
-0.23681573569774628,
0.2547845244407654,
... |
func (t *Timer) Stop() bool {
stopped := false
for b := t.getBucket(); b != nil; b = t.getBucket() {
// If b.Remove is called just after the timing wheel's goroutine has:
// 1. removed t from b (through b.Flush -> b.remove)
// 2. moved t from b to another bucket ab (through b.Flush -> b.remove and ab.Ad... | [
-0.6319960951805115,
0.35167789459228516,
0.6185591220855713,
-0.29597973823547363,
-0.058166131377220154,
-0.2289779931306839,
0.15056253969669342,
-0.0782647505402565,
-0.9647586941719055,
0.7756941318511963,
-1.3110522031784058,
-1.05231773853302,
-0.1043328121304512,
0.3798109889030456... |
func templateForBlackBoxExporterDeployment(blackBoxImage string) appsv1.Deployment {
labels := blackbox.GenerateBlackBoxLables()
labelSelectors := metav1.LabelSelector{
MatchLabels: labels}
// hardcode the replicasize for no
//replicas := m.Spec.Size
var replicas int32 = 1
dep := appsv1.Deployment{
ObjectMet... | [
0.0275736041367054,
-0.4550229012966156,
0.5506190657615662,
-0.7330330014228821,
-0.6765027046203613,
-0.4956818222999573,
0.01965957321226597,
0.5139470100402832,
0.607467770576477,
1.0569292306900024,
0.08247312158346176,
-0.006983134895563126,
0.34837472438812256,
0.1064220666885376,
... |
func templateForBlackBoxExporterService() corev1.Service {
labels := blackbox.GenerateBlackBoxLables()
svc := corev1.Service{
ObjectMeta: metav1.ObjectMeta{
Name: blackbox.BlackBoxName,
Namespace: blackbox.BlackBoxNamespace,
Labels: labels,
},
Spec: corev1.ServiceSpec{
Selector: labels,
... | [
-0.11061656475067139,
-0.6634907126426697,
0.3280169665813446,
-0.7214260697364807,
-0.4342527389526367,
-0.5246504545211792,
-0.06315333396196365,
-0.35787689685821533,
0.22445951402187347,
0.568571925163269,
-0.16101524233818054,
0.43272772431373596,
-0.39444202184677124,
-0.124125324189... |
func (r *BaseRouter) RegisterService(service Service) error {
log.Info("RegisterService", "name", service.Name())
r.apis = append(r.apis, service.APIs()...)
name := service.Name()
r.services[name] = service
log.Info("RegisterService: done", "name", service.Name())
return nil
} | [
-0.8298127055168152,
0.037303727120161057,
0.4354833662509918,
-0.2947855293750763,
0.7294570803642273,
-0.06345140188932419,
-0.5875470042228699,
-0.494544118642807,
0.3470821678638458,
-0.4032610356807709,
-1.272637963294983,
0.09275645017623901,
-0.8601611256599426,
0.9188365936279297,
... |
func mergeSort(slice []int) []int {
if len(slice) == 1 {
return slice
}
slice = merge(mergeSort(slice[:len(slice)/2]), mergeSort(slice[len(slice)/2:]))
return slice
} | [
-0.4427585005760193,
0.893892228603363,
0.49235132336616516,
0.0940362885594368,
-0.43270018696784973,
-0.06470008194446564,
-0.29386162757873535,
-0.5052371025085449,
0.9959966540336609,
-0.3290121555328369,
-0.6599473357200623,
0.6174774169921875,
-1.2864866256713867,
0.579927921295166,
... |
func merge(slice1, slice2 []int) []int {
slice := make([]int, 0, len(slice1)+len(slice2))
var counter1, counter2 int
for counter1 != len(slice1) && counter2 != len(slice2) {
if slice1[counter1] < slice2[counter2] {
slice = append(slice, slice1[counter1])
counter1++
} else {
slice = append(slice, slice... | [
-0.24580296874046326,
-0.060639671981334686,
1.2162047624588013,
0.10999780893325806,
-0.2783692479133606,
0.062474530190229416,
-0.5968097448348999,
-0.5117003321647644,
0.00003364638178027235,
-0.6228749752044678,
-0.5365715026855469,
0.8245338797569275,
-0.6729038953781128,
0.2531083524... |
func inputSlice(length int) []int {
//initializing the input slice with length capacity
slice := make([]int, 0, length)
//taking inputs
var val int
for i := 0; i < length; i++ {
fmt.Scanf("%d", &val)
slice = append(slice, val)
}
return slice
} | [
-1.188976764678955,
-0.12089918553829193,
0.6583796739578247,
0.24342340230941772,
-0.5556439757347107,
-0.01340541709214449,
-0.04630342125892639,
-0.0592687614262104,
-0.23529461026191711,
-0.30470141768455505,
-0.26839181780815125,
0.1559271514415741,
-0.596979558467865,
0.4544107317924... |
func (p *Packet) Bytes(length int) []byte {
if length < 1 {
return []byte{} // Ask for nothing... you get nothing
}
newIdx := p.idx + length
if p.idx >= p.length || newIdx > p.length {
p.Err = ErrReadPastEndData
return nil
}
if newIdx > len(p.buf) { // Just in case p.length is bad
newIdx = len(p.buf) - 1
... | [
-0.6861444115638733,
0.15116725862026215,
0.5231808423995972,
-0.5114458203315735,
-0.5400188565254211,
0.043756965547800064,
-0.9462389349937439,
-0.6279494166374207,
1.0159432888031006,
-1.2591801881790161,
-0.34173524379730225,
1.0182379484176636,
-1.0195608139038086,
-0.712574124336242... |
func (f *FileLoader) GetBytes() ([]byte, error) {
return ioutil.ReadFile(f.Path)
} | [
0.6122607588768005,
0.6202914118766785,
0.6050717234611511,
-0.4879111647605896,
0.816430389881134,
-0.14041323959827423,
-0.22481375932693481,
-0.3824666440486908,
-0.884048342704773,
-0.8159711956977844,
0.14192737638950348,
0.247842475771904,
0.14197473227977753,
0.7642341256141663,
0... |
func (b *BytesLoader) GetBytes() ([]byte, error) {
return b.Data, nil
} | [
0.3955203890800476,
0.7440760731697083,
0.33510133624076843,
-0.30757203698158264,
0.6283668279647827,
-0.16525180637836456,
-0.6085823178291321,
-0.5223353505134583,
0.13612471520900726,
-0.9825692772865295,
-0.7667163014411926,
0.7562533020973206,
-1.1353340148925781,
1.505342960357666,
... |
func GetPrivateKey(loader KeyLoader) (*rsa.PrivateKey, error) {
if loader == nil {
return nil, errors.New("no loader")
}
data, err := loader.GetBytes()
if err != nil {
return nil, err
}
privPem, _ := pem.Decode(data)
if privPem.Type != "RSA PRIVATE KEY" {
return nil, errors.New("incorrect pem type: " + pr... | [
-0.35146641731262207,
-0.06476373225450516,
0.8745449185371399,
0.9079859852790833,
0.09470334649085999,
-0.557971179485321,
-0.15159937739372253,
-0.856535792350769,
0.30032509565353394,
0.31002703309059143,
0.036899201571941376,
0.3462105393409729,
-1.0543467998504639,
1.0247973203659058... |
func GetPublicKey(loader KeyLoader) (*rsa.PublicKey, error) {
if loader == nil {
return nil, errors.New("no loader")
}
data, err := loader.GetBytes()
if err != nil {
return nil, err
}
publicPem, _ := pem.Decode(data)
if publicPem.Type != "RSA PUBLIC KEY" {
return nil, errors.New("incorrect pem type: " + p... | [
0.26377391815185547,
-0.18313133716583252,
0.6845647096633911,
0.7907467484474182,
-0.21500834822654724,
-0.19010254740715027,
-0.0765240341424942,
-0.015210728161036968,
-0.4810945391654968,
0.5888695120811462,
-0.037231285125017166,
0.11649208515882492,
-0.5269414186477661,
1.23812258243... |
func (config *Config) LoadEncrypt() (Encrypt, error) {
var err error
if config.Logger == nil {
config.Logger = logging.DefaultLogger()
}
logging.Debug(config.Logger).Log(logging.MessageKey(), "new encrypter", "config", config)
switch config.Type {
case None:
return DefaultCipherEncrypter(), nil
case Box:
... | [
-0.08428078144788742,
-0.07773137837648392,
0.7475070357322693,
0.050213903188705444,
0.1826581507921219,
-0.3621397018432617,
-0.4450794458389282,
-0.9699634909629822,
-0.408088743686676,
0.8464157581329346,
-0.4589219093322754,
-0.015307391062378883,
-0.6346119046211243,
0.96566832065582... |
func (config *Config) LoadDecrypt() (Decrypt, error) {
var err error
if config.Logger == nil {
config.Logger = logging.DefaultLogger()
}
logging.Debug(config.Logger).Log(logging.MessageKey(), "new decrypter", "config", config)
switch config.Type {
case None:
return DefaultCipherDecrypter(), nil
case Box:
... | [
-0.07992561906576157,
-0.003469900693744421,
0.8630750775337219,
-0.11537346243858337,
-0.14376065135002136,
-0.4057534337043762,
-0.48885834217071533,
-0.7211996912956238,
-0.36281830072402954,
0.5742436051368713,
-0.13077065348625183,
-0.1759597361087799,
-0.5340496301651001,
0.901757359... |
func New(w io.Writer, template string) (*Logger, error) {
formatters, isTimeRequired, err := compileFormat(template)
if err != nil {
return nil, err
}
// Create a dummy event to see how long the log line is with the provided
// template.
buf := make([]byte, 0, 64)
var e event
for _, formatter := range formatt... | [
0.3186035752296448,
-0.8688272833824158,
0.681215226650238,
-0.27378207445144653,
-0.7795528173446655,
-0.8882651925086975,
-0.3168398439884186,
-0.24186287820339203,
-0.8314231634140015,
-0.6180784106254578,
-0.3582300543785095,
-0.22202733159065247,
0.24704957008361816,
1.346068859100341... |
func NewBranch(parent *Logger) *Logger {
return &Logger{parent: parent}
} | [
1.0303857326507568,
-0.5534570217132568,
0.5470080971717834,
0.23833563923835754,
-1.199268102645874,
0.0006865262985229492,
-0.4112864136695862,
-0.37840330600738525,
-0.01178727112710476,
-0.6983621716499329,
0.011846499517560005,
1.10000741481781,
-0.5021066665649414,
1.1337168216705322... |
func NewBranchWithPrefix(parent *Logger, prefix string) *Logger {
return &Logger{parent: parent, prefix: prefix}
} | [
0.6249979734420776,
-0.763235330581665,
0.5203896760940552,
0.0010413660202175379,
-1.0596518516540527,
-0.5389782786369324,
-1.1317533254623413,
-0.4995582401752472,
0.30158236622810364,
-0.721843421459198,
0.13730581104755402,
0.8518832921981812,
-0.24079948663711548,
0.7741168141365051,... |
func NewTracer(parent *Logger, prefix string) *Logger {
return &Logger{parent: parent, prefix: prefix, tracer: true}
} | [
0.8869354724884033,
-0.16665531694889069,
0.5414923429489136,
-0.638648271560669,
-1.0953179597854614,
0.05376876890659332,
-1.015228033065796,
0.12362013757228851,
-0.05713379383087158,
-0.5653395652770996,
0.28435325622558594,
0.35050320625305176,
-0.02328582853078842,
0.9110002517700195... |
func (b *Logger) SetLevel(level Level) *Logger {
atomic.StoreUint32((*uint32)(&b.level), uint32(level))
return b
} | [
0.06689827144145966,
0.9040600061416626,
0.5289118885993958,
-0.2087022215127945,
-0.02144494280219078,
0.5830745100975037,
0.5548226237297058,
-0.1953912079334259,
0.21138903498649597,
-0.8493411540985107,
-1.417803168296814,
0.37677744030952454,
-1.452109456062317,
1.0637158155441284,
... |
func (b *Logger) SetDebug() *Logger {
atomic.StoreUint32((*uint32)(&b.level), uint32(Debug))
return b
} | [
0.047648247331380844,
0.29810401797294617,
0.48120197653770447,
-0.14379368722438812,
0.4730602204799652,
0.1956336945295334,
-0.01986677199602127,
-0.2127324938774109,
-0.3030342161655426,
-0.6792813539505005,
-0.584490954875946,
-0.012688519433140755,
-0.9760388135910034,
1.3027328252792... |
func (b *Logger) Debug(format string, args ...interface{}) error {
if Level(atomic.LoadUint32((*uint32)(&b.level))) > Debug {
return nil
}
var prefix []string
if b.prefix != "" {
prefix = []string{b.prefix}
}
return b.parent.log(&event{format: format, args: args, prefix: prefix, tracer: b.tracer, level: Debug... | [
0.9943377375602722,
-0.023087158799171448,
0.7862415313720703,
-0.3532019257545471,
0.24785630404949188,
-0.31010717153549194,
-0.1918579488992691,
-0.08009439706802368,
-0.0529291033744812,
-0.54884934425354,
0.7875735759735107,
0.25771138072013855,
0.2100922167301178,
0.673992395401001,
... |
func (b *Logger) Verbose(format string, args ...interface{}) error {
if Level(atomic.LoadUint32((*uint32)(&b.level))) > Verbose {
return nil
}
var prefix []string
if b.prefix != "" {
prefix = []string{b.prefix}
}
return b.parent.log(&event{format: format, args: args, prefix: prefix, tracer: b.tracer, level: V... | [
1.0120937824249268,
0.16224826872348785,
0.722507655620575,
-0.04065611958503723,
0.4103359878063202,
-0.9464629292488098,
-0.4945594370365143,
-0.6787971258163452,
-0.3712920844554901,
-0.007534978445619345,
0.6345347762107849,
0.6618934273719788,
-0.3296113908290863,
0.49256977438926697,... |
func (b *Logger) Info(format string, args ...interface{}) error {
if Level(atomic.LoadUint32((*uint32)(&b.level))) > Info {
return nil
}
var prefix []string
if b.prefix != "" {
prefix = []string{b.prefix}
}
return b.parent.log(&event{format: format, args: args, prefix: prefix, tracer: b.tracer, level: Info})
... | [
0.8973881602287292,
-0.30955415964126587,
0.73263019323349,
-0.10100752860307693,
-0.04713381081819534,
-0.579567551612854,
-0.09368134289979935,
-0.4778667986392975,
-0.8762320876121521,
-0.12975509464740753,
0.4908807873725891,
0.23984715342521667,
0.5092602968215942,
0.7098400592803955,... |
func (b *Logger) Warning(format string, args ...interface{}) error {
if Level(atomic.LoadUint32((*uint32)(&b.level))) > Warning {
return nil
}
var prefix []string
if b.prefix != "" {
prefix = []string{b.prefix}
}
return b.parent.log(&event{format: format, args: args, prefix: prefix, tracer: b.tracer, level: W... | [
0.9625459909439087,
-0.06159782409667969,
0.7644668817520142,
0.13234543800354004,
-0.2616685628890991,
-0.6718224883079529,
-0.664078950881958,
-0.5243204832077026,
0.025913523510098457,
0.09645913541316986,
0.7594438791275024,
0.1685085892677307,
0.5143406391143799,
0.28329476714134216,
... |
func compileFormat(format string) ([]func(*event, *[]byte), bool, error) {
// build slice of emitter functions, each will emit the requested
// information
var emitters []func(*event, *[]byte)
// Implemented as a state machine that alternates between 2 states: either
// capturing runes for the next constant buffe... | [
-0.08752376586198807,
-0.9462569355964661,
0.9027104377746582,
0.21217012405395508,
-0.3112123906612396,
-0.7563811540603638,
-0.17412950098514557,
-0.25306177139282227,
-0.21709604561328888,
-0.07904407382011414,
-0.32592257857322693,
0.30191129446029663,
-0.1723342388868332,
0.6527432799... |
func Item(typ lex.ItemType, val string) lex.Item {
return lex.Item{
Type: typ,
Value: val,
}
} | [
0.10297256708145142,
-0.1289738267660141,
0.04561356082558632,
0.11932756006717682,
-0.934464156627655,
1.1571980714797974,
-1.06411874294281,
0.16759566962718964,
0.17623943090438843,
-0.3186003863811493,
0.3028109073638916,
0.8418029546737671,
0.17104190587997437,
-1.1555393934249878,
... |
func BeginCalendar() lex.Item {
return Item(lex.CalendarBegin, "BEGIN:VCALENDAR")
} | [
0.6892185807228088,
-0.4495152533054352,
0.45196714997291565,
0.48185867071151733,
-1.5709832906723022,
-0.11491812020540237,
-0.4508969783782959,
-0.3761442005634308,
0.8654220700263977,
-0.28809013962745667,
0.5097786784172058,
0.3308713734149933,
-0.3673429787158966,
-0.1437570005655288... |
func EndCalendar() lex.Item {
return Item(lex.CalendarEnd, "END:VCALENDAR")
} | [
0.06174451857805252,
-0.08456804603338242,
0.3835431635379791,
0.08883661031723022,
-1.0680294036865234,
0.14027759432792664,
-1.109089970588684,
0.2972416579723358,
0.27123600244522095,
0.10894770175218582,
0.06502925604581833,
0.10836946964263916,
-0.980451226234436,
-0.2812115550041199,... |
func BeginEvent() lex.Item {
return Item(lex.EventBegin, "BEGIN:VEVENT")
} | [
1.403967022895813,
0.037471868097782135,
0.4324570596218109,
0.434541791677475,
-0.8813350796699524,
-0.12157631665468216,
-0.3295682370662689,
0.21753790974617004,
0.7815504670143127,
0.06652076542377472,
0.1762545257806778,
0.653542697429657,
0.13183118402957916,
-0.46404188871383667,
... |
func EndEvent() lex.Item {
return Item(lex.EventEnd, "END:VEVENT")
} | [
1.109866738319397,
0.2611948847770691,
0.29243049025535583,
0.07448027282953262,
-0.12463761866092682,
0.11530806124210358,
-0.9778493046760559,
0.9544906616210938,
0.19861850142478943,
0.36720311641693115,
-0.1260671764612198,
0.3927461802959442,
0.07437484711408615,
-0.5455294251441956,
... |
func BeginAlarm() lex.Item {
return Item(lex.AlarmBegin, "BEGIN:VALARM")
} | [
1.1089024543762207,
-0.09490808844566345,
0.4377441704273224,
0.811581552028656,
-0.910740077495575,
0.18930013477802277,
-0.9484467506408691,
-0.08070503175258636,
0.21982845664024353,
-0.26312294602394104,
0.2604474425315857,
0.6477288007736206,
0.03736752271652222,
0.05219818279147148,
... |
func EndAlarm() lex.Item {
return Item(lex.AlarmEnd, "END:VALARM")
} | [
0.6146411895751953,
0.15404951572418213,
0.3470355272293091,
0.5289665460586548,
-0.2943747937679291,
0.3386388421058655,
-1.6271454095840454,
0.434216171503067,
-0.368364155292511,
0.12380293011665344,
0.0980839803814888,
0.2380712777376175,
-0.4348425269126892,
0.05756649002432823,
0.1... |
func Property(name, val string, params parse.Parameters) parse.Property {
if params == nil {
params = make(parse.Parameters)
}
return parse.Property{
Name: name,
Params: params,
Value: val,
}
} | [
0.6760661602020264,
-1.00798499584198,
0.4238583445549011,
0.3686943054199219,
0.05433952435851097,
-0.0602278858423233,
-0.6657270789146423,
0.2899791896343231,
0.19884046912193298,
-0.29173967242240906,
0.4636857211589813,
-0.2091887891292572,
-0.6083502769470215,
0.15968987345695496,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.