<commit_before>lst=''
lstar=[]
ts=''
nextgames={}
for b,a in db['games'].iteritems():
	#print a
	if b != 'lastupdate':
		st=str(a['status']).lower()
		if st.count('pm et') != 0:
			stp=st.replace(' et','')
			yr=time.strftime('%Y')
	                if st.count('jan') != 0: yr=str(int(yr)+1)
			stp=time.mktime(time.strptime(stp+' '+yr,'%a, %b %d %I:%M %p %Y'))
			if len(nextgames) < 11: nextgames[b]=stp
			else:
				mva=max(nextgames,key=nextgames.get)
				if stp < nextgames[mva]:
					nextgames.pop(mva)
					nextgames[b]=stp
		if st.count('final') == 0 and st.count('delay') == 0 and st.count('am et') == 0 and st.count('pm et') == 0 and st.count('cancel') == 0:
			lstar.append(gameInfo(b,False, False, True, True, '', True))
			if lst=='':
				lst+=gameInfo(b,branked=True)
			else:
				lst+=' '+chr(3)+'0,1 . '+chr(3)+' '+gameInfo(b,branked=True)
				ts+='PRIVMSG '+origin+' :'+lst+chr(3)+'\r\n'
#				db['msgqueue'].append([lst+chr(3),origin,'PRIVMSG'])
				lst=''
nextgames = sorted(nextgames.iteritems(), key=operator.itemgetter(1))
lst=lst.strip()
if lst == '' and ts == '':
	lst='There are no games on at the moment. '
	if dest.lower() != 'footballbot': origin=dest
ngl=''
for a in nextgames:
	nass=a[0]
	ngl+=gameInfo(nass,score=False,branked=True)+', '
ngl=ngl[:-2]
if len(nextgames) != 0 and lst == 'There are no games on at the moment. ': 
	lst+='\x02Upcoming games: \x02'+ngl+'\r\n'
	comb=lst
else:
	comb=', '.join(lstar)
if dest=='footballbot': dest=origin
for comb in splitMessage(comb,400,' . '):
	db['msgqueue'].append([comb,dest])<commit_msg>Bug fix<commit_after>lst=''
lstar=[]
ts=''
nextgames={}


for b,a in db['games'].iteritems():
	#print a
	if b != 'lastupdate':
		st=str(a['status']).lower()
		if st.count('pm et') != 0:
			stp=st.replace(' et','')
			yr=time.strftime('%Y')
	                if st.count('jan') != 0: yr=str(int(yr)+1)
			stp=time.mktime(time.strptime(stp+' '+yr,'%a, %b %d %I:%M %p %Y'))
			if len(nextgames) < 11: nextgames[b]=stp
			else:
				mva=max(nextgames,key=nextgames.get)
				if stp < nextgames[mva]:
					nextgames.pop(mva)
					nextgames[b]=stp
		if st.count('final') == 0 and st.count('delay') == 0 and st.count('am et') == 0 and st.count('pm et') == 0 and st.count('cancel') == 0:
			lstar.append(gameInfo(b,False, False, True, True, '', True))
			if lst=='':
				lst+=gameInfo(b,branked=True)
			else:
				lst+=' '+chr(3)+'0,1, '+chr(3)+' '+gameInfo(b,branked=True)
				ts+='PRIVMSG '+origin+' :'+lst+chr(3)+'\r\n'
#				db['msgqueue'].append([lst+chr(3),origin,'PRIVMSG'])
				lst=''
nextgames = sorted(nextgames.iteritems(), key=operator.itemgetter(1))
lst=lst.strip()
if lst == '' and ts == '':
	lst='There are no games on at the moment. '
	if dest.lower() != 'footballbot': origin=dest
ngl=''
for a in nextgames:
	nass=a[0]
	ngl+=gameInfo(nass,score=False,branked=True)+', '
ngl=ngl[:-2]
if len(nextgames) != 0 and lst == 'There are no games on at the moment. ': 
	lst+='\x02Upcoming games: \x02'+ngl+'\r\n'
	comb=lst
else:
	comb=', '.join(lstar)
if dest=='footballbot': dest=origin
for comb in splitMessage(comb,400,', '):
	db['msgqueue'].append([comb,dest])
	print comb
print 'sent'
{'fraction_non_alphanumeric': 0.23181962527786598, 'fraction_numerical': 0.01714830104795173, 'mean_word_length': 4.421686746987952, 'pattern_counts': {'":': 0, '<': 7, '<?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': '2044652', 'n_tokens_mistral': 1468, 'n_tokens_neox': 1295, 'n_words': 272}