From f4b62613157b59ee2a1fca285094a3a6ada93b2c Mon Sep 17 00:00:00 2001 From: CWKevo Date: Sat, 26 Feb 2022 10:45:43 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20documentation=20from=20@=20CWK?= =?UTF-8?q?evo/python-piped-api-client@a4e6b21524db597c76cbc74de419dea1a5d?= =?UTF-8?q?59058=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 7 + piped_api.html | 244 +++++++++ piped_api/client.html | 467 +++++++++++++++++ piped_api/models.html | 325 ++++++++++++ piped_api/models/comments.html | 910 +++++++++++++++++++++++++++++++++ search.js | 46 ++ 6 files changed, 1999 insertions(+) create mode 100644 index.html create mode 100644 piped_api.html create mode 100644 piped_api/client.html create mode 100644 piped_api/models.html create mode 100644 piped_api/models/comments.html create mode 100644 search.js diff --git a/index.html b/index.html new file mode 100644 index 0000000..037b471 --- /dev/null +++ b/index.html @@ -0,0 +1,7 @@ + + + + + + + diff --git a/piped_api.html b/piped_api.html new file mode 100644 index 0000000..6ed49dc --- /dev/null +++ b/piped_api.html @@ -0,0 +1,244 @@ + + + + + + + piped_api API documentation + + + + + + + + + +
+
+

+piped_api

+ + +
+ View Source +
import typing as t
+
+
+from .client import PipedClient
+
+from .models.comments import Comments
+
+
+
+# Supress unused-import warnings:
+if t.TYPE_CHECKING:
+    _ = [PipedClient, Comments]
+
+ +
+ +
+
+ + \ No newline at end of file diff --git a/piped_api/client.html b/piped_api/client.html new file mode 100644 index 0000000..9c5956a --- /dev/null +++ b/piped_api/client.html @@ -0,0 +1,467 @@ + + + + + + + piped_api.client API documentation + + + + + + + + + +
+
+

+piped_api.client

+ + +
+ View Source +
import typing as t
+
+from requests import Session
+
+from .models import BasePipedModel
+from .models.comments import Comments
+
+
+_MDL = t.TypeVar('_MDL', bound=BasePipedModel)
+
+
+
+class PipedClient:
+    """
+        An API client for [Piped](https://piped.kavin.rocks).
+    """
+
+    def __init__(self, base_api_url: str='https://pipedapi.kavin.rocks', session: t.Type[Session]=Session()) -> None:
+        """
+            ### Parameters:
+            - `base_api_url` - The base URL to the instance's API. Trailing slashes will be stripped.
+            - `session` - A class/subclass of `requests.Session` to use for all requests.
+                For example, you could use [requests-cache](https://pypi.org/project/requests-cache/) to make all requests cacheable.
+        """
+
+        self.base_api_url = base_api_url.strip("/")
+        self.session =  session
+
+
+
+    def _get_json(self, uri: str, as_model: t.Optional[_MDL]=None, **kwargs) -> t.Union[_MDL, t.Dict[str, t.Any]]:
+        """
+            Obtains JSON data from specific URI of the Piped API.
+
+            ### Parameters:
+            - `uri` - The URI to get JSON data from
+            - `as_model` - The `BasePipedModel` to load the JSON data into. If this is `None`, the JSON data is returned as a `dict`.
+            - `**kwargs` - Additional keyword arguments to pass to `requests.Session.get`
+        """
+
+        json = self.session.get(f"{self.base_api_url}{uri}", **kwargs).json()
+
+        if as_model is not None:
+            return as_model(json)
+
+        return json
+
+
+
+    def get_comments(self, video_id: str, nextpage: t.Optional[t.Dict[str, t.Optional[str]]]=None) -> Comments:
+        """
+            Gets a list of comments for a specific video.
+
+            ### Parameters:
+            - `video_id` - The ID of the video to get comments for
+            - `nextpage` - Nextpage data, obtained from `.models.comments.Comments.nextpage` property. If this is `None`, the first page of comments is returned.
+                There are often 20 comments per page.
+        """
+
+        if nextpage is not None:
+            return self._get_json(f"/nextpage/comments/{video_id}", Comments, params={"nextpage": nextpage})
+
+        else:
+            return self._get_json(f"/comments/{video_id}", Comments)
+
+ +
+ +
+
+
+ #   + + + class + PipedClient: +
+ +
+ View Source +
class PipedClient:
+    """
+        An API client for [Piped](https://piped.kavin.rocks).
+    """
+
+    def __init__(self, base_api_url: str='https://pipedapi.kavin.rocks', session: t.Type[Session]=Session()) -> None:
+        """
+            ### Parameters:
+            - `base_api_url` - The base URL to the instance's API. Trailing slashes will be stripped.
+            - `session` - A class/subclass of `requests.Session` to use for all requests.
+                For example, you could use [requests-cache](https://pypi.org/project/requests-cache/) to make all requests cacheable.
+        """
+
+        self.base_api_url = base_api_url.strip("/")
+        self.session =  session
+
+
+
+    def _get_json(self, uri: str, as_model: t.Optional[_MDL]=None, **kwargs) -> t.Union[_MDL, t.Dict[str, t.Any]]:
+        """
+            Obtains JSON data from specific URI of the Piped API.
+
+            ### Parameters:
+            - `uri` - The URI to get JSON data from
+            - `as_model` - The `BasePipedModel` to load the JSON data into. If this is `None`, the JSON data is returned as a `dict`.
+            - `**kwargs` - Additional keyword arguments to pass to `requests.Session.get`
+        """
+
+        json = self.session.get(f"{self.base_api_url}{uri}", **kwargs).json()
+
+        if as_model is not None:
+            return as_model(json)
+
+        return json
+
+
+
+    def get_comments(self, video_id: str, nextpage: t.Optional[t.Dict[str, t.Optional[str]]]=None) -> Comments:
+        """
+            Gets a list of comments for a specific video.
+
+            ### Parameters:
+            - `video_id` - The ID of the video to get comments for
+            - `nextpage` - Nextpage data, obtained from `.models.comments.Comments.nextpage` property. If this is `None`, the first page of comments is returned.
+                There are often 20 comments per page.
+        """
+
+        if nextpage is not None:
+            return self._get_json(f"/nextpage/comments/{video_id}", Comments, params={"nextpage": nextpage})
+
+        else:
+            return self._get_json(f"/comments/{video_id}", Comments)
+
+ +
+ +

An API client for Piped.

+
+ + +
+
#   + + + PipedClient( + base_api_url: str = 'https://pipedapi.kavin.rocks', + session: Type[requests.sessions.Session] = <requests.sessions.Session object> +) +
+ +
+ View Source +
    def __init__(self, base_api_url: str='https://pipedapi.kavin.rocks', session: t.Type[Session]=Session()) -> None:
+        """
+            ### Parameters:
+            - `base_api_url` - The base URL to the instance's API. Trailing slashes will be stripped.
+            - `session` - A class/subclass of `requests.Session` to use for all requests.
+                For example, you could use [requests-cache](https://pypi.org/project/requests-cache/) to make all requests cacheable.
+        """
+
+        self.base_api_url = base_api_url.strip("/")
+        self.session =  session
+
+ +
+ +

Parameters:

+ +
    +
  • base_api_url - The base URL to the instance's API. Trailing slashes will be stripped.
  • +
  • session - A class/subclass of requests.Session to use for all requests. +For example, you could use requests-cache to make all requests cacheable.
  • +
+
+ + +
+
+
#   + + + def + get_comments( + self, + video_id: str, + nextpage: Optional[Dict[str, Optional[str]]] = None +) -> piped_api.models.comments.Comments: +
+ +
+ View Source +
    def get_comments(self, video_id: str, nextpage: t.Optional[t.Dict[str, t.Optional[str]]]=None) -> Comments:
+        """
+            Gets a list of comments for a specific video.
+
+            ### Parameters:
+            - `video_id` - The ID of the video to get comments for
+            - `nextpage` - Nextpage data, obtained from `.models.comments.Comments.nextpage` property. If this is `None`, the first page of comments is returned.
+                There are often 20 comments per page.
+        """
+
+        if nextpage is not None:
+            return self._get_json(f"/nextpage/comments/{video_id}", Comments, params={"nextpage": nextpage})
+
+        else:
+            return self._get_json(f"/comments/{video_id}", Comments)
+
+ +
+ +

Gets a list of comments for a specific video.

+ +

Parameters:

+ +
    +
  • video_id - The ID of the video to get comments for
  • +
  • nextpage - Nextpage data, obtained from .models.comments.Comments.nextpage property. If this is None, the first page of comments is returned. +There are often 20 comments per page.
  • +
+
+ + +
+
+
+ + \ No newline at end of file diff --git a/piped_api/models.html b/piped_api/models.html new file mode 100644 index 0000000..25f2109 --- /dev/null +++ b/piped_api/models.html @@ -0,0 +1,325 @@ + + + + + + + piped_api.models API documentation + + + + + + + + + +
+
+

+piped_api.models

+ + +
+ View Source +
import typing as t
+
+
+class BasePipedModel:
+    """
+        Base class for all Piped models.
+    """
+
+    def __init__(self, data: t.Dict[str, t.Any]) -> None:
+        """
+            ### Parameters:
+            - `data` - The JSON (`dict`) data to initialize the model with.
+        """
+
+        self.data = data
+
+ +
+ +
+
+
+ #   + + + class + BasePipedModel: +
+ +
+ View Source +
class BasePipedModel:
+    """
+        Base class for all Piped models.
+    """
+
+    def __init__(self, data: t.Dict[str, t.Any]) -> None:
+        """
+            ### Parameters:
+            - `data` - The JSON (`dict`) data to initialize the model with.
+        """
+
+        self.data = data
+
+ +
+ +

Base class for all Piped models.

+
+ + +
+
#   + + + BasePipedModel(data: Dict[str, Any]) +
+ +
+ View Source +
    def __init__(self, data: t.Dict[str, t.Any]) -> None:
+        """
+            ### Parameters:
+            - `data` - The JSON (`dict`) data to initialize the model with.
+        """
+
+        self.data = data
+
+ +
+ +

Parameters:

+ +
    +
  • data - The JSON (dict) data to initialize the model with.
  • +
+
+ + +
+
+
+ + \ No newline at end of file diff --git a/piped_api/models/comments.html b/piped_api/models/comments.html new file mode 100644 index 0000000..fd6e07f --- /dev/null +++ b/piped_api/models/comments.html @@ -0,0 +1,910 @@ + + + + + + + piped_api.models.comments API documentation + + + + + + + + + +
+
+

+piped_api.models.comments

