text stringlengths 11 6.3k | embedding listlengths 768 768 |
|---|---|
func (fds *FurnitureDetailSelect) Ints(ctx context.Context) ([]int, error) {
if len(fds.fields) > 1 {
return nil, errors.New("ent: FurnitureDetailSelect.Ints is not achievable when selecting more than 1 field")
}
var v []int
if err := fds.Scan(ctx, &v); err != nil {
return nil, err
}
return v, nil
} | [
-0.6451172232627869,
0.4997851252555847,
0.3083595037460327,
-0.5997191071510315,
0.2865345776081085,
-0.6398913264274597,
-0.2497260719537735,
-0.9766520261764526,
0.017846180126070976,
-0.34717249870300293,
-0.07019061595201492,
0.887636125087738,
-0.1323549598455429,
0.00771449599415063... |
func (fds *FurnitureDetailSelect) IntsX(ctx context.Context) []int {
v, err := fds.Ints(ctx)
if err != nil {
panic(err)
}
return v
} | [
-0.5539360046386719,
0.7251474857330322,
0.24086186289787292,
-0.08039038628339767,
-0.09783212840557098,
-0.16082467138767242,
-0.8575026392936707,
-0.8352569937705994,
0.5740403532981873,
0.008271628059446812,
-0.49234291911125183,
0.74385666847229,
-0.17067201435565948,
-0.4230404198169... |
func (fds *FurnitureDetailSelect) Int(ctx context.Context) (_ int, err error) {
var v []int
if v, err = fds.Ints(ctx); err != nil {
return
}
switch len(v) {
case 1:
return v[0], nil
case 0:
err = &NotFoundError{furnituredetail.Label}
default:
err = fmt.Errorf("ent: FurnitureDetailSelect.Ints returned %d ... | [
-0.2564277946949005,
0.2574061155319214,
0.2525900602340698,
-1.10067880153656,
0.557251513004303,
-0.3098832964897156,
0.1413404792547226,
-0.9930509328842163,
-0.4565053880214691,
-0.11703657358884811,
0.19637532532215118,
0.4074842631816864,
0.3438081741333008,
0.1204146221280098,
0.8... |
func (fds *FurnitureDetailSelect) IntX(ctx context.Context) int {
v, err := fds.Int(ctx)
if err != nil {
panic(err)
}
return v
} | [
0.07870344072580338,
0.5660545825958252,
0.2560326159000397,
-0.42012208700180054,
-0.24504853785037994,
0.43229976296424866,
-0.4775236248970032,
-0.7233551740646362,
0.44024544954299927,
-0.5493167638778687,
-0.06682540476322174,
0.729951024055481,
0.08107351511716843,
-0.400380074977874... |
func (fds *FurnitureDetailSelect) Float64s(ctx context.Context) ([]float64, error) {
if len(fds.fields) > 1 {
return nil, errors.New("ent: FurnitureDetailSelect.Float64s is not achievable when selecting more than 1 field")
}
var v []float64
if err := fds.Scan(ctx, &v); err != nil {
return nil, err
}
return v,... | [
-0.5651289224624634,
0.5325974225997925,
0.20843082666397095,
-0.23508313298225403,
0.6094241142272949,
-0.7724670767784119,
-0.5157589912414551,
-1.089534044265747,
0.30489861965179443,
-0.3332080543041229,
-0.24390368163585663,
0.8773396611213684,
-0.08904621005058289,
0.6326960325241089... |
func (fds *FurnitureDetailSelect) Float64sX(ctx context.Context) []float64 {
v, err := fds.Float64s(ctx)
if err != nil {
panic(err)
}
return v
} | [
-0.20282427966594696,
0.40517446398735046,
0.043102990835905075,
0.6273548007011414,
0.11010363698005676,
-0.5394254326820374,
-1.1365668773651123,
-0.7146827578544617,
0.6741670370101929,
-0.1485966295003891,
-0.4389957785606384,
0.5052539110183716,
0.022891387343406677,
0.184209972620010... |
func (fds *FurnitureDetailSelect) Float64(ctx context.Context) (_ float64, err error) {
var v []float64
if v, err = fds.Float64s(ctx); err != nil {
return
}
switch len(v) {
case 1:
return v[0], nil
case 0:
err = &NotFoundError{furnituredetail.Label}
default:
err = fmt.Errorf("ent: FurnitureDetailSelect.F... | [
-0.5033566951751709,
0.3210034668445587,
0.30204281210899353,
0.19764967262744904,
1.3200180530548096,
-0.7287890911102295,
0.19460152089595795,
-0.8922757506370544,
0.3555550277233124,
-0.42363253235816956,
0.36063215136528015,
0.2138858586549759,
0.05195000395178795,
0.5610598921775818,
... |
func (fds *FurnitureDetailSelect) Float64X(ctx context.Context) float64 {
v, err := fds.Float64(ctx)
if err != nil {
panic(err)
}
return v
} | [
-0.1271725594997406,
0.49755367636680603,
0.08019750565290451,
0.36327821016311646,
-0.12129594385623932,
-0.06212545558810234,
-0.49093541502952576,
-0.9571406245231628,
0.5100796222686768,
-0.6649191379547119,
-0.21595998108386993,
0.2699340283870697,
0.08259304612874985,
0.1631655395030... |
func (fds *FurnitureDetailSelect) Bools(ctx context.Context) ([]bool, error) {
if len(fds.fields) > 1 {
return nil, errors.New("ent: FurnitureDetailSelect.Bools is not achievable when selecting more than 1 field")
}
var v []bool
if err := fds.Scan(ctx, &v); err != nil {
return nil, err
}
return v, nil
} | [
-0.5566726326942444,
0.8271335959434509,
0.2846324145793915,
-0.7101966738700867,
0.8438817858695984,
-0.02296023815870285,
-0.4667515158653259,
-0.6401272416114807,
-0.0025364712346345186,
-0.5836100578308105,
0.15676768124103546,
0.6467416286468506,
0.5599847435951233,
0.0648712590336799... |
func (fds *FurnitureDetailSelect) BoolsX(ctx context.Context) []bool {
v, err := fds.Bools(ctx)
if err != nil {
panic(err)
}
return v
} | [
0.00905460212379694,
0.3440276086330414,
0.27059754729270935,
0.0966668650507927,
-0.2644655108451843,
0.28894466161727905,
-1.05777108669281,
-0.6783732771873474,
0.2853989899158478,
-0.006639588624238968,
-0.4531458616256714,
0.7730894088745117,
0.7064602375030518,
-0.13263405859470367,
... |
func (fds *FurnitureDetailSelect) Bool(ctx context.Context) (_ bool, err error) {
var v []bool
if v, err = fds.Bools(ctx); err != nil {
return
}
switch len(v) {
case 1:
return v[0], nil
case 0:
err = &NotFoundError{furnituredetail.Label}
default:
err = fmt.Errorf("ent: FurnitureDetailSelect.Bools returne... | [
0.0033567280042916536,
0.24423734843730927,
0.2214812934398651,
-0.2362973839044571,
1.0480844974517822,
0.23215603828430176,
0.3497176170349121,
-0.2473050057888031,
0.18714524805545807,
-0.3026043772697449,
0.18667049705982208,
0.5022286176681519,
0.7185642719268799,
-0.24718210101127625... |
func (fds *FurnitureDetailSelect) BoolX(ctx context.Context) bool {
v, err := fds.Bool(ctx)
if err != nil {
panic(err)
}
return v
} | [
0.4777779281139374,
0.3380786180496216,
0.26363658905029297,
-0.27969515323638916,
-0.13557551801204681,
1.0832027196884155,
-0.664004921913147,
-0.2290714830160141,
0.43399444222450256,
-0.38817480206489563,
-0.5071249008178711,
0.6354010105133057,
0.6136582493782043,
-0.5183490514755249,... |
func (g *Git) Auth() error {
ep, err := transport.NewEndpoint(g.Repository.URL)
if err != nil {
return err
}
if strings.HasPrefix(ep.Protocol, "ssh") {
key, err := os.ReadFile(g.SSHKeyPath)
if err != nil {
return err
}
signer, err := ssh.ParsePrivateKey(key)
if err != nil {
return err
}
g.Auth... | [
-0.11457709223031998,
-0.016173917800188065,
0.3719918429851532,
0.5080907344818115,
0.3229866325855255,
-0.03381616994738579,
-0.24863207340240479,
0.002500487258657813,
-0.37928202748298645,
-0.3196336030960083,
-0.026257911697030067,
0.47121554613113403,
0.16504938900470734,
0.475274175... |
func newEvaluator(coeffs [6]float64) lmsEvaluator {
var result lmsEvaluator
result.Coeffs = [6]float64{coeffs[0], coeffs[1], coeffs[2],
coeffs[3], coeffs[4], coeffs[5]}
return result
} | [
0.5738603472709656,
-0.6778884530067444,
0.3172450065612793,
-1.1641334295272827,
-0.605960488319397,
-0.7346484065055847,
-0.5709105134010315,
-0.7315206527709961,
0.7436984181404114,
-0.5544428825378418,
-0.4259783625602722,
0.034265030175447464,
-0.4896109700202942,
-0.7290003895759583,... |
func (me *lmsEvaluator) Eval(game c4.State, p c4.Piece) float64 {
var bestScore, knownScore float64
// Copy out the coefficients to reduce lock contention
me.coeffsMutex.RLock()
myCoeffs := me.Coeffs
me.coeffsMutex.RUnlock()
// Estimate the game state's utility
approxScore, currentFeatures := BetterEval(myCoef... | [
0.47773507237434387,
-0.3569273054599762,
0.9357946515083313,
-0.8400988578796387,
0.014277193695306778,
-0.18454234302043915,
-0.4839979410171509,
0.38840383291244507,
0.002015072852373123,
0.30112457275390625,
-0.11828900128602982,
0.6948642134666443,
0.04114706814289093,
-0.087967582046... |
func (watcher *GitWatcher) loadDeployments() error {
c := watcher.KubeClient
ns := watcher.Namespace
deplist, err := c.Extensions().Deployments(ns).List(*watcher.ListOpts)
if err != nil {
return err
}
for _, dep := range deplist.Items {
watcher.Deployments[toKey(&dep)] = &dep
}
return nil
} | [
-0.0776543840765953,
0.43701493740081787,
0.35257279872894287,
-0.574367344379425,
-0.2936765253543854,
-0.13607753813266754,
-0.7120667099952698,
-0.34026387333869934,
0.5601920485496521,
0.9039342403411865,
-0.675277829170227,
-0.21263308823108673,
-0.06081066280603409,
1.465948224067688... |
func (watcher *GitWatcher) watchLoop() {
c := watcher.KubeClient
ns := watcher.Namespace
w, err := c.Extensions().Deployments(ns).Watch(*watcher.ListOpts)
if err != nil {
printError(err)
}
kubectl.WatchLoop(w, func(e watch.Event) error {
o := e.Object
switch o := o.(type) {
case *extensions.Deployment:
... | [
0.7876778841018677,
-0.4401300549507141,
0.46820399165153503,
0.22012747824192047,
0.18312957882881165,
0.7487279176712036,
-0.31727784872055054,
-0.5239474773406982,
0.012220170348882675,
1.2601786851882935,
0.4241536557674408,
1.1497265100479126,
0.2538387179374695,
0.5860207080841064,
... |
func StartServer(port int) {
http.Handle("/", http.FileServer(http.Dir("./static")))
err := http.ListenAndServe(fmt.Sprintf(":%v", port), nil)
if err != nil {
panic(err)
}
} | [
-0.42596957087516785,
-0.5661217570304871,
0.4758635461330414,
0.2519589960575104,
1.1765388250350952,
1.2152034044265747,
0.30442938208580017,
0.8354590535163879,
-0.5682851076126099,
-0.6225984692573547,
-0.38664108514785767,
0.1708085983991623,
-0.014232426881790161,
0.4620976448059082,... |
func HoldQueueMessages(QueueIDs []string) error {
// only run subprocess if there are queue ids in the list
if len(QueueIDs) == 0 {
return nil
}
// prepare command and pipe to its stdin
cmd := exec.Command("/usr/bin/sudo", "/usr/sbin/postsuper", "-h", "-")
stdin, err := cmd.StdinPipe()
if err != nil {
fmt.Pr... | [
0.8780410289764404,
-1.0409365892410278,
0.9655142426490784,
-0.07019013911485672,
0.19021373987197876,
0.8124102354049683,
0.24211184680461884,
-0.5800080895423889,
-0.34224748611450195,
-0.2720930576324463,
-0.5096489191055298,
0.7680777907371521,
-0.45955657958984375,
0.7684040665626526... |
func (r *RazerDeviceOutput) ReceiveStatusNotification(notification monitor.StatusNotification) {
if notification.Status == gitlab.StatusSuccess {
err := r.deviceManager.SendChromaCommandToAll("setStatic", 0, 0, 255)
if err != nil {
r.logger.Error(err)
}
} else {
err := r.deviceManager.SendChromaCommandToAl... | [
0.4431968927383423,
-0.13169972598552704,
0.40747323632240295,
0.9091631174087524,
0.17248032987117767,
0.10001500695943832,
0.4849536120891571,
0.3639379143714905,
0.3007747232913971,
0.03689967840909958,
-0.6320203542709351,
0.012967083603143692,
-0.35024014115333557,
0.7360989451408386,... |
func alpn(tree *matchersTree, protos ...string) error {
proto := protos[0]
if proto == tlsalpn01.ACMETLS1Protocol {
return fmt.Errorf("invalid protocol value for ALPN matcher, %q is not allowed", proto)
}
tree.matcher = func(meta ConnData) bool {
for _, alpnProto := range meta.alpnProtos {
if alpnProto == ... | [
-0.11261534690856934,
-0.5673286318778992,
0.6814538836479187,
0.5776638388633728,
-0.7720953226089478,
1.1175123453140259,
-0.4652215242385864,
0.49242448806762695,
-0.27257537841796875,
0.1874477118253708,
-0.06605585664510727,
0.08370043337345123,
0.0223764106631279,
0.7610346674919128,... |
func hostSNI(tree *matchersTree, hosts ...string) error {
host := hosts[0]
if host == "*" {
// Since a HostSNI(`*`) rule has been provided as catchAll for non-TLS TCP,
// it allows matching with an empty serverName.
tree.matcher = func(meta ConnData) bool { return true }
return nil
}
if !almostFQDN.MatchS... | [
-0.1079038456082344,
-0.10909762233495712,
0.627578854560852,
0.3890964984893799,
-0.5171501040458679,
-0.25517258048057556,
-0.8425793051719666,
0.027621543034911156,
-1.2005823850631714,
-0.08903687447309494,
-0.2665996253490448,
-0.43617716431617737,
-0.057277049869298935,
0.28535699844... |
func hostSNIRegexp(tree *matchersTree, templates ...string) error {
template := templates[0]
if !isASCII(template) {
return fmt.Errorf("invalid value for HostSNIRegexp matcher, %q is not a valid hostname", template)
}
re, err := regexp.Compile(template)
if err != nil {
return fmt.Errorf("compiling HostSNIReg... | [
-0.1359376758337021,
-0.048371147364377975,
0.5722975730895996,
-0.2599565386772156,
-0.5377856492996216,
0.11505404859781265,
-0.387443482875824,
1.168294906616211,
-0.6265138983726501,
-0.01625032350420952,
-0.648090124130249,
-0.431636780500412,
-1.199684739112854,
0.553655207157135,
... |
func isASCII(s string) bool {
for i := 0; i < len(s); i++ {
if s[i] >= utf8.RuneSelf {
return false
}
}
return true
} | [
-0.021306339651346207,
-0.4192247688770294,
0.289284348487854,
0.5430279970169067,
-0.4224977195262909,
-0.4248807728290558,
-0.48427337408065796,
0.04095225781202316,
-0.5836962461471558,
1.0964032411575317,
-0.40518710017204285,
-0.37152501940727234,
-0.6065608859062195,
-0.3490391969680... |
func (p *Point) V() pixel.Vec {
return pixel.V(float64(p.X), float64(p.Y))
} | [
-0.27691876888275146,
-0.42192283272743225,
0.01939799264073372,
-0.24789611995220184,
0.27636244893074036,
0.8180720210075378,
0.1643928736448288,
-0.6149142384529114,
0.05210142582654953,
0.2454395890235901,
0.5836305618286133,
1.134687066078186,
0.8826463222503662,
-0.8629254698753357,
... |
func (p *Point) flipY() {
p.Y = int(p.parentMap.pixelHeight()) - p.Y
} | [
-0.9271916151046753,
-1.210906744003296,
0.5830355286598206,
-0.3434106409549713,
0.11110763996839523,
0.5263707637786865,
0.17964059114456177,
0.005168213043361902,
-0.7299523949623108,
-0.8352521061897278,
-0.45613810420036316,
0.3001948297023773,
0.26174479722976685,
0.9749605655670166,... |
func (item *Item) delete() error {
if num := DB.Where("id = ?", item.ID).Delete(&item).RowsAffected; num != 1 {
return fmt.Errorf("Item.delete 01\n RowsAffected = %d", num)
}
return nil
} | [
0.5153576731681824,
0.749354898929596,
0.5214786529541016,
1.1194051504135132,
1.026982069015503,
-0.4962485730648041,
0.5884696841239929,
0.38514503836631775,
0.30607515573501587,
0.15234002470970154,
0.38201138377189636,
-0.2913384437561035,
-0.31758248805999756,
0.2305632084608078,
0.... |
func (item *Item) commit() {
DB.Where("id = ?", item.ID).FirstOrCreate(&item)
DB.Model(item).Update(&item)
} | [
-0.18808455765247345,
-0.870973527431488,
0.5177823305130005,
0.6681624054908752,
1.21212899684906,
0.6861016750335693,
0.06680814921855927,
0.15879319608211517,
-0.795589029788971,
1.5684738159179688,
-0.1342940628528595,
-0.6721699237823486,
0.15556679666042328,
0.09008912742137909,
-0... |
func NewFactory() exporter.Factory {
return exporter.NewFactory(
metadata.Type,
createDefaultConfig,
exporter.WithLogs(createLogsExporter, metadata.LogsStability))
} | [
0.41991329193115234,
-0.22563819587230682,
0.28694960474967957,
1.3735524415969849,
0.1016925498843193,
-0.5499165058135986,
-0.3148901164531708,
-0.013895731419324875,
0.478158175945282,
-0.1805182546377182,
0.04618006572127342,
0.08455078303813934,
-0.1744466871023178,
0.4443097710609436... |
func createDefaultConfig() component.Config {
return &Config{}
} | [
1.1934229135513306,
-0.2615293860435486,
0.2165461778640747,
0.521973192691803,
0.67547607421875,
0.3563145399093628,
-0.8330059051513672,
0.43429574370384216,
-0.22612234950065613,
-0.39049267768859863,
-0.8322347402572632,
-0.5192738771438599,
-0.31048262119293213,
1.510232925415039,
0... |
func Stringify(t flux.Table) string {
return table.Stringify(t)
} | [
-0.07347811758518219,
0.5417090058326721,
0.1344786435365677,
0.034595176577568054,
-0.10770520567893982,
-0.12688778340816498,
-0.7086172699928284,
-0.45021846890449524,
-1.1387852430343628,
0.47922801971435547,
-1.0778238773345947,
0.4957539737224579,
0.36162593960762024,
0.4519455432891... |
func NewStateManager(conf config.Config) (Manager, error) {
name := "postgres"
if conf.IsSet("state_manager") {
name = conf.GetString("state_manager")
}
switch name {
case "postgres":
pgm := &SQLStateManager{}
err := pgm.Initialize(conf)
if err != nil {
return nil, errors.Wrap(err, "problem initializin... | [
-0.49398675560951233,
-0.08078814297914505,
0.32668641209602356,
0.16262446343898773,
-0.47905394434928894,
-0.8335561156272888,
-1.048153281211853,
-0.23400728404521942,
0.18116505444049835,
0.09903357923030853,
-0.377669095993042,
-0.22625692188739777,
-0.8168742656707764,
1.178810119628... |
func createSupperSecretSelectivePatch(sec map[string]config.NameValues) (map[string]*config.SelectivePatch, error) {
spMap := make(map[string]*config.SelectivePatch)
for svc, data := range sec {
spMap[svc] = getSuperSecretSPTemplate(svc)
for _, conf := range data {
sp := getSuperSecretSPTemplate(svc)
sp.Pat... | [
0.20644496381282806,
-0.6398084759712219,
0.39032167196273804,
0.26201149821281433,
-0.40825968980789185,
0.6275179386138916,
-0.07971709966659546,
-0.03335210680961609,
1.0371805429458618,
-0.37065157294273376,
-0.9954506754875183,
0.5954605340957642,
-0.292510062456131,
0.118994370102882... |
func getSecretPatchBody(svc string, nv config.NameValue) types.Patch {
ph := getSuperSecretTemplate(svc)
ph.Data = map[string]string{
nv.Name: fmt.Sprintf(`(( index (ds "data") "%s" ))`, nv.Name),
}
phb, _ := yaml.Marshal(ph)
p1 := types.Patch{
Patch: strings.Replace(string(phb), ": |", ": |-", -1), // when l... | [
-0.10489757359027863,
-0.12399611622095108,
0.5672300457954407,
-0.13108761608600616,
-0.33495351672172546,
0.1804744452238083,
-0.5444419384002686,
0.5276172757148743,
0.8914973139762878,
-0.2679332494735718,
-1.6808173656463623,
0.7202558517456055,
-0.4459021985530853,
0.0732102990150451... |
func getSuperSecretSPTemplate(svc string) *config.SelectivePatch {
return getSelectivePatchTemplate(svc + "-generated-operator-secrets")
} | [
0.5460511445999146,
0.37841349840164185,
0.3069521486759186,
0.5525996088981628,
-1.4504848718643188,
-0.02234717085957527,
0.042653486132621765,
0.5377590656280518,
0.7046258449554443,
-0.5070620775222778,
-1.3337037563323975,
0.021870341151952744,
-0.1679435670375824,
-0.2865764498710632... |
func extractMeta(entry Entry) error {
file, err := os.Open(entry.filespec)
if err != nil {
return err
}
defer file.Close()
m, err := tag.ReadFrom(file)
if err != nil {
return err
}
entry.fields[ARTIST] = m.Artist()
entry.fields[ALBUM] = m.Album()
entry.fields[SONG] = m.Title()
track, _ := m.Track()
en... | [
0.42862603068351746,
-0.30456316471099854,
0.7550967335700989,
-0.3216398358345032,
0.34320470690727234,
-0.03409237787127495,
0.13251355290412903,
0.7212195992469788,
-0.37515565752983093,
0.7754442691802979,
-0.6741015911102295,
0.1940879374742508,
0.555196225643158,
-0.13743183016777039... |
func timeToString(t time.Time) string {
return t.Format(TIME_FORMAT)
} | [
-0.5543734431266785,
-0.8796762228012085,
0.4239388406276703,
-0.3112564980983734,
0.19384106993675232,
0.4626229703426361,
-0.8748149275779724,
-1.0317959785461426,
0.048927903175354004,
0.7771706581115723,
-0.4206007122993469,
-0.5829647779464722,
0.5932725071907043,
1.08038330078125,
... |
func trackToString(track int) string {
s := "00000" + strconv.Itoa(track)
return s[len(s)-5:]
} | [
-0.6562036275863647,
-0.04843084514141083,
0.41197967529296875,
-0.7928058505058289,
-0.171936497092247,
0.38223570585250854,
0.03092089481651783,
-1.2193658351898193,
-0.2580828368663788,
0.44803324341773987,
-0.7523751258850098,
-0.09758346527814865,
-0.2692296802997589,
-0.2340061664581... |
func ParseLevelFromString(s string) LogLevel {
for ll, regex := range logLevelRegexPairs {
matched, _ := regexp.MatchString(regex, s)
if matched {
return ll
}
}
// Fallback to Error level if log level didn't match
return Error
} | [
0.8994797468185425,
-1.1452195644378662,
0.4993552267551422,
-0.08655831962823868,
-0.8611375689506531,
0.30633318424224854,
-0.035092543810606,
-0.27619802951812744,
0.11244716495275497,
-0.5773582458496094,
0.2599911391735077,
-0.1602654606103897,
-0.2831847071647644,
-0.5508930683135986... |
func Generate(c *fiber.Ctx) error {
var png []byte
msg := fmt.Sprintf("%s", c.Query("text"))
if len(msg) == 0 {
return c.Status(400).SendString("Must specify text to encode")
}
size := fmt.Sprintf("%s", c.Query("size"))
qrsize, sizeErr := strconv.Atoi(size)
if sizeErr != nil {
qrsize = 256
}
png, err := qr... | [
-0.364946573972702,
0.8243144154548645,
0.7251492738723755,
-0.07620808482170105,
-0.816559910774231,
-0.166352778673172,
-0.47733408212661743,
-1.1034470796585083,
-0.04712866246700287,
0.07075615227222443,
0.04647377133369446,
0.2799138128757477,
-0.4000537097454071,
1.0861541032791138,
... |
func NewResultSet(results ...Result) ResultSet {
// Validate results
for _, res := range results {
if !res.IsValid() {
panic(fmt.Errorf("invalid result %s in result set", res.String()))
}
}
return results
} | [
0.16569529473781586,
-0.36027607321739197,
0.27925506234169006,
0.9389412999153137,
-0.7097441554069519,
0.009948921389877796,
-0.4723197817802429,
-0.9754942655563354,
-0.28176525235176086,
-1.192952036857605,
0.7365098595619202,
-0.5399916768074036,
-0.692659318447113,
0.1768316626548767... |
func (set ResultSet) Contains(result Result) bool {
for _, res := range set {
if res == result {
return true
}
}
return false
} | [
-1.027622938156128,
0.08875742554664612,
0.010691915638744831,
0.10503952205181122,
-0.8802871704101562,
-0.4797433018684387,
-0.5244585871696472,
-1.3918911218643188,
-0.31633424758911133,
-0.9459167718887329,
-0.6020099520683289,
-0.1487911343574524,
-0.537635326385498,
0.370648652315139... |
func main() {
/*PERCOBAAN 1
ini akan mencetak sebuah variable baru bernama "m" dengan tipe data "int" dengan nilai 123
*/
// m:=123
// fmt.Println(m)
/* HASIL :
$ go run test.go
123
*/
/*PERCOBAAN 2
namun jika kita mencoba untuk memasukkan nilai baru kepada variable yang di deklarasikan menggunakan Shor... | [
0.39141780138015747,
-0.3808944821357727,
0.8548914194107056,
0.2961469292640686,
-0.264180988073349,
0.3065272569656372,
0.8473647236824036,
-0.46436968445777893,
-0.93536376953125,
0.8150283098220825,
-0.4489506483078003,
-0.3361932933330536,
-0.3239474892616272,
0.7574000358581543,
0.... |
func NewStringsValue(val []string, p *[]string) *stringsValue {
*p = val
return (*stringsValue)(p)
} | [
-0.05585272237658501,
0.2382669448852539,
0.22557027637958527,
-0.17177405953407288,
-0.8078746199607849,
-0.3508390486240387,
-1.2346429824829102,
-0.9641116261482239,
0.026807695627212524,
0.3346348702907562,
0.3548807203769684,
0.418363094329834,
0.20673401653766632,
0.05162874981760979... |
func (o *GetHyperflexNodeProfilesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewGetHyperflexNodeProfilesOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
... | [
0.30002686381340027,
-0.054428793489933014,
0.682443380355835,
0.41517892479896545,
0.4914287030696869,
-0.8317194581031799,
0.5664017796516418,
-0.39882126450538635,
0.10369235277175903,
0.1536557525396347,
0.016071677207946777,
-0.4661140441894531,
-1.3930307626724243,
-0.310614883899688... |
func NewGetHyperflexNodeProfilesOK() *GetHyperflexNodeProfilesOK {
return &GetHyperflexNodeProfilesOK{}
} | [
0.8383190631866455,
0.5408463478088379,
0.577727198600769,
0.9572408199310303,
-0.4066475033760071,
-0.09390177577733994,
0.9529290199279785,
-0.11203419417142868,
-1.2354557514190674,
-0.06820669770240784,
-1.149580955505371,
0.04967823252081871,
-0.3472272455692291,
-0.519978404045105,
... |
func NewGetHyperflexNodeProfilesDefault(code int) *GetHyperflexNodeProfilesDefault {
return &GetHyperflexNodeProfilesDefault{
_statusCode: code,
}
} | [
0.7456107139587402,
0.5896870493888855,
0.17976829409599304,
0.4657367765903473,
1.0052173137664795,
0.0031745636370033026,
0.13255158066749573,
0.09413093328475952,
-0.3652522563934326,
-0.45909467339515686,
-1.295015811920166,
-0.08250419795513153,
-1.292885184288025,
-0.6648079752922058... |
func (o *GetHyperflexNodeProfilesDefault) Code() int {
return o._statusCode
} | [
0.8167922496795654,
1.0082274675369263,
0.14542925357818604,
0.8053921461105347,
1.3991328477859497,
-0.1919364184141159,
0.06032088026404381,
0.4858566224575043,
-0.5770961046218872,
-0.2980841398239136,
-0.7138392329216003,
-0.05891493707895279,
-1.3253318071365356,
0.339805006980896,
... |
func (s CoordinatesString) Parse() (Coordinates, error) {
p := strings.SplitN(string(s), ",", 2)
if len(p) != 2 {
return Coordinates{}, fmt.Errorf("invalid coordinates string: %s", s)
}
lat, lon := p[1], p[0]
var c Coordinates
var err error
c.Latitude, err = strconv.ParseFloat(lat, 64)
if err != nil {
retu... | [
0.15534453094005585,
-0.5205172896385193,
0.4490862488746643,
-0.2019699662923813,
-0.4371070861816406,
-0.2814626097679138,
-0.2623802125453949,
0.18654976785182953,
-0.1498461216688156,
-0.8019579648971558,
0.2823635935783386,
0.13754461705684662,
-0.22276818752288818,
-0.943758726119995... |
func (t DateString) Parse() (time.Time, error) {
return time.ParseInLocation("200601021504", string(t), Timezone)
} | [
-0.002467987360432744,
0.05328253284096718,
0.3112391531467438,
0.08937177807092667,
-0.20147942006587982,
0.10787049680948257,
-0.3179742991924286,
-0.497019499540329,
-0.160750150680542,
0.13092155754566193,
-0.5825215578079224,
-0.7401896715164185,
-0.26708683371543884,
-0.7027966380119... |
func (ac Classification) IsValid() error {
switch ac {
case PersonalAccount, BusinessAccount:
return nil
}
return ErrInvalidAccountClassificationType
} | [
0.06344004720449448,
-0.14392037689685822,
0.4865199625492096,
1.185300588607788,
0.7083913683891296,
0.6621541380882263,
0.5451944470405579,
0.16037623584270477,
1.3497670888900757,
-0.5483951568603516,
0.6324328184127808,
1.3096435070037842,
0.7167741060256958,
0.23571690917015076,
0.6... |
func Constructor() MedianFinder {
return MedianFinder{
nums: []int{},
n: 0,
}
} | [
-0.16360965371131897,
-0.8964961767196655,
0.06314034014940262,
0.8503744006156921,
-0.37908032536506653,
0.4176200032234192,
0.4134688079357147,
0.8584030866622925,
0.7917732000350952,
-0.8618513941764832,
0.38778603076934814,
0.05366363003849983,
-0.2694476544857025,
0.43746620416641235,... |
func (t *Transaction) TransactionType() int64 {
if t.Type == nil {
return TransactionTypeLegacy
}
return t.Type.Int64()
} | [
0.4147067368030548,
1.3306515216827393,
0.6943503618240356,
0.24869419634342194,
0.7295035719871521,
-1.1642094850540161,
0.43045005202293396,
0.2332676202058792,
0.8104304075241089,
0.5819057822227478,
0.2866184115409851,
-0.8245571851730347,
-0.31352514028549194,
0.7902768850326538,
0.... |
func (t *Transaction) RequiredFields() error {
var fields []string
switch t.TransactionType() {
case TransactionTypeLegacy:
if t.GasPrice == nil {
fields = append(fields, "gasPrice")
}
return nil
case TransactionTypeAccessList:
if t.ChainId == nil {
fields = append(fields, "chainId")
}
case Transac... | [
-0.17770154774188995,
0.3714960217475891,
0.5400620698928833,
-0.8915393948554993,
0.6129611730575562,
-0.15559430420398712,
-0.5175249576568604,
-0.22343477606773376,
0.08417884260416031,
0.503754734992981,
-0.16876286268234253,
-0.40815573930740356,
-0.40873369574546814,
0.45567652583122... |
func (t *Transaction) RawRepresentation() (*Data, error) {
if err := t.RequiredFields(); err != nil {
return nil, err
}
switch t.TransactionType() {
case TransactionTypeLegacy:
// Legacy Transactions are RLP(Nonce, GasPrice, Gas, To, Value, Input, V, R, S)
message := rlp.Value{List: []rlp.Value{
t.Nonce.R... | [
-0.17430776357650757,
-0.30446478724479675,
0.9075176119804382,
-0.854285717010498,
-0.5140151977539062,
-0.40665674209594727,
-0.5030240416526794,
-0.7491551041603088,
0.6019943356513977,
0.6743230223655701,
-0.062093645334243774,
0.04925410449504852,
-0.15958145260810852,
-0.016204651445... |
func Sort(x []uint64) {
if len(x) < MinSize {
sort.Slice(x, func(i, j int) bool { return x[i] < x[j] })
} else {
buffer := make([]uint64, len(x))
SortBYOB(x, buffer)
}
} | [
0.19097939133644104,
0.8670955896377563,
0.6203344464302063,
0.45547276735305786,
-1.065741777420044,
0.6858041882514954,
-0.26071250438690186,
-1.1336787939071655,
1.0114206075668335,
-0.45276394486427307,
-0.21963949501514435,
0.6133437156677246,
-0.3218643367290497,
0.6813954710960388,
... |
func SortCopy(x []uint64) []uint64 {
y := make([]uint64, len(x))
copy(y, x)
Sort(y)
return y
} | [
-0.8139087557792664,
-0.061261724680662155,
0.9325940608978271,
1.0949057340621948,
-1.2665865421295166,
0.5583319664001465,
0.12410062551498413,
-0.8218517303466797,
1.0278363227844238,
0.5205624103546143,
0.021928023546934128,
0.3446846604347229,
0.3326594829559326,
0.04471438378095627,
... |
func SortBYOB(x, buffer []uint64) {
if len(x) > len(buffer) {
panic("Buffer too small")
}
if len(x) < 2 {
return
}
// Each pass processes a byte offset, copying back and forth between slices
from := x
to := buffer[:len(x)]
var key uint8
var offset [256]int // Keep track of where groups start
for keyOffs... | [
0.025988765060901642,
0.12878026068210602,
1.2912324666976929,
0.17684367299079895,
-1.053889513015747,
0.5103474855422974,
0.855876624584198,
-1.3229225873947144,
-0.046878471970558167,
0.09231892973184586,
-0.42487815022468567,
0.49442458152770996,
-0.22487114369869232,
0.248882398009300... |
func RegistrationHandler(ctx context.Context, mongoClient *mongo.Client) func(http.ResponseWriter, *http.Request) {
return func(w http.ResponseWriter, r *http.Request) {
collection := mongoClient.Database("employees").Collection("registrations")
_, err := collection.InsertOne(ctx, Registration{
Name: r.PostFo... | [
-0.23381556570529938,
1.0562431812286377,
0.7990630269050598,
0.3255951404571533,
0.27684688568115234,
0.7132377624511719,
0.6057178974151611,
0.6339079141616821,
-0.945826530456543,
0.7407822012901306,
-0.2566969394683838,
-0.8709081411361694,
-0.46551209688186646,
0.1967473030090332,
0... |
func (m *TapiNotificationGetNotificationListInput) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateInput(formats); err != nil {
res = append(res, err)
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
} | [
-0.3038880527019501,
0.9728544354438782,
0.08937368541955948,
0.5786526799201965,
0.4120969772338867,
0.2725895047187805,
0.7086054682731628,
-0.4480545222759247,
-0.7059402465820312,
0.446785032749176,
-0.2982376217842102,
-0.9472774267196655,
0.4105518162250519,
0.8304870128631592,
0.6... |
func (m *TapiNotificationGetNotificationListInputInput) Validate(formats strfmt.Registry) error {
return nil
} | [
-0.4514061510562897,
0.9809680581092834,
-0.0010391526157036424,
0.6652398109436035,
0.44393619894981384,
0.851345956325531,
1.0359928607940674,
0.1406322717666626,
-0.181675523519516,
0.045358806848526,
-0.6082512140274048,
-0.9875351190567017,
0.20420706272125244,
0.6446253657341003,
0... |
func NewEventHandler(writeAheadLogService *wal.Service, multiplexingService *multiplexing.Service,
eventsCache *caching.EventsCache, parser events.Parser, processor events.Processor) (eventHandler *EventHandler) {
return &EventHandler{
writeAheadLogService: writeAheadLogService,
multiplexingService: multiplexing... | [
0.3083597421646118,
-0.2178611308336258,
0.27888792753219604,
-0.09375543892383575,
-0.43129298090934753,
-0.20666645467281342,
-0.6375481486320496,
0.01541930716484785,
0.7031758427619934,
0.0968078002333641,
0.13449396193027496,
0.6453208923339844,
-0.385769248008728,
0.18393336236476898... |
func (eh *EventHandler) PostHandler(c *gin.Context) {
eventsArray, err := eh.parser.ParseEventsBody(c)
if err != nil {
msg := fmt.Sprintf("Error parsing events body: %v", err)
c.JSON(http.StatusBadRequest, middleware.ErrResponse(msg, nil))
return
}
iface, ok := c.Get(middleware.TokenName)
if !ok {
logging... | [
-0.7326086759567261,
-0.29877886176109314,
1.0412110090255737,
0.01923736371099949,
-0.29841312766075134,
-0.011107497848570347,
-0.015010417439043522,
0.47140392661094666,
-0.05179017037153244,
0.4720693528652191,
0.21688823401927948,
0.07358212023973465,
-0.40332189202308655,
0.697526097... |
func (eh *EventHandler) GetHandler(c *gin.Context) {
var err error
destinationIDs, ok := c.GetQuery("destination_ids")
if !ok {
c.JSON(http.StatusBadRequest, middleware.ErrResponse("destination_ids is required parameter", nil))
return
}
if destinationIDs == "" {
c.JSON(http.StatusOK, CachedEventsResponse{Ev... | [
-0.7694939374923706,
0.5011624693870544,
1.1168478727340698,
0.5976073741912842,
-0.25566649436950684,
-0.30718186497688293,
0.05849742889404297,
0.23995020985603333,
-0.5552871227264404,
0.6700923442840576,
0.24685344099998474,
0.5860506296157837,
-0.0881870687007904,
0.04113375023007393,... |
func extractIP(c *gin.Context) string {
ip := c.Request.Header.Get("X-Real-IP")
if ip == "" {
ip = c.Request.Header.Get("X-Forwarded-For")
}
if ip == "" {
remoteAddr := c.Request.RemoteAddr
if remoteAddr != "" {
addrPort := strings.Split(remoteAddr, ":")
ip = addrPort[0]
}
}
//Case when Nginx conca... | [
-0.0034037516452372074,
-0.17392374575138092,
0.7792351245880127,
0.5318987965583801,
-0.8351588845252991,
-0.43909579515457153,
-0.004917057231068611,
0.594051718711853,
0.48650670051574707,
0.6895641088485718,
0.8787117600440979,
-0.6667186617851257,
-0.023329634219408035,
-1.17084372043... |
func complyWithCookieLaws(ip string) bool {
ipThreeOctets := getThreeOctets(ip)
if appconfig.Instance.GeoResolver.Type() != geo.MaxmindType {
return false
}
data, err := appconfig.Instance.GeoResolver.Resolve(ipThreeOctets)
if err != nil {
logging.SystemErrorf("Error resolving IP %q into geo data: %v", ipThr... | [
0.38163894414901733,
0.2920364439487457,
0.6343319416046143,
-0.0715322345495224,
-0.7829820513725281,
1.0065330266952515,
-0.572712779045105,
-0.3953571021556854,
0.49954280257225037,
-0.052762266248464584,
0.6700502038002014,
-0.34293362498283386,
-0.1205376461148262,
0.9178179502487183,... |
func NewRun() *Run {
this := Run{}
return &this
} | [
0.26593124866485596,
-0.9190707802772522,
-0.0885487049818039,
0.814235270023346,
-0.7623697519302368,
0.027073966339230537,
0.13556383550167084,
-0.7837227582931519,
0.1365036964416504,
-1.4722156524658203,
-0.34994029998779297,
0.724725604057312,
-0.6847615838050842,
-0.4817667603492737,... |
func NewRunWithDefaults() *Run {
this := Run{}
return &this
} | [
-0.04293113201856613,
-0.1244078278541565,
-0.1470165252685547,
0.9136196374893188,
-0.05873505026102066,
-0.4865908622741699,
-0.9806909561157227,
-1.354094386100769,
-0.26759326457977295,
-0.9343034625053406,
-1.1072914600372314,
-0.6647101640701294,
-0.8777973055839539,
0.23262459039688... |
func (o *Run) GetId() string {
if o == nil || o.Id == nil {
var ret string
return ret
}
return *o.Id
} | [
1.0639171600341797,
0.08305343985557556,
0.37641844153404236,
1.059692621231079,
0.16355064511299133,
0.42185431718826294,
0.8833386301994324,
-0.6536839008331299,
1.406663179397583,
-0.3993605077266693,
0.22363340854644775,
-0.7674031853675842,
-0.8117808699607849,
1.0377618074417114,
1... |
func (o *Run) GetIdOk() (*string, bool) {
if o == nil || o.Id == nil {
return nil, false
}
return o.Id, true
} | [
-0.5182610154151917,
0.6698215007781982,
0.5256307125091553,
1.4031331539154053,
0.35203948616981506,
0.3100403845310211,
0.7268959879875183,
0.5322214961051941,
0.8917908668518066,
-0.14678490161895752,
-0.9631603360176086,
-0.33259814977645874,
-0.043366383761167526,
0.24212700128555298,... |
func (o *Run) HasId() bool {
if o != nil && o.Id != nil {
return true
}
return false
} | [
1.2023741006851196,
-0.012296137399971485,
0.5077822804450989,
0.9389997124671936,
0.45654043555259705,
0.8727831840515137,
0.14196908473968506,
0.4350813329219818,
1.14216148853302,
-0.6141138076782227,
-0.2821618616580963,
-0.2576921284198761,
-0.6343957185745239,
0.38834184408187866,
... |
func (o *Run) SetId(v string) {
o.Id = &v
} | [
0.8525615930557251,
-0.35180288553237915,
-0.09151404350996017,
0.35519465804100037,
-0.9689647555351257,
0.9229912757873535,
-0.31470516324043274,
-0.9004788994789124,
0.7054785490036011,
0.4889768064022064,
-0.1639695018529892,
1.2059767246246338,
-0.4803113639354706,
-0.0261556133627891... |
func (o *Run) GetTaskID() string {
if o == nil || o.TaskID == nil {
var ret string
return ret
}
return *o.TaskID
} | [
1.0549917221069336,
0.10450675338506699,
0.4438249170780182,
1.2460899353027344,
-0.18790094554424286,
0.5333880186080933,
0.987657904624939,
-0.44087567925453186,
1.261055827140808,
0.21500347554683685,
0.41986873745918274,
-0.8494267463684082,
-0.06697177141904831,
1.264479398727417,
0... |
func (o *Run) GetTaskIDOk() (*string, bool) {
if o == nil || o.TaskID == nil {
return nil, false
}
return o.TaskID, true
} | [
0.16934408247470856,
0.657099723815918,
0.680470883846283,
0.5903620719909668,
0.35080355405807495,
0.7915151715278625,
1.3026045560836792,
0.9494562745094299,
0.07025973498821259,
0.3593689501285553,
-0.7102688550949097,
-0.5739979147911072,
0.751704216003418,
0.8575165271759033,
-0.179... |
func (o *Run) HasTaskID() bool {
if o != nil && o.TaskID != nil {
return true
}
return false
} | [
1.2031325101852417,
0.12768885493278503,
0.5594149231910706,
0.6538830399513245,
0.034251801669597626,
0.1455964744091034,
0.349119633436203,
0.5071786642074585,
0.550261378288269,
0.4497377872467041,
-0.027509653940796852,
-0.5034756660461426,
0.8860357403755188,
1.1276973485946655,
-0.... |
func (o *Run) SetTaskID(v string) {
o.TaskID = &v
} | [
1.4988336563110352,
-0.3798484206199646,
0.0422036312520504,
0.4957622289657593,
-1.1417465209960938,
0.7436056137084961,
0.12115996330976486,
-0.7306973338127136,
0.11141454428434372,
1.0366133451461792,
0.21666914224624634,
0.999152660369873,
0.2651493549346924,
0.2133033722639084,
-0.... |
func (o *Run) GetStatus() string {
if o == nil || o.Status == nil {
var ret string
return ret
}
return *o.Status
} | [
0.7716712951660156,
0.3022919297218323,
0.20966021716594696,
0.9995786547660828,
-0.4345540702342987,
-0.26917141675949097,
0.7402947545051575,
-0.03415999561548233,
0.8667033910751343,
-0.6547054648399353,
-0.037671107798814774,
-0.6361713409423828,
-0.30113160610198975,
0.863964796066284... |
func (o *Run) GetStatusOk() (*string, bool) {
if o == nil || o.Status == nil {
return nil, false
}
return o.Status, true
} | [
-0.3242346942424774,
0.8660473227500916,
0.4482296407222748,
1.0648157596588135,
-0.08329448848962784,
-0.27855366468429565,
0.6036337614059448,
1.0574162006378174,
0.011173100210726261,
-0.12676222622394562,
-1.3680845499038696,
0.10042521357536316,
0.9733896255493164,
0.4051780700683594,... |
func (o *Run) HasStatus() bool {
if o != nil && o.Status != nil {
return true
}
return false
} | [
0.6517549753189087,
-0.008745348080992699,
0.41486018896102905,
0.807671844959259,
0.30312591791152954,
0.021144380792975426,
0.04644940420985222,
1.226028323173523,
0.3144640326499939,
-0.7556256651878357,
-1.0888158082962036,
-0.3257831931114197,
0.18517588078975677,
0.5097447037696838,
... |
func (o *Run) SetStatus(v string) {
o.Status = &v
} | [
0.7918286323547363,
-0.2021520435810089,
-0.18532508611679077,
0.3915085792541504,
-1.5006599426269531,
0.4253861904144287,
-0.5405351519584656,
-0.3260469436645508,
-0.043746206909418106,
0.21189278364181519,
-0.5493201613426208,
1.5004526376724243,
-0.10290171951055527,
0.046874731779098... |
func (o *Run) GetScheduledFor() time.Time {
if o == nil || o.ScheduledFor == nil {
var ret time.Time
return ret
}
return *o.ScheduledFor
} | [
-0.18180587887763977,
0.035752251744270325,
0.5868696570396423,
0.17362864315509796,
0.1738501638174057,
-0.9915127158164978,
-0.17669285833835602,
0.23772341012954712,
0.004469850566238165,
-1.540187120437622,
-0.06460432708263397,
-1.2986478805541992,
-0.5740381479263306,
0.6847633123397... |
func (o *Run) GetScheduledForOk() (*time.Time, bool) {
if o == nil || o.ScheduledFor == nil {
return nil, false
}
return o.ScheduledFor, true
} | [
0.08854394406080246,
0.05849249288439751,
0.7038019299507141,
0.258522093296051,
0.1616235375404358,
-0.5501519441604614,
0.21881647408008575,
0.7303755283355713,
-0.41223281621932983,
-0.9902486205101013,
-1.0938609838485718,
-0.6363798379898071,
0.5221055150032043,
0.0724615678191185,
... |
func (o *Run) HasScheduledFor() bool {
if o != nil && o.ScheduledFor != nil {
return true
}
return false
} | [
0.043630823493003845,
0.3793490529060364,
0.3896434009075165,
-0.5278356075286865,
0.6083174347877502,
-0.8235961198806763,
-0.6892735958099365,
1.0840942859649658,
-1.1473749876022339,
-1.7135051488876343,
-0.8436443209648132,
-1.161602258682251,
0.4136582314968109,
0.17969271540641785,
... |
func (o *Run) SetScheduledFor(v time.Time) {
o.ScheduledFor = &v
} | [
0.27336063981056213,
-0.13156060874462128,
0.1965688318014145,
-0.1624322384595871,
-0.2297472506761551,
-0.26182547211647034,
-0.5638242363929749,
-0.5877863764762878,
-0.22209800779819489,
-0.6331871151924133,
-0.35502171516418457,
0.14046764373779297,
0.15412917733192444,
0.199777275323... |
func (o *Run) GetLog() []LogEvent {
if o == nil || o.Log == nil {
var ret []LogEvent
return ret
}
return *o.Log
} | [
0.313730925321579,
1.244873046875,
0.45652124285697937,
1.7473795413970947,
0.33682262897491455,
-0.7451344132423401,
1.4497690200805664,
-0.03094225376844406,
1.0933852195739746,
-0.7084057331085205,
-0.6728510856628418,
-0.6941587924957275,
-0.40350762009620667,
0.5349745750427246,
0.8... |
func (o *Run) GetLogOk() (*[]LogEvent, bool) {
if o == nil || o.Log == nil {
return nil, false
}
return o.Log, true
} | [
0.2924266755580902,
0.6230834722518921,
0.43163907527923584,
0.8931902647018433,
0.12201099097728729,
-0.031048309057950974,
0.42540159821510315,
0.47203123569488525,
0.2634650766849518,
0.32513004541397095,
-1.170538067817688,
-0.00144717947114259,
0.157162144780159,
0.1955775022506714,
... |
func (o *Run) HasLog() bool {
if o != nil && o.Log != nil {
return true
}
return false
} | [
0.69638991355896,
0.9104118347167969,
0.22420746088027954,
0.7899703979492188,
0.14942553639411926,
-0.17772534489631653,
0.5654101967811584,
0.9553672075271606,
-0.30193987488746643,
-1.1067055463790894,
-0.32682153582572937,
-1.0037904977798462,
0.2774108946323395,
-0.09820890426635742,
... |
func (o *Run) SetLog(v []LogEvent) {
o.Log = &v
} | [
0.5482516884803772,
0.45307213068008423,
0.1187935397028923,
1.237692952156067,
-0.3859613239765167,
-0.3574085235595703,
-0.1279103010892868,
-0.5535888671875,
0.3829372823238373,
-0.3208363354206085,
-0.49213194847106934,
0.515159547328949,
0.15838831663131714,
-0.0379316471517086,
0.1... |
func (o *Run) GetStartedAt() time.Time {
if o == nil || o.StartedAt == nil {
var ret time.Time
return ret
}
return *o.StartedAt
} | [
0.2017667293548584,
-0.036758869886398315,
0.3494172692298889,
-0.14165514707565308,
-0.3329299986362457,
-0.23535673320293427,
0.3897593915462494,
-0.6299358606338501,
0.44240209460258484,
-1.296424150466919,
-0.24757713079452515,
-0.5962836742401123,
-0.8676154613494873,
1.12677919864654... |
func (o *Run) GetStartedAtOk() (*time.Time, bool) {
if o == nil || o.StartedAt == nil {
return nil, false
}
return o.StartedAt, true
} | [
-0.2007971554994583,
0.3055253028869629,
0.5909535884857178,
0.7999740242958069,
0.2815147340297699,
0.09920116513967514,
0.7671332359313965,
0.22218799591064453,
-0.2020377516746521,
-1.0683538913726807,
-1.0050218105316162,
-0.3257181942462921,
0.9640020132064819,
0.7310470342636108,
-... |
func (o *Run) HasStartedAt() bool {
if o != nil && o.StartedAt != nil {
return true
}
return false
} | [
0.05625993758440018,
-0.029323214665055275,
0.3177650570869446,
-0.5551954507827759,
-0.024832190945744514,
-0.28871360421180725,
-0.3431917726993561,
-0.031151216477155685,
-0.4300444722175598,
-1.5577268600463867,
-0.9433667063713074,
-0.9964594841003418,
0.07290390133857727,
0.540994584... |
func (o *Run) SetStartedAt(v time.Time) {
o.StartedAt = &v
} | [
0.17947249114513397,
-0.34996476769447327,
0.04719274118542671,
-0.6188787817955017,
-1.0864009857177734,
0.28301557898521423,
0.06435249745845795,
-1.157871127128601,
0.10028022527694702,
-0.6778379082679749,
-0.6310874223709106,
0.6050993204116821,
-0.3840217590332031,
0.5559459328651428... |
func (o *Run) GetFinishedAt() time.Time {
if o == nil || o.FinishedAt == nil {
var ret time.Time
return ret
}
return *o.FinishedAt
} | [
-0.26403701305389404,
0.5611786842346191,
0.19745267927646637,
-0.24545392394065857,
-0.5630752444267273,
-0.023231327533721924,
0.25509196519851685,
-1.3120826482772827,
-0.37962809205055237,
-1.0143779516220093,
-0.09889547526836395,
-0.4940817654132843,
-0.4450870454311371,
1.1518254280... |
func (o *Run) GetFinishedAtOk() (*time.Time, bool) {
if o == nil || o.FinishedAt == nil {
return nil, false
}
return o.FinishedAt, true
} | [
-0.6869227886199951,
0.763944685459137,
0.5504720211029053,
0.5234739184379578,
0.26530757546424866,
0.1122494712471962,
0.6856415867805481,
-0.30995503067970276,
-0.9303429126739502,
-0.5350651144981384,
-0.7633630037307739,
-0.46044760942459106,
1.0487788915634155,
1.0112545490264893,
... |
func (o *Run) HasFinishedAt() bool {
if o != nil && o.FinishedAt != nil {
return true
}
return false
} | [
-0.40472549200057983,
0.545997142791748,
0.16664813458919525,
-0.8274935483932495,
0.03854024037718773,
-0.01587737537920475,
-0.40070682764053345,
-0.5613111853599548,
-1.2447878122329712,
-1.033627986907959,
-0.9981593489646912,
-1.05293607711792,
0.5940312743186951,
0.7262536287307739,
... |
func (o *Run) SetFinishedAt(v time.Time) {
o.FinishedAt = &v
} | [
-0.12483964115381241,
0.188589408993721,
0.12865832448005676,
-0.7270138263702393,
-0.9173768162727356,
0.4178068935871124,
-0.11408703774213791,
-1.5847816467285156,
-0.7099115252494812,
-0.45065921545028687,
-0.6935552954673767,
0.3281152546405792,
-0.01943359710276127,
0.607177317142486... |
func (o *Run) GetRequestedAt() time.Time {
if o == nil || o.RequestedAt == nil {
var ret time.Time
return ret
}
return *o.RequestedAt
} | [
-0.4265271723270416,
0.28395289182662964,
0.7737842798233032,
0.44394412636756897,
0.06774790585041046,
0.232852503657341,
-0.22614990174770355,
-1.1038581132888794,
0.05959981307387352,
-1.4452168941497803,
0.35030362010002136,
-0.9995039701461792,
-0.725556492805481,
0.8754605650901794,
... |
func (o *Run) GetRequestedAtOk() (*time.Time, bool) {
if o == nil || o.RequestedAt == nil {
return nil, false
}
return o.RequestedAt, true
} | [
-1.579429268836975,
0.7756093740463257,
0.952826201915741,
0.5399636030197144,
0.08051731437444687,
0.6204720139503479,
-0.5784010887145996,
0.041613802313804626,
-0.025626085698604584,
-1.281569480895996,
-0.7752436399459839,
-0.079146608710289,
0.3438083231449127,
0.4712427854537964,
0... |
func (o *Run) HasRequestedAt() bool {
if o != nil && o.RequestedAt != nil {
return true
}
return false
} | [
-0.3079480230808258,
0.4630137085914612,
0.5943312048912048,
-0.2149965763092041,
0.5657562613487244,
0.18323133885860443,
-1.035818338394165,
-0.05501227453351021,
-0.6494244933128357,
-1.7058117389678955,
-0.3648626506328583,
-1.2312500476837158,
0.20828568935394287,
0.4519054591655731,
... |
func (o *Run) SetRequestedAt(v time.Time) {
o.RequestedAt = &v
} | [
-0.5188845992088318,
0.17563126981258392,
0.24703949689865112,
-0.005394198466092348,
-0.22676332294940948,
0.4791012406349182,
-0.7534878253936768,
-1.404977560043335,
-0.3267512619495392,
-0.8795920610427856,
-0.02198442630469799,
0.12472821772098541,
-0.026308855041861534,
0.14294573664... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.