<commit_before>package org.jenkinsci.plugins.workflow.steps.build;

import hudson.model.Run;
import jenkins.model.RunAction2;
import org.jenkinsci.plugins.workflow.steps.StepContext;

/**
 * @author <NAME>
 */
public class BuildTriggerAction implements RunAction2 {
    private final StepContext context;

    private Run run;

    public BuildTriggerAction(StepContext context) {
        this.context = context;
    }

    public StepContext getStepContext(){
        return context;
    }

    @Override
    public void onAttached(Run<?, ?> r) {

    }

    @Override
    public void onLoad(Run<?, ?> r) {
        this.run = r;
    }

    @Override
    public String getIconFileName() {
        return null;
    }

    @Override
    public String getDisplayName() {
        return null;
    }

    @Override
    public String getUrlName() {
        return null;
    }

    public Run getRun(){
        return run;
    }
}<commit_msg>BuildTriggerAction.run is unused, so it would better be deleted. Anyway it was marked as nontransient, which is very bad (the whole reason RunAction2 exists is to allow you to make such fields transient). And it was not even set in onAttached.<commit_after>package org.jenkinsci.plugins.workflow.steps.build;

import hudson.model.Run;
import jenkins.model.RunAction2;
import org.jenkinsci.plugins.workflow.steps.StepContext;

/**
 * @author <NAME>
 */
public class BuildTriggerAction implements RunAction2 {
    private final StepContext context;

    public BuildTriggerAction(StepContext context) {
        this.context = context;
    }

    public StepContext getStepContext(){
        return context;
    }

    @Override
    public void onAttached(Run<?, ?> r) {
    }

    @Override
    public void onLoad(Run<?, ?> r) {
    }

    @Override
    public String getIconFileName() {
        return null;
    }

    @Override
    public String getDisplayName() {
        return null;
    }

    @Override
    public String getUrlName() {
        return null;
    }

}
{'fraction_non_alphanumeric': 0.09131736526946108, 'fraction_numerical': 0.00249500998003992, 'mean_word_length': 2.712962962962963, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '5456436', 'n_tokens_mistral': 596, 'n_tokens_neox': 570, 'n_words': 164}