nus-yam/ex-repair huggingface dataset:
Buggy code:
public class SnapSearchWebViewClient extends WebViewClient { private SnapSearchActivity mActivity ; private boolean overridingUrlLoadForSearchResult = false ; public SnapSearchWebViewClient ( SnapSearchActivity activity ) { } @ Override public boolean shouldOverrideUrlLoading ( WebView view , String url ) { } @ Override public void onPageFinished ( WebView view , String url ) { if ( overridingUrlLoadForSearchResult ) { overridingUrlLoadForSearchResult = false ; new SnapSearchWebViewClient . ParseDocumentWithJSOUP ( ) . execute ( url ) ; return ; } view . loadUrl ( "javascript:(function(){document.getElementById('qbi').click();})()" ) ; <START_BUG> mActivity . findViewById ( loading_bar ) . setVisibility ( GONE ) ; <END_BUG> } class ParseDocumentWithJSOUP extends AsyncTask < String , Void , String [ ] > { @ Override protected String [ ] doInBackground ( String ... urls ) { } @ Override protected void onPostExecute ( String [ ] imageResultUrls ) { } } }

Fix:
mActivity . hideLoadingBar ( ) ;
Buggy code:
public class ScriptTest extends WebTest { @ BeforeClass public static void setUp ( ) { } @ Test public void can_find_script_by_id ( ) { component ( Script . class , By . $ ( "#script_1" ) ) ; try { component ( Script . class , By . $ ( "#script_0" ) ) ; fail ( ) ; } catch ( ComponentException e ) { <START_BUG> assertThat ( e . getMessage ( ) , is ( "Cannot<seq2seq4repair_space>find<seq2seq4repair_space>component<seq2seq4repair_space>defined<seq2seq4repair_space>by<seq2seq4repair_space>id=script_0" ) ) ; <END_BUG> } } @ Test public void exception_thrown_if_component_not_a_html_script ( ) { } @ Test public void test_script_specifics_attributes ( ) { } @ Test public void test_toString ( ) { } }

Fix:
assertThat ( e . getMessage ( ) , is ( "Cannot<seq2seq4repair_space>find<seq2seq4repair_space>component<seq2seq4repair_space>defined<seq2seq4repair_space>by<seq2seq4repair_space>jQueryExpression=$('#script_0')" ) ) ;
Buggy code:
public abstract class ControllerResource extends BaseResource { @ Context protected Request request ; @ Context protected UriInfo uriInfo ; protected Form form ; @ GET public Response handleGet ( ) throws Exception { } @ POST public Response handlePost ( final Form form ) throws Exception { } private Response doHandle ( ) throws Exception { final PortalContext context = new PortalContext ( ) ; context . setMode ( this . mode ) ; context . setMethod ( this . request . getMethod ( ) ) ; <START_BUG> context . setBaseUri ( "//portal" ) ; <END_BUG> setParams ( context . getParams ( ) , this . uriInfo . getQueryParameters ( ) ) ; if ( ( this . form ) != null ) { setParams ( context . getFormParams ( ) , this . form . asMap ( ) ) ; } configure ( context ) ; final RenderResult result = execute ( context ) ; return toResponse ( result ) ; } private void setParams ( final Multimap < String , String > to , final MultivaluedMap < String , String > from ) { } protected abstract void configure ( PortalContext context ) { } protected abstract RenderResult execute ( PortalContext context ) throws Exception { } private Response toResponse ( final RenderResult result ) { } }

Fix:
context . setBaseUri ( this . baseUri ) ;
Buggy code:
public class ASMTweaksConfig { public class ASMTweakConfig { private ASMTweak tweak ; public ASMTweakConfig ( ASMTweak tweak ) { } public Boolean getBoolean ( String name , Boolean defaultValue ) { } public String getString ( String name , String defaultValue ) { } public Integer getInt ( String name , Integer defaultValue ) { } public Float getFloat ( String name , Float defaultValue ) { } public Double getDouble ( String name , Double defaultValue ) { } } private static File getConfigFile ( ) { String args = System . getProperty ( "sun.java.command" ) ; int gdIndex = args . indexOf ( "--gameDir" ) ; if ( gdIndex == ( - 1 ) ) <START_BUG> return new File ( "." ) ; <END_BUG> gdIndex += 1 ; int gdEnd = args . indexOf ( "<seq2seq4repair_space>--" , ( gdIndex + 9 ) ) ; if ( gdEnd == ( - 1 ) ) gdEnd = ( args . length ( ) ) - 1 ; File gameDir = new File ( args . substring ( ( gdIndex + 9 ) , gdEnd ) ) ; return new File ( gameDir , new File ( "config" , "asmtweaks.conf" ) . toString ( ) ) ; } private File configPath ; private Properties props ; public ASMTweaksConfig ( ) { } public void save ( ) { } private void parseConfig ( ) { } public boolean isEnabled ( ASMTweak tweak ) { } private String getTweakConfig ( ASMTweak tweak , String configName ) { } private String getTweakConfigValue ( ASMTweak tweak , String configName , String defaultValue ) { } public ASMTweaksConfig . ASMTweakConfig getTweakConfig ( ASMTweak tweak ) { } }

