<commit_before>import * as express from 'express';
import {treeviewData} from './treeview-data';
import {lamborghiniModels, lamborghinData} from './car-data';
const app = express();

const base = `${__dirname}/api.runfiles/angular_samples`;
const root = `${base}/src/apps/api`;
const node_modules = `${base}/node_modules`;
const dist = `${base}/dist`;

const indexPage = `${root}/index.html`;
app.use(express.static('/'), express.static(root));
app.use('/node_modules', express.static(node_modules));
app.use('/dist', express.static(dist));

app.get('/', (_req, res) => {
  res.sendFile(indexPage);
});

app.use(function(req, res, next) {
  res.header('Access-Control-Allow-Origin', '*');
  res.header(
    'Access-Control-Allow-Headers',
    'Origin, X-Requested-With, Content-Type, Accept',
  );
  next();
});
<commit_msg>remove cors<commit_after>import * as express from 'express';

import {treeviewData} from './treeview-data';
import {lamborghiniModels, lamborghinData} from './car-data';

const app = express();

const base = `${__dirname}/api.runfiles/angular_samples`;
const root = `${base}/src/apps/api`;
const node_modules = `${base}/node_modules`;
const dist = `${base}/dist`;

const indexPage = `${root}/index.html`;
app.use(express.static('/'), express.static(root));
app.use('/node_modules', express.static(node_modules));
app.use('/dist', express.static(dist));

app.get('/', (_req, res) => {
  res.sendFile(indexPage);
});

{'fraction_non_alphanumeric': 0.20917303683113272, 'fraction_numerical': 0.0, 'mean_word_length': 5.545454545454546, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '3063193', 'n_tokens_mistral': 487, 'n_tokens_neox': 491, 'n_words': 96}