<commit_before>var locastyle = locastyle || {};

locastyle.form = (function() {
  'use strict';

  var config = {
    selectors: {
      disable: '.ls-form-disable',
      text: '.ls-form-text'
    }
  }

  function init() {

    formDisable();
    formText();
    masks();
    textareaAutoresize();

  }

  function textareaAutoresize (argument) {
    $('textarea.ls-textarea-autoresize', '.ls-field').each(function (it, textarea) {
      var $textarea = $(textarea);
      var height = $textarea.height();
      $textarea.keyup(function (e) {
        if (!$textarea.prop('scrollTop')) {
          do {
            var b = $textarea.prop('scrollHeight');
            var h = $textarea.height();
            $textarea.height(h - 5);
          } while (b && (b != $textarea.prop('scrollHeight')));
        };
        $textarea.height($textarea.prop('scrollHeight') );
      });
    });
  }<commit_msg>pog fix to prev sibling fix in :input! + .prefix<commit_after>var locastyle = locastyle || {};

locastyle.form = (function() {
  'use strict';

  var config = {
    selectors: {
      disable: '.ls-form-disable',
      text: '.ls-form-text'
    }
  }

  function init() {

    formDisable();
    formText();
    masks();
    textareaAutoresize();
    sufixBorder();

  }

  function sufixBorder () {
    $(':input + .ls-label-sufix', '.ls-form').prev().addClass('ls-no-right-radius');
  }

  function textareaAutoresize (argument) {
    $('textarea.ls-textarea-autoresize', '.ls-field').each(function (it, textarea) {
      var $textarea = $(textarea);
      var height = $textarea.height();
      $textarea.keyup(function (e) {
        if (!$textarea.prop('scrollTop')) {
          do {
            var b = $textarea.prop('scrollHeight');
            var h = $textarea.height();
            $textarea.height(h - 5);
          } while (b && (b != $textarea.prop('scrollHeight')));
        };
        $textarea.height($textarea.prop('scrollHeight') );
      });
    });
  }
{'fraction_non_alphanumeric': 0.1815415821501014, 'fraction_numerical': 0.0010141987829614604, 'mean_word_length': 2.3668941979522184, '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': '2640957', 'n_tokens_mistral': 656, 'n_tokens_neox': 617, 'n_words': 116}