<commit_before>// main
import React, {PropTypes} from 'react';
import {createContainer}  from 'meteor/react-meteor-data';
import {Meteor}           from 'meteor/meteor';

// material-ui
import FontIcon     from 'material-ui/FontIcon';
import {Tabs, Tab}  from 'material-ui/Tabs';

// components
import ShoppingList from '/imports/ui/ShoppingList';
import Report       from '/imports/ui/Report';
import Item         from '/imports/ui/Item';
import LoginBox        from '/imports/ui/Login/LoginBox';

// mongo
import {Items}      from '/imports/api/items.js';




class App extends React.Component {
    constructor(props) {
      super(props);

      this.state = {
        menu: this.props.currentUser ? this._renderMenuForMembers.bind(this) : this._renderMenuForGuests.bind(this),
      };      
    }

    _renderMenuForMembers() {
      return(
        <Tabs>
          <Tab icon={<FontIcon className="material-icons">shopping_cart</FontIcon>} 
               label="SHOPPING LIST">
               <ShoppingList />
          </Tab>
          <Tab icon={<FontIcon className="material-icons">equalizer</FontIcon>} 
               label="REPORT">
               <Report />
          </Tab>
          <Tab icon={<FontIcon className="material-icons">chat</FontIcon>} 
               label="CHAT">
          </Tab>
          <Tab icon={<FontIcon className="material-icons">account_box</FontIcon>} 
               label="YOUR ACCOUNT">
          </Tab>          
        </Tabs>
      );
    }

    _renderMenuForGuests() {
      return(
        <Tabs>
          <Tab icon={<FontIcon className="material-icons">group</FontIcon>} 
               label="LOG IN">
               <Login />
          </Tab>
          <Tab icon={<FontIcon className="material-icons">group</FontIcon>} 
               label="REGISTER">
          </Tab>
        </Tabs>
      );  
    }    

    render() {
      return(
        <div>
          {this.state.menu()}
        </div>
      );
    }
}

App.propTypes = {
  //users: PropTypes.array.isRequired,
};

export default createContainer(() => {
  return{
    currentUser: "michal",
    //items: Items.find({}, { sort: { date: -1 } }).fetch(),
    //users: Meteor.users.find({_id: {$ne: Meteor.userId()}}).fetch(),
  };
}, App);<commit_msg>remove unnecessary things<commit_after>// main
import React, {PropTypes} from 'react';
import {createContainer}  from 'meteor/react-meteor-data';
import {Meteor}           from 'meteor/meteor';

// material-ui
import FontIcon     from 'material-ui/FontIcon';
import {Tabs, Tab}  from 'material-ui/Tabs';

// components
import ShoppingList from '/imports/ui/ShoppingList';
import Report       from '/imports/ui/Report';
import Item         from '/imports/ui/Item';
import LoginBox        from '/imports/ui/Login/LoginBox';

// mongo
import {Items}      from '/imports/api/items.js';




class App extends React.Component {
    render() {
      return(
        <Tabs>
          <Tab icon={<FontIcon className="material-icons">shopping_cart</FontIcon>} 
               label="SHOPPING LIST">
               <ShoppingList />
          </Tab>
          <Tab icon={<FontIcon className="material-icons">equalizer</FontIcon>} 
               label="REPORT">
               <Report />
          </Tab>
          <Tab icon={<FontIcon className="material-icons">chat</FontIcon>} 
               label="CHAT">
          </Tab>
          <Tab icon={<FontIcon className="material-icons">account_box</FontIcon>} 
               label="YOUR ACCOUNT">
          </Tab>          
        </Tabs>
      );
    }
}

export default App;
{'fraction_non_alphanumeric': 0.14780664990220732, 'fraction_numerical': 0.0002794076557697681, 'mean_word_length': 2.0703259005145798, 'pattern_counts': {'":': 0, '<': 56, '<?xml version=': 0, '>': 57, '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': '2439647', 'n_tokens_mistral': 1098, 'n_tokens_neox': 1065, 'n_words': 210}