<commit_before>########################################
# File: project.rb
# Porpose: Indicates all relationships with project
# GNU AGPLv3
########################################

class Project < ActiveRecord::Base

  belongs_to :languages 
  belongs_to :operational_systems 
  belongs_to :tools
  belongs_to :users

  # Search for a project by name
  def self.search(search)
    if search
      Project.where('name LIKE ?', "%#{search}%")
    else
      Project.all
    end
  end


end
<commit_msg>comment individual lines in project.rb<commit_after>########################################
# File: project.rb
# Porpose: Indicates all relationships with project
# GNU AGPLv3
########################################

class Project < ActiveRecord::Base

  # Indicates project belongs to languages
  belongs_to :languages 

  # Indicates project belongs to operational system
  belongs_to :operational_systems 

  # Indicates project belongs to tools
  belongs_to :tools

  # Indicates project belongs to users
  belongs_to :users

  # Search for a project by name
  def self.search(search)
    if search
      Project.where('name LIKE ?', "%#{search}%")
    else
      Project.all
    end
  end


end

{'fraction_non_alphanumeric': 0.19534497090606817, 'fraction_numerical': 0.0016625103906899418, 'mean_word_length': 4.145299145299146, 'pattern_counts': {'":': 0, '<': 5, '<?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': '1163730', 'n_tokens_mistral': 335, 'n_tokens_neox': 321, 'n_words': 105}