text
stringlengths
11
6.3k
embedding
listlengths
768
768
func pushToNSS(ctx context.Context, user, p12Path string) error { upath, err := cryptohome.UserPath(ctx, user) if err != nil { return err } nssdb := filepath.Join(upath, ".pki", "nssdb") cmd := testexec.CommandContext(ctx, "pk12util", "-d", "sql:"+nssdb, "-i", p12Path, "-W", "" /* password */) if err := cmd.Ru...
[ 0.10478590428829193, 1.284294843673706, 0.5796180367469788, -0.18392834067344666, -0.33359578251838684, 0.3433926999568939, -0.33075278997421265, -1.0202640295028687, 0.12599550187587738, 0.48655807971954346, -0.18082676827907562, 0.6314066648483276, 0.004111963789910078, 0.815808117389679...
func setupOwnerKey(der []byte) error { // Ensure parent dir exists. const devicesettingsDir = "/var/lib/devicesettings" if _, err := os.Stat(devicesettingsDir); err != nil { if !os.IsNotExist(err) { return errors.Wrapf(err, "failed to stat %s", devicesettingsDir) } return errors.Wrapf(err, "directory for ow...
[ -0.7850034832954407, -0.19538730382919312, 0.7862246632575989, 0.24768367409706116, 0.7636986374855042, -0.3066495358943939, 1.7561851739883423, -0.6492022275924683, -0.5000854730606079, 0.03245825693011284, 0.13969635963439941, -0.14082148671150208, -0.10468585789203644, 0.619929611682891...
func sign(key *rsa.PrivateKey, blob []byte) ([]byte, error) { h := sha1.New() h.Write(blob) digest := h.Sum(nil) return rsa.SignPKCS1v15(nil, key, crypto.SHA1, digest) }
[ 0.0983150377869606, -0.3835161626338959, 0.7380695939064026, 0.9279910922050476, -0.03291940689086914, 0.387641966342926, -0.6339797377586365, 0.4299493730068207, 0.16709521412849426, 0.8357616662979126, -0.7827962040901184, -0.7740974426269531, -1.1989251375198364, 0.36824771761894226, ...
func (connManager *ConnectionManager) Handle(conn net.Conn) { connManager.ctlConnection = conn defer connManager.ctlConnection.Close() connManager.ctlConnection.Write([]byte("220 Welcome to Nico FTP Server\n")) // start connection control loop var buf [512]byte for { // read upto 512 bytes n, err := conn....
[ 0.04865330085158348, -0.47602561116218567, 0.8722397685050964, -0.33957409858703613, 0.11207457631826401, -0.13732412457466125, 0.22688981890678406, -0.44474413990974426, -0.03526837006211281, -0.7789021730422974, 0.23192712664604187, -0.13974831998348236, -0.22587579488754272, 0.069322690...
func (connManager *ConnectionManager) canRunCommand() bool { if !connManager.acc.isValidAccount() { connManager.sendStr("530 Need Auth\r\n") return false } return true }
[ -0.21889424324035645, -0.17462991178035736, 0.679363489151001, 0.5744762420654297, -0.5039061307907104, 0.9309666752815247, 0.22732877731323242, 0.5310019850730896, 0.2237725555896759, -0.5085064768791199, -0.09938810765743256, 1.1520955562591553, -0.5619617700576782, -0.17763587832450867,...
func (e *Engine) shouldPersist() bool { return e.isLeader == 1 }
[ -0.6045786738395691, 0.3268613815307617, 0.6300815939903259, 0.30039215087890625, 0.7562078833580017, 0.6060082316398621, -0.7846688628196716, 1.2026355266571045, 0.686164915561676, 0.13853727281093597, -0.2149161696434021, -0.8935653567314148, -0.8025643825531006, 0.6313408017158508, -0...
func (e *Engine) Apply(c Command) { e.mutex.Lock() defer e.mutex.Unlock() switch c.Op { case addCommand: _, err := e.enforcer.AddPolicySelf(e.shouldPersist, c.Sec, c.Ptype, c.Rules) if err != nil { e.logger.Panic(err.Error(), zap.Any("command", c)) } case removeCommand: _, err := e.enforcer.RemovePolicy...
[ 0.502300500869751, 0.09476185590028763, 0.9134323596954346, 0.08378637582063675, 0.3631204068660736, 0.7274475693702698, 0.26686084270477295, 0.4052087962627411, 0.45088815689086914, 0.24560590088367462, 0.2915888726711273, -0.2336934357881546, -0.027219772338867188, 1.120141863822937, 0...
func (e *Engine) getSnapshot() ([]byte, error) { var tmp bytes.Buffer model := e.enforcer.GetModel() for ptype, ast := range model["p"] { for _, rule := range ast.Policy { tmp.WriteString(ptype + ", ") tmp.WriteString(util.ArrayToString(rule)) tmp.WriteString("\n") } } for ptype, ast := range model["...
[ -0.25483155250549316, -0.08111952245235443, 0.695629894733429, -0.5497617721557617, 0.3150850236415863, 0.26068103313446045, -0.6921887397766113, -0.13771773874759674, -0.7723003625869751, 0.321407288312912, 0.11635321378707886, 0.02708159200847149, -0.05399823188781738, 0.4273706078529358...
func (e *Engine) recoverFromSnapshot(snapshot []byte) error { e.enforcer.GetModel().ClearPolicy() model := e.enforcer.GetModel() scanner := bufio.NewScanner(bytes.NewReader(snapshot)) for scanner.Scan() { line := strings.TrimSpace(scanner.Text()) persist.LoadPolicyLine(line, model) } return scanner.Err() }
[ 0.33412596583366394, -0.3524242639541626, 0.357329398393631, -0.25335273146629333, -0.540238082408905, 0.29284289479255676, -0.6314448714256287, 0.49317872524261475, 0.5737966299057007, -0.647903561592102, -0.3688187897205353, -1.2221965789794922, -0.270266056060791, 0.14231424033641815, ...
func monitor(shardMap map[int32]*redis.ShardRedis, inteval, retryTime int) { //monitor by group for { for key, shard := range shardMap { shardPool := shard.Pool if !sendBeat(shardPool, inteval, retryTime) { //change node } } } }
[ -0.5104637145996094, 0.23904094099998474, 0.4499041736125946, 0.07883428782224655, 0.30819350481033325, 0.22682152688503265, 0.7101231217384338, -0.3337278664112091, -0.11043045669794083, 0.7965745329856873, 0.20051035284996033, 0.48797646164894104, -0.6309487819671631, 0.5765020251274109,...
func (p *Parser) parseClassVarDecs() (*ClassVarDecs, error) { classVarDecs := NewClassVarDecs() for classVarDecs.HasClassVarDec(p.readFirstToken()) { classVarDec := NewClassVarDec() keyword := p.advanceToken() if err := classVarDec.SetKeyword(keyword); err != nil { return nil, err } varType := p.advan...
[ -0.5341381430625916, -0.7030091881752014, 0.7858039140701294, -0.0744069516658783, -0.29781919717788696, 0.12963536381721497, -0.21330201625823975, -0.2534998059272766, -0.30009374022483826, 0.07912468910217285, -0.391256183385849, -0.19303427636623383, -0.290414422750473, 1.16391706466674...
func (p *Parser) parseParameterList() (*ParameterList, error) { // パラメータがひとつも定義されていない場合は即終了 parameterList := NewParameterList() if !NewVarType(p.readFirstToken()).IsCheck() { return parameterList, nil } // パラメータ1つめのみカンマがないのでループに入る前に処理する varType := p.advanceToken() varName := p.advanceToken() if err := parame...
[ -0.6038917303085327, -0.2943577766418457, 0.6534419059753418, 0.40271902084350586, -0.14982332289218903, -0.008002830669283867, -0.08835996687412262, -0.04671856760978699, -0.6851152777671814, 0.5505034327507019, -0.5190601348876953, -0.5092101693153381, -0.9765497446060181, 1.695522069931...
func (p *Parser) parseVarDec() (*VarDec, error) { varDec := NewVarDec() keyword := p.advanceToken() if err := varDec.CheckKeyword(keyword); err != nil { return nil, err } varType := p.advanceToken() if err := varDec.SetVarType(varType); err != nil { return nil, err } varName := p.advanceToken() if err :...
[ 1.2017691135406494, -0.6322890520095825, 0.8166242241859436, -0.20323233306407928, -0.8284755945205688, -0.016291216015815735, -0.007651932071894407, 0.4720277190208435, -0.47928759455680847, -0.1544765830039978, -0.121810182929039, 0.026620469987392426, 0.07542511075735092, 0.664645910263...
func (p *Parser) parseLetStatement() (Statement, error) { letStatement := NewLetStatement() keyword := p.advanceToken() if err := letStatement.CheckKeyword(keyword); err != nil { return nil, err } second := p.readSecondToken() if ConstOpeningSquareBracket.IsCheck(second) { array, err := p.parseArray() if ...
[ 0.5013214945793152, -0.7529779076576233, 0.8989270329475403, -0.728842556476593, -0.8506942987442017, 0.06818240880966187, -0.33972176909446716, -0.3989739418029785, 0.38909387588500977, 0.11742568016052246, -0.19501125812530518, -0.08001083135604858, -0.09058898687362671, 0.05007705837488...
func (p *Parser) parseSubroutineCall() (*SubroutineCall, error) { subroutineCall := NewSubroutineCall() subroutineCallName, err := p.parseSubroutineCallName() if err != nil { return nil, err } subroutineCall.SetSubroutineCallName(subroutineCallName) openingRoundBracket := p.advanceToken() if err := ConstOpen...
[ 0.2104748785495758, 0.11054252088069916, 0.8332502245903015, -0.0416598916053772, -0.8602290153503418, 0.4516323506832123, 0.021803300827741623, -0.5774198770523071, -0.19656255841255188, 0.48842522501945496, -1.035675048828125, -0.10917552560567856, -0.8192825317382812, 0.3659147620201111...
func (p *Parser) parseSubroutineCallName() (*SubroutineCallName, error) { subroutineCallName := NewSubroutineCallName() name := p.advanceToken() if ConstPeriod.IsCheck(p.readFirstToken()) { if err := subroutineCallName.SetCallerName(name); err != nil { return nil, err } period := p.advanceToken() if err...
[ -0.106732577085495, -0.28488224744796753, 0.9273732304573059, -0.2491753250360489, -1.0150913000106812, 0.9583864212036133, -0.3214910328388214, -0.3392971158027649, -0.21509023010730743, 0.07817130535840988, -0.7616133093833923, 0.05143094062805176, -0.32350632548332214, 0.371250122785568...
func (p *Parser) parseTerm() (Term, error) { term := p.readFirstToken() switch term.TokenType { case token.TokenIntConst: return p.parseIntegerConstant() case token.TokenStringConst: return p.parseStringConstant() case token.TokenKeyword: return p.parseKeywordConstant() case token.TokenIdentifier: return ...
[ 0.05931492894887924, -0.5888804197311401, 0.6877343058586121, 0.0427582710981369, -0.04310251772403717, -0.27911248803138733, -0.6288753151893616, -0.6515002846717834, -0.5800591111183167, -0.5245864987373352, -0.4412003457546234, 0.1465698629617691, -0.2641863524913788, -0.373161792755126...
func (p *Parser) parseIdentifierTerm() (Term, error) { second := p.readSecondToken() switch second.Value { case ConstOpeningRoundBracket.Value, ConstPeriod.Value: return p.parseSubroutineCall() case ConstOpeningSquareBracket.Value: return p.parseArray() default: varName := p.advanceToken() return NewVarNa...
[ -0.8231626749038696, -0.8313801288604736, 0.4268280565738678, 1.1193501949310303, -0.2350248247385025, 0.14013732969760895, -0.2613503932952881, -0.4717417359352112, 0.14815792441368103, 0.13892745971679688, -0.8109265565872192, 0.11857675760984421, -0.6737372279167175, -0.3049362897872925...
func (p *Parser) parseSymbolTerm() (Term, error) { op := p.readFirstToken() switch op.Value { case ConstUnaryMinus.Value, ConstUnaryTilde.Value: return p.parseUnaryOpTerm() case ConstOpeningRoundBracket.Value: return p.parseGroupingExpression() default: message := fmt.Sprintf("error parseSymbolTerm: got = %...
[ -0.3654141128063202, -0.23207968473434448, 0.40076836943626404, 0.6183679103851318, -0.04757481813430786, -0.7330082654953003, 0.4737785756587982, 0.2748137414455414, -0.5487309694290161, -0.49621516466140747, -0.6328030824661255, 0.26138272881507874, -0.47853660583496094, 0.39135992527008...
func (p *Parser) parseArray() (*Array, error) { array, err := NewArrayOrError(p.advanceToken()) if err != nil { return nil, err } openingSquareBracket := p.advanceToken() if err := ConstOpeningSquareBracket.Check(openingSquareBracket); err != nil { return nil, err } expression, err := p.parseExpression() ...
[ -0.24131596088409424, -0.9426913857460022, 0.86292564868927, -0.0032168463803827763, 0.09942972660064697, 0.16700515151023865, 0.37893572449684143, -0.23709720373153687, -0.08004680275917053, -0.3438035249710083, -0.0336952768266201, 0.4737952947616577, -0.6000439524650574, 1.3223140239715...
func NewZzz(adapter *Tt.Adapter) *Zzz { return &Zzz{Adapter: adapter} }
[ 0.11506998538970947, -1.3152408599853516, -0.2803916037082672, 0.5276806950569153, -1.2468851804733276, -0.8825829029083252, 0.22128306329250336, -0.14420835673809052, 1.2988704442977905, -0.42789793014526367, -0.48265576362609863, 0.3974858224391937, -0.2509608566761017, 0.257447153329849...
func (z *Zzz) SpaceName() string { //nolint:dupl false positive return string(mZzz.TableZzz) // casting required to string from Tt.TableName }
[ 0.6009092926979065, -1.0099151134490967, 0.33026331663131714, 0.4780481457710266, -0.5121244192123413, 0.4679659307003021, 0.275768518447876, 0.5109161734580994, 0.47970879077911377, 0.5871430039405823, 0.10216278582811356, 0.09588470309972763, -0.5508901476860046, 1.2179193496704102, -0...
func (z *Zzz) SqlTableName() string { //nolint:dupl false positive return `"zzz"` }
[ 1.1435209512710571, -0.45420557260513306, 0.44613078236579895, 0.6616755723953247, -0.8150218725204468, 0.5473085641860962, -0.3969639539718628, -0.4380519688129425, 0.36627283692359924, 0.4748617112636566, -0.6363497972488403, 0.05756105110049248, -0.5415414571762085, 0.3909468352794647, ...
func (z *Zzz) FindById() bool { //nolint:dupl false positive res, err := z.Adapter.Select(z.SpaceName(), z.UniqueIndexId(), 0, 1, tarantool.IterEq, A.X{z.Id}) if L.IsError(err, `Zzz.FindById failed: `+z.SpaceName()) { return false } rows := res.Tuples() if len(rows) == 1 { z.FromArray(rows[0]) return true }...
[ 0.0033026929013431072, 0.25310856103897095, 0.5078825950622559, -0.06996650248765945, -0.32274484634399414, -0.28052589297294617, 0.8330225348472595, -0.5445968508720398, 0.3710315227508545, 0.22208860516548157, -0.4441114366054535, -0.363530695438385, -1.2648149728775024, 0.59833365678787...
func (z *Zzz) SpatialIndexCoords() string { //nolint:dupl false positive return `coords` }
[ 0.0546661838889122, -0.48553162813186646, -0.032876502722501755, 0.7726777791976929, -0.99580317735672, 0.6562444567680359, 0.3926462233066559, 0.5033588409423828, 0.7836450934410095, 0.31571534276008606, -0.5417827367782593, -0.40968289971351624, -1.1560190916061401, -0.566196858882904, ...
func (z *Zzz) SqlSelectAllFields() string { //nolint:dupl false positive return ` "id" , "createdAt" , "coords" , "name" , "heightMeter" ` }
[ 1.036320686340332, -0.32006680965423584, 0.24416150152683258, 0.16520754992961884, -0.1099454015493393, -0.14832553267478943, -0.7581859230995178, -1.4930840730667114, 0.9800027012825012, 0.06853055208921432, -1.1356431245803833, 0.2980751395225525, -0.7122820019721985, 0.17186662554740906...
func (z *Zzz) SqlSelectAllUncensoredFields() string { //nolint:dupl false positive return ` "id" , "createdAt" , "coords" , "name" , "heightMeter" ` }
[ 0.5739719271659851, -0.2795448303222656, 0.34178733825683594, -0.17557716369628906, 0.05191953480243683, -0.0665808767080307, -0.3185786008834839, -0.8447629809379578, 0.5072966814041138, 0.2574022114276886, -1.2042129039764404, 0.37486594915390015, -0.7503954172134399, 0.5182339549064636,...
func (z *Zzz) ToUpdateArray() A.X { //nolint:dupl false positive return A.X{ A.X{`=`, 0, z.Id}, A.X{`=`, 1, z.CreatedAt}, A.X{`=`, 2, z.Coords}, A.X{`=`, 3, z.Name}, A.X{`=`, 4, z.HeightMeter}, } }
[ -1.0329877138137817, -1.335479497909546, 0.7102834582328796, -0.7696792483329773, 0.21662278473377228, 0.3671245276927948, -0.11420070379972458, -0.6366841793060303, 0.5598392486572266, 0.8351600170135498, -1.1444621086120605, 0.21669025719165802, -0.2204904556274414, 0.08830922842025757, ...
func (z *Zzz) IdxId() int { //nolint:dupl false positive return 0 }
[ 0.2141454666852951, -0.6197697520256042, 0.3539808988571167, 0.7689171433448792, 0.04584717005491257, 1.0495948791503906, 0.3857404291629791, 0.024351559579372406, 0.9413512349128723, -0.6023964285850525, -0.5384852886199951, 0.23852208256721497, -1.6110938787460327, 0.41484472155570984, ...
func (z *Zzz) SqlId() string { //nolint:dupl false positive return `"id"` }
[ 1.6200448274612427, -0.9568358063697815, 0.45594367384910583, 0.5051819682121277, 0.12476992607116699, 1.3179283142089844, -0.7398891448974609, -0.35474032163619995, 1.6356711387634277, 0.4898894131183624, -0.015248998068273067, 0.0961899384856224, -1.1406980752944946, 0.35308173298835754,...
func (z *Zzz) IdxCreatedAt() int { //nolint:dupl false positive return 1 }
[ -0.5111257433891296, -0.45681121945381165, 0.11215436458587646, 0.09168849140405655, 0.3928033411502838, 0.6466756463050842, 0.27653491497039795, -0.581400990486145, -0.1154533252120018, -1.232447624206543, -0.8535284996032715, 0.024000680074095726, -0.3527396619319916, -0.0504867956042289...
func (z *Zzz) SqlCreatedAt() string { //nolint:dupl false positive return `"createdAt"` }
[ 1.7477920055389404, -0.4969917833805084, 0.3738136291503906, -0.41209083795547485, -0.20024633407592773, 0.7762718796730042, -1.0222262144088745, -1.4885056018829346, 0.27291277050971985, -0.87091064453125, -0.5963730812072754, -0.1265200823545456, 0.36691009998321533, 0.5420268774032593, ...
func (z *Zzz) IdxCoords() int { //nolint:dupl false positive return 2 }
[ -0.5577169060707092, -0.04437236115336418, 0.1890341192483902, 0.9426313042640686, -0.7968522906303406, -0.03846094012260437, 0.9096478223800659, 0.19137193262577057, 0.49279505014419556, -0.9689306020736694, -0.8624238967895508, -1.0090316534042358, -1.7808783054351807, -0.499478220939636...
func (z *Zzz) SqlCoords() string { //nolint:dupl false positive return `"coords"` }
[ 0.8450559377670288, 0.09205082803964615, 0.2220914512872696, -0.3307962715625763, 0.01925230771303177, 0.38244035840034485, -0.6206588745117188, -0.7765874266624451, 0.849432110786438, -0.05452476441860199, 0.24896518886089325, -0.3521694839000702, -1.2231459617614746, -0.23107419908046722...
func (z *Zzz) IdxName() int { //nolint:dupl false positive return 3 }
[ -0.6133720278739929, -0.023318475112318993, 0.3527072072029114, 0.7850019931793213, -1.095040202140808, 0.119422048330307, 0.25973495841026306, -0.14995741844177246, 0.6661171317100525, 0.4556785225868225, -1.2820087671279907, -0.5077847838401794, -1.2029110193252563, -0.3922158181667328, ...
func (z *Zzz) SqlName() string { //nolint:dupl false positive return `"name"` }
[ 0.5562530755996704, -0.7518717646598816, 0.4366542398929596, 0.31025293469429016, -0.6069421172142029, -0.02713654190301895, -0.6674886345863342, -0.36167746782302856, 0.3577641546726227, 0.8709321022033691, -0.2557035982608795, -0.21116475760936737, -0.519266664981842, 0.14940039813518524...
func (z *Zzz) IdxHeightMeter() int { //nolint:dupl false positive return 4 }
[ -0.16809219121932983, 0.06545976549386978, 0.2608555257320404, 1.0290935039520264, -0.4392988979816437, 0.30290672183036804, 0.4078466594219208, -0.9347013235092163, -0.14138785004615784, -0.024620359763503075, -0.830173909664154, -0.6116281747817993, -1.5970569849014282, -0.19022913277149...
func (z *Zzz) SqlHeightMeter() string { //nolint:dupl false positive return `"heightMeter"` }
[ 0.6800308227539062, 0.29265618324279785, 0.3220731317996979, 0.5781049132347107, -0.5880472660064697, 0.5363936424255371, -0.6121307015419006, -1.1318175792694092, 0.21594147384166718, 0.9276646971702576, -0.1833571344614029, 0.10053486377000809, -0.660182535648346, 0.7503880858421326, -...
func (z *Zzz) ToArray() A.X { //nolint:dupl false positive var id any = nil if z.Id != 0 { id = z.Id } return A.X{ id, z.CreatedAt, // 1 z.Coords, // 2 z.Name, // 3 z.HeightMeter, // 4 } }
[ -0.4243214428424835, -1.0379276275634766, 0.44904717803001404, 0.18221119046211243, 0.49444979429244995, -0.2723848521709442, 0.8073134422302246, -1.036645531654358, 0.3175135552883148, 0.06965575367212296, -0.9249288439750671, 0.21105121076107025, -0.4251779317855835, 0.37359949946403503,...
func (z *Zzz) FromArray(a A.X) *Zzz { //nolint:dupl false positive z.Id = X.ToU(a[0]) z.CreatedAt = X.ToI(a[1]) z.Coords = X.ToArr(a[2]) z.Name = X.ToS(a[3]) z.HeightMeter = X.ToF(a[4]) return z }
[ 0.3515826463699341, -0.9312615394592285, 0.5722979307174683, 0.12357519567012787, -0.6132919788360596, 0.34528759121894836, 0.7256037592887878, -1.0501503944396973, 1.1053577661514282, -0.07488000392913818, -0.3054814338684082, -0.05603678151965141, -0.027576619759202003, -0.45691004395484...
func (z *Zzz) FromUncensoredArray(a A.X) *Zzz { //nolint:dupl false positive z.Id = X.ToU(a[0]) z.CreatedAt = X.ToI(a[1]) z.Coords = X.ToArr(a[2]) z.Name = X.ToS(a[3]) z.HeightMeter = X.ToF(a[4]) return z }
[ 0.04072710499167442, -0.9099922776222229, 0.6621690988540649, -0.4279865026473999, -0.7236916422843933, 0.38053470849990845, 0.49765902757644653, -0.8451640605926514, 1.413692593574524, -0.03564010560512543, -0.12639810144901276, -0.13296236097812653, -0.04036439582705498, -0.0755042210221...
func (z *Zzz) FindOffsetLimit(offset, limit uint32, idx string) []Zzz { //nolint:dupl false positive var rows []Zzz res, err := z.Adapter.Select(z.SpaceName(), idx, offset, limit, tarantool.IterAll, A.X{}) if L.IsError(err, `Zzz.FindOffsetLimit failed: `+z.SpaceName()) { return rows } for _, row := range res.Tup...
[ -0.14450421929359436, -0.016804484650492668, 0.47585514187812805, 0.11032256484031677, -0.8163573741912842, -0.48676538467407227, -0.4821104109287262, -0.49220260977745056, 0.42362385988235474, 0.6795529723167419, 0.3109602928161621, 0.30013561248779297, -0.49639052152633667, 0.14320096373...
func (z *Zzz) FindArrOffsetLimit(offset, limit uint32, idx string) ([]A.X, Tt.QueryMeta) { //nolint:dupl false positive var rows []A.X res, err := z.Adapter.Select(z.SpaceName(), idx, offset, limit, tarantool.IterAll, A.X{}) if L.IsError(err, `Zzz.FindOffsetLimit failed: `+z.SpaceName()) { return rows, Tt.QueryMet...
[ -0.15634404122829437, -0.24759313464164734, 0.5172719359397888, -0.20362891256809235, -0.8073982000350952, -0.5149642825126648, -0.39588481187820435, -0.2849460542201996, 0.44002723693847656, 0.5216030478477478, 0.6218594908714294, 0.6526437401771545, 0.19979386031627655, -0.21370832622051...
func (z *Zzz) Total() int64 { //nolint:dupl false positive rows := z.Adapter.CallBoxSpace(z.SpaceName() + `:count`, A.X{}) if len(rows) > 0 && len(rows[0]) > 0 { return X.ToI(rows[0][0]) } return 0 }
[ 0.080413319170475, 0.44337818026542664, 0.5006603598594666, 0.32843080163002014, 0.32714036107063293, -1.0657960176467896, 1.2349669933319092, -0.21291550993919373, 0.9208996295928955, 0.2775271534919739, -0.18307895958423615, 0.09739679843187332, -0.5213931798934937, 0.13688407838344574, ...
func GeneratePassword() string { guid := xid.New() return guid.String() }
[ 0.25820842385292053, -0.11892074346542358, 0.558323323726654, 0.334673136472702, 0.19532756507396698, 1.065814733505249, -0.8992592096328735, 0.6368542313575745, 0.12437202036380768, 0.12911325693130493, -0.6258727312088013, -0.33845779299736023, -0.29083052277565, -0.07248727232217789, ...
func GenerateSalt() (string, error) { b := make([]byte, 32) _, err := rand.Read(b) if err != nil { return "", err } return base64.URLEncoding.EncodeToString(b), nil }
[ -0.10292017459869385, 0.31381797790527344, 0.6796442866325378, -0.646892786026001, -0.3899974226951599, 0.8107509613037109, -1.0491889715194702, -0.06499692797660828, 0.756298840045929, -0.3867773115634918, -0.3035249412059784, 0.0654478669166565, -0.5195814967155457, 0.3126501142978668, ...
func HashPassword(passwd string, salt string) string { hash := hmac.New(sha256.New, []byte(passwd)) io.WriteString(hash, passwd+salt) hashedValue := hash.Sum(nil) return hex.EncodeToString(hashedValue) }
[ 0.8148284554481506, -0.2840670049190521, 0.5030984282493591, -0.07714235782623291, 0.04798588156700134, 0.36863064765930176, -0.6190599203109741, 0.5939475893974304, 0.2985897958278656, 0.15870937705039978, 0.06089738756418228, 0.3748105466365814, 0.06963503360748291, -0.028950341045856476...
func (p Password) ToJSON() string { output, err := json.MarshalIndent(p, "", " ") if err != nil { panic(err) } return string(output) }
[ -0.28038522601127625, -0.8906856775283813, 0.7162694334983826, 0.06820057332515717, -0.7593477368354797, 0.7002618908882141, -0.1166069284081459, 0.16816608607769012, 0.719450831413269, 1.234724521636963, -0.6519973874092102, 0.8801112771034241, -0.8023362159729004, -0.6561214923858643, ...
func RunCLI(w io.Writer, ew io.Writer) int { password := GeneratePassword() salt, err := GenerateSalt() if err != nil { fmt.Fprintln(ew, err) return 1 } hashedPassword := HashPassword(password, salt) p := Password{ Password: password, Hash: hashedPassword, Salt: salt, } fmt.Fprintf(w, "%s\n", ...
[ -0.7119979858398438, -0.06492192298173904, 0.9612393379211426, -0.3903649151325226, 0.042800940573215485, 0.42186033725738525, -0.2694823145866394, 0.09721333533525467, -1.074807047843933, 0.0831688717007637, -0.6920740008354187, 0.20350979268550873, 0.20640064775943756, 0.2927090227603912...
func Main() int { return RunCLI(os.Stdout, os.Stderr) }
[ 0.06992676854133606, 0.3273017704486847, 0.6623204946517944, -0.0486835278570652, -0.5866070985794067, -0.02616589516401291, 0.3220343291759491, 0.008409512229263783, -1.0402286052703857, -0.49562934041023254, 0.7187475562095642, 0.6085489988327026, -0.1126178428530693, 0.23159044981002808...
func Install() { log.Info("Connecting to InfluxDB") go (func() { log.Info("Trying to connect to InfluxDB") for shouldCreateDatabase(infra.GetEnv("DATABASE", "teste")) { log.Info("Trying to create database") createDatabase(infra.GetEnv("DATABASE", "teste")) log.Info("Trying to create Retention Policy") ...
[ 1.0682127475738525, 0.4548735022544861, 0.5263618230819702, 0.7310392260551453, 2.001607894897461, 0.4557958245277405, 0.07950865477323532, 0.34511980414390564, -0.8883275389671326, 0.42304569482803345, -0.5175250768661499, -0.29553037881851196, -1.045640230178833, 0.57660311460495, 0.47...
func influxPush(event domain.Event) error { if s, err := influxWrite(compileEventToLintProtocol(event)); err != nil { return err } else if s != "" { return errors.New(s) } return nil }
[ 0.5586604475975037, 0.022449856624007225, 0.45557090640068054, 0.728617250919342, -0.019723596051335335, 0.5043736696243286, -0.07326178252696991, -0.18371723592281342, 0.06901255249977112, 1.0798416137695312, -0.1535213738679886, 1.5663374662399292, -0.037598367780447006, 0.35747393965721...
func Update() *UpdateOptions { return &UpdateOptions{} }
[ 0.21473510563373566, -0.9443777203559875, 0.21025781333446503, 0.4906909763813019, 0.22503739595413208, -0.3322150409221649, -0.23378324508666992, -0.41891464591026306, 0.5323759913444519, -0.12001165002584457, -0.15172603726387024, 0.021480154246091843, -0.49814707040786743, 0.18685901165...
func (uo *UpdateOptions) SetArrayFilters(af ArrayFilters) *UpdateOptions { uo.ArrayFilters = &af return uo }
[ 0.05025133118033409, -0.25710225105285645, 0.5935214161872864, 0.616081953048706, -0.006283037830144167, 0.0068392641842365265, -0.5090124011039734, -1.1088197231292725, 0.5120939016342163, 0.07040297985076904, -0.3644215762615204, 0.6569286584854126, -0.5448980927467346, 0.362009644508361...
func (uo *UpdateOptions) SetBypassDocumentValidation(b bool) *UpdateOptions { uo.BypassDocumentValidation = &b return uo }
[ -0.27020642161369324, -0.25042957067489624, 0.41778862476348877, -0.6197201609611511, -0.13609515130519867, 0.7509647011756897, 1.1935911178588867, -0.2859644293785095, -0.3783190846443176, 0.6390387415885925, -0.3085857927799225, 0.0007661348208785057, -1.1416306495666504, -0.202576786279...
func (uo *UpdateOptions) SetUpsert(b bool) *UpdateOptions { uo.Upsert = &b return uo }
[ -0.019708899781107903, 0.024712296202778816, 0.6536737084388733, -0.16109900176525116, 0.275995135307312, -0.01351844146847725, 0.5690021514892578, 0.8340343236923218, 0.44202709197998047, 0.0064855339005589485, -0.16806499660015106, -0.6439862251281738, -1.0031276941299438, 0.327599436044...
func MergeUpdateOptions(opts ...*UpdateOptions) *UpdateOptions { uOpts := Update() for _, uo := range opts { if uo == nil { continue } if uo.ArrayFilters != nil { uOpts.ArrayFilters = uo.ArrayFilters } if uo.BypassDocumentValidation != nil { uOpts.BypassDocumentValidation = uo.BypassDocumentValidat...
[ -0.8659012913703918, -0.5277064442634583, 0.7525573968887329, 0.5048929452896118, 0.6187582612037659, 0.3870566487312317, -0.47603991627693176, -0.11818249523639679, 1.2717567682266235, -0.05244330316781998, -0.17545847594738007, 0.012842457741498947, -0.7520468235015869, 0.287157416343688...
func Find(cdb couchdb.CouchDB, selector Selector, parameters ...Parameter) ResultSet { // Create request object. req := request{} req.SetParameter("selector", selector) req.apply(parameters...) // Perform find command. rs := cdb.Post(cdb.DatabasePath("_find"), req) return newResultSet(rs) }
[ -0.4601902365684509, 0.5266254544258118, 0.45664915442466736, -0.11372607201337814, 0.3057158589363098, -0.6532964706420898, -0.08553210645914078, -1.0408254861831665, -0.7643682956695557, 0.0018376987427473068, 0.5146055817604065, 0.028248198330402374, -1.074413776397705, 0.62829756736755...
func newResultSet(rs couchdb.ResultSet) ResultSet { frs := &resultSet{ rs: rs, } resp := response{} err := frs.rs.Document(&resp) if err != nil { frs.responseErr = err } else { frs.response = &resp } return frs }
[ 0.2846895158290863, -0.7846590280532837, 0.20772238075733185, -0.35601624846458435, -0.780423104763031, -1.073691487312317, -0.055913932621479034, -1.4126619100570679, 1.0511722564697266, -1.4036881923675537, 0.34208232164382935, -0.15788139402866364, -0.6015677452087402, -0.36514446139335...
func (frs *resultSet) IsOK() bool { return frs.rs.IsOK() && frs.responseErr == nil }
[ -0.290072500705719, -0.3911920487880707, 0.3491854667663574, 0.11934079229831696, -0.0657162293791771, -0.5607869029045105, 0.18542936444282532, -0.3744567334651947, 0.46279165148735046, -0.42587584257125854, 0.1683303564786911, -0.005989814642816782, -0.40896034240722656, -0.0493684299290...
func (frs *resultSet) StatusCode() int { return frs.rs.StatusCode() }
[ -0.08008520305156708, -0.43449968099594116, 0.3544555604457855, -0.06290474534034729, -0.30768102407455444, -0.5057003498077393, 0.6374931335449219, 0.571151852607727, -0.07250391691923141, -1.0612218379974365, 0.38686269521713257, 0.3023185133934021, -0.802555501461029, 0.0839251428842544...
func (req request) apply(parameters ...Parameter) { for _, applyParameterTo := range parameters { applyParameterTo(req) } }
[ -1.5989336967468262, -0.3783057630062103, 0.45514804124832153, 0.9026904702186584, 1.1206271648406982, 0.5230348706245422, -0.5653400421142578, 0.38447141647338867, -0.7859227657318115, -0.0780654177069664, 0.47329360246658325, 0.09725554287433624, -0.6673674583435059, 1.5487736463546753, ...
func (p *Point) ScalarMultBase(a *Scalar) *Point { if p == nil { p = new(Point) } key := C25519.ScalarmultBase(&a.key) p.key = *key return p }
[ 0.2312302440404892, -0.21869857609272003, 0.335708349943161, 0.683075487613678, -0.41442224383354187, -0.7761825919151306, -0.33395370841026306, -0.4555456340312958, 1.041109561920166, 0.33589962124824524, -0.8592064380645752, -0.23764728009700775, -0.0308024063706398, -0.15091025829315186...
func (n *NetworkTemplateSpec) GetControlPlaneSubnetTemplate() (SubnetTemplateSpec, error) { for _, sn := range n.Subnets { if sn.Role == SubnetControlPlane { return sn, nil } } return SubnetTemplateSpec{}, errors.Errorf("no subnet template found with role %s", SubnetControlPlane) }
[ 1.4491193294525146, -0.34138938784599304, 0.4817735552787781, 0.12612466514110565, -0.21489840745925903, 0.6291441917419434, -0.24275508522987366, -0.097264863550663, 0.22223921120166779, -0.0037881021853536367, -0.2812572419643402, -0.3643215000629425, -0.3423577845096588, -0.460718452930...
func (n *NetworkTemplateSpec) UpdateControlPlaneSubnetTemplate(subnet SubnetTemplateSpec) { for i, sn := range n.Subnets { if sn.Role == SubnetControlPlane { n.Subnets[i] = subnet } } }
[ 0.32735347747802734, -0.7470706105232239, 0.31815633177757263, -0.23041661083698273, -0.15869157016277313, 0.920849084854126, -0.5683400630950928, 0.16992980241775513, 0.3615487515926361, 0.15898524224758148, -0.9217838644981384, -0.15772461891174316, -0.43757787346839905, -0.3461043536663...
func (s SubnetTemplateSpec) IsNatGatewayEnabled() bool { return s.NatGateway.Name != "" }
[ 0.13489314913749695, -0.1246640607714653, 0.07532499730587006, -0.6191409826278687, -0.5335801243782043, -0.21840400993824005, -1.0911755561828613, -0.18832382559776306, -0.33923110365867615, 1.024636149406433, -1.3018789291381836, 0.118787981569767, 0.06118530035018921, 1.3647704124450684...
func (s SubnetTemplateSpec) IsIPv6Enabled() bool { for _, cidr := range s.CIDRBlocks { if net.IsIPv6CIDRString(cidr) { return true } } return false }
[ 0.32998424768447876, -0.620629608631134, 0.3269781172275543, 0.7112755179405212, 0.183061420917511, -0.4424601197242737, -0.3897000849246979, 0.5086379051208496, 0.16543252766132355, 0.9366306662559509, -1.1128411293029785, -1.0729702711105347, -0.6289353966712952, -0.31280308961868286, ...
func graphqlHandler() gin.HandlerFunc { // NewExecutableSchema and Config are in the generated.go file // Resolver is in the resolver.go file h := handler.NewDefaultServer(generated.NewExecutableSchema(generated.Config{Resolvers: &graph.Resolver{}})) return func(c *gin.Context) { h.ServeHTTP(c.Writer, c.Request)...
[ 0.5570224523544312, -0.7433570027351379, 0.3775808811187744, 0.41354647278785706, 0.11495877057313919, 0.41211268305778503, 0.37780141830444336, 0.1441475749015808, -0.29671674966812134, 0.2633914351463318, 0.027087008580565453, -0.34000658988952637, -0.330060750246048, -0.8723788857460022...
func playgroundHandler() gin.HandlerFunc { h := playground.Handler("GraphQL", "/query") return func(c *gin.Context) { h.ServeHTTP(c.Writer, c.Request) } }
[ 1.1446583271026611, 0.048298925161361694, 0.49809738993644714, -0.28286030888557434, -0.12538962066173553, 0.7768662571907043, 1.2420573234558105, -0.9242715239524841, -0.6349337100982666, -0.02750527858734131, -0.19889439642429352, -0.8783890008926392, -1.0228874683380127, -0.777843654155...
func (p *Parser) GetClubs(page int) ([]model.ClubSearch, int, error) { q := map[string]interface{}{"p": page} doc, code, err := p.getDoc(utils.BuildURLWithQuery(q, malURL, "clubs.php"), "#contentWrapper") if err != nil { return nil, code, err } return p.search.GetClub(doc), http.StatusOK, nil }
[ -1.5980255603790283, 0.6845206618309021, 0.7882887721061707, 0.4634898006916046, 0.44378817081451416, -0.10826840996742249, 0.7112830281257629, -0.5617032647132874, -0.2589372396469116, 0.0948314368724823, -0.02796446904540062, 0.01852702721953392, -1.0162535905838013, 0.4646579325199127, ...
func (p *Parser) GetClub(id int) (*model.Club, int, error) { q := map[string]interface{}{"cid": id} doc, code, err := p.getDoc(utils.BuildURLWithQuery(q, malURL, "clubs.php"), "#contentWrapper") if err != nil { return nil, code, err } return p.club.GetDetails(doc), http.StatusOK, nil }
[ -0.5852000117301941, 0.5481535792350769, 0.6345347166061401, 0.8574101328849792, 0.6507087349891663, -0.2875523269176483, 0.41348665952682495, -0.22755107283592224, -0.3434784710407257, -1.1199735403060913, 0.08374897390604019, 0.6862726211547852, -0.6652209758758545, 0.41436082124710083, ...
func (p *Parser) GetClubMember(id int, page int) ([]model.ClubMember, int, error) { q := map[string]interface{}{"id": id, "action": "view", "t": "members", "show": 36 * (page - 1)} doc, code, err := p.getDoc(utils.BuildURLWithQuery(q, malURL, "clubs.php"), "#content") if err != nil { return nil, code, err } retu...
[ -0.6860394477844238, 0.15514399111270905, 0.5376274585723877, 0.456053227186203, 0.10811011493206024, -0.2926573157310486, -0.08701712638139725, 0.13605457544326782, -0.24022416770458221, -0.1484469324350357, -1.0911270380020142, 0.8173609972000122, -0.6372078061103821, 0.7255325317382812,...
func (p *Parser) GetClubPicture(id int) ([]string, int, error) { q := map[string]interface{}{"id": id, "action": "view", "t": "pictures"} doc, code, err := p.getDoc(utils.BuildURLWithQuery(q, malURL, "clubs.php"), "#content") if err != nil { return nil, code, err } return p.club.GetPictures(doc), http.StatusOK, ...
[ -1.4494621753692627, 0.5759664177894592, 0.5230830311775208, 0.2620338797569275, -0.24433742463588715, -0.3360852599143982, 0.39723387360572815, -0.4706405699253082, -0.08043286949396133, 0.48536673188209534, -1.5362224578857422, 0.3762941062450409, -0.7837915420532227, 0.9177623987197876,...
func (p *Parser) GetClubRelated(id int) (*model.ClubRelated, int, error) { q := map[string]interface{}{"cid": id} doc, code, err := p.getDoc(utils.BuildURLWithQuery(q, malURL, "clubs.php"), "#contentWrapper") if err != nil { return nil, code, err } return p.club.GetRelated(doc), http.StatusOK, nil }
[ -0.10609686374664307, 0.5270348787307739, 0.6020274758338928, 0.7286390066146851, 0.19149631261825562, -0.15754538774490356, 0.42781034111976624, -0.335261732339859, -0.14169347286224365, -0.5679851174354553, -0.4834738075733185, 0.5803039073944092, -1.2347912788391113, 0.46175095438957214...
func htmlSubmitButton(y, x int) string { // return HTMLData(fmt.Sprintf("\"<button type='submit' name='%d,%d'>&nbsp;</button>\"", x, y)) return fmt.Sprintf("<button type='submit' name='yx' value='%d,%d'>%[1]d,%d</button>", y, x) }
[ -0.6020532846450806, -0.07589300721883774, 0.7382833361625671, -0.4583728015422821, -0.26358702778816223, 1.200399398803711, -1.1787618398666382, -0.7038404941558838, -0.2908887565135956, -0.1668848991394043, -0.6846795082092285, 0.3720911741256714, 0.6376743316650391, -0.08166275173425674...
func (r ApiAddTeacherToClassRequest) ClassTeacherReference(classTeacherReference ClassTeacherReference) ApiAddTeacherToClassRequest { r.classTeacherReference = &classTeacherReference return r }
[ -1.483535647392273, -0.5331572890281677, 0.5990155935287476, -0.07194209098815918, -0.06901927292346954, 0.01071660965681076, 0.36923930048942566, -0.24470660090446472, 0.24746769666671753, 0.7909265756607056, 0.07571268826723099, 0.7634887099266052, -0.49555981159210205, 0.449129730463027...
func (a *EducationClassTeachersApiService) AddTeacherToClass(ctx context.Context, classId string) ApiAddTeacherToClassRequest { return ApiAddTeacherToClassRequest{ ApiService: a, ctx: ctx, classId: classId, } }
[ -2.2221145629882812, -0.2739856243133545, 0.5102310180664062, 0.10601014643907547, -0.1778620481491089, 0.107212133705616, 0.0359644889831543, -0.05990516021847725, 0.12215815484523773, 0.5934995412826538, -0.3076995313167572, 0.8177111744880676, -0.507485568523407, 0.8219865560531616, 0...
func (a *EducationClassTeachersApiService) AddTeacherToClassExecute(r ApiAddTeacherToClassRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EducationClassT...
[ -1.7285981178283691, -0.4442499279975891, 1.1712630987167358, -0.011591636575758457, -0.18765711784362793, 0.07239846140146255, 0.5629482269287109, -0.4092515707015991, -0.39487314224243164, 1.0974032878875732, 0.3082762658596039, 0.8312390446662903, -0.6808345317840576, 1.0895441770553589...
func (a *EducationClassTeachersApiService) DeleteTeacherFromClass(ctx context.Context, classId string, userId string) ApiDeleteTeacherFromClassRequest { return ApiDeleteTeacherFromClassRequest{ ApiService: a, ctx: ctx, classId: classId, userId: userId, } }
[ -1.0517892837524414, -0.5781338214874268, 0.3700984716415405, 0.7954546809196472, -0.6637219786643982, 0.29800036549568176, 0.5218164920806885, -0.12388800829648972, 0.18857862055301666, 0.6171330809593201, 0.23225882649421692, 1.0546128749847412, -0.5545395612716675, 1.0827014446258545, ...
func (a *EducationClassTeachersApiService) DeleteTeacherFromClassExecute(r ApiDeleteTeacherFromClassRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodDelete localVarPostBody interface{} formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "Edu...
[ -1.0050373077392578, -0.5838842391967773, 1.026713490486145, 0.39406806230545044, -0.8564012050628662, -0.006939328275620937, 0.8877736330032349, -0.2121364176273346, -0.6659641861915588, 0.8206049799919128, 0.6165064573287964, 0.9542150497436523, -0.7239026427268982, 0.9390004277229309, ...
func (a *EducationClassTeachersApiService) GetTeachers(ctx context.Context, classId string) ApiGetTeachersRequest { return ApiGetTeachersRequest{ ApiService: a, ctx: ctx, classId: classId, } }
[ -1.251734733581543, 0.37146538496017456, 0.28161096572875977, 0.3793286681175232, 0.3283783197402954, -0.6712261438369751, 0.46155470609664917, -0.5034074783325195, 0.5683178901672363, 0.595244288444519, 0.007916580885648727, 1.5049169063568115, -0.7196477651596069, 1.1359905004501343, -...
func (a *EducationClassTeachersApiService) GetTeachersExecute(r ApiGetTeachersRequest) (*CollectionOfEducationUser, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile localVarReturnValue *CollectionOfEducationUser ) localBasePat...
[ -1.363287329673767, 0.27501916885375977, 1.0913301706314087, 0.27143988013267517, -0.005519050173461437, -0.8558836579322815, 0.15385419130325317, -0.3131130039691925, -0.2713969349861145, 1.219985842704773, 0.359393447637558, 0.9929280281066895, -0.6277874112129211, 0.8170837759971619, ...
func (m *Manager) GetCheckState(name string) (*CheckState, error) { ps, err := m.GetPluginState(name) if err != nil { return nil, xerrors.Errorf("GetPluginState err: %w", err) } return decodeCheckState(ps) }
[ -0.5447702407836914, -0.17969536781311035, 0.5486104488372803, 0.5449112057685852, -0.7256307601928711, -1.3788793087005615, -0.29582878947257996, -0.647237241268158, 0.03510900214314461, 0.5815865993499756, -1.1535604000091553, 0.2243233621120453, -1.1298418045043945, 0.2856469750404358, ...
func (m *Manager) PutCheckState(name string, in *CheckState) error { ps, err := encodeCheckState(in, m.ttl()) if err != nil { return err } return m.PutPluginState(name, ps) }
[ -0.9357974529266357, 0.143858402967453, 0.5605031847953796, 0.05508098006248474, -0.3981461524963379, -0.05284716933965683, -0.08958183974027634, 0.17377716302871704, 0.009800332598388195, 0.6845565438270569, -1.3441004753112793, -0.16013798117637634, -1.040155291557312, 0.1695706397294998...
func (m *Manager) GetHostState() (*HostState, error) { id := m.Org + "-" + m.Hostname res := &HostState{} if err := m.Get(id, res); err != nil { return nil, xerrors.Errorf("m.Get err: %w", err) } return res, nil }
[ 0.0370291993021965, 0.30575433373451233, 0.39673784375190735, 0.5446683764457703, -0.43092039227485657, -0.3003121614456177, -0.5462091565132141, -0.13504302501678467, -0.7721087336540222, 0.08411942422389984, -0.42953193187713623, 0.412408709526062, -1.2118158340454102, 0.0165645852684974...
func (m *Manager) PutHostState(in HostState) error { in.ID = m.Org + "-" + m.Hostname return m.Put(in) }
[ -0.7277089953422546, 0.01989869214594364, 0.38704028725624084, 0.004805984906852245, -0.457705557346344, 0.7815384864807129, -0.007771265227347612, 0.8092271685600281, -0.3400610089302063, 0.2573959231376648, -1.5981930494308472, -0.4367051124572754, -0.7018318176269531, 0.1451566815376281...
func (m *Manager) GetPluginState(name string) (*PluginState, error) { id := m.Org + "-" + m.Hostname + "-" + name res := &PluginState{} if err := m.Get(id, res); err != nil { return nil, xerrors.Errorf("m.Get err: %w", err) } if len(res.ID) == 0 { res.ID = m.Org + "-" + m.Hostname + "-" + name } if len(res.S...
[ -0.4223313331604004, -0.37717777490615845, 0.5473374128341675, 0.11952502280473709, -0.9025030732154846, -0.9516136646270752, -0.9475130438804626, -0.5067130327224731, 0.304334819316864, 0.5552051067352295, -1.1037763357162476, 0.8089975714683533, -1.3441874980926514, -0.3704260587692261, ...
func (m *Manager) PutPluginState(name string, in *PluginState) error { in.ID = m.Org + "-" + m.Hostname + "-" + name return m.Put(in) }
[ -0.8513350486755371, -0.5571690201759338, 0.4878532290458679, -0.6245787143707275, -0.6534824967384338, -0.03867091238498688, -0.4630923867225647, 0.275398850440979, 0.3281928300857544, 0.5232329368591309, -1.5001837015151978, 0.3901020288467407, -1.5100239515304565, -0.9535968899726868, ...
func NewGcmChannel(ctx *pulumi.Context, name string, args *GcmChannelArgs, opts ...pulumi.ResourceOption) (*GcmChannel, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.ApiKey == nil { return nil, errors.New("invalid value for required argument 'ApiKey'") } ...
[ -0.3664465844631195, 0.22040961682796478, 0.4266465902328491, -0.6076820492744446, 0.5834696888923645, 0.8981192708015442, -0.7035388946533203, -0.5274990797042847, 0.03312496468424797, 0.3204838037490845, -0.1548120528459549, 0.5025243163108826, -0.8077092170715332, 0.43742045760154724, ...
func GetGcmChannel(ctx *pulumi.Context, name string, id pulumi.IDInput, state *GcmChannelState, opts ...pulumi.ResourceOption) (*GcmChannel, error) { var resource GcmChannel err := ctx.ReadResource("aws:pinpoint/gcmChannel:GcmChannel", name, id, state, &resource, opts...) if err != nil { return nil, err } retur...
[ 0.1542428582906723, -0.014401856809854507, 0.26498156785964966, -0.54791659116745, 0.6945747137069702, 0.9659311175346375, -0.5775348544120789, -1.0558561086654663, 0.5329735279083252, -0.05707430839538574, 0.5093298554420471, 1.7425572872161865, -0.7822387218475342, -0.5621820688247681, ...
func (o GcmChannelOutput) ApiKey() pulumi.StringOutput { return o.ApplyT(func(v *GcmChannel) pulumi.StringOutput { return v.ApiKey }).(pulumi.StringOutput) }
[ 0.2186347097158432, -0.25934362411499023, 0.20689982175827026, -1.052133560180664, 0.6153252124786377, 0.7924569249153137, 0.06346767395734787, 0.20522360503673553, -0.47968173027038574, 0.7317891716957092, -0.16970406472682953, 0.7926111817359924, -0.9080150127410889, -0.8261443972587585,...
func (o GcmChannelOutput) Enabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v *GcmChannel) pulumi.BoolPtrOutput { return v.Enabled }).(pulumi.BoolPtrOutput) }
[ 1.23335599899292, -0.276536226272583, 0.3680580258369446, -0.14242669939994812, 0.6664182543754578, 1.0792125463485718, -0.18145973980426788, 0.32206571102142334, -0.03498031198978424, 0.35245195031166077, -0.563228964805603, 0.8522476553916931, -1.6505039930343628, -0.1642003059387207, ...
func NewVirtualMachineScaleSetVMRunCommandsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *VirtualMachineScaleSetVMRunCommandsClient { cp := arm.ClientOptions{} if options != nil { cp = *options } if len(cp.Host) == 0 { cp.Host = arm.AzurePublicCloud } return &Vir...
[ 0.6766801476478577, -1.025011658668518, 0.09368447959423065, -0.012523983605206013, -0.38054922223091125, -0.45034512877464294, -1.1192883253097534, -0.2880724370479584, -0.6793805956840515, 0.3240787386894226, -0.16620051860809326, 0.7220070362091064, -0.49862536787986755, -0.297993034124...
func (client *VirtualMachineScaleSetVMRunCommandsClient) createOrUpdateCreateRequest(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, runCommandName string, runCommand VirtualMachineRunCommand, options *VirtualMachineScaleSetVMRunCommandsBeginCreateOrUpdateOptions) (*policy.Reque...
[ -0.14895270764827728, -0.45337262749671936, 0.7725838422775269, -0.4122543931007385, -0.295475035905838, 0.2526768147945404, -0.3121107220649719, -0.1417430192232132, -0.44115549325942993, 0.1890503615140915, 0.6994276642799377, 0.7192040681838989, -0.33960333466529846, 0.7760204076766968,...
func (client *VirtualMachineScaleSetVMRunCommandsClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, runCommandName string, options *VirtualMachineScaleSetVMRunCommandsBeginDeleteOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptio...
[ 0.3195345997810364, -0.38151341676712036, 0.8978050351142883, -0.27673590183258057, -0.4585869014263153, -0.16025257110595703, 0.0396416150033474, -0.21888871490955353, -0.4140007793903351, -0.07777474820613861, 0.7226281762123108, 1.3386082649230957, -0.37956103682518005, 0.44977343082427...
func (client *VirtualMachineScaleSetVMRunCommandsClient) getCreateRequest(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, runCommandName string, options *VirtualMachineScaleSetVMRunCommandsGetOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resour...
[ 0.13965187966823578, -0.07568305730819702, 1.0604029893875122, -0.18701063096523285, 0.06637467443943024, -0.37174874544143677, -0.41824883222579956, -0.464855432510376, -0.8686102628707886, 0.29612603783607483, 0.9235049486160278, 1.706265926361084, -0.5243798494338989, 0.1780696809291839...
func (client *VirtualMachineScaleSetVMRunCommandsClient) getHandleResponse(resp *http.Response) (VirtualMachineScaleSetVMRunCommandsGetResponse, error) { result := VirtualMachineScaleSetVMRunCommandsGetResponse{RawResponse: resp} if err := runtime.UnmarshalAsJSON(resp, &result.VirtualMachineRunCommand); err != nil { ...
[ 0.05048942565917969, -0.2102138251066208, 0.6920020580291748, 0.294057697057724, 0.11613185703754425, -0.5095834732055664, 0.22904443740844727, -0.2963438630104065, 0.17903445661067963, -0.2714425027370453, 0.0984824076294899, -0.447275310754776, -1.0755763053894043, -0.29629603028297424, ...
func (client *VirtualMachineScaleSetVMRunCommandsClient) listCreateRequest(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, options *VirtualMachineScaleSetVMRunCommandsListOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGro...
[ -0.31062185764312744, -0.2633203864097595, 0.8697896599769592, -0.6140087246894836, -0.02552078664302826, -0.34394702315330505, -0.4951021373271942, -0.040855761617422104, -0.20560988783836365, 0.4842609167098999, 0.3302643597126007, 1.2098459005355835, -0.3809282183647156, 0.6780227422714...
func (client *VirtualMachineScaleSetVMRunCommandsClient) listHandleResponse(resp *http.Response) (VirtualMachineScaleSetVMRunCommandsListResponse, error) { result := VirtualMachineScaleSetVMRunCommandsListResponse{RawResponse: resp} if err := runtime.UnmarshalAsJSON(resp, &result.VirtualMachineRunCommandsListResult);...
[ -0.06886269152164459, -0.8145075440406799, 0.6673671007156372, -0.2519945800304413, -0.17387470602989197, -0.48405319452285767, -0.03619898855686188, 0.024778174236416817, 0.458536833524704, 0.34177568554878235, -0.4342799186706543, -0.6960410475730896, -0.6739007234573364, -0.058868963271...
func (client *VirtualMachineScaleSetVMRunCommandsClient) updateCreateRequest(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, runCommandName string, runCommand VirtualMachineRunCommandUpdate, options *VirtualMachineScaleSetVMRunCommandsBeginUpdateOptions) (*policy.Request, error)...
[ -0.3478083610534668, -0.5693564414978027, 0.9028792977333069, -0.17623426020145416, -0.6902187466621399, -0.0316426046192646, -0.1380566954612732, -0.1879170835018158, -0.8724927306175232, 0.47402113676071167, 0.5844013094902039, 1.2488645315170288, -0.42282330989837646, 0.3916895091533661...