nus-yam/ex-repair huggingface dataset:
Program: 163539
Project: 163539
Buggy source:
@Test public void sessionTest(){
  final AIConfiguration config=new AIConfiguration(getAccessToken(),getSubscriptionKey(),AIConfiguration.SupportedLanguages.English,AIConfiguration.RecognitionEngine.System);
  config.setExperimental(isExperimentalTest());
  try {
    final AIDataService firstService=new AIDataService(Robolectric.application,config);
    final AIDataService secondService=new AIDataService(Robolectric.application,config);
{
      final AIRequest weatherRequest=new AIRequest();
      weatherRequest.setQuery("String_Node_Str");
      final AIResponse weatherResponse=makeRequest(firstService,weatherRequest);
      assertNotNull(weatherResponse);
    }
{
      final AIRequest checkSecondRequest=new AIRequest();
      checkSecondRequest.setQuery("String_Node_Str");
      final AIResponse checkSecondResponse=makeRequest(secondService,checkSecondRequest);
      assertTrue(TextUtils.isEmpty(checkSecondResponse.getResult().getAction()));
    }
{
      final AIRequest checkFirstRequest=new AIRequest();
      checkFirstRequest.setQuery("String_Node_Str");
      final AIResponse checkFirstResponse=makeRequest(firstService,checkFirstRequest);
      assertNotNull(checkFirstResponse.getResult().getAction());
      assertTrue(checkFirstResponse.getResult().getAction().equalsIgnoreCase("String_Node_Str"));
    }
  }
 catch (  final AIServiceException e) {
    e.printStackTrace();
    assertTrue(e.getMessage(),false);
  }
}

Fixed version (ground truth):
@Test public void sessionTest(){
  final AIConfiguration config=new AIConfiguration(getAccessToken(),getSubscriptionKey(),AIConfiguration.SupportedLanguages.English,AIConfiguration.RecognitionEngine.System);
  updateConfig(config);
  try {
    final AIDataService firstService=new AIDataService(Robolectric.application,config);
    final AIDataService secondService=new AIDataService(Robolectric.application,config);
{
      final AIRequest weatherRequest=new AIRequest();
      weatherRequest.setQuery("String_Node_Str");
      final AIResponse weatherResponse=makeRequest(firstService,weatherRequest);
      assertNotNull(weatherResponse);
    }
{
      final AIRequest checkSecondRequest=new AIRequest();
      checkSecondRequest.setQuery("String_Node_Str");
      final AIResponse checkSecondResponse=makeRequest(secondService,checkSecondRequest);
      assertTrue(TextUtils.isEmpty(checkSecondResponse.getResult().getAction()));
    }
{
      final AIRequest checkFirstRequest=new AIRequest();
      checkFirstRequest.setQuery("String_Node_Str");
      final AIResponse checkFirstResponse=makeRequest(firstService,checkFirstRequest);
      assertNotNull(checkFirstResponse.getResult().getAction());
      assertTrue(checkFirstResponse.getResult().getAction().equalsIgnoreCase("String_Node_Str"));
    }
  }
 catch (  final AIServiceException e) {
    e.printStackTrace();
    assertTrue(e.getMessage(),false);
  }
}
Program: 163540
Project: 163540
Buggy source:
@Test public void entitiesTest() throws AIServiceException {
  final AIConfiguration config=new AIConfiguration(getAccessToken(),getSubscriptionKey(),AIConfiguration.SupportedLanguages.English,AIConfiguration.RecognitionEngine.System);
  config.setWriteSoundLog(false);
  config.setExperimental(isExperimentalTest());
  final AIDataService aiDataService=new AIDataService(Robolectric.application,config);
  final AIRequest aiRequest=new AIRequest();
  aiRequest.setQuery("String_Node_Str");
  final Entity myDwarfs=new Entity("String_Node_Str");
  myDwarfs.addEntry(new EntityEntry("String_Node_Str",new String[]{"String_Node_Str","String_Node_Str"}));
  myDwarfs.addEntry(new EntityEntry("String_Node_Str",new String[]{"String_Node_Str","String_Node_Str"}));
  final ArrayList<Entity> extraEntities=new ArrayList<>();
  extraEntities.add(myDwarfs);
  aiRequest.setEntities(extraEntities);
  final AIResponse aiResponse=makeRequest(aiDataService,aiRequest);
  assertFalse(TextUtils.isEmpty(aiResponse.getResult().getResolvedQuery()));
  assertEquals("String_Node_Str",aiResponse.getResult().getAction());
  assertEquals("String_Node_Str",aiResponse.getResult().getFulfillment().getSpeech());
}

Fixed version (ground truth):
@Test public void entitiesTest() throws AIServiceException {
  final AIConfiguration config=new AIConfiguration(getAccessToken(),getSubscriptionKey(),AIConfiguration.SupportedLanguages.English,AIConfiguration.RecognitionEngine.System);
  updateConfig(config);
  config.setWriteSoundLog(false);
  final AIDataService aiDataService=new AIDataService(Robolectric.application,config);
  final AIRequest aiRequest=new AIRequest();
  aiRequest.setQuery("String_Node_Str");
  final Entity myDwarfs=new Entity("String_Node_Str");
  myDwarfs.addEntry(new EntityEntry("String_Node_Str",new String[]{"String_Node_Str","String_Node_Str"}));
  myDwarfs.addEntry(new EntityEntry("String_Node_Str",new String[]{"String_Node_Str","String_Node_Str"}));
  final ArrayList<Entity> extraEntities=new ArrayList<>();
  extraEntities.add(myDwarfs);
  aiRequest.setEntities(extraEntities);
  final AIResponse aiResponse=makeRequest(aiDataService,aiRequest);
  assertFalse(TextUtils.isEmpty(aiResponse.getResult().getResolvedQuery()));
  assertEquals("String_Node_Str",aiResponse.getResult().getAction());
  assertEquals("String_Node_Str",aiResponse.getResult().getFulfillment().getSpeech());
}
Program: 163541
Project: 163541
Buggy source:
@Test public void testRussianLanguage(){
  final AIConfiguration config=new AIConfiguration(getRuAccessToken(),getSubscriptionKey(),AIConfiguration.SupportedLanguages.Russian,AIConfiguration.RecognitionEngine.System);
  config.setExperimental(isExperimentalTest());
  try {
    final AIDataService aiDataService=new AIDataService(Robolectric.application,config);
    final AIRequest aiRequest=new AIRequest();
    aiRequest.setQuery("String_Node_Str");
    final AIResponse aiResponse=makeRequest(aiDataService,aiRequest);
    assertFalse(TextUtils.isEmpty(aiResponse.getResult().getResolvedQuery()));
    assertEquals("String_Node_Str",aiResponse.getResult().getAction());
    assertEquals("String_Node_Str",aiResponse.getResult().getFulfillment().getSpeech());
  }
 catch (  final AIServiceException e) {
    e.printStackTrace();
    assertTrue(e.getMessage(),false);
  }
}

