<commit_before><?php

use Sphp\Manual\Apps\Icons\DataFactory;
use Sphp\Manual\Apps\Icons\IconGroup;
use Sphp\Manual\Apps\Icons\FontAwesomeIconGroup;

echo '<pre>';
$iconsData = DataFactory::fontawesomeFromYaml('/home/int48291/public_html/playground/manual/snippets/icons/fontawesome/icons.yml');
$controller = new \Sphp\Manual\Apps\Icons\FaGroupController($iconsData);
$types = ['fas' => 'Solid', 'far' => 'Regular', 'fab' => 'Brand'];
$typeMap = ['solid' => 'fas', 'regular' => 'far', 'brands' => 'fab'];
$type = filter_input(INPUT_GET, 'type', FILTER_SANITIZE_STRING, ['default' => 'regular']);
if ($type === null) {
  $type = 'regular';
}
echo '</pre>';
$iconsData = $iconsData->filter(function(IconGroup $iconData) use ($type) {
  if ($iconData instanceof FontAwesomeIconGroup) {
    return in_array($type, $iconData->getStyles());
  }
  return false;
});
//var_dump($iconsData);
//$show = $typeMap[$type];

$cells = new Sphp\Manual\Apps\Icons\Views\IconsView($iconsData);
$devData = DataFactory::deviconsFromJson('/home/int48291/public_html/playground/manual/snippets/icons/devicon/devicon.json');
echo $cells->getHtmlFor($controller->getData($type));
echo (new Sphp\Manual\Apps\Icons\Views\IconsView($devData))->getHtmlFor();<commit_msg>Update props.php<commit_after><?php

use Sphp\Manual\Apps\Icons\DataFactory;
use Sphp\Manual\Apps\Icons\IconGroup;
use Sphp\Manual\Apps\Icons\FontAwesomeIconGroup;

echo '<pre>';
$iconsData = DataFactory::fontawesomeFromYaml('/home/int48291/public_html/playground/manual/snippets/icons/fontawesome/icons.yml');
$controller = new \Sphp\Manual\Apps\Icons\FaGroupController($iconsData);
$types = ['fas' => 'Solid', 'far' => 'Regular', 'fab' => 'Brand'];
$typeMap = ['solid' => 'fas', 'regular' => 'far', 'brands' => 'fab'];
$type = filter_input(INPUT_GET, 'type', FILTER_SANITIZE_STRING, ['default' => 'regular']);
if ($type === null) {
  $type = 'regular';
}
echo '</pre>';
$iconsData = $iconsData->filter(function(IconGroup $iconData) use ($type) {
  if ($iconData instanceof FontAwesomeIconGroup) {
    return in_array($type, $iconData->getStyles());
  }
  return false;
});
//var_dump($iconsData);
//$show = $typeMap[$type];

$cells = new Sphp\Manual\Apps\Icons\Views\IconsView($iconsData);
$cells->setHeading('Fontawesome <small>Regular Icons</small>');
$devData = DataFactory::deviconsFromJson('/home/int48291/public_html/playground/manual/snippets/icons/devicon/devicon.json');
echo $cells->getHtmlFor($controller->getData($type));
echo (new Sphp\Manual\Apps\Icons\Views\IconsView($devData))->getHtmlFor();
{'fraction_non_alphanumeric': 0.1981981981981982, 'fraction_numerical': 0.007833920877399139, 'mean_word_length': 6.6467065868263475, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 34, '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': '7622289', 'n_tokens_mistral': 953, 'n_tokens_neox': 918, 'n_words': 139}