nus-yam/ex-repair huggingface dataset:
Program: 33948
Project: 33948
Buggy source:
protected Widget createMain(){
  VerticalPanel main=new VerticalPanel();
  docCellTable=new CellTable<Document>();
  TextColumn<Document> uniqueIdColumn=new TextColumn<Document>(){
    @Override public String getValue(    Document document){
      return document.getUniqueId();
    }
  }
;
  TextColumn<Document> scoreColumn=new TextColumn<Document>(){
    @Override public String getValue(    Document document){
      return (document.getScore() + "String_Node_Str");
    }
  }
;
  SimplePager pager=new SimplePager();
  pager.setDisplay(docCellTable);
  docCellTable.addColumn(uniqueIdColumn);
  docCellTable.addColumn(scoreColumn);
  docCellTable.addRangeChangeHandler(new RangeChangeEvent.Handler(){
    @Override public void onRangeChange(    RangeChangeEvent event){
      Range range=event.getNewRange();
      final int start=range.getStart();
      final int length=range.getLength();
      lastRequest.setAmount(start + length);
      searchService.search(lastRequest,new AsyncCallback<SearchResults>(){
        @Override public void onFailure(        Throwable caught){
        }
        @Override public void onSuccess(        SearchResults result){
          docCellTable.setRowCount((int)result.getTotalHits());
          docCellTable.setRowData(start,result.getDocuments().subList(start,start + length));
        }
      }
);
    }
  }
);
  main.add(pager);
  main.add(docCellTable);
  return main;
}

Fixed version (ground truth):
protected Widget createMain(){
  VerticalPanel main=new VerticalPanel();
  docCellTable=new CellTable<Document>();
  TextColumn<Document> uniqueIdColumn=new TextColumn<Document>(){
    @Override public String getValue(    Document document){
      return document.getUniqueId();
    }
  }
;
  TextColumn<Document> scoreColumn=new TextColumn<Document>(){
    @Override public String getValue(    Document document){
      return (document.getScore() + "String_Node_Str");
    }
  }
;
  SimplePager pager=new SimplePager();
  pager.setDisplay(docCellTable);
  docCellTable.addColumn(uniqueIdColumn);
  docCellTable.addColumn(scoreColumn);
  docCellTable.addRangeChangeHandler(new RangeChangeEvent.Handler(){
    @Override public void onRangeChange(    RangeChangeEvent event){
      Range range=event.getNewRange();
      final int start=range.getStart();
      final int length=range.getLength();
      lastRequest.setAmount(start + length);
      searchService.search(lastRequest,new AsyncCallback<SearchResults>(){
        @Override public void onFailure(        Throwable caught){
        }
        @Override public void onSuccess(        SearchResults result){
          docCellTable.setRowCount((int)result.getTotalHits());
          if (result.getDocuments().isEmpty()) {
            List<Document> emptyDocs=Collections.emptyList();
            docCellTable.setRowData(start,emptyDocs);
          }
 else {
            docCellTable.setRowData(start,result.getDocuments().subList(start,start + length));
          }
        }
      }
);
    }
  }
);
  main.add(pager);
  main.add(docCellTable);
  return main;
}
Program: 33949
Project: 33949
Buggy source:
@Override public void flush() throws IOException {
  dirtyBlocks.put(currentWriteBlock.getBlockNumber(),currentWriteBlock);
  Set<Integer> dirtyBlockKeys=new HashSet<Integer>(dirtyBlocks.asMap().keySet());
  dirtyBlocks.invalidateAll(dirtyBlockKeys);
  mongoDirectory.updateFileMetadata(this);
}

Fixed version (ground truth):
@Override public void flush() throws IOException {
  if (currentWriteBlock != null) {
    dirtyBlocks.put(currentWriteBlock.getBlockNumber(),currentWriteBlock);
  }
  Set<Integer> dirtyBlockKeys=new HashSet<Integer>(dirtyBlocks.asMap().keySet());
  dirtyBlocks.invalidateAll(dirtyBlockKeys);
  mongoDirectory.updateFileMetadata(this);
}
Program: 33950
Project: 33950
Buggy source:
@Override public int compareTo(FacetCountResult o){
  return Long.compare(o.count,this.count);
}

Fixed version (ground truth):
@Override public int compareTo(FacetCountResult o){
  int compareCount=Long.compare(this.count,o.count);
  if (compareCount == 0) {
    return this.facet.compareTo(o.facet);
  }
  return compareCount;
}
Program: 33951
Project: 33951
Buggy source:
protected GetTermsResponse getTerms(String indexName,String fieldName,String startTerm,int amount,int retries) throws Exception {
  GetTermsRequest.Builder requestBuilder=GetTermsRequest.newBuilder();
  requestBuilder.setIndexName(indexName);
  requestBuilder.setFieldName(fieldName);
  requestBuilder.setAmount(amount);
  if (startTerm != null) {
    requestBuilder.setStartingTerm(startTerm);
  }
  GetTermsRequest request=requestBuilder.build();
  RpcController controller=null;
  try {
    if (service == null) {
      service=getInternalBlockingConnection();
    }
    controller=rpcClient.newRpcController();
    return service.getTerms(controller,request);
  }
 catch (  Exception e) {
    System.err.println("String_Node_Str" + request + "String_Node_Str"+ members.get(myServerIndex).getServerAddress()+ "String_Node_Str"+ (controller != null ? controller.errorText() : e.toString()));
    cycleServers();
    if (retries > 0) {
      return getTerms(indexName,fieldName,startTerm,retries - 1);
    }
 else {
      throw new Exception(e.getMessage());
    }
  }
}