Fixed version (ground truth):
@Test public void testRussianLanguage(){
  final AIConfiguration config=new AIConfiguration(getRuAccessToken(),getSubscriptionKey(),AIConfiguration.SupportedLanguages.Russian,AIConfiguration.RecognitionEngine.System);
  updateConfig(config);
  try {
    final AIDataService aiDataService=new AIDataService(Robolectric.application,config);
    final AIRequest aiRequest=new AIRequest();
    aiRequest.setQuery("String_Node_Str");
    final AIResponse aiResponse=makeRequest(aiDataService,aiRequest);
    assertFalse(TextUtils.isEmpty(aiResponse.getResult().getResolvedQuery()));
    assertEquals("String_Node_Str",aiResponse.getResult().getAction());
    assertEquals("String_Node_Str",aiResponse.getResult().getFulfillment().getSpeech());
  }
 catch (  final AIServiceException e) {
    e.printStackTrace();
    assertTrue(e.getMessage(),false);
  }
}
Program: 163542
Project: 163542
Buggy source:
@Test public void inputContextTest(){
  final AIConfiguration config=new AIConfiguration(getAccessToken(),getSubscriptionKey(),AIConfiguration.SupportedLanguages.English,AIConfiguration.RecognitionEngine.System);
  config.setWriteSoundLog(false);
  config.setExperimental(isExperimentalTest());
  final AIDataService aiDataService=new AIDataService(Robolectric.application,config);
  final AIRequest aiRequest=new AIRequest();
  aiRequest.setQuery("String_Node_Str");
  AIResponse aiResponse;
  String action;
  try {
    cleanContexts(aiDataService);
    aiResponse=makeRequest(aiDataService,aiRequest);
    action=aiResponse.getResult().getAction();
    assertEquals("String_Node_Str",action);
    aiRequest.addContext(new AIContext("String_Node_Str"));
    aiResponse=makeRequest(aiDataService,aiRequest);
    action=aiResponse.getResult().getAction();
    assertEquals("String_Node_Str",action);
    aiRequest.setResetContexts(true);
    aiRequest.setContexts(null);
    aiRequest.addContext(new AIContext("String_Node_Str"));
    aiResponse=makeRequest(aiDataService,aiRequest);
    action=aiResponse.getResult().getAction();
    assertEquals("String_Node_Str",action);
    cleanContexts(aiDataService);
  }
 catch (  final AIServiceException e) {
    e.printStackTrace();
    assertTrue(e.getMessage(),false);
  }
}

Fixed version (ground truth):
@Test public void inputContextTest(){
  final AIConfiguration config=new AIConfiguration(getAccessToken(),getSubscriptionKey(),AIConfiguration.SupportedLanguages.English,AIConfiguration.RecognitionEngine.System);
  updateConfig(config);
  config.setWriteSoundLog(false);
  final AIDataService aiDataService=new AIDataService(Robolectric.application,config);
  final AIRequest aiRequest=new AIRequest();
  aiRequest.setQuery("String_Node_Str");
  AIResponse aiResponse;
  String action;
  try {
    cleanContexts(aiDataService);
    aiResponse=makeRequest(aiDataService,aiRequest);
    action=aiResponse.getResult().getAction();
    assertEquals("String_Node_Str",action);
    aiRequest.addContext(new AIContext("String_Node_Str"));
    aiResponse=makeRequest(aiDataService,aiRequest);
    action=aiResponse.getResult().getAction();
    assertEquals("String_Node_Str",action);
    aiRequest.setResetContexts(true);
    aiRequest.setContexts(null);
    aiRequest.addContext(new AIContext("String_Node_Str"));
    aiResponse=makeRequest(aiDataService,aiRequest);
    action=aiResponse.getResult().getAction();
    assertEquals("String_Node_Str",action);
    cleanContexts(aiDataService);
  }
 catch (  final AIServiceException e) {
    e.printStackTrace();
    assertTrue(e.getMessage(),false);
  }
}
Program: 163543
Project: 163543
Buggy source:
@Test public void outputContextVoiceTest(){
  final AIConfiguration config=new AIConfiguration(getAccessToken(),getSubscriptionKey(),AIConfiguration.SupportedLanguages.English,AIConfiguration.RecognitionEngine.Speaktoit);
  config.setWriteSoundLog(false);
  config.setExperimental(isExperimentalTest());
  final AIDataService aiDataService=new AIDataService(Robolectric.application,config);
  final InputStream inputStream=getClass().getClassLoader().getResourceAsStream("String_Node_Str");
  try {
    final AIResponse aiResponse=aiDataService.voiceRequest(inputStream);
    assertNotNull(aiResponse);
    assertFalse(aiResponse.getStatus().getErrorDetails(),aiResponse.isError());
    assertFalse(TextUtils.isEmpty(aiResponse.getId()));
    assertNotNull(aiResponse.getResult());
    final String resolvedQuery=aiResponse.getResult().getResolvedQuery();
    assertFalse(TextUtils.isEmpty(resolvedQuery));
    assertTrue(resolvedQuery.contains("String_Node_Str"));
    assertContainsContext(aiResponse,"String_Node_Str");
  }
 catch (  final AIServiceException e) {
    e.printStackTrace();
    assertTrue(e.getMessage(),false);
  }
}

