<commit_before>import mongoose, {Schema} from 'mongoose';
import express from 'express';

mongoose.connect('mongodb://localhost:27017/db');

const serviceSchema = new Schema({
  name: String,
  lat: Number,
  lon: Number,
  type: String
});
const Service = mongoose.model('Service', serviceSchema);

const app = express();
app.set('json spaces', 2);

app.get('/', function(req, res) {
  res.send('Hello World!! :)');
});

app.get('/services', function(req, res) {
  Service.find({}, (err, results) => {
    if (err) {
      console.error('AN ERROR OCCURRED');
    }
    console.log('found items:\n', results);
    res.json(results);
  });
});

app.listen(80);
<commit_msg>Changed anonymous funcs to => form<commit_after>import mongoose, {Schema} from 'mongoose';
import express from 'express';

mongoose.connect('mongodb://localhost:27017/db');

const serviceSchema = new Schema({
  name: String,
  lat: Number,
  lon: Number,
  type: String
});
const Service = mongoose.model('Service', serviceSchema);

const app = express();
app.set('json spaces', 2);

app.get('/', (req, res) => {
  res.send('Hello World!! :)');
});

app.get('/services', (req, res) => {
  Service.find({}, (err, results) => {
    if (err) {
      console.error('AN ERROR OCCURRED');
    }
    console.log('found items:\n', results);
    res.json(results);
  });
});

app.listen(80);

{'fraction_non_alphanumeric': 0.1992619926199262, 'fraction_numerical': 0.011808118081180811, 'mean_word_length': 4.2153846153846155, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 8, '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': '3655759', 'n_tokens_mistral': 465, 'n_tokens_neox': 460, 'n_words': 110}