Repository Analysis

Advanced code similarity detection powered by Vercel

91.5%
Overall Similarity
26,392
Matching Lines
Exact: 25,343 / Fuzzy: 1,049
133
Common Files
59.4% of 224 unique files
28,743
Lines Analyzed
Across 133 files
15
Moved Files
80%+ similarity threshold

Repository Overview

toktik

https://github.com/Toktik-Team/toktik
Files: 202
Unique: 54

simpledouyin

https://github.com/yuxialuozi/simpledouyin
Files: 155
Unique: 7

File Comparison Details

Sort by similarity:
File Path Total Lines Matching Lines Similarity Progress
.idea/.gitignore
View Diff
9 8 88.9%
.idea/modules.xml
View Diff
8 8 98.3%
.idea/vcs.xml
6 6 100.0%
Dockerfile
View Diff
37 2 5.4%
add-kitex-service.sh
View Diff
49 34 68.5%
docs/HowToAddServices.md
View Diff
8 7 87.5%
go.mod
View Diff
177 124 67.3%
go.sum
View Diff
1,178 331 28.0%
idl/auth.proto
View Diff
48 47 97.6%
idl/comment.proto
View Diff
63 63 99.8%
idl/favorite.proto
View Diff
83 82 98.7%
idl/feed.proto
View Diff
45 45 99.7%
idl/publish.proto
View Diff
44 43 97.5%
idl/relation.proto
View Diff
102 102 99.9%
idl/user.proto
View Diff
35 34 96.8%
idl/wechat.proto
View Diff
40 40 99.7%
kitex_gen/douyin/auth/auth.pb.fast.go
669 669 100.0%
kitex_gen/douyin/auth/auth.pb.go
View Diff
592 564 94.5%
kitex_gen/douyin/auth/authservice/authservice.go
View Diff
602 500 82.9%
kitex_gen/douyin/auth/authservice/client.go
View Diff
61 61 99.6%
kitex_gen/douyin/auth/authservice/server.go
View Diff
24 20 82.3%
kitex_gen/douyin/comment/comment.pb.fast.go
View Diff
909 909 100.0%
kitex_gen/douyin/comment/comment.pb.go
View Diff
822 794 95.5%
kitex_gen/douyin/comment/commentservice/client.go
View Diff
61 61 99.7%
kitex_gen/douyin/comment/commentservice/commentservice.go
View Diff
602 500 83.0%
kitex_gen/douyin/comment/commentservice/server.go
View Diff
24 20 82.5%
kitex_gen/douyin/favorite/favorite.pb.fast.go
View Diff
1,168 1,168 100.0%
kitex_gen/douyin/favorite/favorite.pb.go
View Diff
1,066 1,024 95.0%
kitex_gen/douyin/favorite/favoriteservice/client.go
View Diff
79 79 99.7%
kitex_gen/douyin/favorite/favoriteservice/favoriteservice.go
View Diff
1,112 953 85.7%
kitex_gen/douyin/favorite/favoriteservice/server.go
View Diff
24 20 82.5%
kitex_gen/douyin/feed/feed.pb.fast.go
View Diff
774 774 100.0%
kitex_gen/douyin/feed/feed.pb.go
View Diff
580 548 93.4%
kitex_gen/douyin/feed/feedservice/client.go
View Diff
55 55 99.6%
kitex_gen/douyin/feed/feedservice/feedservice.go
View Diff
432 349 80.6%
kitex_gen/douyin/feed/feedservice/server.go
View Diff
24 20 82.3%
kitex_gen/douyin/publish/publish.pb.fast.go
View Diff
625 625 99.7%
kitex_gen/douyin/publish/publish.pb.go
View Diff
585 552 93.5%
kitex_gen/douyin/publish/publishservice/client.go
View Diff
61 61 99.7%
kitex_gen/douyin/publish/publishservice/publishservice.go
View Diff
602 500 83.0%
kitex_gen/douyin/publish/publishservice/server.go
View Diff
24 20 82.5%
kitex_gen/douyin/relation/relation.pb.fast.go
View Diff
1,361 1,361 99.7%
kitex_gen/douyin/relation/relation.pb.go
View Diff
1,217 1,173 95.4%
kitex_gen/douyin/relation/relationservice/client.go
View Diff
91 91 99.8%
kitex_gen/douyin/relation/relationservice/relationservice.go
View Diff
1,452 1,255 86.4%
kitex_gen/douyin/relation/relationservice/server.go
View Diff
24 20 82.5%
kitex_gen/douyin/user/user.pb.fast.go
585 585 100.0%
kitex_gen/douyin/user/user.pb.go
View Diff
429 393 90.7%
kitex_gen/douyin/user/userservice/client.go
View Diff
49 49 99.5%
kitex_gen/douyin/user/userservice/server.go
View Diff
24 20 82.3%
kitex_gen/douyin/user/userservice/userservice.go
View Diff
262 198 75.3%
kitex_gen/douyin/wechat/wechat.pb.fast.go
View Diff
677 677 99.7%
kitex_gen/douyin/wechat/wechat.pb.go
View Diff
551 517 93.1%
kitex_gen/douyin/wechat/wechatservice/client.go
View Diff
55 55 99.6%
kitex_gen/douyin/wechat/wechatservice/server.go
View Diff
24 20 82.4%
kitex_gen/douyin/wechat/wechatservice/wechatservice.go
View Diff
432 349 80.6%
logging/init.go
26 26 100.0%
otel.yaml
View Diff
38 34 88.9%
repo/comments.gen.go
View Diff
434 429 98.8%
repo/favorites.gen.go
View Diff
404 399 98.8%
repo/gen.go
View Diff
143 138 96.4%
repo/init.go
View Diff
41 38 92.3%
repo/migrate/migrate.go
View Diff
28 23 82.1%
repo/model/comment.go
10 10 100.0%
repo/model/favorite.go
8 8 100.0%
repo/model/model.go
14 14 100.0%
repo/model/relation.go
8 8 100.0%
repo/model/token.go
View Diff
9 7 77.8%
repo/model/user.go
View Diff
200 195 97.4%
repo/model/user_test.go
36 36 100.0%
repo/model/video.go
13 13 100.0%
repo/relations.gen.go
View Diff
404 399 98.8%
repo/user_tokens.gen.go
View Diff
418 413 98.8%
repo/users.gen.go
View Diff
438 433 98.9%
repo/videos.gen.go
View Diff
434 429 98.8%
rpc/http.go
39 39 100.0%
service/auth/build.sh
13 13 100.0%
service/auth/handler.go
View Diff
181 175 96.7%
service/auth/kitex_info.yaml
View Diff
5 4 76.2%
service/auth/main.go
View Diff
48 46 95.4%
service/auth/script/bootstrap.sh
22 22 100.0%
service/comment/build.sh
13 13 100.0%
service/comment/handler.go
View Diff
330 322 97.5%
service/comment/kitex_info.yaml
View Diff
4 4 97.1%
service/comment/main.go
View Diff
50 49 97.6%
service/comment/script/bootstrap.sh
22 22 100.0%
service/favorite/build.sh
13 13 100.0%
service/favorite/handler.go
View Diff
275 267 97.0%
service/favorite/kitex_info.yaml
View Diff
4 4 97.1%
service/favorite/main.go
View Diff
48 47 97.6%
service/favorite/script/bootstrap.sh
22 22 100.0%
service/feed/build.sh
13 13 100.0%
service/feed/handler.go
View Diff
291 281 96.3%
service/feed/kitex_info.yaml
View Diff
4 4 97.1%
service/feed/main.go
View Diff
50 49 97.6%
service/feed/script/bootstrap.sh
22 22 100.0%
service/publish/build.sh
13 13 100.0%
service/publish/handler.go
View Diff
260 237 91.0%
service/publish/kitex_info.yaml
View Diff
4 4 97.1%
service/publish/main.go
View Diff
48 47 97.5%
service/publish/script/bootstrap.sh
22 22 100.0%
service/relation/build.sh
13 13 100.0%
service/relation/handler.go
View Diff
447 441 98.6%
service/relation/kitex_info.yaml
View Diff
4 4 97.1%
service/relation/main.go
View Diff
48 47 97.5%
service/relation/script/bootstrap.sh
22 22 100.0%
service/user/build.sh
13 13 100.0%
service/user/handler.go
View Diff
252 247 97.7%
service/user/kitex_info.yaml
View Diff
4 4 97.1%
service/user/main.go
View Diff
48 46 95.4%
service/user/script/bootstrap.sh
22 22 100.0%
service/web/auth/handler.go
View Diff
103 99 96.0%
service/web/comment/handler.go
View Diff
190 184 96.6%
service/web/favorite/handler.go
View Diff
170 166 97.5%
service/web/feed/handler.go
View Diff
89 84 94.2%
service/web/main.go
View Diff
86 73 84.9%
service/web/mw/auth.go
View Diff
126 123 97.5%
service/web/mw/json.go
29 29 100.0%
service/web/publish/handler.go
View Diff
172 168 97.5%
service/web/relation/handler.go
View Diff
255 251 98.3%
service/web/user/handler.go
View Diff
82 77 93.8%
service/web/wechat/handler.go
View Diff
164 160 97.4%
service/wechat/build.sh
13 13 100.0%
service/wechat/db/gen.sh
3 3 100.0%
service/wechat/db/msg.pb.go
262 262 100.0%
service/wechat/db/msg.proto
17 17 100.0%
service/wechat/handler.go
View Diff
225 220 97.7%
service/wechat/kitex_info.yaml
View Diff
4 4 97.1%
service/wechat/main.go
View Diff
48 47 97.5%
service/wechat/script/bootstrap.sh
22 22 100.0%
storage/fs.go
View Diff
53 51 96.2%
storage/provider.go
View Diff
37 35 94.6%
storage/s3.go
View Diff
56 54 96.4%