Fixed version (ground truth):
@Test public void outputContextVoiceTest(){
  final AIConfiguration config=new AIConfiguration(getAccessToken(),getSubscriptionKey(),AIConfiguration.SupportedLanguages.English,AIConfiguration.RecognitionEngine.Speaktoit);
  updateConfig(config);
  config.setWriteSoundLog(false);
  final AIDataService aiDataService=new AIDataService(Robolectric.application,config);
  final InputStream inputStream=getClass().getClassLoader().getResourceAsStream("String_Node_Str");
  try {
    final AIResponse aiResponse=aiDataService.voiceRequest(inputStream);
    assertNotNull(aiResponse);
    assertFalse(aiResponse.getStatus().getErrorDetails(),aiResponse.isError());
    assertFalse(TextUtils.isEmpty(aiResponse.getId()));
    assertNotNull(aiResponse.getResult());
    final String resolvedQuery=aiResponse.getResult().getResolvedQuery();
    assertFalse(TextUtils.isEmpty(resolvedQuery));
    assertTrue(resolvedQuery.contains("String_Node_Str"));
    assertContainsContext(aiResponse,"String_Node_Str");
  }
 catch (  final AIServiceException e) {
    e.printStackTrace();
    assertTrue(e.getMessage(),false);
  }
}
Program: 163544
Project: 163544
Buggy source:
@Test public void testSpeechDetect(){
  final VoiceActivityDetector voiceActivityDetector=new VoiceActivityDetector(SAMPLE_RATE);
  final InputStream inputStream=getClass().getClassLoader().getResourceAsStream("String_Node_Str");
  voiceDetected=false;
  speechStarted=false;
  voiceActivityDetector.setSpeechListener(new VoiceActivityDetector.SpeechEventsListener(){
    @Override public void onSpeechBegin(){
      speechStarted=true;
    }
    @Override public void onSpeechEnd(){
      voiceDetected=true;
    }
    @Override public void onAudioLevelChanged(    double energy){
    }
  }
);
  try {
    final int bufferSize=1096;
    final byte[] buffer=new byte[bufferSize];
    int bytesRead=0;
    bytesRead=inputStream.read(buffer,0,bufferSize);
    while (bytesRead >= 0) {
      voiceActivityDetector.processBuffer(buffer,bytesRead);
      bytesRead=inputStream.read(buffer,0,bufferSize);
    }
    assertTrue(speechStarted);
    assertTrue(voiceDetected);
  }
 catch (  final Exception e) {
    e.printStackTrace();
    assertTrue(e.getMessage(),false);
  }
}

Fixed version (ground truth):
@Test public void testSpeechDetect(){
  final VoiceActivityDetector voiceActivityDetector=new VoiceActivityDetector(SAMPLE_RATE);
  final InputStream inputStream=getClass().getClassLoader().getResourceAsStream("String_Node_Str");
  voiceDetected=false;
  speechStarted=false;
  voiceActivityDetector.setSpeechListener(new VoiceActivityDetector.SpeechEventsListener(){
    @Override public void onSpeechBegin(){
      speechStarted=true;
    }
    @Override public void onSpeechCancel(){
    }
    @Override public void onSpeechEnd(){
      voiceDetected=true;
    }
    @Override public void onRmsChanged(    double level){
    }
  }
);
  try {
    final int bufferSize=1096;
    final byte[] buffer=new byte[bufferSize];
    int bytesRead=0;
    bytesRead=inputStream.read(buffer,0,bufferSize);
    while (bytesRead >= 0) {
      voiceActivityDetector.processBuffer(buffer,bytesRead);
      bytesRead=inputStream.read(buffer,0,bufferSize);
    }
    assertTrue(speechStarted);
    assertTrue(voiceDetected);
  }
 catch (  final Exception e) {
    e.printStackTrace();
    assertTrue(e.getMessage(),false);
  }
}
Program: 163545
Project: 163545
Buggy source:
@Test public void testEnabled(){
  final VoiceActivityDetector voiceActivityDetector=new VoiceActivityDetector(SAMPLE_RATE);
  voiceActivityDetector.setEnabled(false);
  final InputStream inputStream=getClass().getClassLoader().getResourceAsStream("String_Node_Str");
  voiceDetected=false;
  speechStarted=false;
  voiceActivityDetector.setSpeechListener(new VoiceActivityDetector.SpeechEventsListener(){
    @Override public void onSpeechBegin(){
      speechStarted=true;
    }
    @Override public void onSpeechEnd(){
      voiceDetected=true;
    }
    @Override public void onAudioLevelChanged(    double energy){
    }
  }
);
  try {
    final int bufferSize=1096;
    final byte[] buffer=new byte[bufferSize];
    int bytesRead=0;
    bytesRead=inputStream.read(buffer,0,bufferSize);
    while (bytesRead >= 0) {
      voiceActivityDetector.processBuffer(buffer,bytesRead);
      bytesRead=inputStream.read(buffer,0,bufferSize);
    }
    assertTrue(speechStarted);
    assertFalse(voiceDetected);
  }
 catch (  final Exception e) {
    e.printStackTrace();
    assertTrue(e.getMessage(),false);
  }
}

Fixed version (ground truth):
@Test public void testEnabled(){
  final VoiceActivityDetector voiceActivityDetector=new VoiceActivityDetector(SAMPLE_RATE);
  voiceActivityDetector.setEnabled(false);
  final InputStream inputStream=getClass().getClassLoader().getResourceAsStream("String_Node_Str");
  voiceDetected=false;
  speechStarted=false;
  voiceActivityDetector.setSpeechListener(new VoiceActivityDetector.SpeechEventsListener(){
    @Override public void onSpeechBegin(){
      speechStarted=true;
    }
    @Override public void onSpeechCancel(){
    }
    @Override public void onSpeechEnd(){
      voiceDetected=true;
    }
    @Override public void onRmsChanged(    double level){
    }
  }
);
  try {
    final int bufferSize=1096;
    final byte[] buffer=new byte[bufferSize];
    int bytesRead=0;
    bytesRead=inputStream.read(buffer,0,bufferSize);
    while (bytesRead >= 0) {
      voiceActivityDetector.processBuffer(buffer,bytesRead);
      bytesRead=inputStream.read(buffer,0,bufferSize);
    }
    assertTrue(speechStarted);
    assertFalse(voiceDetected);
  }
 catch (  final Exception e) {
    e.printStackTrace();
    assertTrue(e.getMessage(),false);
  }
}
Program: 163546
Project: 163546
Buggy source:
@Test public void testSilence(){
  final VoiceActivityDetector voiceActivityDetector=new VoiceActivityDetector(SAMPLE_RATE);
  final InputStream inputStream=getClass().getClassLoader().getResourceAsStream("String_Node_Str");
  voiceDetected=false;
  voiceActivityDetector.setSpeechListener(new VoiceActivityDetector.SpeechEventsListener(){
    @Override public void onSpeechBegin(){
    }
    @Override public void onSpeechEnd(){
      voiceDetected=true;
    }
    @Override public void onAudioLevelChanged(    double energy){
    }
  }
);
  try {
    final int bufferSize=1096;
    final byte[] buffer=new byte[bufferSize];
    int bytesRead=inputStream.read(buffer,0,bufferSize);
    while (bytesRead >= 0) {
      voiceActivityDetector.processBuffer(buffer,bytesRead);
      bytesRead=inputStream.read(buffer,0,bufferSize);
    }
    assertFalse(voiceDetected);
  }
 catch (  final Exception e) {
    e.printStackTrace();
    assertTrue(e.getMessage(),false);
  }
}

