text
stringlengths
11
6.3k
embedding
listlengths
768
768
func (s *Server) NewTikvHandlerTool() *handler.TikvHandlerTool { var tikvStore helper.Storage store, ok := s.driver.(*TiDBDriver) if !ok { panic("Invalid KvStore with illegal driver") } if tikvStore, ok = store.store.(helper.Storage); !ok { panic("Invalid KvStore with illegal store") } return handler.NewTi...
[ 0.2988058030605316, -0.6317969560623169, 0.15251748263835907, 0.8403515219688416, -0.8800645470619202, 0.37571704387664795, -0.3056562840938568, -0.15841279923915863, -0.23821553587913513, 0.243480384349823, 0.3681252598762512, 0.03402178734540939, 0.20382529497146606, -0.41792914271354675...
func TestAzureDevOpsServiceEndpointDockerRegistry_ExpandFlatten_Roundtrip(t *testing.T) { resourceData := schema.TestResourceDataRaw(t, resourceServiceEndpointDockerRegistry().Schema, nil) flattenServiceEndpointDockerRegistry(resourceData, &dockerRegistryTestServiceEndpoint, dockerRegistryTestServiceEndpointProjectID...
[ -0.1736995428800583, 0.6344590187072754, 0.5486982464790344, -0.11302023380994797, -0.2650173306465149, 0.2658775746822357, 0.609282910823822, 0.4007452130317688, 0.7607638835906982, -0.6072820425033569, 0.5319920778274536, 0.3420424461364746, -0.024173039942979813, -0.04470757767558098, ...
func TestAzureDevOpsServiceEndpointDockerRegistry_Create_DoesNotSwallowError(t *testing.T) { ctrl := gomock.NewController(t) defer ctrl.Finish() r := resourceServiceEndpointDockerRegistry() resourceData := schema.TestResourceDataRaw(t, r.Schema, nil) flattenServiceEndpointDockerRegistry(resourceData, &dockerRegis...
[ 0.07108528167009354, 0.7714656591415405, 0.5059812664985657, 0.4199066162109375, 0.7206985354423523, 0.813018262386322, 0.8033027648925781, -0.25827154517173767, -0.16664019227027893, -0.10579171776771545, -0.13965199887752533, -0.3572763204574585, -0.508000373840332, 0.27639371156692505, ...
func TestAzureDevOpsServiceEndpointDockerRegistry_Read_DoesNotSwallowError(t *testing.T) { ctrl := gomock.NewController(t) defer ctrl.Finish() r := resourceServiceEndpointDockerRegistry() resourceData := schema.TestResourceDataRaw(t, r.Schema, nil) flattenServiceEndpointDockerRegistry(resourceData, &dockerRegistr...
[ 0.23805932700634003, 0.4316225051879883, 0.6421923041343689, 0.28264138102531433, 0.33868423104286194, 0.6226988434791565, 0.7220218777656555, -0.25507110357284546, -0.1780039519071579, -0.3578192889690399, 0.7976611256599426, 0.1768236607313156, -0.3365194797515869, -0.45578211545944214, ...
func TestAzureDevOpsServiceEndpointDockerRegistry_Delete_DoesNotSwallowError(t *testing.T) { ctrl := gomock.NewController(t) defer ctrl.Finish() r := resourceServiceEndpointDockerRegistry() resourceData := schema.TestResourceDataRaw(t, r.Schema, nil) flattenServiceEndpointDockerRegistry(resourceData, &dockerRegis...
[ 0.31037184596061707, 0.6289083361625671, 0.6096198558807373, 0.6533381938934326, 0.33198317885398865, 0.5563903450965881, 0.7504377961158752, 0.17821945250034332, 0.4554603695869446, 0.05652545019984245, 0.255683034658432, -0.09195658564567566, -0.5704673528671265, 0.04122437164187431, 0...
func TestAzureDevOpsServiceEndpointDockerRegistry_Update_DoesNotSwallowError(t *testing.T) { ctrl := gomock.NewController(t) defer ctrl.Finish() r := resourceServiceEndpointDockerRegistry() resourceData := schema.TestResourceDataRaw(t, r.Schema, nil) flattenServiceEndpointDockerRegistry(resourceData, &dockerRegis...
[ -0.1635499745607376, 0.33925360441207886, 0.6418463587760925, 0.28081443905830383, 0.051121920347213745, 0.7133709788322449, 0.7217799425125122, -0.032814882695674896, 0.03907736390829086, 0.16691623628139496, 0.056693725287914276, -0.08142255991697311, -0.6995039582252502, -0.271479904651...
func TestAccAzureDevOpsServiceEndpointDockerRegistry_CreateAndUpdate(t *testing.T) { projectName := testhelper.TestAccResourcePrefix + acctest.RandStringFromCharSet(10, acctest.CharSetAlphaNum) serviceEndpointNameFirst := testhelper.TestAccResourcePrefix + acctest.RandStringFromCharSet(10, acctest.CharSetAlphaNum) s...
[ -0.03290606662631035, 0.5488061308860779, 0.6383607387542725, 0.48550745844841003, 0.4517943859100342, -0.10981965065002441, 0.7294718027114868, 0.5240513682365417, 0.11057727783918381, -0.16487760841846466, 0.21037600934505463, 0.0024184957146644592, 0.33269527554512024, -0.09883614629507...
func testAccCheckServiceEndpointDockerRegistryResourceExists(expectedName string) resource.TestCheckFunc { return func(s *terraform.State) error { serviceEndpointDef, ok := s.RootModule().Resources["azuredevops_serviceendpoint_dockerregistry.serviceendpoint"] if !ok { return fmt.Errorf("Did not find a service e...
[ 0.7828283309936523, -0.461964875459671, 0.5292016267776489, 0.20072920620441437, 0.3931530714035034, 0.20246587693691254, 0.5864177346229553, 0.1654302179813385, 0.05848992243409157, 0.4001601040363312, -0.18064789474010468, 0.012545301578938961, 0.35425496101379395, -0.01465367991477251, ...
func testAccServiceEndpointDockerRegistryCheckDestroy(s *terraform.State) error { for _, resource := range s.RootModule().Resources { if resource.Type != "azuredevops_serviceendpoint_dockerregistry" { continue } // indicates the service endpoint still exists - this should fail the test if _, err := getServ...
[ 0.6196408867835999, 0.05326586216688156, 0.4522099494934082, 0.6821274757385254, 0.8851510882377625, 0.49638038873672485, 0.4704824686050415, 0.24080446362495422, 0.21451950073242188, -0.2825843095779419, 0.8319763541221619, 0.02475486695766449, 0.267109215259552, 0.46369490027427673, 0....
func getServiceEndpointDockerRegistryFromResource(resource *terraform.ResourceState) (*serviceendpoint.ServiceEndpoint, error) { serviceEndpointDefID, err := uuid.Parse(resource.Primary.ID) if err != nil { return nil, err } projectID := resource.Primary.Attributes["project_id"] clients := testAccProvider.Meta()...
[ 0.7263474464416504, -0.012228995561599731, 0.4096837043762207, 0.33962926268577576, 0.1584131121635437, -0.22296711802482605, 0.5778958797454834, -0.27491408586502075, -0.3611532747745514, 0.08816111832857132, 0.1821422129869461, 0.8051910400390625, 0.05608507990837097, -0.0234300009906291...
func newClient() (*client, error) { c, err := genetlink.Dial(nil) if err != nil { return nil, err } // Make a best effort to apply the strict options set to provide better // errors and validation. We don't apply Strict in the constructor because // this library is widely used on a range of kernels and we can'...
[ 0.48963674902915955, 0.0059960149228572845, 0.43468403816223145, 0.19348838925361633, -0.21188458800315857, -0.4654684066772461, 0.2949359118938446, -0.04136677458882332, -0.016939900815486908, -0.4362057149410248, 0.0037815584801137447, 0.08503945171833038, -0.019413748756051064, 0.032859...
func (c *client) Close() error { return c.c.Close() }
[ 0.13586510717868805, -0.16575096547603607, 0.20736035704612732, -0.08574540168046951, -0.4762294590473175, 0.4546812176704407, 0.5873453617095947, -0.8241279125213623, -0.9673991799354553, -0.9286952614784241, 0.3572480380535126, 0.09513895958662033, -1.2351154088974, 0.3470374047756195, ...
func (c *client) Interfaces() ([]*Interface, error) { // Ask nl80211 to dump a list of all WiFi interfaces msgs, err := c.get( unix.NL80211_CMD_GET_INTERFACE, netlink.Dump, nil, nil, ) if err != nil { return nil, err } return parseInterfaces(msgs) }
[ -0.966379702091217, 0.01648685149848461, 0.38683488965034485, 0.0015765777789056301, 0.21261878311634064, 0.3669925928115845, -0.7230907678604126, 0.3924257159233093, 0.5200071334838867, -0.8098294138908386, -0.5535599589347839, 0.771233320236206, -1.240331768989563, 0.9868999719619751, ...
func (c *client) Connect(ifi *Interface, ssid string) error { // Ask nl80211 to connect to the specified SSID. _, err := c.get( unix.NL80211_CMD_CONNECT, netlink.Acknowledge, ifi, func(ae *netlink.AttributeEncoder) { ae.Bytes(unix.NL80211_ATTR_SSID, []byte(ssid)) ae.Uint32(unix.NL80211_ATTR_AUTH_TYPE, u...
[ -0.6141968965530396, 0.10966891050338745, 0.48986586928367615, -0.08603893965482712, -1.1369065046310425, 0.46072688698768616, -0.3808729648590088, -0.41310885548591614, 0.14677461981773376, -0.16481588780879974, 0.002956406446173787, 0.9823513627052307, 0.4032401740550995, 1.2805505990982...
func (c *client) Disconnect(ifi *Interface) error { // Ask nl80211 to disconnect. _, err := c.get( unix.NL80211_CMD_DISCONNECT, netlink.Acknowledge, ifi, nil, ) return err }
[ -0.4715632200241089, 0.8939626216888428, 0.44000154733657837, 0.17880479991436005, -0.59885573387146, 0.6001259088516235, 0.569520890712738, -0.9945277571678162, -0.2034696638584137, -0.18734557926654816, -0.08468012511730194, 0.4565865099430084, 0.14956817030906677, 0.9236571192741394, ...
func (c *client) ConnectWPAPSK(ifi *Interface, ssid, psk string) error { // Ask nl80211 to connect to the specified SSID with key.. _, err := c.get( unix.NL80211_CMD_CONNECT, netlink.Acknowledge, ifi, func(ae *netlink.AttributeEncoder) { // TODO(mdlayher): document these or build from bitflags. const ( ...
[ -0.8595137000083923, -0.5655576586723328, 0.6256408095359802, -0.6051363348960876, -1.233610987663269, -0.11836367845535278, -0.04636438190937042, -0.8126067519187927, 0.297648161649704, -0.056143902242183685, -0.0852142870426178, 0.24147121608257294, 0.08793449401855469, 1.243037581443786...
func wpaPassphrase(ssid, psk []byte) []byte { return pbkdf2.Key(psk, ssid, 4096, 32, sha1.New) }
[ -0.49000346660614014, -0.46102866530418396, 0.36035656929016113, -0.9426454305648804, -0.38887035846710205, -0.3677738308906555, -1.327641487121582, -0.12050873041152954, 0.11721658706665039, 0.6635162830352783, 0.46039003133773804, -0.972636342048645, -0.7090436816215515, 0.31625336408615...
func (c *client) BSS(ifi *Interface) (*BSS, error) { msgs, err := c.get( unix.NL80211_CMD_GET_SCAN, netlink.Dump, ifi, func(ae *netlink.AttributeEncoder) { if ifi.HardwareAddr != nil { ae.Bytes(unix.NL80211_ATTR_MAC, ifi.HardwareAddr) } }, ) if err != nil { return nil, err } return parseBSS(...
[ -0.3348196744918823, 0.7527831196784973, 0.5288854241371155, 0.39545315504074097, -1.0512210130691528, -0.3858878016471863, 0.18205119669437408, -1.7144827842712402, 0.14921292662620544, -0.8051502108573914, 0.016700761392712593, 0.774196445941925, -0.4285329282283783, 0.654437243938446, ...
func (c *client) StationInfo(ifi *Interface) ([]*StationInfo, error) { msgs, err := c.get( unix.NL80211_CMD_GET_STATION, netlink.Dump, ifi, func(ae *netlink.AttributeEncoder) { if ifi.HardwareAddr != nil { ae.Bytes(unix.NL80211_ATTR_MAC, ifi.HardwareAddr) } }, ) if err != nil { return nil, err ...
[ -0.936403214931488, -0.1403626650571823, 0.3900391161441803, 0.16704724729061127, 0.21902649104595184, 0.18943403661251068, 0.5190384387969971, -0.43052640557289124, -0.7423414587974548, 0.7264109253883362, -0.5297017097473145, -0.3568953573703766, -0.48754453659057617, 1.2180593013763428,...
func (c *client) get( cmd uint8, flags netlink.HeaderFlags, ifi *Interface, // May be nil; used to apply optional parameters. params func(ae *netlink.AttributeEncoder), ) ([]genetlink.Message, error) { ae := netlink.NewAttributeEncoder() ifi.encode(ae) if params != nil { // Optionally apply more parameters to...
[ -0.09734860062599182, 0.21367700397968292, 0.5750513672828674, -0.07795886695384979, 0.6611917614936829, -0.4000225067138672, -0.11344748735427856, -0.3160161077976227, -0.26675960421562195, -0.42343640327453613, 0.4305499792098999, 0.7027283310890198, -0.3436118960380554, 1.00155985355377...
func (c *client) execute( cmd uint8, flags netlink.HeaderFlags, ae *netlink.AttributeEncoder, ) ([]genetlink.Message, error) { b, err := ae.Encode() if err != nil { return nil, err } return c.c.Execute( genetlink.Message{ Header: genetlink.Header{ Command: cmd, Version: c.familyVersion, }, ...
[ -0.30273377895355225, -0.21743594110012054, 0.4320535361766815, -0.011849491856992245, 0.9981187582015991, 0.3449021875858307, -0.8846163153648376, -0.1760125458240509, -0.8682008385658264, 0.35207054018974304, -0.19667956233024597, -0.12458470463752747, -0.13663597404956818, 0.63523399829...
func parseInterfaces(msgs []genetlink.Message) ([]*Interface, error) { ifis := make([]*Interface, 0, len(msgs)) for _, m := range msgs { attrs, err := netlink.UnmarshalAttributes(m.Data) if err != nil { return nil, err } var ifi Interface if err := (&ifi).parseAttributes(attrs); err != nil { return n...
[ -0.3554006814956665, 0.07801348716020584, 0.373262494802475, -0.12293563038110733, 0.4443138837814331, -0.1102994978427887, 0.6367478966712952, -0.1552296131849289, -0.1698610484600067, 0.19601792097091675, 0.22992713749408722, -0.4975314736366272, -1.361750841140747, 1.450899362564087, ...
func (ifi *Interface) encode(ae *netlink.AttributeEncoder) { if ifi == nil { return } // Mandatory. ae.Uint32(unix.NL80211_ATTR_IFINDEX, uint32(ifi.Index)) }
[ -0.5814788341522217, 0.830407440662384, 0.10029534250497818, 0.3010588586330414, 0.07040398567914963, 0.4163399636745453, 1.0317754745483398, -0.5382309556007385, 0.24767941236495972, -0.4268476963043213, 0.0851740911602974, 0.2073025405406952, 0.1583491414785385, 0.9663602709770203, 0.7...
func (ifi *Interface) idAttrs() []netlink.Attribute { return []netlink.Attribute{ { Type: unix.NL80211_ATTR_IFINDEX, Data: nlenc.Uint32Bytes(uint32(ifi.Index)), }, { Type: unix.NL80211_ATTR_MAC, Data: ifi.HardwareAddr, }, } }
[ -0.7879601120948792, 0.13251875340938568, 0.2978024184703827, -0.5941339731216431, 0.5750493407249451, 0.17020408809185028, -0.6040624976158142, -0.6137718558311462, 0.7789915204048157, -0.14403393864631653, -0.338269978761673, -0.2187986671924591, -0.9401178956031799, 0.7521094083786011, ...
func (ifi *Interface) parseAttributes(attrs []netlink.Attribute) error { for _, a := range attrs { switch a.Type { case unix.NL80211_ATTR_IFINDEX: ifi.Index = int(nlenc.Uint32(a.Data)) case unix.NL80211_ATTR_IFNAME: ifi.Name = nlenc.String(a.Data) case unix.NL80211_ATTR_MAC: ifi.HardwareAddr = net.Har...
[ -0.90547776222229, 0.09045890718698502, 0.3191930055618286, -0.7618011832237244, -0.21610568463802338, -0.38898757100105286, 0.10441745817661285, -0.0893445611000061, 0.16211135685443878, -0.2070549875497818, 0.048864297568798065, -0.11447873711585999, -0.324169397354126, 0.841458857059478...
func parseBSS(msgs []genetlink.Message) (*BSS, error) { for _, m := range msgs { attrs, err := netlink.UnmarshalAttributes(m.Data) if err != nil { return nil, err } for _, a := range attrs { if a.Type != unix.NL80211_ATTR_BSS { continue } nattrs, err := netlink.UnmarshalAttributes(a.Data) ...
[ 0.1421477347612381, 0.06922086328268051, 0.5793241858482361, 0.044645898044109344, -0.21441419422626495, -0.05474960058927536, 0.3688708543777466, -0.8086071610450745, -0.34015539288520813, -0.3753676414489746, 0.4463076591491699, 0.0014843656681478024, -0.29937103390693665, 1.659127235412...
func (b *BSS) parseAttributes(attrs []netlink.Attribute) error { for _, a := range attrs { switch a.Type { case unix.NL80211_BSS_BSSID: b.BSSID = net.HardwareAddr(a.Data) case unix.NL80211_BSS_FREQUENCY: b.Frequency = int(nlenc.Uint32(a.Data)) case unix.NL80211_BSS_BEACON_INTERVAL: // Raw value is in ...
[ -0.3495372533798218, -0.16491612792015076, 0.4821881055831909, -0.09306824207305908, -0.12142366915941238, -0.44793060421943665, -0.3282739520072937, -0.3917861878871918, 0.5414513945579529, -0.23836567997932434, 0.03983521834015846, 0.325253963470459, 0.47002413868904114, 0.78506642580032...
func parseStationInfo(b []byte) (*StationInfo, error) { attrs, err := netlink.UnmarshalAttributes(b) if err != nil { return nil, err } var info StationInfo for _, a := range attrs { switch a.Type { case unix.NL80211_ATTR_MAC: info.HardwareAddr = net.HardwareAddr(a.Data) case unix.NL80211_ATTR_STA_INFO:...
[ -0.6148579716682434, -0.49724069237709045, 0.3920449912548065, -0.08863169699907303, -0.5766342878341675, -0.16401655972003937, 0.4292397201061249, 0.008223602548241615, -0.6884604096412659, 0.18164989352226257, -0.2921812832355499, -0.5714063048362732, 0.11218910664319992, 0.7288455367088...
func (info *StationInfo) parseAttributes(attrs []netlink.Attribute) error { for _, a := range attrs { switch a.Type { case unix.NL80211_STA_INFO_CONNECTED_TIME: // Though nl80211 does not specify, this value appears to be in seconds: // * @NL80211_STA_INFO_CONNECTED_TIME: time since the station is last conne...
[ -0.5153756737709045, -0.6642045974731445, 0.5347040891647339, -0.8466249108314514, -0.4652283489704132, -0.14602060616016388, 0.0458858348429203, -0.6319676637649536, -0.25501081347465515, -0.1100274845957756, -0.1494452953338623, 0.2057407647371292, 0.19805073738098145, 0.541581392288208,...
func parseRateInfo(b []byte) (*rateInfo, error) { attrs, err := netlink.UnmarshalAttributes(b) if err != nil { return nil, err } var info rateInfo for _, a := range attrs { switch a.Type { case unix.NL80211_RATE_INFO_BITRATE32: info.Bitrate = int(nlenc.Uint32(a.Data)) } // Only use 16-bit counters i...
[ 0.41758739948272705, 0.13655754923820496, 0.5002211332321167, -0.787653386592865, 0.013570858165621758, -0.3070797920227051, -0.33098703622817993, -0.8461784720420837, -0.26310262084007263, -0.07467144727706909, 0.07679153233766556, -0.21181799471378326, -0.16926825046539307, 0.62348127365...
func attrsContain(attrs []netlink.Attribute, typ uint16) bool { for _, a := range attrs { if a.Type == typ { return true } } return false }
[ 0.29413291811943054, -0.7134650945663452, 0.27631813287734985, -0.27414870262145996, 0.2503679692745209, 0.09455547481775284, -0.462753027677536, -0.7034727334976196, -0.2522388696670532, 0.6990939378738403, 0.5050340294837952, 0.3748992681503296, -0.47175636887550354, 0.23903107643127441,...
func decodeSSID(b []byte) string { buf := bytes.NewBuffer(nil) for len(b) > 0 { r, size := utf8.DecodeRune(b) b = b[size:] buf.WriteRune(r) } return buf.String() }
[ 0.9354159832000732, -0.3797285854816437, 0.36999374628067017, -0.5235106348991394, -0.1217348650097847, -0.37503451108932495, -1.3280847072601318, -0.13343462347984314, 1.5603573322296143, 0.5713459849357605, -0.29986289143562317, 0.04752776399254799, -0.5224732160568237, 0.069324955344200...
func HandleEtrEphPort(ephPort int) { // Check if the ephemeral port has changed if ephPort == EtrTable.EphPort { return } EtrTable.EphPort = ephPort // Store ETR nat port to fib data base for debug purposes // This will be dumped into show-ztr file for debugging fib.StoreEtrNatPort(int32(EtrTable.EphPort)) /...
[ -0.08312872797250748, -0.517229437828064, 0.8493732810020447, -0.6031884551048279, 0.7462782859802246, -0.6989601850509644, 0.6948210000991821, -0.15559394657611847, 0.03253920376300812, 0.2947595417499542, 0.11718524247407913, -0.2787427306175232, -0.6386755704879761, 0.38380247354507446,...
func Walk(t *tree.Tree, ch chan int) { if t == nil { return } if t.Left != nil { Walk(t.Left, ch) } ch <- t.Value if t.Right != nil { Walk(t.Right, ch) } }
[ -0.6193915605545044, 0.0986211746931076, 0.7124754786491394, -0.7669452428817749, 0.24409256875514984, 0.5428964495658875, -0.26275110244750977, -0.8192116618156433, -0.5603516697883606, -0.38529279828071594, -1.3413976430892944, -0.020268483087420464, 0.29658547043800354, 1.40943586826324...
func Same(t1, t2 *tree.Tree) bool { var ch1 chan int = make(chan int, 10) var ch2 chan int = make(chan int, 10) var v1 int var v2 int go Walk(t1, ch1) go Walk(t2, ch2) for i := 0; i < 10; i++ { v1 = <-ch1 v2 = <-ch2 if v1 != v2 { return false } } return true }
[ -0.6678612232208252, 0.3608241379261017, 0.8442921042442322, -0.448844313621521, -0.15665100514888763, 0.36647799611091614, -0.036941319704055786, -0.625996470451355, -1.0685328245162964, 0.7484594583511353, -1.2306344509124756, 0.5744041204452515, -0.7954028844833374, 0.12821069359779358,...
func createTable(tableName, schema string){ if !existsTable(tableName){ Exec(schema) }else{ TruncateTable(tableName) } }
[ 1.3281903266906738, 0.4776467978954315, 0.469026118516922, 1.0899474620819092, 0.7806075215339661, 0.16158519685268402, -0.04543403908610344, 0.5829550623893738, 0.021548252552747726, 0.6832630634307861, 0.921523928642273, 0.0855025053024292, -0.3044256567955017, 0.21655291318893433, 0.4...
func Ping(){ if err := db.Ping(); err != nil { panic(err) } }
[ 0.8007431030273438, 0.7943120002746582, 0.19598883390426636, 0.9562875032424927, 1.3310129642486572, 0.634157121181488, -0.3555591404438019, 0.4191346764564514, -0.23072141408920288, 1.0526570081710815, 0.37909501791000366, -0.30973324179649353, -0.2887879014015198, 0.27473947405815125, ...
func existsTable(tableName string) bool{ //SHOW TABLES LIKE 'users' sql := fmt.Sprintf("SHOW TABLES LIKE '%s'", tableName) rows,_ := Query(sql) return rows.Next() //next retorna true si esta bien }
[ -0.21382799744606018, 0.8322440981864929, 0.6331762671470642, 1.1586215496063232, -0.6313799619674683, 0.7734304666519165, -0.2667759954929352, 0.06754136085510254, -0.39309826493263245, -0.36251798272132874, 0.18222902715206146, -0.026830464601516724, -0.5790188908576965, -0.2156085520982...
func (u *unitBase) onEvent(c *command) { switch c.commandtype { case commandSpawn: d, ok := c.data.(uniter) if !ok { // unhandled event. ignore. return } if u.id == d.GetID() { // my spawn. u.action = newAction(actionSpawn, d) } case commandSpawned: d, ok := c.data.(uniter) if !ok { //...
[ -0.1146743968129158, -0.2579720914363861, 0.7528514862060547, -0.27902671694755554, 0.2905360460281372, -0.0858469232916832, 0.7356680035591125, -0.2750520706176758, 0.8679280877113342, -0.3383207321166992, -0.3526209592819214, 0.2999461889266968, 0.7360110282897949, 0.49190619587898254, ...
func sphere_func(v vector.Vector3) float64 { return 1.0 * math.Sqrt(math.Pow((v.X()-0.5), 2.0)+math.Pow((v.Y()-0.5), 2.0)+math.Pow((v.Z()-0.5), 2.0)) }
[ 0.11313185095787048, -0.49534785747528076, 0.2877390682697296, -0.3307502865791321, -0.4425145089626312, -0.3584955930709839, 0.907198965549469, -0.19639736413955688, 0.8146175742149353, 1.1056839227676392, -0.6026790142059326, 0.5984668731689453, 0.07094790041446686, -0.1037793681025505, ...
func (a *ASTBuilder) GetStatement() (Statement, error) { typeOf := "" currentToken := a.Tokens[a.Index] switch currentToken.Type { case token.Separator: // TODO: just skip the separator for now a.Index++ return a.GetStatement() case token.Type: // Look for an ident as the next thing for now // fallthro...
[ 0.10231498628854752, -0.47059857845306396, 0.9782118797302246, 0.13926981389522552, -0.6277692914009094, -0.6388769149780273, -0.4539710581302643, -0.7103536128997803, 0.6380599141120911, 0.0715264230966568, 0.9364513754844666, 0.24667422473430634, -0.6208373308181763, 0.5815824270248413, ...
func (a *ASTBuilder) BuildAST() (*Program, error) { p := NewProgram() // FIXME: Spoof this name for now file := NewFile("main.expr") for { // We know that the file can only consist of statements stmt, err := a.GetStatement() if err != nil { return nil, err } file.AddStatement(stmt) a.Index++ i...
[ -0.07522960752248764, -0.8952456712722778, 0.7316229343414307, -0.34664344787597656, -0.7622355222702026, 0.02694643847644329, -0.1284109205007553, 0.13784503936767578, 0.8096545338630676, 0.11447909474372864, 1.0350277423858643, -0.12917868793010712, 0.10588955879211426, 0.212450370192527...
func ServeNewUserPage(w http.ResponseWriter, r *http.Request) { ctx := appengine.NewContext(r) // Get the invitation UID uid := mux.Vars(r)["uid"] invite, key, err := bhap.InvitationByUID(ctx, uid) if err != nil { http.Error(w, "Error while getting invitation information", http.StatusInternalServerError)...
[ 0.09008505940437317, 0.3925342261791229, 0.4699116051197052, 0.283654123544693, -0.43804046511650085, -0.06649752706289291, 0.4246487021446228, 0.36173486709594727, -0.017521189525723457, 0.7767451405525208, 0.28216689825057983, 0.3078121542930603, -0.7862408757209778, 1.1777310371398926, ...
func HandleNewUserForm(w http.ResponseWriter, r *http.Request) { ctx := appengine.NewContext(r) // Get the invitation UID uid := mux.Vars(r)["uid"] firstName := r.FormValue("firstName") lastName := r.FormValue("lastName") password := r.FormValue("password") if strings.TrimSpace(firstName) == "" { http.Error...
[ 0.06902168691158295, 0.09218403697013855, 0.7353103160858154, 0.7270171046257019, -0.1911216825246811, -0.800292432308197, -0.2449416071176529, 0.08090772479772568, -0.13971836864948273, -0.23393891751766205, -0.2390923649072647, -0.22423741221427917, -0.33131104707717896, 0.53384268283843...
func New(cfg postgres.Postgres) (*Provider, error) { p := &Provider{ name: "postgres." + cfg.Name, query: cfg.Query, } if cfg.Timeout == 0 { cfg.Timeout = defaultTimeout } pgConnString := fmt.Sprintf("postgres://%s:%s@%s:%d/%s?sslmode=%s&sslrootcert=%s", cfg.Username, cfg.Password, cfg.Host, cfg.P...
[ -0.2682787775993347, 0.055030666291713715, 0.561453640460968, -0.23973022401332855, -1.0382425785064697, 0.2454242706298828, -0.4071715474128723, -0.024759266525506973, -0.9018940925598145, 0.831911027431488, -0.11701376736164093, 0.2202291190624237, -0.6578779816627502, 0.504902184009552,...
func (p *Provider) Get() ([]*script.Script, error) { rows, err := p.db.Query(p.query) if err != nil { return nil, fmt.Errorf("error db query, %w", err) } if err = rows.Err(); err != nil { return nil, err } defer rows.Close() var name string var body []byte ss := make([]*script.Script, 0) for rows.Nex...
[ -1.108808994293213, -0.11385375261306763, 0.8026857972145081, -0.3622586131095886, 0.27666792273521423, -0.6077942252159119, -1.0133180618286133, -0.8925066590309143, -0.31371694803237915, 1.1100879907608032, -0.22299149632453918, 1.487898588180542, -0.1104680523276329, 0.47803786396980286...
func (Organization_State) EnumDescriptor() ([]byte, []int) { return file_google_cloud_resourcemanager_v3_organizations_proto_rawDescGZIP(), []int{0, 0} }
[ -0.29936596751213074, 0.14797627925872803, 0.42984747886657715, -0.09893778711557388, 0.09990257024765015, 0.10193050652742386, 0.18517766892910004, -0.028834505006670952, 0.026162710040807724, 0.4066762626171112, 0.09674471616744995, -0.19736804068088531, 0.4057205617427826, 0.98624819517...
func (*Organization) Descriptor() ([]byte, []int) { return file_google_cloud_resourcemanager_v3_organizations_proto_rawDescGZIP(), []int{0} }
[ -0.8947626948356628, 0.5492833256721497, 0.3996022939682007, 0.06178082525730133, 0.11808306723833084, 0.019183998927474022, 0.1538710594177246, -0.01778869330883026, -0.3533467948436737, 0.3048470914363861, -0.16794896125793457, -0.26472556591033936, 0.6016025543212891, 0.8872894048690796...
func (*GetOrganizationRequest) Descriptor() ([]byte, []int) { return file_google_cloud_resourcemanager_v3_organizations_proto_rawDescGZIP(), []int{1} }
[ -0.9698530435562134, 0.7671312093734741, 0.564963698387146, 0.4870428442955017, 0.49357643723487854, -0.42247170209884644, 0.2812921106815338, 0.08631637692451477, -0.6297518610954285, 0.09009868651628494, 0.006062643136829138, 0.12678931653499603, 0.5156046152114868, 0.7897987365722656, ...
func (*SearchOrganizationsRequest) Descriptor() ([]byte, []int) { return file_google_cloud_resourcemanager_v3_organizations_proto_rawDescGZIP(), []int{2} }
[ -0.8413360118865967, 0.5545790195465088, 0.21587839722633362, 0.21441759169101715, 0.34786832332611084, -0.5540386438369751, 0.2590574026107788, -0.25639110803604126, -0.3877217471599579, -0.9438276290893555, -0.08922194689512253, -0.15525101125240326, 0.171553373336792, 0.4670546948909759...
func (*SearchOrganizationsResponse) Descriptor() ([]byte, []int) { return file_google_cloud_resourcemanager_v3_organizations_proto_rawDescGZIP(), []int{3} }
[ -0.08583144098520279, 0.22222168743610382, -0.24724559485912323, 0.07985325902700424, 0.20541433990001678, -1.0755374431610107, 0.7592775821685791, -0.6371814608573914, -0.24612094461917877, -0.3320191204547882, -1.020980715751648, -0.6115208268165588, -0.37630999088287354, -0.275738209486...
func (*DeleteOrganizationMetadata) Descriptor() ([]byte, []int) { return file_google_cloud_resourcemanager_v3_organizations_proto_rawDescGZIP(), []int{4} }
[ -0.8772850036621094, 0.1414884626865387, 0.21761783957481384, 0.44443079829216003, 0.2791730463504791, 0.0383744090795517, 0.12787726521492004, -0.09478433430194855, -0.5045245885848999, 0.33887067437171936, -0.29085251688957214, -0.29262804985046387, -0.1715119481086731, -0.19102261960506...
func (*UndeleteOrganizationMetadata) Descriptor() ([]byte, []int) { return file_google_cloud_resourcemanager_v3_organizations_proto_rawDescGZIP(), []int{5} }
[ -0.40714573860168457, 0.3771432936191559, 0.11395271867513657, -0.12414664775133133, 0.4965706169605255, -0.230612114071846, 0.22859765589237213, 0.21039938926696777, -0.6206494569778442, 0.12103825062513351, 0.1290082186460495, 0.127604141831398, -0.3060591220855713, -0.48345088958740234,...
func NewTopic(workers int) *Topic { t := &Topic{ subs: make(map[chan interface{}]context.Context), pubs: make(chan Work), end: make(chan bool), workerChan: make(chan chan Work), } for i := 0; i < workers; i++ { t.workers = append(t.workers, NewWorker(t.workerChan)) } t.Start() return ...
[ -0.13901634514331818, 0.25591161847114563, 0.2953341007232666, 0.12451905012130737, 0.0851055458188057, 0.5536444187164307, 0.06547686457633972, -0.9034678936004639, -0.5644541382789612, 0.14906422793865204, -0.17750343680381775, 0.5053027272224426, 0.040303491055965424, -0.460565894842147...
func (t *Topic) Subscribe(ctx context.Context) <-chan interface{} { ch := make(chan interface{}) t.subs[ch] = ctx return ch }
[ 0.17489828169345856, -0.155792698264122, 0.38016003370285034, -0.21957413852214813, 0.2500861585140228, 0.28311654925346375, -0.8953273892402649, -0.8442726135253906, 0.19747236371040344, -1.40206778049469, 0.2910821735858917, 0.5703418850898743, 0.1120038852095604, -0.7079409956932068, ...
func (t *Topic) Unsubscribe(ch chan interface{}) { delete(t.subs, ch) }
[ 0.7759025692939758, -0.34121763706207275, 0.028407948091626167, -0.2552122473716736, -0.2351917326450348, -0.1500198245048523, -0.7575538158416748, -0.155023455619812, -0.8522780537605286, -0.20352593064308167, -0.1320715695619583, -0.12025433778762817, 0.26496046781539917, 0.0888305455446...
func (t *Topic) Publish(msg interface{}) { for ch, ctx := range t.subs { t.pubs <- Work{ ctx: ctx, ch: ch, data: msg, } } }
[ -0.5049887299537659, 0.7019407749176025, 0.208120658993721, -0.0004811297985725105, 0.7103274464607239, 0.586013674736023, 0.46251383423805237, -0.27635520696640015, -0.7325088381767273, -0.5054163932800293, 0.14460012316703796, 0.012730264104902744, -0.5283246040344238, 1.1727100610733032...
func (t *Topic) Close() { for _, w := range t.workers { w.Stop() } for ch := range t.subs { close(ch) delete(t.subs, ch) } }
[ 0.03536723926663399, -0.8209889531135559, 0.29257309436798096, -0.9200413823127747, 0.2879963517189026, 1.1680165529251099, 0.18470801413059235, -0.784247875213623, -1.4823483228683472, -0.2734525799751282, 0.6041601896286011, -0.11569909751415253, -0.6121712923049927, 0.7132261395454407, ...
func (z *ZFS) Exists(req *acomm.Request) (interface{}, *url.URL, error) { var args CommonArgs if err := req.UnmarshalArgs(&args); err != nil { return nil, nil, err } if args.Name == "" { return nil, nil, errors.New("missing arg: name") } exists, err := gozfs.Exists(args.Name) if err != nil { return nil, ...
[ -1.6434643268585205, -0.5557695031166077, 0.6599709987640381, -0.34671905636787415, 0.8411997556686401, -0.5329057574272156, -0.4356638789176941, -0.1482674479484558, -0.2781391143798828, -0.2701972424983978, 0.6631361842155457, -0.4153769612312317, -0.5335854291915894, 0.1427953988313675,...
func PreparePodAutoscaler(experimentsDetails *experimentTypes.ExperimentDetails, clients clients.ClientSets, resultDetails *types.ResultDetails, eventsDetails *types.EventDetails, chaosDetails *types.ChaosDetails) error { //Waiting for the ramp time before chaos injection if experimentsDetails.RampTime != 0 { log....
[ -0.16070595383644104, -0.20336630940437317, 0.7032485604286194, -0.23211543262004852, 0.28388381004333496, 0.1708727777004242, -0.3066199719905853, -0.32229480147361755, -0.8469855189323425, 0.14516574144363403, 0.2315908670425415, 0.7047381401062012, -0.06947056949138641, 0.27481549978256...
func GetDeploymentDetails(experimentsDetails *experimentTypes.ExperimentDetails, clients clients.ClientSets) ([]experimentTypes.ApplicationUnderTest, error) { deploymentList, err := appsv1DeploymentClient.List(metav1.ListOptions{LabelSelector: experimentsDetails.AppLabel}) if err != nil || len(deploymentList.Items) ...
[ -0.048839323222637177, -0.10011064261198044, 0.48038700222969055, -0.420337975025177, -0.07490495592355728, 0.41357508301734924, -0.4013282060623169, 0.19157007336616516, 0.30008602142333984, 1.2707922458648682, 0.4631011486053467, 0.23573759198188782, -0.13621751964092255, 0.6731135845184...
func GetStatefulsetDetails(experimentsDetails *experimentTypes.ExperimentDetails, clients clients.ClientSets) ([]experimentTypes.ApplicationUnderTest, error) { statefulsetList, err := appsv1StatefulsetClient.List(metav1.ListOptions{LabelSelector: experimentsDetails.AppLabel}) if err != nil || len(statefulsetList.Ite...
[ -0.06844355911016464, 0.01165738981217146, 0.46818363666534424, -0.46650898456573486, -0.6059501767158508, -0.01756400801241398, -0.43367868661880493, -0.4448130130767822, 0.3584843873977661, 0.8934260606765747, 0.26672255992889404, 0.48356565833091736, 0.17217978835105896, 0.6618263721466...
func PodAutoscalerChaosInDeployment(experimentsDetails *experimentTypes.ExperimentDetails, clients clients.ClientSets, appsUnderTest []experimentTypes.ApplicationUnderTest, resultDetails *types.ResultDetails, eventsDetails *types.EventDetails, chaosDetails *types.ChaosDetails) error { // Scale Application retryErr :...
[ -0.23698224127292633, -0.44426289200782776, 0.756354570388794, -0.14864809811115265, 0.05808238685131073, 0.6358191967010498, 0.25841769576072693, 0.6231014728546143, -0.4837731420993805, 1.2709299325942993, 0.04675289988517761, 0.5449904799461365, -0.044858306646347046, 0.1294640600681305...
func PodAutoscalerChaosInStatefulset(experimentsDetails *experimentTypes.ExperimentDetails, clients clients.ClientSets, appsUnderTest []experimentTypes.ApplicationUnderTest, resultDetails *types.ResultDetails, eventsDetails *types.EventDetails, chaosDetails *types.ChaosDetails) error { // Scale Application retryErr ...
[ -0.45583027601242065, -0.07104998826980591, 0.7310690879821777, 0.019299034029245377, -0.3451617956161499, 0.024485701695084572, 0.10937653481960297, -0.12944863736629486, -0.5524168610572815, 1.01107656955719, -0.18124699592590332, 0.5699263215065002, -0.36579662561416626, -0.012658292427...
func DeploymentStatusCheck(experimentsDetails *experimentTypes.ExperimentDetails, clients clients.ClientSets, appsUnderTest []experimentTypes.ApplicationUnderTest, resultDetails *types.ResultDetails, eventsDetails *types.EventDetails, chaosDetails *types.ChaosDetails) error { //Record start timestamp ChaosStartTimeS...
[ -0.1804802268743515, -0.2633504271507263, 0.8028410077095032, 0.5163834691047668, 0.22695229947566986, 0.5754055976867676, 0.10838085412979126, 0.0852062925696373, -0.15967276692390442, 0.9454706907272339, 0.4596126973628998, -0.018020179122686386, -0.1977134495973587, 0.5524923205375671, ...
func StatefulsetStatusCheck(experimentsDetails *experimentTypes.ExperimentDetails, clients clients.ClientSets, appsUnderTest []experimentTypes.ApplicationUnderTest, resultDetails *types.ResultDetails, eventsDetails *types.EventDetails, chaosDetails *types.ChaosDetails) error { //Record start timestamp ChaosStartTime...
[ -0.31468263268470764, 0.1440727412700653, 0.8503909111022949, 0.5121506452560425, -0.16179050505161285, -0.03357100486755371, 0.022725315764546394, -0.5866978168487549, -0.09130169451236725, 0.7117617726325989, 0.17415353655815125, 0.15143322944641113, -0.1965930461883545, 0.41779172420501...
func AutoscalerRecoveryInDeployment(experimentsDetails *experimentTypes.ExperimentDetails, clients clients.ClientSets, appsUnderTest []experimentTypes.ApplicationUnderTest) error { // Scale back to initial number of replicas retryErr := retries.RetryOnConflict(retries.DefaultRetry, func() error { // Retrieve the l...
[ -0.06257011741399765, -0.4390917122364044, 0.8007898926734924, -0.4769666790962219, -0.3592871129512787, 0.550031304359436, 0.599548876285553, 0.7641337513923645, -0.362947940826416, 1.3647490739822388, 0.6649261116981506, 0.5872386693954468, -0.4563820958137512, 0.06135128438472748, 0.8...
func AutoscalerRecoveryInStatefulset(experimentsDetails *experimentTypes.ExperimentDetails, clients clients.ClientSets, appsUnderTest []experimentTypes.ApplicationUnderTest) error { // Scale back to initial number of replicas retryErr := retries.RetryOnConflict(retries.DefaultRetry, func() error { for _, app := ra...
[ -0.41555580496788025, -0.042066656053066254, 0.8486499786376953, -0.38296422362327576, -0.6841288208961487, -0.1371135115623474, 0.4097898304462433, 0.3202052712440491, -0.3898780047893524, 1.0526419878005981, 0.2589050531387329, 0.3738167881965637, -0.1589643657207489, 0.08843471109867096...
func AbortPodAutoScalerChaos(appsUnderTest []experimentTypes.ApplicationUnderTest, experimentsDetails *experimentTypes.ExperimentDetails, clients clients.ClientSets, resultDetails *types.ResultDetails, eventsDetails *types.EventDetails, chaosDetails *types.ChaosDetails) error { // signChan channel is used to transmit...
[ -0.1213529109954834, -0.39721760153770447, 0.7963929772377014, -0.082921102643013, -0.208246111869812, 0.12070553749799728, 0.5757288336753845, -0.14274302124977112, -0.1845129132270813, 0.1265210062265396, -0.14717115461826324, -0.127306267619133, -0.30646762251853943, 0.09170857071876526...
func CmdNote(c *cli.Context) { // handler setting handler.SetFormatter(formatter) log.AddHandler(handler) log.SetLevel(logging.LevelDebug) // check the arguments args := c.Args() if len(args) < 2 { log.Fatal("number of arguments must be 2.") os.Exit(1) } // get token token := getToken() pb := pushbulle...
[ 0.11297894269227982, 0.5365488529205322, 0.947727382183075, 0.7018388509750366, 0.9428717494010925, 0.9694413542747498, -0.07822583615779877, -0.40248334407806396, -1.424056887626648, 0.6534498929977417, 0.36185207962989807, 0.3944569528102875, -0.510969877243042, -0.043896548449993134, ...
func NewConsentStore(ctx *pulumi.Context, name string, args *ConsentStoreArgs, opts ...pulumi.ResourceOption) (*ConsentStore, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.Dataset == nil { return nil, errors.New("invalid value for required argument 'Datase...
[ 0.079255610704422, 0.4602455496788025, 0.13618417084217072, -0.18844935297966003, -0.7422745227813721, 0.7791095972061157, -0.49624133110046387, 0.12081857025623322, -0.003179781371727586, 0.06508877873420715, -0.0724552720785141, -0.1982412189245224, -0.45764559507369995, -0.6629713177680...
func GetConsentStore(ctx *pulumi.Context, name string, id pulumi.IDInput, state *ConsentStoreState, opts ...pulumi.ResourceOption) (*ConsentStore, error) { var resource ConsentStore err := ctx.ReadResource("gcp:healthcare/consentStore:ConsentStore", name, id, state, &resource, opts...) if err != nil { return nil,...
[ 0.41926634311676025, -0.011857757344841957, 0.1966359168291092, -0.11769796162843704, -0.5043079853057861, 0.3780922293663025, -0.46752575039863586, -0.15719227492809296, 0.9492984414100647, -0.15157590806484222, 0.4027819335460663, 0.4093516767024994, -0.626449465751648, -1.80169045925140...
func (o ConsentStoreOutput) DefaultConsentTtl() pulumi.StringPtrOutput { return o.ApplyT(func(v *ConsentStore) pulumi.StringPtrOutput { return v.DefaultConsentTtl }).(pulumi.StringPtrOutput) }
[ 1.2827069759368896, -0.34395498037338257, 0.40142565965652466, -0.23680919408798218, 0.28708547353744507, 1.11335289478302, -0.4034630060195923, 0.4754030108451843, 0.41446274518966675, 0.21924640238285065, -0.14267772436141968, -0.7055392861366272, 0.11959879845380783, -1.3745965957641602...
func (o ConsentStoreOutput) EnableConsentCreateOnUpdate() pulumi.BoolPtrOutput { return o.ApplyT(func(v *ConsentStore) pulumi.BoolPtrOutput { return v.EnableConsentCreateOnUpdate }).(pulumi.BoolPtrOutput) }
[ 0.47297003865242004, -0.6615433692932129, 0.566080629825592, 0.39352115988731384, -0.3739939033985138, 1.4141020774841309, -0.3093458116054535, 1.1978635787963867, 0.006445363629609346, 0.7283557057380676, -0.3980943262577057, -0.2716834843158722, -1.3480870723724365, -1.002234935760498, ...
func (o ConsentStoreOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *ConsentStore) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) }
[ 0.06485956162214279, -0.5744360089302063, 0.47143393754959106, -0.44130536913871765, -1.0776485204696655, 0.514554500579834, -0.26313871145248413, 0.5251728892326355, 0.22544580698013306, 1.112802267074585, 0.12389970570802689, 0.024961475282907486, 0.5994179248809814, -1.3739490509033203,...
func (p *Pool) AddTask(t Task) { p.Tasks = append(p.Tasks, t) }
[ -0.6661356091499329, 0.44930142164230347, 0.017729176208376884, 0.39918985962867737, 0.7055023908615112, 1.547878623008728, -0.5879294872283936, -0.041177649050951004, -0.28733158111572266, 0.058407388627529144, -1.0050371885299683, 0.4054645597934723, 0.2193777859210968, 0.150229245424270...
func NewPool(workers int) *Pool { return &Pool{ workers: workers, queueTasks: make(chan Task), } }
[ -0.21706782281398773, -0.17616742849349976, 0.21704065799713135, 0.38222822546958923, -0.6369417309761047, 0.47384512424468994, 0.8533562421798706, -0.498963862657547, 0.5871265530586243, -0.7462567090988159, -0.5433322787284851, 0.5207208395004272, 0.3682195842266083, -0.3690621852874756,...
func (p *Pool) Exec() { for i := 0; i < p.workers; i++ { //creating workers to receive and execute the tasks go p.work() } p.wg.Add(len(p.Tasks)) for _, task := range p.Tasks { //tasks are added in the channel. //workers are listening this channel and when a worker is idle //it will receive the task to e...
[ 0.32561126351356506, 0.17574487626552582, 0.716093122959137, -0.6248644590377808, 1.2630722522735596, 1.0366617441177368, 0.026208369061350822, -0.32212021946907043, -0.8959822058677673, -0.35812968015670776, -0.4452820420265198, 0.1790153831243515, -0.6558192372322083, 0.3423845171928406,...
func (p *Pool) work() { for task := range p.queueTasks { //when the work is idle it receive a new task from the channel task.DoWork() p.wg.Done() } }
[ -0.6526406407356262, -0.021464843302965164, 0.6654975414276123, 0.055916596204042435, 1.130937933921814, 0.9824123382568359, 0.31436434388160706, -0.5499647855758667, -0.7465450167655945, -0.1755213737487793, -1.0066808462142944, 0.0018435948295518756, -0.927544355392456, 0.561785101890564...
func _() { // Comment should end in a period }
[ 0.29134300351142883, -0.2541102170944214, 0.6510680317878723, -0.2317190021276474, 0.8465809226036072, 0.6200718283653259, 0.8344050645828247, -0.3301522135734558, -0.026127982884645462, -0.27791908383369446, 0.38072147965431213, -0.510056734085083, 0.11304982006549835, 0.24456937611103058...
func (a Access) ListDBInstances() (*DBInstances, error) { url := fmt.Sprintf("%s%s/instances", RDB_URL, a.TenantID) body, err := a.baseRequest(url, "GET", nil) if err != nil { return nil, err } dbs := &DBInstances{} err = json.Unmarshal(body, dbs) return dbs, err }
[ -1.1711788177490234, 1.1189404726028442, 0.5012292861938477, -0.9154728055000305, -0.4440242052078247, -0.07012641429901123, -1.0333149433135986, -0.4383810758590698, 0.29575347900390625, 0.29630252718925476, -0.7796654105186462, 0.8342926502227783, -1.9705827236175537, 0.900276780128479, ...
func (a Access) DeleteDBInstance(instanceID string) error { url := fmt.Sprintf("%s%s/instances/%s", RDB_URL, a.TenantID, instanceID) _, err := a.baseRequest(url, "DELETE", nil) return err }
[ -0.807403564453125, -0.2265205681324005, 0.8277925848960876, -0.5853235125541687, 0.039055924862623215, 1.0498051643371582, -0.0217631496489048, -0.15828542411327362, 0.6711781620979309, -0.09163149446249008, -0.6148437261581421, 1.0859025716781616, -1.5365711450576782, 1.0512269735336304,...
func (a Access) RestartDBInstance(instanceID string) error { b := "{restart:{}}" url := fmt.Sprintf("%s%s/instances/%s/action", RDB_URL, a.TenantID, instanceID) _, err := a.baseRequest(url, "POST", strings.NewReader(b)) return err }
[ -1.3684511184692383, 0.7130310535430908, 0.5791711807250977, -0.6572802066802979, -0.23020674288272858, 0.6256086826324463, -0.11546285450458527, 0.44578441977500916, 0.280891090631485, 0.7175179123878479, -0.9976261258125305, 1.168053388595581, -2.1407859325408936, 0.3426613509654999, 0...
func (a Access) ListAllFlavors() (*DBFlavors, error) { url := fmt.Sprintf("%s%s/flavors", RDB_URL, a.TenantID) body, err := a.baseRequest(url, "GET", nil) if err != nil { return nil, err } flv := &DBFlavors{} err = json.Unmarshal(body, flv) return flv, err }
[ -0.18379536271095276, -0.2032756209373474, 0.4547647535800934, 0.46944230794906616, 0.16185864806175232, -1.36273992061615, -0.8909876942634583, 0.041179098188877106, 0.7517713308334351, -0.2382042407989502, -0.4703546464443207, 1.5056331157684326, -1.3390660285949707, 1.734872579574585, ...
func (a Access) CreateDBInstance(db DatabaseReq) (*NewDBInstance, error) { b, err := db.MarshalJSON() if err != nil { return nil, err } url := fmt.Sprintf("%s%s/instances", RDB_URL, a.TenantID) body, err := a.baseRequest(url, "POST", strings.NewReader(string(b))) if err != nil { return nil, err } type ...
[ -0.3056512475013733, -0.07253354787826538, 0.8442023992538452, -0.5345709919929504, -0.21409137547016144, 1.1544750928878784, -0.499016672372818, -0.4832640588283539, 0.18836438655853271, -0.07625146210193634, -0.5586001873016357, 0.28409186005592346, -1.2894399166107178, 0.942864656448364...
func (a Access) GetDBInstance(id string) (*InstDetails, error) { url := fmt.Sprintf("%s%s/instances/%s", RDB_URL, a.TenantID, id) body, err := a.baseRequest(url, "GET", nil) if err != nil { return nil, err } det := &InstDetails{} err = json.Unmarshal(body, det) return det, err }
[ -0.9053331613540649, 1.2992078065872192, 0.8941569924354553, -0.5797927975654602, -0.31074872612953186, 0.3398875296115875, -0.5256488919258118, -0.3969539701938629, 0.23882070183753967, 0.11137670278549194, -0.6414889097213745, 0.5412302017211914, -1.7183408737182617, 0.6416810750961304, ...
func (m *ItemsMutator) Apply() error { m.lock.Lock() defer m.lock.Unlock() *m.target = *m.proxy return nil }
[ -0.892390251159668, -0.11180589348077774, 0.39789965748786926, -0.37053850293159485, 0.4544975757598877, -0.4555545151233673, -0.16366362571716309, 0.7712847590446472, 0.10557420551776886, -0.2799719274044037, 0.23822930455207825, 0.07695768773555756, -1.1079983711242676, -0.15477615594863...
func MutateItems(v Items, options ...Option) *ItemsMutator { var lock sync.Locker = &sync.Mutex{} for _, option := range options { switch option.Name() { case optkeyLocker: lock = option.Value().(sync.Locker) } } if lock == nil { lock = nilLock{} } return &ItemsMutator{ lock: lock, target: v.(*it...
[ -1.2097299098968506, 0.06381449848413467, 0.4537403881549835, 0.6489918231964111, 0.03207097575068474, -0.35350534319877625, -0.19664670526981354, -0.40279850363731384, 0.8120428919792175, 0.6019425392150879, -0.3148863911628723, 0.02071567252278328, -0.6431235671043396, -0.553140461444854...
func (m *ItemsMutator) Type(v PrimitiveType) *ItemsMutator { m.lock.Lock() defer m.lock.Unlock() m.proxy.typ = v return m }
[ -1.3000737428665161, 0.0958363339304924, 0.21388691663742065, 0.2629784941673279, 0.6849437952041626, 0.1423940360546112, 0.4279281795024872, -0.6331884860992432, 0.6250258088111877, -0.210121750831604, -0.8681908249855042, 0.22367791831493378, -0.5979139804840088, 0.00938656460493803, 0...
func (m *ItemsMutator) Format(v string) *ItemsMutator { m.lock.Lock() defer m.lock.Unlock() m.proxy.format = v return m }
[ -0.5024086833000183, -0.4663134515285492, 0.0659446194767952, -0.37173834443092346, 0.3365308344364166, -0.3066866993904114, 0.05848995968699455, -0.3525141179561615, 0.5704559683799744, -0.3219750225543976, 0.3261948227882385, 0.014443289488554, -0.1747790426015854, 0.44697991013526917, ...
func (m *ItemsMutator) Items(v Items) *ItemsMutator { m.lock.Lock() defer m.lock.Unlock() m.proxy.items = v return m }
[ -1.464997410774231, 0.03886650875210762, 0.21759673953056335, -0.6706583499908447, 0.7638756036758423, -0.06661871075630188, 0.17295558750629425, 0.09298685938119888, 0.3307982087135315, -0.37166571617126465, -0.7578918933868408, -0.23809954524040222, -0.4819927215576172, -0.64468115568161...
func (m *ItemsMutator) CollectionFormat(v CollectionFormat) *ItemsMutator { m.lock.Lock() defer m.lock.Unlock() m.proxy.collectionFormat = v return m }
[ -0.17898885905742645, -0.6476923227310181, 0.09946771711111069, -0.38331690430641174, 0.12562653422355652, -0.4157964885234833, -0.24014833569526672, -0.7557798624038696, 0.3272193968296051, -0.5476284027099609, -0.31540557742118835, 0.06797060370445251, -0.1436285525560379, 0.308592975139...
func (m *ItemsMutator) Default(v interface{}) *ItemsMutator { m.lock.Lock() defer m.lock.Unlock() m.proxy.defaultValue = v return m }
[ -0.8494057059288025, 0.6619528532028198, 0.23824846744537354, 0.16417758166790009, 1.369419813156128, -0.24436728656291962, 0.4288512170314789, 0.48508375883102417, 0.17644087970256805, -0.7043374180793762, -0.7053323984146118, -0.5969805121421814, -0.78363037109375, 0.10726165771484375, ...
func (m *ItemsMutator) ClearMaximum() *ItemsMutator { m.lock.Lock() defer m.lock.Unlock() m.proxy.maximum = nil return m }
[ -0.8927164673805237, 0.3597148358821869, 0.4395577609539032, 1.1911617517471313, -0.23499080538749695, -0.49346160888671875, -1.347717046737671, -0.24288558959960938, -0.06532052904367447, 0.7591242790222168, -0.2694086730480194, 0.3876589238643646, -0.8136568069458008, -0.802196204662323,...
func (m *ItemsMutator) Maximum(v float64) *ItemsMutator { m.proxy.maximum = &v return m }
[ -0.49805787205696106, 1.208448052406311, 0.42171624302864075, 0.49803754687309265, 1.0598262548446655, -0.09508124738931656, -0.5820514559745789, -0.43254831433296204, 0.030261116102337837, -0.12974140048027039, -0.4198782742023468, -0.11946944892406464, -0.08501245081424713, -0.3246367275...
func (m *ItemsMutator) ClearExclusiveMaximum() *ItemsMutator { m.lock.Lock() defer m.lock.Unlock() m.proxy.exclusiveMaximum = nil return m }
[ -0.29015207290649414, 0.264186292886734, 0.19683654606342316, 0.8304308652877808, -0.9424404501914978, -0.22951139509677887, -1.1143290996551514, 0.48207399249076843, 0.271237850189209, 0.25077465176582336, -0.32508793473243713, 0.8408762812614441, 0.02380504086613655, -0.6073264479637146,...
func (m *ItemsMutator) ExclusiveMaximum(v float64) *ItemsMutator { m.proxy.exclusiveMaximum = &v return m }
[ 0.17701353132724762, 1.1750085353851318, 0.2618887424468994, 1.0165654420852661, -0.6658827662467957, -0.37749388813972473, -1.441092848777771, -0.21698196232318878, 0.6551241874694824, 0.2799220383167267, -0.6725342869758606, -0.8360823392868042, -0.19094479084014893, -0.6314736604690552,...
func (m *ItemsMutator) ClearMinimum() *ItemsMutator { m.lock.Lock() defer m.lock.Unlock() m.proxy.minimum = nil return m }
[ -0.9124454259872437, 0.2472226917743683, 0.4878324866294861, 0.5228506922721863, -0.17613005638122559, -0.4626453220844269, -0.8792240619659424, -1.632694125175476, 0.30485743284225464, -0.036905448883771896, -0.22994311153888702, 0.23024891316890717, -1.3042585849761963, -0.62702882289886...
func (m *ItemsMutator) Minimum(v float64) *ItemsMutator { m.proxy.minimum = &v return m }
[ -0.6187829375267029, 0.9567280411720276, 0.26099783182144165, 0.23453626036643982, 0.36047184467315674, 0.038412515074014664, -0.17489823698997498, -1.368777871131897, 0.0643858090043068, -0.5673008561134338, -0.4065302312374115, -0.7461665868759155, -0.33523130416870117, -0.16502165794372...
func (m *ItemsMutator) ClearExclusiveMinimum() *ItemsMutator { m.lock.Lock() defer m.lock.Unlock() m.proxy.exclusiveMinimum = nil return m }
[ 0.30654409527778625, 0.15439611673355103, 0.1710801124572754, 0.5272397994995117, -0.7232185006141663, 0.0399806909263134, -0.7357180118560791, -0.17921067774295807, 0.6117100715637207, -0.036645639687776566, -0.30317577719688416, 0.8558761477470398, -0.785110592842102, -0.3396658301353454...