nus-yam/ex-repair huggingface dataset:
Program: 11114
Project: 11114
Buggy source:
public String loadResourceAsString(String resource){
  StringBuffer template=new StringBuffer();
  try {
    URL address=TestPatientSource.class.getResource(resource);
    File file=new File(address.toURI());
    FileReader reader=new FileReader(file);
    BufferedReader buffer=new BufferedReader(reader);
    String line=null;
    while ((line=buffer.readLine()) != null) {
      template.append(line).append("String_Node_Str");
    }
    reader.close();
    buffer.close();
  }
 catch (  Exception e) {
    e.printStackTrace();
  }
  return template.toString();
}

Fixed version (ground truth):
public String loadResourceAsString(String resource){
  StringBuffer template=new StringBuffer();
  try {
    URL address=TestPatientSource.class.getResource(resource);
    File file=new File(address.toURI());
    FileInputStream fis=new FileInputStream(file);
    InputStreamReader reader=new InputStreamReader(fis,"String_Node_Str");
    BufferedReader buffer=new BufferedReader(reader);
    String line=null;
    while ((line=buffer.readLine()) != null) {
      template.append(line).append("String_Node_Str");
    }
    reader.close();
    buffer.close();
  }
 catch (  Exception e) {
    e.printStackTrace();
  }
  return template.toString();
}
Program: 11116
Project: 11116
Buggy source:
private static void writeSnippetsToCoffeeFile(Map<String,StringBuilder> snippets,Path file) throws IOException {
  File tempFile=new File(file.toFile().getAbsolutePath() + "String_Node_Str");
  PrintWriter pw=new PrintWriter(tempFile,"String_Node_Str");
  pw.println("String_Node_Str");
  pw.println("String_Node_Str");
  pw.println();
  pw.println("String_Node_Str");
  pw.println("String_Node_Str" + file.toFile().getName() + "String_Node_Str");
  pw.println("String_Node_Str");
  pw.println("String_Node_Str");
  pw.println();
  for (  Map.Entry<String,StringBuilder> entry : snippets.entrySet()) {
    updateSnippet(entry.getValue());
    String name=entry.getKey();
    String snippet=entry.getValue().toString();
    String json=CqlTranslator.fromText(snippet,CqlTranslator.Options.EnableDateRangeOptimization).toJson();
    pw.println("String_Node_Str" + name);
    pw.println(snippet);
    pw.println("String_Node_Str");
    pw.println();
    pw.println("String_Node_Str" + name + "String_Node_Str"+ json);
    pw.println();
  }
  pw.close();
  Files.move(tempFile.toPath(),file,StandardCopyOption.ATOMIC_MOVE,StandardCopyOption.REPLACE_EXISTING);
  System.out.println("String_Node_Str" + file.toAbsolutePath().normalize());
}

Fixed version (ground truth):
private static void writeSnippetsToCoffeeFile(Map<String,StringBuilder> snippets,Path file) throws IOException {
  File tempFile=new File(file.toFile().getAbsolutePath() + "String_Node_Str");
  PrintWriter pw=new PrintWriter(tempFile,"String_Node_Str");
  pw.println("String_Node_Str");
  pw.println("String_Node_Str");
  pw.println();
  pw.println("String_Node_Str");
  pw.println("String_Node_Str" + file.toFile().getName() + "String_Node_Str");
  pw.println("String_Node_Str");
  pw.println("String_Node_Str");
  pw.println();
  for (  Map.Entry<String,StringBuilder> entry : snippets.entrySet()) {
    updateSnippet(entry.getValue());
    String name=entry.getKey();
    String snippet=entry.getValue().toString();
    pw.println("String_Node_Str" + name);
    pw.println(snippet);
    pw.println("String_Node_Str");
    pw.println();
    try {
      String json=CqlTranslator.fromText(snippet,CqlTranslator.Options.EnableDateRangeOptimization).toJson();
      pw.println("String_Node_Str" + name + "String_Node_Str"+ json);
    }
 catch (    Exception e) {
      pw.println("String_Node_Str" + name + "String_Node_Str");
      pw.println("String_Node_Str");
      pw.println("String_Node_Str" + name + "String_Node_Str"+ e.getMessage());
      pw.println("String_Node_Str");
    }
    pw.println();
  }
  pw.close();
  Files.move(tempFile.toPath(),file,StandardCopyOption.ATOMIC_MOVE,StandardCopyOption.REPLACE_EXISTING);
  System.out.println("String_Node_Str" + file.toAbsolutePath().normalize());
}
Program: 11117
Project: 11117
Buggy source:
private List<TupleTypeElement> getSortedElements(){
  if (sortedElements == null) {
    sortedElements=new ArrayList<>(elements);
    sortedElements.sort(TupleTypeElementComparator);
  }
  return sortedElements;
}

Fixed version (ground truth):
private List<TupleTypeElement> getSortedElements(){
  if (sortedElements == null) {
    sortedElements=new ArrayList<>(elements);
    Collections.sort(sortedElements,TupleTypeElementComparator);
  }
  return sortedElements;
}
Program: 11119
Project: 11119
Buggy source:
@Override public Object visitIntervalSelector(@NotNull cqlParser.IntervalSelectorContext ctx){
  Interval result=of.createInterval().withLow(parseExpression(ctx.expression(0))).withLowClosed(ctx.getChild(1).getText().equals("String_Node_Str")).withHigh(parseExpression(ctx.expression(1))).withHighClosed(ctx.getChild(5).getText().equals("String_Node_Str"));
  DataType lowType=result.getLow().getResultType();
  DataType highType=result.getHigh().getResultType();
  if (lowType != null) {
    if (highType != null) {
      DataTypes.verifyType(highType,lowType);
    }
  }
  DataType pointType=lowType != null ? lowType : highType;
  if (pointType != null) {
    IntervalType resultType=new IntervalType(pointType);
    result.setResultType(resultType);
  }
 else {
    throw new IllegalArgumentException("String_Node_Str");
  }
  return result;
}