Fixed version (ground truth):
@Test public void testSilence(){
  final VoiceActivityDetector voiceActivityDetector=new VoiceActivityDetector(SAMPLE_RATE);
  final InputStream inputStream=getClass().getClassLoader().getResourceAsStream("String_Node_Str");
  voiceDetected=false;
  voiceActivityDetector.setSpeechListener(new VoiceActivityDetector.SpeechEventsListener(){
    @Override public void onSpeechBegin(){
    }
    @Override public void onSpeechCancel(){
    }
    @Override public void onSpeechEnd(){
      voiceDetected=true;
    }
    @Override public void onRmsChanged(    double level){
    }
  }
);
  try {
    final int bufferSize=1096;
    final byte[] buffer=new byte[bufferSize];
    int bytesRead=inputStream.read(buffer,0,bufferSize);
    while (bytesRead >= 0) {
      voiceActivityDetector.processBuffer(buffer,bytesRead);
      bytesRead=inputStream.read(buffer,0,bufferSize);
    }
    assertFalse(voiceDetected);
  }
 catch (  final Exception e) {
    e.printStackTrace();
    assertTrue(e.getMessage(),false);
  }
}
Program: 163547
Project: 163547
Buggy source:
public void testNoise(){
  final VoiceActivityDetector voiceActivityDetector=new VoiceActivityDetector(SAMPLE_RATE);
  final InputStream inputStream=getClass().getClassLoader().getResourceAsStream("String_Node_Str");
  voiceDetected=false;
  voiceActivityDetector.setSpeechListener(new VoiceActivityDetector.SpeechEventsListener(){
    @Override public void onSpeechBegin(){
    }
    @Override public void onSpeechEnd(){
      voiceDetected=true;
    }
    @Override public void onAudioLevelChanged(    double energy){
    }
  }
);
  try {
    final int bufferSize=1096;
    final byte[] buffer=new byte[bufferSize];
    int bytesRead=inputStream.read(buffer,0,bufferSize);
    while (bytesRead >= 0) {
      voiceActivityDetector.processBuffer(buffer,bytesRead);
      bytesRead=inputStream.read(buffer,0,bufferSize);
    }
    assertFalse(voiceDetected);
  }
 catch (  final Exception e) {
    e.printStackTrace();
    assertTrue(e.getMessage(),false);
  }
}

Fixed version (ground truth):
public void testNoise(){
  final VoiceActivityDetector voiceActivityDetector=new VoiceActivityDetector(SAMPLE_RATE);
  final InputStream inputStream=getClass().getClassLoader().getResourceAsStream("String_Node_Str");
  voiceDetected=false;
  voiceActivityDetector.setSpeechListener(new VoiceActivityDetector.SpeechEventsListener(){
    @Override public void onSpeechBegin(){
    }
    @Override public void onSpeechCancel(){
    }
    @Override public void onSpeechEnd(){
      voiceDetected=true;
    }
    @Override public void onRmsChanged(    double level){
    }
  }
);
  try {
    final int bufferSize=1096;
    final byte[] buffer=new byte[bufferSize];
    int bytesRead=inputStream.read(buffer,0,bufferSize);
    while (bytesRead >= 0) {
      voiceActivityDetector.processBuffer(buffer,bytesRead);
      bytesRead=inputStream.read(buffer,0,bufferSize);
    }
    assertFalse(voiceDetected);
  }
 catch (  final Exception e) {
    e.printStackTrace();
    assertTrue(e.getMessage(),false);
  }
}
Program: 163548
Project: 163548
Buggy source:
@Override public void cancel(){
  if (recognitionActive) {
    runInUiThread(new Runnable(){
      @Override public void run(){
synchronized (speechRecognizerLock) {
          if (recognitionActive) {
            if (speechRecognizer != null) {
              speechRecognizer.cancel();
            }
            recognitionActive=false;
          }
        }
      }
    }
);
  }
}

Fixed version (ground truth):
@Override public void cancel(){
  if (recognitionActive) {
    runInUiThread(new Runnable(){
      @Override public void run(){
synchronized (speechRecognizerLock) {
          if (recognitionActive) {
            recognitionActive=false;
            if (speechRecognizer != null) {
              speechRecognizer.cancel();
            }
            onListeningCancelled();
          }
        }
      }
    }
);
  }
}
Program: 163549
Project: 163549
Buggy source:
/** 
 * This method must be called from UI thread
 */
@Override public void resume(){
  super.resume();
}

Fixed version (ground truth):
/** 
 * This method must be called from UI thread
 */
@Override public void resume(){
}
Program: 163550
Project: 163550
Buggy source:
@Override public void onError(final int error){
  recognitionActive=false;
  final AIError aiError;
  if (errorMessages.containsKey(error)) {
    final String description=errorMessages.get(error);
    aiError=new AIError("String_Node_Str" + description);
  }
 else {
    aiError=new AIError("String_Node_Str" + error);
  }
  GoogleRecognitionServiceImpl.this.onError(aiError);
}

Fixed version (ground truth):
@Override public void onError(final int error){
  if (recognitionActive) {
    recognitionActive=false;
    final AIError aiError;
    if (errorMessages.containsKey(error)) {
      final String description=errorMessages.get(error);
      aiError=new AIError("String_Node_Str" + description);
    }
 else {
      aiError=new AIError("String_Node_Str" + error);
    }
    GoogleRecognitionServiceImpl.this.onError(aiError);
  }
}
Program: 163551
Project: 163551
Buggy source:
@Override public void run(){
synchronized (speechRecognizerLock) {
    if (recognitionActive) {
      if (speechRecognizer != null) {
        speechRecognizer.cancel();
      }
      recognitionActive=false;
    }
  }
}

