<commit_before>var parse = require("./pxxl.bdf-parser.js"),
    fs = require("fs");

function pxxl(text, draw) {
	fs.readFile('./fonts/c64.bdf', { encoding: 'ascii'}, function (err, data) {
	  if (err) throw err;

	  var font = parse(data);  

	  var pixels = font.getPixels(text);

	  draw(text, pixels, font);
	});
}

module.exports = pxxl;<commit_msg>fix font bdf file res path;<commit_after>var parse = require("./pxxl.bdf-parser.js"),
    fs = require("fs"),
    path = require('path');

/**
 *  call pxxl for creating text pixel data
 **/
function pxxl(text, draw) {
	fs.readFile( __dirname + '/fonts/c64.bdf', { encoding: 'ascii'}, function (err, data) {
	  if (err) throw err;

	  var font = parse(data);  

	  var pixels = font.getPixels(text);

	  draw(text, pixels, font);
	});
}

module.exports = pxxl;
{'fraction_non_alphanumeric': 0.18181818181818182, 'fraction_numerical': 0.004914004914004914, 'mean_word_length': 3.5277777777777777, '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': '4285773', 'n_tokens_mistral': 315, 'n_tokens_neox': 292, 'n_words': 73}