




def 		a_							( __lowerCAmelCase   , __lowerCAmelCase				):
  lowerCAmelCase__										=      len(__snake_case				)
  lowerCAmelCase__										=      []
  for i in range(len(__snake_case				) - pat_len + 1				):
    lowerCAmelCase__										=      True
    for j in range(__snake_case				):
      if s[i + j] != pattern[j]:
        lowerCAmelCase__										=      False
        break
    if match_found:
      position.append(__snake_case				)
  return position


if __name__ == "__main__":
      assert naive_pattern_search("""ABCDEFG""", """DE""") == [3]
      print(naive_pattern_search("""ABAAABCDBBABCDDEBCABC""", """ABC"""))


'''simple docstring'''






import pytest
import requests

from datasets.utils.file_utils import http_head

from .utils import OfflineSimulationMode, RequestWouldHangIndefinitelyError, offline





@pytest.mark.integration
def  _SCREAMING_SNAKE_CASE		(      ):
     with offline(OfflineSimulationMode.CONNECTION_TIMES_OUT				):
          with pytest.raises(__snake_case				):
               requests.request('GET'   ,		'https://huggingface.co'				)
          with pytest.raises(requests.exceptions.ConnectTimeout				):
               requests.request('GET'   ,		'https://huggingface.co'   ,		timeout=1.0				)





@pytest.mark.integration
def  _SCREAMING_SNAKE_CASE		(      ):
     with offline(OfflineSimulationMode.CONNECTION_FAILS				):
          with pytest.raises(requests.exceptions.ConnectionError				):
               requests.request('GET'   ,		'https://huggingface.co'				)





def  _SCREAMING_SNAKE_CASE		(      ):
     with offline(OfflineSimulationMode.HF_DATASETS_OFFLINE_SET_TO_1				):
          with pytest.raises(__snake_case				):
               http_head('https://huggingface.co'				)



