<commit_before><?php

class Drupal extends DetectCMS {

	public $methods = array(
		/*
		"changelog",
		"changelog_d8",
		"generator_header",
		"generator_meta",
		"node_css",
		*/
		"settings_json"
	);

	public $home_html = "";
	public $home_headers = array();
	public $url = "";

	function __construct($home_html, $home_headers, $url) {
                $this->home_html = $home_html;
                $this->home_headers = $home_headers;
		$this->url = $url;
        }

	/**
	 * See if CHANGELOG.TXT exists, and check for Drupal
	 * @return [boolean]
	 */
	public function changelog() {

		if($data = $this->fetch($this->url."/CHANGELOG.txt")) {

			/**
			 * Changelog always starts from the second line
			 */
			$lines = explode(PHP_EOL, $data);
<commit_msg>Remove comments in Drupal detection<commit_after><?php

class Drupal extends DetectCMS {

	public $methods = array(
		"changelog",
		"changelog_d8",
		"generator_header",
		"generator_meta",
		"node_css",
		"settings_json"
	);

	public $home_html = "";
	public $home_headers = array();
	public $url = "";

	function __construct($home_html, $home_headers, $url) {
                $this->home_html = $home_html;
                $this->home_headers = $home_headers;
		$this->url = $url;
        }

	/**
	 * See if CHANGELOG.TXT exists, and check for Drupal
	 * @return [boolean]
	 */
	public function changelog() {

		if($data = $this->fetch($this->url."/CHANGELOG.txt")) {

			/**
			 * Changelog always starts from the second line
			 */
			$lines = explode(PHP_EOL, $data);

{'fraction_non_alphanumeric': 0.15364583333333334, 'fraction_numerical': 0.0013020833333333333, 'mean_word_length': 3.0341207349081363, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, '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': '3349165', 'n_tokens_mistral': 575, 'n_tokens_neox': 523, 'n_words': 116}