<commit_before><!DOCTYPE html><html><head><title>NebCorp ColorTime Service, a NebCorp Service brought to you by NebCorp</title><meta charset="UTF-8" ><link href='http://fonts.googleapis.com/css?family=Open+Sans:800,400,300' rel='stylesheet' type='text/css'>
<link rel="shortcut icon" href="http://wwn.nebcorp.com/images/logo/corplogo-bigearth.gif">

<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1">
<meta name="description" content="NebCorp ColorTime Service, a NebCorp Service brought to you by NebCorp"/>
<meta property="og:title" content="NebCorp ColorTime Service, a NebCorp Service brought to you by NebCorp" />
<meta property='og:locale' content="en_US"/>
<meta property='og:description' content="NebCorp ColorTime Service, a NebCorp Service brought to you by NebCorp"/>
<meta property="og:type" content="Website" />
<meta property='og:site_name' content="colortime.nebcorp.com"/>
<meta property="og:url" content="http://colortime.nebcorp.com/" />
<meta property="og:image" content="http://wwn.nebcorp.com/images/buttons/navlogo.gif" />

<style>

@media all and (max-width: 1024px) {

h1 { font-family:"open sans"; font-size:40px; font-weight:300; color:white; transition:all 0.6s; -webkit-transition:all 0.6s;}
h2 { font-family:"open sans"; font-size:20px; font-weight:300; color:white; transition:all 0.6s; -webkit-transition:all 0.6s;}

}

@media all and (min-width: 1024px) {

h1 { font-family:"open sans"; font-size:120px; font-weight:300; color:white; transition:all 0.6s; -webkit-transition:all 0.6s;}
h2 { font-family:"open sans"; font-size:30px; font-weight:300; color:white; transition:all 0.6s; -webkit-transition:all 0.6s;}

}

table { position:absolute; width:100%; height:100%; top:0px; left:0px;}
.fb-like {position:static; width:100px;}
</style>

</head>

<body onLoad="dotime()">

<table><td height="100%" width="100%" align="center" valign="middle">
<h1 id="t"></h1><br>
<h2 id="h"></h2>
</td></table>
</body>

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/jquery-ui.min.js"></script>
<script type="text/javascript">

function mapRange(from, to, s) {
  return Math.ceil(to[0] + (s - from[0]) * (to[1] - to[0]) / (from[1] - from[0]));
};

var hourvals = [0, 23];
var minutevals = [0, 59];
var secondvals = minutevals;
var colorvals = [0, 255];
var light = "#ffffff";
var dark = "#303030";

function rgb2hex(r,g,b) {
    if (g !== undefined)
        return Number(0x1000000 + r*0x10000 + g*0x100 + b).toString(16).substring(1).toUpperCase();
    else
        return Number(0x1000000 + r[0]*0x10000 + r[1]*0x100 + r[2]).toString(16).substring(1).toUpperCase();
}

function getBrightness(r, g, b) {
       return Math.sqrt( (0.241 * (r * r)) + (0.691 * (g * g)) + (0.068 * (b * b)) );
}

function dotime(){

	$("body").css({"transition": "all 0.8s", "-webkit-transition": "all 0.8s"});

	var d = new Date();
	var hours = d.getHours();
	var mins = d.getMinutes();
	var secs = d.getSeconds();

	var red = mapRange(hourvals, colorvals, hours);
	var green = mapRange(minutevals, colorvals, mins);
	var blue = mapRange(secondvals, colorvals, secs);

	var rgbhex = rgb2hex(red, green, blue);

	if (hours < 10){hours = "0" + hours};
	if (mins < 10){mins = "0" + mins};
	if (secs < 10){secs = "0" + secs};

	hours.toString();
	mins.toString();
	secs.toString();

	var hex = "#" + rgbhex;

        if (getBrightness(red, green, blue) < 50) {
           $("#t").css('color', 'white');
           $("#h").css('color', 'white');
        } else {
           $("#t").css('color', 'black');
           $("#h").css('color', 'black');
        }

	$("#t").html(hours +" : "+ mins +" : "+ secs);
	$("#h").html(hex);


	document.body.style.background = hex;

	setTimeout(function(){ dotime();}, 1000);
}

</script>

