{
  "cells": [
    {
      "cell_type": "markdown",
      "metadata": {},
      "source": [
        "# Cock ring Amazon 导出数据审计与复现\n",
        "工作目录为本 Notebook 所在目录。仅重建本地审计、检索与报告；结论的解释文字是人工阅读后的研究者归纳，代码不能独立证明它。192 条全文深读是分层探索样本，关键词计数不是投诉率。"
      ]
    },
    {
      "cell_type": "code",
      "execution_count": null,
      "metadata": {},
      "outputs": [],
      "source": [
        "from pathlib import Path\n",
        "import runpy, json\n",
        "base = Path.cwd()\n",
        "assert (base / \"analyze.py\").exists(), \"请在 Notebook 所在目录运行\"\n",
        "for script in [\"analyze.py\", \"screen.py\", \"build_report.py\"]:\n",
        "    runpy.run_path(str(base / script), run_name=\"__main__\")\n"
      ]
    },
    {
      "cell_type": "code",
      "execution_count": null,
      "metadata": {},
      "outputs": [],
      "source": [
        "audit = json.loads((base / \"audit.json\").read_text())\n",
        "assert audit[\"raw_rows\"] == 2342\n",
        "assert audit[\"unique_reviews\"] == 1425\n",
        "assert audit[\"usable_content\"] == 1422\n",
        "assert len(audit[\"pools\"]) == 7\n",
        "sample = json.loads((base / \"deep-read-sample.json\").read_text())\n",
        "assert len(sample) == 192\n",
        "{k: audit[k] for k in [\"raw_rows\", \"unique_reviews\", \"removed_repeated_rows\", \"usable_content\", \"nations\"]}\n"
      ]
    }
  ],
  "metadata": {
    "kernelspec": {
      "display_name": "Python 3",
      "language": "python",
      "name": "python3"
    },
    "language_info": {
      "name": "python",
      "version": "3"
    }
  },
  "nbformat": 4,
  "nbformat_minor": 5
}