<commit_before>#!/usr/bin/python
# Copyright (c) 2011 The Native Client Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
#

#########################################################################
# EXPERIMENTAL
# this code is NOT active in the main NaCl yet!
# this is only for testing within an artificial CrOS
# CrOS hook for ARM/thumb2
#########################################################################

import os
import sys

if os.path.basename(os.getcwd()) != 'native_client':
  print "Error: Run this script from native_client/"
  sys.exit(1)

# Alias for convenience
J = os.path.join

NACL_ROOT = os.getcwd()
BASE_DIR = J(NACL_ROOT, 'toolchain', 'linux_arm-trusted')
ARM_CROSS_TARGET = 'armv7a-cros-linux-gnueabi'

# FIXME(jasonwkim): do we need this stuff at all?
CODE_SOURCERY_PREFIX = J(BASE_DIR, 'arm-2009q3', 'bin', ARM_CROSS_TARGET)
CODE_SOURCERY_PREFIX=""
CODE_SOURCERY_JAIL = J(BASE_DIR, 'arm-2009q3', ARM_CROSS_TARGET, 'libc')
LD_SCRIPT_TRUSTED = J(BASE_DIR, 'ld_script_arm_trusted')

# FIXME
# so do we need to explicitly use the shell scripts in this directory?
# "/usr/x86_64-pc-linux-gnu/armv7a-cros-linux-gnueabi/gcc-bin/4.4.3/"
DEFAULT_CROS_DIR=""
CROS_TOOLCHAIN="%s%s" % (DEFAULT_CROS_DIR, ARM_CROSS_TARGET)

BASE_CC = ("%s-%%s -Werror -O2 %%s "
           "-fdiagnostics-show-option "
           ) % (CROS_TOOLCHAIN)

# Shell exports
ARM_CC  = BASE_CC % ('gcc', '-std=gnu99 -pedantic')<commit_msg>yes<commit_after>#!/usr/bin/python
# Copyright (c) 2011 The Native Client Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
#

#########################################################################
# EXPERIMENTAL
# this code is NOT active in the main NaCl yet!
# this is only for testing within an artificial CrOS
# CrOS hook for ARM/thumb2
#########################################################################

import os
import sys

if os.path.basename(os.getcwd()) != 'native_client':
  print "Error: Run this script from native_client/"
  sys.exit(1)

# Alias for convenience
J = os.path.join

NACL_ROOT = os.getcwd()
BASE_DIR = J(NACL_ROOT, 'toolchain', 'linux_arm-trusted')
ARM_CROSS_TARGET = 'armv7a-cros-linux-gnueabi'

# FIXME(jasonwkim):
# do we need this stuff at all?
CODE_SOURCERY_PREFIX = J(BASE_DIR, 'arm-2009q3', 'bin', ARM_CROSS_TARGET)
CODE_SOURCERY_PREFIX=""
CODE_SOURCERY_JAIL = J(BASE_DIR, 'arm-2009q3', ARM_CROSS_TARGET, 'libc')
LD_SCRIPT_TRUSTED = J(BASE_DIR, 'ld_script_arm_trusted')

# FIXME(jasonwkim):
# so do we need to explicitly use the shell scripts in this directory?
# "/usr/x86_64-pc-linux-gnu/armv7a-cros-linux-gnueabi/gcc-bin/4.4.3/"
DEFAULT_CROS_DIR=""
CROS_TOOLCHAIN="%s%s" % (DEFAULT_CROS_DIR, ARM_CROSS_TARGET)

BASE_CC = ("%s-%%s -Werror -O2 %%s "
           "-fdiagnostics-show-option "
           ) % (CROS_TOOLCHAIN)

# Shell exports
ARM_CC  = BASE_CC % ('gcc', '-std=gnu99 -pedantic')
{'fraction_non_alphanumeric': 0.2099009900990099, 'fraction_numerical': 0.018481848184818482, 'mean_word_length': 5.062, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6187200', 'n_tokens_mistral': 1137, 'n_tokens_neox': 1068, 'n_words': 273}