text
stringlengths
11
6.3k
embedding
listlengths
768
768
func (r *jsiiProxy_RepositoryBase) Synthesize(session awscdk.ISynthesisSession) { _jsii_.InvokeVoid( r, "synthesize", []interface{}{session}, ) }
[ -0.4905378222465515, 1.62890625, 0.09759170562028885, -0.5290551781654358, 0.5244901180267334, -1.8986941576004028, 0.12822706997394562, -1.333787202835083, 0.1073194071650505, -0.4530322551727295, -0.993432343006134, 0.6769132614135742, 0.819259524345398, -0.9967458844184875, -0.2338254...
func (r *jsiiProxy_RepositoryBase) ToString() *string { var returns *string _jsii_.Invoke( r, "toString", nil, // no parameters &returns, ) return returns }
[ -0.08957379311323166, 0.6939327716827393, 0.5207363367080688, -0.5563960671424866, 0.5787765383720398, -0.7099000215530396, 0.41452980041503906, -1.338047981262207, -0.1501934826374054, 0.1462027132511139, -0.11154429614543915, 0.19113197922706604, -0.2994481325149536, -1.1095457077026367,...
func (r *jsiiProxy_RepositoryBase) Validate() *[]*string { var returns *[]*string _jsii_.Invoke( r, "validate", nil, // no parameters &returns, ) return returns }
[ -0.5842186212539673, 0.9654261469841003, 0.4580415189266205, 0.2034352421760559, 1.3150429725646973, -1.174207091331482, -0.002184912096709013, -1.0967217683792114, -0.30780741572380066, -0.06877680867910385, -0.2082475870847702, -0.11378675699234009, -0.7225328087806702, -0.28572508692741...
func (daemon *Daemon) createSpecWindowsFields(c *container.Container, s *specs.Spec, isHyperV bool) { if len(s.Process.Cwd) == 0 { // We default to C:\ to workaround the oddity of the case that the // default directory for cmd running as LocalSystem (or // ContainerAdministrator) is c:\windows\system32. Hence do...
[ 0.36696940660476685, 0.17822517454624176, 0.6897992491722107, 0.06912228465080261, -0.0835551768541336, -0.3916999101638794, 0.7660977840423584, 0.3449673056602478, -0.466615229845047, -0.23385919630527496, 0.13489139080047607, 0.44289150834083557, -0.18450428545475006, 0.8600530028343201,...
func (daemon *Daemon) createSpecLinuxFields(c *container.Container, s *specs.Spec) { if len(s.Process.Cwd) == 0 { s.Process.Cwd = `/` } s.Root.Path = "rootfs" s.Root.Readonly = c.HostConfig.ReadonlyRootfs }
[ 0.6343773603439331, -0.22856783866882324, 0.4211922585964203, 0.06160997226834297, 0.7116269469261169, 0.5153692960739136, 0.7056535482406616, 0.43448594212532043, 0.35049673914909363, -0.647731363773346, -0.34869223833084106, 0.4041339159011841, 0.011173593811690807, 0.4963167607784271, ...
func (daemon *Daemon) mergeUlimits(c *containertypes.HostConfig) { return }
[ -0.4388056695461273, -0.27180716395378113, 0.26735663414001465, -0.13488192856311798, 0.3938016891479492, 0.8430784940719604, -0.572868824005127, 0.26113161444664, 0.23935997486114502, -0.8169888854026794, -0.7031581997871399, 0.04194573312997818, -0.2610171437263489, 0.34750640392303467, ...
func ExampleAssignmentsClient_CreateOrUpdate_assignmentWithSystemAssignedManagedIdentityAtManagementGroupScope() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armblueprint.NewClient...
[ 0.012137445621192455, -0.5241694450378418, 0.692042350769043, -0.3935491144657135, -0.2955922782421112, -0.2911017835140228, -0.20356036722660065, 0.16529099643230438, -0.0035416006576269865, 0.506118893623352, -0.03225234895944595, 1.008104681968689, -0.25542908906936646, 0.36946904659271...
func ExampleAssignmentsClient_CreateOrUpdate_assignmentWithSystemAssignedManagedIdentityAtSubscriptionScope() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armblueprint.NewClientFac...
[ 0.08670457452535629, -0.6056804060935974, 0.7943095564842224, -0.5369623303413391, -0.09648951143026352, -0.3989272713661194, -0.18237261474132538, 0.2805006206035614, 0.1195375993847847, 0.4229184687137604, -0.21616870164871216, 1.0323492288589478, -0.019101813435554504, 0.194201290607452...
func ExampleAssignmentsClient_CreateOrUpdate_assignmentWithUserAssignedManagedIdentityAtManagementGroupScope() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armblueprint.NewClientFa...
[ -0.09983617067337036, -0.7770342826843262, 0.6505528092384338, -0.337643563747406, -0.4272940456867218, -0.15290887653827667, 0.02087469771504402, 0.011699866503477097, -0.03408966585993767, 0.34849128127098083, 0.054240915924310684, 1.1289103031158447, 0.07704222202301025, 0.0551743544638...
func ExampleAssignmentsClient_CreateOrUpdate_assignmentWithUserAssignedManagedIdentityAtSubscriptionScope() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armblueprint.NewClientFacto...
[ 0.18969471752643585, -0.8139214515686035, 0.7790391445159912, -0.343076229095459, -0.16487903892993927, -0.32963138818740845, 0.030357278883457184, 0.1637008637189865, 0.12616397440433502, 0.25737741589546204, 0.03457777202129364, 1.172731876373291, 0.23356893658638, -0.09406957030296326, ...
func ExampleAssignmentsClient_Get_assignmentAtManagementGroupScope() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armblueprint.NewClientFactory(cred, nil) if err != nil { log.Fa...
[ -0.42046672105789185, -0.6890400648117065, 0.7195451855659485, -0.5270598530769348, -0.21111878752708435, -0.35799700021743774, 0.051910631358623505, -0.2399754375219345, -0.7004586458206177, 0.3600040376186371, 0.42183926701545715, 1.7159589529037476, -0.6976826190948486, -0.0487898774445...
func ExampleAssignmentsClient_Get_assignmentAtSubscriptionScope() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armblueprint.NewClientFactory(cred, nil) if err != nil { log.Fatal...
[ -0.14846566319465637, -0.9996455311775208, 0.9639374017715454, -0.555981457233429, 0.2574115991592407, -0.645697295665741, -0.12481095641851425, -0.32096150517463684, -0.29576215147972107, 0.29554033279418945, 0.16923993825912476, 1.7172375917434692, -0.24443070590496063, 0.016358034685254...
func ExampleAssignmentsClient_Delete_assignmentDeleteAtManagementGroupScope() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armblueprint.NewClientFactory(cred, nil) if err != nil {...
[ 0.2739962339401245, -0.25673437118530273, 0.6170951724052429, -0.4484124183654785, -0.7017107605934143, 0.047172535210847855, 0.6269854307174683, 0.00960836187005043, -0.2797272503376007, 0.7891854643821716, 0.48564958572387695, 1.6925456523895264, -0.6617355942726135, 0.05799292400479317,...
func ExampleAssignmentsClient_Delete_assignmentDeleteAtManagementGroupScopeAndDeleteTheResourcesCreatedByTheAssignment() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armblueprint.N...
[ 0.43504950404167175, -0.32892268896102905, 0.5150750875473022, -0.27455028891563416, -0.45747795701026917, -0.23661144077777863, 0.9711739420890808, 0.06438975781202316, -0.058061566203832626, 0.4837872385978699, 0.4943343997001648, 1.208234429359436, -0.3232421875, 0.4614441990852356, 0...
func ExampleAssignmentsClient_Delete_assignmentDeleteAtSubscriptionScope() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armblueprint.NewClientFactory(cred, nil) if err != nil { ...
[ 0.5173733234405518, -0.7156755924224854, 0.8052876591682434, -0.3310970664024353, -0.11130983382463455, -0.27589666843414307, 0.29614561796188354, -0.12650102376937866, 0.10253175348043442, 0.7893449664115906, 0.37986835837364197, 1.7210888862609863, -0.12339877337217331, -0.21547442674636...
func ExampleAssignmentsClient_Delete_assignmentDeleteAtSubscriptionScopeAndDeleteTheResourcesCreatedByTheAssignment() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armblueprint.NewC...
[ 0.6687209606170654, -0.681006669998169, 0.6403042078018188, -0.12519581615924835, 0.12566447257995605, -0.5682381391525269, 0.6941690444946289, -0.11064991354942322, 0.22583943605422974, 0.4638117253780365, 0.3519955277442932, 1.2697303295135498, 0.16484108567237854, 0.2995666563510895, ...
func ExampleAssignmentsClient_WhoIsBlueprint_whoIsBlueprintActionAtManagementGroupScope() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armblueprint.NewClientFactory(cred, nil) if ...
[ -0.3453812897205353, -1.1996991634368896, 0.6245415210723877, -0.11211336404085159, 0.008199188858270645, -0.31673696637153625, 0.6039066314697266, -0.22753523290157318, 0.027927156537771225, 0.25737541913986206, 0.04721375182271004, 1.8920334577560425, -0.37569373846054077, -0.02905192971...
func ExampleAssignmentsClient_WhoIsBlueprint_whoIsBlueprintActionAtSubscriptionScope() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armblueprint.NewClientFactory(cred, nil) if err...
[ -0.1022389680147171, -1.4495301246643066, 0.8672000765800476, 0.04423348605632782, 0.3145504891872406, -0.7179000377655029, 0.26553553342819214, -0.33455079793930054, 0.42714250087738037, 0.3489192724227905, -0.0836038887500763, 1.8985346555709839, 0.14112842082977295, -0.17424361407756805...
func ExampleAssignmentsClient_NewListPager_assignmentAtManagementGroupScope() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armblueprint.NewClientFactory(cred, nil) if err != nil {...
[ -0.4695962071418762, -0.6217929124832153, 0.5904748439788818, -0.5836117267608643, -0.0846807211637497, -0.049546919763088226, -0.17930984497070312, -0.026651304215192795, -0.44473546743392944, 0.6351217031478882, 0.26219022274017334, 0.9178792834281921, -0.16295427083969116, 0.76014733314...
func ExampleAssignmentsClient_NewListPager_assignmentAtSubscriptionScope() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armblueprint.NewClientFactory(cred, nil) if err != nil { ...
[ -0.36996468901634216, -0.8661414384841919, 0.7853142619132996, -0.5424932837486267, 0.30340537428855896, -0.3692654073238373, -0.3636741638183594, -0.15678702294826508, -0.12478169798851013, 0.6849901676177979, 0.07147649675607681, 0.8976656198501587, 0.2501932382583618, 0.6717608571052551...
func NewJob(ctx *pulumi.Context, name string, args *JobArgs, opts ...pulumi.ResourceOption) (*Job, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.RoleArn == nil { return nil, errors.New("invalid value for required argument 'RoleArn'") } if args.Type == ni...
[ -0.0036985939368605614, 1.0284817218780518, 0.4937732517719269, 0.5393630862236023, 0.017943229526281357, 0.629455029964447, -0.7277545928955078, 0.6123071312904358, 0.13952910900115967, -0.28296157717704773, 0.17812924087047577, -0.07715298235416412, -0.19880610704421997, -0.2032497078180...
func GetJob(ctx *pulumi.Context, name string, id pulumi.IDInput, state *JobState, opts ...pulumi.ResourceOption) (*Job, error) { var resource Job err := ctx.ReadResource("aws-native:databrew:Job", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil }
[ 0.4862443804740906, 0.6371804475784302, 0.21128016710281372, 0.6095457077026367, -0.16932141780853271, 0.4966215193271637, -0.993159294128418, 0.381533145904541, 0.6201707124710083, -0.6970606446266174, 0.3703416585922241, 0.6658791303634644, 0.26102912425994873, -1.2429447174072266, -0....
func (o JobOutput) ValidationConfigurations() JobValidationConfigurationArrayOutput { return o.ApplyT(func(v *Job) JobValidationConfigurationArrayOutput { return v.ValidationConfigurations }).(JobValidationConfigurationArrayOutput) }
[ -0.3558746874332428, -0.5001797080039978, 0.6324685215950012, 0.9126214981079102, -0.7058833241462708, 0.01607969030737877, 0.6305945515632629, -0.4948274791240692, 0.28590428829193115, -0.1889360398054123, -0.7821781039237976, -0.2943051755428314, 0.42263174057006836, 0.49423733353614807,...
func MakeSinglyListInt8Length32() listTypesSingly.Int8Length32 { return listTypesSingly.Int8Length32{} }
[ -0.00027598440647125244, 0.3376901149749756, 0.3568258285522461, -0.7522286176681519, -0.21898460388183594, 0.2560591399669647, -0.8159155249595642, -1.105379581451416, 1.4200242757797241, 0.9723213315010071, -1.6784336566925049, 0.29319262504577637, -0.47052621841430664, 0.824293732643127...
func Filter[V any](collection []V, predicate func(V, int) bool) []V { result := []V{} for i, item := range collection { if predicate(item, i) { result = append(result, item) } } return result }
[ -0.4042964279651642, -0.09396108239889145, 0.3756152093410492, 0.6335355639457703, -0.9059100151062012, 0.552026629447937, -0.39314916729927063, 0.5920121669769287, -0.6328500509262085, 0.48917803168296814, -0.4029894769191742, 0.38859471678733826, -0.10863517969846725, 0.3129640221595764,...
func Map[T any, R any](collection []T, iteratee func(T, int) R) []R { result := make([]R, len(collection)) for i, item := range collection { result[i] = iteratee(item, i) } return result }
[ -0.7944126129150391, -0.22521056234836578, 0.5644571781158447, -0.006159002427011728, -0.4434433579444885, 0.6190255284309387, -0.09249855577945709, 0.06814972311258316, -0.2544457018375397, 0.9993904829025269, -0.04391259327530861, -0.5335354804992676, 0.3010775148868561, 0.00728332996368...
func FilterMap[T any, R any](collection []T, callback func(T, int) (R, bool)) []R { result := []R{} for i, item := range collection { if r, ok := callback(item, i); ok { result = append(result, r) } } return result }
[ -0.2786356806755066, -0.20004771649837494, 0.7176364064216614, 0.247272789478302, -0.3883883059024811, -0.2092413604259491, 0.6415335536003113, -0.04281821474432945, -0.07011646777391434, 0.8774805665016174, -0.11167240142822266, -0.2350824475288391, -0.2654497027397156, 0.0487948358058929...
func FlatMap[T any, R any](collection []T, iteratee func(T, int) []R) []R { result := []R{} for i, item := range collection { result = append(result, iteratee(item, i)...) } return result }
[ -0.48434820771217346, -0.12345816195011139, 0.5157866477966309, 0.08074266463518143, 0.17881064116954803, 0.3692851960659027, 0.10681576281785965, 0.3005969524383545, 0.28773248195648193, 0.20151475071907043, 0.14543797075748444, -0.2903760075569153, -0.4823618531227112, -0.044466231018304...
func Reduce[T any, R any](collection []T, accumulator func(R, T, int) R, initial R) R { for i, item := range collection { initial = accumulator(initial, item, i) } return initial }
[ -0.3798891305923462, 0.07904691994190216, 0.32199347019195557, 0.1757541447877884, 0.5643271803855896, -0.433458536863327, 0.262661874294281, 0.05425797402858734, -0.47363898158073425, -0.009404248557984829, -0.3872387111186981, -0.21729415655136108, 0.08537259697914124, 0.2411686778068542...
func ForEach[T any](collection []T, iteratee func(T, int)) { for i, item := range collection { iteratee(item, i) } }
[ -0.026983007788658142, -0.25227317214012146, 0.4293120503425598, 0.45930856466293335, -0.02807956375181675, 0.10544834285974503, 0.4363689124584198, -0.3766442835330963, -1.319150447845459, 0.7491691708564758, -0.11959248781204224, -0.6484798192977905, 0.47106578946113586, 0.44472452998161...
func Times[T any](count int, iteratee func(int) T) []T { result := make([]T, count) for i := 0; i < count; i++ { result[i] = iteratee(i) } return result }
[ -0.4801766574382782, 0.5923215746879578, 0.4543900787830353, -0.6517390608787537, 0.2408137321472168, -0.41042372584342957, -0.6357426643371582, -0.3068385720252991, -0.9757818579673767, 0.4929908215999603, -0.4564126133918762, -0.9133760929107666, 0.37372562289237976, 0.4653306305408478, ...
func Uniq[T comparable](collection []T) []T { result := make([]T, 0, len(collection)) seen := make(map[T]struct{}, len(collection)) for _, item := range collection { if _, ok := seen[item]; ok { continue } seen[item] = struct{}{} result = append(result, item) } return result }
[ -0.46685895323753357, 0.05396182835102081, 0.7570706009864807, -0.23484086990356445, -0.06318514049053192, -0.15756355226039886, 0.06905337423086166, -0.0023668853100389242, 0.10880059003829956, 0.9442877769470215, -1.4977726936340332, -0.06853039562702179, 0.6180487275123596, -0.313886553...
func UniqBy[T any, U comparable](collection []T, iteratee func(T) U) []T { result := make([]T, 0, len(collection)) seen := make(map[U]struct{}, len(collection)) for _, item := range collection { key := iteratee(item) if _, ok := seen[key]; ok { continue } seen[key] = struct{}{} result = append(result...
[ -0.5300662517547607, -0.024923715740442276, 0.7777919173240662, -0.23627470433712006, 0.05341328680515289, -0.7964663505554199, 0.31660500168800354, 0.38571780920028687, -0.816609799861908, 0.7944449186325073, -0.6624637842178345, -0.4523162245750427, 0.197654128074646, -0.1779136061668396...
func GroupBy[T any, U comparable](collection []T, iteratee func(T) U) map[U][]T { result := map[U][]T{} for _, item := range collection { key := iteratee(item) result[key] = append(result[key], item) } return result }
[ -0.6682317852973938, -0.23037895560264587, 0.6381442546844482, -0.6463223695755005, -0.1039959043264389, -0.33895185589790344, 0.3606592118740082, 0.19980363547801971, -1.1180579662322998, 0.3460404872894287, 0.15046270191669464, 0.1511540710926056, 0.22796401381492615, 0.00331800337880849...
func Chunk[T any](collection []T, size int) [][]T { if size <= 0 { panic("Second parameter must be greater than 0") } result := make([][]T, 0, len(collection)/2+1) length := len(collection) for i := 0; i < length; i++ { chunk := i / size if i%size == 0 { result = append(result, make([]T, 0, size)) } ...
[ -0.648368775844574, 0.5409472584724426, 0.6427192091941833, 0.04806225746870041, -0.3172827363014221, 0.20587925612926483, 1.21133291721344, -0.6267716884613037, -0.10495820641517639, 0.22922326624393463, -0.06541986763477325, 0.18171705305576324, -0.029994918033480644, -0.0595409609377384...
func PartitionBy[T any, K comparable](collection []T, iteratee func(x T) K) [][]T { result := [][]T{} seen := map[K]int{} for _, item := range collection { key := iteratee(item) resultIndex, ok := seen[key] if !ok { resultIndex = len(result) seen[key] = resultIndex result = append(result, []T{}) }...
[ -0.14141440391540527, 0.36055853962898254, 0.8630101680755615, -0.3076232969760895, -0.2293744832277298, -0.79278963804245, 0.5464796423912048, -0.10209864377975464, -0.9850545525550842, 0.597732663154602, -0.07354618608951569, -1.0790061950683594, 0.05873354524374008, -0.05486977845430374...
func Flatten[T any](collection [][]T) []T { result := []T{} for _, item := range collection { result = append(result, item...) } return result }
[ -0.5018539428710938, -0.10538875311613083, 0.4022790491580963, 0.5146880745887756, 0.4757254421710968, -0.04941370710730553, 0.09976838529109955, -0.5327751040458679, -0.44466519355773926, -0.07790665328502655, -1.0171457529067993, 0.27956628799438477, -0.6985007524490356, 0.12333612889051...
func Shuffle[T any](collection []T) []T { rand.Shuffle(len(collection), func(i, j int) { collection[i], collection[j] = collection[j], collection[i] }) return collection }
[ -1.0777713060379028, -0.39327776432037354, 0.4770006239414215, -0.48992103338241577, 0.058588821440935135, 0.8580247759819031, 0.10975330322980881, -0.6947008967399597, 0.811066210269928, -0.4494617283344269, -0.015456668101251125, 0.3347106873989105, -0.1818285435438156, 0.063402771949768...
func Reverse[T any](collection []T) []T { length := len(collection) half := length / 2 for i := 0; i < half; i = i + 1 { j := length - 1 - i collection[i], collection[j] = collection[j], collection[i] } return collection }
[ -1.1025162935256958, -0.23585595190525055, 0.7664986252784729, -0.31167587637901306, 0.08459610491991043, 0.24695216119289398, 0.16080382466316223, 0.09882187843322754, -0.8747202157974243, 0.45711448788642883, -1.033684492111206, 0.15821950137615204, -0.8362795114517212, -0.33192497491836...
func Fill[T Clonable[T]](collection []T, initial T) []T { result := make([]T, 0, len(collection)) for range collection { result = append(result, initial.Clone()) } return result }
[ -0.6072628498077393, 0.21283681690692902, 0.453762412071228, 0.06237563490867615, 0.9872991442680359, 0.956720232963562, -0.566979169845581, -0.7259138226509094, -1.2877967357635498, 1.1078003644943237, -0.5703155994415283, 0.21591739356517792, -0.0491156242787838, -0.09830744564533234, ...
func Repeat[T Clonable[T]](count int, initial T) []T { result := make([]T, 0, count) for i := 0; i < count; i++ { result = append(result, initial.Clone()) } return result }
[ -0.5981042981147766, 0.029868310317397118, 0.5077276229858398, 0.44396430253982544, 0.10201382637023926, 0.26783159375190735, -0.48684805631637573, -0.4200884699821472, -1.7481814622879028, 1.1166889667510986, -0.7955797910690308, -0.1981794685125351, -0.1741204857826233, -0.79510360956192...
func RepeatBy[T any](count int, predicate func(int) T) []T { result := make([]T, 0, count) for i := 0; i < count; i++ { result = append(result, predicate(i)) } return result }
[ -0.601351797580719, 0.46184536814689636, 0.7720057964324951, 0.43916064500808716, -0.1767147332429886, -0.28317025303840637, -0.006496927235275507, 0.46513819694519043, -1.1014347076416016, 1.0791521072387695, -0.4933176636695862, -0.1013835147023201, 0.21593433618545532, 0.180073395371437...
func KeyBy[K comparable, V any](collection []V, iteratee func(V) K) map[K]V { result := make(map[K]V, len(collection)) for _, v := range collection { k := iteratee(v) result[k] = v } return result }
[ -0.2281447798013687, -0.435555100440979, 0.4951426386833191, -0.7388784289360046, -0.6875940561294556, -0.1434476524591446, -0.07373637706041336, -0.13417236506938934, -1.081315040588379, 0.5584821105003357, -0.20789237320423126, -0.39624646306037903, 0.5283054709434509, 0.0977064073085784...
func Drop[T any](collection []T, n int) []T { if len(collection) <= n { return make([]T, 0) } result := make([]T, len(collection)-n) for i := n; i < len(collection); i++ { result[i-n] = collection[i] } return result }
[ -1.303865671157837, 0.439853698015213, 0.7514243125915527, 0.24955661594867706, 0.12949153780937195, 0.47869759798049927, -0.19794096052646637, -0.9955682158470154, -0.2646941542625427, 0.6405616998672485, -0.7072579264640808, 0.013743397779762745, -0.338879257440567, 0.21545574069023132, ...
func DropWhile[T any](collection []T, predicate func(T) bool) []T { i := 0 for ; i < len(collection); i++ { if !predicate(collection[i]) { break } } result := make([]T, len(collection)-i) for j := 0; i < len(collection); i, j = i+1, j+1 { result[j] = collection[i] } return result }
[ -0.5986786484718323, 0.5252838730812073, 0.7824021577835083, 0.5278267860412598, -0.06277813017368317, 0.7663986086845398, -0.48472607135772705, -0.6401536464691162, -0.6488124132156372, 1.0837674140930176, -0.7367061972618103, -0.21663391590118408, -0.8755927681922913, 0.12399005144834518...
func DropRight[T any](collection []T, n int) []T { if len(collection) <= n { return make([]T, 0) } result := make([]T, len(collection)-n) for i := len(collection) - 1 - n; i >= 0; i-- { result[i] = collection[i] } return result }
[ -1.0919262170791626, 0.32228589057922363, 0.870389997959137, 0.4024115800857544, 0.2345116287469864, 0.18605133891105652, -0.7358983755111694, -0.9489203691482544, -0.236785888671875, 0.6499602198600769, -0.5443432927131653, -0.11601261794567108, -1.015734314918518, 0.8430109024047852, 0...
func DropRightWhile[T any](collection []T, predicate func(T) bool) []T { i := len(collection) - 1 for ; i >= 0; i-- { if !predicate(collection[i]) { break } } result := make([]T, i+1) for ; i >= 0; i-- { result[i] = collection[i] } return result }
[ -0.5188412070274353, 0.5581954717636108, 0.7997959852218628, 0.7198309302330017, -0.3069908022880554, 0.6693716049194336, -0.5962489247322083, -0.9859557747840881, -0.7835472226142883, 1.018933892250061, -0.382435142993927, -0.16332802176475525, -1.2398388385772705, 0.5672842264175415, 0...
func Reject[V any](collection []V, predicate func(V, int) bool) []V { result := []V{} for i, item := range collection { if !predicate(item, i) { result = append(result, item) } } return result }
[ -0.974899411201477, 0.2752511203289032, 0.3624601662158966, 0.4981063902378082, -0.8735880255699158, 0.5611295104026794, -0.7989814281463623, 0.13472086191177368, -0.6499199271202087, 0.5062411427497864, -0.6983776688575745, -0.0038181799463927746, -0.7544167041778564, 0.38875678181648254,...
func Count[T comparable](collection []T, value T) (count int) { for _, item := range collection { if item == value { count++ } } return count }
[ 0.5995471477508545, -0.7314245104789734, 0.5377427935600281, 0.3207499086856842, -0.5677305459976196, 0.3124527931213379, 0.35226765275001526, -0.7551777958869934, -0.7917770147323608, 1.078203797340393, -0.8072719573974609, -0.013806113041937351, 0.26309069991111755, 0.6608480215072632, ...
func CountBy[T any](collection []T, predicate func(T) bool) (count int) { for _, item := range collection { if predicate(item) { count++ } } return count }
[ -0.036634162068367004, 0.005905148107558489, 0.689095675945282, 0.5625978708267212, -0.40316280722618103, 0.27807843685150146, 0.13657094538211823, 0.752364993095398, -1.217799425125122, 0.8680136203765869, -0.5959516167640686, -0.13391713798046112, 0.403845876455307, 0.25072187185287476, ...
func Subset[T any](collection []T, offset int, length uint) []T { size := len(collection) if offset < 0 { offset = size + offset if offset < 0 { offset = 0 } } if offset > size { return []T{} } if length > uint(size)-uint(offset) { length = uint(size - offset) } return collection[offset : offse...
[ -0.1022043526172638, -1.0770020484924316, 0.5155768990516663, -0.8700783252716064, -1.1573781967163086, 0.7001393437385559, -0.09955103695392609, -0.12108105421066284, 0.2012178748846054, -0.10433582216501236, -0.968173623085022, 1.1429804563522339, 0.3211638927459717, -0.7245680689811707,...
func Replace[T comparable](collection []T, old T, new T, n int) []T { size := len(collection) result := make([]T, 0, size) for _, item := range collection { if item == old && n != 0 { result = append(result, new) n-- } else { result = append(result, item) } } return result }
[ -0.4624411463737488, -0.5636889338493347, 0.5864511728286743, 0.207749605178833, 0.04989207908511162, -0.6909023523330688, -0.9182883501052856, 0.4801994264125824, -0.09843297302722931, 0.9194344282150269, -1.1911147832870483, 0.1354869306087494, -0.3040415048599243, 0.5832326412200928, ...
func ReplaceAll[T comparable](collection []T, old T, new T) []T { return Replace[T](collection, old, new, -1) }
[ 0.41135546565055847, -0.8247154355049133, 0.42830267548561096, 0.4683842658996582, -0.23064909875392914, 0.3020262122154236, -1.2766423225402832, 0.8029401898384094, -0.40628406405448914, 1.0043057203292847, -0.9399046301841736, 1.1807667016983032, 0.1712293177843094, 0.4653448164463043, ...
func MapEventToEffectsFactory(queryStatus func() (state.State, error)) func(events.Event) []effects.Effect { return func(event events.Event) []effects.Effect { switch evt := event.(type) { case enable.Succeeded, enable.Aborted: return statuseventadapter.MapEventToEffects(status.Policy{Deps: status.Dependencies{...
[ -0.5470793843269348, -0.456218957901001, 0.527266800403595, -0.32737597823143005, -0.19600588083267212, 0.6213814616203308, -0.40797746181488037, 0.10761241614818573, 1.2148886919021606, -0.20213714241981506, -0.13723763823509216, 0.039054036140441895, 1.426220178604126, 0.2339774817228317...
func Open(filenames []string, appendF func([]byte)) (string, error) { if len(filenames) == 1 { return "", nil } filename := filenames[1] fd, er := os.Open(filename) if er != nil { return filename, er } defer fd.Close() fp := bufio.NewReader(fd) var err error for line, err := fp.ReadBytes('\n'); err == ni...
[ 0.44160735607147217, 0.048835545778274536, 0.8888446092605591, -0.18614673614501953, -0.9525948762893677, -0.11545258015394211, 0.24633243680000305, 0.8577010631561279, -0.13378043472766876, 0.18127019703388214, 0.6888638138771057, 0.08617530018091202, -0.11756309121847153, 0.1872112900018...
func Save(filename string, getBytes func() (string, int)) (msg string, stillDirty bool) { fp, e := os.OpenFile(filename, os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0644) if e != nil { return fmt.Sprintf("Can't save! file open error %s", e), true } defer fp.Close() buf, length := getBytes() stillDirty = true n, err := i...
[ -0.2663441598415375, 0.10684741288423538, 0.7726565003395081, -1.1509947776794434, 0.09388097375631332, -0.12401966750621796, 0.7270146608352661, -0.3650032877922058, -0.7326087355613708, 0.41506704688072205, -0.21638624370098114, 0.07971877604722977, -0.5358676910400391, 0.336995989084243...
func GetAllBuckets(c context.Context, api S3ListBucketsApi, input *s3.ListBucketsInput) (*s3.ListBucketsOutput, error) { return api.ListBuckets(c, input) }
[ -0.15693363547325134, 0.04664977639913559, 0.5171672701835632, 0.6417403221130371, -0.09940218180418015, 0.229230597615242, -0.4256996810436249, -0.8836483359336853, 1.0120410919189453, -0.6861801743507385, -0.8624117374420166, 0.785001814365387, -0.5449209809303284, 0.13315662741661072, ...
func GetBucketAcl(c context.Context, api S3GetBucketAclApi, input *s3.GetBucketAclInput) (*s3.GetBucketAclOutput, error) { return api.GetBucketAcl(c, input) }
[ 0.06864626705646515, -0.17811185121536255, 0.4524548053741455, 0.18138673901557922, -0.3578535318374634, -0.3864595890045166, 0.7776622772216797, -0.7377638816833496, -0.37544816732406616, 0.13829326629638672, -0.004965950269252062, 1.2789943218231201, 0.5970801115036011, -1.22098278999328...
func GetBucketEncryption(c context.Context, api S3GetBucketEncryptionApi, input *s3.GetBucketEncryptionInput) (*s3.GetBucketEncryptionOutput, error) { return api.GetBucketEncryption(c, input) }
[ -0.20729945600032806, 0.4445355236530304, 0.2237207591533661, 0.8592561483383179, 0.27506405115127563, -1.2001111507415771, 0.6385200619697571, -1.023999810218811, -0.5411481261253357, -0.16064739227294922, -1.2335584163665771, 0.19285133481025696, 0.12910689413547516, -0.2933535873889923,...
func (h ShowQueueHandler) Handle(params queueop.ShowQueueParams) middleware.Responder { session := auth.SessionFromRequestContext(params.HTTPRequest) if !session.IsOfficeUser() { return queueop.NewShowQueueForbidden() } lifecycleState := params.QueueType MoveQueueItems, err := models.GetMoveQueueItems(h.DB(),...
[ 0.0087372325360775, 0.13465608656406403, 0.8574636578559875, 0.16410641372203827, -0.6504561901092529, -0.1590329110622406, -0.3348270356655121, -0.36035534739494324, 0.3849329650402069, 0.6852014064788818, -0.0013416429283097386, 0.21263685822486877, -0.32768428325653076, 0.74157339334487...
func (shipType ShipType) ToModel(battle model.Battle) *model.ShipType { for _, modelType := range battle.Params.Ships { if modelType.Name == string(shipType) { return &modelType } } panic(fmt.Sprintf("Received unknown ship type \"%v\"", shipType)) }
[ -0.46480098366737366, -0.179634690284729, 0.48575258255004883, -0.357225239276886, 0.771721601486206, 0.4831072986125946, -0.18754363059997559, -1.0995639562606812, 0.5022396445274353, 0.8879410028457642, -0.49255111813545227, 0.2023525834083557, 0.7582952380180359, 0.2175629734992981, -...
func (ship *Ship) ToModel(battle model.Battle) model.Ship { return model.Ship{ Type: ship.Type.ToModel(battle), Position: ship.Position.ToModel(battle), } }
[ -0.40768110752105713, -0.31974878907203674, 0.4851796329021454, 0.038853131234645844, 0.24709205329418182, 0.7822569608688354, -0.7253150939941406, -0.2667105197906494, 0.9712631702423096, 0.36597704887390137, -0.10262257605791092, 0.4788500964641571, 1.6917223930358887, -0.563909113407135...
func RegisterProviderServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { conn, err := grpc.Dial(endpoint, opts...) if err != nil { return err } defer func() { if err != nil { if cerr := conn.Close(); cerr != nil { grpclog.Printf("F...
[ -0.3954734802246094, -0.4126455783843994, 0.7037588953971863, 0.7995175123214722, -0.049336500465869904, 0.37867939472198486, -0.43640777468681335, -0.8186002969741821, -0.08170893788337708, 0.3234693109989166, 0.5325109958648682, 0.14805510640144348, -0.7436481714248657, -0.49476552009582...
func RegisterProviderServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { client := NewProviderServiceClient(conn) mux.Handle("POST", pattern_ProviderService_Auth_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel...
[ -0.7084919810295105, -0.0015060444129630923, 0.8557419180870056, 0.3670486509799957, -0.33843815326690674, 0.3537845015525818, 0.40466299653053284, -0.2792738080024719, -0.1446504294872284, 0.26021602749824524, 0.03876348212361336, 0.4643462598323822, -0.024973537772893906, 0.3914964795112...
func (m *VideoSettings) Validate(formats strfmt.Registry) error { var res []error if err := m.validateMV12MV22MV72(formats); err != nil { res = append(res, err) } if err := m.validateMV12WE(formats); err != nil { res = append(res, err) } if err := m.validateMV21MV71(formats); err != nil { res = append(re...
[ -0.5348418951034546, 0.4946402311325073, 0.27145102620124817, 0.4173666834831238, -0.13679951429367065, -0.23894056677818298, 0.2658555805683136, -1.2469637393951416, -0.15701735019683838, 0.46307840943336487, 0.042821526527404785, 0.2703724801540375, -1.0721244812011719, 0.925713598728179...
func (fn PatchCampaignIDHandlerFunc) Handle(params PatchCampaignIDParams) middleware.Responder { return fn(params) }
[ 0.45116686820983887, -1.1283632516860962, 0.11952465027570724, -0.2883144021034241, -0.18291078507900238, 0.7122719287872314, -0.09402963519096375, 0.5253413915634155, 0.19245047867298126, -0.5526989102363586, 0.3508341610431671, 0.011631723493337631, -0.7824360728263855, 0.159699738025665...
func NewPatchCampaignID(ctx *middleware.Context, handler PatchCampaignIDHandler) *PatchCampaignID { return &PatchCampaignID{Context: ctx, Handler: handler} }
[ 0.34548160433769226, -1.3909082412719727, 0.06311727315187454, -0.2435269057750702, -1.4374043941497803, 1.0631357431411743, -0.3860050439834595, 0.3774760365486145, 0.635296642780304, 0.08497177809476852, -0.24991029500961304, 1.5479722023010254, -0.3255958557128906, 0.34903600811958313, ...
func (c *Client) GetCountries() ([]*Country, error) { var resp []*Country if len(c.countriesCache) == 0 { err := c.getJSON(baseURL+countriesReportPath, &resp) if err != nil { return nil, err } c.countriesCache = map[int]*Country{} for _, a := range resp { c.countriesCache[a.ID] = a } return re...
[ -0.3775656223297119, 0.9044975638389587, 0.23202018439769745, -0.08619292080402374, 1.1125222444534302, -0.23400339484214783, -0.15469856560230255, -0.49762415885925293, 0.18424880504608154, -0.6459161043167114, 0.153889000415802, -0.1695958971977234, -1.1987180709838867, 0.634023606777191...
func (c *Client) GetCountryByName(name string) (*Country, error) { countries, err := c.GetCountries() if err != nil { return nil, err } for _, c := range countries { if c.Name == name { return c, nil } } return nil, nil }
[ 0.4211168885231018, -0.08400910347700119, -0.16837483644485474, 0.24209581315517426, -0.06212064251303673, -0.7413230538368225, 0.3463466465473175, -1.2471156120300293, -0.45820772647857666, 0.6967161297798157, -0.25254932045936584, 0.07184886187314987, -0.8782920837402344, 0.2035061717033...
func NewServer(config *Config) *Server { return &Server{ config: config, router: chi.NewRouter(), } }
[ -0.030516795814037323, -1.0156748294830322, 0.17526130378246307, 0.44584664702415466, -0.17039912939071655, 0.41329512000083923, -0.03721299022436142, 0.837634801864624, 0.40569034218788147, 0.4612256586551666, -1.2043651342391968, 0.4345828890800476, -0.735257089138031, 0.4841161668300628...
func (s *Server) configureStore() error { st, err := mongostore.NewStore(s.config.DatabaseURL) if err != nil { return err } s.store = st return nil }
[ -0.5657918453216553, 1.0202338695526123, 0.08367793262004852, 0.02794814482331276, 0.3300154209136963, -0.6690781116485596, -0.1626916229724884, 0.8134028315544128, 0.16474778950214386, -0.28870055079460144, -0.7712269425392151, -0.6362948417663574, -0.971989095211029, 0.20455729961395264,...
func (s *Server) configureLogger(dbg bool) *lgr.Logger { if dbg { return lgr.New(lgr.Msec, lgr.Debug, lgr.CallerFile, lgr.CallerFunc, lgr.LevelBraces) } return lgr.New(lgr.Msec, lgr.LevelBraces) }
[ 0.28488075733184814, 0.8704299926757812, 0.525429904460907, 0.07352402061223984, -0.6047515869140625, -0.19677677750587463, -1.334923267364502, -0.08590957522392273, -0.21086718142032623, -0.5821734070777893, -0.5390804409980774, -0.1666443794965744, -1.3716073036193848, 2.3081021308898926...
func (s *Server) Start() error { s.logger = s.configureLogger(s.config.LogDebug) s.configureRouter() if err := s.configureStore(); err != nil { return err } s.logger.Logf("[INFO] Server is starting at %v...\n", s.config.BindAddr) return http.ListenAndServe(s.config.BindAddr, s.router) }
[ -0.4224841296672821, -0.9552993774414062, 0.4591863751411438, 0.11737871170043945, 0.12258978933095932, -0.22926820814609528, 0.2890574336051941, 1.3124884366989136, 0.2187661975622177, -0.013613013550639153, -0.326665461063385, 1.0812225341796875, -0.42967480421066284, 0.6705842018127441,...
func PossibleContentTypes(firstByte byte) (ct ContentTypeOptions) { if firstByte == 0 { return 0 } switch { case firstByte < '\t' /* 9 */ : // not a text if firstByte&^maskWireType == 0 { return 0 } case firstByte >= legalUtf8: ct |= ContentOptionText case firstByte < illegalUtf8FirstByte: ct |= C...
[ 0.4823659360408783, -0.6279433369636536, 0.5677526593208313, 0.005031623411923647, -0.18905483186244965, -0.05856109783053398, 0.2657868564128876, -0.76993727684021, 0.03314787521958351, 0.4092074930667877, -0.01346943061798811, -0.27798864245414734, -1.4578723907470703, 1.0221513509750366...
func (r *Registry) Tags(ctx context.Context, repository string) ([]Tag, error) { tagNames, err := r.TagNames(ctx, repository) if err != nil { return nil, err } tags := make([]Tag, len(tagNames)) for i := range tags { tags[i] = Tag { Name: tagNames[i], Repository: repository, Registry: r, } }...
[ -0.533465564250946, 0.8149601221084595, 0.0482780821621418, -0.5720644593238831, 0.8173395395278931, -0.17710474133491516, -1.146692156791687, -0.163191020488739, 0.6217596530914307, 0.3338207006454468, -0.777417778968811, 0.5689892768859863, -0.3181552290916443, 0.5762988328933716, -0.4...
func NewRatchet(rand io.Reader) (*State, error) { r := &State{ counter: 0, } _, err := io.ReadFull(rand, r.static[:]) if err != nil { return nil, err } _, err = io.ReadFull(rand, r.dynamic[:]) if err != nil { return nil, err } r.Step() return r, nil }
[ -0.002383451210334897, -0.03666437789797783, 0.5280876755714417, -0.9046953320503235, -0.1550140380859375, 0.025143537670373917, 0.2773437201976776, -0.7495179176330566, -0.1384764015674591, -0.22288310527801514, 0.14441488683223724, -0.08486001938581467, 0.30183881521224976, -0.4416024982...
func (s *State) Marshall() []byte { o := make([]byte, 136) binary.BigEndian.PutUint64(o, s.counter) copy(o[8:], s.static[:]) copy(o[40:], s.dynamic[:]) copy(o[72:], s.privateKey[:]) copy(o[104:], s.PublicKey[:]) return o }
[ 0.058276817202568054, 0.4391110837459564, 0.4141119718551636, -0.32979559898376465, -0.1862545609474182, 0.7239777445793152, -0.7867648005485535, -0.16311517357826233, 0.7006506323814392, 0.010128101333975792, 0.025763940066099167, 1.3299241065979004, 0.07058345526456833, -0.59898757934570...
func (s *State) Unmarshall(d []byte) *State { if len(d) != 136 { return nil } ns := &State{ counter: binary.BigEndian.Uint64(d), } copy(ns.static[:], d[8:]) copy(ns.dynamic[:], d[40:]) copy(ns.privateKey[:], d[72:]) copy(ns.PublicKey[:], d[104:]) return ns }
[ 0.3747718334197998, 0.3319736123085022, 0.4897620379924774, -0.6049352288246155, -0.8600261211395264, -0.49535417556762695, 0.01419778075069189, 0.4127283990383148, 1.3316353559494019, 0.14355407655239105, -0.37324488162994385, 0.47303956747055054, 0.04914623498916626, -0.4933933615684509,...
func (s *State) Counter() uint64 { return s.counter }
[ -0.052760638296604156, -0.14862500131130219, 0.24524179100990295, 0.5588083863258362, -0.5101425051689148, 0.5604769587516785, 0.4853910803794861, 0.6962215900421143, 0.8594619631767273, -0.5171386003494263, -0.0380910187959671, -0.38004961609840393, 0.5425782203674316, 0.8151199817657471,...
func (s *State) Step() *State { s.counter++ d := make([]byte, 40) binary.BigEndian.PutUint64(d, s.counter) copy(d[8:], s.dynamic[:]) h := hmac.New(sha256.New, s.static[:]) h.Write(d) nd := h.Sum(nil) copy(s.dynamic[:], nd) s.genkeys() return s }
[ -0.7547324895858765, 1.1747972965240479, 0.3183022439479828, -0.23173411190509796, 0.1415122002363205, -0.06083209067583084, 0.6593283414840698, 0.1224045380949974, -0.35413920879364014, -0.7250365614891052, -1.476718544960022, -0.19027015566825867, 0.20825621485710144, -0.0702617689967155...
func (s *State) genkeys() { h := hmac.New(sha256.New, s.dynamic[:]) h.Write(s.static[:]) res := h.Sum(nil) copy(s.privateKey[:], res) curve25519.ScalarBaseMult(&s.PublicKey, &s.privateKey) }
[ -1.560226321220398, 0.5177239179611206, 0.31673452258110046, -0.28236404061317444, 0.7641714215278625, -0.37251055240631104, 0.35423073172569275, -0.021045926958322525, 0.1574523150920868, 0.4556673467159271, -0.9954097867012024, 0.1883934885263443, 0.3664329946041107, 0.10694382339715958,...
func (s *State) Copy() *State { n := &State{ counter: s.counter, } copy(n.static[:], s.static[:]) copy(n.dynamic[:], s.dynamic[:]) copy(n.privateKey[:], s.privateKey[:]) copy(n.PublicKey[:], s.PublicKey[:]) return n }
[ -1.1516129970550537, -0.8917943239212036, 0.2866302728652954, 0.01667061261832714, -1.4350059032440186, 0.8079451322555542, 0.2624797523021698, -0.4897063076496124, 0.34552156925201416, 0.3740215003490448, -0.4198314845561981, 0.0534372515976429, 0.32683226466178894, -0.5624998807907104, ...
func (s *State) SharedSecret(peerPubKey *[32]byte) *[32]byte { dst, out := new([32]byte), new([32]byte) curve25519.ScalarMult(dst, &s.privateKey, peerPubKey) h := sha256.New() h.Write(dst[:]) ss := h.Sum(nil) copy(out[:], ss) return out }
[ 0.23646588623523712, 0.40419965982437134, 0.4250648021697998, -0.6770086884498596, -0.18171924352645874, -0.36632102727890015, 0.1838679015636444, -0.4688701629638672, 0.29381680488586426, 0.07287557423114777, -1.3950393199920654, -0.030769700184464455, -0.7972919344902039, 0.0270692035555...
func GetConfig() Config { if value, ok := os.LookupEnv("APP_DEBUG"); ok { value = strings.Trim(value, " \r\n") value = strings.ToLower(value) if value == "true" { config.Debug = true } else { gin.SetMode(gin.ReleaseMode) } } if value, ok := os.LookupEnv("GEO_IP_DB_PATH"); ok { value = strings.Trim...
[ 0.06636717170476913, 0.03962580859661102, 0.6775941252708435, 0.7807925343513489, 0.25395309925079346, 0.6338050365447998, -0.5032219886779785, -0.22544360160827637, -0.8800498247146606, 0.6204948425292969, 0.3305836021900177, -0.32045307755470276, -0.3139566481113434, 1.4545032978057861, ...
func (*DiscoveryInfo) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { return _DiscoveryInfo_OneofMarshaler, _DiscoveryInfo_OneofUnmarshaler, _DiscoveryInfo_OneofSizer, []interface{...
[ -0.21101261675357819, 0.5300741791725159, 0.514003574848175, -0.32791954278945923, 0.27737927436828613, -0.5210707187652588, 0.8115475177764893, -1.300083041191101, -0.06851115822792053, -0.8147566914558411, -0.4255560636520386, -0.45170313119888306, 0.14274461567401886, 1.0749465227127075...
func (fake fakeFileUpload) UploadFileMultiparts(ctx context.Context, request UploadFileRequest) (response UploadResponse, err error) { response = UploadResponse{ Type: MultipartUpload, } return }
[ -0.9917460680007935, 0.20359304547309875, 0.6763432025909424, -0.21687261760234833, -0.23521681129932404, 0.08443998545408249, -0.3671741783618927, -0.41585686802864075, 0.26540303230285645, 0.7014133334159851, -0.2741835415363312, -0.8195393085479736, -0.9133870005607605, 0.86113244295120...
func (fake fakeFileUpload) UploadFilePutObject(ctx context.Context, request UploadFileRequest) (response UploadResponse, err error) { response = UploadResponse{ Type: SinglepartUpload, } return }
[ -1.0241620540618896, 0.023360570892691612, 0.6412988901138306, -0.37816759943962097, -0.11643332988023758, 0.18228332698345184, 1.04942786693573, -0.04483933746814728, -0.2694058418273926, 0.08509807288646698, -1.1466302871704102, -1.0495342016220093, -0.509300172328949, -0.038666285574436...
func (fake fakeFileUpload) ResumeUploadFile(ctx context.Context, uploadID string) (response UploadResponse, err error) { return }
[ 0.5813194513320923, -0.11746916174888611, 0.5477747321128845, -0.01681927591562271, 0.10457389056682587, -0.24521496891975403, 0.5165382027626038, -0.3370911777019501, 0.1742623746395111, -0.26594358682632446, -0.5399318933486938, -0.13781850039958954, -1.3134849071502686, -0.4849786460399...
func Execute() { initHelp() context := InitializeContext() printLogoWithVersion(os.Stdout) if context.config.trustAll { if !context.config.quiet { fmt.Println("WARNING: Configured to trust all - means unnown service certificate is accepted. Don't use this in production!") } } action := context.config.act...
[ 0.5753055810928345, -0.7751100659370422, 1.0326423645019531, 1.1029161214828491, 0.5374781489372253, 0.877274215221405, -0.4089759886264801, 0.02942545711994171, -0.19916246831417084, 0.5064340829849243, -0.25283804535865784, 0.36391308903694153, -0.11603137105703354, 0.16276319324970245, ...
func commonWayToApprove(context *Context) { createNewSecHubJob(context) handleCodeScanParts(context) approveSecHubJob(context) }
[ 0.5854671597480774, -0.48911476135253906, 0.4201362133026123, 0.62558913230896, 0.41527995467185974, 0.3316822648048401, -0.6198018193244934, 0.13532742857933044, -0.4491119384765625, -0.6504022479057312, 0.7043718099594116, -0.08621760457754135, -0.6600226759910583, 1.6261223554611206, ...
func createNewSecHubJob(context *Context) { fmt.Printf("- Creating new sechub job\n") response := sendWithDefaultHeader("POST", buildCreateNewSecHubJobAPICall(context), context) data, err := ioutil.ReadAll(response.Body) HandleError(err) var result jobScheduleResult jsonErr := json.Unmarshal(data, &result) Han...
[ 0.005306418519467115, -0.687667965888977, 0.33367177844047546, 1.0186563730239868, 0.33318182826042175, 1.1303350925445557, -0.7657954096794128, 0.4356667399406433, -0.28599950671195984, -0.40366330742836, -1.35116708278656, 0.41780349612236023, -1.0694941282272339, 0.3170657157897949, -...
func handleCodeScanParts(context *Context) { handleCodeScan(context) if !context.isUploadingSourceZip() { return } fmt.Printf("- Uploading source zip file\n") uploadSourceZipFile(context) }
[ -0.11059925705194473, 0.24028953909873962, 0.5479849576950073, 0.03108147531747818, -0.29026883840560913, 0.06592082977294922, -0.24939386546611786, -0.4450143873691559, 0.2516816556453705, -0.3877391815185547, -0.22486068308353424, -0.3469546437263489, -0.9949992895126343, 0.9129871129989...
func NewSeries(colName string, data ...interface{}) *Series { column := base.Column{Name: colName} seriesData := make([]interface{}, 0, len(data)) for _, val := range data { if fmt.Sprintf("%T", val) == "string" { val = convertStringToTypedValue(val.(string)) } seriesData = append(seriesData, val) } ser...
[ -0.28145503997802734, 0.2151220142841339, 0.33695879578590393, 0.10424742847681046, -0.12966488301753998, -0.2841206192970276, -0.7418423295021057, -0.7488291263580322, -0.3864177167415619, -0.4306897521018982, 0.24573659896850586, 1.216975450515747, -0.5026633143424988, -0.263046801090240...
func (s *Series) InferType() { for i, val := range s.Data { if val == nil { s.Data[i] = nil continue } // if at least one value is object, the column will be set as object if s.column.Dtype == base.Object { s.Data[i] = fmt.Sprintf("%v", val) continue } switch val.(type) { case int: if s.co...
[ 0.09909971803426743, -0.04836004972457886, 0.76921147108078, -0.60764080286026, 0.28227394819259644, -1.0053437948226929, 0.3491996228694916, -0.8233190178871155, -0.4444853961467743, 0.6318067312240601, 0.23179695010185242, 1.4400931596755981, 0.03696988895535469, 0.9095600247383118, 0....
func convertStringToTypedValue(val string) interface{} { int64Val, err := strconv.ParseInt(val, 10, 64) if err == nil { return int(int64Val) } floatVal, err := strconv.ParseFloat(val, 64) if err == nil { return floatVal } boolVal, err := strconv.ParseBool(val) if err == nil { return boolVal } return ...
[ -0.13278283178806305, -0.35232964158058167, 0.7050281763076782, -0.3877204656600952, -0.0716475322842598, 0.05935761705040932, -0.01895955204963684, -0.26565250754356384, -0.19907623529434204, -0.5488817095756531, -0.16971927881240845, 1.0380467176437378, -0.02698523737490177, 0.3567613959...
func (s *Series) ShallowCopy() *Series { newColumn := base.Column{Name: s.column.Name, Dtype: s.column.Dtype, ColIndex: s.column.ColIndex} // create and return the new series return &Series{column: newColumn, Data: s.Data} }
[ -0.14025066792964935, -0.8599733710289001, 0.26131322979927063, -0.895622193813324, -0.6484951972961426, 0.1498471051454544, 0.16911444067955017, -1.1327484846115112, 0.870391845703125, -0.6839009523391724, -0.5129179358482361, 1.5746310949325562, 0.03722338750958443, -1.2924816608428955, ...
func (s *Series) DeepCopy() *Series { newColumn := base.Column{Name: s.column.Name, Dtype: s.column.Dtype, ColIndex: s.column.ColIndex} newDataSlice := make([]interface{}, s.Len()) // copy the data copy(newDataSlice, s.Data) // create and return the new series return &Series{column: newColumn, Data: newDataSlic...
[ -0.2944088280200958, -0.32665517926216125, 0.45890241861343384, -0.1596878618001938, -0.4957770109176636, 0.16774903237819672, -0.08847801387310028, -0.76252681016922, 0.53599613904953, -0.3104649484157562, -0.48858916759490967, 1.2560268640518188, 0.09604215621948242, -1.5270549058914185,...
func newQueryQueue() *queryQueue { q := &queryQueue{ queue: make(queryPQ, 0), } heap.Init(&q.queue) return q }
[ 0.22872383892536163, -1.131360650062561, 0.3704001009464264, 0.3552604615688324, -0.6070610284805298, -0.059683796018362045, -1.19021475315094, 0.205887570977211, 0.05851198732852936, -0.9834604859352112, -0.35039782524108887, 0.17859689891338348, -0.16049033403396606, 0.8353419899940491, ...
func (q *queryQueue) push(e *queryQueueEntry) { heap.Push(&q.queue, e) }
[ 0.35846221446990967, -0.0867881178855896, 0.16934913396835327, -0.7185636162757874, 0.27202749252319336, 0.7207828760147095, -1.1086755990982056, -0.9494946002960205, 0.5337305068969727, 0.6495131850242615, -0.027852341532707214, 1.1012928485870361, 0.581609308719635, 1.097543716430664, ...
func (q *queryQueue) pop() *queryQueueEntry { return heap.Pop(&q.queue).(*queryQueueEntry) }
[ 0.8128713369369507, -0.7435842752456665, 0.3548627197742462, -0.6655164957046509, -0.18487007915973663, 0.3390861749649048, -0.46088293194770813, -0.8745658993721008, -0.3196153938770294, 0.5602800846099854, 0.507693350315094, 0.09713587909936905, 0.0764818862080574, 0.5325515866279602, ...