<commit_before>import { Link, NavLink } from "react-router-dom";
import { Container, Nav, Navbar, NavDropdown } from "react-bootstrap";

export function MainMenu() {
  return (
    <Navbar expand="lg" bg="dark" variant="dark" sticky="top" className="mb-3">
      <Container>
        <Navbar.Brand as={Link} to="/">
          Wallet
        </Navbar.Brand>
        <Navbar.Toggle aria-controls="main-menu-nav" />
        <Navbar.Collapse id="main-menu-nav">
          <Nav className="me-auto">
            <Nav.Link as={NavLink} to="/" exact>
              Home
            </Nav.Link>
            <Nav.Link as={NavLink} to="/transactions">
              Transactions
            </Nav.Link>
            <NavDropdown title="Statistics" id="statistics-nav">
              <NavDropdown.Item as={NavLink} to="/statistics/yearly" activeClassName="active">
                Yearly statistics
              </NavDropdown.Item>
              <NavDropdown.Item as={NavLink} to="/statistics/category" activeClassName="active">
                Category statistics
              </NavDropdown.Item>
              <NavDropdown.Item as={NavLink} to="/statistics/articles" activeClassName="active">
                Articles
              </NavDropdown.Item>
            </NavDropdown>
            <NavDropdown title="Export/Import" id="export-import-nav">
              <NavDropdown.Item as={NavLink} to="/import" activeClassName="active">
                Import
              </NavDropdown.Item>
              <NavDropdown.Item as={NavLink} to="/export" activeClassName="active">
                Export
              </NavDropdown.Item>
            </NavDropdown>
            <Nav.Link as={NavLink} to="/wallets">
              Wallets
            </Nav.Link>
          </Nav>
        </Navbar.Collapse>
      </Container>
    </Navbar>
  );
}
<commit_msg>Collapse navbar on select.<commit_after>import { Link, NavLink } from "react-router-dom";
import { Container, Nav, Navbar, NavDropdown } from "react-bootstrap";

export function MainMenu() {
  return (
    <Navbar expand="lg" bg="dark" variant="dark" sticky="top" className="mb-3" collapseOnSelect>
      <Container>
        <Navbar.Brand as={Link} to="/">
          Wallet
        </Navbar.Brand>
        <Navbar.Toggle aria-controls="main-menu-nav" />
        <Navbar.Collapse id="main-menu-nav">
          <Nav className="me-auto">
            <Nav.Link as={NavLink} to="/" exact eventKey="home">
              Home
            </Nav.Link>
            <Nav.Link as={NavLink} to="/transactions" eventKey="transactions">
              Transactions
            </Nav.Link>
            <NavDropdown title="Statistics" id="statistics-nav">
              <NavDropdown.Item as={NavLink} to="/statistics/yearly" activeClassName="active" eventKey="yearlyStats">
                Yearly statistics
              </NavDropdown.Item>
              <NavDropdown.Item as={NavLink} to="/statistics/category" activeClassName="active" eventKey="categoryStats">
                Category statistics
              </NavDropdown.Item>
              <NavDropdown.Item as={NavLink} to="/statistics/articles" activeClassName="active" eventKey="articlesStats">
                Articles
              </NavDropdown.Item>
            </NavDropdown>
            <NavDropdown title="Export/Import" id="export-import-nav">
              <NavDropdown.Item as={NavLink} to="/import" activeClassName="active" eventKey="import">
                Import
              </NavDropdown.Item>
              <NavDropdown.Item as={NavLink} to="/export" activeClassName="active" eventKey="export">
                Export
              </NavDropdown.Item>
            </NavDropdown>
            <Nav.Link as={NavLink} to="/wallets" eventKey="wallets">
              Wallets
            </Nav.Link>
          </Nav>
        </Navbar.Collapse>
      </Container>
    </Navbar>
  );
}

{'fraction_non_alphanumeric': 0.13737113402061857, 'fraction_numerical': 0.0005154639175257732, 'mean_word_length': 1.9853846153846153, 'pattern_counts': {'":': 0, '<': 65, '<?xml version=': 0, '>': 65, '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': '2405956', 'n_tokens_mistral': 1082, 'n_tokens_neox': 1060, 'n_words': 200}