nus-yam/ex-repair huggingface dataset:
Program: 98803
Project: 98803
Buggy source:
protected String properTypeName(FieldDoc field){
  String fieldType=field.type().simpleTypeName();
  if (field.type().asParameterizedType() != null) {
    fieldType+="String_Node_Str";
    for (    Type type : field.type().asParameterizedType().typeArguments()) {
      fieldType+=(type.asClassDoc().containingPackage().equals(field.containingPackage()) ? type.simpleTypeName() : type.qualifiedTypeName()) + "String_Node_Str";
    }
    fieldType=fieldType.substring(0,fieldType.length() - 2);
    fieldType+="String_Node_Str";
  }
  if (field.type().isPrimitive() || field.type().asClassDoc().containingPackage().name().equals("String_Node_Str") || field.type().asClassDoc().containingPackage().equals(field.containingClass().containingPackage())|| imports.contains("String_Node_Str" + field.type().qualifiedTypeName() + "String_Node_Str")|| imports.contains("String_Node_Str" + field.type().asClassDoc().containingPackage().name() + "String_Node_Str"+ "String_Node_Str")) {
    if (field.type().asClassDoc().containingClass() != null) {
      return field.type().asClassDoc().containingClass().simpleTypeName() + "String_Node_Str" + field.type().simpleTypeName();
    }
    return field.type().simpleTypeName();
  }
 else {
    return field.type().qualifiedTypeName();
  }
}

Fixed version (ground truth):
protected String properTypeName(FieldDoc field){
  String fieldType=field.type().simpleTypeName();
  if (field.type().asParameterizedType() != null) {
    fieldType+="String_Node_Str";
    for (    Type type : field.type().asParameterizedType().typeArguments()) {
      fieldType+=(type.asClassDoc().containingPackage().equals(field.containingPackage()) ? type.simpleTypeName() : type.qualifiedTypeName()) + "String_Node_Str";
    }
    fieldType=fieldType.substring(0,fieldType.length() - 2);
    fieldType+="String_Node_Str";
  }
  if (field.type().isPrimitive() || field.type().asClassDoc().containingPackage().name().equals("String_Node_Str")) {
    return field.type().simpleTypeName();
  }
 else   if (field.type().asClassDoc().containingPackage().equals(field.containingClass().containingPackage()) || imports.contains("String_Node_Str" + field.type().qualifiedTypeName() + "String_Node_Str") || imports.contains("String_Node_Str" + field.type().asClassDoc().containingPackage().name() + "String_Node_Str"+ "String_Node_Str")) {
    if (field.type().asClassDoc().containingClass() != null) {
      return field.type().asClassDoc().containingClass().simpleTypeName() + "String_Node_Str" + field.type().simpleTypeName();
    }
    return field.type().simpleTypeName();
  }
 else {
    return field.type().qualifiedTypeName();
  }
}
Program: 98804
Project: 98804
Buggy source:
private void storeImage(String url,Bitmap bitmap){
  StoredBitmap storedBitmap=new StoredBitmap(null,url);
  int index=mRecentImages.indexOf(storedBitmap);
  if (index != -1) {
    storedBitmap=mRecentImages.get(index);
    mRecentImages.remove(index);
  }
 else {
    storedBitmap.mBitmap=bitmap;
  }
  while (mRecentImages.size() >= mMaxStoredImages) {
    mRecentImages.removeLast();
  }
  mRecentImages.addFirst(new StoredBitmap(bitmap,url));
}

Fixed version (ground truth):
private void storeImage(String url,Bitmap bitmap){
synchronized (mRecentImages) {
    StoredBitmap storedBitmap=new StoredBitmap(null,url);
    int index=mRecentImages.indexOf(storedBitmap);
    if (index != -1) {
      storedBitmap=mRecentImages.get(index);
      mRecentImages.remove(index);
    }
 else {
      storedBitmap.mBitmap=bitmap;
    }
    while (mRecentImages.size() >= mMaxStoredImages) {
      mRecentImages.removeLast();
    }
    mRecentImages.addFirst(new StoredBitmap(bitmap,url));
  }
}
Program: 98805
Project: 98805
Buggy source:
public void run(){
  if (mBitmap != null) {
    for (    ImageView image : mImageViews) {
      if (image.getTag(R.id.image_tag).equals(mUrl)) {
        displayImage(image,mBitmap,mUrl);
      }
    }
  }
 else {
    if (mController != null) {
      for (      ImageView image : mImageViews) {
        mController.fail(image);
      }
    }
  }
synchronized (mLoadingImages) {
    mLoadingImages.remove(mUrl);
  }
}

Fixed version (ground truth):
public void run(){
  if (mBitmap != null) {
    for (    ImageView image : mImageViews) {
      if (image.getTag(R.id.image_tag).equals(mUrl)) {
        displayImage(image,mBitmap,mUrl);
      }
    }
  }
 else {
    if (mController != null) {
      for (      ImageView image : mImageViews) {
        if (image.getTag(R.id.image_tag).equals(mUrl)) {
          mController.fail(image);
        }
      }
    }
  }
synchronized (mLoadingImages) {
    mLoadingImages.remove(mUrl);
  }
}
Program: 98807
Project: 98807
Buggy source:
public boolean isARR(String[] cleanedTimetable,int index){
  String str=cleanedTimetable[index];
  if (str.equalsIgnoreCase("String_Node_Str")) {
    return true;
  }
 else {
    return false;
  }
}

Fixed version (ground truth):
public boolean isARR(String[] cleanedTimetable,int index){
  String str=cleanedTimetable[index];
  if (str.contains("String_Node_Str")) {
    return true;
  }
 else {
    return false;
  }
}
Program: 98808
Project: 98808
Buggy source:
/** 
 * Parses a time string into the Time object.
 * @param time the time string (ex. 2:20PM)
 * @return the Time object representing the specified time
 */
public Time parseTime(String time){
  String split[]=time.split("String_Node_Str");
  int hour, minute;
  hour=Integer.parseInt(split[0]);
  minute=Integer.parseInt(split[1]);
  String meridiem=time.substring(time.length() - 2);
  if (meridiem.equalsIgnoreCase("String_Node_Str")) {
    hour%=12;
    hour+=12;
  }
  Time timeObj=new Time(hour,minute);
  return timeObj;
}

Fixed version (ground truth):
/** 
 * Parses a time string into the Time object.
 * @param time the time string (ex. 2:20PM)
 * @return the Time object representing the specified time
 */
