text stringlengths 11 6.3k | embedding listlengths 768 768 |
|---|---|
func receiveDashboardEnableState(conn net.Conn) bool {
dms3libs.LogDebug(filepath.Base((dms3libs.GetFunctionName())))
buf := make([]byte, 16)
if n, err := conn.Read(buf); err != nil {
dms3libs.LogFatal(err.Error())
return false
} else {
val := string(buf[:n])
dms3libs.LogInfo("Received dashboard enable s... | [
0.48767146468162537,
0.6253926157951355,
0.8930734395980835,
-0.028072470799088478,
-0.48118892312049866,
0.044144097715616226,
0.057746849954128265,
1.1639184951782227,
-0.22489480674266815,
-0.2606654465198517,
-0.5526974201202393,
-0.3877282440662384,
-0.9152155518531799,
-0.62120026350... |
func sendDashboardData(conn net.Conn) {
dms3libs.LogDebug(filepath.Base((dms3libs.GetFunctionName())))
// update client metrics
dashboardClientMetrics.Period.LastReport = time.Now()
dashboardClientMetrics.Period.Uptime = dms3libs.Uptime(dashboardClientMetrics.Period.StartTime)
dashboardClientMetrics.Platform.Ker... | [
0.2714315354824066,
0.8702539801597595,
0.6792017221450806,
0.08784203231334686,
0.3465614914894104,
0.7414200901985168,
0.8738023042678833,
-0.19487345218658447,
-1.4150192737579346,
-0.157669335603714,
-0.6546683311462402,
0.28727176785469055,
-0.5483551025390625,
0.19488540291786194,
... |
func (dash *DeviceMetrics) checkImagesFolder() {
dms3libs.LogDebug(filepath.Base((dms3libs.GetFunctionName())))
if dms3libs.IsFile(dashboardConfig.Client.ImagesFolder) {
dashboardClientMetrics.ShowEventCount = true
} else {
if dashboardConfig.Client.ImagesFolder == "" {
dashboardClientMetrics.ShowEventCoun... | [
1.1560392379760742,
0.7526515126228333,
0.5362297892570496,
-0.34959372878074646,
0.1500169336795807,
0.044469837099313736,
1.3191436529159546,
0.36964693665504456,
-0.7590301036834717,
0.023262524977326393,
0.8262636661529541,
-0.013464386574923992,
0.41426506638526917,
1.3023725748062134... |
func (r *InstanceReconciler) deploymentForInstance(m *terraformv1alpha1.Instance) *appsv1.Deployment {
ls := labelsForInstance(m.Name)
replicas := m.Spec.Size
dep := &appsv1.Deployment{
ObjectMeta: metav1.ObjectMeta{
Name: m.Name,
Namespace: m.Namespace,
},
Spec: appsv1.DeploymentSpec{
Replicas:... | [
-0.5466113090515137,
-0.25627022981643677,
0.44750362634658813,
-1.6122361421585083,
-0.14823296666145325,
-0.08310336619615555,
0.3788832426071167,
0.5555082559585571,
0.35042569041252136,
0.68814617395401,
0.3827432692050934,
-0.142038956284523,
0.2813146710395813,
0.21921254694461823,
... |
func (r *InstanceReconciler) configmapForInstance(m *terraformv1alpha1.Instance, input util.TerraVars) *corev1.ConfigMap {
configMapData := make(map[string]string, 0)
e := reflect.ValueOf(&input).Elem()
for i := 0; i < e.NumField(); i++ {
varName := e.Type().Field(i).Name
//varType := e.Type().Field(i).Type
... | [
-1.607246994972229,
-0.5481109023094177,
0.3615249693393707,
-1.5791010856628418,
0.06416906416416168,
0.29909050464630127,
0.2632952034473419,
0.9000158309936523,
-0.717185914516449,
0.28310689330101013,
-0.11111254245042801,
-0.2089243084192276,
0.1798524707555771,
0.841654896736145,
0... |
func (r *InstanceReconciler) configmapToVars(cm *corev1.ConfigMap) util.TerraVars {
configMapData := cm.Data
output := util.TerraVars{
Namespace: configMapData["Namespace"],
ProviderName: configMapData["ProviderName"],
Cloud: configMapData["Cloud"],
AccessKey: configMapData["AccessKey"],
... | [
-0.8544061779975891,
-0.34972718358039856,
0.5694445371627808,
-1.4158560037612915,
-0.6029679179191589,
0.618278980255127,
-0.6972770094871521,
0.4126553237438202,
-0.5535691976547241,
0.8660143613815308,
0.15713448822498322,
0.2002457082271576,
-0.27011457085609436,
0.4627300202846527,
... |
func labelsForInstance(name string) map[string]string {
return map[string]string{"app": "instance", "instance_cr": name}
} | [
-0.9592073559761047,
-0.5430085062980652,
0.36704888939857483,
-1.6711782217025757,
-0.7175341844558716,
0.7362608909606934,
-0.9858695864677429,
0.41965818405151367,
-0.8392712473869324,
1.0174328088760376,
-0.16625674068927765,
-0.09413637965917587,
0.2438935786485672,
0.4936946034431457... |
func init() {
network.RegisterMessage(AnnounceAggregation{})
network.RegisterMessage(ReplySumCipherBytes{})
onet.GlobalProtocolRegister(AggregationProtocolName, NewAggregationProtocol)
} | [
0.50811368227005,
1.5621424913406372,
0.6056306958198547,
-0.41567155718803406,
1.4857642650604248,
0.5516068339347839,
0.7176530957221985,
-0.7411259412765503,
0.3896715044975281,
0.47824227809906006,
-0.5096509456634521,
0.8130172491073608,
-0.8352477550506592,
1.0391664505004883,
0.03... |
func NewAggregationProtocol(n *onet.TreeNodeInstance) (onet.ProtocolInstance, error) {
//initialize the local sum to 0 and channel
st := &AggregationProtocol{
TreeNodeInstance: n,
Feedback: make(chan []*big.Int),
Sum: make([]*big.Int, 0),
}
//register the channel for announce
err := st.... | [
0.6154109835624695,
0.7336459159851074,
0.5275606513023376,
-0.9708691239356995,
0.17083516716957092,
-0.3622882068157196,
0.03583816811442375,
-0.6908456683158875,
-0.35079875588417053,
0.1974717378616333,
-0.20397673547267914,
0.28173089027404785,
-0.546378493309021,
0.5019170641899109,
... |
func (p *AggregationProtocol) Start() error {
// log.Lvl1(p.ServerIdentity(), " started a Sum Cipher Protocol (", len(p.Request), " different shares)")
//The root announce to its children that we start the protocol
p.SendToChildren(&AnnounceAggregation{})
//start := time.Now()
//log.Lvl1("time to send mesage to ... | [
0.030407115817070007,
0.25799429416656494,
0.619249701499939,
0.10262217372655869,
0.43477338552474976,
0.2410738617181778,
0.8658437728881836,
0.14671802520751953,
-0.31974032521247864,
0.3135993182659149,
-0.7398459315299988,
1.6305499076843262,
-0.7574532628059387,
0.37796908617019653,
... |
func (p *AggregationProtocol) Dispatch() error {
//send if you're not the root (done in start), and only if you have children
if !p.IsRoot() {
if !p.IsLeaf() {
p.SendToChildren(&AnnounceAggregation{})
}
}
//log.Lvl1("Server p" ,p.Index() ," wait on ")
//p.waitOnSignal()
//Ascending aggreg
//log.Lvl1(" S... | [
0.3341882526874542,
0.34759554266929626,
0.7620812058448792,
0.15247392654418945,
0.435030072927475,
0.47817400097846985,
0.7087623476982117,
-0.39487823843955994,
-0.032327715307474136,
0.004774988628923893,
-0.6190279722213745,
0.7400166988372803,
-0.535600483417511,
0.7284945249557495,
... |
func (p *AggregationProtocol) ascendingAggregationPhase() []*big.Int {
p.Sum = make([]*big.Int, len(p.Shares[0]))
for j := 0; j < len(p.Sum); j++ {
p.Sum[j] = big.NewInt(0)
}
if !p.IsLeaf() {
//wait on the channel for child to complete and add sum
//take time only at the root
for i := 0; i < len(p.Sum); i... | [
-0.09732095152139664,
0.15254198014736176,
1.3422960042953491,
-0.9066339135169983,
-0.3941763639450073,
-0.29607000946998596,
0.24946480989456177,
-0.6662285327911377,
-0.04495711997151375,
0.7130483984947205,
0.0007284627063199878,
0.3748157322406769,
-0.9361394047737122,
0.8887304663658... |
func (serializer *NetworkSerializer) readNetwork(scanner *bufio.Scanner, directed bool) (*Network, error) {
network := NewNetwork(directed)
for scanner.Scan() {
fields := splitAndClean(scanner.Text(), serializer.delimiter)
ct := len(fields)
if ct == 1 {
// vertex only, just add
vert, err := strconv.Parse... | [
-0.4128901958465576,
-0.26809409260749817,
0.7451546788215637,
0.42145484685897827,
-0.1369859129190445,
-0.08693120628595352,
0.18136201798915863,
-0.08563675731420517,
-0.12974640727043152,
-0.7807703614234924,
-0.4448792636394501,
-0.5043984651565552,
-0.7560485601425171,
-0.37032747268... |
func IndexHandler(w http.ResponseWriter, r *http.Request, ps httprouter.Params) {
if pusher, ok := w.(http.Pusher); ok {
if err := pusher.Push("./web/css/app.css", nil); err != nil {
log.Printf("Failed to push %v\n", err)
}
}
t, err := template.ParseFiles("./web/html/index.html")
if err != nil {
log.Fatal... | [
0.21084211766719818,
0.23382237553596497,
0.559858500957489,
0.9125351905822754,
0.04143143817782402,
0.8257867693901062,
0.8084128499031067,
0.43566223978996277,
-0.1836479902267456,
0.629374086856842,
0.6961010098457336,
-0.6123349666595459,
-0.1637023687362671,
0.017366155982017517,
0... |
func (mock *EnvironmentMock) AddHeaderCalls() []struct {
Header *entity.Header
} {
var calls []struct {
Header *entity.Header
}
lockEnvironmentMockAddHeader.RLock()
calls = mock.calls.AddHeader
lockEnvironmentMockAddHeader.RUnlock()
return calls
} | [
-0.14673763513565063,
-0.0803842768073082,
0.7416599988937378,
0.5585594773292542,
0.13937446475028992,
0.6845636963844299,
-0.5545451045036316,
-1.2222439050674438,
0.13830316066741943,
-0.15719696879386902,
0.4965786039829254,
-0.3536389470100403,
-1.0813696384429932,
1.066377878189087,
... |
func (mock *EnvironmentMock) DSNCalls() []struct {
} {
var calls []struct {
}
lockEnvironmentMockDSN.RLock()
calls = mock.calls.DSN
lockEnvironmentMockDSN.RUnlock()
return calls
} | [
-0.2273687720298767,
1.03421151638031,
0.3680175840854645,
-0.38312479853630066,
-0.01963142305612564,
-0.6390341520309448,
-0.11121225357055664,
-0.7185774445533752,
0.5293077826499939,
0.37965911626815796,
-0.4293507933616638,
0.48985224962234497,
0.45158010721206665,
0.7873530387878418,... |
func (mock *EnvironmentMock) HeadersCalls() []struct {
} {
var calls []struct {
}
lockEnvironmentMockHeaders.RLock()
calls = mock.calls.Headers
lockEnvironmentMockHeaders.RUnlock()
return calls
} | [
-0.18668869137763977,
-0.11142575740814209,
0.5588849782943726,
-0.08759117871522903,
-0.24392713606357574,
0.3106836676597595,
-0.7926655411720276,
-2.0147757530212402,
0.23765461146831512,
0.6963119506835938,
0.5615161657333374,
-0.35379841923713684,
-0.6662404537200928,
0.72077453136444... |
func (mock *EnvironmentMock) MessageCalls() []struct {
Name string
} {
var calls []struct {
Name string
}
lockEnvironmentMockMessage.RLock()
calls = mock.calls.Message
lockEnvironmentMockMessage.RUnlock()
return calls
} | [
-0.4334624707698822,
0.23639436066150665,
0.48183900117874146,
-0.11354697495698929,
0.13293932378292084,
0.3814319372177124,
-0.6208001971244812,
-1.8740299940109253,
-0.01805979758501053,
0.6804763078689575,
0.18649142980575562,
0.1765844076871872,
-1.4169236421585083,
1.2608574628829956... |
func (mock *EnvironmentMock) MessagesCalls() []struct {
} {
var calls []struct {
}
lockEnvironmentMockMessages.RLock()
calls = mock.calls.Messages
lockEnvironmentMockMessages.RUnlock()
return calls
} | [
-0.38220903277397156,
0.10992135852575302,
0.38891327381134033,
-0.6196426153182983,
0.3662498891353607,
0.2567277252674103,
-0.4785839021205902,
-2.274735927581787,
0.0740320160984993,
0.19597356021404266,
0.2716776728630066,
-0.10612396895885468,
-0.9146136045455933,
1.2808407545089722,
... |
func (mock *EnvironmentMock) PackagesCalls() []struct {
} {
var calls []struct {
}
lockEnvironmentMockPackages.RLock()
calls = mock.calls.Packages
lockEnvironmentMockPackages.RUnlock()
return calls
} | [
-0.0898093730211258,
0.47569260001182556,
0.37462684512138367,
-0.38088473677635193,
-0.026952527463436127,
0.03506205230951309,
-0.5890642404556274,
-1.4849656820297241,
0.46679943799972534,
0.2952406704425812,
-0.0012357805389910936,
-0.42740312218666077,
-0.7491348385810852,
0.674831628... |
func (mock *EnvironmentMock) RPCCalls() []struct {
Name string
} {
var calls []struct {
Name string
}
lockEnvironmentMockRPC.RLock()
calls = mock.calls.RPC
lockEnvironmentMockRPC.RUnlock()
return calls
} | [
-0.14396286010742188,
0.07759366184473038,
0.40863052010536194,
-0.313450425863266,
0.2792612910270691,
0.8829463720321655,
-0.5525295734405518,
-2.074328899383545,
0.02703091688454151,
0.7498809099197388,
0.25879767537117004,
-0.11675838381052017,
-1.6464650630950928,
0.4020370543003082,
... |
func (mock *EnvironmentMock) RPCsCalls() []struct {
} {
var calls []struct {
}
lockEnvironmentMockRPCs.RLock()
calls = mock.calls.RPCs
lockEnvironmentMockRPCs.RUnlock()
return calls
} | [
-0.20580975711345673,
0.17010283470153809,
0.447515606880188,
-0.7223476767539978,
0.11436394602060318,
0.5567184090614319,
-0.7313554286956787,
-2.1804988384246826,
0.03417043015360832,
0.7451885342597961,
0.38614505529403687,
-0.15775200724601746,
-1.019518494606018,
0.6561030149459839,
... |
func (mock *EnvironmentMock) RemoveHeaderCalls() []struct {
Key string
} {
var calls []struct {
Key string
}
lockEnvironmentMockRemoveHeader.RLock()
calls = mock.calls.RemoveHeader
lockEnvironmentMockRemoveHeader.RUnlock()
return calls
} | [
-0.3752749562263489,
-0.42926740646362305,
0.7754189968109131,
0.4818503260612488,
-0.7618299126625061,
0.3241504728794098,
0.055873263627290726,
-0.5079053640365601,
-0.12393685430288315,
0.5504369735717773,
-0.19959862530231476,
-0.6397349238395691,
-1.8914610147476196,
0.467974334955215... |
func (mock *EnvironmentMock) ServiceCalls() []struct {
Name string
} {
var calls []struct {
Name string
}
lockEnvironmentMockService.RLock()
calls = mock.calls.Service
lockEnvironmentMockService.RUnlock()
return calls
} | [
-0.5042884945869446,
0.0031778973061591387,
0.2594413757324219,
0.09999660402536392,
-0.26017606258392334,
0.26514557003974915,
-0.01818251423537731,
-1.55303955078125,
-0.14522014558315277,
0.577502965927124,
0.15047289431095123,
0.7673806548118591,
-1.378499984741211,
1.0455957651138306,... |
func (mock *EnvironmentMock) ServicesCalls() []struct {
} {
var calls []struct {
}
lockEnvironmentMockServices.RLock()
calls = mock.calls.Services
lockEnvironmentMockServices.RUnlock()
return calls
} | [
-0.5148748159408569,
0.3752646744251251,
0.2579844892024994,
-0.49846142530441284,
-0.21881191432476044,
0.21689680218696594,
0.04882189631462097,
-1.8711934089660645,
-0.12872084975242615,
-0.20016895234584808,
0.6477308869361877,
0.13787396252155304,
-1.125765323638916,
0.914611160755157... |
func (mock *EnvironmentMock) UsePackageCalls() []struct {
Name string
} {
var calls []struct {
Name string
}
lockEnvironmentMockUsePackage.RLock()
calls = mock.calls.UsePackage
lockEnvironmentMockUsePackage.RUnlock()
return calls
} | [
-0.6517744064331055,
0.6534538865089417,
0.7572728395462036,
0.1899222433567047,
0.33208906650543213,
-0.5045069456100464,
-0.1933271586894989,
-0.9107429385185242,
0.04183919355273247,
0.5281882286071777,
0.2956226170063019,
-0.5104396343231201,
-0.8633133172988892,
1.1263840198516846,
... |
func (mock *EnvironmentMock) UseServiceCalls() []struct {
Name string
} {
var calls []struct {
Name string
}
lockEnvironmentMockUseService.RLock()
calls = mock.calls.UseService
lockEnvironmentMockUseService.RUnlock()
return calls
} | [
-0.49172669649124146,
0.4616033434867859,
0.7900449633598328,
-0.1305767148733139,
-0.1917748898267746,
-0.32583320140838623,
0.1699438840150833,
-1.35140860080719,
-0.06818779557943344,
0.29681605100631714,
0.7912103533744812,
-0.3437518775463104,
-0.857598602771759,
1.4792160987854004,
... |
func (h *Handler) Get(ctx context.Context, w io.Writer, location access.Location, readSize, offset uint64) (func() error, error) {
span := trace.SpanFromContextSafe(ctx)
span.Debugf("get request cluster:%d size:%d offset:%d", location.ClusterID, readSize, offset)
blobs, err := genLocationBlobs(&location, readSize, ... | [
0.16591639816761017,
-0.7876361012458801,
1.0786212682724,
-0.862592339515686,
0.20604375004768372,
-0.2741396725177765,
0.07934536039829254,
-0.41888752579689026,
-0.018757596611976624,
0.19740329682826996,
0.7258015871047974,
0.6167856454849243,
-0.17186850309371948,
-0.6307358145713806,... |
func (h *Handler) readOneBlob(ctx context.Context, getTime *timeReadWrite,
serviceController controller.ServiceController,
blob blobGetArgs, sortedVuids []sortedVuid, shards [][]byte) error {
span := trace.SpanFromContextSafe(ctx)
tactic := blob.CodeMode.Tactic()
sizes, err := ec.GetBufferSizes(int(blob.BlobSize)... | [
0.20872575044631958,
-0.0060107833705842495,
0.8678070902824402,
0.16138345003128052,
0.293087363243103,
0.06381332874298096,
0.3857671916484833,
-0.7660092115402222,
-0.1487666666507721,
0.3014024496078491,
0.4066074788570404,
0.44724756479263306,
-0.4632478952407837,
-0.22043129801750183... |
func (h *Handler) getOneShardFromHost(ctx context.Context, serviceController controller.ServiceController,
host string, diskID proto.DiskID, args blobnode.RangeGetShardArgs, // get shard param with host diskid
index int, clusterID proto.ClusterID, vid proto.Vid, // param to update volume cache
attempts int, cancelCh... | [
0.7391517162322998,
-0.11692698299884796,
1.1808239221572876,
0.3884027600288391,
0.3876955211162567,
0.3116634488105774,
0.18913473188877106,
-0.6111930012702942,
-0.7349250316619873,
0.316582053899765,
-0.344376802444458,
0.4405550956726074,
-0.6031407117843628,
0.35532665252685547,
0.... |
func NewSafeObjectListParams() *SafeObjectListParams {
var ()
return &SafeObjectListParams{
timeout: cr.DefaultTimeout,
}
} | [
-0.16080239415168762,
-0.7127107381820679,
0.23739011585712433,
0.5841102600097656,
-0.26866820454597473,
0.03075523115694523,
-0.43590444326400757,
0.4546835124492645,
-0.15340279042720795,
0.44912341237068176,
-1.2613422870635986,
-0.23663407564163208,
-0.17850695550441742,
0.13247144222... |
func NewSafeObjectListParamsWithTimeout(timeout time.Duration) *SafeObjectListParams {
var ()
return &SafeObjectListParams{
timeout: timeout,
}
} | [
0.33369481563568115,
-0.931226372718811,
0.3885192275047302,
0.5707045793533325,
-0.24594959616661072,
0.8286866545677185,
-1.276755452156067,
0.39307674765586853,
-0.08456788957118988,
1.1734344959259033,
-0.8663474321365356,
-0.22460368275642395,
-0.024212172254920006,
0.3621423244476318... |
func NewSafeObjectListParamsWithContext(ctx context.Context) *SafeObjectListParams {
var ()
return &SafeObjectListParams{
Context: ctx,
}
} | [
0.06012527644634247,
-0.8313585519790649,
0.48271194100379944,
0.17701056599617004,
-0.12958228588104248,
1.04879891872406,
-1.0750155448913574,
-0.034119416028261185,
0.5395216345787048,
0.5068255662918091,
-0.9359854459762573,
-0.47234392166137695,
0.018865354359149933,
-0.11412253230810... |
func NewSafeObjectListParamsWithHTTPClient(client *http.Client) *SafeObjectListParams {
var ()
return &SafeObjectListParams{
HTTPClient: client,
}
} | [
-0.14443185925483704,
-1.005659818649292,
0.41045981645584106,
0.32774221897125244,
0.15157155692577362,
1.0261516571044922,
-0.2925467789173126,
0.2416878491640091,
-0.27637481689453125,
0.10226567834615707,
-1.0532703399658203,
-0.49910464882850647,
-0.10867507755756378,
-0.1448447555303... |
func (o *SafeObjectListParams) WithTimeout(timeout time.Duration) *SafeObjectListParams {
o.SetTimeout(timeout)
return o
} | [
-0.07691333442926407,
-0.15666770935058594,
0.2703801989555359,
0.03677245229482651,
-0.3671504557132721,
0.5496658086776733,
-0.14012864232063293,
0.16791090369224548,
0.3710095286369324,
1.2292838096618652,
-1.0296950340270996,
-0.071673683822155,
0.47010159492492676,
0.20658951997756958... |
func (o *SafeObjectListParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
} | [
-0.7266745567321777,
0.11368795484304428,
0.24243107438087463,
0.053432397544384,
0.06448129564523697,
1.0641696453094482,
0.11703688651323318,
0.4823310077190399,
-0.09802213311195374,
1.345233678817749,
-1.1823440790176392,
0.12308875471353531,
-0.10755503177642822,
0.3255545198917389,
... |
func (o *SafeObjectListParams) WithContext(ctx context.Context) *SafeObjectListParams {
o.SetContext(ctx)
return o
} | [
-0.8192771673202515,
-0.0347820483148098,
0.4091548025608063,
-0.11706134676933289,
-0.3996522128582001,
0.7454894781112671,
-0.21705389022827148,
-0.4688248932361603,
0.8146657347679138,
0.6363101601600647,
-1.1114884614944458,
-0.18637140095233917,
-0.03219291567802429,
-0.21754254400730... |
func (o *SafeObjectListParams) SetContext(ctx context.Context) {
o.Context = ctx
} | [
-1.3091835975646973,
0.13609358668327332,
0.2814440429210663,
0.09678318351507187,
0.15773329138755798,
0.9407484531402588,
0.19896486401557922,
-0.06626445800065994,
0.8019862174987793,
0.7907409071922302,
-1.3426024913787842,
0.045112915337085724,
-0.454696923494339,
-0.03235156089067459... |
func (o *SafeObjectListParams) WithHTTPClient(client *http.Client) *SafeObjectListParams {
o.SetHTTPClient(client)
return o
} | [
-0.6632682681083679,
-0.8195306062698364,
0.34081435203552246,
-0.43132901191711426,
-0.2692665159702301,
0.6682529449462891,
0.3258570730686188,
-0.2825753092765808,
-0.1950744092464447,
0.1705339103937149,
-1.129765510559082,
-0.27019375562667847,
0.3500734269618988,
-0.6690481305122375,... |
func (o *SafeObjectListParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
} | [
-0.5527933835983276,
-0.5232914090156555,
0.17661693692207336,
-0.814988374710083,
-0.27328675985336304,
0.47807416319847107,
0.6560608148574829,
-0.01862388290464878,
-0.6113806366920471,
0.5159639120101929,
-1.4823753833770752,
0.0830678716301918,
-0.34466761350631714,
-0.701265513896942... |
func (o *SafeObjectListParams) WithBody(body *models.Query) *SafeObjectListParams {
o.SetBody(body)
return o
} | [
-1.3218446969985962,
-0.32054710388183594,
0.22329287230968475,
-0.22976885735988617,
0.39504754543304443,
0.4416294991970062,
-0.2973864674568176,
-0.8563438057899475,
0.8710949420928955,
0.9189645051956177,
-1.153428554534912,
-0.9652416706085205,
-0.17172487080097198,
0.4659892320632934... |
func (o *SafeObjectListParams) SetBody(body *models.Query) {
o.Body = body
} | [
-1.6184927225112915,
-0.16014711558818817,
0.16741125285625458,
0.08663923293352127,
0.6144556403160095,
0.8275259733200073,
-0.05028824508190155,
-0.3151003420352936,
0.7032776474952698,
1.1880967617034912,
-1.5319732427597046,
-0.5028914213180542,
-0.8205010890960693,
0.9540675282478333,... |
func (o *SafeObjectListParams) WithKeys(keys []string) *SafeObjectListParams {
o.SetKeys(keys)
return o
} | [
-1.5188226699829102,
-0.11617592722177505,
0.09402818977832794,
-0.46339234709739685,
-0.44415315985679626,
-0.14469952881336212,
-0.5401858687400818,
-0.25836506485939026,
0.43921729922294617,
0.8372829556465149,
-0.8858059048652649,
-0.4081079661846161,
0.06446291506290436,
-0.1981900185... |
func (o *SafeObjectListParams) SetKeys(keys []string) {
o.Keys = keys
} | [
-1.9762078523635864,
0.09814157336950302,
0.06361889094114304,
-0.3086022734642029,
0.008835971355438232,
0.2707172632217407,
-0.4361603856086731,
0.01817367970943451,
0.12494445592164993,
1.1818501949310303,
-1.1542069911956787,
-0.040528398007154465,
-0.38570648431777954,
0.1617871373891... |
func (o *SafeObjectListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
}
var res []error
if o.Body != nil {
if err := r.SetBodyParam(o.Body); err != nil {
return err
}
}
valuesKeys := o.Keys
joinedKeys := swag.Jo... | [
-1.5577483177185059,
-0.06767036020755768,
0.8647220134735107,
-0.4828016459941864,
0.8701329231262207,
0.1151994839310646,
0.4217681586742401,
0.07181987911462784,
-0.2516256272792816,
0.9959630370140076,
-0.5733014345169067,
-0.024722585454583168,
-0.43172386288642883,
0.2789382040500641... |
func addcarryxU64(x uint64, y uint64, carry uint1) (uint64, uint1) {
var sum uint64
var carryOut uint64
sum, carryOut = bits.Add64(x, y, uint64(carry))
return sum, uint1(carryOut)
} | [
-0.01988334208726883,
0.14919735491275787,
0.892531156539917,
0.7376261353492737,
-0.02729281224310398,
-0.04200200363993645,
-0.814371645450592,
-0.597346842288971,
-0.15268900990486145,
-0.5310221314430237,
-0.33109810948371887,
-0.0071343788877129555,
-0.6371567249298096,
0.461621969938... |
func subborrowxU64(x uint64, y uint64, carry uint1) (uint64, uint1) {
var sum uint64
var carryOut uint64
sum, carryOut = bits.Sub64(x, y, uint64(carry))
return sum, uint1(carryOut)
} | [
0.5805811285972595,
0.2724311947822571,
0.6513476967811584,
0.8932332396507263,
-0.5421289205551147,
-0.17563943564891815,
-0.5152961611747742,
-0.21502374112606049,
-0.1411425620317459,
-0.20051126182079315,
-0.8233224153518677,
0.3362167477607727,
-0.9569272398948669,
-0.0919269025325775... |
func cmovznzU64(out1 *uint64, arg1 uint1, arg2 uint64, arg3 uint64) {
var x1 uint64 = (uint64(arg1) * 0xffffffffffffffff)
var x2 uint64 = ((x1 & arg3) | ((^x1) & arg2))
*out1 = x2
} | [
-0.4282764494419098,
-0.05819270759820938,
0.4030008912086487,
0.8643161654472351,
-0.6505998373031616,
-0.36523696780204773,
0.36961856484413147,
0.27727386355400085,
0.10529856383800507,
-0.2485058754682541,
0.12393420934677124,
0.3883228898048401,
-0.32636162638664246,
0.076435640454292... |
func Selectznz(out1 *[4]uint64, arg1 uint1, arg2 *[4]uint64, arg3 *[4]uint64) {
var x1 uint64
cmovznzU64(&x1, arg1, (arg2[0]), (arg3[0]))
var x2 uint64
cmovznzU64(&x2, arg1, (arg2[1]), (arg3[1]))
var x3 uint64
cmovznzU64(&x3, arg1, (arg2[2]), (arg3[2]))
var x4 uint64
cmovznzU64(&x4, arg1, (arg2[3]), (ar... | [
-0.0057578845880925655,
-0.5369712114334106,
0.5085934996604919,
0.20731554925441742,
-0.3409299850463867,
-0.7129433751106262,
0.8156760334968567,
-0.4393956661224365,
0.5295382738113403,
0.4305872917175293,
-0.38922107219696045,
0.2422936111688614,
-0.7034021615982056,
-0.375024348497390... |
func (ar *ArtworkResponse) UnmarshalJSON(b []byte) error {
if err := json.Unmarshal(b, &ar.wrapper); err != nil {
return err
}
ar.ProgramID = ar.wrapper.PID
if ar.wrapper.Data[0] == '[' {
return json.Unmarshal(ar.wrapper.Data, &ar.Artwork)
}
return json.Unmarshal(ar.wrapper.Data, &ar.Error)
} | [
-0.5770978927612305,
-0.5416361093521118,
0.2653829753398895,
-1.7763220071792603,
-0.8278608918190002,
0.08478687703609467,
0.9893304109573364,
-0.4989825189113617,
1.217712163925171,
0.10243244469165802,
-0.25992676615715027,
-0.20326043665409088,
-0.356828898191452,
-0.2238999307155609,... |
func (c *Client) GetArtworkForProgramIDs(programIDs []string) ([]ArtworkResponse, error) {
// If user passed more than 500 programIDs, let's help them out by
// chunking the requests for them.
// Obviously you can disable this behavior by passing less than 500 IDs.
if len(programIDs) > 500 {
allResponses := make(... | [
-1.6412993669509888,
0.08597322553396225,
0.7330147624015808,
-0.5439910292625427,
-0.05090442672371864,
-0.0027138441801071167,
0.015540644526481628,
-1.055527925491333,
0.47486579418182373,
0.778008759021759,
-0.07581315189599991,
0.8189085721969604,
-1.2849584817886353,
0.12289452552795... |
func (c *Client) GetArtworkForRootID(rootID string) ([]Artwork, error) {
url := fmt.Sprint(c.BaseURL, APIVersion, "/metadata/programs/", rootID)
// setup the request
req, httpErr := http.NewRequest("GET", url, nil)
if httpErr != nil {
return nil, httpErr
}
_, data, err := c.SendRequest(req, false)
if err != ... | [
-1.1518774032592773,
0.049064189195632935,
0.6896859407424927,
-0.20526674389839172,
-0.18421079218387604,
0.08224055916070938,
-0.336745023727417,
-0.7266701459884644,
0.5139950513839722,
0.3918478190898895,
0.05804382637143135,
1.4312137365341187,
-0.8109089136123657,
0.3983127176761627,... |
func (c *Client) GetImage(imageURI string) ([]byte, error) {
url := fmt.Sprint(c.BaseURL, APIVersion, "/image/", imageURI)
if strings.HasPrefix(imageURI, "https://s3.amazonaws.com") {
url = imageURI
}
// setup the request
req, httpErr := http.NewRequest("GET", url, nil)
if httpErr != nil {
return nil, httpE... | [
-1.3439538478851318,
0.5724141001701355,
0.6668047308921814,
0.7924387454986572,
0.3068905472755432,
-0.4307459592819214,
-1.068636178970337,
-0.8539067506790161,
0.39089235663414,
0.07341616600751877,
0.5952609181404114,
1.0803486108779907,
-1.5434004068374634,
0.27352380752563477,
0.20... |
func (c *Client) GetCelebrityArtwork(celebrityID string) ([]Artwork, error) {
url := fmt.Sprint(c.BaseURL, APIVersion, "/metadata/celebrity/", celebrityID)
// setup the request
req, httpErr := http.NewRequest("GET", url, nil)
if httpErr != nil {
return nil, httpErr
}
_, data, err := c.SendRequest(req, false)
... | [
-1.4591636657714844,
0.6306036710739136,
0.8346168398857117,
0.12315407395362854,
-0.035683415830135345,
0.2937627136707306,
0.2324950397014618,
-0.22251564264297485,
0.4886288046836853,
0.6434946656227112,
-1.2099446058273315,
1.0602439641952515,
-0.8712006211280823,
0.46130824089050293,
... |
func (c *Client) GetImageURL(imageURI string) string {
if strings.HasPrefix(imageURI, "https://s3.amazonaws.com") {
return imageURI
}
return fmt.Sprint(c.BaseURL, APIVersion, "/image/", imageURI)
} | [
-1.0293328762054443,
0.4768010079860687,
0.6406336426734924,
0.8326913714408875,
0.3602278232574463,
-0.18301095068454742,
-0.8951094746589661,
-0.5645256638526917,
0.23247376084327698,
0.4847044348716736,
0.6429824233055115,
0.4035815894603729,
-0.67661452293396,
0.4907779097557068,
-0.... |
func Repository() ITaskRepo {
return taskRepository
} | [
-0.06222257763147354,
0.1579207479953766,
0.14071795344352722,
0.19885382056236267,
-0.4550257921218872,
-0.18386922776699066,
0.9092482924461365,
1.3583167791366577,
0.7514411807060242,
-0.6416923403739929,
-0.45682352781295776,
-0.639086127281189,
0.8548992276191711,
-0.24277950823307037... |
func InitializeTaskRepo(pr ITaskRepo) error {
taskMu.Lock()
defer taskMu.Unlock()
if taskRepoInitialized {
return errors.New("Initializing task repo again")
}
taskOnce.Do(func() {
taskRepository = pr
taskRepoInitialized = true
})
return nil
} | [
-0.44849488139152527,
0.6570307016372681,
0.4956052005290985,
-0.1382891684770584,
0.20736290514469147,
-0.5879063010215759,
0.5751476883888245,
0.44983991980552673,
-0.14780142903327942,
0.45064592361450195,
-1.0818599462509155,
-0.49235743284225464,
0.2704244554042816,
0.3175149261951446... |
func RouterInit() *fasthttprouter.Router {
user := "testuser"
pass := "testuser!!!"
router := fasthttprouter.New()
router.GET("/", handler.Index)
router.GET("/protected/", handler.BasicAuthHandler(handler.Protected, user, pass))
// Serve static files from the ./public directory
router.NotFound = fasthttp.FSHan... | [
-0.6796530485153198,
-0.10628947615623474,
0.38662606477737427,
0.5701345205307007,
0.620294988155365,
0.3781910538673401,
-0.019008660688996315,
-0.20744147896766663,
-0.5509763956069946,
-0.8027375936508179,
-0.5509626269340515,
0.19508035480976105,
-0.33750078082084656,
0.16236545145511... |
func Load() {
_ = env.Parse(&RedisConfig)
_ = env.Parse(&MongoConfig)
} | [
-0.7910312414169312,
0.3699597716331482,
0.345597505569458,
-0.5421221852302551,
0.5395452380180359,
0.004547183867543936,
-0.901799201965332,
0.0803796797990799,
-0.7521571516990662,
0.9555761218070984,
-0.8358041048049927,
0.4237077534198761,
-0.140092670917511,
0.8446828126907349,
1.2... |
func (e *Extrinsic[A, S, P]) UnmarshalJSON(bz []byte) error {
var tmp string
if err := json.Unmarshal(bz, &tmp); err != nil {
return err
}
var l types.UCompact
if err := codec.DecodeFromHex(tmp, &l); err != nil {
return err
}
prefix, err := codec.EncodeToHex(l)
if err != nil {
return err
}
// determ... | [
0.6351757049560547,
-0.26547637581825256,
0.7620112895965576,
-1.3901199102401733,
-0.6451401710510254,
-0.4515758156776428,
-0.09744933992624283,
0.8602915406227112,
0.3090725243091583,
1.0325355529785156,
-0.687255859375,
0.30855512619018555,
-0.13673456013202667,
-0.30868497490882874,
... |
func (e *Extrinsic[A, S, P]) IsSigned() bool {
return e.Version&types.ExtrinsicBitSigned == types.ExtrinsicBitSigned
} | [
0.27655887603759766,
-1.0532152652740479,
0.49840718507766724,
-0.21098411083221436,
0.7153823375701904,
0.5169538259506226,
0.02090873196721077,
0.8518026471138,
0.22556185722351074,
0.4503437578678131,
-1.1545637845993042,
0.5628452897071838,
-0.5581479668617249,
-0.9208037853240967,
-... |
func (e *Extrinsic[A, S, P]) Type() uint8 {
return e.Version & types.ExtrinsicUnmaskVersion
} | [
0.1206817626953125,
-0.12118314951658249,
0.23622755706310272,
0.21203146874904633,
0.8703422546386719,
0.2765122652053833,
-0.001169478869996965,
0.07501636445522308,
0.38875484466552734,
0.6159399151802063,
-0.12736932933330536,
0.534980833530426,
-0.5960913300514221,
-1.2102419137954712... |
func (e *Extrinsic[A, S, P]) Decode(decoder scale.Decoder) error {
// compact length encoding (1, 2, or 4 bytes) (may not be there for Extrinsics older than Jan 11 2019)
if _, err := decoder.DecodeUintCompact(); err != nil {
return err
}
if err := decoder.Decode(&e.Version); err != nil {
return err
}
if e.I... | [
-0.027827123180031776,
-0.2121630162000656,
0.5065205693244934,
0.023780131712555885,
-0.44820183515548706,
-0.4839846193790436,
-0.6551468372344971,
0.5473619699478149,
-0.24046850204467773,
0.7221834063529968,
-0.806793212890625,
0.10607943683862686,
-0.3620832562446594,
-0.2084004729986... |
func (n *MqttClient) PublishMessageWithNoTimout(payload interface{}) {
n.client.Publish(n.PubTopic, byte(1), false, payload)
} | [
0.4173351228237152,
0.2850760817527771,
0.23574769496917725,
0.07286428660154343,
-0.6380762457847595,
0.9816500544548035,
-0.30297672748565674,
-0.18213939666748047,
-0.3447346091270447,
0.5579131245613098,
0.24386346340179443,
-0.6869559288024902,
-1.4779603481292725,
1.0061798095703125,... |
func Execute(t *template.Template, data interface{}) (string, error) {
var b bytes.Buffer
if err := t.Execute(&b, data); err != nil {
return "", err
}
return b.String(), nil
} | [
0.06888572126626968,
-0.4584906995296478,
0.5976013541221619,
-0.14309808611869812,
-0.7851505279541016,
-0.13669072091579437,
-1.1063822507858276,
-0.7259503602981567,
-0.25545650720596313,
0.8680711984634399,
-0.5430039763450623,
-0.309620201587677,
-0.848023533821106,
-0.870329618453979... |
func ExecuteOrFail(t test.Failer, t2 *template.Template, data interface{}) string {
t.Helper()
s, err := Execute(t2, data)
if err != nil {
t.Fatal(err)
}
return s
} | [
0.26377367973327637,
-0.5585355758666992,
0.4985668659210205,
-0.028094090521335602,
-0.5988020896911621,
0.025210052728652954,
-1.0678834915161133,
-0.7035486698150635,
0.14055795967578888,
1.0690728425979614,
0.4030807614326477,
-0.21306556463241577,
0.32423847913742065,
-0.1277296245098... |
func (p *RangeFilterPlan) Apply(ctx api.StreamContext, data interface{}, fv *xsql.FunctionValuer, afv *xsql.AggregateFunctionValuer, Oc *nodes.OutputController) interface{} {
log := ctx.GetLogger()
log.Debugf("filter plan receive %s", data)
//fmt.Println("range filter pre data is : ", data , "type is:", reflect.Type... | [
-1.1152552366256714,
0.12879925966262817,
0.9089440703392029,
-0.27694782614707947,
-0.6826797723770142,
0.12806807458400726,
0.005521716549992561,
-0.4465479552745819,
-0.3926776349544525,
0.48286423087120056,
-0.3715607523918152,
0.7959772348403931,
-0.6737276911735535,
-0.05038123950362... |
func (n *Node) Name(ctx context.Context, null *protos.Null) (*protos.NodeName, error) {
// Fetch the environment variable
nodeName := os.Getenv("NODE_NAME")
klog.Infof("Node name is : %v", nodeName)
return &protos.NodeName{NodeName: nodeName}, nil
} | [
-0.27380186319351196,
0.07623682916164398,
0.478939026594162,
0.26579996943473816,
-0.2619791328907013,
-0.23289863765239716,
-0.4833373427391052,
-0.37869974970817566,
-0.4611266851425171,
1.1978766918182373,
0.172390878200531,
0.6135954260826111,
0.17081864178180695,
0.38456952571868896,... |
func StackIgnoreFirst(n int) string {
stack := strings.Split(string(debug.Stack()), "\n")
// first line is goroutine, we always keep dat
// then lines come in two: top line is function, bottom is file:line info
// since we start from the second line (first is goroutine info) and since
// we start n from the calle... | [
0.6694228649139404,
0.7100545167922974,
0.7413778901100159,
-0.19286273419857025,
0.6491843461990356,
-0.5852603912353516,
-0.028169695287942886,
-0.8686510920524597,
-0.8229293823242188,
0.15274156630039215,
-0.592759907245636,
-0.376309871673584,
0.32096442580223083,
0.43395742774009705,... |
func SmartStack() string {
gopath := os.Getenv("GOPATH")
stack := strings.Split(string(debug.Stack()), "\n")
// we look for panic, we start at that
count := 0
for _, s := range stack {
if strings.Contains(s, "runtime/panic.go:") {
break
}
count++
}
// first line is goroutine nb, we keep dat
lines := ... | [
0.37768182158470154,
0.6686822772026062,
0.9025240540504456,
-0.30782559514045715,
0.4772222936153412,
-0.7753328084945679,
-0.22493991255760193,
-0.5498112440109253,
0.049177251756191254,
0.7052587270736694,
0.09318863600492477,
-0.28838759660720825,
-0.35681039094924927,
0.43367940187454... |
func Debugf(f string, vals ...interface{}) {
line := lineInfo(8)
fmt.Printf(fmt.Sprintf("%s: ", line)+f, vals...)
} | [
0.6643269658088684,
0.608731210231781,
0.6535136699676514,
-0.08545928448438644,
0.20976023375988007,
0.08403681963682175,
-0.7229809165000916,
0.4850643277168274,
-1.3819808959960938,
-1.478033423423767,
0.012022200971841812,
-0.08843729645013809,
0.49708569049835205,
0.5570621490478516,
... |
func Dump(a ...interface{}) {
line := lineInfo(8)
fmt.Printf("%s: ", line)
spew.Dump(a...)
} | [
0.3865257799625397,
-0.11798854172229767,
0.48238834738731384,
-0.019673610106110573,
0.49958696961402893,
0.987915575504303,
-0.06214899942278862,
0.3550284206867218,
0.4463827908039093,
-0.9387494325637817,
-0.37773609161376953,
0.3881163001060486,
0.05602031946182251,
0.9592463970184326... |
func CountPrintf(f string, vals ...interface{}) {
count++
fmt.Printf(fmt.Sprintf("%d - ", count)+f, vals...)
} | [
1.1173267364501953,
0.012233177199959755,
0.7014098763465881,
0.547327995300293,
-0.06518881767988205,
0.4353765845298767,
-0.09890800714492798,
0.23797453939914703,
-1.0931099653244019,
-0.4103522002696991,
-0.23246100544929504,
0.18410104513168335,
0.8784690499305725,
-0.1678030788898468... |
func CountPrintln(f ...interface{}) {
count++
fmt.Printf("%d - ", count)
fmt.Println(f...)
} | [
0.5070286989212036,
-0.42761486768722534,
0.8420531749725342,
1.300463080406189,
0.2209794819355011,
0.6573508977890015,
-0.1996934860944748,
0.011879533529281616,
-0.6191275715827942,
-0.6443830132484436,
-0.6142972111701965,
0.5548540353775024,
1.3021479845046997,
0.3983594477176666,
0... |
func ResetCount() {
count = 0
} | [
0.7952019572257996,
-0.18658380210399628,
0.17511805891990662,
1.0735830068588257,
1.2041895389556885,
0.144837886095047,
0.68313068151474,
0.9696773290634155,
-1.436030387878418,
0.03432482108473778,
0.21457265317440033,
0.7694785594940186,
-0.31897667050361633,
-0.1924791783094406,
0.9... |
func (t *Ticker) NewMFI(inTimePeriod int32) *MFI {
calculator := &mfiCalculator{
Ticker: t,
FlowIdx: 0,
MaxFlowIdx: inTimePeriod - 1,
Period: inTimePeriod,
MoneyFlow: make([]moneyFlow, inTimePeriod),
}
return &MFI{
Calculator: calculator,
}
} | [
-0.354902446269989,
-0.5779579281806946,
0.2973012328147888,
0.4293026328086853,
-1.405598521232605,
-0.16470953822135925,
0.16256090998649597,
-0.70195472240448,
-0.19633814692497253,
-0.2906573712825775,
-0.7337009310722351,
-0.04696163907647133,
-0.8100800514221191,
0.10822063684463501,... |
func (t *Ticker) setMarket(open, close, high, low, vol float64, date time.Time) {
t.Open = open
t.Close = close
t.High = high
t.Low = low
t.Vol = vol
t.Date = date
} | [
-0.9695367217063904,
-0.02718295343220234,
0.43100568652153015,
0.11525118350982666,
0.6038814187049866,
0.3433518409729004,
-0.7305631637573242,
-0.7417418956756592,
-0.027982866391539574,
0.04555158689618111,
-0.867041826248169,
-0.14592939615249634,
0.21265415847301483,
0.13174651563167... |
func (r *MFI) Update(open, close, high, low, vol float64, date time.Time) {
r.Calculator.setMarket(open, close, high, low, vol, date)
r.Calculator.calcMFI()
r.Value = r.Calculator.Result
} | [
-0.7051544785499573,
-0.8942942023277283,
0.26672500371932983,
0.28834500908851624,
-0.451232373714447,
-0.21684792637825012,
-0.1421607881784439,
-0.24786114692687988,
-0.4929652810096741,
-0.14685611426830292,
-0.09310359507799149,
-0.3213280737400055,
-0.7463678121566772,
-0.13514424860... |
func (r *MFI) Sum() float64 {
return r.Value
} | [
-0.6086727380752563,
0.1993049830198288,
0.1561436653137207,
0.3632366955280304,
-0.016030456870794296,
-0.10476690530776978,
1.0901272296905518,
-0.2447856068611145,
-0.66364586353302,
0.08180223405361176,
-0.009000308811664581,
0.17493028938770294,
-1.3872934579849243,
0.2067750096321106... |
func (nodeKey *NodeKey) ID() ID {
return PubKeyToID(nodeKey.PubKey())
} | [
-0.04824519902467728,
-0.0824073776602745,
-0.062077999114990234,
-0.03085208497941494,
0.3071953356266022,
0.5378983616828918,
-0.13571219146251678,
0.19004462659358978,
0.5498830080032349,
0.582704484462738,
0.3259872496128082,
0.32479166984558105,
-0.8609020709991455,
0.7563737034797668... |
func (nodeKey *NodeKey) PubKey() crypto.PubKey {
return nodeKey.PrivKey.PubKey()
} | [
0.7241899967193604,
0.5073732137680054,
0.24041953682899475,
0.11106555908918381,
0.5453627109527588,
-0.2688981592655182,
-0.3404079079627991,
0.6599063873291016,
-0.4814935326576233,
0.43762916326522827,
0.5243086218833923,
0.9581781625747681,
-0.37245315313339233,
0.3505933880805969,
... |
func PubKeyToID(pubKey crypto.PubKey) ID {
return ID(hex.EncodeToString(pubKey.Address()))
} | [
0.8441867828369141,
-0.5066689252853394,
0.07219448685646057,
-0.7269317507743835,
0.14820174872875214,
0.7055762410163879,
-1.031826376914978,
0.6586196422576904,
0.994742751121521,
1.3461122512817383,
-0.836919367313385,
0.14771658182144165,
-1.0259151458740234,
0.3579936921596527,
-1.... |
func logger() *logrus.Entry {
return mainConfig.Logger().WithFields(logrus.Fields{
"pkg": "mysqlx",
})
} | [
0.09368577599525452,
0.8589216470718384,
0.2549129128456116,
-0.45333191752433777,
-0.48839348554611206,
0.16599979996681213,
-1.0241131782531738,
0.5778525471687317,
0.49990272521972656,
-0.33174842596054077,
-0.22760483622550964,
-0.05329056829214096,
0.47854945063591003,
1.0535416603088... |
func (bm *BitMap) Has(num int) bool {
word, bit := num/64, num%64
return word < len(bm.words) && (bm.words[word]&(1<<bit)) != 0
} | [
0.077843077480793,
0.285305917263031,
0.4897656738758087,
-0.2747216820716858,
-0.6448442935943604,
-0.20739999413490295,
0.02712417021393776,
-0.151881143450737,
0.424024373292923,
-0.2841849625110626,
-0.014099949970841408,
0.16712243854999542,
-1.1695988178253174,
1.1050153970718384,
... |
func (in *RecordSetGroup) GetNotificationARNs() []string {
notifcations := []string{}
for _, notifarn := range in.Spec.NotificationARNs {
notifcations = append(notifcations, *notifarn)
}
return notifcations
} | [
-0.18515142798423767,
0.235130175948143,
0.5106672048568726,
-0.15285207331180573,
0.07628148049116135,
-0.17016616463661194,
-0.2020587921142578,
-0.9362967610359192,
-0.18142570555210114,
0.1923278123140335,
0.17656849324703217,
1.140855073928833,
0.10103882104158401,
1.6475111246109009,... |
func (in *RecordSetGroup) GetTemplate(client dynamic.Interface) (string, error) {
if client == nil {
return "", fmt.Errorf("k8s client not loaded for template")
}
template := cloudformation.NewTemplate()
template.Description = "AWS Controller - route53.RecordSetGroup (ac-{TODO})"
template.Outputs = map[string]... | [
-0.45785361528396606,
0.4196072816848755,
0.43089452385902405,
-1.0895564556121826,
-0.17039412260055542,
-0.6807218194007874,
1.0312551259994507,
0.10038283467292786,
-0.309706449508667,
0.4897405803203583,
0.03842828422784805,
0.8210527300834656,
-0.20323796570301056,
0.21309426426887512... |
func (in *RecordSetGroup) GetStackID() string {
return in.Status.StackID
} | [
0.9959417581558228,
0.0908183827996254,
0.4760204553604126,
0.9634992480278015,
-0.15916237235069275,
0.38071486353874207,
0.7009171843528748,
-0.1553821712732315,
-0.02941710874438286,
0.3717857599258423,
0.0853692963719368,
0.7825411558151245,
-0.3974045515060425,
1.0715277194976807,
0... |
func (in *RecordSetGroup) GenerateStackName() string {
return strings.Join([]string{"route53", "recordsetgroup", in.GetName(), in.GetNamespace()}, "-")
} | [
-0.5994439125061035,
1.053987979888916,
0.6167274713516235,
0.13138708472251892,
-0.5976606011390686,
-0.38401949405670166,
-0.08076932281255722,
-0.39328792691230774,
-0.0969022735953331,
0.7529122829437256,
-0.748244047164917,
0.28368762135505676,
-0.11198370903730392,
0.8791326284408569... |
func (in *RecordSetGroup) GetStackName() string {
return in.Spec.StackName
} | [
0.14381597936153412,
0.6038004159927368,
0.46819931268692017,
0.7432064414024353,
-0.041047997772693634,
-0.44697538018226624,
1.0561381578445435,
-0.24111483991146088,
-0.641804575920105,
0.4623476266860962,
0.46189215779304504,
0.31918731331825256,
-0.342324435710907,
0.6304433941841125,... |
func (in *RecordSetGroup) GetTemplateVersionLabel() (value string, ok bool) {
value, ok = in.Labels[controllerutils.StackTemplateVersionLabel]
return
} | [
-0.6712159514427185,
0.1970895379781723,
0.4690239131450653,
0.39744681119918823,
-0.4195503294467926,
0.4054010808467865,
0.013900130055844784,
-0.6237279176712036,
-0.5707332491874695,
1.2863792181015015,
-0.5715020298957825,
0.24920369684696198,
-0.49702876806259155,
0.29734089970588684... |
func (in *RecordSetGroup) GetParameters() map[string]string {
params := map[string]string{}
cfnencoder.MarshalTypes(params, in.Spec, "Parameter")
return params
} | [
-0.7215586304664612,
0.31286364793777466,
0.26600882411003113,
-0.3415994346141815,
0.20698052644729614,
-0.5116006731987,
-0.19530001282691956,
-0.3439735770225525,
-0.5258141756057739,
0.8691461086273193,
0.18469341099262238,
1.0815050601959229,
-0.9249606132507324,
1.273370623588562,
... |
func (in *RecordSetGroup) GetCloudFormationMeta() metav1alpha1.CloudFormationMeta {
return in.Spec.CloudFormationMeta
} | [
-0.25630471110343933,
0.6032936573028564,
0.5177400708198547,
0.37555578351020813,
0.3458574414253235,
-0.9868503212928772,
0.34995633363723755,
-0.756194531917572,
-0.9690370559692383,
-0.1259710043668747,
0.13442915678024292,
0.5590320229530334,
0.019399642944335938,
0.8433730602264404,
... |
func (in *RecordSetGroup) GetStatus() metav1alpha1.ConditionStatus {
return in.Status.Status
} | [
0.1173037439584732,
0.20571020245552063,
0.19955214858055115,
0.8313902616500854,
-0.12979887425899506,
-0.23022785782814026,
0.37617257237434387,
0.11599321663379669,
-0.1868286430835724,
0.07241230458021164,
0.4746376872062683,
0.9130985736846924,
-0.4436677098274231,
0.8290025591850281,... |
func (in *RecordSetGroup) SetStackID(input string) {
in.Status.StackID = input
return
} | [
0.127371683716774,
-0.13484413921833038,
0.31956052780151367,
0.9705969095230103,
-0.44512397050857544,
0.6591167449951172,
0.7769959568977356,
-0.06152529641985893,
-0.3417850434780121,
0.7080959677696228,
-0.7405440807342529,
0.7187486886978149,
-0.47846850752830505,
1.667643427848816,
... |
func (in *RecordSetGroup) SetStackName(input string) {
in.Spec.StackName = input
return
} | [
-0.45801013708114624,
0.3975857198238373,
0.2809220552444458,
0.8543277978897095,
-0.22321859002113342,
-0.10052164644002914,
1.1783884763717651,
-0.1530701220035553,
-0.6585573554039001,
0.6448643803596497,
-0.5695851445198059,
0.2720802426338196,
-0.4559953510761261,
1.1774101257324219,
... |
func (in *RecordSetGroup) SetTemplateVersionLabel() {
if len(in.Labels) == 0 {
in.Labels = map[string]string{}
}
in.Labels[controllerutils.StackTemplateVersionLabel] = controllerutils.ComputeHash(in.Spec)
} | [
-0.7151941657066345,
-0.4663660228252411,
0.3912774324417114,
-0.21071523427963257,
-0.028730876743793488,
0.3559326231479645,
-0.009507847018539906,
0.12343406677246094,
-0.7408444285392761,
0.9547536373138428,
-0.7432889938354492,
0.4565730094909668,
-0.16911719739437103,
0.8684989809989... |
func (in *RecordSetGroup) TemplateVersionChanged() bool {
// Ignore bool since it will still record changed
label, _ := in.GetTemplateVersionLabel()
return label != controllerutils.ComputeHash(in.Spec)
} | [
-0.45913833379745483,
-0.5772272348403931,
0.43817049264907837,
-0.18811795115470886,
-0.3706781566143036,
0.24516701698303223,
0.6997069716453552,
-0.10819228738546371,
-0.3133023679256439,
0.9065544009208679,
-0.8899625539779663,
0.24324628710746765,
0.00898171216249466,
0.95395505428314... |
func (in *RecordSetGroup) SetStatus(status *metav1alpha1.StatusMeta) {
in.Status.StatusMeta = *status
} | [
-0.3354206383228302,
0.0779544934630394,
0.2716221511363983,
0.6572481393814087,
-0.06681057065725327,
0.376007080078125,
0.015082242898643017,
0.7197428345680237,
-0.49703511595726013,
0.027899274602532387,
-0.48616138100624084,
1.5562398433685303,
0.1779523640871048,
1.036779522895813,
... |
func GetNotification(ctx context.Context, db driver.Database, id string) (*model.Notification, errstack.E) {
var n model.Notification
return &n, DBGetOneFromColl(ctx, &n, id, dbconst.ColNotifications, db)
} | [
-0.058195654302835464,
1.0136845111846924,
0.3191736936569214,
1.1118252277374268,
1.0703186988830566,
-1.099576711654663,
0.8319380283355713,
-0.5868724584579468,
0.2768874168395996,
0.4775051176548004,
-0.9371328353881836,
-0.2977865934371948,
0.20660659670829773,
0.003058046568185091,
... |
func InsertNotification(ctx context.Context, db driver.Database, n *model.Notification) errstack.E {
_, errs := insertHasID(ctx, dbconst.ColNotifications, n, db)
return errs
} | [
-0.45010265707969666,
1.8673982620239258,
0.39253371953964233,
0.4077743887901306,
1.317190408706665,
0.15374530851840973,
0.8864766359329224,
0.0009736327920109034,
-0.24832288920879364,
0.67083740234375,
-1.6595966815948486,
-1.6909884214401245,
-0.5378267765045166,
0.9522119164466858,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.