<commit_before><?php
class ComboiosDePortugalBridge extends BridgeAbstract {
	const NAME = 'CP | Avisos';
	const BASE_URI = 'https://www.cp.pt';
	const URI = self::BASE_URI . '/passageiros/pt';
	const DESCRIPTION = 'Comboios de Portugal | Avisos';
	const MAINTAINER = 'somini';

	public function collectData() {
		$html = getSimpleHTMLDOM($this->getURI() . '/consultar-horarios/avisos');

		foreach($html->find('.warnings-table a') as $element) {
			$item = array();

			$item['title'] = $element->innertext;
			$item['uri'] = self::BASE_URI . implode('/', array_map('urlencode', explode('/', $element->href)));

			$this->items[] = $item;
		}
	}
}<commit_msg>[ComboiosDePortugalBridge] Temporarily ignore certificate checks (#2403)<commit_after><?php
class ComboiosDePortugalBridge extends BridgeAbstract {
	const NAME = 'CP | Avisos';
	const BASE_URI = 'https://www.cp.pt';
	const URI = self::BASE_URI . '/passageiros/pt';
	const DESCRIPTION = 'Comboios de Portugal | Avisos';
	const MAINTAINER = 'somini';

	public function collectData() {
		# Do not verify SSL certificate (the server doesn't send the intermediate)
		# https://github.com/RSS-Bridge/rss-bridge/issues/2397
		$html = getSimpleHTMLDOM($this->getURI() . '/consultar-horarios/avisos', array(), array(
			CURLOPT_SSL_VERIFYPEER => 0,
		));

		foreach($html->find('.warnings-table a') as $element) {
			$item = array();

			$item['title'] = $element->innertext;
			$item['uri'] = self::BASE_URI . implode('/', array_map('urlencode', explode('/', $element->href)));

			$this->items[] = $item;
		}
	}
}
{'fraction_non_alphanumeric': 0.17943805874840357, 'fraction_numerical': 0.005747126436781609, 'mean_word_length': 4.636690647482014, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 14, 'https://': 3, 'lorem ipsum': 0, 'www.': 2, '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': '4651947', 'n_tokens_mistral': 582, 'n_tokens_neox': 532, 'n_words': 115}