<commit_before># This file should contain all the record creation needed to seed the database with its default values.
# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).
#
# Examples:
#
#   cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }])
#   Mayor.create(name: 'Emanuel', city: cities.first)
puts "#{ListingChange.delete_all} listing changes deleted"
puts "#{SpeciesListing.delete_all} species listings deleted"
puts "#{TaxonConceptGeoEntity.delete_all} taxon concept geo entities deleted"
puts "#{TaxonRelationship.delete_all} taxon relationships deleted"
puts "#{TaxonRelationshipType.delete_all} taxon relationship types deleted"
puts "#{TaxonConcept.delete_all} taxon_concepts deleted"
puts "#{TaxonName.delete_all} taxon_names deleted"
puts "#{Rank.delete_all} ranks deleted"
puts "#{Designation.delete_all} designations deleted"
puts "#{TaxonDistribution.delete_all} taxon distributions deleted"
puts "#{GeoRelationship.delete_all} geo relationships deleted"
puts "#{GeoEntity.delete_all} geo entities deleted"
puts "#{GeoEntityType.delete_all} geo entity types deleted"
puts "#{GeoRelationshipType.delete_all} geo relationship types deleted"

#Create GeoEntityTypes
GeoEntityType.dict.each do |type|
  entity_type = GeoEntityType.create(name: type)
  puts "Added GeoEntityType #{type}, with id: #{entity_type.id}"
end

#Create GeoRelationshipTypes<commit_msg>added dependency deletion<commit_after># This file should contain all the record creation needed to seed the database with its default values.
# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).
#
# Examples:
#
#   cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }])
#   Mayor.create(name: 'Emanuel', city: cities.first)
puts "#{ListingDistribution.delete_all} listing distributions deleted"
puts "#{ListingChange.delete_all} listing changes deleted"
puts "#{SpeciesListing.delete_all} species listings deleted"
puts "#{TaxonConceptGeoEntity.delete_all} taxon concept geo entities deleted"
puts "#{TaxonRelationship.delete_all} taxon relationships deleted"
puts "#{TaxonRelationshipType.delete_all} taxon relationship types deleted"
puts "#{TaxonConcept.delete_all} taxon_concepts deleted"
puts "#{TaxonName.delete_all} taxon_names deleted"
puts "#{Rank.delete_all} ranks deleted"
puts "#{Designation.delete_all} designations deleted"
puts "#{TaxonDistribution.delete_all} taxon distributions deleted"
puts "#{GeoRelationship.delete_all} geo relationships deleted"
puts "#{GeoEntity.delete_all} geo entities deleted"
puts "#{GeoEntityType.delete_all} geo entity types deleted"
puts "#{GeoRelationshipType.delete_all} geo relationship types deleted"

#Create GeoEntityTypes
GeoEntityType.dict.each do |type|
  entity_type = GeoEntityType.create(name: type)
  puts "Added GeoEntityType #{type}, with id: #{entity_type.id}"
end

#Create GeoRelationshipTypes
{'fraction_non_alphanumeric': 0.10315575161180862, 'fraction_numerical': 0.0, 'mean_word_length': 7.076712328767123, 'pattern_counts': {'":': 0, '<': 3, '<?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': '2424374', 'n_tokens_mistral': 918, 'n_tokens_neox': 891, 'n_words': 276}