nus-yam/ex-repair huggingface dataset:
Buggy code:
public class RADIUS extends BasePacket { protected byte code ; protected byte identifier ; protected short length = RADIUS . RADIUS_MIN_LENGTH ; protected byte [ ] authenticator = new byte [ 16 ] ; protected List < RADIUSAttribute > attributes = new ArrayList < > ( ) ; public static final short RADIUS_MIN_LENGTH = 20 ; public static final short MAX_ATTR_VALUE_LENGTH = 253 ; public static final short RADIUS_MAX_LENGTH = 4096 ; public static final byte RADIUS_CODE_ACCESS_REQUEST = 1 ; public static final byte RADIUS_CODE_ACCESS_ACCEPT = 2 ; public static final byte RADIUS_CODE_ACCESS_REJECT = 3 ; public static final byte RADIUS_CODE_ACCOUNTING_REQUEST = 4 ; public static final byte RADIUS_CODE_ACCOUNTING_RESPONSE = 5 ; public static final byte RADIUS_CODE_ACCESS_CHALLENGE = 11 ; private final Logger log = getLogger ( getClass ( ) ) ; public RADIUS ( ) { } public RADIUS ( byte code , byte identifier ) { } public byte getCode ( ) { } public void setCode ( byte code ) { } public byte getIdentifier ( ) { } public void setIdentifier ( byte identifier ) { } public byte [ ] getAuthenticator ( ) { } public void setAuthenticator ( byte [ ] authenticator ) { } public byte [ ] generateAuthCode ( ) { } public boolean isValidCode ( ) { } public RADIUSAttribute addMessageAuthenticator ( String key ) { } public boolean checkMessageAuthenticator ( String key ) { } public void encapsulateMessage ( EAP message ) { } public EAP decapsulateMessage ( ) { } public ArrayList < RADIUSAttribute > getAttributeList ( byte attrType ) { } public RADIUSAttribute getAttribute ( byte attrType ) { } public RADIUSAttribute setAttribute ( byte attrType , byte [ ] value ) { } public RADIUSAttribute updateAttribute ( byte attrType , byte [ ] value ) { } public static Deserializer < RADIUS > deserializer ( ) { return ( data , offset , length ) -> { checkInput ( data , offset , length , RADIUS_MIN_LENGTH ) ; final ByteBuffer bb = ByteBuffer . wrap ( data , offset , length ) ; RADIUS radius = new RADIUS ( ) ; radius . code = bb . get ( ) ; radius . identifier = bb . get ( ) ; radius . length = bb . getShort ( ) ; bb . get ( radius . authenticator , 0 , 16 ) ; checkHeaderLength ( length , radius . length ) ; int remainingLength = radius . length - ( RADIUS_MIN_LENGTH ) ; while ( ( remainingLength > 0 ) && ( bb . hasRemaining ( ) ) ) { RADIUSAttribute attr = new RADIUSAttribute ( ) ; attr . setType ( bb . get ( ) ) ; attr . setLength ( bb . get ( ) ) ; short attrLength = ( ( short ) ( attr . length & 255 ) ) ; attr . value = new byte [ attrLength - 2 ] ; bb . get ( attr . value , 0 , ( attrLength - 2 ) ) ; radius . attributes . add ( attr ) ; <START_BUG> remainingLength -= attr . length ; <END_BUG> } return radius ; } ; } @ Override public byte [ ] serialize ( ) { } @ Override public IPacket deserialize ( final byte [ ] data , final int offset , final int length ) { } @ Override public String toString ( ) { } }

Fix:
remainingLength -= attrLength ;
Buggy code:
public class ConstrainedAnnealingMO extends SimulatedAnnealingMO { public ConstrainedAnnealingMO ( Solution start ) { } public ConstrainedAnnealingMO ( Solution start , double initialTemperature , CoolingProcedure cp , AcceptancePolicy ap ) { } @ Override public boolean compareToParetoFront ( Solution s ) { Iterator < Solution > iterator = paretoFront . iterator ( ) ; boolean nonDominated = true ; boolean added = false ; boolean sViolates = ( ( s . getViolatedConstraintsNumber ( ) ) > 0 ) ? true : false ; ArrayList < Solution > toRemove = new ArrayList < Solution > ( ) ; while ( iterator . hasNext ( ) ) { Solution p = iterator . next ( ) ; boolean pViolates = ( ( p . getViolatedConstraintsNumber ( ) ) > 0 ) ? true : false ; if ( ( sViolates && pViolates ) || ( ( ! sViolates ) && ( ! pViolates ) ) ) { <START_BUG> if ( s . equals ( p ) ) <END_BUG> return true ; int dominate = domination ( s , p ) ; switch ( dominate ) { case - 1 : toRemove . add ( p ) ; break ; case 0 : break ; case 1 : return false ; default : System . err . println ( "Wrong<seq2seq4repair_space>value" ) ; break ; } } else if ( sViolates && ( ! pViolates ) ) { int dominate = domination ( s , p ) ; switch ( dominate ) { case - 1 : break ; case 0 : break ; case 1 : return false ; default : System . err . println ( "Wrong<seq2seq4repair_space>value" ) ; break ; } } else if ( ( ! sViolates ) && pViolates ) { continue ; } } paretoFront . add ( s ) ; paretoFront . removeAll ( toRemove ) ; return false ; } }

Fix:
if ( s . sameObjectives ( p ) )
Buggy code:
public class MainActivity extends Activity { private EditText mHostIP ; private EditText mEmailView ; private EditText mPasswordView ; private View mProgressView ; private Button mButton ; private boolean mIsRememberMe ; private boolean mIsAutoLogon ; private CheckBox mRememberMeView ; private CheckBox mAutoLogonView ; private MainActivity . UserLoginTask mAuthTask = null ; @ Override protected void onCreate ( Bundle savedInstanceState ) { } private void init_view ( ) { <START_BUG> SharedPreferences sharedPref = getPreferences ( MODE_PRIVATE ) ; <END_BUG> mHostIP . setText ( sharedPref . getString ( "HOST_IP" , "" ) ) ; mEmailView . setText ( sharedPref . getString ( "EMAIL" , "" ) ) ; mPasswordView . setText ( sharedPref . getString ( "PASSWORD" , "" ) ) ; mIsAutoLogon = sharedPref . getBoolean ( "AUTO_LOGON" , false ) ; mIsRememberMe = sharedPref . getBoolean ( "REMEMBER_ME" , false ) ; mRememberMeView . setChecked ( mIsRememberMe ) ; mAutoLogonView . setChecked ( mIsAutoLogon ) ; } @ TargetApi ( VERSION_CODES . HONEYCOMB_MR2 ) public void showProgress ( final boolean show ) { } public void set_remember_me ( View view ) { } public void set_auto_logon ( View view ) { } public void save_logon_info ( String hostip , String email , String password ) { } public void start_login ( View view ) { } public void showDialog ( String title , String message ) { } @ Override public boolean onCreateOptionsMenu ( Menu menu ) { } @ Override public boolean onOptionsItemSelected ( MenuItem item ) { } public class UserLoginTask extends AsyncTask < Void , Void , Boolean > { private final String mServerip ; private final String mEmail ; private final String mPassword ; private JSONArray array_vms ; private JSONArray array_vapps ; UserLoginTask ( String hostip , String email , String password ) { } @ Override protected void onPreExecute ( ) { } @ Override protected Boolean doInBackground ( Void ... params ) { } @ Override protected void onPostExecute ( final Boolean success ) { } @ Override protected void onCancelled ( ) { } public boolean auth_login ( String serverip , String email , String password ) { } } }

