<commit_before>import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import { LeaderBoard } from './components/LeaderBoard';
// import registerServiceWorker from './registerServiceWorker';


export default {
  
  DEConfig: null,
  
  config: (config) => {
    this.DEConfig = config;
  },

  components: {

    leaderboard: {

      new: (config) => {

        return {
          render: (args) => {
            ReactDOM.render(
              <LeaderBoard 
                selector={config.selector || this.DEConfig.selector}
              />, document.querySelector(config.selector)
            )
          }
        }
      }
    }
  }
}

// ReactDOM.render(<LeaderBoard />, document.getElementById('root'));

// registerServiceWorker();<commit_msg>Clean up. Comments for running in prod and dev<commit_after>import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import { LeaderBoard } from './components/LeaderBoard';
// import registerServiceWorker from './registerServiceWorker';

// Uncomment this to build for production
export default {
  
  DEConfig: null,
  
  config: (config) => {
    this.DEConfig = config;
  },

  components: {
    leaderboard: {
      new: (config) => {
        return {
          render: (args) => {
            ReactDOM.render(
              <LeaderBoard 
                selector={config.selector || this.DEConfig.selector}
              />, document.querySelector(config.selector)
            )
          }
        }
      }
    } // Add another component here
  }
}

// Uncomment this to run locally
// ReactDOM.render(<LeaderBoard />, document.getElementById('root'));

// registerServiceWorker();
{'fraction_non_alphanumeric': 0.13046044864226683, 'fraction_numerical': 0.0, 'mean_word_length': 2.2471264367816093, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 13, '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': '1871671', 'n_tokens_mistral': 470, 'n_tokens_neox': 461, 'n_words': 104}