<commit_before>#!/bin/sh

# Copyright (c) 2008 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

set -ex
JS_FILES="runtime.js \
          v8natives.js \
          array.js \
          string.js \
          uri.js \
          math.js \
          messages.js \
          apinatives.js \
          debug-delay.js \
          mirror-delay.js \
          date-delay.js \
          regexp-delay.js \
          macros.py"

V8ROOT="${SRCROOT}/../v8"

SRC_DIR="${V8ROOT}/src"

NATIVE_JS_FILES=""

for i in ${JS_FILES} ; do
  NATIVE_JS_FILES+="${SRC_DIR}/${i} "
done

V8_GENERATED_SOURCES_DIR="${CONFIGURATION_TEMP_DIR}/generated"
mkdir -p "${V8_GENERATED_SOURCES_DIR}"

LIBRARIES_CC="${V8_GENERATED_SOURCES_DIR}/libraries.cc"
LIBRARIES_EMPTY_CC="${V8_GENERATED_SOURCES_DIR}/libraries-empty.cc"

python "${V8ROOT}/tools/js2c.py" \
  "${LIBRARIES_CC}.new" \
  "${LIBRARIES_EMPTY_CC}.new" \
  ${NATIVE_JS_FILES}

# Only use the new files if they're different from the existing files (if any),<commit_msg>Fix Mac bustage from DEPS roll r3728 Review URL: http://codereview.chromium.org/8058<commit_after>#!/bin/sh

# Copyright (c) 2008 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

set -ex
JS_FILES="runtime.js \
          v8natives.js \
          array.js \
          string.js \
          uri.js \
          math.js \
          messages.js \
          apinatives.js \
          debug-delay.js \
          mirror-delay.js \
          date-delay.js \
          regexp-delay.js \
          macros.py"

V8ROOT="${SRCROOT}/../v8"

SRC_DIR="${V8ROOT}/src"

NATIVE_JS_FILES=""

for i in ${JS_FILES} ; do
  NATIVE_JS_FILES+="${SRC_DIR}/${i} "
done

V8_GENERATED_SOURCES_DIR="${CONFIGURATION_TEMP_DIR}/generated"
mkdir -p "${V8_GENERATED_SOURCES_DIR}"

LIBRARIES_CC="${V8_GENERATED_SOURCES_DIR}/libraries.cc"
LIBRARIES_EMPTY_CC="${V8_GENERATED_SOURCES_DIR}/libraries-empty.cc"

python "${V8ROOT}/tools/js2c.py" \
  "${LIBRARIES_CC}.new" \
  "${LIBRARIES_EMPTY_CC}.new" \
  CORE \
  ${NATIVE_JS_FILES}

# Only use the new files if they're different from the existing files (if any),
{'fraction_non_alphanumeric': 0.1320921985815603, 'fraction_numerical': 0.015957446808510637, 'mean_word_length': 2.7121710526315788, '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': '4648142', 'n_tokens_mistral': 863, 'n_tokens_neox': 815, 'n_words': 167}