nus-yam/ex-repair huggingface dataset:
Buggy code:
public class BeanShell extends AbstractFunction implements Serializable { private static final Logger log = LoggingManager . getLoggerForClass ( ) ; private static final long serialVersionUID = 232L ; private static final List desc = new LinkedList ( ) ; private static final String KEY = "__BeanShell" ; public static final String INIT_FILE = "beanshell.function.init" ; private transient Object [ ] values ; private transient BeanShellInterpreter bshInterpreter = null ; public BeanShell ( ) { } public Object clone ( ) throws CloneNotSupportedException { } public synchronized String execute ( SampleResult previousResult , Sampler currentSampler ) throws InvalidVariableException { if ( ( bshInterpreter ) == null ) { throw new InvalidVariableException ( "BeanShell<seq2seq4repair_space>not<seq2seq4repair_space>found" ) ; } JMeterContext jmctx = JMeterContextService . getContext ( ) ; JMeterVariables vars = jmctx . getVariables ( ) ; String script = ( ( org . apache . jmeter . engine . util . CompoundVariable ) ( values [ 0 ] ) ) . execute ( ) ; String varName = "" ; if ( ( values . length ) > 1 ) { <START_BUG> varName = ( ( org . apache . jmeter . engine . util . CompoundVariable ) ( values [ 1 ] ) ) . execute ( ) ; <END_BUG> } String resultStr = "" ; BeanShell . log . debug ( ( "Script=" + script ) ) ; try { if ( currentSampler != null ) { bshInterpreter . set ( "Sampler" , currentSampler ) ; } if ( previousResult != null ) { bshInterpreter . set ( "SampleResult" , previousResult ) ; } bshInterpreter . set ( "ctx" , jmctx ) ; bshInterpreter . set ( "vars" , vars ) ; bshInterpreter . set ( "threadName" , Thread . currentThread ( ) . getName ( ) ) ; Object bshOut = bshInterpreter . eval ( script ) ; if ( bshOut != null ) { resultStr = bshOut . toString ( ) ; } if ( ( vars != null ) && ( ( varName . length ( ) ) > 0 ) ) { vars . put ( varName , resultStr ) ; } } catch ( Exception ex ) { BeanShell . log . warn ( "Error<seq2seq4repair_space>running<seq2seq4repair_space>BSH<seq2seq4repair_space>script" , ex ) ; } BeanShell . log . debug ( ( "Output=" + resultStr ) ) ; return resultStr ; } public void log_info ( String s ) { } public synchronized void setParameters ( Collection parameters ) throws InvalidVariableException { } public String getReferenceKey ( ) { } public List getArgumentDesc ( ) { } }

Fix:
varName = ( ( org . apache . jmeter . engine . util . CompoundVariable ) ( values [ 1 ] ) ) . execute ( ) . trim ( ) ;
Buggy code:
public class Image extends WebComponent implements IResourceListener { private static final long serialVersionUID = 555385780092173403L ; private String resourceToLoad ; private String style ; private Locale locale ; public Image ( final String name ) { } public Image ( final String name , final Serializable object ) { } public Image ( final String name , final Serializable object , final String expression ) { } public void resourceRequested ( ) { <START_BUG> IResource image = getResource ( resourceToLoad ) ; <END_BUG> if ( image == null ) { throw new WicketRuntimeException ( ( "Could<seq2seq4repair_space>not<seq2seq4repair_space>find<seq2seq4repair_space>image<seq2seq4repair_space>resource<seq2seq4repair_space>" + ( resourceToLoad ) ) ) ; } final RequestCycle cycle = getRequestCycle ( ) ; cycle . setPage ( ( ( Page ) ( null ) ) ) ; final HttpServletResponse response = ( ( wicket . protocol . http . WebResponse ) ( cycle . getResponse ( ) ) ) . getHttpServletResponse ( ) ; response . setContentType ( ( "image//" + ( image . getExtension ( ) ) ) ) ; try { final OutputStream out = new BufferedOutputStream ( response . getOutputStream ( ) ) ; try { Streams . writeStream ( new BufferedInputStream ( image . getInputStream ( ) ) , out ) ; } finally { image . close ( ) ; out . flush ( ) ; } } catch ( IOException e ) { throw new WicketRuntimeException ( ( "Unable<seq2seq4repair_space>to<seq2seq4repair_space>render<seq2seq4repair_space>resource<seq2seq4repair_space>" + image ) , e ) ; } catch ( ResourceNotFoundException e ) { throw new WicketRuntimeException ( ( "Unable<seq2seq4repair_space>to<seq2seq4repair_space>render<seq2seq4repair_space>resource<seq2seq4repair_space>" + image ) , e ) ; } } protected IResource getResource ( final String source ) { } protected void handleComponentTagBody ( final MarkupStream markupStream , final ComponentTag openTag ) { } protected void handleComponentTag ( final ComponentTag tag ) { } }

Fix:
final IResource image = getResource ( resourceToLoad ) ;
Buggy code:
public class TestDateSort extends LuceneTestCase { private static final String TEXT_FIELD = "text" ; private static final String DATE_TIME_FIELD = "dateTime" ; private static Directory directory ; public void setUp ( ) throws Exception { } public void testReverseDateSort ( ) throws Exception { <START_BUG> IndexSearcher searcher = new IndexSearcher ( TestDateSort . directory ) ; <END_BUG> Sort sort = new Sort ( new SortField ( TestDateSort . DATE_TIME_FIELD , SortField . AUTO , true ) ) ; QueryParser queryParser = new QueryParser ( TestDateSort . TEXT_FIELD , new WhitespaceAnalyzer ( ) ) ; Query query = queryParser . parse ( "Document" ) ; String [ ] actualOrder = new String [ 5 ] ; ScoreDoc [ ] hits = searcher . search ( query , null , 1000 , sort ) . scoreDocs ; for ( int i = 0 ; i < ( hits . length ) ; i ++ ) { Document document = searcher . doc ( hits [ i ] . doc ) ; String text = document . get ( TestDateSort . TEXT_FIELD ) ; actualOrder [ i ] = text ; } searcher . close ( ) ; String [ ] expectedOrder = new String [ 5 ] ; expectedOrder [ 0 ] = "Document<seq2seq4repair_space>5" ; expectedOrder [ 1 ] = "Document<seq2seq4repair_space>4" ; expectedOrder [ 2 ] = "Document<seq2seq4repair_space>3" ; expectedOrder [ 3 ] = "Document<seq2seq4repair_space>2" ; expectedOrder [ 4 ] = "Document<seq2seq4repair_space>1" ; assertEquals ( Arrays . asList ( expectedOrder ) , Arrays . asList ( actualOrder ) ) ; } private static Document createDocument ( String text , long time ) { } }

