<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.

#include "config.h"
#include "ResourceError.h"

#undef LOG
#include "webkit/glue/weberror_impl.h"

#include "webkit/glue/glue_util.h"
#include "webkit/glue/webkit_glue.h"

WebErrorImpl::WebErrorImpl(const WebCore::ResourceError& e)
    : error_code_(e.errorCode()),
      failed_url_(webkit_glue::StringToStdWString(e.failingURL())) {
}

WebErrorImpl::WebErrorImpl(const WebError& e)
    : error_code_(e.GetErrorCode()),
      failed_url_(e.GetFailedURL()) {
}

int WebErrorImpl::GetErrorCode() const {
  return error_code_;
}

const GURL& WebErrorImpl::GetFailedURL() const {
  return failed_url_;<commit_msg>use the correct string conversion. <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.

#include "config.h"
#include "ResourceError.h"

#undef LOG
#include "webkit/glue/weberror_impl.h"

#include "webkit/glue/glue_util.h"
#include "webkit/glue/webkit_glue.h"

WebErrorImpl::WebErrorImpl(const WebCore::ResourceError& e)
    : error_code_(e.errorCode()),
      failed_url_(webkit_glue::StringToStdString16(e.failingURL())) {
}

WebErrorImpl::WebErrorImpl(const WebError& e)
    : error_code_(e.GetErrorCode()),
      failed_url_(e.GetFailedURL()) {
}

int WebErrorImpl::GetErrorCode() const {
  return error_code_;
}

const GURL& WebErrorImpl::GetFailedURL() const {
  return failed_url_;
{'fraction_non_alphanumeric': 0.1250770178681454, 'fraction_numerical': 0.011090573012939002, 'mean_word_length': 5.128301886792453, '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': '1050506', 'n_tokens_mistral': 569, 'n_tokens_neox': 545, 'n_words': 128}