<commit_before><?php
/**
 * Run PHP Code
 * 
 * This script gives you the ability to quickly test snippets of PHP code locally.
 *
 * @copyright  Copyright 2011-2012, Website Duck LLC (http://www.websiteduck.com)
 * @link       http://github.com/websiteduck/Run-PHP-Code Run PHP Code
 * @license    MIT License (http://www.opensource.org/licenses/mit-license.php)
 */
if (!in_array($_SERVER['REMOTE_ADDR'], array('127.0.0.1', '::1'))) die('dead');

define('NL', PHP_EOL);

if (isset($_POST['phprun_action']) && $_POST['phprun_action'] == 'download') {
	if (substr($_POST['phprun_filename'], -4) !== '.php') $_POST['phprun_filename'] .= '.php';
	header('Content-Type: text/plain');
	header('Content-Disposition: attachment; filename=' . $_POST['phprun_filename']);
	echo $_POST['phprun_code'];
	die();
}

if (isset($_POST['phprun_action']) && $_POST['phprun_action'] == 'run') {
	header('Expires: Mon, 16 Apr 2012 05:00:00 GMT');
	header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); 
	header('Cache-Control: no-store, no-cache, must-revalidate'); <commit_msg>Add run locally comment<commit_after><?php
/**
 * Run PHP Code
 * 
 * This script gives you the ability to quickly test snippets of PHP code locally.
 *
 * @copyright  Copyright 2011-2012, Website Duck LLC (http://www.websiteduck.com)
 * @link       http://github.com/websiteduck/Run-PHP-Code Run PHP Code
 * @license    MIT License (http://www.opensource.org/licenses/mit-license.php)
 */
 
//This application is meant to be run locally and should not be made publicly accessible.
if (!in_array($_SERVER['REMOTE_ADDR'], array('127.0.0.1', '::1'))) die();

define('NL', PHP_EOL);

if (isset($_POST['phprun_action']) && $_POST['phprun_action'] == 'download') {
	if (substr($_POST['phprun_filename'], -4) !== '.php') $_POST['phprun_filename'] .= '.php';
	header('Content-Type: text/plain');
	header('Content-Disposition: attachment; filename=' . $_POST['phprun_filename']);
	echo $_POST['phprun_code'];
	die();
}

if (isset($_POST['phprun_action']) && $_POST['phprun_action'] == 'run') {
	header('Expires: Mon, 16 Apr 2012 05:00:00 GMT');
	header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); 
	header('Cache-Control: no-store, no-cache, must-revalidate'); 
{'fraction_non_alphanumeric': 0.20188003581020592, 'fraction_numerical': 0.025067144136078783, 'mean_word_length': 4.912698412698413, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2512793', 'n_tokens_mistral': 821, 'n_tokens_neox': 763, 'n_words': 182}