nus-yam/ex-repair huggingface dataset:
Buggy code:
public class LoginActivity extends Activity { private EditText agentNameEditText ; private EditText capacityEditText ; private EditText jadeIPEditText ; private EditText jadePortEditText ; private EditText obrIPEditText ; private EditText obrPortEditText ; private SharedPreferences settings ; private ProgressDialog dialog ; private AgentManager am ; private ServiceConnection connection ; @ Override public void onCreate ( Bundle savedInstanceState ) { } @ Override protected void onDestroy ( ) { } private void initEditText ( ) { } public void doLogin ( View v ) { <START_BUG> dialog = LoadingDialog . show ( this , getString ( loggingin ) , new Handler ( ) , new Runnable ( ) { <END_BUG> @ Override public void run ( ) { String agentName = agentNameEditText . getText ( ) . toString ( ) ; String capacity = capacityEditText . getText ( ) . toString ( ) ; String jadeIp = jadeIPEditText . getText ( ) . toString ( ) ; String obrIp = obrIPEditText . getText ( ) . toString ( ) ; int jadePort = Integer . parseInt ( jadePortEditText . getText ( ) . toString ( ) ) ; int obrPort = Integer . parseInt ( obrPortEditText . getText ( ) . toString ( ) ) ; SharedPreferences . Editor editor = settings . edit ( ) ; editor . putString ( AGENT_NAME , agentName ) ; editor . putString ( CAPACITY , capacity ) ; editor . putString ( JADE_IP , jadeIp ) ; editor . putString ( OBR_IP , obrIp ) ; editor . putInt ( JADE_PORT , jadePort ) ; editor . putInt ( OBR_PORT , obrPort ) ; editor . commit ( ) ; bindService ( new android . content . Intent ( getApplicationContext ( ) , JADEService . class ) , connection , BIND_AUTO_CREATE ) ; } } ) ; } No newline ; at end ; of file ; }

