<commit_before>var Cashier = (function() {
    "use strict";

    var lock_withdrawal = function(withdrawal_locked) {
      if (withdrawal_locked === 'locked') {
        $.each($('.withdraw'), function(){
          $a = $(this).parent();
          // use replaceWith, to disable previously catched pjax event
          $a.replaceWith($('<a/>', {class: $a.attr('class').replace('pjaxload') + ' button-disabled', html: $a.html()}));
        });
        $('.notice-msg').removeClass('invisible').parent().removeClass('invisible');
      }
    };

    var check_withdrawal_locked = function() {
      if (sessionStorage.getItem('withdrawal_locked') === 'locked') {
        Cashier.lock_withdrawal('locked');
      } else if (!sessionStorage.getItem('withdrawal_locked')) {
        BinarySocket.send({"get_account_status": "1", "passthrough":{"dispatch_to":"Cashier"}});<commit_msg>Fix disabled buttons issue<commit_after>var Cashier = (function() {
    "use strict";

    var lock_withdrawal = function(withdrawal_locked) {
      if (withdrawal_locked === 'locked') {
        $.each($('.withdraw'), function(){
          var $a = $(this).parent();
          // use replaceWith, to disable previously catched pjax event
          $a.replaceWith($('<a/>', {class: $a.attr('class').replace('pjaxload') + ' button-disabled', html: $a.html()}));
        });
        $('.notice-msg').removeClass('invisible').parent().removeClass('invisible');
      }
    };

    var check_withdrawal_locked = function() {
      if (sessionStorage.getItem('withdrawal_locked') === 'locked') {
        Cashier.lock_withdrawal('locked');
      } else if (!sessionStorage.getItem('withdrawal_locked')) {
        BinarySocket.send({"get_account_status": "1", "passthrough":{"dispatch_to":"Cashier"}});
{'fraction_non_alphanumeric': 0.18972332015810275, 'fraction_numerical': 0.001129305477131564, 'mean_word_length': 3.5319693094629154, 'pattern_counts': {'":': 6, '<': 5, '<?xml version=': 0, '>': 5, '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': '370345', 'n_tokens_mistral': 531, 'n_tokens_neox': 534, 'n_words': 89}