<commit_before><?php

$bFoundGroup = false;
$Group = new Group();
if (isset($_GET["id"])) {
    $Group = new Group(array("id" => intval($_GET["id"])));
    $Group->hydrateFromBDD(array('*'));
    if ($Group->getState() == "online") {
        $bFoundGroup = true;
    }
}
if (!$bFoundGroup) {
    header("HTTP/1.0 404 Not Found");
  }else{
      $aDataScript["pledge_amount"]=$Group->getAmount_plegde();
      $aDataScript["income_amount"]=$Group->getAmount_income();
      $aDataScript["group"]=$Group;
      $aDataScript["postersCost"] = round($Group->getPosters() * 1.8161, 2);
      $aDataScript["professions_de_foiCost"] = round($Group->getProfessions_de_foi() * 0.011613687, 2);
      $aDataScript["ballotsEtrCost"] = round($Group->getBallots() * 0.0028419347, 2);
      $aDataScript["ballotsCost"] = round($Group->getBallots() * 0.003056503, 2);
      $aDataScript["accountantCost"] = 150;
      $aDataScript["postExpenses"] = $Group->getPost_expenses();
      $aDataScript["emailingExpenses"] = $Group->getEmailing_expenses();
      $aDataScript["smallExpenses"] = $Group->getSmall_expenses();
      $aDataScript["bankingFees"] = $Group->getBanking_fees();
  }<commit_msg>La variable amountMax avait sauté<commit_after><?php

$bFoundGroup = false;
$Group = new Group();
if (isset($_GET["id"])) {
    $Group = new Group(array("id" => intval($_GET["id"])));
    $Group->hydrateFromBDD(array('*'));
    if ($Group->getState() == "online") {
        $bFoundGroup = true;
    }
}
if (!$bFoundGroup) {
    header("HTTP/1.0 404 Not Found");
  }else{
      $aDataScript["group"] = $Group;
      $aDataScript["amountMax"]= $Group->getAmount_target()-$Group->getAmount_pledge()-$Group->getAmount_income();
      $aDataScript["subkey"] = sha1(substr($Group->getKey_edit(),0,10).$Group->getId());
      $aDataScript["postersCost"] = round($Group->getPosters() * 1.8161, 2);
      $aDataScript["professions_de_foiCost"] = round($Group->getProfessions_de_foi() * 0.011613687, 2);
      $aDataScript["ballotsEtrCost"] = round($Group->getBallots() * 0.0028419347, 2);
      $aDataScript["ballotsCost"] = round($Group->getBallots() * 0.003056503, 2);
      $aDataScript["accountantCost"] = 150;
      $aDataScript["postExpenses"] = $Group->getPost_expenses();
      $aDataScript["emailingExpenses"] = $Group->getEmailing_expenses();
      $aDataScript["smallExpenses"] = $Group->getSmall_expenses();
      $aDataScript["bankingFees"] = $Group->getBanking_fees();
  }
{'fraction_non_alphanumeric': 0.20439739413680783, 'fraction_numerical': 0.04071661237785016, 'mean_word_length': 4.87799043062201, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 32, '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': '1769530', 'n_tokens_mistral': 939, 'n_tokens_neox': 866, 'n_words': 115}