Fix:
dialog = LoadingDialog . show ( this , getString ( logging_in ) , new Handler ( ) , new Runnable ( ) {
Buggy code:
public class TypePatternListTestCase extends TestCase { public TypePatternListTestCase ( String name ) { } World world ; public void testMatch ( ) { } private TypePatternList makeArgumentsPattern ( String pattern ) { } private void checkStaticMatch ( String pattern , String [ ] names , FuzzyBoolean shouldMatchStatically ) { } private TestScope makeTestScope ( ) { } public void stupidCheck ( String pattern , boolean [ ] matches ) { } public void testSerialization ( ) throws IOException { } private void checkSerialization ( String string ) throws IOException { TypePatternList p = makeArgumentsPattern ( string ) ; ByteArrayOutputStream bo = new ByteArrayOutputStream ( ) ; DataOutputStream out = new DataOutputStream ( bo ) ; p . write ( out ) ; out . close ( ) ; ByteArrayInputStream bi = new ByteArrayInputStream ( bo . toByteArray ( ) ) ; <START_BUG> DataInputStream in = new DataInputStream ( bi ) ; <END_BUG> TypePatternList newP = TypePatternList . read ( in , null ) ; assertEquals ( "write//read" , p , newP ) ; } }

Fix:
VersionedDataInputStream in = new VersionedDataInputStream ( bi ) ;
Buggy code:
public final class Job extends AbstractJob { private static final String DIRECTORY_CONTAINING_CONVERTED_INPUT = "data" ; private Job ( ) { } private static final Logger log = LoggerFactory . getLogger ( Job . class ) ; public static void main ( String [ ] args ) throws Exception { } private static void run ( Path input , Path output , DistanceMeasure measure , double t1 , double t2 ) throws Exception { Path directoryContainingConvertedInput = new Path ( output , Job . DIRECTORY_CONTAINING_CONVERTED_INPUT ) ; InputDriver . runJob ( input , directoryContainingConvertedInput , "org.apache.mahout.math.RandomAccessSparseVector" ) ; CanopyDriver . run ( new Configuration ( ) , directoryContainingConvertedInput , output , measure , t1 , t2 , true , 0.0 , false ) ; <START_BUG> ClusterDumper clusterDumper = new ClusterDumper ( new Path ( output , "clusters-0" ) , new Path ( output , "clusteredPoints" ) ) ; <END_BUG> clusterDumper . printClusters ( null ) ; } @ Override public int run ( String [ ] args ) throws Exception { } }

Fix:
ClusterDumper clusterDumper = new ClusterDumper ( new Path ( output , "clusters-0-final" ) , new Path ( output , "clusteredPoints" ) ) ;
Buggy code:
public class J2Zone implements Java2Parameter < Zone > { private final Translator translator = Translator . getInstance ( ) ; @ Override public Parameter [ ] translate ( Zone z ) throws TranslationException { <START_BUG> return new Parameter [ ] { new eis . iilang . Function ( "Zone" , new Numeral ( z . getID ( ) ) , new eis . iilang . Identifier ( z . getName ( ) ) , new Numeral ( z . getMaxAllowedFloors ( ) ) , new Numeral ( size ( z ) ) , translator . translate2Parameter ( z . getAllowedCategories ( ) ) [ 0 ] , translator . translate2Parameter ( getfunctionsID ( z ) ) ) } ; <END_BUG> } public Numeral [ ] getfunctionsID ( Zone z ) { } public double size ( Zone z ) { } @ Override public Class < ? extends Zone > translatesFrom ( ) { } }

Fix:
return new Parameter [ ] { new eis . iilang . Function ( "Zone" , new Numeral ( z . getID ( ) ) , new eis . iilang . Identifier ( z . getName ( ) ) , new Numeral ( z . getMaxAllowedFloors ( ) ) , new Numeral ( size ( z ) ) , translator . translate2Parameter ( z . getAllowedCategories ( ) ) [ 0 ] , translator . translate2Parameter ( getfunctionsID ( z ) ) [ 0 ] ) } ;
Buggy code:
@ Path ( "analytics//v3//" ) public class RestInterface { private ServiceManager serviceManager = new ServiceManager ( ) ; @ GET @ Path ( "services" ) @ Produces ( MediaType . APPLICATION_JSON ) public Response getServices ( ) { } @ GET @ Path ( "services//{service}" ) @ Produces ( MediaType . APPLICATION_JSON ) public Response getServiceResults ( @ PathParam ( "service" ) String service ) { } @ POST @ Path ( "services//{service}" ) @ Produces ( MediaType . APPLICATION_JSON ) public Response calculateServiceResults ( @ PathParam ( "service" ) String service , String json ) { if ( ! ( serviceManager . existService ( service ) ) ) { return Response . status ( NOT_FOUND ) . type ( APPLICATION_JSON ) . entity ( ( ( "{\"error\":\"There<seq2seq4repair_space>is<seq2seq4repair_space>no<seq2seq4repair_space>service<seq2seq4repair_space>" + service ) + "\"}" ) ) . build ( ) ; } if ( json . equals ( "" ) ) { serviceManager . calculateResultForService ( service , new String [ 0 ] ) ; } else { ArrayList < String > list = new ArrayList < String > ( ) ; JSONArray jsonArray ; try { JSONObject jsonObject = new JSONObject ( json ) ; jsonArray = jsonObject . getJSONArray ( "args" ) ; } catch ( Exception e ) { return Response . status ( BAD_REQUEST ) . type ( APPLICATION_JSON ) . entity ( "{\"error\":\"Not<seq2seq4repair_space>correct<seq2seq4repair_space>json<seq2seq4repair_space>syntax!\"}" ) . build ( ) ; } if ( jsonArray != null ) { int len = jsonArray . length ( ) ; for ( int i = 0 ; i < len ; i ++ ) { list . add ( jsonArray . get ( i ) . toString ( ) ) ; } } <START_BUG> serviceManager . calculateResultForService ( service , ( ( String [ ] ) ( list . toArray ( ) ) ) ) ; <END_BUG> } return Response . ok ( APPLICATION_JSON ) . build ( ) ; } }

Fix:
serviceManager . calculateResultForService ( service , list . toArray ( new String [ list . size ( ) ] ) ) ;
Buggy code:
public class SqrtTest { @ Test public void testComparison ( ) { } @ Test public void testDerivativeComparison ( ) { } @ Test public void testDerivativesHighOrder ( ) { DerivativeStructure s = new Sqrt ( ) . value ( new DerivativeStructure ( 1 , 5 , 0 , 1.2 ) ) ; Assert . assertEquals ( 1.0954451150103321 , s . getPartialDerivative ( 0 ) , 1.0E-16 ) ; Assert . assertEquals ( 0.45643546458763845 , s . getPartialDerivative ( 1 ) , 1.0E-16 ) ; Assert . assertEquals ( ( - 0.19018144357818267 ) , s . getPartialDerivative ( 2 ) , 1.0E-16 ) ; Assert . assertEquals ( 0.23772680447272834 , s . getPartialDerivative ( 3 ) , 1.0E-16 ) ; Assert . assertEquals ( ( - 0.49526417598485073 ) , s . getPartialDerivative ( 4 ) , 1.0E-16 ) ; <START_BUG> Assert . assertEquals ( 1.4445205132891479 , s . getPartialDerivative ( 5 ) , 3.0E-16 ) ; <END_BUG> } }

Fix:
Assert . assertEquals ( 1.4445205132891479 , s . getPartialDerivative ( 5 ) , 5.0E-16 ) ;
Buggy code:
public class WithinTestCase extends TestCase { World world = new BcelWorld ( ) ; public WithinTestCase ( String name ) { } public void testMatch ( ) throws IOException { } public void testMatchJP ( ) { } private void checkMatches ( Pointcut p , JoinPoint . StaticPart jpsp , FuzzyBoolean expected ) { } public Pointcut makePointcut ( String pattern ) { Pointcut pointcut0 = Pointcut . fromString ( pattern ) ; Bindings bindingTable = new Bindings ( 0 ) ; IScope scope = new SimpleScope ( world , FormalBinding . NONE ) ; pointcut0 . resolveBindings ( scope , bindingTable ) ; Pointcut pointcut1 = pointcut0 ; <START_BUG> return pointcut1 . concretize1 ( null , new IntMap ( ) ) ; <END_BUG> } private void checkMatch ( Pointcut p , Shadow s , FuzzyBoolean shouldMatch ) throws IOException { } private void checkSerialization ( Pointcut p ) throws IOException { } }

Fix:
return pointcut1 . concretize1 ( null , null , new IntMap ( ) ) ;
Buggy code:
@ RunWith ( Arquillian . class ) @ RunAsClient public class PolicyContextTestCase { private static Logger LOGGER = Logger . getLogger ( PolicyContextTestCase . class ) ; @ Deployment ( name = "ear" ) public static EnterpriseArchive createDeployment ( ) { } @ Test public void testHttpServletRequestFromPolicyContext ( @ ArquillianResource URL webAppURL ) throws Exception { String externalFormURL = webAppURL . toExternalForm ( ) ; <START_BUG> String servletURL = ( externalFormURL . substring ( 0 , ( ( externalFormURL . length ( ) ) - 1 ) ) ) + ( PolicyContextTestServlet . SERVLET_PATH ) ; <END_BUG> PolicyContextTestCase . LOGGER . info ( ( "Testing<seq2seq4repair_space>JACC<seq2seq4repair_space>permissions:<seq2seq4repair_space>" + servletURL ) ) ; String response = HttpRequest . get ( servletURL , 1000 , TimeUnit . SECONDS ) ; assertTrue ( response . contains ( "EJB<seq2seq4repair_space>successfully<seq2seq4repair_space>retrieved<seq2seq4repair_space>HttpServletRequest<seq2seq4repair_space>reference<seq2seq4repair_space>from<seq2seq4repair_space>PolicyContext" ) ) ; } private static JavaArchive createJar ( final String jarName ) { } private static WebArchive createWar ( final String warName ) { } }

Fix:
String servletURL = ( ( externalFormURL . substring ( 0 , ( ( externalFormURL . length ( ) ) - 1 ) ) ) + ".war" ) + ( PolicyContextTestServlet . SERVLET_PATH ) ;
Buggy code:
public class RawTypeBinding extends ParameterizedTypeBinding { public RawTypeBinding ( ReferenceBinding type , ReferenceBinding enclosingType , LookupEnvironment environment ) { } public char [ ] computeUniqueKey ( boolean isLeaf ) { } public ParameterizedMethodBinding createParameterizedMethod ( MethodBinding originalMethod ) { } public int kind ( ) { } public String debugName ( ) { } public char [ ] genericTypeSignature ( ) { } public boolean isEquivalentTo ( TypeBinding otherType ) { <START_BUG> if ( ( this ) == otherType ) <END_BUG> return true ; if ( otherType == null ) return false ; switch ( otherType . kind ( ) ) { case Binding . WILDCARD_TYPE : case Binding . INTERSECTION_TYPE : return ( ( WildcardBinding ) ( otherType ) ) . boundCheck ( this ) ; case Binding . GENERIC_TYPE : case Binding . PARAMETERIZED_TYPE : case Binding . RAW_TYPE : return ( erasure ( ) ) == ( otherType . erasure ( ) ) ; } return false ; } public boolean isProvablyDistinct ( TypeBinding otherType ) { } protected void initializeArguments ( ) { } public char [ ] readableName ( ) { } public char [ ] shortReadableName ( ) { } }

Fix:
if ( ( ( this ) == otherType ) || ( ( erasure ( ) ) == otherType ) )
Buggy code:
public class TestFieldValueFilter extends LuceneTestCase { public void testFieldValueFilterNoValue ( ) throws IOException { } public void testFieldValueFilter ( ) throws IOException { } private int [ ] buildIndex ( RandomIndexWriter writer , int docs ) throws IOException { int [ ] docStates = new int [ docs ] ; for ( int i = 0 ; i < docs ; i ++ ) { Document doc = new Document ( ) ; if ( random ( ) . nextBoolean ( ) ) { docStates [ i ] = 1 ; doc . add ( newTextField ( "some" , "value" , YES ) ) ; } doc . add ( newTextField ( "all" , "test" , NO ) ) ; doc . add ( newTextField ( "id" , ( "" + i ) , YES ) ) ; writer . addDocument ( doc ) ; } writer . commit ( ) ; int numDeletes = random ( ) . nextInt ( docs ) ; for ( int i = 0 ; i < numDeletes ; i ++ ) { int docID = random ( ) . nextInt ( docs ) ; writer . deleteDocuments ( new Term ( "id" , ( "" + docID ) ) ) ; docStates [ docID ] = 2 ; } <START_BUG> writer . close ( ) ; <END_BUG> return docStates ; } }

Fix:
writer . shutdown ( ) ;
Buggy code:
public class InterTypeFieldDeclaration extends InterTypeDeclaration { public Expression initialization ; public InterTypeFieldDeclaration ( CompilationResult result , TypeReference onType ) { } public void parseStatements ( Parser parser , CompilationUnitDeclaration unit ) { } public void resolveOnType ( ClassScope classScope ) { } public void resolve ( ClassScope upperScope ) { } public void setInitialization ( Expression initialization ) { } public EclipseTypeMunger build ( ClassScope classScope ) { EclipseFactory world = EclipseFactory . fromScopeLookupEnvironment ( classScope ) ; resolveOnType ( classScope ) ; <START_BUG> if ( ( classScope . referenceContext . binding ) == null ) <END_BUG> return null ; binding = classScope . referenceContext . binding . resolveTypesFor ( binding ) ; if ( ignoreFurtherInvestigation ) return null ; if ( ! ( Modifier . isStatic ( declaredModifiers ) ) ) { super . binding . parameters = new TypeBinding [ ] { onTypeBinding } ; this . arguments = new Argument [ ] { AstUtil . makeFinalArgument ( "ajc$this_" . toCharArray ( ) , onTypeBinding ) } ; } ResolvedMember sig = new ResolvedMember ( Member . FIELD , EclipseFactory . fromBinding ( onTypeBinding ) , declaredModifiers , EclipseFactory . fromBinding ( returnType ) , new String ( declaredSelector ) , TypeX . NONE ) ; NewFieldTypeMunger myMunger = new NewFieldTypeMunger ( sig , null ) ; setMunger ( myMunger ) ; ResolvedTypeX aspectType = world . fromEclipse ( classScope . referenceContext . binding ) ; ResolvedMember me = myMunger . getInitMethod ( aspectType ) ; this . selector = binding . selector = me . getName ( ) . toCharArray ( ) ; this . binding . returnType = VoidBinding ; return new EclipseTypeMunger ( world , myMunger , aspectType , this ) ; } private AjAttribute makeAttribute ( ) { } public void generateCode ( ClassScope classScope , ClassFile classFile ) { } private void generateDispatchMethods ( ClassScope classScope , ClassFile classFile ) { } private void generateDispatchMethod ( EclipseFactory world , ResolvedMember sig , TypeX aspectType , ClassScope classScope , ClassFile classFile , boolean isGetter ) { } private void generateInterfaceReadBody ( MethodBinding binding , MethodBinding readMethod , CodeStream codeStream ) { } private void generateInterfaceWriteBody ( MethodBinding binding , MethodBinding writeMethod , CodeStream codeStream ) { } private void generateClassReadBody ( MethodBinding binding , FieldBinding field , CodeStream codeStream ) { } private void generateClassWriteBody ( MethodBinding binding , FieldBinding field , CodeStream codeStream ) { } protected Kind getShadowKindForBody ( ) { } }

Fix:
if ( ignoreFurtherInvestigation )
Buggy code:
public class UrlBasedViewResolver extends AbstractCachingViewResolver implements Ordered { public static final String REDIRECT_URL_PREFIX = "redirect:" ; public static final String FORWARD_URL_PREFIX = "forward:" ; private Class viewClass ; private String prefix = "" ; private String suffix = "" ; private String [ ] viewNames = null ; private String contentType ; private boolean redirectContextRelative = true ; private boolean redirectHttp10Compatible = true ; private String requestContextAttribute ; private int order = Integer . MAX_VALUE ; private final Map < String , Object > staticAttributes = new HashMap < String , Object > ( ) ; public void setViewClass ( Class viewClass ) { } protected Class getViewClass ( ) { } protected Class requiredViewClass ( ) { } public void setPrefix ( String prefix ) { } protected String getPrefix ( ) { } public void setSuffix ( String suffix ) { } protected String getSuffix ( ) { } public void setContentType ( String contentType ) { } protected String getContentType ( ) { } public void setRedirectContextRelative ( boolean redirectContextRelative ) { } protected boolean isRedirectContextRelative ( ) { } public void setRedirectHttp10Compatible ( boolean redirectHttp10Compatible ) { } protected boolean isRedirectHttp10Compatible ( ) { } public void setRequestContextAttribute ( String requestContextAttribute ) { } protected String getRequestContextAttribute ( ) { } public void setAttributes ( Properties props ) { } public void setAttributesMap ( Map < String , ? > attributes ) { } public Map < String , Object > getAttributesMap ( ) { } public void setViewNames ( String [ ] viewNames ) { } protected String [ ] getViewNames ( ) { } public void setOrder ( int order ) { } public int getOrder ( ) { } @ Override protected void initApplicationContext ( ) { } @ Override protected Object getCacheKey ( String viewName , Locale locale ) { } @ Override protected View createView ( String viewName , Locale locale ) throws Exception { } protected boolean canHandle ( String viewName , Locale locale ) { } @ Override protected View loadView ( String viewName , Locale locale ) throws Exception { AbstractUrlBasedView view = buildView ( viewName ) ; View result = ( ( View ) ( getApplicationContext ( ) . getAutowireCapableBeanFactory ( ) . initializeBean ( view , viewName ) ) ) ; <START_BUG> return view . checkResource ( ) ? result : null ; <END_BUG> } protected AbstractUrlBasedView buildView ( String viewName ) throws Exception { } }

Fix:
return view . checkResource ( locale ) ? result : null ;
Buggy code:
public class Event { public Display display ; public Widget widget ; public int type ; public int detail ; public Widget item ; public int index ; public GC gc ; public int x ; public int y ; public int width ; public int height ; public int count ; public int time ; public int button ; public char character ; public int keyCode ; public int stateMask ; public int start ; public int end ; public String text ; public boolean doit = true ; public Object data ; public Rectangle getBounds ( ) { } public void setBounds ( Rectangle rect ) { } public String toString ( ) { <START_BUG> return ( ( ( ( ( ( ( ( ( ( ( "Event<seq2seq4repair_space>{type=" + ( type ) ) + ",widget=" ) + ( widget ) ) + ",x=" ) + ( x ) ) + ",y=" ) + ( y ) ) + ",width=" ) + ( width ) ) + ",height=" ) + ( height ) ) + "}" ; <END_BUG> } }

Fix:
return ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( "Event<seq2seq4repair_space>{type=" + ( type ) ) + "<seq2seq4repair_space>" ) + ( widget ) ) + "<seq2seq4repair_space>time=" ) + ( time ) ) + "<seq2seq4repair_space>data=" ) + ( data ) ) + "<seq2seq4repair_space>x=" ) + ( x ) ) + "<seq2seq4repair_space>y=" ) + ( y ) ) + "<seq2seq4repair_space>width=" ) + ( width ) ) + "<seq2seq4repair_space>height=" ) + ( height ) ) + "<seq2seq4repair_space>detail=" ) + ( detail ) ) + "}" ;
Buggy code:
public class NotationNameImpl implements ArgoModuleEventListener , NotationName { String _name = null ; String _version = null ; Icon _icon = null ; private static ArrayList _notations = new ArrayList ( ) ; protected NotationNameImpl ( String name ) { } protected NotationNameImpl ( String name , Icon icon ) { } protected NotationNameImpl ( String name , String version ) { } protected NotationNameImpl ( String name , String version , Icon icon ) { } public String getName ( ) { } public String getVersion ( ) { } public String getTitle ( ) { } public Icon getIcon ( ) { } public String getConfigurationValue ( ) { } public String toString ( ) { } public static String getNotationNameString ( String k1 , String k2 ) { } private static void fireEvent ( int eventType , NotationName nn ) { <START_BUG> ArgoEventPump . getInstance ( ) . fireEvent ( new ArgoNotationEvent ( eventType , nn ) ) ; <END_BUG> } public static NotationName makeNotation ( String k1 , String k2 , Icon icon ) { } public static ArrayList getAvailableNotations ( ) { } public static NotationName findNotation ( String s ) { } public boolean equals ( NotationName nn ) { } public static NotationName getNotation ( String k1 ) { } public static NotationName getNotation ( String k1 , String k2 ) { } public void moduleLoaded ( ArgoModuleEvent event ) { } public void moduleUnloaded ( ArgoModuleEvent event ) { } public void moduleEnabled ( ArgoModuleEvent event ) { } public void moduleDisabled ( ArgoModuleEvent event ) { } }

