<commit_before><?php
namespace CodeDay\Clear\Http\Controllers\Manage\Batch;

use \CodeDay\Clear\Models;
use \CodeDay\Clear\Services;

class CsvController extends \CodeDay\Clear\Http\Controller {

    public function getIndex()
    {
        return Services\Registration::GetCsvMultiple(Models\Batch::Managed()->events);
    }
} 
<commit_msg>Fix header for CSV downloads<commit_after><?php
namespace CodeDay\Clear\Http\Controllers\Manage\Batch;

use \CodeDay\Clear\Models;
use \CodeDay\Clear\Services;

class CsvController extends \CodeDay\Clear\Http\Controller {

    public function getIndex()
    {
        $content = Services\Registration::GetCsvMultiple(Models\Batch::Managed()->events);

        return (new \Illuminate\Http\Response($content, 200))
            ->header('Content-type', 'text/csv')
            ->header('Content-disposition', 'attachment;filename=all-attendees-'.time().'.csv');
    }
} 

{'fraction_non_alphanumeric': 0.14065934065934066, 'fraction_numerical': 0.0032967032967032967, 'mean_word_length': 3.9510869565217392, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4734387', 'n_tokens_mistral': 274, 'n_tokens_neox': 270, 'n_words': 44}