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

@section('title')
@parent
{{$boy->english_name}} | enstars.info
@stop

@section('content')
<div class="container">
    <div class="row">
        <div class="col-md-12">

            <h1>{{$boy->first_name}} {{$boy->last_name}}</h1>
                <div id="cards" class="row">
                    <?php $x=1; ?>
                    @foreach($basic_cards as $card)
                        {{ $card->display() }}
                        <?php
                            if ($x%4==0) {
?>
                            </div>
                            <div class="row">
<?php                            
                            }
                            $x++;
                        ?>
                    @endforeach
                </div>            
                <hr>
                <div id="cards" class="row">
                    <?php $x=1; ?>
                    @foreach($cards as $card)
                        {{ $card->display() }}
                        <?php
                            if ($x%4==0) {
?>
                            </div>
                            <div class="row">
<?php                            
                            }
                            $x++;
                        ?>
                    @endforeach
                </div>


        </div>
    </div>
    <h2>Information</h2>
    <div class="row">
        <div class="col-md-6">
        @if ($boy->unit_id > 0)
        <h3>Unit: <a href="/unit/{{$boy->unit->url}}">{{$boy->unit->name}}</a></h3>
        @endif
        @if ($boy->class_id > 0)
        <h3>Class: <a href="/class/{{$boy->classroom->class}}">{{$boy->classroom->class}}</a></h3>
        @endif
        <!--<h3>Club: <a href="">{{$boy->unit_id}}</a></h3>-->

        </div>
        <div class="col-md-6">

        </div>
    </div>
    <h2>Stories</h2>
        @foreach($chapters as $chapter)
            @if($chapter->chapter->complete == 1)
            <a href="/story/{{$chapter->chapter->story->id}}">{{$chapter->chapter->story->name_e}}</a> - <a href="/story/{{$chapter->chapter->story->id}}/{{$chapter->chapter->chapter}}">{{$chapter->chapter->name_e}}</a><br>
            @endif
        @endforeach
    <h2>Card Frequency - By Week</h2>
    <p>0 is January and 50 is December, for 52 weeks total. Each ring repesents the card type by amount of stars.</p>
    
    <style>
        #chartdiv {
            width: 50%;
            height: 400px;
        }

        </style>
            <div id="chartdiv"></div>
        <script src="https://www.amcharts.com/lib/4/core.js"></script>
        <script src="https://www.amcharts.com/lib/4/charts.js"></script>
        <script src="https://www.amcharts.com/lib/4/themes/kelly.js"></script>
        <script>
            var boy = '<?php print $boy->id; ?>';
            </script>
    <script>
        /* Set themes */
        am4core.useTheme(am4themes_kelly);

        /* Create chart instance */
        var chart = am4core.create("chartdiv", am4charts.RadarChart);
        chart.dataSource.url = "/data/frequency/"+boy;
        
        /* Create axes */
        var xAxis = chart.xAxes.push(new am4charts.ValueAxis());
        xAxis.renderer.maxLabelPosition = 0.99;

        var yAxis = chart.yAxes.push(new am4charts.ValueAxis());
        yAxis.renderer.labels.template.verticalCenter = "bottom";
        yAxis.renderer.labels.template.horizontalCenter = "right";
        yAxis.renderer.maxLabelPosition = 0.99;


        var series2 = chart.series.push(new am4charts.RadarSeries());
        series2.bullets.push(new am4charts.CircleBullet());
        series2.strokeOpacity = 0;
        series2.dataFields.valueX = "x";
        series2.dataFields.valueY = "y";
        series2.name = "Cards";
        series2.tooltipText = "[[title]]";
        series2.sequencedInterpolation = true;
        series2.sequencedInterpolationDelay = 10;
    </script>
    <p></p>
     <script src="/js/enstars.js"></script>   
</div>
@endsection<commit_msg>Remove circular graph<commit_after>@extends('layouts.layout')

@section('title')
@parent
{{$boy->english_name}} | enstars.info
@stop

@section('content')
<div class="container">
    <div class="row">
        <div class="col-md-12">

            <h1>{{$boy->first_name}} {{$boy->last_name}}</h1>
                <div id="cards" class="row">
                    <?php $x=1; ?>
                    @foreach($basic_cards as $card)
                        {{ $card->display() }}
                        <?php
                            if ($x%4==0) {
?>
                            </div>
                            <div class="row">
<?php                            
                            }
                            $x++;
                        ?>
                    @endforeach
                </div>            
                <hr>
                <div id="cards" class="row">
                    <?php $x=1; ?>
                    @foreach($cards as $card)
                        {{ $card->display() }}
                        <?php
                            if ($x%4==0) {
?>
                            </div>
                            <div class="row">
<?php                            
                            }
                            $x++;
                        ?>
                    @endforeach
                </div>


        </div>
    </div>
    <h2>Information</h2>
    <div class="row">
        <div class="col-md-6">
        @if ($boy->unit_id > 0)
        <h3>Unit: <a href="/unit/{{$boy->unit->url}}">{{$boy->unit->name}}</a></h3>
        @endif
        @if ($boy->class_id > 0)
        <h3>Class: <a href="/class/{{$boy->classroom->class}}">{{$boy->classroom->class}}</a></h3>
        @endif
        <!--<h3>Club: <a href="">{{$boy->unit_id}}</a></h3>-->

        </div>
        <div class="col-md-6">

        </div>
    </div>
    <h2>Stories</h2>
        @foreach($chapters as $chapter)
            @if($chapter->chapter->complete == 1)
            <a href="/story/{{$chapter->chapter->story->id}}">{{$chapter->chapter->story->name_e}}</a> - <a href="/story/{{$chapter->chapter->story->id}}/{{$chapter->chapter->chapter}}">{{$chapter->chapter->name_e}}</a><br>
            @endif
        @endforeach
     <script src="/js/enstars.js"></script>   
</div>
@endsection
{'fraction_non_alphanumeric': 0.1819187608661293, 'fraction_numerical': 0.014382803856488068, 'mean_word_length': 1.3154043175997072, 'pattern_counts': {'":': 0, '<': 130, '<?xml version=': 0, '>': 197, 'https://': 3, 'lorem ipsum': 0, 'www.': 3, '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': '2998775', 'n_tokens_mistral': 1987, 'n_tokens_neox': 1855, 'n_words': 299}