Fix:
ArgoEventPump . fireEvent ( new ArgoNotationEvent ( eventType , nn ) ) ;
Buggy code:
public class DataTransformer extends AbstractTransformComponent implements Instrument , RuleComponent { private String name ; private final Processor processor ; private final List < TransformRuleEntry > ruleList = new ArrayList < > ( ) ; private final Map < String , List < TransformRuleEntry > > ruleFindList = new HashMap < > ( ) ; public DataTransformer ( String id ) { } @ Override public TransformRule registerRule ( FormatEntry srcFormatEntry , FormatEntry destFormatEntry ) { } @ Override public TransformRule registerRule ( TransformRuleEntry rule ) { } @ Override public TransformRuleEntry removeRule ( String ruleName ) { } @ Override public List < ExecuteContext > execute ( ExecuteContext context ) { List < ExecuteContext > exList = new ArrayList < > ( ) ; String targetFmtName = context . getTargetFormatName ( ) ; List < TransformRuleEntry > rules = ruleFindList . get ( targetFmtName ) ; ElementChunk inputChunk = context . getInput ( ) ; handleInputLogging ( context . getResultHandlers ( ) , targetFmtName , inputChunk . getData ( ) ) ; for ( TransformRuleEntry rule : rules ) { List < Element > results = new ArrayList < > ( ) ; List < Element > result = ( ( List < Element > ) ( processor . execute ( rule . getRule ( ) , inputChunk . getData ( ) ) ) ) ; if ( ! ( result . isEmpty ( ) ) ) results . addAll ( result ) ; if ( ( ! ( results . isEmpty ( ) ) ) && ( this . hasTarget ( ) ) ) { for ( TransformComponent target : this . getTargetList ( ) . values ( ) ) if ( ( ! ( result . isEmpty ( ) ) ) && ( target . accept ( rule . getTargetFormatName ( ) ) ) ) <START_BUG> exList . add ( new com . lumens . engine . TransformExecuteContext ( context , new ElementChunk ( inputChunk . IsLast ( ) , results ) , target , rule . getTargetFormatName ( ) , context . getResultHandlers ( ) ) ) ; <END_BUG> } handleOutputLogging ( context . getResultHandlers ( ) , rule . getTargetFormatName ( ) , results ) ; } return exList ; } private void handleInputLogging ( List < ResultHandler > handlers , String targetName , List < Element > input ) { } private void handleOutputLogging ( List < ResultHandler > handlers , String targetName , List < Element > input ) { } @ Override public void open ( ) throws Exception { } @ Override public void close ( ) { } @ Override public String getName ( ) { } @ Override public void setName ( String name ) { } @ Override public boolean accept ( String name ) { } @ Override public boolean isSingleTarget ( ) { } public List < TransformRuleEntry > getTransformRuleList ( ) { } @ Override public void sourceFrom ( TransformComponent source ) { } @ Override public void targetTo ( TransformComponent target ) { } }

