nus-yam/ex-repair huggingface dataset:
Buggy code:
final class ExtensionContextRegistry extends AbstractContextRegistry { private List contextContextBindingDefinitions ; private List contextDefinitions ; private IExtensionRegistry extensionRegistry ; ExtensionContextRegistry ( IExtensionRegistry extensionRegistry ) { } private String getPluginId ( IConfigurationElement configurationElement ) { String pluginId = null ; if ( configurationElement != null ) { IExtension extension = configurationElement . getDeclaringExtension ( ) ; if ( extension != null ) <START_BUG> pluginId = extension . getParentIdentifier ( ) ; <END_BUG> } return pluginId ; } private void load ( ) throws IOException { } private void readContextContextBindingDefinition ( IConfigurationElement configurationElement ) { } private void readContextDefinition ( IConfigurationElement configurationElement ) { } }

Fix:
pluginId = extension . getNamespace ( ) ;
Buggy code:
public class TestECG_2 { public static void main ( String [ ] args ) { AnalysisWrapperUtil awU = new AnalysisWrapperUtil ( ) ; OctaveEngine octave = new OctaveEngineFactory ( ) . getScriptEngine ( ) ; octave . eval ( "cd<seq2seq4repair_space>\"F://octave\"<seq2seq4repair_space>" ) ; octave . eval ( "addpath(\"signal_package\")" ) ; octave . eval ( "addpath(\"general_package\")" ) ; ArrayList < ASInput > inputList = new ArrayList < > ( ) ; ArrayList < ASOutput > outputList = new ArrayList < > ( ) ; ASInput input1 = new ASInput ( ) ; input1 . setName ( "input1" ) ; input1 . setType ( "string" ) ; input1 . setValue ( "input1.txt" ) ; ASOutput output1 = new ASOutput ( ) ; output1 . setName ( "output1" ) ; output1 . setType ( "sensordata" ) ; inputList . add ( input1 ) ; outputList . add ( output1 ) ; String mainFunctionString = awU . createMainFunction ( "main3" , inputList , outputList ) ; for ( ASInput input : inputList ) { if ( input . getType ( ) . equals ( "string" ) ) { OctaveString octaveInput = new OctaveString ( ( ( String ) ( input . getValue ( ) ) ) ) ; octave . put ( input . getName ( ) , octaveInput ) ; } } try { octave . eval ( mainFunctionString ) ; } catch ( Exception ex ) { ex . printStackTrace ( ) ; System . out . println ( ex . getMessage ( ) ) ; } for ( ASOutput output : outputList ) { if ( ( output . getType ( ) ) == ( MarketplaceContants . sensordataType ) ) { OctaveCell result = ( ( OctaveCell ) ( octave . get ( output . getName ( ) ) ) ) ; <START_BUG> List < JsonDataPoints > datapointsList = awU . unwrapOctaveSensorData ( result ) ; <END_BUG> if ( datapointsList == null ) { } else { } } else if ( ( output . getType ( ) ) == ( MarketplaceContants . fileType ) ) { } else if ( ( output . getType ( ) ) == ( MarketplaceContants . StringType ) ) { } else if ( ( output . getType ( ) ) == ( MarketplaceContants . integerType ) ) { } else if ( ( output . getType ( ) ) == ( MarketplaceContants . doubleType ) ) { } } octave . close ( ) ; } }

Fix:
List < JsonDataPoints > datapointsList = awU . unwrapOctaveSensorData ( result , null ) ;
Buggy code:
public class ZkState { public static final Logger LOG = LoggerFactory . getLogger ( ZkState . class ) ; CuratorFramework _curator ; private CuratorFramework newCurator ( Map stateConf ) throws Exception { } public CuratorFramework getCurator ( ) { } public ZkState ( Map stateConf ) { } public void writeJSON ( String path , Map < Object , Object > data ) { <START_BUG> ZkState . LOG . debug ( ( ( ( "Writing<seq2seq4repair_space>" + path ) + "<seq2seq4repair_space>the<seq2seq4repair_space>data<seq2seq4repair_space>" ) + ( data . toString ( ) ) ) ) ; <END_BUG> writeBytes ( path , JSONValue . toJSONString ( data ) . getBytes ( Charset . forName ( "UTF-8" ) ) ) ; } public void writeBytes ( String path , byte [ ] bytes ) { } public Map < Object , Object > readJSON ( String path ) { } public byte [ ] readBytes ( String path ) { } public void close ( ) { } }

Fix:
ZkState . LOG . info ( ( ( ( "Writing<seq2seq4repair_space>" + path ) + "<seq2seq4repair_space>the<seq2seq4repair_space>data<seq2seq4repair_space>" ) + ( data . toString ( ) ) ) ) ;
Buggy code:
public class StateFilterEvaluator extends AttrbuteFilterExpressionCollectionEvaluator { private static final Logger LOG = LogManager . getLogger ( ) ; public boolean evaluate ( StateFilter stateFilter , State state ) throws ParseException { if ( StateFilterEvaluator . LOG . isTraceEnabled ( ) ) { StateFilterEvaluator . LOG . entry ( stateFilter , state ) ; } if ( ! ( stateFilter . getAppliesToStateDefinition ( ) . equals ( state . getStateDefinition ( ) . getUUID ( ) ) ) ) { if ( StateFilterEvaluator . LOG . isTraceEnabled ( ) ) { StateFilterEvaluator . LOG . trace ( "Event<seq2seq4repair_space>filter's<seq2seq4repair_space>appliesToEventDefinition<seq2seq4repair_space>value<seq2seq4repair_space>did<seq2seq4repair_space>not<seq2seq4repair_space>match<seq2seq4repair_space>Event<seq2seq4repair_space>Definition's<seq2seq4repair_space>UUID." ) ; StateFilterEvaluator . LOG . exit ( false ) ; } return false ; } final boolean result = super . evaluate ( stateFilter , state , state . getStateDefinition ( ) . getAttributeDefinitions ( ) ) ; if ( StateFilterEvaluator . LOG . isTraceEnabled ( ) ) { StateFilterEvaluator . LOG . exit ( result ) ; } <START_BUG> return true ; <END_BUG> } }

