<commit_before><?php
chdir('./..');
require_once('./config.php');
chdir('./script.js');


$supported_formats_remote=explode("\n", file_get_contents($clewnapiurl.'?listformats=true'));
$supported_formats_local=explode("\n", file_get_contents($serverapi.'?listformats=true'));



header('Content-Type: text/javascript');
?>
var infoselected=null;
var isplaying=-1;
var currenttarget='';
var currentclewn;
function play(target, id, isclewn, isautoplay = false){
	if (isclewn) {
			target='<?php echo $clewnaudiourl;?>'+encodeURI(target);
	}
	else  {
			target='<?php echo 'http://'.$server.'/z/';?>'+encodeURI(target);
	}
	currenttarget=target;
	currentclewn=isclewn;
	var player=document.getElementById('player');
	
	if (isplaying!=id){
		if (!isautoplay) 
		{	
			document.getElementById(id).innerHTML='■';	
	
		}
	isplaying=id;
	player.pause();
	player.innerHTML='';
	<?php if (in_array('ogg', $supported_formats_local)&&in_array('ogg', $supported_formats_local)) { ?>
	player.innerHTML+='<source type="application/ogg" src="'+target+'.ogg"/>';
	<?php }  if (in_array('mp3', $supported_formats_remote)&&in_array('mp3', $supported_formats_remote)) {?>
	player.innerHTML+='<source type="audio/mpeg" src="'+target+'.mp3"/>';
	<?php } ?>
	player.load();
	player.autoplay='autoplay';
	player.play();
	}
	
	else {
	document.getElementById(id).innerHTML='▶';	
	player.pause();
	player.currentTime=0;
	player.innerHTML=null;
	isplaying=-1;	<commit_msg>added support for SSL hosts<commit_after><?php
chdir('./..');
require_once('./config.php');
chdir('./script.js');


$supported_formats_remote=explode("\n", file_get_contents($clewnapiurl.'?listformats=true'));
$supported_formats_local=explode("\n", file_get_contents($serverapi.'?listformats=true'));



header('Content-Type: text/javascript');
?>
var infoselected=null;
var isplaying=-1;
var currenttarget='';
var currentclewn;
function play(target, id, isclewn, isautoplay = false){
	if (isclewn) {
			target='<?php echo $clewnaudiourl;?>'+encodeURI(target);
	}
	else  {
			target='<?php echo '//'.$server.'/z/';?>'+encodeURI(target);
	}
	currenttarget=target;
	currentclewn=isclewn;
	var player=document.getElementById('player');
	
	if (isplaying!=id){
		if (!isautoplay) 
		{	
			document.getElementById(id).innerHTML='■';	
	
		}
	isplaying=id;
	player.pause();
	player.innerHTML='';
	<?php if (in_array('ogg', $supported_formats_local)&&in_array('ogg', $supported_formats_local)) { ?>
	player.innerHTML+='<source type="application/ogg" src="'+target+'.ogg"/>';
	<?php }  if (in_array('mp3', $supported_formats_remote)&&in_array('mp3', $supported_formats_remote)) {?>
	player.innerHTML+='<source type="audio/mpeg" src="'+target+'.mp3"/>';
	<?php } ?>
	player.load();
	player.autoplay='autoplay';
	player.play();
	}
	
	else {
	document.getElementById(id).innerHTML='▶';	
	player.pause();
	player.currentTime=0;
	player.innerHTML=null;
	isplaying=-1;	
{'fraction_non_alphanumeric': 0.2081463583016914, 'fraction_numerical': 0.004142216085605799, 'mean_word_length': 6.527272727272727, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1414922', 'n_tokens_mistral': 1084, 'n_tokens_neox': 1045, 'n_words': 146}