<commit_before>const express = require('express');
const request = require('request');
const cookies = require('./cookie');

const app = express();

app.use('*', (req, res) => {
  res.header('Access-Control-Allow-Origin', 'http://localhost:3000');
  res.header('Access-Control-Allow-Credentials', 'true');
  console.log(new Date(), ' -- Request Received:', req.originalUrl);
  req.headers.cookie = cookies;
  /**
  * Credit to: https://blog.javascripting.com/2015/01/17/dont-hassle-with-cors/
  */
  const url = 'https://www.mturk.com' + req.originalUrl;
  req.pipe(request(url)).pipe(res);
});

app.set('port', process.env.PORT || 7777);

const server = app.listen(app.get('port'), () => {
  console.log(`Express running → PORT ${server.address().port}`);
});<commit_msg>Dev proxy server now directs to worker website.<commit_after>const express = require('express');
const request = require('request');
const cookies = require('./cookie');

const app = express();

app.use('*', (req, res) => {
  res.header('Access-Control-Allow-Origin', 'http://localhost:3000');
  res.header('Access-Control-Allow-Credentials', 'true');
  console.log(new Date(), ' -- Request Received:', req.originalUrl);
  req.headers.cookie = cookies;
  /**
   * Credit to: https://blog.javascripting.com/2015/01/17/dont-hassle-with-cors/
   */
  const url = 'https://worker.mturk.com' + req.originalUrl;
  req.pipe(request(url)).pipe(res);
});

app.set('port', process.env.PORT || 7777);

const server = app.listen(app.get('port'), () => {
  console.log(`Express running → PORT ${server.address().port}`);
});
{'fraction_non_alphanumeric': 0.21541377132027795, 'fraction_numerical': 0.02021478205938092, 'mean_word_length': 4.557894736842106, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 4, 'lorem ipsum': 0, 'www.': 1, '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': '3462813', 'n_tokens_mistral': 539, 'n_tokens_neox': 519, 'n_words': 97}