nus-yam/ex-repair huggingface dataset:
Buggy code:
public class SelectionOnSingleNameReference extends SingleNameReference { public SelectionOnSingleNameReference ( char [ ] source , long pos ) { } public TypeBinding resolveType ( BlockScope scope ) { <START_BUG> binding = scope . getBinding ( token , ( ( ( VARIABLE ) | ( TypeConstants . TYPE ) ) | ( PACKAGE ) ) , this ) ; <END_BUG> if ( ! ( binding . isValidBinding ( ) ) ) { if ( ( binding ) instanceof ProblemFieldBinding ) { if ( ( ( ( ( binding . problemId ( ) ) == ( ProblemReasons . NotVisible ) ) || ( ( binding . problemId ( ) ) == ( ProblemReasons . InheritedNameHidesEnclosingName ) ) ) || ( ( binding . problemId ( ) ) == ( ProblemReasons . NonStaticReferenceInConstructorInvocation ) ) ) || ( ( binding . problemId ( ) ) == ( ProblemReasons . NonStaticReferenceInStaticContext ) ) ) { throw new SelectionNodeFound ( binding ) ; } scope . problemReporter ( ) . invalidField ( this , ( ( FieldBinding ) ( binding ) ) ) ; } else if ( ( binding ) instanceof ProblemReferenceBinding ) { if ( ( binding . problemId ( ) ) == ( ProblemReasons . NotVisible ) ) { throw new SelectionNodeFound ( binding ) ; } scope . problemReporter ( ) . invalidType ( this , ( ( TypeBinding ) ( binding ) ) ) ; } else { scope . problemReporter ( ) . unresolvableReference ( this , binding ) ; } throw new SelectionNodeFound ( ) ; } throw new SelectionNodeFound ( binding ) ; } public StringBuffer printExpression ( int indent , StringBuffer output ) { } }

Fix:
binding = scope . getBinding ( token , ( ( ( VARIABLE ) | ( TypeConstants . TYPE ) ) | ( PACKAGE ) ) , this , true ) ;
Buggy code:
abstract class AbstractPromiseToListenableFutureAdapter < S , T > implements ListenableFuture < T > { private final Promise < S > promise ; private final ListenableFutureCallbackRegistry < T > registry = new ListenableFutureCallbackRegistry < T > ( ) ; protected AbstractPromiseToListenableFutureAdapter ( Promise < S > promise ) { } protected abstract T adapt ( S result ) { } @ Override public T get ( ) throws InterruptedException { } @ Override public T get ( long timeout , TimeUnit unit ) throws InterruptedException , ExecutionException , TimeoutException { S result = this . promise . await ( timeout , unit ) ; <START_BUG> if ( result == null ) { <END_BUG> throw new TimeoutException ( ) ; } return adapt ( result ) ; } @ Override public boolean cancel ( boolean mayInterruptIfRunning ) { } @ Override public boolean isCancelled ( ) { } @ Override public boolean isDone ( ) { } @ Override public void addCallback ( ListenableFutureCallback < ? super T > callback ) { } @ Override public void addCallback ( SuccessCallback < ? super T > successCallback , FailureCallback failureCallback ) { } }

