text stringlengths 11 6.3k | embedding listlengths 768 768 |
|---|---|
func (in *GitHubWebhook) DeepCopy() *GitHubWebhook {
if in == nil {
return nil
}
out := new(GitHubWebhook)
in.DeepCopyInto(out)
return out
} | [
0.5157204270362854,
0.7613092064857483,
-0.4494320750236511,
0.810949981212616,
-0.011691702529788017,
0.7561439871788025,
0.5785763263702393,
0.5751317143440247,
0.11283789575099945,
0.053491007536649704,
-0.032107941806316376,
0.13388989865779877,
-1.0967299938201904,
0.32583358883857727... |
func (in *GitHubWebhook) DeepCopyObject() runtime.Object {
if c := in.DeepCopy(); c != nil {
return c
}
return nil
} | [
-0.037809956818819046,
-0.13401685655117035,
0.49082326889038086,
0.39505869150161743,
-0.08334825932979584,
0.6782413125038147,
1.0146299600601196,
0.4004709720611572,
-0.5443850755691528,
-0.2769336700439453,
-0.22990299761295319,
0.12914715707302094,
-0.21882571280002594,
0.111464157700... |
func (in *GitHubWebhookList) DeepCopyInto(out *GitHubWebhookList) {
*out = *in
out.TypeMeta = in.TypeMeta
in.ListMeta.DeepCopyInto(&out.ListMeta)
if in.Items != nil {
in, out := &in.Items, &out.Items
*out = make([]GitHubWebhook, len(*in))
for i := range *in {
(*in)[i].DeepCopyInto(&(*out)[i])
}
}
} | [
0.08144129067659378,
0.556187629699707,
0.45730021595954895,
0.5732654929161072,
-0.10781852900981903,
0.4038638770580292,
0.3034970760345459,
1.1095318794250488,
-1.0288546085357666,
0.5490629076957703,
-0.6673678159713745,
0.6106013655662537,
-0.42479726672172546,
0.5186622142791748,
-... |
func (in *GitHubWebhookList) DeepCopy() *GitHubWebhookList {
if in == nil {
return nil
}
out := new(GitHubWebhookList)
in.DeepCopyInto(out)
return out
} | [
-0.5428904294967651,
0.558914303779602,
-0.02232735976576805,
0.8204413652420044,
0.1348990797996521,
0.36154651641845703,
0.908722996711731,
0.508109450340271,
0.2075415551662445,
0.9151590466499329,
-0.4779853820800781,
-0.046120163053274155,
-0.5580214262008667,
0.9662895202636719,
-0... |
func (in *GitHubWebhookList) DeepCopyObject() runtime.Object {
if c := in.DeepCopy(); c != nil {
return c
}
return nil
} | [
-0.5897024273872375,
0.07661821693181992,
0.4406849145889282,
0.448811411857605,
-0.008908010087907314,
0.6258373260498047,
1.0187151432037354,
0.6259382963180542,
-0.3569117784500122,
0.14271633327007294,
-0.5537315011024475,
-0.08199936896562576,
-0.2051135003566742,
0.5137869119644165,
... |
func (in *GitHubWebhookSpec) DeepCopyInto(out *GitHubWebhookSpec) {
*out = *in
if in.ID != nil {
in, out := &in.ID, &out.ID
*out = new(int64)
**out = **in
}
out.Repository = in.Repository
if in.Secret != nil {
in, out := &in.Secret, &out.Secret
*out = new(v1.SecretKeySelector)
(*in).DeepCopyInto(*out)
... | [
0.6877005696296692,
0.155959352850914,
0.32660022377967834,
-0.28819650411605835,
-0.1818075031042099,
-0.0405561737716198,
0.13551479578018188,
0.6182470917701721,
-1.0180692672729492,
0.735464334487915,
-0.6687682867050171,
0.9059943556785583,
-0.07453101128339767,
-0.2878413498401642,
... |
func (in *GitHubWebhookSpec) DeepCopy() *GitHubWebhookSpec {
if in == nil {
return nil
}
out := new(GitHubWebhookSpec)
in.DeepCopyInto(out)
return out
} | [
0.49430134892463684,
0.16637839376926422,
-0.14703166484832764,
0.13055118918418884,
0.2690424919128418,
0.4134030044078827,
0.6239644289016724,
0.09960734099149704,
-0.07253119349479675,
1.3740525245666504,
0.10844659805297852,
0.12870776653289795,
-0.26886916160583496,
-0.172066733241081... |
func (in *GitHubWebhookStatus) DeepCopyInto(out *GitHubWebhookStatus) {
*out = *in
if in.LastObserveredUpdateTime != nil {
in, out := &in.LastObserveredUpdateTime, &out.LastObserveredUpdateTime
*out = (*in).DeepCopy()
}
if in.LastObservedSecretHash != nil {
in, out := &in.LastObservedSecretHash, &out.LastObse... | [
0.31960996985435486,
-0.2738536596298218,
0.39969155192375183,
-0.22746920585632324,
-0.31997138261795044,
0.060710225254297256,
-0.00859015341848135,
0.4270138442516327,
-0.8574888110160828,
0.2541227638721466,
-0.5784731507301331,
0.6536478996276855,
-0.26265856623649597,
-0.012024173513... |
func (in *GitHubWebhookStatus) DeepCopy() *GitHubWebhookStatus {
if in == nil {
return nil
}
out := new(GitHubWebhookStatus)
in.DeepCopyInto(out)
return out
} | [
0.0773063600063324,
-0.0662250816822052,
-0.5255887508392334,
0.20465244352817535,
0.18253889679908752,
0.26074060797691345,
0.4080829918384552,
0.2774655818939209,
-0.031178558245301247,
0.5150749087333679,
-0.3998643457889557,
-0.08090616017580032,
-0.614496111869812,
0.41771623492240906... |
func (in *Repository) DeepCopyInto(out *Repository) {
*out = *in
} | [
0.2920069098472595,
-0.09813417494297028,
0.610495924949646,
-0.11761192977428436,
-1.1085867881774902,
0.3917226195335388,
-0.27325981855392456,
0.9353470802307129,
-0.8368309736251831,
-0.646159827709198,
-1.026056170463562,
1.0999916791915894,
0.25802484154701233,
-0.20111528038978577,
... |
func (in *Repository) DeepCopy() *Repository {
if in == nil {
return nil
}
out := new(Repository)
in.DeepCopyInto(out)
return out
} | [
-0.689255952835083,
-0.05472765490412712,
0.2801707684993744,
1.193924903869629,
-0.6314281821250916,
-0.4147656559944153,
-0.0405806265771389,
0.34288498759269714,
0.562940776348114,
-0.6843641400337219,
-0.19127997756004333,
0.19594939053058624,
-0.856700599193573,
-0.706324577331543,
... |
func (this *MainController) contact_Us() {
this.Data["Title"] = "Bird clinic- Write to us"
this.Layout = "layout.tpl"
this.TplName = "contactus.html"
} | [
0.1912759393453598,
-0.41859525442123413,
0.24136292934417725,
-0.19326946139335632,
-0.36843621730804443,
0.5934790372848511,
0.9025217294692993,
0.5026329755783081,
-0.3655271828174591,
-0.5963503122329712,
0.2836434543132782,
-0.2809971570968628,
0.5830764174461365,
0.14372943341732025,... |
func (this *MainController) Symptom_Checker() {
session := this.StartSession()
userID := session.Get("UserID")
if userID == nil {
this.Redirect("/authentication", 302)
return
}
this.Data["Title"] = "Bird clinic- Symptom_checker"
this.Layout = "layout.tpl"
this.TplName = "symptoms.html"
} | [
0.8437427282333374,
-0.7434790730476379,
0.36283373832702637,
0.3423001170158386,
-0.20067349076271057,
0.26178595423698425,
0.8113847374916077,
0.544702410697937,
0.7589205503463745,
-0.33362990617752075,
0.4830848276615143,
0.4114646315574646,
0.12943068146705627,
1.2356045246124268,
0... |
func (c *Client) LeaveOrganization(ctx context.Context, params *LeaveOrganizationInput, optFns ...func(*Options)) (*LeaveOrganizationOutput, error) {
if params == nil {
params = &LeaveOrganizationInput{}
}
result, metadata, err := c.invokeOperation(ctx, "LeaveOrganization", params, optFns, addOperationLeaveOrgani... | [
-0.6752898693084717,
0.8050029277801514,
0.7005710005760193,
0.01933863013982773,
0.3654220998287201,
-0.5702071189880371,
0.6614371538162231,
-1.132279872894287,
0.7337093353271484,
-0.21598324179649353,
-0.36644113063812256,
0.3682824671268463,
-0.3383106589317322,
-0.4269741475582123,
... |
func (f *File) Name() string {
return filepath.Base(f.Path)
} | [
0.06341845542192459,
-1.2066264152526855,
0.49960920214653015,
0.44650396704673767,
-0.43225985765457153,
0.5003659725189209,
0.5939136147499084,
-0.10202760249376297,
-1.552941918373108,
0.5863635540008545,
0.1106208935379982,
-0.8760305643081665,
0.9321828484535217,
-0.09414971619844437,... |
func (f *File) Downloadable() error {
if f.DownloadLimit > 0 && f.DownloadCount >= uint(f.DownloadLimit) {
return errors.New("このファイルをダウンロード可能な回数が制限を超えました。ファイルのアップロード者にお問い合わせください。")
}
if f.Deadline != nil && f.Deadline.Sub(time.Now()) < 0 {
return errors.New("このファイルをダウンロード可能な期限が過ぎました。ファイルのアップロード者にお問い合わせください。")
}... | [
0.7101078629493713,
-0.1959793120622635,
1.012895107269287,
0.27778226137161255,
-0.35154634714126587,
0.6839744448661804,
-0.38840535283088684,
0.6316153407096863,
-0.6251516342163086,
-0.23986510932445526,
-0.011753634549677372,
-0.4631952941417694,
-0.18815341591835022,
0.68303662538528... |
func (f *File) FormatDeadline() string {
if f.Deadline == nil {
return "無期限"
}
jst := time.FixedZone("Asia/Tokyo", 9*60*60)
return f.Deadline.In(jst).Format("2006/01/02 15:04")
} | [
0.46462517976760864,
-0.7317785024642944,
0.7906115055084229,
0.13849738240242004,
-0.24044376611709595,
0.6994184255599976,
-0.19803160429000854,
-0.20156195759773254,
-0.06187446415424347,
0.6387580633163452,
0.6090837717056274,
-0.3644735515117645,
-0.12170969694852829,
0.63099992275238... |
func (f *File) RemainingDownloadableCount() int {
return f.DownloadLimit - int(f.DownloadCount)
} | [
0.4548584520816803,
-0.5773574113845825,
0.5640454888343811,
-0.39785900712013245,
-0.88065505027771,
0.37087440490722656,
-0.11300428956747055,
-0.019329389557242393,
-0.8771868348121643,
-1.0584149360656738,
-0.24609115719795227,
-0.21532630920410156,
-0.6639257073402405,
0.6207455992698... |
func NewConfig(fns ...OptionFunc) *Config {
conf := &Config{
Transform: &TransformConfig{},
Readable: &ReadableConfig{},
Writable: &WritableConfig{},
}
for _, fn := range fns {
fn(conf)
}
return conf
} | [
0.0555541105568409,
0.15807873010635376,
0.3540804982185364,
0.5656229853630066,
0.2858209013938904,
-0.5093290209770203,
0.08231208473443985,
0.5698057413101196,
-0.5552816987037659,
-0.6042938828468323,
-0.23311634361743927,
0.2502025067806244,
0.5219908952713013,
0.2620164155960083,
-... |
func NewTuringMachine(inputStates []string,
voidSymbol rune,
initialState string,
finalStates []string,
transitions [][]string,
input string) *TuringMachine {
turingMachine := new(TuringMachine)
turingM... | [
-0.9407996535301208,
0.2834430932998657,
0.6737555265426636,
-0.5474982261657715,
-0.5350815653800964,
0.2894488275051117,
0.41770729422569275,
0.3479377329349518,
-0.49041056632995605,
0.10700056701898575,
-0.5245810747146606,
-0.4008997678756714,
-0.14815129339694977,
0.13106419146060944... |
func (turingMachine *TuringMachine) Execute() bool {
symbol := turingMachine.tape.GetSymbol()
state := turingMachine.currentState
argument := Argument{state, symbol}
result, isDefined := turingMachine.delta.GetResult(argument)
if !isDefined {
turingMachine.hasFinished = true
return ... | [
-0.9207668304443359,
0.36178335547447205,
1.0641722679138184,
-0.36652448773384094,
0.32388243079185486,
0.6240453124046326,
-0.15508519113063812,
-0.435577929019928,
-0.5209257006645203,
0.2187122255563736,
-0.8902634978294373,
-1.2971347570419312,
-0.2994520366191864,
0.04924203455448150... |
func (turingMachine *TuringMachine) HasFinished() bool {
return turingMachine.hasFinished
} | [
0.5165743231773376,
0.3643857538700104,
0.37855401635169983,
-0.25657451152801514,
0.15882070362567902,
0.09411466866731644,
0.11789387464523315,
-0.18662258982658386,
-1.3722563982009888,
-0.3941754102706909,
-1.7925784587860107,
-0.45960479974746704,
0.007103871554136276,
1.2420090436935... |
func (turingMachine *TuringMachine) GetConfiguration() string {
return turingMachine.tape.GetConfiguration(turingMachine.currentState.name)
} | [
-0.41946783661842346,
-0.3370898962020874,
0.1746121346950531,
0.03288475424051285,
-0.39104941487312317,
-0.48888441920280457,
0.3541554808616638,
-0.7253158688545227,
-0.287524938583374,
0.622400164604187,
-0.41974860429763794,
-0.9152301549911499,
0.1997954398393631,
1.027462124824524,
... |
func GetEnterpriseLogicDatabases(ctx *pulumi.Context, args *GetEnterpriseLogicDatabasesArgs, opts ...pulumi.InvokeOption) (*GetEnterpriseLogicDatabasesResult, error) {
opts = internal.PkgInvokeDefaultOpts(opts)
var rv GetEnterpriseLogicDatabasesResult
err := ctx.Invoke("alicloud:dms/getEnterpriseLogicDatabases:getEn... | [
-0.9436331391334534,
1.7575740814208984,
0.7137735486030579,
0.05429602786898613,
1.1402274370193481,
0.43996667861938477,
-0.21501599252223969,
-0.22419844567775726,
1.0467125177383423,
0.13954953849315643,
-0.19021861255168915,
1.2834484577178955,
-0.6879920959472656,
-0.9526116847991943... |
func (o GetEnterpriseLogicDatabasesResultOutput) Databases() GetEnterpriseLogicDatabasesDatabaseArrayOutput {
return o.ApplyT(func(v GetEnterpriseLogicDatabasesResult) []GetEnterpriseLogicDatabasesDatabase { return v.Databases }).(GetEnterpriseLogicDatabasesDatabaseArrayOutput)
} | [
-0.45605430006980896,
0.7168091535568237,
0.5081449747085571,
-0.3500485122203827,
0.7576529383659363,
0.3817155063152313,
0.27472442388534546,
-0.4797886312007904,
1.1738580465316772,
0.026017971336841583,
-0.1311865746974945,
0.6896790266036987,
-0.06828247010707855,
-0.39292851090431213... |
func (o GetEnterpriseLogicDatabasesResultOutput) Id() pulumi.StringOutput {
return o.ApplyT(func(v GetEnterpriseLogicDatabasesResult) string { return v.Id }).(pulumi.StringOutput)
} | [
0.5793721079826355,
0.9680825471878052,
0.3038414418697357,
-0.34123608469963074,
0.9902424216270447,
1.0508991479873657,
0.2654819190502167,
0.1813819408416748,
1.3453644514083862,
0.27970144152641296,
-0.3864632844924927,
0.5472738146781921,
-0.7692779898643494,
-0.8963321447372437,
-0... |
func (o GetEnterpriseLogicDatabasesResultOutput) Ids() pulumi.StringArrayOutput {
return o.ApplyT(func(v GetEnterpriseLogicDatabasesResult) []string { return v.Ids }).(pulumi.StringArrayOutput)
} | [
-0.3163689374923706,
0.9927970767021179,
0.3183526396751404,
-0.34043824672698975,
1.6406912803649902,
0.6901628375053406,
-0.1500343233346939,
-0.11570166796445847,
1.077701449394226,
0.6015567183494568,
-0.7167812585830688,
0.8666653037071228,
-0.593575656414032,
-0.6930340528488159,
-... |
func RegisterConversions(s *runtime.Scheme) error {
if err := s.AddGeneratedConversionFunc((*Fischer)(nil), (*wardle.Fischer)(nil), func(a, b interface{}, scope conversion.Scope) error {
return Convert_v1alpha1_Fischer_To_wardle_Fischer(a.(*Fischer), b.(*wardle.Fischer), scope)
}); err != nil {
return err
}
if ... | [
-0.9387342929840088,
0.2883791923522949,
0.946594774723053,
0.20963971316814423,
0.5590075254440308,
-0.7074303030967712,
1.0794333219528198,
-0.3057693839073181,
-0.2352144420146942,
0.07207417488098145,
-1.0875051021575928,
0.6776553392410278,
0.27456608414649963,
1.4561078548431396,
0... |
func Convert_v1alpha1_Fischer_To_wardle_Fischer(in *Fischer, out *wardle.Fischer, s conversion.Scope) error {
return autoConvert_v1alpha1_Fischer_To_wardle_Fischer(in, out, s)
} | [
-0.0009882338345050812,
-0.0681176483631134,
0.12147673964500427,
-0.17347779870033264,
0.13419733941555023,
-0.26691102981567383,
0.6525733470916748,
0.9793112277984619,
-0.38720831274986267,
0.22195109724998474,
-0.1277603805065155,
1.6402008533477783,
-0.1424626111984253,
0.679348111152... |
func Convert_wardle_Fischer_To_v1alpha1_Fischer(in *wardle.Fischer, out *Fischer, s conversion.Scope) error {
return autoConvert_wardle_Fischer_To_v1alpha1_Fischer(in, out, s)
} | [
-0.21599754691123962,
-0.5969144105911255,
0.15896880626678467,
0.4324913024902344,
-0.4511128067970276,
-0.02862902730703354,
0.2416336089372635,
0.5553721785545349,
-0.2684178352355957,
0.9115598797798157,
0.003926236182451248,
1.6008925437927246,
0.502893328666687,
0.9167330265045166,
... |
func Convert_v1alpha1_FischerList_To_wardle_FischerList(in *FischerList, out *wardle.FischerList, s conversion.Scope) error {
return autoConvert_v1alpha1_FischerList_To_wardle_FischerList(in, out, s)
} | [
-0.5110088586807251,
0.0019978992640972137,
0.07693891227245331,
0.5075598359107971,
0.15483923256397247,
-0.30712783336639404,
0.7349879145622253,
0.9296498894691467,
0.11132029443979263,
0.47762107849121094,
-0.5950339436531067,
1.4361741542816162,
-0.04038897156715393,
1.291204333305358... |
func Convert_wardle_FischerList_To_v1alpha1_FischerList(in *wardle.FischerList, out *FischerList, s conversion.Scope) error {
return autoConvert_wardle_FischerList_To_v1alpha1_FischerList(in, out, s)
} | [
-0.6789554357528687,
-0.3811914026737213,
0.3933812081813812,
1.1296942234039307,
-0.27771589159965515,
0.04709655046463013,
0.3549965023994446,
0.9895859956741333,
0.09070524573326111,
1.1938552856445312,
-0.7092348337173462,
1.5288121700286865,
0.5508788824081421,
1.6995666027069092,
-... |
func Convert_v1alpha1_Flunder_To_wardle_Flunder(in *Flunder, out *wardle.Flunder, s conversion.Scope) error {
return autoConvert_v1alpha1_Flunder_To_wardle_Flunder(in, out, s)
} | [
-0.48967787623405457,
-0.1807975172996521,
0.135275200009346,
-0.7053124308586121,
-0.4170733690261841,
-0.6344900727272034,
1.046622633934021,
0.0591106079518795,
0.4979325532913208,
-0.6424380540847778,
-0.38282445073127747,
1.2755722999572754,
0.06335382163524628,
1.186546802520752,
-... |
func Convert_wardle_Flunder_To_v1alpha1_Flunder(in *wardle.Flunder, out *Flunder, s conversion.Scope) error {
return autoConvert_wardle_Flunder_To_v1alpha1_Flunder(in, out, s)
} | [
-0.6597800850868225,
-0.6013244390487671,
0.2348487377166748,
0.13646115362644196,
-0.8429210186004639,
-0.20642724633216858,
0.5399872064590454,
0.08955337107181549,
0.5218350291252136,
-0.062035784125328064,
-0.41073694825172424,
1.197835922241211,
0.4044803977012634,
1.5344719886779785,... |
func Convert_v1alpha1_FlunderList_To_wardle_FlunderList(in *FlunderList, out *wardle.FlunderList, s conversion.Scope) error {
return autoConvert_v1alpha1_FlunderList_To_wardle_FlunderList(in, out, s)
} | [
-0.8687224984169006,
0.2743808329105377,
0.0911923199892044,
-0.16038517653942108,
-0.2356683611869812,
-0.48792216181755066,
1.274000644683838,
0.2641559839248657,
0.4105621874332428,
0.089216448366642,
-1.266901969909668,
1.4451751708984375,
-0.050473880022764206,
1.2399157285690308,
-... |
func Convert_wardle_FlunderList_To_v1alpha1_FlunderList(in *wardle.FlunderList, out *FlunderList, s conversion.Scope) error {
return autoConvert_wardle_FlunderList_To_v1alpha1_FlunderList(in, out, s)
} | [
-1.043470859527588,
-0.05825522914528847,
0.4236065745353699,
0.5267854332923889,
-0.7176826000213623,
-0.1334535777568817,
0.8670598864555359,
0.5578757524490356,
0.4600597321987152,
0.8477261066436768,
-1.4080449342727661,
1.4704927206039429,
0.6388784050941467,
1.5358706712722778,
-1.... |
func Convert_v1alpha1_FlunderStatus_To_wardle_FlunderStatus(in *FlunderStatus, out *wardle.FlunderStatus, s conversion.Scope) error {
return autoConvert_v1alpha1_FlunderStatus_To_wardle_FlunderStatus(in, out, s)
} | [
-0.6054072976112366,
-0.22800235450267792,
0.011639613658189774,
-0.9174230098724365,
-0.32210391759872437,
-0.2622508108615875,
0.7374954223632812,
0.5456321239471436,
0.4521251618862152,
-0.2827100157737732,
-1.117919683456421,
1.487053632736206,
0.2677232325077057,
0.6977654695510864,
... |
func Convert_wardle_FlunderStatus_To_v1alpha1_FlunderStatus(in *wardle.FlunderStatus, out *FlunderStatus, s conversion.Scope) error {
return autoConvert_wardle_FlunderStatus_To_v1alpha1_FlunderStatus(in, out, s)
} | [
-0.8945208191871643,
-0.5013307332992554,
0.27819857001304626,
-0.16896793246269226,
-0.8427197933197021,
0.04380801320075989,
0.4135940670967102,
0.5642030239105225,
0.4788040220737457,
0.35940179228782654,
-1.284612774848938,
1.8633579015731812,
0.6656215786933899,
0.7031940221786499,
... |
func (this UUID) Hex() string {
x := [16]byte(this)
return fmt.Sprintf("%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x",
x[0], x[1], x[2], x[3], x[4],
x[5], x[6],
x[7], x[8],
x[9], x[10], x[11], x[12], x[13], x[14], x[15])
} | [
-0.12422560900449753,
-0.42338743805885315,
0.9378362894058228,
-0.3989739716053009,
0.0376705639064312,
0.4219723343849182,
-0.8569149971008301,
0.9910061955451965,
0.23671546578407288,
0.2767585217952728,
-0.38300323486328125,
-0.11088468879461288,
-0.3617653250694275,
-1.124644994735717... |
func Rand() UUID {
var x [16]byte
randBytes(x[:])
x[6] = (x[6] & 0x0F) | 0x40
x[8] = (x[8] & 0x3F) | 0x80
return x
} | [
-0.46898338198661804,
0.7186241149902344,
0.21534685790538788,
-0.48479321599006653,
-0.05897335708141327,
0.6855003833770752,
0.018130678683519363,
0.01200063806027174,
1.1366409063339233,
-0.025404229760169983,
0.026192691177129745,
0.587090253829956,
-0.8454969525337219,
-0.685835063457... |
func MustFromStr(s string) UUID {
id, err := FromStr(s)
if err != nil {
panic(err)
}
return id
} | [
-0.26622894406318665,
-1.0828742980957031,
0.3150761127471924,
0.2605828046798706,
-1.2260873317718506,
0.9872269630432129,
-0.7185966372489929,
-0.48937830328941345,
0.0990525409579277,
0.3686031103134155,
-0.13509368896484375,
0.2308911234140396,
-0.25422540307044983,
-0.4710363149642944... |
func randBytes(x []byte) {
length := len(x)
n, err := crand.Read(x)
if n != length || err != nil {
if !seeded {
mrand.Seed(time.Now().UnixNano())
}
for length > 0 {
length--
x[length] = byte(mrand.Int31n(256))
}
}
} | [
-0.05781428515911102,
0.8884860873222351,
0.34370407462120056,
-0.31833213567733765,
-0.14498040080070496,
0.6419646143913269,
0.12386994808912277,
-0.5033209323883057,
1.2258830070495605,
0.7069613337516785,
-0.23725615441799164,
-0.47153276205062866,
-1.1449626684188843,
0.32929298281669... |
func ScopesToRules(scopes []string, namespace string, clusterRoleGetter rbaclisters.ClusterRoleLister) ([]rbacv1.PolicyRule, error) {
rules := append([]rbacv1.PolicyRule{}, scopeDiscoveryRule)
errors := []error{}
for _, scope := range scopes {
found := false
for _, evaluator := range ScopeEvaluators {
if ev... | [
-0.6858035922050476,
-0.09519726037979126,
0.07151224464178085,
-0.8817960619926453,
0.26390549540519714,
0.10944559425115585,
-0.3998592495918274,
0.084622822701931,
0.5418910980224609,
0.9833539128303528,
0.28578823804855347,
0.8723574280738831,
-0.8737933039665222,
0.9727134108543396,
... |
func ScopesToVisibleNamespaces(scopes []string, clusterRoleGetter rbaclisters.ClusterRoleLister, ignoreUnhandledScopes bool) (sets.String, error) {
if len(scopes) == 0 {
return sets.NewString("*"), nil
}
visibleNamespaces := sets.String{}
errors := []error{}
for _, scope := range scopes {
found := false
f... | [
-0.17632874846458435,
-0.018524251878261566,
0.3795873522758484,
-0.779866635799408,
-1.0217620134353638,
0.3644965887069702,
0.37219396233558655,
-0.6908169388771057,
0.5408973693847656,
1.2001926898956299,
0.08882836252450943,
0.5895286798477173,
-0.4242079257965088,
0.9664575457572937,
... |
func (e clusterRoleEvaluator) resolveRules(scope string, clusterRoleGetter rbaclisters.ClusterRoleLister) ([]rbacv1.PolicyRule, error) {
roleName, _, escalating, err := scopemetadata.ClusterRoleEvaluatorParseScope(scope)
if err != nil {
return nil, err
}
role, err := clusterRoleGetter.Get(roleName)
if err != ni... | [
-0.09009344130754471,
-0.15950225293636322,
0.49990493059158325,
-0.5552573800086975,
0.3118877410888672,
0.23978233337402344,
-0.4419882297515869,
0.3147036135196686,
0.29879117012023926,
1.1190415620803833,
0.42955848574638367,
0.2713412344455719,
-0.4537290930747986,
0.8212096691131592,... |
func removeEscalatingResources(in rbacv1.PolicyRule) rbacv1.PolicyRule {
var ruleCopy *rbacv1.PolicyRule
for _, resource := range escalatingScopeResources {
if !(has(in.APIGroups, resource.Group) && has(in.Resources, resource.Resource)) {
continue
}
if ruleCopy == nil {
// we're using a cache of cache o... | [
0.00680795032531023,
-0.47194892168045044,
0.1042189821600914,
-0.6767857670783997,
-0.5451799631118774,
0.40568700432777405,
0.35839465260505676,
0.37952950596809387,
0.29001542925834656,
1.0269064903259277,
0.2174193561077118,
-0.26902276277542114,
-0.684700071811676,
0.7518364191055298,... |
func (t *Trace) Printf(format string, a ...interface{}) {
t.t.Printf(format, a...)
} | [
0.6355333924293518,
0.027032723650336266,
0.41187188029289246,
0.35838767886161804,
0.8680930733680725,
0.06294254958629608,
0.8223568797111511,
-0.3051780164241791,
-0.4770881235599518,
-0.6085835099220276,
0.15122787654399872,
0.2252231389284134,
0.6596167683601379,
0.5270130038261414,
... |
func (t *Trace) Finish() {
t.t.Finish()
} | [
1.213383436203003,
-0.3440791368484497,
0.045402806252241135,
-0.4693149924278259,
0.922042965888977,
0.6956220269203186,
0.14069074392318726,
-1.3211443424224854,
-1.0532164573669434,
1.081681251525879,
-1.36865234375,
0.3659875690937042,
-0.21720477938652039,
0.9952144622802734,
0.1842... |
func (t *Trace) Question(qs []dns.Question) {
if log.V(1) {
t.lprintf(1, questionsToString(qs))
}
} | [
0.2999442517757416,
-0.5431513786315918,
0.13806995749473572,
0.1501064896583557,
0.41729894280433655,
0.7198924422264099,
0.11974579840898514,
-0.49000221490859985,
1.2940471172332764,
-0.15229037404060364,
-0.040798451751470566,
0.5061501264572144,
0.6134793162345886,
0.4102958142757416,... |
func (t *Trace) Answer(m *dns.Msg) {
if !log.V(1) {
return
}
t.lprintf(1, m.MsgHdr.String())
for _, rr := range m.Answer {
t.lprintf(1, rr.String())
}
} | [
0.31941986083984375,
-0.01076599396765232,
0.41457515954971313,
-0.33926522731781006,
0.0729328989982605,
0.2573521137237549,
0.938927412033081,
-0.22024817764759064,
0.34233877062797546,
0.5748297572135925,
-0.0031825497280806303,
0.48585015535354614,
-0.42599982023239136,
1.0187920331954... |
func (l *Locker) Lock(ctx context.Context, key string, expiration time.Time) (locked bool, e error) {
l.init.Do(l.getState)
// Conditional put on item not present
now := time.Now().UnixNano() / int64(time.Millisecond)
nowString := strconv.FormatInt(now, 10)
expString := strconv.FormatInt(expiration.UnixNano()/int6... | [
-1.0566577911376953,
0.624130368232727,
0.7398580312728882,
-0.35409116744995117,
-0.22066770493984222,
0.5131813287734985,
0.5022501945495605,
0.13524234294891357,
-0.2974552512168884,
0.4021144211292267,
0.0006843464216217399,
-0.13626711070537567,
0.4529222846031189,
-0.4924971461296081... |
func (l *Locker) Unlock(ctx context.Context, key string) error {
l.init.Do(l.getState)
entryNotExist := fmt.Sprintf("attribute_not_exists(%s)", l.state.tableKey)
owned := "nodeId = :nodeId"
dynamoKey := map[string]*dynamodb.AttributeValue{}
dynamoKey[l.state.tableKey] = &dynamodb.AttributeValue{S: aws.String(key)... | [
-0.8480193018913269,
0.6670228242874146,
0.6510850787162781,
0.4552454948425293,
-0.19148989021778107,
0.01961353048682213,
0.40998461842536926,
0.7127966284751892,
0.20732760429382324,
0.32489046454429626,
0.8782508373260498,
0.35542747378349304,
0.25885435938835144,
-0.3992624282836914,
... |
func NewGoMockDiskStorage(ctrl *gomock.Controller) *GoMockDiskStorage {
mock := &GoMockDiskStorage{ctrl: ctrl}
mock.recorder = &GoMockDiskStorageMockRecorder{mock}
return mock
} | [
-0.17421914637088776,
0.7671322226524353,
0.27242547273635864,
0.44327855110168457,
0.23183673620224,
-0.466583788394928,
0.6867316365242004,
-0.010533108375966549,
-0.5844372510910034,
0.10070840269327164,
-0.6347795128822327,
-0.5674130916595459,
0.0049501522444188595,
1.287235975265503,... |
func (m *GoMockDiskStorage) EXPECT() *GoMockDiskStorageMockRecorder {
return m.recorder
} | [
0.06864754855632782,
0.08541729301214218,
0.3613215982913971,
0.5152553915977478,
0.35726872086524963,
-0.18467871844768524,
-0.19746217131614685,
0.5849530696868896,
-0.4414556920528412,
-0.5531267523765564,
0.8353793621063232,
0.5593264698982239,
-0.4536343216896057,
0.8072913885116577,
... |
func (m *GoMockDiskStorage) Delete(filePath string) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Delete", filePath)
ret0, _ := ret[0].(error)
return ret0
} | [
0.04456637054681778,
0.41497504711151123,
0.3401274085044861,
1.0535228252410889,
1.7947168350219727,
0.23031668365001678,
0.8176544308662415,
-0.4006182849407196,
-0.2661232054233551,
-0.08818638324737549,
0.05452204495668411,
-0.3056301474571228,
-0.8047932982444763,
1.0530720949172974,
... |
func (mr *GoMockDiskStorageMockRecorder) Delete(filePath interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*GoMockDiskStorage)(nil).Delete), filePath)
} | [
0.12564362585544586,
0.70066237449646,
0.45700037479400635,
0.7949337959289551,
0.6207787990570068,
0.34421199560165405,
-0.2439270317554474,
-0.7908706068992615,
0.8516164422035217,
0.6530485153198242,
1.0150225162506104,
0.36308497190475464,
-0.9087740182876587,
1.392266869544983,
-0.3... |
func (m *GoMockDiskStorage) Download(ctx context.Context, targetURL, filePath string) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Download", ctx, targetURL, filePath)
ret0, _ := ret[0].(error)
return ret0
} | [
-0.35762080550193787,
-0.16380448639392853,
0.2913692593574524,
0.896517813205719,
1.0614371299743652,
0.28738823533058167,
0.901424765586853,
-0.11936759948730469,
-0.46393904089927673,
-0.6840051412582397,
-0.5371003150939941,
-0.5900068879127502,
-0.24666795134544373,
0.8166870474815369... |
func (mr *GoMockDiskStorageMockRecorder) Download(ctx, targetURL, filePath interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Download", reflect.TypeOf((*GoMockDiskStorage)(nil).Download), ctx, targetURL, filePath)
} | [
-0.10928107053041458,
0.37779226899147034,
0.34569188952445984,
0.7816269397735596,
0.1663340926170349,
0.04704878851771355,
-0.08254557102918625,
-0.6311604976654053,
0.6523221135139465,
0.15518131852149963,
0.6167383193969727,
0.30214744806289673,
-0.7077118158340454,
1.475043773651123,
... |
func (m *GoMockDiskStorage) GetBuffer() *bytes.Buffer {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetBuffer")
ret0, _ := ret[0].(*bytes.Buffer)
return ret0
} | [
0.18888960778713226,
0.4844449460506439,
0.581635594367981,
0.8112260103225708,
1.1757762432098389,
0.23411493003368378,
1.3762661218643188,
-0.6981714963912964,
0.22173972427845,
-1.2202645540237427,
-0.7087818384170532,
0.01478616800159216,
-0.9733418226242065,
1.6161643266677856,
0.72... |
func (mr *GoMockDiskStorageMockRecorder) GetBuffer() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBuffer", reflect.TypeOf((*GoMockDiskStorage)(nil).GetBuffer))
} | [
0.5313870906829834,
0.983590841293335,
0.596763014793396,
0.5791628360748291,
0.5397909283638,
0.043739985674619675,
0.3375963568687439,
-1.121371865272522,
0.9932091236114502,
-0.06386056542396545,
0.5512629747390747,
0.9520581960678101,
-1.0993843078613281,
1.7665385007858276,
0.510003... |
func (m *GoMockDiskStorage) ResetBuffer() {
m.ctrl.T.Helper()
m.ctrl.Call(m, "ResetBuffer")
} | [
-0.30579715967178345,
0.41014358401298523,
0.07982625812292099,
0.9818586707115173,
1.4676342010498047,
0.07659813016653061,
1.4135372638702393,
0.30851083993911743,
-0.3739655613899231,
-0.8638818264007568,
-0.5987834334373474,
0.32771366834640503,
-0.9272623658180237,
1.4096527099609375,... |
func (mr *GoMockDiskStorageMockRecorder) ResetBuffer() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ResetBuffer", reflect.TypeOf((*GoMockDiskStorage)(nil).ResetBuffer))
} | [
-0.1431179940700531,
0.7074825167655945,
0.21690581738948822,
0.5908106565475464,
0.4480588436126709,
0.035834189504384995,
0.4788672626018524,
-0.1287364959716797,
0.47046852111816406,
-0.014401031658053398,
0.13216282427310944,
0.6420767307281494,
-1.6005899906158447,
1.285142421722412,
... |
func (m *GoMockDiskStorage) Write(chunk []byte) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Write", chunk)
ret0, _ := ret[0].(error)
return ret0
} | [
-0.9454512596130371,
-0.07986965030431747,
0.07219256460666656,
0.8693029284477234,
2.0211920738220215,
0.11048955470323563,
0.7898658514022827,
-0.3405836820602417,
-1.0236159563064575,
-0.11809536069631577,
-0.4117714762687683,
-0.7364277243614197,
-0.5613600015640259,
1.0504658222198486... |
func (mr *GoMockDiskStorageMockRecorder) Write(chunk interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Write", reflect.TypeOf((*GoMockDiskStorage)(nil).Write), chunk)
} | [
-0.8355814814567566,
0.28557536005973816,
0.16962191462516785,
0.6770672798156738,
0.7793144583702087,
-0.11295151710510254,
-0.18012237548828125,
-0.7867853045463562,
0.16088680922985077,
0.6772375106811523,
0.50486159324646,
0.11453288793563843,
-0.7757636308670044,
1.5425121784210205,
... |
func (m *GoMockDiskStorage) WriteFile(filePath string, perm os.FileMode) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "WriteFile", filePath, perm)
ret0, _ := ret[0].(error)
return ret0
} | [
-0.6418136358261108,
-0.15929074585437775,
0.09482531249523163,
0.39972153306007385,
1.8042703866958618,
0.5607904195785522,
1.7717775106430054,
-0.2588551640510559,
-1.2126562595367432,
-0.24429428577423096,
0.08949097245931625,
-0.821844220161438,
-1.1819794178009033,
0.8750666975975037,... |
func (mr *GoMockDiskStorageMockRecorder) WriteFile(filePath, perm interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WriteFile", reflect.TypeOf((*GoMockDiskStorage)(nil).WriteFile), filePath, perm)
} | [
-0.2997426986694336,
0.22311462461948395,
0.2905205488204956,
0.27654528617858887,
0.5522022247314453,
0.3322262167930603,
0.3335605561733246,
-0.3497285842895508,
-0.006042433902621269,
0.20063073933124542,
1.0464794635772705,
0.025942740961909294,
-1.1611019372940063,
1.0277973413467407,... |
func NewMockHTTPClient(ctrl *gomock.Controller) *MockHTTPClient {
mock := &MockHTTPClient{ctrl: ctrl}
mock.recorder = &MockHTTPClientMockRecorder{mock}
return mock
} | [
-0.20328180491924286,
-0.14082922041416168,
0.3420364558696747,
0.6264882683753967,
-0.1762724071741104,
0.3932950794696808,
0.6372296214103699,
-0.40716925263404846,
0.06421277672052383,
0.4423986077308655,
-0.5237451195716858,
0.501654863357544,
-0.9562451243400574,
0.49690744280815125,
... |
func (m *MockHTTPClient) EXPECT() *MockHTTPClientMockRecorder {
return m.recorder
} | [
0.10392045229673386,
-0.027596365660429,
0.3422122597694397,
-0.020084356889128685,
-0.06634445488452911,
0.4986647367477417,
-0.09130895882844925,
-0.049881525337696075,
-0.12506292760372162,
-0.32729101181030273,
0.5686355829238892,
0.9231247305870056,
-1.059464931488037,
0.7679749131202... |
func (m *MockHTTPClient) Do(req *http.Request) (*http.Response, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Do", req)
ret0, _ := ret[0].(*http.Response)
ret1, _ := ret[1].(error)
return ret0, ret1
} | [
-1.040371298789978,
-0.13700315356254578,
0.43833667039871216,
0.8757058382034302,
1.58518648147583,
0.7011699676513672,
0.47397369146347046,
-1.0327174663543701,
-0.8485682606697083,
-0.025217946618795395,
-0.8814865350723267,
-0.2706588804721832,
-0.0599759966135025,
1.144507646560669,
... |
func (mr *MockHTTPClientMockRecorder) Do(req interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Do", reflect.TypeOf((*MockHTTPClient)(nil).Do), req)
} | [
-0.3198710083961487,
0.7811253070831299,
0.3303981125354767,
0.49707654118537903,
0.5897971987724304,
1.0565297603607178,
-0.49744781851768494,
-1.5269094705581665,
0.05237643048167229,
0.7151466012001038,
0.45271867513656616,
0.8951455354690552,
-0.4785022437572479,
1.647233009338379,
-... |
func (gs *GasStation) AddColumn() {
newGC := &GasColumn{
number: len(gs.gasColumnList),
workTime: 0,
maxQueue: 1,
enable: false,
}
gs.gasColumnList = append(gs.gasColumnList, newGC)
gs.addColumnToQueue(*newGC)
} | [
-0.5023603439331055,
-0.6278778910636902,
0.6678900122642517,
0.1409648358821869,
0.8716354370117188,
0.3344852030277252,
-0.22410686314105988,
0.5679706335067749,
-0.708034098148346,
-0.7836366891860962,
-0.6841409802436829,
0.05839892476797104,
-0.3383057415485382,
0.8141669631004333,
... |
func (gs *GasStation) addColumnToQueue(gc GasColumn) {
var cl *ClientQueue
gs.queueForEachColumn[gc] = cl
} | [
-0.1684490293264389,
-1.0872299671173096,
0.480894535779953,
-0.7317532300949097,
1.0688138008117676,
0.9088438749313354,
-0.06194578483700752,
-0.8705946207046509,
-1.1686487197875977,
-0.021411344408988953,
-0.4329662024974823,
0.2927209734916687,
0.35535040497779846,
0.33238711953163147... |
func (gs *GasStation) ChangeMaxQueueColumn(n int, max int) {
gs.gasColumnList[n-1].maxQueue = max
} | [
-1.1859217882156372,
-1.0687472820281982,
0.35097166895866394,
0.2943223714828491,
-0.013453328050673008,
-0.26484957337379456,
-0.702549159526825,
0.27359122037887573,
-1.0890034437179565,
0.506780743598938,
-1.2413439750671387,
1.194176435470581,
0.40910884737968445,
0.6613920331001282,
... |
func NewDarkStyle() *Style {
// Fonts to use
const textFont = "fonts/FreeSans.ttf"
const iconFont = "fonts/MaterialIcons-Regular.ttf"
s := new(Style)
// Creates text font
fontData := assets.MustAsset(textFont)
font, err := text.NewFontFromData(fontData)
if err != nil {
panic(err)
}
s.Font = font
// Crea... | [
0.3822069466114044,
-1.127458930015564,
0.8401408195495605,
-0.5081967115402222,
-1.0539484024047852,
-0.862424910068512,
-0.13962164521217346,
-0.19566218554973602,
-0.10648156702518463,
-0.013738087378442287,
0.09689563512802124,
0.6191024780273438,
0.4274856448173523,
0.1639549285173416... |
func NewDescribeTableRequest() *DescribeTableRequest {
req := new(DescribeTableRequest)
req.Host.Service = "dynamodb"
req.Host.Region = ""
req.Host.Domain = "amazonaws.com"
req.Key.AccessKeyId = ""
req.Key.SecretAccessKey = ""
req.Headers = make(map[string]string)
req.Headers["X-Amz-Targ... | [
-0.22051425278186798,
0.05291878432035446,
0.6415808796882629,
0.4063974916934967,
-0.0890776589512825,
-0.4592008590698242,
-0.7301775813102722,
0.09778325259685516,
-0.27453988790512085,
-0.5002288818359375,
0.018691129982471466,
1.0911411046981812,
-0.05026658624410629,
1.11427128314971... |
func TestExprIsNeverNull(t *testing.T) {
defer leaktest.AfterTest(t)()
datadriven.Walk(t, "testdata/expr", func(t *testing.T, path string) {
catalog := testcat.New()
datadriven.RunTest(t, path, func(t *testing.T, d *datadriven.TestData) string {
tester := opttester.New(catalog, d.Input)
switch d.Cmd {
... | [
0.4375651180744171,
0.41670966148376465,
0.9200527667999268,
0.4160279631614685,
-0.20900042355060577,
-0.42150217294692993,
-0.17336224019527435,
-0.4007694721221924,
0.14893503487110138,
0.056366268545389175,
-0.5619716048240662,
0.7489684224128723,
0.019999144598841667,
0.45963156223297... |
func (u UUID) String() string {
if b := getBackend(); b != "" {
return b
}
return uuid.New().String()
} | [
0.5271010994911194,
-0.18120905756950378,
0.3032204508781433,
0.3421744704246521,
-0.1394568532705307,
0.45597776770591736,
0.5328859686851501,
-0.007824957370758057,
0.0325508713722229,
0.3620043396949768,
0.7819918990135193,
0.780454158782959,
-1.2073643207550049,
-0.7474228739738464,
... |
func Mock(fake string) func() {
mutex.Lock()
defer mutex.Unlock()
origin := backend
backend = fake
return func() { Mock(origin) }
} | [
-0.17774724960327148,
0.5121828317642212,
0.44414666295051575,
-0.36487749218940735,
0.03329979255795479,
-0.07114456593990326,
0.6000442504882812,
0.6096254587173462,
-0.35571178793907166,
0.469704806804657,
-0.22020168602466583,
0.26789242029190063,
-0.2432829588651657,
-1.17204082012176... |
func New() UUID {
return UUID{}
} | [
-0.17787876725196838,
-1.3355457782745361,
0.09963664412498474,
-0.018258895725011826,
-0.9562838673591614,
-0.06837321817874908,
0.19727462530136108,
1.565828800201416,
-0.9819018840789795,
-0.4573987126350403,
0.025792237371206284,
0.3064676523208618,
0.6318564414978027,
-0.1831581443548... |
func TestEncryptionRotation(t *testing.T) {
library.TestEncryptionRotation(t, library.RotationScenario{
BasicScenario: library.BasicScenario{
Namespace: operatorclient.GlobalMachineSpecifiedConfigNamespace,
LabelSelector: "encryption.apiserver.operator.openshift.io/compo... | [
-0.8991768956184387,
0.7357605695724487,
0.583709716796875,
-0.15873350203037262,
0.3092727065086365,
-0.11545594036579132,
0.8265976905822754,
-0.1639619618654251,
0.3669094145298004,
0.5536181926727295,
-0.887058675289154,
-0.4893999993801117,
-0.14504507184028625,
-0.10256953537464142,
... |
func formKey(coord Coord) string {
return strconv.Itoa(coord.X) + "-" + strconv.Itoa(coord.Y)
} | [
-0.947669506072998,
-0.6093305349349976,
0.6772533059120178,
-1.7717622518539429,
0.3694828450679779,
0.4293527603149414,
-0.6805633902549744,
-0.6595985293388367,
-0.5774328708648682,
0.1992565244436264,
-0.48138293623924255,
0.4963221251964569,
0.6256375908851624,
0.5622385144233704,
0... |
func (tp *TestParser) Flush() error {
return nil
} | [
0.7841442823410034,
-0.6166422367095947,
0.2868879437446594,
-0.9671165347099304,
0.7821122407913208,
1.0842170715332031,
0.7579982280731201,
0.16451363265514374,
-0.001161374500952661,
-1.0300636291503906,
-0.14320266246795654,
1.1760642528533936,
-1.410947561264038,
0.9380613565444946,
... |
func Permute(s string) []string {
l := len(s)
var perms []string
if l == 0 {
perms = make([]string, 0)
} else if l == 1 {
perms = make([]string, 1)
perms[0] = s
} else {
l1 := l - 1
subString := s[:l1]
c := s[l1:]
u := Permute(subString)
for _, s1 := range u {
for i := 0; i <= l1; i++ {
// ... | [
-0.1932285875082016,
0.21107804775238037,
1.038631796836853,
0.753966212272644,
-0.358003169298172,
0.003117654472589493,
-0.06934233009815216,
0.8446258306503296,
0.3919261693954468,
0.8425371646881104,
-0.7559356093406677,
-0.10129721462726593,
-1.3079346418380737,
-0.4010094702243805,
... |
func Send(config config.Config, text string) {
api := slack.New(config.Slack.Token)
params := slack.PostMessageParameters{}
params.IconEmoji = config.Slack.IconEmoji
params.Username = config.Slack.Username
channelID, timestamp, err := api.PostMessage(config.Slack.Channel, text, params)
if err != nil {
fmt.Print... | [
0.13485315442085266,
0.03548077121376991,
0.4487666189670563,
-0.16810093820095062,
0.40569937229156494,
0.4155188202857971,
-0.7845293879508972,
-0.06496385484933853,
-1.0255876779556274,
0.5279920101165771,
-0.6843686699867249,
1.2571768760681152,
-0.8583759665489197,
0.6431727409362793,... |
func CreateTable(columns []string, db *sql.DB) {
sql := "CREATE TABLE IF NOT EXISTS Import (id SERIAL PRIMARY KEY"
for i := 0; i < len(columns); i++ {
sql = sql + ", " + columns[i] + " TEXT"
}
sql = sql + ")"
_, err := db.Exec(sql)
general.CheckError(err, "Erro ao criar a tabela no banco de dados")
} | [
0.7594821453094482,
0.5070095658302307,
0.6017336845397949,
0.6311125755310059,
0.9659333825111389,
0.54967200756073,
0.23486997187137604,
-0.4407263696193695,
-1.165468454360962,
1.0219733715057373,
-0.285346120595932,
-0.7703738212585449,
-0.4558012783527374,
-0.008018738590180874,
-0.... |
func CopyTableFromFile(colunms []string, fileName string, db *sql.DB) {
sql := "COPY Import ("
for i := 0; i < len(colunms); i++ {
sql = sql + colunms[i] + ", "
}
sql = strings.TrimSuffix(sql, ", ")
sql = sql + ") FROM '" + service.GetAbsolutePath(fileName) + "' (DELIMITER(';'))"
fmt.Println(sql)
_, err :... | [
0.8036649227142334,
-0.28369513154029846,
0.7613313794136047,
0.9257851839065552,
-0.3715391159057617,
1.2622287273406982,
0.43112853169441223,
0.201014906167984,
-1.9278582334518433,
1.0941658020019531,
-0.24749672412872314,
0.37918218970298767,
-0.002262457273900509,
-0.09857220202684402... |
func ErrDo(thunks ...pargo.ErrThunk) (err error) {
switch len(thunks) {
case 0:
return nil
case 1:
return thunks[0]()
}
var err0, err1 error
var p interface{}
var wg sync.WaitGroup
wg.Add(1)
switch len(thunks) {
case 2:
go func() {
defer func() {
wg.Done()
p = recover()
}()
err1 = thunk... | [
-0.22006791830062866,
0.3001211881637573,
0.8024684190750122,
0.11581588536500931,
0.1240934431552887,
0.17611311376094818,
0.07798280566930771,
-0.016447773203253746,
-0.6079751253128052,
-0.12737305462360382,
0.2508208155632019,
0.1379970908164978,
-0.325575053691864,
0.18259505927562714... |
func And(predicates ...pargo.Predicate) (result bool) {
switch len(predicates) {
case 0:
return true
case 1:
return predicates[0]()
}
var b0, b1 bool
var p interface{}
var wg sync.WaitGroup
wg.Add(1)
switch len(predicates) {
case 2:
go func() {
defer func() {
wg.Done()
p = recover()
}()
... | [
-0.28852736949920654,
-0.2929563820362091,
0.8467416763305664,
0.38825690746307373,
-0.6267889738082886,
0.8399162888526917,
0.04838939756155014,
0.4445553421974182,
-0.762528121471405,
-0.16284890472888947,
-0.034446220844984055,
-0.2329392433166504,
-1.3619047403335571,
-0.02849488332867... |
func Or(predicates ...pargo.Predicate) (result bool) {
switch len(predicates) {
case 0:
return false
case 1:
return predicates[0]()
}
var b0, b1 bool
var p interface{}
var wg sync.WaitGroup
wg.Add(1)
switch len(predicates) {
case 2:
go func() {
defer func() {
wg.Done()
p = recover()
}()
... | [
-0.8062025308609009,
0.34015947580337524,
0.7560630440711975,
0.3962627351284027,
-0.47666412591934204,
0.6070907711982727,
-0.3509223759174347,
0.4662092328071594,
-0.7222775220870972,
0.06119263544678688,
-0.15522855520248413,
-0.8210404515266418,
-0.7580249309539795,
-0.5006086826324463... |
func ErrAnd(predicates ...pargo.ErrPredicate) (result bool, err error) {
switch len(predicates) {
case 0:
return true, nil
case 1:
return predicates[0]()
}
var b0, b1 bool
var err0, err1 error
var p interface{}
var wg sync.WaitGroup
wg.Add(1)
switch len(predicates) {
case 2:
go func() {
defer func()... | [
-0.6817982196807861,
-0.06705078482627869,
0.9218158721923828,
-0.25346267223358154,
-0.36368051171302795,
0.9482741951942444,
-0.11955460160970688,
0.023631388321518898,
-0.6078644394874573,
-0.016901612281799316,
0.17864246666431427,
0.4989877939224243,
-1.1107045412063599,
0.33579921722... |
func ErrOr(predicates ...pargo.ErrPredicate) (result bool, err error) {
switch len(predicates) {
case 0:
return false, nil
case 1:
return predicates[0]()
}
var b0, b1 bool
var err0, err1 error
var p interface{}
var wg sync.WaitGroup
wg.Add(1)
switch len(predicates) {
case 2:
go func() {
defer func()... | [
-0.6073101758956909,
0.25344187021255493,
0.93511962890625,
0.4497051239013672,
-0.3064170777797699,
0.6518407464027405,
0.10658508539199829,
0.36649495363235474,
-0.5959499478340149,
0.29075518250465393,
-0.04322836548089981,
0.1546924114227295,
-1.0534474849700928,
0.3759170174598694,
... |
func ErrRange(low, high, n int, f pargo.ErrRangeFunc) error {
var recur func(int, int, int) error
recur = func(low, high, n int) (err error) {
switch {
case n == 1:
return f(low, high)
case n > 1:
batchSize := ((high - low - 1) / n) + 1
half := n / 2
mid := low + batchSize*half
if mid >= high {
... | [
-0.316582053899765,
0.7940185070037842,
0.7717111110687256,
0.5406831502914429,
0.12046454101800919,
-0.7298805117607117,
0.05324031412601471,
-0.08464527130126953,
-0.9585658311843872,
-0.5209721326828003,
-0.10853029787540436,
-0.054495543241500854,
-0.25253361463546753,
0.20111329853534... |
func RangeAnd(low, high, n int, f pargo.RangePredicate) bool {
var recur func(int, int, int) bool
recur = func(low, high, n int) (result bool) {
switch {
case n == 1:
return f(low, high)
case n > 1:
batchSize := ((high - low - 1) / n) + 1
half := n / 2
mid := low + batchSize*half
if mid >= high {... | [
-0.36389991641044617,
0.27584683895111084,
0.6988512277603149,
0.18910019099712372,
-0.3957807123661041,
0.04046168550848961,
0.12615767121315002,
-0.13605299592018127,
-0.7156355381011963,
-0.36680054664611816,
-0.3152216672897339,
-0.011379674077033997,
-0.2715338170528412,
0.26869884133... |
func RangeOr(low, high, n int, f pargo.RangePredicate) bool {
var recur func(int, int, int) bool
recur = func(low, high, n int) (result bool) {
switch {
case n == 1:
return f(low, high)
case n > 1:
batchSize := ((high - low - 1) / n) + 1
half := n / 2
mid := low + batchSize*half
if mid >= high {
... | [
-0.4164382219314575,
0.5964957475662231,
0.717665433883667,
0.5062360763549805,
-0.4043072462081909,
-0.3622382581233978,
-0.03543487563729286,
0.07190465182065964,
-0.2714760899543762,
-0.46196502447128296,
-0.3475390076637268,
-0.7895236611366272,
0.1910524070262909,
-0.1749156415462494,... |
func ErrRangeAnd(low, high, n int, f pargo.ErrRangePredicate) (bool, error) {
var recur func(int, int, int) (bool, error)
recur = func(low, high, n int) (result bool, err error) {
switch {
case n == 1:
return f(low, high)
case n > 1:
batchSize := ((high - low - 1) / n) + 1
half := n / 2
mid := low +... | [
-0.44562575221061707,
0.26793572306632996,
0.9841375946998596,
-0.24911978840827942,
-0.26833295822143555,
-0.009244189597666264,
0.29598525166511536,
-0.037986621260643005,
-0.5653924345970154,
-0.2543443739414215,
-0.2530517280101776,
0.08189793676137924,
-0.3787846863269806,
0.360391914... |
func ErrRangeOr(low, high, n int, f pargo.ErrRangePredicate) (bool, error) {
var recur func(int, int, int) (bool, error)
recur = func(low, high, n int) (result bool, err error) {
switch {
case n == 1:
return f(low, high)
case n > 1:
batchSize := ((high - low - 1) / n) + 1
half := n / 2
mid := low + ... | [
-0.647621750831604,
0.6065966486930847,
0.9932013750076294,
0.17108264565467834,
-0.34462159872055054,
-0.2878451943397522,
0.10222522914409637,
-0.02784605324268341,
-0.4917996823787689,
-0.25038614869117737,
-0.35605180263519287,
-0.3255050778388977,
-0.05769127979874611,
0.1878005713224... |
func ErrRangeReduce(low, high, n int, reduce pargo.ErrRangeReducer, pair pargo.ErrPairReducer) (interface{}, error) {
var recur func(int, int, int) (interface{}, error)
recur = func(low, high, n int) (result interface{}, err error) {
switch {
case n == 1:
return reduce(low, high)
case n > 1:
batchSize := ... | [
-0.8346583247184753,
0.7398415207862854,
0.9536719918251038,
0.3615928590297699,
-0.2121054083108902,
-0.7400866150856018,
0.2664034366607666,
-0.30211398005485535,
-0.27273428440093994,
-0.17749689519405365,
-0.3164041340351105,
-0.31945982575416565,
-0.6136259436607361,
0.845456004142761... |
func ErrIntRangeReduce(low, high, n int, reduce pargo.ErrIntRangeReducer, pair pargo.ErrIntPairReducer) (int, error) {
var recur func(int, int, int) (int, error)
recur = func(low, high, n int) (result int, err error) {
switch {
case n == 1:
return reduce(low, high)
case n > 1:
batchSize := ((high - low - ... | [
-0.7017234563827515,
0.9382532238960266,
0.8292670249938965,
0.0922335535287857,
-0.2716691493988037,
-0.7843317985534668,
0.7066746950149536,
-0.17188407480716705,
-0.2871707081794739,
-0.3406640589237213,
-0.5041862726211548,
-0.24866606295108795,
-0.44112756848335266,
0.72339928150177,
... |
func ErrFloat64RangeReduce(low, high, n int, reduce pargo.ErrFloat64RangeReducer, pair pargo.ErrFloat64PairReducer) (float64, error) {
var recur func(int, int, int) (float64, error)
recur = func(low, high, n int) (result float64, err error) {
switch {
case n == 1:
return reduce(low, high)
case n > 1:
batc... | [
-0.6523459553718567,
1.033642292022705,
0.6804760694503784,
0.8720449209213257,
-0.07843855768442154,
-0.8950883150100708,
0.5692981481552124,
-0.4415077567100525,
-0.2371802181005478,
-0.4394930899143219,
-0.020651360973715782,
-0.49998754262924194,
-0.5476441383361816,
0.877419114112854,... |
func ErrStringRangeReduce(low, high, n int, reduce pargo.ErrStringRangeReducer, pair pargo.ErrStringPairReducer) (string, error) {
var recur func(int, int, int) (string, error)
recur = func(low, high, n int) (result string, err error) {
switch {
case n == 1:
return reduce(low, high)
case n > 1:
batchSize ... | [
-0.6891331076622009,
0.5195720791816711,
0.6387764811515808,
0.12380827218294144,
-0.16408716142177582,
-0.9365234375,
0.4397149980068207,
-0.32151275873184204,
-0.2612071633338928,
-0.08450198918581009,
-0.13617709279060364,
-0.09897307306528091,
-0.2614053785800934,
0.14404593408107758,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.