<commit_before><?php
// The source code packaged with this file is Free Software, Copyright (C) 2005 by
// <NAME> <gallir at uib dot es>.
// It's licensed under the AFFERO GENERAL PUBLIC LICENSE unless stated otherwise.
// You can get copies of the licenses here:
//		http://www.affero.org/oagpl.html
// AFFERO GENERAL PUBLIC LICENSE is also included in the file called "COPYING".



/*****
// banners and credits funcions: FUNCTIONS TO ADAPT TO YOUR CONTRACTED ADS AND CREDITS
*****/


function do_banner_top () { // top banner
	global $globals, $dblang, $current_user;
//
// WARNING!
//
// IMPORTANT! adapt this section to your contracted banners!!
//
	if($globals['external_ads'] && $globals['ads']) {
		Haanga::Safe_Load('private/top.html');
	}

/*****
	if($globals['external_ads'] && $globals['ads']) {
		Haanga::Safe_Load('private/ad-top.html');
		//@include('ads/top.inc');
	} else {
		echo '<div class="banner-top">' . "\n";
		Haanga::Safe_Load('private/ad-meneame.html');
		//@include('ads/meneame-01.inc');
		echo '</div>' . "\n";
	}
*****/
}

function do_banner_top_mobile () { 
	global $globals, $dblang;
//
// WARNING!
//
// IMPORTANT! adapt this section to your contracted banners!!
//
	if($globals['ads']) {
		@include('ads/mobile-01.inc');
	}
}


function do_banner_right() { // side banner A
	global $globals, $current_user;

	if ($globals['mobile'] || ! $globals['ads']) return;
//
// WARNING!
//
// IMPORTANT! adapt this section to your contracted banners!!
//
	Haanga::Safe_Load('private/ad-right.html');
}

function do_banner_promotions() { 
	global $globals;

	if ($globals['mobile'] || ! $globals['ads']) return;

	Haanga::Safe_Load('private/promotions.html');
}

function do_banner_top_news() {
	global $globals;
	@include('ads/top-news.inc');
}

function do_banner_story() {
	global $globals, $current_user;
	if ($globals['ads']) {
		Haanga::Safe_Load('private/ad-middle.html');
	}
}

function do_legal($legal_name, $target = '', $show_abuse = true) {
	global $globals;
	// IMPORTANT: legal note only for our servers, CHANGE IT!!
	if ($globals['is_meneame']) {
		echo '<a href="'.$globals['legal'].'" '.$target.'>'.$legal_name.'</a>';
	} else {<commit_msg>Added top news<commit_after><?php
// The source code packaged with this file is Free Software, Copyright (C) 2005 by
// <NAME> <gallir at uib dot es>.
// It's licensed under the AFFERO GENERAL PUBLIC LICENSE unless stated otherwise.
// You can get copies of the licenses here:
//		http://www.affero.org/oagpl.html
// AFFERO GENERAL PUBLIC LICENSE is also included in the file called "COPYING".



/*****
// banners and credits funcions: FUNCTIONS TO ADAPT TO YOUR CONTRACTED ADS AND CREDITS
*****/


function do_banner_top () { // top banner
	global $globals, $dblang, $current_user;
//
// WARNING!
//
// IMPORTANT! adapt this section to your contracted banners!!
//
	if($globals['external_ads'] && $globals['ads']) {
		Haanga::Safe_Load('private/top.html');
	}

/*****
	if($globals['external_ads'] && $globals['ads']) {
		Haanga::Safe_Load('private/ad-top.html');
		//@include('ads/top.inc');
	} else {
		echo '<div class="banner-top">' . "\n";
		Haanga::Safe_Load('private/ad-meneame.html');
		//@include('ads/meneame-01.inc');
		echo '</div>' . "\n";
	}
*****/
}

function do_banner_top_mobile () { 
	global $globals, $dblang;
//
// WARNING!
//
// IMPORTANT! adapt this section to your contracted banners!!
//
	if($globals['ads']) {
		@include('ads/mobile-01.inc');
	}
}


function do_banner_right() { // side banner A
	global $globals, $current_user;

	if ($globals['mobile'] || ! $globals['ads']) return;
//
// WARNING!
//
// IMPORTANT! adapt this section to your contracted banners!!
//
	Haanga::Safe_Load('private/ad-right.html');
}

function do_banner_promotions() { 
	global $globals;

	if ($globals['mobile'] || ! $globals['ads']) return;

	Haanga::Safe_Load('private/promotions.html');
}

function do_banner_top_news() {
	global $globals;
	Haanga::Safe_Load('private/top-news.html');
}

function do_banner_story() {
	global $globals, $current_user;
	if ($globals['ads']) {
		Haanga::Safe_Load('private/ad-middle.html');
	}
}

function do_legal($legal_name, $target = '', $show_abuse = true) {
	global $globals;
	// IMPORTANT: legal note only for our servers, CHANGE IT!!
	if ($globals['is_meneame']) {
		echo '<a href="'.$globals['legal'].'" '.$target.'>'.$legal_name.'</a>';
	} else {
{'fraction_non_alphanumeric': 0.1925976696367375, 'fraction_numerical': 0.003655471784327165, 'mean_word_length': 4.193357058125741, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 15, 'https://': 0, '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': '5697199', 'n_tokens_mistral': 1645, 'n_tokens_neox': 1558, 'n_words': 368}