text stringlengths 11 6.3k | embedding listlengths 768 768 |
|---|---|
func NewMarshallerUnmarshaller(t mockConstructorTestingTNewMarshallerUnmarshaller) *MarshallerUnmarshaller {
mock := &MarshallerUnmarshaller{}
mock.Mock.Test(t)
t.Cleanup(func() { mock.AssertExpectations(t) })
return mock
} | [
-0.06312858313322067,
-0.7471699118614197,
0.33820492029190063,
-0.2707366943359375,
-0.48222190141677856,
0.023559624329209328,
0.19085869193077087,
0.8022156357765198,
0.36121678352355957,
-0.7261670827865601,
0.12290491163730621,
-1.0097712278366089,
0.02207726053893566,
0.5976442694664... |
func FindEndpoint(conn *s3outposts.S3Outposts, endpointArn string) (*s3outposts.Endpoint, error) {
input := &s3outposts.ListEndpointsInput{}
var result *s3outposts.Endpoint
err := conn.ListEndpointsPages(input, func(page *s3outposts.ListEndpointsOutput, lastPage bool) bool {
if page == nil {
return !lastPage
... | [
0.3660706877708435,
-1.1189262866973877,
0.7163217663764954,
0.15745890140533447,
0.1549975425004959,
-0.14003430306911469,
-0.4561043381690979,
0.009766241535544395,
0.21001899242401123,
0.2585022449493408,
0.5950554609298706,
-0.15991082787513733,
-0.8672880530357361,
0.2587169408798218,... |
func Layout(db *h.DagBuilderHelper) (ipld.Node, error) {
newRoot := db.NewFSNodeOverDag(ft.TFile)
root, _, err := fillTrickleRec(db, newRoot, -1)
if err != nil {
return nil, err
}
return root, db.Add(root)
} | [
-0.05266652628779411,
0.9169901609420776,
0.3172066807746887,
-0.6544889211654663,
-0.4574556052684784,
0.07618822157382965,
1.4423542022705078,
0.6975275874137878,
-0.3284011483192444,
-0.5236859917640686,
0.5913763642311096,
-1.3061957359313965,
0.36137640476226807,
-0.2514462471008301,
... |
func fillTrickleRec(db *h.DagBuilderHelper, node *h.FSNodeOverDag, maxDepth int) (filledNode ipld.Node, nodeFileSize uint64, err error) {
// Always do this, even in the base case
if err := db.FillNodeLayer(node); err != nil {
return nil, 0, err
}
// For each depth in [1, `maxDepth`) (or without limit if `maxDept... | [
-0.10947830229997635,
1.603898525238037,
0.7549686431884766,
-0.7927436232566833,
-0.2832754850387573,
-0.8791413307189941,
0.6504619717597961,
0.22047802805900574,
0.05250728502869606,
-0.5743727087974548,
-0.08670775592327118,
-0.2057090848684311,
0.4487592279911041,
-0.1036246046423912,... |
func Append(ctx context.Context, basen ipld.Node, db *h.DagBuilderHelper) (out ipld.Node, errOut error) {
base, ok := basen.(*dag.ProtoNode)
if !ok {
return nil, dag.ErrNotProtobuf
}
// Convert to unixfs node for working with easily
fsn, err := h.NewFSNFromDag(base)
if err != nil {
return nil, err
}
// G... | [
0.21679668128490448,
0.915486216545105,
0.9311329126358032,
-0.35135871171951294,
-0.399018257856369,
-0.36737123131752014,
0.2707902789115906,
0.2141520082950592,
0.264661967754364,
-0.9718989729881287,
-0.0038958711083978415,
-0.17006301879882812,
0.3821234405040741,
0.6798065900802612,
... |
func appendRec(ctx context.Context, fsn *h.FSNodeOverDag, db *h.DagBuilderHelper, maxDepth int) (*h.FSNodeOverDag, uint64, error) {
if maxDepth == 0 || db.Done() {
return fsn, fsn.FileSize(), nil
}
// Get depth of this 'tree'
depth, repeatNumber := trickleDepthInfo(fsn, db.Maxlinks())
if depth == 0 {
// If di... | [
-0.08747556805610657,
1.1653238534927368,
0.9136583805084229,
-0.8605658411979675,
-0.6148780584335327,
-0.9517188668251038,
0.8541789650917053,
0.30313265323638916,
0.3720579445362091,
-1.0800763368606567,
0.13531842827796936,
-0.2535456418991089,
0.6862162947654724,
0.9519625306129456,
... |
func trickleDepthInfo(node *h.FSNodeOverDag, maxlinks int) (depth int, repeatNumber int) {
n := node.NumChildren()
if n < maxlinks {
// We didn't even added the initial `maxlinks` leaf nodes (`FillNodeLayer`).
return 0, 0
}
nonLeafChildren := n - maxlinks
// The number of non-leaf child nodes added in `fillT... | [
-0.8066504001617432,
0.8116873502731323,
0.6225917935371399,
-0.980871319770813,
-0.5095866322517395,
-0.26353979110717773,
1.1426146030426025,
-0.09909986704587936,
0.058583829551935196,
-0.8219966292381287,
-0.7905557751655579,
0.4035218060016632,
0.7518834471702576,
0.42698934674263,
... |
func VerifyTrickleDagStructure(nd ipld.Node, p VerifyParams) error {
return verifyTDagRec(nd, -1, p)
} | [
-0.09941644221544266,
1.473264217376709,
0.10418403148651123,
-0.47743743658065796,
0.7756792306900024,
0.18600425124168396,
0.7425548434257507,
-0.6839280128479004,
-0.4039616286754608,
-0.4132324755191803,
-0.39062246680259705,
0.5866273045539856,
-0.09325157850980759,
0.5024693608283997... |
func verifyTDagRec(n ipld.Node, depth int, p VerifyParams) error {
codec := cid.DagProtobuf
if depth == 0 {
if len(n.Links()) > 0 {
return errors.New("expected direct block")
}
// zero depth dag is raw data block
switch nd := n.(type) {
case *dag.ProtoNode:
fsn, err := ft.FSNodeFromBytes(nd.Data())
... | [
0.21255360543727875,
0.5394850969314575,
0.7988957762718201,
-0.5872397422790527,
0.1802208572626114,
0.19253408908843994,
0.17062710225582123,
-0.08878619968891144,
-0.41544923186302185,
-0.6515407562255859,
0.013307332992553711,
1.3693056106567383,
-0.022685430943965912,
0.39252850413322... |
func (Status) Fields() []ent.Field {
return []ent.Field{
field.String("description").NotEmpty().Unique(),
}
} | [
-0.3731288015842438,
0.4106324017047882,
0.059464532881975174,
-1.0612207651138306,
0.8411628603935242,
1.1687021255493164,
-1.2920668125152588,
0.6554420590400696,
0.6621268391609192,
0.026667818427085876,
-0.5226140022277832,
0.10223107039928436,
-0.1297723799943924,
0.23701763153076172,... |
func (Status) Edges() []ent.Edge {
return []ent.Edge{
edge.To("checkouts", Checkout.Type),
}
} | [
-0.8177122473716736,
0.16817526519298553,
0.3002578616142273,
0.22282694280147552,
0.8200891613960266,
0.3487240672111511,
-1.3138822317123413,
1.053429126739502,
1.2185148000717163,
0.7893428206443787,
0.3774963319301605,
0.23976098001003265,
0.43960514664649963,
0.3767174780368805,
-0.... |
func startWebAdmin(s *server, organization string, enableAPIAuthentication bool) {
webAdminLogger := shared.NewLogger(&s.config.WebAdmin.Logger)
s.webadmin = webadmin.New(s.config.WebAdmin, applicationName, webAdminLogger)
// Enable showing indexpage on / that shows all possible routes
s.webadmin.Router.GET("/", ... | [
-0.0262504480779171,
-0.7434374094009399,
0.7743241190910339,
0.5736775994300842,
-0.28916555643081665,
0.8526782989501953,
0.3486255705356598,
0.29548007249832153,
0.31726762652397156,
-0.2872655391693115,
-0.30369898676872253,
1.599617838859558,
0.10752450674772263,
1.2025303840637207,
... |
func (o *Output) QuestionsAsCodeString() string {
var ss []string
s := `
switch question.Id {
`
ss = append(ss, s)
fs := `
case "%v":
// %v
`
for _, val := range o.Questions {
s := fmt.Sprintf(fs, val.Id, val.Text)
ss = append(ss, s)
}
s = `
default:
// TODO: Handle error
break
}
`
ss = app... | [
0.6236705183982849,
-0.7062733769416809,
0.6175078749656677,
-0.3526410460472107,
-0.6292646527290344,
0.5841296315193176,
-0.20201106369495392,
-1.4577463865280151,
-0.23310749232769012,
0.3101772665977478,
1.0983209609985352,
-0.7544869184494019,
0.4394468367099762,
-0.04185953363776207,... |
func (o LookupPoolResultOutput) FullPath() pulumi.StringOutput {
return o.ApplyT(func(v LookupPoolResult) string { return v.FullPath }).(pulumi.StringOutput)
} | [
0.6023774743080139,
-0.4037766754627228,
0.35033056139945984,
0.011298678815364838,
0.09426967054605484,
0.7947043776512146,
0.9611417651176453,
-0.3585134744644165,
0.8280117511749268,
-0.19288970530033112,
-0.053631242364645004,
0.3083363473415375,
0.2903220057487488,
-1.2944697141647339... |
func (o LookupPoolResultOutput) Id() pulumi.StringOutput {
return o.ApplyT(func(v LookupPoolResult) string { return v.Id }).(pulumi.StringOutput)
} | [
0.3874407708644867,
-0.6377406716346741,
0.1314643770456314,
-0.2714875042438507,
0.2871623933315277,
1.0079926252365112,
0.44777876138687134,
-0.1540742665529251,
1.0490854978561401,
-0.05484304204583168,
-0.5782980918884277,
0.6420509219169617,
-0.3647702634334564,
-1.6510990858078003,
... |
func NewSectionGroup()(*SectionGroup) {
m := &SectionGroup{
OnenoteEntityHierarchyModel: *NewOnenoteEntityHierarchyModel(),
}
odataTypeValue := "#microsoft.graph.sectionGroup";
m.SetOdataType(&odataTypeValue);
return m
} | [
-0.14276902377605438,
0.2287910133600235,
-0.212574765086174,
0.30848830938339233,
-0.3196338415145874,
-0.2826296091079712,
0.1538856476545334,
-0.9879648685455322,
-0.14297781884670258,
0.11301279813051224,
-0.10839124768972397,
0.3567965626716614,
-0.33383291959762573,
1.476717948913574... |
func CreateSectionGroupFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
return NewSectionGroup(), nil
} | [
0.6130233407020569,
-0.1792086660861969,
0.3041231334209442,
-0.10724550485610962,
-1.0594404935836792,
0.17685732245445251,
-0.054193269461393356,
-0.3365163803100586,
-0.4260903000831604,
-0.30746257305145264,
0.15967577695846558,
-0.17530126869678497,
0.20191378891468048,
1.233595371246... |
func (m *SectionGroup) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
res := m.OnenoteEntityHierarchyModel.GetFieldDeserializers()
res["parentNotebook"] = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.SetObjectVa... | [
-0.06313418596982956,
0.010053401812911034,
0.557472825050354,
-0.7708977460861206,
-0.3720354437828064,
-0.21205751597881317,
0.47067490220069885,
-0.331695020198822,
-0.9159899353981018,
-0.8450526595115662,
-0.4588928520679474,
-0.450574666261673,
-0.47342386841773987,
0.440186083316803... |
func (m *SectionGroup) GetParentNotebook()(Notebookable) {
return m.parentNotebook
} | [
0.21355481445789337,
-0.47799625992774963,
0.31958523392677307,
1.37900710105896,
-0.5220171213150024,
1.0294581651687622,
0.8041728138923645,
-1.3031152486801147,
-1.358023762702942,
-0.13230489194393158,
0.2745550274848938,
-0.5447378754615784,
-1.2593036890029907,
0.5696550607681274,
... |
func (m *SectionGroup) GetParentSectionGroup()(SectionGroupable) {
return m.parentSectionGroup
} | [
0.7184947729110718,
-0.12167689949274063,
-0.026170236989855766,
0.5204918384552002,
-0.9074994921684265,
-0.13582217693328857,
0.13839158415794373,
-0.8083704710006714,
-0.9887714982032776,
-0.5675385594367981,
0.6867851614952087,
-1.0279334783554077,
-0.6146910786628723,
1.04052472114562... |
func (m *SectionGroup) GetSectionGroups()([]SectionGroupable) {
return m.sectionGroups
} | [
-0.11613046377897263,
-0.22478537261486053,
0.22230391204357147,
1.6511765718460083,
-0.23065905272960663,
0.035384293645620346,
-0.18691430985927582,
-0.9205702543258667,
-0.40422022342681885,
-0.10994008928537369,
0.4016973674297333,
-0.03960033506155014,
-0.7523452043533325,
0.632061839... |
func (m *SectionGroup) GetSectionGroupsUrl()(*string) {
return m.sectionGroupsUrl
} | [
0.08042475581169128,
0.08837027847766876,
0.06174731254577637,
1.30320143699646,
-0.7386929392814636,
-0.1791229397058487,
-0.011750268749892712,
-0.1212845891714096,
-0.495383083820343,
-0.1731845736503601,
0.05809926241636276,
-0.41180911660194397,
-0.42976075410842896,
-0.05132191255688... |
func (m *SectionGroup) GetSections()([]OnenoteSectionable) {
return m.sections
} | [
0.08160918205976486,
-0.2730342447757721,
0.3448811173439026,
1.1505659818649292,
0.7620871067047119,
0.21660524606704712,
0.7889299988746643,
-1.6592198610305786,
0.16711655259132385,
-0.4331173002719879,
0.715455949306488,
-0.49710437655448914,
-1.1475337743759155,
0.5153802037239075,
... |
func (m *SectionGroup) GetSectionsUrl()(*string) {
return m.sectionsUrl
} | [
0.23022417724132538,
-0.29167258739471436,
0.25750190019607544,
0.7122063636779785,
-0.25547561049461365,
0.4626297652721405,
0.4896830916404724,
-0.7911713123321533,
0.22115744650363922,
-0.10163254290819168,
0.671474039554596,
-1.0697460174560547,
-0.43957576155662537,
0.4676776826381683... |
func (m *SectionGroup) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
err := m.OnenoteEntityHierarchyModel.Serialize(writer)
if err != nil {
return err
}
{
err = writer.WriteObjectValue("parentNotebook", m.GetParentNoteboo... | [
-0.13836269080638885,
-0.32433995604515076,
0.7031717300415039,
0.027838997542858124,
0.053544238209724426,
-0.11855879426002502,
1.1800785064697266,
-0.8700206279754639,
-1.0382877588272095,
0.023152323439717293,
-0.36451706290245056,
-0.4179825782775879,
-0.488974004983902,
0.96463990211... |
func (m *SectionGroup) SetParentNotebook(value Notebookable)() {
m.parentNotebook = value
} | [
-0.22464130818843842,
-0.18689365684986115,
0.20662455260753632,
1.1629717350006104,
-0.232042133808136,
1.3535345792770386,
0.801787793636322,
-1.1952117681503296,
-1.6846550703048706,
0.16648894548416138,
-0.6270484328269958,
-0.9129542708396912,
-1.130037784576416,
0.7912967205047607,
... |
func (m *SectionGroup) SetParentSectionGroup(value SectionGroupable)() {
m.parentSectionGroup = value
} | [
0.3526434302330017,
-0.09058002382516861,
-0.15360096096992493,
0.3610168695449829,
-0.946496307849884,
0.05938457325100899,
0.3160475492477417,
-0.5686017870903015,
-1.2796424627304077,
-0.09311438351869583,
0.07161218672990799,
-1.2920167446136475,
-0.2070508897304535,
1.3254653215408325... |
func (m *SectionGroup) SetSectionGroups(value []SectionGroupable)() {
m.sectionGroups = value
} | [
-0.6366579532623291,
0.13346628844738007,
0.07169362157583237,
1.3528785705566406,
-0.4654098451137543,
0.2355310022830963,
0.26991555094718933,
-0.9722356200218201,
-1.0093662738800049,
0.13448843359947205,
0.09475316852331161,
-0.9588367938995361,
-0.29085537791252136,
0.9809931516647339... |
func (m *SectionGroup) SetSectionGroupsUrl(value *string)() {
m.sectionGroupsUrl = value
} | [
-0.3384237587451935,
0.010028346441686153,
0.1722232550382614,
1.014198660850525,
-0.7416864037513733,
0.26518407464027405,
0.24198086559772491,
0.05265197157859802,
-0.7191278338432312,
0.16208840906620026,
-0.6757791042327881,
-0.7323089838027954,
-0.1998678743839264,
-0.1334981620311737... |
func (m *SectionGroup) SetSections(value []OnenoteSectionable)() {
m.sections = value
} | [
-0.4550846815109253,
0.41858282685279846,
0.20255692303180695,
0.7361329197883606,
0.2316036820411682,
0.2341843843460083,
1.0264036655426025,
-1.469118356704712,
-0.3413999080657959,
-0.30469855666160583,
0.5813408493995667,
-1.2602815628051758,
-0.36803141236305237,
1.1090816259384155,
... |
func (m *SectionGroup) SetSectionsUrl(value *string)() {
m.sectionsUrl = value
} | [
-0.22971010208129883,
-0.31696996092796326,
0.33427339792251587,
0.3439127802848816,
-0.5430712103843689,
0.8260576128959656,
0.7647201418876648,
-0.6805678009986877,
-0.06330649554729462,
0.2945401072502136,
0.04291151836514473,
-1.248311996459961,
0.0618877187371254,
0.5388824939727783,
... |
func (c *Client) CurrentContext() string {
return c.Context
} | [
-0.2002015858888626,
-0.977152407169342,
0.05420014262199402,
-0.07712095230817795,
-0.5617607235908508,
0.5156277418136597,
0.14449061453342438,
-0.3466759920120239,
0.49734506011009216,
0.5254461169242859,
0.23917509615421295,
0.7631440162658691,
-0.8611434102058411,
-0.09871731698513031... |
func (c *Client) KubeClient() kubernetes.Interface {
return c.Client
} | [
1.022417426109314,
-0.7420385479927063,
0.1624879539012909,
-0.2642574906349182,
-0.11468309164047241,
0.8383800983428955,
0.07416483014822006,
-1.0614601373672485,
0.49681001901626587,
-0.2967016398906708,
-0.060356128960847855,
0.3638775646686554,
-1.1036372184753418,
-0.7378411889076233... |
func (c *Client) Namespace() string {
return "testNamespace"
} | [
0.8525030016899109,
-0.6410317420959473,
0.2334764450788498,
0.13269981741905212,
-0.040457259863615036,
0.5951617360115051,
0.2809978425502777,
-1.0208982229232788,
1.3290592432022095,
-0.7165108919143677,
0.3923913240432739,
1.126914381980896,
-1.0860960483551025,
0.3130156695842743,
-... |
func (c *Client) RestConfig() *rest.Config {
return &rest.Config{
Host: "testHost",
}
} | [
1.693368673324585,
-0.10156477242708206,
0.30617809295654297,
0.06829490512609482,
-0.2565191090106964,
0.37621650099754333,
-0.008050196804106236,
1.0338939428329468,
-0.5360177755355835,
-0.6737507581710815,
-0.6548692584037781,
0.8224457502365112,
-0.8455154299736023,
0.2355193644762039... |
func (c *Client) KubeConfigLoader() kubeconfig.Loader {
return c.KubeLoader
} | [
-0.08699622750282288,
0.3513316512107849,
0.16460077464580536,
-0.019920693710446358,
-1.0875253677368164,
0.685374915599823,
-1.1978052854537964,
-1.076536774635315,
-0.13892517983913422,
1.2724919319152832,
-0.5748682022094727,
-0.6767950654029846,
-1.1099942922592163,
-0.041562210768461... |
func (c *Client) PrintWarning(generatedConfig *generated.Config, noWarning, shouldWait bool, log log.Logger) error {
return nil
} | [
-0.19009995460510254,
0.2759653627872467,
0.4599452614784241,
0.8515385985374451,
0.0020110716577619314,
0.8724578619003296,
-0.4611360430717468,
-0.2730771005153656,
-0.553385853767395,
-0.11732755601406097,
-0.09236664324998856,
0.7046710848808289,
-0.2745141088962555,
0.4892490804195404... |
func (c *Client) CopyFromReader(pod *k8sv1.Pod, container, containerPath string, reader io.Reader) error {
return nil
} | [
-0.3697638213634491,
-1.4387365579605103,
0.30207130312919617,
0.23393931984901428,
-0.8389790654182434,
0.692011296749115,
-0.09198625385761261,
-0.934882640838623,
0.20262444019317627,
0.4092591404914856,
0.5658060312271118,
-0.05975921079516411,
-0.21042434871196747,
0.00729321409016847... |
func (c *Client) Copy(pod *k8sv1.Pod, container, containerPath, localPath string, exclude []string) error {
return nil
} | [
-0.4231311082839966,
-0.41650986671447754,
0.294290155172348,
0.8090217709541321,
-0.6998311281204224,
1.6130855083465576,
0.44227781891822815,
-0.3728002607822418,
0.18532852828502655,
0.6661274433135986,
0.24902935326099396,
0.41798970103263855,
-0.7429203987121582,
-0.9566090106964111,
... |
func (c *Client) ExecStreamWithTransport(options *kubectl.ExecStreamWithTransportOptions) error {
return nil
} | [
0.20959429442882538,
0.03594771772623062,
0.5101044178009033,
0.1771337389945984,
-0.27776411175727844,
0.69572913646698,
0.015056249685585499,
-1.5099684000015259,
0.2973043918609619,
-0.26702359318733215,
-0.3326747417449951,
-0.17391790449619293,
-0.21400289237499237,
0.6619947552680969... |
func (c *Client) ExecStream(options *kubectl.ExecStreamOptions) error {
return nil
} | [
0.03330392390489578,
0.3167659342288971,
0.47801491618156433,
0.8186787962913513,
0.27990594506263733,
0.4688096344470978,
-0.128309428691864,
-0.3700958490371704,
0.37703737616539,
-0.8811540603637695,
0.3825881779193878,
0.632493257522583,
-0.6734725832939148,
0.9812417030334473,
-0.49... |
func (c *Client) ExecBuffered(pod *k8sv1.Pod, container string, command []string, input io.Reader) ([]byte, []byte, error) {
return []byte{}, []byte{}, nil
} | [
-0.26144281029701233,
-0.505556583404541,
0.6306487321853638,
0.14149226248264313,
0.4943769574165344,
0.4728843569755554,
-0.3089175224304199,
-0.8630555868148804,
0.020259439945220947,
-0.2246428281068802,
-0.8186548352241516,
1.2975860834121704,
-0.3948284685611725,
0.5980406999588013,
... |
func (c *Client) GenericRequest(options *kubectl.GenericRequestOptions) (string, error) {
return "", nil
} | [
-0.6456375122070312,
-0.12059333175420761,
0.36046454310417175,
0.21929125487804413,
0.2446310818195343,
0.534810483455658,
-1.5109857320785522,
-0.9879204034805298,
-0.0504181869328022,
-0.18424390256404877,
1.2081425189971924,
0.5360776782035828,
-0.44355759024620056,
-0.6215729117393494... |
func (c *Client) ReadLogs(namespace, podName, containerName string, lastContainerLog bool, tail *int64) (string, error) {
return "ContainerLogs", nil
} | [
0.15038901567459106,
0.340146541595459,
0.5727894306182861,
-0.3195579946041107,
-0.3728489279747009,
-0.171437069773674,
-0.48539888858795166,
-1.4294850826263428,
0.0039854287169873714,
0.34326475858688354,
0.6840748190879822,
0.9886107444763184,
-0.41107162833213806,
-0.7764051556587219... |
func (c *Client) LogMultipleTimeout(imageSelector []string, interrupt chan error, tail *int64, writer io.Writer, timeout time.Duration, log log.Logger) error {
_, err := writer.Write([]byte("ContainerLogs"))
return err
} | [
-0.6488291621208191,
0.056500036269426346,
0.5001270174980164,
-0.29950451850891113,
0.335898756980896,
-0.5999095439910889,
-0.29723653197288513,
-0.0010929044801741838,
0.07607182115316391,
0.3622703552246094,
-1.0932245254516602,
-0.2305806577205658,
-0.1643993854522705,
0.5451353788375... |
func (c *Client) LogMultiple(imageSelector []string, interrupt chan error, tail *int64, writer io.Writer, log log.Logger) error {
_, err := writer.Write([]byte("ContainerLogs"))
return err
} | [
-1.4546536207199097,
0.46230942010879517,
0.4345448315143585,
0.10510413348674774,
0.9167690277099609,
-0.6645671129226685,
-0.3817357122898102,
-0.5500433444976807,
-0.11477236449718475,
-0.3580528795719147,
-0.8133103251457214,
-0.7387564182281494,
-0.5409910678863525,
0.6379103660583496... |
func (c *Client) Logs(ctx context.Context, namespace, podName, containerName string, lastContainerLog bool, tail *int64, follow bool) (io.ReadCloser, error) {
retVal := ioutil.NopCloser(strings.NewReader("ContainerLogs"))
return retVal, nil
} | [
-0.5258863568305969,
0.4714548587799072,
0.43893885612487793,
-0.6153634190559387,
-0.48109540343284607,
0.025892358273267746,
-0.4855630397796631,
-1.4636603593826294,
-0.2054780274629593,
-1.0642800331115723,
0.6056920886039734,
0.4120871126651764,
-0.6712670922279358,
0.0952246114611625... |
func (c *Client) GetUpgraderWrapper() (http.RoundTripper, kubectl.UpgraderWrapper, error) {
return nil, nil, nil
} | [
-0.8436766266822815,
-0.8006174564361572,
0.6843962669372559,
0.7274947762489319,
-0.4668317139148712,
-0.0029993816278874874,
-0.5940436124801636,
-0.6455897092819214,
0.014860031194984913,
-0.37815189361572266,
-0.1501140594482422,
0.39550355076789856,
-0.28983116149902344,
1.39855170249... |
func (c *Client) EnsureDefaultNamespace(log log.Logger) error {
return nil
} | [
0.14783453941345215,
0.0716049075126648,
0.23341651260852814,
0.43981796503067017,
1.112870454788208,
0.18743202090263367,
0.15108688175678253,
-1.4143096208572388,
1.2547682523727417,
-0.37731122970581055,
-1.1874161958694458,
0.1596437394618988,
-1.06729257106781,
2.1528942584991455,
-... |
func (c *Client) EnsureGoogleCloudClusterRoleBinding(log log.Logger) error {
return nil
} | [
0.39738842844963074,
0.056954242289066315,
0.20290210843086243,
0.2857775092124939,
1.6326777935028076,
0.4659188389778137,
0.0743294507265091,
-0.22990819811820984,
0.0535450205206871,
0.4605550467967987,
-0.5894954800605774,
0.22980253398418427,
-0.7286444306373596,
0.6085991263389587,
... |
func (c *Client) GetRunningPodsWithImage(imageNames []string, namespace string, maxWaiting time.Duration) ([]*k8sv1.Pod, error) {
return nil, nil
} | [
-1.6965252161026,
-0.37010499835014343,
0.3082856833934784,
0.9102249145507812,
-0.1935529261827469,
0.13467898964881897,
-0.7116692662239075,
-0.4815141558647156,
-0.573419451713562,
0.36644086241722107,
0.12229279428720474,
0.4557812213897705,
-1.0975325107574463,
0.10259867459535599,
... |
func (c *Client) GetNewestRunningPod(labelSelector string, imageSelector []string, namespace string, maxWaiting time.Duration) (*k8sv1.Pod, error) {
return nil, nil
} | [
-1.05258309841156,
-0.4504230320453644,
0.4493371546268463,
0.3248257637023926,
0.3689054548740387,
0.38696229457855225,
-0.7653687000274658,
-0.6369649171829224,
-0.39311397075653076,
0.13507890701293945,
0.11893592029809952,
0.8403280973434448,
-0.9178891181945801,
-0.4942927956581116,
... |
func (c *Client) NewPortForwarder(pod *k8sv1.Pod, ports []string, addresses []string, stopChan chan struct{}, readyChan chan struct{}, errorChan chan error) (*portforward.PortForwarder, error) {
return nil, nil
} | [
-0.6196796298027039,
0.11705290526151657,
0.3313470482826233,
-1.0762145519256592,
0.1377987563610077,
-0.11137025058269501,
-0.1758222132921219,
-1.032745122909546,
-0.9721533060073853,
-0.49297472834587097,
-0.5425823926925659,
0.7006850838661194,
-0.4201929271221161,
0.46841585636138916... |
func (c *Client) IsLocalKubernetes() bool {
return c.IsKubernetes
} | [
0.6660522818565369,
-0.3481280505657196,
0.1110307052731514,
0.37290385365486145,
-0.24282971024513245,
-0.0043654548935592175,
-0.712935745716095,
-0.16635560989379883,
1.18240225315094,
0.2144247591495514,
0.031169872730970383,
0.014752484858036041,
-0.4435461759567261,
0.532738924026489... |
func (f *FakeFakeClientset) Discovery() discovery.DiscoveryInterface {
return &FakeFakeDiscovery{
DiscoveryInterface: f.Clientset.Discovery(),
RBACEnabled: f.RBACEnabled,
}
} | [
0.8366469144821167,
-0.22279800474643707,
0.2190173864364624,
0.05547795817255974,
-0.15307167172431946,
-0.4262041449546814,
1.091343641281128,
-1.104868769645691,
0.20023153722286224,
-0.14495661854743958,
-0.03796783462166786,
0.006663660053163767,
-0.2314177006483078,
1.901354908943176... |
func (f *FakeFakeDiscovery) ServerResources() ([]*metav1.APIResourceList, error) {
if f.RBACEnabled {
return []*metav1.APIResourceList{
&metav1.APIResourceList{
GroupVersion: "rbac.authorization.k8s.io/v1beta1",
},
}, nil
}
return []*metav1.APIResourceList{}, nil
} | [
-0.6200243234634399,
-0.06691630929708481,
0.28198763728141785,
0.815069854259491,
0.20740488171577454,
0.027609795331954956,
0.4401839077472687,
0.09500286728143692,
0.8145674467086792,
1.225012183189392,
-1.1504546403884888,
-0.13726578652858734,
-1.9636468887329102,
1.1286976337432861,
... |
func createForumThread(w http.ResponseWriter, r *http.Request, db *sql.DB, store *sessions.CookieStore) {
fmt.Println("Creating forum thread...")
//add headers to response
addWriteHeaders(&w, r)
//ignore options requests
if handleOptionsRequests(w, r) == true {
return
}
//check for session to see... | [
-0.4718126058578491,
-0.2980746030807495,
0.926446795463562,
0.430431604385376,
0.7004235982894897,
-0.10068382322788239,
-0.07503996789455414,
-0.23939800262451172,
-0.037712324410676956,
-0.46919330954551697,
-0.08133690804243088,
-0.6055878400802612,
-0.845011830329895,
0.36447864770889... |
func getForumThread(w http.ResponseWriter, r *http.Request, db *sql.DB, option int, sortBy int, pageNumber int, id int) {
fmt.Println("Getting forum thread...")
//add headers to response
addWriteHeaders(&w, r)
//ignore options requests
if handleOptionsRequests(w, r) == true {
return
}
//variable(s... | [
0.029765484854578972,
-0.11668622493743896,
0.86090487241745,
0.466802179813385,
0.7740783095359802,
-0.32027074694633484,
0.005025716032832861,
-0.31797778606414795,
0.24427162110805511,
-0.6101786494255066,
0.7151603102684021,
0.17873556911945343,
-0.7540069222450256,
0.6330231428146362,... |
func getForumThreadProtected(w http.ResponseWriter, r *http.Request, db *sql.DB, store *sessions.CookieStore, sortBy int, pageNumber int) {
fmt.Println("Getting forum thread...")
//add headers to response
addWriteHeaders(&w, r)
//ignore options requests
if handleOptionsRequests(w, r) == true {
return
... | [
0.030034907162189484,
0.145578071475029,
0.9439913034439087,
0.4246482849121094,
0.4180094003677368,
-0.8458423018455505,
0.012376489117741585,
-0.6440321207046509,
0.6114962100982666,
-0.15221750736236572,
0.6814813017845154,
0.15091325342655182,
-0.9140461683273315,
0.18475745618343353,
... |
func scoreForumThread(w http.ResponseWriter, r *http.Request, db *sql.DB, store *sessions.CookieStore, option int, thread_id int) {
fmt.Println("Score forum thread...")
//add headers to response
addWriteHeaders(&w, r)
//ignore options requests
if handleOptionsRequests(w, r) == true {
return
}
//ch... | [
0.08585381507873535,
0.14197738468647003,
0.8808061480522156,
0.6096552610397339,
1.047027826309204,
-0.6095653176307678,
0.36543533205986023,
0.22121042013168335,
0.07597021013498306,
0.9879772067070007,
0.30306416749954224,
-0.24091199040412903,
-0.8335850834846497,
0.11477413773536682,
... |
func editForumThread(w http.ResponseWriter, r *http.Request, db *sql.DB, store *sessions.CookieStore) {
fmt.Println("Edit forum thread...")
//add headers to response
addWriteHeaders(&w, r)
//ignore options requests
if handleOptionsRequests(w, r) == true {
return
}
//check for session to see if cli... | [
-0.7825562953948975,
-0.7167490124702454,
0.7576552629470825,
0.5071069002151489,
0.408579021692276,
-0.4115276634693146,
0.6352819800376892,
-0.18343882262706757,
0.07594283670186996,
-0.12856845557689667,
0.38561850786209106,
0.20273743569850922,
-0.5951672196388245,
0.23346413671970367,... |
func deleteForumThread(w http.ResponseWriter, r *http.Request, db *sql.DB, store *sessions.CookieStore, id int) {
fmt.Println("Delete forum thread...")
//add headers to response
addWriteHeaders(&w, r)
//ignore options requests
if handleOptionsRequests(w, r) == true {
return
}
//check for session t... | [
0.008273509331047535,
-0.4262390434741974,
0.6864221096038818,
1.2393447160720825,
0.27395352721214294,
-0.35363292694091797,
0.36654889583587646,
-0.042535290122032166,
0.5810396075248718,
-0.14503003656864166,
0.6245520114898682,
0.016598647460341454,
-0.5749260783195496,
0.9280521869659... |
func popularThreads(w http.ResponseWriter, r *http.Request, db *sql.DB) {
fmt.Println("Getting popular forum threads...")
//add headers to response
addWriteHeaders(&w, r)
//ignore options requests
if handleOptionsRequests(w, r) == true {
return
}
//variable(s) to hold the returned values from the ... | [
-0.19261692464351654,
-0.3275771141052246,
0.7972836494445801,
-0.09178775548934937,
-0.12186364084482193,
-0.2087218463420868,
-0.06234641373157501,
-1.1646050214767456,
-0.2623896598815918,
0.23289746046066284,
-0.6194270253181458,
-0.32031378149986267,
-0.5961964726448059,
0.79678219556... |
func NewClient(api *zabbix.API, writepath, readpath string, editables *EditableConfiguration) *Client {
return &Client{api, writepath, readpath, editables}
} | [
-0.2559841573238373,
-1.3097023963928223,
0.15780757367610931,
0.29305291175842285,
-0.028976168483495712,
0.005745832808315754,
0.7887890338897705,
-0.6937795281410217,
-0.7738134264945984,
-0.2682895362377167,
0.41389644145965576,
0.35279786586761475,
-0.5074452757835388,
-1.772532343864... |
func (client *Client) PullHost() error {
logger.Log("info", "start PullHost()")
params := make(map[string]interface{})
params["output"] = "extend"
params["selectGroups"] = "extend"
params["selectParentTemplates"] = "extend"
hosts, err := client.api.GetHost(params)
if err != nil {
return err
}
logger.Log(... | [
-0.3385036289691925,
-0.23253095149993896,
0.8113768100738525,
0.6940277218818665,
0.07930132746696472,
0.41687873005867004,
0.369683176279068,
0.08096536248922348,
-0.7022752165794373,
0.21353207528591156,
-0.5530041456222534,
0.42640841007232666,
-0.7246900796890259,
-0.9248332381248474,... |
func (client *Client) PushHost() error {
logger.Log("info", "start PushHost()")
params := make(map[string]interface{})
params["output"] = "extend"
params["selectGroups"] = "extend"
params["selectParentTemplates"] = "extend"
remoteAllObjects, err := client.api.GetHost(params)
if err != nil {
return err
}
... | [
-0.04042139649391174,
-0.9563614726066589,
0.8455873727798462,
0.3361283540725708,
-0.7226830720901489,
0.3008079528808594,
0.027677468955516815,
-0.002454058500006795,
-1.0917242765426636,
0.5407659411430359,
-0.1663825958967209,
0.8924399614334106,
-0.4109521508216858,
0.3904761373996734... |
func (client *Client) PullHostgroup() error {
logger.Log("info", "start PullHostgroup(path="+client.writePath+")")
return nil
} | [
-0.3103351593017578,
0.2170291244983673,
0.11807350814342499,
-0.20179522037506104,
-0.46899911761283875,
0.11826828122138977,
1.05247163772583,
0.711269736289978,
-1.6187665462493896,
0.04646473377943039,
-0.012187974527478218,
0.5066300630569458,
-1.0178799629211426,
0.26230770349502563,... |
func (client *Client) PushHostgroup() error {
logger.Log("info", "start PushHostgroup(path="+client.readPath+")")
return nil
} | [
-0.10741239041090012,
0.6710913181304932,
0.28895771503448486,
-0.09056886285543442,
-0.8871781826019287,
0.45202499628067017,
0.5550071001052856,
0.2640515863895416,
-1.9756497144699097,
0.2784348130226135,
0.27935314178466797,
0.8473600745201111,
-0.6879377365112305,
0.8458341956138611,
... |
func TestReadWriteDeleteTx(t *testing.T) {
rand := rand.New(rand.NewSource(time.Now().Unix()))
accAHash := protocol.SerializeHashContent(accA.Address)
accBHash := protocol.SerializeHashContent(accB.Address)
var hashFundsSlice []*protocol.FundsTx
var hashAccSlice []*protocol.AccTx
var hashConfigSlice []*protoco... | [
0.2190871387720108,
0.17253577709197998,
0.772838830947876,
0.33262285590171814,
-0.20470595359802246,
-0.8566344976425171,
0.6767503023147583,
-0.06263267248868942,
0.5405571460723877,
-0.3304991126060486,
0.13839705288410187,
0.023886045441031456,
0.007129985839128494,
0.2630442380905151... |
func WithIndexCtx(ctx context.Context, indexCtx IndexCtx) context.Context {
return context.WithValue(ctx, indexCtxKey{}, indexCtx)
} | [
-0.45363855361938477,
-0.7248241305351257,
0.3287241756916046,
-0.8919286131858826,
-1.1666253805160522,
0.4448002874851227,
-0.5728543400764465,
-0.7422863245010376,
0.36753860116004944,
-0.8740513920783997,
0.5956039428710938,
-0.048013780266046524,
0.3194677233695984,
-0.999888837337493... |
func MustGetIndexCtx(ctx context.Context) IndexCtx {
indexCtx, ok := ctx.Value(indexCtxKey{}).(IndexCtx)
if !ok {
log.S().Panic("Miss index context")
}
return indexCtx
} | [
-0.46859753131866455,
-0.04799679294228554,
0.5169928073883057,
0.45149993896484375,
-0.20988047122955322,
0.5634517073631287,
-0.7529169917106628,
-0.9560437202453613,
1.0523241758346558,
-0.09953325241804123,
0.13075418770313263,
0.1580885797739029,
-0.23852519690990448,
-0.8655276298522... |
func (o Option) apply(r *Upload) *Upload { return o(r).(*Upload) } | [
-0.09244149178266525,
0.3265669345855713,
0.4339207410812378,
0.20804572105407715,
-0.09339091181755066,
-0.48072612285614014,
0.7352098822593689,
-0.3301681578159332,
0.7802665829658508,
0.3649732172489166,
-0.27810734510421753,
-0.6521786451339722,
-0.5044131278991699,
0.1196103915572166... |
func (o Option) check(r *Upload) interface{} { return o(r) } | [
-0.2862609326839447,
-0.14763595163822174,
0.5010536909103394,
0.5833942890167236,
0.39632922410964966,
-0.1835133284330368,
0.9082481861114502,
-0.9743198752403259,
0.22609062492847443,
0.5382756590843201,
0.13107897341251373,
-0.36190447211265564,
-0.4710369110107422,
0.4446391761302948,... |
func parseIPAndPort(input string) (string, int, error) {
separator := strings.LastIndex(input, ":")
if separator == -1 {
return "", 0, errors.New("cannot parse IP and port correctly")
}
IPStr := input[0:separator]
if IPStr[0] == '[' {
IPStr = IPStr[1 : len(IPStr)-1]
}
for _, prefix := range localIPv4 {
if ... | [
-0.3849462866783142,
-1.210993766784668,
0.9129190444946289,
-0.4236111640930176,
-0.8801054358482361,
-0.3459102511405945,
1.0017011165618896,
0.28572171926498413,
-0.10699138790369034,
0.4420235753059387,
-0.43453705310821533,
-0.16178447008132935,
-0.6648716926574707,
-0.756085515022277... |
func parseCookie(input string) (string, error) {
if !strings.HasPrefix(input, "sk:") {
return "", errors.New("no cookie")
}
return input[3:], nil
} | [
0.26703333854675293,
0.13445286452770233,
0.4886668622493744,
1.2498929500579834,
-1.1006567478179932,
-0.21033897995948792,
0.4146638810634613,
-0.1435159593820572,
-0.18157260119915009,
0.7687371373176575,
0.5610607862472534,
-0.2189108431339264,
-0.6441627740859985,
-0.07511318475008011... |
func parseSSLine(line string) (*connection.Connection, error) {
segments := strings.Fields(line)
if len(segments) < 6 {
return nil, errors.New("incomplete line")
}
if segments[0] != "tcp" || segments[1] != "ESTAB" {
return nil, errors.New("not a TCP connection")
}
localIP, localPort, err := parseIPAndPort(seg... | [
0.05434136092662811,
-0.6905096769332886,
0.6565113067626953,
0.2199610322713852,
0.44024327397346497,
-0.8211010098457336,
0.14344196021556854,
-0.06947503983974457,
-0.5265506505966187,
-0.03439989313483238,
0.032332759350538254,
-0.45959070324897766,
-0.5678684711456299,
0.1389265060424... |
func (c *connectionPoller) TraceClosedConnections() {
oldConn := c.connectionPool
c.connectionPool = c.GetConnections()
for conn := range oldConn {
if _, hasConn := c.connectionPool[conn]; !hasConn {
go c.recentIPCache.Trace(conn)
}
}
} | [
-0.07978980988264084,
-0.4624878466129303,
0.6740934252738953,
-0.050697553902864456,
0.5734360218048096,
0.3442104160785675,
0.8460402488708496,
-0.8998245000839233,
0.5811216831207275,
0.3044881820678711,
0.024214481934905052,
-0.5720446705818176,
-0.8013885617256165,
0.9010488390922546,... |
func New(cache *ipcache.RecentIPCache) ConnectionPoller {
c := &connectionPoller{
finder: &ssFinder{},
recentIPCache: cache,
connectionPool: make(map[connection.Connection]struct{}),
}
c.GetConnections()
return c
} | [
-0.9780030846595764,
-0.891064465045929,
0.20841871201992035,
0.024941161274909973,
-0.41880446672439575,
0.40996187925338745,
-0.18795980513095856,
-0.15575137734413147,
-0.12350782752037048,
0.4744878113269806,
0.5666336417198181,
-1.1565618515014648,
-0.03080153837800026,
0.658619821071... |
func (s *sandbox) Open() error {
if s.goPath != "" {
return errors.New("sandbox already open")
}
goPath, err := ioutil.TempDir("", "ggt-")
if err != nil {
return err
}
checkout := filepath.Join(goPath, "src", s.rootPackageImportPath)
if err := os.MkdirAll(checkout, os.ModePerm); err != nil {
return err
}... | [
0.26711124181747437,
1.1127973794937134,
0.4944536089897156,
-0.049780555069446564,
0.17609703540802002,
0.5336902141571045,
0.8413894176483154,
0.8216896057128906,
0.08017377555370331,
0.3121171295642853,
-0.08483713120222092,
0.7812288403511047,
-0.1207498162984848,
0.3978950083255768,
... |
func (s *sandbox) Close() error {
if s.goPath == "" {
return nil
}
if err := os.RemoveAll(s.goPath); err != nil {
fmt.Fprintf(os.Stderr, "could not delete checkout %s: %s\n", s.goPath, err)
return err
}
s.goPath = ""
return nil
} | [
0.6174197793006897,
0.6917649507522583,
0.6998315453529358,
-0.12119980156421661,
0.29881909489631653,
0.421337753534317,
0.27179959416389465,
0.11460992693901062,
-0.07899691164493561,
0.23800191283226013,
0.7965183854103088,
0.1580645889043808,
-0.8858829140663147,
0.97948157787323,
0.... |
func NewConfiguredPeerVerifier(pvo PeerVerifyOptions) *ConfiguredPeerVerifier {
if len(pvo.DNSSuffixes) == 0 && len(pvo.CommonNames) == 0 {
return nil
}
cpv := new(ConfiguredPeerVerifier)
if len(pvo.DNSSuffixes) > 0 {
cpv.dnsSuffixes = make([]string, len(pvo.DNSSuffixes))
for i, suffix := range pvo.DNSSuffix... | [
-0.08601539582014084,
-0.7556223273277283,
0.3906051218509674,
-0.33184221386909485,
-0.3475304841995239,
0.14742746949195862,
-0.019162440672516823,
0.5390797257423401,
0.27591946721076965,
-0.7028114795684814,
-1.4876095056533813,
0.48504936695098877,
-0.5856372714042664,
0.9110628962516... |
func (pvs PeerVerifiers) Verify(peerCert *x509.Certificate, verifiedChains [][]*x509.Certificate) error {
for _, pv := range pvs {
if err := pv.Verify(peerCert, verifiedChains); err != nil {
return err
}
}
return nil
} | [
-0.3341997563838959,
0.447264164686203,
0.14595814049243927,
0.6844478845596313,
1.430511474609375,
0.4312609136104584,
-0.5461111068725586,
-0.2960331439971924,
-0.6998146176338196,
-0.1312292069196701,
-0.26942703127861023,
-0.06801466643810272,
-0.6872112154960632,
1.0786266326904297,
... |
func (pvs PeerVerifiers) VerifyPeerCertificate(rawCerts [][]byte, verifiedChains [][]*x509.Certificate) (err error) {
if len(pvs) == 0 {
return
}
for _, rawCert := range rawCerts {
peerCert, parseErr := x509.ParseCertificate(rawCert)
if parseErr != nil {
// any parse error invalidates the entire sequence o... | [
-0.15356484055519104,
0.11729603260755539,
0.45634832978248596,
0.8091105222702026,
0.4759072959423065,
-0.14988461136817932,
-0.703697919845581,
-0.2557852566242218,
-0.1934681236743927,
0.028503427281975746,
-0.3797438144683838,
-0.6928704380989075,
-0.8370647430419922,
0.760895133018493... |
func NewPeerVerifiers(pvo PeerVerifyOptions, extra ...PeerVerifier) PeerVerifiers {
pvs := append(PeerVerifiers{}, extra...)
if cpv := NewConfiguredPeerVerifier(pvo); cpv != nil {
pvs = append(pvs, cpv)
}
return pvs
} | [
-0.8906561136245728,
-0.4933675229549408,
0.3895542025566101,
0.9560251235961914,
-0.09104663133621216,
-0.02448653057217598,
-0.5067787766456604,
0.2728332281112671,
0.6154043078422546,
-0.570215106010437,
-1.5944690704345703,
-0.05253515765070915,
-1.0291807651519775,
1.1017025709152222,... |
func NewTlsConfig(t *Tls, extra ...PeerVerifier) (*tls.Config, error) {
if t == nil {
return nil, nil
}
if len(t.CertificateFile) == 0 || len(t.KeyFile) == 0 {
return nil, ErrTlsCertificateRequired
}
var nextProtos []string
if len(t.NextProtos) > 0 {
nextProtos = append(nextProtos, t.NextProtos...)
} els... | [
0.17225147783756256,
0.1382163166999817,
0.6121711730957031,
-0.24259386956691742,
-0.8922945261001587,
0.4239463210105896,
-0.7581878304481506,
0.015043262392282486,
-0.3662700355052948,
0.9753836989402771,
-0.9443225860595703,
-0.2716538906097412,
0.10937178134918213,
0.7810729742050171,... |
func WithLimiter(limiter ratelimit.Limiter) Option {
return func(o *options) {
o.limiter = limiter
}
} | [
0.7250312566757202,
-0.07611049711704254,
0.5548165440559387,
-0.21552610397338867,
-0.770811140537262,
0.3214271068572998,
-0.31379708647727966,
-0.7731273770332336,
0.9241578578948975,
-0.33073562383651733,
0.7654449939727783,
-0.5642770528793335,
0.11314531415700912,
-0.2570385336875915... |
func GenerateHash(base string) (string, int) {
// get current time as a string
nowStr := strconv.Itoa(int(time.Now().Unix()))
// hash it
hasher := sha256.New()
hasher.Write([]byte(nowStr))
hash := hex.EncodeToString(hasher.Sum(nil))
// create a folder named after the hash
err := os.MkdirAll(filepath.Join(bas... | [
-0.282623291015625,
0.040953055024147034,
0.7623983025550842,
0.48473554849624634,
0.02682296186685562,
0.5638298988342285,
0.29461297392845154,
0.3241082727909088,
-0.6831085085868835,
-0.46841147541999817,
-0.7840092778205872,
-0.5011667609214783,
0.07364673167467117,
0.5957858562469482,... |
func NewInitAuctionManagerV2InstructionBuilder() *InitAuctionManagerV2 {
nd := &InitAuctionManagerV2{
AccountMetaSlice: make(ag_solanago.AccountMetaSlice, 10),
}
return nd
} | [
-0.31651830673217773,
-0.893748939037323,
0.1886957585811615,
0.6387413144111633,
-0.7479352355003357,
-0.5865575075149536,
0.7121560573577881,
0.6361616849899292,
0.04904845356941223,
-0.4968779981136322,
0.07774188369512558,
1.0831667184829712,
-0.2754964530467987,
-0.08371863514184952,
... |
func (inst *InitAuctionManagerV2) SetArgs(args InitAuctionManagerV2Args) *InitAuctionManagerV2 {
inst.Args = &args
return inst
} | [
-0.6582770347595215,
-0.1924203634262085,
0.21952593326568604,
-0.4833506941795349,
0.06044723093509674,
0.21267616748809814,
0.33541008830070496,
0.6794638633728027,
-0.3721065819263458,
-0.6359471678733826,
-0.33653202652931213,
1.1691548824310303,
-0.2379615753889084,
0.3871728181838989... |
func (inst *InitAuctionManagerV2) SetUninitializedUnallocatedAuctionManagerAccount(uninitializedUnallocatedAuctionManager ag_solanago.PublicKey) *InitAuctionManagerV2 {
inst.AccountMetaSlice[0] = ag_solanago.Meta(uninitializedUnallocatedAuctionManager).WRITE()
return inst
} | [
-0.11999839544296265,
-1.0049513578414917,
0.2608892023563385,
-0.3139704167842865,
0.5047363638877869,
-0.3995778560638428,
1.8917639255523682,
1.4865970611572266,
0.6910048723220825,
-1.229302167892456,
-0.012583240866661072,
1.1922557353973389,
0.6821284294128418,
0.7131098508834839,
... |
func (inst *InitAuctionManagerV2) GetUninitializedUnallocatedAuctionManagerAccount() *ag_solanago.AccountMeta {
return inst.AccountMetaSlice[0]
} | [
0.165702223777771,
-0.9789303541183472,
0.3303243815898895,
0.14155662059783936,
0.3955477476119995,
-0.6189447641372681,
1.6346386671066284,
1.1839929819107056,
0.37787121534347534,
-1.2713478803634644,
0.7203248143196106,
1.2473064661026,
0.5423280596733093,
-0.09690269082784653,
0.240... |
func (inst *InitAuctionManagerV2) SetAuctionWinnerTokenTypeTrackerAccount(auctionWinnerTokenTypeTracker ag_solanago.PublicKey) *InitAuctionManagerV2 {
inst.AccountMetaSlice[1] = ag_solanago.Meta(auctionWinnerTokenTypeTracker).WRITE()
return inst
} | [
-0.48029643297195435,
-0.5899074673652649,
0.2776239514350891,
1.1074167490005493,
-0.07111283391714096,
0.1145775243639946,
1.6691237688064575,
0.4618217647075653,
0.207208052277565,
-0.11737902462482452,
-0.48476120829582214,
0.7296527624130249,
0.7860246896743774,
-0.11040883511304855,
... |
func (inst *InitAuctionManagerV2) GetAuctionWinnerTokenTypeTrackerAccount() *ag_solanago.AccountMeta {
return inst.AccountMetaSlice[1]
} | [
-0.09844723343849182,
-0.8257347941398621,
0.40964797139167786,
1.2886695861816406,
0.008779813535511494,
-0.15002959966659546,
1.525686264038086,
0.441343754529953,
-0.27568766474723816,
-0.21188095211982727,
0.009218697436153889,
0.6628260016441345,
0.46286770701408386,
-0.62023997306823... |
func (inst *InitAuctionManagerV2) SetCombinedVaultAccount(combinedVault ag_solanago.PublicKey) *InitAuctionManagerV2 {
inst.AccountMetaSlice[2] = ag_solanago.Meta(combinedVault)
return inst
} | [
-0.045552898198366165,
-0.771773636341095,
0.28722083568573,
1.2663068771362305,
-0.019809549674391747,
0.398237019777298,
1.0948172807693481,
-0.4289334714412689,
0.485506147146225,
-0.6548553705215454,
-0.5343947410583496,
0.6453829407691956,
0.4804089665412903,
-0.0044180466793477535,
... |
func (inst *InitAuctionManagerV2) GetCombinedVaultAccount() *ag_solanago.AccountMeta {
return inst.AccountMetaSlice[2]
} | [
0.40188169479370117,
-0.7870982885360718,
0.5821373462677002,
1.8434942960739136,
-0.16385093331336975,
0.2535058856010437,
0.9187939167022705,
-0.6792407035827637,
0.13379530608654022,
-0.6850059032440186,
0.3621504306793213,
0.7644902467727661,
0.10236260294914246,
-0.555671215057373,
... |
func (inst *InitAuctionManagerV2) SetAuctionAccount(auction ag_solanago.PublicKey) *InitAuctionManagerV2 {
inst.AccountMetaSlice[3] = ag_solanago.Meta(auction)
return inst
} | [
-0.2309333086013794,
-0.5687683820724487,
0.1565645933151245,
0.6991263628005981,
-0.125491663813591,
0.03724317625164986,
1.5936483144760132,
0.6285719275474548,
0.29405292868614197,
-0.39414796233177185,
-0.6478124856948853,
0.9311166405677795,
0.8450344800949097,
0.20004193484783173,
... |
func (inst *InitAuctionManagerV2) GetAuctionAccount() *ag_solanago.AccountMeta {
return inst.AccountMetaSlice[3]
} | [
0.43513017892837524,
-0.5840673446655273,
0.39730697870254517,
1.1547362804412842,
-0.05348704382777214,
-0.3101479113101959,
1.6270533800125122,
0.32060882449150085,
0.002564388792961836,
-0.588055431842804,
0.3983413875102997,
1.178700566291809,
0.4733990430831909,
-0.42540857195854187,
... |
func (inst *InitAuctionManagerV2) SetAuctionManagerAuthorityAccount(auctionManagerAuthority ag_solanago.PublicKey) *InitAuctionManagerV2 {
inst.AccountMetaSlice[4] = ag_solanago.Meta(auctionManagerAuthority)
return inst
} | [
0.04354584962129593,
-0.8260471820831299,
0.163357675075531,
0.3268730938434601,
-0.04692942649126053,
-0.027585597708821297,
1.523707628250122,
0.826545774936676,
0.3601778447628021,
-0.7954612970352173,
0.26652079820632935,
1.2741062641143799,
0.36383679509162903,
0.8042157292366028,
0... |
func (inst *InitAuctionManagerV2) GetAuctionManagerAuthorityAccount() *ag_solanago.AccountMeta {
return inst.AccountMetaSlice[4]
} | [
0.6710885763168335,
-0.8573038578033447,
0.2962999641895294,
0.7724393606185913,
-0.04585566371679306,
-0.19979746639728546,
1.4860531091690063,
0.38448914885520935,
-0.03382737189531326,
-0.9080806374549866,
0.8923845887184143,
1.5718210935592651,
0.2067241221666336,
0.04301344230771065,
... |
func (inst *InitAuctionManagerV2) SetPayerAccount(payer ag_solanago.PublicKey) *InitAuctionManagerV2 {
inst.AccountMetaSlice[5] = ag_solanago.Meta(payer).SIGNER()
return inst
} | [
-0.5635281801223755,
-0.6594139337539673,
0.12722036242485046,
0.42304354906082153,
0.05204101651906967,
-0.16197994351387024,
1.349128246307373,
0.6671960353851318,
0.2139575034379959,
-0.98447585105896,
-1.080012321472168,
0.4172840118408203,
0.21195948123931885,
1.203116774559021,
0.2... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.