<commit_before>//
//  CopyFramework.swift
//  Carthage
//
//  Created by <NAME> on 10/12/14.
//  Copyright (c) 2014 Carthage. All rights reserved.
//

import CarthageKit
import Commandant
import Foundation
import LlamaKit
import ReactiveCocoa


public struct CopyFrameworksCommand: CommandType {
	public let verb = "copy-frameworks"
	public let function = "Copies the frameworks, striping symbols as necesssary."

	public func run(mode: CommandMode) -> Result<()> {
		let files = getEnvironmentVariable("SCRIPT_INPUT_FILE_COUNT")
			.map { $0.toInt()! }
			.flatMap { count -> Result<[String]> in
				var files = [] as [String]

				for i in 0..<count {
					let file = getEnvironmentVariable("SCRIPT_INPUT_FILE_\(i)")

					if let file = file.value() {
						files.append(file)
					} else {
						return failure(file.error()!)
					}<commit_msg>Update copy-frameworks description<commit_after>//
//  CopyFramework.swift
//  Carthage
//
//  Created by <NAME> on 10/12/14.
//  Copyright (c) 2014 Carthage. All rights reserved.
//

import CarthageKit
import Commandant
import Foundation
import LlamaKit
import ReactiveCocoa


public struct CopyFrameworksCommand: CommandType {
	public let verb = "copy-frameworks"
	public let function = "In a Run Script build phase, copies each framework specified by an SCRIPT_INPUT_FILE environment variable into the built app bundle."

	public func run(mode: CommandMode) -> Result<()> {
		let files = getEnvironmentVariable("SCRIPT_INPUT_FILE_COUNT")
			.map { $0.toInt()! }
			.flatMap { count -> Result<[String]> in
				var files = [] as [String]

				for i in 0..<count {
					let file = getEnvironmentVariable("SCRIPT_INPUT_FILE_\(i)")

					if let file = file.value() {
						files.append(file)
					} else {
						return failure(file.error()!)
					}
{'fraction_non_alphanumeric': 0.1154489682097044, 'fraction_numerical': 0.013385387618516454, 'mean_word_length': 3.4296296296296296, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 13, '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': '749700', 'n_tokens_mistral': 665, 'n_tokens_neox': 550, 'n_words': 167}