text
stringlengths
11
6.3k
embedding
listlengths
768
768
func (su *SkillUpdate) RemoveJobIDs(ids ...int) *SkillUpdate { su.mutation.RemoveJobIDs(ids...) return su }
[ -1.147686243057251, 0.09105491638183594, 0.22685888409614563, 0.8433926701545715, -1.2492141723632812, -0.23094089329242706, 0.0688028484582901, 0.5100902318954468, -0.43826034665107727, 0.057408660650253296, -0.5453149676322937, -0.3535449206829071, -0.8564162850379944, -0.167714849114418...
func (su *SkillUpdate) RemoveJobs(j ...*Job) *SkillUpdate { ids := make([]int, len(j)) for i := range j { ids[i] = j[i].ID } return su.RemoveJobIDs(ids...) }
[ -0.9056219458580017, 0.12222102284431458, 0.1549767404794693, 0.7525201439857483, -0.786012589931488, -0.33767539262771606, 0.010322216898202896, -0.28066059947013855, -0.13704872131347656, -0.07895473390817642, -0.04392566904425621, -0.7735604047775269, -1.2652050256729126, -0.10199765861...
func (su *SkillUpdate) Save(ctx context.Context) (int, error) { var ( err error affected int ) if len(su.hooks) == 0 { if err = su.check(); err != nil { return 0, err } affected, err = su.sqlSave(ctx) } else { var mut Mutator = MutateFunc(func(ctx context.Context, m Mutation) (Value, error) { ...
[ -0.5836435556411743, -0.012720807455480099, 0.8902058601379395, -0.012662864290177822, 0.12337670475244522, -0.8677937984466553, 0.8139461278915405, -0.7130095958709717, -0.4948882758617401, 0.536122739315033, -0.5106759667396545, -0.0295124389231205, -0.24547995626926422, 0.35312345623970...
func (su *SkillUpdate) SaveX(ctx context.Context) int { affected, err := su.Save(ctx) if err != nil { panic(err) } return affected }
[ -0.5865726470947266, 0.8762224316596985, 0.6524896621704102, 0.6332834362983704, -0.6306765675544739, 0.5654501914978027, -0.3912343382835388, 0.4856465756893158, 0.9761550426483154, 0.19502875208854675, -1.3450475931167603, -0.41737011075019836, -0.32378077507019043, -0.15791696310043335,...
func (su *SkillUpdate) Exec(ctx context.Context) error { _, err := su.Save(ctx) return err }
[ 0.006739845499396324, -0.10232691466808319, 0.546194314956665, 0.7178988456726074, 0.317108154296875, 1.2321945428848267, -0.27758312225341797, 0.004568892531096935, 0.05320065841078758, 0.4815347194671631, -0.3985028564929962, -0.19900651276111603, 0.15345370769500732, -0.4755949676036834...
func (su *SkillUpdate) ExecX(ctx context.Context) { if err := su.Exec(ctx); err != nil { panic(err) } }
[ 0.6066805720329285, 0.37285542488098145, 0.5593252778053284, 0.7050732374191284, -0.14858455955982208, 1.235503911972046, -0.8443163633346558, 0.1805088371038437, 0.6872247457504272, -0.003123125759884715, -0.05803702399134636, 0.6351814270019531, 0.5600619316101074, -0.1166873499751091, ...
func (su *SkillUpdate) check() error { if v, ok := su.mutation.Name(); ok { if err := skill.NameValidator(v); err != nil { return &ValidationError{Name: "name", err: fmt.Errorf("ent: validator failed for field \"name\": %w", err)} } } return nil }
[ -0.1431482881307602, -0.05971551686525345, 0.4570055305957794, 0.18910381197929382, -0.060014933347702026, 0.09922577440738678, 0.005437114741653204, -0.577949047088623, -0.4545101523399353, 0.26576143503189087, 0.12314484268426895, 0.010415954515337944, 0.2647792100906372, 0.9244782924652...
func (suo *SkillUpdateOne) SetUpdatedAt(t time.Time) *SkillUpdateOne { suo.mutation.SetUpdatedAt(t) return suo }
[ -0.19420672953128815, -0.4407784640789032, 0.632499098777771, -0.3459223508834839, -0.14946843683719635, 1.2066634893417358, -0.036445390433073044, 0.44782376289367676, 0.42275184392929077, -0.6515374183654785, -0.7915871143341064, -0.15187090635299683, 1.1458930969238281, 0.16440644860267...
func (suo *SkillUpdateOne) SetNillableUpdatedAt(t *time.Time) *SkillUpdateOne { if t != nil { suo.SetUpdatedAt(*t) } return suo }
[ -0.06565845757722855, -0.09216954559087753, 0.4477691650390625, 0.09323964267969131, -0.9391337633132935, 0.7800249457359314, -0.60321444272995, 0.07326187193393707, 0.010030750185251236, -0.3276522159576416, -0.49862900376319885, -0.6613881587982178, 0.1682875156402588, 0.0453811809420585...
func (suo *SkillUpdateOne) SetName(s string) *SkillUpdateOne { suo.mutation.SetName(s) return suo }
[ -0.4483610689640045, 0.28865107893943787, 0.2124214470386505, 1.5273886919021606, -0.5044077634811401, -0.0536440834403038, 0.5661240816116333, 0.7776638865470886, 0.5565436482429504, 0.3133929967880249, -1.398240327835083, -0.815617024898529, 0.49205461144447327, -0.24028784036636353, -...
func (suo *SkillUpdateOne) SetLogoURL(s string) *SkillUpdateOne { suo.mutation.SetLogoURL(s) return suo }
[ -0.43356144428253174, 0.2250882089138031, 0.11094354838132858, 1.301055908203125, -0.429887980222702, 0.4454747438430786, 0.5479172468185425, 1.2701489925384521, 0.1688900887966156, -0.016734924167394638, -1.446994662284851, -0.14554136991500854, 0.4138732850551605, -0.6866069436073303, ...
func (suo *SkillUpdateOne) SetNillableLogoURL(s *string) *SkillUpdateOne { if s != nil { suo.SetLogoURL(*s) } return suo }
[ -0.06952054053544998, 0.4865878224372864, 0.04714062809944153, 0.9437299966812134, -0.9786407351493835, 0.07680648565292358, -0.07176478207111359, 0.7395031452178955, -0.02545318752527237, -0.026074545457959175, -0.8662188649177551, -0.34735673666000366, -0.28046780824661255, -0.3784512877...
func (suo *SkillUpdateOne) AddExperienceIDs(ids ...int) *SkillUpdateOne { suo.mutation.AddExperienceIDs(ids...) return suo }
[ -1.6131725311279297, 0.15114744007587433, 0.43085160851478577, 0.9361127018928528, 0.021087277680635452, 0.6839483976364136, -0.08017748594284058, 0.8190626502037048, 0.22231361269950867, 1.5021694898605347, -0.2767466604709625, -0.3143220841884613, -0.3414243459701538, -0.1076077893376350...
func (suo *SkillUpdateOne) AddExperiences(w ...*WorkExperience) *SkillUpdateOne { ids := make([]int, len(w)) for i := range w { ids[i] = w[i].ID } return suo.AddExperienceIDs(ids...) }
[ -1.6420586109161377, 0.5158311128616333, 0.4118340015411377, 1.0121164321899414, 0.8150658011436462, 0.5625430941581726, 0.09331554919481277, -0.5047432780265808, -0.14644576609134674, 0.6535035967826843, 0.5728692412376404, -0.70184725522995, -0.7956967949867249, 0.797844409942627, -1.1...
func (suo *SkillUpdateOne) AddJobIDs(ids ...int) *SkillUpdateOne { suo.mutation.AddJobIDs(ids...) return suo }
[ -1.0573813915252686, 0.6167113184928894, 0.31045767664909363, 0.9281838536262512, -0.3710176944732666, 0.2055012732744217, -0.32911011576652527, 0.07989460229873657, -0.16623929142951965, -0.37357228994369507, -0.2830381691455841, -0.2834887206554413, -0.4626808166503906, 0.112803786993026...
func (suo *SkillUpdateOne) AddJobs(j ...*Job) *SkillUpdateOne { ids := make([]int, len(j)) for i := range j { ids[i] = j[i].ID } return suo.AddJobIDs(ids...) }
[ -0.8535579442977905, 0.41601505875587463, 0.3144696354866028, 1.0971052646636963, 0.08063463866710663, 0.20829413831233978, -0.3858014941215515, -0.6224531531333923, -0.0775226503610611, -0.5478519797325134, 0.4828285574913025, -0.5935028791427612, -1.1112301349639893, 0.32902082800865173,...
func (suo *SkillUpdateOne) Mutation() *SkillMutation { return suo.mutation }
[ -0.47079458832740784, -0.5540836453437805, 0.27348792552948, 1.0152612924575806, 0.3307013511657715, 0.5037060976028442, 1.0115320682525635, -0.19931869208812714, 1.2631518840789795, -0.3431519865989685, -0.29220402240753174, -0.2705684304237366, 0.229899063706398, -0.3483212888240814, -...
func (suo *SkillUpdateOne) ClearExperiences() *SkillUpdateOne { suo.mutation.ClearExperiences() return suo }
[ -0.982719361782074, 0.9179843068122864, 0.17191563546657562, 0.8301566243171692, -0.4965759217739105, 0.8405378460884094, -0.03786076232790947, -0.0014531910419464111, 0.17114222049713135, 0.7890979051589966, 0.5694543123245239, 0.09885342419147491, 0.07362251728773117, -0.0230630524456501...
func (suo *SkillUpdateOne) RemoveExperienceIDs(ids ...int) *SkillUpdateOne { suo.mutation.RemoveExperienceIDs(ids...) return suo }
[ -1.7886970043182373, -0.31071266531944275, 0.49213090538978577, 0.8566991090774536, -0.6328769326210022, 0.37998366355895996, 0.49245208501815796, 1.2950793504714966, 0.1296318620443344, 1.6882380247116089, -0.4161181151866913, -0.2482232004404068, -1.0295222997665405, -0.2274945229291916,...
func (suo *SkillUpdateOne) RemoveExperiences(w ...*WorkExperience) *SkillUpdateOne { ids := make([]int, len(w)) for i := range w { ids[i] = w[i].ID } return suo.RemoveExperienceIDs(ids...) }
[ -1.8320183753967285, 0.252349317073822, 0.5878790616989136, 0.9566134214401245, -0.019622789695858955, 0.26487910747528076, 0.6804646253585815, -0.03596466779708862, -0.45552578568458557, 0.8930429220199585, 0.1699552685022354, -0.6425891518592834, -1.3993438482284546, 0.6587914824485779, ...
func (suo *SkillUpdateOne) ClearJobs() *SkillUpdateOne { suo.mutation.ClearJobs() return suo }
[ -0.02209222875535488, 0.9524906277656555, 0.04029345512390137, 0.7932810187339783, -0.7778400778770447, 0.24954478442668915, -0.13998472690582275, -0.6286725401878357, 0.6762174963951111, -0.39241886138916016, 0.4953681230545044, 0.0063596912659704685, -0.17676539719104767, -0.935454487800...
func (suo *SkillUpdateOne) RemoveJobIDs(ids ...int) *SkillUpdateOne { suo.mutation.RemoveJobIDs(ids...) return suo }
[ -1.1148145198822021, 0.3192631006240845, 0.2704237997531891, 0.908660352230072, -1.2126209735870361, -0.31554046273231506, 0.13170571625232697, 0.604902982711792, -0.4762136936187744, 0.16701389849185944, -0.5324611067771912, -0.31813275814056396, -1.0066213607788086, -0.14044930040836334,...
func (suo *SkillUpdateOne) RemoveJobs(j ...*Job) *SkillUpdateOne { ids := make([]int, len(j)) for i := range j { ids[i] = j[i].ID } return suo.RemoveJobIDs(ids...) }
[ -0.8127613663673401, 0.2790886163711548, 0.27313750982284546, 0.9800786375999451, -0.679750382900238, -0.3042522668838501, 0.17401783168315887, -0.20355017483234406, -0.20651105046272278, -0.07020841538906097, -0.0757758691906929, -0.8101773858070374, -1.443449854850769, -0.060619428753852...
func (suo *SkillUpdateOne) Select(field string, fields ...string) *SkillUpdateOne { suo.fields = append([]string{field}, fields...) return suo }
[ -0.2877819240093231, 0.29461196064949036, 0.20024225115776062, -0.035069096833467484, 0.32617291808128357, 0.29617172479629517, -0.3158835768699646, 0.10728053003549576, 0.3926645517349243, -0.5084035992622375, -1.1230515241622925, -0.0028832051903009415, -0.28403910994529724, -0.810374379...
func (suo *SkillUpdateOne) Save(ctx context.Context) (*Skill, error) { var ( err error node *Skill ) if len(suo.hooks) == 0 { if err = suo.check(); err != nil { return nil, err } node, err = suo.sqlSave(ctx) } else { var mut Mutator = MutateFunc(func(ctx context.Context, m Mutation) (Value, error) {...
[ -0.33614376187324524, -0.31162047386169434, 0.7793093919754028, 0.09065625071525574, 0.4109513461589813, -0.48013824224472046, 0.6711136102676392, -0.8589341044425964, -0.10756838321685791, 0.6284217238426208, -0.32659783959388733, 0.22455205023288727, -0.04076361656188965, -0.036168836057...
func (suo *SkillUpdateOne) SaveX(ctx context.Context) *Skill { node, err := suo.Save(ctx) if err != nil { panic(err) } return node }
[ -0.5830197334289551, 0.4884795546531677, 0.4357876181602478, 0.8286993503570557, -0.2558442950248718, 0.874980628490448, -0.45068055391311646, 0.10400533676147461, 1.3542330265045166, 0.26182788610458374, -1.1919610500335693, 0.10652779787778854, -0.22042681276798248, -0.3556714653968811, ...
func (suo *SkillUpdateOne) Exec(ctx context.Context) error { _, err := suo.Save(ctx) return err }
[ 0.03424961492419243, 0.15364597737789154, 0.6064828038215637, 0.8301262259483337, 0.5465890169143677, 1.0977365970611572, 0.0034399032592773438, 0.129811629652977, 0.21176233887672424, 0.4692363440990448, -0.6236156225204468, -0.371562123298645, -0.11246931552886963, -0.34883245825767517, ...
func (suo *SkillUpdateOne) ExecX(ctx context.Context) { if err := suo.Exec(ctx); err != nil { panic(err) } }
[ 0.5731288194656372, 0.5593264698982239, 0.6630706787109375, 0.838290810585022, 0.06584791094064713, 1.1334413290023804, -0.6443185210227966, 0.21249300241470337, 0.6136428713798523, 0.08655380457639694, -0.2632378935813904, 0.5607833862304688, 0.3766512870788574, -0.09181233495473862, 0....
func (suo *SkillUpdateOne) check() error { if v, ok := suo.mutation.Name(); ok { if err := skill.NameValidator(v); err != nil { return &ValidationError{Name: "name", err: fmt.Errorf("ent: validator failed for field \"name\": %w", err)} } } return nil }
[ -0.2028905302286148, 0.1595776081085205, 0.45914795994758606, 0.38578397035598755, 0.11442989856004715, 0.1959894299507141, 0.16202716529369354, -0.45302820205688477, -0.4668598473072052, 0.3565354347229004, 0.009695135988295078, -0.1323998123407364, 0.13144877552986145, 1.0113040208816528...
func arrayPairSum(nums []int) int { counts := make([]int, 20001) for _, n := range nums { counts[n+10000]++ } var sum int add := true for i, _ := range counts { for 0 < counts[i] { if add { sum += i - 10000 } counts[i]-- add = !add } } return sum }
[ 0.1033172607421875, -0.6106846332550049, 0.7972959280014038, 0.12120527774095535, 0.05814012885093689, -0.09920752048492432, 1.0512864589691162, 0.0031288997270166874, 1.3624595403671265, 0.1866074502468109, -0.1914881020784378, 0.013788840733468533, -0.4171849489212036, 0.0300941877067089...
func WithReceivedTimestamp(parent context.Context, receivedTimestamp time.Time) context.Context { if receivedTimestamp.IsZero() { return parent } return WithValue(parent, requestReceivedTimestampKey, receivedTimestamp) }
[ 0.06360406428575516, 0.06354605406522751, 0.7251887917518616, -0.3067536950111389, -0.2046874463558197, 0.13362671434879303, -0.16068270802497864, -1.0011013746261597, 1.2264268398284912, -0.7854620218276978, -0.11610464751720428, -0.850390613079071, 0.7905982732772827, 0.38333651423454285...
func ReceivedTimestampFrom(ctx context.Context) (time.Time, bool) { info, ok := ctx.Value(requestReceivedTimestampKey).(time.Time) return info, ok }
[ -0.715972900390625, -0.10794462263584137, 0.6025558114051819, -0.602376401424408, -0.26701611280441284, 0.27090683579444885, -0.6533446907997131, -0.39467522501945496, 0.8092808127403259, 0.26659634709358215, -0.6441368460655212, -1.0836482048034668, 0.45583248138427734, -0.224510684609413...
func newResourceDelta( a *resource, b *resource, ) *ackcompare.Delta { delta := ackcompare.NewDelta() if (a == nil && b != nil) || (a != nil && b == nil) { delta.Add("", a, b) return delta } if ackcompare.HasNilDifference(a.ko.Spec.MonitoringScheduleConfig, b.ko.Spec.MonitoringScheduleConfig) { delta.Add...
[ 0.8010762929916382, -0.9291433691978455, 1.0797359943389893, -0.21712034940719604, -0.5961589813232422, 0.3936624228954315, 0.3605009913444519, -0.6204086542129517, -0.21608498692512512, 0.3365345299243927, 0.56597900390625, 0.16444607079029083, 0.23344449698925018, 0.7649253606796265, 0...
func (s ListInstanceGroupsInput) String() string { return awsutil.Prettify(s) }
[ -0.3009451627731323, 0.033977799117565155, -0.020970242097973824, -0.791395902633667, -0.8781967163085938, 0.6280117630958557, 0.17795847356319427, -1.2350682020187378, -0.3413201868534088, -0.014958229847252369, -0.13375629484653473, 1.1974140405654907, -0.8308324813842773, -0.01045389007...
func (s *ListInstanceGroupsInput) Validate() error { invalidParams := aws.ErrInvalidParams{Context: "ListInstanceGroupsInput"} if s.ClusterId == nil { invalidParams.Add(aws.NewErrParamRequired("ClusterId")) } if invalidParams.Len() > 0 { return invalidParams } return nil }
[ -0.5802818536758423, 0.540031909942627, 0.22449477016925812, -0.418277382850647, -0.3045271933078766, 0.17476165294647217, -0.45035138726234436, -0.6233981251716614, -0.41093358397483826, 0.07912223786115646, 0.12992025911808014, 0.4717315137386322, -1.5878480672836304, 0.9772295951843262,...
func (s ListInstanceGroupsOutput) String() string { return awsutil.Prettify(s) }
[ 0.2684257924556732, -0.4304388463497162, 0.05918727070093155, -0.7951574921607971, -1.2571617364883423, -0.07205389440059662, 0.5280537009239197, -0.9957287311553955, -0.6272385120391846, 0.018758997321128845, 0.11430669575929642, 0.6541494131088257, -0.33995121717453003, -0.18879747390747...
func (r ListInstanceGroupsRequest) Send(ctx context.Context) (*ListInstanceGroupsResponse, error) { r.Request.SetContext(ctx) err := r.Request.Send() if err != nil { return nil, err } resp := &ListInstanceGroupsResponse{ ListInstanceGroupsOutput: r.Request.Data.(*ListInstanceGroupsOutput), response: ...
[ -1.491755485534668, 0.5836915969848633, 0.13363324105739594, -0.35646888613700867, -0.3404790759086609, -0.5885865092277527, -0.7277861833572388, -0.93845534324646, 0.21178887784481049, 0.08050164580345154, -0.7812316417694092, 1.2575215101242065, -1.371878981590271, 0.24511903524398804, ...
func (r *ListInstanceGroupsResponse) SDKResponseMetdata() *aws.Response { return r.response }
[ -0.4123711884021759, -0.10288799554109573, 0.21689440310001373, -0.9926995635032654, -0.5907398462295532, -0.2554777264595032, -1.1412075757980347, -0.6600654721260071, 0.6068782210350037, 0.22142939269542694, -0.6339629292488098, 0.2878357470035553, -0.9320482611656189, -0.286289602518081...
func localFileSize(filepath string) (int64, bool, error) { statInfo, statErr := os.Stat(filepath) if statErr == nil { return statInfo.Size(), true, nil } else { if os.IsNotExist(statErr) { return 0, false, nil } else { return 0, false, statErr } } }
[ 0.038734715431928635, -0.16897204518318176, 0.7369176149368286, -0.6745827794075012, -0.02631179429590702, -0.12959350645542145, 0.18590575456619263, 0.6053744554519653, -0.2564994692802429, 0.4071792960166931, -0.79598069190979, -0.7308069467544556, -0.22888609766960144, 0.571515738964080...
func createLocalDir(forPath string) error { dirs := path.Dir(forPath) return os.MkdirAll(dirs, 0750) }
[ 0.6706627011299133, 0.16998516023159027, 0.38382843136787415, -0.5724784135818481, -0.4673194885253906, 0.6580131649971008, 0.07528164237737656, 0.5613915920257568, 0.38567379117012024, -0.3919108510017395, -0.21303267776966095, -0.21646423637866974, 0.6147276759147644, 1.0591505765914917,...
func performDownload(s3Client *s3.Client, bucket string, key string, toFile string) (int64, error) { req := s3.GetObjectInput{ Bucket: aws.String(bucket), Key: aws.String(key), } ctx := context.Background() response, err := s3Client.GetObject(ctx, &req) if err != nil { return 0, err } defer response.B...
[ 0.011500909924507141, -0.08437458425760269, 1.044637680053711, -0.1582205891609192, -0.05417580157518387, -0.13537849485874176, 1.2833102941513062, 0.04051624611020088, 0.17360040545463562, 0.31361138820648193, 0.41148412227630615, -0.781718909740448, -0.24601641297340393, 0.08851855993270...
func (_m *ServerConnectionInterface) AcceptConn() error { ret := _m.Called() var r0 error if rf, ok := ret.Get(0).(func() error); ok { r0 = rf() } else { r0 = ret.Error(0) } return r0 }
[ -0.8538157939910889, 0.15780048072338104, 0.7151432037353516, 0.39260467886924744, 0.04879205673933029, -0.40866610407829285, 0.8616150617599487, 1.1512410640716553, -0.3695564270019531, -0.685411810874939, -0.48004698753356934, 0.06978938728570938, 0.2581084966659546, 1.0232387781143188, ...
func (_m *ServerConnectionInterface) CloseConn() error { ret := _m.Called() var r0 error if rf, ok := ret.Get(0).(func() error); ok { r0 = rf() } else { r0 = ret.Error(0) } return r0 }
[ -1.0130513906478882, -0.4367575943470001, 0.6320134401321411, 0.5290961861610413, 0.23092584311962128, -0.2624861001968384, 0.6659058928489685, 0.7485397458076477, -0.41993701457977295, -0.8546880483627319, -0.4071720242500305, -0.056738127022981644, 0.3539171516895294, 1.01544189453125, ...
func (_m *ServerConnectionInterface) CloseListener() error { ret := _m.Called() var r0 error if rf, ok := ret.Get(0).(func() error); ok { r0 = rf() } else { r0 = ret.Error(0) } return r0 }
[ -0.5729462504386902, -0.6771303415298462, 0.5270656943321228, 0.1351066380739212, -0.5628994703292847, 0.7437328100204468, 0.9968091249465942, 0.14282108843326569, -0.6880049109458923, -0.2149897962808609, -0.05323474854230881, -0.6309680342674255, -0.1983083188533783, 1.2337480783462524, ...
func (_m *ServerConnectionInterface) ConnectionEstablished() bool { ret := _m.Called() var r0 bool if rf, ok := ret.Get(0).(func() bool); ok { r0 = rf() } else { r0 = ret.Get(0).(bool) } return r0 }
[ -0.9544010162353516, -0.5089166164398193, 0.5734583735466003, -0.34209761023521423, 0.5534572601318359, -0.23337870836257935, 0.801982045173645, 0.7195857763290405, -0.7444902658462524, 0.18274548649787903, -0.5948179960250854, -0.5156210064888, -0.1850367784500122, 0.43859779834747314, ...
func (_m *ServerConnectionInterface) ReceiveThroughListener() ([]byte, error) { ret := _m.Called() var r0 []byte if rf, ok := ret.Get(0).(func() []byte); ok { r0 = rf() } else { if ret.Get(0) != nil { r0 = ret.Get(0).([]byte) } } var r1 error if rf, ok := ret.Get(1).(func() error); ok { r1 = rf() }...
[ -0.21160875260829926, -0.49439477920532227, 0.5561892986297607, -0.5054528117179871, -0.4333333969116211, 0.23130345344543457, 0.8497912287712097, -0.0714433565735817, -0.37968647480010986, -0.01353563740849495, -0.7166356444358826, 0.44709378480911255, -0.11628497391939163, 0.792746126651...
func (_m *ServerConnectionInterface) SendFromServer(_a0 []byte) error { ret := _m.Called(_a0) var r0 error if rf, ok := ret.Get(0).(func([]byte) error); ok { r0 = rf(_a0) } else { r0 = ret.Error(0) } return r0 }
[ -0.14928987622261047, -0.47684428095817566, 0.2672993838787079, -0.31938299536705017, -0.6287857890129089, -0.01404065452516079, 0.734098494052887, 0.07234031707048416, -0.2830110490322113, 0.3980458676815033, -0.697739839553833, 0.1925785392522812, -0.052529189735651016, 1.194935560226440...
func (_m *ServerConnectionInterface) StartListener(ipAddr string, port int) (int, error) { ret := _m.Called(ipAddr, port) var r0 int if rf, ok := ret.Get(0).(func(string, int) int); ok { r0 = rf(ipAddr, port) } else { r0 = ret.Get(0).(int) } var r1 error if rf, ok := ret.Get(1).(func(string, int) error); o...
[ -0.24906828999519348, -0.5631744265556335, 0.6527289748191833, -0.6080346703529358, -0.6872482895851135, -0.17460831999778748, 1.0402568578720093, 0.3230328857898712, -0.5401447415351868, -0.051368482410907745, -0.39109891653060913, 0.1879756599664688, 0.09769131243228912, 0.43302252888679...
func DBConnection() (*sql.DB, error) { config := configuration.LoadConfiguration() db, err := sql.Open("mysql", ""+config.MySQLUser+":"+config.MySQLPass+"@tcp("+config.MySQLHost+")/"+config.MySQLDb) return db, err }
[ -0.3369540274143219, 0.24461250007152557, 0.5607469081878662, 0.5181427001953125, -0.8017252683639526, -0.058649249374866486, 0.5345224142074585, 0.5432246923446655, -0.17286403477191925, 0.23421496152877808, -0.10209856927394867, -0.28676867485046387, -0.845628559589386, 0.235107690095901...
func (sl SolLst) exists(val int) bool { return sl.Get(val) != nil }
[ -0.47649112343788147, -0.055939145386219025, 0.2835176885128021, -0.23693688213825226, -0.44848689436912537, 0.4812368154525757, -0.5651525259017944, -0.7095064520835876, 0.8034847974777222, -0.19186702370643616, -0.3513997793197632, -0.6144930124282837, 0.4327760338783264, 0.4341167807579...
func (sl SolLst) Get(val int) *Number { for _, v := range sl { for _, w := range v { // w is *Number if w == nil { continue } if w.Val == val { return w } } } return nil }
[ 0.03719271346926689, -0.30443844199180603, 0.6160807013511658, 0.3863249719142914, -0.6414392590522766, -0.5385237336158752, 0.23508970439434052, -0.9611914157867432, 0.8933249711990356, -0.20984043180942535, -0.15326587855815887, 0.3656371831893921, 0.0034762134309858084, 0.68336343765258...
func (sl SolLst) StringNum(val int) string { return sl.Get(val).render() + "\n" }
[ -0.863654613494873, -0.3841969072818756, 0.6991824507713318, -0.5885794758796692, -1.152855396270752, -0.6532164812088013, -0.034906189888715744, -1.0415500402450562, 0.8996616005897522, -0.6610624194145203, 0.06807512789964676, -0.060169897973537445, 0.6551486253738403, -0.271534711122512...
func (sl SolLst) Tidy() { for _, v := range sl { v.Tidy() } }
[ -0.34632834792137146, -0.36508113145828247, 0.17931243777275085, -0.8991190195083618, 0.1810520738363266, 0.31298086047172546, 0.5513362884521484, -1.070325255393982, 0.11241397261619568, 0.02193949930369854, -0.20131199061870575, 0.9459561109542847, 1.367854356765747, 1.6739649772644043, ...
func IncludeString(l []string, s string) []string { i := sort.Search( len(l), func(i int) bool { return l[i] >= s }, ) if i < len(l) && l[i] == s { // string is already in slice return l } l = append(l, "") copy(l[i+1:], l[i:]) l[i] = s return l }
[ 0.7671487331390381, -0.0719180628657341, 0.37100085616111755, 0.05614877864718437, -1.0830751657485962, 0.3107225298881531, -0.5263811349868774, 0.0698820948600769, 0.690865159034729, 0.9999232292175293, -0.13259971141815186, 0.7854124307632446, 0.011368168517947197, -0.3120186924934387, ...
func NewExecutableSchema(cfg Config) graphql.ExecutableSchema { return &executableSchema{ resolvers: cfg.Resolvers, directives: cfg.Directives, complexity: cfg.Complexity, } }
[ 0.12359616905450821, -0.624889075756073, 0.3856506049633026, 0.3890434503555298, -0.5765991806983948, 0.3744804859161377, 0.09621302038431168, 0.46767035126686096, -0.36183619499206543, 0.3167094588279724, -0.5453308820724487, -0.22916509211063385, -0.10190654546022415, -0.1977230012416839...
func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} var arg0 string if tmp, ok := rawArgs["name"]; ok { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) arg0...
[ -1.387839674949646, -0.13870379328727722, 0.5559620261192322, -1.372829556465149, 0.004851804580539465, -0.7573080062866211, -0.1561473309993744, -1.0679875612258911, -0.5231307744979858, 1.0288267135620117, -0.14826330542564392, 0.1318291872739792, -0.36105602979660034, 0.3561939597129822...
func (ec *executionContext) _AnalyticsEventResponse_sent(ctx context.Context, field graphql.CollectedField, obj *graph.AnalyticsEventResponse) (ret graphql.Marshaler) { fc, err := ec.fieldContext_AnalyticsEventResponse_sent(ctx, field) if err != nil { return graphql.Null } ctx = graphql.WithFieldContext(ctx, fc) ...
[ 0.21022014319896698, -0.8804084062576294, 0.6826682686805725, -0.7155605554580688, 0.28007394075393677, -0.38979372382164, 0.2784552276134491, -1.1671584844589233, 0.09940817952156067, 1.107020378112793, -0.4328005909919739, -0.13548877835273743, 0.1219433844089508, -0.5613516569137573, ...
func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v interface{}) (bool, error) { res, err := graphql.UnmarshalBoolean(v) return res, graphql.ErrorOnPath(ctx, err) }
[ -0.6094582080841064, -0.3159808814525604, 0.8380392789840698, -0.3946250379085541, -0.3396643102169037, 0.2378515750169754, -0.19089488685131073, -0.4827970564365387, -1.1012884378433228, 0.2626212537288666, -0.1239694207906723, 0.70475834608078, 0.10661130398511887, -0.016005825251340866,...
func GenerateK8sEvent(clientset kubernetes.Interface, reason string, eventType K8sEventType, action string, name, namespace, instanceId, kind string, labels map[string]string) error { event := &corev1.Event{ Reason: reason, Type: string(eventType), Action: action, EventTime: metav1.MicroTime{ Time: time.N...
[ -0.07617451995611191, -0.13121354579925537, 0.5938928723335266, -0.8544710874557495, 0.44785764813423157, 0.43092426657676697, -0.6381103992462158, -0.07893594354391098, 0.6758577823638916, 0.5333983898162842, -0.4807981550693512, 0.6668375134468079, -0.5384695529937744, 0.1513688117265701...
func (p *Provider) DeploySysCCs(chainID string, ccp ccprovider.ChaincodeProvider) { for _, sysCC := range p.SysCCs { sysCC.deploySysCC(chainID, ccp) } }
[ -0.3723275661468506, -0.004402956459671259, 0.25583112239837646, 0.2770322263240814, 0.8860553503036499, -0.3909774124622345, 0.4908086657524109, -0.3674881160259247, 0.35771042108535767, -0.09143970161676407, -0.7716743350028992, 0.5602991580963135, -0.4396253228187561, 1.2407506704330444...
func (p *Provider) DeDeploySysCCs(chainID string, ccp ccprovider.ChaincodeProvider) { for _, sysCC := range p.SysCCs { sysCC.deDeploySysCC(chainID, ccp) } }
[ -0.08602846413850784, -0.7333547472953796, 0.32620376348495483, -0.20777443051338196, 0.6069186329841614, -0.8017955422401428, 0.4979814887046814, -0.05813581123948097, 0.45645055174827576, -0.260336697101593, -0.639696478843689, 0.3754984140396118, -0.2519729435443878, 0.8447662591934204,...
func Check(ctx context.Context) (string, error) { return "", nil }
[ 0.2717328667640686, 0.2704126834869385, 0.3791813254356384, 0.5965815186500549, -0.1207241639494896, 0.8052456378936768, -0.13031190633773804, -0.9199916124343872, 0.4834004342556, -0.11658494919538498, 0.7641168832778931, 0.4174012243747711, -0.179490327835083, 0.44479164481163025, -0.5...
func arrangeWords(text string) string { ss := strings.Split(text, " ") sort.SliceStable(ss, func(i, j int) bool { return len(ss[i]) < len(ss[j]) }) var sb strings.Builder c := ss[0][0] if 'a' <= c && c <= 'z' { sb.WriteByte(c + 'A' - 'a') } else { sb.WriteByte(c) } sb.WriteString(ss[0][1:]) for _, s...
[ 1.1223174333572388, -0.3434792459011078, 0.6424545645713806, -1.1248983144760132, -0.4006001949310303, -0.23580171167850494, 0.9411453008651733, -0.13478541374206543, 0.04125599563121796, 0.6977340579032898, 0.6619592308998108, 0.45295408368110657, -1.2149728536605835, 0.3923192322254181, ...
func NewPoint() api.IPoint { o := new(point) return o }
[ -0.36080431938171387, -0.3536679148674011, 0.2068941444158554, 1.3471932411193848, -0.17766016721725464, -0.5691661834716797, 0.11776574701070786, 0.20527219772338867, 0.4767872989177704, -0.4226004481315613, -0.3424195945262909, 0.6629483699798584, -0.9964420795440674, -1.2332440614700317...
func NewPointUsing(x, y float64) api.IPoint { o := new(point) o.x = x o.y = y return o }
[ -0.29468637704849243, -0.4775421619415283, 0.4837901294231415, -0.06736321747303009, -0.6168250441551208, -0.37654805183410645, -0.7606943845748901, -1.008496642112732, 0.04449404031038284, 0.5284598469734192, 0.5514185428619385, 0.29808303713798523, -0.540929913520813, -0.5578012466430664...
func New() *httprouter.Router { r := httprouter.New() // // Instrument the handlers with all the metrics, injecting the "handler" // // label by currying. // indexChain := promhttp.InstrumentHandlerDuration(m.duration.MustCurryWith(prometheus.Labels{"handler": "index"}), // promhttp.InstrumentHandlerCounter(m.c...
[ -0.4221874475479126, -0.7029813528060913, 0.716221272945404, 0.12306948006153107, 0.07516779005527496, 0.34620630741119385, 0.23582690954208374, -0.12847629189491272, -0.5932022929191589, 0.03486102074384689, 0.3202698528766632, 0.3208489716053009, 0.1310691237449646, 0.928828239440918, ...
func (m *Model) BoundingBox() (min, max [3]float32) { min = m.Triangles[0].P0 max = m.Triangles[0].P0 for _, t := range m.Triangles { min[0] = minimum(min[0], t.P0[0], t.P1[0], t.P2[0]) min[1] = minimum(min[1], t.P0[1], t.P1[1], t.P2[1]) min[2] = minimum(min[2], t.P0[2], t.P1[2], t.P2[2]) max[0] = maximum(ma...
[ -0.2398214489221573, -0.30499401688575745, 0.7610452175140381, -0.47984597086906433, -0.2712782621383667, 0.4920211136341095, 0.42073580622673035, -0.12722505629062653, -0.05948618799448013, 0.10649644583463669, -1.0339045524597168, -0.030994269996881485, 0.6542282700538635, 0.241275832056...
func (m *Model) WriteToFile(filepath string) error { writer, err := os.Create(filepath) defer writer.Close() if err != nil { return err } var buffer []byte // Write header buffer = make([]byte, stlHeaderSize) header := []byte("STL") for i, b := range header { buffer[i] = b } n, err := writer.Write(buff...
[ 0.3674357235431671, 0.5043730139732361, 0.6456055641174316, -0.9035724997520447, 0.10970061272382736, 0.9532599449157715, 1.4508837461471558, -0.574264407157898, -0.9698190689086914, 0.7194229960441589, -1.189334750175476, -0.5156580805778503, -0.08363591134548187, -0.43160906434059143, ...
func ParseStlFile(filepath string) (*Model, error) { reader, err := os.Open(filepath) defer reader.Close() if err != nil { return nil, err } var buffer []byte // Ignore header buffer = make([]byte, stlHeaderSize) n, err := reader.Read(buffer) if err != nil { return nil, err } if n < stlHeaderSize { r...
[ 0.9051152467727661, -0.18558786809444427, 0.5969152450561523, -1.067168951034546, -0.9624121785163879, 0.6451224684715271, 0.8399310111999512, -0.6646309494972229, -0.29831981658935547, 0.3106918931007385, -0.885732889175415, -0.13467279076576233, 0.08237349987030029, -0.5628088116645813, ...
func New(conf map[string]string) *Conf { return &Conf{ c: conf, } }
[ 0.4137684404850006, -1.390466332435608, -0.19973762333393097, 0.08074682205915451, -1.278978705406189, -0.5180439352989197, -0.29260921478271484, 0.8624064326286316, -1.0126246213912964, 0.27372878789901733, -1.4647252559661865, -0.061766140162944794, 1.1497533321380615, 0.6652881503105164...
func NewFromJSON(data []byte) (*Conf, error) { var c map[string]string if err := json.Unmarshal(data, &c); err != nil { return nil, err } return &Conf{c: c}, nil }
[ 0.15730254352092743, -1.132563829421997, 0.1254872977733612, -0.6221495866775513, -1.559100866317749, -0.6212034821510315, -0.4959045350551605, 0.10489653050899506, -0.15548522770404816, 0.6123220324516296, -1.5324950218200684, -0.38859784603118896, -0.28049179911613464, 0.4688088893890381...
func (c *Conf) IsSet(key string) bool { _, ok := c.c[key] return ok }
[ -0.9750333428382874, -0.08774757385253906, 0.20810024440288544, -0.1836092174053192, 0.3387978971004486, -0.2116335779428482, -0.040435899049043655, 0.026579415425658226, -1.132961630821228, 1.290122151374817, -0.6568644046783447, -0.379260778427124, -0.46201062202453613, 0.205342993140220...
func (c *Conf) GetString(key string) string { s, _ := c.c[key] return s }
[ -0.08874157816171646, 0.0241361353546381, 0.0302207600325346, -0.03657079488039017, -0.1558072566986084, -0.1493881493806839, 0.3128909468650818, -0.1556500941514969, -0.8666375875473022, 1.175537347793579, -0.19967125356197357, -0.33785775303840637, -0.2684473991394043, 0.0257152542471885...
func getFileDisplayStrings(f *models.File, diffed bool, submoduleConfigs []*models.SubmoduleConfig) []string { // potentially inefficient to be instantiating these color // objects with each render red := color.New(color.FgRed) green := color.New(color.FgGreen) diffColor := color.New(theme.DiffTerminalColor) if !...
[ 0.03329794481396675, -0.8225430846214294, 0.8375331163406372, -0.5811803936958313, -0.20079068839550018, 0.25728175044059753, -0.3628370761871338, -0.4553663730621338, -0.8785789012908936, 0.27987542748451233, 0.5509800314903259, 0.7329331040382385, 0.11194265633821487, 0.7891547083854675,...
func trap(height []int) int { size := len(height) if size < 2 { return 0 } l, r := 0, size-1 lMax, rMax := 0, 0 lMaxL, rMaxR := 0, 0 has := 0 sum := 0 lUp, rUp := false, false for l < r { if !lUp { if height[l] > lMax { lMax = height[l] lMaxL = l lUp = !lUp } else { l++ continue ...
[ -0.3259885609149933, 0.19770404696464539, 0.9045811891555786, 0.2173462063074112, -1.195655107498169, -0.04264814034104347, 0.5646752715110779, -0.3499903380870819, 0.4427333176136017, 0.26367002725601196, -0.9687259793281555, 0.37262412905693054, -0.09682241082191467, 0.2973933815956116, ...
func TestExtractRules(t *testing.T) { broadcaster := services.CreateBroadcaster(make(chan domain.ProgressMessage)) rules, _, e := services.ExtractRules(itemSets, 3, nil, nil, broadcaster) if e != nil || len(rules) != 10 { t.Fatalf("TestExtractRules fails") } }
[ 0.5417691469192505, 1.8756380081176758, 0.4400986433029175, -0.43452906608581543, 1.7644603252410889, 0.23566991090774536, 0.359548419713974, -0.05639667063951492, -0.10181234776973724, -0.1560165286064148, -0.006179790012538433, -0.40162962675094604, -1.074763298034668, 0.0141750629991292...
func NewPrinterTheme(options Options) (*ThemePrinter, error) { name, ok := options["name"] if !ok || name == "" { return nil, fmt.Errorf("no theme name") } if strings.IndexRune(name, '/') >= 0 { // Should we allow that? (subthemes, etc.) return nil, fmt.Errorf("invalid theme name") } return &ThemePrinter{ ...
[ -0.24297849833965302, -0.7680514454841614, 0.431243896484375, 0.13887925446033478, -0.7882446050643921, -0.3754839301109314, -0.01635459065437317, -0.350685179233551, -0.33161112666130066, 0.4392094910144806, 0.07566866278648376, 0.19794021546840668, -1.0094901323318481, 0.2496542483568191...
func (p *ThemePrinter) PrintObj(obj interface{}, w io.Writer, tmpl string) error { if w == nil { w = os.Stdout } if p.name == "" { return fmt.Errorf("no theme name") // Should not happen } var objType string switch obj.(type) { case []madon.Account, madon.Account, *madon.Account: objType = "account" ca...
[ 0.2193583995103836, -0.816211462020874, 0.7954986691474915, -0.188964381814003, -0.68030846118927, 0.6862154006958008, 0.035999100655317307, -0.2667505741119385, 0.7121679186820984, -0.051963914185762405, -0.5979574918746948, 0.2207993119955063, -0.017718585208058357, 0.8243152499198914, ...
func (a *appState) loadConfigFile(ctx context.Context) error { cfgPath := a.configPath() if _, err := os.Stat(cfgPath); err != nil { // don't return error if file doesn't exist return nil } // read the config file bytes file, err := os.ReadFile(cfgPath) if err != nil { return fmt.Errorf("error reading fil...
[ -0.14132991433143616, -0.3199262022972107, 0.5624352693557739, -0.2963453531265259, 0.5844420790672302, -0.7153195142745972, -0.34679970145225525, 0.4674060344696045, -0.9962321519851685, 0.4718487858772278, -0.2061818540096283, -0.08621309697628021, -0.5206446051597595, 0.9472813606262207...
func (a *appState) addPathFromFile(ctx context.Context, stderr io.Writer, file, name string) error { if _, err := os.Stat(file); err != nil { return err } byt, err := os.ReadFile(file) if err != nil { return err } p := &relayer.Path{} if err = json.Unmarshal(byt, &p); err != nil { return err } if err ...
[ 0.656724214553833, -0.4309077858924866, 0.6819490194320679, -0.11844181269407272, -0.49447184801101685, 0.850964367389679, -0.04227994754910469, 0.18386651575565338, -0.6405237317085266, 0.489737868309021, 0.50783371925354, -0.9827089309692383, -0.3903973698616028, -0.031996287405490875, ...
func (a *appState) addPathFromUserInput( ctx context.Context, stdin io.Reader, stderr io.Writer, src, dst, name string, ) error { // TODO: confirm name is available before going through input. var ( value string err error path = &relayer.Path{ Src: &relayer.PathEnd{ ChainID: src, }, Dst: &r...
[ 0.3351854681968689, -0.3460354208946228, 0.8949471712112427, 0.1530132293701172, -0.4649032652378082, 0.6878438591957092, 0.6843888759613037, -0.7340932488441467, -0.2946116626262665, -0.01702052727341652, 0.3672807514667511, -0.01078784093260765, -0.2011519968509674, 0.3104819357395172, ...
func (a *appState) updatePathConfig( ctx context.Context, pathName string, clientSrc, clientDst string, connectionSrc, connectionDst string, ) error { if pathName == "" { return errors.New("empty path name not allowed") } return a.performConfigLockingOperation(ctx, func() error { path, ok := a.config.Paths[...
[ -0.5291475057601929, -0.43064093589782715, 0.48245665431022644, -1.0803027153015137, -0.695410966873169, -0.08194009959697723, 0.13166363537311554, 0.06916023045778275, -0.6267445087432861, 1.268178939819336, -0.8491756319999695, 0.06510286778211594, -0.6857956051826477, 0.3854353129863739...
func NewList() *List { return new(List).Init() }
[ 0.4220634996891022, -0.7014889121055603, -0.02744237892329693, 1.012015700340271, 0.12090712040662766, -0.20315337181091309, -0.6366442441940308, 0.697196900844574, 1.1572836637496948, -1.1956809759140015, -1.1756314039230347, -0.12283166497945786, 0.25687718391418457, -0.09365829080343246...
func (l *List) Get(index int) interface{} { if index < 0 || index >= l.len { return -1 } var cur *Node if index < l.len/2 { // 从head开始查询 cur = l.head // 空节点head的index是0 for i := 0; i < index; i++ { cur = cur.next } } else { // 从tail开始查询 cur = l.tail for i := l.len + 1; i > index; i-- { cur = c...
[ -1.0276857614517212, 0.5525620579719543, 0.862571656703949, -0.11412904411554337, 0.07498031109571457, -0.22293849289417267, 0.0552852600812912, -0.060298483818769455, 0.13403171300888062, -0.6321164965629578, -0.8433831930160522, 1.3353298902511597, -0.8050523996353149, 0.5997164845466614...
func (Swap10) WriteTo(writer io.Writer) (int64, error) { return writeTo(writer, CodeSwap10) }
[ -1.8910801410675049, 0.5765543580055237, 0.3320167064666748, -1.30546236038208, 1.2623480558395386, -1.0417051315307617, 1.1861519813537598, 0.7003114819526672, 0.25922298431396484, -0.6787803769111633, -0.729756236076355, 0.2665524482727051, 0.38182467222213745, 0.7252877950668335, -0.6...
func NewDebug() *InjectWrapper { di := New() di.g.Logger = &log{} return di }
[ -0.35168659687042236, -0.029860053211450577, 0.3634154200553894, 0.08065437525510788, -0.32357391715049744, -0.2908635437488556, -0.2832593023777008, -0.17189450562000275, -0.02168709971010685, -0.6682041883468628, 0.21545876562595367, 0.4298352301120758, 0.004998038522899151, 0.8061361908...
func (i *InjectWrapper) WithObjectOrErr(object interface{}, err error) *InjectWrapper { if err != nil { panic(err) } i.log("Adding %T", object) o := &inject.Object{Value: object} if err := i.g.Provide(o); err != nil { panic(fmt.Sprintf("Error providing object %T:%s", object, err.Error())) } i.objects = appen...
[ -1.3745272159576416, -0.889485239982605, 0.5835092663764954, -0.12121862173080444, -0.8507334589958191, 0.9054703116416931, -0.41161638498306274, -0.8487693071365356, 0.740237295627594, 0.4240778684616089, 0.20640751719474792, 0.18887527287006378, 0.1395476758480072, -0.6811788082122803, ...
func (i InjectWrapper) MustGetNamedObject(sample interface{}, name string) interface{} { sampleType := reflect.TypeOf(sample) if sampleType.Kind() != reflect.Ptr { panic(fmt.Sprintf("Sample must be interface, found %T", sample)) } for _, obj := range i.objects { if reflect.TypeOf(obj.Value) == sampleType && obj...
[ -0.5052461624145508, -0.21806415915489197, 0.6013887524604797, -0.05048749968409538, -1.0216680765151978, 0.7696471810340881, 0.016315177083015442, -1.932844877243042, 0.12166962772607803, 0.4569670259952545, -0.6864157915115356, 0.7275034189224243, -0.9831021428108215, 0.17655137181282043...
func (i *InjectWrapper) InitializeGraphWithImplicitObjects() *InjectWrapper { i.log("Initializing %d objects", len(i.objects)) if err := i.g.Populate(); err != nil { panic(fmt.Sprintf("Error populating graph: %s", err)) } for _, obj := range i.AllObjects() { if initializer, is := obj.(Initializer); is { i.l...
[ -0.9419790506362915, 0.0300145260989666, 0.39094099402427673, 0.24058960378170013, 0.09842881560325623, 0.20128893852233887, 0.5253394842147827, -0.13972489535808563, 0.2931465208530426, 0.3475269079208374, -0.17651763558387756, -0.07436273992061615, -0.319588840007782, 0.23230810463428497...
func (i *InjectWrapper) InitializeGraph() *InjectWrapper { _ = i.InitializeGraphWithImplicitObjects() return i.CheckNoImplicitObjects() }
[ -1.4760143756866455, 1.058786153793335, 0.5121354460716248, 0.46300873160362244, -0.014151089824736118, 0.008107895962893963, 0.7533338069915771, 0.22910767793655396, 0.5282589793205261, 0.0418366864323616, -0.5435941815376282, 0.0050955465994775295, -1.0053719282150269, 0.3249215185642242...
func NewLogger(level string) *Logger { log := kitlog.NewJSONLogger(kitlog.NewSyncWriter(os.Stdout)) switch level { case "error": log = kitlevel.NewFilter(log, kitlevel.AllowError()) // only error logs case "warn": log = kitlevel.NewFilter(log, kitlevel.AllowWarn()) // warn + error logs case "info": log = kit...
[ 0.21765342354774475, -0.4237627387046814, 0.6424634456634521, -0.04429217800498009, -1.3328293561935425, -0.5895445346832275, -1.1639009714126587, -0.12929804623126984, -0.2995033860206604, -0.10699586570262909, 0.21146038174629211, 0.38919925689697266, 0.08684598654508591, 0.9409821033477...
func NewLoggerFromKitlog(log kitlog.Logger) *Logger { return &Logger{ Log: log, } }
[ 0.755332350730896, 0.1148764118552208, -0.21572154760360718, 0.4960004687309265, -1.7922693490982056, -0.1834978312253952, -1.4967637062072754, -0.3937441110610962, 0.5368717908859253, -0.2190333753824234, -0.43293237686157227, -0.8952932953834534, -0.07179734110832214, 1.263541579246521, ...
func (l *Logger) Warn(args ...interface{}) { kitlevel.Warn(l.Log).Log(args...) }
[ 0.27725932002067566, 0.2825137972831726, 0.49567633867263794, 0.4351559579372406, -0.11990465223789215, -0.08351034671068192, -0.8874379992485046, -0.022990001365542412, -0.7831827998161316, -0.5683906674385071, -0.09691061824560165, 0.7363975644111633, 0.8910968899726868, 1.15438187122344...
func (l *Logger) Info(args ...interface{}) { kitlevel.Info(l.Log).Log(args...) }
[ 0.35294604301452637, -0.3035461902618408, 0.46012693643569946, 0.6338009238243103, 0.20885038375854492, 0.11977484077215195, -0.4563787579536438, -0.07686597108840942, -1.3453229665756226, -0.1763157844543457, -0.2786320149898529, 0.09735047817230225, 0.8672332763671875, 1.7807968854904175...
func (l *Logger) Debug(args ...interface{}) { kitlevel.Debug(l.Log).Log(args...) }
[ 0.5007784366607666, 0.06454325467348099, 0.42443379759788513, 0.45334556698799133, 0.6076337099075317, 0.584750235080719, -0.5618866086006165, 0.5608636140823364, -0.34409233927726746, -0.7123473286628723, -0.01235617883503437, -0.023335525766015053, 0.3612481951713562, 1.3875404596328735,...
func circularArrayLoop(nums []int) bool { }
[ -0.7647265791893005, -1.5158138275146484, 0.17450805008411407, 0.649379551410675, -0.27959656715393066, 0.9730587005615234, 0.9669244885444641, 0.20123477280139923, 0.5904112458229065, 0.6253313422203064, -0.1160874143242836, 0.8572564125061035, -0.8456137180328369, 0.15079942345619202, ...
func (c *FakeSecretgenV1alpha1) RESTClient() rest.Interface { var ret *rest.RESTClient return ret }
[ -0.21786494553089142, -0.12996837496757507, 0.3529696762561798, 0.9527404308319092, -0.20964790880680084, 0.6826676726341248, 0.9858244061470032, -0.18967778980731964, 0.40175381302833557, -0.9104536771774292, -1.416288137435913, 0.474626749753952, -1.1134965419769287, -0.37032338976860046...
func (*Probe) XXX_OneofWrappers() []interface{} { return []interface{}{ (*Probe_FunctionLatency)(nil), } }
[ -0.8230342864990234, 0.5756669044494629, 0.5610429048538208, 0.3826054632663727, 0.8271456956863403, -0.6333098411560059, -0.8020479083061218, -0.888821005821228, 1.1799681186676025, 0.7369766235351562, 0.3557909429073334, -0.20641405880451202, -0.8989360332489014, 0.6620978713035583, 0....
func (*DeploymentSpec) XXX_OneofWrappers() []interface{} { return []interface{}{ (*DeploymentSpec_Upid)(nil), (*DeploymentSpec_SharedObject_)(nil), (*DeploymentSpec_PodProcess_)(nil), } }
[ -1.177821397781372, -0.3369274139404297, 0.44895312190055847, -0.32741865515708923, 0.7209240794181824, 0.46638670563697815, -0.21533285081386566, -0.6813299059867859, 0.7268794178962708, 0.8536230325698853, -0.3420831859111786, 0.19912879168987274, 0.454289972782135, 0.6446243524551392, ...
func (arr *varArray) Name() string { return arr.name }
[ -0.5439407229423523, -1.441445231437683, 0.3834296762943268, 0.44737157225608826, -1.089631199836731, 0.5118865370750427, 0.28312984108924866, -0.7932577729225159, 0.006302226334810257, 1.4301542043685913, 0.024589717388153076, 0.4871326684951782, -0.3900524377822876, 1.263956904411316, ...