query
stringlengths
7
3.85k
document
stringlengths
11
430k
metadata
dict
negatives
listlengths
0
101
negative_scores
listlengths
0
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
EndpointConfig indicates an expected call of EndpointConfig
func (mr *MockProvidersMockRecorder) EndpointConfig() *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EndpointConfig", reflect.TypeOf((*MockProviders)(nil).EndpointConfig)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (mr *MockClientMockRecorder) EndpointConfig() *gomock.Call {\n\tmr.mock.ctrl.T.Helper()\n\treturn mr.mock.ctrl.RecordCallWithMethodType(mr.mock, \"EndpointConfig\", reflect.TypeOf((*MockClient)(nil).EndpointConfig))\n}", "func (m *MockClient) EndpointConfig() fab.EndpointConfig {\n\tm.ctrl.T.Helper()\n\tret...
[ "0.7167553", "0.6726208", "0.67124325", "0.66572237", "0.5858098", "0.58116376", "0.5778302", "0.57659733", "0.5761034", "0.5759742", "0.57112086", "0.5677339", "0.5649133", "0.5614298", "0.56138974", "0.55987", "0.5568511", "0.5566935", "0.5559191", "0.5552176", "0.55307144"...
0.7092974
1
GetMetrics mocks base method
func (m *MockProviders) GetMetrics() *metrics.ClientMetrics { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetMetrics") ret0, _ := ret[0].(*metrics.ClientMetrics) return ret0 }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (m *MockTaskManager) GetMetrics() handler.Metric {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"GetMetrics\")\n\tret0, _ := ret[0].(handler.Metric)\n\treturn ret0\n}", "func MockMetrics() []telegraf.Metric {\n\tmetrics := make([]telegraf.Metric, 0)\n\t// Create a new point batch\n\tmetrics = append(metri...
[ "0.7650577", "0.7016764", "0.70125824", "0.6981954", "0.69156355", "0.68423605", "0.6813142", "0.6613567", "0.6547792", "0.64580333", "0.63285154", "0.63118887", "0.624346", "0.6230752", "0.61920655", "0.6130787", "0.6118216", "0.6095558", "0.60732526", "0.6055256", "0.604511...
0.6705235
7
GetMetrics indicates an expected call of GetMetrics
func (mr *MockProvidersMockRecorder) GetMetrics() *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMetrics", reflect.TypeOf((*MockProviders)(nil).GetMetrics)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (mr *MockTaskManagerMockRecorder) GetMetrics() *gomock.Call {\n\tmr.mock.ctrl.T.Helper()\n\treturn mr.mock.ctrl.RecordCallWithMethodType(mr.mock, \"GetMetrics\", reflect.TypeOf((*MockTaskManager)(nil).GetMetrics))\n}", "func (mr *MockClientMockRecorder) GetMetrics() *gomock.Call {\n\tmr.mock.ctrl.T.Helper()...
[ "0.70336074", "0.69020057", "0.6899806", "0.6739893", "0.6642232", "0.6608507", "0.65390295", "0.65256894", "0.64755845", "0.646324", "0.64111966", "0.64071107", "0.6383326", "0.6328049", "0.62772614", "0.6275577", "0.6178393", "0.6135223", "0.6065064", "0.6054249", "0.602294...
0.6723411
4
IdentityConfig mocks base method
func (m *MockProviders) IdentityConfig() msp.IdentityConfig { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "IdentityConfig") ret0, _ := ret[0].(msp.IdentityConfig) return ret0 }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (m *MockClient) IdentityConfig() msp.IdentityConfig {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"IdentityConfig\")\n\tret0, _ := ret[0].(msp.IdentityConfig)\n\treturn ret0\n}", "func (m *MockChoriaProvider) Identity() string {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"Identity\")\n\tret0, _ := re...
[ "0.6737324", "0.60256", "0.586345", "0.5767175", "0.5641922", "0.56070125", "0.55962443", "0.5590909", "0.5563468", "0.5516428", "0.54697424", "0.54697424", "0.5467099", "0.5426291", "0.5393712", "0.5386777", "0.53707427", "0.5324358", "0.5313978", "0.53044486", "0.5262091", ...
0.6787677
0
IdentityConfig indicates an expected call of IdentityConfig
func (mr *MockProvidersMockRecorder) IdentityConfig() *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IdentityConfig", reflect.TypeOf((*MockProviders)(nil).IdentityConfig)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (mr *MockClientMockRecorder) IdentityConfig() *gomock.Call {\n\tmr.mock.ctrl.T.Helper()\n\treturn mr.mock.ctrl.RecordCallWithMethodType(mr.mock, \"IdentityConfig\", reflect.TypeOf((*MockClient)(nil).IdentityConfig))\n}", "func (m *MockProviders) IdentityConfig() msp.IdentityConfig {\n\tm.ctrl.T.Helper()\n\t...
[ "0.69043285", "0.59411687", "0.5913649", "0.5871216", "0.5865579", "0.5274517", "0.5225483", "0.5223157", "0.51497453", "0.50445426", "0.50436527", "0.5038403", "0.50058174", "0.5002979", "0.4980852", "0.49727315", "0.49639088", "0.4956983", "0.49538288", "0.4951847", "0.4931...
0.69439846
0
IdentityManager mocks base method
func (m *MockProviders) IdentityManager(arg0 string) (msp.IdentityManager, bool) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "IdentityManager", arg0) ret0, _ := ret[0].(msp.IdentityManager) ret1, _ := ret[1].(bool) return ret0, ret1 }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (m *MockClient) IdentityManager(arg0 string) (msp.IdentityManager, bool) {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"IdentityManager\", arg0)\n\tret0, _ := ret[0].(msp.IdentityManager)\n\tret1, _ := ret[1].(bool)\n\treturn ret0, ret1\n}", "func TestNewIdentityManager(t *testing.T) {\n\tt.Run(\"success...
[ "0.65093976", "0.62010235", "0.60594493", "0.59081554", "0.5871026", "0.56601584", "0.55710304", "0.55710304", "0.5517578", "0.54584026", "0.5454241", "0.5450888", "0.54272795", "0.54178536", "0.5386579", "0.5373759", "0.5366716", "0.5348325", "0.5348325", "0.53374684", "0.53...
0.6485713
1
IdentityManager indicates an expected call of IdentityManager
func (mr *MockProvidersMockRecorder) IdentityManager(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IdentityManager", reflect.TypeOf((*MockProviders)(nil).IdentityManager), arg0) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (mr *MockClientMockRecorder) IdentityManager(arg0 interface{}) *gomock.Call {\n\tmr.mock.ctrl.T.Helper()\n\treturn mr.mock.ctrl.RecordCallWithMethodType(mr.mock, \"IdentityManager\", reflect.TypeOf((*MockClient)(nil).IdentityManager), arg0)\n}", "func (c *Provider) IdentityManager(orgName string) (msp.Ident...
[ "0.6893613", "0.62998694", "0.5792427", "0.57147837", "0.550829", "0.5505529", "0.5474895", "0.5283069", "0.5260831", "0.5145219", "0.51250386", "0.5115499", "0.5110014", "0.5110014", "0.5074017", "0.49268156", "0.49200475", "0.49072677", "0.4907088", "0.490103", "0.4892025",...
0.68559355
1
InfraProvider mocks base method
func (m *MockProviders) InfraProvider() fab.InfraProvider { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "InfraProvider") ret0, _ := ret[0].(fab.InfraProvider) return ret0 }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (m *MockClient) InfraProvider() fab.InfraProvider {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"InfraProvider\")\n\tret0, _ := ret[0].(fab.InfraProvider)\n\treturn ret0\n}", "func (m *MockProvider) Provide(arg0 string) blobclient.Client {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"Provide\", arg0)\...
[ "0.680102", "0.61172336", "0.5651182", "0.5620679", "0.5540909", "0.5528276", "0.54399544", "0.53394455", "0.53289324", "0.5326502", "0.53053826", "0.5295907", "0.5289515", "0.52590674", "0.5251287", "0.5249962", "0.52412957", "0.52379525", "0.51799697", "0.51713246", "0.5155...
0.66950154
1
InfraProvider indicates an expected call of InfraProvider
func (mr *MockProvidersMockRecorder) InfraProvider() *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InfraProvider", reflect.TypeOf((*MockProviders)(nil).InfraProvider)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (mr *MockClientMockRecorder) InfraProvider() *gomock.Call {\n\tmr.mock.ctrl.T.Helper()\n\treturn mr.mock.ctrl.RecordCallWithMethodType(mr.mock, \"InfraProvider\", reflect.TypeOf((*MockClient)(nil).InfraProvider))\n}", "func (c *Provider) InfraProvider() fab.InfraProvider {\n\treturn c.infraProvider\n}", "...
[ "0.693289", "0.6662321", "0.6476766", "0.63881636", "0.61153394", "0.5661946", "0.56285894", "0.54785734", "0.5444923", "0.53784674", "0.53772527", "0.534679", "0.53375566", "0.5255437", "0.52410465", "0.52378464", "0.52251965", "0.5223927", "0.5214554", "0.5169369", "0.51032...
0.6767527
1
LocalDiscoveryProvider mocks base method
func (m *MockProviders) LocalDiscoveryProvider() fab.LocalDiscoveryProvider { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "LocalDiscoveryProvider") ret0, _ := ret[0].(fab.LocalDiscoveryProvider) return ret0 }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (m *MockClient) LocalDiscoveryProvider() fab.LocalDiscoveryProvider {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"LocalDiscoveryProvider\")\n\tret0, _ := ret[0].(fab.LocalDiscoveryProvider)\n\treturn ret0\n}", "func (c *Provider) LocalDiscoveryProvider() fab.LocalDiscoveryProvider {\n\treturn c.localDis...
[ "0.7341058", "0.632302", "0.5986372", "0.58804214", "0.5836367", "0.56410253", "0.5597734", "0.5465775", "0.5429311", "0.54236996", "0.5394687", "0.53897685", "0.5385342", "0.53083503", "0.5291153", "0.5270716", "0.5252473", "0.52352184", "0.5203148", "0.5182315", "0.51554424...
0.7134569
1
LocalDiscoveryProvider indicates an expected call of LocalDiscoveryProvider
func (mr *MockProvidersMockRecorder) LocalDiscoveryProvider() *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LocalDiscoveryProvider", reflect.TypeOf((*MockProviders)(nil).LocalDiscoveryProvider)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (mr *MockClientMockRecorder) LocalDiscoveryProvider() *gomock.Call {\n\tmr.mock.ctrl.T.Helper()\n\treturn mr.mock.ctrl.RecordCallWithMethodType(mr.mock, \"LocalDiscoveryProvider\", reflect.TypeOf((*MockClient)(nil).LocalDiscoveryProvider))\n}", "func (c *Provider) LocalDiscoveryProvider() fab.LocalDiscovery...
[ "0.71185005", "0.70378065", "0.6612463", "0.6476195", "0.55475986", "0.5541227", "0.5527965", "0.55172056", "0.5478023", "0.5338072", "0.5255968", "0.5243303", "0.51792115", "0.5099424", "0.5093659", "0.5090468", "0.5076508", "0.5007823", "0.500113", "0.49984255", "0.4971726"...
0.7020587
2
SigningManager mocks base method
func (m *MockProviders) SigningManager() core.SigningManager { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "SigningManager") ret0, _ := ret[0].(core.SigningManager) return ret0 }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (m *MockClient) SigningManager() core.SigningManager {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"SigningManager\")\n\tret0, _ := ret[0].(core.SigningManager)\n\treturn ret0\n}", "func (pc *MockProviderContext) SigningManager() fab.SigningManager {\n\treturn pc.signingManager\n}", "func NewMockSigner...
[ "0.6744976", "0.6281368", "0.61853397", "0.61265033", "0.6016525", "0.592078", "0.5888198", "0.5882686", "0.5746892", "0.5725966", "0.56851", "0.56679803", "0.5576283", "0.55425304", "0.54525506", "0.5445765", "0.5445765", "0.5444539", "0.5439745", "0.54370964", "0.5416044", ...
0.6785916
0
SigningManager indicates an expected call of SigningManager
func (mr *MockProvidersMockRecorder) SigningManager() *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SigningManager", reflect.TypeOf((*MockProviders)(nil).SigningManager)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (mr *MockClientMockRecorder) SigningManager() *gomock.Call {\n\tmr.mock.ctrl.T.Helper()\n\treturn mr.mock.ctrl.RecordCallWithMethodType(mr.mock, \"SigningManager\", reflect.TypeOf((*MockClient)(nil).SigningManager))\n}", "func (pc *MockProviderContext) SigningManager() fab.SigningManager {\n\treturn pc.sign...
[ "0.7177863", "0.6207512", "0.6117189", "0.6066826", "0.59165514", "0.56492317", "0.5569576", "0.55575526", "0.5550145", "0.55306005", "0.552737", "0.55094844", "0.5454164", "0.54317886", "0.5427068", "0.5407418", "0.5390146", "0.5378672", "0.53569645", "0.53116786", "0.530559...
0.7240038
0
UserStore mocks base method
func (m *MockProviders) UserStore() msp.UserStore { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "UserStore") ret0, _ := ret[0].(msp.UserStore) return ret0 }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func TestUserstorage(t *testing.T) {\n t.Log(\"*** User data storage and retrieval test ***\")\n\n // initialize user\n u, err := InitUser(\"alice\",\"fubar\")\n if err != nil {\n t.Error(\"Failed to initialize user (\", err, \")\")\n } else {\n t.Log(\"Successfully stored user\", u)\n...
[ "0.7232572", "0.70759726", "0.6947042", "0.65885407", "0.6443902", "0.63073105", "0.62877065", "0.6251729", "0.6233818", "0.6186411", "0.61615545", "0.6143569", "0.60569364", "0.6051291", "0.60378027", "0.60374254", "0.6020175", "0.59906864", "0.5951722", "0.59318924", "0.590...
0.70885456
1
UserStore indicates an expected call of UserStore
func (mr *MockProvidersMockRecorder) UserStore() *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UserStore", reflect.TypeOf((*MockProviders)(nil).UserStore)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (mr *MockClientMockRecorder) UserStore() *gomock.Call {\n\tmr.mock.ctrl.T.Helper()\n\treturn mr.mock.ctrl.RecordCallWithMethodType(mr.mock, \"UserStore\", reflect.TypeOf((*MockClient)(nil).UserStore))\n}", "func (mr *MockRepositoryMockRecorder) Store(user interface{}) *gomock.Call {\n\tmr.mock.ctrl.T.Helper...
[ "0.6904999", "0.6263283", "0.6232765", "0.608845", "0.6082111", "0.5844576", "0.5816186", "0.5799217", "0.5766557", "0.5741474", "0.5723449", "0.56327105", "0.5601462", "0.5558767", "0.55289537", "0.5518658", "0.55183864", "0.54979676", "0.5496519", "0.5475322", "0.5435955", ...
0.69241685
0
NewMockClient creates a new mock instance
func NewMockClient(ctrl *gomock.Controller) *MockClient { mock := &MockClient{ctrl: ctrl} mock.recorder = &MockClientMockRecorder{mock} return mock }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func NewMock() Client {\n\treturn &mockClient{}\n}", "func NewClient(t mockConstructorTestingTNewClient) *Client {\n\tmock := &Client{}\n\tmock.Mock.Test(t)\n\n\tt.Cleanup(func() { mock.AssertExpectations(t) })\n\n\treturn mock\n}", "func NewClient(t mockConstructorTestingTNewClient) *Client {\n\tmock := &Clie...
[ "0.800531", "0.7601814", "0.7601814", "0.7601814", "0.7601814", "0.7583215", "0.7519331", "0.75100696", "0.74596745", "0.7398741", "0.7360916", "0.7294024", "0.7287095", "0.72698385", "0.7268576", "0.7115619", "0.7090812", "0.70029604", "0.68992126", "0.68161285", "0.6793337"...
0.60894334
84
EXPECT returns an object that allows the caller to indicate expected use
func (m *MockClient) EXPECT() *MockClientMockRecorder { return m.recorder }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (mmGetObject *mClientMockGetObject) Expect(ctx context.Context, head insolar.Reference) *mClientMockGetObject {\n\tif mmGetObject.mock.funcGetObject != nil {\n\t\tmmGetObject.mock.t.Fatalf(\"ClientMock.GetObject mock is already set by Set\")\n\t}\n\n\tif mmGetObject.defaultExpectation == nil {\n\t\tmmGetObjec...
[ "0.58169925", "0.571553", "0.5674476", "0.5640405", "0.562928", "0.5574723", "0.556962", "0.5530448", "0.550884", "0.5488494", "0.5474579", "0.5464561", "0.54615927", "0.54421943", "0.544173", "0.5407415", "0.54029363", "0.5390068", "0.53847593", "0.53847593", "0.5371173", ...
0.0
-1
ChannelProvider mocks base method
func (m *MockClient) ChannelProvider() fab.ChannelProvider { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ChannelProvider") ret0, _ := ret[0].(fab.ChannelProvider) return ret0 }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (m *MockProviders) ChannelProvider() fab.ChannelProvider {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"ChannelProvider\")\n\tret0, _ := ret[0].(fab.ChannelProvider)\n\treturn ret0\n}", "func (m *MockRConnectionInterface) Channel() (*amqp.Channel, error) {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"...
[ "0.72489923", "0.6751296", "0.6729731", "0.6153569", "0.61135983", "0.6057166", "0.6054517", "0.5930565", "0.5925086", "0.59205496", "0.59125435", "0.5870955", "0.5845958", "0.5832964", "0.5823897", "0.58165205", "0.5808184", "0.57830024", "0.57754666", "0.57749516", "0.57468...
0.74381363
0
ChannelProvider indicates an expected call of ChannelProvider
func (mr *MockClientMockRecorder) ChannelProvider() *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ChannelProvider", reflect.TypeOf((*MockClient)(nil).ChannelProvider)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (mr *MockProvidersMockRecorder) ChannelProvider() *gomock.Call {\n\tmr.mock.ctrl.T.Helper()\n\treturn mr.mock.ctrl.RecordCallWithMethodType(mr.mock, \"ChannelProvider\", reflect.TypeOf((*MockProviders)(nil).ChannelProvider))\n}", "func (m *MockClient) ChannelProvider() fab.ChannelProvider {\n\tm.ctrl.T.Help...
[ "0.69362783", "0.6633123", "0.65392905", "0.6514544", "0.6098021", "0.5991934", "0.59471476", "0.5913013", "0.572652", "0.5656788", "0.5588901", "0.5575467", "0.5548425", "0.5537879", "0.5521586", "0.5423457", "0.5391196", "0.53427863", "0.53340673", "0.5321305", "0.5308125",...
0.70414907
0
CryptoSuite mocks base method
func (m *MockClient) CryptoSuite() core.CryptoSuite { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "CryptoSuite") ret0, _ := ret[0].(core.CryptoSuite) return ret0 }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func TestEncrypt() {\n\n}", "func (m *MockisCryptoApiRequest_CryptoApiReq) isCryptoApiRequest_CryptoApiReq() {\n\tm.ctrl.Call(m, \"isCryptoApiRequest_CryptoApiReq\")\n}", "func (m *MockProviders) CryptoSuite() core.CryptoSuite {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"CryptoSuite\")\n\tret0, _ := ret[0...
[ "0.6349443", "0.6250889", "0.61201334", "0.61085963", "0.61015576", "0.5863399", "0.5833078", "0.5814647", "0.5803716", "0.57591796", "0.57540137", "0.57426", "0.57124424", "0.56994677", "0.56921124", "0.56864023", "0.56789786", "0.5662635", "0.5635828", "0.5629587", "0.56233...
0.609855
5
CryptoSuite indicates an expected call of CryptoSuite
func (mr *MockClientMockRecorder) CryptoSuite() *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CryptoSuite", reflect.TypeOf((*MockClient)(nil).CryptoSuite)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (mr *MockProvidersMockRecorder) CryptoSuite() *gomock.Call {\n\tmr.mock.ctrl.T.Helper()\n\treturn mr.mock.ctrl.RecordCallWithMethodType(mr.mock, \"CryptoSuite\", reflect.TypeOf((*MockProviders)(nil).CryptoSuite))\n}", "func (pc *MockProviderContext) CryptoSuite() apicryptosuite.CryptoSuite {\n\treturn pc.cr...
[ "0.62962306", "0.5932702", "0.5895436", "0.5804088", "0.56917953", "0.5638527", "0.56172067", "0.55998623", "0.5447192", "0.53331995", "0.53276664", "0.5316853", "0.531374", "0.5311914", "0.5296386", "0.5289389", "0.52880764", "0.5248297", "0.52416706", "0.5213803", "0.519941...
0.6300879
0
EndpointConfig mocks base method
func (m *MockClient) EndpointConfig() fab.EndpointConfig { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "EndpointConfig") ret0, _ := ret[0].(fab.EndpointConfig) return ret0 }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (m *MockProviders) EndpointConfig() fab.EndpointConfig {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"EndpointConfig\")\n\tret0, _ := ret[0].(fab.EndpointConfig)\n\treturn ret0\n}", "func (m *MockConfiguration) IntrospectionEndpoint() op.Endpoint {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"Introspe...
[ "0.7244226", "0.62881446", "0.6148093", "0.607511", "0.60254085", "0.59867734", "0.59809434", "0.5971515", "0.5964234", "0.5937066", "0.5932493", "0.5927245", "0.58994836", "0.5884062", "0.58370537", "0.5783843", "0.5769066", "0.5700508", "0.5699805", "0.56984586", "0.5690053...
0.7284712
0
EndpointConfig indicates an expected call of EndpointConfig
func (mr *MockClientMockRecorder) EndpointConfig() *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EndpointConfig", reflect.TypeOf((*MockClient)(nil).EndpointConfig)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (mr *MockProvidersMockRecorder) EndpointConfig() *gomock.Call {\n\tmr.mock.ctrl.T.Helper()\n\treturn mr.mock.ctrl.RecordCallWithMethodType(mr.mock, \"EndpointConfig\", reflect.TypeOf((*MockProviders)(nil).EndpointConfig))\n}", "func (m *MockClient) EndpointConfig() fab.EndpointConfig {\n\tm.ctrl.T.Helper()\...
[ "0.7092505", "0.6726043", "0.6712356", "0.66571766", "0.58584934", "0.58116233", "0.5779489", "0.5766345", "0.57622665", "0.5760675", "0.5710803", "0.5678078", "0.5649989", "0.5614974", "0.5614144", "0.5599985", "0.55683404", "0.5567277", "0.55581975", "0.5552659", "0.5530678...
0.71669585
0
EnrollmentCertificate mocks base method
func (m *MockClient) EnrollmentCertificate() []byte { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "EnrollmentCertificate") ret0, _ := ret[0].([]byte) return ret0 }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (p *MockPeer) EnrollmentCertificate() *pem.Block {\r\n\treturn p.MockCert\r\n}", "func (p *MockPeer) EnrollmentCertificate() *pem.Block {\n\treturn p.MockCert\n}", "func (p *MockPeer) SetEnrollmentCertificate(pem *pem.Block) {\r\n\tp.MockCert = pem\r\n}", "func TestCertificate(t *testing.T) {\n\tvar res...
[ "0.65888923", "0.6234504", "0.6047892", "0.5979052", "0.59607357", "0.57190853", "0.5717269", "0.57069105", "0.570556", "0.5667811", "0.5661763", "0.56102765", "0.55863565", "0.55735624", "0.54910034", "0.543021", "0.5408378", "0.5405969", "0.53821886", "0.5354804", "0.531949...
0.76188767
0
EnrollmentCertificate indicates an expected call of EnrollmentCertificate
func (mr *MockClientMockRecorder) EnrollmentCertificate() *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnrollmentCertificate", reflect.TypeOf((*MockClient)(nil).EnrollmentCertificate)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (p *MockPeer) EnrollmentCertificate() *pem.Block {\r\n\treturn p.MockCert\r\n}", "func (p *MockPeer) EnrollmentCertificate() *pem.Block {\n\treturn p.MockCert\n}", "func (m *MockClient) EnrollmentCertificate() []byte {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"EnrollmentCertificate\")\n\tret0, _ := ...
[ "0.6630004", "0.6410596", "0.6361011", "0.57831097", "0.56046736", "0.54577327", "0.53977334", "0.5349532", "0.5320587", "0.53166556", "0.5311917", "0.53055733", "0.5296783", "0.5271991", "0.52477646", "0.5224344", "0.521586", "0.5215032", "0.5189029", "0.5171625", "0.5115500...
0.6912894
0
GetMetrics mocks base method
func (m *MockClient) GetMetrics() *metrics.ClientMetrics { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetMetrics") ret0, _ := ret[0].(*metrics.ClientMetrics) return ret0 }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (m *MockTaskManager) GetMetrics() handler.Metric {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"GetMetrics\")\n\tret0, _ := ret[0].(handler.Metric)\n\treturn ret0\n}", "func MockMetrics() []telegraf.Metric {\n\tmetrics := make([]telegraf.Metric, 0)\n\t// Create a new point batch\n\tmetrics = append(metri...
[ "0.7650577", "0.7016764", "0.70125824", "0.6981954", "0.69156355", "0.68423605", "0.6705235", "0.6613567", "0.6547792", "0.64580333", "0.63285154", "0.63118887", "0.624346", "0.6230752", "0.61920655", "0.6130787", "0.6118216", "0.6095558", "0.60732526", "0.6055256", "0.604511...
0.6813142
6
GetMetrics indicates an expected call of GetMetrics
func (mr *MockClientMockRecorder) GetMetrics() *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMetrics", reflect.TypeOf((*MockClient)(nil).GetMetrics)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (mr *MockTaskManagerMockRecorder) GetMetrics() *gomock.Call {\n\tmr.mock.ctrl.T.Helper()\n\treturn mr.mock.ctrl.RecordCallWithMethodType(mr.mock, \"GetMetrics\", reflect.TypeOf((*MockTaskManager)(nil).GetMetrics))\n}", "func testMetrics(expected map[string]int, m *Metrics) error {\n\te := &firstErr{}\n\tfor...
[ "0.70336074", "0.6899806", "0.6739893", "0.6723411", "0.6642232", "0.6608507", "0.65390295", "0.65256894", "0.64755845", "0.646324", "0.64111966", "0.64071107", "0.6383326", "0.6328049", "0.62772614", "0.6275577", "0.6178393", "0.6135223", "0.6065064", "0.6054249", "0.6022942...
0.69020057
1
Identifier mocks base method
func (m *MockClient) Identifier() *msp.IdentityIdentifier { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "Identifier") ret0, _ := ret[0].(*msp.IdentityIdentifier) return ret0 }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (m *MockSpaceStorage) Id() string {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"Id\")\n\tret0, _ := ret[0].(string)\n\treturn ret0\n}", "func (m *MockCandidatePropertyGetter) Id() string {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"Id\")\n\tret0, _ := ret[0].(string)\n\treturn ret0\n}", "func (m ...
[ "0.6657733", "0.63951087", "0.6327433", "0.6314855", "0.6239792", "0.6198693", "0.60974056", "0.60474014", "0.59863275", "0.59788674", "0.5951498", "0.5893884", "0.5874248", "0.58740956", "0.58721256", "0.58670336", "0.58637273", "0.58241963", "0.5822445", "0.5821934", "0.581...
0.6867645
0
Identifier indicates an expected call of Identifier
func (mr *MockClientMockRecorder) Identifier() *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Identifier", reflect.TypeOf((*MockClient)(nil).Identifier)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func testIdentifier(t *testing.T, expression ast.Expression, value string) {\n\ti, ok := expression.(*ast.Identifier)\n\tif !ok {\n\t\tt.Fatalf(\"Expected Expression type: ast.Identifier, actual: %T\", expression)\n\t}\n\n\tassert.Equal(t, value, i.Value, \"Expected value of identifier\")\n\tassert.Equal(t, value,...
[ "0.66166806", "0.6416886", "0.635748", "0.61401975", "0.5995858", "0.59543216", "0.5902299", "0.5890989", "0.5865152", "0.58361745", "0.581721", "0.5803506", "0.578906", "0.5779769", "0.5763614", "0.572675", "0.5704314", "0.57033044", "0.56851906", "0.5678485", "0.56333417", ...
0.6718738
0
IdentityConfig mocks base method
func (m *MockClient) IdentityConfig() msp.IdentityConfig { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "IdentityConfig") ret0, _ := ret[0].(msp.IdentityConfig) return ret0 }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (m *MockProviders) IdentityConfig() msp.IdentityConfig {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"IdentityConfig\")\n\tret0, _ := ret[0].(msp.IdentityConfig)\n\treturn ret0\n}", "func (m *MockChoriaProvider) Identity() string {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"Identity\")\n\tret0, _ :=...
[ "0.6787677", "0.60256", "0.586345", "0.5767175", "0.5641922", "0.56070125", "0.55962443", "0.5590909", "0.5563468", "0.5516428", "0.54697424", "0.54697424", "0.5467099", "0.5426291", "0.5393712", "0.5386777", "0.53707427", "0.5324358", "0.5313978", "0.53044486", "0.5262091", ...
0.6737324
1
IdentityConfig indicates an expected call of IdentityConfig
func (mr *MockClientMockRecorder) IdentityConfig() *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IdentityConfig", reflect.TypeOf((*MockClient)(nil).IdentityConfig)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (mr *MockProvidersMockRecorder) IdentityConfig() *gomock.Call {\n\tmr.mock.ctrl.T.Helper()\n\treturn mr.mock.ctrl.RecordCallWithMethodType(mr.mock, \"IdentityConfig\", reflect.TypeOf((*MockProviders)(nil).IdentityConfig))\n}", "func (m *MockProviders) IdentityConfig() msp.IdentityConfig {\n\tm.ctrl.T.Helper...
[ "0.69445693", "0.59405404", "0.5912807", "0.587062", "0.586529", "0.527814", "0.52237403", "0.5223695", "0.515309", "0.5047154", "0.5047055", "0.5040731", "0.5007019", "0.5006501", "0.49791756", "0.4975429", "0.4966714", "0.49590066", "0.49575666", "0.49523923", "0.49325052",...
0.6904944
1
IdentityManager mocks base method
func (m *MockClient) IdentityManager(arg0 string) (msp.IdentityManager, bool) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "IdentityManager", arg0) ret0, _ := ret[0].(msp.IdentityManager) ret1, _ := ret[1].(bool) return ret0, ret1 }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (m *MockProviders) IdentityManager(arg0 string) (msp.IdentityManager, bool) {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"IdentityManager\", arg0)\n\tret0, _ := ret[0].(msp.IdentityManager)\n\tret1, _ := ret[1].(bool)\n\treturn ret0, ret1\n}", "func TestNewIdentityManager(t *testing.T) {\n\tt.Run(\"succ...
[ "0.6485713", "0.62010235", "0.60594493", "0.59081554", "0.5871026", "0.56601584", "0.55710304", "0.55710304", "0.5517578", "0.54584026", "0.5454241", "0.5450888", "0.54272795", "0.54178536", "0.5386579", "0.5373759", "0.5366716", "0.5348325", "0.5348325", "0.53374684", "0.531...
0.65093976
0
IdentityManager indicates an expected call of IdentityManager
func (mr *MockClientMockRecorder) IdentityManager(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IdentityManager", reflect.TypeOf((*MockClient)(nil).IdentityManager), arg0) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (mr *MockProvidersMockRecorder) IdentityManager(arg0 interface{}) *gomock.Call {\n\tmr.mock.ctrl.T.Helper()\n\treturn mr.mock.ctrl.RecordCallWithMethodType(mr.mock, \"IdentityManager\", reflect.TypeOf((*MockProviders)(nil).IdentityManager), arg0)\n}", "func (c *Provider) IdentityManager(orgName string) (msp...
[ "0.6857104", "0.62990314", "0.5791703", "0.5713766", "0.5507963", "0.55046576", "0.547489", "0.52822226", "0.52602285", "0.51458347", "0.5125385", "0.51153713", "0.5108037", "0.5108037", "0.5072795", "0.4927912", "0.49198627", "0.4906886", "0.49046612", "0.48993003", "0.48911...
0.6894911
0
InfraProvider mocks base method
func (m *MockClient) InfraProvider() fab.InfraProvider { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "InfraProvider") ret0, _ := ret[0].(fab.InfraProvider) return ret0 }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (m *MockProviders) InfraProvider() fab.InfraProvider {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"InfraProvider\")\n\tret0, _ := ret[0].(fab.InfraProvider)\n\treturn ret0\n}", "func (m *MockProvider) Provide(arg0 string) blobclient.Client {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"Provide\", arg...
[ "0.66950154", "0.61172336", "0.5651182", "0.5620679", "0.5540909", "0.5528276", "0.54399544", "0.53394455", "0.53289324", "0.5326502", "0.53053826", "0.5295907", "0.5289515", "0.52590674", "0.5251287", "0.5249962", "0.52412957", "0.52379525", "0.51799697", "0.51713246", "0.51...
0.680102
0
InfraProvider indicates an expected call of InfraProvider
func (mr *MockClientMockRecorder) InfraProvider() *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InfraProvider", reflect.TypeOf((*MockClient)(nil).InfraProvider)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (mr *MockProvidersMockRecorder) InfraProvider() *gomock.Call {\n\tmr.mock.ctrl.T.Helper()\n\treturn mr.mock.ctrl.RecordCallWithMethodType(mr.mock, \"InfraProvider\", reflect.TypeOf((*MockProviders)(nil).InfraProvider))\n}", "func (c *Provider) InfraProvider() fab.InfraProvider {\n\treturn c.infraProvider\n}...
[ "0.67692643", "0.6662635", "0.6476615", "0.63881326", "0.61153394", "0.56615096", "0.5628567", "0.54794973", "0.54453844", "0.53783494", "0.537697", "0.53449565", "0.53372407", "0.52543694", "0.5240322", "0.5237933", "0.5224655", "0.52222174", "0.5212903", "0.51686656", "0.51...
0.6934428
0
LocalDiscoveryProvider mocks base method
func (m *MockClient) LocalDiscoveryProvider() fab.LocalDiscoveryProvider { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "LocalDiscoveryProvider") ret0, _ := ret[0].(fab.LocalDiscoveryProvider) return ret0 }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (m *MockProviders) LocalDiscoveryProvider() fab.LocalDiscoveryProvider {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"LocalDiscoveryProvider\")\n\tret0, _ := ret[0].(fab.LocalDiscoveryProvider)\n\treturn ret0\n}", "func (c *Provider) LocalDiscoveryProvider() fab.LocalDiscoveryProvider {\n\treturn c.local...
[ "0.7134569", "0.632302", "0.5986372", "0.58804214", "0.5836367", "0.56410253", "0.5597734", "0.5465775", "0.5429311", "0.54236996", "0.5394687", "0.53897685", "0.5385342", "0.53083503", "0.5291153", "0.5270716", "0.5252473", "0.52352184", "0.5203148", "0.5182315", "0.51554424...
0.7341058
0
LocalDiscoveryProvider indicates an expected call of LocalDiscoveryProvider
func (mr *MockClientMockRecorder) LocalDiscoveryProvider() *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LocalDiscoveryProvider", reflect.TypeOf((*MockClient)(nil).LocalDiscoveryProvider)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (c *Provider) LocalDiscoveryProvider() fab.LocalDiscoveryProvider {\n\treturn c.localDiscoveryProvider\n}", "func (mr *MockProvidersMockRecorder) LocalDiscoveryProvider() *gomock.Call {\n\tmr.mock.ctrl.T.Helper()\n\treturn mr.mock.ctrl.RecordCallWithMethodType(mr.mock, \"LocalDiscoveryProvider\", reflect.Ty...
[ "0.7037146", "0.7020437", "0.66114974", "0.6474944", "0.5546048", "0.5539704", "0.55262434", "0.55180764", "0.5477116", "0.5337827", "0.52536297", "0.52428377", "0.5181303", "0.5100078", "0.5093676", "0.509003", "0.5075192", "0.5007985", "0.49998957", "0.49982086", "0.4970017...
0.71185607
0
PrivateKey mocks base method
func (m *MockClient) PrivateKey() core.Key { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "PrivateKey") ret0, _ := ret[0].(core.Key) return ret0 }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (m *MockisCryptoAsymApiReqSetupPrivateKeyEx_Key) isCryptoAsymApiReqSetupPrivateKeyEx_Key() {\n\tm.ctrl.Call(m, \"isCryptoAsymApiReqSetupPrivateKeyEx_Key\")\n}", "func (c *HTTPClientMock) APIKeyPrivate() string {\n\treturn c.apiKeyPrivate\n}", "func (c CryptoServiceTester) TestGetPrivateKeyMultipleKeystore...
[ "0.68074006", "0.6719014", "0.6577349", "0.65547884", "0.655193", "0.6528726", "0.6515265", "0.6143082", "0.6138266", "0.6138245", "0.61061144", "0.6056119", "0.6028489", "0.60039204", "0.5974573", "0.59328353", "0.5916291", "0.59109217", "0.58914673", "0.5878999", "0.5856995...
0.7180571
0
PrivateKey indicates an expected call of PrivateKey
func (mr *MockClientMockRecorder) PrivateKey() *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PrivateKey", reflect.TypeOf((*MockClient)(nil).PrivateKey)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func PrivateKeyValidate(priv *rsa.PrivateKey,) error", "func (o *PipelineSshKeyPairAllOf) GetPrivateKeyOk() (*string, bool) {\n\tif o == nil || o.PrivateKey == nil {\n\t\treturn nil, false\n\t}\n\treturn o.PrivateKey, true\n}", "func (o *TppCertificateParams) GetPrivateKeyOk() (*string, bool) {\n\tif o == nil ...
[ "0.74063396", "0.68982327", "0.6687545", "0.6668617", "0.66394156", "0.66042066", "0.64109045", "0.638909", "0.63769555", "0.63654226", "0.6331232", "0.63108945", "0.62955505", "0.6252219", "0.62332714", "0.62081003", "0.6194143", "0.61720526", "0.6162626", "0.615435", "0.610...
0.70924914
1
PublicVersion mocks base method
func (m *MockClient) PublicVersion() msp.Identity { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "PublicVersion") ret0, _ := ret[0].(msp.Identity) return ret0 }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func TestVersion(t *testing.T) {\n\t//fmt.Println(\"EliteProvision [\" + Version() + \"]\")\n}", "func newVersionCheckerMock(version string, tags []string) *VersionChecker {\n\n\tfixedAppVersion := fixVersion(version)\n\n\treturn &VersionChecker{\n\t\tfixedAppVersion: fixedAppVersion,\n\t\tversionSource: &versio...
[ "0.68449587", "0.6694633", "0.66058457", "0.6596282", "0.6554341", "0.6468374", "0.6429601", "0.64212376", "0.6420173", "0.636126", "0.63060135", "0.6267418", "0.624314", "0.624108", "0.61913735", "0.61460763", "0.6129149", "0.60969746", "0.6089816", "0.6028361", "0.60138357"...
0.71553564
0
PublicVersion indicates an expected call of PublicVersion
func (mr *MockClientMockRecorder) PublicVersion() *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PublicVersion", reflect.TypeOf((*MockClient)(nil).PublicVersion)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func isBadVersion(version int) bool{\n return false\n}", "func (m *MockClient) PublicVersion() msp.Identity {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"PublicVersion\")\n\tret0, _ := ret[0].(msp.Identity)\n\treturn ret0\n}", "func TestVersion(t *testing.T) {\n\t//fmt.Println(\"EliteProvision [\" + Ver...
[ "0.61684936", "0.6067962", "0.5954322", "0.56574756", "0.56270444", "0.5623315", "0.5601342", "0.55662715", "0.5558212", "0.55543554", "0.5481111", "0.5477666", "0.54693365", "0.5434321", "0.53901994", "0.53724116", "0.53723973", "0.5360367", "0.535976", "0.52923805", "0.5278...
0.70306873
0
Serialize mocks base method
func (m *MockClient) Serialize() ([]byte, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "Serialize") ret0, _ := ret[0].([]byte) ret1, _ := ret[1].(error) return ret0, ret1 }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (m *MockManager) SerializeUpstream(arg0 string) error {\n\tret := m.ctrl.Call(m, \"SerializeUpstream\", arg0)\n\tret0, _ := ret[0].(error)\n\treturn ret0\n}", "func (m *MockManager) SerializeNamespace(arg0 string) error {\n\tret := m.ctrl.Call(m, \"SerializeNamespace\", arg0)\n\tret0, _ := ret[0].(error)\n\...
[ "0.62063146", "0.6125965", "0.59509856", "0.59343916", "0.5882502", "0.58464044", "0.5813615", "0.58003867", "0.5799796", "0.5747636", "0.57350713", "0.57124287", "0.5706793", "0.5704014", "0.5584812", "0.55754673", "0.55690277", "0.553161", "0.55240047", "0.54972166", "0.548...
0.62714547
0
Serialize indicates an expected call of Serialize
func (mr *MockClientMockRecorder) Serialize() *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Serialize", reflect.TypeOf((*MockClient)(nil).Serialize)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (mr *MockManagerMockRecorder) SerializeNamespace(arg0 interface{}) *gomock.Call {\n\treturn mr.mock.ctrl.RecordCallWithMethodType(mr.mock, \"SerializeNamespace\", reflect.TypeOf((*MockManager)(nil).SerializeNamespace), arg0)\n}", "func (e *Event) IsSerialized() bool {\n\treturn int32(e.GetType())&int32(EVEN...
[ "0.6066313", "0.5894949", "0.5891789", "0.58146894", "0.58111197", "0.5800852", "0.5732166", "0.57182896", "0.55868983", "0.55799645", "0.55763125", "0.5544834", "0.5529394", "0.5507338", "0.5499269", "0.5482491", "0.5481901", "0.5469212", "0.546522", "0.5440465", "0.54272604...
0.70770717
0
Sign mocks base method
func (m *MockClient) Sign(arg0 []byte) ([]byte, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "Sign", arg0) ret0, _ := ret[0].([]byte) ret1, _ := ret[1].(error) return ret0, ret1 }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (m *CryptographyServiceMock) Sign(p []byte) (r *insolar.Signature, r1 error) {\n\tcounter := atomic.AddUint64(&m.SignPreCounter, 1)\n\tdefer atomic.AddUint64(&m.SignCounter, 1)\n\n\tif len(m.SignMock.expectationSeries) > 0 {\n\t\tif counter > uint64(len(m.SignMock.expectationSeries)) {\n\t\t\tm.t.Fatalf(\"Une...
[ "0.73569053", "0.68571746", "0.6440196", "0.6397187", "0.6395241", "0.6389407", "0.6373618", "0.63479185", "0.6286529", "0.6282975", "0.6222466", "0.6218619", "0.62139755", "0.6212541", "0.6208312", "0.62067086", "0.618209", "0.6171891", "0.6165349", "0.61397684", "0.6135525"...
0.742772
0
Sign indicates an expected call of Sign
func (mr *MockClientMockRecorder) Sign(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Sign", reflect.TypeOf((*MockClient)(nil).Sign), arg0) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (m EncMessage) Sign(k []byte) error {\n\treturn errors.New(\"Sign method must be overridden\")\n}", "func (x *Big) Sign() int {\n\tif debug {\n\t\tx.validate()\n\t}\n\n\tif (x.IsFinite() && x.isZero()) || x.IsNaN(0) {\n\t\treturn 0\n\t}\n\tif x.form&signbit != 0 {\n\t\treturn -1\n\t}\n\treturn 1\n}", "fun...
[ "0.7038499", "0.6973596", "0.6949446", "0.6931641", "0.6850552", "0.68438876", "0.6784213", "0.6778353", "0.677179", "0.67147094", "0.66983044", "0.66941196", "0.6673838", "0.6659925", "0.66452146", "0.66187435", "0.6618732", "0.6616466", "0.6575433", "0.65533817", "0.6511533...
0.7184497
0
SigningManager mocks base method
func (m *MockClient) SigningManager() core.SigningManager { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "SigningManager") ret0, _ := ret[0].(core.SigningManager) return ret0 }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (m *MockProviders) SigningManager() core.SigningManager {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"SigningManager\")\n\tret0, _ := ret[0].(core.SigningManager)\n\treturn ret0\n}", "func (pc *MockProviderContext) SigningManager() fab.SigningManager {\n\treturn pc.signingManager\n}", "func NewMockSig...
[ "0.6785916", "0.6281368", "0.61853397", "0.61265033", "0.6016525", "0.592078", "0.5888198", "0.5882686", "0.5746892", "0.5725966", "0.56851", "0.56679803", "0.5576283", "0.55425304", "0.54525506", "0.5445765", "0.5445765", "0.5444539", "0.5439745", "0.54370964", "0.5416044", ...
0.6744976
1
SigningManager indicates an expected call of SigningManager
func (mr *MockClientMockRecorder) SigningManager() *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SigningManager", reflect.TypeOf((*MockClient)(nil).SigningManager)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (mr *MockProvidersMockRecorder) SigningManager() *gomock.Call {\n\tmr.mock.ctrl.T.Helper()\n\treturn mr.mock.ctrl.RecordCallWithMethodType(mr.mock, \"SigningManager\", reflect.TypeOf((*MockProviders)(nil).SigningManager))\n}", "func (pc *MockProviderContext) SigningManager() fab.SigningManager {\n\treturn p...
[ "0.7239621", "0.6206", "0.6116267", "0.60653776", "0.5916556", "0.56487644", "0.55687886", "0.55571556", "0.5548583", "0.55313104", "0.55269605", "0.5507766", "0.5452651", "0.54315287", "0.54265016", "0.54069215", "0.5389472", "0.5376608", "0.53554356", "0.5310178", "0.530505...
0.7177633
1
UserStore mocks base method
func (m *MockClient) UserStore() msp.UserStore { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "UserStore") ret0, _ := ret[0].(msp.UserStore) return ret0 }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func TestUserstorage(t *testing.T) {\n t.Log(\"*** User data storage and retrieval test ***\")\n\n // initialize user\n u, err := InitUser(\"alice\",\"fubar\")\n if err != nil {\n t.Error(\"Failed to initialize user (\", err, \")\")\n } else {\n t.Log(\"Successfully stored user\", u)\n...
[ "0.7232572", "0.70885456", "0.6947042", "0.65885407", "0.6443902", "0.63073105", "0.62877065", "0.6251729", "0.6233818", "0.6186411", "0.61615545", "0.6143569", "0.60569364", "0.6051291", "0.60378027", "0.60374254", "0.6020175", "0.59906864", "0.5951722", "0.59318924", "0.590...
0.70759726
2
UserStore indicates an expected call of UserStore
func (mr *MockClientMockRecorder) UserStore() *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UserStore", reflect.TypeOf((*MockClient)(nil).UserStore)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (mr *MockProvidersMockRecorder) UserStore() *gomock.Call {\n\tmr.mock.ctrl.T.Helper()\n\treturn mr.mock.ctrl.RecordCallWithMethodType(mr.mock, \"UserStore\", reflect.TypeOf((*MockProviders)(nil).UserStore))\n}", "func (mr *MockRepositoryMockRecorder) Store(user interface{}) *gomock.Call {\n\tmr.mock.ctrl.T....
[ "0.6924725", "0.62631965", "0.62323475", "0.6088104", "0.60815185", "0.58445543", "0.5817375", "0.5799972", "0.57668036", "0.5741914", "0.57245904", "0.5632725", "0.5601425", "0.5558256", "0.5529094", "0.5519546", "0.5519029", "0.549917", "0.5497812", "0.5476435", "0.5436344"...
0.690578
1
Verify mocks base method
func (m *MockClient) Verify(arg0, arg1 []byte) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "Verify", arg0, arg1) ret0, _ := ret[0].(error) return ret0 }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (m *MockAuth) Verify(arg0 *common.Context, arg1 *plugin.PermissionRequest) error {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"Verify\", arg0, arg1)\n\tret0, _ := ret[0].(error)\n\treturn ret0\n}", "func (m *MockPostForkBlock) Verify(arg0 context.Context) error {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Ca...
[ "0.63707566", "0.62389064", "0.6150061", "0.6032797", "0.60263306", "0.6017347", "0.5985903", "0.59731734", "0.59721094", "0.5944645", "0.59345305", "0.5932007", "0.5914505", "0.5902808", "0.58862764", "0.588578", "0.5875451", "0.5839451", "0.58214706", "0.58195907", "0.58038...
0.62211305
2
Verify indicates an expected call of Verify
func (mr *MockClientMockRecorder) Verify(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Verify", reflect.TypeOf((*MockClient)(nil).Verify), arg0, arg1) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func Verify() bool {\n\treturn true\n}", "func (mr *MockVerifierMockRecorder) Verify(arg0, arg1, arg2 interface{}) *gomock.Call {\n\tmr.mock.ctrl.T.Helper()\n\treturn mr.mock.ctrl.RecordCallWithMethodType(mr.mock, \"Verify\", reflect.TypeOf((*MockVerifier)(nil).Verify), arg0, arg1, arg2)\n}", "func (mr *MockLe...
[ "0.74627286", "0.7147746", "0.7128926", "0.7095787", "0.707571", "0.6950006", "0.68977547", "0.68753374", "0.68753374", "0.6839528", "0.67705894", "0.6733762", "0.6675744", "0.6668171", "0.6606623", "0.659429", "0.6587624", "0.6554382", "0.65118235", "0.64971346", "0.6463827"...
0.7062403
5
/ polymorph Destiny.Definitions.Items.DestinyItemTierTypeInfusionBlock baseQualityTransferRatio false / polymorph Destiny.Definitions.Items.DestinyItemTierTypeInfusionBlock minimumQualityIncrement false Validate validates this destiny definitions items destiny item tier type infusion block
func (m *DestinyDefinitionsItemsDestinyItemTierTypeInfusionBlock) Validate(formats strfmt.Registry) error { var res []error if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (b BaseShip) GetFuelConsumption(techs IResearches, fleetDeutSaveFactor float64, isGeneral bool) int64 {\n\tfuelConsumption := b.FuelConsumption\n\tif b.ID == SmallCargoID && techs.GetImpulseDrive() >= 5 {\n\t\tfuelConsumption *= 2\n\t} else if b.ID == RecyclerID && techs.GetHyperspaceDrive() >= 15 {\n\t\tfuel...
[ "0.4722705", "0.46578714", "0.4643263", "0.4634317", "0.46079737", "0.45513874", "0.45343092", "0.4529244", "0.45269722", "0.4509911", "0.4509911", "0.44835874", "0.44619718", "0.44540906", "0.4439477", "0.44236666", "0.44218728", "0.4420465", "0.4393814", "0.43921787", "0.43...
0.55280566
0
perf: 93, 90 time: O(n) space: 1
func oo135(ratings []int) int { sum := 0 left, mid, right := 0, 0, 0 for { for mid = left; mid+1 < len(ratings) && ratings[mid+1] > ratings[mid]; mid += 1 { } for right = mid; right+1 < len(ratings) && ratings[right] > ratings[right+1]; right += 1 { } ll, rr := mid-left, right-mid sum += (ll) * (ll + 1) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func Solution(A []int) int {\n\t// write your code in Go 1.4\n\tn := len(A)\n\tsum := n * (n + 1) / 2\n\n\tisSeen := make(map[int]bool)\n\n\tfor _, el := range A {\n\t\tdup := isSeen[el]\n\t\tif dup {\n\t\t\treturn 0\n\t\t}\n\t\tisSeen[el] = true\n\t\tsum -= el\n\t}\n\tif sum != 0 {\n\t\treturn 0\n\t}\n\treturn 1\...
[ "0.6026805", "0.59555244", "0.5955283", "0.5874953", "0.5791711", "0.5789105", "0.57426083", "0.5728753", "0.57182217", "0.5710362", "0.5696874", "0.5633868", "0.563071", "0.5619188", "0.5603376", "0.55972326", "0.5594419", "0.55728394", "0.55553955", "0.55510426", "0.5535702...
0.0
-1
XXX_OneofFuncs is for the internal use of the proto package.
func (*Oneof) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { return _Oneof_OneofMarshaler, _Oneof_OneofUnmarshaler, _Oneof_OneofSizer, []interface{}{ (*Oneof_F_Bool)(nil), (*O...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (*EncapVal) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _EncapVal_OneofMarshaler, _EncapVal_OneofUnmarshaler, _EncapVal_OneofSizer, []interface{}{\n\t\t(*Enc...
[ "0.8907106", "0.890579", "0.8891233", "0.88697135", "0.8868073", "0.8863467", "0.8863115", "0.8862988", "0.886209", "0.8861827", "0.8859999", "0.88558704", "0.88540995", "0.88527775", "0.88527775", "0.88527775", "0.88480514", "0.8847366", "0.88448733", "0.8844595", "0.8841944...
0.0
-1
XXX_OneofFuncs is for the internal use of the proto package.
func (*Communique) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { return _Communique_OneofMarshaler, _Communique_OneofUnmarshaler, _Communique_OneofSizer, []interface{}{ (*Commu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (*EncapVal) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _EncapVal_OneofMarshaler, _EncapVal_OneofUnmarshaler, _EncapVal_OneofSizer, []interface{}{\n\t\t(*Enc...
[ "0.8906545", "0.89049524", "0.88898444", "0.88690525", "0.8867597", "0.8862553", "0.886212", "0.88620526", "0.886116", "0.88607055", "0.88589394", "0.8854383", "0.88530225", "0.8851815", "0.8851815", "0.8851815", "0.8847126", "0.88462305", "0.88442457", "0.8843731", "0.884116...
0.0
-1
XXX_OneofFuncs is for the internal use of the proto package.
func (*TestUTF8) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { return _TestUTF8_OneofMarshaler, _TestUTF8_OneofUnmarshaler, _TestUTF8_OneofSizer, []interface{}{ (*TestUTF8_Fiel...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (*EncapVal) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {\n\treturn _EncapVal_OneofMarshaler, _EncapVal_OneofUnmarshaler, _EncapVal_OneofSizer, []interface{}{\n\t\t(*Enc...
[ "0.8907106", "0.890579", "0.8891233", "0.88697135", "0.8868073", "0.8863467", "0.8863115", "0.8862988", "0.886209", "0.8861827", "0.8859999", "0.88558704", "0.88540995", "0.88527775", "0.88527775", "0.88527775", "0.88480514", "0.8847366", "0.88448733", "0.8844595", "0.8841944...
0.87900233
82
Base Vesting Account NewBaseVestingAccount creates a new BaseVestingAccount object. It is the callers responsibility to ensure the base account has sufficient funds with regards to the original vesting amount.
func NewBaseVestingAccount(baseAccount *authtypes.BaseAccount, originalVesting sdk.Coins, endTime int64) *BaseVestingAccount { return &BaseVestingAccount{ BaseAccount: baseAccount, OriginalVesting: originalVesting, DelegatedFree: sdk.NewCoins(), DelegatedVesting: sdk.NewCoins(), EndTime: en...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func NewBase() Base {\r\n\treturn Base{\r\n\t\tActive: \"\",\r\n\t\tTitle: \"Lemonade Stand Supply\",\r\n\t}\r\n}", "func NewClawbackVestingAccount(baseAcc *authtypes.BaseAccount, funder sdk.AccAddress, originalVesting sdk.Coins, startTime int64, lockupPeriods, vestingPeriods Periods) *ClawbackVestingAccount {\...
[ "0.6104842", "0.6026493", "0.5996286", "0.59705764", "0.59615064", "0.5825349", "0.5822085", "0.5796595", "0.57819426", "0.56177527", "0.5608643", "0.5536669", "0.5514407", "0.5498089", "0.5485557", "0.5421935", "0.5353438", "0.5348021", "0.5331462", "0.5248329", "0.5199846",...
0.8610524
0
LockedCoinsFromVesting returns all the coins that are not spendable (i.e. locked) for a vesting account given the current vesting coins. If no coins are locked, an empty slice of Coins is returned. CONTRACT: Delegated vesting coins and vestingCoins must be sorted.
func (bva BaseVestingAccount) LockedCoinsFromVesting(vestingCoins sdk.Coins) sdk.Coins { lockedCoins := vestingCoins.Sub(vestingCoins.Min(bva.DelegatedVesting)) if lockedCoins == nil { return sdk.Coins{} } return lockedCoins }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (pva PeriodicVestingAccount) LockedCoins(ctx sdk.Context) sdk.Coins {\n\treturn pva.BaseVestingAccount.LockedCoinsFromVesting(pva.GetVestingCoins(ctx.BlockTime()))\n}", "func (dva DelayedVestingAccount) LockedCoins(ctx sdk.Context) sdk.Coins {\n\treturn dva.BaseVestingAccount.LockedCoinsFromVesting(dva.GetV...
[ "0.7522999", "0.7444621", "0.7421999", "0.73869133", "0.73509336", "0.6998124", "0.6757025", "0.6743434", "0.66449594", "0.6587789", "0.6478109", "0.6473024", "0.629536", "0.6076974", "0.6073959", "0.58224916", "0.5766373", "0.54533124", "0.54496396", "0.51249546", "0.4912231...
0.8314347
0
TrackDelegation tracks a delegation amount for any given vesting account type given the amount of coins currently vesting and the current account balance of the delegation denominations. CONTRACT: The account's coins, delegation coins, vesting coins, and delegated vesting coins must be sorted.
func (bva *BaseVestingAccount) TrackDelegation(balance, vestingCoins, amount sdk.Coins) { for _, coin := range amount { baseAmt := balance.AmountOf(coin.Denom) vestingAmt := vestingCoins.AmountOf(coin.Denom) delVestingAmt := bva.DelegatedVesting.AmountOf(coin.Denom) // Panic if the delegation amount is zero o...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (dva *DelayedVestingAccount) TrackDelegation(blockTime time.Time, balance, amount sdk.Coins) {\n\tdva.BaseVestingAccount.TrackDelegation(balance, dva.GetVestingCoins(blockTime), amount)\n}", "func (pva *PeriodicVestingAccount) TrackDelegation(blockTime time.Time, balance, amount sdk.Coins) {\n\tpva.BaseVest...
[ "0.7867072", "0.78303444", "0.78073776", "0.780251", "0.75030935", "0.74432373", "0.699153", "0.5845492", "0.53813183", "0.53045094", "0.51640373", "0.50583774", "0.5020244", "0.5015942", "0.49270812", "0.4878253", "0.4844824", "0.48211694", "0.47838807", "0.47838154", "0.475...
0.8320274
0
TrackUndelegation tracks an undelegation amount by setting the necessary values by which delegated vesting and delegated vesting need to decrease and by which amount the base coins need to increase. NOTE: The undelegation (bond refund) amount may exceed the delegated vesting (bond) amount due to the way undelegation tr...
func (bva *BaseVestingAccount) TrackUndelegation(amount sdk.Coins) { for _, coin := range amount { // panic if the undelegation amount is zero if coin.Amount.IsZero() { panic("undelegation attempt with zero coins") } delegatedFree := bva.DelegatedFree.AmountOf(coin.Denom) delegatedVesting := bva.Delegated...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (bva *BaseVestingAccount) TrackDelegation(balance, vestingCoins, amount sdk.Coins) {\n\tfor _, coin := range amount {\n\t\tbaseAmt := balance.AmountOf(coin.Denom)\n\t\tvestingAmt := vestingCoins.AmountOf(coin.Denom)\n\t\tdelVestingAmt := bva.DelegatedVesting.AmountOf(coin.Denom)\n\n\t\t// Panic if the delegat...
[ "0.67113245", "0.59720033", "0.5943587", "0.59297115", "0.5854596", "0.5854328", "0.57884055", "0.5690635", "0.5682177", "0.5627405", "0.5558996", "0.534974", "0.5342968", "0.5292748", "0.52545184", "0.5147454", "0.5006151", "0.4952675", "0.4936225", "0.48720354", "0.4870784"...
0.8533345
0
GetOriginalVesting returns a vesting account's original vesting amount
func (bva BaseVestingAccount) GetOriginalVesting() sdk.Coins { return bva.OriginalVesting }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (plva PermanentLockedAccount) GetVestingCoins(_ time.Time) sdk.Coins {\n\treturn plva.OriginalVesting\n}", "func (va ClawbackVestingAccount) GetVestingCoins(blockTime time.Time) sdk.Coins {\n\treturn va.OriginalVesting.Sub(va.GetVestedCoins(blockTime))\n}", "func (dva DelayedVestingAccount) GetVestingCoin...
[ "0.5952986", "0.573784", "0.5716642", "0.56203747", "0.5533669", "0.54534984", "0.5265873", "0.52228105", "0.5221159", "0.521353", "0.5159928", "0.51219094", "0.51138663", "0.50696576", "0.502259", "0.496147", "0.49164215", "0.48761567", "0.4837371", "0.48261893", "0.4814075"...
0.8451787
0
GetDelegatedFree returns a vesting account's delegation amount that is not vesting.
func (bva BaseVestingAccount) GetDelegatedFree() sdk.Coins { return bva.DelegatedFree }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (del Delegation) AmountDelegated() hexutil.Big {\n\tif del.Delegation.AmountDelegated == nil {\n\t\treturn hexutil.Big{}\n\t}\n\treturn *del.Delegation.AmountDelegated\n}", "func (bva BaseVestingAccount) GetDelegatedVesting() sdk.Coins {\n\treturn bva.DelegatedVesting\n}", "func (b *rpcVestingBalance) del...
[ "0.6416068", "0.6220628", "0.61514586", "0.5716628", "0.57010835", "0.5647869", "0.55818397", "0.55180794", "0.55074596", "0.5507106", "0.5489881", "0.53663415", "0.5286763", "0.5263716", "0.52178216", "0.506366", "0.505962", "0.5042922", "0.49995175", "0.49780974", "0.497743...
0.8334656
0
GetDelegatedVesting returns a vesting account's delegation amount that is still vesting.
func (bva BaseVestingAccount) GetDelegatedVesting() sdk.Coins { return bva.DelegatedVesting }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (b *rpcVestingBalance) delegated() (sdk.Coins, sdk.Coins, error) {\n\tdelegatedCoins, err := b.totalDelegated()\n\tif err != nil {\n\t\treturn nil, nil, err\n\t}\n\tunbondingCoins, err := b.totalUnbondingDelegations()\n\tif err != nil {\n\t\treturn nil, nil, err\n\t}\n\n\tdelegated := delegatedCoins.AmountOf(...
[ "0.6808024", "0.6490734", "0.6425168", "0.626219", "0.62174875", "0.61955094", "0.58210653", "0.58202344", "0.57796836", "0.5438589", "0.54209054", "0.53295773", "0.53165835", "0.5281906", "0.5265446", "0.52373785", "0.5235998", "0.52340764", "0.52320075", "0.5212645", "0.516...
0.82544625
0
GetEndTime returns a vesting account's end time
func (bva BaseVestingAccount) GetEndTime() int64 { return bva.EndTime }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (plva PermanentLockedAccount) GetEndTime() int64 {\n\treturn 0\n}", "func (o *ApplianceSetupInfoAllOf) GetEndTime() time.Time {\n\tif o == nil || o.EndTime == nil {\n\t\tvar ret time.Time\n\t\treturn ret\n\t}\n\treturn *o.EndTime\n}", "func (o *WorkflowCatalogServiceRequest) GetEndTime() time.Time {\n\tif...
[ "0.7872648", "0.74200815", "0.7327126", "0.7283611", "0.72377", "0.71718276", "0.7111663", "0.7106381", "0.70978665", "0.709069", "0.70450336", "0.7016598", "0.70135844", "0.70091736", "0.70076275", "0.6910157", "0.6902684", "0.6840315", "0.6741191", "0.6707876", "0.66914344"...
0.86487454
0
Validate checks for errors on the account fields
func (bva BaseVestingAccount) Validate() error { if !(bva.DelegatedVesting.IsAllLTE(bva.OriginalVesting)) { return errors.New("delegated vesting amount cannot be greater than original vesting amount") } return bva.BaseAccount.Validate() }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (account *Account) Validate() (map[string]interface{}, bool) {\n\n\tif !strings.Contains(account.Phone, \"+\") {\n\t\treturn u.Message(false, \"Phone Number address is required\"), false\n\t}\n\n\tif len(account.UserName) < 3 {\n\t\treturn u.Message(false, \"Username is required\"), false\n\t}\n\n\t//PhoneNum...
[ "0.6950377", "0.6660194", "0.6604518", "0.660115", "0.6589453", "0.6474401", "0.6469365", "0.6463922", "0.64215875", "0.63889915", "0.6362919", "0.63358384", "0.6252108", "0.62329525", "0.6229978", "0.61784095", "0.61675555", "0.61494285", "0.6107046", "0.6084981", "0.6062506...
0.567482
42
MarshalYAML returns the YAML representation of a BaseVestingAccount.
func (bva BaseVestingAccount) MarshalYAML() (interface{}, error) { accAddr, err := sdk.AccAddressFromBech32(bva.Address) if err != nil { return nil, err } out := vestingAccountYAML{ Address: accAddr, AccountNumber: bva.AccountNumber, PubKey: getPKString(bva), Sequence: bva.S...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (va ClawbackVestingAccount) MarshalYAML() (interface{}, error) {\n\taccAddr, err := sdk.AccAddressFromBech32(va.Address)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tout := vestingAccountYAML{\n\t\tAddress: accAddr,\n\t\tAccountNumber: va.AccountNumber,\n\t\tPubKey: getPKString(va),...
[ "0.7984123", "0.78136253", "0.77950466", "0.77011955", "0.61860657", "0.6162082", "0.61555004", "0.61256987", "0.59841114", "0.59818166", "0.59726924", "0.594863", "0.5947269", "0.58972937", "0.5799432", "0.57685477", "0.5696263", "0.5608591", "0.56004035", "0.55417204", "0.5...
0.8440805
0
NewContinuousVestingAccountRaw creates a new ContinuousVestingAccount object from BaseVestingAccount
func NewContinuousVestingAccountRaw(bva *BaseVestingAccount, startTime int64) *ContinuousVestingAccount { return &ContinuousVestingAccount{ BaseVestingAccount: bva, StartTime: startTime, } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func NewContinuousVestingAccount(baseAcc *authtypes.BaseAccount, originalVesting sdk.Coins, startTime, endTime int64) *ContinuousVestingAccount {\n\tbaseVestingAcc := &BaseVestingAccount{\n\t\tBaseAccount: baseAcc,\n\t\tOriginalVesting: originalVesting,\n\t\tEndTime: endTime,\n\t}\n\n\treturn &Continuo...
[ "0.73651177", "0.7098843", "0.6828235", "0.6757991", "0.669836", "0.6251848", "0.6140739", "0.59896034", "0.57978946", "0.5668212", "0.5430953", "0.5397485", "0.5344448", "0.5326911", "0.53231484", "0.5315272", "0.5190769", "0.51356536", "0.5125424", "0.5110819", "0.5089053",...
0.8007365
0
NewContinuousVestingAccount returns a new ContinuousVestingAccount
func NewContinuousVestingAccount(baseAcc *authtypes.BaseAccount, originalVesting sdk.Coins, startTime, endTime int64) *ContinuousVestingAccount { baseVestingAcc := &BaseVestingAccount{ BaseAccount: baseAcc, OriginalVesting: originalVesting, EndTime: endTime, } return &ContinuousVestingAccount{ S...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func NewContinuousVestingAccountRaw(bva *BaseVestingAccount, startTime int64) *ContinuousVestingAccount {\n\treturn &ContinuousVestingAccount{\n\t\tBaseVestingAccount: bva,\n\t\tStartTime: startTime,\n\t}\n}", "func NewPeriodicVestingAccount(baseAcc *authtypes.BaseAccount, originalVesting sdk.Coins, sta...
[ "0.69132036", "0.6623393", "0.6615625", "0.63697267", "0.6276726", "0.6014245", "0.5949236", "0.591252", "0.5813441", "0.57447326", "0.5703966", "0.56493205", "0.5621344", "0.5587428", "0.55520993", "0.5498668", "0.54740584", "0.5446518", "0.5446518", "0.54291975", "0.5412927...
0.8187087
0
GetVestedCoins returns the total number of vested coins. If no coins are vested, nil is returned.
func (cva ContinuousVestingAccount) GetVestedCoins(blockTime time.Time) sdk.Coins { var vestedCoins sdk.Coins // We must handle the case where the start time for a vesting account has // been set into the future or when the start of the chain is not exactly // known. if blockTime.Unix() <= cva.StartTime { retur...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (plva PermanentLockedAccount) GetVestedCoins(_ time.Time) sdk.Coins {\n\treturn nil\n}", "func (pva PeriodicVestingAccount) GetVestedCoins(blockTime time.Time) sdk.Coins {\n\tcoins := ReadSchedule(pva.StartTime, pva.EndTime, pva.VestingPeriods, pva.OriginalVesting, blockTime.Unix())\n\tif coins.IsZero() {\n...
[ "0.7471018", "0.73165536", "0.7279293", "0.721522", "0.6924047", "0.67499995", "0.6716838", "0.6667183", "0.6614427", "0.6604512", "0.6459922", "0.56289953", "0.5569631", "0.5512179", "0.54447544", "0.5326714", "0.5267492", "0.52399915", "0.5184446", "0.51647353", "0.51332", ...
0.70652676
4
GetVestingCoins returns the total number of vesting coins. If no coins are vesting, nil is returned.
func (cva ContinuousVestingAccount) GetVestingCoins(blockTime time.Time) sdk.Coins { return cva.OriginalVesting.Sub(cva.GetVestedCoins(blockTime)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (vva ValidatorVestingAccount) GetVestingCoins(blockTime time.Time) sdk.Coins {\n\treturn vva.OriginalVesting.Sub(vva.GetVestedCoins(blockTime))\n}", "func (va ClawbackVestingAccount) GetVestingCoins(blockTime time.Time) sdk.Coins {\n\treturn va.OriginalVesting.Sub(va.GetVestedCoins(blockTime))\n}", "func ...
[ "0.7440926", "0.7270496", "0.7146478", "0.7128266", "0.701217", "0.67097694", "0.6679312", "0.6637209", "0.66212606", "0.65089613", "0.64136815", "0.5599231", "0.55402213", "0.54796225", "0.53980273", "0.53526527", "0.5304157", "0.5291654", "0.52657443", "0.52640676", "0.5240...
0.72649264
2
LockedCoins returns the set of coins that are not spendable (i.e. locked), defined as the vesting coins that are not delegated.
func (cva ContinuousVestingAccount) LockedCoins(ctx sdk.Context) sdk.Coins { return cva.BaseVestingAccount.LockedCoinsFromVesting(cva.GetVestingCoins(ctx.BlockTime())) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (pva PeriodicVestingAccount) LockedCoins(ctx sdk.Context) sdk.Coins {\n\treturn pva.BaseVestingAccount.LockedCoinsFromVesting(pva.GetVestingCoins(ctx.BlockTime()))\n}", "func (dva DelayedVestingAccount) LockedCoins(ctx sdk.Context) sdk.Coins {\n\treturn dva.BaseVestingAccount.LockedCoinsFromVesting(dva.GetV...
[ "0.75117767", "0.7437211", "0.7414191", "0.7314862", "0.6838447", "0.6392202", "0.6191451", "0.61146224", "0.58891666", "0.5810488", "0.56842095", "0.5653297", "0.56145257", "0.5558801", "0.55499065", "0.54996663", "0.547989", "0.5471419", "0.54146755", "0.53996265", "0.53917...
0.7426922
2
TrackDelegation tracks a desired delegation amount by setting the appropriate values for the amount of delegated vesting, delegated free, and reducing the overall amount of base coins.
func (cva *ContinuousVestingAccount) TrackDelegation(blockTime time.Time, balance, amount sdk.Coins) { cva.BaseVestingAccount.TrackDelegation(balance, cva.GetVestingCoins(blockTime), amount) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (bva *BaseVestingAccount) TrackDelegation(balance, vestingCoins, amount sdk.Coins) {\n\tfor _, coin := range amount {\n\t\tbaseAmt := balance.AmountOf(coin.Denom)\n\t\tvestingAmt := vestingCoins.AmountOf(coin.Denom)\n\t\tdelVestingAmt := bva.DelegatedVesting.AmountOf(coin.Denom)\n\n\t\t// Panic if the delegat...
[ "0.8189158", "0.7900897", "0.7828547", "0.77607775", "0.7717838", "0.76603925", "0.68343955", "0.6128288", "0.57620025", "0.57456696", "0.554199", "0.5495294", "0.537466", "0.5257036", "0.51831824", "0.5128013", "0.5006918", "0.49731857", "0.4874176", "0.47647288", "0.4758947...
0.7722133
4
GetStartTime returns the time when vesting starts for a continuous vesting account.
func (cva ContinuousVestingAccount) GetStartTime() int64 { return cva.StartTime }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (va ClawbackVestingAccount) GetStartTime() int64 {\n\treturn va.StartTime\n}", "func (dva DelayedVestingAccount) GetStartTime() int64 {\n\treturn 0\n}", "func (pva PeriodicVestingAccount) GetStartTime() int64 {\n\treturn pva.StartTime\n}", "func GetStartTime() time.Time {\n\treturn startAtTime\n}", "f...
[ "0.7933969", "0.7929926", "0.7785165", "0.73669004", "0.726981", "0.69838774", "0.69761086", "0.694269", "0.6927703", "0.6854483", "0.6815522", "0.6800892", "0.67183834", "0.67104137", "0.6657018", "0.6623324", "0.6598904", "0.6566596", "0.6558677", "0.6532096", "0.6420241", ...
0.82052857
0
Validate checks for errors on the account fields
func (cva ContinuousVestingAccount) Validate() error { if cva.GetStartTime() >= cva.GetEndTime() { return errors.New("vesting start-time cannot be before end-time") } return cva.BaseVestingAccount.Validate() }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (account *Account) Validate() (map[string]interface{}, bool) {\n\n\tif !strings.Contains(account.Phone, \"+\") {\n\t\treturn u.Message(false, \"Phone Number address is required\"), false\n\t}\n\n\tif len(account.UserName) < 3 {\n\t\treturn u.Message(false, \"Username is required\"), false\n\t}\n\n\t//PhoneNum...
[ "0.6950377", "0.6660194", "0.6604518", "0.660115", "0.6589453", "0.6474401", "0.6469365", "0.6463922", "0.64215875", "0.63889915", "0.6362919", "0.63358384", "0.6252108", "0.62329525", "0.6229978", "0.61784095", "0.61675555", "0.61494285", "0.6107046", "0.6084981", "0.6062506...
0.0
-1
MarshalYAML returns the YAML representation of a ContinuousVestingAccount.
func (cva ContinuousVestingAccount) MarshalYAML() (interface{}, error) { accAddr, err := sdk.AccAddressFromBech32(cva.Address) if err != nil { return nil, err } out := vestingAccountYAML{ Address: accAddr, AccountNumber: cva.AccountNumber, PubKey: getPKString(cva), Sequence: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (va ClawbackVestingAccount) MarshalYAML() (interface{}, error) {\n\taccAddr, err := sdk.AccAddressFromBech32(va.Address)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tout := vestingAccountYAML{\n\t\tAddress: accAddr,\n\t\tAccountNumber: va.AccountNumber,\n\t\tPubKey: getPKString(va),...
[ "0.8220759", "0.82059807", "0.8032163", "0.7778999", "0.6281917", "0.621351", "0.6205962", "0.6153351", "0.6109899", "0.60921556", "0.6080166", "0.60753334", "0.6061997", "0.60296005", "0.59819895", "0.5949471", "0.5909755", "0.5884785", "0.5871395", "0.58268696", "0.57405597...
0.8481067
0
NewPeriodicVestingAccountRaw creates a new PeriodicVestingAccount object from BaseVestingAccount
func NewPeriodicVestingAccountRaw(bva *BaseVestingAccount, startTime int64, periods Periods) *PeriodicVestingAccount { return &PeriodicVestingAccount{ BaseVestingAccount: bva, StartTime: startTime, VestingPeriods: periods, } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func newPeriodicVestingAccount(address sdk.AccAddress, periods vestingtypes.Periods, firstPeriodStartTimestamp int64) *vestingtypes.PeriodicVestingAccount {\n\tbaseAccount := authtypes.NewBaseAccount(address, nil, 0, 0)\n\n\toriginalVesting := sdk.NewCoins()\n\tfor _, p := range periods {\n\t\toriginalVesting = or...
[ "0.76211107", "0.7578755", "0.69147325", "0.688278", "0.6686776", "0.66709", "0.61405754", "0.6001733", "0.58985585", "0.56478363", "0.5611604", "0.5596392", "0.542728", "0.53417903", "0.52059007", "0.51674855", "0.51130736", "0.507255", "0.5046054", "0.500847", "0.49871668",...
0.82215947
0
NewPeriodicVestingAccount returns a new PeriodicVestingAccount
func NewPeriodicVestingAccount(baseAcc *authtypes.BaseAccount, originalVesting sdk.Coins, startTime int64, periods Periods) *PeriodicVestingAccount { endTime := startTime for _, p := range periods { endTime += p.Length } baseVestingAcc := &BaseVestingAccount{ BaseAccount: baseAcc, OriginalVesting: origina...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func newPeriodicVestingAccount(address sdk.AccAddress, periods vestingtypes.Periods, firstPeriodStartTimestamp int64) *vestingtypes.PeriodicVestingAccount {\n\tbaseAccount := authtypes.NewBaseAccount(address, nil, 0, 0)\n\n\toriginalVesting := sdk.NewCoins()\n\tfor _, p := range periods {\n\t\toriginalVesting = or...
[ "0.8544836", "0.69821393", "0.6438208", "0.6292526", "0.62608457", "0.6215964", "0.61970264", "0.6108542", "0.5944803", "0.5915925", "0.57264006", "0.5667008", "0.5575679", "0.55671585", "0.5528065", "0.5527509", "0.5518966", "0.54529744", "0.54477406", "0.54477406", "0.54178...
0.83124036
1
GetVestedCoins returns the total number of vested coins. If no coins are vested, nil is returned.
func (pva PeriodicVestingAccount) GetVestedCoins(blockTime time.Time) sdk.Coins { coins := ReadSchedule(pva.StartTime, pva.EndTime, pva.VestingPeriods, pva.OriginalVesting, blockTime.Unix()) if coins.IsZero() { return nil } return coins }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (plva PermanentLockedAccount) GetVestedCoins(_ time.Time) sdk.Coins {\n\treturn nil\n}", "func (va ClawbackVestingAccount) GetVestedCoins(blockTime time.Time) sdk.Coins {\n\t// It's likely that one or the other schedule will be nearly trivial,\n\t// so there should be little overhead in recomputing the conj...
[ "0.7472693", "0.728135", "0.72171086", "0.7067881", "0.6926002", "0.67520267", "0.6718381", "0.6669052", "0.66164577", "0.6606495", "0.64622456", "0.56307656", "0.55714226", "0.55141586", "0.544581", "0.53290683", "0.52700144", "0.5242058", "0.5186966", "0.51671714", "0.51350...
0.7318536
1
GetVestingCoins returns the total number of vesting coins. If no coins are vesting, nil is returned.
func (pva PeriodicVestingAccount) GetVestingCoins(blockTime time.Time) sdk.Coins { return pva.OriginalVesting.Sub(pva.GetVestedCoins(blockTime)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (vva ValidatorVestingAccount) GetVestingCoins(blockTime time.Time) sdk.Coins {\n\treturn vva.OriginalVesting.Sub(vva.GetVestedCoins(blockTime))\n}", "func (va ClawbackVestingAccount) GetVestingCoins(blockTime time.Time) sdk.Coins {\n\treturn va.OriginalVesting.Sub(va.GetVestedCoins(blockTime))\n}", "func ...
[ "0.7442845", "0.72723347", "0.7266479", "0.7130243", "0.7013952", "0.6711385", "0.6681812", "0.66395986", "0.6623994", "0.6511514", "0.6415937", "0.56000996", "0.554174", "0.54808176", "0.5400817", "0.53537637", "0.5305921", "0.5294013", "0.52684784", "0.52653897", "0.5242092...
0.7148229
3
LockedCoins returns the set of coins that are not spendable (i.e. locked), defined as the vesting coins that are not delegated.
func (pva PeriodicVestingAccount) LockedCoins(ctx sdk.Context) sdk.Coins { return pva.BaseVestingAccount.LockedCoinsFromVesting(pva.GetVestingCoins(ctx.BlockTime())) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (dva DelayedVestingAccount) LockedCoins(ctx sdk.Context) sdk.Coins {\n\treturn dva.BaseVestingAccount.LockedCoinsFromVesting(dva.GetVestingCoins(ctx.BlockTime()))\n}", "func (cva ContinuousVestingAccount) LockedCoins(ctx sdk.Context) sdk.Coins {\n\treturn cva.BaseVestingAccount.LockedCoinsFromVesting(cva.Ge...
[ "0.743822", "0.7427831", "0.7415347", "0.73155016", "0.6838768", "0.6392438", "0.61915195", "0.6113116", "0.5887824", "0.58088565", "0.5682898", "0.5653102", "0.5612937", "0.55591124", "0.55491835", "0.5499366", "0.5479898", "0.54708606", "0.5414742", "0.54000133", "0.5391922...
0.7512996
0
TrackDelegation tracks a desired delegation amount by setting the appropriate values for the amount of delegated vesting, delegated free, and reducing the overall amount of base coins.
func (pva *PeriodicVestingAccount) TrackDelegation(blockTime time.Time, balance, amount sdk.Coins) { pva.BaseVestingAccount.TrackDelegation(balance, pva.GetVestingCoins(blockTime), amount) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (bva *BaseVestingAccount) TrackDelegation(balance, vestingCoins, amount sdk.Coins) {\n\tfor _, coin := range amount {\n\t\tbaseAmt := balance.AmountOf(coin.Denom)\n\t\tvestingAmt := vestingCoins.AmountOf(coin.Denom)\n\t\tdelVestingAmt := bva.DelegatedVesting.AmountOf(coin.Denom)\n\n\t\t// Panic if the delegat...
[ "0.8186739", "0.78986955", "0.7758992", "0.7719915", "0.771544", "0.76586753", "0.68335116", "0.6127206", "0.57611525", "0.5744714", "0.55410737", "0.54945636", "0.53738403", "0.525632", "0.51828635", "0.5127563", "0.50054365", "0.49724385", "0.48735827", "0.47643253", "0.475...
0.78264594
2
GetStartTime returns the time when vesting starts for a periodic vesting account.
func (pva PeriodicVestingAccount) GetStartTime() int64 { return pva.StartTime }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (dva DelayedVestingAccount) GetStartTime() int64 {\n\treturn 0\n}", "func (va ClawbackVestingAccount) GetStartTime() int64 {\n\treturn va.StartTime\n}", "func (cva ContinuousVestingAccount) GetStartTime() int64 {\n\treturn cva.StartTime\n}", "func GetStartTime() time.Time {\n\treturn startAtTime\n}", ...
[ "0.7655847", "0.75100744", "0.74109447", "0.7287526", "0.7022211", "0.6954829", "0.68399805", "0.6801164", "0.67397594", "0.6674122", "0.6627324", "0.6578017", "0.65748435", "0.65689546", "0.65134203", "0.65009487", "0.64612186", "0.6450997", "0.643786", "0.642462", "0.640699...
0.76758254
0
GetVestingPeriods returns vesting periods associated with periodic vesting account.
func (pva PeriodicVestingAccount) GetVestingPeriods() Periods { return pva.VestingPeriods }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (va ClawbackVestingAccount) GetVestingPeriods() Periods {\n\treturn va.VestingPeriods\n}", "func NewPeriodicVestingAccount(baseAcc *authtypes.BaseAccount, originalVesting sdk.Coins, startTime int64, periods Periods) *PeriodicVestingAccount {\n\tendTime := startTime\n\tfor _, p := range periods {\n\t\tendTim...
[ "0.80092347", "0.53922135", "0.5174269", "0.5134585", "0.5022448", "0.4940613", "0.49172422", "0.47227874", "0.47114304", "0.45741335", "0.45310128", "0.45140642", "0.44248143", "0.44168282", "0.4407911", "0.43513176", "0.42947915", "0.4189046", "0.41723818", "0.4131881", "0....
0.82599163
0
Validate checks for errors on the account fields
func (pva PeriodicVestingAccount) Validate() error { if pva.GetStartTime() >= pva.GetEndTime() { return errors.New("vesting start-time cannot be before end-time") } endTime := pva.StartTime originalVesting := sdk.NewCoins() for _, p := range pva.VestingPeriods { endTime += p.Length originalVesting = original...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (account *Account) Validate() (map[string]interface{}, bool) {\n\n\tif !strings.Contains(account.Phone, \"+\") {\n\t\treturn u.Message(false, \"Phone Number address is required\"), false\n\t}\n\n\tif len(account.UserName) < 3 {\n\t\treturn u.Message(false, \"Username is required\"), false\n\t}\n\n\t//PhoneNum...
[ "0.6950377", "0.6660194", "0.6604518", "0.660115", "0.6589453", "0.6474401", "0.6469365", "0.6463922", "0.64215875", "0.63889915", "0.6362919", "0.63358384", "0.6252108", "0.62329525", "0.6229978", "0.61784095", "0.61675555", "0.61494285", "0.6107046", "0.6084981", "0.6062506...
0.0
-1
MarshalYAML returns the YAML representation of a PeriodicVestingAccount.
func (pva PeriodicVestingAccount) MarshalYAML() (interface{}, error) { accAddr, err := sdk.AccAddressFromBech32(pva.Address) if err != nil { return nil, err } out := vestingAccountYAML{ Address: accAddr, AccountNumber: pva.AccountNumber, PubKey: getPKString(pva), Sequence: p...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (bva BaseVestingAccount) MarshalYAML() (interface{}, error) {\n\taccAddr, err := sdk.AccAddressFromBech32(bva.Address)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tout := vestingAccountYAML{\n\t\tAddress: accAddr,\n\t\tAccountNumber: bva.AccountNumber,\n\t\tPubKey: getPKString(bva),...
[ "0.79740006", "0.79260373", "0.78480417", "0.77300644", "0.65652984", "0.62953556", "0.6279168", "0.6233041", "0.6193101", "0.60612226", "0.6042137", "0.5997969", "0.59689313", "0.5929271", "0.590953", "0.58872837", "0.58425134", "0.57967377", "0.5759037", "0.5754271", "0.572...
0.8524174
0
NewPeriodicGrantAction returns an AddGrantAction for a PeriodicVestingAccount
func NewPeriodicGrantAction( sk StakingKeeper, grantStartTime int64, grantVestingPeriods []Period, grantCoins sdk.Coins, ) exported.AddGrantAction { return periodicGrantAction{ sk: sk, grantStartTime: grantStartTime, grantVestingPeriods: grantVestingPeriods, grantCoins: grant...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (pva *PeriodicVestingAccount) AddGrant(ctx sdk.Context, action exported.AddGrantAction) error {\n\treturn action.AddToAccount(ctx, pva)\n}", "func (pva *PeriodicVestingAccount) addGrant(ctx sdk.Context, sk StakingKeeper, grantStartTime int64, grantVestingPeriods []Period, grantCoins sdk.Coins) {\n\t// how m...
[ "0.6319315", "0.60508823", "0.5450652", "0.532292", "0.52668667", "0.5202514", "0.51351124", "0.5118444", "0.50628436", "0.5058438", "0.50192815", "0.4910114", "0.4907542", "0.4897786", "0.4887551", "0.47395888", "0.47365135", "0.47333363", "0.46217752", "0.46140435", "0.4602...
0.821403
0
AddToAccount implements the exported.AddGrantAction interface. It checks that rawAccount is a PeriodicVestingAccount, then adds the described grant to it.
func (pga periodicGrantAction) AddToAccount(ctx sdk.Context, rawAccount exported.VestingAccount) error { pva, ok := rawAccount.(*PeriodicVestingAccount) if !ok { return sdkerrors.Wrapf(sdkerrors.ErrNotSupported, "account %s must be a PeriodicVestingAccount, got %T", rawAccount.GetAddress(), rawAccount) } pv...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (cga clawbackGrantAction) AddToAccount(ctx sdk.Context, rawAccount exported.VestingAccount) error {\n\tcva, ok := rawAccount.(*ClawbackVestingAccount)\n\tif !ok {\n\t\treturn sdkerrors.Wrapf(sdkerrors.ErrNotSupported,\n\t\t\t\"account %s must be a ClawbackVestingAccount, got %T\",\n\t\t\trawAccount.GetAddress...
[ "0.6673063", "0.6106532", "0.58922356", "0.5645127", "0.5491181", "0.54294187", "0.52670664", "0.52047217", "0.51024365", "0.5024481", "0.5017414", "0.49595973", "0.49293518", "0.48778266", "0.4868511", "0.48504722", "0.48359856", "0.48092648", "0.47958285", "0.47902265", "0....
0.7897445
0
AddGrant implements the exported.GrantAccount interface.
func (pva *PeriodicVestingAccount) AddGrant(ctx sdk.Context, action exported.AddGrantAction) error { return action.AddToAccount(ctx, pva) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (pva *PeriodicVestingAccount) addGrant(ctx sdk.Context, sk StakingKeeper, grantStartTime int64, grantVestingPeriods []Period, grantCoins sdk.Coins) {\n\t// how much is really delegated?\n\tbondedAmt := sk.GetDelegatorBonded(ctx, pva.GetAddress())\n\tunbondingAmt := sk.GetDelegatorUnbonding(ctx, pva.GetAddress...
[ "0.6638425", "0.63351303", "0.63263184", "0.60253334", "0.60100543", "0.5991094", "0.59736663", "0.5939039", "0.5906749", "0.5818377", "0.5752371", "0.5751387", "0.57154185", "0.5666535", "0.55915976", "0.5591315", "0.55844253", "0.55637395", "0.5555593", "0.5406534", "0.5404...
0.82359046
0
addGrant merges a new periodic vesting grant into an existing PeriodicVestingAccount.
func (pva *PeriodicVestingAccount) addGrant(ctx sdk.Context, sk StakingKeeper, grantStartTime int64, grantVestingPeriods []Period, grantCoins sdk.Coins) { // how much is really delegated? bondedAmt := sk.GetDelegatorBonded(ctx, pva.GetAddress()) unbondingAmt := sk.GetDelegatorUnbonding(ctx, pva.GetAddress()) delega...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (pva *PeriodicVestingAccount) AddGrant(ctx sdk.Context, action exported.AddGrantAction) error {\n\treturn action.AddToAccount(ctx, pva)\n}", "func (va *ClawbackVestingAccount) addGrant(ctx sdk.Context, sk StakingKeeper, grantStartTime int64, grantLockupPeriods, grantVestingPeriods []Period, grantCoins sdk.C...
[ "0.8021465", "0.70819193", "0.5704787", "0.557793", "0.5520405", "0.5516304", "0.54987746", "0.54319793", "0.54234326", "0.5198178", "0.5190612", "0.516897", "0.51671606", "0.5102042", "0.50500983", "0.5033243", "0.50264156", "0.50088483", "0.49463457", "0.4917783", "0.491246...
0.78557765
1
NewDelayedVestingAccountRaw creates a new DelayedVestingAccount object from BaseVestingAccount
func NewDelayedVestingAccountRaw(bva *BaseVestingAccount) *DelayedVestingAccount { return &DelayedVestingAccount{ BaseVestingAccount: bva, } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func NewDelayedVestingAccount(baseAcc *authtypes.BaseAccount, originalVesting sdk.Coins, endTime int64) *DelayedVestingAccount {\n\tbaseVestingAcc := &BaseVestingAccount{\n\t\tBaseAccount: baseAcc,\n\t\tOriginalVesting: originalVesting,\n\t\tEndTime: endTime,\n\t}\n\n\treturn &DelayedVestingAccount{bas...
[ "0.70239556", "0.7022922", "0.6753236", "0.6679299", "0.644923", "0.6337664", "0.62031996", "0.6165785", "0.56279266", "0.5534443", "0.5452274", "0.54449195", "0.52648777", "0.52131265", "0.52131265", "0.5204797", "0.5139948", "0.5122591", "0.5079009", "0.5059517", "0.503759"...
0.81710976
0
NewDelayedVestingAccount returns a DelayedVestingAccount
func NewDelayedVestingAccount(baseAcc *authtypes.BaseAccount, originalVesting sdk.Coins, endTime int64) *DelayedVestingAccount { baseVestingAcc := &BaseVestingAccount{ BaseAccount: baseAcc, OriginalVesting: originalVesting, EndTime: endTime, } return &DelayedVestingAccount{baseVestingAcc} }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func NewDelayedVestingAccountRaw(bva *BaseVestingAccount) *DelayedVestingAccount {\n\treturn &DelayedVestingAccount{\n\t\tBaseVestingAccount: bva,\n\t}\n}", "func newPeriodicVestingAccount(address sdk.AccAddress, periods vestingtypes.Periods, firstPeriodStartTimestamp int64) *vestingtypes.PeriodicVestingAccount ...
[ "0.69552976", "0.6662628", "0.6262276", "0.59880567", "0.58953786", "0.57377744", "0.57377744", "0.5700749", "0.54910743", "0.5422893", "0.5391255", "0.5373617", "0.53433174", "0.53415126", "0.53125954", "0.53034943", "0.5293382", "0.5290742", "0.52859324", "0.5257186", "0.52...
0.80419785
0
GetVestedCoins returns the total amount of vested coins for a delayed vesting account. All coins are only vested once the schedule has elapsed.
func (dva DelayedVestingAccount) GetVestedCoins(blockTime time.Time) sdk.Coins { if blockTime.Unix() >= dva.EndTime { return dva.OriginalVesting } return nil }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (pva PeriodicVestingAccount) GetVestedCoins(blockTime time.Time) sdk.Coins {\n\tcoins := ReadSchedule(pva.StartTime, pva.EndTime, pva.VestingPeriods, pva.OriginalVesting, blockTime.Unix())\n\tif coins.IsZero() {\n\t\treturn nil\n\t}\n\treturn coins\n}", "func (plva PermanentLockedAccount) GetVestedCoins(_ t...
[ "0.78821915", "0.77730745", "0.7757383", "0.7747683", "0.77116185", "0.7681964", "0.73974156", "0.7347046", "0.72746074", "0.7222658", "0.71943384", "0.6369909", "0.6271219", "0.62576747", "0.6158414", "0.60933256", "0.59755814", "0.5791374", "0.5568287", "0.5336186", "0.5223...
0.81205183
0
GetVestingCoins returns the total number of vesting coins for a delayed vesting account.
func (dva DelayedVestingAccount) GetVestingCoins(blockTime time.Time) sdk.Coins { return dva.OriginalVesting.Sub(dva.GetVestedCoins(blockTime)) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (vva ValidatorVestingAccount) GetVestingCoins(blockTime time.Time) sdk.Coins {\n\treturn vva.OriginalVesting.Sub(vva.GetVestedCoins(blockTime))\n}", "func (pva PeriodicVestingAccount) GetVestingCoins(blockTime time.Time) sdk.Coins {\n\treturn pva.OriginalVesting.Sub(pva.GetVestedCoins(blockTime))\n}", "fu...
[ "0.7921594", "0.7911669", "0.78747386", "0.78404725", "0.76656306", "0.7427295", "0.72755915", "0.71889263", "0.7015906", "0.67641604", "0.6664618", "0.6327653", "0.62292004", "0.6187303", "0.61255044", "0.6114289", "0.60764766", "0.57490504", "0.54574955", "0.5431898", "0.53...
0.82551724
0
LockedCoins returns the set of coins that are not spendable (i.e. locked), defined as the vesting coins that are not delegated.
func (dva DelayedVestingAccount) LockedCoins(ctx sdk.Context) sdk.Coins { return dva.BaseVestingAccount.LockedCoinsFromVesting(dva.GetVestingCoins(ctx.BlockTime())) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (pva PeriodicVestingAccount) LockedCoins(ctx sdk.Context) sdk.Coins {\n\treturn pva.BaseVestingAccount.LockedCoinsFromVesting(pva.GetVestingCoins(ctx.BlockTime()))\n}", "func (cva ContinuousVestingAccount) LockedCoins(ctx sdk.Context) sdk.Coins {\n\treturn cva.BaseVestingAccount.LockedCoinsFromVesting(cva.G...
[ "0.7511586", "0.7426521", "0.7413611", "0.7314529", "0.6837458", "0.63913995", "0.6190784", "0.6113658", "0.5887874", "0.58083475", "0.56820905", "0.5653764", "0.56137216", "0.5558164", "0.5549295", "0.54992867", "0.5479662", "0.54710203", "0.54137", "0.5398946", "0.5390875",...
0.7436818
1
TrackDelegation tracks a desired delegation amount by setting the appropriate values for the amount of delegated vesting, delegated free, and reducing the overall amount of base coins.
func (dva *DelayedVestingAccount) TrackDelegation(blockTime time.Time, balance, amount sdk.Coins) { dva.BaseVestingAccount.TrackDelegation(balance, dva.GetVestingCoins(blockTime), amount) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (bva *BaseVestingAccount) TrackDelegation(balance, vestingCoins, amount sdk.Coins) {\n\tfor _, coin := range amount {\n\t\tbaseAmt := balance.AmountOf(coin.Denom)\n\t\tvestingAmt := vestingCoins.AmountOf(coin.Denom)\n\t\tdelVestingAmt := bva.DelegatedVesting.AmountOf(coin.Denom)\n\n\t\t// Panic if the delegat...
[ "0.8186638", "0.78269565", "0.77586985", "0.77205014", "0.77158755", "0.765882", "0.6832526", "0.6124114", "0.5759102", "0.5743524", "0.55394906", "0.54927427", "0.5372109", "0.5255176", "0.51808655", "0.5126337", "0.5003338", "0.4969066", "0.48711935", "0.47619656", "0.47565...
0.7899151
1
GetStartTime returns zero since a delayed vesting account has no start time.
func (dva DelayedVestingAccount) GetStartTime() int64 { return 0 }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (va ClawbackVestingAccount) GetStartTime() int64 {\n\treturn va.StartTime\n}", "func (cva ContinuousVestingAccount) GetStartTime() int64 {\n\treturn cva.StartTime\n}", "func (plva PermanentLockedAccount) GetStartTime() int64 {\n\treturn 0\n}", "func (pva PeriodicVestingAccount) GetStartTime() int64 {\n\...
[ "0.7676309", "0.75976443", "0.7532421", "0.75001425", "0.7361028", "0.725803", "0.72427595", "0.72406596", "0.7240466", "0.7142592", "0.7111448", "0.71034706", "0.7032013", "0.69124645", "0.6803729", "0.676755", "0.6750249", "0.673714", "0.6735365", "0.66810524", "0.6627456",...
0.8550508
0
Validate checks for errors on the account fields
func (dva DelayedVestingAccount) Validate() error { return dva.BaseVestingAccount.Validate() }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (account *Account) Validate() (map[string]interface{}, bool) {\n\n\tif !strings.Contains(account.Phone, \"+\") {\n\t\treturn u.Message(false, \"Phone Number address is required\"), false\n\t}\n\n\tif len(account.UserName) < 3 {\n\t\treturn u.Message(false, \"Username is required\"), false\n\t}\n\n\t//PhoneNum...
[ "0.6950377", "0.6660194", "0.6604518", "0.660115", "0.6589453", "0.6474401", "0.6469365", "0.6463922", "0.64215875", "0.63889915", "0.6362919", "0.63358384", "0.6252108", "0.62329525", "0.6229978", "0.61784095", "0.61675555", "0.61494285", "0.6107046", "0.6084981", "0.6062506...
0.55917954
50
NewPermanentLockedAccount returns a PermanentLockedAccount
func NewPermanentLockedAccount(baseAcc *authtypes.BaseAccount, coins sdk.Coins) *PermanentLockedAccount { baseVestingAcc := &BaseVestingAccount{ BaseAccount: baseAcc, OriginalVesting: coins, EndTime: 0, // ensure EndTime is set to 0, as PermanentLockedAccount's do not have an EndTime } return &Per...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (msg MsgCreatePermanentLockedAccount) Type() string { return TypeMsgCreatePermanentLockedAccount }", "func newAccount() *Account {\n\treturn &Account{\n\t\tblocks: make(map[string]uint64),\n\t}\n}", "func NewMsgCreatePermanentLockedAccount(fromAddr, toAddr sdk.AccAddress, amount sdk.Coins) *MsgCreatePerma...
[ "0.6613212", "0.5847004", "0.584218", "0.55508304", "0.53399056", "0.53399056", "0.52914137", "0.521402", "0.51721936", "0.5150324", "0.51409805", "0.51152074", "0.5111328", "0.5099049", "0.5050154", "0.5040955", "0.5030609", "0.49957147", "0.49862966", "0.4979736", "0.497496...
0.7643574
0
GetVestedCoins returns the total amount of vested coins for a permanent locked vesting account. All coins are only vested once the schedule has elapsed.
func (plva PermanentLockedAccount) GetVestedCoins(_ time.Time) sdk.Coins { return nil }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (pva PeriodicVestingAccount) GetVestedCoins(blockTime time.Time) sdk.Coins {\n\tcoins := ReadSchedule(pva.StartTime, pva.EndTime, pva.VestingPeriods, pva.OriginalVesting, blockTime.Unix())\n\tif coins.IsZero() {\n\t\treturn nil\n\t}\n\treturn coins\n}", "func (va ClawbackVestingAccount) GetVestedCoins(block...
[ "0.79755396", "0.77310777", "0.7681168", "0.76493204", "0.76472145", "0.7523997", "0.72600824", "0.7255338", "0.7253369", "0.7164763", "0.7144354", "0.6482787", "0.6452779", "0.64464617", "0.6323308", "0.6253597", "0.61339927", "0.59371185", "0.58343196", "0.579981", "0.54029...
0.8238134
0
GetVestingCoins returns the total number of vesting coins for a permanent locked vesting account.
func (plva PermanentLockedAccount) GetVestingCoins(_ time.Time) sdk.Coins { return plva.OriginalVesting }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "func (vva ValidatorVestingAccount) GetVestingCoins(blockTime time.Time) sdk.Coins {\n\treturn vva.OriginalVesting.Sub(vva.GetVestedCoins(blockTime))\n}", "func (pva PeriodicVestingAccount) GetVestingCoins(blockTime time.Time) sdk.Coins {\n\treturn pva.OriginalVesting.Sub(pva.GetVestedCoins(blockTime))\n}", "fu...
[ "0.78498274", "0.7794622", "0.7768739", "0.7705399", "0.7676226", "0.72224396", "0.70726705", "0.70528924", "0.70528334", "0.6938393", "0.6639426", "0.65996796", "0.65294945", "0.6502958", "0.6489424", "0.6332244", "0.6255476", "0.572874", "0.56868994", "0.5669699", "0.559848...
0.8247456
0