<commit_before># FIXME! all of these changesets need their bounding boxes set correctly!
# 
<% SCALE = 10000000 unless defined?(SCALE) %>

# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
normal_user_first_change:
  id: 1
  user_id: 1
  created_at: "2007-01-01 00:00:00"
  closed_at: <%= DateTime.now + Rational(1,24) %>
  min_lon: <%= 1 * SCALE %>
  min_lat: <%= 1 * SCALE %>
  max_lon: <%= 5 * SCALE %>
  max_lat: <%= 5 * SCALE %>
  num_changes: 11
  
public_user_first_change:
  id: 2
  user_id: 2
  created_at: <%= DateTime.now.utc %>
  closed_at: <%= DateTime.now + Rational(1,24) %>
  num_changes: 0

normal_user_closed_change:
  id: 3
  user_id: 1
  created_at: "2007-01-01 00:00:00"
  closed_at: "2007-01-02 00:00:00"
  num_changes: 0

public_user_closed_change:
  id: 7
  user_id: 2
  created_at: "2007-01-01 00:00:00"
  closed_at: "2007-01-02 00:00:00"
  num_changes: 0

public_user_version_change:
  id: 4
  user_id: 2
  created_at: <%= Time.now.getutc %>
  closed_at: <%= DateTime.now + Rational(1,24) %>
  min_lon: <%= 1 * SCALE %>
  min_lat: <%= 1 * SCALE %>
  max_lon: <%= 4 * SCALE %>
  max_lat: <%= 4 * SCALE %>
  num_changes: 8

# changeset to contain all the invalid stuff that is in the
# fixtures (nodes outside the world, etc...), but needs to have
# a valid user...
invalid_changeset:
  id: 5
  user_id: 3
  created_at: "2008-01-01 00:00:00"
  closed_at: "2008-01-02 00:00:00"
  num_changes: 9

# changeset which still has time remaining, but has been closed
# by containing too many elements.
too_many_elements_changeset:
  id: 6
  user_id: 1
  created_at: "2008-01-01 00:00:00"
  closed_at: <%= DateTime.now + Rational(1,24) %>
  min_lon: <%= 1 * SCALE %>
  min_lat: <%= 1 * SCALE %>
  max_lon: <%= 4 * SCALE %>
  max_lat: <%= 4 * SCALE %><commit_msg>Oops. Fixed another Time/DateTime problem.<commit_after># FIXME! all of these changesets need their bounding boxes set correctly!
# 
<% SCALE = 10000000 unless defined?(SCALE) %>

# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
normal_user_first_change:
  id: 1
  user_id: 1
  created_at: "2007-01-01 00:00:00"
  closed_at: <%= DateTime.now + Rational(1,24) %>
  min_lon: <%= 1 * SCALE %>
  min_lat: <%= 1 * SCALE %>
  max_lon: <%= 5 * SCALE %>
  max_lat: <%= 5 * SCALE %>
  num_changes: 11
  
public_user_first_change:
  id: 2
  user_id: 2
  created_at: <%= DateTime.now.utc %>
  closed_at: <%= DateTime.now + Rational(1,24) %>
  num_changes: 0

normal_user_closed_change:
  id: 3
  user_id: 1
  created_at: "2007-01-01 00:00:00"
  closed_at: "2007-01-02 00:00:00"
  num_changes: 0

public_user_closed_change:
  id: 7
  user_id: 2
  created_at: "2007-01-01 00:00:00"
  closed_at: "2007-01-02 00:00:00"
  num_changes: 0

public_user_version_change:
  id: 4
  user_id: 2
  created_at: <%= DateTime.now.utc %>
  closed_at: <%= DateTime.now + Rational(1,24) %>
  min_lon: <%= 1 * SCALE %>
  min_lat: <%= 1 * SCALE %>
  max_lon: <%= 4 * SCALE %>
  max_lat: <%= 4 * SCALE %>
  num_changes: 8

# changeset to contain all the invalid stuff that is in the
# fixtures (nodes outside the world, etc...), but needs to have
# a valid user...
invalid_changeset:
  id: 5
  user_id: 3
  created_at: "2008-01-01 00:00:00"
  closed_at: "2008-01-02 00:00:00"
  num_changes: 9

# changeset which still has time remaining, but has been closed
# by containing too many elements.
too_many_elements_changeset:
  id: 6
  user_id: 1
  created_at: "2008-01-01 00:00:00"
  closed_at: <%= DateTime.now + Rational(1,24) %>
  min_lon: <%= 1 * SCALE %>
  min_lat: <%= 1 * SCALE %>
  max_lon: <%= 4 * SCALE %>
  max_lat: <%= 4 * SCALE %>
{'fraction_non_alphanumeric': 0.1484848484848485, 'fraction_numerical': 0.09090909090909091, 'mean_word_length': 3.679123711340206, 'pattern_counts': {'":': 0, '<': 41, '<?xml version=': 0, '>': 41, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, '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': '942967', 'n_tokens_mistral': 1778, 'n_tokens_neox': 1427, 'n_words': 370}