public Time parseTime(String time){
  String split[]=time.split("String_Node_Str");
  int hour=0, minute=0;
  try {
    hour=Integer.parseInt(split[0]);
    minute=Integer.parseInt(split[1]);
  }
 catch (  Exception e) {
    System.out.println("String_Node_Str");
  }
  String meridiem=time.substring(time.length() - 2);
  if (meridiem.equalsIgnoreCase("String_Node_Str")) {
    hour%=12;
    hour+=12;
  }
  Time timeObj=new Time(hour,minute);
  return timeObj;
}
Program: 98809
Project: 98809
Buggy source:
public static void main(String[] args){
  TimetableLibrary tl=new TimetableLibrary(timetableURL);
  List<Section> sections;
  sections=tl.getSections("String_Node_Str","String_Node_Str","String_Node_Str");
  System.out.println(sections.size());
  for (  Section s : sections) {
    System.out.println(s.getCourse() + "String_Node_Str" + s.getInstructor()+ "String_Node_Str"+ s.getDays()+ "String_Node_Str"+ s.getBegin()+ "String_Node_Str"+ s.getEnd());
  }
}

Fixed version (ground truth):
public static void main(String[] args){
  TimetableLibrary tl=new TimetableLibrary(timetableURL);
  List<Section> sections;
  sections=tl.getSections("String_Node_Str","String_Node_Str","String_Node_Str");
  System.out.println(sections.size());
  for (  Section s : sections) {
    System.out.println(s.getCourse() + "String_Node_Str" + s.getInstructor()+ "String_Node_Str"+ s.getDays()+ "String_Node_Str"+ s.getBegin()+ "String_Node_Str"+ s.getEnd()+ "String_Node_Str"+ s.getExam());
  }
}
Program: 98810
Project: 98810
Buggy source:
private CountDownTimer inicializaContador(){
  return new CountDownTimer(tempoInicial,1000){
    public void onTick(    long tempoMiliseconds){
      if (!marcouFim) {
        Long tempoReal=(tempoMiliseconds / 1000);
        contadorTextView.setText("String_Node_Str" + tempoReal + "String_Node_Str");
        tempoRestante=tempoReal;
      }
    }
    public void onFinish(){
      Servidor.instance().encerrarPartida(getTempoInicial());
      if (!marcouFim) {
        tempoRestante=0L;
        contadorTextView.setText("String_Node_Str");
        jogo.setTempo(tempoRestante);
        mostraDialogSairJogo(msgFimJogo(),fimDeJogoListener());
      }
    }
  }
.start();
}

Fixed version (ground truth):
private CountDownTimer inicializaContador(){
  return new CountDownTimer(configuracao.tempo(),1000){
    public void onTick(    long tempoMiliseconds){
      if (!marcouFim) {
        Long tempoReal=(tempoMiliseconds / 1000);
        contadorTextView.setText("String_Node_Str" + tempoReal + "String_Node_Str");
        tempoRestante=tempoReal;
      }
    }
    public void onFinish(){
      Servidor.instance().encerrarPartida(configuracao.tempo());
      if (!marcouFim) {
        tempoRestante=0L;
        contadorTextView.setText("String_Node_Str");
        jogador.setTempo(tempoRestante);
        mostraDialogSairJogo(msgFimJogo(),fimDeJogoListener());
      }
    }
  }
.start();
}
Program: 98811
Project: 98811
Buggy source:
public void onClick(View v){
  Intent botaoSairIntent=new Intent(getApplicationContext(),AdedonhaActivity.class);
  Servidor.instance().encerrarPartida(getTempoInicial());
  finalizaVariaveisJogo();
  startActivity(botaoSairIntent);
  finish();
}

Fixed version (ground truth):
public void onClick(View v){
  Intent botaoSairIntent=new Intent(getApplicationContext(),AdedonhaActivity.class);
  Servidor.instance().encerrarPartida(configuracao.tempo());
  finalizaVariaveisJogo();
  startActivity(botaoSairIntent);
  finish();
}
Program: 98812
Project: 98812
Buggy source:
private OnClickListener confirmarDialogListener(final Button botaoItem){
  return new OnClickListener(){
    public void onClick(    View v){
      String valorInserido=valorItem.getText().toString();
      if (entradaValida(valorInserido)) {
        mapaResultados.put(botaoItem.getText().toString(),valorInserido);
        botaoItem.getBackground().setColorFilter(new LightingColorFilter(0xFFFFFFFF,0xff0000ff));
        dialog.dismiss();
      }
    }
    private boolean entradaValida(    String valorInserido){
      return valorInserido != null && !valorInserido.trim().equals("String_Node_Str");
    }
  }
;
}

Fixed version (ground truth):
private OnClickListener confirmarDialogListener(final Button botaoItem){
  return new OnClickListener(){
    public void onClick(    View v){
      String valorInserido=valorItem.getText().toString();
      if (entradaValida(valorInserido)) {
        jogador.putResultado(botaoItem.getText().toString(),valorInserido);
        botaoItem.getBackground().setColorFilter(new LightingColorFilter(0xFFFFFFFF,0xff0000ff));
        dialog.dismiss();
      }
    }
    private boolean entradaValida(    String valorInserido){
      return valorInserido != null && !valorInserido.trim().equals("String_Node_Str");
    }
  }
;
}
Program: 98813
Project: 98813
Buggy source:
private void carregaLetra(){
  List<Letra> letras=jogo.getLetrasDesejadas();
  letra=retornaLetra(letras).getDescricao();
}

Fixed version (ground truth):
private void carregaLetra(){
  letra=this.configuracao.letraDaPartida().getDescricao();
}
Program: 98814
Project: 98814
Buggy source:
private ScrollView carregaBotoesItens(){
  List<Letra> itensDesejados=jogo.getItensDesejados();
  ScrollView layout=(ScrollView)View.inflate(this,R.layout.page_jogo_adedonha,null);
  LinearLayout vTblRow=(LinearLayout)layout.findViewById(R.id.group_itens_adedonha);
  for (int i=0; i < itensDesejados.size(); i++) {
    Button botaoItem=new Button(this);
    botaoItem.setVisibility(Button.VISIBLE);
    botaoItem.setText(itensDesejados.get(i).getDescricao());
    botaoItem.setTextSize(24);
    botaoItem.setLayoutParams(new TableRow.LayoutParams(LARGURA_CAIXINHA,ALTURA_CAIXINHA));
    vTblRow.addView(botaoItem);
    listaBotoesItens.add(botaoItem);
  }
  addOnClickListenerBotoes();
  return layout;
}

Fixed version (ground truth):
private ScrollView carregaBotoesItens(){
  List<Letra> itensDesejados=this.configuracao.itensDesejados();
  ScrollView layout=(ScrollView)View.inflate(this,R.layout.page_jogo_adedonha,null);
  LinearLayout vTblRow=(LinearLayout)layout.findViewById(R.id.group_itens_adedonha);
  for (int i=0; i < itensDesejados.size(); i++) {
    Button botaoItem=new Button(this);
    botaoItem.setVisibility(Button.VISIBLE);
    botaoItem.setText(itensDesejados.get(i).getDescricao());
    botaoItem.setTextSize(24);
    botaoItem.setLayoutParams(new TableRow.LayoutParams(LARGURA_CAIXINHA,ALTURA_CAIXINHA));
    vTblRow.addView(botaoItem);
    listaBotoesItens.add(botaoItem);
  }
  addOnClickListenerBotoes();
  return layout;
}
Program: 98815
Project: 98815
Buggy source:
private OnClickListener botaoSairListener(){
  return new OnClickListener(){
    public void onClick(    View v){
      Intent botaoSairIntent=new Intent(getApplicationContext(),AdedonhaActivity.class);
      Servidor.instance().encerrarPartida(getTempoInicial());
      finalizaVariaveisJogo();
      startActivity(botaoSairIntent);
      finish();
    }
  }
;
}

