<commit_before># Imports
from .base import BasePlatform

class BitbucketPlatform(BasePlatform):
    PATTERNS = {
        'https': r'https://(?P<_user>.+)@(?P<domain>.+)/(?P<owner>.+)/(?P<repo>.+).git',
        'ssh': r'ssh://git@(?P<domain>.+)/(?P<owner>.+)/(?P<repo>.+).git'
    }
    FORMATS = {
        'https': r'https://%(owner)s@%(domain)s/%(owner)s/%(repo)s.git',
        'ssh': r'ssh://git@%(domain)s/%(owner)s/%(repo)s.git'
    }
    DOMAINS = ('bitbucket.org',)
    PROTOCOLS = ('https', 'ssh',)<commit_msg>Fix bitbucket SSH protocol error<commit_after># Imports
from .base import BasePlatform

class BitbucketPlatform(BasePlatform):
    PATTERNS = {
        'https': r'https://(?P<_user>.+)@(?P<domain>.+)/(?P<owner>.+)/(?P<repo>.+).git',
        'ssh': r'git@(?P<domain>.+)/(?P<owner>.+)/(?P<repo>.+).git'
    }
    FORMATS = {
        'https': r'https://%(owner)s@%(domain)s/%(owner)s/%(repo)s.git',
        'ssh': r'git@%(domain)s/%(owner)s/%(repo)s.git'
    }
    DOMAINS = ('bitbucket.org',)
{'fraction_non_alphanumeric': 0.2830188679245283, 'fraction_numerical': 0.0, 'mean_word_length': 3.48, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, 'https://': 4, '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': '6419024', 'n_tokens_mistral': 436, 'n_tokens_neox': 398, 'n_words': 46}