Fix:
return result ;
Buggy code:
public class EnemyView implements CharacterView { private Texture texture ; private Sprite sprite ; private static final int DELAY = 2500 ; private ArrayList < Rectangle > rectangle ; private Enemy enemy ; private Timer timer ; private int movementSpeed ; private int health ; private Vector2 vector ; private WeaponView weaponView ; private boolean collision ; EnemyView ( Enemy enemy ) { } public Texture getTexture ( ) { } public ArrayList < Rectangle > getRectangles ( ) { } @ Override public void setRectangles ( ArrayList < Rectangle > rectangles ) { } public void setRectangle ( Rectangle rectangle ) { } public Sprite getSprite ( ) { } @ Override public void hit ( ProjectileView projectile ) { <START_BUG> System . out . println ( "Enemy<seq2seq4repair_space>hit!" ) ; <END_BUG> } public Position getPosition ( ) { } public void draw ( SpriteBatch batch ) { } public void update ( ) { } public void setCollision ( ) { } public void dispose ( ) { } }

Fix:
System . out . println ( this ) ;
Buggy code:
public class FileSystemUtils { private static final FileSystemUtils INSTANCE = new FileSystemUtils ( ) ; private static final int INIT_PROBLEM = - 1 ; private static final int OTHER = 0 ; private static final int WINDOWS = 1 ; private static final int UNIX = 2 ; private static final int POSIX_UNIX = 3 ; private static final int OS ; private static final String DF ; public FileSystemUtils ( ) { } @ Deprecated public static long freeSpace ( String path ) throws IOException { } public static long freeSpaceKb ( String path ) throws IOException { } public static long freeSpaceKb ( String path , long timeout ) throws IOException { } public static long freeSpaceKb ( ) throws IOException { } public static long freeSpaceKb ( long timeout ) throws IOException { } long freeSpaceOS ( String path , int os , boolean kb , long timeout ) throws IOException { } long freeSpaceWindows ( String path , long timeout ) throws IOException { path = FilenameUtils . normalize ( path , false ) ; if ( ( ( path . length ( ) ) > 0 ) && ( ( path . charAt ( 0 ) ) != '"' ) ) { path = ( "\"" + path ) + "\"" ; } <START_BUG> String [ ] cmdAttribs = new String [ ] { "cmd.exe" , "//C" , "dir<seq2seq4repair_space>//-c<seq2seq4repair_space>" + path } ; <END_BUG> List < String > lines = performCommand ( cmdAttribs , Integer . MAX_VALUE , timeout ) ; for ( int i = ( lines . size ( ) ) - 1 ; i >= 0 ; i -- ) { String line = lines . get ( i ) ; if ( ( line . length ( ) ) > 0 ) { return parseDir ( line , path ) ; } } throw new IOException ( ( ( ( "Command<seq2seq4repair_space>line<seq2seq4repair_space>'dir<seq2seq4repair_space>//-c'<seq2seq4repair_space>did<seq2seq4repair_space>not<seq2seq4repair_space>return<seq2seq4repair_space>any<seq2seq4repair_space>info<seq2seq4repair_space>" + "for<seq2seq4repair_space>path<seq2seq4repair_space>'" ) + path ) + "'" ) ) ; } long parseDir ( String line , String path ) throws IOException { } long freeSpaceUnix ( String path , boolean kb , boolean posix , long timeout ) throws IOException { } long parseBytes ( String freeSpace , String path ) throws IOException { } List < String > performCommand ( String [ ] cmdAttribs , int max , long timeout ) throws IOException { } Process openProcess ( String [ ] cmdAttribs ) throws IOException { } }

Fix:
String [ ] cmdAttribs = new String [ ] { "cmd.exe" , "//C" , "dir<seq2seq4repair_space>//a<seq2seq4repair_space>//-c<seq2seq4repair_space>" + path } ;
Buggy code:
public class TreetestInterpreterTest extends TestCase { @ Override protected void setUp ( ) throws Exception { } public void testTree ( ) throws RecognitionException { <START_BUG> test ( "org//eclipse//xpand3//parser//node2ast//test.tree" ) ; <END_BUG> } private void test ( String testFileName ) throws RecognitionException { } private SyntaxElement parseAndTransform ( Expression testExpression ) throws RecognitionException { } @ SuppressWarnings ( "unchecked" ) protected void performTest ( EObject object , Node testRootNode ) { } }

Fix:
test ( "org//eclipse//xpand3//parser//node2ast//test.ttst" ) ;
Buggy code:
public class IMAPCache implements Runnable { private StreamCache cache ; private static IMAPCache instance = new IMAPCache ( ) ; protected IMAPCache ( ) { } public static IMAPCache getInstance ( ) { } public void addMimeTree ( IMAPFolder folder , Object uid , MimeTree mimeTree ) throws IOException { } public MimeTree getMimeTree ( IMAPFolder folder , Object uid ) throws IOException { InputStream in = cache . get ( createMimeTreeKey ( folder , uid ) ) ; if ( in != null ) { try { return ( ( MimeTree ) ( new ObjectInputStream ( in ) . readObject ( ) ) ) ; <START_BUG> } catch ( ClassNotFoundException e ) { <END_BUG> return null ; } } else { return null ; } } private InputStream convertToStream ( Object o ) throws IOException { } public InputStream addMimeBody ( IMAPFolder folder , Object uid , Integer [ ] address , InputStream data ) throws IOException { } public InputStream getMimeBody ( IMAPFolder folder , Object uid , Integer [ ] address ) { } protected String createMimeBodyKey ( IMAPFolder folder , Object uid , Integer [ ] address ) { } protected String createMimeTreeKey ( IMAPFolder folder , Object uid ) { } protected String addressToString ( Integer [ ] address ) { } public void run ( ) { } }

