<commit_before>

$(document).ready(function() {

    $(".action_check").change(function() {
       var p =  $(this).attr("name").split(":");
       $.get( "ajax/action.php", { value: $(this).is(':checked') ? 1 : 0, state:  p[0], action: p[1] } );
    });

    $('.link_state').on('change', function() {
      var p = this.name.split( ":" );
      $.get( "ajax/link.php", {  state: p[0], 'event':  p[1], 'new': this.value } );
    });

    $('.event_access').on('change', function() {
      $.get( "ajax/access.php", {  'event': this.name, 'mode':  this.value } );
    });

    $("#btn_modify").click(function() {
       $("#sub_modify").toggle( "fast" );
       $("#sub_rename").hide( "fast" );
       $("#sub_export").hide( "fast" );
    });
    $("#btn_rename").click(function() {
       if ( !$( this ).hasClass( "disabled" ) ) {
         $("#sub_rename").toggle( "fast" );
         $("#sub_modify").hide( "fast" );
         $("#sub_export").hide( "fast" );
       }
    });
    $("#btn_export").click(function() {
       if ( !$( this ).hasClass( "disabled" ) ) {
         $("#sub_export").toggle( "fast" );
         $("#sub_rename").hide( "fast" );
         $("#sub_modify").hide( "fast" );
       }
    });
    $("#btn_dorename").click(function() {
       $("#frm_rename").submit();
    });
    $("#btn_doupload").click(function() {
       $("#frm_upload").submit();
    });
    $("#btn_create").click(function() {
       $("#frm_create").submit();
    });
    $('#hfile').change(function(){ 
      $('#hfile_ok').show();
    });
    $('#cppfile').change(function(){ 
      $('#cppfile_ok').show();
    });
    $(".btn-editor").click( function() {
      $("#cmd").val( this.name );
      $("#frm_editor").submit();
    });

    $(".cb_autostore").change(function() {
       $.get( "ajax/conn_autostore.php", { 'value': $(this).is(':checked') ? 1 : 0, 'conn':  $(this).attr("name") } );
    });
    $(".cb_broadcast").change(function() {
       $.get( "ajax/conn_broadcast.php", { 'value': $(this).is(':checked') ? 1 : 0, 'conn':  $(this).attr("name") } );<commit_msg>Arrow buttons stopped working, fixed<commit_after>

$(document).ready(function() {

    $(".action_check").change(function() {
       var p =  $(this).attr("name").split(":");
       $.get( "ajax/action.php", { value: $(this).is(':checked') ? 1 : 0, state:  p[0], action: p[1] } );
    });

    $('.link_state').on('change', function() {
      var p = this.name.split( ":" );
      $.get( "ajax/link.php", {  state: p[0], 'event':  p[1], 'new': this.value } );
    });

    $('.event_access').on('change', function() {
      $.get( "ajax/access.php", {  'event': this.name, 'mode':  this.value } );
    });

    $("#btn_modify").click(function() {
       $("#sub_modify").toggle( "fast" );
       $("#sub_rename").hide( "fast" );
       $("#sub_export").hide( "fast" );
    });
    $("#btn_rename").click(function() {
       if ( !$( this ).hasClass( "disabled" ) ) {
         $("#sub_rename").toggle( "fast" );
         $("#sub_modify").hide( "fast" );
         $("#sub_export").hide( "fast" );
       }
    });
    $("#btn_export").click(function() {
       if ( !$( this ).hasClass( "disabled" ) ) {
         $("#sub_export").toggle( "fast" );
         $("#sub_rename").hide( "fast" );
         $("#sub_modify").hide( "fast" );
       }
    });
    $("#btn_dorename").click(function() {
       $("#frm_rename").submit();
    });
    $("#btn_doupload").click(function() {
       $("#frm_upload").submit();
    });
    $("#btn_create").click(function() {
       $("#frm_create").submit();
    });
    $('#hfile').change(function(){ 
      $('#hfile_ok').show();
    });
    $('#cppfile').change(function(){ 
      $('#cppfile_ok').show();
    });
    $(".btn-editor").click( function() {
      $("#cmd").val( $(this).attr("name") );
      $("#frm_editor").submit();
    });

    $(".cb_autostore").change(function() {
       $.get( "ajax/conn_autostore.php", { 'value': $(this).is(':checked') ? 1 : 0, 'conn':  $(this).attr("name") } );
    });
    $(".cb_broadcast").change(function() {
       $.get( "ajax/conn_broadcast.php", { 'value': $(this).is(':checked') ? 1 : 0, 'conn':  $(this).attr("name") } );
{'fraction_non_alphanumeric': 0.28708133971291866, 'fraction_numerical': 0.004784688995215311, 'mean_word_length': 2.7363717605004467, 'pattern_counts': {'":': 4, '<': 3, '<?xml version=': 0, '>': 3, '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': '703411', 'n_tokens_mistral': 1438, 'n_tokens_neox': 1468, 'n_words': 202}