text
stringlengths
11
6.3k
embedding
listlengths
768
768
func (a Authentication) GetSupportedAuthenticationMethods() (map[string]interface{}, error) { return a.c.Request("authentication/view/getSupportedAuthenticationMethods/", nil) }
[ -1.407857060432434, 0.7450135946273804, 0.525127112865448, 1.0544825792312622, -1.0771985054016113, -0.4153973162174225, 0.85567706823349, 0.13373684883117676, 0.4855126440525055, -0.1347608119249344, -0.7273375988006592, 0.34234264492988586, -0.35823380947113037, -0.1530875563621521, 0....
func (a Authentication) GetAuthenticationMethodConfigParams(authmethodname string) (map[string]interface{}, error) { m := map[string]string{ "authMethodName": authmethodname, } return a.c.Request("authentication/view/getAuthenticationMethodConfigParams/", m) }
[ -2.08297061920166, 0.9572221636772156, 0.43705466389656067, 0.07206570357084274, -0.5520287752151489, -0.21755701303482056, 0.40802547335624695, 0.032831475138664246, -0.28809139132499695, 1.2889275550842285, -0.3467950224876404, 0.5218194127082825, -0.17329268157482147, 0.8223562240600586...
func (a Authentication) GetAuthenticationMethod(contextid string) (map[string]interface{}, error) { m := map[string]string{ "contextId": contextid, } return a.c.Request("authentication/view/getAuthenticationMethod/", m) }
[ -1.2312229871749878, 0.7544017434120178, 0.36357375979423523, 0.2908587157726288, -0.28409963846206665, -1.2001914978027344, 0.9783803820610046, -0.8411508202552795, 0.6392077207565308, 0.3299504816532135, 0.24124008417129517, 0.699328601360321, 0.011539358645677567, -0.46750402450561523, ...
func (a Authentication) GetLoggedInIndicator(contextid string) (map[string]interface{}, error) { m := map[string]string{ "contextId": contextid, } return a.c.Request("authentication/view/getLoggedInIndicator/", m) }
[ -1.0717657804489136, 0.014865829609334469, 0.5961718559265137, -0.12701807916164398, -1.0164928436279297, -0.2668644189834595, 0.3052324950695038, -0.5290899872779846, 0.7800406813621521, -0.7711074948310852, 0.2987390160560608, 1.0540785789489746, -0.7413728833198547, -0.5688773393630981,...
func (a Authentication) GetLoggedOutIndicator(contextid string) (map[string]interface{}, error) { m := map[string]string{ "contextId": contextid, } return a.c.Request("authentication/view/getLoggedOutIndicator/", m) }
[ -1.2086832523345947, 0.14149989187717438, 0.3692950904369354, -0.8059567809104919, -1.2488045692443848, 0.22852814197540283, 0.052492354065179825, -0.28442397713661194, 1.2804710865020752, -0.30407872796058655, 0.28455042839050293, 1.2098557949066162, -0.689294695854187, -0.37079918384552,...
func (a Authentication) SetAuthenticationMethod(contextid string, authmethodname string, authmethodconfigparams string) (map[string]interface{}, error) { m := map[string]string{ "contextId": contextid, "authMethodName": authmethodname, "authMethodConfigParams": authmethodconfigparams, } re...
[ -1.3320722579956055, 0.07365130633115768, 0.2856895923614502, 0.35072061419487, -0.035989344120025635, -0.6610865592956543, 0.8916519284248352, -0.3292103409767151, 0.1436191350221634, 1.2045704126358032, -0.3241293430328369, 0.8289161920547485, -0.042461976408958435, -0.15162639319896698,...
func (a Authentication) SetLoggedInIndicator(contextid string, loggedinindicatorregex string) (map[string]interface{}, error) { m := map[string]string{ "contextId": contextid, "loggedInIndicatorRegex": loggedinindicatorregex, } return a.c.Request("authentication/action/setLoggedInIndicator/", m) }
[ -1.5067235231399536, -1.07536780834198, 0.5414339900016785, -0.11228904128074646, -0.5632375478744507, 0.12314910441637039, 0.37878307700157166, 0.23467369377613068, 0.7645479440689087, -0.6701018214225769, -0.7412557005882263, 1.3936957120895386, -0.632566511631012, -0.9199475646018982, ...
func (a Authentication) SetLoggedOutIndicator(contextid string, loggedoutindicatorregex string) (map[string]interface{}, error) { m := map[string]string{ "contextId": contextid, "loggedOutIndicatorRegex": loggedoutindicatorregex, } return a.c.Request("authentication/action/setLoggedOutIndicator/", ...
[ -1.517162799835205, -0.8429669141769409, 0.24634522199630737, -0.8106819987297058, -1.0340967178344727, 0.4662281572818756, -0.14692431688308716, 0.40928375720977783, 1.176871418952942, -0.1679452508687973, -0.4200553596019745, 1.410298466682434, -0.5107406973838806, -0.7905702590942383, ...
func New() *List { return &List{nil, nil, 0, sync.RWMutex{}} }
[ -0.28551042079925537, -0.7636044025421143, -0.020899541676044464, 0.5507675409317017, 0.0037380261346697807, -0.29904085397720337, -0.3467039167881012, 0.23175515234470367, 0.668595016002655, -0.40060871839523315, -1.4242122173309326, -0.10196934640407562, 0.4046725928783417, 1.30912053585...
func (l *List) IsEmpty() bool { l.RLock() defer l.RUnlock() if l.length == 0 { return true } return false }
[ -1.485801339149475, -0.04546239972114563, 0.36559247970581055, 0.3187229037284851, 1.2753825187683105, -0.09298381209373474, -0.5860986113548279, 0.4564458727836609, 0.40517616271972656, 0.23823894560337067, -1.3140076398849487, 0.17128673195838928, -1.0221333503723145, 0.47715699672698975...
func (l *List) Len() int { l.RLock() defer l.RUnlock() return l.length }
[ -0.5676628351211548, 0.3031383752822876, -0.0500672347843647, 0.27069091796875, 0.204354390501976, -0.21738502383232117, 0.9629314541816711, 1.5310311317443848, 0.3934535086154938, -0.5293672680854797, -1.8119773864746094, -0.13870348036289215, -0.43867912888526917, 0.36976099014282227, ...
func (l *List) Size() int { return l.Len() }
[ -0.9630841612815857, 0.7915478944778442, -0.05562768504023552, -0.3240303099155426, -0.022391850128769875, 0.6373792290687561, 0.41517871618270874, 1.1326780319213867, 1.1789236068725586, -0.37629926204681396, -1.5649369955062866, -0.03919164463877678, -0.5960938334465027, 1.10705780982971...
func (l *List) Front() interface{} { l.RLock() defer l.RUnlock() if l.length == 0 { return nil } return l.head.value }
[ -0.2911923825740814, 0.46986955404281616, 0.2407248169183731, 0.22896802425384521, 0.24679288268089294, -0.2790413796901703, -0.6411066055297852, 0.08848224580287933, 0.9112868309020996, -0.8359092473983765, -0.7693443894386292, 1.3372454643249512, -0.3911135792732239, 1.1799752712249756, ...
func (l *List) Tail() interface{} { l.RLock() defer l.RUnlock() if l.length == 0 { return nil } return l.tail.value }
[ -0.5705227255821228, 0.12706196308135986, 0.5107190608978271, 0.5326234102249146, 0.21424739062786102, 0.13833478093147278, -0.30234256386756897, -0.41330304741859436, 0.6661010980606079, -0.6507222652435303, -0.8314757347106934, 0.5107516050338745, -0.8250839114189148, 0.6238100528717041,...
func (l *List) PushBack(value interface{}) { temp := &node{value, nil, nil} l.Lock() if l.length == 0 { l.head = temp l.tail = temp } else { temp.prev = l.tail l.tail = temp } l.length++ l.Unlock() }
[ -0.3555501103401184, 1.0708553791046143, 0.954898476600647, -0.3195107579231262, -0.11039827018976212, -0.05694958195090294, 0.5462470650672913, 0.16207905113697052, 1.0283135175704956, 0.954748272895813, -0.16545450687408447, 0.32604551315307617, -1.2846651077270508, 0.2753284275531769, ...
func (l *List) PushFront(value interface{}) { temp := &node{value, nil, nil} l.Lock() if l.length == 0 { l.head = temp l.tail = temp } else { temp.next = l.head l.head = temp } l.length++ l.Unlock() }
[ -0.5088512897491455, 1.078249454498291, 0.30480316281318665, -0.6893845796585083, -0.20540423691272736, -0.5061594843864441, -0.4726565182209015, -0.2948343753814697, 1.27103853225708, -0.04115902632474899, -0.8913151025772095, 0.9856393337249756, -0.2820107638835907, 1.4077773094177246, ...
func (l *List) Remove(value interface{}) { l.Lock() for n := l.head; n != nil; n = n.next { if n.value == value { n.prev.next = n.next n.next.prev = n.prev l.length-- } } l.Unlock() }
[ -0.5802311301231384, 0.6531344652175903, 0.45631974935531616, -0.13590897619724274, -0.972613513469696, -0.281612753868103, 0.6280315518379211, 0.9162394404411316, 1.5534201860427856, 0.7865738272666931, -1.5433422327041626, -0.13777083158493042, -1.0844852924346924, 0.9843417406082153, ...
func (l *List) Merge(l2 *List) { if l.length == 0 { l.Lock() l2.Lock() l = l2 l.Unlock() l2.Unlock() return } if l2.length == 0 { return } l.Lock() l2.Lock() l.tail.next = l2.head l2.head.prev = l.tail l.tail = l2.tail l.length += l2.length l.Unlock() l2.Unlock() }
[ -0.8747937679290771, 0.6653956770896912, 0.8395612835884094, 0.17379727959632874, -0.1623430848121643, 0.08014979958534241, -0.7117252349853516, 0.27511870861053467, 0.7751905918121338, -0.7565391659736633, -1.7308297157287598, 0.3241536319255829, -1.161718726158142, 0.9434502720832825, ...
func (Stage) EnumDescriptor() ([]byte, []int) { return file_ocis_messages_policies_v0_policies_proto_rawDescGZIP(), []int{0} }
[ -0.7883955836296082, 0.01626049168407917, 0.5235101580619812, -0.541144609451294, -0.2682037651538849, 0.1831606775522232, 0.4886055588722229, 0.24147434532642365, 0.2975563406944275, 0.36275431513786316, 0.22616291046142578, 0.18077856302261353, -0.5170983672142029, 1.2788280248641968, ...
func (*User) Descriptor() ([]byte, []int) { return file_ocis_messages_policies_v0_policies_proto_rawDescGZIP(), []int{0} }
[ -0.6633549928665161, 0.017609793692827225, 0.3835683763027191, -0.14381912350654602, -0.19401942193508148, 0.3898320496082306, 0.5191834568977356, 0.07012730091810226, -0.18146143853664398, -0.9000723958015442, -0.44515568017959595, 0.07761415839195251, -0.03984854742884636, 0.862011373043...
func (*Resource) Descriptor() ([]byte, []int) { return file_ocis_messages_policies_v0_policies_proto_rawDescGZIP(), []int{1} }
[ -0.4681214392185211, 0.5989562273025513, 0.039168354123830795, -0.3919448256492615, -0.062482334673404694, 0.5511555075645447, 0.35418418049812317, 0.20971214771270752, 0.23372198641300201, -0.04786571487784386, 0.26262569427490234, -0.18907104432582855, -0.29336267709732056, 0.85000085830...
func (*Request) Descriptor() ([]byte, []int) { return file_ocis_messages_policies_v0_policies_proto_rawDescGZIP(), []int{2} }
[ -1.2952631711959839, 0.5484341382980347, 0.42164260149002075, -0.40893518924713135, 0.5820555090904236, 0.20959874987602234, -0.3279179632663727, 0.03142424300312996, 0.04851427674293518, -1.0071754455566406, 0.38180258870124817, 0.19822166860103607, -0.04413434490561485, 0.497374087572097...
func (*Environment) Descriptor() ([]byte, []int) { return file_ocis_messages_policies_v0_policies_proto_rawDescGZIP(), []int{3} }
[ -0.5899554491043091, 0.4732453525066376, 0.1878194659948349, -1.3967633247375488, 0.14532366394996643, 0.6048446893692017, 0.3611672818660736, -0.05003836750984192, -0.4048509895801544, 0.32680001854896545, 0.31113940477371216, -0.31253013014793396, -0.26927661895751953, 0.7551833391189575...
func (*User_ID) Descriptor() ([]byte, []int) { return file_ocis_messages_policies_v0_policies_proto_rawDescGZIP(), []int{0, 0} }
[ 0.7528228759765625, -0.5227047204971313, 0.10049288719892502, 0.18532955646514893, 0.3993803560733795, 0.5760337114334106, -0.17483267188072205, 0.5443622469902039, 0.03255181014537811, -0.05299842730164528, 0.10352379828691483, 0.7697018384933472, -0.382246732711792, 1.0833271741867065, ...
func (*Resource_ID) Descriptor() ([]byte, []int) { return file_ocis_messages_policies_v0_policies_proto_rawDescGZIP(), []int{1, 0} }
[ 0.9109747409820557, -0.26775798201560974, 0.03411201760172844, -0.7244712114334106, 0.782792329788208, 0.5711156725883484, -0.26816490292549133, 0.20412583649158478, 0.2378450185060501, 0.49950581789016724, 0.7444552779197693, 0.40823042392730713, -0.3737499415874481, 0.9778701663017273, ...
func CreateSysConfigFile(platform string, memberDNSName string) *manage.ReplicaConfigFile { content := fmt.Sprintf(sysContent, platform, memberDNSName) return &manage.ReplicaConfigFile{ FileName: SYS_FILE_NAME, FileMode: common.DefaultConfigFileMode, Content: content, } }
[ 0.58790522813797, 0.58741295337677, 0.3258363604545593, 0.14374136924743652, -0.4828813970088959, 0.0746181458234787, -0.561598002910614, 0.9035748839378357, -1.3405295610427856, 0.24306917190551758, -1.9083216190338135, -0.46456581354141235, -0.390754759311676, 0.5158558487892151, 0.565...
func MBToBytes(mb int64) int64 { return mb * 1024 * 1024 }
[ 0.0937645360827446, 0.3466430902481079, 0.4838019609451294, -0.2953163981437683, -1.2257436513900757, 0.1521749645471573, -0.3107759356498718, 0.046135313808918, 0.0776563212275505, 0.09358101338148117, -0.6321658492088318, -0.2827838957309723, -1.3025906085968018, 0.7012966275215149, -0...
func (s *StorageECR721Fixed) SetMintable(status bool) error { evmTr, err := s.session.SetMintable(status) if err != nil { err = errors.Wrapf(err, "failed to execute %s", SetMintable) Logger.Error(err) return err } Logger.Info("Executed ", SetMintable, "hash: ", evmTr.Hash()) return nil }
[ -0.0015301662497222424, -0.35309115052223206, 0.831030011177063, 0.30751603841781616, -0.19244013726711273, 0.37552469968795776, 0.29102906584739685, -0.7227593064308167, 0.05474408343434334, -0.17612148821353912, -0.3421926200389862, 0.7555607557296753, -0.21362319588661194, 0.90727961063...
func (s *StorageECR721Fixed) SetRoyalty(sum *big.Int) error { evmTr, err := s.session.SetRoyalty(sum) if err != nil { err = errors.Wrapf(err, "failed to execute %s", SetRoyalty) Logger.Error(err) return err } Logger.Info("Executed ", SetRoyalty, " hash: ", evmTr.Hash()) return nil }
[ -0.378226101398468, 0.02134949155151844, 0.9529072642326355, -0.22330743074417114, 0.6930743455886841, -0.6425264477729797, 0.433771550655365, -0.6420079469680786, 0.5561911463737488, 0.014912339858710766, -1.4542746543884277, 0.748757004737854, -0.22991101443767548, 0.9039442539215088, ...
func (s *StorageECR721Fixed) SetReceiver(receiver string) error { address := common.HexToAddress(receiver) evmTr, err := s.session.SetReceiver(address) if err != nil { err = errors.Wrapf(err, "failed to execute %s", SetReceiver) Logger.Error(err) return err } Logger.Info("Executed ", SetReceiver, " hash: "...
[ -0.6756975054740906, -0.23893190920352936, 0.42545342445373535, -0.3139655590057373, -0.23677903413772583, -0.49580106139183044, -0.10938902944326401, 0.7178622484207153, 0.3493780195713043, -0.3864246904850006, -0.5330074429512024, 0.019447114318609238, -0.05097788944840431, 0.71385711431...
func (s *StorageECR721Fixed) Withdraw() error { evmTr, err := s.session.Withdraw() if err != nil { err = errors.Wrapf(err, "failed to execute %s", Withdraw) Logger.Error(err) return err } Logger.Info("Executed ", Withdraw, " hash: ", evmTr.Hash()) return nil }
[ -0.03694465383887291, 0.3693597614765167, 0.6665915250778198, -0.3657017648220062, 0.8185377717018127, -0.03406970575451851, 0.711895763874054, -0.24112746119499207, -0.024086449295282364, -0.9204422235488892, 0.04289957508444786, 0.3927290439605713, 0.07015479356050491, 0.2309338748455047...
func WriteBaseStrandsRio(piles []BaseStrandPile, refNames []string, out io.Writer) error { // recordiozstd.Init() is called in singleton.go's init(). recordWriter := recordio.NewWriter(out, recordio.WriterOpts{ Marshal: marshalBaseStrand, Transformers: []string{recordiozstd.Name}, }) // could error out if ...
[ -0.263653039932251, -0.1757432520389557, 0.5283364057540894, 0.1701575070619583, 0.8196117281913757, -0.13905802369117737, 0.1553252637386322, -0.7799490094184875, -0.8944326639175415, 0.01208090502768755, -0.3653949201107025, -0.12028469145298004, 0.007285536266863346, -0.0844168066978454...
func ReadBaseStrandsRio(rs io.ReadSeeker) (piles []BaseStrandPile, refNames []string, err error) { var unmarshaller BaseStrandUnmarshaller scanner := recordio.NewScanner(rs, recordio.ScannerOpts{ Unmarshal: unmarshaller.UnmarshalBaseStrand, }) if len(scanner.Trailer()) != 0 { var numPiles int64 if numPiles, e...
[ -0.4728466868400574, -0.5832805633544922, 0.7170838117599487, -0.09860995411872864, -0.05164290964603424, -0.06741131097078323, 0.07479017227888107, -1.0744893550872803, -0.6551300287246704, 0.017184417694807053, -0.3642635941505432, 0.0815364196896553, -0.02899802103638649, 0.189612090587...
func WriteBaseStrandToTSV(piles []BaseStrandPile, refNames []string, w io.Writer) (err error) { // Note that this is slightly different from the .basestrand.tsv format: // there is no REF base column, or '#' marking the header line. outTSV := tsv.NewWriter(w) outTSV.WriteString("CHROM\tPOS\tA+\tA-\tC+\tC-\tG+\tG-\t...
[ -0.6472374200820923, -0.8001453876495361, 0.8828099966049194, -0.523693859577179, 0.5379956960678101, 0.11523401737213135, 0.2934430241584778, -1.1130319833755493, -0.9875053763389587, 0.044478099793195724, -0.23574203252792358, 0.2728906273841858, 0.8346509337425232, 0.07521966099739075, ...
func WriteBaseStrandsRioAsTSV(ctx context.Context, path string, w io.Writer) error { file, err := file.Open(ctx, path) if err != nil { return err } piles, refNames, err2 := ReadBaseStrandsRio(file.Reader(ctx)) if err2 != nil { return err2 } return WriteBaseStrandToTSV(piles, refNames, w) }
[ -0.34418147802352905, -0.38919347524642944, 0.48020198941230774, 0.20160801708698273, 0.19473473727703094, 0.08424271643161774, 0.4112577736377716, -0.7902266383171082, -0.31954559683799744, -0.14746065437793732, 0.31134259700775146, 0.4249923825263977, 1.3841056823730469, 0.30188310146331...
func ReadBaseStrandTsv(r io.Reader) ([]BaseStrandTsvRow, error) { tsvReader := tsv.NewReader(r) tsvReader.Comment = '#' rows := make([]BaseStrandTsvRow, 0) for { var row BaseStrandTsvRow if err := tsvReader.Read(&row); err != nil { if err == io.EOF { break } else { return nil, err } } rows...
[ -0.4209209978580475, -0.8814071416854858, 0.5784590244293213, -0.41758349537849426, -0.18370799720287323, -0.13918928802013397, -0.3741886615753174, -0.9332850575447083, -0.3142138421535492, 0.48333829641342163, 0.28651314973831177, 0.3192234933376312, 0.5917080640792847, 0.401484668254852...
func WriteBaseStrandTsv(rows []BaseStrandTsvRow, writer io.Writer) error { tsvWriter := tsv.NewRowWriter(writer) for _, row := range rows { if err := tsvWriter.Write(&row); err != nil { return err } } return tsvWriter.Flush() }
[ -0.8726966381072998, 0.011130426079034805, 0.379632830619812, -0.07293669134378433, 0.5157882571220398, -0.42900553345680237, -0.07960183918476105, -0.6876892447471619, -0.34730854630470276, 0.09613456577062607, 0.3019501566886902, 0.13475176692008972, 0.8693256974220276, 0.254690825939178...
func ReadSingleStrandBaseStrandTsv(forward, reverse io.Reader) ([]BaseStrandTsvRow, error) { fwdReader := tsv.NewReader(forward) fwdReader.HasHeaderRow = true fwdReader.UseHeaderNames = true revReader := tsv.NewReader(reverse) revReader.HasHeaderRow = true revReader.UseHeaderNames = true rows := make([]BaseStr...
[ -0.038898877799510956, -0.6338894963264465, 0.754656970500946, -0.7328016757965088, -0.0070228599943220615, -0.03419467434287071, 0.5008203387260437, -0.6600347757339478, -0.2557428479194641, 0.06955421715974808, 0.599474310874939, 0.49098193645477295, 0.22311893105506897, 0.02214653044939...
func ReadBaseStrandTsvIntoChannel(reader *tsv.Reader, c chan []BaseStrandTsvRow, bufferLen int, fileName string, wg *sync.WaitGroup) { wg.Add(1) index := 0 buffer := make([]BaseStrandTsvRow, 0, bufferLen) var row BaseStrandTsvRow for { if err := reader.Read(&row); err != nil { if err == io.EOF { c <- buff...
[ -0.11775802820920944, -0.6454684734344482, 0.6598195433616638, -1.0334888696670532, 0.4504457116127014, -0.36925429105758667, 0.20740163326263428, -0.7264732718467712, -0.5725379586219788, 0.5813458561897278, 0.8065779805183411, 0.716496467590332, 0.4995160698890686, -0.08522828668355942, ...
func ChrId(chr string) (int, error) { // In our current set of reference files, the chromosome ID is prefixed with // "chr". chrId := chr[3:] switch chrId { case "X": return 23, nil case "Y": return 24, nil case "M": return 25, nil default: i, err := strconv.Atoi(chrId) if err != nil { return 0, er...
[ 0.052990928292274475, -0.3674990236759186, 0.746304452419281, -0.4697168171405792, -0.7296472191810608, 0.046152494847774506, -0.130170077085495, 0.03350017964839935, -0.6568170785903931, -0.15510250627994537, 0.5747564435005188, 0.5373687744140625, -0.8141319155693054, 0.5693410038948059,...
func OpenForWriting(filename string) (*os.File, error) { if filename == "-" || filename == "" { return os.Stdout, nil } return os.Create(filename) }
[ -0.11322718858718872, 0.46294310688972473, 0.4955306053161621, -0.14429306983947754, -0.6224715709686279, 0.011920370161533356, 0.3962379992008209, 0.6513087749481201, -0.7423410415649414, -0.587493896484375, 1.4296011924743652, -0.6871660947799683, 0.01760280318558216, 0.3533741235733032,...
func NewTicketProjectsImportProjectParams() *TicketProjectsImportProjectParams { var () return &TicketProjectsImportProjectParams{ timeout: cr.DefaultTimeout, } }
[ 0.44235867261886597, 0.5088326930999756, 0.2811460793018341, 0.6031782627105713, -0.4649493396282196, 0.45763838291168213, 0.26163655519485474, -0.3309916853904724, -0.7674760222434998, 0.42981159687042236, -1.0708571672439575, -1.0445337295532227, -1.51262366771698, -0.23275157809257507, ...
func NewTicketProjectsImportProjectParamsWithTimeout(timeout time.Duration) *TicketProjectsImportProjectParams { var () return &TicketProjectsImportProjectParams{ timeout: timeout, } }
[ 0.7869778275489807, 0.3277895748615265, 0.3360612094402313, 0.650098443031311, -0.5280388593673706, 1.284759283065796, -0.43151673674583435, -0.2992253005504608, -0.8947401642799377, 1.3785325288772583, -0.6620019674301147, -0.5354115962982178, -1.2749831676483154, -0.03228946402668953, ...
func NewTicketProjectsImportProjectParamsWithContext(ctx context.Context) *TicketProjectsImportProjectParams { var () return &TicketProjectsImportProjectParams{ Context: ctx, } }
[ 0.4158425033092499, 0.5526080131530762, 0.5340659618377686, 0.26399463415145874, -0.1840411275625229, 1.2564454078674316, -0.26803407073020935, -0.8650138974189758, -0.3872089385986328, 0.9508165121078491, -0.8875279426574707, -0.8782452344894409, -1.3533860445022583, -0.5730589628219604, ...
func NewTicketProjectsImportProjectParamsWithHTTPClient(client *http.Client) *TicketProjectsImportProjectParams { var () return &TicketProjectsImportProjectParams{ HTTPClient: client, } }
[ 0.40594199299812317, 0.4101111888885498, 0.36658236384391785, 0.3420272767543793, -0.172599196434021, 1.1441643238067627, 0.5082263350486755, -0.15485766530036926, -0.8425757884979248, 0.7998243570327759, -1.0615859031677246, -1.090554118156433, -1.3026717901229858, -0.5209126472473145, ...
func (o *TicketProjectsImportProjectParams) WithTimeout(timeout time.Duration) *TicketProjectsImportProjectParams { o.SetTimeout(timeout) return o }
[ 0.6142876148223877, 0.5190500020980835, 0.2664884924888611, 0.32364052534103394, -0.6033779978752136, 0.7804703116416931, 0.14125704765319824, -0.2024412900209427, -0.24409453570842743, 1.122648000717163, -0.4558199942111969, -0.6705682277679443, -0.6084890365600586, -0.3209744095802307, ...
func (o *TicketProjectsImportProjectParams) SetTimeout(timeout time.Duration) { o.timeout = timeout }
[ 0.42202767729759216, 0.7954065799713135, 0.29896023869514465, 0.3581337630748749, -0.3905399441719055, 1.1552250385284424, 0.21862031519412994, 0.11478157341480255, -0.6932374835014343, 1.1789417266845703, -0.46693065762519836, -0.5343440771102905, -1.233219861984253, -0.21366235613822937,...
func (o *TicketProjectsImportProjectParams) WithContext(ctx context.Context) *TicketProjectsImportProjectParams { o.SetContext(ctx) return o }
[ -0.05640452355146408, 0.4836762547492981, 0.4524434208869934, 0.17000927031040192, -0.6131790280342102, 0.7403802275657654, 0.0037710736505687237, -0.7325794696807861, 0.16914571821689606, 0.6710543632507324, -0.5857342481613159, -0.911461591720581, -1.3911688327789307, -0.8006422519683838...
func (o *TicketProjectsImportProjectParams) SetContext(ctx context.Context) { o.Context = ctx }
[ -0.04491070285439491, 1.0469207763671875, 0.37697920203208923, 0.4435734450817108, -0.20044445991516113, 0.9331212639808655, 0.10997547954320908, -0.4644344449043274, 0.08561212569475174, 0.7617325782775879, -0.6616659164428711, -0.7486236691474915, -1.6654531955718994, -0.5724411010742188...
func (o *TicketProjectsImportProjectParams) WithHTTPClient(client *http.Client) *TicketProjectsImportProjectParams { o.SetHTTPClient(client) return o }
[ 0.19233372807502747, -0.05126509070396423, 0.2631607949733734, 0.022956904023885727, -0.6900297999382019, 0.538543701171875, 0.6851982474327087, -0.47429928183555603, -0.6378470659255981, 0.43302878737449646, -0.7023032903671265, -1.0062370300292969, -0.5645898580551147, -0.950056552886962...
func (o *TicketProjectsImportProjectParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client }
[ 0.5605799555778503, 0.4648077189922333, 0.25740140676498413, -0.31166693568229675, -0.7883450388908386, 0.3911168873310089, 0.6724070310592651, -0.4985924959182739, -1.0916566848754883, 0.48981812596321106, -0.8108945488929749, -0.3845180869102478, -1.1481504440307617, -0.8637596368789673,...
func (o *TicketProjectsImportProjectParams) WithData(data TicketProjectsImportProjectBody) *TicketProjectsImportProjectParams { o.SetData(data) return o }
[ 0.012273012660443783, 0.4524593949317932, 0.3873225450515747, 0.03348442539572716, -0.2736930847167969, 1.1860105991363525, 0.2842501997947693, -0.5154420137405396, 0.07127851992845535, 0.36739736795425415, -0.6163492798805237, -0.9894168376922607, -1.197942852973938, -0.19973626732826233,...
func (o *TicketProjectsImportProjectParams) SetData(data TicketProjectsImportProjectBody) { o.Data = data }
[ -0.18812128901481628, 0.8827458620071411, 0.310932457447052, 0.2333781123161316, -0.3937709331512451, 1.2793519496917725, 0.28805068135261536, -0.328845351934433, -0.18052025139331818, 0.43556469678878784, -0.7282317280769348, -0.7754346132278442, -1.5500786304473877, 0.18911567330360413, ...
func (o *TicketProjectsImportProjectParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error if err := r.SetBodyParam(o.Data); err != nil { return err } if len(res) > 0 { return errors.CompositeValidationErro...
[ -0.8378661870956421, 0.37904655933380127, 0.6643921732902527, -0.4229590594768524, 0.7934014797210693, 0.2640216052532196, 0.7873362302780151, -0.058541618287563324, -0.6766259670257568, 0.7178494334220886, -0.21176128089427948, -0.057227857410907745, -1.0480209589004517, -0.41358804702758...
func (r *Group_InsightsConfiguration) AWSCloudFormationType() string { return "AWS::XRay::Group.InsightsConfiguration" }
[ 0.43219518661499023, 0.8705343008041382, 0.22402046620845795, -0.02979663573205471, 0.6976082921028137, -0.0368005745112896, 0.5144360661506653, -0.888977587223053, -0.054585978388786316, 0.019852595403790474, 0.2892032563686371, 0.48039790987968445, -0.004538442008197308, 1.15915453433990...
func maxSubArray(nums []int) int { numsLen := len(nums) if numsLen < 1 { return 0 } previouse, max := nums[0], nums[0] for i := 1; i < numsLen; i++ { if previouse > 0 { previouse += nums[i] } else { previouse = nums[i] } if previouse > max { max = previouse } } return max }
[ 0.41403552889823914, 0.12231989949941635, 0.9734264016151428, 0.9768641591072083, -0.18735575675964355, 0.28907904028892517, 0.5635363459587097, 0.1496148705482483, 0.4559627175331116, -0.05587724223732948, -0.00726974057033658, 0.49655967950820923, -0.6863381862640381, 0.9047425985336304,...
func NewWriter(view ui.View, project *config.Project) *writer { return &writer{ view: view, project: project, } }
[ -0.11667843163013458, 0.670212984085083, 0.04435854032635689, 0.6661466360092163, -0.35089030861854553, -0.11465233564376831, 0.41041725873947144, 0.30829527974128723, -0.07382238656282425, 0.09996803849935532, 0.5840010643005371, 0.19789676368236542, 0.03764030709862709, -0.30913451313972...
func (w *writer) WriteAll() { var wg = sync.WaitGroup{} for _, application := range w.project.Applications { wg.Add(1) go func(application *config.Application) { defer wg.Done() w.Write(application) }(application) } wg.Wait() }
[ -0.27966228127479553, -0.2758706212043762, 0.5107754468917847, 0.4410760700702667, 0.6590390801429749, 0.638506293296814, 0.44060149788856506, 0.6273033022880554, -0.618749737739563, 0.43951210379600525, 0.7688972353935242, 0.2766073942184448, -0.43327605724334717, 1.5315684080123901, -0...
func (w *writer) Write(application *config.Application) { if len(application.Files) == 0 { return } for _, file := range application.Files { switch file.Type { case copy.HandlerType: copy.Handle(w.view, file, application.Name) case content.HandlerType: content.Handle(w.view, w.project, file, applicat...
[ -0.3961448073387146, -0.39993566274642944, 0.42381078004837036, 0.4940063953399658, 1.2420063018798828, 0.9839838147163391, 1.1407217979431152, 0.4158204197883606, -0.6336667537689209, 0.38194170594215393, 0.5630586743354797, -0.1720232367515564, 0.10206015408039093, 1.2871654033660889, ...
func receive(ep entity.PersonalData) personalData { return personalData{ ID: ep.DocumentID, Name: ep.Name, LastName: ep.LastName, Phone: ep.Phone, Email: ep.Email, YearOfBirth: ep.YearOfBirth, } }
[ -0.2814590632915497, -0.48665231466293335, 0.5494881868362427, -0.14624494314193726, -1.2559664249420166, 0.8119563460350037, -1.1576088666915894, -0.11074969917535782, 0.2761910557746887, -0.7237855792045593, 0.13584277033805847, 0.360078364610672, 0.06809036433696747, -0.4169524610042572...
func (p personalData) transmit() entity.PersonalData { return entity.PersonalData{ DocumentID: p.ID, Name: p.Name, LastName: p.LastName, Phone: p.Phone, Email: p.Email, YearOfBirth: p.YearOfBirth, } }
[ 0.22652015089988708, -0.2664974331855774, 0.6352617144584656, -0.016498571261763573, -0.7350168228149414, 0.6935880184173584, -1.4215352535247803, -0.6613065600395203, 0.6340003609657288, -0.5579677820205688, -0.4040892720222473, 0.29188811779022217, -0.6010007858276367, -0.914825201034545...
func (m MariaDB) One(ctx context.Context, id string) (entity.PersonalData, error) { sqlQuery := "SELECT * FROM person WHERE id = ?" var p personalData row := m.Person.QueryRowContext(ctx, sqlQuery, id) err := row.Scan(&p.ID, &p.Name, &p.LastName, &p.Phone, &p.Email, &p.YearOfBirth) if err != nil { return entity...
[ -0.878993809223175, 0.0883411318063736, 0.7395912408828735, 0.7098435759544373, -0.8114816546440125, 0.37417757511138916, -0.8107792735099792, 0.15909402072429657, -0.21274776756763458, -0.31625449657440186, -0.291550874710083, -0.19360437989234924, 0.20194245874881744, 0.16419830918312073...
func (m MariaDB) Insert(ctx context.Context, document entity.PersonalData) (entity.PersonalData, error) { p := receive(document) sqlQuery := "INSERT INTO person (id, name, last_name, phone, email, year_od_birth ) VALUES (?,?,?,?,?,?)" _, err := m.Person.ExecContext(ctx, sqlQuery, p.ID, p.Name, p.LastName, p.Phone, p...
[ -0.4063417315483093, 0.4401145279407501, 0.6452879309654236, 0.14440634846687317, -1.1650277376174927, 0.8192844390869141, -0.2973378896713257, 0.16286811232566833, -0.2668668329715729, -0.5705837607383728, -0.4139161705970764, -0.3637580871582031, -1.199352502822876, 0.0025575023610144854...
func (m MariaDB) All(ctx context.Context) ([]entity.PersonalData, error) { sqlQuery := fmt.Sprintf("SELECT * FROM person") var p personalData var persons []entity.PersonalData rows, err := m.Person.QueryContext(ctx, sqlQuery) if err != nil { return nil, errors.Wrap(err, "could not make query") } defer rows.Clo...
[ 0.0994187444448471, -0.7848495244979858, 0.5369927883148193, 0.523363471031189, -0.5567865371704102, 0.9522264003753662, -1.0748590230941772, 0.40199631452560425, -0.4132510721683502, -0.6150252223014832, 0.41940978169441223, 0.7822445034980774, 0.2271818220615387, 0.8887078166007996, -0...
func (m MariaDB) Remove(ctx context.Context, id string) (int64, error) { sqlQuery := "DELETE FROM person WHERE id = ?" rslt, err := m.Person.ExecContext(ctx, sqlQuery, id) if err != nil { return 0, errors.Wrap(err, "could not remove data") } count, err := rslt.RowsAffected() if err != nil { return 0, errors.W...
[ -0.8875671625137329, 0.06658662110567093, 0.7532076239585876, -0.0736849308013916, -1.4415230751037598, -0.834638774394989, -0.24197512865066528, 1.07486093044281, 0.02126854844391346, -0.24095839262008667, -0.27810391783714294, -0.45026376843452454, -1.1570680141448975, 0.5224771499633789...
func (m MariaDB) Update(ctx context.Context, ep entity.PersonalData) (int64, error) { p := receive(ep) sqlQuery := "UPDATE person SET name=?, last_name=?, phone=?, email=?, year_od_birth=? where id= ?" rslt, err := m.Person.ExecContext(ctx, sqlQuery, p.Name, p.LastName, p.Phone, p.Email, p.YearOfBirth, p.ID) if er...
[ -0.7870728969573975, 0.06299784779548645, 0.8295027613639832, 0.2227534055709839, -1.1713513135910034, 0.3145316541194916, -0.1146438792347908, 0.5427411794662476, -0.2462906837463379, -0.3897382616996765, -0.10080942511558533, -0.6304742097854614, -0.4975813925266266, 0.5439441800117493, ...
func (this *TEncTop) Encode(flush bool, pcPicYuvOrg *TLibCommon.TComPicYuv, rcListPicYuvRecOut *list.List, accessUnitsOut *AccessUnits, iNumEncoded *int) { if pcPicYuvOrg != nil { // get original YUV pcPicCurr := this.xGetNewPicBuffer() pcPicYuvOrg.CopyToPic(pcPicCurr.GetPicYuvOrg()) ...
[ -0.6929634809494019, -0.1543777734041214, 0.6091713309288025, -0.25288599729537964, 0.05960080400109291, 0.16088327765464783, 0.9310364723205566, 0.7457627058029175, 0.42983245849609375, 0.1938917189836502, -0.2754749059677124, -0.08942311257123947, -0.7485050559043884, 0.33178064227104187...
func SetHeadersMiddleware(headers http.Header) httpclient.Middleware { return httpclient.NamedMiddlewareFunc(SetHeadersMiddlewareName, func(opts httpclient.Options, next http.RoundTripper) http.RoundTripper { if len(headers) == 0 { return next } return httpclient.RoundTripperFunc(func(req *http.Request) (*ht...
[ -0.9708370566368103, -0.6275895833969116, 0.5828474760055542, -0.3078197240829468, -0.9581539630889893, -0.6193313002586365, -1.0379674434661865, -0.08598518371582031, -0.6461248397827148, 0.22267162799835205, -0.32277950644493103, -0.13559919595718384, -0.9325032830238342, 0.1203834339976...
func handleClient(conn net.Conn) { defer utils.PrintPanicStack() defer conn.Close() // for reading the 2-Byte header header := make([]byte, 2) // the input channel for agent() in := make(chan []byte) defer func() { close(in) // session will close }() // create a new session object for the connection // and...
[ 0.2681327164173126, -0.7944099307060242, 1.1568862199783325, -0.005588920786976814, -0.4613683819770813, -0.20838746428489685, 0.1961302012205124, -0.10410813242197037, -0.3769317865371704, 0.09825123846530914, -0.10236317664384842, -0.2763310372829437, 0.1256273239850998, -0.6136400699615...
func DrawGraphTools(filename string, s spn.SPN) { file, err := os.Create(filename) if err != nil { fmt.Printf("Error. Could not create file [%s].\n", filename) panic(err) } defer file.Close() outname := utils.StringConcat(filename[0:len(filename)-len(filepath.Ext(filename))], ".png") fmt.Fprintf(file, "fro...
[ 0.7422196269035339, 0.24628855288028717, 0.8275548815727234, 0.0037121756467968225, -0.18479198217391968, 0.463596910238266, 0.4577755928039551, -0.26164403557777405, -0.3050636947154999, -0.1331111639738083, -0.34760782122612, 0.40611234307289124, 0.6133899688720703, -0.7050728797912598, ...
func DrawGraph(filename string, s spn.SPN) { file, err := os.Create(filename) if err != nil { fmt.Printf("Error. Could not create file [%s].\n", filename) panic(err) } defer file.Close() fmt.Fprintf(file, "graph {\n") // If the SPN is itself an univariate distribution, create a graph with a single node. i...
[ 0.14863818883895874, 0.35096433758735657, 0.9758656620979309, 0.1649303138256073, 0.10961513966321945, 0.09533607959747314, 0.6358646750450134, 0.3497522473335266, 0.3487318754196167, -0.2937714457511902, -0.09721890836954117, 0.6223726272583008, 0.2653741240501404, 0.12330683320760727, ...
func (f FilterFunc) Filter(a ble.Advertisement) bool { return f(a) }
[ -0.22279879450798035, 0.5030006766319275, 0.33026108145713806, 0.15223544836044312, -1.0709837675094604, 0.5538537502288818, 0.662950336933136, 0.23058253526687622, 0.4375879168510437, 0.25530004501342773, 0.8089783787727356, 0.7735470533370972, 0.33022841811180115, -0.13285070657730103, ...
func Discover(f Filter) (ble.Client, error) { ch := make(chan ble.Advertisement) fn := func(a ble.Advertisement) { if !f.Filter(a) { return } StopScanning() ch <- a } if err := SetAdvHandler(ble.AdvHandlerFunc(fn)); err != nil { return nil, fmt.Errorf("can't set adv handler: %s", err) } if err := Sca...
[ -0.06422728300094604, 0.11976984888315201, 0.7913178205490112, -0.04886768385767937, -0.804014265537262, -0.40839269757270813, 0.17071950435638428, -0.8696513772010803, 0.23567600548267365, 0.14780482649803162, 0.8551450967788696, 1.0285910367965698, -0.18327148258686066, 0.215746909379959...
func match(tpl, body []ast.Stmt) bool { fmt.Printf("check type %v %v\n", len(tpl), len(body)) return false }
[ -0.22024744749069214, 0.028277376666665077, 0.5607796907424927, -0.21753837168216705, -0.5658705234527588, 1.0205821990966797, -0.24194923043251038, 0.389639288187027, -0.5110397338867188, 0.9039350748062134, 0.30322352051734924, -0.18099342286586761, -1.6098030805587769, 0.628277480602264...
func matchstmt(tpl, stmt ast.Stmt) bool { // AssignStmt // BlockStmt // BranchStmt // DeclStmt // DeferStmt // EmptyStmt // ExprStmt // ForStmt // GoStmt // IfStmt // IncDecStmt // LabeledStmt // RangeStmt // ReturnStmt // SelectStmt // SendStmt // SwitchStmt // TypeSwitchStmt }
[ 0.023561270907521248, 0.289162278175354, 0.6131067872047424, -0.38282254338264465, -1.0010031461715698, -0.2786834239959717, -0.44228628277778625, -0.8102696537971497, 0.2936610281467438, 0.1264151930809021, -0.36741989850997925, -0.8028905987739563, -0.4762539863586426, 0.5059138536453247...
func NewLinearHist(min, max float64, nbins int) *LinearHist { delta := float64(nbins) / (max - min) return &LinearHist{min, max, delta, 0, 0, make([]uint, nbins)} }
[ 1.3589218854904175, -0.4595082104206085, 0.46578893065452576, 0.44109222292900085, -1.2568382024765015, 0.9664471745491028, -0.9643981456756592, 0.06411311030387878, -0.38939905166625977, -0.8183934688568115, -0.8309638500213623, 0.49599578976631165, -0.15799427032470703, -0.18708470463752...
func (c *Creater) GetConfigmaps() []*components.ConfigMap { var configMaps []*components.ConfigMap hubConfig := components.NewConfigMap(horizonapi.ConfigMapConfig{Namespace: c.blackDuck.Spec.Namespace, Name: util.GetResourceName(c.blackDuck.Name, util.BlackDuckName, "config")}) hubData := map[string]string{ "RU...
[ -0.649239718914032, -0.393490731716156, 0.755696713924408, 0.26279035210609436, 0.08585099130868912, -0.02672499231994152, 0.37161871790885925, -0.07145100086927414, -0.2827833890914917, -0.0757107064127922, -0.7144218683242798, 0.3377001881599426, -0.30131998658180237, 0.9152390956878662,...
func ParseMailMessage(msg *mail.Message) (*MailMessage, error) { mm := &MailMessage{} mime, err := enmime.ParseMIMEBody(msg) // Parse message body with enmime if err != nil { return nil, errors.Wrap(err, "parse mail MIME body") } mm.From = NonASCII(msg.Header.Get("From")) mm.Subject = mime.GetHeader("Subject...
[ -0.3807564079761505, -0.066184401512146, 0.46457791328430176, -1.0345484018325806, -0.6038541197776794, 0.286367803812027, -0.3944756090641022, -0.36957797408103943, 0.25926706194877625, 0.4315106272697449, -0.44053134322166443, 0.5081411004066467, -0.8721901774406433, 0.14396581053733826,...
func replaceCID(html string, part enmime.MIMEPart) string { cid := strings.Replace(part.Header().Get("Content-ID"), "<", "", -1) cid = strings.Replace(cid, ">", "", -1) if len(cid) == 0 { return html } b64 := "data:" + part.ContentType() + ";base64," + base64.StdEncoding.EncodeToString(part.Content()) return...
[ 0.9610150456428528, -1.3046499490737915, 0.3792869448661804, -0.6997087001800537, -0.40621718764305115, -0.21898388862609863, -0.35800594091415405, 1.2314443588256836, -0.26726651191711426, 0.6409838199615479, 0.17932522296905518, 0.30824601650238037, -1.4751613140106201, 0.092375352978706...
func (v *Value) Load() (x interface{}) { vp := (*ifaceWords)(unsafe.Pointer(v)) typ := LoadPointer(&vp.typ) if typ == nil || uintptr(typ) == ^uintptr(0) { // First store not yet completed. return nil } data := LoadPointer(&vp.data) xp := (*ifaceWords)(unsafe.Pointer(&x)) xp.typ = typ xp.data = data return ...
[ -0.5996221303939819, 0.13979272544384003, 0.5755019783973694, -0.8158662915229797, -0.806187093257904, -0.13718044757843018, -0.07959240674972534, -1.1051560640335083, 0.6832165718078613, 0.7029608488082886, -0.3498084247112274, 0.20392651855945587, -1.0625782012939453, -0.4559055864810943...
func (v *Value) Store(x interface{}) { if x == nil { panic("sync/atomic: store of nil value into Value") } vp := (*ifaceWords)(unsafe.Pointer(v)) xp := (*ifaceWords)(unsafe.Pointer(&x)) for { typ := LoadPointer(&vp.typ) if typ == nil { // Attempt to start first store. // Disable preemption so that othe...
[ -0.48786628246307373, 0.6912824511528015, 0.5704612135887146, 0.08450600504875183, 0.16586421430110931, 0.0057498193345963955, 0.9964395761489868, -1.5541383028030396, 0.40863242745399475, 0.5431713461875916, -0.3137575089931488, 0.42089971899986267, -0.4552411735057831, 0.7680443525314331...
func runtime_procPin()
[ 0.20648594200611115, -0.7062352299690247, 0.4486853778362274, 0.17799441516399384, -0.46749335527420044, 0.021258467808365822, 0.03228241205215454, -0.9336990714073181, -0.7013358473777771, -0.19885867834091187, 0.08069732040166855, 0.6831364035606384, -1.2389516830444336, -0.0896495953202...
func AcceptableIDType(id interface{}) (string, bool) { switch v := id.(type) { case string: return v, true case int: return strconv.Itoa(v), true case int32: return strconv.FormatInt(int64(v), 10), true case int64: return strconv.FormatInt(v, 10), true case float64: // json.Unmarshal converts all number...
[ -0.8823679089546204, -0.5497588515281677, 0.8937378525733948, -1.4561095237731934, -1.013388991355896, 0.2071908414363861, -0.4075254499912262, -0.4618420898914337, 0.47864967584609985, 0.6331976652145386, 0.19559986889362335, -0.10820898413658142, -0.5910632610321045, 0.8619565367698669, ...
func GetIDVariable(dbAlias string) string { idVar := "id" if model.DBType(dbAlias) == model.Mongo { idVar = "_id" } return idVar }
[ -0.8073251247406006, 0.2043260782957077, 0.5704288482666016, -0.21119676530361176, 0.16466088593006134, 0.7094170451164246, -0.22864753007888794, -0.5476999282836914, 0.27182909846305847, 0.5221654176712036, -1.0216084718704224, 1.0240172147750854, -0.31464412808418274, 0.5750318169593811,...
func ArrayContains(array []interface{}, value interface{}) bool { for _, v := range array { if v == value { return true } } return false }
[ 0.18390314280986786, -1.2664158344268799, 0.582344651222229, 0.47485530376434326, -0.15407370030879974, 0.4638429284095764, -0.925151526927948, -0.5890121459960938, -0.1499900370836258, 0.8593635559082031, 0.11696617305278778, 0.4528721272945404, 0.14613676071166992, 0.32352760434150696, ...
func ExtractRequestParams(r *http.Request, reqParams model.RequestParams, body interface{}) model.RequestParams { reqParams.RequestID = r.Header.Get(helpers.HeaderRequestID) reqParams.Method = r.Method reqParams.Path = r.URL.Path reqParams.Headers = r.Header reqParams.Payload = body return reqParams }
[ -0.936497151851654, -0.6409597992897034, 0.7456872463226318, 0.561487078666687, 0.1555330902338028, 0.10470563918352127, -1.1202946901321411, 0.06464512646198273, -0.0954674556851387, 0.14228332042694092, 0.16607682406902313, -0.344523161649704, -0.7181732654571533, 0.20777279138565063, ...
func ExtractJoinInfoForInstantInvalidate(join []*model.JoinOption, joinKeysMapping map[string]map[string]string) { for _, j := range join { GenerateJoinKeysForInstantInvalidate(j.Table, j.On, joinKeysMapping) if j.Join != nil { ExtractJoinInfoForInstantInvalidate(j.Join, joinKeysMapping) } } }
[ -0.6122143268585205, -1.1111714839935303, 0.46477243304252625, 0.9109665155410767, -0.32590824365615845, 0.6104226112365723, -0.339002788066864, 0.5522387623786926, -1.0280790328979492, 0.2497047632932663, -0.640874981880188, -0.3800792098045349, -1.032717227935791, 0.3641776442527771, 0...
func GenerateJoinKeys(joinTable string, joinOn map[string]interface{}, databaseRow map[string]interface{}, joinKeysMapping map[string]map[string]string) { isValidJoin, columnName := IsValidJoin(joinOn, joinTable) dbRow, ok := databaseRow[joinTable+"__"+columnName] if isValidJoin && ok { outerKey := fmt.Sprintf("%s...
[ -1.2190619707107544, -0.06093168258666992, 0.7710936069488525, 0.3551337420940399, -0.6372119784355164, 0.044444095343351364, -0.27725252509117126, 0.8093832731246948, -0.8140702843666077, 0.39071333408355713, -0.4550158679485321, -0.45142677426338196, -0.2130594551563263, 0.32120007276535...
func GenerateJoinKeysForInstantInvalidate(joinTable string, joinOn map[string]interface{}, joinKeysMapping map[string]map[string]string) { isValidJoin, columnName := IsValidJoin(joinOn, joinTable) if isValidJoin { outerKey := fmt.Sprintf("%s::%s::%s", joinTable, "join", columnName) joinKeysMapping[outerKey] = map...
[ -0.9221903085708618, -0.943087100982666, 0.9564530253410339, 0.23351043462753296, -0.4804632365703583, 0.3013550043106079, -0.6888498663902283, 0.8945090174674988, -1.0037709474563599, 0.2579813599586487, -0.41000035405158997, 0.12861333787441254, -0.5485968589782715, -0.01211240142583847,...
func IsValidJoin(on map[string]interface{}, jointTableName string) (bool, string) { if len(on) > 1 { return false, "none" } // Its not a valid join when the or condition is used _, ok := on["$or"] if ok { return false, "none" } columnName := "none" for leftKey, value := range on { // See if left side is...
[ 0.047973405569791794, -0.6299253106117249, 0.808674156665802, 1.0785412788391113, -0.7588460445404053, -0.09538102149963379, -0.7211339473724365, 0.6288737058639526, -0.19309882819652557, 0.10269768536090851, -0.16042952239513397, -0.3194751441478729, -0.6496767401695251, 0.721353411674499...
func (AddLiftRequestFeeler) EnumDescriptor() ([]byte, []int) { return file_API_session_proto_rawDescGZIP(), []int{0, 0} }
[ -0.649693489074707, -0.6220889687538147, 0.8818200826644897, 1.1499629020690918, 0.177381232380867, 0.015084907412528992, -0.07531724125146866, -1.0309243202209473, -0.46287062764167786, -0.7889151573181152, -0.036386895924806595, 0.248193621635437, -0.17283470928668976, 0.9624927043914795...
func (*AddLiftRequest) Descriptor() ([]byte, []int) { return file_API_session_proto_rawDescGZIP(), []int{0} }
[ -0.23224973678588867, 0.3762492537498474, 0.7736738324165344, 0.07460293918848038, 0.25790247321128845, -0.46888381242752075, 0.6637965440750122, -0.5590426325798035, -0.6340789198875427, -0.3358047604560852, -0.3622479736804962, 0.10764239728450775, 0.23408262431621552, 1.017997145652771,...
func (*AddLiftResponse) Descriptor() ([]byte, []int) { return file_API_session_proto_rawDescGZIP(), []int{1} }
[ 0.10517552495002747, -0.009559149853885174, 0.4032214283943176, 0.10944394022226334, 0.7559060454368591, -0.5968289375305176, 0.8421044945716858, -0.9879192113876343, -0.22220836579799652, -0.58711838722229, -1.0120067596435547, -0.8921880722045898, -0.36812496185302734, 0.0097429370507597...
func (*Lift) Descriptor() ([]byte, []int) { return file_API_session_proto_rawDescGZIP(), []int{2} }
[ -0.8869914412498474, 0.44381067156791687, 0.5046473741531372, 0.1747845560312271, -0.5123063921928406, -0.2832752466201782, 0.7072513699531555, -0.42353710532188416, -0.1116536408662796, -0.0035699892323464155, -0.9087611436843872, -0.11040991544723511, -0.0286403801292181, 0.2539533078670...
func (*AddSessionRequest) Descriptor() ([]byte, []int) { return file_API_session_proto_rawDescGZIP(), []int{3} }
[ -1.2138911485671997, -0.0287456177175045, 0.3895593285560608, 0.348846435546875, -0.06617727130651474, -0.1830838918685913, 0.47914373874664307, -0.2349083125591278, 0.2653549611568451, -0.6035157442092896, 0.22211718559265137, 0.3538646697998047, -0.1751822978258133, 0.7460350394248962, ...
func (*AddSessionResponse) Descriptor() ([]byte, []int) { return file_API_session_proto_rawDescGZIP(), []int{4} }
[ -0.5940217971801758, -0.43851885199546814, -0.1258104145526886, -0.1696499139070511, 0.13218139111995697, -0.7172088623046875, 0.5088661313056946, -0.42215731739997864, 0.4636079668998718, -0.40622809529304504, -0.6646435260772705, -0.6218780875205994, -0.9958825707435608, -0.1563428044319...
func (*Session) Descriptor() ([]byte, []int) { return file_API_session_proto_rawDescGZIP(), []int{5} }
[ -0.9938792586326599, -0.006392079871147871, 0.32244306802749634, 0.14256837964057922, -0.10630688816308975, -0.2041618973016739, 1.0187442302703857, -0.4634457528591156, 0.5426817536354065, -0.8324207067489624, -0.5975750088691711, 0.2814016044139862, -0.014066463336348534, 0.3239702284336...
func (*GetSessionRequest) Descriptor() ([]byte, []int) { return file_API_session_proto_rawDescGZIP(), []int{6} }
[ -0.978916585445404, 0.11668147146701813, 0.6328356266021729, 0.7248824834823608, 0.30557239055633545, -0.9491820335388184, 0.8992124795913696, -0.00658510671928525, 0.14171667397022247, -0.4892370104789734, -0.4023899734020233, 1.3346889019012451, -0.1223284900188446, 0.7034803032875061, ...
func (*GetSessionResponse) Descriptor() ([]byte, []int) { return file_API_session_proto_rawDescGZIP(), []int{7} }
[ -0.4917857050895691, -0.11611107736825943, 0.11633993685245514, 0.42566317319869995, 0.3294527232646942, -1.1969460248947144, 1.018601655960083, -0.3919392228126526, 0.22890809178352356, -0.37407824397087097, -0.883867621421814, 0.32435110211372375, -1.1026129722595215, -0.2017031311988830...
func (*ListSessionsByUserRequest) Descriptor() ([]byte, []int) { return file_API_session_proto_rawDescGZIP(), []int{8} }
[ -0.9144365787506104, 0.00820870604366064, 0.16435271501541138, -0.17943856120109558, -0.2851909101009369, -0.9760992527008057, 0.9916551113128662, -1.408537745475769, 0.8358389139175415, 0.06703226268291473, -0.4795474410057068, -0.452656090259552, -0.49518021941185, 0.7290265560150146, ...