<commit_before>module ClassUtils
  # ClassUitils is included in Rest- and Java-Api-classes

=begin
  Returns a valid database-class name, nil if the class does not exists
=end

  def classname name_or_class  # :nodoc:
    name = case  name_or_class
	   when ActiveOrient::Model
	     name_or_class.ref_name 
	   when Class
	     ActiveOrient.database_classes.key(name_or_class)
	   else
	     if ActiveOrient.database_classes.has_key?( name_or_class.to_s )
	       name_or_class 
	     else
	       logger.progname =  'ClassUtils#Classname'
	       logger.warn{ "Classname #{name_or_class.inspect} ://: #{name} not present in #{ActiveOrient.database}" }
	       nil
	     end
	   end
  end
  def allocate_class_in_ruby db_classname, &b
    # retrieve the superclass recursively
<commit_msg>Reverting changes resolving classnames from Objects in ORD.classname <commit_after>module ClassUtils
  # ClassUitils is included in Rest- and Java-Api-classes

=begin
  Returns a valid database-class name, nil if the class does not exists
=end

  def classname name_or_class  # :nodoc:
    name = case  name_or_class
	   when ActiveOrient::Model
	     name_or_class.class.ref_name 
	   when Class
	     ActiveOrient.database_classes.key(name_or_class)
	   else
	     if ActiveOrient.database_classes.has_key?( name_or_class.to_s )
	       name_or_class 
	     else
	       logger.progname =  'ClassUtils#Classname'
	       logger.warn{ "Classname #{name_or_class.inspect} ://: #{name} not present in #{ActiveOrient.database}" }
	       nil
	     end
	   end
  end
  def allocate_class_in_ruby db_classname, &b
    # retrieve the superclass recursively

{'fraction_non_alphanumeric': 0.06942752740560293, 'fraction_numerical': 0.0, 'mean_word_length': 3.1806615776081424, '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': '7176441', 'n_tokens_mistral': 545, 'n_tokens_neox': 516, 'n_words': 136}