<commit_before>#!/usr/bin/env python

import os
import subprocess
import sys


SOURCE_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))


def main():
  os.chdir(SOURCE_ROOT)

  update_external_binaries()
  update_gyp()


def update_external_binaries():
  uf = os.path.join('script', 'update-external-binaries.py')
  subprocess.check_call([sys.executable, uf])


def update_gyp():
  gyp = os.path.join('vendor', 'brightray', 'vendor', 'gyp', 'gyp_main.py')
  python = sys.executable
  arch = 'ia32'
  if sys.platform.startswith('linux') and sys.maxsize > 2**32 or sys.platform == 'darwin':
      arch = 'x64'
  if sys.platform in ['cygwin', 'win32']:
    python = os.path.join('vendor', 'python_26', 'python.exe')
  subprocess.call([python, gyp,
                   '-f', 'ninja', '--depth', '.', 'atom.gyp',
                   '-Icommon.gypi', '-Ivendor/brightray/brightray.gypi',
                   '-Dlinux_clang=0',  # Disable brightray's clang setting
                   '-Dtarget_arch={0}'.format(arch),
                   '-Dlibrary=static_library'])


if __name__ == '__main__':
  sys.exit(main())<commit_msg>fix indent<commit_after>#!/usr/bin/env python

import os
import subprocess
import sys


SOURCE_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))


def main():
  os.chdir(SOURCE_ROOT)

  update_external_binaries()
  update_gyp()


def update_external_binaries():
  uf = os.path.join('script', 'update-external-binaries.py')
  subprocess.check_call([sys.executable, uf])


def update_gyp():
  gyp = os.path.join('vendor', 'brightray', 'vendor', 'gyp', 'gyp_main.py')
  python = sys.executable
  arch = 'ia32'
  if sys.platform.startswith('linux') and sys.maxsize > 2**32 or sys.platform == 'darwin':
    arch = 'x64'
  if sys.platform in ['cygwin', 'win32']:
    python = os.path.join('vendor', 'python_26', 'python.exe')
  subprocess.call([python, gyp,
                   '-f', 'ninja', '--depth', '.', 'atom.gyp',
                   '-Icommon.gypi', '-Ivendor/brightray/brightray.gypi',
                   '-Dlinux_clang=0',  # Disable brightray's clang setting
                   '-Dtarget_arch={0}'.format(arch),
                   '-Dlibrary=static_library'])


if __name__ == '__main__':
  sys.exit(main())
{'fraction_non_alphanumeric': 0.17175741478530324, 'fraction_numerical': 0.011509517485613104, 'mean_word_length': 3.169741697416974, 'pattern_counts': {'":': 0, '<': 3, '<?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': '4692147', 'n_tokens_mistral': 840, 'n_tokens_neox': 785, 'n_words': 144}