MCPcopy Index your code
hub / github.com/fastapi/fastapi / get_users_to_write

Function get_users_to_write

scripts/contributors.py:207–223  ·  view source on GitHub ↗
(
    *,
    counter: Counter[str],
    authors: dict[str, Author],
    min_count: int = 2,
)

Source from the content-addressed store, hash-verified

205
206
207def 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
226def update_content(*, content_path: Path, new_content: Any) -> bool:

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…