text stringlengths 11 6.3k | embedding listlengths 768 768 |
|---|---|
func ucFirst(s string) string {
if s == "" {
return ""
}
r, n := utf8.DecodeRuneInString(s)
return string(unicode.ToUpper(r)) + s[n:]
} | [
0.34206128120422363,
0.3715249001979828,
0.3742793798446655,
-0.5499789118766785,
-0.5506874918937683,
-0.3019196689128876,
0.12809334695339203,
0.6466416120529175,
0.513508141040802,
0.3542470633983612,
-0.10859356820583344,
0.5849601626396179,
0.30872461199760437,
-0.8575222492218018,
... |
func readDict(path string, wordMaxLen int) ([]string) {
file, err := os.Open(path)
if err != nil {
return nil
}
defer file.Close()
var words []string
scanner := bufio.NewScanner(file)
for scanner.Scan() {
word := scanner.Text()
if (len(word) <= wordMaxLen) {
words = append(words, word)
... | [
-0.19676703214645386,
0.24683138728141785,
0.6966351270675659,
-0.841116726398468,
-1.1401546001434326,
0.5759533643722534,
-1.4223320484161377,
0.959399938583374,
-0.9731543660163879,
0.8374694585800171,
0.7338215112686157,
0.24605564773082733,
-0.3243460953235626,
0.8305007815361023,
-... |
func setFlags() (*string, *int, *int, *int){
lang := flag.String("l", "", "Language to use for generating the passphrase")
numWords := flag.Int("n", 5, "Number of words to use in the passphrase")
wordMaxLen := flag.Int("m", 10, "Max length of words to use in passphrase")
numPhrases := flag.Int("c", ... | [
-0.0286138616502285,
0.7955659627914429,
0.5134212970733643,
-1.0977369546890259,
0.4279375672340393,
0.1552850604057312,
-0.6225960850715637,
0.40711709856987,
-0.9880112409591675,
0.2424667328596115,
-1.3933049440383911,
-0.16011348366737366,
-1.0750130414962769,
0.5574094653129578,
0.... |
func usage(dictPath string) {
fmt.Println("Usage:")
flag.PrintDefaults()
fmt.Println("")
fmt.Println("Available languages")
fmt.Println("===================")
filepath.Walk(
dictPath,
func(path string, f os.FileInfo, err error) error {
if !f.IsDir() && f.Mode()&os.ModeSymlink == 0 && f.Name() ... | [
-0.1282607764005661,
-0.12041066586971283,
1.0046124458312988,
-0.970015823841095,
0.2617538869380951,
0.32033002376556396,
1.154707431793213,
0.19653162360191345,
-0.6827130913734436,
1.1734732389450073,
0.26021790504455566,
0.20441146194934845,
0.03844388946890831,
1.2307897806167603,
... |
func (user *User) Instantiate(client *Client) {
user.Tag = user.Username + "#" + user.Discriminator
user.Client = client
if user.System != true && user.System != false {
user.System = false
}
} | [
0.5829534530639648,
0.5130747556686401,
0.0869402289390564,
-0.08968302607536316,
-0.14563597738742828,
0.7688573598861694,
0.037288982421159744,
-0.11105891317129135,
-1.0355561971664429,
-0.47736266255378723,
-0.7685403823852539,
0.1261143833398819,
-0.025615576654672623,
0.6933793425559... |
func ComputeNormalizeTFIDF(tf int, maxTf int, df int, nDoc int) float64{
return float64(tf)/float64(maxTf) * math.Log2(float64(nDoc)/float64(df))
} | [
0.4562295079231262,
0.11264897137880325,
0.31970974802970886,
0.02994517609477043,
-0.5718705654144287,
-0.8382240533828735,
0.04984528198838234,
0.22550252079963684,
-0.6030820608139038,
0.35587725043296814,
0.15733177959918976,
-0.369489461183548,
-0.5428153872489929,
-0.1646089851856231... |
func NewGRPCClient(ctx context.Context) (pb.TransporterClient, error) {
conn, err := grpc.Dial(portDomainServiceURI, grpc.WithInsecure())
if err != nil {
return nil, errors.Wrap(err, "could not establish connection wit grpc server")
}
return pb.NewTransporterClient(conn), nil
} | [
-0.4598988890647888,
0.30260106921195984,
0.5643200874328613,
0.4198053181171417,
-0.7325237393379211,
0.19185446202754974,
0.4399682283401489,
-1.1207199096679688,
-0.7188449501991272,
0.7130658626556396,
-0.03642230108380318,
0.34207555651664734,
-0.9504038095474243,
-0.7039033770561218,... |
func New(w io.Writer) Tracer {
return &tracer{out: w}
} | [
0.4311213195323944,
-0.8634961247444153,
0.004829740151762962,
-0.22307808697223663,
-1.0360556840896606,
0.2843112647533417,
1.0776876211166382,
-0.7754290699958801,
-0.3009217381477356,
0.09322124719619751,
-0.2303135246038437,
-0.3951781988143921,
0.7720403671264648,
1.051841378211975,
... |
func (s FileSystem) Add(path string, name string, size int64, mode os.FileMode, modTimeBinary []byte, isDir bool, data []byte) {
fs := &FileStat{
name: name,
size: size,
mode: mode,
isDir: isDir,
}
fs.modTime.UnmarshalBinary(modTimeBinary)
fs.Reader = *bytes.NewReader(inflate(data))
s.add(path, fs)
} | [
-0.2916574478149414,
-0.21836096048355103,
0.4775349199771881,
-0.7099409103393555,
-0.18436306715011597,
0.2762529253959656,
-0.7732818722724915,
-0.13416637480258942,
0.6586041450500488,
-0.9963855743408203,
-0.006056420970708132,
0.5658831000328064,
-0.19617480039596558,
0.6711612939834... |
func Generate(filePath string, info os.FileInfo) (*FileStat, error) {
fs := &FileStat{
path: filePath,
name: info.Name(),
size: info.Size(),
mode: info.Mode(),
modTime: info.ModTime(),
isDir: info.IsDir(),
}
if !fs.isDir {
file, err := os.Open(filePath)
if err != nil {
return nil, e... | [
0.12341605871915817,
-0.2436070442199707,
0.37966060638427734,
-0.7679374814033508,
-0.4504595398902893,
0.15167176723480225,
-0.3476641774177551,
-0.37519651651382446,
-0.5039031505584717,
-0.8562960624694824,
-0.07764341682195663,
-0.4075002074241638,
0.21119049191474915,
0.2556152641773... |
func (fs *FileStat) GenerateFields() (string, error) {
tb, e := fs.modTime.MarshalBinary()
if e != nil {
return "", e
}
cb, e := fs.compressedBytes()
if e != nil {
return "", e
}
format := `"%s", "%s", %d, 0%o, binfs.MustHexDecode("%x"), %t, binfs.MustHexDecode("%x")`
return fmt.Sprintf(format,
fs.path,
... | [
-0.14761295914649963,
0.21497763693332672,
0.6210464239120483,
-1.3833926916122437,
-0.04760884866118431,
-0.058376483619213104,
-0.0570591501891613,
-0.6345306634902954,
0.17916907370090485,
-0.3847072124481201,
-0.873949408531189,
-0.6670427322387695,
-0.275484561920166,
0.16336716711521... |
func MustHexDecode(s string) []byte {
b, err := hex.DecodeString(s)
if err != nil {
panic(err)
}
return b
} | [
0.1780276596546173,
-0.7467543482780457,
0.6582739353179932,
0.38980230689048767,
-0.6826543807983398,
0.08778554201126099,
-2.458622455596924,
0.7433158755302429,
0.46134132146835327,
0.018503552302718163,
-0.2412503957748413,
0.029016703367233276,
-0.35491061210632324,
0.2099696099758148... |
func BuildGinkgoRunner(cfg *config.Config, pt *metrics.Point) (*Ginkgo, error) {
g := new(Ginkgo)
if err := envconfig.Process("ginkgo", g); err != nil {
return nil, err
}
g.Config = cfg
g.Point = pt
return g, nil
} | [
0.20339995622634888,
0.06831663101911545,
0.33873504400253296,
0.35189199447631836,
-0.3377316892147064,
0.2944488525390625,
0.22240932285785675,
0.3425593972206116,
-1.1312828063964844,
-0.0693892166018486,
-0.3147522807121277,
0.9326118230819702,
-0.7046345472335815,
0.5300927758216858,
... |
func (g *Ginkgo) Run() error {
g.Point.SetTestStart()
// use the test bin rather than compile the directory b/c the compile will happen in a sub dir which is another module
testFile := fmt.Sprintf("test/e2e/%s/%s.test", g.Config.Orchestrator, g.Config.Orchestrator)
args := []string{"-slowSpecThreshold", "180", "-r... | [
0.3431457579135895,
-0.024563618004322052,
0.9799515604972839,
0.12432099878787994,
0.6169775724411011,
0.29730281233787537,
0.6270971894264221,
-0.18874147534370422,
-0.5180405378341675,
-0.23279733955860138,
-0.027074456214904785,
0.870907723903656,
-0.3722234070301056,
0.583755970001220... |
func NewUserStatedIncomeSourceCategoryFromValue(v string) (*UserStatedIncomeSourceCategory, error) {
ev := UserStatedIncomeSourceCategory(v)
return &ev, nil
} | [
0.546311616897583,
-0.4658086597919464,
0.08574464917182922,
0.43297070264816284,
-1.0010772943496704,
0.3428204655647278,
0.4615415632724762,
-0.9760460257530212,
0.4811480641365051,
-1.2589092254638672,
0.22799192368984222,
0.19836021959781647,
0.10746748745441437,
0.6515268087387085,
... |
func (v UserStatedIncomeSourceCategory) IsValid() bool {
for _, existing := range allowedUserStatedIncomeSourceCategoryEnumValues {
if existing == v {
return true
}
}
return false
} | [
0.11595961451530457,
-0.7112541794776917,
0.3385954797267914,
0.047613855451345444,
-0.20154345035552979,
0.8230939507484436,
0.46086427569389343,
-0.6272591948509216,
0.7541636824607849,
-0.8216454386711121,
0.6822958588600159,
0.6170593500137329,
0.02234889566898346,
0.3607766628265381,
... |
func (v UserStatedIncomeSourceCategory) Ptr() *UserStatedIncomeSourceCategory {
return &v
} | [
0.8328574299812317,
0.23678137362003326,
-0.05809963867068291,
-0.5495986938476562,
-0.8530192375183105,
0.7238545417785645,
0.4313858151435852,
-1.2085667848587036,
0.7249452471733093,
-1.1523029804229736,
1.471320629119873,
0.4633553624153137,
0.004841845482587814,
0.6473411321640015,
... |
func Load() (err error) {
db, err = gorm.Open("mysql", loadAccess())
return
} | [
-0.028220603242516518,
0.5393139719963074,
0.35232385993003845,
-0.14498499035835266,
-0.14848525822162628,
0.6036015152931213,
-0.007886809296905994,
0.1656079739332199,
-0.7611967921257019,
-0.1275862455368042,
0.16103284060955048,
0.6745142340660095,
-1.0250062942504883,
0.0154022658243... |
func GetConnection() *gorm.DB {
return db
} | [
0.49522915482521057,
0.4013274013996124,
0.21512699127197266,
0.9664537906646729,
0.5861578583717346,
0.07520260661840439,
0.7484272122383118,
0.5572383999824524,
-0.29791730642318726,
0.016171853989362717,
-0.003057655179873109,
-0.7054522037506104,
-1.0456095933914185,
0.5234292149543762... |
func Migrate(values ...interface{}) {
db.AutoMigrate(values...)
} | [
-0.7541893124580383,
0.9318537712097168,
0.44427284598350525,
2.067892074584961,
0.25941526889801025,
0.33929911255836487,
-0.7686309814453125,
-0.6679865717887878,
-0.7459561824798584,
-0.699826717376709,
-0.7508537769317627,
-0.44656485319137573,
-0.36517852544784546,
0.6962115168571472,... |
func GetAllStepMetadata() map[string]config.StepData {
return map[string]config.StepData{
"abapAddonAssemblyKitCheckCVs": abapAddonAssemblyKitCheckCVsMetadata(),
"abapAddonAssemblyKitCheckPV": abapAddonAssemblyKitCheckPVMetadata(),
"abapAddonAssemblyKitCreateTargetVector": abapAddon... | [
0.45475146174430847,
-0.6954836845397949,
0.5835102796554565,
0.03275523707270622,
0.2356884926557541,
1.2485240697860718,
-0.18747609853744507,
-0.11292587965726852,
-0.39046403765678406,
-0.35108664631843567,
-0.577208936214447,
0.5673558115959167,
0.18995308876037598,
0.7923390865325928... |
func (in *DataStruct) DeepCopy() *DataStruct {
if in == nil {
return nil
}
out := new(DataStruct)
in.DeepCopyInto(out)
return out
} | [
0.08367075771093369,
0.6743443608283997,
0.3505745530128479,
-0.20168498158454895,
-0.9719290733337402,
-0.3179008662700653,
-0.22223171591758728,
-0.19771882891654968,
0.6409445405006409,
-2.057910680770874,
-1.063090443611145,
0.6328525543212891,
-0.10259108990430832,
-0.923126757144928,... |
func (in *Memcached) DeepCopyInto(out *Memcached) {
*out = *in
out.TypeMeta = in.TypeMeta
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
in.Spec.DeepCopyInto(&out.Spec)
in.Status.DeepCopyInto(&out.Status)
} | [
0.5100064277648926,
-0.6298732757568359,
0.5679380893707275,
-0.2250833809375763,
-0.5720377564430237,
0.5903607606887817,
-0.06662565469741821,
0.594139814376831,
-0.932756245136261,
-0.4067203104496002,
-0.9441428780555725,
1.636303424835205,
-0.24175097048282623,
-0.3598504960536957,
... |
func (in *Memcached) DeepCopy() *Memcached {
if in == nil {
return nil
}
out := new(Memcached)
in.DeepCopyInto(out)
return out
} | [
0.5156654715538025,
-0.3059649169445038,
0.29744043946266174,
0.4630323052406311,
-0.26693129539489746,
0.38167524337768555,
0.03462204337120056,
0.03739521652460098,
-0.1343858540058136,
-0.6097331047058105,
-0.318704754114151,
0.9213085174560547,
-1.3543591499328613,
-0.6480077505111694,... |
func (in *Memcached) DeepCopyObject() runtime.Object {
if c := in.DeepCopy(); c != nil {
return c
}
return nil
} | [
-0.2263697236776352,
-0.25068262219429016,
0.55677729845047,
0.20591217279434204,
-0.6040166020393372,
0.6263296604156494,
0.6383427381515503,
0.28833404183387756,
-0.2506010830402374,
-0.6639741063117981,
-0.5843220949172974,
0.2836326062679291,
-0.5411398410797119,
-0.4493892192840576,
... |
func (in *MemcachedList) DeepCopyInto(out *MemcachedList) {
*out = *in
out.TypeMeta = in.TypeMeta
in.ListMeta.DeepCopyInto(&out.ListMeta)
if in.Items != nil {
in, out := &in.Items, &out.Items
*out = make([]Memcached, len(*in))
for i := range *in {
(*in)[i].DeepCopyInto(&(*out)[i])
}
}
} | [
-0.04379355162382126,
0.4121687710285187,
0.637151300907135,
0.19952502846717834,
-0.8744898438453674,
0.3210882246494293,
-0.5154386162757874,
0.8822609782218933,
-0.5718281269073486,
0.40264618396759033,
-1.0880415439605713,
0.9300951361656189,
-0.5537988543510437,
-0.422654926776886,
... |
func (in *MemcachedList) DeepCopy() *MemcachedList {
if in == nil {
return nil
}
out := new(MemcachedList)
in.DeepCopyInto(out)
return out
} | [
-0.5521117448806763,
0.4094218313694,
0.05152395740151405,
0.854888379573822,
-0.8501405715942383,
0.5688087940216064,
-0.8820662498474121,
0.339324414730072,
0.2804332673549652,
0.5748258233070374,
-1.2158221006393433,
0.3452721834182739,
-1.1160452365875244,
-0.625903308391571,
-0.4466... |
func (in *MemcachedList) DeepCopyObject() runtime.Object {
if c := in.DeepCopy(); c != nil {
return c
}
return nil
} | [
-0.5908129215240479,
0.12303932011127472,
0.522315263748169,
0.23519816994667053,
-0.7008072733879089,
0.6702560186386108,
0.27389878034591675,
0.3435404896736145,
-0.15189129114151,
-0.3615737855434418,
-1.0306766033172607,
0.2066560685634613,
-0.6010341048240662,
-0.07336850464344025,
... |
func (in *MemcachedSpec) DeepCopyInto(out *MemcachedSpec) {
*out = *in
if in.Config != nil {
in, out := &in.Config, &out.Config
*out = make(map[string]v1.JSON, len(*in))
for key, val := range *in {
(*out)[key] = *val.DeepCopy()
}
}
} | [
0.269426554441452,
0.13161754608154297,
0.691226065158844,
-0.35820910334587097,
-0.697498083114624,
0.3038059175014496,
-0.3385818600654602,
1.0358940362930298,
-1.403568148612976,
0.4446240961551666,
-0.5748090744018555,
1.1613184213638306,
0.17808319628238678,
-0.29463422298431396,
-0... |
func (in *MemcachedSpec) DeepCopy() *MemcachedSpec {
if in == nil {
return nil
}
out := new(MemcachedSpec)
in.DeepCopyInto(out)
return out
} | [
0.8770766258239746,
0.28925079107284546,
0.19367912411689758,
0.40140074491500854,
-0.9745176434516907,
0.7645483613014221,
-0.07524274289608002,
0.08471601456403732,
-0.2891099452972412,
0.07108055055141449,
-0.2350589483976364,
1.0080723762512207,
-0.7904130816459656,
-0.5314315557479858... |
func (in *MemcachedStatus) DeepCopyInto(out *MemcachedStatus) {
*out = *in
if in.Nodes != nil {
in, out := &in.Nodes, &out.Nodes
*out = make([]string, len(*in))
copy(*out, *in)
}
} | [
0.6704257726669312,
0.510647177696228,
0.46624577045440674,
-0.3961719572544098,
-0.7673960328102112,
0.4884178340435028,
-0.35039836168289185,
0.6780362725257874,
-0.8052816390991211,
-0.07718952745199203,
-1.055224895477295,
1.266015887260437,
0.02492719516158104,
-0.7549417614936829,
... |
func (in *MemcachedStatus) DeepCopy() *MemcachedStatus {
if in == nil {
return nil
}
out := new(MemcachedStatus)
in.DeepCopyInto(out)
return out
} | [
0.5596069097518921,
0.1132374033331871,
-0.06691811978816986,
0.22921991348266602,
-0.8120002746582031,
0.6468639373779297,
-0.3851076066493988,
-0.009484116919338703,
0.15649382770061493,
-0.9405609369277954,
-1.1272780895233154,
0.7331803441047668,
-1.1499607563018799,
-0.450632482767105... |
func (in *MismatchedField) DeepCopyInto(out *MismatchedField) {
*out = *in
if in.Path != nil {
in, out := &in.Path, &out.Path
*out = make([]string, len(*in))
copy(*out, *in)
}
} | [
0.07834452390670776,
-0.13661788403987885,
0.59566330909729,
-0.20142346620559692,
-0.648820161819458,
0.3473854660987854,
0.24542920291423798,
1.1682473421096802,
-1.1566063165664673,
-0.4062598943710327,
-0.9678021669387817,
0.7810468077659607,
-0.21682223677635193,
-0.5321721434593201,
... |
func (in *MismatchedField) DeepCopy() *MismatchedField {
if in == nil {
return nil
}
out := new(MismatchedField)
in.DeepCopyInto(out)
return out
} | [
-0.5034488439559937,
0.150103360414505,
0.2342655509710312,
0.5670867562294006,
-0.2739587128162384,
0.6319342851638794,
0.5694217085838318,
0.4144805073738098,
-0.28127482533454895,
-0.8704907894134521,
-1.0972654819488525,
0.07482858002185822,
-0.9072134494781494,
-0.6515063643455505,
... |
func (in *MissingField) DeepCopyInto(out *MissingField) {
*out = *in
if in.Path != nil {
in, out := &in.Path, &out.Path
*out = make([]string, len(*in))
copy(*out, *in)
}
} | [
0.19831815361976624,
0.1461830586194992,
0.7319784760475159,
-0.36260339617729187,
-0.9800878763198853,
0.720168948173523,
0.04297200217843056,
1.1599880456924438,
-1.1368979215621948,
0.1772223562002182,
-0.9149821996688843,
0.6696098446846008,
-0.1852252185344696,
-0.7785502076148987,
... |
func (in *MissingField) DeepCopy() *MissingField {
if in == nil {
return nil
}
out := new(MissingField)
in.DeepCopyInto(out)
return out
} | [
-0.3620312809944153,
0.5928273797035217,
0.29733097553253174,
0.8533074259757996,
-0.8821264505386353,
1.5688121318817139,
0.22882573306560516,
0.2833922505378723,
-0.19129584729671478,
0.2556382715702057,
-0.9787432551383972,
-0.4414016604423523,
-0.987610399723053,
-1.4455785751342773,
... |
func (in *Plugin1) DeepCopyInto(out *Plugin1) {
*out = *in
out.Plugin1Name = in.Plugin1Name
} | [
0.3808276057243347,
-0.9223587512969971,
0.7023559808731079,
0.2476930320262909,
-1.1020756959915161,
0.26755017042160034,
0.1464875042438507,
0.7919564247131348,
-0.886220395565033,
0.22405149042606354,
-0.8890130519866943,
1.5951483249664307,
0.18860842287540436,
-0.8645281791687012,
-... |
func (in *Plugin1) DeepCopy() *Plugin1 {
if in == nil {
return nil
}
out := new(Plugin1)
in.DeepCopyInto(out)
return out
} | [
-0.6559524536132812,
-0.608378529548645,
0.3945045471191406,
1.7228716611862183,
-0.6354219317436218,
0.054306384176015854,
0.4456590414047241,
-0.007888393476605415,
0.00711107486858964,
0.46406906843185425,
-0.5083687901496887,
0.9157335162162781,
-0.5911223292350769,
-1.0132884979248047... |
func (in *Plugin2) DeepCopyInto(out *Plugin2) {
*out = *in
out.Plugin2Name = in.Plugin2Name
} | [
0.3902314603328705,
-1.2914546728134155,
0.5705705881118774,
-0.2198745310306549,
-1.2665627002716064,
-0.20702263712882996,
-0.4249125123023987,
0.47510433197021484,
-0.9035508632659912,
-0.3102729320526123,
-1.2813572883605957,
1.8285738229751587,
0.42691364884376526,
-0.6124698519706726... |
func (in *Plugin2) DeepCopy() *Plugin2 {
if in == nil {
return nil
}
out := new(Plugin2)
in.DeepCopyInto(out)
return out
} | [
-0.6632030606269836,
-1.3833613395690918,
0.15234144032001495,
1.1655380725860596,
-0.9029775857925415,
-0.8114010095596313,
-0.2523692548274994,
-0.3903212249279022,
0.1868932545185089,
-0.10411754995584488,
-1.044987678527832,
1.186598777770996,
-0.5561071038246155,
-0.5343984365463257,
... |
func (in *ValidatorResponse) DeepCopyInto(out *ValidatorResponse) {
*out = *in
in.Data.DeepCopyInto(&out.Data)
if in.PluginError != nil {
in, out := &in.PluginError, &out.PluginError
*out = make(map[string]string, len(*in))
for key, val := range *in {
(*out)[key] = val
}
}
} | [
0.12686406075954437,
-1.0308494567871094,
0.5812730193138123,
-0.3310833275318146,
-0.5341015458106995,
-0.4470456540584564,
0.08295079320669174,
0.6330921053886414,
-0.326850950717926,
-0.672159731388092,
-0.964171290397644,
0.445922315120697,
-0.2198430299758911,
-0.6607500910758972,
-... |
func (in *ValidatorResponse) DeepCopy() *ValidatorResponse {
if in == nil {
return nil
}
out := new(ValidatorResponse)
in.DeepCopyInto(out)
return out
} | [
-0.3040607273578644,
-0.6902742981910706,
-0.2817058563232422,
0.9797953367233276,
-0.034393712878227234,
-0.7813507318496704,
0.545302152633667,
-0.04514215886592865,
0.9157772064208984,
-1.0001740455627441,
-0.3403918743133545,
-0.3682558834552765,
-1.1657012701034546,
-0.763060152530670... |
func ServeNats(db *gorm.DB) {
nc, err := utils.GetNatsConnection(natsURI)
if err != nil {
log.Fatal("Error establishing connection to NATS:", err)
}
fmt.Println("Connected to NATS at:", nc.ConnectedUrl())
nc.Subscribe("customers", serveCustomer(db, nc))
fmt.Println("Subscribed to 'customers' for processing req... | [
-0.1947980672121048,
0.6818072199821472,
0.27894535660743713,
-0.3472346365451813,
0.21660906076431274,
-0.2801017761230469,
-0.5300304293632507,
-0.11310455203056335,
-1.3229153156280518,
0.4352073073387146,
-0.07051161676645279,
1.1819467544555664,
0.456635981798172,
0.828059732913971,
... |
func ListBucket(a S3Account, bucket string) {
req := NewRequest(a, "GET", bucket, "/", nil)
body := req.Send()
lbr := ListBucketResult{}
xml.Unmarshal(body, &lbr)
for _,cp := range lbr.CommonPrefixes {
cp.pp()
}
for _,c := range lbr.Contents {
c.pp()
}
} | [
0.22642862796783447,
-0.2726307213306427,
0.6450698971748352,
-0.07333655655384064,
0.1598050892353058,
-0.26233410835266113,
-0.8978170156478882,
-0.08231591433286667,
0.6338953375816345,
0.20157428085803986,
0.08233262598514557,
1.2038987874984741,
-0.26102572679519653,
0.138255804777145... |
func Dlalsd(uplo mat.MatUplo, smlsiz, n, nrhs int, d, e *mat.Vector, b *mat.Matrix, rcond float64, work *mat.Vector, iwork *[]int) (rank, info int, err error) {
var cs, eps, one, orgnrm, r, rcnd, sn, tol, two, zero float64
var bx, bxst, c, difl, difr, givcol, givnum, givptr, i, icmpq1, icmpq2, iwk, j, k, nlvl, nm1, n... | [
0.49964380264282227,
0.42789575457572937,
0.8984459042549133,
-0.27508074045181274,
-0.41539838910102844,
0.7284952402114868,
0.17331893742084503,
-0.4743969738483429,
0.06534893065690994,
-0.2042553424835205,
0.7020523548126221,
0.9228711724281311,
-0.25873351097106934,
0.3389780819416046... |
func (s *Session) Exec() (result sql.Result, err error) {
defer s.Clear()
log.Info(s.sql.String(), s.sqlVars)
if result, err = s.DB().Exec(s.sql.String(), s.sqlVars...); err != nil {
log.Error(err)
}
return
} | [
0.13110634684562683,
0.6023562550544739,
0.38996800780296326,
0.7514252066612244,
-0.730167806148529,
-0.9096909165382385,
-0.6395419836044312,
-1.2850037813186646,
0.43573296070098877,
0.4717468321323395,
0.06931596249341965,
0.1753765344619751,
-0.0658717006444931,
-0.08716196566820145,
... |
func (cc *Chaincode) Init(stub shim.ChaincodeStubInterface) sc.Response {
fcn, params := stub.GetFunctionAndParameters()
fmt.Println("Init()", fcn, params)
return shim.Success(nil)
} | [
-0.5090386867523193,
-0.5774055123329163,
0.6401177048683167,
0.09509037435054779,
0.4767509698867798,
-0.6245681643486023,
0.599837064743042,
0.1889532208442688,
-0.6277368068695068,
-0.41020074486732483,
-0.4040962755680084,
1.680394172668457,
-0.5472238063812256,
0.6730833053588867,
0... |
func (cc *Chaincode) Invoke(stub shim.ChaincodeStubInterface) sc.Response {
fcn, params := stub.GetFunctionAndParameters()
var result []byte
var err error
if fcn == "GetAllPatients" {
result, err = cc.GetAllPatients(stub)
} else if fcn == "GetPatient" {
result, err = cc.GetPatient(stub, params)
} else if fcn ... | [
-0.6483666300773621,
0.06519576162099838,
0.9013926982879639,
0.36926090717315674,
0.758476972579956,
-0.44251561164855957,
0.18648368120193481,
-0.2651088833808899,
-0.3332425653934479,
-0.5473654270172119,
0.016767818480730057,
0.669861376285553,
-0.721276044845581,
0.05990580469369888,
... |
func (o *Object) String() string {
return o.URL.String()
} | [
-0.33993303775787354,
-1.4597632884979248,
-0.0643855482339859,
-0.19251132011413574,
-0.3145454525947571,
0.8961131572723389,
1.110367774963379,
-0.7449207305908203,
0.24498914182186127,
-0.1731700748205185,
-0.6357342004776001,
0.8847630620002747,
0.5570858120918274,
-0.5625731945037842,... |
func (o *Object) JSON() string {
if o.URL != nil {
o.VersionID = o.URL.VersionID
}
return strutil.JSON(o)
} | [
-0.21500247716903687,
-1.698762059211731,
0.4149687588214874,
-0.2002662867307663,
-0.8390178680419922,
-0.06600438058376312,
0.6232151985168457,
-0.09964761883020401,
0.6460646986961365,
0.3556024134159088,
-1.3156489133834839,
0.8670499920845032,
0.7937429547309875,
0.2770233154296875,
... |
func (o ObjectType) String() string {
switch mode := o.mode; {
case mode.IsRegular():
return "file"
case mode.IsDir():
return "directory"
case mode&os.ModeSymlink != 0:
return "symlink"
}
return ""
} | [
-0.1061602234840393,
-0.7355583906173706,
0.3949909508228302,
-0.4981290102005005,
0.13079944252967834,
0.40310239791870117,
1.2785152196884155,
-0.7315327525138855,
-0.3356594741344452,
0.43147650361061096,
-0.20158661901950836,
0.4163464307785034,
-0.21866904199123383,
0.1542753130197525... |
func (o ObjectType) MarshalJSON() ([]byte, error) {
return json.Marshal(o.String())
} | [
0.24584852159023285,
-0.32707124948501587,
0.28825637698173523,
-0.38436323404312134,
-0.054573673754930496,
-0.4942041039466858,
-0.06635625660419464,
-0.3434428572654724,
0.6531376242637634,
0.7714787721633911,
-1.2009305953979492,
1.0156230926513672,
-0.08330675959587097,
0.088818490505... |
func (o ObjectType) IsDir() bool {
return o.mode.IsDir()
} | [
-0.35624104738235474,
-0.8742530345916748,
0.6237229108810425,
1.1149109601974487,
0.05866995453834534,
0.7223734855651855,
1.0230602025985718,
-0.2498786747455597,
0.46058788895606995,
-0.3119439482688904,
-0.3484763205051422,
0.0771464928984642,
-0.11947030574083328,
0.2967175543308258,
... |
func (o ObjectType) IsSymlink() bool {
return o.mode&os.ModeSymlink != 0
} | [
-0.6308649182319641,
-0.7390428781509399,
0.536689817905426,
0.7309708595275879,
0.7967000603675842,
-0.34334298968315125,
0.8849345445632935,
0.5083208084106445,
1.0999242067337036,
-0.23816923797130585,
-1.4029507637023926,
1.0082602500915527,
0.11162509769201279,
0.4073852002620697,
-... |
func (o ObjectType) IsRegular() bool {
return o.mode.IsRegular()
} | [
-0.9223713874816895,
0.16377030313014984,
0.9874796867370605,
0.493470698595047,
-0.10048269480466843,
0.11668124049901962,
0.7178789377212524,
0.09366538375616074,
0.10146231949329376,
0.4679904282093048,
-0.8732316493988037,
0.7648666501045227,
-0.6094003915786743,
-0.3635713756084442,
... |
func ShouldProcessURL(url *url.URL, followSymlinks bool) bool {
if followSymlinks {
return true
}
if url.IsRemote() {
return true
}
fi, err := os.Lstat(url.Absolute())
if err != nil {
return false
}
// do not process symlinks
return fi.Mode()&os.ModeSymlink == 0
} | [
-0.08832952380180359,
0.5231908559799194,
0.7895045280456543,
0.31800100207328796,
-0.7376495003700256,
1.0806989669799805,
0.28834542632102966,
0.6147261261940002,
0.7884151339530945,
-0.2964022159576416,
-0.2815091907978058,
0.4360333979129791,
-0.276142418384552,
0.5327534675598145,
-... |
func (b Bucket) String() string {
return fmt.Sprintf("%s s3://%s", b.CreationDate.Format(dateFormat), b.Name)
} | [
0.4682809114456177,
-0.9640505909919739,
0.249166339635849,
-0.30122143030166626,
-0.21786056458950043,
1.5513972043991089,
0.04439322277903557,
-0.8938784003257751,
-0.7939027547836304,
-0.3185732662677765,
-0.20337292551994324,
0.8741725087165833,
0.3922182023525238,
-0.6214041113853455,... |
func (b Bucket) JSON() string {
return strutil.JSON(b)
} | [
-0.674531102180481,
-1.3980554342269897,
0.2600100636482239,
-0.4073150157928467,
-0.698388397693634,
0.11555155366659164,
0.3044534921646118,
-0.9561156034469604,
-0.5251163244247437,
-0.1498950570821762,
-1.0135161876678467,
0.901229202747345,
0.6160231828689575,
-0.12053743004798889,
... |
func Less(a, b extsort.SortType) bool {
return a.(Object).URL.Relative() < b.(Object).URL.Relative()
} | [
0.29649826884269714,
-0.4838781952857971,
0.5916091799736023,
-0.5618897676467896,
-0.8706933856010437,
0.9306790232658386,
-0.618615984916687,
-1.1644957065582275,
-0.16842998564243317,
-0.4571405053138733,
0.06651773303747177,
0.39799222350120544,
0.019610494375228882,
0.5791916847229004... |
func mutate(newObj runtime.Object) (admission.PatchOps, error) {
supportBundle := newObj.(*longhorn.SupportBundle)
var patchOps admission.PatchOps
patchOp, err := common.GetLonghornFinalizerPatchOpIfNeeded(supportBundle)
if err != nil {
err := errors.Wrapf(err, "failed to get finalizer patch for supportBundle %v... | [
-0.1873917281627655,
-0.11552509665489197,
0.560466468334198,
0.5992681980133057,
-0.7910971641540527,
-0.056196313351392746,
0.1266133040189743,
0.009940601885318756,
0.7460151314735413,
0.7144714593887329,
-0.15229126811027527,
-0.48352259397506714,
-0.04755908623337746,
0.36492943763732... |
func newClient(ctx context.Context) dockerClient {
// TODO this was much easier, don't need special settings at the moment
// docker, err := docker.NewClient(conf.Docker)
client, err := docker.NewClientFromEnv()
if err != nil {
logrus.WithError(err).Fatal("couldn't create docker client")
}
if err := client.Pin... | [
-0.07260706275701523,
-0.7440057396888733,
0.35524415969848633,
0.41257205605506897,
-0.18138273060321808,
0.23113496601581573,
0.1975713074207306,
-0.8704596757888794,
0.49798986315727234,
-0.12168954312801361,
0.5851283669471741,
0.6317381262779236,
0.42215901613235474,
-0.03142636641860... |
func (d *dockerWrap) listenEventLoop(ctx context.Context) {
limiter := rate.NewLimiter(2.0, 1)
for limiter.Wait(ctx) == nil {
err := d.listenEvents(ctx)
if err != nil {
logrus.WithError(err).Error("listenEvents failed, will retry...")
}
}
} | [
1.2322959899902344,
-0.39754214882850647,
0.5664183497428894,
-0.010838992893695831,
0.23568660020828247,
0.6094149351119995,
-0.11022522300481796,
-0.543673574924469,
0.43934565782546997,
-0.15779173374176025,
0.656166672706604,
0.6697589159011841,
0.01852438598871231,
0.4977800250053406,... |
func (d *dockerWrap) listenEvents(ctx context.Context) error {
listener, err := d.AddEventListener(ctx)
if err != nil {
return err
}
defer d.RemoveEventListener(ctx, listener)
for {
select {
case ev := <-listener:
if ev == nil {
return errors.New("event listener closed")
}
ctx, err := tag.New... | [
0.5835649371147156,
-0.01912984810769558,
0.5913468599319458,
-0.5477383732795715,
0.8339130878448486,
0.14012771844863892,
0.10112789273262024,
-0.626253068447113,
0.2398926168680191,
0.10529953986406326,
0.2808399498462677,
0.41226428747177124,
0.027356866747140884,
0.7261936068534851,
... |
func recordRetry(ctx context.Context, apiName, apiStatus string) {
ctx, err := tag.New(ctx,
tag.Upsert(apiNameKey, apiName),
tag.Upsert(apiStatusKey, apiStatus),
)
if err != nil {
logrus.WithError(err).Fatalf("cannot add tags %v=%v %v=%v", apiNameKey, apiName, apiStatusKey, apiStatus)
}
stats.Record(ctx, d... | [
0.36543723940849304,
0.7007399201393127,
0.5460494160652161,
-1.0047625303268433,
0.9955609440803528,
-0.4141555428504944,
-0.7219082713127136,
0.22396042943000793,
0.05483904108405113,
0.052310630679130554,
-0.7898442149162292,
0.08302129805088043,
0.046450335532426834,
0.2932931482791900... |
func makeTracker(ctx context.Context, name string) (context.Context, func(error)) {
ctx, err := tag.New(ctx, tag.Upsert(apiNameKey, name))
if err != nil {
logrus.WithError(err).Fatalf("cannot add tag %v=%v", apiNameKey, name)
}
// It would have been nice to pull the latency (end-start) elapsed time
// from Span... | [
0.052364230155944824,
0.585358738899231,
0.9185791611671448,
-0.7449633479118347,
-0.38052406907081604,
0.02888348326086998,
-0.08652904629707336,
-0.5066820979118347,
0.36417853832244873,
0.19909319281578064,
-0.6981701850891113,
-0.6826465129852295,
0.6881093978881836,
0.4292532801628113... |
func RegisterViews(tagKeys []string, latencyDist []float64) {
defaultTags := []tag.Key{apiNameKey, apiStatusKey}
exitTags := []tag.Key{apiNameKey, exitStatusKey}
eventTags := []tag.Key{eventActionKey, eventTypeKey}
// add extra tags if not already in default tags for req/resp
for _, key := range tagKeys {
if k... | [
-0.25620657205581665,
1.003711223602295,
0.7066910266876221,
-0.5937949419021606,
0.33849796652793884,
-0.4068153500556946,
-0.27667590975761414,
-0.38219666481018066,
-0.28529325127601624,
-0.6626812815666199,
-0.009478443302214146,
-0.016762077808380127,
0.5067592263221741,
1.18071794509... |
func TestAlias(t *testing.T) {
//Create Alias
alias := COMMAND_LIST["\\alias"]
s := make([]string, 2)
s[0] = "command1"
s[1] = "\\ECHO This \"Is A\" histfile"
errCode, errStr := alias.ExecCommand(s)
if AliasCommand[s[0]] != s[1] {
t.Errorf("Alias %s not created properly.\n", s[0])
t.Errorf("Error : %s", Ha... | [
0.5960572361946106,
-0.4689057767391205,
0.641903817653656,
-0.16460876166820526,
0.7067610621452332,
0.25549814105033875,
0.8286468386650085,
1.2464789152145386,
-0.002600297098979354,
-0.09088399261236191,
0.016319548711180687,
0.5932722091674805,
-0.04749063402414322,
0.0993741750717163... |
func (s *Service) ListPartitionReassignments(ctx context.Context) ([]PartitionReassignments, error) {
reassignments, err := s.kafkaSvc.ListPartitionReassignments(ctx)
if err != nil {
return nil, fmt.Errorf("failed to list partition reassignments: %w", err)
}
err = kerr.ErrorForCode(reassignments.ErrorCode)
if e... | [
-0.4729066789150238,
-1.1100995540618896,
0.40767067670822144,
-1.0339452028274536,
-0.8732703924179077,
-0.6718810200691223,
-0.021477211266756058,
0.35903021693229675,
0.32251134514808655,
0.2837718427181244,
0.5475911498069763,
0.23622943460941315,
-0.7999178171157837,
-0.11307900398969... |
func (s *Service) AlterPartitionAssignments(ctx context.Context, topics []kmsg.AlterPartitionAssignmentsRequestTopic) ([]AlterPartitionReassignmentsResponse, error) {
kRes, err := s.kafkaSvc.AlterPartitionAssignments(ctx, topics)
if err != nil {
return nil, fmt.Errorf("failed to reassign partitions: %w", err)
}
... | [
-1.34175705909729,
-1.520876169204712,
0.5107161402702332,
-0.2860555648803711,
-0.963718056678772,
-0.08424396067857742,
0.3456474840641022,
-0.03108087182044983,
-0.29778167605400085,
0.12410636246204376,
0.9496598839759827,
-0.09144729375839233,
-1.0035420656204224,
0.37052878737449646,... |
func (c *sclient) tcpConn() *net.TCPConn {
nc := c.nc
for {
switch v := nc.(type) {
case *net.TCPConn:
return v
case *tls.Conn:
nc = v.NetConn()
default:
return nil
}
}
} | [
1.1370142698287964,
-0.7538257241249084,
0.23204545676708221,
0.2504723370075226,
-0.24814127385616302,
-0.5772618055343628,
-0.33435603976249695,
-0.24575349688529968,
-0.24899448454380035,
0.037553589791059494,
0.3105611503124237,
0.16834142804145813,
0.23596468567848206,
0.3223446607589... |
func List() []string {
return []string{
AFL11,
AFL12,
AFL20,
AFL21,
AFL30,
AGPL10,
AGPL30,
Apache10,
Apache11,
Apache20,
APSL10,
APSL11,
APSL12,
APSL20,
Artistic10cl8,
Artistic10Perl,
Artistic10,
Artistic20,
BCL,
Beerware,
BSD2ClauseFreeBSD,
BSD2ClauseNetBSD,
BSD2Clause,
... | [
0.6181336045265198,
-0.9756662845611572,
0.5944553017616272,
0.049372348934412,
-0.423506498336792,
-0.2449880987405777,
0.19269409775733948,
0.12909071147441864,
0.1408362090587616,
0.08789963275194168,
0.004735126160085201,
0.13595381379127502,
-0.013898597098886967,
0.3288825750350952,
... |
func InitializeGradeRoutes(quizzes *echo.Group, adminQuizzes *echo.Group) {
quizzes.GET("/grades", quizzesController.GetGradesByQuiz)
quizzes.GET("/grades/month", quizzesController.GetGradesByMonthAndUser)
quizzes.GET("/grades/time", quizzesController.GetStudentRemainingTime)
quizzes.POST("/grades", quizzesControll... | [
-0.38624295592308044,
0.2057887613773346,
0.7143082022666931,
0.3188713490962982,
1.2070908546447754,
0.5565852522850037,
0.287924587726593,
-0.2166167050600052,
-0.3550778925418854,
-0.13839980959892273,
-0.8620534539222717,
0.3698982000350952,
-0.6409986615180969,
1.0614726543426514,
-... |
func (in *Announcement) DeepCopyInto(out *Announcement) {
*out = *in
out.TypeMeta = in.TypeMeta
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
in.Spec.DeepCopyInto(&out.Spec)
out.Status = in.Status
return
} | [
0.37371766567230225,
-0.6336220502853394,
0.5547811985015869,
0.2749654948711395,
-1.071045160293579,
0.46430400013923645,
-0.26152777671813965,
1.5921369791030884,
-0.9666666984558105,
0.1721780002117157,
-0.19322194159030914,
1.6852623224258423,
0.2206149399280548,
0.3388473093509674,
... |
func (in *Announcement) DeepCopy() *Announcement {
if in == nil {
return nil
}
out := new(Announcement)
in.DeepCopyInto(out)
return out
} | [
-0.4344508647918701,
-0.35074740648269653,
0.4890892207622528,
1.2797714471817017,
-0.7443249225616455,
0.0038522041868418455,
0.29211220145225525,
1.026807188987732,
0.37069252133369446,
0.08441603928804398,
0.43785104155540466,
0.9592263698577881,
-0.9519188404083252,
0.00590899726375937... |
func (in *Announcement) DeepCopyObject() runtime.Object {
if c := in.DeepCopy(); c != nil {
return c
}
return nil
} | [
0.11029867827892303,
-0.2647152245044708,
0.7115094661712646,
0.5313242077827454,
-1.0521990060806274,
0.5439220070838928,
0.6223082542419434,
0.9883950352668762,
-0.40596285462379456,
-0.22882115840911865,
0.1822223663330078,
0.6606958508491516,
0.08641685545444489,
0.2557525634765625,
... |
func (in *AnnouncementList) DeepCopyInto(out *AnnouncementList) {
*out = *in
out.TypeMeta = in.TypeMeta
in.ListMeta.DeepCopyInto(&out.ListMeta)
if in.Items != nil {
in, out := &in.Items, &out.Items
*out = make([]Announcement, len(*in))
for i := range *in {
(*in)[i].DeepCopyInto(&(*out)[i])
}
}
return
} | [
-0.34121161699295044,
0.28371065855026245,
0.6650748252868652,
0.7396693229675293,
-0.8392432928085327,
0.37763512134552,
-0.46803367137908936,
1.1976778507232666,
-0.9456772208213806,
0.44231563806533813,
-0.3311224579811096,
0.9471825957298279,
-0.3104086220264435,
0.7040339708328247,
... |
func (in *AnnouncementList) DeepCopy() *AnnouncementList {
if in == nil {
return nil
}
out := new(AnnouncementList)
in.DeepCopyInto(out)
return out
} | [
-0.9658598303794861,
0.4310763478279114,
0.4430294334888458,
1.7621568441390991,
-0.9131340980529785,
0.6159841418266296,
-0.0702519491314888,
0.5762083530426025,
-0.004364482127130032,
0.1730695217847824,
-0.07055182754993439,
0.3967551290988922,
-0.681702733039856,
0.9140848517417908,
... |
func (in *AnnouncementList) DeepCopyObject() runtime.Object {
if c := in.DeepCopy(); c != nil {
return c
}
return nil
} | [
-0.6438824534416199,
-0.015127171762287617,
0.6178978681564331,
0.7597217559814453,
-1.0504915714263916,
0.9188244342803955,
0.46203503012657166,
0.8913608193397522,
-0.2718329131603241,
-0.1203140839934349,
-0.11995141208171844,
0.4317712187767029,
-0.05859077349305153,
0.7802990674972534... |
func (in *AnnouncementSpec) DeepCopyInto(out *AnnouncementSpec) {
*out = *in
if in.Tags != nil {
in, out := &in.Tags, &out.Tags
*out = make([]string, len(*in))
copy(*out, *in)
}
return
} | [
0.6561547517776489,
0.2210635393857956,
0.622523844242096,
-0.154902845621109,
-0.6340070962905884,
0.42492544651031494,
-0.8033086657524109,
1.0888097286224365,
-1.5462085008621216,
0.4753829538822174,
-0.0035603612195700407,
1.4690985679626465,
0.17791059613227844,
0.11313913017511368,
... |
func (in *AnnouncementSpec) DeepCopy() *AnnouncementSpec {
if in == nil {
return nil
}
out := new(AnnouncementSpec)
in.DeepCopyInto(out)
return out
} | [
-0.10677793622016907,
0.25959205627441406,
0.26352524757385254,
0.6391657590866089,
-0.7443498969078064,
0.8351994156837463,
0.10366105288267136,
0.4632871448993683,
-0.6105537414550781,
0.3094335198402405,
0.6468333005905151,
1.2295937538146973,
0.023099469020962715,
0.17557959258556366,
... |
func (in *AnnouncementStatus) DeepCopyInto(out *AnnouncementStatus) {
*out = *in
return
} | [
0.49894291162490845,
-0.013424281030893326,
0.3561123013496399,
0.1728292852640152,
-1.375180959701538,
1.0619595050811768,
-0.7879842519760132,
1.4229322671890259,
-0.8327334523200989,
-0.18271635472774506,
-0.4526272118091583,
1.6051801443099976,
0.2881987690925598,
0.036860063672065735,... |
func (in *AnnouncementStatus) DeepCopy() *AnnouncementStatus {
if in == nil {
return nil
}
out := new(AnnouncementStatus)
in.DeepCopyInto(out)
return out
} | [
-0.5489110350608826,
0.08170362561941147,
0.050036825239658356,
0.5734047293663025,
-1.1686125993728638,
0.6512660980224609,
-0.4874953627586365,
0.7478944659233093,
0.1745123714208603,
-0.04065236821770668,
0.10874444246292114,
0.8220105171203613,
-0.24902091920375824,
0.5623127818107605,... |
func (in *ArticleSpec) DeepCopyInto(out *ArticleSpec) {
*out = *in
return
} | [
0.7543609738349915,
0.11122222244739532,
0.4015032649040222,
-0.7547188997268677,
-0.819744884967804,
0.6950055956840515,
-0.011485615745186806,
0.7417390942573547,
-1.4213318824768066,
0.18060161173343658,
-0.6830597519874573,
1.2676981687545776,
0.7692667841911316,
-1.116731882095337,
... |
func (in *ArticleSpec) DeepCopy() *ArticleSpec {
if in == nil {
return nil
}
out := new(ArticleSpec)
in.DeepCopyInto(out)
return out
} | [
0.12554208934307098,
0.5014484524726868,
-0.01392576564103365,
-0.4680773913860321,
-0.9143636226654053,
0.34845682978630066,
-0.054437801241874695,
-0.28597864508628845,
-0.4653432369232178,
0.4665681719779968,
-0.007690416183322668,
0.4554761052131653,
0.3267918825149536,
-1.473770141601... |
func (in *Meetup) DeepCopyInto(out *Meetup) {
*out = *in
out.TypeMeta = in.TypeMeta
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
in.Spec.DeepCopyInto(&out.Spec)
out.Status = in.Status
return
} | [
-0.10902515053749084,
-0.6856722831726074,
0.6430884003639221,
0.4479677379131317,
-0.670280933380127,
0.5400740504264832,
-0.14187142252922058,
1.438475489616394,
-0.9836483001708984,
0.05975399166345596,
-0.6209728717803955,
0.8884602785110474,
-0.021317409351468086,
-0.8077942132949829,... |
func (in *Meetup) DeepCopy() *Meetup {
if in == nil {
return nil
}
out := new(Meetup)
in.DeepCopyInto(out)
return out
} | [
-0.7987117767333984,
-0.06335563212633133,
0.43279820680618286,
1.4054166078567505,
-0.3969483971595764,
0.3645227253437042,
0.31581413745880127,
1.112756609916687,
0.10910075157880783,
0.24388258159160614,
-0.03559648245573044,
0.07893683016300201,
-0.6141040325164795,
-1.3737132549285889... |
func (in *Meetup) DeepCopyObject() runtime.Object {
if c := in.DeepCopy(); c != nil {
return c
}
return nil
} | [
-0.6827515363693237,
-0.39739277958869934,
0.6592620611190796,
0.7679543495178223,
-0.6085612773895264,
0.7911738157272339,
0.9080434441566467,
0.6972641348838806,
-0.4996611475944519,
-0.101643405854702,
-0.14925141632556915,
-0.24217113852500916,
-0.39312508702278137,
-0.9360979199409485... |
func (in *MeetupList) DeepCopyInto(out *MeetupList) {
*out = *in
out.TypeMeta = in.TypeMeta
in.ListMeta.DeepCopyInto(&out.ListMeta)
if in.Items != nil {
in, out := &in.Items, &out.Items
*out = make([]Meetup, len(*in))
for i := range *in {
(*in)[i].DeepCopyInto(&(*out)[i])
}
}
return
} | [
-0.6185911297798157,
0.08875223249197006,
0.7402939200401306,
0.834389865398407,
-0.8200302720069885,
0.14958518743515015,
-0.1367550939321518,
1.2978283166885376,
-0.6652659177780151,
0.6128942966461182,
-1.1172308921813965,
0.08870561420917511,
-0.14825578033924103,
-0.3815174698829651,
... |
func (in *MeetupList) DeepCopy() *MeetupList {
if in == nil {
return nil
}
out := new(MeetupList)
in.DeepCopyInto(out)
return out
} | [
-1.5935742855072021,
0.20453964173793793,
0.2341155707836151,
1.6706832647323608,
-1.317979097366333,
0.30182120203971863,
0.2951173782348633,
0.8785062432289124,
0.28019291162490845,
0.8961596488952637,
-1.4588987827301025,
-0.5889279246330261,
-0.17120328545570374,
-0.3745403289794922,
... |
func (in *MeetupList) DeepCopyObject() runtime.Object {
if c := in.DeepCopy(); c != nil {
return c
}
return nil
} | [
-1.2013864517211914,
-0.19293563067913055,
0.5570045709609985,
0.8682682514190674,
-1.0170832872390747,
0.7483649253845215,
0.960136353969574,
0.8359336853027344,
-0.10329760611057281,
0.26177576184272766,
-1.1294304132461548,
-0.5056732296943665,
0.003271183231845498,
-0.3664292097091675,... |
func (in *MeetupSpec) DeepCopyInto(out *MeetupSpec) {
*out = *in
if in.Tags != nil {
in, out := &in.Tags, &out.Tags
*out = make([]string, len(*in))
copy(*out, *in)
}
if in.Speakers != nil {
in, out := &in.Speakers, &out.Speakers
*out = make([]SpeakerSpec, len(*in))
copy(*out, *in)
}
return
} | [
-0.04895664006471634,
-0.30776140093803406,
0.777962863445282,
-0.22400465607643127,
-1.089459776878357,
0.1342676877975464,
-0.3029854893684387,
0.9942672252655029,
-1.1030323505401611,
0.1990503966808319,
-0.24795393645763397,
0.2898229658603668,
0.03190714865922928,
-0.5841895341873169,... |
func (in *MeetupSpec) DeepCopy() *MeetupSpec {
if in == nil {
return nil
}
out := new(MeetupSpec)
in.DeepCopyInto(out)
return out
} | [
-0.779633641242981,
0.2850889265537262,
0.4078577160835266,
0.6163874864578247,
-1.3829749822616577,
0.4300079345703125,
0.16385029256343842,
0.6910731196403503,
-0.38995471596717834,
0.5455775260925293,
-0.03565172106027603,
-0.5171391367912292,
0.7537083029747009,
-0.9575721025466919,
... |
func (in *MeetupStatus) DeepCopyInto(out *MeetupStatus) {
*out = *in
return
} | [
0.2683528661727905,
-0.13977128267288208,
0.34682536125183105,
0.21607935428619385,
-1.7023910284042358,
0.7186278104782104,
-0.6194422245025635,
1.0822532176971436,
-0.6136329174041748,
-0.6136095523834229,
-0.8794016242027283,
0.11440421640872955,
0.6601994633674622,
-1.0286725759506226,... |
func (in *MeetupStatus) DeepCopy() *MeetupStatus {
if in == nil {
return nil
}
out := new(MeetupStatus)
in.DeepCopyInto(out)
return out
} | [
-0.8688647150993347,
0.03152429312467575,
0.09272350370883942,
0.5885418057441711,
-1.6040756702423096,
0.24879148602485657,
-0.40924397110939026,
0.5082394480705261,
0.202365905046463,
-0.41406136751174927,
-0.675814688205719,
-0.7628138065338135,
0.37709563970565796,
-0.8227409720420837,... |
func (in *SpeakerSpec) DeepCopyInto(out *SpeakerSpec) {
*out = *in
return
} | [
0.6519491076469421,
-0.5707423090934753,
0.42753443121910095,
-0.14907994866371155,
-0.8936938643455505,
0.44128623604774475,
0.03216136246919632,
0.9689241051673889,
-1.1346218585968018,
-0.11045416444540024,
-0.6863812208175659,
0.9739153385162354,
-0.01110893301665783,
-0.15811601281166... |
func (in *SpeakerSpec) DeepCopy() *SpeakerSpec {
if in == nil {
return nil
}
out := new(SpeakerSpec)
in.DeepCopyInto(out)
return out
} | [
-0.018242275342345238,
-0.8293753862380981,
0.22569112479686737,
0.6737871170043945,
-0.5943088531494141,
0.05527723580598831,
0.37417083978652954,
0.14364178478717804,
-0.06393871456384659,
0.24013777077198029,
-0.19162960350513458,
0.014345714822411537,
-0.5867558717727661,
-0.0411061532... |
func (in *Weekly) DeepCopyInto(out *Weekly) {
*out = *in
out.TypeMeta = in.TypeMeta
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
in.Spec.DeepCopyInto(&out.Spec)
out.Status = in.Status
return
} | [
0.3274836242198944,
-0.08504825085401535,
0.4458102285861969,
-0.49456480145454407,
-0.9815800786018372,
-0.0453035868704319,
-0.3493124842643738,
0.6467835307121277,
-0.4834275543689728,
-0.7049577236175537,
-0.6289321780204773,
1.2629166841506958,
0.21762323379516602,
-0.538851797580719,... |
func (in *Weekly) DeepCopy() *Weekly {
if in == nil {
return nil
}
out := new(Weekly)
in.DeepCopyInto(out)
return out
} | [
-0.9563786387443542,
0.9583341479301453,
0.25071898102760315,
0.3635696768760681,
-0.5427128672599792,
-0.6419552564620972,
-0.05699596926569939,
0.11251552402973175,
0.5390954613685608,
-0.9727662205696106,
-0.3640771508216858,
0.5156244039535522,
-0.6413761973381042,
-0.8758652806282043,... |
func (in *Weekly) DeepCopyObject() runtime.Object {
if c := in.DeepCopy(); c != nil {
return c
}
return nil
} | [
-0.40925148129463196,
0.13854306936264038,
0.5878715515136719,
-0.43723922967910767,
-0.9627246856689453,
0.14262056350708008,
0.46520376205444336,
0.031447023153305054,
-0.06401008367538452,
-0.989220917224884,
-0.19806063175201416,
0.18159227073192596,
-0.07487352192401886,
-0.6126618981... |
func (in *WeeklyList) DeepCopyInto(out *WeeklyList) {
*out = *in
out.TypeMeta = in.TypeMeta
in.ListMeta.DeepCopyInto(&out.ListMeta)
if in.Items != nil {
in, out := &in.Items, &out.Items
*out = make([]Weekly, len(*in))
for i := range *in {
(*in)[i].DeepCopyInto(&(*out)[i])
}
}
return
} | [
0.050912611186504364,
0.4138786792755127,
0.43381810188293457,
-0.04130993038415909,
-0.901708722114563,
-0.14141108095645905,
-0.5481629371643066,
0.85679030418396,
0.0034557096660137177,
0.26856091618537903,
-0.9540026187896729,
0.906087338924408,
-0.181715190410614,
-0.4589760899543762,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.