Fixed version (ground truth):
@Override public Object visitIntervalSelector(@NotNull cqlParser.IntervalSelectorContext ctx){
  Interval result=of.createInterval().withLow(parseExpression(ctx.expression(0))).withLowClosed(ctx.getChild(1).getText().equals("String_Node_Str")).withHigh(parseExpression(ctx.expression(1))).withHighClosed(ctx.getChild(5).getText().equals("String_Node_Str"));
  DataType lowType=result.getLow().getResultType();
  DataType highType=result.getHigh().getResultType();
  if ((lowType != null) && (highType != null)) {
    DataTypes.verifyType(highType,lowType);
  }
  DataType pointType=lowType != null ? lowType : highType;
  if (pointType != null) {
    IntervalType resultType=new IntervalType(pointType);
    result.setResultType(resultType);
  }
 else {
    throw new IllegalArgumentException("String_Node_Str");
  }
  return result;
}
Program: 11120
Project: 11120
Buggy source:
@Override public Object visitIfThenElseExpressionTerm(@NotNull cqlParser.IfThenElseExpressionTermContext ctx){
  If _if=of.createIf().withCondition(parseExpression(ctx.expression(0))).withThen(parseExpression(ctx.expression(1))).withElse(parseExpression(ctx.expression(2)));
  DataTypes.verifyType(_if.getCondition().getResultType(),resolveTypeName("String_Node_Str"));
  DataType thenType=_if.getThen().getResultType();
  DataTypes.verifyType(_if.getElse().getResultType(),thenType);
  _if.setResultType(thenType);
  return _if;
}

Fixed version (ground truth):
@Override public Object visitIfThenElseExpressionTerm(@NotNull cqlParser.IfThenElseExpressionTermContext ctx){
  If ifObject=of.createIf().withCondition(parseExpression(ctx.expression(0))).withThen(parseExpression(ctx.expression(1))).withElse(parseExpression(ctx.expression(2)));
  DataTypes.verifyType(ifObject.getCondition().getResultType(),resolveTypeName("String_Node_Str"));
  DataType thenType=ifObject.getThen().getResultType();
  DataTypes.verifyType(ifObject.getElse().getResultType(),thenType);
  ifObject.setResultType(thenType);
  return ifObject;
}
Program: 11121
Project: 11121
Buggy source:
public static Object visitData(String cqlData,boolean enableAnnotations,boolean enableDateRangeOptimization){
  List<CqlTranslator.Options> options=new ArrayList<>();
  if (enableAnnotations) {
    options.add(CqlTranslator.Options.EnableAnnotations);
  }
  if (enableDateRangeOptimization) {
    options.add(CqlTranslator.Options.EnableDateRangeOptimization);
  }
  CqlTranslator translator=CqlTranslator.fromText(cqlData,options.toArray(new CqlTranslator.Options[options.size()]));
  EnsureValid(translator);
  return translator.toObject();
}

Fixed version (ground truth):
public static Object visitData(String cqlData,boolean enableAnnotations,boolean enableDateRangeOptimization){
  List<CqlTranslator.Options> options=new ArrayList<>();
  if (enableAnnotations) {
    options.add(CqlTranslator.Options.EnableAnnotations);
  }
  if (enableDateRangeOptimization) {
    options.add(CqlTranslator.Options.EnableDateRangeOptimization);
  }
  CqlTranslator translator=CqlTranslator.fromText(cqlData,options.toArray(new CqlTranslator.Options[options.size()]));
  ensureValid(translator);
  return translator.toObject();
}
Program: 11122
Project: 11122
Buggy source:
public static Library visitLibrary(String cqlLibrary){
  CqlTranslator translator=CqlTranslator.fromText(cqlLibrary);
  EnsureValid(translator);
  return translator.toELM();
}

Fixed version (ground truth):
public static Library visitLibrary(String cqlLibrary){
  CqlTranslator translator=CqlTranslator.fromText(cqlLibrary);
  ensureValid(translator);
  return translator.toELM();
}
Program: 11123
Project: 11123
Buggy source:
@Override public boolean equals(Object object){
  if (!(object instanceof Code))   return false;
  Code that=(Code)object;
  return (this.code.equals(that.code) && this.system.equals(that.system) && this.version.equals(that.version));
}

Fixed version (ground truth):
@Override public boolean equals(Object object){
  if (!(object instanceof Code))   return false;
  Code that=(Code)object;
  return this.code.equals(that.code) && this.system.equals(that.system) && this.version.equals(that.version);
}
Program: 11124
Project: 11124
Buggy source:
public ValueSet[] findValueSetsByOid(String oid);

Fixed version (ground truth):
/** 
 * Find ValueSets by OID.
 * @param oid The OID of the ValueSet.
 * @return An array, possibly null or empty, of ValueSets with the given OID(the array may contain multiple versions of the same ValueSet).
 */
public ValueSet[] findValueSetsByOid(String oid);
Program: 11125
Project: 11125
Buggy source:
public ValueSet findValueSet(String oid,String version);

Fixed version (ground truth):
/** 
 * Find a particular version of a ValueSet.
 * @param oid The OID of the ValueSet.
 * @param version The version of the ValueSet.
 * @return The version of the ValueSet, if it exists and is available, otherwise null.
 */
public ValueSet findValueSet(String oid,String version);
Program: 11127
Project: 11127
Buggy source:
@Override public boolean equals(Object object){
  if (!(object instanceof Code))   return false;
  Code that=(Code)object;
  return (this.code.equals(that.code) && this.system.equals(that.system) && this.version.equals(that.version));
}

Fixed version (ground truth):
@Override public boolean equals(Object object){
  if (!(object instanceof Code))   return false;
  Code that=(Code)object;
  return this.code.equals(that.code) && this.system.equals(that.system) && this.version.equals(that.version);
}
Program: 11128
Project: 11128
Buggy source:
public ValueSet[] findValueSetsByOid(String oid);

Fixed version (ground truth):
/** 
 * Find ValueSets by OID.
 * @param oid The OID of the ValueSet.
 * @return An array, possibly null or empty, of ValueSets with the given OID(the array may contain multiple versions of the same ValueSet).
 */
public ValueSet[] findValueSetsByOid(String oid);
Program: 11129
Project: 11129
Buggy source:
public ValueSet findValueSet(String oid,String version);

Fixed version (ground truth):
/** 
 * Find a particular version of a ValueSet.
 * @param oid The OID of the ValueSet.
 * @param version The version of the ValueSet.
 * @return The version of the ValueSet, if it exists and is available, otherwise null.
 */
