






import json
import os
import pickle
import subprocess
from hashlib import mda
from pathlib import Path
from tempfile import gettempdir
from textwrap import dedent
from types import CodeType, FunctionType
from unittest import TestCase
from unittest.mock import patch

import pytest
from multiprocess import Pool
from packaging import version

import datasets
from datasets.fingerprint import Hasher, fingerprint_transform
from datasets.table import InMemoryTable

from .utils import (
    require_regex,
    require_spacy,
    require_spacy_model,
    require_tiktoken,
    require_torch,
    require_transformers,
)


class 		lowerCAmelCase_							:





     def __init__(  self       ,   _UpperCAmelCase     )		->							Dict:
        lowerCamelCase											=foo





     def __call__(  self     )		->							int:
        return self.foo




class 		lowerCAmelCase_							(     datasets.Dataset   ):





     @fingerprint_transform(inplace=_UpperCAmelCase     )
     def 	lowerCamelCase       (  self       ,   _UpperCAmelCase       ,   *_UpperCAmelCase       ,   **_UpperCAmelCase     )		->							Union[str, Any]:
        return DatasetChild(self.data       ,   fingerprint=_UpperCAmelCase     )





     @fingerprint_transform(inplace=_UpperCAmelCase     )
     def 	lowerCamelCase       (  self       ,   _UpperCAmelCase       ,   *_UpperCAmelCase       ,   **_UpperCAmelCase     )		->							Optional[Any]:
        return DatasetChild(self.data       ,   fingerprint=_UpperCAmelCase     )




class 		lowerCAmelCase_							:





     def __init__(  self       ,   _UpperCAmelCase     )		->							Union[str, Any]:
        lowerCamelCase											=callable





     def __call__(  self       ,   *_UpperCAmelCase       ,   **_UpperCAmelCase     )		->							Any:
        if self.callable is not None:
           return self.callable(*_UpperCAmelCase       ,   **_UpperCAmelCase     )





     def __getstate__(  self     )		->							Optional[Any]:
        raise pickle.PicklingError()




class 		lowerCAmelCase_							(     UpperCamelCase   ):





     @require_transformers
     @pytest.mark.integration
     def 	lowerCamelCase       (  self     )		->							int:
        from transformers import AutoTokenizer

        def encode(_UpperCAmelCase     ):
           return tokenizer(_UpperCAmelCase     )

        # TODO: add hash consistency tests across sessions
        lowerCamelCase											=AutoTokenizer.from_pretrained("""bert-base-uncased"""     )
        lowerCamelCase											=mda(datasets.utils.py_utils.dumps(_UpperCAmelCase     )     ).hexdigest()
        lowerCamelCase											=mda(datasets.utils.py_utils.dumps(lambda _UpperCAmelCase     : tokenizer(_UpperCAmelCase     )     )     ).hexdigest()
        lowerCamelCase											=mda(datasets.utils.py_utils.dumps(_UpperCAmelCase     )     ).hexdigest()
        lowerCamelCase											=AutoTokenizer.from_pretrained("""bert-base-cased"""     )
        lowerCamelCase											=mda(datasets.utils.py_utils.dumps(_UpperCAmelCase     )     ).hexdigest()
        lowerCamelCase											=mda(datasets.utils.py_utils.dumps(lambda _UpperCAmelCase     : tokenizer(_UpperCAmelCase     )     )     ).hexdigest()
        lowerCamelCase											=mda(datasets.utils.py_utils.dumps(_UpperCAmelCase     )     ).hexdigest()
        lowerCamelCase											=AutoTokenizer.from_pretrained("""bert-base-uncased"""     )
        lowerCamelCase											=mda(datasets.utils.py_utils.dumps(_UpperCAmelCase     )     ).hexdigest()
        lowerCamelCase											=mda(datasets.utils.py_utils.dumps(lambda _UpperCAmelCase     : tokenizer(_UpperCAmelCase     )     )     ).hexdigest()
        lowerCamelCase											=mda(datasets.utils.py_utils.dumps(_UpperCAmelCase     )     ).hexdigest()
        self.assertEqual(_UpperCAmelCase       ,   _UpperCAmelCase     )
        self.assertNotEqual(_UpperCAmelCase       ,   _UpperCAmelCase     )
        self.assertEqual(_UpperCAmelCase       ,   _UpperCAmelCase     )
        self.assertNotEqual(_UpperCAmelCase       ,   _UpperCAmelCase     )
        self.assertEqual(_UpperCAmelCase       ,   _UpperCAmelCase     )
        self.assertNotEqual(_UpperCAmelCase       ,   _UpperCAmelCase     )





     @require_transformers
     @pytest.mark.integration
     def 	lowerCamelCase       (  self     )		->							Optional[Any]:
        from transformers import AutoTokenizer

        lowerCamelCase											=AutoTokenizer.from_pretrained("""gpt2"""     )
        lowerCamelCase											=mda(datasets.utils.py_utils.dumps(_UpperCAmelCase     )     ).hexdigest()
        tokenizer("""Hello world !"""     )  # call once to change the tokenizer's cache
        lowerCamelCase											=mda(datasets.utils.py_utils.dumps(_UpperCAmelCase     )     ).hexdigest()
        self.assertEqual(_UpperCAmelCase       ,   _UpperCAmelCase     )





     @require_regex
     def 	lowerCamelCase       (  self     )		->							Dict:
        import regex

        lowerCamelCase											=regex.Regex("""foo"""     )
        lowerCamelCase											=mda(datasets.utils.py_utils.dumps(_UpperCAmelCase     )     ).hexdigest()
        lowerCamelCase											=regex.Regex("""bar"""     )
        lowerCamelCase											=mda(datasets.utils.py_utils.dumps(_UpperCAmelCase     )     ).hexdigest()
        lowerCamelCase											=regex.Regex("""foo"""     )
        lowerCamelCase											=mda(datasets.utils.py_utils.dumps(_UpperCAmelCase     )     ).hexdigest()
        self.assertEqual(_UpperCAmelCase       ,   _UpperCAmelCase     )
        self.assertNotEqual(_UpperCAmelCase       ,   _UpperCAmelCase     )




