<commit_before>import React, { Component } from 'react';
import { Anchor, Box, Accordion, AccordionPanel, List, ListItem } from 'grommet';
import { Link } from 'react-router';

export default class Sidebar extends Component {
  render() {
    const { menus } = this.props;
    const groups = Object.keys(menus);
    return (
      <Box separator="right" style={{ width: '250px' }} pad="small">
        <Accordion animate={false}>
          {
            groups.map((group, index) => {
              return (
                <AccordionPanel key={index} heading={group}>
                  <List>
                    {
                      menus[group] && menus[group].map((menu, index) => {
                        return (
                          <ListItem key={index}>
                            <Anchor tag={Link} label={menu.title} to={menu.router} />
                          </ListItem>
                        );
                      })
                    }
                  </List>
                </AccordionPanel>
              );
            })
          }
        </Accordion>
      </Box>
    );
  }
}
<commit_msg>Add Sidebar components as sample<commit_after>import React, { Component } from 'react';
import { Anchor, Sidebar, Header, Title, Accordion, AccordionPanel, List, ListItem } from 'grommet';
import { Link } from 'react-router';

export default class SideBar extends Component {
  render() {
    const { menus } = this.props;
    const groups = Object.keys(menus);
    return (
      <Sidebar full={false} pad="small" separator="right">
        <Header justify="between">
          <Title>
            SideBar
          </Title>
        </Header>
        <Accordion animate={false}>
          {
            groups.map((group, index) => {
              return (
                <AccordionPanel key={index} heading={group}>
                  <List>
                    {
                      menus[group] && menus[group].map((menu, index) => {
                        return (
                          <ListItem key={index}>
                            <Anchor tag={Link} label={menu.title} to={menu.router} />
                          </ListItem>
                        );
                      })
                    }
                  </List>
                </AccordionPanel>
              );
            })
          }
        </Accordion>
      </Sidebar>
    );
  }
}

{'fraction_non_alphanumeric': 0.12458471760797342, 'fraction_numerical': 0.0012458471760797341, 'mean_word_length': 1.2346938775510203, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 33, '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': '6860363', 'n_tokens_mistral': 639, 'n_tokens_neox': 609, 'n_words': 134}