nus-yam/ex-repair huggingface dataset:
Program: 60022
Project: 60022
Buggy source:
@Override public void go(Backstack nextBackstack,Flow.Direction direction,Flow.Callback callback){
  screenState=SceneState.TRANSITIONING;
  Scene incomingScene=(Scene)nextBackstack.current().getScreen();
  SceneCut sceneCut=new SceneCut.Builder().setDirection(direction).setIncomingScene(incomingScene).setOutgoingScene(outgoingScene).setCallback(callback).build();
  if (incomingScene == outgoingScene) {
    callback.onComplete();
  }
  if (incomingScene.getView() == null) {
    incomingScene.setUp(director.getActivity(),director.getContainer());
  }
  if (direction == Flow.Direction.FORWARD || direction == Flow.Direction.REPLACE) {
    incomingScene.getRigger().layoutIncoming(director.getContainer(),incomingScene.getView(),direction);
    incomingScene.getTransformer().applyAnimations(sceneCut,this);
  }
 else   if (outgoingScene != null) {
    outgoingScene.getRigger().layoutIncoming(director.getContainer(),outgoingScene.getView(),direction);
    outgoingScene.getTransformer().applyAnimations(sceneCut,this);
  }
 else {
    callback.onComplete();
  }
  outgoingScene=incomingScene;
}

Fixed version (ground truth):
@Override public void go(Backstack nextBackstack,Flow.Direction direction,Flow.Callback callback){
  screenState=SceneState.TRANSITIONING;
  Scene incomingScene=(Scene)nextBackstack.current().getScreen();
  SceneCut sceneCut=new SceneCut.Builder().setDirection(direction).setIncomingScene(incomingScene).setOutgoingScene(outgoingScene).setCallback(callback).build();
  if (incomingScene == outgoingScene) {
    callback.onComplete();
  }
  if (incomingScene.getView() == null) {
    incomingScene.setUp(director.getActivity(),director.getContainer());
  }
  if (direction == Flow.Direction.FORWARD || direction == Flow.Direction.REPLACE) {
    incomingScene.getRigger().layoutIncoming(director.getContainer(),incomingScene.getView(),direction);
    incomingScene.getTransformer().applyAnimations(sceneCut,this);
  }
 else   if (outgoingScene != null) {
    outgoingScene.getRigger().layoutIncoming(director.getContainer(),incomingScene.getView(),direction);
    outgoingScene.getTransformer().applyAnimations(sceneCut,this);
  }
 else {
    callback.onComplete();
  }
  outgoingScene=incomingScene;
}
Program: 60023
Project: 60023
Buggy source:
@Override public Transformer getTransformer(){
  return new CrossfadeTransformer(SampleApplication.getInstance());
}

Fixed version (ground truth):
@Override public Transformer getTransformer(){
  return transformer;
}
Program: 60024
Project: 60024
Buggy source:
public WelcomeScene(){
  super(WelcomeScene.class.getName());
}

Fixed version (ground truth):
public WelcomeScene(){
  this(SampleApplication.getInstance());
}
Program: 60025
Project: 60025
Buggy source:
@Override public Rigger getRigger(){
  return new PageRigger();
}

Fixed version (ground truth):
@Override public Rigger getRigger(){
  return rigger;
}
Program: 60026
Project: 60026
Buggy source:
public NavigationMenuView(Context context,AttributeSet attrs){
  super(context,attrs);
  this.flow=SampleApplication.getMainFlow();
  this.drawerHelper=SampleApplication.getDrawerHelper();
  this.welcomeScene=new WelcomeScene();
}

Fixed version (ground truth):
public NavigationMenuView(Context context,AttributeSet attrs){
  super(context,attrs);
  this.flow=SampleApplication.getMainFlow();
  this.drawerHelper=SampleApplication.getDrawerHelper();
  this.welcomeScene=new WelcomeScene();
  this.pagedScene=new PagedScene1();
}
Program: 60027
Project: 60027
Buggy source:
@Override public View setUp(Context context,ViewGroup parent){
  lockable.setLocked(false);
  return super.setUp(context,parent);
}

Fixed version (ground truth):
@Override public View setUp(Context context,ViewGroup parent){
  lockable.setLocked(true);
  return super.setUp(context,parent);
}
Program: 60028
Project: 60028
Buggy source:
@Override public View tearDown(Context context,ViewGroup parent){
  lockable.setLocked(true);
  return super.tearDown(context,parent);
}

Fixed version (ground truth):
@Override public View tearDown(Context context,ViewGroup parent){
  lockable.setLocked(false);
  return super.tearDown(context,parent);
}
Program: 60029
Project: 60029
Buggy source:
@Override protected void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  MortarScope parentScope=Mortar.getScope(getApplication());
  activityScope=Mortar.requireActivityScope(parentScope,this);
  activityScope.onCreate(savedInstanceState);
  setContentView(R.layout.activity_main);
  Mortar.inject(this,this);
  getActionBar().setHomeButtonEnabled(true);
  ButterKnife.inject(this,this);
  navigationDrawer=(DrawerLayout)findViewById(R.id.drawer_parent);
  activityPresenter.takeView(this);
  drawerPresenter.takeView(navigationDrawer);
  getLayoutInflater().inflate(R.layout.navigation_drawer,navigationDrawer);
  navigationDrawer.invalidate();
  screenplay.enter(flow);
}

Fixed version (ground truth):
@Override protected void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  MortarScope parentScope=Mortar.getScope(getApplication());
  activityScope=Mortar.requireActivityScope(parentScope,this);
  activityScope.onCreate(savedInstanceState);
  setContentView(R.layout.activity_main);
  Mortar.inject(this,this);
  getActionBar().setHomeButtonEnabled(true);
  ButterKnife.inject(this,this);
  navigationDrawer=(DrawerLayout)findViewById(R.id.drawer_parent);
  activityPresenter.takeView(this);
  drawerPresenter.takeView(navigationDrawer);
  screenplay.enter(flow);
}
Program: 60030
Project: 60030
Buggy source:
@Override public boolean onOptionsItemSelected(MenuItem item){
switch (item.getItemId()) {
case android.R.id.home:
    if (navigationDrawer.isDrawerVisible(Gravity.LEFT)) {
      navigationDrawer.closeDrawer(Gravity.LEFT);
    }
 else {
      navigationDrawer.openDrawer(Gravity.LEFT);
    }
  return true;
}
return super.onOptionsItemSelected(item);
}

