<commit_before><?php
 include_once("../config.php");
 include_once("../classes/database.php");
 include_once("../classes/messages.php");	
 include_once("../classes/functions.php"); 
 include_once("../classes/login.php");
 $login = Login::GetLogin();
 if (!$login->IsLogged())
 {
	header("Location: ../index.php");
	die(); // solve a security bug
 }
 if ($_GET['item']!="uploadmgr")	exit();
 $db = Database::GetDatabase();
 $overall_error = false;
 // in this variable save string bit of pics folders
 $pic_fldr_bit_addr = array("researchpics"=>0,
                            "Reconstructpics"=>0,
							"constructpics"=>0,
  						    "userspics"=>0,
							"slidespics"=>0,
							"gallerypics"=>0);
 $pic_fldrs = array("researchpics","reconstructpics","constructpics","userspics","slidespics","gallerypics");
 $fa_pic_fldrs = array("تحقیقات","بازسازی","ساخت","کاربران","اسلایدها","گالری تصاویر");
  for($i=0;$i<count($_POST['picsaddr']);$i++)
  {
	if ($_POST['picsaddr'][$i]=="researchpics") {$pic_fldr_bit_addr["researchpics"]= 1;}
	if ($_POST['picsaddr'][$i]=="reconstructpics") {$pic_fldr_bit_addr["reconstructpics"]= 1;}
	if ($_POST['picsaddr'][$i]=="constructpics") {$pic_fldr_bit_addr["constructpics"]= 1;}
	if ($_POST['picsaddr'][$i]=="userspics") {$pic_fldr_bit_addr["userspics"]= 1;}
	if ($_POST['picsaddr'][$i]=="slidespics") {$pic_fldr_bit_addr["slidespics"]= 1;}	  
	if ($_POST['picsaddr'][$i]=="gallerypics") {$pic_fldr_bit_addr["gallerypics"]= 1;}	  
  }	  
  $str = "";
 foreach($pic_fldr_bit_addr as $key=>$val) {$str .= $val;}
 if (isset($_POST["mark"]) and $_POST["mark"]!="srhnews" and $_POST["mark"]!="editfile")
 { 
	if((!empty($_FILES["pic"])) && ($_FILES['pic']['error'] == 0))
   {<commit_msg>fix a little error<commit_after><?php
 include_once("../config.php");
 include_once("../classes/database.php");
 include_once("../classes/messages.php");	
 include_once("../classes/functions.php"); 
 include_once("../classes/login.php");
 $login = Login::GetLogin();
 if (!$login->IsLogged())
 {
	header("Location: ../index.php");
	die(); // solve a security bug
 }
 if ($_GET['item']!="uploadmgr")	exit();
 $db = Database::GetDatabase();
 $overall_error = false;
 // in this variable save string bit of pics folders
 $pic_fldr_bit_addr = array("researchpics"=>0,
                            "reconstructpics"=>0,
							"constructpics"=>0,
  						    "userspics"=>0,
							"slidespics"=>0,
							"gallerypics"=>0);
 $pic_fldrs = array("researchpics","reconstructpics","constructpics","userspics","slidespics","gallerypics");
 $fa_pic_fldrs = array("تحقیقات","بازسازی","ساخت","کاربران","اسلایدها","گالری تصاویر");
  for($i=0;$i<count($_POST['picsaddr']);$i++)
  {
	if ($_POST['picsaddr'][$i]=="researchpics") {$pic_fldr_bit_addr["researchpics"]= 1;}
	if ($_POST['picsaddr'][$i]=="reconstructpics") {$pic_fldr_bit_addr["reconstructpics"]= 1;}
	if ($_POST['picsaddr'][$i]=="constructpics") {$pic_fldr_bit_addr["constructpics"]= 1;}
	if ($_POST['picsaddr'][$i]=="userspics") {$pic_fldr_bit_addr["userspics"]= 1;}
	if ($_POST['picsaddr'][$i]=="slidespics") {$pic_fldr_bit_addr["slidespics"]= 1;}	  
	if ($_POST['picsaddr'][$i]=="gallerypics") {$pic_fldr_bit_addr["gallerypics"]= 1;}	  
  }	  
  $str = "";
 foreach($pic_fldr_bit_addr as $key=>$val) {$str .= $val;}
 if (isset($_POST["mark"]) and $_POST["mark"]!="srhnews" and $_POST["mark"]!="editfile")
 { 
	if((!empty($_FILES["pic"])) && ($_FILES['pic']['error'] == 0))
   {
{'fraction_non_alphanumeric': 0.2455732946298984, 'fraction_numerical': 0.008127721335268505, 'mean_word_length': 5.864541832669323, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 19, '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': '3475201', 'n_tokens_mistral': 1468, 'n_tokens_neox': 1369, 'n_words': 173}