Fixed version (ground truth):
@Override public void run(){
synchronized (speechRecognizerLock) {
    if (recognitionActive) {
      recognitionActive=false;
      if (speechRecognizer != null) {
        speechRecognizer.cancel();
      }
      onListeningCancelled();
    }
  }
}
Program: 163552
Project: 163552
Buggy source:
@Override public void stopListening(){
  if (recognitionActive) {
    runInUiThread(new Runnable(){
      @Override public void run(){
synchronized (speechRecognizerLock) {
          if (recognitionActive) {
            speechRecognizer.stopListening();
            recognitionActive=false;
          }
        }
      }
    }
);
  }
 else {
    Log.w(TAG,"String_Node_Str");
  }
}

Fixed version (ground truth):
@Override public void stopListening(){
  if (recognitionActive) {
    runInUiThread(new Runnable(){
      @Override public void run(){
synchronized (speechRecognizerLock) {
          if (recognitionActive) {
            if (speechRecognizer != null) {
              speechRecognizer.stopListening();
            }
          }
        }
      }
    }
);
  }
 else {
    Log.w(TAG,"String_Node_Str");
  }
}
Program: 163553
Project: 163553
Buggy source:
/** 
 * This method must be called from UI thread
 */
@Override public void pause(){
  super.pause();
  clearRecognizer();
}

Fixed version (ground truth):
/** 
 * This method must be called from UI thread
 */
@Override public void pause(){
  clearRecognizer();
}
Program: 163554
Project: 163554
Buggy source:
@Override public void onEndOfSpeech(){
  GoogleRecognitionServiceImpl.this.onListeningFinished();
}

Fixed version (ground truth):
@Override public void onEndOfSpeech(){
  if (recognitionActive) {
    GoogleRecognitionServiceImpl.this.onListeningFinished();
  }
}
Program: 163555
Project: 163555
Buggy source:
@Override public void onRmsChanged(final float rmsdB){
  GoogleRecognitionServiceImpl.this.onAudioLevelChanged(rmsdB);
}

Fixed version (ground truth):
@Override public void onRmsChanged(final float rmsdB){
  if (recognitionActive) {
    GoogleRecognitionServiceImpl.this.onAudioLevelChanged(rmsdB);
  }
}
Program: 163556
Project: 163556
Buggy source:
@Override public void onPartialResults(final Bundle partialResults){
  final ArrayList<String> partialRecognitionResults=partialResults.getStringArrayList(SpeechRecognizer.RESULTS_RECOGNITION);
  if (partialRecognitionResults != null && !partialRecognitionResults.isEmpty()) {
    GoogleRecognitionServiceImpl.this.onPartialResults(partialRecognitionResults);
  }
}

Fixed version (ground truth):
@Override public void onPartialResults(final Bundle partialResults){
  if (recognitionActive) {
    final ArrayList<String> partialRecognitionResults=partialResults.getStringArrayList(SpeechRecognizer.RESULTS_RECOGNITION);
    if (partialRecognitionResults != null && !partialRecognitionResults.isEmpty()) {
      GoogleRecognitionServiceImpl.this.onPartialResults(partialRecognitionResults);
    }
  }
}
Program: 163557
Project: 163557
Buggy source:
@Override public void onReadyForSpeech(final Bundle params){
  GoogleRecognitionServiceImpl.this.onListeningStarted();
}

Fixed version (ground truth):
@Override public void onReadyForSpeech(final Bundle params){
  if (recognitionActive) {
    GoogleRecognitionServiceImpl.this.onListeningStarted();
  }
}
Program: 163558
Project: 163558
Buggy source:
public Date getTimeParameter(final String name,final Date defaultValue) throws IllegalArgumentException {
  if (parameters.containsKey(name)) {
    final String parameterStringValue=parameters.get(name).getAsString();
    if (TextUtils.isEmpty(parameterStringValue)) {
      return defaultValue;
    }
    try {
      return ParametersConverter.parseTime(name);
    }
 catch (    final ParseException pe) {
      throw new IllegalArgumentException(String.format(DATE_FORMAT_ERROR_MESSAGE,name,parameterStringValue),pe);
    }
  }
  return defaultValue;
}

Fixed version (ground truth):
public Date getTimeParameter(final String name,final Date defaultValue) throws IllegalArgumentException {
  if (parameters.containsKey(name)) {
    final String parameterStringValue=parameters.get(name).getAsString();
    if (TextUtils.isEmpty(parameterStringValue)) {
      return defaultValue;
    }
    try {
      return ParametersConverter.parseTime(parameterStringValue);
    }
 catch (    final ParseException pe) {
      throw new IllegalArgumentException(String.format(DATE_FORMAT_ERROR_MESSAGE,name,parameterStringValue),pe);
    }
  }
  return defaultValue;
}
Program: 163559
Project: 163559
Buggy source:
public float getFloatParameter(final String name,final int defaultValue){
  if (parameters.containsKey(name)) {
    final String parameterStringValue=parameters.get(name).getAsString();
    if (TextUtils.isEmpty(parameterStringValue)) {
      return defaultValue;
    }
    return ParametersConverter.parseFloat(name);
  }
  return defaultValue;
}

Fixed version (ground truth):
public float getFloatParameter(final String name,final int defaultValue){
  if (parameters.containsKey(name)) {
    final String parameterStringValue=parameters.get(name).getAsString();
    if (TextUtils.isEmpty(parameterStringValue)) {
      return defaultValue;
    }
    return ParametersConverter.parseFloat(parameterStringValue);
  }
  return defaultValue;
}
Program: 163560
Project: 163560
Buggy source:
public Date getDateParameter(final String name,final Date defaultValue) throws IllegalArgumentException {
  if (parameters.containsKey(name)) {
    final String parameterStringValue=parameters.get(name).getAsString();
    if (TextUtils.isEmpty(parameterStringValue)) {
      return defaultValue;
    }
    try {
      return ParametersConverter.parseDate(name);
    }
 catch (    final ParseException pe) {
      throw new IllegalArgumentException(String.format(DATE_FORMAT_ERROR_MESSAGE,name,parameterStringValue),pe);
    }
  }
  return defaultValue;
}