public ValueSet findValueSet(String oid,String version);
Program: 11130
Project: 11130
Buggy source:
private static void prepWorkingArea(String script) throws IOException {
  workingArea=Files.createTempDirectory("String_Node_Str");
  for (  String filename : requiredScripts) {
    File file=new File(Engine.class.getResource(filename).getFile());
    Path source=Paths.get(file.toURI());
    Files.copy(source,workingArea.resolve(source.getFileName()));
  }
  Path engineScript=Files.createFile(workingArea.resolve("String_Node_Str"));
  Files.write(engineScript,script.getBytes(),StandardOpenOption.WRITE);
}

Fixed version (ground truth):
private static void prepWorkingArea(String script) throws IOException {
  workingArea=Files.createTempDirectory("String_Node_Str");
  for (  String filename : requiredScripts) {
    File file=new File(Engine.class.getResource(filename).getFile());
    Path source=Paths.get(file.toURI());
    Files.copy(source,workingArea.resolve(source.getFileName()));
  }
  Path engineScript=Files.createFile(workingArea.resolve("String_Node_Str"));
  Files.write(engineScript,script.getBytes("String_Node_Str"),StandardOpenOption.WRITE);
}
Program: 11131
Project: 11131
Buggy source:
private static void cleanWorkingArea(){
  String[] files=workingArea.toFile().list();
  for (  String file : files) {
    try {
      Files.delete(workingArea.resolve(file));
    }
 catch (    IOException e) {
    }
  }
  try {
    Files.delete(workingArea);
  }
 catch (  IOException e) {
  }
  workingArea=null;
}

Fixed version (ground truth):
private static void cleanWorkingArea(){
  String[] files=workingArea.toFile().list();
  for (  String file : files) {
    try {
      Files.delete(workingArea.resolve(file));
    }
 catch (    IOException e) {
      e.toString();
    }
  }
  try {
    Files.delete(workingArea);
  }
 catch (  IOException e) {
    e.toString();
  }
  workingArea=null;
}
Program: 11132
Project: 11132
Buggy source:
/** 
 * Pad integers to always have two characters. Numbers under 10 will have a leading zero (e.g. "08")
 */
private String pad(int value){
  if (value < 10) {
    return ("String_Node_Str" + value);
  }
 else {
    return ("String_Node_Str" + value);
  }
}

Fixed version (ground truth):
/** 
 * Pad integers to always have two characters. Numbers under 10 will have a leading zero (e.g. "08")
 */
private String pad(int value){
  if (value < 10) {
    return "String_Node_Str" + value;
  }
 else {
    return "String_Node_Str" + value;
  }
}
Program: 11133
Project: 11133
Buggy source:
private String generatePatient(){
  char initial=(char)(random.nextInt(26) + 'A');
  String surname=surnames[random.nextInt(surnames.length)];
  String gender=(random.nextBoolean()) ? "String_Node_Str" : "String_Node_Str";
  int year=1980 + random.nextInt(30);
  int month=1 + random.nextInt(12);
  int day=1 + random.nextInt(28);
  int hour=random.nextInt(24);
  int minute=random.nextInt(60);
  StringBuffer sb=new StringBuffer("String_Node_Str");
  sb.append("String_Node_Str").append(id).append("String_Node_Str");
  sb.append("String_Node_Str").append(initial).append("String_Node_Str").append(surname).append("String_Node_Str");
  sb.append("String_Node_Str").append(gender).append("String_Node_Str");
  sb.append("String_Node_Str").append(year).append("String_Node_Str").append(pad(month)).append("String_Node_Str").append(pad(day)).append("String_Node_Str");
  sb.append(pad(hour)).append("String_Node_Str").append(pad(minute)).append("String_Node_Str");
  sb.append("String_Node_Str");
  return sb.toString();
}

Fixed version (ground truth):
private String generatePatient(){
  char initial=(char)(random.nextInt(26) + 'A');
  String surname=surnames[random.nextInt(surnames.length)];
  String gender=random.nextBoolean() ? "String_Node_Str" : "String_Node_Str";
  int year=1980 + random.nextInt(30);
  int month=1 + random.nextInt(12);
  int day=1 + random.nextInt(28);
  int hour=random.nextInt(24);
  int minute=random.nextInt(60);
  StringBuffer sb=new StringBuffer("String_Node_Str");
  sb.append("String_Node_Str").append(id).append("String_Node_Str");
  sb.append("String_Node_Str").append(initial).append("String_Node_Str").append(surname).append("String_Node_Str");
  sb.append("String_Node_Str").append(gender).append("String_Node_Str");
  sb.append("String_Node_Str").append(year).append("String_Node_Str").append(pad(month)).append("String_Node_Str").append(pad(day)).append("String_Node_Str");
  sb.append(pad(hour)).append("String_Node_Str").append(pad(minute)).append("String_Node_Str");
  sb.append("String_Node_Str");
  return sb.toString();
}
Program: 11135
Project: 11135
Buggy source:
public void testValueSets(){
  Collection<ValueSetDef> actualVS=library.getValueSets().getDef();
  Collection<ValueSetDef> expectedVS=Arrays.asList(of.createValueSetDef().withName("String_Node_Str").withValueSet(createValueSetFunctionRef("String_Node_Str")),of.createValueSetDef().withName("String_Node_Str").withValueSet(createValueSetFunctionRef("String_Node_Str")),of.createValueSetDef().withName("String_Node_Str").withValueSet(createValueSetFunctionRef("String_Node_Str")),of.createValueSetDef().withName("String_Node_Str").withValueSet(createValueSetFunctionRef("String_Node_Str")),of.createValueSetDef().withName("String_Node_Str").withValueSet(createValueSetFunctionRef("String_Node_Str")));
  assertThat(actualVS,is(expectedVS));
}

Fixed version (ground truth):
@Test(enabled=false) public void testValueSets(){
  Collection<ValueSetDef> actualVS=library.getValueSets().getDef();
  Collection<ValueSetDef> expectedVS=Arrays.asList(of.createValueSetDef().withName("String_Node_Str").withValueSet(createValueSetFunctionRef("String_Node_Str")),of.createValueSetDef().withName("String_Node_Str").withValueSet(createValueSetFunctionRef("String_Node_Str")),of.createValueSetDef().withName("String_Node_Str").withValueSet(createValueSetFunctionRef("String_Node_Str")),of.createValueSetDef().withName("String_Node_Str").withValueSet(createValueSetFunctionRef("String_Node_Str")),of.createValueSetDef().withName("String_Node_Str").withValueSet(createValueSetFunctionRef("String_Node_Str")));
  assertThat(actualVS,is(expectedVS));
}
Program: 11136
Project: 11136
Buggy source:
private Library resolveLibrary(String identifier){
  return libraries.getOrDefault(identifier,null);
}

