<commit_before>
var gd = require('node-gd');
var fs = require('fs');

var fonts = './font/';

exports.clock = function(req, res, next) {
    var img = gd.createTrueColor(800, 100);
    var font = font = 'DigitalDream.ttf';
    
    img.alphaBlending(1);
	img.setAntiAliased(1);
	
	var almostblack = img.colorAllocate(1, 1, 1),
	   black = img.colorAllocate(0, 0, 0),
	   white = img.colorAllocate(255, 255, 255),
	   green = img.colorAllocate(0, 200, 0),
	   clear = img.colorAllocateAlpha(255, 255, 255, 0);
    
	img.fill(0, 0, black);
	
    var date = new Date(),
	   newpix = date.getHours() + date.getDate() * 24 + 2450;
	newpix += date.getMinutes() / 60.0;
	newpix += date.getSeconds() / 3600.0;
	newpix = round(newpix, 2);
	
    var countdownh = date.getHours() + date.getDate() * 24;
	countdownh = 669 - countdownh;
	var countdownm = 60 - date.getMinutes();
	if (countdownm < 10) { countdownm = "0" + countdownm; }
	if (countdownh < 10) { countdownh = "0" + countdownh; }
	
    //img.stringFTBBox  (color, font, size, angle, x, y, str);
    //img.stringFT      (color, font, size, angle, x, y, str);
	img.stringFT(green, font, 20, 0, 20, 62, "Newpix " + newpix);
	img.stringFT(green, font, 20, 0, 350, 62, "Reconnect in: 0:" + countdownh + ":" + countdownm);
    
    
    img.savePng('./temp');
    var dat = fs.readFileSync('./temp');
    
    res.set('Content-Type', 'image/png');
    res.end(dat, 'binary');
    img.destroy();
}<commit_msg>Round to Math.round<commit_after>
var gd = require('node-gd');
var fs = require('fs');

var fonts = './font/';

exports.clock = function(req, res, next) {
    var img = gd.createTrueColor(800, 100);
    var font = font = 'DigitalDream.ttf';
    
    img.alphaBlending(1);
	img.setAntiAliased(1);
	
	var almostblack = img.colorAllocate(1, 1, 1),
	   black = img.colorAllocate(0, 0, 0),
	   white = img.colorAllocate(255, 255, 255),
	   green = img.colorAllocate(0, 200, 0),
	   clear = img.colorAllocateAlpha(255, 255, 255, 0);
    
	img.fill(0, 0, black);
	
    var date = new Date(),
	   newpix = date.getHours() + date.getDate() * 24 + 2450;
	newpix += date.getMinutes() / 60.0;
	newpix += date.getSeconds() / 3600.0;
	newpix = Math.round(newpix, 2);
	
    var countdownh = date.getHours() + date.getDate() * 24;
	countdownh = 669 - countdownh;
	var countdownm = 60 - date.getMinutes();
	if (countdownm < 10) { countdownm = "0" + countdownm; }
	if (countdownh < 10) { countdownh = "0" + countdownh; }
	
    //img.stringFTBBox  (color, font, size, angle, x, y, str);
    //img.stringFT      (color, font, size, angle, x, y, str);
	img.stringFT(green, font, 20, 0, 20, 62, "Newpix " + newpix);
	img.stringFT(green, font, 20, 0, 350, 62, "Reconnect in: 0:" + countdownh + ":" + countdownm);
    
    
    img.savePng('./temp');
    var dat = fs.readFileSync('./temp');
    
    res.set('Content-Type', 'image/png');
    res.end(dat, 'binary');
    img.destroy();
}
{'fraction_non_alphanumeric': 0.18181818181818182, 'fraction_numerical': 0.05763293310463122, 'mean_word_length': 3.1361702127659576, 'pattern_counts': {'":': 2, '<': 7, '<?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': '4051276', 'n_tokens_mistral': 1281, 'n_tokens_neox': 1111, 'n_words': 272}