Fix:
IndexSearcher searcher = new IndexSearcher ( TestDateSort . directory , true ) ;
Buggy code:
public class DependencySubsystemExtension implements Extension { public static final String EXTENSION_NAME = "org.jboss.as.dependency.extension" ; public static final String NAMESPACE = "urn:mycompany:dependency:1.0" ; public static final String SUBSYSTEM_NAME = "dependency" ; private final DependencySubsystemExtension . SubsystemParser parser = new DependencySubsystemExtension . SubsystemParser ( ) ; @ Override public void initializeParsers ( ExtensionParsingContext context ) { } @ Override public void initialize ( ExtensionContext context ) { } private static ModelNode createAddSubsystemOperation ( ) { } private static class SubsystemParser implements XMLStreamConstants , XMLElementReader < List < ModelNode > > , XMLElementWriter < SubsystemMarshallingContext > { @ Override public void writeContent ( XMLExtendedStreamWriter writer , SubsystemMarshallingContext context ) throws XMLStreamException { } @ Override public void readElement ( XMLExtendedStreamReader reader , List < ModelNode > list ) throws XMLStreamException { } } private static class SubsystemDescribeHandler implements OperationStepHandler , DescriptionProvider { static final DependencySubsystemExtension . SubsystemDescribeHandler INSTANCE = new DependencySubsystemExtension . SubsystemDescribeHandler ( ) ; public void execute ( OperationContext context , ModelNode operation ) throws OperationFailedException { context . getResult ( ) . add ( DependencySubsystemExtension . createAddSubsystemOperation ( ) ) ; <START_BUG> context . completeStep ( ) ; <END_BUG> } @ Override public ModelNode getModelDescription ( Locale locale ) { } } }

Fix:
context . stepCompleted ( ) ;
Buggy code:
@ Controller public class WMSController extends BaseCSWController { private WMSService wmsService ; private final Log log = LogFactory . getLog ( getClass ( ) ) ; @ Autowired public WMSController ( WMSService wmsService , ViewCSWRecordFactory viewCSWRecordFactory , ViewKnownLayerFactory knownLayerFact ) { } @ RequestMapping ( "//getCustomLayers.do" ) public ModelAndView getCustomLayers ( @ RequestParam ( "service_URL" ) String serviceUrl ) throws Exception { } public String [ ] getSRSList ( String [ ] layerSRS , String [ ] childLayerSRS ) { } @ RequestMapping ( "//getLayerFormats.do" ) public ModelAndView getLayerFormats ( @ RequestParam ( "serviceUrl" ) String serviceUrl ) throws Exception { } @ RequestMapping ( "//wmsMarkerPopup.do" ) public void wmsUnitPopup ( HttpServletRequest request , HttpServletResponse response , @ RequestParam ( "WMS_URL" ) String wmsUrl , @ RequestParam ( "lat" ) String latitude , @ RequestParam ( "lng" ) String longitude , @ RequestParam ( "QUERY_LAYERS" ) String queryLayers , @ RequestParam ( "x" ) String x , @ RequestParam ( "y" ) String y , @ RequestParam ( "BBOX" ) String bbox , @ RequestParam ( "WIDTH" ) String width , @ RequestParam ( "HEIGHT" ) String height , @ RequestParam ( "INFO_FORMAT" ) String infoFormat , @ RequestParam ( "SLD" ) String sld , @ RequestParam ( value = "postMethod" , defaultValue = "false" ) Boolean postMethod , @ RequestParam ( "version" ) String version ) throws Exception { String [ ] bboxParts = bbox . split ( "," ) ; double lng1 = Double . parseDouble ( bboxParts [ 0 ] ) ; double lng2 = Double . parseDouble ( bboxParts [ 2 ] ) ; double lat1 = Double . parseDouble ( bboxParts [ 1 ] ) ; double lat2 = Double . parseDouble ( bboxParts [ 3 ] ) ; String sldDecoded = URLDecoder . decode ( sld , "UTF-8" ) ; String featureCount = "" ; <START_BUG> String responseString = wmsService . getFeatureInfo ( wmsUrl , infoFormat , queryLayers , "EPSG:3857" , Math . min ( lng1 , lng2 ) , Math . min ( lat1 , lat2 ) , Math . max ( lng1 , lng2 ) , Math . max ( lat1 , lat2 ) , Integer . parseInt ( width ) , Integer . parseInt ( height ) , Double . parseDouble ( longitude ) , Double . parseDouble ( latitude ) , ( ( int ) ( Double . parseDouble ( x ) ) ) , ( ( int ) ( Double . parseDouble ( y ) ) ) , "" , sldDecoded , postMethod , version , featureCount ) ; <END_BUG> InputStream responseStream = new ByteArrayInputStream ( responseString . getBytes ( ) ) ; FileIOUtil . writeInputToOutputStream ( responseStream , response . getOutputStream ( ) , ( 1024 * 1024 ) , true ) ; } }

Fix:
String responseString = wmsService . getFeatureInfo ( wmsUrl , infoFormat , queryLayers , "EPSG:3857" , Math . min ( lng1 , lng2 ) , Math . min ( lat1 , lat2 ) , Math . max ( lng1 , lng2 ) , Math . max ( lat1 , lat2 ) , Integer . parseInt ( width ) , Integer . parseInt ( height ) , Double . parseDouble ( longitude ) , Double . parseDouble ( latitude ) , ( ( int ) ( Double . parseDouble ( x ) ) ) , ( ( int ) ( Double . parseDouble ( y ) ) ) , "" , sldDecoded , postMethod , version , featureCount , false ) ;
Buggy code:
public class HeaderRequestMatcherTests { private static final String RESPONSE_BODY = "{\"name\"<seq2seq4repair_space>:<seq2seq4repair_space>\"Ludwig<seq2seq4repair_space>van<seq2seq4repair_space>Beethoven\",<seq2seq4repair_space>\"someDouble\"<seq2seq4repair_space>:<seq2seq4repair_space>\"1.6035\"}" ; private MockRestServiceServer mockServer ; private RestTemplate restTemplate ; @ Before public void setup ( ) { } @ Test public void testString ( ) throws Exception { <START_BUG> this . mockServer . expect ( requestTo ( "//person//1" ) ) . andExpect ( header ( "Accept" , "application//json" ) ) . andRespond ( withSuccess ( HeaderRequestMatcherTests . RESPONSE_BODY , APPLICATION_JSON ) ) ; <END_BUG> this . restTemplate . getForObject ( new URI ( "//person//1" ) , Person . class ) ; this . mockServer . verify ( ) ; } @ SuppressWarnings ( "unchecked" ) @ Test public void testStringContains ( ) throws Exception { } }