Fix:
SharedPreferences sharedPref = getSharedPreferences ( "creds" , MODE_PRIVATE ) ;
Buggy code:
public class ControlEditor { public int horizontalAlignment = SWT . CENTER ; public boolean grabHorizontal = false ; public int minimumWidth = 0 ; public int verticalAlignment = SWT . CENTER ; public boolean grabVertical = false ; public int minimumHeight = 0 ; Composite parent ; Control editor ; private boolean hadFocus ; private Listener controlListener ; private Listener scrollbarListener ; private static final int [ ] EVENTS = new int [ ] { SWT . KeyDown , SWT . KeyUp , SWT . MouseDown , SWT . MouseUp , SWT . Resize } ; public ControlEditor ( Composite parent ) { } Rectangle computeBounds ( ) { } public void dispose ( ) { <START_BUG> if ( ! ( parent . isDisposed ( ) ) ) { <END_BUG> for ( int i = 0 ; i < ( ControlEditor . EVENTS . length ) ; i ++ ) { parent . removeListener ( ControlEditor . EVENTS [ i ] , controlListener ) ; } ScrollBar hBar = parent . getHorizontalBar ( ) ; if ( hBar != null ) hBar . removeListener ( Selection , scrollbarListener ) ; ScrollBar vBar = parent . getVerticalBar ( ) ; if ( vBar != null ) vBar . removeListener ( Selection , scrollbarListener ) ; } parent = null ; editor = null ; hadFocus = false ; controlListener = null ; scrollbarListener = null ; } public Control getEditor ( ) { } public void layout ( ) { } void scroll ( Event e ) { } public void setEditor ( Control editor ) { } }

