<commit_before><?php
	$object_article = new article();
	$article_list = $object_article->returnAllArticles();
?>
<h1 class="pageTitle"><?= $language["mod_article"]["list_title"]?></h1>
<div class="article-list">
	<div class="button-area">
		<a href="<?= $configuration["path-bo"] ?>/0/article/0/add" class="green"><i class="fa fa-plus"></i></a>
	</div>
	<table class="db-list">
	  <tr>
		<th><?= $language["mod_article"]["table_id"]?></th>
		<th><?= $language["mod_article"]["table_title"]?></th>
		<th><?= $language["mod_article"]["table_category"]?></th>
		<th><?= $language["mod_article"]["table_published"]?></th>
		<th style="width: 120px;"><?= $language["mod_article"]["table_sel"]?></th>
	  </tr>
	  <?php
		if (count($article_list) != 0) {
			foreach ($article_list as $article) {
				$object_category = new category();
				$object_category->setId($article["category_id"]);
				$category = $object_category->returnOneCategory();

				if ($article["published"]) {
					$published = sprintf("<img src=\"%s/site-assets/images/icon_on.png\" alt=\"on\" title=\"publicado\"/>", $configuration["path-bo"]);
				} else {
					$published = sprintf("<img src=\"%s/site-assets/images/icon_off.png\" alt=\"off\"  title=\"não publicado\"/>", $configuration["path-bo"]);
				}

				print str_replace(
						array(
							"{c2r-id}",
							"{c2r-date}",
							"{c2r-title}",
							"{c2r-category}",
							"{c2r-published}",
							"{c2r-path-bo}",
							"{c2r-confirm}"
						),
						array(
							$article["id"],
							$article["date_update"],
							strip_tags($article["title_1"]),
							$category["name_1"],
							$published,
							$configuration["path-bo"],
							$language["template"]["areyousure"]
						),
						file_get_contents("./modules/article/templates-e/line.html")
					);
			}
		}else {
			print str_replace(
					"{c2r-noresults}",
					$language["template"]["noresults"],
					file_get_contents("./modules/article/templates-e/line-noresults.html")
				);
		}

	  ?>
	</table>
	<div class="button-area">
		<a href="<?= $configuration["path-bo"] ?>/0/article/0/add" class="green"><i class="fa fa-plus"></i></a>
	</div>
</div><commit_msg>new path + file template<commit_after><?php
	$object_article = new article();
	$article_list = $object_article->returnAllArticles();

	$line = file_get_contents("modules/article/templates-e/line.html");
	$line_noresult = file_get_contents("modules/article/templates-e/line-noresults.html");
?>
<h1 class="pageTitle"><?= $language["mod_article"]["list_title"]?></h1>
<div class="article-list">
	<div class="button-area">
		<a href="<?= $configuration["path-bo"] ?>/0/article/0/add" class="green"><i class="fa fa-plus"></i></a>
	</div>
	<table class="db-list">
	  <tr>
		<th><?= $language["mod_article"]["table_id"]?></th>
		<th><?= $language["mod_article"]["table_title"]?></th>
		<th><?= $language["mod_article"]["table_category"]?></th>
		<th><?= $language["mod_article"]["table_published"]?></th>
		<th style="width: 120px;"><?= $language["mod_article"]["table_sel"]?></th>
	  </tr>
	  <?php
		if (count($article_list) != 0) {
			foreach ($article_list as $article) {
				$object_category = new category();
				$object_category->setId($article["category_id"]);
				$category = $object_category->returnOneCategory();

				if ($article["published"]) {
					$published = sprintf("<img src=\"%s/site-assets/images/icon_on.png\" alt=\"on\" title=\"publicado\"/>", $configuration["path-bo"]);
				} else {
					$published = sprintf("<img src=\"%s/site-assets/images/icon_off.png\" alt=\"off\"  title=\"não publicado\"/>", $configuration["path-bo"]);
				}

				print str_replace(
						array(
							"{c2r-id}",
							"{c2r-date}",
							"{c2r-title}",
							"{c2r-category}",
							"{c2r-published}",
							"{c2r-path-bo}",
							"{c2r-confirm}"
						),
						array(
							$article["id"],
							$article["date_update"],
							strip_tags($article["title_1"]),
							$category["name_1"],
							$published,
							$configuration["path-bo"],
							$language["template"]["areyousure"]
						),
						$line
					);
			}
		}else {
			print str_replace(
					"{c2r-noresults}",
					$language["template"]["noresults"],
					$line_noresult
				);
		}

	  ?>
	</table>
	<div class="button-area">
		<a href="<?= $configuration["path-bo"] ?>/0/article/0/add" class="green"><i class="fa fa-plus"></i></a>
	</div>
</div>
{'fraction_non_alphanumeric': 0.2398262459990855, 'fraction_numerical': 0.009144947416552356, 'mean_word_length': 3.7762008733624453, 'pattern_counts': {'":': 0, '<': 87, '<?xml version=': 0, '>': 93, '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': '1746409', 'n_tokens_mistral': 1897, 'n_tokens_neox': 1587, 'n_words': 214}