nus-yam/ex-repair huggingface dataset:
Buggy code:
final class ObjectFactory { private static final String DEFAULT_PROPERTIES_FILENAME = "xerces.properties" ; private static final boolean DEBUG = ObjectFactory . isDebugEnabled ( ) ; private static final int DEFAULT_LINE_LENGTH = 80 ; private static Properties fXercesProperties = null ; private static long fLastModified = - 1 ; static Object createObject ( String factoryId , String fallbackClassName ) throws ObjectFactory . ConfigurationError { } static Object createObject ( String factoryId , String propertiesFilename , String fallbackClassName ) throws ObjectFactory . ConfigurationError { } private static boolean isDebugEnabled ( ) { } private static void debugPrintln ( String msg ) { } static ClassLoader findClassLoader ( ) throws ObjectFactory . ConfigurationError { } static Object newInstance ( String className , ClassLoader cl , boolean doFallback ) throws ObjectFactory . ConfigurationError { } static Class findProviderClass ( String className , ClassLoader cl , boolean doFallback ) throws ClassNotFoundException , ObjectFactory . ConfigurationError { SecurityManager security = System . getSecurityManager ( ) ; if ( security != null ) { <START_BUG> final int lastDot = className . lastIndexOf ( "." ) ; <END_BUG> String packageName = className ; if ( lastDot != ( - 1 ) ) packageName = className . substring ( 0 , lastDot ) ; security . checkPackageAccess ( packageName ) ; } Class providerClass ; if ( cl == null ) { providerClass = Class . forName ( className ) ; } else { try { providerClass = cl . loadClass ( className ) ; } catch ( ClassNotFoundException x ) { if ( doFallback ) { ClassLoader current = ObjectFactory . class . getClassLoader ( ) ; if ( current == null ) { providerClass = Class . forName ( className ) ; } else if ( cl != current ) { cl = current ; providerClass = cl . loadClass ( className ) ; } else { throw x ; } } else { throw x ; } } } return providerClass ; } private static Object findJarServiceProvider ( String factoryId ) throws ObjectFactory . ConfigurationError { } static final class ConfigurationError extends Error { static final long serialVersionUID = 1914065341994951202L ; private Exception exception ; ConfigurationError ( String msg , Exception x ) { } Exception getException ( ) { } } }

Fix:
final int lastDot = className . lastIndexOf ( '.' ) ;
Buggy code:
public class RequiredValidator extends AbstractValidator { public final void validate ( final FormComponent component ) { final String value = component . getRequestString ( ) ; if ( ( value == null ) || ( value . trim ( ) . equals ( "" ) ) ) { <START_BUG> error ( value , component ) ; <END_BUG> } } public String toString ( ) { } }

Fix:
error ( component , value ) ;
Buggy code:
public class MainActivity extends Activity { private boolean flagStarted = false ; @ Override protected void onCreate ( Bundle savedInstanceState ) { } @ Override public boolean onCreateOptionsMenu ( Menu menu ) { } public void startStopButtonClick ( View view ) { Button btn = ( ( Button ) ( findViewById ( button_startstop ) ) ) ; <START_BUG> if ( flagStarted ) { <END_BUG> startLogging ( ) ; btn . setText ( "Stop" ) ; } else { stopLogging ( ) ; btn . setText ( "Start" ) ; } flagStarted = ! ( flagStarted ) ; } private void startLogging ( ) { } private void stopLogging ( ) { } }