Fix:
exList . add ( new com . lumens . engine . TransformExecuteContext ( context , new ElementChunk ( inputChunk . isLast ( ) , results ) , target , rule . getTargetFormatName ( ) , context . getResultHandlers ( ) ) ) ;
Buggy code:
@ Component ( name = "dexels.repository.github.repository" , configurationPolicy = ConfigurationPolicy . require , immediate = true , provide = { GitHubRepositoryInstance . class } ) public class GitHubRepositoryInstanceImpl extends GitRepositoryInstanceImpl implements GitHubRepositoryInstance { private static final Logger logger = LoggerFactory . getLogger ( GitHubRepositoryInstanceImpl . class ) ; private ObjectMapper objectMapper ; private String httpUrl ; private String token ; private String reponame ; private String callbackUrl ; private Integer callbackUrlId ; @ Override @ Activate public void activate ( Map < String , Object > settings ) throws IOException , GitAPIException , InvalidRemoteException , TransportException { } @ Deactivate public void deactivate ( ) { } private String extractHttpUriFromGitUri ( String githubUri ) { } private void registerCallbackUrl ( ) { } private void deregisterCallbackUrl ( ) { } private String getJson ( Object obj ) { } @ Override protected UsernamePasswordCredentialsProvider getCredentialsProvider ( ) { } @ Override public String getHttpUrl ( ) { } @ Override public String getUrl ( ) { <START_BUG> return httpUrl ; <END_BUG> } @ Override public String repositoryType ( ) { } @ Reference ( name = "EventAdmin" , unbind = "clearEventAdmin" , optional = true ) public void setEventAdmin ( EventAdmin eventAdmin ) { } public void clearEventAdmin ( EventAdmin eventAdmin ) { } @ Override @ Reference ( name = "ConfigAdmin" , unbind = "clearConfigAdmin" ) public void setConfigAdmin ( ConfigurationAdmin configAdmin ) { } @ Reference ( name = "RepositoryManager" , unbind = "clearRepositoryManager" ) public void setRepositoryManager ( RepositoryManager repositoryManager ) { } public void clearRepositoryManager ( RepositoryManager repositoryManager ) { } }

