# Path: termicoder/judges/codechef/models/Testcase.py
# class CodechefTestcase(Testcase):
#     def __init__(self, inp, ans, code):
#         self.inp = inp  # input
#         self.ans = ans    # answer
#         self.code = code  # code/number for testcase
# 
# Path: termicoder/utils/logging.py



from ..models.Testcase import CodechefTestcase as Testcase
from bs4 import BeautifulSoup
from termicoder.utils.logging import logger


# Many corner cases are being handled in extracting testcases
# maybe we can implement our own parser here instead of using
# beautiful soup. Most type of problems should be extracted
def extract(html):
    logger.debug("extract is being called")
    soup = BeautifulSoup(html, "html.parser")
    testcases = []
    pre_tag_elements = soup.find_all('pre')
    try:
        io = _extract_io(pre_tag_elements)

# Path: termicoder/judges/codechef/models/Testcase.py
# class CodechefTestcase(Testcase):
#     def __init__(self, inp, ans, code):
#         self.inp = inp  # input
#         self.ans = ans    # answer
#         self.code = code  # code/number for testcase
# 
# Path: termicoder/utils/logging.py



# Path: termicoder/judges/codechef/utils/testcases.py
from ..models.Testcase import CodechefTestcase as Testcase
from bs4 import BeautifulSoup
from termicoder.utils.logging import logger



# Many corner cases are being handled in extracting testcases
# maybe we can implement our own parser here instead of using
# beautiful soup. Most type of problems should be extracted
def extract(html):
    logger.debug("extract is being called")
    soup = BeautifulSoup(html, "html.parser")
    testcases = []
    pre_tag_elements = soup.find_all('pre')
    try:
        io = _extract_io(pre_tag_elements)

        logger.debug(io)