<commit_before>from six import add_metaclass
from rx.observable import Observable, ObservableMeta
from rx.anonymousobservable import AnonymousObservable

from rx.disposables import Disposable

@add_metaclass(ObservableMeta)
class ObservableCreate(Observable):
    """Uses a meta class to extend Observable with the methods in this class"""

    @classmethod
    def create(cls, subscribe):
        return AnonymousObservable(subscribe)

    # Deprecated alias
    create_with_disposable = create <commit_msg>Removed import<commit_after>from six import add_metaclass
from rx.observable import Observable, ObservableMeta
from rx.anonymousobservable import AnonymousObservable

@add_metaclass(ObservableMeta)
class ObservableCreate(Observable):
    """Uses a meta class to extend Observable with the methods in this class"""

    @classmethod
    def create(cls, subscribe):
        return AnonymousObservable(subscribe)

    # Deprecated alias
    create_with_disposable = create 
{'fraction_non_alphanumeric': 0.05623721881390593, 'fraction_numerical': 0.0, 'mean_word_length': 5.2756410256410255, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7530299', 'n_tokens_mistral': 262, 'n_tokens_neox': 248, 'n_words': 83}