<commit_before>declare namespace WdioInterceptorService {
  type HTTPMethod =
    | 'GET'
    | 'HEAD'
    | 'POST'
    | 'PUT'
    | 'DELETE'
    | 'CONNECT'
    | 'OPTIONS'
    | 'TRACE'
    | 'PATCH'

  interface ExpectedRequest {
    method: HTTPMethod
    url: string
    statusCode: number
  }

  interface InterceptedRequest {
    url: string
    method: HTTPMethod
    body: string | object
    headers: object
    response: {
      headers: object
      body: string | object
      statusCode: number
    }
  }
}

declare module WebdriverIO {
  interface Browser {
    setupInterceptor: () => void
    expectRequest: (
      method: WdioInterceptorService.HTTPMethod,
      url: string | RegExp,
      statusCode: number,
    ) => BrowserObject
    assertRequests: () => BrowserObject
    assertExpectedRequestsOnly: (inOrder?: boolean) => BrowserObject
    resetExpectations: () => BrowserObject
    getExpectations: () => WdioInterceptorService.ExpectedRequest[]
    getRequest: (index: number) => WdioInterceptorService.InterceptedRequest
    getRequests: () => WdioInterceptorService.InterceptedRequest[]
  }
}

declare module 'wdio-intercept-service' {
  export = WdioInterceptorService
}
<commit_msg>WDIO functions return promises<commit_after>declare namespace WdioInterceptorService {
  type HTTPMethod =
    | 'GET'
    | 'HEAD'
    | 'POST'
    | 'PUT'
    | 'DELETE'
    | 'CONNECT'
    | 'OPTIONS'
    | 'TRACE'
    | 'PATCH'

  interface ExpectedRequest {
    method: HTTPMethod
    url: string
    statusCode: number
  }

  interface InterceptedRequest {
    url: string
    method: HTTPMethod
    body: string | object
    headers: object
    response: {
      headers: object
      body: string | object
      statusCode: number
    }
  }
}

declare module WebdriverIO {
  interface Browser {
    setupInterceptor: () => Promise<void>
    expectRequest: (
      method: WdioInterceptorService.HTTPMethod,
      url: string | RegExp,
      statusCode: number,
    ) => Promise<BrowserObject>
    assertRequests: () => Promise<BrowserObject>
    assertExpectedRequestsOnly: (inOrder?: boolean) => Promise<BrowserObject>
    resetExpectations: () => Promise<BrowserObject>
    getExpectations: () => Promise<WdioInterceptorService.ExpectedRequest[]>
    getRequest: (index: number) => Promise<WdioInterceptorService.InterceptedRequest>
    getRequests: () => Promise<WdioInterceptorService.InterceptedRequest[]>
  }
}

declare module 'wdio-intercept-service' {
  export = WdioInterceptorService
}

{'fraction_non_alphanumeric': 0.10242159587137753, 'fraction_numerical': 0.0, 'mean_word_length': 3.3003412969283277, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 27, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2343861', 'n_tokens_mistral': 761, 'n_tokens_neox': 752, 'n_words': 159}