Fixed version (ground truth):
private Library resolveLibrary(String identifier){
  return libraries.get(identifier);
}
Program: 11137
Project: 11137
Buggy source:
@Override public Object visitTimingExpression(@NotNull cqlParser.TimingExpressionContext ctx){
  Expression left=parseExpression(ctx.expression(0));
  Expression right=parseExpression(ctx.expression(1));
  TimingOperatorContext timingOperatorContext=new TimingOperatorContext();
  timingOperators.push(timingOperatorContext);
  try {
    return visit(ctx.intervalOperatorPhrase());
  }
  finally {
    timingOperators.pop();
  }
}

Fixed version (ground truth):
@Override public Object visitTimingExpression(@NotNull cqlParser.TimingExpressionContext ctx){
  Expression left=parseExpression(ctx.expression(0));
  Expression right=parseExpression(ctx.expression(1));
  TimingOperatorContext timingOperatorContext=new TimingOperatorContext(left,right);
  timingOperators.push(timingOperatorContext);
  try {
    return visit(ctx.intervalOperatorPhrase());
  }
  finally {
    timingOperators.pop();
  }
}
Program: 11138
Project: 11138
Buggy source:
public AliasedQuerySource resolveAlias(String identifier){
  for (  AliasedQuerySource source : sources) {
    if ("String_Node_Str".equals(source.getAlias())) {
      return source;
    }
  }
  return null;
}

Fixed version (ground truth):
public AliasedQuerySource resolveAlias(String identifier){
  for (  AliasedQuerySource source : sources) {
    if (identifier.equals(source.getAlias())) {
      return source;
    }
  }
  return null;
}
Program: 11141
Project: 11141
Buggy source:
@Override public void onClick(View view){
  new FilePickerBuilder(getActivity()).withColor(android.R.color.holo_blue_bright).withRequest(Request.FILE).withScopeType(Scope.ALL).withMimeType(FileType.JPEG).useMaterialActivity(true).launch(REQUEST_FILE);
}

Fixed version (ground truth):
@Override public void onClick(View view){
  new FilePickerBuilder(getActivity()).withColor(android.R.color.holo_blue_bright).withRequest(Request.FILE).withScope(Scope.ALL).withMimeType(MimeType.JPEG).useMaterialActivity(true).launch(REQUEST_FILE);
}
Program: 11143
Project: 11143
Buggy source:
@Override public void onActivityResult(int requestCode,int resultCode,Intent data){
  if (requestCode == REQUEST_DIRECTORY && resultCode == RESULT_OK) {
    Toast.makeText(getActivity(),"String_Node_Str" + data.getStringExtra(FilePickerActivity.FILE_EXTRA_DATA_PATH),Toast.LENGTH_LONG).show();
  }
 else   if (requestCode == REQUEST_FILE && resultCode == RESULT_OK) {
    Toast.makeText(getActivity(),"String_Node_Str" + data.getStringExtra(FilePickerActivity.FILE_EXTRA_DATA_PATH),Toast.LENGTH_LONG).show();
  }
  super.onActivityResult(requestCode,resultCode,data);
}

Fixed version (ground truth):
@Override public void onActivityResult(int requestCode,int resultCode,Intent data){
  super.onActivityResult(requestCode,resultCode,data);
  if ((requestCode == REQUEST_DIRECTORY) && (resultCode == RESULT_OK)) {
    Toast.makeText(getActivity(),"String_Node_Str" + data.getStringExtra(FilePickerActivity.FILE_EXTRA_DATA_PATH),Toast.LENGTH_LONG).show();
  }
 else   if ((requestCode == REQUEST_FILE) && (resultCode == RESULT_OK)) {
    Toast.makeText(getActivity(),"String_Node_Str" + data.getStringExtra(FilePickerActivity.FILE_EXTRA_DATA_PATH),Toast.LENGTH_LONG).show();
  }
}
Program: 11147
Project: 11147
Buggy source:
/** 
 * Set the scopetype of the file picker.
 * @param type scope type. Can be DIRECTORIES or ALL.
 * @return the current builder instance.
 */
public FilePickerBuilder withScopeType(Scope type){
  mScope=type;
  return this;
}

Fixed version (ground truth):
@Deprecated public FilePickerBuilder withScopeType(Scope type){
  mScope=type;
  return this;
}
Program: 11148
Project: 11148
Buggy source:
/** 
 * Set the file mime type. The will require the returned file type to match the mime type.
 * @param type the mime type.
 * @return current instance of the builder.
 */
public FilePickerBuilder withMimeType(FileType type){
  mimeType=type;
  return this;
}

Fixed version (ground truth):
/** 
 * Set the file mime type. The will require the returned file type to match the mime type.
 * @param type the mime type.
 * @return current instance of the builder.
 */
public FilePickerBuilder withMimeType(MimeType type){
  mimeType=type;
  return this;
}
Program: 11149
Project: 11149
Buggy source:
/** 
 * Build the current intent.
 * @return a filepicker intent.
 */
public Intent build(){
  Intent filePicker=new Intent(mContext,useMaterial ? FilePicker.class : FilePickerActivity.class);
  filePicker.putExtra(FilePicker.SCOPE_TYPE,mScope);
  filePicker.putExtra(FilePicker.REQUEST_CODE,requestCode);
  filePicker.putExtra(FilePicker.INTENT_EXTRA_COLOR_ID,color);
  filePicker.putExtra(FilePicker.MIME_TYPE,mimeType);
  return filePicker;
}

Fixed version (ground truth):
/** 
 * Build the current intent.
 * @return a filepicker intent.
 */
public Intent build(){
  Intent filePicker=new Intent(mContext,useMaterial ? FilePicker.class : FilePickerActivity.class);
  filePicker.putExtra(FilePicker.SCOPE,mScope);
  filePicker.putExtra(FilePicker.REQUEST,requestCode);
  filePicker.putExtra(FilePicker.INTENT_EXTRA_COLOR_ID,color);
  filePicker.putExtra(FilePicker.MIME_TYPE,mimeType);
  return filePicker;
}
Program: 11153
Project: 11153
Buggy source:
/** 
 * Initializes the animations used in this activity.
 */
