<commit_before>/*
 * This file is part of Oshinko.
 *
 * Copyright (C) 2017 Red Hat, Inc.
 *
 */

'use strict';

var express = require("express");
var app = express();

var oshinko_proxy_location = process.env.OSHINKO_PROXY_LOCATION || "";
var oshinko_current_namespace = process.env.CURRENT_NAMESPACE || "";

app.configure(function () {
  app.use(express.logger());
  app.set('views', __dirname + '/app');
  app.use(express.bodyParser());
  app.use(express.methodOverride());
  app.use(express.static(__dirname + '/app'));
  app.use('/webui/bower_components', express.static(__dirname + '/app/bower_components'));
  app.use('/webui/css', express.static(__dirname + '/app/css'));
  app.use('/webui/js', express.static(__dirname + '/app/js'));
  app.use('/webui/partials', express.static(__dirname + '/app/partials'));
  app.use('/webui/forms', express.static(__dirname + '/app/forms'));
  app.use('/webui', express.static(__dirname + '/app'));
  app.use(app.router);
  app.engine('html', require('ejs').renderFile);
});

app.get('*', function (request, response) {
  response.render('index.html');
});

var port = process.env.OPENSHIFT_NODEJS_PORT || 8080;
app.listen(port, function () {
  console.log("Listening on " + port);
  console.log("Proxy location: " + oshinko_proxy_location + "/proxy");
  console.log("Current namespace is: " + oshinko_current_namespace);
});<commit_msg>Add the spark default image back into the console log<commit_after>/*
 * This file is part of Oshinko.
 *
 * Copyright (C) 2017 Red Hat, Inc.
 *
 */

'use strict';

var express = require("express");
var app = express();

var oshinko_proxy_location = process.env.OSHINKO_PROXY_LOCATION || "";
var oshinko_current_namespace = process.env.CURRENT_NAMESPACE || "";
var spark_default = process.env.SPARK_DEFAULT || "";

app.configure(function () {
  app.use(express.logger());
  app.set('views', __dirname + '/app');
  app.use(express.bodyParser());
  app.use(express.methodOverride());
  app.use(express.static(__dirname + '/app'));
  app.use('/webui/bower_components', express.static(__dirname + '/app/bower_components'));
  app.use('/webui/css', express.static(__dirname + '/app/css'));
  app.use('/webui/js', express.static(__dirname + '/app/js'));
  app.use('/webui/partials', express.static(__dirname + '/app/partials'));
  app.use('/webui/forms', express.static(__dirname + '/app/forms'));
  app.use('/webui', express.static(__dirname + '/app'));
  app.use(app.router);
  app.engine('html', require('ejs').renderFile);
});

app.get('*', function (request, response) {
  response.render('index.html');
});

var port = process.env.OPENSHIFT_NODEJS_PORT || 8080;
app.listen(port, function () {
  console.log("Listening on " + port);
  console.log("Proxy location: " + oshinko_proxy_location + "/proxy");
  console.log("Current namespace is: " + oshinko_current_namespace);
  console.log("Spark default image if not overridden is " + spark_default);
});
{'fraction_non_alphanumeric': 0.19263552676440504, 'fraction_numerical': 0.005455165359699966, 'mean_word_length': 5.0, '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': '6358785', 'n_tokens_mistral': 980, 'n_tokens_neox': 968, 'n_words': 178}