Open In Colab

(検証) 日本の法令を Git の履歴にする

e-Gov 法令検索 API v2 から法令データを取得し、 Zenn 記事『日本の全法令を git の履歴にしてみた』 の手法で Git リポジトリを構築します。

構成: - 1 法令 = 1 Markdown ファイル(メタデータは frontmatter) - 1 コミット = 1 本の改正法の施行 - コミット日付 = 施日 - 1970年より前の施行日は 1970-01-02 に寄せ、本当の日付は frontmatter に記録 - 公布済みで未施行の改正は upcoming ブランチに配置

1. 準備

import os
import subprocess
import json
import urllib.request
import urllib.parse
import urllib.error
from datetime import datetime
from pathlib import Path
import time
import re

BASE_URL = "https://laws.e-gov.go.jp/api/2"
REPO_DIR = Path("laws_repo")

# Git の存在確認
result = subprocess.run(["git", "--version"], capture_output=True, text=True)
print(result.stdout.strip())
git version 2.43.0

2. Git リポジトリの初期化

# リポジトリディレクトリの作成・初期化
if not REPO_DIR.exists():
    REPO_DIR.mkdir(parents=True)
    subprocess.run(["git", "init"], cwd=REPO_DIR, check=True)

    # Gitユーザー情報の設定(Colab環境などの未設定エラーを防止)
    subprocess.run(["git", "config", "user.email", "you@example.com"], cwd=REPO_DIR, check=True)
    subprocess.run(["git", "config", "user.name", "Your Name"], cwd=REPO_DIR, check=True)

    # 初期コミット(空)
    subprocess.run(["git", "commit", "--allow-empty", "-m", "Initial commit"], cwd=REPO_DIR, check=True)
    print("リポジトリを初期化しました")
else:
    print("リポジトリは既に存在します")
リポジトリを初期化しました
import shutil
from pathlib import Path

# laws_repo ディレクトリをきれいに削除する
repo_dir = Path("laws_repo")
if repo_dir.exists():
    shutil.rmtree(repo_dir)
    print("laws_repo ディレクトリを削除しました。再び上の『2. Git リポジトリの初期化』セルを実行してください。")
else:
    print("laws_repo ディレクトリは存在しません。そのまま上のセルを実行できます。")
laws_repo ディレクトリを削除しました。再び上の『2. Git リポジトリの初期化』セルを実行してください。

3. e-Gov API クライアント

def api_get(endpoint, params=None):
    """API から JSON を取得する"""
    url = f"{BASE_URL}{endpoint}"
    if params:
        query = urllib.parse.urlencode(params, doseq=True)
        url = f"{url}?{query}"
    req = urllib.request.Request(url, headers={"Accept": "application/json"})
    try:
        with urllib.request.urlopen(req, timeout=60) as res:
            return json.loads(res.read().decode("utf-8"))
    except urllib.error.HTTPError as e:
        if e.code == 404:
            return None  # 取得結果0件など
        raise

def get_all_laws(law_type=None, limit=1000):
    """全法令一覧を取得"""
    laws = []
    offset = 0
    while True:
        params = {"limit": limit, "offset": offset}
        if law_type:
            params["law_type"] = law_type
        data = api_get("/laws", params)
        if not data or not data.get("laws"):
            break
        laws.extend(data["laws"])
        if "next_offset" not in data or data["next_offset"] is None:
            break
        offset = data["next_offset"]
        time.sleep(0.5)
    return laws

def get_law_revisions(law_id_or_num):
    """法令の改正履歴を取得"""
    data = api_get(f"/law_revisions/{law_id_or_num}")
    if not data:
        return []
    return data.get("revisions", [])

def get_law_data(law_id_or_num_or_revision_id, asof=None, json_format="light"):
    """法令本文を取得"""
    params = {"json_format": json_format}
    if asof:
        params["asof"] = asof
    return api_get(f"/law_data/{law_id_or_num_or_revision_id}", params)

print("API クライアントを定義しました")
API クライアントを定義しました

4. Markdown 変換関数

def law_data_to_markdown(law_data):
    """
    law_data の JSON(light 形式)を Markdown 変換する。
    簡易実装: LawTitle, MainProvision, SupplProvision を再帰的に処理。
    """
    info = law_data.get("law_info", {})
    rev = law_data.get("revision_info", {})
    text = law_data.get("law_full_text", {})

    # frontmatter
    frontmatter = {"---": None}
    frontmatter_lines = ["---"]
    frontmatter_lines.append(f"law_id: {info.get('law_id', '')}")
    frontmatter_lines.append(f"law_num: {info.get('law_num', '')}")
    frontmatter_lines.append(f"law_type: {info.get('law_type', '')}")
    frontmatter_lines.append(f"law_title: {rev.get('law_title', '')}")
    frontmatter_lines.append(f"law_revision_id: {rev.get('law_revision_id', '')}")
    frontmatter_lines.append(f"amendment_enforcement_date: {rev.get('amendment_enforcement_date', '')}")
    frontmatter_lines.append(f"current_revision_status: {rev.get('current_revision_status', '')}")
    frontmatter_lines.append(f"promulgation_date: {info.get('promulgation_date', '')}")
    frontmatter_lines.append("---")

    md = ["\n".join(frontmatter_lines)]

    # タイトル
    law_title = text.get("LawTitle", rev.get("law_title", ""))
    if isinstance(law_title, dict):
        law_title = law_title.get("#text", rev.get("law_title", ""))
    md.append(f"# {law_title}\n")

    # 目次
    toc = text.get("TOC", {})
    if toc:
        md.append("## 目次\n")
        md.append(convert_toc(toc))

    # 本文(本則)
    main = text.get("MainProvision", {})
    if main:
        md.append(convert_main_provision(main))

    # 附則
    suppl = text.get("SupplProvision", [])
    if suppl:
        if not isinstance(suppl, list):
            suppl = [suppl]
        for s in suppl:
            md.append(convert_suppl_provision(s))

    return "\n".join(md)

def convert_toc(toc):
    lines = []
    items = toc.get("TOCChapter", []) or toc.get("TOCArticle", []) or toc.get("TOC", [])
    if not isinstance(items, list):
        items = [items]
    for item in items:
        if isinstance(item, dict):
            title = item.get("Title", "")
            if isinstance(title, dict):
                title = title.get("#text", "")
            lines.append(f"- {title}")
    return "\n".join(lines) + "\n"

def convert_main_provision(main):
    lines = []
    chapters = main.get("Chapter", [])
    if not isinstance(chapters, list):
        chapters = [chapters]
    for ch in chapters:
        lines.append(convert_chapter(ch))
    # Chapter がない場合は Article 直接
    articles = main.get("Article", [])
    if not isinstance(articles, list):
        articles = [articles]
    for art in articles:
        lines.append(convert_article(art))
    return "\n".join(lines)

def convert_chapter(ch):
    lines = []
    title = ch.get("Title", "")
    if isinstance(title, dict):
        title = title.get("#text", "")
    lines.append(f"## {title}\n")
    articles = ch.get("Article", [])
    if not isinstance(articles, list):
        articles = [articles]
    for art in articles:
        lines.append(convert_article(art))
    return "\n".join(lines)

def convert_article(art):
    lines = []
    caption = art.get("ArticleCaption", "")
    if isinstance(caption, dict):
        caption = caption.get("#text", "")
    num = art.get("Num", "")
    title = art.get("ArticleTitle", "")
    if isinstance(title, dict):
        title = title.get("#text", "")
    header = f"### {title}"
    if caption:
        header += f"({caption})"
    lines.append(header + "\n")

    paragraphs = art.get("Paragraph", [])
    if not isinstance(paragraphs, list):
        paragraphs = [paragraphs]
    for p in paragraphs:
        lines.append(convert_paragraph(p))
    return "\n".join(lines)

def convert_paragraph(p):
    num = p.get("Num", "")
    sentence = p.get("ParagraphSentence", {})
    text = extract_sentences(sentence)
    if num:
        return f"{num}. {text}\n"
    return f"{text}\n"

def extract_sentences(sentence_obj):
    if not sentence_obj:
        return ""
    sentences = sentence_obj.get("Sentence", [])
    if isinstance(sentences, str):
        return sentences
    if isinstance(sentences, dict):
        return sentences.get("#text", "")
    if isinstance(sentences, list):
        texts = []
        for s in sentences:
            if isinstance(s, str):
                texts.append(s)
            elif isinstance(s, dict):
                texts.append(s.get("#text", ""))
        return "".join(texts)
    return str(sentence_obj)

def convert_suppl_provision(suppl):
    lines = []
    num = suppl.get("Num", "")
    extract = suppl.get("Extract", "")
    header = "## 附則"
    if num:
        header += f"({num})"
    if extract:
        header += f" {extract}"
    lines.append(header + "\n")
    articles = suppl.get("Article", [])
    if not isinstance(articles, list):
        articles = [articles]
    for art in articles:
        lines.append(convert_article(art))
    return "\n".join(lines)

print("Markdown 変換関数を定義しました")
Markdown 変換関数を定義しました

5. Git 操作ヘルパー