Fixed version (ground truth):
protected GetTermsResponse getTerms(String indexName,String fieldName,String startTerm,int amount,Integer minDocFreq,int retries) throws Exception {
  GetTermsRequest.Builder requestBuilder=GetTermsRequest.newBuilder();
  requestBuilder.setIndexName(indexName);
  requestBuilder.setFieldName(fieldName);
  requestBuilder.setAmount(amount);
  if (minDocFreq != null) {
    requestBuilder.setMinDocFreq(minDocFreq);
  }
  if (startTerm != null) {
    requestBuilder.setStartingTerm(startTerm);
  }
  GetTermsRequest request=requestBuilder.build();
  RpcController controller=null;
  try {
    if (service == null) {
      service=getInternalBlockingConnection();
    }
    controller=rpcClient.newRpcController();
    return service.getTerms(controller,request);
  }
 catch (  Exception e) {
    System.err.println("String_Node_Str" + request + "String_Node_Str"+ members.get(myServerIndex).getServerAddress()+ "String_Node_Str"+ (controller != null ? controller.errorText() : e.toString()));
    cycleServers();
    if (retries > 0) {
      return getTerms(indexName,fieldName,startTerm,amount,minDocFreq,retries - 1);
    }
 else {
      throw new Exception(e.getMessage());
    }
  }
}
Program: 33952
Project: 33952
Buggy source:
public void index(String uniqueId,LMDoc lmDoc) throws CorruptIndexException, IOException {
  Document d=new Document();
  for (  LMField indexedField : lmDoc.getIndexedFieldList()) {
    String fieldName=indexedField.getFieldName();
    List<String> fieldValueList=indexedField.getFieldValueList();
    for (    String fieldValue : fieldValueList) {
      d.add(new Field(fieldName,fieldValue,Store.NO,org.apache.lucene.document.Field.Index.ANALYZED));
    }
  }
  d.removeFields(indexConfig.getUniqueIdField());
  d.add(new Field(indexConfig.getUniqueIdField(),uniqueId,Store.YES,org.apache.lucene.document.Field.Index.ANALYZED));
  Term term=new Term(indexConfig.getUniqueIdField(),uniqueId);
  indexWriter.updateDocument(term,d);
  possibleCommit();
}

Fixed version (ground truth):
public void index(String uniqueId,LMDoc lmDoc) throws CorruptIndexException, IOException {
  Document d=new Document();
  for (  LMField indexedField : lmDoc.getIndexedFieldList()) {
    String fieldName=indexedField.getFieldName();
    List<String> fieldValueList=indexedField.getFieldValueList();
    for (    String fieldValue : fieldValueList) {
      d.add(new Field(fieldName,fieldValue,Store.NO,org.apache.lucene.document.Field.Index.ANALYZED));
    }
  }
  d.removeFields(indexConfig.getUniqueIdField());
  d.add(new Field(indexConfig.getUniqueIdField(),uniqueId,Store.NO,org.apache.lucene.document.Field.Index.ANALYZED));
  d.add(new Field(indexConfig.getUniqueIdField(),uniqueId,Store.YES,org.apache.lucene.document.Field.Index.NOT_ANALYZED_NO_NORMS));
  Term term=new Term(indexConfig.getUniqueIdField(),uniqueId);
  indexWriter.updateDocument(term,d);
  possibleCommit();
}
Program: 33954
Project: 33954
Buggy source:
@Test(groups={"String_Node_Str"}) public void createIndexTest() throws Exception {
  IndexSettings.Builder indexSettingsBuilder=IndexSettings.newBuilder();
  indexSettingsBuilder.setDefaultSearchField("String_Node_Str");
  indexSettingsBuilder.setDefaultAnalyzer(LMAnalyzer.KEYWORD);
  indexSettingsBuilder.addFieldConfig(FieldConfig.newBuilder().setFieldName("String_Node_Str").setAnalyzer(LMAnalyzer.STANDARD));
  indexSettingsBuilder.addFieldConfig(FieldConfig.newBuilder().setFieldName("String_Node_Str").setAnalyzer(LMAnalyzer.LC_KEYWORD));
  indexSettingsBuilder.setSegmentTolerance(0.1);
  lumongoClient.createIndex("String_Node_Str",16,"String_Node_Str",indexSettingsBuilder.build());
}

Fixed version (ground truth):
@Test(groups={"String_Node_Str"}) public void createIndexTest() throws Exception {
  IndexSettings.Builder indexSettingsBuilder=IndexSettings.newBuilder();
  indexSettingsBuilder.setDefaultSearchField("String_Node_Str");
  indexSettingsBuilder.setDefaultAnalyzer(LMAnalyzer.KEYWORD);
  indexSettingsBuilder.addFieldConfig(FieldConfig.newBuilder().setFieldName("String_Node_Str").setAnalyzer(LMAnalyzer.STANDARD));
  indexSettingsBuilder.addFieldConfig(FieldConfig.newBuilder().setFieldName("String_Node_Str").setAnalyzer(LMAnalyzer.LC_KEYWORD));
  indexSettingsBuilder.addFieldConfig(FieldConfig.newBuilder().setFieldName("String_Node_Str").setAnalyzer(LMAnalyzer.LC_KEYWORD));
  indexSettingsBuilder.setSegmentTolerance(0.05);
  lumongoClient.createIndex("String_Node_Str",16,"String_Node_Str",indexSettingsBuilder.build());
}
Program: 33956
Project: 33956
Buggy source:
private static void addDoc(IndexWriter w,String value) throws IOException {
  Document doc=new Document();
  doc.add(new Field("String_Node_Str",value,Field.Store.YES,Field.Index.ANALYZED));
  w.addDocument(doc);
}

Fixed version (ground truth):
private static void addDoc(IndexWriter w,String title,String uid) throws IOException {
  Document doc=new Document();
  doc.add(new Field("String_Node_Str",title,Field.Store.YES,Field.Index.ANALYZED));
  doc.add(new Field("String_Node_Str",uid,Field.Store.YES,Field.Index.ANALYZED));
  doc.add(new Field("String_Node_Str",uid,Field.Store.YES,Field.Index.NOT_ANALYZED_NO_NORMS));
  Term uidTerm=new Term("String_Node_Str",uid);
  w.updateDocument(uidTerm,doc);
}
Program: 33957
Project: 33957
Buggy source:
@Test(groups="String_Node_Str",dependsOnGroups="String_Node_Str") public void queryDocs() throws CorruptIndexException, ParseException, IOException {
  IndexReader indexReader=IndexReader.open(directory);
  StandardAnalyzer analyzer=new StandardAnalyzer(LuceneConstants.VERSION);
  QueryParser qp=new QueryParser(LuceneConstants.VERSION,"String_Node_Str",analyzer);
  int hits=0;
  hits=runQuery(indexReader,qp,"String_Node_Str",10);
  Assert.assertEquals(hits,1,"String_Node_Str");
  hits=runQuery(indexReader,qp,"String_Node_Str",10);
  Assert.assertEquals(hits,0,"String_Node_Str");
  hits=runQuery(indexReader,qp,"String_Node_Str",10);
  Assert.assertEquals(hits,2,"String_Node_Str");
  hits=runQuery(indexReader,qp,"String_Node_Str",10);
  Assert.assertEquals(hits,1,"String_Node_Str");
  hits=runQuery(indexReader,qp,"String_Node_Str",10);
  Assert.assertEquals(hits,1,"String_Node_Str");
}

