<commit_before>require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')

describe Track do
  fixtures :events

  before(:each) do
    @valid_attributes = {
      :title => "value for title",
      :event_id => 1
    }
  end

  it "should create a new instance given valid attributes" do
    Track.create!(@valid_attributes)
  end

  it "should not be valid without an event" do
    Track.new(:title => "My title").should_not be_valid
  end
end<commit_msg>Fixed track_spec.<commit_after>require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')

describe Track do
  fixtures :events

  before(:each) do
    @valid_attributes = {
      :title => "value for title",
      :description => "value for description",
      :color => "#00CC00",
      :event_id => 1
    }
  end

  it "should create a new instance given valid attributes" do
    Track.create!(@valid_attributes)
  end

  it "should not be valid without an event" do
    Track.new(:title => "My title").should_not be_valid
  end
end
{'fraction_non_alphanumeric': 0.11462450592885376, 'fraction_numerical': 0.005928853754940711, 'mean_word_length': 3.3106382978723405, 'pattern_counts': {'":': 0, '<': 3, '<?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': '4791528', 'n_tokens_mistral': 320, 'n_tokens_neox': 307, 'n_words': 96}