Fixed version (ground truth):
private OnClickListener botaoSairListener(){
  return new OnClickListener(){
    public void onClick(    View v){
      Intent botaoSairIntent=new Intent(getApplicationContext(),AdedonhaActivity.class);
      Servidor.instance().encerrarPartida(configuracao.tempo());
      finalizaVariaveisJogo();
      startActivity(botaoSairIntent);
      finish();
    }
  }
;
}
Program: 98816
Project: 98816
Buggy source:
private void recuperaIntent(){
  Intent intent=getIntent();
  jogo=(Jogo)intent.getSerializableExtra("String_Node_Str");
  setTempoInicial(intent.getLongExtra("String_Node_Str",120000L));
}

Fixed version (ground truth):
private void recuperaIntent(){
  Intent intent=getIntent();
  this.configuracao=(ConfiguracaoParatida)intent.getSerializableExtra(ConfiguracaoParatida.CONFIGURACAO);
  this.jogador=(Jogador)intent.getSerializableExtra(Jogador.JOGADOR);
}
Program: 98817
Project: 98817
Buggy source:
private void atualizaNomeJogador(){
  nomeJogadorTextView=(TextView)findViewById(R.id.text_view_jogador_adedonha);
  nomeJogadorTextView.setText("String_Node_Str" + jogo.getNomeJogador());
  nomeJogadorTextView.setFocusableInTouchMode(true);
  nomeJogadorTextView.requestFocus();
}

Fixed version (ground truth):
private void atualizaNomeJogador(){
  nomeJogadorTextView=(TextView)findViewById(R.id.text_view_jogador_adedonha);
  nomeJogadorTextView.setText("String_Node_Str" + this.jogador.nome());
  nomeJogadorTextView.setFocusableInTouchMode(true);
  nomeJogadorTextView.requestFocus();
}
Program: 98818
Project: 98818
Buggy source:
public void onFinish(){
  Servidor.instance().encerrarPartida(getTempoInicial());
  if (!marcouFim) {
    tempoRestante=0L;
    contadorTextView.setText("String_Node_Str");
    jogo.setTempo(tempoRestante);
    mostraDialogSairJogo(msgFimJogo(),fimDeJogoListener());
  }
}

Fixed version (ground truth):
public void onFinish(){
  Servidor.instance().encerrarPartida(configuracao.tempo());
  if (!marcouFim) {
    tempoRestante=0L;
    contadorTextView.setText("String_Node_Str");
    jogador.setTempo(tempoRestante);
    mostraDialogSairJogo(msgFimJogo(),fimDeJogoListener());
  }
}
Program: 98819
Project: 98819
Buggy source:
private OnClickListener botaoVerificarListener(){
  return new OnClickListener(){
    public void onClick(    View v){
      Servidor.instance().encerrarPartida(getTempoInicial());
      finalizaVariaveisJogo();
      mostraDialogSairJogo(msgFimJogo(),listenerSair());
    }
  }
;
}

Fixed version (ground truth):
private OnClickListener botaoVerificarListener(){
  return new OnClickListener(){
    public void onClick(    View v){
      Servidor.instance().encerrarPartida(configuracao.tempo());
      finalizaVariaveisJogo();
      mostraDialogSairJogo(msgFimJogo(),listenerSair());
    }
  }
;
}
Program: 98820
Project: 98820
Buggy source:
public void configurarRespostas(){
  marcouFim=true;
  contadorTextView.setText("String_Node_Str");
  System.out.println("String_Node_Str" + tempoRestante);
  String nivelJogo=jogo.getNivelString();
  User jogador=new User(jogo.getNomeJogador(),0,tempoRestante,TIPO_ADEDONHA);
  intentRespostas.putExtra("String_Node_Str",jogador);
  intentRespostas.putExtra("String_Node_Str",tempoRestante);
  intentRespostas.putExtra("String_Node_Str",nivelJogo);
  intentRespostas.putExtra("String_Node_Str",letra);
  intentRespostas.putExtra("String_Node_Str",mapaResultados);
  mostraDialogSairJogo(msgFimJogo(),fimDeJogoListener());
}

Fixed version (ground truth):
public void configurarRespostas(){
  marcouFim=true;
  contadorTextView.setText("String_Node_Str");
  System.out.println("String_Node_Str" + tempoRestante);
  intentRespostas.putExtra(Jogador.JOGADOR,this.jogador);
  intentRespostas.putExtra(ConfiguracaoParatida.CONFIGURACAO,this.configuracao);
  mostraDialogSairJogo(msgFimJogo(),fimDeJogoListener());
}
Program: 98821
Project: 98821
Buggy source:
public String msgFimJogo(){
  return "String_Node_Str" + "String_Node_Str" + jogo.getNomeJogador() + "String_Node_Str"+ tempoRestante+ "String_Node_Str";
}

Fixed version (ground truth):
public String msgFimJogo(){
  return "String_Node_Str" + "String_Node_Str" + this.jogador.nome() + "String_Node_Str"+ tempoRestante+ "String_Node_Str";
}
Program: 98822
Project: 98822
Buggy source:
@Override protected void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  setContentView(R.layout.pre_jogo_page);
  contadorTextView=(TextView)findViewById(R.id.pre_jogo_contador);
  setContador(inicializaContador());
  Intent intent=getIntent();
  jogo=(Jogo)intent.getSerializableExtra("String_Node_Str");
  tempoDesejado=intent.getLongExtra("String_Node_Str",180000);
  preJogoIntent=new Intent(PreJogoAdedonhaActivity.this,JogoAdedonhaActivity.class);
  preJogoIntent.putExtra("String_Node_Str",jogo);
  preJogoIntent.putExtra("String_Node_Str",tempoDesejado);
}

