<commit_before>import * as os from 'os';
import * as chalk from 'chalk';
import {
  Command,
  CommandLineInputs,
  CommandLineOptions,
  CommandMetadata,
  TaskChain,
  validators
} from '@ionic/cli-utils';
import {
  filterArgumentsForCordova,
  generateAppScriptsArguments
} from '../lib/utils/cordova';
import { resetConfigXmlContentSrc } from '../lib/utils/configXmlUtils';
import {
  arePluginsInstalled,
  getProjectPlatforms,
  installPlatform,
  installPlugins
} from '../lib/utils/setup';

/**
 * Metadata about the build command
 */
@CommandMetadata({
  name: 'build',
  description: 'Build (prepare + compile) an Ionic project for a given platform.',
  exampleCommands: ['ios'],
  inputs: [
    {
      name: 'platform',
      description: `the platform that you would like to build: ${chalk.bold('ios')}, ${chalk.bold('android')}`,
      validators: [validators.required],
      prompt: {
        message: `What platform would you like to build: ${chalk.bold('ios')}, ${chalk.bold('android')}`
      }
    }
  ],
  options: [
    {
      name: 'nohooks',
      description: 'Do not add default Ionic hooks for Cordova',
      type: Boolean
    }
  ]
})
export class BuildCommand extends Command {
  async run(inputs: CommandLineInputs, options: CommandLineOptions): Promise<void> {

    // If there is not input then set default to an array containing ios
    const runPlatform = inputs[0];

    if (runPlatform === 'ios' && os.platform() !== 'darwin') {
      this.env.log.error('You cannot build for iOS unless you are on Mac OSX.');
      return;
    }<commit_msg>chore(): moved colon to end of list for platforms available.<commit_after>import * as os from 'os';
import * as chalk from 'chalk';
import {
  Command,
  CommandLineInputs,
  CommandLineOptions,
  CommandMetadata,
  TaskChain,
  validators
} from '@ionic/cli-utils';
import {
  filterArgumentsForCordova,
  generateAppScriptsArguments
} from '../lib/utils/cordova';
import { resetConfigXmlContentSrc } from '../lib/utils/configXmlUtils';
import {
  arePluginsInstalled,
  getProjectPlatforms,
  installPlatform,
  installPlugins
} from '../lib/utils/setup';

/**
 * Metadata about the build command
 */
@CommandMetadata({
  name: 'build',
  description: 'Build (prepare + compile) an Ionic project for a given platform.',
  exampleCommands: ['ios'],
  inputs: [
    {
      name: 'platform',
      description: `the platform that you would like to build: ${chalk.bold('ios')}, ${chalk.bold('android')}`,
      validators: [validators.required],
      prompt: {
        message: `What platform would you like to build (${chalk.bold('ios')}, ${chalk.bold('android')}):`
      }
    }
  ],
  options: [
    {
      name: 'nohooks',
      description: 'Do not add default Ionic hooks for Cordova',
      type: Boolean
    }
  ]
})
export class BuildCommand extends Command {
  async run(inputs: CommandLineInputs, options: CommandLineOptions): Promise<void> {

    // If there is not input then set default to an array containing ios
    const runPlatform = inputs[0];

    if (runPlatform === 'ios' && os.platform() !== 'darwin') {
      this.env.log.error('You cannot build for iOS unless you are on Mac OSX.');
      return;
    }
{'fraction_non_alphanumeric': 0.13088189467123715, 'fraction_numerical': 0.0006232471174820816, 'mean_word_length': 3.5021037868162694, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1783682', 'n_tokens_mistral': 958, 'n_tokens_neox': 957, 'n_words': 293}