text:
var Imap = require('imap'),
    inspect = require('util').inspect,
    fs = require('fs');
var MailParser = require('mailparser').MailParser;
var emailBuffer = [],
    emailResults = [];
var db = require('./database.js');
var CronJob = require('cron').CronJob;

//create new IMAP instance. Connect with gmail.
var imap = new Imap({
  user: 'dageprotect@gmail.com',
  password: 'node1234',
  host: 'imap.gmail.com',
  port: 993,
  tls: true,
});

//When opening box called 'Inbox', we set read-only option to 'false';
function openInbox(cb) {
  imap.openBox('INBOX', false, cb);
}

var job = new CronJob({
  cronTime: '*/10 * * * * * ',
  onTick: function() {

process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0';

imap.once('ready', function() {
  openInbox(function(err, box) {
    if (err) throw err;
    //search all unread messages
    imap.search(['UNSEEN'], function(err, results){
      if(err) throw err;
      //if no unread messages, end IMAP connection
      if(results.length === 0){
        console.log('Nothing to fetch');
        return imap.end();
      }

      var fetch = imap.fetch(results, {markSeen:true, bodies: ['']});
      //for every message that we fetch...
      fetch.on('message', function(msg) {
        //...create new instance of MailParser
        var mailparser = new MailParser();
        console.log('mailparser instance created...')

        mailparser.on('end', function(mail_object){
          emailBuffer.push(mail_object)
        });
        //pipe the body stream to mailparser instance
        msg.on('body', function(stream){
          stream.pipe(mailparser);
        });

        msg.once('end', function() {
          //call mailparser 'end' event
          mailparser.end();
          console.log('message finished processing');
        });

      });

      fetch.once('error', function(err) {
        console.log('Fetch error: ' + err);
      });

      fetch.once('end', function() {
        console.log('Done fetching all messages!');

        imap.end();
      });

  });
});
});

imap.once('error', function(err) {
  console.log(err);
});

imap.once('end', function() {
  //filter out the duplicate emails.
  for(var i = 0; i < emailBuffer.length; i+=2){
    emailResults.push(emailBuffer[i]);
  }
  emailResults.forEach(function(item){
    db.insertReturn(item);
  })
  // console.log('filtered email results: ', emailResults)
  console.log('Connection ended');
});

imap.connect();

},
start: true,
timeZone: "America/Los_Angeles"
});
job.start();


text:
"use strict";

var React = require('react');
var assign = require('react/lib/Object.assign');
var Helpers = require('../mixins/Helpers');

var Button = React.createClass({
  mixins: [Helpers.Scroll],
  getInitialState : function() {
    return { active : false};
  },
  getDefaultProps: function() {
    return {
      className: ""
    };
  },
  render: function () {

    var activeClass = this.state.active ? (this.props.activeClass || "active") : "";

    var props = assign({}, this.props, {
      onClick: this.onClick,
      className : [this.props.className, activeClass].join(" ").trim()
    });

    return React.DOM.input(props, this.props.children);
  }
});

module.exports = Button;

redpajama_set_name: RedPajamaGithub


text:
package com.cngrgroup.gofdp.MazeParts;

/**
 * MazeBuilde
 *
 * @author Philip Senger
 * @author philip.a.senger@cngrgroup.com
 * @version 1.0
 * @date Sep 23, 2005 11:16:50 AM
 * @since SDK1.4
 */
public abstract class MazeBuilder {
    protected MazeBuilder() {

    }

    public void BuildMaze() {
    }

    public void BuildRoom(Integer room) {
    }

    public void BuildDoor(Integer roomFrom, Integer roomTo) {
    }

    public Maze GetMaze() {
        return null;
    }
}


text:
<?php

namespace Magento\Framework\Mview\View;

interface CollectionInterface
{
    /**
     * Return views by given state mode
     *
     * @param string $mode
     * @return \Magento\Framework\Mview\ViewInterface[]
     */
    public function getViewsByStateMode($mode);

    /**
     * Search all views by field value
     *
     * @param   string $column
     * @param   mixed $value
     * @return  \Magento\Framework\Mview\ViewInterface[]
     */
    public function getItemsByColumnValue($column, $value);

    /**
     * Retrieve collection views
     *
     * @return \Magento\Framework\Mview\ViewInterface[]
     */
    public function getItems();
}