<commit_before>@extends('layout.master')

@section('main_content')

    @include('layout.header', ['header' => 'API Keys', 'subtitle' => 'Northstar application access & permissions'])

    <div class="container -padded">
        <div class="wrapper">
            <div class="container__block">
                <h1>{{ $key->app_id }}</h1>
            </div>

            <div class="container__block">
                <h4>Credentials:</h4>
                <!-- Strange indentation due to `<pre>` tag respecting all whitespace. -->
          <pre>  X-DS-Application-Id: {{ $key->app_id }}
  X-DS-REST-API-Key: {{ $key->api_key }}</pre>
            </div>

            <div class="container__block">
                <h4>Scopes</h4>
                <ul class="list -compacted">
                    @foreach($key->scope as $scope)
                        <li>{{ $scope }}</li>
                    @endforeach
                </ul>


            </div>
            <div class="container__block">
                <ul class="form-actions -inline">
                    <li><a class="button -secondary" href="{{ route('keys.edit', [ $key->api_key]) }}">Edit Key</a></li>
                    <li>
                        <form action="{{ route('keys.destroy', $key->api_key) }}" method="POST">
                            <input type="hidden" name="_method" value="DELETE">
                            <input type="hidden" name="_token" value="{{ csrf_token() }}">
                            <button class="button -secondary -danger">Delete Key</button>
                        </form>
                    </li>
                </ul>
            </div>
        </div>
    </div>
@stop<commit_msg>Remove application ID header from example.<commit_after>@extends('layout.master')

@section('main_content')

    @include('layout.header', ['header' => 'API Keys', 'subtitle' => 'Northstar application access & permissions'])

    <div class="container -padded">
        <div class="wrapper">
            <div class="container__block">
                <h1>{{ $key->app_id }}</h1>
            </div>

            <div class="container__block">
                <h4>Credentials:</h4>
                <pre>X-DS-REST-API-Key: {{ $key->api_key }}</pre>
                <p class="footnote">Send this header with any requests to use this API key.</p>
            </div>

            <div class="container__block">
                <h4>Scopes</h4>
                <ul class="list -compacted">
                    @foreach($key->scope as $scope)
                        <li>{{ $scope }}</li>
                    @endforeach
                </ul>


            </div>
            <div class="container__block">
                <ul class="form-actions -inline">
                    <li><a class="button -secondary" href="{{ route('keys.edit', [ $key->api_key]) }}">Edit Key</a></li>
                    <li>
                        <form action="{{ route('keys.destroy', $key->api_key) }}" method="POST">
                            <input type="hidden" name="_method" value="DELETE">
                            <input type="hidden" name="_token" value="{{ csrf_token() }}">
                            <button class="button -secondary -danger">Delete Key</button>
                        </form>
                    </li>
                </ul>
            </div>
        </div>
    </div>
@stop
{'fraction_non_alphanumeric': 0.16597387173396674, 'fraction_numerical': 0.0035629453681710215, 'mean_word_length': 1.4753857457751653, 'pattern_counts': {'":': 0, '<': 83, '<?xml version=': 0, '>': 98, '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': '911818', 'n_tokens_mistral': 942, 'n_tokens_neox': 886, 'n_words': 196}