<commit_before>// Select2 for Simple Form initializer
var Select2SimpleForm = (function($) {
  'use strict';

  var prepareSelect2Options = function(options, $input) {
    var select2Options = {};

    var sanitizeInputValues = function(input) {
      return input.val().replace(/\[|\]/g, '');
    }

    select2Options.placeholder = options.placeholder

    // Check for multiple
    if (options.multiple) {
      select2Options.multiple = true;

      // When initialize the Select2 element, checks if it's multiple or not.
      // In the first case, it will use all the data retrieved. Otherwise,
      // will use the first item because it works in this way and assumes<commit_msg>Added some additional sanitize cases<commit_after>// Select2 for Simple Form initializer
var Select2SimpleForm = (function($) {
  'use strict';

  var prepareSelect2Options = function(options, $input) {
    var select2Options = {};

    var sanitizeInputValues = function(input) {
      return input.val().replace(/\[|\]|\"|\'/g, '');
    }

    select2Options.placeholder = options.placeholder

    // Check for multiple
    if (options.multiple) {
      select2Options.multiple = true;

      // When initialize the Select2 element, checks if it's multiple or not.
      // In the first case, it will use all the data retrieved. Otherwise,
      // will use the first item because it works in this way and assumes
{'fraction_non_alphanumeric': 0.10421127765881513, 'fraction_numerical': 0.009992862241256246, 'mean_word_length': 3.087463556851312, 'pattern_counts': {'":': 0, '<': 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': '1119048', 'n_tokens_mistral': 383, 'n_tokens_neox': 366, 'n_words': 137}