nus-yam/ex-repair huggingface dataset:
Buggy code:
public class PartitionedTransactionalSpoutExecutor implements ITransactionalSpout { IPartitionedTransactionalSpout _spout ; public PartitionedTransactionalSpoutExecutor ( IPartitionedTransactionalSpout spout ) { } class Coordinator implements ITransactionalSpout . Coordinator { private IPartitionedTransactionalSpout . Coordinator _coordinator ; public Coordinator ( Map conf , TopologyContext context ) { } @ Override public Object initializeTransaction ( BigInteger txid , Object prevMetadata ) { } @ Override public void close ( ) { } } class Emitter implements ITransactionalSpout . Emitter { private IPartitionedTransactionalSpout . Emitter _emitter ; private TransactionalState _state ; private Map < Integer , RotatingTransactionalState > _partitionStates = new HashMap < Integer , RotatingTransactionalState > ( ) ; private int _index ; private int _numTasks ; public Emitter ( Map conf , TopologyContext context ) { } @ Override public void emitBatch ( final TransactionAttempt tx , final Object coordinatorMeta , final TransactionalOutputCollector collector ) { } @ Override public void cleanupBefore ( BigInteger txid ) { for ( RotatingTransactionalState state : _partitionStates . values ( ) ) { <START_BUG> state . commit ( txid ) ; <END_BUG> } } @ Override public void close ( ) { } } @ Override public ITransactionalSpout . Coordinator getCoordinator ( Map conf , TopologyContext context ) { } @ Override public ITransactionalSpout . Emitter getEmitter ( Map conf , TopologyContext context ) { } @ Override public void declareOutputFields ( OutputFieldsDeclarer declarer ) { } @ Override public Map < String , Object > getComponentConfiguration ( ) { } }

Fix:
state . cleanupBefore ( txid ) ;
Buggy code:
public class GuiRifleTable extends GuiContainer { private TileEntityRifleTable tileEntity ; private ResourceLocation empty = new ResourceLocation ( RorysMod . MODID , "textures//gui//table-empty.png" ) ; private ResourceLocation table = new ResourceLocation ( RorysMod . MODID , "textures//gui//table.png" ) ; private GuiSlider colorR ; private GuiSlider colorG ; private GuiSlider colorB ; public GuiRifleTable ( InventoryPlayer inventoryPlayer , TileEntityRifleTable tileEntity ) { } @ SuppressWarnings ( "unchecked" ) @ Override public void initGui ( ) { } @ Override protected void drawGuiContainerForegroundLayer ( int param1 , int param2 ) { fontRendererObj . drawString ( StatCollector . translateToLocal ( ( ( RILE_TABLE . getName ( ) ) + ".title" ) ) , 30 , 8 , 4210752 ) ; if ( slidersEnabled ( ) ) fontRendererObj . drawString ( StatCollector . translateToLocal ( ( ( RILE_TABLE . getName ( ) ) + ".color" ) ) , ( ( - ( colorR . width ) ) + 10 ) , 10 , ColorUtils . getIntFromColor ( getColorFromSlider ( ) ) ) ; if ( tileEntity . hasLaser ( ) ) { NBTLaser nbt = new NBTLaser ( tileEntity . getLaser ( ) ) ; <START_BUG> fontRendererObj . drawString ( ( ( ( "Weight:<seq2seq4repair_space>" + ( nbt . getWeight ( ) ) ) + "//" ) + ( NBTLaser . getMaxWeight ( ( ( ItemRifle ) ( tileEntity . getLaser ( ) . getItem ( ) ) ) . getTier ( tileEntity . getLaser ( ) ) ) ) ) , 8 , ( ( ( ySize ) - 96 ) + 2 ) , 4210752 ) ; <END_BUG> } } @ Override protected void drawGuiContainerBackgroundLayer ( float par1 , int par2 , int par3 ) { } public void drawScreen ( int par1 , int par2 , float par3 ) { } @ Override public void updateScreen ( ) { } public void actionPerformed ( GuiButton button ) { } public boolean slidersEnabled ( ) { } public void setSlidersEnabled ( boolean enable ) { } public Color getColorFromSlider ( ) { } public void setColorSlider ( Color color ) { } }

Fix:
fontRendererObj . drawString ( ( ( ( "Weight:<seq2seq4repair_space>" + ( nbt . getWeight ( ) ) ) + "//" ) + ( NBTLaser . getMaxWeight ( ( ( net . roryclaasen . rorysmod . item . ItemRifle ) ( tileEntity . getLaser ( ) . getItem ( ) ) ) . getTier ( ) ) ) ) , 8 , ( ( ( ySize ) - 96 ) + 2 ) , 4210752 ) ;
Buggy code:
public class XMLContactDocumentParser { private Document doc ; protected Element parentElement ; private Element root ; public XMLContactDocumentParser ( ) { } public XMLContactDocumentParser ( Document document ) throws SyntaxException { } public Element getRootElement ( ) { } protected Element getParentElement ( ) { } public void set ( String key , String value ) { } public void set ( String key , String prefix , String value ) { } public String get ( String key ) { } public String get ( String key , String prefix ) { } public Document getDocument ( ) { } public String getId ( ) { } public void setId ( String id ) { } public void addEmail ( IEmailModel model ) { } public Iterator getEmailIterator ( ) { } public Iterator getAddressIterator ( ) { Vector < AddressModel > v = new Vector < AddressModel > ( ) ; Element child = getParentElement ( ) . getChild ( ADR ) ; if ( child == null ) return v . iterator ( ) ; Iterator it = child . getChildren ( ) . iterator ( ) ; while ( it . hasNext ( ) ) { Element typeElement = ( ( Element ) ( it . next ( ) ) ) ; String poBox = "" ; Element e1 = typeElement . getChild ( ADR_POSTOFFICEBOX ) ; if ( e1 != null ) poBox = e1 . getText ( ) ; String street = "" ; Element e2 = typeElement . getChild ( ADR_STREETADDRESS ) ; if ( e2 != null ) street = e2 . getText ( ) ; String locality = "" ; Element e3 = typeElement . getChild ( ADR_LOCALITY ) ; if ( e3 != null ) locality = e3 . getText ( ) ; String postalCode = "" ; Element e4 = typeElement . getChild ( ADR_POSTALCODE ) ; if ( e4 != null ) postalCode = e4 . getText ( ) ; String region = "" ; Element e5 = typeElement . getChild ( ADR_REGION ) ; if ( e5 != null ) region = e5 . getText ( ) ; String country = "" ; Element e6 = typeElement . getChild ( ADR_COUNTRY ) ; if ( e6 != null ) country = e6 . getText ( ) ; String label = "" ; Element e7 = typeElement . getChild ( LABEL ) ; if ( e7 != null ) { if ( ( ( e7 . getContent ( ) ) != null ) && ( ( e7 . getContent ( ) . size ( ) ) > 0 ) ) { <START_BUG> CDATA cdata = ( ( CDATA ) ( typeElement . getContent ( ) . get ( 0 ) ) ) ; <END_BUG> if ( cdata != null ) label = cdata . getText ( ) ; } } v . add ( new AddressModel ( poBox , street , locality , postalCode , region , country , label , typeElement . getName ( ) ) ) ; } return v . iterator ( ) ; } public void addAddress ( AddressModel m ) { } public Iterator getPhoneIterator ( ) { } public void addPhone ( PhoneModel m ) { } public Iterator getInstantMessagingIterator ( ) { } public void addInstantMessaging ( InstantMessagingModel m ) { } }

