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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Anjok07/ultimatevocalremovergui | https://github.com/Anjok07/ultimatevocalremovergui | null | null | null | null | 24,506 | null | null | mit | null | null | null | null | null | null | null | demucs/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:53.700732 | # Copyright (c) Facebook, Inc. and its affiliates.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
|
Anjok07/ultimatevocalremovergui | https://github.com/Anjok07/ultimatevocalremovergui | null | null | null | null | 24,506 | null | null | mit | null | null | null | null | null | null | null | demucs/apply.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:53.701825 | # Copyright (c) Facebook, Inc. and its affiliates.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
"""
Code to apply a model to a mix. It will handle chunking with overlaps and
inteprolation between chunks, as well as the "... |
Anjok07/ultimatevocalremovergui | https://github.com/Anjok07/ultimatevocalremovergui | null | null | null | null | 24,506 | null | null | mit | null | null | null | null | null | null | null | demucs/model_v2.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:53.703748 | # Copyright (c) Facebook, Inc. and its affiliates.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
import math
import julius
from torch import nn
from .tasnet_v2 import ConvTasNet
from .utils import capture_init, center_... |
Anjok07/ultimatevocalremovergui | https://github.com/Anjok07/ultimatevocalremovergui | null | null | null | null | 24,506 | null | null | mit | null | null | null | null | null | null | null | demucs/model.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:53.707774 | # Copyright (c) Facebook, Inc. and its affiliates.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
import math
import torch as th
from torch import nn
from .utils import capture_init, center_trim
class BLSTM(nn.Module)... |
Anjok07/ultimatevocalremovergui | https://github.com/Anjok07/ultimatevocalremovergui | null | null | null | null | 24,506 | null | null | mit | null | null | null | null | null | null | null | demucs/demucs.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:53.709475 | # Copyright (c) Facebook, Inc. and its affiliates.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
import math
import typing as tp
import julius
import torch
from torch import nn
from torch.nn import functional as F
from... |
Anjok07/ultimatevocalremovergui | https://github.com/Anjok07/ultimatevocalremovergui | null | null | null | null | 24,506 | null | null | mit | null | null | null | null | null | null | null | demucs/hdemucs.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:53.710322 | # Copyright (c) Facebook, Inc. and its affiliates.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
"""
This code contains the spectrogram and Hybrid version of Demucs.
"""
from copy import deepcopy
import math
import typing... |
Anjok07/ultimatevocalremovergui | https://github.com/Anjok07/ultimatevocalremovergui | null | null | null | null | 24,506 | null | null | mit | null | null | null | null | null | null | null | demucs/htdemucs.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:53.713376 | # Copyright (c) Meta, Inc. and its affiliates.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
# First author is Simon Rouard.
"""
This code contains the spectrogram and Hybrid version of Demucs.
"""
import math
from .filt... |
Anjok07/ultimatevocalremovergui | https://github.com/Anjok07/ultimatevocalremovergui | null | null | null | null | 24,506 | null | null | mit | null | null | null | null | null | null | null | demucs/__main__.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:53.742320 | # Copyright (c) Facebook, Inc. and its affiliates.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
import json
import os
import sys
import time
from dataclasses import dataclass, field
from fractions import Fraction
impor... |
Anjok07/ultimatevocalremovergui | https://github.com/Anjok07/ultimatevocalremovergui | null | null | null | null | 24,506 | null | null | mit | null | null | null | null | null | null | null | gui_data/app_size_values.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:55.040177 | import os
import platform
from screeninfo import get_monitors
from PIL import Image
from PIL import ImageTk
OPERATING_SYSTEM = platform.system()
def get_screen_height():
monitors = get_monitors()
if len(monitors) == 0:
raise Exception("Failed to get screen height")
return monitors[0].h... |
Anjok07/ultimatevocalremovergui | https://github.com/Anjok07/ultimatevocalremovergui | null | null | null | null | 24,506 | null | null | mit | null | null | null | null | null | null | null | demucs/spec.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:55.153800 | # Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
"""Conveniance wrapper to perform STFT and iSTFT"""
import torch as th
def spectro(x, n_fft=512, hop_length=None, pad=0... |
Anjok07/ultimatevocalremovergui | https://github.com/Anjok07/ultimatevocalremovergui | null | null | null | null | 24,506 | null | null | mit | null | null | null | null | null | null | null | demucs/utils.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:55.155537 | # Copyright (c) Facebook, Inc. and its affiliates.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
from collections import defaultdict
from contextlib import contextmanager
import math
import os
import tempfile
import typi... |
Anjok07/ultimatevocalremovergui | https://github.com/Anjok07/ultimatevocalremovergui | null | null | null | null | 24,506 | null | null | mit | null | null | null | null | null | null | null | demucs/repo.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:55.156733 | # Copyright (c) Facebook, Inc. and its affiliates.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
"""Represents a model repository, including pre-trained models and bags of models.
A repo can either be the main remote repo... |
Anjok07/ultimatevocalremovergui | https://github.com/Anjok07/ultimatevocalremovergui | null | null | null | null | 24,506 | null | null | mit | null | null | null | null | null | null | null | demucs/states.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:55.284859 | # Copyright (c) Facebook, Inc. and its affiliates.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
"""
Utilities to save and load models.
"""
from contextlib import contextmanager
import functools
import hashlib
import ins... |
Anjok07/ultimatevocalremovergui | https://github.com/Anjok07/ultimatevocalremovergui | null | null | null | null | 24,506 | null | null | mit | null | null | null | null | null | null | null | demucs/pretrained.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:55.286116 | # Copyright (c) Facebook, Inc. and its affiliates.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
"""Loading pretrained models.
"""
import logging
from pathlib import Path
import typing as tp
#from dora.log import fatal
... |
Anjok07/ultimatevocalremovergui | https://github.com/Anjok07/ultimatevocalremovergui | null | null | null | null | 24,506 | null | null | mit | null | null | null | null | null | null | null | demucs/tasnet.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:55.393977 | # Copyright (c) Facebook, Inc. and its affiliates.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
#
# Created on 2018/12
# Author: Kaituo XU
# Modified on 2019/11 by Alexandre Defossez, added support for multiple output ch... |
Anjok07/ultimatevocalremovergui | https://github.com/Anjok07/ultimatevocalremovergui | null | null | null | null | 24,506 | null | null | mit | null | null | null | null | null | null | null | demucs/tasnet_v2.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:55.394924 | # Copyright (c) Facebook, Inc. and its affiliates.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
#
# Created on 2018/12
# Author: Kaituo XU
# Modified on 2019/11 by Alexandre Defossez, added support for multiple output ch... |
Anjok07/ultimatevocalremovergui | https://github.com/Anjok07/ultimatevocalremovergui | null | null | null | null | 24,506 | null | null | mit | null | null | null | null | null | null | null | demucs/transformer.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:55.397124 | # Copyright (c) 2019-present, Meta, Inc.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
# First author is Simon Rouard.
import random
import typing as tp
import torch
import torch.nn as nn
import torch.nn.functional as F... |
Anjok07/ultimatevocalremovergui | https://github.com/Anjok07/ultimatevocalremovergui | null | null | null | null | 24,506 | null | null | mit | null | null | null | null | null | null | null | gui_data/constants.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:55.398369 | import platform
#Platform Details
OPERATING_SYSTEM = platform.system()
SYSTEM_ARCH = platform.platform()
SYSTEM_PROC = platform.processor()
ARM = 'arm'
is_macos = False
CPU = 'cpu'
CUDA_DEVICE = 'cuda'
DIRECTML_DEVICE = "privateuseone"
#MAIN_FONT_NAME = "Century Gothic"
OPT_SEPARATOR_SAVE = '─'*25
B... |
Anjok07/ultimatevocalremovergui | https://github.com/Anjok07/ultimatevocalremovergui | null | null | null | null | 24,506 | null | null | mit | null | null | null | null | null | null | null | gui_data/error_handling.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:55.980651 | from datetime import datetime
import traceback
CUDA_MEMORY_ERROR = "CUDA out of memory"
CUDA_RUNTIME_ERROR = "CUDNN error executing cudnnSetTensorNdDescriptor"
DEMUCS_MODEL_MISSING_ERROR = "is neither a single pre-trained model or a bag of models."
ENSEMBLE_MISSING_MODEL_ERROR = "local variable \'enseExport\' re... |
Anjok07/ultimatevocalremovergui | https://github.com/Anjok07/ultimatevocalremovergui | null | null | null | null | 24,506 | null | null | mit | null | null | null | null | null | null | null | lib_v5/tfc_tdf_v3.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:56.651797 | import torch
import torch.nn as nn
from functools import partial
class STFT:
def __init__(self, n_fft, hop_length, dim_f, device):
self.n_fft = n_fft
self.hop_length = hop_length
self.window = torch.hann_window(window_length=self.n_fft, periodic=True)
self.dim_f = dim_f
self... |
Anjok07/ultimatevocalremovergui | https://github.com/Anjok07/ultimatevocalremovergui | null | null | null | null | 24,506 | null | null | mit | null | null | null | null | null | null | null | gui_data/tkinterdnd2/TkinterDnD.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:56.863509 | '''Python wrapper for the tkdnd tk extension.
The tkdnd extension provides an interface to native, platform specific
drag and drop mechanisms. Under Unix the drag & drop protocol in use is
the XDND protocol version 5 (also used by the Qt toolkit, and the KDE and
GNOME desktops). Under Windows, the OLE2 drag & drop int... |
Anjok07/ultimatevocalremovergui | https://github.com/Anjok07/ultimatevocalremovergui | null | null | null | null | 24,506 | null | null | mit | null | null | null | null | null | null | null | gui_data/sv_ttk/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:56.943317 | from pathlib import Path
import platform
if platform.system() == "Darwin":
sun_valley_tcl = "sun-valley_darwin.tcl"
else:
sun_valley_tcl = "sun-valley.tcl"
inited = False
root = None
def init(func):
def wrapper(*args, **kwargs):
global inited
global root
if not inited:
... |
Anjok07/ultimatevocalremovergui | https://github.com/Anjok07/ultimatevocalremovergui | null | null | null | null | 24,506 | null | null | mit | null | null | null | null | null | null | null | gui_data/old_data_check.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:56.994074 | import os
import shutil
def file_check(original_dir, new_dir):
if os.path.isdir(original_dir):
for file in os.listdir(original_dir):
shutil.move(os.path.join(original_dir, file), os.path.join(new_dir, file))
if len(os.listdir(original_dir)) == 0:
sh... |
Anjok07/ultimatevocalremovergui | https://github.com/Anjok07/ultimatevocalremovergui | null | null | null | null | 24,506 | null | null | mit | null | null | null | null | null | null | null | lib_v5/vr_network/layers.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:57.463934 | import torch
from torch import nn
import torch.nn.functional as F
from lib_v5 import spec_utils
class Conv2DBNActiv(nn.Module):
def __init__(self, nin, nout, ksize=3, stride=1, pad=1, dilation=1, activ=nn.ReLU):
super(Conv2DBNActiv, self).__init__()
self.conv = nn.Sequential(
... |
Anjok07/ultimatevocalremovergui | https://github.com/Anjok07/ultimatevocalremovergui | null | null | null | null | 24,506 | null | null | mit | null | null | null | null | null | null | null | lib_v5/vr_network/model_param_init.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:57.576788 | import json
default_param = {}
default_param['bins'] = -1
default_param['unstable_bins'] = -1 # training only
default_param['stable_bins'] = -1 # training only
default_param['sr'] = 44100
default_param['pre_filter_start'] = -1
default_param['pre_filter_stop'] = -1
default_param['band'] = {}
N_BINS = 'n_bin... |
Anjok07/ultimatevocalremovergui | https://github.com/Anjok07/ultimatevocalremovergui | null | null | null | null | 24,506 | null | null | mit | null | null | null | null | null | null | null | lib_v5/vr_network/layers_new.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:57.578261 | import torch
from torch import nn
import torch.nn.functional as F
from lib_v5 import spec_utils
class Conv2DBNActiv(nn.Module):
def __init__(self, nin, nout, ksize=3, stride=1, pad=1, dilation=1, activ=nn.ReLU):
super(Conv2DBNActiv, self).__init__()
self.conv = nn.Sequential(
nn.Conv2... |
Anjok07/ultimatevocalremovergui | https://github.com/Anjok07/ultimatevocalremovergui | null | null | null | null | 24,506 | null | null | mit | null | null | null | null | null | null | null | lib_v5/vr_network/nets.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:57.954231 | import torch
from torch import nn
import torch.nn.functional as F
from . import layers
class BaseASPPNet(nn.Module):
def __init__(self, nn_architecture, nin, ch, dilations=(4, 8, 16)):
super(BaseASPPNet, self).__init__()
self.nn_architecture = nn_architecture
self.enc1 = layers... |
Anjok07/ultimatevocalremovergui | https://github.com/Anjok07/ultimatevocalremovergui | null | null | null | null | 24,506 | null | null | mit | null | null | null | null | null | null | null | lib_v5/vr_network/nets_new.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:58.054697 | import torch
from torch import nn
import torch.nn.functional as F
from . import layers_new as layers
class BaseNet(nn.Module):
def __init__(self, nin, nout, nin_lstm, nout_lstm, dilations=((4, 2), (8, 4), (12, 6))):
super(BaseNet, self).__init__()
self.enc1 = layers.Conv2DBNActiv(nin, nout, 3, 1, ... |
Anjok07/ultimatevocalremovergui | https://github.com/Anjok07/ultimatevocalremovergui | null | null | null | null | 24,506 | null | null | mit | null | null | null | null | null | null | null | separate.py | null | null | null | null | null | null | Python | 2026-05-04T02:27:58.214880 | from __future__ import annotations
from typing import TYPE_CHECKING
from demucs.apply import apply_model, demucs_segments
from demucs.hdemucs import HDemucs
from demucs.model_v2 import auto_load_demucs_model_v2
from demucs.pretrained import get_model as _gm
from demucs.utils import apply_model_v1
from demucs.uti... |
Anjok07/ultimatevocalremovergui | https://github.com/Anjok07/ultimatevocalremovergui | null | null | null | null | 24,506 | null | null | mit | null | null | null | null | null | null | null | lib_v5/mdxnet.py | null | null | null | null | null | null | Python | 2026-05-04T02:28:00.961813 | import torch
import torch.nn as nn
from .modules import TFC_TDF
from pytorch_lightning import LightningModule
dim_s = 4
class AbstractMDXNet(LightningModule):
def __init__(self, target_name, lr, optimizer, dim_c, dim_f, dim_t, n_fft, hop_length, overlap):
super().__init__()
self.target_name = targ... |
Anjok07/ultimatevocalremovergui | https://github.com/Anjok07/ultimatevocalremovergui | null | null | null | null | 24,506 | null | null | mit | null | null | null | null | null | null | null | gui_data/tkinterdnd2/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:28:00.987060 | # dnd actions
PRIVATE = 'private'
NONE = 'none'
ASK = 'ask'
COPY = 'copy'
MOVE = 'move'
LINK = 'link'
REFUSE_DROP = 'refuse_drop'
# dnd types
DND_TEXT = 'DND_Text'
DND_FILES = 'DND_Files'
DND_ALL = '*'
CF_UNICODETEXT = 'CF_UNICODETEXT'
CF_TEXT = 'CF_TEXT'
CF_HDROP = 'CF_HDROP'
FileGroupDescriptor = 'FileGroupDescript... |
Anjok07/ultimatevocalremovergui | https://github.com/Anjok07/ultimatevocalremovergui | null | null | null | null | 24,506 | null | null | mit | null | null | null | null | null | null | null | lib_v5/pyrb.py | null | null | null | null | null | null | Python | 2026-05-04T02:28:01.042534 | import os
import subprocess
import tempfile
import six
import numpy as np
import soundfile as sf
import sys
if getattr(sys, 'frozen', False):
BASE_PATH_RUB = sys._MEIPASS
else:
BASE_PATH_RUB = os.path.dirname(os.path.abspath(__file__))
__all__ = ['time_stretch', 'pitch_shift']
__RUBBERBAND_UTIL = os.path.joi... |
Anjok07/ultimatevocalremovergui | https://github.com/Anjok07/ultimatevocalremovergui | null | null | null | null | 24,506 | null | null | mit | null | null | null | null | null | null | null | lib_v5/modules.py | null | null | null | null | null | null | Python | 2026-05-04T02:28:01.043261 | import torch
import torch.nn as nn
class TFC(nn.Module):
def __init__(self, c, l, k, norm):
super(TFC, self).__init__()
self.H = nn.ModuleList()
for i in range(l):
self.H.append(
nn.Sequential(
nn.Conv2d(in_channels=c, out_channels=c, kernel... |
Anjok07/ultimatevocalremovergui | https://github.com/Anjok07/ultimatevocalremovergui | null | null | null | null | 24,506 | null | null | mit | null | null | null | null | null | null | null | lib_v5/results.py | null | null | null | null | null | null | Python | 2026-05-04T02:28:01.061540 | # -*- coding: utf-8 -*-
"""
Matchering - Audio Matching and Mastering Python Library
Copyright (C) 2016-2022 Sergree
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, ... |
Anjok07/ultimatevocalremovergui | https://github.com/Anjok07/ultimatevocalremovergui | null | null | null | null | 24,506 | null | null | mit | null | null | null | null | null | null | null | lib_v5/spec_utils.py | null | null | null | null | null | null | Python | 2026-05-04T02:28:01.062156 | import audioread
import librosa
import numpy as np
import soundfile as sf
import math
import platform
import traceback
from . import pyrb
from scipy.signal import correlate, hilbert
import io
OPERATING_SYSTEM = platform.system()
SYSTEM_ARCH = platform.platform()
SYSTEM_PROC = platform.processor()
ARM = '... |
karpathy/minGPT | https://github.com/karpathy/minGPT | null | null | null | null | 24,284 | null | null | mit | null | null | null | null | null | null | null | setup.py | null | null | null | null | null | null | Python | 2026-05-04T02:28:03.841096 | from setuptools import setup
setup(name='minGPT',
version='0.0.1',
author='Andrej Karpathy',
packages=['mingpt'],
description='A PyTorch re-implementation of GPT',
license='MIT',
install_requires=[
'torch',
],
)
|
karpathy/minGPT | https://github.com/karpathy/minGPT | null | null | null | null | 24,284 | null | null | mit | null | null | null | null | null | null | null | mingpt/utils.py | null | null | null | null | null | null | Python | 2026-05-04T02:28:03.841550 |
import os
import sys
import json
import random
from ast import literal_eval
import numpy as np
import torch
# -----------------------------------------------------------------------------
def set_seed(seed):
random.seed(seed)
np.random.seed(seed)
torch.manual_seed(seed)
torch.cuda.manual_seed_all(se... |
karpathy/minGPT | https://github.com/karpathy/minGPT | null | null | null | null | 24,284 | null | null | mit | null | null | null | null | null | null | null | projects/chargpt/chargpt.py | null | null | null | null | null | null | Python | 2026-05-04T02:28:03.842540 | """
Trains a character-level language model.
"""
import os
import sys
import torch
from torch.utils.data import Dataset
from torch.utils.data.dataloader import DataLoader
from mingpt.model import GPT
from mingpt.trainer import Trainer
from mingpt.utils import set_seed, setup_logging, CfgNode as CN
# ---------------... |
karpathy/minGPT | https://github.com/karpathy/minGPT | null | null | null | null | 24,284 | null | null | mit | null | null | null | null | null | null | null | mingpt/model.py | null | null | null | null | null | null | Python | 2026-05-04T02:28:04.274374 | """
Full definition of a GPT Language Model, all of it in this single file.
References:
1) the official GPT-2 TensorFlow implementation released by OpenAI:
https://github.com/openai/gpt-2/blob/master/src/model.py
2) huggingface/transformers PyTorch implementation:
https://github.com/huggingface/transformers/blob/main/... |
karpathy/minGPT | https://github.com/karpathy/minGPT | null | null | null | null | 24,284 | null | null | mit | null | null | null | null | null | null | null | mingpt/trainer.py | null | null | null | null | null | null | Python | 2026-05-04T02:28:04.478426 | """
Simple training loop; Boilerplate that could apply to any arbitrary neural network,
so nothing in this file really has anything to do with GPT specifically.
"""
import time
from collections import defaultdict
import torch
from torch.utils.data.dataloader import DataLoader
from mingpt.utils import CfgNode as CN
c... |
karpathy/minGPT | https://github.com/karpathy/minGPT | null | null | null | null | 24,284 | null | null | mit | null | null | null | null | null | null | null | projects/adder/adder.py | null | null | null | null | null | null | Python | 2026-05-04T02:28:04.479138 | """
Trains a GPT to add n-digit numbers.
"""
import os
import sys
import json
import torch
from torch.utils.data import Dataset
from torch.utils.data.dataloader import DataLoader
from mingpt.model import GPT
from mingpt.trainer import Trainer
from mingpt.utils import set_seed, setup_logging, CfgNode as CN
# -------... |
karpathy/minGPT | https://github.com/karpathy/minGPT | null | null | null | null | 24,284 | null | null | mit | null | null | null | null | null | null | null | tests/test_huggingface_import.py | null | null | null | null | null | null | Python | 2026-05-04T02:28:04.717861 | """
Ensure that we can load huggingface/transformer GPTs into minGPT
"""
import unittest
import torch
from transformers import GPT2Tokenizer, GPT2LMHeadModel
from mingpt.model import GPT
from mingpt.bpe import BPETokenizer
# -----------------------------------------------------------------------------
class TestHuggi... |
karpathy/minGPT | https://github.com/karpathy/minGPT | null | null | null | null | 24,284 | null | null | mit | null | null | null | null | null | null | null | mingpt/bpe.py | null | null | null | null | null | null | Python | 2026-05-04T02:28:05.604045 | """
bpe is short for Byte Pair Encoder. It translates arbitrary utf-8 strings into
sequences of integers, where each integer represents small chunks of commonly
occuring characters. This implementation is based on openai's gpt2 encoder.py:
https://github.com/openai/gpt-2/blob/master/src/encoder.py
but was mildly modifi... |
plotly/dash | https://github.com/plotly/dash | null | null | null | null | 24,171 | null | null | mit | null | null | null | null | null | null | null | @plotly/dash-test-components/setup.py | null | null | null | null | null | null | Python | 2026-05-04T02:28:08.793960 | from setuptools import setup
import json
with open('package.json') as f:
package = json.load(f)
package_name = str(package["name"].replace(" ", "_").replace("-", "_"))
setup(
name=package_name,
version=package["version"],
author=package['author'],
author_email='chris@plotly.com',
packages=[pa... |
plotly/dash | https://github.com/plotly/dash | null | null | null | null | 24,171 | null | null | mit | null | null | null | null | null | null | null | @plotly/dash-generator-test-component-typescript/setup.py | null | null | null | null | null | null | Python | 2026-05-04T02:28:08.794476 | from setuptools import setup
import json
with open('package.json') as f:
package = json.load(f)
package_name = str(package["name"].replace(" ", "_").replace("-", "_"))
setup(
name=package_name,
version=package["version"],
author=package['author'],
author_email='chris@plotly.com',
packages=[pa... |
plotly/dash | https://github.com/plotly/dash | null | null | null | null | 24,171 | null | null | mit | null | null | null | null | null | null | null | @plotly/dash-test-components/base/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:28:08.796441 | import json
import os as _os
_basepath = _os.path.dirname(__file__)
_filepath = _os.path.abspath(_os.path.join(_basepath, 'package.json'))
with open(_filepath) as f:
package = json.load(f)
package_name = package['name'].replace(' ', '_').replace('-', '_')
__version__ = package['version']
from ._imports_ import *... |
plotly/dash | https://github.com/plotly/dash | null | null | null | null | 24,171 | null | null | mit | null | null | null | null | null | null | null | @plotly/dash-generator-test-component-nested/setup.py | null | null | null | null | null | null | Python | 2026-05-04T02:28:08.993383 | from setuptools import setup
import json
with open('package.json') as f:
package = json.load(f)
package_name = str(package["name"].replace(" ", "_").replace("-", "_"))
setup(
name=package_name,
version=package["version"],
author=package['author'],
author_email='chris@plotly.com',
packages=[pa... |
plotly/dash | https://github.com/plotly/dash | null | null | null | null | 24,171 | null | null | mit | null | null | null | null | null | null | null | @plotly/dash-generator-test-component-nested/base/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:28:09.070761 | import json
import os as _os
_basepath = _os.path.dirname(__file__)
_filepath = _os.path.abspath(_os.path.join(_basepath, 'package.json'))
with open(_filepath) as f:
package = json.load(f)
package_name = package['name'].replace(' ', '_').replace('-', '_')
__version__ = package['version']
from ._imports_ import *... |
plotly/dash | https://github.com/plotly/dash | null | null | null | null | 24,171 | null | null | mit | null | null | null | null | null | null | null | @plotly/dash-generator-test-component-typescript/base/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:28:09.184258 | import json
import os as _os
_basepath = _os.path.dirname(__file__)
_filepath = _os.path.abspath(_os.path.join(_basepath, 'package.json'))
with open(_filepath) as f:
package = json.load(f)
package_name = package['name'].replace(' ', '_').replace('-', '_')
__version__ = package['version']
from ._imports_ import *... |
plotly/dash | https://github.com/plotly/dash | null | null | null | null | 24,171 | null | null | mit | null | null | null | null | null | null | null | @plotly/dash-generator-test-component-standard/base/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:28:09.232044 | import json
import os as _os
_basepath = _os.path.dirname(__file__)
_filepath = _os.path.abspath(_os.path.join(_basepath, 'package.json'))
with open(_filepath) as f:
package = json.load(f)
package_name = package['name'].replace(' ', '_').replace('-', '_')
__version__ = package['version']
from ._imports_ import *... |
plotly/dash | https://github.com/plotly/dash | null | null | null | null | 24,171 | null | null | mit | null | null | null | null | null | null | null | @plotly/dash-generator-test-component-standard/setup.py | null | null | null | null | null | null | Python | 2026-05-04T02:28:09.233137 | from setuptools import setup
import json
with open('package.json') as f:
package = json.load(f)
package_name = str(package["name"].replace(" ", "_").replace("-", "_"))
setup(
name=package_name,
version=package["version"],
author=package['author'],
author_email='chris@plotly.com',
packages=[pa... |
plotly/dash | https://github.com/plotly/dash | null | null | null | null | 24,171 | null | null | mit | null | null | null | null | null | null | null | components/dash-core-components/dash_prop_typing.py | null | null | null | null | null | null | Python | 2026-05-04T02:28:09.774317 | # This file is automatically loaded on build time to generate types.
def generate_plotly_figure(*_):
return "typing.Union[Figure, dict]"
def generate_datetime_prop(array=False):
def generator(*_):
datetime_type = "typing.Union[str, datetime.datetime]"
if array:
datetime_type = f"... |
plotly/dash | https://github.com/plotly/dash | null | null | null | null | 24,171 | null | null | mit | null | null | null | null | null | null | null | components/dash-core-components/dash_core_components_base/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:28:09.775711 | import json
import os as _os
import sys as _sys
import dash as _dash
from ._imports_ import * # noqa: F401, F403, E402
from ._imports_ import __all__ as _components
from .express import ( # noqa: F401, E402
send_bytes,
send_data_frame,
send_file,
send_string,
)
__all__ = _components + [ # type: ig... |
plotly/dash | https://github.com/plotly/dash | null | null | null | null | 24,171 | null | null | mit | null | null | null | null | null | null | null | components/dash-core-components/dash_core_components_base/express.py | null | null | null | null | null | null | Python | 2026-05-04T02:28:10.115134 | import io
import ntpath
import base64
# region Utils for Download component
def send_file(path, filename=None, type=None):
"""
Convert a file into the format expected by the Download component.
:param path: path to the file to be sent
:param filename: name of the file, if not provided the original fi... |
plotly/dash | https://github.com/plotly/dash | null | null | null | null | 24,171 | null | null | mit | null | null | null | null | null | null | null | components/dash-core-components/tests/dash_core_components_page.py | null | null | null | null | null | null | Python | 2026-05-04T02:28:10.118033 | import logging
import time
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.action_chains import ActionChains
logger = logging.getLogger(__name__)
class DashCoreComponent... |
plotly/dash | https://github.com/plotly/dash | null | null | null | null | 24,171 | null | null | mit | null | null | null | null | null | null | null | components/dash-core-components/tests/conftest.py | null | null | null | null | null | null | Python | 2026-05-04T02:28:10.119219 | import pytest
from dash_core_components_page import DashCoreComponentsMixin
from dash.testing.browser import Browser
class DashCoreComponentsComposite(Browser, DashCoreComponentsMixin):
def __init__(self, server, **kwargs):
super(DashCoreComponentsComposite, self).__init__(**kwargs)
self.server = ... |
plotly/dash | https://github.com/plotly/dash | null | null | null | null | 24,171 | null | null | mit | null | null | null | null | null | null | null | components/dash-core-components/tests/integration/button/test_button.py | null | null | null | null | null | null | Python | 2026-05-04T02:28:10.315873 | from dash import Dash, Input, Output, dcc, html
from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.common.keys import Keys
def test_btev001_clicks_and_blur(dash_dcc):
"""Test that n_clicks, n_clicks_timestamp, n_blur, and n_blur_timestamp work correctly"""
app = Dash(__na... |
plotly/dash | https://github.com/plotly/dash | null | null | null | null | 24,171 | null | null | mit | null | null | null | null | null | null | null | components/dash-core-components/tests/integration/calendar/locales/test_date_picker_locales.py | null | null | null | null | null | null | Python | 2026-05-04T02:28:10.345351 | from datetime import datetime
from dash import Dash, html, dcc, Input, Output
from selenium.webdriver.common.keys import Keys
def test_dtps030_french_localization_via_cdn(dash_dcc):
"""Test that French locale from CDN is applied to date picker."""
app = Dash(
__name__,
)
app.layout = html.Di... |
plotly/dash | https://github.com/plotly/dash | null | null | null | null | 24,171 | null | null | mit | null | null | null | null | null | null | null | components/dash-core-components/setup.py | null | null | null | null | null | null | Python | 2026-05-04T02:28:10.346517 | from setuptools import setup
import json
with open("package.json") as f:
package = json.load(f)
package_name = str(package["name"].replace(" ", "_").replace("-", "_"))
setup(
name="dash_core_components",
version=package["version"],
author=package["author"],
author_email="chris@plotly.com",
pa... |
plotly/dash | https://github.com/plotly/dash | null | null | null | null | 24,171 | null | null | mit | null | null | null | null | null | null | null | components/dash-core-components/tests/integration/calendar/test_calendar_props.py | null | null | null | null | null | null | Python | 2026-05-04T02:28:10.929710 | import itertools
import pytest
from time import sleep
from dash import Dash, Input, Output, html, dcc
import dash.testing.wait as wait
@pytest.mark.DCC594
def test_cdpr001_date_clearable_true_works(dash_dcc):
app = Dash(__name__)
app.layout = html.Div(
[
dcc.DatePickerRange(id="dpr", clea... |
plotly/dash | https://github.com/plotly/dash | null | null | null | null | 24,171 | null | null | mit | null | null | null | null | null | null | null | components/dash-core-components/tests/integration/calendar/test_date_picker_persistence.py | null | null | null | null | null | null | Python | 2026-05-04T02:28:10.931237 | from datetime import datetime
from dash import Dash, Input, Output, html, dcc
def test_rdpr001_persisted_dps(dash_dcc):
app = Dash(__name__, suppress_callback_exceptions=True)
app.layout = html.Div(
[
html.Button("fire callback", id="btn", n_clicks=1),
html.Div(children=[html.... |
plotly/dash | https://github.com/plotly/dash | null | null | null | null | 24,171 | null | null | mit | null | null | null | null | null | null | null | components/dash-core-components/tests/integration/download/test_download_dataframe.py | null | null | null | null | null | null | Python | 2026-05-04T02:28:11.600906 | import os
from dash import Dash, Input, Output, dcc, html
import pytest
import pandas as pd
import numpy as np
from dash.testing.wait import until
@pytest.mark.parametrize(
"fmt", ("csv", "json", "html", "feather", "parquet", "stata", "pickle")
)
def test_dldf001_download_dataframe(fmt, dash_dcc):
df = pd.D... |
plotly/dash | https://github.com/plotly/dash | null | null | null | null | 24,171 | null | null | mit | null | null | null | null | null | null | null | components/dash-core-components/tests/integration/download/test_download.py | null | null | null | null | null | null | Python | 2026-05-04T02:28:11.602031 | import os
from dash import Dash, Input, Output, dcc, html
from dash.testing.wait import until
def test_dltx001_download_text(dash_dcc):
text = "Hello, world!"
filename = "hello.txt"
# Create app.
app = Dash(__name__, prevent_initial_callbacks=True)
app.layout = html.Div([html.Button("Click", id="... |
plotly/dash | https://github.com/plotly/dash | null | null | null | null | 24,171 | null | null | mit | null | null | null | null | null | null | null | components/dash-core-components/tests/integration/calendar/test_date_picker_single.py | null | null | null | null | null | null | Python | 2026-05-04T02:28:11.848678 | from datetime import datetime, timedelta
import pandas as pd
import time
import pytest
from selenium.webdriver.common.keys import Keys
from selenium.common.exceptions import ElementClickInterceptedException
from dash import Dash, Input, Output, html, dcc, no_update
@pytest.mark.DCC652
def test_dtps001_simple_click(... |
plotly/dash | https://github.com/plotly/dash | null | null | null | null | 24,171 | null | null | mit | null | null | null | null | null | null | null | components/dash-core-components/tests/integration/calendar/test_multi_month_selection.py | null | null | null | null | null | null | Python | 2026-05-04T02:28:11.858865 | from datetime import datetime
from selenium.webdriver.common.action_chains import ActionChains
from dash import Dash, Input, Output, html, dcc
def test_dtps_multi_month_click_second_month(dash_dcc):
"""Test clicking a date in the second month with number_of_months_shown=2"""
app = Dash(__name__)
app.layo... |
plotly/dash | https://github.com/plotly/dash | null | null | null | null | 24,171 | null | null | mit | null | null | null | null | null | null | null | components/dash-core-components/tests/integration/calendar/test_date_picker_range.py | null | null | null | null | null | null | Python | 2026-05-04T02:28:11.930902 | from datetime import datetime
import time
from dash import Dash, Input, Output, html, dcc
from selenium.common.exceptions import (
ElementClickInterceptedException,
TimeoutException,
)
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
def test_dtpr001_initial_month_p... |
plotly/dash | https://github.com/plotly/dash | null | null | null | null | 24,171 | null | null | mit | null | null | null | null | null | null | null | components/dash-core-components/tests/integration/download/test_download_file.py | null | null | null | null | null | null | Python | 2026-05-04T02:28:12.209244 | import os
from dash import Dash, Input, Output, dcc, html
from dash.testing.wait import until
def test_dlfi001_download_file(dash_dcc):
filename = "chuck.jpg"
asset_folder = os.path.join(os.path.dirname(__file__), "download-assets")
# Create app.
app = Dash(__name__, prevent_initial_callbacks=True)
... |
plotly/dash | https://github.com/plotly/dash | null | null | null | null | 24,171 | null | null | mit | null | null | null | null | null | null | null | components/dash-core-components/tests/integration/dropdown/test_a11y.py | null | null | null | null | null | null | Python | 2026-05-04T02:28:12.226565 | import pytest
from dash import Dash, Input, Output
from dash.dcc import Dropdown
from dash.html import Div, Label, P, Span
from selenium.common.exceptions import TimeoutException
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.action_chains import ActionChains
from time import sleep
def... |
plotly/dash | https://github.com/plotly/dash | null | null | null | null | 24,171 | null | null | mit | null | null | null | null | null | null | null | components/dash-core-components/tests/integration/dropdown/test_clearable_false.py | null | null | null | null | null | null | Python | 2026-05-04T02:28:12.428426 | import pytest
from dash import Dash, Input, Output, dcc, html
from selenium.common.exceptions import TimeoutException
from selenium.webdriver.support.ui import WebDriverWait
def test_ddcf001_clearable_false_single(dash_duo):
app = Dash(__name__)
app.layout = html.Div(
[
dcc.Dropdown(
... |
plotly/dash | https://github.com/plotly/dash | null | null | null | null | 24,171 | null | null | mit | null | null | null | null | null | null | null | components/dash-core-components/tests/integration/dropdown/test_dropdown_debounce.py | null | null | null | null | null | null | Python | 2026-05-04T02:28:12.513668 | from dash import Dash, Input, Output, dcc, html
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.action_chains import ActionChains
import time
def test_ddde001_dropdown_debounce(dash_duo):
app = Dash(__name__)
app.layout = html.Div(
[
dcc.Dropdown(
... |
plotly/dash | https://github.com/plotly/dash | null | null | null | null | 24,171 | null | null | mit | null | null | null | null | null | null | null | components/dash-core-components/tests/integration/dropdown/test_dropdown_radioitems_checklist_shorthands.py | null | null | null | null | null | null | Python | 2026-05-04T02:28:12.554994 | from dash import Dash, dcc, html
def test_ddsh001_test_dropdown_radioitems_checklist_shorthands(dash_dcc):
app = Dash(__name__)
TEST_OPTIONS_N_VALUES = [
[["a", "b", "c"]],
[["a", "b", "c"], "b"],
[["a", 3, "c"]],
[["a", 3, "c"], 3],
[["a", True, "c"]],
[["a", ... |
plotly/dash | https://github.com/plotly/dash | null | null | null | null | 24,171 | null | null | mit | null | null | null | null | null | null | null | components/dash-core-components/tests/integration/dropdown/test_dynamic_options.py | null | null | null | null | null | null | Python | 2026-05-04T02:28:12.809836 | import time
from selenium.webdriver.common.keys import Keys
from dash import Dash, Input, Output, dcc, html
from dash.exceptions import PreventUpdate
def test_dddo001_dynamic_options(dash_dcc):
dropdown_options = [
{"label": "New York City", "value": "NYC"},
{"label": "Montreal", "value": "MTL"}... |
plotly/dash | https://github.com/plotly/dash | null | null | null | null | 24,171 | null | null | mit | null | null | null | null | null | null | null | components/dash-core-components/tests/integration/dropdown/test_dropdown_search_order.py | null | null | null | null | null | null | Python | 2026-05-04T02:28:12.863647 | from dash import Dash, html, dcc, Input, Output
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.action_chains import ActionChains
from time import sleep
def test_ddso001_search_preserves_custom_order(dash_duo):
app = Dash(__name__)
app.layout = html.Div(
[
d... |
plotly/dash | https://github.com/plotly/dash | null | null | null | null | 24,171 | null | null | mit | null | null | null | null | null | null | null | components/dash-core-components/tests/integration/dropdown/test_localization.py | null | null | null | null | null | null | Python | 2026-05-04T02:28:13.105996 | from time import sleep
from dash import Dash
from dash.dcc import Dropdown
from dash.html import Div
def test_ddlo001_translations(dash_duo):
app = Dash(__name__)
app.layout = Div(
[
Dropdown(
id="dropdown",
options=[1, 2, 3],
multi=True,
... |
plotly/dash | https://github.com/plotly/dash | null | null | null | null | 24,171 | null | null | mit | null | null | null | null | null | null | null | components/dash-core-components/tests/integration/dropdown/test_search_value.py | null | null | null | null | null | null | Python | 2026-05-04T02:28:13.159635 | from time import sleep
from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.common.keys import Keys
from dash import Dash, Input, Output, dcc, html
def test_ddsv001_search_value(dash_duo):
app = Dash(__name__)
app.layout = html.Div(
[dcc.Dropdown(id="dropdown", se... |
plotly/dash | https://github.com/plotly/dash | null | null | null | null | 24,171 | null | null | mit | null | null | null | null | null | null | null | components/dash-core-components/tests/integration/dropdown/test_remove_option.py | null | null | null | null | null | null | Python | 2026-05-04T02:28:13.188677 | import json
import pytest
from dash import Dash, html, dcc, Output, Input, State, Patch
from dash.exceptions import PreventUpdate
from selenium.webdriver.common.keys import Keys
sample_dropdown_options = [
{"label": "New York City", "value": "NYC"},
{"label": "Montreal", "value": "MTL"},
{"label": "San Fr... |
plotly/dash | https://github.com/plotly/dash | null | null | null | null | 24,171 | null | null | mit | null | null | null | null | null | null | null | components/dash-core-components/tests/integration/dropdown/test_styles.py | null | null | null | null | null | null | Python | 2026-05-04T02:28:13.397918 | from dash import Dash
from dash.dcc import Dropdown
from dash.html import Div
from dash.dash_table import DataTable
from flaky import flaky
from selenium.webdriver.common.action_chains import ActionChains
@flaky(max_runs=3)
def test_ddst001_cursor_should_be_pointer(dash_duo):
app = Dash(__name__)
app.layout =... |
plotly/dash | https://github.com/plotly/dash | null | null | null | null | 24,171 | null | null | mit | null | null | null | null | null | null | null | components/dash-core-components/tests/integration/dropdown/test_visibility.py | null | null | null | null | null | null | Python | 2026-05-04T02:28:13.489366 | from dash import Dash
from dash.dcc import Dropdown
from dash.html import Div
from dash.dash_table import DataTable
import pytest
@pytest.mark.DCC788
def test_ddvi001_fixed_table(dash_duo):
app = Dash(__name__)
app.layout = Div(
[
Dropdown(
id="dropdown",
o... |
plotly/dash | https://github.com/plotly/dash | null | null | null | null | 24,171 | null | null | mit | null | null | null | null | null | null | null | components/dash-core-components/tests/integration/geolocation/test_geolocation.py | null | null | null | null | null | null | Python | 2026-05-04T02:28:13.739657 | import time
import os
import pytest
from dash import Dash, dcc, html, Input, Output
@pytest.mark.skipif(
os.getenv("CIRCLECI") is not None, reason="geolocation is disabled on CI"
)
def test_geol001_position(dash_dcc):
dash_dcc.driver.execute_cdp_cmd(
"Emulation.setGeolocationOverride",
{"latit... |
plotly/dash | https://github.com/plotly/dash | null | null | null | null | 24,171 | null | null | mit | null | null | null | null | null | null | null | components/dash-core-components/tests/integration/graph/test_graph_purge.py | null | null | null | null | null | null | Python | 2026-05-04T02:28:13.790229 | import pytest
import time
from selenium.webdriver.common.keys import Keys
from dash import Dash, Input, Output, dcc, html
@pytest.mark.parametrize("is_eager", [True, False])
def test_grgp001_clean_purge(dash_dcc, is_eager):
app = Dash(__name__, eager_loading=is_eager)
app.layout = html.Div(
[html.B... |
plotly/dash | https://github.com/plotly/dash | null | null | null | null | 24,171 | null | null | mit | null | null | null | null | null | null | null | components/dash-core-components/tests/integration/graph/test_graph_basics.py | null | null | null | null | null | null | Python | 2026-05-04T02:28:13.791483 | import json
import pytest
import pandas as pd
from multiprocessing import Value, Lock
import numpy as np
from time import sleep
import plotly.express as px
import plotly.graph_objects as go
from dash import Dash, Input, Output, dcc, html
import dash.testing.wait as wait
@pytest.mark.parametrize("is_eager", [True, Fa... |
plotly/dash | https://github.com/plotly/dash | null | null | null | null | 24,171 | null | null | mit | null | null | null | null | null | null | null | components/dash-core-components/tests/integration/graph/test_graph_responsive.py | null | null | null | null | null | null | Python | 2026-05-04T02:28:14.013872 | import numpy as np
import plotly.graph_objects as go
import pytest
import flaky
from dash import Dash, Input, Output, State, dcc, html
from dash.exceptions import PreventUpdate
from dash.testing import wait
@pytest.mark.parametrize(
"is_responsive,responsive,autosize,height,width",
[
# is_responsive... |
plotly/dash | https://github.com/plotly/dash | null | null | null | null | 24,171 | null | null | mit | null | null | null | null | null | null | null | components/dash-core-components/tests/integration/graph/test_graph_varia.py | null | null | null | null | null | null | Python | 2026-05-04T02:28:14.078809 | # -*- coding: utf-8 -*-
import pytest
import time
import json
from selenium.webdriver import ActionChains
from dash import Dash, Input, Output, State, dcc, html
from dash.exceptions import PreventUpdate
from dash.testing.wait import until
from selenium.webdriver.common.by import By
from selenium.webdriver.support.u... |
plotly/dash | https://github.com/plotly/dash | null | null | null | null | 24,171 | null | null | mit | null | null | null | null | null | null | null | components/dash-core-components/tests/integration/input/conftest.py | null | null | null | null | null | null | Python | 2026-05-04T02:28:14.372911 | import pytest
from dash import Dash, Input, Output, dcc, html
@pytest.fixture(scope="module")
def ninput_app():
app = Dash(__name__)
app.layout = html.Div(
[
dcc.Input(
id="input_false",
type="number",
debounce=False,
placehol... |
plotly/dash | https://github.com/plotly/dash | null | null | null | null | 24,171 | null | null | mit | null | null | null | null | null | null | null | components/dash-core-components/tests/integration/input/test_a11y_input.py | null | null | null | null | null | null | Python | 2026-05-04T02:28:14.404661 | import pytest
from dash import Dash
from dash.dcc import Input
from dash.html import Div, Label, P
input_types = [
"text",
"number",
]
@pytest.mark.parametrize("input_type", input_types)
def test_a11y001_label_focuses_input(dash_duo, input_type):
app = Dash(__name__)
app.layout = Label(
[
... |
plotly/dash | https://github.com/plotly/dash | null | null | null | null | 24,171 | null | null | mit | null | null | null | null | null | null | null | components/dash-core-components/tests/integration/input/test_debounce.py | null | null | null | null | null | null | Python | 2026-05-04T02:28:14.436907 | from selenium.common.exceptions import TimeoutException
from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver.common.by import By
import pytest
def test_debounce_text_by_time(dash_dcc, debounce_text_app):
dash_dcc.start_server(debounce_text_app)
# expect that a long debounce does ... |
plotly/dash | https://github.com/plotly/dash | null | null | null | null | 24,171 | null | null | mit | null | null | null | null | null | null | null | components/dash-core-components/tests/integration/clipboard/test_clipboard.py | null | null | null | null | null | null | Python | 2026-05-04T02:28:16.051416 | from dash import Dash, html, dcc, callback, Output, Input, State
import dash.testing.wait as wait
import time
from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.common.keys import Keys
def test_clp001_clipboard_text(dash_dcc_headed):
copy_text = "Hello, Dash!"
app = Da... |
plotly/dash | https://github.com/plotly/dash | null | null | null | null | 24,171 | null | null | mit | null | null | null | null | null | null | null | components/dash-core-components/tests/integration/confirmdialog/test_confirm.py | null | null | null | null | null | null | Python | 2026-05-04T02:28:16.056683 | from multiprocessing import Value
from dash.testing import wait
from dash import Dash, Input, Output, State, dcc, html, callback_context
import pytest
import time
@pytest.mark.parametrize(
"confirms", [[False, False], [False, True], [True, False], [True, True]]
)
@pytest.mark.parametrize("confirm_callback", [Tru... |
plotly/dash | https://github.com/plotly/dash | null | null | null | null | 24,171 | null | null | mit | null | null | null | null | null | null | null | components/dash-core-components/tests/integration/calendar/test_portal.py | null | null | null | null | null | null | Python | 2026-05-04T02:28:16.086401 | from datetime import date
from dash import Dash, html, dcc
from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from time import sleep
import pytest
def click_everything_in_datepicker(datepicker_id, dash_dcc):
... |
plotly/dash | https://github.com/plotly/dash | null | null | null | null | 24,171 | null | null | mit | null | null | null | null | null | null | null | components/dash-core-components/tests/integration/calendar/test_a11y_date_picker_single.py | null | null | null | null | null | null | Python | 2026-05-04T02:28:19.813005 | from datetime import datetime
from dash import Dash, Input, Output
from dash.dcc import DatePickerSingle
from dash.html import Div, Label, P
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.action_chains import ActionChains
from time import sleep
def send_keys(driver, key):
"""Send k... |
plotly/dash | https://github.com/plotly/dash | null | null | null | null | 24,171 | null | null | mit | null | null | null | null | null | null | null | components/dash-core-components/tests/integration/calendar/test_a11y_date_picker_range.py | null | null | null | null | null | null | Python | 2026-05-04T02:28:19.814122 | from datetime import datetime
from dash import Dash, Input, Output
from dash.dcc import DatePickerRange
from dash.html import Div
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.action_chains import ActionChains
def send_keys(driver, key):
"""Send keyboard keys to the browser"""
... |
Delgan/loguru | https://github.com/Delgan/loguru | null | null | null | null | 23,852 | null | null | mit | null | null | null | null | null | null | null | loguru/_defaults.py | null | null | null | null | null | null | Python | 2026-05-04T02:28:22.175405 | from os import environ
def env(key, type_, default=None):
if key not in environ:
return default
val = environ[key]
if type_ is str:
return val
if type_ is bool:
if val.lower() in ["1", "true", "yes", "y", "ok", "on"]:
return True
if val.lower() in ["0", "f... |
Delgan/loguru | https://github.com/Delgan/loguru | null | null | null | null | 23,852 | null | null | mit | null | null | null | null | null | null | null | loguru/_colorizer.py | null | null | null | null | null | null | Python | 2026-05-04T02:28:22.178826 | import re
from contextlib import contextmanager
from string import Formatter
@contextmanager
def try_formatting(*exceptions):
try:
yield
except exceptions as e:
raise ValueError(
"The logging message could not be formatted with the provided arguments.\n"
"Common causes ... |
Delgan/loguru | https://github.com/Delgan/loguru | null | null | null | null | 23,852 | null | null | mit | null | null | null | null | null | null | null | loguru/_contextvars.py | null | null | null | null | null | null | Python | 2026-05-04T02:28:22.195372 | import sys
def load_contextvar_class():
if sys.version_info >= (3, 7):
from contextvars import ContextVar
elif sys.version_info >= (3, 5, 3):
from aiocontextvars import ContextVar
else:
from contextvars import ContextVar
return ContextVar
ContextVar = load_contextvar_class()... |
Delgan/loguru | https://github.com/Delgan/loguru | null | null | null | null | 23,852 | null | null | mit | null | null | null | null | null | null | null | loguru/_asyncio_loop.py | null | null | null | null | null | null | Python | 2026-05-04T02:28:22.196406 | import asyncio
import sys
def load_loop_functions():
if sys.version_info >= (3, 7):
def get_task_loop(task):
return task.get_loop()
get_running_loop = asyncio.get_running_loop
else:
def get_task_loop(task):
return task._loop
def get_running_loop():
... |
Delgan/loguru | https://github.com/Delgan/loguru | null | null | null | null | 23,852 | null | null | mit | null | null | null | null | null | null | null | loguru/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:28:22.201504 | """
The Loguru library provides a pre-instanced logger to facilitate dealing with logging in Python.
Just ``from loguru import logger``.
"""
import atexit as _atexit
import sys as _sys
from . import _defaults
from ._logger import Core as _Core
from ._logger import Logger as _Logger
__version__ = "0.7.3"
__all__ = ... |
Delgan/loguru | https://github.com/Delgan/loguru | null | null | null | null | 23,852 | null | null | mit | null | null | null | null | null | null | null | loguru/_better_exceptions.py | null | null | null | null | null | null | Python | 2026-05-04T02:28:22.205800 | import builtins
import inspect
import io
import keyword
import linecache
import os
import re
import sys
import sysconfig
import tokenize
import traceback
if sys.version_info >= (3, 11):
def is_exception_group(exc):
return isinstance(exc, ExceptionGroup)
else:
try:
from exceptiongroup import E... |
Delgan/loguru | https://github.com/Delgan/loguru | null | null | null | null | 23,852 | null | null | mit | null | null | null | null | null | null | null | loguru/_colorama.py | null | null | null | null | null | null | Python | 2026-05-04T02:28:22.207259 | import builtins
import os
import sys
def should_colorize(stream):
if stream is None:
return False
is_standard_stream = stream is sys.stdout or stream is sys.stderr
is_original_standard_stream = stream is sys.__stdout__ or stream is sys.__stderr__
if is_standard_stream or is_original_standard... |
Delgan/loguru | https://github.com/Delgan/loguru | null | null | null | null | 23,852 | null | null | mit | null | null | null | null | null | null | null | loguru/_datetime.py | null | null | null | null | null | null | Python | 2026-05-04T02:28:22.208326 | import re
from calendar import day_abbr, day_name, month_abbr, month_name
from datetime import datetime as datetime_
from datetime import timedelta, timezone
from functools import lru_cache, partial
from time import localtime, strftime
tokens = r"H{1,2}|h{1,2}|m{1,2}|s{1,2}|S+|YYYY|YY|M{1,4}|D{1,4}|Z{1,2}|zz|A|X|x|E|Q... |
Delgan/loguru | https://github.com/Delgan/loguru | null | null | null | null | 23,852 | null | null | mit | null | null | null | null | null | null | null | docs/conf.py | null | null | null | null | null | null | Python | 2026-05-04T02:28:22.213267 | """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 --------------------------------------------------------------
If extensions (or modules to d... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.