<commit_before>import React, { PropTypes } from 'react';
import Glyphicon from 'react-bootstrap/lib/Glyphicon';
import MenuItem from 'react-bootstrap/lib/MenuItem';
import RBNavbar from 'react-bootstrap/lib/Navbar';
import Nav from 'react-bootstrap/lib/Nav';
import NavDropdown from 'react-bootstrap/lib/NavDropdown';
import NavItem from 'react-bootstrap/lib/NavItem';
import { IndexLink } from 'react-router';
import { LinkContainer } from 'react-router-bootstrap';

import Logo from 'shared/logo';
import { injectT } from 'i18n';
import { getSearchPageUrl } from 'utils/searchUtils';

export function handleLoginClick() {
  const next = encodeURIComponent(window.location.href);
  window.location.replace(`${window.location.origin}/login?next=${next}`);
}
<commit_msg>Use location.assign instead of replace in login<commit_after>import React, { PropTypes } from 'react';
import Glyphicon from 'react-bootstrap/lib/Glyphicon';
import MenuItem from 'react-bootstrap/lib/MenuItem';
import RBNavbar from 'react-bootstrap/lib/Navbar';
import Nav from 'react-bootstrap/lib/Nav';
import NavDropdown from 'react-bootstrap/lib/NavDropdown';
import NavItem from 'react-bootstrap/lib/NavItem';
import { IndexLink } from 'react-router';
import { LinkContainer } from 'react-router-bootstrap';

import Logo from 'shared/logo';
import { injectT } from 'i18n';
import { getSearchPageUrl } from 'utils/searchUtils';

export function handleLoginClick() {
  const next = encodeURIComponent(window.location.href);
  window.location.assign(`${window.location.origin}/login?next=${next}`);
}

{'fraction_non_alphanumeric': 0.1290527654164018, 'fraction_numerical': 0.0025429116338207248, 'mean_word_length': 6.220183486238532, 'pattern_counts': {'":': 0, '<': 3, '<?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': '7120189', 'n_tokens_mistral': 459, 'n_tokens_neox': 462, 'n_words': 118}