<commit_before>import { A } from './A'
import React from 'react'
import cx from 'classnames'

const LeftNav = ({ communities, open, unreadCount }) => {
  return <nav id='leftNav' className={cx({open})}>
    <ul>
      <A to='/all-posts'>All posts</A>
      <A to='/my-posts'>My posts</A>
      <A to='/followed-posts'>Followed posts</A>
      <A to='/projects'>Projects</A>
      <A to='/notifications'>
        Notifications
        {unreadCount > 0 ? ` (${unreadCount})` : ''}
      </A>
      {communities.map((c, i) => <li key={i}>
        <A to={`/c/${c.slug}`}>
          <img src={c.avatar_url}/>
          {c.name}
        </A>
      </li>)}
      <A to='/c/new'>Create a community</A>
      <A to='/c/join'>Join a community</A>
    </ul>
  </nav>
}

export default LeftNav<commit_msg>add missing <li> tags to LeftNav<commit_after>import { A } from './A'
import React from 'react'
import cx from 'classnames'

const LeftNav = ({ communities, open, unreadCount }) => {
  return <nav id='leftNav' className={cx({open})}>
    <ul>
      <li><A to='/all-posts'>All posts</A></li>
      <li><A to='/my-posts'>My posts</A></li>
      <li><A to='/followed-posts'>Followed posts</A></li>
      <li><A to='/projects'>Projects</A></li>
      <li>
        <A to='/notifications'>
          Notifications
          {unreadCount > 0 ? ` (${unreadCount})` : ''}
        </A>
      </li>
      {communities.map((c, i) => <li key={i}>
        <A to={`/c/${c.slug}`}>
          <img src={c.avatar_url}/>
          {c.name}
        </A>
      </li>)}
      <li><A to='/c/new'>Create a community</A></li>
      <li><A to='/c/join'>Join a community</A></li>
    </ul>
  </nav>
}

export default LeftNav
{'fraction_non_alphanumeric': 0.2230769230769231, 'fraction_numerical': 0.001183431952662722, 'mean_word_length': 2.3485148514851484, 'pattern_counts': {'":': 0, '<': 64, '<?xml version=': 0, '>': 70, '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': '2819084', 'n_tokens_mistral': 627, 'n_tokens_neox': 630, 'n_words': 134}