Fixed version (ground truth):
@Override public boolean onOptionsItemSelected(MenuItem item){
switch (item.getItemId()) {
case android.R.id.home:
    if (drawerPresenter.isDrawerVisible() && !drawerPresenter.isLockedOpen()) {
      drawerPresenter.close();
    }
 else     if (!drawerPresenter.isLockedShut()) {
      drawerPresenter.open();
    }
  return true;
}
return super.onOptionsItemSelected(item);
}
Program: 60031
Project: 60031
Buggy source:
@Override public final void go(Backstack entries,Flow.Direction direction,Flow.Callback callback){
  Screen nextScreen=(Screen)entries.current().getScreen();
  if (direction == Flow.Direction.FORWARD) {
    if (entries.reverseIterator().hasNext()) {
      previousScreen=(Screen)entries.reverseIterator().next().getScreen();
    }
    View newChild=nextScreen.getDirector().create(context,nextScreen,container);
    container.addView(newChild);
  }
  if (previousScreen != null) {
    ScreenTransformations.start(direction,callback,nextScreen,previousScreen);
  }
 else {
    callback.onComplete();
  }
  if (direction == Flow.Direction.BACKWARD) {
    View oldChild=nextScreen.getDirector().destroy(context,previousScreen,container);
    container.removeView(oldChild);
  }
  previousScreen=nextScreen;
}

Fixed version (ground truth):
@Override public final void go(Backstack entries,Flow.Direction direction,Flow.Callback callback){
  Screen nextScreen=(Screen)entries.current().getScreen();
  if (direction == Flow.Direction.FORWARD) {
    if (entries.reverseIterator().hasNext()) {
      previousScreen=(Screen)entries.reverseIterator().next().getScreen();
    }
    View newChild=nextScreen.getDirector().create(context,nextScreen,container);
    container.addView(newChild);
  }
  if (previousScreen != null) {
    ScreenTransformations.start(direction,callback,nextScreen,previousScreen);
  }
 else {
    callback.onComplete();
  }
  if (direction == Flow.Direction.BACKWARD) {
    View oldChild=previousScreen.getDirector().destroy(context,previousScreen,container);
    container.removeView(oldChild);
  }
  previousScreen=nextScreen;
}
Program: 60032
Project: 60032
Buggy source:
/** 
 * Returns vectors as a list for specified range of indexes (from the <code>startIndex</code> to <code>stopIndex</code>)
 * @return List of the generated objects/vectors
 */
public List<ICombinatoricsVector<T>> generateObjectsRange(int startIndex,int stopIndex){
  assert(startIndex <= stopIndex);
  List<ICombinatoricsVector<T>> list=new ArrayList<>();
  Iterator<ICombinatoricsVector<T>> iterator=this.iterator();
  int index=1;
  while (iterator.hasNext()) {
    if (index >= startIndex && index <= stopIndex) {
      list.add(iterator.next());
    }
 else     if (index > stopIndex) {
      return list;
    }
 else {
      iterator.next();
    }
    index++;
  }
  return list;
}

Fixed version (ground truth):
/** 
 * Returns vectors as a list for specified range of indexes (from the <code>startIndex</code> to <code>stopIndex</code>)
 * @return List of the generated objects/vectors
 */
public List<ICombinatoricsVector<T>> generateObjectsRange(long startIndex,long stopIndex){
  assert(startIndex <= stopIndex);
  List<ICombinatoricsVector<T>> list=new ArrayList<>();
  Iterator<ICombinatoricsVector<T>> iterator=this.iterator();
  long index=1;
  while (iterator.hasNext()) {
    if (index >= startIndex && index <= stopIndex) {
      list.add(iterator.next());
    }
 else     if (index > stopIndex) {
      return list;
    }
 else {
      iterator.next();
    }
    index++;
  }
  return list;
}
Program: 60033
Project: 60033
Buggy source:
/** 
 * Returns vectors as a list for specified range of indexes (from the <code>startIndex</code> to <code>stopIndex</code>)
 * @return List of the generated objects/vectors
 */
List<T> generateObjectsRange(int startIndex,int stopIndex);

Fixed version (ground truth):
/** 
 * Returns vectors as a list for specified range of indexes (from the <code>startIndex</code> to <code>stopIndex</code>)
 * @return List of the generated objects/vectors
 */
List<T> generateObjectsRange(long startIndex,long stopIndex);
Program: 60034
Project: 60034
Buggy source:
/** 
 * @param args
 */
public static void main(String[] args){
  permutationWithoutRepetitions();
  permutationWithRepetitions();
  simpleCombinations();
  multiCombinations();
  simpleSubSets();
  duplicateSubSets();
  integerPartition();
  integerComposition();
  complexCombinationIndexesExample();
  complexCombinationExample();
}

Fixed version (ground truth):
/** 
 * @param args
 */
public static void main(String[] args){
  permutationWithoutRepetitions();
  permutationWithRepetitions();
  simpleCombinations();
  multiCombinations();
  simpleSubSets();
  duplicateSubSets();
  integerPartition();
  integerComposition();
  complexCombinationIndexesExample();
  complexCombinationExample();
  simpleWithEqualElementsPermutation();
}
Program: 60035
Project: 60035
Buggy source:
/** 
 * Creates an iterator
 * @see org.paukov.combinatorics.Generator#iterator()
 */
@Override public Iterator<ICombinatoricsVector<T>> iterator(){
  return new PermutationIterator<T>(this);
}

Fixed version (ground truth):
/** 
 * Creates an iterator
 * @see org.paukov.combinatorics.Generator#iterator()
 */
@Override public Iterator<ICombinatoricsVector<T>> iterator(){
  if (_originalVector.hasDuplicates())   return new DuplicatedPermutationIterator<T>(this);
 else   return new PermutationIterator<T>(this);
}
Program: 60036
Project: 60036
Buggy source:
/** 
 * Returns the number of all generated permutations
 * @see org.paukov.combinatorics.Generator#getNumberOfGeneratedObjects()
 */
public long getNumberOfGeneratedObjects(){
  if (_originalVector.getSize() == 0)   return 0;
  return Util.factorial(_originalVector.getSize());
}

Fixed version (ground truth):
/** 
 * Returns the number of all generated permutations
 * @see org.paukov.combinatorics.Generator#getNumberOfGeneratedObjects()
 */
