<?php
$files = glob("viewed_step_*.txt");
foreach ($files as $file) {
    $content = file_get_contents($file);
    if (strpos($content, 'applyFutureTSFilter') !== false) {
        echo "=== File: $file ===\n";
        // Let's find where applyFutureTSFilter is defined
        $pos = strpos($content, 'function applyFutureTSFilter');
        if ($pos !== false) {
            echo substr($content, $pos, 1500) . "\n";
        }
    }
}
