<commit_before>module Clipster
  class Clip < ActiveRecord::Base
    include ActionView::Helpers::DateHelper

    before_create :default_values

    attr_accessible :clip, :language, :title, :private, :expires, :lifespan
    cattr_reader :lifespans
    cattr_accessor :current_user, :lifespan

    belongs_to :user, :class_name => Clipster.config.user_class.to_s unless not Clipster.config.associates_clip_with_user<commit_msg>Added back definition of primary key. Fixes #19<commit_after>module Clipster
  class Clip < ActiveRecord::Base
    include ActionView::Helpers::DateHelper

    before_create :default_values

    self.primary_key = :id

    attr_accessible :clip, :language, :title, :private, :expires, :lifespan
    cattr_reader :lifespans
    cattr_accessor :current_user, :lifespan

    belongs_to :user, :class_name => Clipster.config.user_class.to_s unless not Clipster.config.associates_clip_with_user
{'fraction_non_alphanumeric': 0.08406113537117904, 'fraction_numerical': 0.002183406113537118, 'mean_word_length': 5.368055555555555, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1177835', 'n_tokens_mistral': 299, 'n_tokens_neox': 292, 'n_words': 64}