<commit_before>

  /**
   *  Geocoder user stats
   *
   *  - It needs user model to show the geocoding stats
   *    of the user and the table model to know total rows.
   *  - CartoDB config object is needed.
   *
   *  new cdb.admin.GeocoderStats({
   *    model: user_model,
   *    table: table_model
   *  })
   *
   */


  cdb.admin.GeocoderStats = cdb.core.View.extend({

    tagName: 'div',
    className: 'geocoder_stats',

    _TEXTS: {
      available_hard: _t('You have <strong><%= quota - monthly_use %> geocoding credit<%= quota - monthly_use > 1 ? "s" : "" %> available</strong>. Depending on your data you might run out of credits, if so consider <a href="<%= upgrade_url %>">upgrading to a higher plan</a>.'),
      available_soft: _t('You have <strong><%= quota - monthly_use %> geocoding credit<%= quota - monthly_use > 1 ? "s" : "" %> available</strong>. Depending on your data you might run out of credits and you will be charged $<%= block_price %> for every 1,000 extra geocoding credits.'),
      no_rows_available: _t('You don\'t have more geocoding credits this month. <strong>From now on you will be charged $<%= block_price %> per 1,000 rows</strong>.'),
      no_rows_upgrade: _t('You don\'t have more geocoding credits this month. <a href="<%= upgrade_url %>">Upgrade your account</a> to get more.')
    },

    initialize: function() {
      this.template = cdb.templates.getTemplate("table/header/views/geocoder_stats");
      this.model.bind('change:geocoding', this.render, this);
    },

    render: function() {
      var config = window.config;
      var geocoding = this.model.get('geocoding'),
          msg = '',
          state = '',
          url = window.location.protocol + '//' + config.account_host + "/account/" + this.model.get('username') + "/upgrade",
          used = (((geocoding.monthly_use || 0) * 100) / geocoding.quota);

      // Msg
      geocoding.upgrade_url = url;<commit_msg>changed geocoder user stats<commit_after>

  /**
   *  Geocoder user stats
   *
   *  - It needs user model to show the geocoding stats
   *    of the user and the table model to know total rows.
   *  - CartoDB config object is needed.
   *
   *  new cdb.admin.GeocoderStats({
   *    model: user_model,
   *    table: table_model
   *  })
   *
   */


  cdb.admin.GeocoderStats = cdb.core.View.extend({

    tagName: 'div',
    className: 'geocoder_stats',

    _TEXTS: {
      available_hard: _t('You have <strong><%= quota - monthly_use %> geocoding credit<%= quota - monthly_use > 1 ? "s" : "" %> available</strong>. Depending on your data you might run out of credits, if so consider <a href="<%= upgrade_url %>">upgrading to a higher plan</a>.'),
      available_soft: _t('You have <strong><%= quota - monthly_use %> geocoding credit<%= quota - monthly_use > 1 ? "s" : "" %> available</strong>. Depending on your data you might run out of credits and you will be charged $<%= block_price %>/1,000 extra geocoding credits.'),
      no_rows_available: _t('You don\'t have more geocoding credits this month. <strong>From now on you will be charged $<%= block_price %>/1,000 rows</strong>.'),
      no_rows_upgrade: _t('You don\'t have more geocoding credits this month. <a href="<%= upgrade_url %>">Upgrade your account</a> to get more.')
    },

    initialize: function() {
      this.template = cdb.templates.getTemplate("table/header/views/geocoder_stats");
      this.model.bind('change:geocoding', this.render, this);
    },

    render: function() {
      var config = window.config;
      var geocoding = _.clone(this.model.get('geocoding')),
          msg = '',
          state = '',
          url = window.location.protocol + '//' + config.account_host + "/account/" + this.model.get('username') + "/upgrade",
          used = (((geocoding.monthly_use || 0) * 100) / geocoding.quota);

      // Msg
      geocoding.upgrade_url = url;
      geocoding.block_price = ((geocoding.block_price || 1) / 100);
{'fraction_non_alphanumeric': 0.14520617252719453, 'fraction_numerical': 0.008095117632178092, 'mean_word_length': 2.954, 'pattern_counts': {'":': 0, '<': 39, '<?xml version=': 0, '>': 43, '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': '2404476', 'n_tokens_mistral': 1331, 'n_tokens_neox': 1239, 'n_words': 363}