<commit_before>/* tasks uber example */

var fs = require('fs');
var http = require('http');
var querystring = require('querystring');

var g = {};
g.host = '0.0.0.0';
g.port = (process.env.PORT ? process.env.PORT : 8484);

/* internal test data */
g.list = [];
g.list[0] = {id:0,text:'this is some item'};
g.list[1] = {id:1,text:'this is another item'};
g.list[2] = {id:2,text:'this is one more item'};
g.list[3] = {id:3,text:'this is possibly an item'};

// main entry point
function handler(req, res) {

  var m = {};
  m.item = {};
  m.filter = '';
  
  // internal urls
  m.homeUrl = '/';
  m.listUrl = '/tasks/';
  m.scriptUrl = '/tasks.js';
  m.filterUrl = '/tasks/search';
  m.completeUrl = '/tasks/complete/';
  m.profileUrl = '/tasks-alps.xml';

  // media-type identifiers
  m.uberXml  = {'content-type':'application/xml'};
  m.textHtml = {'content-type':'text/html'};
  m.appJS = {'content-type':'application/javascript'};<commit_msg>Use proper UBER XML Content-Type for responses.<commit_after>/* tasks uber example */

var fs = require('fs');
var http = require('http');
var querystring = require('querystring');

var g = {};
g.host = '0.0.0.0';
g.port = (process.env.PORT ? process.env.PORT : 8484);

/* internal test data */
g.list = [];
g.list[0] = {id:0,text:'this is some item'};
g.list[1] = {id:1,text:'this is another item'};
g.list[2] = {id:2,text:'this is one more item'};
g.list[3] = {id:3,text:'this is possibly an item'};

// main entry point
function handler(req, res) {

  var m = {};
  m.item = {};
  m.filter = '';
  
  // internal urls
  m.homeUrl = '/';
  m.listUrl = '/tasks/';
  m.scriptUrl = '/tasks.js';
  m.filterUrl = '/tasks/search';
  m.completeUrl = '/tasks/complete/';
  m.profileUrl = '/tasks-alps.xml';

  // media-type identifiers
  m.uberXml  = {'content-type':'application/vnd.uber+xml'};
  m.textHtml = {'content-type':'text/html'};
  m.appJS = {'content-type':'application/javascript'};
{'fraction_non_alphanumeric': 0.21808785529715763, 'fraction_numerical': 0.016537467700258397, 'mean_word_length': 3.544600938967136, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, 'pii_count': 2, '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': '7408739', 'n_tokens_mistral': 747, 'n_tokens_neox': 723, 'n_words': 161}