<commit_before><?php

session_start();

include '../PHP/connect.php';
include '../PHP/GlobalVar.php';
include '../PHP/parsedown.php';

mysqli_set_charset($conn, 'utf8');

$Parsedown = new Parsedown();

if (!empty($_GET['id'])) {
  $id = mysqli_real_escape_string($conn, $_GET['id']);
  $id = htmlspecialchars($id, ENT_QUOTES, 'UTF-8');
} else {
  $id = 1;
}

$sql = "SELECT * FROM `articles` WHERE id='$id'";
$result = $conn->query($sql);

if ($result->num_rows > 0) {
  while($row = $result->fetch_assoc()) {
    $title = $row['title'];
    $lang = $row['lang'];
    $text = $row['text'];
  }
}

?>

<!DOCTYPE html>
<html>
<head>

<?php echo $GlobalHeadDistro; ?>

<script>
$( document ).ready(function() {
  $("pre code").addClass("prism").addClass("language-<?php echo strtolower($lang); ?>").prepend('\n').append('\n');
  $("pre").addClass("prism").addClass("language-<?php echo strtolower($lang); ?>");
});
</script>

</head>

<body>

<div class="bg header">
  <div class="container">
    <div class="inline menuNav">
      <div class="grid-1 logo-grid">
        <img src="../logo.png" class="logo img-responsive-max">
      </div>
      <div class="grid-11 nav-grid">
        <ul>
          <?php echo $globalNav; ?>
        </ul>
      </div>
    </div>
    <div class="grid-12 mt center">
      <h1 class="headerTitle"><?php echo $title; ?></h1>
      <h6 class="headerLanguage"><?php echo $lang; ?></h6>
    </div>
  </div>
</div>

<div class="container">
  <div class="grid-12" id="markdown-render-object">
<?php<commit_msg>Removed unnecessary JavaScript<commit_after><?php

session_start();

include '../PHP/connect.php';
include '../PHP/GlobalVar.php';
include '../PHP/parsedown.php';

mysqli_set_charset($conn, 'utf8');

$Parsedown = new Parsedown();

if (!empty($_GET['id'])) {
  $id = mysqli_real_escape_string($conn, $_GET['id']);
  $id = htmlspecialchars($id, ENT_QUOTES, 'UTF-8');
} else {
  $id = 1;
}

$sql = "SELECT * FROM `articles` WHERE id='$id'";
$result = $conn->query($sql);

if ($result->num_rows > 0) {
  while($row = $result->fetch_assoc()) {
    $title = $row['title'];
    $lang = $row['lang'];
    $text = $row['text'];
  }
}

?>

<!DOCTYPE html>
<html>
<head>

<?php echo $GlobalHeadDistro; ?>

<script>
$( document ).ready(function() {
  $("pre code").addClass("prism").prepend('\n').append('\n');
  $("pre").addClass("prism");
});
</script>

</head>

<body>

<div class="bg header">
  <div class="container">
    <div class="inline menuNav">
      <div class="grid-1 logo-grid">
        <img src="../logo.png" class="logo img-responsive-max">
      </div>
      <div class="grid-11 nav-grid">
        <ul>
          <?php echo $globalNav; ?>
        </ul>
      </div>
    </div>
    <div class="grid-12 mt center">
      <h1 class="headerTitle"><?php echo $title; ?></h1>
      <h6 class="headerLanguage"><?php echo $lang; ?></h6>
    </div>
  </div>
</div>

<div class="container">
  <div class="grid-12" id="markdown-render-object">
<?php
{'fraction_non_alphanumeric': 0.23916694659052737, 'fraction_numerical': 0.010077258985555929, 'mean_word_length': 3.588597842835131, 'pattern_counts': {'":': 0, '<': 73, '<?xml version=': 0, '>': 79, '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': '2789100', 'n_tokens_mistral': 1110, 'n_tokens_neox': 1099, 'n_words': 224}