Fixed version (ground truth):
@Test(groups="String_Node_Str",dependsOnGroups="String_Node_Str") public void queryDocs() throws CorruptIndexException, ParseException, IOException {
  IndexReader indexReader=IndexReader.open(directory);
  StandardAnalyzer analyzer=new StandardAnalyzer(LuceneConstants.VERSION);
  QueryParser qp=new QueryParser(LuceneConstants.VERSION,"String_Node_Str",analyzer);
  int hits=0;
  hits=runQuery(indexReader,qp,"String_Node_Str",10);
  Assert.assertEquals(hits,2,"String_Node_Str");
  hits=runQuery(indexReader,qp,"String_Node_Str",10);
  Assert.assertEquals(hits,0,"String_Node_Str");
  hits=runQuery(indexReader,qp,"String_Node_Str",10);
  Assert.assertEquals(hits,0,"String_Node_Str");
  hits=runQuery(indexReader,qp,"String_Node_Str",10);
  Assert.assertEquals(hits,2,"String_Node_Str");
  hits=runQuery(indexReader,qp,"String_Node_Str",10);
  Assert.assertEquals(hits,1,"String_Node_Str");
  hits=runQuery(indexReader,qp,"String_Node_Str",10);
  Assert.assertEquals(hits,1,"String_Node_Str");
}
Program: 33958
Project: 33958
Buggy source:
@Test(groups="String_Node_Str") public void addDocs() throws CorruptIndexException, LockObtainFailedException, IOException {
  StandardAnalyzer analyzer=new StandardAnalyzer(LuceneConstants.VERSION);
  IndexWriterConfig config=new IndexWriterConfig(LuceneConstants.VERSION,analyzer);
  IndexWriter w=new IndexWriter(directory,config);
  addDoc(w,"String_Node_Str");
  addDoc(w,"String_Node_Str");
  addDoc(w,"String_Node_Str");
  addDoc(w,"String_Node_Str");
  addDoc(w,"String_Node_Str");
  w.commit();
  w.close();
}

Fixed version (ground truth):
@Test(groups="String_Node_Str") public void addDocs() throws CorruptIndexException, LockObtainFailedException, IOException {
  StandardAnalyzer analyzer=new StandardAnalyzer(LuceneConstants.VERSION);
  IndexWriterConfig config=new IndexWriterConfig(LuceneConstants.VERSION,analyzer);
  IndexWriter w=new IndexWriter(directory,config);
  addDoc(w,"String_Node_Str","String_Node_Str");
  addDoc(w,"String_Node_Str","String_Node_Str");
  addDoc(w,"String_Node_Str","String_Node_Str");
  addDoc(w,"String_Node_Str","String_Node_Str");
  addDoc(w,"String_Node_Str","String_Node_Str");
  addDoc(w,"String_Node_Str","String_Node_Str");
  w.commit();
  w.close();
}
Program: 33959
Project: 33959
Buggy source:
@Override public void handleMessage(String messageType,JSONObject response){
  try {
    List<String> projectsNames=new ArrayList<String>();
    JSONArray projects=response.getJSONArray("String_Node_Str");
    for (int i=0; i < projects.length(); i++) {
      JSONObject project=projects.getJSONObject(i);
      String projectName=project.getString("String_Node_Str");
      projectsNames.add(projectName);
    }
    setElements((String[])projectsNames.toArray(new String[projectsNames.size()]));
  }
 catch (  Exception e) {
    e.printStackTrace();
  }
  messagingConnector.removeMessageHandler(this);
}

Fixed version (ground truth):
@Override public void handleMessage(String messageType,JSONObject response){
  try {
    boolean newProjects=false;
    JSONArray projectsList=response.getJSONArray("String_Node_Str");
    for (int i=0; i < projectsList.length(); i++) {
      JSONObject project=projectsList.getJSONObject(i);
      String projectName=project.getString("String_Node_Str");
      newProjects|=projects.add(projectName);
    }
    if (newProjects) {
      Display.getDefault().asyncExec(new Runnable(){
        @Override public void run(){
          setListElements((String[])projects.toArray(new String[projects.size()]));
        }
      }
);
    }
  }
 catch (  Exception e) {
    e.printStackTrace();
  }
}
Program: 33960
Project: 33960
Buggy source:
public SyncDownloadSelectionDialog(final Shell parent,final ILabelProvider renderer,final IMessagingConnector messagingConnector,final String username){
  super(parent,renderer);
  this.messagingConnector=messagingConnector;
  this.username=username;
  this.setMultipleSelection(true);
  this.setAllowDuplicates(false);
  this.setTitle("String_Node_Str");
}

Fixed version (ground truth):
public SyncDownloadSelectionDialog(final Shell parent,final ILabelProvider renderer,final IMessagingConnector messagingConnector,final String username){
  super(parent,renderer);
  this.messagingConnector=messagingConnector;
  this.username=username;
  this.setMultipleSelection(true);
  this.setAllowDuplicates(false);
  this.setTitle("String_Node_Str");
  this.projects=new ConcurrentSkipListSet<>();
}
Program: 33961
Project: 33961
Buggy source:
@Override public int open(){
  try {
    int callbackID=this.hashCode();
    CallbackIDAwareMessageHandler responseHandler=new CallbackIDAwareMessageHandler("String_Node_Str",callbackID){
      @Override public void handleMessage(      String messageType,      JSONObject response){
        try {
          List<String> projectsNames=new ArrayList<String>();
          JSONArray projects=response.getJSONArray("String_Node_Str");
          for (int i=0; i < projects.length(); i++) {
            JSONObject project=projects.getJSONObject(i);
            String projectName=project.getString("String_Node_Str");
            projectsNames.add(projectName);
          }
          setElements((String[])projectsNames.toArray(new String[projectsNames.size()]));
        }
 catch (        Exception e) {
          e.printStackTrace();
        }
        messagingConnector.removeMessageHandler(this);
      }
    }
;
    this.messagingConnector.addMessageHandler(responseHandler);
    JSONObject message=new JSONObject();
    message.put("String_Node_Str",callbackID);
    message.put("String_Node_Str",username);
    this.messagingConnector.send("String_Node_Str",message);
  }
 catch (  JSONException e1) {
    e1.printStackTrace();
  }
  return super.open();
}

