<commit_before><?php
/**
 * Template Name: Nike Layar Content
 * @package Snap
 */
/* look at header. If this is a layar device, or there is a debugging querystring, set $has_access to true;
otherwise set access to false and redirect user to 'no-access' page.
*/

?>
<?php
error_log(print_r($_SERVER, true));

$user_agent = $_SERVER['HTTP_USER_AGENT'];
if(strpos($user_agent,'Layar') !== false || isset($_GET['spoof']) || LC_ENVIRONMENT == 'development'){
    //this is a layar client
    $layar_client = true;
}
else{
	wp_redirect(home_url());
}
remove_action( 'init', 'wp_admin_bar_init' );

 get_header();
 global $post; 
 ?>
 <style type="text/css">
 html{
 	margin-top: 0 !important;
 }
 p{
 	margin:0;
 }
 </style>

<?php while ( have_posts() ) : the_post(); ?>
 <script type="text/javascript">
 var pageText = "<?php  echo get_the_content($post->ID); ?>";
 var appName = "<?php  echo get_field('app_name', $post->ID); ?>";<commit_msg>logged in users can see animations<commit_after><?php
/**
 * Template Name: <NAME>
 * @package Snap
 */
/* look at header. If this is a layar device, or there is a debugging querystring, set $has_access to true;
otherwise set access to false and redirect user to 'no-access' page.
*/

?>
<?php

$user_agent = $_SERVER['HTTP_USER_AGENT'];
if(strpos($user_agent,'Layar') !== false || isset($_GET['spoof']) || LC_ENVIRONMENT == 'development' || is_user_logged_in() == true){
    //this is a layar client
    $layar_client = true;
}
else{
	wp_redirect(home_url());
}
remove_action( 'init', 'wp_admin_bar_init' );

 get_header();
 global $post; 
 ?>
 <style type="text/css">
 html{
 	margin-top: 0 !important;
 }
 p{
 	margin:0;
 }
 </style>

<?php while ( have_posts() ) : the_post(); ?>
 <script type="text/javascript">
 var pageText = "<?php  echo get_the_content($post->ID); ?>";
 var appName = "<?php  echo get_field('app_name', $post->ID); ?>";
{'fraction_non_alphanumeric': 0.179745493107105, 'fraction_numerical': 0.0021208907741251328, 'mean_word_length': 4.616071428571429, 'pattern_counts': {'":': 0, '<': 20, '<?xml version=': 0, '>': 24, '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': '5392816', 'n_tokens_mistral': 683, 'n_tokens_neox': 660, 'n_words': 181}