nus-yam/ex-repair huggingface dataset:
Buggy code:
public class BreadCrumbPanelLink extends BreadCrumbLink { private static final long serialVersionUID = 1L ; private final IBreadCrumbModel breadCrumbModel ; private final IBreadCrumbPanelFactory breadCrumbPanelFactory ; public BreadCrumbPanelLink ( final String id , final BreadCrumbPanel caller , final Class < ? extends BreadCrumbPanel > panelClass ) { } public BreadCrumbPanelLink ( final String id , final IBreadCrumbModel breadCrumbModel , final Class < BreadCrumbPanel > panelClass ) { } public BreadCrumbPanelLink ( final String id , final IBreadCrumbModel breadCrumbModel , final IBreadCrumbPanelFactory breadCrumbPanelFactory ) { } @ Override <START_BUG> protected final IBreadCrumbParticipant getParticipant ( String componentId ) { <END_BUG> return breadCrumbPanelFactory . create ( componentId , breadCrumbModel ) ; } }

Fix:
protected final IBreadCrumbParticipant getParticipant ( final String componentId ) {
Buggy code:
@ RunWith ( Arquillian . class ) @ RunAsClient public class SubResourceTestCase { @ Deployment ( testable = false ) public static Archive < ? > deploy ( ) { } @ ArquillianResource private URL url ; private String performCall ( String urlPattern ) throws Exception { } @ Test public void testSubResource ( ) throws Exception { assertEquals ( "Jozef" , performCall ( "api//person//Jozef" ) ) ; <START_BUG> assertEquals ( "Jozef's<seq2seq4repair_space>address<seq2seq4repair_space>is<seq2seq4repair_space>unknown." , performCall ( "subresource//api//person//Jozef//address" ) ) ; <END_BUG> } }

Fix:
assertEquals ( "Jozef's<seq2seq4repair_space>address<seq2seq4repair_space>is<seq2seq4repair_space>unknown." , performCall ( "api//person//Jozef//address" ) ) ;
Buggy code:
public class ZipFile { private Hashtable entries = new Hashtable ( ) ; private Hashtable nameMap = new Hashtable ( ) ; private Hashtable dataOffsets = new Hashtable ( ) ; private String encoding = null ; private RandomAccessFile archive ; public ZipFile ( File f ) throws IOException , ZipException { } public ZipFile ( String name ) throws IOException , ZipException { } public ZipFile ( String name , String encoding ) throws IOException , ZipException { } public ZipFile ( File f , String encoding ) throws IOException , ZipException { } public String getEncoding ( ) { } public void close ( ) throws IOException { } public Enumeration getEntries ( ) { } public ZipEntry getEntry ( String name ) { } public InputStream getInputStream ( ZipEntry ze ) throws IOException , ZipException { } private static final int CFH_LEN = ( ( ( ( ( ( ( ( ( ( ( ( ( ( 2 + 2 ) + 2 ) + 2 ) + 2 ) + 2 ) + 4 ) + 4 ) + 4 ) + 2 ) + 2 ) + 2 ) + 2 ) + 2 ) + 4 ) + 4 ; private void populateFromCentralDirectory ( ) throws IOException , ZipException { } private void positionAtCentralDirectory ( ) throws IOException , ZipException { } private static final long LFH_OFFSET_FOR_FILENAME_LENGTH = ( ( ( ( ( ( ( 4 + 2 ) + 2 ) + 2 ) + 2 ) + 2 ) + 4 ) + 4 ) + 4 ; private void resolveLocalFileHeaderData ( ) throws IOException { } protected static Date fromDosTime ( ZipLong l ) { long dosTime = l . getValue ( ) ; Calendar cal = Calendar . getInstance ( ) ; cal . set ( Calendar . YEAR , ( ( ( int ) ( ( dosTime > > 25 ) & 127 ) ) + 1980 ) ) ; cal . set ( Calendar . MONTH , ( ( ( int ) ( ( dosTime > > 21 ) & 15 ) ) - 1 ) ) ; cal . set ( Calendar . DATE , ( ( ( int ) ( dosTime > > 16 ) ) & 31 ) ) ; <START_BUG> cal . set ( Calendar . HOUR , ( ( ( int ) ( dosTime > > 11 ) ) & 31 ) ) ; <END_BUG> cal . set ( Calendar . MINUTE , ( ( ( int ) ( dosTime > > 5 ) ) & 63 ) ) ; cal . set ( Calendar . SECOND , ( ( ( int ) ( dosTime << 1 ) ) & 62 ) ) ; return cal . getTime ( ) ; } protected String getString ( byte [ ] bytes ) throws ZipException { } private class BoundedInputStream extends InputStream { private long start ; private long remaining ; private long loc ; private boolean addDummyByte = false ; BoundedInputStream ( long start , long remaining ) { } public int read ( ) throws IOException { } public int read ( byte [ ] b , int off , int len ) throws IOException { } void addDummy ( ) { } } }

Fix:
cal . set ( Calendar . HOUR_OF_DAY , ( ( ( int ) ( dosTime > > 11 ) ) & 31 ) ) ;
Buggy code:
class ST implements BroadcastReceiver , Runnable { private String _name ; private String _ip ; private int _port ; ArrayList < String > group = null ; public static ArrayList < Process > p_client_group = null ; ArrayList < String > messages = null ; private Socket s ; int msgnum = 0 ; private ServerSocket serverSocket ; private Socket _client ; private ThreadPoolExecutor executor ; BufferedWriter bw ; BufferedReader br ; static Process p ; public static ReliableBroadcast rb ; private static final int heartbeat_rate = 5 ; private static final String serverAddress = "data.cs.purdue.edu" ; private static int portNumber = 1222 ; private static final int THREAD_POOL_CAPACITY = 10 ; @ Override public void receive ( Message m ) { } public ST ( ) { } private void listen ( ) { } @ SuppressWarnings ( "unchecked" ) private ArrayList < Process > getProcess ( ) { } private void prompt ( ) { this . listen ( ) ; Scanner sc = new Scanner ( System . in ) ; while ( true ) { try { if ( ( msgnum ) == 10000 ) { System . exit ( 0 ) ; } <START_BUG> String command = msgnum . toString ( ) ; <END_BUG> this . p_client_group = this . getProcess ( ) ; for ( int i = 0 ; i < ( this . p_client_group . size ( ) ) ; i ++ ) { Process temp = this . p_client_group . get ( i ) ; String ip = temp . getIP ( ) ; int port = temp . getPort ( ) ; String id = temp . getID ( ) ; String send = id . concat ( "<seq2seq4repair_space>" ) . concat ( ip ) . concat ( "<seq2seq4repair_space>" ) . concat ( Integer . toString ( port ) ) ; if ( id . equals ( this . _name ) ) { continue ; } Socket socket = new Socket ( ip , port ) ; BufferedWriter bw = new BufferedWriter ( new OutputStreamWriter ( socket . getOutputStream ( ) ) ) ; String msg = ( ( ( ( ( this . _name ) + ":<seq2seq4repair_space>" ) + command ) + "#" ) + ( msgnum ) ) + "\n" ; bw . write ( msg ) ; bw . flush ( ) ; socket . close ( ) ; } if ( command . equals ( "exit" ) ) { sc . close ( ) ; System . exit ( 1 ) ; } ( msgnum ) ++ ; } catch ( Exception e ) { System . exit ( 1 ) ; } } } public boolean sendMessage ( String s ) { } public String readMessage ( ) { } @ SuppressWarnings ( "resource" ) public boolean register ( ) { } public void sendHeartbeat ( ) { } @ Override public void run ( ) { } public static void main ( String [ ] args ) throws Exception { } }

Fix:
String command = Integer . toString ( msgnum ) ;
Buggy code:
public class RequestEncodingTest extends TestCase { private static final Logger log = LoggerFactory . getLogger ( RequestEncodingTest . class ) ; private WicketApplication application ; private WicketTester tester ; @ Override protected void setUp ( ) throws Exception { } @ Override protected void tearDown ( ) throws Exception { } public void testDefault ( ) { tester . startPage ( A . class , new PageParameters ( ) . set ( "file" , "umlaut-ä-ö-ü" ) ) ; tester . assertRenderedPage ( B . class ) ; String url2 = ( ( B ) ( tester . getLastRenderedPage ( ) ) ) . getInterceptContinuationURL ( ) ; assertTrue ( url2 . contains ( "umlaut-%C3%A4-%C3%B6-%C3%BC" ) ) ; tester . clickLink ( "link" ) ; tester . assertRenderedPage ( A . class ) ; String file = ( ( A ) ( tester . getLastRenderedPage ( ) ) ) . getFileParameter ( ) ; assertEquals ( "umlaut-ä-ö-ü" , file ) ; String document = tester . getLastResponseAsString ( ) ; <START_BUG> assertTrue ( document . contains ( "umlaut-&#228;-&#246;-&#252;" ) ) ; <END_BUG> } public void testUmlautsInRequestUri ( ) { } }

Fix:
assertTrue ( document . contains ( "umlaut-ä-ö-ü" ) ) ;
Buggy code:
public final class ComponentResourceRequestTarget implements IRequestTarget { private final Page page ; private final Component component ; private final RequestListenerInterface listener ; public ComponentResourceRequestTarget ( Page page , Component component , RequestListenerInterface listener ) { } public void respond ( RequestCycle requestCycle ) { } public void detach ( RequestCycle requestCycle ) { } public Object getLock ( RequestCycle requestCycle ) { } @ Override public boolean equals ( Object obj ) { } @ Override public int hashCode ( ) { } @ Override public String toString ( ) { <START_BUG> StringBuffer b = new StringBuffer ( getClass ( ) . getName ( ) ) . append ( "@" ) . append ( hashCode ( ) ) . append ( page ) . append ( "->" ) . append ( component . getId ( ) ) . append ( "->IResourceListener" ) ; <END_BUG> return b . toString ( ) ; } }

Fix:
StringBuilder b = new StringBuilder ( getClass ( ) . getName ( ) ) . append ( "@" ) . append ( hashCode ( ) ) . append ( page ) . append ( "->" ) . append ( component . getId ( ) ) . append ( "->IResourceListener" ) ;
Buggy code:
public class TridentWordCount { public static class Split extends BaseFunction { @ Override public void execute ( TridentTuple tuple , TridentCollector collector ) { } } public static StormTopology buildTopology ( LocalDRPC drpc ) { } public static void main ( String [ ] args ) throws Exception { Config conf = new Config ( ) ; conf . setMaxSpoutPending ( 20 ) ; if ( ( args . length ) == 0 ) { LocalDRPC drpc = new LocalDRPC ( ) ; LocalCluster cluster = new LocalCluster ( ) ; cluster . submitTopology ( "wordCounter" , conf , TridentWordCount . buildTopology ( drpc ) ) ; for ( int i = 0 ; i < 100 ; i ++ ) { System . out . println ( ( "DRPC<seq2seq4repair_space>RESULT:<seq2seq4repair_space>" + ( drpc . execute ( "words" , "cat<seq2seq4repair_space>the<seq2seq4repair_space>dog<seq2seq4repair_space>jumped" ) ) ) ) ; Thread . sleep ( 1000 ) ; } } else { conf . setNumWorkers ( 3 ) ; <START_BUG> StormSubmitter . submitTopologyWithProgressBar ( args [ 0 ] , conf , TridentWordCount . buildTopology ( null ) ) ; <END_BUG> } } }

Fix:
StormSubmitter . submitTopology ( args [ 0 ] , conf , TridentWordCount . buildTopology ( null ) ) ;
Buggy code:
public class CustomInterceptorTests { protected ConfigurableApplicationContext ctx ; protected CacheableService < ? > cs ; @ Before public void setup ( ) { } @ After public void tearDown ( ) { } @ Test public void onlyOneInterceptorIsAvailable ( ) { } @ Test public void customInterceptorAppliesWithRuntimeException ( ) { } @ Test public void customInterceptorAppliesWithCheckedException ( ) { } @ Configuration @ EnableCaching static class EnableCachingConfig { @ Bean public CacheManager cacheManager ( ) { <START_BUG> return CacheTestUtils . createSimpleCacheManager ( "default" , "primary" , "secondary" ) ; <END_BUG> } @ Bean public CacheableService < ? > service ( ) { } @ Bean public CacheInterceptor cacheInterceptor ( CacheOperationSource cacheOperationSource ) { } } @ SuppressWarnings ( "serial" ) static class TestCacheInterceptor extends CacheInterceptor { @ Override protected Object invokeOperation ( CacheOperationInvoker invoker ) { } } }

Fix:
return CacheTestUtils . createSimpleCacheManager ( "testCache" , "primary" , "secondary" ) ;
Buggy code:
public class ConcreteMovementMap < PointData > implements MovementMap < PointData > { private ArrayList < ArrayList < PointData > > map ; private int xSize ; private int ySize ; private PointData initialisingType ; public ConcreteMovementMap ( int xSize , int ySize ) { } public ConcreteMovementMap ( int xSize , int ySize , PointData initData ) { } protected void initiliseMap ( ) { } @ Override public void addPoint ( int x , int y , PointData p ) { } @ Override public PointData getPoint ( int x , int y ) { } @ Override public void resetPoint ( int x , int y ) throws IndexOutOfBoundsException { } @ Override public boolean isPoint ( int x , int y ) { } @ Override public int getYSize ( ) { } @ Override public int getXSize ( ) { } protected boolean checkPoint ( int x , int y ) { <START_BUG> return ( ( ( x > 0 ) && ( x < ( this . xSize ) ) ) && ( y > 0 ) ) && ( y < ( this . ySize ) ) ; <END_BUG> } protected PointData unsafeGetPoint ( int x , int y ) { } }

Fix:
return ( ( ( x >= 0 ) && ( x < ( this . xSize ) ) ) && ( y >= 0 ) ) && ( y < ( this . ySize ) ) ;
Buggy code:
public class Connection { private final GenomizerView view ; private String ip ; private int responseCode ; private String responseBody ; private HttpURLConnection connection ; private Request request ; public Connection ( String ip , GenomizerView view ) { } public void sendRequest ( Request request , String token , String type ) throws RequestException { } private void connect ( Request request , String token , String type ) throws IOException , MalformedURLException , ProtocolException { String targetUrl ; if ( ip . startsWith ( "http:////" ) ) { <START_BUG> targetUrl = ip ; <END_BUG> } else { targetUrl = ( "http:////" + ( ip ) ) + ( request . url ) ; } URL url = new URL ( targetUrl ) ; connection = ( ( HttpURLConnection ) ( url . openConnection ( ) ) ) ; if ( type . equals ( "application//json" ) ) { connection . setDoOutput ( true ) ; } connection . setReadTimeout ( 2000 ) ; connection . setRequestMethod ( request . type ) ; connection . setRequestProperty ( "Content-Type" , type ) ; if ( ! ( token . isEmpty ( ) ) ) { connection . setRequestProperty ( "Authorization" , token ) ; } } private void fetchResponse ( InputStream inputStream ) throws IOException { } public int getResponseCode ( ) { } public String getResponseBody ( ) { } public void checkType ( String output ) { } }

Fix:
targetUrl = ( ip ) + ( request . url ) ;
Buggy code:
public class Guesser < T > extends ReguessableValue { static class GuessMap extends HashMap < MethodCall , Object > implements InvocationHandler { private static final long serialVersionUID = 1L ; public GuessMap ( Guesser . GuessMap guesses ) { } public GuessMap ( ) { } Guesser . GuessMap replaceGuess ( Object oldValue , Object newValue ) { } protected Object generateGuess ( Class < ? > returnType ) { } Object getGuess ( MethodCall call ) { } public Object invoke ( Object proxy , Method method , Object [ ] args ) throws Throwable { } } private final Guesser . GuessMap guesses ; private final Class < T > type ; public Guesser ( Class < T > type ) { } public Guesser ( Class < T > type , Guesser . GuessMap guesses ) { } @ SuppressWarnings ( "unchecked" ) public T getProxy ( ) { } @ Override public List < ReguessableValue > reguesses ( AssumptionViolatedException e ) { } @ Override <START_BUG> public Object getValue ( Object test ) throws CouldNotGenerateValueException { <END_BUG> return getProxy ( ) ; } public Class < T > getType ( ) { } }

Fix:
public Object getValue ( ) throws CouldNotGenerateValueException {
Buggy code:
public interface MetaDataFactory extends MetaDataModes { public static final int STORE_DEFAULT = 0 ; public static final int STORE_PER_CLASS = 1 ; public static final int STORE_VERBOSE = 2 ; public void setRepository ( MetaDataRepository repos ) { } public void setStoreDirectory ( File dir ) { } public void setStoreMode ( int store ) { } public void setStrict ( boolean strict ) { } public void load ( Class < ? > cls , int mode , ClassLoader envLoader ) { } public boolean store ( ClassMetaData [ ] metas , QueryMetaData [ ] queries , SequenceMetaData [ ] seqs , int mode , Map < File , String > output ) { } public boolean drop ( Class < ? > [ ] cls , int mode , ClassLoader envLoader ) { } public MetaDataDefaults getDefaults ( ) { } public Set < String > getPersistentTypeNames ( boolean devpath , ClassLoader envLoader ) { } public Class < ? > getQueryScope ( String queryName , ClassLoader loader ) { } public Class < ? > getResultSetMappingScope ( String resultSetMappingName , ClassLoader loader ) { } public ClassArgParser newClassArgParser ( ) { } public void clear ( ) { } public void addClassExtensionKeys ( Collection < ? > exts ) { } public void addFieldExtensionKeys ( Collection < ? > exts ) { } <START_BUG> public void loadXMLMetaData ( FieldMetaData fmd ) ; <END_BUG> public String getMetaModelClassName ( String managedClassName ) { } public String getManagedClassName ( String metamodelClassName ) { } public boolean isMetaClass ( Class < ? > c ) { } public Class < ? > getManagedClass ( Class < ? > c ) { } }

Fix:
public void loadXMLMetaData ( Class < ? > cls ) ;
Buggy code:
public class AutolinkComponentResolver implements IComponentResolver { private static Log log = LogFactory . getLog ( AutolinkComponentResolver . class ) ; public boolean resolve ( final Container container , final MarkupStream markupStream , final ComponentTag tag ) { } private Link resolveAutomaticLink ( final Page page , final MarkupStream markupStream , final String componentName , final ComponentTag tag ) { final String originalHref = tag . getAttributes ( ) . getString ( "href" ) ; final int pos = originalHref . indexOf ( ".html" ) ; if ( pos <= 0 ) { markupStream . throwMarkupException ( ( "Expected<seq2seq4repair_space>to<seq2seq4repair_space>find<seq2seq4repair_space>'*.html'<seq2seq4repair_space>in<seq2seq4repair_space>href:<seq2seq4repair_space>" + originalHref ) ) ; } String classPath = originalHref . substring ( 0 , pos ) ; PageParameters pageParameters = null ; if ( ( ( classPath . length ( ) ) + 6 ) < ( originalHref . length ( ) ) ) { String queryString = originalHref . substring ( ( ( classPath . length ( ) ) + 6 ) ) ; pageParameters = new PageParameters ( new ValueMap ( queryString , "&" ) ) ; } classPath = classPath . replaceAll ( "//" , "." ) ; classPath = ( ( page . getClass ( ) . getPackage ( ) . getName ( ) ) + "." ) + classPath ; Class clazz = page . getApplicationSettings ( ) . getDefaultClassResolver ( ) . resolveClass ( classPath ) ; <START_BUG> final String id = ( componentName + "-" ) + ( page . getAutoIndex ( ) ) ; <END_BUG> return new wicket . markup . html . link . BookmarkablePageLink ( id , clazz , pageParameters ) ; } }

Fix:
final String id = componentName + ( page . getAutoIndex ( ) ) ;
Buggy code:
public abstract class DefaultCompilerAdapter extends AbstractLogEnabled implements CompilerAdapter { protected static String LINE_SEP = System . getProperty ( "line.separator" ) ; protected boolean m_debug ; protected boolean m_optimize ; protected boolean m_deprecation ; protected boolean m_depend ; protected boolean m_verbose ; protected Javac m_attributes ; protected Path m_bootclasspath ; protected Path m_compileClasspath ; protected File [ ] m_compileList ; protected File m_destDir ; protected String m_encoding ; protected Path m_extdirs ; protected boolean m_includeAntRuntime ; protected boolean m_includeJavaRuntime ; protected String m_memoryInitialSize ; protected String m_memoryMaximumSize ; protected Project m_project ; protected Path src ; protected String target ; public void setJavac ( Javac attributes ) { <START_BUG> this . m_attributes = attributes ; <END_BUG> src = attributes . getSrcdir ( ) ; m_destDir = attributes . getDestdir ( ) ; m_encoding = attributes . getEncoding ( ) ; m_debug = attributes . getDebug ( ) ; m_optimize = attributes . getOptimize ( ) ; m_deprecation = attributes . getDeprecation ( ) ; m_depend = attributes . getDepend ( ) ; m_verbose = attributes . getVerbose ( ) ; target = attributes . getTarget ( ) ; m_bootclasspath = attributes . getBootclasspath ( ) ; m_extdirs = attributes . getExtdirs ( ) ; m_compileList = attributes . getFileList ( ) ; m_compileClasspath = attributes . getClasspath ( ) ; m_project = attributes . getProject ( ) ; m_includeAntRuntime = attributes . getIncludeantruntime ( ) ; m_includeJavaRuntime = attributes . getIncludejavaruntime ( ) ; m_memoryInitialSize = attributes . getMemoryInitialSize ( ) ; m_memoryMaximumSize = attributes . getMemoryMaximumSize ( ) ; } public Javac getJavac ( ) { } protected Commandline setupJavacCommand ( ) throws TaskException { } protected Commandline setupJavacCommand ( boolean debugLevelCheck ) throws TaskException { } protected Commandline setupJavacCommandlineSwitches ( Commandline cmd , boolean useDebugLevel ) throws TaskException { } protected Commandline setupModernJavacCommand ( ) throws TaskException { } protected Commandline setupModernJavacCommandlineSwitches ( Commandline cmd ) throws TaskException { } protected Path getCompileClasspath ( ) throws TaskException { } protected void addCurrentCompilerArgs ( Commandline cmd ) { } protected int executeExternalCompile ( String [ ] args , int firstFileName ) throws TaskException { } protected void logAndAddFilesToCompile ( Commandline cmd ) { } }

Fix:
m_attributes = attributes ;
Buggy code:
public class Enclosure extends WebMarkupContainer { private static final long serialVersionUID = 1L ; private static final Logger log = LoggerFactory . getLogger ( Enclosure . class ) ; private Component childComponent ; private final CharSequence childId ; public Enclosure ( final String id , final CharSequence childId ) { } public boolean isTransparentResolver ( ) { } private Component getChildComponent ( final CharSequence childId ) { } protected void onComponentTagBody ( MarkupStream markupStream , ComponentTag openTag ) { if ( ( childComponent ) == null ) { childComponent = getChildComponent ( childId ) ; } if ( ( childComponent ) == ( this ) ) { throw new WicketRuntimeException ( "Programming<seq2seq4repair_space>error:<seq2seq4repair_space>childComponent<seq2seq4repair_space>==<seq2seq4repair_space>enclose<seq2seq4repair_space>component;<seq2seq4repair_space>endless<seq2seq4repair_space>loop" ) ; } else if ( ( childComponent ) != null ) { setVisible ( ( ( childComponent . isVisible ( ) ) && ( childComponent . isRenderAllowed ( ) ) ) ) ; } if ( ( isVisible ( ) ) == true ) { super . onComponentTagBody ( markupStream , openTag ) ; } else { <START_BUG> markupStream . skipUntil ( openTag . getName ( ) ) ; <END_BUG> } } }

Fix:
markupStream . skipToMatchingCloseTag ( openTag ) ;
Buggy code:
public class TourFragment extends Fragment { int contentLayoutId = layout . content_tours ; @ InjectView ( id . self_guided_tour_view ) RelativeLayout selfGuidedTourView ; @ InjectView ( id . self_guided_tour_title ) TextView selfGuidedTourTitleTextView ; @ InjectView ( id . stops_info_text_view ) TextView stopsInfoTextView ; @ InjectView ( id . distance_info_text_view ) TextView distanceInfoTextView ; @ InjectView ( id . time_info_text_view ) TextView timeInfoTextView ; @ OnClick ( id . send_feedback_view ) public void sendFeedback ( ) { } @ OnClick ( id . mit_admissions_view ) public void openMitAdmissionsWebsite ( ) { } @ OnClick ( id . mit_info_center_view ) public void openMitInfoCenterWebsite ( ) { } @ OnClick ( id . more_guided_tours_text_view ) public void openMoreGuidedToursWebsite ( ) { } private MITAPIClient mitApiClient ; public TourFragment ( ) { } @ Nullable @ Override public View onCreateView ( LayoutInflater inflater , ViewGroup container , Bundle savedInstanceState ) { } public void setTourInfoView ( MITTourWrapper mitTourWrapper ) { } public void openWebsiteDialog ( ) { new android . app . AlertDialog . Builder ( getActivity ( ) ) . setTitle ( getResources ( ) . getString ( open_in_browser ) ) . setMessage ( getResources ( ) . getString ( mit_about_guided_tour_url ) ) . setPositiveButton ( getResources ( ) . getString ( open_button ) , new DialogInterface . OnClickListener ( ) { @ Override public void onClick ( DialogInterface dialog , int which ) { <START_BUG> openOutsideWebsite ( getResources ( ) . getString ( open_in_browser ) ) ; <END_BUG> } } ) . setNegativeButton ( getResources ( ) . getString ( cancel_button ) , new DialogInterface . OnClickListener ( ) { @ Override public void onClick ( DialogInterface dialog , int which ) { dialog . cancel ( ) ; } } ) . show ( ) ; } public void openOutsideWebsite ( String url ) { } }

Fix:
openOutsideWebsite ( getResources ( ) . getString ( mit_about_guided_tour_url ) ) ;
Buggy code:
public class MainActivity extends ActionBarActivity { GridAdapter gridAdapter ; Button sendRequest ; private static MainActivity activityInstance ; TextView allCost ; TextView tvRequester ; TextView tvArrivalTime ; @ Override protected void onCreate ( Bundle savedInstanceState ) { } public static MainActivity getActivityInstance ( ) { } public GridAdapter getGridAdapter ( ) { } private static String getStringFromInputStream ( InputStream is ) { } private final class PostAsync extends AsyncTask < Void , Void , Void > { @ Override protected Void doInBackground ( Void ... params ) { final RestClient restClient = new RestClient ( ) ; HttpResponse httpResponse = restClient . execute ( "POST" ) ; MobileOffice office = makeOffice ( httpResponse ) ; final int cost = office . getInfo ( ) . get ( 0 ) . getOffice_cost ( ) ; runOnUiThread ( new Runnable ( ) { @ Override public void run ( ) { final String inst = "총<seq2seq4repair_space>전력<seq2seq4repair_space>소모량:<seq2seq4repair_space>" ; allCost . setText ( ( ( inst + ( Integer . toString ( cost ) ) ) + "W//h" ) ) ; String userName = restClient . getCurrUser ( ) . getName ( ) ; tvRequester . setText ( userName ) ; int startTime = restClient . getCurrUser ( ) . getStart_time ( ) ; <START_BUG> tvArrivalTime . setText ( String . valueOf ( startTime ) ) ; <END_BUG> } } ) ; officeParse ( office ) ; return null ; } @ Override protected void onPostExecute ( Void aVoid ) { } } private void disableReqBtn ( ) { } private void enableReqBtn ( ) { } private final class GetAsync extends AsyncTask < Void , Void , Void > { @ Override protected Void doInBackground ( Void ... params ) { RestClient restClient = new RestClient ( ) ; HttpResponse httpResponse = restClient . execute ( "GET" ) ; MobileOffice office = makeOffice ( httpResponse ) ; officeParse ( office ) ; return null ; } @ Override protected void onPostExecute ( Void aVoid ) { } } public void officeParse ( MobileOffice office ) { } public MobileOffice makeOffice ( HttpResponse httpResponse ) { } }

Fix:
tvArrivalTime . setText ( ( ( String . valueOf ( startTime ) ) + ":00<seq2seq4repair_space>PM" ) ) ;
Buggy code:
public class ExampleRunner { public static void main ( String [ ] args ) throws Exception { DeploymentUtils utils = null ; try { <START_BUG> utils = new DeploymentUtils ( "ds-mbean.sar" , Test . class . getPackage ( ) , true ) ; <END_BUG> utils . deploy ( ) ; ObjectName objectName = new ObjectName ( "jboss:name=test,type=ds" ) ; MBeanServerConnection mbeanServer = utils . getConnection ( ) ; System . out . println ( "Calling<seq2seq4repair_space>TestMBean.test()<seq2seq4repair_space>on<seq2seq4repair_space>server" ) ; String s = ( ( String ) ( mbeanServer . invoke ( objectName , "test" , new Object [ 0 ] , new String [ 0 ] ) ) ) ; System . out . println ( ( "Received<seq2seq4repair_space>reply:<seq2seq4repair_space>" + s ) ) ; } catch ( Exception e ) { Throwable parent = e ; while ( parent != null ) { if ( ( parent instanceof NameNotFoundException ) && ( ( e . getMessage ( ) . indexOf ( "H2DS" ) ) > ( - 1 ) ) ) { ExampleRunner . usage ( parent ) ; return ; } parent = parent . getCause ( ) ; } e . printStackTrace ( ) ; } finally { if ( utils != null ) { utils . undeploy ( ) ; } safeClose ( utils ) ; } } private static void usage ( Throwable t ) throws Exception { } }

Fix:
utils = new DeploymentUtils ( "ds-mbean.sar" , true , Test . class . getPackage ( ) ) ;
Buggy code:
public class RadioGroup extends FormComponent implements IOnChangeListener { private static final long serialVersionUID = 1L ; public RadioGroup ( String id ) { } public RadioGroup ( String id , IModel model ) { } protected boolean wantOnSelectionChangedNotifications ( ) { } protected boolean getStatelessHint ( ) { } protected Object convertValue ( String [ ] input ) throws ConversionException { } public final void onSelectionChanged ( ) { <START_BUG> convert ( ) ; <END_BUG> updateModel ( ) ; onSelectionChanged ( getModelObject ( ) ) ; } protected void onSelectionChanged ( final Object newSelection ) { } protected final boolean supportsPersistence ( ) { } }

Fix:
convertInput ( ) ;
Buggy code:
public class ForwardCommand extends FolderCommand { ComposerController controller ; public ForwardCommand ( FrameController frameController , DefaultCommandReference [ ] references ) { } public void updateGUI ( ) throws Exception { } public void execute ( Worker worker ) throws Exception { Folder folder = ( ( Folder ) ( ( ( org . columba . mail . command . FolderCommandReference ) ( getReferences ( ) [ 0 ] ) ) . getFolder ( ) ) ) ; Object [ ] uids = ( ( org . columba . mail . command . FolderCommandReference ) ( getReferences ( ) [ 0 ] ) ) . getUids ( ) ; <START_BUG> Message message = ( ( Message ) ( folder . getMessage ( uids [ 0 ] , worker ) ) ) ; <END_BUG> ColumbaHeader header = ( ( ColumbaHeader ) ( message . getHeader ( ) ) ) ; MimePartTree mimePartTree = folder . getMimePartTree ( uids [ 0 ] , worker ) ; String source = folder . getMessageSource ( uids [ 0 ] , worker ) ; message . setSource ( source ) ; controller = new ComposerController ( frameController ) ; MessageBuilder . getInstance ( ) . createMessage ( message , controller . getModel ( ) , FORWARD ) ; } public void undo ( Worker worker ) throws Exception { } public void redo ( Worker worker ) throws Exception { } }

Fix:
Message message = new Message ( ) ;
Buggy code:
public class WebServiceSampler extends HTTPSamplerBase { private static Logger log = LoggingManager . getLoggerForClass ( ) ; public static final String XML_DATA = "HTTPSamper.xml_data" ; public static final String SOAP_ACTION = "Soap.Action" ; public static final String XML_DATA_FILE = "WebServiceSampler.xml_data_file" ; public static final String XML_PATH_LOC = "WebServiceSampler.xml_path_loc" ; public static final String MEMORY_CACHE = "WebServiceSampler.memory_cache" ; public static final String READ_RESPONSE = "WebServiceSampler.read_response" ; public static final String USE_PROXY = "WebServiceSampler.use_proxy" ; public static final String PROXY_HOST = "WebServiceSampler.proxy_host" ; public static final String PROXY_PORT = "WebServiceSampler.proxy_port" ; public static final String WSDL_URL = "WebserviceSampler.wsdl_url" ; private final Random RANDOM = new Random ( ) ; private String fileContents = null ; public void setXmlPathLoc ( String path ) { } public String getXmlPathLoc ( ) { } public void setXmlFile ( String filename ) { } public String getXmlFile ( ) { } protected String getRandomFileName ( ) { if ( ( this . getXmlPathLoc ( ) ) != null ) { File src = new File ( this . getXmlPathLoc ( ) ) ; if ( ( src . isDirectory ( ) ) && ( ( src . list ( ) ) != null ) ) { <START_BUG> File [ ] fileList = src . listFiles ( new JMeterFileFilter ( new String [ ] { ".xml" } ) ) ; <END_BUG> File one = fileList [ RANDOM . nextInt ( fileList . length ) ] ; return one . getAbsolutePath ( ) ; } else { return getXmlFile ( ) ; } } else { return getXmlFile ( ) ; } } public void setXmlData ( String data ) { } public String getXmlData ( ) { } public void setSoapAction ( String data ) { } public String getSoapAction ( ) { } public void setMemoryCache ( boolean cache ) { } public boolean getMemoryCache ( ) { } public void setReadResponse ( boolean read ) { } public boolean getReadResponse ( ) { } public void setUseProxy ( boolean proxy ) { } public boolean getUseProxy ( ) { } public void setProxyHost ( String host ) { } public String getProxyHost ( ) { } public void setProxyPort ( String port ) { } public int getProxyPort ( ) { } public void setWsdlURL ( String url ) { } public String getWsdlURL ( ) { } private void checkProxy ( ) { } private Element createDocument ( ) { } protected Document openDocument ( String file ) { } protected HTTPSampleResult sample ( URL u , String s , boolean b , int i ) { } public SampleResult sample ( ) { } public void addEncodedArgument ( String name , String value , String metaData ) { } public String convertSoapHeaders ( Hashtable ht ) { } }

Fix:
File [ ] fileList = src . listFiles ( new JMeterFileFilter ( new String [ ] { ".xml" } , false ) ) ;
Buggy code:
public class WorkingSetTypePage extends WizardPage { private static final int SIZING_SELECTION_WIDGET_WIDTH = 50 ; private static final int SIZING_SELECTION_WIDGET_HEIGHT = 200 ; private TableViewer typesListViewer ; private Map icons ; public WorkingSetTypePage ( ) { } public boolean canFlipToNextPage ( ) { } private void createContent ( ) { WorkingSetRegistry registry = WorkbenchPlugin . getDefault ( ) . getWorkingSetRegistry ( ) ; <START_BUG> WorkingSetDescriptor [ ] descriptors = registry . getWorkingSetDescriptors ( ) ; <END_BUG> Table table = ( ( Table ) ( typesListViewer . getControl ( ) ) ) ; for ( int i = 0 ; i < ( descriptors . length ) ; i ++ ) { TableItem tableItem = new TableItem ( table , SWT . NULL ) ; ImageDescriptor imageDescriptor = descriptors [ i ] . getIcon ( ) ; if ( imageDescriptor != null ) { Image icon = ( ( Image ) ( icons . get ( imageDescriptor ) ) ) ; if ( icon == null ) { icon = imageDescriptor . createImage ( ) ; icons . put ( imageDescriptor , icon ) ; } tableItem . setImage ( icon ) ; } tableItem . setText ( descriptors [ i ] . getName ( ) ) ; tableItem . setData ( descriptors [ i ] ) ; } } public void createControl ( Composite parent ) { } public void dispose ( ) { } public String getSelection ( ) { } private void handleDoubleClick ( ) { } private void handleSelectionChanged ( ) { } }

Fix:
WorkingSetDescriptor [ ] descriptors = registry . getNewPageWorkingSetDescriptors ( ) ;
Buggy code:
public class ThrowStatement extends Statement { public Expression exception ; public TypeBinding exceptionType ; public ThrowStatement ( Expression exception , int sourceStart , int sourceEnd ) { } public FlowInfo analyseCode ( BlockScope currentScope , FlowContext flowContext , FlowInfo flowInfo ) { } public void generateCode ( BlockScope currentScope , CodeStream codeStream ) { } public StringBuffer printStatement ( int indent , StringBuffer output ) { } public void resolve ( BlockScope scope ) { this . exceptionType = this . exception . resolveType ( scope ) ; if ( ( ( this . exceptionType ) != null ) && ( this . exceptionType . isValidBinding ( ) ) ) { if ( ( this . exceptionType ) == ( TypeBinding . NULL ) ) { if ( ( scope . compilerOptions ( ) . complianceLevel ) <= ( ClassFileConstants . JDK1_3 ) ) { scope . problemReporter ( ) . cannotThrowNull ( this . exception ) ; } } else <START_BUG> if ( ( exceptionType . findSuperTypeOriginatingFrom ( TypeIds . T_JavaLangThrowable , true ) ) == null ) { <END_BUG> scope . problemReporter ( ) . cannotThrowType ( this . exception , this . exceptionType ) ; } this . exception . computeConversion ( scope , this . exceptionType , this . exceptionType ) ; } } public void traverse ( ASTVisitor visitor , BlockScope blockScope ) { } }

Fix:
if ( ( this . exceptionType . findSuperTypeOriginatingFrom ( TypeIds . T_JavaLangThrowable , true ) ) == null ) {
Buggy code:
public abstract class ServiceCommandDispatcher < C > implements CommandDispatcher < C > { private static final RspFilter FILTER = new RspFilter ( ) { @ Override public boolean isAcceptable ( Object response , Address sender ) { } @ Override public boolean needMoreResponses ( ) { } } ; private final MessageDispatcher dispatcher ; private final CommandMarshaller < C > marshaller ; private final NodeFactory < Address > factory ; private final long timeout ; public ServiceCommandDispatcher ( MessageDispatcher dispatcher , CommandMarshaller < C > marshaller , NodeFactory < Address > factory , long timeout ) { } @ Override public < R > Map < Node , CommandResponse < R > > executeOnCluster ( Command < R , C > command , Node ... excludedNodes ) { } @ Override public < R > Map < Node , Future < R > > submitOnCluster ( Command < R , C > command , Node ... excludedNodes ) { } @ Override public < R > CommandResponse < R > executeOnNode ( Command < R , C > command , Node node ) { } @ Override public < R > Future < R > submitOnNode ( Command < R , C > command , Node node ) { } private < R > Message createMessage ( Command < R , C > command ) { } private < R > Message createMessage ( Command < R , C > command , Node node ) { } private static Address getAddress ( Node node ) { } private RequestOptions createRequestOptions ( Node ... excludedNodes ) { } private RequestOptions createRequestOptions ( ) { <START_BUG> return new RequestOptions ( ResponseMode . GET_ALL , this . timeout , false , ServiceCommandDispatcher . FILTER ) ; <END_BUG> } static < R > CommandResponse < R > createCommandResponse ( Rsp < R > response ) { } private Address getLocalAddress ( ) { } private static class SimpleCommandResponse < T > implements CommandResponse < T > { private final T value ; private final ExecutionException exception ; SimpleCommandResponse ( T value ) { } SimpleCommandResponse ( Throwable exception ) { } @ Override public T get ( ) throws ExecutionException { } } private static class SimpleFuture < T > extends ServiceCommandDispatcher . SimpleCommandResponse < T > implements Future < T > { SimpleFuture ( T value ) { } SimpleFuture ( Throwable exception ) { } @ Override public boolean cancel ( boolean mayInterruptIfRunning ) { } @ Override public boolean isCancelled ( ) { } @ Override public boolean isDone ( ) { } @ Override public T get ( long timeout , TimeUnit unit ) throws ExecutionException { } } }

Fix:
return new RequestOptions ( ResponseMode . GET_ALL , this . timeout , false , ServiceCommandDispatcher . FILTER , Flag . DONT_BUNDLE ) ;
Buggy code:
public class SaveMessageCommand extends Command { private AbstractMessageFolder folder ; public SaveMessageCommand ( ICommandReference reference ) { } public void execute ( IWorkerStatusController worker ) throws Exception { ComposerCommandReference r = ( ( ComposerCommandReference ) ( getReference ( ) ) ) ; ComposerController composerController = r . getComposerController ( ) ; AccountItem item = ( ( ComposerModel ) ( composerController . getModel ( ) ) ) . getAccountItem ( ) ; SendableMessage message = ( ( SendableMessage ) ( r . getMessage ( ) ) ) ; if ( message == null ) { <START_BUG> message = new MessageComposer ( ( ( ComposerModel ) ( composerController . getModel ( ) ) ) ) . compose ( worker ) ; <END_BUG> } folder = ( ( AbstractMessageFolder ) ( r . getSourceFolder ( ) ) ) ; worker . setDisplayText ( MailResourceLoader . getString ( "statusbar" , "message" , "save_message" ) ) ; InputStream sourceStream = new org . columba . core . command . ProgressObservedInputStream ( message . getSourceStream ( ) , worker ) ; folder . addMessage ( sourceStream , message . getHeader ( ) . getAttributes ( ) , message . getHeader ( ) . getFlags ( ) ) ; sourceStream . close ( ) ; List recipients = message . getRecipients ( ) ; if ( ( recipients != null ) && ( ( recipients . size ( ) ) > 0 ) ) { Address [ ] addresses = new Address [ recipients . size ( ) ] ; for ( int i = 0 ; i < ( recipients . size ( ) ) ; i ++ ) { try { addresses [ i ] = AddressParser . parseAddress ( ( ( String ) ( recipients . get ( i ) ) ) ) ; } catch ( ParserException e ) { addresses [ i ] = addresses [ ( i - 1 ) ] ; } } MessageBuilderHelper . addAddressesToAddressbook ( addresses ) ; } } }

Fix:
message = new MessageComposer ( ( ( ComposerModel ) ( composerController . getModel ( ) ) ) ) . compose ( worker , r . isAppendSignature ( ) ) ;
Buggy code:
public class MemoryWarpManager implements WarpManager { private final Map < String , Warp > warpMap = new HashMap < String , Warp > ( ) ; @ Override public void add ( Warp warp ) { <START_BUG> Preconditions . checkArgument ( contains ( warp . getName ( ) ) , "A<seq2seq4repair_space>warp<seq2seq4repair_space>with<seq2seq4repair_space>the<seq2seq4repair_space>name<seq2seq4repair_space>'{}'<seq2seq4repair_space>does<seq2seq4repair_space>already<seq2seq4repair_space>exist!" ) ; <END_BUG> warpMap . put ( warp . getName ( ) , warp ) ; } @ Override public void populate ( Iterable < Warp > warps ) { } @ Override public void remove ( Warp warp ) { } @ Override public void clear ( ) { } @ Override public int getSize ( ) { } @ Override public boolean contains ( String name ) { } @ Override public Optional < Warp > get ( String name ) { } @ Override public Collection < Warp > filter ( Predicate < Warp > predicate ) { } }

Fix:
Preconditions . checkArgument ( contains ( warp . getName ( ) ) , "A<seq2seq4repair_space>warp<seq2seq4repair_space>with<seq2seq4repair_space>the<seq2seq4repair_space>name<seq2seq4repair_space>'%s'<seq2seq4repair_space>does<seq2seq4repair_space>already<seq2seq4repair_space>exist!" , warp . getName ( ) ) ;
Buggy code:
public class XQDTTemplateCompletionProcessor extends ScriptTemplateCompletionProcessor { private boolean fIsNormalPrefixType ; public XQDTTemplateCompletionProcessor ( ScriptContentAssistInvocationContext context ) { } protected String getContextTypeId ( ) { } protected ScriptTemplateAccess getTemplateAccess ( ) { } @ Override protected boolean isValidPrefix ( String prefix ) { } protected boolean isMatchingTemplate ( Template template , String prefix , TemplateContext context ) { if ( template . getName ( ) . equals ( "function" ) ) { System . err . println ( "Move<seq2seq4repair_space>potential<seq2seq4repair_space>functions<seq2seq4repair_space>away<seq2seq4repair_space>from<seq2seq4repair_space>normal<seq2seq4repair_space>template<seq2seq4repair_space>processing:<seq2seq4repair_space>XQDTTemplateCompletionProcessor" ) ; } if ( ! ( template . getName ( ) . startsWith ( prefix ) ) ) { return false ; } if ( template . matches ( prefix , context . getContextType ( ) . getId ( ) ) ) { return true ; } else { TemplateContextType contextType = context . getContextType ( ) ; if ( contextType instanceof XQueryTemplateContentType ) { String [ ] alsoMatches = ( ( XQueryTemplateContentType ) ( contextType ) ) . getCompatibleContentTypes ( ) ; for ( String contextTypeId : alsoMatches ) { <START_BUG> if ( template . getContextTypeId ( ) . equals ( contextTypeId ) ) { <END_BUG> return true ; } } } } return false ; } @ Override protected String extractPrefix ( ITextViewer viewer , int offset ) { } @ Override protected int getRelevance ( Template template , String prefix ) { } }

Fix:
if ( template . matches ( prefix , contextTypeId ) ) {
Buggy code:
public class ZipSamplerTest { private static final int N = 50000 ; @ Test public void testZips ( ) throws IOException { SchemaSampler s = new SchemaSampler ( Resources . asCharSource ( Resources . getResource ( "schema016.json" ) , Charsets . UTF_8 ) . read ( ) ) ; JsonNode v = s . sample ( ) ; assertEquals ( "65529" , v . get ( "z" ) . get ( "zip" ) . asText ( ) ) ; Multiset < String > laCounts = HashMultiset . create ( ) ; double latitude = 0 ; double longitude = 0 ; double latitudeFuzzy = 0 ; double longitudeFuzzy = 0 ; boolean allInside1 = true ; boolean allInside2 = true ; for ( int i = 0 ; i < ( ZipSamplerTest . N ) ; i ++ ) { v = s . sample ( ) ; double x = v . get ( "z" ) . get ( "longitude" ) . asDouble ( ) ; double y = v . get ( "z" ) . get ( "latitude" ) . asDouble ( ) ; longitude += x ; latitude += y ; allInside1 &= isContinental ( x , y ) ; x = v . get ( "zContinental" ) . get ( "longitude" ) . asDouble ( ) ; y = v . get ( "zContinental" ) . get ( "latitude" ) . asDouble ( ) ; allInside2 &= isContinental ( x , y ) ; x = v . get ( "zFuzzy" ) . get ( "longitude" ) . asDouble ( ) ; y = v . get ( "zFuzzy" ) . get ( "latitude" ) . asDouble ( ) ; longitudeFuzzy += x ; latitudeFuzzy += y ; laCounts . add ( v . get ( "zLosAngeles" ) . get ( "zip" ) . asText ( ) ) ; assertTrue ( "Unexpected<seq2seq4repair_space>zip<seq2seq4repair_space>code<seq2seq4repair_space>in<seq2seq4repair_space>LA" , v . get ( "zLosAngeles" ) . get ( "zip" ) . asText ( ) . matches ( "(9[0123]...)|(89...)" ) ) ; } assertFalse ( "Expected<seq2seq4repair_space>non-continental<seq2seq4repair_space>samples" , allInside1 ) ; assertTrue ( "Should<seq2seq4repair_space>not<seq2seq4repair_space>have<seq2seq4repair_space>had<seq2seq4repair_space>non-continental<seq2seq4repair_space>samples" , allInside2 ) ; longitude = longitude // ( ZipSamplerTest . N ) ; latitude = latitude // ( ZipSamplerTest . N ) ; longitudeFuzzy = longitudeFuzzy // ( ZipSamplerTest . N ) ; latitudeFuzzy = latitudeFuzzy // ( ZipSamplerTest . N ) ; assertEquals ( ( - 90.88465 ) , longitude , 2 ) ; assertEquals ( 38.47346 , latitude , 2 ) ; <START_BUG> assertEquals ( ( - 90.88465 ) , longitudeFuzzy , 5 ) ; <END_BUG> assertEquals ( 38.47346 , latitudeFuzzy , 5 ) ; assertEquals ( 1365 , laCounts . elementSet ( ) . size ( ) , 50 ) ; } private boolean isContinental ( double x , double y ) { } No newline ; at end ; of file ; }

Fix:
assertEquals ( ( - 90.88465 ) , longitudeFuzzy , 7 ) ;
Buggy code:
public class JSR223Timer extends JSR223TestElement implements Cloneable , TestBean , Timer { private static final Logger log = LoggingManager . getLoggerForClass ( ) ; private static final long serialVersionUID = 4 ; public long delay ( ) { long delay = 0 ; try { ScriptEngine scriptEngine = getScriptEngine ( ) ; <START_BUG> Object o = processFileOrScript ( scriptEngine ) ; <END_BUG> if ( o == null ) { JSR223Timer . log . warn ( "Script<seq2seq4repair_space>did<seq2seq4repair_space>not<seq2seq4repair_space>return<seq2seq4repair_space>a<seq2seq4repair_space>value" ) ; return 0 ; } delay = Long . valueOf ( o . toString ( ) ) . longValue ( ) ; } catch ( NumberFormatException e ) { JSR223Timer . log . warn ( "Problem<seq2seq4repair_space>in<seq2seq4repair_space>JSR223<seq2seq4repair_space>script<seq2seq4repair_space>" , e ) ; } catch ( IOException e ) { JSR223Timer . log . warn ( "Problem<seq2seq4repair_space>in<seq2seq4repair_space>JSR223<seq2seq4repair_space>script<seq2seq4repair_space>" , e ) ; } catch ( ScriptException e ) { JSR223Timer . log . warn ( "Problem<seq2seq4repair_space>in<seq2seq4repair_space>JSR223<seq2seq4repair_space>script<seq2seq4repair_space>" , e ) ; } return delay ; } }

Fix:
Object o = processFileOrScript ( scriptEngine , null ) ;
Buggy code:
public class ResourceBundleRenderer extends ScriptStyleBaseRenderer { public static final String ENDPOINT_PATH = "//site//api//v1//resource//bundle//" ; public static final String COMPONENTS_PATH = "//components//" ; @ Override protected void startElement ( ResponseWriter writer , UIComponent component ) throws IOException { } @ Override protected void endElement ( ResponseWriter writer ) throws IOException { } @ Override public void encodeEnd ( FacesContext context , UIComponent component ) throws IOException { Map < String , Object > attributes = component . getAttributes ( ) ; String name = ( ( String ) ( attributes . get ( "name" ) ) ) ; WebResourceManager wrm = Framework . getService ( WebResourceManager . class ) ; ResourceBundle bundle = wrm . getResourceBundle ( name ) ; if ( bundle != null ) { List < Resource > cssr = wrm . getResources ( new ResourceContextImpl ( ) , name , css . name ( ) ) ; if ( ( cssr != null ) && ( ! ( cssr . isEmpty ( ) ) ) ) { encodeEnd ( context , component , css , ( ( ( ResourceBundleRenderer . ENDPOINT_PATH ) + name ) + ".css" ) ) ; } <START_BUG> List < Resource > jsr = wrm . getResources ( new ResourceContextImpl ( ) , name , html . name ( ) ) ; <END_BUG> if ( ( jsr != null ) && ( ! ( jsr . isEmpty ( ) ) ) ) { encodeEnd ( context , component , js , ( ( ( ResourceBundleRenderer . ENDPOINT_PATH ) + name ) + ".js" ) ) ; } List < Resource > htmlr = wrm . getResources ( new ResourceContextImpl ( ) , name , html . name ( ) ) ; if ( ( htmlr != null ) && ( ! ( htmlr . isEmpty ( ) ) ) ) { for ( Resource rhtml : htmlr ) { encodeEnd ( context , component , html , ( ( ResourceBundleRenderer . COMPONENTS_PATH ) + ( rhtml . getPath ( ) ) ) ) ; } } } super . encodeEnd ( context , component ) ; } protected void encodeEnd ( FacesContext context , UIComponent component , ResourceType type , String base ) throws IOException { } }

Fix:
List < Resource > jsr = wrm . getResources ( new ResourceContextImpl ( ) , name , js . name ( ) ) ;
Buggy code:
@ UsesJava8 final class ObjectToOptionalConverter implements ConditionalGenericConverter { private final ConversionService conversionService ; public ObjectToOptionalConverter ( ConversionService conversionService ) { } @ Override public Set < ConvertiblePair > getConvertibleTypes ( ) { } @ Override public boolean matches ( TypeDescriptor sourceType , TypeDescriptor targetType ) { } @ Override public Object convert ( Object source , TypeDescriptor sourceType , TypeDescriptor targetType ) { if ( source == null ) { return Optional . empty ( ) ; } if ( ( targetType . getResolvableType ( ) ) == null ) { return Optional . of ( source ) ; } else { Object target = this . conversionService . convert ( source , sourceType , new ObjectToOptionalConverter . GenericTypeDescriptor ( targetType ) ) ; <START_BUG> return Optional . of ( target ) ; <END_BUG> } } @ SuppressWarnings ( "serial" ) private static class GenericTypeDescriptor extends TypeDescriptor { public GenericTypeDescriptor ( TypeDescriptor typeDescriptor ) { } } }

Fix:
return Optional . ofNullable ( target ) ;