<commit_before>/* Copyright (c) 2008, <NAME>

   Permission to use, copy, modify, and/or distribute this software
   for any purpose with or without fee is hereby granted, provided
   that the above copyright notice and this permission notice appear
   in all copies.

   There is NO WARRANTY for this software.  See license.txt for
   details. */

#include "util.h"

using namespace vm;

namespace {

object
clone(Thread* t, object o)
{
  object class_ = objectClass(t, o);
  unsigned size = baseSize(t, o, class_) * BytesPerWord;

  object clone = make(t, class_);
  memcpy(reinterpret_cast<void**>(clone) + 1,
         reinterpret_cast<void**>(o) + 1,
         size - BytesPerWord);

  return clone;
}

} // namespace

namespace vm {
<commit_msg>remove unused code from util.cpp<commit_after>/* Copyright (c) 2008, <NAME>

   Permission to use, copy, modify, and/or distribute this software
   for any purpose with or without fee is hereby granted, provided
   that the above copyright notice and this permission notice appear
   in all copies.

   There is NO WARRANTY for this software.  See license.txt for
   details. */

#include "util.h"

using namespace vm;

namespace vm {

{'fraction_non_alphanumeric': 0.08699324324324324, 'fraction_numerical': 0.008445945945945946, 'mean_word_length': 3.505703422053232, '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': '597829', 'n_tokens_mistral': 359, 'n_tokens_neox': 338, 'n_words': 145}