Moved Files

Files relocated between repositories with 80%+ similarity

constant/biz/publish.go
constants/biz/publish.go
100.0%
constant/biz/response.go
constants/biz/response.go
100.0%
constant/biz/feed.go
constants/biz/feed.go
100.0%
constant/biz/comment.go
constants/biz/comment.go
100.0%
constant/biz/wechat.go
constants/biz/wechat.go
100.0%
constant/biz/user.go
constants/biz/user.go
100.0%
constant/biz/auth.go
constants/biz/auth.go
100.0%
constant/biz/favorite.go
constants/biz/favorite.go
100.0%
constant/biz/gwerror.go
constants/biz/gwerror.go
99.6%
constant/biz/statuscode.go
constants/biz/statuscode.go
100.0%
... and 5 more moved files

Unique Files

Unique to toktik (54 files)

  • service/relation/handler_test.go
  • service/wechat/kitex.yaml
  • manifests-dev/deployment-toktik-favorite-api.yaml
  • manifests-dev/service-toktik-comment-api.yaml
  • docs/images/cert-cut.png
  • service/comment/handler_test.go
  • manifests-dev/service-toktik-feed-api.yaml
  • manifests-dev/deployment-toktik-comment-api.yaml
  • manifests-dev/deployment-toktik-user-api.yaml
  • manifests-dev/service-toktik-auth-api.yaml
... and 44 more files

Unique to simpledouyin (7 files)

  • add-kitex-service.ps1
  • .idea/dataSources.xml
  • docs/sql/create_tables.sql
  • docs/service/authService.md
  • .idea/protoeditor.xml
  • config/env.go
  • constants/constants.go