repo_full_name
stringlengths
6
93
repo_url
stringlengths
25
112
repo_api_url
stringclasses
28 values
owner
stringclasses
28 values
repo_name
stringclasses
28 values
description
stringclasses
28 values
stars
int64
617
98.8k
forks
int64
31
355
watchers
int64
990
999
license
stringclasses
2 values
default_branch
stringclasses
2 values
repo_created_at
timestamp[s]date
2012-07-24 23:12:50
2025-06-16 08:07:28
repo_updated_at
timestamp[s]date
2026-02-23 15:23:15
2026-05-03 18:52:12
repo_topics
listlengths
0
13
repo_languages
unknown
is_fork
bool
1 class
open_issues
int64
3
104
file_path
stringlengths
3
208
file_name
stringclasses
509 values
file_extension
stringclasses
1 value
file_size_bytes
int64
101
84k
file_url
stringclasses
627 values
file_raw_url
stringclasses
627 values
file_sha
stringclasses
624 values
language
stringclasses
8 values
parsed_at
stringdate
2026-05-04 01:12:36
2026-05-04 19:41:55
text
stringlengths
100
102k
luongnv89/claude-howto
https://github.com/luongnv89/claude-howto
null
null
null
null
30,945
null
null
mit
null
null
null
null
null
null
null
scripts/build_epub.py
null
null
null
null
null
null
Python
2026-05-04T02:24:52.302948
#!/usr/bin/env -S uv run --script # /// script # dependencies = ["ebooklib", "markdown", "beautifulsoup4", "pillow"] # /// """ Build an EPUB from the Claude How-To markdown files. Usage: Run from the repository root directory: ./scripts/build_epub.py Or run directly with Python/uv: uv run scri...
luongnv89/claude-howto
https://github.com/luongnv89/claude-howto
null
null
null
null
30,945
null
null
mit
null
null
null
null
null
null
null
06-hooks/context-tracker.py
null
null
null
null
null
null
Python
2026-05-04T02:24:52.352595
#!/usr/bin/env python3 """ Context Usage Tracker - Tracks token consumption per request. Uses UserPromptSubmit as "pre-message" hook and Stop as "post-response" hook to calculate the delta in token usage for each request. This version uses character-based estimation (no dependencies). For better accuracy, see context...
luongnv89/claude-howto
https://github.com/luongnv89/claude-howto
null
null
null
null
30,945
null
null
mit
null
null
null
null
null
null
null
scripts/check_links.py
null
null
null
null
null
null
Python
2026-05-04T02:24:52.843693
#!/usr/bin/env python3 """Check external URLs in Markdown files are reachable.""" import re import sys import urllib.error import urllib.request from concurrent.futures import ThreadPoolExecutor, as_completed from pathlib import Path IGNORE_DIRS = { ".venv", "node_modules", ".git", "blog-posts", "...
luongnv89/claude-howto
https://github.com/luongnv89/claude-howto
null
null
null
null
30,945
null
null
mit
null
null
null
null
null
null
null
scripts/sync_translations.py
null
null
null
null
null
null
Python
2026-05-04T02:24:52.892071
#!/usr/bin/env python3 """ Detect outdated Vietnamese translations compared to English version. This script compares modification times between English and Vietnamese documentation files to identify which translations need updating. Usage: python scripts/sync_translations.py python scripts/sync_translations.p...
luongnv89/claude-howto
https://github.com/luongnv89/claude-howto
null
null
null
null
30,945
null
null
mit
null
null
null
null
null
null
null
scripts/check_mermaid.py
null
null
null
null
null
null
Python
2026-05-04T02:24:52.908330
#!/usr/bin/env python3 """Validate Mermaid diagram syntax in Markdown files using mmdc.""" import json import os import re import shutil import subprocess # nosec B404 import sys import tempfile from pathlib import Path IGNORE_DIRS = {".venv", "node_modules", ".git", "blog-posts", ".agents"} def main() -> int: ...
luongnv89/claude-howto
https://github.com/luongnv89/claude-howto
null
null
null
null
30,945
null
null
mit
null
null
null
null
null
null
null
scripts/tests/conftest.py
null
null
null
null
null
null
Python
2026-05-04T02:24:52.911171
"""Pytest configuration and shared fixtures for EPUB builder tests.""" from __future__ import annotations import logging import sys from pathlib import Path import pytest # Add parent directory to path for imports sys.path.insert(0, str(Path(__file__).parent.parent)) from build_epub import BuildState, EPUBConfig, ...
luongnv89/claude-howto
https://github.com/luongnv89/claude-howto
null
null
null
null
30,945
null
null
mit
null
null
null
null
null
null
null
uk/03-skills/code-review/scripts/compare-complexity.py
null
null
null
null
null
null
Python
2026-05-04T02:24:52.912201
#!/usr/bin/env python3 """ Compare cyclomatic complexity of code before and after changes. Helps identify if refactoring actually simplifies code structure. """ import re import sys class ComplexityAnalyzer: """Analyze code complexity metrics.""" def __init__(self, code: str): self.code = code ...
luongnv89/claude-howto
https://github.com/luongnv89/claude-howto
null
null
null
null
30,945
null
null
mit
null
null
null
null
null
null
null
uk/03-skills/code-review/scripts/analyze-metrics.py
null
null
null
null
null
null
Python
2026-05-04T02:24:52.930455
#!/usr/bin/env python3 import re import sys def analyze_code_metrics(code): """Analyze code for common metrics.""" # Count functions functions = len(re.findall(r"^def\s+\w+", code, re.MULTILINE)) # Count classes classes = len(re.findall(r"^class\s+\w+", code, re.MULTILINE)) # Average line l...
luongnv89/claude-howto
https://github.com/luongnv89/claude-howto
null
null
null
null
30,945
null
null
mit
null
null
null
null
null
null
null
scripts/tests/test_build_epub.py
null
null
null
null
null
null
Python
2026-05-04T02:24:52.931823
"""Tests for the EPUB builder module.""" from __future__ import annotations import logging from pathlib import Path from unittest.mock import MagicMock, patch import pytest # Fixtures are imported from conftest.py automatically by pytest # Import from parent directory (handled by conftest.py sys.path) from build_ep...
luongnv89/claude-howto
https://github.com/luongnv89/claude-howto
null
null
null
null
30,945
null
null
mit
null
null
null
null
null
null
null
scripts/tests/test_check_cross_references.py
null
null
null
null
null
null
Python
2026-05-04T02:24:52.944186
"""Tests for check_cross_references.py — focus on repo-root boundary.""" from __future__ import annotations import os import sys from pathlib import Path import pytest sys.path.insert(0, str(Path(__file__).parent.parent)) import check_cross_references @pytest.fixture def repo(tmp_path: Path, monkeypatch: pytest....
luongnv89/claude-howto
https://github.com/luongnv89/claude-howto
null
null
null
null
30,945
null
null
mit
null
null
null
null
null
null
null
uk/03-skills/doc-generator/generate-docs.py
null
null
null
null
null
null
Python
2026-05-04T02:24:52.955673
#!/usr/bin/env python3 import ast class APIDocExtractor(ast.NodeVisitor): """Extract API documentation from Python source code.""" def __init__(self): self.endpoints = [] def visit_FunctionDef(self, node): """Extract function documentation.""" if node.name.startswith("get_") or n...
luongnv89/claude-howto
https://github.com/luongnv89/claude-howto
null
null
null
null
30,945
null
null
mit
null
null
null
null
null
null
null
uk/06-hooks/context-tracker.py
null
null
null
null
null
null
Python
2026-05-04T02:24:53.764513
#!/usr/bin/env python3 """ Context Usage Tracker - Tracks token consumption per request. Uses UserPromptSubmit as "pre-message" hook and Stop as "post-response" hook to calculate the delta in token usage for each request. This version uses character-based estimation (no dependencies). For better accuracy, see context...
luongnv89/claude-howto
https://github.com/luongnv89/claude-howto
null
null
null
null
30,945
null
null
mit
null
null
null
null
null
null
null
uk/06-hooks/context-tracker-tiktoken.py
null
null
null
null
null
null
Python
2026-05-04T02:24:53.796337
#!/usr/bin/env python3 """ Context Usage Tracker (tiktoken version) - Tracks token consumption per request. Uses UserPromptSubmit as "pre-message" hook and Stop as "post-response" hook to calculate the delta in token usage for each request. This version uses tiktoken with p50k_base encoding for ~90-95% accuracy. Requ...
luongnv89/claude-howto
https://github.com/luongnv89/claude-howto
null
null
null
null
30,945
null
null
mit
null
null
null
null
null
null
null
uk/09-advanced-features/setup-auto-mode-permissions.py
null
null
null
null
null
null
Python
2026-05-04T02:24:53.825725
#!/usr/bin/env python3 """ setup-auto-mode-permissions.py Seed ~/.claude/settings.json with a conservative baseline of safe permissions for Claude Code. The default set is read-only and local-inspection oriented; optional flags let you widen the allowlist for editing, test execution, git write operations, package inst...
luongnv89/claude-howto
https://github.com/luongnv89/claude-howto
null
null
null
null
30,945
null
null
mit
null
null
null
null
null
null
null
vi/06-hooks/context-tracker.py
null
null
null
null
null
null
Python
2026-05-04T02:24:53.831635
#!/usr/bin/env python3 """ Context Usage Tracker - Tracks token consumption per request. Uses UserPromptSubmit as "pre-message" hook and Stop as "post-response" hook to calculate the delta in token usage for each request. This version uses character-based estimation (no dependencies). For better accuracy, see context...
luongnv89/claude-howto
https://github.com/luongnv89/claude-howto
null
null
null
null
30,945
null
null
mit
null
null
null
null
null
null
null
vi/06-hooks/context-tracker-tiktoken.py
null
null
null
null
null
null
Python
2026-05-04T02:24:54.289101
#!/usr/bin/env python3 """ Context Usage Tracker (tiktoken version) - Tracks token consumption per request. Uses UserPromptSubmit as "pre-message" hook and Stop as "post-response" hook to calculate the delta in token usage for each request. This version uses tiktoken with p50k_base encoding for ~90-95% accuracy. Requ...
luongnv89/claude-howto
https://github.com/luongnv89/claude-howto
null
null
null
null
30,945
null
null
mit
null
null
null
null
null
null
null
vi/09-advanced-features/setup-auto-mode-permissions.py
null
null
null
null
null
null
Python
2026-05-04T02:24:54.289638
#!/usr/bin/env python3 """ setup-auto-mode-permissions.py Seed ~/.claude/settings.json with a conservative baseline of safe permissions for Claude Code. The default set is read-only and local-inspection oriented; optional flags let you widen the allowlist for editing, test execution, git write operations, package inst...
luongnv89/claude-howto
https://github.com/luongnv89/claude-howto
null
null
null
null
30,945
null
null
mit
null
null
null
null
null
null
null
uk/03-skills/refactor/scripts/detect-smells.py
null
null
null
null
null
null
Python
2026-05-04T02:24:54.290227
#!/usr/bin/env python3 """ Code Smell Detector Detects common code smells in Python, JavaScript, and TypeScript files. Based on Martin Fowler's catalog of code smells. Usage: python detect-smells.py <file> python detect-smells.py --dir <directory> python detect-smells.py -v <file> # Verbose with code sni...
luongnv89/claude-howto
https://github.com/luongnv89/claude-howto
null
null
null
null
30,945
null
null
mit
null
null
null
null
null
null
null
uk/03-skills/refactor/scripts/analyze-complexity.py
null
null
null
null
null
null
Python
2026-05-04T02:24:55.370610
#!/usr/bin/env python3 """ Code Complexity Analyzer Analyzes code complexity metrics for Python, JavaScript, and TypeScript files. Helps measure the impact of refactoring by comparing before/after metrics. Usage: python analyze-complexity.py <file> python analyze-complexity.py <before_file> <after_file> # Co...
StevenBlack/hosts
https://github.com/StevenBlack/hosts
null
null
null
null
30,300
null
null
mit
null
null
null
null
null
null
null
makeHosts.py
null
null
null
null
null
null
Python
2026-05-04T02:24:57.943185
#!/usr/bin/env python # Script by gfyoung # https://github.com/gfyoung # # This Python script will generate hosts files and update the readme file. from __future__ import print_function import argparse import subprocess import sys def print_failure(msg): """ Print a failure message. Parameters ---...
StevenBlack/hosts
https://github.com/StevenBlack/hosts
null
null
null
null
30,300
null
null
mit
null
null
null
null
null
null
null
updateReadme.py
null
null
null
null
null
null
Python
2026-05-04T02:24:57.957337
#!/usr/bin/env python3 # Script by Steven Black # https://github.com/StevenBlack # # This Python script will update the readme files in this repo. import json import os import time from string import Template # Project Settings BASEDIR_PATH = os.path.dirname(os.path.realpath(__file__)) README_TEMPLATE = os.path.join...
StevenBlack/hosts
https://github.com/StevenBlack/hosts
null
null
null
null
30,300
null
null
mit
null
null
null
null
null
null
null
updateHostsFile.py
null
null
null
null
null
null
Python
2026-05-04T02:24:57.978578
#!/usr/bin/env python3 # Script by Ben Limmer # https://github.com/l1m5 # # This Python script will combine all the host files you provide # as sources into one, unique host file to keep your internet browsing happy. import argparse import fnmatch import ipaddress import json import locale import os import platform f...
StevenBlack/hosts
https://github.com/StevenBlack/hosts
null
null
null
null
30,300
null
null
mit
null
null
null
null
null
null
null
testUpdateHostsFile.py
null
null
null
null
null
null
Python
2026-05-04T02:24:58.008827
#!/usr/bin/env python # Script by gfyoung # https://github.com/gfyoung # # Python script for testing updateHostFiles.py import json import locale import os import platform import re import shutil import sys import tempfile import unittest import unittest.mock as mock from io import BytesIO, StringIO import requests ...
MetaCubeX/mihomo
https://github.com/MetaCubeX/mihomo
null
null
null
null
29,683
null
null
mit
null
null
null
null
null
null
null
mihomo/client.py
null
null
null
null
null
null
Python
2026-05-04T02:25:00.672489
import typing from enum import Enum import aiohttp from . import tools from .errors import HttpRequestError, InvalidParams, UserNotFound from .models import StarrailInfoParsed from .models.v1 import StarrailInfoParsedV1 class Language(Enum): CHT = "cht" CHS = "cn" DE = "de" EN = "en" ES = "es" ...
MetaCubeX/mihomo
https://github.com/MetaCubeX/mihomo
null
null
null
null
29,683
null
null
mit
null
null
null
null
null
null
null
examples/data_persistence.py
null
null
null
null
null
null
Python
2026-05-04T02:25:00.673489
import asyncio import pickle import zlib from mihomo import Language, MihomoAPI, StarrailInfoParsed async def main(): client = MihomoAPI(language=Language.EN) data = await client.fetch_user(800333171) # Save pickle_data = zlib.compress(pickle.dumps(data)) print(len(pickle_data)) json_data = ...
MetaCubeX/mihomo
https://github.com/MetaCubeX/mihomo
null
null
null
null
29,683
null
null
mit
null
null
null
null
null
null
null
mihomo/models/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:25:00.675734
from .base import * from .character import * from .combat import * from .equipment import * from .player import * from .stat import *
MetaCubeX/mihomo
https://github.com/MetaCubeX/mihomo
null
null
null
null
29,683
null
null
mit
null
null
null
null
null
null
null
mihomo/models/combat.py
null
null
null
null
null
null
Python
2026-05-04T02:25:00.676769
from pydantic import BaseModel class Element(BaseModel): """ Represents an element. Attributes: - id (`str`): The ID of the element. - name (`str`): The name of the element. - color (`str`): The color of the element. - icon (`str`): The element icon. """ id: str ...
MetaCubeX/mihomo
https://github.com/MetaCubeX/mihomo
null
null
null
null
29,683
null
null
mit
null
null
null
null
null
null
null
examples/basic.py
null
null
null
null
null
null
Python
2026-05-04T02:25:01.079608
import asyncio from mihomo import Language, MihomoAPI from mihomo.models import StarrailInfoParsed from mihomo.models.v1 import StarrailInfoParsedV1 client = MihomoAPI(language=Language.EN) async def v1(): data: StarrailInfoParsedV1 = await client.fetch_user_v1(800333171) print(f"Name: {data.player.name}")...
MetaCubeX/mihomo
https://github.com/MetaCubeX/mihomo
null
null
null
null
29,683
null
null
mit
null
null
null
null
null
null
null
examples/merge_data.py
null
null
null
null
null
null
Python
2026-05-04T02:25:01.081405
import asyncio from mihomo import Language, MihomoAPI, tools async def main(): client = MihomoAPI(language=Language.EN) old_data = await client.fetch_user(800333171) # Change characters in game and wait for the API to refresh # ... new_data = await client.fetch_user(800333171) data = tools....
MetaCubeX/mihomo
https://github.com/MetaCubeX/mihomo
null
null
null
null
29,683
null
null
mit
null
null
null
null
null
null
null
mihomo/models/character.py
null
null
null
null
null
null
Python
2026-05-04T02:25:01.082631
from typing import Any from pydantic import BaseModel, Field, root_validator from .combat import Element, Path, Trace, TraceTreeNode from .equipment import LightCone, Relic, RelicSet from .stat import Attribute, Property class Character(BaseModel): """ Represents a character. Attributes: - Basic in...
MetaCubeX/mihomo
https://github.com/MetaCubeX/mihomo
null
null
null
null
29,683
null
null
mit
null
null
null
null
null
null
null
mihomo/errors.py
null
null
null
null
null
null
Python
2026-05-04T02:25:01.084617
class BaseException(Exception): """Base exception class.""" message: str = "" def __init__(self, message: str | None = None, *args: object) -> None: if message is not None: self.message = message super().__init__(self.message, *args) class HttpRequestError(BaseException): ...
MetaCubeX/mihomo
https://github.com/MetaCubeX/mihomo
null
null
null
null
29,683
null
null
mit
null
null
null
null
null
null
null
mihomo/models/base.py
null
null
null
null
null
null
Python
2026-05-04T02:25:01.895372
from pydantic import BaseModel, Field from .character import Character from .player import Player class StarrailInfoParsed(BaseModel): """ Mihomo parsed data Attributes: - player (`Player`): The player's info. - characters (list[`Character`]): The list of characters. """ player:...
MetaCubeX/mihomo
https://github.com/MetaCubeX/mihomo
null
null
null
null
29,683
null
null
mit
null
null
null
null
null
null
null
mihomo/models/equipment.py
null
null
null
null
null
null
Python
2026-05-04T02:25:01.896482
from pydantic import BaseModel, Field from .combat import Path from .stat import Attribute, MainAffix, Property, SubAffix class LightCone(BaseModel): """ Represents a light cone (weapon). Attributes: - id (`int`): The ID of the light cone. - name (`str`): The name of the light cone. ...
MetaCubeX/mihomo
https://github.com/MetaCubeX/mihomo
null
null
null
null
29,683
null
null
mit
null
null
null
null
null
null
null
mihomo/models/stat.py
null
null
null
null
null
null
Python
2026-05-04T02:25:01.897094
from pydantic import BaseModel, Field class Attribute(BaseModel): """ Represents an attribute. Attributes: - field (`str`): The field of the attribute. - name (`str`): The name of the attribute. - icon (`str`): The attribute icon image. - value (`float`): The value of the ...
MetaCubeX/mihomo
https://github.com/MetaCubeX/mihomo
null
null
null
null
29,683
null
null
mit
null
null
null
null
null
null
null
mihomo/models/v1/base.py
null
null
null
null
null
null
Python
2026-05-04T02:25:01.897600
from pydantic import BaseModel, Field from .character import Character from .player import Player, PlayerSpaceInfo class StarrailInfoParsedV1(BaseModel): """ Mihomo parsed data V1 Attributes: - player (`Player`): The player's basic info. - player_details (`PlayerSpaceInfo`): ...
MetaCubeX/mihomo
https://github.com/MetaCubeX/mihomo
null
null
null
null
29,683
null
null
mit
null
null
null
null
null
null
null
mihomo/models/player.py
null
null
null
null
null
null
Python
2026-05-04T02:25:02.291626
from pydantic import BaseModel, Field, root_validator class Avatar(BaseModel): """Profile picture""" id: int name: str icon: str class ForgottenHall(BaseModel): """The progress of the Forgotten Hall Attributes: - memory (`int`): The progress of the memory. - memory_of_chaos...
MetaCubeX/mihomo
https://github.com/MetaCubeX/mihomo
null
null
null
null
29,683
null
null
mit
null
null
null
null
null
null
null
mihomo/models/v1/equipment.py
null
null
null
null
null
null
Python
2026-05-04T02:25:02.658039
from pydantic import BaseModel, Field class LightCone(BaseModel): """ Represents a light cone (weapon). Attributes: - name (`str`): The name of the light cone. - rarity (`int`): The rarity of the light cone. - superimpose (`int`): The superimpose rank of the light cone. ...
MetaCubeX/mihomo
https://github.com/MetaCubeX/mihomo
null
null
null
null
29,683
null
null
mit
null
null
null
null
null
null
null
mihomo/models/v1/character.py
null
null
null
null
null
null
Python
2026-05-04T02:25:02.700914
from typing import Any from pydantic import BaseModel, Field, root_validator from .equipment import LightCone, Relic, RelicSet class EidolonIcon(BaseModel): """ Represents an Eidolon icon. Attributes: - icon (`str`): The eidolon icon. - unlock (`bool`): Indicates if the eid...
MetaCubeX/mihomo
https://github.com/MetaCubeX/mihomo
null
null
null
null
29,683
null
null
mit
null
null
null
null
null
null
null
mihomo/tools.py
null
null
null
null
null
null
Python
2026-05-04T02:25:02.831124
from typing import Final, TypeVar from .models import Character, StarrailInfoParsed from .models.v1 import Character, StarrailInfoParsedV1 RawData = TypeVar("RawData") ParsedData = TypeVar("ParsedData", StarrailInfoParsed, StarrailInfoParsedV1) ASSET_URL: Final[str] = "https://raw.githubusercontent.com/Mar-7th/StarR...
MetaCubeX/mihomo
https://github.com/MetaCubeX/mihomo
null
null
null
null
29,683
null
null
mit
null
null
null
null
null
null
null
mihomo/models/v1/player.py
null
null
null
null
null
null
Python
2026-05-04T02:25:02.860885
from pydantic import BaseModel, Field class Player(BaseModel): """ Player basic info Attributes: - uid (`str`): The player's uid. - name (`str`): The player's nickname. - level (`int`): The player's Trailblaze level. - icon (`str`): The player's profile picture....
deezer/spleeter
https://github.com/deezer/spleeter
null
null
null
null
28,199
null
null
mit
null
null
null
null
null
null
null
spleeter/audio/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:25:05.878949
#!/usr/bin/env python # coding: utf8 """ `spleeter.utils.audio` package provides various tools for manipulating audio content such as : - Audio adapter class for abstract interaction with audio file. - FFMPEG implementation for audio adapter. - Waveform convertion and transforming functions. """ # Python 3.11 is not...
deezer/spleeter
https://github.com/deezer/spleeter
null
null
null
null
28,199
null
null
mit
null
null
null
null
null
null
null
spleeter/audio/ffmpeg.py
null
null
null
null
null
null
Python
2026-05-04T02:25:05.880571
#!/usr/bin/env python # coding: utf8 """ This module provides an AudioAdapter implementation based on FFMPEG process. Such implementation is POSIXish and depends on nothing except standard Python libraries. Thus this implementation is the default one used within this library. """ import datetime as dt import os impor...
deezer/spleeter
https://github.com/deezer/spleeter
null
null
null
null
28,199
null
null
mit
null
null
null
null
null
null
null
spleeter/model/functions/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:25:05.882108
#!/usr/bin/env python # coding: utf8 """ This package provide model functions. """ from typing import Callable, Dict, Iterable, Optional # pyright: reportMissingImports=false # pylint: disable=import-error import tensorflow as tf # type: ignore # pylint: enable=import-error __email__ = "spleeter@deezer.com" __aut...
deezer/spleeter
https://github.com/deezer/spleeter
null
null
null
null
28,199
null
null
mit
null
null
null
null
null
null
null
spleeter/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:25:05.883457
#!/usr/bin/env python # coding: utf8 """ Spleeter is the Deezer source separation library with pretrained models. The library is based on Tensorflow: - It provides already trained model for performing separation. - It makes it easy to train source separation model with tensorflow (provided you have a dataset ...
deezer/spleeter
https://github.com/deezer/spleeter
null
null
null
null
28,199
null
null
mit
null
null
null
null
null
null
null
spleeter/model/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:25:05.995397
#!/usr/bin/env python # coding: utf8 """ This package provide an estimator builder as well as model functions. """ import importlib from typing import Any, Dict, Optional, Tuple # pyright: reportMissingImports=false # pylint: disable=import-error import tensorflow as tf # type: ignore from tensorflow.signal import ...
deezer/spleeter
https://github.com/deezer/spleeter
null
null
null
null
28,199
null
null
mit
null
null
null
null
null
null
null
spleeter/audio/spectrogram.py
null
null
null
null
null
null
Python
2026-05-04T02:25:06.634075
#!/usr/bin/env python # coding: utf8 """ Spectrogram specific data augmentation. """ # pyright: reportMissingImports=false # pylint: disable=import-error import tensorflow as tf # type: ignore from tensorflow.signal import hann_window, stft # type: ignore # pylint: enable=import-error __email__ = "spleeter@deezer...
deezer/spleeter
https://github.com/deezer/spleeter
null
null
null
null
28,199
null
null
mit
null
null
null
null
null
null
null
spleeter/__main__.py
null
null
null
null
null
null
Python
2026-05-04T02:25:06.635125
#!/usr/bin/env python # coding: utf8 """ Python oneliner script usage. USAGE: python -m spleeter {train,evaluate,separate} ... Notes: All critical import involving TF, numpy or Pandas are deported to command function scope to avoid heavy import on CLI evaluation, leading to large bootstraping time. """ i...
deezer/spleeter
https://github.com/deezer/spleeter
null
null
null
null
28,199
null
null
mit
null
null
null
null
null
null
null
spleeter/audio/adapter.py
null
null
null
null
null
null
Python
2026-05-04T02:25:06.699975
#!/usr/bin/env python # coding: utf8 """ AudioAdapter class defintion. """ from abc import ABC, abstractmethod from importlib import import_module from pathlib import Path from typing import Any, Dict, List, Optional, Union # pyright: reportMissingImports=false # pylint: disable=import-error import numpy as np impor...
deezer/spleeter
https://github.com/deezer/spleeter
null
null
null
null
28,199
null
null
mit
null
null
null
null
null
null
null
spleeter/audio/convertor.py
null
null
null
null
null
null
Python
2026-05-04T02:25:06.747078
#!/usr/bin/env python # coding: utf8 """ This module provides audio data convertion functions. """ # pyright: reportMissingImports=false # pylint: disable=import-error import numpy as np import tensorflow as tf # type: ignore from ..utils.tensor import from_float32_to_uint8, from_uint8_to_float32 # pylint: enable=...
deezer/spleeter
https://github.com/deezer/spleeter
null
null
null
null
28,199
null
null
mit
null
null
null
null
null
null
null
spleeter/options.py
null
null
null
null
null
null
Python
2026-05-04T02:25:06.859711
#!/usr/bin/env python # coding: utf8 """This modules provides spleeter command as well as CLI parsing methods.""" from os.path import join from tempfile import gettempdir from typer import Argument, Exit, Option, echo from typer.models import List, Optional from .audio import Codec __email__ = "spleeter@deezer.com...
deezer/spleeter
https://github.com/deezer/spleeter
null
null
null
null
28,199
null
null
mit
null
null
null
null
null
null
null
spleeter/model/provider/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:25:06.878702
#!/usr/bin/env python # coding: utf8 """ This package provides tools for downloading model from network using remote storage abstraction. Example: ```python >>> provider = MyProviderImplementation() >>> provider.get('/path/to/local/storage', params) ``` """ from abc import ABC, abstractmethod from os import environ,...
deezer/spleeter
https://github.com/deezer/spleeter
null
null
null
null
28,199
null
null
mit
null
null
null
null
null
null
null
spleeter/dataset.py
null
null
null
null
null
null
Python
2026-05-04T02:25:06.991012
#!/usr/bin/env python # coding: utf8 """ Module for building data preprocessing pipeline using the tensorflow data API. Data preprocessing such as audio loading, spectrogram computation, cropping, feature caching or data augmentation is done using a tensorflow dataset object that output a tuple (input_, output) where:...
deezer/spleeter
https://github.com/deezer/spleeter
null
null
null
null
28,199
null
null
mit
null
null
null
null
null
null
null
spleeter/resources/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:25:07.515152
#!/usr/bin/env python # coding: utf8 """ Packages that provides static resources file for the library. """ __email__ = "spleeter@deezer.com" __author__ = "Deezer Research" __license__ = "MIT License"
deezer/spleeter
https://github.com/deezer/spleeter
null
null
null
null
28,199
null
null
mit
null
null
null
null
null
null
null
spleeter/utils/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:25:07.515679
#!/usr/bin/env python # coding: utf8 """ This package provides utility function and classes. """ __email__ = "spleeter@deezer.com" __author__ = "Deezer Research" __license__ = "MIT License"
deezer/spleeter
https://github.com/deezer/spleeter
null
null
null
null
28,199
null
null
mit
null
null
null
null
null
null
null
spleeter/types.py
null
null
null
null
null
null
Python
2026-05-04T02:25:07.592979
#!/usr/bin/env python # coding: utf8 """ Custom types definition. """ from typing import Any, Tuple # pyright: reportMissingImports=false # pylint: disable=import-error import numpy as np # pylint: enable=import-error AudioDescriptor = Any Signal = Tuple[np.ndarray, float]
deezer/spleeter
https://github.com/deezer/spleeter
null
null
null
null
28,199
null
null
mit
null
null
null
null
null
null
null
spleeter/separator.py
null
null
null
null
null
null
Python
2026-05-04T02:25:07.677150
#!/usr/bin/env python # coding: utf8 """ Module that provides a class wrapper for source separation. Examples: ```python >>> from spleeter.separator import Separator >>> separator = Separator('spleeter:2stems') >>> separator.separate(waveform, lambda instrument, data: ...) >>> separator.separate_to_file(...) ``` """...
deezer/spleeter
https://github.com/deezer/spleeter
null
null
null
null
28,199
null
null
mit
null
null
null
null
null
null
null
tests/test_command.py
null
null
null
null
null
null
Python
2026-05-04T02:25:08.165319
#!/usr/bin/env python # coding: utf8 """ Unit testing for Separator class. """ __email__ = "research@deezer.com" __author__ = "Deezer Research" __license__ = "MIT License" from typer.testing import CliRunner from spleeter.__main__ import spleeter def test_version(): runner = CliRunner() # execute spleet...
deezer/spleeter
https://github.com/deezer/spleeter
null
null
null
null
28,199
null
null
mit
null
null
null
null
null
null
null
tests/test_eval.py
null
null
null
null
null
null
Python
2026-05-04T02:25:08.234681
#!/usr/bin/env python # coding: utf8 """ Unit testing for Separator class. """ __email__ = "spleeter@deezer.com" __author__ = "Deezer Research" __license__ = "MIT License" from os import makedirs from os.path import join from tempfile import TemporaryDirectory import numpy as np from spleeter.__main__ import evalu...
deezer/spleeter
https://github.com/deezer/spleeter
null
null
null
null
28,199
null
null
mit
null
null
null
null
null
null
null
tests/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:25:08.267975
#!/usr/bin/env python # coding: utf8 """ Unit testing package. """ __email__ = "spleeter@deezer.com" __author__ = "Deezer Research" __license__ = "MIT License"
deezer/spleeter
https://github.com/deezer/spleeter
null
null
null
null
28,199
null
null
mit
null
null
null
null
null
null
null
tests/test_ffmpeg_adapter.py
null
null
null
null
null
null
Python
2026-05-04T02:25:08.269199
#!/usr/bin/env python # coding: utf8 """ Unit testing for audio adapter. """ __email__ = "spleeter@deezer.com" __author__ = "Deezer Research" __license__ = "MIT License" from os.path import join from tempfile import TemporaryDirectory import ffmpeg # type: ignore import numpy as np # pyright: reportMissingImports...
deezer/spleeter
https://github.com/deezer/spleeter
null
null
null
null
28,199
null
null
mit
null
null
null
null
null
null
null
spleeter/utils/configuration.py
null
null
null
null
null
null
Python
2026-05-04T02:25:08.628547
#!/usr/bin/env python # coding: utf8 """ Module that provides configuration loading function. """ import importlib.resources as loader import json from os.path import exists from typing import Dict from .. import SpleeterError, resources __email__ = "spleeter@deezer.com" __author__ = "Deezer Research" __license__ =...
deezer/spleeter
https://github.com/deezer/spleeter
null
null
null
null
28,199
null
null
mit
null
null
null
null
null
null
null
tests/test_github_model_provider.py
null
null
null
null
null
null
Python
2026-05-04T02:25:08.767269
#!/usr/bin/env python # coding: utf8 """ TO DOCUMENT """ from pytest import raises from spleeter.model.provider import ModelProvider def test_checksum(): """Test archive checksum index retrieval.""" provider = ModelProvider.default() assert ( provider.checksum("2stems") == "f3a90b39dd28...
deezer/spleeter
https://github.com/deezer/spleeter
null
null
null
null
28,199
null
null
mit
null
null
null
null
null
null
null
tests/test_train.py
null
null
null
null
null
null
Python
2026-05-04T02:25:08.910036
#!/usr/bin/env python # coding: utf8 """ Unit testing for Separator class. """ __email__ = "research@deezer.com" __author__ = "Deezer Research" __license__ = "MIT License" import json import os from os import makedirs from os.path import join from tempfile import TemporaryDirectory import numpy as np import pandas ...
deezer/spleeter
https://github.com/deezer/spleeter
null
null
null
null
28,199
null
null
mit
null
null
null
null
null
null
null
tests/test_separator.py
null
null
null
null
null
null
Python
2026-05-04T02:25:08.965319
#!/usr/bin/env python # coding: utf8 """ Unit testing for Separator class. """ __email__ = "spleeter@deezer.com" __author__ = "Deezer Research" __license__ = "MIT License" import itertools from os.path import basename, exists, join, splitext from tempfile import TemporaryDirectory import numpy as np import pytest i...
deezer/spleeter
https://github.com/deezer/spleeter
null
null
null
null
28,199
null
null
mit
null
null
null
null
null
null
null
spleeter/model/functions/blstm.py
null
null
null
null
null
null
Python
2026-05-04T02:25:11.696140
#!/usr/bin/env python # coding: utf8 """ This system (UHL1) uses a bi-directional LSTM network as described in : `S. Uhlich, M. Porcu, F. Giron, M. Enenkl, T. Kemp, N. Takahashi and Y. Mitsufuji. "Improving music source separation based on deep neural networks through data augmentation and network blending", Proc. I...
deezer/spleeter
https://github.com/deezer/spleeter
null
null
null
null
28,199
null
null
mit
null
null
null
null
null
null
null
spleeter/model/provider/github.py
null
null
null
null
null
null
Python
2026-05-04T02:25:11.799384
#!/usr/bin/env python # coding: utf8 """ A ModelProvider backed by Github Release feature. Examples: ```python >>> from spleeter.model.provider import github >>> provider = github.GithubModelProvider( 'github.com', 'Deezer/spleeter', 'latest') >>> provider.download('2stems', '/path/to/local/s...
deezer/spleeter
https://github.com/deezer/spleeter
null
null
null
null
28,199
null
null
mit
null
null
null
null
null
null
null
spleeter/model/functions/unet.py
null
null
null
null
null
null
Python
2026-05-04T02:25:11.802100
#!/usr/bin/env python # coding: utf8 """ This module contains building functions for U-net source separation models in a similar way as in A. Jansson et al. : "Singing voice separation with deep u-net convolutional networks", ISMIR 2017 Each instrument is modeled by a single U-net convolutional / deconvolutional net...
deezer/spleeter
https://github.com/deezer/spleeter
null
null
null
null
28,199
null
null
mit
null
null
null
null
null
null
null
spleeter/utils/logging.py
null
null
null
null
null
null
Python
2026-05-04T02:25:12.571405
#!/usr/bin/env python # coding: utf8 """Centralized logging facilities for Spleeter.""" import logging import warnings from os import environ # pyright: reportMissingImports=false # pylint: disable=import-error from typer import echo # pylint: enable=import-error __email__ = "spleeter@deezer.com" __author__ = "Dee...
deezer/spleeter
https://github.com/deezer/spleeter
null
null
null
null
28,199
null
null
mit
null
null
null
null
null
null
null
spleeter/utils/tensor.py
null
null
null
null
null
null
Python
2026-05-04T02:25:12.684444
#!/usr/bin/env python # coding: utf8 """ Utility function for tensorflow. """ from typing import Any, Callable, Dict import pandas as pd # type: ignore # pyright: reportMissingImports=false # pylint: disable=import-error import tensorflow as tf # type: ignore # pylint: enable=import-error __email__ = "spleeter@...
stanford-oval/storm
https://github.com/stanford-oval/storm
null
null
null
null
28,156
null
null
mit
null
null
null
null
null
null
null
examples/storm_examples/run_storm_wiki_gpt_with_VectorRM.py
null
null
null
null
null
null
Python
2026-05-04T02:25:14.988450
""" This STORM Wiki pipeline powered by GPT-3.5/4 and local retrieval model that uses Qdrant. You need to set up the following environment variables to run this script: - OPENAI_API_KEY: OpenAI API key - OPENAI_API_TYPE: OpenAI API type (e.g., 'openai' or 'azure') - QDRANT_API_KEY: Qdrant API key (needed ON...
stanford-oval/storm
https://github.com/stanford-oval/storm
null
null
null
null
28,156
null
null
mit
null
null
null
null
null
null
null
examples/storm_examples/run_storm_wiki_ollama.py
null
null
null
null
null
null
Python
2026-05-04T02:25:14.990783
""" STORM Wiki pipeline powered by local model hosted by Ollama server and You.com or Bing search engine. You need to set up the following environment variables to run this script: - YDC_API_KEY: You.com API key; BING_SEARCH_API_KEY: Bing Search API key, SERPER_API_KEY: Serper API key, BRAVE_API_KEY: Brave API key,...
stanford-oval/storm
https://github.com/stanford-oval/storm
null
null
null
null
28,156
null
null
mit
null
null
null
null
null
null
null
examples/storm_examples/helper/process_kaggle_arxiv_abstract_dataset.py
null
null
null
null
null
null
Python
2026-05-04T02:25:14.995542
"""Process `arxiv_data_210930-054931.csv` from https://www.kaggle.com/datasets/spsayakpaul/arxiv-paper-abstracts to a csv file that is compatible with VectorRM. """ from argparse import ArgumentParser import pandas as pd if __name__ == "__main__": parser = ArgumentParser() parser.add_argument( "--in...
stanford-oval/storm
https://github.com/stanford-oval/storm
null
null
null
null
28,156
null
null
mit
null
null
null
null
null
null
null
examples/storm_examples/run_storm_wiki_mistral.py
null
null
null
null
null
null
Python
2026-05-04T02:25:14.996817
""" STORM Wiki pipeline powered by Mistral-7B-Instruct-v0.2 hosted by VLLM server and You.com search engine. You need to set up the following environment variables to run this script: - YDC_API_KEY: You.com API key; BING_SEARCH_API_KEY: Bing Search API key, SERPER_API_KEY: Serper API key, BRAVE_API_KEY: Brave API k...
stanford-oval/storm
https://github.com/stanford-oval/storm
null
null
null
null
28,156
null
null
mit
null
null
null
null
null
null
null
examples/storm_examples/run_storm_wiki_claude.py
null
null
null
null
null
null
Python
2026-05-04T02:25:15.004893
""" STORM Wiki pipeline powered by Claude family models and You.com search engine. You need to set up the following environment variables to run this script: - ANTHROPIC_API_KEY: Anthropic API key - YDC_API_KEY: You.com API key; BING_SEARCH_API_KEY: Bing Search API key, SERPER_API_KEY: Serper API key, BRAVE_API...
stanford-oval/storm
https://github.com/stanford-oval/storm
null
null
null
null
28,156
null
null
mit
null
null
null
null
null
null
null
examples/storm_examples/run_storm_wiki_deepseek.py
null
null
null
null
null
null
Python
2026-05-04T02:25:15.012259
""" STORM Wiki pipeline powered by DeepSeek models and You.com or Bing search engine. You need to set up the following environment variables to run this script: - DEEPSEEK_API_KEY: DeepSeek API key - DEEPSEEK_API_BASE: DeepSeek API base URL (default is https://api.deepseek.com) - YDC_API_KEY: You.com API ke...
stanford-oval/storm
https://github.com/stanford-oval/storm
null
null
null
null
28,156
null
null
mit
null
null
null
null
null
null
null
examples/costorm_examples/run_costorm_gpt.py
null
null
null
null
null
null
Python
2026-05-04T02:25:15.016621
""" Co-STORM pipeline powered by GPT-4o/4o-mini and Bing search engine. You need to set up the following environment variables to run this script: - OPENAI_API_KEY: OpenAI API key - OPENAI_API_TYPE: OpenAI API type (e.g., 'openai' or 'azure') - AZURE_API_BASE: Azure API base URL if using Azure API - AZU...
stanford-oval/storm
https://github.com/stanford-oval/storm
null
null
null
null
28,156
null
null
mit
null
null
null
null
null
null
null
examples/storm_examples/run_storm_wiki_groq.py
null
null
null
null
null
null
Python
2026-05-04T02:25:15.019049
""" STORM Wiki pipeline powered by llama3-70b-8192 hosted by Groq server and You.com search engine. You need to set up the following environment variables to run this script: - GROQ_API_KEY: You can get your Groq API Key at https://console.groq.com/keys - YDC_API_KEY: You.com API key; BING_SEARCH_API_KEY: Bing ...
stanford-oval/storm
https://github.com/stanford-oval/storm
null
null
null
null
28,156
null
null
mit
null
null
null
null
null
null
null
examples/storm_examples/run_storm_wiki_gpt.py
null
null
null
null
null
null
Python
2026-05-04T02:25:15.024463
""" STORM Wiki pipeline powered by GPT-3.5/4 and You.com search engine. You need to set up the following environment variables to run this script: - OPENAI_API_KEY: OpenAI API key - OPENAI_API_TYPE: OpenAI API type (e.g., 'openai' or 'azure') - AZURE_API_BASE: Azure API base URL if using Azure API - AZU...
stanford-oval/storm
https://github.com/stanford-oval/storm
null
null
null
null
28,156
null
null
mit
null
null
null
null
null
null
null
examples/storm_examples/run_storm_wiki_gemini.py
null
null
null
null
null
null
Python
2026-05-04T02:25:15.034377
""" STORM Wiki pipeline powered by Google Gemini models and search engine. You need to set up the following environment variables to run this script: - GOOGLE_API_KEY: Google API key (Can be obtained from https://ai.google.dev/gemini-api/docs/api-key) - YDC_API_KEY: You.com API key; BING_SEARCH_API_KEY: Bing Se...
stanford-oval/storm
https://github.com/stanford-oval/storm
null
null
null
null
28,156
null
null
mit
null
null
null
null
null
null
null
frontend/demo_light/pages_util/CreateNewArticle.py
null
null
null
null
null
null
Python
2026-05-04T02:25:16.006652
import os import time import demo_util import streamlit as st from demo_util import ( DemoFileIOHelper, DemoTextProcessingHelper, DemoUIHelper, truncate_filename, ) def handle_not_started(): if st.session_state["page3_write_article_state"] == "not started": _, search_form_column, _ = st.c...
stanford-oval/storm
https://github.com/stanford-oval/storm
null
null
null
null
28,156
null
null
mit
null
null
null
null
null
null
null
examples/storm_examples/run_storm_wiki_serper.py
null
null
null
null
null
null
Python
2026-05-04T02:25:16.007786
""" STORM Wiki pipeline powered by Claude family models and serper search engine. You need to set up the following environment variables to run this script: - ANTHROPIC_API_KEY: Anthropic API key - SERPER_API_KEY: Serper.dev api key Output will be structured as below args.output_dir/ topic_name/ # topic_n...
stanford-oval/storm
https://github.com/stanford-oval/storm
null
null
null
null
28,156
null
null
mit
null
null
null
null
null
null
null
frontend/demo_light/pages_util/MyArticles.py
null
null
null
null
null
null
Python
2026-05-04T02:25:16.010955
import os import demo_util import streamlit as st from demo_util import DemoFileIOHelper, DemoUIHelper from streamlit_card import card # set page config and display title def my_articles_page(): with st.sidebar: _, return_button_col = st.columns([2, 5]) with return_button_col: if st.b...
stanford-oval/storm
https://github.com/stanford-oval/storm
null
null
null
null
28,156
null
null
mit
null
null
null
null
null
null
null
knowledge_storm/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:25:16.012091
from .storm_wiki import * from .collaborative_storm import * from .encoder import * from .interface import * from .lm import * from .rm import * from .utils import * from .dataclass import * __version__ = "1.1.0"
stanford-oval/storm
https://github.com/stanford-oval/storm
null
null
null
null
28,156
null
null
mit
null
null
null
null
null
null
null
knowledge_storm/collaborative_storm/engine.py
null
null
null
null
null
null
Python
2026-05-04T02:25:16.015262
import dspy import os from dataclasses import dataclass, field, asdict from typing import List, Union, Literal, Optional, Dict from .modules import collaborative_storm_utils as collaborative_storm_utils from .modules.callback import BaseCallbackHandler from .modules.co_storm_agents import ( SimulatedUser, Pure...
stanford-oval/storm
https://github.com/stanford-oval/storm
null
null
null
null
28,156
null
null
mit
null
null
null
null
null
null
null
examples/storm_examples/run_storm_wiki_ollama_with_searxng.py
null
null
null
null
null
null
Python
2026-05-04T02:25:16.023446
import os from argparse import ArgumentParser from dspy import Example from knowledge_storm import ( STORMWikiRunnerArguments, STORMWikiRunner, STORMWikiLMConfigs, ) from knowledge_storm.lm import OllamaClient from knowledge_storm.rm import SearXNG from knowledge_storm.utils import load_api_key def main...
stanford-oval/storm
https://github.com/stanford-oval/storm
null
null
null
null
28,156
null
null
mit
null
null
null
null
null
null
null
frontend/demo_light/storm.py
null
null
null
null
null
null
Python
2026-05-04T02:25:16.023970
import os script_dir = os.path.dirname(os.path.abspath(__file__)) wiki_root_dir = os.path.dirname(os.path.dirname(script_dir)) import demo_util from pages_util import MyArticles, CreateNewArticle from streamlit_float import * from streamlit_option_menu import option_menu def main(): global database st.set_p...
stanford-oval/storm
https://github.com/stanford-oval/storm
null
null
null
null
28,156
null
null
mit
null
null
null
null
null
null
null
frontend/demo_light/demo_util.py
null
null
null
null
null
null
Python
2026-05-04T02:25:16.053248
import base64 import datetime import json import os import re from typing import Optional import markdown import pytz import streamlit as st # If you install the source code instead of the `knowledge-storm` package, # Uncomment the following lines: # import sys # sys.path.append('../../') from knowledge_storm import ...
stanford-oval/storm
https://github.com/stanford-oval/storm
null
null
null
null
28,156
null
null
mit
null
null
null
null
null
null
null
frontend/demo_light/stoc.py
null
null
null
null
null
null
Python
2026-05-04T02:25:16.307899
"""https://github.com/arnaudmiribel/stoc""" import re import streamlit as st import unidecode DISABLE_LINK_CSS = """ <style> a.toc { color: inherit; text-decoration: none; /* no underline */ } </style>""" class stoc: def __init__(self): self.toc_items = list() def h1(self, text: str, write...
stanford-oval/storm
https://github.com/stanford-oval/storm
null
null
null
null
28,156
null
null
mit
null
null
null
null
null
null
null
knowledge_storm/collaborative_storm/modules/article_generation.py
null
null
null
null
null
null
Python
2026-05-04T02:25:17.088997
import dspy from concurrent.futures import ThreadPoolExecutor, as_completed from typing import Set, Union from .collaborative_storm_utils import clean_up_section from ...dataclass import KnowledgeBase, KnowledgeNode class ArticleGenerationModule(dspy.Module): """Use the information collected from the in...
stanford-oval/storm
https://github.com/stanford-oval/storm
null
null
null
null
28,156
null
null
mit
null
null
null
null
null
null
null
knowledge_storm/collaborative_storm/modules/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:25:17.089518
from .article_generation import * from .grounded_question_answering import * from .grounded_question_generation import * from .information_insertion_module import * from .simulate_user import * from .warmstart_hierarchical_chat import * from .knowledge_base_summary import * from .costorm_expert_utterance_generator impo...
stanford-oval/storm
https://github.com/stanford-oval/storm
null
null
null
null
28,156
null
null
mit
null
null
null
null
null
null
null
knowledge_storm/collaborative_storm/modules/callback.py
null
null
null
null
null
null
Python
2026-05-04T02:25:17.090443
from typing import List from ...interface import Information class BaseCallbackHandler: """Base callback handler to manage callbacks from the Co-STORM pipeline.""" def on_turn_policy_planning_start(self, **kwargs): """Run when the turn policy planning begins, before deciding the direction or goal for...
stanford-oval/storm
https://github.com/stanford-oval/storm
null
null
null
null
28,156
null
null
mit
null
null
null
null
null
null
null
knowledge_storm/collaborative_storm/modules/expert_generation.py
null
null
null
null
null
null
Python
2026-05-04T02:25:17.092109
import dspy import re from typing import Union class GenerateExpertGeneral(dspy.Signature): """You need to select a group of diverse experts who will be suitable to be invited to a roundtable discussion on the given topic. Each expert should represent a different perspective, role, or affiliation relat...
stanford-oval/storm
https://github.com/stanford-oval/storm
null
null
null
null
28,156
null
null
mit
null
null
null
null
null
null
null
knowledge_storm/collaborative_storm/modules/grounded_question_answering.py
null
null
null
null
null
null
Python
2026-05-04T02:25:17.094129
import dspy from typing import Union, List from .callback import BaseCallbackHandler from .collaborative_storm_utils import ( trim_output_after_hint, format_search_results, extract_cited_storm_info, separate_citations, ) from ...logging_wrapper import LoggingWrapper from ...utils import ArticleTextProc...
stanford-oval/storm
https://github.com/stanford-oval/storm
null
null
null
null
28,156
null
null
mit
null
null
null
null
null
null
null
knowledge_storm/collaborative_storm/modules/grounded_question_generation.py
null
null
null
null
null
null
Python
2026-05-04T02:25:17.095801
""" This module handles question generation within the Co-STORM framework, specifically designed to support the Moderator role. The Moderator generates insightful, thought-provoking questions that introduce new directions into the conversation. By leveraging uncited or unused snippets of information retrieved dur...
stanford-oval/storm
https://github.com/stanford-oval/storm
null
null
null
null
28,156
null
null
mit
null
null
null
null
null
null
null
knowledge_storm/collaborative_storm/modules/collaborative_storm_utils.py
null
null
null
null
null
null
Python
2026-05-04T02:25:17.096872
import dspy import os import re import sys import toml from typing import List, Tuple, Dict, Optional, TYPE_CHECKING if TYPE_CHECKING: from ..engine import RunnerArgument from ...interface import Information, Retriever, LMConfigs from ...logging_wrapper import LoggingWrapper from ...rm import BingSearch...
stanford-oval/storm
https://github.com/stanford-oval/storm
null
null
null
null
28,156
null
null
mit
null
null
null
null
null
null
null
knowledge_storm/collaborative_storm/modules/costorm_expert_utterance_generator.py
null
null
null
null
null
null
Python
2026-05-04T02:25:17.097867
import dspy from typing import Union from .callback import BaseCallbackHandler from .collaborative_storm_utils import ( trim_output_after_hint, extract_and_remove_citations, keep_first_and_last_paragraph, ) from .grounded_question_answering import AnswerQuestionModule from .grounded_question_generation im...
stanford-oval/storm
https://github.com/stanford-oval/storm
null
null
null
null
28,156
null
null
mit
null
null
null
null
null
null
null
knowledge_storm/collaborative_storm/modules/co_storm_agents.py
null
null
null
null
null
null
Python
2026-05-04T02:25:17.117706
import dspy from itertools import zip_longest import numpy as np from sklearn.metrics.pairwise import cosine_similarity from typing import List, Optional, TYPE_CHECKING from .callback import BaseCallbackHandler from .collaborative_storm_utils import ( extract_storm_info_snippet, _get_answer_question_module_ins...
stanford-oval/storm
https://github.com/stanford-oval/storm
null
null
null
null
28,156
null
null
mit
null
null
null
null
null
null
null
knowledge_storm/collaborative_storm/modules/information_insertion_module.py
null
null
null
null
null
null
Python
2026-05-04T02:25:17.980413
import dspy import numpy as np import re import traceback from concurrent.futures import ThreadPoolExecutor, as_completed from sklearn.metrics.pairwise import cosine_similarity from typing import List, Union, Dict, Optional from .collaborative_storm_utils import trim_output_after_hint from ...dataclass impo...
stanford-oval/storm
https://github.com/stanford-oval/storm
null
null
null
null
28,156
null
null
mit
null
null
null
null
null
null
null
knowledge_storm/collaborative_storm/modules/knowledge_base_summary.py
null
null
null
null
null
null
Python
2026-05-04T02:25:19.231175
import dspy from typing import Union from ...dataclass import KnowledgeBase class KnowledgeBaseSummmary(dspy.Signature): """Your job is to give brief summary of what's been discussed in a roundtable conversation. Contents are themantically organized into hierarchical sections. You will be presented with these...
stanford-oval/storm
https://github.com/stanford-oval/storm
null
null
null
null
28,156
null
null
mit
null
null
null
null
null
null
null
knowledge_storm/collaborative_storm/modules/simulate_user.py
null
null
null
null
null
null
Python
2026-05-04T02:25:19.231764
import dspy from typing import List, Union from .collaborative_storm_utils import extract_and_remove_citations from ...dataclass import ConversationTurn from ...storm_wiki.modules.knowledge_curation import AskQuestionWithPersona class GenSimulatedUserUtterance(dspy.Module): def __init__(self, engine: Union[dspy....