"""simple docstring"""






from typing import List

import datasets
from datasets.tasks import AudioClassification

from ..folder_based_builder import folder_based_builder


_A   					=    datasets.utils.logging.get_logger(__name__)

class lowerCamelCase		(folder_based_builder.FolderBasedBuilderConfig      ):






					'''simple docstring'''


					a   	=		None
					a   	=		None



class lowerCamelCase		(folder_based_builder.FolderBasedBuilder      ):






					'''simple docstring'''


					a   	=		datasets.Audio()
					a   	=		"audio"
					a   	=		AudioFolderConfig
					a   	=		4_2  # definition at the bottom of the script
					a   	=		AudioClassification(audio_column="audio"    ,    label_column="label"      )



_A   					=    [
    '.aiff',
    '.au',
    '.avr',
    '.caf',
    '.flac',
    '.htk',
    '.svx',
    '.mat4',
    '.mat5',
    '.mpc2k',
    '.ogg',
    '.paf',
    '.pvf',
    '.raw',
    '.rf64',
    '.sd2',
    '.sds',
    '.ircam',
    '.voc',
    '.w64',
    '.wav',
    '.nist',
    '.wavex',
    '.wve',
    '.xi',
    '.mp3',
    '.opus',
]
_A   					=    AUDIO_EXTENSIONS





"""simple docstring"""






import math




def 						SCREAMING_SNAKE_CASE					(  __UpperCAmelCase  ,					__UpperCAmelCase       )							->   float:

				if initial_intensity < 0:
								raise ValueError("The value of intensity cannot be negative"       )
								# handling of negative values of initial intensity
				if angle < 0 or angle > 360:
								raise ValueError("In Malus Law, the angle is in the range 0-360 degrees"       )
								# handling of values out of allowed range
				return initial_intensity * (math.cos(math.radians(__UpperCAmelCase       )       ) ** 2)


if __name__ == "__main__":
						import doctest

						doctest.testmod(name='malus_law')




