<commit_before>var spark = require('./index').spark;
var http = require('http');
var express = require('express');
var app = express();

var dataSet = [];
var dataSet2 = [];
var dataSet3 = [];
var dataSet4 = [];
for (var i=0;i<10;i++) {
  dataSet.push(Math.floor((Math.random() * 500) + 10));
  dataSet2.push(Math.floor((Math.random() * 500) + 10));
  dataSet3.push(Math.floor((Math.random() * 500) + 10));
  dataSet4.push(Math.floor((Math.random() * 500) + 10));
}

var set = [
    {
        label: 'Auto Generated',
        data: dataSet,
        //color controls the line
        color: '#1E90FF'
        //nodeColor controls the pointer color
    },
    {
        label: 'Auto Generated 2',
        data: dataSet2,
        color: '#FF7F00'
    },
    {
        label: 'Auto Generated 3',
        data: dataSet3,
        color: '#FF00FF'
    }
];

var amount = 30;
var now = Date.now();
var nodes = '';

for (var i = 0;i < amount;i++) {
  nodes += spark('.graph').set({
    chart : {
      type: 'line',
      width: 200,
      height: 100,
      'font-family': '"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',
      showPointer: false,
      fillArea: true
    },
    title : 'just a test',
    data: set
  });
}
var diff = (Date.now() - now);

console.log('Took ' + diff + 'ms to generate ' + amount);
nodes = '<div>' + 'Took ' + diff + 'ms to generate ' + amount + '</div>' + nodes;

var str = '<html><head>'+
"<link href='http://fonts.googleapis.com/css?family=Open+Sans:300,600' rel='stylesheet' type='text/css'>"+
'<link rel="stylesheet" href="style.css" type="text/css"></head><body>' + nodes + '</body></html>';

var proxy = http.createServer(function (req, res) {
  res.writeHead(200, {'Content-Type': 'text/plain'});
});

app.use(express.static(__dirname + '/demo'));
app.get('/', function (req, res) {
  res.send(str);
});

app.listen(3000);<commit_msg>updated test<commit_after>var spark = require('./index').spark;
var http = require('http');
var express = require('express');
var app = express();

var dataPoints = 30;
var amount = 50;


var dataSet = [];
var dataSet2 = [];
var dataSet3 = [];
var dataSet4 = [];
for (var i=0;i<dataPoints;i++) {
  dataSet.push(Math.floor((Math.random() * 500) + 10));
  dataSet2.push(Math.floor((Math.random() * 500) + 10));
  dataSet3.push(Math.floor((Math.random() * 500) + 10));
  dataSet4.push(Math.floor((Math.random() * 500) + 10));
}

var set = [
    {
        label: 'Auto Generated',
        data: dataSet,
        //color controls the line
        color: '#1E90FF'
        //nodeColor controls the pointer color
    },
    {
        label: 'Auto Generated 2',
        data: dataSet2,
        color: '#FF7F00'
    },
    {
        label: 'Auto Generated 3',
        data: dataSet3,
        color: '#FF00FF'
    }
];

var now = Date.now();
var nodes = '';

for (var i = 0;i < amount;i++) {
  nodes += spark('.graph').set({
    chart : {
      type: 'line',
      width: 280,
      height: 100,
      'font-family': '"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',
      showPointer: false,
      fillArea: true
    },
    title : 'just a test',
    data: set
  });
}
var diff = (Date.now() - now);

console.log('Took ' + diff + 'ms to generate ' + amount + ' with '+ dataPoints + ' data points per each graph');
nodes = '<div>' + 'Took ' + diff + 'ms to generate ' + amount + ' with '+ dataPoints + ' data points per each graph' + '</div>' + nodes;

var str = '<html><head>'+
"<link href='http://fonts.googleapis.com/css?family=Open+Sans:300,600' rel='stylesheet' type='text/css'>"+
'<link rel="stylesheet" href="style.css" type="text/css"></head><body>' + nodes + '</body></html>';

var proxy = http.createServer(function (req, res) {
  res.writeHead(200, {'Content-Type': 'text/plain'});
});

app.use(express.static(__dirname + '/demo'));
app.get('/', function (req, res) {
  res.send(str);
});

app.listen(3000);
{'fraction_non_alphanumeric': 0.20153061224489796, 'fraction_numerical': 0.03214285714285714, 'mean_word_length': 3.059006211180124, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 23, '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': '24809', 'n_tokens_mistral': 1452, 'n_tokens_neox': 1339, 'n_words': 335}