<commit_before>import ceylon.ast.core {
    CompilationUnit,
    AnyCompilationUnit,
    Node,
    WideningTransformer,
    Visitor
}
import ceylon.ast.redhat {
    anyCompilationUnitToCeylon
}
import ceylon.collection {
    HashMap,
    LinkedList,
    linked,
    MutableMap
}
import ceylon.file {
    Directory,
    parsePath,
    lines,
    File,
    forEachLine,
    temporaryDirectory
}
import ceylon.interop.java {
    CeylonIterable,
    javaClass,
    JavaIterable,
    javaString,
    CeylonList,
    createJavaObjectArray
}
import ceylon.json {
    JsonObject=Object,
    Array,
    ObjectValue
}
import ceylon.language.meta {
    type
}

import com.redhat.ceylon.cmr.api {
    RepositoryManager,
    ArtifactContext
}
import com.redhat.ceylon.cmr.ceylon {
    CeylonUtils
}
import com.redhat.ceylon.cmr.impl {
    ShaSigner
}
import com.redhat.ceylon.common {
    FileUtil,
    ModuleUtil
}
import com.redhat.ceylon.common.tool {
    ToolError
}
import com.redhat.ceylon.compiler.typechecker {
    TypeCheckerBuilder
}
import com.redhat.ceylon.compiler.typechecker.analyzer {
    ModuleSourceMapper
}
import com.redhat.ceylon.compiler.typechecker.context {
    PhasedUnit,
    TypecheckerUnit
}
import com.redhat.ceylon.compiler.typechecker.io {
    VirtualFile
}
import com.redhat.ceylon.compiler.typechecker.tree {
    TCVisitor=Visitor,
    TreeNode=Node,
    Tree,
    Message
}
import com.redhat.ceylon.compiler.typechecker.util {
    WarningSuppressionVisitor
}
import com.redhat.ceylon.model.typechecker.context {
    TypeCache
}
import com.redhat.ceylon.model.typechecker.model {
    ModuleModel=Module
}
import com.vasileff.ceylon.dart.compiler.core {
    CompilationContext,
    augmentNode,
    computeCaptures,
    computeClassCaptures,
    isForDartBackend,
    moduleImportPrefix,
    ModelGenerator,
    generateMain,
    errorThrowingDScope
}
import com.vasileff.ceylon.dart.compiler.dartast {
    DartCompilationUnitMember,
    DartCompilationUnit,
    DartSimpleIdentifier,
    DartImportDirective,
    DartSimpleStringLiteral,
    CodeWriter
}
import com.vasileff.ceylon.dart.compiler.loader {
    MetamodelVisitor,
    DartModuleManagerFactory
}
import com.vasileff.ceylon.structures {
    LinkedListMultimap
}

import java.io {
    JFile=File,
    JPrintWriter=PrintWriter
}
import java.lang {
    System,
    Runnable,
    JString=String,
    JBoolean=Boolean,
    JFloat=Float,
    JDouble=Double,
    JInteger=Integer,
    JLong=Long,
    NoSuchFieldException
}
import java.lang.reflect {
    Field,
    AccessibleObject
}
import java.util {
    EnumSet,
    JMap=Map,
    JList=List
}

// TODO produce error on import of modules with conflicting versions, even if non-shared.