Fixed version (ground truth):
@Override protected void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  setContentView(R.layout.pre_jogo_page);
  contadorTextView=(TextView)findViewById(R.id.pre_jogo_contador);
  setContador(inicializaContador());
  Intent intent=getIntent();
  ConfiguracaoParatida configuracao=(ConfiguracaoParatida)intent.getSerializableExtra(ConfiguracaoParatida.CONFIGURACAO);
  Jogador jogador=(Jogador)intent.getSerializableExtra(Jogador.JOGADOR);
  this.preJogoIntent=new Intent(PreJogoAdedonhaActivity.this,JogoAdedonhaActivity.class);
  this.preJogoIntent.putExtra(Jogador.JOGADOR,jogador);
  this.preJogoIntent.putExtra(ConfiguracaoParatida.CONFIGURACAO,configuracao);
}
Program: 98823
Project: 98823
Buggy source:
@SuppressWarnings({"String_Node_Str"}) @Override protected void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  setContentView(R.layout.page_conferir_adedonha);
  Intent intent=getIntent();
  setLetraJogo(intent.getStringExtra("String_Node_Str"));
  respostas=(HashMap<String,String>)intent.getSerializableExtra("String_Node_Str");
  ScrollView layout=carregaRespostas();
  System.out.println("String_Node_Str" + respostas.size());
  User jogador=(User)intent.getSerializableExtra("String_Node_Str");
  tempoRestante=intent.getLongExtra("String_Node_Str",0L);
  setContentView(layout);
  apresentaDadosJogador(jogador);
  inicializaBotaoVerificado();
}

Fixed version (ground truth):
@SuppressWarnings({"String_Node_Str"}) @Override protected void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  setContentView(R.layout.page_conferir_adedonha);
  Intent intent=getIntent();
  this.configuracao=(ConfiguracaoParatida)intent.getSerializableExtra(ConfiguracaoParatida.CONFIGURACAO);
  this.jogador=(Jogador)intent.getSerializableExtra(Jogador.JOGADOR);
  ScrollView layout=carregaRespostas();
  setContentView(layout);
  apresentaDadosJogador();
  inicializaBotaoVerificado();
}
Program: 98824
Project: 98824
Buggy source:
private ScrollView carregaRespostas(){
  ScrollView layout=(ScrollView)View.inflate(this,R.layout.page_conferir_adedonha,null);
  LinearLayout vTblRow=(LinearLayout)layout.findViewById(R.id.group_respostas_adedonha);
  List<String> itensList=new ArrayList<String>();
  Set<String> itens=respostas.keySet();
  for (  String iten : itens) {
    itensList.add(iten);
  }
  List<String> valoresList=new ArrayList<String>();
  Collection<String> valores=(Collection<String>)respostas.values();
  for (  String valor : valores) {
    valoresList.add(valor);
  }
  for (int i=0; i < respostas.size(); i++) {
    TextView resultadoTextView=new TextView(this);
    resultadoTextView.setText(itensList.get(i) + "String_Node_Str" + valoresList.get(i));
    resultadoTextView.setTextAppearance(getApplicationContext(),R.style.negrito);
    vTblRow.addView(resultadoTextView);
  }
  return layout;
}

Fixed version (ground truth):
private ScrollView carregaRespostas(){
  ScrollView layout=(ScrollView)View.inflate(this,R.layout.page_conferir_adedonha,null);
  LinearLayout vTblRow=(LinearLayout)layout.findViewById(R.id.group_respostas_adedonha);
  List<String> itensList=new ArrayList<String>();
  Set<String> itens=jogador.resultado().keySet();
  for (  String iten : itens) {
    itensList.add(iten);
  }
  List<String> valoresList=new ArrayList<String>();
  Collection<String> valores=(Collection<String>)jogador.resultado().values();
  for (  String valor : valores) {
    valoresList.add(valor);
  }
  for (int i=0; i < jogador.resultado().size(); i++) {
    TextView resultadoTextView=new TextView(this);
    resultadoTextView.setText(itensList.get(i) + "String_Node_Str" + valoresList.get(i));
    resultadoTextView.setTextAppearance(getApplicationContext(),R.style.negrito);
    vTblRow.addView(resultadoTextView);
  }
  return layout;
}
Program: 98825
Project: 98825
Buggy source:
private void apresentaDadosJogador(User jogador){
  jogador.setPointing(pontos);
  TextView nomeText=(TextView)findViewById(R.id.saida_jogador_adedonha);
  nomeText.setText("String_Node_Str" + jogador.getUserName());
  TextView tempoText=(TextView)findViewById(R.id.saida_tempo_adedonha);
  tempoText.setText("String_Node_Str" + tempoRestante + "String_Node_Str");
  TextView pontuacao=(TextView)findViewById(R.id.pontos_jogador_adedonha);
  pontuacao.setText("String_Node_Str" + jogador.getPointing());
  TextView letraText=(TextView)findViewById(R.id.saida_letra_adedonha);
  letraText.setText("String_Node_Str" + letraJogo);
}

Fixed version (ground truth):
private void apresentaDadosJogador(){
  TextView nomeText=(TextView)findViewById(R.id.saida_jogador_adedonha);
  nomeText.setText("String_Node_Str" + this.jogador.nome());
  TextView tempoText=(TextView)findViewById(R.id.saida_tempo_adedonha);
  tempoText.setText("String_Node_Str" + this.jogador.tempo() + "String_Node_Str");
  TextView pontuacao=(TextView)findViewById(R.id.pontos_jogador_adedonha);
  pontuacao.setText("String_Node_Str" + this.jogador.pontuacao());
  TextView letraText=(TextView)findViewById(R.id.saida_letra_adedonha);
  letraText.setText("String_Node_Str" + this.configuracao.letraDaPartida());
}
Program: 98826
Project: 98826
Buggy source:
private void conecte(BluetoothSocket socket,Protocolo handle){
  ct=new ThreadConectada(socket,handle);
  ct.start();
}

Fixed version (ground truth):
private void conecte(BluetoothSocket socket,Protocolo handle){
  threadConectada=new ThreadConectada(socket,handle);
  threadConectada.start();
}
Program: 98827
Project: 98827
Buggy source:
public ThreadConectada threadConectada(){
  return ct;
}

Fixed version (ground truth):
public ThreadConectada threadConectada(){
  return threadConectada;
}
Program: 98828
Project: 98828
Buggy source:
public void run(){
  Log.i(TAG,"String_Node_Str");
  setName("String_Node_Str");
  try {
    Log.d(TAG,"String_Node_Str");
    mmSocket.connect();
    Log.d(TAG,"String_Node_Str");
  }
 catch (  IOException e) {
    Log.e(TAG,"String_Node_Str",e);
    cancel();
  }
  conecte(mmSocket,handle);
  return;
}

Fixed version (ground truth):
public void run(){
  Log.i(TAG,"String_Node_Str");
  setName("String_Node_Str");
  try {
    Log.d(TAG,"String_Node_Str");
    clienteSocket.connect();
    Log.d(TAG,"String_Node_Str");
  }
 catch (  IOException e) {
    Log.e(TAG,"String_Node_Str",e);
    cancelarConexao();
  }
  conecte(clienteSocket,handle);
  return;
}
Program: 98829
Project: 98829
Buggy source:
public Cliente(ConectandoCliente conecandoCliente,BluetoothDevice device,Protocolo handle){
  mmDevice=device;
  this.handle=handle;
  this.conecandoCliente=conecandoCliente;
  BluetoothSocket tmp=null;
  try {
    tmp=device.createRfcommSocketToServiceRecord(MY_UUID);
  }
 catch (  IOException e) {
    Log.e(TAG,"String_Node_Str",e);
  }
  mmSocket=tmp;
}

