<commit_before>= render :partial => 'layouts/doctype'
%html{:lang => I18n.locale.to_s.sub('-', '_')}
  %head
    %title
      = _('%{product_name} WebMKS Remote Console') % {:product_name => I18n.t('product.name')}
    = favicon_link_tag
    = stylesheet_link_tag '/webmks/css/wmks-all.css', 'application', 'webmks'
    = javascript_include_tag 'jquery/dist/jquery.js', 'jquery-ui/jquery-ui.js', '/webmks/wmks.min.js', 'remote_console'
    :javascript
      $(function () {
        var wmks = WMKS.createWMKS('remote-console', {}).register(WMKS.CONST.Events.CONNECTION_STATE_CHANGE, function (event,data) {
          if(data.state == WMKS.CONST.ConnectionState.CONNECTED) {
            $('#connection-status').text('#{_('Connected')}');
            console.log("connection state change: connected");
          }
        });
        wmks.connect("#{j webmks_uri.to_s}");

        $('#ctrlaltdel').on('click', function() {
          wmks.sendCAD();<commit_msg>Fixed harmless missing CSS error in WebMKS remote consoles<commit_after>= render :partial => 'layouts/doctype'
%html{:lang => I18n.locale.to_s.sub('-', '_')}
  %head
    %title
      = _('%{product_name} WebMKS Remote Console') % {:product_name => I18n.t('product.name')}
    = favicon_link_tag
    = stylesheet_link_tag '/webmks/css/wmks-all.css', 'application'
    = javascript_include_tag 'jquery/dist/jquery.js', 'jquery-ui/jquery-ui.js', '/webmks/wmks.min.js', 'remote_console'
    :javascript
      $(function () {
        var wmks = WMKS.createWMKS('remote-console', {}).register(WMKS.CONST.Events.CONNECTION_STATE_CHANGE, function (event,data) {
          if(data.state == WMKS.CONST.ConnectionState.CONNECTED) {
            $('#connection-status').text('#{_('Connected')}');
            console.log("connection state change: connected");
          }
        });
        wmks.connect("#{j webmks_uri.to_s}");

        $('#ctrlaltdel').on('click', function() {
          wmks.sendCAD();
{'fraction_non_alphanumeric': 0.18400820092260378, 'fraction_numerical': 0.004100461301896463, 'mean_word_length': 3.3185840707964602, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '4142780', 'n_tokens_mistral': 668, 'n_tokens_neox': 653, 'n_words': 94}