<commit_before>== Cassandra Object

Cassandra Object uses ActiveModel to mimic much of the behavior in ActiveRecord.

== Installation

Add the following to your Gemfile:

  gem 'gotime-cassandra_object'

== Defining Models

  class Widget < CassandraObject::Base
    key :uuid
    string :name
    string :description
    integer :price

    validates :name, presence: :true

    before_create do
      self.description = "#{name} is the best product ever"
    end
  end

== Connecting to the Server
<commit_msg>add array example<commit_after>== Cassandra Object

Cassandra Object uses ActiveModel to mimic much of the behavior in ActiveRecord.

== Installation

Add the following to your Gemfile:

  gem 'gotime-cassandra_object'

== Defining Models

  class Widget < CassandraObject::Base
    key :uuid
    string :name
    string :description
    integer :price
    array :colors, unique: true

    validates :name, presence: :true

    before_create do
      self.description = "#{name} is the best product ever"
    end
  end

== Connecting to the Server

{'fraction_non_alphanumeric': 0.0669811320754717, 'fraction_numerical': 0.0, 'mean_word_length': 3.476793248945148, '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': '1111670', 'n_tokens_mistral': 310, 'n_tokens_neox': 297, 'n_words': 118}