<commit_before>/** @jsx React.DOM */

var App = {
  Components: {},
  Pages: {},
  Controllers: {},
  Mixins: {},

  store: {}, // in memory key/value store, to save temporary settings

  initialize: function() {
    I18n.locale = "en";
    $(document).ajaxError(this.ajaxError.bind(this));
    $(document).ajaxStart(this.showSpinner.bind(this));
    $(document).ajaxStop(this.hideSpinner.bind(this));

    this.fetchUserData(function(user) {
      this.currentUser = user;

      this.currentUser.statsToken = this.fetchStatsToken();
      if (!this.currentUser.statsToken) {
        return this.authorizeStats();
      }

      $(document).ajaxSend(function(event, jqxhr, settings) {
        if (settings.url.indexOf(STATS_HOST) < 0) {
          jqxhr.setRequestHeader("X-IDP-ENTITY-ID", this.currentIdpId());
        } else {
          settings.xhrFields = { withCredentials: true };
        }
      }.bind(this));<commit_msg>remove credentials flag<commit_after>/** @jsx React.DOM */

var App = {
  Components: {},
  Pages: {},
  Controllers: {},
  Mixins: {},

  store: {}, // in memory key/value store, to save temporary settings

  initialize: function() {
    I18n.locale = "en";
    $(document).ajaxError(this.ajaxError.bind(this));
    $(document).ajaxStart(this.showSpinner.bind(this));
    $(document).ajaxStop(this.hideSpinner.bind(this));

    this.fetchUserData(function(user) {
      this.currentUser = user;

      this.currentUser.statsToken = this.fetchStatsToken();
      if (!this.currentUser.statsToken) {
        return this.authorizeStats();
      }

      $(document).ajaxSend(function(event, jqxhr, settings) {
        if (settings.url.indexOf(STATS_HOST) < 0) {
          jqxhr.setRequestHeader("X-IDP-ENTITY-ID", this.currentIdpId());
        }
      }.bind(this));
{'fraction_non_alphanumeric': 0.16285554935861685, 'fraction_numerical': 0.0033463469046291134, 'mean_word_length': 3.1052631578947367, 'pattern_counts': {'":': 0, '<': 5, '<?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': '2363367', 'n_tokens_mistral': 586, 'n_tokens_neox': 566, 'n_words': 91}