private void setUpAnimations(){
  slideUp=AnimationUtils.loadAnimation(this,R.anim.slide_up);
  slideDown=AnimationUtils.loadAnimation(this,R.anim.slide_down);
  rotateIn=AnimationUtils.loadAnimation(this,R.anim.rotate_and_fade_in);
  rotateOut=AnimationUtils.loadAnimation(this,R.anim.rotate_and_fade_out);
}

Fixed version (ground truth):
/** 
 * Initializes the animations used in this activity.
 */
private void setUpAnimations(){
  slideUp=AnimationUtils.loadAnimation(this,com.devpaul.filepickerlibrary.R.anim.slide_up);
  slideDown=AnimationUtils.loadAnimation(this,com.devpaul.filepickerlibrary.R.anim.slide_down);
  rotateIn=AnimationUtils.loadAnimation(this,com.devpaul.filepickerlibrary.R.anim.rotate_and_fade_in);
  rotateOut=AnimationUtils.loadAnimation(this,com.devpaul.filepickerlibrary.R.anim.rotate_and_fade_out);
}
Program: 11154
Project: 11154
Buggy source:
@Override public Object getItem(int i){
  return files[i];
}

Fixed version (ground truth):
@Override public Object getItem(int i){
  return fileList.get(i);
}
Program: 11155
Project: 11155
Buggy source:
public FileListAdapter(Context context,File[] fileArray,FileScopeType type){
  this.mContext=context;
  this.files=fileArray;
  this.inflater=LayoutInflater.from(mContext);
  this.mFileType=type;
  selectedPos=-1;
  folderDrawable=mContext.getResources().getDrawable(R.drawable.ic_folder);
}

Fixed version (ground truth):
public FileListAdapter(Context context,File[] fileArray,FileScopeType type){
  this.mContext=context;
  this.fileList=new ArrayList<File>(Arrays.asList(fileArray));
  this.inflater=LayoutInflater.from(mContext);
  this.mFileType=type;
  selectedPos=-1;
  folderDrawable=mContext.getResources().getDrawable(R.drawable.ic_folder);
  if (mFileType == FileScopeType.DIRECTORIES) {
    for (int i=0; i < fileList.size(); i++) {
      String extension=fileExt(fileList.get(i).getPath());
      if (extension != null) {
        Log.d("String_Node_Str","String_Node_Str" + extension);
        fileList.remove(i);
      }
    }
  }
}
Program: 11156
Project: 11156
Buggy source:
@Override public int getCount(){
  return files.length;
}

Fixed version (ground truth):
@Override public int getCount(){
  return fileList.size();
}
Program: 11158
Project: 11158
Buggy source:
/** 
 * Basic Constructor.
 * @param indexMetadata     Index metadata information .
 * @param createIfNotExists Condition of creation of the index.
 * @param session           Session that the Index affect.
 * @throws ExecutionException
 */
public CreateIndexStatement(IndexMetadata indexMetadata,boolean createIfNotExists,Session session) throws ExecutionException {
  this.targetColumns=indexMetadata.getColumns();
  this.createIfNotExists=createIfNotExists;
  this.type=indexMetadata.getType();
  this.tableName=indexMetadata.getName().getTableName().getName();
  this.keyspace=indexMetadata.getName().getTableName().getCatalogName().getName();
  if (keyspace != null) {
    this.keyspaceIncluded=true;
  }
  this.name=Utils.toCaseSensitive(indexMetadata.getName().getName());
  if (type == IndexType.FULL_TEXT) {
    usingClass="String_Node_Str";
    try {
      columnForIndex=indexMetadata.getName().getName();
      String catalog=Utils.toCaseSensitive(indexMetadata.getName().getTableName().getCatalogName().getName());
      String table=Utils.toCaseSensitive(indexMetadata.getName().getTableName().getName());
      session.execute("String_Node_Str" + catalog + '.'+ table+ "String_Node_Str"+ Utils.toCaseSensitive(columnForIndex)+ "String_Node_Str");
    }
 catch (    Exception e) {
      throw new ExecutionException("String_Node_Str" + e.getMessage(),e);
    }
  }
}

Fixed version (ground truth):
/** 
 * Basic Constructor.
 * @param indexMetadata     Index metadata information .
 * @param createIfNotExists Condition of creation of the index.
 * @param session           Session that the Index affect.
 * @throws ExecutionException
 */
public CreateIndexStatement(IndexMetadata indexMetadata,boolean createIfNotExists,Session session) throws ExecutionException {
  this.targetColumns=indexMetadata.getColumns();
  this.createIfNotExists=createIfNotExists;
  this.type=indexMetadata.getType();
  this.tableName=indexMetadata.getName().getTableName().getName();
  this.keyspace=indexMetadata.getName().getTableName().getCatalogName().getName();
  if (keyspace != null) {
    this.keyspaceIncluded=true;
  }
  this.name=indexMetadata.getName().getName();
  if (type == IndexType.FULL_TEXT) {
    usingClass="String_Node_Str";
    try {
      columnForIndex=indexMetadata.getName().getName();
      String catalog=Utils.toCaseSensitive(indexMetadata.getName().getTableName().getCatalogName().getName());
      String table=Utils.toCaseSensitive(indexMetadata.getName().getTableName().getName());
      session.execute("String_Node_Str" + catalog + '.'+ table+ "String_Node_Str"+ Utils.toCaseSensitive(columnForIndex)+ "String_Node_Str");
    }
 catch (    Exception e) {
      throw new ExecutionException("String_Node_Str" + e.getMessage(),e);
    }
  }
}
Program: 11159
Project: 11159
Buggy source:
/** 
 * Get the query in a String in CQL language.
 * @return String with the query
 */
@Override public String toString(){
  StringBuilder sb=new StringBuilder("String_Node_Str");
  if (type == (IndexType.FULL_TEXT)) {
    options=generateLuceneOptions();
    sb.append("String_Node_Str");
  }
  sb.append("String_Node_Str");
  if (createIfNotExists) {
    sb.append("String_Node_Str");
  }
  if (name != null) {
    sb.append((getIndexName())).append("String_Node_Str");
  }
  sb.append("String_Node_Str");
  if (keyspaceIncluded) {
    sb.append(Utils.toCaseSensitive(keyspace)).append("String_Node_Str");
  }
  sb.append(Utils.toCaseSensitive(tableName));
  sb.append("String_Node_Str");
  if (type != IndexType.FULL_TEXT) {
    int i=0;
    for (    Map.Entry<ColumnName,ColumnMetadata> entry : targetColumns.entrySet()) {
      if (i != 0) {
        sb.append("String_Node_Str");
      }
      sb.append(Utils.toCaseSensitive(entry.getValue().getName().getName()));
      i=1;
    }
  }
 else {
    sb.append(Utils.toCaseSensitive(columnForIndex));
  }
  sb.append("String_Node_Str");
  if (usingClass != null) {
    sb.append("String_Node_Str");
    sb.append(usingClass);
  }
  if (!options.isEmpty()) {
    sb.append(getOptionsString());
  }
  return sb.toString();
}

Fixed version (ground truth):
/** 
 * Get the query in a String in CQL language.
 * @return String with the query
 */
@Override public String toString(){
  StringBuilder sb=new StringBuilder("String_Node_Str");
  if (type == (IndexType.FULL_TEXT)) {
    options=generateLuceneOptions();
    sb.append("String_Node_Str");
  }
  sb.append("String_Node_Str");
  if (createIfNotExists) {
    sb.append("String_Node_Str");
  }
  if (name != null) {
    sb.append(Utils.toCaseSensitive(getIndexName())).append("String_Node_Str");
  }
  sb.append("String_Node_Str");
  if (keyspaceIncluded) {
    sb.append(Utils.toCaseSensitive(keyspace)).append("String_Node_Str");
  }
  sb.append(Utils.toCaseSensitive(tableName));
  sb.append("String_Node_Str");
  if (type != IndexType.FULL_TEXT) {
    int i=0;
    for (    Map.Entry<ColumnName,ColumnMetadata> entry : targetColumns.entrySet()) {
      if (i != 0) {
        sb.append("String_Node_Str");
      }
      sb.append(Utils.toCaseSensitive(entry.getValue().getName().getName()));
      i=1;
    }
  }
 else {
    sb.append(Utils.toCaseSensitive(columnForIndex));
  }
  sb.append("String_Node_Str");
  if (usingClass != null) {
    sb.append("String_Node_Str");
    sb.append(usingClass);
  }
  if (!options.isEmpty()) {
    sb.append(getOptionsString());
  }
  return sb.toString();
}
Program: 11162
Project: 11162
Buggy source:
/** 
 * Create Index for Cassandra Connector.
 * @param targetCluster The target cluster.
 * @param indexMetadata The metadata of the index that will be created.
 * @throws ConnectorException
 */
@Override public void createIndex(ClusterName targetCluster,IndexMetadata indexMetadata) throws ConnectorException {
  session=sessions.get(targetCluster.getName());
  CreateIndexStatement indexStatement=new CreateIndexStatement(indexMetadata,true,session);
  try {
    CassandraExecutor.execute(indexStatement.toString(),session);
  }
 catch (  ConnectorException e) {
    String tableName=Utils.toCaseSensitive(indexMetadata.getName().getTableName().getName());
    String catalog=Utils.toCaseSensitive(indexMetadata.getName().getTableName().getCatalogName().getName());
    String remove="String_Node_Str" + catalog + "String_Node_Str"+ tableName+ "String_Node_Str"+ indexMetadata.getName().getName();
    CassandraExecutor.execute(remove,session);
    throw e;
  }
}

Fixed version (ground truth):
/** 
 * Create Index for Cassandra Connector.
 * @param targetCluster The target cluster.
 * @param indexMetadata The metadata of the index that will be created.
 * @throws ConnectorException
 */
@Override public void createIndex(ClusterName targetCluster,IndexMetadata indexMetadata) throws ConnectorException {
  session=sessions.get(targetCluster.getName());
  CreateIndexStatement indexStatement;
  try {
    indexStatement=new CreateIndexStatement(indexMetadata,true,session);
  }
 catch (  Exception e) {
    throw e;
  }
  try {
    CassandraExecutor.execute(indexStatement.toString(),session);
  }
 catch (  ConnectorException e) {
    String tableName=Utils.toCaseSensitive(indexMetadata.getName().getTableName().getName());
    String catalog=Utils.toCaseSensitive(indexMetadata.getName().getTableName().getCatalogName().getName());
    String remove="String_Node_Str" + catalog + "String_Node_Str"+ tableName+ "String_Node_Str"+ indexMetadata.getName().getName();
    CassandraExecutor.execute(remove,session);
    throw e;
  }
}
Program: 11163
Project: 11163
Buggy source:
/** 
 * Drop Index that was created previously.
 * @param targetCluster The target cluster.
 * @param indexMetadata The IndexName of the index.
 * @throws ConnectorException
 */
@Override public void dropIndex(ClusterName targetCluster,IndexMetadata indexMetadata) throws ConnectorException {
  String remove;
  session=sessions.get(targetCluster.getName());
  DropIndexStatement indexStatement=new DropIndexStatement(indexMetadata,false);
  String tableName=Utils.toCaseSensitive(indexMetadata.getName().getTableName().getName());
  String catalog=Utils.toCaseSensitive(indexMetadata.getName().getTableName().getCatalogName().getName());
  if (indexMetadata.getType() == IndexType.FULL_TEXT) {
    remove="String_Node_Str" + catalog + "String_Node_Str"+ tableName+ "String_Node_Str"+ Utils.toCaseSensitive(indexMetadata.getName().getName());
  }
 else {
    remove="String_Node_Str" + catalog + "String_Node_Str"+ Utils.toCaseSensitive(indexMetadata.getName().getName());
  }
  CassandraExecutor.execute(remove,session);
}

Fixed version (ground truth):
/** 
 * Drop Index that was created previously.
 * @param targetCluster The target cluster.
 * @param indexMetadata The IndexName of the index.
 * @throws ConnectorException
 */
@Override public void dropIndex(ClusterName targetCluster,IndexMetadata indexMetadata) throws ConnectorException {
  String remove;
  session=sessions.get(targetCluster.getName());
  DropIndexStatement indexStatement=new DropIndexStatement(indexMetadata,false);
  String tableName=Utils.toCaseSensitive(indexMetadata.getName().getTableName().getName());
  String catalog=Utils.toCaseSensitive(indexMetadata.getName().getTableName().getCatalogName().getName());
  if (indexMetadata.getType() == IndexType.FULL_TEXT) {
    remove="String_Node_Str" + catalog + "String_Node_Str"+ tableName+ "String_Node_Str"+ Utils.toCaseSensitive(indexMetadata.getName().getName());
    CassandraExecutor.execute(remove,session);
  }
 else {
    remove="String_Node_Str" + catalog + "String_Node_Str"+ Utils.toCaseSensitive(indexMetadata.getName().getName());
    CassandraExecutor.execute(remove,session);
  }
}
Program: 11164
Project: 11164
Buggy source:
/** 
 * Basic Constructor.
 * @param indexMetadata     Index metadata information .
 * @param createIfNotExists Condition of creation of the index.
 * @param session           Session that the Index affect.
 * @throws ExecutionException
 */
