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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
apurvsinghgautam/robin | https://github.com/apurvsinghgautam/robin | null | null | null | null | 4,940 | null | null | mit | null | null | null | null | null | null | null | llm_utils.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:24.847669 | import requests
from urllib.parse import urljoin
from langchain_openai import ChatOpenAI
from langchain_ollama import ChatOllama
from typing import Callable, Optional, List
from langchain_anthropic import ChatAnthropic
from langchain_google_genai import ChatGoogleGenerativeAI
from langchain_core.callbacks.base import B... |
apurvsinghgautam/robin | https://github.com/apurvsinghgautam/robin | null | null | null | null | 4,940 | null | null | mit | null | null | null | null | null | null | null | search.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:24.848320 | import requests
import random, re
import json
import os
from bs4 import BeautifulSoup
from concurrent.futures import ThreadPoolExecutor, as_completed
from requests.adapters import HTTPAdapter
from urllib3.util.retry import Retry
import warnings
warnings.filterwarnings("ignore")
USER_AGENTS = [
"Mozil... |
apurvsinghgautam/robin | https://github.com/apurvsinghgautam/robin | null | null | null | null | 4,940 | null | null | mit | null | null | null | null | null | null | null | ui.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:24.867382 |
import base64
import json
import streamlit as st
from datetime import datetime
from pathlib import Path
from scrape import scrape_multiple
from search import get_search_results
from llm_utils import BufferedStreamingHandler, get_model_choices
from llm import get_llm, refine_query, filter_results, generate_summary, PRE... |
apurvsinghgautam/robin | https://github.com/apurvsinghgautam/robin | null | null | null | null | 4,940 | null | null | mit | null | null | null | null | null | null | null | scrape.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:24.896869 | import random
import requests
import threading
import logging
from requests.adapters import HTTPAdapter
from urllib3.util.retry import Retry
from urllib.parse import urlparse
from bs4 import BeautifulSoup
from concurrent.futures import ThreadPoolExecutor, as_completed
import warnings
warnings.filterwarnings("ignore")
... |
gd3kr/BlenderGPT | https://github.com/gd3kr/BlenderGPT | null | null | null | null | 4,930 | null | null | mit | null | null | null | null | null | null | null | lib/aiohttp/client_exceptions.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:27.207006 | """HTTP related errors."""
import asyncio
import warnings
from typing import TYPE_CHECKING, Any, Optional, Tuple, Union
from .http_parser import RawResponseMessage
from .typedefs import LooseHeaders
try:
import ssl
SSLContext = ssl.SSLContext
except ImportError: # pragma: no cover
ssl = SSLContext = No... |
gd3kr/BlenderGPT | https://github.com/gd3kr/BlenderGPT | null | null | null | null | 4,930 | null | null | mit | null | null | null | null | null | null | null | lib/aiohttp/abc.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:27.250991 | import asyncio
import logging
from abc import ABC, abstractmethod
from collections.abc import Sized
from http.cookies import BaseCookie, Morsel
from typing import (
TYPE_CHECKING,
Any,
Awaitable,
Callable,
Dict,
Generator,
Iterable,
List,
Optional,
Tuple,
)
from multidict import... |
gd3kr/BlenderGPT | https://github.com/gd3kr/BlenderGPT | null | null | null | null | 4,930 | null | null | mit | null | null | null | null | null | null | null | lib/aiohttp/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:27.251491 | __version__ = "3.8.4"
from typing import Tuple
from . import hdrs as hdrs
from .client import (
BaseConnector as BaseConnector,
ClientConnectionError as ClientConnectionError,
ClientConnectorCertificateError as ClientConnectorCertificateError,
ClientConnectorError as ClientConnectorError,
ClientCo... |
gd3kr/BlenderGPT | https://github.com/gd3kr/BlenderGPT | null | null | null | null | 4,930 | null | null | mit | null | null | null | null | null | null | null | lib/aiohttp/client_reqrep.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:27.256534 | import asyncio
import codecs
import functools
import io
import re
import sys
import traceback
import warnings
from hashlib import md5, sha1, sha256
from http.cookies import CookieError, Morsel, SimpleCookie
from types import MappingProxyType, TracebackType
from typing import (
TYPE_CHECKING,
Any,
Dict,
... |
gd3kr/BlenderGPT | https://github.com/gd3kr/BlenderGPT | null | null | null | null | 4,930 | null | null | mit | null | null | null | null | null | null | null | lib/aiohttp/client_ws.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:27.260426 | """WebSocket client for asyncio."""
import asyncio
from typing import Any, Optional, cast
import async_timeout
from .client_exceptions import ClientError
from .client_reqrep import ClientResponse
from .helpers import call_later, set_result
from .http import (
WS_CLOSED_MESSAGE,
WS_CLOSING_MESSAGE,
WebSoc... |
gd3kr/BlenderGPT | https://github.com/gd3kr/BlenderGPT | null | null | null | null | 4,930 | null | null | mit | null | null | null | null | null | null | null | lib/aiohttp/base_protocol.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:27.265406 | import asyncio
from typing import Optional, cast
from .tcp_helpers import tcp_nodelay
class BaseProtocol(asyncio.Protocol):
__slots__ = (
"_loop",
"_paused",
"_drain_waiter",
"_connection_lost",
"_reading_paused",
"transport",
)
def __init__(self, loop: as... |
gd3kr/BlenderGPT | https://github.com/gd3kr/BlenderGPT | null | null | null | null | 4,930 | null | null | mit | null | null | null | null | null | null | null | lib/aiohttp/client_proto.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:27.266544 | import asyncio
from contextlib import suppress
from typing import Any, Optional, Tuple
from .base_protocol import BaseProtocol
from .client_exceptions import (
ClientOSError,
ClientPayloadError,
ServerDisconnectedError,
ServerTimeoutError,
)
from .helpers import BaseTimerContext
from .http import HttpR... |
gd3kr/BlenderGPT | https://github.com/gd3kr/BlenderGPT | null | null | null | null | 4,930 | null | null | mit | null | null | null | null | null | null | null | lib/aiohttp/client.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:27.292457 | """HTTP Client for asyncio."""
import asyncio
import base64
import hashlib
import json
import os
import sys
import traceback
import warnings
from contextlib import suppress
from types import SimpleNamespace, TracebackType
from typing import (
Any,
Awaitable,
Callable,
Coroutine,
FrozenSet,
Gene... |
gd3kr/BlenderGPT | https://github.com/gd3kr/BlenderGPT | null | null | null | null | 4,930 | null | null | mit | null | null | null | null | null | null | null | lib/aiohttp/connector.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:27.319642 | import asyncio
import functools
import random
import sys
import traceback
import warnings
from collections import defaultdict, deque
from contextlib import suppress
from http.cookies import SimpleCookie
from itertools import cycle, islice
from time import monotonic
from types import TracebackType
from typing import (
... |
gd3kr/BlenderGPT | https://github.com/gd3kr/BlenderGPT | null | null | null | null | 4,930 | null | null | mit | null | null | null | null | null | null | null | __init__.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:27.369466 | import sys
import os
import bpy
import bpy.props
import re
# Add the 'libs' folder to the Python path
libs_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), "lib")
if libs_path not in sys.path:
sys.path.append(libs_path)
import openai
from .utilities import *
bl_info = {
"name": "GPT-4 Blender... |
gd3kr/BlenderGPT | https://github.com/gd3kr/BlenderGPT | null | null | null | null | 4,930 | null | null | mit | null | null | null | null | null | null | null | lib/aiohttp/cookiejar.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:27.816942 | import asyncio
import contextlib
import datetime
import os # noqa
import pathlib
import pickle
import re
from collections import defaultdict
from http.cookies import BaseCookie, Morsel, SimpleCookie
from typing import ( # noqa
DefaultDict,
Dict,
Iterable,
Iterator,
List,
Mapping,
Optional,... |
gd3kr/BlenderGPT | https://github.com/gd3kr/BlenderGPT | null | null | null | null | 4,930 | null | null | mit | null | null | null | null | null | null | null | lib/aiohttp/http_exceptions.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:27.850320 | """Low-level http related exceptions."""
from typing import Optional, Union
from .typedefs import _CIMultiDict
__all__ = ("HttpProcessingError",)
class HttpProcessingError(Exception):
"""HTTP error.
Shortcut for raising HTTP errors with custom code, message and headers.
code: HTTP Error code.
me... |
gd3kr/BlenderGPT | https://github.com/gd3kr/BlenderGPT | null | null | null | null | 4,930 | null | null | mit | null | null | null | null | null | null | null | lib/aiohttp/helpers.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:27.854646 | """Various helper functions"""
import asyncio
import base64
import binascii
import datetime
import functools
import inspect
import netrc
import os
import platform
import re
import sys
import time
import warnings
import weakref
from collections import namedtuple
from contextlib import suppress
from email.parser import ... |
gd3kr/BlenderGPT | https://github.com/gd3kr/BlenderGPT | null | null | null | null | 4,930 | null | null | mit | null | null | null | null | null | null | null | lib/aiohttp/hdrs.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:27.880996 | """HTTP Headers constants."""
# After changing the file content call ./tools/gen.py
# to regenerate the headers parser
import sys
from typing import Set
from multidict import istr
if sys.version_info >= (3, 8):
from typing import Final
else:
from typing_extensions import Final
METH_ANY: Final[str] = "*"
MET... |
gd3kr/BlenderGPT | https://github.com/gd3kr/BlenderGPT | null | null | null | null | 4,930 | null | null | mit | null | null | null | null | null | null | null | lib/aiohttp/http_parser.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:27.882445 | import abc
import asyncio
import collections
import re
import string
import zlib
from contextlib import suppress
from enum import IntEnum
from typing import (
Any,
Generic,
List,
NamedTuple,
Optional,
Pattern,
Set,
Tuple,
Type,
TypeVar,
Union,
cast,
)
from multidict impo... |
gd3kr/BlenderGPT | https://github.com/gd3kr/BlenderGPT | null | null | null | null | 4,930 | null | null | mit | null | null | null | null | null | null | null | lib/aiohttp/http.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:27.908334 | import http.server
import sys
from typing import Mapping, Tuple
from . import __version__
from .http_exceptions import HttpProcessingError as HttpProcessingError
from .http_parser import (
HeadersParser as HeadersParser,
HttpParser as HttpParser,
HttpRequestParser as HttpRequestParser,
HttpResponsePars... |
gd3kr/BlenderGPT | https://github.com/gd3kr/BlenderGPT | null | null | null | null | 4,930 | null | null | mit | null | null | null | null | null | null | null | lib/aiohttp/http_writer.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:27.929871 | """Http related parsers and protocol."""
import asyncio
import zlib
from typing import Any, Awaitable, Callable, NamedTuple, Optional, Union # noqa
from multidict import CIMultiDict
from .abc import AbstractStreamWriter
from .base_protocol import BaseProtocol
from .helpers import NO_EXTENSIONS
__all__ = ("StreamWr... |
gd3kr/BlenderGPT | https://github.com/gd3kr/BlenderGPT | null | null | null | null | 4,930 | null | null | mit | null | null | null | null | null | null | null | lib/aiohttp/http_websocket.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:27.931015 | """WebSocket protocol versions 13 and 8."""
import asyncio
import collections
import json
import random
import re
import sys
import zlib
from enum import IntEnum
from struct import Struct
from typing import Any, Callable, List, Optional, Pattern, Set, Tuple, Union, cast
from .base_protocol import BaseProtocol
from .h... |
gd3kr/BlenderGPT | https://github.com/gd3kr/BlenderGPT | null | null | null | null | 4,930 | null | null | mit | null | null | null | null | null | null | null | lib/aiohttp/formdata.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:27.948450 | import io
from typing import Any, Iterable, List, Optional
from urllib.parse import urlencode
from multidict import MultiDict, MultiDictProxy
from . import hdrs, multipart, payload
from .helpers import guess_filename
from .payload import Payload
__all__ = ("FormData",)
class FormData:
"""Helper class for form ... |
gd3kr/BlenderGPT | https://github.com/gd3kr/BlenderGPT | null | null | null | null | 4,930 | null | null | mit | null | null | null | null | null | null | null | lib/aiohttp/locks.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:27.963866 | import asyncio
import collections
from typing import Any, Deque, Optional
class EventResultOrError:
"""Event asyncio lock helper class.
Wraps the Event asyncio lock allowing either to awake the
locked Tasks without any error or raising an exception.
thanks to @vorpalsmith for the simple design.
... |
gd3kr/BlenderGPT | https://github.com/gd3kr/BlenderGPT | null | null | null | null | 4,930 | null | null | mit | null | null | null | null | null | null | null | lib/aiohttp/log.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:28.375533 | import logging
access_logger = logging.getLogger("aiohttp.access")
client_logger = logging.getLogger("aiohttp.client")
internal_logger = logging.getLogger("aiohttp.internal")
server_logger = logging.getLogger("aiohttp.server")
web_logger = logging.getLogger("aiohttp.web")
ws_logger = logging.getLogger("aiohttp.websock... |
gd3kr/BlenderGPT | https://github.com/gd3kr/BlenderGPT | null | null | null | null | 4,930 | null | null | mit | null | null | null | null | null | null | null | lib/aiohttp/payload_streamer.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:28.467558 | """
Payload implemenation for coroutines as data provider.
As a simple case, you can upload data from file::
@aiohttp.streamer
async def file_sender(writer, file_name=None):
with open(file_name, 'rb') as f:
chunk = f.read(2**16)
while chunk:
await writer.write(chunk)
... |
gd3kr/BlenderGPT | https://github.com/gd3kr/BlenderGPT | null | null | null | null | 4,930 | null | null | mit | null | null | null | null | null | null | null | lib/aiohttp/multipart.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:28.468705 | import base64
import binascii
import json
import re
import uuid
import warnings
import zlib
from collections import deque
from types import TracebackType
from typing import (
TYPE_CHECKING,
Any,
AsyncIterator,
Deque,
Dict,
Iterator,
List,
Mapping,
Optional,
Sequence,
Tuple,
... |
gd3kr/BlenderGPT | https://github.com/gd3kr/BlenderGPT | null | null | null | null | 4,930 | null | null | mit | null | null | null | null | null | null | null | lib/aiohttp/payload.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:28.479009 | import asyncio
import enum
import io
import json
import mimetypes
import os
import warnings
from abc import ABC, abstractmethod
from itertools import chain
from typing import (
IO,
TYPE_CHECKING,
Any,
ByteString,
Dict,
Iterable,
Optional,
TextIO,
Tuple,
Type,
Union,
)
from m... |
gd3kr/BlenderGPT | https://github.com/gd3kr/BlenderGPT | null | null | null | null | 4,930 | null | null | mit | null | null | null | null | null | null | null | lib/aiohttp/pytest_plugin.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:28.488367 | import asyncio
import contextlib
import warnings
from collections.abc import Callable
from typing import Any, Awaitable, Callable, Dict, Generator, Optional, Union
import pytest
from aiohttp.helpers import PY_37, isasyncgenfunction
from aiohttp.web import Application
from .test_utils import (
BaseTestServer,
... |
gd3kr/BlenderGPT | https://github.com/gd3kr/BlenderGPT | null | null | null | null | 4,930 | null | null | mit | null | null | null | null | null | null | null | lib/aiohttp/streams.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:28.504753 | import asyncio
import collections
import warnings
from typing import Awaitable, Callable, Deque, Generic, List, Optional, Tuple, TypeVar
from .base_protocol import BaseProtocol
from .helpers import BaseTimerContext, set_exception, set_result
from .log import internal_logger
from .typedefs import Final
__all__ = (
... |
gd3kr/BlenderGPT | https://github.com/gd3kr/BlenderGPT | null | null | null | null | 4,930 | null | null | mit | null | null | null | null | null | null | null | lib/aiohttp/test_utils.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:28.509238 | """Utilities shared by tests."""
import asyncio
import contextlib
import gc
import inspect
import ipaddress
import os
import socket
import sys
import warnings
from abc import ABC, abstractmethod
from types import TracebackType
from typing import (
TYPE_CHECKING,
Any,
Callable,
Iterator,
List,
O... |
gd3kr/BlenderGPT | https://github.com/gd3kr/BlenderGPT | null | null | null | null | 4,930 | null | null | mit | null | null | null | null | null | null | null | lib/aiohttp/tracing.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:28.567866 | from types import SimpleNamespace
from typing import TYPE_CHECKING, Awaitable, Optional, Type, TypeVar
import attr
from aiosignal import Signal
from multidict import CIMultiDict
from yarl import URL
from .client_reqrep import ClientResponse
if TYPE_CHECKING: # pragma: no cover
from .client import ClientSession
... |
gd3kr/BlenderGPT | https://github.com/gd3kr/BlenderGPT | null | null | null | null | 4,930 | null | null | mit | null | null | null | null | null | null | null | lib/aiohttp/resolver.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:28.635629 | import asyncio
import socket
from typing import Any, Dict, List, Optional, Type, Union
from .abc import AbstractResolver
from .helpers import get_running_loop
__all__ = ("ThreadedResolver", "AsyncResolver", "DefaultResolver")
try:
import aiodns
# aiodns_default = hasattr(aiodns.DNSResolver, 'gethostbyname')... |
gd3kr/BlenderGPT | https://github.com/gd3kr/BlenderGPT | null | null | null | null | 4,930 | null | null | mit | null | null | null | null | null | null | null | lib/aiohttp/tcp_helpers.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:28.637767 | """Helper methods to tune a TCP connection"""
import asyncio
import socket
from contextlib import suppress
from typing import Optional # noqa
__all__ = ("tcp_keepalive", "tcp_nodelay")
if hasattr(socket, "SO_KEEPALIVE"):
def tcp_keepalive(transport: asyncio.Transport) -> None:
sock = transport.get_ext... |
gd3kr/BlenderGPT | https://github.com/gd3kr/BlenderGPT | null | null | null | null | 4,930 | null | null | mit | null | null | null | null | null | null | null | lib/aiohttp/typedefs.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:29.109586 | import json
import os
import sys
from typing import (
TYPE_CHECKING,
Any,
Awaitable,
Callable,
Iterable,
Mapping,
Tuple,
Union,
)
from multidict import CIMultiDict, CIMultiDictProxy, MultiDict, MultiDictProxy, istr
from yarl import URL
# These are for other modules to use (to avoid rep... |
gd3kr/BlenderGPT | https://github.com/gd3kr/BlenderGPT | null | null | null | null | 4,930 | null | null | mit | null | null | null | null | null | null | null | lib/aiohttp/web_exceptions.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:29.240073 | import warnings
from typing import Any, Dict, Iterable, List, Optional, Set # noqa
from yarl import URL
from .typedefs import LooseHeaders, StrOrURL
from .web_response import Response
__all__ = (
"HTTPException",
"HTTPError",
"HTTPRedirection",
"HTTPSuccessful",
"HTTPOk",
"HTTPCreated",
... |
gd3kr/BlenderGPT | https://github.com/gd3kr/BlenderGPT | null | null | null | null | 4,930 | null | null | mit | null | null | null | null | null | null | null | lib/aiohttp/web_app.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:29.245817 | import asyncio
import logging
import warnings
from functools import partial, update_wrapper
from typing import (
TYPE_CHECKING,
Any,
AsyncIterator,
Awaitable,
Callable,
Dict,
Iterable,
Iterator,
List,
Mapping,
MutableMapping,
Optional,
Sequence,
Tuple,
Type,
... |
gd3kr/BlenderGPT | https://github.com/gd3kr/BlenderGPT | null | null | null | null | 4,930 | null | null | mit | null | null | null | null | null | null | null | lib/aiohttp/web_log.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:29.252480 | import datetime
import functools
import logging
import os
import re
from collections import namedtuple
from typing import Any, Callable, Dict, Iterable, List, Tuple # noqa
from .abc import AbstractAccessLogger
from .web_request import BaseRequest
from .web_response import StreamResponse
KeyMethod = namedtuple("KeyMe... |
gd3kr/BlenderGPT | https://github.com/gd3kr/BlenderGPT | null | null | null | null | 4,930 | null | null | mit | null | null | null | null | null | null | null | lib/aiohttp/web.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:29.253480 | import asyncio
import logging
import socket
import sys
from argparse import ArgumentParser
from collections.abc import Iterable
from importlib import import_module
from typing import (
Any,
Awaitable,
Callable,
Iterable as TypingIterable,
List,
Optional,
Set,
Type,
Union,
cast,
)... |
gd3kr/BlenderGPT | https://github.com/gd3kr/BlenderGPT | null | null | null | null | 4,930 | null | null | mit | null | null | null | null | null | null | null | lib/aiohttp/web_fileresponse.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:29.266632 | import asyncio
import mimetypes
import os
import pathlib
import sys
from typing import ( # noqa
IO,
TYPE_CHECKING,
Any,
Awaitable,
Callable,
Iterator,
List,
Optional,
Tuple,
Union,
cast,
)
from . import hdrs
from .abc import AbstractStreamWriter
from .helpers import ETAG_AN... |
gd3kr/BlenderGPT | https://github.com/gd3kr/BlenderGPT | null | null | null | null | 4,930 | null | null | mit | null | null | null | null | null | null | null | lib/aiohttp/web_middlewares.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:29.316949 | import re
from typing import TYPE_CHECKING, Awaitable, Callable, Tuple, Type, TypeVar
from .typedefs import Handler
from .web_exceptions import HTTPPermanentRedirect, _HTTPMove
from .web_request import Request
from .web_response import StreamResponse
from .web_urldispatcher import SystemRoute
__all__ = (
"middlew... |
gd3kr/BlenderGPT | https://github.com/gd3kr/BlenderGPT | null | null | null | null | 4,930 | null | null | mit | null | null | null | null | null | null | null | lib/aiohttp/web_response.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:29.322157 | import asyncio
import collections.abc
import datetime
import enum
import json
import math
import time
import warnings
import zlib
from concurrent.futures import Executor
from http.cookies import Morsel, SimpleCookie
from typing import (
TYPE_CHECKING,
Any,
Dict,
Iterator,
Mapping,
MutableMapping... |
gd3kr/BlenderGPT | https://github.com/gd3kr/BlenderGPT | null | null | null | null | 4,930 | null | null | mit | null | null | null | null | null | null | null | lib/aiohttp/web_protocol.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:29.328405 | import asyncio
import asyncio.streams
import traceback
import warnings
from collections import deque
from contextlib import suppress
from html import escape as html_escape
from http import HTTPStatus
from logging import Logger
from typing import (
TYPE_CHECKING,
Any,
Awaitable,
Callable,
Deque,
... |
gd3kr/BlenderGPT | https://github.com/gd3kr/BlenderGPT | null | null | null | null | 4,930 | null | null | mit | null | null | null | null | null | null | null | lib/aiohttp/web_request.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:29.329910 | import asyncio
import datetime
import io
import re
import socket
import string
import tempfile
import types
import warnings
from http.cookies import SimpleCookie
from types import MappingProxyType
from typing import (
TYPE_CHECKING,
Any,
Dict,
Iterator,
Mapping,
MutableMapping,
Optional,
... |
gd3kr/BlenderGPT | https://github.com/gd3kr/BlenderGPT | null | null | null | null | 4,930 | null | null | mit | null | null | null | null | null | null | null | lib/aiohttp/web_routedef.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:29.666926 | import abc
import os # noqa
from typing import (
TYPE_CHECKING,
Any,
Callable,
Dict,
Iterator,
List,
Optional,
Sequence,
Type,
Union,
overload,
)
import attr
from . import hdrs
from .abc import AbstractView
from .typedefs import Handler, PathLike
if TYPE_CHECKING: # prag... |
gd3kr/BlenderGPT | https://github.com/gd3kr/BlenderGPT | null | null | null | null | 4,930 | null | null | mit | null | null | null | null | null | null | null | lib/aiohttp/web_server.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:29.807559 | """Low level HTTP server."""
import asyncio
from typing import Any, Awaitable, Callable, Dict, List, Optional # noqa
from .abc import AbstractStreamWriter
from .helpers import get_running_loop
from .http_parser import RawRequestMessage
from .streams import StreamReader
from .web_protocol import RequestHandler, _Reque... |
gd3kr/BlenderGPT | https://github.com/gd3kr/BlenderGPT | null | null | null | null | 4,930 | null | null | mit | null | null | null | null | null | null | null | lib/aiohttp/web_runner.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:29.812419 | import asyncio
import signal
import socket
from abc import ABC, abstractmethod
from typing import Any, List, Optional, Set
from yarl import URL
from .web_app import Application
from .web_server import Server
try:
from ssl import SSLContext
except ImportError:
SSLContext = object # type: ignore[misc,assignme... |
gd3kr/BlenderGPT | https://github.com/gd3kr/BlenderGPT | null | null | null | null | 4,930 | null | null | mit | null | null | null | null | null | null | null | lib/aiohttp/web_urldispatcher.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:29.872179 | import abc
import asyncio
import base64
import hashlib
import inspect
import keyword
import os
import re
import warnings
from contextlib import contextmanager
from functools import wraps
from pathlib import Path
from types import MappingProxyType
from typing import (
TYPE_CHECKING,
Any,
Awaitable,
Calla... |
gd3kr/BlenderGPT | https://github.com/gd3kr/BlenderGPT | null | null | null | null | 4,930 | null | null | mit | null | null | null | null | null | null | null | lib/async_timeout/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:29.917760 | import asyncio
import enum
import sys
import warnings
from types import TracebackType
from typing import Any, Optional, Type
if sys.version_info >= (3, 8):
from typing import final
else:
from typing_extensions import final
__version__ = "4.0.2"
__all__ = ("timeout", "timeout_at", "Timeout")
def timeout(... |
gd3kr/BlenderGPT | https://github.com/gd3kr/BlenderGPT | null | null | null | null | 4,930 | null | null | mit | null | null | null | null | null | null | null | lib/attr/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:29.918345 | # SPDX-License-Identifier: MIT
import sys
import warnings
from functools import partial
from . import converters, exceptions, filters, setters, validators
from ._cmp import cmp_using
from ._config import get_run_validators, set_run_validators
from ._funcs import asdict, assoc, astuple, evolve, has, resolve_types
fro... |
gd3kr/BlenderGPT | https://github.com/gd3kr/BlenderGPT | null | null | null | null | 4,930 | null | null | mit | null | null | null | null | null | null | null | lib/attr/_cmp.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:29.954984 | # SPDX-License-Identifier: MIT
import functools
import types
from ._make import _make_ne
_operation_names = {"eq": "==", "lt": "<", "le": "<=", "gt": ">", "ge": ">="}
def cmp_using(
eq=None,
lt=None,
le=None,
gt=None,
ge=None,
require_same_type=True,
class_name="Comparable",
):
""... |
gd3kr/BlenderGPT | https://github.com/gd3kr/BlenderGPT | null | null | null | null | 4,930 | null | null | mit | null | null | null | null | null | null | null | lib/aiohttp/web_ws.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:29.979361 | import asyncio
import base64
import binascii
import hashlib
import json
from typing import Any, Iterable, Optional, Tuple, cast
import async_timeout
import attr
from multidict import CIMultiDict
from . import hdrs
from .abc import AbstractStreamWriter
from .helpers import call_later, set_result
from .http import (
... |
gd3kr/BlenderGPT | https://github.com/gd3kr/BlenderGPT | null | null | null | null | 4,930 | null | null | mit | null | null | null | null | null | null | null | lib/aiohttp/worker.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:29.984430 | """Async gunicorn worker for aiohttp.web"""
import asyncio
import os
import re
import signal
import sys
from types import FrameType
from typing import Any, Awaitable, Callable, Optional, Union # noqa
from gunicorn.config import AccessLogFormat as GunicornAccessLogFormat
from gunicorn.workers import base
from aiohtt... |
gd3kr/BlenderGPT | https://github.com/gd3kr/BlenderGPT | null | null | null | null | 4,930 | null | null | mit | null | null | null | null | null | null | null | lib/aiosignal/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:30.019561 | from frozenlist import FrozenList
__version__ = "1.3.1"
__all__ = ("Signal",)
class Signal(FrozenList):
"""Coroutine-based signal implementation.
To connect a callback to a signal, use any list method.
Signals are fired using the send() coroutine, which takes named
arguments.
"""
__slots_... |
qubvel/segmentation_models | https://github.com/qubvel/segmentation_models | null | null | null | null | 4,925 | null | null | mit | null | null | null | null | null | null | null | segmentation_models/backbones/inception_v3.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:32.146081 | """Inception V3 model for Keras.
Note that the input image format for this model is different than for
the VGG16 and ResNet models (299x299 instead of 224x224),
and that the input preprocessing function is also different (same as Xception).
# Reference
- [Rethinking the Inception Architecture for Computer Vision](
... |
qubvel/segmentation_models | https://github.com/qubvel/segmentation_models | null | null | null | null | 4,925 | null | null | mit | null | null | null | null | null | null | null | docs/conf.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:32.148253 | # -*- coding: utf-8 -*-
#
# Configuration file for the Sphinx documentation builder.
#
# This file does only contain a selection of the most common options. For a
# full list see the documentation:
# http://www.sphinx-doc.org/en/master/config
# -- Path setup ------------------------------------------------------------... |
qubvel/segmentation_models | https://github.com/qubvel/segmentation_models | null | null | null | null | 4,925 | null | null | mit | null | null | null | null | null | null | null | segmentation_models/backbones/backbones_factory.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:32.148782 | import copy
import efficientnet.model as eff
from classification_models.models_factory import ModelsFactory
from . import inception_resnet_v2 as irv2
from . import inception_v3 as iv3
class BackbonesFactory(ModelsFactory):
_default_feature_layers = {
# List of layers to take features from backbone in th... |
qubvel/segmentation_models | https://github.com/qubvel/segmentation_models | null | null | null | null | 4,925 | null | null | mit | null | null | null | null | null | null | null | segmentation_models/base/functional.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:32.158078 | SMOOTH = 1e-5
# ----------------------------------------------------------------
# Helpers
# ----------------------------------------------------------------
def _gather_channels(x, indexes, **kwargs):
"""Slice tensor along channels axis by given indexes"""
backend = kwargs['backend']
if backend.image_... |
qubvel/segmentation_models | https://github.com/qubvel/segmentation_models | null | null | null | null | 4,925 | null | null | mit | null | null | null | null | null | null | null | segmentation_models/backbones/inception_resnet_v2.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:32.203104 | """Inception-ResNet V2 model for Keras.
Model naming and structure follows TF-slim implementation
(which has some additional layers and different number of
filters from the original arXiv paper):
https://github.com/tensorflow/models/blob/master/research/slim/nets/inception_resnet_v2.py
Pre-trained ImageNet weights are ... |
qubvel/segmentation_models | https://github.com/qubvel/segmentation_models | null | null | null | null | 4,925 | null | null | mit | null | null | null | null | null | null | null | segmentation_models/base/objects.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:32.795905 | class KerasObject:
_backend = None
_models = None
_layers = None
_utils = None
def __init__(self, name=None):
if (self.backend is None or
self.utils is None or
self.models is None or
self.layers is None):
raise RuntimeError('You ca... |
qubvel/segmentation_models | https://github.com/qubvel/segmentation_models | null | null | null | null | 4,925 | null | null | mit | null | null | null | null | null | null | null | segmentation_models/losses.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:32.796420 | from .base import Loss
from .base import functional as F
SMOOTH = 1e-5
class JaccardLoss(Loss):
r"""Creates a criterion to measure Jaccard loss:
.. math:: L(A, B) = 1 - \frac{A \cap B}{A \cup B}
Args:
class_weights: Array (``np.array``) of class weights (``len(weights) = num_classes``).
... |
qubvel/segmentation_models | https://github.com/qubvel/segmentation_models | null | null | null | null | 4,925 | null | null | mit | null | null | null | null | null | null | null | segmentation_models/metrics.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:32.813539 | from .base import Metric
from .base import functional as F
SMOOTH = 1e-5
class IOUScore(Metric):
r""" The `Jaccard index`_, also known as Intersection over Union and the Jaccard similarity coefficient
(originally coined coefficient de communauté by Paul Jaccard), is a statistic used for comparing the
sim... |
qubvel/segmentation_models | https://github.com/qubvel/segmentation_models | null | null | null | null | 4,925 | null | null | mit | null | null | null | null | null | null | null | segmentation_models/models/_utils.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:32.825051 | from keras_applications import get_submodules_from_kwargs
def freeze_model(model, **kwargs):
"""Set all layers non trainable, excluding BatchNormalization layers"""
_, layers, _, _ = get_submodules_from_kwargs(kwargs)
for layer in model.layers:
if not isinstance(layer, layers.BatchNormalization):
... |
qubvel/segmentation_models | https://github.com/qubvel/segmentation_models | null | null | null | null | 4,925 | null | null | mit | null | null | null | null | null | null | null | segmentation_models/models/fpn.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:32.833172 | from keras_applications import get_submodules_from_kwargs
from ._common_blocks import Conv2dBn
from ._utils import freeze_model, filter_keras_submodules
from ..backbones.backbones_factory import Backbones
backend = None
layers = None
models = None
keras_utils = None
# -----------------------------------------------... |
qubvel/segmentation_models | https://github.com/qubvel/segmentation_models | null | null | null | null | 4,925 | null | null | mit | null | null | null | null | null | null | null | segmentation_models/models/pspnet.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:32.837274 | from keras_applications import get_submodules_from_kwargs
from ._common_blocks import Conv2dBn
from ._utils import freeze_model, filter_keras_submodules
from ..backbones.backbones_factory import Backbones
backend = None
layers = None
models = None
keras_utils = None
# -----------------------------------------------... |
qubvel/segmentation_models | https://github.com/qubvel/segmentation_models | null | null | null | null | 4,925 | null | null | mit | null | null | null | null | null | null | null | segmentation_models/models/linknet.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:32.838427 | from keras_applications import get_submodules_from_kwargs
from ._common_blocks import Conv2dBn
from ._utils import freeze_model, filter_keras_submodules
from ..backbones.backbones_factory import Backbones
backend = None
layers = None
models = None
keras_utils = None
# -----------------------------------------------... |
qubvel/segmentation_models | https://github.com/qubvel/segmentation_models | null | null | null | null | 4,925 | null | null | mit | null | null | null | null | null | null | null | segmentation_models/models/_common_blocks.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:32.839027 | from keras_applications import get_submodules_from_kwargs
def Conv2dBn(
filters,
kernel_size,
strides=(1, 1),
padding='valid',
data_format=None,
dilation_rate=(1, 1),
activation=None,
kernel_initializer='glorot_uniform',
bias_initializer='zeros',... |
qubvel/segmentation_models | https://github.com/qubvel/segmentation_models | null | null | null | null | 4,925 | null | null | mit | null | null | null | null | null | null | null | segmentation_models/utils.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:33.393376 | """ Utility functions for segmentation models """
from keras_applications import get_submodules_from_kwargs
from . import inject_global_submodules
def set_trainable(model, recompile=True, **kwargs):
"""Set all layers of model trainable and recompile it
Note:
Model is recompiled using same optimizer,... |
qubvel/segmentation_models | https://github.com/qubvel/segmentation_models | null | null | null | null | 4,925 | null | null | mit | null | null | null | null | null | null | null | segmentation_models/models/unet.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:33.399154 | from keras_applications import get_submodules_from_kwargs
from ._common_blocks import Conv2dBn
from ._utils import freeze_model, filter_keras_submodules
from ..backbones.backbones_factory import Backbones
backend = None
layers = None
models = None
keras_utils = None
# -----------------------------------------------... |
qubvel/segmentation_models | https://github.com/qubvel/segmentation_models | null | null | null | null | 4,925 | null | null | mit | null | null | null | null | null | null | null | setup.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:33.415336 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Note: To use the 'upload' functionality of this file, you must:
# $ pip install twine
import io
import os
import sys
from shutil import rmtree
from setuptools import find_packages, setup, Command
# Package meta-data.
NAME = 'segmentation_models'
DESCRIPTION = 'Image... |
qubvel/segmentation_models | https://github.com/qubvel/segmentation_models | null | null | null | null | 4,925 | null | null | mit | null | null | null | null | null | null | null | tests/test_models.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:33.417675 | import os
import pytest
import random
import six
import numpy as np
import segmentation_models as sm
from segmentation_models import Unet
from segmentation_models import Linknet
from segmentation_models import PSPNet
from segmentation_models import FPN
from segmentation_models import get_available_backbone_names
if s... |
qubvel/segmentation_models | https://github.com/qubvel/segmentation_models | null | null | null | null | 4,925 | null | null | mit | null | null | null | null | null | null | null | tests/test_metrics.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:33.418314 | import pytest
import numpy as np
import segmentation_models as sm
from segmentation_models.metrics import IOUScore, FScore
from segmentation_models.losses import JaccardLoss, DiceLoss
if sm.framework() == sm._TF_KERAS_FRAMEWORK_NAME:
from tensorflow import keras
elif sm.framework() == sm._KERAS_FRAMEWORK_NAME:
... |
qubvel/segmentation_models | https://github.com/qubvel/segmentation_models | null | null | null | null | 4,925 | null | null | mit | null | null | null | null | null | null | null | tests/test_utils.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:33.448728 | import pytest
import numpy as np
import segmentation_models as sm
from segmentation_models.utils import set_regularization
from segmentation_models import Unet
if sm.framework() == sm._TF_KERAS_FRAMEWORK_NAME:
from tensorflow import keras
elif sm.framework() == sm._KERAS_FRAMEWORK_NAME:
import keras
else:
... |
Bitwise-01/Instagram- | https://github.com/Bitwise-01/Instagram- | null | null | null | null | 4,914 | null | null | mit | null | null | null | null | null | null | null | lib/proxy.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:43.722246 | # Date: 12/28/2018
# Author: Mohamed
# Description: Proxy
import time
import typing
class Proxy(object):
def __init__(self, ip: str, port: int, addr: typing.Dict) -> None:
self.__ip = ip
self.__port = port
self.__total_used = 0
self.__total_passed = 0
self.__last_used = No... |
Bitwise-01/Instagram- | https://github.com/Bitwise-01/Instagram- | null | null | null | null | 4,914 | null | null | mit | null | null | null | null | null | null | null | lib/bruter.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:43.728324 | # Date: 12/28/2018
# Author: Mohamed
# Description: Bruter
import queue
import time
import threading
import typing
from lib.browser import Browser
from lib.display import Display
from lib.proxy_manager import ProxyManager
from lib.password_manager import PasswordManager
from lib.const import max_time_to_wa... |
Bitwise-01/Instagram- | https://github.com/Bitwise-01/Instagram- | null | null | null | null | 4,914 | null | null | mit | null | null | null | null | null | null | null | lib/browser.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:43.730212 | # Date: 12/28/2018
# Author: Mohamed
# Description: Browser
import typing
from time import time
from random import choice
import requests
from datetime import datetime
from requests_html import HTMLSession
from .const import browser_data, response_codes, fetch_time, user_agents, debug
from lib import proxy
class ... |
Bitwise-01/Instagram- | https://github.com/Bitwise-01/Instagram- | null | null | null | null | 4,914 | null | null | mit | null | null | null | null | null | null | null | lib/display.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:43.731890 | # 12/29/2018
# Author: Mohamed
# Description: Display
from os import system
from time import sleep
from .const import debug
from colorama import Fore
from builtins import input
from platform import system as platform
class Display(object):
__is_color = None
total_lines = None
account_exists = None
... |
Bitwise-01/Instagram- | https://github.com/Bitwise-01/Instagram- | null | null | null | null | 4,914 | null | null | mit | null | null | null | null | null | null | null | lib/const.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:43.736938 | # Date: 12/28/2018
# Author: Mohamed
# Description: Constants
import os
# User agents
user_agents = [
"Googlebot/2.1 (+http://www.google.com/bot.html)",
"Mozilla/5.0 (compatible; bingbot/2.0; http://www.bing.com/bingbot.htm)",
"Mozilla/5.0 (compatible; adidxbot/2.0; http://www.bing.com/bingbot... |
Bitwise-01/Instagram- | https://github.com/Bitwise-01/Instagram- | null | null | null | null | 4,914 | null | null | mit | null | null | null | null | null | null | null | lib/proxy_manager.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:43.742319 | # Date: 12/28/2018
# Author: Mohamed
# Description: Proxy manager
import io
from time import sleep
from queue import Queue
from lib import database
from lib import proxy
import typing
import threading
import time
from requests_html import HTMLSession
class ProxyFinder:
"""Search online for publicly available ... |
Bitwise-01/Instagram- | https://github.com/Bitwise-01/Instagram- | null | null | null | null | 4,914 | null | null | mit | null | null | null | null | null | null | null | instagram.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:43.758928 | # Date: 12/29/2018
# Author: Mohamed
# Description: Instagram bruter
# from lib.proxy import Proxy
import os
import time
from sys import exit
from lib import database
from lib.proxy_manager import ProxyManager
# from os.path import exists
from lib.bruter import Bruter
from lib.display import Display
fro... |
Bitwise-01/Instagram- | https://github.com/Bitwise-01/Instagram- | null | null | null | null | 4,914 | null | null | mit | null | null | null | null | null | null | null | lib/database.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:43.782414 | # Date: 05/05/2018
# Author: Mohamed
# Description: Session Handler
import json
import sqlite3
# from os import remove
# from sys import version_info
from lib.const import db_path
from os.path import exists as path
# from csv import DictWriter, DictReader
import hashlib
import time
import typing
class DatabaseWrap... |
Bitwise-01/Instagram- | https://github.com/Bitwise-01/Instagram- | null | null | null | null | 4,914 | null | null | mit | null | null | null | null | null | null | null | lib/password_manager.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:43.784961 | # Date: 12/28/2018
# Author: Mohamed
# Description: Password manager
from time import sleep
from hashlib import sha256
from sys import version_info
from lib.display import Display
from lib.database import Session
import io
class PasswordManager(object):
def __init__(self, username, passlist_path, max_passwords, ... |
microsoft/muzic | https://github.com/microsoft/muzic | null | null | null | null | 4,910 | null | null | mit | null | null | null | null | null | null | null | deeprapper/tokenizations/bpe_tokenizer.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:46.489501 | """
from https://github.com/openai/gpt-2/, changed for chinese
"""
import json
import os
import sentencepiece as spm
"""
SentencePiece is an unsupervised text tokenizer and detokenizer mainly for Neural Network-based text generation
systems where the vocabulary size is predetermined prior to the neural model training... |
microsoft/muzic | https://github.com/microsoft/muzic | null | null | null | null | 4,910 | null | null | mit | null | null | null | null | null | null | null | deeprapper/generate.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:46.490972 | # Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
#
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import argparse
import os
import math
from datetime import datetime
from utils import get_sentence_pinyin_finals, special_tokens
from beam_search import sample_sequence, beam... |
microsoft/muzic | https://github.com/microsoft/muzic | null | null | null | null | 4,910 | null | null | mit | null | null | null | null | null | null | null | clamp/clamp.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:46.494989 | import argparse
import subprocess
from utils import *
from transformers import AutoTokenizer
if torch.cuda.is_available():
device = torch.device("cuda")
print('There are %d GPU(s) available.' % torch.cuda.device_count())
print('We will use the GPU:', torch.cuda.get_device_name(0))
else:
... |
microsoft/muzic | https://github.com/microsoft/muzic | null | null | null | null | 4,910 | null | null | mit | null | null | null | null | null | null | null | deeprapper/beam_search.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:46.496174 | # Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
#
# !/usr/bin/env python
# -*- coding: utf-8 -*-
import math
from tqdm import trange
import torch
import torch.nn.functional as F
from utils import get_sentence_pinyin_finals, top_k_top_p_filtering, special_tokens, temperatu... |
microsoft/muzic | https://github.com/microsoft/muzic | null | null | null | null | 4,910 | null | null | mit | null | null | null | null | null | null | null | deeprapper/tokenizations/tokenization_bert.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:46.587880 | # coding=utf-8
# Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team.
#
# 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/LICEN... |
microsoft/muzic | https://github.com/microsoft/muzic | null | null | null | null | 4,910 | null | null | mit | null | null | null | null | null | null | null | deeprapper/tokenizations/tokenization_bert_word_level.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:46.590774 | # coding=utf-8
# Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team.
#
# 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/LICEN... |
microsoft/muzic | https://github.com/microsoft/muzic | null | null | null | null | 4,910 | null | null | mit | null | null | null | null | null | null | null | deeprapper/module.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:46.598259 | # Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
#
# !/usr/bin/env python
# -*- coding: utf-8 -*-
import torch
import torch.nn as nn
from torch.nn import CrossEntropyLoss
import warnings
from transformers.modeling_gpt2 import GPT2PreTrainedModel, Block
from transformers.co... |
microsoft/muzic | https://github.com/microsoft/muzic | null | null | null | null | 4,910 | null | null | mit | null | null | null | null | null | null | null | clamp/inference/xml2abc.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:46.629987 | #!/usr/bin/env python
# coding=latin-1
'''
Copyright (C) 2012-2018: W.G. Vree
Contributions: M. Tarenskeen, N. Liberg, Paul Villiger, Janus Meuris, Larry Myerscough,
Dick Jackson, Jan Wybren de Jong, Mark Zealey.
This program is free software; you can redistribute it and/or modify it under the terms of the
Lesser GNU... |
microsoft/muzic | https://github.com/microsoft/muzic | null | null | null | null | 4,910 | null | null | mit | null | null | null | null | null | null | null | clamp/utils.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:46.719614 | import re
import os
import torch
import requests
from tqdm import tqdm
from unidecode import unidecode
from transformers import AutoModel, AutoConfig, BertModel, PreTrainedModel
# Constants for patch length and number of features in a patch
PATCH_LENGTH = 64
PATCH_FEATURES = 98
class MusicPatchilizer:
... |
microsoft/muzic | https://github.com/microsoft/muzic | null | null | null | null | 4,910 | null | null | mit | null | null | null | null | null | null | null | deeprapper/prepare_train_data.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:46.721147 | # Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
#
# !/usr/bin/env python
# -*- coding: utf-8 -*-
import jieba
import json
import numpy as np
import os
import re
import random
import pypinyin
import shutil
from pypinyin import lazy_pinyin, Style
from tqdm.auto import tqdm
... |
microsoft/muzic | https://github.com/microsoft/muzic | null | null | null | null | 4,910 | null | null | mit | null | null | null | null | null | null | null | deeprapper/train.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:47.224645 | # Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
#
# !/usr/bin/env python
# -*- coding: utf-8 -*-
import argparse
import os
import random
import sys
from datetime import datetime
import numpy as np
from tqdm import tqdm
from utils import swap_value
def main():
parser... |
microsoft/muzic | https://github.com/microsoft/muzic | null | null | null | null | 4,910 | null | null | mit | null | null | null | null | null | null | null | emogen/jSymbolic_lib/jSymbolic_feature.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:47.255538 | import shutil
import pandas as pd
import json
import os
import subprocess
from tqdm import tqdm
import time
import xmltodict
import random
import numpy as np
from multiprocessing import Process, Pool
import json
from jSymbolic_util import read_pitch_feature, read_all_feature
import xmltodict
import subprocess
from fun... |
microsoft/muzic | https://github.com/microsoft/muzic | null | null | null | null | 4,910 | null | null | mit | null | null | null | null | null | null | null | deeprapper/utils.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:47.256095 | # Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
#
# !/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from pypinyin import lazy_pinyin, Style
import torch
import torch.nn.functional as F
import math
valid_finals = ['a', 'o', 'e', 'i', 'u', 'v',
'ai',... |
microsoft/muzic | https://github.com/microsoft/muzic | null | null | null | null | 4,910 | null | null | mit | null | null | null | null | null | null | null | emogen/data_process/gen_data.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:47.257873 | import json
import multiprocessing
import random
import sys
sys.path.append("..")
import miditoolkit
import numpy.random
import pandas as pd
import os, collections, pickle, shutil
import numpy as np
from MidiProcessor.midiprocessor import MidiEncoder, midi_utils, MidiDecoder
from tqdm import tqdm
import gc
from multipr... |
microsoft/muzic | https://github.com/microsoft/muzic | null | null | null | null | 4,910 | null | null | mit | null | null | null | null | null | null | null | emogen/data_process/util.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:47.265882 | import json
import multiprocessing
import random
import sys
sys.path.append("..")
import miditoolkit
import numpy.random
import pandas as pd
import os, collections, pickle, shutil
import numpy as np
from reference.MidiProcessor.midiprocessor import MidiEncoder, midi_utils
from tqdm import tqdm
import gc
from multiproce... |
microsoft/muzic | https://github.com/microsoft/muzic | null | null | null | null | 4,910 | null | null | mit | null | null | null | null | null | null | null | emogen/interactive.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:47.291135 | #!/usr/bin/env python3 -u
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
"""
Translate raw text with a trained model. Batches data on-the-fly.
"""
import fileinput
import logging
import mat... |
microsoft/muzic | https://github.com/microsoft/muzic | null | null | null | null | 4,910 | null | null | mit | null | null | null | null | null | null | null | emogen/jSymbolic_lib/jSymbolic_util.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:47.355857 | import os
import xmltodict
import numpy as np
from tqdm import tqdm
nan_feature_list = {}
split_name = ["Melodic Interval Histogram", "Vertical Interval Histogram"]
end_at = "Initial Time Signature"
# split_pos = [['Melodic Interval Histogram', 190], ['Vertical Interval Histogram', 342]]
feature_name = []
histogram_fe... |
microsoft/muzic | https://github.com/microsoft/muzic | null | null | null | null | 4,910 | null | null | mit | null | null | null | null | null | null | null | emogen/data_process/midi_encoding.py | null | null | null | null | null | null | Python | 2026-05-04T01:51:47.367845 | import os
import random
import shutil
import json
from multiprocessing import Process, Pool
from functools import partial
from typing import List
import numpy as np
import pandas as pd
from tqdm import tqdm
import sys
sys.path.append("..")
from MidiProcessor.midiprocessor import MidiEncoder, MidiDecoder, enc_remigen_ut... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.