Fixed version (ground truth):
@Override public int open(){
  try {
    int callbackID=this.hashCode();
    projects.clear();
    responseHandler=new CallbackIDAwareMessageHandler("String_Node_Str",callbackID){
      @Override public void handleMessage(      String messageType,      JSONObject response){
        try {
          boolean newProjects=false;
          JSONArray projectsList=response.getJSONArray("String_Node_Str");
          for (int i=0; i < projectsList.length(); i++) {
            JSONObject project=projectsList.getJSONObject(i);
            String projectName=project.getString("String_Node_Str");
            newProjects|=projects.add(projectName);
          }
          if (newProjects) {
            Display.getDefault().asyncExec(new Runnable(){
              @Override public void run(){
                setListElements((String[])projects.toArray(new String[projects.size()]));
              }
            }
);
          }
        }
 catch (        Exception e) {
          e.printStackTrace();
        }
      }
    }
;
    this.messagingConnector.addMessageHandler(responseHandler);
    JSONObject message=new JSONObject();
    message.put("String_Node_Str",callbackID);
    message.put("String_Node_Str",username);
    this.messagingConnector.send("String_Node_Str",message);
  }
 catch (  JSONException e1) {
    e1.printStackTrace();
  }
  return super.open();
}
Program: 33964
Project: 33964
Buggy source:
public void getResourceResponse(JSONObject response){
  try {
    final String responseUser=response.getString("String_Node_Str");
    final String resourcePath=response.getString("String_Node_Str");
    final long timestamp=response.getLong("String_Node_Str");
    final String content=response.getString("String_Node_Str");
    if (this.username.equals(responseUser)) {
      IFile file=project.getFile(resourcePath);
      if (!file.exists()) {
        file.create(new ByteArrayInputStream(content.getBytes()),true,null);
      }
 else {
        file.setContents(new ByteArrayInputStream(content.getBytes()),true,false,null);
      }
      file.setLocalTimeStamp(timestamp);
      int downloaded=this.downloadedFileCount.incrementAndGet();
      if (downloaded == this.requestedFileCount.get()) {
        this.messagingConnector.removeMessageHandler(projectResponseHandler);
        this.messagingConnector.removeMessageHandler(resourceResponseHandler);
        finish();
      }
    }
  }
 catch (  Exception e) {
    e.printStackTrace();
    this.messagingConnector.removeMessageHandler(projectResponseHandler);
    this.messagingConnector.removeMessageHandler(resourceResponseHandler);
    this.completionCallback.downloadFailed();
  }
}

Fixed version (ground truth):
public void getResourceResponse(JSONObject response){
  try {
    final String responseUser=response.getString("String_Node_Str");
    final String resourcePath=response.getString("String_Node_Str");
    final long timestamp=response.getLong("String_Node_Str");
    final String content=response.getString("String_Node_Str");
    if (this.username.equals(responseUser)) {
      IFile file=project.getFile(resourcePath);
      if (!file.exists()) {
        file.create(new ByteArrayInputStream(content.getBytes()),true,null);
      }
 else {
        file.setContents(new ByteArrayInputStream(content.getBytes()),true,false,null);
      }
      file.setLocalTimeStamp(timestamp);
      this.requestedProjectFiles.remove(resourcePath);
      if (this.requestedProjectFiles.isEmpty()) {
        this.messagingConnector.removeMessageHandler(projectResponseHandler);
        this.messagingConnector.removeMessageHandler(resourceResponseHandler);
        finish();
      }
    }
  }
 catch (  Exception e) {
    e.printStackTrace();
    this.messagingConnector.removeMessageHandler(projectResponseHandler);
    this.messagingConnector.removeMessageHandler(resourceResponseHandler);
    this.completionCallback.downloadFailed();
  }
}
Program: 33965
Project: 33965
Buggy source:
public void sendLiveEditStartedMessage(String changeOriginID,String username,String projectName,String resourcePath,String hash,long timestamp){
  try {
    JSONObject message=new JSONObject();
    message.put("String_Node_Str",0);
    message.put("String_Node_Str",username);
    message.put("String_Node_Str",projectName);
    message.put("String_Node_Str",resourcePath);
    message.put("String_Node_Str",hash);
    message.put("String_Node_Str",timestamp);
    this.messagingConnector.send("String_Node_Str",message);
  }
 catch (  Exception e) {
    e.printStackTrace();
  }
  for (  ILiveEditConnector connector : this.liveEditConnectors) {
    if (!connector.getConnectorID().equals(changeOriginID)) {
      connector.liveEditingStarted("String_Node_Str",0,username,resourcePath,hash,timestamp);
    }
  }
}

Fixed version (ground truth):
public void sendLiveEditStartedMessage(String changeOriginID,String username,String projectName,String resourcePath,String hash,long timestamp){
  try {
    JSONObject message=new JSONObject();
    message.put("String_Node_Str",0);
    message.put("String_Node_Str",username);
    message.put("String_Node_Str",projectName);
    message.put("String_Node_Str",resourcePath);
    message.put("String_Node_Str",hash);
    message.put("String_Node_Str",timestamp);
    this.messagingConnector.send("String_Node_Str",message);
  }
 catch (  Exception e) {
    e.printStackTrace();
  }
  String path=projectName + '/' + resourcePath;
  for (  ILiveEditConnector connector : this.liveEditConnectors) {
    if (!connector.getConnectorID().equals(changeOriginID)) {
      connector.liveEditingStarted("String_Node_Str",0,username,path,hash,timestamp);
    }
  }
}
Program: 33967
Project: 33967
Buggy source:
@Activate public void activate(final ComponentContext context) throws Exception {
  final boolean lazyStart=org.eclipse.flux.core.Activator.getDefault().isLazyStart();
  final IMessagingConnector messagingConnector=org.eclipse.flux.core.Activator.getDefault().getMessagingConnector();
  new Thread(){
    @Override public void run(){
      String userChannel=messagingConnector.getChannel();
      JdtChannelListener jdtChannelListener=new JdtChannelListener();
      for (; userChannel == null; userChannel=messagingConnector.getChannel()) {
        try {
          sleep(WAIT_TIME_PERIOD);
        }
 catch (        InterruptedException e) {
          e.printStackTrace();
        }
      }
      discoveryConnector=new ServiceDiscoveryConnector(messagingConnector,JDT_SERVICE_ID,lazyStart);
      if (lazyStart) {
        keepAliveConnector=new KeepAliveConnector(messagingConnector,JDT_SERVICE_ID);
      }
      jdtChannelListener.connected(userChannel);
      messagingConnector.addChannelListener(jdtChannelListener);
    }
  }
.start();
}