public long getNumberOfGeneratedObjects(){
  if (_originalVector.getSize() == 0)   return 0;
  if (_originalVector.hasDuplicates())   throw new RuntimeException("String_Node_Str" + _originalVector);
  return Util.factorial(_originalVector.getSize());
}
Program: 60039
Project: 60039
Buggy source:
public Pair<Integer,JSONObject> execute(String method,URL url,String requestBody,boolean skipError) throws OCSyncException {
  Pair<Integer,JSONObject> response;
  HttpURLConnection urlConnection=null;
  try {
    urlConnection=(HttpURLConnection)url.openConnection();
    urlConnection.setRequestMethod(method);
    urlConnection.setRequestProperty("String_Node_Str",_userAgent);
    urlConnection.setInstanceFollowRedirects(true);
    urlConnection.setDoOutput(true);
    urlConnection.setRequestProperty("String_Node_Str","String_Node_Str");
    urlConnection.setRequestProperty("String_Node_Str","String_Node_Str");
    String basicAuth="String_Node_Str" + Base64.encodeToString((_username + "String_Node_Str" + _password).getBytes(),Base64.NO_WRAP);
    urlConnection.setRequestProperty("String_Node_Str",basicAuth);
    urlConnection.setChunkedStreamingMode(0);
    OutputStream out=new BufferedOutputStream(urlConnection.getOutputStream());
    out.write(requestBody.getBytes(Charset.forName("String_Node_Str")));
    response=handleHTTPResponse(urlConnection,skipError);
  }
 catch (  IOException e) {
    throw new OCSyncException(R.string.err_sync_http_request_ioexception,OCSyncErrorType.IO);
  }
 finally {
    if (urlConnection != null) {
      urlConnection.disconnect();
    }
  }
  return response;
}

Fixed version (ground truth):
public Pair<Integer,JSONObject> execute(String method,URL url,String requestBody,boolean skipError) throws OCSyncException {
  Pair<Integer,JSONObject> response;
  HttpURLConnection urlConnection=null;
  try {
    urlConnection=(HttpURLConnection)url.openConnection();
    urlConnection.setRequestMethod(method);
    urlConnection.setRequestProperty("String_Node_Str",_userAgent);
    urlConnection.setInstanceFollowRedirects(true);
    urlConnection.setDoOutput(true);
    urlConnection.setRequestProperty("String_Node_Str","String_Node_Str");
    urlConnection.setRequestProperty("String_Node_Str","String_Node_Str");
    String basicAuth="String_Node_Str" + Base64.encodeToString((_username + "String_Node_Str" + _password).getBytes(),Base64.NO_WRAP);
    urlConnection.setRequestProperty("String_Node_Str",basicAuth);
    urlConnection.setChunkedStreamingMode(0);
    OutputStream out=new BufferedOutputStream(urlConnection.getOutputStream());
    out.write(requestBody.getBytes(Charset.forName("String_Node_Str")));
    out.close();
    response=handleHTTPResponse(urlConnection,skipError);
  }
 catch (  IOException e) {
    throw new OCSyncException(R.string.err_sync_http_request_ioexception,OCSyncErrorType.IO);
  }
 finally {
    if (urlConnection != null) {
      urlConnection.disconnect();
    }
  }
  return response;
}
Program: 60040
Project: 60040
Buggy source:
private boolean addLatestIndexedNote(Client client,String commitHash){
  try {
    client.prepareIndex(ES_UPDATEALIAS,"String_Node_Str",toString()).setSource(jsonBuilder().startObject().field("String_Node_Str",repository.getProject().getKey()).field("String_Node_Str",repository.getSlug()).field("String_Node_Str",ref).field("String_Node_Str",commitHash).endObject()).get();
  }
 catch (  Exception e) {
    log.error("String_Node_Str",toString(),commitHash,e);
    return false;
  }
  return true;
}

Fixed version (ground truth):
private boolean addLatestIndexedNote(Client client,String commitHash){
  try {
    client.prepareIndex(ES_UPDATEALIAS,"String_Node_Str",toString()).setSource(jsonBuilder().startObject().field("String_Node_Str",repository.getProject().getKey()).field("String_Node_Str",repository.getSlug()).field("String_Node_Str",ref).field("String_Node_Str",commitHash).endObject()).setRouting(getRepoDesc()).get();
  }
 catch (  Exception e) {
    log.error("String_Node_Str",toString(),commitHash,e);
    return false;
  }
  return true;
}
Program: 60041
Project: 60041
Buggy source:
/** 
 * For incremental updates, we store the hashes of each ref's latest indexed commit in ES_UPDATEALIAS. The following three methods provide note reading, adding, and deleting functionality.
 */
private String getLatestIndexedHash(Client client){
  try {
    String hash=client.prepareGet(ES_UPDATEALIAS,"String_Node_Str",toString()).get().getSourceAsMap().get("String_Node_Str").toString();
    if (hash != null && hash.length() == 40) {
      return hash;
    }
  }
 catch (  Exception e) {
    log.info("String_Node_Str",toString(),e);
  }
  return EMPTY_TREE;
}

Fixed version (ground truth):
/** 
 * For incremental updates, we store the hashes of each ref's latest indexed commit in ES_UPDATEALIAS. The following three methods provide note reading, adding, and deleting functionality.
 */
private String getLatestIndexedHash(Client client){
  try {
    String hash=client.prepareGet(ES_UPDATEALIAS,"String_Node_Str",toString()).setRouting(getRepoDesc()).get().getSourceAsMap().get("String_Node_Str").toString();
    if (hash != null && hash.length() == 40) {
      return hash;
    }
  }
 catch (  Exception e) {
    log.info("String_Node_Str",toString(),e);
  }
  return EMPTY_TREE;
}
Program: 60042
Project: 60042
Buggy source:
private boolean deleteLatestIndexedNote(Client client){
  try {
    client.prepareDelete(ES_UPDATEALIAS,"String_Node_Str",toString()).get();
  }
 catch (  Exception e) {
    log.warn("String_Node_Str",toString(),e);
    return false;
  }
  return true;
}

Fixed version (ground truth):
private boolean deleteLatestIndexedNote(Client client){
  try {
    client.prepareDelete(ES_UPDATEALIAS,"String_Node_Str",toString()).setRouting(getRepoDesc()).get();
  }
 catch (  Exception e) {
    log.warn("String_Node_Str",toString(),e);
    return false;
  }
  return true;
}
Program: 60043
Project: 60043
Buggy source:
@Override public boolean reindexRepository(final String projectKey,final String repositorySlug){
  GlobalSettings globalSettings=settingsManager.getGlobalSettings();
  if (!globalSettings.getIndexingEnabled()) {
    log.warn("String_Node_Str");
    return false;
  }
  log.warn("String_Node_Str",projectKey,repositorySlug);
  runWithBlockedJobPool(new Runnable(){
    @Override public void run(){
      log.warn("String_Node_Str",projectKey,repositorySlug);
      es.getClient().prepareDeleteByQuery(ES_UPDATEALIAS).setRouting(projectKey + '^' + repositorySlug).setQuery(QueryBuilders.filteredQuery(QueryBuilders.matchAllQuery(),SearchFilters.projectRepositoryFilter(projectKey,repositorySlug))).get();
      log.warn("String_Node_Str",projectKey,repositorySlug);
    }
  }
);
  Repository repository=repositoryServiceManager.getRepositoryService().findBySlug(projectKey,repositorySlug);
  if (repository == null) {
    log.warn("String_Node_Str",projectKey,repositorySlug);
    return false;
  }
  List<Future> futures=new ArrayList<Future>();
  for (  Branch branch : repositoryServiceManager.getBranchMap(repository).values()) {
    futures.add(submitAsyncUpdate(repository,branch.getId(),0));
  }
  for (  Future future : futures) {
    waitForFuture(future);
  }
  log.warn("String_Node_Str",projectKey,repositorySlug);
  return true;
}