Fix:
this . mockServer . expect ( requestTo ( "//person//1" ) ) . andExpect ( header ( "Accept" , "application//json,<seq2seq4repair_space>application//*+json" ) ) . andRespond ( withSuccess ( HeaderRequestMatcherTests . RESPONSE_BODY , APPLICATION_JSON ) ) ;
Buggy code:
public class KitKatStatusBarConfig extends DefaultStatusBarConfig implements StatusBarConfig { private final boolean mKitKatGradientEnabled ; public KitKatStatusBarConfig ( Resources r , AssetManager a , boolean kitKatGradientEnabled ) { } @ Override public boolean drawGradient ( ) { } @ Override public int getForegroundColour ( ) { if ( drawGradient ( ) ) { mResources . getColor ( kitkat_status_bar_gradient ) ; } <START_BUG> return super . getForegroundColour ( ) ; <END_BUG> } @ Override public Drawable getGPSDrawable ( ) { } }

Fix:
return mResources . getColor ( kitkat_status_bar_default ) ;
Buggy code:
public interface NewHostOperationContext extends NewOperationContext { @ Override <START_BUG> NewHostController getController ( ) ; <END_BUG> ServiceTarget getServiceTarget ( ) { } ServiceRegistry getServiceRegistry ( ) { } }

Fix:
NewHostModel getController ( ) ;
Buggy code:
public class AppStartActivity extends MyAbstractActivity { public static final String CLASSNAME = "AppStartActivity" ; @ Override public String getActivityName ( ) { } @ Override public void onCreate ( Bundle arg0 ) { } private void redirectTo ( ) { Intent intent = new Intent ( ) ; LogUtils . i ( ( "Xiaoqu<seq2seq4repair_space>info:<seq2seq4repair_space>isFirstTimeLogin:<seq2seq4repair_space>" + ( LocalUtil . isFirstTimeLogin ( this ) ) ) ) ; if ( LocalUtil . isFirstTimeLogin ( this ) ) { LogUtils . i ( "Xiaoqu<seq2seq4repair_space>info:<seq2seq4repair_space>AppWelcomeActivity.class" ) ; intent . setClass ( this , AppWelcomeActivity . class ) ; } else { LogUtils . i ( "Xiaoqu<seq2seq4repair_space>info:<seq2seq4repair_space>AppMainFragment.class" ) ; <START_BUG> intent . setClass ( this , AppMainFragment . class ) ; <END_BUG> } LogUtils . i ( "Xiaoqu<seq2seq4repair_space>info:<seq2seq4repair_space>start<seq2seq4repair_space>you<seq2seq4repair_space>trval" ) ; startActivity ( intent ) ; overridePendingTransition ( in_from_right , out_to_left ) ; finish ( ) ; } }

Fix:
intent . setClass ( this , AppMainActivity . class ) ;
Buggy code:
public class FieldTest { @ Test public void testAdd ( ) { } @ Test public void testMulti ( ) { } @ Test public void testIsPointInField ( ) { } @ Test public void tesTest ( ) { <START_BUG> Polynom generatingPolynom = Polynom . createXGeneratingPolynome ( 2 , 2 , 1 ) . get ( 0 ) ; <END_BUG> Field field = Field . createField ( generatingPolynom ) ; System . out . println ( ( ( "Generating:<seq2seq4repair_space>" + generatingPolynom ) + "\n" ) ) ; System . out . println ( field . toString ( ) ) ; } }

Fix:
Polynom generatingPolynom = Polynom . createXGeneratingPolynome ( 3 , 3 , 8 ) . get ( 5 ) ;
Buggy code:
public final class ReaderUtil { private ReaderUtil ( ) { } public static class Slice { public static final ReaderUtil . Slice [ ] EMPTY_ARRAY = new ReaderUtil . Slice [ 0 ] ; public final int start ; public final int length ; public final int readerIndex ; public Slice ( int start , int length , int readerIndex ) { } @ Override public String toString ( ) { } } public static void gatherSubReaders ( final List < IndexReader > allSubReaders , IndexReader reader ) { } public abstract static class Gather { private final IndexReader topReader ; public Gather ( IndexReader r ) { } public int run ( ) throws IOException { } public int run ( int docBase ) throws IOException { } private int run ( int base , IndexReader reader ) throws IOException { } protected abstract void add ( int base , IndexReader r ) throws IOException { } } public static IndexReader subReader ( int doc , IndexReader reader ) { } public static IndexReader subReader ( IndexReader reader , int subIndex ) { } public static ReaderContext buildReaderContext ( IndexReader reader ) { } public static class ReaderContextBuilder { private final IndexReader reader ; private final AtomicReaderContext [ ] leaves ; private int leafOrd = 0 ; private int leafDocBase = 0 ; public ReaderContextBuilder ( IndexReader reader ) { } public ReaderContext build ( ) { } private ReaderContext build ( CompositeReaderContext parent , IndexReader reader , int ord , int docBase ) { IndexReader [ ] sequentialSubReaders = reader . getSequentialSubReaders ( ) ; if ( sequentialSubReaders == null ) { AtomicReaderContext atomic = new AtomicReaderContext ( parent , reader , ord , docBase , leafOrd , leafDocBase ) ; leaves [ ( ( leafOrd ) ++ ) ] = atomic ; leafDocBase += reader . maxDoc ( ) ; return atomic ; } else { ReaderContext [ ] children = new ReaderContext [ sequentialSubReaders . length ] ; final CompositeReaderContext newParent ; if ( parent == null ) { newParent = new CompositeReaderContext ( reader , children , leaves ) ; } else { newParent = new CompositeReaderContext ( parent , reader , ord , docBase , children ) ; } int newDocBase = 0 ; for ( int i = 0 ; i < ( sequentialSubReaders . length ) ; i ++ ) { <START_BUG> build ( newParent , sequentialSubReaders [ i ] , i , newDocBase ) ; <END_BUG> newDocBase += sequentialSubReaders [ i ] . maxDoc ( ) ; } return newParent ; } } private int numLeaves ( IndexReader reader ) { } } public static AtomicReaderContext [ ] leaves ( ReaderContext context ) { } public static ReaderContext getTopLevelContext ( ReaderContext context ) { } public static int subIndex ( int n , int [ ] docStarts ) { } public static int subIndex ( int n , AtomicReaderContext [ ] leaves ) { } }

