query stringlengths 10 3.85k | ru_query stringlengths 9 3.76k | document stringlengths 17 430k | metadata dict | negatives listlengths 97 100 | negative_scores listlengths 97 100 | document_score stringlengths 5 10 | document_rank stringclasses 2
values |
|---|---|---|---|---|---|---|---|
NewClusterResources creates a new builder of 'cluster_resources' objects. | NewClusterResources создает новый построитель объектов 'cluster_resources'. | func NewClusterResources() *ClusterResourcesBuilder {
return &ClusterResourcesBuilder{}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func NewCluster(ctx *pulumi.Context,\n\tname string, args *ClusterArgs, opts ...pulumi.ResourceOption) (*Cluster, error) {\n\tif args == nil {\n\t\treturn nil, errors.New(\"missing one or more required arguments\")\n\t}\n\n\tif args.ResourceGroupName == nil {\n\t\treturn nil, errors.New(\"invalid value for require... | [
"0.63432515",
"0.6221976",
"0.6185795",
"0.60945183",
"0.6084404",
"0.6048605",
"0.6005981",
"0.6000015",
"0.5953714",
"0.5941338",
"0.59064907",
"0.58457094",
"0.5841697",
"0.58374846",
"0.5823828",
"0.5818614",
"0.57747954",
"0.57690257",
"0.57385665",
"0.5713448",
"0.57073... | 0.8414207 | 0 |
Build creates a 'cluster_resources' object using the configuration stored in the builder. | Build создает объект 'cluster_resources' с использованием конфигурации, хранящейся в builder. | func (b *ClusterResourcesBuilder) Build() (object *ClusterResources, err error) {
object = new(ClusterResources)
object.id = b.id
object.href = b.href
object.bitmap_ = b.bitmap_
object.clusterID = b.clusterID
object.creationTimestamp = b.creationTimestamp
if b.resources != nil {
object.resources = make(map[str... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func NewClusterResources() *ClusterResourcesBuilder {\n\treturn &ClusterResourcesBuilder{}\n}",
"func buildClusterResource(\n\tdest *route.Destination,\n\tc *clusters.ClusterBuilder,\n\tidentifyingTags map[string]string,\n) (*core_xds.Resource, error) {\n\tmsg, err := c.Build()\n\tif err != nil {\n\t\treturn nil... | [
"0.6167354",
"0.61012423",
"0.6098302",
"0.60483503",
"0.57343626",
"0.57145333",
"0.54904455",
"0.5412638",
"0.5411754",
"0.5394434",
"0.5387329",
"0.5350077",
"0.5322013",
"0.53044236",
"0.52677596",
"0.52275133",
"0.52176857",
"0.51998526",
"0.51835483",
"0.5176644",
"0.50... | 0.735423 | 0 |
NewServiceBindingUsageLister returns a new ServiceBindingUsageLister. | NewServiceBindingUsageLister возвращает новый ServiceBindingUsageLister. | func NewServiceBindingUsageLister(indexer cache.Indexer) ServiceBindingUsageLister {
return &serviceBindingUsageLister{indexer: indexer}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (s *serviceBindingUsageLister) ServiceBindingUsages(namespace string) ServiceBindingUsageNamespaceLister {\n\treturn serviceBindingUsageNamespaceLister{indexer: s.indexer, namespace: namespace}\n}",
"func (s *serviceBindingUsageLister) List(selector labels.Selector) (ret []*v1alpha1.ServiceBindingUsage, err... | [
"0.7258763",
"0.71040887",
"0.6870422",
"0.6742539",
"0.62293077",
"0.61794835",
"0.6094057",
"0.593119",
"0.58832616",
"0.5697121",
"0.5575256",
"0.54586303",
"0.541318",
"0.5372099",
"0.53088653",
"0.52839893",
"0.5182766",
"0.51425946",
"0.5121993",
"0.50919604",
"0.506559... | 0.8534722 | 0 |
List lists all ServiceBindingUsages in the indexer. | Список отображает все ServiceBindingUsages в индексаторе. | func (s *serviceBindingUsageLister) List(selector labels.Selector) (ret []*v1alpha1.ServiceBindingUsage, err error) {
err = cache.ListAll(s.indexer, selector, func(m interface{}) {
ret = append(ret, m.(*v1alpha1.ServiceBindingUsage))
})
return ret, err
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (s serviceBindingUsageNamespaceLister) List(selector labels.Selector) (ret []*v1alpha1.ServiceBindingUsage, err error) {\n\terr = cache.ListAllByNamespace(s.indexer, s.namespace, selector, func(m interface{}) {\n\t\tret = append(ret, m.(*v1alpha1.ServiceBindingUsage))\n\t})\n\treturn ret, err\n}",
"func (s ... | [
"0.7354193",
"0.72460604",
"0.69891685",
"0.67221165",
"0.6503276",
"0.63825774",
"0.63130677",
"0.61805177",
"0.61420196",
"0.6021486",
"0.60151863",
"0.6001599",
"0.5952868",
"0.59411305",
"0.5829562",
"0.5810557",
"0.5809603",
"0.5767496",
"0.57672334",
"0.5740114",
"0.573... | 0.79464316 | 0 |
ServiceBindingUsages returns an object that can list and get ServiceBindingUsages. | ServiceBindingUsages возвращает объект, который может перечислять и получать ServiceBindingUsages. | func (s *serviceBindingUsageLister) ServiceBindingUsages(namespace string) ServiceBindingUsageNamespaceLister {
return serviceBindingUsageNamespaceLister{indexer: s.indexer, namespace: namespace}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func NewServiceBindingUsageLister(indexer cache.Indexer) ServiceBindingUsageLister {\n\treturn &serviceBindingUsageLister{indexer: indexer}\n}",
"func (s *serviceBindingUsageLister) List(selector labels.Selector) (ret []*v1alpha1.ServiceBindingUsage, err error) {\n\terr = cache.ListAll(s.indexer, selector, func(... | [
"0.7230023",
"0.708363",
"0.6262957",
"0.61490804",
"0.5814957",
"0.57504565",
"0.5720061",
"0.5676366",
"0.5673035",
"0.5668296",
"0.5576214",
"0.5490491",
"0.54709727",
"0.5426153",
"0.5418239",
"0.53601587",
"0.5341827",
"0.52874273",
"0.52434707",
"0.5174632",
"0.5141628"... | 0.81495744 | 0 |
List lists all ServiceBindingUsages in the indexer for a given namespace. | Список отображает все ServiceBindingUsages в индексаторе для заданного пространства имен. | func (s serviceBindingUsageNamespaceLister) List(selector labels.Selector) (ret []*v1alpha1.ServiceBindingUsage, err error) {
err = cache.ListAllByNamespace(s.indexer, s.namespace, selector, func(m interface{}) {
ret = append(ret, m.(*v1alpha1.ServiceBindingUsage))
})
return ret, err
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (s *serviceBindingUsageLister) List(selector labels.Selector) (ret []*v1alpha1.ServiceBindingUsage, err error) {\n\terr = cache.ListAll(s.indexer, selector, func(m interface{}) {\n\t\tret = append(ret, m.(*v1alpha1.ServiceBindingUsage))\n\t})\n\treturn ret, err\n}",
"func (s serviceInstanceBindingNamespaceL... | [
"0.7599032",
"0.7338712",
"0.69307137",
"0.6810237",
"0.66827506",
"0.6644975",
"0.63132983",
"0.61974543",
"0.61426646",
"0.6115521",
"0.60717785",
"0.6029088",
"0.5995204",
"0.5987921",
"0.59165424",
"0.58619905",
"0.5856003",
"0.58517176",
"0.57966727",
"0.5770292",
"0.575... | 0.79177517 | 0 |
Get retrieves the ServiceBindingUsage from the indexer for a given namespace and name. | Get получает ServiceBindingUsage из индексера для заданного пространства имен и имени. | func (s serviceBindingUsageNamespaceLister) Get(name string) (*v1alpha1.ServiceBindingUsage, error) {
obj, exists, err := s.indexer.GetByKey(s.namespace + "/" + name)
if err != nil {
return nil, err
}
if !exists {
return nil, errors.NewNotFound(v1alpha1.Resource("servicebindingusage"), name)
}
return obj.(*v1... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (s serviceInstanceBindingNamespaceLister) Get(name string) (*v1alpha1.ServiceInstanceBinding, error) {\n\tobj, exists, err := s.indexer.GetByKey(s.namespace + \"/\" + name)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tif !exists {\n\t\treturn nil, errors.NewNotFound(v1alpha1.Resource(\"serviceinstancebindi... | [
"0.6819616",
"0.64498615",
"0.64032316",
"0.6182226",
"0.59957296",
"0.5901107",
"0.5848326",
"0.58462566",
"0.5776469",
"0.5761234",
"0.5741881",
"0.5705802",
"0.568201",
"0.5609878",
"0.55802494",
"0.552008",
"0.5485291",
"0.5415109",
"0.54060054",
"0.53051776",
"0.5292561"... | 0.8252368 | 0 |
Pwelch estimates the power spectral density of x using Welch's method. Fs is the sampling frequency (samples per time unit) of x. Fs is used to calculate freqs. Returns the power spectral density Pxx and corresponding frequencies freqs. Designed to be similar to the matplotlib implementation below. Reference: See also: | Pwelch оценивает плотность спектра мощности x с использованием метода Велча. Fs — частота дискретизации (количество образцов за единицу времени) x. Fs используется для вычисления freqs. Возвращает плотность спектра мощности Pxx и соответствующие частоты freqs. Разработан для того, чтобы быть похожим на реализацию matpl... | func Pwelch(x []float64, Fs float64, o *PwelchOptions) (Pxx, freqs []float64) {
if len(x) == 0 {
return []float64{}, []float64{}
}
nfft := o.NFFT
pad := o.Pad
noverlap := o.Noverlap
wf := o.Window
enable_scaling := !o.Scale_off
if nfft == 0 {
nfft = 256
}
if wf == nil {
wf = window.Hann
}
if pad =... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (s *SawtoothParameters) powerForFrequency(freq float64) float64 {\n\tminDistance := math.Abs(freq - s.Formants[0])\n\tfor i := 1; i < len(s.Formants); i++ {\n\t\tminDistance = math.Min(minDistance, math.Abs(freq-s.Formants[i]))\n\t}\n\n\t// This is somewhat arbitrary, but signifies the fact that, as s.Strengt... | [
"0.5416571",
"0.5384392",
"0.51399887",
"0.49727193",
"0.48722935",
"0.48617032",
"0.48394534",
"0.48064122",
"0.4737474",
"0.4703313",
"0.46947736",
"0.46832156",
"0.4678121",
"0.4658866",
"0.46008325",
"0.45517224",
"0.45510244",
"0.4549663",
"0.45298377",
"0.4511862",
"0.4... | 0.7678103 | 0 |
pongHandler ::: controlador del servicio pong | pongHandler ::: контроллер сервиса pong | func pongHandler(w http.ResponseWriter, r *http.Request) {
log.Println("pongHandler - request")
var response map[string]interface{}
json.Unmarshal([]byte(`{ "message": "pong" }`), &response)
respondWithJSON(w, http.StatusOK, response)
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func PingPongHandler(c *gin.Context) {\n\tc.JSON(200, gin.H{\n\t\t\"message\": \"pong\",\n\t})\n}",
"func pingPongHandler(packet *RawPacket, sender *Connection) {\n\tpayload := packet.ReadLong()\n\tresponse := NewResponse()\n\tresponse.WriteLong(payload)\n\tsender.Write(response.ToRawPacket(PingPacketId))\n}",
... | [
"0.76112336",
"0.7341645",
"0.73311293",
"0.73235464",
"0.7273888",
"0.72229075",
"0.71851754",
"0.71588373",
"0.710621",
"0.702497",
"0.69763863",
"0.69488263",
"0.69025815",
"0.69023836",
"0.6898202",
"0.68844",
"0.68374383",
"0.67956126",
"0.67746556",
"0.6722194",
"0.6706... | 0.7583815 | 1 |
initialiseRoutes ::: contiene el controlador y path de servicio ping | initialiseRoutes ::: содержит контроллер и путь сервиса ping | func (app *App) initialiseRoutes() {
log.Println("start - pong service up")
app.Router = mux.NewRouter()
app.Router.HandleFunc("/pong", pongHandler)
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func InitRoutes(e *echo.Echo) {\n\te.GET(\"/health\", Health)\n}",
"func _initRoutes() {\n\te.Use(server_stats.Handler)\n\n\te.Get(\"/stats\", func(c *echo.Context) error {\n\t\treturn c.JSON(http.StatusOK, server_stats.Data())\n\t})\n\n\te.Post(\"/login\", login)\n\te.Get(\"/logout\", logout)\n\n\te.Post(\"/sys... | [
"0.73931235",
"0.72306037",
"0.7173062",
"0.6988073",
"0.69755226",
"0.69456065",
"0.6850584",
"0.68446255",
"0.67992526",
"0.6776798",
"0.6770285",
"0.6716778",
"0.669669",
"0.669669",
"0.6692522",
"0.66863674",
"0.667841",
"0.6665675",
"0.66587675",
"0.66581076",
"0.6655311... | 0.75100857 | 0 |
Test that calculateGithubUser calls the login rule evaluator, evaluated traits end up in the user params, and traits are evaluated exactly once. | Тест, проверяющий, что calculateGithubUser вызывает оценщик правил входа, оцененные признаки оканчиваются в параметрах пользователя, и признаки оцениваются ровно один раз. | func TestCalculateGithubUserWithLoginRules(t *testing.T) {
ctx := context.Background()
// Create a test role so that FetchRoles can succeed.
roles := map[string]types.Role{
"access": &types.RoleV6{
Metadata: types.Metadata{
Name: "access",
},
Spec: types.RoleSpecV6{
Allow: types.RoleConditions{
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func TestFetchUserInfoFromGithub(t *testing.T) {\n\tt.Run(\"StatusCodeInvalid\", func(t *testing.T) {\n\t\t// Fake server for tests\n\t\tts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {\n\t\t\tw.WriteHeader(http.StatusBadRequest)\n\t\t\tw.Write([]byte(`{\"message\": \"Not Fo... | [
"0.5231775",
"0.49905923",
"0.49828514",
"0.49660707",
"0.49378765",
"0.49374676",
"0.4851372",
"0.4827408",
"0.48180506",
"0.48178825",
"0.47985524",
"0.47951698",
"0.47816002",
"0.47519004",
"0.47468108",
"0.4734627",
"0.47257802",
"0.4725666",
"0.47149983",
"0.47128037",
"... | 0.75496596 | 0 |
SectionList accepts requests to list all sections | SectionList принимает запросы на список всех разделов | func (x *Rest) SectionList(w http.ResponseWriter, r *http.Request,
params httprouter.Params) {
defer panicCatcher(w)
request := msg.New(r, params)
request.Section = msg.SectionSection
request.Action = msg.ActionList
request.SectionObj = proto.Section{
Category: params.ByName(`category`),
}
if !x.isAuthorize... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (e *ContentSectionService) List(opts *ListOptions) ([]ContentSection, *Response, error) {\n\tendpoint := \"/assets/contentSections\"\n\tcontentSections := new([]ContentSection)\n\tresp, err := e.client.getRequestListDecode(endpoint, contentSections, opts)\n\treturn *contentSections, resp, err\n}",
"func (c ... | [
"0.7031491",
"0.66802675",
"0.6629426",
"0.66256917",
"0.6501052",
"0.64080566",
"0.64036226",
"0.6214692",
"0.617056",
"0.6144332",
"0.6112613",
"0.6034184",
"0.6031268",
"0.60290354",
"0.60263354",
"0.5952171",
"0.5946731",
"0.5930038",
"0.58993405",
"0.58711374",
"0.576503... | 0.8571434 | 0 |
SectionShow accepts requests to show details about a specific section | SectionShow принимает запросы на отображение деталей о конкретной секции | func (x *Rest) SectionShow(w http.ResponseWriter, r *http.Request,
params httprouter.Params) {
defer panicCatcher(w)
request := msg.New(r, params)
request.Section = msg.SectionSection
request.Action = msg.ActionShow
request.SectionObj = proto.Section{
Category: params.ByName(`category`),
ID: params.ByN... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (x *Rest) SectionSearch(w http.ResponseWriter, r *http.Request,\n\tparams httprouter.Params) {\n\tdefer panicCatcher(w)\n\n\trequest := msg.New(r, params)\n\trequest.Section = msg.SectionSection\n\trequest.Action = msg.ActionSearch\n\n\tcReq := proto.NewSectionRequest()\n\tif err := decodeJSONBody(r, &cReq); ... | [
"0.5879227",
"0.5741116",
"0.5680133",
"0.56564224",
"0.56385756",
"0.5633956",
"0.55361456",
"0.55016583",
"0.5484468",
"0.54683906",
"0.5442697",
"0.54399186",
"0.5420832",
"0.5351398",
"0.5324563",
"0.5312717",
"0.5312717",
"0.5311089",
"0.5301409",
"0.5235929",
"0.5198913... | 0.82814944 | 0 |
SectionSearch accepts requests to look up sections by name | SectionSearch принимает запросы на поиск разделов по имени | func (x *Rest) SectionSearch(w http.ResponseWriter, r *http.Request,
params httprouter.Params) {
defer panicCatcher(w)
request := msg.New(r, params)
request.Section = msg.SectionSection
request.Action = msg.ActionSearch
cReq := proto.NewSectionRequest()
if err := decodeJSONBody(r, &cReq); err != nil {
x.repl... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (aaa *SectionService) QuerySections(input *section.QuerySectionsParams) (*platformclientmodels.SectionPagingSlicedResult, error) {\n\ttoken, err := aaa.TokenRepository.GetToken()\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tok, notFound, unprocessableEntity, err := aaa.Client.Section.QuerySections(input, c... | [
"0.60640436",
"0.5964962",
"0.5957788",
"0.5917584",
"0.5812742",
"0.57827365",
"0.5729684",
"0.5715991",
"0.5665891",
"0.56599253",
"0.56242794",
"0.556397",
"0.55347806",
"0.5532465",
"0.55086046",
"0.5449752",
"0.5439118",
"0.5415583",
"0.5366811",
"0.5349843",
"0.5339649"... | 0.8159764 | 0 |
SectionAdd accepts requests to add a new section | SectionAdd принимает запросы на добавление нового раздела | func (x *Rest) SectionAdd(w http.ResponseWriter, r *http.Request,
params httprouter.Params) {
defer panicCatcher(w)
request := msg.New(r, params)
request.Section = msg.SectionSection
request.Action = msg.ActionAdd
cReq := proto.NewSectionRequest()
if err := decodeJSONBody(r, &cReq); err != nil {
x.replyBadRe... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (s *SectionsService) Add(ctx context.Context, syncToken string, addSection AddSection) ([]Section, CommandResponse, error) {\n\ts.client.Logln(\"---------- Sections.Add\")\n\n\tid := uuid.New().String()\n\ttempID := addSection.TempID\n\tif tempID == \"\" {\n\t\ttempID = uuid.New().String()\n\t}\n\n\taddComman... | [
"0.7501483",
"0.6680963",
"0.66556925",
"0.6565529",
"0.65498644",
"0.65232456",
"0.6520801",
"0.64826673",
"0.6425279",
"0.6281465",
"0.6267404",
"0.6188153",
"0.6171918",
"0.61695963",
"0.609872",
"0.60865206",
"0.60374427",
"0.5919846",
"0.5914592",
"0.5913388",
"0.5911348... | 0.8775453 | 0 |
SectionRemove accepts requests to remove a section | SectionRemove принимает запросы на удаление секции | func (x *Rest) SectionRemove(w http.ResponseWriter, r *http.Request,
params httprouter.Params) {
defer panicCatcher(w)
request := msg.New(r, params)
request.Section = msg.SectionSection
request.Action = msg.ActionRemove
request.SectionObj = proto.Section{
ID: params.ByName(`sectionID`),
}
if !x.isAuthorized... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func RemoveSection(name string) func(*types.Cmd) {\n\treturn func(g *types.Cmd) {\n\t\tg.AddOptions(\"--remove-section\")\n\t\tg.AddOptions(name)\n\t}\n}",
"func (t Sections) DeleteSection(p string) {\n\tdelete(t.container, p)\n}",
"func API_DeleteSection(res http.ResponseWriter, req *http.Request, params http... | [
"0.7097494",
"0.65110576",
"0.64874154",
"0.6261873",
"0.6184808",
"0.60783",
"0.59909046",
"0.593162",
"0.58965415",
"0.5842222",
"0.58199114",
"0.58171654",
"0.5755676",
"0.5744153",
"0.57289857",
"0.56832135",
"0.5663176",
"0.5659393",
"0.5599654",
"0.55937177",
"0.5568784... | 0.8544799 | 0 |
Clone clones the buffer into one which can be returned | Клонирует буфер в один, который можно вернуть | func clone(b *bytes.Buffer) []byte {
output := make([]byte, len(b.Bytes()))
copy(output, b.Bytes())
return output
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func CloneBuffer(obj flatbuffers.FlatBuffer) []byte {\n\tt := obj.Table()\n\tb := make([]byte, len(t.Bytes))\n\tcopy(b, t.Bytes)\n\tobj.Init(b, t.Pos)\n\treturn b\n}",
"func Clone(src []byte) []byte {\n\t// make copy\n\tdst := make([]byte, len(src))\n\tcopy(dst, src)\n\n\treturn dst\n}",
"func Duplicate(b *Loc... | [
"0.7487806",
"0.6863811",
"0.675019",
"0.65510535",
"0.6522589",
"0.644094",
"0.6438861",
"0.6421663",
"0.64066744",
"0.6359164",
"0.63116753",
"0.6297667",
"0.6290055",
"0.6253408",
"0.6245146",
"0.62449044",
"0.62373006",
"0.62174463",
"0.6195075",
"0.6190015",
"0.6185424",... | 0.78421754 | 0 |
Acquire gets a buffer from the pool | Acquire получает буфер из пула | func acquire() *bytes.Buffer {
return buffers.Get().(*bytes.Buffer)
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (p *pool) Acquire() (buf *buffer) {\n\tvar ok bool\n\tif buf, ok = p.p.Get().(*buffer); !ok {\n\t\tpanic(\"invalid pool type\")\n\t}\n\n\treturn\n}",
"func AcquireBuf() *bytes.Buffer {\n\tv := bufPool.Get()\n\tif v == nil {\n\t\treturn bytes.NewBuffer(nil)\n\t}\n\n\treturn v.(*bytes.Buffer)\n}",
"func (se... | [
"0.7983816",
"0.7676418",
"0.706735",
"0.70130795",
"0.6986972",
"0.69501376",
"0.69349456",
"0.6861309",
"0.68254995",
"0.68104225",
"0.6788563",
"0.67809594",
"0.67621046",
"0.6753972",
"0.6751231",
"0.67504233",
"0.6750355",
"0.67143697",
"0.66721994",
"0.66407883",
"0.661... | 0.7947519 | 1 |
GetRoomUsers get room's users from backend API | GetRoomUsers получает пользователей комнаты с бэкенд-API | func (repo *DelegateRoomUserRepository) GetRoomUsers(roomID string) (userIDs []string, err error) {
repo.lock.RLock()
fetchTime := repo.lastFetchRoomToUsers[roomID]
users := repo.roomToUsers[roomID]
repo.lock.RUnlock()
if fetchTime.IsZero() || time.Now().Sub(fetchTime) > repo.ttl {
url := url.URL{
Scheme: "h... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func listUsers(c *gin.Context) {\n\n\troomIDStr := c.Params.ByName(\"roomid\")\n\troomID, err := strconv.Atoi(roomIDStr)\n\tif err != nil {\n\t\tc.AbortWithStatus(http.StatusBadRequest)\n\t}\n\t//calling GetFromCache is problem !!!\n\troom, err := myContext.RoomProvider.GetFromCache(roomID)\n\tif err == pg.ErrNoRo... | [
"0.7428067",
"0.7233843",
"0.7180239",
"0.69463134",
"0.6899687",
"0.6880884",
"0.6845892",
"0.6825174",
"0.6777407",
"0.6657052",
"0.6556508",
"0.6527335",
"0.6515917",
"0.6452935",
"0.6436703",
"0.64253837",
"0.637998",
"0.62918437",
"0.6280495",
"0.6255153",
"0.62451243",
... | 0.76077706 | 0 |
AddUsersToRoom is used for updating cached users, it DOES NOT update database | AddUsersToRoom используется для обновления кэшированных пользователей, он НЕ обновляет базу данных | func (repo *DelegateRoomUserRepository) AddUsersToRoom(roomID string, userIDs []string) (err error) {
repo.lock.Lock()
defer repo.lock.Unlock()
repo.roomToUsers[roomID] = append(repo.roomToUsers[roomID], userIDs...)
for _, userID := range userIDs {
repo.userToRooms[userID] = append(repo.userToRooms[userID], room... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func addUserInRoom(roomName string, clientConn userConn) {\n\t//mu.Lock()\n\tchatRooms[roomName] = append(chatRooms[roomName], clientConn)\n\t//mu.Unlock()\n}",
"func (cs *coreService) AddUsersToRoom(ctx context.Context, roomID string, userIDs []string) error {\n\tif len(userIDs) == 0 {\n\t\treturn errors.New(\"... | [
"0.6845301",
"0.66811097",
"0.6462499",
"0.6455149",
"0.6169387",
"0.61389595",
"0.5951813",
"0.59126073",
"0.5877724",
"0.5827384",
"0.57969797",
"0.5776294",
"0.57451737",
"0.5729128",
"0.56671846",
"0.5642278",
"0.5583216",
"0.5560039",
"0.55471116",
"0.553769",
"0.5526544... | 0.73465276 | 0 |
RemoveUsersFromRoom is used for updating cached users, it DOES NOT update database | RemoveUsersFromRoom используется для обновления кэшированных пользователей, он НЕ обновляет базу данных | func (repo *DelegateRoomUserRepository) RemoveUsersFromRoom(roomID string, userIDs []string) (err error) {
repo.lock.Lock()
defer repo.lock.Unlock()
repo.roomToUsers[roomID], _ = utills.ArrStringRemoveMatched(repo.roomToUsers[roomID], userIDs)
for _, userID := range userIDs {
repo.userToRooms[userID] = utills.Re... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (cs *coreService) RemoveUsersFromRoom(ctx context.Context, roomID string, userIDs []string) error {\n\tif len(userIDs) == 0 {\n\t\treturn errors.New(\"You must provide a list of IDs of the users you want to remove from the room\")\n\t}\n\n\trequestBody, err := common.CreateRequestBody(map[string][]string{\"us... | [
"0.6816861",
"0.65062344",
"0.6442627",
"0.62925935",
"0.61979187",
"0.60379463",
"0.60355437",
"0.6024227",
"0.5956958",
"0.5903233",
"0.58503616",
"0.58283055",
"0.57624197",
"0.57452685",
"0.57353836",
"0.5714347",
"0.56649595",
"0.5653853",
"0.56520337",
"0.56438214",
"0.... | 0.7280887 | 0 |
HasNoZeroDateMode detects if 'NO_ZERO_DATE' mode is set in SQLMode | HasNoZeroDateMode определяет, установлен ли режим 'NO_ZERO_DATE' в SQLMode | func (m SQLMode) HasNoZeroDateMode() bool {
return m&ModeNoZeroDate == ModeNoZeroDate
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (m SQLMode) HasNoZeroInDateMode() bool {\n\treturn m&ModeNoZeroInDate == ModeNoZeroInDate\n}",
"func handleZeroDatetime(ctx sessionctx.Context, col *model.ColumnInfo, casted types.Datum, str string, tmIsInvalid bool) (types.Datum, bool, error) {\n\tsc := ctx.GetSessionVars().StmtCtx\n\ttm := casted.GetMysql... | [
"0.8370375",
"0.6648129",
"0.6429395",
"0.6103841",
"0.6067534",
"0.60144806",
"0.5972668",
"0.59659606",
"0.5952721",
"0.581752",
"0.5757147",
"0.5680389",
"0.55421543",
"0.5540177",
"0.55398583",
"0.55372494",
"0.5504699",
"0.5495986",
"0.5453773",
"0.5431188",
"0.5353636",... | 0.8389681 | 0 |
HasNoZeroInDateMode detects if 'NO_ZERO_IN_DATE' mode is set in SQLMode | HasNoZeroInDateMode определяет, установлен ли режим 'NO_ZERO_IN_DATE' в SQLMode | func (m SQLMode) HasNoZeroInDateMode() bool {
return m&ModeNoZeroInDate == ModeNoZeroInDate
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (m SQLMode) HasNoZeroDateMode() bool {\n\treturn m&ModeNoZeroDate == ModeNoZeroDate\n}",
"func handleZeroDatetime(ctx sessionctx.Context, col *model.ColumnInfo, casted types.Datum, str string, tmIsInvalid bool) (types.Datum, bool, error) {\n\tsc := ctx.GetSessionVars().StmtCtx\n\ttm := casted.GetMysqlTime()... | [
"0.8226056",
"0.65114135",
"0.6298977",
"0.6087926",
"0.6004335",
"0.598781",
"0.5840811",
"0.58336014",
"0.5831829",
"0.57164484",
"0.5673298",
"0.5649568",
"0.563847",
"0.55352277",
"0.5474104",
"0.54274696",
"0.54205644",
"0.53828526",
"0.53690374",
"0.5353925",
"0.5349315... | 0.83616287 | 0 |
HasOnlyFullGroupBy detects if 'ONLY_FULL_GROUP_BY' mode is set in SQLMode | HasOnlyFullGroupBy определяет, включен ли режим 'ONLY_FULL_GROUP_BY' в SQLMode | func (m SQLMode) HasOnlyFullGroupBy() bool {
return m&ModeOnlyFullGroupBy == ModeOnlyFullGroupBy
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (b *SQLBuilder) GroupBy(f ...Field) {\n\tif len(f) == 0 {\n\t\treturn\n\t}\n\tb.w.WriteLine(`GROUP BY ` + b.List(f, false))\n}",
"func (p *basePhysicalAgg) canUse3Stage4MultiDistinctAgg() (can bool, gss expression.GroupingSets) {\n\tif !p.SCtx().GetSessionVars().Enable3StageDistinctAgg || !p.SCtx().GetSessi... | [
"0.56553054",
"0.5512117",
"0.5372012",
"0.53277093",
"0.52755165",
"0.5222883",
"0.5209466",
"0.5177147",
"0.50609916",
"0.50604826",
"0.5038667",
"0.5035624",
"0.5030091",
"0.49950507",
"0.49740505",
"0.49536827",
"0.49143526",
"0.49082112",
"0.48770067",
"0.48748618",
"0.4... | 0.85446185 | 0 |
HasStrictMode detects if 'STRICT_TRANS_TABLES' or 'STRICT_ALL_TABLES' mode is set in SQLMode | HasStrictMode определяет, включено ли в SQLMode режим 'STRICT_TRANS_TABLES' или 'STRICT_ALL_TABLES' | func (m SQLMode) HasStrictMode() bool {
return m&ModeStrictTransTables == ModeStrictTransTables || m&ModeStrictAllTables == ModeStrictAllTables
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func testStrictMode(t *testing.T) {\n\ts := createMysqlSuite(t)\n\tdefer s.TearDownTest(t)\n\tft := *types.NewFieldType(mysql.TypeVarchar)\n\tft.SetCharset(charset.CharsetUTF8MB4)\n\tcol0 := &model.ColumnInfo{ID: 1, Name: model.NewCIStr(\"s0\"), State: model.StatePublic, Offset: 0, FieldType: ft}\n\tft = *types.Ne... | [
"0.71381444",
"0.6786069",
"0.677905",
"0.632158",
"0.58150333",
"0.55805475",
"0.54315794",
"0.53492725",
"0.53282833",
"0.5323271",
"0.5311126",
"0.5271221",
"0.52629155",
"0.52562314",
"0.5226571",
"0.5222946",
"0.51793164",
"0.5176317",
"0.51090443",
"0.510202",
"0.506328... | 0.84627706 | 0 |
HasPipesAsConcatMode detects if 'PIPES_AS_CONCAT' mode is set in SQLMode | HasPipesAsConcatMode определяет, задан ли режим 'PIPES_AS_CONCAT' в SQLMode | func (m SQLMode) HasPipesAsConcatMode() bool {
return m&ModePipesAsConcat == ModePipesAsConcat
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func Concat(args ...interface{}) StringExpression {\n\treturn function(\"CONCAT\", args...)\n}",
"func (obj *misc) IsConcatenation() bool {\n\treturn obj.isConcat\n}",
"func concat(op string, w ...Where) Where {\n\treturn whereFunc(func(table string, b *builder.Builder) {\n\t\tfor i, wi := range w {\n\t\t\tb.O... | [
"0.55058557",
"0.53800243",
"0.510074",
"0.5100126",
"0.50849867",
"0.50202686",
"0.47755167",
"0.476126",
"0.46684408",
"0.46263283",
"0.46239993",
"0.45887488",
"0.4583493",
"0.4560236",
"0.45587108",
"0.4515541",
"0.44893646",
"0.44424635",
"0.4434078",
"0.44272843",
"0.44... | 0.8517532 | 0 |
HasNoUnsignedSubtractionMode detects if 'NO_UNSIGNED_SUBTRACTION' mode is set in SQLMode | HasNoUnsignedSubtractionMode определяет, установлена ли в SQLMode режим 'NO_UNSIGNED_SUBTRACTION' | func (m SQLMode) HasNoUnsignedSubtractionMode() bool {
return m&ModeNoUnsignedSubtraction == ModeNoUnsignedSubtraction
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (m SQLMode) HasHighNotPrecedenceMode() bool {\n\treturn m&ModeHighNotPrecedence == ModeHighNotPrecedence\n}",
"func (col *Column) IsUnsigned() *Column {\n\tcol.unsigned = true\n\n\treturn col\n}",
"func (m SQLMode) HasStrictMode() bool {\n\treturn m&ModeStrictTransTables == ModeStrictTransTables || m&Mode... | [
"0.5667174",
"0.56566095",
"0.53759956",
"0.53759164",
"0.533135",
"0.53133726",
"0.5301727",
"0.52752614",
"0.52083176",
"0.5140238",
"0.5063215",
"0.50374514",
"0.50107604",
"0.4983361",
"0.4973271",
"0.4804595",
"0.48042214",
"0.47673586",
"0.47216284",
"0.47013554",
"0.46... | 0.86102265 | 0 |
HasHighNotPrecedenceMode detects if 'HIGH_NOT_PRECEDENCE' mode is set in SQLMode | HasHighNotPrecedenceMode определяет, задан ли режим 'HIGH_NOT_PRECEDENCE' в SQLMode | func (m SQLMode) HasHighNotPrecedenceMode() bool {
return m&ModeHighNotPrecedence == ModeHighNotPrecedence
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (m SQLMode) HasStrictMode() bool {\n\treturn m&ModeStrictTransTables == ModeStrictTransTables || m&ModeStrictAllTables == ModeStrictAllTables\n}",
"func (m SQLMode) HasNoUnsignedSubtractionMode() bool {\n\treturn m&ModeNoUnsignedSubtraction == ModeNoUnsignedSubtraction\n}",
"func (m SQLMode) HasIgnoreSpac... | [
"0.57723933",
"0.56669754",
"0.5655542",
"0.5482584",
"0.5389157",
"0.5051296",
"0.49713355",
"0.48344916",
"0.4717667",
"0.46884152",
"0.46838924",
"0.46686134",
"0.46460402",
"0.459778",
"0.45775625",
"0.4575635",
"0.4559716",
"0.45343563",
"0.45335206",
"0.45161018",
"0.45... | 0.8285411 | 0 |
HasANSIQuotesMode detects if 'ANSI_QUOTES' mode is set in SQLMode | HasANSIQuotesMode определяет, включен ли режим 'ANSI_QUOTES' в SQLMode | func (m SQLMode) HasANSIQuotesMode() bool {
return m&ModeANSIQuotes == ModeANSIQuotes
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (m SQLMode) HasIgnoreSpaceMode() bool {\n\treturn m&ModeIgnoreSpace == ModeIgnoreSpace\n}",
"func isQuote(env *Env, name string, args []Sexp) Sexp {\n\tif len(args) == 0 {\n\t\tlog.Fatal(\"Error checking quote type\")\n\t}\n\tswitch i := args[0].(type) {\n\tcase SexpSymbol:\n\t\tif i.ofType == QUOTE || i.va... | [
"0.59879845",
"0.5949062",
"0.5948947",
"0.53649014",
"0.52378875",
"0.52378875",
"0.5212278",
"0.51198673",
"0.5118448",
"0.5016137",
"0.501338",
"0.49537468",
"0.4951043",
"0.49361417",
"0.49360025",
"0.49348506",
"0.49245793",
"0.49016112",
"0.4889838",
"0.4879927",
"0.484... | 0.87393385 | 0 |
HasRealAsFloatMode detects if 'REAL_AS_FLOAT' mode is set in SQLMode | HasRealAsFloatMode определяет, задан ли режим 'REAL_AS_FLOAT' в SQLMode | func (m SQLMode) HasRealAsFloatMode() bool {
return m&ModeRealAsFloat == ModeRealAsFloat
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (t numberTypeImpl) IsFloat() bool {\n\tswitch t.baseType {\n\tcase sqltypes.Float32, sqltypes.Float64:\n\t\treturn true\n\t}\n\treturn false\n}",
"func (typeRow *TypeDicRow) IsFloat() bool {\r\n\tswitch strings.ToLower(typeRow.Name) {\r\n\tcase \"float\", \"double\", \"ldouble\", \"time\", \"real\":\r\n\t\t... | [
"0.72291356",
"0.67756224",
"0.67444694",
"0.6682882",
"0.66396064",
"0.6610642",
"0.6569971",
"0.651046",
"0.645512",
"0.64257145",
"0.6404693",
"0.6401425",
"0.63905925",
"0.6384702",
"0.6359545",
"0.6334076",
"0.63232726",
"0.6241127",
"0.6224806",
"0.6211203",
"0.62050277... | 0.87437725 | 0 |
HasPadCharToFullLengthMode detects if 'PAD_CHAR_TO_FULL_LENGTH' mode is set in SQLMode | HasPadCharToFullLengthMode определяет, установлено ли в SQLMode значение режима 'PAD_CHAR_TO_FULL_LENGTH' | func (m SQLMode) HasPadCharToFullLengthMode() bool {
return m&ModePadCharToFullLength == ModePadCharToFullLength
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func HandlePadCharToFullLength(sc *stmtctx.StatementContext, ft *types.FieldType, val types.Datum) (types.Datum, error) {\n\ttrace_util_0.Count(_points_00000, 73)\n\tisChar := (ft.Tp == mysql.TypeString)\n\tisBinary := (isChar && ft.Collate == charset.CollationBin)\n\tisVarchar := (ft.Tp == mysql.TypeVarString || ... | [
"0.75678396",
"0.5858203",
"0.56661546",
"0.55630493",
"0.5533785",
"0.5529032",
"0.55044806",
"0.54051983",
"0.5300546",
"0.521399",
"0.5085152",
"0.5035128",
"0.50299186",
"0.50044894",
"0.5003329",
"0.4995011",
"0.4971002",
"0.49699536",
"0.49517685",
"0.49516135",
"0.4933... | 0.8905224 | 0 |
HasNoBackslashEscapesMode detects if 'NO_BACKSLASH_ESCAPES' mode is set in SQLMode | HasNoBackslashEscapesMode определяет, включен ли режим 'NO_BACKSLASH_ESCAPES' в SQLMode | func (m SQLMode) HasNoBackslashEscapesMode() bool {
return m&ModeNoBackslashEscapes == ModeNoBackslashEscapes
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (o *Obfuscator) SQLLiteralEscapes() bool {\n\treturn atomic.LoadInt32(&o.sqlLiteralEscapes) == 1\n}",
"func (o SecretBackendConnectionPostgresqlOutput) DisableEscaping() pulumi.BoolPtrOutput {\n\treturn o.ApplyT(func(v SecretBackendConnectionPostgresql) *bool { return v.DisableEscaping }).(pulumi.BoolPtrOut... | [
"0.61956495",
"0.5672426",
"0.5670903",
"0.5646926",
"0.54786813",
"0.54786813",
"0.54728115",
"0.5462015",
"0.5450936",
"0.5449782",
"0.5439238",
"0.5395864",
"0.53175443",
"0.53125954",
"0.5310591",
"0.53003204",
"0.5227305",
"0.5213138",
"0.51542014",
"0.51152986",
"0.5076... | 0.8467631 | 0 |
HasIgnoreSpaceMode detects if 'IGNORE_SPACE' mode is set in SQLMode | HasIgnoreSpaceMode определяет, установлено ли в SQLMode режим 'IGNORE_SPACE' | func (m SQLMode) HasIgnoreSpaceMode() bool {
return m&ModeIgnoreSpace == ModeIgnoreSpace
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func isWhitespace(ch rune) bool { return ch == ' ' || ch == '\\t' || ch == '\\n' }",
"func isWhitespace(ch rune) bool { return ch == ' ' || ch == '\\t' || ch == '\\n' }",
"func isWhitespace(ch rune) bool { return ch == ' ' || ch == '\\t' || ch == '\\n' }",
"func (p *Parser) WhiteSpace() bool {\n\n\tany := fa... | [
"0.5968488",
"0.5968488",
"0.5968488",
"0.5930266",
"0.5906047",
"0.5906047",
"0.58914083",
"0.58770776",
"0.5865977",
"0.5865977",
"0.5865977",
"0.5865977",
"0.58523524",
"0.5846369",
"0.58399636",
"0.5827258",
"0.58099455",
"0.5802331",
"0.58016276",
"0.5792261",
"0.5791698... | 0.849208 | 0 |
HasNoAutoCreateUserMode detects if 'NO_AUTO_CREATE_USER' mode is set in SQLMode | HasNoAutoCreateUserMode определяет, включен ли режим 'NO_AUTO_CREATE_USER' в SQLMode | func (m SQLMode) HasNoAutoCreateUserMode() bool {
return m&ModeNoAutoCreateUser == ModeNoAutoCreateUser
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (h *HttpSsoSettings) GetNoAutoUserCreation() bool {\n\tif h == nil || h.NoAutoUserCreation == nil {\n\t\treturn false\n\t}\n\treturn *h.NoAutoUserCreation\n}",
"func (c *CrowdSettings) GetNoAutoUserCreation() bool {\n\tif c == nil || c.NoAutoUserCreation == nil {\n\t\treturn false\n\t}\n\treturn *c.NoAutoUs... | [
"0.61318326",
"0.60941607",
"0.60819876",
"0.55715615",
"0.5507387",
"0.5399038",
"0.5312536",
"0.5297388",
"0.5276171",
"0.5274423",
"0.5200263",
"0.519097",
"0.5185368",
"0.5130719",
"0.51263905",
"0.5114812",
"0.5109735",
"0.5090293",
"0.508854",
"0.5080016",
"0.50656563",... | 0.84291625 | 0 |
HasAllowInvalidDatesMode detects if 'ALLOW_INVALID_DATES' mode is set in SQLMode | HasAllowInvalidDatesMode определяет, задан ли режим 'ALLOW_INVALID_DATES' в SQLMode | func (m SQLMode) HasAllowInvalidDatesMode() bool {
return m&ModeAllowInvalidDates == ModeAllowInvalidDates
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func handleZeroDatetime(ctx sessionctx.Context, col *model.ColumnInfo, casted types.Datum, str string, tmIsInvalid bool) (types.Datum, bool, error) {\n\tsc := ctx.GetSessionVars().StmtCtx\n\ttm := casted.GetMysqlTime()\n\tmode := ctx.GetSessionVars().SQLMode\n\n\tvar (\n\t\tzeroV types.Time\n\t\tzeroT string\n\t)\... | [
"0.5913812",
"0.5766936",
"0.5641972",
"0.55706495",
"0.547398",
"0.5423672",
"0.5206079",
"0.5181613",
"0.5126566",
"0.5124402",
"0.5103544",
"0.5034072",
"0.5007312",
"0.49980432",
"0.49845228",
"0.4954087",
"0.49536106",
"0.4952873",
"0.49078998",
"0.4870012",
"0.48694912"... | 0.80231565 | 0 |
GetSQLMode gets the sql mode for string literal. SQL_mode is a list of different modes separated by commas. The input string must be formatted by 'FormatSQLModeStr' | GetSQLMode получает режим SQL для строкового литерала. SQL_mode — это список различных режимов, разделенных запятыми. Входная строка должна быть сформирована с помощью FormatSQLModeStr | func GetSQLMode(s string) (SQLMode, error) {
strs := strings.Split(s, ",")
var sqlMode SQLMode
for i, length := 0, len(strs); i < length; i++ {
mode, ok := Str2SQLMode[strs[i]]
if !ok && strs[i] != "" {
return sqlMode, newInvalidModeErr(strs[i])
}
sqlMode = sqlMode | mode
}
return sqlMode, nil
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func getSQLMode(statusVars []byte) (mysql.SQLMode, error) {\n\tvars, err := statusVarsToKV(statusVars)\n\tb, ok := vars[QSqlModeCode]\n\n\tif !ok {\n\t\tif err == nil {\n\t\t\t// only happen when this is a dummy event generated by DM\n\t\t\terr = fmt.Errorf(\"Q_SQL_MODE_CODE not found in status_vars %v\", statusVa... | [
"0.6441542",
"0.62548864",
"0.5875687",
"0.57451206",
"0.5490611",
"0.54838395",
"0.54356045",
"0.53441626",
"0.5305227",
"0.5277119",
"0.52751654",
"0.5261392",
"0.5183101",
"0.5148851",
"0.512549",
"0.51153296",
"0.5099979",
"0.50731874",
"0.5040814",
"0.50378644",
"0.49892... | 0.81481594 | 0 |
Str2Priority is used to convert a string to a priority. | Str2Priority используется для преобразования строки в приоритет. | func Str2Priority(val string) PriorityEnum {
val = strings.ToUpper(val)
switch val {
case "NO_PRIORITY":
return NoPriority
case "HIGH_PRIORITY":
return HighPriority
case "LOW_PRIORITY":
return LowPriority
case "DELAYED":
return DelayedPriority
default:
return NoPriority
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func StringToPriority(str string) int {\n\tswitch str {\n\tcase \"Critical\":\n\t\treturn Critical\n\tcase \"High\":\n\t\treturn High\n\tcase \"Medium\":\n\t\treturn Medium\n\tcase \"Low\":\n\t\treturn Low\n\tdefault:\n\t\treturn Low\n\t}\n}",
"func ToPriority(s string) (p Priority, ok bool) {\n\ts = strings.ToU... | [
"0.82953197",
"0.72392666",
"0.6398675",
"0.5791403",
"0.5772629",
"0.576621",
"0.5755638",
"0.5697468",
"0.5684977",
"0.5646343",
"0.56061065",
"0.5605117",
"0.5572294",
"0.55379844",
"0.5531028",
"0.5522406",
"0.5517255",
"0.5490867",
"0.5461865",
"0.54358476",
"0.54330915"... | 0.77278847 | 1 |
UnmarshalJSON parses the config data to the DefaultConfig object. Because some parameters (OpenTime, ClosedDaysOfTheWeek, etc) have their original types and unmarshal methods but it's troublesome for other business logic to use those notgeneral types, so this method parses the data to an auxiliary struct and cast the t... | UnmarshalJSON парсит данные конфигурации в объект DefaultConfig. Поскольку некоторые параметры (OpenTime, ClosedDaysOfTheWeek и т.д.) имеют свои оригинальные типы и методы unmarshal, но использование необщих типов в других бизнес-логиках вызывает трудности, этот метод сначала парсит данные в вспомогательную структуру и... | func (c *DefaultConfig) UnmarshalJSON(input []byte) error {
type Alias DefaultConfig
aux := &struct {
SymbolsUpdateTime CustomTime `json:"symbols_update_time"`
UpdateTime CustomTime `json:"update_time"`
OpenTime CustomTime `json:"openTime"` // deprecated
CloseTime CustomTi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func Unmarshal(data []byte, v interface{}) error {\n\treturn ConfigDefault.Unmarshal(data, v)\n}",
"func Unmarshal(schema Schema, data []byte, v any) error {\n\treturn DefaultConfig.Unmarshal(schema, data, v)\n}",
"func (config *Config) UnmarshalJSON(body []byte) (err error) {\n\tvar configJSON struct {\n\t\tT... | [
"0.63182175",
"0.60798794",
"0.5882239",
"0.5829213",
"0.58212006",
"0.5816292",
"0.58080316",
"0.5611775",
"0.5558663",
"0.55574906",
"0.5507864",
"0.54944205",
"0.5485019",
"0.5482529",
"0.5473168",
"0.54017305",
"0.5394878",
"0.53913075",
"0.5339714",
"0.53381354",
"0.5332... | 0.78416115 | 0 |
UnmarshalJSON parses a string for a day of the week. | UnmarshalJSON парсит строку для дня недели. | func (wd *weekday) UnmarshalJSON(input []byte) error {
s := strings.Trim(string(input), "\"")
if d, ok := daysOfWeek[s]; ok {
*wd = weekday(d)
return nil
}
return errors.Errorf("invalid weekday '%s'", s)
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (w *InnoWeekday) UnmarshalJSON(b []byte) error {\n\tvar dow string\n\tif err := json.Unmarshal(b, &dow); err != nil {\n\t\treturn err\n\t}\n\t*w = InnoWeekday(DayOfWeek[dow])\n\treturn nil\n}",
"func (w *Week) UnmarshalJSON(b []byte) error {\n\tswitch s := string(b); s {\n\tcase `1`, `2`, `3`, `4`, `5`:\n\t... | [
"0.7233931",
"0.68035144",
"0.6664375",
"0.64271617",
"0.6389871",
"0.60552514",
"0.59573275",
"0.58633584",
"0.56584793",
"0.564598",
"0.55318886",
"0.54781157",
"0.5445037",
"0.5438726",
"0.53581256",
"0.5331975",
"0.53302944",
"0.5274132",
"0.5254272",
"0.52389354",
"0.520... | 0.7660935 | 0 |
UserDetails retrieve user queue entry details | UserDetails получает детали записи пользователя в очередь | func UserDetails(clientInstance *client.AdabasAdmin, dbid int, param string, auth runtime.ClientAuthInfoWriter) error {
params := online.NewGetUserQueueDetailParams()
params.Dbid = float64(dbid)
qid, qerr := strconv.Atoi(param)
if qerr != nil {
return qerr
}
params.Queueid = float64(qid)
resp, err := clientIn... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func getUserDetail(req *http.Request) (ud *models.UserDetail) {\n\tif req.ContentLength > 0 {\n\t\tif err := json.NewDecoder(req.Body).Decode(&ud); err != nil {\n\t\t\tlog.Println(\"error trying to decode user detail \", err)\n\t\t\treturn ud\n\t\t}\n\t}\n\tlog.Printf(\"User details [%v]\", ud)\n\treturn ud\n}",
... | [
"0.6232837",
"0.61744744",
"0.60425085",
"0.59084624",
"0.5875294",
"0.58499056",
"0.5736718",
"0.559341",
"0.54441416",
"0.54340196",
"0.54268813",
"0.5375693",
"0.5368159",
"0.53537256",
"0.5293757",
"0.52802",
"0.52791435",
"0.52790385",
"0.5268659",
"0.5261966",
"0.525593... | 0.7574105 | 0 |
CommandQueue display all command queue entries | CommandQueue отображает все записи очереди команд | func CommandQueue(clientInstance *client.AdabasAdmin, dbid int, auth runtime.ClientAuthInfoWriter) error {
params := online.NewGetDatabaseCommandQueueParams()
rfc3339 := true
params.Rfc3339 = &rfc3339
params.Dbid = float64(dbid)
resp, err := clientInstance.Online.GetDatabaseCommandQueue(params, auth)
if err != ni... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func DisplayQueue(ret []Command) {\n\tw := tabwriter.NewWriter(os.Stdout, 2, 2, 4, ' ', 0)\n\n\tdefer w.Flush()\n\n\tshow := func(a, b, c, d interface{}) {\n\t\tfmt.Fprintf(w, \"%v\\t%v\\t%v\\t%v\\n\", a, b, c, d)\n\t}\n\n\tshow(\"HASH\", \"COMMAND\", \"DESCRIPTION\", \"STATUS\")\n\n\tfor _, c := range ret {\n\t\t... | [
"0.7760141",
"0.6652625",
"0.6611176",
"0.6334599",
"0.62886024",
"0.618715",
"0.60144943",
"0.5930474",
"0.5784326",
"0.5762566",
"0.57483506",
"0.5733703",
"0.5733104",
"0.5730854",
"0.5721683",
"0.56112474",
"0.560985",
"0.56081724",
"0.56081724",
"0.55944794",
"0.5581346"... | 0.7103256 | 1 |
HoldQueue display all hold queue entries | HoldQueue отображает все записи в очереди ожидания | func HoldQueue(clientInstance *client.AdabasAdmin, dbid int, auth runtime.ClientAuthInfoWriter) error {
params := online.NewGetDatabaseHoldQueueParams()
rfc3339 := true
params.Rfc3339 = &rfc3339
params.Dbid = float64(dbid)
resp, err := clientInstance.Online.GetDatabaseHoldQueue(params, auth)
if err != nil {
swi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (q *Queue) Display() {\n\telem := q.queue.Front()\n\tfor elem != nil {\n\t\tfmt.Println(elem.Value)\n\t\telem = elem.Next()\n\t}\n}",
"func DisplayQueue(ret []Command) {\n\tw := tabwriter.NewWriter(os.Stdout, 2, 2, 4, ' ', 0)\n\n\tdefer w.Flush()\n\n\tshow := func(a, b, c, d interface{}) {\n\t\tfmt.Fprintf(... | [
"0.6445365",
"0.63507247",
"0.59322816",
"0.59161776",
"0.5807345",
"0.5773143",
"0.57558155",
"0.57536274",
"0.57382315",
"0.56513524",
"0.56317526",
"0.5568718",
"0.55347645",
"0.5427826",
"0.5381198",
"0.535568",
"0.53202236",
"0.5315816",
"0.5259089",
"0.52457434",
"0.519... | 0.72501904 | 0 |
Delete NS record by its DNS domain value | Удалить запись NS по значению DNS-домена | func deleteNsByValue(value string, payload *strings.Reader, c Config) {
var validValue = value
var nsID = 0
if !strings.HasSuffix(".", value) {
validValue += "."
nsID = GetId(validValue, c)
} else {
nsID = GetId(value, c)
}
url := BASE_URL + c.Constellix.Domain + "/records/ns/" + strconv.Itoa(nsID) + ""
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func deleteNsById(nsID string, payload *strings.Reader, c Config) {\n\turl := BASE_URL + c.Constellix.Domain + \"/records/ns/\" + nsID\n\n\tsend(url, DELETE, payload, c)\n\n\tif filepath.Base(url) == \"0\" {\n\t\tfmt.Println(\"Error: Wrong id -> \", url)\n\t} else {\n\t\tfmt.Println(\"Domain record deleted success... | [
"0.73349965",
"0.72168624",
"0.66457784",
"0.6630911",
"0.65485066",
"0.6537258",
"0.65104294",
"0.6501692",
"0.64412254",
"0.64364755",
"0.64296883",
"0.62857825",
"0.6226502",
"0.620469",
"0.618871",
"0.6174125",
"0.6111059",
"0.61061543",
"0.60670036",
"0.605098",
"0.60365... | 0.75104237 | 0 |
Delete NS record by its name | Удалить запись NS по её имени | func deleteNsByName(name string, payload *strings.Reader, c Config) {
nsID := GetIdByName(name, c)
url := BASE_URL + c.Constellix.Domain + "/records/ns/" + strconv.Itoa(nsID) + ""
send(url, DELETE, payload, c)
if filepath.Base(url) == "0" {
fmt.Println("Error: Wrong id -> ", url)
} else {
fmt.Println("Domai... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (iClient *IBloxClient) DeleteCNAMERecord(name, ipAddr, netview, cidr string) {\n\tobj := ibclient.NewRecordCNAME(\n\t\tibclient.RecordCNAME{\n\t\t\tName: name,\n\t\t\tView: netview,\n\t\t\tEa: iClient.ea,\n\t\t},\n\t)\n\tres, err := iClient.getCNAMERecord(obj)\n\t// If error or record doesn't exist, return\... | [
"0.6567878",
"0.6565942",
"0.633063",
"0.62859195",
"0.62643176",
"0.62055933",
"0.6163259",
"0.61351025",
"0.6128934",
"0.61089885",
"0.60666347",
"0.6054383",
"0.60459256",
"0.6019277",
"0.5991292",
"0.597775",
"0.5954871",
"0.59509706",
"0.5929179",
"0.5916825",
"0.5880952... | 0.7333483 | 0 |
Delete NS record by its id | Удалить запись NS по её id | func deleteNsById(nsID string, payload *strings.Reader, c Config) {
url := BASE_URL + c.Constellix.Domain + "/records/ns/" + nsID
send(url, DELETE, payload, c)
if filepath.Base(url) == "0" {
fmt.Println("Error: Wrong id -> ", url)
} else {
fmt.Println("Domain record deleted successfully ", url)
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func deleteRecord(c echo.Context) error {\n\tid, _ := strconv.Atoi(c.Param(\"id\"))\n\tdelete(records, id)\n\treturn c.NoContent(http.StatusNoContent)\n}",
"func (client DataLabelingClient) deleteRecord(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[stri... | [
"0.73538303",
"0.6997496",
"0.69181335",
"0.6876886",
"0.68364143",
"0.6797977",
"0.6763279",
"0.6755305",
"0.6695033",
"0.66903496",
"0.668096",
"0.66743296",
"0.66734433",
"0.6640447",
"0.6619129",
"0.66159034",
"0.6606549",
"0.66063285",
"0.6588125",
"0.6588097",
"0.657458... | 0.74014854 | 0 |
World returns the word world. | Мир возвращает слово мир. | func (g *GreeterEnglish) World() string {
return "World"
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (l *Loader) World() *World {\n\tl.mu.RLock()\n\tdefer l.mu.RUnlock()\n\treturn l.w\n}",
"func (n *Node) World() api.IWorld {\n\treturn n.world\n}",
"func (wp WayPoint) World() context.WorldHandler {\n\treturn wp.world\n}",
"func World(ctx context.Context) (*WorldResponse, error) {\n\tmsg := fmt.Sprintf(... | [
"0.73961955",
"0.7078516",
"0.70608044",
"0.704096",
"0.70377123",
"0.6926203",
"0.68192744",
"0.66385084",
"0.66139096",
"0.6545688",
"0.6507795",
"0.64752394",
"0.64699525",
"0.63772744",
"0.6356447",
"0.6352053",
"0.63135993",
"0.6284382",
"0.62530553",
"0.61733997",
"0.61... | 0.7636975 | 0 |
Init Initializes the SecurityProfile informer | Init Инициализирует информер SecurityProfile | func (spi *SecurityProfileInformer) Init(nsp model.NSPInterface) error {
spi.Nsp = nsp
var err error
// Init stopper
spi.Stopper = make(chan struct{})
// Create custom CRD in k8s if it doesn't exist yet
if err = v1.CreateSecurityProfileCRD(nsp.GetKubeConfig()); err != nil {
return err
}
informerLogger.Debug("... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (p *DummyProfile) Init() error {\n\treturn nil\n}",
"func (userInfo *UserInfo) Init() error {\n\treturn nil\n}",
"func (f *FieldProfile) Init() {\n\tf.MinInt = make(map[string]int64)\n\tf.MaxInt = make(map[string]int64)\n\tf.MinLen = make(map[string]int64)\n\tf.MaxLen = make(map[string]int64)\n\tf.Default... | [
"0.72643477",
"0.6852993",
"0.6446654",
"0.6398271",
"0.62689257",
"0.62124586",
"0.61981773",
"0.6134021",
"0.6094902",
"0.6066088",
"0.6060321",
"0.6041276",
"0.6038694",
"0.6004886",
"0.5975346",
"0.5958717",
"0.595679",
"0.5955895",
"0.594505",
"0.59374017",
"0.5921807",
... | 0.7281567 | 0 |
Start Starts the SecurityProfile informer | Запускает информер SecurityProfile | func (spi *SecurityProfileInformer) Start() error {
go spi.Informer.Informer().Run(spi.Stopper)
informerLogger.Debug("SecurityProfile informer started")
return nil
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func StartProfile(w io.Writer) error {\n\terr := globalProfiler.p.start()\n\tif err != nil {\n\t\treturn err\n\t}\n\tglobalProfiler.w = w\n\tatomic.StoreInt32(&globalProfiler.enabled, 1)\n\treturn nil\n}",
"func StartProfile(p *Profiler, key string) {\n\tif p == nil {\n\t\treturn\n\t}\n\tp.StartProfile(key)\n}",... | [
"0.65285134",
"0.64939946",
"0.6382846",
"0.6251776",
"0.6211772",
"0.6039099",
"0.60192764",
"0.6018386",
"0.60012966",
"0.59362304",
"0.5935871",
"0.5935221",
"0.59307295",
"0.5904543",
"0.5851065",
"0.5836531",
"0.5832877",
"0.5804341",
"0.57825387",
"0.57416946",
"0.57353... | 0.7457242 | 0 |
Stop Stops the SecurityProfile informer | Останавливает информер SecurityProfile | func (spi *SecurityProfileInformer) Stop() error {
close(spi.Stopper)
runtime.HandleCrash()
return nil
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func StopProfile() {\n\tatomic.StoreInt32(&globalProfiler.enabled, 0)\n\tpr := globalProfiler.p.stop()\n\tif pr != nil {\n\t\t_ = pr.Write(globalProfiler.w)\n\t}\n\tglobalProfiler.w = nil\n}",
"func Stop(profile string) error {\n\tcc, err := config.Load(profile)\n\tif err != nil {\n\t\treturn fmt.Errorf(\"failed... | [
"0.73450583",
"0.70881397",
"0.69722193",
"0.6930131",
"0.6912907",
"0.6895815",
"0.6775458",
"0.6668385",
"0.66527957",
"0.6638344",
"0.6601805",
"0.6512256",
"0.64727485",
"0.6433231",
"0.64260095",
"0.64248383",
"0.6416084",
"0.6412739",
"0.63997185",
"0.63990456",
"0.6396... | 0.75348926 | 0 |
onUpdate SecurityProfile update handler | Обработчик обновления SecurityProfile onUpdate | func (spi *SecurityProfileInformer) onUpdate(old *v1.SecurityProfile, new *v1.SecurityProfile) {
// If this SecurityProfile is used locally, update in in the kernel hashmaps
spi.Nsp.DispatchEvent(&model.SecurityProfileUpdatedEvent{
EventBase: model.EventBase{
EventType: model.SecurityProfileUpdatedType,
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (sm *Statemgr) OnSecurityProfileOperUpdate(nodeID string, objinfo *netproto.SecurityProfile) error {\n\tsm.UpdateFirewallProfileStatus(nodeID, objinfo.ObjectMeta.Tenant, objinfo.ObjectMeta.Name, objinfo.ObjectMeta.GenerationID)\n\treturn nil\n}",
"func (sm *Statemgr) OnSecurityProfileUpdateReq(nodeID string... | [
"0.76793617",
"0.750683",
"0.7233263",
"0.71673733",
"0.6893227",
"0.6764657",
"0.67416286",
"0.6623206",
"0.657577",
"0.6519318",
"0.6404569",
"0.63953996",
"0.63524854",
"0.6347188",
"0.6325055",
"0.6323121",
"0.63084346",
"0.6304283",
"0.61996096",
"0.6189867",
"0.61445105... | 0.75439703 | 1 |
LoadSettings gets the relevant settings from the plugin context | LoadSettings получает соответствующие настройки из контекста плагина | func LoadSettings(ctx backend.PluginContext) (*DatasourceSettings, error) {
model := &DatasourceSettings{}
settings := ctx.DataSourceInstanceSettings
err := json.Unmarshal(settings.JSONData, &model)
if err != nil {
return nil, fmt.Errorf("error reading settings: %s", err.Error())
}
return model, nil
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func LoadSettings(ctx backend.PluginContext) (*DatasourceSettings, error) {\n\tmodel := &DatasourceSettings{}\n\n\tsettings := ctx.DataSourceInstanceSettings\n\terr := json.Unmarshal(settings.JSONData, &model)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"error reading settings: %s\", err.Error())\n\t}\n\n\tmod... | [
"0.72158736",
"0.62308687",
"0.6162338",
"0.6140012",
"0.61189824",
"0.6084855",
"0.6061291",
"0.59076136",
"0.5907558",
"0.589246",
"0.589246",
"0.5878979",
"0.5832849",
"0.58122665",
"0.57541615",
"0.5736124",
"0.5719982",
"0.5668884",
"0.56484413",
"0.5609903",
"0.5578986"... | 0.72991824 | 0 |
Takes the result of flatmap.Expand for an array of step adjustments and returns a []autoscaling.StepAdjustment. | Принимает результат flatmap.Expand для массива корректировок шагов и возвращает []autoscaling.StepAdjustment. | func ExpandStepAdjustments(configured []interface{}) ([]*autoscaling.StepAdjustment, error) {
var adjustments []*autoscaling.StepAdjustment
// Loop over our configured step adjustments and create an array
// of aws-sdk-go compatible objects. We're forced to convert strings
// to floats here because there's no way ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func FlattenStepAdjustments(adjustments []*autoscaling.StepAdjustment) []map[string]interface{} {\n\tresult := make([]map[string]interface{}, 0, len(adjustments))\n\tfor _, raw := range adjustments {\n\t\ta := map[string]interface{}{\n\t\t\t\"scaling_adjustment\": aws.Int64Value(raw.ScalingAdjustment),\n\t\t}\n\t\... | [
"0.6933056",
"0.56839454",
"0.56170374",
"0.54817635",
"0.54315895",
"0.5384485",
"0.5343031",
"0.53271675",
"0.5255032",
"0.5253832",
"0.5222788",
"0.51889306",
"0.5176776",
"0.5159237",
"0.5155685",
"0.5109404",
"0.5101826",
"0.51007044",
"0.50971985",
"0.50388354",
"0.5026... | 0.7429155 | 0 |
Flattens step adjustments into a list of map[string]interface. | Преобразует шаги корректировки в список map[string]interface. | func FlattenStepAdjustments(adjustments []*autoscaling.StepAdjustment) []map[string]interface{} {
result := make([]map[string]interface{}, 0, len(adjustments))
for _, raw := range adjustments {
a := map[string]interface{}{
"scaling_adjustment": aws.Int64Value(raw.ScalingAdjustment),
}
if raw.MetricIntervalUp... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func flattenPatchDeploymentPatchConfigPreStepMap(c *Client, i interface{}) map[string]PatchDeploymentPatchConfigPreStep {\n\ta, ok := i.(map[string]interface{})\n\tif !ok {\n\t\treturn map[string]PatchDeploymentPatchConfigPreStep{}\n\t}\n\n\tif len(a) == 0 {\n\t\treturn map[string]PatchDeploymentPatchConfigPreStep... | [
"0.6765291",
"0.6634858",
"0.6297781",
"0.6244933",
"0.6188869",
"0.61728126",
"0.6147888",
"0.6132687",
"0.61211866",
"0.60493267",
"0.60373133",
"0.5997912",
"0.5941682",
"0.5928907",
"0.59228545",
"0.5913746",
"0.58554214",
"0.5854204",
"0.58332294",
"0.5825133",
"0.581725... | 0.75564915 | 0 |
Handle is the handler for the AuthAPI module | Handle — обработчик для модуля AuthAPI | func (authAPI *AuthAPI) Handle(router *http.ServeMux, database *sql.DB) {
authAPI.database = database
authAPI.router = mux.NewRouter()
authAPI.handleCredentialsLogin()
router.Handle(AuthAPIURLStub, authAPI.router)
router.Handle(AuthAPIExtURLStub, authAPI.router)
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func Handle(\n\tauth Authorizer,\n\tfn func(http.ResponseWriter, *http.Request),\n) http.Handler {\n\treturn http.HandlerFunc(HandlerFunc(auth, fn))\n}",
"func Handle(ctx context.Context, w http.ResponseWriter, r *http.Request, a *App) {\n\tauthInfo := auth.FromContext(ctx)\n\tauthInfo.UpdateHeaders(w.Header())\... | [
"0.74763393",
"0.7257803",
"0.71445155",
"0.712392",
"0.70788234",
"0.7068299",
"0.70662105",
"0.70351785",
"0.701611",
"0.6883313",
"0.68541",
"0.6851596",
"0.678339",
"0.67563397",
"0.6740777",
"0.6720019",
"0.66898257",
"0.6686924",
"0.6677875",
"0.6652124",
"0.66367924",
... | 0.73982763 | 1 |
Value returns the value reserved in the funding coin. | Value возвращает значение, зарезервированное в финансовой монете. | func (c *fundingCoin) Value() uint64 {
return c.amt
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (c *SimpleCoin) Value() btcutil.Amount { return c.TxValue }",
"func (c *swapCoin) Value() uint64 {\n\treturn c.dexAtoms\n}",
"func (o *MutualFundHoldingsData) GetValue() float32 {\n\tif o == nil || o.Value == nil {\n\t\tvar ret float32\n\t\treturn ret\n\t}\n\treturn *o.Value\n}",
"func (d *Dropper) GetV... | [
"0.7082064",
"0.69452393",
"0.6746024",
"0.65587443",
"0.6554951",
"0.6537463",
"0.65222275",
"0.6482639",
"0.63960415",
"0.6376385",
"0.63737124",
"0.63737124",
"0.63737124",
"0.63737124",
"0.63737124",
"0.63737124",
"0.63737124",
"0.63737124",
"0.63737124",
"0.63737124",
"0... | 0.7556514 | 0 |
RecoveryID is a byteencoded address and value of a funding coin. RecoveryID satisfies the asset.RecoveryCoin interface, so this ID will be used as input for (asset.Wallet).FundingCoins. | RecoveryID — это байтовое представление адреса и значения финансового монеты. RecoveryID удовлетворяет интерфейсу asset.RecoveryCoin, поэтому этот идентификатор будет использоваться как входные данные для (asset.Wallet).FundingCoins. | func (c *fundingCoin) RecoveryID() dex.Bytes {
b := make([]byte, fundingCoinIDSize)
copy(b[:20], c.addr[:])
binary.BigEndian.PutUint64(b[20:28], c.amt)
return b
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (c *tokenFundingCoin) RecoveryID() dex.Bytes {\n\tb := make([]byte, tokenFundingCoinIDSize)\n\tcopy(b[:20], c.addr[:])\n\tbinary.BigEndian.PutUint64(b[20:28], c.amt)\n\tbinary.BigEndian.PutUint64(b[28:36], c.fees)\n\treturn b\n}",
"func (o A2AProtectedManagedDiskDetailsResponseOutput) RecoveryDiskId() pulum... | [
"0.83433664",
"0.6084071",
"0.5973956",
"0.59072834",
"0.5775342",
"0.5683212",
"0.5625814",
"0.554405",
"0.55157125",
"0.5473954",
"0.5453893",
"0.53995377",
"0.5324704",
"0.52846575",
"0.52645713",
"0.52235436",
"0.5180631",
"0.5134775",
"0.5131671",
"0.50896984",
"0.508313... | 0.8298621 | 1 |
decodeFundingCoin decodes a byte slice into an fundingCoinID struct. | decodeFundingCoin декодирует срез байтов в структуру fundingCoinID. | func decodeFundingCoin(coinID []byte) (*fundingCoin, error) {
if len(coinID) != fundingCoinIDSize {
return nil, fmt.Errorf("decodeFundingCoin: length expected %v, got %v",
fundingCoinIDSize, len(coinID))
}
var address [20]byte
copy(address[:], coinID[:20])
return &fundingCoin{
addr: address,
amt: binary... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func decodeFundingCoinID(coinID []byte) (*fundingCoinID, error) {\n\tif len(coinID) != fundingCoinIDSize {\n\t\treturn nil, fmt.Errorf(\"decodeFundingCoinID: length expected %v, got %v\",\n\t\t\tfundingCoinIDSize, len(coinID))\n\t}\n\n\tvar address [20]byte\n\tcopy(address[:], coinID[:20])\n\treturn &fundingCoinID... | [
"0.84231406",
"0.7647511",
"0.7141704",
"0.7084022",
"0.6648124",
"0.6648124",
"0.5902567",
"0.5902567",
"0.58713776",
"0.5602419",
"0.552275",
"0.55217844",
"0.55094326",
"0.54963106",
"0.5452849",
"0.5357706",
"0.52767634",
"0.52666616",
"0.5238471",
"0.5226415",
"0.5203622... | 0.8372549 | 1 |
createFundingCoin constructs a new fundingCoinID for the provided account address and amount in Gwei. | createFundingCoin создает новый идентификатор fundingCoin для указанного адреса аккаунта и суммы в Грейве. | func createFundingCoin(address common.Address, amount uint64) *fundingCoin {
return &fundingCoin{
addr: address,
amt: amount,
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func createFundingCoinID(address common.Address, amount uint64) *fundingCoinID {\n\treturn &fundingCoinID{\n\t\tAddress: address,\n\t\tAmount: amount,\n\t}\n}",
"func CreateAccount(address string, quarkAmount uint) (hash string, err error) {\n\tif quarkAmount > maxQuarks {\n\t\treturn \"\", ErrInvalidCreateAmou... | [
"0.8088337",
"0.6728707",
"0.6579178",
"0.65382123",
"0.64733255",
"0.6306525",
"0.62969047",
"0.61604756",
"0.615635",
"0.61109287",
"0.61049384",
"0.60896677",
"0.60533875",
"0.60533875",
"0.60111797",
"0.5954883",
"0.5954526",
"0.59530544",
"0.5938386",
"0.59177023",
"0.59... | 0.8174756 | 0 |
decodeTokenFundingCoin decodes a byte slice into an tokenFundingCoinID. | decodeTokenFundingCoin декодирует срез байтов в tokenFundingCoinID. | func decodeTokenFundingCoin(coinID []byte) (*tokenFundingCoin, error) {
if len(coinID) != tokenFundingCoinIDSize {
return nil, fmt.Errorf("decodeTokenFundingCoin: length expected %v, got %v",
tokenFundingCoinIDSize, len(coinID))
}
var address [20]byte
copy(address[:], coinID[:20])
return &tokenFundingCoin{
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func decodeFundingCoinID(coinID []byte) (*fundingCoinID, error) {\n\tif len(coinID) != fundingCoinIDSize {\n\t\treturn nil, fmt.Errorf(\"decodeFundingCoinID: length expected %v, got %v\",\n\t\t\tfundingCoinIDSize, len(coinID))\n\t}\n\n\tvar address [20]byte\n\tcopy(address[:], coinID[:20])\n\treturn &fundingCoinID... | [
"0.75587547",
"0.74109536",
"0.6551182",
"0.6543139",
"0.5765304",
"0.5765304",
"0.5510699",
"0.5303154",
"0.5296912",
"0.52796704",
"0.5182376",
"0.5163258",
"0.5145577",
"0.5145577",
"0.51287365",
"0.510413",
"0.50984967",
"0.505249",
"0.5038786",
"0.50054485",
"0.50013936"... | 0.8401423 | 0 |
createTokenFundingCoin constructs a new tokenFundingCoin for the provided account address, value, and fees in gwei. | createTokenFundingCoin создает новый tokenFundingCoin для предоставленного адреса аккаунта, значения и комиссий в гави. | func createTokenFundingCoin(address common.Address, tokenValue, fees uint64) *tokenFundingCoin {
return &tokenFundingCoin{
addr: address,
amt: tokenValue,
fees: fees,
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func createFundingCoin(address common.Address, amount uint64) *fundingCoin {\n\treturn &fundingCoin{\n\t\taddr: address,\n\t\tamt: amount,\n\t}\n}",
"func newTx(t *testing.T, nonce, totalAmount, fee uint64) *types.Transaction {\n\tinner := types.InnerTransaction{\n\t\tAccountNonce: nonce,\n\t\tRecipient: typ... | [
"0.69182605",
"0.604568",
"0.6040604",
"0.5981004",
"0.5937574",
"0.5924449",
"0.59152853",
"0.5899967",
"0.5891179",
"0.584104",
"0.5833688",
"0.5744425",
"0.5728572",
"0.5722755",
"0.5699103",
"0.56662744",
"0.5665291",
"0.566393",
"0.5651559",
"0.5651254",
"0.5647998",
"... | 0.8263739 | 0 |
Copy returns a new Text struct with the same values as the Text it was called from. Except the Content field, that's empty. | Copy возвращает новый Text-структуру с теми же значениями, что и Text, из которого был вызван. За исключением поля Content, которое пусто. | func (txt Text) Copy() Text {
var newText Text
if txt.Bold {
newText.Bold = true
}
if txt.Italic {
newText.Italic = true
}
if txt.Code {
newText.Code = true
}
if txt.Strike {
newText.Strike = true
}
newText.HREF = txt.HREF[:]
return newText
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (t *Text) Copy() device.Resulter {\n\tif t == nil {\n\t\treturn nil\n\t}\n\treturn &Text{Text: t.Text}\n}",
"func (t *Text) DeepCopy() Element {\n\trgaTreeSplit := NewRGATreeSplit(InitialTextNode())\n\n\tcurrent := rgaTreeSplit.InitialHead()\n\tfor _, node := range t.Nodes() {\n\t\tcurrent = rgaTreeSplit.In... | [
"0.74128425",
"0.6974251",
"0.6896577",
"0.6396208",
"0.6180237",
"0.6164815",
"0.61351514",
"0.60927576",
"0.59920144",
"0.5983566",
"0.592794",
"0.58795464",
"0.5876261",
"0.5870472",
"0.5849372",
"0.5810182",
"0.58094645",
"0.57389665",
"0.5722488",
"0.5700991",
"0.5700090... | 0.78578055 | 0 |
newFeedService returns a new BoardService. | newFeedService возвращает новый BoardService. | func newBoardService(sling *sling.Sling) *BoardService {
return &BoardService{
sling: sling,
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func NewBoardService(settings *config.Settings) *BoardService {\n\tbrd := &BoardService{\n\t\tboards: []domain.Board{},\n\t\tSettings: settings,\n\t}\n\tif err := brd.read(settings.BoardsPath); err != nil {\n\t\tlog.Println(\"Error reading boards:\", err)\n\t}\n\treturn brd\n}",
"func NewBoardService(dao daos.... | [
"0.6719757",
"0.6419366",
"0.6400057",
"0.63199586",
"0.6150302",
"0.6110697",
"0.5925688",
"0.59092116",
"0.5908589",
"0.5904497",
"0.5849958",
"0.5836222",
"0.5827284",
"0.57843095",
"0.57813245",
"0.57773834",
"0.575127",
"0.5735819",
"0.5732295",
"0.57089144",
"0.56772",
... | 0.7583463 | 0 |
AddEntry adds one entry to one or more existing boards. | AddEntry добавляет одну запись в один или несколько существующих досок. | func (s *BoardService) AddEntry(BoardIDs []string, entryID string) (*http.Response, error) {
bodyJSON := &struct {
EntryID string `json:"entryId,omitempty"`
}{
EntryID: entryID,
}
apiError := new(APIError)
resp, err := s.sling.New().Put("tags/"+url.PathEscape(strings.Join(BoardIDs, ","))).BodyJSON(bodyJSON).... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (client *SBClient) AddEntry(entry string) error {\n\troomName := client.config.Room\n\theaders := make(map[string]string)\n\theaders[\"Entry-Text\"] = entry\n\tresponse, err := client.call(http.MethodPost, \"/gameplay/\"+roomName, nil, headers)\n\tif err != nil {\n\t\treturn fmt.Errorf(\"error during http req... | [
"0.68316865",
"0.6746522",
"0.6686015",
"0.66283274",
"0.66154575",
"0.65606016",
"0.6551879",
"0.64789283",
"0.64544916",
"0.6450655",
"0.639096",
"0.6351484",
"0.627345",
"0.6234307",
"0.62231815",
"0.61505634",
"0.6142842",
"0.61411375",
"0.6128632",
"0.61141425",
"0.61083... | 0.758625 | 0 |
AddMultipleEntries adds one or more entries to one or more existing boards. | AddMultipleEntries добавляет одну или несколько записей на один или несколько существующих досках. | func (s *BoardService) AddMultipleEntries(BoardIDs []string, entryIDs []string) (*http.Response, error) {
bodyJSON := &struct {
EntryIds []string `json:"entryIds,omitempty"`
}{
EntryIds: entryIDs,
}
apiError := new(APIError)
resp, err := s.sling.New().Put("tags/"+url.PathEscape(strings.Join(BoardIDs, ","))).... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (r *NewsFeedRepository) AddEntries(ctx context.Context, entries []*newsfeed.Entry) error {\n\tquery := `\n\t\tINSERT INTO newsfeed\n\t\t(user_id, document_id, created_at)\n\t\tVALUES\n\t\t%s\n\t`\n\tp := getMultiInsertPlacements(len(entries), 3)\n\ta := getFeedEntriesParameters(entries)\n\n\t_, err := r.db.Ex... | [
"0.6170258",
"0.6089603",
"0.60135806",
"0.57984656",
"0.57861674",
"0.57674867",
"0.5760889",
"0.5745432",
"0.5716209",
"0.57028496",
"0.5702722",
"0.5677012",
"0.5675292",
"0.55914074",
"0.55886495",
"0.55641985",
"0.5549496",
"0.5527229",
"0.5521827",
"0.5516046",
"0.54840... | 0.82791626 | 0 |
Delete deletes one or more existing boards. | Delete удаляет один или несколько существующих досок. | func (s *BoardService) Delete(boardIDs []string) (*http.Response, error) {
apiError := new(APIError)
resp, err := s.sling.New().Delete("tags/"+url.PathEscape(strings.Join(boardIDs, ","))).Receive(nil, apiError)
return resp, relevantError(err, apiError)
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (o *Board) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error) {\n\tif o == nil {\n\t\treturn 0, errors.New(\"model: no Board provided for delete\")\n\t}\n\n\tif err := o.doBeforeDeleteHooks(ctx, exec); err != nil {\n\t\treturn 0, err\n\t}\n\n\targs := queries.ValuesFromMapping(reflect.Indir... | [
"0.69330186",
"0.6714629",
"0.64691085",
"0.6098576",
"0.60093844",
"0.5973651",
"0.57029617",
"0.5677471",
"0.56718075",
"0.5669576",
"0.5659319",
"0.5562686",
"0.5502454",
"0.54067844",
"0.5329192",
"0.5317778",
"0.52946764",
"0.5265963",
"0.5223571",
"0.5216753",
"0.521196... | 0.7070303 | 0 |
DeleteEntry deletes one entry from one or more existing boards. | DeleteEntry удаляет одну запись из одного или нескольких существующих досок. | func (s *BoardService) DeleteEntry(BoardIDs []string, entryID string) (*http.Response, error) {
bodyJSON := &struct {
EntryID string `json:"entryId,omitempty"`
}{
EntryID: entryID,
}
apiError := new(APIError)
resp, err := s.sling.New().Delete("tags/"+url.PathEscape(strings.Join(BoardIDs, ","))).BodyJSON(body... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (db *MemDb) DeleteEntry(key string) {\n\tlog.Println(\"DeleteEntry\", key)\n\n\tdb.DeleteGroupEntry(\"\", key)\n}",
"func DeleteEntry(pKey int, db *gorm.DB) {\n\tfmt.Println(pKey)\n\tdb.Delete(&Entry{}, pKey)\n}",
"func EntryDelete(opts EntryOpts) error {\n\tentries, err, stderr := getCronEntries(opts)\n\... | [
"0.69203144",
"0.6792956",
"0.6768249",
"0.6765464",
"0.6715999",
"0.6708745",
"0.6668839",
"0.6655625",
"0.6638685",
"0.6562257",
"0.6548033",
"0.6497576",
"0.6430557",
"0.6428571",
"0.6423033",
"0.6381899",
"0.63177425",
"0.6261717",
"0.6227354",
"0.6177144",
"0.6139302",
... | 0.7964585 | 0 |
DeleteMultipleEntries deletes one or more entries from one or more existing boards. | DeleteMultipleEntries удаляет одну или несколько записей с одного или нескольких существующих досок. | func (s *BoardService) DeleteMultipleEntries(BoardIDs []string, entryIDs []string) (*http.Response, error) {
bodyJSON := &struct {
EntryIds []string `json:"entryIds,omitempty"`
}{
EntryIds: entryIDs,
}
apiError := new(APIError)
resp, err := s.sling.New().Delete("tags/"+url.PathEscape(strings.Join(BoardIDs, "... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (h *Handler) DeleteEntries(w http.ResponseWriter, r *http.Request, ps httprouter.Params) {\n\t// Make sure session still valid\n\th.auth.MustAuthenticateUser(r)\n\n\t// Decode request\n\tvar ids []int\n\terr := json.NewDecoder(r.Body).Decode(&ids)\n\tcheckError(err)\n\n\t// Start transaction\n\t// Make sure t... | [
"0.7129575",
"0.64574975",
"0.6167691",
"0.61338776",
"0.600981",
"0.5890097",
"0.58407915",
"0.58175015",
"0.5813697",
"0.5774256",
"0.5764174",
"0.57505935",
"0.57422537",
"0.5737383",
"0.5724166",
"0.57117087",
"0.5698028",
"0.565721",
"0.56508166",
"0.56451756",
"0.561477... | 0.8542977 | 0 |
Details returns details about a board. | Details возвращает сведения о доске. | func (s *BoardService) Details(boardID string) (*BoardDetailResponse, *http.Response, error) {
encodedResponse := make([]map[string]interface{}, 0)
decodedResponse := new(BoardDetailResponse)
apiError := new(APIError)
resp, err := s.sling.New().Get("boards/"+url.PathEscape(boardID)).Receive(&encodedResponse, apiEr... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func Info() BaseBoard {\n\tbaseboard, err := ghw.Baseboard()\n\tif err != nil {\n\t\tfmt.Printf(\"Error getting product info: %v\", err)\n\t}\n\treturn BaseBoard{\n\t\tVendor: baseboard.Vendor,\n\t\tAssetTag: baseboard.AssetTag,\n\t\tSerialNumber: baseboard.SerialNumber,\n\t\tVersion: baseboard.Vers... | [
"0.62864447",
"0.6065344",
"0.60006106",
"0.58561224",
"0.58390796",
"0.58044344",
"0.5763337",
"0.57586044",
"0.5751973",
"0.5700612",
"0.5691844",
"0.5686117",
"0.5682609",
"0.5682392",
"0.5680319",
"0.5673327",
"0.56470126",
"0.56463915",
"0.55986243",
"0.55600613",
"0.555... | 0.74786115 | 0 |
UploadCoverImage uploads a new cover image for an existing board. | UploadCoverImage загружает новый обложочный изображение для существующей доски. | func (s *BoardService) UploadCoverImage(boardID string, coverImage io.Reader) (*BoardUploadCoverImageResponse, *http.Response, error) {
body, contentType, err := mime.CreateMultipartMIMEAttachment(coverImage)
if err != nil {
return nil, nil, err
}
encodedResponse := make([]map[string]interface{}, 0)
decodedResp... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func UpdateCoverAPI(w http.ResponseWriter, r *http.Request) {\n\tfile, handler, err := r.FormFile(\"cover\")\n\n\tvar extension = tools.GetExtension(handler.Filename)\n\n\tvar id = strconv.Itoa(int(middlew.IDUsuario))\n\n\tvar archivo string = \"uploads/covers/\" + id + \"-\" + middlew.Username + \".\" + extension... | [
"0.5690978",
"0.5593112",
"0.5521259",
"0.5377795",
"0.53713155",
"0.5313939",
"0.5117988",
"0.5065991",
"0.50104195",
"0.5007211",
"0.4999661",
"0.4996211",
"0.49158025",
"0.48561",
"0.48518842",
"0.48405692",
"0.4824553",
"0.48045886",
"0.48018578",
"0.47900888",
"0.4776066... | 0.7721418 | 0 |
RunVolumeQuery queries BigQuery for the volume of assets over the specified corridor and returns the results | RunVolumeQuery запрашивает у BigQuery объем активов в указанном коридоре и возвращает результаты | func RunVolumeQuery(asset Asset, volumeFrom bool, startUnixTimestamp, endUnixTimestamp, aggregateBy string, client *bigquery.Client) ([]VolumeResult, error) {
query := createVolumeQuery(asset, volumeFrom, startUnixTimestamp, endUnixTimestamp, aggregateBy)
it, err := runQuery(query, client)
if err != nil {
return n... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (volumeService Service) QueryVolumes(queryParameters *QueryParameters) ([]Response, error) {\n\tvolumesContainer := volumesResponse{}\n\terr := volumeService.queryVolumes(false /*includeDetails*/, &volumesContainer, queryParameters)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\treturn volumesContainer.Vol... | [
"0.5445938",
"0.52377886",
"0.5204298",
"0.5136511",
"0.5124792",
"0.51123863",
"0.5112245",
"0.49972367",
"0.49674076",
"0.49402845",
"0.48979104",
"0.48817298",
"0.48711815",
"0.4866479",
"0.4858121",
"0.48578903",
"0.48532462",
"0.4849372",
"0.48399466",
"0.48337623",
"0.4... | 0.75815207 | 0 |