<commit_before>// Copyright (c) 2006-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.

#ifndef V8_BINDING_H__
#define V8_BINDING_H__

#include "base/compiler_specific.h"
#include "build/build_config.h"

#include <v8.h>
#include "KURL.h"
#include "PlatformString.h"
#include "MathExtras.h"
#include "StringBuffer.h"

// Suppress warnings in CString of converting size_t to unsigned int.
// TODO(fqian): fix CString.h.
MSVC_PUSH_WARNING_LEVEL(0);
#include "CString.h"
MSVC_POP_WARNING();

#if defined(OS_LINUX)
// Use the platform.h for linux.
#include "unicode/plinux.h"
#elif defined(OS_WIN) || defined(OS_MACOSX)
// WebKit ships a hacked up version of one of the ICU header files, with all
// options set for OSX.
#include "platform.h"
#endif

namespace WebCore {

// The string returned by this function is still owned by the argument
// and will be deallocated when the argument is deallocated.
inline const uint16_t* FromWebCoreString(const String& str) {
  return reinterpret_cast<const uint16_t*>(str.characters());
}
<commit_msg>Clean up v8_binding.h by putting config.h at the top.<commit_after>// Copyright (c) 2006-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.

#ifndef V8_BINDING_H__
#define V8_BINDING_H__

#include "config.h"

#include "CString.h"
#include "KURL.h"
#include "MathExtras.h"
#include "PlatformString.h"
#include "StringBuffer.h"

#include <v8.h>

namespace WebCore {

// The string returned by this function is still owned by the argument
// and will be deallocated when the argument is deallocated.
inline const uint16_t* FromWebCoreString(const String& str) {
  return reinterpret_cast<const uint16_t*>(str.characters());
}

{'fraction_non_alphanumeric': 0.10144927536231885, 'fraction_numerical': 0.017176596886741814, 'mean_word_length': 4.682926829268292, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '2871660', 'n_tokens_mistral': 639, 'n_tokens_neox': 612, 'n_words': 217}