class 		lowerCAmelCase_							(     UpperCamelCase   ):





     def 	lowerCamelCase       (  self     )		->							Optional[Any]:
        def func():
           return foo

        lowerCamelCase											=[0]
        lowerCamelCase											=mda(datasets.utils.py_utils.dumps(_UpperCAmelCase     )     ).hexdigest()
        lowerCamelCase											=[1]
        lowerCamelCase											=mda(datasets.utils.py_utils.dumps(_UpperCAmelCase     )     ).hexdigest()
        lowerCamelCase											=[0]
        lowerCamelCase											=mda(datasets.utils.py_utils.dumps(_UpperCAmelCase     )     ).hexdigest()
        self.assertEqual(_UpperCAmelCase       ,   _UpperCAmelCase     )
        self.assertNotEqual(_UpperCAmelCase       ,   _UpperCAmelCase     )





     def 	lowerCamelCase       (  self     )		->							Union[str, Any]:
        def func():
           pass

        lowerCamelCase											=mda(datasets.utils.py_utils.dumps(_UpperCAmelCase     )     ).hexdigest()

        def func():
           pass

        lowerCamelCase											=mda(datasets.utils.py_utils.dumps(_UpperCAmelCase     )     ).hexdigest()
        self.assertEqual(_UpperCAmelCase       ,   _UpperCAmelCase     )





     def 	lowerCamelCase       (  self     )		->							Optional[int]:
        lowerCamelCase											=mda(datasets.utils.py_utils.dumps(Foo([0]     )     )     ).hexdigest()
        lowerCamelCase											=mda(datasets.utils.py_utils.dumps(Foo([1]     )     )     ).hexdigest()
        lowerCamelCase											=mda(datasets.utils.py_utils.dumps(Foo([0]     )     )     ).hexdigest()
        self.assertEqual(_UpperCAmelCase       ,   _UpperCAmelCase     )
        self.assertNotEqual(_UpperCAmelCase       ,   _UpperCAmelCase     )





     def 	lowerCamelCase       (  self     )		->							str:
        lowerCamelCase											=mda(datasets.utils.py_utils.dumps(Foo([0]     ).__call__     )     ).hexdigest()
        lowerCamelCase											=mda(datasets.utils.py_utils.dumps(Foo([1]     ).__call__     )     ).hexdigest()
        lowerCamelCase											=mda(datasets.utils.py_utils.dumps(Foo([0]     ).__call__     )     ).hexdigest()
        self.assertEqual(_UpperCAmelCase       ,   _UpperCAmelCase     )
        self.assertNotEqual(_UpperCAmelCase       ,   _UpperCAmelCase     )





     def 	lowerCamelCase       (  self     )		->							str:
        lowerCamelCase											=(
            """co_argcount""",
            """co_kwonlyargcount""",
            """co_nlocals""",
            """co_stacksize""",
            """co_flags""",
            """co_code""",
            """co_consts""",
            """co_names""",
            """co_varnames""",
            """co_filename""",
            """co_name""",
            """co_firstlineno""",
            """co_lnotab""",
            """co_freevars""",
            """co_cellvars""",
        )

        def _create_code_pyaa(*_UpperCAmelCase     ):
           if hasattr(args[-3]       ,   """encode"""     ):
              lowerCamelCase											=list(_UpperCAmelCase     )
              lowerCamelCase											=args[-3].encode()  # co_lnotab
              lowerCamelCase											=args[-10].encode()  # co_code
           if hasattr(_UpperCAmelCase       ,   """co_posonlyargcount"""     ):
              if len(_UpperCAmelCase     ) == 16:
                 return CodeType(*_UpperCAmelCase     )
              elif len(_UpperCAmelCase     ) == 15:
                 return CodeType(args[0]       ,   0       ,   *args[1:]     )
              return CodeType(args[0]       ,   0       ,   0       ,   *args[1:]     )
           elif hasattr(_UpperCAmelCase       ,   """co_kwonlyargcount"""     ):
              if len(_UpperCAmelCase     ) == 16:
                 return CodeType(args[0]       ,   *args[2:]     )
              elif len(_UpperCAmelCase     ) == 15:
                 return CodeType(*_UpperCAmelCase     )
              return CodeType(args[0]       ,   0       ,   *args[1:]     )
           if len(_UpperCAmelCase     ) == 16:
              return CodeType(args[0]       ,   *args[3:]     )
           elif len(_UpperCAmelCase     ) == 15:
              return CodeType(args[0]       ,   *args[2:]     )
           return CodeType(*_UpperCAmelCase     )

        def create_ipython_func(_UpperCAmelCase       ,   _UpperCAmelCase     ):
           def func():
              return returned_obj

           lowerCamelCase											=func.__code__
           # Use _create_code from dill in order to make it work for different python versions
           if datasets.config.PY_VERSION < version.parse("""3.8"""     ):
              lowerCamelCase											=_create_code_pyaa(
                  *[getattr(_UpperCAmelCase       ,   _UpperCAmelCase     ) if k != """co_filename""" else co_filename for k in code_args_pyaa]     )
           else:
              lowerCamelCase											=code.replace(co_filename=_UpperCAmelCase     )
           return FunctionType(_UpperCAmelCase       ,   func.__globals__       ,   func.__name__       ,   func.__defaults__       ,   func.__closure__     )

        lowerCamelCase							,					lowerCamelCase											="""<ipython-input-2-e0383a102aae>""", [0]
        lowerCamelCase											=mda(datasets.utils.py_utils.dumps(create_ipython_func(_UpperCAmelCase       ,   _UpperCAmelCase     )     )     ).hexdigest()
        lowerCamelCase							,					lowerCamelCase											="""<ipython-input-2-e0383a102aae>""", [1]
        lowerCamelCase											=mda(datasets.utils.py_utils.dumps(create_ipython_func(_UpperCAmelCase       ,   _UpperCAmelCase     )     )     ).hexdigest()
        lowerCamelCase							,					lowerCamelCase											="""<ipython-input-5-713f6613acf3>""", [0]
        lowerCamelCase											=mda(datasets.utils.py_utils.dumps(create_ipython_func(_UpperCAmelCase       ,   _UpperCAmelCase     )     )     ).hexdigest()
        self.assertEqual(_UpperCAmelCase       ,   _UpperCAmelCase     )
        self.assertNotEqual(_UpperCAmelCase       ,   _UpperCAmelCase     )

        lowerCamelCase							,					lowerCamelCase											=os.path.join(gettempdir()       ,   """ipykernel_12345"""       ,   """321456789.py"""     ), [0]
        lowerCamelCase											=mda(datasets.utils.py_utils.dumps(create_ipython_func(_UpperCAmelCase       ,   _UpperCAmelCase     )     )     ).hexdigest()
        lowerCamelCase							,					lowerCamelCase											=os.path.join(gettempdir()       ,   """ipykernel_12345"""       ,   """321456789.py"""     ), [1]
        lowerCamelCase											=mda(datasets.utils.py_utils.dumps(create_ipython_func(_UpperCAmelCase       ,   _UpperCAmelCase     )     )     ).hexdigest()
        lowerCamelCase							,					lowerCamelCase											=os.path.join(gettempdir()       ,   """ipykernel_12345"""       ,   """654123987.py"""     ), [0]
        lowerCamelCase											=mda(datasets.utils.py_utils.dumps(create_ipython_func(_UpperCAmelCase       ,   _UpperCAmelCase     )     )     ).hexdigest()
        self.assertEqual(_UpperCAmelCase       ,   _UpperCAmelCase     )
        self.assertNotEqual(_UpperCAmelCase       ,   _UpperCAmelCase     )





     def 	lowerCamelCase       (  self     )		->							Any:
        lowerCamelCase							,					lowerCamelCase											=[0], [1]

        def func():
           return foo, bar

        lowerCamelCase											="""__main__"""

        def globalvars_mocka_side_effect(_UpperCAmelCase       ,   *_UpperCAmelCase       ,   **_UpperCAmelCase     ):
           return {"foo": foo, "bar": bar}

        def globalvars_mocka_side_effect(_UpperCAmelCase       ,   *_UpperCAmelCase       ,   **_UpperCAmelCase     ):
           return {"bar": bar, "foo": foo}

        with patch("""dill.detect.globalvars"""       ,   side_effect=_UpperCAmelCase     ) as globalvars_mocka:
           lowerCamelCase											=mda(datasets.utils.py_utils.dumps(_UpperCAmelCase     )     ).hexdigest()
           self.assertGreater(globalvars_mocka.call_count       ,   0     )
        with patch("""dill.detect.globalvars"""       ,   side_effect=_UpperCAmelCase     ) as globalvars_mocka:
           lowerCamelCase											=mda(datasets.utils.py_utils.dumps(_UpperCAmelCase     )     ).hexdigest()
           self.assertGreater(globalvars_mocka.call_count       ,   0     )
        self.assertEqual(_UpperCAmelCase       ,   _UpperCAmelCase     )




