{ "cells": [ { "cell_type": "markdown", "id": "ce0d314b", "metadata": {}, "source": [ "## GAWD dataset\n", "\n", "[](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", " | repository_id | \n", "url | \n", "license | \n", "repo_full_name | \n", "repo_owner | \n", "repo_name | \n", "main_language | \n", "forks | \n", "stars | \n", "created_at | \n", "updated_at | \n", "pushed_at | \n", "
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0 | \n", "9089213639968762207 | \n", "https://github.com/apache/cloudstack | \n", "Apache-2.0 | \n", "apache/cloudstack | \n", "apache | \n", "cloudstack | \n", "Java | \n", "1334 | \n", "2955 | \n", "2013-04-29T22:27:12Z | \n", "2026-06-27T18:09:29Z | \n", "2026-06-26T18:15:59Z | \n", "
| 1 | \n", "4902717555605226939 | \n", "https://github.com/brunoborges/fx2048 | \n", "GPL-3.0 | \n", "brunoborges/fx2048 | \n", "brunoborges | \n", "fx2048 | \n", "Java | \n", "127 | \n", "291 | \n", "2014-03-31T04:08:25Z | \n", "2026-06-14T06:40:51Z | \n", "2026-06-14T06:40:46Z | \n", "
| 2 | \n", "8401317167309685863 | \n", "https://github.com/vaadin/flow | \n", "Apache-2.0 | \n", "vaadin/flow | \n", "vaadin | \n", "flow | \n", "Java | \n", "208 | \n", "745 | \n", "2015-04-29T17:54:35Z | \n", "2026-06-27T17:27:01Z | \n", "2026-06-26T15:41:28Z | \n", "
| 3 | \n", "1689116779471759733 | \n", "https://github.com/Activiti/activiti-cloud | \n", "Apache-2.0 | \n", "Activiti/activiti-cloud | \n", "Activiti | \n", "activiti-cloud | \n", "Java | \n", "48 | \n", "90 | \n", "2020-01-27T11:13:42Z | \n", "2026-06-26T18:48:10Z | \n", "2026-06-27T12:44:15Z | \n", "
| 4 | \n", "8707166185860304590 | \n", "https://github.com/duckduckgo/Android | \n", "Apache-2.0 | \n", "duckduckgo/Android | \n", "duckduckgo | \n", "Android | \n", "Kotlin | \n", "1358 | \n", "4713 | \n", "2017-01-13T17:11:25Z | \n", "2026-06-26T23:05:16Z | \n", "2026-06-27T19:40:28Z | \n", "
| ... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "
| 257 | \n", "5427182896104728152 | \n", "https://github.com/oboapp/oboapp | \n", "Unlicense | \n", "oboapp/oboapp | \n", "oboapp | \n", "oboapp | \n", "TypeScript | \n", "9 | \n", "13 | \n", "2025-12-12T12:35:25Z | \n", "2026-06-26T16:25:57Z | \n", "2026-06-26T16:25:52Z | \n", "
| 258 | \n", "8936047867513918691 | \n", "https://github.com/felipementel/GitHubCopilotD... | \n", "NaN | \n", "felipementel/GitHubCopilotDevDays-Curitiba-2026 | \n", "felipementel | \n", "GitHubCopilotDevDays-Curitiba-2026 | \n", "C# | \n", "1 | \n", "14 | \n", "2026-05-09T13:06:58Z | \n", "2026-06-11T01:10:38Z | \n", "2026-06-27T11:22:27Z | \n", "
| 259 | \n", "3451869941153973759 | \n", "https://github.com/fqfqgo/clash-verge-rev | \n", "GPL-3.0 | \n", "fqfqgo/clash-verge-rev | \n", "fqfqgo | \n", "clash-verge-rev | \n", "TypeScript | \n", "1 | \n", "18 | \n", "2026-02-22T14:23:01Z | \n", "2026-06-22T04:22:51Z | \n", "2026-06-22T05:17:06Z | \n", "
| 260 | \n", "3591656885695211674 | \n", "https://github.com/microsoft/AI-Engineering-Coach | \n", "MIT | \n", "microsoft/AI-Engineering-Coach | \n", "microsoft | \n", "AI-Engineering-Coach | \n", "TypeScript | \n", "448 | \n", "3098 | \n", "2026-05-06T20:27:16Z | \n", "2026-06-27T20:28:01Z | \n", "2026-06-25T08:50:13Z | \n", "
| 261 | \n", "6077468482482437617 | \n", "https://github.com/drasi-project/drasi-server | \n", "Apache-2.0 | \n", "drasi-project/drasi-server | \n", "drasi-project | \n", "drasi-server | \n", "Rust | \n", "7 | \n", "10 | \n", "2025-08-25T21:33:50Z | \n", "2026-06-19T02:02:41Z | \n", "2026-06-26T03:10:53Z | \n", "
262 rows × 12 columns
\n", "| \n", " | source_markdown_file_history_id | \n", "version_count | \n", "
|---|---|---|
| 0 | \n", "1 | \n", "1 | \n", "
| 1 | \n", "2 | \n", "4 | \n", "
| 2 | \n", "3 | \n", "3 | \n", "
| 3 | \n", "4 | \n", "2 | \n", "
| 4 | \n", "5 | \n", "3 | \n", "
| ... | \n", "... | \n", "... | \n", "
| 599 | \n", "600 | \n", "1 | \n", "
| 600 | \n", "601 | \n", "1 | \n", "
| 601 | \n", "602 | \n", "1 | \n", "
| 602 | \n", "603 | \n", "1 | \n", "
| 603 | \n", "604 | \n", "2 | \n", "
604 rows × 2 columns
\n", "| \n", " | source_markdown_file_snapshot_id | \n", "repository_id | \n", "path | \n", "content | \n", "frontmatter | \n", "body | \n", "
|---|---|---|---|---|---|---|
| 0 | \n", "1 | \n", "9089213639968762207 | \n", ".github/workflows/daily-issue-triage.md | \n", "---\\ndescription: |\\n Scheduled daily triage ... | \n", "description: |\\n Scheduled daily triage that ... | \n", "\\n# Daily Issue Triage\\n\\n<!-- Note - this fil... | \n", "
| 1 | \n", "2 | \n", "9089213639968762207 | \n", ".github/workflows/daily-repo-status.md | \n", "---\\ndescription: |\\n This workflow creates d... | \n", "description: |\\n This workflow creates daily ... | \n", "\\n# Daily Repo Status\\n\\nCreate an upbeat dail... | \n", "
| 2 | \n", "3 | \n", "9089213639968762207 | \n", ".github/workflows/daily-repo-status.md | \n", "---\\ndescription: |\\n This workflow creates d... | \n", "description: |\\n This workflow creates daily ... | \n", "\\n# Daily Repo Status\\n\\nCreate an upbeat dail... | \n", "
| 3 | \n", "4 | \n", "9089213639968762207 | \n", ".github/workflows/daily-repo-status.md | \n", "---\\ndescription: |\\n This workflow creates d... | \n", "description: |\\n This workflow creates daily ... | \n", "\\n# Repo Status\\n\\nCreate an upbeat daily stat... | \n", "
| 4 | \n", "5 | \n", "9089213639968762207 | \n", ".github/workflows/daily-repo-status.md | \n", "---\\ndescription: |\\n This workflow creates d... | \n", "description: |\\n This workflow creates daily ... | \n", "\\n# Repo Status\\n\\nCreate an upbeat daily stat... | \n", "
| ... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "
| 2815 | \n", "2816 | \n", "6077468482482437617 | \n", ".github/workflows/pr-prior-art-reviewer.md | \n", "---\\non:\\n workflow_call:\\n inputs:\\n ... | \n", "on:\\n workflow_call:\\n inputs:\\n pr_u... | \n", "\\n# pr-prior-art-reviewer\\n\\nYou are pr-prior-... | \n", "
| 2816 | \n", "2817 | \n", "6077468482482437617 | \n", ".github/workflows/pr-security-reviewer.md | \n", "---\\non:\\n workflow_call:\\n inputs:\\n ... | \n", "on:\\n workflow_call:\\n inputs:\\n pr_u... | \n", "\\n# pr-security-reviewer\\n\\nYou are pr-securit... | \n", "
| 2817 | \n", "2818 | \n", "6077468482482437617 | \n", ".github/workflows/pr-testing-reviewer.md | \n", "---\\non:\\n workflow_call:\\n inputs:\\n ... | \n", "on:\\n workflow_call:\\n inputs:\\n pr_u... | \n", "\\n# pr-testing-reviewer\\n\\nYou are pr-testing-... | \n", "
| 2818 | \n", "2819 | \n", "6077468482482437617 | \n", ".github/workflows/validate-yaml-snippets.md | \n", "---\\ndescription: Validates YAML snippets in m... | \n", "description: Validates YAML snippets in markdo... | \n", "\\n# YAML Snippet Validator\\n\\nYou are an AI ag... | \n", "
| 2819 | \n", "2820 | \n", "6077468482482437617 | \n", ".github/workflows/validate-yaml-snippets.md | \n", "---\\ndescription: Validates YAML snippets in m... | \n", "description: Validates YAML snippets in markdo... | \n", "\\n# YAML Snippet Validator\\n\\nYou are an AI ag... | \n", "
2820 rows × 6 columns
\n", "