Fix:
CDATA cdata = ( ( CDATA ) ( e7 . getContent ( ) . get ( 0 ) ) ) ;
Buggy code:
public final class OutputUtils { private OutputUtils ( ) { } public static Path [ ] listOutputFiles ( FileSystem fs , Path outpath ) throws IOException { Collection < Path > outpaths = Lists . newArrayList ( ) ; for ( FileStatus s : fs . listStatus ( outpath , PathFilters . logsCRCFilter ( ) ) ) { <START_BUG> if ( ! ( s . isDir ( ) ) ) { <END_BUG> outpaths . add ( s . getPath ( ) ) ; } } return outpaths . toArray ( new Path [ outpaths . size ( ) ] ) ; } public static void importEvaluations ( FileSystem fs , Configuration conf , Path outpath , Collection < Double > evaluations ) throws IOException { } }

Fix:
if ( ( ! ( s . isDir ( ) ) ) && ( ! ( s . getPath ( ) . getName ( ) . startsWith ( "_" ) ) ) ) {
Buggy code:
public class VcsContentAnnotationImpl implements VcsContentAnnotation { private final Project myProject ; private final VcsContentAnnotationSettings mySettings ; private final ContentAnnotationCache myContentAnnotationCache ; private static final Logger LOG = Logger . getInstance ( "#com.intellij.openapi.vcs.contentAnnotation.VcsContentAnnotationImpl" ) ; public static VcsContentAnnotation getInstance ( final Project project ) { } public VcsContentAnnotationImpl ( Project project , VcsContentAnnotationSettings settings , final ContentAnnotationCache contentAnnotationCache ) { } @ Nullable @ Override public VcsRevisionNumber fileRecentlyChanged ( VirtualFile vf ) { } private boolean isRecent ( Date date ) { } @ Override public boolean intervalRecentlyChanged ( VirtualFile file , TextRange lineInterval , VcsRevisionNumber currentRevisionNumber ) { final ProjectLevelVcsManager vcsManager = ProjectLevelVcsManager . getInstance ( myProject ) ; final AbstractVcs vcs = vcsManager . getVcsFor ( file ) ; <START_BUG> if ( vcs == null ) <END_BUG> return false ; if ( currentRevisionNumber == null ) { currentRevisionNumber = vcs . getDiffProvider ( ) . getCurrentRevision ( file ) ; assert currentRevisionNumber != null ; } final ThreeState isRecent = myContentAnnotationCache . isRecent ( file , vcs . getKeyInstanceMethod ( ) , currentRevisionNumber , lineInterval , ( ( System . currentTimeMillis ( ) ) - ( mySettings . getLimit ( ) ) ) ) ; if ( ! ( UNSURE . equals ( isRecent ) ) ) return YES . equals ( isRecent ) ; final FileAnnotation fileAnnotation ; try { fileAnnotation = vcs . getCachingAnnotationProvider ( ) . annotate ( file ) ; } catch ( VcsException e ) { VcsContentAnnotationImpl . LOG . info ( e ) ; return false ; } myContentAnnotationCache . register ( file , vcs . getKeyInstanceMethod ( ) , currentRevisionNumber , fileAnnotation ) ; for ( int i = lineInterval . getStartOffset ( ) ; i <= ( lineInterval . getEndOffset ( ) ) ; i ++ ) { Date lineDate = fileAnnotation . getLineDate ( i ) ; if ( ( lineDate != null ) && ( isRecent ( lineDate ) ) ) return true ; } return false ; } }

Fix:
if ( ( vcs == null ) || ( ( vcs . getDiffProvider ( ) ) == null ) )
Buggy code:
public final class FontData { public String fontFamily ; public int style ; public int weight ; public int stretch ; public int height ; String lang ; String country ; String variant ; public FontData ( ) { } public FontData ( String string ) { } public FontData ( String name , int height , int style ) { } public boolean equals ( Object object ) { } public int getHeight ( ) { } public String getLocale ( ) { } public String getName ( ) { } public int getStyle ( ) { } public int hashCode ( ) { } public void setHeight ( int height ) { } public void setLocale ( String locale ) { } public void setName ( String name ) { } public void setStyle ( int style ) { } public String toString ( ) { StringBuffer buffer = new StringBuffer ( ) ; buffer . append ( "1|" ) ; buffer . append ( getName ( ) ) ; buffer . append ( "|" ) ; buffer . append ( getHeight ( ) ) ; buffer . append ( "|" ) ; buffer . append ( getStyle ( ) ) ; buffer . append ( "|" ) ; buffer . append ( "WPF|1|" ) ; buffer . append ( fontFamily ) ; buffer . append ( "|" ) ; int converter = OS . TypeDescriptor_GetConverter ( FontStyles_Normal ) ; int str = OS . TypeConverter_ConvertToString ( converter , ( ( style ) != 0 ? style : OS . FontStyles_Normal ) ) ; int charArray = OS . String_ToCharArray ( str ) ; char [ ] chars = new char [ OS . String_Length ( str ) ] ; <START_BUG> OS . memmove ( chars , charArray , ( ( chars . length ) * 2 ) ) ; <END_BUG> OS . GCHandle_Free ( charArray ) ; OS . GCHandle_Free ( str ) ; OS . GCHandle_Free ( converter ) ; buffer . append ( chars ) ; buffer . append ( "|" ) ; buffer . append ( weight ) ; buffer . append ( "|" ) ; buffer . append ( stretch ) ; return buffer . toString ( ) ; } public static FontData wpf_new ( String fontFamily , int style , int weight , int stretch , int height ) { } }

Fix:
OS . memcpy ( chars , charArray , ( ( chars . length ) * 2 ) ) ;
Buggy code:
public final class GenericBooleanPrefDataModel implements Serializable , DataModel { private final long [ ] userIDs ; private final FastByIDMap < FastIDSet > preferenceFromUsers ; private final long [ ] itemIDs ; private final FastByIDMap < FastIDSet > preferenceForItems ; @ SuppressWarnings ( "unchecked" ) public GenericBooleanPrefDataModel ( FastByIDMap < FastIDSet > userData ) { } public GenericBooleanPrefDataModel ( DataModel dataModel ) throws TasteException { } private static FastByIDMap < FastIDSet > toDataMap ( DataModel dataModel ) throws TasteException { } public static FastByIDMap < FastIDSet > toDataMap ( FastByIDMap < PreferenceArray > data ) { } @ Override public LongPrimitiveArrayIterator getUserIDs ( ) { } @ Override public PreferenceArray getPreferencesFromUser ( long userID ) throws NoSuchUserException { } @ Override public FastIDSet getItemIDsFromUser ( long userID ) throws TasteException { } @ Override public LongPrimitiveArrayIterator getItemIDs ( ) { } @ Override public PreferenceArray getPreferencesForItem ( long itemID ) throws NoSuchItemException { } @ Override public Float getPreferenceValue ( long userID , long itemID ) throws NoSuchUserException { } @ Override public int getNumItems ( ) { } @ Override public int getNumUsers ( ) { } @ Override public int getNumUsersWithPreferenceFor ( long ... itemIDs ) throws NoSuchItemException { } @ Override public void removePreference ( long userID , long itemID ) { } @ Override public void setPreference ( long userID , long itemID , float value ) { } @ Override public void refresh ( Collection < Refreshable > alreadyRefreshed ) { } @ Override public String toString ( ) { StringBuilder result = new StringBuilder ( 200 ) ; <START_BUG> result . append ( "GenericDataModel[users:" ) ; <END_BUG> for ( int i = 0 ; i < ( Math . min ( 3 , userIDs . length ) ) ; i ++ ) { if ( i > 0 ) { result . append ( ',' ) ; } result . append ( userIDs [ i ] ) ; } if ( ( result . length ( ) ) > 3 ) { result . append ( "..." ) ; } result . append ( ']' ) ; return result . toString ( ) ; } }

Fix:
result . append ( "GenericBooleanPrefDataModel[users:" ) ;
Buggy code:
abstract class RangeTab extends Tab { Button horizontalButton ; Button verticalButton ; boolean orientationButtons = true ; Spinner minimumSpinner ; Spinner selectionSpinner ; Spinner maximumSpinner ; RangeTab ( ControlExample instance ) { } void createControlWidgets ( ) { } void createMaximumGroup ( ) { Group maximumGroup = new Group ( controlGroup , SWT . NONE ) ; maximumGroup . setLayout ( new GridLayout ( ) ) ; maximumGroup . setText ( ControlExample . getResourceString ( "Maximum" ) ) ; maximumGroup . setLayoutData ( new GridData ( GridData . FILL_HORIZONTAL ) ) ; maximumSpinner = new Spinner ( maximumGroup , SWT . BORDER ) ; <START_BUG> maximumSpinner . setMaximum ( 100 ) ; <END_BUG> maximumSpinner . setSelection ( 100 ) ; maximumSpinner . setPageIncrement ( 10 ) ; maximumSpinner . setIncrement ( 5 ) ; maximumSpinner . setLayoutData ( new GridData ( SWT . FILL , SWT . CENTER , true , false ) ) ; maximumSpinner . addSelectionListener ( new SelectionAdapter ( ) { public void widgetSelected ( SelectionEvent event ) { setWidgetMaximum ( ) ; } } ) ; } void createMinimumGroup ( ) { } void createSelectionGroup ( ) { } void createStyleGroup ( ) { } void setExampleWidgetState ( ) { } abstract void setWidgetMaximum ( ) { } abstract void setWidgetMinimum ( ) { } abstract void setWidgetSelection ( ) { } }

Fix:
maximumSpinner . setMaximum ( 100000 ) ;
Buggy code:
public class RegisterFile implements Clockable { public Register [ ] regFile ; public Pin writeReg = new Pin ( ) ; public Pin readReg1 = new Pin ( ) ; public Pin readReg2 = new Pin ( ) ; public Pin writeData = new Pin ( ) ; public Pin regWrite = new Pin ( ) ; public Pin readData1 = new Pin ( ) ; public Pin readData2 = new Pin ( ) ; public RegisterFile ( ) { } public BinaryNum getVal ( int index ) { } public void setRegister ( int index , BinaryNum val ) { } public void clockEdge ( ) { if ( ( ( regWrite . getValue ( ) ) != null ) && ( regWrite . getValue ( ) . equals ( new BinaryNum ( "1" ) ) ) ) { setRegister ( writeReg . getValue ( ) . toLong ( ) . intValue ( ) , writeData . getValue ( ) ) ; writeReg . setValue ( new BinaryNum ( "0" ) ) ; } readData1 . setValue ( getVal ( readReg1 . getValue ( ) . toLong ( ) . intValue ( ) ) ) ; <START_BUG> readData1 . setValue ( getVal ( readReg2 . getValue ( ) . toLong ( ) . intValue ( ) ) ) ; <END_BUG> } }

Fix:
readData2 . setValue ( getVal ( readReg2 . getValue ( ) . toLong ( ) . intValue ( ) ) ) ;
Buggy code:
public class LineFolower implements Runnable { private static final int LINE_VALUE = 35 ; LightSensor light ; TrackSuspension track ; private boolean running ; public LineFolower ( SensorPort portOfLightSensor ) { } @ Override public void run ( ) { } public void halt ( ) { } private void searchTrack ( ) { } private boolean isLine ( ) { <START_BUG> return ( light . getLightValue ( ) ) < ( LineFolower . LINE_VALUE ) ; <END_BUG> } private void sleep ( int millis ) { } }

Fix:
return ( light . getLightValue ( ) ) >= ( LineFolower . LINE_VALUE ) ;
Buggy code:
class RemoveFromIndex extends IndexRequest { String resourceName ; public RemoveFromIndex ( String resourceName , IPath containerPath , IndexManager manager ) { } public boolean execute ( IProgressMonitor progressMonitor ) { if ( ( this . isCancelled ) || ( ( progressMonitor != null ) && ( progressMonitor . isCanceled ( ) ) ) ) return true ; Index index = manager . getIndex ( this . containerPath , true , false ) ; if ( index == null ) return true ; <START_BUG> ReadWriteMonitor monitor = manager . getMonitorFor ( index ) ; <END_BUG> if ( monitor == null ) return true ; try { monitor . enterWrite ( ) ; index . remove ( resourceName ) ; } finally { monitor . exitWrite ( ) ; } return true ; } public String toString ( ) { } }

Fix:
ReadWriteMonitor monitor = index . monitor ;
Buggy code:
public class TestChess { @ Test public void testCanMoveTo ( ) { <START_BUG> Piece piece = new Piece ( "P" , 'a' , 2 ) ; <END_BUG> assertEquals ( true , piece . canMoveTo ( 'a' , 3 , false ) ) ; assertEquals ( false , piece . canMoveTo ( 'e' , 4 , false ) ) ; } @ Test public void testMove ( ) { } @ Test public void testMov ( ) { } @ Test public void testPrint ( ) { } }

Fix:
Piece piece = new Piece ( "P" , 'a' , 2 , true ) ;
Buggy code:
public final class BatchLayer < K , M , U > extends AbstractSparkLayer < K , M > { private static final Logger log = LoggerFactory . getLogger ( BatchLayer . class ) ; private static final int NO_MAX_DATA_AGE = - 1 ; private final Class < ? extends Writable > keyWritableClass ; private final Class < ? extends Writable > messageWritableClass ; private final String updateClassName ; private final String dataDirString ; private final String modelDirString ; private final int maxDataAgeHours ; private JavaStreamingContext streamingContext ; public BatchLayer ( Config config ) { } @ Override protected String getConfigGroup ( ) { } @ Override protected String getLayerName ( ) { } public synchronized void start ( ) { String id = BatchLayer . getID ( ) ; if ( id != null ) { BatchLayer . log . info ( "Starting<seq2seq4repair_space>Batch<seq2seq4repair_space>Layer<seq2seq4repair_space>{}" , id ) ; } streamingContext = BatchLayer . buildStreamingContext ( ) ; BatchLayer . log . info ( "Creating<seq2seq4repair_space>message<seq2seq4repair_space>stream<seq2seq4repair_space>from<seq2seq4repair_space>topic" ) ; JavaInputDStream < MessageAndMetadata < K , M > > dStream = buildInputDStream ( streamingContext ) ; JavaPairDStream < K , M > pairDStream = dStream . mapToPair ( ( km ) -> new Tuple2 < > ( km . key ( ) , km . message ( ) ) ) ; Class < K > keyClass = BatchLayer . getKeyClass ( ) ; Class < M > messageClass = BatchLayer . getMessageClass ( ) ; pairDStream . foreachRDD ( new BatchUpdateFunction ( BatchLayer . getConfig ( ) , keyClass , messageClass , keyWritableClass , messageWritableClass , dataDirString , modelDirString , loadUpdateInstance ( ) , streamingContext ) ) ; pairDStream . foreachRDD ( new SaveToHDFSFunction ( ( ( dataDirString ) + "//oryx" ) , "data" , keyClass , messageClass , keyWritableClass , messageWritableClass , streamingContext . sparkContext ( ) . hadoopConfiguration ( ) ) ) ; dStream . foreachRDD ( new com . cloudera . oryx . lambda . UpdateOffsetsFn ( BatchLayer . getGroupID ( ) , BatchLayer . getInputTopicLockMaster ( ) ) ) ; if ( ( maxDataAgeHours ) != ( BatchLayer . NO_MAX_DATA_AGE ) ) { <START_BUG> dStream . foreachRDD ( new com . cloudera . oryx . lambda . DeleteOldDataFn ( streamingContext . sc ( ) . hadoopConfiguration ( ) , dataDirString , maxDataAgeHours ) ) ; <END_BUG> } BatchLayer . log . info ( "Starting<seq2seq4repair_space>Spark<seq2seq4repair_space>Streaming" ) ; streamingContext . start ( ) ; } public void await ( ) { } @ Override public synchronized void close ( ) { } @ SuppressWarnings ( "unchecked" ) private BatchLayerUpdate < K , M , U > loadUpdateInstance ( ) { } }

Fix:
dStream . foreachRDD ( new com . cloudera . oryx . lambda . DeleteOldDataFn ( streamingContext . sparkContext ( ) . hadoopConfiguration ( ) , dataDirString , maxDataAgeHours ) ) ;
Buggy code:
public class IfPointcut extends Pointcut { public ResolvedMember testMethod ; public int extraParameterFlags ; public Pointcut residueSource ; int baseArgsCount ; public IfPointcut ( ResolvedMember testMethod , int extraParameterFlags ) { } <START_BUG> public FuzzyBoolean fastMatch ( ResolvedTypeX type ) { <END_BUG> return FuzzyBoolean . MAYBE ; } public FuzzyBoolean match ( Shadow shadow ) { } public void write ( DataOutputStream s ) throws IOException { } public static Pointcut read ( DataInputStream s , ISourceContext context ) throws IOException { } public void resolveBindings ( IScope scope , Bindings bindings ) { } public boolean equals ( Object other ) { } public int hashCode ( ) { } public String toString ( ) { } private boolean findingResidue = false ; public Test findResidue ( Shadow shadow , ExposedState state ) { } public Pointcut concretize ( ResolvedTypeX inAspect , IntMap bindings ) { } private IfPointcut partiallyConcretized = null ; public Pointcut concretize1 ( ResolvedTypeX inAspect , IntMap bindings ) { } }

Fix:
public FuzzyBoolean fastMatch ( FastMatchInfo type ) {
Buggy code:
public class TipOfTheDay extends EnhancedDialog { public TipOfTheDay ( View view ) { } public void ok ( ) { } public void cancel ( ) { } class TipPanel extends JPanel { TipPanel ( ) { } private JCheckBox showNextTime ; private JButton nextTip ; private JButton close ; private JEditorPane tipText ; private int currentTip = - 1 ; private void nextTip ( ) { <START_BUG> int count = Integer . parseInt ( jEdit . getProperty ( "tip.count" ) ) ; <END_BUG> int tipToShow = currentTip ; while ( tipToShow == ( currentTip ) ) tipToShow = ( Math . abs ( new Random ( ) . nextInt ( ) ) ) % count ; try { tipText . setPage ( TipOfTheDay . class . getResource ( ( ( "//org//gjt//sp//jedit//tips//tip" + tipToShow ) + ".html" ) ) ) ; } catch ( Exception e ) { Log . log ( Log . ERROR , this , e ) ; } } class ActionHandler implements ActionListener { public void actionPerformed ( ActionEvent evt ) { } } } }

Fix:
int count = jEdit . getIntegerProperty ( "tip.count" , 0 ) ;
Buggy code:
public class JSFMetadataProcessor implements DeploymentUnitProcessor { public static final String JAVAX_FACES_WEBAPP_FACES_SERVLET = "javax.faces.webapp.FacesServlet" ; @ Override public void deploy ( DeploymentPhaseContext phaseContext ) throws DeploymentUnitProcessingException { DeploymentUnit deploymentUnit = phaseContext . getDeploymentUnit ( ) ; WarMetaData metaData = deploymentUnit . getAttachment ( ATTACHMENT_KEY ) ; if ( ( ( metaData == null ) || ( ( metaData . getMergedJBossWebMetaData ( ) ) == null ) ) || ( ( metaData . getMergedJBossWebMetaData ( ) . getServlets ( ) ) == null ) ) { return ; } JBossServletMetaData jsf = null ; for ( JBossServletMetaData servlet : metaData . getMergedJBossWebMetaData ( ) . getServlets ( ) ) { <START_BUG> if ( servlet . getServletClass ( ) . equals ( JSFMetadataProcessor . JAVAX_FACES_WEBAPP_FACES_SERVLET ) ) { <END_BUG> jsf = servlet ; } } if ( jsf != null ) { if ( ( jsf . getMultipartConfig ( ) ) == null ) { jsf . setMultipartConfig ( new MultipartConfigMetaData ( ) ) ; } } } @ Override public void undeploy ( DeploymentUnit context ) { } }

Fix:
if ( JSFMetadataProcessor . JAVAX_FACES_WEBAPP_FACES_SERVLET . equals ( servlet . getServletClass ( ) ) ) {
Buggy code:
public class URLCodec implements BinaryDecoder , BinaryEncoder , StringDecoder , StringEncoder { static final int RADIX = 16 ; protected String charset ; protected static byte ESCAPE_CHAR = '%' ; protected static final BitSet WWW_FORM_URL = new BitSet ( 256 ) ; public URLCodec ( ) { } public URLCodec ( String charset ) { } public static final byte [ ] encodeUrl ( BitSet urlsafe , byte [ ] bytes ) { } public static final byte [ ] decodeUrl ( byte [ ] bytes ) throws DecoderException { } public byte [ ] encode ( byte [ ] bytes ) { } public byte [ ] decode ( byte [ ] bytes ) throws DecoderException { } public String encode ( String pString , String charset ) throws UnsupportedEncodingException { } public String encode ( String pString ) throws EncoderException { if ( pString == null ) { return null ; } try { return encode ( pString , getDefaultCharset ( ) ) ; } catch ( UnsupportedEncodingException e ) { <START_BUG> throw new EncoderException ( e . getMessage ( ) ) ; <END_BUG> } } public String decode ( String pString , String charset ) throws UnsupportedEncodingException , DecoderException { } public String decode ( String pString ) throws DecoderException { } public Object encode ( Object pObject ) throws EncoderException { } public Object decode ( Object pObject ) throws DecoderException { } public String getEncoding ( ) { } public String getDefaultCharset ( ) { } }

Fix:
throw new EncoderException ( e . getMessage ( ) , e ) ;
Buggy code:
public class EjbDependencyDeploymentUnitProcessor implements DeploymentUnitProcessor { private static ModuleIdentifier JAVAEE_MODULE_IDENTIFIER = ModuleIdentifier . create ( "javaee.api" ) ; @ Override public void deploy ( DeploymentPhaseContext phaseContext ) throws DeploymentUnitProcessingException { DeploymentUnit deploymentUnit = phaseContext . getDeploymentUnit ( ) ; if ( ! ( EjbDeploymentMarker . isEjbDeployment ( deploymentUnit ) ) ) { return ; } <START_BUG> final ModuleLoader moduleLoader = Module . getSystemModuleLoader ( ) ; <END_BUG> final ModuleSpecification moduleSpecification = deploymentUnit . getAttachment ( MODULE_SPECIFICATION ) ; moduleSpecification . addDependency ( new org . jboss . as . server . deployment . module . ModuleDependency ( moduleLoader , EjbDependencyDeploymentUnitProcessor . JAVAEE_MODULE_IDENTIFIER , false , false , false ) ) ; } @ Override public void undeploy ( DeploymentUnit context ) { } }

Fix:
final ModuleLoader moduleLoader = Module . getBootModuleLoader ( ) ;
Buggy code:
@ SuppressWarnings ( "restriction" ) public class Theories extends JUnit4ClassRunner { public Theories ( Class < ? > klass ) throws InitializationError { } @ Override protected void collectInitializationErrors ( List < Throwable > errors ) { } @ Override protected List < FrameworkMethod > computeTestMethods ( ) { } @ Override public Statement childBlock ( final FrameworkMethod method ) { } public class TheoryAnchor extends Statement { private int successes = 0 ; private FrameworkMethod fTestMethod ; private List < AssumptionViolatedException > fInvalidParameters = new ArrayList < AssumptionViolatedException > ( ) ; public TheoryAnchor ( FrameworkMethod method ) { } @ Override public void evaluate ( ) throws Throwable { <START_BUG> runWithAssignment ( Assignments . allUnassigned ( fTestMethod . getMethod ( ) , fTestClass . getJavaClass ( ) ) ) ; <END_BUG> if ( ( successes ) == 0 ) Assume . fail ( ( "Never<seq2seq4repair_space>found<seq2seq4repair_space>parameters<seq2seq4repair_space>that<seq2seq4repair_space>satisfied<seq2seq4repair_space>method.<seq2seq4repair_space>Violated<seq2seq4repair_space>assumptions:<seq2seq4repair_space>" + ( fInvalidParameters ) ) ) ; } protected void runWithAssignment ( Assignments parameterAssignment ) throws Throwable { } protected void runWithIncompleteAssignment ( Assignments incomplete ) throws IllegalAccessException , InstantiationException , Throwable { } protected void runWithCompleteAssignment ( final Assignments complete ) throws IllegalAccessException , InstantiationException , NoSuchMethodException , Throwable , InvocationTargetException { } private Statement methodCompletesWithParameters ( final FrameworkMethod method , final Assignments complete , final Object freshInstance ) { } private void invokeWithActualParameters ( FrameworkMethod method , Object target , Assignments complete ) throws Throwable { } protected void handleAssumptionViolation ( AssumptionViolatedException e ) { } protected void reportParameterizedError ( Throwable e , Object ... params ) throws Throwable { } private boolean nullsOk ( ) { } protected void handleDataPointSuccess ( ) { } } }

Fix:
runWithAssignment ( Assignments . allUnassigned ( fTestMethod . getMethod ( ) , getTestClass ( ) . getJavaClass ( ) ) ) ;
Buggy code:
public class MainActivity extends ActionBarActivity { @ Override protected void onCreate ( Bundle savedInstanceState ) { } @ Override public boolean onCreateOptionsMenu ( Menu menu ) { } public static class MainFragment extends Fragment { private View rootView ; private Activity activity ; private GuardianListAdapter adapter ; private ArrayList guardians ; private ProgressBar spinner ; public MainFragment ( ) { } @ Override public View onCreateView ( LayoutInflater inflater , ViewGroup container , Bundle savedInstanceState ) { } private void initialiseGuardList ( ) { } private void resetGuardList ( ) { } private class AsyncTaskParseJson extends AsyncTask < String , String , String > { final String TAG = "AsyncTaskParseJson.java" ; String membershipId = null ; @ Override protected void onPreExecute ( ) { } @ Override protected String doInBackground ( String ... arg0 ) { String psnId = arg0 [ 0 ] ; if ( ( psnId != null ) && ( ( psnId . length ( ) ) > 0 ) ) { Boolean isSand = psnId . trim ( ) . equalsIgnoreCase ( "sandman_br" ) ; if ( ! ( isSand . booleanValue ( ) ) ) { <START_BUG> membershipId = getMembershipId ( psnId . trim ( ) ) ; <END_BUG> } if ( ( membershipId ) != null ) { getGuardians ( membershipId ) ; } } return null ; } private String getMembershipId ( String id ) { } private void getGuardians ( String membershipId ) { } @ Override protected void onPostExecute ( String strFromDoInBg ) { } } } }

Fix:
membershipId = getMembershipId ( psnId . replaceAll ( "\\s+" , "" ) ) ;
Buggy code:
public abstract class Command { public static final int UNDOABLE_OPERATION = 0 ; public static final int NORMAL_OPERATION = 1 ; public static final int NO_UNDO_OPERATION = 2 ; public static final int DAEMON_PRIORITY = - 10 ; public static final int NORMAL_PRIORITY = 0 ; public static final int REALTIME_PRIORITY = 10 ; public static final int DEFINETLY_NEXT_OPERATION_PRIORITY = 20 ; public static final int FIRST_EXECUTION = 0 ; public static final int UNDO = 1 ; public static final int REDO = 2 ; protected int priority ; protected int commandType ; protected boolean synchronize ; protected int timeStamp ; protected Lock [ ] folderLocks ; private DefaultCommandReference [ ] references ; private DefaultCommandReference [ ] undoReferences ; protected FrameController frameController ; public Command ( DefaultCommandReference [ ] references ) { } public Command ( FrameController frameController , DefaultCommandReference [ ] references ) { } public void process ( Worker worker , int operationMode ) throws Exception { } public void updateGUI ( ) throws Exception { } public abstract void execute ( Worker worker ) throws Exception { } public void undo ( Worker worker ) throws Exception { } public void redo ( Worker worker ) throws Exception { } public boolean canBeProcessed ( int operationMode ) { DefaultCommandReference [ ] references = getReferences ( operationMode ) ; int size = Array . getLength ( references ) ; boolean success = true ; for ( int i = 0 ; ( i < size ) && success ; i ++ ) { <START_BUG> success &= references [ i ] . tryToGetLock ( ) ; <END_BUG> } if ( ! success ) { releaseAllFolderLocks ( operationMode ) ; } return success ; } public void releaseAllFolderLocks ( int operationMode ) { } public DefaultCommandReference [ ] getReferences ( int operationMode ) { } public int getCommandType ( ) { } public int getPriority ( ) { } public void incPriority ( ) { } public boolean isSynchronize ( ) { } public void setSynchronize ( boolean synchronize ) { } public void setPriority ( int priority ) { } public void setUndoReferences ( DefaultCommandReference [ ] undoReferences ) { } public int getTimeStamp ( ) { } public void setTimeStamp ( int timeStamp ) { } public DefaultCommandReference [ ] getReferences ( ) { } public DefaultCommandReference [ ] getUndoReferences ( ) { } public void finish ( ) throws Exception { } public FrameController getFrameController ( ) { } }

Fix:
success &= references [ i ] . tryToGetLock ( this ) ;
Buggy code:
public class AudioPlayerActivity extends AppCompatActivity implements EMPlaylistServiceCallback , EMProgressCallback { public static final String EXTRA_INDEX = "EXTRA_INDEX" ; public static final int PLAYLIST_ID = 4 ; private ProgressBar loadingBar ; private ImageView artworkView ; private TextView currentPositionView ; private TextView durationView ; private SeekBar seekBar ; private boolean shouldSetDuration ; private boolean userInteracting ; private ImageButton previousButton ; private ImageButton playPauseButton ; private ImageButton nextButton ; private PlaylistManager playlistManager ; private int selectedIndex = 0 ; private StringBuilder formatBuilder ; private Formatter formatter ; private Picasso picasso ; @ Override protected void onCreate ( Bundle savedInstanceState ) { } @ Override protected void onPause ( ) { } @ Override protected void onResume ( ) { } @ Override public boolean onPlaylistItemChanged ( EMPlaylistManager . PlaylistItem currentItem , EMPlaylistManager . MediaType mediaType , boolean hasNext , boolean hasPrevious ) { } @ Override public boolean onMediaStateChanged ( EMPlaylistService . MediaState mediaState ) { } @ Override public boolean onProgressUpdated ( EMMediaProgressEvent event ) { } private void updateCurrentPlaybackInformation ( ) { EMPlaylistItemChangedEvent itemChangedEvent = playlistManager . getCurrentItemChangedEvent ( ) ; if ( itemChangedEvent != null ) { <START_BUG> onPlaylistItemChanged ( itemChangedEvent . currentItem , itemChangedEvent . mediaType , itemChangedEvent . hasNext , itemChangedEvent . hasPrevious ) ; <END_BUG> } onMediaStateChanged ( playlistManager . getCurrentMediaState ( ) ) ; EMMediaProgressEvent progressEvent = playlistManager . getCurrentProgress ( ) ; if ( progressEvent != null ) { onProgressUpdated ( progressEvent ) ; } } private void retrieveExtras ( ) { } private void init ( ) { } private void doneLoading ( boolean isPlaying ) { } private void updatePlayPauseImage ( boolean isPlaying ) { } public void loadCompleted ( ) { } public void restartLoading ( ) { } private void setDuration ( long duration ) { } private boolean setupPlaylistManager ( ) { } private void retrieveViews ( ) { } private void setupListeners ( ) { } private void startPlayback ( boolean forceStart ) { } private String formatTime ( long time ) { } private class SeekBarChanged implements SeekBar . OnSeekBarChangeListener { private int seekPosition = - 1 ; @ Override public void onProgressChanged ( SeekBar seekBar , int progress , boolean fromUser ) { } @ Override public void onStartTrackingTouch ( SeekBar seekBar ) { } @ Override public void onStopTrackingTouch ( SeekBar seekBar ) { } } }

Fix:
onPlaylistItemChanged ( itemChangedEvent . getCurrentItem ( ) , itemChangedEvent . getMediaType ( ) , itemChangedEvent . hasNext ( ) , itemChangedEvent . hasPrevious ( ) ) ;
Buggy code:
public class AboutFragment extends Fragment implements View . OnClickListener { private ImageSwitcher mainPicture ; private int current ; private ArrayList < Integer > imageItems ; public AboutFragment ( ) { } @ Override public void onCreate ( Bundle savedInstanceState ) { } @ Override public View onCreateView ( LayoutInflater inflater , ViewGroup container , Bundle savedInstanceState ) { } @ Override public void onClick ( View v ) { int id = v . getId ( ) ; switch ( id ) { case id . left_button : previous ( ) ; break ; case id . right_button : next ( ) ; break ; case id . urlButton : String url = getString ( city_website ) ; if ( url != null ) { Intent intent = new Intent ( Intent . ACTION_VIEW ) ; intent . setData ( Uri . parse ( url ) ) ; if ( ( intent . resolveActivity ( getActivity ( ) . getPackageManager ( ) ) ) != null ) { startActivity ( intent ) ; } else Toast . makeText ( getActivity ( ) , no_browser_app , LENGTH_SHORT ) . show ( ) ; } break ; case id . phoneButton : String phone = getString ( phone_number ) ; if ( phone != null ) { Intent intent = new Intent ( Intent . ACTION_DIAL ) ; String uri = "tel:<seq2seq4repair_space>" + ( phone . trim ( ) ) ; intent . setData ( Uri . parse ( uri ) ) ; if ( ( intent . resolveActivity ( getActivity ( ) . getPackageManager ( ) ) ) != null ) { startActivity ( intent ) ; } else Toast . makeText ( getActivity ( ) , no_dial_app , LENGTH_SHORT ) . show ( ) ; } else Toast . makeText ( getActivity ( ) , no_phone_available , LENGTH_SHORT ) . show ( ) ; break ; case id . mailButton : String mail = getString ( info_mail ) ; if ( mail != null ) { Intent intent = new Intent ( Intent . ACTION_SEND ) ; intent . setData ( Uri . parse ( "mailto:" ) ) ; intent . setType ( "*//*" ) ; String [ ] addresses = new String [ 1 ] ; addresses [ 0 ] = mail ; intent . putExtra ( EXTRA_EMAIL , addresses ) ; if ( ( intent . resolveActivity ( getActivity ( ) . getPackageManager ( ) ) ) != null ) { startActivity ( intent ) ; } else Toast . makeText ( getActivity ( ) , no_mail_app , LENGTH_SHORT ) . show ( ) ; } break ; case id . fullscreenButton : Intent intent = new Intent ( getActivity ( ) , FullscreenActivity . class ) ; intent . putExtra ( FROM_GALLERY , true ) ; intent . putExtra ( LANDSCAPE_ORIENTATION , true ) ; intent . putExtra ( IMAGE , current ) ; startActivity ( intent ) ; break ; case id . main_image : intent = new Intent ( getActivity ( ) , FullscreenActivity . class ) ; intent . putExtra ( FROM_GALLERY , true ) ; intent . putExtra ( LANDSCAPE_ORIENTATION , true ) ; intent . putExtra ( IMAGE , current ) ; startActivity ( intent ) ; break ; case id . mapButton : <START_BUG> String uri = "geo:0,0?q=41.604774,<seq2seq4repair_space>13.084419?z=1" ; <END_BUG> intent = new Intent ( Intent . ACTION_VIEW ) ; intent . setData ( Uri . parse ( uri ) ) ; if ( ( intent . resolveActivity ( getActivity ( ) . getPackageManager ( ) ) ) != null ) { startActivity ( intent ) ; } else Toast . makeText ( getActivity ( ) , no_map_app , LENGTH_SHORT ) . show ( ) ; default : break ; } } private void next ( ) { } private void previous ( ) { } }

Fix:
String uri = "geo:0,0?q=41.604451,<seq2seq4repair_space>13.085299?z=1" ;
Buggy code:
public class MSVSSCHECKOUT extends MSVSS { private String m_LocalPath = null ; private boolean m_Recursive = false ; private String m_Version = null ; private String m_Date = null ; private String m_Label = null ; private String m_AutoResponse = null ; public void setAutoresponse ( String response ) { } public void setDate ( String date ) { } public void setLabel ( String label ) { } public void setLocalpath ( Path localPath ) { } public void setRecursive ( boolean recursive ) { } public void setVersion ( String version ) { } public void getAutoresponse ( Commandline cmd ) { } public void getLocalpathCommand ( Commandline cmd ) throws TaskException { if ( ( m_LocalPath ) == null ) { return ; } else { File dir = resolveFile ( m_LocalPath ) ; if ( ! ( dir . exists ( ) ) ) { boolean done = dir . mkdirs ( ) ; if ( done == false ) { String msg = ( ( "Directory<seq2seq4repair_space>" + ( m_LocalPath ) ) + "<seq2seq4repair_space>creation<seq2seq4repair_space>was<seq2seq4repair_space>not<seq2seq4repair_space>" ) + "succesful<seq2seq4repair_space>for<seq2seq4repair_space>an<seq2seq4repair_space>unknown<seq2seq4repair_space>reason" ; throw new TaskException ( msg ) ; } <START_BUG> project . log ( ( "Created<seq2seq4repair_space>dir:<seq2seq4repair_space>" + ( dir . getAbsolutePath ( ) ) ) ) ; <END_BUG> } cmd . createArgument ( ) . setValue ( ( ( FLAG_OVERRIDE_WORKING_DIR ) + ( m_LocalPath ) ) ) ; } } public void getRecursiveCommand ( Commandline cmd ) { } public void getVersionCommand ( Commandline cmd ) { } public void execute ( ) throws TaskException { } }

Fix:
log ( ( "Created<seq2seq4repair_space>dir:<seq2seq4repair_space>" + ( dir . getAbsolutePath ( ) ) ) ) ;
Buggy code:
public class ItemUtils { public static boolean isItemEqual ( final ItemStack a , final ItemStack b , final boolean matchDamage , final boolean matchNBT ) { } public static boolean isItemEqual ( ItemStack a , ItemStack b , boolean matchDamage , boolean matchNBT , boolean useOreDic ) { } public static boolean isWildcard ( ItemStack stack ) { } public static boolean isWildcard ( int damage ) { } public static void writeInvToNBT ( IInventory inv , String tag , NBTTagCompound data ) { } public static void readInvFromNBT ( IInventory inv , String tag , NBTTagCompound data ) { } public static void writeItemToNBT ( ItemStack stack , NBTTagCompound data ) { } public static ItemStack readItemFromNBT ( NBTTagCompound data ) { } public static List < ItemStack > getStackWithAllOre ( ItemStack stack ) { if ( stack == null ) { return new ArrayList < ItemStack > ( ) ; } ArrayList < ItemStack > list = new ArrayList < ItemStack > ( ) ; for ( int oreID : OreDictionary . getOreIDs ( stack ) ) { for ( ItemStack ore : OreDictionary . getOres ( OreDictionary . getOreName ( oreID ) ) ) { <START_BUG> ItemStack newOre = ore ; <END_BUG> newOre . stackSize = stack . stackSize ; list . add ( newOre ) ; } } if ( list . isEmpty ( ) ) { list . add ( stack ) ; } return list ; } }

Fix:
ItemStack newOre = ore . copy ( ) ;
Buggy code:
public class ObjectMapper < T > { private static final Logger LOGGER = Logger . getLogger ( ObjectMapper . class . getName ( ) ) ; private Class < ? extends T > recordClass ; private Map < String , Method > setters ; private Map < Class , TypeConverter > typeConverters ; public ObjectMapper ( final Class < ? extends T > recordClass ) { } private void initializeSetters ( ) { } public T mapObject ( final Map < String , String > values ) throws Exception { T result = recordClass . newInstance ( ) ; <START_BUG> for ( String field : setters . keySet ( ) ) { <END_BUG> String value = values . get ( field ) ; Object typedValue = null ; Class < ? > type = setters . get ( field ) . getParameterTypes ( ) [ 0 ] ; TypeConverter typeConverter = typeConverters . get ( type ) ; if ( typeConverter != null ) { try { typedValue = typeConverter . convert ( value ) ; } catch ( Exception e ) { throw new Exception ( ( ( ( ( ( "Unable<seq2seq4repair_space>to<seq2seq4repair_space>convert<seq2seq4repair_space>'" + value ) + "'<seq2seq4repair_space>to<seq2seq4repair_space>type<seq2seq4repair_space>" ) + type ) + "<seq2seq4repair_space>for<seq2seq4repair_space>field<seq2seq4repair_space>" ) + field ) , e ) ; } } else { ObjectMapper . LOGGER . log ( Level . WARNING , "Type<seq2seq4repair_space>conversion<seq2seq4repair_space>not<seq2seq4repair_space>supported<seq2seq4repair_space>for<seq2seq4repair_space>type<seq2seq4repair_space>{0},<seq2seq4repair_space>field<seq2seq4repair_space>{1}<seq2seq4repair_space>will<seq2seq4repair_space>be<seq2seq4repair_space>set<seq2seq4repair_space>to<seq2seq4repair_space>null<seq2seq4repair_space>(if<seq2seq4repair_space>object<seq2seq4repair_space>type)<seq2seq4repair_space>or<seq2seq4repair_space>default<seq2seq4repair_space>value<seq2seq4repair_space>(if<seq2seq4repair_space>primitive<seq2seq4repair_space>type)" , new Object [ ] { type , field } ) ; } setters . get ( field ) . invoke ( result , typedValue ) ; } return result ; } private void InitializeTypeConverters ( ) { } public void registerTypeConverter ( final TypeConverter typeConverter ) { } }

Fix:
for ( String field : values . keySet ( ) ) {
Buggy code:
public class TransferFunctionContexMenu extends JPopupMenu implements MouseListener { private final TransferFunctionPanel1D parent ; private Point colorPickPoint = null ; private void initActions ( ) { add ( new AbstractAction ( "Insert<seq2seq4repair_space>color" ) { @ Override public void actionPerformed ( ActionEvent e ) { Color color = JColorChooser . showDialog ( new JFrame ( ) , "color<seq2seq4repair_space>dialog" , Color . black ) ; if ( color == null ) { return ; } <START_BUG> parent . getTransferFunction ( ) . setColor ( colorPickPoint , color ) ; <END_BUG> } } ) ; add ( new AbstractAction ( "Reset<seq2seq4repair_space>Points" ) { @ Override public void actionPerformed ( ActionEvent e ) { parent . getTransferFunction ( ) . resetLine ( ) ; } } ) ; add ( new AbstractAction ( "Reset<seq2seq4repair_space>colors" ) { @ Override public void actionPerformed ( ActionEvent e ) { parent . getTransferFunction ( ) . resetColors ( ) ; } } ) ; } public TransferFunctionContexMenu ( final TransferFunctionPanel1D parent ) { } @ Override public void mouseClicked ( MouseEvent e ) { } @ Override public void mouseEntered ( MouseEvent arg0 ) { } @ Override public void mouseExited ( MouseEvent arg0 ) { } @ Override public void mousePressed ( MouseEvent arg0 ) { } @ Override public void mouseReleased ( MouseEvent arg0 ) { } }

Fix:
parent . getTransferFunction ( ) . setColor ( new Point ( colorPickPoint . x , 0 ) , color ) ;
Buggy code:
@ RestController @ RequestMapping ( "//{userId}//push" ) public class PushRestController { @ Autowired private PushClient pushClient ; <START_BUG> @ RequestMapping ( method = RequestMethod . POST ) <END_BUG> boolean sendPush ( @ PathVariable String userId , @ PathVariable String message ) { List < Token > tokenList = pushClient . getTokens ( userId ) ; return false ; } }

Fix:
@ RequestMapping ( value = "//{message}" , method = RequestMethod . GET )
Buggy code:
@ WebService ( serviceName = "ControllerService" , targetNamespace = "urn:ControllerService" , portName = "ControllerPort" , endpointInterface = "eu.wisebed.api.controller.Controller" ) public class ControllerProxyService extends AbstractService implements Controller { @ InjectLogger private Logger log ; private final WsnProxyManagerService wsnProxyManagerService ; private final JobObserver jobObserver ; private final WisebedRestServerConfig config ; private final String experimentWsnInstanceEndpointUrl ; private Endpoint endpoint ; private String endpointUrl ; @ Inject public ControllerProxyService ( final WisebedRestServerConfig config , final WsnProxyManagerService wsnProxyManagerService , @ Assisted final JobObserver jobObserver , @ Assisted final String experimentWsnInstanceEndpointUrl ) { } @ Override public void experimentEnded ( ) { } private EventBus getEventBus ( ) { } @ Override public void receive ( @ WebParam ( name = "msg" , targetNamespace = "" ) final List < Message > messages ) { } @ Override public void receiveNotification ( @ WebParam ( name = "msg" , targetNamespace = "" ) final List < String > notifications ) { } @ Override public void receiveStatus ( @ WebParam ( name = "status" , targetNamespace = "" ) final List < RequestStatus > requestStatuses ) { if ( log . isDebugEnabled ( ) ) { for ( RequestStatus rs : requestStatuses ) { for ( Status status : rs . getStatus ( ) ) { <START_BUG> log . debug ( "Received<seq2seq4repair_space>status<seq2seq4repair_space>update<seq2seq4repair_space>(requestId='{}',<seq2seq4repair_space>nodeUrn='{}',<seq2seq4repair_space>value={},<seq2seq4repair_space>message='{}')" , new Object [ ] { rs . getRequestId ( ) , status . getNodeId ( ) , status . getValue ( ) } ) ; <END_BUG> } } } jobObserver . process ( requestStatuses ) ; } @ Override protected void doStart ( ) { } @ Override protected void doStop ( ) { } public String getEndpointUrl ( ) { } private String constructEndpointUrl ( ) { } }

Fix:
log . debug ( "Received<seq2seq4repair_space>status<seq2seq4repair_space>update<seq2seq4repair_space>(requestId='{}',<seq2seq4repair_space>nodeUrn='{}',<seq2seq4repair_space>value={},<seq2seq4repair_space>message='{}')" , new Object [ ] { rs . getRequestId ( ) , status . getNodeId ( ) , status . getValue ( ) , status . getMsg ( ) } ) ;