Team Ai
Datasetpublic

cy0307/awesome-loop-engineering

Awesome Loop Engineering Dataset A structured dataset of 1025 papers, official docs, tools, benchmarks, patterns, critiques, and implementation guides for recurring AI-agent systems. Resource Atlas · GitHub field guide · Resource selection · Report a correction   Dataset Summary Each row connects an original source to its contribution, novelty, impact, publication details, lifecycle stages, audience, evidence type, link status, and… See the full description on the dataset page: https://huggingface.co/datasets/cy0307/awesome-loop-engineering.

sourceHugging Facecc0-1.0updated 14d agoView on Hugging Face
3likes5.3kdownloads
check_commit_identity.py55 linesDownload Raw Back to scripts
1#!/usr/bin/env python32"""Guard `main` against non-owner commit identities and co-author trailers."""3 4from __future__ import annotations5 6import subprocess7import sys8 9 10OWNER_NAME = "ChaoYue0307"11OWNER_EMAIL = "hechaoyue0307@gmail.com"12 13 14def commit_records() -> list[tuple[str, str, str, str, str, str]]:15    record_format = "%H%x00%an%x00%ae%x00%cn%x00%ce%x00%B%x00"16    raw = subprocess.check_output(["git", "log", "-z", f"--format={record_format}"])17    records: list[tuple[str, str, str, str, str, str]] = []18    for raw_record in raw.split(b"\x00\x00"):19        if not raw_record:20            continue21        fields = raw_record.decode("utf-8").split("\x00", 5)22        if len(fields) != 6:23            raise ValueError("could not parse a commit identity record")24        records.append((fields[0], fields[1], fields[2], fields[3], fields[4], fields[5]))25    return records26 27 28def main() -> int:29    try:30        commits = commit_records()31    except (subprocess.CalledProcessError, UnicodeDecodeError, ValueError) as error:32        print(f"Could not inspect git history: {error}", file=sys.stderr)33        return 134 35    failures: list[str] = []36    for commit, author_name, author_email, committer_name, committer_email, message in commits:37        if (author_name, author_email) != (OWNER_NAME, OWNER_EMAIL):38            failures.append(f"{commit}: unexpected author {author_name} <{author_email}>")39        if (committer_name, committer_email) != (OWNER_NAME, OWNER_EMAIL):40            failures.append(f"{commit}: unexpected committer {committer_name} <{committer_email}>")41        if any(line.lower().startswith("co-authored-by:") for line in message.splitlines()):42            failures.append(f"{commit}: contains a co-author trailer")43 44    if failures:45        print("Commit identity check failed:", file=sys.stderr)46        for failure in failures:47            print(f"- {failure}", file=sys.stderr)48        return 149 50    return 051 52 53if __name__ == "__main__":54    raise SystemExit(main())55