<commit_before><?php

define('IN_MYU2RSS', 1);

require_once('./config.inc.php');
require_once('./common.php');

function getTorrentInfo($torrenthtml)
{
  if (!preg_match('/<table class="torrentname".*?>([\s\S]*?)<\/table>/', $torrenthtml, $mat)) {
    return;
  }

  if (!preg_match('/<td class="rowfollow nowrap"><span title="(.*?)"/i', $torrenthtml, $mat2)) {
    return;
  }

  $torrentname = $mat[1];
  if (!preg_match('/<a .*?href="details\.php\?id=(\d+).*?".*?>(.*?)<\/a>/i', $torrentname, $matches)) {
    return;
  }

  $timestamp = strtotime($mat2[1]);

  $torrent = [
    'id' => $matches[1],<commit_msg>solve #1<commit_after><?php

define('IN_MYU2RSS', 1);

require_once('./config.inc.php');
require_once('./common.php');

function getTorrentInfo($torrenthtml)
{
  if (!preg_match('/<table class="torrentname".*?>([\s\S]*?)<\/table>/', $torrenthtml, $mat)) {
    return;
  }

  if (!preg_match('/<td class="rowfollow nowrap"><(span|time) title="(.*?)"/i', $torrenthtml, $mat2)) {
    return;
  }

  $torrentname = $mat[1];
  if (!preg_match('/<a .*?href="details\.php\?id=(\d+).*?".*?>(.*?)<\/a>/i', $torrentname, $matches)) {
    return;
  }

  $timestamp = strtotime($mat2[2]);

  $torrent = [
    'id' => $matches[1],
{'fraction_non_alphanumeric': 0.28084415584415584, 'fraction_numerical': 0.012175324675324676, 'mean_word_length': 4.314655172413793, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 15, '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': '2031411', 'n_tokens_mistral': 526, 'n_tokens_neox': 507, 'n_words': 68}