Fix:
children [ i ] = build ( newParent , sequentialSubReaders [ i ] , i , newDocBase ) ;
Buggy code:
public class FileReceiverServer { private ServerSocket m_serverSock ; private ReceiverHandler m_handler ; private Thread m_serverThread ; public FileReceiverServer ( ReceiverHandler handler ) { } public void start ( ) { } @ SuppressWarnings ( "deprecation" ) public void stop ( ) { } private class Server implements Runnable { @ Override public void run ( ) { } } private class ClientHandler implements Runnable { private Socket m_sock ; public ClientHandler ( Socket sock ) { } private long readFile ( ZipInputStream zip , File file , long totalSize , long read , TransferTracker tracker ) throws IOException { FileOutputStream fos = new FileOutputStream ( file ) ; byte [ ] buffer = new byte [ 1024 ] ; int len ; while ( ( len = zip . read ( buffer ) ) > 0 ) { fos . write ( buffer , 0 , len ) ; <START_BUG> read += 1024 ; <END_BUG> tracker . setPercentage ( ( ( ( ( double ) ( 100 ) ) * read ) // totalSize ) ) ; System . out . println ( ( "Read:<seq2seq4repair_space>" + read ) ) ; System . out . println ( ( "Setting<seq2seq4repair_space>percentage:<seq2seq4repair_space>" + ( tracker . getPercentage ( ) ) ) ) ; } fos . close ( ) ; return read ; } private void readFiles ( long totalSize , TransferTracker tracker ) throws IOException { } @ Override public void run ( ) { } } }

Fix:
read += len ;
Buggy code:
public class WelcomeItem { private String text ; private int [ ] [ ] boldRanges ; private int [ ] [ ] helpRanges ; private String [ ] helpIds ; private String [ ] helpHrefs ; private int [ ] [ ] actionRanges ; private String [ ] actionPluginIds ; private String [ ] actionClasses ; public WelcomeItem ( String text , int [ ] [ ] boldRanges , int [ ] [ ] actionRanges , String [ ] actionPluginIds , String [ ] actionClasses , int [ ] [ ] helpRanges , String [ ] helpIds , String [ ] helpHrefs ) { } public int [ ] [ ] getActionRanges ( ) { } public int [ ] [ ] getBoldRanges ( ) { } public int [ ] [ ] getHelpRanges ( ) { } public String getText ( ) { } public boolean isLinkAt ( int offset ) { } public void logActionLinkError ( String actionPluginId , String actionClass ) { } private void openHelpTopic ( String topic , String href ) { } private void runAction ( String pluginId , String className ) { } public void triggerLinkAt ( int offset ) { for ( int i = 0 ; i < ( helpRanges . length ) ; i ++ ) { if ( ( offset >= ( helpRanges [ i ] [ 0 ] ) ) && ( offset < ( ( helpRanges [ i ] [ 0 ] ) + ( helpRanges [ i ] [ 1 ] ) ) ) ) { openHelpTopic ( helpIds [ i ] , helpHrefs [ i ] ) ; return ; } } for ( int i = 0 ; i < ( actionRanges . length ) ; i ++ ) { <START_BUG> if ( ( offset > ( actionRanges [ i ] [ 0 ] ) ) && ( offset <= ( ( actionRanges [ i ] [ 0 ] ) + ( actionRanges [ i ] [ 1 ] ) ) ) ) { <END_BUG> runAction ( actionPluginIds [ i ] , actionClasses [ i ] ) ; return ; } } } }

Fix:
if ( ( offset >= ( actionRanges [ i ] [ 0 ] ) ) && ( offset < ( ( actionRanges [ i ] [ 0 ] ) + ( actionRanges [ i ] [ 1 ] ) ) ) ) {
Buggy code:
public class MonthDayDV extends AbstractDateTimeDV { private static final int MONTHDAY_SIZE = 7 ; public Object getActualValue ( String content , ValidationContext context ) throws InvalidDatatypeValueException { try { return parse ( content , null ) ; } catch ( Exception ex ) { <START_BUG> throw new InvalidDatatypeValueException ( "not<seq2seq4repair_space>a<seq2seq4repair_space>valid<seq2seq4repair_space>monthDay" ) ; <END_BUG> } } protected int [ ] parse ( String str , int [ ] date ) throws SchemaDateTimeException { } protected String dateToString ( int [ ] date ) { } }

Fix:
throw new InvalidDatatypeValueException ( "cvc-datatype-valid.1.2.1" , new Object [ ] { content , "gMonthDay" } ) ;
Buggy code:
@ Service ( "dlmsHelperService" ) public class DlmsHelperService { private static final Logger LOGGER = LoggerFactory . getLogger ( DlmsHelperService . class ) ; private static final String YEAR_MILLENIAL_PART = "20" ; private static final String LAST_DAY_OF_MONTH = "FE" ; private static final String SECOND_LAST_DAY_OF_MONTH = "FD" ; private static final String DAYLIGHT_SAVINGS_BEGIN = "FE" ; private static final String DAYLIGHT_SAVINGS_END = "FD" ; private static final String NOT_SPECIFIED = "FF" ; public static final int MILLISECONDS_PER_MINUTE = 60000 ; private void checkResultCode ( final GetResult getResult , final String description ) throws ProtocolAdapterException { } public Long readLong ( final GetResult getResult , final String description ) throws ProtocolAdapterException { } public DateTime readDateTime ( final GetResult getResult , final String description ) throws ProtocolAdapterException { } public DateTime convertDataObjectToDateTime ( final DataObject object ) throws ProtocolAdapterException { if ( object . isByteArray ( ) ) { return this . fromDateTimeValue ( ( ( byte [ ] ) ( object . value ( ) ) ) ) ; } else if ( object . isCosemDateFormat ( ) ) { <START_BUG> return this . fromDateTimeValue ( ( ( org . openmuc . jdlms . datatypes . CosemDateTime ) ( object . value ( ) ) ) . ocletString ( ) ) ; <END_BUG> } else { DlmsHelperService . LOGGER . error ( "Unexpected<seq2seq4repair_space>ResultData<seq2seq4repair_space>for<seq2seq4repair_space>DateTime<seq2seq4repair_space>value:<seq2seq4repair_space>{}" , this . getDebugInfo ( object ) ) ; throw new ProtocolAdapterException ( ( "Expected<seq2seq4repair_space>ResultData<seq2seq4repair_space>of<seq2seq4repair_space>ByteArray<seq2seq4repair_space>or<seq2seq4repair_space>CosemDateFormat,<seq2seq4repair_space>got:<seq2seq4repair_space>" + ( object . choiceIndex ( ) ) ) ) ; } } public DateTime fromDateTimeValue ( final byte [ ] dateTimeValue ) { } public DataObject dateAsDataObjectOctetString ( final DateTime dateTime ) { } public DataObject asDataObject ( final DateTime dateTime ) { } public DataObject dateStringToOctetString ( final String date ) { } public String getDebugInfo ( final DataObject dataObject ) { } private void appendItemValues ( final DataObject dataObject , final StringBuilder builder ) { } private static String getDataType ( final DataObject dataObject ) { } public String getDebugInfoByteArray ( final byte [ ] bytes ) { } public String getDebugInfoLogicalName ( final byte [ ] logicalNameValue ) { } public String getDebugInfoDateTimeBytes ( final byte [ ] dateTimeValue ) { } public String getDebugInfoBitStringBytes ( final byte [ ] bitStringValue ) { } private String byteArrayToString ( final byte [ ] bitStringValue ) { } private BigInteger byteArrayToBigInteger ( final byte [ ] bitStringValue ) { } }

Fix:
return this . fromDateTimeValue ( ( ( org . openmuc . jdlms . datatypes . CosemDateTime ) ( object . value ( ) ) ) . encode ( ) ) ;
Buggy code:
public class MySQLModel extends Model { private Connection connection ; private Statement statement ; private static class MySQLModelHolder { public static final MySQLModel instance = new MySQLModel ( ) ; } private MySQLModel ( ) { } private String buildSelectQuery ( String table , String condition , String selector , String join ) { } private String buildSelectQuery ( String table , Map < String , String > fields , String selector , String join ) { } public boolean delete ( String table , int id ) { } private ResultSet executeAndReturnResult ( String sql ) { } public ResultSet get ( String table , String condition ) { } public ResultSet get ( String table , Map < String , String > fields ) { } public ResultSet get ( String table , String condition , String joinTable , String joinKey1 , String joinKey2 ) { <START_BUG> String sql = buildSelectQuery ( table , condition , "*" , ( ( ( ( ( "JOIN<seq2seq4repair_space>" + joinTable ) + "<seq2seq4repair_space>ON<seq2seq4repair_space>" ) + joinKey1 ) + "<seq2seq4repair_space>=<seq2seq4repair_space>" ) + joinKey2 ) ) ; <END_BUG> return executeAndReturnResult ( sql ) ; } public ResultSet get ( String table , int id ) { } public static MySQLModel getInstance ( ) { } public int save ( String table , Map < String , String > fields ) { } public ResultSet update ( String table , int id , Map < String , String > fields ) { } }

Fix:
String sql = buildSelectQuery ( table , condition , "*" , ( ( ( ( joinTable + "<seq2seq4repair_space>ON<seq2seq4repair_space>" ) + joinKey1 ) + "<seq2seq4repair_space>=<seq2seq4repair_space>" ) + joinKey2 ) ) ;
Buggy code:
public class SparseFieldVector < T extends FieldElement < T > > implements Serializable , FieldVector < T > { private static final long serialVersionUID = 7841233292190413362L ; private final Field < T > field ; private final OpenIntToFieldHashMap < T > entries ; private final int virtualSize ; public SparseFieldVector ( Field < T > field ) { } public SparseFieldVector ( Field < T > field , int dimension ) { } protected SparseFieldVector ( SparseFieldVector < T > v , int resize ) { } public SparseFieldVector ( Field < T > field , int dimension , int expectedSize ) { } public SparseFieldVector ( Field < T > field , T [ ] values ) { } public SparseFieldVector ( SparseFieldVector < T > v ) { } private OpenIntToFieldHashMap < T > getEntries ( ) { } public FieldVector < T > add ( SparseFieldVector < T > v ) { } public FieldVector < T > append ( SparseFieldVector < T > v ) { } public FieldVector < T > append ( FieldVector < T > v ) { } public FieldVector < T > append ( T d ) { } public FieldVector < T > copy ( ) { } public T dotProduct ( FieldVector < T > v ) { } public FieldVector < T > ebeDivide ( FieldVector < T > v ) { } public FieldVector < T > ebeMultiply ( FieldVector < T > v ) { } public T [ ] getData ( ) { } public int getDimension ( ) { } public T getEntry ( int index ) { } public Field < T > getField ( ) { } public FieldVector < T > getSubVector ( int index , int n ) { } public FieldVector < T > mapAdd ( T d ) { } public FieldVector < T > mapAddToSelf ( T d ) { } public FieldVector < T > mapDivide ( T d ) { } public FieldVector < T > mapDivideToSelf ( T d ) { } public FieldVector < T > mapInv ( ) { } public FieldVector < T > mapInvToSelf ( ) { } public FieldVector < T > mapMultiply ( T d ) { } public FieldVector < T > mapMultiplyToSelf ( T d ) { } public FieldVector < T > mapSubtract ( T d ) { } public FieldVector < T > mapSubtractToSelf ( T d ) { } public FieldMatrix < T > outerProduct ( SparseFieldVector < T > v ) { } public FieldMatrix < T > outerProduct ( FieldVector < T > v ) { } public FieldVector < T > projection ( FieldVector < T > v ) { } public void set ( T value ) { } public void setEntry ( int index , T value ) { } public void setSubVector ( int index , FieldVector < T > v ) { } public SparseFieldVector < T > subtract ( SparseFieldVector < T > v ) { } public FieldVector < T > subtract ( FieldVector < T > v ) { } public T [ ] toArray ( ) { } private void checkIndex ( final int index ) { } protected void checkVectorDimensions ( int n ) { } public FieldVector < T > add ( FieldVector < T > v ) { } @ SuppressWarnings ( "unchecked" ) private T [ ] buildArray ( final int length ) { <START_BUG> return ( ( T [ ] ) ( Array . newInstance ( field . getZero ( ) . getClass ( ) , length ) ) ) ; <END_BUG> } @ Override public int hashCode ( ) { } @ Override public boolean equals ( Object obj ) { } }

Fix:
return ( ( T [ ] ) ( Array . newInstance ( field . getRuntimeClass ( ) , length ) ) ) ;
Buggy code:
public class RefreshAction extends WorkspaceAction { public static final String ID = ( PlatformUI . PLUGIN_ID ) + ".RefreshAction" ; public RefreshAction ( Shell shell ) { } void checkLocationDeleted ( IProject project ) throws CoreException { } String getOperationMessage ( ) { } String getProblemsMessage ( ) { } String getProblemsTitle ( ) { } protected List getSelectedResources ( ) { } void invokeOperation ( IResource resource , IProgressMonitor monitor ) throws CoreException { } protected boolean updateSelection ( IStructuredSelection s ) { } public void handleKeyReleased ( KeyEvent event ) { <START_BUG> if ( ( event . keyCode ) == ( SWT . F5 ) ) { <END_BUG> refreshAll ( ) ; } } public void refreshAll ( ) { } }

Fix:
if ( ( ( event . keyCode ) == ( SWT . F5 ) ) && ( ( event . stateMask ) == 0 ) ) {
Buggy code:
public class BatchMoveLineHandler extends CommandHandlerWithHelp { public BatchMoveLineHandler ( ) { } @ Override public boolean isAvailable ( CommandContext ctx ) { } @ Override protected void doHandle ( CommandContext ctx ) { BatchManager batchManager = ctx . getBatchManager ( ) ; if ( ! ( batchManager . isBatchActive ( ) ) ) { ctx . printLine ( "No<seq2seq4repair_space>active<seq2seq4repair_space>batch." ) ; return ; } Batch batch = batchManager . getActiveBatch ( ) ; final int batchSize = batch . size ( ) ; if ( batchSize == 0 ) { ctx . printLine ( "The<seq2seq4repair_space>batch<seq2seq4repair_space>is<seq2seq4repair_space>empty." ) ; return ; } <START_BUG> List < String > arguments = ctx . getOtherArguments ( ) ; <END_BUG> if ( arguments . isEmpty ( ) ) { ctx . printLine ( "Missing<seq2seq4repair_space>line<seq2seq4repair_space>number." ) ; return ; } if ( ( arguments . size ( ) ) != 2 ) { ctx . printLine ( ( "Expected<seq2seq4repair_space>two<seq2seq4repair_space>arguments<seq2seq4repair_space>but<seq2seq4repair_space>received:<seq2seq4repair_space>" + arguments ) ) ; return ; } String intStr = arguments . get ( 0 ) ; final int lineNumber ; try { lineNumber = Integer . parseInt ( intStr ) ; } catch ( NumberFormatException e ) { ctx . printLine ( ( ( ( "Failed<seq2seq4repair_space>to<seq2seq4repair_space>parse<seq2seq4repair_space>line<seq2seq4repair_space>number<seq2seq4repair_space>'" + intStr ) + "':<seq2seq4repair_space>" ) + ( e . getLocalizedMessage ( ) ) ) ) ; return ; } if ( ( lineNumber < 1 ) || ( lineNumber > batchSize ) ) { ctx . printLine ( ( ( ( lineNumber + "<seq2seq4repair_space>isn't<seq2seq4repair_space>in<seq2seq4repair_space>range<seq2seq4repair_space>[1.." ) + batchSize ) + "]." ) ) ; return ; } intStr = arguments . get ( 1 ) ; final int toLineNumber ; try { toLineNumber = Integer . parseInt ( intStr ) ; } catch ( NumberFormatException e ) { ctx . printLine ( ( ( ( "Failed<seq2seq4repair_space>to<seq2seq4repair_space>parse<seq2seq4repair_space>line<seq2seq4repair_space>number<seq2seq4repair_space>'" + intStr ) + "':<seq2seq4repair_space>" ) + ( e . getLocalizedMessage ( ) ) ) ) ; return ; } if ( ( toLineNumber < 1 ) || ( toLineNumber > batchSize ) ) { ctx . printLine ( ( ( ( toLineNumber + "<seq2seq4repair_space>isn't<seq2seq4repair_space>in<seq2seq4repair_space>range<seq2seq4repair_space>[1.." ) + batchSize ) + "]." ) ) ; return ; } batch . move ( ( lineNumber - 1 ) , ( toLineNumber - 1 ) ) ; } }

Fix:
List < String > arguments = ctx . getParsedArguments ( ) . getOtherArguments ( ) ;
Buggy code:
public class TreeTableRowSkin < T > extends TableRowSkinBase < TreeItem < T > , TreeTableRow < T > , TreeTableRowBehavior < T > , TreeTableCell < T , ? > > { private SimpleObjectProperty < ObservableList < TreeItem < T > > > itemsProperty ; public TreeTableRowSkin ( TreeTableRow < T > control ) { } @ Override protected void handleControlPropertyChanged ( String p ) { } private DoubleProperty indent = null ; public final void setIndent ( double value ) { } public final double getIndent ( ) { } public final DoubleProperty indentProperty ( ) { } private void updateDisclosureNode ( ) { } private boolean childrenDirty = false ; @ Override protected void updateChildren ( ) { } @ Override protected TreeTableCell < T , ? > getCell ( TableColumnBase tcb ) { } @ Override protected void updateCells ( boolean resetChildren ) { } @ Override protected boolean isIndentationRequired ( ) { } @ Override protected int getIndentationLevel ( TreeTableRow < T > control ) { } @ Override protected double getIndentationPerLevel ( ) { } @ Override protected Node getDisclosureNode ( ) { } @ Override protected boolean isDisclosureNodeVisible ( ) { } @ Override protected boolean isShowRoot ( ) { } @ Override protected ObservableList < TreeTableColumn < T , ? > > getVisibleLeafColumns ( ) { } @ Override protected ObjectProperty < SpanModel < TreeItem < T > > > spanModelProperty ( ) { } @ Override protected void updateCell ( TreeTableCell < T , ? > cell , TreeTableRow < T > row ) { } @ Override protected ObjectProperty < ObservableList < TreeItem < T > > > itemsProperty ( ) { } @ Override protected boolean isColumnPartiallyOrFullyVisible ( TableColumnBase tc ) { } @ Override <START_BUG> protected TableColumnBase < T , ? > getTableColumnBase ( TreeTableCell cell ) { <END_BUG> return cell . getTableColumn ( ) ; } @ Override protected Node getGraphic ( ) { } @ Override protected Control getVirtualFlowOwner ( ) { } private static class StyleableProperties { private static final CssMetaData < TreeTableRow , Number > INDENT = new CssMetaData < TreeTableRow , Number > ( "-fx-indent" , SizeConverter . getInstance ( ) , 10.0 ) { @ Override public boolean isSettable ( TreeTableRow n ) { } @ Override public WritableValue < Number > getWritableValue ( TreeTableRow n ) { } } ; private static final List < CssMetaData > STYLEABLES ; } public static List < CssMetaData > getClassCssMetaData ( ) { } @ Override public List < CssMetaData > getCssMetaData ( ) { } }

Fix:
protected TreeTableColumn < T , ? > getTableColumnBase ( TreeTableCell cell ) {
Buggy code:
public class SuggestionsFragment extends Fragment { private static final String LOG_TAG = "SuggestionsFragment" ; private static final int LOADER_ID_SUGGESTION = 0 ; private static final String KEY_SEARCH_TERM = "search_term" ; private static final int SUGGESTION_TIMEOUT = 3000 ; private static final int SUGGESTION_MAX = 5 ; public static final String GECKO_SEARCH_TERMS_URL_PARAM = "__searchTerms__" ; private AcceptsSearchQuery searchListener ; private SuggestClient suggestClient ; private SuggestionsFragment . SuggestionLoaderCallbacks suggestionLoaderCallbacks ; private AutoCompleteAdapter autoCompleteAdapter ; private ListView suggestionsList ; public SuggestionsFragment ( ) { } @ Override public void onAttach ( Activity activity ) { } @ Override public void onDetach ( ) { } @ Override public View onCreateView ( LayoutInflater inflater , ViewGroup container , Bundle savedInstanceState ) { } @ Override public void onDestroyView ( ) { } public void setEngine ( SearchEngine engine ) { <START_BUG> suggestClient = new SuggestClient ( getActivity ( ) , engine . getSuggestionTemplate ( SuggestionsFragment . GECKO_SEARCH_TERMS_URL_PARAM ) , SuggestionsFragment . SUGGESTION_TIMEOUT , SuggestionsFragment . SUGGESTION_MAX ) ; <END_BUG> } public void loadSuggestions ( String query ) { } public static class Suggestion { public final String value ; public final SpannableString display ; public final ForegroundColorSpan colorSpan ; public Suggestion ( String value , String searchTerm , int suggestionHighlightColor ) { } } private class SuggestionLoaderCallbacks implements LoaderManager . LoaderCallbacks < List < SuggestionsFragment . Suggestion > > { @ Override public Loader < List < SuggestionsFragment . Suggestion > > onCreateLoader ( int id , Bundle args ) { } @ Override public void onLoadFinished ( Loader < List < SuggestionsFragment . Suggestion > > loader , List < SuggestionsFragment . Suggestion > suggestions ) { } @ Override public void onLoaderReset ( Loader < List < SuggestionsFragment . Suggestion > > loader ) { } } private static class SuggestionAsyncLoader extends AsyncTaskLoader < List < SuggestionsFragment . Suggestion > > { private final SuggestClient suggestClient ; private final String searchTerm ; private List < SuggestionsFragment . Suggestion > suggestions ; private final int suggestionHighlightColor ; public SuggestionAsyncLoader ( Context context , SuggestClient suggestClient , String searchTerm ) { } @ Override public List < SuggestionsFragment . Suggestion > loadInBackground ( ) { } @ Override public void deliverResult ( List < SuggestionsFragment . Suggestion > suggestions ) { } @ Override protected void onStartLoading ( ) { } @ Override protected void onStopLoading ( ) { } @ Override protected void onReset ( ) { } } }

Fix:
suggestClient = new SuggestClient ( getActivity ( ) , engine . getSuggestionTemplate ( SuggestionsFragment . GECKO_SEARCH_TERMS_URL_PARAM ) , SuggestionsFragment . SUGGESTION_TIMEOUT , SuggestionsFragment . SUGGESTION_MAX , true ) ;
Buggy code:
public class ServicePlugin extends CordovaPlugin { public static final String LOG_KEY = "ServicePlugin" ; @ Override public boolean execute ( String action , JSONArray args , CallbackContext callbackContext ) throws JSONException { } public boolean startService ( String className ) { } public boolean stopService ( String className ) { Class < ? extends Service > serviceClass = ServiceManager . getServiceClassByName ( className ) ; <START_BUG> if ( ( serviceClass != null ) && ( ! ( isServiceRunning ( serviceClass ) ) ) ) { <END_BUG> Log . d ( ServicePlugin . LOG_KEY , ( "Starting<seq2seq4repair_space>service<seq2seq4repair_space>:<seq2seq4repair_space>" + className ) ) ; return cordova . getActivity ( ) . stopService ( new android . content . Intent ( cordova . getActivity ( ) , serviceClass ) ) ; } else { return true ; } } private boolean isServiceRunning ( Class < ? extends Service > serviceClass ) { } }

Fix:
if ( ( serviceClass != null ) && ( isServiceRunning ( serviceClass ) ) ) {
Buggy code:
public class AddListItemDialogFragment extends AddListDialogFragment { String parentKey ; public static AddListItemDialogFragment newInstance ( String parentKey , int layoutRes , int positiveStringResource , int hintResource ) { AddListItemDialogFragment fragment = new AddListItemDialogFragment ( ) ; Bundle bundle = getBundleWithResource ( layoutRes , positiveStringResource , hintResource ) ; bundle . putString ( KEY_CURRENT_LIST_PUSH_ID , parentKey ) ; <START_BUG> fragment . setArguments ( getBundleWithResource ( layoutRes , positiveStringResource , hintResource ) ) ; <END_BUG> return fragment ; } @ Override public void onCreate ( Bundle savedInstanceState ) { } @ Override protected void onListEdit ( ) { } }

Fix:
fragment . setArguments ( bundle ) ;
Buggy code:
public class FilterTextField extends TextField { private Runnable cancel = ( ) -> { } ; private Function < String , String > confirm = ( s ) -> s ; private ValidationSupport validationSupport = new ValidationSupport ( ) ; private String previousText ; private ArrayList < String > words = new ArrayList < > ( Arrays . asList ( "label" , "milestone" , "involves" , "assignee" , "author" , "title" , "body" , "is" , "issue" , "pr" , "merged" , "unmerged" , "no" , "type" , "has" , "state" , "open" , "closed" , "created" , "updated" ) ) ; public FilterTextField ( String initialText , int position ) { } private void setup ( ) { setPrefColumnCount ( 30 ) ; validationSupport . registerValidator ( this , ( c , newValue ) -> { boolean wasError = false ; try { Parser . parse ( getText ( ) ) ; } catch ( e ) { wasError = true ; } return ValidationResult . fromErrorIf ( this , "Parse<seq2seq4repair_space>error" , wasError ) ; } ) ; setOnKeyTyped ( ( e ) -> { boolean isModifierKeyPress = ( ( e . isAltDown ( ) ) || ( e . isMetaDown ( ) ) ) || ( e . isControlDown ( ) ) ; String key = e . getCharacter ( ) ; if ( ( ( key == null ) || ( key . isEmpty ( ) ) ) || isModifierKeyPress ) { return ; } char typed = e . getCharacter ( ) . charAt ( 0 ) ; if ( typed == ')' ) { if ( getCharAfterCaret ( ) . equals ( ")" ) ) { e . consume ( ) ; positionCaret ( ( ( getCaretPosition ( ) ) + 1 ) ) ; } } else if ( typed == '(' ) { e . consume ( ) ; insertMatchingBracket ( ) ; } else if ( typed == '\t' ) { e . consume ( ) ; if ( getSelectedText ( ) . isEmpty ( ) ) { movePastRemainingBrackets ( ) ; } else { confirmCompletion ( ) ; } } else if ( typed == '\b' ) { } else if ( Character . isAlphabetic ( typed ) ) { performCompletion ( e ) ; } else <START_BUG> if ( ( typed == '<seq2seq4repair_space>' ) && ( getText ( ) . isEmpty ( ) ) ) { <END_BUG> e . consume ( ) ; } } ) ; setOnKeyPressed ( ( e ) -> { if ( ( e . getCode ( ) ) == ( KeyCode . TAB ) ) { e . consume ( ) ; } } ) ; setOnKeyReleased ( ( e ) -> { if ( ( e . getCode ( ) ) == ( KeyCode . ENTER ) ) { confirmEdit ( ) ; } else if ( ( e . getCode ( ) ) == ( KeyCode . ESCAPE ) ) { revertEdit ( ) ; getParent ( ) . requestFocus ( ) ; } } ) ; } private void insertMatchingBracket ( ) { } private void performCompletion ( KeyEvent e ) { } private void confirmCompletion ( ) { } private void movePastRemainingBrackets ( ) { } private String getCurrentWord ( ) { } private int regexLastIndexOf ( String inString , String charClassRegex ) { } private String getCharAfterCaret ( ) { } private void revertEdit ( ) { } private void confirmEdit ( ) { } public void setFilterText ( String text ) { } public FilterTextField setOnCancel ( Runnable cancel ) { } public FilterTextField setOnConfirm ( Function < String , String > confirm ) { } public void addKeywords ( String ... keywords ) { } public void addKeywords ( List < String > keywords ) { } }

Fix:
if ( ( typed == '<seq2seq4repair_space>' ) && ( ( getText ( ) . isEmpty ( ) ) || ( getText ( ) . endsWith ( "<seq2seq4repair_space>" ) ) ) ) {
Buggy code:
class SerializedPagesCache { public SerializedPagesCache ( final int size ) { } private final int size ; private final List cache ; SerializedPagesCache . SerializedPageWithSession removePage ( Page page ) { } SerializedPagesCache . SerializedPageWithSession getPage ( Page page ) { SerializedPagesCache . SerializedPageWithSession result = null ; if ( ( size ) > 0 ) { synchronized ( cache ) { for ( Iterator i = cache . iterator ( ) ; i . hasNext ( ) ; ) { SoftReference ref = ( ( SoftReference ) ( i . next ( ) ) ) ; SerializedPagesCache . SerializedPageWithSession entry = ( ( SerializedPagesCache . SerializedPageWithSession ) ( ref . get ( ) ) ) ; if ( ( entry != null ) && ( ( entry . page . get ( ) ) == page ) ) { i . remove ( ) ; result = entry ; break ; } } if ( result != null ) { <START_BUG> cache . add ( result ) ; <END_BUG> } } } return result ; } SerializedPagesCache . SerializedPageWithSession getPage ( String sessionId , int pageId , String pageMapName , int version , int ajaxVersion ) { } SerializedPagesCache . SerializedPageWithSession storePage ( String sessionId , Page page , List pagesList ) { } static class SerializedPageWithSession implements Serializable { private static final long serialVersionUID = 1L ; final transient WeakReference page ; final List pages ; final String sessionId ; final int pageId ; final String pageMapName ; final int versionNumber ; final int ajaxVersionNumber ; SerializedPageWithSession ( String sessionId , Page page , List pages ) { } SerializedPageWithSession ( String sessionId , int pageId , String pageMapName , int versionNumber , int ajaxVersionNumber , List pages ) { } static Object NO_PAGE = new Object ( ) ; public String toString ( ) { } } }

Fix:
cache . add ( new SoftReference ( result ) ) ;
Buggy code:
public class ActionExchangeModel extends ExchangeModel { private String actionName ; public ActionExchangeModel ( String actionName , String deviceType , String vmdType , String exchangeName ) { } public PortInfoModel getOutPortInfo ( ) { } public void setOutPortInfo ( PortInfoModel outPortInfo ) { } public PortInfoModel getInPortInfo ( ) { } public void setInPortInfo ( PortInfoModel inPortInfo ) { } public String getActionName ( ) { } public int getMinSeparationInterval ( ) { } public int getMaxSeparationInterval ( ) { <START_BUG> return this . inPortInfo . getMinSeparationInterval ( ) ; <END_BUG> } }

Fix:
return this . inPortInfo . getMaxSeparationInterval ( ) ;
Buggy code:
@ Path ( "items" ) public class ItemsProduction { @ GET @ Produces ( MediaType . APPLICATION_JSON ) public ArrayList < Item > items ( ) { } @ GET @ Path ( "{id}" ) @ Produces ( MediaType . APPLICATION_JSON ) public Object item ( @ PathParam ( "id" ) String id ) { } @ POST @ Consumes ( MediaType . APPLICATION_JSON ) @ Produces ( MediaType . APPLICATION_JSON ) public Response createRow ( Item item ) { if ( ( item . getRow ( ) ) == null ) { return Response . status ( 400 ) . build ( ) ; } <START_BUG> new ItemDao ( ) . putToTabe ( item ) ; <END_BUG> return Response . status ( 200 ) . build ( ) ; } }

Fix:
new ItemDao ( ) . putToTable ( item ) ;
Buggy code:
public class InterceptorClassDeploymentDescriptorProcessor implements DeploymentUnitProcessor { @ Override public void deploy ( final DeploymentPhaseContext phaseContext ) throws DeploymentUnitProcessingException { final DeploymentUnit deploymentUnit = phaseContext . getDeploymentUnit ( ) ; final EjbJarMetaData ejbJarMetaData = deploymentUnit . getAttachment ( EJB_JAR_METADATA ) ; final EEModuleDescription eeModuleDescription = deploymentUnit . getAttachment ( EE_MODULE_DESCRIPTION ) ; final EEApplicationClasses applicationClassesDescription = deploymentUnit . getAttachment ( EE_APPLICATION_CLASSES_DESCRIPTION ) ; if ( ejbJarMetaData == null ) { return ; } if ( ! ( ejbJarMetaData instanceof EjbJar3xMetaData ) ) { return ; } final EjbJar3xMetaData metaData = ( ( EjbJar3xMetaData ) ( ejbJarMetaData ) ) ; if ( ( metaData . getInterceptors ( ) ) == null ) { return ; } for ( InterceptorMetaData interceptor : metaData . getInterceptors ( ) ) { String interceptorClassName = interceptor . getInterceptorClass ( ) ; if ( 0 == 0 ) { <START_BUG> throw new RuntimeException ( "FIXME" ) ; <END_BUG> } EEModuleClassDescription interceptorModuleClassDescription = null ; AroundInvokesMetaData aroundInvokes = interceptor . getAroundInvokes ( ) ; if ( aroundInvokes != null ) { for ( AroundInvokeMetaData aroundInvoke : aroundInvokes ) { String methodName = aroundInvoke . getMethodName ( ) ; MethodIdentifier methodIdentifier = MethodIdentifier . getIdentifier ( Object . class , methodName , InvocationContext . class ) ; interceptorModuleClassDescription . setAroundInvokeMethod ( methodIdentifier ) ; } } LifecycleCallbacksMetaData postConstructs = interceptor . getPostConstructs ( ) ; if ( postConstructs != null ) { for ( LifecycleCallbackMetaData postConstruct : postConstructs ) { String methodName = postConstruct . getMethodName ( ) ; MethodIdentifier methodIdentifier = MethodIdentifier . getIdentifier ( Void . TYPE , methodName , InvocationContext . class ) ; interceptorModuleClassDescription . setPostConstructMethod ( methodIdentifier ) ; } } LifecycleCallbacksMetaData preDestroys = interceptor . getPreDestroys ( ) ; if ( preDestroys != null ) { for ( LifecycleCallbackMetaData preDestroy : preDestroys ) { String methodName = preDestroy . getMethodName ( ) ; MethodIdentifier methodIdentifier = MethodIdentifier . getIdentifier ( Void . TYPE , methodName , InvocationContext . class ) ; interceptorModuleClassDescription . setPreDestroyMethod ( methodIdentifier ) ; } } } } @ Override public void undeploy ( final DeploymentUnit context ) { } }

Fix:
return ;