<commit_before>{
  "/session/:sessionId/sauce/ondemand/log": {
    "POST": {
      "command": "getPageLogs",
      "description": "Get webpage specific log information based on the last page load.",
      "ref": "https://wiki.saucelabs.com/display/DOCS/Custom+Sauce+Labs+WebDriver+Extensions+for+Network+and+Log+Commands#CustomSauceLabsWebDriverExtensionsforNetworkandLogCommands-ExtendedDebuggingTools",
      "examples": [
        [
          "// Get Application Metrics Logs",
          "console.log(browser.getPageLogs('sauce:metrics'));",
          "/**",
          " * outputs:",
          " * {",
          " *   \"firstMeaningfulPaint\": 35036.03356,",
          " *   \"domContentLoaded\": 35036.122972,",
          " *   \"navigationStart\": 35035.833805,",
          " *   ...",
          " * }",
          " */"
        ],
        [
          "// Get Network Timing Logs",
          "console.log(browser.getPageLogs('sauce:timing'));",
          "/**",
          " * outputs:",
          " * {",
          " *   \"loadEventStart\": 622,",
          " *   \"loadEventEnd\": 622,",
          " *   \"domInteractive\": 359,",
          " *   ...",
          " * }",
          " */"
        ],
        [
          "// Get Network Logs",
          "console.log(browser.getPageLogs('sauce:network'));",
          "/**",
          " * outputs:",
          " * [{",
          " *   \"url\": \"https://app.saucelabs.com/dashboard\",",
          " *   \"statusCode\": 200,",
          " *   \"method\": \"GET\",",
          " *   \"requestHeaders\": {",
          " *     ...",
          " *   },",
          " *   \"responseHeaders\": {",
          " *     ...",
          " *   },",
          " *   \"timing\": {",
          " *     ...",
          " *   }",
          " * }, {,",
          " *   ...",
          " * }]",
          " */"
        ],
        [
          "// Get Performance Logs (coming soon)",
          "console.log(browser.getPageLogs('sauce:performance'));",
          "/**",
          " * outputs:",
          " * {",
          " *   \"speedIndex\": 1472.023,",
          " *   \"timeToFirstInteractive\": 1243.214,",
          " *   \"firstMeaningfulPaint\": 892.643,",
          " *   ...",
          " * }",
          " */"
        ]
      ],
      "parameters": [{
        "name": "type",
        "type": "string",
        "description": "log type (e.g. 'sauce:timing', 'sauce:metrics', 'sauce:network', 'sauce:performance')",
        "required": true
      }],
      "returns": {
        "type": "Object",
        "name": "log",
        "description": "log output of desired type (see example)"
      }
    }
  },
  "/session/:sessionId/sauce/ondemand/throttle/network": {
    "POST": {
      "command": "throttleNetwork",<commit_msg>remove sauce:metrics and sauce:timing from docs since they were… (#4777)<commit_after>{
  "/session/:sessionId/sauce/ondemand/log": {
    "POST": {
      "command": "getPageLogs",
      "description": "Get webpage specific log information based on the last page load.",
      "ref": "https://wiki.saucelabs.com/display/DOCS/Custom+Sauce+Labs+WebDriver+Extensions+for+Network+and+Log+Commands#CustomSauceLabsWebDriverExtensionsforNetworkandLogCommands-ExtendedDebuggingTools",
      "examples": [
        [
          "// Get Network Logs",
          "console.log(browser.getPageLogs('sauce:network'));",
          "/**",
          " * outputs:",
          " * [{",
          " *   \"url\": \"https://app.saucelabs.com/dashboard\",",
          " *   \"statusCode\": 200,",
          " *   \"method\": \"GET\",",
          " *   \"requestHeaders\": {",
          " *     ...",
          " *   },",
          " *   \"responseHeaders\": {",
          " *     ...",
          " *   },",
          " *   \"timing\": {",
          " *     ...",
          " *   }",
          " * }, {,",
          " *   ...",
          " * }]",
          " */"
        ],
        [
          "// Get Performance Logs (needs capturePerformance capability see: https://wiki.saucelabs.com/display/DOCS/Measure+Page+Load+Performance+Using+Test+Automation#MeasurePageLoadPerformanceUsingTestAutomation-EnableYourScript)",
          "console.log(browser.getPageLogs('sauce:performance'));",
          "/**",
          " * outputs:",
          " * {",
          " *   \"speedIndex\": 1472.023,",
          " *   \"timeToFirstInteractive\": 1243.214,",
          " *   \"firstMeaningfulPaint\": 892.643,",
          " *   ...",
          " * }",
          " */"
        ]
      ],
      "parameters": [{
        "name": "type",
        "type": "string",
        "description": "log type (e.g. sauce:network', 'sauce:performance')",
        "required": true
      }],
      "returns": {
        "type": "Object",
        "name": "log",
        "description": "log output of desired type (see example)"
      }
    }
  },
  "/session/:sessionId/sauce/ondemand/throttle/network": {
    "POST": {
      "command": "throttleNetwork",
{'fraction_non_alphanumeric': 0.2063331988705123, 'fraction_numerical': 0.01835417507059298, 'mean_word_length': 1.5641158221303, 'pattern_counts': {'":': 60, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 5, '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': '1208928', 'n_tokens_mistral': 1618, 'n_tokens_neox': 1551, 'n_words': 191}