<commit_before># This source file is part of the Swift.org open source project
#
# Copyright (c) 2014 - 2022 Apple Inc. and the Swift project authors
# Licensed under Apache License v2.0 with Runtime Library Exception
#
# See http://swift.org/LICENSE.txt for license information
# See http://swift.org/CONTRIBUTORS.txt for Swift project authors

add_library(SwiftParserDiagnostics STATIC
  DiagnosticExtensions.swift
  MissingNodesError.swift
  ParserDiagnosticMessages.swift
  ParseDiagnosticsGenerator.swift
  PresenceUtils.swift
  SyntaxExtensions.swift
  Utils.swift)

target_link_libraries(SwiftParserDiagnostics PUBLIC
  SwiftBasicFormat
  SwiftSyntax
  SwiftDiagnostics)

set_property(GLOBAL APPEND PROPERTY SWIFTSYNTAX_EXPORTS SwiftParserDiagnostics)

# NOTE: workaround for CMake not setting up include flags yet
set_target_properties(SwiftParserDiagnostics PROPERTIES
  INTERFACE_INCLUDE_DIRECTORIES
  "${CMAKE_Swift_MODULE_DIRECTORY} ${CMAKE_CURRENT_SOURCE_DIR}")

install(TARGETS SwiftParserDiagnostics
  EXPORT SwiftSyntaxTargets
  ARCHIVE DESTINATION lib
  LIBRARY DESTINATION lib
  RUNTIME DESTINATION bin)<commit_msg>Add SwiftParser CMake dependency<commit_after># This source file is part of the Swift.org open source project
#
# Copyright (c) 2014 - 2022 Apple Inc. and the Swift project authors
# Licensed under Apache License v2.0 with Runtime Library Exception
#
# See http://swift.org/LICENSE.txt for license information
# See http://swift.org/CONTRIBUTORS.txt for Swift project authors

add_library(SwiftParserDiagnostics STATIC
  DiagnosticExtensions.swift
  MissingNodesError.swift
  ParserDiagnosticMessages.swift
  ParseDiagnosticsGenerator.swift
  PresenceUtils.swift
  SyntaxExtensions.swift
  Utils.swift)

target_link_libraries(SwiftParserDiagnostics PUBLIC
  SwiftBasicFormat
  SwiftDiagnostics
  SwiftParser
  SwiftSyntax)

set_property(GLOBAL APPEND PROPERTY SWIFTSYNTAX_EXPORTS SwiftParserDiagnostics)

# NOTE: workaround for CMake not setting up include flags yet
set_target_properties(SwiftParserDiagnostics PROPERTIES
  INTERFACE_INCLUDE_DIRECTORIES
  "${CMAKE_Swift_MODULE_DIRECTORY} ${CMAKE_CURRENT_SOURCE_DIR}")

install(TARGETS SwiftParserDiagnostics
  EXPORT SwiftSyntaxTargets
  ARCHIVE DESTINATION lib
  LIBRARY DESTINATION lib
  RUNTIME DESTINATION bin)
{'fraction_non_alphanumeric': 0.04784688995215311, 'fraction_numerical': 0.008699434536755112, 'mean_word_length': 6.255520504731861, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6192669', 'n_tokens_mistral': 720, 'n_tokens_neox': 642, 'n_words': 183}