Fixed version (ground truth):
public Date getDateParameter(final String name,final Date defaultValue) throws IllegalArgumentException {
  if (parameters.containsKey(name)) {
    final String parameterStringValue=parameters.get(name).getAsString();
    if (TextUtils.isEmpty(parameterStringValue)) {
      return defaultValue;
    }
    try {
      return ParametersConverter.parseDate(parameterStringValue);
    }
 catch (    final ParseException pe) {
      throw new IllegalArgumentException(String.format(DATE_FORMAT_ERROR_MESSAGE,name,parameterStringValue),pe);
    }
  }
  return defaultValue;
}
Program: 163561
Project: 163561
Buggy source:
public int getIntParameter(final String name,final int defaultValue){
  if (parameters.containsKey(name)) {
    final String parameterStringValue=parameters.get(name).getAsString();
    if (TextUtils.isEmpty(parameterStringValue)) {
      return defaultValue;
    }
    return ParametersConverter.parseInteger(name);
  }
  return defaultValue;
}

Fixed version (ground truth):
public int getIntParameter(final String name,final int defaultValue){
  if (parameters.containsKey(name)) {
    final String parameterStringValue=parameters.get(name).getAsString();
    if (TextUtils.isEmpty(parameterStringValue)) {
      return defaultValue;
    }
    return ParametersConverter.parseInteger(parameterStringValue);
  }
  return defaultValue;
}
Program: 163562
Project: 163562
Buggy source:
public Date getDateTimeParameter(final String name,final Date defaultValue) throws IllegalArgumentException {
  if (parameters.containsKey(name)) {
    final String parameterStringValue=parameters.get(name).getAsString();
    if (TextUtils.isEmpty(parameterStringValue)) {
      return defaultValue;
    }
    try {
      return ParametersConverter.parseDateTime(name);
    }
 catch (    final ParseException pe) {
      throw new IllegalArgumentException(String.format(DATE_FORMAT_ERROR_MESSAGE,name,parameterStringValue),pe);
    }
  }
  return defaultValue;
}

Fixed version (ground truth):
public Date getDateTimeParameter(final String name,final Date defaultValue) throws IllegalArgumentException {
  if (parameters.containsKey(name)) {
    final String parameterStringValue=parameters.get(name).getAsString();
    if (TextUtils.isEmpty(parameterStringValue)) {
      return defaultValue;
    }
    try {
      return ParametersConverter.parseDateTime(parameterStringValue);
    }
 catch (    final ParseException pe) {
      throw new IllegalArgumentException(String.format(DATE_FORMAT_ERROR_MESSAGE,name,parameterStringValue),pe);
    }
  }
  return defaultValue;
}
Program: 163563
Project: 163563
Buggy source:
@TargetApi(14) @Override public void onResults(final Bundle results){
  if (recognitionActive) {
    recognitionActive=false;
    final ArrayList<String> recognitionResults=results.getStringArrayList(SpeechRecognizer.RESULTS_RECOGNITION);
    float[] rates=null;
    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) {
      rates=results.getFloatArray(SpeechRecognizer.CONFIDENCE_SCORES);
    }
    if (recognitionResults == null || recognitionResults.size() == 0) {
      GoogleRecognitionServiceImpl.this.onResult(new AIResponse());
    }
 else {
      final AIRequest aiRequest=new AIRequest();
      if (rates != null) {
        aiRequest.setQuery(recognitionResults.toArray(new String[recognitionResults.size()]),rates);
      }
 else {
        aiRequest.setQuery(recognitionResults.get(0));
      }
      if (contexts != null) {
        aiRequest.setContexts(contexts);
      }
      GoogleRecognitionServiceImpl.this.sendRequest(aiRequest);
      clearRecognizer();
    }
  }
}

Fixed version (ground truth):
@TargetApi(14) @Override public void onResults(final Bundle results){
  if (recognitionActive) {
    recognitionActive=false;
    final ArrayList<String> recognitionResults=results.getStringArrayList(SpeechRecognizer.RESULTS_RECOGNITION);
    float[] rates=null;
    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) {
      rates=results.getFloatArray(SpeechRecognizer.CONFIDENCE_SCORES);
    }
    if (recognitionResults == null || recognitionResults.isEmpty()) {
      GoogleRecognitionServiceImpl.this.onResult(new AIResponse());
    }
 else {
      final AIRequest aiRequest=new AIRequest();
      if (rates != null) {
        aiRequest.setQuery(recognitionResults.toArray(new String[recognitionResults.size()]),rates);
      }
 else {
        aiRequest.setQuery(recognitionResults.get(0));
      }
      if (contexts != null) {
        aiRequest.setContexts(contexts);
      }
      GoogleRecognitionServiceImpl.this.onPartialResults(recognitionResults);
      GoogleRecognitionServiceImpl.this.sendRequest(aiRequest);
      clearRecognizer();
    }
  }
}
Program: 163564
Project: 163564
Buggy source:
public AIDialog(final Context context,final AIConfiguration config){
  this.context=context;
  this.config=config;
  dialog=new Dialog(context);
  handler=new Handler(Looper.getMainLooper());
}

Fixed version (ground truth):
public AIDialog(final Context context,final AIConfiguration config,final int customLayout){
  this.context=context;
  this.config=config;
  dialog=new Dialog(context);
  handler=new Handler(Looper.getMainLooper());
  dialog.setCanceledOnTouchOutside(true);
  dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
  dialog.setContentView(customLayout);
  partialResultsTextView=(TextView)dialog.findViewById(R.id.partialResultsTextView);
  aiButton=(AIButton)dialog.findViewById(R.id.micButton);
  aiButton.initialize(config);
  setAIButtonCallback(aiButton);
}
Program: 163566
Project: 163566
Buggy source:
@Override public void cancel(){
  if (recognitionActive) {
    runInUiThread(new Runnable(){
      @Override public void run(){
synchronized (speechRecognizerLock) {
          if (recognitionActive) {
            speechRecognizer.cancel();
            recognitionActive=false;
          }
        }
      }
    }
);
  }
}

Fixed version (ground truth):
@Override public void cancel(){
  if (recognitionActive) {
    runInUiThread(new Runnable(){
      @Override public void run(){
synchronized (speechRecognizerLock) {
          if (recognitionActive) {
            if (speechRecognizer != null) {
              speechRecognizer.cancel();
            }
            recognitionActive=false;
          }
        }
      }
    }
);
  }
}
Program: 163567
Project: 163567
Buggy source:
@Override public void run(){
synchronized (speechRecognizerLock) {
    if (recognitionActive) {
      speechRecognizer.cancel();
      recognitionActive=false;
    }
  }
}

