id int64 0 328k | repository_name stringlengths 7 58 | file_path stringlengths 9 302 | class_name stringlengths 5 256 | human_written_code stringlengths 16 2.16M | class_skeleton stringlengths 18 1.49M ⌀ | total_program_units int64 1 1.76k | total_doc_str int64 0 771 | AvgCountLine float64 0 7.89k | AvgCountLineBlank float64 0 297 | AvgCountLineCode float64 0 7.89k | AvgCountLineComment float64 0 7.89k | AvgCyclomatic float64 0 130 | CommentToCodeRatio float64 0 168 | CountClassBase float64 0 40 | CountClassCoupled float64 0 583 | CountClassCoupledModified float64 0 575 | CountClassDerived float64 0 5.35k | CountDeclInstanceMethod float64 0 529 | CountDeclInstanceVariable float64 0 296 | CountDeclMethod float64 0 599 | CountDeclMethodAll float64 0 1.12k | CountLine float64 1 40.4k | CountLineBlank float64 0 8.16k | CountLineCode float64 1 25.7k | CountLineCodeDecl float64 1 8.15k | CountLineCodeExe float64 0 24.2k | CountLineComment float64 0 16.5k | CountStmt float64 1 9.71k | CountStmtDecl float64 1 8.15k | CountStmtExe float64 0 9.69k | MaxCyclomatic float64 0 759 | MaxInheritanceTree float64 0 16 | MaxNesting float64 0 34 | SumCyclomatic float64 0 2.9k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6,600 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/dummy_pt_objects.py | transformers.utils.dummy_pt_objects.PhrasalConstraint | from ..utils import DummyObject, requires_backends
class PhrasalConstraint(metaclass=DummyObject):
_backends = ['torch']
def __init__(self, *args, **kwargs):
requires_backends(self, ['torch']) |
class PhrasalConstraint(metaclass=DummyObject):
def __init__(self, *args, **kwargs):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 5 | 1 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 1 | 0 | 1 |
6,601 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/dummy_pt_objects.py | transformers.utils.dummy_pt_objects.PreTrainedModel | from ..utils import DummyObject, requires_backends
class PreTrainedModel(metaclass=DummyObject):
_backends = ['torch']
def __init__(self, *args, **kwargs):
requires_backends(self, ['torch']) |
class PreTrainedModel(metaclass=DummyObject):
def __init__(self, *args, **kwargs):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 5 | 1 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 1 | 0 | 1 |
6,602 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/dummy_pt_objects.py | transformers.utils.dummy_pt_objects.PrefixConstrainedLogitsProcessor | from ..utils import DummyObject, requires_backends
class PrefixConstrainedLogitsProcessor(metaclass=DummyObject):
_backends = ['torch']
def __init__(self, *args, **kwargs):
requires_backends(self, ['torch']) |
class PrefixConstrainedLogitsProcessor(metaclass=DummyObject):
def __init__(self, *args, **kwargs):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 5 | 1 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 1 | 0 | 1 |
6,603 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/dummy_pt_objects.py | transformers.utils.dummy_pt_objects.QuantizedCache | from ..utils import DummyObject, requires_backends
class QuantizedCache(metaclass=DummyObject):
_backends = ['torch']
def __init__(self, *args, **kwargs):
requires_backends(self, ['torch']) |
class QuantizedCache(metaclass=DummyObject):
def __init__(self, *args, **kwargs):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 5 | 1 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 1 | 0 | 1 |
6,604 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/dummy_pt_objects.py | transformers.utils.dummy_pt_objects.QuantoQuantizedCache | from ..utils import DummyObject, requires_backends
class QuantoQuantizedCache(metaclass=DummyObject):
_backends = ['torch']
def __init__(self, *args, **kwargs):
requires_backends(self, ['torch']) |
class QuantoQuantizedCache(metaclass=DummyObject):
def __init__(self, *args, **kwargs):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 5 | 1 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 1 | 0 | 1 |
6,605 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/dummy_pt_objects.py | transformers.utils.dummy_pt_objects.RepetitionPenaltyLogitsProcessor | from ..utils import DummyObject, requires_backends
class RepetitionPenaltyLogitsProcessor(metaclass=DummyObject):
_backends = ['torch']
def __init__(self, *args, **kwargs):
requires_backends(self, ['torch']) |
class RepetitionPenaltyLogitsProcessor(metaclass=DummyObject):
def __init__(self, *args, **kwargs):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 5 | 1 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 1 | 0 | 1 |
6,606 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/dummy_pt_objects.py | transformers.utils.dummy_pt_objects.Seq2SeqTrainer | from ..utils import DummyObject, requires_backends
class Seq2SeqTrainer(metaclass=DummyObject):
_backends = ['torch']
def __init__(self, *args, **kwargs):
requires_backends(self, ['torch']) |
class Seq2SeqTrainer(metaclass=DummyObject):
def __init__(self, *args, **kwargs):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 5 | 1 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 1 | 0 | 1 |
6,607 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/dummy_pt_objects.py | transformers.utils.dummy_pt_objects.SequenceBiasLogitsProcessor | from ..utils import DummyObject, requires_backends
class SequenceBiasLogitsProcessor(metaclass=DummyObject):
_backends = ['torch']
def __init__(self, *args, **kwargs):
requires_backends(self, ['torch']) |
class SequenceBiasLogitsProcessor(metaclass=DummyObject):
def __init__(self, *args, **kwargs):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 5 | 1 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 1 | 0 | 1 |
6,608 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/dummy_pt_objects.py | transformers.utils.dummy_pt_objects.SinkCache | from ..utils import DummyObject, requires_backends
class SinkCache(metaclass=DummyObject):
_backends = ['torch']
def __init__(self, *args, **kwargs):
requires_backends(self, ['torch']) |
class SinkCache(metaclass=DummyObject):
def __init__(self, *args, **kwargs):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 5 | 1 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 1 | 0 | 1 |
6,609 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/dummy_pt_objects.py | transformers.utils.dummy_pt_objects.SlidingWindowCache | from ..utils import DummyObject, requires_backends
class SlidingWindowCache(metaclass=DummyObject):
_backends = ['torch']
def __init__(self, *args, **kwargs):
requires_backends(self, ['torch']) |
class SlidingWindowCache(metaclass=DummyObject):
def __init__(self, *args, **kwargs):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 5 | 1 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 1 | 0 | 1 |
6,610 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/dummy_pt_objects.py | transformers.utils.dummy_pt_objects.SquadDataTrainingArguments | from ..utils import DummyObject, requires_backends
class SquadDataTrainingArguments(metaclass=DummyObject):
_backends = ['torch']
def __init__(self, *args, **kwargs):
requires_backends(self, ['torch']) |
class SquadDataTrainingArguments(metaclass=DummyObject):
def __init__(self, *args, **kwargs):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 5 | 1 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 1 | 0 | 1 |
6,611 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/dummy_pt_objects.py | transformers.utils.dummy_pt_objects.SquadDataset | from ..utils import DummyObject, requires_backends
class SquadDataset(metaclass=DummyObject):
_backends = ['torch']
def __init__(self, *args, **kwargs):
requires_backends(self, ['torch']) |
class SquadDataset(metaclass=DummyObject):
def __init__(self, *args, **kwargs):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 5 | 1 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 1 | 0 | 1 |
6,612 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/dummy_pt_objects.py | transformers.utils.dummy_pt_objects.StaticCache | from ..utils import DummyObject, requires_backends
class StaticCache(metaclass=DummyObject):
_backends = ['torch']
def __init__(self, *args, **kwargs):
requires_backends(self, ['torch']) |
class StaticCache(metaclass=DummyObject):
def __init__(self, *args, **kwargs):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 5 | 1 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 1 | 0 | 1 |
6,613 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/dummy_pt_objects.py | transformers.utils.dummy_pt_objects.StopStringCriteria | from ..utils import DummyObject, requires_backends
class StopStringCriteria(metaclass=DummyObject):
_backends = ['torch']
def __init__(self, *args, **kwargs):
requires_backends(self, ['torch']) |
class StopStringCriteria(metaclass=DummyObject):
def __init__(self, *args, **kwargs):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 5 | 1 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 1 | 0 | 1 |
6,614 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/dummy_pt_objects.py | transformers.utils.dummy_pt_objects.StoppingCriteria | from ..utils import DummyObject, requires_backends
class StoppingCriteria(metaclass=DummyObject):
_backends = ['torch']
def __init__(self, *args, **kwargs):
requires_backends(self, ['torch']) |
class StoppingCriteria(metaclass=DummyObject):
def __init__(self, *args, **kwargs):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 5 | 1 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 1 | 0 | 1 |
6,615 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/dummy_pt_objects.py | transformers.utils.dummy_pt_objects.StoppingCriteriaList | from ..utils import DummyObject, requires_backends
class StoppingCriteriaList(metaclass=DummyObject):
_backends = ['torch']
def __init__(self, *args, **kwargs):
requires_backends(self, ['torch']) |
class StoppingCriteriaList(metaclass=DummyObject):
def __init__(self, *args, **kwargs):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 5 | 1 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 1 | 0 | 1 |
6,616 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/dummy_pt_objects.py | transformers.utils.dummy_pt_objects.SuppressTokensAtBeginLogitsProcessor | from ..utils import DummyObject, requires_backends
class SuppressTokensAtBeginLogitsProcessor(metaclass=DummyObject):
_backends = ['torch']
def __init__(self, *args, **kwargs):
requires_backends(self, ['torch']) |
class SuppressTokensAtBeginLogitsProcessor(metaclass=DummyObject):
def __init__(self, *args, **kwargs):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 5 | 1 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 1 | 0 | 1 |
6,617 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/dummy_pt_objects.py | transformers.utils.dummy_pt_objects.SuppressTokensLogitsProcessor | from ..utils import DummyObject, requires_backends
class SuppressTokensLogitsProcessor(metaclass=DummyObject):
_backends = ['torch']
def __init__(self, *args, **kwargs):
requires_backends(self, ['torch']) |
class SuppressTokensLogitsProcessor(metaclass=DummyObject):
def __init__(self, *args, **kwargs):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 5 | 1 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 1 | 0 | 1 |
6,618 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/dummy_pt_objects.py | transformers.utils.dummy_pt_objects.SynthIDTextWatermarkDetector | from ..utils import DummyObject, requires_backends
class SynthIDTextWatermarkDetector(metaclass=DummyObject):
_backends = ['torch']
def __init__(self, *args, **kwargs):
requires_backends(self, ['torch']) |
class SynthIDTextWatermarkDetector(metaclass=DummyObject):
def __init__(self, *args, **kwargs):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 5 | 1 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 1 | 0 | 1 |
6,619 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/dummy_pt_objects.py | transformers.utils.dummy_pt_objects.SynthIDTextWatermarkLogitsProcessor | from ..utils import DummyObject, requires_backends
class SynthIDTextWatermarkLogitsProcessor(metaclass=DummyObject):
_backends = ['torch']
def __init__(self, *args, **kwargs):
requires_backends(self, ['torch']) |
class SynthIDTextWatermarkLogitsProcessor(metaclass=DummyObject):
def __init__(self, *args, **kwargs):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 5 | 1 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 1 | 0 | 1 |
6,620 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/dummy_pt_objects.py | transformers.utils.dummy_pt_objects.SynthIDTextWatermarkingConfig | from ..utils import DummyObject, requires_backends
class SynthIDTextWatermarkingConfig(metaclass=DummyObject):
_backends = ['torch']
def __init__(self, *args, **kwargs):
requires_backends(self, ['torch']) |
class SynthIDTextWatermarkingConfig(metaclass=DummyObject):
def __init__(self, *args, **kwargs):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 5 | 1 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 1 | 0 | 1 |
6,621 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/dummy_pt_objects.py | transformers.utils.dummy_pt_objects.TemperatureLogitsWarper | from ..utils import DummyObject, requires_backends
class TemperatureLogitsWarper(metaclass=DummyObject):
_backends = ['torch']
def __init__(self, *args, **kwargs):
requires_backends(self, ['torch']) |
class TemperatureLogitsWarper(metaclass=DummyObject):
def __init__(self, *args, **kwargs):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 5 | 1 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 1 | 0 | 1 |
6,622 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/dummy_pt_objects.py | transformers.utils.dummy_pt_objects.TextDataset | from ..utils import DummyObject, requires_backends
class TextDataset(metaclass=DummyObject):
_backends = ['torch']
def __init__(self, *args, **kwargs):
requires_backends(self, ['torch']) |
class TextDataset(metaclass=DummyObject):
def __init__(self, *args, **kwargs):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 5 | 1 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 1 | 0 | 1 |
6,623 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/dummy_pt_objects.py | transformers.utils.dummy_pt_objects.TextDatasetForNextSentencePrediction | from ..utils import DummyObject, requires_backends
class TextDatasetForNextSentencePrediction(metaclass=DummyObject):
_backends = ['torch']
def __init__(self, *args, **kwargs):
requires_backends(self, ['torch']) |
class TextDatasetForNextSentencePrediction(metaclass=DummyObject):
def __init__(self, *args, **kwargs):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 5 | 1 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 1 | 0 | 1 |
6,624 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/dummy_pt_objects.py | transformers.utils.dummy_pt_objects.TopKLogitsWarper | from ..utils import DummyObject, requires_backends
class TopKLogitsWarper(metaclass=DummyObject):
_backends = ['torch']
def __init__(self, *args, **kwargs):
requires_backends(self, ['torch']) |
class TopKLogitsWarper(metaclass=DummyObject):
def __init__(self, *args, **kwargs):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 5 | 1 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 1 | 0 | 1 |
6,625 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/dummy_pt_objects.py | transformers.utils.dummy_pt_objects.TopPLogitsWarper | from ..utils import DummyObject, requires_backends
class TopPLogitsWarper(metaclass=DummyObject):
_backends = ['torch']
def __init__(self, *args, **kwargs):
requires_backends(self, ['torch']) |
class TopPLogitsWarper(metaclass=DummyObject):
def __init__(self, *args, **kwargs):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 5 | 1 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 1 | 0 | 1 |
6,626 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/dummy_pt_objects.py | transformers.utils.dummy_pt_objects.TorchExportableModuleWithStaticCache | from ..utils import DummyObject, requires_backends
class TorchExportableModuleWithStaticCache(metaclass=DummyObject):
_backends = ['torch']
def __init__(self, *args, **kwargs):
requires_backends(self, ['torch']) |
class TorchExportableModuleWithStaticCache(metaclass=DummyObject):
def __init__(self, *args, **kwargs):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 5 | 1 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 1 | 0 | 1 |
6,627 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/dummy_pt_objects.py | transformers.utils.dummy_pt_objects.Trainer | from ..utils import DummyObject, requires_backends
class Trainer(metaclass=DummyObject):
_backends = ['torch']
def __init__(self, *args, **kwargs):
requires_backends(self, ['torch']) |
class Trainer(metaclass=DummyObject):
def __init__(self, *args, **kwargs):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 5 | 1 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 1 | 0 | 1 |
6,628 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/dummy_pt_objects.py | transformers.utils.dummy_pt_objects.TypicalLogitsWarper | from ..utils import DummyObject, requires_backends
class TypicalLogitsWarper(metaclass=DummyObject):
_backends = ['torch']
def __init__(self, *args, **kwargs):
requires_backends(self, ['torch']) |
class TypicalLogitsWarper(metaclass=DummyObject):
def __init__(self, *args, **kwargs):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 5 | 1 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 1 | 0 | 1 |
6,629 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/dummy_pt_objects.py | transformers.utils.dummy_pt_objects.UnbatchedClassifierFreeGuidanceLogitsProcessor | from ..utils import DummyObject, requires_backends
class UnbatchedClassifierFreeGuidanceLogitsProcessor(metaclass=DummyObject):
_backends = ['torch']
def __init__(self, *args, **kwargs):
requires_backends(self, ['torch']) |
class UnbatchedClassifierFreeGuidanceLogitsProcessor(metaclass=DummyObject):
def __init__(self, *args, **kwargs):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 5 | 1 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 1 | 0 | 1 |
6,630 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/dummy_pt_objects.py | transformers.utils.dummy_pt_objects.WatermarkDetector | from ..utils import DummyObject, requires_backends
class WatermarkDetector(metaclass=DummyObject):
_backends = ['torch']
def __init__(self, *args, **kwargs):
requires_backends(self, ['torch']) |
class WatermarkDetector(metaclass=DummyObject):
def __init__(self, *args, **kwargs):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 5 | 1 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 1 | 0 | 1 |
6,631 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/dummy_pt_objects.py | transformers.utils.dummy_pt_objects.WatermarkLogitsProcessor | from ..utils import DummyObject, requires_backends
class WatermarkLogitsProcessor(metaclass=DummyObject):
_backends = ['torch']
def __init__(self, *args, **kwargs):
requires_backends(self, ['torch']) |
class WatermarkLogitsProcessor(metaclass=DummyObject):
def __init__(self, *args, **kwargs):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 5 | 1 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 1 | 0 | 1 |
6,632 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/dummy_pt_objects.py | transformers.utils.dummy_pt_objects.WhisperTimeStampLogitsProcessor | from ..utils import DummyObject, requires_backends
class WhisperTimeStampLogitsProcessor(metaclass=DummyObject):
_backends = ['torch']
def __init__(self, *args, **kwargs):
requires_backends(self, ['torch']) |
class WhisperTimeStampLogitsProcessor(metaclass=DummyObject):
def __init__(self, *args, **kwargs):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 5 | 1 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 1 | 0 | 1 |
6,633 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/dummy_sentencepiece_objects.py | transformers.utils.dummy_sentencepiece_objects.AlbertTokenizer | from ..utils import DummyObject, requires_backends
class AlbertTokenizer(metaclass=DummyObject):
_backends = ['sentencepiece']
def __init__(self, *args, **kwargs):
requires_backends(self, ['sentencepiece']) |
class AlbertTokenizer(metaclass=DummyObject):
def __init__(self, *args, **kwargs):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 5 | 1 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 1 | 0 | 1 |
6,634 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/dummy_sentencepiece_objects.py | transformers.utils.dummy_sentencepiece_objects.BarthezTokenizer | from ..utils import DummyObject, requires_backends
class BarthezTokenizer(metaclass=DummyObject):
_backends = ['sentencepiece']
def __init__(self, *args, **kwargs):
requires_backends(self, ['sentencepiece']) |
class BarthezTokenizer(metaclass=DummyObject):
def __init__(self, *args, **kwargs):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 5 | 1 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 1 | 0 | 1 |
6,635 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/dummy_sentencepiece_objects.py | transformers.utils.dummy_sentencepiece_objects.BartphoTokenizer | from ..utils import DummyObject, requires_backends
class BartphoTokenizer(metaclass=DummyObject):
_backends = ['sentencepiece']
def __init__(self, *args, **kwargs):
requires_backends(self, ['sentencepiece']) |
class BartphoTokenizer(metaclass=DummyObject):
def __init__(self, *args, **kwargs):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 5 | 1 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 1 | 0 | 1 |
6,636 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/dummy_sentencepiece_objects.py | transformers.utils.dummy_sentencepiece_objects.BertGenerationTokenizer | from ..utils import DummyObject, requires_backends
class BertGenerationTokenizer(metaclass=DummyObject):
_backends = ['sentencepiece']
def __init__(self, *args, **kwargs):
requires_backends(self, ['sentencepiece']) |
class BertGenerationTokenizer(metaclass=DummyObject):
def __init__(self, *args, **kwargs):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 5 | 1 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 1 | 0 | 1 |
6,637 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/dummy_sentencepiece_objects.py | transformers.utils.dummy_sentencepiece_objects.BigBirdTokenizer | from ..utils import DummyObject, requires_backends
class BigBirdTokenizer(metaclass=DummyObject):
_backends = ['sentencepiece']
def __init__(self, *args, **kwargs):
requires_backends(self, ['sentencepiece']) |
class BigBirdTokenizer(metaclass=DummyObject):
def __init__(self, *args, **kwargs):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 5 | 1 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 1 | 0 | 1 |
6,638 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/dummy_sentencepiece_objects.py | transformers.utils.dummy_sentencepiece_objects.CamembertTokenizer | from ..utils import DummyObject, requires_backends
class CamembertTokenizer(metaclass=DummyObject):
_backends = ['sentencepiece']
def __init__(self, *args, **kwargs):
requires_backends(self, ['sentencepiece']) |
class CamembertTokenizer(metaclass=DummyObject):
def __init__(self, *args, **kwargs):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 5 | 1 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 1 | 0 | 1 |
6,639 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/dummy_sentencepiece_objects.py | transformers.utils.dummy_sentencepiece_objects.CodeLlamaTokenizer | from ..utils import DummyObject, requires_backends
class CodeLlamaTokenizer(metaclass=DummyObject):
_backends = ['sentencepiece']
def __init__(self, *args, **kwargs):
requires_backends(self, ['sentencepiece']) |
class CodeLlamaTokenizer(metaclass=DummyObject):
def __init__(self, *args, **kwargs):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 5 | 1 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 1 | 0 | 1 |
6,640 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/dummy_sentencepiece_objects.py | transformers.utils.dummy_sentencepiece_objects.CpmTokenizer | from ..utils import DummyObject, requires_backends
class CpmTokenizer(metaclass=DummyObject):
_backends = ['sentencepiece']
def __init__(self, *args, **kwargs):
requires_backends(self, ['sentencepiece']) |
class CpmTokenizer(metaclass=DummyObject):
def __init__(self, *args, **kwargs):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 5 | 1 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 1 | 0 | 1 |
6,641 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/dummy_sentencepiece_objects.py | transformers.utils.dummy_sentencepiece_objects.DebertaV2Tokenizer | from ..utils import DummyObject, requires_backends
class DebertaV2Tokenizer(metaclass=DummyObject):
_backends = ['sentencepiece']
def __init__(self, *args, **kwargs):
requires_backends(self, ['sentencepiece']) |
class DebertaV2Tokenizer(metaclass=DummyObject):
def __init__(self, *args, **kwargs):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 5 | 1 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 1 | 0 | 1 |
6,642 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/dummy_sentencepiece_objects.py | transformers.utils.dummy_sentencepiece_objects.ErnieMTokenizer | from ..utils import DummyObject, requires_backends
class ErnieMTokenizer(metaclass=DummyObject):
_backends = ['sentencepiece']
def __init__(self, *args, **kwargs):
requires_backends(self, ['sentencepiece']) |
class ErnieMTokenizer(metaclass=DummyObject):
def __init__(self, *args, **kwargs):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 5 | 1 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 1 | 0 | 1 |
6,643 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/dummy_sentencepiece_objects.py | transformers.utils.dummy_sentencepiece_objects.FNetTokenizer | from ..utils import DummyObject, requires_backends
class FNetTokenizer(metaclass=DummyObject):
_backends = ['sentencepiece']
def __init__(self, *args, **kwargs):
requires_backends(self, ['sentencepiece']) |
class FNetTokenizer(metaclass=DummyObject):
def __init__(self, *args, **kwargs):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 5 | 1 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 1 | 0 | 1 |
6,644 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/dummy_sentencepiece_objects.py | transformers.utils.dummy_sentencepiece_objects.GPTSw3Tokenizer | from ..utils import DummyObject, requires_backends
class GPTSw3Tokenizer(metaclass=DummyObject):
_backends = ['sentencepiece']
def __init__(self, *args, **kwargs):
requires_backends(self, ['sentencepiece']) |
class GPTSw3Tokenizer(metaclass=DummyObject):
def __init__(self, *args, **kwargs):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 5 | 1 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 1 | 0 | 1 |
6,645 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/dummy_sentencepiece_objects.py | transformers.utils.dummy_sentencepiece_objects.GemmaTokenizer | from ..utils import DummyObject, requires_backends
class GemmaTokenizer(metaclass=DummyObject):
_backends = ['sentencepiece']
def __init__(self, *args, **kwargs):
requires_backends(self, ['sentencepiece']) |
class GemmaTokenizer(metaclass=DummyObject):
def __init__(self, *args, **kwargs):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 5 | 1 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 1 | 0 | 1 |
6,646 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/dummy_sentencepiece_objects.py | transformers.utils.dummy_sentencepiece_objects.LayoutXLMTokenizer | from ..utils import DummyObject, requires_backends
class LayoutXLMTokenizer(metaclass=DummyObject):
_backends = ['sentencepiece']
def __init__(self, *args, **kwargs):
requires_backends(self, ['sentencepiece']) |
class LayoutXLMTokenizer(metaclass=DummyObject):
def __init__(self, *args, **kwargs):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 5 | 1 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 1 | 0 | 1 |
6,647 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/dummy_sentencepiece_objects.py | transformers.utils.dummy_sentencepiece_objects.LlamaTokenizer | from ..utils import DummyObject, requires_backends
class LlamaTokenizer(metaclass=DummyObject):
_backends = ['sentencepiece']
def __init__(self, *args, **kwargs):
requires_backends(self, ['sentencepiece']) |
class LlamaTokenizer(metaclass=DummyObject):
def __init__(self, *args, **kwargs):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 5 | 1 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 1 | 0 | 1 |
6,648 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/dummy_sentencepiece_objects.py | transformers.utils.dummy_sentencepiece_objects.M2M100Tokenizer | from ..utils import DummyObject, requires_backends
class M2M100Tokenizer(metaclass=DummyObject):
_backends = ['sentencepiece']
def __init__(self, *args, **kwargs):
requires_backends(self, ['sentencepiece']) |
class M2M100Tokenizer(metaclass=DummyObject):
def __init__(self, *args, **kwargs):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 5 | 1 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 1 | 0 | 1 |
6,649 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/dummy_sentencepiece_objects.py | transformers.utils.dummy_sentencepiece_objects.MBart50Tokenizer | from ..utils import DummyObject, requires_backends
class MBart50Tokenizer(metaclass=DummyObject):
_backends = ['sentencepiece']
def __init__(self, *args, **kwargs):
requires_backends(self, ['sentencepiece']) |
class MBart50Tokenizer(metaclass=DummyObject):
def __init__(self, *args, **kwargs):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 5 | 1 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 1 | 0 | 1 |
6,650 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/dummy_sentencepiece_objects.py | transformers.utils.dummy_sentencepiece_objects.MBartTokenizer | from ..utils import DummyObject, requires_backends
class MBartTokenizer(metaclass=DummyObject):
_backends = ['sentencepiece']
def __init__(self, *args, **kwargs):
requires_backends(self, ['sentencepiece']) |
class MBartTokenizer(metaclass=DummyObject):
def __init__(self, *args, **kwargs):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 5 | 1 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 1 | 0 | 1 |
6,651 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/dummy_sentencepiece_objects.py | transformers.utils.dummy_sentencepiece_objects.MLukeTokenizer | from ..utils import DummyObject, requires_backends
class MLukeTokenizer(metaclass=DummyObject):
_backends = ['sentencepiece']
def __init__(self, *args, **kwargs):
requires_backends(self, ['sentencepiece']) |
class MLukeTokenizer(metaclass=DummyObject):
def __init__(self, *args, **kwargs):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 5 | 1 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 1 | 0 | 1 |
6,652 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/dummy_sentencepiece_objects.py | transformers.utils.dummy_sentencepiece_objects.MT5Tokenizer | from ..utils import DummyObject, requires_backends
class MT5Tokenizer(metaclass=DummyObject):
_backends = ['sentencepiece']
def __init__(self, *args, **kwargs):
requires_backends(self, ['sentencepiece']) |
class MT5Tokenizer(metaclass=DummyObject):
def __init__(self, *args, **kwargs):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 5 | 1 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 1 | 0 | 1 |
6,653 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/dummy_sentencepiece_objects.py | transformers.utils.dummy_sentencepiece_objects.MarianTokenizer | from ..utils import DummyObject, requires_backends
class MarianTokenizer(metaclass=DummyObject):
_backends = ['sentencepiece']
def __init__(self, *args, **kwargs):
requires_backends(self, ['sentencepiece']) |
class MarianTokenizer(metaclass=DummyObject):
def __init__(self, *args, **kwargs):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 5 | 1 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 1 | 0 | 1 |
6,654 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/dummy_sentencepiece_objects.py | transformers.utils.dummy_sentencepiece_objects.NllbTokenizer | from ..utils import DummyObject, requires_backends
class NllbTokenizer(metaclass=DummyObject):
_backends = ['sentencepiece']
def __init__(self, *args, **kwargs):
requires_backends(self, ['sentencepiece']) |
class NllbTokenizer(metaclass=DummyObject):
def __init__(self, *args, **kwargs):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 5 | 1 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 1 | 0 | 1 |
6,655 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/dummy_sentencepiece_objects.py | transformers.utils.dummy_sentencepiece_objects.PLBartTokenizer | from ..utils import DummyObject, requires_backends
class PLBartTokenizer(metaclass=DummyObject):
_backends = ['sentencepiece']
def __init__(self, *args, **kwargs):
requires_backends(self, ['sentencepiece']) |
class PLBartTokenizer(metaclass=DummyObject):
def __init__(self, *args, **kwargs):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 5 | 1 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 1 | 0 | 1 |
6,656 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/dummy_sentencepiece_objects.py | transformers.utils.dummy_sentencepiece_objects.PegasusTokenizer | from ..utils import DummyObject, requires_backends
class PegasusTokenizer(metaclass=DummyObject):
_backends = ['sentencepiece']
def __init__(self, *args, **kwargs):
requires_backends(self, ['sentencepiece']) |
class PegasusTokenizer(metaclass=DummyObject):
def __init__(self, *args, **kwargs):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 5 | 1 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 1 | 0 | 1 |
6,657 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/dummy_sentencepiece_objects.py | transformers.utils.dummy_sentencepiece_objects.ReformerTokenizer | from ..utils import DummyObject, requires_backends
class ReformerTokenizer(metaclass=DummyObject):
_backends = ['sentencepiece']
def __init__(self, *args, **kwargs):
requires_backends(self, ['sentencepiece']) |
class ReformerTokenizer(metaclass=DummyObject):
def __init__(self, *args, **kwargs):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 5 | 1 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 1 | 0 | 1 |
6,658 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/dummy_sentencepiece_objects.py | transformers.utils.dummy_sentencepiece_objects.RemBertTokenizer | from ..utils import DummyObject, requires_backends
class RemBertTokenizer(metaclass=DummyObject):
_backends = ['sentencepiece']
def __init__(self, *args, **kwargs):
requires_backends(self, ['sentencepiece']) |
class RemBertTokenizer(metaclass=DummyObject):
def __init__(self, *args, **kwargs):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 5 | 1 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 1 | 0 | 1 |
6,659 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/dummy_sentencepiece_objects.py | transformers.utils.dummy_sentencepiece_objects.SeamlessM4TTokenizer | from ..utils import DummyObject, requires_backends
class SeamlessM4TTokenizer(metaclass=DummyObject):
_backends = ['sentencepiece']
def __init__(self, *args, **kwargs):
requires_backends(self, ['sentencepiece']) |
class SeamlessM4TTokenizer(metaclass=DummyObject):
def __init__(self, *args, **kwargs):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 5 | 1 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 1 | 0 | 1 |
6,660 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/dummy_sentencepiece_objects.py | transformers.utils.dummy_sentencepiece_objects.SiglipTokenizer | from ..utils import DummyObject, requires_backends
class SiglipTokenizer(metaclass=DummyObject):
_backends = ['sentencepiece']
def __init__(self, *args, **kwargs):
requires_backends(self, ['sentencepiece']) |
class SiglipTokenizer(metaclass=DummyObject):
def __init__(self, *args, **kwargs):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 5 | 1 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 1 | 0 | 1 |
6,661 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/dummy_sentencepiece_objects.py | transformers.utils.dummy_sentencepiece_objects.Speech2TextTokenizer | from ..utils import DummyObject, requires_backends
class Speech2TextTokenizer(metaclass=DummyObject):
_backends = ['sentencepiece']
def __init__(self, *args, **kwargs):
requires_backends(self, ['sentencepiece']) |
class Speech2TextTokenizer(metaclass=DummyObject):
def __init__(self, *args, **kwargs):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 5 | 1 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 1 | 0 | 1 |
6,662 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/dummy_sentencepiece_objects.py | transformers.utils.dummy_sentencepiece_objects.SpeechT5Tokenizer | from ..utils import DummyObject, requires_backends
class SpeechT5Tokenizer(metaclass=DummyObject):
_backends = ['sentencepiece']
def __init__(self, *args, **kwargs):
requires_backends(self, ['sentencepiece']) |
class SpeechT5Tokenizer(metaclass=DummyObject):
def __init__(self, *args, **kwargs):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 5 | 1 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 1 | 0 | 1 |
6,663 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/dummy_sentencepiece_objects.py | transformers.utils.dummy_sentencepiece_objects.T5Tokenizer | from ..utils import DummyObject, requires_backends
class T5Tokenizer(metaclass=DummyObject):
_backends = ['sentencepiece']
def __init__(self, *args, **kwargs):
requires_backends(self, ['sentencepiece']) |
class T5Tokenizer(metaclass=DummyObject):
def __init__(self, *args, **kwargs):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 5 | 1 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 1 | 0 | 1 |
6,664 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/dummy_sentencepiece_objects.py | transformers.utils.dummy_sentencepiece_objects.UdopTokenizer | from ..utils import DummyObject, requires_backends
class UdopTokenizer(metaclass=DummyObject):
_backends = ['sentencepiece']
def __init__(self, *args, **kwargs):
requires_backends(self, ['sentencepiece']) |
class UdopTokenizer(metaclass=DummyObject):
def __init__(self, *args, **kwargs):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 5 | 1 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 1 | 0 | 1 |
6,665 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/dummy_sentencepiece_objects.py | transformers.utils.dummy_sentencepiece_objects.XGLMTokenizer | from ..utils import DummyObject, requires_backends
class XGLMTokenizer(metaclass=DummyObject):
_backends = ['sentencepiece']
def __init__(self, *args, **kwargs):
requires_backends(self, ['sentencepiece']) |
class XGLMTokenizer(metaclass=DummyObject):
def __init__(self, *args, **kwargs):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 5 | 1 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 1 | 0 | 1 |
6,666 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/dummy_sentencepiece_objects.py | transformers.utils.dummy_sentencepiece_objects.XLMProphetNetTokenizer | from ..utils import DummyObject, requires_backends
class XLMProphetNetTokenizer(metaclass=DummyObject):
_backends = ['sentencepiece']
def __init__(self, *args, **kwargs):
requires_backends(self, ['sentencepiece']) |
class XLMProphetNetTokenizer(metaclass=DummyObject):
def __init__(self, *args, **kwargs):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 5 | 1 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 1 | 0 | 1 |
6,667 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/dummy_sentencepiece_objects.py | transformers.utils.dummy_sentencepiece_objects.XLMRobertaTokenizer | from ..utils import DummyObject, requires_backends
class XLMRobertaTokenizer(metaclass=DummyObject):
_backends = ['sentencepiece']
def __init__(self, *args, **kwargs):
requires_backends(self, ['sentencepiece']) |
class XLMRobertaTokenizer(metaclass=DummyObject):
def __init__(self, *args, **kwargs):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 5 | 1 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 1 | 0 | 1 |
6,668 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/dummy_sentencepiece_objects.py | transformers.utils.dummy_sentencepiece_objects.XLNetTokenizer | from ..utils import DummyObject, requires_backends
class XLNetTokenizer(metaclass=DummyObject):
_backends = ['sentencepiece']
def __init__(self, *args, **kwargs):
requires_backends(self, ['sentencepiece']) |
class XLNetTokenizer(metaclass=DummyObject):
def __init__(self, *args, **kwargs):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 5 | 1 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 1 | 0 | 1 |
6,669 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/dummy_speech_objects.py | transformers.utils.dummy_speech_objects.ASTFeatureExtractor | from ..utils import DummyObject, requires_backends
class ASTFeatureExtractor(metaclass=DummyObject):
_backends = ['speech']
def __init__(self, *args, **kwargs):
requires_backends(self, ['speech']) |
class ASTFeatureExtractor(metaclass=DummyObject):
def __init__(self, *args, **kwargs):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 15 | 5 | 1 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 3 | 0 | 1 |
6,670 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/dummy_speech_objects.py | transformers.utils.dummy_speech_objects.Speech2TextFeatureExtractor | from ..utils import DummyObject, requires_backends
class Speech2TextFeatureExtractor(metaclass=DummyObject):
_backends = ['speech']
def __init__(self, *args, **kwargs):
requires_backends(self, ['speech']) |
class Speech2TextFeatureExtractor(metaclass=DummyObject):
def __init__(self, *args, **kwargs):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 15 | 5 | 1 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 3 | 0 | 1 |
6,671 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/dummy_timm_and_torchvision_objects.py | transformers.utils.dummy_timm_and_torchvision_objects.TimmWrapperImageProcessor | from ..utils import DummyObject, requires_backends
class TimmWrapperImageProcessor(metaclass=DummyObject):
_backends = ['timm', 'torchvision']
def __init__(self, *args, **kwargs):
requires_backends(self, ['timm', 'torchvision']) |
class TimmWrapperImageProcessor(metaclass=DummyObject):
def __init__(self, *args, **kwargs):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 5 | 1 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 1 | 0 | 1 |
6,672 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/dummy_tokenizers_objects.py | transformers.utils.dummy_tokenizers_objects.PreTrainedTokenizerFast | from ..utils import DummyObject, requires_backends
class PreTrainedTokenizerFast(metaclass=DummyObject):
_backends = ['tokenizers']
def __init__(self, *args, **kwargs):
requires_backends(self, ['tokenizers']) |
class PreTrainedTokenizerFast(metaclass=DummyObject):
def __init__(self, *args, **kwargs):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 5 | 1 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 1 | 0 | 1 |
6,673 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/dummy_torchaudio_objects.py | transformers.utils.dummy_torchaudio_objects.MusicgenMelodyFeatureExtractor | from ..utils import DummyObject, requires_backends
class MusicgenMelodyFeatureExtractor(metaclass=DummyObject):
_backends = ['torchaudio']
def __init__(self, *args, **kwargs):
requires_backends(self, ['torchaudio']) |
class MusicgenMelodyFeatureExtractor(metaclass=DummyObject):
def __init__(self, *args, **kwargs):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 5 | 1 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 1 | 0 | 1 |
6,674 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/dummy_torchaudio_objects.py | transformers.utils.dummy_torchaudio_objects.MusicgenMelodyProcessor | from ..utils import DummyObject, requires_backends
class MusicgenMelodyProcessor(metaclass=DummyObject):
_backends = ['torchaudio']
def __init__(self, *args, **kwargs):
requires_backends(self, ['torchaudio']) |
class MusicgenMelodyProcessor(metaclass=DummyObject):
def __init__(self, *args, **kwargs):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 5 | 1 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 1 | 0 | 1 |
6,675 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/dummy_torchvision_objects.py | transformers.utils.dummy_torchvision_objects.BaseImageProcessorFast | from ..utils import DummyObject, requires_backends
class BaseImageProcessorFast(metaclass=DummyObject):
_backends = ['torchvision']
def __init__(self, *args, **kwargs):
requires_backends(self, ['torchvision']) |
class BaseImageProcessorFast(metaclass=DummyObject):
def __init__(self, *args, **kwargs):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 5 | 1 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 1 | 0 | 1 |
6,676 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/dummy_vision_objects.py | transformers.utils.dummy_vision_objects.BaseImageProcessor | from ..utils import DummyObject, requires_backends
class BaseImageProcessor(metaclass=DummyObject):
_backends = ['vision']
def __init__(self, *args, **kwargs):
requires_backends(self, ['vision']) |
class BaseImageProcessor(metaclass=DummyObject):
def __init__(self, *args, **kwargs):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 5 | 1 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 1 | 0 | 1 |
6,677 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/dummy_vision_objects.py | transformers.utils.dummy_vision_objects.ImageFeatureExtractionMixin | from ..utils import DummyObject, requires_backends
class ImageFeatureExtractionMixin(metaclass=DummyObject):
_backends = ['vision']
def __init__(self, *args, **kwargs):
requires_backends(self, ['vision']) |
class ImageFeatureExtractionMixin(metaclass=DummyObject):
def __init__(self, *args, **kwargs):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 5 | 1 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 1 | 0 | 1 |
6,678 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/dummy_vision_objects.py | transformers.utils.dummy_vision_objects.ImageProcessingMixin | from ..utils import DummyObject, requires_backends
class ImageProcessingMixin(metaclass=DummyObject):
_backends = ['vision']
def __init__(self, *args, **kwargs):
requires_backends(self, ['vision']) |
class ImageProcessingMixin(metaclass=DummyObject):
def __init__(self, *args, **kwargs):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 5 | 1 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 1 | 0 | 1 |
6,679 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/fx.py | transformers.utils.fx.HFAttribute | import builtins
class HFAttribute(HFProxy):
def __init__(self, root, attr: str):
self.root = root
self.attr = attr
self.tracer = root.tracer
self._node = None
if hasattr(self.root, '_metadata'):
self.install_metadata(getattr(self.root._metadata, attr))
@pro... |
class HFAttribute(HFProxy):
def __init__(self, root, attr: str):
pass
@property
def node(self):
pass
def __call__(self, *args, **kwargs):
pass | 5 | 0 | 5 | 0 | 4 | 1 | 2 | 0.13 | 1 | 1 | 0 | 1 | 3 | 4 | 3 | 24 | 20 | 3 | 15 | 9 | 10 | 2 | 14 | 8 | 10 | 2 | 2 | 1 | 5 |
6,680 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/fx.py | transformers.utils.fx.HFCacheProxy | from ..cache_utils import Cache, DynamicCache, StaticCache
class HFCacheProxy(HFProxy):
"""
Proxy that represents an instance of `transformers.cache_utils.Cache`.
"""
def install_orig_cache_cls(self, orig_cache_cls: type[Cache]):
self._orig_cache_cls = orig_cache_cls
@property
def __c... |
class HFCacheProxy(HFProxy):
'''
Proxy that represents an instance of `transformers.cache_utils.Cache`.
'''
def install_orig_cache_cls(self, orig_cache_cls: type[Cache]):
pass
@property
def __class__(self):
pass | 4 | 1 | 3 | 0 | 3 | 0 | 2 | 0.38 | 1 | 2 | 1 | 0 | 2 | 1 | 2 | 23 | 13 | 2 | 8 | 5 | 4 | 3 | 7 | 4 | 4 | 2 | 2 | 1 | 3 |
6,681 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/fx.py | transformers.utils.fx.HFProxy | from torch.fx import Graph, GraphModule, Node, Proxy, Tracer
import operator
class HFProxy(Proxy):
"""
Proxy that uses metadata to handle data-dependent control-flow.
"""
def install_metadata(self, metadata):
self._metadata = metadata
@property
def shape(self):
return self.tra... |
class HFProxy(Proxy):
'''
Proxy that uses metadata to handle data-dependent control-flow.
'''
def install_metadata(self, metadata):
pass
@property
def shape(self):
pass
@property
def device(self):
pass
def __len__(self):
pass
def __bool__(self)... | 11 | 1 | 4 | 0 | 3 | 1 | 2 | 0.26 | 1 | 3 | 2 | 2 | 8 | 1 | 8 | 21 | 42 | 8 | 27 | 12 | 16 | 7 | 25 | 10 | 16 | 2 | 1 | 1 | 12 |
6,682 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/fx.py | transformers.utils.fx.HFProxyableClassMeta | import inspect
from typing import Any, Callable, Literal, Optional, Union
from torch.fx import Graph, GraphModule, Node, Proxy, Tracer
class HFProxyableClassMeta(type):
"""
Metaclass that creates a class with its main methods wrapped to be proxyable.
"""
def __new__(cls, name: str, bases: tuple[type, ... |
class HFProxyableClassMeta(type):
'''
Metaclass that creates a class with its main methods wrapped to be proxyable.
'''
def __new__(cls, name: str, bases: tuple[type, ...], attrs: dict[str, Any], proxy_factory_fn: Optional[Callable[[Node], Proxy]]=None):
pass | 2 | 1 | 25 | 0 | 25 | 0 | 8 | 0.12 | 1 | 5 | 0 | 0 | 1 | 0 | 1 | 14 | 30 | 1 | 26 | 11 | 18 | 3 | 16 | 5 | 14 | 8 | 2 | 2 | 8 |
6,683 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/fx.py | transformers.utils.fx.HFTracer | import math
import torch.utils._pytree as pytree
import warnings
from torch.fx._compatibility import compatibility
import inspect
import torch
import sys
from ..cache_utils import Cache, DynamicCache, StaticCache
from ..modeling_utils import PretrainedConfig, PreTrainedModel
from .import_utils import ENV_VARS_TRUE_VALU... |
class HFTracer(Tracer):
'''
Tracer that is able to symbolically trace models from the library. To do that, it uses the HFProxy instead of the
regular PyTorch torch.fx.Proxy.
'''
def __init__(self, autowrap_modules=(math,), autowrap_functions=()):
pass
def _generate_dummy_input(self, m... | 19 | 7 | 33 | 3 | 26 | 5 | 7 | 0.19 | 1 | 27 | 2 | 0 | 14 | 7 | 14 | 33 | 562 | 67 | 416 | 108 | 388 | 80 | 271 | 95 | 253 | 30 | 2 | 4 | 109 |
6,684 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/fx.py | transformers.utils.fx.MetaDeviceAttribute | class MetaDeviceAttribute(HFAttribute):
pass | class MetaDeviceAttribute(HFAttribute):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 24 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 3 | 0 | 0 |
6,685 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/generic.py | transformers.utils.generic.ContextManagers | from contextlib import AbstractContextManager, ExitStack, contextmanager
class ContextManagers:
"""
Wrapper for `contextlib.ExitStack` which enters a collection of context managers. Adaptation of `ContextManagers`
in the `fastcore` library.
"""
def __init__(self, context_managers: list[AbstractCon... |
class ContextManagers:
'''
Wrapper for `contextlib.ExitStack` which enters a collection of context managers. Adaptation of `ContextManagers`
in the `fastcore` library.
'''
def __init__(self, context_managers: list[AbstractContextManager]):
pass
def __enter__(self):
pass
d... | 4 | 1 | 3 | 0 | 3 | 0 | 1 | 0.44 | 0 | 1 | 0 | 0 | 3 | 2 | 3 | 3 | 16 | 3 | 9 | 7 | 5 | 4 | 9 | 7 | 5 | 2 | 0 | 1 | 4 |
6,686 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/generic.py | transformers.utils.generic.ExplicitEnum | from enum import Enum
class ExplicitEnum(str, Enum):
"""
Enum with more explicit error message for missing values.
"""
@classmethod
def _missing_(cls, value):
raise ValueError(f'{value} is not a valid {cls.__name__}, please select one of {list(cls._value2member_map_.keys())}') |
class ExplicitEnum(str, Enum):
'''
Enum with more explicit error message for missing values.
'''
@classmethod
def _missing_(cls, value):
pass | 3 | 1 | 4 | 0 | 4 | 0 | 1 | 0.5 | 2 | 2 | 0 | 2 | 0 | 0 | 1 | 116 | 10 | 1 | 6 | 3 | 3 | 3 | 3 | 2 | 1 | 1 | 4 | 0 | 1 |
6,687 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/generic.py | transformers.utils.generic.ModelOutput | from .import_utils import is_mlx_available, is_torch_available, is_torch_fx_proxy, requires
from collections import OrderedDict, UserDict, defaultdict
from dataclasses import dataclass, fields, is_dataclass
from typing import Any, Callable, Optional, TypedDict
from functools import partial, wraps
class ModelOutput(Ord... |
class ModelOutput(OrderedDict):
'''
Base class for all model outputs as dataclass. Has a `__getitem__` that allows indexing by integer or slice (like a
tuple) or strings (like a dictionary) that will ignore the `None` attributes. Otherwise behaves like a regular
python dictionary.
<Tip warning={tru... | 13 | 4 | 10 | 1 | 8 | 2 | 3 | 0.33 | 1 | 10 | 0 | 0 | 12 | 0 | 12 | 62 | 149 | 23 | 95 | 24 | 82 | 31 | 71 | 24 | 58 | 14 | 3 | 5 | 31 |
6,688 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/generic.py | transformers.utils.generic.PaddingStrategy | class PaddingStrategy(ExplicitEnum):
"""
Possible values for the `padding` argument in [`PreTrainedTokenizerBase.__call__`]. Useful for tab-completion in an
IDE.
"""
LONGEST = 'longest'
MAX_LENGTH = 'max_length'
DO_NOT_PAD = 'do_not_pad' | class PaddingStrategy(ExplicitEnum):
'''
Possible values for the `padding` argument in [`PreTrainedTokenizerBase.__call__`]. Useful for tab-completion in an
IDE.
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 116 | 9 | 1 | 4 | 4 | 3 | 4 | 4 | 4 | 3 | 0 | 5 | 0 | 0 |
6,689 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/generic.py | transformers.utils.generic.TensorType | class TensorType(ExplicitEnum):
"""
Possible values for the `return_tensors` argument in [`PreTrainedTokenizerBase.__call__`]. Useful for
tab-completion in an IDE.
"""
PYTORCH = 'pt'
NUMPY = 'np'
MLX = 'mlx' | class TensorType(ExplicitEnum):
'''
Possible values for the `return_tensors` argument in [`PreTrainedTokenizerBase.__call__`]. Useful for
tab-completion in an IDE.
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.67 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 116 | 11 | 1 | 6 | 6 | 5 | 4 | 6 | 6 | 5 | 0 | 5 | 0 | 0 |
6,690 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/hp_naming.py | transformers.utils.hp_naming.TrialShortNamer | import re
import copy
class TrialShortNamer:
PREFIX = 'hp'
DEFAULTS = {}
NAMING_INFO = None
@classmethod
def set_defaults(cls, prefix, defaults):
cls.PREFIX = prefix
cls.DEFAULTS = defaults
cls.build_naming_info()
@staticmethod
def shortname_for_word(info, word):
... |
class TrialShortNamer:
@classmethod
def set_defaults(cls, prefix, defaults):
pass
@staticmethod
def shortname_for_word(info, word):
pass
def int_to_alphabetic(integer):
pass
@staticmethod
def shortname_for_key(info, param_name):
pass... | 16 | 0 | 17 | 3 | 13 | 1 | 4 | 0.05 | 0 | 6 | 0 | 0 | 0 | 0 | 7 | 7 | 144 | 29 | 111 | 45 | 95 | 5 | 95 | 38 | 86 | 9 | 0 | 3 | 32 |
6,691 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/hub.py | transformers.utils.hub.PushInProgress | from typing import Optional, Union
from concurrent import futures
class PushInProgress:
"""
Internal class to keep track of a push in progress (which might contain multiple `Future` jobs).
"""
def __init__(self, jobs: Optional[futures.Future]=None) -> None:
self.jobs = [] if jobs is None else ... |
class PushInProgress:
'''
Internal class to keep track of a push in progress (which might contain multiple `Future` jobs).
'''
def __init__(self, jobs: Optional[futures.Future]=None) -> None:
pass
def is_done(self):
pass
def wait_until_done(self):
pass
def ca... | 5 | 1 | 3 | 0 | 3 | 0 | 1 | 0.31 | 0 | 1 | 0 | 0 | 4 | 1 | 4 | 4 | 21 | 4 | 13 | 6 | 8 | 4 | 9 | 6 | 4 | 2 | 0 | 0 | 5 |
6,692 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/hub.py | transformers.utils.hub.PushToHubMixin | import warnings
from .generic import working_or_temp_dir
import os
from huggingface_hub import _CACHED_NO_EXIST, CommitOperationAdd, ModelCard, ModelCardData, constants, create_branch, create_commit, create_repo, hf_hub_download, hf_hub_url, list_repo_tree, snapshot_download, try_to_load_from_cache
from typing import O... |
class PushToHubMixin:
'''
A Mixin containing the functionality to push a model or tokenizer to the hub.
'''
def _create_repo(self, repo_id: str, private: Optional[bool]=None, token: Optional[Union[bool, str]]=None, repo_url: Optional[str]=None, organization: Optional[str]=None) -> str:
'''
... | 5 | 5 | 63 | 5 | 42 | 17 | 7 | 0.42 | 0 | 8 | 0 | 0 | 4 | 0 | 4 | 4 | 261 | 24 | 167 | 50 | 131 | 70 | 73 | 17 | 68 | 13 | 0 | 3 | 27 |
6,693 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/import_utils.py | transformers.utils.import_utils.DummyObject | class DummyObject(type):
"""
Metaclass for the dummy objects. Any class inheriting from it will return the ImportError generated by
`requires_backend` each time a user tries to access any method of that class.
"""
is_dummy = True
def __getattribute__(cls, key):
if key.startswith('_') an... | class DummyObject(type):
'''
Metaclass for the dummy objects. Any class inheriting from it will return the ImportError generated by
`requires_backend` each time a user tries to access any method of that class.
'''
def __getattribute__(cls, key):
pass | 2 | 1 | 4 | 0 | 4 | 0 | 2 | 0.8 | 1 | 1 | 0 | 5 | 1 | 0 | 1 | 14 | 10 | 1 | 5 | 2 | 3 | 4 | 5 | 2 | 3 | 2 | 2 | 1 | 2 |
6,694 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/import_utils.py | transformers.utils.import_utils.OptionalDependencyNotAvailable | class OptionalDependencyNotAvailable(BaseException):
"""Internally used error class for signalling an optional dependency was not found.""" | class OptionalDependencyNotAvailable(BaseException):
'''Internally used error class for signalling an optional dependency was not found.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 9 | 2 | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 2 | 0 | 0 |
6,695 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/import_utils.py | transformers.utils.import_utils._LazyModule | import importlib.util
import importlib.metadata
import importlib.machinery
from typing import Any, Callable, Optional, Union
import os
from types import ModuleType
from itertools import chain
class _LazyModule(ModuleType):
"""
Module class that surfaces all objects but only performs associated imports when the... |
class _LazyModule(ModuleType):
'''
Module class that surfaces all objects but only performs associated imports when the objects are requested.
'''
def __init__(self, name: str, module_file: str, import_structure: IMPORT_STRUCTURE_T, module_spec: Optional[importlib.machinery.ModuleSpec]=None, extra... | 9 | 1 | 19 | 2 | 16 | 1 | 4 | 0.12 | 1 | 14 | 1 | 0 | 5 | 10 | 5 | 5 | 121 | 18 | 92 | 39 | 77 | 11 | 76 | 31 | 68 | 14 | 1 | 5 | 26 |
6,696 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/logging.py | transformers.utils.logging.EmptyTqdm | class EmptyTqdm:
"""Dummy tqdm which doesn't do anything."""
def __init__(self, *args, **kwargs):
self._iterator = args[0] if args else None
def __iter__(self):
return iter(self._iterator)
def __getattr__(self, _):
"""Return empty function."""
def empty_fn(*args, **kw... | class EmptyTqdm:
'''Dummy tqdm which doesn't do anything.'''
def __init__(self, *args, **kwargs):
pass
def __iter__(self):
pass
def __getattr__(self, _):
'''Return empty function.'''
pass
def empty_fn(*args, **kwargs):
pass
def __enter__(s... | 7 | 2 | 3 | 0 | 2 | 1 | 1 | 0.31 | 0 | 0 | 0 | 0 | 5 | 1 | 5 | 5 | 22 | 7 | 13 | 8 | 6 | 4 | 13 | 8 | 6 | 2 | 0 | 0 | 7 |
6,697 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/logging.py | transformers.utils.logging._tqdm_cls | from tqdm import auto as tqdm_lib
class _tqdm_cls:
def __call__(self, *args, **kwargs):
if _tqdm_active:
return tqdm_lib.tqdm(*args, **kwargs)
else:
return EmptyTqdm(*args, **kwargs)
def set_lock(self, *args, **kwargs):
self._lock = None
if _tqdm_active... |
class _tqdm_cls:
def __call__(self, *args, **kwargs):
pass
def set_lock(self, *args, **kwargs):
pass
def get_lock(self):
pass | 4 | 0 | 4 | 0 | 4 | 0 | 2 | 0 | 0 | 2 | 1 | 0 | 3 | 1 | 3 | 3 | 15 | 2 | 13 | 5 | 9 | 0 | 12 | 5 | 8 | 2 | 0 | 1 | 6 |
6,698 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/notebook.py | transformers.utils.notebook.NotebookProgressBar | import os
import time
from typing import Optional
import IPython.display as disp
class NotebookProgressBar:
"""
A progress par for display in a notebook.
Class attributes (overridden by derived classes)
- **warmup** (`int`) -- The number of iterations to do at the beginning while ignoring `update... |
class NotebookProgressBar:
'''
A progress par for display in a notebook.
Class attributes (overridden by derived classes)
- **warmup** (`int`) -- The number of iterations to do at the beginning while ignoring `update_every`.
- **update_every** (`float`) -- Since calling the time takes some ... | 6 | 3 | 20 | 0 | 17 | 3 | 5 | 0.52 | 0 | 3 | 0 | 1 | 5 | 19 | 5 | 5 | 147 | 14 | 88 | 34 | 75 | 46 | 69 | 27 | 63 | 11 | 0 | 3 | 24 |
6,699 | huggingface/pytorch-pretrained-BERT | huggingface_pytorch-pretrained-BERT/src/transformers/utils/notebook.py | transformers.utils.notebook.NotebookProgressCallback | from ..trainer_utils import IntervalStrategy, has_length
import re
from ..trainer_callback import TrainerCallback
class NotebookProgressCallback(TrainerCallback):
"""
A [`TrainerCallback`] that displays the progress of training or evaluation, optimized for Jupyter Notebooks or
Google colab.
"""
de... |
class NotebookProgressCallback(TrainerCallback):
'''
A [`TrainerCallback`] that displays the progress of training or evaluation, optimized for Jupyter Notebooks or
Google colab.
'''
def __init__(self):
pass
def on_train_begin(self, args, state, control, **kwargs):
pass
de... | 9 | 1 | 10 | 0 | 10 | 1 | 3 | 0.1 | 1 | 5 | 3 | 0 | 8 | 6 | 8 | 23 | 96 | 9 | 79 | 26 | 70 | 8 | 68 | 26 | 59 | 9 | 1 | 3 | 24 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.