instruction stringclasses 100
values | code stringlengths 78 193k | response stringlengths 259 170k | file stringlengths 59 203 |
|---|---|---|---|
Improve my code by adding docstrings | # -*- coding: utf-8 -*-
# Copyright 2019-2025 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
from .common import GalleryExtractor
from .. import text
class Nsfwal... | --- +++ @@ -6,12 +6,14 @@ # it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
+"""Extractors for https://nsfwalbum.com/"""
from .common import GalleryExtractor
from .. import text
class NsfwalbumAlbumExtractor(GalleryExtractor):
+ """Extractor ... | https://raw.githubusercontent.com/mikf/gallery-dl/HEAD/gallery_dl/extractor/nsfwalbum.py |
Add documentation for all methods | # -*- coding: utf-8 -*-
# Copyright 2025-2026 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
from .common import ChapterExtractor, MangaExtractor
from .. import tex... | --- +++ @@ -6,6 +6,7 @@ # it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
+"""Extractors for https://mangataro.org/"""
from .common import ChapterExtractor, MangaExtractor
from .. import text
@@ -16,6 +17,7 @@
class MangataroBase():
+ """Base ... | https://raw.githubusercontent.com/mikf/gallery-dl/HEAD/gallery_dl/extractor/mangataro.py |
Write clean docstrings for readability | # -*- coding: utf-8 -*-
# Copyright 2016-2026 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
from .common import Extractor, Message
from .. import text
class Lusc... | --- +++ @@ -6,12 +6,14 @@ # it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
+"""Extractors for https://members.luscious.net/"""
from .common import Extractor, Message
from .. import text
class LusciousExtractor(Extractor):
+ """Base class for... | https://raw.githubusercontent.com/mikf/gallery-dl/HEAD/gallery_dl/extractor/luscious.py |
Add clean documentation to messy code | # -*- coding: utf-8 -*-
# Copyright 2022-2025 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
from .common import BaseExtractor, Message
from .. import text, util
im... | --- +++ @@ -6,6 +6,7 @@ # it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
+"""Extractors for Nitter instances"""
from .common import BaseExtractor, Message
from .. import text, util
@@ -13,6 +14,7 @@
class NitterExtractor(BaseExtractor):
+ """... | https://raw.githubusercontent.com/mikf/gallery-dl/HEAD/gallery_dl/extractor/nitter.py |
Add structured docstrings to improve clarity | # -*- coding: utf-8 -*-
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
from .common import ChapterExtractor, MangaExtractor
from .. import text
class MangareadBase():
categor... | --- +++ @@ -4,12 +4,14 @@ # it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
+"""Extractors for https://mangaread.org/"""
from .common import ChapterExtractor, MangaExtractor
from .. import text
class MangareadBase():
+ """Base class for Manga... | https://raw.githubusercontent.com/mikf/gallery-dl/HEAD/gallery_dl/extractor/mangaread.py |
Add structured docstrings to improve clarity | # -*- coding: utf-8 -*-
# Copyright 2016-2026 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
from .common import Extractor, Message
from .. import text, util
import... | --- +++ @@ -6,6 +6,7 @@ # it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
+"""Extractors for https://www.pinterest.com/"""
from .common import Extractor, Message
from .. import text, util
@@ -15,6 +16,7 @@
class PinterestExtractor(Extractor):
+ ... | https://raw.githubusercontent.com/mikf/gallery-dl/HEAD/gallery_dl/extractor/pinterest.py |
Document this script properly | # -*- coding: utf-8 -*-
# Copyright 2021-2025 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
from .common import Extractor, Message
from .. import text
class Pica... | --- +++ @@ -6,12 +6,14 @@ # it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
+"""Extractors for https://picarto.tv/"""
from .common import Extractor, Message
from .. import text
class PicartoGalleryExtractor(Extractor):
+ """Extractor for pica... | https://raw.githubusercontent.com/mikf/gallery-dl/HEAD/gallery_dl/extractor/picarto.py |
Add docstrings for better understanding | # -*- coding: utf-8 -*-
# Copyright 2020-2026 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
from .common import Extractor, Message
from .. import text
BASE_PATTE... | --- +++ @@ -6,6 +6,7 @@ # it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
+"""Extractors for https://inkbunny.net/"""
from .common import Extractor, Message
from .. import text
@@ -15,6 +16,7 @@
class InkbunnyExtractor(Extractor):
+ """Base cl... | https://raw.githubusercontent.com/mikf/gallery-dl/HEAD/gallery_dl/extractor/inkbunny.py |
Turn comments into proper docstrings | # -*- coding: utf-8 -*-
# Copyright 2023-2025 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
from .common import Extractor, Message
from .. import text, util
BASE_... | --- +++ @@ -6,6 +6,7 @@ # it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
+"""Extractors for https://pixeldrain.com/"""
from .common import Extractor, Message
from .. import text, util
@@ -14,6 +15,7 @@
class PixeldrainExtractor(Extractor):
+ ... | https://raw.githubusercontent.com/mikf/gallery-dl/HEAD/gallery_dl/extractor/pixeldrain.py |
Add detailed documentation for each class | # -*- coding: utf-8 -*-
# Copyright 2025 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
from .common import Extractor, Message
from .. import text
BASE_PATTERN = r... | --- +++ @@ -6,6 +6,7 @@ # it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
+"""Extractors for https://s3nd.pics/"""
from .common import Extractor, Message
from .. import text
@@ -14,6 +15,7 @@
class S3ndpicsExtractor(Extractor):
+ """Base class... | https://raw.githubusercontent.com/mikf/gallery-dl/HEAD/gallery_dl/extractor/s3ndpics.py |
Create Google-style docstrings for my code | # -*- coding: utf-8 -*-
# Copyright 2016-2026 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
from .common import Extractor, Message
from .. import text
BASE_PATTER... | --- +++ @@ -6,6 +6,7 @@ # it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
+"""Extractors for https://www.imagefap.com/"""
from .common import Extractor, Message
from .. import text
@@ -14,6 +15,7 @@
class ImagefapExtractor(Extractor):
+ """Bas... | https://raw.githubusercontent.com/mikf/gallery-dl/HEAD/gallery_dl/extractor/imagefap.py |
Generate docstrings for script automation | # -*- coding: utf-8 -*-
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
from .common import GalleryExtractor
from .. import text
class OkpornGalleryExtractor(GalleryExtractor):
... | --- +++ @@ -4,12 +4,14 @@ # it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
+"""Extractors for https://ok.porn/"""
from .common import GalleryExtractor
from .. import text
class OkpornGalleryExtractor(GalleryExtractor):
+ """Extractor for ima... | https://raw.githubusercontent.com/mikf/gallery-dl/HEAD/gallery_dl/extractor/okporn.py |
Document functions with clear intent | # -*- coding: utf-8 -*-
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
from .common import Extractor, Message
from .. import text, util
class LofterExtractor(Extractor):
cate... | --- +++ @@ -4,12 +4,14 @@ # it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
+"""Extractors for https://www.lofter.com/"""
from .common import Extractor, Message
from .. import text, util
class LofterExtractor(Extractor):
+ """Base class for l... | https://raw.githubusercontent.com/mikf/gallery-dl/HEAD/gallery_dl/extractor/lofter.py |
Document helper functions with docstrings | # -*- coding: utf-8 -*-
# Copyright 2024-2026 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
from .common import Extractor, Message
from .. import text, util
BASE_... | --- +++ @@ -6,6 +6,7 @@ # it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
+"""Extractors for https://scrolller.com/"""
from .common import Extractor, Message
from .. import text, util
@@ -14,6 +15,7 @@
class ScrolllerExtractor(Extractor):
+ ""... | https://raw.githubusercontent.com/mikf/gallery-dl/HEAD/gallery_dl/extractor/scrolller.py |
Add docstrings that explain purpose and usage | # -*- coding: utf-8 -*-
# Copyright 2015-2026 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
from .common import BaseExtractor, Message, Dispatch, AsynchronousMixin... | --- +++ @@ -6,12 +6,14 @@ # it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
+"""Extractors for nijie instances"""
from .common import BaseExtractor, Message, Dispatch, AsynchronousMixin
from .. import text, dt
class NijieExtractor(AsynchronousMi... | https://raw.githubusercontent.com/mikf/gallery-dl/HEAD/gallery_dl/extractor/nijie.py |
Generate docstrings with parameter types | # -*- coding: utf-8 -*-
# Copyright 2019-2026 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
from .common import Extractor, Message, Dispatch
from .. import text
B... | --- +++ @@ -6,6 +6,7 @@ # it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
+"""Extractors for https://www.pornhub.com/"""
from .common import Extractor, Message, Dispatch
from .. import text
@@ -14,6 +15,7 @@
class PornhubExtractor(Extractor):
+ ... | https://raw.githubusercontent.com/mikf/gallery-dl/HEAD/gallery_dl/extractor/pornhub.py |
Document this module using docstrings | # -*- coding: utf-8 -*-
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
from .common import Extractor, Message
from .. import text
import itertools
BASE_PATTERN = r"(?:https?://)?(... | --- +++ @@ -4,6 +4,7 @@ # it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
+"""Extractors for http://www.poringa.net/"""
from .common import Extractor, Message
from .. import text
@@ -101,6 +102,7 @@
class PoringaPostExtractor(PoringaExtractor):
+... | https://raw.githubusercontent.com/mikf/gallery-dl/HEAD/gallery_dl/extractor/poringa.py |
Write docstrings describing functionality | # -*- coding: utf-8 -*-
# Copyright 2022-2025 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
from .common import Extractor, Message
from .. import text
BASE_PATTER... | --- +++ @@ -6,6 +6,7 @@ # it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
+"""Extractors for https://poipiku.com/"""
from .common import Extractor, Message
from .. import text
@@ -14,6 +15,7 @@
class PoipikuExtractor(Extractor):
+ """Base clas... | https://raw.githubusercontent.com/mikf/gallery-dl/HEAD/gallery_dl/extractor/poipiku.py |
Help me comply with documentation standards | # -*- coding: utf-8 -*-
# Copyright 2023-2025 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
from .common import BaseExtractor, Message
from .. import text
class ... | --- +++ @@ -6,12 +6,14 @@ # it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
+"""Extractors for Shimmie2 instances"""
from .common import BaseExtractor, Message
from .. import text
class Shimmie2Extractor(BaseExtractor):
+ """Base class for sh... | https://raw.githubusercontent.com/mikf/gallery-dl/HEAD/gallery_dl/extractor/shimmie2.py |
Document this code for team use | # -*- coding: utf-8 -*-
# Copyright 2023-2025 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
from .common import GalleryExtractor, Extractor, Message
from .. import... | --- +++ @@ -6,6 +6,7 @@ # it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
+"""Extractors for https://www.pornpics.com/"""
from .common import GalleryExtractor, Extractor, Message
from .. import text
@@ -14,6 +15,7 @@
class PornpicsExtractor(Extra... | https://raw.githubusercontent.com/mikf/gallery-dl/HEAD/gallery_dl/extractor/pornpics.py |
Add docstrings to improve readability | # -*- coding: utf-8 -*-
# Copyright 2014-2026 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
from .common import Extractor, Message, Dispatch
from .. import text, u... | --- +++ @@ -6,6 +6,7 @@ # it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
+"""Extractors for https://www.pixiv.net/"""
from .common import Extractor, Message, Dispatch
from .. import text, util, dt
@@ -17,6 +18,7 @@
class PixivExtractor(Extractor... | https://raw.githubusercontent.com/mikf/gallery-dl/HEAD/gallery_dl/extractor/pixiv.py |
Improve documentation using docstrings | # -*- coding: utf-8 -*-
# Copyright 2019-2025 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
from .common import Extractor, Message
from .. import text, util, dt
... | --- +++ @@ -6,12 +6,14 @@ # it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
+"""Extractors for https://www.plurk.com/"""
from .common import Extractor, Message
from .. import text, util, dt
class PlurkExtractor(Extractor):
+ """Base class for... | https://raw.githubusercontent.com/mikf/gallery-dl/HEAD/gallery_dl/extractor/plurk.py |
Create documentation strings for testing functions | # -*- coding: utf-8 -*-
# Copyright 2019-2025 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
from .common import Extractor, Message
from .. import text, dt
BASE_PA... | --- +++ @@ -6,6 +6,7 @@ # it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
+"""Extractors for https://www.sex.com/"""
from .common import Extractor, Message
from .. import text, dt
@@ -14,6 +15,7 @@
class SexcomExtractor(Extractor):
+ """Base c... | https://raw.githubusercontent.com/mikf/gallery-dl/HEAD/gallery_dl/extractor/sexcom.py |
Help me write clear docstrings | # -*- coding: utf-8 -*-
# Copyright 2016-2026 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
from .common import Extractor, Message
from .. import text, util
clas... | --- +++ @@ -6,12 +6,14 @@ # it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
+"""Extractors for https://seiga.nicovideo.jp/"""
from .common import Extractor, Message
from .. import text, util
class SeigaExtractor(Extractor):
+ """Base class fo... | https://raw.githubusercontent.com/mikf/gallery-dl/HEAD/gallery_dl/extractor/seiga.py |
Generate consistent docstrings | # -*- coding: utf-8 -*-
# Copyright 2016-2023 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
from .common import ChapterExtractor
from .. import text
class Senman... | --- +++ @@ -6,12 +6,14 @@ # it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
+"""Extractors for https://raw.senmanga.com/"""
from .common import ChapterExtractor
from .. import text
class SenmangaChapterExtractor(ChapterExtractor):
+ """Extrac... | https://raw.githubusercontent.com/mikf/gallery-dl/HEAD/gallery_dl/extractor/senmanga.py |
Write docstrings including parameters and return values | # -*- coding: utf-8 -*-
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
from .common import GalleryExtractor
from .. import text
class PornstarstubeGalleryExtractor(GalleryExtract... | --- +++ @@ -4,12 +4,14 @@ # it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
+"""Extractors for https://pornstars.tube/"""
from .common import GalleryExtractor
from .. import text
class PornstarstubeGalleryExtractor(GalleryExtractor):
+ """Ext... | https://raw.githubusercontent.com/mikf/gallery-dl/HEAD/gallery_dl/extractor/pornstarstube.py |
Improve my code by adding docstrings | # -*- coding: utf-8 -*-
# Copyright 2024-2025 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
from .common import GalleryExtractor, Extractor, Message
from .. import... | --- +++ @@ -6,6 +6,7 @@ # it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
+"""Extractors for https://niyaniya.moe/"""
from .common import GalleryExtractor, Extractor, Message
from .. import text
@@ -21,6 +22,7 @@
class SchalenetworkExtractor(Extr... | https://raw.githubusercontent.com/mikf/gallery-dl/HEAD/gallery_dl/extractor/schalenetwork.py |
Add docstrings including usage examples | # -*- coding: utf-8 -*-
# Copyright 2016-2023 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
from .common import Extractor, Message
from .. import text
BASE_PATTER... | --- +++ @@ -6,6 +6,7 @@ # it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
+"""Extractors for https://www.pixnet.net/"""
from .common import Extractor, Message
from .. import text
@@ -14,6 +15,7 @@
class PixnetExtractor(Extractor):
+ """Base cl... | https://raw.githubusercontent.com/mikf/gallery-dl/HEAD/gallery_dl/extractor/pixnet.py |
Write docstrings describing functionality | # -*- coding: utf-8 -*-
# Copyright 2019-2025 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
from .common import BaseExtractor, Message
from .. import text
class ... | --- +++ @@ -6,12 +6,14 @@ # it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
+"""Extractors for Shopify instances"""
from .common import BaseExtractor, Message
from .. import text
class ShopifyExtractor(BaseExtractor):
+ """Base class for Shop... | https://raw.githubusercontent.com/mikf/gallery-dl/HEAD/gallery_dl/extractor/shopify.py |
Write docstrings describing functionality | # -*- coding: utf-8 -*-
# Copyright 2017-2026 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
from .common import Extractor, Message
from .. import text, util
BASE_... | --- +++ @@ -6,6 +6,7 @@ # it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
+"""Extractors for https://www.reddit.com/"""
from .common import Extractor, Message
from .. import text, util
@@ -14,6 +15,7 @@
class RedditExtractor(Extractor):
+ """B... | https://raw.githubusercontent.com/mikf/gallery-dl/HEAD/gallery_dl/extractor/reddit.py |
Write Python docstrings for this snippet | # -*- coding: utf-8 -*-
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
from .common import Extractor, Message
from .. import text
BASE_PATTERN = r"(?:https?://)?(?:www\.)?steamgr... | --- +++ @@ -4,6 +4,7 @@ # it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
+"""Extractors for https://www.steamgriddb.com"""
from .common import Extractor, Message
from .. import text
@@ -39,6 +40,7 @@
class SteamgriddbExtractor(Extractor):
+ "... | https://raw.githubusercontent.com/mikf/gallery-dl/HEAD/gallery_dl/extractor/steamgriddb.py |
Write docstrings describing each step | # -*- coding: utf-8 -*-
# Copyright 2016-2026 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
from .common import Extractor, ChapterExtractor, MangaExtractor, Messag... | --- +++ @@ -6,6 +6,7 @@ # it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
+"""Extractors for https://readcomiconline.li/"""
from .common import Extractor, ChapterExtractor, MangaExtractor, Message
from .. import text
@@ -15,6 +16,7 @@
class Readc... | https://raw.githubusercontent.com/mikf/gallery-dl/HEAD/gallery_dl/extractor/readcomiconline.py |
Document functions with clear intent | # -*- coding: utf-8 -*-
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
from .common import MangaExtractor, ChapterExtractor
from .. import text
BASE_PATTERN = r"(?:https?://)?rawk... | --- +++ @@ -4,6 +4,7 @@ # it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
+"""Extractors for https://rawkuma.net/"""
from .common import MangaExtractor, ChapterExtractor
from .. import text
@@ -12,11 +13,13 @@
class RawkumaBase():
+ """Base cl... | https://raw.githubusercontent.com/mikf/gallery-dl/HEAD/gallery_dl/extractor/rawkuma.py |
Create docstrings for each class method | # -*- coding: utf-8 -*-
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
from .common import GalleryExtractor
from .. import text
class SxypixGalleryExtractor(GalleryExtractor):
... | --- +++ @@ -4,12 +4,14 @@ # it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
+"""Extractors for https://sxypix.com/"""
from .common import GalleryExtractor
from .. import text
class SxypixGalleryExtractor(GalleryExtractor):
+ """Extractor for ... | https://raw.githubusercontent.com/mikf/gallery-dl/HEAD/gallery_dl/extractor/sxypix.py |
Add docstrings to improve code quality | # -*- coding: utf-8 -*-
# Copyright 2018-2026 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
from .common import Extractor, Message
from .. import text, oauth
BASE... | --- +++ @@ -6,6 +6,7 @@ # it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
+"""Extractors for https://www.smugmug.com/"""
from .common import Extractor, Message
from .. import text, oauth
@@ -16,6 +17,7 @@
class SmugmugExtractor(Extractor):
+ "... | https://raw.githubusercontent.com/mikf/gallery-dl/HEAD/gallery_dl/extractor/smugmug.py |
Add docstrings to my Python code | # -*- coding: utf-8 -*-
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
from .common import GalleryExtractor
from .. import text
BASE_PATTERN = r"(?:https?://)?tumblrgallery\.xyz"
... | --- +++ @@ -4,6 +4,7 @@ # it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
+"""Extractors for https://tumblrgallery.xyz/"""
from .common import GalleryExtractor
from .. import text
@@ -12,6 +13,7 @@
class TumblrgalleryExtractor(GalleryExtractor):
... | https://raw.githubusercontent.com/mikf/gallery-dl/HEAD/gallery_dl/extractor/tumblrgallery.py |
Document this code for team use | # -*- coding: utf-8 -*-
# Copyright 2019-2026 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
from .common import BaseExtractor, Message
from .. import text, util
im... | --- +++ @@ -6,6 +6,7 @@ # it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
+"""Generic extractors for *reactor sites"""
from .common import BaseExtractor, Message
from .. import text, util
@@ -13,6 +14,7 @@
class ReactorExtractor(BaseExtractor):
+... | https://raw.githubusercontent.com/mikf/gallery-dl/HEAD/gallery_dl/extractor/reactor.py |
Add docstrings to improve code quality | # -*- coding: utf-8 -*-
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
from .common import Extractor, Message
from .. import text
BASE_PATTERN = r"(?:https?://)?(?:www\.)?thefap\.... | --- +++ @@ -4,6 +4,7 @@ # it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
+"""Extractors for https://thefap.net/"""
from .common import Extractor, Message
from .. import text
@@ -12,6 +13,7 @@
class ThefapExtractor(Extractor):
+ """Base class ... | https://raw.githubusercontent.com/mikf/gallery-dl/HEAD/gallery_dl/extractor/thefap.py |
Generate missing documentation strings | # -*- coding: utf-8 -*-
# Copyright 2019-2025 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
from .common import Extractor, Message
from .. import text, util
clas... | --- +++ @@ -6,12 +6,14 @@ # it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
+"""Extractors for https://news.sankakucomplex.com/"""
from .common import Extractor, Message
from .. import text, util
class SankakucomplexExtractor(Extractor):
+ ""... | https://raw.githubusercontent.com/mikf/gallery-dl/HEAD/gallery_dl/extractor/sankakucomplex.py |
Add docstrings to meet PEP guidelines | # -*- coding: utf-8 -*-
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
from .common import GalleryExtractor, Message
from .. import text
class UrlgalleriesGalleryExtractor(Galler... | --- +++ @@ -4,12 +4,14 @@ # it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
+"""Extractors for https://urlgalleries.com/"""
from .common import GalleryExtractor, Message
from .. import text
class UrlgalleriesGalleryExtractor(GalleryExtractor):
+... | https://raw.githubusercontent.com/mikf/gallery-dl/HEAD/gallery_dl/extractor/urlgalleries.py |
Improve documentation using docstrings | # -*- coding: utf-8 -*-
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
from .common import Extractor, Message
from .. import text
BASE_PATTERN = r"(?:https?://)?(?:www\.)?tungsten... | --- +++ @@ -4,6 +4,7 @@ # it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
+"""Extractors for https://tungsten.run/"""
from .common import Extractor, Message
from .. import text
@@ -12,6 +13,7 @@
class TungstenExtractor(Extractor):
+ """Base cl... | https://raw.githubusercontent.com/mikf/gallery-dl/HEAD/gallery_dl/extractor/tungsten.py |
Add professional docstrings to my codebase | # -*- coding: utf-8 -*-
# Copyright 2022-2025 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
from .common import BaseExtractor, Message
from .. import text
class ... | --- +++ @@ -6,12 +6,14 @@ # it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
+"""Extractors for vichan imageboards"""
from .common import BaseExtractor, Message
from .. import text
class VichanExtractor(BaseExtractor):
+ """Base class for vich... | https://raw.githubusercontent.com/mikf/gallery-dl/HEAD/gallery_dl/extractor/vichan.py |
Create documentation strings for testing functions | # -*- coding: utf-8 -*-
# Copyright 2020-2026 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
from .common import Extractor, Message
from .. import text
class Redg... | --- +++ @@ -6,12 +6,14 @@ # it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
+"""Extractors for https://redgifs.com/"""
from .common import Extractor, Message
from .. import text
class RedgifsExtractor(Extractor):
+ """Base class for redgifs e... | https://raw.githubusercontent.com/mikf/gallery-dl/HEAD/gallery_dl/extractor/redgifs.py |
Add docstrings to my Python code | # -*- coding: utf-8 -*-
# Copyright 2019-2025 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
from .common import Extractor, Message
from .. import text
class Vani... | --- +++ @@ -6,12 +6,14 @@ # it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
+"""Extractors for https://vanilla-rock.com/"""
from .common import Extractor, Message
from .. import text
class VanillarockExtractor(Extractor):
+ """Base class for ... | https://raw.githubusercontent.com/mikf/gallery-dl/HEAD/gallery_dl/extractor/vanillarock.py |
Add docstrings explaining edge cases | # -*- coding: utf-8 -*-
# Copyright 2025 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
from .common import Extractor, Message
from .. import text, util
import coll... | --- +++ @@ -6,6 +6,7 @@ # it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
+"""Extractors for https://thehentaiworld.com/"""
from .common import Extractor, Message
from .. import text, util
@@ -15,6 +16,7 @@
class ThehentaiworldExtractor(Extractor... | https://raw.githubusercontent.com/mikf/gallery-dl/HEAD/gallery_dl/extractor/thehentaiworld.py |
Auto-generate documentation strings for this file | # -*- coding: utf-8 -*-
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
from .common import Extractor, Message, Dispatch
from .. import text, util, ytdl
import functools
import iter... | --- +++ @@ -4,6 +4,7 @@ # it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
+"""Extractors for https://www.tiktok.com/"""
from .common import Extractor, Message, Dispatch
from .. import text, util, ytdl
@@ -19,6 +20,7 @@
class TiktokExtractor(Extra... | https://raw.githubusercontent.com/mikf/gallery-dl/HEAD/gallery_dl/extractor/tiktok.py |
Add docstrings that explain purpose and usage | # -*- coding: utf-8 -*-
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
from .common import BaseExtractor, Message
class UrlshortenerExtractor(BaseExtractor):
basecategory = "... | --- +++ @@ -4,11 +4,13 @@ # it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
+"""Extractors for general-purpose URL shorteners"""
from .common import BaseExtractor, Message
class UrlshortenerExtractor(BaseExtractor):
+ """Base class for URL sho... | https://raw.githubusercontent.com/mikf/gallery-dl/HEAD/gallery_dl/extractor/urlshortener.py |
Document my Python code with docstrings | # -*- coding: utf-8 -*-
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
from .common import GalleryExtractor
from .. import text
class TelegraphGalleryExtractor(GalleryExtractor):... | --- +++ @@ -4,12 +4,14 @@ # it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
+"""Extractor for https://telegra.ph/"""
from .common import GalleryExtractor
from .. import text
class TelegraphGalleryExtractor(GalleryExtractor):
+ """Extractor fo... | https://raw.githubusercontent.com/mikf/gallery-dl/HEAD/gallery_dl/extractor/telegraph.py |
Document this script properly | # -*- coding: utf-8 -*-
# Copyright 2016-2026 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
from .common import Extractor, Message
from .. import text, util, dt, o... | --- +++ @@ -6,6 +6,7 @@ # it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
+"""Extractors for https://www.tumblr.com/"""
from .common import Extractor, Message
from .. import text, util, dt, oauth
@@ -23,6 +24,7 @@
class TumblrExtractor(Extractor)... | https://raw.githubusercontent.com/mikf/gallery-dl/HEAD/gallery_dl/extractor/tumblr.py |
Write docstrings for algorithm functions | # -*- coding: utf-8 -*-
# Copyright 2025 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
from .booru import BooruExtractor
from .. import text
BASE_PATTERN = r"(?:h... | --- +++ @@ -6,6 +6,7 @@ # it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
+"""Extractors for https://sizebooru.com/"""
from .booru import BooruExtractor
from .. import text
@@ -14,6 +15,7 @@
class SizebooruExtractor(BooruExtractor):
+ """Base ... | https://raw.githubusercontent.com/mikf/gallery-dl/HEAD/gallery_dl/extractor/sizebooru.py |
Document functions with clear intent | # -*- coding: utf-8 -*-
# Copyright 2016-2017 Leonardo Taccari
# Copyright 2017-2025 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
from .common import GalleryExtra... | --- +++ @@ -7,11 +7,13 @@ # it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
+"""Extractors for https://www.slideshare.net/"""
from .common import GalleryExtractor
class SlidesharePresentationExtractor(GalleryExtractor):
+ """Extractor for imag... | https://raw.githubusercontent.com/mikf/gallery-dl/HEAD/gallery_dl/extractor/slideshare.py |
Write docstrings for this repository | # -*- coding: utf-8 -*-
# Copyright 2019-2025 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
from .common import Extractor, Message
from .. import text
import time
... | --- +++ @@ -6,6 +6,7 @@ # it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
+"""Extractors for https://www.slickpic.com/"""
from .common import Extractor, Message
from .. import text
@@ -15,6 +16,7 @@
class SlickpicExtractor(Extractor):
+ """Bas... | https://raw.githubusercontent.com/mikf/gallery-dl/HEAD/gallery_dl/extractor/slickpic.py |
Create docstrings for reusable components | # -*- coding: utf-8 -*-
# Copyright 2020 Leonardo Taccari
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
from .common import GalleryExtractor
from .. import text
class Speakerd... | --- +++ @@ -6,12 +6,14 @@ # it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
+"""Extractors for https://speakerdeck.com/"""
from .common import GalleryExtractor
from .. import text
class SpeakerdeckPresentationExtractor(GalleryExtractor):
+ ""... | https://raw.githubusercontent.com/mikf/gallery-dl/HEAD/gallery_dl/extractor/speakerdeck.py |
Add detailed documentation for each class | # -*- coding: utf-8 -*-
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
from .common import BaseExtractor, Message
from .. import text
class PostmillExtractor(BaseExtractor):
... | --- +++ @@ -4,12 +4,14 @@ # it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
+"""Extractors for Postmill instances"""
from .common import BaseExtractor, Message
from .. import text
class PostmillExtractor(BaseExtractor):
+ """Base class for Po... | https://raw.githubusercontent.com/mikf/gallery-dl/HEAD/gallery_dl/extractor/postmill.py |
Replace inline comments with docstrings | # -*- coding: utf-8 -*-
# Copyright 2018-2026 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
from .common import Extractor, GalleryExtractor, Message
from .. import... | --- +++ @@ -6,6 +6,7 @@ # it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
+"""Extractors for https://www.simply-hentai.com/"""
from .common import Extractor, GalleryExtractor, Message
from .. import text, util
@@ -14,6 +15,7 @@
class Simplyhentai... | https://raw.githubusercontent.com/mikf/gallery-dl/HEAD/gallery_dl/extractor/simplyhentai.py |
Include argument descriptions in docstrings | # -*- coding: utf-8 -*-
# Copyright 2024-2026 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
from .lolisafe import LolisafeAlbumExtractor
from .. import text
BASE_... | --- +++ @@ -6,6 +6,7 @@ # it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
+"""Extractors for https://turbo.cr/"""
from .lolisafe import LolisafeAlbumExtractor
from .. import text
@@ -16,6 +17,7 @@
class TurboAlbumExtractor(LolisafeAlbumExtractor)... | https://raw.githubusercontent.com/mikf/gallery-dl/HEAD/gallery_dl/extractor/turbo.py |
Fill in missing docstrings in my code | # -*- coding: utf-8 -*-
# Copyright 2016-2026 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
from .common import Extractor, Message, Dispatch
from .. import text, u... | --- +++ @@ -6,6 +6,7 @@ # it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
+"""Extractors for https://x.com/"""
from .common import Extractor, Message, Dispatch
from .. import text, util, dt
@@ -18,6 +19,7 @@
class TwitterExtractor(Extractor):
+ ... | https://raw.githubusercontent.com/mikf/gallery-dl/HEAD/gallery_dl/extractor/twitter.py |
Document my Python code with docstrings | # -*- coding: utf-8 -*-
# Copyright 2018-2026 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
from .common import Extractor, Message, Dispatch
from .. import text
... | --- +++ @@ -6,12 +6,14 @@ # it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
+"""Extractors for https://wallhaven.cc/"""
from .common import Extractor, Message, Dispatch
from .. import text
class WallhavenExtractor(Extractor):
+ """Base class ... | https://raw.githubusercontent.com/mikf/gallery-dl/HEAD/gallery_dl/extractor/wallhaven.py |
Generate helpful docstrings for debugging | # -*- coding: utf-8 -*-
# Copyright 2014-2026 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
from .booru import BooruExtractor
from .common import Message
from .. i... | --- +++ @@ -6,6 +6,7 @@ # it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
+"""Extractors for https://sankaku.app/"""
from .booru import BooruExtractor
from .common import Message
@@ -18,6 +19,7 @@
class SankakuExtractor(BooruExtractor):
+ """B... | https://raw.githubusercontent.com/mikf/gallery-dl/HEAD/gallery_dl/extractor/sankaku.py |
Add docstrings to incomplete code | # -*- coding: utf-8 -*-
# Copyright 2021-2025 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
from .common import Extractor, Message
from .. import text, util
BASE_... | --- +++ @@ -6,6 +6,7 @@ # it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
+"""Extractors for https://unsplash.com/"""
from .common import Extractor, Message
from .. import text, util
@@ -14,6 +15,7 @@
class UnsplashExtractor(Extractor):
+ """B... | https://raw.githubusercontent.com/mikf/gallery-dl/HEAD/gallery_dl/extractor/unsplash.py |
Add docstrings to clarify complex logic | # -*- coding: utf-8 -*-
# Copyright 2022-2025 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
from .common import Extractor, Message
from .. import text
BASE_PATTER... | --- +++ @@ -6,6 +6,7 @@ # it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
+"""Extractors for https://soundgasm.net/"""
from .common import Extractor, Message
from .. import text
@@ -14,6 +15,7 @@
class SoundgasmExtractor(Extractor):
+ """Base ... | https://raw.githubusercontent.com/mikf/gallery-dl/HEAD/gallery_dl/extractor/soundgasm.py |
Document this module using docstrings | # -*- coding: utf-8 -*-
# Copyright 2021-2026 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
from .common import Extractor, Message
from .. import text
BASE_PATTER... | --- +++ @@ -6,6 +6,7 @@ # it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
+"""Extractors for https://tapas.io/"""
from .common import Extractor, Message
from .. import text
@@ -14,6 +15,7 @@
class TapasExtractor(Extractor):
+ """Base class for... | https://raw.githubusercontent.com/mikf/gallery-dl/HEAD/gallery_dl/extractor/tapas.py |
Replace inline comments with docstrings | # -*- coding: utf-8 -*-
# Copyright 2022-2026 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
from .booru import BooruExtractor
from .. import text
import operator
... | --- +++ @@ -6,6 +6,7 @@ # it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
+"""Extractors for https://twibooru.org/"""
from .booru import BooruExtractor
from .. import text
@@ -15,6 +16,7 @@
class TwibooruExtractor(BooruExtractor):
+ """Base cl... | https://raw.githubusercontent.com/mikf/gallery-dl/HEAD/gallery_dl/extractor/twibooru.py |
Add docstrings that explain inputs and outputs | # -*- coding: utf-8 -*-
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
from .common import Extractor, Message, Dispatch
from .. import text
BASE_PATTERN = r"(?:https?://)?skeb\.jp... | --- +++ @@ -4,6 +4,7 @@ # it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
+"""Extractors for https://skeb.jp/"""
from .common import Extractor, Message, Dispatch
from .. import text
@@ -13,6 +14,7 @@
class SkebExtractor(Extractor):
+ """Base c... | https://raw.githubusercontent.com/mikf/gallery-dl/HEAD/gallery_dl/extractor/skeb.py |
Provide clean and structured docstrings | # -*- coding: utf-8 -*-
# Copyright 2025 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
from .common import Extractor, Message
from .. import text, util
BASE_PATTE... | --- +++ @@ -6,6 +6,7 @@ # it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
+"""Extractors for https://tenor.com/"""
from .common import Extractor, Message
from .. import text, util
@@ -14,6 +15,7 @@
class TenorExtractor(Extractor):
+ """Base cl... | https://raw.githubusercontent.com/mikf/gallery-dl/HEAD/gallery_dl/extractor/tenor.py |
Help me comply with documentation standards | # -*- coding: utf-8 -*-
# Copyright 2022-2025 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
from .common import Extractor, Message
from .. import text, util
BASE_... | --- +++ @@ -6,6 +6,7 @@ # it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
+"""Extractors for https://toyhou.se/"""
from .common import Extractor, Message
from .. import text, util
@@ -14,6 +15,7 @@
class ToyhouseExtractor(Extractor):
+ """Base... | https://raw.githubusercontent.com/mikf/gallery-dl/HEAD/gallery_dl/extractor/toyhouse.py |
Add docstrings that explain logic | # -*- coding: utf-8 -*-
# Copyright 2021-2026 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
from .common import Extractor, Message
from .. import ytdl, config
cl... | --- +++ @@ -6,12 +6,14 @@ # it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
+"""Extractors for sites supported by youtube-dl"""
from .common import Extractor, Message
from .. import ytdl, config
class YoutubeDLExtractor(Extractor):
+ """Gener... | https://raw.githubusercontent.com/mikf/gallery-dl/HEAD/gallery_dl/extractor/ytdl.py |
Generate missing documentation strings | # -*- coding: utf-8 -*-
# Copyright 2020-2026 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
from .common import Extractor, Message
from .. import text, util
BASE_... | --- +++ @@ -6,6 +6,7 @@ # it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
+"""Extractors for https://www.subscribestar.com/"""
from .common import Extractor, Message
from .. import text, util
@@ -14,6 +15,7 @@
class SubscribestarExtractor(Extract... | https://raw.githubusercontent.com/mikf/gallery-dl/HEAD/gallery_dl/extractor/subscribestar.py |
Write reusable docstrings | # -*- coding: utf-8 -*-
# Copyright 2021-2025 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
from .common import Extractor, Message
from .. import text
BASE_PATTER... | --- +++ @@ -6,6 +6,7 @@ # it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
+"""Extractors for https://vk.com/"""
from .common import Extractor, Message
from .. import text
@@ -14,6 +15,7 @@
class VkExtractor(Extractor):
+ """Base class for vk e... | https://raw.githubusercontent.com/mikf/gallery-dl/HEAD/gallery_dl/extractor/vk.py |
Create structured documentation for my script | # -*- coding: utf-8 -*-
# Copyright 2017-2025 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
from .common import GalleryExtractor, Extractor, Message
from .. import... | --- +++ @@ -6,6 +6,7 @@ # it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
+"""Extractors for https://www.xvideos.com/"""
from .common import GalleryExtractor, Extractor, Message
from .. import text, util
@@ -15,11 +16,13 @@
class XvideosBase():
+... | https://raw.githubusercontent.com/mikf/gallery-dl/HEAD/gallery_dl/extractor/xvideos.py |
Write docstrings for algorithm functions | # -*- coding: utf-8 -*-
# Copyright 2019-2025 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
from .common import Extractor, Message, Dispatch
from .. import text, u... | --- +++ @@ -6,6 +6,7 @@ # it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
+"""Extractors for https://vsco.co/"""
from .common import Extractor, Message, Dispatch
from .. import text, util
@@ -15,6 +16,7 @@
class VscoExtractor(Extractor):
+ """... | https://raw.githubusercontent.com/mikf/gallery-dl/HEAD/gallery_dl/extractor/vsco.py |
Write documentation strings for class attributes | # -*- coding: utf-8 -*-
# Copyright 2023-2026 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
from .common import Extractor, Message
from .. import text, util
BASE_... | --- +++ @@ -6,6 +6,7 @@ # it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
+"""Extractors for https://vipergirls.to/"""
from .common import Extractor, Message
from .. import text, util
@@ -14,6 +15,7 @@
class VipergirlsExtractor(Extractor):
+ "... | https://raw.githubusercontent.com/mikf/gallery-dl/HEAD/gallery_dl/extractor/vipergirls.py |
Generate helpful docstrings for debugging | # -*- coding: utf-8 -*-
# Copyright 2022-2026 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
from .booru import BooruExtractor
from .. import text, util
import coll... | --- +++ @@ -6,6 +6,7 @@ # it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
+"""Extractors for https://www.zerochan.net/"""
from .booru import BooruExtractor
from .. import text, util
@@ -15,6 +16,7 @@
class ZerochanExtractor(BooruExtractor):
+ ... | https://raw.githubusercontent.com/mikf/gallery-dl/HEAD/gallery_dl/extractor/zerochan.py |
Document this script properly | # -*- coding: utf-8 -*-
# Copyright 2021 David Hoppenbrouwers
# Copyright 2023-2025 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
from .common import Extractor, Me... | --- +++ @@ -7,12 +7,14 @@ # it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
+"""Extractors for https://wallpapercave.com/"""
from .common import Extractor, Message
from .. import text
class WallpapercaveImageExtractor(Extractor):
+ """Extract... | https://raw.githubusercontent.com/mikf/gallery-dl/HEAD/gallery_dl/extractor/wallpapercave.py |
Document this code for team use | # -*- coding: utf-8 -*-
# Copyright 2017-2023 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
from .common import Extractor, Message
from .. import text
class Waro... | --- +++ @@ -6,12 +6,14 @@ # it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
+"""Extractors for https://warosu.org/"""
from .common import Extractor, Message
from .. import text
class WarosuThreadExtractor(Extractor):
+ """Extractor for thread... | https://raw.githubusercontent.com/mikf/gallery-dl/HEAD/gallery_dl/extractor/warosu.py |
Document this module using docstrings | # -*- coding: utf-8 -*-
# Copyright 2021-2026 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
import os
import shutil
import functools
from . import util, formatter,... | --- +++ @@ -6,6 +6,7 @@ # it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
+"""Filesystem path handling"""
import os
import shutil
@@ -149,6 +150,7 @@ return self.realpath
def open(self, mode="wb"):
+ """Open file and return a co... | https://raw.githubusercontent.com/mikf/gallery-dl/HEAD/gallery_dl/path.py |
Write proper docstrings for these functions | # -*- coding: utf-8 -*-
# Copyright 2020 Leonardo Taccari
# Copyright 2021-2025 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
from .common import GalleryExtractor,... | --- +++ @@ -7,6 +7,7 @@ # it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
+"""Extractors for https://www.webtoons.com/"""
from .common import GalleryExtractor, Extractor, Message
from .. import text, util
@@ -45,6 +46,7 @@
class WebtoonsEpisodeEx... | https://raw.githubusercontent.com/mikf/gallery-dl/HEAD/gallery_dl/extractor/webtoons.py |
Write docstrings for data processing functions | # -*- coding: utf-8 -*-
# Copyright 2019-2025 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
from .common import Extractor, Message
from .. import text
BASE_PATTER... | --- +++ @@ -6,6 +6,7 @@ # it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
+"""Extractors for https://www.wikiart.org/"""
from .common import Extractor, Message
from .. import text
@@ -14,6 +15,7 @@
class WikiartExtractor(Extractor):
+ """Base ... | https://raw.githubusercontent.com/mikf/gallery-dl/HEAD/gallery_dl/extractor/wikiart.py |
Add docstrings for utility scripts | # -*- coding: utf-8 -*-
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
from .common import GalleryExtractor
from .. import text, util
class WikifeetGalleryExtractor(GalleryExtrac... | --- +++ @@ -4,12 +4,14 @@ # it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
+"""Extractors for https://www.wikifeet.com/"""
from .common import GalleryExtractor
from .. import text, util
class WikifeetGalleryExtractor(GalleryExtractor):
+ """... | https://raw.githubusercontent.com/mikf/gallery-dl/HEAD/gallery_dl/extractor/wikifeet.py |
Help me add docstrings to my project | # -*- coding: utf-8 -*-
# Copyright 2025-2026 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
from .common import ChapterExtractor, MangaExtractor
from .. import tex... | --- +++ @@ -6,6 +6,7 @@ # it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
+"""Extractors for https://weebdex.org/"""
from .common import ChapterExtractor, MangaExtractor
from .. import text
@@ -14,6 +15,7 @@
class WeebdexBase():
+ """Base clas... | https://raw.githubusercontent.com/mikf/gallery-dl/HEAD/gallery_dl/extractor/weebdex.py |
Create documentation for each function signature | # -*- coding: utf-8 -*-
# Copyright 2019-2026 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
from .common import Extractor, Message, Dispatch
from .. import text, u... | --- +++ @@ -6,6 +6,7 @@ # it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
+"""Extractors for https://www.weibo.com/"""
from .common import Extractor, Message, Dispatch
from .. import text, util
@@ -305,6 +306,7 @@
class WeiboUserExtractor(WeiboEx... | https://raw.githubusercontent.com/mikf/gallery-dl/HEAD/gallery_dl/extractor/weibo.py |
Add docstrings to my Python code | # -*- coding: utf-8 -*-
# Copyright 2025-2026 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
from .common import ChapterExtractor, MangaExtractor
from .. import tex... | --- +++ @@ -6,6 +6,7 @@ # it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
+"""Extractors for https://weebcentral.com/"""
from .common import ChapterExtractor, MangaExtractor
from .. import text
@@ -40,6 +41,7 @@
class WeebcentralChapterExtractor(... | https://raw.githubusercontent.com/mikf/gallery-dl/HEAD/gallery_dl/extractor/weebcentral.py |
Add docstrings following best practices | # -*- coding: utf-8 -*-
# Copyright 2019-2026 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
from .common import Extractor, Message
from .. import text, util
BASE_... | --- +++ @@ -6,6 +6,7 @@ # it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
+"""Extractors for https://xhamster.com/"""
from .common import Extractor, Message
from .. import text, util
@@ -15,6 +16,7 @@
class XhamsterExtractor(Extractor):
+ """B... | https://raw.githubusercontent.com/mikf/gallery-dl/HEAD/gallery_dl/extractor/xhamster.py |
Add docstrings following best practices | # -*- coding: utf-8 -*-
# Copyright 2022 Ailothaen
# Copyright 2024-2026 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
from .common import BaseExtractor, Message
f... | --- +++ @@ -7,12 +7,14 @@ # it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
+"""Extractors for Wikimedia sites"""
from .common import BaseExtractor, Message
from .. import text, util
class WikimediaExtractor(BaseExtractor):
+ """Base class fo... | https://raw.githubusercontent.com/mikf/gallery-dl/HEAD/gallery_dl/extractor/wikimedia.py |
Write beginner-friendly docstrings | # -*- coding: utf-8 -*-
# Copyright 2017-2026 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
import argparse
import logging
import os.path
import sys
from . import ... | --- +++ @@ -6,6 +6,7 @@ # it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
+"""Command line option parsing"""
import argparse
import logging
@@ -15,11 +16,13 @@
class ConfigAction(argparse.Action):
+ """Set argparse results as config values"""
... | https://raw.githubusercontent.com/mikf/gallery-dl/HEAD/gallery_dl/option.py |
Add minimal docstrings for each function | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
import os
import sys
import collections
import util
from gallery_dl import extractor
... | --- +++ @@ -5,6 +5,7 @@ # it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
+"""Generate a Markdown document listing all supported sites"""
import os
import sys
@@ -609,6 +610,7 @@
def domain(cls):
+ """Return the domain name associated with an ... | https://raw.githubusercontent.com/mikf/gallery-dl/HEAD/scripts/supportedsites.py |
Write docstrings that follow conventions | # -*- coding: utf-8 -*-
# Copyright 2018-2026 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
import hmac
import time
import random
import string
import hashlib
impo... | --- +++ @@ -6,6 +6,7 @@ # it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
+"""OAuth helper functions and classes"""
import hmac
import time
@@ -22,18 +23,22 @@
def nonce(size, alphabet=string.ascii_letters):
+ """Generate a nonce value with 's... | https://raw.githubusercontent.com/mikf/gallery-dl/HEAD/gallery_dl/oauth.py |
Write docstrings that follow conventions | # -*- coding: utf-8 -*-
# Copyright 2025 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
from .common import Extractor, Message
from .. import text
BASE_PATTERN = r... | --- +++ @@ -6,6 +6,7 @@ # it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
+"""Extractors for https://xfolio.jp/"""
from .common import Extractor, Message
from .. import text
@@ -14,6 +15,7 @@
class XfolioExtractor(Extractor):
+ """Base class f... | https://raw.githubusercontent.com/mikf/gallery-dl/HEAD/gallery_dl/extractor/xfolio.py |
Document my Python code with docstrings | # -*- coding: utf-8 -*-
# Copyright 2015-2025 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
import os
import sys
import shutil
import logging
import unicodedata
fro... | --- +++ @@ -70,6 +70,7 @@
class Logger(logging.Logger):
+ """Custom Logger that includes extra info in log records"""
def makeRecord(self, name, level, fn, lno, msg, args, exc_info,
func=None, extra=None, sinfo=None,
@@ -81,6 +82,7 @@
class LoggerAdapter():
+ """Trimmed-down ver... | https://raw.githubusercontent.com/mikf/gallery-dl/HEAD/gallery_dl/output.py |
Add inline docstrings for readability | # -*- coding: utf-8 -*-
# Copyright 2015-2026 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
import html
import urllib.parse
import re as re_module
try:
re_com... | --- +++ @@ -6,6 +6,7 @@ # it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
+"""Collection of functions that work on strings/text"""
import html
import urllib.parse
@@ -21,6 +22,7 @@
def re(pattern):
+ """Compile a regular expression pattern"""
... | https://raw.githubusercontent.com/mikf/gallery-dl/HEAD/gallery_dl/text.py |
Help me add docstrings to my project | # coding=utf-8
# Copyright 2023 The Tensor2Tensor Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | --- +++ @@ -13,6 +13,18 @@ # See the License for the specific language governing permissions and
# limitations under the License.
+"""Produces the training and dev data for --problem into --data_dir.
+
+Produces sharded and shuffled TFRecord files of tensorflow.Example protocol
+buffers for a variety of registered d... | https://raw.githubusercontent.com/tensorflow/tensor2tensor/HEAD/tensor2tensor/bin/t2t_datagen.py |
Add professional docstrings to my codebase | # coding=utf-8
# Copyright 2023 The Tensor2Tensor Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | --- +++ @@ -13,6 +13,29 @@ # See the License for the specific language governing permissions and
# limitations under the License.
+r"""Adversarially attack a model.
+
+This script adversarially attacks a model and evaluates accuracy at various
+ epsilons.
+
+Params such as which epsilons to evaluate at and the atta... | https://raw.githubusercontent.com/tensorflow/tensor2tensor/HEAD/tensor2tensor/bin/t2t_attack.py |
Add docstrings following best practices | # -*- coding: utf-8 -*-
# Copyright 2017-2026 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
import os
import sys
import json
import time
import random
import getpa... | --- +++ @@ -6,6 +6,7 @@ # it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
+"""Utility functions and classes"""
import os
import sys
@@ -26,6 +27,7 @@
def bencode(num, alphabet="0123456789"):
+ """Encode an integer into a base-N encoded string"... | https://raw.githubusercontent.com/mikf/gallery-dl/HEAD/gallery_dl/util.py |
Add docstrings including usage examples | # -*- coding: utf-8 -*-
# Copyright 2021-2026 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
import os
import sys
import time
import string
import _string
import op... | --- +++ @@ -6,6 +6,7 @@ # it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
+"""String formatters"""
import os
import sys
@@ -51,6 +52,54 @@
class StringFormatter():
+ """Custom, extended version of string.Formatter
+
+ This string formatter ... | https://raw.githubusercontent.com/mikf/gallery-dl/HEAD/gallery_dl/formatter.py |
Add docstrings to improve readability | # -*- coding: utf-8 -*-
# Copyright 2015-2026 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
import sys
import errno
import logging
import functools
import collectio... | --- +++ @@ -33,6 +33,7 @@
class Job():
+ """Base class for Job types"""
ulog = None
_logger_adapter = output.LoggerAdapter
@@ -146,6 +147,7 @@ return cfgpath
def run(self):
+ """Execute or run the job"""
extractor = self.extractor
log = extractor.log
@@ -206,... | https://raw.githubusercontent.com/mikf/gallery-dl/HEAD/gallery_dl/job.py |
Add docstrings for internal functions | # coding=utf-8
# Copyright 2023 The Tensor2Tensor Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | --- +++ @@ -13,6 +13,7 @@ # See the License for the specific language governing permissions and
# limitations under the License.
+"""Train and evaluate."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
@@ -147,6 +148,7 @@
def set_hparams_from_args... | https://raw.githubusercontent.com/tensorflow/tensor2tensor/HEAD/tensor2tensor/bin/t2t_trainer.py |
Provide docstrings following PEP 257 | # coding=utf-8
# Copyright 2023 The Tensor2Tensor Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | --- +++ @@ -13,6 +13,30 @@ # See the License for the specific language governing permissions and
# limitations under the License.
+r"""Data generators for the Mathematical Language Understanding dataset.
+
+The training and test data were generated by assigning symbolic variables
+either positive or negative decimal... | https://raw.githubusercontent.com/tensorflow/tensor2tensor/HEAD/tensor2tensor/data_generators/algorithmic_math_two_variables.py |
Generate docstrings for exported functions | # coding=utf-8
# Copyright 2023 The Tensor2Tensor Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | --- +++ @@ -13,6 +13,10 @@ # See the License for the specific language governing permissions and
# limitations under the License.
+r"""Data generators for the DeepMind Mathematics Dataset.
+
+See https://github.com/deepmind/mathematics_dataset for the original repository.
+"""
from __future__ import absolute_impo... | https://raw.githubusercontent.com/tensorflow/tensor2tensor/HEAD/tensor2tensor/data_generators/algorithmic_math_deepmind.py |
Add docstrings that explain logic | # coding=utf-8
# Copyright 2023 The Tensor2Tensor Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | --- +++ @@ -13,6 +13,7 @@ # See the License for the specific language governing permissions and
# limitations under the License.
+"""Data generators for the CNN and Daily Mail datasets."""
from __future__ import absolute_import
from __future__ import division
@@ -64,6 +65,16 @@
def _maybe_download_corpora(tm... | https://raw.githubusercontent.com/tensorflow/tensor2tensor/HEAD/tensor2tensor/data_generators/cnn_dailymail.py |
Write docstrings that follow conventions | # coding=utf-8
# Copyright 2023 The Tensor2Tensor Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | --- +++ @@ -13,6 +13,7 @@ # See the License for the specific language governing permissions and
# limitations under the License.
+"""Data generators for the Corpus of Liguistic Acceptability."""
from __future__ import absolute_import
from __future__ import division
@@ -32,6 +33,7 @@
@registry.register_problem
... | https://raw.githubusercontent.com/tensorflow/tensor2tensor/HEAD/tensor2tensor/data_generators/cola.py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.