Fix:
if ( ! ( flagStarted ) ) {
Buggy code:
public class SSTableWriter extends SSTable { private static Logger logger = LoggerFactory . getLogger ( SSTableWriter . class ) ; private SSTableWriter . IndexWriter iwriter ; private SegmentedFile . Builder dbuilder ; private final BufferedRandomAccessFile dataFile ; private DecoratedKey lastWrittenKey ; private FileMark dataMark ; public SSTableWriter ( String filename , long keyCount ) throws IOException { } public SSTableWriter ( String filename , long keyCount , CFMetaData metadata , IPartitioner partitioner ) throws IOException { } public void mark ( ) { } public void reset ( ) { } private long beforeAppend ( DecoratedKey decoratedKey ) throws IOException { } private void afterAppend ( DecoratedKey decoratedKey , long dataPosition ) throws IOException { } public long append ( AbstractCompactedRow row ) throws IOException { } public void append ( DecoratedKey decoratedKey , ColumnFamily cf ) throws IOException { } public void append ( DecoratedKey decoratedKey , ByteBuffer value ) throws IOException { } public SSTableReader closeAndOpenReader ( ) throws IOException { } public SSTableReader closeAndOpenReader ( long maxDataAge ) throws IOException { } private static void writeStatistics ( Descriptor desc , EstimatedHistogram rowSizes , EstimatedHistogram columnnCounts ) throws IOException { DataOutputStream out = new DataOutputStream ( new FileOutputStream ( desc . filenameFor ( COMPONENT_STATS ) ) ) ; serializer . serialize ( rowSizes , out ) ; <START_BUG> serializer . serialize ( rowSizes , out ) ; <END_BUG> out . close ( ) ; } static Descriptor rename ( Descriptor tmpdesc , Set < Component > components ) { } public long getFilePointer ( ) { } public static SSTableWriter . Builder createBuilder ( Descriptor desc ) { } public static class Builder implements ICompactionInfo { private final Descriptor desc ; public final ColumnFamilyStore cfs ; private BufferedRandomAccessFile dfile ; public Builder ( Descriptor desc ) { } public SSTableReader build ( ) throws IOException { } public long getTotalBytes ( ) { } public long getBytesRead ( ) { } public String getTaskType ( ) { } } static class IndexWriter { private final BufferedRandomAccessFile indexFile ; public final Descriptor desc ; public final IPartitioner partitioner ; public final SegmentedFile . Builder builder ; public final IndexSummary summary ; public final BloomFilter bf ; private FileMark mark ; IndexWriter ( Descriptor desc , IPartitioner part , long keyCount ) throws IOException { } public void afterAppend ( DecoratedKey key , long dataPosition ) throws IOException { } public void close ( ) throws IOException { } public void mark ( ) { } public void reset ( ) throws IOException { } } }

Fix:
serializer . serialize ( columnnCounts , out ) ;
Buggy code:
@ RunWith ( JUnit4TestRunner . class ) public class FeatureTest extends SubsystemTest { private static void createApplication ( String name , String [ ] content ) throws Exception { } @ Before public static void createApplications ( ) throws Exception { } @ Test public void testFeature1 ( ) throws Exception { Subsystem subsystem = installSubsystemFromFile ( "feature1.ssa" ) ; try { assertSymbolicName ( "org.apache.aries.subsystem.feature1" , subsystem ) ; assertVersion ( "1.0.0" , subsystem ) ; <START_BUG> assertConstituents ( 2 , subsystem ) ; <END_BUG> startSubsystem ( subsystem ) ; stopSubsystem ( subsystem ) ; } finally { uninstallSubsystem ( subsystem ) ; } } }

Fix:
assertConstituents ( 3 , subsystem ) ;
Buggy code:
public class JMSTopicAdd extends AbstractJMSSubsystemUpdate < Void > { private static final long serialVersionUID = 3528505591156292231L ; private final String name ; private Set < String > bindings ; static JMSTopicAdd create ( final JMSTopicElement topic ) { } public JMSTopicAdd ( final String name ) { } protected void applyUpdate ( JMSSubsystemElement element ) throws UpdateFailedException { } protected < P > void applyUpdate ( UpdateContext context , UpdateResultHandler < ? super Void , P > handler , P param ) { final JMSTopicService service = new JMSTopicService ( name , jndiBindings ( ) ) ; final ServiceName serviceName = JMS_TOPIC_BASE . append ( name ) ; <START_BUG> context . getBatchBuilder ( ) . addService ( serviceName , service ) . addDependency ( JMS_MANAGER , JMSServerManager . class , service . getJmsServer ( ) ) . addListener ( new UpdateResultHandler . ServiceStartListener < P > ( handler , param ) ) . setInitialMode ( IMMEDIATE ) ; <END_BUG> } public AbstractSubsystemUpdate < JMSSubsystemElement , ? > getCompensatingUpdate ( JMSSubsystemElement original ) { } public Set < String > getBindings ( ) { } public void setBindings ( Set < String > bindings ) { } public String getName ( ) { } private String [ ] jndiBindings ( ) { } }

Fix:
context . getBatchBuilder ( ) . addService ( serviceName , service ) . addDependency ( JMS_MANAGER , JMSServerManager . class , service . getJmsServer ( ) ) . addListener ( new UpdateResultHandler . ServiceStartListener < P > ( handler , param ) ) . setInitialMode ( ACTIVE ) ;
Buggy code:
public class ExpiringMap < K , V > { private static final Logger logger = LoggerFactory . getLogger ( ExpiringMap . class ) ; private volatile boolean shutdown ; public static class CacheableObject < T > { public final T value ; public final long timeout ; private final long createdAt ; private CacheableObject ( T value , long timeout ) { } private boolean isReadyToDieAt ( long atNano ) { } } private static final ScheduledExecutorService service = new DebuggableScheduledThreadPoolExecutor ( "EXPIRING-MAP-REAPER" ) ; private final ConcurrentMap < K , ExpiringMap . CacheableObject < V > > cache = new ConcurrentHashMap < K , ExpiringMap . CacheableObject < V > > ( ) ; private final long defaultExpiration ; public ExpiringMap ( long defaultExpiration ) { } public ExpiringMap ( long defaultExpiration , final Function < Pair < K , ExpiringMap . CacheableObject < V > > , ? > postExpireHook ) { } public void shutdownBlocking ( ) { } public void reset ( ) { } public V put ( K key , V value ) { } public V put ( K key , V value , long timeout ) { } public V putIfAbsent ( K key , V value ) { <START_BUG> return put ( key , value , this . defaultExpiration ) ; <END_BUG> } public V putIfAbsent ( K key , V value , long timeout ) { } public V get ( K key ) { } public V remove ( K key ) { } public long getAge ( K key ) { } public int size ( ) { } public boolean containsKey ( K key ) { } public boolean isEmpty ( ) { } public Set < K > keySet ( ) { } }

Fix:
return putIfAbsent ( key , value , this . defaultExpiration ) ;
Buggy code:
public class ChangeWallPaperService extends IntentService { Handler mMainThreadHandler = null ; public ChangeWallPaperService ( ) { } @ Override protected void onHandleIntent ( Intent intent ) { mMainThreadHandler . post ( new Runnable ( ) { @ Override public void run ( ) { LogUtil . appendLog ( ( ( DateUtil . getSysTimeStr ( ) ) + "execute<seq2seq4repair_space>change<seq2seq4repair_space>wallPaper<seq2seq4repair_space>service" ) ) ; WallpaperManager myWallpaperManager = WallpaperManager . getInstance ( getApplicationContext ( ) ) ; Bitmap bm = ( ( android . graphics . drawable . BitmapDrawable ) ( myWallpaperManager . getDrawable ( ) ) ) . getBitmap ( ) ; <START_BUG> String fileName = ( getApplicationContext ( ) . getFilesDir ( ) ) + "//wallPaper//userWallPaper.jpg" ; <END_BUG> FileUtil . saveToInternalStorage ( fileName , bm ) ; try { myWallpaperManager . setResource ( wallpaper ) ; } catch ( IOException e ) { LogUtil . appendLog ( ( "set<seq2seq4repair_space>wallPaper<seq2seq4repair_space>error<seq2seq4repair_space>:<seq2seq4repair_space>" + ( e . getMessage ( ) ) ) ) ; } } } ) ; } }

Fix:
String fileName = ( getApplicationContext ( ) . getFilesDir ( ) ) + "//userWallPaper.jpg" ;
Buggy code:
public class TextTransfer extends ByteArrayTransfer { private static TextTransfer _instance = new TextTransfer ( ) ; private static final String COMPOUND_TEXT = "COMPOUND_TEXT" ; private static final String STRING = "STRING" ; private static final int COMPOUND_TEXT_ID = registerType ( TextTransfer . COMPOUND_TEXT ) ; private static final int STRING_ID = registerType ( TextTransfer . STRING ) ; private TextTransfer ( ) { } public static TextTransfer getInstance ( ) { } public void javaToNative ( Object object , TransferData transferData ) { transferData . result = 0 ; if ( ( ! ( checkText ( object ) ) ) || ( ! ( isSupportedType ( transferData ) ) ) ) { DND . error ( ERROR_INVALID_DATA ) ; } String string = ( ( String ) ( object ) ) ; byte [ ] buffer = Converter . wcsToMbcs ( null , string , true ) ; if ( ( transferData . type ) == ( TextTransfer . COMPOUND_TEXT_ID ) ) { Display display = Display . getCurrent ( ) ; if ( display == null ) return ; int xDisplay = display . xDisplay ; int pBuffer = OS . XtMalloc ( buffer . length ) ; if ( pBuffer == 0 ) return ; try { OS . memmove ( pBuffer , buffer , buffer . length ) ; int list = OS . XtMalloc ( 4 ) ; if ( list == 0 ) return ; OS . memmove ( list , new int [ ] { pBuffer } , 4 ) ; XTextProperty text_prop_return = new XTextProperty ( ) ; int result = OS . XmbTextListToTextProperty ( xDisplay , list , 1 , XCompoundTextStyle , text_prop_return ) ; OS . XtFree ( list ) ; if ( result != 0 ) return ; transferData . format = text_prop_return . format ; transferData . length = text_prop_return . nitems ; transferData . pValue = text_prop_return . value ; transferData . type = text_prop_return . encoding ; transferData . result = 1 ; } finally { OS . XtFree ( pBuffer ) ; } } if ( ( transferData . type ) == ( TextTransfer . STRING_ID ) ) { int pValue = OS . XtMalloc ( buffer . length ) ; if ( pValue == 0 ) return ; OS . memmove ( pValue , buffer , buffer . length ) ; transferData . type = TextTransfer . STRING_ID ; transferData . format = 8 ; <START_BUG> transferData . length = buffer . length ; <END_BUG> transferData . pValue = pValue ; transferData . result = 1 ; } } public Object nativeToJava ( TransferData transferData ) { } protected int [ ] getTypeIds ( ) { } protected String [ ] getTypeNames ( ) { } boolean checkText ( Object object ) { } protected boolean validate ( Object object ) { } }

Fix:
transferData . length = ( buffer . length ) - 1 ;
Buggy code:
public abstract class DocumentBuilderFactory { private boolean validating = false ; private boolean namespaceAware = false ; private boolean whitespace = false ; private boolean expandEntityRef = true ; private boolean ignoreComments = false ; private boolean coalescing = false ; protected DocumentBuilderFactory ( ) { } public static DocumentBuilderFactory newInstance ( ) throws FactoryConfigurationError { try { <START_BUG> return ( ( DocumentBuilderFactory ) ( FactoryFinder . find ( "javax.xml.parsers.DocumentBuilderFactory" , null ) ) ) ; <END_BUG> } catch ( FactoryFinder . ConfigurationError e ) { throw new FactoryConfigurationError ( e . getException ( ) , e . getMessage ( ) ) ; } } public abstract DocumentBuilder newDocumentBuilder ( ) throws ParserConfigurationException { } public void setNamespaceAware ( boolean awareness ) { } public void setValidating ( boolean validating ) { } public void setIgnoringElementContentWhitespace ( boolean whitespace ) { } public void setExpandEntityReferences ( boolean expandEntityRef ) { } public void setIgnoringComments ( boolean ignoreComments ) { } public void setCoalescing ( boolean coalescing ) { } public boolean isNamespaceAware ( ) { } public boolean isValidating ( ) { } public boolean isIgnoringElementContentWhitespace ( ) { } public boolean isExpandEntityReferences ( ) { } public boolean isIgnoringComments ( ) { } public boolean isCoalescing ( ) { } public abstract void setAttribute ( String name , Object value ) throws IllegalArgumentException { } public abstract Object getAttribute ( String name ) throws IllegalArgumentException { } }

Fix:
return ( ( DocumentBuilderFactory ) ( FactoryFinder . find ( "javax.xml.parsers.DocumentBuilderFactory" , "org.apache.xerces.jaxp.DocumentBuilderFactoryImpl" ) ) ) ;
Buggy code:
public class RealVectorFormat extends CompositeFormat { private static final long serialVersionUID = - 708767813036157690L ; private static final String DEFAULT_PREFIX = "{" ; private static final String DEFAULT_SUFFIX = "}" ; private static final String DEFAULT_SEPARATOR = ";<seq2seq4repair_space>" ; private final String prefix ; private final String suffix ; private final String separator ; private final String trimmedPrefix ; private final String trimmedSuffix ; private final String trimmedSeparator ; private NumberFormat format ; public RealVectorFormat ( ) { } public RealVectorFormat ( final NumberFormat format ) { } public RealVectorFormat ( final String prefix , final String suffix , final String separator ) { } public RealVectorFormat ( final String prefix , final String suffix , final String separator , final NumberFormat format ) { } public static Locale [ ] getAvailableLocales ( ) { } public String getPrefix ( ) { } public String getSuffix ( ) { } public String getSeparator ( ) { } public NumberFormat getFormat ( ) { } public static RealVectorFormat getInstance ( ) { } public static RealVectorFormat getInstance ( final Locale locale ) { } public static String formatRealVector ( RealVector v ) { } public StringBuffer format ( RealVector vector , StringBuffer toAppendTo , FieldPosition pos ) { } @ Override public StringBuffer format ( Object obj , StringBuffer toAppendTo , FieldPosition pos ) { } public ArrayRealVector parse ( String source ) throws ParseException { ParsePosition parsePosition = new ParsePosition ( 0 ) ; ArrayRealVector result = parse ( source , parsePosition ) ; if ( ( parsePosition . getIndex ( ) ) == 0 ) { <START_BUG> throw MathRuntimeException . createParseException ( parsePosition . getErrorIndex ( ) , "unparseable<seq2seq4repair_space>real<seq2seq4repair_space>vector:<seq2seq4repair_space>\"{0}\"" , source ) ; <END_BUG> } return result ; } public ArrayRealVector parse ( String source , ParsePosition pos ) { } @ Override public Object parseObject ( String source , ParsePosition pos ) { } }

Fix:
throw MathRuntimeException . createParseException ( parsePosition . getErrorIndex ( ) , UNPARSEABLE_REAL_VECTOR , source ) ;
Buggy code:
public class GGApp extends Application { public GGPlan mVPToday ; public GGPlan mVPTomorrow ; public MainActivity mActivity ; public VPProvider mProvider ; public static final int UPDATE_DISABLE = 0 ; public static final int UPDATE_WLAN = 1 ; public static final int UPDATE_ALL = 2 ; private SharedPreferences preferences ; public static GGApp GG_APP ; public HashMap < String , Class < ? extends VPProvider > > mProviderList = new HashMap < String , Class < ? extends VPProvider > > ( ) ; @ Override public void onCreate ( ) { } public void registerProviders ( ) { } public void createNotification ( String title , String message , int id , String ... strings ) { } public String getSelectedGrade ( ) { } public String getSelectedProvider ( ) { } public boolean notificationsEnabled ( ) { } public void showToast ( String s ) { } public void recreateProvider ( ) { } public void createProvider ( String id ) { } public int translateUpdateType ( String s ) { } public String translateUpdateType ( int i ) { } public int getUpdateType ( ) { } public GGApp . FragmentType getFragmentType ( ) { } public void setFragmentType ( GGApp . FragmentType type ) { <START_BUG> preferences . edit ( ) . putString ( "fragtype" , type . toString ( ) ) . commit ( ) ; <END_BUG> } public void refreshAsync ( final Runnable finished , final boolean updateFragments ) { } @ TargetApi ( VERSION_CODES . LOLLIPOP ) public void setStatusBarColor ( Window w ) { } @ TargetApi ( VERSION_CODES . LOLLIPOP ) public void setStatusBarColorTransparent ( Window w ) { } public static enum FragmentType { PLAN , NEWS , MENSA ; } }

Fix:
preferences . edit ( ) . putString ( "fragtype" , type . toString ( ) ) . apply ( ) ;
Buggy code:
public class Preferences { public static final String API_KEY = "api_key" ; public static final String PORT_NUMBER = "port" ; public static final String USE_HTTPS = "use_https" ; public static final String TRUST_ALL_CERTIFICATES = "trust_all_certificates" ; public static final String EXTENSION_PATH = "extension_path" ; public static final String ADDRESS = "address" ; public static final String V1_SICKBEARD_URL = "sickbeard_url" ; public static final String ACKNOWLEDGED_EPISODE_HELP = "acknowledged_episode_help" ; public static final String ACKNOWLEDGED_SHOW_ADDING_HELP = "acknowledged_show_adding_help" ; public static final String HTTP_USERNAME = "http_username" ; public static final String HTTP_PASSWORD = "http_password" ; public static final String GROUP_INACTIVE_SHOWS = "group_inactive_shows" ; public static final String SHOW_BANNERS = "show_banners_in_show_list" ; private Context mContext ; public Preferences ( Context context ) { } public String getAddress ( ) { } public String getApiKey ( ) { } public boolean getGroupInactiveShows ( ) { } public String getHttpUsername ( ) { } public String getHttpPassword ( ) { } public int getPort ( ) { } public boolean getHttpsEnabled ( ) { } public boolean getShowBannersInShowList ( ) { } public String getSickbeardUrl ( ) { SharedPreferences preferences = PreferenceManager . getDefaultSharedPreferences ( mContext ) ; String address = preferences . getString ( Preferences . ADDRESS , "" ) ; String port = preferences . getString ( Preferences . PORT_NUMBER , null ) ; String path = preferences . getString ( Preferences . EXTENSION_PATH , "//" ) ; boolean useHTTPS = preferences . getBoolean ( Preferences . USE_HTTPS , false ) ; boolean trustAllCertificates = preferences . getBoolean ( Preferences . TRUST_ALL_CERTIFICATES , true ) ; if ( ( address == null ) || ( address . trim ( ) . equals ( "" ) ) ) { return null ; } else { <START_BUG> String url = ( useHTTPS ) ? "https:////" : "http:////" ; <END_BUG> url += address . trim ( ) ; if ( port != null ) { url += ":" + ( port . trim ( ) ) ; } url += ( path . trim ( ) . equals ( "" ) ) ? "//" : path ; url = url . trim ( ) ; if ( ! ( url . endsWith ( "//" ) ) ) { url += "//" ; } return url ; } } public boolean getTrustAllCertificatesFlag ( ) { } public String getV1Url ( ) { } public boolean hasAcknowledgedEpisodeHelp ( ) { } public boolean hasAcknowledgedShowAddingHelp ( ) { } public void putBoolean ( String key , boolean value ) { } public void putInt ( String key , int value ) { } public void putString ( String key , String value ) { } No newline ; at end ; of file ; }

Fix:
String url = ( ( ! ( address . toLowerCase ( ) . startsWith ( "https:////" ) ) ) && ( ! ( address . toLowerCase ( ) . startsWith ( "http:////" ) ) ) ) ? useHTTPS ? "https:////" : "http:////" : "" ;
Buggy code:
public class RotationTest extends TestCase { public RotationTest ( String name ) { } public void testIdentity ( ) { } public void testAxisAngle ( ) { } public void testRevert ( ) { } public void testVectorOnePair ( ) { Vector3D u = new Vector3D ( 3 , 2 , 1 ) ; Vector3D v = new Vector3D ( ( - 4 ) , 2 , 2 ) ; Rotation r = new Rotation ( u , v ) ; <START_BUG> checkVector ( r . applyTo ( u . multiply ( v . getNorm ( ) ) ) , v . multiply ( u . getNorm ( ) ) ) ; <END_BUG> checkAngle ( new Rotation ( u , u . negate ( ) ) . getAngle ( ) , Math . PI ) ; try { new Rotation ( u , new Vector3D ( ) ) ; fail ( "an<seq2seq4repair_space>exception<seq2seq4repair_space>should<seq2seq4repair_space>have<seq2seq4repair_space>been<seq2seq4repair_space>thrown" ) ; } catch ( IllegalArgumentException e ) { } catch ( Exception e ) { fail ( "unexpected<seq2seq4repair_space>exception" ) ; } } public void testVectorTwoPairs ( ) { } public void testMatrix ( ) throws NotARotationMatrixException { } public void testAngles ( ) throws CardanEulerSingularityException { } public void testSingularities ( ) throws CardanEulerSingularityException { } public void testQuaternion ( ) { } public void testCompose ( ) { } public void testComposeInverse ( ) { } public void testApplyInverseTo ( ) { } private void checkVector ( Vector3D v1 , Vector3D v2 ) { } private void checkAngle ( double a1 , double a2 ) { } private void checkRotation ( Rotation r , double q0 , double q1 , double q2 , double q3 ) { } public static Test suite ( ) { } }

Fix:
checkVector ( r . applyTo ( u . scalarMultiply ( v . getNorm ( ) ) ) , v . scalarMultiply ( u . getNorm ( ) ) ) ;
Buggy code:
public class BindingTypePattern extends ExactTypePattern implements BindingPattern { private int formalIndex ; public BindingTypePattern ( UnresolvedType type , int index , boolean isVarArgs ) { } public BindingTypePattern ( FormalBinding binding , boolean isVarArgs ) { } public int getFormalIndex ( ) { } public boolean equals ( Object other ) { } public int hashCode ( ) { int result = 17 ; <START_BUG> result = ( 37 * result ) + ( type . hashCode ( ) ) ; <END_BUG> result = ( 37 * result ) + ( formalIndex ) ; return result ; } public void write ( DataOutputStream out ) throws IOException { } public static TypePattern read ( VersionedDataInputStream s , ISourceContext context ) throws IOException { } public TypePattern remapAdviceFormals ( IntMap bindings ) { } public TypePattern parameterizeWith ( Map typeVariableMap ) { } public String toString ( ) { } }

Fix:
result = ( 37 * result ) + ( super . hashCode ( ) ) ;
Buggy code:
public class SOSVirtualSensor extends AbstractSensorModule < SOSVirtualSensorConfig > { protected static final Logger log = LoggerFactory . getLogger ( SOSVirtualSensor . class ) ; Map < SOSVirtualSensor . DataStructureHash , String > structureToOutputMap = new HashMap < SOSVirtualSensor . DataStructureHash , String > ( ) ; class DataStructureHash { private int hashcode ; public DataStructureHash ( DataComponent comp , DataEncoding enc ) { } @ Override public int hashCode ( ) { } @ Override public boolean equals ( Object obj ) { } } public SOSVirtualSensor ( ) { } public void newObservation ( IObservation ... observations ) throws Exception { } public String newResultTemplate ( DataComponent component , DataEncoding encoding ) { } private int computeDataStructureHashCode ( DataComponent comp , DataEncoding enc ) { } public void newResultRecord ( String templateID , DataBlock ... dataBlocks ) throws Exception { SOSVirtualSensorOutput output = ( ( SOSVirtualSensorOutput ) ( getObservationOutputs ( ) . get ( templateID ) ) ) ; <START_BUG> SOSVirtualSensor . log . debug ( ( "New<seq2seq4repair_space>record<seq2seq4repair_space>received<seq2seq4repair_space>for<seq2seq4repair_space>output<seq2seq4repair_space>" + ( output . getName ( ) ) ) ) ; <END_BUG> for ( DataBlock dataBlock : dataBlocks ) output . publishNewRecord ( dataBlock ) ; } @ Override public void start ( ) throws SensorHubException { } @ Override public void stop ( ) throws SensorHubException { } @ Override public void cleanup ( ) throws SensorHubException { } @ Override public boolean isSensorDescriptionUpdateSupported ( ) { } @ Override public void updateSensorDescription ( AbstractProcess systemDesc , boolean recordHistory ) throws SensorException { } public void setSensorDescription ( AbstractProcess systemDesc ) { } @ Override public boolean isConnected ( ) { } }

Fix:
SOSVirtualSensor . log . trace ( ( "New<seq2seq4repair_space>record<seq2seq4repair_space>received<seq2seq4repair_space>for<seq2seq4repair_space>output<seq2seq4repair_space>" + ( output . getName ( ) ) ) ) ;
Buggy code:
@ Service @ Transactional ( readOnly = true ) public class TaxonomyServiceImpl implements TaxonomyService { @ Resource protected TaxonomyRepository taxonomyRepository ; @ Override public List < Taxonomy > findAll ( ) { } private List < AppStat > getTaxonomyStats ( Taxonomy taxonomy ) { List < AppStat > stats = Lists . newArrayList ( ) ; <START_BUG> long passportCount = taxonomy . getPassports ( ) . size ( ) ; <END_BUG> stats . add ( new AppStat ( STAT . PASSPORT , passportCount ) ) ; long stockCount = taxonomyRepository . countStocks ( taxonomy . getId ( ) ) ; stats . add ( new AppStat ( STAT . STOCKS , stockCount ) ) ; long genotypeCount = taxonomy . getAlleleAssays ( ) . size ( ) ; stats . add ( new AppStat ( STAT . GENOTYPES , genotypeCount ) ) ; long phenotypeCount = taxonomyRepository . countPhenotypes ( taxonomy . getId ( ) ) ; stats . add ( new AppStat ( STAT . PHENOTYPE , phenotypeCount ) ) ; return stats ; } @ Override public Taxonomy findOne ( Long id ) { } @ Override public Taxonomy save ( Taxonomy taxonomy ) { } @ Override public TaxonomyStats findStats ( Long id ) { } }

Fix:
long passportCount = taxonomyRepository . countPassports ( taxonomy . getId ( ) ) ;
Buggy code:
public class ScoreboardUtil { private ScoreboardUtil ( ) { } public static ScoreboardManager manager = Bukkit . getScoreboardManager ( ) ; public static void updateStaminaScore ( DPlayer dplayer , long ticks ) { } public static void setScoreBoard ( DPlayer dplayer , Scoreboard score ) { } public static void resetScoreBoard ( DPlayer dplayer ) { } private static Scoreboard getScoreProgressBar ( DPlayer dplayer ) { Scoreboard board = ScoreboardUtil . manager . getNewScoreboard ( ) ; Objective objective = board . registerNewObjective ( "derius_stamina" , "dummy" ) ; objective . setDisplaySlot ( SIDEBAR ) ; objective . setDisplayName ( Txt . parse ( "<a>____.[<i>Stamina<a>].____" ) ) ; <START_BUG> double progressbarQuota = ( dplayer . getStamina ( ) ) // ( DeriusCore . getStaminaMixin ( ) . getMax ( dplayer ) ) ; <END_BUG> String bar = HEALTHBAR_CLASSIC . withQuota ( progressbarQuota ) . withWidth ( 30 ) . render ( ) ; Score progressBar = objective . getScore ( bar ) ; progressBar . setScore ( ( ( int ) ( Math . round ( dplayer . getStamina ( ) ) ) ) ) ; return board ; } private static void resetScoreboardTask ( DPlayer dplayer , long tick ) { } }

Fix:
double progressbarQuota = ( dplayer . getStamina ( ) ) // ( dplayer . getStaminaMax ( ) ) ;
Buggy code:
public class EditTaskActivity extends Activity implements OnClickListener { @ Override protected void onCreate ( Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; setContentView ( edit_task ) ; <START_BUG> Button finish = ( ( Button ) ( findViewById ( finish ) ) ) ; <END_BUG> finish . setOnClickListener ( this ) ; } @ Override public void onClick ( View v ) { } }

Fix:
Button finish = ( ( Button ) ( findViewById ( finished ) ) ) ;
Buggy code:
public class CCMReconfigure extends Continuus { public static final String FLAG_RECURSE = "//recurse" ; public static final String FLAG_VERBOSE = "//verbose" ; public static final String FLAG_PROJECT = "//project" ; private String project = null ; private boolean recurse = false ; private boolean verbose = false ; public CCMReconfigure ( ) { } public void setCcmProject ( String v ) { } public void setRecurse ( boolean v ) { } public void setVerbose ( boolean v ) { } public String getCcmProject ( ) { } public boolean isRecurse ( ) { } public boolean isVerbose ( ) { } public void execute ( ) throws BuildException { Commandline commandLine = new Commandline ( ) ; Project aProj = getProject ( ) ; int result = 0 ; commandLine . setExecutable ( getCcmCommand ( ) ) ; commandLine . createArgument ( ) . setValue ( getCcmAction ( ) ) ; checkOptions ( commandLine ) ; result = run ( commandLine ) ; if ( result != 0 ) { String msg = "Failed<seq2seq4repair_space>executing:<seq2seq4repair_space>" + ( commandLine . toString ( ) ) ; <START_BUG> throw new BuildException ( msg , location ) ; <END_BUG> } } private void checkOptions ( Commandline cmd ) { } }

Fix:
throw new BuildException ( msg ) ;
Buggy code:
public class SteppersView extends LinearLayout { private RecyclerView recyclerView ; private SteppersAdapter steppersAdapter ; private SteppersView . Config config ; private List < SteppersItem > items ; public SteppersView ( Context context ) { } public SteppersView ( Context context , AttributeSet attrs ) { } @ TargetApi ( VERSION_CODES . HONEYCOMB ) public SteppersView ( Context context , AttributeSet attrs , int defStyleAttr ) { } @ TargetApi ( VERSION_CODES . LOLLIPOP ) public SteppersView ( Context context , AttributeSet attrs , int defStyleAttr , int defStyleRes ) { } public SteppersView setConfig ( SteppersView . Config config ) { } public SteppersView setItems ( List < SteppersItem > items ) { } public void build ( ) { if ( ( config ) != null ) { setOrientation ( HORIZONTAL ) ; recyclerView = new RecyclerView ( getContext ( ) ) ; RecyclerView . LayoutParams layoutParams = new RecyclerView . LayoutParams ( LayoutParams . MATCH_PARENT , LayoutParams . MATCH_PARENT ) ; recyclerView . setLayoutParams ( layoutParams ) ; addView ( recyclerView ) ; recyclerView . setHasFixedSize ( true ) ; recyclerView . setLayoutManager ( new android . support . v7 . widget . LinearLayoutManager ( getContext ( ) ) ) ; <START_BUG> steppersAdapter = new SteppersAdapter ( getContext ( ) , config , items ) ; <END_BUG> recyclerView . setAdapter ( steppersAdapter ) ; } else { throw new RuntimeException ( "SteppersView<seq2seq4repair_space>need<seq2seq4repair_space>config,<seq2seq4repair_space>read<seq2seq4repair_space>documentation<seq2seq4repair_space>to<seq2seq4repair_space>get<seq2seq4repair_space>more<seq2seq4repair_space>info" ) ; } } private boolean possitiveButtonEnable = true ; public static class Config { private OnFinishAction onFinishAction ; private OnCancelAction onCancelAction ; private FragmentManager fragmentManager ; public Config ( ) { } public SteppersView . Config setOnFinishAction ( OnFinishAction onFinishAction ) { } public OnFinishAction getOnFinishAction ( ) { } public SteppersView . Config setOnCancelAction ( OnCancelAction onCancelAction ) { } public OnCancelAction getOnCancelAction ( ) { } public void setFragmentManager ( FragmentManager fragmentManager ) { } public FragmentManager getFragmentManager ( ) { } } static int fID = 190980 ; protected static int findUnusedId ( View view ) { } }

Fix:
steppersAdapter = new SteppersAdapter ( this , config , items ) ;
Buggy code:
public class RenameFolderAction extends FrameAction implements SelectionListener { public RenameFolderAction ( AbstractFrameController frameController ) { } public void actionPerformed ( ActionEvent evt ) { } public void selectionChanged ( SelectionChangedEvent evt ) { if ( ( ( ( org . columba . mail . gui . tree . selection . TreeSelectionChangedEvent ) ( evt ) ) . getSelected ( ) . length ) > 0 ) { FolderTreeNode folder = ( ( org . columba . mail . gui . tree . selection . TreeSelectionChangedEvent ) ( evt ) ) . getSelected ( ) [ 0 ] ; <START_BUG> if ( folder != null ) { <END_BUG> FolderItem item = folder . getFolderItem ( ) ; if ( item . get ( "property" , "accessrights" ) . equals ( "user" ) ) setEnabled ( true ) ; else setEnabled ( false ) ; } } else setEnabled ( false ) ; } }

Fix:
if ( ( folder != null ) && ( folder instanceof Folder ) ) {
Buggy code:
public class WebRequestCycle extends RequestCycle { private static final Logger log = LoggerFactory . getLogger ( WebRequestCycle . class ) ; private static final MetaDataKey < Boolean > BROWSER_WAS_POLLED_KEY = new MetaDataKey < Boolean > ( Boolean . class ) { private static final long serialVersionUID = 1L ; } ; public static final WebRequestCycle get ( ) { } public WebRequestCycle ( final WebSession session , final WebRequest request , final Response response ) { } @ Override public IRequestCycleProcessor getProcessor ( ) { } public WebRequest getWebRequest ( ) { } public WebResponse getWebResponse ( ) { } public WebSession getWebSession ( ) { } @ Override public final void redirectTo ( final Page page ) { String redirectUrl = null ; IRequestCycleSettings settings = application . getRequestCycleSettings ( ) ; if ( ( ( settings . getRenderStrategy ( ) ) == ( RenderStrategy . REDIRECT_TO_BUFFER ) ) && ( ( application ) instanceof WebApplication ) ) { final WebResponse currentResponse = getWebResponse ( ) ; try { final BufferedHttpServletResponse servletResponse = new BufferedHttpServletResponse ( currentResponse . getHttpServletResponse ( ) ) ; final WebResponse redirectResponse = new WebResponse ( servletResponse ) { @ Override public CharSequence encodeURL ( CharSequence url ) { return currentResponse . encodeURL ( url ) ; } } ; redirectResponse . setCharacterEncoding ( currentResponse . getCharacterEncoding ( ) ) ; setResponse ( redirectResponse ) ; page . renderPage ( ) ; setResponse ( currentResponse ) ; final String responseRedirect = servletResponse . getRedirectUrl ( ) ; if ( responseRedirect != null ) { redirectUrl = responseRedirect ; } else if ( ( servletResponse . getContentLength ( ) ) > 0 ) { servletResponse . filter ( currentResponse ) ; servletResponse . setCharacterEncoding ( currentResponse . getCharacterEncoding ( ) ) ; servletResponse . close ( ) ; redirectUrl = page . urlFor ( INTERFACE ) . toString ( ) ; int index = redirectUrl . indexOf ( "?" ) ; String sessionId = getWebRequest ( ) . getHttpServletRequest ( ) . getSession ( true ) . getId ( ) ; ( ( WebApplication ) ( application ) ) . addBufferedResponse ( sessionId , redirectUrl . substring ( ( index + 1 ) ) , servletResponse ) ; } } catch ( RuntimeException ex ) { setResponse ( currentResponse ) ; if ( ex instanceof AbortException ) { throw ex ; } WebRequestCycle . log . error ( ex . getMessage ( ) , ex ) ; IRequestCycleProcessor processor = getProcessor ( ) ; processor . respond ( ex , this ) ; return ; } } else { redirectUrl = page . urlFor ( INTERFACE ) . toString ( ) ; <START_BUG> page . internalDetach ( ) ; <END_BUG> } if ( redirectUrl == null ) { redirectUrl = page . urlFor ( INTERFACE ) . toString ( ) ; } session . touch ( page ) ; response . redirect ( redirectUrl ) ; } @ Override public WebClientInfo getClientInfo ( ) { } @ Override protected WebClientInfo newClientInfo ( ) { } @ Override public final boolean getRedirect ( ) { } }

Fix:
page . detach ( ) ;
Buggy code:
@ ManagedBean @ RequestScoped public class user_register { int id ; String isim ; String soyad ; String email ; String sifre ; int i = 0 ; int sayac = 0 ; public int getId ( ) { } public void setId ( int id ) { } public String getIsim ( ) { } public void setIsim ( String isim ) { } public String getSoyad ( ) { } public void setSoyad ( String soyad ) { } public String getEmail ( ) { } public void setEmail ( String email ) { } public String getSifre ( ) { } public void setSifre ( String sifre ) { } public String veriTabaninaGonder ( ) { PreparedStatement ps = null ; Connection con = null ; try { Class . forName ( "com.mysql.jdbc.Driver" ) ; <START_BUG> con = DriverManager . getConnection ( "jdbc:mysql:////localhost:3306//eks" , "root" , "1" ) ; <END_BUG> ps = con . prepareStatement ( "INSERT<seq2seq4repair_space>INTO<seq2seq4repair_space>uye_kayit(userID,Adi,<seq2seq4repair_space>Soyadi,<seq2seq4repair_space>Email,<seq2seq4repair_space>Sifre)<seq2seq4repair_space>VALUES(?,?,?,?,?)" ) ; ps . setInt ( 1 , id ) ; ps . setString ( 2 , isim ) ; ps . setString ( 3 , soyad ) ; ps . setString ( 4 , email ) ; ps . setString ( 5 , sifre ) ; i = ps . executeUpdate ( ) ; } catch ( Exception e ) { System . out . println ( e ) ; ( sayac ) -- ; } finally { try { con . close ( ) ; ps . close ( ) ; } catch ( Exception e ) { System . out . println ( e ) ; } } if ( ( i ) > 0 ) { return "basarili" ; } else { return "basarisiz" ; } } No newline ; at end ; of file ; }

Fix:
con = DriverManager . getConnection ( "jdbc:mysql:////localhost:3306//eks" , "root" , "1111" ) ;
Buggy code:
public class RainbowUtil { public static SimpleDateFormat shortDateFormat = new SimpleDateFormat ( "MM//dd//yyyy" ) ; public static String GetDateStringFromLong ( long dt ) { } public static String FullTranslate ( String parm ) { } public static String ConcatArgs ( String [ ] args , int startIdx ) { } public static boolean IsCharLetterOrDigit ( char ch ) { <START_BUG> if ( ( ( ch >= 'a' ) && ( ch <= 'z' ) ) || ( ( ch >= 'A' ) && ( ch <= 'Z' ) ) ) <END_BUG> return true ; return ( ch >= '0' ) && ( ch <= '9' ) ; } public static String StringReplace ( String src , String key , String val ) { } public static String SpecialTranslate ( String txt ) { } public static String TranslateColorString ( String parm , boolean IsOp ) { } public static String TranslateColorString ( String parm , boolean IsOp , boolean fAllowSpaces ) { } public static String TimeDeltaString_JustMinutesSecs ( long ms ) { } public static String TimeDeltaString ( long ms ) { } public static String TextLabel ( String str , int padLen ) { } public static String TextAlignTrailerPerfect ( String str , int padLen ) { } public static String GetTimeStringFromLong ( long ms ) { } static long GetMSFromString ( String strTime ) { } }

Fix:
if ( ( ( ch >= 'a' ) && ( ch <= 'z' ) ) || ( ( ( ( ch >= 'A' ) && ( ch <= 'Z' ) ) || ( ch == '-' ) ) || ( ch == '_' ) ) )
Buggy code:
@ Controller @ RequestMapping ( "edit" ) public class ContentDisplayPreferencesController { private static final long CONTENT_FOLDER_ID = 2L ; @ RequestMapping public String showPreferences ( RenderRequest request , RenderResponse response , Model model ) throws PortalException , SystemException { model . addAttribute ( "preferences" , new ContentDisplayPreferences ( request ) ) ; <START_BUG> final List < ContentArticle > contentArticles = ContentsClient . getContentArticles ( ContentDisplayPreferencesController . CONTENT_FOLDER_ID ) ; <END_BUG> model . addAttribute ( "contentArticles" , contentArticles ) ; return "preferences" ; } @ RequestMapping ( params = "action=save" ) public void savePreferences ( ActionRequest request , ActionResponse response , Model model , ContentDisplayPreferences preferences ) throws PortalException , IOException , ReadOnlyException , ValidatorException { } }

Fix:
final List < ContentArticle > contentArticles = ContentsClient . getContentArticles ( null ) ;
Buggy code:
class DefaultBindingResolver extends BindingResolver { private static final char [ ] [ ] JAVA_LANG_STRINGBUFFER = new char [ ] [ ] { "java" . toCharArray ( ) , "lang" . toCharArray ( ) , "StringBuffer" . toCharArray ( ) } ; private static final char [ ] [ ] JAVA_LANG_EXCEPTION = new char [ ] [ ] { "java" . toCharArray ( ) , "lang" . toCharArray ( ) , "Exception" . toCharArray ( ) } ; Map compilerBindingsToASTBindings ; Map newAstToOldAst ; Map bindingsToAstNodes ; Map bindingKeysToAstNodes ; Map astNodesToBindings ; Map astNodesToBlockScope ; private CompilationUnitScope scope ; DefaultBindingResolver ( ) { } DefaultBindingResolver ( CompilationUnitScope scope ) { } IBinding resolveName ( Name name ) { } ITypeBinding resolveType ( Type type ) { } ITypeBinding resolveWellKnownType ( String name ) { } ITypeBinding resolveType ( TypeDeclaration type ) { } IMethodBinding resolveMethod ( MethodDeclaration method ) { } IMethodBinding resolveMethod ( MethodInvocation method ) { } IMethodBinding resolveMethod ( SuperMethodInvocation method ) { } IVariableBinding resolveVariable ( VariableDeclaration variable ) { } IVariableBinding resolveVariable ( FieldDeclaration variable ) { } ITypeBinding resolveExpressionType ( Expression expression ) { } IVariableBinding resolveField ( FieldAccess fieldAccess ) { } IVariableBinding resolveField ( SuperFieldAccess fieldAccess ) { } IBinding resolveImport ( ImportDeclaration importDeclaration ) { } IPackageBinding resolvePackage ( PackageDeclaration pkg ) { } public ASTNode findDeclaringNode ( IBinding binding ) { } ASTNode findDeclaringNode ( String bindingKey ) { } void store ( ASTNode node , AstNode oldASTNode ) { } void updateKey ( ASTNode node , ASTNode newNode ) { } protected ITypeBinding getTypeBinding ( TypeBinding referenceBinding ) { } protected IPackageBinding getPackageBinding ( PackageBinding packageBinding ) { if ( ( packageBinding == null ) || ( ! ( packageBinding . isValidBinding ( ) ) ) ) { return null ; } IPackageBinding binding = ( ( IPackageBinding ) ( this . compilerBindingsToASTBindings . get ( packageBinding ) ) ) ; if ( binding != null ) { return binding ; } <START_BUG> binding = new PackageBinding ( this , packageBinding ) ; <END_BUG> this . compilerBindingsToASTBindings . put ( packageBinding , binding ) ; return binding ; } protected IVariableBinding getVariableBinding ( VariableBinding variableBinding ) { } protected IMethodBinding getMethodBinding ( MethodBinding methodBinding ) { } IMethodBinding resolveConstructor ( ClassInstanceCreation expression ) { } IMethodBinding resolveConstructor ( ConstructorInvocation expression ) { } IMethodBinding resolveConstructor ( SuperConstructorInvocation expression ) { } ITypeBinding resolveType ( AnonymousClassDeclaration type ) { } AstNode getCorrespondingNode ( ASTNode currentNode ) { } void recordScope ( ASTNode astNode , BlockScope blockScope ) { } }

Fix:
binding = new PackageBinding ( packageBinding ) ;
Buggy code:
public class HdfsOutputPlugin implements FileOutputPlugin { private static final Logger logger = Exec . getLogger ( HdfsOutputPlugin . class ) ; public interface PluginTask extends Task { @ Config ( "config_files" ) @ ConfigDefault ( "[]" ) public List < String > getConfigFiles ( ) { } @ Config ( "config" ) @ ConfigDefault ( "{}" ) public Map < String , String > getConfig ( ) { } @ Config ( "sequence_format" ) @ ConfigDefault ( "\"%03d.%02d\"" ) public String getSequenceFormat ( ) { } @ Config ( "output_path" ) @ ConfigDefault ( "\"//tmp//embulk.output.hdfs_output.%Y%m%d_%s\"" ) public String getOutputPath ( ) { } @ Config ( "working_path" ) @ ConfigDefault ( "\"//tmp//embulk.working.hdfs_output.%Y%m%d_%s\"" ) public String getWorkingPath ( ) { } } @ Override public ConfigDiff transaction ( ConfigSource config , int taskCount , FileOutputPlugin . Control control ) { } private void checkOutputPath ( HdfsOutputPlugin . PluginTask task , boolean makeParentDir ) { try { Configuration configuration = getHdfsConfiguration ( task ) ; FileSystem fs = getFs ( configuration ) ; String outputPath = strftime ( task . getOutputPath ( ) ) ; Path opath = new Path ( outputPath ) ; Path ppath = opath . getParent ( ) ; if ( fs . exists ( opath ) ) { throw new RuntimeException ( ( ( opath . toString ( ) ) + "already<seq2seq4repair_space>exists." ) ) ; } <START_BUG> if ( ! ( fs . exists ( ppath ) ) ) { <END_BUG> fs . mkdirs ( ppath ) ; } } catch ( IOException ioe ) { new RuntimeException ( ( ( ioe . toString ( ) ) + "<seq2seq4repair_space>happened." ) ) ; } catch ( RuntimeException re ) { throw re ; } } @ Override public ConfigDiff resume ( TaskSource taskSource , int taskCount , FileOutputPlugin . Control control ) { } @ Override public void cleanup ( TaskSource taskSource , int taskCount , List < CommitReport > successCommitReports ) { } @ Override public TransactionalFileOutput open ( TaskSource taskSource , final int taskIndex ) { } private Configuration getHdfsConfiguration ( final HdfsOutputPlugin . PluginTask task ) { } private FileSystem getFs ( final Configuration configuration ) { } private String strftime ( final String path ) { } static class TransactionalHdfsFileOutput implements TransactionalFileOutput { private final int taskIndex ; private final FileSystem fs ; private final String workingPath ; private final String outputPath ; private final String sequenceFormat ; private int fileIndex = 0 ; private int callCount = 0 ; private Path currentPath = null ; private OutputStream currentStream = null ; public TransactionalHdfsFileOutput ( HdfsOutputPlugin . PluginTask task , FileSystem fs , String workingPath , String outputPath , int taskIndex ) { } public void nextFile ( ) { } @ Override public void add ( Buffer buffer ) { } @ Override public void finish ( ) { } @ Override public void close ( ) { } @ Override public void abort ( ) { } @ Override public CommitReport commit ( ) { } private void closeCurrentStream ( ) { } } }

Fix:
if ( makeParentDir && ( ! ( fs . exists ( ppath ) ) ) ) {