<commit_before>var express = require('express');
var request = require('supertest');
var app = express();

app.get('/', function (req, res) {
  res.send(new Date());
});

app.get('/convert/:currency/:value', function (req, res) {
    //hint switch on req.params.currency
});

app.listen(3000, function () {
  console.log('Test app listening on port 3000!')
});



//tests

request(app)
  .get('/')
  .expect('Content-Type', /json/)<commit_msg>Changes Done<commit_after>var express = require('express');
var request = require('supertest');
var app = express();

app.get('/', function (req, res) {
  res.send(new Date());
});

app.get('/convert/:currency/:value', function (req, res) {
    //hint switch on req.params.currency
  console.log(req.params.currency);
  console.log(req.params.value*70);
  res.send({value: req.params.value/70});
});

app.listen(3000, function () {
  console.log('Test app listening on port 3000!')
});



//tests

request(app)
  .get('/')
  .expect('Content-Type', /json/)
{'fraction_non_alphanumeric': 0.2092092092092092, 'fraction_numerical': 0.02002002002002002, 'mean_word_length': 4.208333333333333, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1226599', 'n_tokens_mistral': 349, 'n_tokens_neox': 331, 'n_words': 76}