<commit_before><?php

/**
 *	APIwesome extension which removes the manual add functionality of the APIwesomeAdmin CMS interface.
 *	@author <NAME> <<EMAIL>>
 */

class APIwesomeAdminExtension extends Extension {

	/**
	 *	Remove the CMS add button.
	 */

	public function updateEditForm(&$form) {

		$gridfield = $form->fields->items[0];
		if(isset($gridfield)) {
			$configuration = $gridfield->config;
			$configuration->removeComponent($configuration->getComponentByType('GridFieldAddNewButton'));
		}
	}

}<commit_msg>Cleaned up a class definition.<commit_after><?php

/**
 *	APIwesome extension which removes the manual add functionality of the APIwesomeAdmin CMS interface.
 *	@author <NAME> <<EMAIL>>
 */

class APIwesomeAdminExtension extends Extension {

	/**
	 *	Remove the CMS add button.
	 */

	public function updateEditForm(&$form) {

		$gridfield = $form->fields->items[0];
		if(isset($gridfield)) {
			$configuration = $gridfield->config;
			$configuration->removeComponentsByType('GridFieldAddNewButton');
		}
	}

}
{'fraction_non_alphanumeric': 0.13372093023255813, 'fraction_numerical': 0.001937984496124031, 'mean_word_length': 4.707182320441989, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 18, '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': '4031598', 'n_tokens_mistral': 333, 'n_tokens_neox': 303, 'n_words': 74}