<commit_before>from src.python_rucaptcha.enums import RotateCaptchaEnm
from src.python_rucaptcha.RotateCaptcha import RotateCaptcha

# Rucaptcha API Key from your account
RUCAPTCHA_KEY = "ad911111111111ca81755768608fa758570"


rotate_captcha = RotateCaptcha(rucaptcha_key=RUCAPTCHA_KEY, method=RotateCaptchaEnm.ROTATECAPTCHA.value)
# file URL
result = rotate_captcha.captcha_handler(
    captcha_link="https://rucaptcha.com/dist/web/b771cc7c5eb0c1a811fcb91d54e4443a.png"
)

print(result)

# file path
result = rotate_captcha.captcha_handler(captcha_link="src/examples/rotate/rotate_ex.png")

print(result)<commit_msg>Update rotate_example.py<commit_after>import asyncio

from src.python_rucaptcha.enums import RotateCaptchaEnm
from src.python_rucaptcha.RotateCaptcha import RotateCaptcha, aioRotateCaptcha

# Rucaptcha API Key from your account
RUCAPTCHA_KEY = "ad911111111111ca81755768608fa758570"

captcha_url = "https://rucaptcha.com/dist/web/b771cc7c5eb0c1a811fcb91d54e4443a.png"
captcha_path = "src/examples/rotate/rotate_ex.png"

rotate_captcha = RotateCaptcha(rucaptcha_key=RUCAPTCHA_KEY, method=RotateCaptchaEnm.ROTATECAPTCHA.value)
# file URL
result = rotate_captcha.captcha_handler(captcha_link=captcha_url)

print(result)

# file path
result = rotate_captcha.captcha_handler(captcha_link=captcha_path)

print(result)

# ASYNC example

rotate_captcha = aioRotateCaptcha(rucaptcha_key=RUCAPTCHA_KEY, method=RotateCaptchaEnm.ROTATECAPTCHA.value)


async def run():
    # file URL
    result = await rotate_captcha.captcha_handler(captcha_link=captcha_url)

    print(result)

    # file path
    result = await rotate_captcha.captcha_handler(captcha_link=captcha_path)

    print(result)


asyncio.run(run())
{'fraction_non_alphanumeric': 0.08100233100233101, 'fraction_numerical': 0.054778554778554776, 'mean_word_length': 7.416666666666667, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, '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': '6588757', 'n_tokens_mistral': 758, 'n_tokens_neox': 650, 'n_words': 87}