<commit_before>#!/usr/bin/php
<?php
/**
 * A chaser app that picks a random colour and then chases it up the Holiday string
 *
 * @author <NAME> <<EMAIL>>
 * @version 1.0
 * @copyright 2013 <NAME>
 * @license MIT
 */
 
include 'class.holiday.secretapi.php';

// Need to pass the IP address or hostname of the Holiday on the command-line
if ( isset($argv[1]) ) {

	$holiday = new HolidaySecretAPI($argv[1]);
	
	while (true) {

		$r = rand(63, 255);
		$g = rand(63, 255);
		$b = rand(63, 255);
		
		// Now, based on another random value, squash one of these values
		switch (rand(0,2)) {
			
			case 0:
				$r = 0;
			break;
			case 1:
				$g = 0;
			break;
			case 2:
				$b = 0;
			break;
		}
	
		for ($globe; $globe < $holiday->NUM_GLOBES; $globe++) {

			// First turn off all the globes
			$holiday->fill(0, 0, 0);
			
			// Now, turn on the next globe in sequence with the random colour
			$holiday->setglobe($globe, $r, $g, $b);
			
			// Render the globes
			$holiday->render();
			
			// Pause for audience applause
			usleep(100000);
			
		}
		
		unset($globe);
			
	}

} else {
	exit(1);
}
 
?><commit_msg>Set  = 0 to light up the first light in the string.<commit_after>#!/usr/bin/php
<?php
/**
 * A chaser app that picks a random colour and then chases it up the Holiday string
 *
 * @author <NAME> <<EMAIL>>
 * @version 1.0
 * @copyright 2013 <NAME>
 * @license MIT
 */
 
include 'class.holiday.secretapi.php';

// Need to pass the IP address or hostname of the Holiday on the command-line
if ( isset($argv[1]) ) {

$holiday = new HolidaySecretAPI($argv[1]);

while (true) {

	$r = rand(63, 255);
	$g = rand(63, 255);
	$b = rand(63, 255);
	
	// Now, based on another random value, squash one of these values
	switch (rand(0,2)) {
		
		case 0:
			$r = 0;
		break;
		case 1:
			$g = 0;
		break;
		case 2:
			$b = 0;
		break;
	}

	for ($globe = 0; $globe < $holiday->NUM_GLOBES; $globe++) {

		// First turn off all the globes
		$holiday->fill(0, 0, 0);
		
		// Now, turn on the next globe in sequence with the random colour
		$holiday->setglobe($globe, $r, $g, $b);
		
		// Render the globes
		$holiday->render();
		
		// Pause for audience applause
		usleep(100000);
		
	}
	
	unset($globe);
			
	}

} else {
	exit(1);
}
 
?>
{'fraction_non_alphanumeric': 0.15615212527964206, 'fraction_numerical': 0.03758389261744966, 'mean_word_length': 2.6595744680851063, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 21, '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': '1936605', 'n_tokens_mistral': 1024, 'n_tokens_neox': 827, 'n_words': 271}