Fixed version (ground truth):
public Cliente(ConectandoCliente conectandoClienteActivity,BluetoothDevice device,Protocolo handle){
  mmDevice=device;
  this.handle=handle;
  this.conectandoClienteActivity=conectandoClienteActivity;
  BluetoothSocket tmp=null;
  try {
    tmp=device.createRfcommSocketToServiceRecord(MY_UUID);
  }
 catch (  IOException e) {
    Log.e(TAG,"String_Node_Str",e);
  }
  clienteSocket=tmp;
}
Program: 98830
Project: 98830
Buggy source:
private synchronized void execute(byte[] buffer,int operacao){
  Object obj=deserialize(buffer);
switch (operacao) {
case OPERACAO_CONFIGURACOES_DA_PARTIDA:
    Log.d(TAG,"String_Node_Str");
  Jogo configuracaoesDaPartida=(Jogo)obj;
Log.d(TAG,"String_Node_Str" + configuracaoesDaPartida.getNivel());
break;
default :
Log.e(TAG,"String_Node_Str");
break;
}
}

Fixed version (ground truth):
private synchronized void execute(byte[] buffer,int operacao){
  Object obj=deserialize(buffer);
switch (operacao) {
case OPERACAO_CONFIGURACOES_DA_PARTIDA:
    Log.d(TAG,"String_Node_Str");
  Jogo configuracaoesDaPartida=(Jogo)obj;
Log.d(TAG,"String_Node_Str" + configuracaoesDaPartida.getNivel());
break;
case OPERACAO_NOME_JOGADOR:
Log.d(TAG,"String_Node_Str");
String nome=(String)obj;
Log.d(TAG,"String_Node_Str" + nome);
break;
default :
Log.e(TAG,"String_Node_Str");
break;
}
}
Program: 98831
Project: 98831
Buggy source:
public void run(){
  BluetoothSocket socketConectado=null;
  Log.d(TAG,"String_Node_Str");
  while (socketConectado == null || !this.encerrar) {
    try {
      socketConectado=servidorSocket.accept();
    }
 catch (    IOException e) {
      Log.e(TAG,"String_Node_Str",e);
    }
  }
  if (socketConectado != null) {
    Log.d(TAG,"String_Node_Str");
    encerrarServidor();
    connectar(socketConectado,this.protocolo);
  }
  if (this.encerrar) {
    Log.d(TAG,"String_Node_Str");
  }
}

Fixed version (ground truth):
public void run(){
  BluetoothSocket socketConectado=null;
  Log.d(TAG,"String_Node_Str");
  while (socketConectado == null || this.encerrar) {
    try {
      socketConectado=servidorSocket.accept();
    }
 catch (    IOException e) {
      Log.e(TAG,"String_Node_Str",e);
    }
  }
  if (socketConectado != null) {
    Log.d(TAG,"String_Node_Str");
    encerrarServidor();
    connectar(socketConectado,this.protocolo);
  }
  if (this.encerrar) {
    Log.d(TAG,"String_Node_Str");
  }
}
Program: 98832
Project: 98832
Buggy source:
public void iniciarPartida(Serializable configuracoesDaPartida){
  byte[] buffer=Protocolo.serialize(configuracoesDaPartida);
  byte[] bufferCabecalho=cabecalhoConfigurarPartida(buffer);
  enviar(bufferCabecalho);
  enviar(buffer);
}

Fixed version (ground truth):
public void iniciarPartida(Serializable configuracoesDaPartida){
  if (configuracoesDaPartida == null) {
    Log.e(TAG,"String_Node_Str");
    return;
  }
  byte[] buffer=Protocolo.serialize(configuracoesDaPartida);
  byte[] bufferCabecalho=cabecalhoConfigurarPartida(buffer);
  enviar(bufferCabecalho);
  enviar(buffer);
}
Program: 98833
Project: 98833
Buggy source:
private void connecte(BluetoothDevice device){
  Cliente cct=new Cliente(this,device,this.handle);
  cct.start();
  try {
    cct.join();
    Log.d(TAG,"String_Node_Str");
  }
 catch (  InterruptedException e) {
    Log.e(TAG,"String_Node_Str",e);
  }
  ThreadConectada f=cct.threadConectada();
  String teste="String_Node_Str";
  if (f != null) {
    f.enviar(teste.getBytes());
    Log.d(TAG,"String_Node_Str" + teste);
  }
 else {
    Log.e(TAG,"String_Node_Str");
  }
}

Fixed version (ground truth):
private void connecte(BluetoothDevice device){
  this.cliente=new Cliente(this,device,this.handle);
  this.cliente.start();
  try {
    this.cliente.join();
    Log.d(TAG,"String_Node_Str");
  }
 catch (  InterruptedException e) {
    Log.e(TAG,"String_Node_Str",e);
  }
  enviarNome(this.cliente.threadConectada(),"String_Node_Str");
}
Program: 98834
Project: 98834
Buggy source:
Asset(){
  lastUpdate=new Time(new Date().getTime());
  metadata=new AssetMetadata();
}

Fixed version (ground truth):
Asset(){
  lastUpdate=new Time(new Date().getTime());
}
Program: 98835
Project: 98835
Buggy source:
public void applyChange(AssetDatabaseChange inAssetChange);

Fixed version (ground truth):
public void applyChange(MetadataDatabaseChange inAssetChange);
Program: 98836
Project: 98836
Buggy source:
@Override public QueryIterator<AssetRef> matchUsingMetadata(AssetMetadata inMetadata){
  return null;
}

Fixed version (ground truth):
@Override public QueryIterator<org.artificia.zync.data.AssetRef> matchUsingMetadata(AssetMetadata inMetadata){
  return null;
}
Program: 98837
Project: 98837
Buggy source:
@Override public void applyChange(AssetDatabaseChange inAssetChange){
}

Fixed version (ground truth):
@Override public void applyChange(MetadataDatabaseChange inAssetChange){
}
Program: 98838
Project: 98838
Buggy source:
@Override public void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  Intent intent=getIntent();
  Log log=getLogFromIntent(intent);
  vm=new LogCaptureViewModel(android.text.format.DateFormat.getLongDateFormat(this),android.text.format.DateFormat.getTimeFormat(this),this);
  updateLists();
  vm.setLog(log);
  String action=intent.getAction();
  MainMenuViewModel menuVm=new MainMenuViewModel(this);
  setAndBindRootView(R.layout.main,vm);
  setAndBindOptionsMenu(R.menu.main_menu,menuVm);
  if (ACTION_DISTANCE_CHANGED.equals(action) || ACTION_START_LOG.equals(action))   getToggleButton().setText(R.string.StopGPS);
 else {
    if (log != null && log.getStart() != null && log.getStop() != null)     AddLog(log);
    getToggleButton().setText(R.string.StartGPS);
  }
}