Fix:
return new File ( "." , new File ( "config" , "asmtweaks.conf" ) . toString ( ) ) ;
Buggy code:
public class GenericContainerInstantiator implements IContainerInstantiator , IRemoteServiceContainerInstantiator { protected static final String [ ] genericProviderIntents = new String [ ] { "passByValue" , "exactlyOnce" , "ordered" } ; public static final String TCPCLIENT_NAME = "ecf.generic.client" ; public static final String TCPSERVER_NAME = "ecf.generic.server" ; private static final int CREATE_INSTANCE_ERROR_CODE = 4441 ; public GenericContainerInstantiator ( ) { } protected ID getIDFromArg ( Object arg ) throws IDCreateException { if ( arg == null ) <START_BUG> throw new IDCreateException ( Messages . getString ( "GenericContainerInstantiator.ID_Cannot_Be_Null" ) ) ; <END_BUG> String val = null ; if ( arg instanceof StringID ) return ( ( ID ) ( arg ) ) ; else if ( arg instanceof GUID ) val = ( ( GUID ) ( arg ) ) . getName ( ) ; else if ( arg instanceof URIID ) val = ( ( URIID ) ( arg ) ) . toURI ( ) . toString ( ) ; else if ( arg instanceof LongID ) val = ( ( LongID ) ( arg ) ) . getName ( ) ; if ( arg instanceof String ) val = ( ( String ) ( arg ) ) ; if ( arg instanceof Integer ) val = IDFactory . getDefault ( ) . createGUID ( ( ( Integer ) ( arg ) ) . intValue ( ) ) . getName ( ) ; if ( val == null ) val = IDFactory . getDefault ( ) . createGUID ( ) . getName ( ) ; return IDFactory . getDefault ( ) . createStringID ( val ) ; } protected Integer getIntegerFromArg ( Object arg ) { } protected class GenericContainerArgs { ID id ; Integer keepAlive ; public GenericContainerArgs ( ID id , Integer keepAlive ) { } public ID getID ( ) { } public Integer getKeepAlive ( ) { } } protected GenericContainerInstantiator . GenericContainerArgs getClientArgs ( Object [ ] args ) throws IDCreateException { } protected boolean isClient ( ContainerTypeDescription description ) { } protected GenericContainerInstantiator . GenericContainerArgs getServerArgs ( Object [ ] args ) throws IDCreateException { } public IContainer createInstance ( ContainerTypeDescription description , Object [ ] args ) throws ContainerCreateException { } protected Set getAdaptersForClass ( Class clazz ) { } protected Set getInterfacesForClass ( Set s , Class clazz ) { } protected Set getInterfacesForClass ( Class clazz ) { } protected String [ ] getInterfacesAndAdaptersForClass ( Class clazz ) { } public String [ ] getSupportedAdapterTypes ( ContainerTypeDescription description ) { } public Class [ ] [ ] getSupportedParameterTypes ( ContainerTypeDescription description ) { } public String [ ] getSupportedIntents ( ContainerTypeDescription description ) { } public String [ ] getSupportedConfigs ( ContainerTypeDescription description ) { } public String [ ] getImportedConfigs ( ContainerTypeDescription description , String [ ] exporterSupportedConfigs ) { } public Dictionary getPropertiesForImportedConfigs ( ContainerTypeDescription description , String [ ] importedConfigs , Dictionary exportedProperties ) { } }

