<commit_before>platform :ios do
  desc 'Runs all the tests'
  lane :test do
    scan(scheme: ENV['GYM_SCHEME'],
         project: ENV['GYM_PROJECT'])
  end

  desc 'Take screenshots'
  lane :screenshot do
    snapshot(devices: ['iPhone 7 Plus', 'iPhone 6', 'iPhone 5s'],
             languages: ['en-US'],
             scheme: ENV['GYM_SCHEME'],
             project: ENV['GYM_PROJECT'])
  end

  desc 'Provisions the profiles; bumps the build number; builds the app'
  lane :build do
    gym(include_bitcode: true,
        include_symbols: true)
  end

  desc 'Submit a new Beta Build to Testflight'
  lane :beta do
    match(type: 'appstore', readonly: true)
    increment_build_number(build_number: latest_testflight_build_number + 1,
                           xcodeproj: ENV['GYM_PROJECT'])

    build

    testflight
  end

  desc 'Upload dYSM symbols to Bugsnag from Apple'
  lane :refresh_dsyms do
    download_dsyms
    upload_symbols_to_bugsnag
    clean_build_artifacts
  end

  desc 'Run iOS builds or tests, as appropriate'
  lane :'ci-run' do
    # set up things so they can run
    authorize_ci_for_keys
    ci_keychains

    # set the app version
    set_version

    # set where this build came from
    set_package_data(data: {
      allaboutolaf: {
        source: 'beta',
      },
    })

    # and run
    should_deploy = ENV['run_deploy'] == '1'
    if should_deploy
      auto_beta
      codepush
    else
      build
    end
  end

  lane :codepush do
    codepush_cli(app: 'AllAboutOlaf-iOS')
  end

  desc 'Include the build number in the version string'
  lane :set_version do |options|
    version = options[:version] || current_bundle_version
    build = options[:build_number] || current_build_number
    increment_version_number(version_number: "#{version}",
                             xcodeproj: ENV['GYM_PROJECT'])
    increment_build_number(build_number: build,
                           xcodeproj: ENV['GYM_PROJECT'])
    set_package_data(data: { version: "#{version}+#{build}" })
  end

  desc 'Do CI-system keychain setup'
  private_lane :ci_keychains do
    keychain = ENV['MATCH_KEYCHAIN_NAME']
    password = ENV['MATCH_KEYCHAIN_PASSWORD']
<commit_msg>remove an extra string-coersion from ios:set_version<commit_after>platform :ios do
  desc 'Runs all the tests'
  lane :test do
    scan(scheme: ENV['GYM_SCHEME'],
         project: ENV['GYM_PROJECT'])
  end

  desc 'Take screenshots'
  lane :screenshot do
    snapshot(devices: ['iPhone 7 Plus', 'iPhone 6', 'iPhone 5s'],
             languages: ['en-US'],
             scheme: ENV['GYM_SCHEME'],
             project: ENV['GYM_PROJECT'])
  end

  desc 'Provisions the profiles; bumps the build number; builds the app'
  lane :build do
    gym(include_bitcode: true,
        include_symbols: true)
  end

  desc 'Submit a new Beta Build to Testflight'
  lane :beta do
    match(type: 'appstore', readonly: true)
    increment_build_number(build_number: latest_testflight_build_number + 1,
                           xcodeproj: ENV['GYM_PROJECT'])

    build

    testflight
  end

  desc 'Upload dYSM symbols to Bugsnag from Apple'
  lane :refresh_dsyms do
    download_dsyms
    upload_symbols_to_bugsnag
    clean_build_artifacts
  end

  desc 'Run iOS builds or tests, as appropriate'
  lane :'ci-run' do
    # set up things so they can run
    authorize_ci_for_keys
    ci_keychains

    # set the app version
    set_version

    # set where this build came from
    set_package_data(data: {
      allaboutolaf: {
        source: 'beta',
      },
    })

    # and run
    should_deploy = ENV['run_deploy'] == '1'
    if should_deploy
      auto_beta
      codepush
    else
      build
    end
  end

  lane :codepush do
    codepush_cli(app: 'AllAboutOlaf-iOS')
  end

  desc 'Include the build number in the version string'
  lane :set_version do |options|
    version = options[:version] || current_bundle_version
    build = options[:build_number] || current_build_number
    increment_version_number(version_number: version,
                             xcodeproj: ENV['GYM_PROJECT'])
    increment_build_number(build_number: build,
                           xcodeproj: ENV['GYM_PROJECT'])
    set_package_data(data: { version: "#{version}+#{build}" })
  end

  desc 'Do CI-system keychain setup'
  private_lane :ci_keychains do
    keychain = ENV['MATCH_KEYCHAIN_NAME']
    password = ENV['MATCH_KEYCHAIN_PASSWORD']

{'fraction_non_alphanumeric': 0.08838155515370705, 'fraction_numerical': 0.0022603978300180833, 'mean_word_length': 2.8048151332760103, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3275712', 'n_tokens_mistral': 1494, 'n_tokens_neox': 1431, 'n_words': 387}