nus-yam/ex-repair huggingface dataset:
Buggy code:
public class Application extends Controller { static final Form < Kunde > userForm = Form . form ( Kunde . class ) ; public static Result index ( ) { } public static Result agb ( ) { } public static Result artikel ( String ausgewaehltesProdukt ) { } public static Result datenschutz ( ) { } public static Result holzAussen ( ) { } public static Result impressum ( ) { } public static Result holzInnen ( ) { } public static Result brennholz ( ) { } public static Result kontakt ( ) { } public static Result konto ( ) { } public static Result bestellungAbschliessen ( ) { } public static WebSocket < JsonNode > socket ( ) { } public static WebSocket < String > socketInWarenkorb ( ) { } public static Result submitKundendaten ( ) { } public static Result mainPage ( ) { } public static Result neuheiten ( ) { } public static Result registrierung ( ) { } public static Result logout ( ) { } public static Result autovervollstaendigungSuche ( String produkt ) { } public static Result neuerUser ( ) { } public static Result suche ( String produkt ) { } public static Result warenkorb ( ) { } public static Result inWarenkorb ( String ausgewaehltesProdukt , String menge ) { String username = session ( "User1" ) ; if ( username != null ) { <START_BUG> sharedInstance . setWarenkorb ( ausgewaehltesProdukt , menge ) ; <END_BUG> return ok ( warenkorb . render ( username , sharedInstance . getWarenkorb ( session ( "UserKundennummer" ) ) ) ) ; } else { return redirect ( "//login" ) ; } } public static Result login ( ) { } public static Result loginError ( ) { } public static Result submitLogin ( ) { } }

Fix:
sharedInstance . setWarenkorb ( ausgewaehltesProdukt , menge , session ( "UserKundennummer" ) ) ;
Buggy code:
public class NewIndexPanel extends AbstractIndexPanel { private static final long serialVersionUID = - 3516011638125862137L ; private final Component relativeComponent ; private Schema schema ; private IndexDescriptor newIndex ; public NewIndexPanel ( final String backendName , final Component relativeComponent ) { } @ Override public LocalizableMessage getTitle ( ) { } @ Override public Component getPreferredFocusComponent ( ) { } public void update ( final BackendDescriptor backend ) { } @ Override public void configurationChanged ( final ConfigurationChangeEvent ev ) { } private boolean indexExists ( BackendDescriptor backend , String indexName ) { } private BackendDescriptor getBackendByID ( String backendID ) { } @ Override public void okClicked ( ) { } private boolean isSomethingSelected ( ) { } private String getAttributeName ( ) { } private void createLayout ( ) { } private class NewIndexTask extends Task { private final Set < String > backendSet = new HashSet < > ( ) ; private final String attributeName ; private final int entryLimitValue ; private final SortedSet < IndexTypeDescriptor > indexTypes ; public NewIndexTask ( final ControlPanelInfo info , final ProgressDialog dlg ) { } @ Override public Type getType ( ) { } @ Override public Set < String > getBackends ( ) { } @ Override public LocalizableMessage getTaskDescription ( ) { } @ Override public boolean canLaunch ( final Task taskToBeLaunched , final Collection < LocalizableMessage > incompatibilityReasons ) { } private void updateConfiguration ( ) throws OpenDsException { } private void createIndexOnline ( final InitialLdapContext ctx ) throws OpenDsException { } private void createBackendIndexOnline ( final PluggableBackendCfgClient backend ) throws OpenDsException { } @ RemoveOnceLocalDBBackendIsPluggable private void createLocalDBIndexOnline ( final LocalDBBackendCfgClient backend ) throws OpenDsException { final List < PropertyException > exceptions = new ArrayList < > ( ) ; <START_BUG> final LocalDBIndexCfgClient index = backend . createLocalDBIndex ( LocalDBIndexCfgDefn . getInstance ( ) , backendName . getText ( ) , exceptions ) ; <END_BUG> index . setIndexType ( IndexTypeDescriptor . toLocalDBIndexTypes ( indexTypes ) ) ; if ( ( entryLimitValue ) != ( index . getIndexEntryLimit ( ) ) ) { index . setIndexEntryLimit ( entryLimitValue ) ; } index . commit ( ) ; Utilities . throwFirstFrom ( exceptions ) ; } @ Override protected String getCommandLinePath ( ) { } @ Override protected List < String > getCommandLineArguments ( ) { } private String getConfigCommandLineName ( ) { } @ Override public void runTask ( ) { } @ Override public void postOperation ( ) { } private ArrayList < String > getDSConfigCommandLineArguments ( ) { } } }

Fix:
final LocalDBIndexCfgClient index = backend . createLocalDBIndex ( LocalDBIndexCfgDefn . getInstance ( ) , attributeName , exceptions ) ;
Buggy code:
public class SendMessageDialog extends JDialog implements ActionListener , IWorkerStatusChangeListener { private JProgressBar progressBar ; private JButton cancelButton ; private JLabel label ; private IWorkerStatusController worker ; public SendMessageDialog ( IWorkerStatusController worker ) throws HeadlessException { } protected void initComponents ( ) { label = new JLabel ( "Sending<seq2seq4repair_space>message..." ) ; <START_BUG> label . setIcon ( ImageLoader . getSmallImageIcon ( "sending.png" ) ) ; <END_BUG> progressBar = new JProgressBar ( ) ; progressBar . setPreferredSize ( new Dimension ( 300 , 20 ) ) ; cancelButton = new ButtonWithMnemonic ( "&Cancel" ) ; cancelButton . setActionCommand ( "CANCEL" ) ; cancelButton . addActionListener ( this ) ; } protected void layoutComponents ( ) { } public void workerStatusChanged ( WorkerStatusChangedEvent e ) { } public void actionPerformed ( ActionEvent arg0 ) { } public void setWorker ( IWorkerStatusController worker ) { } public void setVisible ( boolean b ) { } }

Fix:
label . setIcon ( ImageLoader . getIcon ( "send.png" ) ) ;
Buggy code:
public class TestGenerator { private PrintWriter graphOut ; private PrintWriter solutionOut ; private Map < GraphConstant , Integer > graphProperties ; private Graph graph ; private List < Integer > solution ; public TestGenerator ( Map < GraphConstant , Integer > graphProperties , String inputFilename , String solutionFilename ) throws IOException { } public static void main ( String [ ] args ) throws Exception { } private void printSolution ( ) { } private void printGraph ( ) { } private static Map < GraphConstant , Integer > generateGraphProperties ( String [ ] args ) { } private static Map < GraphConstant , Integer > loadConfiguration ( ) { Map < GraphConstant , Integer > graphConfig = new HashMap < GraphConstant , Integer > ( ) ; graphConfig . put ( GRAPH_MIN_EDGE , ( - 1000 ) ) ; graphConfig . put ( GRAPH_MAX_EDGE , 1000 ) ; <START_BUG> int nodeNumber = 20 ; <END_BUG> graphConfig . put ( GRAPH_NODE_NUMBER , nodeNumber ) ; graphConfig . put ( GRAPH_MAX_NODE_DEGREE , ( nodeNumber - 1 ) ) ; return graphConfig ; } private static Map < GraphConstant , Integer > loadDefaultConfiguration ( ) { } public void createGraph ( ) throws Exception { } private void generateSolution ( int nodeNumber , boolean isZeroBasedIndex ) { } }

