text stringlengths 11 6.3k | embedding listlengths 768 768 |
|---|---|
func DoesNotContain(s []string, e string) bool {
return !Contains(s, e)
} | [
0.023010799661278725,
-0.6822848916053772,
0.05715057626366615,
0.4694162905216217,
0.22388960421085358,
0.05889473110437393,
-0.5254459977149963,
0.060740452259778976,
-0.15692012012004852,
0.17122918367385864,
0.287956565618515,
-0.3065646290779114,
-0.22149954736232758,
0.00713491905480... |
func (def TypeDefinition) Name() InternalTypeName {
return def.name
} | [
-1.1237086057662964,
-0.05376303941011429,
0.4459572434425354,
0.22857852280139923,
-0.45606860518455505,
-0.5796947479248047,
0.6846299171447754,
-0.2476942092180252,
-0.5879429578781128,
0.7865912914276123,
-1.0703541040420532,
-0.054666418582201004,
-0.4674111306667328,
0.63614118099212... |
func (def TypeDefinition) Type() Type {
return def.theType
} | [
-0.4336585998535156,
0.49356842041015625,
0.11176677793264389,
0.6502954363822937,
1.0076082944869995,
-0.15087051689624786,
1.0432313680648804,
-0.36436787247657776,
0.47453299164772034,
-0.1798601597547531,
-0.313291996717453,
0.6567527055740356,
-0.5210384726524353,
0.7785184979438782,
... |
func (def TypeDefinition) Description() []string {
var result []string
result = append(result, def.description...)
return result
} | [
-1.2745628356933594,
0.4502018988132477,
0.44413116574287415,
0.6877872347831726,
0.9555551409721375,
0.023190118372440338,
-0.7131818532943726,
-0.35201966762542725,
-0.36432021856307983,
1.1328213214874268,
-0.6972283124923706,
0.8123822212219238,
-0.3871332108974457,
1.797566533088684,
... |
func (def TypeDefinition) WithDescription(desc ...string) TypeDefinition {
var d []string
def.description = append(d, desc...)
return def
} | [
0.19919919967651367,
0.21279697120189667,
0.4632071256637573,
-0.04165832698345184,
0.47239774465560913,
0.15299203991889954,
-0.20832376182079315,
-0.2455826848745346,
-0.21266575157642365,
0.5010166168212891,
-0.6092703342437744,
0.34223127365112305,
0.3552843928337097,
1.381056785583496... |
func (def TypeDefinition) WithType(t Type) TypeDefinition {
result := def
result.theType = t
return result
} | [
-0.7637355923652649,
0.5541825890541077,
0.43946215510368347,
-0.06116481497883797,
0.23785288631916046,
-0.9553244709968567,
0.5153390765190125,
-0.3817566931247711,
0.360580176115036,
0.505100667476654,
-0.7997397184371948,
-0.28145113587379456,
0.09375815093517303,
0.9314581155776978,
... |
func (def TypeDefinition) WithName(typeName InternalTypeName) TypeDefinition {
result := def
result.name = typeName
return result
} | [
-0.9106653928756714,
-0.18535320460796356,
0.6136520504951477,
-0.53301602602005,
-0.5168315172195435,
-1.3416659832000732,
0.7034461498260498,
-0.20543453097343445,
-0.44079023599624634,
0.6836869716644287,
-1.3294321298599243,
-0.5575623512268066,
-0.20620709657669067,
0.24636210501194,
... |
func AsSimpleDeclarations(
codeGenerationContext *CodeGenerationContext,
declContext DeclarationContext,
theType Type,
) []dst.Decl {
var docComments dst.Decorations
if len(declContext.Description) > 0 {
astbuilder.AddWrappedComments(&docComments, declContext.Description)
}
AddValidationComments(&docComments,... | [
-0.845811128616333,
0.25929132103919983,
0.730877697467804,
-0.8311519026756287,
0.37980014085769653,
-0.18524068593978882,
-0.15643921494483948,
-0.2754889726638794,
0.4013921022415161,
0.2789379060268402,
-0.7520945072174072,
0.40794312953948975,
0.2729821801185608,
0.7160681486129761,
... |
func (def TypeDefinition) RequiredPackageReferences() *PackageReferenceSet {
return def.theType.RequiredPackageReferences()
} | [
-1.0365540981292725,
0.0525045245885849,
0.43448880314826965,
-0.18885987997055054,
0.025337254628539085,
0.1151680052280426,
-0.0696432963013649,
-0.2510280907154083,
0.27050361037254333,
0.07166685909032822,
-0.30437543988227844,
0.18192102015018463,
-1.0213336944580078,
1.11688256263732... |
func FileNameHint(name TypeName) string {
return transformToSnakeCase(name.Name())
} | [
0.31554073095321655,
-0.9740466475486755,
0.5958482027053833,
-1.2252107858657837,
0.01634068600833416,
-0.3408193290233612,
-0.5419557094573975,
-0.2996191084384918,
-0.3201013505458832,
1.4411098957061768,
0.08366290479898453,
0.5416494011878967,
0.3141780495643616,
0.37189117074012756,
... |
func (def TypeDefinition) ApplyObjectTransformation(transform func(*ObjectType) (Type, error)) (TypeDefinition, error) {
// We use a TypeVisitor to allow automatic handling of wrapper types (such as ArmType and StorageType)
visited := false
transformObject := func(ot *ObjectType) (Type, error) {
rt, err := transf... | [
-0.8189535140991211,
-0.28842398524284363,
0.7209531664848328,
-0.13599975407123566,
0.002699517412111163,
-0.6461610198020935,
0.3668866455554962,
-0.33855605125427246,
0.7056565880775452,
0.7287079691886902,
-1.2548338174819946,
0.13409677147865295,
0.3537624776363373,
-0.050706714391708... |
func (def TypeDefinition) ApplyObjectTransformations(transforms ...func(*ObjectType) (*ObjectType, error)) (TypeDefinition, error) {
return def.ApplyObjectTransformation(func(objectType *ObjectType) (Type, error) {
result := objectType
for i, transform := range transforms {
rt, err := transform(result)
if er... | [
-0.7544224262237549,
0.3536861836910248,
0.7624815702438354,
0.4502469003200531,
0.02650049328804016,
-0.4287334978580475,
0.48250481486320496,
-0.5740088224411011,
0.6330069303512573,
0.1807047724723816,
-1.3311175107955933,
-1.0494000911712646,
-0.012358115054666996,
-0.15189439058303833... |
func (Code) EnumDescriptor() ([]byte, []int) {
return file_graphsrv_proto_rawDescGZIP(), []int{0}
} | [
-0.9544714093208313,
0.9699727892875671,
0.5127756595611572,
-0.380776971578598,
0.3048899173736572,
-0.45135173201560974,
0.3361554443836212,
-0.17744122445583344,
0.390891969203949,
0.05459337309002876,
-0.24298901855945587,
0.3261425793170929,
-0.5449749231338501,
1.3931629657745361,
... |
func (*Status) Descriptor() ([]byte, []int) {
return file_graphsrv_proto_rawDescGZIP(), []int{0}
} | [
-0.5245125889778137,
0.1278620958328247,
0.22776293754577637,
0.15651337802410126,
-0.43511632084846497,
-0.07649654895067215,
0.35988128185272217,
0.4664519727230072,
-0.27145764231681824,
-1.0351377725601196,
-1.0294677019119263,
0.37181729078292847,
-0.01872391253709793,
0.9623463153839... |
func (*Edge) Descriptor() ([]byte, []int) {
return file_graphsrv_proto_rawDescGZIP(), []int{1}
} | [
-0.865019679069519,
0.5698934197425842,
0.6200570464134216,
0.004666144493967295,
0.20272700488567352,
-0.14298611879348755,
0.06702019274234772,
0.4241100549697876,
-0.5657341480255127,
-0.5319585204124451,
-0.17766432464122772,
0.04448971524834633,
-1.1313878297805786,
0.8721733093261719... |
func (*Graph) Descriptor() ([]byte, []int) {
return file_graphsrv_proto_rawDescGZIP(), []int{2}
} | [
-1.0286346673965454,
1.2240283489227295,
0.2678699493408203,
0.2735104560852051,
-0.40189328789711,
-0.20102818310260773,
0.1705753356218338,
0.1782243549823761,
-0.45392394065856934,
-0.7771731019020081,
-0.7616557478904724,
0.20935533940792084,
-0.1430605798959732,
0.15365596115589142,
... |
func (*Search) Descriptor() ([]byte, []int) {
return file_graphsrv_proto_rawDescGZIP(), []int{3}
} | [
-0.8264209032058716,
1.1377110481262207,
0.49746543169021606,
-0.03368992730975151,
0.09946303814649582,
0.17464081943035126,
0.6924232244491577,
-0.4403700828552246,
-0.4391184449195862,
-0.47583961486816406,
-0.5131909847259521,
-0.045500498265028,
-0.8874666690826416,
0.1891070008277893... |
func (*Path) Descriptor() ([]byte, []int) {
return file_graphsrv_proto_rawDescGZIP(), []int{4}
} | [
-0.12490899115800858,
0.4076670706272125,
0.3508853018283844,
0.1295909583568573,
-0.7024442553520203,
0.18049675226211548,
0.8306326270103455,
-0.3642231822013855,
-0.6305863857269287,
-0.6617329716682434,
-0.6740605235099792,
-0.3384183943271637,
-0.7362399101257324,
0.20896300673484802,... |
func (x *TextPBFieldFormat) UnmarshalJSON(b []byte) error {
num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
if err != nil {
return err
}
*x = TextPBFieldFormat(num)
return nil
} | [
-0.29811158776283264,
0.2733410596847534,
0.41771990060806274,
-1.1392444372177124,
-0.6294079422950745,
0.16448673605918884,
0.2558670938014984,
0.3234669864177704,
-0.5176262259483337,
-0.2749062180519104,
-0.80913907289505,
-0.7577328085899353,
-0.7547942996025085,
0.6136823892593384,
... |
func (TextPBFieldFormat) EnumDescriptor() ([]byte, []int) {
return file_go_chromium_org_luci_common_proto_options_proto_rawDescGZIP(), []int{0}
} | [
0.15395256876945496,
-0.24321593344211578,
0.34163299202919006,
-0.642938494682312,
0.428579181432724,
0.2650306820869446,
-0.27695268392562866,
0.1684703528881073,
-0.7609562873840332,
-0.12291346490383148,
-0.30769774317741394,
-0.06034329906105995,
-1.107322096824646,
0.971896767616272,... |
func (*Metadata) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_common_proto_options_proto_rawDescGZIP(), []int{0}
} | [
-0.05100373178720474,
0.5815297961235046,
0.5192807912826538,
-0.09434609860181808,
0.5402970314025879,
0.15753214061260223,
-0.2880804240703583,
-0.042211975902318954,
-0.4336295425891876,
0.23639045655727386,
-0.045725028961896896,
0.10362140089273453,
-0.09743604809045792,
0.45242637395... |
func (r *ResponseHandler) IndexEndpoint(c *gin.Context) {
r.database.GetUser(c.Param("user"))
c.JSON(200, gin.H{
"message": "pong",
})
} | [
-0.019479434937238693,
-0.3072921335697174,
0.13512274622917175,
0.6767427325248718,
0.1296207308769226,
0.2699856460094452,
0.7966295480728149,
0.06911187618970871,
-0.5487664937973022,
0.7970585227012634,
-0.0901673212647438,
0.22973991930484772,
-0.5922805070877075,
-0.09588200598955154... |
func (CounterType) EnumDescriptor() ([]byte, []int) {
return file_response_proto_rawDescGZIP(), []int{0}
} | [
0.3921704590320587,
0.10797297954559326,
0.37783083319664,
-0.31616613268852234,
0.4906180799007416,
-0.006936980411410332,
0.8186664581298828,
-0.65779709815979,
0.4720495939254761,
-0.27811047434806824,
-0.14922325313091278,
0.10917767137289047,
-0.35335594415664673,
1.8900920152664185,
... |
func (StateType) EnumDescriptor() ([]byte, []int) {
return file_response_proto_rawDescGZIP(), []int{1}
} | [
-0.9924560189247131,
0.38281309604644775,
0.3540155291557312,
-0.2623824179172516,
0.3124225437641144,
-0.5801129937171936,
0.2703742980957031,
-0.38913819193840027,
1.017815351486206,
0.5548230409622192,
-0.37766775488853455,
-0.35707390308380127,
-0.2371090203523636,
1.2094552516937256,
... |
func (*General) Descriptor() ([]byte, []int) {
return file_response_proto_rawDescGZIP(), []int{0}
} | [
-0.6853671669960022,
0.3420368432998657,
0.4193546175956726,
-0.05631972476840019,
0.2023998200893402,
0.3334810137748718,
-0.11559440195560455,
-0.05226682871580124,
-0.835934042930603,
-0.8698042631149292,
0.12944026291370392,
0.6101891398429871,
-0.11504720896482468,
1.2416952848434448,... |
func (*GeneralReward) Descriptor() ([]byte, []int) {
return file_response_proto_rawDescGZIP(), []int{1}
} | [
-0.22552403807640076,
0.2614051401615143,
0.46990421414375305,
-0.3418513238430023,
0.4999602138996124,
0.0858667865395546,
0.5293328762054443,
0.13448813557624817,
0.4006395936012268,
-0.9506288170814514,
-0.4018261134624481,
1.1334761381149292,
-0.17002218961715698,
0.6234330534934998,
... |
func (*GeneralState) Descriptor() ([]byte, []int) {
return file_response_proto_rawDescGZIP(), []int{2}
} | [
-0.3084675371646881,
0.21532122790813446,
0.3538307845592499,
-0.24436543881893158,
-0.2593175768852234,
0.41377413272857666,
-0.05960124358534813,
-0.1781386137008667,
-0.09568288922309875,
-1.3488916158676147,
-0.15438194572925568,
0.18112577497959137,
0.2725710868835449,
0.4663824737071... |
func (*PerChange) Descriptor() ([]byte, []int) {
return file_response_proto_rawDescGZIP(), []int{3}
} | [
-0.9074282646179199,
0.8525539040565491,
0.5668625235557556,
0.16258098185062408,
0.4891201853752136,
0.19155879318714142,
0.31010428071022034,
0.0898505449295044,
-0.8025867342948914,
-0.5966429114341736,
-0.9596220254898071,
-0.19986622035503387,
-0.7861413359642029,
1.1137248277664185,
... |
func (*GeneralLayout) Descriptor() ([]byte, []int) {
return file_response_proto_rawDescGZIP(), []int{4}
} | [
0.30514591932296753,
0.3767617344856262,
0.4655289947986603,
0.1210177093744278,
-0.47095274925231934,
0.3492063879966736,
0.3162127435207367,
0.2908307909965515,
-0.0894843116402626,
-1.6081194877624512,
0.3735252916812897,
0.3406110107898712,
-0.49361318349838257,
0.6927461624145508,
0... |
func (*BdInformation) Descriptor() ([]byte, []int) {
return file_response_proto_rawDescGZIP(), []int{5}
} | [
-0.32755547761917114,
0.05090325325727463,
0.06956370919942856,
-0.3122760057449341,
0.5744096636772156,
-0.13521824777126312,
0.8592501282691956,
-0.17425140738487244,
-0.7852844595909119,
-0.17241907119750977,
-0.7856342792510986,
-0.10246284306049347,
-0.8277310729026794,
0.828657746315... |
func (*HeroInformation) Descriptor() ([]byte, []int) {
return file_response_proto_rawDescGZIP(), []int{6}
} | [
-0.6741210222244263,
0.9215711951255798,
0.3188057541847229,
-0.6620157361030579,
1.3289657831192017,
-0.07352092862129211,
0.7426945567131042,
-0.493032306432724,
-0.24641555547714233,
-0.20305542647838593,
-1.4393776655197144,
-0.35824984312057495,
-0.7766214609146118,
1.0561350584030151... |
func (*SyncPos) Descriptor() ([]byte, []int) {
return file_response_proto_rawDescGZIP(), []int{7}
} | [
-0.046524401754140854,
0.3730109632015228,
0.29598724842071533,
-0.26419171690940857,
-0.6175804138183594,
-0.4963950514793396,
0.21833589673042297,
0.4468497335910797,
-0.24567782878875732,
-0.3991478383541107,
-0.8390898704528809,
0.05755864828824997,
0.3721138536930084,
0.3688944876194,... |
func (*StateDetail) Descriptor() ([]byte, []int) {
return file_response_proto_rawDescGZIP(), []int{8}
} | [
-0.48056355118751526,
0.7769390940666199,
0.3340001702308655,
-0.018617156893014908,
-0.2180376499891281,
-0.1914711594581604,
0.19024337828159332,
-0.33098194003105164,
0.07651836425065994,
-0.1753898561000824,
-0.8768617510795593,
0.6454992890357971,
0.6468016505241394,
0.455940186977386... |
func Walk(t *tree.Tree, ch chan int) {
if t.Left != nil {
Walk(t.Left, ch)
}
ch <- t.Value
if t.Right != nil {
Walk(t.Right, ch)
}
} | [
-0.65557861328125,
0.09965711832046509,
0.6954433917999268,
-0.8147673606872559,
0.21958941221237183,
0.7013198733329773,
-0.314554899930954,
-0.8369467258453369,
-0.6762567758560181,
-0.3914121091365814,
-1.3622077703475952,
-0.021771715953946114,
0.2807782292366028,
1.4654622077941895,
... |
func Same(t1, t2 *tree.Tree) bool {
ch1 := make(chan int)
go DoWalk(t1, ch1)
ch2 := make(chan int)
go DoWalk(t2, ch2)
for {
v1, ok1 := <-ch1
v2, ok2 := <-ch2
if v1 != v2 || ok1 && !ok2 || !ok1 && ok2 {
return false
}
if !ok1 && !ok2 {
break
}
}
return true
} | [
-0.906363308429718,
-0.023711074143648148,
0.8976908922195435,
-0.05210534855723381,
-0.7771181464195251,
0.2673865556716919,
-0.3372012674808502,
-0.7237258553504944,
-1.4294395446777344,
0.6812219023704529,
-1.2207527160644531,
0.7934432029724121,
-0.49439114332199097,
0.1256006509065628... |
func (*KeyPath) Descriptor() ([]byte, []int) {
return file_service_proto_rawDescGZIP(), []int{0}
} | [
-0.24376903474330902,
0.24565699696540833,
0.1784387230873108,
0.17520549893379211,
-0.6127883791923523,
0.0766737088561058,
0.2714938223361969,
-0.668562650680542,
-0.7119269371032715,
-0.22386394441127777,
-0.6239864230155945,
0.23560859262943268,
-0.31273555755615234,
0.516998827457428,... |
func (c RipConfig) UseRankingForStopWord() bool {
switch {
case c.StopWordTopNumber > 0,
c.StopWordTopPercent > 0,
c.StopWordLastNumber > 0,
c.StopWordLastPercent > 0:
return true
}
return false
} | [
-0.859448254108429,
0.08707576245069504,
0.44315585494041443,
-0.1534622758626938,
0.04180372506380081,
0.8909714818000793,
0.33270031213760376,
-0.0034627781715244055,
-0.4572642147541046,
-0.3130909502506256,
0.04119887202978134,
-0.869075357913971,
-0.41466450691223145,
0.25219810009002... |
func NewQuerier(ctx context.Context, db *sqlx.DB, savepointer savepointers.Savepointer,
txOpts sql.TxOptions) (Querier, error) {
if db == nil {
return nil, satomic.ErrNeedsDb
}
wq := &wrappedQuerier{db: db}
q, err := satomic.NewQuerierWithTxCreator(ctx, db.DB, savepointer, txOpts, wq.txCreator)
if err != nil {... | [
-0.16152802109718323,
0.09564468264579773,
0.2531684637069702,
0.06664737313985825,
-0.7745124101638794,
0.05064165219664574,
-1.0024640560150146,
-0.5838465690612793,
0.3329682946205139,
-0.2754862606525421,
-0.0077257174998521805,
0.18572068214416504,
-0.07543352246284485,
0.894756317138... |
func main() {
flag.Parse()
files := flag.Args()
logfile, err := os.OpenFile("ge.log", os.O_RDWR|os.O_CREATE|os.O_APPEND, 0664)
if err != nil {
log.Fatalf("Open(ge.log) error: %v", err)
}
defer logfile.Close()
log.SetOutput(logfile)
var buffers []Buffer
for _, file := range files {
var f io.Reader
f, er... | [
0.5528475046157837,
-0.19678029417991638,
1.1609830856323242,
-0.10686413943767548,
-0.24230949580669403,
0.4327698051929474,
0.38979220390319824,
0.23135489225387573,
-0.9497097134590149,
-0.3393707573413849,
-0.32562628388404846,
-0.3266076147556305,
0.1504196673631668,
-0.11822135001420... |
func Init() error {
var err error
if err = createHomeFolder(); err != nil {
return err
}
if err = checkCompiler(); err != nil {
return err
}
if err = downloadGCC(); err != nil {
return err
}
if err = compileGCC(); err != nil {
return err
}
return nil
} | [
0.36665040254592896,
0.2556714713573456,
0.7818750739097595,
0.7784924507141113,
1.1266987323760986,
0.788077175617218,
0.8268303871154785,
-0.4158141314983368,
-0.3333505690097809,
-0.8807718753814697,
-0.11874654144048691,
0.6592148542404175,
-0.5616451501846313,
1.1319856643676758,
1.... |
func (r MemRegion) Name() string {
return r.name
} | [
0.11616778373718262,
-0.6260589957237244,
0.20779867470264435,
-0.46000662446022034,
-1.0157198905944824,
0.31956031918525696,
0.29127222299575806,
-0.42754241824150085,
-0.06923512369394302,
0.029789021238684654,
-0.13761410117149353,
-0.05866527557373047,
-0.4837448298931122,
0.245879009... |
func (r MemRegion) Region() (uint64, uint64) {
return r.base, r.size
} | [
-0.780902624130249,
-0.547115683555603,
0.22925066947937012,
-0.4100261926651001,
-0.1410658359527588,
-0.14657720923423767,
0.8412430882453918,
-0.19937993586063385,
0.6032508015632629,
-0.23391853272914886,
-0.37819695472717285,
0.6746637225151062,
-0.21887576580047607,
0.640795826911926... |
func (r MemRegion) End() uint64 {
return r.base + r.size
} | [
0.42084139585494995,
-0.5624947547912598,
0.4401899576187134,
-0.5534359812736511,
-0.3613205850124359,
0.5454587340354919,
0.25974318385124207,
-0.33543920516967773,
-0.26697203516960144,
-0.47848567366600037,
-0.46150779724121094,
0.299691379070282,
-1.2333035469055176,
1.018208384513855... |
func (r MemRegion) Permissions() Permissions {
return r.perms
} | [
0.33571964502334595,
-0.5469927191734314,
0.12402603775262833,
-0.38404473662376404,
-0.9473068714141846,
-0.0967520996928215,
0.44812268018722534,
-0.6851422190666199,
0.5047922730445862,
-0.6583636999130249,
0.4022827744483948,
0.4280122220516205,
-1.2337205410003662,
0.01705223135650158... |
func (r MemRegion) String() string {
perm := r.perms.String()
end := r.base + r.size - 1
ret := fmt.Sprintf("%-12s [0x%08x-0x%08x] {%3s} in:\"%s\" out:\"%s\"",
r.name, r.base, end, perm, r.inputFile, r.outputFile)
return ret
} | [
0.3534957468509674,
-1.2824974060058594,
0.5207749605178833,
-1.2469830513000488,
-1.267179012298584,
0.46911734342575073,
0.5308390259742737,
-1.0132814645767212,
-0.9787551760673523,
-0.29799601435661316,
0.21694298088550568,
0.7282029986381531,
-1.3460078239440918,
-0.4274292290210724,
... |
func (r MemRegion) HasInputFile() bool {
return r.inputFile != ""
} | [
1.3348392248153687,
0.10494162887334824,
0.48776429891586304,
-0.8932222723960876,
-0.33295920491218567,
0.8195393085479736,
1.148189663887024,
0.5092098712921143,
-1.3223968744277954,
-0.4559187591075897,
-0.6183701753616333,
-0.9761623740196228,
-1.2949012517929077,
0.5181880593299866,
... |
func (r *MemRegion) loadError(e error) ([]byte, error) {
return []byte{}, fmt.Errorf(
"Failed to load data for memory region \"%s\" - %s",
r.name, e.Error())
} | [
-0.03400060161948204,
-0.13964322209358215,
0.32134655117988586,
-0.8914558291435242,
-0.8491706252098083,
-0.017596689984202385,
-0.95835280418396,
-0.006170774344354868,
0.23634730279445648,
0.26018044352531433,
-0.40113744139671326,
0.39429542422294617,
-0.5216754674911499,
1.0138300657... |
func (r *MemRegion) LoadInputData() ([]byte, error) {
var data []byte = make([]byte, r.size)
if r.HasInputFile() {
f, err := os.Open(r.inputFile)
if err != nil {
return r.loadError(err)
}
// TODO Allow this to be specified in the memory specifier syntax
offset := int64(0)
_, err = f.Seek(offset, 0)... | [
-0.0450509674847126,
-0.19592125713825226,
0.64559006690979,
-0.8180168271064758,
-1.0387239456176758,
1.0433636903762817,
0.28841444849967957,
-0.20796987414360046,
-0.31019580364227295,
-0.40831780433654785,
0.14163221418857574,
0.18585698306560516,
-1.3374181985855103,
0.551920592784881... |
func (r MemRegion) HasOutputFile() bool {
return r.outputFile != ""
} | [
1.1370453834533691,
-0.2834191620349884,
0.5440440773963928,
-0.6083746552467346,
-0.3480924665927887,
-0.04747339338064194,
0.7238806486129761,
0.21735139191150665,
-1.696057915687561,
-0.09094681590795517,
0.07937059551477432,
-1.488961100578308,
-0.3198527991771698,
0.5049887895584106,
... |
func (r MemRegion) WriteFile(data []byte) error {
if r.HasOutputFile() {
return ioutil.WriteFile(r.outputFile, data, 0644)
}
return nil
} | [
0.6811937689781189,
-0.105717733502388,
0.3311558663845062,
-0.19657671451568604,
0.20945297181606293,
0.3661326766014099,
0.9765443205833435,
-0.30925804376602173,
-0.5826104879379272,
-0.8706827163696289,
0.18190979957580566,
-1.000866174697876,
-0.7552831172943115,
0.9288265705108643,
... |
func (r MemRegion) IsValid() (bool, error) {
var err error
if len(r.name) == 0 {
return false, errors.New("MemRegion name cannot be blank.")
} else if r.name == "code" && len(r.inputFile) == 0 {
return false, errors.New("The \"code\" memory region requires an input file.")
}
if (^uint64(0) - r.size) < r.base... | [
-0.09765821695327759,
-0.9187605977058411,
0.7093812227249146,
-0.532097578048706,
-0.4716806709766388,
0.5901946425437927,
0.280828058719635,
-0.4369966685771942,
0.08198007941246033,
-0.36875608563423157,
0.46793442964553833,
0.7423352003097534,
-1.1087090969085693,
1.0827221870422363,
... |
func NewMemRegion(s string) (region MemRegion, err error) {
var fields []string
if fields = strings.Split(s, ":"); len(fields) < 3 {
err = errors.New("MemRegion requires at least 3 fields.")
return
}
region.name = fields[0]
if region.base, err = strconv.ParseUint(fields[1], 0, 64); err != nil {
err = fmt.... | [
-0.012126144021749496,
-0.6271852254867554,
0.4953739643096924,
-0.2104695737361908,
-1.5663689374923706,
-0.43251901865005493,
0.390076220035553,
-0.1190846860408783,
0.22576454281806946,
0.0007448269752785563,
-0.3079831004142761,
0.006627182941883802,
-0.5630577802658081,
0.142218708992... |
func (*Message) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
return _Message_OneofMarshaler, _Message_OneofUnmarshaler, _Message_OneofSizer, []interface{}{
(*Message_OpenPaylo... | [
-0.4317181408405304,
0.9795053601264954,
0.6311904788017273,
-0.6758888959884644,
0.5131797194480896,
-0.8513532280921936,
0.6647565960884094,
-1.3765583038330078,
0.3197312653064728,
-0.9999635815620422,
-0.03988343104720116,
-0.1649709790945053,
-0.4182376265525818,
1.1139700412750244,
... |
func (res *Response) getResponseCode() string {
return res.ResponseCode
} | [
1.0416643619537354,
-1.2782195806503296,
0.3038019835948944,
0.6829254031181335,
0.34080982208251953,
-0.3333423137664795,
0.4888346493244171,
0.407997190952301,
0.6782214045524597,
-0.7649739384651184,
0.275922954082489,
-0.41831737756729126,
-0.36531177163124084,
-0.004777171649038792,
... |
func (res *Response) getStatusCode() int {
return res.StatusCode
} | [
0.9501788020133972,
-0.6912477016448975,
0.6197633147239685,
0.5194785594940186,
0.1415431946516037,
-0.34566035866737366,
0.7519030570983887,
0.8259207606315613,
0.21012499928474426,
-0.7329307794570923,
-0.5010591149330139,
-0.40974071621894836,
-0.5027923583984375,
-0.14629672467708588,... |
func (res *Response) isSuccessfulResponse() bool {
return res.IsSuccessfulResponse
} | [
-0.07451935857534409,
0.18014319241046906,
0.28059881925582886,
0.3421227037906647,
-0.2988550066947937,
-0.34116601943969727,
0.2780603766441345,
0.2116604894399643,
0.5445846319198608,
0.25794732570648193,
-1.3896842002868652,
-1.0974390506744385,
-0.09105989336967468,
-0.264850795269012... |
func (res *Response) requiresValidation() bool {
return res.RequiresValidation
} | [
-0.7593164443969727,
-0.30733129382133484,
0.24743035435676575,
0.6735770106315613,
-0.842688262462616,
0.4183149039745331,
0.180227130651474,
-0.2817598283290863,
0.41454339027404785,
0.028031621128320694,
-0.4822152256965637,
-1.282161831855774,
-0.5355339050292969,
0.17202167212963104,
... |
func (res *Response) getResponseMessage() string {
return res.ResponseMessage
} | [
-0.4932582974433899,
-0.5991753935813904,
0.22642108798027039,
0.2675980031490326,
1.1516445875167847,
-0.2758256494998932,
0.32805782556533813,
-1.2653779983520508,
0.748694658279419,
-1.0002975463867188,
-0.4111799895763397,
-0.9506271481513977,
-1.0712782144546509,
0.18955658376216888,
... |
func (r *RequestService) NewRequest(url string, body interface{}) *RequestService {
r.URL = url
if body == nil {
r.Data = make(map[string]string)
} else {
r.Data = body
}
return r
} | [
-1.095062255859375,
0.22586798667907715,
0.2725808322429657,
-0.19635960459709167,
-0.06841286271810532,
0.3866725564002991,
-1.7118698358535767,
0.4872640371322632,
1.048496961593628,
-0.6213672757148743,
0.23323635756969452,
1.1861847639083862,
-0.18587402999401093,
0.15872976183891296,
... |
func (fn GetHashHandlerFunc) Handle(params GetHashParams) middleware.Responder {
return fn(params)
} | [
1.0309354066848755,
-0.1954232156276703,
0.4864563047885895,
0.875505805015564,
0.5623536109924316,
0.33949291706085205,
0.2820433974266052,
0.23780599236488342,
-0.12312617152929306,
-0.9417535066604614,
0.43424999713897705,
-0.26316410303115845,
-0.4265271723270416,
-0.16462868452072144,... |
func NewGetHash(ctx *middleware.Context, handler GetHashHandler) *GetHash {
return &GetHash{Context: ctx, Handler: handler}
} | [
0.9627901315689087,
-0.061972495168447495,
0.42144685983657837,
0.9656911492347717,
-0.4205819368362427,
0.36518988013267517,
-0.5058600902557373,
-0.11302600800991058,
-0.1116439551115036,
-0.7233882546424866,
-0.5673443078994751,
0.7833095192909241,
0.44802650809288025,
0.024150460958480... |
func (center *central) OnCreateSignalingConnection(cmd *wsio.FromServerCommand) {
defer func() {
if err := recover(); err != nil {
glog.Errorln(err)
}
}()
socket, _, err := center.Dial(center.conf.SignalingUrl(string(cmd.Value())), nil)
if err != nil {
glog.Errorln(err)
center.SendCtrl(cmd.ToManyInfo("D... | [
-0.1387479603290558,
-0.7166945934295654,
0.36474230885505676,
0.313093364238739,
-0.5680336952209473,
0.04379160702228546,
0.4867478311061859,
0.05400923267006874,
-0.6656879186630249,
0.3905584514141083,
-0.32286566495895386,
-0.6863866448402405,
-0.31889501214027405,
0.7773677110671997,... |
func newLogFormatter(globals server.Globals) handlers.LogFormatter {
return logFormatter{
logger: globals.Logger,
}.format
} | [
-0.24741782248020172,
-0.7169450521469116,
0.1556866466999054,
-0.45777031779289246,
-1.8957390785217285,
-0.4864843487739563,
-1.1841098070144653,
-0.2165280431509018,
0.3580359220504761,
-0.793674647808075,
-0.68681800365448,
0.5040367841720581,
-0.6797600984573364,
1.3531486988067627,
... |
func (f logFormatter) format(_ io.Writer, params handlers.LogFormatterParams) {
f.logger.With(
zap.Duration("duration", time.Since(params.TimeStamp)),
zap.String("url", params.URL.String()),
zap.String("method", params.Request.Method),
zap.String("remote_addr", params.Request.RemoteAddr),
zap.String("user_ag... | [
-0.1209031268954277,
-0.881352961063385,
0.6520654559135437,
-0.5791339874267578,
-0.042395707219839096,
-0.007027389016002417,
-0.17594030499458313,
-0.04415522888302803,
-0.26737648248672485,
-0.47965192794799805,
1.069848656654358,
0.35867807269096375,
0.715703010559082,
1.0326880216598... |
func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService {
return &Client{transport: transport, formats: formats}
} | [
0.25708064436912537,
-1.2911276817321777,
-0.15975941717624664,
-1.1987494230270386,
-0.7055332064628601,
0.14473751187324524,
0.16492673754692078,
-0.7642391324043274,
-0.964878261089325,
-0.4666050374507904,
-0.13648737967014313,
0.7510700225830078,
0.052431024610996246,
0.66191029548645... |
func (a *Client) AuthinfoSend(params *AuthinfoSendParams) (*AuthinfoSendOK, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewAuthinfoSendParams()
}
result, err := a.transport.Submit(&runtime.ClientOperation{
ID: "authinfoSend",
Method: "PUT",
P... | [
-1.1235013008117676,
-0.21679264307022095,
0.5530338883399963,
-0.06638152152299881,
-0.16915787756443024,
0.001363947638310492,
0.9164695143699646,
-0.8047338724136353,
-0.47296440601348877,
0.34139320254325867,
-0.8507606983184814,
1.6686601638793945,
-0.371920108795166,
0.41328492760658... |
func (a *Client) AutoDnssecKeyRollover(params *AutoDnssecKeyRolloverParams) (*AutoDnssecKeyRolloverOK, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewAutoDnssecKeyRolloverParams()
}
result, err := a.transport.Submit(&runtime.ClientOperation{
ID: "autoDnssecK... | [
-1.845568060874939,
0.7968315482139587,
0.7935593128204346,
-0.07968617975711823,
-0.7574308514595032,
-0.05892077088356018,
0.43979114294052124,
-0.5093019604682922,
-0.30704593658447266,
0.12332721054553986,
-1.2913860082626343,
0.9529639482498169,
-0.3033008277416229,
-0.053742527961730... |
func (a *Client) DomainAuthinfo1Create(params *DomainAuthinfo1CreateParams) (*DomainAuthinfo1CreateOK, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewDomainAuthinfo1CreateParams()
}
result, err := a.transport.Submit(&runtime.ClientOperation{
ID: "domainAuthi... | [
-1.5597890615463257,
-0.15531645715236664,
0.3791984021663666,
0.08267465978860855,
-0.4603508412837982,
0.6723330616950989,
0.794488787651062,
-0.5525141358375549,
-0.6000285148620605,
0.10025627166032791,
-0.6474389433860779,
0.6753281950950623,
-0.16994687914848328,
0.3085162341594696,
... |
func (a *Client) DomainAuthinfo1Delete(params *DomainAuthinfo1DeleteParams) (*DomainAuthinfo1DeleteOK, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewDomainAuthinfo1DeleteParams()
}
result, err := a.transport.Submit(&runtime.ClientOperation{
ID: "domainAuthi... | [
-1.2489103078842163,
-0.21368075907230377,
0.4080738127231598,
0.2021791785955429,
-0.5046449899673462,
0.3380279541015625,
0.9359416365623474,
-0.3218403160572052,
-0.3170967996120453,
0.4835171103477478,
-0.09007519483566284,
1.2522739171981812,
-0.42037421464920044,
0.0536990649998188,
... |
func (a *Client) DomainAuthinfo2Create(params *DomainAuthinfo2CreateParams) (*DomainAuthinfo2CreateOK, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewDomainAuthinfo2CreateParams()
}
result, err := a.transport.Submit(&runtime.ClientOperation{
ID: "domainAuthi... | [
-1.609253168106079,
-0.6675717234611511,
0.38604456186294556,
-0.20341649651527405,
-0.7019023895263672,
0.5679807662963867,
0.4429822564125061,
-0.6505703926086426,
-0.878162145614624,
-0.24406130611896515,
-0.9792969822883606,
1.109045147895813,
0.25614508986473083,
0.41142740845680237,
... |
func (a *Client) DomainBuy(params *DomainBuyParams) (*DomainBuyOK, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewDomainBuyParams()
}
result, err := a.transport.Submit(&runtime.ClientOperation{
ID: "domainBuy",
Method: "POST",
PathPattern: ... | [
-1.8744919300079346,
0.07113758474588394,
0.6422094106674194,
0.43118947744369507,
0.675965428352356,
-0.22622433304786682,
0.34317871928215027,
-0.5340418815612793,
-0.6800045371055603,
0.04744323343038559,
-0.8505029678344727,
1.3083287477493286,
-0.6736109852790833,
0.05094457045197487,... |
func (a *Client) DomainCancelationCreate(params *DomainCancelationCreateParams) (*DomainCancelationCreateOK, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewDomainCancelationCreateParams()
}
result, err := a.transport.Submit(&runtime.ClientOperation{
ID: "dom... | [
-0.9291260838508606,
0.1683230996131897,
0.4403306841850281,
0.24569635093212128,
-0.1693836748600006,
0.33693966269493103,
0.5523842573165894,
-0.2931392192840576,
-0.5179818272590637,
0.48466241359710693,
-0.16020600497722626,
-0.4156240224838257,
-0.2910650074481964,
0.3327749967575073,... |
func (a *Client) DomainCancelationDelete(params *DomainCancelationDeleteParams) (*DomainCancelationDeleteOK, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewDomainCancelationDeleteParams()
}
result, err := a.transport.Submit(&runtime.ClientOperation{
ID: "dom... | [
-0.31586432456970215,
-0.07288138568401337,
0.4344579577445984,
0.4918738007545471,
-0.13451547920703888,
-0.2592880129814148,
0.7210107445716858,
0.4138380289077759,
-0.16766315698623657,
0.7591759562492371,
0.12568481266498566,
-0.003572516841813922,
-0.40021252632141113,
-0.165246859192... |
func (a *Client) DomainCancelationInfo(params *DomainCancelationInfoParams) (*DomainCancelationInfoOK, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewDomainCancelationInfoParams()
}
result, err := a.transport.Submit(&runtime.ClientOperation{
ID: "domainCance... | [
-0.767495334148407,
-0.16851209104061127,
0.6784427165985107,
0.1520128697156906,
-0.7789353132247925,
0.051370516419410706,
0.2369055449962616,
-0.3373073935508728,
-0.8902866244316101,
0.44605839252471924,
-0.2849278748035431,
-0.17903193831443787,
0.0706036314368248,
0.6345107555389404,... |
func (a *Client) DomainCancelationList(params *DomainCancelationListParams) (*DomainCancelationListOK, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewDomainCancelationListParams()
}
result, err := a.transport.Submit(&runtime.ClientOperation{
ID: "domainCance... | [
-1.2179985046386719,
0.2813248336315155,
0.6012755632400513,
0.5122355222702026,
-0.3097480535507202,
-0.018302198499441147,
0.3223666846752167,
0.28604328632354736,
-0.26522138714790344,
1.025172472000122,
-0.7457513213157654,
-0.5373598337173462,
-0.09000104665756226,
0.9026879668235779,... |
func (a *Client) DomainCancelationUpdate(params *DomainCancelationUpdateParams) (*DomainCancelationUpdateOK, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewDomainCancelationUpdateParams()
}
result, err := a.transport.Submit(&runtime.ClientOperation{
ID: "dom... | [
-0.7483818531036377,
-0.31094890832901,
0.670089840888977,
0.15105727314949036,
-0.8522670865058899,
-0.23014068603515625,
0.10226759314537048,
0.4809216856956482,
-0.44385412335395813,
0.9380805492401123,
-0.06871265172958374,
-0.18020175397396088,
-0.5579131245613098,
-0.20809406042099,
... |
func (a *Client) DomainCommentUpdate(params *DomainCommentUpdateParams) (*DomainCommentUpdateOK, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewDomainCommentUpdateParams()
}
result, err := a.transport.Submit(&runtime.ClientOperation{
ID: "domainCommentUpdate... | [
-1.5756127834320068,
-0.8075953125953674,
0.9228358864784241,
-0.4122246503829956,
-0.2586706578731537,
-0.4357246160507202,
0.70630943775177,
-0.5034869909286499,
-0.6674221754074097,
0.5326434969902039,
-0.7627550959587097,
0.38539156317710876,
-0.8452759385108948,
-0.18470339477062225,
... |
func (a *Client) DomainCreate(params *DomainCreateParams) (*DomainCreateOK, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewDomainCreateParams()
}
result, err := a.transport.Submit(&runtime.ClientOperation{
ID: "domainCreate",
Method: "POST",
... | [
-1.2634621858596802,
0.4488966763019562,
0.6224043369293213,
0.19803361594676971,
0.30048123002052307,
0.3034886121749878,
0.004992086905986071,
-0.6909011006355286,
-0.6737257242202759,
-0.0637281984090805,
-0.6799025535583496,
0.6847781538963318,
-0.8760848641395569,
0.5920189619064331,
... |
func (a *Client) DomainInfo(params *DomainInfoParams) (*DomainInfoOK, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewDomainInfoParams()
}
result, err := a.transport.Submit(&runtime.ClientOperation{
ID: "domainInfo",
Method: "GET",
PathPattern... | [
-0.9639109969139099,
-0.046324558556079865,
0.6692977547645569,
-0.16750198602676392,
-0.061207327991724014,
0.09681251645088196,
-0.03446299210190773,
-0.6800380945205688,
-0.7843722701072693,
0.003728970419615507,
-0.7554081082344055,
1.0426409244537354,
-0.5159517526626587,
0.3108794689... |
func (a *Client) DomainList(params *DomainListParams) (*DomainListOK, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewDomainListParams()
}
result, err := a.transport.Submit(&runtime.ClientOperation{
ID: "domainList",
Method: "POST",
PathPatter... | [
-1.8387678861618042,
0.46886926889419556,
0.7463002800941467,
0.08005838096141815,
0.31384870409965515,
0.01904616691172123,
0.06081622466444969,
-0.019090544432401657,
-0.07885395735502243,
0.5046902298927307,
-1.1032359600067139,
0.5185390114784241,
-0.7573059797286987,
0.417524099349975... |
func (a *Client) DomainOwnerChange(params *DomainOwnerChangeParams) (*DomainOwnerChangeOK, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewDomainOwnerChangeParams()
}
result, err := a.transport.Submit(&runtime.ClientOperation{
ID: "domainOwnerChange",
Metho... | [
-1.9201189279556274,
0.5616164207458496,
0.6049196124076843,
0.7370558977127075,
-0.27139976620674133,
-0.41756147146224976,
1.1090515851974487,
-0.7114790081977844,
-0.839963972568512,
-0.25189635157585144,
-0.46784719824790955,
1.5808262825012207,
-0.1703728884458542,
0.29980504512786865... |
func (a *Client) DomainRenew(params *DomainRenewParams) (*DomainRenewOK, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewDomainRenewParams()
}
result, err := a.transport.Submit(&runtime.ClientOperation{
ID: "domainRenew",
Method: "PUT",
PathPa... | [
-2.021249771118164,
0.6394686698913574,
0.732607901096344,
-0.3669630289077759,
-0.21401967108249664,
-0.5109076499938965,
-0.08088424056768417,
-0.44742581248283386,
-0.49017083644866943,
-0.0703141987323761,
-1.0925220251083374,
1.1139272451400757,
-0.44161736965179443,
0.235011667013168... |
func (a *Client) DomainRestore(params *DomainRestoreParams) (*DomainRestoreOK, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewDomainRestoreParams()
}
result, err := a.transport.Submit(&runtime.ClientOperation{
ID: "domainRestore",
Method: "PUT"... | [
-2.044478178024292,
0.6107518076896667,
0.6494861245155334,
-0.5929831266403198,
-0.5850677490234375,
-0.3522384464740753,
0.10389267653226852,
-0.04077766835689545,
-0.25576263666152954,
0.13127444684505463,
-0.5518849492073059,
0.418561726808548,
-1.3961235284805298,
-0.8365756273269653,... |
func (a *Client) DomainRestoreList(params *DomainRestoreListParams) (*DomainRestoreListOK, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewDomainRestoreListParams()
}
result, err := a.transport.Submit(&runtime.ClientOperation{
ID: "domainRestoreList",
Metho... | [
-1.6812994480133057,
0.4947983920574188,
0.41254982352256775,
-0.12468210607767105,
0.14829406142234802,
-0.012702768668532372,
0.186820849776268,
0.16215282678604126,
-0.04770256578922272,
0.3011912703514099,
-1.0113940238952637,
0.23966386914253235,
-0.7191378474235535,
-0.07410546392202... |
func (a *Client) DomainServicesUpdate(params *DomainServicesUpdateParams) (*DomainServicesUpdateOK, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewDomainServicesUpdateParams()
}
result, err := a.transport.Submit(&runtime.ClientOperation{
ID: "domainServicesU... | [
-2.0230650901794434,
-0.09198813885450363,
0.571750283241272,
-0.554631233215332,
-0.7765963673591614,
-0.06824467331171036,
0.1079992949962616,
-0.6936030983924866,
-0.6318960785865784,
-0.33723288774490356,
-0.15630865097045898,
0.07193876057863235,
-0.9246616959571838,
-0.04314287006855... |
func (a *Client) DomainStatusUpdate(params *DomainStatusUpdateParams) (*DomainStatusUpdateOK, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewDomainStatusUpdateParams()
}
result, err := a.transport.Submit(&runtime.ClientOperation{
ID: "domainStatusUpdate",
... | [
-1.6435185670852661,
-0.5446657538414001,
0.46605101227760315,
-0.5758758187294006,
-0.654161810874939,
0.16182802617549896,
-0.3380673825740814,
0.10851627588272095,
-0.3523971438407898,
0.09713872522115707,
-0.8707492351531982,
0.536430835723877,
-0.7353644967079163,
-0.06615503877401352... |
func (a *Client) DomainTransfer(params *DomainTransferParams) (*DomainTransferOK, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewDomainTransferParams()
}
result, err := a.transport.Submit(&runtime.ClientOperation{
ID: "domainTransfer",
Method: ... | [
-1.8477745056152344,
0.24809160828590393,
0.6988731026649475,
-0.021270962432026863,
-0.24882830679416656,
0.2903860807418823,
0.4141606390476227,
-0.536726176738739,
-0.5578847527503967,
0.15732441842556,
-0.9396926164627075,
0.7578778862953186,
-0.8101338744163513,
0.34133413434028625,
... |
func (a *Client) DomainUpdate(params *DomainUpdateParams) (*DomainUpdateOK, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewDomainUpdateParams()
}
result, err := a.transport.Submit(&runtime.ClientOperation{
ID: "domainUpdate",
Method: "PUT",
P... | [
-1.5433937311172485,
-0.3691827058792114,
0.9028843641281128,
-0.05890883132815361,
-0.3939521610736847,
-0.06249380111694336,
0.24602198600769043,
0.03653369098901749,
-0.06734620779752731,
0.8059395551681519,
-0.6156465411186218,
0.9281331300735474,
-1.2726103067398071,
-0.20525731146335... |
func (a *Client) SetTransport(transport runtime.ClientTransport) {
a.transport = transport
} | [
0.43289124965667725,
-0.16396044194698334,
0.06502870470285416,
0.17467869818210602,
-0.022012455388903618,
0.3327627182006836,
1.1535402536392212,
-0.7375835180282593,
0.32833772897720337,
-1.0833802223205566,
-1.4707483053207397,
0.4919946491718292,
-0.44076064229011536,
0.62663459777832... |
func RegisterHandlers(mux *http.ServeMux) {
server := websocket.Server{Handshake: HandshakeWsVNC, Handler: websocket.Handler(HandleWsVNC)}
mux.Handle("/ws/vnc", server)
} | [
0.19191670417785645,
0.5981053113937378,
0.5804160237312317,
-0.4393587112426758,
0.8994972109794617,
0.08942537009716034,
-1.2791869640350342,
-0.2605774402618408,
0.3591558039188385,
-0.3445815443992615,
-0.48815083503723145,
1.2863872051239014,
-0.4669126570224762,
0.23207208514213562,
... |
func NewAuthPrivilegeRequestWithoutParam() *AuthPrivilegeRequest {
return &AuthPrivilegeRequest{
JDCloudRequest: core.JDCloudRequest{
URL: "/management:authPrivilege",
Method: "POST",
Header: nil,
Version: "v1",
},
}
} | [
-0.8680092692375183,
-0.318942129611969,
0.6870161294937134,
0.00570061756297946,
-0.8712125420570374,
-0.3496192991733551,
-0.46534445881843567,
-0.3554382920265198,
0.0948740541934967,
-0.3555176556110382,
0.2226133942604065,
0.765459418296814,
-0.4752897322177887,
0.8917075991630554,
... |
func (r AuthPrivilegeRequest) GetRegionId() string {
return ""
} | [
0.39117610454559326,
0.16729867458343506,
0.5995103120803833,
0.9645860195159912,
0.07008051127195358,
0.5284026861190796,
0.17199204862117767,
-0.06862945854663849,
1.0186290740966797,
-0.555637776851654,
0.9197914004325867,
1.58078932762146,
-0.803907573223114,
0.6663376688957214,
0.23... |
func MakeThreadTracker() *ThreadTracker {
return &ThreadTracker{
activeThreadsCounter: &sync.WaitGroup{},
}
} | [
0.44097480177879333,
-0.4340955317020416,
0.24373729526996613,
-0.19168871641159058,
-0.7505403161048889,
0.4204067289829254,
0.18982823193073273,
-0.18814177811145782,
-0.11838571727275848,
-0.541217565536499,
-0.21746161580085754,
-1.0291141271591187,
-0.6789560914039612,
-0.067366026341... |
func (t *ThreadTracker) Wait() {
t.activeThreadsCounter.Wait()
} | [
0.7458484768867493,
-0.9838237166404724,
0.17217981815338135,
-0.5773327350616455,
1.5456453561782837,
1.1375147104263306,
0.9959365725517273,
-0.19160571694374084,
-0.7218425869941711,
-0.6897189617156982,
-0.3018893599510193,
-0.026250014081597328,
-0.15815947949886322,
0.450738072395324... |
func WriteBinaryResponse(w http.ResponseWriter, code int, data interface{}) {
writeResponse(BINARY, w, code, data)
} | [
-0.8260342478752136,
-0.8715354800224304,
0.4248519837856293,
-0.05765160173177719,
0.6956609487533569,
-0.6822853088378906,
0.32593026757240295,
-0.5236406922340393,
0.5678871870040894,
-0.442503422498703,
-1.4359419345855713,
-0.6768252849578857,
-0.8326296806335449,
0.15355347096920013,... |
func WriteBinary(w http.ResponseWriter, data interface{}) {
// 200
WriteBinaryResponse(w, http.StatusOK, data)
} | [
-0.9084069132804871,
-1.5299339294433594,
0.7027109265327454,
0.3625010848045349,
0.5784568190574646,
-0.14516572654247284,
0.6602391004562378,
-0.6109193563461304,
0.05661669746041298,
-0.27072951197624207,
-1.0092946290969849,
0.08077812194824219,
-0.7006646990776062,
0.8800531625747681,... |
func (idx *SnapshotIndex) updateCycleSnapshot(ctx context.Context, block *model.Block) error {
// update all snapshot rows at snapshot cycle & index
snap := block.TZ.Snapshot
// adjust to source snapshot cycle
if snap.Base < 0 {
return nil
}
// log.Infof("snapshot: selecting index %d in c%d at block %d [c%d]"... | [
-1.0762913227081299,
-0.4059208035469055,
0.5255028009414673,
-0.5152987241744995,
-1.5421994924545288,
-0.6220818758010864,
0.9656328558921814,
-0.8687846064567566,
0.6911306381225586,
0.36997994780540466,
-0.3886866569519043,
-0.23422859609127045,
0.1903625875711441,
-0.30621129274368286... |
func (*UploadRequest) XXX_OneofWrappers() []interface{} {
return []interface{}{
(*UploadRequest_Meta)(nil),
(*UploadRequest_Data)(nil),
}
} | [
-1.9213403463363647,
-0.11329071968793869,
0.5687023401260376,
-0.18835830688476562,
0.6365076899528503,
-0.29713425040245056,
-0.4009077548980713,
-0.9375950694084167,
0.8126864433288574,
0.470226526260376,
0.3443109393119812,
0.21537017822265625,
-0.05130131170153618,
1.2794121503829956,... |
func (*WriteRequest) XXX_OneofWrappers() []interface{} {
return []interface{}{
(*WriteRequest_Meta)(nil),
(*WriteRequest_Batch)(nil),
}
} | [
-2.2070939540863037,
-0.3039950430393219,
0.3226611912250519,
0.24625590443611145,
1.2406830787658691,
-0.532687246799469,
0.1598578542470932,
-0.3635517358779907,
0.6990615129470825,
0.061262283474206924,
0.44901901483535767,
0.010762964375317097,
0.2603890299797058,
0.8797780871391296,
... |
func (*RawWriteRequest) XXX_OneofWrappers() []interface{} {
return []interface{}{
(*RawWriteRequest_Meta)(nil),
(*RawWriteRequest_Batch)(nil),
}
} | [
-2.074711799621582,
-0.14971809089183807,
0.33830732107162476,
0.048725586384534836,
0.7374404072761536,
-0.5540376901626587,
0.17218425869941711,
-0.49805551767349243,
0.9980528950691223,
0.15272629261016846,
0.05994773656129837,
0.11498136073350906,
0.3894682824611664,
0.9253051280975342... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.