<commit_before>user1 = User.create(email: '<EMAIL>', password: '<PASSWORD>')

# Seed tags
tags = ["Arts", "Community", "Education", "Movements", "LGBT", "Food"]
tags.each do |tag|
	Tag.create(subject: tag)
end

# Seed meetup data
meetup_api = MeetupApi.new

category_ids = ["1", "4", "6", "13", "12", "10"]
category_ids.each do |id|
	params = {
		category: id,
		country: 'us',
		state: 'CA',
		city: 'San Francisco',
		format: 'json',
		page: '15'
	}
	events = meetup_api.open_events(params)
	events['results'].each do |event|
		organization = Organization.find_or_create_by(name: event['group']['name'], url: "www.meetup.com/#{event['group']['urlname']}")
		message = Message.create(body: event['name'], start_date: Time.at(event['time']), organization_id: organization.id)
	end
end

<commit_msg>Fix tags in seeds file<commit_after>user1 = User.create(email: '<EMAIL>', password: '<PASSWORD>')

# Seed meetup data
meetup_api = MeetupApi.new

category_ids = {
	"1" => "Arts",
	"4" => "Community",
	"6" => "Education",
	"13" => "Movements",
	"12" => "LGBT",
	"10" => "Food",
}

category_ids.each do |id, category|
	params = {
		category: id,
		country: 'us',
		state: 'CA',
		city: 'San Francisco',
		format: 'json',
		page: '15'
	}
	events = meetup_api.open_events(params)
	events['results'].each do |event|
		organization = Organization.find_or_create_by(name: event['group']['name'], url: "www.meetup.com/#{event['group']['urlname']}")
		message = Message.create(body: event['name'], start_date: Time.at(event['time']), organization_id: organization.id)
		tag = Tag.find_or_create_by(subject: category)
		message.tags << tag
	end
end


{'fraction_non_alphanumeric': 0.1978021978021978, 'fraction_numerical': 0.014652014652014652, 'mean_word_length': 5.328185328185328, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '1814012', 'n_tokens_mistral': 645, 'n_tokens_neox': 604, 'n_words': 137}