nus-yam/ex-repair huggingface dataset:
Program: 165016
Project: 165016
Buggy source:
@Test(timeout=30000) public void addsEventOnSDKExitWithServerUnavailableError(){
  setupActivity(new TestClientTokenBuilder().withAnalytics().build());
  waitForAddPaymentFormHeader();
  mFragment.postCallback(new DownForMaintenanceException());
  waitForActivityToFinish(mActivity);
  verifyAnalyticsEvent("String_Node_Str");
}

Fixed version (ground truth):
@Test(timeout=30000) public void addsEventOnSDKExitWithServerUnavailableError(){
  setupActivity(new TestClientTokenBuilder().withAnalytics().build());
  waitForAddPaymentFormHeader();
  mFragment.postCallback(new DownForMaintenanceException("String_Node_Str"));
  waitForActivityToFinish(mActivity);
  verifyAnalyticsEvent("String_Node_Str");
}
Program: 165017
Project: 165017
Buggy source:
@Test(timeout=30000) public void addsEventOnSDKExitWithDeveloperError(){
  setupActivity(new TestClientTokenBuilder().withAnalytics().build());
  waitForAddPaymentFormHeader();
  mFragment.postCallback(new AuthenticationException());
  waitForActivityToFinish(mActivity);
  verifyAnalyticsEvent("String_Node_Str");
}

Fixed version (ground truth):
@Test(timeout=30000) public void addsEventOnSDKExitWithDeveloperError(){
  setupActivity(new TestClientTokenBuilder().withAnalytics().build());
  waitForAddPaymentFormHeader();
  mFragment.postCallback(new AuthenticationException("String_Node_Str"));
  waitForActivityToFinish(mActivity);
  verifyAnalyticsEvent("String_Node_Str");
}
Program: 165018
Project: 165018
Buggy source:
@Test(timeout=30000) public void addsEventOnSDKExitWithServerError(){
  setupActivity(new TestClientTokenBuilder().withAnalytics().build());
  waitForAddPaymentFormHeader();
  mFragment.postCallback(new ServerException());
  waitForActivityToFinish(mActivity);
  verifyAnalyticsEvent("String_Node_Str");
}

Fixed version (ground truth):
@Test(timeout=30000) public void addsEventOnSDKExitWithServerError(){
  setupActivity(new TestClientTokenBuilder().withAnalytics().build());
  waitForAddPaymentFormHeader();
  mFragment.postCallback(new ServerException("String_Node_Str"));
  waitForActivityToFinish(mActivity);
  verifyAnalyticsEvent("String_Node_Str");
}
Program: 165019
Project: 165019
Buggy source:
@Test(timeout=30000) public void returnsDeveloperErrorOnUpgradeRequiredException() throws InterruptedException {
  setupActivityWithBraintree();
  assertExceptionIsReturned(BraintreePaymentActivity.BRAINTREE_RESULT_DEVELOPER_ERROR,new UpgradeRequiredException());
}

Fixed version (ground truth):
@Test(timeout=30000) public void returnsDeveloperErrorOnUpgradeRequiredException() throws InterruptedException {
  setupActivityWithBraintree();
  assertExceptionIsReturned(BraintreePaymentActivity.BRAINTREE_RESULT_DEVELOPER_ERROR,new UpgradeRequiredException("String_Node_Str"));
}
Program: 165020
Project: 165020
Buggy source:
@Test(timeout=30000) public void returnsDeveloperErrorOnAuthenticationException() throws InterruptedException {
  setupActivityWithBraintree();
  assertExceptionIsReturned(BraintreePaymentActivity.BRAINTREE_RESULT_DEVELOPER_ERROR,new AuthenticationException());
}

Fixed version (ground truth):
@Test(timeout=30000) public void returnsDeveloperErrorOnAuthenticationException() throws InterruptedException {
  setupActivityWithBraintree();
  assertExceptionIsReturned(BraintreePaymentActivity.BRAINTREE_RESULT_DEVELOPER_ERROR,new AuthenticationException("String_Node_Str"));
}
Program: 165021
Project: 165021
Buggy source:
@Test(timeout=30000) public void returnsDeveloperErrorOnAuthorizationException() throws InterruptedException {
  setupActivityWithBraintree();
  assertExceptionIsReturned(BraintreePaymentActivity.BRAINTREE_RESULT_DEVELOPER_ERROR,new AuthorizationException());
}

Fixed version (ground truth):
@Test(timeout=30000) public void returnsDeveloperErrorOnAuthorizationException() throws InterruptedException {
  setupActivityWithBraintree();
  assertExceptionIsReturned(BraintreePaymentActivity.BRAINTREE_RESULT_DEVELOPER_ERROR,new AuthorizationException("String_Node_Str"));
}
Program: 165022
Project: 165022
Buggy source:
@Test(timeout=30000) public void returnsServerErrorOnServerException() throws InterruptedException {
  setupActivityWithBraintree();
  assertExceptionIsReturned(BraintreePaymentActivity.BRAINTREE_RESULT_SERVER_ERROR,new ServerException());
}

Fixed version (ground truth):
@Test(timeout=30000) public void returnsServerErrorOnServerException() throws InterruptedException {
  setupActivityWithBraintree();
  assertExceptionIsReturned(BraintreePaymentActivity.BRAINTREE_RESULT_SERVER_ERROR,new ServerException("String_Node_Str"));
}
Program: 165023
Project: 165023
Buggy source:
@Test(timeout=30000) public void returnsServerErrorOnUnexpectedException() throws InterruptedException {
  setupActivityWithBraintree();
  assertExceptionIsReturned(BraintreePaymentActivity.BRAINTREE_RESULT_SERVER_ERROR,new UnexpectedException());
}

Fixed version (ground truth):
@Test(timeout=30000) public void returnsServerErrorOnUnexpectedException() throws InterruptedException {
  setupActivityWithBraintree();
  assertExceptionIsReturned(BraintreePaymentActivity.BRAINTREE_RESULT_SERVER_ERROR,new UnexpectedException("String_Node_Str"));
}
Program: 165024
Project: 165024
Buggy source:
@Test(timeout=30000) public void returnsServerUnavailableOnDownForMaintenanceException() throws InterruptedException {
  setupActivityWithBraintree();
  assertExceptionIsReturned(BraintreePaymentActivity.BRAINTREE_RESULT_SERVER_UNAVAILABLE,new DownForMaintenanceException());
}