Fixed version (ground truth):
@Override public boolean reindexRepository(final String projectKey,final String repositorySlug){
  GlobalSettings globalSettings=settingsManager.getGlobalSettings();
  if (!globalSettings.getIndexingEnabled()) {
    log.warn("String_Node_Str");
    return false;
  }
  log.warn("String_Node_Str",projectKey,repositorySlug);
  log.warn("String_Node_Str",projectKey,repositorySlug);
  for (int i=0; i < 5; ++i) {
    es.getClient().prepareDeleteByQuery(ES_UPDATEALIAS).setRouting(projectKey + '^' + repositorySlug).setQuery(QueryBuilders.filteredQuery(QueryBuilders.matchAllQuery(),SearchFilters.projectRepositoryFilter(projectKey,repositorySlug))).get();
    try {
      Thread.sleep(200);
    }
 catch (    InterruptedException e) {
      log.warn("String_Node_Str",e);
    }
  }
  log.warn("String_Node_Str",projectKey,repositorySlug);
  Repository repository=repositoryServiceManager.getRepositoryService().findBySlug(projectKey,repositorySlug);
  if (repository == null) {
    log.warn("String_Node_Str",projectKey,repositorySlug);
    return false;
  }
  List<Future> futures=new ArrayList<Future>();
  for (  Branch branch : repositoryServiceManager.getBranchMap(repository).values()) {
    futures.add(submitAsyncUpdate(repository,branch.getId(),0));
  }
  for (  Future future : futures) {
    waitForFuture(future);
  }
  log.warn("String_Node_Str",projectKey,repositorySlug);
  return true;
}
Program: 60044
Project: 60044
Buggy source:
@Override public void run(){
  acquireLock(job);
  semaphore.acquireUninterruptibly();
  final GlobalSettings globalSettings=settingsManager.getGlobalSettings();
  if (!globalSettings.getIndexingEnabled()) {
    log.warn("String_Node_Str",job.toString());
    return;
  }
  try {
    if (reindex) {
      job.doReindex(gitScm,globalSettings);
    }
 else {
      job.doUpdate(gitScm,globalSettings);
    }
  }
 catch (  Throwable e) {
    log.error("String_Node_Str",job.toString(),e);
  }
 finally {
    releaseLock(job);
    semaphore.release();
  }
}

Fixed version (ground truth):
@Override public void run(){
  acquireLock(job);
  semaphore.acquireUninterruptibly();
  try {
    final GlobalSettings globalSettings=settingsManager.getGlobalSettings();
    if (!globalSettings.getIndexingEnabled()) {
      log.warn("String_Node_Str",job.toString());
      return;
    }
    if (reindex) {
      job.doReindex(gitScm,globalSettings);
    }
 else {
      job.doUpdate(gitScm,globalSettings);
    }
  }
 catch (  Throwable e) {
    log.error("String_Node_Str",job.toString(),e);
  }
 finally {
    releaseLock(job);
    semaphore.release();
  }
}
Program: 60045
Project: 60045
Buggy source:
/** 
 * Returns a new runnable that executes a search updater job.
 */
private Runnable getJobRunnable(final SearchUpdateJob job,final boolean reindex){
  return new Runnable(){
    @Override public void run(){
      acquireLock(job);
      semaphore.acquireUninterruptibly();
      final GlobalSettings globalSettings=settingsManager.getGlobalSettings();
      if (!globalSettings.getIndexingEnabled()) {
        log.warn("String_Node_Str",job.toString());
        return;
      }
      try {
        if (reindex) {
          job.doReindex(gitScm,globalSettings);
        }
 else {
          job.doUpdate(gitScm,globalSettings);
        }
      }
 catch (      Throwable e) {
        log.error("String_Node_Str",job.toString(),e);
      }
 finally {
        releaseLock(job);
        semaphore.release();
      }
    }
  }
;
}

Fixed version (ground truth):
/** 
 * Returns a new runnable that executes a search updater job.
 */
private Runnable getJobRunnable(final SearchUpdateJob job,final boolean reindex){
  return new Runnable(){
    @Override public void run(){
      acquireLock(job);
      semaphore.acquireUninterruptibly();
      try {
        final GlobalSettings globalSettings=settingsManager.getGlobalSettings();
        if (!globalSettings.getIndexingEnabled()) {
          log.warn("String_Node_Str",job.toString());
          return;
        }
        if (reindex) {
          job.doReindex(gitScm,globalSettings);
        }
 else {
          job.doUpdate(gitScm,globalSettings);
        }
      }
 catch (      Throwable e) {
        log.error("String_Node_Str",job.toString(),e);
      }
 finally {
        releaseLock(job);
        semaphore.release();
      }
    }
  }
;
}
Program: 60046
Project: 60046
Buggy source:
boolean handle(HttpServerExchange exchange,Route fn,Renderer<?> renderer) throws Exception {
  Request request=exchange.getAttachment(Core.REQUEST);
  Response response=exchange.getAttachment(Core.RESPONSE);
  Object model=fn.handle(request,response);
  if (model != null) {
    if (model instanceof Optional) {
      @SuppressWarnings("String_Node_Str") Optional<Object> opt=(Optional<Object>)model;
      model=opt.map(v -> v).orElse(null);
    }
    if (model instanceof Integer) {
      return handle((Integer)model,exchange);
    }
    if (contains(model.getClass()) == false) {
      resolve(renderer,exchange).render(model,exchange);
      return true;
    }
  }
  return handle(exchange.getResponseCode(),exchange);
}