Fixed version (ground truth):
@Override public void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  Intent intent=getIntent();
  Log log=getLogFromIntent(intent);
  vm=new LogCaptureViewModel(android.text.format.DateFormat.getLongDateFormat(this),android.text.format.DateFormat.getTimeFormat(this),this);
  updateLists();
  vm.setLog(log);
  String action=intent.getAction();
  MainMenuViewModel menuVm=new MainMenuViewModel(this);
  setAndBindRootView(R.layout.main,vm);
  setAndBindOptionsMenu(R.menu.main_menu,menuVm);
  if (ACTION_DISTANCE_CHANGED.equals(action) || ACTION_START_LOG.equals(action))   getToggleButton().setText(R.string.StopGPS);
 else   if (ACTION_STOP_LOG.equals(action)) {
    if (getRepository().isLogSaveable(log))     AddLog(log);
 else     getToggleButton().setText(R.string.SaveLog);
  }
 else {
    getToggleButton().setText(R.string.SaveLog);
  }
}
Program: 98839
Project: 98839
Buggy source:
public void fromString(String objectString){
}

Fixed version (ground truth):
public void fromString(String objectString){
  String arguments=objectString.substring(objectString.indexOf("String_Node_Str") + 1,objectString.indexOf("String_Node_Str"));
  String[] params=arguments.split("String_Node_Str");
  x=Integer.parseInt(params[0]);
  y=Integer.parseInt(params[1]);
  width=Integer.parseInt(params[2]);
  height=Integer.parseInt(params[3]);
}
Program: 98840
Project: 98840
Buggy source:
public line(double X1,double Y1,double X2,double Y2){
  x1=X1;
  y1=Y1;
  x2=X2;
  y2=Y2;
}

Fixed version (ground truth):
public line(int X1,int Y1,int X2,int Y2){
  x1=X1;
  y1=Y1;
  x2=X2;
  y2=Y2;
}
Program: 98841
Project: 98841
Buggy source:
public double getLeftBound(){
  if (x1 < x2)   return x1;
 else   return x2;
}

Fixed version (ground truth):
public int getLeftBound(){
  if (x1 < x2)   return x1;
 else   return x2;
}
Program: 98842
Project: 98842
Buggy source:
public double getRightBound(){
  if (x2 > x1)   return x2;
 else   return x1;
}

Fixed version (ground truth):
public int getRightBound(){
  if (x2 > x1)   return x2;
 else   return x1;
}
Program: 98843
Project: 98843
Buggy source:
public double getX2(){
  return x2;
}

Fixed version (ground truth):
public int getX2(){
  return x2;
}
Program: 98844
Project: 98844
Buggy source:
public double getBottomBound(){
  if (y2 > y1)   return y2;
 else   return y1;
}

Fixed version (ground truth):
public int getBottomBound(){
  if (y2 > y1)   return y2;
 else   return y1;
}
Program: 98845
Project: 98845
Buggy source:
public double getSize(){
  return 0;
}

Fixed version (ground truth):
public int getSize(){
  return 0;
}
Program: 98846
Project: 98846
Buggy source:
public double getX1(){
  return x1;
}

Fixed version (ground truth):
public int getX1(){
  return x1;
}
Program: 98847
Project: 98847
Buggy source:
public double getY2(){
  return y2;
}

Fixed version (ground truth):
public int getY2(){
  return y2;
}
Program: 98848
Project: 98848
Buggy source:
public double getTopBound(){
  if (y1 < y2)   return y1;
 else   return y2;
}

Fixed version (ground truth):
public int getTopBound(){
  if (y1 < y2)   return y1;
 else   return y2;
}
Program: 98849
Project: 98849
Buggy source:
public double getY1(){
  return y1;
}

Fixed version (ground truth):
public int getY1(){
  return y1;
}
Program: 98850
Project: 98850
Buggy source:
public void fromString(String objectString){
}

Fixed version (ground truth):
public void fromString(String objectString){
  String arguments=objectString.substring(objectString.indexOf("String_Node_Str") + 1,objectString.indexOf("String_Node_Str"));
  String[] params=arguments.split("String_Node_Str");
  x1=Integer.parseInt(params[0]);
  y1=Integer.parseInt(params[1]);
  x2=Integer.parseInt(params[2]);
  y2=Integer.parseInt(params[3]);
}
Program: 98851
Project: 98851
Buggy source:
public void fromString(String objectString){
}

Fixed version (ground truth):
public void fromString(String objectString){
  String arguments=objectString.substring(objectString.indexOf("String_Node_Str") + 1,objectString.indexOf("String_Node_Str"));
  String[] params=arguments.split("String_Node_Str");
  for (int i=0; i < params.length; i+=2) {
    x.add(Integer.parseInt(params[i]));
    y.add(Integer.parseInt(params[i + 1]));
  }
}
Program: 98852
Project: 98852
Buggy source:
public void fromString(String objectString){
  String arguments=objectString.substring(objectString.indexOf("String_Node_Str") + 1,objectString.indexOf("String_Node_Str") - 1);
  String[] params=arguments.split("String_Node_Str");
  x=Integer.parseInt(params[0]);
  y=Integer.parseInt(params[1]);
  width=Integer.parseInt(params[2]);
  height=Integer.parseInt(params[3]);
}

Fixed version (ground truth):
public void fromString(String objectString){
  String arguments=objectString.substring(objectString.indexOf("String_Node_Str") + 1,objectString.indexOf("String_Node_Str"));
  String[] params=arguments.split("String_Node_Str");
  x=Integer.parseInt(params[0]);
  y=Integer.parseInt(params[1]);
  width=Integer.parseInt(params[2]);
  height=Integer.parseInt(params[3]);
}
Program: 98853
Project: 98853
Buggy source:
public void fromString(String objectString){
}

Fixed version (ground truth):
public void fromString(String objectString){
  String arguments=objectString.substring(objectString.indexOf("String_Node_Str") + 1,objectString.indexOf("String_Node_Str"));
  String[] params=arguments.split("String_Node_Str");
  x=Integer.parseInt(params[0]);
  y=Integer.parseInt(params[1]);
  str=params[2];
}
Program: 98854
Project: 98854
Buggy source:
public void fromString(String objectString){
}

Fixed version (ground truth):
public void fromString(String objectString){
  String arguments=objectString.substring(objectString.indexOf("String_Node_Str") + 1,objectString.indexOf("String_Node_Str"));
  String[] params=arguments.split("String_Node_Str");
  x=Integer.parseInt(params[0]);
  y=Integer.parseInt(params[1]);
  width=Integer.parseInt(params[2]);
  height=Integer.parseInt(params[3]);
  str=params[4];
}
Program: 98855
Project: 98855
Buggy source:
public void fromString(String objectString){
}

