Watch us build devnull right now, live on YouTube

Commit

edac958

Leaking Pinkary algo too
->orderByRaw(<<<SQL
    (((likes_count * {$likesBias} + 1.0) * (children_count * {$commentsBias} + 1.0))
    / (UNIX_TIMESTAMP() - UNIX_TIMESTAMP(answer_created_at) + {$timeBias} + 1.0)) desc
SQL)
php
QuotingMNMatthieu Napoli@mnapoli
I'm leaking the future Algorithm®
return round(
  log(1 + $stars + self::REPLIER_WEIGHT * $repliers, 2)
      + $createdAt->getTimestamp() / self::DOUBLING_PERIOD,
  6
);
php

commit edac958