Fixed version (ground truth):
boolean handle(HttpServerExchange exchange,Route fn,Renderer<?> renderer) throws Exception {
  Request request=exchange.getAttachment(Core.REQUEST);
  Response response=exchange.getAttachment(Core.RESPONSE);
  Object model=fn.handle(request,response);
  if (model != null) {
    if (model instanceof Optional) {
      @SuppressWarnings("String_Node_Str") Optional<Object> opt=(Optional<Object>)model;
      model=opt.map(v -> v).orElse(null);
    }
    if (model instanceof Integer) {
      return handle((Integer)model,exchange);
    }
    if (model instanceof ExchangeState) {
      return true;
    }
    if (contains(model.getClass()) == false) {
      resolve(renderer,exchange).render(model,exchange);
      return true;
    }
  }
  return handle(exchange.getResponseCode(),exchange);
}
Program: 60047
Project: 60047
Buggy source:
public static List<String> getStartupURLs(){
  List<String> urls=new ArrayList<String>();
  try (Connection conn=DriverManager.getConnection(SQLiteCommon.getSettingsDirectory());PreparedStatement pstmt=conn.prepareStatement("String_Node_Str")){
    ResultSet rs=pstmt.executeQuery();
    while (rs != null && rs.next()) {
      urls.add(rs.getString(1));
    }
  }
 catch (  Exception e) {
    logger.error(e.getMessage());
  }
  return urls;
}

Fixed version (ground truth):
public static List<String> getStartupURLs(){
  List<String> urls=new ArrayList<String>();
  try (Connection conn=DriverManager.getConnection(SQLiteCommon.getSettingsDirectory());PreparedStatement pstmt=conn.prepareStatement("String_Node_Str")){
    ResultSet rs=pstmt.executeQuery();
    while (rs != null && rs.next()) {
      urls.add(rs.getString(1));
    }
  }
 catch (  Exception e) {
    logger.error(e.getMessage());
  }
  if (urls.isEmpty()) {
    urls.add("String_Node_Str");
  }
  return urls;
}
Program: 60048
Project: 60048
Buggy source:
public static Rectangle getInitialWindowBounds(){
  Rectangle bounds=new Rectangle(100,100);
  return bounds;
}

Fixed version (ground truth):
public static Rectangle getInitialWindowBounds(){
  Rectangle bounds=GraphicsEnvironment.getLocalGraphicsEnvironment().getMaximumWindowBounds();
  return bounds;
}
Program: 60049
Project: 60049
Buggy source:
public static void insertUserAgent(String msie,String mozilla,boolean incluedeMsie){
  try (Connection conn=DriverManager.getConnection(SQLiteCommon.getSettingsDirectory());PreparedStatement pstmt=conn.prepareStatement("String_Node_Str")){
    pstmt.setString(2,msie);
    pstmt.setString(2,mozilla);
    pstmt.setInt(3,incluedeMsie ? 1 : 0);
    pstmt.executeUpdate();
  }
 catch (  Exception e) {
    logger.error(e.getMessage());
  }
}

Fixed version (ground truth):
public static void insertUserAgent(String msie,String mozilla,boolean incluedeMsie){
  try (Connection conn=DriverManager.getConnection(SQLiteCommon.getSettingsDirectory());PreparedStatement pstmt=conn.prepareStatement("String_Node_Str")){
    pstmt.setString(1,msie);
    pstmt.setString(2,mozilla);
    pstmt.setInt(3,incluedeMsie ? 1 : 0);
    pstmt.executeUpdate();
  }
 catch (  Exception e) {
    logger.error(e.getMessage());
  }
}
Program: 60050
Project: 60050
Buggy source:
public void createDatabase(){
  String urlDatabase=SQLiteCommon.getSettingsDirectory();
  File f=new File(SQLiteCommon.getDirectory());
  if (!f.exists()) {
    try (Connection conn=DriverManager.getConnection(urlDatabase);Statement stmt=conn.createStatement()){
      createTable(urlDatabase,LOOK_AND_FEEL);
      createTable(urlDatabase,SEARCH);
      createTable(urlDatabase,COLOR);
      createTable(urlDatabase,FONT);
      createTable(urlDatabase,FONT_SIZE);
      createTable(urlDatabase,BOOKMARKS);
      createTable(urlDatabase,CONNECTION);
      createTable(urlDatabase,HOST);
      createTable(urlDatabase,COOKIE);
    }
 catch (    Exception e) {
      logger.error(e.getMessage());
    }
  }
}

Fixed version (ground truth):
public void createDatabase(){
  String urlDatabase=SQLiteCommon.getSettingsDirectory();
  File f=new File(SQLiteCommon.getDirectory());
  if (!f.exists()) {
    try (Connection conn=DriverManager.getConnection(urlDatabase);Statement stmt=conn.createStatement()){
      createTable(urlDatabase,LOOK_AND_FEEL);
      createTable(urlDatabase,SEARCH);
      createTable(urlDatabase,COLOR);
      createTable(urlDatabase,FONT);
      createTable(urlDatabase,FONT_SIZE);
      createTable(urlDatabase,BOOKMARKS);
      createTable(urlDatabase,CONNECTION);
      createTable(urlDatabase,HOST);
      createTable(urlDatabase,COOKIE);
      createTable(urlDatabase,STARTUP);
      createTable(urlDatabase,USER_AGENT);
      createTable(urlDatabase,NETWORK);
      createTable(urlDatabase,SIZE);
      populateColorTable(urlDatabase);
      populateFontTable(urlDatabase);
      populateFontSizeTable(urlDatabase);
      populateSearchEngine(urlDatabase);
      populateUserAgent(urlDatabase);
      populateColorNetwork(urlDatabase);
    }
 catch (    Exception e) {
      logger.error(e.getMessage());
    }
  }
}
Program: 60051
Project: 60051
Buggy source:
@Override public void windowClosing(NavigatorWindow wcontext){
  NavigationHistory.addAsRecent(wcontext.getCurrentNavigationEntry().getUrl());
}

Fixed version (ground truth):
@Override public void windowClosing(NavigatorWindow wcontext){
  if (wcontext != null && wcontext.getCurrentNavigationEntry() != null) {
    URL url=wcontext.getCurrentNavigationEntry().getUrl();
    if (url != null)     NavigationHistory.addAsRecent(wcontext.getCurrentNavigationEntry().getUrl());
  }
}
Program: 60052
Project: 60052
Buggy source:
/** 
 * Sets the strings from text.
 * @param text the String.valueOfs from text
 */
public void setStringsFromText(String text){
  try {
    BufferedReader reader=new BufferedReader(new StringReader(text));
    String line;
    ArrayList<String> stringsAL=new ArrayList<String>();
    while ((line=reader.readLine()) != null) {
      stringsAL.add(line);
    }
    this.setStrings(stringsAL.toArray(new String[0]));
  }
 catch (  IOException ioe) {
    throw new IllegalStateException("String_Node_Str",ioe);
  }
}

Fixed version (ground truth):
/** 
 * Sets the strings from text.
 * @param text the String.valueOfs from text
 */