Fixed version (ground truth):
@Override public void run(){
synchronized (speechRecognizerLock) {
    if (recognitionActive) {
      if (speechRecognizer != null) {
        speechRecognizer.cancel();
      }
      recognitionActive=false;
    }
  }
}
Program: 163568
Project: 163568
Buggy source:
@Override protected void onDetachedFromWindow(){
  super.onDetachedFromWindow();
  if (!isInEditMode()) {
    if (aiService != null) {
      aiService.pause();
    }
  }
}

Fixed version (ground truth):
@Override protected void onDetachedFromWindow(){
  super.onDetachedFromWindow();
  if (!isInEditMode()) {
    cancelListening();
    if (aiService != null) {
      aiService.pause();
    }
  }
}
Program: 163569
Project: 163569
Buggy source:
public String getContexts(){
  return contexts;
}

Fixed version (ground truth):
public String[] getContexts(){
  return contexts;
}
Program: 163570
Project: 163570
Buggy source:
public String getInputContexts(){
  return inputContexts;
}

Fixed version (ground truth):
public String[] getInputContexts(){
  return inputContexts;
}
Program: 163572
Project: 163572
Buggy source:
/** 
 * Sets the view's title size dimension attribute value.
 * @param titleSize The title size dimension attribute value to use.
 */
public void setTitleSize(float titleSize){
  mTitleSize=titleSize;
  invalidate();
}

Fixed version (ground truth):
/** 
 * Sets the view's title size dimension attribute value.
 * @param titleSize The title size dimension attribute value to use.
 */
public void setTitleSize(float titleSize){
  mTitleSize=titleSize;
  invalidateTextPaints();
}
Program: 163573
Project: 163573
Buggy source:
/** 
 * Sets the view's subtitle size dimension attribute value.
 * @param subtitleSize The subtitle size dimension attribute value to use.
 */
public void setSubtitleSize(float subtitleSize){
  mTitleSize=subtitleSize;
  invalidate();
}

Fixed version (ground truth):
/** 
 * Sets the view's subtitle size dimension attribute value.
 * @param subtitleSize The subtitle size dimension attribute value to use.
 */
public void setSubtitleSize(float subtitleSize){
  mSubtitleSize=subtitleSize;
  invalidateTextPaints();
}
Program: 163574
Project: 163574
Buggy source:
/** 
 * Sets the view's subtitle string attribute value.
 * @param subtitle The example string attribute value to use.
 */
public void setSubtitleText(String subtitle){
  mTitleText=subtitle;
  invalidate();
}

Fixed version (ground truth):
/** 
 * Sets the view's subtitle string attribute value.
 * @param subtitle The example string attribute value to use.
 */
public void setSubtitleText(String subtitle){
  mSubtitleText=subtitle;
  invalidate();
}
Program: 163575
Project: 163575
Buggy source:
/** 
 * Sets the view's fill color attribute value.
 * @param fillColor The fill color attribute value to use.
 */
public void setFillColor(int fillColor){
  mFillColor=fillColor;
  invalidate();
}

Fixed version (ground truth):
/** 
 * Sets the view's fill color attribute value.
 * @param fillColor The fill color attribute value to use.
 */
public void setFillColor(int fillColor){
  mFillColor=fillColor;
  invalidatePaints();
}
Program: 163576
Project: 163576
Buggy source:
/** 
 * Sets the view's stroke color attribute value.
 * @param strokeColor The stroke color attribute value to use.
 */
public void setStrokeColor(int strokeColor){
  mStrokeColor=strokeColor;
  invalidate();
}

Fixed version (ground truth):
/** 
 * Sets the view's stroke color attribute value.
 * @param strokeColor The stroke color attribute value to use.
 */
public void setStrokeColor(int strokeColor){
  mStrokeColor=strokeColor;
  invalidatePaints();
}
Program: 163577
Project: 163577
Buggy source:
public void updateTrajectory(float[] translation){
  mVertexBuffer.position(mTrajectoryCount * 3);
  mVertexBuffer.put(new float[]{translation[0],translation[2],-translation[1]});
  mTrajectoryCount++;
}

Fixed version (ground truth):
public void updateTrajectory(float[] translation){
  mVertexBuffer.position(mTrajectoryCount * 3);
  if (((mTrajectoryCount + 1) * 3) >= MAX_VERTICES) {
    Log.w(TAG,"String_Node_Str");
    resetPath();
  }
  mVertexBuffer.put(new float[]{translation[0],translation[2],-translation[1]});
  mTrajectoryCount++;
}
Program: 163578
Project: 163578
Buggy source:
public Trajectory(){
  Matrix.setIdentityM(getModelMatrix(),0);
  ByteBuffer vertexByteBuffer=ByteBuffer.allocateDirect(GRID_RANGE_M * BYTES_PER_FLOAT);
  vertexByteBuffer.order(ByteOrder.nativeOrder());
  mVertexBuffer=vertexByteBuffer.asFloatBuffer();
  int vertexShader=RenderUtils.loadShader(GLES20.GL_VERTEX_SHADER,sVertexShaderCode);
  int fragShader=RenderUtils.loadShader(GLES20.GL_FRAGMENT_SHADER,sFragmentShaderCode);
  mProgram=GLES20.glCreateProgram();
  GLES20.glAttachShader(mProgram,vertexShader);
  GLES20.glAttachShader(mProgram,fragShader);
  GLES20.glLinkProgram(mProgram);
}

Fixed version (ground truth):
public Trajectory(){
  Matrix.setIdentityM(getModelMatrix(),0);
  ByteBuffer vertexByteBuffer=ByteBuffer.allocateDirect(MAX_VERTICES * BYTES_PER_FLOAT);
  vertexByteBuffer.order(ByteOrder.nativeOrder());
  mVertexBuffer=vertexByteBuffer.asFloatBuffer();
  int vertexShader=RenderUtils.loadShader(GLES20.GL_VERTEX_SHADER,sVertexShaderCode);
  int fragShader=RenderUtils.loadShader(GLES20.GL_FRAGMENT_SHADER,sFragmentShaderCode);
  mProgram=GLES20.glCreateProgram();
  GLES20.glAttachShader(mProgram,vertexShader);
  GLES20.glAttachShader(mProgram,fragShader);
  GLES20.glLinkProgram(mProgram);
}
Program: 163580
Project: 163580
Buggy source:
/** 
 * Encodes a string in Base-64.
 * @param str Required: String to encode.
 * @return Base-64 encoded string.
 */
