<commit_before><?php

namespace MMC;

use Composer\Script\Event;

class Builder {


	public static function buildProject(Event $event) {
		$root = dirname(dirname(__DIR__));
		$composer = $event->getComposer();
		$io = $event->getIO();

		$io->write("<info>Restarting Apache</info>");
		shell_exec('sudo apachectl restart');

		$io->write("<info>Creating Database</info>");
		shell_exec("wp db create");

		$io->write("<info>Installing Wordpress Core</info>");
		// Get Site URL and Title
		$site_url = $io->ask("<info>What is the Site URL?</info>[<comment>project-name.dev</comment>]");
		$site_title = $io->ask("<info>What is the Site Title?</info>");
		shell_exec("wp core install --url=$site_url --title=$site_title --admin_user=wpadmin --admin_password=<PASSWORD> --admin_email=<EMAIL>");

		$io->write("<info>Setting up theme</info>");
		$theme = $io->ask("<info>Which theme would you like to use?[<comment>material, mmc</comment>]</info>", "material");
		shell_exec("wp theme activate " . $theme);

		$io->write("<info>Removing Default WP Stuff</info>");
		shell_exec("wp post delete $(wp post list --post_type='post' --format=ids)");<commit_msg>removing io->site_title, cant have space so just making it static<commit_after><?php

namespace MMC;

use Composer\Script\Event;

class Builder {


	public static function buildProject(Event $event) {
		$root = dirname(dirname(__DIR__));
		$composer = $event->getComposer();
		$io = $event->getIO();

		$io->write("<info>Restarting Apache</info>");
		shell_exec('sudo apachectl restart');

		$io->write("<info>Creating Database</info>");
		shell_exec("wp db create");

		$io->write("<info>Installing Wordpress Core</info>");
		// Get Site URL and Title
		$site_url = $io->ask("<info>What is the Site URL?</info>[<comment>project-name.dev</comment>]");
		shell_exec("wp core install --url=$site_url --title=NewProject --admin_user=wpadmin --admin_password=<PASSWORD> --admin_email=<EMAIL>");

		$io->write("<info>Setting up theme</info>");
		$theme = $io->ask("<info>Which theme would you like to use?[<comment>material, mmc</comment>]</info>", "material");
		shell_exec("wp theme activate " . $theme);

		$io->write("<info>Removing Default WP Stuff</info>");
		shell_exec("wp post delete $(wp post list --post_type='post' --format=ids)");
{'fraction_non_alphanumeric': 0.19554779572239198, 'fraction_numerical': 0.0, 'mean_word_length': 5.331491712707182, 'pattern_counts': {'":': 0, '<': 47, '<?xml version=': 0, '>': 65, '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': '5074762', 'n_tokens_mistral': 798, 'n_tokens_neox': 748, 'n_words': 172}