Fixed version (ground truth):
@Activate public void activate(final ComponentContext context) throws Exception {
  final boolean lazyStart=org.eclipse.flux.core.Activator.getDefault().isLazyStart();
  final IMessagingConnector messagingConnector=org.eclipse.flux.core.Activator.getDefault().getMessagingConnector();
  if (messagingConnector != null) {
    new Thread(){
      @Override public void run(){
        String userChannel=messagingConnector.getChannel();
        JdtChannelListener jdtChannelListener=new JdtChannelListener();
        for (; userChannel == null; userChannel=messagingConnector.getChannel()) {
          try {
            sleep(WAIT_TIME_PERIOD);
          }
 catch (          InterruptedException e) {
            e.printStackTrace();
          }
        }
        discoveryConnector=new ServiceDiscoveryConnector(messagingConnector,JDT_SERVICE_ID,lazyStart);
        if (lazyStart) {
          keepAliveConnector=new KeepAliveConnector(messagingConnector,JDT_SERVICE_ID);
        }
        jdtChannelListener.connected(userChannel);
        messagingConnector.addChannelListener(jdtChannelListener);
      }
    }
.start();
  }
}
Program: 33968
Project: 33968
Buggy source:
@Override public void start(BundleContext context) throws Exception {
  super.start(context);
  plugin=this;
  connectionListener=new AuthFailureReporter(Activator.getDefault().getMessagingConnector().getState());
}

Fixed version (ground truth):
@Override public void start(BundleContext context) throws Exception {
  super.start(context);
  plugin=this;
  IMessagingConnector messagingConnector=Activator.getDefault().getMessagingConnector();
  if (messagingConnector != null) {
    connectionListener=new AuthFailureReporter(messagingConnector.getState());
  }
}
Program: 33972
Project: 33972
Buggy source:
public void updateResource(JSONObject request){
  try {
    final String username=request.getString("String_Node_Str");
    final String projectName=request.getString("String_Node_Str");
    final String resourcePath=request.getString("String_Node_Str");
    final long updateTimestamp=request.getLong("String_Node_Str");
    final String updateHash=request.optString("String_Node_Str");
    ConnectedProject connectedProject=this.syncedProjects.get(projectName);
    if (this.username.equals(username) && connectedProject != null) {
      IProject project=connectedProject.getProject();
      IResource resource=project.findMember(resourcePath);
      if (resource != null && resource instanceof IFile) {
        String localHash=connectedProject.getHash(resourcePath);
        long localTimestamp=connectedProject.getTimestamp(resourcePath);
        if (localHash != null && !localHash.equals(updateHash) && localTimestamp < updateTimestamp) {
          JSONObject message=new JSONObject();
          message.put("String_Node_Str",GET_RESOURCE_CALLBACK);
          message.put("String_Node_Str",this.username);
          message.put("String_Node_Str",projectName);
          message.put("String_Node_Str",resourcePath);
          message.put("String_Node_Str",updateTimestamp);
          message.put("String_Node_Str",updateHash);
          messagingConnector.send("String_Node_Str",message);
        }
      }
    }
  }
 catch (  Exception e) {
    e.printStackTrace();
  }
}

Fixed version (ground truth):
public void updateResource(JSONObject request){
  try {
    final String username=request.getString("String_Node_Str");
    final String projectName=request.getString("String_Node_Str");
    final String resourcePath=request.getString("String_Node_Str");
    final long updateTimestamp=request.getLong("String_Node_Str");
    final String updateHash=request.optString("String_Node_Str");
    ConnectedProject connectedProject=this.syncedProjects.get(projectName);
    if (this.username.equals(username) && connectedProject != null) {
      IProject project=connectedProject.getProject();
      IResource resource=project.findMember(resourcePath);
      if (resource != null && resource instanceof IFile) {
        String localHash=connectedProject.getHash(resourcePath);
        long localTimestamp=connectedProject.getTimestamp(resourcePath);
        if (localHash != null && !localHash.equals(updateHash) && localTimestamp < updateTimestamp) {
          JSONObject message=new JSONObject();
          message.put("String_Node_Str",GET_RESOURCE_CALLBACK);
          message.put("String_Node_Str",this.username);
          message.put("String_Node_Str",projectName);
          message.put("String_Node_Str",resourcePath);
          message.put("String_Node_Str",updateTimestamp);
          message.put("String_Node_Str",updateHash);
          messagingConnector.send("String_Node_Str",message);
          notifyResourceChanged(resource);
        }
      }
    }
  }
 catch (  Exception e) {
    e.printStackTrace();
  }
}
Program: 33974
Project: 33974
Buggy source:
@Override public void bufferContentReplaced(IFileBuffer buffer){
  IPath path=buffer.getLocation();
  IWorkspace workspace=ResourcesPlugin.getWorkspace();
  IWorkspaceRoot root=workspace.getRoot();
  IResource resource=root.findMember(path);
  if (resource != null) {
    IProject project=resource.getProject();
    String resourcePath=resource.getProjectRelativePath().toString();
    String fullPath=project.getName() + "String_Node_Str" + resourcePath;
    IDocument doc=documentMappings.get(fullPath);
    if (doc != null) {
      doc.addDocumentListener(documentListener);
    }
  }
  System.out.println("String_Node_Str");
}