public CreateIndexStatement(IndexMetadata indexMetadata,boolean createIfNotExists,Session session) throws ExecutionException {
  this.targetColumns=indexMetadata.getColumns();
  this.createIfNotExists=createIfNotExists;
  this.type=indexMetadata.getType();
  this.tableName=indexMetadata.getName().getTableName().getName();
  this.keyspace=indexMetadata.getName().getTableName().getCatalogName().getName();
  if (keyspace != null) {
    this.keyspaceIncluded=true;
  }
  this.name=indexMetadata.getName().getName();
  if (type == IndexType.FULL_TEXT) {
    usingClass="String_Node_Str";
    try {
      columnForIndex=getIndexName();
      String catalog=Utils.toCaseSensitive(indexMetadata.getName().getTableName().getCatalogName().getName());
      String table=Utils.toCaseSensitive(indexMetadata.getName().getTableName().getName());
      session.execute("String_Node_Str" + catalog + '.'+ table+ "String_Node_Str"+ Utils.toCaseSensitive(columnForIndex)+ "String_Node_Str");
    }
 catch (    Exception e) {
      throw new ExecutionException("String_Node_Str" + e.getMessage(),e);
    }
  }
}

Fixed version (ground truth):
/** 
 * Basic Constructor.
 * @param indexMetadata     Index metadata information .
 * @param createIfNotExists Condition of creation of the index.
 * @param session           Session that the Index affect.
 * @throws ExecutionException
 */
public CreateIndexStatement(IndexMetadata indexMetadata,boolean createIfNotExists,Session session) throws ExecutionException {
  this.targetColumns=indexMetadata.getColumns();
  this.createIfNotExists=createIfNotExists;
  this.type=indexMetadata.getType();
  this.tableName=indexMetadata.getName().getTableName().getName();
  this.keyspace=indexMetadata.getName().getTableName().getCatalogName().getName();
  if (keyspace != null) {
    this.keyspaceIncluded=true;
  }
  this.name=indexMetadata.getName().getName();
  if (type == IndexType.FULL_TEXT) {
    usingClass="String_Node_Str";
    try {
      columnForIndex=indexMetadata.getName().getName();
      String catalog=Utils.toCaseSensitive(indexMetadata.getName().getTableName().getCatalogName().getName());
      String table=Utils.toCaseSensitive(indexMetadata.getName().getTableName().getName());
      session.execute("String_Node_Str" + catalog + '.'+ table+ "String_Node_Str"+ Utils.toCaseSensitive(columnForIndex)+ "String_Node_Str");
    }
 catch (    Exception e) {
      throw new ExecutionException("String_Node_Str" + e.getMessage(),e);
    }
  }
}
Program: 11165
Project: 11165
Buggy source:
/** 
 * Get the name of the index. If a LUCENE index is to be created, the name of the index is prepended with   {@code stratio_lucene_}. If a name for the index is not specified, the index will be named using the concatenation of the target column names.
 * @return The name of the index.
 */
private String getIndexName(){
  String result=null;
  if (name == null) {
    StringBuilder sb=new StringBuilder();
    if (IndexType.FULL_TEXT.equals(type)) {
      sb.append("String_Node_Str");
      for (      ColumnMetadata columnMetadata : targetColumns.values()) {
        sb.append("String_Node_Str");
        sb.append(columnMetadata.getName().getName());
      }
      sb.append(tableName);
    }
 else {
      sb.append(tableName);
      for (      Map.Entry<ColumnName,ColumnMetadata> entry : targetColumns.entrySet()) {
        sb.append("String_Node_Str");
        sb.append(entry.getValue());
      }
      sb.append("String_Node_Str");
    }
    result=sb.toString();
  }
 else {
    result=name;
    if (IndexType.FULL_TEXT.equals(type)) {
      result=name;
    }
  }
  return result;
}

Fixed version (ground truth):
/** 
 * Get the name of the index. If a LUCENE index is to be created, the name of the index is prepended with   {@code stratio_lucene_}. If a name for the index is not specified, the index will be named using the concatenation of the target column names.
 * @return The name of the index.
 */
private String getIndexName(){
  String result=null;
  if (name == null) {
    StringBuilder sb=new StringBuilder();
    if (IndexType.FULL_TEXT.equals(type)) {
      sb.append("String_Node_Str");
      for (      ColumnMetadata columnMetadata : targetColumns.values()) {
        sb.append("String_Node_Str");
        sb.append(columnMetadata.getName().getName());
      }
      sb.append(tableName);
    }
 else {
      sb.append(tableName);
      for (      Map.Entry<ColumnName,ColumnMetadata> entry : targetColumns.entrySet()) {
        sb.append("String_Node_Str");
        sb.append(entry.getValue());
      }
      sb.append("String_Node_Str");
    }
    result=sb.toString();
  }
 else {
    result=name;
    if (IndexType.FULL_TEXT.equals(type)) {
      result=keyspace + "String_Node_Str" + tableName+ "String_Node_Str"+ name;
    }
  }
  return result;
}
Program: 11167
Project: 11167
Buggy source:
/** 
 * Drop Index that was created previously.
 * @param targetCluster The target cluster.
 * @param indexMetadata     The IndexName of the index.
 * @throws ConnectorException
 */
@Override public void dropIndex(ClusterName targetCluster,IndexMetadata indexMetadata) throws ConnectorException {
  session=sessions.get(targetCluster.getName());
  DropIndexStatement indexStatement=new DropIndexStatement(indexMetadata,false);
  String tableName=Utils.toCaseSensitive(indexMetadata.getName().getTableName().getName());
  String catalog=Utils.toCaseSensitive(indexMetadata.getName().getTableName().getCatalogName().getName());
  String remove="String_Node_Str" + catalog + "String_Node_Str"+ tableName+ "String_Node_Str"+ Utils.toCaseSensitive(indexMetadata.getName().getName());
  CassandraExecutor.execute(remove,session);
}

Fixed version (ground truth):
/** 
 * Drop Index that was created previously.
 * @param targetCluster The target cluster.
 * @param indexMetadata The IndexName of the index.
 * @throws ConnectorException
 */
