<commit_before>import asyncio

from enums import GeetestEnm
from GeeTest import GeeTest, aioGeeTest

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

"""
Geetest example
"""

gt = GeeTest(
    rucaptcha_key=RUCAPTCHA_KEY,
    gt="f1ab2cdefa3456789012345b6c78d90e",
    method=GeetestEnm.GEETEST.value,
    pageurl="https://www.site.com/page/",
    api_server="api-na.geetest.com",
)

print(gt.captcha_handler(challenge="12345678abc90123d45678ef90123a456b"))


async def run():
    gt = aioGeeTest(
        rucaptcha_key=RUCAPTCHA_KEY,
        gt="f1ab2cdefa3456789012345b6c78d90e",
        method=GeetestEnm.GEETEST.value,
        pageurl="https://www.site.com/page/",
        api_server="api-na.geetest.com",
    )
    result = await gt.captcha_handler(challenge="12345678abc90123d45678ef90123a456b")
    print(result)


asyncio.run(run())

"""
Geetest 4 example
"""

gt = GeeTest(
    rucaptcha_key=RUCAPTCHA_KEY,
    method=GeetestEnm.GEETEST_V4.value,
    pageurl="https://www.site.com/page/",
    captcha_id="f1ab2cdefa3456789012345b6c78d90e",
    api_server="api-na.geetest.com",
)

print(gt.captcha_handler())


async def run():
    gt = aioGeeTest(
        rucaptcha_key=RUCAPTCHA_KEY,
        method=GeetestEnm.GEETEST_V4.value,
        pageurl="https://www.site.com/page/",
        captcha_id="f1ab2cdefa3456789012345b6c78d90e",
        api_server="api-na.geetest.com",
    )
    result = await gt.captcha_handler()
    print(result)


asyncio.run(run())<commit_msg>Update geetest_example.py<commit_after>import asyncio

from enums import GeetestEnm
from GeeTest import GeeTest, aioGeeTest

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

"""
Geetest example
"""

gt = GeeTest(
    rucaptcha_key=RUCAPTCHA_KEY,
    gt="f1ab2cdefa3456789012345b6c78d90e",
    method=GeetestEnm.GEETEST.value,
    pageurl="https://www.site.com/page/",
    api_server="api-na.geetest.com",
)

print(gt.captcha_handler(challenge="12345678abc90123d45678ef90123a456b"))


async def run():
    gt = aioGeeTest(
        rucaptcha_key=RUCAPTCHA_KEY,
        gt="f1ab2cdefa3456789012345b6c78d90e",
        method=GeetestEnm.GEETEST.value,
        pageurl="https://www.site.com/page/",
        api_server="api-na.geetest.com",
    )
    result = await gt.captcha_handler(challenge="12345678abc90123d45678ef90123a456b")
    print(result)


asyncio.run(run())

"""
Geetest 4 example
"""

gt = GeeTest(
    rucaptcha_key=RUCAPTCHA_KEY,
    method=GeetestEnm.GEETEST_V4.value,
    pageurl="https://rucaptcha.com/demo/geetest-v4",
    captcha_id="<KEY>",
)

print(gt.captcha_handler())


async def run():
    gt = aioGeeTest(
        rucaptcha_key=RUCAPTCHA_KEY,
        method=GeetestEnm.GEETEST_V4.value,
        pageurl="https://rucaptcha.com/demo/geetest-v4",
        captcha_id="<KEY>",
    )
    result = await gt.captcha_handler()
    print(result)


asyncio.run(run())
{'fraction_non_alphanumeric': 0.1249149081007488, 'fraction_numerical': 0.09802586793737236, 'mean_word_length': 3.9898132427843804, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 8, 'lorem ipsum': 0, 'www.': 6, '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': '1533156', 'n_tokens_mistral': 1430, 'n_tokens_neox': 1205, 'n_words': 138}