<commit_before>var React = require('react');
var remote = window.require('remote');
var shell = remote.require('shell');
var SearchInput = require('./search-input');

var Footer = React.createClass({
  openRepoBrowser: function () {
    shell.openExternal('http://www.github.com/ekonstantinidis/gitify');
  },

  render: function () {
    return (
      <div className='container-fluid footer'>
        <div className='row'>
          <div className="col-xs-6">
            <SearchInput />
          </div>
          <div className='col-xs-6 right'>
            <span className='github-link' onClick={this.openRepoBrowser}>
              Fork me on <span className="octicon octicon-mark-github"/>
            </span>
          </div>
        </div>
      </div>
    );
  }
});

module.exports = Footer;<commit_msg>Display search input only when logged in<commit_after>var React = require('react');
var Reflux = require('reflux');
var remote = window.require('remote');
var shell = remote.require('shell');
var SearchInput = require('./search-input');
var AuthStore = require('../stores/auth');

var Footer = React.createClass({
  mixins: [
    Reflux.connect(AuthStore, 'authStatus')
  ],

  openRepoBrowser: function () {
    shell.openExternal('http://www.github.com/ekonstantinidis/gitify');
  },

  getInitialState: function () {
    return {};
  },

  render: function () {
    console.log(this.state.authStatus);

    return (
      <div className='container-fluid footer'>
        <div className='row'>
          <div className="col-xs-6">
            {
              this.state.authStatus ? (
                <SearchInput />
              ) : undefined
            }
          </div>
          <div className='col-xs-6 right'>
            <span className='github-link' onClick={this.openRepoBrowser}>
              Fork me on <span className="octicon octicon-mark-github"/>
            </span>
          </div>
        </div>
      </div>
    );
  }
});

module.exports = Footer;
{'fraction_non_alphanumeric': 0.15551082033215904, 'fraction_numerical': 0.0020130850528434826, 'mean_word_length': 2.3524451939291735, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 27, 'https://': 0, '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': '7432180', 'n_tokens_mistral': 584, 'n_tokens_neox': 571, 'n_words': 116}