<commit_before><?php
# Linux Day 2016 - Single conference page
# Copyright (C) 2016 <NAME>, <NAME>, <NAME>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

require 'load.php';

$conference = null;
if( ! empty( $_GET['uid'] ) ) {
	$conference = Conference::getConference(
		luser_input( $_GET['uid'], 64 )
	);
}

$conference
	|| die_with_404();

enqueue_js('leaflet');
enqueue_js('leaflet.init');
enqueue_js('scrollfire');
enqueue_css('leaflet');
enqueue_css('home');

// Support for non-JavaScript
inject_in_module('header', function() {
	echo "\n\t<noscript><style>#map {display: none}</style></noscript>";
} );

new Header('conference', [
	'show-title' => false,
	'head-title' => $s = $conference->getConferenceTitle(),
	'title'      => $s,
	'url'        => $conference->getConferenceURL()
] );
?>
	<div class="header">
		<div class="center-align">
			<h1><?php echo HTML::a(
				$conference->getConferenceURL(),
				strtoupper( SITE_NAME ),
				null,
				TEXT
			) ?></h1>
		</div>
	</div>
	<div class="section">
		<div class="row valign-wrapper">
			<div class="col s12 m2 l1 center-align hide-on-small-only">
				<img src="<?php echo XXX ?>/linuxday-200.png" alt="<?php _e("Linux Day 2016") ?>" class="responsive-img" />
			</div>
			<div class="col s12 m10 l11">
				<p class="flow-text"><?php printf(
					_(
						"Il Linux Day è la principale manifestazione italiana di promozione di software libero e sistemi operativi %s/%s. ".
						"Quest'anno a Torino si terrà nel <strong>%s</strong> dell'%s, di <strong>%s</strong>, il <strong>%s</strong>, ".
						"dalle <strong>%s</strong> alle <strong>%s</strong>."
					),
					HTML::a(
						_('https://it.wikipedia.org/wiki/GNU'),
						'GNU',
						null,
						'black-text hoverable'
					),
					HTML::a(
						_('https://it.wikipedia.org/wiki/Linux_%28kernel%29'),
						'Linux',
						null,
						'black-text hoverable'
					),
					_("Dipartimento di Informatica"),
					_("Università degli studi di Torino"),
					_("sabato"),
					_("22 ottobre 2016"),
					$conference->getConferenceStart("H:i"),
					$conference->getConferenceEnd("H:i")
				) ?></p>
			</div>
		</div>
		<div class="row">
			<div class="col s12 m8">
				<blockquote class="flow-text">
					// How to write good code<br />
					<strong>$software</strong>: 
					function(<span class="yellow hoverable">play</span>, 
					<span class="blue lighten-3 hoverable">freedom</span>, 
					<span class="orange hoverable">friends</span>) { /* RTFM */ }
				</blockquote>
			</div>
			<div class="col s12 m4">
				<p class="flow-text"><?php _e("Il tema di quest'anno a livello nazionale è... il <code>coding</code>!") ?></p>
			</div>
		</div>
	</div>
	<div id="where" class="divider" data-show="#where-section"></div>
	<div id="where-section" class="section" id="where-section">
		<h3><?php _e("Come arrivare") ?></h3>
		<div class="row">
			<div class="col s12 m4">
				<p class="flow-text"><?php echo $conference->getLocationName() ?></p>
				<p class="flow-text"><?php echo $conference->getLocationNote() ?></p>
			</div>
			<div class="col s10 m8">
				<div class="card-panel">
					<?php $conference->printLocationLeaflet() ?>
					<noscript>
						<img class="responsive-img" src="<?php echo $conference->getLocationGeothumb() ?>" alt="<?php _esc_html( $conference->getLocationName() ) ?>">
						<p><?php _e("Abilitare JavaScript per la mappa interattiva.") ?></p>
					</noscript>
					<div class="row valign-wrapper">
						<div class="col s8">
							<p class="flow-text"><?php echo $conference->getLocationAddress() ?></p>
						</div>
						<div class="col s4">
							<p class="right"><?php echo HTML::a(
								$conference->getLocationGeoOSM(),
								icon('place', 'right'),
								sprintf(
									_("Vedi %s su OpenStreetMap"),
									esc_html( $conference->getConferenceTitle() )
								),
								'btn-floating btn-large purple darken-3 waves-effect',
								'target="_blank"'
							) ?></p><commit_msg>HTML typo in index.php<commit_after><?php
# Linux Day 2016 - Single conference page
# Copyright (C) 2016 <NAME>, <NAME>, Rosario Antoci
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

require 'load.php';

