<commit_before>Meteor.startup ->
	Meteor.defer ->
		# users
		if Meteor.users.find().count() == 0
			u1 = Meteor.users.insert
				profile:
					name: 'Julio'
				wins: 1
				loses: 10
				draws: 0
				matches: 11
				rating: 100
				email: '<EMAIL>'
				password: '<PASSWORD>'
			u2 = Meteor.users.insert
				profile:
					name: 'Gabriel'
				wins: 9
				loses: 1
				draws: 2
				matches: 12
				rating: 200
				email: '<EMAIL>'
				password: '<PASSWORD>'
		else
			u1 = Meteor.users.find({name:'Julio'})?._id
			u2 = Meteor.users.find({name:'Gabriel'})?._id

		# Tournaments
		if Tournaments.find().count() == 0
			t1 = Tournaments.insert
				name: 'Snooker'
		else
			t1 = Tournaments.find({name: 'Snooker'})?._id

		# tournament rankings
		if TournamentRanks.find().count() == 0
			TournamentRanks.insert
				tournamentId: t1
				userId: u1
				wins: 1
				loses: 4
				draws: 0
				matches: 5
				rating: 50
			TournamentRanks.insert
				tournamentId: t1
				userId: u2
				wins: 5
				loses: 0
				draws: 1
				matches: 6
				rating: 100

		if Matches.find().count() == 0
			Matches.insert
				tournament: t1
				approved: 2
				teams: [
					{
						players: [u1]
						score: 0
						points: 0
						decision: -1
						approved: true
					}
					{
						players: [u2]
						score: 4
						points: 3
						decision: 1
						approved: true
					}
				]
<commit_msg>changed the starting passwords, as the original ones wouldnt work anymore<commit_after>Meteor.startup ->
	Meteor.defer ->
		# users
		if Meteor.users.find().count() == 0
			u1 = Meteor.users.insert
				profile:
					name: 'Julio'
				wins: 1
				loses: 10
				draws: 0
				matches: 11
				rating: 100
				email: '<EMAIL>'
				password: '<PASSWORD>'
			u2 = Meteor.users.insert
				profile:
					name: 'Gabriel'
				wins: 9
				loses: 1
				draws: 2
				matches: 12
				rating: 200
				email: '<EMAIL>'
				password: '<PASSWORD>'
		else
			u1 = Meteor.users.find({name:'Julio'})?._id
			u2 = Meteor.users.find({name:'Gabriel'})?._id

		# Tournaments
		if Tournaments.find().count() == 0
			t1 = Tournaments.insert
				name: 'Snooker'
		else
			t1 = Tournaments.find({name: 'Snooker'})?._id

		# tournament rankings
		if TournamentRanks.find().count() == 0
			TournamentRanks.insert
				tournamentId: t1
				userId: u1
				wins: 1
				loses: 4
				draws: 0
				matches: 5
				rating: 50
			TournamentRanks.insert
				tournamentId: t1
				userId: u2
				wins: 5
				loses: 0
				draws: 1
				matches: 6
				rating: 100

		if Matches.find().count() == 0
			Matches.insert
				tournament: t1
				approved: 2
				teams: [
					{
						players: [u1]
						score: 0
						points: 0
						decision: -1
						approved: true
					}
					{
						players: [u2]
						score: 4
						points: 3
						decision: 1
						approved: true
					}
				]

{'fraction_non_alphanumeric': 0.12169878658101356, 'fraction_numerical': 0.03854389721627409, 'mean_word_length': 2.04343105320304, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 15, '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': '6519527', 'n_tokens_mistral': 1570, 'n_tokens_neox': 1028, 'n_words': 260}