# Python 种子语料 — fuzz 变异起点（fuzz_input.py --lang python）
# 每行一个独立种子：语法片段 + 易错输入（缩进/嵌套/字符串/数字边界）

def process(data, opts=None):
    try:
        result = json.loads(data)
        for item in result.get("items", []):
            print(item["name"], item["count"] * 2)
    except ValueError as e:
        log_error(e)
    finally:
        cleanup()

class Parser:
    def parse(self, text, depth=0):
        if depth > 100:
            raise RecursionError("too deep")
        return [self.parse(x, depth+1) for x in text.split(",")]

"hello"
"""multiline
string with "quotes" and \n escapes"""
'unicode \u00e9 \u4e2d\u6587 emoji \U0001f600'
f"interpolated {name} {count!r} {obj.value:.2f}"
b"bytes \x00\x01\xff"
123456789012345678901234567890
1e999
-0.0
0xdeadbeef
1_000_000
{"nested": {"deep": {"list": [1,2,3]}}, "empty": {}, "null": null}
[1, [2, [3, [4, [5]]]]]
(
    lambda x, y: x + y
)(1, 2)
if True:
    pass
elif False:
    pass
else:
    pass
# comment with unicode 中文
    # indented comment inside
def spec_text():
load_dotenv()
def setup(app):
data = middle_json_content
def test_markdown_it_py(benchmark, spec_text):
Date: 2013-08-25
'sphinx.ext.autodoc',
app = Server()
return Path(__file__).parent.joinpath("samples", "spec.md").read_text()
if pred == gt:
with tempfile.TemporaryDirectory() as temp_dir:
def evaluate(pred, gt):
self.tag = tag
source_suffix = ['.rst', '.md']
copyright = "2019, Hsiaoming Yang"
class TableTree(Tree):
freq = psutil.cpu_freq()
def do_parse(path_list, output_dir):
build(sys.argv[1:] if len(sys.argv) > 1 else None)
load_dotenv()
MAX_FILE_SIZE_BYTES: int = MAX_FILE_SIZE_MB * 1024 * 1024  # 5MB limit
def evaluate(pred, gt):
pdf_bytes_list = []
extensions = [
"""Test that path traversal attacks are blocked"""
nltk.download("punkt")
def calculate_bleu_score(reference_text: str, candidate_text: str) -> float:
path = Path(input_path).expanduser().resolve()