public void setStringsFromText(String text){
  try {
    BufferedReader reader=new BufferedReader(new StringReader(text));
    String line;
    ArrayList<String> stringsAL=new ArrayList<String>();
    while ((line=reader.readLine()) != null) {
      stringsAL.add(line);
    }
    this.setStrings(stringsAL);
  }
 catch (  IOException ioe) {
    throw new IllegalStateException("String_Node_Str",ioe);
  }
}
Program: 60053
Project: 60053
Buggy source:
/** 
 * Sets the strings.
 * @param strings the String.valueOfs
 */
public void setStrings(String[] strings){
  this.strings=strings;
  JComboBox<String> comboBox=this.comboBox;
  comboBox.removeAllItems();
  for (  String string : strings) {
    comboBox.addItem(string);
  }
}

Fixed version (ground truth):
/** 
 * Sets the strings.
 * @param strings the String.valueOfs
 */
public void setStrings(List<String> strings){
  this.strings=strings;
  JComboBox<String> comboBox=this.comboBox;
  comboBox.removeAllItems();
  for (  String string : strings) {
    comboBox.addItem(string);
  }
}
Program: 60054
Project: 60054
Buggy source:
/** 
 * Gets the strings as text.
 * @return the strings as text
 */
public String getStringsAsText(){
  String lineSeparator=System.getProperty("String_Node_Str");
  String[] strings=this.strings;
  if (strings == null) {
    return null;
  }
  StringBuilder buffer=new StringBuilder();
  for (  String string : strings) {
    buffer.append(string);
    buffer.append(lineSeparator);
  }
  return buffer.toString();
}

Fixed version (ground truth):
/** 
 * Gets the strings as text.
 * @return the strings as text
 */
public String getStringsAsText(){
  String lineSeparator=System.getProperty("String_Node_Str");
  List<String> strings=this.strings;
  if (strings == null) {
    return null;
  }
  StringBuilder buffer=new StringBuilder();
  for (  String string : strings) {
    buffer.append(string);
    buffer.append(lineSeparator);
  }
  return buffer.toString();
}
Program: 60055
Project: 60055
Buggy source:
/** 
 * Gets the strings.
 * @return the strings
 */
public String[] getStrings(){
  return this.strings;
}

Fixed version (ground truth):
/** 
 * Gets the strings.
 * @return the strings
 */
public List<String> getStrings(){
  return this.strings;
}
Program: 60056
Project: 60056
Buggy source:
/** 
 * Gets the network box.
 * @return the network box
 */
private Component getNetworkBox(){
  JPanel groupBox=new JPanel();
  groupBox.setPreferredSize(new Dimension(400,100));
  groupBox.setLayout(new BoxLayout(groupBox,BoxLayout.Y_AXIS));
  groupBox.setBorder(new TitledBorder(new EtchedBorder(),"String_Node_Str"));
  groupBox.add(this.getJSCheckBoxPanel());
  groupBox.add(this.getCSSCheckBoxPanel());
  return groupBox;
}

Fixed version (ground truth):
/** 
 * Gets the network box.
 * @return the network box
 */
private Component getNetworkBox(){
  JPanel groupBox=new JPanel();
  groupBox.setPreferredSize(new Dimension(400,100));
  groupBox.setLayout(new BoxLayout(groupBox,BoxLayout.Y_AXIS));
  groupBox.setBorder(new TitledBorder(new EtchedBorder(),"String_Node_Str"));
  groupBox.add(this.getJSCheckBoxPanel());
  groupBox.add(this.getCSSCheckBoxPanel());
  groupBox.add(this.getCookiePanel());
  groupBox.add(this.getCachePanel());
  groupBox.add(this.getNavigationPanel());
  return groupBox;
}
Program: 60057
Project: 60057
Buggy source:
/** 
 * Load settings.
 */
private void loadSettings(){
  GeneralSettings network=GeneralSettings.getNetwork();
  this.javscriptPanel.setSelected(network.isJs());
  this.cssPanel.setSelected(network.isCss());
  this.cookiePanel.setSelected(network.isCookie());
  this.cachePanel.setSelected(network.isCache());
  this.navigationPanel.setSelected(network.isNavigation());
  GeneralSettings userAgent=GeneralSettings.getUserAgent();
  this.ieSpoofPanel.setSelected(userAgent.isIncludeIE());
  this.ieVersionField.setValue(userAgent.getIeVersion());
  this.mozillaVersionField.setValue(userAgent.getMozVersion());
  this.ieSpoofPanel.revalidate();
  this.javscriptPanel.revalidate();
  this.cssPanel.revalidate();
  this.cookiePanel.revalidate();
  this.cachePanel.revalidate();
  this.navigationPanel.revalidate();
  this.networkPanel.revalidate();
}

Fixed version (ground truth):
/** 
 * Load settings.
 */
private void loadSettings(){
  GeneralSettings network=GeneralSettings.getNetwork();
  this.javscriptPanel.setSelected(network.isJs());
  this.cssPanel.setSelected(network.isCss());
  this.cookiePanel.setSelected(network.isCookie());
  this.cachePanel.setSelected(network.isCache());
  this.navigationPanel.setSelected(network.isNavigation());
  GeneralSettings userAgent=GeneralSettings.getUserAgent();
  this.ieSpoofPanel.setSelected(userAgent.isIncludeIE());
  this.ieVersionField.setValue(userAgent.getIeVersion());
  this.mozillaVersionField.setValue(userAgent.getMozVersion());
  this.ieSpoofPanel.revalidate();
  this.javscriptPanel.revalidate();
  this.cssPanel.revalidate();
  this.cookiePanel.revalidate();
  this.cachePanel.revalidate();
  this.navigationPanel.revalidate();
  this.networkPanel.revalidate();
  this.startupPagesStringListControl.setStrings(GeneralSettings.getStartupURLs());
}
Program: 60059
Project: 60059
Buggy source:
@Override public String getlineHeight(){
  AbstractCSSProperties props=this.getCssProperties();
  RenderState prs=this.prevRenderState;
  String lh=props == null ? null : props.getLineHeight();
  if (this.iLineHeight != null) {
    return this.iLineHeight;
  }
  if (lh == null) {
    if (prs != null) {
      this.iLineHeight=prs.getlineHeight();
      return this.iLineHeight;
    }
    this.iLineHeight=DEFAULT_LINE_HEIGHT;
    return DEFAULT_LINE_HEIGHT;
  }
switch (lh) {
case INHERIT:
    return this.getPreviousRenderState().getlineHeight();
case NORMAL:
  return String.valueOf(1.2f * LAFSettings.getInstance().getFontSize());
case INITIAL:
return String.valueOf(prs.getFontMetrics().getHeight());
default :
int ilh=HtmlValues.getPixelSize(lh,this,1);
return String.valueOf(ilh * LAFSettings.getInstance().getFontSize());
}
}