Fix:
if ( ( ( parent ) != null ) && ( ! ( parent . isDisposed ( ) ) ) ) {
Buggy code:
public class YTJBServer implements Server { public static final int PORT = 12345 ; public String workingDirectory ; private ServerSocket server ; private int port ; private ConnectionWaiter waiter ; private TrackScheduler scheduler ; private LinkedList < MusicTrack > wishList ; private LinkedList < MusicTrack > gapList ; private ArrayList < Connection > notifiables ; private ArrayList < Connection > player ; private InitFileCommunicator initFile ; private String currentGapList ; private String [ ] gapLists ; private GapListLoader gapListLoader ; private Semaphore playerFinished = new Semaphore ( 0 ) ; private int maxGapListTracks = 0 ; private Thread connectionBroadcast = null ; public void startUp ( ) { } public String getWorkingDir ( ) { } private synchronized String [ ] listToArray ( LinkedList < MusicTrack > list ) { } public int getCurrentClientCount ( ) { } public int getCurrentPlayerCount ( ) { } public synchronized void addToList ( MusicTrack track , boolean toWishList , boolean atFirst ) { } public int getPlayerCount ( ) { } public synchronized MusicTrack deleteFromList ( boolean fromWishList , int index ) { } public String getTitle ( boolean fromWishList ) { } public synchronized MusicTrack chooseNextTrack ( ) { } public void loadGapListFromFile ( ) { } public boolean saveGapListToFile ( ) { <START_BUG> boolean savedCorrectly = IO . saveGapListToFile ( gapList , ( ( workingDirectory ) + ( currentGapList ) ) ) ; <END_BUG> if ( savedCorrectly ) { searchGapLists ( ) ; this . notifyClients ( GAPLISTCOUNTCHANGEDNOTIFY , gapLists ) ; } return savedCorrectly ; } public int getCurrentLoadedGapListTracksCount ( ) { } public int getMaxLoadedGapListTracksCount ( ) { } public void setMaxGapListTrackCount ( int max ) { } public boolean deleteGapList ( String filename ) { } public TrackScheduler getScheduler ( ) { } public ServerSocket getServerSocket ( ) { } public String [ ] getGapListNames ( ) { } public String getCurrentGapListName ( ) { } public boolean setGapList ( String filename ) { } public String [ ] readOutGapList ( String filename ) { } public synchronized boolean switchWithUpper ( int index ) { } public synchronized void registerNotifiable ( Connection c ) { } public synchronized void registerPlayer ( Connection c ) { } public synchronized void removePlayer ( Connection c ) { } public synchronized void removeNotifiable ( Connection c ) { } public void playerHasFinished ( ) { } public void waitForPlayerToFinish ( ) { } public void notifyClients ( int messageType , String [ ] args ) { } public YTJBServer ( int port ) { } public void searchGapLists ( ) { } public String getIpAddress ( ) { } public void shutDown ( ) { } public static void main ( String [ ] args ) { } }

Fix:
boolean savedCorrectly = IO . saveGapListToFile ( gapList , ( ( workingDirectory ) + ( currentGapList ) ) , this ) ;
Buggy code:
public abstract class DispatchHandler { private static final Logger LOG = LoggerFactory . getLogger ( DispatchHandler . class ) ; private final PeerBean peerBean ; private final ConnectionBean connectionBean ; private boolean sign = false ; protected DispatchHandler ( final PeerBean peerBean , final ConnectionBean connectionBean ) { } public void register ( final int ... names ) { } public void register ( Number160 onBehalfOf , final int ... names ) { } public void sign ( final boolean sign ) { } public PeerBean peerBean ( ) { } public ConnectionBean connectionBean ( ) { } public Message createRequestMessage ( final PeerAddress recipient , final byte name , final Type type ) { } public Message createResponseMessage ( final Message requestMessage , final Type replyType ) { } public static Message createResponseMessage ( final Message requestMessage , final Type replyType , final PeerAddress peerAddress ) { } public void forwardMessage ( final Message requestMessage , PeerConnection peerConnection , Responder responder ) { synchronized ( peerBean . peerStatusListeners ( ) ) { for ( PeerStatusListener peerStatusListener : peerBean . peerStatusListeners ( ) ) { peerStatusListener . peerFound ( requestMessage . sender ( ) , requestMessage . sender ( ) , peerConnection ) ; } } try { handleResponse ( requestMessage , peerConnection , sign , responder ) ; } catch ( Throwable e ) { synchronized ( peerBean . peerStatusListeners ( ) ) { for ( PeerStatusListener peerStatusListener : peerBean . peerStatusListeners ( ) ) { peerStatusListener . peerFailed ( requestMessage . sender ( ) , new PeerException ( e ) ) ; } } DispatchHandler . LOG . error ( "Exception<seq2seq4repair_space>in<seq2seq4repair_space>custom<seq2seq4repair_space>dispatch<seq2seq4repair_space>handler." , e ) ; <START_BUG> responder . failed ( EXCEPTION , e . toString ( ) ) ; <END_BUG> } } public abstract void handleResponse ( Message message , PeerConnection peerConnection , boolean sign , Responder responder ) throws Exception { } }

Fix:
responder . failed ( EXCEPTION ) ;
Buggy code:
public class AssistInitializer extends Initializer { private Map bindingCache ; private Map infoCache ; public AssistInitializer ( JavaElement parent , int count , Map bindingCache , Map infoCache ) { } public Object getElementInfo ( IProgressMonitor monitor ) throws JavaModelException { <START_BUG> return infoCache . get ( this ) ; <END_BUG> } public IType getType ( String typeName , int count ) { } }

Fix:
return this . infoCache . get ( this ) ;
Buggy code:
class SourceField extends Member implements IField { protected SourceField ( IType parent , String name ) { } protected boolean equalsDOMNode ( IDOMNode node ) throws JavaModelException { } public Object getConstant ( ) throws JavaModelException { SourceFieldElementInfo info = ( ( SourceFieldElementInfo ) ( getElementInfo ( ) ) ) ; <START_BUG> return Member . convertConstant ( info . getConstant ( ) ) ; <END_BUG> } protected char getHandleMementoDelimiter ( ) { } public String getTypeSignature ( ) throws JavaModelException { } protected void toStringInfo ( int tab , StringBuffer buffer , Object info ) { } }

Fix:
return info . initializationSource ;
Buggy code:
public class AjConstructorDeclaration extends ConstructorDeclaration { public AjConstructorDeclaration ( CompilationResult compilationResult ) { } protected int generateInfoAttributes ( ClassFile classFile ) { } protected void addDeclarationStartLineAttribute ( List extraAttributeList , ClassFile classFile ) { if ( ! ( classFile . codeStream . generateLineNumberAttributes ) ) return ; int [ ] separators = compilationResult ( ) . lineSeparatorPositions ; int declarationStartLine = 1 ; for ( int i = 0 ; i < ( separators . length ) ; i ++ ) { if ( ( sourceStart ) < ( separators [ i ] ) ) break ; declarationStartLine ++ ; } <START_BUG> extraAttributeList . add ( new EclipseAttributeAdapter ( new AjAttribute . MethodDeclarationLineNumberAttribute ( declarationStartLine ) ) ) ; <END_BUG> } }

Fix:
extraAttributeList . add ( new EclipseAttributeAdapter ( new org . aspectj . weaver . AjAttribute . MethodDeclarationLineNumberAttribute ( declarationStartLine , this . sourceStart ( ) ) ) ) ;
Buggy code:
public class BlockMicroChest extends BlockContainer implements ITileEntityProvider { protected String textureName ; private boolean isLockable ; public BlockMicroChest ( Material mat , String textureName , boolean isLockable ) { } @ Override public TileEntity createNewTileEntity ( World world , int metaData ) { } @ Override public AxisAlignedBB getCollisionBoundingBoxFromPool ( World world , int x , int y , int z ) { } @ Override @ SideOnly ( Side . CLIENT ) public AxisAlignedBB getSelectedBoundingBoxFromPool ( World world , int x , int y , int z ) { } @ Override public void setBlockBoundsBasedOnState ( IBlockAccess world , int x , int y , int z ) { } public void updateChestBounds ( int meta ) { } @ Override public boolean renderAsNormalBlock ( ) { } @ Override public boolean isOpaqueCube ( ) { } @ Override public int getRenderType ( ) { } @ Override public boolean onBlockActivated ( World world , int x , int y , int z , EntityPlayer player , int par6 , float par7 , float par8 , float par9 ) { if ( world . isRemote ) { return true ; } else { if ( ( ! ( world . isRemote ) ) && ( ( world . getTileEntity ( x , y , z ) ) instanceof TileEntityMicroChest ) ) { TileEntityMicroChest tileEntity = ( ( TileEntityMicroChest ) ( world . getTileEntity ( x , y , z ) ) ) ; if ( tileEntity . hasUniqueOwner ( ) ) { if ( tileEntity . getUniqueOwner ( ) . equals ( ( ( player . getUniqueID ( ) . toString ( ) ) + ( player . getDisplayName ( ) ) ) ) ) { player . openGui ( instance , MICRO_CHEST . ordinal ( ) , world , x , y , z ) ; } else { PlayerHelper . sendChatMessage ( player , "This<seq2seq4repair_space>chest<seq2seq4repair_space>does<seq2seq4repair_space>not<seq2seq4repair_space>belong<seq2seq4repair_space>to<seq2seq4repair_space>you!<seq2seq4repair_space>Back<seq2seq4repair_space>off!" ) ; } } else { player . openGui ( instance , MICRO_CHEST . ordinal ( ) , world , x , y , z ) ; } } <START_BUG> return false ; <END_BUG> } } @ Override public boolean onBlockEventReceived ( World world , int x , int y , int z , int eventId , int eventData ) { } @ Override public float getPlayerRelativeBlockHardness ( EntityPlayer player , World world , int x , int y , int z ) { } @ Override public void breakBlock ( World world , int x , int y , int z , Block block , int meta ) { } @ Override public void onBlockPlacedBy ( World world , int x , int y , int z , EntityLivingBase entityLiving , ItemStack itemStack ) { } protected void dropInventory ( World world , int x , int y , int z ) { } @ Override public void registerBlockIcons ( IIconRegister iconRegister ) { } @ Override public String getTextureName ( ) { } public boolean getIsLockable ( ) { } }

Fix:
return true ;
Buggy code:
final class ClientConfigRemove extends AbstractRemoveStepHandler { static final ClientConfigRemove INSTANCE = new ClientConfigRemove ( ) ; private ClientConfigRemove ( ) { } @ Override protected void performRuntime ( OperationContext context , ModelNode operation , ModelNode model ) throws OperationFailedException { final ServerConfig config = PackageUtils . getServerConfig ( context ) ; if ( config != null ) { final PathAddress address = PathAddress . pathAddress ( operation . require ( OP_ADDR ) ) ; final String name = address . getLastElement ( ) . getValue ( ) ; ClientConfig target = null ; for ( ClientConfig clConfig : config . getClientConfigs ( ) ) { if ( clConfig . getConfigName ( ) . equals ( name ) ) { target = clConfig ; } } if ( target != null ) { config . getClientConfigs ( ) . remove ( target ) ; <START_BUG> context . restartRequired ( ) ; <END_BUG> } } } @ Override protected void recoverServices ( OperationContext context , ModelNode operation , ModelNode model ) throws OperationFailedException { } }

Fix:
context . reloadRequired ( ) ;
Buggy code:
public class ECFStartJob extends Job { IECFStart start ; public ECFStartJob ( String name , IECFStart start ) { } protected IStatus run ( IProgressMonitor monitor ) { <START_BUG> return start . startup ( monitor ) ; <END_BUG> } }

Fix:
return start . run ( monitor ) ;
Buggy code:
public class MockWebApplicationTest extends TestCase { private MockWebApplication application ; public MockWebApplicationTest ( String name ) { } protected void setUp ( ) throws Exception { } public void testRenderHomePage ( ) throws Exception { } public void testClickLink ( ) throws Exception { } private boolean validateDocument ( String document , int expectedLinkClickCount ) { HtmlDocumentValidator validator = new HtmlDocumentValidator ( ) ; Tag html = new Tag ( "html" ) ; Tag head = new Tag ( "head" ) ; html . addExpectedChild ( head ) ; Tag title = new Tag ( "title" ) ; head . addExpectedChild ( title ) ; title . addExpectedChild ( new TextContent ( "Mock<seq2seq4repair_space>Page" ) ) ; Tag body = new Tag ( "body" ) ; html . addExpectedChild ( body ) ; Tag a = new Tag ( "a" ) ; <START_BUG> a . addExpectedAttribute ( "href" , "//MockWebApplication//MockWebApplication\\?path=[0-9]+.actionLink(&amp;version=[0-9]+)?&amp;interface=ILinkListener" ) ; <END_BUG> a . addExpectedAttribute ( "wicket:id" , "actionLink" ) ; body . addExpectedChild ( a ) ; a . addExpectedChild ( new TextContent ( "Action<seq2seq4repair_space>link<seq2seq4repair_space>clicked<seq2seq4repair_space>" ) ) ; Tag span = new Tag ( "span" ) ; span . addExpectedChild ( new TextContent ( ( "" + expectedLinkClickCount ) ) ) ; a . addExpectedChild ( span ) ; a . addExpectedChild ( new TextContent ( "<seq2seq4repair_space>times" ) ) ; validator . addRootElement ( html ) ; return validator . isDocumentValid ( document ) ; } }

Fix:
a . addExpectedAttribute ( "href" , "//MockWebApplication//MockWebApplication\\?wicket:interface=:[0-9]+:actionLink:[0-9]*:ILinkListener" ) ;
Buggy code:
public class BCFileSet extends FileSet { public BCFileSet ( ) { } public BCFileSet ( FileSet fs ) { } public Iterator iterator ( ) { if ( isReference ( ) ) { return ( ( FileSet ) ( getRef ( getProject ( ) ) ) ) . iterator ( ) ; } <START_BUG> FileResourceIterator result = new FileResourceIterator ( getDir ( ) ) ; <END_BUG> result . addFiles ( getDirectoryScanner ( ) . getIncludedFiles ( ) ) ; result . addFiles ( getDirectoryScanner ( ) . getIncludedDirectories ( ) ) ; return result ; } public int size ( ) { } }

Fix:
FileResourceIterator result = new FileResourceIterator ( getProject ( ) , getDir ( ) ) ;
Buggy code:
public class Snake { private ArrayList < Segment > snake = new ArrayList < Segment > ( ) ; private long timeSinceLastMove = System . currentTimeMillis ( ) ; private long timeInterval = 75 ; private boolean headDirectionRequested = false ; private char requestedHeadDirection ; public Snake ( ) { } public void init ( ) { } public void update ( ) { if ( ( ( System . currentTimeMillis ( ) ) - ( timeSinceLastMove ) ) > ( timeInterval ) ) { for ( int i = ( snake . size ( ) ) - 1 ; i > 0 ; i -- ) { snake . get ( i ) . setDirection ( snake . get ( ( i - 1 ) ) . getDirection ( ) ) ; } if ( headDirectionRequested ) { snake . get ( 0 ) . setDirection ( requestedHeadDirection ) ; headDirectionRequested = false ; } for ( int i = 0 ; i < ( snake . size ( ) ) ; i ++ ) { switch ( snake . get ( i ) . getDirection ( ) ) { case 'r' : snake . get ( i ) . moveX ( 1 ) ; break ; case 'l' : snake . get ( i ) . moveX ( ( - 1 ) ) ; break ; case 'u' : snake . get ( i ) . moveY ( ( - 1 ) ) ; break ; case 'd' : snake . get ( i ) . moveY ( 1 ) ; break ; } } <START_BUG> if ( ( ( ( ( snake . get ( 0 ) . getX ( ) ) < 0 ) || ( ( snake . get ( 0 ) . getX ( ) ) > ( Grid . WIDTH ) ) ) || ( ( snake . get ( 0 ) . getY ( ) ) < 0 ) ) || ( ( snake . get ( 0 ) . getY ( ) ) > ( Grid . HEIGHT ) ) ) { <END_BUG> System . exit ( 0 ) ; } if ( ( snake . size ( ) ) > 4 ) { for ( int i = 4 ; i < ( snake . size ( ) ) ; i ++ ) { if ( ( ( snake . get ( 0 ) . getX ( ) ) == ( snake . get ( i ) . getX ( ) ) ) && ( ( snake . get ( 0 ) . getY ( ) ) == ( snake . get ( i ) . getY ( ) ) ) ) { System . exit ( 0 ) ; } } } timeSinceLastMove = System . currentTimeMillis ( ) ; } } public void render ( Graphics2D g2d ) { } private void addSegment ( int n ) { } public void setHeadDirectionRequest ( char direction ) { } public void munch ( Food food ) { } }

Fix:
if ( ( ( ( ( snake . get ( 0 ) . getX ( ) ) < 0 ) || ( ( snake . get ( 0 ) . getX ( ) ) >= ( Grid . WIDTH ) ) ) || ( ( snake . get ( 0 ) . getY ( ) ) < 0 ) ) || ( ( snake . get ( 0 ) . getY ( ) ) >= ( Grid . HEIGHT ) ) ) {
Buggy code:
public class TeleTyperFormatAction extends CheckBoxAction implements ContainerListener , Observer { public TeleTyperFormatAction ( FrameMediator frameMediator ) { } public void update ( Observable arg0 , Object arg1 ) { } public void actionPerformed ( ActionEvent evt ) { } public void componentAdded ( ContainerEvent e ) { <START_BUG> log . debug ( "Re-registering<seq2seq4repair_space>as<seq2seq4repair_space>observer<seq2seq4repair_space>on<seq2seq4repair_space>editor<seq2seq4repair_space>controller" ) ; <END_BUG> ( ( org . columba . mail . gui . composer . ComposerController ) ( getFrameMediator ( ) ) ) . getEditorController ( ) . addObserver ( this ) ; } public void componentRemoved ( ContainerEvent e ) { } }

Fix:
log . info ( "Re-registering<seq2seq4repair_space>as<seq2seq4repair_space>observer<seq2seq4repair_space>on<seq2seq4repair_space>editor<seq2seq4repair_space>controller" ) ;
Buggy code:
public class Encrypter { private static char [ ] alpha ; public static char [ ] EncryptByCaesar ( int key , char [ ] plainText ) { } public static char [ ] EncryptByAffine ( int sumKey , int producyKey , char [ ] plainText ) { } public static char [ ] EncryptByPlayFair ( char [ ] key , char [ ] plainText ) { } public static char [ ] EncryptByVigenere ( char [ ] key , char [ ] plainText ) { } public static char [ ] EncryptByAutoKey ( char [ ] key , char [ ] plainText ) { } private static char [ ] createValidPlainText ( char [ ] plainText ) { } private static Pair findLocation ( char [ ] [ ] keyMatrix , char c ) { } private static void fillFullMatrix ( ) { } private static void markAlpha ( char c ) { } private static char [ ] generateValidKey ( char [ ] key ) { } public static void main ( String [ ] args ) { <START_BUG> String x = "cuzwr" ; <END_BUG> char [ ] y = x . toCharArray ( ) ; char [ ] z = "royalnewzdvbcfghikmpqstux" . toCharArray ( ) ; System . out . println ( Encrypter . EncryptByPlayFair ( z , y ) ) ; } }

Fix:
String x = "lrlulu" ;
Buggy code:
class Token { private static final int INITIAL_TOKEN_LENGTH = 50 ; enum Type { INVALID , TOKEN , EOF , EORECORD , COMMENT ; } Token . Type type = Token . Type . INVALID ; StringBuilder content = new StringBuilder ( Token . INITIAL_TOKEN_LENGTH ) ; boolean isReady ; Token reset ( ) { } @ Override public String toString ( ) { <START_BUG> return type . name ( ) ; <END_BUG> } }

Fix:
return ( ( ( type . name ( ) ) + "<seq2seq4repair_space>[" ) + ( content . toString ( ) ) ) + "]" ;
Buggy code:
reader . accept ( cNode , 0 ) ; <START_BUG> if ( name . equals ( class_biomeGenBase . get ( ) ) ) { <END_BUG>

Fix:
if ( transformedName . equals ( class_biomeGenBase . get ( ) ) ) {
Buggy code:
public class Uploader extends Thread { private static final String TAG = "de.smart_sense.tracker.libs.data_zip_upload.Uploader" ; public static final String MESSAGE_TYPE_ACTION = "de.smart_sense.tracker.libs.data_zip_upload.MESSAGE_TYPE_ACTION" ; public static final int MESSAGE_ACTION_UPLOAD = 0 ; private SharedPreferences sharedPrefs ; private ConnectivityManager connManager ; private static String sID = null ; private Handler inHandler ; private ZipUploadService zus ; public Uploader ( Context context ) { } public void run ( ) { } private boolean doingMagic ( ) { } private String getFilenameToUpload ( ) { } private String getFilenameToUpload ( Boolean full ) { File dir = Environment . getExternalStoragePublicDirectory ( ( ( ( Environment . DIRECTORY_DOCUMENTS ) + ( File . separator ) ) + ( Util . fileDir ) ) ) ; String [ ] listOfFiles = dir . list ( new FilenameFilter ( ) { @ Override public boolean accept ( File dir , String filename ) { return filename . endsWith ( ".zip" ) ? true : false ; } } ) ; Arrays . sort ( listOfFiles ) ; <START_BUG> if ( ( listOfFiles . length ) > 1 ) { <END_BUG> if ( full ) return ( ( dir . getAbsolutePath ( ) ) + ( File . separator ) ) + ( listOfFiles [ 0 ] ) ; return listOfFiles [ 0 ] ; } return null ; } public synchronized void requestStop ( ) { } public synchronized void up ( ) { } private Handler getHandler ( ) { } }

Fix:
if ( ( listOfFiles . length ) > 0 ) {
Buggy code:
public class TestWindowsMMap extends LuceneTestCase { private static final String alphabet = "abcdefghijklmnopqrstuvwzyz" ; private Random random ; public void setUp ( ) throws Exception { } private String randomToken ( ) { } private String randomField ( ) { } private static final String storePathname = new File ( System . getProperty ( "tempDir" ) , "testLuceneMmap" ) . getAbsolutePath ( ) ; public void testMmapIndex ( ) throws Exception { FSDirectory storeDirectory ; storeDirectory = new MMapDirectory ( new File ( TestWindowsMMap . storePathname ) , null ) ; StandardAnalyzer analyzer = new StandardAnalyzer ( new HashSet ( ) ) ; IndexWriter writer = new IndexWriter ( storeDirectory , analyzer , true , MaxFieldLength . LIMITED ) ; <START_BUG> IndexSearcher searcher = new IndexSearcher ( TestWindowsMMap . storePathname ) ; <END_BUG> for ( int dx = 0 ; dx < 1000 ; dx ++ ) { String f = randomField ( ) ; Document doc = new Document ( ) ; doc . add ( new org . apache . lucene . document . Field ( "data" , f , Store . YES , Index . ANALYZED ) ) ; writer . addDocument ( doc ) ; } searcher . close ( ) ; writer . close ( ) ; rmDir ( new File ( TestWindowsMMap . storePathname ) ) ; } private void rmDir ( File dir ) { } }

Fix:
IndexSearcher searcher = new IndexSearcher ( storeDirectory , true ) ;
Buggy code:
public class WildcardBinding extends ReferenceBinding { ReferenceBinding genericType ; int rank ; public TypeBinding bound ; char [ ] genericSignature ; public int kind ; ReferenceBinding superclass ; ReferenceBinding [ ] superInterfaces ; TypeVariableBinding typeVariable ; LookupEnvironment environment ; public WildcardBinding ( ReferenceBinding genericType , int rank , TypeBinding bound , int kind , LookupEnvironment environment ) { } public int kind ( ) { } public boolean boundCheck ( TypeBinding argumentType ) { } public boolean canBeInstantiated ( ) { } public void collectSubstitutes ( TypeBinding otherType , Map substitutes ) { } public String debugName ( ) { } public TypeBinding erasure ( ) { } public char [ ] genericTypeSignature ( ) { } public int hashCode ( ) { } void initialize ( ReferenceBinding someGenericType , TypeBinding someBound ) { } public boolean isSuperclassOf ( ReferenceBinding otherType ) { if ( ( this . kind ) == ( Wildcard . SUPER ) ) { if ( ( this . bound ) instanceof ReferenceBinding ) { return ( ( ReferenceBinding ) ( this . bound ) ) . isSuperclassOf ( otherType ) ; } else { <START_BUG> return ( otherType . id ) == ( T_Object ) ; <END_BUG> } } return false ; } public boolean isUnboundWildcard ( ) { } public boolean isWildcard ( ) { } public char [ ] readableName ( ) { } ReferenceBinding resolve ( ) { } public char [ ] shortReadableName ( ) { } public char [ ] signature ( ) { } public char [ ] sourceName ( ) { } public ReferenceBinding superclass ( ) { } public ReferenceBinding [ ] superInterfaces ( ) { } public void swapUnresolved ( UnresolvedReferenceBinding unresolvedType , ReferenceBinding resolvedType , LookupEnvironment env ) { } public String toString ( ) { } public TypeVariableBinding typeVariable ( ) { } }

Fix:
return ( otherType . id ) == ( T_JavaLangObject ) ;
Buggy code:
public class SourceTypeConverter implements CompilerModifiers { private boolean needFieldInitialization ; private CompilationUnitDeclaration unit ; private Parser parser ; private ProblemReporter problemReporter ; private SourceTypeConverter ( boolean needFieldInitialization , ProblemReporter problemReporter ) { } public static CompilationUnitDeclaration buildCompilationUnit ( ISourceType [ ] sourceTypes , boolean needFieldsAndMethods , boolean needMemberTypes , boolean needFieldInitialization , ProblemReporter problemReporter , CompilationResult compilationResult ) { } private CompilationUnitDeclaration convert ( ISourceType [ ] sourceTypes , boolean needFieldsAndMethods , boolean needMemberTypes , CompilationResult compilationResult ) { ISourceType sourceType = sourceTypes [ 0 ] ; if ( ( sourceType . getName ( ) ) == null ) return null ; <START_BUG> this . unit = new CompilationUnitDeclaration ( problemReporter , compilationResult , 0 ) ; <END_BUG> int start = sourceType . getNameSourceStart ( ) ; int end = sourceType . getNameSourceEnd ( ) ; if ( ( ( sourceType . getPackageName ( ) ) != null ) && ( ( sourceType . getPackageName ( ) . length ) > 0 ) ) this . unit . currentPackage = createImportReference ( sourceType . getPackageName ( ) , start , end , false , AccDefault ) ; ISourceImport [ ] sourceImports = sourceType . getImports ( ) ; int importCount = ( sourceImports == null ) ? 0 : sourceImports . length ; this . unit . imports = new ImportReference [ importCount ] ; for ( int i = 0 ; i < importCount ; i ++ ) { ISourceImport sourceImport = sourceImports [ i ] ; this . unit . imports [ i ] = createImportReference ( sourceImport . getName ( ) , sourceImport . getDeclarationSourceStart ( ) , sourceImport . getDeclarationSourceEnd ( ) , sourceImport . onDemand ( ) , sourceImport . getModifiers ( ) ) ; } int typeCount = sourceTypes . length ; this . unit . types = new TypeDeclaration [ typeCount ] ; for ( int i = 0 ; i < typeCount ; i ++ ) { this . unit . types [ i ] = convert ( sourceTypes [ i ] , needFieldsAndMethods , needMemberTypes , compilationResult ) ; } return this . unit ; } private FieldDeclaration convert ( ISourceField sourceField , TypeDeclaration type ) { } private AbstractMethodDeclaration convert ( ISourceMethod sourceMethod , CompilationResult compilationResult ) { } private TypeDeclaration convert ( ISourceType sourceType , boolean needFieldsAndMethods , boolean needMemberTypes , CompilationResult compilationResult ) { } private ImportReference createImportReference ( char [ ] importName , int start , int end , boolean onDemand , int modifiers ) { } private TypeReference createTypeReference ( char [ ] typeSignature , int start , int end ) { } }

Fix:
this . unit = new CompilationUnitDeclaration ( this . problemReporter , compilationResult , 0 ) ;
Buggy code:
public class ViewMessageCommand extends Command implements ISelectionListener { private Flags flags ; private IMailbox srcFolder ; private Object uid ; private IFrameMediator mediator ; private boolean updateGui ; private IStructureValue value ; private String subject ; private String bodyText ; private Date date ; private Name name ; private Address from ; public ViewMessageCommand ( IFrameMediator mediator , ICommandReference reference ) { } public void updateGUI ( ) throws Exception { } private void fillContext ( ) { } public void execute ( IWorkerStatusController wsc ) throws Exception { } private void prepareContextData ( ) throws Exception { value = mediator . getSemanticContext ( ) . createValue ( ) ; from = ( ( Address ) ( srcFolder . getAttribute ( uid , "columba.from" ) ) ) ; <START_BUG> name = NameParser . getInstance ( ) . parseDisplayName ( from . toString ( ) ) ; <END_BUG> subject = ( ( String ) ( srcFolder . getAttribute ( uid , "columba.subject" ) ) ) ; date = ( ( Date ) ( srcFolder . getAttribute ( uid , "columba.date" ) ) ) ; } private void restartMarkAsReadTimer ( Flags flags , IMessageController messageController , IMailFolderCommandReference r ) throws Exception { } public void selectionChanged ( SelectionChangedEvent e ) { } }

Fix:
name = NameParser . getInstance ( ) . parseDisplayName ( from . getDisplayName ( ) ) ;
Buggy code:
public class ESM_EntityAICreeperSwell extends EntityAIBase { EntityCreeper swellingCreeper ; EntityLivingBase creeperAttackTarget ; double detDist = 9.0 ; boolean breachLock = false ; public ESM_EntityAICreeperSwell ( EntityCreeper par1EntityCreeper ) { } public boolean shouldExecute ( ) { } public void startExecuting ( ) { } public void resetTask ( ) { } public void updateTask ( ) { if ( breachLock ) { this . swellingCreeper . setCreeperState ( 1 ) ; return ; } <START_BUG> boolean enableBreach = ( ( ! ( this . swellingCreeper . getEntitySenses ( ) . canSee ( this . creeperAttackTarget ) ) ) && ( ESM_Settings . CreeperBreaching ) ) && ( swellingCreeper . getNavigator ( ) . noPath ( ) ) ; <END_BUG> if ( ( this . creeperAttackTarget ) == null ) { this . swellingCreeper . setCreeperState ( ( - 1 ) ) ; } else if ( ( this . swellingCreeper . getDistanceSqToEntity ( this . creeperAttackTarget ) ) > ( ( detDist ) * 2 ) ) { this . swellingCreeper . setCreeperState ( ( - 1 ) ) ; } else if ( ( ! ( this . swellingCreeper . getEntitySenses ( ) . canSee ( this . creeperAttackTarget ) ) ) && ( ! enableBreach ) ) { this . swellingCreeper . setCreeperState ( ( - 1 ) ) ; } else { if ( enableBreach ) { breachLock = true ; } this . swellingCreeper . setCreeperState ( 1 ) ; } } }

Fix:
boolean enableBreach = ( ( ( ( this . creeperAttackTarget ) != null ) && ( ! ( this . swellingCreeper . getEntitySenses ( ) . canSee ( this . creeperAttackTarget ) ) ) ) && ( ESM_Settings . CreeperBreaching ) ) && ( swellingCreeper . getNavigator ( ) . noPath ( ) ) ;
Buggy code:
public class MappingProjectRepositoryImpl implements MappingProjectRepository { public static final MappingProjectMetaData META_DATA = new MappingProjectMetaData ( ) ; private final DataService dataService ; @ Autowired private MolgenisUserService molgenisUserService ; @ Autowired private IdGenerator idGenerator ; private final MappingTargetRepository mappingTargetRepository ; public MappingProjectRepositoryImpl ( DataService dataService , MappingTargetRepository mappingTargetRepository ) { } @ Override @ Transactional public void add ( MappingProject mappingProject ) { } @ Override @ Transactional public void update ( MappingProject mappingProject ) { MappingProject existing = getMappingProject ( mappingProject . getIdentifier ( ) ) ; if ( existing == null ) { <START_BUG> throw new MolgenisDataException ( "MappingProject<seq2seq4repair_space>does<seq2seq4repair_space>not<seq2seq4repair_space>exists" ) ; <END_BUG> } Entity mappingProjectEntity = toEntity ( mappingProject ) ; dataService . update ( MappingProjectRepositoryImpl . META_DATA . getName ( ) , mappingProjectEntity ) ; } @ Override public MappingProject getMappingProject ( String identifier ) { } @ Override public List < MappingProject > getAllMappingProjects ( ) { } @ Override public List < MappingProject > getMappingProjects ( Query q ) { } private MappingProject toMappingProject ( Entity mappingProjectEntity ) { } private Entity toEntity ( MappingProject mappingProject ) { } @ Override public void delete ( String mappingProjectId ) { } No newline ; at end ; of file ; }

Fix:
throw new MolgenisDataException ( "MappingProject<seq2seq4repair_space>does<seq2seq4repair_space>not<seq2seq4repair_space>exist" ) ;
Buggy code:
public class OpenMapRealMatrix extends AbstractRealMatrix implements Serializable , SparseRealMatrix { private static final long serialVersionUID = - 5962461716457143437L ; private final int rowDimension ; private final int columnDimension ; private final OpenIntToDoubleHashMap entries ; public OpenMapRealMatrix ( int rowDimension , int columnDimension ) { } public OpenMapRealMatrix ( OpenMapRealMatrix matrix ) { } @ Override public OpenMapRealMatrix copy ( ) { } @ Override public OpenMapRealMatrix createMatrix ( int rowDimension , int columnDimension ) throws IllegalArgumentException { } @ Override public int getColumnDimension ( ) { } @ Override public OpenMapRealMatrix add ( final RealMatrix m ) throws IllegalArgumentException { } public OpenMapRealMatrix add ( OpenMapRealMatrix m ) throws IllegalArgumentException { } @ Override public OpenMapRealMatrix subtract ( final RealMatrix m ) throws IllegalArgumentException { } public OpenMapRealMatrix subtract ( OpenMapRealMatrix m ) throws IllegalArgumentException { } @ Override public RealMatrix multiply ( final RealMatrix m ) throws IllegalArgumentException { try { return multiply ( ( ( OpenMapRealMatrix ) ( m ) ) ) ; } catch ( ClassCastException cce ) { MatrixUtils . checkMultiplicationCompatible ( this , m ) ; final int outCols = m . getColumnDimension ( ) ; <START_BUG> final DenseRealMatrix out = new DenseRealMatrix ( rowDimension , outCols ) ; <END_BUG> for ( OpenIntToDoubleHashMap . Iterator iterator = entries . iterator ( ) ; iterator . hasNext ( ) ; ) { iterator . advance ( ) ; final double value = iterator . value ( ) ; final int key = iterator . key ( ) ; final int i = key // ( columnDimension ) ; final int k = key % ( columnDimension ) ; for ( int j = 0 ; j < outCols ; ++ j ) { out . addToEntry ( i , j , ( value * ( m . getEntry ( k , j ) ) ) ) ; } } return out ; } } public OpenMapRealMatrix multiply ( OpenMapRealMatrix m ) throws IllegalArgumentException { } @ Override public double getEntry ( int row , int column ) throws MatrixIndexException { } @ Override public int getRowDimension ( ) { } @ Override public void setEntry ( int row , int column , double value ) throws MatrixIndexException { } @ Override public void addToEntry ( int row , int column , double increment ) throws MatrixIndexException { } @ Override public void multiplyEntry ( int row , int column , double factor ) throws MatrixIndexException { } private int computeKey ( int row , int column ) { } }

Fix:
final BlockRealMatrix out = new BlockRealMatrix ( rowDimension , outCols ) ;
Buggy code:
public class FormattableUtilsTest { @ Test public void testDefaultAppend ( ) { } @ Test public void testAlternatePadCharacter ( ) { <START_BUG> char pad = '_' ; <END_BUG> assertEquals ( "foo" , FormattableUtils . append ( "foo" , new Formatter ( ) , 0 , ( - 1 ) , ( - 1 ) , pad ) . toString ( ) ) ; assertEquals ( "fo" , FormattableUtils . append ( "foo" , new Formatter ( ) , 0 , ( - 1 ) , 2 , pad ) . toString ( ) ) ; assertEquals ( "_foo" , FormattableUtils . append ( "foo" , new Formatter ( ) , 0 , 4 , ( - 1 ) , pad ) . toString ( ) ) ; assertEquals ( "___foo" , FormattableUtils . append ( "foo" , new Formatter ( ) , 0 , 6 , ( - 1 ) , pad ) . toString ( ) ) ; assertEquals ( "_fo" , FormattableUtils . append ( "foo" , new Formatter ( ) , 0 , 3 , 2 , pad ) . toString ( ) ) ; assertEquals ( "___fo" , FormattableUtils . append ( "foo" , new Formatter ( ) , 0 , 5 , 2 , pad ) . toString ( ) ) ; assertEquals ( "foo_" , FormattableUtils . append ( "foo" , new Formatter ( ) , FormattableFlags . LEFT_JUSTIFY , 4 , ( - 1 ) , pad ) . toString ( ) ) ; assertEquals ( "foo___" , FormattableUtils . append ( "foo" , new Formatter ( ) , FormattableFlags . LEFT_JUSTIFY , 6 , ( - 1 ) , pad ) . toString ( ) ) ; assertEquals ( "fo_" , FormattableUtils . append ( "foo" , new Formatter ( ) , FormattableFlags . LEFT_JUSTIFY , 3 , 2 , pad ) . toString ( ) ) ; assertEquals ( "fo___" , FormattableUtils . append ( "foo" , new Formatter ( ) , FormattableFlags . LEFT_JUSTIFY , 5 , 2 , pad ) . toString ( ) ) ; } @ Test public void testEllipsis ( ) { } @ Test ( expected = IllegalArgumentException . class ) public void testIllegalEllipsis ( ) { } @ Test public void testAlternatePadCharAndEllipsis ( ) { } }

Fix:
final char pad = '_' ;
Buggy code:
public class TestItalianLightStemFilter extends BaseTokenStreamTestCase { private Analyzer analyzer = new Analyzer ( ) { @ Override protected TokenStreamComponents createComponents ( String fieldName , Reader reader ) { } } ; public void testVocabulary ( ) throws IOException { } public void testRandomStrings ( ) throws Exception { <START_BUG> checkRandomData ( random ( ) , analyzer , ( 10000 * ( RANDOM_MULTIPLIER ) ) ) ; <END_BUG> } public void testEmptyTerm ( ) throws IOException { } }

Fix:
checkRandomData ( random ( ) , analyzer , ( 1000 * ( RANDOM_MULTIPLIER ) ) ) ;
Buggy code:
public class DoubleProperty extends NumberProperty { private static final long serialVersionUID = 240L ; private double value ; private double savedValue ; public DoubleProperty ( String name , double value ) { } public DoubleProperty ( ) { } public void setValue ( float value ) { } @ Override protected void setNumberValue ( Number n ) { } @ Override protected void setNumberValue ( String n ) throws NumberFormatException { } public String getStringValue ( ) { } public Object getObjectValue ( ) { } @ Override <START_BUG> public Object clone ( ) { <END_BUG> DoubleProperty prop = ( ( DoubleProperty ) ( super . clone ( ) ) ) ; prop . value = value ; return prop ; } @ Override public boolean getBooleanValue ( ) { } @ Override public double getDoubleValue ( ) { } @ Override public float getFloatValue ( ) { } @ Override public int getIntValue ( ) { } @ Override public long getLongValue ( ) { } @ Override public void setRunningVersion ( boolean runningVersion ) { } public void recoverRunningVersion ( TestElement owner ) { } }

Fix:
public DoubleProperty clone ( ) {
Buggy code:
@ Slf4j @ Service public class JobService { @ Autowired private AnalysisEngine analysisEngine ; @ Autowired private IJobRepository jobRepo ; @ Autowired private IJobRunningRepository jobRunningRepo ; @ Autowired private IScenarioRunningRepository scenarioRunningRepo ; @ Autowired JobQueue queue ; public Job findJobBy ( Long id ) { } public JobRunning findJobRunningBy ( Long id ) { } public void saveScenarioRunningStatus ( ScenarioRunning scenarioRunning , String status ) { } public void saveJobRunningStatus ( JobRunning jobRunning , String status ) { } public JobRunning saveJobRunning ( JobRunning jobRunning ) { } public ScenarioRunning saveScenarioRunning ( ScenarioRunning scenarioRunning ) { } public List < JobRunning > findUnFinishedJobInQueue ( String syn , String status ) { } public String genReport ( ScenarioRunningResult result ) { } public FileInfo writeReportToFile ( String report , String userName ) { <START_BUG> String root = FileUtil . getvalue ( "result_file_full_path" , "sm.properties" ) ; <END_BUG> String targetFilePath = ( ( root + ( FileUtil . separator ) ) + userName ) + ( FileUtil . separator ) ; if ( ! ( FileUtil . isDir ( targetFilePath ) ) ) { FileUtil . createDir ( targetFilePath ) ; } String fileName = ( System . currentTimeMillis ( ) ) + ".laas" ; FileUtil . writeFile ( report , ( targetFilePath + fileName ) ) ; return new FileInfo ( targetFilePath , fileName ) ; } public void handleResultFile ( ScenarioRunning scenarioRunning , FileInfo info ) { } public JobService . JobRunningResult runJob ( JobRunning jobRunning ) { } private void handleJobRunning ( boolean isSyn , JobRunning jobRunning , JobService . JobRunningResult jobRunningResult ) { } private boolean handleScenarioRunning ( ScenarioRunningResult result , ScenarioRunning scenarioRunning , JobRunning jobRunning ) { } private ScenarioRunningResult runSingleTask ( ScenarioRunning scenarioRunning , Task task , Map < String , Object > paramMap , JobService . JobRunningResult jobRunningResult ) { } private ScenarioRunningResult runWorkflow ( ScenarioRunning scenarioRunning , List < OrderedTask > orderedTasks , Map paramMap , JobService . JobRunningResult jobRunningResult ) { } private JobService . ReflectionObjWrapper getTaskObj ( Task task , Map < String , Object > paramMap ) throws Exception { } private ScenarioRunningResult runTask ( JobService . ReflectionObjWrapper taskWrapper , Task task ) throws InterruptedException , ExecutionException { } private List < LogFile > getLogFilesFromJob ( JobRunning jobRunning ) { } @ Data public class JobRunningResult { boolean syn ; boolean success ; List < String > rootCauses = new ArrayList < > ( ) ; } @ Data @ AllArgsConstructor public class ReflectionObjWrapper { boolean report ; Object obj ; } No newline ; at end ; of file ; }

Fix:
String root = FileUtil . getValue ( "result_file_full_path" , "//server.properties" ) ;