Fixed version (ground truth):
@Test(timeout=30000) public void returnsServerUnavailableOnDownForMaintenanceException() throws InterruptedException {
  setupActivityWithBraintree();
  assertExceptionIsReturned(BraintreePaymentActivity.BRAINTREE_RESULT_SERVER_UNAVAILABLE,new DownForMaintenanceException("String_Node_Str"));
}
Program: 165025
Project: 165025
Buggy source:
@Before public void setUp(){
  BraintreeHttpClient.DEBUG=true;
  PayPalTestSignatureVerification.disableAppSwitchSignatureVerification();
}

Fixed version (ground truth):
@Before public void setUp(){
  PayPalTestSignatureVerification.disableAppSwitchSignatureVerification();
}
Program: 165026
Project: 165026
Buggy source:
public BraintreeTestHttpClient(Authorization authorization,Intent intent){
  super(authorization);
  BraintreeHttpClient.DEBUG=true;
  mIntent=intent;
  mDelay=mIntent.getLongExtra(BraintreePaymentTestActivity.EXTRA_DELAY,0);
}

Fixed version (ground truth):
public BraintreeTestHttpClient(Authorization authorization,Intent intent){
  super(authorization);
  mIntent=intent;
  mDelay=mIntent.getLongExtra(BraintreePaymentTestActivity.EXTRA_DELAY,0);
}
Program: 165027
Project: 165027
Buggy source:
private Socket enableTLSOnSocket(Socket socket){
  if (socket instanceof SSLSocket) {
    ((SSLSocket)socket).setEnabledProtocols(new String[]{"String_Node_Str","String_Node_Str","String_Node_Str"});
  }
  return socket;
}

Fixed version (ground truth):
private Socket enableTLSOnSocket(Socket socket){
  if (socket instanceof SSLSocket) {
    ArrayList<String> supportedProtocols=new ArrayList<>(Arrays.asList(((SSLSocket)socket).getSupportedProtocols()));
    supportedProtocols.retainAll(Arrays.asList("String_Node_Str","String_Node_Str","String_Node_Str"));
    ((SSLSocket)socket).setEnabledProtocols(supportedProtocols.toArray(new String[supportedProtocols.size()]));
  }
  return socket;
}
Program: 165029
Project: 165029
Buggy source:
/** 
 * Parse the PayPal response URL using OneTouchCore.
 * @param result Context that received the result.
 * @param intent The {@link Intent} returned in result.
 * @return A {@link PayPalAccountBuilder} or null if the intent is invalid.
 */
private static PayPalAccountBuilder parseResponse(Result result,Intent intent) throws InvalidArgumentException {
  PayPalAccountBuilder paypalAccountBuilder=new PayPalAccountBuilder().clientMetadataId(sPendingRequestStatus.getClientMetadataId());
  if (intent.hasExtra(PayPalOneTouchActivity.EXTRA_ONE_TOUCH_RESULT)) {
    paypalAccountBuilder.source("String_Node_Str");
  }
 else {
    paypalAccountBuilder.source("String_Node_Str");
  }
  JSONObject payload=result.getResponse();
  try {
    JSONObject clientJson=payload.getJSONObject("String_Node_Str");
    JSONObject response=payload.getJSONObject("String_Node_Str");
    if (AuthorizationRequest.ENVIRONMENT_MOCK.equalsIgnoreCase(clientJson.getString("String_Node_Str")) && response.getString("String_Node_Str") != null && !isCheckoutRequest()) {
      payload.put("String_Node_Str",new JSONObject().put("String_Node_Str","String_Node_Str" + ((AuthorizationRequest)sPendingRequest).getScopeString()));
    }
  }
 catch (  JSONException ignored) {
  }
  paypalAccountBuilder.oneTouchCoreData(payload);
  return paypalAccountBuilder;
}

Fixed version (ground truth):
/** 
 * Parse the PayPal response URL using OneTouchCore.
 * @param result Context that received the result.
 * @param intent The {@link Intent} returned in result.
 * @return A {@link PayPalAccountBuilder} or null if the intent is invalid.
 */
private static PayPalAccountBuilder parseResponse(Result result,Intent intent) throws InvalidArgumentException {
  PayPalAccountBuilder paypalAccountBuilder=new PayPalAccountBuilder().clientMetadataId(sPendingRequest.getClientMetadataId());
  if (intent.hasExtra(PayPalOneTouchActivity.EXTRA_ONE_TOUCH_RESULT)) {
    paypalAccountBuilder.source("String_Node_Str");
  }
 else {
    paypalAccountBuilder.source("String_Node_Str");
  }
  JSONObject payload=result.getResponse();
  try {
    JSONObject clientJson=payload.getJSONObject("String_Node_Str");
    JSONObject response=payload.getJSONObject("String_Node_Str");
    if (AuthorizationRequest.ENVIRONMENT_MOCK.equalsIgnoreCase(clientJson.getString("String_Node_Str")) && response.getString("String_Node_Str") != null && !isCheckoutRequest()) {
      payload.put("String_Node_Str",new JSONObject().put("String_Node_Str","String_Node_Str" + ((AuthorizationRequest)sPendingRequest).getScopeString()));
    }
  }
 catch (  JSONException ignored) {
  }
  paypalAccountBuilder.oneTouchCoreData(payload);
  return paypalAccountBuilder;
}
Program: 165031
Project: 165031
Buggy source:
@Test(timeout=1000) @SmallTest public void getContext_returnsContext() throws InvalidArgumentException {
  BraintreeFragment fragment=getFragment(mActivity,mClientToken);
  assertEquals(mActivity.getApplicationContext(),fragment.getContext());
}

Fixed version (ground truth):
@Test(timeout=1000) @SmallTest public void getContext_returnsContext() throws InvalidArgumentException {
  BraintreeFragment fragment=getFragment(mActivity,mClientToken);
  assertEquals(mActivity.getApplicationContext(),fragment.getApplicationContext());
}
Program: 165032
Project: 165032
Buggy source:
/** 
 * Get a   {@link org.mockito.Spy} {@link BraintreeFragment} with the given {@link Configuration}.
 * @param activity
 * @param clientToken
 * @param configuration
 * @return
 */
public static BraintreeFragment getMockFragment(Activity activity,String clientToken,Configuration configuration){
  try {
    BraintreeFragment fragment=spy(BraintreeFragment.newInstance(activity,clientToken));
    doNothing().when(fragment).fetchConfiguration();
    when(fragment.getContext()).thenReturn(getTargetContext());
    when(fragment.getConfiguration()).thenReturn(configuration);
    getInstrumentation().waitForIdleSync();
    return fragment;
  }
 catch (  InvalidArgumentException e) {
    fail(e.getMessage());
    return new BraintreeFragment();
  }
}

Fixed version (ground truth):
/** 
 * Get a   {@link org.mockito.Spy} {@link BraintreeFragment} with the given {@link Configuration}.
 * @param activity
 * @param clientToken
 * @param configuration
 * @return
 */