Fixed version (ground truth):
@Override public void bufferContentReplaced(IFileBuffer buffer){
  IPath path=buffer.getLocation();
  IWorkspace workspace=ResourcesPlugin.getWorkspace();
  IWorkspaceRoot root=workspace.getRoot();
  IResource resource=root.findMember(path);
  if (resource != null) {
    IProject project=resource.getProject();
    String resourcePath=resource.getProjectRelativePath().toString();
    String fullPath=project.getName() + "String_Node_Str" + resourcePath;
    IDocument doc=documentMappings.get(fullPath);
    if (doc != null) {
      doc.addDocumentListener(documentListener);
    }
    Repository repository=LiveEditConnector.this.repository;
    if (repository.isConnected(project)) {
      ConnectedProject connectedProject=repository.getProject(project);
      String hash=connectedProject.getHash(resourcePath);
      long timestamp=connectedProject.getTimestamp(resourcePath);
      LiveEditConnector.this.liveEditCoordinator.sendLiveEditStartedMessage(LIVE_EDIT_CONNECTOR_ID,repository.getUsername(),project.getName(),resourcePath,hash,timestamp);
    }
  }
}
Program: 33977
Project: 33977
Buggy source:
public void run(CompletionCallback completionCallback){
  this.messagingConnector.addMessageHandler(projectResponseHandler);
  this.messagingConnector.addMessageHandler(resourceResponseHandler);
  this.completionCallback=completionCallback;
  IWorkspaceRoot root=ResourcesPlugin.getWorkspace().getRoot();
  project=root.getProject(projectName);
  try {
    if (!project.exists()) {
      project.create(null);
    }
    if (!project.isOpen()) {
      project.open(null);
    }
    JSONObject message=new JSONObject();
    message.put("String_Node_Str",this.callbackID);
    message.put("String_Node_Str",this.username);
    message.put("String_Node_Str",this.projectName);
    messagingConnector.send("String_Node_Str",message);
  }
 catch (  CoreException e1) {
    e1.printStackTrace();
    this.messagingConnector.removeMessageHandler(projectResponseHandler);
    this.messagingConnector.removeMessageHandler(resourceResponseHandler);
    this.completionCallback.downloadFailed();
  }
catch (  JSONException e) {
    e.printStackTrace();
    this.messagingConnector.removeMessageHandler(projectResponseHandler);
    this.messagingConnector.removeMessageHandler(resourceResponseHandler);
    this.completionCallback.downloadFailed();
  }
}

Fixed version (ground truth):
public void run(final CompletionCallback completionCallback){
  this.messagingConnector.addMessageHandler(projectResponseHandler);
  this.messagingConnector.addMessageHandler(resourceResponseHandler);
  this.completionCallback=completionCallback;
  IWorkspaceRoot root=ResourcesPlugin.getWorkspace().getRoot();
  project=root.getProject(projectName);
  WorkspaceJob job=new WorkspaceJob("String_Node_Str"){
    @Override public IStatus runInWorkspace(    IProgressMonitor monitor) throws CoreException {
      try {
        if (!project.exists()) {
          project.create(monitor);
        }
        if (!project.isOpen()) {
          project.open(null);
        }
        JSONObject message=new JSONObject();
        message.put("String_Node_Str",callbackID);
        message.put("String_Node_Str",username);
        message.put("String_Node_Str",projectName);
        messagingConnector.send("String_Node_Str",message);
      }
 catch (      CoreException e1) {
        e1.printStackTrace();
        messagingConnector.removeMessageHandler(projectResponseHandler);
        messagingConnector.removeMessageHandler(resourceResponseHandler);
        completionCallback.downloadFailed();
      }
catch (      JSONException e) {
        e.printStackTrace();
        messagingConnector.removeMessageHandler(projectResponseHandler);
        messagingConnector.removeMessageHandler(resourceResponseHandler);
        completionCallback.downloadFailed();
      }
      return Status.OK_STATUS;
    }
  }
;
  job.setRule(ResourcesPlugin.getWorkspace().getRuleFactory().createRule(project));
  job.schedule();
}
Program: 33978
Project: 33978
Buggy source:
private void importAsPureMavenProject(IFile pomFile){
  try {
    NullProgressMonitor pm=new NullProgressMonitor();
    ResolverConfiguration resolverConfiguration=new ResolverConfiguration();
    String activeProfiles="String_Node_Str";
    resolverConfiguration.setActiveProfiles(activeProfiles);
    MavenPlugin.getProjectConfigurationManager().enableMavenNature(project,resolverConfiguration,pm);
  }
 catch (  CoreException e) {
  }
}

Fixed version (ground truth):
private void importAsPureMavenProject(IFile pomFile){
  WorkspaceJob job=new WorkspaceJob("String_Node_Str"){
    @Override public IStatus runInWorkspace(    IProgressMonitor monitor) throws CoreException {
      try {
        ResolverConfiguration resolverConfiguration=new ResolverConfiguration();
        String activeProfiles="String_Node_Str";
        resolverConfiguration.setActiveProfiles(activeProfiles);
        MavenPlugin.getProjectConfigurationManager().enableMavenNature(project,resolverConfiguration,monitor);
        return Status.OK_STATUS;
      }
 catch (      CoreException e) {
        e.printStackTrace();
        return Status.OK_STATUS;
      }
    }
  }
;
  job.setRule(ResourcesPlugin.getWorkspace().getRoot());
  job.schedule();
}
Program: 33979
Project: 33979
Buggy source:
protected void handleIncomingMessage(String messageType,JSONObject message){
  Collection<IMessageHandler> handlers=this.messageHandlers.get(messageType);
  if (handlers != null) {
    for (    IMessageHandler handler : handlers) {
      if (handler.canHandle(messageType,message)) {
        handler.handleMessage(messageType,message);
      }
    }
  }
}

Fixed version (ground truth):
protected void handleIncomingMessage(final String messageType,final JSONObject message){
  Collection<IMessageHandler> handlers=AbstractMessagingConnector.this.messageHandlers.get(messageType);
  if (handlers != null) {
    for (    IMessageHandler handler : handlers) {
      if (handler.canHandle(messageType,message)) {
        handler.handleMessage(messageType,message);
      }
    }
  }
}
Program: 33981
Project: 33981
Buggy source:
@Activate public void activate(final ComponentContext context){
  String username=System.getProperty("String_Node_Str");
  String token=System.getProperty("String_Node_Str");
  if (username == null) {
    new ServiceConnector("String_Node_Str"){
      @Override public void startService(      String user,      String token){
        startJdtService(user,token);
      }
      @Override public void stopService(){
        try {
          System.out.println("String_Node_Str");
          context.getBundleContext().getBundle(0).stop();
          System.exit(0);
        }
 catch (        BundleException e) {
          e.printStackTrace();
        }
      }
    }
;
  }
 else {
    startJdtService(username,token);
  }
}

