nus-yam/ex-repair huggingface dataset:
Buggy code:
@ SuppressCodecs ( "Lucene3x" ) public class TestDocCount extends LuceneTestCase { public void testSimple ( ) throws Exception { } private Document doc ( ) { } private void verifyCount ( IndexReader ir ) throws Exception { Fields fields = MultiFields . getFields ( ir ) ; if ( fields == null ) { return ; } FieldsEnum e = fields . iterator ( ) ; String field ; while ( ( field = e . next ( ) ) != null ) { Terms terms = fields . terms ( field ) ; if ( terms == null ) { continue ; } int docCount = terms . getDocCount ( ) ; FixedBitSet visited = new FixedBitSet ( ir . maxDoc ( ) ) ; TermsEnum te = terms . iterator ( null ) ; while ( ( te . next ( ) ) != null ) { <START_BUG> DocsEnum de = _TestUtil . docs ( random ( ) , te , null , null , 0 ) ; <END_BUG> while ( ( de . nextDoc ( ) ) != ( DocIdSetIterator . NO_MORE_DOCS ) ) { visited . set ( de . docID ( ) ) ; } } assertEquals ( visited . cardinality ( ) , docCount ) ; } } }

Fix:
DocsEnum de = _TestUtil . docs ( random ( ) , te , null , null , false ) ;
Buggy code:
public class KillRing { public static void propertiesChanged ( ) { } public static ListModel getListModel ( ) { } static Remove [ ] ring ; static int count ; static boolean wrap ; static void add ( UndoManager . Remove rem ) { } static class RingListModel implements ListModel { public void addListDataListener ( ListDataListener listener ) { } public void removeListDataListener ( ListDataListener listener ) { } public Object getElementAt ( int index ) { UndoManager . Remove rem ; if ( KillRing . wrap ) { if ( index < ( ( KillRing . ring . length ) - ( KillRing . count ) ) ) <START_BUG> rem = KillRing . ring [ ( ( ( KillRing . ring . length ) - index ) + ( KillRing . count ) ) ] ; <END_BUG> else rem = KillRing . ring [ ( index + ( KillRing . count ) ) ] ; } else rem = KillRing . ring [ ( ( KillRing . count ) - index ) ] ; return rem . str ; } public int getSize ( ) { } } }

Fix:
rem = KillRing . ring [ ( ( ( KillRing . ring . length ) + index ) - ( KillRing . count ) ) ] ;
Buggy code:
public abstract class AbstractRuntimeOnlyHandler implements OperationStepHandler { public void waitFor ( ServiceController < ? > controller ) throws OperationFailedException { } @ Override public void execute ( OperationContext context , ModelNode operation ) throws OperationFailedException { context . addStep ( new OperationStepHandler ( ) { @ Override public void execute ( OperationContext context , ModelNode operation ) throws OperationFailedException { executeRuntimeStep ( context , operation ) ; } } , RUNTIME ) ; <START_BUG> context . completeStep ( ) ; <END_BUG> } protected abstract void executeRuntimeStep ( OperationContext context , ModelNode operation ) throws OperationFailedException { } private static class ServiceWaitListener < T > implements ServiceListener < T > { @ Override public void listenerAdded ( ServiceController < ? extends T > serviceController ) { } @ Override public void transition ( ServiceController < ? extends T > serviceController , ServiceController . Transition transition ) { } @ Override public void serviceRemoveRequested ( ServiceController < ? extends T > serviceController ) { } @ Override public void serviceRemoveRequestCleared ( ServiceController < ? extends T > serviceController ) { } @ Override public void dependencyFailed ( ServiceController < ? extends T > serviceController ) { } @ Override public void dependencyFailureCleared ( ServiceController < ? extends T > serviceController ) { } @ Override public void immediateDependencyUnavailable ( ServiceController < ? extends T > serviceController ) { } @ Override public void immediateDependencyAvailable ( ServiceController < ? extends T > serviceController ) { } @ Override public void transitiveDependencyUnavailable ( ServiceController < ? extends T > serviceController ) { } @ Override public void transitiveDependencyAvailable ( ServiceController < ? extends T > serviceController ) { } } }

Fix:
context . completeStep ( NOOP_ROLLBACK_HANDLER ) ;
Buggy code:
public class ResourceLink < T > extends Link < T > implements IResourceListener { private static final long serialVersionUID = 1L ; private final ResourceReference resourceReference ; private final IResource resource ; private final PageParameters resourceParameters ; public ResourceLink ( final String id , final ResourceReference resourceReference ) { } public ResourceLink ( final String id , final ResourceReference resourceReference , PageParameters resourceParameters ) { } public ResourceLink ( final String id , final IResource resource ) { } @ Override public void onClick ( ) { } public final void onResourceRequested ( ) { <START_BUG> Attributes a = new Attributes ( RequestCycle . get ( ) . getRequest ( ) , RequestCycle . get ( ) . getResponse ( ) , ResourceLink . getLocale ( ) , ResourceLink . getStyle ( ) , ResourceLink . getVariation ( ) , null ) ; <END_BUG> resource . respond ( a ) ; onClick ( ) ; } @ Override protected final CharSequence getURL ( ) { } }

Fix:
Attributes a = new Attributes ( RequestCycle . get ( ) . getRequest ( ) , RequestCycle . get ( ) . getResponse ( ) , null ) ;
Buggy code:
public class BasicComponentCreateService implements Service < Component > { private final InjectedValue < DeploymentUnit > deploymentUnit = new InjectedValue < DeploymentUnit > ( ) ; private final ServiceName serviceName ; private final String componentName ; private final Class < ? > componentClass ; private final InterceptorFactory postConstruct ; private final InterceptorFactory preDestroy ; private final Map < Method , InterceptorFactory > componentInterceptors ; private final NamespaceContextSelector namespaceContextSelector ; private BasicComponent component ; public BasicComponentCreateService ( final ComponentConfiguration componentConfiguration ) { } protected boolean requiresInterceptors ( final Method method , final ComponentConfiguration componentConfiguration ) { <START_BUG> return ( ( Modifier . isPublic ( method . getModifiers ( ) ) ) && ( ! ( Modifier . isFinal ( method . getModifiers ( ) ) ) ) ) && ( componentConfiguration . getComponentDescription ( ) . isIntercepted ( ) ) ; <END_BUG> } public synchronized void start ( final StartContext context ) throws StartException { } protected BasicComponent createComponent ( ) { } public synchronized void stop ( final StopContext context ) { } public synchronized Component getValue ( ) throws IllegalArgumentException , IllegalStateException { } public InjectedValue < DeploymentUnit > getDeploymentUnitInjector ( ) { } public String getComponentName ( ) { } public InterceptorFactory getPostConstruct ( ) { } public InterceptorFactory getPreDestroy ( ) { } public Map < Method , InterceptorFactory > getComponentInterceptors ( ) { } public Class < ? > getComponentClass ( ) { } public NamespaceContextSelector getNamespaceContextSelector ( ) { } public ServiceName getServiceName ( ) { } }

