nus-yam/ex-repair huggingface dataset:
Buggy code:
public class GroupingHandlerAdd implements OperationStepHandler , DescriptionProvider { public static ModelNode getAddOperation ( final ModelNode address , ModelNode subModel ) { } public static final GroupingHandlerAdd INSTANCE = new GroupingHandlerAdd ( ) ; private GroupingHandlerAdd ( ) { } @ Override public void execute ( OperationContext context , ModelNode operation ) throws OperationFailedException { PathAddress ourAddress = PathAddress . pathAddress ( operation . require ( OP_ADDR ) ) ; final Resource subsystemRootResource = context . getRootResource ( ) . navigate ( ourAddress . subAddress ( 0 , ( ( ourAddress . size ( ) ) - 1 ) ) ) ; if ( subsystemRootResource . hasChildren ( GROUPING_HANDLER ) ) { throw new OperationFailedException ( new ModelNode ( ) . set ( MessagingMessages . MESSAGES . childResourceAlreadyExists ( GROUPING_HANDLER ) ) ) ; } final Resource resource = context . createResource ( EMPTY_ADDRESS ) ; final ModelNode model = resource . getModel ( ) ; for ( final AttributeDefinition attributeDefinition : CommonAttributes . GROUPING_HANDLER_ATTRIBUTES ) { attributeDefinition . validateAndSet ( operation , model ) ; } <START_BUG> if ( ( context . getType ( ) ) == ( Type . SERVER ) ) { <END_BUG> context . addStep ( new OperationStepHandler ( ) { public void execute ( OperationContext context , ModelNode operation ) throws OperationFailedException { ServiceRegistry registry = context . getServiceRegistry ( false ) ; final ServiceName hqServiceName = MessagingServices . getHornetQServiceName ( PathAddress . pathAddress ( operation . get ( ModelDescriptionConstants . OP_ADDR ) ) ) ; ServiceController < ? > hqService = registry . getService ( hqServiceName ) ; if ( hqService != null ) { context . reloadRequired ( ) ; } if ( ( context . completeStep ( ) ) == ( ResultAction . ROLLBACK ) ) { context . revertReloadRequired ( ) ; } } } , RUNTIME ) ; } context . completeStep ( ) ; } @ Override public ModelNode getModelDescription ( Locale locale ) { } static void addGroupingHandlerConfig ( final OperationContext context , final Configuration configuration , final ModelNode model ) throws OperationFailedException { } static GroupingHandlerConfiguration createGroupingHandlerConfiguration ( final OperationContext context , final String name , final ModelNode model ) throws OperationFailedException { } }

