<commit_before>@file:Suppress("KDocUnresolvedReference")

package com.sedsoftware.yaptalker.data.remote.yap

import com.sedsoftware.yaptalker.data.model.Forums
import com.sedsoftware.yaptalker.data.model.News
import io.reactivex.Single
import retrofit2.http.GET
import retrofit2.http.Path

interface YapLoader {

  /**
   * Load news from main page
   *
   * @param startPage Starting page number, also defines how much pages will be loaded.
   */
  @GET("/st/{startPage}/")
  fun loadNews(@Path("startPage") startPage: Int): Single<News>

  /**
   * Load main forums list
   */
  @GET("/forum")
  fun loadForumsList(): Single<Forums><commit_msg>Add request for forum load<commit_after>@file:Suppress("KDocUnresolvedReference")

package com.sedsoftware.yaptalker.data.remote.yap

import com.sedsoftware.yaptalker.data.model.ForumPage
import com.sedsoftware.yaptalker.data.model.Forums
import com.sedsoftware.yaptalker.data.model.News
import io.reactivex.Single
import retrofit2.http.GET
import retrofit2.http.Path

interface YapLoader {

  /**
   * Load news from main page
   *
   * @param startPage Starting page number, also defines how much pages will be loaded.
   */
  @GET("/st/{startPage}/")
  fun loadNews(@Path("startPage") startPage: Int): Single<News>

  /**
   * Load main forums list
   */
  @GET("/forum")
  fun loadForumsList(): Single<Forums>

  /**
   * Load chosen forum page.
   *
   * @param forumId Chosen forum id
   * @param startFrom Starting page (first page equals 0, should be multiply of 30)
   * @param sortingMode Possible values: last_post and rank
   */
  @GET("/forum{forumId}/st/{startFrom}/100/Z-A/{sortingMode}")
  fun loadForumPage(
      @Path("forumId") forumId: Int,
      @Path("startFrom") startTopicNumber: Int,
      @Path("sortingMode") sortingMode: String): Single<ForumPage>
{'fraction_non_alphanumeric': 0.12403951701427003, 'fraction_numerical': 0.005488474204171241, 'mean_word_length': 4.149717514124294, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, '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': '4742073', 'n_tokens_mistral': 611, 'n_tokens_neox': 585, 'n_words': 141}