@Override public void dropIndex(ClusterName targetCluster,IndexMetadata indexMetadata) throws ConnectorException {
  String remove;
  session=sessions.get(targetCluster.getName());
  DropIndexStatement indexStatement=new DropIndexStatement(indexMetadata,false);
  String tableName=Utils.toCaseSensitive(indexMetadata.getName().getTableName().getName());
  String catalog=Utils.toCaseSensitive(indexMetadata.getName().getTableName().getCatalogName().getName());
  if (indexMetadata.getType() == IndexType.FULL_TEXT) {
    remove="String_Node_Str" + catalog + "String_Node_Str"+ tableName+ "String_Node_Str"+ Utils.toCaseSensitive(indexMetadata.getName().getName());
  }
 else {
    remove="String_Node_Str" + catalog + "String_Node_Str"+ Utils.toCaseSensitive(indexMetadata.getName().getName());
  }
  CassandraExecutor.execute(remove,session);
}
Program: 11169
Project: 11169
Buggy source:
public String getNativeValueColumn(ColumnType type,String value){
switch (type.getDbType().toLowerCase()) {
case "String_Node_Str":
case "String_Node_Str":
case "String_Node_Str":
    return "String_Node_Str" + value + "String_Node_Str";
default :
  return value;
}
}

Fixed version (ground truth):
public String getNativeValueColumn(ColumnType type,String value){
switch (type.getDbType().toLowerCase()) {
case "String_Node_Str":
case "String_Node_Str":
case "String_Node_Str":
case "String_Node_Str":
    return "String_Node_Str" + value + "String_Node_Str";
default :
  return value;
}
}
Program: 11172
Project: 11172
Buggy source:
/** 
 * Drop Index that was created previously.
 * @param targetCluster The target cluster.
 * @param indexMetadata     The IndexName of the index.
 * @throws ConnectorException
 */
@Override public void dropIndex(ClusterName targetCluster,IndexMetadata indexMetadata) throws ConnectorException {
  session=sessions.get(targetCluster.getName());
  DropIndexStatement indexStatement=new DropIndexStatement(indexMetadata,false);
  String tableName=Utils.toCaseSensitive(indexMetadata.getName().getTableName().getName());
  String catalog=Utils.toCaseSensitive(indexMetadata.getName().getTableName().getCatalogName().getName());
  String remove="String_Node_Str" + catalog + "String_Node_Str"+ tableName+ "String_Node_Str"+ indexMetadata.getName().getName();
  CassandraExecutor.execute(remove,session);
}

Fixed version (ground truth):
/** 
 * Drop Index that was created previously.
 * @param targetCluster The target cluster.
 * @param indexMetadata     The IndexName of the index.
 * @throws ConnectorException
 */
@Override public void dropIndex(ClusterName targetCluster,IndexMetadata indexMetadata) throws ConnectorException {
  session=sessions.get(targetCluster.getName());
  DropIndexStatement indexStatement=new DropIndexStatement(indexMetadata,false);
  String tableName=Utils.toCaseSensitive(indexMetadata.getName().getTableName().getName());
  String catalog=Utils.toCaseSensitive(indexMetadata.getName().getTableName().getCatalogName().getName());
  String remove="String_Node_Str" + catalog + "String_Node_Str"+ tableName+ "String_Node_Str"+ Utils.toCaseSensitive(indexMetadata.getName().getName());
  CassandraExecutor.execute(remove,session);
}
Program: 11173
Project: 11173
Buggy source:
/** 
 * Create Index for Cassandra Connector.
 * @param targetCluster The target cluster.
 * @param indexMetadata The metadata of the index that will be created.
 * @throws ConnectorException
 */
@Override public void createIndex(ClusterName targetCluster,IndexMetadata indexMetadata) throws ConnectorException {
  session=sessions.get(targetCluster.getName());
  CreateIndexStatement indexStatement=new CreateIndexStatement(indexMetadata,true,session);
  CassandraExecutor.execute(indexStatement.toString(),session);
}

Fixed version (ground truth):
/** 
 * Create Index for Cassandra Connector.
 * @param targetCluster The target cluster.
 * @param indexMetadata The metadata of the index that will be created.
 * @throws ConnectorException
 */
@Override public void createIndex(ClusterName targetCluster,IndexMetadata indexMetadata) throws ConnectorException {
  session=sessions.get(targetCluster.getName());
  CreateIndexStatement indexStatement=new CreateIndexStatement(indexMetadata,true,session);
  try {
    CassandraExecutor.execute(indexStatement.toString(),session);
  }
 catch (  ConnectorException e) {
    String tableName=Utils.toCaseSensitive(indexMetadata.getName().getTableName().getName());
    String catalog=Utils.toCaseSensitive(indexMetadata.getName().getTableName().getCatalogName().getName());
    String remove="String_Node_Str" + catalog + "String_Node_Str"+ tableName+ "String_Node_Str"+ indexMetadata.getName().getName();
    CassandraExecutor.execute(remove,session);
    throw e;
  }
}
Program: 11174
Project: 11174
Buggy source:
/** 
 * Drop Index that was created previously.
 * @param targetCluster The target cluster.
 * @param indexName     The IndexName of the index.
 * @throws ConnectorException
 */
@Override public void dropIndex(ClusterName targetCluster,IndexMetadata indexName) throws ConnectorException {
  session=sessions.get(targetCluster.getName());
  DropIndexStatement indexStatement=new DropIndexStatement(indexName,false);
  CassandraExecutor.execute(indexStatement.toString(),session);
}

Fixed version (ground truth):
/** 
 * Drop Index that was created previously.
 * @param targetCluster The target cluster.
 * @param indexMetadata     The IndexName of the index.
 * @throws ConnectorException
 */
@Override public void dropIndex(ClusterName targetCluster,IndexMetadata indexMetadata) throws ConnectorException {
  session=sessions.get(targetCluster.getName());
  DropIndexStatement indexStatement=new DropIndexStatement(indexMetadata,false);
  String tableName=Utils.toCaseSensitive(indexMetadata.getName().getTableName().getName());
  String catalog=Utils.toCaseSensitive(indexMetadata.getName().getTableName().getCatalogName().getName());
  String remove="String_Node_Str" + catalog + "String_Node_Str"+ tableName+ "String_Node_Str"+ indexMetadata.getName().getName();
  CassandraExecutor.execute(remove,session);
}