text stringlengths 11 6.3k | embedding listlengths 768 768 |
|---|---|
func (dao ArtistDAO) Read() ([]Artist, error) {
var results []Artist
if err := dao.getCollection().Find(bson.M{}).All(&results); err != nil {
return nil, err
}
return results, nil
} | [
-0.5647472143173218,
-0.015424296259880066,
0.20483534038066864,
-0.34159988164901733,
0.14534099400043488,
0.15392830967903137,
0.12800820171833038,
0.046717867255210876,
-0.007498927414417267,
-0.11382289230823517,
0.21442444622516632,
0.5137422680854797,
-0.8209477663040161,
0.385056406... |
func (dao ArtistDAO) Update(id string, a Artist) error {
return dao.getCollection().Update(bson.M{"_id": bson.ObjectIdHex(id)}, a)
} | [
-0.9037666320800781,
-0.9775204658508301,
0.13033953309059143,
-0.4083687961101532,
-0.6690732836723328,
0.44157031178474426,
0.0010716745164245367,
0.6787022352218628,
0.5287277698516846,
0.0304863303899765,
-0.757040798664093,
0.3941729664802551,
-0.49608123302459717,
0.00645955139771103... |
func (dao ArtistDAO) FindByName(name string) (*Artist, error) {
var result Artist
if err := dao.getCollection().Find(bson.M{"name": name}).One(&result); err != nil {
return nil, err
}
return &result, nil
} | [
0.34820717573165894,
0.3751837909221649,
0.06010689586400986,
-0.5870912671089172,
-0.3369140326976776,
-0.697466254234314,
0.47958847880363464,
-0.5460168719291687,
-0.047514088451862335,
0.799466073513031,
-0.8269757032394409,
-0.5339522957801819,
-1.850690245628357,
1.0733009576797485,
... |
func (dao ArtistDAO) FindByID(id string) (*Artist, error) {
var searched Artist
err := dao.getCollection().Find(bson.M{"_id": bson.ObjectIdHex(id)}).One(&searched)
if err != nil {
return nil, err
}
return &searched, nil
} | [
0.16913942992687225,
0.06118786707520485,
-0.022226614877581596,
-0.35111427307128906,
-0.10662975907325745,
0.1599172055721283,
0.27859029173851013,
-0.45939570665359497,
0.47019585967063904,
0.16281607747077942,
-0.6571056246757507,
0.07690293341875076,
-1.374795913696289,
1.091488242149... |
func (dao ArtistDAO) Delete(id string) error {
return dao.getCollection().Remove(bson.M{"_id": bson.ObjectIdHex(id)})
} | [
-0.42621445655822754,
-0.0024618462193757296,
0.18335667252540588,
-0.12761159241199493,
-0.20337235927581787,
0.5781270265579224,
0.4094456732273102,
0.9791261553764343,
0.7583713531494141,
-0.003109013894572854,
-0.9274744391441345,
0.1803213357925415,
-0.846596360206604,
-0.001953014987... |
func getFieldFromMap(stats map[string]uint64, keys ...string) *float64 {
var val uint64
var found bool
for _, key := range keys {
val, found = stats[key]
if found {
break
}
}
if !found {
return nil
}
return pointer.Ptr(float64(val))
} | [
0.6219225525856018,
0.3520418703556061,
0.3953261375427246,
-0.16187752783298492,
0.10311495512723923,
-0.15290328860282898,
-0.4373336732387543,
-1.0145432949066162,
-0.7509413957595825,
-0.5619781017303467,
0.7587963938713074,
-0.7355386018753052,
-0.7925367951393127,
-0.4002993106842041... |
func DrawScreen(t *touchscreen.TouchScreen, name string, input Screen, s ScreenDetails) string {
openvg.Start(s.Width, s.Height) // Start the picture
if input.Background.Color != "" {
openvg.BackgroundColor(input.Background.Color)
} else {
openvg.BackgroundColor("black")
}
ret, opacity := HandleTouches(t, in... | [
-0.5387803316116333,
0.5428441762924194,
0.7328627109527588,
0.06925411522388458,
-0.47034645080566406,
0.71660977602005,
0.10306649655103683,
-0.5563122034072876,
1.0405478477478027,
-0.16904743015766144,
0.5477585792541504,
-0.5031620264053345,
0.2397298961877823,
0.3428383767604828,
-... |
func (smartContract) invoke_AddClaim(stub shim.ChaincodeStubInterface, args []string) ([]byte, error) {
message := fmt.Sprintf("invokeAddClaim called with args: %s\n", args)
log.Debugf(message)
// Check arguments
if len(args) < 3 {
log.Errorf(message)
return nil, errors.New(message)
}
from, err := s... | [
0.2223581224679947,
0.26476556062698364,
1.0978103876113892,
-0.4913199245929718,
0.11928097158670425,
0.2564176321029663,
-0.31841927766799927,
-0.34994232654571533,
-0.4922862946987152,
-0.48410528898239136,
0.1889898031949997,
0.30894795060157776,
-0.07619097083806992,
-0.18897746503353... |
func (c *Client) GetSchema(id int) (string, error) {
// schemaUrlResponse, err := s.httpClient.Get(schemaUrl)
req, err := http.NewRequest(http.MethodGet, fmt.Sprintf("%s/schemas/ids/%d", c.URL, id), http.NoBody)
if err != nil {
return "", errors.Wrap(err, "building request for getting schema from registry")
}
if... | [
-0.9888899922370911,
0.13665829598903656,
0.9376171827316284,
0.5518834590911865,
0.052730027586221695,
-0.9335907101631165,
0.08329912275075912,
-0.35203272104263306,
0.6914658546447754,
-0.0071070436388254166,
0.21964117884635925,
0.9301117658615112,
-0.9015777707099915,
-0.0959145203232... |
func TestParser(t *testing.T) {
type testPair struct {
input string
text string
error error
}
var tests = []testPair{
{"test/test.html", `<meta http-equiv="content-type" content="text/html; charset=UTF-8"><html lang="en"><head><title>AWR Report for DB: ZP, Inst: k10szp_1, Snaps: 111755-111758</title> <... | [
-0.27052536606788635,
0.2022484689950943,
0.8009054660797119,
-1.3193379640579224,
-0.7091923952102661,
0.31891775131225586,
0.7626074552536011,
-0.1385325938463211,
-0.14112837612628937,
-0.06903345882892609,
0.30915552377700806,
0.1476350873708725,
0.08767364174127579,
0.4208193421363830... |
func ResponseSuccess(w http.ResponseWriter, result *Result, message string) {
responseData := httpResponse{
Success: true,
Data: result.Data,
Message: message,
Code: http.StatusOK,
}
w.Header().Set("Content-Type", "application/json")
w.WriteHeader(http.StatusOK)
json.NewEncoder(w).Encode(responseDat... | [
0.1948375254869461,
-0.7065431475639343,
0.32068169116973877,
0.374956876039505,
-0.4257073700428009,
0.13536345958709717,
0.10868873447179794,
-0.23838990926742554,
0.22926561534404755,
0.3165651857852936,
-1.3916512727737427,
-0.07800329476594925,
0.39736780524253845,
-0.0720758810639381... |
func f(from string){
for i:=0;i<3;i++{
fmt.Println(from,":",i)
}
} | [
0.2936968207359314,
0.28269749879837036,
0.5264970064163208,
-0.18853142857551575,
0.04970701038837433,
0.6666992902755737,
-0.013730049133300781,
0.4583701193332672,
-1.203652024269104,
-0.36017483472824097,
-0.2921426296234131,
0.4961249828338623,
0.9795750975608826,
-0.9394806623458862,... |
func (del *DelResponse) SetResultCode(code int) {
del.resultCode = ENUMERATED(code)
} | [
-0.20000123977661133,
-0.32375821471214294,
0.4772486686706543,
-0.34312644600868225,
0.26214125752449036,
-0.4534507095813751,
0.1223493218421936,
0.08829694241285324,
0.7507492303848267,
-0.22701142728328705,
-0.8015264272689819,
0.1453550010919571,
0.04125793278217316,
-0.26144438982009... |
func HataLoss(x1, y1, x2, y2 float64) float64 {
var dist float64 // Link Distance (km)
var hB float64 = 25 // Height of BS (m)
var hM float64 = 1.5 // Height of MS (m)
var fr float64 = 400 // Frequency (MHz)
var cH float64 // Antenna correction factor
const citySize string = "medium"
dist = euclidean... | [
0.6764402389526367,
-0.8494681119918823,
0.7155053019523621,
-0.9487895965576172,
-1.1198792457580566,
0.2518840432167053,
-0.5387447476387024,
0.03326636552810669,
0.18167608976364136,
-0.10924376547336578,
0.1596674621105194,
1.1238715648651123,
0.6757580041885376,
0.1353369653224945,
... |
func StructToMap(v interface{}) operator.M {
data := make(operator.M)
bytes, _ := json.Marshal(v)
_ = json.Unmarshal(bytes, &data)
return data
} | [
-1.2308402061462402,
-0.17392033338546753,
0.5885535478591919,
-0.735643744468689,
-1.4275314807891846,
-0.3778362572193146,
-0.4105672240257263,
-0.28367844223976135,
0.857074499130249,
0.7519625425338745,
-1.44497811794281,
-0.9300567507743835,
0.5071660280227661,
-1.1520551443099976,
... |
func loadCaCertAndKey(dir, name string) (*x509.Certificate, *rsa.PrivateKey) {
utils.Assert(certs.CertOrKeyExist(dir, name), "couldn't load %s/%s", dir, name)
return certs.TryLoadCertAndKeyFromDisk(dir, name)
} | [
-0.647181510925293,
-0.3934611678123474,
0.5030403733253479,
-0.16552454233169556,
-1.6329395771026611,
0.104045070707798,
-0.150340273976326,
-0.09883274137973785,
0.04113107919692993,
0.4255959689617157,
-0.9579169750213623,
0.22156955301761627,
0.02028467133641243,
1.0983303785324097,
... |
func RenderChartDash(coin string, dateRange string, color string, lineChartHeight uint) error {
if coin == "" {
coin = "bitcoin"
}
if dateRange == "" {
dateRange = "7d"
}
primaryColor := getColor(color)
var (
oneMinute int64 = 60
oneHour = oneMinute * 60
oneDay = oneHour * 24
oneWe... | [
-0.19757682085037231,
0.35327258706092834,
0.9349039793014526,
-0.3614523410797119,
-0.2992647886276245,
-0.13424129784107208,
0.13436298072338104,
0.19639825820922852,
0.015080542303621769,
-0.10907473415136337,
-0.26269209384918213,
1.3218470811843872,
0.5528988242149353,
0.0024133964907... |
func RenderGlobalMarketDash(color string) error {
primaryColor := getColor(color)
marketData, err := cmc.GetMarketData()
if err != nil {
return err
}
par0 := ui.NewPar(fmt.Sprintf("$%s", humanize.Commaf(marketData.TotalMarketCapUsd)))
par0.Height = 3
par0.Width = 20
par0.Y = 1
par0.TextFgColor = ui.ColorW... | [
0.6141318678855896,
0.0890287309885025,
1.2457163333892822,
-1.264149785041809,
0.026700565591454506,
0.2194981426000595,
0.21232102811336517,
-0.06903807818889618,
-0.4248851239681244,
-0.0956551656126976,
0.10661549866199493,
0.7285463213920593,
-0.3167773485183716,
0.6987192630767822,
... |
func getColor(color string) ui.Attribute {
if color == "" {
color = "green"
}
primaryColor := ui.ColorGreen
if color == "green" {
primaryColor = ui.ColorGreen
} else if color == "cyan" || color == "blue" {
primaryColor = ui.ColorCyan
} else if color == "magenta" || color == "pink" || color == "purple" {
... | [
0.10973720997571945,
-0.9013296365737915,
0.6810064315795898,
-0.4896774888038635,
0.20514433085918427,
0.011831141076982021,
-0.06726440042257309,
0.553432822227478,
0.6589312553405762,
-0.5904815793037415,
0.41911521553993225,
0.7295916676521301,
0.5802265405654907,
1.0157973766326904,
... |
func (sr *SaleReport) Many2One() *Many2One {
return NewMany2One(sr.Id.Get(), "")
} | [
0.04456637427210808,
-0.1702059954404831,
0.3555563986301422,
0.3986034393310547,
0.6605896353721619,
-0.7813249230384827,
-0.4063650071620941,
-0.2956528961658478,
-0.8103407621383667,
-0.902305006980896,
-0.48436489701271057,
-0.38552629947662354,
-0.38362929224967957,
0.9345552921295166... |
func (c *Client) CreateSaleReport(sr *SaleReport) (int64, error) {
ids, err := c.CreateSaleReports([]*SaleReport{sr})
if err != nil {
return -1, err
}
if len(ids) == 0 {
return -1, nil
}
return ids[0], nil
} | [
-0.653288722038269,
0.5523566603660583,
0.3363954722881317,
-0.1746138334274292,
-0.17352768778800964,
-0.6022729873657227,
0.23320432007312775,
-0.29770565032958984,
0.19697776436805725,
-0.3339298367500305,
-0.1914089173078537,
-0.7066211104393005,
-1.7723122835159302,
0.4536838531494140... |
func (c *Client) CreateSaleReports(srs []*SaleReport) ([]int64, error) {
var vv []interface{}
for _, v := range srs {
vv = append(vv, v)
}
return c.Create(SaleReportModel, vv)
} | [
-0.7899800539016724,
0.39248159527778625,
0.17518939077854156,
0.3886159360408783,
0.43315207958221436,
0.16557826101779938,
-0.03370700776576996,
-0.8881722092628479,
0.32954153418540955,
-0.2609984874725342,
-0.44487136602401733,
-0.818805992603302,
-1.414568305015564,
0.903181254863739,... |
func (c *Client) UpdateSaleReport(sr *SaleReport) error {
return c.UpdateSaleReports([]int64{sr.Id.Get()}, sr)
} | [
-1.0793585777282715,
0.012192127294838428,
-0.026744971051812172,
-0.04214833676815033,
-0.9822769165039062,
-0.606376051902771,
0.016180722042918205,
-0.12857688963413239,
0.7796277403831482,
0.028303684666752815,
-0.9678751826286316,
0.014453230425715446,
-0.8925057649612427,
0.563864290... |
func (c *Client) UpdateSaleReports(ids []int64, sr *SaleReport) error {
return c.Update(SaleReportModel, ids, sr)
} | [
-1.0889374017715454,
-0.32359448075294495,
-0.0717409998178482,
-0.15728029608726501,
-0.7107193470001221,
-0.4811789393424988,
-0.27127334475517273,
-0.01311582326889038,
0.6498486399650574,
0.27222755551338196,
-1.0010467767715454,
-0.3078194558620453,
-1.2326127290725708,
0.043801818042... |
func (c *Client) DeleteSaleReport(id int64) error {
return c.DeleteSaleReports([]int64{id})
} | [
-0.43152299523353577,
0.16977711021900177,
0.07522072643041611,
0.18518109619617462,
0.3292953372001648,
-0.5186601281166077,
0.4264827370643616,
0.29945018887519836,
0.8541049361228943,
-0.7884055972099304,
-0.49025222659111023,
-0.6456656455993652,
-1.146899700164795,
0.7345283031463623,... |
func (c *Client) DeleteSaleReports(ids []int64) error {
return c.Delete(SaleReportModel, ids)
} | [
-0.40877604484558105,
-0.03061327151954174,
-0.07596372067928314,
0.38074201345443726,
0.333432137966156,
-0.15752407908439636,
0.3694820702075958,
0.0968577116727829,
0.564002513885498,
-0.2854537069797516,
-0.6274765133857727,
-0.8652130961418152,
-1.2709462642669678,
0.47013524174690247... |
func (c *Client) GetSaleReport(id int64) (*SaleReport, error) {
srs, err := c.GetSaleReports([]int64{id})
if err != nil {
return nil, err
}
if srs != nil && len(*srs) > 0 {
return &((*srs)[0]), nil
}
return nil, fmt.Errorf("id %v of sale.report not found", id)
} | [
0.004016304854303598,
0.6155509948730469,
0.20677222311496735,
0.2662208676338196,
-0.05103867128491402,
-1.2447110414505005,
-0.010277257300913334,
-0.7293121814727783,
0.6966150403022766,
-0.5214698314666748,
-0.07688028365373611,
0.10065552592277527,
-1.1596951484680176,
0.7250362634658... |
func (c *Client) GetSaleReports(ids []int64) (*SaleReports, error) {
srs := &SaleReports{}
if err := c.Read(SaleReportModel, ids, nil, srs); err != nil {
return nil, err
}
return srs, nil
} | [
-0.6716073751449585,
0.6346275210380554,
0.1527779996395111,
0.39391353726387024,
0.1958169937133789,
-0.9430921673774719,
-0.41627728939056396,
-0.8929352760314941,
0.45327964425086975,
-0.7012618184089661,
-0.4893268346786499,
-0.10731688141822815,
-1.5004760026931763,
0.1410461217164993... |
func (c *Client) FindSaleReport(criteria *Criteria) (*SaleReport, error) {
srs := &SaleReports{}
if err := c.SearchRead(SaleReportModel, criteria, NewOptions().Limit(1), srs); err != nil {
return nil, err
}
if srs != nil && len(*srs) > 0 {
return &((*srs)[0]), nil
}
return nil, fmt.Errorf("sale.report was not... | [
0.44360044598579407,
0.1859230399131775,
0.19820427894592285,
-0.1675197035074234,
0.0452287495136261,
-0.61778324842453,
-0.025040358304977417,
-0.6394080519676208,
-0.14580485224723816,
-0.6025596261024475,
0.614479660987854,
-0.25008106231689453,
-1.2638773918151855,
0.6324211955070496,... |
func (c *Client) FindSaleReports(criteria *Criteria, options *Options) (*SaleReports, error) {
srs := &SaleReports{}
if err := c.SearchRead(SaleReportModel, criteria, options, srs); err != nil {
return nil, err
}
return srs, nil
} | [
0.1575704962015152,
0.331127405166626,
0.1737179011106491,
0.31017836928367615,
0.27070894837379456,
-0.4760664999485016,
-0.06331790238618851,
-0.9684545993804932,
0.0529048815369606,
-0.682150661945343,
0.31426361203193665,
-0.4097003936767578,
-1.5861071348190308,
0.6373432278633118,
... |
func (c *Client) FindSaleReportIds(criteria *Criteria, options *Options) ([]int64, error) {
ids, err := c.Search(SaleReportModel, criteria, options)
if err != nil {
return []int64{}, err
}
return ids, nil
} | [
-0.0891331285238266,
0.48926305770874023,
0.3547838628292084,
0.09296470880508423,
0.816514253616333,
-0.28960347175598145,
-0.34310948848724365,
0.345472127199173,
-0.28477954864501953,
-0.11424961686134338,
-0.19370341300964355,
-0.36572158336639404,
-1.3207687139511108,
0.43073204159736... |
func (c *Client) FindSaleReportId(criteria *Criteria, options *Options) (int64, error) {
ids, err := c.Search(SaleReportModel, criteria, options)
if err != nil {
return -1, err
}
if len(ids) > 0 {
return ids[0], nil
}
return -1, fmt.Errorf("sale.report was not found with criteria %v and options %v", criteria,... | [
0.30085498094558716,
0.21982479095458984,
0.4736503064632416,
-0.15884451568126678,
0.4186435639858246,
-0.47194191813468933,
0.10536321252584457,
0.20663712918758392,
0.16067679226398468,
-0.10499927401542664,
0.6914506554603577,
-0.27362683415412903,
-1.3264427185058594,
0.58954638242721... |
func NewGetDatalakeDbConfigParams() *GetDatalakeDbConfigParams {
var ()
return &GetDatalakeDbConfigParams{
timeout: cr.DefaultTimeout,
}
} | [
-0.654739260673523,
0.6309279799461365,
0.16603294014930725,
0.35695624351501465,
0.10598784685134888,
-0.20146942138671875,
-0.34754204750061035,
0.9290934801101685,
-1.2078672647476196,
0.8579484224319458,
-1.1279101371765137,
0.08511272817850113,
-0.747963011264801,
0.9003292918205261,
... |
func NewGetDatalakeDbConfigParamsWithTimeout(timeout time.Duration) *GetDatalakeDbConfigParams {
var ()
return &GetDatalakeDbConfigParams{
timeout: timeout,
}
} | [
0.066385418176651,
0.5130524635314941,
0.2699322998523712,
0.289301335811615,
-0.036076609045267105,
0.3713958263397217,
-1.0031577348709106,
0.9254564642906189,
-1.3022758960723877,
1.675442099571228,
-0.7373647093772888,
0.4809952676296234,
-0.6795200705528259,
0.9195259213447571,
-0.2... |
func NewGetDatalakeDbConfigParamsWithContext(ctx context.Context) *GetDatalakeDbConfigParams {
var ()
return &GetDatalakeDbConfigParams{
Context: ctx,
}
} | [
-0.6693001985549927,
0.9296578168869019,
0.45088815689086914,
-0.10576756298542023,
0.05368770286440849,
0.15606579184532166,
-0.8200660943984985,
0.03335059806704521,
-0.9156094193458557,
1.2746998071670532,
-0.8067263960838318,
-0.018853627145290375,
-0.6771670579910278,
0.46075555682182... |
func NewGetDatalakeDbConfigParamsWithHTTPClient(client *http.Client) *GetDatalakeDbConfigParams {
var ()
return &GetDatalakeDbConfigParams{
HTTPClient: client,
}
} | [
-0.46974390745162964,
0.536733865737915,
0.3489093482494354,
0.36490580439567566,
0.3680003881454468,
0.054532021284103394,
0.10272478312253952,
0.5339385867118835,
-1.4293529987335205,
0.6693213582038879,
-0.8102615475654602,
-0.00493294931948185,
-0.6824433207511902,
0.4060201346874237,
... |
func (o *GetDatalakeDbConfigParams) WithTimeout(timeout time.Duration) *GetDatalakeDbConfigParams {
o.SetTimeout(timeout)
return o
} | [
-0.053063806146383286,
0.8671265840530396,
0.29925766587257385,
-0.42041006684303284,
-0.4101335406303406,
-0.05204974487423897,
-0.3833584487438202,
0.732803225517273,
-0.5598424673080444,
1.265563726425171,
-0.30016571283340454,
0.7986078262329102,
0.41946345567703247,
0.7884629368782043... |
func (o *GetDatalakeDbConfigParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
} | [
-0.4792981743812561,
0.9458671808242798,
0.26708391308784485,
-0.3582538366317749,
0.16750992834568024,
0.42681241035461426,
-0.14982861280441284,
0.9952320456504822,
-0.9572886824607849,
1.3195395469665527,
-0.49994605779647827,
0.8550448417663574,
-0.32416394352912903,
0.9803382754325867... |
func (o *GetDatalakeDbConfigParams) WithContext(ctx context.Context) *GetDatalakeDbConfigParams {
o.SetContext(ctx)
return o
} | [
-0.968165397644043,
0.9438268542289734,
0.5363191366195679,
-0.5035169720649719,
-0.7758810520172119,
-0.26546770334243774,
-0.6493972539901733,
-0.21647514402866364,
-0.10659658163785934,
0.7879983186721802,
-0.4045669436454773,
0.5107865929603577,
-0.024393243715167046,
0.426416248083114... |
func (o *GetDatalakeDbConfigParams) SetContext(ctx context.Context) {
o.Context = ctx
} | [
-1.1711927652359009,
1.1237599849700928,
0.39809441566467285,
-0.32459738850593567,
0.0745861753821373,
0.05425016209483147,
-0.37463024258613586,
0.00982470903545618,
-0.14497432112693787,
0.8476337194442749,
-0.5904068946838379,
0.6898781657218933,
-0.5745386481285095,
0.7419114708900452... |
func (o *GetDatalakeDbConfigParams) WithHTTPClient(client *http.Client) *GetDatalakeDbConfigParams {
o.SetHTTPClient(client)
return o
} | [
-0.5108374357223511,
0.1491890847682953,
0.3508763611316681,
-0.6107828617095947,
-0.35149887204170227,
-0.2497367560863495,
0.17215563356876373,
0.0149247907102108,
-0.9381637573242188,
0.15015052258968353,
-0.3211795687675476,
0.5127124786376953,
0.34647685289382935,
-0.0971093475818634,... |
func (o *GetDatalakeDbConfigParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
} | [
-0.27588823437690735,
0.46802690625190735,
0.3392452597618103,
-0.9726367592811584,
-0.4755623936653137,
-0.2659277021884918,
0.2926708161830902,
0.1414213478565216,
-1.3744632005691528,
0.48806145787239075,
-0.7290018796920776,
0.856003999710083,
-0.3466830849647522,
0.16040556132793427,
... |
func (o *GetDatalakeDbConfigParams) WithDatabaseType(databaseType string) *GetDatalakeDbConfigParams {
o.SetDatabaseType(databaseType)
return o
} | [
-0.18506690859794617,
0.6864011883735657,
0.148379847407341,
-0.21473892033100128,
-0.11063522100448608,
-0.4851798713207245,
0.08412788063287735,
0.09998723864555359,
0.327085942029953,
0.6541205644607544,
-0.777733564376831,
-0.06402046233415604,
-0.4121156930923462,
1.6413127183914185,
... |
func (o *GetDatalakeDbConfigParams) SetDatabaseType(databaseType string) {
o.DatabaseType = databaseType
} | [
-0.88453608751297,
0.8993375301361084,
0.2435334324836731,
-0.08146108686923981,
0.44649332761764526,
-0.26931026577949524,
0.4221954941749573,
0.26527640223503113,
-0.07805176824331284,
0.597630500793457,
-1.0004308223724365,
0.48931536078453064,
-1.0958044528961182,
1.8203375339508057,
... |
func (o *GetDatalakeDbConfigParams) WithDatalakeCrn(datalakeCrn string) *GetDatalakeDbConfigParams {
o.SetDatalakeCrn(datalakeCrn)
return o
} | [
-0.10164165496826172,
0.5473536252975464,
0.3235946595668793,
-0.24485282599925995,
-0.24410785734653473,
-0.9006528258323669,
-0.3990071415901184,
0.8715738654136658,
-0.24114260077476501,
-0.1744069755077362,
-0.3714509606361389,
0.3382340669631958,
0.5699267387390137,
0.5032073259353638... |
func (o *GetDatalakeDbConfigParams) SetDatalakeCrn(datalakeCrn string) {
o.DatalakeCrn = datalakeCrn
} | [
-0.46698498725891113,
0.39660510420799255,
0.2586914002895355,
-0.7654355764389038,
-0.1159970685839653,
-0.5708793997764587,
-0.3212173283100128,
1.0231443643569946,
-0.41187942028045654,
-0.1753254383802414,
-0.7471272945404053,
0.8197008967399597,
0.40078890323638916,
0.5609766840934753... |
func (o *GetDatalakeDbConfigParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
}
var res []error
// query param databaseType
qrDatabaseType := o.DatabaseType
qDatabaseType := qrDatabaseType
if qDatabaseType != "" {
if err ... | [
-1.278899073600769,
0.6434804201126099,
0.904891848564148,
-0.8195949196815491,
0.4118805527687073,
-0.15641126036643982,
0.7911134362220764,
0.25394120812416077,
-0.4507105350494385,
0.32072576880455017,
0.14027537405490875,
0.8240981698036194,
-0.5247992873191833,
0.7618253827095032,
0... |
func (wi *WebInterface) wrapHandler(f func(*WebInterface, *http.Conn, *http.Request)) (func(*http.Conn, *http.Request)) {
fmt.Printf(">> wrapping handler wi %v f %v\n", wi, f)
return func(c *http.Conn, r *http.Request) {
fmt.Printf("outer handler called with wi %v c %v\n", wi, c)
f(wi, c, r)
}
} | [
-1.237913727760315,
-0.8721217513084412,
0.5451231598854065,
-0.39557042717933655,
-0.9388643503189087,
1.145734429359436,
0.3679213523864746,
0.12900352478027344,
-0.5836803317070007,
-0.13526737689971924,
0.35612133145332336,
-0.44130316376686096,
-0.11771059036254883,
0.5660963654518127... |
func (o LookupApplicationKeyResultOutput) Id() pulumi.StringPtrOutput {
return o.ApplyT(func(v LookupApplicationKeyResult) *string { return v.Id }).(pulumi.StringPtrOutput)
} | [
0.36202359199523926,
-0.5227742791175842,
0.17024554312229156,
-0.05543643981218338,
-0.0963062196969986,
1.0383388996124268,
0.07311677187681198,
0.5446744561195374,
0.8970940709114075,
0.48693394660949707,
0.2347581535577774,
0.49282893538475037,
-0.30417659878730774,
-0.6825679540634155... |
func (o LookupApplicationKeyResultOutput) Key() pulumi.StringOutput {
return o.ApplyT(func(v LookupApplicationKeyResult) string { return v.Key }).(pulumi.StringOutput)
} | [
-0.08615027368068695,
-0.43966010212898254,
0.3837210237979889,
-0.07320301979780197,
-0.17748497426509857,
0.939895510673523,
0.1018528863787651,
0.575353741645813,
0.16929098963737488,
0.731363832950592,
0.5587071180343628,
0.3911386728286743,
0.10725381225347519,
-0.7227376699447632,
... |
func (o LookupApplicationKeyResultOutput) Name() pulumi.StringPtrOutput {
return o.ApplyT(func(v LookupApplicationKeyResult) *string { return v.Name }).(pulumi.StringPtrOutput)
} | [
-0.3041400611400604,
-0.7016080617904663,
0.43949177861213684,
-0.20605726540088654,
-1.0020086765289307,
0.5649427175521851,
-0.08356206119060516,
0.16025304794311523,
0.06436203420162201,
1.386786937713623,
0.07606766372919083,
0.29690271615982056,
0.4749973714351654,
-0.539455771446228,... |
func containCall(name string, args ...interface{}) types.GomegaMatcher {
return &containsCallMatcher{mock.Call{
Method: name,
Arguments: args,
}}
} | [
0.5241381525993347,
-0.0683300718665123,
0.7790679931640625,
0.31566640734672546,
-0.4470650255680084,
1.0510059595108032,
-0.3525608479976654,
-0.3434726595878601,
0.26053857803344727,
0.12054642289876938,
0.4563586711883545,
0.05208363011479378,
-1.1144813299179077,
0.5085723996162415,
... |
func GetLinkForMessage(s string) string {
if len(strings.Split(s, " ")) > 1 && strings.Split(s, " ")[1] != "" {
if strings.Split(s, " ")[1] == "help" {
links := ReadAllLinks()
keys := make([]string, 0, len(links))
for _, link := range links {
keys = append(keys, link.Descrip)
}
return fmt.Sprintf... | [
0.26249977946281433,
-0.21464134752750397,
0.7387808561325073,
-0.5737519860267639,
0.1372928023338318,
-0.5675873160362244,
-0.23285111784934998,
0.30447378754615784,
-0.08245794475078583,
-0.7454438209533691,
1.1033430099487305,
0.5350245237350464,
-0.4069143831729889,
0.9064892530441284... |
func ReadAllLinks(filter ...string) []*LinkObj {
Log.Warnln(filter)
db := GetDbConnection("sqlite3", "bot.db")
defer db.Close()
// rows, er := db.Queryx("select * from link_store")
links := []*LinkObj{}
var er error
if len(filter) == 0 {
er = db.Select(&links, "select * from link_store")
} else {
er = db.Se... | [
-0.8298181891441345,
-0.2936346232891083,
0.5243574976921082,
0.4114623963832855,
-0.16776946187019348,
0.1342897266149521,
-0.9918673038482666,
0.44859981536865234,
-0.12434912472963333,
-0.551395058631897,
0.9577252268791199,
0.9917867183685303,
-0.427491158246994,
0.3374370038509369,
... |
func Addlink(user string, s string) string {
if len(strings.Split(s, " ")) > 1 && strings.Split(s, " ")[2] != "" && strings.Split(s, " ")[3] != "" {
if addLinkToDb(user, strings.Split(s, " ")[2], strings.Split(s, " ")[3]) {
return fmt.Sprintf("Successfully stored link %v with alias %v", strings.Split(s, " ")[3], ... | [
-0.2962230443954468,
0.24326501786708832,
0.7189753651618958,
0.5849354863166809,
-0.027775343507528305,
0.40955501794815063,
0.09426569193601608,
0.6945750117301941,
0.02768167108297348,
-0.7083044052124023,
0.3285478949546814,
0.6798049211502075,
-0.6304816007614136,
0.3333161175251007,
... |
func (a Uint64) Less(b btree.Item) bool {
return a < b.(Uint64)
} | [
0.10817712545394897,
0.20245477557182312,
0.2437080442905426,
0.4079136848449707,
0.00932271033525467,
0.44551369547843933,
-0.39971068501472473,
-0.5172643661499023,
0.48892220854759216,
-0.47930821776390076,
-0.3818202018737793,
0.1305544376373291,
-0.12792739272117615,
0.658566951751709... |
func (a String) Less(b btree.Item) bool {
return a < b.(String)
} | [
0.720758855342865,
-0.7471619844436646,
0.4717118442058563,
-0.5282760262489319,
-0.1914719194173813,
0.2628443241119385,
-1.220061182975769,
-0.5619456171989441,
-0.20172244310379028,
0.026620592921972275,
-0.08818688988685608,
0.2693195939064026,
-0.28523990511894226,
-0.3188809752464294... |
func (a DataNodeKV) Key() string {
return a.K
} | [
-0.25543123483657837,
0.0962078720331192,
0.32955530285835266,
-0.020875100046396255,
-0.10129696130752563,
0.6760962605476379,
0.0030729363206773996,
0.33190083503723145,
0.23603211343288422,
-0.38499391078948975,
0.3298846483230591,
0.23764730989933014,
0.581520140171051,
-0.267210900783... |
func Version() string {
return buildVersion
} | [
-0.39531800150871277,
-1.707053542137146,
-0.10535764694213867,
0.8830462694168091,
0.421553373336792,
1.2293132543563843,
1.033430814743042,
0.4682939052581787,
-0.38258877396583557,
0.014848525635898113,
-1.1058084964752197,
-0.23749256134033203,
-0.05184419825673103,
0.2475828379392624,... |
func (ts *TechStoryService) getText (w http.ResponseWriter, r *http.Request) {
var techStory model.TechStory
techStory.Key = mux.Vars(r)["id"]
// Check for version parameter
values := r.URL.Query()
version := model.GetInt (values, "version", -1)
var found *model.VersionedText
var err error
WithTechStoryDao(fu... | [
-0.23695264756679535,
-0.172357439994812,
0.48750200867652893,
0.4412289559841156,
-0.04746736213564873,
-0.42053884267807007,
-0.1303369700908661,
-0.39863359928131104,
0.31474539637565613,
1.1531212329864502,
0.16998399794101715,
-0.16738463938236237,
-0.4522523880004883,
-0.012806477025... |
func (ts *TechStoryService) findById (w http.ResponseWriter, r *http.Request) {
var techStory model.TechStory
techStory.Key = mux.Vars(r)["id"]
WithTechStoryDao(func(dao techStoryDao) {
err := dao.FindById(&techStory)
model.CheckErr(err)
model.WriteResponse(true, nil, techStory, w)
})
} | [
0.2024577111005783,
0.009871733374893665,
-0.004310814663767815,
-0.15478520095348358,
-0.3045852482318878,
-0.3108334243297577,
0.003267288440838456,
-1.0119751691818237,
-0.1924021989107132,
0.2099480926990509,
-0.007784869521856308,
-0.017145058140158653,
-0.1428213119506836,
1.53040206... |
func (ts *TechStoryService) addText (w http.ResponseWriter, r *http.Request) {
var techStory model.TechStory
techStory.Key = mux.Vars(r)["id"]
var text model.VersionedText
model.ReadJsonBody(r, &text)
WithTechStoryDao(func(dao techStoryDao) {
vtext := dao.AddText(techStory, text.Text)
model.WriteResponse(true... | [
-0.41536256670951843,
0.18727678060531616,
0.4096052646636963,
0.2506110668182373,
-0.5565829873085022,
0.0656319409608841,
-0.9911849498748779,
-0.08998159319162369,
0.7444188594818115,
0.3581417202949524,
-0.1341751664876938,
-0.13058015704154968,
-0.2162664383649826,
0.02588856033980846... |
func (ts *TechStoryService) setStatus (w http.ResponseWriter, r *http.Request) {
var techStory model.TechStory
model.ReadJsonBody(r, &techStory)
techStory.Key = mux.Vars(r)["id"]
WithTechStoryDao(func(dao techStoryDao) {
user := model.GetUserFromRequest(w, r)
entity, err := dao.SetStatus(&techStory, techStory.... | [
-0.8999597430229187,
-0.3546287417411804,
-0.019517820328474045,
0.37002211809158325,
-0.3492809534072876,
0.3271506130695343,
-0.1308775693178177,
0.388894647359848,
-0.04673987999558449,
0.024271545931696892,
-0.38990768790245056,
0.5296640396118164,
0.7609705328941345,
0.801110804080963... |
func (ts *TechStoryService) getComments (w http.ResponseWriter, r *http.Request) {
var techStory model.TechStory
techStory.Key = mux.Vars(r)["id"]
values := r.URL.Query()
offset := model.GetInt(values, "offset", 0)
pageSize := model.GetInt(values, "pageSize", 0)
WithTechStoryDao(func(dao techStoryDao) {
comme... | [
-1.1898378133773804,
-0.4857672452926636,
0.48802006244659424,
-0.7084561586380005,
0.7596597075462341,
-0.6534216403961182,
-0.22665424644947052,
-0.7870019674301147,
-0.39099547266960144,
-0.025529194623231888,
-0.15926755964756012,
0.011350731365382671,
0.0175034087151289,
0.74126225709... |
func (ts *TechStoryService) addComment (w http.ResponseWriter, r *http.Request) {
var techStory model.TechStory
techStory.Key = mux.Vars(r)["id"]
var com model.Comment
model.ReadJsonBody(r, &com)
WithTechStoryDao(func(dao techStoryDao) {
user := model.GetUserFromRequest(w, r)
comment := dao.AddComment(techSt... | [
-0.6618028879165649,
-0.452033668756485,
0.5153990983963013,
0.4296998679637909,
0.4041445553302765,
0.2914135456085205,
0.3532107472419739,
-0.4028088450431824,
-0.3106391727924347,
-0.39196357131004333,
0.2831389009952545,
-0.45816856622695923,
0.22246652841567993,
0.6452776193618774,
... |
func (ts TechStoryService) getTextVersionList(w http.ResponseWriter, r *http.Request) {
var techStory model.TechStory
techStory.Key = mux.Vars(r)["id"]
WithTechStoryDao(func(dao techStoryDao) {
versions, err := dao.GetTextVersionList(techStory)
model.CheckErr(err)
model.WriteArrayResponse(true, nil, versions,... | [
-0.41960856318473816,
0.15825439989566803,
0.08096042275428772,
-0.06664171069860458,
-0.035241931676864624,
-0.41411325335502625,
-0.6758951544761658,
-0.33511099219322205,
0.08784786611795425,
1.5881907939910889,
-0.6448268294334412,
-0.15188007056713104,
0.23730780184268951,
1.148769974... |
func (l ExportLayer) ID() string {
return strings.TrimSuffix(string(l), "/layer.tar")
} | [
0.9904940128326416,
-0.520261287689209,
0.5320252776145935,
0.07252658903598785,
-0.384348601102829,
1.4855117797851562,
-0.33838358521461487,
0.007408194709569216,
1.0147087574005127,
-0.13490037620067596,
-0.14034873247146606,
-0.42864593863487244,
-0.22679667174816132,
0.408071309328079... |
func (c ExportConfig) ID() string {
return strings.TrimSuffix(string(c), ".json")
} | [
0.22126217186450958,
-1.0554702281951904,
0.7535891532897949,
-0.0462668240070343,
-0.6053332090377808,
1.0006953477859497,
-0.2999154329299927,
-0.04988497123122215,
0.9795937538146973,
0.5997583270072937,
-0.6319308876991272,
-0.1673770248889923,
-0.18685638904571533,
-0.3034703135490417... |
func NewExportManifestFromDistribution(imageName Name, distribution DistributionManifest) ExportManifest {
exportConfig := ExportConfig(fmt.Sprintf("%s.%s", distribution.Config.Digest.Hex(), legacyImageConfigFileName))
var exportLayers []ExportLayer
for _, layer := range distribution.Layers {
exportLayer := Export... | [
0.25496432185173035,
-1.0847625732421875,
0.4098692536354065,
0.14109453558921814,
-1.3479163646697998,
-0.45962902903556824,
-0.7923180460929871,
0.02097555249929428,
1.1033058166503906,
0.6864542961120605,
-0.3857734799385071,
-0.28090766072273254,
0.4933745861053467,
0.42457252740859985... |
func chanMonitor( wg *sync.WaitGroup, ch chan string ){
wg.Wait()
close( ch )
} | [
-0.2979627847671509,
-0.5828672647476196,
0.2708272635936737,
-1.1080604791641235,
-0.2757393419742584,
0.5243827104568481,
-0.2326524704694748,
-0.21952179074287415,
-0.5037486553192139,
-0.5083414316177368,
-0.5505276918411255,
0.3775109350681305,
-0.13420197367668152,
0.1430622935295105... |
func Unmarshal(bt browser.Type, out interface{}) error {
var localStatePath = localStatePathAsh
if bt == browser.TypeLacros {
localStatePath = localStatePathLacros
}
b, err := ioutil.ReadFile(localStatePath)
if err != nil {
return errors.Wrap(err, "failed to read Local State file")
}
if err := json.Unmarshal... | [
0.37135255336761475,
-0.4213045537471771,
0.7532888650894165,
-0.35537099838256836,
-0.7785891890525818,
0.24971464276313782,
0.4911010265350342,
0.8507143259048462,
0.017658494412899017,
0.22756175696849823,
0.6033359169960022,
0.20180153846740723,
0.4215635061264038,
-0.00845466274768114... |
func UnmarshalPref(bt browser.Type, pref string) (interface{}, error) {
path := strings.Split(pref, ".")
var localState interface{}
if err := Unmarshal(bt, &localState); err != nil {
return nil, errors.Wrap(err, "failed to retrieve Local State contents")
}
for i, key := range path {
unexpectedValueError := fun... | [
0.231937438249588,
-0.5687593817710876,
0.8059248328208923,
-0.8077124357223511,
-1.1467962265014648,
-0.6884124875068665,
0.26629289984703064,
0.36245834827423096,
0.575617790222168,
0.7571660876274109,
0.2641282379627228,
-0.12582187354564667,
-0.44401174783706665,
-0.3039900064468384,
... |
func MarshalPref(bt browser.Type, pref string, val interface{}) error {
if pref == "" {
return errors.New("perf name cannot be empty, use Marshal if you're overwriting the entire file content")
}
var localStatePath = localStatePathAsh
if bt == browser.TypeLacros {
localStatePath = localStatePathLacros
}
var l... | [
0.76348876953125,
-0.8347224593162537,
0.7927338480949402,
-0.3060217499732971,
-0.6052781343460083,
-0.008477643132209778,
-0.05845372751355171,
0.617895781993866,
0.46552780270576477,
0.5531399846076965,
0.3861299157142639,
0.5845078825950623,
0.07812178879976273,
0.18486547470092773,
... |
func (i *Image) ColorModel() color.Model {
return color.RGBA64Model
} | [
-0.39584457874298096,
-0.6090025305747986,
0.14968548715114594,
0.4953475594520569,
0.22432363033294678,
1.1051126718521118,
0.28178197145462036,
0.3079546391963959,
0.6922454237937927,
0.46350643038749695,
0.3264284133911133,
-0.3146651089191437,
0.23051030933856964,
0.7093281745910645,
... |
func (i *Image) At(x, y int) color.Color {
if x+y%2 == 0 {
return color.Black
}
return color.White
} | [
-1.4988895654678345,
-0.1513107270002365,
0.391510546207428,
-1.853394627571106,
0.2968197762966156,
0.23100221157073975,
-0.430408775806427,
-1.19367253780365,
0.15330295264720917,
0.45527487993240356,
0.635075032711029,
1.4123214483261108,
0.6029876470565796,
0.743183970451355,
-0.9033... |
func Pic(dx, dy int) *Image {
return &Image{dy, dx}
} | [
-0.897851824760437,
1.3886972665786743,
0.3670843839645386,
-0.5693783164024353,
-1.0341469049453735,
-0.3858861029148102,
-0.30762624740600586,
-1.03755784034729,
-0.8715251684188843,
-0.0982840433716774,
0.22189150750637054,
0.22584529221057892,
1.4122240543365479,
-0.978840172290802,
... |
func (ctx *AppContext) OptionsHandler(h http.Handler) http.Handler {
return http.HandlerFunc(func(writer http.ResponseWriter, request *http.Request) {
if request.Method == "OPTIONS" {
fmt.Fprintf(writer, "")
return
}
h.ServeHTTP(writer, request)
})
} | [
0.12575387954711914,
0.21473923325538635,
0.44086578488349915,
-0.24955587089061737,
0.22336973249912262,
0.21909469366073608,
-0.13972139358520508,
-0.3057898283004761,
0.37370726466178894,
0.08600165694952011,
1.315798282623291,
-0.7211893796920776,
-0.13152101635932922,
0.70161169767379... |
func (c ContractValue) Spawn(rst itransaction.ReadOnlyStateTrie, inst itransaction.Instruction, trans itransaction.Transaction) (sc []byte, err error) {
// Find the darcID for this instance.
// var darcID darc.ID
// _, _, _, darcID, err = rst.GetValues(inst.GetInstanceID().Slice())
// if err != nil {
// return
/... | [
-0.3462134003639221,
-0.07088661193847656,
0.5910717248916626,
0.05104568228125572,
-0.16845302283763885,
-0.012954284437000751,
-0.18111944198608398,
-0.3163796067237854,
0.05572502687573433,
0.3099347949028015,
-0.5789480209350586,
0.25210291147232056,
0.16734452545642853,
-0.12897163629... |
func (c ContractValue) Invoke(rst itransaction.ReadOnlyStateTrie, inst itransaction.Instruction, trans itransaction.Transaction) (sc []byte, err error) {
// cout = coins
// Find the darcID for this instance.
// var darcID darc.ID
// _, _, _, darcID, err = rst.GetValues(inst.InstanceID.Slice())
// if err != nil {... | [
-0.6808872222900391,
0.4122362732887268,
0.6386520266532898,
-0.17385590076446533,
-0.5102283954620361,
-0.5849205851554871,
0.07009740173816681,
-0.021532418206334114,
-0.2565437853336334,
0.5236385464668274,
0.18060165643692017,
0.5340471863746643,
-0.6398811936378479,
-0.521497428417205... |
func (c ContractValue) Delete(rst itransaction.ReadOnlyStateTrie, inst itransaction.Instruction, trans itransaction.Transaction) (sc []byte, err error) {
// cout = coins
// Find the darcID for this instance.
// var darcID darc.ID
// _, _, _, darcID, err = rst.GetValues(inst.InstanceID.Slice())
// if err != nil {
... | [
0.05463920161128044,
0.3520837128162384,
0.48766541481018066,
-0.5069056153297424,
-0.3746567666530609,
-0.365877628326416,
0.449523001909256,
0.6003230214118958,
0.039742596447467804,
0.4182727038860321,
-0.22960998117923737,
0.3149433732032776,
-0.47510987520217896,
-0.429498553276062,
... |
func NewCreateAuthorizationV1beta1NamespacedLocalSubjectAccessReviewOK() *CreateAuthorizationV1beta1NamespacedLocalSubjectAccessReviewOK {
return &CreateAuthorizationV1beta1NamespacedLocalSubjectAccessReviewOK{}
} | [
0.8268047571182251,
-0.3176978528499603,
0.1503300815820694,
-1.0730431079864502,
-0.5438486933708191,
0.5436187386512756,
-0.1300310641527176,
-0.007756728213280439,
0.051266368478536606,
-0.406237930059433,
0.38744479417800903,
0.4347990155220032,
0.7580674886703491,
0.988673746585846,
... |
func (o *CreateAuthorizationV1beta1NamespacedLocalSubjectAccessReviewOK) WithPayload(payload *models.IoK8sAPIAuthorizationV1beta1LocalSubjectAccessReview) *CreateAuthorizationV1beta1NamespacedLocalSubjectAccessReviewOK {
o.Payload = payload
return o
} | [
0.9860234260559082,
-0.2778460383415222,
0.12917789816856384,
-1.6763712167739868,
-0.9426741600036621,
0.25396662950515747,
-0.2574469745159149,
-0.48132240772247314,
0.7894090414047241,
-0.2635880708694458,
1.0029624700546265,
0.4034753143787384,
0.7385843992233276,
0.2610301971435547,
... |
func (o *CreateAuthorizationV1beta1NamespacedLocalSubjectAccessReviewOK) SetPayload(payload *models.IoK8sAPIAuthorizationV1beta1LocalSubjectAccessReview) {
o.Payload = payload
} | [
0.6712443232536316,
0.1812387853860855,
0.09887402504682541,
-1.4531112909317017,
-0.734416127204895,
0.3771854341030121,
-0.20262634754180908,
-0.4893628656864166,
0.4099213480949402,
-0.11438615620136261,
0.6896712779998779,
0.6907345056533813,
0.2678132653236389,
0.6754812002182007,
-... |
func (o *CreateAuthorizationV1beta1NamespacedLocalSubjectAccessReviewOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
rw.WriteHeader(200)
if o.Payload != nil {
payload := o.Payload
if err := producer.Produce(rw, payload); err != nil {
panic(err) // let the recovery middleware deal with t... | [
0.1782587468624115,
-0.21419736742973328,
0.27125707268714905,
-0.6095781922340393,
0.131483256816864,
-0.4401131868362427,
0.25601106882095337,
-0.3215867578983307,
0.5105491876602173,
0.2040931135416031,
0.4578906297683716,
-0.0751032829284668,
-0.1587575376033783,
0.23323510587215424,
... |
func NewCreateAuthorizationV1beta1NamespacedLocalSubjectAccessReviewCreated() *CreateAuthorizationV1beta1NamespacedLocalSubjectAccessReviewCreated {
return &CreateAuthorizationV1beta1NamespacedLocalSubjectAccessReviewCreated{}
} | [
1.4712581634521484,
-0.6651384234428406,
0.018891844898462296,
-1.1500020027160645,
-0.6574215292930603,
0.5234612822532654,
-0.7569263577461243,
0.06688609719276428,
-0.1558765470981598,
-0.9609661102294922,
0.8132921457290649,
0.2398214489221573,
0.6726184487342834,
1.0151138305664062,
... |
func (o *CreateAuthorizationV1beta1NamespacedLocalSubjectAccessReviewCreated) WithPayload(payload *models.IoK8sAPIAuthorizationV1beta1LocalSubjectAccessReview) *CreateAuthorizationV1beta1NamespacedLocalSubjectAccessReviewCreated {
o.Payload = payload
return o
} | [
1.375598669052124,
-0.34744805097579956,
-0.011465242132544518,
-1.5858076810836792,
-0.9146550893783569,
0.5071625709533691,
-0.8468235731124878,
-0.34811705350875854,
0.43423032760620117,
-0.6813620924949646,
1.0912768840789795,
0.1646047830581665,
0.7459840774536133,
0.2406257688999176,... |
func (o *CreateAuthorizationV1beta1NamespacedLocalSubjectAccessReviewCreated) SetPayload(payload *models.IoK8sAPIAuthorizationV1beta1LocalSubjectAccessReview) {
o.Payload = payload
} | [
1.1840159893035889,
0.0854746401309967,
0.0004863709327764809,
-1.4253772497177124,
-0.7087116837501526,
0.809151828289032,
-0.7478245496749878,
-0.21458236873149872,
0.05393887311220169,
-0.5999022126197815,
0.8544870615005493,
0.5659831762313843,
0.21569643914699554,
0.4644911587238312,
... |
func (o *CreateAuthorizationV1beta1NamespacedLocalSubjectAccessReviewCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
rw.WriteHeader(201)
if o.Payload != nil {
payload := o.Payload
if err := producer.Produce(rw, payload); err != nil {
panic(err) // let the recovery middleware deal w... | [
0.6062220335006714,
-0.09502241760492325,
0.2190520465373993,
-0.6323655843734741,
0.01542925089597702,
0.02235369198024273,
-0.1860431730747223,
-0.08543131500482559,
0.29064470529556274,
0.05078525096178055,
0.5240768194198608,
0.038356244564056396,
0.009367909282445908,
0.21085026860237... |
func NewCreateAuthorizationV1beta1NamespacedLocalSubjectAccessReviewAccepted() *CreateAuthorizationV1beta1NamespacedLocalSubjectAccessReviewAccepted {
return &CreateAuthorizationV1beta1NamespacedLocalSubjectAccessReviewAccepted{}
} | [
1.225540041923523,
-0.662283718585968,
0.016765059903264046,
-1.3393577337265015,
-1.5327723026275635,
0.7386918067932129,
-0.04803261160850525,
0.17282384634017944,
0.018032189458608627,
-0.43140384554862976,
0.6359045505523682,
0.8461503386497498,
0.8158767223358154,
1.154499888420105,
... |
func (o *CreateAuthorizationV1beta1NamespacedLocalSubjectAccessReviewAccepted) WithPayload(payload *models.IoK8sAPIAuthorizationV1beta1LocalSubjectAccessReview) *CreateAuthorizationV1beta1NamespacedLocalSubjectAccessReviewAccepted {
o.Payload = payload
return o
} | [
1.2641057968139648,
-0.4644832909107208,
0.06228731945157051,
-1.7781425714492798,
-1.4615347385406494,
0.5867568850517273,
-0.26295024156570435,
-0.034034568816423416,
0.9029769897460938,
-0.11858253180980682,
0.9869176149368286,
0.7209345102310181,
0.7600863575935364,
0.3808690905570984,... |
func (o *CreateAuthorizationV1beta1NamespacedLocalSubjectAccessReviewAccepted) SetPayload(payload *models.IoK8sAPIAuthorizationV1beta1LocalSubjectAccessReview) {
o.Payload = payload
} | [
1.0730823278427124,
0.056369271129369736,
0.09620286524295807,
-1.6015654802322388,
-1.303436279296875,
0.9480379819869995,
-0.09201695770025253,
0.039088938385248184,
0.5352584719657898,
0.057615797966718674,
0.7564018964767456,
1.1008135080337524,
0.35326868295669556,
0.6610627770423889,... |
func (o *CreateAuthorizationV1beta1NamespacedLocalSubjectAccessReviewAccepted) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
rw.WriteHeader(202)
if o.Payload != nil {
payload := o.Payload
if err := producer.Produce(rw, payload); err != nil {
panic(err) // let the recovery middleware deal ... | [
0.33578065037727356,
-0.00934268906712532,
0.35508933663368225,
-0.7358922362327576,
-0.42434990406036377,
-0.05228761211037636,
0.2648986876010895,
0.10813173651695251,
0.6440207362174988,
0.4836775064468384,
0.5809141993522644,
0.6333908438682556,
-0.013422113843262196,
0.231622904539108... |
func NewCreateAuthorizationV1beta1NamespacedLocalSubjectAccessReviewUnauthorized() *CreateAuthorizationV1beta1NamespacedLocalSubjectAccessReviewUnauthorized {
return &CreateAuthorizationV1beta1NamespacedLocalSubjectAccessReviewUnauthorized{}
} | [
0.30752742290496826,
-0.1262245774269104,
0.17631281912326813,
-1.2264851331710815,
-0.8593358993530273,
0.2665207087993622,
-0.5752452611923218,
0.37033888697624207,
0.42969566583633423,
-1.052441954612732,
0.5594269633293152,
0.889349102973938,
0.6249275207519531,
0.9416965246200562,
-... |
func (o *CreateAuthorizationV1beta1NamespacedLocalSubjectAccessReviewUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
rw.Header().Del(runtime.HeaderContentType) //Remove Content-Type on empty responses
rw.WriteHeader(401)
} | [
-0.12063419073820114,
-0.5175368785858154,
0.24263201653957367,
-0.910727322101593,
0.09753863513469696,
-0.07090480625629425,
0.018234385177493095,
-0.046994492411613464,
0.5631192922592163,
0.014691011980175972,
0.38036617636680603,
0.3873198330402374,
-0.40360888838768005,
0.22884495556... |
func FormatServices() (string, error) {
return dm.FormatServices()
} | [
-1.0279688835144043,
0.5920225381851196,
0.3759881556034088,
-0.09295447915792465,
-0.7471024990081787,
-0.5238986611366272,
0.16482333838939667,
-1.1384333372116089,
0.6340897083282471,
-0.5204750895500183,
1.5571547746658325,
0.04323118180036545,
-0.5682539939880371,
1.0778800249099731,
... |
func MigrationContent(mf Migration, c *Connection, r io.Reader, usingTemplate bool) (string, error) {
b, err := ioutil.ReadAll(r)
if err != nil {
return "", nil
}
content := ""
if usingTemplate {
t := template.Must(template.New("migration").Parse(string(b)))
var bb bytes.Buffer
err = t.Execute(&bb, c.Dial... | [
0.04111548513174057,
-0.26997214555740356,
0.3434563875198364,
0.010755483992397785,
-1.0381519794464111,
-0.34710031747817993,
-0.31460243463516235,
-0.38018324971199036,
-0.01922483555972576,
1.298943042755127,
0.17092365026474,
-0.8478637337684631,
-0.4129924178123474,
0.221557289361953... |
func (Event_Type) EnumDescriptor() ([]byte, []int) {
return file_protobuf_index_proto_rawDescGZIP(), []int{23, 0}
} | [
0.29634830355644226,
0.11699371039867401,
0.8067762851715088,
0.07260552048683167,
0.9035431742668152,
-0.6157063841819763,
0.7357617020606995,
0.17162945866584778,
0.43122294545173645,
0.3692278563976288,
-0.0229714997112751,
0.20754173398017883,
-0.32217293977737427,
1.060154914855957,
... |
func (*LivenessCheckResponse) Descriptor() ([]byte, []int) {
return file_protobuf_index_proto_rawDescGZIP(), []int{0}
} | [
-0.022401778027415276,
-0.01699831336736679,
-0.027735812589526176,
-0.010855820961296558,
1.237595796585083,
-0.5116494297981262,
0.4540422856807709,
0.7069374918937683,
0.012723523192107677,
-0.08879853785037994,
-0.36386582255363464,
-1.2134965658187866,
-0.9855689406394958,
0.088228702... |
func (*ReadinessCheckResponse) Descriptor() ([]byte, []int) {
return file_protobuf_index_proto_rawDescGZIP(), []int{1}
} | [
-0.6069141626358032,
0.23686282336711884,
-0.0097031956538558,
-0.06736185401678085,
1.086475133895874,
-0.8619400858879089,
0.6667645573616028,
0.4097614586353302,
-0.13837166130542755,
-0.09860245138406754,
-0.4936029613018036,
-1.0682955980300903,
-1.2324239015579224,
0.1523547321557998... |
func (*Metadata) Descriptor() ([]byte, []int) {
return file_protobuf_index_proto_rawDescGZIP(), []int{2}
} | [
-0.5313827395439148,
0.7161093950271606,
0.5225357413291931,
0.30222246050834656,
0.4566386342048645,
-0.016524527221918106,
-0.31396549940109253,
-0.010653816163539886,
-0.45057159662246704,
0.263883501291275,
-0.4237740933895111,
0.28781479597091675,
-0.19613716006278992,
0.2370438426733... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.