Fix:
if ( context . isNormalServer ( ) ) {
Buggy code:
public class AccessForInlineVisitor extends ASTVisitor { PrivilegedHandler handler ; AspectDeclaration inAspect ; EclipseFactory world ; public boolean isInlinable = true ; public AccessForInlineVisitor ( AspectDeclaration inAspect , PrivilegedHandler handler ) { } public void endVisit ( SingleNameReference ref , BlockScope scope ) { } public void endVisit ( QualifiedNameReference ref , BlockScope scope ) { } public void endVisit ( FieldReference ref , BlockScope scope ) { } public void endVisit ( MessageSend send , BlockScope scope ) { if ( send instanceof Proceed ) return ; if ( ( ( send . binding ) == null ) || ( ! ( send . binding . isValidBinding ( ) ) ) ) return ; if ( ( send . isSuperAccess ( ) ) && ( ! ( send . binding . isStatic ( ) ) ) ) { send . receiver = new org . aspectj . org . eclipse . jdt . internal . compiler . ast . ThisReference ( send . sourceStart , send . sourceEnd ) ; MethodBinding superAccessBinding = getSuperAccessMethod ( send . binding ) ; AstUtil . replaceMethodBinding ( send , superAccessBinding ) ; } else if ( ! ( isPublic ( send . binding ) ) ) { <START_BUG> send . syntheticAccessor = getAccessibleMethod ( send . binding , send . receiverType ) ; <END_BUG> } } public void endVisit ( AllocationExpression send , BlockScope scope ) { } public void endVisit ( QualifiedTypeReference ref , BlockScope scope ) { } public void endVisit ( SingleTypeReference ref , BlockScope scope ) { } private FieldBinding getAccessibleField ( FieldBinding binding , TypeBinding receiverType ) { } private MethodBinding getAccessibleMethod ( MethodBinding binding , TypeBinding receiverType ) { } static class SuperAccessMethodPair { public ResolvedMember originalMethod ; public MethodBinding accessMethod ; public SuperAccessMethodPair ( ResolvedMember originalMethod , MethodBinding accessMethod ) { } } private MethodBinding getSuperAccessMethod ( MethodBinding binding ) { } private boolean isPublic ( FieldBinding fieldBinding ) { } private boolean isPublic ( MethodBinding methodBinding ) { } private void makePublic ( TypeBinding binding ) { } public void endVisit ( AssertStatement assertStatement , BlockScope scope ) { } public void endVisit ( ClassLiteralAccess classLiteral , BlockScope scope ) { } public boolean visit ( TypeDeclaration localTypeDeclaration , BlockScope scope ) { } }

Fix:
send . syntheticAccessor = getAccessibleMethod ( send . binding , send . actualReceiverType ) ;
Buggy code:
public class TCButton extends Button implements OnClickListener { public enum Type { NON_MINUS_OPERATOR , DECIMAL , INTEGER , MINUS_OPERATOR , LEFT_BRACKET , RIGHT_BRACKET ; } String label ; String description ; String term ; TCButton . Type type ; public TCButton ( Context context ) { } public boolean isPressable ( ) { <START_BUG> TCButton . Type lastType = currentCalculation . getCurrentCalculation ( ) . expression . get ( ( ( expression . size ( ) ) - 1 ) ) . type ; <END_BUG> if ( ( type ) == ( TCButton . Type . NON_MINUS_OPERATOR ) ) { if ( lastType == ( TCButton . Type . DECIMAL ) ) { return false ; } return true ; } if ( ( type ) == ( TCButton . Type . NON_MINUS_OPERATOR ) ) { return true ; } if ( ( type ) == ( TCButton . Type . NON_MINUS_OPERATOR ) ) { return true ; } if ( ( type ) == ( TCButton . Type . NON_MINUS_OPERATOR ) ) { return true ; } if ( ( type ) == ( TCButton . Type . NON_MINUS_OPERATOR ) ) { return true ; } if ( ( type ) == ( TCButton . Type . NON_MINUS_OPERATOR ) ) { return true ; } return true ; } @ Override public void onClick ( View v ) { } }

Fix:
TCButton . Type lastType = currentCalculation . getLastTyped ( ) ;
Buggy code:
public class CheckBoxMultipleChoicePage extends WicketExamplePage { private static final List < String > SITES = Arrays . asList ( new String [ ] { "The<seq2seq4repair_space>Server<seq2seq4repair_space>Side" , "Java<seq2seq4repair_space>Lobby" , "Java.Net" } ) ; private static final List < String > MANY_CHOICES = Arrays . asList ( new String [ ] { "Choice1" , "Choice2" , "Choice3" , "Choice4" , "Choice5" , "Choice6" , "Choice7" , "Choice8" , "Choice9" } ) ; public CheckBoxMultipleChoicePage ( ) { } private static class Input implements Serializable { public List < String > sites = new ArrayList < String > ( ) ; public List < String > choices = new ArrayList < String > ( ) ; public Input ( ) { } @ Override public String toString ( ) { } <START_BUG> private String listAsString ( List list ) { <END_BUG> StringBuffer b = new StringBuffer ( ) ; for ( Iterator i = list . iterator ( ) ; i . hasNext ( ) ; ) { b . append ( i . next ( ) ) ; if ( i . hasNext ( ) ) { b . append ( ",<seq2seq4repair_space>" ) ; } } return b . toString ( ) ; } } @ Override protected void explain ( ) { } }

Fix:
private String listAsString ( final List list ) {
Buggy code:
public class PlayerController { public static void move ( Player player , Direction direction ) { } public static void pickUpPotion ( Player player , Potion potion ) { PotionType type = potion . getType ( ) ; Room room = GameModel . getInstance ( ) . getRoom ( ) ; switch ( type ) { case HEALTH : PlayerController . drinkHealthPotion ( player ) ; break ; case SPEED : PlayerController . drinkSpeedPotion ( player ) ; break ; case SUPER_STRENGTH : break ; case IMMUNITY : break ; } room . removePotion ( potion ) ; <START_BUG> GameModel . getInstance ( ) . addEntityToRemove ( potion ) ; <END_BUG> } public static void drinkHealthPotion ( Player p ) { } public static void drinkSpeedPotion ( Player p ) { } static class setSpeed extends TimerTask { private int speed ; public setSpeed ( int speed ) { } public void run ( ) { } } }

Fix:
GameModel . getInstance ( ) . addEntityToRemove ( GameModel . getInstance ( ) . getRoom ( ) , potion ) ;
Buggy code:
public class ArrayReference extends Reference { public Expression receiver ; public Expression position ; public ArrayReference ( Expression rec , Expression pos ) { } public FlowInfo analyseAssignment ( BlockScope currentScope , FlowContext flowContext , FlowInfo flowInfo , Assignment assignment , boolean compoundAssignment ) { } public FlowInfo analyseCode ( BlockScope currentScope , FlowContext flowContext , FlowInfo flowInfo ) { flowInfo = receiver . analyseCode ( currentScope , flowContext , flowInfo ) ; <START_BUG> receiver . checkNullStatus ( currentScope , flowInfo , FlowInfo . NON_NULL ) ; <END_BUG> return position . analyseCode ( currentScope , flowContext , flowInfo ) ; } public void generateAssignment ( BlockScope currentScope , CodeStream codeStream , Assignment assignment , boolean valueRequired ) { } public void generateCode ( BlockScope currentScope , CodeStream codeStream , boolean valueRequired ) { } public void generateCompoundAssignment ( BlockScope currentScope , CodeStream codeStream , Expression expression , int operator , int assignmentImplicitConversion , boolean valueRequired ) { } public void generatePostIncrement ( BlockScope currentScope , CodeStream codeStream , CompoundAssignment postIncrement , boolean valueRequired ) { } public StringBuffer printExpression ( int indent , StringBuffer output ) { } public TypeBinding resolveType ( BlockScope scope ) { } public void traverse ( ASTVisitor visitor , BlockScope scope ) { } }

Fix:
receiver . checkNullStatus ( currentScope , flowContext , flowInfo , FlowInfo . NON_NULL ) ;
Buggy code:
public class ExecutionContext { private Benchmark benchmark ; private ExecutionContext parent ; private Map < String , Object > properties = new HashMap < String , Object > ( ) ; private long started ; private long finished ; public ExecutionContext ( Benchmark benchmark ) { } public void started ( ) { } public void finished ( ) { } public boolean isFinished ( ) { } public long getExecutionTime ( ) { } public ExecutionTimer createExecutionTimer ( String timerId ) { } public < V > DataCollector < V > createLocalCollector ( String collectorId ) { } public ExecutionContext bind ( String key , Object value ) { } public ExecutionContext bind ( Object value ) { } public ExecutionContext bindAll ( Object ... values ) { } public ExecutionContext bindAll ( Map < String , Object > values ) { } public ExecutionContext getChild ( ) { } public < T > T get ( String key ) { } public < T > T get ( Object key ) { } public < T > Collection < T > getAll ( Object key ) { } public < T > Collection < T > getAll ( String key ) { } public < T > Collection < T > getMatching ( String key ) { } private Set < String > getGlobalKeySet ( ) { } public Map < String , Object > getProperties ( ) { } public boolean containsKey ( String key ) { <START_BUG> return ( properties . containsKey ( key ) ) || ( ( parent ) != null ) ? parent . containsKey ( key ) : false ; <END_BUG> } }

Fix:
return ( properties . containsKey ( key ) ) || ( ( ( parent ) != null ) && ( parent . containsKey ( key ) ) ) ;
Buggy code:
public class SimpleSessionMetaData implements SessionMetaData { private final Date creationTime ; private volatile Date lastAccessedTime ; private volatile Time maxInactiveInterval ; public SimpleSessionMetaData ( ) { } public SimpleSessionMetaData ( Date creationTime , Date lastAccessedTime , Time maxInactiveInterval ) { } @ Override public boolean isExpired ( ) { long maxInactiveInterval = this . getMaxInactiveInterval ( TimeUnit . MILLISECONDS ) ; <START_BUG> return maxInactiveInterval > 0 ? ( ( System . currentTimeMillis ( ) ) - ( this . lastAccessedTime . getTime ( ) ) ) > maxInactiveInterval : false ; <END_BUG> } @ Override public boolean isNew ( ) { } @ Override public Date getCreationTime ( ) { } @ Override public Date getLastAccessedTime ( ) { } @ Override public void setLastAccessedTime ( Date date ) { } @ Override public long getMaxInactiveInterval ( TimeUnit unit ) { } @ Override public void setMaxInactiveInterval ( long interval , TimeUnit unit ) { } }

Fix:
return maxInactiveInterval > 0 ? ( ( System . currentTimeMillis ( ) ) - ( this . lastAccessedTime . getTime ( ) ) ) >= maxInactiveInterval : false ;
Buggy code:
public class CardDeck { private ArrayList < Card > deck ; public CardDeck ( ) { } public void populate ( ArrayList < Card > deck ) { } public ArrayList < Card > shuffle ( ArrayList < Card > deck ) { } public Card draw ( ) { Card drawn = deck . remove ( 0 ) ; <START_BUG> if ( ( deck . get ( 0 ) ) == null ) { <END_BUG> populate ( deck ) ; shuffle ( deck ) ; } return drawn ; } }

Fix:
if ( ( deck . size ( ) ) == 0 ) {
Buggy code:
public class RemoteServiceReferenceImpl implements IRemoteServiceReference { protected RemoteServiceRegistrationImpl registration ; protected String clazz = null ; public RemoteServiceReferenceImpl ( RemoteServiceRegistrationImpl registration ) { } public Object getProperty ( String key ) { } public String [ ] getPropertyKeys ( ) { } public ID getContainerID ( ) { } public boolean isActive ( ) { <START_BUG> return ( registration ) == null ; <END_BUG> } protected synchronized void setInactive ( ) { } protected RemoteServiceRegistrationImpl getRegistration ( ) { } protected void setRemoteClass ( String clazz ) { } protected String getRemoteClass ( ) { } }

Fix:
return ( registration ) != null ;
Buggy code:
public class PersistentValues { Context context ; public int pvBody = 0 ; public int pvIntuition = 0 ; public int pvWillpower = 0 ; public int pvLogic = 0 ; public int pvCharisma = 0 ; public int pvStun = 0 ; public int pvPhysical = 0 ; public int pvKarma = 0 ; public int pvKarmaUsed = 0 ; public int pvResonance = 0 ; public int pvCompiling = 0 ; public int pvRegistering = 0 ; public int pvHoursThisSession = 0 ; public int pvSleeplessHours = 0 ; public int pvHoursSinceKarmaRefresh = 0 ; public int pvConsecutiveRest = 0 ; public int pvActiveSpriteId = 0 ; public List < String > pvSpriteList = new ArrayList < String > ( ) ; List < Sprite > pvSprites = new ArrayList < > ( ) ; private StatsDataSource datasource ; public void SaveStatToDB ( String stat , Integer value ) { } public void SaveSpriteToDB ( ) { } public void SaveSpriteToDB ( Sprite SpriteToSave ) { } public void SaveAllToDB ( ) { } public void RestoreFromDB ( Context content ) { } public Sprite getCurrentSprite ( ) { } public Sprite getSprite ( long id ) { } public void DeleteSprite ( Sprite SpriteToDie ) { } public void UpdateSpriteList ( ) { boolean unregisteredExists = false ; pvSpriteList . clear ( ) ; List < Sprite > Unnecessary = new ArrayList < > ( ) ; for ( Sprite sprite : pvSprites ) { if ( ( ( ( sprite . getRegistered ( ) ) == 0 ) && unregisteredExists ) || ( ( ( sprite . getRegistered ( ) ) == 1 ) && ( ( sprite . getServicesOwed ( ) ) == 0 ) ) ) { Unnecessary . add ( sprite ) ; if ( ( pvSprites . get ( pvActiveSpriteId ) ) == sprite ) { if ( ( pvActiveSpriteId ) > 0 ) { ( pvActiveSpriteId ) -- ; } } } else { String title = ( ( ( String . valueOf ( ( ( ( "Force<seq2seq4repair_space>" + ( sprite . getRating ( ) ) ) + "<seq2seq4repair_space>" ) + ( sprite . getType ( ) ) ) ) ) + "<seq2seq4repair_space>with<seq2seq4repair_space>" ) + ( sprite . getServicesOwed ( ) ) ) + "<seq2seq4repair_space>services" ; if ( ( sprite . getRegistered ( ) ) == 1 ) { title = title + "<seq2seq4repair_space>Registered" ; } else { unregisteredExists = true ; } pvSpriteList . add ( title ) ; } } for ( Sprite deleteSprite : Unnecessary ) { datasource . deleteSprite ( deleteSprite ) ; } pvSprites . removeAll ( Unnecessary ) ; if ( ! unregisteredExists ) { Sprite newSprite = new Sprite ( ) ; newSprite . setRating ( getCurrentSprite ( ) . getRating ( ) ) ; newSprite . setSpriteType ( getCurrentSprite ( ) . getType ( ) ) ; pvSprites . add ( newSprite ) ; String title = "NEW<seq2seq4repair_space>SPRITE" ; pvSpriteList . add ( title ) ; <START_BUG> datasource . updateSprite ( pvSprites . get ( ( ( pvSpriteList . size ( ) ) - 1 ) ) ) ; <END_BUG> } } }

Fix:
pvSprites . get ( ( ( pvSpriteList . size ( ) ) - 1 ) ) . setId ( datasource . insertSprite ( pvSprites . get ( ( ( pvSpriteList . size ( ) ) - 1 ) ) ) ) ;
Buggy code:
public final class KeySupport { public static KeyStroke convertFromSWT ( int key ) { } public static final int convertToSWT ( final KeyStroke keyStroke ) { if ( keyStroke == null ) throw new NullPointerException ( ) ; int key = 0 ; final Iterator iterator = keyStroke . getModifierKeys ( ) . iterator ( ) ; while ( iterator . hasNext ( ) ) { final ModifierKey modifierKey = ( ( ModifierKey ) ( iterator . next ( ) ) ) ; if ( modifierKey == ( ModifierKey . ALT ) ) key |= SWT . ALT ; else if ( modifierKey == ( ModifierKey . COMMAND ) ) key |= SWT . COMMAND ; else if ( modifierKey == ( ModifierKey . CTRL ) ) key |= SWT . CTRL ; else if ( modifierKey == ( ModifierKey . SHIFT ) ) key |= SWT . SHIFT ; } <START_BUG> final NaturalKey naturalKey = keyStroke . getNonModifierKey ( ) ; <END_BUG> if ( naturalKey instanceof CharacterKey ) key |= ( ( CharacterKey ) ( naturalKey ) ) . getCharacter ( ) ; else if ( naturalKey instanceof SpecialKey ) { final SpecialKey specialKey = ( ( SpecialKey ) ( naturalKey ) ) ; if ( specialKey == ( SpecialKey . ARROW_DOWN ) ) key |= SWT . ARROW_DOWN ; else if ( specialKey == ( SpecialKey . ARROW_LEFT ) ) key |= SWT . ARROW_LEFT ; else if ( specialKey == ( SpecialKey . ARROW_RIGHT ) ) key |= SWT . ARROW_RIGHT ; else if ( specialKey == ( SpecialKey . ARROW_UP ) ) key |= SWT . ARROW_UP ; else if ( specialKey == ( SpecialKey . END ) ) key |= SWT . END ; else if ( specialKey == ( SpecialKey . F1 ) ) key |= SWT . F1 ; else if ( specialKey == ( SpecialKey . F10 ) ) key |= SWT . F10 ; else if ( specialKey == ( SpecialKey . F11 ) ) key |= SWT . F11 ; else if ( specialKey == ( SpecialKey . F12 ) ) key |= SWT . F12 ; else if ( specialKey == ( SpecialKey . F2 ) ) key |= SWT . F2 ; else if ( specialKey == ( SpecialKey . F3 ) ) key |= SWT . F3 ; else if ( specialKey == ( SpecialKey . F4 ) ) key |= SWT . F4 ; else if ( specialKey == ( SpecialKey . F5 ) ) key |= SWT . F5 ; else if ( specialKey == ( SpecialKey . F6 ) ) key |= SWT . F6 ; else if ( specialKey == ( SpecialKey . F7 ) ) key |= SWT . F7 ; else if ( specialKey == ( SpecialKey . F8 ) ) key |= SWT . F8 ; else if ( specialKey == ( SpecialKey . F9 ) ) key |= SWT . F9 ; else if ( specialKey == ( SpecialKey . HOME ) ) key |= SWT . HOME ; else if ( specialKey == ( SpecialKey . INSERT ) ) key |= SWT . INSERT ; else if ( specialKey == ( SpecialKey . PAGE_DOWN ) ) key |= SWT . PAGE_DOWN ; else if ( specialKey == ( SpecialKey . PAGE_UP ) ) key |= SWT . PAGE_UP ; } return key ; } static String translateString ( ResourceBundle resourceBundle , String key , String string ) { } private KeySupport ( ) { } }

Fix:
final NaturalKey naturalKey = keyStroke . getNaturalKey ( ) ;
Buggy code:
public class UserLogin extends Activity { final String key = "faab1810-5039-4741-abdc-51a7b628b57f" ; @ Override protected void onCreate ( Bundle savedInstanceState ) { } @ Override public boolean onCreateOptionsMenu ( Menu menu ) { } @ Override public boolean onOptionsItemSelected ( MenuItem item ) { } private UserLogin . Login login ; private class Login extends AsyncTask < String , Void , String > { @ Override protected String doInBackground ( String ... params ) { } @ Override protected void onPostExecute ( String result ) { UserModel user = Parse . getLoginUser ( result ) ; <START_BUG> if ( user != null ) { <END_BUG> final EasySplitGlobal esGlobal = ( ( EasySplitGlobal ) ( getApplicationContext ( ) ) ) ; esGlobal . setCurrentUser ( user ) ; Intent viewEventIntent = new Intent ( getApplicationContext ( ) , MainActivity . class ) ; startActivity ( viewEventIntent ) ; } else { Toast . makeText ( getApplicationContext ( ) , "Email<seq2seq4repair_space>or<seq2seq4repair_space>Password<seq2seq4repair_space>is<seq2seq4repair_space>invalid!" , LENGTH_LONG ) . show ( ) ; } } } }

Fix:
if ( ( user . UserId ) > 0 ) {
Buggy code:
public class AudialSegmentation { private String audioPath ; private String directoryMain ; public AudialSegmentation ( String audialDataPath ) { } public void setFile ( String resultPath ) { } public void segmentAudio ( ) throws IOException { BufferedReader reader = null ; String perLine = "" ; String [ ] lineArr = new String [ 7 ] ; int currentSecond = 0 ; int lastSecond = 0 ; int wavCount = 1 ; String filePath = "" ; String outPath = "" ; String fileRead = "" ; String OS = System . getProperty ( "os.name" ) . toLowerCase ( ) ; if ( ( OS . indexOf ( "win" ) ) >= 0 ) { filePath = ( "\"" + ( this . audioPath . concat ( "\\output.mp3" ) ) ) + "\"" ; outPath = "\"" + ( this . audioPath . concat ( "\\Segments" ) ) ; fileRead = this . directoryMain . concat ( "\\Visual<seq2seq4repair_space>Data\\ShotRange.txt" ) ; } else if ( ( OS . indexOf ( "mac" ) ) >= 0 ) { filePath = ( "\"" + ( this . audioPath . concat ( "//output.wav" ) ) ) + "\"" ; outPath = "\"" + ( this . audioPath . concat ( "//Segments" ) ) ; <START_BUG> fileRead = this . directoryMain . concat ( "//Visual<seq2seq4repair_space>Data//ShotRange.mp3" ) ; <END_BUG> } try { reader = new BufferedReader ( new FileReader ( fileRead ) ) ; } catch ( FileNotFoundException e ) { e . printStackTrace ( ) ; } while ( ( perLine = reader . readLine ( ) ) != null ) { lineArr = perLine . split ( "<seq2seq4repair_space>" ) ; int startingFrame = Integer . parseInt ( lineArr [ 4 ] ) ; int lastFrame = Integer . parseInt ( lineArr [ 6 ] ) ; int numberOfFramesInShot = ( lastFrame - startingFrame ) + 1 ; lastSecond = numberOfFramesInShot // 16 ; String ffmpegCmd = ( ( ( ( ( ( ( ( ( "ffmpeg<seq2seq4repair_space>-ss<seq2seq4repair_space>" + currentSecond ) + "<seq2seq4repair_space>-t<seq2seq4repair_space>" ) + lastSecond ) + "<seq2seq4repair_space>-i<seq2seq4repair_space>" ) + filePath ) + "<seq2seq4repair_space>" ) + outPath ) + "\\" ) + wavCount ) + ".mp3\"" ; if ( ( OS . indexOf ( "mac" ) ) >= 0 ) { System . out . println ( "OS:<seq2seq4repair_space>Mac" ) ; ffmpegCmd = ( ( ( ( ( ( ( ( ( "//usr//local//Cellar//ffmpeg//2.4.2//bin//ffmpeg<seq2seq4repair_space>-ss<seq2seq4repair_space>" + currentSecond ) + "<seq2seq4repair_space>-t<seq2seq4repair_space>" ) + lastSecond ) + "<seq2seq4repair_space>-i<seq2seq4repair_space>" ) + filePath ) + "<seq2seq4repair_space>" ) + outPath ) + "//" ) + wavCount ) + ".mp3\"" ; System . out . println ( ffmpegCmd ) ; } System . out . println ( ffmpegCmd ) ; try { Runtime runTime = Runtime . getRuntime ( ) ; Process extractionProcess = runTime . exec ( ffmpegCmd ) ; StreamConsumer errorGobbler = new StreamConsumer ( extractionProcess . getErrorStream ( ) , "ERROR" ) ; StreamConsumer outputGobbler = new StreamConsumer ( extractionProcess . getInputStream ( ) , "OUTPUT" ) ; errorGobbler . start ( ) ; outputGobbler . start ( ) ; int exitVal = extractionProcess . waitFor ( ) ; System . out . println ( ( "ExitValue:<seq2seq4repair_space>" + exitVal ) ) ; } catch ( Throwable e ) { e . printStackTrace ( ) ; } currentSecond += lastSecond ; wavCount ++ ; } } }

Fix:
fileRead = this . directoryMain . concat ( "//Visual<seq2seq4repair_space>Data//ShotRange.txt" ) ;
Buggy code:
public class ImportDeclaration extends ASTNode { public static final ChildPropertyDescriptor NAME_PROPERTY = new ChildPropertyDescriptor ( ImportDeclaration . class , "name" , Name . class , ASTNode . MANDATORY , ASTNode . NO_CYCLE_RISK ) ; public static final SimplePropertyDescriptor ON_DEMAND_PROPERTY = new SimplePropertyDescriptor ( ImportDeclaration . class , "onDemand" , boolean . class , ASTNode . MANDATORY ) ; public static final SimplePropertyDescriptor STATIC_PROPERTY = new SimplePropertyDescriptor ( ImportDeclaration . class , "static" , boolean . class , ASTNode . MANDATORY ) ; private static final List PROPERTY_DESCRIPTORS_2_0 ; private static final List PROPERTY_DESCRIPTORS_3_0 ; public static List propertyDescriptors ( int apiLevel ) { } private Name importName = null ; private boolean onDemand = false ; private boolean isStatic = false ; ImportDeclaration ( AST ast ) { } final List internalStructuralPropertiesForType ( int apiLevel ) { } final boolean internalGetSetBooleanProperty ( SimplePropertyDescriptor property , boolean get , boolean value ) { } final ASTNode internalGetSetChildProperty ( ChildPropertyDescriptor property , boolean get , ASTNode child ) { } final int getNodeType0 ( ) { } ASTNode clone0 ( AST target ) { } final boolean subtreeMatch0 ( ASTMatcher matcher , Object other ) { } void accept0 ( ASTVisitor visitor ) { } public Name getName ( ) { if ( ( this . importName ) == null ) { <START_BUG> synchronized ( this . ast ) { <END_BUG> if ( ( this . importName ) == null ) { preLazyInit ( ) ; this . importName = this . ast . newQualifiedName ( new SimpleName ( this . ast ) , new SimpleName ( this . ast ) ) ; postLazyInit ( this . importName , ImportDeclaration . NAME_PROPERTY ) ; } } } return importName ; } public void setName ( Name name ) { } public boolean isOnDemand ( ) { } public void setOnDemand ( boolean onDemand ) { } public boolean isStatic ( ) { } public void setStatic ( boolean isStatic ) { } public IBinding resolveBinding ( ) { } int memSize ( ) { } int treeSize ( ) { } }

Fix:
synchronized ( this ) {
Buggy code:
@ RunWith ( MockitoJUnitRunner . class ) public class BirthdayTest { private static final String BIRTHDAY_TITLE = "%1$s's<seq2seq4repair_space>birthday" ; @ Mock IRString rstring ; @ Test public void getTitle_ValidBirthday_ReturnsValidTitle ( ) throws Exception { <START_BUG> when ( rstring . getString ( birthday_title ) ) . thenReturn ( BirthdayTest . BIRTHDAY_TITLE ) ; <END_BUG> Birthday bd = new Birthday ( "John" , getADate ( ) , rstring ) ; assertThat ( bd . getTitle ( ) , is ( "John's<seq2seq4repair_space>birthday" ) ) ; } private LocalDate getADate ( ) { } @ Test public void getDate_ValidBirthday_ReturnsValidDate ( ) throws Exception { } }

Fix:
when ( rstring . getStringFromId ( birthday_title ) ) . thenReturn ( BirthdayTest . BIRTHDAY_TITLE ) ;
Buggy code:
public class ImportContainer extends SourceRefElement implements IImportContainer { protected ImportContainer ( ICompilationUnit parent ) { } public String getHandleMemento ( ) { } protected char getHandleMementoDelimiter ( ) { } public IImportDeclaration getImport ( String name ) { } public ISourceRange getSourceRange ( ) throws JavaModelException { } public boolean hasChildren ( ) throws JavaModelException { } public String readableName ( ) { } protected void toString ( int tab , StringBuffer buffer ) { <START_BUG> Object info = fgJavaModelManager . peekAtInfo ( this ) ; <END_BUG> if ( ( info == null ) || ( ! ( info instanceof JavaElementInfo ) ) ) return ; IJavaElement [ ] children = ( ( JavaElementInfo ) ( info ) ) . getChildren ( ) ; for ( int i = 0 ; i < ( children . length ) ; i ++ ) { if ( i > 0 ) buffer . append ( "\n" ) ; ( ( JavaElement ) ( children [ i ] ) ) . toString ( tab , buffer ) ; } } }

Fix:
Object info = JavaModelManager . getJavaModelManager ( ) . peekAtInfo ( this ) ;
Buggy code:
public class ManagementUtil { public static void reportRolesAsJSON ( OperationContext context , String rolesAsJSON ) { } public static void reportRoles ( OperationContext context , String rolesAsJSON ) { } public static void reportListOfString ( OperationContext context , String [ ] list ) { } private ManagementUtil ( ) { } static ModelNode convertSecurityRole ( final ModelNode camelCase ) { } public static void rollbackOperationWithNoHandler ( OperationContext context , ModelNode operation ) { context . getFailureDescription ( ) . set ( MESSAGES . noHandler ( READ_ATTRIBUTE_OPERATION , PathAddress . pathAddress ( operation . require ( OP_ADDR ) ) ) ) ; context . setRollbackOnly ( ) ; <START_BUG> context . completeStep ( ) ; <END_BUG> } }

Fix:
context . stepCompleted ( ) ;
Buggy code:
public final class BitArray { private byte [ ] data ; private int limit ; private int byteOffset ; private int bitOffset ; public BitArray ( ) { } public BitArray ( byte [ ] data , int limit ) { } public void reset ( ) { } public void reset ( byte [ ] data , int limit ) { } public byte [ ] getData ( ) { } public int getByteOffset ( ) { } public void setByteOffset ( int byteOffset ) { } public int append ( DataSource dataSource , int length ) throws IOException { } public void append ( BitArray bitsArray , int length ) { } private void expand ( int length ) { } public void clearReadData ( ) { } public int readUnsignedByte ( ) { byte b ; if ( ( bitOffset ) != 0 ) { <START_BUG> b = ( ( byte ) ( ( ( data [ byteOffset ] ) << ( bitOffset ) ) | ( ( data [ ( ( byteOffset ) + 1 ) ] ) > > ( 8 - ( bitOffset ) ) ) ) ) ; <END_BUG> } else { b = data [ byteOffset ] ; } ( byteOffset ) ++ ; return b & 255 ; } public boolean readBit ( ) { } public int readBits ( int n ) { } public long readBitsLong ( int n ) { } private int getUnsignedByte ( int offset ) { } public void skipBits ( int n ) { } public void skipBytes ( int n ) { } public void readBytes ( byte [ ] out , int offset , int length ) { } public int bytesLeft ( ) { } public boolean isEmpty ( ) { } public int readUnsignedExpGolombCodedInt ( ) { } public int readSignedExpGolombCodedInt ( ) { } private int readExpGolombCodeNum ( ) { } public int readSynchSafeInt ( ) { } public int findNextAdtsSyncWord ( ) { } public int findNextNalUnit ( int nalUnitType , int offset ) { } }

Fix:
b = ( ( byte ) ( ( ( data [ byteOffset ] ) << ( bitOffset ) ) | ( ( ( data [ ( ( byteOffset ) + 1 ) ] ) & 255 ) > > ( 8 - ( bitOffset ) ) ) ) ) ;
Buggy code:
public class RecipeFactory { public Recipe createRecipe ( Service service ) { } public void changeScriptTemplate ( Service service ) throws IOException { } public void changeMetadataRb ( Service service ) throws IOException { } public void changeServerRecipe ( Service service ) throws IOException { } public void changeAttributesDefaultRb ( Service service ) throws IOException { } private void changeFileContents ( Service service , String fileLocation ) throws IOException { } public String copyTemplate ( Service service ) throws IOException { URL scriptFile = ClassLoader . getSystemResource ( "chef//tomcat-service-deploy-recipe-template" ) ; <START_BUG> URL destURL = ClassLoader . getSystemResource ( "chef" ) ; <END_BUG> File srcFolder = new File ( scriptFile . getFile ( ) ) ; File destFolder = new File ( destURL . getFile ( ) . concat ( ( "//service" + ( service . getId ( ) ) ) ) ) ; FileUtils . copyDirectory ( srcFolder , destFolder ) ; return destFolder . getAbsolutePath ( ) ; } }

Fix:
URL destURL = RecipeDeployer . destURL ;
Buggy code:
class FunctionParser { Logger log = LoggingManager . getLoggerForClass ( ) ; LinkedList compileString ( String value ) throws InvalidVariableException { StringReader reader = new StringReader ( value ) ; LinkedList result = new LinkedList ( ) ; StringBuffer buffer = new StringBuffer ( ) ; char previous = '<seq2seq4repair_space>' ; char [ ] current = new char [ 1 ] ; try { while ( ( reader . read ( current ) ) == 1 ) { if ( ( current [ 0 ] ) == '\\' ) { previous = current [ 0 ] ; if ( ( reader . read ( current ) ) == 0 ) { break ; } <START_BUG> if ( ( ( current [ 0 ] ) != '$' ) && ( ( current [ 0 ] ) != ',' ) ) { <END_BUG> buffer . append ( previous ) ; } previous = '<seq2seq4repair_space>' ; buffer . append ( current [ 0 ] ) ; continue ; } else if ( ( ( current [ 0 ] ) == '{' ) && ( previous == '$' ) ) { buffer . deleteCharAt ( ( ( buffer . length ( ) ) - 1 ) ) ; if ( ( buffer . length ( ) ) > 0 ) { result . add ( buffer . toString ( ) ) ; buffer . setLength ( 0 ) ; } result . add ( makeFunction ( reader ) ) ; previous = '<seq2seq4repair_space>' ; } else { buffer . append ( current [ 0 ] ) ; previous = current [ 0 ] ; } } if ( ( buffer . length ( ) ) > 0 ) { result . add ( buffer . toString ( ) ) ; } } catch ( IOException e ) { log . error ( ( "Error<seq2seq4repair_space>parsing<seq2seq4repair_space>function:<seq2seq4repair_space>" + value ) , e ) ; result . clear ( ) ; result . add ( value ) ; } if ( ( result . size ( ) ) == 0 ) { result . add ( "" ) ; } return result ; } Object makeFunction ( StringReader reader ) throws InvalidVariableException { } LinkedList parseParams ( StringReader reader ) throws InvalidVariableException { } }

Fix:
if ( ( ( ( current [ 0 ] ) != '$' ) && ( ( current [ 0 ] ) != ',' ) ) && ( ( current [ 0 ] ) != '\\' ) ) {
Buggy code:
public class WebRequestEncoder implements IRequestEncoder { private static Log log = LogFactory . getLog ( WebRequestEncoder . class ) ; private SortedMap mountsOnPath = new TreeMap ( WebRequestEncoder . lengthComparator ) ; private String urlPrefix ; public WebRequestEncoder ( ) { } protected IRequestTargetEncoderDecoder getMountEncoder ( IRequestTarget requestTarget ) { } public final String encode ( RequestCycle requestCycle , IRequestTarget requestTarget ) { } protected String doEncode ( RequestCycle requestCycle , IRequestTarget requestTarget ) { } public final RequestParameters decode ( Request request ) { } public final void mount ( String path , IRequestTargetEncoderDecoder encoder ) { } public final void unmount ( String path ) { } public final IRequestTarget targetForPath ( String path ) { } public final IRequestTargetEncoderDecoder encoderForPath ( String path ) { } public final String pathForTarget ( IRequestTarget requestTarget ) { } protected String getRequestPath ( Request request ) { } protected final String encode ( RequestCycle requestCycle , IBookmarkablePageRequestTarget requestTarget ) { } protected final String encode ( RequestCycle requestCycle , IListenerInterfaceRequestTarget requestTarget ) { final StringBuffer url = new StringBuffer ( urlPrefix ( requestCycle ) ) ; url . append ( "?path=" ) ; <START_BUG> Component component = requestTarget . getComponent ( ) ; <END_BUG> url . append ( component . getPath ( ) ) ; Page currentPage = component . getPage ( ) ; final PageMap pageMap = currentPage . getPageMap ( ) ; if ( ! ( pageMap . isDefault ( ) ) ) { url . append ( "&pagemap=" ) ; url . append ( pageMap . getName ( ) ) ; } int versionNumber = component . getPage ( ) . getCurrentVersionNumber ( ) ; if ( versionNumber > 0 ) { url . append ( "&version=" ) ; url . append ( versionNumber ) ; } String listenerName = Classes . name ( requestTarget . getListenerMethod ( ) . getDeclaringClass ( ) ) ; if ( ! ( "IRedirectListener" . equals ( listenerName ) ) ) { url . append ( "&interface=" ) ; url . append ( listenerName ) ; } return requestCycle . getResponse ( ) . encodeURL ( url . toString ( ) ) ; } protected final String encode ( RequestCycle requestCycle , ISharedResourceRequestTarget requestTarget ) { } protected void addPageParameters ( Request request , RequestParameters parameters ) { } protected void addBookmarkablePageParameters ( Request request , RequestParameters parameters ) { } protected void addResourceParameters ( Request request , RequestParameters parameters ) { } protected final String urlPrefix ( RequestCycle requestCycle ) { } private static final Comparator lengthComparator = new Comparator ( ) { public int compare ( Object o1 , Object o2 ) { } } ; }

Fix:
Component component = requestTarget . getTarget ( ) ;
Buggy code:
public class DynamicPartitionConnections { static class ConnectionInfo { SimpleConsumer consumer ; Set < Integer > partitions = new HashSet ( ) ; public ConnectionInfo ( SimpleConsumer consumer ) { } } Map < HostPort , DynamicPartitionConnections . ConnectionInfo > _connections = new HashMap ( ) ; KafkaConfig _config ; public DynamicPartitionConnections ( KafkaConfig config ) { } public SimpleConsumer register ( GlobalPartitionId id ) { } public SimpleConsumer register ( HostPort host , int partition ) { if ( ! ( _connections . containsKey ( host ) ) ) { <START_BUG> _connections . put ( host , new DynamicPartitionConnections . ConnectionInfo ( new SimpleConsumer ( host . host , host . port , _config . socketTimeoutMs , _config . bufferSizeBytes ) ) ) ; <END_BUG> } DynamicPartitionConnections . ConnectionInfo info = _connections . get ( host ) ; info . partitions . add ( partition ) ; return info . consumer ; } public SimpleConsumer getConnection ( GlobalPartitionId id ) { } public void unregister ( HostPort port , int partition ) { } public void unregister ( GlobalPartitionId id ) { } public void clear ( ) { } }

Fix:
_connections . put ( host , new DynamicPartitionConnections . ConnectionInfo ( new SimpleConsumer ( host . host , host . port , _config . socketTimeoutMs , _config . bufferSizeBytes , OffsetRequest . DefaultClientId ( ) ) ) ) ;
Buggy code:
public class FacesWebRequest extends FacesRequestAttributes implements NativeWebRequest { public FacesWebRequest ( FacesContext facesContext ) { } public Object getNativeRequest ( ) { } public Object getNativeResponse ( ) { } public String getParameter ( String paramName ) { } public String [ ] getParameterValues ( String paramName ) { <START_BUG> return ( ( String [ ] ) ( getExternalContext ( ) . getRequestParameterMap ( ) . get ( paramName ) ) ) ; <END_BUG> } public Map getParameterMap ( ) { } public Locale getLocale ( ) { } public String getContextPath ( ) { } public String getRemoteUser ( ) { } public Principal getUserPrincipal ( ) { } public boolean isUserInRole ( String role ) { } public boolean isSecure ( ) { } public boolean checkNotModified ( long lastModifiedTimestamp ) { } public String getDescription ( boolean includeClientInfo ) { } public String toString ( ) { } }

Fix:
return ( ( String [ ] ) ( getExternalContext ( ) . getRequestParameterValuesMap ( ) . get ( paramName ) ) ) ;
Buggy code:
public class GroupAwareCacheFactory < K extends Serializable , V extends Cacheable < K > > implements CacheFactory < K , V > , BackingCacheLifecycleListener { private final AtomicReference < PassivatingBackingCache < UUID , Cacheable < UUID > , SerializationGroup < K , V , UUID > > > groupCacheRef = new AtomicReference < PassivatingBackingCache < UUID , Cacheable < UUID > , SerializationGroup < K , V , UUID > > > ( ) ; private final AtomicInteger memberCounter = new AtomicInteger ( ) ; private final BackingCacheEntryStoreSource < K , V , UUID > storeSource ; public GroupAwareCacheFactory ( BackingCacheEntryStoreSource < K , V , UUID > storeSource ) { } @ Override public Cache < K , V > createCache ( String beanName , StatefulObjectFactory < V > factory , PassivationManager < K , V > passivationManager , StatefulTimeoutInfo timeout ) { PassivatingBackingCache < UUID , Cacheable < UUID > , SerializationGroup < K , V , UUID > > groupCache = this . groupCacheRef . get ( ) ; if ( groupCache == null ) { groupCache = this . createGroupCache ( passivationManager , timeout ) ; if ( ! ( groupCacheRef . compareAndSet ( null , groupCache ) ) ) { groupCache = this . groupCacheRef . get ( ) ; } } SerializationGroupMemberContainer < K , V , UUID > container = new SerializationGroupMemberContainer < K , V , UUID > ( passivationManager , groupCache , this . storeSource ) ; BackingCacheEntryStore < K , V , SerializationGroupMember < K , V , UUID > > store = storeSource . createIntegratedObjectStore ( beanName , container , timeout ) ; container . setBackingCacheEntryStore ( store ) ; GroupAwareBackingCache < K , V , UUID , SerializationGroupMember < K , V , UUID > > backingCache = new org . jboss . as . ejb3 . cache . impl . backing . GroupAwareBackingCacheImpl < K , V , UUID > ( factory , container , groupCache , Executors . newScheduledThreadPool ( 1 , Executors . defaultThreadFactory ( ) ) ) ; backingCache . addLifecycleListener ( this ) ; <START_BUG> return new org . jboss . as . ejb3 . cache . impl . GroupAwareCache < K , V , UUID , SerializationGroupMember < K , V , UUID > > ( backingCache , true ) ; <END_BUG> } private PassivatingBackingCache < UUID , Cacheable < UUID > , SerializationGroup < K , V , UUID > > createGroupCache ( PassivationManager < K , V > passivationManager , StatefulTimeoutInfo timeout ) { } @ Override public void lifecycleChange ( LifecycleState newState ) { } }

Fix:
return new org . jboss . as . ejb3 . cache . impl . GroupAwareCache < K , V , UUID , SerializationGroupMember < K , V , UUID > > ( this . storeSource , backingCache , true ) ;
Buggy code:
public class DamageListener extends EntityListener { private PvPTime plugin ; DamageListener ( PvPTime instance ) { } @ Override public void onEntityDamage ( EntityDamageEvent event ) { if ( event instanceof EntityDamageByEntityEvent ) { EntityDamageByEntityEvent entEvent = ( ( EntityDamageByEntityEvent ) ( event ) ) ; if ( ( ( entEvent . getDamager ( ) ) instanceof Player ) && ( ( entEvent . getEntity ( ) ) instanceof Player ) ) { Player attacker = ( ( Player ) ( entEvent . getDamager ( ) ) ) ; <START_BUG> if ( ( ( Boolean ) ( plugin . getValue ( plugin . pvpWorlds , attacker . getWorld ( ) . toString ( ) , "overrideEnabled" ) ) ) == true ) { <END_BUG> if ( attacker . hasPermission ( "pvptime.override" ) ) { return ; } } if ( ( isItPvPTime ( attacker . getWorld ( ) . getName ( ) ) ) == false ) { event . setCancelled ( true ) ; } return ; } } } public boolean isItPvPTime ( String world ) { } No newline ; at end ; of file ; }

Fix:
if ( ( ( Boolean ) ( plugin . getValue ( plugin . pvpWorlds , attacker . getWorld ( ) . getName ( ) , "overrideEnabled" ) ) ) == true ) {
Buggy code:
public abstract class AbstractAjaxBehavior implements IBehavior , IBehaviorListener , IHeaderContributor { private static final ThreadLocal headContribHolder = new ThreadLocal ( ) ; private Component component ; public AbstractAjaxBehavior ( ) { } public final void bind ( final Component hostComponent ) { } public void detachModel ( ) { } public final String getCallbackUrl ( ) { } public final void onComponentTag ( final Component component , final ComponentTag tag ) { } protected void onComponentTag ( final ComponentTag tag ) { } public final void rendered ( final Component hostComponent ) { } public final void renderHead ( final Response response ) { } protected void writeJsReference ( final Response response , final PackageResourceReference ref ) { String url = RequestCycle . get ( ) . urlFor ( ref ) ; response . write ( ( "\t<script<seq2seq4repair_space>language=\"JavaScript\"<seq2seq4repair_space>type=\"text//javascript\"<seq2seq4repair_space>" + "src=\"" ) ) ; response . write ( url ) ; <START_BUG> response . write ( "\"><//script>\n" ) ; <END_BUG> } protected final Component getComponent ( ) { } protected abstract String getImplementationId ( ) { } protected void onBind ( ) { } protected void onComponentRendered ( ) { } protected void onRenderHeadContribution ( final Response response ) { } protected void onRenderHeadInitContribution ( final Response response ) { } private final void write ( final HtmlHeaderContainer container , final String str ) { } }

Fix:
response . println ( "\"><//script>" ) ;
Buggy code:
public abstract class BreadCrumbPanel < T > extends Panel < T > implements IBreadCrumbParticipant { private static final long serialVersionUID = 1L ; private IBreadCrumbModel breadCrumbModel ; public BreadCrumbPanel ( MarkupContainer parent , final String id , IBreadCrumbModel breadCrumbModel ) { } public BreadCrumbPanel ( MarkupContainer parent , final String id , IBreadCrumbModel breadCrumbModel , IModel < T > model ) { } public void activate ( IBreadCrumbPanelFactory breadCrumbPanelFactory ) { <START_BUG> activate ( breadCrumbPanelFactory . create ( this , BreadCrumbPanel . getId ( ) , breadCrumbModel ) ) ; <END_BUG> } public void activate ( IBreadCrumbParticipant participant ) { } public final IBreadCrumbModel getBreadCrumbModel ( ) { } public Component getComponent ( ) { } public void onActivate ( IBreadCrumbParticipant previous ) { } public final void setBreadCrumbModel ( IBreadCrumbModel breadCrumbModel ) { } }

Fix:
activate ( breadCrumbPanelFactory . create ( this . getParent ( ) , BreadCrumbPanel . getId ( ) , breadCrumbModel ) ) ;
Buggy code:
public final class Long extends Number implements Comparable < Long > { static class BoxedValues { static Long [ ] boxedValues = new Long [ 256 ] ; } public static final long MAX_VALUE = 9223372036854775807L ; public static final long MIN_VALUE = - 9223372036854775808L ; public static final int SIZE = 64 ; public static final Class < Long > TYPE = long . class ; public static int bitCount ( long i ) { } public static int compare ( long x , long y ) { } public static Long decode ( String s ) throws NumberFormatException { } public static int hashCode ( long l ) { } public static long highestOneBit ( long i ) { int high = ( ( int ) ( i > > 32 ) ) ; if ( high != 0 ) { return ( ( long ) ( Integer . highestOneBit ( high ) ) ) << 32 ; } else { <START_BUG> return Integer . highestOneBit ( ( ( int ) ( i ) ) ) ; <END_BUG> } } public static long lowestOneBit ( long i ) { } public static int numberOfLeadingZeros ( long i ) { } public static int numberOfTrailingZeros ( long i ) { } public static long parseLong ( String s ) throws NumberFormatException { } public static long parseLong ( String s , int radix ) throws NumberFormatException { } public static long reverse ( long i ) { } public static long reverseBytes ( long i ) { } public static long rotateLeft ( long i , int distance ) { } public static long rotateRight ( long i , int distance ) { } public static int signum ( long i ) { } public static String toBinaryString ( long value ) { } public static String toHexString ( long value ) { } public static String toOctalString ( long value ) { } public static String toString ( long value ) { } public static String toString ( long value , int intRadix ) { } public static Long valueOf ( long i ) { } public static Long valueOf ( String s ) throws NumberFormatException { } public static Long valueOf ( String s , int radix ) throws NumberFormatException { } private static String toPowerOfTwoUnsignedString ( long value , int shift ) { } private final transient long value ; public Long ( long value ) { } public Long ( String s ) { } @ Override public byte byteValue ( ) { } @ Override public int compareTo ( Long b ) { } @ Override public double doubleValue ( ) { } @ Override public boolean equals ( Object o ) { } @ Override public float floatValue ( ) { } @ Override public int hashCode ( ) { } @ Override public int intValue ( ) { } @ Override public long longValue ( ) { } @ Override public short shortValue ( ) { } @ Override public String toString ( ) { } }

Fix:
return ( Integer . highestOneBit ( ( ( int ) ( i ) ) ) ) & 4294967295L ;
Buggy code:
if ( ( referFixed != null ) && ( ( defaultAtt != null ) || ( ( fixedAtt != null ) && ( ! ( referFixed . equals ( fixedStr ) ) ) ) ) ) { reportGenericSchemaError ( ( "au-props-correct.2:<seq2seq4repair_space>If<seq2seq4repair_space>the<seq2seq4repair_space>{attribute<seq2seq4repair_space>declaration}<seq2seq4repair_space>has<seq2seq4repair_space>a<seq2seq4repair_space>fixed<seq2seq4repair_space>{value<seq2seq4repair_space>constraint},<seq2seq4repair_space>then<seq2seq4repair_space>if<seq2seq4repair_space>the<seq2seq4repair_space>attribute<seq2seq4repair_space>use<seq2seq4repair_space>itself<seq2seq4repair_space>has<seq2seq4repair_space>a<seq2seq4repair_space>{value<seq2seq4repair_space>constraint},<seq2seq4repair_space>it<seq2seq4repair_space>must<seq2seq4repair_space>also<seq2seq4repair_space>be<seq2seq4repair_space>fixed<seq2seq4repair_space>and<seq2seq4repair_space>its<seq2seq4repair_space>value<seq2seq4repair_space>must<seq2seq4repair_space>match<seq2seq4repair_space>that<seq2seq4repair_space>of<seq2seq4repair_space>the<seq2seq4repair_space>{attribute<seq2seq4repair_space>declaration}'s<seq2seq4repair_space>{value<seq2seq4repair_space>constraint}" + errorContext ) ) ; } <START_BUG> if ( ( ! isOptional ) || ( ( fixedStr . length ( ) ) > 0 ) ) { <END_BUG>

Fix:
if ( ( typeInfo != null ) && ( ( ! isOptional ) || ( ( fixedStr . length ( ) ) > 0 ) ) ) {