<commit_before><?php
/**
 * @name      OpenImporter
 * @copyright OpenImporter contributors
 * @license   BSD http://opensource.org/licenses/BSD-3-Clause
 *
 * @version 1.0 Alpha
 *
 * This file contains code based on:
 *
 * Simple Machines Forum (SMF)
 * copyright:	2011 Simple Machines (http://www.simplemachines.org)
 * license:	BSD, See included LICENSE.TXT for terms and conditions.
 */

@set_time_limit(600);
@set_exception_handler(array('import_exception', 'exception_handler'));
@set_error_handler(array('import_exception', 'error_handler_callback'), E_ALL);

$import = new Importer();

// XML ajax feedback? We can just skip everything else
if (isset($_GET['xml']))
{
	$import->template->xml();
	die();
}

if (method_exists($import, 'doStep' . $_GET['step']))
	call_user_func(array($import, 'doStep' . $_GET['step']));

/**
 * Object Importer creates the main XML object.
 * It detects and initializes the script to run.
 * It handles all steps to completion.
 *
 */
class Importer
{
	/**
	 * main database object
	 * @var object
	 */
	public $db;

	/**
	 * our cookie settings
	 * @var object
	 */
	public $cookie;

	/**
	 * the template
	 * @var object
	 */
	public $template;

	/**
	 * an array of possible importer scripts
	 * @var array
	 */
	public $possible_scripts;

	/**
	 * prefix for our destination database
	 * @var type
	 */
	public $to_prefix;

	/**
	 * prefix for our source database
	 * @var type
	 */
	public $from_prefix;

	/**
	 * used to decide if the database query is INSERT or INSERT IGNORE
	 * @var type
	 */
	private $ignore = true;

	/**
	 * use to switch between INSERT and REPLACE
	 * @var type
	 */
	private $replace = false;

	/**
	 *
	 * @var string The importer script which will be used for the import.
	 */
	private $_script = false;<commit_msg>some doc changes. Signed-off-by:<NAME> <<EMAIL>><commit_after><?php
/**
 * @name      OpenImporter
 * @copyright OpenImporter contributors
 * @license   BSD http://opensource.org/licenses/BSD-3-Clause
 *
 * @version 1.0 Alpha
 *
 * This file contains code based on:
 *
 * Simple Machines Forum (SMF)
 * copyright:	2011 Simple Machines (http://www.simplemachines.org)
 * license:	BSD, See included LICENSE.TXT for terms and conditions.
 */

@set_time_limit(600);
@set_exception_handler(array('import_exception', 'exception_handler'));
@set_error_handler(array('import_exception', 'error_handler_callback'), E_ALL);

$import = new Importer();

// XML ajax feedback? We can just skip everything else
if (isset($_GET['xml']))
{
	$import->template->xml();
	die();
}

if (method_exists($import, 'doStep' . $_GET['step']))
	call_user_func(array($import, 'doStep' . $_GET['step']));

/**
 * Object Importer creates the main XML object.
 * It detects and initializes the script to run.
 * It handles all steps to completion.
 *
 */
class Importer
{
	/**
	 * This is our main database object.
	 * @var object
	 */
	public $db;

	/**
	 * Our cookie settings
	 * @var object
	 */
	public $cookie;

	/**
	 * The template, basically our UI.
	 * @var object
	 */
	public $template;

	/**
	 * An array of possible importer scripts
	 * @var array
	 */
	public $possible_scripts;

	/**
	 * The table prefix for our destination database
	 * @var string
	 */
	public $to_prefix;

	/**
	 * The table prefix for our source database
	 * @var string
	 */
	public $from_prefix;

	/**
	 * Used to decide if the database query is INSERT or INSERT IGNORE
	 * @var boolean
	 */
	private $ignore = true;

	/**
	 * Used to switch between INSERT and REPLACE
	 * @var boolean
	 */
	private $replace = false;

	/**
	 *
	 * @var string The importer script which will be used for the import.
	 */
	private $_script = false;
{'fraction_non_alphanumeric': 0.13520130576713818, 'fraction_numerical': 0.00544069640914037, 'mean_word_length': 3.462378640776699, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 10, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 4}, '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': '1313285', 'n_tokens_mistral': 1227, 'n_tokens_neox': 1123, 'n_words': 373}