<commit_before>var express = require('express');
var bodyParser = require('body-parser');
var app = express();
var redis = require("redis"),
    client = redis.createClient();

app.use(bodyParser.json());

app.get('/', function (req, res) {
  res.send('Welcome to PAW!');
});

app.get('/dogs', function (req, res) {
   client.keys('*', function (err, keys) {
     res.json({dogs: keys});
   });
});

app.post('/event', function (req, res) {<commit_msg>environment variable for redis url<commit_after>var express = require('express');
var bodyParser = require('body-parser');
var app = express();

var redisURL = process.env.REDIS_URL;
var redis = require("redis"),
    client = redis.createClient(redisURL);

app.use(bodyParser.json());

app.get('/', function (req, res) {
  res.send('Welcome to PAW!');
});

app.get('/dogs', function (req, res) {
   client.keys('*', function (err, keys) {
     res.json({dogs: keys});
   });
});

app.post('/event', function (req, res) {
{'fraction_non_alphanumeric': 0.21193415637860083, 'fraction_numerical': 0.0, 'mean_word_length': 4.591954022988506, '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': '2152784', 'n_tokens_mistral': 334, 'n_tokens_neox': 331, 'n_words': 79}