Skip to content

Cannot Replicate Result in Defect4J by running the Defect4JExperiment.sh (got 0 patches) #39

Open

Description

@Elena6918

The problem is described in the title (and see attached image). I also wonder why it doesn't provide a model option in the Defect4JExperiment.sh when it calls sequencer-predict.sh as shown below:

echo "Generating patches for ${col1}_${col2}"
  $CURRENT_DIR/../sequencer-predict.sh --buggy_file=$BUG_PROJECT/$col3 --buggy_line=$col4 --beam_size=50 --output=$DEFECTS4J_PATCHES_DIR/${col1}_${col2}

image
image (1)

Activity

  1. faysalhossain2007 commented on Jun 22, 2022

    @faysalhossain2007

    You need to provide the model path in Defects4J_experiment.sh. For me, the following one works fine:

    ......
    model_path=$data_path/final-model_step_20000.pt
      echo "Generating patches for ${col1}_${col2}"
      $CURRENT_DIR/../sequencer-predict.sh --model=$model_path --buggy_file=$BUG_PROJECT/$col3 --buggy_line=$col4 --beam_size=50 --output=$DEFECTS4J_PATCHES_DIR/${col1}_${col2}
      echo
    ......
    
  2. monperrus commented on Aug 8, 2022

    @monperrus
    Collaborator
  3. Rliqrzyy commented on Nov 15, 2023

    @Rliqrzyy

    hi, have you resolved this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions