<commit_before><?php
class HentaiHavenBridge extends BridgeAbstract {

	const MAINTAINER = 'albirew';
	const NAME = '<NAME>';
	const URI = 'https://hentaihaven.org/';
	const CACHE_TIMEOUT = 21600; // 6h
	const DESCRIPTION = 'Returns releases from Hentai Haven';

	public function collectData(){
		$html = getSimpleHTMLDOM(self::URI);

		foreach($html->find('div.zoe-grid') as $element) {
			$item = array();
			$item['uri'] = $element->find('div.brick-content h3 a', 0)->href;
			$thumbnailUri = $element->find('a.thumbnail-image img', 0)->getAttribute('data-src');
			$item['title'] = mb_convert_encoding(
				trim($element->find('div.brick-content h3 a', 0)->innertext),
				'UTF-8',
				'HTML-ENTITIES'
			);

			$item['tags'] = $element->find('div.oFlyout_bg div.oFlyout div.flyoutContent span.tags', 0)->plaintext;
			$item['content'] = 'Tags: '
			. $item['tags']
			. '<br><br><a href="'
			. $item['uri']
			. '"><img width="300" height="169" src="'
			. $thumbnailUri
			. '" /></a><br>'
			. $element->find('div.oFlyout_bg div.oFlyout div.flyoutContent p.description', 0)->innertext;

			$this->items[] = $item;
		}
	}
}
<commit_msg>[HentaiHavenBridge] domain and content retrieval update (#2402)<commit_after><?php
class HentaiHavenBridge extends BridgeAbstract {

	const MAINTAINER = 'albirew';
	const NAME = '<NAME>';
	const URI = 'https://hentaihaven.com/';
	const CACHE_TIMEOUT = 21600; // 6h
	const DESCRIPTION = 'Returns releases from Hentai Haven';

	public function collectData(){
		$html = getSimpleHTMLDOM(self::URI);

		foreach($html->find('div.zoe-grid') as $element) {
			$item = array();
			$item['uri'] = $element->find('div.brick-content h3 a', 0)->href;
			$thumbnailUri = $element->find('a.thumbnail-image img', 0)->getAttribute('src');
			$item['title'] = mb_convert_encoding(
				trim($element->find('div.brick-content h3 a', 0)->innertext),
				'UTF-8',
				'HTML-ENTITIES'
			);

			$item['tags'] = $element->find('div.oFlyout_bg div.oFlyout div.flyoutContent span.tags', 0)->plaintext;
			$item['content'] = 'Tags: '
			. $item['tags']
			. '<br><br><a href="'
			. $item['uri']
			. '"><img width="300" height="169" src="'
			. $thumbnailUri
			. '" /></a><br>'
			. $element->find('div.oFlyout_bg div.oFlyout div.flyoutContent p.description', 0)->innertext;

			$this->items[] = $item;
		}
	}
}

{'fraction_non_alphanumeric': 0.20506220506220507, 'fraction_numerical': 0.018876018876018877, 'mean_word_length': 4.069565217391304, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 41, 'https://': 2, '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': '4912199', 'n_tokens_mistral': 986, 'n_tokens_neox': 840, 'n_words': 160}