<commit_before>package com.teamacronymcoders.contenttweaker.modules.materials.parttypes;

import com.teamacronymcoders.base.materialsystem.materialparts.MaterialPart;
import com.teamacronymcoders.base.materialsystem.parttype.PartType;
import com.teamacronymcoders.contenttweaker.modules.materials.functions.IRegisterMaterialPart;
import com.teamacronymcoders.contenttweaker.modules.materials.materialpartdata.IPartDataPiece;
import com.teamacronymcoders.contenttweaker.modules.materials.materialparts.CTMaterialPart;

import javax.annotation.Nonnull;

public class CTCreatedPartType extends PartType implements IPartType {

    private final IRegisterMaterialPart materialPartRegister;

    public CTCreatedPartType(String name, IRegisterMaterialPart materialPartRegister) {
        super(name);
        this.materialPartRegister = materialPartRegister;
    }

    @Override
    public void setup(@Nonnull MaterialPart materialPart) {
        this.materialPartRegister.register(new CTMaterialPart(materialPart));
    }

    @Override
    public void setData(IPartDataPiece[] data) {
<commit_msg>Fix Part type to match updates to Material System<commit_after>package com.teamacronymcoders.contenttweaker.modules.materials.parttypes;

import com.teamacronymcoders.base.materialsystem.MaterialUser;
import com.teamacronymcoders.base.materialsystem.materialparts.MaterialPart;
import com.teamacronymcoders.base.materialsystem.parttype.PartType;
import com.teamacronymcoders.contenttweaker.modules.materials.functions.IRegisterMaterialPart;
import com.teamacronymcoders.contenttweaker.modules.materials.materialpartdata.IPartDataPiece;
import com.teamacronymcoders.contenttweaker.modules.materials.materialparts.CTMaterialPart;

import javax.annotation.Nonnull;

public class CTCreatedPartType extends PartType implements IPartType {

    private final IRegisterMaterialPart materialPartRegister;

    public CTCreatedPartType(String name, IRegisterMaterialPart materialPartRegister) {
        super(name);
        this.materialPartRegister = materialPartRegister;
    }

    @Override
    public void setup(@Nonnull MaterialPart materialPart, @Nonnull MaterialUser materialUser) {
        this.materialPartRegister.register(new CTMaterialPart(materialPart));
    }

    @Override
    public void setData(IPartDataPiece[] data) {

{'fraction_non_alphanumeric': 0.06924731182795699, 'fraction_numerical': 0.0, 'mean_word_length': 6.134969325153374, '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': '2021486', 'n_tokens_mistral': 652, 'n_tokens_neox': 633, 'n_words': 105}