<commit_before>using System;
using System.Globalization;
using BitStrap;
using UnityEditor;
using UnityEngine;
using Object = UnityEngine.Object;

public sealed class ColliderImporter : AssetPostprocessor
{
    private void OnPostprocessModel(GameObject g)
    {
        foreach (Transform child in g.GetComponentsInChildren<Transform>())
        {
            String[] objectNameSplit = child.name.Split('_');
            switch (objectNameSplit[0])
            {
                case "UBX":
                    child.gameObject.AddComponent<BoxCollider>();
                    RemoveMesh(child);
                    break;
                
                case "UCX":
                    MeshCollider meshCollider = child.gameObject.AddComponent<MeshCollider>();
                    meshCollider.convex = true;
                    RemoveMesh(child);
                    break;
                
                case "UMX":
                    child.gameObject.AddComponent<MeshCollider>();
                    RemoveMesh(child);
                    break;
                
                case "UCP":
                    child.gameObject.AddComponent<CapsuleCollider>();
                    RemoveMesh(child);
                    break;
                
                case "USP":
                    child.gameObject.AddComponent<SphereCollider>();
                    RemoveMesh(child);
                    break;
            }
        }
    }

    private static void RemoveMesh(Transform child)<commit_msg>Renaming UMX to UME because UMX for Mesh Colliders doesn't make sense<commit_after>using System;
using System.Globalization;
using BitStrap;
using UnityEditor;
using UnityEngine;
using Object = UnityEngine.Object;

public sealed class ColliderImporter : AssetPostprocessor
{
    private void OnPostprocessModel(GameObject g)
    {
        foreach (Transform child in g.GetComponentsInChildren<Transform>())
        {
            String[] objectNameSplit = child.name.Split('_');
            switch (objectNameSplit[0])
            {
                case "UBX":
                    child.gameObject.AddComponent<BoxCollider>();
                    RemoveMesh(child);
                    break;
                
                case "UCX":
                    MeshCollider meshCollider = child.gameObject.AddComponent<MeshCollider>();
                    meshCollider.convex = true;
                    RemoveMesh(child);
                    break;
                
                case "UME":
                    child.gameObject.AddComponent<MeshCollider>();
                    RemoveMesh(child);
                    break;
                
                case "UCP":
                    child.gameObject.AddComponent<CapsuleCollider>();
                    RemoveMesh(child);
                    break;
                
                case "USP":
                    child.gameObject.AddComponent<SphereCollider>();
                    RemoveMesh(child);
                    break;
            }
        }
    }

    private static void RemoveMesh(Transform child)
{'fraction_non_alphanumeric': 0.0775974025974026, 'fraction_numerical': 0.0006493506493506494, 'mean_word_length': 1.3447488584474885, 'pattern_counts': {'":': 10, '<': 15, '<?xml version=': 0, '>': 15, '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': '970220', 'n_tokens_mistral': 733, 'n_tokens_neox': 677, 'n_words': 142}