{
"event": "PreToolUse",
"tool_name": "Read",
"tool_input": {
"file_path": "\/var\/www\/dev.campus.systemische-tools.de\/src\/Controller\/SemanticExplorerController.php",
"limit": 15
}
}
{
"tool_response": {
"type": "text",
"file": {
"filePath": "\/var\/www\/dev.campus.systemische-tools.de\/src\/Controller\/SemanticExplorerController.php",
"content": "\n \/**\n * GET \/semantic-explorer\/semantik\n * Semantische Analyse pro Chunk\n *\/\n public function semantik(): void\n {\n $sentiment = $this->getString('sentiment');\n $page = $this->getPage();\n $limit = 50;\n $offset = ($page - 1) * $limit;\n\n $totalCount = $this->repository->getSemanticsCount($sentiment);\n $semantics = $this->repository->getSemanticsFiltered($sentiment, $limit, $offset);\n\n \/\/ JSON dekodieren\n foreach ($semantics as &$s) {\n $s['keywords_decoded'] = $this->decodeJson($s['keywords'] ?? null);\n $s['topics_decoded'] = $this->decodeJson($s['topics'] ?? null);\n }\n\n $stats = $this->repository->getSemanticStats();\n\n $this->view('semantic-explorer.semantik', [\n 'title' => 'Semantik',\n 'semantics' => $semantics,\n 'stats' => $stats,\n 'currentSentiment' => $sentiment,\n 'currentPage' => $page,\n 'totalCount' => $totalCount,\n 'totalPages' => ceil($totalCount \/ $limit),\n ]);\n }\n}\n",
"numLines": 35,
"startLine": 207,
"totalLines": 241
}
}
}