<commit_before>import React, { Component } from "react";
import GoogleAnalytics from "react-ga";
import { BrowserRouter, Route } from "react-router-dom";
import ListPage from "./ListPage";
import RunPage from "./RunPage";
import config from "./config";
import "./App.css";

class App extends Component {
  constructor(props) {
    super(props);
    if (config.GOOGLE_ANALYTICS_CODE) {
      GoogleAnalytics.initialize(config.GOOGLE_ANALYTICS_CODE);
    }
  }

  render() {
    return (
      <BrowserRouter>
        <div className="App">
          <Route exact path="/" component={ListPage} />
          <Route exact path="/run/:rom" component={RunPage} />
          <Route path="/" render={this.recordPageview} />
        </div>
      </BrowserRouter>
    );
  }

  recordPageview = ({location}) => {
    GoogleAnalytics.pageview(location.pathname);
    return null;
  };
}

export default App;<commit_msg>Add route for drag & drop ROMs<commit_after>import React, { Component } from "react";
import GoogleAnalytics from "react-ga";
import { BrowserRouter, Route } from "react-router-dom";
import ListPage from "./ListPage";
import RunPage from "./RunPage";
import config from "./config";
import "./App.css";

class App extends Component {
  constructor(props) {
    super(props);
    if (config.GOOGLE_ANALYTICS_CODE) {
      GoogleAnalytics.initialize(config.GOOGLE_ANALYTICS_CODE);
    }
  }

  render() {
    return (
      <BrowserRouter>
        <div className="App">
          <Route exact path="/" component={ListPage} />
          <Route exact path="/run" component={RunPage} />
          <Route exact path="/run/:rom" component={RunPage} />
          <Route path="/" render={this.recordPageview} />
        </div>
      </BrowserRouter>
    );
  }

  recordPageview = ({location}) => {
    GoogleAnalytics.pageview(location.pathname);
    return null;
  };
}

export default App;
{'fraction_non_alphanumeric': 0.14452091053467442, 'fraction_numerical': 0.0, 'mean_word_length': 3.108695652173913, 'pattern_counts': {'":': 0, '<': 18, '<?xml version=': 0, '>': 20, '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': '3039891', 'n_tokens_mistral': 574, 'n_tokens_neox': 559, 'n_words': 134}