public static BraintreeFragment getMockFragment(Activity activity,String clientToken,Configuration configuration){
  try {
    BraintreeFragment fragment=spy(BraintreeFragment.newInstance(activity,clientToken));
    doNothing().when(fragment).fetchConfiguration();
    when(fragment.getApplicationContext()).thenReturn(getTargetContext());
    when(fragment.getConfiguration()).thenReturn(configuration);
    getInstrumentation().waitForIdleSync();
    return fragment;
  }
 catch (  InvalidArgumentException e) {
    fail(e.getMessage());
    return new BraintreeFragment();
  }
}
Program: 165033
Project: 165033
Buggy source:
@Test(timeout=10000) @MediumTest public void tokenize_acceptsAPayPalAccount() throws InterruptedException, JSONException {
  final CountDownLatch latch=new CountDownLatch(1);
  JSONObject otcJson=new JSONObject(FixturesHelper.stringFromFixture("String_Node_Str"));
  BraintreeFragment fragment=getFragment(mActivity,new TestClientTokenBuilder().withPayPal().build());
  PayPalAccountBuilder paypalAccountBuilder=new PayPalAccountBuilder().oneTouchCoreData(otcJson).clientMetadataId("String_Node_Str");
  TokenizationClient.tokenize(fragment,paypalAccountBuilder,new PaymentMethodResponseCallback(){
    @Override public void success(    PaymentMethod paymentMethod){
      assertNotNull(paymentMethod.getNonce());
      assertEquals("String_Node_Str",paymentMethod.getTypeLabel());
      latch.countDown();
    }
    @Override public void failure(    Exception exception){
      fail(exception.getMessage());
    }
  }
);
  latch.await();
}

Fixed version (ground truth):
@Test @MediumTest public void tokenize_acceptsAPayPalAccount() throws InterruptedException, JSONException {
  final CountDownLatch latch=new CountDownLatch(1);
  JSONObject otcJson=new JSONObject(FixturesHelper.stringFromFixture("String_Node_Str"));
  BraintreeFragment fragment=getFragment(mActivity,new TestClientTokenBuilder().withPayPal().build());
  PayPalAccountBuilder paypalAccountBuilder=new PayPalAccountBuilder().oneTouchCoreData(otcJson).clientMetadataId("String_Node_Str");
  TokenizationClient.tokenize(fragment,paypalAccountBuilder,new PaymentMethodResponseCallback(){
    @Override public void success(    PaymentMethod paymentMethod){
      assertNotNull(paymentMethod.getNonce());
      assertEquals("String_Node_Str",paymentMethod.getTypeLabel());
      latch.countDown();
    }
    @Override public void failure(    Exception exception){
      fail(exception.getMessage());
    }
  }
);
  latch.await();
}
Program: 165034
Project: 165034
Buggy source:
@Test(timeout=1000) @SmallTest public void performAppSwitch_sendsAnalyticsEventWhenStarted(){
  Configuration configuration=getConfiguration();
  when(configuration.getVenmoState()).thenReturn("String_Node_Str");
  BraintreeFragment fragment=getMockFragment(mActivity,configuration);
  doNothing().when(fragment).sendAnalyticsEvent(anyString());
  doNothing().when(fragment).startActivityForResult(any(Intent.class),anyInt());
  ActivityInfo activityInfo=new ActivityInfo();
  activityInfo.packageName="String_Node_Str";
  ResolveInfo resolveInfo=new ResolveInfo();
  resolveInfo.activityInfo=activityInfo;
  PackageManager packageManager=mock(PackageManager.class);
  when(packageManager.queryIntentActivities(any(Intent.class),anyInt())).thenReturn(Collections.singletonList(resolveInfo));
  Context context=mock(Context.class);
  when(context.getPackageManager()).thenReturn(packageManager);
  when(fragment.getContext()).thenReturn(context);
  disableSignatureVerification();
  Venmo.authorize(fragment);
  verify(fragment).sendAnalyticsEvent("String_Node_Str");
}

Fixed version (ground truth):
@Test(timeout=1000) @SmallTest public void performAppSwitch_sendsAnalyticsEventWhenStarted(){
  Configuration configuration=getConfiguration();
  when(configuration.getVenmoState()).thenReturn("String_Node_Str");
  BraintreeFragment fragment=getMockFragment(mActivity,configuration);
  doNothing().when(fragment).sendAnalyticsEvent(anyString());
  doNothing().when(fragment).startActivityForResult(any(Intent.class),anyInt());
  ActivityInfo activityInfo=new ActivityInfo();
  activityInfo.packageName="String_Node_Str";
  ResolveInfo resolveInfo=new ResolveInfo();
  resolveInfo.activityInfo=activityInfo;
  PackageManager packageManager=mock(PackageManager.class);
  when(packageManager.queryIntentActivities(any(Intent.class),anyInt())).thenReturn(Collections.singletonList(resolveInfo));
  Context context=mock(Context.class);
  when(context.getPackageManager()).thenReturn(packageManager);
  when(fragment.getApplicationContext()).thenReturn(context);
  disableSignatureVerification();
  Venmo.authorize(fragment);
  verify(fragment).sendAnalyticsEvent("String_Node_Str");
}
Program: 165035
Project: 165035
Buggy source:
@Test(timeout=1000) @SmallTest public void performAppSwitch_appSwitchesWithVenmoLaunchIntent(){
  ArgumentCaptor<Intent> launchIntentCaptor=ArgumentCaptor.forClass(Intent.class);
  Configuration configuration=getConfiguration();
  when(configuration.getVenmoState()).thenReturn("String_Node_Str");
  BraintreeFragment fragment=getMockFragment(mActivity,configuration);
  doNothing().when(fragment).sendAnalyticsEvent(anyString());
  doNothing().when(fragment).startActivityForResult(any(Intent.class),anyInt());
  ActivityInfo activityInfo=new ActivityInfo();
  activityInfo.packageName="String_Node_Str";
  ResolveInfo resolveInfo=new ResolveInfo();
  resolveInfo.activityInfo=activityInfo;
  PackageManager packageManager=mock(PackageManager.class);
  when(packageManager.queryIntentActivities(any(Intent.class),anyInt())).thenReturn(Collections.singletonList(resolveInfo));
  Context context=mock(Context.class);
  when(context.getPackageManager()).thenReturn(packageManager);
  when(fragment.getContext()).thenReturn(context);
  disableSignatureVerification();
  Venmo.authorize(fragment);
  verify(fragment).startActivityForResult(launchIntentCaptor.capture(),eq(Venmo.VENMO_REQUEST_CODE));
  Intent launchIntent=launchIntentCaptor.getValue();
  assertEquals("String_Node_Str",launchIntent.getComponent().flattenToString());
}

