{ "cells": [ { "cell_type": "markdown", "id": "ce0d314b", "metadata": {}, "source": [ "## GAWD dataset\n", "\n", "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/SwareUG/gh-aw-dataset-builder/blob/main/data_analysis/load_GAWD.ipynb)\n", "\n", "This notebook loads **A Dataset of GitHub Agentic Workflow Histories: Early Adopters** in the same lightweight style as `load_AIDev.ipynb`.\n", "\n", "By default this notebook reads the public Parquet files from Hugging Face, matching how an external user would load the dataset. For local development, set `USE_LOCAL_MIRROR = True` to use a release folder with the same `data/*.parquet` layout.\n" ] }, { "cell_type": "code", "execution_count": 1, "id": "ba3f3585", "metadata": {}, "outputs": [], "source": [ "from __future__ import annotations\n", "\n", "import importlib.util\n", "import subprocess\n", "import sys\n", "from io import BytesIO\n", "from pathlib import Path\n", "from urllib.request import urlopen\n", "\n", "REQUIRED_PACKAGES = {\n", " \"pandas\": \"pandas\",\n", " \"pyarrow\": \"pyarrow\",\n", "}\n", "\n", "if \"google.colab\" in sys.modules:\n", " missing = [\n", " package\n", " for package, import_name in REQUIRED_PACKAGES.items()\n", " if importlib.util.find_spec(import_name) is None\n", " ]\n", " if missing:\n", " subprocess.check_call([sys.executable, \"-m\", \"pip\", \"install\", \"-q\", *missing])\n", "\n", "import pandas as pd\n", "\n", "DATASET_ID = \"pavtch/gawd\"\n", "DATASET_REVISION = \"main\"\n", "LOCAL_RELEASE_CANDIDATES = [\n", " Path(\"..\"),\n", " Path(\".\"),\n", " Path(\"../releases/gh-aw-early-adopters-source-history-2026-06-26\"),\n", " Path(\"releases/gh-aw-early-adopters-source-history-2026-06-26\"),\n", " Path(\"../releases/gawd\"),\n", " Path(\"releases/gawd\"),\n", "]\n", "LOCAL_RELEASE_MIRROR = next(\n", " (\n", " path.resolve()\n", " for path in LOCAL_RELEASE_CANDIDATES\n", " if (path / \"data\").is_dir() and any((path / \"data\").glob(\"*.parquet\"))\n", " ),\n", " None,\n", ")\n", "USE_LOCAL_MIRROR = \"google.colab\" not in sys.modules and LOCAL_RELEASE_MIRROR is not None\n", "\n", "\n", "def remote_parquet_url(table_name: str) -> str:\n", " return (\n", " f\"https://huggingface.co/datasets/{DATASET_ID}/resolve/\"\n", " f\"{DATASET_REVISION}/data/{table_name}.parquet\"\n", " )\n", "\n", "\n", "def local_parquet_path(table_name: str) -> Path:\n", " if LOCAL_RELEASE_MIRROR is None:\n", " raise FileNotFoundError(\"No local release mirror with a data/ directory was found.\")\n", " return LOCAL_RELEASE_MIRROR / \"data\" / f\"{table_name}.parquet\"\n", "\n", "\n", "def parquet_path(table_name: str) -> str:\n", " if USE_LOCAL_MIRROR:\n", " return str(local_parquet_path(table_name))\n", " return remote_parquet_url(table_name)\n", "\n", "\n", "def read_parquet_table(table_name: str) -> pd.DataFrame:\n", " if USE_LOCAL_MIRROR:\n", " return pd.read_parquet(local_parquet_path(table_name))\n", "\n", " try:\n", " with urlopen(remote_parquet_url(table_name)) as response:\n", " return pd.read_parquet(BytesIO(response.read()))\n", " except Exception:\n", " if LOCAL_RELEASE_MIRROR is not None:\n", " return pd.read_parquet(local_parquet_path(table_name))\n", " raise\n", "\n", "NOTEBOOK_DIR = Path(\"data_analysis\") if Path(\"data_analysis\").is_dir() else Path(\".\")\n" ] }, { "cell_type": "code", "execution_count": 2, "id": "42fc9681", "metadata": {}, "outputs": [], "source": [ "repository_df = read_parquet_table(\"repository\")\n", "source_markdown_file_history_df = read_parquet_table(\"source_markdown_file_history\")\n", "source_markdown_file_snapshot_df = read_parquet_table(\"source_markdown_file_snapshot\")\n", "source_markdown_file_version_df = read_parquet_table(\"source_markdown_file_version\")\n", "lock_file_snapshot_df = read_parquet_table(\"lock_file_snapshot\")\n" ] }, { "cell_type": "code", "execution_count": 3, "id": "febb7cd7", "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
repository_idurllicenserepo_full_namerepo_ownerrepo_namemain_languageforksstarscreated_atupdated_atpushed_at
09089213639968762207https://github.com/apache/cloudstackApache-2.0apache/cloudstackapachecloudstackJava133429552013-04-29T22:27:12Z2026-06-27T18:09:29Z2026-06-26T18:15:59Z
14902717555605226939https://github.com/brunoborges/fx2048GPL-3.0brunoborges/fx2048brunoborgesfx2048Java1272912014-03-31T04:08:25Z2026-06-14T06:40:51Z2026-06-14T06:40:46Z
28401317167309685863https://github.com/vaadin/flowApache-2.0vaadin/flowvaadinflowJava2087452015-04-29T17:54:35Z2026-06-27T17:27:01Z2026-06-26T15:41:28Z
31689116779471759733https://github.com/Activiti/activiti-cloudApache-2.0Activiti/activiti-cloudActivitiactiviti-cloudJava48902020-01-27T11:13:42Z2026-06-26T18:48:10Z2026-06-27T12:44:15Z
48707166185860304590https://github.com/duckduckgo/AndroidApache-2.0duckduckgo/AndroidduckduckgoAndroidKotlin135847132017-01-13T17:11:25Z2026-06-26T23:05:16Z2026-06-27T19:40:28Z
.......................................
2575427182896104728152https://github.com/oboapp/oboappUnlicenseoboapp/oboappoboappoboappTypeScript9132025-12-12T12:35:25Z2026-06-26T16:25:57Z2026-06-26T16:25:52Z
2588936047867513918691https://github.com/felipementel/GitHubCopilotD...NaNfelipementel/GitHubCopilotDevDays-Curitiba-2026felipementelGitHubCopilotDevDays-Curitiba-2026C#1142026-05-09T13:06:58Z2026-06-11T01:10:38Z2026-06-27T11:22:27Z
2593451869941153973759https://github.com/fqfqgo/clash-verge-revGPL-3.0fqfqgo/clash-verge-revfqfqgoclash-verge-revTypeScript1182026-02-22T14:23:01Z2026-06-22T04:22:51Z2026-06-22T05:17:06Z
2603591656885695211674https://github.com/microsoft/AI-Engineering-CoachMITmicrosoft/AI-Engineering-CoachmicrosoftAI-Engineering-CoachTypeScript44830982026-05-06T20:27:16Z2026-06-27T20:28:01Z2026-06-25T08:50:13Z
2616077468482482437617https://github.com/drasi-project/drasi-serverApache-2.0drasi-project/drasi-serverdrasi-projectdrasi-serverRust7102025-08-25T21:33:50Z2026-06-19T02:02:41Z2026-06-26T03:10:53Z
\n", "

262 rows × 12 columns

\n", "
" ], "text/plain": [ " repository_id ... pushed_at\n", "0 9089213639968762207 ... 2026-06-26T18:15:59Z\n", "1 4902717555605226939 ... 2026-06-14T06:40:46Z\n", "2 8401317167309685863 ... 2026-06-26T15:41:28Z\n", "3 1689116779471759733 ... 2026-06-27T12:44:15Z\n", "4 8707166185860304590 ... 2026-06-27T19:40:28Z\n", ".. ... ... ...\n", "257 5427182896104728152 ... 2026-06-26T16:25:52Z\n", "258 8936047867513918691 ... 2026-06-27T11:22:27Z\n", "259 3451869941153973759 ... 2026-06-22T05:17:06Z\n", "260 3591656885695211674 ... 2026-06-25T08:50:13Z\n", "261 6077468482482437617 ... 2026-06-26T03:10:53Z\n", "\n", "[262 rows x 12 columns]" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "repository_df\n" ] }, { "cell_type": "code", "execution_count": 4, "id": "440fb601", "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
source_markdown_file_history_idversion_count
011
124
233
342
453
.........
5996001
6006011
6016021
6026031
6036042
\n", "

604 rows × 2 columns

\n", "
" ], "text/plain": [ " source_markdown_file_history_id version_count\n", "0 1 1\n", "1 2 4\n", "2 3 3\n", "3 4 2\n", "4 5 3\n", ".. ... ...\n", "599 600 1\n", "600 601 1\n", "601 602 1\n", "602 603 1\n", "603 604 2\n", "\n", "[604 rows x 2 columns]" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "source_markdown_file_history_df\n" ] }, { "cell_type": "code", "execution_count": 5, "id": "b1070cb7", "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
source_markdown_file_snapshot_idrepository_idpathcontentfrontmatterbody
019089213639968762207.github/workflows/daily-issue-triage.md---\\ndescription: |\\n  Scheduled daily triage ...description: |\\n  Scheduled daily triage that ...\\n# Daily Issue Triage\\n\\n<!-- Note - this fil...
129089213639968762207.github/workflows/daily-repo-status.md---\\ndescription: |\\n  This workflow creates d...description: |\\n  This workflow creates daily ...\\n# Daily Repo Status\\n\\nCreate an upbeat dail...
239089213639968762207.github/workflows/daily-repo-status.md---\\ndescription: |\\n  This workflow creates d...description: |\\n  This workflow creates daily ...\\n# Daily Repo Status\\n\\nCreate an upbeat dail...
349089213639968762207.github/workflows/daily-repo-status.md---\\ndescription: |\\n  This workflow creates d...description: |\\n  This workflow creates daily ...\\n# Repo Status\\n\\nCreate an upbeat daily stat...
459089213639968762207.github/workflows/daily-repo-status.md---\\ndescription: |\\n  This workflow creates d...description: |\\n  This workflow creates daily ...\\n# Repo Status\\n\\nCreate an upbeat daily stat...
.....................
281528166077468482482437617.github/workflows/pr-prior-art-reviewer.md---\\non:\\n  workflow_call:\\n    inputs:\\n     ...on:\\n  workflow_call:\\n    inputs:\\n      pr_u...\\n# pr-prior-art-reviewer\\n\\nYou are pr-prior-...
281628176077468482482437617.github/workflows/pr-security-reviewer.md---\\non:\\n  workflow_call:\\n    inputs:\\n     ...on:\\n  workflow_call:\\n    inputs:\\n      pr_u...\\n# pr-security-reviewer\\n\\nYou are pr-securit...
281728186077468482482437617.github/workflows/pr-testing-reviewer.md---\\non:\\n  workflow_call:\\n    inputs:\\n     ...on:\\n  workflow_call:\\n    inputs:\\n      pr_u...\\n# pr-testing-reviewer\\n\\nYou are pr-testing-...
281828196077468482482437617.github/workflows/validate-yaml-snippets.md---\\ndescription: Validates YAML snippets in m...description: Validates YAML snippets in markdo...\\n# YAML Snippet Validator\\n\\nYou are an AI ag...
281928206077468482482437617.github/workflows/validate-yaml-snippets.md---\\ndescription: Validates YAML snippets in m...description: Validates YAML snippets in markdo...\\n# YAML Snippet Validator\\n\\nYou are an AI ag...
\n", "

2820 rows × 6 columns

\n", "
" ], "text/plain": [ " source_markdown_file_snapshot_id ... body\n", "0 1 ... \\n# Daily Issue Triage\\n\\n