<commit_before><?php

include_once('class.rater.php');

$rater = new Rater($_REQUEST['id']);

if ($rater->validate() !== False) {

  if (is_null($_REQUEST['rating_num']) === False) {

    if ($rater->storeRating($_REQUEST['rating_num'], $_REQUEST['triangle1'], $_REQUEST['triangle2'], $_REQUEST['rating']) === False) {

      $page = 'error';
      $error = 'Error 2';

    }

    if ($_REQUEST['triangle1'] == $_REQUEST['triangle2']) {

      if ($rater->submitted_rating > 50) {
        $rater->blockRater();
        $rater->save();
        $page = 'early_exit';
        return;
      }

    }

    if ($rater->getTimeTaken() < 3) {
      $rater->blockRater();
      $rater->save();
      $page = 'early_exit';
      return;
    }

  }<commit_msg>Removed code to block users who mis-rate duplicates<commit_after><?php

include_once('class.rater.php');

$rater = new Rater($_REQUEST['id']);

if ($rater->validate() !== False) {

  if (is_null($_REQUEST['rating_num']) === False) {

    if ($rater->storeRating($_REQUEST['rating_num'], $_REQUEST['triangle1'], $_REQUEST['triangle2'], $_REQUEST['rating']) === False) {

      $page = 'error';
      $error = 'Error 2';

    }

    if ($rater->getTimeTaken() < 3) {
      $rater->blockRater();
      $rater->save();
      $page = 'early_exit';
      return;
    }

  }
{'fraction_non_alphanumeric': 0.21504559270516718, 'fraction_numerical': 0.00911854103343465, 'mean_word_length': 3.1545741324921135, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 17, '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': '3582983', 'n_tokens_mistral': 472, 'n_tokens_neox': 438, 'n_words': 78}