Fix:
if ( ! ( promise . isComplete ( ) ) ) {
Buggy code:
public class SoapSampler extends HTTPSampler2 { private static final Logger log = LoggingManager . getLoggerForClass ( ) ; public static final String XML_DATA = "HTTPSamper.xml_data" ; public static final String URL_DATA = "SoapSampler.URL_DATA" ; public static final String SOAP_ACTION = "SoapSampler.SOAP_ACTION" ; public static final String SEND_SOAP_ACTION = "SoapSampler.SEND_SOAP_ACTION" ; public static final String XML_DATA_FILE = "SoapSampler.xml_data_file" ; private static final String DOUBLE_QUOTE = "\"" ; private static final String SOAPACTION = "SOAPAction" ; public void setXmlData ( String data ) { } public String getXmlData ( ) { } public void setXmlFile ( String filename ) { } public String getXmlFile ( ) { } public String getURLData ( ) { } public void setURLData ( String url ) { } public String getSOAPAction ( ) { } public String getSOAPActionQuoted ( ) { } public void setSOAPAction ( String action ) { } public boolean getSendSOAPAction ( ) { } public void setSendSOAPAction ( boolean action ) { } protected void setPostHeaders ( PostMethod post ) { } protected void sendPostData ( PostMethod post ) { final String xmlFile = getXmlFile ( ) ; if ( ( xmlFile != null ) && ( ( getXmlFile ( ) . length ( ) ) > 0 ) ) { post . setRequestEntity ( new RequestEntity ( ) { public boolean isRepeatable ( ) { return true ; } public void writeRequest ( OutputStream out ) throws IOException { byte [ ] buf = new byte [ 1024 ] ; int read ; InputStream in = new FileInputStream ( xmlFile ) ; while ( ( read = in . read ( buf ) ) > 0 ) { out . write ( buf , 0 , read ) ; } in . close ( ) ; out . flush ( ) ; } public long getContentLength ( ) { return - 1 ; } public String getContentType ( ) { return "text//xml" ; } } ) ; } else { post . setRequestEntity ( new RequestEntity ( ) { public boolean isRepeatable ( ) { return true ; } public void writeRequest ( OutputStream out ) throws IOException { PrintWriter printer = new PrintWriter ( out ) ; printer . print ( getXmlData ( ) ) ; printer . flush ( ) ; } public long getContentLength ( ) { <START_BUG> return getXmlData ( ) . length ( ) ; <END_BUG> } public String getContentType ( ) { return "text//xml" ; } } ) ; } } protected HTTPSampleResult sample ( URL url , String method , boolean areFollowingRedirect , int frameDepth ) { } public URL getUrl ( ) throws MalformedURLException { } }

Fix:
return getXmlData ( ) . getBytes ( ) . length ;
Buggy code:
public class ClientPageSavingSessionStore extends HttpSessionStore { private ThreadLocal < Map < String , Object > > pages = new ThreadLocal < Map < String , Object > > ( ) { @ Override protected Map < String , Object > initialValue ( ) { } } ; public ClientPageSavingSessionStore ( ) { } @ Override public void onBeginRequest ( Request request ) { } @ Override public void onEndRequest ( Request request ) { <START_BUG> pages . set ( null ) ; <END_BUG> } @ Override public final Object getAttribute ( Request request , String name ) { } @ Override public final List < String > getAttributeNames ( Request request ) { } @ Override public final void removeAttribute ( Request request , String name ) { } @ Override public final void setAttribute ( Request request , String name , Object value ) { } @ Override public PageMap createPageMap ( String name , Session session ) { } private static final class ClientPageSessionStorePageMap extends PageMap { private static final long serialVersionUID = 1L ; private ClientPageSessionStorePageMap ( String name , Session session ) { } @ Override protected void removeEntry ( IPageMapEntry entry ) { } @ Override protected void put ( Page page ) { } @ Override protected Page get ( int id , int versionNumber ) { } } static final class StateWriter implements IResponseFilter { public AppendingStringBuffer filter ( AppendingStringBuffer responseBuffer ) { } } }

Fix:
pages . remove ( ) ;
Buggy code:
public class PropertyMetadata { private final String name ; private final String fieldName ; private final Class < ? > type ; private Converter converter ; private final Field field ; public PropertyMetadata ( String name , Field field ) { } public PropertyMetadata ( Field field ) { } public String getName ( ) { } public Object toJson ( Object entity ) { Object o ; try { o = field . get ( entity ) ; <START_BUG> if ( ( converter ) != null ) { <END_BUG> o = converter . serialize ( o ) ; } } catch ( IllegalAccessException e ) { throw new RuntimeException ( "Could<seq2seq4repair_space>not<seq2seq4repair_space>access<seq2seq4repair_space>this<seq2seq4repair_space>field.<seq2seq4repair_space>Set<seq2seq4repair_space>this<seq2seq4repair_space>field<seq2seq4repair_space>to<seq2seq4repair_space>accessible" ) ; } return o ; } public void setValue ( Object value , Object instance ) { } public Object getValue ( Object ref ) { } }

Fix:
if ( ( ( converter ) != null ) && ( o != null ) ) {
Buggy code:
public class SQLExec extends AbstractTask { private int goodSql = 0 ; private int totalSql = 0 ; private ArrayList filesets = new ArrayList ( ) ; private Connection conn ; private boolean autocommit ; private Statement statement ; private String driver ; private String url ; private String userId ; private String password ; private File srcFile ; private String sqlCommand = "" ; private ArrayList transactions = new ArrayList ( ) ; private String delimiter = ";" ; private String delimiterType = SQLExec . DelimiterType . NORMAL ; private boolean print ; private boolean showheaders = true ; private File output ; private String rdbms ; private String version ; private String onError = "abort" ; private String encoding ; private Path classpath ; public void setAutocommit ( boolean autocommit ) { } public void addClasspath ( Path classpath ) throws TaskException { if ( ( this . classpath ) == null ) { this . classpath = classpath ; } else { <START_BUG> this . classpath . addPath ( classpath ) ; <END_BUG> } } public void setDelimiter ( String delimiter ) { } public void setDelimiterType ( SQLExec . DelimiterType delimiterType ) { } public void setDriver ( String driver ) { } public void setEncoding ( String encoding ) { } public void setOnerror ( SQLExec . OnError action ) { } public void setOutput ( File output ) { } public void setPassword ( String password ) { } public void setPrint ( boolean print ) { } public void setRdbms ( String vendor ) { } public void setShowheaders ( boolean showheaders ) { } public void setSrc ( File srcFile ) { } public void setUrl ( String url ) { } public void setUserid ( String userId ) { } public void setVersion ( String version ) { } public void addFileset ( FileSet set ) { } public void addContent ( String sql ) { } public SQLExec . Transaction createTransaction ( ) { } public void execute ( ) throws TaskException { } protected boolean isValidRdbms ( Connection conn ) { } protected void execSQL ( String sql , PrintStream out ) throws SQLException { } protected void printResults ( PrintStream out ) throws SQLException { } protected void runStatements ( Reader reader , PrintStream out ) throws IOException , SQLException , TaskException { } public static class DelimiterType extends EnumeratedAttribute { public static final String NORMAL = "normal" ; public static final String ROW = "row" ; public String [ ] getValues ( ) { } } public static class OnError extends EnumeratedAttribute { public String [ ] getValues ( ) { } } public class Transaction { private File tSrcFile = null ; private String tSqlCommand = "" ; public void setSrc ( File src ) { } public void addContent ( String sql ) { } private void runTransaction ( PrintStream out ) throws IOException , SQLException , TaskException { } } }

Fix:
this . classpath . add ( classpath ) ;
Buggy code:
public abstract class ReadCommand implements MessageProducer { public static final byte CMD_TYPE_GET_SLICE_BY_NAMES = 1 ; public static final byte CMD_TYPE_GET_SLICE = 2 ; private static ReadCommandSerializer serializer = new ReadCommandSerializer ( ) ; public static ReadCommandSerializer serializer ( ) { } <START_BUG> public Message getMessage ( int version ) throws IOException { <END_BUG> ByteArrayOutputStream bos = new ByteArrayOutputStream ( ) ; DataOutputStream dos = new DataOutputStream ( bos ) ; ReadCommand . serializer ( ) . serialize ( this , dos , version ) ; return new Message ( FBUtilities . getLocalAddress ( ) , Verb . READ , bos . toByteArray ( ) , version ) ; } public final QueryPath queryPath ; public final String table ; public final ByteBuffer key ; private boolean isDigestQuery = false ; protected final byte commandType ; protected ReadCommand ( String table , ByteBuffer key , QueryPath queryPath , byte cmdType ) { } public boolean isDigestQuery ( ) { } public void setDigestQuery ( boolean isDigestQuery ) { } public String getColumnFamilyName ( ) { } public abstract ReadCommand copy ( ) { } public abstract Row getRow ( Table table ) throws IOException { } protected AbstractType getComparator ( ) { } }

Fix:
public Message getMessage ( Integer version ) throws IOException {
Buggy code:
public class ValidateCert { private static Logger log = Logger . getLogger ( ValidateCert . class . getName ( ) ) ; public static void main ( String [ ] args ) throws Exception { ContextVS . getInstance ( ) . initTestEnvironment ( Thread . currentThread ( ) . getContextClassLoader ( ) . getResourceAsStream ( "TestsApp.properties" ) , ".//TestDir" ) ; ResponseVS responseVS = HttpHelper . getInstance ( ) . getData ( ActorVS . getServerInfoURL ( "http:////localhost:8080//AccessControl" ) , JSON ) ; if ( ( ResponseVS . SC_OK ) != ( responseVS . getStatusCode ( ) ) ) throw new org . votingsystem . throwable . ExceptionVS ( responseVS . getMessage ( ) ) ; ActorVS actorVS = ( ( org . votingsystem . dto . ActorVSDto ) ( responseVS . getMessage ( org . votingsystem . dto . ActorVSDto . class ) ) ) . getActorVS ( ) ; if ( ! ( actorVS instanceof AccessControlVS ) ) throw new org . votingsystem . throwable . ExceptionVS ( ( "Expected<seq2seq4repair_space>access<seq2seq4repair_space>control<seq2seq4repair_space>but<seq2seq4repair_space>found<seq2seq4repair_space>" + ( actorVS . getType ( ) . toString ( ) ) ) ) ; AccessControlVS accessControlVS = ( ( AccessControlVS ) ( actorVS ) ) ; ContextVS . getInstance ( ) . setAccessControl ( ( ( AccessControlVS ) ( actorVS ) ) ) ; <START_BUG> CertValidationDto certValidationDto = CertValidationDto . validationRequest ( "7553172H" , "aee09e79-e44e-4a86-9a5d-0fd1ee445038" ) ; <END_BUG> SignatureService superUserSignatureService = SignatureService . getUserVSSignatureService ( "07553172H" , USER ) ; UserVS fromUserVS = superUserSignatureService . getUserVS ( ) ; String messageSubject = "ValidateCert<seq2seq4repair_space>test<seq2seq4repair_space>" + ( certValidationDto . getUUID ( ) ) ; SMIMEMessage smimeMessage = superUserSignatureService . getSMIMETimeStamped ( fromUserVS . getNif ( ) , accessControlVS . getName ( ) , org . votingsystem . util . JSON . getMapper ( ) . writeValueAsString ( certValidationDto ) , messageSubject ) ; responseVS = HttpHelper . getInstance ( ) . sendData ( smimeMessage . getBytes ( ) , JSON_SIGNED , accessControlVS . getUserCSRValidationServiceURL ( ) ) ; ValidateCert . log . info ( ( ( ( "statusCode:<seq2seq4repair_space>" + ( responseVS . getStatusCode ( ) ) ) + "<seq2seq4repair_space>-<seq2seq4repair_space>message:<seq2seq4repair_space>" ) + ( responseVS . getMessage ( ) ) ) ) ; System . exit ( 0 ) ; } }

Fix:
CertValidationDto certValidationDto = CertValidationDto . validationRequest ( "7553172H" , "355136056990149" ) ;
Buggy code:
public class CERTRecord extends Record { public static final int PKIX = 1 ; public static final int SPKI = 2 ; public static final int PGP = 3 ; public static final int URL = 253 ; public static final int OID = 254 ; private static CERTRecord member = new CERTRecord ( ) ; private int certType ; private int keyTag ; private int alg ; private byte [ ] cert ; private CERTRecord ( ) { } private CERTRecord ( Name name , int dclass , long ttl ) { } static CERTRecord getMember ( ) { } public CERTRecord ( Name name , int dclass , long ttl , int certType , int keyTag , int alg , byte [ ] cert ) { } Record rrFromWire ( Name name , int type , int dclass , long ttl , int length , DataByteInputStream in ) throws IOException { } Record rdataFromString ( Name name , int dclass , long ttl , Tokenizer st , Name origin ) throws IOException { CERTRecord rec = new CERTRecord ( name , dclass , ttl ) ; rec . certType = st . getUInt16 ( ) ; rec . keyTag = st . getUInt16 ( ) ; rec . alg = st . getUInt8 ( ) ; <START_BUG> rec . cert = base64 . fromString ( remainingStrings ( st ) ) ; <END_BUG> return rec ; } public String rdataToString ( ) { } public int getCertType ( ) { } public int getKeyTag ( ) { } public int getAlgorithm ( ) { } public byte [ ] getCert ( ) { } void rrToWire ( DataByteOutputStream out , Compression c , boolean canonical ) { } }

Fix:
rec . cert = st . getBase64 ( ) ;
Buggy code:
public class ThreadMXBeanUserTimeHandler implements OperationStepHandler , DescriptionProvider { public static final ThreadMXBeanUserTimeHandler INSTANCE = new ThreadMXBeanUserTimeHandler ( ) ; private final ParametersValidator validator = new ParametersValidator ( ) ; private ThreadMXBeanUserTimeHandler ( ) { } @ Override public void execute ( OperationContext context , ModelNode operation ) throws OperationFailedException { validator . validate ( operation ) ; try { long id = operation . require ( ID ) . asLong ( ) ; context . getResult ( ) . set ( ManagementFactory . getThreadMXBean ( ) . getThreadUserTime ( id ) ) ; } catch ( UnsupportedOperationException e ) { throw new OperationFailedException ( new ModelNode ( ) . set ( e . toString ( ) ) ) ; } <START_BUG> context . completeStep ( ) ; <END_BUG> } @ Override public ModelNode getModelDescription ( Locale locale ) { } }

Fix:
context . stepCompleted ( ) ;
Buggy code:
public class GoModelToDiagram implements TreeModelPrereqs { public String toString ( ) { <START_BUG> return Localizer . localize ( "Tree" , "Package->Diagram" ) ; <END_BUG> } public Object getRoot ( ) { } public Object getChild ( Object parent , int index ) { } public int getChildCount ( Object parent ) { } public int getIndexOfChild ( Object parent , Object child ) { } public boolean isLeaf ( Object node ) { } public void valueForPathChanged ( TreePath path , Object newValue ) { } public void addTreeModelListener ( TreeModelListener l ) { } public void removeTreeModelListener ( TreeModelListener l ) { } public Vector getPrereqs ( ) { } public Vector getProvidedTypes ( ) { } }

Fix:
return Localizer . localize ( "Tree" , "misc.package.diagram" ) ;
Buggy code:
public class AjLookupEnvironment extends LookupEnvironment { public EclipseFactory factory = null ; private List pendingTypesToWeave = new ArrayList ( ) ; private Map dangerousInterfaces = new HashMap ( ) ; public AjLookupEnvironment ( ITypeRequestor typeRequestor , CompilerOptions options , ProblemReporter problemReporter , INameEnvironment nameEnvironment ) { } public void completeTypeBindings ( ) { } private void weaveIntertypes ( List typesToProcess , SourceTypeBinding typeToWeave , Collection typeMungers , Collection declareParents ) { } private void doPendingWeaves ( ) { } private void addAdviceLikeDeclares ( ClassScope s ) { } private void addCrosscuttingStructures ( ClassScope s ) { } private void resolvePointcutDeclarations ( ClassScope s ) { } private void buildInterTypeAndPerClause ( ClassScope s ) { } private void weaveInterTypeDeclarations ( CompilationUnitScope unit , Collection typeMungers , Collection declareParents ) { } private void weaveInterTypeDeclarations ( SourceTypeBinding sourceType ) { } private void weaveInterTypeDeclarations ( SourceTypeBinding sourceType , Collection typeMungers , Collection declareParents , boolean skipInners ) { } private void doDeclareParents ( DeclareParents declareParents , SourceTypeBinding sourceType ) { <START_BUG> List newParents = declareParents . findMatchingNewParents ( factory . fromEclipse ( sourceType ) ) ; <END_BUG> if ( ! ( newParents . isEmpty ( ) ) ) { for ( Iterator i = newParents . iterator ( ) ; i . hasNext ( ) ; ) { ResolvedTypeX parent = ( ( ResolvedTypeX ) ( i . next ( ) ) ) ; if ( dangerousInterfaces . containsKey ( parent ) ) { ResolvedTypeX onType = factory . fromEclipse ( sourceType ) ; factory . showMessage ( ERROR , ( ( onType + ":<seq2seq4repair_space>" ) + ( dangerousInterfaces . get ( parent ) ) ) , onType . getSourceLocation ( ) , null ) ; } AsmRelationshipProvider . getDefault ( ) . addDeclareParentsRelationship ( declareParents . getSourceLocation ( ) , factory . fromEclipse ( sourceType ) , newParents ) ; addParent ( sourceType , parent ) ; } } } private void reportDeclareParentsMessage ( WeaveMessage . WeaveMessageKind wmk , SourceTypeBinding sourceType , ResolvedTypeX parent ) { } private String getShortname ( String path ) { } private void addParent ( SourceTypeBinding sourceType , ResolvedTypeX parent ) { } public void warnOnAddedInterface ( ResolvedTypeX type , ResolvedTypeX parent ) { } private List pendingTypesToFinish = new ArrayList ( ) ; boolean inBinaryTypeCreationAndWeaving = false ; boolean processingTheQueue = false ; public BinaryTypeBinding createBinaryTypeFrom ( IBinaryType binaryType , PackageBinding packageBinding , boolean needFieldsAndMethods ) { } }

Fix:
List newParents = declareParents . findMatchingNewParents ( factory . fromEclipse ( sourceType ) , false ) ;
Buggy code:
public class Coverage extends AbstractTask { private String m_exitPrompt = "never" ; private Filters m_filters = new Filters ( ) ; private String m_finalSnapshot = "coverage" ; private String m_recordFromStart = "coverage" ; private boolean m_trackNatives ; private int m_warnLevel = 0 ; private ArrayList m_filesets = new ArrayList ( ) ; private File m_home ; private File m_inputFile ; private File m_javaExe ; private String m_seedName ; private File m_snapshotDir ; private Socket m_socket ; private Triggers m_triggers ; private String m_vm ; private File m_workingDir ; private String m_className ; private Commandline m_args = new Commandline ( ) ; private Path m_classpath = new Path ( ) ; private Commandline m_vmArgs = new Commandline ( ) ; public void setClassname ( String value ) { } public void setExitprompt ( String value ) { } public void setFinalsnapshot ( String value ) { } public void setHome ( File value ) { } public void setInputfile ( File value ) { } public void setJavaexe ( File value ) { } public void setRecordfromstart ( Recordfromstart value ) { } public void setSeedname ( String value ) { } public void setSnapshotdir ( File value ) { } public void setTracknatives ( boolean value ) { } public void setVm ( Javavm value ) { } public void setWarnlevel ( Integer value ) { } public void setWorkingdir ( File value ) { } public void addFileset ( FileSet fs ) { } public void addArg ( final Argument argument ) { } public void setClasspath ( final Path path ) { <START_BUG> m_classpath . addPath ( path ) ; <END_BUG> } public Filters createFilters ( ) { } public void addJvmarg ( final Argument argument ) { } public Socket createSocket ( ) { } public Triggers createTriggers ( ) { } public void execute ( ) throws TaskException { } protected String [ ] getParameters ( ) throws TaskException { } protected void checkOptions ( ) throws TaskException { } protected File createParamFile ( ) throws TaskException { } }

Fix:
m_classpath . add ( path ) ;
Buggy code:
public class UndertowSubsystemTestCase extends AbstractSubsystemBaseTest { public UndertowSubsystemTestCase ( ) { } @ Override protected String getSubsystemXml ( ) throws IOException { } @ Test public void testRuntime ( ) throws Exception { } @ Override protected AdditionalInitialization createAdditionalInitialization ( ) { } private static class RuntimeInitialization extends AdditionalInitialization { protected ControllerInitializer createControllerInitializer ( ) { ControllerInitializer ci = new ControllerInitializer ( ) { @ Override protected void initializeSocketBindingsOperations ( List < ModelNode > ops ) { super . initializeSocketBindingsOperations ( ops ) ; <START_BUG> final String [ ] names = new String [ ] { "ajp" , "http" , "http-2" , "https-non-default" , "https-2" , "ajps" } ; <END_BUG> final int [ ] ports = new int [ ] { 8009 , 8080 , 8081 , 8433 , 8434 , 8010 } ; for ( int i = 0 ; i < ( names . length ) ; i ++ ) { final ModelNode op = new ModelNode ( ) ; op . get ( OP ) . set ( ADD ) ; op . get ( OP_ADDR ) . set ( PathAddress . pathAddress ( PathElement . pathElement ( SOCKET_BINDING_GROUP , SOCKET_BINDING_GROUP_NAME ) , PathElement . pathElement ( SOCKET_BINDING , names [ i ] ) ) . toModelNode ( ) ) ; op . get ( PORT ) . set ( ports [ i ] ) ; ops . add ( op ) ; } } } ; ci . addSocketBinding ( "make-framework-happy" , 59999 ) ; return ci ; } @ Override protected void addExtraServices ( ServiceTarget target ) { } } }

Fix:
final String [ ] names = new String [ ] { "ajp" , "http" , "http-2" , "https" , "https-2" , "ajps" } ;
Buggy code:
public class MultiSCM extends SCM implements Saveable { private DescribableList < SCM , Descriptor < SCM > > scms = new DescribableList < SCM , Descriptor < SCM > > ( this ) ; @ DataBoundConstructor public MultiSCM ( List < SCM > scmList ) throws IOException { } @ Exported public List < SCM > getConfiguredSCMs ( ) { } @ Override public SCMRevisionState calcRevisionsFromBuild ( AbstractBuild < ? , ? > build , Launcher launcher , TaskListener listener ) throws IOException , InterruptedException { } @ Override public void buildEnvVars ( AbstractBuild < ? , ? > build , Map < String , String > env ) { } @ Override protected PollingResult compareRemoteRevisionWith ( AbstractProject < ? , ? > project , Launcher launcher , FilePath workspace , TaskListener listener , SCMRevisionState baseline ) throws IOException , InterruptedException { } @ Override public boolean checkout ( AbstractBuild < ? , ? > build , Launcher launcher , FilePath workspace , BuildListener listener , File changelogFile ) throws IOException , InterruptedException { MultiSCMRevisionState revisionState = new MultiSCMRevisionState ( ) ; build . addAction ( revisionState ) ; HashSet < Object > scmActions = new HashSet < Object > ( ) ; FileOutputStream logStream = new FileOutputStream ( changelogFile ) ; OutputStreamWriter logWriter = new OutputStreamWriter ( logStream ) ; logWriter . write ( String . format ( "<%s>\n" , ROOT_XML_TAG ) ) ; boolean checkoutOK = true ; for ( SCM scm : scms ) { String changeLogPath = ( changelogFile . getPath ( ) ) + ".temp" ; File subChangeLog = new File ( changeLogPath ) ; checkoutOK = ( scm . checkout ( build , launcher , workspace , listener , subChangeLog ) ) && checkoutOK ; List < Action > actions = build . getActions ( ) ; for ( Action a : actions ) { if ( ( ! ( scmActions . contains ( a ) ) ) && ( a instanceof SCMRevisionState ) ) { scmActions . add ( a ) ; <START_BUG> revisionState . add ( scm . getClass ( ) . getName ( ) , ( ( SCMRevisionState ) ( a ) ) ) ; <END_BUG> } } String subLogText = FileUtils . readFileToString ( subChangeLog ) ; logWriter . write ( String . format ( "<%s<seq2seq4repair_space>scm=\"%s\">\n<![CDATA[%s]]>\n<//%s>\n" , SUB_LOG_TAG , scm . getType ( ) , subLogText , SUB_LOG_TAG ) ) ; subChangeLog . delete ( ) ; } logWriter . write ( String . format ( "<//%s>\n" , ROOT_XML_TAG ) ) ; logWriter . close ( ) ; return checkoutOK ; } @ Override public FilePath [ ] getModuleRoots ( FilePath workspace , AbstractBuild build ) { } @ Override public ChangeLogParser createChangeLogParser ( ) { } public void save ( ) throws IOException { } @ Extension public static final class DescriptorImpl extends SCMDescriptor < MultiSCM > { public DescriptorImpl ( ) { } public List < SCMDescriptor < ? > > getApplicableSCMs ( AbstractProject < ? , ? > project ) { } public String getDisplayName ( ) { } @ Override public boolean configure ( StaplerRequest req , JSONObject formData ) throws FormException { } @ Override public SCM newInstance ( StaplerRequest req , JSONObject formData ) throws FormException { } } }

Fix:
revisionState . add ( scm , workspace , build , ( ( SCMRevisionState ) ( a ) ) ) ;
Buggy code:
public class SmsPresentationModelFactory extends DefaultPresentationModelFactory { private RealtimeService _realtimeService ; private ConfigurationService _configurationService ; public SmsPresentationModelFactory ( RealtimeService realtimeService , ConfigurationService configurationService ) { } @ Override public RouteDestinationItem getRouteDestinationModelForRoute ( StopGroupBean group , RouteBean route , List < StopResult > stops ) { } @ Override public RouteDestinationItem getRouteDestinationModelForStop ( StopGroupBean group , RouteBean route , StopBean stop ) { SmsRouteDestinationItem item = new SmsRouteDestinationItem ( group , null ) ; List < NaturalLanguageStringBean > serviceAlertSummaries = new ArrayList < NaturalLanguageStringBean > ( ) ; <START_BUG> List < ServiceAlertBean > serviceAlertBeans = _realtimeService . getServiceAlertsForStop ( stop . getId ( ) ) ; <END_BUG> for ( ServiceAlertBean serviceAlertBean : serviceAlertBeans ) { for ( NaturalLanguageStringBean summary : serviceAlertBean . getSummaries ( ) ) { serviceAlertSummaries . add ( summary ) ; } } item . setServiceAlerts ( serviceAlertSummaries ) ; List < MonitoredStopVisitStructure > visits = _realtimeService . getMonitoredStopVisitsForStop ( stop . getId ( ) , 0 ) ; List < String > distanceAwayStrings = new ArrayList < String > ( ) ; for ( MonitoredStopVisitStructure visit : visits ) { String routeId = visit . getMonitoredVehicleJourney ( ) . getLineRef ( ) . getValue ( ) ; if ( ! ( route . getId ( ) . equals ( routeId ) ) ) continue ; MonitoredCallStructure monitoredCall = visit . getMonitoredVehicleJourney ( ) . getMonitoredCall ( ) ; if ( monitoredCall == null ) continue ; Long thisLastUpdateTime = visit . getRecordedAtTime ( ) . getTime ( ) ; distanceAwayStrings . add ( getPresentableDistance ( visit . getMonitoredVehicleJourney ( ) , thisLastUpdateTime ) ) ; } item . setDistanceAwayStrings ( distanceAwayStrings ) ; return item ; } private String getPresentableDistance ( MonitoredVehicleJourneyStructure journey , long updateTime ) { } No newline ; at end ; of file ; }

Fix:
List < ServiceAlertBean > serviceAlertBeans = _realtimeService . getServiceAlertsForRoute ( route . getId ( ) ) ;
Buggy code:
class JarPackageFragment extends PackageFragment implements SuffixConstants { protected JarPackageFragment ( PackageFragmentRoot root , String name ) { } protected boolean computeChildren ( OpenableElementInfo info ) { JarPackageFragmentInfo jInfo = ( ( JarPackageFragmentInfo ) ( info ) ) ; if ( ( jInfo . entryNames ) != null ) { ArrayList vChildren = new ArrayList ( ) ; for ( Iterator iter = jInfo . entryNames . iterator ( ) ; iter . hasNext ( ) ; ) { String child = ( ( String ) ( iter . next ( ) ) ) ; IClassFile classFile = getClassFile ( child ) ; vChildren . add ( classFile ) ; } IJavaElement [ ] children = new IJavaElement [ vChildren . size ( ) ] ; vChildren . toArray ( children ) ; info . setChildren ( children ) ; } else { <START_BUG> info . setChildren ( NO_CHILDREN ) ; <END_BUG> } return true ; } void computeNonJavaResources ( String [ ] resNames , JarPackageFragmentInfo info , String zipName ) { } public boolean containsJavaResources ( ) throws JavaModelException { } public ICompilationUnit createCompilationUnit ( String name , String contents , boolean force , IProgressMonitor monitor ) throws JavaModelException { } protected Object createElementInfo ( ) { } protected void generateInfos ( Object info , HashMap newElements , IProgressMonitor pm ) throws JavaModelException { } public IClassFile [ ] getClassFiles ( ) throws JavaModelException { } public ICompilationUnit [ ] getCompilationUnits ( ) throws JavaModelException { } public IResource getCorrespondingResource ( ) throws JavaModelException { } public Object [ ] getNonJavaResources ( ) throws JavaModelException { } public boolean isReadOnly ( ) { } protected Object [ ] storedNonJavaResources ( ) throws JavaModelException { } }

Fix:
info . setChildren ( JavaElement . NO_ELEMENTS ) ;
Buggy code:
public class CLI { private static final Logger logger = LoggerFactory . getLogger ( CLI . class ) ; JCommander jc ; Options options ; Offline offline ; Online online ; Methods methods ; Requirements requirements ; public static void main ( String [ ] args ) { } private void run ( String [ ] args ) { } private void setLogLevel ( Options options ) { } private void RunCommandRequirements ( ) throws Exception { } private void RunCommandMethods ( ) throws Exception { } private void RunCommandOnline ( ) throws Exception { } private void RunCommandOffline ( ) throws Exception { } private List < Context > getContextsWithPathGenerators ( Iterator itr ) throws Exception { List < Context > executionContexts = new ArrayList < > ( ) ; boolean triggerOnce = true ; while ( itr . hasNext ( ) ) { String modelFileName = ( ( String ) ( itr . next ( ) ) ) ; ContextFactory factory = ContextFactoryScanner . get ( Paths . get ( modelFileName ) ) ; Context context = null ; try { context = factory . create ( Paths . get ( modelFileName ) ) ; } catch ( DslException e ) { System . err . println ( ( ( ( ( "When<seq2seq4repair_space>parsing<seq2seq4repair_space>model:<seq2seq4repair_space>'" + modelFileName ) + "'<seq2seq4repair_space>" ) + ( e . getMessage ( ) ) ) + ( System . lineSeparator ( ) ) ) ) ; throw new Exception ( "Model<seq2seq4repair_space>syntax<seq2seq4repair_space>error" ) ; } context . setPathGenerator ( GeneratorFactory . parse ( ( ( String ) ( itr . next ( ) ) ) ) ) ; if ( ( triggerOnce && ( ( offline ) != null ) ) && ( ! ( offline . startElement . isEmpty ( ) ) ) ) { triggerOnce = false ; List < Element > elements = context . getModel ( ) . findElements ( offline . startElement ) ; if ( elements == null ) { throw new ParameterException ( ( "--start-element<seq2seq4repair_space>Did<seq2seq4repair_space>not<seq2seq4repair_space>find<seq2seq4repair_space>matching<seq2seq4repair_space>element<seq2seq4repair_space>in<seq2seq4repair_space>the<seq2seq4repair_space>model:<seq2seq4repair_space>" + modelFileName ) ) ; } else if ( ( elements . size ( ) ) > 1 ) { throw new ParameterException ( ( "--start-element<seq2seq4repair_space>There<seq2seq4repair_space>are<seq2seq4repair_space>more<seq2seq4repair_space>than<seq2seq4repair_space>one<seq2seq4repair_space>matching<seq2seq4repair_space>element<seq2seq4repair_space>in<seq2seq4repair_space>the<seq2seq4repair_space>model:<seq2seq4repair_space>" + modelFileName ) ) ; } <START_BUG> context . setCurrentElement ( elements . get ( 0 ) ) ; <END_BUG> } executionContexts . add ( context ) ; } return executionContexts ; } private List < Context > getContexts ( Iterator itr ) throws Exception { } private void verifyModel ( RuntimeModel model ) { } private String printVersionInformation ( ) { } private String getVersionString ( ) { } private String generateListOfValidGenerators ( ) { } private String generateListOfValidStopConditions ( ) { } private boolean helpNeeded ( String module , boolean condition , String message ) { } }

Fix:
context . setNextElement ( elements . get ( 0 ) ) ;
Buggy code:
final class DocumentWriter { private Analyzer analyzer ; private Directory directory ; private Similarity similarity ; private FieldInfos fieldInfos ; private int maxFieldLength ; DocumentWriter ( Directory directory , Analyzer analyzer , Similarity similarity , int maxFieldLength ) { } final void addDocument ( String segment , Document doc ) throws IOException { } private final Hashtable postingTable = new Hashtable ( ) ; private int [ ] fieldLengths ; private int [ ] fieldPositions ; private float [ ] fieldBoosts ; private final void invertDocument ( Document doc ) throws IOException { } private final Term termBuffer = new Term ( "" , "" ) ; private final void addPosition ( String field , String text , int position ) { } private final Posting [ ] sortPostingTable ( ) { } private static final void quickSort ( Posting [ ] postings , int lo , int hi ) { } private final void writePostings ( Posting [ ] postings , String segment ) throws IOException { } private final void writeNorms ( Document doc , String segment ) throws IOException { for ( int n = 0 ; n < ( fieldInfos . size ( ) ) ; n ++ ) { FieldInfo fi = fieldInfos . fieldInfo ( n ) ; if ( fi . isIndexed ) { float norm = ( fieldBoosts [ n ] ) * ( similarity . lengthNorm ( fi . name , fieldLengths [ n ] ) ) ; OutputStream norms = directory . createFile ( ( ( segment + ".f" ) + n ) ) ; try { <START_BUG> norms . writeByte ( similarity . encodeNorm ( norm ) ) ; <END_BUG> } finally { norms . close ( ) ; } } } } }

Fix:
norms . writeByte ( Similarity . encodeNorm ( norm ) ) ;
Buggy code:
public class MusicActivity extends Activity { Button add_bt ; ListView playlist_list ; SimpleAdapter playListItemAdapter ; ArrayList < HashMap < String , Object > > playListItem ; @ Override public void onCreate ( Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; <START_BUG> setContentView ( main ) ; <END_BUG> setTitle ( "Playlists" ) ; add_bt = ( ( Button ) ( findViewById ( addPlaylist ) ) ) ; add_bt . setTextSize ( 18 ) ; add_bt . setOnClickListener ( new Button . OnClickListener ( ) { @ Override public void onClick ( View v ) { Intent intent = new Intent ( ) ; intent . setClass ( MusicActivity . this , MusicPlaylistActivity . class ) ; startActivity ( intent ) ; } } ) ; playlist_list = ( ( ListView ) ( findViewById ( R . id . playlist_list ) ) ) ; playListItem = new ArrayList < HashMap < String , Object > > ( ) ; playListItemAdapter = new SimpleAdapter ( this , playListItem , layout . playlist_item , new String [ ] { "playlistName" } , new int [ ] { id . playlistName } ) ; playlist_list . setAdapter ( playListItemAdapter ) ; } }

Fix:
setContentView ( music ) ;
Buggy code:
public class CovReport extends Task { private File home = null ; private String format = null ; private File tofile = null ; private String type = null ; private Integer percent = null ; private String filters = null ; private File snapshot = null ; private Path sourcePath = null ; private boolean includeSource = true ; private Path coveragePath = null ; private CovReport . Reference reference = null ; public CovReport ( ) { } public void setFilters ( String values ) { } public void setFormat ( CovReport . ReportFormat value ) { } public void setHome ( File value ) { } public void setIncludesource ( boolean value ) { } public void setPercent ( Integer value ) { } public void setSnapshot ( File value ) { } public void setTofile ( File value ) { } public void setType ( CovReport . ReportType value ) { } public Path createCoveragepath ( ) { } public CovReport . Reference createReference ( ) { } public Path createSourcepath ( ) { } public void execute ( ) throws TaskException { checkOptions ( ) ; try { Commandline cmdl = new Commandline ( ) ; cmdl . setExecutable ( new File ( home , "jpcovreport" ) . getAbsolutePath ( ) ) ; String [ ] params = getParameters ( ) ; for ( int i = 0 ; i < ( params . length ) ; i ++ ) { <START_BUG> cmdl . createArgument ( ) . setValue ( params [ i ] ) ; <END_BUG> } final Execute2 exe = new Execute2 ( ) ; setupLogger ( exe ) ; getLogger ( ) . debug ( cmdl . toString ( ) ) ; exe . setCommandline ( cmdl . getCommandline ( ) ) ; int exitValue = exe . execute ( ) ; if ( exitValue != 0 ) { throw new TaskException ( ( ( "JProbe<seq2seq4repair_space>Coverage<seq2seq4repair_space>Report<seq2seq4repair_space>failed<seq2seq4repair_space>(" + exitValue ) + ")" ) ) ; } getLogger ( ) . debug ( ( "coveragePath:<seq2seq4repair_space>" + ( coveragePath ) ) ) ; getLogger ( ) . debug ( ( "format:<seq2seq4repair_space>" + ( format ) ) ) ; if ( ( ( reference ) != null ) && ( "xml" . equals ( format ) ) ) { reference . createEnhancedXMLReport ( ) ; } } catch ( IOException e ) { throw new TaskException ( "Failed<seq2seq4repair_space>to<seq2seq4repair_space>execute<seq2seq4repair_space>JProbe<seq2seq4repair_space>Coverage<seq2seq4repair_space>Report." , e ) ; } } protected String [ ] getParameters ( ) throws TaskException { } protected void checkOptions ( ) throws TaskException { } public static class ReportFormat extends EnumeratedAttribute { public String [ ] getValues ( ) { } } public static class ReportType extends EnumeratedAttribute { public String [ ] getValues ( ) { } } public class Reference { protected Path classPath ; protected ReportFilters filters ; public Path createClasspath ( ) { } public ReportFilters createFilters ( ) { } protected void createEnhancedXMLReport ( ) throws TaskException { } } }

Fix:
cmdl . addArgument ( params [ i ] ) ;
Buggy code:
public class ClientApplication { public static final int DEFAULT_WAITTIME = 40000 ; public static final int DEFAULT_TIMEOUT = TCPServerSOContainer . DEFAULT_KEEPALIVE ; public static final String CONNECTION_NAME = Client . class . getName ( ) ; public static final String CONNECTION_CLASS = Creator . class . getName ( ) ; public static final String CONTAINER_FACTORY_NAME = ContainerInstantiator . class . getName ( ) ; public static final String CONTAINER_FACTORY_CLASS = ClientApplication . CONTAINER_FACTORY_NAME ; public static final String COMPOSENT_CONTAINER_NAME = ContainerInstantiator . class . getName ( ) ; static int clientCount = 1 ; ISharedObjectContainer [ ] sm = new ISharedObjectContainer [ ClientApplication . clientCount ] ; String serverName = null ; String [ ] sharedObjectClassNames = null ; ID [ ] sharedObjects = null ; static SharedObjectContainerDescription contd = null ; static Random aRan = new Random ( ) ; public ClientApplication ( ) { } public void init ( String [ ] args ) throws Exception { } protected ISharedObjectContainer makeClient ( ) throws Exception { } public void joinGroup ( ID server ) throws Exception { } public void leaveGroup ( ) { } public void createStages ( ) throws Exception { if ( ( sharedObjectClassNames ) != null ) { for ( int j = 0 ; j < ( ClientApplication . clientCount ) ; j ++ ) { ISharedObjectContainer scg = sm [ j ] ; for ( int i = 0 ; i < ( sharedObjectClassNames . length ) ; i ++ ) { System . out . println ( ( ( ( "Creating<seq2seq4repair_space>sharedObject:<seq2seq4repair_space>" + ( sharedObjectClassNames [ i ] ) ) + "<seq2seq4repair_space>for<seq2seq4repair_space>client<seq2seq4repair_space>" ) + ( scg . getConfig ( ) . getID ( ) . getName ( ) ) ) ) ; SharedObjectDescription sd = new SharedObjectDescription ( IDFactory . makeStringID ( String . valueOf ( ClientApplication . aRan . nextInt ( ) ) ) , sharedObjectClassNames [ i ] ) ; <START_BUG> scg . getSharedObjectManager ( ) . createSharedObject ( sd , null ) ; <END_BUG> System . out . println ( ( "Created<seq2seq4repair_space>sharedObject<seq2seq4repair_space>for<seq2seq4repair_space>client<seq2seq4repair_space>" + ( scg . getConfig ( ) . getID ( ) . getName ( ) ) ) ) ; } } } } public void removeStages ( ) throws Exception { } public static void main ( String [ ] args ) throws Exception { } }

Fix:
scg . getSharedObjectManager ( ) . createSharedObject ( sd ) ;
Buggy code:
public class SoftConstraints { Slot [ ] slotArray ; ArrayList < Preference > prefArray ; ArrayList < PairedCourseClass > pairArray ; String [ ] index ; public SoftConstraints ( String [ ] index , Slot [ ] slotArray , ArrayList < Preference > prefArray , ArrayList < PairedCourseClass > pairArray ) { } public int getMinFilled ( int [ ] time ) { } public int getPref ( int [ ] time ) { } public int getPair ( int [ ] time ) { } public int getSecDiff ( int [ ] time ) { int penalty = 0 ; int secNum ; int count = 0 ; String course ; String [ ] checked = new String [ time [ 0 ] ] ; for ( int x = 0 ; x < ( time [ 0 ] ) ; x ++ ) { if ( ( x != 0 ) && ( x != 1 ) ) { if ( ( index [ x ] . length ( ) ) > 14 ) { if ( ! ( Arrays . asList ( checked ) . contains ( index [ x ] . substring ( 0 , 7 ) ) ) ) { checked [ count ] = index [ x ] . substring ( 0 , 7 ) ; count ++ ; course = index [ x ] . substring ( 0 , 7 ) ; secNum = Integer . parseInt ( index [ x ] . substring ( 13 , 14 ) ) ; for ( int y = x + 1 ; y < ( time [ 0 ] ) ; y ++ ) { if ( course . equals ( index [ y ] . substring ( 0 , 7 ) ) ) { <START_BUG> if ( secNum != ( Integer . parseInt ( index [ x ] . substring ( 13 , 14 ) ) ) ) { <END_BUG> if ( ( time [ x ] ) == ( time [ y ] ) ) { penalty ++ ; } } } } } } } } return penalty ; } }

Fix:
if ( secNum == ( Integer . parseInt ( index [ x ] . substring ( 13 , 14 ) ) ) ) {
Buggy code:
public class BeaverRobot extends Robot { private MapLocation buildLocation = null ; public BeaverRobot ( RobotController rc ) { } @ Override public String name ( ) { } @ Override public void update ( ) { } @ Override public void run ( ) throws Exception { } private boolean mayBuildAt ( MapLocation location ) { } private void updateBuildLocation ( ) { <START_BUG> Direction direction = Util . rndDirection ( ) ; <END_BUG> int testedTiles = 0 ; int maxTestedTiles = 100 ; for ( int radius = 1 ; ; radius ++ ) { for ( int quarterPis = 0 ; quarterPis < 7 ; quarterPis ++ ) { MapLocation candidate = location . add ( direction , radius ) ; if ( mayBuildAt ( candidate ) ) { buildLocation = candidate ; return ; } direction = direction . rotateRight ( ) ; testedTiles ++ ; if ( testedTiles >= maxTestedTiles ) { return ; } } } } private boolean tryToBuildAtBuildLocation ( ) throws GameActionException { } private void moveTowardsBuildingLocation ( ) throws GameActionException { } private void moveFromCurrentTile ( ) throws GameActionException { } }

Fix:
Direction direction = Util . getRandomDirection ( ) ;
Buggy code:
public class MainActivity extends ActionBarActivity { private ListView listView ; private TextView emptyListText ; private WebsitesListAdapter listViewAdapter ; private Toolbar toolbar ; private Cursor websitesCursor ; private boolean search_toggle ; @ Override public void onCreate ( Bundle savedInstanceState ) { } @ Override protected void onNewIntent ( Intent intent ) { } @ Override public boolean onCreateOptionsMenu ( Menu menu ) { MenuInflater inflater = getMenuInflater ( ) ; inflater . inflate ( menu_main , menu ) ; SearchManager manager = ( ( SearchManager ) ( getSystemService ( SEARCH_SERVICE ) ) ) ; MenuItem searchItem = menu . findItem ( action_search ) ; SearchView search = ( ( SearchView ) ( MenuItemCompat . getActionView ( searchItem ) ) ) ; search . setSearchableInfo ( manager . getSearchableInfo ( getComponentName ( ) ) ) ; search . setOnQueryTextListener ( new SearchView . OnQueryTextListener ( ) { @ Override public boolean onQueryTextSubmit ( String s ) { return true ; } @ Override public boolean onQueryTextChange ( String query ) { if ( ( query != null ) && ( ( query . length ( ) ) > 1 ) ) { <START_BUG> websitesCursor = Websites . fetchWebsitesByTitle ( query ) ; <END_BUG> } else { websitesCursor = Websites . fetchAddedWebsites ( ) ; } if ( ( websitesCursor . getCount ( ) ) < 1 ) { emptyListText . setVisibility ( VISIBLE ) ; } else { emptyListText . setVisibility ( GONE ) ; } refreshListView ( ) ; return true ; } } ) ; return super . onCreateOptionsMenu ( menu ) ; } @ Override protected void onResume ( ) { } private void addDefaultUrls ( ) { } private void websiteOnClick ( View view ) { } private void goToConversationActivity ( String urlTitle ) { } private void refreshListView ( ) { } }

Fix:
websitesCursor = Websites . SearchWebsitesByTitle ( query ) ;
Buggy code:
public class JSR223PreProcessor extends JSR223TestElement implements Cloneable , PreProcessor , TestBean { private static final Logger log = LoggingManager . getLoggerForClass ( ) ; private static final long serialVersionUID = 232L ; public void process ( ) { try { ScriptEngine scriptEngine = getScriptEngine ( ) ; <START_BUG> processFileOrScript ( scriptEngine ) ; <END_BUG> } catch ( ScriptException e ) { JSR223PreProcessor . log . warn ( "Problem<seq2seq4repair_space>in<seq2seq4repair_space>JSR223<seq2seq4repair_space>script<seq2seq4repair_space>" , e ) ; } catch ( IOException e ) { JSR223PreProcessor . log . warn ( "Problem<seq2seq4repair_space>in<seq2seq4repair_space>JSR223<seq2seq4repair_space>script<seq2seq4repair_space>" , e ) ; } } }

Fix:
processFileOrScript ( scriptEngine , null ) ;
Buggy code:
public class PertDependency extends LineConnection { private static final long serialVersionUID = - 7959500008698525009L ; private int pertDependencySerializedDataVersion = 1 ; public PertDependency ( ) { } public void handleConnect ( Figure start , Figure end ) { PertFigure source = ( ( PertFigure ) ( start ) ) ; PertFigure target = ( ( PertFigure ) ( end ) ) ; if ( source . hasCycle ( target ) ) { <START_BUG> setAttribute ( "FrameColor" , Color . red ) ; <END_BUG> } else { target . addPreTask ( source ) ; source . addPostTask ( target ) ; source . notifyPostTasks ( ) ; } } public void handleDisconnect ( Figure start , Figure end ) { } public boolean canConnect ( Figure start , Figure end ) { } public Vector handles ( ) { } }

Fix:
setAttribute ( FRAME_COLOR . getName ( ) , Color . red ) ;