<commit_before># Copyright (c) 2013-2015 mogemimi.
# Distributed under the MIT license. See LICENSE.md file for details.

import sys
import os
import platform
import argparse
import subprocess
import uuid
import shutil


from download_dependencies import DownloadDependencies


def GenerateXcodeProjects(gypfile, option=None):
    gypCommand = [
        'python tools/gyp/gyp_main.py',
        gypfile,
        '--depth=.',
    ]
    msvsOptions = [
        '-f msvs -G msvs_version=2015',
        '--generator-output=build.msvs',
        '-Dcomponent=static_library',
    ]
    xcodeOptions = [
        '-f xcode',
        '--generator-output=build.xcodefiles',
    ]

    if platform.system() == 'Windows':
        gypCommand = gypCommand + msvsOptions
    elif platform.system() == 'Darwin':
        gypCommand = gypCommand + xcodeOptions

    if option:
        gypCommand = gypCommand + [option]<commit_msg>Fix generate_projects.py script<commit_after># Copyright (c) 2013-2015 mogemimi.
# Distributed under the MIT license. See LICENSE.md file for details.

import sys
import os
import platform
import argparse
import subprocess
import uuid
import shutil


from download_dependencies import DownloadDependencies


def GenerateXcodeProjects(gypfile, option=None):
    gypCommand = [
        'python tools/gyp/gyp_main.py',
        gypfile,
        '--depth=.',
    ]
    msvsOptions = [
        '-f msvs -G msvs_version=2015',
        '--generator-output=build.msvs',
        '-Dcomponent=static_library',
    ]
    xcodeOptions = [
        '-f xcode',
        '--generator-output=build.xcodefiles',
        '-Dcomponent=shared_library',
    ]

    if platform.system() == 'Windows':
        gypCommand = gypCommand + msvsOptions
    elif platform.system() == 'Darwin':
        gypCommand = gypCommand + xcodeOptions

    if option:
        gypCommand = gypCommand + [option]
{'fraction_non_alphanumeric': 0.10531914893617021, 'fraction_numerical': 0.01276595744680851, 'mean_word_length': 2.7771084337349397, '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': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1653223', 'n_tokens_mistral': 604, 'n_tokens_neox': 563, 'n_words': 140}