text stringlengths 11 6.3k | embedding listlengths 768 768 |
|---|---|
func TimeTrack(start time.Time, name string, writer io.Writer) {
elapsed := time.Since(start)
message := fmt.Sprintf("\n%s took %s", name, elapsed)
if writer == nil {
fmt.Println(message)
} else {
writer.Write([]byte(message))
}
} | [
0.2343338280916214,
0.5285688042640686,
0.6576888561248779,
-0.5592867136001587,
-0.29501450061798096,
-0.07438773661851883,
0.41968780755996704,
-0.13869145512580872,
-1.1612341403961182,
0.49842730164527893,
-0.7634416818618774,
0.07287082076072693,
-0.2695305049419403,
0.736678481101989... |
func (p CharacterPalette) pick(brightness uint32) string {
pct := float64(brightness) / 65535.0
max := len(p) - 1
idx := int(math.Round(float64(max) * pct))
return p[idx]
} | [
0.08181670308113098,
-0.5278147459030151,
0.5114116668701172,
-0.8556707501411438,
-1.2972818613052368,
0.01748049445450306,
0.28796762228012085,
-0.48620954155921936,
0.4806515872478485,
0.6252402067184448,
0.12262734025716782,
0.09798195213079453,
-0.5117669105529785,
-0.8761544227600098... |
func rgbaLuminance(col color.Color) uint32 {
r, g, b, a := col.RGBA()
// https://stackoverflow.com/a/596243/2449940
rawLum := 0.299*float64(r) + 0.587*float64(g) + 0.114*float64(b)
lum := math.Max(rawLum, 65535.0-float64(a))
return uint32(math.Round(lum))
} | [
0.3492284417152405,
-0.29577314853668213,
0.7941701412200928,
-0.17440833151340485,
-0.1640891283750534,
0.40729397535324097,
0.3135378658771515,
-0.8601487874984741,
-0.03946687653660774,
-0.09327208995819092,
0.13738979399204254,
0.15074950456619263,
-0.6964516639709473,
0.40612310171127... |
func (a ASCIIArt) String() string {
// TODO: could use Builder here?
result := ""
for _, x := range a {
result += strings.Join(x, "") + "\n"
}
return result
} | [
0.24519257247447968,
-0.7975342273712158,
0.2661689221858978,
-1.163532018661499,
-0.11754659563302994,
0.015015149489045143,
0.0011810165597125888,
-1.158905267715454,
-0.1410822719335556,
0.12592121958732605,
0.4903373122215271,
0.35725507140159607,
0.36338043212890625,
0.219150051474571... |
func Asciify(image image.Image, palette CharacterPalette) ASCIIArt {
bounds := image.Bounds()
art := make(ASCIIArt, bounds.Max.Y)
// Iterate over all the pixels
for y := bounds.Min.Y; y < bounds.Max.Y; y++ {
art[y] = make([]string, bounds.Max.X)
for x := bounds.Min.X; x < bounds.Max.X; x++ {
art[y][x] = pal... | [
-0.35811859369277954,
-0.99467533826828,
0.5157557725906372,
-1.5522313117980957,
-0.7775088548660278,
-0.5821021199226379,
-1.5096607208251953,
-0.584266722202301,
-0.49374154210090637,
1.0939819812774658,
-0.6438356637954712,
0.7425981760025024,
0.0444415882229805,
-0.22050610184669495,
... |
func Imagify(art ASCIIArt, palette CharacterPalette) (image.Image, error) {
bounds := image.Rect(0, 0, len(art[0]), len(art))
img := image.NewRGBA(bounds)
for y, col := range art {
for x, row := range col {
col, err := palette.color(row)
if err != nil {
return nil, err
}
img.Set(x, y, col)
}
}... | [
-1.0068687200546265,
0.08027900755405426,
0.6775116324424744,
-1.2004954814910889,
0.3358442783355713,
-0.0811476930975914,
-1.1849558353424072,
-0.34472787380218506,
-0.07644402235746384,
1.0854288339614868,
-0.8966856002807617,
0.5053208470344543,
0.41498860716819763,
-0.0890385657548904... |
func p2s(val string) *string {
return &val
} | [
0.1246856302022934,
-0.6396358013153076,
0.278729110956192,
-1.1525107622146606,
-1.830676794052124,
-0.0008907020092010498,
-0.7383230924606323,
-1.7297677993774414,
-0.007603764533996582,
-0.367634117603302,
0.4820822477340698,
0.6461459398269653,
0.8456867933273315,
-0.8796817660331726,... |
func p2u64(val uint64) *uint64 {
return &val
} | [
-0.9970514178276062,
-0.08092135936021805,
0.2996809482574463,
0.18185566365718842,
-0.12196917831897736,
-0.08237352967262268,
-0.35956937074661255,
-0.10097171366214752,
-0.31627005338668823,
-0.7048019170761108,
0.9866811037063599,
-0.49607759714126587,
0.6387298703193665,
-0.3308225274... |
func Get(c *gin.Context){
idStr := c.Query("id")
id, err := strconv.Atoi(idStr)
if err != nil {
responese.Error(c, err, nil)
return
}
ca := Category{ID:id}
err = ca.Read()
if err != nil {
responese.Error(c, err, nil)
return
}
responese.Success(c, "successed", &ca)
} | [
-0.9347714781761169,
0.05965334177017212,
0.5156805515289307,
-0.2955629229545593,
0.5476378202438354,
-0.10399829596281052,
-0.25763410329818726,
-0.06873128563165665,
-0.7602351307868958,
-0.5766785740852356,
0.953205943107605,
0.5126240849494934,
0.25052499771118164,
0.4894055426120758,... |
func List(c *gin.Context){
limitStr := c.Query("limit")
limit, err := strconv.Atoi(limitStr)
if err != nil {
limit = 0
}
res, err := list(limit)
if err != nil {
responese.Error(c, err, nil)
return
}
responese.Success(c, "successed", res)
} | [
0.179006427526474,
-0.3679760992527008,
0.5616691708564758,
-0.13941052556037903,
0.8670720458030701,
-0.04556192830204964,
-0.517855703830719,
0.6375353932380676,
0.4387810528278351,
0.6403313875198364,
-0.3722090423107147,
0.4489271342754364,
0.11745373159646988,
-0.1202537938952446,
-... |
func Add(c *gin.Context){
ca := Category{}
err := c.BindJSON(&ca)
if err != nil {
responese.Error(c, err, nil)
return
}
n, err := ca.Write()
if err != nil {
responese.Error(c, err, nil)
return
}
responese.Success(c, n, nil)
} | [
-1.2555011510849,
-0.23789018392562866,
0.9548113942146301,
-0.1393042653799057,
0.003868458326905966,
0.32083597779273987,
0.2788802683353424,
0.03715692088007927,
-0.09168505668640137,
0.07464497536420822,
0.5164722204208374,
0.29189157485961914,
-0.03389756381511688,
1.0558974742889404,... |
func Update(c *gin.Context){
ca := Category{}
err := c.BindJSON(&ca)
if err != nil {
responese.Error(c, err, nil)
return
}
err = ca.Update()
if err != nil {
responese.Error(c, err, nil)
return
}
responese.Success(c, "updated", nil)
} | [
-0.8436198830604553,
-0.5906984806060791,
0.5650736093521118,
0.016179319471120834,
-0.6692642569541931,
0.20051804184913635,
0.17379170656204224,
-0.3875671923160553,
-0.06819730252027512,
0.45289307832717896,
0.4452679753303528,
0.3296360373497009,
0.04362764582037926,
0.5828244090080261... |
func Delete(c *gin.Context){
idStr := c.Query("id")
id, err := strconv.Atoi(idStr)
if err != nil {
responese.Error(c, err, nil)
return
}
ca := Category{ID:id}
err = ca.Delete()
if err != nil {
responese.Error(c, err, nil)
return
}
responese.Success(c, "deleted", nil)
} | [
-0.06049998849630356,
0.31567829847335815,
0.7205805778503418,
0.3824405074119568,
0.6701600551605225,
0.2047259658575058,
0.58758145570755,
-0.13135004043579102,
0.2359575629234314,
-0.05521814152598381,
0.5861138105392456,
-0.2274244725704193,
-0.18614691495895386,
0.4982965886592865,
... |
func RunSchemaUpdateTool(args []string) {
config := parseSchemaUpadaterConfig(args)
if config == nil {
return
}
updateTask, err := NewSchemaUpdateTask(config)
if err != nil {
fmt.Println(err)
return
}
fmt.Printf("Running with Config=%+v\n\n", config)
updateTask.Run()
} | [
-0.49733468890190125,
-1.2647008895874023,
0.7518179416656494,
0.755281388759613,
-0.06506722420454025,
0.6899482607841492,
0.13541963696479797,
0.9767153859138489,
-0.2946341931819916,
0.753115713596344,
-0.6505375504493713,
0.6044905185699463,
0.21678493916988373,
0.3789641261100769,
0... |
func (tq *TrackQuery) DeleteTrackByID(id int64) (err error) {
t := new(Track)
_, err = tq.DB.Model(t).Where("track.id = ?", id).Delete()
if err != nil {
logutils.Log.Error("db query error %s", err)
}
return
} | [
0.26392823457717896,
0.30744287371635437,
0.22602486610412598,
0.2033977061510086,
0.05035819113254547,
0.42357075214385986,
-0.04060366749763489,
-0.9259403944015503,
-0.5347934365272522,
0.21489307284355164,
-0.20015545189380646,
-0.7329939007759094,
-0.45752429962158203,
1.0230398178100... |
func New(env vos.Env, namespace string) (*Builder, error) {
gopath, err := ioutil.TempDir("", "go")
if err != nil {
return nil, errors.Wrap(err, "Error creating temporary gopath root dir")
}
b := &Builder{
env: env,
root: gopath,
namespace: namespace,
}
if err := os.Mkdir(filepath.Join(gopat... | [
0.1892848163843155,
0.4179879426956177,
0.4110300838947296,
-0.2043653279542923,
-0.21490532159805298,
-0.019539959728717804,
-0.22247518599033356,
-0.12308736145496368,
0.045747071504592896,
0.010762153193354607,
-0.272281676530838,
0.2669810354709625,
0.3064970374107361,
0.85689777135849... |
func (b *Builder) File(packageName, filename, contents string) error {
dir := filepath.Join(b.root, "src", b.namespace, packageName)
if strings.HasSuffix(filename, ".yaml") || strings.HasSuffix(filename, ".yml") {
// most editors will indent multi line strings in Go source with
// tabs, so we convert to spaces fo... | [
-0.04098751023411751,
0.37238991260528564,
0.34578651189804077,
-0.27815961837768555,
0.27169880270957947,
-0.06459685415029526,
0.4913736581802368,
0.36734098196029663,
-0.35663023591041565,
-0.21075385808944702,
-0.05387664586305618,
-0.45056432485580444,
0.551244854927063,
0.93461340665... |
func (b *Builder) Package(packageName string, files map[string]string) (packagePath string, packageDir string, err error) {
dir := filepath.Join(b.root, "src", b.namespace, packageName)
if err := os.MkdirAll(dir, 0777); err != nil {
return "", "", errors.Wrap(err, "Error creating temporary package dir")
}
if fi... | [
-0.5163484811782837,
0.4312724173069,
0.5628304481506348,
0.7555063366889954,
-0.44742345809936523,
-0.07834319025278091,
1.5446858406066895,
0.5517087578773499,
0.18059450387954712,
-0.12087637186050415,
0.23728947341442108,
-0.6552397608757019,
0.6169147491455078,
0.8639558553695679,
-... |
func (b *Builder) Cleanup() {
os.RemoveAll(b.root)
} | [
1.0302306413650513,
-0.0759906992316246,
0.28608158230781555,
0.9707910418510437,
0.10372703522443771,
0.5052102208137512,
1.2285430431365967,
0.5792213082313538,
0.7135833501815796,
-1.547474980354309,
0.2433970421552658,
0.6246817708015442,
0.010010594502091408,
1.5395032167434692,
-0.... |
func Execute() {
if err := RootCmd.Execute(); err != nil {
fmt.Println(err)
os.Exit(-1)
}
} | [
0.8391480445861816,
-0.6172013878822327,
0.864802896976471,
1.1661274433135986,
0.4894045293331146,
0.8786700963973999,
-0.15603986382484436,
0.1271195411682129,
-0.7696849703788757,
-0.3532147705554962,
0.6680493950843811,
0.1502797156572342,
-0.3891732692718506,
0.8089608550071716,
0.1... |
func initCommonFlags(cmd *cobra.Command) {
cmd.Flags().StringVarP(&basePath, "project-root", "r", "root for project", "root project dirrectory relative to $GOPATH/src")
cmd.Flags().StringVarP(&author, "author", "a", "your name", "author name for copyright")
cmd.Flags().StringVarP(&email, "email", "e", "your email", ... | [
1.0760020017623901,
-0.08829569071531296,
0.4618034064769745,
-0.06235480681061745,
0.40427786111831665,
1.065981149673462,
0.35871559381484985,
0.8400484323501587,
-1.115077018737793,
0.09245691448450089,
-0.5551256537437439,
0.9145768880844116,
-1.3426990509033203,
1.4019263982772827,
... |
func initConfig(cmd *cobra.Command) {
viper.SetConfigName(".skelly") // name of config file (without extension)
viper.AddConfigPath("$HOME") // adding home directory as first search path
viper.SetConfigType("json")
viper.AutomaticEnv() // read in environment variables that match
fmt.Println("go... | [
0.4198727011680603,
-0.3442908227443695,
0.7339040040969849,
0.6176572442054749,
0.9194288849830627,
0.3851293623447418,
0.4581523537635803,
0.579757809638977,
-0.9665696620941162,
0.9452574849128723,
-0.32838186621665955,
0.6231154799461365,
-0.26167935132980347,
1.4750093221664429,
0.9... |
func fileExists(filename string) bool {
info, err := os.Stat(filename)
if os.IsNotExist(err) {
return false
}
return !info.IsDir()
} | [
-1.186729907989502,
-0.27171075344085693,
0.3192760646343231,
0.3646732568740845,
1.1367464065551758,
1.0287199020385742,
-0.017620887607336044,
0.43573111295700073,
-0.5707268714904785,
-0.7784857749938965,
0.16940775513648987,
-0.5798965096473694,
-0.046074278652668,
1.0208766460418701,
... |
func buildTwitchAuthConfig() {
TwitchOauthConfig = &oauth2.Config{
ClientID: Config.TwitchClientID,
ClientSecret: Config.TwitchClientSecret,
Scopes: []string{"user_read"},
RedirectURL: Config.TwitchRedirectURL,
Endpoint: oauth2.Endpoint{
AuthURL: Config.TwitchAuthURL,
TokenURL: Config.Twitc... | [
-0.4688061773777008,
-0.6461175680160522,
0.4246472418308258,
-0.7459952235221863,
-0.7992962002754211,
0.12760533392429352,
-0.35259416699409485,
0.7679745554924011,
0.6850314140319824,
0.49037110805511475,
-0.36446040868759155,
1.2978273630142212,
0.8280375003814697,
-0.00249848468229174... |
func DBConfig() rDB.ConnectOpts {
return rDB.ConnectOpts{
Address: Config.DatabaseHost,
Database: Config.Database,
Username: Config.DatabaseUser,
Password: Config.DatabasePassword,
InitialCap: 10,
MaxOpen: 10,
}
} | [
0.6536911725997925,
0.22682006657123566,
0.745023250579834,
-0.1792922466993332,
0.690334141254425,
0.17423854768276215,
-0.5301271080970764,
0.24515783786773682,
0.03456644341349602,
0.8650267124176025,
-0.7824684977531433,
-0.3379509747028351,
-0.5985364317893982,
0.5936817526817322,
0... |
func ToggleLiveMode() {
Config.LiveMode = !Config.LiveMode
} | [
0.4569115936756134,
-0.6795080900192261,
0.7211800217628479,
0.6039832234382629,
0.6932640671730042,
1.6911026239395142,
-0.08606507629156113,
1.8119158744812012,
0.3357509970664978,
0.5932368636131287,
-0.703454852104187,
-0.4034217298030853,
-0.6043742895126343,
-0.12967655062675476,
0... |
func NewMockHandler(ctrl *gomock.Controller) *MockHandler {
mock := &MockHandler{ctrl: ctrl}
mock.recorder = &MockHandlerMockRecorder{mock}
return mock
} | [
0.21521390974521637,
0.18266047537326813,
0.14940600097179413,
0.5463556051254272,
0.04893263429403305,
0.624621570110321,
0.5104088187217712,
-0.30622127652168274,
0.4389152526855469,
0.1954135149717331,
-0.8605594038963318,
-0.3525412082672119,
-0.845853328704834,
0.7991008162498474,
0... |
func (m *MockHandler) EXPECT() *MockHandlerMockRecorder {
return m.recorder
} | [
0.18793655931949615,
-0.06529753655195236,
0.23824459314346313,
0.30750027298927307,
0.14181630313396454,
0.6544894576072693,
0.3629627823829651,
0.23057135939598083,
0.20891797542572021,
-0.4595148265361786,
0.46868041157722473,
0.3437608778476715,
-0.7691139578819275,
0.8821001052856445,... |
func (m *MockHandler) ProfileGet(requestingUserName, userName string) (*domain.User, bool, error) {
ret := m.ctrl.Call(m, "ProfileGet", requestingUserName, userName)
ret0, _ := ret[0].(*domain.User)
ret1, _ := ret[1].(bool)
ret2, _ := ret[2].(error)
return ret0, ret1, ret2
} | [
-0.829666793346405,
-0.006616516970098019,
0.4341490864753723,
0.7836612462997437,
0.9612581729888916,
0.08752944320440292,
0.5290861129760742,
-0.4683263301849365,
-1.4301799535751343,
-0.11589298397302628,
-0.2792242467403412,
-0.846403181552887,
-0.6281272768974304,
0.3664199113845825,
... |
func (mr *MockHandlerMockRecorder) ProfileGet(requestingUserName, userName interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProfileGet", reflect.TypeOf((*MockHandler)(nil).ProfileGet), requestingUserName, userName)
} | [
-0.31145983934402466,
0.5969066023826599,
0.35541215538978577,
0.6599910855293274,
0.1576600819826126,
0.14246629178524017,
-0.4026755094528198,
-0.9977028965950012,
0.07537728548049927,
0.08774596452713013,
0.5702832937240601,
0.46464574337005615,
-0.9650079607963562,
0.8740296959877014,
... |
func (m *MockHandler) ProfileUpdateFollow(loggedInUsername, username string, follow bool) (*domain.User, error) {
ret := m.ctrl.Call(m, "ProfileUpdateFollow", loggedInUsername, username, follow)
ret0, _ := ret[0].(*domain.User)
ret1, _ := ret[1].(error)
return ret0, ret1
} | [
0.38593900203704834,
-0.4405098557472229,
0.28561002016067505,
1.466484785079956,
0.15966524183750153,
0.25915732979774475,
1.2757749557495117,
-0.40963682532310486,
-0.6435461044311523,
-0.23572875559329987,
-0.8353992104530334,
-1.0991666316986084,
-1.0096039772033691,
0.2954300940036773... |
func (mr *MockHandlerMockRecorder) ProfileUpdateFollow(loggedInUsername, username, follow interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProfileUpdateFollow", reflect.TypeOf((*MockHandler)(nil).ProfileUpdateFollow), loggedInUsername, username, follow)
} | [
0.266930490732193,
-0.10985606908798218,
0.3506828248500824,
1.1359981298446655,
-0.7867876291275024,
0.5917462110519409,
0.2733711004257202,
-0.9945982694625854,
0.5951244235038757,
0.4374040365219116,
-0.08307448774576187,
0.0063835070468485355,
-0.8940910696983337,
0.5478732585906982,
... |
func (m *MockHandler) UserCreate(username, email, password string) (*domain.User, string, error) {
ret := m.ctrl.Call(m, "UserCreate", username, email, password)
ret0, _ := ret[0].(*domain.User)
ret1, _ := ret[1].(string)
ret2, _ := ret[2].(error)
return ret0, ret1, ret2
} | [
-0.5750565528869629,
0.15593859553337097,
0.22391600906848907,
0.5859968662261963,
0.8360176682472229,
0.1889103502035141,
0.3936465382575989,
-0.5766959190368652,
-1.4379066228866577,
-0.3427940905094147,
-0.6183814406394958,
-1.4099003076553345,
-0.3481230139732361,
0.7307348251342773,
... |
func (mr *MockHandlerMockRecorder) UserCreate(username, email, password interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UserCreate", reflect.TypeOf((*MockHandler)(nil).UserCreate), username, email, password)
} | [
0.24386091530323029,
0.8136625289916992,
0.3530280292034149,
0.7866554856300354,
-0.3161712884902954,
0.46864715218544006,
-0.3344012200832367,
-1.1776857376098633,
-0.10407501459121704,
0.4692460894584656,
0.11434583365917206,
-0.352955162525177,
-0.5317528247833252,
1.1096736192703247,
... |
func (m *MockHandler) UserLogin(email, password string) (*domain.User, string, error) {
ret := m.ctrl.Call(m, "UserLogin", email, password)
ret0, _ := ret[0].(*domain.User)
ret1, _ := ret[1].(string)
ret2, _ := ret[2].(error)
return ret0, ret1, ret2
} | [
-0.7192253470420837,
-0.44437626004219055,
0.4590400159358978,
0.4405820667743683,
0.20388907194137573,
0.1922251582145691,
0.7743642926216125,
-0.06172121688723564,
-0.7656915783882141,
-0.6446385979652405,
-1.4082427024841309,
-0.5000522136688232,
-0.2698725163936615,
0.12409200519323349... |
func (mr *MockHandlerMockRecorder) UserLogin(email, password interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UserLogin", reflect.TypeOf((*MockHandler)(nil).UserLogin), email, password)
} | [
0.09838589280843735,
0.21981483697891235,
0.3355407416820526,
0.3054577112197876,
-1.0626546144485474,
0.5312126874923706,
-0.38246235251426697,
-0.371466726064682,
0.7689343690872192,
0.21001073718070984,
-0.40395689010620117,
0.6406896114349365,
-0.3697391748428345,
0.6149842739105225,
... |
func (m *MockHandler) UserGet(userName string) (*domain.User, string, error) {
ret := m.ctrl.Call(m, "UserGet", userName)
ret0, _ := ret[0].(*domain.User)
ret1, _ := ret[1].(string)
ret2, _ := ret[2].(error)
return ret0, ret1, ret2
} | [
-0.9435602426528931,
-0.32005882263183594,
0.2007751315832138,
-0.07954050600528717,
0.5430819392204285,
-0.015657775104045868,
0.697799026966095,
-0.9175512194633484,
-1.1535789966583252,
-0.4648647606372833,
-0.5647405385971069,
-0.5035433769226074,
-0.53672194480896,
0.66255122423172,
... |
func (mr *MockHandlerMockRecorder) UserGet(userName interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UserGet", reflect.TypeOf((*MockHandler)(nil).UserGet), userName)
} | [
-0.1378142088651657,
0.4786013662815094,
0.33985310792922974,
0.1698421686887741,
-0.5220538973808289,
0.23119814693927765,
0.08027194440364838,
-1.1398568153381348,
0.473620742559433,
0.22082121670246124,
0.17371848225593567,
0.26876112818717957,
-0.47693300247192383,
1.0748732089996338,
... |
func (m *MockHandler) UserEdit(userName string, newUser map[domain.UserUpdatableProperty]*string) (*domain.User, string, error) {
ret := m.ctrl.Call(m, "UserEdit", userName, newUser)
ret0, _ := ret[0].(*domain.User)
ret1, _ := ret[1].(string)
ret2, _ := ret[2].(error)
return ret0, ret1, ret2
} | [
-0.6701027154922485,
-0.29014137387275696,
-0.03137355297803879,
0.5254618525505066,
0.43028023838996887,
0.41136878728866577,
1.3683674335479736,
-0.293801873922348,
-1.2524954080581665,
-0.21702151000499725,
-0.34396621584892273,
-0.49667447805404663,
0.02764084003865719,
0.6320998668670... |
func (mr *MockHandlerMockRecorder) UserEdit(userName, newUser interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UserEdit", reflect.TypeOf((*MockHandler)(nil).UserEdit), userName, newUser)
} | [
-0.04115601256489754,
0.34502437710762024,
0.13114531338214874,
0.45168018341064453,
-0.4186752736568451,
0.9633206129074097,
0.5221192240715027,
-0.8269611597061157,
0.14270900189876556,
0.524773895740509,
0.4044206738471985,
0.6116339564323425,
-0.08227065950632095,
0.7822811007499695,
... |
func (m *MockHandler) ArticlesFeed(username string, limit, offset int) (*domain.User, domain.ArticleCollection, int, error) {
ret := m.ctrl.Call(m, "ArticlesFeed", username, limit, offset)
ret0, _ := ret[0].(*domain.User)
ret1, _ := ret[1].(domain.ArticleCollection)
ret2, _ := ret[2].(int)
ret3, _ := ret[3].(error... | [
0.207948237657547,
0.09591048955917358,
0.17387570440769196,
-0.26350608468055725,
0.33495599031448364,
0.5131620764732361,
0.8130205273628235,
-0.5008326172828674,
-1.5543570518493652,
-0.664290189743042,
-1.0651835203170776,
-0.08186273276805878,
-0.4423483610153198,
-0.14285993576049805... |
func (mr *MockHandlerMockRecorder) ArticlesFeed(username, limit, offset interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ArticlesFeed", reflect.TypeOf((*MockHandler)(nil).ArticlesFeed), username, limit, offset)
} | [
0.7039817571640015,
0.5397043228149414,
0.1352861374616623,
-0.4636284112930298,
-0.45938271284103394,
0.5301922559738159,
-0.553292453289032,
-0.522113025188446,
-0.31109490990638733,
-0.12823429703712463,
-0.3464042544364929,
1.2573883533477783,
-0.38357821106910706,
0.25086718797683716,... |
func (m *MockHandler) GetArticles(username string, limit, offset int, filters []domain.ArticleFilter) (*domain.User, domain.ArticleCollection, int, error) {
ret := m.ctrl.Call(m, "GetArticles", username, limit, offset, filters)
ret0, _ := ret[0].(*domain.User)
ret1, _ := ret[1].(domain.ArticleCollection)
ret2, _ :=... | [
-0.3676466941833496,
0.5142800807952881,
0.47342222929000854,
-0.2026655077934265,
0.541776716709137,
0.2946873903274536,
1.4464725255966187,
-0.8866001963615417,
-0.7850899696350098,
-0.4267539381980896,
-0.5004885196685791,
-0.8566241264343262,
-0.5029591917991638,
0.07470239698886871,
... |
func (mr *MockHandlerMockRecorder) GetArticles(username, limit, offset, filters interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetArticles", reflect.TypeOf((*MockHandler)(nil).GetArticles), username, limit, offset, filters)
} | [
0.2258109599351883,
1.1893478631973267,
0.6704332232475281,
-0.5310592651367188,
0.24438822269439697,
-0.0007735127001069486,
0.1596863716840744,
-0.9243313074111938,
0.5587973594665527,
0.5960807800292969,
0.11995990574359894,
0.5265123844146729,
-0.42772364616394043,
0.6033079624176025,
... |
func (m *MockHandler) ArticleGet(slug, username string) (*domain.User, *domain.Article, error) {
ret := m.ctrl.Call(m, "ArticleGet", slug, username)
ret0, _ := ret[0].(*domain.User)
ret1, _ := ret[1].(*domain.Article)
ret2, _ := ret[2].(error)
return ret0, ret1, ret2
} | [
-0.7786106467247009,
-0.4262596368789673,
0.16958889365196228,
-0.186041921377182,
0.568885087966919,
-0.1483016312122345,
0.5275415778160095,
-0.18631786108016968,
-1.6401557922363281,
-0.1322147399187088,
-0.1767997443675995,
0.13079994916915894,
-0.7375918626785278,
-0.01821752823889255... |
func (mr *MockHandlerMockRecorder) ArticleGet(slug, username interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ArticleGet", reflect.TypeOf((*MockHandler)(nil).ArticleGet), slug, username)
} | [
-0.15423905849456787,
0.22210875153541565,
0.24088458716869354,
-0.25534895062446594,
0.053762972354888916,
-0.07805003225803375,
-0.45246756076812744,
-0.3226408362388611,
0.05090191215276718,
0.5371787548065186,
0.5797839760780334,
1.2145603895187378,
-0.8852666616439819,
0.6749188303947... |
func (m *MockHandler) ArticlePost(username string, article domain.Article) (*domain.User, *domain.Article, error) {
ret := m.ctrl.Call(m, "ArticlePost", username, article)
ret0, _ := ret[0].(*domain.User)
ret1, _ := ret[1].(*domain.Article)
ret2, _ := ret[2].(error)
return ret0, ret1, ret2
} | [
-0.16082186996936798,
-0.14279352128505707,
0.18176603317260742,
0.4862719774246216,
0.038350384682416916,
0.3568456470966339,
0.4632686972618103,
-0.43770062923431396,
-0.8589476346969604,
0.31521445512771606,
-1.1492925882339478,
-0.799524188041687,
-0.6947806477546692,
-0.23409165441989... |
func (mr *MockHandlerMockRecorder) ArticlePost(username, article interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ArticlePost", reflect.TypeOf((*MockHandler)(nil).ArticlePost), username, article)
} | [
0.19225752353668213,
0.34127920866012573,
0.0987485945224762,
0.15988516807556152,
-0.7715415954589844,
0.462182879447937,
-0.42043858766555786,
-0.6784750819206238,
0.6574339270591736,
0.6754335165023804,
0.1477820724248886,
0.3456716239452362,
-0.8697364330291748,
0.5765737295150757,
0... |
func (m *MockHandler) ArticlePut(username, slug string, fieldsToUpdate map[domain.ArticleUpdatableField]*string) (*domain.User, *domain.Article, error) {
ret := m.ctrl.Call(m, "ArticlePut", username, slug, fieldsToUpdate)
ret0, _ := ret[0].(*domain.User)
ret1, _ := ret[1].(*domain.Article)
ret2, _ := ret[2].(error)... | [
-0.705762505531311,
-0.2804117500782013,
0.032930485904216766,
-0.6048212647438049,
-0.20080001652240753,
0.44331976771354675,
1.1192593574523926,
-0.04327792674303055,
-1.3354017734527588,
0.3806334137916565,
-0.6577503681182861,
-0.5463651418685913,
-0.8517716526985168,
-0.13194166123867... |
func (mr *MockHandlerMockRecorder) ArticlePut(username, slug, fieldsToUpdate interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ArticlePut", reflect.TypeOf((*MockHandler)(nil).ArticlePut), username, slug, fieldsToUpdate)
} | [
-0.28390344977378845,
0.23526304960250854,
0.07845450192689896,
-0.6168563961982727,
-0.7632116675376892,
0.6380120515823364,
0.12931285798549652,
-0.10878804326057434,
-0.07155968248844147,
0.9726365804672241,
0.12912893295288086,
0.5919625163078308,
-1.039774775505066,
0.2213504612445831... |
func (m *MockHandler) ArticleDelete(username, slug string) error {
ret := m.ctrl.Call(m, "ArticleDelete", username, slug)
ret0, _ := ret[0].(error)
return ret0
} | [
0.002637966303154826,
-0.2375142127275467,
-0.11997618526220322,
0.3268890976905823,
1.0626804828643799,
-0.008111878298223019,
0.4785323441028595,
0.2894769608974457,
-1.005425214767456,
0.20187589526176453,
0.0896792858839035,
-0.6949283480644226,
-1.1730610132217407,
0.1479319930076599,... |
func (mr *MockHandlerMockRecorder) ArticleDelete(username, slug interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ArticleDelete", reflect.TypeOf((*MockHandler)(nil).ArticleDelete), username, slug)
} | [
0.3311009109020233,
0.3615064024925232,
0.06409509479999542,
0.1458568572998047,
0.21229326725006104,
0.13810326159000397,
-0.3069522976875305,
-0.21989475190639496,
0.4993308484554291,
1.0191900730133057,
0.5546754002571106,
0.6265556216239929,
-0.9581670761108398,
0.7266708612442017,
-... |
func (m *MockHandler) CommentsGet(slug string) ([]domain.Comment, error) {
ret := m.ctrl.Call(m, "CommentsGet", slug)
ret0, _ := ret[0].([]domain.Comment)
ret1, _ := ret[1].(error)
return ret0, ret1
} | [
-0.47253668308258057,
-0.5613151788711548,
0.45642170310020447,
-0.18072760105133057,
1.0997145175933838,
-0.3973892331123352,
0.35594695806503296,
-0.9644267559051514,
-1.2845866680145264,
-0.7620846629142761,
0.03910914435982704,
-0.22570984065532684,
-0.9596139192581177,
0.7207667231559... |
func (mr *MockHandlerMockRecorder) CommentsGet(slug interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CommentsGet", reflect.TypeOf((*MockHandler)(nil).CommentsGet), slug)
} | [
-0.23277278244495392,
0.10687333345413208,
0.4279686510562897,
-0.43452924489974976,
0.39572370052337646,
-0.2846813201904297,
-0.31431180238723755,
-1.0919326543807983,
0.02642104960978031,
-0.13901548087596893,
0.7323349118232727,
0.43978026509284973,
-1.002737283706665,
0.95727962255477... |
func (m *MockHandler) CommentsPost(username, slug, comment string) (*domain.Comment, error) {
ret := m.ctrl.Call(m, "CommentsPost", username, slug, comment)
ret0, _ := ret[0].(*domain.Comment)
ret1, _ := ret[1].(error)
return ret0, ret1
} | [
0.12610678374767303,
-0.17298409342765808,
0.2280818670988083,
0.4857054650783539,
0.647182285785675,
0.0712662860751152,
0.5936442613601685,
-0.7144381999969482,
-0.8506448268890381,
-0.18204770982265472,
-1.0563137531280518,
-1.1218721866607666,
-0.7841894626617432,
0.15770938992500305,
... |
func (mr *MockHandlerMockRecorder) CommentsPost(username, slug, comment interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CommentsPost", reflect.TypeOf((*MockHandler)(nil).CommentsPost), username, slug, comment)
} | [
0.35115498304367065,
0.23921625316143036,
0.069159135222435,
0.18340638279914856,
-0.2054174691438675,
0.2874017059803009,
-0.36192086338996887,
-1.2532917261123657,
0.2829812467098236,
0.0528029128909111,
0.1364160180091858,
0.1131783202290535,
-0.942043662071228,
0.4436851143836975,
-0... |
func (m *MockHandler) CommentsDelete(username, slug string, id int) error {
ret := m.ctrl.Call(m, "CommentsDelete", username, slug, id)
ret0, _ := ret[0].(error)
return ret0
} | [
0.3545374870300293,
-0.6281046867370605,
0.3571172058582306,
0.3575480878353119,
1.3712385892868042,
-0.112698994576931,
0.5635232925415039,
-0.651488184928894,
-0.9323370456695557,
-0.24278384447097778,
-0.00564890680834651,
-1.028714656829834,
-1.335929036140442,
0.13897791504859924,
-... |
func (mr *MockHandlerMockRecorder) CommentsDelete(username, slug, id interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CommentsDelete", reflect.TypeOf((*MockHandler)(nil).CommentsDelete), username, slug, id)
} | [
0.5567077398300171,
0.12331194430589676,
0.3234938383102417,
0.2601696848869324,
0.6668069362640381,
-0.018799740821123123,
-0.22049839794635773,
-1.3023438453674316,
0.33868223428726196,
0.43395736813545227,
0.44387543201446533,
0.20312251150608063,
-1.1091924905776978,
0.6114180088043213... |
func (m *MockHandler) FavoritesUpdate(username, slug string, favortie bool) (*domain.User, *domain.Article, error) {
ret := m.ctrl.Call(m, "FavoritesUpdate", username, slug, favortie)
ret0, _ := ret[0].(*domain.User)
ret1, _ := ret[1].(*domain.Article)
ret2, _ := ret[2].(error)
return ret0, ret1, ret2
} | [
-0.1811113953590393,
-0.12192521244287491,
0.04018181189894676,
0.41452690958976746,
0.35098132491111755,
0.0508381612598896,
0.01130842324346304,
-0.21646392345428467,
-0.9423593878746033,
-0.21993941068649292,
-0.8462367653846741,
-1.1185001134872437,
-0.9915693402290344,
0.1225947514176... |
func (mr *MockHandlerMockRecorder) FavoritesUpdate(username, slug, favortie interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FavoritesUpdate", reflect.TypeOf((*MockHandler)(nil).FavoritesUpdate), username, slug, favortie)
} | [
0.08342096209526062,
0.40741798281669617,
0.2612397074699402,
0.49749377369880676,
-0.3942866027355194,
0.19241800904273987,
-0.8118793964385986,
-0.7754333019256592,
0.361613392829895,
0.3657541573047638,
-0.08626162260770798,
0.04570471867918968,
-1.0778189897537231,
0.3332684338092804,
... |
func (m *MockHandler) Tags() ([]string, error) {
ret := m.ctrl.Call(m, "Tags")
ret0, _ := ret[0].([]string)
ret1, _ := ret[1].(error)
return ret0, ret1
} | [
-0.29842525720596313,
0.6187623739242554,
0.28211677074432373,
0.06779463589191437,
1.081856608390808,
0.3747183382511139,
0.38320985436439514,
-0.47153353691101074,
-1.044122576713562,
-0.42318493127822876,
-0.6197934150695801,
-0.9599284529685974,
-0.7640506625175476,
1.4537123441696167,... |
func (mr *MockHandlerMockRecorder) Tags() *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Tags", reflect.TypeOf((*MockHandler)(nil).Tags))
} | [
0.24732980132102966,
1.4960150718688965,
0.23601017892360687,
-0.15545710921287537,
0.3676811158657074,
0.39276009798049927,
-0.7793994545936584,
-1.1044813394546509,
0.4681883752346039,
-0.05290650576353073,
0.15885281562805176,
0.29032859206199646,
-0.8304954171180725,
1.997402548789978,... |
func NewMockProfileLogic(ctrl *gomock.Controller) *MockProfileLogic {
mock := &MockProfileLogic{ctrl: ctrl}
mock.recorder = &MockProfileLogicMockRecorder{mock}
return mock
} | [
1.0270540714263916,
-0.03375961259007454,
0.3461737036705017,
1.0880389213562012,
-0.4671553075313568,
0.3656756281852722,
0.4328814446926117,
-0.6530953049659729,
0.555733323097229,
0.5763886570930481,
-0.45395880937576294,
-0.7773191332817078,
-0.12393155694007874,
0.8119136691093445,
... |
func (m *MockProfileLogic) EXPECT() *MockProfileLogicMockRecorder {
return m.recorder
} | [
0.7949617505073547,
0.07090763002634048,
0.2932938039302826,
0.5354672074317932,
-0.04601636901497841,
0.4936802089214325,
0.37673336267471313,
0.16045793890953064,
0.4965936541557312,
-0.5122795701026917,
0.7582691311836243,
0.41911691427230835,
-0.8345058560371399,
0.6132811307907104,
... |
func (m *MockProfileLogic) ProfileGet(requestingUserName, userName string) (*domain.User, bool, error) {
ret := m.ctrl.Call(m, "ProfileGet", requestingUserName, userName)
ret0, _ := ret[0].(*domain.User)
ret1, _ := ret[1].(bool)
ret2, _ := ret[2].(error)
return ret0, ret1, ret2
} | [
-0.8400856852531433,
0.018415365368127823,
0.4022526741027832,
0.735073447227478,
0.9420700669288635,
0.06350009888410568,
0.5678462386131287,
-0.5669497847557068,
-1.4582585096359253,
-0.1970028430223465,
-0.21625369787216187,
-0.8349491953849792,
-0.7258428335189819,
0.29669034481048584,... |
func (mr *MockProfileLogicMockRecorder) ProfileGet(requestingUserName, userName interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProfileGet", reflect.TypeOf((*MockProfileLogic)(nil).ProfileGet), requestingUserName, userName)
} | [
-0.30677202343940735,
0.5830278396606445,
0.3443072736263275,
0.5009766817092896,
0.15044979751110077,
0.1347392499446869,
-0.3472349941730499,
-1.1083725690841675,
0.08055473864078522,
0.11753513664007187,
0.6833221316337585,
0.4620559513568878,
-1.16255784034729,
0.6826328635215759,
0.... |
func (m *MockProfileLogic) ProfileUpdateFollow(loggedInUsername, username string, follow bool) (*domain.User, error) {
ret := m.ctrl.Call(m, "ProfileUpdateFollow", loggedInUsername, username, follow)
ret0, _ := ret[0].(*domain.User)
ret1, _ := ret[1].(error)
return ret0, ret1
} | [
0.42642176151275635,
-0.42988723516464233,
0.26596057415008545,
1.4105682373046875,
0.14504601061344147,
0.2120337337255478,
1.2651687860488892,
-0.33631834387779236,
-0.6133416295051575,
-0.24843396246433258,
-0.7469261288642883,
-1.0915160179138184,
-1.0468569993972778,
0.274146795272827... |
func (mr *MockProfileLogicMockRecorder) ProfileUpdateFollow(loggedInUsername, username, follow interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProfileUpdateFollow", reflect.TypeOf((*MockProfileLogic)(nil).ProfileUpdateFollow), loggedInUsername, username, follow)
} | [
0.32680413126945496,
-0.15588898956775665,
0.3862529993057251,
1.1065328121185303,
-0.8734014630317688,
0.6407008767127991,
0.2770673632621765,
-0.9522075057029724,
0.6351191401481628,
0.43825143575668335,
0.0956970676779747,
-0.010398069396615028,
-0.9829826951026917,
0.4664669930934906,
... |
func NewMockUserLogic(ctrl *gomock.Controller) *MockUserLogic {
mock := &MockUserLogic{ctrl: ctrl}
mock.recorder = &MockUserLogicMockRecorder{mock}
return mock
} | [
0.8758032321929932,
0.04839983582496643,
0.27434757351875305,
1.2089160680770874,
-1.068809986114502,
0.11923650652170181,
0.7824044823646545,
-0.2814936935901642,
0.3690095841884613,
0.6762396693229675,
-0.6840324997901917,
-0.2435055673122406,
-0.12400628626346588,
0.36791831254959106,
... |
func (m *MockUserLogic) EXPECT() *MockUserLogicMockRecorder {
return m.recorder
} | [
0.6534111499786377,
0.08374971896409988,
0.1482831835746765,
0.7214917540550232,
-0.4616638123989105,
0.5702671408653259,
0.2414303421974182,
0.21312038600444794,
0.2993396818637848,
-0.41542553901672363,
0.8263357877731323,
0.7187175750732422,
-0.8408927321434021,
0.2800067961215973,
0.... |
func (m *MockUserLogic) UserCreate(username, email, password string) (*domain.User, string, error) {
ret := m.ctrl.Call(m, "UserCreate", username, email, password)
ret0, _ := ret[0].(*domain.User)
ret1, _ := ret[1].(string)
ret2, _ := ret[2].(error)
return ret0, ret1, ret2
} | [
-0.5429761409759521,
0.1873764544725418,
0.22333545982837677,
0.6186990737915039,
0.8544210195541382,
0.15106956660747528,
0.42137694358825684,
-0.6127246618270874,
-1.4143060445785522,
-0.3700036108493805,
-0.48015081882476807,
-1.3987023830413818,
-0.3126085102558136,
0.7169641256332397,... |
func (mr *MockUserLogicMockRecorder) UserCreate(username, email, password interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UserCreate", reflect.TypeOf((*MockUserLogic)(nil).UserCreate), username, email, password)
} | [
0.3018513023853302,
0.8690166473388672,
0.3601815402507782,
0.7434926629066467,
-0.37589776515960693,
0.3070879876613617,
-0.33488643169403076,
-1.2562569379806519,
-0.038918912410736084,
0.5253229737281799,
0.40018606185913086,
-0.2648696005344391,
-0.6435389518737793,
1.0450248718261719,... |
func (m *MockUserLogic) UserLogin(email, password string) (*domain.User, string, error) {
ret := m.ctrl.Call(m, "UserLogin", email, password)
ret0, _ := ret[0].(*domain.User)
ret1, _ := ret[1].(string)
ret2, _ := ret[2].(error)
return ret0, ret1, ret2
} | [
-0.7170096039772034,
-0.4327760934829712,
0.4203126132488251,
0.4623813033103943,
0.24882842600345612,
0.17903810739517212,
0.7710921764373779,
-0.14607244729995728,
-0.7107153534889221,
-0.7277088761329651,
-1.2956008911132812,
-0.46859288215637207,
-0.26674550771713257,
0.133728414773941... |
func (mr *MockUserLogicMockRecorder) UserLogin(email, password interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UserLogin", reflect.TypeOf((*MockUserLogic)(nil).UserLogin), email, password)
} | [
0.17137864232063293,
0.2508629262447357,
0.3440118134021759,
0.26879796385765076,
-1.0462921857833862,
0.4375995099544525,
-0.3865413963794708,
-0.4597952663898468,
0.8516736626625061,
0.2125535011291504,
-0.19787490367889404,
0.6974564790725708,
-0.3999001085758209,
0.5046572685241699,
... |
func (m *MockUserLogic) UserGet(userName string) (*domain.User, string, error) {
ret := m.ctrl.Call(m, "UserGet", userName)
ret0, _ := ret[0].(*domain.User)
ret1, _ := ret[1].(string)
ret2, _ := ret[2].(error)
return ret0, ret1, ret2
} | [
-0.9628647565841675,
-0.297894150018692,
0.11498242616653442,
-0.11847210675477982,
0.5182328224182129,
-0.055767517536878586,
0.6544560790061951,
-0.9911113977432251,
-1.2003257274627686,
-0.47475236654281616,
-0.4940255880355835,
-0.5098947882652283,
-0.5562312006950378,
0.66244316101074... |
func (mr *MockUserLogicMockRecorder) UserGet(userName interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UserGet", reflect.TypeOf((*MockUserLogic)(nil).UserGet), userName)
} | [
-0.09006650745868683,
0.518282949924469,
0.3049981892108917,
0.06080925092101097,
-0.5444723963737488,
0.10440117120742798,
0.08032447844743729,
-1.3426374197006226,
0.4849751591682434,
0.2846399247646332,
0.3657151460647583,
0.29308947920799255,
-0.5632765293121338,
0.9852175116539001,
... |
func (m *MockUserLogic) UserEdit(userName string, newUser map[domain.UserUpdatableProperty]*string) (*domain.User, string, error) {
ret := m.ctrl.Call(m, "UserEdit", userName, newUser)
ret0, _ := ret[0].(*domain.User)
ret1, _ := ret[1].(string)
ret2, _ := ret[2].(error)
return ret0, ret1, ret2
} | [
-0.6138747334480286,
-0.2452615201473236,
-0.013411803171038628,
0.49059927463531494,
0.49721333384513855,
0.3949334919452667,
1.4068275690078735,
-0.3312836289405823,
-1.2141613960266113,
-0.2747665345668793,
-0.24489259719848633,
-0.4354356527328491,
0.06233004480600357,
0.62205487489700... |
func (mr *MockUserLogicMockRecorder) UserEdit(userName, newUser interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UserEdit", reflect.TypeOf((*MockUserLogic)(nil).UserEdit), userName, newUser)
} | [
0.07015321403741837,
0.41209685802459717,
0.11680308729410172,
0.40372908115386963,
-0.3812345862388611,
0.8550622463226318,
0.530670702457428,
-0.918990433216095,
0.13999119400978088,
0.5606685280799866,
0.6768712997436523,
0.6641468405723572,
-0.1405964493751526,
0.6601161360740662,
0.... |
func NewMockArticlesLogic(ctrl *gomock.Controller) *MockArticlesLogic {
mock := &MockArticlesLogic{ctrl: ctrl}
mock.recorder = &MockArticlesLogicMockRecorder{mock}
return mock
} | [
0.839619517326355,
-0.36906978487968445,
0.07591694593429565,
-0.19775870442390442,
-1.07970130443573,
0.0649886354804039,
0.04153107851743698,
-0.6033341288566589,
-0.14000487327575684,
1.0933574438095093,
-0.5706164836883545,
-0.3953358829021454,
0.610666036605835,
-0.10983895510435104,
... |
func (m *MockArticlesLogic) EXPECT() *MockArticlesLogicMockRecorder {
return m.recorder
} | [
0.6742787957191467,
-0.094141386449337,
0.157245934009552,
-0.282659649848938,
-0.18235492706298828,
0.14307039976119995,
-0.02064586989581585,
0.07694674283266068,
0.16204166412353516,
-0.05731789022684097,
0.6625588536262512,
0.6449674963951111,
-0.3583093285560608,
-0.010157964192330837... |
func (m *MockArticlesLogic) ArticlesFeed(username string, limit, offset int) (*domain.User, domain.ArticleCollection, int, error) {
ret := m.ctrl.Call(m, "ArticlesFeed", username, limit, offset)
ret0, _ := ret[0].(*domain.User)
ret1, _ := ret[1].(domain.ArticleCollection)
ret2, _ := ret[2].(int)
ret3, _ := ret[3].... | [
0.20503662526607513,
0.11451906710863113,
0.1682843118906021,
-0.255445271730423,
0.2802349328994751,
0.5638493895530701,
0.8404408097267151,
-0.46580326557159424,
-1.5221494436264038,
-0.7292159795761108,
-1.0169203281402588,
-0.007810811046510935,
-0.4325050115585327,
-0.1115578487515449... |
func (mr *MockArticlesLogicMockRecorder) ArticlesFeed(username, limit, offset interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ArticlesFeed", reflect.TypeOf((*MockArticlesLogic)(nil).ArticlesFeed), username, limit, offset)
} | [
0.7437177300453186,
0.542052686214447,
0.1269623190164566,
-0.5876792073249817,
-0.4716702401638031,
0.48489928245544434,
-0.5558810234069824,
-0.5076337456703186,
-0.20735123753547668,
-0.13485117256641388,
-0.2812834680080414,
1.2979199886322021,
-0.4076317548751831,
0.07415198534727097,... |
func (m *MockArticlesLogic) GetArticles(username string, limit, offset int, filters []domain.ArticleFilter) (*domain.User, domain.ArticleCollection, int, error) {
ret := m.ctrl.Call(m, "GetArticles", username, limit, offset, filters)
ret0, _ := ret[0].(*domain.User)
ret1, _ := ret[1].(domain.ArticleCollection)
ret2... | [
-0.38593485951423645,
0.5345154404640198,
0.4506887197494507,
-0.2299286276102066,
0.5658631324768066,
0.29961028695106506,
1.457796335220337,
-0.8686965107917786,
-0.815844714641571,
-0.4925363063812256,
-0.39404162764549255,
-0.8381502628326416,
-0.4762312173843384,
0.05034870654344559,
... |
func (mr *MockArticlesLogicMockRecorder) GetArticles(username, limit, offset, filters interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetArticles", reflect.TypeOf((*MockArticlesLogic)(nil).GetArticles), username, limit, offset, filters)
} | [
0.2134294956922531,
1.2789908647537231,
0.6429210305213928,
-0.6421732902526855,
0.34718674421310425,
0.027846409007906914,
0.20783481001853943,
-0.9333137273788452,
0.6997447609901428,
0.5318350195884705,
0.23887118697166443,
0.566291868686676,
-0.49820664525032043,
0.41790008544921875,
... |
func NewMockArticleLogic(ctrl *gomock.Controller) *MockArticleLogic {
mock := &MockArticleLogic{ctrl: ctrl}
mock.recorder = &MockArticleLogicMockRecorder{mock}
return mock
} | [
0.8453789353370667,
-0.23233984410762787,
0.0801767036318779,
0.1778433918952942,
-0.8005173802375793,
0.26081836223602295,
0.32300981879234314,
-0.28248900175094604,
0.11294439435005188,
1.0894731283187866,
-0.28178220987319946,
-0.32761168479919434,
0.3321734368801117,
0.0558167137205600... |
func (m *MockArticleLogic) EXPECT() *MockArticleLogicMockRecorder {
return m.recorder
} | [
0.6777293682098389,
-0.05795139819383621,
0.15172620117664337,
-0.1141061931848526,
-0.09229440987110138,
0.21194854378700256,
0.11768785119056702,
0.12516199052333832,
0.2595287263393402,
-0.1350003331899643,
0.8594231605529785,
0.6840144395828247,
-0.5680448412895203,
0.17283475399017334... |
func (m *MockArticleLogic) ArticleGet(slug, username string) (*domain.User, *domain.Article, error) {
ret := m.ctrl.Call(m, "ArticleGet", slug, username)
ret0, _ := ret[0].(*domain.User)
ret1, _ := ret[1].(*domain.Article)
ret2, _ := ret[2].(error)
return ret0, ret1, ret2
} | [
-0.8087195754051208,
-0.4316962957382202,
0.1320265829563141,
-0.14173875749111176,
0.5651938319206238,
-0.22687499225139618,
0.6224458813667297,
-0.17007504403591156,
-1.6289607286453247,
-0.196224644780159,
-0.10452447086572647,
0.09001938998699188,
-0.7181783318519592,
-0.00550252711400... |
func (mr *MockArticleLogicMockRecorder) ArticleGet(slug, username interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ArticleGet", reflect.TypeOf((*MockArticleLogic)(nil).ArticleGet), slug, username)
} | [
-0.1692710667848587,
0.23922374844551086,
0.20780667662620544,
-0.31908363103866577,
0.12070026248693466,
-0.16101272404193878,
-0.32543084025382996,
-0.3751228153705597,
0.14197973906993866,
0.5734667181968689,
0.7205153107643127,
1.1446696519851685,
-1.0417134761810303,
0.574672698974609... |
func (m *MockArticleLogic) ArticlePost(username string, article domain.Article) (*domain.User, *domain.Article, error) {
ret := m.ctrl.Call(m, "ArticlePost", username, article)
ret0, _ := ret[0].(*domain.User)
ret1, _ := ret[1].(*domain.Article)
ret2, _ := ret[2].(error)
return ret0, ret1, ret2
} | [
-0.20022208988666534,
-0.16500240564346313,
0.20451687276363373,
0.45766910910606384,
-0.0273754820227623,
0.3138722777366638,
0.5852574110031128,
-0.49446311593055725,
-0.7894901633262634,
0.21363411843776703,
-1.0643093585968018,
-0.7744911313056946,
-0.6667827367782593,
-0.2463215887546... |
func (mr *MockArticleLogicMockRecorder) ArticlePost(username, article interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ArticlePost", reflect.TypeOf((*MockArticleLogic)(nil).ArticlePost), username, article)
} | [
0.24045699834823608,
0.3950363099575043,
0.08513446897268295,
0.09977113455533981,
-0.8079915642738342,
0.3568142354488373,
-0.3527681529521942,
-0.8448377251625061,
0.8238423466682434,
0.7666711807250977,
0.32101696729660034,
0.3517945408821106,
-0.9502388834953308,
0.4329387843608856,
... |
func (m *MockArticleLogic) ArticlePut(username, slug string, fieldsToUpdate map[domain.ArticleUpdatableField]*string) (*domain.User, *domain.Article, error) {
ret := m.ctrl.Call(m, "ArticlePut", username, slug, fieldsToUpdate)
ret0, _ := ret[0].(*domain.User)
ret1, _ := ret[1].(*domain.Article)
ret2, _ := ret[2].(e... | [
-0.7462339997291565,
-0.2961365878582001,
0.010278837755322456,
-0.5821374654769897,
-0.1805720180273056,
0.4024762511253357,
1.2214407920837402,
0.005560736637562513,
-1.296645164489746,
0.3262096047401428,
-0.5958935618400574,
-0.4621874690055847,
-0.8633868098258972,
-0.1760473847389221... |
func (mr *MockArticleLogicMockRecorder) ArticlePut(username, slug, fieldsToUpdate interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ArticlePut", reflect.TypeOf((*MockArticleLogic)(nil).ArticlePut), username, slug, fieldsToUpdate)
} | [
-0.30588847398757935,
0.2451465129852295,
0.039458438754081726,
-0.717179000377655,
-0.7470497488975525,
0.6057791709899902,
0.23580829799175262,
-0.13152745366096497,
0.062107525765895844,
0.9773015975952148,
0.2601548433303833,
0.5937387347221375,
-1.1292660236358643,
0.05720445141196251... |
func (m *MockArticleLogic) ArticleDelete(username, slug string) error {
ret := m.ctrl.Call(m, "ArticleDelete", username, slug)
ret0, _ := ret[0].(error)
return ret0
} | [
0.026786239817738533,
-0.16483624279499054,
-0.09515926241874695,
0.41783276200294495,
0.9937828183174133,
-0.015571332536637783,
0.6164497137069702,
0.34197092056274414,
-0.9594929218292236,
0.20203012228012085,
0.2083550989627838,
-0.7454660534858704,
-1.1676337718963623,
0.0731579959392... |
func (mr *MockArticleLogicMockRecorder) ArticleDelete(username, slug interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ArticleDelete", reflect.TypeOf((*MockArticleLogic)(nil).ArticleDelete), username, slug)
} | [
0.35335737466812134,
0.45179495215415955,
0.04268242418766022,
0.15085645020008087,
0.2129458487033844,
0.04891924932599068,
-0.1996212601661682,
-0.19210129976272583,
0.612615168094635,
1.0712536573410034,
0.7754660844802856,
0.5879908800125122,
-1.051334023475647,
0.6098937392234802,
-... |
func NewMockCommentsLogic(ctrl *gomock.Controller) *MockCommentsLogic {
mock := &MockCommentsLogic{ctrl: ctrl}
mock.recorder = &MockCommentsLogicMockRecorder{mock}
return mock
} | [
0.8447836637496948,
-0.45823097229003906,
0.37643149495124817,
-0.19188477098941803,
-0.7103061079978943,
-0.2521474361419678,
0.6312114000320435,
-1.1721501350402832,
0.21667923033237457,
0.9244703054428101,
-0.2249874472618103,
-0.6329552531242371,
-0.09276311099529266,
0.795065343379974... |
func (m *MockCommentsLogic) EXPECT() *MockCommentsLogicMockRecorder {
return m.recorder
} | [
0.7967661023139954,
-0.06627967953681946,
0.2912455201148987,
-0.20150107145309448,
-0.09987012296915054,
-0.004976992029696703,
0.31413814425468445,
-0.3360344469547272,
0.2559475004673004,
-0.1273408681154251,
0.966248631477356,
0.5961959958076477,
-0.7152254581451416,
0.5169833302497864... |
func (m *MockCommentsLogic) CommentsGet(slug string) ([]domain.Comment, error) {
ret := m.ctrl.Call(m, "CommentsGet", slug)
ret0, _ := ret[0].([]domain.Comment)
ret1, _ := ret[1].(error)
return ret0, ret1
} | [
-0.5237255692481995,
-0.524529755115509,
0.38105690479278564,
-0.19365336000919342,
1.083319902420044,
-0.45977675914764404,
0.36463162302970886,
-1.081343173980713,
-1.3160468339920044,
-0.7815743684768677,
0.06252679973840714,
-0.17385368049144745,
-0.9474180936813354,
0.6593875885009766... |
func (mr *MockCommentsLogicMockRecorder) CommentsGet(slug interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CommentsGet", reflect.TypeOf((*MockCommentsLogic)(nil).CommentsGet), slug)
} | [
-0.17383722960948944,
0.1414593756198883,
0.3361207842826843,
-0.6405803561210632,
0.31894996762275696,
-0.4435013234615326,
-0.31788235902786255,
-1.2578264474868774,
0.12721364200115204,
-0.07879398763179779,
0.8488877415657043,
0.3968530595302582,
-1.1229857206344604,
0.8193896412849426... |
func (m *MockCommentsLogic) CommentsPost(username, slug, comment string) (*domain.Comment, error) {
ret := m.ctrl.Call(m, "CommentsPost", username, slug, comment)
ret0, _ := ret[0].(*domain.Comment)
ret1, _ := ret[1].(error)
return ret0, ret1
} | [
0.06262117624282837,
-0.22240394353866577,
0.1725216805934906,
0.47170835733413696,
0.6025107502937317,
0.04652324691414833,
0.6361882090568542,
-0.7934172749519348,
-0.7917072772979736,
-0.21168860793113708,
-1.0177239179611206,
-1.0985735654830933,
-0.7816414833068848,
0.1407759338617324... |
func (mr *MockCommentsLogicMockRecorder) CommentsPost(username, slug, comment interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CommentsPost", reflect.TypeOf((*MockCommentsLogic)(nil).CommentsPost), username, slug, comment)
} | [
0.37955230474472046,
0.3125326335430145,
-0.011368170380592346,
0.0884050652384758,
-0.27220064401626587,
0.11511699855327606,
-0.4086129069328308,
-1.4701484441757202,
0.43375492095947266,
0.14807891845703125,
0.28784260153770447,
0.14777635037899017,
-0.9846405386924744,
0.34674403071403... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.