class 		lowerCAmelCase_							(     UpperCamelCase   ):





     def 	lowerCamelCase       (  self     )		->							List[str]:
        lowerCamelCase											=Hasher.hash("""hello"""     )
        lowerCamelCase											=Hasher.hash("""hello"""     )
        lowerCamelCase											=Hasher.hash("""there"""     )
        self.assertEqual(_UpperCAmelCase       ,   _UpperCAmelCase     )
        self.assertNotEqual(_UpperCAmelCase       ,   _UpperCAmelCase     )





     def 	lowerCamelCase       (  self     )		->							int:
        lowerCamelCase											=Hasher.hash(Foo("""hello"""     )     )
        lowerCamelCase											=Hasher.hash(Foo("""hello"""     )     )
        lowerCamelCase											=Hasher.hash(Foo("""there"""     )     )
        self.assertEqual(_UpperCAmelCase       ,   _UpperCAmelCase     )
        self.assertNotEqual(_UpperCAmelCase       ,   _UpperCAmelCase     )





     def 	lowerCamelCase       (  self     )		->							Optional[int]:
        lowerCamelCase											=Hasher()
        for x in ["hello", Foo("""hello"""     )]:
           hasher.update(_UpperCAmelCase     )
        lowerCamelCase											=hasher.hexdigest()
        lowerCamelCase											=Hasher()
        for x in ["hello", Foo("""hello"""     )]:
           hasher.update(_UpperCAmelCase     )
        lowerCamelCase											=hasher.hexdigest()
        lowerCamelCase											=Hasher()
        for x in ["there", Foo("""there"""     )]:
           hasher.update(_UpperCAmelCase     )
        lowerCamelCase											=hasher.hexdigest()
        self.assertEqual(_UpperCAmelCase       ,   _UpperCAmelCase     )
        self.assertNotEqual(_UpperCAmelCase       ,   _UpperCAmelCase     )





     def 	lowerCamelCase       (  self     )		->							Optional[int]:
        with self.assertRaises(pickle.PicklingError     ):
           Hasher.hash(UnpicklableCallable(Foo("""hello"""     )     )     )





     def 	lowerCamelCase       (  self     )		->							int:
        lowerCamelCase											="""abc"""
        lowerCamelCase											=[string, string]  # two strings have the same ids
        lowerCamelCase											=[string, string]
        lowerCamelCase											=json.loads(F'''["{string}", "{string}"]'''     )  # two strings have different ids
        self.assertIs(obja[0]       ,   _UpperCAmelCase     )
        self.assertIs(obja[0]       ,   obja[1]     )
        self.assertIs(obja[0]       ,   _UpperCAmelCase     )
        self.assertIs(obja[0]       ,   obja[1]     )
        self.assertIsNot(obja[0]       ,   _UpperCAmelCase     )
        self.assertIsNot(obja[0]       ,   obja[1]     )
        lowerCamelCase											=Hasher.hash(_UpperCAmelCase     )
        lowerCamelCase											=Hasher.hash(_UpperCAmelCase     )
        lowerCamelCase											=Hasher.hash(_UpperCAmelCase     )
        self.assertEqual(_UpperCAmelCase       ,   _UpperCAmelCase     )
        self.assertEqual(_UpperCAmelCase       ,   _UpperCAmelCase     )





     @require_tiktoken
     def 	lowerCamelCase       (  self     )		->							Any:
        import tiktoken

        lowerCamelCase											=tiktoken.get_encoding("""gpt2"""     )
        lowerCamelCase											=mda(datasets.utils.py_utils.dumps(_UpperCAmelCase     )     ).hexdigest()
        lowerCamelCase											=tiktoken.get_encoding("""r50k_base"""     )
        lowerCamelCase											=mda(datasets.utils.py_utils.dumps(_UpperCAmelCase     )     ).hexdigest()
        lowerCamelCase											=tiktoken.get_encoding("""gpt2"""     )
        lowerCamelCase											=mda(datasets.utils.py_utils.dumps(_UpperCAmelCase     )     ).hexdigest()
        self.assertEqual(_UpperCAmelCase       ,   _UpperCAmelCase     )
        self.assertNotEqual(_UpperCAmelCase       ,   _UpperCAmelCase     )





     @require_torch
     def 	lowerCamelCase       (  self     )		->							str:
        import torch

        lowerCamelCase											=torch.tensor([1.0]     )
        lowerCamelCase											=mda(datasets.utils.py_utils.dumps(_UpperCAmelCase     )     ).hexdigest()
        lowerCamelCase											=torch.tensor([2.0]     )
        lowerCamelCase											=mda(datasets.utils.py_utils.dumps(_UpperCAmelCase     )     ).hexdigest()
        lowerCamelCase											=torch.tensor([1.0]     )
        lowerCamelCase											=mda(datasets.utils.py_utils.dumps(_UpperCAmelCase     )     ).hexdigest()
        self.assertEqual(_UpperCAmelCase       ,   _UpperCAmelCase     )
        self.assertNotEqual(_UpperCAmelCase       ,   _UpperCAmelCase     )





     @require_spacy
     @require_spacy_model("""en_core_web_sm"""     )
     @require_spacy_model("""fr_core_news_sm"""     )
     @pytest.mark.integration
     def 	lowerCamelCase       (  self     )		->							List[Any]:
        import spacy

        lowerCamelCase											=spacy.load("""en_core_web_sm"""     )
        lowerCamelCase											=mda(datasets.utils.py_utils.dumps(_UpperCAmelCase     )     ).hexdigest()
        lowerCamelCase											=spacy.load("""fr_core_news_sm"""     )
        lowerCamelCase											=mda(datasets.utils.py_utils.dumps(_UpperCAmelCase     )     ).hexdigest()
        lowerCamelCase											=spacy.load("""en_core_web_sm"""     )
        lowerCamelCase											=mda(datasets.utils.py_utils.dumps(_UpperCAmelCase     )     ).hexdigest()
        self.assertEqual(_UpperCAmelCase       ,   _UpperCAmelCase     )
        self.assertNotEqual(_UpperCAmelCase       ,   _UpperCAmelCase     )






