[backend, crawler] feat: support token statistics
This commit is contained in:
@@ -11,15 +11,15 @@ namespace Basango\SharedKernel\Domain;
|
||||
*/
|
||||
final class Application
|
||||
{
|
||||
public string $name = 'DRC News Corpus';
|
||||
public string $name = 'Basango';
|
||||
|
||||
public string $website = 'https://research.devscast.org/drc-news-corpus';
|
||||
public string $website = 'https://basango.ngandu.dev';
|
||||
|
||||
public string $emailAddress = 'contact@devscast.tech';
|
||||
|
||||
public string $infoAddress = 'contact@devscast.tech';
|
||||
|
||||
public string $emailName = 'DRC News Corpus';
|
||||
public string $emailName = 'Basango';
|
||||
|
||||
public string $legalName = 'Devscast Software SàSu';
|
||||
|
||||
|
||||
+2
-3
@@ -48,14 +48,13 @@ trait PaginationQuery
|
||||
PaginatorKeyset $keyset,
|
||||
SortDirection $direction = SortDirection::DESC
|
||||
): QueryBuilder {
|
||||
$orderDirection = strtoupper($direction->value);
|
||||
$comparisonOperator = $direction === SortDirection::ASC ? '>' : '<';
|
||||
|
||||
if ($keyset->date !== null) {
|
||||
$qb->addOrderBy($keyset->date, $orderDirection);
|
||||
$qb->addOrderBy($keyset->date, $direction->value);
|
||||
}
|
||||
|
||||
$qb->addOrderBy($keyset->id, $orderDirection);
|
||||
$qb->addOrderBy($keyset->id, $direction->value);
|
||||
|
||||
$cursor = PaginationCursor::decode($page->cursor);
|
||||
if (! $cursor instanceof PaginationCursor) {
|
||||
|
||||
@@ -22,9 +22,9 @@ final class DefaultController extends AbstractController
|
||||
public function __invoke(): JsonResponse
|
||||
{
|
||||
return $this->json([
|
||||
'repository' => 'https://github.com/bernard-ng/drc-news-corpus',
|
||||
'title' => 'DRC News Corpus : Towards a scalable and intelligent system for Congolese News curation',
|
||||
'description' => 'The DRC News Corpus is a structured and scalable dataset of news articles sourced from major media outlets covering diverse aspects of the Democratic Republic of Congo (DRC). Designed for efficiency, this system enables the automated collection, processing, and organization of news stories spanning politics, economy, society, culture, environment, and international affairs.',
|
||||
'repository' => 'https://github.com/bernard-ng/basango',
|
||||
'title' => 'Basango : Towards a scalable and intelligent system for Congolese News curation',
|
||||
'description' => 'The Basango is a structured and scalable dataset of news articles sourced from major media outlets covering diverse aspects of the Democratic Republic of Congo (DRC). Designed for efficiency, this system enables the automated collection, processing, and organization of news stories spanning politics, economy, society, culture, environment, and international affairs.',
|
||||
'status' => 200,
|
||||
]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user