<commit_before>import * as express from 'express'
import * as cors from 'cors'
import * as request  from 'request';
import * as path from 'path';

import { config } from '../../config';

export interface IConfig {
    env: string;
    server: {
        host: string;
        port: number;
    }
    app: {
        start:string;
    }
    api: {
        host: string;
    }
}

let publicDir = path.join(__dirname, '../public/');

if (!process.env.NODE_ENV) {
  console.log("Running in DEV mode");
} else {
  if (process.env.NODE_ENV == "production"){
    console.log(`Running in PROD mode - ${process.env.NODE_ENV}`);
  } else {
    console.log(`Running in DEV mode - ${process.env.NODE_ENV}`);
  }
  
};

console.log(config)

/**
 * 
 * 
 */
const app = express();




// Enable CORS
app.use(cors());

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

// Environment pre-poader
app.get('/settings', (req, res) => {
  let settings = {};
  
  // set the properties
  settings['start'] = config.app.start;
  settings['environment'] = config.env;
  settings['webApiUrl'] = config.api.host;<commit_msg>- cleaning up basic express server<commit_after>import * as express from 'express'
import * as cors from 'cors'
import * as request  from 'request';
import * as path from 'path';

import { config } from '../../config';

let publicDir = path.join(__dirname, '../public/');

console.log(config)

/**
 * 
 * 
 */
const app = express();


// Enable CORS
app.use(cors());

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

// Environment pre-poader
app.get('/settings', (req, res) => {
  let settings = {};
  
  // set the properties
  settings['start'] = config.app.start;
  settings['environment'] = config.env;
  settings['webApiUrl'] = config.api.host;
{'fraction_non_alphanumeric': 0.18659217877094972, 'fraction_numerical': 0.0, 'mean_word_length': 3.0067114093959733, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '1316829', 'n_tokens_mistral': 606, 'n_tokens_neox': 596, 'n_words': 154}