<commit_before><br>
<br>
<%= render 'static_editors/header' %>

<%# floating UI %>
<style>
div.example {
  position: absolute;
  top: 150px;
  left: 50px;
  background-color: rgba(0,0,255,0.2);
  width:200px;
  height:300px;
  border-radius:5px;
}
</style>
<div class="example">
  <div style="height:30; margin:5px;">
    <input type="checkbox" id="my-checkbox1"> mirror
  </div>
  <div style="height:30; margin:5px;">
    <input type="checkbox" id="my-checkbox2"> delete mode
  </div>
</div>
<script>
  $().ready(function(){
    $("#my-checkbox1").bootstrapSwitch();
    $("#my-checkbox2").bootstrapSwitch();
  });
</script>

<div id="container">
</div><commit_msg>toggle UI event handler<commit_after><br>
<br>
<%= render 'static_editors/header' %>

<%# floating UI %>
<style>
div.example {
  position: absolute;
  top: 150px;
  left: 50px;
  background-color: rgba(0,0,255,0.2);
  width:200px;
  height:300px;
  border-radius:5px;
}
</style>
<div class="example">
  <div style="height:30; margin:5px;">
    <input type="checkbox" id="my-checkbox1"> mirror
  </div>
  <div style="height:30; margin:5px;">
    <input type="checkbox" id="my-checkbox2"> delete mode
  </div>
</div>
<script>
  $().ready(function(){
    $("#my-checkbox1").bootstrapSwitch();
    $("#my-checkbox1").on('switchChange', function (e, data) {
      var $element = $(data.el),
      value = data.value;
      console.log(e, $element, value);
    });
    $("#my-checkbox2").bootstrapSwitch();
  });
</script>

<div id="container">
</div>
{'fraction_non_alphanumeric': 0.21707478491065518, 'fraction_numerical': 0.039046988749172735, 'mean_word_length': 4.342756183745583, 'pattern_counts': {'":': 0, '<': 39, '<?xml version=': 0, '>': 39, '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': '2202948', 'n_tokens_mistral': 594, 'n_tokens_neox': 556, 'n_words': 110}