<commit_before>@(form: Form[DegreeController.DegreeParameters])(schools: List[School])(degrees: List[Degree])

@import helper.twitterBootstrap._

@main("Degree") {
@menu()
<div class="container">

    <script type="text/javascript">
      /* Table initialisation */
      $(document).ready(function() {
        $('#school_table').dataTable( {
          "bProcessing": true,
          "aaSorting": [[ 0, "asc" ]],
          "bServerSide": true,
          "bJQueryUI": true,
          "sPaginationType": "full_numbers",
          "sAjaxSource": "@routes.SchoolsController.list()"
        });

        var table = $('#school_table').DataTable();

        $('#school_table tbody').on( 'click', 'tr', function () {
            if ( $(this).hasClass('selected') ) {
                $(this).removeClass('selected');
            }
            else {
                table.$('tr.selected').removeClass('selected');
                $(this).addClass('selected');
            }


         } );

      });
        </script>

    <div class="form-signin">
        @helper.form(routes.DegreeController.addDegree) {
            <h2 class="form-signin-heading">Add degree</h2>
            @helper.inputDate(form("dateStarted"),
                '_label -> "Attendance started",
                'class  -> "input-block-level")
            @helper.inputDate(form("dateEnded"),
                '_label -> "Attendance ended",
                'class  -> "input-block-level")
            @helper.inputText(form("name"),
                '_label -> "Name of degree",
                'class  -> "input-block-level")
            @helper.inputText(form("fieldOfStudy"),
                '_label -> "Field of study",
                'class  -> "input-block-level")
            @helper.inputText(form("grade"),
                '_label -> "Grade",
                'class  -> "input-block-level")
            @helper.inputText(form("school"),
                '_label -> "School",
                'class  -> "input-block-level")

            <button type="submit" class="btn btn-large btn-primary">Add</button>
            @if(form.hasGlobalErrors) {
                <p class="error">
                    @form.globalError.message
                </p>
            }
            @if(flash.contains("success")) {
                <p class="success"><commit_msg>search school @degree<commit_after>@(form: Form[DegreeController.DegreeParameters])(schools: List[School])(degrees: List[Degree])

@import helper.twitterBootstrap._

@main("Degree") {
@menu()
<div class="container">

    <script type="text/javascript">
      /* Table initialisation */
      $(document).ready(function() {
        $('#school_table').dataTable( {
          "bProcessing": true,
          "aaSorting": [[ 0, "asc" ]],
          "bServerSide": true,
          "bJQueryUI": true,
          "sPaginationType": "full_numbers",
          "sAjaxSource": "@routes.SchoolsController.list()"
        });

        var table = $('#school_table').DataTable();
        var selectedRow;

        $('#school_table tbody').on( 'click', 'tr', function () {
            if ( $(this).hasClass('selected') ) {
                $(this).removeClass('selected');
            }
            else {
                table.$('tr.selected').removeClass('selected');
                $(this).addClass('selected');
            }
         } );

      });


        </script>

    <div class="form-signin">
        @helper.form(routes.DegreeController.addDegree) {
            <h2 class="form-signin-heading">Add degree</h2>
            @helper.inputDate(form("dateStarted"),
                '_label -> "Attendance started",
                'class  -> "input-block-level")
            @helper.inputDate(form("dateEnded"),
                '_label -> "Attendance ended",
                'class  -> "input-block-level")
            @helper.inputText(form("name"),
                '_label -> "Name of degree",
                'class  -> "input-block-level")
            @helper.inputText(form("fieldOfStudy"),
                '_label -> "Field of study",
                'class  -> "input-block-level")
            @helper.inputText(form("grade"),
                '_label -> "Grade",
                'class  -> "input-block-level")


            <button type="submit" class="btn btn-large btn-primary">Add</button>
            @if(form.hasGlobalErrors) {
                <p class="error">
                    @form.globalError.message
                </p>
            }
            @if(flash.contains("success")) {
                <p class="success">
{'fraction_non_alphanumeric': 0.16575071444273468, 'fraction_numerical': 0.0013189712024620796, 'mean_word_length': 1.7625986642380085, 'pattern_counts': {'":': 12, '<': 25, '<?xml version=': 0, '>': 47, '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': '7361629', 'n_tokens_mistral': 1296, 'n_tokens_neox': 1237, 'n_words': 196}