<commit_before># Author: <NAME> [<EMAIL>]
# Date: April 18, 2014
# Description: Get all balanced cycle shapes of a number N


N=12

plists = Partitions(N).list()

# Takes a Partition object and checks if it is balanced.
def CheckBalancedCycle(plist):
    M = lcm(plist)
    M = plist[0]*plist[-1]

    if not M%lcm(plist) == 0:
        return False, 0

    plist_new = [M/i for i in plist]
    plist_new.sort()
    plist_new.reverse()

    if plist_new == plist:
        return True, M
    else:
        return False, 0

CheckBalancedCycle(plist)

def GetAllBalancedCycles(k=0):
    # If k=0, return the complete table
    # Else, return the table only for that value of k

    number_balancedcycles = 0<commit_msg>Clean up.<commit_after># Author: <NAME> [<EMAIL>]
# Date: April 18, 2014

N=12

plists = Partitions(N).list()

# Takes a Partition object and checks if it is balanced.
def CheckBalancedCycle(plist):
    M = plist[0]*plist[-1]

    if not M%lcm(plist) == 0:
        return False, 0

    plist_new = [M/i for i in plist]
    plist_new.sort()
    plist_new.reverse()

    if plist_new == plist:
        return True, M
    else:
        return False, 0

CheckBalancedCycle(plist)

def GetAllBalancedCycles(k=0):
    # If k=0, return the complete table
    # Else, return the table only for that value of k

    number_balancedcycles = 0
{'fraction_non_alphanumeric': 0.10541945063103192, 'fraction_numerical': 0.023756495916852263, 'mean_word_length': 2.9647058823529413, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '5063724', 'n_tokens_mistral': 520, 'n_tokens_neox': 461, 'n_words': 154}