<commit_before><!doctype html>
<html lang="en" class="no-js">

<?php require_once('partials/header.php'); ?> 

<body>
	
	<?php require_once('partials/brand.php'); ?> 

	<div class="ts-main-content">
		<?php require_once('partials/nav.php'); ?> 

		<div class="content-wrapper">
			<div class="container-fluid">
				<div class="row">
					<div class="col-md-12">
						<h2 class="page-title">Network</h2>
					</div>
				</div>
						
				<div class="panel panel-default">
					<div class="panel-heading">
						Network Status since <?php echo getUptime(); ?>
					</div>
					<div class="panel-body">
						<div class="row">
							<div class="col-md-12">
								<ul>
									<li>
										<i class="fa fa-angle-double-right"></i>
										<strong>Public IP:</strong> <?php echo getPublicIP(); ?>
									</li>

									<li>
										<i class="fa fa-angle-double-right"></i>
										<strong>Donwloaded:</strong> <?php echo getNetwork("D"); ?>
									</li>

									<li>
										<i class="fa fa-angle-double-right"></i>
										<strong>Uploaded:</strong> <?php echo getNetwork("U"); ?>
									</li>
								</ul>
							</div>
						</div>
					</div>
				</div>

				<div class="panel panel-default">
					<div class="panel-heading">
						Active Donwloads
					</div>
					<div class="panel-body">
						<div class="row">
							<div class="col-md-12">

								<?php 
									$ad = getDownloads();

									if ($ad > 0) { 
										$dwn = getDownloadsName();
										echo "<ul>";
										for ($i = 1; $i <= count($dwn) - 2; $i++) {
    										echo "<li><i class=\"fa fa-angle-double-right\"></i>" . str_replace("-rwxrwxrwx 1 root root", "", $dwn[$i]) . "</li>";
										}
										echo "</ul>";
									}else{
										echo "No downloads in progress.";
									}
								?>
							</div>
						</div>
					</div><commit_msg>bugfixes on show dwonloading files<commit_after><!doctype html>
<html lang="en" class="no-js">

<?php require_once('partials/header.php'); ?> 

<body>
	
	<?php require_once('partials/brand.php'); ?> 

	<div class="ts-main-content">
		<?php require_once('partials/nav.php'); ?> 

		<div class="content-wrapper">
			<div class="container-fluid">
				<div class="row">
					<div class="col-md-12">
						<h2 class="page-title">Network</h2>
					</div>
				</div>
						
				<div class="panel panel-default">
					<div class="panel-heading">
						Network Status since <?php echo getUptime(); ?>
					</div>
					<div class="panel-body">
						<div class="row">
							<div class="col-md-12">
								<ul>
									<li>
										<i class="fa fa-angle-double-right"></i>
										<strong>Public IP:</strong> <?php echo getPublicIP(); ?>
									</li>

									<li>
										<i class="fa fa-angle-double-right"></i>
										<strong>Donwloaded:</strong> <?php echo getNetwork("D"); ?>
									</li>

									<li>
										<i class="fa fa-angle-double-right"></i>
										<strong>Uploaded:</strong> <?php echo getNetwork("U"); ?>
									</li>
								</ul>
							</div>
						</div>
					</div>
				</div>

				<div class="panel panel-default">
					<div class="panel-heading">
						Active Donwloads
					</div>
					<div class="panel-body">
						<div class="row">
							<div class="col-md-12">

								<?php 
									$ad = getDownloads();
									$per = "-rwxrwxrwx 1 root root";
									$perd = "drwxrwxrwx 1 root root";
									$ico = "<i class=\"fa fa-angle-double-right\"></i> ";

									if ($ad > 0) { 
										$dwn = getDownloadsName();

										echo "<ul>";
										for ($i = 1; $i <= count($dwn) - 2; $i++) {
											if (strpos($dwn[$i], $perd) !== false) {
												echo "<li>" . $ico . str_replace($perd, "", $dwn[$i]) . "</li>";
											} else {
												echo "<li>" . $ico . str_replace($per, "", $dwn[$i]) . "</li>";
											}    										
										}
										echo "</ul>";
									}else{
										echo "No downloads in progress.";
									}
								?>
							</div>
						</div>
					</div>
{'fraction_non_alphanumeric': 0.20354203043152905, 'fraction_numerical': 0.006235969069593414, 'mean_word_length': 1.819971870604782, 'pattern_counts': {'":': 0, '<': 137, '<?xml version=': 0, '>': 137, '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': '4170453', 'n_tokens_mistral': 2148, 'n_tokens_neox': 1349, 'n_words': 284}