<commit_before><div class="article-add">
    <?php if(isset($_REQUEST['i']) && !empty($_REQUEST['i'])){ ?>
    	<h1>Edit Article</h1>
        <?php if (!isset($_REQUEST['save'])) { ?>
        <form method="post">
    	<?php returnEditorInit();
    	$object_article = new article();
    	$object_article->setId(intval($_REQUEST['i']));
    	$article = $object_article->returnOneArticle();
    	?>
        <div class="separator30"></div>
        
        <div <?php if (!$configuration['lang_1_state']) {echo 'style="display: none;"';} ?>>
            <h2>Lingua 1</h2>
    		<span id="label">Titulo</span>
    		<input type="text" name="title_1" value="<?php print $article['title_1']; ?>"/>
    		<span id="label">Conteudo</span> 
    		<?php returnEditor('content_1',$article['content_1']); ?>
            
            <div class="separator30"></div>
        </div>
        
        <div <?php if (!$configuration['lang_2_state']) {echo 'style="display: none;"';} ?>>
    		<h2>Lingua 2</h2>
    		<span id="label">Titulo</span>
    		<input type="text" name="title_2" value="<?php print $article['title_2']; ?>"/>
    		<span id="label">Conteudo</span> 
    		<?php returnEditor('content_2',$article['content_2']); ?>
    		
            <div class="separator30"></div>
        </div>
        
        <div <?php if (!$configuration['lang_3_state']) {echo 'style="display: none;"';} ?>>
    		<h2>Lingua 3</h2>
    		<span id="label">Titulo</span>
    		<input type="text" name="title_3" value="<?php print $article['title_3']; ?>"/>
    		<span id="label">Conteudo</span> 
    		<?php returnEditor('content_3',$article['content_3']); ?>
    		
            <div class="separator30"></div>
        </div>
        
        <div <?php if (!$configuration['lang_4_state']) {echo 'style="display: none;"';} ?>>
    		<h2>Lingua 4</h2>
    		<span id="label">Titulo</span>
    		<input type="text" name="title_4" value="<?php print $article['title_4']; ?>"/>
    		<span id="label">Conteudo</span> 
    		<?php returnEditor('content_4',$article['content_4']); ?>
            
            <div class="separator30"></div>
        </div>
        
        <div <?php if (!$configuration['lang_5_state']) {echo 'style="display: none;"';} ?>>
    		<h2>Lingua 5</h2>
    		<span id="label">Titulo</span>
    		<input type="text" name="title_5" value="<?php print $article['title_5']; ?>"/>
    		<span id="label">Conteudo</span> 
    		<?php returnEditor('content_5',$article['content_5']); ?>
            
            <div class="separator30"></div>
        </div>
        
        <div <?php if (!$configuration['lang_6_state']) {echo 'style="display: none;"';} ?>>
    		<h2>Lingua 6</h2>
    		<span id="label">Titulo</span>
    		<input type="text" name="title_6" value="<?php print $article['title_6']; ?>"/>
    		<span id="label">Conteudo</span> 
    		<?php returnEditor('content_6',$article['content_6']); ?>
            
            <div class="separator30"></div>
        </div>
        
        <span id="label">Categoria</span>
        <?php  
        	
        ?>
        
        <select name="category">
            <option value="null">Selecione uma Categoria</option>
        <?php
            $category = new category(); 
        	
            foreach($category->returnAllCategories() as $cat) {
                if ($cat['category_type'] == 'articles') {
                	if($article['category_id'] == $cat['id']) {$selected = 'SELECTED';} else {$selected = null;}
                    print '<option '.$selected.' value="'.$cat['id'].'">'.$cat['name_1'].'</option>';
                }
            }
        ?>
        </select>
        
        <div class="separator30"></div><commit_msg>Update article_edit.php<commit_after><div class="article-add">
    <?php if(isset($_REQUEST['i']) && !empty($_REQUEST['i'])){ ?>
    	<h1>Edit Article</h1>
        <?php if (!isset($_REQUEST['save'])) { ?>
        <form method="post">
    	<?php
    	$object_article = new article();
    	$object_article->setId(intval($_REQUEST['i']));
    	$article = $object_article->returnOneArticle();
    	?>
        <div class="separator30"></div>
        
        <div <?php if (!$configuration['lang_1_state']) {echo 'style="display: none;"';} ?>>
            <h2>Lingua 1</h2>
    		<span id="label">Titulo</span>
    		<input type="text" name="title_1" value="<?php print $article['title_1']; ?>"/>
    		<span id="label">Conteudo</span> 
    		<?php print returnEditor('content_1',$article['content_1']); ?>
            
            <div class="separator30"></div>
        </div>
        
        <div <?php if (!$configuration['lang_2_state']) {echo 'style="display: none;"';} ?>>
    		<h2>Lingua 2</h2>
    		<span id="label">Titulo</span>
    		<input type="text" name="title_2" value="<?php print $article['title_2']; ?>"/>
    		<span id="label">Conteudo</span> 
    		<?php print returnEditor('content_2',$article['content_2']); ?>
    		
            <div class="separator30"></div>
        </div>
        
        <div <?php if (!$configuration['lang_3_state']) {echo 'style="display: none;"';} ?>>
    		<h2>Lingua 3</h2>
    		<span id="label">Titulo</span>
    		<input type="text" name="title_3" value="<?php print $article['title_3']; ?>"/>
    		<span id="label">Conteudo</span> 
    		<?php print returnEditor('content_3',$article['content_3']); ?>
    		
            <div class="separator30"></div>
        </div>
        
        <div <?php if (!$configuration['lang_4_state']) {echo 'style="display: none;"';} ?>>
    		<h2>Lingua 4</h2>
    		<span id="label">Titulo</span>
    		<input type="text" name="title_4" value="<?php print $article['title_4']; ?>"/>
    		<span id="label">Conteudo</span> 
    		<?php print returnEditor('content_4',$article['content_4']); ?>
            
            <div class="separator30"></div>
        </div>
        
        <div <?php if (!$configuration['lang_5_state']) {echo 'style="display: none;"';} ?>>
    		<h2>Lingua 5</h2>
    		<span id="label">Titulo</span>
    		<input type="text" name="title_5" value="<?php print $article['title_5']; ?>"/>
    		<span id="label">Conteudo</span> 
    		<?php print returnEditor('content_5',$article['content_5']); ?>
            
            <div class="separator30"></div>
        </div>
        
        <div <?php if (!$configuration['lang_6_state']) {echo 'style="display: none;"';} ?>>
    		<h2>Lingua 6</h2>
    		<span id="label">Titulo</span>
    		<input type="text" name="title_6" value="<?php print $article['title_6']; ?>"/>
    		<span id="label">Conteudo</span> 
    		<?php print returnEditor('content_6',$article['content_6']); ?>
            
            <div class="separator30"></div>
        </div>
        
        <span id="label">Categoria</span>
        <?php  
        	
        ?>
        
        <select name="category">
            <option value="null">Selecione uma Categoria</option>
        <?php
            $category = new category(); 
        	
            foreach($category->returnAllCategories() as $cat) {
                if ($cat['category_type'] == 'articles') {
                	if($article['category_id'] == $cat['id']) {$selected = 'SELECTED';} else {$selected = null;}
                    print '<option '.$selected.' value="'.$cat['id'].'">'.$cat['name_1'].'</option>';
                }
            }
        ?>
        </select>
        
        <div class="separator30"></div>
{'fraction_non_alphanumeric': 0.21132075471698114, 'fraction_numerical': 0.018059299191374664, 'mean_word_length': 2.5004716981132074, 'pattern_counts': {'":': 0, '<': 213, '<?xml version=': 0, '>': 219, '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': '5309005', 'n_tokens_mistral': 2503, 'n_tokens_neox': 2454, 'n_words': 403}