@pytest.mark.integration
def    UpperCAmelCase__	(						lowerCamelCase  : Path						):
   lowerCamelCase											=tmp_path / """dir1"""
   lowerCamelCase											=tmp_path / """dir2"""
   dira.mkdir()
   dira.mkdir()
   lowerCamelCase											="""script.py"""
   lowerCamelCase											=dedent(
       """
    from datasets.fingerprint import Hasher
    def foo():
        pass
    print(Hasher.hash(foo))
    """						)
   lowerCamelCase											=dira / script_filename
   lowerCamelCase											=dira / script_filename
   with script_patha.open("""w"""						) as f:
      f.write(lowerCamelCase						)
   with script_patha.open("""w"""						) as f:
      f.write(lowerCamelCase						)
   lowerCamelCase											=subprocess.check_output(["""python""", str(lowerCamelCase						)]						)
   lowerCamelCase											=subprocess.check_output(["""python""", str(lowerCamelCase						)]						)
   assert fingerprinta == fingerprinta






def    UpperCAmelCase__	(						):
   lowerCamelCase											={"""a""": [0, 1, 2]}
   lowerCamelCase											=DatasetChild(InMemoryTable.from_pydict(lowerCamelCase						)						)
   lowerCamelCase											=dataset.funca()._fingerprint
   assert expected_fingerprint == dataset.funca()._fingerprint
   assert expected_fingerprint != dataset.funca()._fingerprint

   with Pool(2						) as p:
      assert expected_fingerprint == p.apply_async(dataset.funca						).get()._fingerprint
      assert expected_fingerprint != p.apply_async(dataset.funca						).get()._fingerprint