Fix:
return gitUrl ;
Buggy code:
public class RequestedLinkGetter { private static final Logger LOG = Logger . getLogger ( RequestedLinkGetter . class . getName ( ) ) ; private static final String DATE_FORMAT = "yyyyMMdd" ; private final Language lang ; private final List < FileMatcher > matchers ; private final Date requestDate ; public RequestedLinkGetter ( Language lang , List < FileMatcher > matchers , Date requestDate ) { } protected List < Date > getAllDates ( ) throws IOException , ParseException { List < Date > availableDate = new ArrayList < Date > ( ) ; URL langWikiPageUrl = new URL ( ( ( ( ( DumpLinkGetter . BASEURL_STRING ) + "//" ) + ( lang . getLangCode ( ) . replace ( "-" , "_" ) ) ) + "wiki//" ) ) ; Document doc = Jsoup . parse ( IOUtils . toString ( langWikiPageUrl . openStream ( ) ) ) ; <START_BUG> Elements availableDates = doc . select ( "tbody" ) . select ( "td.n" ) . select ( "a[href]" ) ; <END_BUG> for ( Element element : availableDates ) { Matcher dateMatcher = Pattern . compile ( "(\\d{8})//" ) . matcher ( element . attr ( "href" ) ) ; while ( dateMatcher . find ( ) ) { availableDate . add ( RequestedLinkGetter . stringToDate ( dateMatcher . group ( 1 ) ) ) ; } } return availableDate ; } protected List < String > availableDumpDatesSorted ( List < Date > dateList ) throws WikiBrainException { } private static Date stringToDate ( String dateString ) throws ParseException { } protected Map < String , Multimap < FileMatcher , DumpLinkInfo > > getDumps ( ) throws IOException , ParseException , WikiBrainException { } public List < String > getLangLinks ( ) throws IOException , ParseException , WikiBrainException { } public static void main ( String [ ] args ) throws IOException , ParseException , ConfigurationException , WikiBrainException { } }

Fix:
Elements availableDates = doc . select ( "body" ) . select ( "pre" ) . select ( "a[href]" ) ;
Buggy code:
public class EmailPage extends WebPage { private static final long serialVersionUID = 1L ; private String email ; public EmailPage ( ) { } public String getEmail ( ) { <START_BUG> return this . email ; <END_BUG> } public void setEmail ( final String email ) { } }

Fix:
return email ;
Buggy code:
public final class EditBook extends AuthenticatedHtmlPage { static final Book otherBook = new Book ( "Frisbee<seq2seq4repair_space>Techniques" , "Marty<seq2seq4repair_space>van<seq2seq4repair_space>Hoff" , Book . FICTION ) ; public EditBook ( final Book book ) { } public static PageLink link ( final String name , final long id ) { return new PageLink ( name , new IPageLink ( ) { public Page getPage ( ) { return new EditBook ( Book . get ( id ) ) ; } <START_BUG> public Class getPageClass ( ) { <END_BUG> return EditBook . class ; } } ) ; } public static final class EditBookForm extends Form { private Book book ; public EditBookForm ( final String componentName , final Book book , final FeedbackPanel feedback ) { } public final void handleSubmit ( ) { } } }