Fixed version (ground truth):
@Override public String getlineHeight(){
  AbstractCSSProperties props=this.getCssProperties();
  RenderState prs=this.prevRenderState;
  String token=props == null ? null : props.getLineHeight();
  if (this.iLineHeight != null) {
    return this.iLineHeight;
  }
  if (token == null) {
    if (prs != null) {
      this.iLineHeight=prs.getlineHeight();
      return this.iLineHeight;
    }
    this.iLineHeight=DEFAULT_LINE_HEIGHT;
    return DEFAULT_LINE_HEIGHT;
  }
switch (token) {
case INHERIT:
    return this.getPreviousRenderState().getlineHeight();
case NORMAL:
  return String.valueOf(1.2f * LAFSettings.getInstance().getFontSize());
case INITIAL:
return String.valueOf(prs.getFontMetrics().getHeight());
default :
if (token.endsWith("String_Node_Str") || token.endsWith("String_Node_Str") || token.endsWith("String_Node_Str")|| token.endsWith("String_Node_Str")|| token.endsWith("String_Node_Str")|| token.endsWith("String_Node_Str")|| token.endsWith("String_Node_Str")) {
return String.valueOf(HtmlValues.getPixelSize(token,this,1));
}
 else {
return String.valueOf(HtmlValues.getPixelSize(token,this,1) * this.iFont.getSize());
}
}
}
Program: 60060
Project: 60060
Buggy source:
@Override public void reset(int availWidth,int availHeight){
}

Fixed version (ground truth):
@Override public void reset(int availWidth,int availHeight){
  this.availWidth=availWidth;
  this.availHeight=availHeight;
  RUIControl ruiControl=this.ruiControl;
  if (ruiControl != null) {
    ModelNode node=ruiControl.getModelNode();
    HTMLElement element=(HTMLElement)node;
    RenderState renderState=node.getRenderState();
    HtmlInsets insets=null;
    String marginwidth=element.getAttribute(MARGINWIDTH);
    String marginheight=element.getAttribute(MARGINHEIGHT);
    if (!Strings.isBlank(marginwidth)) {
      if (insets == null) {
        insets=new HtmlInsets();
      }
      marginwidth=marginwidth.trim();
      if (marginwidth.endsWith("String_Node_Str")) {
        int value;
        try {
          value=Integer.parseInt(marginwidth.substring(0,marginwidth.length() - 1));
        }
 catch (        NumberFormatException nfe) {
          value=0;
        }
        insets.left=value;
        insets.right=value;
        insets.leftType=HtmlInsets.TYPE_PERCENT;
        insets.rightType=HtmlInsets.TYPE_PERCENT;
      }
 else {
        int value;
        try {
          value=Integer.parseInt(marginwidth);
        }
 catch (        NumberFormatException nfe) {
          value=0;
        }
        insets.left=value;
        insets.right=value;
        insets.leftType=HtmlInsets.TYPE_PIXELS;
        insets.rightType=HtmlInsets.TYPE_PIXELS;
      }
    }
    if (!Strings.isBlank(marginheight)) {
      if (insets == null) {
        insets=new HtmlInsets();
      }
      marginheight=marginheight.trim();
      if (marginheight.endsWith("String_Node_Str")) {
        int value;
        try {
          value=Integer.parseInt(marginheight.substring(0,marginheight.length() - 1));
        }
 catch (        NumberFormatException nfe) {
          value=0;
        }
        insets.top=value;
        insets.bottom=value;
        insets.topType=HtmlInsets.TYPE_PERCENT;
        insets.bottomType=HtmlInsets.TYPE_PERCENT;
      }
 else {
        int value;
        try {
          value=Integer.parseInt(marginheight);
        }
 catch (        NumberFormatException nfe) {
          value=0;
        }
        insets.top=value;
        insets.bottom=value;
        insets.topType=HtmlInsets.TYPE_PIXELS;
        insets.bottomType=HtmlInsets.TYPE_PIXELS;
      }
    }
    Insets awtMarginInsets=insets == null ? null : insets.getSimpleAWTInsets(availWidth,availHeight);
    int overflowX=renderState.getOverflowX();
    int overflowY=renderState.getOverflowY();
    if (awtMarginInsets != null) {
      this.browserFrame.setDefaultMarginInsets(awtMarginInsets);
    }
    if (overflowX != RenderState.OVERFLOW_NONE) {
      this.browserFrame.setDefaultOverflowX(overflowX);
    }
    if (overflowY != RenderState.OVERFLOW_NONE) {
      this.browserFrame.setDefaultOverflowY(overflowY);
    }
  }
}
Program: 60061
Project: 60061
Buggy source:
@Override public int getAlignYPercent(){
}

Fixed version (ground truth):
@Override public int getAlignYPercent(){
  int ayp=this.alignYPercent;
  if (ayp != -1) {
    return ayp;
  }
  CSS3Properties props=this.getCssProperties();
  if (props != null) {
    String textAlign=props.getVerticalAlign();
    if (textAlign != null && textAlign.length() != 0) {
      return super.getAlignYPercent();
    }
  }
  String valign=this.element.getAttribute(VALIGN);
  HTMLElement element=this.element;
  HTMLElement rowElement=null;
  Object parent=element.getParentNode();
  if (parent instanceof HTMLElement) {
    rowElement=(HTMLElement)parent;
  }
  if (Strings.isBlank(valign)) {
    if (rowElement != null) {
      valign=rowElement.getAttribute(VALIGN);
      if (Strings.isBlank(valign)) {
        valign=null;
      }
    }
 else {
      valign=null;
    }
  }
  if (valign == null) {
    ayp=50;
  }
 else   if ("String_Node_Str".equalsIgnoreCase(valign)) {
    ayp=0;
  }
 else   if ("String_Node_Str".equalsIgnoreCase(valign) || "String_Node_Str".equalsIgnoreCase(valign)) {
    ayp=50;
  }
 else   if ("String_Node_Str".equalsIgnoreCase(valign)) {
    ayp=100;
  }
 else {
    ayp=50;
  }
  this.alignYPercent=ayp;
  return ayp;
}
Program: 60062
Project: 60062
Buggy source:
/** 
 * Instantiates a new text viewer window.
 */
public InfoPageWindow(List<MetaInfo> infoList,List<MetaInfo> mediaList,List<MetaInfo> cssList,List<MetaInfo> jsList){
  super("String_Node_Str");
  setResizable(true);
  setLocationRelativeTo(null);
  JTabbedPane tabbedPane=new JTabbedPane();
  tabbedPane.addTab("String_Node_Str",infoContent(infoList));
  tabbedPane.addTab("String_Node_Str",mediaContent(mediaList));
  tabbedPane.addTab("String_Node_Str",content(cssList,SyntaxConstants.SYNTAX_STYLE_CSS));
  tabbedPane.addTab("String_Node_Str",content(jsList,SyntaxConstants.SYNTAX_STYLE_JAVASCRIPT));
  add(tabbedPane,BorderLayout.CENTER);
}

