<commit_before>package org.rust.cargo.project

/**
 * A POD-style representation of [CargoProjectDescription] used as intermediate representation
 * between `cargo metadata` JSON and [CargoProjectDescription] object graph.
 *
 * Dependency graph is via adjacency list, where `Index` is the order of a particular
 * package in `packages` list.
 */
data class CargoProjectDescriptionData(
    var rootPackageIndex: Int,
    val packages: List<Package>,
    val dependencies: Collection<DependencyNode>
) {
    data class DependencyNode(
        var packageIndex: Int,
        var dependenciesIndexes: Collection<Int>
    )

    data class Package(
        var contentRootUrl: String,
        var name: String,
        var version: String,
        var targets: Collection<Target>,
        var source: String?
    )

    data class Target(
        var url: String,
        var kind: CargoProjectDescription.TargetKind
    )
}
<commit_msg>(MISC): var -> val<commit_after>package org.rust.cargo.project

/**
 * A POD-style representation of [CargoProjectDescription] used as intermediate representation
 * between `cargo metadata` JSON and [CargoProjectDescription] object graph.
 *
 * Dependency graph is represented via adjacency list, where `Index` is the order of a particular
 * package in `packages` list.
 */
data class CargoProjectDescriptionData(
    val rootPackageIndex: Int,
    val packages: List<Package>,
    val dependencies: Collection<DependencyNode>
) {
    data class DependencyNode(
        val packageIndex: Int,
        val dependenciesIndexes: Collection<Int>
    )

    data class Package(
        val contentRootUrl: String,
        val name: String,
        val version: String,
        val targets: Collection<Target>,
        val source: String?
    )

    data class Target(
        val url: String,
        val kind: CargoProjectDescription.TargetKind
    )
}

{'fraction_non_alphanumeric': 0.07692307692307693, 'fraction_numerical': 0.0, 'mean_word_length': 3.154185022026432, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 12, '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': '2371208', 'n_tokens_mistral': 500, 'n_tokens_neox': 488, 'n_words': 173}