Fixed version (ground truth):
public void fromString(String objectString){
  String arguments=objectString.substring(objectString.indexOf("String_Node_Str") + 1,objectString.indexOf("String_Node_Str"));
  String[] params=arguments.split("String_Node_Str");
  x1=Integer.parseInt(params[0]);
  y1=Integer.parseInt(params[1]);
  x2=Integer.parseInt(params[2]);
  y2=Integer.parseInt(params[3]);
  x3=Integer.parseInt(params[4]);
  y3=Integer.parseInt(params[5]);
}
Program: 98856
Project: 98856
Buggy source:
private static boolean isTeacher(String[] assignments){
  for (  String assig : assignments) {
    if (assig.equalsIgnoreCase(Constants.RESPONSABLE) || assig.equalsIgnoreCase(Constants.PROFESSOR)) {
      return true;
    }
  }
  return false;
}

Fixed version (ground truth):
private static boolean isTeacher(String[] assignments){
  for (  String assig : assignments) {
    if (assig.equalsIgnoreCase(Constants.RESPONSABLE) || assig.equalsIgnoreCase(Constants.CREADOR)) {
      return true;
    }
  }
  return false;
}
Program: 98857
Project: 98857
Buggy source:
public String auth() throws Exception {
  HttpServletRequest request=ServletActionContext.getRequest();
  request.getSession().setAttribute("String_Node_Str","String_Node_Str");
  if (bUOC != null && bUOC.getUserInformation() != null) {
    String lang=bUOC.getUserInformation().getLanguage();
    System.out.println("String_Node_Str" + lang);
    Map session=ActionContext.getContext().getSession();
    if (lang.equals("String_Node_Str")) {
      session.put("String_Node_Str",new java.util.Locale("String_Node_Str"));
      Locale locale=new Locale("String_Node_Str","String_Node_Str");
      session.put("String_Node_Str",locale);
    }
 else     if (lang.equals("String_Node_Str")) {
      session.put("String_Node_Str",new java.util.Locale("String_Node_Str"));
      Locale locale=new Locale("String_Node_Str","String_Node_Str");
      session.put("String_Node_Str",locale);
    }
 else     if (lang.equals("String_Node_Str")) {
      session.put("String_Node_Str",new java.util.Locale("String_Node_Str"));
      Locale locale=new Locale("String_Node_Str","String_Node_Str");
      session.put("String_Node_Str",locale);
    }
  }
  String toReturn='r' + SUCCESS;
  if (TAB_PROGRAMMING_ENVIROMENT.equals(activeTab)) {
    toReturn='r' + TAB_PROGRAMMING_ENVIROMENT;
  }
  return toReturn;
}

Fixed version (ground truth):
public String auth() throws Exception {
  HttpServletRequest request=ServletActionContext.getRequest();
  request.getSession().setAttribute("String_Node_Str","String_Node_Str");
  String toReturn='r' + SUCCESS;
  if (TAB_PROGRAMMING_ENVIROMENT.equals(activeTab)) {
    toReturn='r' + TAB_PROGRAMMING_ENVIROMENT;
  }
  return toReturn;
}
Program: 98859
Project: 98859
Buggy source:
public String logout() throws PelpException {
  LocalCampusConnection _campusConnection=new LocalCampusConnection();
  _campusConnection.setProfile("String_Node_Str");
  bUOC.setCampusConnection(_campusConnection);
  String toReturn='r' + SUCCESS;
  if (TAB_PROGRAMMING_ENVIROMENT.equals(activeTab)) {
    toReturn='r' + TAB_PROGRAMMING_ENVIROMENT;
  }
  return toReturn;
}

Fixed version (ground truth):
public String logout() throws PelpException {
  HttpServletRequest request=ServletActionContext.getRequest();
  request.getSession().setAttribute("String_Node_Str","String_Node_Str");
  LocalCampusConnection _campusConnection=new LocalCampusConnection();
  _campusConnection.setProfile("String_Node_Str");
  bUOC.setCampusConnection(_campusConnection);
  String toReturn='r' + SUCCESS;
  if (TAB_PROGRAMMING_ENVIROMENT.equals(activeTab)) {
    toReturn='r' + TAB_PROGRAMMING_ENVIROMENT;
  }
  return toReturn;
}
Program: 98860
Project: 98860
Buggy source:
@Override public UOCSubject[] getUserSubjects() throws ExecPelpException, InvalidEngineException, AuthorizationException {
  UOCSubject[] retList=null;
  if (_engine == null) {
    throw new InvalidEngineException("String_Node_Str");
  }
  try {
    edu.uoc.pelp.engine.campus.Subject[] userSubjects=_engine.getActiveSubjects();
    if (userSubjects != null) {
      retList=new UOCSubject[userSubjects.length];
      for (int i=0; i < userSubjects.length; i++) {
        SubjectID subjectID=(SubjectID)userSubjects[i].getID();
        retList[i]=new UOCSubject(subjectID.getSemester().getID(),subjectID.getCode());
        retList[i].setShortName(userSubjects[i].getShortName());
        retList[i].setDescription(userSubjects[i].getDescription());
      }
    }
  }
 catch (  AuthPelpException ex) {
    throw new AuthorizationException(ex.getMessage());
  }
  return retList;
}

Fixed version (ground truth):
@Override public UOCSubject[] getUserSubjects() throws ExecPelpException, InvalidEngineException, AuthorizationException {
  UOCSubject[] retList=null;
  if (_engine == null) {
    throw new InvalidEngineException("String_Node_Str");
  }
  try {
    edu.uoc.pelp.engine.campus.Subject[] userSubjects=_engine.getActiveSubjects();
    if (userSubjects != null) {
      retList=new UOCSubject[userSubjects.length];
      for (int i=0; i < userSubjects.length; i++) {
        SubjectID subjectID=(SubjectID)userSubjects[i].getID();
        retList[i]=new UOCSubject(subjectID.getSemester().getID(),subjectID.getCode());
        retList[i].setShortName(userSubjects[i].getShortName());
        retList[i].setDescription(userSubjects[i].getDescription());
      }
    }
  }
 catch (  AuthPelpException ex) {
  }
  return retList;
}
Program: 98861
Project: 98861
Buggy source:
/** 
 * Return the list of active subjects for authenticated user
 * @return List of active subjects for current user.
 * @throws AuthPelpException If no user is authenticated.
 */
