<commit_before>var express = require('express');
var router = express.Router();
var qs = require('querystring');
var request = require('request');
var venmo = require('./../utils/payments.js');
var User = require('./../app/models/user.js');


/* GET home page. */
router.get('/', function(req, res, next) {
  res.render('index', { title: 'Express' });
});

router.get('/login', function(req, res, next) {
  res.render('login', { title: 'Login' });
});

router.get('/signup', function(req, res, next) {
  res.render('signup', { title: 'Signup' });
});

// router.get('/events-fetch', function(req, res, next) {
//   var username = req.headers['x-access-token'];
//   var eventData = req.body

// });

router.get('/users-fetch', function(req, res, next) {
  new User()
    .fetchAll()
    .then(function(collection) {
      console.log("COLLECTION" + collection.at(0).attributes.username + " " + collection.at(0).attributes.id);<commit_msg>Create a method that allows a user to search through existing users to invite. Set-up structure to create event.<commit_after>var express = require('express');
var router = express.Router();
var qs = require('querystring');
var request = require('request');
var venmo = require('./../utils/payments.js');
var User = require('./../app/models/user.js');
<<<<<<< HEAD

=======
>>>>>>> Create a method that allows a user to search through existing users to invite. Set-up structure to create event.

/* GET home page. */
router.get('/', function(req, res, next) {
  res.render('index', { title: 'Express' });
});

router.get('/login', function(req, res, next) {
  res.render('login', { title: 'Login' });
});

router.get('/signup', function(req, res, next) {
  res.render('signup', { title: 'Signup' });
});

// router.get('/events-fetch', function(req, res, next) {
//   var username = req.headers['x-access-token'];
//   var eventData = req.body

// });

router.get('/users-fetch', function(req, res, next) {
  new User()
    .fetchAll()
    .then(function(collection) {
      console.log("COLLECTION" + collection.at(0).attributes.username + " " + collection.at(0).attributes.id);
{'fraction_non_alphanumeric': 0.213982050070855, 'fraction_numerical': 0.001889466225791214, 'mean_word_length': 4.0669856459330145, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 10, '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': '4353296', 'n_tokens_mistral': 674, 'n_tokens_neox': 668, 'n_words': 163}