<commit_before><?php

namespace App\Http\Controllers;

use Laravel\Lumen\Routing\Controller as BaseController;

class Controller extends BaseController
{
    //
}<commit_msg>Add helper method for easy responses to the Angular client<commit_after><?php

namespace App\Http\Controllers;

use Laravel\Lumen\Routing\Controller as BaseController;

class Controller extends BaseController
{
    /**
     * Simple wrapper that wraps responses into a
     * format that the Angular client expects.
     *
     * @param  string  $content
     * @param  int     $status
     * @param  array   $headers
     * @return \Illuminate\Http\Response|\Laravel\Lumen\Http\ResponseFactory
     */
    public function api($content = '', $status = 200, array $headers = [])
    {
        return response(['data' => $content], $status, $headers);
    }
}
{'fraction_non_alphanumeric': 0.10589651022864019, 'fraction_numerical': 0.0036101083032490976, 'mean_word_length': 3.288659793814433, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '910879', 'n_tokens_mistral': 236, 'n_tokens_neox': 235, 'n_words': 67}