{
"event": "PreToolUse",
"tool_name": "Bash",
"tool_input": {
"command": "\/var\/www\/scripts\/pipeline\/venv\/bin\/python -c \"\nimport sys, mysql.connector\nsys.path.insert(0,'\/var\/www\/scripts\/pipeline')\nfrom config import DB_CONFIG\nc = mysql.connector.connect(host=DB_CONFIG['host'], user=DB_CONFIG['user'], password=DB_CONFIG['password'], database='crawler')\ncur = c.cursor()\ncur.execute('DELETE FROM reference_corpus_de WHERE corpus=%s', ('leipzig_news_2024',))\nc.commit()\nprint('cleared')\n\" && .\/venv\/bin\/python scripts\/import_leipzig_corpus.py data\/corpus\/deu_news_2024_1M\/deu_news_2024_1M-words.txt leipzig_news_2024",
"timeout": 300000,
"description": "Clear + proper re-import"
}
}
{
"tool_response": {
"stdout": "cleared\nOK corpus=leipzig_news_2024 lines=743574 accepted=498990",
"stderr": "",
"interrupted": false,
"isImage": false,
"noOutputExpected": false
}
}