text stringlengths 11 6.3k | embedding listlengths 768 768 |
|---|---|
func NewFilterObservation(env gogym.Environment,
keys ...string) (gogym.Environment, error) {
// Ensure observation space is a DictSpace
_, isDictSpace := env.ObservationSpace().(*gogym.DictSpace)
if !isDictSpace {
return nil, fmt.Errorf("newFilterObservation: could not wrap " +
"environment with non-DictSpace... | [
-0.49939271807670593,
0.2145136445760727,
0.864949107170105,
-0.2581959664821625,
-0.37908923625946045,
-0.21587622165679932,
-0.4226889908313751,
-0.5256168842315674,
-1.0375860929489136,
0.7772484421730042,
0.536648690700531,
0.6265555024147034,
0.20851251482963562,
0.39379891753196716,
... |
func (f *FilterObservation) Observation(
x map[string]interface{}) map[string]interface{} {
return f.filterObservation(x)
} | [
-0.9302593469619751,
-0.41426825523376465,
0.6098297238349915,
-0.39466819167137146,
-0.9587334990501404,
0.44431272149086,
0.2739062011241913,
-0.035881076008081436,
0.10615364462137222,
0.789817214012146,
-0.22033214569091797,
-0.2789972126483917,
1.3682247400283813,
-0.0721452385187149,... |
func (f *FilterObservation) filterObservation(
obs map[string]interface{}) map[string]interface{} {
newObs := make(map[string]interface{})
for _, key := range f.keys {
newObs[key] = obs[key]
}
return newObs
} | [
-1.1163488626480103,
-0.2879829406738281,
0.6830012202262878,
-0.3266941010951996,
-1.5045853853225708,
-0.2266845703125,
-0.38551610708236694,
0.15415729582309723,
-0.6909117102622986,
0.8237394094467163,
0.24717338383197784,
-0.2134404331445694,
0.6444807052612305,
-0.5683708786964417,
... |
func (v *Video) SaveAndGetVideosWithContext(ctx context.Context, videos []model.Video) []model.Video {
var savedVideos []model.Video
for _, video := range videos {
count, err := v.Table.Get("id", video.ID).CountWithContext(ctx)
if err != nil {
log.Fatalf("%v", err)
}
if count != 0 {
continue
}
save... | [
-0.8796058297157288,
-0.0220124963670969,
0.8639246821403503,
1.2751272916793823,
0.4325069487094879,
-0.621334433555603,
-0.15074586868286133,
-0.6180145144462585,
0.782966673374176,
0.7838051319122314,
-1.1742404699325562,
-0.25764214992523193,
-0.6447544693946838,
1.2103418111801147,
... |
func (rf *Raft) switchToFollower() {
if rf.isFollower() {
return
}
_, _ = rf.dprintf("Term_%-4d [%d] switch from %s to follower", rf.currentTerm, rf.me, rf.getRole())
// clear vote
rf.votedFor = -1
atomic.StoreInt32((*int32)(&rf.role), int32(Follower))
// waiting to be elected as a leader at any time
go rf... | [
-0.32785025238990784,
0.15463101863861084,
0.5079028010368347,
-0.525251567363739,
-0.08995497226715088,
0.01169097051024437,
0.6909946799278259,
-0.2942841649055481,
-0.18755589425563812,
0.09308009594678879,
-0.19970253109931946,
0.7560074329376221,
-0.26826876401901245,
0.60165864229202... |
func (rf *Raft) GetState() (int, bool) {
rf.mu.RLock()
defer rf.mu.RUnlock()
return int(rf.currentTerm), rf.IsLeader()
} | [
-0.2630097568035126,
0.032090265303850174,
0.6373052000999451,
0.30266281962394714,
-0.28206485509872437,
-0.7376129627227783,
0.6753765940666199,
-0.27559030055999756,
-0.4159059524536133,
0.0932520180940628,
-0.7091930508613586,
0.9368902444839478,
-1.7380927801132202,
0.874555230140686,... |
func (rf *Raft) persist() {
w := new(bytes.Buffer)
e := labgob.NewEncoder(w)
err := e.Encode(rf.currentTerm)
if err != nil {
panic(err)
}
err = e.Encode(rf.votedFor)
if err != nil {
panic(err)
}
err = e.Encode(rf.logIndex)
if err != nil {
panic(err)
}
err = e.Encode(rf.logs)
if err != nil {
panic(e... | [
0.32273533940315247,
0.3550160527229309,
0.6199968457221985,
-0.7140411138534546,
0.7542810440063477,
0.8557778000831604,
-0.041116464883089066,
-0.1922871321439743,
-0.44505631923675537,
0.20075102150440216,
-0.6804406046867371,
-0.12057606875896454,
-1.3419924974441528,
0.360212028026580... |
func (rf *Raft) readPersist(data []byte) {
if data == nil || len(data) < 1 { // bootstrap without any state?
rf.logIndex = 0
rf.currentTerm = 0
rf.votedFor = -1
rf.logs = make(map[int64]LogEntry)
// init first log
rf.logs[0] = LogEntry{
Command: 0,
Index: 0,
Term: 0,
}
return
}
r := byt... | [
-0.44899263978004456,
-0.4698491394519806,
0.7783063054084778,
-0.07691356539726257,
0.0780060663819313,
-0.25139787793159485,
-0.08017202466726303,
0.3930659890174866,
0.21069397032260895,
-0.2014305591583252,
0.30410411953926086,
-0.216022327542305,
-0.9360884428024292,
0.178225010633468... |
func (rf *Raft) sendRequestVote(server int, args *RequestVoteArgs, reply *RequestVoteReply) bool {
return rf.peers[server].Call("Raft.RequestVote", args, reply)
} | [
-1.6719619035720825,
0.6157613396644592,
0.7921082973480225,
0.660215437412262,
-0.07231085747480392,
0.15655633807182312,
-1.1089950799942017,
-0.5670592188835144,
-0.3957301080226898,
0.07977565377950668,
-0.045572586357593536,
0.6231990456581116,
-1.5443378686904907,
0.0727187842130661,... |
func (rf *Raft) Start(command interface{}) (int, int, bool) {
if !rf.IsLeader() {
return -1, -1, false
}
// incrementing logIndex should be execute with adding entry atomically
// entry needs to be added in order
rf.mu.Lock()
rf.logIndex += 1
entry := LogEntry{
Command: command,
Index: rf.logIndex,
Te... | [
-0.4506620168685913,
0.24632740020751953,
0.663458526134491,
-0.6966202259063721,
0.13316230475902557,
-0.290667325258255,
0.5429171323776245,
0.5025461912155151,
-0.6239372491836548,
0.5876322984695435,
-0.9243327975273132,
1.0509510040283203,
-0.593451738357544,
-0.22485710680484772,
0... |
func (rf *Raft) lastLogEntryWithTerm(term int64) (bool, int64) {
for i := rf.logIndex; i >= 0; i-- {
if rf.logs[i].Term == term {
return true, rf.logs[i].Index
}
}
return false, -1
} | [
-0.3286791443824768,
-0.9449619650840759,
0.8193536400794983,
-0.40534791350364685,
-0.5504798889160156,
-0.6720597743988037,
0.22509948909282684,
-0.18669426441192627,
0.189828559756279,
0.6338732838630676,
-0.30737608671188354,
0.41175782680511475,
-0.8372671604156494,
0.2621244788169861... |
func (rf *Raft) Kill() {
atomic.StoreInt32(&rf.dead, 1)
} | [
-0.1713983118534088,
0.5437512993812561,
0.3100675940513611,
0.7377903461456299,
0.5076383352279663,
1.1140998601913452,
0.70774906873703,
-0.07924427092075348,
-0.5455963611602783,
0.20711451768875122,
-0.9722843766212463,
0.5546399354934692,
-0.7948132157325745,
0.05150001496076584,
0.... |
func Make(peers []*labrpc.ClientEnd, me int,
persister *Persister, applyCh chan ApplyMsg) *Raft {
rf := &Raft{}
rf.peers = peers
rf.persister = persister
rf.me = me
rf.role = Initial
rf.commitIndex = 0
rf.lastApplied = 0
rf.heardFromLeader = 0
rf.electionTimeoutLbound = 300
rf.electionTimeoutUbound = 800
r... | [
0.2726217210292816,
0.275922954082489,
0.8335551619529724,
-0.6491739749908447,
-0.40168100595474243,
0.2592758536338806,
-0.016978437080979347,
-0.56815105676651,
0.07411641627550125,
-0.699699878692627,
0.41239026188850403,
-0.016257459297776222,
-0.7982069253921509,
0.1755547672510147,
... |
func ChannelStats(namespace string) StatsCollector {
labels := []string{"topic", "channel", "paused"}
namespace += "_channel"
return channelStats{
{
val: func(c *channel) float64 { return float64(len(c.Clients)) },
vec: prometheus.NewGaugeVec(prometheus.GaugeOpts{
Namespace: namespace,
Name: "c... | [
0.5617873668670654,
-0.3563900291919708,
0.7197762727737427,
-2.282946825027466,
0.7707636952400208,
0.006635567173361778,
-0.5802373290061951,
-1.1069064140319824,
-0.1943548619747162,
-0.05350186303257942,
0.7955440878868103,
1.293975830078125,
0.27906399965286255,
0.8012409806251526,
... |
func (s DescribeParametersInput) String() string {
return awsutil.Prettify(s)
} | [
0.5934851169586182,
0.33503419160842896,
0.09786690026521683,
-0.6512320637702942,
-0.38907039165496826,
1.0643917322158813,
0.5056824088096619,
-1.1657905578613281,
-0.5024529695510864,
0.32044678926467896,
0.6680543422698975,
1.5340306758880615,
-0.24176771938800812,
0.25176966190338135,... |
func (s *DescribeParametersInput) Validate() error {
invalidParams := aws.ErrInvalidParams{Context: "DescribeParametersInput"}
if s.ParameterGroupName == nil {
invalidParams.Add(aws.NewErrParamRequired("ParameterGroupName"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
} | [
-0.16959801316261292,
0.9128681421279907,
0.40617039799690247,
-0.0011927807936444879,
-0.0048098028637468815,
0.5139466524124146,
-0.1583164632320404,
-0.5798928141593933,
-0.6097797751426697,
0.5250205993652344,
1.4469619989395142,
0.6340034008026123,
-1.3552801609039307,
1.2364071607589... |
func (s DescribeParametersOutput) String() string {
return awsutil.Prettify(s)
} | [
0.9257802963256836,
-0.28108862042427063,
0.19808748364448547,
-0.5824240446090698,
-0.7139133810997009,
0.1949191391468048,
0.7216957211494446,
-0.9897527694702148,
-0.899167537689209,
0.3218720257282257,
0.6780065298080444,
1.2213358879089355,
0.342101126909256,
0.18011796474456787,
-0... |
func (r DescribeParametersRequest) Send(ctx context.Context) (*DescribeParametersResponse, error) {
r.Request.SetContext(ctx)
err := r.Request.Send()
if err != nil {
return nil, err
}
resp := &DescribeParametersResponse{
DescribeParametersOutput: r.Request.Data.(*DescribeParametersOutput),
response: ... | [
-0.73738694190979,
0.5573752522468567,
0.3455038070678711,
-0.12416338175535202,
-0.14831650257110596,
0.2639475166797638,
-0.4469064176082611,
-0.8542808890342712,
-0.1333179473876953,
0.6686758995056152,
0.2111244797706604,
1.518943428993225,
-0.8933253884315491,
0.45589810609817505,
-... |
func (r *DescribeParametersResponse) SDKResponseMetdata() *aws.Response {
return r.response
} | [
0.006834342144429684,
0.10263759642839432,
0.5344324707984924,
-0.5147526860237122,
-0.10587102919816971,
0.39731401205062866,
-0.6269917488098145,
-0.5582132339477539,
0.6631779074668884,
0.6106894612312317,
0.22702763974666595,
0.7577272057533264,
-0.6018516421318054,
-0.4691921174526214... |
func RegisterPackage(pkgName string) {
CorePackages = append(CorePackages, pkgName)
} | [
-0.7917600870132446,
1.0573217868804932,
0.24751904606819153,
0.0343368723988533,
0.6470582485198975,
0.3437158167362213,
-0.7109645009040833,
0.8504495620727539,
0.9418905377388,
-0.5063489079475403,
-0.4091961681842804,
-0.5278542637825012,
-1.098708152770996,
0.4873847961425781,
-0.28... |
func GetOpCodeCount() int {
return len(opcodeHandlers)
} | [
0.05916696414351463,
0.07706862688064575,
0.49997958540916443,
0.017971569672226906,
-0.09431038051843643,
-0.1540652960538864,
0.38441285490989685,
0.5673937201499939,
-0.29620203375816345,
-0.4100114405155182,
-0.7170159816741943,
0.0671079084277153,
-0.3730585277080536,
0.41888132691383... |
func Struct(pkgName, strctName, argName string) *CXArgument {
pkg, err := PROGRAM.GetPackage(pkgName)
if err != nil {
panic(err)
}
strct, err := pkg.GetStruct(strctName)
if err != nil {
panic(err)
}
arg := MakeArgument(argName, "", -1).AddType(TypeNames[TYPE_CUSTOM])
arg.DeclarationSpecifiers = append(arg... | [
0.5506218075752258,
-0.3512406349182129,
0.432707279920578,
-1.50700044631958,
-0.6757466793060303,
-0.08884356915950775,
0.18850944936275482,
0.2067122906446457,
0.4044160544872284,
-0.13649073243141174,
0.295369416475296,
0.9409166574478149,
0.08016294986009598,
-1.092202067375183,
0.9... |
func Slice(typCode int) *CXArgument {
arg := Param(typCode)
arg.IsSlice = true
arg.DeclarationSpecifiers = append(arg.DeclarationSpecifiers, DECL_SLICE)
return arg
} | [
-0.887569785118103,
0.10608141869306564,
0.329879492521286,
-0.3869509696960449,
0.27695974707603455,
0.6333246231079102,
0.05568510666489601,
0.712008535861969,
-0.11122523248195648,
0.8919559121131897,
0.20788238942623138,
0.5607824921607971,
-0.08279633522033691,
0.26155075430870056,
... |
func ParamEx(paramData ParamData) *CXArgument {
var arg *CXArgument
switch paramData.paramType {
case PARAM_DEFAULT:
arg = Param(paramData.typCode)
case PARAM_SLICE:
arg = Slice(paramData.typCode)
case PARAM_STRUCT:
arg = Struct(paramData.pkg.Name, paramData.strctName, "")
}
arg.Inputs = paramData.inputs
... | [
-0.653989851474762,
-0.27599236369132996,
0.5647755861282349,
-0.46764665842056274,
-0.8841449618339539,
0.4545038044452667,
-0.8243239521980286,
0.6448150277137756,
0.3700508773326874,
0.4205908179283142,
-0.07415073364973068,
0.7754149436950684,
-0.3606821596622467,
-0.45920875668525696,... |
func In(params ...*CXArgument) []*CXArgument {
return params
} | [
0.11292147636413574,
-0.39948418736457825,
0.3732520639896393,
0.22571468353271484,
-0.20816224813461304,
0.8074740767478943,
-0.0686052143573761,
1.0920960903167725,
-0.8748646378517151,
-0.17378287017345428,
-0.21082399785518646,
1.0694453716278076,
-0.33177852630615234,
0.59195709228515... |
func Out(params ...*CXArgument) []*CXArgument {
return params
} | [
0.17676660418510437,
-0.5092824697494507,
0.2680894434452057,
0.21575790643692017,
-0.20711688697338104,
0.4803154468536377,
-0.17774565517902374,
0.8373837471008301,
-0.5079898834228516,
0.5544648170471191,
0.01809844933450222,
1.2946181297302246,
-0.037944622337818146,
0.6770498156547546... |
func parseFloats(str string) ([]float64, error) {
var (
fields = strings.Fields(str)
float_parameters = make([]float64, len(fields))
err error
)
for i, v := range fields {
float_parameters[i], err = strconv.ParseFloat(v, 64)
if err != nil {
return nil, err
}
}
return float_par... | [
0.6419473886489868,
0.36984264850616455,
0.39873433113098145,
0.22047042846679688,
0.14813624322414398,
-0.1458071917295456,
-0.39255431294441223,
-0.48322269320487976,
-0.8386458158493042,
0.04477299749851227,
-0.06369172036647797,
0.03801202401518822,
-0.8913478255271912,
1.6392546892166... |
func (ms *SessionManager) Connect() (*mongo.Database, error) {
ctx, cancel := context.WithTimeout(context.Background(), 20*time.Second)
defer cancel()
client, err := mongo.Connect(ctx, options.Client().ApplyURI("mongodb://"+ms.Host+":"+ms.Port))
if err != nil {
return nil, err
}
db := client.Database(ms.Databas... | [
0.040124211460351944,
-0.36006128787994385,
0.6092502474784851,
0.5558834075927734,
-0.7394455075263977,
-0.006112819537520409,
-0.3783302903175354,
-0.9212196469306946,
-0.06588844954967499,
0.9132572412490845,
0.1383560746908188,
0.7363579273223877,
-0.9359222650527954,
0.360996901988983... |
func (r *Helper) Apply(obj []byte) error {
fileName, err := r.createTempFile("apply-", obj)
if err != nil {
return err
}
defer r.deleteTempFile(fileName)
factory, err := r.getFactory(r.kubeconfig, "")
if err != nil {
return err
}
ioStreams := genericclioptions.IOStreams{
In: &bytes.Buffer{},
Out: ... | [
0.7535423040390015,
-0.6010726094245911,
1.084684133529663,
0.3514539301395416,
-0.16227547824382782,
0.21776512265205383,
0.23258860409259796,
-0.32131046056747437,
0.2327432930469513,
0.2875594198703766,
0.1703251451253891,
0.6875317692756653,
-0.2763068974018097,
0.9095471501350403,
0... |
func (r *Helper) ApplyRuntimeObject(obj runtime.Object, s *json.Serializer) error {
buf := bytes.NewBuffer([]byte{})
err := s.Encode(obj, buf)
if err != nil {
return err
}
err = r.Apply(buf.Bytes())
if err != nil {
return err
}
return nil
} | [
0.49362075328826904,
-0.8958264589309692,
0.7015714049339294,
0.09758491069078445,
-0.5522623062133789,
-0.15326449275016785,
-0.48541706800460815,
0.47778183221817017,
0.3055596947669983,
-0.28211915493011475,
-0.8448306918144226,
0.5134961009025574,
-0.759472131729126,
0.1865089386701584... |
func excludesNonStaleableLabels(issue *github.Issue, config Configuration) bool {
if len(issue.Labels) == 0 {
return true
}
for _, exemptLabel := range config.ExemptLabels {
for _, issueLabel := range issue.Labels {
if *issueLabel.Name == exemptLabel {
return false
}
}
}
return true
} | [
-0.8878970742225647,
0.5672361254692078,
0.5546050667762756,
-0.1289462447166443,
-1.2988370656967163,
1.1085370779037476,
-0.8212673664093018,
0.2374570071697235,
0.2807841897010803,
1.0657427310943604,
-0.18633879721164703,
-0.9962933659553528,
-1.1787570714950562,
1.020469069480896,
-... |
func NewPes() *Pes {
pes := new(Pes)
pes.buf = make([]byte, 0, 65536)
return pes
} | [
-0.022929316386580467,
0.3228318989276886,
0.32929903268814087,
-0.25818735361099243,
-0.9047810435295105,
-0.4106062352657318,
-0.2815997004508972,
-1.0183228254318237,
0.7556701302528381,
-0.5532189011573792,
-0.16939391195774078,
-0.7482275366783142,
-0.3716336190700531,
-0.165810704231... |
func (p *Pes) Initialize(pid uint16, pos int64, prevPcr uint64, prevPcrPos int64) {
p.pid = pid
p.continuityCounter = 0
p.buf = p.buf[0:0]
p.pos = pos
p.prevPcr = prevPcr
p.nextPcr = 0
p.prevPcrPos = prevPcrPos
p.nextPcrPos = 0
p.packetStartCodePrefix = 0
p.streamID = 0
p.pesPacketLength = 0
p.pesScramblin... | [
0.2601536810398102,
-0.04276745021343231,
0.8671473264694214,
-1.0065600872039795,
0.25343555212020874,
-0.3568049371242523,
0.2560375928878784,
0.4414115846157074,
0.4157973825931549,
0.010383468121290207,
-0.5439762473106384,
-0.032021429389715195,
-1.0412486791610718,
0.3708201050758362... |
func (p *Pes) ContinuityCounter() uint8 { return p.continuityCounter } | [
0.9559365510940552,
-1.0760425329208374,
0.3147098124027252,
0.2445760816335678,
-0.03712737560272217,
1.674691081047058,
0.39884641766548157,
0.5549896359443665,
0.6749956011772156,
-0.29965561628341675,
0.027306076139211655,
-0.2556796669960022,
-1.1727112531661987,
0.34032073616981506,
... |
func (p *Pes) SetContinuityCounter(continuityCounter uint8) { p.continuityCounter = continuityCounter } | [
1.1752750873565674,
-1.0996143817901611,
0.3613587021827698,
0.21000880002975464,
-0.07709196954965591,
1.481840968132019,
0.40812158584594727,
0.5377622246742249,
0.5850642323493958,
-0.4105672240257263,
-0.34285521507263184,
-0.3016537129878998,
-0.9699239134788513,
0.809508204460144,
... |
func (p *Pes) Append(buf []byte) {
p.buf = append(p.buf, buf...)
} | [
0.1839592605829239,
-0.12475746870040894,
0.19874419271945953,
0.25888922810554504,
0.4888642430305481,
1.165543556213379,
-0.19100119173526764,
-0.10118702054023743,
0.7100743651390076,
-0.07964049279689789,
-0.7288643717765808,
-0.39424586296081543,
-0.9553452730178833,
0.921339035034179... |
func (p *Pes) DumpTimestamp() float64 {
var pcrDelay float32
if p.ptsDtsFlags == 2 {
prevPcr := float32(p.prevPcr) / 300 / 90
nextPcr := float32(p.nextPcr) / 300 / 90
pcrDelay = float32(p.pts)/90 - (prevPcr + (nextPcr-prevPcr)*(float32(p.pos-p.prevPcrPos)/float32(p.nextPcrPos-p.prevPcrPos)))
fmt.Printf("0x%08... | [
0.7207220792770386,
-0.05538986250758171,
1.004541039466858,
-1.4300287961959839,
-0.022598130628466606,
-0.004625297151505947,
0.5085296034812927,
-0.09585154056549072,
0.2608868479728699,
-0.40908241271972656,
0.056818462908267975,
-0.42607688903808594,
-0.5943579077720642,
0.36838424205... |
func (p *Pes) Dump() {
} | [
-1.0841706991195679,
-0.24003645777702332,
0.20067131519317627,
-0.03170027583837509,
0.0456761009991169,
0.9283438920974731,
1.0308669805526733,
-0.07856769114732742,
1.2241231203079224,
-0.15129201114177704,
0.04123491793870926,
-0.08487379550933838,
-1.0049501657485962,
0.99874013662338... |
func openPaths(currentPath string, paths []string) error {
var wg sync.WaitGroup
errs := make(chan error, len(paths))
for _, path := range paths {
wg.Add(1)
go func(cp, p string) {
defer wg.Done()
err := openPath(cp, p)
if err != nil {
errs <- err
}
}(currentPath, path)
}
go func() {
wg.Wa... | [
-0.42471662163734436,
0.11606563627719879,
0.6771481037139893,
0.3797050714492798,
-0.317076712846756,
0.5310854911804199,
0.8672711849212646,
-0.003539556870236993,
-0.27528324723243713,
0.191167414188385,
1.1497111320495605,
-0.07916020601987839,
-0.7170832753181458,
0.5174883604049683,
... |
func openPath(currentPath string, targetPath string) error {
fullPath := path.Resolve(currentPath, targetPath)
odir, err := opendir.New(fullPath)
if err != nil {
return err
}
err = odir.Open()
if err != nil {
return err
}
return nil
} | [
-0.1074875146150589,
-0.2429014891386032,
0.4681810736656189,
-0.44913098216056824,
0.07798841595649719,
0.4042629897594452,
0.43765145540237427,
0.04238070175051689,
-0.33710575103759766,
-0.1226748675107956,
1.1400456428527832,
0.36343279480934143,
-0.5186575651168823,
-0.093782283365726... |
func NewObjectId() ObjectId {
return newObjectId(time.Seconds(), nextOidCounter())
} | [
0.7550656795501709,
-0.644324004650116,
0.5664013624191284,
0.1360068917274475,
-0.7199382781982422,
0.6955068707466125,
-0.22620132565498352,
-0.440593421459198,
0.36951279640197754,
0.798069417476654,
-0.3322601318359375,
0.6708856821060181,
0.1892366111278534,
0.15654343366622925,
-0.... |
func NewObjectIdHex(hexString string) (ObjectId, os.Error) {
p, err := hex.DecodeString(hexString)
if err != nil {
return "", err
}
if len(p) != 12 {
return "", os.NewError("mongo: bad object id string len")
}
return ObjectId(p), nil
} | [
0.31002557277679443,
-1.2497938871383667,
0.5914636850357056,
-0.6564690470695496,
-0.6182389259338379,
1.140875220298767,
-1.0125092267990112,
0.17039768397808075,
0.3841704726219177,
0.45497286319732666,
-0.5296082496643066,
-0.45335477590560913,
-0.21908418834209442,
-0.580768346786499,... |
func MaxObjectIdForTime(t int64) ObjectId {
return newObjectId(t, 0xffffffffffffffff)
} | [
0.3499565124511719,
-0.30971387028694153,
0.42137300968170166,
0.12815849483013153,
-0.2831943929195404,
0.8815679550170898,
-0.9194736480712891,
-1.018363356590271,
0.17807309329509735,
0.4014603793621063,
-0.838878333568573,
-0.5657166838645935,
0.593012809753418,
0.3261498212814331,
-... |
func MinObjectIdForTime(t int64) ObjectId {
return newObjectId(t, 0)
} | [
0.15906710922718048,
-1.359405517578125,
0.4667569398880005,
-0.025997383520007133,
-0.7517885565757751,
0.9380924701690674,
-0.09637875854969025,
-0.7582130432128906,
0.18610399961471558,
0.4736964702606201,
-0.1692521870136261,
-0.5298072099685669,
0.5741492509841919,
0.5380296111106873,... |
func (id ObjectId) CreationTime() int64 {
if len(id) != 12 {
return 0
}
return int64(id[0])<<24 + int64(id[1])<<16 + int64(id[2])<<8 + int64(id[3])
} | [
0.14162464439868927,
0.10414395481348038,
0.47894087433815,
-0.20620377361774445,
0.47696152329444885,
-0.011669754981994629,
-0.7840573191642761,
-0.8427233099937439,
0.9054065346717834,
0.6927893757820129,
-0.6316160559654236,
-0.7063317894935608,
-0.36308929324150085,
0.0918281972408294... |
func (bd BSONData) Decode(v interface{}) os.Error {
return decodeInternal(bd.Kind, bd.Data, v)
} | [
-0.3032808303833008,
0.024270718917250633,
0.3780878484249115,
0.5229455828666687,
-0.06808429211378098,
-0.05520271882414818,
-0.5221911668777466,
-0.808048665523529,
-0.23240326344966888,
-0.16262146830558777,
0.11623360216617584,
1.256990671157837,
-0.3011965751647949,
0.620563924312591... |
func (d *D) Append(name string, value interface{}) {
*d = append(*d, DocItem{name, value})
} | [
-0.5901978015899658,
0.8956068158149719,
0.17928875982761383,
0.06937773525714874,
-1.431099534034729,
0.6851872205734253,
-1.020851969718933,
-0.2111162394285202,
0.03243871405720711,
-0.5969003438949585,
-0.2731280028820038,
0.0891539454460144,
0.6630049347877502,
0.8941729664802551,
0... |
func StructFields(t reflect.Type) interface{} {
return structInfoForType(t).fields
} | [
-0.6695197224617004,
0.17747189104557037,
0.4638594686985016,
-1.179292917251587,
-0.13423767685890198,
0.3578549027442932,
0.3523668646812439,
-1.519039511680603,
0.2887267470359802,
0.5658576488494873,
-1.535730242729187,
-0.8119303584098816,
-0.07267842441797256,
-0.6419984698295593,
... |
func (c *AgonesDiscoverAllocator) Allocate(ctx context.Context, req *pb.AssignTicketsRequest) error {
logger := runtime.Logger().WithField("component", "allocator")
for _, assignmentGroup := range req.Assignments {
if err := IsAssignmentGroupValidForAllocation(assignmentGroup); err != nil {
return err
}
fi... | [
-0.7493938207626343,
0.2601260542869568,
0.9092029333114624,
-0.39292246103286743,
0.04909835755825043,
-0.2602154016494751,
0.6161090731620789,
-0.3976210355758667,
-0.03654192015528679,
0.8045981526374817,
1.830973744392395,
-0.07301172614097595,
0.30681517720222473,
0.6155388355255127,
... |
func main() {
log := loggy.New("main")
fs, err := service.NewFmtService()
if err != nil {
log.Errorf("unable to launch: %v", err)
os.Exit(1)
}
fs.Start()
} | [
0.6090182065963745,
-0.6695669889450073,
0.6879952549934387,
0.85809326171875,
-0.18773230910301208,
-0.05437302216887474,
0.24824558198451996,
0.6706101894378662,
-0.1197989210486412,
-0.9751958250999451,
0.7972701191902161,
0.8642228841781616,
-0.09227117896080017,
0.8577781915664673,
... |
func LoadLocale(locale string) (*LocalizationFile, error) {
wd, err := os.Getwd()
if err != nil {
return nil, fmt.Errorf("failed to get workdir: %v", err)
}
b, err := ioutil.ReadFile(filepath.Join(wd, fmt.Sprintf("localization/%s.yaml", locale)))
if err != nil && os.IsNotExist(err) {
return nil, fmt.Errorf("l... | [
0.470142662525177,
-0.06871943175792694,
0.6132011413574219,
-0.5091969966888428,
-0.5995097756385803,
-0.24849127233028412,
0.6044803261756897,
0.4494014084339142,
-0.48628318309783936,
0.6976597905158997,
0.3475155830383301,
-0.3404082655906677,
-1.0774405002593994,
0.4021747410297394,
... |
func writeJSONResponse(w http.ResponseWriter, body interface{}) {
bs, err := json.Marshal(body)
if err != nil {
http.Error(w, err.Error(), http.StatusInternalServerError)
return
}
w.Header().Set("Content-Type", "application/json")
if _, err := w.Write(bs); err != nil {
http.Error(w, err.Error(), http.Status... | [
-1.0314600467681885,
-0.6456016302108765,
0.6687823534011841,
-0.1451670378446579,
0.22185231745243073,
-0.2812148332595825,
0.1462559998035431,
-0.3290610611438751,
0.910480797290802,
0.5840699076652527,
-0.6544099450111389,
0.2770012319087982,
-0.40083324909210205,
0.5446339845657349,
... |
func stubValidate(_ *jws, _, _ string, _ challenge) error {
return nil
} | [
-0.09690622240304947,
-0.49146977066993713,
0.6330589056015015,
0.2847646176815033,
-0.9667993783950806,
0.10985646396875381,
0.26699087023735046,
-0.5393255352973938,
0.38071122765541077,
-0.02847781777381897,
0.3054180145263672,
-0.13467179238796234,
0.20395717024803162,
-0.0427505001425... |
func NewFilesystem(ctx context.Context, cfg *Config) (KeyManager, error) {
root := cfg.FilesystemRoot
if root != "" {
if err := os.MkdirAll(root, 0o700); err != nil {
return nil, err
}
}
return &Filesystem{
root: root,
}, nil
} | [
-0.35292091965675354,
-0.05448088049888611,
0.3280875086784363,
0.4362064003944397,
-0.5726729035377502,
-0.6294313073158264,
-0.22622573375701904,
-1.1152788400650024,
0.446810245513916,
-0.970856785774231,
-0.1705637276172638,
-0.00311489449813962,
-0.6279353499412537,
1.152035117149353,... |
func (k *Filesystem) NewSigner(ctx context.Context, keyID string) (crypto.Signer, error) {
k.mu.RLock()
defer k.mu.RUnlock()
pth := filepath.Join(k.root, keyID)
b, err := os.ReadFile(pth)
if err != nil {
return nil, fmt.Errorf("failed to read signing key: %w", err)
}
pk, err := x509.ParseECPrivateKey(b)
if ... | [
-0.1317407190799713,
-1.1776705980300903,
0.2894046902656555,
0.12962642312049866,
-0.7719863653182983,
-0.45593202114105225,
-0.03789810463786125,
-0.1936941146850586,
-0.7179611921310425,
0.17952771484851837,
0.03891361877322197,
-0.6037190556526184,
-0.5186699032783508,
1.09548819065094... |
func (k *Filesystem) Encrypt(ctx context.Context, keyID string, plaintext []byte, aad []byte) ([]byte, error) {
k.mu.RLock()
defer k.mu.RUnlock()
// Find the most recent DEK - that's what we'll use for encryption
pth := filepath.Join(k.root, keyID)
infos, err := os.ReadDir(pth)
if err != nil {
return nil, fmt.... | [
-0.6211093068122864,
0.10824507474899292,
0.9493706822395325,
-0.19770632684230804,
0.2328844964504242,
0.015685714781284332,
-0.08084376156330109,
-0.926871657371521,
0.046741120517253876,
0.7743858695030212,
0.5078883767127991,
0.30411019921302795,
-0.24199776351451874,
0.803280115127563... |
func (k *Filesystem) Decrypt(ctx context.Context, keyID string, ciphertext []byte, aad []byte) ([]byte, error) {
k.mu.RLock()
defer k.mu.RUnlock()
// Figure out which DEK to use
parts := bytes.SplitN(ciphertext, []byte(":"), 2)
if len(parts) < 2 {
return nil, fmt.Errorf("invalid ciphertext: missing version")
}... | [
0.29205721616744995,
0.08935737609863281,
0.6541610360145569,
-0.46643736958503723,
-0.38159459829330444,
0.015216326341032982,
0.19161781668663025,
-0.5882441401481628,
0.1685626059770584,
0.40363311767578125,
0.24418877065181732,
0.038771502673625946,
-0.6473207473754883,
0.1598710268735... |
func (k *Filesystem) SigningKeyVersions(ctx context.Context, parent string) ([]SigningKeyVersion, error) {
k.mu.RLock()
defer k.mu.RUnlock()
metadata, err := k.metadataForKey(parent)
if err != nil {
return nil, fmt.Errorf("failed to list signing keys: %w", err)
}
if metadata.KeyType != "signing" {
return nil... | [
-0.7836440205574036,
-0.47861406207084656,
0.6262655854225159,
0.21955685317516327,
-0.47757336497306824,
-0.21715934574604034,
-0.36580196022987366,
-0.44234082102775574,
-0.9169923663139343,
0.7443031668663025,
-0.29008063673973083,
-0.3624716103076935,
-0.13120241463184357,
1.5448284149... |
func (k *Filesystem) CreateSigningKey(_ context.Context, parent, name string) (string, error) {
k.mu.Lock()
defer k.mu.Unlock()
pth := filepath.Join(k.root, parent, name)
if err := os.MkdirAll(pth, 0o700); err != nil {
return "", fmt.Errorf("failed to create directory for key: %w", err)
}
metadataPath := file... | [
-0.32482561469078064,
-0.19156931340694427,
0.6764596700668335,
-0.030326807871460915,
-0.12436945736408234,
-0.1783612072467804,
0.008249344304203987,
-0.3996027410030365,
-0.836492121219635,
0.8763108849525452,
0.3224475681781769,
-0.26734039187431335,
-0.25153520703315735,
0.79158979654... |
func (k *Filesystem) CreateEncryptionKey(_ context.Context, parent, name string) (string, error) {
k.mu.Lock()
defer k.mu.Unlock()
pth := filepath.Join(k.root, parent, name)
if err := os.MkdirAll(pth, 0o700); err != nil {
return "", fmt.Errorf("failed to create directory for key: %w", err)
}
metadataPath := f... | [
-0.3025907278060913,
0.015193698927760124,
0.6252250671386719,
-0.28726518154144287,
0.37783968448638916,
-0.1215163990855217,
0.08817047625780106,
-0.9565992951393127,
-0.8054110407829285,
1.2448852062225342,
0.17471443116664886,
0.03488656505942345,
-0.0026563480496406555,
0.844630956649... |
func (k *Filesystem) CreateKeyVersion(_ context.Context, parent string) (string, error) {
k.mu.Lock()
defer k.mu.Unlock()
metadata, err := k.metadataForKey(parent)
if err != nil {
return "", fmt.Errorf("failed to create key version: %w", err)
}
switch t := metadata.KeyType; t {
case "signing":
pk, err := e... | [
-0.12345711886882782,
-0.4720791280269623,
0.8790447115898132,
0.005266617983579636,
0.03756947070360184,
0.1486513465642929,
0.26540806889533997,
-0.8461400270462036,
-0.2929450273513794,
0.737785816192627,
0.22460612654685974,
-0.3559870719909668,
-0.4012644588947296,
0.6805471777915955,... |
func (k *Filesystem) DestroyKeyVersion(_ context.Context, id string) error {
k.mu.Lock()
defer k.mu.Unlock()
pth := filepath.Join(k.root, id)
if err := os.Remove(pth); err != nil && !os.IsNotExist(err) {
return fmt.Errorf("failed to destroy key version: %w", err)
}
return nil
} | [
-0.4246824085712433,
-0.7084609866142273,
0.33661678433418274,
0.07522590458393097,
-0.102603018283844,
-0.09989210218191147,
-0.4981880784034729,
-0.2260013371706009,
-0.5702250003814697,
0.4577009379863739,
-0.6106085181236267,
-0.37180793285369873,
-0.8150575160980225,
0.860625684261322... |
func (*FieldRules) XXX_OneofWrappers() []interface{} {
return []interface{}{
(*FieldRules_Float)(nil),
(*FieldRules_Double)(nil),
(*FieldRules_Int32)(nil),
(*FieldRules_Int64)(nil),
(*FieldRules_Uint32)(nil),
(*FieldRules_Uint64)(nil),
(*FieldRules_Sint32)(nil),
(*FieldRules_Sint64)(nil),
(*FieldRule... | [
-0.5955138802528381,
0.34934619069099426,
0.6506882905960083,
-0.3776564598083496,
1.0628916025161743,
0.004227593541145325,
-0.21378222107887268,
-0.05409049987792969,
0.447686105966568,
0.6120781898498535,
-0.4840075969696045,
0.1828930526971817,
-0.4406724274158478,
0.6290830373764038,
... |
func (*StringRules) XXX_OneofWrappers() []interface{} {
return []interface{}{
(*StringRules_Email)(nil),
(*StringRules_Hostname)(nil),
(*StringRules_Ip)(nil),
(*StringRules_Ipv4)(nil),
(*StringRules_Ipv6)(nil),
(*StringRules_Uri)(nil),
(*StringRules_UriRef)(nil),
(*StringRules_Address)(nil),
(*String... | [
-0.6130766868591309,
-0.024164985865354538,
0.502294659614563,
-0.7752511501312256,
0.905587911605835,
-0.13462071120738983,
-0.2750760018825531,
-0.0044030859135091305,
0.5741659998893738,
0.6407536864280701,
-0.44358304142951965,
0.657120943069458,
-1.1438311338424683,
0.1610838323831558... |
func (*BytesRules) XXX_OneofWrappers() []interface{} {
return []interface{}{
(*BytesRules_Ip)(nil),
(*BytesRules_Ipv4)(nil),
(*BytesRules_Ipv6)(nil),
}
} | [
-0.7676445841789246,
0.49368613958358765,
0.4018208086490631,
-0.44060367345809937,
0.8588951826095581,
0.27501147985458374,
-0.32214632630348206,
-0.21575303375720978,
0.8669520020484924,
0.5128718018531799,
-0.270545095205307,
0.3894554376602173,
-0.9059863686561584,
0.44743597507476807,... |
func generateRandomCoords() (xCoord, yCoord int) {
rand.Seed(int64(time.Now().Nanosecond()))
min := 1
max := termHeight - pTextHeight - 3
yCoord = rand.Intn(max-min) + min
max = termWidth - pTextLength - 3
xCoord = rand.Intn(max-min) + min
return xCoord, yCoord
} | [
-0.393396258354187,
-0.14793193340301514,
0.5995072722434998,
-0.5240410566329956,
-0.8873238563537598,
-0.12799130380153656,
-0.39538925886154175,
-0.2823895215988159,
0.7669988870620728,
-0.48278388381004333,
-0.6433677673339844,
-0.30002903938293457,
-0.5724462866783142,
-0.189396604895... |
func updateTextColor(p **widgets.Paragraph) {
colorsPos++
(*p).Text = fmt.Sprintf("[%s](fg:%s,mod:bold)", displayText, colors[colorsPos])
/* If the last we're at the last element in the list, begin from start */
if colorsPos == len(colors)-1 {
colorsPos = 0
}
} | [
-0.5321786999702454,
-0.9419441819190979,
0.6240497827529907,
-0.7482198476791382,
-0.4422208070755005,
-0.24163933098316193,
-1.0197070837020874,
0.9121236205101013,
-0.10626208782196045,
0.9730374813079834,
-0.41298767924308777,
0.062331296503543854,
-0.7296323776245117,
0.60404944419860... |
func drawText(p **widgets.Paragraph) {
updateColor := false
/* Did text hit the bottom or top of the term? */
if py == yEdge {
yAdd = false
updateColor = true
} else if py == 0 {
yAdd = true
updateColor = true
}
/* Did the text hit the right or left of term? */
if px == xEdge {
xAdd = false
updateC... | [
-0.6957447528839111,
-0.5029686689376831,
0.8313097357749939,
-0.5898274183273315,
0.08197608590126038,
0.6874520778656006,
-0.6551788449287415,
0.4697403609752655,
0.6064931154251099,
0.691103458404541,
-0.20456916093826294,
0.13819457590579987,
-0.4603830575942993,
-0.3380105495452881,
... |
func (s Coverage) String() string {
return awsutil.Prettify(s)
} | [
0.7309534549713135,
-0.8538719415664673,
0.29677528142929077,
-0.6254518032073975,
-1.0339499711990356,
0.6126843690872192,
0.23109976947307587,
-0.5536221265792847,
0.38756263256073,
-0.21871817111968994,
0.6442728638648987,
0.5369479656219482,
1.138923168182373,
-0.41635262966156006,
0... |
func (s CoverageByTime) String() string {
return awsutil.Prettify(s)
} | [
1.0628483295440674,
-1.0731775760650635,
0.40269288420677185,
-0.4598211348056793,
-0.8789252042770386,
0.35642898082733154,
0.31068241596221924,
-1.1506179571151733,
0.14887574315071106,
0.1822342872619629,
0.5641611218452454,
0.44582438468933105,
1.2072919607162476,
0.16593106091022491,
... |
func (s CoverageCost) String() string {
return awsutil.Prettify(s)
} | [
0.8657664656639099,
-0.7312308549880981,
0.277098149061203,
-0.5842394828796387,
-1.1351629495620728,
0.5763887763023376,
0.004323436878621578,
-0.4831850528717041,
0.39708372950553894,
-0.021546965464949608,
0.3447490930557251,
0.49238473176956177,
1.3130277395248413,
-0.49330541491508484... |
func (s CoverageHours) String() string {
return awsutil.Prettify(s)
} | [
0.6850207448005676,
-0.7108747959136963,
0.15018510818481445,
-0.7086941003799438,
-0.9370838403701782,
0.8600996732711792,
0.03212575986981392,
-0.7932004332542419,
0.13174188137054443,
0.36925631761550903,
0.391914427280426,
0.01443556509912014,
0.840416431427002,
-0.42316344380378723,
... |
func (s CoverageNormalizedUnits) String() string {
return awsutil.Prettify(s)
} | [
0.5799291133880615,
-0.629606306552887,
0.17243973910808563,
-0.6017670631408691,
-0.6628851890563965,
1.230726718902588,
0.3510545492172241,
-0.5155921578407288,
0.4257933497428894,
-0.43081024289131165,
0.9892851710319519,
0.5751762390136719,
0.3860416114330292,
-0.2658662497997284,
0.... |
func (s DateInterval) String() string {
return awsutil.Prettify(s)
} | [
0.043938715010881424,
-0.4004065692424774,
0.1279655396938324,
-0.7901343107223511,
-0.988368809223175,
1.5712053775787354,
-0.09646341949701309,
-1.3433207273483276,
-0.3334016501903534,
-0.394158273935318,
0.037905387580394745,
0.6403132677078247,
0.2379022240638733,
-0.3703848123550415,... |
func (s *DateInterval) Validate() error {
invalidParams := aws.ErrInvalidParams{Context: "DateInterval"}
if s.End == nil {
invalidParams.Add(aws.NewErrParamRequired("End"))
}
if s.Start == nil {
invalidParams.Add(aws.NewErrParamRequired("Start"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
re... | [
-0.7988560795783997,
0.0436103530228138,
0.5327512621879578,
0.21831291913986206,
-0.20774666965007782,
0.4144711494445801,
-0.7416598200798035,
-0.4370896518230438,
-0.7343018054962158,
-0.04408508539199829,
0.16290193796157837,
0.01883569359779358,
-0.6531074047088623,
0.9454638957977295... |
func (s DimensionValues) String() string {
return awsutil.Prettify(s)
} | [
0.915800154209137,
0.29191675782203674,
0.009182734414935112,
-0.5527715086936951,
-0.9442922472953796,
0.8283594846725464,
0.30167219042778015,
-0.6045087575912476,
-1.0717931985855103,
-0.47704750299453735,
0.12031383067369461,
1.138411283493042,
0.878983736038208,
0.37947192788124084,
... |
func (s DimensionValuesWithAttributes) String() string {
return awsutil.Prettify(s)
} | [
1.0534430742263794,
0.005049120634794235,
0.07018761336803436,
-0.46227356791496277,
-1.2482596635818481,
0.5602695941925049,
0.3089299201965332,
-0.35285308957099915,
-0.8520282506942749,
-0.35079801082611084,
0.28727635741233826,
0.7315061092376709,
1.346709966659546,
0.33527514338493347... |
func (s EC2InstanceDetails) String() string {
return awsutil.Prettify(s)
} | [
0.3730587661266327,
-0.29334431886672974,
0.13078704476356506,
-1.3950552940368652,
-0.7153006792068481,
1.1851885318756104,
0.09395856410264969,
-0.8862553238868713,
-0.5438222885131836,
-0.25750094652175903,
-0.00997062399983406,
1.1160789728164673,
0.3866899311542511,
-0.494808614253997... |
func (s EC2Specification) String() string {
return awsutil.Prettify(s)
} | [
-0.027544740587472916,
-0.26756906509399414,
0.10341168195009232,
-0.9839585423469543,
-0.29474058747291565,
0.5497374534606934,
-0.08407265692949295,
-0.5130549073219299,
-0.32165539264678955,
0.3720822036266327,
-0.4753824770450592,
0.9352946281433105,
1.3736542463302612,
-0.178202688694... |
func (s ESInstanceDetails) String() string {
return awsutil.Prettify(s)
} | [
0.7068437933921814,
-0.10832128673791885,
0.16374973952770233,
-1.329656958580017,
-0.3484204113483429,
0.7739180326461792,
0.20274490118026733,
-0.5840665698051453,
-0.21309354901313782,
-0.25094640254974365,
0.11135408282279968,
1.138756513595581,
0.40524742007255554,
-0.7866393327713013... |
func (s ElastiCacheInstanceDetails) String() string {
return awsutil.Prettify(s)
} | [
0.5425018072128296,
-0.017704777419567108,
0.14999645948410034,
-1.4921481609344482,
-0.49205294251441956,
0.7088651061058044,
-0.16840584576129913,
-0.3571716248989105,
-0.10892656445503235,
0.18942108750343323,
0.18692821264266968,
1.0796769857406616,
0.31712520122528076,
-1.022441029548... |
func (s Expression) String() string {
return awsutil.Prettify(s)
} | [
0.508776843547821,
-0.25710147619247437,
0.11912620067596436,
-0.695550799369812,
-1.2127087116241455,
0.302338570356369,
0.9368752837181091,
0.05851615220308304,
0.04305132478475571,
0.09308101236820221,
0.2521248161792755,
1.166852593421936,
0.6968371272087097,
-0.3228643834590912,
0.6... |
func (s ForecastResult) String() string {
return awsutil.Prettify(s)
} | [
0.3474918603897095,
0.09933430701494217,
0.0475732646882534,
-0.6719493865966797,
-1.3424044847488403,
0.22306612133979797,
0.31958574056625366,
-0.9367237687110901,
-0.42915669083595276,
-0.7601666450500488,
-0.053061045706272125,
0.38827797770500183,
0.6123184561729431,
-0.33163496851921... |
func (s Group) String() string {
return awsutil.Prettify(s)
} | [
0.14562596380710602,
0.09217806160449982,
0.021534513682127,
-0.8291363716125488,
-1.0281686782836914,
0.32913464307785034,
0.6165871024131775,
-1.0785263776779175,
-0.6965419054031372,
-0.20975081622600555,
0.3491566777229309,
1.0644137859344482,
0.197368785738945,
0.08778735250234604,
... |
func (s GroupDefinition) String() string {
return awsutil.Prettify(s)
} | [
0.5764191746711731,
0.07869555056095123,
-0.043661028146743774,
-0.6116212010383606,
-0.6634323596954346,
0.32711926102638245,
0.3013952076435089,
-0.5893005728721619,
-0.8238723278045654,
-0.12487410753965378,
0.19472379982471466,
1.143227219581604,
0.26087793707847595,
0.3639552593231201... |
func (s InstanceDetails) String() string {
return awsutil.Prettify(s)
} | [
0.7828736901283264,
-0.11068514734506607,
0.11677426844835281,
-1.4047030210494995,
-0.6373497247695923,
1.3667941093444824,
0.2268444150686264,
-0.6756072640419006,
-0.4530009925365448,
-0.20589371025562286,
0.23199254274368286,
1.2974308729171753,
0.27494513988494873,
-0.2684904038906097... |
func (s MetricValue) String() string {
return awsutil.Prettify(s)
} | [
0.9394304156303406,
0.14900173246860504,
0.0862012654542923,
-0.6730707883834839,
-1.0303006172180176,
1.136040449142456,
0.7550066709518433,
-1.1312400102615356,
-1.0564744472503662,
-0.31593990325927734,
0.6616451740264893,
1.008367896080017,
1.0675487518310547,
-0.20377732813358307,
-... |
func (s RDSInstanceDetails) String() string {
return awsutil.Prettify(s)
} | [
0.6754138469696045,
0.1561252474784851,
0.23157234489917755,
-1.8092601299285889,
-0.9674433469772339,
0.9388985633850098,
-0.23795776069164276,
-1.1989085674285889,
-0.4114367663860321,
-0.20142658054828644,
-0.18343792855739594,
1.3787907361984253,
-0.11689312756061554,
-0.45396935939788... |
func (s RedshiftInstanceDetails) String() string {
return awsutil.Prettify(s)
} | [
1.0218944549560547,
-0.2526646852493286,
0.16176466643810272,
-1.183594822883606,
-0.4707748293876648,
1.1650110483169556,
0.014605979435145855,
-0.9405998587608337,
-0.5070058107376099,
-0.2436714917421341,
0.03908909112215042,
0.9036028385162354,
-0.07172761112451553,
0.06295502185821533... |
func (s ReservationAggregates) String() string {
return awsutil.Prettify(s)
} | [
0.5251657962799072,
0.3707245886325836,
0.30416885018348694,
-1.0188602209091187,
-0.3458784222602844,
0.49338921904563904,
0.22998574376106262,
-0.3511732220649719,
-0.17537672817707062,
0.33087003231048584,
0.9868080615997314,
0.6944193243980408,
0.34547513723373413,
-0.4774983823299408,... |
func (s ReservationCoverageGroup) String() string {
return awsutil.Prettify(s)
} | [
0.4083084166049957,
-0.17434459924697876,
0.16002510488033295,
-0.3468511700630188,
-1.0934251546859741,
0.3871580958366394,
0.3048563003540039,
-0.8474222421646118,
0.2355981022119522,
0.19512537121772766,
0.09136848151683807,
0.5724825263023376,
0.33761462569236755,
-0.30587974190711975,... |
func (s ReservationPurchaseRecommendation) String() string {
return awsutil.Prettify(s)
} | [
0.27560505270957947,
0.025253573432564735,
0.26961952447891235,
-0.5133682489395142,
-0.6073957085609436,
1.0091419219970703,
0.051302503794431686,
-0.4161655306816101,
0.09976281970739365,
0.9958373308181763,
0.6557831764221191,
1.4861916303634644,
0.3183739185333252,
-1.2168797254562378,... |
func (s ReservationPurchaseRecommendationDetail) String() string {
return awsutil.Prettify(s)
} | [
0.37843915820121765,
-0.040178701281547546,
0.26115351915359497,
-0.6616277694702148,
-0.8351658582687378,
1.015045404434204,
0.01745104417204857,
-0.33582621812820435,
0.04681545868515968,
1.0496504306793213,
0.4743790626525879,
1.3988523483276367,
0.14846788346767426,
-1.2897894382476807... |
func (s ReservationPurchaseRecommendationMetadata) String() string {
return awsutil.Prettify(s)
} | [
0.4612473249435425,
-0.19539868831634521,
0.26750510931015015,
-0.6532370448112488,
-0.49400630593299866,
1.354478120803833,
-0.2783452570438385,
-0.8088255524635315,
-0.4820092022418976,
1.4166154861450195,
0.7642154097557068,
1.6500293016433716,
0.268083393573761,
-1.554901361465454,
0... |
func (s ReservationPurchaseRecommendationSummary) String() string {
return awsutil.Prettify(s)
} | [
-0.07031732052564621,
0.021615834906697273,
0.3724198341369629,
-0.445402592420578,
-1.0466539859771729,
1.1359106302261353,
0.14360199868679047,
-0.36941370368003845,
0.22187095880508423,
1.0155128240585327,
0.9705840945243835,
1.4024204015731812,
0.3485790193080902,
-1.4285070896148682,
... |
func (s ReservationUtilizationGroup) String() string {
return awsutil.Prettify(s)
} | [
-0.04174598678946495,
1.0053211450576782,
0.05712168663740158,
-1.1012495756149292,
-0.9758344888687134,
0.28934961557388306,
0.034481797367334366,
-0.15788671374320984,
-0.4079732596874237,
0.19324256479740143,
0.44145792722702026,
0.31384146213531494,
0.10508976876735687,
-0.503935396671... |
func (s ResultByTime) String() string {
return awsutil.Prettify(s)
} | [
0.5943005084991455,
-0.251706600189209,
0.2359052151441574,
-0.5160331130027771,
-0.7402262687683105,
0.12326490134000778,
0.6238669753074646,
-1.420753836631775,
-0.4622838497161865,
0.08956409990787506,
0.05362892895936966,
0.348619282245636,
0.6695960164070129,
0.2498161494731903,
0.1... |
func (s ServiceSpecification) String() string {
return awsutil.Prettify(s)
} | [
0.4223630726337433,
0.17858193814754486,
0.09797652810811996,
-1.0204212665557861,
-0.47320860624313354,
0.4615015983581543,
0.05226752161979675,
-0.33464834094047546,
-0.11548251658678055,
-0.11034310609102249,
-0.08044224232435226,
0.9650880098342896,
0.8710034489631653,
0.03983178734779... |
func (s TagValues) String() string {
return awsutil.Prettify(s)
} | [
0.9455240964889526,
0.258953720331192,
0.04393443092703819,
-0.906875729560852,
-0.17739826440811157,
0.4224953353404999,
-0.20469637215137482,
-0.7735406756401062,
-1.330664038658142,
-0.7394256591796875,
-0.08148646354675293,
0.5801045298576355,
1.1131341457366943,
0.7637636661529541,
... |
func (s UtilizationByTime) String() string {
return awsutil.Prettify(s)
} | [
0.7699576616287231,
-0.3453686237335205,
0.37599506974220276,
-0.6581491827964783,
-0.5237855315208435,
0.12419150024652481,
0.7233121395111084,
-1.103098750114441,
0.053719356656074524,
0.3381253778934479,
0.6168002486228943,
0.4481208622455597,
0.9725072383880615,
0.22083866596221924,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.