<?php
function search_brain_files($dir) {
    if (!is_dir($dir)) return;
    $it = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($dir));
    foreach ($it as $file) {
        if ($file->isFile() && $file->getExtension() === 'php' || $file->getExtension() === 'txt' || $file->getExtension() === 'jsonl') {
            $content = file_get_contents($file->getPathname());
            if (strpos($content, '1CYzZUlvatiC4punu8QTv2uQh_tT59jBE') !== false) {
                echo "Found in file: " . $file->getPathname() . "\n";
                // Print matching lines
                $lines = explode("\n", $content);
                foreach ($lines as $i => $line) {
                    if (strpos($line, '1CYzZUlvatiC4punu8QTv2uQh_tT59jBE') !== false) {
                        echo "Line " . ($i + 1) . ": " . substr(trim($line), 0, 500) . "\n";
                    }
                }
            }
        }
    }
}

$brainDir = 'C:/Users/HP/.gemini/antigravity-ide/brain';
search_brain_files($brainDir);
