<commit_before>var React = require('react');

var CounterWidget = require('../components/counter-widget.jsx');
var ReminderTable = require('../components/reminder-table.jsx');
var Panel = require('../components/panel.jsx');

module.exports = React.createClass({
    render:function(){
        var totalPages =  this.props.remindersData.count / 25;
        var showFirst = this.props.page > 2;
        var showPrevious = this.props.page > 1;
        var showNext = totalPages > this.props.page;
        var showLast = totalPages > this.props.page + 1;
        return <div>
            <div className="row">
                <div className="col-md-12">
                    <CounterWidget icon="calendar" counter={this.props.remindersData.count} title="Reminders Count" />
                </div>
            </div>
            <Panel title="Reminders" subTitle={`Page ${this.props.page}`}>
              <div>
                <ReminderTable data={this.props.remindersData.reminders}/>
                <div style={{textAlign:"center"}}>
                  {showFirst ? <a className="btn btn-default bg-purple" href={'#/reminders/1'}><i className="fa fa-arrow-circle-left"></i> First</a> : null}
                  <span> </span>
                  {showPrevious ? <a className="btn btn-default bg-purple" href={`#/reminders/${this.props.page - 1}`}><i className="fa fa-arrow-circle-left"></i> Previous</a> : null}
                  <span> </span>
                  {showNext ? <a className="btn btn-default bg-purple" href={`#/reminders/${this.props.page + 1}`}>Next <i className="fa fa-arrow-circle-right"></i></a> : null}
                  <span> </span>
                  {showLast ? <a className="btn btn-default bg-purple" href={`#/reminders/${totalPages}`}>Last ({this.props.totalPages}) <i className="fa fa-arrow-circle-right"></i></a> : null}
                </div>
              </div>
            </Panel>
        </div>
    }
});<commit_msg>roundup<commit_after>var React = require('react');

var CounterWidget = require('../components/counter-widget.jsx');
var ReminderTable = require('../components/reminder-table.jsx');
var Panel = require('../components/panel.jsx');

module.exports = React.createClass({
    render:function(){
        var totalPages =  Math.ceil(this.props.remindersData.count / 25);
        var showFirst = this.props.page > 2;
        var showPrevious = this.props.page > 1;
        var showNext = totalPages > this.props.page;
        var showLast = totalPages > this.props.page + 1;
        return <div>
            <div className="row">
                <div className="col-md-12">
                    <CounterWidget icon="calendar" counter={this.props.remindersData.count} title="Reminders Count" />
                </div>
            </div>
            <Panel title="Reminders" subTitle={`Page ${this.props.page}`}>
              <div>
                <ReminderTable data={this.props.remindersData.reminders}/>
                <div style={{textAlign:"center"}}>
                  {showFirst ? <a className="btn btn-default bg-purple" href={'#/reminders/1'}><i className="fa fa-arrow-circle-left"></i> First</a> : null}
                  <span> </span>
                  {showPrevious ? <a className="btn btn-default bg-purple" href={`#/reminders/${this.props.page - 1}`}><i className="fa fa-arrow-circle-left"></i> Previous</a> : null}
                  <span> </span>
                  {showNext ? <a className="btn btn-default bg-purple" href={`#/reminders/${this.props.page + 1}`}>Next <i className="fa fa-arrow-circle-right"></i></a> : null}
                  <span> </span>
                  {showLast ? <a className="btn btn-default bg-purple" href={`#/reminders/${totalPages}`}>Last <i className="fa fa-arrow-circle-right"></i></a> : null}
                </div>
              </div>
            </Panel>
        </div>
    }
});
{'fraction_non_alphanumeric': 0.17248513059219034, 'fraction_numerical': 0.00517196793379881, 'mean_word_length': 2.2099585062240665, 'pattern_counts': {'":': 0, '<': 75, '<?xml version=': 0, '>': 83, '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': '1331423', 'n_tokens_mistral': 1184, 'n_tokens_neox': 1157, 'n_words': 221}