Fix:
throw new IDCreateException ( "id<seq2seq4repair_space>cannot<seq2seq4repair_space>be<seq2seq4repair_space>null" ) ;
Buggy code:
public class KeyWriter { private static void addToWeakKeys ( String outFile , BigInteger key , BigInteger pgcd ) { try { FileWriter writer = new FileWriter ( outFile , true ) ; <START_BUG> writer . write ( String . format ( "%s<seq2seq4repair_space>==<seq2seq4repair_space>%s<seq2seq4repair_space>*<seq2seq4repair_space>%s\n" , key . toString ( ) , pgcd . toString ( ) , key . divide ( pgcd ) . toString ( ) ) ) ; <END_BUG> writer . close ( ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; } } public static void addToWeakKeys ( String outFile , BigInteger key , BigInteger pgcd , Set < BigInteger > knownWeakKeys ) { } public static void addToWeakKeys ( String outFile , HashMap < BigInteger , BigInteger > couples ) { } }

Fix:
writer . write ( String . format ( "%s<seq2seq4repair_space>==<seq2seq4repair_space>%s<seq2seq4repair_space>x<seq2seq4repair_space>%s\n" , key . toString ( ) , pgcd . toString ( ) , key . divide ( pgcd ) . toString ( ) ) ) ;
Buggy code:
public class DataReader { public static DataReader . WorkTimmerSummary readDataBase ( ) { } private static int calculateDbGlobalDelta ( Document doc ) { } private static int parseTimerToSeconds ( String textContent ) { } private static int getSingleGlobalIntElementValue ( Document doc , String tagName ) { } private static String getSingleGlobalStringElementValue ( Document doc , String tagName ) { Node glbalDeltaElement = doc . getElementsByTagName ( tagName ) . item ( 0 ) ; <START_BUG> return glbalDeltaElement . getTextContent ( ) ; <END_BUG> } private static List < String > getStringListContent ( Document doc , String tagName ) { } private static List < Integer > getIntegerListContent ( Document doc , String tagName ) { } private static boolean isNewLineNode ( Node node ) { } static class WorkTimmerSummary { int thisDbGlobalDelta ; int globalDelta ; int weeklyDelta ; Integer dayliTimerValue = null ; List < String > timersDescriptions = new ArrayList < String > ( ) ; List < Integer > timersCounterValues = new ArrayList < Integer > ( ) ; } }

Fix:
return glbalDeltaElement != null ? glbalDeltaElement . getTextContent ( ) : "" ;
Buggy code:
public abstract class JettyServer extends ContainerHolder { private Server m_server ; private WebModuleResource m_resource ; @ SuppressWarnings ( "unchecked" ) protected void configure ( WebAppContext context ) throws Exception { } protected void display ( String requestUri ) throws Exception { } protected abstract String getContextPath ( ) { } protected abstract int getServerPort ( ) { } protected File getWarRoot ( ) { } protected boolean isWebXmlDefined ( ) { } protected void postConfigure ( WebAppContext context ) { } protected void setupContainer ( ) throws Exception { } protected void startServer ( ) throws Exception { setupContainer ( ) ; Server server = new Server ( getServerPort ( ) ) ; WebAppContext context = new ResourceFallbackWebAppContext ( ) ; configure ( context ) ; server . addHandler ( context ) ; server . start ( ) ; <START_BUG> context . addServlet ( new ServletHolder ( new WebModuleServlet ( m_resource ) ) , "//*" ) ; <END_BUG> postConfigure ( context ) ; m_server = server ; } protected void stopServer ( ) throws Exception { } protected void waitForAnyKey ( ) throws IOException { } }

Fix:
context . addServlet ( new ServletHolder ( new WebModuleServlet ( m_resource ) ) , "//" ) ;
Buggy code:
public class ContactList extends AbstractDataList { private static final Log logger = LogFactory . getLog ( ContactList . class ) ; public ContactList ( WebDrone drone ) { } @ SuppressWarnings ( "unchecked" ) @ Override public ContactList render ( RenderTime timer ) { } @ SuppressWarnings ( "unchecked" ) @ Override public ContactList render ( ) { } @ SuppressWarnings ( "unchecked" ) @ Override public ContactList render ( long time ) { } public ContactList createItem ( String data ) { } public DataListPage editItem ( String title , String data ) { } public boolean isEditDisplayed ( String itemName ) { boolean isDisplayed ; <START_BUG> WebElement theItem = locateAnItem ( itemName ) ; <END_BUG> try { isDisplayed = theItem . findElement ( EDIT_LINK ) . isEnabled ( ) ; } catch ( NoSuchElementException nse ) { isDisplayed = false ; } return isDisplayed ; } public boolean isItemDisplayed ( String itemName ) { } public ContactList checkCreateItemForm ( ) { } }

Fix:
WebElement theItem = locateItemActions ( itemName ) ;
Buggy code:
public final class MessageFailureHandlerFactoryRepository { private static IMessageFailureHandlerFactory _factory ; private MessageFailureHandlerFactoryRepository ( ) { } public static void setFactory ( IMessageFailureHandlerFactory factory ) { } public static IMessageFailureHandlerFactory getFactory ( ) { if ( ( MessageFailureHandlerFactoryRepository . _factory ) == null ) { <START_BUG> MessageFailureHandlerFactoryRepository . _factory = new MessageFailureHandlerDefaultFactory ( "CONFIGURED_RETRY" ) ; <END_BUG> } return MessageFailureHandlerFactoryRepository . _factory ; } }

Fix:
MessageFailureHandlerFactoryRepository . _factory = new MessageFailureHandlerDefaultFactory ( "DEFAULT" ) ;
Buggy code:
public class DeploymentImplementation implements DeploymentInterface { public static String PROPERTIES_FILE_NAME = "deploy.properties" ; private static final Logger LOG = LoggerFactory . getLogger ( DeploymentImplementation . class ) ; private String mavenPath ; private String flinkPath ; private String flinkClusterAddress ; private String flinkPort ; public DeploymentImplementation ( ) { } @ Override public void generateProjectJAR ( String entryClass , Map < String , String > clazzes , boolean deploy ) { } @ Override public InputStream getJarStream ( String entryClass , Map < String , String > clazzes ) { } @ Override public InputStream getZipSource ( String entryClass , Map < String , String > clazzes ) { } private File createTemporaryProjectFolder ( ) throws IOException , URISyntaxException { String randomUUID = UUID . randomUUID ( ) . toString ( ) ; DeploymentImplementation . LOG . debug ( ( "Current<seq2seq4repair_space>directory:<seq2seq4repair_space>" + ( ExecuteShell . executeCommand ( "pwd" ) ) ) ) ; Path tmpDirectory = Files . createTempDirectory ( randomUUID ) ; File tmpProjectFolderParent = tmpDirectory . toFile ( ) ; File tmpProjectFolder = new File ( ( ( tmpProjectFolderParent . getAbsolutePath ( ) ) + "//FlinkProject" ) ) ; File skeletonFolder = new File ( getClass ( ) . getClassLoader ( ) . getResource ( "FlinkSkeleton//" ) . toURI ( ) ) ; DeploymentImplementation . LOG . debug ( ( ( ( "Copy<seq2seq4repair_space>directory<seq2seq4repair_space>from<seq2seq4repair_space>" + ( skeletonFolder . toString ( ) ) ) + "<seq2seq4repair_space>to<seq2seq4repair_space>" ) + ( tmpDirectory . toString ( ) ) ) ) ; FileUtils . copyFolder ( skeletonFolder , tmpProjectFolder ) ; HashMap < String , String > map = new HashMap < > ( ) ; <START_BUG> map . put ( ENTRY_CLASS_KEY , ENTRY_CLASS_NAME ) ; <END_BUG> map . put ( ARTIFACT_ID_KEY , FLINK_JOB_NAME ) ; String pomXMLPath = ( tmpProjectFolder . toString ( ) ) + "//pom.xml" ; File pomFile = new File ( pomXMLPath ) ; DOMParser . replaceXMLValues ( pomFile , map ) ; return tmpProjectFolder ; } private void createClasses ( File temporaryFolder , String entryClass , Map < String , String > clazzes ) { } private void saveClass ( File temporarayFolder , String clazzName , String clazz ) { } private String getClassName ( String clazz ) { } public void cleanUp ( File tmpProjectFolder ) { } No newline ; at end ; of file ; }

Fix:
map . put ( ENTRY_CLASS_KEY , ENTRY_CLASS_NAME_WITH_PACKAGE ) ;
Buggy code:
public class ScopedComponentResolver implements IComponentResolver { private static final long serialVersionUID = 1L ; public ScopedComponentResolver ( ) { } public boolean resolve ( final MarkupContainer container , final MarkupStream markupStream , final ComponentTag tag ) { final String id = tag . getId ( ) ; MarkupContainer parent = container ; while ( ( ( ! ( parent instanceof Page ) ) && ( ! ( parent instanceof Panel ) ) ) && ( parent != null ) ) { parent = parent . getParent ( ) ; if ( parent == null ) { return false ; } final Component component = parent . get ( id ) ; if ( ( component != null ) && ( component instanceof IScopedComponent ) ) { IScopedComponent sc = ( ( IScopedComponent ) ( component ) ) ; if ( sc . isRenderableInSubContainers ( ) ) { <START_BUG> component . render ( ) ; <END_BUG> return true ; } } } return false ; } }

Fix:
component . render ( markupStream ) ;
Buggy code:
public class QualifiedThisReference extends ThisReference { public TypeReference qualification ; ReferenceBinding currentCompatibleType ; public QualifiedThisReference ( TypeReference name , int sourceStart , int sourceEnd ) { } public FlowInfo analyseCode ( BlockScope currentScope , FlowContext flowContext , FlowInfo flowInfo ) { } public FlowInfo analyseCode ( BlockScope currentScope , FlowContext flowContext , FlowInfo flowInfo , boolean valueRequired ) { } public void generateCode ( BlockScope currentScope , CodeStream codeStream , boolean valueRequired ) { } public TypeBinding resolveType ( BlockScope scope ) { constant = NotAConstant ; <START_BUG> TypeBinding type = this . resolvedType = this . qualification . resolveType ( scope ) ; <END_BUG> if ( type == null ) return null ; if ( type . isRawType ( ) ) { RawTypeBinding rawType = ( ( RawTypeBinding ) ( type ) ) ; type = this . resolvedType = rawType . type ; } int depth = 0 ; this . currentCompatibleType = scope . referenceType ( ) . binding ; while ( ( ( this . currentCompatibleType ) != null ) && ( ( this . currentCompatibleType ) != type ) ) { depth ++ ; this . currentCompatibleType = ( this . currentCompatibleType . isStatic ( ) ) ? null : this . currentCompatibleType . enclosingType ( ) ; } bits &= ~ ( ASTNode . DepthMASK ) ; bits |= ( depth & 255 ) << ( ASTNode . DepthSHIFT ) ; if ( ( this . currentCompatibleType ) == null ) { scope . problemReporter ( ) . noSuchEnclosingInstance ( type , this , false ) ; return type ; } if ( depth == 0 ) { checkAccess ( scope . methodScope ( ) ) ; } return type ; } public StringBuffer printExpression ( int indent , StringBuffer output ) { } public void traverse ( ASTVisitor visitor , BlockScope blockScope ) { } }

Fix:
TypeBinding type = this . resolvedType = this . qualification . resolveType ( scope , true ) ;
Buggy code:
public class ApplicationController extends Controller { public static void show ( final Long id ) { final Application application = Application . findById ( id ) ; if ( application == null ) { notFound ( ) ; } else { <START_BUG> final List < ApplicationProperty > properties = ApplicationProperty . find ( "application<seq2seq4repair_space>=<seq2seq4repair_space>?<seq2seq4repair_space>and<seq2seq4repair_space>priority<seq2seq4repair_space>><seq2seq4repair_space>99<seq2seq4repair_space>order<seq2seq4repair_space>by<seq2seq4repair_space>priority" , application ) . fetch ( ) ; <END_BUG> render ( application , properties ) ; } } public static void edit ( final Long id , final String configuration ) throws Exception { } public static void create ( @ Valid final Application application ) throws Exception { } public static void start ( final Long id ) throws Exception , InterruptedException { } public static void stop ( final Long id ) throws Exception , InterruptedException { } public static void update ( final Long id ) throws Exception { } public static void restart ( final Long id ) throws Exception , InterruptedException { } public static void remove ( final Long id ) throws Exception { } public static void status ( final Long id ) throws Exception { } }

Fix:
final List < ApplicationProperty > properties = ApplicationProperty . find ( "application<seq2seq4repair_space>=<seq2seq4repair_space>?<seq2seq4repair_space>and<seq2seq4repair_space>priority<seq2seq4repair_space>><seq2seq4repair_space>?<seq2seq4repair_space>order<seq2seq4repair_space>by<seq2seq4repair_space>priority" , application , PRIORITY_MARGIN ) . fetch ( ) ;
Buggy code:
public class Bowler implements Player { private String name ; private int numberofFrames ; private ArrayList < Frame > frames ; private static final int NUMBER_OF_PINS = 10 ; public Bowler ( String name , int games ) { } @ Override public String getName ( ) { } @ Override public String toString ( ) { } @ Override public Frame play ( int frame ) { } @ Override public void checkPoints ( ) { <START_BUG> if ( ( ( this . frames ) != null ) && ( ( this . frames . size ( ) ) > 2 ) ) { <END_BUG> for ( int f = 0 ; f < ( ( this . frames . size ( ) ) - 1 ) ; f ++ ) { if ( this . frames . get ( f ) . isStrike ( ) ) { int ballcount = 0 ; int ballindex = 0 ; int extraframe = 1 ; int extrascore = 0 ; while ( ballcount <= 1 ) { if ( ( this . frames . size ( ) ) > ( f + extraframe ) ) { int result = this . frames . get ( ( f + extraframe ) ) . getBall ( ballindex ) ; if ( result == 9999 ) { extraframe ++ ; ballindex = 0 ; } else { extrascore += result ; ballcount ++ ; ballindex ++ ; } } else { ballcount = 2 ; } } this . frames . get ( f ) . addBonus ( extrascore ) ; } if ( this . frames . get ( f ) . isSpare ( ) ) { int ballcount = 0 ; int ballindex = 0 ; int extraframe = 1 ; int extrascore = 0 ; while ( ballcount < 1 ) { if ( ( this . frames . size ( ) ) > ( f + extraframe ) ) { int result = this . frames . get ( ( f + extraframe ) ) . getBall ( ballindex ) ; if ( result == 9999 ) { extraframe ++ ; ballindex = 0 ; } else { extrascore += result ; ballcount ++ ; ballindex ++ ; } } else { ballcount = 1 ; } } this . frames . get ( f ) . addBonus ( extrascore ) ; } } } } @ Override public String getScore ( ) { } @ Override public String getPoints ( ) { } }

Fix:
if ( ( this . frames ) != null ) {
Buggy code:
public class ScheduleConstraint { public static final int LEGAL_CONSTRAINT = 1 ; public static final int NO_DAYS_SELECTED = 2 ; public static final int BAD_TIME_RANGE = 3 ; public static final int SHUTTLE_NOT_RUNNING = 4 ; public static final int EMPTY_CONSTRAINT = 5 ; private static final String DAYS_ACTIVE = "daysactive" ; private static final String HOUR_START = "hourstart" ; private static final String HOUR_END = "hourend" ; private static final String ROUTE_ID = "routeid" ; private static final String STOP_ID = "stopid" ; public boolean [ ] daysActive = new boolean [ 0 ] ; public int hourStart ; public int hourEnd ; public int routeId ; public int stopId ; public ScheduleConstraint ( Intent intent ) { } public ScheduleConstraint ( boolean [ ] daysActive , int hourStart , int hourEnd , int routeId , int stopId ) { } public Intent setConstraintInfo ( Intent intent ) { } public boolean hasOverlap ( ScheduleConstraint constraint ) { <START_BUG> if ( ( ( constraint . hourStart ) >= ( this . hourEnd ) ) || ( ( constraint . hourEnd ) < ( this . hourStart ) ) ) { <END_BUG> return false ; } else { for ( int i = 0 ; i < ( ShuttleConstants . DAYS_OF_THE_WEEK ) ; i ++ ) { if ( ( constraint . daysActive [ i ] ) && ( this . daysActive [ i ] ) ) { return true ; } } return false ; } } public int legality ( ) { } public String getRouteName ( ) { } public String getStopName ( ) { } public int getTextColor ( ) { } public int getBackgroundColor ( ) { } public String getTimeRangeString ( ) { } public int getWidgetColor ( ) { } public static String getTimeString ( int hour ) { } @ Override public String toString ( ) { } }

Fix:
if ( ( ( constraint . hourStart ) >= ( this . hourEnd ) ) || ( ( constraint . hourEnd ) <= ( this . hourStart ) ) ) {
Buggy code:
public class MainActivity extends BaseActivity implements View . OnClickListener { private View llBluetooth ; private View llCalibrate ; private View llProgram ; private View llSettings ; private Motor _motor ; private Object _dlg ; @ Override public void onCreate ( Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; setContentView ( main ) ; getActionBar ( ) . setTitle ( getString ( title_mainmenu ) ) ; llBluetooth = findViewById ( R . id . llBluetooth ) ; llCalibrate = findViewById ( R . id . llCalibrate ) ; llProgram = findViewById ( R . id . llProgram ) ; llSettings = findViewById ( R . id . llSettings ) ; llBluetooth . setOnClickListener ( this ) ; llCalibrate . setOnClickListener ( this ) ; llProgram . setOnClickListener ( this ) ; llSettings . setOnClickListener ( this ) ; EventManager . sharedInstance ( ) . register ( this ) ; <START_BUG> _motor = new Motor ( ( ( MotorApplication ) ( getApplication ( ) ) ) . getSerialPort ( ) ) ; <END_BUG> } @ Override protected void onDestroy ( ) { } @ Override public void onClick ( View v ) { } protected void onBluetoothClicked ( ) { } protected void onCaliabrateClicked ( ) { } protected void onProgramClicked ( ) { } protected void onSettingsClicked ( ) { } public void onEventMainThread ( SEvent e ) { } No newline ; at end ; of file ; }

Fix:
_motor = ( ( MotorApplication ) ( getApplication ( ) ) ) . getMotor ( ) ;
Buggy code:
public class EditProfileActivity extends Activity { private static final int SMS_NOTIFICATION = 1 ; private static final int EMAIL_NOTIFICATION = 2 ; private int notificationType = 0 ; private String notificationTypeString ; private LinearLayout updateMessages ; private HashMap < String , Integer > nationalitySpinner ; private HashMap < String , Integer > countrySpinner ; public void clearMessages ( ) { } public void putMessage ( String message ) { } public void doUpdateProfile ( View view ) { } public void onSMSNotificationClick ( View v ) { } public void onEmailNotificationClick ( View v ) { } @ Override protected void onCreate ( Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; setContentView ( activity_edit_profile ) ; <START_BUG> updateMessages = ( ( LinearLayout ) ( findViewById ( LL_EditProfileMessages ) ) ) ; <END_BUG> nationalitySpinner = new HashMap < String , Integer > ( ) ; nationalitySpinner . put ( "Indonesian" , 1 ) ; nationalitySpinner . put ( "Singaporean" , 2 ) ; nationalitySpinner . put ( "Thailand" , 3 ) ; nationalitySpinner . put ( "Malaysian" , 4 ) ; nationalitySpinner . put ( "Vietnamese" , 5 ) ; countrySpinner = new HashMap < String , Integer > ( ) ; countrySpinner . put ( "Singapore" , 1 ) ; countrySpinner . put ( "Thailand" , 2 ) ; countrySpinner . put ( "Malaysia" , 3 ) ; User user = Global . getUserManager ( ) . getUser ( ) ; ( ( EditText ) ( findViewById ( passport_field ) ) ) . setText ( user . getPassportNumber ( ) ) ; ( ( TextView ) ( findViewById ( name_field ) ) ) . setText ( user . getFullName ( ) ) ; ( ( EditText ) ( findViewById ( address_field ) ) ) . setText ( user . getAddress ( ) ) ; ( ( EditText ) ( findViewById ( phone_number_field ) ) ) . setText ( user . getPhoneNumber ( ) ) ; ( ( TextView ) ( findViewById ( email_field ) ) ) . setText ( user . getEmail ( ) ) ; ( ( TextView ) ( findViewById ( dob_field ) ) ) . setText ( user . getDateOfBirth ( ) ) ; ( ( TextView ) ( findViewById ( gender_field ) ) ) . setText ( user . getGender ( ) ) ; ( ( Spinner ) ( findViewById ( nationality_field ) ) ) . setSelection ( nationalitySpinner . get ( user . getNationality ( ) ) ) ; ( ( Spinner ) ( findViewById ( country_field ) ) ) . setSelection ( countrySpinner . get ( user . getCountry ( ) ) ) ; String notification = user . getNotification ( ) ; if ( notification . equals ( "all" ) ) { notificationType = 3 ; } else if ( notification . equals ( "email" ) ) { notificationType = 2 ; } else if ( notification . equals ( "sms" ) ) { notificationType = 1 ; } else { notificationType = 0 ; } ( ( CheckBox ) ( findViewById ( email_notification_checkbox ) ) ) . setChecked ( ( ( user . getNotification ( ) . equals ( "all" ) ) || ( user . getNotification ( ) . equals ( "email" ) ) ) ) ; ( ( CheckBox ) ( findViewById ( sms_notification_checkbox ) ) ) . setChecked ( ( ( user . getNotification ( ) . equals ( "all" ) ) || ( user . getNotification ( ) . equals ( "sms" ) ) ) ) ; } @ Override public boolean onCreateOptionsMenu ( Menu menu ) { } @ Override public boolean onOptionsItemSelected ( MenuItem item ) { } }

Fix:
updateMessages = ( ( LinearLayout ) ( findViewById ( update_messages ) ) ) ;
Buggy code:
public class RobotListComponent extends RenderableComponent < RobotModel > { private JPanel panel ; private JLabel lblColor ; private JLabel lblName ; private JLabel lblStatus ; private JLabel lblTask ; private RobotModel robot ; public RobotListComponent ( ) { } @ Override public JComponent create ( ListItem < RobotModel > listItem ) { } @ Override public void update ( ListItem < RobotModel > listItem ) { <START_BUG> panel . setBackground ( ( listItem . isSelected ( ) ? Colors . selectionColor : Color . WHITE ) ) ; <END_BUG> lblStatus = new JLabel ( ( "Status:<seq2seq4repair_space>" + ( robot . getStatus ( ) ) ) ) ; lblStatus . setOpaque ( false ) ; lblTask = new JLabel ( ( "Task:<seq2seq4repair_space>" + ( robot . getAssignedTask ( ) . getName ( ) ) ) , JLabel . CENTER ) ; lblTask . setOpaque ( false ) ; panel . removeAll ( ) ; panel . add ( lblColor , "split,<seq2seq4repair_space>width<seq2seq4repair_space>10:10:10,<seq2seq4repair_space>height<seq2seq4repair_space>10:10:10" ) ; panel . add ( lblName , "growx,<seq2seq4repair_space>span<seq2seq4repair_space>2,<seq2seq4repair_space>wrap" ) ; panel . add ( lblStatus , "growx,<seq2seq4repair_space>span<seq2seq4repair_space>2,<seq2seq4repair_space>wrap" ) ; panel . add ( lblTask ) ; panel . repaint ( ) ; } }

Fix:
panel . setBackground ( ( listItem . isSelected ( ) ? Colors . selectionColor : robot . getNeedsHelp ( ) ? Color . orange : Color . WHITE ) ) ;
Buggy code:
public interface TransactionDao { public List < Transaction > getTransactions ( ) { } public void deleteTransactions ( ) { } public Transaction getTransactionById ( Long id ) { } public Long deleteTransactionById ( Long id ) { } public Long createTransaction ( Transaction transaction ) { } public int updateTransaction ( Transaction transaction ) { } <START_BUG> public List < Transaction > getTransactionsByTimeRangeCriteria ( Date date , Date date2 , int order ) ; <END_BUG> }

Fix:
public List < Transaction > getTransactionsByTimeRangeCriteria ( Date date , Date date2 , Integer order ) ;
Buggy code:
public class ThreadMXBeanThreadInfoHandler implements OperationStepHandler , DescriptionProvider { public static final ThreadMXBeanThreadInfoHandler INSTANCE = new ThreadMXBeanThreadInfoHandler ( ) ; private final ParametersValidator validator = new ParametersValidator ( ) ; private ThreadMXBeanThreadInfoHandler ( ) { } @ Override public void execute ( OperationContext context , ModelNode operation ) throws OperationFailedException { validator . validate ( operation ) ; ThreadMXBean mbean = ManagementFactory . getThreadMXBean ( ) ; try { long id = operation . require ( ID ) . asLong ( ) ; <START_BUG> ThreadInfo info = null ; <END_BUG> if ( operation . hasDefined ( MAX_DEPTH ) ) { info = mbean . getThreadInfo ( id , operation . require ( MAX_DEPTH ) . asInt ( ) ) ; } else { info = mbean . getThreadInfo ( id ) ; } final ModelNode result = context . getResult ( ) ; if ( info != null ) { result . set ( PlatformMBeanUtil . getDetypedThreadInfo ( info , mbean . isThreadCpuTimeSupported ( ) ) ) ; } } catch ( SecurityException e ) { throw new OperationFailedException ( new ModelNode ( ) . set ( e . toString ( ) ) ) ; } context . completeStep ( ) ; } @ Override public ModelNode getModelDescription ( Locale locale ) { } }

Fix:
ThreadInfo info ;
Buggy code:
public class PingServiceTest extends CamelTestSupport { @ Override protected RouteBuilder createRouteBuilder ( ) throws Exception { } @ Test public void testPing ( ) throws Exception { <START_BUG> String reply = template . requestBody ( "http:////0.0.0.0:8080//ping" , null , String . class ) ; <END_BUG> assertEquals ( "PONG\n" , reply ) ; } }

Fix:
String reply = template . requestBody ( "http:////127.0.0.1:8080//ping" , null , String . class ) ;
Buggy code:
public class DepthSelector extends BaseExtendSelector { public int min = - 1 ; public int max = - 1 ; public static final String MIN_KEY = "min" ; public static final String MAX_KEY = "max" ; public DepthSelector ( ) { } public String toString ( ) { <START_BUG> StringBuffer buf = new StringBuffer ( "{depthselector<seq2seq4repair_space>min:<seq2seq4repair_space>" ) ; <END_BUG> buf . append ( min ) ; buf . append ( "<seq2seq4repair_space>max:<seq2seq4repair_space>" ) ; buf . append ( max ) ; buf . append ( "}" ) ; return buf . toString ( ) ; } public void setMin ( int min ) { } public void setMax ( int max ) { } public void setParameters ( Parameter [ ] parameters ) { } public void verifySettings ( ) { } public boolean isSelected ( File basedir , String filename , File file ) { } }

Fix:
StringBuilder buf = new StringBuilder ( "{depthselector<seq2seq4repair_space>min:<seq2seq4repair_space>" ) ;
Buggy code:
public class ScriptFilter extends TokenFilter . ChainableReaderFilter { private boolean initialized = false ; private String token ; private ScriptRunner runner = new ScriptRunner ( ) ; public void setLanguage ( String language ) { } private void init ( ) throws BuildException { } public void setToken ( String token ) { } public String getToken ( ) { } public String filter ( String token ) { init ( ) ; setToken ( token ) ; <START_BUG> runner . executeScript ( "<ANT-Filter>" ) ; <END_BUG> return getToken ( ) ; } public void setSrc ( File file ) { } public void addText ( String text ) { } }

Fix:
runner . executeScript ( "ant_filter" ) ;
Buggy code:
public final class StringUtils { private StringUtils ( ) { } private static final Logger LOG = Logger . getLogger ( StringUtils . class ) ; public static String stringList ( List < ? > ids , String separator ) { } public static Map < Selector , Selector > convertJsonToOptions ( TableName tableName , String json ) { } public static Map < String , Object > convertJsonToMap ( String json ) { } private static Selector convertJsonNodeToCrossdataParserType ( TableName tableName , JsonNode jsonNode ) { } private static Object convertJsonNodeToJavaType ( JsonNode jsonNode ) { } public static String getAkkaActorRefUri ( Object object ) { } public static ColumnType convertJavaTypeToXdType ( String javaType ) { } public static Patch objectDiff ( Object oa , Object ob ) { } public static String patchObject ( Object a , Patch diff ) throws PatchFailedException { } public static Object deserializeObjectFromString ( String serializedObject , Class objectsClass ) { ObjectMapper mapper = new ObjectMapper ( ) ; try { <START_BUG> return mapper . readValue ( mapper . readTree ( serializedObject ) , ArrayList . class ) ; <END_BUG> } catch ( IOException e ) { e . printStackTrace ( ) ; } return null ; } public static String serializeObject2String ( Object obj ) { } public static ColumnType convertXdTypeToColumnType ( String xdType ) { } public static String getReturningTypeFromSignature ( String signature ) { } }

Fix:
return mapper . readValue ( mapper . readTree ( serializedObject ) , List . class ) ;
Buggy code:
public class Javadoc extends ASTNode { private String comment = "//**<seq2seq4repair_space>*//" ; Javadoc ( AST ast ) { } public int getNodeType ( ) { } ASTNode clone ( AST target ) { } public boolean subtreeMatch ( ASTMatcher matcher , Object other ) { } void accept0 ( ASTVisitor visitor ) { } public String getComment ( ) { } public void setComment ( String javadocComment ) { if ( javadocComment == null ) { throw new IllegalArgumentException ( ) ; } char [ ] source = javadocComment . toCharArray ( ) ; <START_BUG> Scanner scanner = new Scanner ( true , true , false , false , false , null , null ) ; <END_BUG> scanner . resetTo ( 0 , source . length ) ; scanner . setSource ( source ) ; try { int token ; boolean onlyOneComment = false ; while ( ( token = scanner . getNextToken ( ) ) != ( TerminalTokens . TokenNameEOF ) ) { switch ( token ) { case TerminalTokens . TokenNameCOMMENT_JAVADOC : if ( onlyOneComment ) { throw new IllegalArgumentException ( ) ; } onlyOneComment = true ; break ; default : onlyOneComment = false ; } } if ( ! onlyOneComment ) { throw new IllegalArgumentException ( ) ; } } catch ( InvalidInputException e ) { throw new IllegalArgumentException ( ) ; } modifying ( ) ; this . comment = javadocComment ; } int memSize ( ) { } int treeSize ( ) { } }

Fix:
Scanner scanner = this . getAST ( ) . scanner ;
Buggy code:
public class ProductDerivation extends AbstractProductDerivation implements OpenJPAProductDerivation { @ SuppressWarnings ( "unchecked" ) public void putBrokerFactoryAliases ( Map m ) { } public String getConfigurationPrefix ( ) { <START_BUG> return "slice" ; <END_BUG> } public int getType ( ) { } }

Fix:
return "openjpa.slice" ;
Buggy code:
class TypeBinding implements ITypeBinding { private static final String NO_NAME = "" ; private static final ITypeBinding [ ] NO_INTERFACES = new ITypeBinding [ 0 ] ; private static final ITypeBinding [ ] NO_DECLARED_TYPES = new ITypeBinding [ 0 ] ; private static final IVariableBinding [ ] NO_DECLARED_FIELDS = new IVariableBinding [ 0 ] ; private static final IMethodBinding [ ] NO_DECLARED_METHODS = new IMethodBinding [ 0 ] ; private org . eclipse . jdt . internal . compiler . lookup . TypeBinding binding ; private BindingResolver resolver ; private IVariableBinding [ ] fields ; private IMethodBinding [ ] methods ; public TypeBinding ( BindingResolver resolver , org . eclipse . jdt . internal . compiler . lookup . TypeBinding binding ) { } public boolean isPrimitive ( ) { } public boolean isArray ( ) { } public ITypeBinding getElementType ( ) { } public int getDimensions ( ) { } public boolean isClass ( ) { } public boolean isInterface ( ) { } public String getName ( ) { } public IPackageBinding getPackage ( ) { } public ITypeBinding getDeclaringClass ( ) { } public ITypeBinding getSuperclass ( ) { } public ITypeBinding [ ] getInterfaces ( ) { } public int getModifiers ( ) { } public int getDeclaredModifiers ( ) { } public boolean isTopLevel ( ) { } public boolean isNested ( ) { } public boolean isMember ( ) { } public boolean isLocal ( ) { } public boolean isAnonymous ( ) { } public ITypeBinding [ ] getDeclaredTypes ( ) { } public IVariableBinding [ ] getDeclaredFields ( ) { } public IMethodBinding [ ] getDeclaredMethods ( ) { } public boolean isFromSource ( ) { } public int getKind ( ) { } public boolean isDeprecated ( ) { } public boolean isSynthetic ( ) { } public String getKey ( ) { } public boolean isNullType ( ) { } public String getQualifiedName ( ) { <START_BUG> if ( ( isAnonymous ( ) ) || ( isLocal ( ) ) ) { <END_BUG> return null ; } StringBuffer buffer = new StringBuffer ( ) ; buffer . append ( getName ( ) ) ; buffer . insert ( 0 , '.' ) ; if ( isMember ( ) ) { ITypeBinding declaringClass = getDeclaringClass ( ) ; while ( declaringClass != null ) { buffer . insert ( 0 , declaringClass . getName ( ) ) ; buffer . insert ( 0 , '.' ) ; declaringClass = declaringClass . getDeclaringClass ( ) ; } } IPackageBinding packageBinding = getPackage ( ) ; if ( ! ( packageBinding . isUnnamed ( ) ) ) { buffer . insert ( 0 , packageBinding . getName ( ) ) ; } return buffer . toString ( ) ; } }

Fix:
if ( ( ( ( ( isAnonymous ( ) ) || ( isLocal ( ) ) ) || ( isPrimitive ( ) ) ) || ( isArray ( ) ) ) || ( isNullType ( ) ) ) {
Buggy code:
public class terminal extends Circuit implements rcTypeReceiver { private enum DataType { ascii , num ; } private BitSet7 outBuf ; private long [ ] buf = new long [ 1 ] ; private terminal . DataType type = terminal . DataType . ascii ; private boolean eot ; @ Override public void inputChange ( int inIdx , boolean high ) { } @ Override protected boolean init ( CommandSender sender , String [ ] args ) { } @ Override public void circuitShutdown ( ) { } @ Override public void type ( String [ ] words , Player player ) { if ( ( words . length ) == 0 ) { error ( player , "You<seq2seq4repair_space>didn't<seq2seq4repair_space>type<seq2seq4repair_space>anything<seq2seq4repair_space>after<seq2seq4repair_space>the<seq2seq4repair_space>command<seq2seq4repair_space>name." ) ; return ; } String typeString = "" ; for ( String a : words ) typeString += a + "<seq2seq4repair_space>" ; if ( ( type ) == ( terminal . DataType . ascii ) ) { int datapin = ( ( outputs . length ) == 9 ) ? 1 : 2 ; for ( int i = 0 ; i < ( ( typeString . length ( ) ) - 1 ) ; i ++ ) { buf [ 0 ] = typeString . charAt ( i ) ; outBuf = BitSet7 . valueOf ( buf ) ; if ( hasDebuggers ( ) ) <START_BUG> debug ( ( "Sending<seq2seq4repair_space>" + ( BitSetUtils . bitSetToBinaryString ( outBuf , 0 , 8 ) ) ) ) ; <END_BUG> this . sendBitSet ( datapin , 8 , outBuf ) ; this . sendOutput ( 0 , true ) ; this . sendOutput ( 0 , false ) ; } if ( eot ) { this . sendInt ( datapin , 8 , 3 ) ; this . sendOutput ( 0 , true ) ; this . sendOutput ( 0 , false ) ; } if ( datapin == 2 ) { this . sendOutput ( 1 , true ) ; this . sendOutput ( 1 , false ) ; } } else if ( ( type ) == ( terminal . DataType . num ) ) { try { int i = Integer . decode ( typeString . trim ( ) ) ; buf [ 0 ] = i ; outBuf = BitSet7 . valueOf ( buf ) ; if ( hasDebuggers ( ) ) debug ( ( "Sending<seq2seq4repair_space>" + ( BitSetUtils . bitSetToBinaryString ( outBuf , 0 , ( ( outputs . length ) - 1 ) ) ) ) ) ; this . sendBitSet ( 1 , ( ( outputs . length ) - 1 ) , outBuf ) ; this . sendOutput ( 0 , true ) ; this . sendOutput ( 0 , false ) ; } catch ( NumberFormatException ne ) { error ( player , ( ( "Not<seq2seq4repair_space>a<seq2seq4repair_space>number:<seq2seq4repair_space>" + ( typeString . trim ( ) ) ) + ".<seq2seq4repair_space>use<seq2seq4repair_space>ascii<seq2seq4repair_space>data<seq2seq4repair_space>type<seq2seq4repair_space>(1st<seq2seq4repair_space>sign<seq2seq4repair_space>arg),<seq2seq4repair_space>for<seq2seq4repair_space>sending<seq2seq4repair_space>ascii<seq2seq4repair_space>symbols." ) ) ; } } } @ Override public Map < String , String > getInternalState ( ) { } @ Override public void setInternalState ( Map < String , String > state ) { } }

Fix:
debug ( ( ( ( ( "Sending<seq2seq4repair_space>" + ( BitSetUtils . bitSetToBinaryString ( outBuf , 0 , 8 ) ) ) + "(" ) + ( ( char ) ( buf [ 0 ] ) ) ) + ")" ) ) ;
Buggy code:
public final class dns { private static Resolver res ; private static Map caches ; private static Name [ ] searchPath ; private static boolean searchPathSet ; private static boolean initialized ; private dns ( ) { } private static synchronized void clearCaches ( ) { } private static synchronized void initialize ( ) { if ( dns . initialized ) return ; dns . initialized = true ; if ( ( dns . res ) == null ) { try { dns . setResolver ( new ExtendedResolver ( ) ) ; } catch ( UnknownHostException uhe ) { System . err . println ( "Failed<seq2seq4repair_space>to<seq2seq4repair_space>initialize<seq2seq4repair_space>resolver" ) ; System . exit ( ( - 1 ) ) ; } } if ( ! ( dns . searchPathSet ) ) dns . searchPath = FindServer . searchPath ( ) ; if ( ( dns . caches ) == null ) <START_BUG> dns . caches = new Hashtable ( ) ; <END_BUG> else dns . clearCaches ( ) ; } static boolean matchType ( short type1 , short type2 ) { } public static String inaddrString ( InetAddress addr ) { } public static String inaddrString ( String s ) { } public static synchronized void setResolver ( Resolver _res ) { } public static synchronized Resolver getResolver ( ) { } public static synchronized void setSearchPath ( String [ ] domains ) { } public static synchronized Cache getCache ( short dclass ) { } public static synchronized Cache getCache ( ) { } private static Record [ ] lookup ( Name name , short type , short dclass , byte cred , int iterations , boolean querysent ) { } public static Record [ ] getRecords ( String namestr , short type , short dclass , byte cred ) { } public static Record [ ] getRecords ( String namestr , short type , short dclass ) { } public static Record [ ] getAnyRecords ( String namestr , short type , short dclass ) { } public static Record [ ] getRecords ( String name , short type ) { } public static Record [ ] getAnyRecords ( String name , short type ) { } public static Record [ ] getRecordsByAddress ( String addr , short type ) { } public static Record [ ] getAnyRecordsByAddress ( String addr , short type ) { } }

Fix:
dns . caches = new HashMap ( ) ;
Buggy code:
public class InfinispanSessionManagerFactoryBuilder implements SessionManagerFactoryBuilder { public static final String DEFAULT_CACHE_CONTAINER = "web" ; @ Override public ServiceBuilder < SessionManagerFactory > buildDeploymentDependency ( ServiceTarget target , ServiceName name , SessionManagerConfiguration config ) { ServiceName templateCacheServiceName = InfinispanSessionManagerFactoryBuilder . getCacheServiceName ( config . getCacheName ( ) ) ; String templateCacheName = templateCacheServiceName . getSimpleName ( ) ; ServiceName containerServiceName = templateCacheServiceName . getParent ( ) ; String containerName = containerServiceName . getSimpleName ( ) ; String cacheName = config . getDeploymentName ( ) ; ServiceName cacheConfigurationServiceName = CacheConfigurationService . getServiceName ( containerName , cacheName ) ; ServiceName cacheServiceName = CacheService . getServiceName ( containerName , cacheName ) ; SessionCacheConfigurationService . build ( target , containerName , cacheName , templateCacheName ) . setInitialMode ( ON_DEMAND ) . install ( ) ; final InjectedValue < EmbeddedCacheManager > cacheContainer = new InjectedValue ( ) ; CacheService . Dependencies dependencies = new CacheService . Dependencies ( ) { @ Override public EmbeddedCacheManager getCacheContainer ( ) { return cacheContainer . getValue ( ) ; } @ Override public XAResourceRecoveryRegistry getRecoveryRegistry ( ) { return null ; } } ; <START_BUG> AsynchronousService . addService ( target , cacheServiceName , new CacheService ( cacheName , dependencies ) ) . addAliases ( InfinispanRouteLocatorService . getCacheServiceAlias ( cacheName ) ) . addDependency ( cacheConfigurationServiceName ) . addDependency ( containerServiceName , EmbeddedCacheManager . class , cacheContainer ) . addDependency ( GlobalComponentRegistryService . getServiceName ( containerName ) ) . setInitialMode ( ON_DEMAND ) . install ( ) ; <END_BUG> return InfinispanSessionManagerFactory . build ( target , name , containerName , cacheName , config ) ; } private static ServiceName getCacheServiceName ( String cacheName ) { } }

Fix:
AsynchronousService . addService ( target , cacheServiceName , new CacheService ( cacheName , dependencies ) ) . addAliases ( RouteLocatorService . getCacheServiceAlias ( cacheName ) ) . addDependency ( cacheConfigurationServiceName ) . addDependency ( containerServiceName , EmbeddedCacheManager . class , cacheContainer ) . addDependency ( GlobalComponentRegistryService . getServiceName ( containerName ) ) . setInitialMode ( ON_DEMAND ) . install ( ) ;
Buggy code:
public abstract class CovBase extends Task { private File home ; private static FileUtils fu = FileUtils . newFileUtils ( ) ; private boolean isJProbe4 = false ; private static boolean isDos = Os . isFamily ( "dos" ) ; public void setHome ( File value ) { } protected File getHome ( ) { } protected File findCoverageJar ( ) { } protected String findExecutable ( String relativePath ) { } protected File createTempFile ( String prefix ) { } protected String getParamFileArgument ( ) { <START_BUG> return ( ! ( isJProbe4 ) ? "-jp_" : "" ) + "paramfile=" ; <END_BUG> } protected boolean isJProbe4Plus ( ) { } }

Fix:
return ( "-" + ( ! ( isJProbe4 ) ? "jp_" : "" ) ) + "paramfile=" ;
Buggy code:
public class SimpleEditor extends JFrame implements ChangeListener { private CaptureData data ; private Load load ; private ShowObject view ; private Coordinate coor ; private Segmentation seg ; private ImageCapture imgDepth ; private ImageCapture imgColor ; private JSlider slider ; public SimpleEditor ( ) { } public SimpleEditor ( File file ) { } private CaptureData load ( File file ) { } private void initialize ( File file ) { } private JPanel getComponent ( ) { } private JPanel getControl ( ) { } @ Override public void stateChanged ( ChangeEvent e ) { } public static void main ( String [ ] args ) { EventQueue . invokeLater ( new Runnable ( ) { @ Override public void run ( ) { <START_BUG> new SimpleEditor ( new File ( "//home//matheus//Música//Arquivo<seq2seq4repair_space>Exemplo" ) ) ; <END_BUG> } } ) ; } }

Fix:
new SimpleEditor ( new File ( "//home//matheus//Música//Oi" ) ) ;