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

app.use(express.static('public'));

app.get('/', function (req, res) {
  res.sendFile(__dirname + '/views/index.html');
});

app.get('/kelly', function (req, res) {
  unirest.get("https://ismaelc-pinterest.p.mashape.com/deviantdiy/boards")
  .header("X-Mashape-Key", "<KEY>")
  .header("Accept", "application/json")
  .end(function (result) {
    res.setHeader('Content-Type', 'application/json');
    res.send(JSON.stringify(result.body.body));
  });
});

var server = app.listen(3000, function () {<commit_msg>add dynamic username for get request<commit_after>var express = require('express');
var unirest = require('unirest');
var app = express();

app.use(express.static('public'));

app.get('/', function (req, res) {
  res.sendFile(__dirname + '/views/index.html');
});

app.get('/get/:username', function (req, res) {
  const user = req.params.username;

  unirest.get("https://ismaelc-pinterest.p.mashape.com/" + user + "/boards")
  .header("X-Mashape-Key", "<KEY>")
  .header("Accept", "application/json")
  .end(function (result) {
    res.setHeader('Content-Type', 'application/json');
    res.send(JSON.stringify(result.body.body));
  });
});

var server = app.listen(3000, function () {
{'fraction_non_alphanumeric': 0.21319018404907975, 'fraction_numerical': 0.006134969325153374, 'mean_word_length': 4.774336283185841, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '2577385', 'n_tokens_mistral': 454, 'n_tokens_neox': 447, 'n_words': 78}