nus-yam/ex-repair huggingface dataset:
Buggy code:
public class SingleTypeReference extends TypeReference { public char [ ] token ; public SingleTypeReference ( char [ ] source , long pos ) { } public TypeReference copyDims ( int dim ) { } public char [ ] getLastToken ( ) { } protected TypeBinding getTypeBinding ( Scope scope ) { } public char [ ] [ ] getTypeName ( ) { } public StringBuffer printExpression ( int indent , StringBuffer output ) { } public TypeBinding resolveTypeEnclosing ( BlockScope scope , ReferenceBinding enclosingType ) { TypeBinding memberType = scope . getMemberType ( token , enclosingType ) ; if ( ! ( memberType . isValidBinding ( ) ) ) { this . resolvedType = memberType ; scope . problemReporter ( ) . invalidEnclosingType ( this , memberType , enclosingType ) ; return null ; } if ( isTypeUseDeprecated ( memberType , scope ) ) scope . problemReporter ( ) . deprecatedType ( memberType , this ) ; <START_BUG> memberType = scope . environment ( ) . convertToRawType ( memberType ) ; <END_BUG> if ( ( ( memberType . isRawType ( ) ) && ( ( ( this . bits ) & ( ASTNode . IgnoreRawTypeCheck ) ) == 0 ) ) && ( ( scope . compilerOptions ( ) . getSeverity ( CompilerOptions . RawTypeReference ) ) != ( ProblemSeverities . Ignore ) ) ) { scope . problemReporter ( ) . rawTypeReference ( this , memberType ) ; } return this . resolvedType = memberType ; } public void traverse ( ASTVisitor visitor , BlockScope scope ) { } public void traverse ( ASTVisitor visitor , ClassScope scope ) { } }

Fix:
memberType = scope . environment ( ) . convertToRawType ( memberType , false ) ;
Buggy code:
public class JavaFxPlugin implements Plugin { private static final Filter VIDEO_FILTER = new Filter ( ) { final SuffixFileFilter ff ; final List < String > ext ; @ Override public FileFilter getFileFilter ( ) { } @ Override public String getName ( ) { } @ Override public Iterable < String > getExtensions ( ) { } } ; private static final Filter [ ] FILTERS = new Filter [ ] { JavaFxPlugin . VIDEO_FILTER } ; @ Override public String getClassifier ( ) { <START_BUG> return "javafxplugin" ; <END_BUG> } @ Override public Filter [ ] getFilters ( ) { } @ Override public DataViewer getNewDataViewer ( final Frame parent , final boolean modal ) { } @ Override public String getPluginName ( ) { } @ Override public ImageIcon getTypeIcon ( ) { } @ Override public Class < ? extends DataViewer > getViewerClass ( ) { } }

Fix:
return "datavyu.video" ;
Buggy code:
public class ConstantInitializerTest { private static final Integer VALUE = 42 ; private ConstantInitializer < Integer > init ; @ Before public void setUp ( ) throws Exception { } private void checkEquals ( final Object obj , final boolean expected ) { } @ Test public void testGetObject ( ) { } @ Test public void testGet ( ) throws ConcurrentException { } @ Test public void testEqualsTrue ( ) { } @ Test public void testEqualsFalse ( ) { } @ Test public void testEqualsWithOtherObjects ( ) { } @ Test public void testToString ( ) { final String s = init . toString ( ) ; <START_BUG> final Pattern pattern = Pattern . compile ( ( ( "ConstantInitializer@\\d+<seq2seq4repair_space>\\[<seq2seq4repair_space>object<seq2seq4repair_space>=<seq2seq4repair_space>" + ( ConstantInitializerTest . VALUE ) ) + "<seq2seq4repair_space>\\]" ) ) ; <END_BUG> assertTrue ( ( "Wrong<seq2seq4repair_space>string:<seq2seq4repair_space>" + s ) , pattern . matcher ( s ) . matches ( ) ) ; } @ Test public void testToStringNull ( ) { } }

Fix:
final Pattern pattern = Pattern . compile ( ( ( "ConstantInitializer@-?\\d+<seq2seq4repair_space>\\[<seq2seq4repair_space>object<seq2seq4repair_space>=<seq2seq4repair_space>" + ( ConstantInitializerTest . VALUE ) ) + "<seq2seq4repair_space>\\]" ) ) ;
Buggy code:
public class DefaultLogger implements BuildLogger { public static final int LEFT_COLUMN_SIZE = 12 ; protected PrintStream out ; protected PrintStream err ; protected int msgOutputLevel = Project . MSG_ERR ; private long startTime = System . currentTimeMillis ( ) ; protected static final String lSep = StringUtils . LINE_SEP ; protected boolean emacsMode = false ; public DefaultLogger ( ) { } public void setMessageOutputLevel ( int level ) { } public void setOutputPrintStream ( PrintStream output ) { } public void setErrorPrintStream ( PrintStream err ) { } public void setEmacsMode ( boolean emacsMode ) { } public void buildStarted ( BuildEvent event ) { } static void throwableMessage ( StringBuffer m , Throwable error , boolean verbose ) { while ( error instanceof BuildException ) { <START_BUG> Throwable cause = ( ( BuildException ) ( error ) ) . getCause ( ) ; <END_BUG> if ( cause == null ) { break ; } String msg1 = error . toString ( ) ; String msg2 = cause . toString ( ) ; if ( msg1 . endsWith ( msg2 ) ) { m . append ( msg1 . substring ( 0 , ( ( msg1 . length ( ) ) - ( msg2 . length ( ) ) ) ) ) ; error = cause ; } else { break ; } } if ( verbose || ( ! ( error instanceof BuildException ) ) ) { m . append ( StringUtils . getStackTrace ( error ) ) ; } else { m . append ( error ) . append ( DefaultLogger . lSep ) ; } } public void buildFinished ( BuildEvent event ) { } protected String getBuildFailedMessage ( ) { } protected String getBuildSuccessfulMessage ( ) { } public void targetStarted ( BuildEvent event ) { } public void targetFinished ( BuildEvent event ) { } public void taskStarted ( BuildEvent event ) { } public void taskFinished ( BuildEvent event ) { } public void messageLogged ( BuildEvent event ) { } protected static String formatTime ( final long millis ) { } protected void printMessage ( final String message , final PrintStream stream , final int priority ) { } protected void log ( String message ) { } protected String getTimestamp ( ) { } protected String extractProjectName ( BuildEvent event ) { } }

Fix:
Throwable cause = error . getCause ( ) ;
Buggy code:
public final class SectionLengthValidator extends Validator { public SectionLengthValidator ( ) { } @ Override public void validate ( Section section ) { int sectionCharNumber = 0 ; for ( Paragraph currentParagraph : section . getParagraphs ( ) ) { for ( Sentence sentence : currentParagraph . getSentences ( ) ) { sectionCharNumber += sentence . getContent ( ) . length ( ) ; } } if ( sectionCharNumber > ( getInt ( "max_num" ) ) ) { <START_BUG> addLocalizedError ( section . getJoinedHeaderContents ( ) , sectionCharNumber ) ; <END_BUG> } } }

