<commit_before># Configure
session.permutateField("es5")
session.setField("debug", True)


@task("Source")
def source():
    # Initialize shared objects
    assetManager = AssetManager(session)
    assetManager.addSourceProfile()
    outputManager = OutputManager(session, assetManager, compressionLevel=0, formattingLevel=1)
    fileManager = FileManager(session)
    
    # Store kernel script
    outputManager.storeKernel("$prefix/script/kernel.js", debug=True, classes=["core.io.Asset", "core.io.StyleSheet"])
    
    # Process every possible permutation
    for permutation in session.permutate():

        # Resolving dependencies
        classes = Resolver(session).addClassName("tests").getSortedClasses()
        
        # Writing source loader
        outputManager.storeLoader(classes, "$prefix/script/test-$permutation.js", "QUnit.load();")


@task("Build")
def build():
    # Initialize shared objects
    assetManager = AssetManager(session)
    assetManager.addBuildProfile()
    assetManager.deploy(Resolver(session).addClassName("tests").getIncludedClasses())
    outputManager = OutputManager(session, assetManager, compressionLevel=2)
    fileManager = FileManager(session)

    # Write kernel script
    outputManager.storeKernel("$prefix/script/kernel.js", debug=True, classes=["core.io.Asset", "core.io.StyleSheet"])

    # Copy files from source
    fileManager.updateFile("source/index.html", "$prefix/index.html")

    # Process every possible permutation
    for permutation in session.permutate():

        # Resolving dependencies
        classes = Resolver(session).addClassName("tests").getSortedClasses()

        # Compressing classes
        outputManager.storeCompressed(classes, "$prefix/script/test-$permutation.js", "QUnit.load();")
    
    
@task("Clear cache")
def clean():
    session.clean()
    Repository.clean()


@task("Clear cache and repository")
def distclean():
    session.clean()
    Repository.distclean()<commit_msg>Updated for final jasy 0.8<commit_after># Configure
session.permutateField("es5")
session.setField("debug", True)


@task("Source")
def source():
    # Initialize shared objects
    assetManager = AssetManager(session).addSourceProfile()
    outputManager = OutputManager(session, assetManager, compressionLevel=0, formattingLevel=1)
    fileManager = FileManager(session)
    
    # Store kernel script
    outputManager.storeKernel("$prefix/script/kernel.js", debug=True, classes=["core.io.Asset", "core.io.StyleSheet"])
    
    # Process every possible permutation
    for permutation in session.permutate():

        # Resolving dependencies
        classes = Resolver(session).addClassName("tests").getSortedClasses()
        
        # Writing source loader
        outputManager.storeLoader(classes, "$prefix/script/test-$permutation.js", "QUnit.load();")


@task("Build")
def build():
    # Initialize shared objects
    assetManager = AssetManager(session).addBuildProfile()
    outputManager = OutputManager(session, assetManager, compressionLevel=2)
    fileManager = FileManager(session)

    # Deploy assets
    outputManager.deployAssets(["tests"])

    # Write kernel script
    outputManager.storeKernel("$prefix/script/kernel.js", debug=True, classes=["core.io.Asset", "core.io.StyleSheet"])

    # Copy files from source
    fileManager.updateFile("source/index.html", "$prefix/index.html")

    # Process every possible permutation
    for permutation in session.permutate():

        # Resolving dependencies
        classes = Resolver(session).addClassName("tests").getSortedClasses()

        # Compressing classes
        outputManager.storeCompressed(classes, "$prefix/script/test-$permutation.js", "QUnit.load();")
    
    
@task("Clear cache")
def clean():
    session.clean()
    Repository.clean()


@task("Clear cache and repository")
def distclean():
    session.clean()
    Repository.distclean()
{'fraction_non_alphanumeric': 0.12403895438236802, 'fraction_numerical': 0.0025627883136852894, 'mean_word_length': 4.135526315789473, 'pattern_counts': {'":': 0, '<': 3, '<?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': '7204964', 'n_tokens_mistral': 1089, 'n_tokens_neox': 1038, 'n_words': 215}