<commit_before><!DOCTYPE html>
<html lang="de">
<head>
  <meta charset="utf-8" />
  <title>PHP-IMDB-Grabber by <NAME> | Examples</title>
  <style>
    body {
      background-color:#aaa;
      color:#111;
      font-family:Corbel, "Lucida Grande", "Lucida Sans Unicode",  "Lucida Sans", "DejaVu Sans", "Bitstream Vera Sans", "Liberation Sans", Verdana, sans-serif;
      font-size:14px;
      margin:20px auto;
      width:700px;
    }
    p {
      margin:0;
      padding:0;
      margin-bottom:5px;
    }
    hr {
      clear:both;
      margin:20px 0;
    }
  </style>
</head>
<body>
<?php
include_once 'imdb.class.php';

$arrTests = array('Formosa Betrayed', 'New York, I Love You', 'http://us.imdb.com/Title?0144117', 'http://www.imdb.com/title/tt1022603/', '<NAME> never made a movie. Yet!');

foreach ($arrTests as $strTest) {
    $oIMDB = new IMDB($strTest);<commit_msg>Added a one minute timeout for caching.<commit_after><!DOCTYPE html>
<html lang="de">
<head>
  <meta charset="utf-8" />
  <title>PHP-IMDB-Grabber by <NAME> | Examples</title>
  <style>
    body {
      background-color:#aaa;
      color:#111;
      font-family:Corbel, "Lucida Grande", "Lucida Sans Unicode",  "Lucida Sans", "DejaVu Sans", "Bitstream Vera Sans", "Liberation Sans", Verdana, sans-serif;
      font-size:14px;
      margin:20px auto;
      width:700px;
    }
    p {
      margin:0;
      padding:0;
      margin-bottom:5px;
    }
    hr {
      clear:both;
      margin:20px 0;
    }
  </style>
</head>
<body>
<?php
include_once 'imdb.class.php';

$arrTests = array('Formosa Betrayed', 'New York, I Love You', 'http://us.imdb.com/Title?0144117', 'http://www.imdb.com/title/tt1022603/', '<NAME> never made a movie. Yet!');

foreach ($arrTests as $strTest) {
    $oIMDB = new IMDB($strTest, 1);
{'fraction_non_alphanumeric': 0.17123670956911025, 'fraction_numerical': 0.035254616675993285, 'mean_word_length': 3.072892938496583, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 27, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '7340649', 'n_tokens_mistral': 727, 'n_tokens_neox': 666, 'n_words': 152}