Fix:
addLocalizedError ( section . getJoinedHeaderContents ( ) , sectionCharNumber , getInt ( "max_num" ) ) ;
Buggy code:
public class Steve { public static void main ( String [ ] args ) { <START_BUG> GUI . theGUI = new GUI ( ) ; <END_BUG> NetworkLayer . initialUpdate ( ) ; } }

Fix:
GUI . gui = new GUI ( ) ;
Buggy code:
public class PersonnelServiceTest extends AbstractGlassFishTest { private PersonnelService _service ; @ BeforeMethod @ Override public void preTest ( ) throws Exception { } @ Test public void simpleWorkflow ( ) throws Exception { { final List < PersonDTO > people = _service . getPeople ( ) ; assertEquals ( people . size ( ) , 0 ) ; } em ( ) . getTransaction ( ) . begin ( ) ; <START_BUG> m . createPerson ( "Bob" , CANDIDATE ) ; <END_BUG> em ( ) . getTransaction ( ) . commit ( ) ; { final List < PersonDTO > people = _service . getPeople ( ) ; assertEquals ( people . size ( ) , 1 ) ; assertEquals ( people . get ( 0 ) . getName ( ) , "Bob" ) ; } } }

Fix:
s . createPerson ( "Bob" , CANDIDATE ) ;
Buggy code:
public class Expand extends Task { private String dest ; private String source ; public void execute ( ) throws BuildException { Touch touch = ( ( Touch ) ( project . createTask ( "touch" ) ) ) ; <START_BUG> touch . setTarget ( target ) ; <END_BUG> File srcF = project . resolveFile ( source ) ; File dir = project . resolveFile ( dest ) ; ZipInputStream zis = null ; try { log ( ( ( ( "Expanding:<seq2seq4repair_space>" + srcF ) + "<seq2seq4repair_space>into<seq2seq4repair_space>" ) + dir ) , MSG_INFO ) ; zis = new ZipInputStream ( new FileInputStream ( srcF ) ) ; ZipEntry ze = null ; while ( ( ze = zis . getNextEntry ( ) ) != null ) { File f = new File ( dir , project . translatePath ( ze . getName ( ) ) ) ; try { log ( ( "expand-file<seq2seq4repair_space>" + ( ze . getName ( ) ) ) , MSG_VERBOSE ) ; File dirF = new File ( f . getParent ( ) ) ; dirF . mkdirs ( ) ; if ( ze . isDirectory ( ) ) { f . mkdirs ( ) ; } else { byte [ ] buffer = new byte [ 1024 ] ; int length = 0 ; FileOutputStream fos = new FileOutputStream ( f ) ; while ( ( length = zis . read ( buffer ) ) >= 0 ) { fos . write ( buffer , 0 , length ) ; } fos . close ( ) ; } if ( ( project . getJavaVersion ( ) ) != ( Project . JAVA_1_1 ) ) { touch . setFile ( f . getAbsolutePath ( ) ) ; touch . setMillis ( ze . getTime ( ) ) ; touch . touch ( ) ; } } catch ( FileNotFoundException ex ) { log ( ( "Unable<seq2seq4repair_space>to<seq2seq4repair_space>expand<seq2seq4repair_space>to<seq2seq4repair_space>file<seq2seq4repair_space>" + ( f . getPath ( ) ) ) , MSG_WARN ) ; } } log ( "expand<seq2seq4repair_space>complete" , MSG_VERBOSE ) ; } catch ( IOException ioe ) { throw new BuildException ( ( "Error<seq2seq4repair_space>while<seq2seq4repair_space>expanding<seq2seq4repair_space>" + ( srcF . getPath ( ) ) ) , ioe ) ; } finally { if ( zis != null ) { try { zis . close ( ) ; } catch ( IOException e ) { } } } } public void setDest ( String d ) { } public void setSrc ( String s ) { } }

Fix:
touch . setOwningTarget ( target ) ;
Buggy code:
public class ShippingMenu extends CustomComponent { public static final String ID = "dashboard-menu" ; public static final String REPORTS_BADGE_ID = "dashboard-menu-reports-badge" ; public static final String NOTIFICATIONS_BADGE_ID = "dashboard-menu-notifications-badge" ; private static final String STYLE_VISIBLE = "valo-menu-visible" ; private Label notificationsBadge ; private Label reportsBadge ; private MenuItem settingsItem ; public ShippingMenu ( ) { } private Component buildContent ( ) { } private Component buildTitle ( ) { <START_BUG> Label logo = new Label ( "QuickTickets<seq2seq4repair_space><strong>Dashboard<//strong>" , ContentMode . HTML ) ; <END_BUG> logo . setSizeUndefined ( ) ; HorizontalLayout logoWrapper = new HorizontalLayout ( logo ) ; logoWrapper . setComponentAlignment ( logo , MIDDLE_CENTER ) ; logoWrapper . addStyleName ( "valo-menu-title" ) ; return logoWrapper ; } private User getCurrentUser ( ) { } private Component buildUserMenu ( ) { } private Component buildToggleButton ( ) { } private Component buildMenuItems ( ) { } private Component buildBadgeWrapper ( final Component menuItemButton , final Component badgeLabel ) { } @ Override public void attach ( ) { } @ Subscribe public void postViewChange ( final ShippingEvent . PostViewChangeEvent event ) { } @ Subscribe public void updateNotificationsCount ( final ShippingEvent . NotificationsCountUpdatedEvent event ) { } @ Subscribe public void updateReportsCount ( final ShippingEvent . ReportsCountUpdatedEvent event ) { } @ Subscribe public void updateUserName ( final ShippingEvent . ProfileUpdatedEvent event ) { } public final class ValoMenuItemButton extends Button { private static final String STYLE_SELECTED = "selected" ; private final ShippingViewType view ; public ValoMenuItemButton ( final ShippingViewType view ) { } @ Subscribe public void postViewChange ( final ShippingEvent . PostViewChangeEvent event ) { } } }