+ + +
+ View Source +
import typing as t
+
+from . import BasePipedModel
+
+
+class Comments(BasePipedModel):
+    class Comment(BasePipedModel):
+        @property
+        def author(self) -> str:
+            """
+                The name of the author of the comment
+            """
+
+            return self.data['author']
+
+
+        @property
+        def comment_id(self) -> str:
+            """
+                The comment ID
+            """
+
+            return self.data['commentId']
+
+
+        @property
+        def comment_text(self) -> str:
+            """
+                The text of the comment
+            """
+
+            return self.data['commentText']
+
+
+        @property
+        def commented_time(self) -> str:
+            """
+                The time the comment was made (format: `'x y ago'`)
+            """
+
+            return self.data['commentedTime']
+
+
+        @property
+        def commentor_url(self) -> str:
+            """
+                The URL of the channel that made the comment
+            """
+
+            return self.data['commentorUrl']
+
+
+        @property
+        def replies_page(self) -> t.Optional[str]:
+            """
+                Same as `Comments.nextpage`, but to load replies.
+
+                `None` means that there are no replies.
+            """
+
+            return self.data['repliesPage']
+
+
+        @property
+        def hearted(self) -> bool:
+            """
+                Whether or not the comment has been hearted
+            """
+
+            return self.data['hearted']
+
+
+        @property
+        def like_count(self) -> int:
+            """
+                The number of likes the comment has
+            """
+
+            return self.data['likeCount']
+
+
+        @property
+        def pinned(self) -> bool:
+            """
+                Whether or not the comment is pinned
+            """
+
+            return self.data['pinned']
+
+
+        @property
+        def thumbnail(self) -> str:
+            """
+                The thumbnail of the commentor's channel
+            """
+
+            return self.data['thumbnail']
+
+
+        @property
+        def verified(self) -> bool:
+            """
+                Whether or not the author of the comment is verified
+            """
+
+            return self.data['verified']
+
+
+
+    def get_comments(self) -> t.List[Comment]:
+        """
+            Obtain a list of comments
+        """
+
+        return [self.Comment(comment_json) for comment_json in self.data['comments']]
+
+
+    def __iter__(self) -> t.Iterator[Comment]:
+        iter(self.get_comments())
+
+
+
+    @property
+    def disabled(self) -> bool:
+        """
+            Whether or not the comments are disabled
+        """
+
+        return self.data['disabled']
+
+
+
+    @property
+    def nextpage(self) -> t.Optional[str]:
+        """
+            A JSON encoded page, which is used for the nextpage endpoint.
+
+            If there is no nextpage data, this returns `None`.
+        """
+
+        return self.data['nextpage']
+
+ +
+ +
+
+
+ #   + + + class + Comments(piped_api.models.BasePipedModel): +
+ +
+ View Source +
class Comments(BasePipedModel):
+    class Comment(BasePipedModel):
+        @property
+        def author(self) -> str:
+            """
+                The name of the author of the comment
+            """
+
+            return self.data['author']
+
+
+        @property
+        def comment_id(self) -> str:
+            """
+                The comment ID
+            """
+
+            return self.data['commentId']
+
+
+        @property
+        def comment_text(self) -> str:
+            """
+                The text of the comment
+            """
+
+            return self.data['commentText']
+
+
+        @property
+        def commented_time(self) -> str:
+            """
+                The time the comment was made (format: `'x y ago'`)
+            """
+
+            return self.data['commentedTime']
+
+
+        @property
+        def commentor_url(self) -> str:
+            """
+                The URL of the channel that made the comment
+            """
+
+            return self.data['commentorUrl']
+
+
+        @property
+        def replies_page(self) -> t.Optional[str]:
+            """
+                Same as `Comments.nextpage`, but to load replies.
+
+                `None` means that there are no replies.
+            """
+
+            return self.data['repliesPage']
+
+
+        @property
+        def hearted(self) -> bool:
+            """
+                Whether or not the comment has been hearted
+            """
+
+            return self.data['hearted']
+
+
+        @property
+        def like_count(self) -> int:
+            """
+                The number of likes the comment has
+            """
+
+            return self.data['likeCount']
+
+
+        @property
+        def pinned(self) -> bool:
+            """
+                Whether or not the comment is pinned
+            """
+
+            return self.data['pinned']
+
+
+        @property
+        def thumbnail(self) -> str:
+            """
+                The thumbnail of the commentor's channel
+            """
+
+            return self.data['thumbnail']
+
+
+        @property
+        def verified(self) -> bool:
+            """
+                Whether or not the author of the comment is verified
+            """
+
+            return self.data['verified']
+
+
+
+    def get_comments(self) -> t.List[Comment]:
+        """
+            Obtain a list of comments
+        """
+
+        return [self.Comment(comment_json) for comment_json in self.data['comments']]
+
+
+    def __iter__(self) -> t.Iterator[Comment]:
+        iter(self.get_comments())
+
+
+
+    @property
+    def disabled(self) -> bool:
+        """
+            Whether or not the comments are disabled
+        """
+
+        return self.data['disabled']
+
+
+
+    @property
+    def nextpage(self) -> t.Optional[str]:
+        """
+            A JSON encoded page, which is used for the nextpage endpoint.
+
+            If there is no nextpage data, this returns `None`.
+        """
+
+        return self.data['nextpage']
+
+ +
+ +

Base class for all Piped models.

+
+ + +
+
#   + + + def + get_comments(self) -> List[piped_api.models.comments.Comments.Comment]: +
+ +
+ View Source +
    def get_comments(self) -> t.List[Comment]:
+        """
+            Obtain a list of comments
+        """
+
+        return [self.Comment(comment_json) for comment_json in self.data['comments']]
+
+ +
+ +

Obtain a list of comments

+
+ + +
+
+
#   + + disabled: bool +
+ + +

Whether or not the comments are disabled

+
+ + +
+
+
#   + + nextpage: Optional[str] +
+ + +

A JSON encoded page, which is used for the nextpage endpoint.

+ +

If there is no nextpage data, this returns None.

+
+ + +
+
+
Inherited Members
+
+ +
+
+
+
+
+ #   + + + class + Comments.Comment(piped_api.models.BasePipedModel): +
+ +
+ View Source +
    class Comment(BasePipedModel):
+        @property
+        def author(self) -> str:
+            """
+                The name of the author of the comment
+            """
+
+            return self.data['author']
+
+
+        @property
+        def comment_id(self) -> str:
+            """
+                The comment ID
+            """
+
+            return self.data['commentId']
+
+
+        @property
+        def comment_text(self) -> str:
+            """
+                The text of the comment
+            """
+
+            return self.data['commentText']
+
+
+        @property
+        def commented_time(self) -> str:
+            """
+                The time the comment was made (format: `'x y ago'`)
+            """
+
+            return self.data['commentedTime']
+
+
+        @property
+        def commentor_url(self) -> str:
+            """
+                The URL of the channel that made the comment
+            """
+
+            return self.data['commentorUrl']
+
+
+        @property
+        def replies_page(self) -> t.Optional[str]:
+            """
+                Same as `Comments.nextpage`, but to load replies.
+
+                `None` means that there are no replies.
+            """
+
+            return self.data['repliesPage']
+
+
+        @property
+        def hearted(self) -> bool:
+            """
+                Whether or not the comment has been hearted
+            """
+
+            return self.data['hearted']
+
+
+        @property
+        def like_count(self) -> int:
+            """
+                The number of likes the comment has
+            """
+
+            return self.data['likeCount']
+
+
+        @property
+        def pinned(self) -> bool:
+            """
+                Whether or not the comment is pinned
+            """
+
+            return self.data['pinned']
+
+
+        @property
+        def thumbnail(self) -> str:
+            """
+                The thumbnail of the commentor's channel
+            """
+
+            return self.data['thumbnail']
+
+
+        @property
+        def verified(self) -> bool:
+            """
+                Whether or not the author of the comment is verified
+            """
+
+            return self.data['verified']
+
+ +
+ +

Base class for all Piped models.

+
+ + +
+
#   + + author: str +
+ + +

The name of the author of the comment

+
+ + +
+
+
#   + + comment_id: str +
+ + +

The comment ID

+
+ + +
+
+
#   + + comment_text: str +
+ + +

The text of the comment

+
+ + +
+
+
#   + + commented_time: str +
+ + +

The time the comment was made (format: 'x y ago')

+
+ + +
+
+
#   + + commentor_url: str +
+ + +

The URL of the channel that made the comment

+
+ + +
+
+
#   + + replies_page: Optional[str] +
+ + +

Same as Comments.nextpage, but to load replies.

+ +

None means that there are no replies.

+
+ + +
+
+
#   + + hearted: bool +
+ + +

Whether or not the comment has been hearted

+
+ + +
+
+
#   + + like_count: int +
+ + +

The number of likes the comment has

+
+ + +
+
+
#   + + pinned: bool +
+ + +

Whether or not the comment is pinned

+
+ + +
+
+
#   + + thumbnail: str +
+ + +

The thumbnail of the commentor's channel

+
+ + +
+
+
#   + + verified: bool +
+ + +

Whether or not the author of the comment is verified

