<commit_before><?php

namespace RadDB\Http\Controllers;

use RadDB\Machine;
use RadDB\TestDate;
use Illuminate\Http\Request;

class TestEquipmentController extends Controller
{
    /**
     * Instantiate a new controller instance.
     *
     * @return void
     */
    public function __construct()
    {
        // Only use middlware auth on these methods
        $this->middleware('auth')->only([
             'store',
             'update',
             'destroy',
         ]);
    }

    /**
     * Display a listing of test equipment.
     * URI: /testequipment/.
     *
     * @return \Illuminate\Http\Response
     */
    public function index()
    {
        return view('machine.index', [
            'machineStatus' => 'Test Equipment',
            'machines' => Machine::active()->testEquipment()->get(),
        ]);
    }

    /**
     * Show the form for creating a new resource.
     *
     * @return \Illuminate\Http\Response
     */
    public function create()
    {
        //
    }

    /**
     * Store a newly created resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response
     */
    public function store(Request $request)
    {
        //
    }

    /**
     * Display the specified resource.
     *
     * @param  int  $id
     * @return \Illuminate\Http\Response<commit_msg>Forgot to send machine count to view<commit_after><?php

namespace RadDB\Http\Controllers;

use RadDB\Machine;
use RadDB\TestDate;
use Illuminate\Http\Request;

class TestEquipmentController extends Controller
{
    /**
     * Instantiate a new controller instance.
     *
     * @return void
     */
    public function __construct()
    {
        // Only use middlware auth on these methods
        $this->middleware('auth')->only([
             'store',
             'update',
             'destroy',
         ]);
    }

    /**
     * Display a listing of test equipment.
     * URI: /testequipment/.
     *
     * @return \Illuminate\Http\Response
     */
    public function index()
    {
        $machines = Machine::active()->testEquipment()->get();

        return view('machine.index', [
            'machineStatus' => 'Test Equipment',
            'machines' => $machines,
            'n' => $machines->count(),
        ]);
    }

    /**
     * Show the form for creating a new resource.
     *
     * @return \Illuminate\Http\Response
     */
    public function create()
    {
        //
    }

    /**
     * Store a newly created resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response
     */
    public function store(Request $request)
    {
        //
    }

    /**
     * Display the specified resource.
     *
     * @param  int  $id
     * @return \Illuminate\Http\Response
{'fraction_non_alphanumeric': 0.12464589235127478, 'fraction_numerical': 0.0, 'mean_word_length': 1.7668952007835454, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 17, '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': '1880723', 'n_tokens_mistral': 805, 'n_tokens_neox': 811, 'n_words': 193}