<commit_before>import Telescope from 'meteor/nova:lib';
import React, {PropTypes, Component} from 'react';
import {FormattedMessage} from 'react-intl';
import {ListContainer} from "meteor/utilities:react-list-container";
import Posts from "meteor/nova:posts";
import Users from 'meteor/nova:users';
import {Link} from 'react-router';
import {withRouter} from 'react-router'

//const UsersProfile = ({user}, {currentUser}) => {
class UsersProfile extends Component {
    //const twitterName = Users.getTwitterName(user);

    //const terms = {
    //    view: "userPosts",
    //    userId: user._id
    //};
    //const {selector, options} = Posts.parameters.get(terms);

    renderLeftPanel() {
        const user = this.props.currentUser;
        const upvotedPosts = user.upvotedPosts;
        const upvotedPostsCount = (upvotedPosts && upvotedPosts.length > 0) ? upvotedPosts.length : 0;

        return (
          <nav className="navigation_3_Vku">
              <ol>
                  <li>
                      <a className="text_3Wjo0 default_tBeAo base_3CbW2 active_1bUET"
                         href="https://www.producthunt.com/@trujunzhang">
                          <em className="user_left_menu_number">0</em>
                          <span>Upvotes</span><commit_msg>add nova-tags copy from nova-categories.<commit_after>import Telescope from 'meteor/nova:lib';
import React, {PropTypes, Component} from 'react';
import {FormattedMessage} from 'react-intl';
import {ListContainer} from "meteor/utilities:react-list-container";
import Posts from "meteor/nova:posts";
import Users from 'meteor/nova:users';
import {Link} from 'react-router';
import {withRouter} from 'react-router'

//const UsersProfile = ({user}, {currentUser}) => {
class UsersProfile extends Component {
    //const twitterName = Users.getTwitterName(user);

    //const terms = {
    //    view: "userPosts",
    //    userId: user._id
    //};
    //const {selector, options} = Posts.parameters.get(terms);

    renderLeftPanel() {
        const user = this.props.currentUser;
        const upvotedPosts = user.upvotedPosts;
        const upvotedPostsCount = (upvotedPosts && upvotedPosts.length > 0) ? upvotedPosts.length : 0;

        return (
          <nav className="navigation_3_Vku">
              <ol>
                  <li>
                      <a className="text_3Wjo0 default_tBeAo base_3CbW2 active_1bUET"
                         href="https://www.producthunt.com/@trujunzhang">
                          <em className="user_left_menu_number">{upvotedPostsCount}</em>
                          <span>Upvotes</span>
{'fraction_non_alphanumeric': 0.1241880015284677, 'fraction_numerical': 0.006495987772258311, 'mean_word_length': 2.6769662921348316, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 23, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '413348', 'n_tokens_mistral': 832, 'n_tokens_neox': 778, 'n_words': 169}