






"""simple docstring"""



A_    =							8.314462  # Unit - J mol-1 K-1




def      _lowerCAmelCase		(							UpperCAmelCase__       :					Optional[Any],						UpperCAmelCase__       :					str,						UpperCAmelCase__       :					Dict      )		->float:
						if moles < 0 or kelvin < 0 or volume < 0:
												raise ValueError("""Invalid inputs. Enter positive value."""      )
						return moles * kelvin * UNIVERSAL_GAS_CONSTANT / volume




def      _lowerCAmelCase		(							UpperCAmelCase__       :					Tuple,						UpperCAmelCase__       :					Union[str, Any],						UpperCAmelCase__       :					Optional[int]      )		->float:
						if moles < 0 or kelvin < 0 or pressure < 0:
												raise ValueError("""Invalid inputs. Enter positive value."""      )
						return moles * kelvin * UNIVERSAL_GAS_CONSTANT / pressure


if __name__ == "__main__":
						from doctest import testmod

						testmod()














"""simple docstring"""



from __future__ import annotations






class 							__SCREAMING_SNAKE_CASE						:


							def __init__(			self      :						Any			,    snake_case      :						str			,    snake_case      :						str							):
													'''simple docstring'''





													A__  ,  A__						:  List[str]		  =  text, pattern
													A__  ,  A__						:  List[str]		  =  len(snake_case							), len(snake_case							)


							def 						_UpperCamelCase       (			self      :						str			,    snake_case      :						str							):
													'''simple docstring'''





													for i in range(self.patLen - 1			,    -1			,    -1							):
																			if char == self.pattern[i]:
																									return i
													return -1


							def 						_UpperCamelCase       (			self      :						Any			,    snake_case      :						int							):
													'''simple docstring'''





													for i in range(self.patLen - 1			,    -1			,    -1							):
																			if self.pattern[i] != self.text[current_pos + i]:
																									return current_pos + i
													return -1


							def 						_UpperCamelCase       (			self      :						Union[str, Any]							):
													'''simple docstring'''





													A__						:  str		  =  []
													for i in range(self.textLen - self.patLen + 1							):
																			A__						:  List[Any]		  =  self.mismatch_in_text(snake_case							)
																			if mismatch_index == -1:
																									positions.append(snake_case							)
																			else:
																									A__						:  Dict		  =  self.match_in_pattern(self.text[mismatch_index]							)
																									A__						:  Union[str, Any]		  =  (
																									    mismatch_index - match_index
																									)  # shifting index lgtm [py/multiple-definition]
													return positions




A_    =							'''ABAABA'''
A_    =							'''AB'''
A_    =							BoyerMooreSearch(text, pattern)
A_    =							bms.bad_character_heuristic()

if len(positions) == 0:
						print('''No match found''')
else:
						print('''Pattern found in following positions: ''')
						print(positions)






