Skip to content

Commit

Permalink
docs: add for quality codebase design
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Dec 27, 2023
1 parent d339a0f commit 26ba712
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions code-quality/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# 定制高质量数据

- 代码类型:MVC、DDD、
- 代码实现:Stream API、相近上下文、
- 代码注释:中文文档、英文文档、
- 测试质量:测试类型、测试写法
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ class WorkerManager(private val context: WorkerContext) {

// take context.completionTypeSize for each type
return finalList.keys.map {
finalList[it]?.take(context.completionTypeSize) ?: emptyList()
finalList[it]?.shuffled()?.take(context.completionTypeSize) ?: emptyList()
}.flatten()
}
}

0 comments on commit 26ba712

Please sign in to comment.