+
+ + +
+
+
Inherited Members
+
+ +
+
+
+
+ + \ No newline at end of file diff --git a/search.js b/search.js new file mode 100644 index 0000000..72ee66b --- /dev/null +++ b/search.js @@ -0,0 +1,46 @@ +window.pdocSearch = (function(){ +/** elasticlunr - http://weixsong.github.io * Copyright (C) 2017 Oliver Nightingale * Copyright (C) 2017 Wei Song * MIT Licensed */!function(){function e(e){if(null===e||"object"!=typeof e)return e;var t=e.constructor();for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}var t=function(e){var n=new t.Index;return n.pipeline.add(t.trimmer,t.stopWordFilter,t.stemmer),e&&e.call(n,n),n};t.version="0.9.5",lunr=t,t.utils={},t.utils.warn=function(e){return function(t){e.console&&console.warn&&console.warn(t)}}(this),t.utils.toString=function(e){return void 0===e||null===e?"":e.toString()},t.EventEmitter=function(){this.events={}},t.EventEmitter.prototype.addListener=function(){var e=Array.prototype.slice.call(arguments),t=e.pop(),n=e;if("function"!=typeof t)throw new TypeError("last argument must be a function");n.forEach(function(e){this.hasHandler(e)||(this.events[e]=[]),this.events[e].push(t)},this)},t.EventEmitter.prototype.removeListener=function(e,t){if(this.hasHandler(e)){var n=this.events[e].indexOf(t);-1!==n&&(this.events[e].splice(n,1),0==this.events[e].length&&delete this.events[e])}},t.EventEmitter.prototype.emit=function(e){if(this.hasHandler(e)){var t=Array.prototype.slice.call(arguments,1);this.events[e].forEach(function(e){e.apply(void 0,t)},this)}},t.EventEmitter.prototype.hasHandler=function(e){return e in this.events},t.tokenizer=function(e){if(!arguments.length||null===e||void 0===e)return[];if(Array.isArray(e)){var n=e.filter(function(e){return null===e||void 0===e?!1:!0});n=n.map(function(e){return t.utils.toString(e).toLowerCase()});var i=[];return n.forEach(function(e){var n=e.split(t.tokenizer.seperator);i=i.concat(n)},this),i}return e.toString().trim().toLowerCase().split(t.tokenizer.seperator)},t.tokenizer.defaultSeperator=/[\s\-]+/,t.tokenizer.seperator=t.tokenizer.defaultSeperator,t.tokenizer.setSeperator=function(e){null!==e&&void 0!==e&&"object"==typeof e&&(t.tokenizer.seperator=e)},t.tokenizer.resetSeperator=function(){t.tokenizer.seperator=t.tokenizer.defaultSeperator},t.tokenizer.getSeperator=function(){return t.tokenizer.seperator},t.Pipeline=function(){this._queue=[]},t.Pipeline.registeredFunctions={},t.Pipeline.registerFunction=function(e,n){n in t.Pipeline.registeredFunctions&&t.utils.warn("Overwriting existing registered function: "+n),e.label=n,t.Pipeline.registeredFunctions[n]=e},t.Pipeline.getRegisteredFunction=function(e){return e in t.Pipeline.registeredFunctions!=!0?null:t.Pipeline.registeredFunctions[e]},t.Pipeline.warnIfFunctionNotRegistered=function(e){var n=e.label&&e.label in this.registeredFunctions;n||t.utils.warn("Function is not registered with pipeline. This may cause problems when serialising the index.\n",e)},t.Pipeline.load=function(e){var n=new t.Pipeline;return e.forEach(function(e){var i=t.Pipeline.getRegisteredFunction(e);if(!i)throw new Error("Cannot load un-registered function: "+e);n.add(i)}),n},t.Pipeline.prototype.add=function(){var e=Array.prototype.slice.call(arguments);e.forEach(function(e){t.Pipeline.warnIfFunctionNotRegistered(e),this._queue.push(e)},this)},t.Pipeline.prototype.after=function(e,n){t.Pipeline.warnIfFunctionNotRegistered(n);var i=this._queue.indexOf(e);if(-1===i)throw new Error("Cannot find existingFn");this._queue.splice(i+1,0,n)},t.Pipeline.prototype.before=function(e,n){t.Pipeline.warnIfFunctionNotRegistered(n);var i=this._queue.indexOf(e);if(-1===i)throw new Error("Cannot find existingFn");this._queue.splice(i,0,n)},t.Pipeline.prototype.remove=function(e){var t=this._queue.indexOf(e);-1!==t&&this._queue.splice(t,1)},t.Pipeline.prototype.run=function(e){for(var t=[],n=e.length,i=this._queue.length,o=0;n>o;o++){for(var r=e[o],s=0;i>s&&(r=this._queue[s](r,o,e),void 0!==r&&null!==r);s++);void 0!==r&&null!==r&&t.push(r)}return t},t.Pipeline.prototype.reset=function(){this._queue=[]},t.Pipeline.prototype.get=function(){return this._queue},t.Pipeline.prototype.toJSON=function(){return this._queue.map(function(e){return t.Pipeline.warnIfFunctionNotRegistered(e),e.label})},t.Index=function(){this._fields=[],this._ref="id",this.pipeline=new t.Pipeline,this.documentStore=new t.DocumentStore,this.index={},this.eventEmitter=new t.EventEmitter,this._idfCache={},this.on("add","remove","update",function(){this._idfCache={}}.bind(this))},t.Index.prototype.on=function(){var e=Array.prototype.slice.call(arguments);return this.eventEmitter.addListener.apply(this.eventEmitter,e)},t.Index.prototype.off=function(e,t){return this.eventEmitter.removeListener(e,t)},t.Index.load=function(e){e.version!==t.version&&t.utils.warn("version mismatch: current "+t.version+" importing "+e.version);var n=new this;n._fields=e.fields,n._ref=e.ref,n.documentStore=t.DocumentStore.load(e.documentStore),n.pipeline=t.Pipeline.load(e.pipeline),n.index={};for(var i in e.index)n.index[i]=t.InvertedIndex.load(e.index[i]);return n},t.Index.prototype.addField=function(e){return this._fields.push(e),this.index[e]=new t.InvertedIndex,this},t.Index.prototype.setRef=function(e){return this._ref=e,this},t.Index.prototype.saveDocument=function(e){return this.documentStore=new t.DocumentStore(e),this},t.Index.prototype.addDoc=function(e,n){if(e){var n=void 0===n?!0:n,i=e[this._ref];this.documentStore.addDoc(i,e),this._fields.forEach(function(n){var o=this.pipeline.run(t.tokenizer(e[n]));this.documentStore.addFieldLength(i,n,o.length);var r={};o.forEach(function(e){e in r?r[e]+=1:r[e]=1},this);for(var s in r){var u=r[s];u=Math.sqrt(u),this.index[n].addToken(s,{ref:i,tf:u})}},this),n&&this.eventEmitter.emit("add",e,this)}},t.Index.prototype.removeDocByRef=function(e){if(e&&this.documentStore.isDocStored()!==!1&&this.documentStore.hasDoc(e)){var t=this.documentStore.getDoc(e);this.removeDoc(t,!1)}},t.Index.prototype.removeDoc=function(e,n){if(e){var n=void 0===n?!0:n,i=e[this._ref];this.documentStore.hasDoc(i)&&(this.documentStore.removeDoc(i),this._fields.forEach(function(n){var o=this.pipeline.run(t.tokenizer(e[n]));o.forEach(function(e){this.index[n].removeToken(e,i)},this)},this),n&&this.eventEmitter.emit("remove",e,this))}},t.Index.prototype.updateDoc=function(e,t){var t=void 0===t?!0:t;this.removeDocByRef(e[this._ref],!1),this.addDoc(e,!1),t&&this.eventEmitter.emit("update",e,this)},t.Index.prototype.idf=function(e,t){var n="@"+t+"/"+e;if(Object.prototype.hasOwnProperty.call(this._idfCache,n))return this._idfCache[n];var i=this.index[t].getDocFreq(e),o=1+Math.log(this.documentStore.length/(i+1));return this._idfCache[n]=o,o},t.Index.prototype.getFields=function(){return this._fields.slice()},t.Index.prototype.search=function(e,n){if(!e)return[];e="string"==typeof e?{any:e}:JSON.parse(JSON.stringify(e));var i=null;null!=n&&(i=JSON.stringify(n));for(var o=new t.Configuration(i,this.getFields()).get(),r={},s=Object.keys(e),u=0;u0&&t.push(e);for(var i in n)"docs"!==i&&"df"!==i&&this.expandToken(e+i,t,n[i]);return t},t.InvertedIndex.prototype.toJSON=function(){return{root:this.root}},t.Configuration=function(e,n){var e=e||"";if(void 0==n||null==n)throw new Error("fields should not be null");this.config={};var i;try{i=JSON.parse(e),this.buildUserConfig(i,n)}catch(o){t.utils.warn("user configuration parse failed, will use default configuration"),this.buildDefaultConfig(n)}},t.Configuration.prototype.buildDefaultConfig=function(e){this.reset(),e.forEach(function(e){this.config[e]={boost:1,bool:"OR",expand:!1}},this)},t.Configuration.prototype.buildUserConfig=function(e,n){var i="OR",o=!1;if(this.reset(),"bool"in e&&(i=e.bool||i),"expand"in e&&(o=e.expand||o),"fields"in e)for(var r in e.fields)if(n.indexOf(r)>-1){var s=e.fields[r],u=o;void 0!=s.expand&&(u=s.expand),this.config[r]={boost:s.boost||0===s.boost?s.boost:1,bool:s.bool||i,expand:u}}else t.utils.warn("field name in user configuration not found in index instance fields");else this.addAllFields2UserConfig(i,o,n)},t.Configuration.prototype.addAllFields2UserConfig=function(e,t,n){n.forEach(function(n){this.config[n]={boost:1,bool:e,expand:t}},this)},t.Configuration.prototype.get=function(){return this.config},t.Configuration.prototype.reset=function(){this.config={}},lunr.SortedSet=function(){this.length=0,this.elements=[]},lunr.SortedSet.load=function(e){var t=new this;return t.elements=e,t.length=e.length,t},lunr.SortedSet.prototype.add=function(){var e,t;for(e=0;e1;){if(r===e)return o;e>r&&(t=o),r>e&&(n=o),i=n-t,o=t+Math.floor(i/2),r=this.elements[o]}return r===e?o:-1},lunr.SortedSet.prototype.locationFor=function(e){for(var t=0,n=this.elements.length,i=n-t,o=t+Math.floor(i/2),r=this.elements[o];i>1;)e>r&&(t=o),r>e&&(n=o),i=n-t,o=t+Math.floor(i/2),r=this.elements[o];return r>e?o:e>r?o+1:void 0},lunr.SortedSet.prototype.intersect=function(e){for(var t=new lunr.SortedSet,n=0,i=0,o=this.length,r=e.length,s=this.elements,u=e.elements;;){if(n>o-1||i>r-1)break;s[n]!==u[i]?s[n]u[i]&&i++:(t.add(s[n]),n++,i++)}return t},lunr.SortedSet.prototype.clone=function(){var e=new lunr.SortedSet;return e.elements=this.toArray(),e.length=e.elements.length,e},lunr.SortedSet.prototype.union=function(e){var t,n,i;this.length>=e.length?(t=this,n=e):(t=e,n=this),i=t.clone();for(var o=0,r=n.toArray();o

\n"}, "piped_api.client": {"fullname": "piped_api.client", "modulename": "piped_api.client", "type": "module", "doc": "

\n"}, "piped_api.client.PipedClient": {"fullname": "piped_api.client.PipedClient", "modulename": "piped_api.client", "qualname": "PipedClient", "type": "class", "doc": "

An API client for Piped.

\n"}, "piped_api.client.PipedClient.__init__": {"fullname": "piped_api.client.PipedClient.__init__", "modulename": "piped_api.client", "qualname": "PipedClient.__init__", "type": "function", "doc": "

Parameters:

\n\n
    \n
  • base_api_url - The base URL to the instance's API. Trailing slashes will be stripped.
  • \n
  • session - A class/subclass of requests.Session to use for all requests.\nFor example, you could use requests-cache to make all requests cacheable.
  • \n
\n", "signature": "(\n self,\n base_api_url: str = 'https://pipedapi.kavin.rocks',\n session: Type[requests.sessions.Session] = \n)", "funcdef": "def"}, "piped_api.client.PipedClient.get_comments": {"fullname": "piped_api.client.PipedClient.get_comments", "modulename": "piped_api.client", "qualname": "PipedClient.get_comments", "type": "function", "doc": "

Gets a list of comments for a specific video.

\n\n

Parameters:

\n\n
    \n
  • video_id - The ID of the video to get comments for
  • \n
  • nextpage - Nextpage data, obtained from .models.comments.Comments.nextpage property. If this is None, the first page of comments is returned.\nThere are often 20 comments per page.
  • \n
\n", "signature": "(\n self,\n video_id: str,\n nextpage: Optional[Dict[str, Optional[str]]] = None\n) -> piped_api.models.comments.Comments", "funcdef": "def"}, "piped_api.models": {"fullname": "piped_api.models", "modulename": "piped_api.models", "type": "module", "doc": "

\n"}, "piped_api.models.BasePipedModel": {"fullname": "piped_api.models.BasePipedModel", "modulename": "piped_api.models", "qualname": "BasePipedModel", "type": "class", "doc": "

Base class for all Piped models.

\n"}, "piped_api.models.BasePipedModel.__init__": {"fullname": "piped_api.models.BasePipedModel.__init__", "modulename": "piped_api.models", "qualname": "BasePipedModel.__init__", "type": "function", "doc": "

Parameters:

\n\n
    \n
  • data - The JSON (dict) data to initialize the model with.
  • \n
\n", "signature": "(self, data: Dict[str, Any])", "funcdef": "def"}, "piped_api.models.comments": {"fullname": "piped_api.models.comments", "modulename": "piped_api.models.comments", "type": "module", "doc": "

\n"}, "piped_api.models.comments.Comments": {"fullname": "piped_api.models.comments.Comments", "modulename": "piped_api.models.comments", "qualname": "Comments", "type": "class", "doc": "

Base class for all Piped models.

\n", "bases": "piped_api.models.BasePipedModel"}, "piped_api.models.comments.Comments.Comment": {"fullname": "piped_api.models.comments.Comments.Comment", "modulename": "piped_api.models.comments", "qualname": "Comments.Comment", "type": "class", "doc": "

Base class for all Piped models.

\n", "bases": "piped_api.models.BasePipedModel"}, "piped_api.models.comments.Comments.Comment.author": {"fullname": "piped_api.models.comments.Comments.Comment.author", "modulename": "piped_api.models.comments", "qualname": "Comments.Comment.author", "type": "variable", "doc": "

The name of the author of the comment

\n", "annotation": ": str"}, "piped_api.models.comments.Comments.Comment.comment_id": {"fullname": "piped_api.models.comments.Comments.Comment.comment_id", "modulename": "piped_api.models.comments", "qualname": "Comments.Comment.comment_id", "type": "variable", "doc": "

The comment ID

\n", "annotation": ": str"}, "piped_api.models.comments.Comments.Comment.comment_text": {"fullname": "piped_api.models.comments.Comments.Comment.comment_text", "modulename": "piped_api.models.comments", "qualname": "Comments.Comment.comment_text", "type": "variable", "doc": "

The text of the comment

\n", "annotation": ": str"}, "piped_api.models.comments.Comments.Comment.commented_time": {"fullname": "piped_api.models.comments.Comments.Comment.commented_time", "modulename": "piped_api.models.comments", "qualname": "Comments.Comment.commented_time", "type": "variable", "doc": "

The time the comment was made (format: 'x y ago')

\n", "annotation": ": str"}, "piped_api.models.comments.Comments.Comment.commentor_url": {"fullname": "piped_api.models.comments.Comments.Comment.commentor_url", "modulename": "piped_api.models.comments", "qualname": "Comments.Comment.commentor_url", "type": "variable", "doc": "

The URL of the channel that made the comment

\n", "annotation": ": str"}, "piped_api.models.comments.Comments.Comment.replies_page": {"fullname": "piped_api.models.comments.Comments.Comment.replies_page", "modulename": "piped_api.models.comments", "qualname": "Comments.Comment.replies_page", "type": "variable", "doc": "

Same as Comments.nextpage, but to load replies.

\n\n

None means that there are no replies.

\n", "annotation": ": Optional[str]"}, "piped_api.models.comments.Comments.Comment.hearted": {"fullname": "piped_api.models.comments.Comments.Comment.hearted", "modulename": "piped_api.models.comments", "qualname": "Comments.Comment.hearted", "type": "variable", "doc": "

Whether or not the comment has been hearted

\n", "annotation": ": bool"}, "piped_api.models.comments.Comments.Comment.like_count": {"fullname": "piped_api.models.comments.Comments.Comment.like_count", "modulename": "piped_api.models.comments", "qualname": "Comments.Comment.like_count", "type": "variable", "doc": "

The number of likes the comment has

\n", "annotation": ": int"}, "piped_api.models.comments.Comments.Comment.pinned": {"fullname": "piped_api.models.comments.Comments.Comment.pinned", "modulename": "piped_api.models.comments", "qualname": "Comments.Comment.pinned", "type": "variable", "doc": "

Whether or not the comment is pinned

\n", "annotation": ": bool"}, "piped_api.models.comments.Comments.Comment.thumbnail": {"fullname": "piped_api.models.comments.Comments.Comment.thumbnail", "modulename": "piped_api.models.comments", "qualname": "Comments.Comment.thumbnail", "type": "variable", "doc": "

The thumbnail of the commentor's channel

\n", "annotation": ": str"}, "piped_api.models.comments.Comments.Comment.verified": {"fullname": "piped_api.models.comments.Comments.Comment.verified", "modulename": "piped_api.models.comments", "qualname": "Comments.Comment.verified", "type": "variable", "doc": "

Whether or not the author of the comment is verified

\n", "annotation": ": bool"}, "piped_api.models.comments.Comments.get_comments": {"fullname": "piped_api.models.comments.Comments.get_comments", "modulename": "piped_api.models.comments", "qualname": "Comments.get_comments", "type": "function", "doc": "

Obtain a list of comments

\n", "signature": "(self) -> List[piped_api.models.comments.Comments.Comment]", "funcdef": "def"}, "piped_api.models.comments.Comments.disabled": {"fullname": "piped_api.models.comments.Comments.disabled", "modulename": "piped_api.models.comments", "qualname": "Comments.disabled", "type": "variable", "doc": "

Whether or not the comments are disabled

\n", "annotation": ": bool"}, "piped_api.models.comments.Comments.nextpage": {"fullname": "piped_api.models.comments.Comments.nextpage", "modulename": "piped_api.models.comments", "qualname": "Comments.nextpage", "type": "variable", "doc": "

A JSON encoded page, which is used for the nextpage endpoint.

\n\n

If there is no nextpage data, this returns None.

\n", "annotation": ": Optional[str]"}}, "docInfo": {"piped_api": {"qualname": 0, "fullname": 2, "annotation": 0, "default_value": 0, "signature": 0, "bases": 0, "doc": 3}, "piped_api.client": {"qualname": 0, "fullname": 3, "annotation": 0, "default_value": 0, "signature": 0, "bases": 0, "doc": 3}, "piped_api.client.PipedClient": {"qualname": 1, "fullname": 4, "annotation": 0, "default_value": 0, "signature": 0, "bases": 0, "doc": 10}, "piped_api.client.PipedClient.__init__": {"qualname": 3, "fullname": 6, "annotation": 0, "default_value": 0, "signature": 16, "bases": 0, "doc": 60}, "piped_api.client.PipedClient.get_comments": {"qualname": 3, "fullname": 6, "annotation": 0, "default_value": 0, "signature": 15, "bases": 0, "doc": 72}, "piped_api.models": {"qualname": 0, "fullname": 3, "annotation": 0, "default_value": 0, "signature": 0, "bases": 0, "doc": 3}, "piped_api.models.BasePipedModel": {"qualname": 1, "fullname": 4, "annotation": 0, "default_value": 0, "signature": 0, "bases": 0, "doc": 9}, "piped_api.models.BasePipedModel.__init__": {"qualname": 3, "fullname": 6, "annotation": 0, "default_value": 0, "signature": 6, "bases": 0, "doc": 24}, "piped_api.models.comments": {"qualname": 0, "fullname": 4, "annotation": 0, "default_value": 0, "signature": 0, "bases": 0, "doc": 3}, "piped_api.models.comments.Comments": {"qualname": 1, "fullname": 5, "annotation": 0, "default_value": 0, "signature": 0, "bases": 4, "doc": 9}, "piped_api.models.comments.Comments.Comment": {"qualname": 2, "fullname": 6, "annotation": 0, "default_value": 0, "signature": 0, "bases": 4, "doc": 9}, "piped_api.models.comments.Comments.Comment.author": {"qualname": 3, "fullname": 7, "annotation": 2, "default_value": 0, "signature": 0, "bases": 0, "doc": 10}, "piped_api.models.comments.Comments.Comment.comment_id": {"qualname": 4, "fullname": 8, "annotation": 2, "default_value": 0, "signature": 0, "bases": 0, "doc": 5}, "piped_api.models.comments.Comments.Comment.comment_text": {"qualname": 4, "fullname": 8, "annotation": 2, "default_value": 0, "signature": 0, "bases": 0, "doc": 7}, "piped_api.models.comments.Comments.Comment.commented_time": {"qualname": 4, "fullname": 8, "annotation": 2, "default_value": 0, "signature": 0, "bases": 0, "doc": 17}, "piped_api.models.comments.Comments.Comment.commentor_url": {"qualname": 4, "fullname": 8, "annotation": 2, "default_value": 0, "signature": 0, "bases": 0, "doc": 11}, "piped_api.models.comments.Comments.Comment.replies_page": {"qualname": 4, "fullname": 8, "annotation": 2, "default_value": 0, "signature": 0, "bases": 0, "doc": 25}, "piped_api.models.comments.Comments.Comment.hearted": {"qualname": 3, "fullname": 7, "annotation": 2, "default_value": 0, "signature": 0, "bases": 0, "doc": 10}, "piped_api.models.comments.Comments.Comment.like_count": {"qualname": 4, "fullname": 8, "annotation": 2, "default_value": 0, "signature": 0, "bases": 0, "doc": 9}, "piped_api.models.comments.Comments.Comment.pinned": {"qualname": 3, "fullname": 7, "annotation": 2, "default_value": 0, "signature": 0, "bases": 0, "doc": 9}, "piped_api.models.comments.Comments.Comment.thumbnail": {"qualname": 3, "fullname": 7, "annotation": 2, "default_value": 0, "signature": 0, "bases": 0, "doc": 9}, "piped_api.models.comments.Comments.Comment.verified": {"qualname": 3, "fullname": 7, "annotation": 2, "default_value": 0, "signature": 0, "bases": 0, "doc": 12}, "piped_api.models.comments.Comments.get_comments": {"qualname": 3, "fullname": 7, "annotation": 0, "default_value": 0, "signature": 9, "bases": 0, "doc": 7}, "piped_api.models.comments.Comments.disabled": {"qualname": 2, "fullname": 6, "annotation": 2, "default_value": 0, "signature": 0, "bases": 0, "doc": 9}, "piped_api.models.comments.Comments.nextpage": {"qualname": 2, "fullname": 6, "annotation": 2, "default_value": 0, "signature": 0, "bases": 0, "doc": 28}}, "length": 25, "save": true}, "index": {"qualname": {"root": {"docs": {"piped_api.client.PipedClient.__init__": {"tf": 1}, "piped_api.models.BasePipedModel.__init__": {"tf": 1}}, "df": 2, "p": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "t": {"docs": {"piped_api.client.PipedClient": {"tf": 1}, "piped_api.client.PipedClient.__init__": {"tf": 1}, "piped_api.client.PipedClient.get_comments": {"tf": 1}}, "df": 3}}}}}}}}}, "n": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "d": {"docs": {"piped_api.models.comments.Comments.Comment.pinned": {"tf": 1}}, "df": 1}}}}}, "a": {"docs": {}, "df": 0, "g": {"docs": {}, "df": 0, "e": {"docs": {"piped_api.models.comments.Comments.Comment.replies_page": {"tf": 1}}, "df": 1}}}}, "i": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "t": {"docs": {"piped_api.client.PipedClient.__init__": {"tf": 1}, "piped_api.models.BasePipedModel.__init__": {"tf": 1}}, "df": 2}}}, "d": {"docs": {"piped_api.models.comments.Comments.Comment.comment_id": {"tf": 1}}, "df": 1}}, "g": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "t": {"docs": {"piped_api.client.PipedClient.get_comments": {"tf": 1}, "piped_api.models.comments.Comments.get_comments": {"tf": 1}}, "df": 2}}}, "c": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "t": {"docs": {"piped_api.models.comments.Comments.Comment": {"tf": 1}, "piped_api.models.comments.Comments.Comment.author": {"tf": 1}, "piped_api.models.comments.Comments.Comment.comment_id": {"tf": 1.4142135623730951}, "piped_api.models.comments.Comments.Comment.comment_text": {"tf": 1.4142135623730951}, "piped_api.models.comments.Comments.Comment.commented_time": {"tf": 1}, "piped_api.models.comments.Comments.Comment.commentor_url": {"tf": 1}, "piped_api.models.comments.Comments.Comment.replies_page": {"tf": 1}, "piped_api.models.comments.Comments.Comment.hearted": {"tf": 1}, "piped_api.models.comments.Comments.Comment.like_count": {"tf": 1}, "piped_api.models.comments.Comments.Comment.pinned": {"tf": 1}, "piped_api.models.comments.Comments.Comment.thumbnail": {"tf": 1}, "piped_api.models.comments.Comments.Comment.verified": {"tf": 1}}, "df": 12, "s": {"docs": {"piped_api.client.PipedClient.get_comments": {"tf": 1}, "piped_api.models.comments.Comments": {"tf": 1}, "piped_api.models.comments.Comments.Comment": {"tf": 1}, "piped_api.models.comments.Comments.Comment.author": {"tf": 1}, "piped_api.models.comments.Comments.Comment.comment_id": {"tf": 1}, "piped_api.models.comments.Comments.Comment.comment_text": {"tf": 1}, "piped_api.models.comments.Comments.Comment.commented_time": {"tf": 1}, "piped_api.models.comments.Comments.Comment.commentor_url": {"tf": 1}, "piped_api.models.comments.Comments.Comment.replies_page": {"tf": 1}, "piped_api.models.comments.Comments.Comment.hearted": {"tf": 1}, "piped_api.models.comments.Comments.Comment.like_count": {"tf": 1}, "piped_api.models.comments.Comments.Comment.pinned": {"tf": 1}, "piped_api.models.comments.Comments.Comment.thumbnail": {"tf": 1}, "piped_api.models.comments.Comments.Comment.verified": {"tf": 1}, "piped_api.models.comments.Comments.get_comments": {"tf": 1.4142135623730951}, "piped_api.models.comments.Comments.disabled": {"tf": 1}, "piped_api.models.comments.Comments.nextpage": {"tf": 1}}, "df": 17}, "e": {"docs": {}, "df": 0, "d": {"docs": {"piped_api.models.comments.Comments.Comment.commented_time": {"tf": 1}}, "df": 1}}, "o": {"docs": {}, "df": 0, "r": {"docs": {"piped_api.models.comments.Comments.Comment.commentor_url": {"tf": 1}}, "df": 1}}}}}}}, "u": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "t": {"docs": {"piped_api.models.comments.Comments.Comment.like_count": {"tf": 1}}, "df": 1}}}}}, "b": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "l": {"docs": {"piped_api.models.BasePipedModel": {"tf": 1}, "piped_api.models.BasePipedModel.__init__": {"tf": 1}}, "df": 2}}}}}}}}}}}}}}, "a": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "h": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "r": {"docs": {"piped_api.models.comments.Comments.Comment.author": {"tf": 1}}, "df": 1}}}}}}, "t": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "x": {"docs": {}, "df": 0, "t": {"docs": {"piped_api.models.comments.Comments.Comment.comment_text": {"tf": 1}}, "df": 1}}}, "i": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "e": {"docs": {"piped_api.models.comments.Comments.Comment.commented_time": {"tf": 1}}, "df": 1}}}, "h": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "b": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "l": {"docs": {"piped_api.models.comments.Comments.Comment.thumbnail": {"tf": 1}}, "df": 1}}}}}}}}}, "u": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "l": {"docs": {"piped_api.models.comments.Comments.Comment.commentor_url": {"tf": 1}}, "df": 1}}}, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "s": {"docs": {"piped_api.models.comments.Comments.Comment.replies_page": {"tf": 1}}, "df": 1}}}}}}}, "h": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "d": {"docs": {"piped_api.models.comments.Comments.Comment.hearted": {"tf": 1}}, "df": 1}}}}}}}, "l": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "k": {"docs": {}, "df": 0, "e": {"docs": {"piped_api.models.comments.Comments.Comment.like_count": {"tf": 1}}, "df": 1}}}}, "v": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "f": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "d": {"docs": {"piped_api.models.comments.Comments.Comment.verified": {"tf": 1}}, "df": 1}}}}}}}}, "d": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "b": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "d": {"docs": {"piped_api.models.comments.Comments.disabled": {"tf": 1}}, "df": 1}}}}}}}}, "n": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "x": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "g": {"docs": {}, "df": 0, "e": {"docs": {"piped_api.models.comments.Comments.nextpage": {"tf": 1}}, "df": 1}}}}}}}}}}, "fullname": {"root": {"docs": {"piped_api.client.PipedClient.__init__": {"tf": 1}, "piped_api.models.BasePipedModel.__init__": {"tf": 1}}, "df": 2, "p": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "d": {"docs": {"piped_api": {"tf": 1}, "piped_api.client": {"tf": 1}, "piped_api.client.PipedClient": {"tf": 1}, "piped_api.client.PipedClient.__init__": {"tf": 1}, "piped_api.client.PipedClient.get_comments": {"tf": 1}, "piped_api.models": {"tf": 1}, "piped_api.models.BasePipedModel": {"tf": 1}, "piped_api.models.BasePipedModel.__init__": {"tf": 1}, "piped_api.models.comments": {"tf": 1}, "piped_api.models.comments.Comments": {"tf": 1}, "piped_api.models.comments.Comments.Comment": {"tf": 1}, "piped_api.models.comments.Comments.Comment.author": {"tf": 1}, "piped_api.models.comments.Comments.Comment.comment_id": {"tf": 1}, "piped_api.models.comments.Comments.Comment.comment_text": {"tf": 1}, "piped_api.models.comments.Comments.Comment.commented_time": {"tf": 1}, "piped_api.models.comments.Comments.Comment.commentor_url": {"tf": 1}, "piped_api.models.comments.Comments.Comment.replies_page": {"tf": 1}, "piped_api.models.comments.Comments.Comment.hearted": {"tf": 1}, "piped_api.models.comments.Comments.Comment.like_count": {"tf": 1}, "piped_api.models.comments.Comments.Comment.pinned": {"tf": 1}, "piped_api.models.comments.Comments.Comment.thumbnail": {"tf": 1}, "piped_api.models.comments.Comments.Comment.verified": {"tf": 1}, "piped_api.models.comments.Comments.get_comments": {"tf": 1}, "piped_api.models.comments.Comments.disabled": {"tf": 1}, "piped_api.models.comments.Comments.nextpage": {"tf": 1}}, "df": 25, "c": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "t": {"docs": {"piped_api.client.PipedClient": {"tf": 1}, "piped_api.client.PipedClient.__init__": {"tf": 1}, "piped_api.client.PipedClient.get_comments": {"tf": 1}}, "df": 3}}}}}}}}}, "n": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "d": {"docs": {"piped_api.models.comments.Comments.Comment.pinned": {"tf": 1}}, "df": 1}}}}}, "a": {"docs": {}, "df": 0, "g": {"docs": {}, "df": 0, "e": {"docs": {"piped_api.models.comments.Comments.Comment.replies_page": {"tf": 1}}, "df": 1}}}}, "a": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "i": {"docs": {"piped_api": {"tf": 1}, "piped_api.client": {"tf": 1}, "piped_api.client.PipedClient": {"tf": 1}, "piped_api.client.PipedClient.__init__": {"tf": 1}, "piped_api.client.PipedClient.get_comments": {"tf": 1}, "piped_api.models": {"tf": 1}, "piped_api.models.BasePipedModel": {"tf": 1}, "piped_api.models.BasePipedModel.__init__": {"tf": 1}, "piped_api.models.comments": {"tf": 1}, "piped_api.models.comments.Comments": {"tf": 1}, "piped_api.models.comments.Comments.Comment": {"tf": 1}, "piped_api.models.comments.Comments.Comment.author": {"tf": 1}, "piped_api.models.comments.Comments.Comment.comment_id": {"tf": 1}, "piped_api.models.comments.Comments.Comment.comment_text": {"tf": 1}, "piped_api.models.comments.Comments.Comment.commented_time": {"tf": 1}, "piped_api.models.comments.Comments.Comment.commentor_url": {"tf": 1}, "piped_api.models.comments.Comments.Comment.replies_page": {"tf": 1}, "piped_api.models.comments.Comments.Comment.hearted": {"tf": 1}, "piped_api.models.comments.Comments.Comment.like_count": {"tf": 1}, "piped_api.models.comments.Comments.Comment.pinned": {"tf": 1}, "piped_api.models.comments.Comments.Comment.thumbnail": {"tf": 1}, "piped_api.models.comments.Comments.Comment.verified": {"tf": 1}, "piped_api.models.comments.Comments.get_comments": {"tf": 1}, "piped_api.models.comments.Comments.disabled": {"tf": 1}, "piped_api.models.comments.Comments.nextpage": {"tf": 1}}, "df": 25}}, "u": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "h": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "r": {"docs": {"piped_api.models.comments.Comments.Comment.author": {"tf": 1}}, "df": 1}}}}}}, "c": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "t": {"docs": {"piped_api.client": {"tf": 1}, "piped_api.client.PipedClient": {"tf": 1}, "piped_api.client.PipedClient.__init__": {"tf": 1}, "piped_api.client.PipedClient.get_comments": {"tf": 1}}, "df": 4}}}}}, "o": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "t": {"docs": {"piped_api.models.comments.Comments.Comment": {"tf": 1}, "piped_api.models.comments.Comments.Comment.author": {"tf": 1}, "piped_api.models.comments.Comments.Comment.comment_id": {"tf": 1.4142135623730951}, "piped_api.models.comments.Comments.Comment.comment_text": {"tf": 1.4142135623730951}, "piped_api.models.comments.Comments.Comment.commented_time": {"tf": 1}, "piped_api.models.comments.Comments.Comment.commentor_url": {"tf": 1}, "piped_api.models.comments.Comments.Comment.replies_page": {"tf": 1}, "piped_api.models.comments.Comments.Comment.hearted": {"tf": 1}, "piped_api.models.comments.Comments.Comment.like_count": {"tf": 1}, "piped_api.models.comments.Comments.Comment.pinned": {"tf": 1}, "piped_api.models.comments.Comments.Comment.thumbnail": {"tf": 1}, "piped_api.models.comments.Comments.Comment.verified": {"tf": 1}}, "df": 12, "s": {"docs": {"piped_api.client.PipedClient.get_comments": {"tf": 1}, "piped_api.models.comments": {"tf": 1}, "piped_api.models.comments.Comments": {"tf": 1.4142135623730951}, "piped_api.models.comments.Comments.Comment": {"tf": 1.4142135623730951}, "piped_api.models.comments.Comments.Comment.author": {"tf": 1.4142135623730951}, "piped_api.models.comments.Comments.Comment.comment_id": {"tf": 1.4142135623730951}, "piped_api.models.comments.Comments.Comment.comment_text": {"tf": 1.4142135623730951}, "piped_api.models.comments.Comments.Comment.commented_time": {"tf": 1.4142135623730951}, "piped_api.models.comments.Comments.Comment.commentor_url": {"tf": 1.4142135623730951}, "piped_api.models.comments.Comments.Comment.replies_page": {"tf": 1.4142135623730951}, "piped_api.models.comments.Comments.Comment.hearted": {"tf": 1.4142135623730951}, "piped_api.models.comments.Comments.Comment.like_count": {"tf": 1.4142135623730951}, "piped_api.models.comments.Comments.Comment.pinned": {"tf": 1.4142135623730951}, "piped_api.models.comments.Comments.Comment.thumbnail": {"tf": 1.4142135623730951}, "piped_api.models.comments.Comments.Comment.verified": {"tf": 1.4142135623730951}, "piped_api.models.comments.Comments.get_comments": {"tf": 1.7320508075688772}, "piped_api.models.comments.Comments.disabled": {"tf": 1.4142135623730951}, "piped_api.models.comments.Comments.nextpage": {"tf": 1.4142135623730951}}, "df": 18}, "e": {"docs": {}, "df": 0, "d": {"docs": {"piped_api.models.comments.Comments.Comment.commented_time": {"tf": 1}}, "df": 1}}, "o": {"docs": {}, "df": 0, "r": {"docs": {"piped_api.models.comments.Comments.Comment.commentor_url": {"tf": 1}}, "df": 1}}}}}}}, "u": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "t": {"docs": {"piped_api.models.comments.Comments.Comment.like_count": {"tf": 1}}, "df": 1}}}}}, "i": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "t": {"docs": {"piped_api.client.PipedClient.__init__": {"tf": 1}, "piped_api.models.BasePipedModel.__init__": {"tf": 1}}, "df": 2}}}, "d": {"docs": {"piped_api.models.comments.Comments.Comment.comment_id": {"tf": 1}}, "df": 1}}, "g": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "t": {"docs": {"piped_api.client.PipedClient.get_comments": {"tf": 1}, "piped_api.models.comments.Comments.get_comments": {"tf": 1}}, "df": 2}}}, "m": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "s": {"docs": {"piped_api.models": {"tf": 1}, "piped_api.models.BasePipedModel": {"tf": 1}, "piped_api.models.BasePipedModel.__init__": {"tf": 1}, "piped_api.models.comments": {"tf": 1}, "piped_api.models.comments.Comments": {"tf": 1}, "piped_api.models.comments.Comments.Comment": {"tf": 1}, "piped_api.models.comments.Comments.Comment.author": {"tf": 1}, "piped_api.models.comments.Comments.Comment.comment_id": {"tf": 1}, "piped_api.models.comments.Comments.Comment.comment_text": {"tf": 1}, "piped_api.models.comments.Comments.Comment.commented_time": {"tf": 1}, "piped_api.models.comments.Comments.Comment.commentor_url": {"tf": 1}, "piped_api.models.comments.Comments.Comment.replies_page": {"tf": 1}, "piped_api.models.comments.Comments.Comment.hearted": {"tf": 1}, "piped_api.models.comments.Comments.Comment.like_count": {"tf": 1}, "piped_api.models.comments.Comments.Comment.pinned": {"tf": 1}, "piped_api.models.comments.Comments.Comment.thumbnail": {"tf": 1}, "piped_api.models.comments.Comments.Comment.verified": {"tf": 1}, "piped_api.models.comments.Comments.get_comments": {"tf": 1}, "piped_api.models.comments.Comments.disabled": {"tf": 1}, "piped_api.models.comments.Comments.nextpage": {"tf": 1}}, "df": 20}}}}}}, "b": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "l": {"docs": {"piped_api.models.BasePipedModel": {"tf": 1}, "piped_api.models.BasePipedModel.__init__": {"tf": 1}}, "df": 2}}}}}}}}}}}}}}, "t": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "x": {"docs": {}, "df": 0, "t": {"docs": {"piped_api.models.comments.Comments.Comment.comment_text": {"tf": 1}}, "df": 1}}}, "i": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "e": {"docs": {"piped_api.models.comments.Comments.Comment.commented_time": {"tf": 1}}, "df": 1}}}, "h": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "b": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "l": {"docs": {"piped_api.models.comments.Comments.Comment.thumbnail": {"tf": 1}}, "df": 1}}}}}}}}}, "u": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "l": {"docs": {"piped_api.models.comments.Comments.Comment.commentor_url": {"tf": 1}}, "df": 1}}}, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "s": {"docs": {"piped_api.models.comments.Comments.Comment.replies_page": {"tf": 1}}, "df": 1}}}}}}}, "h": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "d": {"docs": {"piped_api.models.comments.Comments.Comment.hearted": {"tf": 1}}, "df": 1}}}}}}}, "l": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "k": {"docs": {}, "df": 0, "e": {"docs": {"piped_api.models.comments.Comments.Comment.like_count": {"tf": 1}}, "df": 1}}}}, "v": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "f": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "d": {"docs": {"piped_api.models.comments.Comments.Comment.verified": {"tf": 1}}, "df": 1}}}}}}}}, "d": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "b": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "d": {"docs": {"piped_api.models.comments.Comments.disabled": {"tf": 1}}, "df": 1}}}}}}}}, "n": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "x": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "g": {"docs": {}, "df": 0, "e": {"docs": {"piped_api.models.comments.Comments.nextpage": {"tf": 1}}, "df": 1}}}}}}}}}}, "annotation": {"root": {"docs": {"piped_api.models.comments.Comments.Comment.author": {"tf": 1}, "piped_api.models.comments.Comments.Comment.comment_id": {"tf": 1}, "piped_api.models.comments.Comments.Comment.comment_text": {"tf": 1}, "piped_api.models.comments.Comments.Comment.commented_time": {"tf": 1}, "piped_api.models.comments.Comments.Comment.commentor_url": {"tf": 1}, "piped_api.models.comments.Comments.Comment.replies_page": {"tf": 1}, "piped_api.models.comments.Comments.Comment.hearted": {"tf": 1}, "piped_api.models.comments.Comments.Comment.like_count": {"tf": 1}, "piped_api.models.comments.Comments.Comment.pinned": {"tf": 1}, "piped_api.models.comments.Comments.Comment.thumbnail": {"tf": 1}, "piped_api.models.comments.Comments.Comment.verified": {"tf": 1}, "piped_api.models.comments.Comments.disabled": {"tf": 1}, "piped_api.models.comments.Comments.nextpage": {"tf": 1}}, "df": 13, "s": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "r": {"docs": {"piped_api.models.comments.Comments.Comment.author": {"tf": 1}, "piped_api.models.comments.Comments.Comment.comment_id": {"tf": 1}, "piped_api.models.comments.Comments.Comment.comment_text": {"tf": 1}, "piped_api.models.comments.Comments.Comment.commented_time": {"tf": 1}, "piped_api.models.comments.Comments.Comment.commentor_url": {"tf": 1}, "piped_api.models.comments.Comments.Comment.thumbnail": {"tf": 1}}, "df": 6}}}, "o": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "[": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "r": {"docs": {"piped_api.models.comments.Comments.Comment.replies_page": {"tf": 1}, "piped_api.models.comments.Comments.nextpage": {"tf": 1}}, "df": 2}}}}}}}}}}}}, "b": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "l": {"docs": {"piped_api.models.comments.Comments.Comment.hearted": {"tf": 1}, "piped_api.models.comments.Comments.Comment.pinned": {"tf": 1}, "piped_api.models.comments.Comments.Comment.verified": {"tf": 1}, "piped_api.models.comments.Comments.disabled": {"tf": 1}}, "df": 4}}}}, "i": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "t": {"docs": {"piped_api.models.comments.Comments.Comment.like_count": {"tf": 1}}, "df": 1}}}}}, "default_value": {"root": {"docs": {}, "df": 0}}, "signature": {"root": {"docs": {"piped_api.client.PipedClient.__init__": {"tf": 2}, "piped_api.client.PipedClient.get_comments": {"tf": 1.4142135623730951}, "piped_api.models.BasePipedModel.__init__": {"tf": 1.4142135623730951}, "piped_api.models.comments.Comments.get_comments": {"tf": 1.4142135623730951}}, "df": 4, "s": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "f": {"docs": {"piped_api.client.PipedClient.__init__": {"tf": 1}, "piped_api.client.PipedClient.get_comments": {"tf": 1}, "piped_api.models.BasePipedModel.__init__": {"tf": 1}, "piped_api.models.comments.Comments.get_comments": {"tf": 1}}, "df": 4}}, "s": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {"piped_api.client.PipedClient.__init__": {"tf": 1.4142135623730951}}, "df": 1, "s": {"docs": {"piped_api.client.PipedClient.__init__": {"tf": 1}}, "df": 1}}}}}}}, "t": {"docs": {}, "df": 0, "r": {"docs": {"piped_api.client.PipedClient.__init__": {"tf": 1}, "piped_api.client.PipedClient.get_comments": {"tf": 1}}, "df": 2}}}, "b": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "e": {"docs": {"piped_api.client.PipedClient.__init__": {"tf": 1}}, "df": 1}}}}, "a": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "i": {"docs": {"piped_api.client.PipedClient.__init__": {"tf": 1}, "piped_api.client.PipedClient.get_comments": {"tf": 1}, "piped_api.models.comments.Comments.get_comments": {"tf": 1}}, "df": 3}}, "n": {"docs": {}, "df": 0, "y": {"docs": {"piped_api.models.BasePipedModel.__init__": {"tf": 1}}, "df": 1}}}, "u": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "l": {"docs": {"piped_api.client.PipedClient.__init__": {"tf": 1}}, "df": 1}}}, "h": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, ":": {"docs": {}, "df": 0, "/": {"docs": {}, "df": 0, "/": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "i": {"docs": {"piped_api.client.PipedClient.__init__": {"tf": 1}}, "df": 1}}}}}}}}}}}}}}}}, "k": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "v": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "n": {"docs": {"piped_api.client.PipedClient.__init__": {"tf": 1}}, "df": 1}}}}}, "r": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "k": {"docs": {}, "df": 0, "s": {"docs": {"piped_api.client.PipedClient.__init__": {"tf": 1}}, "df": 1}}}}}, "t": {"docs": {}, "df": 0, "y": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "[": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "q": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "s": {"docs": {"piped_api.client.PipedClient.__init__": {"tf": 1}}, "df": 1}}}}}}}}}}}}}, "v": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "o": {"docs": {"piped_api.client.PipedClient.get_comments": {"tf": 1}}, "df": 1}}}}}, "i": {"docs": {}, "df": 0, "d": {"docs": {"piped_api.client.PipedClient.get_comments": {"tf": 1}}, "df": 1}}, "n": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "x": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "g": {"docs": {}, "df": 0, "e": {"docs": {"piped_api.client.PipedClient.get_comments": {"tf": 1}}, "df": 1}}}}}}}, "o": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "e": {"docs": {"piped_api.client.PipedClient.get_comments": {"tf": 1}}, "df": 1}}}}, "o": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "[": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "[": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "r": {"docs": {"piped_api.client.PipedClient.get_comments": {"tf": 1}}, "df": 1}}}}}}}}, "s": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "r": {"docs": {"piped_api.client.PipedClient.get_comments": {"tf": 1}}, "df": 1}}}}}}}}}}}}, "p": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "d": {"docs": {"piped_api.client.PipedClient.get_comments": {"tf": 1}}, "df": 1}}}}}, "m": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "s": {"docs": {"piped_api.client.PipedClient.get_comments": {"tf": 1}, "piped_api.models.comments.Comments.get_comments": {"tf": 1}}, "df": 2}}}}}}, "c": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "t": {"docs": {"piped_api.models.comments.Comments.get_comments": {"tf": 1}}, "df": 1, "s": {"docs": {"piped_api.client.PipedClient.get_comments": {"tf": 1.4142135623730951}, "piped_api.models.comments.Comments.get_comments": {"tf": 1.4142135623730951}}, "df": 2}}}}}}}}, "d": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "a": {"docs": {"piped_api.models.BasePipedModel.__init__": {"tf": 1}}, "df": 1}}}, "i": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "[": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "r": {"docs": {"piped_api.models.BasePipedModel.__init__": {"tf": 1}}, "df": 1}}}}}}}}, "l": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "[": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "d": {"docs": {"piped_api.models.comments.Comments.get_comments": {"tf": 1}}, "df": 1}}}}}}}}}}}}, "bases": {"root": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "d": {"docs": {"piped_api.models.comments.Comments": {"tf": 1}, "piped_api.models.comments.Comments.Comment": {"tf": 1}}, "df": 2}}}}}, "a": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "i": {"docs": {"piped_api.models.comments.Comments": {"tf": 1}, "piped_api.models.comments.Comments.Comment": {"tf": 1}}, "df": 2}}}, "m": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "s": {"docs": {"piped_api.models.comments.Comments": {"tf": 1}, "piped_api.models.comments.Comments.Comment": {"tf": 1}}, "df": 2}}}}}}, "b": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "l": {"docs": {"piped_api.models.comments.Comments": {"tf": 1}, "piped_api.models.comments.Comments.Comment": {"tf": 1}}, "df": 2}}}}}}}}}}}}}}}}, "doc": {"root": {"2": {"0": {"docs": {"piped_api.client.PipedClient.get_comments": {"tf": 1}}, "df": 1}, "docs": {}, "df": 0}, "docs": {"piped_api": {"tf": 1.7320508075688772}, "piped_api.client": {"tf": 1.7320508075688772}, "piped_api.client.PipedClient": {"tf": 2.23606797749979}, "piped_api.client.PipedClient.__init__": {"tf": 4.47213595499958}, "piped_api.client.PipedClient.get_comments": {"tf": 4.795831523312719}, "piped_api.models": {"tf": 1.7320508075688772}, "piped_api.models.BasePipedModel": {"tf": 1.7320508075688772}, "piped_api.models.BasePipedModel.__init__": {"tf": 3.605551275463989}, "piped_api.models.comments": {"tf": 1.7320508075688772}, "piped_api.models.comments.Comments": {"tf": 1.7320508075688772}, "piped_api.models.comments.Comments.Comment": {"tf": 1.7320508075688772}, "piped_api.models.comments.Comments.Comment.author": {"tf": 1.4142135623730951}, "piped_api.models.comments.Comments.Comment.comment_id": {"tf": 1.4142135623730951}, "piped_api.models.comments.Comments.Comment.comment_text": {"tf": 1.4142135623730951}, "piped_api.models.comments.Comments.Comment.commented_time": {"tf": 2.6457513110645907}, "piped_api.models.comments.Comments.Comment.commentor_url": {"tf": 1.4142135623730951}, "piped_api.models.comments.Comments.Comment.replies_page": {"tf": 3.1622776601683795}, "piped_api.models.comments.Comments.Comment.hearted": {"tf": 1.4142135623730951}, "piped_api.models.comments.Comments.Comment.like_count": {"tf": 1.4142135623730951}, "piped_api.models.comments.Comments.Comment.pinned": {"tf": 1.4142135623730951}, "piped_api.models.comments.Comments.Comment.thumbnail": {"tf": 1.4142135623730951}, "piped_api.models.comments.Comments.Comment.verified": {"tf": 1.4142135623730951}, "piped_api.models.comments.Comments.get_comments": {"tf": 1.4142135623730951}, "piped_api.models.comments.Comments.disabled": {"tf": 1.4142135623730951}, "piped_api.models.comments.Comments.nextpage": {"tf": 2.8284271247461903}}, "df": 25, "a": {"docs": {"piped_api.client.PipedClient.__init__": {"tf": 1}, "piped_api.client.PipedClient.get_comments": {"tf": 1.4142135623730951}, "piped_api.models.comments.Comments.get_comments": {"tf": 1}, "piped_api.models.comments.Comments.nextpage": {"tf": 1}}, "df": 4, "n": {"docs": {"piped_api.client.PipedClient": {"tf": 1}}, "df": 1}, "p": {"docs": {}, "df": 0, "i": {"docs": {"piped_api.client.PipedClient": {"tf": 1}, "piped_api.client.PipedClient.__init__": {"tf": 1.4142135623730951}}, "df": 2}}, "l": {"docs": {}, "df": 0, "l": {"docs": {"piped_api.client.PipedClient.__init__": {"tf": 1.4142135623730951}, "piped_api.models.BasePipedModel": {"tf": 1}, "piped_api.models.comments.Comments": {"tf": 1}, "piped_api.models.comments.Comments.Comment": {"tf": 1}}, "df": 4}}, "r": {"docs": {}, "df": 0, "e": {"docs": {"piped_api.client.PipedClient.get_comments": {"tf": 1}, "piped_api.models.comments.Comments.Comment.replies_page": {"tf": 1}, "piped_api.models.comments.Comments.disabled": {"tf": 1}}, "df": 3}}, "u": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "h": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "r": {"docs": {"piped_api.models.comments.Comments.Comment.author": {"tf": 1}, "piped_api.models.comments.Comments.Comment.verified": {"tf": 1}}, "df": 2}}}}}, "g": {"docs": {}, "df": 0, "o": {"docs": {"piped_api.models.comments.Comments.Comment.commented_time": {"tf": 1}}, "df": 1}}, "s": {"docs": {"piped_api.models.comments.Comments.Comment.replies_page": {"tf": 1}}, "df": 1}}, "c": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "t": {"docs": {"piped_api.client.PipedClient": {"tf": 1}}, "df": 1}}}}, "a": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "s": {"docs": {"piped_api.models.BasePipedModel": {"tf": 1}, "piped_api.models.comments.Comments": {"tf": 1}, "piped_api.models.comments.Comments.Comment": {"tf": 1}}, "df": 3, "/": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "b": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "s": {"docs": {"piped_api.client.PipedClient.__init__": {"tf": 1}}, "df": 1}}}}}}}}}}}}}, "o": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "d": {"docs": {"piped_api.client.PipedClient.__init__": {"tf": 1}}, "df": 1}}}, "m": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "t": {"docs": {"piped_api.models.comments.Comments.Comment.author": {"tf": 1}, "piped_api.models.comments.Comments.Comment.comment_id": {"tf": 1}, "piped_api.models.comments.Comments.Comment.comment_text": {"tf": 1}, "piped_api.models.comments.Comments.Comment.commented_time": {"tf": 1}, "piped_api.models.comments.Comments.Comment.commentor_url": {"tf": 1}, "piped_api.models.comments.Comments.Comment.hearted": {"tf": 1}, "piped_api.models.comments.Comments.Comment.like_count": {"tf": 1}, "piped_api.models.comments.Comments.Comment.pinned": {"tf": 1}, "piped_api.models.comments.Comments.Comment.verified": {"tf": 1}}, "df": 9, "s": {"docs": {"piped_api.client.PipedClient.get_comments": {"tf": 2.449489742783178}, "piped_api.models.comments.Comments.Comment.replies_page": {"tf": 1}, "piped_api.models.comments.Comments.get_comments": {"tf": 1}, "piped_api.models.comments.Comments.disabled": {"tf": 1}}, "df": 4}, "o": {"docs": {}, "df": 0, "r": {"docs": {"piped_api.models.comments.Comments.Comment.thumbnail": {"tf": 1}}, "df": 1}}}}}}}}, "a": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "h": {"docs": {}, "df": 0, "e": {"docs": {"piped_api.client.PipedClient.__init__": {"tf": 1}}, "df": 1, "a": {"docs": {}, "df": 0, "b": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {"piped_api.client.PipedClient.__init__": {"tf": 1}}, "df": 1}}}}}}}}, "h": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "l": {"docs": {"piped_api.models.comments.Comments.Comment.commentor_url": {"tf": 1}, "piped_api.models.comments.Comments.Comment.thumbnail": {"tf": 1}}, "df": 2}}}}}}}, "f": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "r": {"docs": {"piped_api.client.PipedClient": {"tf": 1}, "piped_api.client.PipedClient.__init__": {"tf": 1.4142135623730951}, "piped_api.client.PipedClient.get_comments": {"tf": 1.4142135623730951}, "piped_api.models.BasePipedModel": {"tf": 1}, "piped_api.models.comments.Comments": {"tf": 1}, "piped_api.models.comments.Comments.Comment": {"tf": 1}, "piped_api.models.comments.Comments.nextpage": {"tf": 1}}, "df": 7, "m": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "t": {"docs": {"piped_api.models.comments.Comments.Comment.commented_time": {"tf": 1}}, "df": 1}}}}}, "r": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "m": {"docs": {"piped_api.client.PipedClient.get_comments": {"tf": 1}}, "df": 1}}}, "i": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "t": {"docs": {"piped_api.client.PipedClient.get_comments": {"tf": 1}}, "df": 1}}}}}, "p": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "d": {"docs": {"piped_api.client.PipedClient": {"tf": 1}, "piped_api.models.BasePipedModel": {"tf": 1}, "piped_api.models.comments.Comments": {"tf": 1}, "piped_api.models.comments.Comments.Comment": {"tf": 1}}, "df": 4}}}, "n": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "d": {"docs": {"piped_api.models.comments.Comments.Comment.pinned": {"tf": 1}}, "df": 1}}}}}, "a": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "s": {"docs": {"piped_api.client.PipedClient.__init__": {"tf": 1}, "piped_api.client.PipedClient.get_comments": {"tf": 1}, "piped_api.models.BasePipedModel.__init__": {"tf": 1}}, "df": 3}}}}}}}}, "g": {"docs": {}, "df": 0, "e": {"docs": {"piped_api.client.PipedClient.get_comments": {"tf": 1.4142135623730951}, "piped_api.models.comments.Comments.nextpage": {"tf": 1}}, "df": 2}}}, "r": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "y": {"docs": {"piped_api.client.PipedClient.get_comments": {"tf": 1}}, "df": 1}}}}}}}, "e": {"docs": {}, "df": 0, "r": {"docs": {"piped_api.client.PipedClient.get_comments": {"tf": 1}}, "df": 1}}}, "b": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "e": {"docs": {"piped_api.client.PipedClient.__init__": {"tf": 1.4142135623730951}, "piped_api.models.BasePipedModel": {"tf": 1}, "piped_api.models.comments.Comments": {"tf": 1}, "piped_api.models.comments.Comments.Comment": {"tf": 1}}, "df": 4}}}, "e": {"docs": {"piped_api.client.PipedClient.__init__": {"tf": 1}}, "df": 1, "e": {"docs": {}, "df": 0, "n": {"docs": {"piped_api.models.comments.Comments.Comment.hearted": {"tf": 1}}, "df": 1}}}, "u": {"docs": {}, "df": 0, "t": {"docs": {"piped_api.models.comments.Comments.Comment.replies_page": {"tf": 1}}, "df": 1}}}, "u": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "l": {"docs": {"piped_api.client.PipedClient.__init__": {"tf": 1.4142135623730951}, "piped_api.models.comments.Comments.Comment.commentor_url": {"tf": 1}}, "df": 2}}, "s": {"docs": {}, "df": 0, "e": {"docs": {"piped_api.client.PipedClient.__init__": {"tf": 1.4142135623730951}}, "df": 1, "d": {"docs": {"piped_api.models.comments.Comments.nextpage": {"tf": 1}}, "df": 1}}}}, "t": {"docs": {}, "df": 0, "h": {"docs": {}, "df": 0, "e": {"docs": {"piped_api.client.PipedClient.__init__": {"tf": 1.4142135623730951}, "piped_api.client.PipedClient.get_comments": {"tf": 1.7320508075688772}, "piped_api.models.BasePipedModel.__init__": {"tf": 1.4142135623730951}, "piped_api.models.comments.Comments.Comment.author": {"tf": 1.7320508075688772}, "piped_api.models.comments.Comments.Comment.comment_id": {"tf": 1}, "piped_api.models.comments.Comments.Comment.comment_text": {"tf": 1.4142135623730951}, "piped_api.models.comments.Comments.Comment.commented_time": {"tf": 1.4142135623730951}, "piped_api.models.comments.Comments.Comment.commentor_url": {"tf": 1.7320508075688772}, "piped_api.models.comments.Comments.Comment.hearted": {"tf": 1}, "piped_api.models.comments.Comments.Comment.like_count": {"tf": 1.4142135623730951}, "piped_api.models.comments.Comments.Comment.pinned": {"tf": 1}, "piped_api.models.comments.Comments.Comment.thumbnail": {"tf": 1.4142135623730951}, "piped_api.models.comments.Comments.Comment.verified": {"tf": 1.4142135623730951}, "piped_api.models.comments.Comments.disabled": {"tf": 1}, "piped_api.models.comments.Comments.nextpage": {"tf": 1}}, "df": 15, "r": {"docs": {}, "df": 0, "e": {"docs": {"piped_api.client.PipedClient.get_comments": {"tf": 1}, "piped_api.models.comments.Comments.Comment.replies_page": {"tf": 1}, "piped_api.models.comments.Comments.nextpage": {"tf": 1}}, "df": 3}}}, "i": {"docs": {}, "df": 0, "s": {"docs": {"piped_api.client.PipedClient.get_comments": {"tf": 1}, "piped_api.models.comments.Comments.nextpage": {"tf": 1}}, "df": 2}}, "a": {"docs": {}, "df": 0, "t": {"docs": {"piped_api.models.comments.Comments.Comment.commentor_url": {"tf": 1}, "piped_api.models.comments.Comments.Comment.replies_page": {"tf": 1}}, "df": 2}}, "u": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "b": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "l": {"docs": {"piped_api.models.comments.Comments.Comment.thumbnail": {"tf": 1}}, "df": 1}}}}}}}}, "o": {"docs": {"piped_api.client.PipedClient.__init__": {"tf": 1.7320508075688772}, "piped_api.client.PipedClient.get_comments": {"tf": 1}, "piped_api.models.BasePipedModel.__init__": {"tf": 1}, "piped_api.models.comments.Comments.Comment.replies_page": {"tf": 1}}, "df": 4}, "r": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "g": {"docs": {"piped_api.client.PipedClient.__init__": {"tf": 1}}, "df": 1}}}}}}}, "e": {"docs": {}, "df": 0, "x": {"docs": {}, "df": 0, "t": {"docs": {"piped_api.models.comments.Comments.Comment.comment_text": {"tf": 1}}, "df": 1}}}, "i": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "e": {"docs": {"piped_api.models.comments.Comments.Comment.commented_time": {"tf": 1}}, "df": 1}}}}, "i": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "e": {"docs": {"piped_api.client.PipedClient.__init__": {"tf": 1}}, "df": 1}}}}}}, "i": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "z": {"docs": {}, "df": 0, "e": {"docs": {"piped_api.models.BasePipedModel.__init__": {"tf": 1}}, "df": 1}}}}}}}}}, "d": {"docs": {"piped_api.client.PipedClient.get_comments": {"tf": 1.4142135623730951}, "piped_api.models.comments.Comments.Comment.comment_id": {"tf": 1}}, "df": 2}, "f": {"docs": {"piped_api.client.PipedClient.get_comments": {"tf": 1}, "piped_api.models.comments.Comments.nextpage": {"tf": 1}}, "df": 2}, "s": {"docs": {"piped_api.client.PipedClient.get_comments": {"tf": 1.4142135623730951}, "piped_api.models.comments.Comments.Comment.pinned": {"tf": 1}, "piped_api.models.comments.Comments.Comment.verified": {"tf": 1}, "piped_api.models.comments.Comments.nextpage": {"tf": 1.4142135623730951}}, "df": 4}}, "s": {"docs": {"piped_api.client.PipedClient.__init__": {"tf": 1}, "piped_api.models.comments.Comments.Comment.thumbnail": {"tf": 1}}, "df": 2, "l": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "h": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "s": {"docs": {"piped_api.client.PipedClient.__init__": {"tf": 1}}, "df": 1}}}}}}, "t": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "d": {"docs": {"piped_api.client.PipedClient.__init__": {"tf": 1}}, "df": 1}}}}}}}, "e": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {"piped_api.client.PipedClient.__init__": {"tf": 1.4142135623730951}}, "df": 1}}}}}}, "p": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "f": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "c": {"docs": {"piped_api.client.PipedClient.get_comments": {"tf": 1}}, "df": 1}}}}}}}, "a": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "e": {"docs": {"piped_api.models.comments.Comments.Comment.replies_page": {"tf": 1}}, "df": 1}}}}, "w": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "l": {"docs": {"piped_api.client.PipedClient.__init__": {"tf": 1}}, "df": 1}}, "t": {"docs": {}, "df": 0, "h": {"docs": {"piped_api.models.BasePipedModel.__init__": {"tf": 1}}, "df": 1}}}, "a": {"docs": {}, "df": 0, "s": {"docs": {"piped_api.models.comments.Comments.Comment.commented_time": {"tf": 1}}, "df": 1}}, "h": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "h": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {"piped_api.models.comments.Comments.Comment.hearted": {"tf": 1}, "piped_api.models.comments.Comments.Comment.pinned": {"tf": 1}, "piped_api.models.comments.Comments.Comment.verified": {"tf": 1}, "piped_api.models.comments.Comments.disabled": {"tf": 1}}, "df": 4}}}}}, "i": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "h": {"docs": {"piped_api.models.comments.Comments.nextpage": {"tf": 1}}, "df": 1}}}}}, "o": {"docs": {}, "df": 0, "f": {"docs": {"piped_api.client.PipedClient.__init__": {"tf": 1}, "piped_api.client.PipedClient.get_comments": {"tf": 1.7320508075688772}, "piped_api.models.comments.Comments.Comment.author": {"tf": 1.4142135623730951}, "piped_api.models.comments.Comments.Comment.comment_text": {"tf": 1}, "piped_api.models.comments.Comments.Comment.commentor_url": {"tf": 1}, "piped_api.models.comments.Comments.Comment.like_count": {"tf": 1}, "piped_api.models.comments.Comments.Comment.thumbnail": {"tf": 1}, "piped_api.models.comments.Comments.Comment.verified": {"tf": 1}, "piped_api.models.comments.Comments.get_comments": {"tf": 1}}, "df": 9, "t": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "n": {"docs": {"piped_api.client.PipedClient.get_comments": {"tf": 1}}, "df": 1}}}}, "b": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "n": {"docs": {"piped_api.models.comments.Comments.get_comments": {"tf": 1}}, "df": 1, "e": {"docs": {}, "df": 0, "d": {"docs": {"piped_api.client.PipedClient.get_comments": {"tf": 1}}, "df": 1}}}}}}}, "r": {"docs": {"piped_api.models.comments.Comments.Comment.hearted": {"tf": 1}, "piped_api.models.comments.Comments.Comment.pinned": {"tf": 1}, "piped_api.models.comments.Comments.Comment.verified": {"tf": 1}, "piped_api.models.comments.Comments.disabled": {"tf": 1}}, "df": 4}}, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "q": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "s": {"docs": {"piped_api.client.PipedClient.__init__": {"tf": 2}}, "df": 1}}}}}}, "t": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "d": {"docs": {"piped_api.client.PipedClient.get_comments": {"tf": 1}}, "df": 1}}, "s": {"docs": {"piped_api.models.comments.Comments.nextpage": {"tf": 1}}, "df": 1}}}}}, "p": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "s": {"docs": {"piped_api.models.comments.Comments.Comment.replies_page": {"tf": 1.4142135623730951}}, "df": 1}}}}}}}, "e": {"docs": {}, "df": 0, "x": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {"piped_api.client.PipedClient.__init__": {"tf": 1}}, "df": 1}}}}}}, "n": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "d": {"docs": {"piped_api.models.comments.Comments.nextpage": {"tf": 1}}, "df": 1}}}}}, "d": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "t": {"docs": {"piped_api.models.comments.Comments.nextpage": {"tf": 1}}, "df": 1}}}}}}}}, "y": {"docs": {"piped_api.models.comments.Comments.Comment.commented_time": {"tf": 1}}, "df": 1, "o": {"docs": {}, "df": 0, "u": {"docs": {"piped_api.client.PipedClient.__init__": {"tf": 1}}, "df": 1}}}, "m": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "k": {"docs": {}, "df": 0, "e": {"docs": {"piped_api.client.PipedClient.__init__": {"tf": 1}}, "df": 1}}, "d": {"docs": {}, "df": 0, "e": {"docs": {"piped_api.models.comments.Comments.Comment.commented_time": {"tf": 1}, "piped_api.models.comments.Comments.Comment.commentor_url": {"tf": 1}}, "df": 2}}}, "o": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "l": {"docs": {"piped_api.models.BasePipedModel.__init__": {"tf": 1}}, "df": 1, "s": {"docs": {"piped_api.client.PipedClient.get_comments": {"tf": 1}, "piped_api.models.BasePipedModel": {"tf": 1}, "piped_api.models.comments.Comments": {"tf": 1}, "piped_api.models.comments.Comments.Comment": {"tf": 1}}, "df": 4}}}}}, "e": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "s": {"docs": {"piped_api.models.comments.Comments.Comment.replies_page": {"tf": 1}}, "df": 1}}}}}, "g": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "t": {"docs": {"piped_api.client.PipedClient.get_comments": {"tf": 1}}, "df": 1, "s": {"docs": {"piped_api.client.PipedClient.get_comments": {"tf": 1}}, "df": 1}}}}, "l": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "t": {"docs": {"piped_api.client.PipedClient.get_comments": {"tf": 1}, "piped_api.models.comments.Comments.get_comments": {"tf": 1}}, "df": 2}}, "k": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "s": {"docs": {"piped_api.models.comments.Comments.Comment.like_count": {"tf": 1}}, "df": 1}}}}, "o": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "d": {"docs": {"piped_api.models.comments.Comments.Comment.replies_page": {"tf": 1}}, "df": 1}}}}, "v": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "o": {"docs": {"piped_api.client.PipedClient.get_comments": {"tf": 1.7320508075688772}}, "df": 1}}}}, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "f": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "d": {"docs": {"piped_api.models.comments.Comments.Comment.verified": {"tf": 1}}, "df": 1}}}}}}}}, "n": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "x": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "g": {"docs": {}, "df": 0, "e": {"docs": {"piped_api.client.PipedClient.get_comments": {"tf": 1.7320508075688772}, "piped_api.models.comments.Comments.Comment.replies_page": {"tf": 1}, "piped_api.models.comments.Comments.nextpage": {"tf": 1.4142135623730951}}, "df": 3}}}}}}}, "o": {"docs": {"piped_api.models.comments.Comments.Comment.replies_page": {"tf": 1}, "piped_api.models.comments.Comments.nextpage": {"tf": 1}}, "df": 2, "n": {"docs": {}, "df": 0, "e": {"docs": {"piped_api.client.PipedClient.get_comments": {"tf": 1}, "piped_api.models.comments.Comments.Comment.replies_page": {"tf": 1}, "piped_api.models.comments.Comments.nextpage": {"tf": 1}}, "df": 3}}, "t": {"docs": {"piped_api.models.comments.Comments.Comment.hearted": {"tf": 1}, "piped_api.models.comments.Comments.Comment.pinned": {"tf": 1}, "piped_api.models.comments.Comments.Comment.verified": {"tf": 1}, "piped_api.models.comments.Comments.disabled": {"tf": 1}}, "df": 4}}, "a": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "e": {"docs": {"piped_api.models.comments.Comments.Comment.author": {"tf": 1}}, "df": 1}}}, "u": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "b": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {"piped_api.models.comments.Comments.Comment.like_count": {"tf": 1}}, "df": 1}}}}}}, "d": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "a": {"docs": {"piped_api.client.PipedClient.get_comments": {"tf": 1}, "piped_api.models.BasePipedModel.__init__": {"tf": 1.4142135623730951}, "piped_api.models.comments.Comments.nextpage": {"tf": 1}}, "df": 3}}}, "i": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "t": {"docs": {"piped_api.models.BasePipedModel.__init__": {"tf": 1}}, "df": 1}}, "s": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "b": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "d": {"docs": {"piped_api.models.comments.Comments.disabled": {"tf": 1}}, "df": 1}}}}}}}}, "j": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {"piped_api.models.BasePipedModel.__init__": {"tf": 1}, "piped_api.models.comments.Comments.nextpage": {"tf": 1}}, "df": 2}}}}, "x": {"docs": {"piped_api.models.comments.Comments.Comment.commented_time": {"tf": 1}}, "df": 1}, "h": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "s": {"docs": {"piped_api.models.comments.Comments.Comment.hearted": {"tf": 1}, "piped_api.models.comments.Comments.Comment.like_count": {"tf": 1}}, "df": 2}}, "e": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "d": {"docs": {"piped_api.models.comments.Comments.Comment.hearted": {"tf": 1}}, "df": 1}}}}}}}}}}, "pipeline": ["trimmer"], "_isPrebuiltIndex": true}; + + // mirrored in build-search-index.js (part 1) + // Also split on html tags. this is a cheap heuristic, but good enough. + elasticlunr.tokenizer.setSeperator(/[\s\-.;&_'"=,()]+|<[^>]*>/); + + let searchIndex; + if (docs._isPrebuiltIndex) { + console.info("using precompiled search index"); + searchIndex = elasticlunr.Index.load(docs); + } else { + console.time("building search index"); + // mirrored in build-search-index.js (part 2) + searchIndex = elasticlunr(function () { + this.pipeline.remove(elasticlunr.stemmer); + this.pipeline.remove(elasticlunr.stopWordFilter); + this.addField("qualname"); + this.addField("fullname"); + this.addField("annotation"); + this.addField("default_value"); + this.addField("signature"); + this.addField("bases"); + this.addField("doc"); + this.setRef("fullname"); + }); + for (let doc of docs) { + searchIndex.addDoc(doc); + } + console.timeEnd("building search index"); + } + + return (term) => searchIndex.search(term, { + fields: { + qualname: {boost: 4}, + fullname: {boost: 2}, + annotation: {boost: 2}, + default_value: {boost: 2}, + signature: {boost: 2}, + bases: {boost: 2}, + doc: {boost: 1}, + }, + expand: true + }); +})(); \ No newline at end of file