</html><commit_msg>Actually change the text color.<commit_after><!DOCTYPE html><html><head><title>NebCorp ColorTime Service, a NebCorp Service brought to you by NebCorp</title><meta charset="UTF-8" ><link href='http://fonts.googleapis.com/css?family=Open+Sans:800,400,300' rel='stylesheet' type='text/css'>
<link rel="shortcut icon" href="http://wwn.nebcorp.com/images/logo/corplogo-bigearth.gif">

<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1">
<meta name="description" content="NebCorp ColorTime Service, a NebCorp Service brought to you by NebCorp"/>
<meta property="og:title" content="NebCorp ColorTime Service, a NebCorp Service brought to you by NebCorp" />
<meta property='og:locale' content="en_US"/>
<meta property='og:description' content="NebCorp ColorTime Service, a NebCorp Service brought to you by NebCorp"/>
<meta property="og:type" content="Website" />
<meta property='og:site_name' content="colortime.nebcorp.com"/>
<meta property="og:url" content="http://colortime.nebcorp.com/" />
<meta property="og:image" content="http://wwn.nebcorp.com/images/buttons/navlogo.gif" />

<style>

@media all and (max-width: 1024px) {

h1 { font-family:"open sans"; font-size:40px; font-weight:300; color:white; transition:all 0.6s; -webkit-transition:all 0.6s;}
h2 { font-family:"open sans"; font-size:20px; font-weight:300; color:white; transition:all 0.6s; -webkit-transition:all 0.6s;}

}

@media all and (min-width: 1024px) {

h1 { font-family:"open sans"; font-size:120px; font-weight:300; color:white; transition:all 0.6s; -webkit-transition:all 0.6s;}
h2 { font-family:"open sans"; font-size:30px; font-weight:300; color:white; transition:all 0.6s; -webkit-transition:all 0.6s;}

}

table { position:absolute; width:100%; height:100%; top:0px; left:0px;}
.fb-like {position:static; width:100px;}
</style>

</head>

<body onLoad="dotime()">

<table><td height="100%" width="100%" align="center" valign="middle">
<h1 id="t"></h1><br>
<h2 id="h"></h2>
</td></table>
</body>

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/jquery-ui.min.js"></script>
<script type="text/javascript">

function mapRange(from, to, s) {
  return Math.ceil(to[0] + (s - from[0]) * (to[1] - to[0]) / (from[1] - from[0]));
};

var hourvals = [0, 23];
var minutevals = [0, 59];
var secondvals = minutevals;
var colorvals = [0, 255];
var light = "#ffffff";
var dark = "#6e6e6e";

function rgb2hex(r,g,b) {
    if (g !== undefined)
        return Number(0x1000000 + r*0x10000 + g*0x100 + b).toString(16).substring(1).toUpperCase();
    else
        return Number(0x1000000 + r[0]*0x10000 + r[1]*0x100 + r[2]).toString(16).substring(1).toUpperCase();
}

function getBrightness(r, g, b) {
       return Math.sqrt( (0.241 * (r * r)) + (0.691 * (g * g)) + (0.068 * (b * b)) );
}

function dotime(){

	$("body").css({"transition": "all 0.8s", "-webkit-transition": "all 0.8s"});

	var d = new Date();
	var hours = d.getHours();
	var mins = d.getMinutes();
	var secs = d.getSeconds();

	var red = mapRange(hourvals, colorvals, hours);
	var green = mapRange(minutevals, colorvals, mins);
	var blue = mapRange(secondvals, colorvals, secs);

	var rgbhex = rgb2hex(red, green, blue);

	if (hours < 10){hours = "0" + hours};
	if (mins < 10){mins = "0" + mins};
	if (secs < 10){secs = "0" + secs};

	hours.toString();
	mins.toString();
	secs.toString();

	var hex = "#" + rgbhex;

        if (getBrightness(red, green, blue) < 135) {
           $("#t").css('color', 'white');
           $("#h").css('color', 'white');
        } else {
           $("#t").css('color', dark);
           $("#h").css('color', dark);
        }

	$("#t").html(hours +" : "+ mins +" : "+ secs);
	$("#h").html(hex);


	document.body.style.background = hex;

	setTimeout(function(){ dotime();}, 1000);
}

</script>

</html>
{'fraction_non_alphanumeric': 0.2074064549312074, 'fraction_numerical': 0.048347691912048345, 'mean_word_length': 4.587643678160919, 'pattern_counts': {'":': 4, '<': 87, '<?xml version=': 0, '>': 79, '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': '1909154', 'n_tokens_mistral': 3154, 'n_tokens_neox': 2824, 'n_words': 627}