Fixed version (ground truth):
@Test(timeout=1000) @SmallTest public void performAppSwitch_appSwitchesWithVenmoLaunchIntent(){
  ArgumentCaptor<Intent> launchIntentCaptor=ArgumentCaptor.forClass(Intent.class);
  Configuration configuration=getConfiguration();
  when(configuration.getVenmoState()).thenReturn("String_Node_Str");
  BraintreeFragment fragment=getMockFragment(mActivity,configuration);
  doNothing().when(fragment).sendAnalyticsEvent(anyString());
  doNothing().when(fragment).startActivityForResult(any(Intent.class),anyInt());
  ActivityInfo activityInfo=new ActivityInfo();
  activityInfo.packageName="String_Node_Str";
  ResolveInfo resolveInfo=new ResolveInfo();
  resolveInfo.activityInfo=activityInfo;
  PackageManager packageManager=mock(PackageManager.class);
  when(packageManager.queryIntentActivities(any(Intent.class),anyInt())).thenReturn(Collections.singletonList(resolveInfo));
  Context context=mock(Context.class);
  when(context.getPackageManager()).thenReturn(packageManager);
  when(fragment.getApplicationContext()).thenReturn(context);
  disableSignatureVerification();
  Venmo.authorize(fragment);
  verify(fragment).startActivityForResult(launchIntentCaptor.capture(),eq(Venmo.VENMO_REQUEST_CODE));
  Intent launchIntent=launchIntentCaptor.getValue();
  assertEquals("String_Node_Str",launchIntent.getComponent().flattenToString());
}
Program: 165036
Project: 165036
Buggy source:
private static void processRequests(BraintreeFragment fragment){
  if (sRequestQueue.size() == 0) {
    return;
  }
  ArrayList<AnalyticsRequest> requests=new ArrayList<>();
  requests.addAll(sRequestQueue);
  sRequestQueue.clear();
  try {
    JSONArray events=new JSONArray();
    for (    AnalyticsRequest request : requests) {
      try {
        JSONObject event=new JSONObject().put(KIND_KEY,request.getEvent()).put(TIMESTAMP_KEY,request.getTimestamp());
        events.put(event);
      }
 catch (      JSONException ignored) {
      }
    }
    JSONObject fullMetaData=generateRequestBody(fragment.getContext(),requests.get(0).getIntegrationType());
    String requestBody=new JSONObject().put(ANALYTICS_KEY,events).put(META_KEY,fullMetaData).toString();
    fragment.getHttpClient().post(fragment.getConfiguration().getAnalytics().getUrl(),requestBody,null);
  }
 catch (  JSONException ignored) {
  }
}

Fixed version (ground truth):
private static void processRequests(BraintreeFragment fragment){
  if (sRequestQueue.size() == 0) {
    return;
  }
  ArrayList<AnalyticsRequest> requests=new ArrayList<>();
  requests.addAll(sRequestQueue);
  sRequestQueue.clear();
  try {
    JSONArray events=new JSONArray();
    for (    AnalyticsRequest request : requests) {
      try {
        JSONObject event=new JSONObject().put(KIND_KEY,request.getEvent()).put(TIMESTAMP_KEY,request.getTimestamp());
        events.put(event);
      }
 catch (      JSONException ignored) {
      }
    }
    JSONObject fullMetaData=generateRequestBody(fragment.getApplicationContext(),requests.get(0).getIntegrationType());
    String requestBody=new JSONObject().put(ANALYTICS_KEY,events).put(META_KEY,fullMetaData).toString();
    fragment.getHttpClient().post(fragment.getConfiguration().getAnalytics().getUrl(),requestBody,null);
  }
 catch (  JSONException ignored) {
  }
}
Program: 165044
Project: 165044
Buggy source:
@Override public void success(String responseBody){
  try {
    ThreeDSecureLookup threeDSecureLookup=ThreeDSecureLookup.fromJson(responseBody);
    if (threeDSecureLookup.getAcsUrl() != null) {
      Intent intent=new Intent(fragment.getContext(),ThreeDSecureWebViewActivity.class).putExtra(ThreeDSecureWebViewActivity.EXTRA_THREE_D_SECURE_LOOKUP,threeDSecureLookup);
      fragment.startActivityForResult(intent,THREE_D_SECURE_REQUEST_CODE);
    }
 else {
      fragment.postCallback(threeDSecureLookup.getCard());
    }
  }
 catch (  JSONException e) {
    fragment.postCallback(e);
  }
}

Fixed version (ground truth):
@Override public void success(String responseBody){
  try {
    ThreeDSecureLookup threeDSecureLookup=ThreeDSecureLookup.fromJson(responseBody);
    if (threeDSecureLookup.getAcsUrl() != null) {
      Intent intent=new Intent(fragment.getApplicationContext(),ThreeDSecureWebViewActivity.class).putExtra(ThreeDSecureWebViewActivity.EXTRA_THREE_D_SECURE_LOOKUP,threeDSecureLookup);
      fragment.startActivityForResult(intent,THREE_D_SECURE_REQUEST_CODE);
    }
 else {
      fragment.postCallback(threeDSecureLookup.getCard());
    }
  }
 catch (  JSONException e) {
    fragment.postCallback(e);
  }
}
Program: 165045
Project: 165045
Buggy source:
@Override public void onConfigurationFetched(Configuration configuration){
  try {
    JSONObject params=new JSONObject().put("String_Node_Str",configuration.getMerchantAccountId()).put("String_Node_Str",amount);
    fragment.getHttpClient().post(TokenizationClient.versionedPath(TokenizationClient.PAYMENT_METHOD_ENDPOINT + "String_Node_Str" + nonce+ "String_Node_Str"),params.toString(),new HttpResponseCallback(){
      @Override public void success(      String responseBody){
        try {
          ThreeDSecureLookup threeDSecureLookup=ThreeDSecureLookup.fromJson(responseBody);
          if (threeDSecureLookup.getAcsUrl() != null) {
            Intent intent=new Intent(fragment.getContext(),ThreeDSecureWebViewActivity.class).putExtra(ThreeDSecureWebViewActivity.EXTRA_THREE_D_SECURE_LOOKUP,threeDSecureLookup);
            fragment.startActivityForResult(intent,THREE_D_SECURE_REQUEST_CODE);
          }
 else {
            fragment.postCallback(threeDSecureLookup.getCard());
          }
        }
 catch (        JSONException e) {
          fragment.postCallback(e);
        }
      }
      @Override public void failure(      Exception exception){
        fragment.postCallback(exception);
      }
    }
);
  }
 catch (  JSONException e) {
    fragment.postCallback(e);
  }
}

