<commit_before>package de.saumya.mojo.rails3;

import java.io.IOException;

import org.apache.maven.plugin.MojoExecutionException;

import de.saumya.mojo.ruby.gems.GemException;
import de.saumya.mojo.ruby.rails.RailsException;
import de.saumya.mojo.ruby.script.ScriptException;

/**
 * goal to run rails rake with the given arguments.
 * 
 * @goal rake
 * @requiresDependencyResolution test
 */
public class RakeMojo extends AbstractRailsMojo {

    /**
     * arguments for the generate command
     * 
     * @parameter default-value="${rake.args}"
     */
    protected String rakeArgs = null;

    /**
     * the path to the application to be generated
     * 
     * @parameter default-value="${task}"
     */
    protected String task     = null;

    @Override
    public void executeRails() throws MojoExecutionException, ScriptException,
            IOException, GemException, RailsException {
        this.manager.rake(this.gemsInstaller,
                          this.repoSession,
                          launchDirectory(),
                          this.env,
                          this.task.trim(),
                          joinArgs(this.rakeArgs, this.args));
    }
}
<commit_msg>avoid NPE<commit_after>package de.saumya.mojo.rails3;

import java.io.IOException;

import org.apache.maven.plugin.MojoExecutionException;

import de.saumya.mojo.ruby.gems.GemException;
import de.saumya.mojo.ruby.rails.RailsException;
import de.saumya.mojo.ruby.script.ScriptException;

/**
 * goal to run rails rake with the given arguments.
 * 
 * @goal rake
 * @requiresDependencyResolution test
 */
public class RakeMojo extends AbstractRailsMojo {

    /**
     * arguments for the generate command
     * 
     * @parameter default-value="${rake.args}"
     */
    protected String rakeArgs = null;

    /**
     * the path to the application to be generated
     * 
     * @parameter default-value="${task}"
     */
    protected String task     = null;

    @Override
    public void executeRails() throws MojoExecutionException, ScriptException,
            IOException, GemException, RailsException {
        this.manager.rake(this.gemsInstaller,
                          this.repoSession,
                          launchDirectory(),
                          this.env,
                          this.task == null ? null : this.task.trim(),
                          joinArgs(this.rakeArgs, this.args));
    }
}

{'fraction_non_alphanumeric': 0.09855670103092784, 'fraction_numerical': 0.0008247422680412372, 'mean_word_length': 2.2047556142668427, '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': '2893589', 'n_tokens_mistral': 702, 'n_tokens_neox': 664, 'n_words': 148}