<commit_before>#include "includes.h"

Symbol::Symbol(const string &name) :
  FancyObject(SymbolClass), _name(name)
{
}

Symbol::~Symbol()
{
}

FancyObject_p Symbol::equal(const FancyObject_p other) const
{
  if(!IS_SYMBOL(other))
    return nil;
  
  Symbol_p other_sym = (Symbol_p)other;
  if(this->_name == other_sym->_name)
    return t;
  return nil;
}

OBJ_TYPE Symbol::type() const
{
  return OBJ_SYMBOL;
}

string Symbol::to_s() const
{
  return this->_name;<commit_msg>use dynamic_cast<> in src/symbol.cc<commit_after>#include "includes.h"

Symbol::Symbol(const string &name) :
  FancyObject(SymbolClass), _name(name)
{
}

Symbol::~Symbol()
{
}

FancyObject_p Symbol::equal(const FancyObject_p other) const
{
  if(!IS_SYMBOL(other)) {
    return nil;
  }
  
  Symbol_p other_sym = dynamic_cast<Symbol_p>(other);
  if(other_sym) {
    if(this->_name == other_sym->_name) {
      return t;
    }
  }
  return nil;
}

OBJ_TYPE Symbol::type() const
{
  return OBJ_SYMBOL;
}

string Symbol::to_s() const
{
  return this->_name;
{'fraction_non_alphanumeric': 0.14563106796116504, 'fraction_numerical': 0.0, 'mean_word_length': 4.5133689839572195, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '3773265', 'n_tokens_mistral': 390, 'n_tokens_neox': 388, 'n_words': 73}