def git_commit(repo_dir, message, date_iso, trailers=None, files=None):
    """
    Git コミットを作成する。
    1970-01-02 より前の日付は 1970-01-02 に寄せ、本当の日付はトレーラーに入れる。
    """
    min_date = datetime(1970, 1, 2)
    commit_date = datetime.fromisoformat(date_iso.replace("Z", "+00:00"))
    actual_date = date_iso

    if commit_date < min_date:
        commit_date = min_date

    date_str = commit_date.strftime("%Y-%m-%dT%H:%M:%S+09:00")

    env = os.environ.copy()
    env["GIT_AUTHOR_DATE"] = date_str
    env["GIT_COMMITTER_DATE"] = date_str

    # トレーラー追加
    full_message = message
    if trailers:
        for key, value in trailers.items():
            full_message += f"\n{key}: {value}"
    if commit_date == min_date and actual_date != date_iso:
        full_message += f"\nEnforced: {actual_date}"

    if files:
        subprocess.run(["git", "add", "--"] + files, cwd=repo_dir, check=True)
    else:
        subprocess.run(["git", "add", "-A"], cwd=repo_dir, check=True)

    cmd = ["git", "commit", "-m", full_message]
    result = subprocess.run(cmd, cwd=repo_dir, capture_output=True, text=True, env=env)
    if result.returncode != 0:
        if "nothing to commit" in result.stderr.lower() or "nothing added to commit" in result.stderr.lower():
            return False
        print("STDERR:", result.stderr)
        raise RuntimeError(f"git commit failed: {result.stderr}")
    return True

def git_checkout_branch(repo_dir, branch_name, orphan=False):
    """ブランチを切り替え(存在しなければ作成)"""
    result = subprocess.run(
        ["git", "branch", "--list", branch_name],
        cwd=repo_dir, capture_output=True, text=True
    )
    if orphan:
        subprocess.run(["git", "checkout", "--orphan", branch_name], cwd=repo_dir, check=True)
        subprocess.run(["git", "rm", "-rf", "."], cwd=repo_dir, capture_output=True)
    else:
        if result.stdout.strip():
            subprocess.run(["git", "checkout", branch_name], cwd=repo_dir, check=True)
        else:
            subprocess.run(["git", "checkout", "-b", branch_name], cwd=repo_dir, check=True)

print("Git 操作ヘルパーを定義しました")
Git 操作ヘルパーを定義しました

6. 法令ファイルパス生成

def get_law_file_path(law_info):
    """
    法令種別と法令IDからファイルパスを生成する。
    例: laws/act/322/322AC0000000049.md
    """
    law_type = law_info.get("law_type", "unknown").lower()
    law_id = law_info.get("law_id", "")
    if not law_id:
        return Path("laws") / law_type / f"{law_id}.md"
    # 法令IDの先頭3桁をディレクトリ階層にする
    prefix = law_id[:3] if len(law_id) >= 3 else law_id
    return Path("laws") / law_type / prefix / f"{law_id}.md"

print("ファイルパス生成関数を定義しました")
ファイルパス生成関数を定義しました

7. 単一法令の履歴構築

def build_law_history(law_summary, dry_run=False):
    """
    1つの法令の改正履歴を取得し、施行日ごとに Markdown を書き出してコミット対象フイルを返す。
    戻り値: list of (file_path, revision_id, enforcement_date, current_revision_status)
    """
    law_id = law_summary["law_info"]["law_id"]
    revisions = get_law_revisions(law_id)
    if not revisions:
        return []

    files_info = []
    for rev in revisions:
        rev_id = rev.get("law_revision_id")
        enforcement_date = rev.get("amendment_enforcement_date")
        status = rev.get("current_revision_status")
        if not rev_id:
            continue
        # 未施行のものは upcoming ブランチ用に分ける
        files_info.append((law_summary, rev_id, enforcement_date, status))
    return files_info

print("build_law_history を定義しました")
build_law_history を定義しました

8. 全法令の取得と履歴の集約

# 対象法令種別(必要に応じて絞る)
TARGET_LAW_TYPES = ["Act", "CabinetOrder", "MinisterialOrdinance"]

all_laws = []
for lt in TARGET_LAW_TYPES:
    print(f"取得中: {lt} ...")
    laws = get_all_laws(law_type=lt)
    print(f"  -> {len(laws)} 件")
    all_laws.extend(laws)
    time.sleep(1)

print(f"\n全法令: {len(all_laws)} 件")
取得中: Act ...
  -> 2165 件
取得中: CabinetOrder ...
  -> 2448 件
取得中: MinisterialOrdinance ...
  -> 4450 件

全法令: 9063 件

9. 施行日ごとにコミットを集約

from collections import defaultdict

# 各法令の履歴を取得して集約
# commits_map: enforcement_date -> list of (law_summary, revision_id, status)
commits_map = defaultdict(list)
upcoming_items = []

for i, law_summary in enumerate(all_laws):
    law_id = law_summary["law_info"]["law_id"]
    print(f"[{i+1}/{len(all_laws)}] {law_id}")
    try:
        revs = build_law_history(law_summary)
        for _, rev_id, enf_date, status in revs:
            if status == "UnEnforced":
                upcoming_items.append((law_summary, rev_id, enf_date))
            elif enf_date:
                commits_map[enf_date].append((law_summary, rev_id, status))
            else:
                # 施行日がない場合はスキップ or 別途処理
                pass
        time.sleep(0.3)
    except Exception as e:
        print(f"  エラー: {e}")