Fix:
public Class getIdentity ( ) {
Buggy code:
public abstract class UnivariateRealMinimizerImpl extends ConvergingAlgorithmImpl implements UnivariateRealMinimizer { private static final long serialVersionUID = 4543031162377070699L ; protected boolean resultComputed = false ; protected double result ; protected double functionValue ; protected UnivariateRealMinimizerImpl ( int defaultMaximalIterationCount , double defaultAbsoluteAccuracy ) { } protected void checkResultComputed ( ) throws IllegalStateException { if ( ! ( resultComputed ) ) { <START_BUG> throw MathRuntimeException . createIllegalStateException ( "no<seq2seq4repair_space>result<seq2seq4repair_space>available" , null ) ; <END_BUG> } } public double getResult ( ) { } public double getFunctionValue ( ) { } protected final void setResult ( double result , int iterationCount ) { } protected final void setResult ( double x , double fx , int iterationCount ) { } protected final void clearResult ( ) { } }

Fix:
throw MathRuntimeException . createIllegalStateException ( "no<seq2seq4repair_space>result<seq2seq4repair_space>available" ) ;
Buggy code:
public class Initializer { private String thread_id ; private DbUtil dbutil ; public Initializer ( String name ) { } public void startInserts ( ) { } public synchronized void printException ( String where , Exception e ) { if ( e instanceof SQLException ) { SQLException se = ( ( SQLException ) ( e ) ) ; if ( se . getSQLState ( ) . equals ( "40001" ) ) System . out . println ( "deadlocked<seq2seq4repair_space>detected" ) ; if ( se . getSQLState ( ) . equals ( "40XL1" ) ) System . out . println ( "<seq2seq4repair_space>lock<seq2seq4repair_space>timeout<seq2seq4repair_space>exception" ) ; if ( se . getSQLState ( ) . equals ( "23500" ) ) System . out . println ( "<seq2seq4repair_space>duplicate<seq2seq4repair_space>key<seq2seq4repair_space>violation" ) ; if ( ( se . getNextException ( ) ) != null ) { String m = se . getNextException ( ) . getSQLState ( ) ; System . out . println ( ( ( ( se . getNextException ( ) . getMessage ( ) ) + "<seq2seq4repair_space>SQLSTATE:<seq2seq4repair_space>" ) + m ) ) ; } } <START_BUG> if ( e . getMessage ( ) . equals ( null ) ) { <END_BUG> e . printStackTrace ( System . out ) ; } System . out . println ( ( ( ( "During<seq2seq4repair_space>-<seq2seq4repair_space>" + where ) + ",<seq2seq4repair_space>the<seq2seq4repair_space>exception<seq2seq4repair_space>thrown<seq2seq4repair_space>was<seq2seq4repair_space>:<seq2seq4repair_space>" ) + ( e . getMessage ( ) ) ) ) ; } }

Fix:
if ( ( e . getMessage ( ) ) == null ) {
Buggy code:
public class MainActivity extends Activity implements SwipeRefreshLayout . OnRefreshListener , RssItemFeedFragment . OnRssItemFeedFragmentInteractionListener , RssItemsFragment . OnRssItemsFragmentInteractionListener , RssListener { private SplashScreenFragment splashScreenFragment ; private CopyOnWriteArrayList < RssItem > rssItems ; private RssItemsFragment rssItemsFragment ; enum MainActivityState { ON_FETCHING_NEW_DATA , ON_REFRESHING , ON_HOLD ; } MainActivity . MainActivityState mainActivityState ; private ServiceConnection rssUpdateServiceConnection = new ServiceConnection ( ) { @ Override public void onServiceConnected ( ComponentName componentName , IBinder iBinder ) { } @ Override public void onServiceDisconnected ( ComponentName componentName ) { } } ; private RssUpdateService rssUpdateService ; @ Override public void onStop ( ) { } public void setRssUpdateServiceAlarm ( ) { } @ Override protected void onCreate ( Bundle savedInstanceState ) { } private void bindRssUpdateService ( ) { } private void addSplashScreen ( ) { } private void removeSplashScreen ( ) { } @ Override protected void onNewIntent ( Intent intent ) { } @ Override public boolean onCreateOptionsMenu ( Menu menu ) { } @ Override public boolean onOptionsItemSelected ( MenuItem item ) { } private void showRssItemsFragment ( CopyOnWriteArrayList < RssItem > rssItems ) { } private void showRssItemFeedFragment ( String title , String content ) { } @ Override public void onRssFinishLoading ( String taskName , CopyOnWriteArrayList < RssItem > rssItems ) { this . rssItems = rssItems ; <START_BUG> Log . i ( "success" , "success" ) ; <END_BUG> if ( ( mainActivityState ) == ( MainActivity . MainActivityState . ON_FETCHING_NEW_DATA ) ) { removeSplashScreen ( ) ; showRssItemsFragment ( rssItems ) ; mainActivityState = MainActivity . MainActivityState . ON_HOLD ; } else if ( ( mainActivityState ) == ( MainActivity . MainActivityState . ON_REFRESHING ) ) { rssItemsFragment . resetRssItems ( this . rssItems ) ; rssItemsFragment . stopRefreshing ( ) ; mainActivityState = MainActivity . MainActivityState . ON_HOLD ; } else { rssItemsFragment . stopRefreshing ( ) ; if ( ( splashScreenFragment ) != null ) { removeSplashScreen ( ) ; } } } @ Override public void onRssItemsFragmentInteraction ( String title , String contentHTML ) { } @ Override public void onRssItemFeedFragmentStart ( ) { } @ Override public void onRssItemFeedFragmentStop ( ) { } @ Override public void onRssItemFeedFragmentInteraction ( Uri uri ) { } @ Override public void onRefresh ( ) { } }

Fix:
Log . i ( "MainActivity" , "Rss<seq2seq4repair_space>Finish<seq2seq4repair_space>Loading.<seq2seq4repair_space>Running<seq2seq4repair_space>onRssFinishLoading" ) ;
Buggy code:
public class MenuConversationListener { public static class CreateMenuPrompt extends BooleanPrompt { @ Override protected Prompt acceptValidatedInput ( ConversationContext conversationContext , boolean b ) { if ( b ) { return new MenuConversationListener . MenuSizePrompt ( ) ; } else { Player player = ( ( Player ) ( conversationContext . getForWhom ( ) ) ) ; player . sendMessage ( "Please<seq2seq4repair_space>create<seq2seq4repair_space>your<seq2seq4repair_space>items<seq2seq4repair_space>before<seq2seq4repair_space>continuing." ) ; return Prompt . END_OF_CONVERSATION ; } } @ Override public String getPromptText ( ConversationContext conversationContext ) { } } public static class MenuSizePrompt extends NumericPrompt { @ Override protected Prompt acceptValidatedInput ( ConversationContext conversationContext , Number number ) { } @ Override public String getPromptText ( ConversationContext conversationContext ) { } } public static class MenuNamePrompt extends StringPrompt { private int size ; public MenuNamePrompt ( int i ) { } @ Override public String getPromptText ( ConversationContext conversationContext ) { } @ Override public Prompt acceptInput ( ConversationContext conversationContext , String s ) { } } public static class VillagerNamePrompt extends StringPrompt { MainMenu mm ; public VillagerNamePrompt ( MainMenu mm ) { } @ Override public String getPromptText ( ConversationContext conversationContext ) { } @ Override public Prompt acceptInput ( ConversationContext conversationContext , String s ) { } } public static class VillagerCreatePrompt extends BooleanPrompt { MainMenu mm ; String name ; public VillagerCreatePrompt ( MainMenu mm , String n ) { } @ Override protected Prompt acceptValidatedInput ( ConversationContext conversationContext , boolean b ) { Player player = ( ( Player ) ( conversationContext . getForWhom ( ) ) ) ; NPCDealer dealer = ( ( NPCDealer ) ( NPCDEALER . spawn ( player . getLocation ( ) ) ) ) ; dealer . setCustomName ( ChatColor . translateAlternateColorCodes ( '&' , name ) ) ; <START_BUG> dealer . setGUI ( mm ) ; <END_BUG> return Prompt . END_OF_CONVERSATION ; } @ Override public String getPromptText ( ConversationContext conversationContext ) { } } }

Fix:
dealer . setGUI ( mm , false ) ;
Buggy code:
public class WorkbenchErrorHandler extends AbstractStatusHandler { private WorkbenchStatusDialogManager statusDialogManager ; void setStatusDialog ( WorkbenchStatusDialogManager manager ) { } public void handle ( final StatusAdapter statusAdapter , int style ) { } private void showStatusAdapter ( StatusAdapter statusAdapter , boolean block ) { if ( ! ( PlatformUI . isWorkbenchRunning ( ) ) ) { WorkbenchPlugin . log ( statusAdapter . getStatus ( ) ) ; return ; } getStatusDialogManager ( ) . addStatusAdapter ( statusAdapter , block ) ; if ( block ) { Shell shell ; while ( ( ( shell = getStatusDialogManager ( ) . getShell ( ) ) != null ) && ( ! ( getStatusDialogManager ( ) . getShell ( ) . isDisposed ( ) ) ) ) { if ( ! ( shell . getDisplay ( ) . readAndDispatch ( ) ) ) { <START_BUG> Thread . yield ( ) ; <END_BUG> } } } } private WorkbenchStatusDialogManager getStatusDialogManager ( ) { } protected void configureStatusDialog ( final WorkbenchStatusDialogManager statusDialog ) { } }

Fix:
Display . getDefault ( ) . sleep ( ) ;
Buggy code:
public class DrinkListArrayAdapter extends BaseAdapter { private final Context context ; private int resource ; private final ArrayList < Drink > drinks ; public DrinkListArrayAdapter ( Context context , int resource , ArrayList < Drink > objects ) { } @ Override public int getCount ( ) { } @ Override public String getItem ( int position ) { } @ Override public long getItemId ( int arg0 ) { } @ Override public View getView ( final int position , View convertView , ViewGroup parent ) { LayoutInflater inflater = ( ( LayoutInflater ) ( context . getSystemService ( LAYOUT_INFLATER_SERVICE ) ) ) ; View rowView = inflater . inflate ( resource , parent , false ) ; TextView beerText = ( ( TextView ) ( rowView . findViewById ( beerNameTextView ) ) ) ; <START_BUG> beerText . setText ( ( ( ( ( ( drinks . get ( position ) . getDrinkName ( ) ) + ",<seq2seq4repair_space>" ) + ( drinks . get ( position ) . getDrinkVolume ( ) ) ) + "<seq2seq4repair_space>oz,<seq2seq4repair_space>" ) + ( drinks . get ( position ) . getDrinkABV ( ) ) ) ) ; <END_BUG> return rowView ; } }

Fix:
beerText . setText ( ( ( ( ( ( ( drinks . get ( position ) . getDrinkName ( ) ) + ",<seq2seq4repair_space>" ) + ( drinks . get ( position ) . getDrinkVolume ( ) ) ) + "<seq2seq4repair_space>oz,<seq2seq4repair_space>" ) + ( drinks . get ( position ) . getDrinkABV ( ) ) ) + "%<seq2seq4repair_space>alcohol" ) ) ;
Buggy code:
public class KMeansPlusPlusClusterer < T extends Clusterable < T > > { public static enum EmptyClusterStrategy { LARGEST_VARIANCE , LARGEST_POINTS_NUMBER , FARTHEST_POINT , ERROR ; } private final Random random ; private final KMeansPlusPlusClusterer . EmptyClusterStrategy emptyStrategy ; public KMeansPlusPlusClusterer ( final Random random ) { } public KMeansPlusPlusClusterer ( final Random random , final KMeansPlusPlusClusterer . EmptyClusterStrategy emptyStrategy ) { } public List < Cluster < T > > cluster ( final Collection < T > points , final int k , final int maxIterations ) { } private static < T extends Clusterable < T > > void assignPointsToClusters ( final Collection < Cluster < T > > clusters , final Collection < T > points ) { } private static < T extends Clusterable < T > > List < Cluster < T > > chooseInitialCenters ( final Collection < T > points , final int k , final Random random ) { final List < T > pointSet = new ArrayList < T > ( points ) ; final List < Cluster < T > > resultSet = new ArrayList < Cluster < T > > ( ) ; final T firstPoint = pointSet . remove ( random . nextInt ( pointSet . size ( ) ) ) ; resultSet . add ( new Cluster < T > ( firstPoint ) ) ; final double [ ] dx2 = new double [ pointSet . size ( ) ] ; while ( ( resultSet . size ( ) ) < k ) { <START_BUG> int sum = 0 ; <END_BUG> for ( int i = 0 ; i < ( pointSet . size ( ) ) ; i ++ ) { final T p = pointSet . get ( i ) ; final Cluster < T > nearest = KMeansPlusPlusClusterer . getNearestCluster ( resultSet , p ) ; final double d = p . distanceFrom ( nearest . getCenter ( ) ) ; sum += d * d ; dx2 [ i ] = sum ; } final double r = ( random . nextDouble ( ) ) * sum ; for ( int i = 0 ; i < ( dx2 . length ) ; i ++ ) { if ( ( dx2 [ i ] ) >= r ) { final T p = pointSet . remove ( i ) ; resultSet . add ( new Cluster < T > ( p ) ) ; break ; } } } return resultSet ; } private T getPointFromLargestVarianceCluster ( final Collection < Cluster < T > > clusters ) { } private T getPointFromLargestNumberCluster ( final Collection < Cluster < T > > clusters ) { } private T getFarthestPoint ( final Collection < Cluster < T > > clusters ) { } private static < T extends Clusterable < T > > Cluster < T > getNearestCluster ( final Collection < Cluster < T > > clusters , final T point ) { } }

Fix:
double sum = 0 ;
Buggy code:
public class TestConfig extends SolrTestCaseJ4 { @ BeforeClass public static void beforeClass ( ) throws Exception { } @ Test public void testLib ( ) throws IOException { } @ Test public void testJavaProperty ( ) { } @ Test public void testLucene23Upgrades ( ) throws Exception { } @ Test public void testAutomaticDeprecationSupport ( ) { } @ Test public void testTermIndexInterval ( ) throws Exception { <START_BUG> IndexWriter writer = ( ( org . apache . solr . update . DirectUpdateHandler2 ) ( h . getCore ( ) . getUpdateHandler ( ) ) ) . getIndexWriterProvider ( ) . getIndexWriter ( h . getCore ( ) ) ; <END_BUG> int interval = writer . getConfig ( ) . getTermIndexInterval ( ) ; assertEquals ( 256 , interval ) ; } @ Test public void testTermIndexDivisor ( ) throws Exception { } }

Fix:
IndexWriter writer = ( ( org . apache . solr . update . DirectUpdateHandler2 ) ( h . getCore ( ) . getUpdateHandler ( ) ) ) . getSolrCoreState ( ) . getIndexWriter ( h . getCore ( ) ) ;
Buggy code:
public class ArquillianRunWithAnnotationProcessor implements DeploymentUnitProcessor { @ Override public void deploy ( DeploymentPhaseContext phaseContext ) throws DeploymentUnitProcessingException { <START_BUG> final Index index = phaseContext . getAttachment ( ANNOTATION_INDEX ) ; <END_BUG> if ( index == null ) return ; final DotName runWithName = DotName . createSimple ( RunWith . class . getName ( ) ) ; final List < AnnotationInstance > instances = index . getAnnotations ( runWithName ) ; if ( ( instances == null ) || ( instances . isEmpty ( ) ) ) return ; final DeploymentUnit deploymentUnitContext = phaseContext . getDeploymentUnit ( ) ; ArquillianConfig arqConfig = new ArquillianConfig ( deploymentUnitContext ) ; deploymentUnitContext . putAttachment ( KEY , arqConfig ) ; for ( AnnotationInstance instance : instances ) { final AnnotationTarget target = instance . target ( ) ; if ( target instanceof ClassInfo ) { final ClassInfo classInfo = ( ( ClassInfo ) ( target ) ) ; final String testClassName = classInfo . name ( ) . toString ( ) ; arqConfig . addTestClass ( testClassName ) ; } } } public void undeploy ( final DeploymentUnit context ) { } }

Fix:
final Index index = phaseContext . getDeploymentUnit ( ) . getAttachment ( ANNOTATION_INDEX ) ;
Buggy code:
public interface PersistenceProviderAdaptor { void injectJtaManager ( JtaManager jtaManager ) { } void addProviderProperties ( Map properties , PersistenceUnitMetadata pu ) { } Iterable < ServiceName > getProviderDependencies ( PersistenceUnitMetadata pu ) { } void beforeCreateContainerEntityManagerFactory ( PersistenceUnitMetadata pu ) { } void afterCreateContainerEntityManagerFactory ( PersistenceUnitMetadata pu ) { } <START_BUG> Object getManagementAdaptor ( ) ; <END_BUG> }

Fix:
ManagementAdaptor getManagementAdaptor ( ) ;
Buggy code:
abstract class AbstractAutoIndexerImpl < T extends PropertyContainer > implements AutoIndexer < T > , PropertyTracker < T > { private final Set < String > propertyKeysToInclude = new HashSet < String > ( ) ; private final EmbeddedGraphDbImpl gdb ; private volatile boolean enabled ; public AbstractAutoIndexerImpl ( EmbeddedGraphDbImpl gdb ) { } void start ( ) { } public void propertyAdded ( T primitive , String propertyName , Object propertyValue ) { } public void propertyChanged ( T primitive , String propertyName , Object oldValue , Object newValue ) { } public void propertyRemoved ( T primitive , String propertyName , Object propertyValue ) { <START_BUG> getIndexInternal ( ) . remove ( primitive , propertyName , propertyValue ) ; <END_BUG> } @ Override public ReadableIndex < T > getAutoIndex ( ) { } public void setEnabled ( boolean enabled ) { } @ Override public boolean isEnabled ( ) { } @ Override public void startAutoIndexingProperty ( String propName ) { } @ Override public void stopAutoIndexingProperty ( String propName ) { } @ Override public Set < String > getAutoIndexedProperties ( ) { } protected EmbeddedGraphDbImpl getGraphDbImpl ( ) { } protected abstract Index < T > getIndexInternal ( ) { } protected abstract String getAutoIndexConfigListName ( ) { } protected abstract String getEnableConfigName ( ) { } protected abstract String getAutoIndexName ( ) { } private void resolveConfig ( ) { } private Set < String > parseConfigList ( String list ) { } private static class IndexWrapper < K extends PropertyContainer > implements ReadableIndex < K > { private final Index < K > delegate ; IndexWrapper ( Index < K > delegate ) { } @ Override public String getName ( ) { } @ Override public Class < K > getEntityType ( ) { } @ Override public IndexHits < K > get ( String key , Object value ) { } @ Override public IndexHits < K > query ( String key , Object queryOrQueryObject ) { } @ Override public IndexHits < K > query ( Object queryOrQueryObject ) { } @ Override public boolean isWriteable ( ) { } } static class ReadOnlyIndexToIndexAdapter < T extends PropertyContainer > implements Index < T > { private final ReadableIndex < T > delegate ; public ReadOnlyIndexToIndexAdapter ( ReadableIndex < T > delegate ) { } @ Override public String getName ( ) { } @ Override public Class < T > getEntityType ( ) { } @ Override public IndexHits < T > get ( String key , Object value ) { } @ Override public IndexHits < T > query ( String key , Object queryOrQueryObject ) { } @ Override public IndexHits < T > query ( Object queryOrQueryObject ) { } @ Override public void add ( T entity , String key , Object value ) { } @ Override public void remove ( T entity , String key , Object value ) { } @ Override public void remove ( T entity , String key ) { } @ Override public void remove ( T entity ) { } @ Override public void delete ( ) { } @ Override public boolean isWriteable ( ) { } } No newline ; at end ; of file ; }

Fix:
getIndexInternal ( ) . remove ( primitive , propertyName ) ;
Buggy code:
} else <START_BUG> if ( name . startsWith ( "VtblCall" ) ) { <END_BUG>

Fix:
if ( ( name . startsWith ( "VtblCall" ) ) || ( name . startsWith ( "_VtblCall" ) ) ) {
Buggy code:
public class SymmetrySystem implements OrbitSource { private static int NEXT_NEW_AXIS = 0 ; private final Symmetry symmetry ; private final OrbitSet orbits ; private final Map orbitColors = new HashMap ( ) ; private final Map < String , Shapes > styles = new HashMap ( ) ; private final List < String > styleNames = new ArrayList < String > ( ) ; private Shapes shapes ; private boolean noKnownDirections = false ; public SymmetrySystem ( Element symmXml , Symmetry symmetry , Colors colors , List < Shapes > styles , boolean allowNonstandard ) { } @ Override public Axis getAxis ( AlgebraicVector vector ) { } public Direction createAnonymousOrbit ( AlgebraicVector vector ) { } @ Override public Color getColor ( Direction orbit ) { } public Symmetry getSymmetry ( ) { } @ Override public OrbitSet getOrbits ( ) { } public void disableKnownDirection ( ) { } public Shapes getRenderingStyle ( ) { } public Element getXml ( Document doc ) { Element result = doc . createElement ( "SymmetrySystem" ) ; DomUtils . addAttribute ( result , "name" , this . getSymmetry ( ) . getName ( ) ) ; DomUtils . addAttribute ( result , "renderingStyle" , this . shapes . getName ( ) ) ; for ( Iterator dirs = this . getOrbits ( ) . iterator ( ) ; dirs . hasNext ( ) ; ) { Direction dir = ( ( Direction ) ( dirs . next ( ) ) ) ; Element dirElem = doc . createElement ( "Direction" ) ; if ( dir . isAutomatic ( ) ) <START_BUG> DomUtils . addAttribute ( dirElem , "prototype" , dir . getPrototype ( ) . toString ( ) ) ; <END_BUG> DomUtils . addAttribute ( dirElem , "name" , dir . getName ( ) ) ; { Color color = getColor ( dir ) ; if ( color != null ) DomUtils . addAttribute ( dirElem , "color" , color . toString ( ) ) ; } result . appendChild ( dirElem ) ; } return result ; } public void setStyle ( String styleName ) { } public String [ ] getStyleNames ( ) { } public Shapes getStyle ( ) { } }

Fix:
DomUtils . addAttribute ( dirElem , "prototype" , dir . getPrototype ( ) . getVectorExpression ( ZOMIC_FORMAT ) ) ;