def    UpperCAmelCase__	(						):
   lowerCamelCase											={"""a""": [0, 1, 2]}


   class 		lowerCAmelCase_							(     datasets.Dataset   ):





        @fingerprint_transform(inplace=_UpperCAmelCase     )
        def 	lowerCamelCase       (  self       ,   _UpperCAmelCase     )		->							int:
           return DummyDatasetChild(self.data       ,   fingerprint=_UpperCAmelCase     )




   lowerCamelCase											=DummyDatasetChild(InMemoryTable.from_pydict(lowerCamelCase						)						).func()


   class 		lowerCAmelCase_							(     datasets.Dataset   ):





        @fingerprint_transform(inplace=_UpperCAmelCase       ,   version="""1.0.0"""     )
        def 	lowerCamelCase       (  self       ,   _UpperCAmelCase     )		->							List[Any]:
           return DummyDatasetChild(self.data       ,   fingerprint=_UpperCAmelCase     )




   lowerCamelCase											=DummyDatasetChild(InMemoryTable.from_pydict(lowerCamelCase						)						).func()


   class 		lowerCAmelCase_							(     datasets.Dataset   ):





        @fingerprint_transform(inplace=_UpperCAmelCase       ,   version="""2.0.0"""     )
        def 	lowerCamelCase       (  self       ,   _UpperCAmelCase     )		->							Any:
           return DummyDatasetChild(self.data       ,   fingerprint=_UpperCAmelCase     )




   lowerCamelCase											=DummyDatasetChild(InMemoryTable.from_pydict(lowerCamelCase						)						).func()

   assert len({fingeprint_no_version, fingeprint_a, fingeprint_a}						) == 3







def    UpperCAmelCase__	(						):
   # AttributeError: module 'dill._dill' has no attribute 'stack'
   lowerCamelCase											=Hasher()
   hasher.update(lambda lowerCamelCase						: x						)







import math
from decimal import Decimal, getcontext






def    UpperCAmelCase__	(						lowerCamelCase  : int = 4_00_00_00						):

   try:
      lowerCamelCase											=int(lowerCamelCase						)
   except (TypeError, ValueError):
      raise TypeError("""Parameter n must be int or castable to int."""						)
   if n <= 0:
      raise ValueError("""Parameter n must be greater than or equal to one."""						)
   lowerCamelCase											=1_00
   lowerCamelCase											=(Decimal(5						) ** Decimal(0.5						) + 1) / Decimal(2						)

   lowerCamelCase											=(math.floor(math.log(n * (phi + 2) ,lowerCamelCase						) - 1						) // 3) * 3 + 2
   lowerCamelCase											=Decimal(round(phi ** Decimal(index + 1						)						)						) / (phi + 2)
   lowerCamelCase											=num // 2
   return int(lowerCamelCase						)


if __name__ == "__main__":
   print(f"{solution() = }")