Fixed version (ground truth):
@Activate public void activate(final ComponentContext context){
  String username=System.getProperty("String_Node_Str");
  String token=System.getProperty("String_Node_Str");
  if (username == null) {
    new ServiceConnector("String_Node_Str"){
      @Override public void startService(      String user,      String token){
        startJdtService(user,token);
      }
      @Override public void stopService(){
        try {
          System.exit(0);
        }
 catch (        Throwable e) {
          e.printStackTrace();
        }
      }
    }
;
  }
 else {
    startJdtService(username,token);
  }
}
Program: 33982
Project: 33982
Buggy source:
@Override public void stopService(){
  try {
    System.out.println("String_Node_Str");
    context.getBundleContext().getBundle(0).stop();
    System.exit(0);
  }
 catch (  BundleException e) {
    e.printStackTrace();
  }
}

Fixed version (ground truth):
@Override public void stopService(){
  try {
    System.exit(0);
  }
 catch (  Throwable e) {
    e.printStackTrace();
  }
}
Program: 33983
Project: 33983
Buggy source:
/** 
 * Constructor for GsonWrapper.
 * @param builder Builder
 */
protected GsonWrapper(Builder builder){
  Schema schema=builder.schema != null ? builder.schema : Schema.make().get();
  ASObjectAdapter base=new ASObjectAdapter(schema);
  GsonBuilder b=initGsonBuilder(builder,schema,base);
  for (  AdapterEntry<?> entry : builder.adapters.build()) {
    if (entry.hier)     b.registerTypeHierarchyAdapter(entry.type,entry.adapter != null ? entry.adapter : base);
 else     b.registerTypeAdapter(entry.type,entry.adapter != null ? entry.adapter : base);
  }
  if (builder.pretty)   b.setPrettyPrinting();
  this.gson=b.create();
  this.charset=builder.charset;
}

Fixed version (ground truth):
/** 
 * Constructor for GsonWrapper.
 * @param builder Builder
 */
protected GsonWrapper(Builder builder){
  Schema schema=builder.schema != null ? builder.schema : Schema.make().get();
  ASObjectAdapter base=new ASObjectAdapter(schema);
  GsonBuilder b=initGsonBuilder(builder,schema,base,builder.adapters.build());
  if (builder.pretty)   b.setPrettyPrinting();
  this.gson=b.create();
  this.charset=builder.charset;
}
Program: 33985
Project: 33985
Buggy source:
/** 
 * Method get.
 * @return A 
 * @see com.google.common.base.Supplier#get() 
 */
public A get(){
  set("String_Node_Str",list.build());
  return create();
}

Fixed version (ground truth):
/** 
 * Method get.
 * @return A 
 * @see com.google.common.base.Supplier#get() 
 */
public A get(){
  super.set("String_Node_Str",list.build());
  return create();
}
Program: 33988
Project: 33988
Buggy source:
@Override public void onBackPressed(){
  int selectedPage=mViewFlipper.getDisplayedChild();
  if (selectedPage == 0) {
    quitAddCamera();
  }
 else {
    mViewFlipper.setDisplayedChild(selectedPage - 1);
  }
}

Fixed version (ground truth):
@Override public void onBackPressed(){
  int selectedPage=mViewFlipper.getDisplayedChild();
  if (selectedPage == 0) {
    quitAddCamera();
  }
 else {
    showPageAtPosition(selectedPage - 1);
  }
}
Program: 33989
Project: 33989
Buggy source:
@Override protected void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  setContentView(R.layout.activity_add_camera);
  setUpDefaultToolbar();
  setHomeIconAsCancel();
  mViewFlipper=(ViewFlipper)findViewById(R.id.add_camera_view_flipper);
  mProgressBar=(ProgressBar)findViewById(R.id.add_camera_progress_bar);
  mProgressBar.getProgressDrawable().setColorFilter(getResources().getColor(R.color.colorAccent),PorterDuff.Mode.SRC_IN);
  mProgressBar.setProgress(33);
  if (savedInstanceState != null) {
    mSelectedModel=(SelectedModel)savedInstanceState.get(KEY_SELECTED_MODEL);
  }
  mHandler=new Handler();
  initModelSelectorUI();
  initConnectCameraUI();
  initCameraNameView();
  if (savedInstanceState != null) {
    int flipperPosition=savedInstanceState.getInt(KEY_FLIPPER_POSITION);
    if (flipperPosition == 0) {
      showModelSelectorView();
    }
 else     if (flipperPosition == 1) {
      showConnectCameraView();
    }
 else     if (flipperPosition == 2) {
      showCameraNameView();
    }
  }
}

Fixed version (ground truth):
@Override protected void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  setContentView(R.layout.activity_add_camera);
  setUpDefaultToolbar();
  setHomeIconAsCancel();
  mViewFlipper=(ViewFlipper)findViewById(R.id.add_camera_view_flipper);
  mProgressBar=(ProgressBar)findViewById(R.id.add_camera_progress_bar);
  mProgressBar.setProgress(33);
  if (savedInstanceState != null) {
    mSelectedModel=(SelectedModel)savedInstanceState.get(KEY_SELECTED_MODEL);
  }
  mHandler=new Handler();
  initModelSelectorUI();
  initConnectCameraUI();
  initCameraNameView();
  if (savedInstanceState != null) {
    int flipperPosition=savedInstanceState.getInt(KEY_FLIPPER_POSITION);
    showPageAtPosition(flipperPosition);
  }
}
Program: 33990
Project: 33990
Buggy source:
private void updatePortStatus(boolean isPortOpen){
  if (mStatusViewReference != null) {
    TextView statusView=mStatusViewReference.get();
    if (statusView != null) {
      statusView.setVisibility(View.VISIBLE);
      statusView.setText(isPortOpen ? R.string.port_is_open : R.string.port_is_closed);
      statusView.setTextColor(isPortOpen ? mContext.getResources().getColor(R.color.evercam_blue) : mContext.getResources().getColor(R.color.orange_red));
    }
  }
}