Fixed version (ground truth):
@Override public void onConfigurationFetched(Configuration configuration){
  try {
    JSONObject params=new JSONObject().put("String_Node_Str",configuration.getMerchantAccountId()).put("String_Node_Str",amount);
    fragment.getHttpClient().post(TokenizationClient.versionedPath(TokenizationClient.PAYMENT_METHOD_ENDPOINT + "String_Node_Str" + nonce+ "String_Node_Str"),params.toString(),new HttpResponseCallback(){
      @Override public void success(      String responseBody){
        try {
          ThreeDSecureLookup threeDSecureLookup=ThreeDSecureLookup.fromJson(responseBody);
          if (threeDSecureLookup.getAcsUrl() != null) {
            Intent intent=new Intent(fragment.getApplicationContext(),ThreeDSecureWebViewActivity.class).putExtra(ThreeDSecureWebViewActivity.EXTRA_THREE_D_SECURE_LOOKUP,threeDSecureLookup);
            fragment.startActivityForResult(intent,THREE_D_SECURE_REQUEST_CODE);
          }
 else {
            fragment.postCallback(threeDSecureLookup.getCard());
          }
        }
 catch (        JSONException e) {
          fragment.postCallback(e);
        }
      }
      @Override public void failure(      Exception exception){
        fragment.postCallback(exception);
      }
    }
);
  }
 catch (  JSONException e) {
    fragment.postCallback(e);
  }
}
Program: 165046
Project: 165046
Buggy source:
/** 
 * Start the Pay With Venmo flow. This will app switch to the Venmo app. If the Venmo app is not available,   {@link AppSwitchNotAvailableException} will be sent to{@link com.braintreepayments.api.interfaces.BraintreeErrorListener#onUnrecoverableError(Throwable)}.
 * @param fragment {@link BraintreeFragment}
 */
public static void authorize(final BraintreeFragment fragment){
  fragment.sendAnalyticsEvent("String_Node_Str");
  fragment.waitForConfiguration(new ConfigurationListener(){
    @Override public void onConfigurationFetched(    Configuration configuration){
      if (isAvailable(fragment.getContext(),configuration)) {
        fragment.startActivityForResult(Venmo.getLaunchIntent(configuration),VENMO_REQUEST_CODE);
        fragment.sendAnalyticsEvent("String_Node_Str");
      }
 else {
        fragment.sendAnalyticsEvent("String_Node_Str");
        fragment.postCallback(new AppSwitchNotAvailableException("String_Node_Str"));
      }
    }
  }
);
}

Fixed version (ground truth):
/** 
 * Start the Pay With Venmo flow. This will app switch to the Venmo app. If the Venmo app is not available,   {@link AppSwitchNotAvailableException} will be sent to{@link com.braintreepayments.api.interfaces.BraintreeErrorListener#onUnrecoverableError(Throwable)}.
 * @param fragment {@link BraintreeFragment}
 */
public static void authorize(final BraintreeFragment fragment){
  fragment.sendAnalyticsEvent("String_Node_Str");
  fragment.waitForConfiguration(new ConfigurationListener(){
    @Override public void onConfigurationFetched(    Configuration configuration){
      if (isAvailable(fragment.getApplicationContext(),configuration)) {
        fragment.startActivityForResult(Venmo.getLaunchIntent(configuration),VENMO_REQUEST_CODE);
        fragment.sendAnalyticsEvent("String_Node_Str");
      }
 else {
        fragment.sendAnalyticsEvent("String_Node_Str");
        fragment.postCallback(new AppSwitchNotAvailableException("String_Node_Str"));
      }
    }
  }
);
}
Program: 165047
Project: 165047
Buggy source:
@Override public void onConfigurationFetched(Configuration configuration){
  if (isAvailable(fragment.getContext(),configuration)) {
    fragment.startActivityForResult(Venmo.getLaunchIntent(configuration),VENMO_REQUEST_CODE);
    fragment.sendAnalyticsEvent("String_Node_Str");
  }
 else {
    fragment.sendAnalyticsEvent("String_Node_Str");
    fragment.postCallback(new AppSwitchNotAvailableException("String_Node_Str"));
  }
}

Fixed version (ground truth):
@Override public void onConfigurationFetched(Configuration configuration){
  if (isAvailable(fragment.getApplicationContext(),configuration)) {
    fragment.startActivityForResult(Venmo.getLaunchIntent(configuration),VENMO_REQUEST_CODE);
    fragment.sendAnalyticsEvent("String_Node_Str");
  }
 else {
    fragment.sendAnalyticsEvent("String_Node_Str");
    fragment.postCallback(new AppSwitchNotAvailableException("String_Node_Str"));
  }
}
Program: 165050
Project: 165050
Buggy source:
/** 
 * Set properties specific to an AuthorizationRequest
 */
private static AuthorizationRequest buildPayPalAuthorizationConfiguration(Context context,Configuration configuration,String clientKeyString) throws ConfigurationException {
  PayPalConfiguration payPalConfiguration=configuration.getPayPal();
  validatePayPalConfiguration(configuration);
  return populateCommonData(new AuthorizationRequest(context),context,configuration).privacyUrl(payPalConfiguration.getPrivacyUrl()).userAgreementUrl(payPalConfiguration.getUserAgreementUrl()).withScopeValue(SCOPE_FUTURE_PAYMENTS).withScopeValue(SCOPE_EMAIL).withAdditionalPayloadAttribute(PAYLOAD_KEY_CLIENT_TOKEN,clientKeyString);
}

Fixed version (ground truth):
/** 
 * Set properties specific to an AuthorizationRequest
 */
private static AuthorizationRequest buildPayPalAuthorizationConfiguration(Context context,Configuration configuration,String clientKeyString) throws ConfigurationException {
  PayPalConfiguration payPalConfiguration=configuration.getPayPal();
  validatePayPalConfiguration(configuration);
  return populateCommonData(new AuthorizationRequest(context),context,configuration).privacyUrl(payPalConfiguration.getPrivacyUrl()).userAgreementUrl(payPalConfiguration.getUserAgreementUrl()).withScopeValue(SCOPE_FUTURE_PAYMENTS).withScopeValue(SCOPE_EMAIL).withAdditionalPayloadAttribute(PAYLOAD_CLIENT_TOKEN_KEY,clientKeyString);
}
Program: 165051
Project: 165051
Buggy source:
@Override protected void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  setContentView(R.layout.paypal);
  Bundle extras=getIntent().getExtras();
  String extraClientToken=extras.getString(BraintreePaymentActivity.EXTRA_CLIENT_TOKEN);
  extraClientToken="String_Node_Str";
  mLog=(TextView)findViewById(R.id.log);
  mBillingAgreementButton=(Button)findViewById(R.id.paypal_billing_agreement_button);
  mFuturePaymentAddressScopeButton=(Button)findViewById(R.id.paypal_future_payment_address_scope_button);
  mFuturePaymentButton=(Button)findViewById(R.id.paypal_future_payment_button);
  mSinglePaymentButton=(Button)findViewById(R.id.paypal_single_payment_button);
  mCancelButton=(Button)findViewById(R.id.cancel_button);
  enableButtons(true);
  try {
    mBraintreeFragment=BraintreeFragment.newInstance(this,extraClientToken);
  }
 catch (  InvalidArgumentException e) {
    e.printStackTrace();
  }
}

