<commit_before>var express = require('express');
var router = express.Router();
var Promise = require("bluebird");
var rp = require('request-promise');

function calculateStarttimeDifference(currentTime, dataString) {
  return (new Date(dataString).getTime()-(currentTime*1000))/1000;
}

function compareVenue(a,b) {
  if (a.venueName < b.venueName)
    return -1;
  if (a.venueName > b.venueName)
    return 1;
  return 0;
}

function compareTimeFromNow(a,b) {
  if (a.eventTimeFromNow < b.eventTimeFromNow)
    return -1;
  if (a.eventTimeFromNow > b.eventTimeFromNow)
    return 1;
  return 0;
}

function compareDistance(a,b) {
  var aEventDistInt = parseInt(a.eventDistance);
  var bEventDistInt = parseInt(b.eventDistance);
  if (aEventDistInt < bEventDistInt)
    return -1;
  if (aEventDistInt > bEventDistInt)
    return 1;
  return 0;
}

function haversineDistance(coords1, coords2, isMiles) {
<commit_msg>Forgot to add radix in parseInt calls<commit_after>var express = require('express');
var router = express.Router();
var Promise = require("bluebird");
var rp = require('request-promise');

function calculateStarttimeDifference(currentTime, dataString) {
  return (new Date(dataString).getTime()-(currentTime*1000))/1000;
}

function compareVenue(a,b) {
  if (a.venueName < b.venueName)
    return -1;
  if (a.venueName > b.venueName)
    return 1;
  return 0;
}

function compareTimeFromNow(a,b) {
  if (a.eventTimeFromNow < b.eventTimeFromNow)
    return -1;
  if (a.eventTimeFromNow > b.eventTimeFromNow)
    return 1;
  return 0;
}

function compareDistance(a,b) {
  var aEventDistInt = parseInt(a.eventDistance, 10);
  var bEventDistInt = parseInt(b.eventDistance, 10);
  if (aEventDistInt < bEventDistInt)
    return -1;
  if (aEventDistInt > bEventDistInt)
    return 1;
  return 0;
}

function haversineDistance(coords1, coords2, isMiles) {

{'fraction_non_alphanumeric': 0.1223175965665236, 'fraction_numerical': 0.022532188841201718, 'mean_word_length': 4.6006006006006, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '3342567', 'n_tokens_mistral': 678, 'n_tokens_neox': 651, 'n_words': 148}