<commit_before>package org.chrisle.netbeans.plugins.csharp4netbeans.utils;

import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author ChrisLE
 */
public class ProjectGenerator {
    private List<String> _folder;

    public ProjectGenerator() {
        this._folder = new ArrayList<>();
        this._folder.add("bin");
        this._folder.add("bin\\Debug");
    }
    
}<commit_msg>Refactored ProjectGenerator.<commit_after>package org.chrisle.netbeans.plugins.csharp4netbeans.utils;

import java.io.File;
import java.io.FileWriter;
import org.chrisle.netbeans.plugins.csharp4netbeans.beans.CSharpProjectType;
import org.openide.util.Exceptions;

/**
 *
 * @author ChrisLE
 */
public class ProjectGenerator {
    private final CSharpProjectType _projType;

    public ProjectGenerator(CSharpProjectType pt) {
        this._projType = pt;
    }

    public void createProjFolder() {
        File slnDir = new File(this._projType.getSlnPath());
        File projDir = new File(slnDir, this._projType.getProjName());
        projDir.mkdirs();

        File projFile = new File(projDir, this._projType.getProjName() + ".csproj");

        try (FileWriter fileWriter = new FileWriter(projFile)) {
            fileWriter.write("# Test");
        } catch (Exception ex) {
            Exceptions.printStackTrace(ex);
        }
    }

    public void addProjectSettingsToSln(File slnFile) {
        
    }
}
{'fraction_non_alphanumeric': 0.11614730878186968, 'fraction_numerical': 0.002124645892351275, 'mean_word_length': 3.1315789473684212, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4826330', 'n_tokens_mistral': 450, 'n_tokens_neox': 426, 'n_words': 80}