<commit_before><?php

add_filter( 'plugin_action_links', array('TimberAdmin', 'settings_link'), 10, 2 );

class TimberAdmin {

	function __construct() {
		if (!is_admin()) {
			return;
		}
		if (isset($_POST['hide_timber_admin_menu'])){
			update_option('hide_timber_admin_menu', true);
			header('Location: '.get_admin_url());
		}
		add_action('admin_menu', array(&$this, 'create_menu'));
		add_action('admin_enqueue_scripts', array(&$this, 'load_styles'));
	}

	function settings_link( $links, $file ) {
		if (strstr($file, 'timber')){
		    return array_merge(
		        array(
		            'settings' => '<a href="' . get_bloginfo( 'wpurl' ) . '/wp-admin/themes.php?page=timber-getting-started">Starter Guide</a>'
		        ),
		        $links
		    );
		}<commit_msg>Relocate add_filter call to within constructor method<commit_after><?php

class TimberAdmin {

	function __construct() {
		if (!is_admin()) {
			return;
		}
		if (isset($_POST['hide_timber_admin_menu'])){
			update_option('hide_timber_admin_menu', true);
			header('Location: '.get_admin_url());
		}
		add_action('admin_menu', array(&$this, 'create_menu'));
		add_action('admin_enqueue_scripts', array(&$this, 'load_styles'));
		add_filter( 'plugin_action_links', array(&$this, 'settings_link'), 10, 2 );
	}

	function settings_link( $links, $file ) {
		if (strstr($file, 'timber')){
		    return array_merge(
		        array(
		            'settings' => '<a href="' . get_bloginfo( 'wpurl' ) . '/wp-admin/themes.php?page=timber-getting-started">Starter Guide</a>'
		        ),
		        $links
		    );
		}
{'fraction_non_alphanumeric': 0.17468354430379746, 'fraction_numerical': 0.0037974683544303796, 'mean_word_length': 3.909937888198758, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '2720779', 'n_tokens_mistral': 604, 'n_tokens_neox': 533, 'n_words': 94}