<commit_before>import React from "react";
import ReactDOM from "react-dom";
import Master from "./Master"
import Profile from "./Profile"
import Proposals from "./Proposals"
import { Router, IndexRoute, Route, browserHistory } from "react-router";

var root = document.getElementById("app-container")
var auth = root.getAttribute("data-auth")
var AuthedMaster = React.createClass({
	render() {
		return <Master auth={auth} />;
	}
});
ReactDOM.render(
	<Router history={browserHistory}>
		<Route path="/" component={AuthedMaster}>
			<IndexRoute component={Profile} />
			<Route path="proposals" component={Proposals} />
			<Route path="profile" component={Profile} />
		</Route>
	</Router>,
	root
);<commit_msg>Rewrite URL post oauth<commit_after>import React from "react";
import ReactDOM from "react-dom";
import Master from "./Master"
import Profile from "./Profile"
import Proposals from "./Proposals"
import { Router, IndexRoute, Route, browserHistory } from "react-router";

// Rewrite the URL to point to / post oauth redirect
if (window.location.href.indexOf("callback") > -1) {
	window.history.pushState({},"", "/");
 }

var root = document.getElementById("app-container")
var auth = root.getAttribute("data-auth")
var AuthedMaster = React.createClass({
	render() {
		return <Master auth={auth} />;
	}
});
ReactDOM.render(
	<Router history={browserHistory}>
		<Route path="/" component={AuthedMaster}>
			<IndexRoute component={Profile} />
			<Route path="proposals" component={Proposals} />
			<Route path="profile" component={Profile} />
		</Route>
	</Router>,
	root
);
{'fraction_non_alphanumeric': 0.16075949367088607, 'fraction_numerical': 0.0006329113924050633, 'mean_word_length': 5.127906976744186, 'pattern_counts': {'":': 0, '<': 19, '<?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': '5473319', 'n_tokens_mistral': 493, 'n_tokens_neox': 475, 'n_words': 130}