$conference = null;
if( ! empty( $_GET['uid'] ) ) {
	$conference = Conference::getConference(
		luser_input( $_GET['uid'], 64 )
	);
}

$conference
	|| die_with_404();

enqueue_js('leaflet');
enqueue_js('leaflet.init');
enqueue_js('scrollfire');
enqueue_css('leaflet');
enqueue_css('home');

// Support for non-JavaScript
inject_in_module('header', function() {
	echo "\n\t<noscript><style>#map {display: none}</style></noscript>";
} );

new Header('conference', [
	'show-title' => false,
	'head-title' => $s = $conference->getConferenceTitle(),
	'title'      => $s,
	'url'        => $conference->getConferenceURL()
] );
?>
	<div class="header">
		<div class="center-align">
			<h1><?php echo HTML::a(
				$conference->getConferenceURL(),
				strtoupper( SITE_NAME ),
				null,
				TEXT
			) ?></h1>
		</div>
	</div>
	<div class="section">
		<div class="row valign-wrapper">
			<div class="col s12 m2 l1 center-align hide-on-small-only">
				<img src="<?php echo XXX ?>/linuxday-200.png" alt="<?php _e("Linux Day 2016") ?>" class="responsive-img" />
			</div>
			<div class="col s12 m10 l11">
				<p class="flow-text"><?php printf(
					_(
						"Il Linux Day è la principale manifestazione italiana di promozione di software libero e sistemi operativi %s/%s. ".
						"Quest'anno a Torino si terrà nel <strong>%s</strong> dell'%s, di <strong>%s</strong>, il <strong>%s</strong>, ".
						"dalle <strong>%s</strong> alle <strong>%s</strong>."
					),
					HTML::a(
						_('https://it.wikipedia.org/wiki/GNU'),
						'GNU',
						null,
						'black-text hoverable'
					),
					HTML::a(
						_('https://it.wikipedia.org/wiki/Linux_%28kernel%29'),
						'Linux',
						null,
						'black-text hoverable'
					),
					_("Dipartimento di Informatica"),
					_("Università degli studi di Torino"),
					_("sabato"),
					_("22 ottobre 2016"),
					$conference->getConferenceStart("H:i"),
					$conference->getConferenceEnd("H:i")
				) ?></p>
			</div>
		</div>
		<div class="row">
			<div class="col s12 m8">
				<blockquote class="flow-text">
					// How to write good code<br />
					<strong>$software</strong>: 
					function(<span class="yellow hoverable">play</span>, 
					<span class="blue lighten-3 hoverable">freedom</span>, 
					<span class="orange hoverable">friends</span>) { /* RTFM */ }
				</blockquote>
			</div>
			<div class="col s12 m4">
				<p class="flow-text"><?php _e("Il tema di quest'anno a livello nazionale è... il <code>coding</code>!") ?></p>
			</div>
		</div>
	</div>
	<div id="where" class="divider" data-show="#where-section"></div>
	<div id="where-section" class="section">
		<h3><?php _e("Come arrivare") ?></h3>
		<div class="row">
			<div class="col s12 m4">
				<p class="flow-text"><?php echo $conference->getLocationName() ?></p>
				<p class="flow-text"><?php echo $conference->getLocationNote() ?></p>
			</div>
			<div class="col s10 m8">
				<div class="card-panel">
					<?php $conference->printLocationLeaflet() ?>
					<noscript>
						<img class="responsive-img" src="<?php echo $conference->getLocationGeothumb() ?>" alt="<?php _esc_html( $conference->getLocationName() ) ?>">
						<p><?php _e("Abilitare JavaScript per la mappa interattiva.") ?></p>
					</noscript>
					<div class="row valign-wrapper">
						<div class="col s8">
							<p class="flow-text"><?php echo $conference->getLocationAddress() ?></p>
						</div>
						<div class="col s4">
							<p class="right"><?php echo HTML::a(
								$conference->getLocationGeoOSM(),
								icon('place', 'right'),
								sprintf(
									_("Vedi %s su OpenStreetMap"),
									esc_html( $conference->getConferenceTitle() )
								),
								'btn-floating btn-large purple darken-3 waves-effect',
								'target="_blank"'
							) ?></p>
{'fraction_non_alphanumeric': 0.17919772029811487, 'fraction_numerical': 0.013371328364752301, 'mean_word_length': 3.451219512195122, 'pattern_counts': {'":': 0, '<': 198, '<?xml version=': 0, '>': 232, 'https://': 4, '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': '2074694', 'n_tokens_mistral': 3747, 'n_tokens_neox': 3072, 'n_words': 802}