Fix:
} catch ( Exception e ) {
Buggy code:
public class ProductSearchActivity extends ActionBarActivity implements ProductSearchHandler { private static final String LOG_TAG = "ProductSearchActivity" ; public static final String PRODUCT_EXTRA = "ProductExtra" ; private ListView productListView ; private ProductArrayAdapter productAdapter ; @ Override public void onCreate ( Bundle savedInstanceState ) { } @ Override public void onNewIntent ( Intent intent ) { } private void handleSearchIntent ( Intent intent ) { } @ Override public boolean onCreateOptionsMenu ( Menu menu ) { } @ Override public void handleProductSearchResult ( List < Product > products ) { if ( ( productAdapter ) != null ) { <START_BUG> if ( products == null ) { <END_BUG> productAdapter . clear ( ) ; productAdapter . addAll ( products ) ; productAdapter . notifyDataSetChanged ( ) ; } else { Log . e ( ProductSearchActivity . LOG_TAG , "No<seq2seq4repair_space>products<seq2seq4repair_space>from<seq2seq4repair_space>search<seq2seq4repair_space>results." ) ; } } else { Log . e ( ProductSearchActivity . LOG_TAG , "Error:<seq2seq4repair_space>productAdapter<seq2seq4repair_space>is<seq2seq4repair_space>null<seq2seq4repair_space>in<seq2seq4repair_space>handleProductSearchResult(List)" ) ; } } class ProductSearchTask extends AsyncTask < String , String , List < Product > > { private ProductSearchHandler handler ; public ProductSearchTask ( ProductSearchHandler handler ) { } @ Override protected List < Product > doInBackground ( String ... args ) { } @ Override protected void onPostExecute ( List < Product > products ) { } } }

Fix:
if ( products != null ) {
Buggy code:
public class WeibullDistributionTest extends ContinuousDistributionAbstractTest { public WeibullDistributionTest ( String arg0 ) { } public ContinuousDistribution makeDistribution ( ) { <START_BUG> return DistributionFactory . newInstance ( ) . createWeibullDistribution ( 1.2 , 2.1 ) ; <END_BUG> } public double [ ] makeCumulativeTestPoints ( ) { } public double [ ] makeCumulativeTestValues ( ) { } public void testInverseCumulativeProbabilityExtremes ( ) throws Exception { } public void testAlpha ( ) { } public void testBeta ( ) { } public void testSetAlpha ( ) { } public void testSetBeta ( ) { } }

Fix:
return new WeibullDistributionImpl ( 1.2 , 2.1 ) ;
Buggy code:
public class StatefulRemoteViewInstanceFactory implements ViewInstanceFactory { private final String applicationName ; private final String moduleName ; private final String distinctName ; private final String beanName ; public StatefulRemoteViewInstanceFactory ( final String applicationName , final String moduleName , final String distinctName , final String beanName ) { } @ Override public ManagedReference createViewInstance ( final ComponentView componentView , final Map < Object , Object > contextData ) throws Exception { <START_BUG> SessionID sessionID = ( ( SessionID ) ( contextData . get ( SESSION_ID_KEY ) ) ) ; <END_BUG> if ( sessionID == null ) { sessionID = EJBClient . createSession ( applicationName , moduleName , beanName , distinctName ) ; } Object value = EJBClient . createProxy ( new org . jboss . ejb . client . StatefulEJBLocator ( componentView . getViewClass ( ) , applicationName , moduleName , beanName , distinctName , sessionID ) ) ; return new org . jboss . as . naming . ValueManagedReference ( new ImmediateValue ( value ) ) ; } }

Fix:
SessionID sessionID = ( ( SessionID ) ( contextData . get ( SessionID . class ) ) ) ;
Buggy code:
public class SwitchCase extends Statement { private Expression optionalExpression = null ; private boolean expressionInitialized = false ; SwitchCase ( AST ast ) { } ASTNode clone ( AST target ) { } public boolean subtreeMatch ( ASTMatcher matcher , Object other ) { } void accept0 ( ASTVisitor visitor ) { } public Expression getExpression ( ) { if ( ! ( expressionInitialized ) ) { <START_BUG> setExpression ( null ) ; <END_BUG> } return optionalExpression ; } public void setExpression ( Expression expression ) { } public boolean isDefault ( ) { } int memSize ( ) { } int treeSize ( ) { } }

Fix:
setExpression ( new SimpleName ( getAST ( ) ) ) ;
Buggy code:
public class AroundInvokeAnnotationParsingProcessor implements DeploymentUnitProcessor { private static final DotName AROUND_INVOKE_ANNOTATION_NAME = DotName . createSimple ( AroundInvoke . class . getName ( ) ) ; public void deploy ( DeploymentPhaseContext phaseContext ) throws DeploymentUnitProcessingException { } public void undeploy ( final DeploymentUnit context ) { } private void processAroundInvoke ( final EEModuleDescription eeModuleDescription , final AnnotationTarget target ) { if ( ! ( target instanceof MethodInfo ) ) { throw new IllegalArgumentException ( "@AroundInvoke<seq2seq4repair_space>is<seq2seq4repair_space>only<seq2seq4repair_space>valid<seq2seq4repair_space>on<seq2seq4repair_space>method<seq2seq4repair_space>targets." ) ; } final MethodInfo methodInfo = MethodInfo . class . cast ( target ) ; final ClassInfo classInfo = methodInfo . declaringClass ( ) ; final EEModuleClassDescription classDescription = eeModuleDescription . getOrAddClassByName ( classInfo . name ( ) . toString ( ) ) ; validateArgumentType ( classInfo , methodInfo ) ; <START_BUG> classDescription . setAroundInvokeMethod ( MethodIdentifier . getIdentifier ( Void . TYPE , methodInfo . name ( ) , InvocationContext . class ) ) ; <END_BUG> } private void validateArgumentType ( final ClassInfo classInfo , final MethodInfo methodInfo ) { } }

Fix:
classDescription . setAroundInvokeMethod ( MethodIdentifier . getIdentifier ( Object . class , methodInfo . name ( ) , InvocationContext . class ) ) ;
Buggy code:
@ SuppressWarnings ( "deprecation" ) public class ApacheSparkKMeansTest { private static final boolean USE_ITERATOR = false ; private static final String SPLIT_MARK = "," ; public static void main ( String [ ] args ) throws Exception { if ( ( args . length ) < 3 ) { System . err . println ( "Usage:<seq2seq4repair_space>JavaKMeans<seq2seq4repair_space><file><seq2seq4repair_space><k><seq2seq4repair_space><convergeDist>" ) ; System . exit ( 1 ) ; } String path = args [ 0 ] ; int K = Integer . parseInt ( args [ 1 ] ) ; double convergeDist = Double . parseDouble ( args [ 2 ] ) ; String master = null ; if ( ( args . length ) == 4 ) master = args [ 3 ] ; SparkConf sparkConf = new SparkConf ( ) . setAppName ( "JavaKMeans" ) ; if ( master != null ) sparkConf . setMaster ( master ) ; JavaSparkContext sc = new JavaSparkContext ( sparkConf ) ; long start = System . currentTimeMillis ( ) ; JavaRDD < Vector > data = sc . textFile ( path ) . map ( ( line ) -> ApacheSparkKMeansHelper . parseVector ( line , SPLIT_MARK ) ) . cache ( ) ; <START_BUG> final List < Vector > centroids = data . takeSample ( false , K , 42 ) ; <END_BUG> double tempDist ; do { JavaPairRDD < Integer , Vector > closest = data . mapToPair ( ( vector ) -> new Tuple2 < Integer , Vector > ( ApacheSparkKMeansHelper . closestPoint ( vector , centroids ) , vector ) ) ; JavaPairRDD < Integer , Iterable < Vector > > pointsGroup = closest . groupByKey ( ) ; Map < Integer , Vector > newCentroids = pointsGroup . mapValues ( ( ps ) -> USE_ITERATOR ? ApacheSparkKMeansHelper . average ( ps ) : ApacheSparkKMeansHelper . average ( Lists . newArrayList ( ps ) ) ) . collectAsMap ( ) ; tempDist = 0.0 ; for ( int i = 0 ; i < K ; i ++ ) { tempDist += centroids . get ( i ) . squaredDist ( newCentroids . get ( i ) ) ; } for ( Map . Entry < Integer , Vector > t : newCentroids . entrySet ( ) ) { centroids . set ( t . getKey ( ) , t . getValue ( ) ) ; } System . out . println ( ( ( "Finished<seq2seq4repair_space>iteration<seq2seq4repair_space>(delta<seq2seq4repair_space>=<seq2seq4repair_space>" + tempDist ) + ")" ) ) ; } while ( tempDist > convergeDist ) ; System . out . println ( String . format ( "Final<seq2seq4repair_space>centers(%s):" , centroids . size ( ) ) ) ; for ( Vector c : centroids ) System . out . println ( c ) ; System . out . println ( String . format ( "ApacheSparkKMeansTest<seq2seq4repair_space>executed<seq2seq4repair_space>in:<seq2seq4repair_space>%s[ms]" , ( ( System . currentTimeMillis ( ) ) - start ) ) ) ; sc . close ( ) ; System . exit ( 0 ) ; } private static List < Vector > realVectorToVector ( List < RealVector > allData ) { } }

Fix:
final List < Vector > centroids = data . takeSample ( false , K , System . currentTimeMillis ( ) ) ;
Buggy code:
public class TypeLiteral extends Expression { private Type type = null ; TypeLiteral ( AST ast ) { } public int getNodeType ( ) { } ASTNode clone ( AST target ) { } public boolean subtreeMatch ( ASTMatcher matcher , Object other ) { } void accept0 ( ASTVisitor visitor ) { } public Type getType ( ) { } public void setType ( Type type ) { if ( type == null ) { throw new IllegalArgumentException ( ) ; } <START_BUG> replaceChild ( ( ( ASTNode ) ( this . type ) ) , ( ( ASTNode ) ( type ) ) , false ) ; <END_BUG> this . type = type ; } int memSize ( ) { } int treeSize ( ) { } }

Fix:
replaceChild ( this . type , type , false ) ;
Buggy code:
public final class ThreadsSubsystemElement extends AbstractSubsystemElement < ThreadsSubsystemElement > { private static final long serialVersionUID = - 8577568464935736902L ; private static final Logger log = Logger . getLogger ( "org.jboss.as.threads" ) ; private final NavigableMap < String , ThreadFactoryElement > threadFactories = new TreeMap < String , ThreadFactoryElement > ( ) ; private final NavigableMap < String , ChildElement < ? extends AbstractExecutorElement < ? > > > executors = new TreeMap < String , ChildElement < ? extends AbstractExecutorElement < ? > > > ( ) ; protected ThreadsSubsystemElement ( ) { } @ Override protected Class < ThreadsSubsystemElement > getElementClass ( ) { <START_BUG> return null ; <END_BUG> } @ Override public void writeContent ( final XMLExtendedStreamWriter streamWriter ) throws XMLStreamException { } protected void getUpdates ( final List < ? super AbstractSubsystemUpdate < ThreadsSubsystemElement , ? > > objects ) { } protected boolean isEmpty ( ) { } protected ThreadsSubsystemAdd getAdd ( ) { } protected < P > void applyRemove ( final UpdateContext updateContext , final UpdateResultHandler < ? super Void , P > resultHandler , final P param ) { } ThreadFactoryElement getThreadFactory ( final String name ) { } void removeThreadFactory ( final String name ) { } ThreadFactoryElement addThreadFactory ( final String name ) { } AbstractExecutorElement < ? > getExecutor ( final String name ) { } void removeExecutor ( final String name ) { } void addExecutor ( final String name , final ChildElement < ? extends AbstractExecutorElement < ? > > element ) { } }

Fix:
return ThreadsSubsystemElement . class ;
Buggy code:
public class DiscriminatorMappingInfo extends MappingInfo { private static final Localizer _loc = Localizer . forPackage ( DiscriminatorMappingInfo . class ) ; private String _value = null ; public String getValue ( ) { } public void setValue ( String value ) { } public Object getValue ( Discriminator discrim , boolean adapt ) { if ( ( discrim . getValue ( ) ) != null ) return discrim . getValue ( ) ; if ( StringUtils . isEmpty ( _value ) ) { return discrim . getMappingRepository ( ) . getMappingDefaults ( ) . getDiscriminatorValue ( discrim , adapt ) ; } switch ( discrim . getJavaType ( ) ) { case JavaTypes . INT : return Integer . valueOf ( _value ) ; case JavaTypes . CHAR : <START_BUG> return Character . valueOf ( _value . charAt ( ( ( _value . indexOf ( '\'' ) ) + 1 ) ) ) ; <END_BUG> case JavaTypes . STRING : default : return _value ; } } public Column [ ] getColumns ( Discriminator discrim , Column [ ] tmplates , boolean adapt ) { } public Index getIndex ( Discriminator discrim , Column [ ] cols , boolean adapt ) { } public void syncWith ( Discriminator disc ) { } protected void clear ( boolean canFlags ) { } public void copy ( MappingInfo info ) { } }

Fix:
return new Character ( _value . charAt ( ( ( _value . indexOf ( '\'' ) ) + 1 ) ) ) ;
Buggy code:
public abstract class A_Class { private String _name ; private int _HP ; private int _maxHP ; private int _MP ; private int _minDamage ; private int _maxDamage ; private double _chanceToHit ; private boolean _isDead ; private Inventory _inventory ; public A_Class ( Inventory inventory , String name , int HP , int MP , int minDamage , int maxDamage , double chanceToHit ) { } public Inventory getInventory ( ) { } public String getName ( ) { } public int getHP ( ) { } public int getMP ( ) { } public int getMinDamage ( ) { } public int getMaxDamage ( ) { } public double getChanceToHit ( ) { } public void takeDamage ( int damage ) { } public boolean isDead ( ) { } public int heal ( int HP ) { } public String usePotion ( ) { } public int getMaxHP ( ) { } public String defend ( ) { if ( ( _HP ) < 0 ) <START_BUG> return ( ( ( _name ) + "<seq2seq4repair_space>is<seq2seq4repair_space>critically<seq2seq4repair_space>dead<seq2seq4repair_space>with<seq2seq4repair_space>" ) + ( _HP ) ) + "<seq2seq4repair_space>health<seq2seq4repair_space>missing" ; <END_BUG> return ( ( ( _name ) + "<seq2seq4repair_space>has<seq2seq4repair_space>" ) + ( _HP ) ) + "<seq2seq4repair_space>health<seq2seq4repair_space>remaining" ; } public String attack ( A_Class enemy ) { } public String toString ( ) { } }

Fix:
return ( _name ) + "<seq2seq4repair_space>is<seq2seq4repair_space>dead" ;
Buggy code:
public final class GuestBook extends WicketExamplePage { private static final List commentList = new ArrayList ( ) ; private final ListView commentListView ; public GuestBook ( ) { } public final class CommentForm extends Form { private final Comment comment = new Comment ( ) ; public CommentForm ( final String componentName ) { } public final void onSubmit ( ) { final Comment newComment = new Comment ( comment ) ; newComment . setDate ( new Date ( ) ) ; synchronized ( commentListView . getModelLock ( ) ) { GuestBook . commentList . add ( 0 , newComment ) ; } <START_BUG> commentListView . invalidateModel ( ) ; <END_BUG> comment . setText ( "" ) ; } } }

Fix:
commentListView . modelChangedStructure ( ) ;
Buggy code:
public class RequestUtil { public static Hashtable readFormData ( Request request ) { String contentType = request . getContentType ( ) ; if ( contentType != null ) { if ( ( contentType . indexOf ( ";" ) ) > 0 ) contentType = contentType . substring ( 0 , ( ( contentType . indexOf ( ";" ) ) - 1 ) ) ; contentType = contentType . toLowerCase ( ) . trim ( ) ; } int contentLength = request . getContentLength ( ) ; if ( ( contentType != null ) && ( contentType . startsWith ( "application//x-www-form-urlencoded" ) ) ) { try { <START_BUG> ServletInputStream is = request . getInputStream ( ) ; <END_BUG> Hashtable postParameters = HttpUtils . parsePostData ( contentLength , is ) ; return postParameters ; } catch ( IOException e ) { } } return null ; } public static Hashtable mergeParameters ( Hashtable one , Hashtable two ) { } public static BufferedReader getReader ( Request request ) throws IOException { } public static void processCookies ( Request request , Vector cookies ) { } private static String stripQuote ( String value ) { } public static void processFormData ( String data , Hashtable parameters ) { } public static int readData ( InputStream in , byte [ ] buf , int length ) { } public static final String URLDecode ( String str ) throws NumberFormatException , StringIndexOutOfBoundsException { } public static String unUrlDecode ( String data ) { } public static String getCharsetFromContentType ( String type ) { } public static Enumeration getLocales ( HttpServletRequest req ) { } private static final Locale loc = Locale . US ; private static final TimeZone zone = TimeZone . getTimeZone ( "GMT" ) ; private static final String rfc1123Pattern = "EEE,<seq2seq4repair_space>dd<seq2seq4repair_space>MMM<seq2seq4repair_space>yyyyy<seq2seq4repair_space>HH:mm:ss<seq2seq4repair_space>z" ; private static final String rfc1036Pattern = "EEEEEEEEE,<seq2seq4repair_space>dd-MMM-yy<seq2seq4repair_space>HH:mm:ss<seq2seq4repair_space>z" ; private static final String asctimePattern = "EEE<seq2seq4repair_space>MMM<seq2seq4repair_space>d<seq2seq4repair_space>HH:mm:ss<seq2seq4repair_space>yyyyy" ; private static final SimpleDateFormat rfc1123Format = new SimpleDateFormat ( RequestUtil . rfc1123Pattern , RequestUtil . loc ) ; private static final SimpleDateFormat rfc1036Format = new SimpleDateFormat ( RequestUtil . rfc1036Pattern , RequestUtil . loc ) ; private static final SimpleDateFormat asctimeFormat = new SimpleDateFormat ( RequestUtil . asctimePattern , RequestUtil . loc ) ; public static long toDate ( String dateString ) { } }

Fix:
ServletInputStream is = request . getFacade ( ) . getInputStream ( ) ;
Buggy code:
public class AdapterUtils { public static View findParentViewHolderItemView ( View v ) { final ViewParent parent = v . getParent ( ) ; if ( parent instanceof RecyclerView ) { return v ; } else <START_BUG> if ( v instanceof View ) { <END_BUG> return AdapterUtils . findParentViewHolderItemView ( ( ( View ) ( parent ) ) ) ; } else { return null ; } } }

Fix:
if ( parent instanceof View ) {
Buggy code:
public class QueryDataServiceImpl implements QueryDataService { private final SparqlDao sparqlDao ; private final Logger log ; public QueryDataServiceImpl ( SparqlDao sparqlDao , Logger log ) { } public List < Triple > executeQuery ( Query query ) { } private Triple resultToTriple ( List < String > head , SelectResult result ) { } public List < Triple > executeQuery ( Query query , Integer limit , Integer offset , String orderBy ) { } public int executeCountForQuery ( Query query ) { <START_BUG> if ( COUNT . equals ( query ) ) { <END_BUG> return 1 ; } if ( query . isNull ( ) ) { return 0 ; } final String countSparqlString = query . toSparqlString ( COUNT ) ; final SelectResultSet results = sparqlDao . executeQuery ( countSparqlString ) ; if ( results . getResults ( ) . isEmpty ( ) ) { return 0 ; } final String countLabel = results . getHead ( ) . get ( 0 ) ; final SelectResult firstResult = results . getResults ( ) . get ( 0 ) ; final String count = firstResult . getResult ( ) . get ( countLabel ) . getValue ( ) ; if ( count == null ) { return 0 ; } return Integer . valueOf ( count ) ; } }

Fix:
if ( COUNT . equals ( query . getQuestionType ( ) ) ) {
Buggy code:
public class NotRule extends AbstractRule { private final Rule rule ; private NotRule ( Rule rule ) { } public static Rule getRule ( Rule rule ) { } public static Rule getRule ( Stack stack ) { if ( ( stack . size ( ) ) < 1 ) { <START_BUG> throw new IllegalArgumentException ( ( "Invalid<seq2seq4repair_space>NOT<seq2seq4repair_space>rule<seq2seq4repair_space>-<seq2seq4repair_space>expected<seq2seq4repair_space>one<seq2seq4repair_space>rule<seq2seq4repair_space>but<seq2seq4repair_space>provided<seq2seq4repair_space>" + ( stack . size ( ) ) ) ) ; <END_BUG> } Object o1 = stack . pop ( ) ; if ( o1 instanceof Rule ) { Rule p1 = ( ( Rule ) ( o1 ) ) ; return new NotRule ( p1 ) ; } else { throw new IllegalArgumentException ( ( "Invalid<seq2seq4repair_space>NOT<seq2seq4repair_space>rule:<seq2seq4repair_space>-<seq2seq4repair_space>expected<seq2seq4repair_space>rule<seq2seq4repair_space>but<seq2seq4repair_space>received<seq2seq4repair_space>" + o1 ) ) ; } } public boolean evaluate ( LoggingEvent event ) { } }

Fix:
throw new IllegalArgumentException ( ( "Invalid<seq2seq4repair_space>NOT<seq2seq4repair_space>rule<seq2seq4repair_space>-<seq2seq4repair_space>expected<seq2seq4repair_space>one<seq2seq4repair_space>rule<seq2seq4repair_space>but<seq2seq4repair_space>received<seq2seq4repair_space>" + ( stack . size ( ) ) ) ) ;
Buggy code:
public class ParameterOperand extends SpecialOperand { public ParameterOperand ( Operand memory , Operand param ) { } public Operand getMemory ( ) { } public Operand getParam ( ) { } @ Override public String toString ( ) { <START_BUG> return ( ( getOperand1 ( ) . toString ( ) ) + "=" ) + ( getOperand1 ( ) . toString ( ) ) ; <END_BUG> } }

Fix:
return ( ( getOperand1 ( ) . toString ( ) ) + "=" ) + ( getOperand2 ( ) . toString ( ) ) ;
Buggy code:
@ WebServlet ( "//MakeStoreServlet" ) public class MakeStoreServlet extends HttpServlet { private static final long serialVersionUID = 1L ; @ Override protected void doGet ( HttpServletRequest request , HttpServletResponse response ) throws IOException , ServletException { } protected void doPost ( HttpServletRequest request , HttpServletResponse response ) throws IOException , ServletException { } private void forwardJSP ( HttpServletRequest request , HttpServletResponse response , String message ) throws IOException , ServletException { request . setAttribute ( "errorMessage" , message ) ; <START_BUG> RequestDispatcher rd = request . getRequestDispatcher ( "//jsp//register//register.jsp" ) ; <END_BUG> rd . forward ( request , response ) ; } }

Fix:
RequestDispatcher rd = request . getRequestDispatcher ( "//jsp//store//makeStore.jsp" ) ;
Buggy code:
public class WeldDependencyProcessor implements DeploymentUnitProcessor { private static ModuleIdentifier JAVAX_PERSISTENCE_API_ID = ModuleIdentifier . create ( "javax.persistence.api" ) ; private static ModuleIdentifier JAVAEE_API_ID = ModuleIdentifier . create ( "javaee.api" ) ; private static final ModuleIdentifier JAVASSIST_ID = ModuleIdentifier . create ( "org.javassist" ) ; private static ModuleIdentifier JBOSS_INTERCEPTOR_ID = ModuleIdentifier . create ( "org.jboss.interceptor" ) ; private static ModuleIdentifier JBOSS_AS_WELD_ID = ModuleIdentifier . create ( "org.jboss.as.weld" ) ; private static ModuleIdentifier JBOSS_LOGGING_ID = ModuleIdentifier . create ( "org.jboss.logging" ) ; private static ModuleIdentifier WELD_CORE_ID = ModuleIdentifier . create ( "org.jboss.weld.core" ) ; private static ModuleIdentifier WELD_API_ID = ModuleIdentifier . create ( "org.jboss.weld.api" ) ; private static ModuleIdentifier WELD_SPI_ID = ModuleIdentifier . create ( "org.jboss.weld.spi" ) ; public void deploy ( DeploymentPhaseContext phaseContext ) throws DeploymentUnitProcessingException { final DeploymentUnit deploymentUnit = phaseContext . getDeploymentUnit ( ) ; final ModuleSpecification moduleSpecification = deploymentUnit . getAttachment ( MODULE_SPECIFICATION ) ; if ( ! ( WeldDeploymentMarker . isWeldDeployment ( deploymentUnit ) ) ) { return ; } <START_BUG> final ModuleLoader moduleLoader = Module . getSystemModuleLoader ( ) ; <END_BUG> addDepdenency ( moduleSpecification , moduleLoader , WeldDependencyProcessor . JAVAX_PERSISTENCE_API_ID ) ; addDepdenency ( moduleSpecification , moduleLoader , WeldDependencyProcessor . JAVAEE_API_ID ) ; addDepdenency ( moduleSpecification , moduleLoader , WeldDependencyProcessor . JBOSS_AS_WELD_ID ) ; addDepdenency ( moduleSpecification , moduleLoader , WeldDependencyProcessor . JBOSS_INTERCEPTOR_ID ) ; addDepdenency ( moduleSpecification , moduleLoader , WeldDependencyProcessor . JBOSS_LOGGING_ID ) ; addDepdenency ( moduleSpecification , moduleLoader , WeldDependencyProcessor . JAVASSIST_ID ) ; addDepdenency ( moduleSpecification , moduleLoader , WeldDependencyProcessor . WELD_CORE_ID ) ; addDepdenency ( moduleSpecification , moduleLoader , WeldDependencyProcessor . WELD_API_ID ) ; addDepdenency ( moduleSpecification , moduleLoader , WeldDependencyProcessor . WELD_SPI_ID ) ; } private void addDepdenency ( ModuleSpecification moduleSpecification , ModuleLoader moduleLoader , ModuleIdentifier moduleIdentifier ) { } @ Override public void undeploy ( DeploymentUnit context ) { } }

Fix:
final ModuleLoader moduleLoader = Module . getBootModuleLoader ( ) ;
Buggy code:
public class TestUAX29URLEmailAnalyzer extends BaseTokenStreamTestCase { private Analyzer a = new org . apache . lucene . analysis . standard . UAX29URLEmailAnalyzer ( TEST_VERSION_CURRENT ) ; public void testHugeDoc ( ) throws IOException { } public void testArmenian ( ) throws Exception { } public void testAmharic ( ) throws Exception { } public void testArabic ( ) throws Exception { } public void testAramaic ( ) throws Exception { } public void testBengali ( ) throws Exception { } public void testFarsi ( ) throws Exception { } public void testGreek ( ) throws Exception { } public void testThai ( ) throws Exception { } public void testLao ( ) throws Exception { } public void testTibetan ( ) throws Exception { } public void testChinese ( ) throws Exception { } public void testEmpty ( ) throws Exception { } public void testLUCENE1545 ( ) throws Exception { } public void testAlphanumericSA ( ) throws Exception { } public void testDelimitersSA ( ) throws Exception { } public void testApostrophesSA ( ) throws Exception { } public void testNumericSA ( ) throws Exception { } public void testTextWithNumbersSA ( ) throws Exception { } public void testVariousTextSA ( ) throws Exception { } public void testKoreanSA ( ) throws Exception { } public void testOffsets ( ) throws Exception { } public void testTypes ( ) throws Exception { } public void testSupplementary ( ) throws Exception { } public void testKorean ( ) throws Exception { } public void testJapanese ( ) throws Exception { } public void testCombiningMarks ( ) throws Exception { } @ Deprecated public void testCombiningMarksBackwards ( ) throws Exception { } public void testBasicEmails ( ) throws Exception { } public void testMailtoSchemeEmails ( ) throws Exception { } public void testBasicURLs ( ) throws Exception { } public void testRandomStrings ( ) throws Exception { <START_BUG> checkRandomData ( random ( ) , new org . apache . lucene . analysis . standard . UAX29URLEmailAnalyzer ( TEST_VERSION_CURRENT ) , ( 10000 * ( RANDOM_MULTIPLIER ) ) ) ; <END_BUG> } }

Fix:
checkRandomData ( random ( ) , new org . apache . lucene . analysis . standard . UAX29URLEmailAnalyzer ( TEST_VERSION_CURRENT ) , ( 1000 * ( RANDOM_MULTIPLIER ) ) ) ;
Buggy code:
public class Login extends AppCompatActivity { private PersonalData personalData ; private LoadToast loadToast ; @ Override protected void onCreate ( Bundle savedInstanceState ) { } private void sendRequest ( String string2 , String string1 ) { Map < String , String > params = new HashMap < String , String > ( ) ; params . put ( "email" , string2 ) ; params . put ( "password" , string1 ) ; Log . d ( "json" , new JSONObject ( params ) . toString ( ) ) ; JsonObjectRequest jsonObjectRequest = new JsonObjectRequest ( Method . POST , getURL ( ) , new JSONObject ( params ) , new Response . Listener < JSONObject > ( ) { @ Override public void onResponse ( JSONObject response ) { Log . d ( "response_login" , ( "" + ( response . toString ( ) ) ) ) ; try { if ( response . has ( "status" ) ) { <START_BUG> if ( response . getString ( "status" ) . equals ( "loggedin<seq2seq4repair_space>successfully" ) ) { <END_BUG> startActivity ( new Intent ( Login . this , . class ) ) ; String token = response . getString ( "data" ) ; personalData . SaveToken ( token ) ; personalData . SaveData ( true ) ; loadToast . success ( ) ; finish ( ) ; } } else if ( response . has ( "message" ) ) { loadToast . error ( ) ; Toast . makeText ( Login . this , ( "" + ( response . getString ( "message" ) ) ) , Toast . LENGTH_LONG ) . show ( ) ; } } catch ( e ) { e . printStackTrace ( ) ; loadToast . error ( ) ; } } } , new Response . ErrorListener ( ) { @ Override public void onErrorResponse ( VolleyError error ) { loadToast . error ( ) ; NetworkResponse networkResponse = error . networkResponse ; if ( networkResponse != null ) { if ( ( networkResponse . statusCode ) == 401 ) { Toast . makeText ( Login . this , "INVALID<seq2seq4repair_space>PASSWORD<seq2seq4repair_space>OR<seq2seq4repair_space>USERNAME" , LENGTH_SHORT ) . show ( ) ; } if ( error instanceof TimeoutError ) { Toast . makeText ( Login . this , "TIME<seq2seq4repair_space>OUT<seq2seq4repair_space>ERROR" , LENGTH_SHORT ) . show ( ) ; } else if ( error instanceof ServerError ) { Toast . makeText ( Login . this , "SERVICE<seq2seq4repair_space>ERROR" , LENGTH_SHORT ) . show ( ) ; } error . printStackTrace ( ) ; } } } ) { @ Override public Map < String , String > getHeaders ( ) throws AuthFailureError { Map < String , String > headerMap = new HashMap < > ( ) ; headerMap . put ( "Content-type" , "application//json" ) ; return headerMap ; } } ; jsonObjectRequest . setRetryPolicy ( new DefaultRetryPolicy ( 10000 , 5 , DefaultRetryPolicy . DEFAULT_BACKOFF_MULT ) ) ; MySingleton . getInstance ( MyApplication . getAppContext ( ) ) . addToRequestQueue ( jsonObjectRequest ) ; } @ Override public boolean onKeyDown ( int keyCode , KeyEvent event ) { } private String getURL ( ) { } }

Fix:
if ( response . getString ( "status" ) . equals ( "Login<seq2seq4repair_space>Successfull" ) ) {
Buggy code:
public class CreateGroupListener extends LaunchedListener { public CreateGroupListener ( Context launcher ) { } @ Override public void onClick ( View v ) { ContactGroup cg = new ContactGroup ( ) ; <START_BUG> ContactGroupActivity . launchOnContactGroup ( cg , this . ctx ) ; <END_BUG> } }

Fix:
ContactGroupActivity . launchOnContactGroup ( cg , this . launcher ) ;
Buggy code:
public class DefaultTransformer implements Serializable , NumberTransformer { private static final long serialVersionUID = 4019938025047800455L ; public double transform ( Object o ) throws MathException { if ( o == null ) { <START_BUG> throw new MathException ( "Conversion<seq2seq4repair_space>Exception<seq2seq4repair_space>in<seq2seq4repair_space>Transformation,<seq2seq4repair_space>Object<seq2seq4repair_space>is<seq2seq4repair_space>null" , new Object [ 0 ] ) ; <END_BUG> } if ( o instanceof Number ) { return ( ( Number ) ( o ) ) . doubleValue ( ) ; } try { return Double . valueOf ( o . toString ( ) ) . doubleValue ( ) ; } catch ( Exception e ) { throw new MathException ( "Conversion<seq2seq4repair_space>Exception<seq2seq4repair_space>in<seq2seq4repair_space>Transformation:<seq2seq4repair_space>{0}" , new Object [ ] { e . getMessage ( ) } , e ) ; } } }

Fix:
throw new MathException ( "Conversion<seq2seq4repair_space>Exception<seq2seq4repair_space>in<seq2seq4repair_space>Transformation,<seq2seq4repair_space>Object<seq2seq4repair_space>is<seq2seq4repair_space>null" , null ) ;
Buggy code:
public class Load implements Command { private static final Logger log = LoggingManager . getLoggerForClass ( ) ; private static final boolean expandTree = JMeterUtils . getPropDefault ( "onload.expandtree" , true ) ; private static final Set < String > commands = new HashSet < String > ( ) ; public Load ( ) { } public Set < String > getActionNames ( ) { } public void doAction ( ActionEvent e ) { } static void loadProjectFile ( ActionEvent e , File f , boolean merging ) { GuiPackage guiPackage = GuiPackage . getInstance ( ) ; InputStream reader = null ; try { if ( f != null ) { boolean isTestPlan = false ; if ( merging ) { Load . log . info ( ( "Merging<seq2seq4repair_space>file:<seq2seq4repair_space>" + f ) ) ; } else { Load . log . info ( ( "Loading<seq2seq4repair_space>file:<seq2seq4repair_space>" + f ) ) ; <START_BUG> FileServer . getFileServer ( ) . setBasedir ( f . getAbsolutePath ( ) ) ; <END_BUG> } reader = new FileInputStream ( f ) ; HashTree tree = SaveService . loadTree ( reader ) ; isTestPlan = Load . insertLoadedTree ( e . getID ( ) , tree , merging ) ; if ( ( ! merging ) && isTestPlan ) { guiPackage . setTestPlanFile ( f . getAbsolutePath ( ) ) ; } } } catch ( NoClassDefFoundError ex ) { Load . log . warn ( "Missing<seq2seq4repair_space>jar<seq2seq4repair_space>file" , ex ) ; String msg = ex . getMessage ( ) ; if ( msg == null ) { msg = "Missing<seq2seq4repair_space>jar<seq2seq4repair_space>file<seq2seq4repair_space>-<seq2seq4repair_space>see<seq2seq4repair_space>log<seq2seq4repair_space>for<seq2seq4repair_space>details" ; } JMeterUtils . reportErrorToUser ( msg ) ; } catch ( ConversionException ex ) { Load . log . warn ( ( "Could<seq2seq4repair_space>not<seq2seq4repair_space>convert<seq2seq4repair_space>file<seq2seq4repair_space>" + ex ) ) ; JMeterUtils . reportErrorToUser ( SaveService . CEtoString ( ex ) ) ; } catch ( IOException ex ) { Load . log . warn ( ( "Error<seq2seq4repair_space>reading<seq2seq4repair_space>file:<seq2seq4repair_space>" + ex ) ) ; String msg = ex . getMessage ( ) ; if ( msg == null ) { msg = "Unexpected<seq2seq4repair_space>error<seq2seq4repair_space>-<seq2seq4repair_space>see<seq2seq4repair_space>log<seq2seq4repair_space>for<seq2seq4repair_space>details" ; } JMeterUtils . reportErrorToUser ( msg ) ; } catch ( Exception ex ) { Load . log . warn ( "Unexpected<seq2seq4repair_space>error" , ex ) ; String msg = ex . getMessage ( ) ; if ( msg == null ) { msg = "Unexpected<seq2seq4repair_space>error<seq2seq4repair_space>-<seq2seq4repair_space>see<seq2seq4repair_space>log<seq2seq4repair_space>for<seq2seq4repair_space>details" ; } JMeterUtils . reportErrorToUser ( msg ) ; } finally { JOrphanUtils . closeQuietly ( reader ) ; guiPackage . updateCurrentGui ( ) ; guiPackage . getMainFrame ( ) . repaint ( ) ; } } public static boolean insertLoadedTree ( int id , HashTree tree , boolean merging ) throws Exception , IllegalUserActionException { } public static boolean insertLoadedTree ( int id , HashTree tree ) throws Exception , IllegalUserActionException { } }

Fix:
FileServer . getFileServer ( ) . setBaseForScript ( f ) ;
Buggy code:
public class BlobStoredProcedureTest extends BaseJDBCTestCase { final String testStr = "I<seq2seq4repair_space>am<seq2seq4repair_space>a<seq2seq4repair_space>simple<seq2seq4repair_space>derby<seq2seq4repair_space>test<seq2seq4repair_space>case" ; final byte [ ] strBytes = testStr . getBytes ( ) ; final long testStrLength = testStr . length ( ) ; public BlobStoredProcedureTest ( String name ) { } public static Test suite ( ) { if ( JDBC . vmSupportsJSR169 ( ) ) { <START_BUG> return new TestSuite ( "empty:<seq2seq4repair_space>client<seq2seq4repair_space>not<seq2seq4repair_space>supported<seq2seq4repair_space>on<seq2seq4repair_space>JSR169" ) ; <END_BUG> } else { return TestConfiguration . defaultSuite ( BlobStoredProcedureTest . class ) ; } } protected void setUp ( ) throws SQLException { } protected void tearDown ( ) throws Exception { } public void testBlobGetBytesSP ( ) throws SQLException { } public void testBlobCreateLocatorSP ( ) throws SQLException { } public void testBlobReleaseLocatorSP ( ) throws SQLException { } public void testBlobGetLengthSP ( ) throws SQLException { } public void testBlobGetPositionFromBytesSP ( ) throws Exception { } public void testBlobSetBytes ( ) throws SQLException { } public void testBlobTruncateSP ( ) throws SQLException { } public void testBlobGetPositionFromLocatorSP ( ) throws SQLException { } }

Fix:
return new TestSuite ( "empty:<seq2seq4repair_space>client<seq2seq4repair_space>not<seq2seq4repair_space>supported<seq2seq4repair_space>on<seq2seq4repair_space>JSR169;<seq2seq4repair_space>procs<seq2seq4repair_space>use<seq2seq4repair_space>DriverMgr" ) ;
Buggy code:
public class ExitAction extends FrameAction { public ExitAction ( AbstractFrameController controller ) { } public void actionPerformed ( ActionEvent evt ) { <START_BUG> FrameModel . saveAll ( ) ; <END_BUG> shutdownManager . shutdown ( ) ; } }

Fix:
FrameModel . saveAndCloseAll ( ) ;
Buggy code:
public class RssPlugin implements BundleActivator { public static final String PLUGIN_ID = "org.eclipse.ecf.internal.provider.rss" ; private static RssPlugin plugin ; private BundleContext context = null ; private ResourceBundle resourceBundle ; private ServiceTracker logServiceTracker = null ; public static void log ( String message ) { <START_BUG> RssPlugin . getDefault ( ) . log ( new Status ( IStatus . OK , RssPlugin . getDefault ( ) . PLUGIN_ID , IStatus . OK , message , null ) ) ; <END_BUG> } public static void log ( String message , Throwable e ) { } public RssPlugin ( ) { } protected LogService getLogService ( ) { } public void log ( IStatus status ) { } public void start ( BundleContext context ) throws Exception { } public void stop ( BundleContext context ) throws Exception { } public static RssPlugin getDefault ( ) { } public static String getResourceString ( String key ) { } public ResourceBundle getResourceBundle ( ) { } }

Fix:
RssPlugin . getDefault ( ) . log ( new Status ( IStatus . OK , RssPlugin . PLUGIN_ID , IStatus . OK , message , null ) ) ;