Collaboration network: static graph, core stats, and growth animation#3
Open
dima-yanter wants to merge 4 commits intomainfrom
Open
Collaboration network: static graph, core stats, and growth animation#3dima-yanter wants to merge 4 commits intomainfrom
dima-yanter wants to merge 4 commits intomainfrom
Conversation
Fetches contributor stats from any GitHub repo via the API and runs the same nonlinear maintenance model fitting as nonlinear-performance.ipynb. Handles 202 retry, rate limit errors, and missing/empty repos. https://claude.ai/code/session_01VAzMQrsv5yZXFmC4BxGrQ2
Builds a contributor collaboration network from GitHub PR and commit history, and a code archaeology heatmap showing how deep into history a contributor must reach to understand code areas they arrived at after others had left. https://claude.ai/code/session_01VAzMQrsv5yZXFmC4BxGrQ2
Tests the hypothesis that the core collaboration network is very small: fetches top 1000 GitHub repos by stars, computes 80/20 core size, Gini coefficient, temporal core, and top-contributor dominance per repo, then visualises aggregate distributions across the dataset. https://claude.ai/code/session_01VAzMQrsv5yZXFmC4BxGrQ2
Renders GitHub PR collaboration history as a growing-network movie: dark background, plasma-coloured nodes (purple=early, orange=late), glow flash on new arrivals. Outputs a GIF/MP4 via matplotlib and an interactive Plotly animation with play button + time scrubber. https://claude.ai/code/session_01VAzMQrsv5yZXFmC4BxGrQ2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Three notebooks building on the nonlinear performance model theme:
git-collaboration-network.ipynbStatic collaboration graph for any repo — PR edges (orange), temporal file-overlap edges (green), both (purple) — plus Code Archaeology heatmap.
github-core-network-stats.ipynbTests the JIRA hypothesis ("core is small") across the top 1000 GitHub repos: 80/20 core size, Gini coefficient, top-contributor dominance, CDF, and language breakdown.
collaboration-network-growth.ipynb(new)Renders the full history of a project as a movie — the collaboration network grows from a single dot outward, one time period at a time:
matplotlib.animation(dark background, plasma-coloured nodes, glow flash on new arrivals)plasma); node size = cumulative PR count; edge alpha grows with ageREPOfacebook/reactowner/repoTIME_RESOLUTION'Q''M'monthly,'Q'quarterly,'Y'yearlyMAX_PRS300OUTPUT_FILEcollaboration_growth.gif.gif(Pillow) or.mp4(ffmpeg)FPS4Test plan
collaboration-network-growth.ipynbon a small repo (e.g."pallets/flask") — GIF and Plotly figure should both renderTIME_RESOLUTION = 'M'and confirm more frames / finer granularityOUTPUT_FILE = 'growth.mp4'with ffmpeg installed and confirm MP4 outputgithub-core-network-stats.ipynbwithMAX_REPOS = 50for a quick smoke testhttps://claude.ai/code/session_01VAzMQrsv5yZXFmC4BxGrQ2