shared
[[DartCompilationUnit*], CompilationStatus, [Message*]] compileDart(
        virtualFiles = [],
        sourceDirectories = [],
        sourceFiles = [],
        moduleFilters = [],
        repositoryManager = null,
        outputRepositoryManager = null,
        standardOutWriter = JPrintWriter(System.\iout),
        standardErrorWriter = JPrintWriter(System.\ierr),
        generateSourceArtifact = false,
        suppressWarning = [],
        doWithoutCaching = false,
        verboseAst = false,
        verboseRhAst = false,
        verboseCode = false,
        verboseProfile = false,<commit_msg>Clean imports<commit_after>import ceylon.ast.core {
    CompilationUnit,
    AnyCompilationUnit,
    Node,
    WideningTransformer,
    Visitor
}
import ceylon.ast.redhat {
    anyCompilationUnitToCeylon
}
import ceylon.collection {
    HashMap,
    LinkedList,
    linked,
    MutableMap
}
import ceylon.file {
    Directory,
    parsePath,
    lines,
    File,
    forEachLine,
    temporaryDirectory
}
import ceylon.interop.java {
    CeylonIterable,
    javaClass,
    JavaIterable,
    javaString,
    CeylonList
}
import ceylon.json {
    JsonObject=Object,
    Array,
    ObjectValue
}
import ceylon.language.meta {
    type
}

import com.redhat.ceylon.cmr.api {
    RepositoryManager,
    ArtifactContext
}
import com.redhat.ceylon.cmr.ceylon {
    CeylonUtils
}
import com.redhat.ceylon.cmr.impl {
    ShaSigner
}
import com.redhat.ceylon.common {
    FileUtil,
    ModuleUtil
}
import com.redhat.ceylon.common.tool {
    ToolError
}
import com.redhat.ceylon.compiler.typechecker {
    TypeCheckerBuilder
}
import com.redhat.ceylon.compiler.typechecker.analyzer {
    ModuleSourceMapper
}
import com.redhat.ceylon.compiler.typechecker.context {
    PhasedUnit
}
import com.redhat.ceylon.compiler.typechecker.io {
    VirtualFile
}
import com.redhat.ceylon.compiler.typechecker.tree {
    TCVisitor=Visitor,
    TreeNode=Node,
    Tree,
    Message
}
import com.redhat.ceylon.compiler.typechecker.util {
    WarningSuppressionVisitor
}
import com.redhat.ceylon.model.typechecker.context {
    TypeCache
}
import com.redhat.ceylon.model.typechecker.model {
    ModuleModel=Module
}
import com.vasileff.ceylon.dart.compiler.core {
    CompilationContext,
    augmentNode,
    computeCaptures,
    computeClassCaptures,
    isForDartBackend,
    moduleImportPrefix,
    ModelGenerator,
    generateMain,
    errorThrowingDScope
}
import com.vasileff.ceylon.dart.compiler.dartast {
    DartCompilationUnitMember,
    DartCompilationUnit,
    DartSimpleIdentifier,
    DartImportDirective,
    DartSimpleStringLiteral,
    CodeWriter
}
import com.vasileff.ceylon.dart.compiler.loader {
    MetamodelVisitor,
    DartModuleManagerFactory
}
import com.vasileff.ceylon.structures {
    LinkedListMultimap
}

import java.io {
    JFile=File,
    JPrintWriter=PrintWriter
}
import java.lang {
    System,
    Runnable,
    JString=String,
    JBoolean=Boolean,
    JFloat=Float,
    JDouble=Double,
    JInteger=Integer,
    JLong=Long
}
import java.util {
    EnumSet,
    JMap=Map,
    JList=List
}

// TODO produce error on import of modules with conflicting versions, even if non-shared.

shared
[[DartCompilationUnit*], CompilationStatus, [Message*]] compileDart(
        virtualFiles = [],
        sourceDirectories = [],
        sourceFiles = [],
        moduleFilters = [],
        repositoryManager = null,
        outputRepositoryManager = null,
        standardOutWriter = JPrintWriter(System.\iout),
        standardErrorWriter = JPrintWriter(System.\ierr),
        generateSourceArtifact = false,
        suppressWarning = [],
        doWithoutCaching = false,
        verboseAst = false,
        verboseRhAst = false,
        verboseCode = false,
        verboseProfile = false,
{'fraction_non_alphanumeric': 0.08472755180353031, 'fraction_numerical': 0.0, 'mean_word_length': 3.1796023091725467, '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': '7662704', 'n_tokens_mistral': 2118, 'n_tokens_neox': 2076, 'n_words': 349}