<commit_before>#!/usr/bin/php
<?php

$filepath = __DIR__ . '/../../composer.json';
file_put_contents(
	$filepath,
	preg_replace(
		'(,\\s*"scripts"[^}]+\\})',
		'',
		preg_replace(
			'(("php":\\s*"\\D*)[.\\d]++)',
			'${1}' . $_SERVER['argv'][1],
			file_get_contents($filepath)
		)
	)
);<commit_msg>Updated build script<commit_after>#!/usr/bin/php
<?php

$match   = ['(,\\s*"scripts"[^}]+\\})'];
$replace = [''];

if (isset($_SERVER['argv'][1]))
{
	$match[]   = '(("php":\\s*"\\D*)[.\\d]++)';
	$replace[] = '${1}' . $_SERVER['argv'][1];
}

$filepath = __DIR__ . '/../../composer.json';
file_put_contents($filepath, preg_replace($match, $replace, file_get_contents($filepath)));
{'fraction_non_alphanumeric': 0.3284241531664212, 'fraction_numerical': 0.007363770250368188, 'mean_word_length': 4.271317829457364, 'pattern_counts': {'":': 2, '<': 5, '<?xml version=': 0, '>': 3, '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': '2952704', 'n_tokens_mistral': 298, 'n_tokens_neox': 285, 'n_words': 35}