print(f"\n施行日ごとのコミット数: {len(commits_map)}")
print(f"未施行アイテム数: {len(upcoming_items)}")
[1/9063] 106DF0000000065
[2/9063] 113DF0000000036
[3/9063] 117DF1000000032
[4/9063] 122AC0000000034
[5/9063] 123AC0000000001
[6/9063] 128AC0000000028
[7/9063] 129AC0000000005
[8/9063] 129AC0000000089
[9/9063] 130AC0000000029
[10/9063] 131AC0000000011
[11/9063] 131AC0000000014
[12/9063] 132AC0000000015
[13/9063] 132AC0000000046
[14/9063] 132AC0000000048
[15/9063] 132AC0000000049
[16/9063] 132AC0000000050
[17/9063] 132AC0000000093
[18/9063] 132AC0000000095
[19/9063] 132AC0000000101
[20/9063] 132AC1000000040
[21/9063] 133AC0000000065
[22/9063] 133AC0000000067
[23/9063] 133AC1000000033
[24/9063] 133AC1000000072
[25/9063] 135AC0000000011
[26/9063] 135AC1000000050
[27/9063] 137AC0000000017
[28/9063] 138AC0000000052
[29/9063] 138AC0000000053
[30/9063] 138AC0000000054
[31/9063] 138AC0000000055
[32/9063] 138AC0000000063
[33/9063] 138AC1000000066
[34/9063] 139AC0000000034
[35/9063] 139AC0000000051
[36/9063] 140AC0000000045
[37/9063] 141AC0000000029
[38/9063] 141AC0000000050
[39/9063] 141AC0000000053
[40/9063] 141AC0000000057
[41/9063] 142AC0000000008
[42/9063] 142AC0000000009
[43/9063] 142AC0000000022
[44/9063] 142AC0000000028
[45/9063] 142AC0000000039
[46/9063] 143AC0000000054
[47/9063] 143AC1000000056
[48/9063] 145AC0000000021
[49/9063] 202AC1000000016
[50/9063] 203AC1000000037
[51/9063] 204AC0000000013
[52/9063] 204AC0000000018
[53/9063] 205AC0000000010
[54/9063] 205AC0000000020
[55/9063] 206AC0000000015
[56/9063] 210AC0000000057
[57/9063] 210AC0000000076
[58/9063] 210AC0000000102
[59/9063] 211AC0000000062
[60/9063] 211AC0000000070
[61/9063] 211AC1000000020
[62/9063] 212AC0000000048
[63/9063] 212AC0000000050
[64/9063] 214AC0000000009
[65/9063] 214AC0000000042
[66/9063] 215AC0000000060
[67/9063] 215AC0000000062
[68/9063] 302AC0000000055
[69/9063] 305AC0000000009
[70/9063] 306AC0000000008
[71/9063] 306AC0000000009
[72/9063] 306AC0000000015
[73/9063] 306AC0000000042
[74/9063] 307AC0000000016
[75/9063] 307AC0000000020
[76/9063] 308AC0000000011
[77/9063] 308AC0000000021
[78/9063] 308AC0000000030
[79/9063] 308AC0000000057
[80/9063] 308AC1000000042
[81/9063] 312AC0000000025
[82/9063] 313AC0000000071
[83/9063] 314AC0000000073
[84/9063] 318AC0000000043
[85/9063] 318AC0000000061
[86/9063] 318AC0000000088
[87/9063] 319AC0000000004
[88/9063] 320AC0000000046
[89/9063] 320IO0000000730
[90/9063] 320M20000800040
[91/9063] 321AC0000000006
[92/9063] 321AC0000000007
[93/9063] 321AC0000000024
[94/9063] 321AC0000000025
[95/9063] 321AC0000000039
[96/9063] 321AC0000000040
[97/9063] 321AC0000000056
[98/9063] 321IO0000000118
[99/9063] 321M30000100042
[100/9063] 322AC0000000003
[101/9063] 322AC0000000004
[102/9063] 322AC0000000005
[103/9063] 322AC0000000013
[104/9063] 322AC0000000020
[105/9063] 322AC0000000026
[106/9063] 322AC0000000034
[107/9063] 322AC0000000035
[108/9063] 322AC0000000042
[109/9063] 322AC0000000049
[110/9063] 322AC0000000050
[111/9063] 322AC0000000053
[112/9063] 322AC0000000054
[113/9063] 322AC0000000059
[114/9063] 322AC0000000060
[115/9063] 322AC0000000061
[116/9063] 322AC0000000063
[117/9063] 322AC0000000067
[118/9063] 322AC0000000070
[119/9063] 322AC0000000072
[120/9063] 322AC0000000073
[121/9063] 322AC0000000100
[122/9063] 322AC0000000101
[123/9063] 322AC0000000109
[124/9063] 322AC0000000111
[125/9063] 322AC0000000113
[126/9063] 322AC0000000117
[127/9063] 322AC0000000118
[128/9063] 322AC0000000120
[129/9063] 322AC0000000121
[130/9063] 322AC0000000125
[131/9063] 322AC0000000127
[132/9063] 322AC0000000129
[133/9063] 322AC0000000132
[134/9063] 322AC0000000135
[135/9063] 322AC0000000141
[136/9063] 322AC0000000148
[137/9063] 322AC0000000149
[138/9063] 322AC0000000151
[139/9063] 322AC0000000159
[140/9063] 322AC0000000164
[141/9063] 322AC0000000165
[142/9063] 322AC0000000170
[143/9063] 322AC0000000175
[144/9063] 322AC0000000181
[145/9063] 322AC0000000185
[146/9063] 322AC0000000189
[147/9063] 322AC0000000194
[148/9063] 322AC0000000217
[149/9063] 322AC0000000224
[150/9063] 322AC0000000226
[151/9063] 322AC0000000229
[152/9063] 322AC0000000231
[153/9063] 322AC0000000233
[154/9063] 322AC0000000234
[155/9063] 322AC0000000245
[156/9063] 322AC1000000079
[157/9063] 322AC1000000080
[158/9063] 322AC1000000081
[159/9063] 322AC1000000082
[160/9063] 322AC1000000083
[161/9063] 322AC1000000085
[162/9063] 322AC1000000136
[163/9063] 322AC1000000137
[164/9063] 322AC1000000225
[165/9063] 322CO0000000052
[166/9063] 322IO0000000074
[167/9063] 323AC0000000013
[168/9063] 323AC0000000018
[169/9063] 323AC0000000025
[170/9063] 323AC0000000027
[171/9063] 323AC0000000028
[172/9063] 323AC0000000039
[173/9063] 323AC0000000043
[174/9063] 323AC0000000048
[175/9063] 323AC0000000068
[176/9063] 323AC0000000073
[177/9063] 323AC0000000075
[178/9063] 323AC0000000076
[179/9063] 323AC0000000080
[180/9063] 323AC0000000082
[181/9063] 323AC0000000083
[182/9063] 323AC0000000103
[183/9063] 323AC0000000109
[184/9063] 323AC0000000120
[185/9063] 323AC0000000121
[186/9063] 323AC0000000122
[187/9063] 323AC0000000124
[188/9063] 323AC0000000125
[189/9063] 323AC0000000129
[190/9063] 323AC0000000130
[191/9063] 323AC0000000131
[192/9063] 323AC0000000132
[193/9063] 323AC0000000135
[194/9063] 323AC0000000136
[195/9063] 323AC0000000137
[196/9063] 323AC0000000138
[197/9063] 323AC0000000139
[198/9063] 323AC0000000140
[199/9063] 323AC0000000142
[200/9063] 323AC0000000144
[201/9063] 323AC0000000146
[202/9063] 323AC0000000147
[203/9063] 323AC0000000158
[204/9063] 323AC0000000165
[205/9063] 323AC0000000168
[206/9063] 323AC0000000174
[207/9063] 323AC0000000193
[208/9063] 323AC0000000198
[209/9063] 323AC0000000200
[210/9063] 323AC0000000201
[211/9063] 323AC0000000202
[212/9063] 323AC0000000203
[213/9063] 323AC0000000204
[214/9063] 323AC0000000205
[215/9063] 323AC0000000234
[216/9063] 323AC0000000242
[217/9063] 323AC0000000249
[218/9063] 323AC0000000251
[219/9063] 323AC0000000257
[220/9063] 323AC0100000156
[221/9063] 323AC0100000199
[222/9063] 323AC1000000005
[223/9063] 323AC1000000006
[224/9063] 323AC1000000092
[225/9063] 323AC1000000178
[226/9063] 323AC1000000186
[227/9063] 323AC1000000194
[228/9063] 323AC1000000209
[229/9063] 323AC1000000282
[230/9063] 323CO0000000264
[231/9063] 323CO0000000298
[232/9063] 323CO0000000306
[233/9063] 323CO0000000402
[234/9063] 324AC0000000001
[235/9063] 324AC0000000057
[236/9063] 324AC0000000068
[237/9063] 324AC0000000070
[238/9063] 324AC0000000083
[239/9063] 324AC0000000091
[240/9063] 324AC0000000099
[241/9063] 324AC0000000100
[242/9063] 324AC0000000108
[243/9063] 324AC0000000117
[244/9063] 324AC0000000121
[245/9063] 324AC0000000139
[246/9063] 324AC0000000140
[247/9063] 324AC0000000147
[248/9063] 324AC0000000148
[249/9063] 324AC0000000149
[250/9063] 324AC0000000173
[251/9063] 324AC0000000174
[252/9063] 324AC0000000176
[253/9063] 324AC0000000181
[254/9063] 324AC0000000182
[255/9063] 324AC0000000183
[256/9063] 324AC0000000185
[257/9063] 324AC0000000186
[258/9063] 324AC0000000187
[259/9063] 324AC0000000188
[260/9063] 324AC0000000189
[261/9063] 324AC0000000193
[262/9063] 324AC0000000195
[263/9063] 324AC0000000196
[264/9063] 324AC0000000204
[265/9063] 324AC0000000207
[266/9063] 324AC0000000210
[267/9063] 324AC0000000213
[268/9063] 324AC0000000224
[269/9063] 324AC0000000228
[270/9063] 324AC0000000240
[271/9063] 324AC0000000252
[272/9063] 324AC0000000257
[273/9063] 324AC0000000259
[274/9063] 324AC0000000266
[275/9063] 324AC0000000267
[276/9063] 324AC0000000268
[277/9063] 324AC0000000270
[278/9063] 324AC0000000284
[279/9063] 324AC0100000096
[280/9063] 324AC1000000101
[281/9063] 324AC1000000200
[282/9063] 324AC1000000205
[283/9063] 324AC1000000206
[284/9063] 324AC1000000208
[285/9063] 324AC1000000219
[286/9063] 324AC1000000220
[287/9063] 324AC1000000256
[288/9063] 324AC1000000271
[289/9063] 324AC1000000279
[290/9063] 324AC1000000283
[291/9063] 324CO0000000034
[292/9063] 324CO0000000291
[293/9063] 324CO0000000310
[294/9063] 324CO0000000311
[295/9063] 325AC0000000001
[296/9063] 325AC0000000005
[297/9063] 325AC0000000012
[298/9063] 325AC0000000041
[299/9063] 325AC0000000047
[300/9063] 325AC0000000053
[301/9063] 325AC0000000061
[302/9063] 325AC0000000062
[303/9063] 325AC0000000067
[304/9063] 325AC0000000073
[305/9063] 325AC0000000081
[306/9063] 325AC0000000102
[307/9063] 325AC0000000105
[308/9063] 325AC0000000110
[309/9063] 325AC0000000114
[310/9063] 325AC0000000118
[311/9063] 325AC0000000126
[312/9063] 325AC0000000127
[313/9063] 325AC0000000129
[314/9063] 325AC0000000131
[315/9063] 325AC0000000132
[316/9063] 325AC0000000144
[317/9063] 325AC0000000145
[318/9063] 325AC0000000147
[319/9063] 325AC0000000149
[320/9063] 325AC0000000151
[321/9063] 325AC0000000158
[322/9063] 325AC0000000169
[323/9063] 325AC0000000172
[324/9063] 325AC0000000175
[325/9063] 325AC0000000177
[326/9063] 325AC0000000179
[327/9063] 325AC0000000194
[328/9063] 325AC0000000201
[329/9063] 325AC0000000204
[330/9063] 325AC0000000205
[331/9063] 325AC0000000209
[332/9063] 325AC0000000211
[333/9063] 325AC0000000218
[334/9063] 325AC0000000226
[335/9063] 325AC0000000239
[336/9063] 325AC0000000256
[337/9063] 325AC0000000261
[338/9063] 325AC0000000264
[339/9063] 325AC0000000276
[340/9063] 325AC0000000289
[341/9063] 325AC0000000290
[342/9063] 325AC0000000291
[343/9063] 325AC0000000292
[344/9063] 325AC0000000303
[345/9063] 325AC0100000123
[346/9063] 325AC0100000214
[347/9063] 325AC0100000220
[348/9063] 325AC1000000095
[349/9063] 325AC1000000100
[350/9063] 325AC1000000137
[351/9063] 325AC1000000178
[352/9063] 325AC1000000197
[353/9063] 325AC1000000202
[354/9063] 325AC1000000207
[355/9063] 325AC1000000208
[356/9063] 325AC1000000221
[357/9063] 325AC1000000222
[358/9063] 325AC1000000228
[359/9063] 325AC1000000233
[360/9063] 325AC1000000247
[361/9063] 325AC1000000248
[362/9063] 325AC1000000249
[363/9063] 325AC1000000250
[364/9063] 325AC1000000251
[365/9063] 325AC1000000253
[366/9063] 325CO0000000022
[367/9063] 325CO0000000252
[368/9063] 325CO0000000369
[369/9063] 326AC0000000023
[370/9063] 326AC0000000032
[371/9063] 326AC0000000033
[372/9063] 326AC0000000045
[373/9063] 326AC0000000053
[374/9063] 326AC0000000088
[375/9063] 326AC0000000096
[376/9063] 326AC0000000097
[377/9063] 326AC0000000099
[378/9063] 326AC0000000100
[379/9063] 326AC0000000125
[380/9063] 326AC0000000126
[381/9063] 326AC0000000149
[382/9063] 326AC0000000180
[383/9063] 326AC0000000183
[384/9063] 326AC0000000184
[385/9063] 326AC0000000185
[386/9063] 326AC0000000186
[387/9063] 326AC0000000187
[388/9063] 326AC0000000188
[389/9063] 326AC0000000191
[390/9063] 326AC0000000201
[391/9063] 326AC0000000204
[392/9063] 326AC0000000264
[393/9063] 326AC0000000267
[394/9063] 326AC0000000289
[395/9063] 326AC0000000299
[396/9063] 326AC0000000307
[397/9063] 326AC0000000308
[398/9063] 326AC0100000161
[399/9063] 326AC0100000198
[400/9063] 326AC0100000219
[401/9063] 326AC0100000220
[402/9063] 326AC0100000226
[403/9063] 326AC0100000246
[404/9063] 326AC0100000252
[405/9063] 326AC1000000004
[406/9063] 326AC1000000007
[407/9063] 326AC1000000008
[408/9063] 326AC1000000073
[409/9063] 326AC1000000117
[410/9063] 326AC1000000144
[411/9063] 326AC1000000145
[412/9063] 326AC1000000166
[413/9063] 326AC1000000181
[414/9063] 326AC1000000193
[415/9063] 326AC1000000212
[416/9063] 326AC1000000222
[417/9063] 326AC1000000227
[418/9063] 326AC1000000228
[419/9063] 326AC1000000237
[420/9063] 326AC1000000238
[421/9063] 326AC1000000239
[422/9063] 326AC1000000242
[423/9063] 326AC1000000249
[424/9063] 326AC1000000250
[425/9063] 326AC1000000253
[426/9063] 326AC1000000285
[427/9063] 326AC1000000313
[428/9063] 326CO0000000006
[429/9063] 326CO0000000040
[430/9063] 326CO0000000205
[431/9063] 326CO0000000319
[432/9063] 327AC0000000004
[433/9063] 327AC0000000035
[434/9063] 327AC0000000041
[435/9063] 327AC0000000043
[436/9063] 327AC0000000044
[437/9063] 327AC0000000072
[438/9063] 327AC0000000079
[439/9063] 327AC0000000081
[440/9063] 327AC0000000093
[441/9063] 327AC0000000094
[442/9063] 327AC0000000107
[443/9063] 327AC0000000108
[444/9063] 327AC0000000110
[445/9063] 327AC0000000111
[446/9063] 327AC0000000112
[447/9063] 327AC0000000113
[448/9063] 327AC0000000114
[449/9063] 327AC0000000117
[450/9063] 327AC0000000119
[451/9063] 327AC0000000120
[452/9063] 327AC0000000121
[453/9063] 327AC0000000122
[454/9063] 327AC0000000123
[455/9063] 327AC0000000124
[456/9063] 327AC0000000126
[457/9063] 327AC0000000127
[458/9063] 327AC0000000137
[459/9063] 327AC0000000138
[460/9063] 327AC0000000140
[461/9063] 327AC0000000165
[462/9063] 327AC0000000174
[463/9063] 327AC0000000182
[464/9063] 327AC0000000184
[465/9063] 327AC0000000187
[466/9063] 327AC0000000191
[467/9063] 327AC0000000195
[468/9063] 327AC0000000201
[469/9063] 327AC0000000207
[470/9063] 327AC0000000219
[471/9063] 327AC0000000229
[472/9063] 327AC0000000230
[473/9063] 327AC0000000231
[474/9063] 327AC0000000232
[475/9063] 327AC0000000237
[476/9063] 327AC0000000240
[477/9063] 327AC0000000241
[478/9063] 327AC0000000242
[479/9063] 327AC0000000243
[480/9063] 327AC0000000252
[481/9063] 327AC0000000266
[482/9063] 327AC0000000289
[483/9063] 327AC0000000292
[484/9063] 327AC0000000299
[485/9063] 327AC0000000302
[486/9063] 327AC0000000310
[487/9063] 327AC0000000337
[488/9063] 327AC0000000346
[489/9063] 327AC0100000204
[490/9063] 327AC0100000239
[491/9063] 327AC1000000005
[492/9063] 327AC1000000028
[493/9063] 327AC1000000096
[494/9063] 327AC1000000131
[495/9063] 327AC1000000151
[496/9063] 327AC1000000176
[497/9063] 327AC1000000180
[498/9063] 327AC1000000181
[499/9063] 327AC1000000212
[500/9063] 327AC1000000226
[501/9063] 327AC1000000244
[502/9063] 327AC1000000245
[503/9063] 327AC1000000286
[504/9063] 327AC1000000303
[505/9063] 327AC1000000305
[506/9063] 327AC1000000356
[507/9063] 327AC1000000358
[508/9063] 328AC0000000001
[509/9063] 328AC0000000006
[510/9063] 328AC0000000007
[511/9063] 328AC0000000014
[512/9063] 328AC0000000051
[513/9063] 328AC0000000062
[514/9063] 328AC0000000063
[515/9063] 328AC0000000066
[516/9063] 328AC0000000068
[517/9063] 328AC0000000083
[518/9063] 328AC0000000087
[519/9063] 328AC0000000096
[520/9063] 328AC0000000098
[521/9063] 328AC0000000114
[522/9063] 328AC0000000145
[523/9063] 328AC0000000149
[524/9063] 328AC0000000156
[525/9063] 328AC0000000157
[526/9063] 328AC0000000159
[527/9063] 328AC0000000160
[528/9063] 328AC0000000161
[529/9063] 328AC0000000170
[530/9063] 328AC0000000171
[531/9063] 328AC0000000196
[532/9063] 328AC0000000200
[533/9063] 328AC0000000206
[534/9063] 328AC0000000236
[535/9063] 328AC0000000245
[536/9063] 328AC0000000246
[537/9063] 328AC0000000247
[538/9063] 328AC0000000253
[539/9063] 328AC0000000265
[540/9063] 328AC0000000267
[541/9063] 328AC0100000227
[542/9063] 328AC1000000033
[543/9063] 328AC1000000035
[544/9063] 328AC1000000052
[545/9063] 328AC1000000064
[546/9063] 328AC1000000072
[547/9063] 328AC1000000143
[548/9063] 328AC1000000169
[549/9063] 328AC1000000182
[550/9063] 328AC1000000185
[551/9063] 328AC1000000186
[552/9063] 328AC1000000224
[553/9063] 328AC1000000238
[554/9063] 328AC1000000252
[555/9063] 329AC0000000036
[556/9063] 329AC0000000051
[557/9063] 329AC0000000061
[558/9063] 329AC0000000064
[559/9063] 329AC0000000066
[560/9063] 329AC0000000071
[561/9063] 329AC0000000091
[562/9063] 329AC0000000097
[563/9063] 329AC0000000100
[564/9063] 329AC0000000108
[565/9063] 329AC0000000109
[566/9063] 329AC0000000110
[567/9063] 329AC0000000112
[568/9063] 329AC0000000113
[569/9063] 329AC0000000115
[570/9063] 329AC0000000119
[571/9063] 329AC0000000120
[572/9063] 329AC0000000143
[573/9063] 329AC0000000144
[574/9063] 329AC0000000148
[575/9063] 329AC0000000149
[576/9063] 329AC0000000150
[577/9063] 329AC0000000151
[578/9063] 329AC0000000157
[579/9063] 329AC0000000160
[580/9063] 329AC0000000162
[581/9063] 329AC0000000164
[582/9063] 329AC0000000165
[583/9063] 329AC0000000166
[584/9063] 329AC0000000182
[585/9063] 329AC0000000188
[586/9063] 329AC0000000194
[587/9063] 329AC0000000195
[588/9063] 329AC0000000205
[589/9063] 329AC1000000154
[590/9063] 329AC1000000189
[591/9063] 329AC1000000227
[592/9063] 330AC0000000037
[593/9063] 330AC0000000063
[594/9063] 330AC0000000068
[595/9063] 330AC0000000097
[596/9063] 330AC0000000104
[597/9063] 330AC0000000113
[598/9063] 330AC0000000168
[599/9063] 330AC0000000179
[600/9063] 330AC0000000188
[601/9063] 330AC0100000125
[602/9063] 330AC1000000080
[603/9063] 330AC1000000085
[604/9063] 330AC1000000136
[605/9063] 330AC1000000180
[606/9063] 330AC1000000186
[607/9063] 331AC0000000007
[608/9063] 331AC0000000027
[609/9063] 331AC0000000040
[610/9063] 331AC0000000079
[611/9063] 331AC0000000080
[612/9063] 331AC0000000082
[613/9063] 331AC0000000083
[614/9063] 331AC0000000086
[615/9063] 331AC0000000101
[616/9063] 331AC0000000102
[617/9063] 331AC0000000107
[618/9063] 331AC0000000113
[619/9063] 331AC0000000114
[620/9063] 331AC0000000118
[621/9063] 331AC0000000120
[622/9063] 331AC0000000121
[623/9063] 331AC0000000123
[624/9063] 331AC0000000126
[625/9063] 331AC0000000132
[626/9063] 331AC0000000133
[627/9063] 331AC0000000146
[628/9063] 331AC0000000149
[629/9063] 331AC0000000160
[630/9063] 331AC0000000162
[631/9063] 331AC0000000167
[632/9063] 331AC0100000157
[633/9063] 331AC1000000072
[634/9063] 331AC1000000138
[635/9063] 331AC1000000177
[636/9063] 332AC0000000018
[637/9063] 332AC0000000026
[638/9063] 332AC0000000035
[639/9063] 332AC0000000037
[640/9063] 332AC0000000038
[641/9063] 332AC0000000048
[642/9063] 332AC0000000055
[643/9063] 332AC0000000065
[644/9063] 332AC0000000077
[645/9063] 332AC0000000079
[646/9063] 332AC0000000094
[647/9063] 332AC0000000104
[648/9063] 332AC0000000106
[649/9063] 332AC0000000109
[650/9063] 332AC0000000115
[651/9063] 332AC0000000135
[652/9063] 332AC0000000136
[653/9063] 332AC0000000161
[654/9063] 332AC0000000166
[655/9063] 332AC0000000167
[656/9063] 332AC0000000172
[657/9063] 332AC0000000177
[658/9063] 332AC0000000185
[659/9063] 332AC0100000118
[660/9063] 332AC0100000143
[661/9063] 332AC1000000068
[662/9063] 332AC1000000117
[663/9063] 332AC1000000145
[664/9063] 332AC1000000162
[665/9063] 332AC1000000163
[666/9063] 332AC1000000164
[667/9063] 333AC0000000006
[668/9063] 333AC0000000017
[669/9063] 333AC0000000030
[670/9063] 333AC0000000034
[671/9063] 333AC0000000056
[672/9063] 333AC0000000057
[673/9063] 333AC0000000079
[674/9063] 333AC0000000081
[675/9063] 333AC0000000084
[676/9063] 333AC0000000098
[677/9063] 333AC0000000099
[678/9063] 333AC0000000106
[679/9063] 333AC0000000109
[680/9063] 333AC0000000116
[681/9063] 333AC0000000126
[682/9063] 333AC0000000128
[683/9063] 333AC0000000129
[684/9063] 333AC0000000138
[685/9063] 333AC0000000150
[686/9063] 333AC0000000162
[687/9063] 333AC0000000178
[688/9063] 333AC0000000192
[689/9063] 333AC0000000193
[690/9063] 333AC0100000147
[691/9063] 333AC1000000072
[692/9063] 333AC1000000076
[693/9063] 333AC1000000134
[694/9063] 333AC1000000135
[695/9063] 333AC1000000158
[696/9063] 334AC0000000024
[697/9063] 334AC0000000067
[698/9063] 334AC0000000091
[699/9063] 334AC0000000121
[700/9063] 334AC0000000122
[701/9063] 334AC0000000123
[702/9063] 334AC0000000124
[703/9063] 334AC0000000125
[704/9063] 334AC0000000126
[705/9063] 334AC0000000127
[706/9063] 334AC0000000128
[707/9063] 334AC0000000135
[708/9063] 334AC0000000136
[709/9063] 334AC0000000137
[710/9063] 334AC0000000141
[711/9063] 334AC0000000147
[712/9063] 334AC0000000155
[713/9063] 334AC0000000160
[714/9063] 334AC0000000165
[715/9063] 334AC0000000194
[716/9063] 334AC1000000007
[717/9063] 335AC0000000023
[718/9063] 335AC0000000030
[719/9063] 335AC0000000036
[720/9063] 335AC0000000037
[721/9063] 335AC0000000049
[722/9063] 335AC0000000084
[723/9063] 335AC0000000089
[724/9063] 335AC0000000100
[725/9063] 335AC0000000105
[726/9063] 335AC0000000123
[727/9063] 335AC0000000139
[728/9063] 335AC0000000145
[729/9063] 335AC0000000146
[730/9063] 335AC0000000153
[731/9063] 336AC0000000015
[732/9063] 336AC0000000023
[733/9063] 336AC0000000048
[734/9063] 336AC0000000081
[735/9063] 336AC0000000112
[736/9063] 336AC0000000119
[737/9063] 336AC0000000138
[738/9063] 336AC0000000147
[739/9063] 336AC0000000148
[740/9063] 336AC0000000150
[741/9063] 336AC0000000155
[742/9063] 336AC0000000159
[743/9063] 336AC0000000162
[744/9063] 336AC0000000183
[745/9063] 336AC0000000188
[746/9063] 336AC0000000191
[747/9063] 336AC0000000195
[748/9063] 336AC0000000199
[749/9063] 336AC0000000202
[750/9063] 336AC0000000204
[751/9063] 336AC0000000215
[752/9063] 336AC0000000216
[753/9063] 336AC0000000217
[754/9063] 336AC0000000223
[755/9063] 336AC0000000234
[756/9063] 336AC0000000238
[757/9063] 336AC0100000103
[758/9063] 337AC0000000060
[759/9063] 337AC0000000066
[760/9063] 337AC0000000069
[761/9063] 337AC0000000088
[762/9063] 337AC0000000100
[763/9063] 337AC0000000104
[764/9063] 337AC0000000116
[765/9063] 337AC0000000119
[766/9063] 337AC0000000134
[767/9063] 337AC0000000139
[768/9063] 337AC0000000144
[769/9063] 337AC0000000145
[770/9063] 337AC0000000150
[771/9063] 337AC0000000152
[772/9063] 337AC0000000153
[773/9063] 337AC1000000073
[774/9063] 337AC1000000141
[775/9063] 337AC1000000142
[776/9063] 337AC1000000143
[777/9063] 338AC0000000056
[778/9063] 338AC0000000061
[779/9063] 338AC0000000063
[780/9063] 338AC0000000081
[781/9063] 338AC0000000101
[782/9063] 338AC0000000125
[783/9063] 338AC0000000126
[784/9063] 338AC0000000129
[785/9063] 338AC0000000130
[786/9063] 338AC0000000133
[787/9063] 338AC0000000134
[788/9063] 338AC0000000137
[789/9063] 338AC0000000138
[790/9063] 338AC0000000147
[791/9063] 338AC0000000152
[792/9063] 338AC0000000154
[793/9063] 338AC0000000182
[794/9063] 338AC1000000168
[795/9063] 339AC0000000083
[796/9063] 339AC0000000100
[797/9063] 339AC0000000101
[798/9063] 339AC0000000106
[799/9063] 339AC0000000109
[800/9063] 339AC0000000111
[801/9063] 339AC0000000118
[802/9063] 339AC0000000123
[803/9063] 339AC0000000129
[804/9063] 339AC0000000134
[805/9063] 339AC0000000145
[806/9063] 339AC0000000150
[807/9063] 339AC0000000155
[808/9063] 339AC0000000158
[809/9063] 339AC0000000161
[810/9063] 339AC0000000167
[811/9063] 339AC0000000168
[812/9063] 339AC0000000170
[813/9063] 340AC0000000033
[814/9063] 340AC0000000034
[815/9063] 340AC0000000038
[816/9063] 340AC0000000100
[817/9063] 340AC0000000101
[818/9063] 340AC0000000102
[819/9063] 340AC0000000109
[820/9063] 340AC0000000112
[821/9063] 340AC0000000124
[822/9063] 340AC0000000133
[823/9063] 340AC0000000137
[824/9063] 340AC0000000141
[825/9063] 340AC0000000144
[826/9063] 340AC0000000156
[827/9063] 340AC0000000157
[828/9063] 340AC0100000085
[829/9063] 340AC1000000064
[830/9063] 340AC1000000118
[831/9063] 341AC0000000020
[832/9063] 341AC0000000045
[833/9063] 341AC0000000052
[834/9063] 341AC0000000073
[835/9063] 341AC0000000097
[836/9063] 341AC0000000099
[837/9063] 341AC0000000101
[838/9063] 341AC0000000103
[839/9063] 341AC0000000105
[840/9063] 341AC0000000109
[841/9063] 341AC0000000110
[842/9063] 341AC0000000111
[843/9063] 341AC0000000114
[844/9063] 341AC0000000119
[845/9063] 341AC0000000126
[846/9063] 341AC0000000132
[847/9063] 341AC0000000138
[848/9063] 341AC1000000001
[849/9063] 341AC1000000102
[850/9063] 341AC1000000115
[851/9063] 341AC1000000133
[852/9063] 342AC0000000023
[853/9063] 342AC0000000035
[854/9063] 342AC0000000057
[855/9063] 342AC0000000060
[856/9063] 342AC0000000061
[857/9063] 342AC0000000075
[858/9063] 342AC0000000078
[859/9063] 342AC0000000081
[860/9063] 342AC0000000086
[861/9063] 342AC0000000092
[862/9063] 342AC0000000102
[863/9063] 342AC0000000103
[864/9063] 342AC0000000104
[865/9063] 342AC0000000105
[866/9063] 342AC0000000110
[867/9063] 342AC0000000114
[868/9063] 342AC0000000121
[869/9063] 342AC0000000122
[870/9063] 342AC0000000135
[871/9063] 342AC0000000149
[872/9063] 342AC1000000130
[873/9063] 342AC1000000131
[874/9063] 343AC0000000017
[875/9063] 343AC0000000074
[876/9063] 343AC0000000083
[877/9063] 343AC0000000086
[878/9063] 343AC0000000091
[879/9063] 343AC0000000097
[880/9063] 343AC0000000098
[881/9063] 343AC0000000100
[882/9063] 343AC0000000101
[883/9063] 343AC0000000102
[884/9063] 343AC1000000078
[885/9063] 343AC1000000089
[886/9063] 344AC0000000033
[887/9063] 344AC0000000038
[888/9063] 344AC0000000046
[889/9063] 344AC0000000049
[890/9063] 344AC0000000052
[891/9063] 344AC0000000057
[892/9063] 344AC0000000058
[893/9063] 344AC0000000064
[894/9063] 344AC0000000079
[895/9063] 344AC0000000080
[896/9063] 344AC0000000084
[897/9063] 344AC0000000085
[898/9063] 344AC0000000094
[899/9063] 345AC0000000007
[900/9063] 345AC0000000013
[901/9063] 345AC0000000033
[902/9063] 345AC0000000048
[903/9063] 345AC0000000060
[904/9063] 345AC0000000068
[905/9063] 345AC0000000075
[906/9063] 345AC0000000077
[907/9063] 345AC0000000082
[908/9063] 345AC0000000089
[909/9063] 345AC0000000090
[910/9063] 345AC0000000098
[911/9063] 345AC0000000106
[912/9063] 345AC0000000108
[913/9063] 345AC0000000110
[914/9063] 345AC0000000112
[915/9063] 345AC0000000115
[916/9063] 345AC0000000117
[917/9063] 345AC0000000133
[918/9063] 345AC0000000136
[919/9063] 345AC0000000137
[920/9063] 345AC0000000138
[921/9063] 345AC0000000139
[922/9063] 345AC0000000142
[923/9063] 345AC0000000145
[924/9063] 345AC1000000015
[925/9063] 345AC1000000016
[926/9063] 345AC1000000019
[927/9063] 345AC1000000020
[928/9063] 345AC1000000071
[929/9063] 345AC1000000073
[930/9063] 345AC1000000084
[931/9063] 345AC1000000096
[932/9063] 346AC0000000032
[933/9063] 346AC0000000034
[934/9063] 346AC0000000035
[935/9063] 346AC0000000040
[936/9063] 346AC0000000041
[937/9063] 346AC0000000042
[938/9063] 346AC0000000045
[939/9063] 346AC0000000060
[940/9063] 346AC0000000064
[941/9063] 346AC0000000065
[942/9063] 346AC0000000068
[943/9063] 346AC0000000070
[944/9063] 346AC0000000073
[945/9063] 346AC0000000077
[946/9063] 346AC0000000089
[947/9063] 346AC0000000090
[948/9063] 346AC0000000091
[949/9063] 346AC0000000092
[950/9063] 346AC0000000107
[951/9063] 346AC0000000108
[952/9063] 346AC0000000111
[953/9063] 346AC0000000112
[954/9063] 346AC0000000129
[955/9063] 347AC0000000007
[956/9063] 347AC0000000013
[957/9063] 347AC0000000024
[958/9063] 347AC0000000031
[959/9063] 347AC0000000033
[960/9063] 347AC0000000041
[961/9063] 347AC0000000050
[962/9063] 347AC0000000052
[963/9063] 347AC0000000057
[964/9063] 347AC0000000066
[965/9063] 347AC0000000085
[966/9063] 347AC0000000086
[967/9063] 347AC0000000088
[968/9063] 347AC0000000105
[969/9063] 347AC0000000113
[970/9063] 347AC0000000115
[971/9063] 347AC0000000117
[972/9063] 347AC1000000017
[973/9063] 347AC1000000107
[974/9063] 347AC1000000129
[975/9063] 347AC1000000132
[976/9063] 348AC0000000007
[977/9063] 348AC0000000026
[978/9063] 348AC0000000031
[979/9063] 348AC0000000038
[980/9063] 348AC0000000048
[981/9063] 348AC0000000053
[982/9063] 348AC0000000070
[983/9063] 348AC0000000072
[984/9063] 348AC0000000101
[985/9063] 348AC0000000102
[986/9063] 348AC0000000111
[987/9063] 348AC0000000112
[988/9063] 348AC0000000113
[989/9063] 348AC0000000117
[990/9063] 348AC0000000118
[991/9063] 348AC0000000121
[992/9063] 348AC0000000122
[993/9063] 348AC0100000082
[994/9063] 348AC1000000061
[995/9063] 348AC1000000100
[996/9063] 348AC1000000105
[997/9063] 348AC1000000110
[998/9063] 349AC0000000002
[999/9063] 349AC0000000049
[1000/9063] 349AC0000000068
[1001/9063] 349AC0000000078
[1002/9063] 349AC0000000079
[1003/9063] 349AC0000000087
[1004/9063] 349AC0000000101
[1005/9063] 349AC0000000116
[1006/9063] 349AC1000000057
[1007/9063] 349AC1000000092
[1008/9063] 350AC0000000028
[1009/9063] 350AC0000000057
[1010/9063] 350AC0000000067
[1011/9063] 350AC0000000084
[1012/9063] 350AC0000000089
[1013/9063] 350AC0000000094
[1014/9063] 350AC0000000095
[1015/9063] 350AC0000000096
[1016/9063] 350AC1000000031
[1017/9063] 350AC1000000061
[1018/9063] 351AC0000000033
[1019/9063] 351AC0000000034
[1020/9063] 351AC0000000038
[1021/9063] 351AC0000000040
[1022/9063] 351AC0000000042
[1023/9063] 351AC0000000043
[1024/9063] 351AC0000000057
[1025/9063] 351AC0000000064
[1026/9063] 351AC0000000072
[1027/9063] 351AC0000000073
[1028/9063] 351AC0000000088
[1029/9063] 352AC0000000001
[1030/9063] 352AC0000000028
[1031/9063] 352AC0000000030
[1032/9063] 352AC0000000035
[1033/9063] 352AC0000000040
[1034/9063] 352AC0000000050
[1035/9063] 352AC0000000054
[1036/9063] 352AC0000000060
[1037/9063] 352AC0000000062
[1038/9063] 352AC0000000074
[1039/9063] 352AC0000000084
[1040/9063] 352AC0000000093
[1041/9063] 352AC1000000071
[1042/9063] 352AC1000000094
[1043/9063] 352AC1000000096
[1044/9063] 353AC0000000004
[1045/9063] 353AC0000000025
[1046/9063] 353AC0000000026
[1047/9063] 353AC0000000030
[1048/9063] 353AC0000000036
[1049/9063] 353AC0000000043
[1050/9063] 353AC0000000048
[1051/9063] 353AC0000000073
[1052/9063] 353AC0000000078
[1053/9063] 353AC0000000080
[1054/9063] 353AC0000000081
[1055/9063] 353AC0000000103
[1056/9063] 353AC1000000042
[1057/9063] 353AC1000000101
[1058/9063] 353AC1000000104
[1059/9063] 354AC0000000004
[1060/9063] 354AC0000000025
[1061/9063] 354AC0000000026
[1062/9063] 354AC0000000033
[1063/9063] 354AC0000000043
[1064/9063] 354AC0000000049
[1065/9063] 354AC0000000051
[1066/9063] 355AC0000000003
[1067/9063] 355AC0000000034
[1068/9063] 355AC0000000036
[1069/9063] 355AC0000000037
[1070/9063] 355AC0000000040
[1071/9063] 355AC0000000060
[1072/9063] 355AC0000000065
[1073/9063] 355AC0000000069
[1074/9063] 355AC0000000071
[1075/9063] 355AC0000000086
[1076/9063] 355AC0000000091
[1077/9063] 355AC1000000063
[1078/9063] 355AC1000000087
[1079/9063] 356AC0000000001
[1080/9063] 356AC0000000024
[1081/9063] 356AC0000000028
[1082/9063] 356AC0000000039
[1083/9063] 356AC0000000041
[1084/9063] 356AC0000000042
---------------------------------------------------------------------------
KeyboardInterrupt                         Traceback (most recent call last)
/tmp/ipykernel_2882/3542351581.py in <cell line: 0>()
     10     print(f"[{i+1}/{len(all_laws)}] {law_id}")
     11     try:
---> 12         revs = build_law_history(law_summary)
     13         for _, rev_id, enf_date, status in revs:
     14             if status == "UnEnforced":

/tmp/ipykernel_2882/2041402428.py in build_law_history(law_summary, dry_run)
      5     """
      6     law_id = law_summary["law_info"]["law_id"]
----> 7     revisions = get_law_revisions(law_id)
      8     if not revisions:
      9         return []

/tmp/ipykernel_2882/631463256.py in get_law_revisions(law_id_or_num)
     34 def get_law_revisions(law_id_or_num):
     35     """法令の改正履歴を取得"""
---> 36     data = api_get(f"/law_revisions/{law_id_or_num}")
     37     if not data:
     38         return []

/tmp/ipykernel_2882/631463256.py in api_get(endpoint, params)
      7     req = urllib.request.Request(url, headers={"Accept": "application/json"})
      8     try:
----> 9         with urllib.request.urlopen(req, timeout=60) as res:
     10             return json.loads(res.read().decode("utf-8"))
     11     except urllib.error.HTTPError as e:

/usr/lib/python3.13/urllib/request.py in urlopen(url, data, timeout, context)
    187     else:
    188         opener = _opener
--> 189     return opener.open(url, data, timeout)
    190 
    191 def install_opener(opener):

/usr/lib/python3.13/urllib/request.py in open(self, fullurl, data, timeout)
    487 
    488         sys.audit('urllib.Request', req.full_url, req.data, req.headers, req.get_method())
--> 489         response = self._open(req, data)
    490 
    491         # post-process response

/usr/lib/python3.13/urllib/request.py in _open(self, req, data)
    504 
    505         protocol = req.type
--> 506         result = self._call_chain(self.handle_open, protocol, protocol +
    507                                   '_open', req)
    508         if result:

/usr/lib/python3.13/urllib/request.py in _call_chain(self, chain, kind, meth_name, *args)
    464         for handler in handlers:
    465             func = getattr(handler, meth_name)
--> 466             result = func(*args)
    467             if result is not None:
    468                 return result

/usr/lib/python3.13/urllib/request.py in https_open(self, req)
   1377 
   1378         def https_open(self, req):
-> 1379             return self.do_open(http.client.HTTPSConnection, req,
   1380                                 context=self._context)
   1381 

/usr/lib/python3.13/urllib/request.py in do_open(self, http_class, req, **http_conn_args)
   1333             except OSError as err: # timeout error
   1334                 raise URLError(err)
-> 1335             r = h.getresponse()
   1336         except:
   1337             h.close()

/usr/lib/python3.13/http/client.py in getresponse(self)
   1476         try:
   1477             try:
-> 1478                 response.begin()
   1479             except ConnectionError:
   1480                 self.close()

/usr/lib/python3.13/http/client.py in begin(self)
    341         # read until we get a non-100 response
    342         for _ in range(_MAXINTERIMRESPONSES):
--> 343             version, status, reason = self._read_status()
    344             if status != CONTINUE:
    345                 break

/usr/lib/python3.13/http/client.py in _read_status(self)
    302 
    303     def _read_status(self):
--> 304         line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
    305         if len(line) > _MAXLINE:
    306             raise LineTooLong("status line")

/usr/lib/python3.13/socket.py in readinto(self, b)
    721             raise OSError("cannot read from timed out object")
    722         try:
--> 723             return self._sock.recv_into(b)
    724         except timeout:
    725             self._timeout_occurred = True

/usr/lib/python3.13/ssl.py in recv_into(self, buffer, nbytes, flags)
   1313                   "non-zero flags not allowed in calls to recv_into() on %s" %
   1314                   self.__class__)
-> 1315             return self.read(nbytes, buffer)
   1316         else:
   1317             return super().recv_into(buffer, nbytes, flags)

/usr/lib/python3.13/ssl.py in read(self, len, buffer)
   1147         try:
   1148             if buffer is not None:
-> 1149                 return self._sslobj.read(len, buffer)
   1150             else:
   1151                 return self._sslobj.read(len)

KeyboardInterrupt: 

10. main ブランチの構築(施行日順にコミット)

git_checkout_branch(REPO_DIR, "main")

# 施行日でソート
sorted_dates = sorted(commits_map.keys())

for date_iso in sorted_dates:
    items = commits_map[date_iso]
    changed_laws = []
    amendment_law_num = None
    promulgation_date = None

    for law_summary, rev_id, status in items:
        law_id = law_summary["law_info"]["law_id"]
        law_title = law_summary["revision_info"].get("law_title", "")
        # 法令データを取得
        try:
            data = get_law_data(rev_id, json_format="light")
            if not data:
                continue
            md = law_data_to_markdown(data)
            file_path = get_law_file_path(data["law_info"])
            full_path = REPO_DIR / file_path
            full_path.parent.mkdir(parents=True, exist_ok=True)
            full_path.write_text(md, encoding="utf-8")
            changed_laws.append(str(file_path))
            # 改正法令情報の抽出(revision_info.amendment_law_num など)
            rev_info = data.get("revision_info", {})
            if not amendment_law_num:
                amendment_law_num = rev_info.get("amendment_law_num", "")
            if not promulgation_date:
                promulgation_date = rev_info.get("promulgation_date", "")
        except Exception as e:
            print(f"  取得失敗 {law_id}: {e}")
        time.sleep(0.2)

    if not changed_laws:
        continue

    # コミットメッセージ構築
    # 改正法の題名を取得するには law_revisions の情報を使う
    first_law = items[0][0]
    revs = get_law_revisions(first_law["law_info"]["law_id"])
    amendment_title = ""
    for r in revs:
        if r.get("amendment_enforcement_date") == date_iso:
            amendment_title = r.get("amendment_law_title", "")
            amendment_law_num = r.get("amendment_law_num", amendment_law_num)
            promulgation_date = r.get("promulgation_date", promulgation_date)
            break

    commit_msg = f"{amendment_title or '法令改正'} 施行"
    trailers = {}
    if amendment_law_num:
        trailers["改正法令"] = amendment_law_num
    if promulgation_date:
        trailers["公布日"] = promulgation_date
    trailers["施行日"] = date_iso

    # 変更された法令一覧
    law_names = []
    for law_summary, _, _ in items:
        title = law_summary["revision_info"].get("law_title", "")
        law_num = law_summary["law_info"].get("law_num", "")
        if title:
            law_names.append(f"- {title}({law_num})" if law_num else f"- {title}")
    if law_names:
        trailers["変更された法令"] = "\n" + "\n".join(law_names)

    committed = git_commit(REPO_DIR, commit_msg, date_iso, trailers=trailers, files=changed_laws)
    if committed:
        print(f"[{date_iso}] {commit_msg} ({len(changed_laws)} files)")
    else:
        print(f"[{date_iso}] 変更なし")

print("main ブランチの構築完了")
---------------------------------------------------------------------------
FileNotFoundError                         Traceback (most recent call last)
/tmp/ipykernel_2882/4271528604.py in <cell line: 0>()
----> 1 git_checkout_branch(REPO_DIR, "main")
      2 
      3 # 施行日でソート
      4 sorted_dates = sorted(commits_map.keys())
      5 

/tmp/ipykernel_2882/1054130389.py in git_checkout_branch(repo_dir, branch_name, orphan)
     41 def git_checkout_branch(repo_dir, branch_name, orphan=False):
     42     """ブランチを切り替え(存在しなければ作成)"""
---> 43     result = subprocess.run(
     44         ["git", "branch", "--list", branch_name],
     45         cwd=repo_dir, capture_output=True, text=True

/usr/lib/python3.13/subprocess.py in run(input, capture_output, timeout, check, *popenargs, **kwargs)
    553         kwargs['stderr'] = PIPE
    554 
--> 555     with Popen(*popenargs, **kwargs) as process:
    556         try:
    557             stdout, stderr = process.communicate(input, timeout=timeout)

/usr/lib/python3.13/subprocess.py in __init__(self, args, bufsize, executable, stdin, stdout, stderr, preexec_fn, close_fds, shell, cwd, env, universal_newlines, startupinfo, creationflags, restore_signals, start_new_session, pass_fds, user, group, extra_groups, encoding, errors, text, umask, pipesize, process_group)
   1038                             encoding=encoding, errors=errors)
   1039 
-> 1040             self._execute_child(args, executable, preexec_fn, close_fds,
   1041                                 pass_fds, cwd, env,
   1042                                 startupinfo, creationflags, shell,

/usr/lib/python3.13/subprocess.py in _execute_child(self, args, executable, preexec_fn, close_fds, pass_fds, cwd, env, startupinfo, creationflags, shell, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite, restore_signals, gid, gids, uid, umask, start_new_session, process_group)
   1990                         err_msg = os.strerror(errno_num)
   1991                     if err_filename is not None:
-> 1992                         raise child_exception_type(errno_num, err_msg, err_filename)
   1993                     else:
   1994                         raise child_exception_type(errno_num, err_msg)

FileNotFoundError: [Errno 2] No such file or directory: PosixPath('laws_repo')

11. upcoming ブランチの構築(未施行の改正)

git_checkout_branch(REPO_DIR, "upcoming", orphan=True)

# main ブランチの最新ファイルをチェックアウトして上書き
subprocess.run(["git", "checkout", "main", "--", "."], cwd=REPO_DIR, check=True)

for law_summary, rev_id, enf_date in upcoming_items:
    law_id = law_summary["law_info"]["law_id"]
    try:
        data = get_law_data(rev_id, json_format="light")
        if not data:
            continue
        md = law_data_to_markdown(data)
        file_path = get_law_file_path(data["law_info"])
        full_path = REPO_DIR / file_path
        full_path.parent.mkdir(parents=True, exist_ok=True)
        full_path.write_text(md, encoding="utf-8")
        subprocess.run(["git", "add", str(file_path)], cwd=REPO_DIR, check=True)
        print(f"upcoming: {file_path} -> {enf_date}")
    except Exception as e:
        print(f"  失敗 {law_id}: {e}")
    time.sleep(0.2)

# upcoming ブランチにコミット
subprocess.run(
    ["git", "commit", "-m", "upcoming: 公布済み未施行の改正を反映"],
    cwd=REPO_DIR, capture_output=True
)
print("upcoming ブランチの構築完了")

12. 使い方の例

# 個人情報保護法の履歴を見る例
import subprocess

# ファイルパスは法令IDから生成
# 例: 個人情報保護法(415AC0000000057)
example_law_id = "415AC0000000057"
example_path = f"laws/act/415/{example_law_id}.md"

result = subprocess.run(
    ["git", "log", "--format=%ad %s", "--date=short", "--", example_path],
    cwd=REPO_DIR, capture_output=True, text=True
)
print(result.stdout[:2000] if result.stdout else "該当なし")
# 特定条文の変遷を追う例(git log -L)
# 注意: git log -L はファイル内の行範囲を指定するため、Markdown 変換後の形式に依存
example_article = "第十六条"
result = subprocess.run(
    ["git", "log", "-L", f"/^##*  *{example_article}/,/^##*  *第十七条/:{example_path}"],
    cwd=REPO_DIR, capture_output=True, text=True
)
print(result.stdout[:2000] if result.stdout else "該当なし or エラー")
if result.stderr:
    print("STDERR:", result.stderr[:500])

付録: 個人情報保護法の例

A. 法令IDの検索

# 個人情報保護法の法令IDを検索する
import urllib.request
import urllib.parse
import json

BASE_URL = "https://laws.e-gov.go.jp/api/2"

def api_get(endpoint, params=None):
    url = f"{BASE_URL}{endpoint}"
    if params:
        query = urllib.parse.urlencode(params, doseq=True)
        url = f"{url}?{query}"
    req = urllib.request.Request(url, headers={"Accept": "application/json"})
    with urllib.request.urlopen(req, timeout=60) as res:
        return json.loads(res.read().decode("utf-8"))

# 法令名で検索
results = api_get("/laws", {"law_title": "個人情報の保護に関する法律", "limit": 5})
for law in results.get("laws", []):
    info = law["law_info"]
    rev = law["revision_info"]
    print(f"法令ID: {info['law_id']}")
    print(f"法令番号: {info['law_num']}")
    print(f"法令種別: {info['law_type']}")
    print(f"題名: {rev['law_title']}")
    print(f"公布日: {info['promulgation_date']}")
    print(f"現施行日: {rev['amendment_enforcement_date']}")
    print(f"状態: {rev['current_revision_status']}")
    print("---")

B. 改正履歴の取得

# 個人情報保護法の改正履歴を取得する
LAW_ID = "415AC0000000057"  # 個人情の保護に関する法律

revs = api_get(f"/law_revisions/{LAW_ID}")
print(f"改正履歴: {len(revs['revisions'])} 件\n")

for r in revs['revisions']:
    rev_id = r['law_revision_id']
    title = r['law_title']
    enf = r['amendment_enforcement_date']
    status = r['current_revision_status']
    amend_title = r.get('amendment_law_title', '')
    amend_num = r.get('amendment_law_num', '')
    print(f"[{status}] {enf} | {rev_id}")
    if amend_title:
        print(f"  改正法: {amend_title}")
    if amend_num:
        print(f"  改正法令番号: {amend_num}")
    print()

C. 特定改正版の本文を Markdown で取得

# 例: 令和8年法律第60号による改正版(2026-07-17 施行)の本文を取得
# 改正履歴から該当する revision_id を探す
target_rev_id = None
for r in revs['revisions']:
    if r['amendment_enforcement_date'] == '2026-07-17':
        target_rev_id = r['law_revision_id']
        break

if target_rev_id:
    data = api_get(f"/law_data/{target_rev_id}?json_format=light")
    print(f"取得した法令: {data['revision_info']['law_title']}")
    print(f"施行日: {data['revision_info']['amendment_enforcement_date']}")
    print(f"改正法: {data['revision_info'].get('amendment_law_title', 'N/A')}")
    print(f"改正法令番号: {data['revision_info'].get('amendment_law_num', 'N/A')}")
    print("\n--- 本文(先頭3000文字) ---\n")
    # Markdown 変換関数を使う(上のセルで定義済み)
    md = law_data_to_markdown(data)
    print(md[:3000])
else:
    print("該当する改正版が見つかりませんでした")

D. Git リポジトリでの確認例

import subprocess

REPO_DIR = "laws_repo"
LAW_PATH = "laws/act/415/415AC0000000057.md"

# 1. 個人情報保護法の改正履歴を git log で見る
print("=== git log: 個人情報保護法の改正履歴 ===\n")
result = subprocess.run(
    ["git", "log", "--format=%ad %s", "--date=short", "--", LAW_PATH],
    cwd=REPO_DIR, capture_output=True, text=True
)
print(result.stdout[:2000] if result.stdout else "該当なし")
# 2. 第十六条の変遷を git log -L で追う
print("=== git log -L: 第十六条の変遷 ===\n")
result = subprocess.run(
    ["git", "log", "-L", f"/^##*  *第十六条/,/^##*  *第十七条/:{LAW_PATH}"],
    cwd=REPO_DIR, capture_output=True, text=True
)
print(result.stdout[:3000] if result.stdout else "該当なし or エラー")
if result.stderr:
    print("\nSTDERR:", result.stderr[:500])
# 3. 特定コミットの差分を見る(例: 2026-07-17 の改正)
print("=== git show: 2026-07-17 の改正の差分 ===\n")
# まず該当コミットを探す
result = subprocess.run(
    ["git", "log", "--format=%H %ad %s", "--date=short", "--grep", "2026-07-17", "-1"],
    cwd=REPO_DIR, capture_output=True, text=True
)
if result.stdout.strip():
    commit_hash = result.stdout.strip().split()[0]
    print(f"コミット: {commit_hash}\n")
    diff_result = subprocess.run(
        ["git", "show", "--stat", commit_hash],
        cwd=REPO_DIR, capture_output=True, text=True
    )
    print(diff_result.stdout[:2000])
else:
    print("該当コミットが見つかりませんでした")
# 4. 個人情報保護法のファイルを blame して、各条文が最後に変更されたコミットを見る
print("=== git blame: 第十六条の最終変更コミット ===\n")
result = subprocess.run(
    ["git", "blame", "-L", "/^### 第十六条/,/^### 第十七条/", LAW_PATH],
    cwd=REPO_DIR, capture_output=True, text=True
)
print(result.stdout[:2000] if result.stdout else "該当なし or エラー")
if result.stderr:
    print("STDERR:", result.stderr[:500])

E. 複数法令への波及を確認する例

# 特定の改正法(例: 令和8年法律第60号)がどれだけの法令に影響を与えたか確認
print("=== 令和8年法律第60号の影響範囲 ===\n")
result = subprocess.run(
    ["git", "log", "--all-match", "--grep="改正法令: 令和八年法律第六十号"", "--format=%ad %s", "--date=short"],
    cwd=REPO_DIR, capture_output=True, text=True
)
if result.stdout.strip():
    lines = result.stdout.strip().split("\n")
    print(f"影響を受けたコミット数: {len(lines)}")
    print("\n先頭10件:")
    for line in lines[:10]:
        print(line)
else:
    # grep が複数語に対応していない場合の代替
    result2 = subprocess.run(
        ["git", "log", "--format=%H %s", "--grep="令和八年法律第六十号""],
        cwd=REPO_DIR, capture_output=True, text=True
    )
    if result2.stdout.strip():
        lines = result2.stdout.strip().split("\n")
        print(f"該当コミット数: {len(lines)}")
        for line in lines[:10]:
            print(line)
    else:
        print("該コミットが見つかりませんでした")

補足・注意点

  • API レート制限: e-Gov API は認証不要ですが、大量リクエストは避け、適宜 time.sleep() を入れてください。
  • データサイズ: 全法令(約 9,500 件)を処理ると時間がかかります。テスト時は TARGET_LAW_TYPES を絞るか、all_laws[:10] などで件数を制限してください。
  • Markdown 変換の精度: 上記の law_data_to_markdown は簡易実装です。複雑な構造(テーブル、号の階層、別表など)は完全には対応していません。必要に応じて XML 版(law_file API)を使って詳細なパースを行ってください。
  • 1970年問題: Git は Unix 時間(1970-01-01 以降)しかコミット日付として持てません。1970-01-01 未満の施行日は 1970-01-02 に寄せ、Enforced トレーラーに本来の日付を記録しています。
  • 議案情報: 記事では衆議院議案情報との紐付けも行っていますが、本 Notebook では省略しています。必要であれば国会会議録 API 等と組み合わせてください。

リポジトリ

このノートブックは GoogleColaboratory リポジトリで公開しています。