@Override public Subject[] getActiveSubjects() throws AuthPelpException {
  if (!isUserAuthenticated()) {
    throw new AuthPelpException("String_Node_Str");
  }
  ArrayList<Subject> subjectsList=new ArrayList<Subject>();
  for (  ITimePeriod period : _campusConnection.getActivePeriods()) {
    List<PelpActiveSubjects> filter=_administrationManager.getActiveSubjects(period.toString());
    for (    ISubjectID subjectID : _campusConnection.getUserSubjects(period,filter)) {
      subjectsList.add(_campusConnection.getSubjectData(subjectID));
    }
  }
  Collections.sort(subjectsList);
  Subject[] retList=new Subject[subjectsList.size()];
  subjectsList.toArray(retList);
  return retList;
}

Fixed version (ground truth):
/** 
 * Return the list of active subjects for authenticated user
 * @return List of active subjects for current user.
 * @throws AuthPelpException If no user is authenticated.
 */
@Override public Subject[] getActiveSubjects() throws AuthPelpException {
  if (!isUserAuthenticated()) {
    return null;
  }
  ArrayList<Subject> subjectsList=new ArrayList<Subject>();
  for (  ITimePeriod period : _campusConnection.getActivePeriods()) {
    List<PelpActiveSubjects> filter=_administrationManager.getActiveSubjects(period.toString());
    for (    ISubjectID subjectID : _campusConnection.getUserSubjects(period,filter)) {
      subjectsList.add(_campusConnection.getSubjectData(subjectID));
    }
  }
  Collections.sort(subjectsList);
  Subject[] retList=new Subject[subjectsList.size()];
  subjectsList.toArray(retList);
  return retList;
}
Program: 98863
Project: 98863
Buggy source:
/** 
 * Return the list of classrooms for authenticated user
 * @param subjectID Subject identifier
 * @return List of classrooms
 * @throws AuthPelpException If no user is authenticated.
 */
@Override public Classroom[] getSubjectClassrooms(ISubjectID subjectID) throws AuthPelpException {
  if (!isUserAuthenticated()) {
    throw new AuthPelpException("String_Node_Str");
  }
  ArrayList<Classroom> classroomList=new ArrayList<Classroom>();
  for (  IClassroomID classID : _campusConnection.getUserClassrooms(subjectID)) {
    classroomList.add(_campusConnection.getClassroomData(classID));
  }
  Collections.sort(classroomList);
  Classroom[] retList=new Classroom[classroomList.size()];
  classroomList.toArray(retList);
  return retList;
}

Fixed version (ground truth):
/** 
 * Return the list of classrooms for authenticated user
 * @param subjectID Subject identifier
 * @return List of classrooms
 * @throws AuthPelpException If no user is authenticated.
 */
@Override public Classroom[] getSubjectClassrooms(ISubjectID subjectID) throws AuthPelpException {
  if (!isUserAuthenticated()) {
    throw new AuthPelpException("String_Node_Str");
  }
  ArrayList<Classroom> classroomList=new ArrayList<Classroom>();
  for (  IClassroomID classID : _campusConnection.getUserClassrooms(subjectID)) {
    classroomList.add(_campusConnection.getClassroomData(classID));
  }
  Classroom[] retList=new Classroom[classroomList.size()];
  classroomList.toArray(retList);
  return retList;
}
Program: 98864
Project: 98864
Buggy source:
@Override public Subject getSubjectData(ISubjectID subjectID) throws AuthPelpException {
  if (subjectID == null || !(subjectID instanceof SubjectID)) {
    return null;
  }
  SubjectID id=(SubjectID)subjectID;
  edu.uoc.pelp.engine.campus.UOC.vo.Classroom classroom=getSubjectData(id.getDomainID());
  Subject retVal=new Subject(subjectID);
  retVal.setDescription(classroom.getTitle());
  return retVal;
}

Fixed version (ground truth):
@Override public Subject getSubjectData(ISubjectID subjectID) throws AuthPelpException {
  if (subjectID == null || !(subjectID instanceof SubjectID)) {
    return null;
  }
  SubjectID id=(SubjectID)subjectID;
  edu.uoc.pelp.engine.campus.UOC.vo.Classroom classroom=getSubjectData(id.getDomainID());
  Subject retVal=new Subject(subjectID);
  retVal.setDescription(classroom.getTitle());
  retVal.setShortName(classroom.getTitle());
  return retVal;
}
Program: 98867
Project: 98867
Buggy source:
private void listFile() throws Exception {
  String ruta=this.rutaFile();
  File directorioPracticas=new File(ruta);
  File[] ficheros=directorioPracticas.listFiles();
  if (ficheros != null && ficheros.length > 0) {
    log.info("String_Node_Str" + ficheros.length);
    fileDim=ficheros.length;
    matrizFile=new String[fileDim][5];
    for (int i=0; i < ficheros.length; i++) {
      File file=ficheros[i];
      log.info("String_Node_Str" + file.getName());
      matrizFile[i][0]=file.getName();
      matrizFile[i][1]="String_Node_Str";
      matrizFile[i][2]="String_Node_Str";
      matrizFile[i][3]="String_Node_Str";
      matrizFile[i][4]=String.valueOf(file.getName().hashCode());
    }
  }
 else {
    matrizFile=null;
    fileDim=0;
  }
}

Fixed version (ground truth):
private void listFile() throws Exception {
  String ruta=this.rutaFile();
  File directorioPracticas=new File(ruta);
  File[] ficheros=directorioPracticas.listFiles();
  if (ficheros != null && ficheros.length > 0) {
    log.info("String_Node_Str" + ficheros.length);
    fileDim=ficheros.length;
    matrizFile=new String[fileDim][5];
    for (int i=0; i < ficheros.length; i++) {
      File file=ficheros[i];
      log.info("String_Node_Str" + file.getName());
      matrizFile[i][0]=file.getName();
      matrizFile[i][1]="String_Node_Str";
      matrizFile[i][2]="String_Node_Str";
      matrizFile[i][3]="String_Node_Str";
      matrizFile[i][4]=String.valueOf(file.getName().hashCode());
    }
  }
 else {
    matrizFile=null;
    fileDim=0;
  }
  if (s_aula != null && s_aula.length() > 0 && s_assign != null && s_activ != null && s_activ.length() > 0) {
    Activity objActivity=new Activity();
    for (int j=0; j < listActivity.length; j++) {
      if (listActivity[j].getIndex() == Integer.parseInt(s_activ)) {
        objActivity=listActivity[j];
      }
    }
    String[] infoAssing=s_assign.split("String_Node_Str");
    if (teacher) {
      Classroom objClass=null;
      for (int i=0; i < listClassroms.length; i++) {
        if (listClassroms[i].getIndex() == Integer.parseInt(s_aula)) {
          objClass=listClassroms[i];
        }
      }
      bUOC.getAllClassroomDeliverDetails(objActivity,new UOCSubject(infoAssing[0],infoAssing[2]),objClass.getIndex());
    }
 else {
      setListDeliverDetails(bUOC.getUserDeliverDetails(new UOCSubject(infoAssing[0],infoAssing[2]),objActivity.getIndex()));
    }
  }
}