<commit_before># Quick utility to test speed of calculating a list

import time

# Global Variables
teams = []
numOfTeams = 67
numOfMatches = numOfTeams

# Make numOfMatches divisible by 6 one greater than number of teams
while (numOfMatches % 6 != 0):
	numOfMatches += 1

schedule = [[0 for x in xrange(numOfMatches)] for x in xrange(6)] 

# Build array of teams
for x in range(numOfTeams):
	teams.append(x+1)


# ----------------------------------------------------------------------------------------
# Function Name: printTable()
# Parameters:    None
# Returns:       None
# Description:   Prints the full table of all matches
# ----------------------------------------------------------------------------------------
def printTable():
	for y in range(numOfMatches):
		for x in range(6):
			print(schedule[x][y]),
		print " ---- Match " + str(y+1)

def printTeam(team):
	for y in range(numOfMatches):
		for x in range(6):
			if schedule[x][y] == team:
				for z in range(6):
					print(schedule[z][y]),
				print ""


def assignToSchedule():
	position = 0

	for x in range(6):
		for y in range(numOfMatches):
			schedule[x][y] = teams[position]
			if position == (numOfTeams -1):
				position = 0
			else:
				position += 1
			


<commit_msg>More dev of schedule script<commit_after>#!/usr/bin/env python2.7

# name:     schedule_calculator.py
# author:   <NAME>
# created:  140228
# last edit: 140302
#
# description: Quick utility to test speed of generating a list that minimizes sets with the same numbers.

import time

# Global Variables
teams = []
numOfTeams = 67
numOfMatches = numOfTeams

# Make numOfMatches divisible by 6 one greater than number of teams
while (numOfMatches % 6 != 0):
	numOfMatches += 1

schedule = [[0 for x in xrange(numOfMatches)] for x in xrange(6)] 

# Build array of teams
for x in range(numOfTeams):
	teams.append(x+1)


# ----------------------------------------------------------------------------------------
# Function Name: printTable()
# Parameters:    None
# Returns:       None
# Description:   Prints the full table of all matches
# ----------------------------------------------------------------------------------------
def printTable():
	for y in range(numOfMatches):
		for x in range(6):
			print(schedule[x][y]),
		print " ---- Match " + str(y+1)


# ----------------------------------------------------------------------------------------
# Function Name: printTeam()
# Parameters:    None
# Returns:       None
# Description:   This function prints out a given team schedule
# ----------------------------------------------------------------------------------------
def printTeam(team):
	for y in range(numOfMatches):
		for x in range(6):
			if schedule[x][y] == team:
				for z in range(6):
					print(schedule[z][y]),
				print ""


# ----------------------------------------------------------------------------------------
# Function Name: assignToSchedule()
# Parameters:    None
# Returns:       None
# Description:   This function puts all the numbers into the prebuilt array of sets
# ----------------------------------------------------------------------------------------
def assignToSchedule():
	position = 0

	for x in range(6):
		for y in range(numOfMatches):
			schedule[x][y] = teams[position]
			if position == (numOfTeams -1):
				position = 0
			else:
				position += 1
			


{'fraction_non_alphanumeric': 0.30038817557479847, 'fraction_numerical': 0.014929829799940281, 'mean_word_length': 1.5709900230237912, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '220333', 'n_tokens_mistral': 1000, 'n_tokens_neox': 887, 'n_words': 310}