Fix:
int nodeNumber = 21 ;
Buggy code:
public class XpandFacade { private XpandExecutionContext ctx = null ; @ Deprecated public XpandFacade ( final XpandExecutionContext ctx ) { } public void evaluate ( final String definitionName , final Object targetObject , Object ... params ) { } private String getParamString ( final Type [ ] paramTypes ) { } public AnalysationIssue [ ] analyze ( final String templateName ) { } <START_BUG> public static XpandFacade create ( XpandExecutionContextImpl execCtx ) { <END_BUG> return new XpandFacade ( execCtx ) ; } }

Fix:
public static XpandFacade create ( XpandExecutionContext execCtx ) {
Buggy code:
@ RunAsClient @ RunWith ( Arquillian . class ) public class DeploymentTestCase { private static final long TIMEOUT = 10000 ; private static final String WAR_JBOSS_FILE = "jboss-web.xml" ; private static final String JAR_JBOSS_FILE = "jboss.xml" ; private static final String EAR_JBOSS_FILE = "jboss-app.xml" ; @ ArquillianResource private ManagementClient managementClient ; @ Deployment public static Archive < ? > fakeDeployment ( ) { } @ Test public void testDeployUndeployEAR ( ) throws Exception { } private DeploymentManager getDeploymentManager ( ) throws Exception { <START_BUG> String uri = ( ( ( ( DeploymentManagerImpl . DEPLOYER_URI ) + "?targetType=as7" ) + ( managementClient . getMgmtAddress ( ) ) ) + "&serverPort=" ) + ( managementClient . getMgmtPort ( ) ) ; <END_BUG> DeploymentFactoryImpl . register ( ) ; DeploymentFactoryManager dfManager = DeploymentFactoryManager . getInstance ( ) ; DeploymentFactory [ ] factories = dfManager . getDeploymentFactories ( ) ; DeploymentManager deploymentManager = factories [ 0 ] . getDeploymentManager ( uri , USERNAME , PASSWORD ) ; return deploymentManager ; } private ProgressObject jsr88Deploy ( DeploymentManager manager , Archive < ? > archive ) throws Exception { } private ProgressObject jsr88Undeploy ( DeploymentManager manager , TargetModuleID [ ] resultTargetModuleIDs ) throws Exception { } private StateType awaitCompletion ( ProgressObject progress , long timeout ) throws InterruptedException { } private void assertServletAccess ( String context ) throws IOException { } private InputStream createDeploymentPlan ( String deploymentFile ) throws Exception { } private Archive < ? > getWebArchive ( ) { } private Archive < ? > getEjbArchive ( ) { } private Archive < ? > getEarArchive ( ) { } }

Fix:
String uri = ( ( ( ( DeploymentManagerImpl . DEPLOYER_URI ) + "?targetType=as7&serverHost=" ) + ( managementClient . getMgmtAddress ( ) ) ) + "&serverPort=" ) + ( managementClient . getMgmtPort ( ) ) ;
Buggy code:
public class MainActivity extends AbstractBaseActionBarActivity { private MenuItem toolBarClaimMenuItem ; private MenuItem toolBarTaskMenuItem ; private int newTasksItemCount ; private int newClaimsItemCount ; private LoaderManager . LoaderCallbacks < Cursor > newItemLoaderCallback ; @ Override protected void onCreate ( Bundle savedInstanceState ) { } private void initCallBackLoader ( ) { } @ Override public boolean onCreateOptionsMenu ( Menu menu ) { getMenuInflater ( ) . inflate ( action_bar_menu , menu ) ; toolBarClaimMenuItem = menu . findItem ( ab_claims_item ) ; toolBarTaskMenuItem = menu . findItem ( ab_tasks_item ) ; ( ( MyActionView ) ( toolBarClaimMenuItem . getActionView ( ) ) ) . setImage ( getResources ( ) . getDrawable ( menu_claims_logo ) ) ; <START_BUG> ( ( MyActionView ) ( toolBarTaskMenuItem . getActionView ( ) ) ) . setImage ( getResources ( ) . getDrawable ( menu_tasks_logo ) ) ; <END_BUG> if ( ( newTasksItemCount ) > 0 ) { showNewItemCount ( toolBarTaskMenuItem , newTasksItemCount ) ; } else { hideMenuItem ( toolBarTaskMenuItem ) ; } if ( ( newClaimsItemCount ) > 0 ) { showNewItemCount ( toolBarClaimMenuItem , newClaimsItemCount ) ; } else { hideMenuItem ( toolBarClaimMenuItem ) ; } return true ; } private void showNewItemCount ( MenuItem item , int count ) { } private void hideMenuItem ( MenuItem item ) { } @ Override protected void onStart ( ) { } @ Override protected void onResume ( ) { } @ Override protected void onDestroy ( ) { } @ Override public void onBackPressed ( ) { } @ Override void initUI ( ) { } @ Override int getLayoutId ( ) { } @ Override protected int getDrawerLayoutId ( ) { } @ Override int getActionBarLayoutId ( ) { } @ Override void initNavigationItemSelectListener ( ) { } @ Override public boolean onOptionsItemSelected ( MenuItem item ) { } private void runStartRequests ( ) { } }

Fix:
( ( MyActionView ) ( toolBarTaskMenuItem . getActionView ( ) ) ) . setImage ( getResources ( ) . getDrawable ( menu_claims_logo ) ) ;
Buggy code:
public class ProducerLinks implements Runnable { static final Logger APK_LOG = Logger . getLogger ( "googlePlayLogger" ) ; private MyLinkedBlockingQueue < ApkFile > goldenLinks ; private int linksFromCategory = - 1 ; public ProducerLinks ( MyLinkedBlockingQueue < ApkFile > goldenLinks ) { } private ApkFile getInfoAboutApkFrom ( String url ) { } private void getApkFiles ( Elements elements , int deepForSimilarApp ) { } @ Override public void run ( ) { <START_BUG> for ( String category : Constants . CATEGORIES ) { <END_BUG> WebDriver driver = GooglePlay . connectTo ( ( ( Constants . GOOGLEPLAY_COM ) + category ) , true ) ; ProducerLinks . APK_LOG . info ( String . format ( "Connected<seq2seq4repair_space>to<seq2seq4repair_space>%s" , ( ( Constants . GOOGLEPLAY_COM ) + category ) ) ) ; int last = 0 ; Elements elements ; while ( true ) { try { ( ( org . openqa . selenium . htmlunit . HtmlUnitDriver ) ( driver ) ) . executeScript ( "document.getElementById('show-more-button').click()" , new Object [ ] { "" } ) ; Thread . sleep ( 7000 ) ; Document doc = Jsoup . parse ( driver . getPageSource ( ) ) ; elements = doc . select ( "div<seq2seq4repair_space>><seq2seq4repair_space>div.details<seq2seq4repair_space>><seq2seq4repair_space>h2<seq2seq4repair_space>><seq2seq4repair_space>a" ) ; if ( last == ( elements . size ( ) ) ) { break ; } else { last = elements . size ( ) ; } ProducerLinks . APK_LOG . info ( String . format ( "Got<seq2seq4repair_space>%s<seq2seq4repair_space>applications<seq2seq4repair_space>from<seq2seq4repair_space>Main<seq2seq4repair_space>page.<seq2seq4repair_space>Category:<seq2seq4repair_space>%s" , elements . size ( ) , category ) ) ; } catch ( InterruptedException e ) { e . printStackTrace ( ) ; } } getApkFiles ( elements , 5 ) ; ProducerLinks . APK_LOG . info ( String . format ( "FINAL<seq2seq4repair_space>RESULT:<seq2seq4repair_space>Got<seq2seq4repair_space>%s<seq2seq4repair_space>applications<seq2seq4repair_space>from<seq2seq4repair_space>'%s'<seq2seq4repair_space>category" , linksFromCategory , category ) ) ; } try { goldenLinks . put ( new ApkFile ( ) ) ; } catch ( InterruptedException e ) { ProducerLinks . APK_LOG . error ( e ) ; } driver . close ( ) ; } No newline ; at end ; of file ; }

Fix:
for ( String category : Constants . CATEGORIES_GOOGLE ) {
Buggy code:
public class GCConnector extends AbstractConnector { private static GCConnector instance ; private static final Pattern gpxZipFilePattern = Pattern . compile ( "\\d{7,}(_.+)?\\.zip" , Pattern . CASE_INSENSITIVE ) ; private GCConnector ( ) { } public static GCConnector getInstance ( ) { } @ Override public boolean canHandle ( String geocode ) { } @ Override public boolean supportsRefreshCache ( cgCache cache ) { } @ Override public String getCacheUrl ( cgCache cache ) { } @ Override public boolean supportsWatchList ( ) { } @ Override public boolean supportsLogging ( ) { } @ Override public String getName ( ) { } @ Override public String getHost ( ) { } @ Override public boolean supportsUserActions ( ) { } @ Override public boolean supportsCachesAround ( ) { } @ Override public cgSearch searchByGeocode ( final String geocode , final String guid , final cgeoapplication app , final cgSearch search , final int reason , final CancellableHandler handler ) { final Parameters params = new Parameters ( "decrypt" , "y" ) ; if ( StringUtils . isNotBlank ( geocode ) ) { params . put ( "wp" , geocode ) ; } else if ( StringUtils . isNotBlank ( guid ) ) { params . put ( "guid" , guid ) ; } if ( app == null ) { Log . e ( tag , "cgeoBase.searchByGeocode:<seq2seq4repair_space>No<seq2seq4repair_space>application<seq2seq4repair_space>found" ) ; return null ; } cgBase . sendLoadProgressDetail ( handler , cache_dialog_loading_details_status_loadpage ) ; final String page = cgBase . requestLogged ( "http:////www.geocaching.com//seek//cache_details.aspx" , params , false , false , false ) ; if ( StringUtils . isEmpty ( page ) ) { if ( app . isThere ( geocode , guid , true , false ) ) { if ( ( StringUtils . isBlank ( geocode ) ) && ( StringUtils . isNotBlank ( guid ) ) ) { Log . i ( tag , "Loading<seq2seq4repair_space>old<seq2seq4repair_space>cache<seq2seq4repair_space>from<seq2seq4repair_space>cache." ) ; search . addGeocode ( app . getGeocode ( guid ) ) ; } else { search . addGeocode ( geocode ) ; } search . error = null ; return search ; } Log . e ( tag , "cgeoBase.searchByGeocode:<seq2seq4repair_space>No<seq2seq4repair_space>data<seq2seq4repair_space>from<seq2seq4repair_space>server" ) ; return null ; } final cgCacheWrap caches = cgBase . parseCache ( page , reason , handler ) ; if ( ( caches == null ) || ( CollectionUtils . isEmpty ( caches . cacheList ) ) ) { if ( ( caches != null ) && ( ( caches . error ) != null ) ) { search . error = caches . error ; } if ( ( caches != null ) && ( StringUtils . isNotBlank ( caches . url ) ) ) { search . url = caches . url ; } app . addSearch ( null , reason ) ; Log . e ( tag , "cgeoBase.searchByGeocode:<seq2seq4repair_space>No<seq2seq4repair_space>cache<seq2seq4repair_space>parsed" ) ; <START_BUG> return null ; <END_BUG> } final List < cgCache > cacheList = cgBase . filterSearchResults ( search , caches , false , false , Settings . getCacheType ( ) ) ; app . addSearch ( cacheList , reason ) ; return search ; } @ Override public boolean isZippedGPXFile ( final String fileName ) { } }

Fix:
return search ;
Buggy code:
public class UserLibrary { private static final String CURRENT_VERSION = "1" ; private static final String TAG_VERSION = "version" ; private static final String TAG_USERLIBRARY = "userlibrary" ; private static final String TAG_SOURCEATTACHMENT = "sourceattachment" ; private static final String TAG_SOURCEATTACHMENTROOT = "sourceattachmentroot" ; private static final String TAG_PATH = "path" ; private static final String TAG_ARCHIVE = "archive" ; private static final String TAG_SYSTEMLIBRARY = "systemlibrary" ; private boolean isSystemLibrary ; private IClasspathEntry [ ] entries ; public UserLibrary ( IClasspathEntry [ ] entries , boolean isSystemLibrary ) { } public IClasspathEntry [ ] getEntries ( ) { } public boolean isSystemLibrary ( ) { } public boolean equals ( Object obj ) { } public int hashCode ( ) { } String serialize ( ) throws IOException { ByteArrayOutputStream s = new ByteArrayOutputStream ( ) ; OutputStreamWriter writer = new OutputStreamWriter ( s , "UTF8" ) ; <START_BUG> XMLWriter xmlWriter = new XMLWriter ( writer ) ; <END_BUG> HashMap library = new HashMap ( ) ; library . put ( UserLibrary . TAG_VERSION , String . valueOf ( UserLibrary . CURRENT_VERSION ) ) ; library . put ( UserLibrary . TAG_SYSTEMLIBRARY , String . valueOf ( this . isSystemLibrary ) ) ; xmlWriter . printTag ( UserLibrary . TAG_USERLIBRARY , library , true , true , false ) ; for ( int i = 0 ; i < ( this . entries . length ) ; ++ i ) { ClasspathEntry cpEntry = ( ( ClasspathEntry ) ( this . entries [ i ] ) ) ; HashMap archive = new HashMap ( ) ; archive . put ( UserLibrary . TAG_PATH , cpEntry . getPath ( ) . toString ( ) ) ; IPath sourceAttach = cpEntry . getSourceAttachmentPath ( ) ; if ( sourceAttach != null ) archive . put ( UserLibrary . TAG_SOURCEATTACHMENT , sourceAttach ) ; IPath sourceAttachRoot = cpEntry . getSourceAttachmentRootPath ( ) ; if ( sourceAttachRoot != null ) archive . put ( UserLibrary . TAG_SOURCEATTACHMENTROOT , sourceAttachRoot ) ; boolean hasExtraAttributes = ( ( cpEntry . extraAttributes ) != null ) && ( ( cpEntry . extraAttributes . length ) != 0 ) ; boolean hasRestrictions = ( cpEntry . getAccessRuleSet ( ) ) != null ; xmlWriter . printTag ( UserLibrary . TAG_ARCHIVE , archive , true , true , ( ! ( hasExtraAttributes || hasRestrictions ) ) ) ; if ( hasExtraAttributes ) { cpEntry . encodeExtraAttributes ( xmlWriter , true , true ) ; } if ( hasRestrictions ) { cpEntry . encodeAccessRules ( xmlWriter , true , true ) ; } if ( hasExtraAttributes || hasRestrictions ) { xmlWriter . endTag ( UserLibrary . TAG_ARCHIVE , true ) ; } } xmlWriter . endTag ( UserLibrary . TAG_USERLIBRARY , true ) ; writer . flush ( ) ; writer . close ( ) ; return s . toString ( "UTF8" ) ; } static UserLibrary createFromString ( Reader reader ) throws IOException { } public String toString ( ) { } }

Fix:
XMLWriter xmlWriter = new XMLWriter ( writer , null ) ;
Buggy code:
public class EJB3AsyncServiceAdd extends AbstractBoottimeAddStepHandler { static final EJB3AsyncServiceAdd INSTANCE = new EJB3AsyncServiceAdd ( ) ; private EJB3AsyncServiceAdd ( ) { } static ModelNode create ( final String threadPoolName ) { } @ Override protected void performBoottime ( final OperationContext context , final ModelNode operation , final ModelNode model , final ServiceVerificationHandler verificationHandler , final List < ServiceController < ? > > newControllers ) throws OperationFailedException { final String threadPoolName = THREAD_POOL_NAME . resolveModelAttribute ( context , model ) . asString ( ) ; <START_BUG> final ServiceName threadPoolServiceName = BASE_SERVICE_NAME . append ( threadPoolName ) ; <END_BUG> context . addStep ( new AbstractDeploymentChainStep ( ) { protected void execute ( DeploymentProcessorTarget processorTarget ) { EjbLogger . ROOT_LOGGER . debug ( "Adding<seq2seq4repair_space>EJB<seq2seq4repair_space>@Asynchronous<seq2seq4repair_space>support" ) ; processorTarget . addDeploymentProcessor ( POST_MODULE , POST_MODULE_EJB_ASYNCHRONOUS_MERGE , new org . jboss . as . ejb3 . deployment . processors . merging . AsynchronousMergingProcessor ( threadPoolServiceName ) ) ; } } , RUNTIME ) ; } @ Override protected void populateModel ( ModelNode operation , ModelNode model ) throws OperationFailedException { } }

Fix:
final ServiceName threadPoolServiceName = BASE_THREAD_POOL_SERVICE_NAME . append ( threadPoolName ) ;
Buggy code:
public class LagDetector extends Thread { private long incr = ( LagDetector . MAX_SLEEP ) // ( LagDetector . DIV ) ; private long totalLag ; private int count ; private boolean running ; public static final long MAX_SLEEP = 500 ; private static final long DIV = 3 ; public LagDetector ( ) { } public float getAveLag ( ) { } public float getLagRatio ( ) { } public void stopRunning ( ) { } public void run ( ) { running = true ; long time ; totalLag = 0 ; count = 0 ; while ( running ) { time = System . currentTimeMillis ( ) ; try { Thread . sleep ( incr ) ; <START_BUG> } catch ( Exception e ) { <END_BUG> } time = ( System . currentTimeMillis ( ) ) - time ; totalLag += time - ( incr ) ; ( count ) ++ ; } } }

Fix:
} catch ( InterruptedException e ) {
Buggy code:
public class Utilities { private static String toTwoDigits ( int number ) { } public static void changeDateFormat ( String destination ) { <START_BUG> Statistics stats = new Statistics ( ) ; <END_BUG> StringBuilder result = new StringBuilder ( ) ; for ( int i = 1 ; i < ( stats . size ( ) ) ; ++ i ) { String originalDate = stats . get ( i ) . get ( Date . ordinal ( ) ) ; String [ ] parts = originalDate . split ( "//" ) ; parts [ 2 ] = Utilities . toTwoDigits ( Integer . valueOf ( parts [ 2 ] ) ) ; result . append ( ( ( ( ( ( parts [ 0 ] ) + "//" ) + ( parts [ 1 ] ) ) + "//" ) + ( parts [ 2 ] ) ) ) ; for ( int j = 1 ; j < 21 ; ++ j ) { result . append ( ( "," + ( stats . get ( i ) . get ( j ) ) ) ) ; } result . append ( '\n' ) ; } File writeFile = new File ( destination ) ; try ( BufferedWriter writer = new BufferedWriter ( new FileWriter ( writeFile ) ) ) { writer . write ( result . toString ( ) ) ; } catch ( FileNotFoundException e ) { e . printStackTrace ( ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; } } }

Fix:
Statistics stats = new Statistics ( Statistics . EPL_MATCHES ) ;
Buggy code:
public class Signer extends Verifier { static final int TIMESTAMP_SIZE = 8 ; private static final Logger LOG = Logger . getLogger ( Signer . class ) ; private final StreamQueue < SigningStream > SIGN_QUEUE = new StreamQueue < SigningStream > ( ) ; public Signer ( KeyczarReader reader ) throws KeyczarException { } public Signer ( String fileLocation ) throws KeyczarException { } public int digestSize ( ) throws KeyczarException { } public byte [ ] sign ( byte [ ] input ) throws KeyczarException { } public void sign ( ByteBuffer input , ByteBuffer output ) throws KeyczarException { } void sign ( ByteBuffer input , ByteBuffer hidden , long expirationTime , ByteBuffer output ) throws KeyczarException { } public String sign ( String input ) throws KeyczarException { } public byte [ ] attachedSign ( final byte [ ] blob , final byte [ ] hidden ) throws KeyczarException { KeyczarKey signingKey = getPrimaryKey ( ) ; if ( signingKey == null ) { throw new NoPrimaryKeyException ( ) ; } SigningStream stream = SIGN_QUEUE . poll ( ) ; if ( stream == null ) { stream = ( ( SigningStream ) ( signingKey . getStream ( ) ) ) ; } stream . initSign ( ) ; byte [ ] hiddenPlusLength = Util . fromInt ( 0 ) ; if ( ( hidden . length ) > 0 ) { hiddenPlusLength = Util . lenPrefix ( hidden ) ; } stream . updateSign ( ByteBuffer . wrap ( blob ) ) ; stream . updateSign ( ByteBuffer . wrap ( hiddenPlusLength ) ) ; stream . updateSign ( ByteBuffer . wrap ( FORMAT_BYTES ) ) ; <START_BUG> ByteBuffer output = ByteBuffer . allocate ( digestSize ( ) ) ; <END_BUG> output . mark ( ) ; stream . sign ( output ) ; output . limit ( output . position ( ) ) ; byte [ ] signature = Util . cat ( FORMAT_BYTES , signingKey . hash ( ) , Util . lenPrefix ( blob ) , output . array ( ) ) ; SIGN_QUEUE . add ( stream ) ; return signature ; } @ Override boolean isAcceptablePurpose ( KeyPurpose purpose ) { } No newline ; at end ; of file ; }

Fix:
ByteBuffer output = ByteBuffer . allocate ( stream . digestSize ( ) ) ;
Buggy code:
public class MarkupInheritanceTest extends WicketTestCase { private static Log log = LogFactory . getLog ( MarkupInheritanceTest . class ) ; public MarkupInheritanceTest ( String name ) { } public void testRenderHomePage_1 ( ) throws Exception { } public void testRenderHomePage_2 ( ) throws Exception { } public void testRenderHomePage_3 ( ) throws Exception { } public void testRenderHomePage_4 ( ) throws Exception { System . out . println ( ( ( "===<seq2seq4repair_space>" + ( MarkupInheritanceExtension_4 . class . getName ( ) ) ) + "<seq2seq4repair_space>===" ) ) ; <START_BUG> application . getPages ( ) . setHomePage ( MarkupInheritanceExtension_4 . class ) ; <END_BUG> application . setupRequestAndResponse ( ) ; application . processRequestCycle ( ) ; assertEquals ( MarkupInheritanceExtension_4 . class , application . getLastRenderedPage ( ) . getClass ( ) ) ; String document = application . getServletResponse ( ) . getDocument ( ) ; assertTrue ( DiffUtil . validatePage ( document , this . getClass ( ) , "MarkupInheritanceExpectedResult_4.html" ) ) ; MarkupInheritanceExtension_4 page = ( ( MarkupInheritanceExtension_4 ) ( application . getLastRenderedPage ( ) ) ) ; Link link = ( ( Link ) ( page . get ( "link" ) ) ) ; application . setupRequestAndResponse ( ) ; application . getServletRequest ( ) . setRequestToComponent ( link ) ; application . processRequestCycle ( ) ; assertEquals ( MarkupInheritanceExtension_4 . class , application . getLastRenderedPage ( ) . getClass ( ) ) ; document = application . getServletResponse ( ) . getDocument ( ) ; assertTrue ( DiffUtil . validatePage ( document , this . getClass ( ) , "MarkupInheritanceExpectedResult_4-1.html" ) ) ; } public void testRenderHomePage_5 ( ) throws Exception { } public void testRenderHomePage_6 ( ) throws Exception { } public void testRenderHomePage_7 ( ) throws Exception { } public void testRenderHomePage_8 ( ) throws Exception { } public void testRenderHomePage_9 ( ) throws Exception { } }

Fix:
application . getRequiredPageSettings ( ) . setHomePage ( MarkupInheritanceExtension_4 . class ) ;
Buggy code:
public class GoodsGridAdapter extends BaseAdapter { private MainActivity mActivity ; private ArrayList < Product > products ; private ArrayList < ProductSpec > specs ; private int theTaskProductId ; private int selectedProductPosition ; private GridView styleGrid ; private ImageView styleImage ; private TextView styleName ; private int tempCount ; private StyleGridAdapter styleGridAdapter ; public GoodsGridAdapter ( MainActivity activity , ArrayList < Product > products ) { } @ Override public int getCount ( ) { } @ Override public Object getItem ( int position ) { } @ Override public long getItemId ( int position ) { } @ Override public View getView ( final int position , View convertView , ViewGroup parent ) { if ( convertView == null ) { <START_BUG> convertView = LayoutInflater . from ( mActivity ) . inflate ( item_goods_2 , null ) ; <END_BUG> } ImageView itemImage = ( ( ImageView ) ( convertView . findViewById ( item_imageview ) ) ) ; TextView itemNameText = ( ( TextView ) ( convertView . findViewById ( item_name_text ) ) ) ; TextView itemPriceText = ( ( TextView ) ( convertView . findViewById ( item_price_text ) ) ) ; LinearLayout addShoppingCarButton = ( ( LinearLayout ) ( convertView . findViewById ( add_shopping_car_ll ) ) ) ; final Product theProduct = products . get ( position ) ; Glide . with ( mActivity ) . load ( theProduct . getPic_url ( ) ) . centerCrop ( ) . placeholder ( icon_head ) . crossFade ( ) . into ( itemImage ) ; itemNameText . setText ( theProduct . getName ( ) ) ; itemPriceText . setText ( ( "NT$" + ( Integer . toString ( theProduct . getPrice ( ) ) ) ) ) ; addShoppingCarButton . setOnClickListener ( new View . OnClickListener ( ) { @ Override public void onClick ( View v ) { theTaskProductId = theProduct . getId ( ) ; selectedProductPosition = position ; if ( ( NetworkUtil . getConnectivityStatus ( mActivity ) ) != 0 ) { showStyleDialog ( ) ; new GoodsGridAdapter . NewsTask ( ) . execute ( ) ; } else { Toast . makeText ( mActivity , "無法取得資料,請檢查網路連線" , LENGTH_SHORT ) . show ( ) ; } } } ) ; convertView . setOnClickListener ( new View . OnClickListener ( ) { @ Override public void onClick ( View v ) { Intent intent = new Intent ( mActivity , ProductActivity . class ) ; Bundle bundle = new Bundle ( ) ; bundle . putSerializable ( "Selected_Product" , theProduct ) ; intent . putExtras ( bundle ) ; mActivity . startActivity ( intent ) ; } } ) ; return convertView ; } public void showStyleDialog ( ) { } private class NewsTask extends AsyncTask { @ Override protected Object doInBackground ( Object [ ] params ) { } @ Override protected void onPostExecute ( Object result ) { } } }

Fix:
convertView = LayoutInflater . from ( mActivity ) . inflate ( item_goods , null ) ;
Buggy code:
public class TXTRecord extends Record { private static TXTRecord member = new TXTRecord ( ) ; private List strings ; private TXTRecord ( ) { } private TXTRecord ( Name name , short dclass , int ttl ) { } static TXTRecord getMember ( ) { } public TXTRecord ( Name name , short dclass , int ttl , List strings ) { } public TXTRecord ( Name name , short dclass , int ttl , String string ) { } Record rrFromWire ( Name name , short type , short dclass , int ttl , int length , DataByteInputStream in ) throws IOException { } Record rdataFromString ( Name name , short dclass , int ttl , MyStringTokenizer st , Name origin ) throws TextParseException { TXTRecord rec = new TXTRecord ( name , dclass , ttl ) ; rec . strings = new ArrayList ( ) ; while ( st . hasMoreTokens ( ) ) <START_BUG> rec . strings . add ( st . nextToken ( ) ) ; <END_BUG> return rec ; } public String rdataToString ( ) { } public List getStrings ( ) { } void rrToWire ( DataByteOutputStream out , Compression c , boolean canonical ) { } }

Fix:
rec . strings . add ( nextString ( st ) ) ;
Buggy code:
class SecurityRoleAttributeHandler extends AbstractWriteAttributeHandler < Set < Role > > { static final SecurityRoleAttributeHandler INSTANCE = new SecurityRoleAttributeHandler ( ) ; private SecurityRoleAttributeHandler ( ) { } public void registerAttributes ( final ManagementResourceRegistration registry ) { } @ Override protected boolean applyUpdateToRuntime ( OperationContext context , ModelNode operation , String attributeName , ModelNode newValue , ModelNode currentValue , HandbackHolder < Set < Role > > handbackHolder ) throws OperationFailedException { final HornetQServer server = SecurityRoleAttributeHandler . getServer ( context , operation ) ; if ( server != null ) { final PathAddress address = PathAddress . pathAddress ( operation . require ( OP_ADDR ) ) ; final String match = address . getElement ( ( ( address . size ( ) ) - 2 ) ) . getValue ( ) ; final String roleName = address . getLastElement ( ) . getValue ( ) ; final Set < Role > newRoles = new HashSet < Role > ( ) ; final Set < Role > roles = server . getSecurityRepository ( ) . getMatch ( match ) ; handbackHolder . setHandback ( roles ) ; for ( final Role role : roles ) { if ( ! ( roleName . equals ( role . getName ( ) ) ) ) { newRoles . add ( role ) ; } } final Resource resource = context . readResource ( EMPTY_ADDRESS ) ; final ModelNode subModel = resource . getModel ( ) ; <START_BUG> final Role updatedRole = SecurityRoleAdd . transform ( roleName , subModel ) ; <END_BUG> newRoles . add ( updatedRole ) ; server . getSecurityRepository ( ) . addMatch ( match , newRoles ) ; } return false ; } @ Override protected void revertUpdateToRuntime ( OperationContext context , ModelNode operation , String attributeName , ModelNode valueToRestore , ModelNode valueToRevert , Set < Role > handback ) throws OperationFailedException { } static HornetQServer getServer ( final OperationContext context , ModelNode operation ) { } }

Fix:
final Role updatedRole = SecurityRoleAdd . transform ( context , roleName , subModel ) ;
Buggy code:
public class PuzzleGenerator { static final String [ ] ORIENTATIONS = new String [ ] { "vertical" , "horizontal" } ; static final int [ ] SHIP_TYPES = new int [ ] { 4 , 3 , 3 , 2 , 2 , 2 , 1 , 1 , 1 , 1 } ; public PuzzleGenerator ( ) { } public static int [ ] [ ] generate ( ) { } public static boolean isPlacementValid ( int x , int y , int ship , String orientation , int [ ] [ ] grid ) { } public static String encode ( int [ ] [ ] grid ) { } public void printGrid ( int [ ] [ ] grid ) { } public static void writeDatasetToFile ( String fileName , int n ) throws IOException { File file = new File ( fileName ) ; FileOutputStream fos = new FileOutputStream ( file ) ; BufferedWriter bw = new BufferedWriter ( new OutputStreamWriter ( fos ) ) ; <START_BUG> for ( int i = 0 ; i <= n ; i ++ ) { <END_BUG> bw . write ( PuzzleGenerator . encode ( PuzzleGenerator . generate ( ) ) ) ; bw . newLine ( ) ; } bw . close ( ) ; } public static void main ( String [ ] args ) { } }

Fix:
for ( int i = 1 ; i <= n ; i ++ ) {
Buggy code:
public class SingleOperationFuture implements IFuture { class SingleOperationFutureProgressMonitor implements IProgressMonitor { private final IProgressMonitor monitor ; public SingleOperationFutureProgressMonitor ( IProgressMonitor progressMonitor ) { } public void beginTask ( String name , int totalWork ) { } public void done ( ) { } public void internalWorked ( double work ) { } public boolean isCanceled ( ) { } public void setCanceled ( boolean value ) { } public void setTaskName ( String name ) { } public void subTask ( String name ) { } public void worked ( int work ) { } } private Object resultValue = null ; private IStatus status = null ; private final IProgressMonitor progressMonitor ; private TimeoutException timeoutException = null ; public SingleOperationFuture ( IExecutor executor , IProgressRunnable progressRunnable , IProgressMonitor progressMonitor ) { } public SingleOperationFuture ( IExecutor executor , IProgressRunnable progressRunnable ) { } public SingleOperationFuture ( IProgressRunnable progressRunnable , IProgressMonitor progressMonitor ) { } public SingleOperationFuture ( IProgressRunnable progressRunnable ) { } public SingleOperationFuture ( IProgressMonitor progressMonitor ) { } public SingleOperationFuture ( ) { } private IProgressMonitor createProgressMonitor ( IProgressMonitor pm ) { } public synchronized Object get ( ) throws InterruptedException , OperationCanceledException { } public synchronized Object get ( long waitTimeInMillis ) throws InterruptedException , OperationCanceledException , TimeoutException { } public IProgressMonitor getProgressMonitor ( ) { } public synchronized boolean isDone ( ) { } synchronized void setCanceled ( ) { } public Runnable setter ( final IProgressRunnable function ) { } public synchronized void setException ( Throwable ex ) { } public synchronized void set ( Object newValue ) { } public synchronized IStatus getStatus ( ) { } private synchronized void setStatus ( IStatus status ) { } private TimeoutException createTimeoutException ( long timeout ) { setStatus ( new Status ( IStatus . ERROR , ECFPlugin . PLUGIN_ID , IStatus . ERROR , NLS . bind ( "Operation<seq2seq4repair_space>timeout<seq2seq4repair_space>after<seq2seq4repair_space>{0}ms" , new Long ( timeout ) ) , null ) ) ; <START_BUG> timeoutException = new TimeoutException ( getStatus ( ) , timeout ) ; <END_BUG> return timeoutException ; } private void throwIfCanceled ( ) throws OperationCanceledException { } public boolean hasValue ( ) { } }

Fix:
timeoutException = new TimeoutException ( "Timout" , timeout ) ;
Buggy code:
public class Util { public static boolean isWindows ( ) { } public static boolean isSuccess ( ModelNode operationResult ) { } public static String getFailureDescription ( ModelNode operationResult ) { } public static List < String > getList ( ModelNode operationResult ) { } public static boolean listContains ( ModelNode operationResult , String item ) { } public static byte [ ] getHash ( ModelNode operationResult ) { } public static List < String > getRequestPropertyNames ( ModelNode operationResult ) { } public static boolean isDeploymentInRepository ( String name , ModelControllerClient client ) { } public static boolean isDeployedAndEnabledInStandalone ( String name , ModelControllerClient client ) { } public static List < String > getAllEnabledServerGroups ( String deploymentName , ModelControllerClient client ) { } public static List < String > getAllReferencingServerGroups ( String deploymentName , ModelControllerClient client ) { } public static List < String > getDeployments ( ModelControllerClient client ) { } public static List < String > getServerGroups ( ModelControllerClient client ) { } public static List < String > getNodeTypes ( ModelControllerClient client , OperationRequestAddress address ) { } public static List < String > getNodeNames ( ModelControllerClient client , OperationRequestAddress address , String type ) { } public static List < String > getJmsResources ( ModelControllerClient client , String profile , String type ) { DefaultOperationRequestBuilder builder = new DefaultOperationRequestBuilder ( ) ; final ModelNode request ; try { if ( profile != null ) { builder . addNode ( "profile" , profile ) ; } <START_BUG> builder . addNode ( "subsystem" , "jms" ) ; <END_BUG> builder . operationName ( "read-children-names" ) ; builder . addProperty ( "child-type" , type ) ; request = builder . buildRequest ( ) ; } catch ( OperationFormatException e ) { throw new IllegalStateException ( "Failed<seq2seq4repair_space>to<seq2seq4repair_space>build<seq2seq4repair_space>operation" , e ) ; } try { ModelNode outcome = client . execute ( request ) ; if ( Util . isSuccess ( outcome ) ) { return Util . getList ( outcome ) ; } } catch ( Exception e ) { } return Collections . emptyList ( ) ; } public static List < String > getDatasources ( ModelControllerClient client , String profile , String dsType ) { } public static boolean isTopic ( ModelControllerClient client , String name ) { } public static boolean isQueue ( ModelControllerClient client , String name ) { } public static boolean isConnectionFactory ( ModelControllerClient client , String name ) { } public static ModelNode configureDeploymentOperation ( String operationName , String uniqueName , String serverGroup ) { } public static String getCommonStart ( List < String > list ) { } public static String escapeString ( String name , EscapeSelector selector ) { } public static void sortAndEscape ( List < String > candidates , EscapeSelector selector ) { } public static void setRequestProperty ( ModelNode request , String name , String value ) { } }

Fix:
builder . addNode ( "subsystem" , "messaging" ) ;
Buggy code:
public class Installer extends ModuleInstall { @ Override public void restored ( ) { Logger logger = Logger . getLogger ( Installer . class . getName ( ) ) ; Case . addPropertyChangeListener ( new KeywordSearch . CaseChangeListener ( ) ) ; Server server = KeywordSearch . getServer ( ) ; if ( server . isRunning ( ) ) { <START_BUG> logger . log ( Level . WARNING , "Already<seq2seq4repair_space>a<seq2seq4repair_space>Solr<seq2seq4repair_space>server<seq2seq4repair_space>on<seq2seq4repair_space>out<seq2seq4repair_space>port,<seq2seq4repair_space>maybe<seq2seq4repair_space>leftover<seq2seq4repair_space>from<seq2seq4repair_space>a<seq2seq4repair_space>previous<seq2seq4repair_space>run.<seq2seq4repair_space>Trying<seq2seq4repair_space>to<seq2seq4repair_space>shut<seq2seq4repair_space>it<seq2seq4repair_space>down..." ) ; <END_BUG> server . stop ( ) ; if ( server . isRunning ( ) ) { throw new IllegalStateException ( "There's<seq2seq4repair_space>already<seq2seq4repair_space>a<seq2seq4repair_space>server<seq2seq4repair_space>running<seq2seq4repair_space>on<seq2seq4repair_space>our<seq2seq4repair_space>port<seq2seq4repair_space>that<seq2seq4repair_space>can't<seq2seq4repair_space>be<seq2seq4repair_space>shutdown." ) ; } else { logger . log ( Level . INFO , "Old<seq2seq4repair_space>Solr<seq2seq4repair_space>server<seq2seq4repair_space>shutdown<seq2seq4repair_space>successfully." ) ; } } server . start ( ) ; try { Thread . sleep ( 1000 ) ; } catch ( InterruptedException ex ) { throw new RuntimeException ( ex ) ; } } @ Override public boolean closing ( ) { } }

Fix:
logger . log ( Level . WARNING , "Already<seq2seq4repair_space>a<seq2seq4repair_space>Solr<seq2seq4repair_space>server<seq2seq4repair_space>running,<seq2seq4repair_space>maybe<seq2seq4repair_space>leftover<seq2seq4repair_space>from<seq2seq4repair_space>a<seq2seq4repair_space>previous<seq2seq4repair_space>run.<seq2seq4repair_space>Trying<seq2seq4repair_space>to<seq2seq4repair_space>shut<seq2seq4repair_space>it<seq2seq4repair_space>down..." ) ;
Buggy code:
public final class ServerService extends AbstractControllerService { private final InjectedValue < ServerDeploymentRepository > injectedDeploymentRepository = new InjectedValue < ServerDeploymentRepository > ( ) ; private final InjectedValue < ContentRepository > injectedContentRepository = new InjectedValue < ContentRepository > ( ) ; private final InjectedValue < ServiceModuleLoader > injectedModuleLoader = new InjectedValue < ServiceModuleLoader > ( ) ; private final InjectedValue < ExternalModuleService > injectedExternalModuleService = new InjectedValue < ExternalModuleService > ( ) ; private final Configuration configuration ; private final BootstrapListener bootstrapListener ; private final ControlledProcessState processState ; private final RunningModeControl runningModeControl ; private volatile ExecutorService queuelessExecutor ; private volatile ExtensibleConfigurationPersister extensibleConfigurationPersister ; private final AbstractVaultReader vaultReader ; ServerService ( final Bootstrap . Configuration configuration , final ControlledProcessState processState , final OperationStepHandler prepareStep , final BootstrapListener bootstrapListener , final RunningModeControl runningModeControl , final AbstractVaultReader vaultReader ) { } static ProcessType getProcessType ( ServerEnvironment serverEnvironment ) { } public static void addService ( final ServiceTarget serviceTarget , final Bootstrap . Configuration configuration , final ControlledProcessState processState , final BootstrapListener bootstrapListener , final RunningModeControl runningModeControl , final AbstractVaultReader vaultReader ) { } public synchronized void start ( final StartContext context ) throws StartException { } private void initializeExecutorService ( ServerEnvironment serverEnvironment ) { } protected void boot ( final BootContext context ) throws ConfigurationPersistenceException { } protected void boot ( List < ModelNode > bootOperations ) throws ConfigurationPersistenceException { } public void stop ( final StopContext context ) { } @ Override protected void initModel ( Resource rootResource , ManagementResourceRegistration rootRegistration ) { <START_BUG> ServerControllerModelUtil . updateCoreModel ( rootResource . getModel ( ) ) ; <END_BUG> ServerControllerModelUtil . initOperations ( rootRegistration , injectedContentRepository . getValue ( ) , extensibleConfigurationPersister , configuration . getServerEnvironment ( ) , processState , runningModeControl , vaultReader , ( ( queuelessExecutor ) != null ) ) ; rootResource . registerChild ( PathElement . pathElement ( CORE_SERVICE , MANAGEMENT ) , Factory . create ( ) ) ; rootResource . registerChild ( PathElement . pathElement ( CORE_SERVICE , SERVICE_CONTAINER ) , Factory . create ( ) ) ; rootResource . registerChild ( RESOURCE_PATH , Factory . create ( ) ) ; rootResource . registerChild ( ROOT_PATH , new RootPlatformMBeanResource ( ) ) ; } }

Fix:
ServerControllerModelUtil . updateCoreModel ( rootResource . getModel ( ) , configuration . getServerEnvironment ( ) ) ;
Buggy code:
public class Main { public static void main ( String [ ] args ) throws Exception { } private static CommandLine parseCommandLineArgs ( String [ ] args ) throws ParseException { } private static void deployDatasource ( Container container , String db , CommandLine cmd ) throws Exception { } private static String getJdbcString ( String db , String h2 , String mysql ) { String s = ( "jdbc:" + db ) + ":" ; if ( "h2" . equals ( db ) ) { s += h2 ; } else if ( "mysql" . equals ( db ) ) { <START_BUG> s += ( "////" + mysql ) + "?autoReconnect=true" ; <END_BUG> } return s ; } private static void deployDbArtifact ( Container container , String db ) throws Exception { } private static void deployH2 ( Container container ) throws Exception { } private static void deployMySql ( Container container ) throws Exception { } private static void deployDatasourceFraction ( Container container , String db , String jdbcString , String username , String password ) throws DeploymentException { } private static String getDriverName ( String db ) { } private static String getDriverClass ( String db ) { } private static void deployApp ( Container container , String db ) throws Exception { } }

Fix:
s += ( "////" + mysql ) + "?useSSL=false&amp;autoReconnect=true" ;
Buggy code:
public class TraceComponent extends AbstractEMFWorkflowComponent { private static final String COMPONENT_NAME = "Trace<seq2seq4repair_space>Component" ; private String traceModelSlotName ; private String traceName ; private static TraceStore traceStore = new TraceStore ( ) ; private static Stack < String > fileStack = new Stack < String > ( ) ; private static int tokenValue = 0 ; private static MapList cache = new MapList ( ) ; public static void createTrace ( Object from , Object to , String kind ) { } public static void createTrace ( Object from , Collection to , String kind ) { } public static void createTrace ( Collection from , Object to , String kind ) { } public static String createCodeTrace ( Object from , String kind ) { } private static String createNewToken ( ) { } public static Object getSingleTraceTarget ( Object from , String kind ) { } public static Object getTraceTargets ( Object from , String kind ) { } @ Override public String getLogMessage ( ) { } public static void clearTrace ( ) { } public void setTraceModelSlot ( String slot ) { } public void setTraceName ( String name ) { } @ Override public void checkConfiguration ( Issues issues ) { } @ Override public void invokeInternal ( WorkflowContext ctx , ProgressMonitor mon , Issues issues ) { setUseSingleGlobalResourceSet ( true ) ; try { StandaloneSetup setup = new StandaloneSetup ( ) ; <START_BUG> setup . addRegisterEcoreFile ( "platform://resource//eclipse.xtend.util.stdlib//src//org//openarchitectureware//util//stdlib//trace.ecore" ) ; <END_BUG> EPackage pack = setup . getPackage ( "http:////openarchitectureware.org//trace" ) ; DynamicEcoreHelper h = new DynamicEcoreHelper ( pack ) ; EObject model = h . create ( "Trace" ) ; createElementList ( h , model ) ; createBySource ( h , model ) ; ctx . set ( traceModelSlotName , model ) ; } catch ( Exception e ) { issues . addError ( this , e . getMessage ( ) ) ; } } private void createBySource ( DynamicEcoreHelper h , EObject model ) { } private void createElementList ( DynamicEcoreHelper h , EObject model ) { } public static void reportFileOpen ( String path ) { } public static void reportFileClose ( ) { } @ Override public String getComponentName ( ) { } }

Fix:
setup . addRegisterEcoreFile ( "platform://resource//eclipse.xtend.util.stdlib//src//org//eclipse//xtend//util//stdlib//trace.ecore" ) ;