Fix:
return ( Modifier . isPublic ( method . getModifiers ( ) ) ) && ( componentConfiguration . getComponentDescription ( ) . isIntercepted ( ) ) ;
Buggy code:
final class ManagedReferenceLifecycleMethodInterceptorFactory implements InterceptorFactory { private final Object contextKey ; private final Method method ; private final boolean changeMethod ; private final boolean lifecycleMethod ; ManagedReferenceLifecycleMethodInterceptorFactory ( final Object contextKey , final Method method , final boolean changeMethod ) { } ManagedReferenceLifecycleMethodInterceptorFactory ( final Object contextKey , final Method method , final boolean changeMethod , final boolean lifecycleMethod ) { } public Interceptor create ( final InterceptorFactoryContext context ) { } static final class ManagedReferenceLifecycleMethodInterceptor implements Interceptor { private final AtomicReference < ManagedReference > instanceRef ; private final Method method ; private final boolean withContext ; private final boolean changeMethod ; private final boolean lifecycleMethod ; ManagedReferenceLifecycleMethodInterceptor ( final AtomicReference < ManagedReference > instanceRef , final Method method , final boolean changeMethod , final boolean lifecycleMethod ) { } public Object processInvocation ( final InterceptorContext context ) throws Exception { final ManagedReference reference = instanceRef . get ( ) ; final Object instance = reference . getInstance ( ) ; try { final Method method = this . method ; if ( withContext ) { final Method oldMethod = context . getMethod ( ) ; try { if ( this . lifecycleMethod ) { context . setMethod ( null ) ; return method . invoke ( instance , context . getInvocationContext ( ) ) ; } else if ( this . changeMethod ) { context . setMethod ( method ) ; return method . invoke ( instance , context . getInvocationContext ( ) ) ; } else { return method . invoke ( instance , context . getInvocationContext ( ) ) ; } } finally { context . setMethod ( oldMethod ) ; } } else { <START_BUG> method . invoke ( instance , null ) ; <END_BUG> return context . proceed ( ) ; } } catch ( IllegalAccessException e ) { final IllegalAccessError n = new IllegalAccessError ( e . getMessage ( ) ) ; n . setStackTrace ( e . getStackTrace ( ) ) ; throw n ; } catch ( InvocationTargetException e ) { throw Interceptors . rethrow ( e . getCause ( ) ) ; } } } }

Fix:
method . invoke ( instance ) ;
Buggy code:
public class GeoRole extends XulEventSourceAdapter implements Serializable , DataRole , IDataRoleAnnotation , IGeoRoleAnnotation , IMemberAnnotation { private String name ; private List < String > commonAliases ; private String matchSeparator = "_" ; private List < GeoRole > requiredParentRoles ; public GeoRole ( ) { } public GeoRole ( String name , List < String > commonAliases ) { } public GeoRole ( String name , String commonAliases ) { } @ Bindable public String getName ( ) { } @ Bindable public void setName ( String name ) { } public List < String > getCommonAliases ( ) { } public void setCommonAliases ( List < String > commonAliases ) { } public String getMatchSeparator ( ) { } public void setMatchSeparator ( String matchSeparator ) { } public boolean evaluate ( String fieldName ) { } protected boolean eval ( String fieldName , String alias ) { } @ Override public boolean equals ( Object o ) { } @ Override public int hashCode ( ) { } public GeoRole clone ( ) { } protected static List < String > parse ( String csv ) { } public void setRequiredParentRoles ( List < GeoRole > parentRoles ) { } public List < GeoRole > getRequiredParentRoles ( ) { } @ Override public void saveAnnotations ( Object obj ) { OlapHierarchyLevel level = ( ( OlapHierarchyLevel ) ( obj ) ) ; level . getAnnotations ( ) . add ( new org . pentaho . metadata . model . olap . OlapAnnotation ( GeoContext . ANNOTATION_DATA_ROLE , "Geography" ) ) ; level . getAnnotations ( ) . add ( new org . pentaho . metadata . model . olap . OlapAnnotation ( GeoContext . ANNOTATION_GEO_ROLE , getName ( ) ) ) ; if ( ( getRequiredParentRoles ( ) . size ( ) ) > 0 ) { String parents = combineRequiredParents ( this ) ; <START_BUG> level . getAnnotations ( ) . add ( new org . pentaho . metadata . model . olap . OlapAnnotation ( GeoContext . ANNOTATION_GEO_ROLE , parents ) ) ; <END_BUG> } } protected String combineRequiredParents ( GeoRole role ) { } @ Override public String getDataType ( ) { } @ Override public String getGeoName ( ) { } @ Override public boolean isValid ( AbstractMetaDataModelNode node ) { } @ Override public List < String > getValidationMessages ( AbstractMetaDataModelNode node ) { } }

