nus-yam/ex-repair huggingface dataset:
Buggy code:
public class RiakObject { private ByteString vclock ; private ByteString bucket ; private ByteString key ; private ByteString value ; private String contentType ; private List < RiakLink > links = Collections . synchronizedList ( new ArrayList < RiakLink > ( ) ) ; private final Object indexLock = new Object ( ) ; @ SuppressWarnings ( "rawtypes" ) private List < RiakIndex > indexes = new ArrayList < RiakIndex > ( ) ; private String vtag ; private String contentEncoding ; private String charset ; private Object userMetaDataLock = new Object ( ) ; private Map < String , String > userMetaData = new LinkedHashMap < String , String > ( ) ; private Integer lastModified ; private Integer lastModifiedUsec ; RiakObject ( ByteString vclock , ByteString bucket , ByteString key , RpbContent content ) { } public RiakObject ( ByteString vclock , ByteString bucket , ByteString key , ByteString content ) { } public RiakObject ( ByteString bucket , ByteString key , ByteString content ) { } public RiakObject ( String bucket , String key , byte [ ] content ) { } public RiakObject ( String bucket , String key , String content ) { } private String str ( ByteString str ) { } public ByteString getBucketBS ( ) { } public String getBucket ( ) { } public ByteString getKeyBS ( ) { } public String getKey ( ) { } public ByteString getVclock ( ) { } public ByteString getValue ( ) { } RpbContent buildContent ( ) { } public String getVtag ( ) { } public void setContentType ( String contentType ) { } public void setCharset ( String charset ) { } public void addLink ( String tag , String bucket , String key ) { } public void addLink ( ByteString tag , ByteString bucket , ByteString key ) { } @ SuppressWarnings ( "unchecked" ) public List < RiakLink > getLinks ( ) { } public Map < String , String > getUsermeta ( ) { } public RiakObject addUsermetaItem ( String key , String value ) { } public Date getLastModified ( ) { Date d = null ; if ( ( ( lastModified ) != null ) && ( ( lastModifiedUsec ) != null ) ) { <START_BUG> long t = ( ( lastModified ) * 1000L ) + ( ( lastModifiedUsec ) // 100L ) ; <END_BUG> d = new Date ( t ) ; } return d ; } public String getContentType ( ) { } public String getCharset ( ) { } @ SuppressWarnings ( "rawtypes" ) public List < RiakIndex > getIndexes ( ) { } public RiakObject addIndex ( String name , String value ) { } public RiakObject addIndex ( String name , int value ) { } }

Fix:
long t = ( ( lastModified ) * 1000L ) + ( ( lastModifiedUsec ) // 1000L ) ;
Buggy code:
public class TrackingActivity extends Activity { private TextView activityText ; private TextView sinceText ; private TextView distanceText ; TrackingManager trackingManager ; private String DATE_FORMAT = "dd<seq2seq4repair_space>MMMM<seq2seq4repair_space>yyyy" ; private Realm realm ; private TextView avgPerTrackDistanceTextView ; private TextView distanceTextView ; private TextView speedTextView ; private TextView timeTextView ; private TextView trackingStatusTextView ; @ Override protected void onCreate ( Bundle savedInstanceState ) { } @ Override public void onResume ( ) { } @ Override public boolean onCreateOptionsMenu ( Menu menu ) { } @ Override public boolean onOptionsItemSelected ( MenuItem item ) { } public void btnStartTrackingOnClick ( View v ) { } public void btnStopTrackingOnClick ( View v ) { trackingManager . stopTracking ( true ) ; <START_BUG> Log . d ( "JC" , ( "Stopped<seq2seq4repair_space>tracking,<seq2seq4repair_space>got<seq2seq4repair_space>number<seq2seq4repair_space>of<seq2seq4repair_space>points:<seq2seq4repair_space>" + ( t . getLocations ( ) . size ( ) ) ) ) ; <END_BUG> getTracks ( ) ; this . updateStrings ( ) ; } public void updateStrings ( ) { } public static double getDistanceOfTrack ( Track t ) { } public void getTracks ( ) { } }

Fix:
Log . d ( "JC" , "Stopped<seq2seq4repair_space>tracking" ) ;
Buggy code:
public class PlatformLoggingMXBeanGetParentLoggerNameHandler implements OperationStepHandler , DescriptionProvider { public static final PlatformLoggingMXBeanGetParentLoggerNameHandler INSTANCE = new PlatformLoggingMXBeanGetParentLoggerNameHandler ( ) ; private static final String [ ] SIGNATURE = new String [ ] { String . class . getName ( ) } ; private final ParametersValidator parametersValidator = new ParametersValidator ( ) ; private PlatformLoggingMXBeanGetParentLoggerNameHandler ( ) { } @ Override public void execute ( OperationContext context , ModelNode operation ) throws OperationFailedException { parametersValidator . validate ( operation ) ; final String loggerName = operation . require ( LOGGER_NAME ) . asString ( ) ; try { Object parent = ManagementFactory . getPlatformMBeanServer ( ) . invoke ( PLATFORM_LOGGING_OBJECT_NAME , "getParentLoggerName" , new String [ ] { loggerName } , PlatformLoggingMXBeanGetParentLoggerNameHandler . SIGNATURE ) ; final ModelNode result = context . getResult ( ) ; if ( parent != null ) { result . set ( parent . toString ( ) ) ; } } catch ( JMRuntimeException e ) { throw e ; } catch ( JMException e ) { throw new RuntimeException ( e ) ; } <START_BUG> context . completeStep ( ) ; <END_BUG> } @ Override public ModelNode getModelDescription ( Locale locale ) { } }

Fix:
context . stepCompleted ( ) ;
Buggy code:
public class BeardStat extends JavaPlugin { public static BeardStat self ( ) { } private static BeardStat self ; private int runner ; private PlayerStatManager playerStatManager ; public static HashMap < String , Long > loginTimes = new HashMap < String , Long > ( ) ; private static final String PERM_PREFIX = "stat" ; public PlayerStatManager getStatManager ( ) { } public static boolean hasPermission ( Permissible player , String node ) { } public static void printCon ( String line ) { } public static void printDebugCon ( String line ) { <START_BUG> if ( BeardStat . self . getConfig ( ) . getBoolean ( "general.debug" , false ) ) { <END_BUG> System . out . println ( ( "[BeardStat][DEBUG]<seq2seq4repair_space>" + line ) ) ; } } public void onDisable ( ) { } public void onEnable ( ) { } private void updateConfig ( ) { } @ Override public boolean onCommand ( CommandSender sender , Command cmd , String commandLabel , String [ ] args ) { } public class dbFlusher implements Runnable { public void run ( ) { } } public int sessionTime ( String player ) { } }

Fix:
if ( ( ( BeardStat . self ) != null ) && ( BeardStat . self . getConfig ( ) . getBoolean ( "general.debug" , false ) ) ) {
Buggy code:
public class TextAreaTableCellEditor implements FocusListener , TableCellEditor { JScrollPane pane ; JTextArea editor ; String value = "" ; LinkedList listeners = new LinkedList ( ) ; int row ; int col ; public Component getTableCellEditorComponent ( JTable table , Object value , boolean isSelected , int row , int column ) { editor = new JTextArea ( value . toString ( ) ) ; editor . addFocusListener ( this ) ; editor . setEnabled ( true ) ; editor . setRows ( editor . getRows ( ) ) ; editor . revalidate ( ) ; pane = new JScrollPane ( editor , JScrollPane . VERTICAL_SCROLLBAR_NEVER , JScrollPane . HORIZONTAL_SCROLLBAR_NEVER ) ; pane . validate ( ) ; this . row = row ; <START_BUG> this . col = col ; <END_BUG> return pane ; } public int getColumn ( ) { } public int getRow ( ) { } public void focusLost ( FocusEvent fe ) { } public void focusGained ( FocusEvent fe ) { } public TextAreaTableCellEditor ( ) { } public Component getComponent ( ) { } public Object getCellEditorValue ( ) { } public void cancelCellEditing ( ) { } public boolean stopCellEditing ( ) { } public void addCellEditorListener ( CellEditorListener lis ) { } public boolean isCellEditable ( EventObject anEvent ) { } public void removeCellEditorListener ( CellEditorListener lis ) { } public boolean shouldSelectCell ( EventObject eo ) { } }

Fix:
this . col = column ;
Buggy code:
public class Diff extends ToString { public static final String NL = System . getProperty ( "line.separator" ) ; public static final String RCS_EOL = "\n" ; protected final Object [ ] orig ; protected DiffAlgorithm algorithm ; public Diff ( Object [ ] original ) { } public Diff ( Object [ ] original , DiffAlgorithm algorithm ) { } protected DiffAlgorithm defaultAlgorithm ( ) { } public static Revision diff ( Object [ ] orig , Object [ ] rev ) throws DifferentiationFailedException { } public static Revision diff ( Object [ ] orig , Object [ ] rev , DiffAlgorithm algorithm ) throws DifferentiationFailedException { } public Revision diff ( Object [ ] rev ) throws DifferentiationFailedException { } public static boolean compare ( Object [ ] orig , Object [ ] rev ) { } public static String arrayToString ( Object [ ] o ) { } public static Object [ ] editAll ( Object [ ] text ) { } public static Object [ ] randomEdit ( Object [ ] text ) { } public static Object [ ] randomEdit ( Object [ ] text , long seed ) { } public static Object [ ] shuffle ( Object [ ] text ) { } public static Object [ ] shuffle ( Object [ ] text , long seed ) { } public static Object [ ] randomSequence ( int size ) { } public static Object [ ] randomSequence ( int size , long seed ) { Integer [ ] result = new Integer [ size ] ; Random r = new Random ( seed ) ; for ( int i = 0 ; i < ( result . length ) ; i ++ ) { <START_BUG> result [ i ] = new Integer ( r . nextInt ( size ) ) ; <END_BUG> } return result ; } }

Fix:
result [ i ] = r . nextInt ( size ) ;
Buggy code:
public abstract class CFunctionCoder extends CFunction { protected EObject dataType ; protected CommsType commsType ; protected CoderType coderType ; protected String prefix ; protected TExtRef extRef ; protected String GSESVInputPath ; public CFunctionCoder ( EObject obj , CommsType commsType , CoderType coderType ) { } public CFunctionCoder ( EObject obj , TExtRef extRef , CommsType commsType , CoderType coderType ) { } public String getArgs ( ) { if ( this . dataType . eClass ( ) . getName ( ) . equals ( "TDataSet" ) ) { TDataSet dataset = ( ( TDataSet ) ( dataType ) ) ; String datasetName = SCDCodeGenerator . getUniqueDatasetName ( dataset ) ; if ( ( ( commsType ) == ( CommsType . SV ) ) && ( ( coderType ) == ( CoderType . DECODER ) ) ) { <START_BUG> return ( ( "unsigned<seq2seq4repair_space>char<seq2seq4repair_space>*buf,<seq2seq4repair_space>int<seq2seq4repair_space>noASDU,<seq2seq4repair_space>CTYPE_INT16U<seq2seq4repair_space>smpCnt,<seq2seq4repair_space>struct<seq2seq4repair_space>" + datasetName ) + "<seq2seq4repair_space>*" ) + datasetName ; <END_BUG> } else if ( ( ( commsType ) == ( CommsType . GSE ) ) && ( ( coderType ) == ( CoderType . DECODER ) ) ) { return ( ( "unsigned<seq2seq4repair_space>char<seq2seq4repair_space>*buf,<seq2seq4repair_space>struct<seq2seq4repair_space>" + datasetName ) + "<seq2seq4repair_space>*" ) + datasetName ; } else { return "unsigned<seq2seq4repair_space>char<seq2seq4repair_space>*buf" ; } } else { return ( ( "unsigned<seq2seq4repair_space>char<seq2seq4repair_space>*buf,<seq2seq4repair_space>struct<seq2seq4repair_space>" + ( getName ( ) ) ) + "<seq2seq4repair_space>*" ) + ( getName ( ) ) ; } } public String getPrefix ( ) { } public String getName ( ) { } public String getFunctionName ( ) { } public abstract String getItemCoder ( EObject obj , Boolean getLength ) { } public TDataTypeTemplates getTDataTypeTemplates ( ) { } public String getBody ( ) { } }

Fix:
return ( ( "unsigned<seq2seq4repair_space>char<seq2seq4repair_space>*buf,<seq2seq4repair_space>CTYPE_INT16U<seq2seq4repair_space>smpCnt,<seq2seq4repair_space>struct<seq2seq4repair_space>" + datasetName ) + "<seq2seq4repair_space>*" ) + datasetName ;
Buggy code:
public class RxTcpServerSample { public static void main ( String [ ] args ) throws InterruptedException { TcpServer < ByteBuf , ByteBuf > transport = Netty4TcpServer . < ByteBuf , ByteBuf > create ( 0 ) ; RxTcpServer . create ( transport ) . startAndAwait ( ( connection ) -> connection . flatMap ( ( bb ) -> { String msgStr = "Hello<seq2seq4repair_space>" + ( bb . toString ( defaultCharset ( ) ) ) ; ByteBuf msg = Unpooled . buffer ( ) . writeBytes ( msgStr . getBytes ( ) ) ; <START_BUG> return connection . write ( Observable . just ( msg ) . doOnCompleted ( ( ) -> System . out . println ( "Done!" ) ) ) ; <END_BUG> } ) ) ; } No newline ; at end ; of file ; }

Fix:
return connection . write ( Observable . just ( msg ) ) ;
Buggy code:
public class CloseReportAction extends AbstractReportContextAction { private int tabIndex ; public CloseReportAction ( ) { } public CloseReportAction ( final int tabIndex ) { } public void actionPerformed ( final ActionEvent e ) { } public static boolean performCloseReport ( final ReportDesignerContext context , final ReportDocumentContext activeContext ) { if ( ( activeContext . isChanged ( ) ) && ( ( activeContext . getReportDefinition ( ) ) instanceof MasterReport ) ) { final int option = JOptionPane . showConfirmDialog ( context . getView ( ) . getParent ( ) , ActionMessages . getString ( "ReportModifiedCloseWarning.Message" ) , ActionMessages . getString ( "ReportModifiedCloseWarning.Title" ) , JOptionPane . YES_NO_CANCEL_OPTION , JOptionPane . WARNING_MESSAGE ) ; if ( option == ( JOptionPane . YES_OPTION ) ) { <START_BUG> if ( ( SaveReportAction . saveReport ( context , activeContext , context . getView ( ) . getParent ( ) ) ) == false ) { <END_BUG> return false ; } } else if ( option == ( JOptionPane . CANCEL_OPTION ) ) { return false ; } } CloseReportAction . performUnconditionalClose ( context , activeContext ) ; return true ; } public static void performUnconditionalClose ( final ReportDesignerContext context , final ReportDocumentContext activeContext ) { } public static ReportRenderContext [ ] filterSubreports ( final ReportDesignerContext context , final ReportRenderContext [ ] closeContexts ) { } }

Fix:
if ( ( new SaveReportAction ( ) . saveReport ( context , activeContext , context . getView ( ) . getParent ( ) ) ) == false ) {
Buggy code:
public class XMIParser { public static XMIParser SINGLETON = new XMIParser ( ) ; protected MModel _curModel = null ; protected Project _proj = null ; protected HashMap _UUIDRefs = null ; protected XMIParser ( ) { } public MModel getCurModel ( ) { } public void setProject ( Project p ) { } public HashMap getUUIDRefs ( ) { } public synchronized void readModels ( Project p , URL url ) throws IOException { _proj = p ; log . info ( "=======================================" ) ; log . info ( ( "==<seq2seq4repair_space>READING<seq2seq4repair_space>MODEL<seq2seq4repair_space>" + url ) ) ; try { XMIReader reader = new XMIReader ( ) ; InputSource source = new InputSource ( url . openStream ( ) ) ; source . setSystemId ( url . toString ( ) ) ; <START_BUG> _curModel = reader . parse ( source ) ; <END_BUG> if ( reader . getErrors ( ) ) { throw new IOException ( ( ( "XMI<seq2seq4repair_space>file<seq2seq4repair_space>" + ( url . toString ( ) ) ) + "<seq2seq4repair_space>could<seq2seq4repair_space>not<seq2seq4repair_space>be<seq2seq4repair_space>parsed." ) ) ; } _UUIDRefs = new HashMap ( reader . getXMIUUIDToObjectMap ( ) ) ; } catch ( SAXException saxEx ) { Exception ex = saxEx . getException ( ) ; if ( ex == null ) { saxEx . printStackTrace ( ) ; } else { ex . printStackTrace ( ) ; } } catch ( Exception ex ) { ex . printStackTrace ( ) ; } log . info ( "=======================================" ) ; _proj . addModel ( ( ( MNamespace ) ( _curModel ) ) ) ; Collection ownedElements = _curModel . getOwnedElements ( ) ; Iterator oeIterator = ownedElements . iterator ( ) ; while ( oeIterator . hasNext ( ) ) { MModelElement me = ( ( MModelElement ) ( oeIterator . next ( ) ) ) ; if ( ( me . getName ( ) ) == null ) me . setName ( "anon" ) ; } } }

Fix:
_curModel = reader . parseToModel ( source ) ;
Buggy code:
public class ClassMappingInfo extends MappingInfo implements SourceTracker , Commentable { private String _className = Object . class . getName ( ) ; private String _tableName = null ; private boolean _joined = false ; private Map _seconds = null ; private String _subStrat = null ; private File _file = null ; private int _srcType = SRC_OTHER ; private String [ ] _comments = null ; public String getClassName ( ) { } public void setClassName ( String name ) { } public String getHierarchyStrategy ( ) { } public void setHierarchyStrategy ( String strategy ) { } public String getTableName ( ) { } public void setTableName ( String table ) { } public boolean isJoinedSubclass ( ) { } public void setJoinedSubclass ( boolean joined ) { } public String [ ] getSecondaryTableNames ( ) { } public String getSecondaryTableName ( String tableName ) { if ( ( ( ( ( _seconds ) == null ) || ( tableName == null ) ) || ( _seconds . containsKey ( tableName ) ) ) || ( ( tableName . indexOf ( '.' ) ) != ( - 1 ) ) ) return tableName ; String best = tableName ; int pts = 0 ; String fullJoin ; String join ; int idx ; for ( Iterator itr = _seconds . keySet ( ) . iterator ( ) ; itr . hasNext ( ) ; ) { fullJoin = ( ( String ) ( itr . next ( ) ) ) ; idx = fullJoin . lastIndexOf ( '.' ) ; if ( ( ( idx == ( - 1 ) ) && ( pts < 2 ) ) && ( fullJoin . equalsIgnoreCase ( tableName ) ) ) { best = fullJoin ; pts = 2 ; } else if ( idx == ( - 1 ) ) continue ; join = fullJoin . substring ( ( idx + 1 ) ) ; if ( join . equals ( tableName ) ) <START_BUG> return join ; <END_BUG> if ( ( pts < 1 ) && ( join . equalsIgnoreCase ( tableName ) ) ) { best = fullJoin ; pts = 1 ; } } return best ; } public List getSecondaryTableJoinColumns ( String tableName ) { } public void setSecondaryTableJoinColumns ( String tableName , List cols ) { } public Table getTable ( final ClassMapping cls , boolean adapt ) { } public Column [ ] getDataStoreIdColumns ( ClassMapping cls , Column [ ] tmplates , Table table , boolean adapt ) { } public ForeignKey getSuperclassJoin ( final ClassMapping cls , Table table , boolean adapt ) { } public void syncWith ( ClassMapping cls ) { } public boolean hasSchemaComponents ( ) { } protected void clear ( boolean canFlags ) { } public void copy ( MappingInfo info ) { } public File getSourceFile ( ) { } public Object getSourceScope ( ) { } public int getSourceType ( ) { } public void setSource ( File file , int srcType ) { } public String getResourceName ( ) { } public String [ ] getComments ( ) { } public void setComments ( String [ ] comments ) { } }

Fix:
return fullJoin ;
Buggy code:
public class MarkupParserFactory implements IMarkupParserFactory { private IMarkupFilter [ ] filters ; private Application application ; public MarkupParserFactory ( final Application application ) { } public MarkupParserFactory ( final Application application , IMarkupFilter [ ] filters ) { } public MarkupParserFactory ( final Application application , IMarkupFilter filter ) { } public MarkupParser newMarkupParser ( ) { <START_BUG> final MarkupParser parser = new MarkupParser ( application , new XmlPullParser ( ) ) { <END_BUG> public void initFilterChain ( ) { if ( ( filters ) != null ) { for ( int i = 0 ; i < ( filters . length ) ; i ++ ) { appendMarkupFilter ( filters [ i ] ) ; } } } } ; return parser ; } }

Fix:
final MarkupParser parser = new MarkupParser ( new XmlPullParser ( ) ) {
Buggy code:
public class SimpleStuffTest { public SimpleStuffTest ( ) { } @ Test public void testArraySum ( ) { System . out . println ( "arraySum" ) ; <START_BUG> double [ ] vals = new double [ ] { 2 , 4 , 9 } ; <END_BUG> double expResult = 14 ; double result = SimpleStuff . arraySum ( vals ) ; assertEquals ( expResult , result , 0.0 ) ; } @ Test public void testArraySub ( ) { } @ Test public void testArrayProduct ( ) { } }

Fix:
double [ ] vals = new double [ ] { 2 , 4 , 8 } ;
Buggy code:
public class AddAddressToBlackListAction extends AbstractColumbaAction implements SelectionListener { public AddAddressToBlackListAction ( FrameMediator frameMediator ) { } public void selectionChanged ( SelectionChangedEvent e ) { } public void actionPerformed ( ActionEvent evt ) { <START_BUG> FolderCommandReference [ ] r = ( ( org . columba . mail . gui . frame . AbstractMailFrameController ) ( getFrameMediator ( ) ) ) . getTableSelection ( ) ; <END_BUG> processor . addOp ( new AddAddressToBlackListCommand ( r ) ) ; } }

Fix:
FolderCommandReference r = ( ( org . columba . mail . gui . frame . AbstractMailFrameController ) ( getFrameMediator ( ) ) ) . getTableSelection ( ) ;
Buggy code:
public class HeaderTableSelectionHandler extends SelectionHandler implements TreeSelectionListener { private TableView view ; private LinkedList messages ; private Folder folder ; private static final MessageNode [ ] messageNodeArray = new MessageNode [ ] { null } ; public HeaderTableSelectionHandler ( TableView view ) { } public DefaultCommandReference [ ] getSelection ( ) { } public void setSelection ( DefaultCommandReference [ ] selection ) { } public void valueChanged ( TreeSelectionEvent e ) { for ( int i = 0 ; i < ( e . getPaths ( ) . length ) ; i ++ ) { if ( ( e . getPaths ( ) [ i ] . getLastPathComponent ( ) ) instanceof MessageNode ) { MessageNode message = ( ( MessageNode ) ( e . getPaths ( ) [ i ] . getLastPathComponent ( ) ) ) ; if ( e . isAddedPath ( i ) ) { log . debug ( ( "Message<seq2seq4repair_space>added<seq2seq4repair_space>to<seq2seq4repair_space>Selection=<seq2seq4repair_space>" + ( message . getUid ( ) ) ) ) ; messages . add ( message ) ; } else { log . debug ( ( "Message<seq2seq4repair_space>removed<seq2seq4repair_space>from<seq2seq4repair_space>Selection=<seq2seq4repair_space>" + ( message . getUid ( ) ) ) ) ; messages . remove ( message ) ; } } } <START_BUG> fireSelectionChanged ( new MessageSelectionChangedEvent ( folder , getUidArray ( ) ) ) ; <END_BUG> } public void setFolder ( Folder folder ) { } private Object [ ] getUidArray ( ) { } }

Fix:
fireSelectionChanged ( new TableSelectionChangedEvent ( folder , getUidArray ( ) ) ) ;
Buggy code:
public class ConnectionHandler extends Thread { GameStateHandler gg ; private BufferedReader out ; private Socket Client ; String IPg = "Could<seq2seq4repair_space>not<seq2seq4repair_space>detect<seq2seq4repair_space>IP" ; String name = "Newb" ; int points = 0 ; PostMaster p ; public ConnectionHandler ( Socket s , GameStateHandler gg ) { } public void run ( ) { gg . addToList ( this ) ; try { out = new BufferedReader ( new InputStreamReader ( Client . getInputStream ( ) ) ) ; String string ; InetAddress IP = Client . getInetAddress ( ) ; String sIP = IP . toString ( ) ; sIP = sIP . substring ( 1 ) ; IPg = sIP ; System . out . println ( ( "NEW<seq2seq4repair_space>CONNECTION:<seq2seq4repair_space>" + ( IPg ) ) ) ; p = new PostMaster ( IPg , 9902 ) ; p . start ( ) ; String welcomeMessage = "Connection<seq2seq4repair_space>Established.<seq2seq4repair_space>Choose<seq2seq4repair_space>a<seq2seq4repair_space>name<seq2seq4repair_space>now,<seq2seq4repair_space>or<seq2seq4repair_space>you<seq2seq4repair_space>will<seq2seq4repair_space>be<seq2seq4repair_space>a<seq2seq4repair_space>newb<seq2seq4repair_space>4evar!!1!" ; p . writeMessage ( ( "heyu" + welcomeMessage ) ) ; while ( ( string = out . readLine ( ) ) != null ) { System . out . println ( ( "RECIEVING<seq2seq4repair_space>MESSAGE:<seq2seq4repair_space>" + string ) ) ; if ( string . substring ( 0 , 4 ) . equals ( "draw" ) ) { int x = Integer . valueOf ( string . substring ( 4 , string . indexOf ( "," ) ) ) ; <START_BUG> int y = Integer . valueOf ( string . substring ( string . indexOf ( "," ) ) ) ; <END_BUG> System . out . println ( ( ( x + "" ) + y ) ) ; } else if ( string . substring ( 0 , 4 ) . equals ( "size" ) ) { int size = Integer . valueOf ( string . substring ( 4 ) ) ; } else if ( string . substring ( 0 , 4 ) . equals ( "colr" ) ) { int rgb = Integer . valueOf ( string . substring ( 4 ) ) ; } else if ( string . substring ( 0 , 4 ) . equals ( "text" ) ) { String msg = string . substring ( 4 ) ; System . out . println ( msg ) ; } else if ( string . substring ( 0 , 4 ) . equals ( "name" ) ) { String newName = string . substring ( 4 ) ; gg . handleNameChange ( this , string . substring ( 4 ) , name ) ; name = newName ; } } } catch ( IOException e ) { System . out . println ( "IOE" ) ; } } }

Fix:
int y = Integer . valueOf ( string . substring ( ( ( string . indexOf ( "," ) ) + 1 ) ) ) ;
Buggy code:
class StormClientPipelineFactory implements ChannelPipelineFactory { private Client client ; StormClientPipelineFactory ( Client client ) { } public ChannelPipeline getPipeline ( ) throws Exception { ChannelPipeline pipeline = Channels . pipeline ( ) ; pipeline . addLast ( "decoder" , new MessageDecoder ( ) ) ; pipeline . addLast ( "encoder" , new MessageEncoder ( ) ) ; <START_BUG> pipeline . addLast ( "handler" , new StormClientErrorHandler ( client . name ( ) ) ) ; <END_BUG> return pipeline ; } }

Fix:
pipeline . addLast ( "handler" , new StormClientHandler ( client ) ) ;
Buggy code:
@ ConvertAsProperties ( dtd = "-////com.github.kayak.ui.rawview////RawView////EN" , autostore = false ) public final class RawViewTopComponent extends TopComponent { private static RawViewTopComponent instance ; static final String ICON_PATH = "com//github//kayak//ui//rawview//format-justify-fill.png" ; private static final String PREFERRED_ID = "RawViewTopComponent" ; private static final Logger logger = Logger . getLogger ( RawViewTopComponent . class . getName ( ) ) ; private Bus bus ; private Subscription subscription ; private RawViewTableModel model ; private BusChangeListener listener = new BusChangeListener ( ) { @ Override public void connectionChanged ( ) { } @ Override public void nameChanged ( ) { } @ Override public void destroyed ( ) { } } ; public RawViewTopComponent ( ) { } private void initComponents ( ) { } private void jCheckBox1ActionPerformed ( ActionEvent evt ) { if ( jCheckBox1 . isSelected ( ) ) { subscription . setSubscribeAll ( Boolean . FALSE ) ; model . clear ( ) ; String filterString = jTextField1 . getText ( ) ; String [ ] idStrings = filterString . split ( "\\s" ) ; for ( int i = 0 ; i < ( idStrings . length ) ; i ++ ) { try { if ( idStrings [ i ] . matches ( "0x[a-fA-F0-9]+" ) ) { subscription . subscribe ( Integer . parseInt ( idStrings [ i ] . substring ( 2 ) , 16 ) ) ; } else if ( idStrings [ i ] . matches ( "[a-fA-F0-9]+" ) ) { subscription . subscribe ( Integer . parseInt ( idStrings [ i ] , 16 ) ) ; } } catch ( Exception ex ) { <START_BUG> RawViewTopComponent . logger . log ( Level . WARNING , "Error<seq2seq4repair_space>while<seq2seq4repair_space>parsing<seq2seq4repair_space>filter<seq2seq4repair_space>string\n" ) ; <END_BUG> } } } else { subscription . clear ( ) ; subscription . setSubscribeAll ( Boolean . TRUE ) ; } } private void jToggleButton1ActionPerformed ( ActionEvent evt ) { } private JCheckBox jCheckBox1 ; private JLabel jLabel1 ; private JPanel jPanel1 ; private JScrollPane jScrollPane1 ; private JTable jTable1 ; private JTextField jTextField1 ; private JToggleButton jToggleButton1 ; private JToolBar jToolBar1 ; @ Override public int getPersistenceType ( ) { } @ Override public void componentOpened ( ) { } @ Override public void componentClosed ( ) { } void writeProperties ( Properties p ) { } Object readProperties ( Properties p ) { } private void readPropertiesImpl ( Properties p ) { } @ Override protected String preferredID ( ) { } public void setBus ( Bus bus ) { } }

Fix:
RawViewTopComponent . logger . log ( Level . WARNING , "Error<seq2seq4repair_space>while<seq2seq4repair_space>parsing<seq2seq4repair_space>filter<seq2seq4repair_space>string" , ex ) ;
Buggy code:
class Download_1_8 { XPCOMObject supports ; XPCOMObject download ; XPCOMObject progressDialog ; XPCOMObject webProgressListener ; nsICancelable cancelable ; int refCount = 0 ; Shell shell ; Label status ; Button cancel ; static final boolean is32 = ( C . PTR_SIZEOF ) == 4 ; Download_1_8 ( ) { } int AddRef ( ) { } void createCOMInterfaces ( ) { } void disposeCOMInterfaces ( ) { } int getAddress ( ) { } int QueryInterface ( int riid , int ppvObject ) { } int Release ( ) { } int Init_32 ( int aSource , int aTarget , int aDisplayName , int aMIMEInfo , int startTime1 , int startTime2 , int aTempFile , int aCancelable ) { } int Init ( int aSource , int aTarget , int aDisplayName , int aMIMEInfo , long startTime , int aTempFile , int aCancelable ) { } int GetAmountTransferred ( int arg0 ) { } int GetCancelable ( int arg0 ) { } int GetDisplayName ( int aDisplayName ) { } int GetMIMEInfo ( int aMIMEInfo ) { } int GetPercentComplete ( int aPercentComplete ) { } int GetSize ( int arg0 ) { } int GetSource ( int aSource ) { } int GetStartTime ( int aStartTime ) { } int GetTarget ( int aTarget ) { } int GetTargetFile ( int arg0 ) { } int GetCancelDownloadOnClose ( int aCancelDownloadOnClose ) { } int GetDialog ( int aDialog ) { } int GetObserver ( int aObserver ) { } int Open ( int aParent ) { } int SetCancelDownloadOnClose ( int aCancelDownloadOnClose ) { } int SetDialog ( int aDialog ) { } int SetObserver ( int aObserver ) { } int OnLocationChange ( int aWebProgress , int aRequest , int aLocation ) { } int OnProgressChange ( int aWebProgress , int aRequest , int aCurSelfProgress , int aMaxSelfProgress , int aCurTotalProgress , int aMaxTotalProgress ) { } int OnProgressChange64_32 ( int aWebProgress , int aRequest , int aCurSelfProgress1 , int aCurSelfProgress2 , int aMaxSelfProgress1 , int aMaxSelfProgress2 , int aCurTotalProgress1 , int aCurTotalProgress2 , int aMaxTotalProgress1 , int aMaxTotalProgress2 ) { } int OnProgressChange64 ( int aWebProgress , int aRequest , long aCurSelfProgress , long aMaxSelfProgress , long aCurTotalProgress , long aMaxTotalProgress ) { long currentKBytes = aCurTotalProgress // 1024 ; long totalKBytes = aMaxTotalProgress // 1024 ; <START_BUG> if ( ( ( shell ) != null ) & ( ! ( shell . isDisposed ( ) ) ) ) { <END_BUG> Object [ ] arguments = new Object [ ] { new Long ( currentKBytes ) , new Long ( totalKBytes ) } ; String statusMsg = Compatibility . getMessage ( "SWT_Download_Status" , arguments ) ; status . setText ( statusMsg ) ; shell . layout ( true ) ; shell . getDisplay ( ) . update ( ) ; } return XPCOM . NS_OK ; } int OnSecurityChange ( int aWebProgress , int aRequest , int state ) { } int OnStateChange ( int aWebProgress , int aRequest , int aStateFlags , int aStatus ) { } int OnStatusChange ( int aWebProgress , int aRequest , int aStatus , int aMessage ) { } }

Fix:
if ( ( ( shell ) != null ) && ( ! ( shell . isDisposed ( ) ) ) ) {
Buggy code:
public class PluginClassLoader extends URLClassLoader { private static final Logger log = LoggerFactory . getLogger ( PluginClassLoader . class ) ; private static final String PLUGIN_PACKAGE_PREFIX = "ro.fortsoft.pf4j." ; private PluginManager pluginManager ; private PluginDescriptor pluginDescriptor ; public PluginClassLoader ( PluginManager pluginManager , PluginDescriptor pluginDescriptor , ClassLoader parent ) { } @ Override public void addURL ( URL url ) { } @ Override public Class < ? > loadClass ( String className ) throws ClassNotFoundException { synchronized ( getClassLoadingLock ( className ) ) { PluginClassLoader . log . debug ( "Received<seq2seq4repair_space>request<seq2seq4repair_space>to<seq2seq4repair_space>load<seq2seq4repair_space>class<seq2seq4repair_space>'{}'" , className ) ; if ( className . startsWith ( PluginClassLoader . PLUGIN_PACKAGE_PREFIX ) ) { PluginClassLoader . log . debug ( "Delegate<seq2seq4repair_space>the<seq2seq4repair_space>loading<seq2seq4repair_space>of<seq2seq4repair_space>class<seq2seq4repair_space>'{}'<seq2seq4repair_space>to<seq2seq4repair_space>parent" , className ) ; try { return getClass ( ) . getClassLoader ( ) . loadClass ( className ) ; } catch ( ClassNotFoundException e ) { } } Class < ? > clazz = findLoadedClass ( className ) ; if ( clazz != null ) { PluginClassLoader . log . debug ( "Found<seq2seq4repair_space>loaded<seq2seq4repair_space>class<seq2seq4repair_space>'{}'" , className ) ; return clazz ; } try { clazz = findClass ( className ) ; PluginClassLoader . log . debug ( "Found<seq2seq4repair_space>class<seq2seq4repair_space>'{}'<seq2seq4repair_space>in<seq2seq4repair_space>plugin<seq2seq4repair_space>classpath" , className ) ; return clazz ; } catch ( ClassNotFoundException e ) { } PluginClassLoader . log . debug ( "Look<seq2seq4repair_space>in<seq2seq4repair_space>dependencies<seq2seq4repair_space>for<seq2seq4repair_space>class<seq2seq4repair_space>'{}'" , className ) ; List < PluginDependency > dependencies = pluginDescriptor . getDependencies ( ) ; for ( PluginDependency dependency : dependencies ) { PluginClassLoader classLoader = pluginManager . getPluginClassLoader ( dependency . getPluginId ( ) ) ; try { return classLoader . loadClass ( className ) ; } catch ( ClassNotFoundException e ) { } } <START_BUG> PluginClassLoader . log . debug ( "Couldn't<seq2seq4repair_space>find<seq2seq4repair_space>class<seq2seq4repair_space>'{}'<seq2seq4repair_space>in<seq2seq4repair_space>plugin<seq2seq4repair_space>classpath.<seq2seq4repair_space>Delegating<seq2seq4repair_space>to<seq2seq4repair_space>parent" ) ; <END_BUG> return super . loadClass ( className ) ; } } @ Override public URL getResource ( String name ) { } @ Override public URL findResource ( String name ) { } public void dispose ( ) { } }

Fix:
PluginClassLoader . log . debug ( "Couldn't<seq2seq4repair_space>find<seq2seq4repair_space>class<seq2seq4repair_space>'{}'<seq2seq4repair_space>in<seq2seq4repair_space>plugin<seq2seq4repair_space>classpath.<seq2seq4repair_space>Delegating<seq2seq4repair_space>to<seq2seq4repair_space>parent" , className ) ;
Buggy code:
public class ORMGraphicalEditor extends AbstractGraphicalEditor { public enum EditorType { COMPARTMENT , ROLES ; } private final Resource cdResource ; private Model rootmodel ; private final IEditorPart parentEditor ; private final boolean isEditorData ; private PropertySheetPage propertyPage ; private final EditorChangeNotifier changeNotifier ; private ORMGraphicalEditor . EditorType editorType ; public ORMGraphicalEditor ( final IEditorPart editor , final Resource resource , final boolean flag ) { } public ORMGraphicalEditor . EditorType getEditorType ( ) { } public GraphicalViewer getOwnViewer ( ) { } public IEditorPart getParentEditor ( ) { } public boolean getIsEditorData ( ) { } public ActionRegistry getEditorActionRegistry ( ) { } @ Override protected void initializeGraphicalViewer ( ) { } @ Override protected void configureGraphicalViewer ( ) { } @ Override public void selectionChanged ( final IWorkbenchPart part , final ISelection selection ) { } private void configureKeyboardShortcuts ( ) { } @ Override protected PaletteRoot getPaletteRoot ( ) { } @ Override protected void createActions ( ) { } @ Override public void doSave ( final IProgressMonitor monitor ) { } private boolean transformModel ( ) { URI sourceURI = cdResource . getURI ( ) ; String file = sourceURI . toFileString ( ) ; file = file . substring ( 0 , file . lastIndexOf ( "//" ) ) ; String name = sourceURI . lastSegment ( ) ; name = name . substring ( 0 , name . lastIndexOf ( "." ) ) ; name += ".crom" ; <START_BUG> file += name ; <END_BUG> URI targetURI = URI . createFileURI ( file ) ; Resource res = new org . eclipse . emf . ecore . xmi . impl . XMIResourceImpl ( targetURI ) ; TransformationExecutor exe = new TransformationExecutor ( ) ; exe . setSourceModelFile ( cdResource ) ; exe . setTargetModelFile ( res ) ; try { exe . execute ( ) ; res . save ( Collections . EMPTY_MAP ) ; return true ; } catch ( Exception e ) { e . printStackTrace ( ) ; } return false ; } private boolean saveGraphicalResource ( ) { } @ Override public void init ( final IEditorSite site , final IEditorInput input ) throws PartInitException { } @ Override public void commandStackChanged ( EventObject event ) { } @ Override public Object getAdapter ( @ SuppressWarnings ( "rawtypes" ) Class type ) { } public void updateEditorType ( ) { } public class UnwrappingPropertySource implements IPropertySource { private final IPropertySource source ; public UnwrappingPropertySource ( final IPropertySource source ) { } @ Override public Object getEditableValue ( ) { } @ Override public IPropertyDescriptor [ ] getPropertyDescriptors ( ) { } @ Override public Object getPropertyValue ( final Object id ) { } @ Override public boolean isPropertySet ( final Object id ) { } @ Override public void resetPropertyValue ( final Object id ) { } @ Override public void setPropertyValue ( final Object id , final Object value ) { } } }

Fix:
file += "//" + name ;
Buggy code:
@ SuppressWarnings ( "rawtypes" ) public class DataFlowJob { final StageList stageList ; private Class < ? extends InputFormat > inputFormat ; private File file ; private File outFile ; private Class < ? extends OutputFormat > outputFormat ; protected final String jobId = UUID . randomUUID ( ) . toString ( ) ; public DataFlowJob ( ) { } public String getJobId ( ) { } private Class < ? extends InputFormat > getInputFormatClass ( ) { } private Class < ? extends OutputFormat > getOutputFormatClass ( ) { } public void setInputFormat ( Class < ? extends InputFormat > inf ) { } public void run ( ) throws IOException { ActorSystem actorSystem = ActorSystem . create ( ) ; Config conf = ConfigFactory . load ( "application" ) ; <START_BUG> ActorSelection actor = actorSystem . actorSelection ( conf . getString ( "job-manager" ) ) ; <END_BUG> actor . tell ( stageList , ActorRef . noSender ( ) ) ; System . out . println ( "Finished.." ) ; try { Thread . sleep ( 1000 ) ; } catch ( InterruptedException e ) { } } Queue < VertexList > queue = new ArrayDeque < > ( ) ; public void setRoot ( VertexList io ) { } private Stage getStage ( final AbstractVertex rootVertex , final VertexList vList , final Stage stage ) { } private boolean visited = false ; private Stage manageShuffle ( AbstractVertex rootVertex , VertexList vList , Stage stage ) { } private void createVertexListAndToQueue ( AbstractVertex rootVertex ) { } public void setInputPath ( String filePath ) { } public void setOutputPath ( String outPath ) { } public void setOutputFormat ( Class < ? extends OutputFormat > of ) { } }

Fix:
ActorSelection actor = actorSystem . actorSelection ( conf . getString ( "akka.actor.job-manager" ) ) ;
Buggy code:
public class JlinkTask extends MatchingTask { public void setOutfile ( File outfile ) { } public Path createMergefiles ( ) { } public void setMergefiles ( Path mergefiles ) { } public Path createAddfiles ( ) { } public void setAddfiles ( Path addfiles ) { } public void setCompress ( boolean compress ) { } public void execute ( ) throws BuildException { if ( ( outfile ) == null ) { throw new BuildException ( ( "outfile<seq2seq4repair_space>attribute<seq2seq4repair_space>is<seq2seq4repair_space>required!<seq2seq4repair_space>" + "Please<seq2seq4repair_space>set." ) ) ; } if ( ( ! ( haveAddFiles ( ) ) ) && ( ! ( haveMergeFiles ( ) ) ) ) { throw new BuildException ( ( "addfiles<seq2seq4repair_space>or<seq2seq4repair_space>mergefiles<seq2seq4repair_space>required!<seq2seq4repair_space>" + "Please<seq2seq4repair_space>set." ) ) ; } log ( ( "linking:<seq2seq4repair_space>" + ( outfile . getPath ( ) ) ) ) ; log ( ( "compression:<seq2seq4repair_space>" + ( compress ) ) , MSG_VERBOSE ) ; jlink linker = new jlink ( ) ; linker . setOutfile ( outfile . getPath ( ) ) ; linker . setCompression ( compress ) ; if ( haveMergeFiles ( ) ) { log ( ( "merge<seq2seq4repair_space>files:<seq2seq4repair_space>" + ( mergefiles . toString ( ) ) ) , MSG_VERBOSE ) ; linker . addMergeFiles ( mergefiles . list ( ) ) ; } if ( haveAddFiles ( ) ) { log ( ( "add<seq2seq4repair_space>files:<seq2seq4repair_space>" + ( addfiles . toString ( ) ) ) , MSG_VERBOSE ) ; linker . addAddFiles ( addfiles . list ( ) ) ; } try { linker . link ( ) ; } catch ( Exception ex ) { <START_BUG> throw new BuildException ( ex , location ) ; <END_BUG> } } private boolean haveAddFiles ( ) { } private boolean haveMergeFiles ( ) { } private boolean haveEntries ( Path p ) { } private File outfile = null ; private Path mergefiles = null ; private Path addfiles = null ; private boolean compress = false ; private String ps = System . getProperty ( "path.separator" ) ; }

Fix:
throw new BuildException ( ex , getLocation ( ) ) ;
Buggy code:
public class CodeSnippetReturnStatement extends ReturnStatement implements InvocationSite , EvaluationConstants { MethodBinding setResultMethod ; public CodeSnippetReturnStatement ( Expression expr , int s , int e ) { } public FlowInfo analyseCode ( BlockScope currentScope , FlowContext flowContext , FlowInfo flowInfo ) { } public void generateReturnBytecode ( CodeStream codeStream ) { } public void generateStoreSaveValueIfNecessary ( CodeStream codeStream ) { codeStream . aload_0 ( ) ; if ( ( ( this . expression ) == null ) || ( ( this . expression . resolvedType ) == ( TypeBinding . VOID ) ) ) { codeStream . aconst_null ( ) ; codeStream . generateClassLiteralAccessForType ( TypeBinding . VOID , null ) ; } else { int valueTypeID = this . expression . resolvedType . id ; if ( ( valueTypeID == ( TypeIds . T_long ) ) || ( valueTypeID == ( TypeIds . T_double ) ) ) { codeStream . dup_x2 ( ) ; codeStream . pop ( ) ; } else { codeStream . swap ( ) ; } if ( ( this . expression . resolvedType . isBaseType ( ) ) && ( ( this . expression . resolvedType ) != ( TypeBinding . NULL ) ) ) { <START_BUG> ( ( CodeSnippetCodeStream ) ( codeStream ) ) . generateObjectWrapperForType ( this . expression . resolvedType ) ; <END_BUG> } codeStream . generateClassLiteralAccessForType ( this . expression . resolvedType , null ) ; } codeStream . invokevirtual ( this . setResultMethod ) ; } public TypeBinding [ ] genericTypeArguments ( ) { } public boolean isSuperAccess ( ) { } public boolean isTypeAccess ( ) { } public boolean needValue ( ) { } public void prepareSaveValueLocation ( TryStatement targetTryStatement ) { } public void resolve ( BlockScope scope ) { } public void setActualReceiverType ( ReferenceBinding receiverType ) { } public void setDepth ( int depth ) { } public void setFieldIndex ( int depth ) { } }

Fix:
codeStream . generateBoxingConversion ( this . expression . resolvedType . id ) ;
Buggy code:
public abstract class AbstractHeaderRenderStrategy implements IHeaderRenderStrategy { private List < IHeaderContributor > renderHeadListeners ; public static IHeaderRenderStrategy get ( ) { } public AbstractHeaderRenderStrategy ( ) { } public void renderHeader ( final HtmlHeaderContainer headerContainer , final Component rootComponent ) { } protected void renderRootComponent ( final HtmlHeaderContainer headerContainer , final Component rootComponent ) { } protected abstract void renderChildHeaders ( final HtmlHeaderContainer headerContainer , final Component rootComponent ) { } protected final void renderApplicationLevelHeaders ( final HtmlHeaderContainer headerContainer ) { Args . notNull ( headerContainer , "headerContainer" ) ; if ( ( renderHeadListeners ) != null ) { for ( IHeaderContributor listener : renderHeadListeners ) { <START_BUG> listener . renderHead ( headerContainer . getHeaderResponse ( ) ) ; <END_BUG> } } } public final void addListener ( final IHeaderContributor contributor ) { } }

Fix:
listener . renderHead ( headerContainer , headerContainer . getHeaderResponse ( ) ) ;
Buggy code:
public class DividerDrawable extends Drawable implements Animatable { private boolean mRunning = false ; private long mStartTime ; private float mAnimProgress ; private int mAnimDuration ; private Paint mPaint ; private ColorStateList mColorStateList ; private int mHeight ; private int mPrevColor ; private int mCurColor ; private boolean mEnable = true ; private PathEffect mPathEffect ; private Path mPath ; private boolean mInEditMode = false ; private boolean mAnimEnable = true ; public DividerDrawable ( int height , ColorStateList colorStateList , int animDuration ) { } public void setInEditMode ( boolean b ) { } public void setAnimEnable ( boolean b ) { } public void setColor ( ColorStateList colorStateList ) { } private PathEffect getPathEffect ( ) { } @ Override public void draw ( Canvas canvas ) { } @ Override public void setAlpha ( int alpha ) { } @ Override public void setColorFilter ( ColorFilter cf ) { } @ Override public int getOpacity ( ) { } @ Override public boolean isStateful ( ) { } @ Override protected boolean onStateChange ( int [ ] state ) { mEnable = ViewUtil . hasState ( state , state_enabled ) ; int color = mColorStateList . getColorForState ( state , mCurColor ) ; if ( ( mCurColor ) != color ) { <START_BUG> if ( ( ! ( mInEditMode ) ) && ( mAnimEnable ) ) { <END_BUG> mPrevColor = ( isRunning ( ) ) ? mPrevColor : mCurColor ; mCurColor = color ; start ( ) ; } else { mPrevColor = color ; mCurColor = color ; } return true ; } else if ( ! ( isRunning ( ) ) ) mPrevColor = color ; return false ; } private void resetAnimation ( ) { } @ Override public void start ( ) { } @ Override public void stop ( ) { } @ Override public boolean isRunning ( ) { } @ Override public void scheduleSelf ( Runnable what , long when ) { } private final Runnable mUpdater = new Runnable ( ) { @ Override public void run ( ) { } } ; private void update ( ) { } }

Fix:
if ( ( ( ! ( mInEditMode ) ) && ( mAnimEnable ) ) && ( mEnable ) ) {
Buggy code:
public class StaticImageResource extends ImageResource { private static Map imageResourceMap = new HashMap ( ) ; private transient IResourceStream resource ; final String absolutePath ; final Locale locale ; final String style ; public static StaticImageResource get ( final Package basePackage , final String path , final Locale locale , final String style ) { } private StaticImageResource ( final Package basePackage , final String path , final Locale locale , final String style ) { } public IResourceStream getResourceStream ( ) { if ( ( resource ) == null ) { <START_BUG> this . resource = RequestCycle . get ( ) . getApplication ( ) . getResourceLocator ( ) . locate ( absolutePath , style , locale , null ) ; <END_BUG> if ( ( this . resource ) == null ) { throw new WicketRuntimeException ( ( ( ( ( ( ( "Unable<seq2seq4repair_space>to<seq2seq4repair_space>find<seq2seq4repair_space>static<seq2seq4repair_space>image<seq2seq4repair_space>resource<seq2seq4repair_space>[path<seq2seq4repair_space>=<seq2seq4repair_space>" + ( absolutePath ) ) + ",<seq2seq4repair_space>style<seq2seq4repair_space>=<seq2seq4repair_space>" ) + ( style ) ) + ",<seq2seq4repair_space>locale<seq2seq4repair_space>=<seq2seq4repair_space>" ) + ( locale ) ) + "]" ) ) ; } } return resource ; } }

Fix:
this . resource = RequestCycle . get ( ) . getApplication ( ) . getResourceStreamLocator ( ) . locate ( absolutePath , style , locale , null ) ;
Buggy code:
public class UtfPropertiesFilePropertiesLoader implements IPropertiesLoader { private final String fileExtension ; private final String encoding ; private Method load ; public UtfPropertiesFilePropertiesLoader ( final String fileExtension , final String encoding ) { } public final String getFileExtension ( ) { } public Properties loadJavaProperties ( final InputStream in ) throws IOException { if ( ( load ) == null ) { return null ; } Properties properties = new Properties ( ) ; Reader reader = new InputStreamReader ( in , encoding ) ; try { <START_BUG> load . invoke ( properties , new Object [ ] { reader } ) ; <END_BUG> } catch ( IllegalArgumentException ex ) { properties = null ; } catch ( IllegalAccessException ex ) { properties = null ; } catch ( InvocationTargetException ex ) { properties = null ; } return properties ; } public ValueMap loadWicketProperties ( InputStream inputStream ) { } }

Fix:
load . invoke ( properties , reader ) ;
Buggy code:
public class KHEApp extends Application { public LiveFeedManager liveFeedManager ; public EventsManager eventsManager ; public static RequestQueue queue ; public void onCreate ( ) { super . onCreate ( ) ; KHEApp . queue = Volley . newRequestQueue ( this ) ; <START_BUG> liveFeedManager = new LiveFeedManager ( ( ( Config . API_URL ) + "//messages" ) , 100000 , this ) ; <END_BUG> liveFeedManager . addListener ( new LiveFeedManager . NewMessagesListener ( ) { boolean first = true ; @ Override public void newMessagesAdded ( List < Message > newMessages , List < Message > allMessages ) { if ( ( ! ( LiveFeedFragment . mActive ) ) && ( ! ( first ) ) ) { for ( Message message : newMessages ) { message . notify ( getApplicationContext ( ) ) ; } } first = false ; } } ) ; liveFeedManager . start ( ) ; eventsManager = new EventsManager ( ( ( Config . API_URL ) + "//events" ) , 120000 ) ; eventsManager . start ( ) ; final Application self = this ; final ActivityManager activityManager = ( ( ActivityManager ) ( getSystemService ( ACTIVITY_SERVICE ) ) ) ; } }

Fix:
liveFeedManager = new LiveFeedManager ( ( ( Config . API_URL ) + "//messages" ) , 120000 , this ) ;