<commit_before>// RUN: %target-run-simple-swift | %FileCheck %s

// REQUIRES: executable_test
// REQUIRES: objc_interop

import CoreFoundation
// Can't import StdlibUnittest; that brings in Foundation.

extension CFString {
  static func from(_ contents: String) -> CFString {
    return CFStringCreateWithCString(nil, contents, /*ascii*/0)
  }

  static func mutablyFrom(_ contents: String) -> CFMutableString {
    return CFStringCreateMutableCopy(nil, /*maxLength*/0, CFString.from(contents))
  }
}

do {
  print("Testing Array<CFString>") // CHECK-LABEL: Testing Array<CFString>
  var s = [CFString]()
  // Use long strings to avoid the tagged pointer optimization.<commit_msg>[Test] Disabled Interpreter/SDK/cf_without_foundation.swift on watchos.<commit_after>// RUN: %target-run-simple-swift | %FileCheck %s

// REQUIRES: executable_test
// REQUIRES: objc_interop
// UNSUPPORTED: OS=watchos && CPU=arm64_32

import CoreFoundation
// Can't import StdlibUnittest; that brings in Foundation.

extension CFString {
  static func from(_ contents: String) -> CFString {
    return CFStringCreateWithCString(nil, contents, /*ascii*/0)
  }

  static func mutablyFrom(_ contents: String) -> CFMutableString {
    return CFStringCreateMutableCopy(nil, /*maxLength*/0, CFString.from(contents))
  }
}

do {
  print("Testing Array<CFString>") // CHECK-LABEL: Testing Array<CFString>
  var s = [CFString]()
  // Use long strings to avoid the tagged pointer optimization.
{'fraction_non_alphanumeric': 0.11825017088174983, 'fraction_numerical': 0.005468215994531784, 'mean_word_length': 4.503759398496241, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 11, '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': '4885246', 'n_tokens_mistral': 473, 'n_tokens_neox': 452, 'n_words': 122}