Fixed version (ground truth):
/** 
 * Instantiates a new text viewer window.
 */
public InfoPageWindow(List<MetaInfo> infoList,List<MetaInfo> mediaList,List<MetaInfo> cssList,List<MetaInfo> jsList){
  super("String_Node_Str");
  setResizable(true);
  setLocationRelativeTo(null);
  ImageIcon info=new ImageIcon(getClass().getResource("String_Node_Str"));
  ImageIcon media=new ImageIcon(getClass().getResource("String_Node_Str"));
  ImageIcon css=new ImageIcon(getClass().getResource("String_Node_Str"));
  ImageIcon js=new ImageIcon(getClass().getResource("String_Node_Str"));
  Image img=info.getImage();
  Image newimg=img.getScaledInstance(30,30,Image.SCALE_SMOOTH);
  info=new ImageIcon(newimg);
  img=media.getImage();
  newimg=img.getScaledInstance(30,30,Image.SCALE_SMOOTH);
  media=new ImageIcon(newimg);
  img=css.getImage();
  newimg=img.getScaledInstance(30,30,Image.SCALE_SMOOTH);
  css=new ImageIcon(newimg);
  img=js.getImage();
  newimg=img.getScaledInstance(30,30,Image.SCALE_SMOOTH);
  js=new ImageIcon(newimg);
  JTabbedPane tabbedPane=new JTabbedPane();
  tabbedPane.setPreferredSize(new Dimension(30,30));
  tabbedPane.addTab("String_Node_Str",info,infoContent(infoList));
  tabbedPane.addTab("String_Node_Str",media,mediaContent(mediaList));
  tabbedPane.addTab("String_Node_Str",css,content(cssList,SyntaxConstants.SYNTAX_STYLE_CSS));
  tabbedPane.addTab("String_Node_Str",js,jsContent(jsList,SyntaxConstants.SYNTAX_STYLE_JAVASCRIPT));
  add(tabbedPane,BorderLayout.CENTER);
}
Program: 60064
Project: 60064
Buggy source:
private String getSourceCode(String href,String syntax){
  SSLCertificate.setCertificate();
  String source="String_Node_Str";
  URL url;
  try {
    url=new URL(href);
    URLConnection connection=url.openConnection();
    connection.setRequestProperty("String_Node_Str",UserAgentContext.DEFAULT_USER_AGENT);
    connection.setRequestProperty("String_Node_Str","String_Node_Str");
    InputStream in=connection.getInputStream();
    byte[] content;
    try {
      content=IORoutines.load(in,8192);
      source=new String(content,"String_Node_Str");
      if (SyntaxConstants.SYNTAX_STYLE_CSS.equals(syntax)) {
        source=source.replace("String_Node_Str","String_Node_Str");
      }
    }
  finally {
      in.close();
    }
  }
 catch (  Exception e) {
    logger.error(e);
  }
  return source;
}

Fixed version (ground truth):
private String getSourceCode(String href,String syntax){
  SSLCertificate.setCertificate();
  String source="String_Node_Str";
  URL url;
  try {
    url=new URL(href);
    URLConnection connection=url.openConnection();
    connection.setRequestProperty("String_Node_Str",UserAgentContext.DEFAULT_USER_AGENT);
    connection.setRequestProperty("String_Node_Str","String_Node_Str");
    InputStream in=connection.getInputStream();
    byte[] content;
    try {
      content=IORoutines.load(in,8192);
      source=new String(content,"String_Node_Str");
      if (SyntaxConstants.SYNTAX_STYLE_CSS.equals(syntax)) {
        source=source.replace("String_Node_Str","String_Node_Str");
      }
    }
  finally {
      in.close();
    }
  }
 catch (  Exception e) {
    logger.error("String_Node_Str",e);
  }
  return source;
}
Program: 60065
Project: 60065
Buggy source:
private JScrollPane infoContent(List<MetaInfo> infoList){
  try {
    Object columnNames[]={"String_Node_Str","String_Node_Str"};
    List<String[]> values=new ArrayList<String[]>();
    for (    MetaInfo info : infoList) {
      if (!Strings.isBlank(info.getName())) {
        values.add(new String[]{info.getName(),info.getContent()});
      }
 else       if (!Strings.isBlank(info.getItemprop())) {
        values.add(new String[]{info.getItemprop(),info.getContent()});
      }
 else       if (!Strings.isBlank(info.getProperty())) {
        values.add(new String[]{info.getProperty(),info.getContent()});
      }
 else       if (!Strings.isBlank(info.getHttpEqui())) {
        values.add(new String[]{info.getHttpEqui(),info.getContent()});
      }
    }
    DefaultTableModel model=new DefaultTableModel(values.toArray(new Object[][]{}),columnNames);
    JTable jtable=new JTable(model);
    jtable.setPreferredScrollableViewportSize(jtable.getPreferredSize());
    jtable.setTableHeader(null);
    jtable.setShowGrid(false);
    return new JScrollPane(jtable);
  }
 catch (  Exception e) {
    logger.error(e);
  }
  return null;
}

Fixed version (ground truth):
private JScrollPane infoContent(List<MetaInfo> infoList){
  try {
    Object columnNames[]={"String_Node_Str","String_Node_Str"};
    List<String[]> values=new ArrayList<String[]>();
    for (    MetaInfo info : infoList) {
      if (!Strings.isBlank(info.getName())) {
        values.add(new String[]{info.getName(),info.getContent()});
      }
 else       if (!Strings.isBlank(info.getItemprop())) {
        values.add(new String[]{info.getItemprop(),info.getContent()});
      }
 else       if (!Strings.isBlank(info.getProperty())) {
        values.add(new String[]{info.getProperty(),info.getContent()});
      }
 else       if (!Strings.isBlank(info.getHttpEqui())) {
        values.add(new String[]{info.getHttpEqui(),info.getContent()});
      }
    }
    DefaultTableModel model=new DefaultTableModel(values.toArray(new Object[][]{}),columnNames);
    JTable jtable=new JTable(model);
    jtable.setPreferredScrollableViewportSize(jtable.getPreferredSize());
    jtable.setTableHeader(null);
    jtable.setShowGrid(false);
    return new JScrollPane(jtable);
  }
 catch (  Exception e) {
    logger.error("String_Node_Str",e);
  }
  return null;
}