Fixed version (ground truth):
@Override protected void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  setContentView(R.layout.paypal);
  Bundle extras=getIntent().getExtras();
  String extraClientToken=extras.getString(BraintreePaymentActivity.EXTRA_CLIENT_TOKEN);
  mLog=(TextView)findViewById(R.id.log);
  mBillingAgreementButton=(Button)findViewById(R.id.paypal_billing_agreement_button);
  mFuturePaymentAddressScopeButton=(Button)findViewById(R.id.paypal_future_payment_address_scope_button);
  mFuturePaymentButton=(Button)findViewById(R.id.paypal_future_payment_button);
  mSinglePaymentButton=(Button)findViewById(R.id.paypal_single_payment_button);
  mCancelButton=(Button)findViewById(R.id.cancel_button);
  enableButtons(true);
  try {
    mBraintreeFragment=BraintreeFragment.newInstance(this,extraClientToken);
  }
 catch (  InvalidArgumentException e) {
    e.printStackTrace();
  }
}
Program: 165052
Project: 165052
Buggy source:
private void sendNonceToServer(String nonce){
  ApiClient apiClient=new RestAdapter.Builder().setEndpoint(Settings.getEnvironmentUrl(this)).setRequestInterceptor(new ApiClientRequestInterceptor()).build().create(ApiClient.class);
  String merchantAccountId=null;
  boolean requireThreeDSecure=false;
  if (Settings.isThreeDSecureEnabled(this)) {
    merchantAccountId=Settings.getThreeDSecureMerchantAccountId(this);
    requireThreeDSecure=Settings.isThreeDSecureRequired(this);
  }
  apiClient.createTransaction(nonce,merchantAccountId,requireThreeDSecure,new Callback<Transaction>(){
    @Override public void success(    Transaction transaction,    Response response){
      if (TextUtils.isEmpty(transaction.getMessage())) {
        showMessage("String_Node_Str");
      }
 else {
        showMessage(transaction.getMessage());
      }
    }
    @Override public void failure(    RetrofitError error){
      showMessage("String_Node_Str" + error.getResponse().getStatus() + "String_Node_Str"+ error.getResponse().getBody());
    }
  }
);
}

Fixed version (ground truth):
private void sendNonceToServer(String nonce){
  Callback<Transaction> callback=new Callback<Transaction>(){
    @Override public void success(    Transaction transaction,    Response response){
      if (TextUtils.isEmpty(transaction.getMessage())) {
        showMessage("String_Node_Str");
      }
 else {
        showMessage(transaction.getMessage());
      }
    }
    @Override public void failure(    RetrofitError error){
      showMessage("String_Node_Str" + error.getResponse().getStatus() + "String_Node_Str"+ error.getResponse().getBody());
    }
  }
;
  ApiClient apiClient=new RestAdapter.Builder().setEndpoint(Settings.getEnvironmentUrl(this)).setRequestInterceptor(new ApiClientRequestInterceptor()).build().create(ApiClient.class);
  if (Settings.isThreeDSecureEnabled(this) && Settings.isThreeDSecureRequired(this)) {
    apiClient.createTransaction(nonce,Settings.getThreeDSecureMerchantAccountId(this),true,callback);
  }
 else   if (Settings.isThreeDSecureEnabled(this)) {
    apiClient.createTransaction(nonce,Settings.getThreeDSecureMerchantAccountId(this),callback);
  }
 else {
    apiClient.createTransaction(nonce,callback);
  }
}
Program: 165053
Project: 165053
Buggy source:
@Test(timeout=10000) @MediumTest public void createTransaction_createsATransaction() throws InterruptedException {
  mApiClient.createTransaction("String_Node_Str",null,false,new Callback<Transaction>(){
    @Override public void success(    Transaction transaction,    Response response){
      assertNotNull(transaction.getMessage());
      mCountDownLatch.countDown();
    }
    @Override public void failure(    RetrofitError error){
      fail(error.getMessage());
    }
  }
);
  mCountDownLatch.await();
}

Fixed version (ground truth):
@Test(timeout=10000) @MediumTest public void createTransaction_createsATransaction() throws InterruptedException {
  mApiClient.createTransaction("String_Node_Str",new Callback<Transaction>(){
    @Override public void success(    Transaction transaction,    Response response){
      assertTrue(transaction.getMessage().contains("String_Node_Str") && transaction.getMessage().contains("String_Node_Str"));
      mCountDownLatch.countDown();
    }
    @Override public void failure(    RetrofitError error){
      fail(error.getMessage());
    }
  }
);
  mCountDownLatch.await();
}
Program: 165054
Project: 165054
Buggy source:
@Override public void success(Transaction transaction,Response response){
  assertEquals("String_Node_Str",transaction.getMessage());
  mCountDownLatch.countDown();
}

Fixed version (ground truth):
@Override public void success(Transaction transaction,Response response){
  assertTrue(transaction.getMessage().contains("String_Node_Str") && transaction.getMessage().contains("String_Node_Str"));
  mCountDownLatch.countDown();
}
Program: 165056
Project: 165056
Buggy source:
protected boolean isAndroidPayEnabled(){
  try {
    return (mConfiguration.getAndroidPay().isEnabled() && GoogleApiAvailability.getInstance().isGooglePlayServicesAvailable(mContext) == ConnectionResult.SUCCESS);
  }
 catch (  Exception e) {
    return false;
  }
}