public final static String encodeBase64(String str){
  if (str == null) {
    return null;
  }
  byte[] data=str.getBytes(Charset.forName("String_Node_Str"));
  return Base64.encodeToString(data,Base64.NO_PADDING);
}

Fixed version (ground truth):
/** 
 * Encodes a string in Base-64.
 * @param str Required: String to encode.
 * @return Base-64 encoded string.
 */
public final static String encodeBase64(String str){
  if (str == null) {
    return null;
  }
  byte[] data=str.getBytes(Charset.forName("String_Node_Str"));
  return Base64.encodeToString(data,Base64.URL_SAFE | Base64.NO_WRAP | Base64.NO_PADDING);
}
Program: 163581
Project: 163581
Buggy source:
/** 
 * Encodes a string in Base-64.
 * @param str Required: String to encode.
 * @return Base-64 encoded string.
 */
public final static String encodeBase64(String str){
  if (str == null) {
    return null;
  }
  byte[] data=str.getBytes(Charset.forName("String_Node_Str"));
  return Base64.encodeToString(data,Base64.NO_PADDING);
}

Fixed version (ground truth):
/** 
 * Encodes a string in Base-64.
 * @param str Required: String to encode.
 * @return Base-64 encoded string.
 */
public final static String encodeBase64(String str){
  if (str == null) {
    return null;
  }
  byte[] data=str.getBytes(Charset.forName("String_Node_Str"));
  return Base64.encodeToString(data,Base64.URL_SAFE | Base64.NO_WRAP | Base64.NO_PADDING);
}
Program: 163582
Project: 163582
Buggy source:
/** 
 * Converts string into SHA-256 hash.
 * @param data Required: The {@link String} to hash.
 * @return the hash as a {@link String}.
 */
public final static String generateHash(String data) throws Exception {
  String hashedData=data;
  try {
    byte[] bytes=data.getBytes("String_Node_Str");
    MessageDigest digest=MessageDigest.getInstance("String_Node_Str");
    digest.update(bytes,0,bytes.length);
    byte[] digestBytes=digest.digest();
    hashedData=Base64.encodeToString(digestBytes,Base64.URL_SAFE | Base64.NO_WRAP | Base64.NO_PADDING);
  }
 catch (  Exception e) {
    throw e;
  }
  return hashedData;
}

Fixed version (ground truth):
/** 
 * Converts string into SHA-256 hash.
 * @param data Required: The {@link String} to hash.
 * @return the hash as a {@link String}.
 */
public final static String generateHash(String data) throws Exception {
  String hashedData=data;
  try {
    byte[] bytes=data.getBytes(StandardCharsets.US_ASCII);
    MessageDigest digest=MessageDigest.getInstance("String_Node_Str");
    digest.update(bytes,0,bytes.length);
    byte[] digestBytes=digest.digest();
    hashedData=Base64.encodeToString(digestBytes,Base64.URL_SAFE | Base64.NO_WRAP | Base64.NO_PADDING);
  }
 catch (  Exception e) {
    throw e;
  }
  return hashedData;
}
Program: 163583
Project: 163583
Buggy source:
/** 
 * Calls   {@Code continueTask()} of the parent after checking if all the required attributes have been set.
 */
public void continueTask(){
  if (requiredAttributes != null && requiredAttributes.size() > 1) {
    for (    String requiredAttribute : requiredAttributes) {
      if (!challengeResponses.containsKey(requiredAttribute)) {
        throw new CognitoParameterInvalidException(String.format("String_Node_Str",requiredAttribute));
      }
    }
  }
  if (challengeResponses.containsKey(CognitoServiceConstants.CHLG_RESP_NEW_PASSWORD) && (challengeResponses.get(CognitoServiceConstants.CHLG_RESP_NEW_PASSWORD) != null)) {
    super.continueTask();
  }
 else {
    throw new CognitoParameterInvalidException("String_Node_Str");
  }
}

Fixed version (ground truth):
/** 
 * Calls   {@Code continueTask()} of the parent after checking if all the required attributes have been set.
 */
public void continueTask(){
  if (requiredAttributes != null && requiredAttributes.size() > 1) {
    for (    String requiredAttribute : requiredAttributes) {
      String requiredAttrKey=CognitoServiceConstants.CHLG_PARAM_USER_ATTRIBUTE_PREFIX + requiredAttribute;
      if (!challengeResponses.containsKey(requiredAttrKey)) {
        throw new CognitoParameterInvalidException(String.format("String_Node_Str",requiredAttribute));
      }
    }
  }
  if (challengeResponses.containsKey(CognitoServiceConstants.CHLG_RESP_NEW_PASSWORD) && (challengeResponses.get(CognitoServiceConstants.CHLG_RESP_NEW_PASSWORD) != null)) {
    super.continueTask();
  }
 else {
    throw new CognitoParameterInvalidException("String_Node_Str");
  }
}
Program: 163584
Project: 163584
Buggy source:
@Override public Object invoke(Object proxy,Method method,Object[] args) throws Throwable {
  validateInterfaceMethod(method,args);
  InvokeRequest invokeRequest=buildInvokeRequest(method,args == null ? null : args[0]);
  InvokeResult invokeResult=lambda.invoke(invokeRequest);
  return processInvokeResult(method,invokeResult);
}

Fixed version (ground truth):
@Override public Object invoke(Object proxy,Method method,Object[] args) throws Throwable {
  validateInterfaceMethod(method,args);
  final Object buildArg=(args == null || args.length == 0) ? null : args[0];
  InvokeRequest invokeRequest=buildInvokeRequest(method,buildArg);
  InvokeResult invokeResult=lambda.invoke(invokeRequest);
  return processInvokeResult(method,invokeResult);
}
Program: 163585
Project: 163585
Buggy source:
@Override public void processLine(String line){
  if (images != null && line.contains(AndroidBuild.TARGET_PLATFORM) && line.contains(imageTag))   System.out.println("String_Node_Str" + line);
  images.add(line);
}

Fixed version (ground truth):
@Override public void processLine(String line){
  System.out.println("String_Node_Str" + line);
  if (images != null && line.contains(AndroidBuild.TARGET_PLATFORM) && line.contains(imageTag))   System.out.println("String_Node_Str");
  images.add(line);
}