(
*,
counter: Counter[str],
authors: dict[str, Author],
min_count: int = 2,
)
| 205 | |
| 206 | |
| 207 | def get_users_to_write( |
| 208 | *, |
| 209 | counter: Counter[str], |
| 210 | authors: dict[str, Author], |
| 211 | min_count: int = 2, |
| 212 | ) -> dict[str, Any]: |
| 213 | users: dict[str, Any] = {} |
| 214 | for user, count in counter.most_common(): |
| 215 | if count >= min_count: |
| 216 | author = authors[user] |
| 217 | users[user] = { |
| 218 | "login": user, |
| 219 | "count": count, |
| 220 | "avatarUrl": author.avatarUrl, |
| 221 | "url": author.url, |
| 222 | } |
| 223 | return users |
| 224 | |
| 225 | |
| 226 | def update_content(*, content_path: Path, new_content: Any) -> bool: |
no outgoing calls
no test coverage detected
searching dependent graphs…