<commit_before>const express = require('express')
const app = express()
const path = require('path')
var cors = require('cors')
var bodyParser = require('body-parser')

app.use(bodyParser.urlencoded({extended: false}))
app.use(bodyParser.json())

app.use(cors())

app.use(express.static('client/build'))

app.get('/', function (req, res) {
  res.sendFile(path.join(__dirname, '/client/build/index.html'))
})

app.post('/', function (req, res) {
  var thought = req.body.text
  // console.log(req)
  console.log('We have received this from the client:' + req.body)
  // res.end('done')
})

app.listen(3000, function () {
  console.log('listening on 3000')
})
<commit_msg>Change body-parser to now be able to parse text rather than jsom<commit_after>const express = require('express')
const app = express()
const path = require('path')
var cors = require('cors')
var bodyParser = require('body-parser')

app.use(bodyParser.urlencoded({extended: false}))
app.use(bodyParser.text())

app.use(cors())

app.use(express.static('client/build'))

app.get('/', function (req, res) {
  res.sendFile(path.join(__dirname, '/client/build/index.html'))
})

app.post('/', function (req, res) {
  var thought = req.body.text
  // console.log(req)
  console.log('We have received this from the client:' + thought)
  // res.end('done')
})

app.listen(3000, function () {
  console.log('listening on 3000')
})

{'fraction_non_alphanumeric': 0.1856115107913669, 'fraction_numerical': 0.011510791366906475, 'mean_word_length': 4.84453781512605, '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': '5159229', 'n_tokens_mistral': 479, 'n_tokens_neox': 462, 'n_words': 107}