Fixed version (ground truth):
protected boolean isAndroidPayEnabled(){
  try {
    return (mConfiguration.getAndroidPay().isEnabled() && GoogleApiAvailability.getInstance().isGooglePlayServicesAvailable(mContext) == ConnectionResult.SUCCESS);
  }
 catch (  NoClassDefFoundError e) {
    return false;
  }
}
Program: 165057
Project: 165057
Buggy source:
protected HttpURLConnection init(String url) throws IOException {
  log("String_Node_Str" + url);
  HttpURLConnection connection=(HttpURLConnection)new URL(url).openConnection();
  if (connection instanceof HttpsURLConnection) {
    ((HttpsURLConnection)connection).setSSLSocketFactory(HttpRequest.getSslSocketFactory());
  }
  connection.setRequestProperty("String_Node_Str","String_Node_Str");
  connection.setRequestProperty("String_Node_Str",USER_AGENT);
  connection.setRequestProperty("String_Node_Str",Locale.getDefault().getLanguage());
  connection.setConnectTimeout(mConnectTimeout);
  return connection;
}

Fixed version (ground truth):
protected HttpURLConnection init(String url) throws IOException {
  log("String_Node_Str" + url);
  HttpURLConnection connection=(HttpURLConnection)new URL(url).openConnection();
  if (connection instanceof HttpsURLConnection) {
    ((HttpsURLConnection)connection).setSSLSocketFactory(HttpRequest.getSslSocketFactory());
  }
  connection.setRequestProperty("String_Node_Str","String_Node_Str");
  connection.setRequestProperty("String_Node_Str",HttpRequest.getUserAgent());
  connection.setRequestProperty("String_Node_Str",Locale.getDefault().getLanguage());
  connection.setConnectTimeout(mConnectTimeout);
  return connection;
}
Program: 165058
Project: 165058
Buggy source:
protected void init(ThreeDSecureWebViewActivity activity){
  setId(android.R.id.widget_frame);
  WebSettings settings=getSettings();
  settings.setUserAgentString(HttpRequest.USER_AGENT);
  settings.setCacheMode(WebSettings.LOAD_CACHE_ELSE_NETWORK);
  settings.setSupportMultipleWindows(true);
  settings.setJavaScriptEnabled(true);
  settings.setBuiltInZoomControls(true);
  disableOnScreenZoomControls(settings);
  setWebChromeClient(new ThreeDSecureWebChromeClient(activity));
  setWebViewClient(new ThreeDSecureWebViewClient(activity));
}

Fixed version (ground truth):
protected void init(ThreeDSecureWebViewActivity activity){
  setId(android.R.id.widget_frame);
  WebSettings settings=getSettings();
  settings.setUserAgentString(HttpRequest.getUserAgent());
  settings.setCacheMode(WebSettings.LOAD_CACHE_ELSE_NETWORK);
  settings.setSupportMultipleWindows(true);
  settings.setJavaScriptEnabled(true);
  settings.setBuiltInZoomControls(true);
  disableOnScreenZoomControls(settings);
  setWebChromeClient(new ThreeDSecureWebChromeClient(activity));
  setWebViewClient(new ThreeDSecureWebViewClient(activity));
}
Program: 165060
Project: 165060
Buggy source:
@Override public void onTextChanged(Editable editable){
  if (!mIsSubmitting) {
    if (areFieldsValid()) {
      setEnabledSubmitButtonStyle();
    }
  }
}

Fixed version (ground truth):
@Override public void onTextChanged(Editable editable){
  if (!mIsSubmitting) {
    if (areFieldsValid()) {
      setEnabledSubmitButtonStyle();
    }
 else {
      setDisabledSubmitButtonStyle();
    }
  }
}
Program: 165061
Project: 165061
Buggy source:
private Map<String,Integer> buildWordFrequencies(final List<String> texts,final WordTokenizer tokenizer){
  final Map<String,Integer> wordFrequencies=new HashMap<>();
  for (  final String text : texts) {
    final List<String> words=filter(tokenizer.tokenize(text));
    for (    final String word : words) {
      final String normalized=normalize(word);
      if (!wordFrequencies.containsKey(normalized)) {
        wordFrequencies.put(normalized,1);
      }
      wordFrequencies.put(normalized,wordFrequencies.get(normalized) + 1);
    }
  }
  return wordFrequencies;
}

Fixed version (ground truth):
private Map<String,Integer> buildWordFrequencies(final List<String> texts,final WordTokenizer tokenizer){
  final Map<String,Integer> wordFrequencies=new HashMap<>();
  for (  final String text : texts) {
    final List<String> words=filter(tokenizer.tokenize(text));
    for (    final String word : words) {
      final String normalized=normalize(word);
      wordFrequencies.put(normalized,wordFrequencies.getOrDefault(normalized,0) + 1);
    }
  }
  return wordFrequencies;
}
Program: 165063
Project: 165063
Buggy source:
private int maxFrequency(final Collection<WordFrequency> wordFrequencies){
  return Lambda.max(wordFrequencies,on(WordFrequency.class).getFrequency());
}

Fixed version (ground truth):
private int maxFrequency(final Collection<WordFrequency> wordFrequencies){
  if (wordFrequencies.isEmpty()) {
    return 1;
  }
  return Lambda.max(wordFrequencies,on(WordFrequency.class).getFrequency());
}
Program: 165064
Project: 165064
Buggy source:
/** 
 * try to place in center, build out in a spiral trying to place words for N steps
 * @param word
 */
protected void place(final Word word,final int startX,final int startY){
  final Graphics graphics=this.bufferedImage.getGraphics();
  final int maxRadius=width;
  for (int r=0; r < maxRadius; r+=2) {
    for (int x=-r; x <= r && startX + x >= 0 && startX + x < width; x++) {
      boolean placed=false;
      word.setX(startX + x);
      int y1=(int)Math.sqrt(r * r - x * x);
      if (startY + y1 >= 0 && startY + y1 < height) {
        word.setY(startY + y1);
        placed=tryToPlace(word);
      }
      int y2=-y1;
      if (!placed && startY + y2 >= 0 && startY + y2 < height) {
        word.setY(startY + y2);
        placed=tryToPlace(word);
      }
      if (placed) {
        collisionRaster.mask(word.getCollisionRaster(),word.getX(),word.getY());
        graphics.drawImage(word.getBufferedImage(),word.getX(),word.getY(),null);
        return;
      }
    }
  }
  LOGGER.info("String_Node_Str" + word.getWord());
  skipped.add(word);
}

Fixed version (ground truth):
/** 
 * try to place in center, build out in a spiral trying to place words for N steps
 * @param word
 */