Fix:
level . getAnnotations ( ) . add ( new org . pentaho . metadata . model . olap . OlapAnnotation ( GeoContext . ANNOTATION_GEO_PARENTS , parents ) ) ;
Buggy code:
public class DecryptFile { private static BigInteger MASK = new BigInteger ( "FF" , 16 ) ; public static void main ( String [ ] args ) throws Exception { if ( ( args . length ) != 3 ) { System . out . println ( "Usage:<seq2seq4repair_space>java<seq2seq4repair_space>DecryptFile<seq2seq4repair_space><key><seq2seq4repair_space><inputfile><seq2seq4repair_space><outputfile>" ) ; System . exit ( 1 ) ; } BigInteger k = new BigInteger ( args [ 0 ] , 16 ) ; File input = new File ( args [ 1 ] ) ; File output = new File ( args [ 2 ] ) ; DataInputStream in = new DataInputStream ( new FileInputStream ( input ) ) ; DataOutputStream out = new DataOutputStream ( new FileOutputStream ( output ) ) ; short [ ] key = new short [ 10 ] ; for ( int i = 0 , j = 9 ; i < 10 ; ++ i , -- j ) { key [ j ] = k . shiftRight ( ( i * 8 ) ) . and ( DecryptFile . MASK ) . shortValue ( ) ; } long thisBlock = 0 ; long nextBlock = 0 ; try { thisBlock = in . readLong ( ) ; while ( true ) { nextBlock = in . readLong ( ) ; out . writeLong ( SkipJack . Decrypt ( key , thisBlock ) ) ; thisBlock = nextBlock ; } } catch ( EOFException e ) { thisBlock = SkipJack . Decrypt ( key , thisBlock ) ; <START_BUG> int numDataBytes = 7 - ( ( Long . numberOfTrailingZeros ( thisBlock ) ) // 8 ) ; <END_BUG> byte [ ] finalbytes = ByteBuffer . allocate ( 8 ) . putLong ( thisBlock ) . array ( ) ; out . write ( finalbytes , 0 , numDataBytes ) ; } in . close ( ) ; out . close ( ) ; } }

Fix:
int numDataBytes = 8 - ( ( Long . numberOfTrailingZeros ( thisBlock ) ) // 8 ) ;
Buggy code:
public class FilePageStore implements IPageStore { protected static Logger log = LoggerFactory . getLogger ( FilePageStore . class ) ; private File defaultWorkDir ; public FilePageStore ( ) { } public Page getPage ( String sessionId , int id , int versionNumber ) { } public void removePage ( String sessionId , Page page ) { } public void storePage ( String sessionId , Page page ) { File sessionDir = new File ( getWorkDir ( ) , sessionId ) ; sessionDir . mkdirs ( ) ; File pageFile = getPageFile ( page . getNumericId ( ) , page . getCurrentVersionNumber ( ) , sessionDir ) ; page . detach ( ) ; FileOutputStream fos = null ; try { long t1 = System . currentTimeMillis ( ) ; final ByteArrayOutputStream out = new ByteArrayOutputStream ( ) ; try { new ObjectOutputStream ( out ) . writeObject ( page ) ; } finally { out . close ( ) ; } byte [ ] bytes = out . toByteArray ( ) ; fos = new FileOutputStream ( pageFile ) ; ByteBuffer bb = ByteBuffer . wrap ( bytes ) ; fos . getChannel ( ) . write ( bb ) ; if ( FilePageStore . log . isDebugEnabled ( ) ) { long t2 = System . currentTimeMillis ( ) ; <START_BUG> FilePageStore . log . info ( ( ( ( ( ( ( ( ( "storing<seq2seq4repair_space>page<seq2seq4repair_space>" + ( page . getNumericId ( ) ) ) + "," ) + ( page . getCurrentVersionNumber ( ) ) ) + "<seq2seq4repair_space>for<seq2seq4repair_space>session<seq2seq4repair_space>" ) + sessionId ) + "<seq2seq4repair_space>took<seq2seq4repair_space>" ) + ( t2 - t1 ) ) + "<seq2seq4repair_space>miliseconds" ) ) ; <END_BUG> } } catch ( Exception e ) { FilePageStore . log . error ( ( ( ( ( ( "Error<seq2seq4repair_space>saving<seq2seq4repair_space>page<seq2seq4repair_space>" + ( page . getId ( ) ) ) + "," ) + ( page . getCurrentVersionNumber ( ) ) ) + "<seq2seq4repair_space>for<seq2seq4repair_space>the<seq2seq4repair_space>sessionid<seq2seq4repair_space>" ) + sessionId ) , e ) ; } finally { try { if ( fos != null ) { fos . close ( ) ; } } catch ( IOException ex ) { } } } public void unbind ( String sessionId ) { } protected File getWorkDir ( ) { } private File getPageFile ( int id , int versionNumber , File sessionDir ) { } }

Fix:
FilePageStore . log . info ( ( ( ( ( ( ( ( ( ( "storing<seq2seq4repair_space>page<seq2seq4repair_space>" + ( page . getNumericId ( ) ) ) + "," ) + ( page . getCurrentVersionNumber ( ) ) ) + "<seq2seq4repair_space>for<seq2seq4repair_space>session<seq2seq4repair_space>" ) + sessionId ) + "<seq2seq4repair_space>took<seq2seq4repair_space>" ) + ( t2 - t1 ) ) + "<seq2seq4repair_space>miliseconds,<seq2seq4repair_space>bytes<seq2seq4repair_space>saved:<seq2seq4repair_space>" ) + ( bytes . length ) ) ) ;
Buggy code:
public class DimensionInfo { public static final String NAME_END = "end" ; public static final String NAME_NETHER = "nether" ; public static final String NAME_OVERWORLD = "overworld" ; public String name ; public int dimensionId ; public DimensionType type ; public Long seedOverride ; public ChunkCoordinates spawnPoint ; public String superflatGenerator ; public BiomeGenBase biome ; public BiomeGenBase [ ] biomeList ; public boolean loadSpawn ; public DimensionInfo ( ) { } public boolean validateConfiguration ( ) { if ( ( type ) == ( DimensionType . UNKNOWN ) ) { return false ; } else if ( ( type . isExternalWorldType ( ) ) && ( ( type . getWorldType ( ) ) == null ) ) { throw new nil . xcompcraft . util . WorldTypeProviderModNotPresentException ( String . format ( "World<seq2seq4repair_space>type<seq2seq4repair_space>for<seq2seq4repair_space>%s<seq2seq4repair_space>not<seq2seq4repair_space>available<seq2seq4repair_space>(%s)<seq2seq4repair_space>-<seq2seq4repair_space>please<seq2seq4repair_space>ensure<seq2seq4repair_space>the<seq2seq4repair_space>mod<seq2seq4repair_space>that<seq2seq4repair_space>provides<seq2seq4repair_space>this<seq2seq4repair_space>world<seq2seq4repair_space>type<seq2seq4repair_space>is<seq2seq4repair_space>present!" , name , type . name ( ) ) ) ; } if ( ( ! ( isNameValid ( name ) ) ) || ( ! ( isValidDimensionId ( dimensionId ) ) ) ) { return false ; } else <START_BUG> if ( ( type ) == ( DimensionType . SUPERFLAT ) ) { <END_BUG> return ( ( superflatGenerator ) != null ) && ( ! ( superflatGenerator . isEmpty ( ) ) ) ; } else if ( ( type ) == ( DimensionType . VOID ) ) { return true ; } else if ( ( type ) == ( DimensionType . SINGLE_BIOME ) ) { return ( biome ) != null ; } else if ( ( type ) == ( DimensionType . OVERWORLD ) ) { return true ; } return true ; } private boolean isValidDimensionId ( int dimensionId ) { } private boolean isNameValid ( String name ) { } @ Override public String toString ( ) { } public WorldServer getWorldServer ( ) { } }

Fix:
if ( ( ( type ) == ( DimensionType . SUPERFLAT ) ) || ( ( type ) == ( DimensionType . FUNWORLD ) ) ) {
Buggy code:
public class IDMSubsystemExampleConfigurationUnitTestCase extends AbstractSubsystemBaseTest { public IDMSubsystemExampleConfigurationUnitTestCase ( ) { } @ Override protected String getSubsystemXml ( ) throws IOException { <START_BUG> return readResource ( "identity-management-subsystem-example-2.0.xml" ) ; <END_BUG> } @ Test public void testRuntime ( ) throws Exception { } @ Override protected void assertRemoveSubsystemResources ( KernelServices kernelServices , Set < PathAddress > ignoredChildAddresses ) { } }

Fix:
return readResource ( "identity-management-subsystem-example-1.0.xml" ) ;
Buggy code:
public class QueryPeer extends org . tigris . scarab . om . BaseQueryPeer { public static final String GET_ALL_QUERIES = "getAllQueries" ; public static final String GET_PRIVATE_QUERIES = "getPrivateQueries" ; public static final String GET_GLOBAL_QUERIES = "getGlobalQueries" ; public static List getQueries ( Module me , IssueType issueType , ScarabUser user , String sortColumn , String sortPolarity , String type ) throws Exception { List queries = null ; String cacheKey = "all" ; if ( type . equals ( "private" ) ) { cacheKey = QueryPeer . GET_PRIVATE_QUERIES ; } else if ( type . equals ( "global" ) ) { cacheKey = QueryPeer . GET_GLOBAL_QUERIES ; } Object obj = ScarabCache . get ( "QueryPeer" , QueryPeer . GET_ALL_QUERIES , user , issueType ) ; if ( ( me == null ) || ( issueType == null ) ) { queries = new ArrayList ( ) ; } else if ( obj == null ) { Criteria crit = new Criteria ( ) . add ( MODULE_ID , me . getModuleId ( ) ) . add ( ISSUE_TYPE_ID , issueType . getIssueTypeId ( ) ) . add ( DELETED , 0 ) ; <START_BUG> Criteria . Criterion cGlob = crit . getNewCriterion ( SCOPE_ID , GLOBAL__PK , EQUAL ) ; <END_BUG> Criteria . Criterion cPriv1 = crit . getNewCriterion ( USER_ID , user . getUserId ( ) , EQUAL ) ; Criteria . Criterion cPriv2 = crit . getNewCriterion ( SCOPE_ID , PERSONAL__PK , EQUAL ) ; cPriv1 . and ( cPriv2 ) ; if ( type . equals ( "private" ) ) { crit . add ( cPriv1 ) ; } else if ( type . equals ( "global" ) ) { crit . add ( cGlob ) ; } else { cGlob . or ( cPriv1 ) ; crit . add ( cGlob ) ; } crit . setDistinct ( ) ; if ( sortColumn . equals ( "desc" ) ) { QueryPeer . addSortOrder ( crit , DESCRIPTION , sortPolarity ) ; } else if ( sortColumn . equals ( "avail" ) ) { crit . addJoin ( SCOPE_ID , SCOPE_ID ) ; QueryPeer . addSortOrder ( crit , SCOPE_NAME , sortPolarity ) ; } else if ( sortColumn . equals ( "user" ) ) { QueryPeer . addSortOrder ( crit , USER_ID , sortPolarity ) ; } else { QueryPeer . addSortOrder ( crit , NAME , sortPolarity ) ; } queries = QueryPeer . doSelect ( crit ) ; ScarabCache . put ( queries , "QueryPeer" , cacheKey , user , issueType ) ; } else { queries = ( ( List ) ( obj ) ) ; } return queries ; } public static List getQueries ( Module me , IssueType issueType , ScarabUser user ) throws Exception { } public static List getQueries ( Module me , IssueType issueType , ScarabUser user , String sortColumn , String sortPolarity ) throws Exception { } private static Criteria addSortOrder ( Criteria crit , String sortColumn , String sortPolarity ) { } }

Fix:
Criteria . Criterion cGlob = crit . getNewCriterion ( SCOPE_ID , MODULE__PK , EQUAL ) ;
Buggy code:
public class DatabaseConnection { private static DatabaseConnection _instance ; private Connection conn ; private Statement statement ; private DatabaseConnection ( ) { } public static DatabaseConnection getInstance ( ) { } public PreparedStatement query ( String query ) throws SQLException { <START_BUG> PreparedStatement statement = DatabaseConnection . _instance . conn . prepareStatement ( query ) ; <END_BUG> return statement ; } public PreparedStatement insert ( String query ) throws SQLException { } }

Fix:
PreparedStatement statement = DatabaseConnection . _instance . conn . prepareStatement ( query , Statement . KEEP_CURRENT_RESULT ) ;
Buggy code:
public class FallbackRepository implements FileRepository { private final FileRepository primary ; private final FileRepository secondary ; public FallbackRepository ( final FileRepository primary , final FileRepository secondary ) { } @ Override public File getFile ( final String relativePath ) { } @ Override public File getConfigurationFile ( String relativePath ) { } @ Override public File [ ] getDeploymentFiles ( byte [ ] hash ) { } @ Override public File getDeploymentRoot ( byte [ ] hash ) { File file = primary . getDeploymentRoot ( hash ) ; <START_BUG> return file != null ? file : secondary . getDeploymentRoot ( hash ) ; <END_BUG> } }

Fix:
return ( file != null ) && ( file . exists ( ) ) ? file : secondary . getDeploymentRoot ( hash ) ;
Buggy code:
public class CrimeFragment extends Fragment { private Crime crime ; private EditText titleField ; private Button dateButton ; private CheckBox solvedCheckBox ; @ Override public void onCreate ( Bundle savedInstanceState ) { } @ Override public View onCreateView ( LayoutInflater inflater , ViewGroup container , Bundle savedInstanceState ) { View v = inflater . inflate ( fragment_crime , container , false ) ; titleField = ( ( EditText ) ( v . findViewById ( crime_title ) ) ) ; titleField . addTextChangedListener ( new TextWatcher ( ) { @ Override public void beforeTextChanged ( CharSequence s , int start , int count , int after ) { } @ Override public void onTextChanged ( CharSequence s , int start , int before , int count ) { crime . setTitle ( s . toString ( ) ) ; } @ Override public void afterTextChanged ( Editable s ) { } } ) ; dateButton = ( ( Button ) ( v . findViewById ( crime_date_btn ) ) ) ; dateButton . setText ( crime . getDate ( ) . toString ( ) ) ; dateButton . setEnabled ( false ) ; <START_BUG> solvedCheckBox = ( ( CheckBox ) ( v . findViewById ( crime_solved_chkbox ) ) ) ; <END_BUG> solvedCheckBox . setOnCheckedChangeListener ( new CompoundButton . OnCheckedChangeListener ( ) { @ Override public void onCheckedChanged ( CompoundButton buttonView , boolean isChecked ) { crime . setSolved ( isChecked ) ; } } ) ; return v ; } }

Fix:
solvedCheckBox = ( ( CheckBox ) ( v . findViewById ( crime_solved_chkbx ) ) ) ;
Buggy code:
final class BcelField extends ResolvedMemberImpl { private static int AccSynthetic = 4096 ; private Field field ; private boolean isAjSynthetic ; private boolean isSynthetic = false ; private AnnotationX [ ] annotations ; private World world ; private BcelObjectType bcelObjectType ; private UnresolvedType genericFieldType = null ; private boolean unpackedGenericSignature = false ; BcelField ( BcelObjectType declaringType , Field field ) { } private void unpackAttributes ( World world ) { Attribute [ ] attrs = field . getAttributes ( ) ; <START_BUG> List as = BcelAttributes . readAjAttributes ( getDeclaringType ( ) . getClassName ( ) , attrs , getSourceContext ( world ) , world . getMessageHandler ( ) , bcelObjectType . getWeaverVersionAttribute ( ) ) ; <END_BUG> as . addAll ( AtAjAttributes . readAj5FieldAttributes ( field , this , world . resolve ( getDeclaringType ( ) ) , getSourceContext ( world ) , world . getMessageHandler ( ) ) ) ; for ( Iterator iter = as . iterator ( ) ; iter . hasNext ( ) ; ) { AjAttribute a = ( ( AjAttribute ) ( iter . next ( ) ) ) ; if ( a instanceof AjAttribute . AjSynthetic ) { isAjSynthetic = true ; } else { throw new org . aspectj . weaver . BCException ( ( "weird<seq2seq4repair_space>field<seq2seq4repair_space>attribute<seq2seq4repair_space>" + a ) ) ; } } isAjSynthetic = false ; for ( int i = ( attrs . length ) - 1 ; i >= 0 ; i -- ) { if ( ( attrs [ i ] ) instanceof Synthetic ) isSynthetic = true ; } if ( ( ( field . getModifiers ( ) ) & ( BcelField . AccSynthetic ) ) != 0 ) { isSynthetic = true ; } } public boolean isAjSynthetic ( ) { } public boolean isSynthetic ( ) { } public boolean hasAnnotation ( UnresolvedType ofType ) { } public ResolvedType [ ] getAnnotationTypes ( ) { } public AnnotationX [ ] getAnnotations ( ) { } private void ensureAnnotationTypesRetrieved ( ) { } public void addAnnotation ( AnnotationX annotation ) { } public UnresolvedType getGenericReturnType ( ) { } private void unpackGenericSignature ( ) { } public void evictWeavingState ( ) { } }

Fix:
List as = BcelAttributes . readAjAttributes ( getDeclaringType ( ) . getClassName ( ) , attrs , getSourceContext ( world ) , world , bcelObjectType . getWeaverVersionAttribute ( ) ) ;
Buggy code:
public class Utils { public static String classToObject ( String className ) { } public static boolean isSupportClass ( Class < ? > type ) { } public static String readFile ( String fileName ) { } public static Class < ? > matchClass ( String name ) { } public static void generateFile ( File f , String content ) { } public static String getFileExtension ( File file ) { } public static void deleteDir ( File file ) { } public static String buildJavaFile ( File file , String content , List < String > importList ) { String subPath = file . getPath ( ) ; subPath = subPath . substring ( 0 , subPath . lastIndexOf ( File . separator ) ) ; subPath = subPath . substring ( ( ( subPath . lastIndexOf ( File . separator ) ) + 1 ) ) ; String title = ( ( ( "package<seq2seq4repair_space>" + ( Config . PACKAGE_NAME ) ) + "." ) + subPath ) + ";\n\n" ; String className = file . getName ( ) ; if ( importList != null ) { for ( String s : importList ) { title += ( "import<seq2seq4repair_space>" + s ) + ";\n" ; } title += "\n" ; } className = className . substring ( 0 , className . lastIndexOf ( '.' ) ) ; <START_BUG> title += ( "public<seq2seq4repair_space>static<seq2seq4repair_space>final<seq2seq4repair_space>class<seq2seq4repair_space>" + className ) + "<seq2seq4repair_space>{\n\n" ; <END_BUG> if ( ! ( subPath . equals ( "values" ) ) ) { String returnObject = "" ; String returnClass = "" ; Scanner scan = new Scanner ( content ) ; while ( scan . hasNext ( ) ) { String str = scan . nextLine ( ) ; if ( str . matches ( "\\w+<seq2seq4repair_space>\\w+<seq2seq4repair_space>=<seq2seq4repair_space>new<seq2seq4repair_space>\\w+\\(context\\);" ) ) { int index = str . indexOf ( '<seq2seq4repair_space>' ) ; int index2 = str . indexOf ( '<seq2seq4repair_space>' , ( index + 1 ) ) ; returnClass = str . substring ( 0 , index ) ; returnObject = str . substring ( ( index + 1 ) , index2 ) ; break ; } } scan . close ( ) ; if ( returnObject . equals ( "" ) ) { throw new AXMLException ( AXMLException . FILE_BUILD_ERROR , "can<seq2seq4repair_space>not<seq2seq4repair_space>find<seq2seq4repair_space>main<seq2seq4repair_space>object" ) ; } title += ( "\tpublic<seq2seq4repair_space>static<seq2seq4repair_space>final<seq2seq4repair_space>" + returnClass ) + "<seq2seq4repair_space>get(Context<seq2seq4repair_space>context)<seq2seq4repair_space>{\n" ; content = ( ( ( "\t\t" + ( content . replace ( "\n" , "\n\t\t" ) ) ) + "return<seq2seq4repair_space>" ) + returnObject ) + ";\n" ; return ( title + content ) + "\t}\n}" ; } else { content = "\t" + ( content . replace ( "\n" , "\n\t" ) ) ; return ( title + content ) + "}" ; } } public static boolean hasString ( List < String > list , String string ) { } public static String findRule ( String attrName ) { } public static String getParentName ( AXMLNode node ) { } No newline ; at end ; of file ; }

Fix:
title += ( "public<seq2seq4repair_space>final<seq2seq4repair_space>class<seq2seq4repair_space>" + className ) + "<seq2seq4repair_space>{\n\n" ;
Buggy code:
public class HackergartenClient { private static final String BASE_URL = "http:////hackergarten-register.appspot.com" ; private static final String TAG = "HackergartenClient" ; private interface ResponseProcessor < T > { T processResponse ( HttpResponse response ) throws IOException , IllegalStateException , JSONException { } } private HttpClient httpClient ; public HackergartenClient ( ) { } public void registerUser ( User user , AsyncCallback < Void > callback ) { } public void addEvent ( Event event , AsyncCallback < Void > callback ) { } public void listUpcomingEvents ( AsyncCallback < List < Event > > callback ) { } public void checkInUser ( String userEmail , String eventId , AsyncCallback < Void > callback ) { } public void listHallOfFame ( AsyncCallback < List < User > > callback ) { } public void close ( ) { } private < V > void requestAsynchronously ( final AsyncCallback < V > callback , final HttpUriRequest request , final HackergartenClient . ResponseProcessor < V > responseProcessor ) { Thread thread = new Thread ( ) { public void run ( ) { try { Log . d ( HackergartenClient . TAG , ( "requesting<seq2seq4repair_space>asynchronously<seq2seq4repair_space>" + ( request . getURI ( ) ) ) ) ; HttpResponse response = httpClient . execute ( request ) ; int statusCode = response . getStatusLine ( ) . getStatusCode ( ) ; Log . d ( HackergartenClient . TAG , ( "got<seq2seq4repair_space>response<seq2seq4repair_space>code<seq2seq4repair_space>" + statusCode ) ) ; if ( statusCode == 200 ) { V result = null ; if ( responseProcessor != null ) { Log . d ( HackergartenClient . TAG , "processing<seq2seq4repair_space>response" ) ; result = responseProcessor . processResponse ( response ) ; } Log . d ( HackergartenClient . TAG , "onSuccess" ) ; callback . onSuccess ( result ) ; } else { Log . d ( HackergartenClient . TAG , "onFailure" ) ; <START_BUG> callback . onFailure ( null ) ; <END_BUG> } if ( ( response . getEntity ( ) ) != null ) { response . getEntity ( ) . consumeContent ( ) ; } } catch ( ClientProtocolException e ) { callback . onFailure ( e ) ; } catch ( IOException e ) { callback . onFailure ( e ) ; } catch ( IllegalStateException e ) { callback . onFailure ( e ) ; } catch ( JSONException e ) { callback . onFailure ( e ) ; } } } ; thread . start ( ) ; } }

Fix:
callback . onFailure ( new Throwable ( ( "Unexpected<seq2seq4repair_space>status<seq2seq4repair_space>code:<seq2seq4repair_space>" + statusCode ) ) ) ;
Buggy code:
public class ManageUsersAction extends BaseAction { private static final long serialVersionUID = 281018603716118132L ; private static Logger LOG = LoggerFactory . getLogger ( ManageUsersAction . class ) ; private static String PARAM_FIRST_NAME = "firstName" ; private static String PARAM_LAST_NAME = "lastName" ; private static String PARAM_EMAIL = "email" ; private static String PARAM_IS_ACTIVE = "isActive" ; private UserManager userManager ; private SendMail sendMail ; private String queryParameter ; private List < User > users ; private User newUser ; private String message ; @ Inject public ManageUsersAction ( APConfig config , UserManager userManager , SendMail sendMail ) { } private boolean addUser ( ) { } public String create ( ) throws Exception { } @ Override public String execute ( ) throws Exception { } public String getMessage ( ) { } public User getNewUser ( ) { } public List < User > getUsers ( ) { } @ Override public void prepare ( ) throws Exception { } public String search ( ) throws Exception { } private void sendNewUserEmail ( String newPassword ) { StringBuilder message = new StringBuilder ( ) ; message . append ( this . getText ( "planning.manageUsers.email.arrangement.part1" ) ) ; message . append ( newUser . getFirstName ( ) ) ; message . append ( this . getText ( "planning.manageUsers.email.arrangement.part2" ) ) ; message . append ( this . getText ( "planning.manageUsers.email.arrangement.part3" ) ) ; message . append ( this . getText ( "planning.manageUsers.email.arrangement.part4" ) ) ; message . append ( this . getText ( "planning.manageUsers.email.arrangement.part5" ) ) ; message . append ( newUser . getEmail ( ) ) ; message . append ( this . getText ( "planning.manageUsers.email.arrangement.part6" ) ) ; if ( newPassword == null ) { message . append ( this . getText ( "planning.manageUsers.email.arrangement.part7" ) ) ; } else { message . append ( newPassword ) ; } message . append ( this . getText ( "planning.manageUsers.email.arrangement.part8" ) ) ; message . append ( this . getText ( "planning.manageUsers.email.arrangement.part9" ) ) ; message . append ( this . getText ( "planning.manageUsers.email.arrangement.part10" ) ) ; String toEmail = newUser . getEmail ( ) ; <START_BUG> String ccEmails = ( ( this . getCurrentUser ( ) . getEmail ( ) ) + "<seq2seq4repair_space>" ) + ( this . config . getEmailUsername ( ) ) ; <END_BUG> sendMail . send ( toEmail , ccEmails , this . getText ( "planning.manageUsers.email.arrangement.credentials" ) , message . toString ( ) ) ; } private User validateOutlookUser ( String email ) { } }

Fix:
String ccEmails = ( ( this . getCurrentUser ( ) . getEmail ( ) ) + "<seq2seq4repair_space>" ) + ( this . config . getEmailNotification ( ) ) ;
Buggy code:
public class TestFilterIndexReader extends LuceneTestCase { private static class TestReader extends FilterIndexReader { private static class TestFields extends FilterFields { TestFields ( Fields in ) { } public FieldsEnum iterator ( ) throws IOException { } public Terms terms ( String field ) throws IOException { } } private static class TestTerms extends FilterTerms { TestTerms ( Terms in ) { } public TermsEnum iterator ( ) throws IOException { } } private static class TestFieldsEnum extends FilterFieldsEnum { TestFieldsEnum ( FieldsEnum in ) { } public TermsEnum terms ( ) throws IOException { } } private static class TestTermsEnum extends FilterTermsEnum { public TestTermsEnum ( TermsEnum in ) { } @ Override public BytesRef next ( ) throws IOException { } @ Override public DocsAndPositionsEnum docsAndPositions ( Bits skipDocs , DocsAndPositionsEnum reuse ) throws IOException { } } private static class TestPositions extends FilterDocsAndPositionsEnum { public TestPositions ( DocsAndPositionsEnum in ) { } @ Override public int nextDoc ( ) throws IOException { } } public TestReader ( IndexReader reader ) { } @ Override public Fields fields ( ) throws IOException { } } public static void main ( String [ ] args ) { } public void testFilterIndexReader ( ) throws Exception { Directory directory = newDirectory ( ) ; IndexWriter writer = new IndexWriter ( directory , newIndexWriterConfig ( TEST_VERSION_CURRENT , new MockAnalyzer ( ) ) ) ; Document d1 = new Document ( ) ; d1 . add ( newField ( "default" , "one<seq2seq4repair_space>two" , YES , ANALYZED ) ) ; writer . addDocument ( d1 ) ; Document d2 = new Document ( ) ; d2 . add ( newField ( "default" , "one<seq2seq4repair_space>three" , YES , ANALYZED ) ) ; writer . addDocument ( d2 ) ; Document d3 = new Document ( ) ; d3 . add ( newField ( "default" , "two<seq2seq4repair_space>four" , YES , ANALYZED ) ) ; writer . addDocument ( d3 ) ; writer . close ( ) ; Directory target = newDirectory ( ) ; writer = new IndexWriter ( target , newIndexWriterConfig ( TEST_VERSION_CURRENT , new MockAnalyzer ( ) ) ) ; <START_BUG> IndexReader reader = new TestFilterIndexReader . TestReader ( IndexReader . open ( directory , true ) ) ; <END_BUG> writer . addIndexes ( reader ) ; writer . close ( ) ; reader . close ( ) ; reader = IndexReader . open ( target , true ) ; assertTrue ( reader . isOptimized ( ) ) ; TermsEnum terms = MultiFields . getTerms ( reader , "default" ) . iterator ( ) ; while ( ( terms . next ( ) ) != null ) { assertTrue ( ( ( terms . term ( ) . utf8ToString ( ) . indexOf ( 'e' ) ) != ( - 1 ) ) ) ; } assertEquals ( FOUND , terms . seek ( new BytesRef ( "one" ) ) ) ; DocsAndPositionsEnum positions = terms . docsAndPositions ( MultiFields . getDeletedDocs ( reader ) , null ) ; while ( ( positions . nextDoc ( ) ) != ( DocsEnum . NO_MORE_DOCS ) ) { assertTrue ( ( ( ( positions . docID ( ) ) % 2 ) == 1 ) ) ; } reader . close ( ) ; directory . close ( ) ; target . close ( ) ; } }

Fix:
IndexReader reader = new TestFilterIndexReader . TestReader ( SlowMultiReaderWrapper . wrap ( IndexReader . open ( directory , true ) ) ) ;
Buggy code:
public class JarLibrary { public String name ; public ArrayList < JarRule > rules ; private File file ; public JarLibrary ( ) { } public boolean isActive ( ) { } public File getFile ( ) { if ( ( file ) == null ) { <START_BUG> String searchPath = ( Util . minecraftDirectory ) + "//libraries//" ; <END_BUG> String [ ] pathSplit = name . split ( ":" ) ; pathSplit [ 0 ] = pathSplit [ 0 ] . replace ( '.' , '//' ) ; for ( int i = 0 ; i < ( pathSplit . length ) ; i ++ ) searchPath += ( pathSplit [ i ] ) + "//" ; File searchPathFile = new File ( searchPath ) ; if ( ! ( searchPathFile . exists ( ) ) ) { Log . w ( ( "Failed<seq2seq4repair_space>attempt<seq2seq4repair_space>to<seq2seq4repair_space>load<seq2seq4repair_space>library<seq2seq4repair_space>at:<seq2seq4repair_space>" + searchPathFile ) ) ; return null ; } File [ ] libraryFiles = searchPathFile . listFiles ( ) ; for ( int i = 0 ; i < ( libraryFiles . length ) ; i ++ ) { String extension = "" ; String fileName = libraryFiles [ i ] . getName ( ) ; int q = fileName . lastIndexOf ( '.' ) ; if ( q > 0 ) extension = fileName . substring ( ( q + 1 ) ) ; if ( extension . equals ( "jar" ) ) file = libraryFiles [ i ] ; } if ( ( file ) == null ) Log . w ( ( ( "Attempted<seq2seq4repair_space>to<seq2seq4repair_space>search<seq2seq4repair_space>for<seq2seq4repair_space>file<seq2seq4repair_space>at<seq2seq4repair_space>path:<seq2seq4repair_space>" + searchPath ) + "<seq2seq4repair_space>but<seq2seq4repair_space>found<seq2seq4repair_space>nothing.<seq2seq4repair_space>Skipping." ) ) ; } return file ; } }

Fix:
String searchPath = ( minecraftLibraries . getAbsolutePath ( ) ) + "//" ;
Buggy code:
public class SortableListViewHeaders extends WebMarkupContainer { private final SortableListViewHeaderGroup group ; private final Log log = LogFactory . getLog ( SortableListViewHeaders . class ) ; public SortableListViewHeaders ( final String componentName , final ListView listView ) { } protected int compareTo ( final SortableListViewHeader header , final Object o1 , final Object o2 ) { } protected Comparable getObjectToCompare ( final SortableListViewHeader header , final Object object ) { } protected void onRender ( ) { final SortableListViewHeaders me = this ; MarkupStream markupStream = this . findMarkupStream ( ) ; final int markupStart = markupStream . getCurrentIndex ( ) ; ComponentTag tag = markupStream . getTag ( ) ; checkComponentTag ( tag , "thead" ) ; markupStream . next ( ) ; while ( markupStream . hasMore ( ) ) { final MarkupElement element = markupStream . get ( ) ; if ( element instanceof ComponentTag ) { tag = ( ( ComponentTag ) ( element ) ) ; if ( tag . getName ( ) . equalsIgnoreCase ( "th" ) ) { final String componentName = tag . getComponentName ( ) ; if ( ( componentName != null ) && ( ( get ( componentName ) ) == null ) ) { add ( new SortableListViewHeader ( componentName , group ) { <START_BUG> protected int compareTo ( final Object o1 , final Object o2 ) { <END_BUG> return me . compareTo ( this , o1 , o2 ) ; } protected Comparable getObjectToCompare ( final Object object ) { return me . getObjectToCompare ( this , object ) ; } } ) ; } } } markupStream . next ( ) ; } markupStream . setCurrentIndex ( markupStart ) ; super . onRender ( ) ; } }

Fix:
protected int compare ( final Object o1 , final Object o2 ) {
Buggy code:
public class WorkbenchPreferenceDialog extends PreferenceDialog { private static final int LOAD_ID = ( IDialogConstants . CLIENT_ID ) + 1 ; private static final String LOAD_SETTING = "WorkbenchPreferenceDialog.load" ; private static final int SAVE_ID = ( IDialogConstants . CLIENT_ID ) + 2 ; private static final String SAVE_SETTING = "WorkbenchPreferenceDialog.save" ; private static final String PREFERENCE_EXT = "epf" ; private static final String [ ] DIALOG_PREFERENCE_EXTENSIONS = new String [ ] { "*." + ( WorkbenchPreferenceDialog . PREFERENCE_EXT ) , "*.*" } ; public WorkbenchPreferenceDialog ( Shell parentShell , PreferenceManager manager ) { } protected void buttonPressed ( int buttonId ) { } protected void createButtonsForButtonBar ( Composite parent ) { } protected void loadPressed ( ) { } protected void savePressed ( ) { } protected void createTreeItemFor ( Widget parent , IPreferenceNode node ) { IObjectActivityManager prefManager = PlatformUI . getWorkbench ( ) . getObjectActivityManager ( PL_PREFERENCES , false ) ; if ( prefManager != null ) { <START_BUG> Collection activePages = prefManager . getActiveObjects ( ) ; <END_BUG> if ( ( node instanceof WorkbenchPreferenceNode ) && ( ! ( activePages . contains ( node ) ) ) ) { return ; } } super . createTreeItemFor ( parent , node ) ; } }

Fix:
Collection activePages = prefManager . getEnabledObjects ( ) ;
Buggy code:
public class PermissionManager { DeathChestMain plugin ; Boolean wg_enabled = false ; Boolean gp_enabled = false ; Boolean towny_enabled = false ; PermissionManager ( DeathChestMain plugin ) { } boolean gpPermission ( Player player , Location location ) { } boolean wgPermission ( Player player , Location location ) { <START_BUG> if ( ( plugin . getConfig ( ) . getBoolean ( "worldguard-enabled" , true ) ) && ( WGBukkit . getPlugin ( ) . isEnabled ( ) ) ) { <END_BUG> WorldGuardPlugin wg = WGBukkit . getPlugin ( ) ; String wgVersion = wg . getDescription ( ) . getVersion ( ) ; if ( wgVersion . startsWith ( "5." ) ) { if ( ! ( WGBukkit . getPlugin ( ) . canBuild ( player , location ) ) ) { return false ; } } else if ( wgVersion . startsWith ( "6." ) ) { if ( ! ( wg . createProtectionQuery ( ) . testBlockPlace ( player , location , CHEST ) ) ) { return false ; } } } return true ; } @ SuppressWarnings ( "deprecation" ) boolean townyPermission ( Player player , Location location ) { } }

Fix:
if ( ( plugin . getConfig ( ) . getBoolean ( "worldguard-enabled" , true ) ) && ( wg_enabled ) ) {
Buggy code:
final class ExtensionActivityRegistry extends AbstractActivityRegistry { private List activityActivityBindingDefinitions ; private List activityDefinitions ; private List activityPatternBindingDefinitions ; private List categoryActivityBindingDefinitions ; private List categoryDefinitions ; private List defaultEnabledActivities ; private IExtensionRegistry extensionRegistry ; ExtensionActivityRegistry ( IExtensionRegistry extensionRegistry ) { } private String getPluginId ( IConfigurationElement configurationElement ) { String pluginId = null ; if ( configurationElement != null ) { IExtension extension = configurationElement . getDeclaringExtension ( ) ; if ( extension != null ) <START_BUG> pluginId = extension . getParentIdentifier ( ) ; <END_BUG> } return pluginId ; } private void load ( ) throws IOException { } private void readDefaultEnablement ( IConfigurationElement configurationElement ) { } private void readActivityActivityBindingDefinition ( IConfigurationElement configurationElement ) { } private void readActivityDefinition ( IConfigurationElement configurationElement ) { } private void readActivityPatternBindingDefinition ( IConfigurationElement configurationElement ) { } private void readCategoryActivityBindingDefinition ( IConfigurationElement configurationElement ) { } private void readCategoryDefinition ( IConfigurationElement configurationElement ) { } }

Fix:
pluginId = extension . getNamespace ( ) ;
Buggy code:
public class MenuState extends GameState { protected Background bg ; public static int currentChoice = 0 ; public static String [ ] options = new String [ ] { "Play" , "Help" , "About" , "Options" , "Quit" } ; private Color titleColor ; private Font titleFont ; private Font font ; private Font selectfont ; private AudioPlayer bgMusic ; public MenuState ( SideScroller game ) { } public void init ( ) { bg = new Background ( Assets . menubg , 1 ) ; <START_BUG> bg . setVector ( ( - 0.3 ) , 0 ) ; <END_BUG> titleColor = new Color ( 128 , 0 , 0 ) ; titleFont = new Font ( "Century<seq2seq4repair_space>Gothic" , Font . PLAIN , 32 ) ; font = new Font ( "Arial" , Font . PLAIN , 12 ) ; selectfont = new Font ( "Arial" , Font . PLAIN , 14 ) ; bgMusic = new AudioPlayer ( Assets . level1_1m ) ; } protected void load ( ) { } protected void unload ( ) { } public void levelCompleted ( ) { } public void tick ( ) { } public void render ( Graphics2D g ) { } private void select ( ) { } public void keyPressed ( int k ) { } public void keyReleased ( int k ) { } public void mousePressed ( int k ) { } public void mouseReleased ( int k ) { } No newline ; at end ; of file ; }

Fix:
bg . setVector ( ( - 0.5 ) , 0 ) ;