<commit_before><?php

/**
 * Wolfplex Kiba One design available accents
 *
 * Outputs an array of accents:
 * name:    		accent name
 * accent:  		background color
 * headingColor:	text color
 */

$white = '#ffffff'; //We currently don't consider a grayish white for cyan compliance.
$black = '#000000'; //We currently don't consider a dark gray for citron compliance.
$defaultHeadingsColor = $white;

$accents = [
	// Main colors
	[ 'black', '#000000', '#4b4b50' ],
	[ 'zedgray', '#343434' ],
	[ 'bluegray', '#4b4b50' ],

	// Colored accents
	[ 'cyan', '#2ba6cb' ],
	[ 'lime', '#e7fb03', $black ],
	[ 'magenta', '#f608b0' ],
	[ 'craie', '#f3f3f3', $black ],
	[ 'grenade', '#f34723' ],
	[ 'sorbier', '#fb8507' ],
	[ 'purple', '#998cfb' ],
	[ 'citron', '#fcff00', $black ],
	[ 'blueribbon', '#1d62ff' ],
	[ 'red', '#f60000' ],
];

$areas = [];
foreach ($accents as $accent) {
	$areas[] = [
		'name'         => $accent[0],
		'accent'       => $accent[1],
		'headingColor' => count($accent) < 3 ? $defaultHeadingsColor : $accent[2]
	];
}

header("Content-Type: application/json");
echo json_encode($areas);
<commit_msg>/design/kibaone/accents API: output now uses JSON_PRETTY_PRINT<commit_after><?php

/**
 * Wolfplex Kiba One design available accents
 *
 * Outputs an array of accents:
 * name:    		accent name
 * accent:  		background color
 * headingColor:	text color
 */

$white = '#ffffff'; //We currently don't consider a grayish white for cyan compliance.
$black = '#000000'; //We currently don't consider a dark gray for citron compliance.
$defaultHeadingsColor = $white;

$accents = [
	// Main colors
	[ 'black', '#000000', '#4b4b50' ],
	[ 'zedgray', '#343434' ],
	[ 'bluegray', '#4b4b50' ],

	// Colored accents
	[ 'cyan', '#2ba6cb' ],
	[ 'lime', '#e7fb03', $black ],
	[ 'magenta', '#f608b0' ],
	[ 'craie', '#f3f3f3', $black ],
	[ 'grenade', '#f34723' ],
	[ 'sorbier', '#fb8507' ],
	[ 'purple', '#998cfb' ],
	[ 'citron', '#fcff00', $black ],
	[ 'blueribbon', '#1d62ff' ],
	[ 'red', '#f60000' ],
];

$areas = [];
foreach ($accents as $accent) {
	$areas[] = [
		'name'         => $accent[0],
		'accent'       => $accent[1],
		'headingColor' => count($accent) < 3 ? $defaultHeadingsColor : $accent[2]
	];
}

header("Content-Type: application/json");
echo json_encode($areas, JSON_PRETTY_PRINT);

{'fraction_non_alphanumeric': 0.2108695652173913, 'fraction_numerical': 0.05565217391304348, 'mean_word_length': 3.9377682403433476, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, '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': '2624878', 'n_tokens_mistral': 978, 'n_tokens_neox': 901, 'n_words': 208}