Fix:
Label logo = new Label ( "Shipping<seq2seq4repair_space><strong>Dashboard<//strong>" , ContentMode . HTML ) ;
Buggy code:
public class URLSender { public static void main ( String [ ] args ) { BufferedReader reader = new BufferedReader ( new InputStreamReader ( System . in ) ) ; System . out . println ( "Gib<seq2seq4repair_space>den<seq2seq4repair_space>Link<seq2seq4repair_space>hier<seq2seq4repair_space>ein:<seq2seq4repair_space>" ) ; try { <START_BUG> Socket socket = new Socket ( "192.168.178.34" , 22222 ) ; <END_BUG> BufferedWriter writer = new BufferedWriter ( new OutputStreamWriter ( socket . getOutputStream ( ) ) ) ; boolean running = true ; while ( running ) { String input = reader . readLine ( ) ; writer . write ( input ) ; writer . newLine ( ) ; writer . flush ( ) ; BufferedReader r = new BufferedReader ( new InputStreamReader ( socket . getInputStream ( ) ) ) ; System . out . println ( r . readLine ( ) ) ; } reader . close ( ) ; socket . close ( ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; } } No newline ; at end ; of file ; }

Fix:
Socket socket = new Socket ( "192.168.178.20" , 22222 ) ;
Buggy code:
public class Raider { private static HashMap < String , Integer > raiderList = new HashMap < String , Integer > ( ) ; private static List < String > raiders = new ArrayList < String > ( ) ; private static String path = "//Users//Chris//Documents//batcave//LootCouncilGen//raidList.txt" ; private static List < String > exemptionList = new ArrayList < String > ( ) ; private static HashMap < String , String > relationMap = new HashMap < String , String > ( ) ; public static HashMap < String , Integer > getRaiderList ( ) { } public static HashMap < String , String > getRelationMap ( ) { } public static List < String > getLCCandidates ( ) { } public static void updateRaider ( String raider ) { } public static void updateRaiders ( List < String > council ) { } public static void addRaider ( String raider ) { } public static void removeRaider ( String raider ) { } public static void generateInitialRaiderList ( ) throws IOException { System . out . println ( "Generate<seq2seq4repair_space>raider<seq2seq4repair_space>list" ) ; File raidListFile = new File ( Raider . path ) ; if ( raidListFile . isFile ( ) ) { FileReader fr = new FileReader ( Raider . path ) ; BufferedReader br = new BufferedReader ( fr ) ; String line ; while ( ( line = br . readLine ( ) ) != null ) { if ( line . contains ( "*" ) ) { Raider . exemptionList . add ( line ) ; continue ; } else if ( line . contains ( ":" ) ) { String username1 = line . substring ( 0 , line . indexOf ( '|' ) ) ; String username2 = line . substring ( ( ( line . indexOf ( ':' ) ) + 1 ) , line . length ( ) ) ; Raider . relationMap . put ( username1 , username2 ) ; <START_BUG> int count = Integer . parseInt ( line . substring ( ( ( line . indexOf ( '|' ) ) + 1 ) ) ) ; <END_BUG> Raider . raiders . add ( username1 ) ; Raider . raiderList . put ( username1 , count ) ; } else { String username = line . substring ( 0 , line . indexOf ( '|' ) ) ; int count = Integer . parseInt ( line . substring ( ( ( line . indexOf ( '|' ) ) + 1 ) ) ) ; Raider . raiders . add ( username ) ; Raider . raiderList . put ( username , count ) ; } } } System . out . println ( Raider . relationMap ) ; } public static void saveRaidList ( ) { } public static void main ( String [ ] args ) throws IOException { } }

Fix:
int count = Integer . parseInt ( line . substring ( ( ( line . indexOf ( '|' ) ) + 1 ) , ( ( line . indexOf ( ':' ) ) - 1 ) ) ) ;
Buggy code:
public abstract class DropType { public enum DropCategory { ITEM , CREATURE , MONEY , GROUP , DENY , CONTENTS , DEFAULT , VEHICLE , EXPERIENCE ; } public static class DropFlags { protected boolean naturally ; protected boolean spread ; protected Random rng ; protected Player recipient ; protected DropFlags ( boolean n , boolean s , Random ran , Player who ) { } } private DropType . DropCategory cat ; private double chance ; public double total ; public DropType ( DropType . DropCategory type ) { } public DropType ( DropType . DropCategory type , double percent ) { } public DropType . DropCategory getCategory ( ) { } public double getChance ( ) { } public static DropType . DropFlags flags ( Player recipient , boolean naturally , boolean spread , Random rng ) { } public int drop ( Target target , Location offset , double amount , DropType . DropFlags flags ) { } protected int drop ( Target target , Location loc , double amount , DropType . DropFlags flags , boolean offset ) { Location offsetLocation ; if ( offset ) { Location from = target . getLocation ( ) ; loc . setWorld ( from . getWorld ( ) ) ; offsetLocation = from . clone ( ) . add ( loc ) ; } else offsetLocation = loc . clone ( ) ; if ( ( chance ) < 100.0 ) { double rolledChance = flags . rng . nextDouble ( ) ; <START_BUG> OtherDrops . logInfo ( ( ( ( ( ( ( "Rolling<seq2seq4repair_space>chance:<seq2seq4repair_space>checking<seq2seq4repair_space>" + rolledChance ) + "<seq2seq4repair_space>><seq2seq4repair_space>" ) + ( ( chance ) // 100 ) ) + "<seq2seq4repair_space>(" ) + ( rolledChance > ( ( chance ) // 100.0 ) ) ) + ")" ) , HIGHEST ) ; <END_BUG> if ( rolledChance > ( ( chance ) // 100.0 ) ) { OtherDrops . logInfo ( "Failed<seq2seq4repair_space>roll,<seq2seq4repair_space>returning..." , HIGHEST ) ; return - 1 ; } } int quantity = calculateQuantity ( amount , flags . rng ) ; while ( quantity > 0 ) { performDrop ( target , offsetLocation , flags ) ; quantity -- ; } return quantity ; } protected abstract void performDrop ( Target source , Location at , DropType . DropFlags flags ) { } public abstract double getAmount ( ) { } public abstract DoubleRange getAmountRange ( ) { } protected abstract String getName ( ) { } @ Override public final String toString ( ) { } @ SuppressWarnings ( "unused" ) protected int calculateQuantity ( double amount , Random rng ) { } protected static void drop ( Location where , ItemStack stack , boolean naturally ) { } protected static void drop ( Location where , Player owner , CreatureType type , Data data ) { } @ SuppressWarnings ( "rawtypes" ) public static DropType parseFrom ( ConfigurationNode node ) { } private static String [ ] split ( String drop ) { } public static DropType parse ( String drop , String defaultData ) { } public boolean isQuantityInteger ( ) { } }

Fix:
OtherDrops . logInfo ( ( ( ( ( ( ( "Rolling<seq2seq4repair_space>chance:<seq2seq4repair_space>checking<seq2seq4repair_space>" + rolledChance ) + "<seq2seq4repair_space><=<seq2seq4repair_space>" ) + ( ( chance ) // 100 ) ) + "<seq2seq4repair_space>(" ) + ( ! ( rolledChance > ( ( chance ) // 100.0 ) ) ) ) + ")" ) , HIGHEST ) ;
Buggy code:
public class ParseTreeProperty < V > { protected Map < ParseTree , V > annotations = new IdentityHashMap < ParseTree , V > ( ) ; public V get ( ParseTree node ) { } public void put ( ParseTree node , V value ) { } public V removeFrom ( ParseTree node ) { <START_BUG> return annotations . get ( node ) ; <END_BUG> } }

Fix:
return annotations . remove ( node ) ;
Buggy code:
public class ExperimentRunner { private int experimentRounds = 1 ; private int currentRound = 0 ; private JsonDecoder decoder ; public ExperimentRunner ( String inputPath , String outputPath , int experimentRounds ) { } public void runExperiment ( ) { } public void runExperiment ( Parameters param ) throws FileNotFoundException { } private PrintStream prepareOutputPath ( String outputPath ) { FileOutputStream fileStream ; try { fileStream = new FileOutputStream ( outputPath ) ; PrintStream stream = new PrintStream ( fileStream ) ; return stream ; } catch ( FileNotFoundException e ) { <START_BUG> System . out . println ( "Input<seq2seq4repair_space>file's<seq2seq4repair_space>path<seq2seq4repair_space>not<seq2seq4repair_space>found." ) ; <END_BUG> e . printStackTrace ( ) ; System . exit ( 1 ) ; } return null ; } public static void main ( String [ ] args ) { } }

Fix:
System . out . println ( "Output<seq2seq4repair_space>file's<seq2seq4repair_space>path<seq2seq4repair_space>not<seq2seq4repair_space>found." ) ;
Buggy code:
public class UserService { private static final Logger log = Logger . getLogger ( UserService . class ) ; public static User login ( String email , String password ) { Map < String , Object > map = new HashMap < String , Object > ( ) ; map . put ( "email" , email ) ; map . put ( "password" , password ) ; <START_BUG> UserService . log . debug ( map ) ; <END_BUG> try { JSONObject o = Service . request ( "login" , map ) ; return RespUtil . parseUser ( o ) ; } catch ( UnirestException e ) { UserService . log . error ( e . getMessage ( ) ) ; return null ; } } }

Fix:
UserService . log . info ( map ) ;
Buggy code:
public class P4Add extends P4Base { private int changelist ; private String addCmd = "" ; private Vector filesets = new Vector ( ) ; private int cmdLength = 450 ; public void setCommandlength ( int len ) throws BuildException { } public void setChangelist ( int changelist ) throws BuildException { } public void addFileset ( FileSet set ) { } public void execute ( ) throws BuildException { if ( ( P4View ) != null ) { addCmd = P4View ; } P4CmdOpts = ( ( changelist ) > 0 ) ? "-c<seq2seq4repair_space>" + ( changelist ) : "" ; StringBuffer filelist = new StringBuffer ( ) ; for ( int i = 0 ; i < ( filesets . size ( ) ) ; i ++ ) { FileSet fs = ( ( FileSet ) ( filesets . elementAt ( i ) ) ) ; DirectoryScanner ds = fs . getDirectoryScanner ( getProject ( ) ) ; String [ ] srcFiles = ds . getIncludedFiles ( ) ; if ( srcFiles != null ) { for ( int j = 0 ; j < ( srcFiles . length ) ; j ++ ) { File f = new File ( ds . getBasedir ( ) , srcFiles [ j ] ) ; filelist . append ( "<seq2seq4repair_space>" ) . append ( '"' ) . append ( f . getAbsolutePath ( ) ) . append ( '"' ) ; if ( ( filelist . length ( ) ) > ( cmdLength ) ) { execP4Add ( filelist ) ; <START_BUG> filelist . setLength ( 0 ) ; <END_BUG> } } if ( ( filelist . length ( ) ) > 0 ) { execP4Add ( filelist ) ; } } else { log ( "No<seq2seq4repair_space>files<seq2seq4repair_space>specified<seq2seq4repair_space>to<seq2seq4repair_space>add!" , MSG_WARN ) ; } } } private void execP4Add ( StringBuffer list ) { } }

Fix:
filelist = new StringBuffer ( ) ;
Buggy code:
class AliasStepHandler implements OperationStepHandler { private final AliasEntry aliasEntry ; AliasStepHandler ( final AliasEntry aliasEntry ) { } @ Override public void execute ( OperationContext context , ModelNode operation ) throws OperationFailedException { String op = operation . require ( OP ) . asString ( ) ; PathAddress addr = PathAddress . pathAddress ( operation . require ( OP_ADDR ) ) ; PathAddress mapped = aliasEntry . convertToTargetAddress ( addr ) ; OperationStepHandler targetHandler = context . getRootResourceRegistration ( ) . getOperationHandler ( mapped , op ) ; if ( op == null ) { throw MESSAGES . aliasStepHandlerOperationNotFound ( op , addr , mapped ) ; } ModelNode copy = operation . clone ( ) ; copy . get ( OP_ADDR ) . set ( mapped . toModelNode ( ) ) ; <START_BUG> context . addStep ( copy , targetHandler , IMMEDIATE ) ; <END_BUG> context . stepCompleted ( ) ; } }

Fix:
context . addStep ( copy , targetHandler , MODEL , true ) ;
Buggy code:
@ SuppressWarnings ( "serial" ) public class ListBookableRoomView extends JPanel implements Observer { private JPanel listBookableRoomPanel = new JPanel ( ) ; private JPanel buttonPanel = new JPanel ( ) ; private String [ ] colHeads = new String [ ] { "È¸ÀÇ½Ç<seq2seq4repair_space>ÀÌ¸§" , "½Ã" , "»ó¼¼ÁÖ¼Ò" , "ÃÖ´ë¼ö¿ëÀÎ¿ø" , "°¡°Ý" , "ºÎ´ë½Ã¼³" } ; private Object [ ] [ ] data ; private JTable table ; private JScrollPane jsp ; private DefaultTableModel model ; private JButton askButton = new JButton ( "Á¶È¸ÇÏ±â" ) ; private JButton bookButton = new JButton ( "¿¹¾àÇÏ±â" ) ; private JButton infoButton = new JButton ( "¿¹¾àÁ¤º¸º¸±â" ) ; public ListBookableRoomView ( ) { } @ Override public void update ( Observable arg0 , Object arg1 ) { <START_BUG> for ( int i = 0 ; i < ( model . getRowCount ( ) ) ; i ++ ) { <END_BUG> model . removeRow ( i ) ; } dataTranslation ( ( ( enterprise . listRoom . listRoomModel ) ( arg0 ) ) . getRL ( ) . getList ( ) ) ; for ( int i = 0 ; i < ( ( ( enterprise . listRoom . listRoomModel ) ( arg0 ) ) . getRL ( ) . getList ( ) . size ( ) ) ; i ++ ) { model . addRow ( data [ i ] ) ; } model . fireTableDataChanged ( ) ; } public void setListBookalbeRoomListener ( ActionListener listener ) { } void dataTranslation ( ArrayList < Room > rl ) { } public JTable getTable ( ) { } No newline ; at end ; of file ; }

Fix:
for ( int i = ( model . getRowCount ( ) ) - 1 ; i > ( - 1 ) ; i -- ) {
Buggy code:
public class Util { public static void logThread ( String methodName ) { if ( BuildConfig . DEBUG ) { <START_BUG> Log . d ( ( "RxJava-thread" + methodName ) , Thread . currentThread ( ) . getName ( ) ) ; <END_BUG> } } }

Fix:
Log . d ( ( "RxJava-thread:" + methodName ) , Thread . currentThread ( ) . getName ( ) ) ;
Buggy code:
public abstract class AbstractBeanFactoryTests extends TestCase { protected abstract BeanFactory getBeanFactory ( ) { } public void testInheritance ( ) { } public void testGetBeanWithNullArg ( ) { try { <START_BUG> getBeanFactory ( ) . getBean ( null ) ; <END_BUG> fail ( "Can't<seq2seq4repair_space>get<seq2seq4repair_space>null<seq2seq4repair_space>bean" ) ; } catch ( IllegalArgumentException ex ) { } } public void testInitializingBeanCallback ( ) { } public void testLifecycleCallbacks ( ) { } public void testFindsValidInstance ( ) { } public void testGetInstanceByMatchingClass ( ) { } public void testGetInstanceByNonmatchingClass ( ) { } public void testGetSharedInstanceByMatchingClass ( ) { } public void testGetSharedInstanceByMatchingClassNoCatch ( ) { } public void testGetSharedInstanceByNonmatchingClass ( ) { } public void testSharedInstancesAreEqual ( ) { } public void testPrototypeInstancesAreIndependent ( ) { } public void testNotThere ( ) { } public void testValidEmpty ( ) { } public void xtestTypeMismatch ( ) { } public void testGrandparentDefinitionFoundInBeanFactory ( ) throws Exception { } public void testFactorySingleton ( ) throws Exception { } public void testFactoryPrototype ( ) throws Exception { } public void testGetFactoryItself ( ) throws Exception { } public void testFactoryIsInitialized ( ) throws Exception { } public void testRejectsFactoryGetOnNormalBean ( ) { } public void testAliasing ( ) { } public static class TestBeanEditor extends PropertyEditorSupport { public void setAsText ( String text ) { } } }

Fix:
getBeanFactory ( ) . getBean ( ( ( String ) ( null ) ) ) ;
Buggy code:
public class BoundedQueueThreadPoolMetricsHandler extends ThreadPoolMetricsHandler { public static final List < AttributeDefinition > METRICS = Arrays . asList ( CURRENT_THREAD_COUNT , LARGEST_THREAD_COUNT , REJECTED_COUNT , QUEUE_SIZE ) ; public BoundedQueueThreadPoolMetricsHandler ( final ServiceName serviceNameBase ) { } @ Override protected void setResult ( OperationContext context , final String attributeName , final Service < ? > service ) throws OperationFailedException { BoundedQueueThreadPoolService bounded = ( ( BoundedQueueThreadPoolService ) ( service ) ) ; if ( attributeName . equals ( CommonAttributes . CURRENT_THREAD_COUNT ) ) { context . getResult ( ) . set ( bounded . getCurrentThreadCount ( ) ) ; } else if ( attributeName . equals ( CommonAttributes . LARGEST_THREAD_COUNT ) ) { context . getResult ( ) . set ( bounded . getLargestThreadCount ( ) ) ; } else if ( attributeName . equals ( CommonAttributes . REJECTED_COUNT ) ) { context . getResult ( ) . set ( bounded . getRejectedCount ( ) ) ; } else if ( attributeName . equals ( CommonAttributes . QUEUE_SIZE ) ) { context . getResult ( ) . set ( bounded . getQueueSize ( ) ) ; } else { <START_BUG> throw MESSAGES . unsupportedBoundedQueueThreadPoolMetric ( attributeName ) ; <END_BUG> } } }

Fix:
throw ROOT_LOGGER . unsupportedBoundedQueueThreadPoolMetric ( attributeName ) ;
Buggy code:
@ DefaultStringValue ( "Virtual<seq2seq4repair_space>Machines<seq2seq4repair_space>reside<seq2seq4repair_space>on<seq2seq4repair_space>several<seq2seq4repair_space>Data<seq2seq4repair_space>Centers.<seq2seq4repair_space>Make<seq2seq4repair_space>sure<seq2seq4repair_space>the<seq2seq4repair_space>exported<seq2seq4repair_space>Virtual<seq2seq4repair_space>Machines<seq2seq4repair_space>reside<seq2seq4repair_space>on<seq2seq4repair_space>the<seq2seq4repair_space>same<seq2seq4repair_space>Data<seq2seq4repair_space>Center." ) String vmsResideOnSeveralDCsMakeSureTheExportedVMResideOnSameDcMsg ( ) { } <START_BUG> @ DefaultStringValue ( "There<seq2seq4repair_space>is<seq2seq4repair_space>no<seq2seq4repair_space>Export<seq2seq4repair_space>Domain<seq2seq4repair_space>to<seq2seq4repair_space>Backup<seq2seq4repair_space>the<seq2seq4repair_space>Virtual<seq2seq4repair_space>Machine<seq2seq4repair_space>into.<seq2seq4repair_space>Attach<seq2seq4repair_space>an<seq2seq4repair_space>Export<seq2seq4repair_space>Domain<seq2seq4repair_space>to<seq2seq4repair_space>the<seq2seq4repair_space>Virtual<seq2seq4repair_space>Machine(s)<seq2seq4repair_space>Data<seq2seq4repair_space>Center." ) <END_BUG>

Fix:
@ DefaultStringValue ( "There<seq2seq4repair_space>is<seq2seq4repair_space>no<seq2seq4repair_space>Export<seq2seq4repair_space>Domain<seq2seq4repair_space>to<seq2seq4repair_space>Backup<seq2seq4repair_space>the<seq2seq4repair_space>Virtual<seq2seq4repair_space>Machine<seq2seq4repair_space>into.<seq2seq4repair_space>Attach<seq2seq4repair_space>an<seq2seq4repair_space>Export<seq2seq4repair_space>Domain<seq2seq4repair_space>to<seq2seq4repair_space>the<seq2seq4repair_space>Virtual<seq2seq4repair_space>Machine's<seq2seq4repair_space>Data<seq2seq4repair_space>Center." )
Buggy code:
public class DataCachePCDataImpl extends PCDataImpl implements DataCachePCData { private final long _exp ; public DataCachePCDataImpl ( Object oid , ClassMetaData meta ) { } public boolean isTimedOut ( ) { } public synchronized Object getData ( int index ) { } public synchronized void setData ( int index , Object val ) { } public synchronized void clearData ( int index ) { } public synchronized Object getImplData ( ) { } public synchronized void setImplData ( Object val ) { } public synchronized Object getImplData ( int index ) { } public synchronized void setImplData ( int index , Object val ) { } public synchronized Object getIntermediate ( int index ) { } public synchronized void setIntermediate ( int index , Object val ) { } public synchronized boolean isLoaded ( int index ) { } public synchronized void setLoaded ( int index , boolean loaded ) { } public synchronized Object getVersion ( ) { } public synchronized void setVersion ( Object version ) { } public synchronized void store ( OpenJPAStateManager sm ) { } public synchronized void store ( OpenJPAStateManager sm , BitSet fields ) { } protected void storeField ( OpenJPAStateManager sm , FieldMetaData fmd ) { if ( ( fmd . getManagement ( ) ) != ( fmd . MANAGE_PERSISTENT ) ) return ; int index = fmd . getIndex ( ) ; if ( ( fmd . getOrders ( ) . length ) > 0 ) { if ( ( sm . getPCState ( ) ) == ( PCState . PNEW ) ) return ; if ( ( sm . getPCState ( ) ) == ( PCState . PDIRTY ) ) { clearData ( index ) ; return ; } } super . storeField ( sm , fmd ) ; <START_BUG> if ( ( sm . getPCState ( ) ) == ( PCState . PDIRTY ) ) { <END_BUG> clearInverseRelationCache ( sm , fmd ) ; } } protected void clearInverseRelationCache ( OpenJPAStateManager sm , FieldMetaData fmd ) { } protected Object toData ( FieldMetaData fmd , Object val , StoreContext ctx ) { } protected Object toNestedData ( ValueMetaData vmd , Object val , StoreContext ctx ) { } public AbstractPCData newEmbeddedPCData ( OpenJPAStateManager sm ) { } }

Fix:
if ( ( ( sm . getPCState ( ) ) == ( PCState . PDIRTY ) ) && ( fmd . isUsedInOrderBy ( ) ) ) {
Buggy code:
public class PropertySet extends DataType { private boolean dynamic = true ; private boolean negate = false ; private Set cachedNames ; private Vector ptyRefs = new Vector ( ) ; private Vector setRefs = new Vector ( ) ; private Mapper _mapper ; public static class PropertyRef { private int count ; private String name ; private String regex ; private String prefix ; private String builtin ; public void setName ( String name ) { } public void setRegex ( String regex ) { } public void setPrefix ( String prefix ) { } public void setBuiltin ( PropertySet . BuiltinPropertySetName b ) { String built_in = b . getValue ( ) ; <START_BUG> assertValid ( "builtin" , builtin ) ; <END_BUG> this . builtin = built_in ; } private void assertValid ( String attr , String value ) { } public String toString ( ) { } } public void appendName ( String name ) { } public void appendRegex ( String regex ) { } public void appendPrefix ( String prefix ) { } public void appendBuiltin ( PropertySet . BuiltinPropertySetName b ) { } public void setMapper ( String type , String from , String to ) { } public void addPropertyref ( PropertySet . PropertyRef ref ) { } public void addPropertyset ( PropertySet ref ) { } public Mapper createMapper ( ) { } public void setDynamic ( boolean dynamic ) { } public void setNegate ( boolean negate ) { } public boolean getDynamic ( ) { } public Mapper getMapper ( ) { } private Hashtable getAllSystemProperties ( ) { } public Properties getProperties ( ) { } private void addPropertyNames ( Set names , Hashtable properties ) { } protected PropertySet getRef ( ) { } public final void setRefid ( Reference r ) { } protected final void assertNotReference ( ) { } private boolean noAttributeSet = true ; public static class BuiltinPropertySetName extends EnumeratedAttribute { static final String ALL = "all" ; static final String SYSTEM = "system" ; static final String COMMANDLINE = "commandline" ; public String [ ] getValues ( ) { } } }

Fix:
assertValid ( "builtin" , built_in ) ;
Buggy code:
public class RequestMappingHandlerMethodMappingTests { private RequestMappingHandlerMethodMapping mapping ; private RequestMappingHandlerMethodMappingTests . Handler handler ; private HandlerMethod fooMethod ; private HandlerMethod fooParamMethod ; private HandlerMethod barMethod ; private HandlerMethod emptyMethod ; @ Before public void setUp ( ) throws Exception { } @ Test public void directMatch ( ) throws Exception { } @ Test public void globMatch ( ) throws Exception { } @ Test public void emptyPathMatch ( ) throws Exception { } @ Test public void bestMatch ( ) throws Exception { } @ Test public void methodNotAllowed ( ) throws Exception { } @ Test public void uriTemplateVariables ( ) { <START_BUG> RequestMappingKey key = new RequestMappingKey ( Arrays . asList ( "//{path1}//{path2}" ) , null ) ; <END_BUG> MockHttpServletRequest request = new MockHttpServletRequest ( "GET" , "//1//2" ) ; String lookupPath = new UrlPathHelper ( ) . getLookupPathForRequest ( request ) ; mapping . handleMatch ( key , lookupPath , request ) ; @ SuppressWarnings ( "unchecked" ) Map < String , String > actual = ( ( Map < String , String > ) ( request . getAttribute ( URI_TEMPLATE_VARIABLES_ATTRIBUTE ) ) ) ; assertNotNull ( actual ) ; assertEquals ( "1" , actual . get ( "path1" ) ) ; assertEquals ( "2" , actual . get ( "path2" ) ) ; } @ Test public void mappedInterceptors ( ) { } @ SuppressWarnings ( "unused" ) @ Controller @ RequestMapping private static class Handler { @ RequestMapping ( value = "//foo" , method = RequestMethod . GET ) public void foo ( ) { } @ RequestMapping ( value = "//foo" , method = RequestMethod . GET , params = "p" ) public void fooParam ( ) { } @ RequestMapping ( value = "//ba*" , method = { RequestMethod . GET , RequestMethod . HEAD } ) public void bar ( ) { } @ RequestMapping ( "" ) public void empty ( ) { } } }

Fix:
RequestMappingInfo key = new RequestMappingInfo ( Arrays . asList ( "//{path1}//{path2}" ) , null ) ;
Buggy code:
@ RunWith ( SpringJUnit4ClassRunner . class ) @ ContextConfiguration ( "classpath:beans.xml" ) @ TestPropertySource ( "classpath:application.properties" ) public class TestTree { @ Autowired private DataAccessObject tennisDAO ; @ Autowired DecisionTree tree ; public void setTennisDAO ( DataAccessObject tennisDAO ) { } public void setTree ( DecisionTree tree ) { } @ Test public void testTennisDAO ( ) { } @ Test public void testHeadNode ( ) { } @ Test public void testPureAllBottomNodes ( ) { } @ Ignore public boolean testPure ( Node node ) { } @ Test public void testPredict ( ) { DataPoint dataPoint = new DataPoint ( ) ; Attribute < Weather > weather = new Attribute ( "Weather" ) ; Attribute < Humidity > humidity = new Attribute ( "Humidity" ) ; Attribute < Boolean > rain = new Attribute ( "Rain" ) ; AttributeValue < Weather > weatherValue = new AttributeValue ( ) ; weatherValue . setValue ( BETWEEN_41_60 ) ; AttributeValue < Humidity > humidityValue = new AttributeValue ( ) ; <START_BUG> humidityValue . setValue ( HIGH ) ; <END_BUG> AttributeValue < Boolean > rainValue = new AttributeValue ( ) ; rainValue . setValue ( false ) ; dataPoint . addAttributeValue ( weather , weatherValue ) ; dataPoint . addAttributeValue ( humidity , humidityValue ) ; dataPoint . addAttributeValue ( rain , rainValue ) ; System . out . println ( tree . predictOutcome ( dataPoint ) ) ; assertFalse ( tree . predictOutcome ( dataPoint ) ) ; } }

Fix:
humidityValue . setValue ( ABOVE_70 ) ;
Buggy code:
public class Luminositor extends Item implements CraftableItem , CustomItem , EventAwareContent { public Luminositor ( ) { } @ Override public String getID ( ) { } @ Subscribe public void onRightClick ( PlayerInteractBlockEvent event ) { <START_BUG> if ( ( event . getGame ( ) . getPlatform ( ) . getType ( ) ) == ( Type . CLIENT ) ) <END_BUG> return ; if ( ( event . getInteractionType ( ) ) == ( EntityInteractionTypes . USE ) ) { if ( ( ( ( ( event . getBlock ( ) . getX ( ) ) == 0 ) && ( ( event . getBlock ( ) . getY ( ) ) == 0 ) ) && ( ( event . getBlock ( ) . getZ ( ) ) == 0 ) ) && ( ( event . getBlock ( ) . getBlockType ( ) ) == ( BlockTypes . LOG ) ) ) { return ; } Player player = event . getEntity ( ) ; Optional < ItemStack > optHeldItem = player . getItemInHand ( ) ; if ( optHeldItem . isPresent ( ) ) { if ( this . equals ( optHeldItem . get ( ) . getItem ( ) ) ) { Location pLoc = player . getLocation ( ) ; int lightLevel ; try { lightLevel = ( ( int ) ( pLoc . getClass ( ) . getMethod ( "getLuminance" ) . invoke ( pLoc ) ) ) ; } catch ( NoSuchMethodException | InvocationTargetException | IllegalAccessException e ) { e . printStackTrace ( ) ; lightLevel = 0 ; } TextColor color ; if ( lightLevel >= 12 ) { color = TextColors . GREEN ; } else if ( lightLevel >= 8 ) { color = TextColors . RED ; } else { color = TextColors . DARK_RED ; } Text message = Texts . builder ( ) . color ( YELLOW ) . append ( Texts . of ( "Light<seq2seq4repair_space>level:<seq2seq4repair_space>" ) ) . build ( ) ; player . sendMessage ( Texts . of ( message , Texts . builder ( ) . color ( color ) . append ( Texts . of ( lightLevel ) ) . build ( ) ) ) ; } } } } @ Override public void registerRecipes ( ) { } No newline ; at end ; of file ; }

Fix:
if ( event . getGame ( ) . getPlatform ( ) . getExecutionType ( ) . isClient ( ) )
Buggy code:
@ Service ( ListService . class ) @ Component ( immediate = true ) public class ListServiceImpl implements ListService { private static final String CMD = "GETTASK:ALL" ; public List < String > getTasks ( int first , int size , int max ) throws ListException { try { <START_BUG> Socket socket = new Socket ( "10.68.2.145" , 9090 ) ; <END_BUG> BufferedReader in = new BufferedReader ( new InputStreamReader ( socket . getInputStream ( ) ) ) ; PrintWriter out = new PrintWriter ( socket . getOutputStream ( ) , true ) ; out . println ( ListServiceImpl . CMD ) ; String tasks = in . readLine ( ) ; in . close ( ) ; out . close ( ) ; socket . close ( ) ; List < String > data = Arrays . asList ( tasks . split ( ";" ) ) ; int initial = first * size ; if ( size < 0 ) { return data ; } else if ( ( initial >= ( data . size ( ) ) ) || ( ( max > 0 ) && ( initial >= max ) ) ) { throw new ListException ( "SIZE_ERROR" ) ; } else if ( ( initial + size ) >= ( data . size ( ) ) ) { return data . subList ( initial , data . size ( ) ) ; } else if ( ( max > 0 ) && ( ( initial + size ) >= max ) ) { return data . subList ( initial , max ) ; } else { return data . subList ( initial , ( initial + size ) ) ; } } catch ( UnknownHostException e ) { e . printStackTrace ( ) ; return null ; } catch ( IOException e ) { e . printStackTrace ( ) ; return null ; } } }

Fix:
Socket socket = new Socket ( "10.68.3.71" , 9090 ) ;
Buggy code:
public class SSTableExportTest extends SchemaLoader { public String asHex ( String str ) { <START_BUG> return bytesToHex ( ByteBuffer . wrap ( str . getBytes ( ) ) ) ; <END_BUG> } @ Test public void testEnumeratekeys ( ) throws IOException { } @ Test public void testExportSimpleCf ( ) throws IOException { } @ Test public void testExportSuperCf ( ) throws IOException { } @ Test public void testRoundTripStandardCf ( ) throws IOException , ParseException { } @ Test public void testExportCounterCf ( ) throws IOException { } }

Fix:
return bytesToHex ( ByteBufferUtil . bytes ( str ) ) ;
Buggy code:
public class SubsystemParsingUnitTestCase extends TestCase { private static final String namespace = "urn:jboss:domain:messaging:1.0" ; private static final MessagingSubsystemParser parser = MessagingSubsystemParser . getInstance ( ) ; public void test ( ) throws Exception { } List < ModelNode > parse ( final String name ) throws IOException , XMLStreamException { final List < ModelNode > operations = new ArrayList < ModelNode > ( ) ; XMLMapper mapper = Factory . create ( ) ; mapper . registerRootElement ( new QName ( SubsystemParsingUnitTestCase . namespace , "subsystem" ) , SubsystemParsingUnitTestCase . parser ) ; URL configURL = getClass ( ) . getResource ( name ) ; Assert . assertNotNull ( ( name + "<seq2seq4repair_space>url<seq2seq4repair_space>is<seq2seq4repair_space>not<seq2seq4repair_space>null" ) , configURL ) ; System . out . println ( ( "configURL<seq2seq4repair_space>=<seq2seq4repair_space>" + configURL ) ) ; BufferedReader reader = new BufferedReader ( new InputStreamReader ( configURL . openStream ( ) ) ) ; <START_BUG> mapper . parseDocument ( operations , XMLInputFactory . newFactory ( ) . createXMLStreamReader ( reader ) ) ; <END_BUG> return operations ; } }

Fix:
mapper . parseDocument ( operations , XMLInputFactory . newInstance ( ) . createXMLStreamReader ( reader ) ) ;
Buggy code:
public class DeploymentUploadUtil { private DeploymentUploadUtil ( ) { } public static byte [ ] storeDeploymentContent ( OperationContext context , ModelNode operation , ContentRepository contentRepository ) throws IOException , OperationFailedException { } private static InputStream getContents ( OperationContext context , ModelNode operation ) throws OperationFailedException { if ( ! ( operation . hasDefined ( CONTENT ) ) ) { <START_BUG> DeploymentUploadUtil . createFailureException ( DomainControllerMessages . MESSAGES . invalidContentDeclaration ( ) ) ; <END_BUG> } return DeploymentUploadUtil . getInputStream ( context , operation . require ( CONTENT ) . get ( 0 ) ) ; } private static InputStream getInputStream ( OperationContext context , ModelNode content ) throws OperationFailedException { } private static OperationFailedException createFailureException ( String msg ) { } }

Fix:
throw DeploymentUploadUtil . createFailureException ( DomainControllerMessages . MESSAGES . invalidContentDeclaration ( ) ) ;
Buggy code:
class Concat extends AbstractVal implements Val { private final Val _val1 ; private final Val _val2 ; private Joins _joins = null ; private ClassMetaData _meta = null ; private String _part1 ; private String _part2 ; private String _part3 ; public Concat ( Val val1 , Val val2 ) { } public ClassMetaData getMetaData ( ) { } public void setMetaData ( ClassMetaData meta ) { } public boolean isVariable ( ) { } public Class getType ( ) { } public void setImplicitType ( Class type ) { } public void initialize ( Select sel , JDBCStore store , boolean nullTest ) { } public Joins getJoins ( ) { } public Object toDataStoreValue ( Object val , JDBCStore store ) { } public void select ( Select sel , JDBCStore store , Object [ ] params , boolean pks , JDBCFetchConfiguration fetch ) { } public void selectColumns ( Select sel , JDBCStore store , Object [ ] params , boolean pks , JDBCFetchConfiguration fetch ) { } public void groupBy ( Select sel , JDBCStore store , Object [ ] params , JDBCFetchConfiguration fetch ) { <START_BUG> sel . groupBy ( newSQLBuffer ( sel , store , params , fetch ) , false ) ; <END_BUG> } public void orderBy ( Select sel , JDBCStore store , Object [ ] params , boolean asc , JDBCFetchConfiguration fetch ) { } private SQLBuffer newSQLBuffer ( Select sel , JDBCStore store , Object [ ] params , JDBCFetchConfiguration fetch ) { } public Object load ( Result res , JDBCStore store , JDBCFetchConfiguration fetch ) throws SQLException { } public boolean hasVariable ( Variable var ) { } public void calculateValue ( Select sel , JDBCStore store , Object [ ] params , Val other , JDBCFetchConfiguration fetch ) { } public void clearParameters ( ) { } public int length ( ) { } public void appendTo ( SQLBuffer sql , int index , Select sel , JDBCStore store , Object [ ] params , JDBCFetchConfiguration fetch ) { } }

Fix:
sel . groupBy ( newSQLBuffer ( sel , store , params , fetch ) ) ;
Buggy code:
public class Model { private static Model instance = null ; public static synchronized Model getInstance ( ) { } private List < Event > events ; EventTableGateway gateway ; private Model ( ) { } public boolean addEvent ( Event e ) { boolean result = false ; try { <START_BUG> int id = this . gateway . insertEvent ( e . getDate ( ) , e . getTime ( ) , e . getTitle ( ) , e . getAttending ( ) , e . getAddress ( ) , e . getEventManager ( ) , e . getPrice ( ) ) ; <END_BUG> if ( id != ( - 1 ) ) { e . setId ( id ) ; this . events . add ( e ) ; result = true ; } } catch ( SQLException ex ) { Logger . getLogger ( Model . class . getName ( ) ) . log ( Level . SEVERE , null , ex ) ; } return result ; } public List < Event > getEvents ( ) { } public boolean removeEvent ( Event e ) { } public Event findEventByTitle ( String title ) { } Event findEventByTile ( String title ) { } boolean updateEvent ( Event e ) { } }

Fix:
int id = this . gateway . insertEvent ( e . getDate ( ) , e . getTime ( ) , e . getTitle ( ) , e . getAttending ( ) , e . getPrice ( ) , e . getAddress ( ) , e . getEventManager ( ) ) ;
Buggy code:
public class IRCPluginHandler extends MonsterIRC { private final HashMap < Integer , IRCPlugin > pluginsToRun = new HashMap < Integer , IRCPlugin > ( ) ; private final HashMap < Integer , Thread > pluginThreads = new HashMap < Integer , Thread > ( ) ; private final List < IRCPluginDefinition > plugins ; public IRCPluginHandler ( MonsterIRC plugin ) { } private static File getPluginsFolder ( ) { } public void runplugin ( IRCPlugin plugin ) { } private void addpluginToPool ( IRCPlugin plugin , Thread t ) { } public void stopPlugins ( ) { } public void stopPlugin ( int id ) { } private void loadSources ( ) { final String javaExt = ".java" ; File [ ] files = IRCPluginHandler . getPluginsFolder ( ) . listFiles ( ) ; for ( File f : files ) { String name = f . getName ( ) ; if ( ( ( ( name . endsWith ( javaExt ) ) && ( ! ( name . startsWith ( "." ) ) ) ) && ( ! ( name . contains ( "!" ) ) ) ) && ( ! ( name . contains ( "$" ) ) ) ) { if ( JavaCompiler . isAvailable ( ) ) { <START_BUG> String classpath = ( ( Configuration . getClassPath ( ) ) + ";" ) + ( Configuration . getBukkitClassPath ( ) ) ; <END_BUG> boolean result = JavaCompiler . run ( f , classpath ) ; if ( result ) { IRC . log ( ( "Compiled:<seq2seq4repair_space>" + name ) ) ; } else { IRC . log ( ( "Error<seq2seq4repair_space>compiling:<seq2seq4repair_space>" + name ) ) ; } } } } } }

Fix:
String classpath = ( ( Configuration . getClassPath ( ) ) + ";" ) + ( System . getProperty ( "java.class.path" ) ) ;