protected void place(final Word word,final int startX,final int startY){
  final Graphics graphics=this.bufferedImage.getGraphics();
  final int maxRadius=width;
  for (int r=0; r < maxRadius; r+=2) {
    for (int x=-r; x <= r; x++) {
      if (startX + x < 0) {
        continue;
      }
      if (startX + x >= width) {
        continue;
      }
      boolean placed=false;
      word.setX(startX + x);
      int y1=(int)Math.sqrt(r * r - x * x);
      if (startY + y1 >= 0 && startY + y1 < height) {
        word.setY(startY + y1);
        placed=tryToPlace(word);
      }
      int y2=-y1;
      if (!placed && startY + y2 >= 0 && startY + y2 < height) {
        word.setY(startY + y2);
        placed=tryToPlace(word);
      }
      if (placed) {
        collisionRaster.mask(word.getCollisionRaster(),word.getX(),word.getY());
        graphics.drawImage(word.getBufferedImage(),word.getX(),word.getY(),null);
        return;
      }
    }
  }
  LOGGER.info("String_Node_Str" + word.getWord());
  skipped.add(word);
}
Program: 165065
Project: 165065
Buggy source:
public File outputFile(File outputDir,String layoutName){
  String className=generator.getClassName(layoutName);
  return new File(packageToFile(outputDir,packageName),className + "String_Node_Str");
}

Fixed version (ground truth):
public File outputFile(File outputDir,File layoutFile){
  return outputFile(outputDir,FileUtils.stripExtension(layoutFile.getName()));
}
Program: 165066
Project: 165066
Buggy source:
@NotNull private static Set<VirtualFile> getLayoutFiles(@NotNull Project project,@NotNull List<? extends VFileEvent> events){
  final Set<VirtualFile> result=new HashSet<VirtualFile>();
  for (  VFileEvent event : events) {
    final VirtualFile file=event.getFile();
    if (file != null && HoldrAndroidUtils.isUserLayoutFile(project,file)) {
      result.add(file);
    }
  }
  return result;
}

Fixed version (ground truth):
@NotNull private static Set<VirtualFile> getLayoutFiles(@NotNull Project project,@NotNull List<? extends VFileEvent> events){
  final Set<VirtualFile> result=new HashSet<VirtualFile>();
  for (  VFileEvent event : events) {
    if (event instanceof VFilePropertyChangeEvent && ((VFilePropertyChangeEvent)event).getPropertyName().equals("String_Node_Str")) {
      continue;
    }
    final VirtualFile file=event.getFile();
    if (file != null && HoldrAndroidUtils.isUserLayoutFile(project,file)) {
      result.add(file);
    }
  }
  return result;
}
Program: 165067
Project: 165067
Buggy source:
@Override @NotNull public Set<Class> getExtraProjectModelClasses(){
  return Sets.<Class>newHashSet(AndroidProject.class);
}

Fixed version (ground truth):
@Override @NotNull public Set<Class> getExtraProjectModelClasses(){
  return Sets.<Class>newHashSet(AndroidProject.class,HoldrCompiler.class);
}
Program: 165069
Project: 165069
Buggy source:
@Override public SignatureVisitor visitTypeArgument(char wildcard){
  l++;
  if (sb.length() == 0) {
    String t=types.remove(types.size() - 1);
    if (t.endsWith("String_Node_Str")) {
      t=t.substring(0,t.length() - 1);
    }
    sb.append(t);
    sb.append("String_Node_Str");
  }
  if (wildcard != '=') {
    sb.append(wildcard);
  }
  return this;
}

Fixed version (ground truth):
@Override public SignatureVisitor visitTypeArgument(char wildcard){
  l++;
  if (sb.length() == 0) {
    String t=types.remove(types.size() - 1);
    if (t.endsWith("String_Node_Str")) {
      t=t.substring(0,t.length() - 1);
    }
    if (t.endsWith("String_Node_Str")) {
      t=t.substring(0,t.length() - 1);
      sb.append(t);
    }
 else {
      sb.append(t);
      sb.append("String_Node_Str");
    }
  }
  if (wildcard != '=') {
    sb.append(wildcard);
  }
  return this;
}
Program: 165070
Project: 165070
Buggy source:
public DefaultPropertyNameMatcher(String column,int from,boolean exactMatch,boolean caseSensitive){
  this.column=requireNonNull("String_Node_Str",column);
  this.from=from;
  this.exactMatch=exactMatch;
  this.caseSensitive=caseSensitive;
}

Fixed version (ground truth):
public DefaultPropertyNameMatcher(String column,int from,boolean exactMatch,boolean caseSensitive){
  if (from > column.length()) {
    throw new IndexOutOfBoundsException("String_Node_Str" + from + "String_Node_Str"+ column.length());
  }
  this.column=requireNonNull("String_Node_Str",column);
  this.from=from;
  this.exactMatch=exactMatch;
  this.caseSensitive=caseSensitive;
}
Program: 165071
Project: 165071
Buggy source:
@Override public List<PropertyNameMatcherKeyValuePair> keyValuePairs(){
  List<PropertyNameMatcherKeyValuePair> keyValuePairs=new ArrayList<PropertyNameMatcherKeyValuePair>();
  keyValuePairs.add(new PropertyNameMatcherKeyValuePair(new DefaultPropertyNameMatcher(column,from,exactMatch,caseSensitive),new DefaultPropertyNameMatcher("String_Node_Str",0,exactMatch,caseSensitive)));
  for (int i=column.length() - 1; i >= from; i--) {
    char c=column.charAt(i);
    if (isSeparatorChar(c)) {
      PropertyNameMatcher key=new DefaultPropertyNameMatcher(column.substring(from,i),0,exactMatch,caseSensitive);
      PropertyNameMatcher value=new DefaultPropertyNameMatcher(column,from + i + 1,exactMatch,caseSensitive);
      keyValuePairs.add(new PropertyNameMatcherKeyValuePair(key,value));
    }
  }
  return keyValuePairs;
}

Fixed version (ground truth):
@Override public List<PropertyNameMatcherKeyValuePair> keyValuePairs(){
  List<PropertyNameMatcherKeyValuePair> keyValuePairs=new ArrayList<PropertyNameMatcherKeyValuePair>();
  int f=from;
  for (; f < column.length() && isSeparatorChar(column.charAt(f)); f++)   ;
  keyValuePairs.add(new PropertyNameMatcherKeyValuePair(new DefaultPropertyNameMatcher(column,f,exactMatch,caseSensitive),new DefaultPropertyNameMatcher("String_Node_Str",0,exactMatch,caseSensitive)));
  for (int i=column.length() - 1; i >= f; i--) {
    char c=column.charAt(i);
    if (isSeparatorChar(c)) {
      PropertyNameMatcher key=new DefaultPropertyNameMatcher(column.substring(f,i),0,exactMatch,caseSensitive);
      PropertyNameMatcher value=new DefaultPropertyNameMatcher(column,i + 1,exactMatch,caseSensitive);
      keyValuePairs.add(new PropertyNameMatcherKeyValuePair(key,value));
    }
  }
  return keyValuePairs;
}