<commit_before><?php

namespace Styleguide\Http\Controllers;

use App\Http\Controllers\Controller;
use Illuminate\Http\Request;

class HeroContainedTextController extends Controller
{
    /**
     * Display the full width hero view.
     *
     * @param Request $request
     * @return \Illuminate\View\View
     */
    public function index(Request $request)
    {
        // Set this controller in the allowed controllers list
        config([
            'base.hero_text_controllers' => ['HeroContainedTextController'],
        ]);

        // Remove the link from hero images
        $request->data['hero'] = collect($request->data['hero'])
            ->transform(function ($item) {
                $item['link'] = '';

                return $item;
            })
            ->toArray();

        return view('styleguide-childpage', merge($request->data));
    }
}<commit_msg>Remove the link since it was added to the description now<commit_after><?php

namespace Styleguide\Http\Controllers;

use App\Http\Controllers\Controller;
use Illuminate\Http\Request;

class HeroContainedTextController extends Controller
{
    /**
     * Display the full width hero view.
     *
     * @param Request $request
     * @return \Illuminate\View\View
     */
    public function index(Request $request)
    {
        // Set this controller in the allowed controllers list
        config([
            'base.hero_text_controllers' => ['HeroContainedTextController'],
        ]);

        // Remove the link from hero images
        $request->data['hero'] = collect($request->data['hero'])
            ->transform(function ($item) {
                $item['description'] = strip_tags($item['description'], 'a');

                return $item;
            })
            ->toArray();

        return view('styleguide-childpage', merge($request->data));
    }
}
{'fraction_non_alphanumeric': 0.12419006479481641, 'fraction_numerical': 0.0, 'mean_word_length': 2.344765342960289, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, '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': '2012448', 'n_tokens_mistral': 487, 'n_tokens_neox': 491, 'n_words': 120}