text stringlengths 11 6.3k | embedding listlengths 768 768 |
|---|---|
func (s *spy) WithoutReading() Gob {
return &spy{
callThroughCondition: s.callThroughCondition,
name: s.name,
shouldExport: s.shouldExport,
shouldSkipReading: true,
}
} | [
0.19733203947544098,
-0.3056470453739166,
0.27895018458366394,
-0.5712451338768005,
-1.6360255479812622,
0.3238186836242676,
0.37837353348731995,
-0.27101776003837585,
0.3909349739551544,
-0.2778190076351166,
0.6150688529014587,
-0.1813429743051529,
-0.9578841924667358,
-0.2003728449344635... |
func RegisterTransformationBuilder(name string, tb TransformationBuilder) {
if transformationBuilders == nil {
transformationBuilders = make(map[string]TransformationBuilder)
}
if _, ok := transformationBuilders[name]; ok {
panic(fmt.Errorf("duplicate transformation %q\n\nThis is a development error and should b... | [
-0.5776479840278625,
0.5538243651390076,
0.5421618819236755,
0.5664884448051453,
0.11902347952127457,
-0.3625743091106415,
-0.488482803106308,
-0.29107606410980225,
0.20508290827274323,
0.3676816523075104,
-1.5054408311843872,
-0.14563296735286713,
-0.5176055431365967,
0.5044000744819641,
... |
func (in *AuthProvider) DeepCopyInto(out *AuthProvider) {
*out = *in
return
} | [
-0.018070662394165993,
0.47254887223243713,
0.4468840956687927,
0.2178727388381958,
-1.0270912647247314,
0.8324315547943115,
-0.24106718599796295,
0.4967704117298126,
-0.014436869882047176,
0.27259716391563416,
-0.9604195356369019,
1.5862793922424316,
-0.15832673013210297,
-0.5083989500999... |
func (in *AuthProvider) DeepCopy() *AuthProvider {
if in == nil {
return nil
}
out := new(AuthProvider)
in.DeepCopyInto(out)
return out
} | [
-0.7974788546562195,
0.6887601613998413,
-0.02113385498523712,
0.8122111558914185,
-0.6650626063346863,
0.3536434471607208,
-0.042213693261146545,
-0.9491997957229614,
0.5085657238960266,
0.11894124001264572,
-0.1388522833585739,
0.43599891662597656,
-0.8904675245285034,
-0.389482319355011... |
func (in *AutoScheduling) DeepCopyInto(out *AutoScheduling) {
*out = *in
if in.ExcludedKeyspaces != nil {
in, out := &in.ExcludedKeyspaces, &out.ExcludedKeyspaces
*out = make([]string, len(*in))
copy(*out, *in)
}
return
} | [
0.10132648050785065,
0.7152049541473389,
0.7091615796089172,
-0.026891278102993965,
-1.8444056510925293,
0.40594956278800964,
-0.523267924785614,
0.7919695377349854,
-0.734379231929779,
0.44483473896980286,
-0.4368151128292084,
1.0990395545959473,
-0.07764096558094025,
-0.3142143785953522,... |
func (in *AutoScheduling) DeepCopy() *AutoScheduling {
if in == nil {
return nil
}
out := new(AutoScheduling)
in.DeepCopyInto(out)
return out
} | [
-0.9334154725074768,
0.6834602952003479,
0.4054875075817108,
0.9299910068511963,
-1.1903445720672607,
-0.03875204175710678,
0.38624709844589233,
0.3386722803115845,
-0.32007598876953125,
0.5883303284645081,
-0.45978009700775146,
-0.30330491065979004,
-0.5948935151100159,
-0.783545315265655... |
func (in *CassandraBackend) DeepCopyInto(out *CassandraBackend) {
*out = *in
if in.ContactPoints != nil {
in, out := &in.ContactPoints, &out.ContactPoints
*out = make([]string, len(*in))
copy(*out, *in)
}
in.Replication.DeepCopyInto(&out.Replication)
out.AuthProvider = in.AuthProvider
return
} | [
0.7695141434669495,
0.33539730310440063,
0.5103901028633118,
0.18992790579795837,
-0.8008331060409546,
0.15381638705730438,
-0.28730154037475586,
0.7868340015411377,
-0.29288023710250854,
0.37121254205703735,
-0.737556517124176,
0.787344753742218,
-0.30236026644706726,
-0.8530122637748718,... |
func (in *CassandraBackend) DeepCopy() *CassandraBackend {
if in == nil {
return nil
}
out := new(CassandraBackend)
in.DeepCopyInto(out)
return out
} | [
0.5731258392333984,
0.47822314500808716,
0.34594833850860596,
0.9834259748458862,
-0.5990753173828125,
-0.19930361211299896,
-0.21943916380405426,
-0.11835812777280807,
0.15163052082061768,
0.38857483863830566,
-0.8417149186134338,
-0.052975792437791824,
-1.00552499294281,
-0.3021096885204... |
func (in *CassandraCluster) DeepCopyInto(out *CassandraCluster) {
*out = *in
out.Service = in.Service
return
} | [
0.7641827464103699,
0.44313058257102966,
0.366627961397171,
-0.3226267397403717,
-1.1187989711761475,
0.6738988757133484,
-0.16096407175064087,
0.8688948750495911,
-0.7602636218070984,
-0.5573408007621765,
-0.292169988155365,
1.3378379344940186,
-0.03283378854393959,
-0.4654099941253662,
... |
func (in *CassandraCluster) DeepCopy() *CassandraCluster {
if in == nil {
return nil
}
out := new(CassandraCluster)
in.DeepCopyInto(out)
return out
} | [
0.47551774978637695,
0.6213926672935486,
0.020330151543021202,
0.6238018870353699,
-0.37086933851242065,
0.3716554641723633,
0.21234636008739471,
0.3694555461406708,
0.13173404335975647,
-0.6497718691825867,
-0.46890801191329956,
0.10205858200788498,
-0.5881089568138123,
-0.399851351976394... |
func (in *CassandraService) DeepCopyInto(out *CassandraService) {
*out = *in
return
} | [
0.5664464831352234,
0.27726128697395325,
0.47664400935173035,
-0.026234649121761322,
-1.4197413921356201,
0.44620293378829956,
-0.2890704274177551,
0.4139311909675598,
-0.6333620548248291,
-0.8045786023139954,
-0.7679218649864197,
1.1918762922286987,
0.0954492911696434,
-0.2559152245521545... |
func (in *CassandraService) DeepCopy() *CassandraService {
if in == nil {
return nil
}
out := new(CassandraService)
in.DeepCopyInto(out)
return out
} | [
0.1575908213853836,
0.2983151376247406,
0.20248636603355408,
0.7852731347084045,
-0.7958796620368958,
-0.0818871408700943,
-0.14154906570911407,
-0.7181326746940613,
0.16305266320705414,
-0.8843117356300354,
-0.3992075026035309,
0.16390250623226166,
-0.8290042877197266,
-0.1822088658809662... |
func (in *DeploymentConfiguration) DeepCopyInto(out *DeploymentConfiguration) {
*out = *in
in.Resources.DeepCopyInto(&out.Resources)
if in.Affinity != nil {
in, out := &in.Affinity, &out.Affinity
*out = new(v1.Affinity)
(*in).DeepCopyInto(*out)
}
return
} | [
0.5466392040252686,
-0.06004352867603302,
0.4490663707256317,
-0.3988533616065979,
-0.830847978591919,
0.3290584087371826,
-0.21881937980651855,
0.8372286558151245,
-1.072964072227478,
0.8068791627883911,
-0.6788854002952576,
0.6072567105293274,
0.5192140340805054,
-0.18037483096122742,
... |
func (in *DeploymentConfiguration) DeepCopy() *DeploymentConfiguration {
if in == nil {
return nil
}
out := new(DeploymentConfiguration)
in.DeepCopyInto(out)
return out
} | [
-0.8816540837287903,
-0.1363547146320343,
0.08687827736139297,
-0.11982113867998123,
-0.7902328372001648,
-0.30601751804351807,
0.1439363807439804,
0.019585605710744858,
0.06507280468940735,
0.7375559210777283,
-0.9538330435752869,
-0.46912112832069397,
0.02691355161368847,
-0.128297463059... |
func (in *Reaper) DeepCopyInto(out *Reaper) {
*out = *in
out.TypeMeta = in.TypeMeta
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
in.Spec.DeepCopyInto(&out.Spec)
in.Status.DeepCopyInto(&out.Status)
return
} | [
0.5548386573791504,
-0.6928536295890808,
0.5527576208114624,
-0.12109944969415665,
-0.31619563698768616,
0.5254036784172058,
0.4177582859992981,
0.07326541095972061,
-1.4129564762115479,
-0.43271082639694214,
-0.6793221831321716,
1.6077884435653687,
-0.015238652937114239,
-0.40531256794929... |
func (in *Reaper) DeepCopy() *Reaper {
if in == nil {
return nil
}
out := new(Reaper)
in.DeepCopyInto(out)
return out
} | [
0.08303369581699371,
-0.3550531566143036,
0.402802437543869,
0.7446115016937256,
-0.1142028197646141,
0.3981400430202484,
0.9193575382232666,
-0.8615490794181824,
-0.4591013193130493,
-0.5345632433891296,
-0.2693812847137451,
1.2162450551986694,
-0.9222047328948975,
-0.8688298463821411,
... |
func (in *Reaper) DeepCopyObject() runtime.Object {
if c := in.DeepCopy(); c != nil {
return c
}
return nil
} | [
0.19704025983810425,
-0.24873396754264832,
0.6669230461120605,
0.3265102207660675,
-0.3588258922100067,
0.5866458415985107,
1.1297194957733154,
-0.34076133370399475,
-0.7066420912742615,
-0.7953914403915405,
-0.2659345269203186,
0.26483502984046936,
-0.15698516368865967,
-0.537146866321563... |
func (in *ReaperCondition) DeepCopyInto(out *ReaperCondition) {
*out = *in
in.LastTransitionTime.DeepCopyInto(&out.LastTransitionTime)
return
} | [
0.8093562722206116,
-0.058596640825271606,
0.3187671899795532,
-0.12070852518081665,
-0.7384096384048462,
0.021765518933534622,
0.7276488542556763,
-0.026361096650362015,
-1.4860422611236572,
0.18046408891677856,
-0.16297456622123718,
1.1292717456817627,
-0.147532120347023,
-0.400360047817... |
func (in *ReaperCondition) DeepCopy() *ReaperCondition {
if in == nil {
return nil
}
out := new(ReaperCondition)
in.DeepCopyInto(out)
return out
} | [
0.10805266350507736,
-0.15666243433952332,
0.09835268557071686,
0.3743000626564026,
-0.1958826184272766,
-0.03180213272571564,
1.2663503885269165,
-0.8489760160446167,
-0.6245481371879578,
0.17073969542980194,
0.0034716406371444464,
0.33930912613868713,
-0.679905354976654,
-0.1535848528146... |
func (in *ReaperList) DeepCopyInto(out *ReaperList) {
*out = *in
out.TypeMeta = in.TypeMeta
in.ListMeta.DeepCopyInto(&out.ListMeta)
if in.Items != nil {
in, out := &in.Items, &out.Items
*out = make([]Reaper, len(*in))
for i := range *in {
(*in)[i].DeepCopyInto(&(*out)[i])
}
}
return
} | [
0.0003933594562113285,
-0.0376460999250412,
0.5047566294670105,
0.27660536766052246,
-0.010246590711176395,
0.20571161806583405,
0.20707690715789795,
0.3928506076335907,
-1.1707969903945923,
0.23872223496437073,
-0.7886599898338318,
0.9406180381774902,
-0.4166002869606018,
-0.3870800137519... |
func (in *ReaperList) DeepCopy() *ReaperList {
if in == nil {
return nil
}
out := new(ReaperList)
in.DeepCopyInto(out)
return out
} | [
-0.47232481837272644,
-0.08285868912935257,
0.08540690690279007,
1.0105913877487183,
0.29761555790901184,
0.2857872247695923,
0.3328057527542114,
-0.3042892813682556,
-0.35362082719802856,
0.2892409861087799,
-0.7208997011184692,
0.7374720573425293,
-0.6456464529037476,
-0.3268932104110718... |
func (in *ReaperList) DeepCopyObject() runtime.Object {
if c := in.DeepCopy(); c != nil {
return c
}
return nil
} | [
-0.2630050778388977,
-0.19849945604801178,
0.5335521101951599,
0.3468761444091797,
-0.07316017895936966,
0.6674413084983826,
0.8705032467842102,
-0.11641978472471237,
-0.6196812391281128,
-0.35253965854644775,
-0.7129349112510681,
0.22929668426513672,
-0.3223121464252472,
-0.29452505707740... |
func (in *ReaperSpec) DeepCopyInto(out *ReaperSpec) {
*out = *in
in.DeploymentConfiguration.DeepCopyInto(&out.DeploymentConfiguration)
in.ServerConfig.DeepCopyInto(&out.ServerConfig)
if in.Clusters != nil {
in, out := &in.Clusters, &out.Clusters
*out = make([]CassandraCluster, len(*in))
copy(*out, *in)
}
re... | [
0.5385771989822388,
0.2516138553619385,
0.4477587342262268,
-0.1990150511264801,
0.042712487280368805,
0.35043346881866455,
0.28158313035964966,
0.23430028557777405,
-1.2964547872543335,
0.027671746909618378,
-0.058654796332120895,
0.9549509286880493,
0.23628012835979462,
-0.56108295917510... |
func (in *ReaperSpec) DeepCopy() *ReaperSpec {
if in == nil {
return nil
}
out := new(ReaperSpec)
in.DeepCopyInto(out)
return out
} | [
0.13288059830665588,
0.10160119831562042,
0.2695889174938202,
-0.07736914604902267,
0.17418718338012695,
0.47476184368133545,
0.5164059996604919,
-0.5159248113632202,
-1.0074290037155151,
-0.028222376480698586,
0.18348060548305511,
0.5116666555404663,
-0.13547992706298828,
-0.5741687417030... |
func (in *ReaperStatus) DeepCopyInto(out *ReaperStatus) {
*out = *in
if in.Conditions != nil {
in, out := &in.Conditions, &out.Conditions
*out = make([]ReaperCondition, len(*in))
for i := range *in {
(*in)[i].DeepCopyInto(&(*out)[i])
}
}
if in.Clusters != nil {
in, out := &in.Clusters, &out.Clusters
... | [
0.2908310294151306,
0.022173073142766953,
0.40731287002563477,
0.08484320342540741,
-0.25456225872039795,
0.3238030970096588,
0.2192729413509369,
0.31467142701148987,
-0.9696117043495178,
-0.17369621992111206,
-0.23602691292762756,
0.7597153782844543,
-0.09301199018955231,
-0.5770512819290... |
func (in *ReaperStatus) DeepCopy() *ReaperStatus {
if in == nil {
return nil
}
out := new(ReaperStatus)
in.DeepCopyInto(out)
return out
} | [
0.09382239729166031,
-0.06065471097826958,
-0.18592078983783722,
0.04510115832090378,
0.17830748856067657,
0.16706041991710663,
0.5499387979507446,
-0.5743656158447266,
-0.5763769149780273,
-0.5931392312049866,
-0.565264880657196,
0.2731218934059143,
-0.4163297712802887,
-0.596956372261047... |
func (in *ReplicationConfig) DeepCopyInto(out *ReplicationConfig) {
*out = *in
if in.SimpleStrategy != nil {
in, out := &in.SimpleStrategy, &out.SimpleStrategy
*out = new(int32)
**out = **in
}
if in.NetworkTopologyStrategy != nil {
in, out := &in.NetworkTopologyStrategy, &out.NetworkTopologyStrategy
*out ... | [
0.3918169140815735,
0.188754603266716,
0.6162878274917603,
-0.5431352853775024,
-1.0656449794769287,
0.2779858112335205,
0.06103479117155075,
1.039396047592163,
-0.9106296300888062,
0.13457287847995758,
-0.8918988704681396,
0.8420125246047974,
-0.16878332197666168,
-0.61690354347229,
0.5... |
func (in *ReplicationConfig) DeepCopy() *ReplicationConfig {
if in == nil {
return nil
}
out := new(ReplicationConfig)
in.DeepCopyInto(out)
return out
} | [
0.3741856515407562,
0.5128414630889893,
0.1738712191581726,
0.34996697306632996,
-1.1531075239181519,
-0.018627529963850975,
-0.09622549265623093,
1.4137617349624634,
-0.35932400822639465,
0.7533368468284607,
-1.0922839641571045,
0.39508241415023804,
-0.20650359988212585,
-0.73357474803924... |
func (in *ServerConfig) DeepCopyInto(out *ServerConfig) {
*out = *in
in.AutoScheduling.DeepCopyInto(&out.AutoScheduling)
if in.CassandraBackend != nil {
in, out := &in.CassandraBackend, &out.CassandraBackend
*out = new(CassandraBackend)
(*in).DeepCopyInto(*out)
}
if in.HangingRepairTimeoutMins != nil {
in,... | [
-0.0003628740378189832,
0.3223538398742676,
0.7892981171607971,
-0.08223459124565125,
-0.8172785639762878,
-0.4065014123916626,
0.519402027130127,
-0.20270462334156036,
-1.0213431119918823,
0.012418542057275772,
-0.8862196803092957,
0.6989665031433105,
-0.677787184715271,
0.566859841346740... |
func (in *ServerConfig) DeepCopy() *ServerConfig {
if in == nil {
return nil
}
out := new(ServerConfig)
in.DeepCopyInto(out)
return out
} | [
-0.07244941592216492,
0.3235492706298828,
0.07705391198396683,
0.8094915151596069,
-0.6494306325912476,
0.04916883632540703,
0.26083365082740784,
0.5040432214736938,
-0.2292192578315735,
0.5953275561332703,
-1.1246243715286255,
0.6076826453208923,
-1.0239945650100708,
0.38460350036621094,
... |
func NewKeeper(storeKey sdk.StoreKey, paramStore params.Subspace, codec *codec.Codec, bankKeeper BankKeeper,
accountKeeper auth.AccountKeeper, supplyKeeper supply.Keeper, cosmosDistKeeper cosmosDist.Keeper) Keeper {
// ensure distribution module accounts are set
if addr := supplyKeeper.GetModuleAddress(UserGrowthPo... | [
0.12055500596761703,
-0.5603474378585815,
0.2049740105867386,
0.4588342308998108,
-0.5264058113098145,
0.7823933959007263,
0.5681228637695312,
0.2637348175048828,
0.1077193021774292,
0.03082217276096344,
0.7701780796051025,
0.14356039464473724,
-0.03326138108968735,
0.8719009160995483,
0... |
func NewAPI(
ds datastore.DataStore,
cmds commandstore.Store,
logger *zap.Logger,
) *API {
a := &API{
applicationStore: datastore.NewApplicationStore(ds),
environmentStore: datastore.NewEnvironmentStore(ds),
deploymentStore: datastore.NewDeploymentStore(ds),
pipedStore: datastore.NewPipedStore(ds),
... | [
0.0019056388409808278,
-0.2526804804801941,
0.08655014634132385,
-0.16125918924808502,
-0.6155394315719604,
-0.36274585127830505,
0.0011556899407878518,
0.5629017353057861,
0.3017241656780243,
-0.7554382681846619,
0.33982619643211365,
-0.36727291345596313,
0.6786353588104248,
0.02027214691... |
func (a *API) Register(server *grpc.Server) {
apiservice.RegisterAPIServiceServer(server, a)
} | [
-2.0827393531799316,
-0.12782154977321625,
0.2239500880241394,
-0.5830636024475098,
0.82136070728302,
-0.01115398108959198,
-0.10225562751293182,
0.1511286050081253,
-0.21061626076698303,
-0.48589521646499634,
-0.8629046082496643,
0.8062701225280762,
-1.2649024724960327,
0.7184004783630371... |
func (a *API) ListApplications(ctx context.Context, req *apiservice.ListApplicationsRequest) (*apiservice.ListApplicationsResponse, error) {
key, err := requireAPIKey(ctx, model.APIKey_READ_ONLY, a.logger)
if err != nil {
return nil, err
}
const limit = 10
orders := []datastore.Order{
{
Field: "Updated... | [
-1.030870795249939,
0.04843677580356598,
0.8929813504219055,
-0.770873486995697,
-0.3020957112312317,
-0.48183566331863403,
-0.212078258395195,
0.07323063164949417,
0.6315754055976868,
0.9692922234535217,
0.05128123238682747,
0.37135669589042664,
0.09524243324995041,
0.6814150214195251,
... |
func requireAPIKey(ctx context.Context, role model.APIKey_Role, logger *zap.Logger) (*model.APIKey, error) {
key, err := rpcauth.ExtractAPIKey(ctx)
if err != nil {
return nil, err
}
switch key.Role {
case model.APIKey_READ_WRITE:
return key, nil
case model.APIKey_READ_ONLY:
if role == model.APIKey_READ_ON... | [
-0.8307639956474304,
-0.4470849335193634,
0.6239992380142212,
0.09801972657442093,
-0.31389710307121277,
-0.5906603336334229,
-0.03757369890809059,
-0.1621735692024231,
0.2187226116657257,
0.7519755959510803,
0.5808356404304504,
-0.19505837559700012,
-1.083081603050232,
0.5537181496620178,... |
func (m *RedeemableItem) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateItemID(formats); err != nil {
res = append(res, err)
}
if err := m.validateItemName(formats); err != nil {
res = append(res, err)
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
re... | [
-0.3353525400161743,
0.6048753261566162,
0.2676789462566376,
0.5019295811653137,
0.43313542008399963,
0.07884704321622849,
-0.43743881583213806,
-0.09786223620176315,
-0.5110317468643188,
0.5908632278442383,
0.2419608235359192,
-0.3461747467517853,
-0.6571289896965027,
0.646894633769989,
... |
func (p *offerPool) AddOffers(offers []*mesos.Offer) error {
p.offerEvents <- offers
return nil
} | [
-0.06418594717979431,
0.6316106915473938,
0.43912479281425476,
0.23433740437030792,
0.2758239805698395,
0.8115854859352112,
0.0051079546101391315,
-0.010446328669786453,
0.28828755021095276,
-0.12606768310070038,
0.4542563259601593,
0.3940950930118561,
-1.3245195150375366,
1.31618320941925... |
func (p *offerPool) GetOffersLength() int {
p.RLock()
length := p.offerList.Len()
p.RUnlock()
return length
} | [
-0.3736802935600281,
1.1254730224609375,
0.45401349663734436,
0.06933044642210007,
-0.23169243335723877,
0.543192982673645,
0.5927772521972656,
0.23749864101409912,
-0.2562216520309448,
0.3487035632133484,
-0.47938868403434753,
1.1489022970199585,
-1.80304753780365,
0.9133139848709106,
0... |
func (p *offerPool) GetFirstOffer() *Offer {
p.RLock()
var offer *Offer
head := p.offerList.Front()
for {
if head == nil {
break
}
innerOffer := head.Value.(*innerOffer)
blog.V(3).Infof("getFirstOffer offer(%s:%s) isValid %t", innerOffer.offerId,
innerOffer.hostname, innerOffer.isValid)
if innerO... | [
-0.18537092208862305,
-0.5948821902275085,
0.9205288290977478,
0.3140906095504761,
-0.08331649005413055,
0.205129936337471,
-0.23703113198280334,
-0.09744585305452347,
-0.05259522795677185,
-0.5029496550559998,
0.5103504657745361,
1.0160000324249268,
-1.6421126127243042,
1.207200288772583,... |
func (p *offerPool) GetNextOffer(o *Offer) *Offer {
p.RLock()
defer p.RUnlock()
blog.V(3).Infof("GetNextOffer id offer(%d | %s:%s)'s next offer", o.Id, o.offerId, o.hostname)
if p.offerList.Len() == 0 {
blog.Infof("GetNextOffer offer(%s:%s) pool don't have offers",
o.offerId, o.hostname)
return nil
}
var... | [
-0.5855818390846252,
-0.3760925531387329,
1.112842321395874,
0.5727114677429199,
-0.860400915145874,
0.16559265553951263,
0.07415167987346649,
0.11187297105789185,
0.3533307909965515,
-0.10029137879610062,
-0.1146453320980072,
0.8468402028083801,
-0.9391188621520996,
0.7371057868003845,
... |
func (p *offerPool) GetAllOffers() []*Offer {
p.RLock()
defer p.RUnlock()
offers := make([]*Offer, 0)
head := p.offerList.Front()
for {
if head == nil {
break
}
innerOffer := head.Value.(*innerOffer)
if innerOffer.isValid {
offer := &Offer{
element: head,
Offer: innerOffer.offer,
... | [
-0.3737936317920685,
-0.20624873042106628,
0.7983269095420837,
1.0083856582641602,
-0.19941572844982147,
0.44729429483413696,
-0.9352001547813416,
0.13490453362464905,
0.2557341158390045,
-0.462213933467865,
-0.026352914050221443,
1.3725491762161255,
-1.921074390411377,
1.2159680128097534,... |
func (p *offerPool) AddLostSlave(hostname string) {
p.slaveLock.Lock()
blog.Infof("slave %s lost", hostname)
p.lostSlaves[hostname] = -1
p.slaveLock.Unlock()
p.Lock()
p.deleteOfferByHostname(hostname)
blog.Infof("after delete lost offers from %s, offers num(%d)", hostname, p.offerList.Len())
p.Unlock()
} | [
-0.6360690593719482,
-0.07846786081790924,
0.8021007776260376,
-0.3802916705608368,
-0.2701815366744995,
0.24770621955394745,
0.3214063346385956,
0.9252972602844238,
0.340819776058197,
0.37935489416122437,
-0.4481353461742401,
1.0326266288757324,
-0.866061270236969,
0.995295524597168,
0.... |
func init() {
pkg.AddScript("OpeningClosing",
The("props",
Called("openers"),
AreEither("open").Or("closed"),
// note: not openable sounds like it cant become open, rather than it cannot be opened (by someone).
AreEither("hinged").Or("hingeless"),
AreEither("locakable").Or("not lockable").Usually("not... | [
-0.3859712481498718,
-0.18007230758666992,
0.68092280626297,
-0.4123416841030121,
0.03632190451025963,
-0.5840429663658142,
1.0435711145401,
0.526014506816864,
-0.11389784514904022,
-0.11272841691970825,
-0.15315963327884674,
0.7312732338905334,
0.14858271181583405,
0.21013541519641876,
... |
func PrepareAttachment(f io.Reader) (io.Reader, error) {
//read f and redurns the message, m as type Message
m, err := mail.ReadMessage(f)
if err != nil {
return nil, err
}
header := m.Header
//find media type
mediaType, params, err := mime.ParseMediaType(header.Get("Content-Type"))
if err != nil {
return... | [
0.18330711126327515,
-0.887265145778656,
0.8880712985992432,
0.2575223445892334,
-0.9128790497779846,
-0.23310960829257965,
-0.2234261929988861,
-0.26183179020881653,
0.01950692944228649,
0.032135069370269775,
0.7764633297920227,
0.12377039343118668,
-0.5261104106903076,
0.3164558410644531... |
func ExtractZipFile(r io.Reader) (io.ReadCloser, error) {
//create a buffer and copy r to it
buf := new(bytes.Buffer)
_, err := io.Copy(buf, r)
if err != nil {
return nil, err
}
//read bytes
br := bytes.NewReader(buf.Bytes())
zip, err := zip.NewReader(br, br.Size())
if err != nil {
return nil, err
}
/... | [
0.4393979609012604,
-0.7462867498397827,
0.7978276014328003,
-0.3877967894077301,
-0.8813858032226562,
-0.07123786211013794,
0.8739107251167297,
0.35731711983680725,
0.2755429148674011,
0.41559672355651855,
0.28569093346595764,
-0.5758945345878601,
-0.6052342653274536,
0.39062148332595825,... |
func (d *DmarcARRContext) Open() (err error) {
d.Txn, err = db.DB.Begin()
return
} | [
-0.10807638615369797,
0.4567534923553467,
0.2742656469345093,
0.10682333260774612,
-0.07716058939695358,
-0.028986956924200058,
0.8357654213905334,
1.0679407119750977,
-0.3583846390247345,
-0.48932507634162903,
0.5018080472946167,
-0.19376520812511444,
-0.19948457181453705,
-0.356451213359... |
func (d *DmarcARRContext) Close() (err error) {
if d.Stmt != nil {
d.Stmt.Close()
}
if d.Txn != nil {
err = d.Txn.Commit()
}
return
} | [
0.037033043801784515,
-0.22805029153823853,
0.6664573550224304,
-0.1617797464132309,
-0.4048819839954376,
-0.4134996235370636,
0.1933567225933075,
-0.35250306129455566,
-0.7056293487548828,
0.10950395464897156,
1.2633187770843506,
-0.22332563996315002,
-0.7479662299156189,
0.26292723417282... |
func (d *DmarcARRContext) GetStmtLockIfEmpty() *sql.Stmt {
if d.Stmt != nil {
return d.Stmt
}
d.Lock.Lock()
if d.Stmt != nil {
d.Lock.Unlock()
return d.Stmt
}
return nil
} | [
0.24436624348163605,
0.4393191635608673,
0.5591381192207336,
0.14019514620304108,
0.12774866819381714,
-0.7777470946311951,
-0.22547654807567596,
-1.250758409500122,
0.03594006597995758,
0.20223119854927063,
0.4722079038619995,
0.2900361120700836,
-0.825094997882843,
-0.6018652319908142,
... |
func ResolveAddrNames(addr string) (addrNames AddrNames, err error) {
addrNames = AddrNames{
Addr: addr,
}
names, errLookupAddr := net.LookupAddr(addr)
if len(names) > 0 {
addrNames.Names = names
} else if errLookupAddr != nil {
err = errLookupAddr
}
return
} | [
-1.0256346464157104,
0.896133542060852,
0.6045351028442383,
-0.8070195317268372,
-0.3198617100715637,
-0.7348898649215698,
-0.3036899268627167,
-0.020791461691260338,
1.0244543552398682,
0.47925400733947754,
-0.37918350100517273,
-0.4656713008880615,
-0.1218085065484047,
0.4370196461677551... |
func ParseDmarcReportBulk(messageID string, firstRecord int) {
//prepare aws lambda session for S3 operations
prepLambdaSession()
input := ARBulkInput{}
input.Params.MessageID = messageID
input.Params.RecordStart = firstRecord
buf, _ := json.Marshal(input)
// spin this off as separate lambda:
invokeInput := ... | [
0.45265480875968933,
-0.21633996069431305,
0.7168809175491333,
-0.4483734369277954,
0.9850893020629883,
-0.5383196473121643,
0.1851007491350174,
0.2440032958984375,
-0.21812079846858978,
-0.6196915507316589,
-0.17732244729995728,
0.6493579745292664,
-0.4565368592739105,
0.3510431945323944,... |
func prepLambdaSession() AWSSettings {
// new AWS session for S3 operations:
db.AwsConfig.Region = aws.String(db.LambdaRegion)
db.Sess = session.New(&db.AwsConfig)
db.SvcLambda = lambda.New(db.Sess)
db.SessionReady = true
return AWSSettings{
Region: db.AwsConfig.Region,
Session: db.Sess,
SvcLam... | [
-0.005562804639339447,
-0.1371087282896042,
0.7489743828773499,
-1.1961534023284912,
-0.354660302400589,
0.27189621329307556,
-0.06051131710410118,
-0.7921265959739685,
1.3401820659637451,
0.1267797350883484,
-0.4096647799015045,
0.5254257917404175,
1.1145118474960327,
-0.33201098442077637... |
func ParseDmarcARRParallel(lookupPoolSize, dbReadPoolSize int, fb lib.AggregateReport) (chan *lib.AggregateReportRecord, *sync.WaitGroup) {
var i int
var inputChan = make(chan *lib.AggregateReportRecord, 2048)
var initialChan = make(chan *lib.DmarcReportingFull, 2048)
var lookupOutChan = make(chan *lib.DmarcRepor... | [
0.14868640899658203,
0.06181275099515915,
0.9337790012359619,
-1.0341218709945679,
-0.22905392944812775,
-0.6245309114456177,
0.5477662682533264,
-0.37279966473579407,
-0.05999439209699631,
-0.03277169167995453,
0.2807973325252533,
0.16264814138412476,
-0.6143531203269958,
-0.0970911532640... |
func SenderbaseIPData(sip string) (sbGeo lib.SBGeo, err error) {
// convert from string input to net.IP:
ip := net.ParseIP(sip).To4()
if ip == nil {
log.Println("ip6 address")
return
}
// reverse the byte-order of IP:
srevip := byteReverseIP4(ip)
// senderbase ip-specific domain to query:
domain := fmt.S... | [
-0.06133376434445381,
-0.003086065873503685,
0.9335575103759766,
-0.6869416832923889,
-1.0596113204956055,
-0.46472081542015076,
0.1755426675081253,
0.1146046444773674,
-0.1717115044593811,
0.7290769815444946,
-0.08782514929771423,
-0.4105566740036011,
-0.3668484687805176,
-0.6612061858177... |
func byteReverseIP4(ip net.IP) (revip revIP4) {
for j := 0; j < len(ip); j++ {
revip.Byte[len(ip)-j-1] = ip[j]
revip.String = fmt.Sprintf("%d.%s", ip[j], revip.String)
}
revip.String = strings.TrimRight(revip.String, ".")
return
} | [
-0.4219420552253723,
-0.1713665872812271,
0.7352965474128723,
-0.8053165078163147,
-0.033532045781612396,
-0.29030975699424744,
-0.39832383394241333,
0.3490501642227173,
0.2940608561038971,
0.015766944736242294,
-0.2946765720844269,
-0.23982174694538116,
-0.8094940781593323,
-1.38475084304... |
func (r propertyTypeRegistry) Register(module, key string, zeroValue data.Clonable) {
if _, found := r[module]; !found {
r[module] = map[string]data.Clonable{}
}
r[module][key] = zeroValue
} | [
-0.7362818121910095,
0.23027528822422028,
0.23149187862873077,
-0.23950664699077606,
0.7374481558799744,
0.16714510321617126,
-0.6950732469558716,
0.009883171878755093,
-1.0779662132263184,
0.039098504930734634,
-0.4609428346157074,
0.4392416775226593,
-0.6568066477775574,
0.43213352560997... |
func (r propertyTypeRegistry) Lookup(module, key string) bool {
_, found := r[module][key]
return found
} | [
-0.7098649740219116,
0.04818588122725487,
0.426132470369339,
-0.7134321331977844,
0.06428362429141998,
0.4890451431274414,
-0.5539265871047974,
0.10829116404056549,
-0.47438281774520874,
1.4781328439712524,
0.22506491839885712,
-0.07265657931566238,
-0.8538460731506348,
-0.2163064032793045... |
func (r propertyTypeRegistry) ZeroValue(module, key string) data.Clonable {
if zeroValue, found := r[module][key]; found {
zv, err := zeroValue.Clone()
if err != nil {
panic(err)
}
return zv
}
panic(fmt.Sprintf("Missing match for key '%s' in module '%s' and go type! Please use PropertyTypeRegistry.Regist... | [
-0.11437511444091797,
0.015023546293377876,
0.30533328652381897,
0.6394296288490295,
0.5906626582145691,
0.1847466081380844,
-0.5195362567901611,
0.020371856167912483,
-0.3493324816226959,
0.7910621762275696,
1.2258327007293701,
1.305751919746399,
-1.1985496282577515,
0.4892500042915344,
... |
func sysLoad(args []ast.Expr) (ast.Expr, error) {
if len(args) != 1 {
return nil, &Error{Message: fmt.Sprintf("required 1, but got %d", len(args))}
}
var s ast.StringExpr
var ok bool
if s, ok = args[0].(ast.StringExpr); !ok {
return nil, &Error{Message: fmt.Sprintf("expected string, but got %s", ast.TypeStrin... | [
-0.1955406814813614,
-0.5717841982841492,
0.9384072422981262,
-0.7133123874664307,
-0.6129493117332458,
-0.40979447960853577,
0.0364781878888607,
0.005234673619270325,
0.2527732253074646,
0.354952871799469,
0.03393510356545448,
0.5512816309928894,
-0.947753369808197,
0.15308496356010437,
... |
func (*GetThumbUpPostListRequest) Descriptor() ([]byte, []int) {
return file_proto_menger_menger_proto_rawDescGZIP(), []int{1}
} | [
-1.609374761581421,
0.8070176839828491,
0.6562084555625916,
0.08351430296897888,
0.16035746037960052,
-0.4017232358455658,
-0.005129153374582529,
0.8111039400100708,
-0.05078345909714699,
0.06357530504465103,
-1.4938100576400757,
0.04058224707841873,
0.19299845397472382,
1.1170966625213623... |
func (*GetThumbUpPostListResponse) Descriptor() ([]byte, []int) {
return file_proto_menger_menger_proto_rawDescGZIP(), []int{2}
} | [
-0.8712480664253235,
0.8007920384407043,
0.18173012137413025,
-0.13469775021076202,
0.49173855781555176,
-0.7970162034034729,
0.4636888802051544,
0.27317190170288086,
0.16689655184745789,
0.36801019310951233,
-2.184159278869629,
-0.7685477137565613,
-0.35310783982276917,
0.5046954154968262... |
func (*GetFavoritePostListRequest) Descriptor() ([]byte, []int) {
return file_proto_menger_menger_proto_rawDescGZIP(), []int{3}
} | [
-0.2998686730861664,
1.3644218444824219,
0.5745976567268372,
0.6710783243179321,
0.08364055305719376,
-0.1570000797510147,
-0.4008770287036896,
0.32319995760917664,
-0.6392681002616882,
-0.0037553238216787577,
-1.5951484441757202,
-0.1980602890253067,
-0.5427412390708923,
0.737916111946106... |
func (*GetFavoritePostListResponse) Descriptor() ([]byte, []int) {
return file_proto_menger_menger_proto_rawDescGZIP(), []int{4}
} | [
0.4086867570877075,
1.3484870195388794,
0.12455528229475021,
0.35395368933677673,
0.35481753945350647,
-0.790725827217102,
0.38127973675727844,
0.026528511196374893,
-0.2630842924118042,
0.34053879976272583,
-2.270789861679077,
-0.9705052971839905,
-1.0671955347061157,
0.016835393384099007... |
func (*RegisterRequest) Descriptor() ([]byte, []int) {
return file_proto_menger_menger_proto_rawDescGZIP(), []int{5}
} | [
-1.0249965190887451,
0.6150622367858887,
0.45271679759025574,
0.34458279609680176,
0.19957971572875977,
-0.3538396656513214,
-0.08085397630929947,
0.45574402809143066,
-0.5624709129333496,
-0.531589686870575,
0.08737015724182129,
0.5364279747009277,
-0.1862218976020813,
1.1870853900909424,... |
func (*RegisterResponse) Descriptor() ([]byte, []int) {
return file_proto_menger_menger_proto_rawDescGZIP(), []int{6}
} | [
-0.13745176792144775,
0.5538845062255859,
0.22262321412563324,
0.4736897051334381,
0.6980753540992737,
-0.8724302053451538,
0.6013599634170532,
0.3234722912311554,
-0.18338721990585327,
-0.4547053575515747,
-0.7384836673736572,
-0.4507300853729248,
-0.926954448223114,
0.36820271611213684,
... |
func (*LoginRequest) Descriptor() ([]byte, []int) {
return file_proto_menger_menger_proto_rawDescGZIP(), []int{7}
} | [
-1.1159579753875732,
0.07568079978227615,
0.38518568873405457,
0.1415119171142578,
-0.6417098045349121,
-0.09044255316257477,
-0.47879093885421753,
0.21284250915050507,
-0.13629817962646484,
-0.40653374791145325,
-0.19909599423408508,
0.5992348790168762,
-0.5894466042518616,
0.585788726806... |
func (*LoginResponse) Descriptor() ([]byte, []int) {
return file_proto_menger_menger_proto_rawDescGZIP(), []int{8}
} | [
-0.3260321021080017,
-0.2820199429988861,
-0.08843502402305603,
-0.28491470217704773,
-0.29128298163414,
-0.5245667099952698,
-0.028347058221697807,
0.046442773193120956,
0.25087398290634155,
-0.02994219958782196,
-0.8728183507919312,
-0.26613226532936096,
-1.4134621620178223,
-0.483610510... |
func (*LogoutRequest) Descriptor() ([]byte, []int) {
return file_proto_menger_menger_proto_rawDescGZIP(), []int{9}
} | [
-1.026363492012024,
0.06396305561065674,
0.25544047355651855,
-0.29834654927253723,
-0.4029006063938141,
-0.2964242100715637,
-0.17314039170742035,
0.19989262521266937,
-0.14788781106472015,
-0.0876867026090622,
0.08139003813266754,
0.6509198546409607,
-0.29132482409477234,
0.2372203320264... |
func (*LogoutResponse) Descriptor() ([]byte, []int) {
return file_proto_menger_menger_proto_rawDescGZIP(), []int{10}
} | [
-0.3611800968647003,
-0.34655115008354187,
-0.12742888927459717,
-0.758863091468811,
-0.2694565951824188,
-0.6561978459358215,
0.22588498890399933,
0.05774768814444542,
0.43041738867759705,
-0.23940177261829376,
-0.6434376835823059,
-0.19847600162029266,
-1.1105207204818726,
-0.99296003580... |
func (*GetMengerRequest) Descriptor() ([]byte, []int) {
return file_proto_menger_menger_proto_rawDescGZIP(), []int{11}
} | [
-0.9266632795333862,
-0.11122135072946548,
0.5041394233703613,
0.2743752598762512,
0.43068230152130127,
-0.3950175642967224,
-0.16919158399105072,
0.4558067321777344,
-0.7471073269844055,
-0.7718214392662048,
-0.18452434241771698,
1.317046046257019,
-0.49818897247314453,
1.8246383666992188... |
func (*GetMengerResponse) Descriptor() ([]byte, []int) {
return file_proto_menger_menger_proto_rawDescGZIP(), []int{12}
} | [
-0.39168497920036316,
-0.3226098418235779,
0.01356743834912777,
0.06372173875570297,
0.5141899585723877,
-0.8603639006614685,
0.15956294536590576,
0.24264009296894073,
-0.5787946581840515,
-0.48712098598480225,
-1.1562868356704712,
0.17231714725494385,
-1.2803277969360352,
0.98752367496490... |
func (*GetMengerListRequest) Descriptor() ([]byte, []int) {
return file_proto_menger_menger_proto_rawDescGZIP(), []int{13}
} | [
-1.2492669820785522,
-0.46876198053359985,
0.42561885714530945,
0.3175119161605835,
0.37378597259521484,
-0.9778603911399841,
-0.5989766716957092,
0.873828649520874,
-0.1771649718284607,
-0.616728663444519,
-0.9785171151161194,
0.9870042204856873,
-0.481546014547348,
1.9300854206085205,
... |
func (*GetMengerListResponse) Descriptor() ([]byte, []int) {
return file_proto_menger_menger_proto_rawDescGZIP(), []int{14}
} | [
-0.5021777153015137,
-0.6215366721153259,
-0.0599953718483448,
0.1836438924074173,
0.5584873557090759,
-1.2153953313827515,
-0.2841469943523407,
0.6969274878501892,
-0.02805071510374546,
-0.14231613278388977,
-1.9674882888793945,
-0.06755737215280533,
-0.9029693603515625,
1.152593612670898... |
func (*MengerInfo) Descriptor() ([]byte, []int) {
return file_proto_menger_menger_proto_rawDescGZIP(), []int{15}
} | [
-0.630322277545929,
-0.3033643066883087,
0.1667604297399521,
-0.06919261813163757,
-0.584557831287384,
0.4455590844154358,
-0.07206127792596817,
0.10507088899612427,
-1.1029304265975952,
-0.5814387202262878,
-1.12709641456604,
-0.1416306346654892,
-0.5651022791862488,
0.8618645071983337,
... |
func NewSafeUUID() SafeUUID {
return SafeUUID(uuid.NewV4().String())
} | [
-0.07449434697628021,
-0.5781939029693604,
0.038889724761247635,
-0.567720890045166,
-0.9809324741363525,
-0.2706621289253235,
-0.42076921463012695,
0.6549043655395508,
-0.21891409158706665,
-0.0020439105574041605,
-0.3840326964855194,
0.1507589966058731,
-0.34174296259880066,
-0.575960695... |
func (raw SafeUUID) GetValidated() (SafeUUID, error) {
properUUID, err := uuid.FromString(string(raw))
if err != nil {
return "", common.NewValidationError("", common.BadUUIDFormatCode, "Double-check the ID you're trying to reference, because this one doesn't look right. It should be in the format of a UUID.")
}
... | [
0.3494040369987488,
-0.5892482399940491,
0.6700833439826965,
-0.0401245579123497,
-0.16933225095272064,
-0.1099218875169754,
0.15726906061172485,
-0.048166774213314056,
0.21877731382846832,
-0.4318600296974182,
0.3789336085319519,
1.319027066230774,
-0.23065681755542755,
-0.736922502517700... |
func NewBasePolicy(name string) *policyv1beta1.PodSecurityPolicy {
// This PodSecurityPolicy is equivalent to a "restricted" pod security standard,
// according to: https://kubernetes.io/docs/reference/access-authn-authz/psp-to-pod-security-standards/
return &policyv1beta1.PodSecurityPolicy{
TypeMeta: metav1.TypeM... | [
0.002888072980567813,
-1.2652126550674438,
0.5682826638221741,
0.09050092846155167,
0.10060480982065201,
0.7358218431472778,
-0.41652074456214905,
-0.4095692038536072,
0.4232417345046997,
0.4186435639858246,
-0.6218092441558838,
0.5467549562454224,
-0.559156596660614,
-0.2270641326904297,
... |
func NewAvx512(a512srv *Avx512Server) hash.Hash {
uid := atomic.AddUint64(&uidCounter, 1)
return &Avx512Digest{uid: uid, a512srv: a512srv}
} | [
0.17948825657367706,
-0.8669233918190002,
0.20432168245315552,
-0.30188828706741333,
-2.28887939453125,
-0.3433944582939148,
-0.9130880236625671,
-0.400873064994812,
1.4257334470748901,
0.10028489679098129,
-0.13446037471294403,
0.8705031275749207,
-0.5353499054908752,
-0.11455865204334259... |
func (d *Avx512Digest) Size() int { return Size } | [
0.2337726652622223,
0.9369937777519226,
0.10298840701580048,
-0.9267687201499939,
-1.1837739944458008,
0.06586183607578278,
0.8323938250541687,
-0.47168415784835815,
1.3088583946228027,
-0.6689709424972534,
0.12399434298276901,
0.5289878249168396,
-0.47571468353271484,
-0.3694459795951843,... |
func (d Avx512Digest) BlockSize() int { return BlockSize } | [
0.410900741815567,
1.2183706760406494,
0.32546642422676086,
0.0903766080737114,
-1.046509027481079,
-0.271968811750412,
0.9535205364227295,
-0.41504037380218506,
0.7310311794281006,
-0.2660064697265625,
0.13541178405284882,
0.5707898736000061,
-0.7972885966300964,
0.18453702330589294,
0.... |
func (d *Avx512Digest) Reset() {
d.a512srv.blocksCh <- blockInput{uid: d.uid, reset: true}
d.nx = 0
d.len = 0
d.final = false
} | [
-0.04755561798810959,
0.5153567790985107,
0.13400639593601227,
-0.3115723431110382,
-0.6207179427146912,
-0.03270114213228226,
0.833452582359314,
-0.9757911562919617,
0.2796448767185211,
0.00003992742131231353,
-0.21652266383171082,
1.7102166414260864,
-0.23391395807266235,
0.0055085322819... |
func (d *Avx512Digest) Sum(in []byte) (result []byte) {
if d.final {
return append(in, d.result[:]...)
}
trail := make([]byte, 0, 128)
trail = append(trail, d.x[:d.nx]...)
len := d.len
// Padding. Add a 1 bit and 0 bits until 56 bytes mod 64.
var tmp [64]byte
tmp[0] = 0x80
if len%64 < 56 {
trail = appe... | [
-0.7659229636192322,
0.4228135645389557,
0.7782492637634277,
0.06001739948987961,
-1.2088791131973267,
-0.6566954255104065,
0.8361935615539551,
-0.9396210312843323,
1.170727014541626,
0.6805706024169922,
-0.23283350467681885,
1.2391489744186401,
-0.50932377576828,
0.33494630455970764,
0.... |
func blockAvx512(digests *[512]byte, input [16][]byte, mask []uint64) [16][Size]byte {
scratch := [512]byte{}
sha256X16Avx512(digests, &scratch, &table, mask, input)
output := [16][Size]byte{}
for i := 0; i < 16; i++ {
output[i] = getDigest(i, digests[:])
}
return output
} | [
0.3805558681488037,
0.09006872773170471,
0.4789353013038635,
0.32955366373062134,
-1.326672911643982,
-0.7141148447990417,
-0.810433030128479,
-1.0322636365890503,
0.35234335064888,
0.5545755624771118,
0.20016348361968994,
0.5471689105033875,
-0.17394019663333893,
0.08782042562961578,
1.... |
func NewAvx512Server() *Avx512Server {
a512srv := &Avx512Server{}
a512srv.digests = make(map[uint64][Size]byte)
a512srv.blocksCh = make(chan blockInput)
// Start a single thread for reading from the input channel
go a512srv.Process()
return a512srv
} | [
-0.2764245569705963,
-1.335074543952942,
0.29487302899360657,
-0.5247974395751953,
-1.285605549812317,
-0.27846819162368774,
-0.5456746816635132,
-0.5306851267814636,
1.5338995456695557,
-0.5686082243919373,
0.3286978006362915,
1.4514998197555542,
-0.7137930989265442,
-0.17751383781433105,... |
func (a512srv *Avx512Server) Process() {
for {
select {
case block := <-a512srv.blocksCh:
if block.reset {
a512srv.reset(block.uid)
continue
}
index := block.uid & 0xf
// fmt.Println("Adding message:", block.uid, index)
if a512srv.lanes[index].block != nil { // If slot is already filled, pr... | [
0.19452854990959167,
-0.7675561904907227,
0.9138566851615906,
-0.5556139945983887,
-0.8171232342720032,
-0.28333011269569397,
0.6101071834564209,
-1.0224077701568604,
0.8838809132575989,
0.05921503156423569,
0.7671826481819153,
0.6572020053863525,
-0.21370567381381989,
1.3171136379241943,
... |
func (a512srv *Avx512Server) reset(uid uint64) {
// Check if there is a message still waiting to be processed (and remove if so)
for i, lane := range a512srv.lanes {
if lane.uid == uid {
if lane.block != nil {
a512srv.lanes[i] = Avx512LaneInfo{} // clear message
a512srv.totalIn--
}
}
}
// Delete... | [
0.26188957691192627,
-0.4143446087837219,
0.4871571660041809,
-0.9751218557357788,
-0.7401131391525269,
-0.518781304359436,
0.4059770405292511,
-0.46249687671661377,
0.9076110124588013,
0.5841083526611328,
0.3238362669944763,
1.3969820737838745,
-0.16231581568717957,
0.3399960696697235,
... |
func (a512srv *Avx512Server) blocks() {
inputs := [16][]byte{}
for i := range inputs {
inputs[i] = a512srv.lanes[i].block
}
mask := expandMask(genMask(inputs))
outputs := blockAvx512(a512srv.getDigests(), inputs, mask)
a512srv.totalIn = 0
for i := 0; i < len(outputs); i++ {
uid, outputCh := a512srv.lanes[... | [
-0.22205868363380432,
-0.5924041271209717,
0.6307823061943054,
-0.2636883854866028,
-0.6196030378341675,
-0.47661086916923523,
0.6972548961639404,
-0.7678592801094055,
0.9044369459152222,
-0.06647853553295135,
0.48221278190612793,
0.45467066764831543,
-0.3945063054561615,
0.336564600467681... |
func (a512srv *Avx512Server) Sum(uid uint64, p []byte) [32]byte {
sumCh := make(chan [32]byte)
a512srv.blocksCh <- blockInput{uid: uid, msg: p, final: true, sumCh: sumCh}
return <-sumCh
} | [
-0.2508561909198761,
0.1905268281698227,
0.511188268661499,
0.05577705800533295,
-0.8143233060836792,
0.6009707450866699,
0.6145244240760803,
-1.1318347454071045,
0.7421633005142212,
0.07011746615171432,
-0.47744646668434143,
1.8848925828933716,
-1.3303754329681396,
0.2610453963279724,
0... |
func MustMakeKey(namespace string, name string) Key {
contract.Requiref(!strings.Contains(namespace, ":"), "namespace", "may not contain a colon")
return Key{namespace: namespace, name: name}
} | [
-0.5355545282363892,
0.22687289118766785,
0.4045621156692505,
-0.029747534543275833,
-0.8385221362113953,
1.098162055015564,
-1.9627090692520142,
-0.2439746856689453,
0.5197922587394714,
1.1907166242599487,
-0.22917136549949646,
0.21689292788505554,
0.05376191809773445,
-0.1009055525064468... |
func InitRSAKeys() {
signBytes, err := ioutil.ReadFile(privKeyPath)
if err != nil {
log.Fatalf("[initKeys]: %s\n", err)
}
signKey, err = jwt.ParseRSAPrivateKeyFromPEM(signBytes)
if err != nil {
log.Fatalf("[initKeys]: %s\n", err)
}
verifyBytes, err := ioutil.ReadFile(pubKeyPath)
if err != nil {
log.Fat... | [
0.05582474544644356,
-0.47088223695755005,
0.7073546648025513,
0.5033607482910156,
-0.10303424298763275,
-0.11141074448823929,
-0.21627357602119446,
0.3471589982509613,
-0.6923195123672485,
0.5552430748939514,
-0.8404902815818787,
0.36785051226615906,
-0.37864768505096436,
0.56312537193298... |
func GenerateJWT(name, role string) (string, error) {
// Create the Claims
claims := AppClaims{
UserName: name,
Role: role,
StandardClaims: jwt.StandardClaims{
ExpiresAt: time.Now().Add(time.Minute * 20).Unix(),
Issuer: "admin",
},
}
token := jwt.NewWithClaims(jwt.SigningMethodRS256, claims)
s... | [
0.3044089078903198,
0.06127016618847847,
0.5944502353668213,
-0.19661642611026764,
-1.106138825416565,
-0.17111629247665405,
-0.9311133027076721,
-0.35165250301361084,
-0.0053289588540792465,
0.32593828439712524,
-0.32049015164375305,
0.006659326143562794,
0.13852207362651825,
0.0907966271... |
func (m *MeshConfig) GetAuthPolicy() MeshConfig_AuthPolicy {
if m != nil {
return m.AuthPolicy
}
return MeshConfig_NONE
} | [
0.5795432329177856,
0.2690621614456177,
0.3251698613166809,
0.6408900022506714,
0.19211183488368988,
0.6740882992744446,
1.0361510515213013,
-0.569390594959259,
0.47406435012817383,
-0.5301003456115723,
-0.13097500801086426,
0.6843237280845642,
-0.29878196120262146,
0.342979371547699,
1.... |
func (m *MeshConfig) GetRdsRefreshDelay() *types.Duration {
if m != nil {
return m.RdsRefreshDelay
}
return nil
} | [
0.659155547618866,
0.7990718483924866,
0.41242438554763794,
-0.37553635239601135,
0.03865160420536995,
0.2873937785625458,
-0.192605122923851,
-0.7847664952278137,
0.25808534026145935,
-0.982365608215332,
-0.8063907623291016,
0.33523502945899963,
-0.29165494441986084,
0.6485416293144226,
... |
func WithDeviceSPI(f func(DeviceSPI)) func(sunspec.Device) {
return func(d sunspec.Device) {
if ds, ok := d.(DeviceSPI); ok {
f(ds)
}
}
} | [
-0.4848553538322449,
0.47094807028770447,
0.13248997926712036,
0.013550051487982273,
-0.7298668026924133,
-0.18862032890319824,
0.36822181940078735,
-0.9947292804718018,
0.35374000668525696,
0.23770804703235626,
0.22539979219436646,
-0.26126813888549805,
1.935616135597229,
-0.0226278435438... |
func WithModelSPI(f func(ModelSPI)) func(sunspec.Model) {
return func(m sunspec.Model) {
if ms, ok := m.(ModelSPI); ok {
f(ms)
}
}
} | [
0.005482994019985199,
-0.19493259489536285,
0.20057730376720428,
0.5256478786468506,
-0.8001625537872314,
0.3174183666706085,
-0.4314844012260437,
-0.4227764308452606,
0.04969066008925438,
0.47684431076049805,
-0.7615421414375305,
-0.8972286581993103,
1.052443027496338,
0.1710982322692871,... |
func WithBlockSPI(f func(BlockSPI)) func(sunspec.Block) {
return func(b sunspec.Block) {
if bs, ok := b.(BlockSPI); ok {
f(bs)
}
}
} | [
1.0794250965118408,
0.017609337344765663,
0.37811344861984253,
1.333778977394104,
-1.1245805025100708,
-0.08975660800933838,
-0.2509840428829193,
-0.7650060057640076,
-0.06994641572237015,
0.6053697466850281,
-0.1492828130722046,
-0.4014654755592346,
0.47348809242248535,
-0.105450302362442... |
func WithPointSPI(f func(PointSPI)) func(sunspec.Point) {
return func(p sunspec.Point) {
if ps, ok := p.(PointSPI); ok {
f(ps)
}
}
} | [
0.06269391626119614,
-0.4629800617694855,
0.14386345446109772,
0.687786340713501,
-0.5759226679801941,
0.0905214175581932,
-0.3827759623527527,
-0.22282978892326355,
0.2561999559402466,
0.8939181566238403,
0.2782142758369446,
-0.901702344417572,
1.2889275550842285,
-0.31705793738365173,
... |
func (subChoreography *SubChoreography) ParseTree(definitions *Definitions) {
subChoreography.ChoreographyActivity.ParseTree(definitions)
for i := 0; i < len(subChoreography.AdHocSubProcess); i++ {
subChoreography.AdHocSubProcess[i].ParseTree(definitions)
}
for i := 0; i < len(subChoreography.BoundaryEvent); i+... | [
1.0182061195373535,
0.33733049035072327,
0.8821947574615479,
-0.26631247997283936,
-0.06378442794084549,
0.1927803009748459,
0.5591105818748474,
-0.5567089915275574,
-0.1597219556570053,
-0.04506424814462662,
-0.9034677147865295,
0.9752019643783569,
0.348018079996109,
0.8644556999206543,
... |
func getWebProjectVolumes(cr *wp.WebProject) []corev1.Volume {
volumes := []corev1.Volume{
{
Name: "webroot",
VolumeSource: corev1.VolumeSource{
EmptyDir: &corev1.EmptyDirVolumeSource{},
},
},
{
Name: "files-storage",
VolumeSource: corev1.VolumeSource{
PersistentVolumeClaim: &corev1.Persi... | [
0.49169379472732544,
-0.3642164170742035,
0.6943212151527405,
0.2632961571216583,
0.5174048542976379,
0.0958373099565506,
-0.07776685059070587,
-0.3090260922908783,
-0.23030883073806763,
-0.11379848420619965,
-0.07263025641441345,
0.14431491494178772,
-0.31260794401168823,
0.76548784971237... |
func getWebProjectVolumeMounts(cr *wp.WebProject) []corev1.VolumeMount {
volumeMounts := []corev1.VolumeMount{
{
Name: "webroot",
MountPath: "/var/www",
},
{
Name: "files-storage",
MountPath: cr.Spec.FileStorageMountPath,
},
}
if cr.Spec.WebContainer.CronJob.Enabled {
volumeMounts = ... | [
0.9721944332122803,
-0.6122282147407532,
0.5168812274932861,
1.1593326330184937,
0.7012831568717957,
-0.0025311694480478764,
-0.31242719292640686,
-0.6836036443710327,
0.1845749318599701,
0.19019585847854614,
-0.0010041858768090606,
0.9768996834754944,
-0.20316098630428314,
1.3178009986877... |
func getRedisVolumeMounts(cr *wp.WebProject) []corev1.VolumeMount {
volumeMounts := []corev1.VolumeMount{
{
Name: "redis-conf",
MountPath: "/opt/redis/redis.conf",
SubPath: "redis.conf",
},
{
Name: "log-dir",
MountPath: "/var/log/webproject",
},
}
return volumeMounts
} | [
0.07215853035449982,
0.057519394904375076,
0.46645286679267883,
0.6503428220748901,
0.6128063797950745,
-0.21935275197029114,
-0.9259611368179321,
-0.6292728185653687,
0.5557569265365601,
0.42158547043800354,
-0.5833741426467896,
0.9489315748214722,
0.18089152872562408,
0.6958061456680298,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.