Fixed version (ground truth):
private void updatePortStatus(boolean isPortOpen){
  if (mStatusViewReference != null) {
    TextView statusView=mStatusViewReference.get();
    if (statusView != null) {
      statusView.setVisibility(View.VISIBLE);
      statusView.setText(isPortOpen ? R.string.port_is_open : R.string.port_is_closed);
      statusView.setTextColor(isPortOpen ? mContext.getResources().getColor(R.color.evercam_blue) : Color.RED);
    }
  }
}
Program: 33991
Project: 33991
Buggy source:
private void showShowcaseView(){
  if (showcaseView != null) {
    showcaseView.hide();
    showcaseView=null;
  }
  showcaseView=new MaterialShowcaseView.Builder(this).setTarget(scanButton).setDismissText(R.string.showcase_dismiss_text).setDismissTextSize(17).setShapePadding(30).setContentTextColor(getResources().getColor(R.color.white)).setMaskColour(getResources().getColor(R.color.black_semi_transparent)).setContentText(R.string.confirmSignUp).setContentTextSize(17).setDismissOnTargetTouch(true).show();
}

Fixed version (ground truth):
private void showShowcaseView(){
  new MaterialShowcaseView.Builder(this).setTarget(manuallyAddButton).setDismissText(R.string.showcase_dismiss_text).setDismissTextSize(17).setShapePadding(30).setContentTextColor(getResources().getColor(R.color.white)).setMaskColour(getResources().getColor(R.color.black_semi_transparent)).setContentText(R.string.confirmSignUp).setContentTextSize(17).setDismissOnTargetTouch(true).setListener(new IShowcaseListener(){
    @Override public void onShowcaseDisplayed(    MaterialShowcaseView showcaseView){
      setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_NOSENSOR);
    }
    @Override public void onShowcaseDismissed(    MaterialShowcaseView showcaseView){
      setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_SENSOR);
    }
  }
).show();
}
Program: 33992
Project: 33992
Buggy source:
@Override public void onConfigurationChanged(Configuration newConfig){
  super.onConfigurationChanged(newConfig);
  mDrawerToggle.onConfigurationChanged(newConfig);
  resizeCameras();
  showShowcaseView();
}

Fixed version (ground truth):
@Override public void onConfigurationChanged(Configuration newConfig){
  super.onConfigurationChanged(newConfig);
  mDrawerToggle.onConfigurationChanged(newConfig);
  resizeCameras();
}
Program: 33994
Project: 33994
Buggy source:
private void updateNavDrawerUserInfo(){
  AppUser defaultUser=AppData.defaultUser;
  if (defaultUser != null) {
    String gravatarUrl=Commons.getGravatarUrl(defaultUser.getEmail());
    mUserNameTextView.setText(defaultUser.getFirstName() + "String_Node_Str" + defaultUser.getLastName());
    mUserEmailTextView.setText(defaultUser.getEmail());
    Picasso.with(this).load(gravatarUrl).noFade().placeholder(R.drawable.ic_profile).into(mCircleImageView);
  }
  mAccountNavAdapter.updateUserList(AppData.appUsers);
  mAccountNavAdapter.notifyDataSetChanged();
}

Fixed version (ground truth):
private void updateNavDrawerUserInfo(){
  AppUser defaultUser=AppData.defaultUser;
  if (defaultUser != null) {
    String gravatarUrl=Commons.getGravatarUrl(defaultUser.getEmail());
    mUserNameTextView.setText(defaultUser.getFirstName() + "String_Node_Str" + defaultUser.getLastName());
    mUserEmailTextView.setText(defaultUser.getEmail());
    Picasso.with(this).load(gravatarUrl).noFade().placeholder(R.drawable.ic_profile).into(mCircleImageView);
  }
  updateUserListInNavDrawer();
  bindAccountList(mUserListInNavDrawer);
}
Program: 33995
Project: 33995
Buggy source:
@Override public void onItemClick(AdapterView<?> parent,View view,int position,long id){
  final AppUser appUser=(AppUser)mAccountListView.getItemAtPosition(position);
  new CheckKeyExpirationTaskNavDrawer(appUser).executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
}

Fixed version (ground truth):
@Override public void onItemClick(AdapterView<?> parent,View view,int position,long id){
  final AppUser appUser=mUserListInNavDrawer.get(position);
  Log.d(TAG,appUser.toString());
  new CheckKeyExpirationTaskNavDrawer(appUser).executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
}
Program: 33997
Project: 33997
Buggy source:
@Override public void onDrawerSlide(View drawerView,float slideOffset){
  super.onDrawerSlide(drawerView,0);
  if (slideOffset != 0) {
    showAccountView(false);
    updateNavDrawerUserInfo();
  }
}

Fixed version (ground truth):
@Override public void onDrawerSlide(View drawerView,float slideOffset){
  super.onDrawerSlide(drawerView,0);
  if (slideOffset > 0 && !mIsDrawerUpdated) {
    showAccountView(false);
    updateNavDrawerUserInfo();
    mIsDrawerUpdated=true;
  }
  if (slideOffset == 0) {
    mIsDrawerUpdated=false;
  }
}
Program: 34000
Project: 34000
Buggy source:
public AccountNavAdapter(Context context,int resource,int textViewResourceId,ArrayList<AppUser> appUsers){
  super(context,resource,textViewResourceId,appUsers);
  updateUserList(appUsers);
  this.mContext=context;
  this.mLayoutId=resource;
}

Fixed version (ground truth):
public AccountNavAdapter(Context context,int resource,int textViewResourceId,ArrayList<AppUser> appUsers){
  super(context,resource,textViewResourceId,appUsers);
  this.mAppUsers=appUsers;
  this.mContext=context;
  this.mLayoutId=resource;
}
Program: 34001
Project: 34001
Buggy source:
public String getModelIdFromSpinner(){
  String modelName=modelSpinner.getSelectedItem().toString();
  if (modelName.equals(getString(R.string.select_model))) {
    return "String_Node_Str";
  }
 else {
    for (    Map.Entry<String,String> entry : modelMap.entrySet()) {
      if (entry.getValue().equals(modelName)) {
        return entry.getKey();
      }
    }
  }
  return "String_Node_Str";
}

Fixed version (ground truth):
public String getModelIdFromSpinner(){
  if (modelSpinner.getSelectedItem() != null) {
    String modelName=modelSpinner.getSelectedItem().toString();
    if (modelName.equals(getString(R.string.select_model))) {
      return "String_Node_Str";
    }
 else {
      for (      Map.Entry<String,String> entry : modelMap.entrySet()) {
        if (entry.getValue().equals(modelName)) {
          return entry.getKey();
        }
      }
    }
  }
  return "String_Node_Str";
}