nus-yam/ex-repair huggingface dataset:
Program: 16851
Project: 16851
Buggy source:
/** 
 * Recursively assemble a set of all the   {@code InputKind}s available on this Splunk instance.   {@code subPath} is a list of URL components *after* ".../data/inputs/".So a call to assemble all inputs should pass an empty list as  {@code subPath}. If you wanted only TCP inputs, you would pass a list with one element,   {@code "tcp"}.
 * @param subPath A list of strings giving the components of the URL after "data/inputs/".
 * @return A set of {@code InputKind} objects.
 */
private Set<InputKind> assembleInputKindSet(List<String> subPath){
  Set<InputKind> kinds=new HashSet<InputKind>();
  ResponseMessage response=service.get(this.path + "String_Node_Str" + Util.join("String_Node_Str",subPath));
  AtomFeed feed=AtomFeed.parseStream(response.getContent());
  for (  AtomEntry entry : feed.entries) {
    String relpath=itemKey(entry);
    boolean hasCreateLink=false;
    for (    String linkName : entry.links.keySet()) {
      if (linkName.equals("String_Node_Str")) {
        hasCreateLink=true;
      }
    }
    List<String> thisSubPath=new ArrayList<String>(subPath);
    thisSubPath.add(relpath);
    if (entry.title.equals("String_Node_Str") || Util.join("String_Node_Str",thisSubPath).equals("String_Node_Str")) {
      continue;
    }
 else     if (hasCreateLink) {
      InputKind newKind=InputKind.create(relpath);
      kinds.add(newKind);
    }
 else {
      Set<InputKind> subKinds=assembleInputKindSet(thisSubPath);
      kinds.addAll(subKinds);
    }
  }
  return kinds;
}

Fixed version (ground truth):
/** 
 * Recursively assemble a set of all the   {@code InputKind}s available on this Splunk instance.   {@code subPath} is a list of URL components *after* ".../data/inputs/".So a call to assemble all inputs should pass an empty list as  {@code subPath}. If you wanted only TCP inputs, you would pass a list with one element,   {@code "tcp"}.
 * @param subPath A list of strings giving the components of the URL after "data/inputs/".
 * @return A set of {@code InputKind} objects.
 */
private Set<InputKind> assembleInputKindSet(List<String> subPath){
  Set<InputKind> kinds=new HashSet<InputKind>();
  ResponseMessage response=service.get(this.path + "String_Node_Str" + Util.join("String_Node_Str",subPath));
  AtomFeed feed=AtomFeed.parseStream(response.getContent());
  for (  AtomEntry entry : feed.entries) {
    String itemKeyName=itemKey(entry);
    boolean hasCreateLink=false;
    for (    String linkName : entry.links.keySet()) {
      if (linkName.equals("String_Node_Str")) {
        hasCreateLink=true;
      }
    }
    List<String> thisSubPath=new ArrayList<String>(subPath);
    thisSubPath.add(itemKeyName);
    String relpath=Util.join("String_Node_Str",thisSubPath);
    if (relpath.equals("String_Node_Str") || relpath.equals("String_Node_Str")) {
      continue;
    }
 else     if (hasCreateLink) {
      InputKind newKind=InputKind.createFromRelativePath(relpath);
      kinds.add(newKind);
    }
 else {
      Set<InputKind> subKinds=assembleInputKindSet(thisSubPath);
      kinds.addAll(subKinds);
    }
  }
  return kinds;
}
Program: 16852
Project: 16852
Buggy source:
private InputKind(String relpath,Class inputClass){
  this(relpath,inputClass,relpath);
}

Fixed version (ground truth):
private InputKind(String relpath,Class<? extends Input> inputClass){
  this(relpath,inputClass,relpath);
}
Program: 16853
Project: 16853
Buggy source:
/** 
 * @return String representing the kind of this InputKind.
 */
String getKind(){
  return kind;
}

Fixed version (ground truth):
/** 
 * @return String representing the kind of this InputKind, as it isrepresented in the Atom entry for an input entity.
 */
String getKind(){
  return kind;
}
Program: 16854
Project: 16854
Buggy source:
@Test public void testAttachWith() throws Exception {
  Service service=connect();
  String indexName=temporaryName();
  final Index index=service.getIndexes().create(indexName);
  try {
    final int nEvents=index.getTotalEventCount();
    index.attachWith(new ReceiverBehavior(){
      public void run(      OutputStream stream) throws IOException {
        String s=createTimestamp() + "String_Node_Str";
        stream.write(s.getBytes("String_Node_Str"));
      }
    }
);
    int nTries=10;
    while (nTries > 0) {
      index.refresh();
      if (index.getTotalEventCount() == nEvents + 1) {
        return;
      }
 else {
        nTries-=1;
        Thread.sleep(1000);
      }
    }
    if (nTries == 0) {
      SplunkTestCase.fail("String_Node_Str");
    }
  }
  finally {
    if (index != null && service.versionCompare("String_Node_Str") >= 0) {
      index.remove();
    }
  }
}

Fixed version (ground truth):
@Test public void testAttachWith() throws Exception {
  Service service=connect();
  String indexName=createTemporaryName();
  final Index index=service.getIndexes().create(indexName);
  try {
    final int nEvents=index.getTotalEventCount();
    index.attachWith(new ReceiverBehavior(){
      public void run(      OutputStream stream) throws IOException {
        String s=createTimestamp() + "String_Node_Str";
        stream.write(s.getBytes("String_Node_Str"));
      }
    }
);
    int nTries=10;
    while (nTries > 0) {
      index.refresh();
      if (index.getTotalEventCount() == nEvents + 1) {
        return;
      }
 else {
        nTries-=1;
        Thread.sleep(1000);
      }
    }
    if (nTries == 0) {
      SplunkTestCase.fail("String_Node_Str");
    }
  }
  finally {
    if (index != null && service.versionCompare("String_Node_Str") >= 0) {
      index.remove();
    }
  }
}
Program: 16855
Project: 16855
Buggy source:
@Test public void testDeleteIndex() throws Exception {
  Service service=connect();
  if (service.versionCompare("String_Node_Str") < 0) {
  }
  String indexName=temporaryName();
  EntityCollection<Index> indexes=service.getIndexes();
  Index index=indexes.create(indexName);
  SplunkTestCase.assertTrue(indexes.containsKey(indexName));
  indexes.remove(indexName);
  int nTries=10;
  while (nTries > 0) {
    if (indexes.containsKey(indexName)) {
      Thread.sleep(300);
    }
 else {
      return;
    }
  }
  SplunkTestCase.fail("String_Node_Str");
}

Fixed version (ground truth):
@Test public void testDeleteIndex() throws Exception {
  Service service=connect();
  if (service.versionCompare("String_Node_Str") < 0) {
  }
  String indexName=createTemporaryName();
  EntityCollection<Index> indexes=service.getIndexes();
  Index index=indexes.create(indexName);
  SplunkTestCase.assertTrue(indexes.containsKey(indexName));
  indexes.remove(indexName);
  int nTries=10;
  while (nTries > 0) {
    if (indexes.containsKey(indexName)) {
      Thread.sleep(300);
    }
 else {
      return;
    }
  }
  SplunkTestCase.fail("String_Node_Str");
}
Program: 16857
Project: 16857
Buggy source:
void load(AtomFeed value){
  try {
    super.load(value);
    Constructor ctor=entityClass.getConstructor(new Class[]{Service.class,String.class});
    Object[] args=new Object[2];
    args[0]=service;
    this.entities=new HashMap<String,T>();
    for (    AtomEntry entry : value.entries) {
      args[1]=entry.id;
      T entity=(T)ctor.newInstance(args);
      entity.load(entry);
      this.entities.put(entity.getName(),entity);
    }
  }
 catch (  Exception e) {
    throw new RuntimeException(e.getMessage());
  }
}

Fixed version (ground truth):
void load(AtomFeed value){
  try {
    super.load(value);
    Constructor ctor=entityClass.getConstructor(new Class[]{Service.class,String.class});
    Object[] args=new Object[2];
    args[0]=service;
    this.entities=new HashMap<String,T>();
    for (    AtomEntry entry : value.entries) {
      URL url=new URL(entry.id);
      args[1]=url.getPath();
      T entity=(T)ctor.newInstance(args);
      entity.load(entry);
      this.entities.put(entity.getName(),entity);
    }
  }
 catch (  Exception e) {
    throw new RuntimeException(e.getMessage());
  }
}
Program: 16858
Project: 16858
Buggy source:
public String getVersion(){
  return Value.getString(getContent(),"String_Node_Str",null);
}

Fixed version (ground truth):
public String getVersion(){
  return getString("String_Node_Str",null);
}
Program: 16859
Project: 16859
Buggy source:
public Boolean isConfigured(){
  return Value.getBoolean(getContent(),"String_Node_Str");
}

Fixed version (ground truth):
public boolean isConfigured(){
  return getBoolean("String_Node_Str");
}
Program: 16860
Project: 16860
Buggy source:
public Boolean isManageable(){
  return Value.getBoolean(getContent(),"String_Node_Str");
}

Fixed version (ground truth):
public boolean isManageable(){
  return getBoolean("String_Node_Str");
}
Program: 16861
Project: 16861
Buggy source:
public String getLabel(){
  return Value.getString(getContent(),"String_Node_Str","String_Node_Str");
}

Fixed version (ground truth):
public String getLabel(){
  return getString("String_Node_Str","String_Node_Str");
}
Program: 16862
Project: 16862
Buggy source:
public Boolean getCheckForUpdates(){
  return Value.getBoolean(getContent(),"String_Node_Str");
}

Fixed version (ground truth):
public boolean getCheckForUpdates(){
  return getBoolean("String_Node_Str");
}
Program: 16863
Project: 16863
Buggy source:
public Boolean isVisible(){
  return Value.getBoolean(getContent(),"String_Node_Str");
}

Fixed version (ground truth):
public boolean isVisible(){
  return getBoolean("String_Node_Str");
}
Program: 16864
Project: 16864
Buggy source:
public Boolean isDisabled(){
  return Value.getBoolean(getContent(),"String_Node_Str",false);
}

Fixed version (ground truth):
public boolean isDisabled(){
  return Value.getBoolean(getContent(),"String_Node_Str",false);
}
Program: 16865
Project: 16865
Buggy source:
public TwitterProfile(long id,String screenName,String name,String url,String profileImageUrl,String description,String location,Date createdDate){
  this.id=id;
  this.screenName=screenName;
  this.name=name;
  this.url=url;
  this.profileImageUrl=profileImageUrl;
  this.description=description;
  this.location=location;
  this.createdDate=createdDate;
}

Fixed version (ground truth):
public TwitterProfile(long id,String idStr,String screenName,String name,String url,String profileImageUrl,String description,String location,Date createdDate){
  this.id=id;
  this.idStr=idStr;
  this.screenName=screenName;
  this.name=name;
  this.url=url;
  this.profileImageUrl=profileImageUrl;
  this.description=description;
  this.location=location;
  this.createdDate=createdDate;
}
Program: 16868
Project: 16868
Buggy source:
@Test public void getUserProfile_userId() throws Exception {
  mockServer.expect(requestTo("String_Node_Str")).andExpect(method(GET)).andRespond(withSuccess(jsonResource("String_Node_Str"),APPLICATION_JSON));
  TwitterProfile profile=twitter.userOperations().getUserProfile(12345);
  assertEquals(161064614,profile.getId());
  assertEquals("String_Node_Str",profile.getScreenName());
  assertEquals("String_Node_Str",profile.getName());
  assertEquals("String_Node_Str",profile.getDescription());
  assertEquals("String_Node_Str",profile.getLocation());
  assertEquals("String_Node_Str",profile.getUrl());
  assertEquals("String_Node_Str",profile.getProfileImageUrl());
}

Fixed version (ground truth):
@Test public void getUserProfile_userId() throws Exception {
  mockServer.expect(requestTo("String_Node_Str")).andExpect(method(GET)).andRespond(withSuccess(jsonResource("String_Node_Str"),APPLICATION_JSON));
  TwitterProfile profile=twitter.userOperations().getUserProfile(12345);
  assertEquals(161064614,profile.getId());
  assertEquals("String_Node_Str",profile.getIdStr());
  assertEquals("String_Node_Str",profile.getScreenName());
  assertEquals("String_Node_Str",profile.getName());
  assertEquals("String_Node_Str",profile.getDescription());
  assertEquals("String_Node_Str",profile.getLocation());
  assertEquals("String_Node_Str",profile.getUrl());
  assertEquals("String_Node_Str",profile.getProfileImageUrl());
}
Program: 16870
Project: 16870
Buggy source:
@Test public void getUserProfile_userId_appAuthorization() throws Exception {
  appAuthMockServer.expect(requestTo("String_Node_Str")).andExpect(method(GET)).andExpect(header("String_Node_Str","String_Node_Str")).andRespond(withSuccess(jsonResource("String_Node_Str"),APPLICATION_JSON));
  TwitterProfile profile=appAuthTwitter.userOperations().getUserProfile(12345);
  assertEquals(161064614,profile.getId());
  assertEquals("String_Node_Str",profile.getScreenName());
  assertEquals("String_Node_Str",profile.getName());
  assertEquals("String_Node_Str",profile.getDescription());
  assertEquals("String_Node_Str",profile.getLocation());
  assertEquals("String_Node_Str",profile.getUrl());
  assertEquals("String_Node_Str",profile.getProfileImageUrl());
}

Fixed version (ground truth):
@Test public void getUserProfile_userId_appAuthorization() throws Exception {
  appAuthMockServer.expect(requestTo("String_Node_Str")).andExpect(method(GET)).andExpect(header("String_Node_Str","String_Node_Str")).andRespond(withSuccess(jsonResource("String_Node_Str"),APPLICATION_JSON));
  TwitterProfile profile=appAuthTwitter.userOperations().getUserProfile(12345);
  assertEquals(161064614,profile.getId());
  assertEquals("String_Node_Str",profile.getIdStr());
  assertEquals("String_Node_Str",profile.getScreenName());
  assertEquals("String_Node_Str",profile.getName());
  assertEquals("String_Node_Str",profile.getDescription());
  assertEquals("String_Node_Str",profile.getLocation());
  assertEquals("String_Node_Str",profile.getUrl());
  assertEquals("String_Node_Str",profile.getProfileImageUrl());
}
Program: 16871
Project: 16871
Buggy source:
@Test public void getUserProfile_screenName() throws Exception {
  mockServer.expect(requestTo("String_Node_Str")).andExpect(method(GET)).andRespond(withSuccess(jsonResource("String_Node_Str"),APPLICATION_JSON));
  TwitterProfile profile=twitter.userOperations().getUserProfile("String_Node_Str");
  assertEquals(161064614,profile.getId());
  assertEquals("String_Node_Str",profile.getScreenName());
  assertEquals("String_Node_Str",profile.getName());
  assertEquals("String_Node_Str",profile.getDescription());
  assertEquals("String_Node_Str",profile.getLocation());
  assertEquals("String_Node_Str",profile.getUrl());
  assertEquals("String_Node_Str",profile.getProfileImageUrl());
}

Fixed version (ground truth):
@Test public void getUserProfile_screenName() throws Exception {
  mockServer.expect(requestTo("String_Node_Str")).andExpect(method(GET)).andRespond(withSuccess(jsonResource("String_Node_Str"),APPLICATION_JSON));
  TwitterProfile profile=twitter.userOperations().getUserProfile("String_Node_Str");
  assertEquals(161064614,profile.getId());
  assertEquals("String_Node_Str",profile.getIdStr());
  assertEquals("String_Node_Str",profile.getScreenName());
  assertEquals("String_Node_Str",profile.getName());
  assertEquals("String_Node_Str",profile.getDescription());
  assertEquals("String_Node_Str",profile.getLocation());
  assertEquals("String_Node_Str",profile.getUrl());
  assertEquals("String_Node_Str",profile.getProfileImageUrl());
}
Program: 16872
Project: 16872
Buggy source:
@Test public void getUserProfile_screenName_appAuthorization() throws Exception {
  appAuthMockServer.expect(requestTo("String_Node_Str")).andExpect(method(GET)).andExpect(header("String_Node_Str","String_Node_Str")).andRespond(withSuccess(jsonResource("String_Node_Str"),APPLICATION_JSON));
  TwitterProfile profile=appAuthTwitter.userOperations().getUserProfile("String_Node_Str");
  assertEquals(161064614,profile.getId());
  assertEquals("String_Node_Str",profile.getScreenName());
  assertEquals("String_Node_Str",profile.getName());
  assertEquals("String_Node_Str",profile.getDescription());
  assertEquals("String_Node_Str",profile.getLocation());
  assertEquals("String_Node_Str",profile.getUrl());
  assertEquals("String_Node_Str",profile.getProfileImageUrl());
}

Fixed version (ground truth):
@Test public void getUserProfile_screenName_appAuthorization() throws Exception {
  appAuthMockServer.expect(requestTo("String_Node_Str")).andExpect(method(GET)).andExpect(header("String_Node_Str","String_Node_Str")).andRespond(withSuccess(jsonResource("String_Node_Str"),APPLICATION_JSON));
  TwitterProfile profile=appAuthTwitter.userOperations().getUserProfile("String_Node_Str");
  assertEquals(161064614,profile.getId());
  assertEquals("String_Node_Str",profile.getIdStr());
  assertEquals("String_Node_Str",profile.getScreenName());
  assertEquals("String_Node_Str",profile.getName());
  assertEquals("String_Node_Str",profile.getDescription());
  assertEquals("String_Node_Str",profile.getLocation());
  assertEquals("String_Node_Str",profile.getUrl());
  assertEquals("String_Node_Str",profile.getProfileImageUrl());
}
Program: 16873
Project: 16873
Buggy source:
/** 
 * Constructs a Tweet
 * @param id The tweet's ID
 * @param idStr The tweet's ID as a String
 * @param text The tweet's text
 * @param createdAt Date Tweet was created
 * @param fromUser The username of the author of the tweet.
 * @param profileImageUrl The URL to the profile picture of the tweet's author.
 * @param toUserId The user ID of the user to whom the tweet is targeted.
 * @param fromUserId The user ID of the tweet's author.
 * @param languageCode The language code
 * @param source The source of the tweet.
 * @deprecated Use other constructor with String ID instead.
 */
public Tweet(long id,String idStr,String text,Date createdAt,String fromUser,String profileImageUrl,Long toUserId,long fromUserId,String languageCode,String source){
  this.id=id;
  this.idStr=idStr;
  this.text=text;
  this.createdAt=createdAt;
  this.fromUser=fromUser;
  this.profileImageUrl=profileImageUrl;
  this.toUserId=toUserId;
  this.fromUserId=fromUserId;
  this.languageCode=languageCode;
  this.source=source;
}

Fixed version (ground truth):
public Tweet(String id,String text,Date createdAt,String fromUser,String profileImageUrl,Long toUserId,long fromUserId,String languageCode,String source){
  this.id=id;
  this.text=text;
  this.createdAt=createdAt;
  this.fromUser=fromUser;
  this.profileImageUrl=profileImageUrl;
  this.toUserId=toUserId;
  this.fromUserId=fromUserId;
  this.languageCode=languageCode;
  this.source=source;
}
Program: 16874
Project: 16874
Buggy source:
public long getId(){
  return id;
}

Fixed version (ground truth):
public String getId(){
  return id;
}
Program: 16875
Project: 16875
Buggy source:
@Override public int hashCode(){
  int result=(int)(id ^ (id >>> 32));
  result=31 * result + (idStr != null ? idStr.hashCode() : 0);
  result=31 * result + (text != null ? text.hashCode() : 0);
  result=31 * result + (createdAt != null ? createdAt.hashCode() : 0);
  result=31 * result + (fromUser != null ? fromUser.hashCode() : 0);
  result=31 * result + (profileImageUrl != null ? profileImageUrl.hashCode() : 0);
  result=31 * result + (toUserId != null ? toUserId.hashCode() : 0);
  result=31 * result + (inReplyToStatusId != null ? inReplyToStatusId.hashCode() : 0);
  result=31 * result + (inReplyToUserId != null ? inReplyToUserId.hashCode() : 0);
  result=31 * result + (inReplyToScreenName != null ? inReplyToScreenName.hashCode() : 0);
  result=31 * result + (int)(fromUserId ^ (fromUserId >>> 32));
  result=31 * result + (languageCode != null ? languageCode.hashCode() : 0);
  result=31 * result + (source != null ? source.hashCode() : 0);
  result=31 * result + (retweetCount != null ? retweetCount.hashCode() : 0);
  result=31 * result + (retweeted ? 1 : 0);
  result=31 * result + (retweetedStatus != null ? retweetedStatus.hashCode() : 0);
  result=31 * result + (entities != null ? entities.hashCode() : 0);
  result=31 * result + (user != null ? user.hashCode() : 0);
  return result;
}

Fixed version (ground truth):
@Override public int hashCode(){
  int result=(id != null ? id.hashCode() : 0);
  result=31 * result + (text != null ? text.hashCode() : 0);
  result=31 * result + (createdAt != null ? createdAt.hashCode() : 0);
  result=31 * result + (fromUser != null ? fromUser.hashCode() : 0);
  result=31 * result + (profileImageUrl != null ? profileImageUrl.hashCode() : 0);
  result=31 * result + (toUserId != null ? toUserId.hashCode() : 0);
  result=31 * result + (inReplyToStatusId != null ? inReplyToStatusId.hashCode() : 0);
  result=31 * result + (inReplyToUserId != null ? inReplyToUserId.hashCode() : 0);
  result=31 * result + (inReplyToScreenName != null ? inReplyToScreenName.hashCode() : 0);
  result=31 * result + (int)(fromUserId ^ (fromUserId >>> 32));
  result=31 * result + (languageCode != null ? languageCode.hashCode() : 0);
  result=31 * result + (source != null ? source.hashCode() : 0);
  result=31 * result + (retweetCount != null ? retweetCount.hashCode() : 0);
  result=31 * result + (retweeted ? 1 : 0);
  result=31 * result + (retweetedStatus != null ? retweetedStatus.hashCode() : 0);
  result=31 * result + (entities != null ? entities.hashCode() : 0);
  result=31 * result + (user != null ? user.hashCode() : 0);
  return result;
}
Program: 16877
Project: 16877
Buggy source:
/** 
 * The URL to the banner image shown on the user's Twitter profile page
 */
public String getProfileBannerUrl(){
  return profileBannerUrl;
}

Fixed version (ground truth):
/** 
 * The URL to the banner image shown on the user's Twitter profile page
 * @return The URL to the banner image shown on the user's Twitter profile page
 */
public String getProfileBannerUrl(){
  return profileBannerUrl;
}
Program: 16878
Project: 16878
Buggy source:
/** 
 * Retrieves a list of Twitter profiles for the given list of screen names. Supports either user or application authorization.
 * @return a list of Twitter profiles
 * @throws ApiException if there is an error while communicating with Twitter.
 * @throws MissingAuthorizationException if TwitterTemplate was not created with OAuth credentials or an application access token.
 */
List<TwitterProfile> getUsers(String... screenNames);

Fixed version (ground truth):
/** 
 * Retrieves a list of Twitter profiles for the given list of screen names. Supports either user or application authorization.
 * @param screenNames The screen names to retrieve profiles for
 * @return a list of Twitter profiles
 * @throws ApiException if there is an error while communicating with Twitter.
 * @throws MissingAuthorizationException if TwitterTemplate was not created with OAuth credentials or an application access token.
 */
List<TwitterProfile> getUsers(String... screenNames);
Program: 16879
Project: 16879
Buggy source:
/** 
 * Searches for users that match a given query.
 * @param page the page of search results to return
 * @param pageSize the number of {@link TwitterProfile}s per page. Maximum of 20 per page.
 * @return a list of Twitter profiles
 * @throws ApiException if there is an error while communicating with Twitter.
 * @throws MissingAuthorizationException if TwitterTemplate was not created with OAuth credentials.
 */
List<TwitterProfile> searchForUsers(String query,int page,int pageSize);

Fixed version (ground truth):
/** 
 * Searches for users that match a given query.
 * @param query The search query
 * @param page the page of search results to return
 * @param pageSize the number of {@link TwitterProfile}s per page. Maximum of 20 per page.
 * @return a list of Twitter profiles
 * @throws ApiException if there is an error while communicating with Twitter.
 * @throws MissingAuthorizationException if TwitterTemplate was not created with OAuth credentials.
 */
List<TwitterProfile> searchForUsers(String query,int page,int pageSize);
Program: 16880
Project: 16880
Buggy source:
@Override public LocalTrendsHolder deserialize(JsonParser jp,DeserializationContext ctxt) throws IOException, JsonProcessingException {
  JsonNode node=jp.readValueAs(JsonNode.class);
  Iterator<JsonNode> dayIt=node.iterator();
  if (dayIt.hasNext()) {
    JsonNode day=dayIt.next();
    Date createdAt=toDate(day.get("String_Node_Str").asText());
    JsonNode trendNodes=day.get("String_Node_Str");
    List<Trend> trends=new ArrayList<Trend>();
    for (Iterator<JsonNode> trendsIt=trendNodes.iterator(); trendsIt.hasNext(); ) {
      JsonNode trendNode=trendsIt.next();
      trends.add(new Trend(trendNode.get("String_Node_Str").asText(),trendNode.get("String_Node_Str").asText()));
    }
    jp.skipChildren();
    return new LocalTrendsHolder(new Trends(createdAt,trends));
  }
  throw ctxt.mappingException(LocalTrendsHolder.class);
}

Fixed version (ground truth):
@Override public LocalTrendsHolder deserialize(JsonParser jp,DeserializationContext ctxt) throws IOException, JsonProcessingException {
  JsonNode node=jp.readValueAs(JsonNode.class);
  Iterator<JsonNode> dayIt=node.iterator();
  if (dayIt.hasNext()) {
    JsonNode day=dayIt.next();
    Date createdAt=toDate(day.get("String_Node_Str").asText());
    JsonNode trendNodes=day.get("String_Node_Str");
    List<Trend> trends=new ArrayList<Trend>();
    for (Iterator<JsonNode> trendsIt=trendNodes.iterator(); trendsIt.hasNext(); ) {
      JsonNode trendNode=trendsIt.next();
      trends.add(new Trend(trendNode.get("String_Node_Str").asText(),trendNode.get("String_Node_Str").asText()));
    }
    jp.skipChildren();
    return new LocalTrendsHolder(new Trends(createdAt,trends));
  }
  throw new JsonMappingException(jp,"String_Node_Str" + LocalTrendsHolder.class.getName());
}
Program: 16881
Project: 16881
Buggy source:
@SuppressWarnings("String_Node_Str") @Override public List<Place> deserialize(JsonParser jp,DeserializationContext ctxt) throws IOException, JsonProcessingException {
  ObjectMapper mapper=new ObjectMapper();
  mapper.registerModule(new TwitterModule());
  jp.setCodec(mapper);
  JsonNode treeNode=(JsonNode)jp.readValueAs(JsonNode.class).get("String_Node_Str");
  return (List<Place>)mapper.reader(new TypeReference<List<Place>>(){
  }
).readValue(treeNode);
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") @Override public List<Place> deserialize(JsonParser jp,DeserializationContext ctxt) throws IOException, JsonProcessingException {
  ObjectMapper mapper=new ObjectMapper();
  mapper.registerModule(new TwitterModule());
  jp.setCodec(mapper);
  JsonNode treeNode=jp.readValueAs(JsonNode.class).get("String_Node_Str");
  return (List<Place>)mapper.readerFor(new TypeReference<List<Place>>(){
  }
).readValue(treeNode);
}
Program: 16882
Project: 16882
Buggy source:
@Override public SimilarPlacesResponse deserialize(JsonParser jp,DeserializationContext ctxt) throws IOException, JsonProcessingException {
  ObjectMapper mapper=new ObjectMapper();
  mapper.registerModule(new TwitterModule());
  jp.setCodec(mapper);
  JsonNode node=jp.readValueAs(JsonNode.class);
  JsonNode resultNode=node.get("String_Node_Str");
  String token=resultNode.get("String_Node_Str").textValue();
  JsonNode placesNode=resultNode.get("String_Node_Str");
  @SuppressWarnings("String_Node_Str") List<Place> places=(List<Place>)mapper.reader(new TypeReference<List<Place>>(){
  }
).readValue(placesNode);
  return new SimilarPlacesResponse(places,token);
}

Fixed version (ground truth):
@Override public SimilarPlacesResponse deserialize(JsonParser jp,DeserializationContext ctxt) throws IOException, JsonProcessingException {
  ObjectMapper mapper=new ObjectMapper();
  mapper.registerModule(new TwitterModule());
  jp.setCodec(mapper);
  JsonNode node=jp.readValueAs(JsonNode.class);
  JsonNode resultNode=node.get("String_Node_Str");
  String token=resultNode.get("String_Node_Str").textValue();
  JsonNode placesNode=resultNode.get("String_Node_Str");
  @SuppressWarnings("String_Node_Str") List<Place> places=(List<Place>)mapper.readerFor(new TypeReference<List<Place>>(){
  }
).readValue(placesNode);
  return new SimilarPlacesResponse(places,token);
}
Program: 16883
Project: 16883
Buggy source:
private void handleTweet(String line) throws IOException {
  final Tweet tweet=objectMapper.readValue(line,Tweet.class);
  for (  final StreamListener listener : listeners) {
    Future<?> result=pool.submit((new Runnable(){
      public void run(){
        listener.onTweet(tweet);
      }
    }
));
  }
}

Fixed version (ground truth):
private void handleTweet(String line) throws IOException {
  final Tweet tweet=objectMapper.readValue(line,Tweet.class);
  for (  final StreamListener listener : listeners) {
    pool.submit((new Runnable(){
      public void run(){
        listener.onTweet(tweet);
      }
    }
));
  }
}
Program: 16884
Project: 16884
Buggy source:
private void handleLimit(String line) throws IOException {
  final TrackLimitEvent limitEvent=objectMapper.readValue(line,TrackLimitEvent.class);
  for (  final StreamListener listener : listeners) {
    Future<?> result=pool.submit((new Runnable(){
      public void run(){
        listener.onLimit(limitEvent.getNumberOfLimitedTweets());
      }
    }
));
  }
}

Fixed version (ground truth):
private void handleLimit(String line) throws IOException {
  final TrackLimitEvent limitEvent=objectMapper.readValue(line,TrackLimitEvent.class);
  for (  final StreamListener listener : listeners) {
    pool.submit((new Runnable(){
      public void run(){
        listener.onLimit(limitEvent.getNumberOfLimitedTweets());
      }
    }
));
  }
}
Program: 16885
Project: 16885
Buggy source:
private void handleWarning(String line) throws IOException {
  final StreamWarningEvent warningEvent=objectMapper.readValue(line,StreamWarningEvent.class);
  for (  final StreamListener listener : listeners) {
    Future<?> result=pool.submit((new Runnable(){
      public void run(){
        listener.onWarning(warningEvent);
      }
    }
));
  }
}

Fixed version (ground truth):
private void handleWarning(String line) throws IOException {
  final StreamWarningEvent warningEvent=objectMapper.readValue(line,StreamWarningEvent.class);
  for (  final StreamListener listener : listeners) {
    pool.submit((new Runnable(){
      public void run(){
        listener.onWarning(warningEvent);
      }
    }
));
  }
}
Program: 16886
Project: 16886
Buggy source:
public StreamDispatcher(Queue<String> queue,List<StreamListener> listeners){
  this.queue=queue;
  this.listeners=listeners;
  pool=Executors.newCachedThreadPool();
  objectMapper=new ObjectMapper();
  objectMapper.addMixInAnnotations(Tweet.class,TweetMixin.class);
  objectMapper.addMixInAnnotations(StreamDeleteEvent.class,StreamDeleteEventMixin.class);
  objectMapper.addMixInAnnotations(StreamWarningEvent.class,StreamWarningEventMixin.class);
  active=new AtomicBoolean(true);
}

Fixed version (ground truth):
public StreamDispatcher(Queue<String> queue,List<StreamListener> listeners){
  this.queue=queue;
  this.listeners=listeners;
  pool=Executors.newCachedThreadPool();
  objectMapper=new ObjectMapper();
  objectMapper.addMixIn(Tweet.class,TweetMixin.class);
  objectMapper.addMixIn(StreamDeleteEvent.class,StreamDeleteEventMixin.class);
  objectMapper.addMixIn(StreamWarningEvent.class,StreamWarningEventMixin.class);
  active=new AtomicBoolean(true);
}
Program: 16887
Project: 16887
Buggy source:
private void handleDelete(String line) throws IOException {
  final StreamDeleteEvent deleteEvent=objectMapper.readValue(line,StreamDeleteEvent.class);
  for (  final StreamListener listener : listeners) {
    Future<?> result=pool.submit((new Runnable(){
      public void run(){
        listener.onDelete(deleteEvent);
      }
    }
));
  }
}

Fixed version (ground truth):
private void handleDelete(String line) throws IOException {
  final StreamDeleteEvent deleteEvent=objectMapper.readValue(line,StreamDeleteEvent.class);
  for (  final StreamListener listener : listeners) {
    pool.submit((new Runnable(){
      public void run(){
        listener.onDelete(deleteEvent);
      }
    }
));
  }
}
Program: 16889
Project: 16889
Buggy source:
public SearchMetadata(int max_id,long since_id){
  this.max_id=max_id;
  this.since_id=since_id;
}

Fixed version (ground truth):
public SearchMetadata(long max_id,long since_id){
  this.max_id=max_id;
  this.since_id=since_id;
}
Program: 16890
Project: 16890
Buggy source:
@Override public SearchMetadata deserialize(JsonParser jp,DeserializationContext ctxt) throws IOException, JsonProcessingException {
  JsonNode node=jp.readValueAs(JsonNode.class);
  int max_id=node.get("String_Node_Str").asInt();
  long since_id=node.get("String_Node_Str").asLong();
  return new SearchMetadata(max_id,since_id);
}

Fixed version (ground truth):
@Override public SearchMetadata deserialize(JsonParser jp,DeserializationContext ctxt) throws IOException, JsonProcessingException {
  JsonNode node=jp.readValueAs(JsonNode.class);
  long max_id=node.get("String_Node_Str").asLong();
  long since_id=node.get("String_Node_Str").asLong();
  return new SearchMetadata(max_id,since_id);
}
Program: 16891
Project: 16891
Buggy source:
@Test public void search_pageAndResultsPerPage(){
  mockServer.expect(requestTo("String_Node_Str")).andExpect(method(GET)).andRespond(withSuccess(jsonResource("String_Node_Str"),APPLICATION_JSON));
  SearchResults searchResults=twitter.searchOperations().search("String_Node_Str",10);
  assertEquals(10,searchResults.getSearchMetadata().getSince_id());
  assertEquals(999,searchResults.getSearchMetadata().getMax_id());
  List<Tweet> tweets=searchResults.getTweets();
  assertSearchTweets(tweets);
}

Fixed version (ground truth):
@Test public void search_pageAndResultsPerPage(){
  mockServer.expect(requestTo("String_Node_Str")).andExpect(method(GET)).andRespond(withSuccess(jsonResource("String_Node_Str"),APPLICATION_JSON));
  SearchResults searchResults=twitter.searchOperations().search("String_Node_Str",10);
  assertEquals(10,searchResults.getSearchMetadata().getSinceId());
  assertEquals(999,searchResults.getSearchMetadata().getMaxId());
  List<Tweet> tweets=searchResults.getTweets();
  assertSearchTweets(tweets);
}
Program: 16892
Project: 16892
Buggy source:
@Test public void search_sinceAndMaxId_appAuthorization(){
  appAuthMockServer.expect(requestTo("String_Node_Str")).andExpect(method(GET)).andExpect(header("String_Node_Str","String_Node_Str")).andRespond(withSuccess(jsonResource("String_Node_Str"),APPLICATION_JSON));
  SearchResults searchResults=appAuthTwitter.searchOperations().search("String_Node_Str",10,123,54321);
  assertEquals(10,searchResults.getSearchMetadata().getSince_id());
  assertEquals(999,searchResults.getSearchMetadata().getMax_id());
  List<Tweet> tweets=searchResults.getTweets();
  assertSearchTweets(tweets);
}

Fixed version (ground truth):
@Test public void search_sinceAndMaxId_appAuthorization(){
  appAuthMockServer.expect(requestTo("String_Node_Str")).andExpect(method(GET)).andExpect(header("String_Node_Str","String_Node_Str")).andRespond(withSuccess(jsonResource("String_Node_Str"),APPLICATION_JSON));
  SearchResults searchResults=appAuthTwitter.searchOperations().search("String_Node_Str",10,123,54321);
  assertEquals(10,searchResults.getSearchMetadata().getSinceId());
  assertEquals(999,searchResults.getSearchMetadata().getMaxId());
  List<Tweet> tweets=searchResults.getTweets();
  assertSearchTweets(tweets);
}
Program: 16893
Project: 16893
Buggy source:
@Test public void search_queryOnly_appAuthorization(){
  appAuthMockServer.expect(requestTo("String_Node_Str")).andExpect(method(GET)).andExpect(header("String_Node_Str","String_Node_Str")).andRespond(withSuccess(jsonResource("String_Node_Str"),APPLICATION_JSON));
  SearchResults searchResults=appAuthTwitter.searchOperations().search("String_Node_Str");
  assertEquals(10,searchResults.getSearchMetadata().getSince_id());
  assertEquals(999,searchResults.getSearchMetadata().getMax_id());
  List<Tweet> tweets=searchResults.getTweets();
  assertSearchTweets(tweets);
}

Fixed version (ground truth):
@Test public void search_queryOnly_appAuthorization(){
  appAuthMockServer.expect(requestTo("String_Node_Str")).andExpect(method(GET)).andExpect(header("String_Node_Str","String_Node_Str")).andRespond(withSuccess(jsonResource("String_Node_Str"),APPLICATION_JSON));
  SearchResults searchResults=appAuthTwitter.searchOperations().search("String_Node_Str");
  assertEquals(10,searchResults.getSearchMetadata().getSinceId());
  assertEquals(999,searchResults.getSearchMetadata().getMaxId());
  List<Tweet> tweets=searchResults.getTweets();
  assertSearchTweets(tweets);
}
Program: 16894
Project: 16894
Buggy source:
@Test public void search_sinceAndMaxId(){
  mockServer.expect(requestTo("String_Node_Str")).andExpect(method(GET)).andRespond(withSuccess(jsonResource("String_Node_Str"),APPLICATION_JSON));
  SearchResults searchResults=twitter.searchOperations().search("String_Node_Str",10,123,54321);
  assertEquals(10,searchResults.getSearchMetadata().getSince_id());
  assertEquals(999,searchResults.getSearchMetadata().getMax_id());
  List<Tweet> tweets=searchResults.getTweets();
  assertSearchTweets(tweets);
}

Fixed version (ground truth):
@Test public void search_sinceAndMaxId(){
  mockServer.expect(requestTo("String_Node_Str")).andExpect(method(GET)).andRespond(withSuccess(jsonResource("String_Node_Str"),APPLICATION_JSON));
  SearchResults searchResults=twitter.searchOperations().search("String_Node_Str",10,123,54321);
  assertEquals(10,searchResults.getSearchMetadata().getSinceId());
  assertEquals(999,searchResults.getSearchMetadata().getMaxId());
  List<Tweet> tweets=searchResults.getTweets();
  assertSearchTweets(tweets);
}
Program: 16895
Project: 16895
Buggy source:
@Test public void search_pageAndResultsPerPage_appAuthorization(){
  appAuthMockServer.expect(requestTo("String_Node_Str")).andExpect(method(GET)).andExpect(header("String_Node_Str","String_Node_Str")).andRespond(withSuccess(jsonResource("String_Node_Str"),APPLICATION_JSON));
  SearchResults searchResults=appAuthTwitter.searchOperations().search("String_Node_Str",10);
  assertEquals(10,searchResults.getSearchMetadata().getSince_id());
  assertEquals(999,searchResults.getSearchMetadata().getMax_id());
  List<Tweet> tweets=searchResults.getTweets();
  assertSearchTweets(tweets);
}

Fixed version (ground truth):
@Test public void search_pageAndResultsPerPage_appAuthorization(){
  appAuthMockServer.expect(requestTo("String_Node_Str")).andExpect(method(GET)).andExpect(header("String_Node_Str","String_Node_Str")).andRespond(withSuccess(jsonResource("String_Node_Str"),APPLICATION_JSON));
  SearchResults searchResults=appAuthTwitter.searchOperations().search("String_Node_Str",10);
  assertEquals(10,searchResults.getSearchMetadata().getSinceId());
  assertEquals(999,searchResults.getSearchMetadata().getMaxId());
  List<Tweet> tweets=searchResults.getTweets();
  assertSearchTweets(tweets);
}
Program: 16896
Project: 16896
Buggy source:
@Test public void search_queryOnly(){
  mockServer.expect(requestTo("String_Node_Str")).andExpect(method(GET)).andRespond(withSuccess(jsonResource("String_Node_Str"),APPLICATION_JSON));
  SearchResults searchResults=twitter.searchOperations().search("String_Node_Str");
  assertEquals(10,searchResults.getSearchMetadata().getSince_id());
  assertEquals(999,searchResults.getSearchMetadata().getMax_id());
  List<Tweet> tweets=searchResults.getTweets();
  assertSearchTweets(tweets);
}

Fixed version (ground truth):
@Test public void search_queryOnly(){
  mockServer.expect(requestTo("String_Node_Str")).andExpect(method(GET)).andRespond(withSuccess(jsonResource("String_Node_Str"),APPLICATION_JSON));
  SearchResults searchResults=twitter.searchOperations().search("String_Node_Str");
  assertEquals(10,searchResults.getSearchMetadata().getSinceId());
  assertEquals(999,searchResults.getSearchMetadata().getMaxId());
  List<Tweet> tweets=searchResults.getTweets();
  assertSearchTweets(tweets);
}
Program: 16897
Project: 16897
Buggy source:
public SearchResults search(String query,int page,int resultsPerPage,long sinceId,long maxId){
  Map<String,String> parameters=new HashMap<String,String>();
  parameters.put("String_Node_Str",query);
  parameters.put("String_Node_Str",String.valueOf(resultsPerPage));
  parameters.put("String_Node_Str",String.valueOf(page));
  String searchUrl=SEARCH_URL;
  if (sinceId > 0) {
    searchUrl+="String_Node_Str";
    parameters.put("String_Node_Str",String.valueOf(sinceId));
  }
  if (maxId > 0) {
    searchUrl+="String_Node_Str";
    parameters.put("String_Node_Str",String.valueOf(maxId));
  }
  if (this.includeEntities) {
    parameters.put("String_Node_Str","String_Node_Str");
  }
  return restTemplate.getForObject(searchUrl,SearchResults.class,parameters);
}

Fixed version (ground truth):
public SearchResults search(String query,int page,int resultsPerPage,long sinceId,long maxId){
  Map<String,String> parameters=new HashMap<String,String>();
  parameters.put("String_Node_Str",query);
  parameters.put("String_Node_Str",String.valueOf(resultsPerPage));
  parameters.put("String_Node_Str",String.valueOf(page));
  String searchUrl=SEARCH_URL;
  if (sinceId > 0) {
    searchUrl+="String_Node_Str";
    parameters.put("String_Node_Str",String.valueOf(sinceId));
  }
  if (maxId > 0) {
    searchUrl+="String_Node_Str";
    parameters.put("String_Node_Str",String.valueOf(maxId));
  }
  if (this.includeEntities) {
    searchUrl+="String_Node_Str";
    parameters.put("String_Node_Str","String_Node_Str");
  }
  return restTemplate.getForObject(searchUrl,SearchResults.class,parameters);
}
Program: 16899
Project: 16899
Buggy source:
/** 
 * Retrieves the user's Twitter screen name.
 * @return the user's screen name at Twitter
 */
String getProfileId();

Fixed version (ground truth):
/** 
 * Retrieves the authenticated user's Twitter ID.
 * @return the user's ID at Twitter
 */
long getProfileId();
Program: 16900
Project: 16900
Buggy source:
public String getProfileId(){
  Map<?,?> response=restTemplate.getForObject(VERIFY_CREDENTIALS_URL,Map.class);
  return (String)response.get("String_Node_Str");
}

Fixed version (ground truth):
public long getProfileId(){
  Map<?,?> response=restTemplate.getForObject(VERIFY_CREDENTIALS_URL,Map.class);
  return Long.valueOf(String.valueOf(response.get("String_Node_Str")));
}
Program: 16901
Project: 16901
Buggy source:
@Test public void getProfileId(){
  responseHeaders.setContentType(MediaType.APPLICATION_JSON);
  mockServer.expect(requestTo("String_Node_Str")).andExpect(method(GET)).andRespond(withResponse(new ClassPathResource("String_Node_Str",getClass()),responseHeaders));
  assertEquals("String_Node_Str",twitter.userApi().getProfileId());
}

Fixed version (ground truth):
@Test public void getProfileId(){
  responseHeaders.setContentType(MediaType.APPLICATION_JSON);
  mockServer.expect(requestTo("String_Node_Str")).andExpect(method(GET)).andRespond(withResponse(new ClassPathResource("String_Node_Str",getClass()),responseHeaders));
  assertEquals(7078572,twitter.userApi().getProfileId());
}
Program: 16902
Project: 16902
Buggy source:
public BeanDefinition parse(Element element,ParserContext parserContext){
  BeanDefinitionBuilder beanBuilder=BeanDefinitionBuilder.genericBeanDefinition(JdbcConnectionRepository.class);
  String jdbcTemplate=element.getAttribute("String_Node_Str");
  beanBuilder.addConstructorArgReference(jdbcTemplate);
  String stringEncryptor=element.getAttribute("String_Node_Str");
  if (stringEncryptor != null && !stringEncryptor.isEmpty()) {
    beanBuilder.addConstructorArgReference(stringEncryptor);
  }
 else {
    beanBuilder.addConstructorArgValue(Encryptors.noOpText());
  }
  AbstractBeanDefinition beanDefinition=beanBuilder.getBeanDefinition();
  parserContext.getRegistry().registerBeanDefinition("String_Node_Str",beanDefinition);
  return beanDefinition;
}

Fixed version (ground truth):
public BeanDefinition parse(Element element,ParserContext parserContext){
  BeanDefinitionBuilder beanBuilder=BeanDefinitionBuilder.genericBeanDefinition(JdbcConnectionRepository.class);
  String dataSource=element.getAttribute("String_Node_Str");
  beanBuilder.addConstructorArgReference(dataSource);
  String stringEncryptor=element.getAttribute("String_Node_Str");
  if (stringEncryptor != null && !stringEncryptor.isEmpty()) {
    beanBuilder.addConstructorArgReference(stringEncryptor);
  }
 else {
    beanBuilder.addConstructorArgValue(Encryptors.noOpText());
  }
  AbstractBeanDefinition beanDefinition=beanBuilder.getBeanDefinition();
  parserContext.getRegistry().registerBeanDefinition("String_Node_Str",beanDefinition);
  return beanDefinition;
}
Program: 16903
Project: 16903
Buggy source:
/** 
 * Create a new instance of ScribeOAuth1RequestSigner.
 * @param accessToken the access token value
 * @param accessTokenSecret the access token secret
 * @param apiKey the API key assigned by the provider
 * @param apiSecret the API secret assigned by the provider
 */
public ScribeOAuth1RequestSigner(String apiKey,String apiSecret,String accessToken,String accessTokenSecret){
  this.accessToken=accessToken;
  this.accessTokenSecret=accessTokenSecret;
  this.service=new ServiceBuilder().provider(TwitterApi.class).apiKey(apiKey).apiSecret(apiSecret).callback("String_Node_Str").build();
}

Fixed version (ground truth):
/** 
 * Create a new instance of ScribeOAuth1RequestSigner.
 * @param accessToken the access token value
 * @param accessTokenSecret the access token secret
 * @param apiKey the API key assigned by the provider
 * @param apiSecret the API secret assigned by the provider
 */
public ScribeOAuth1RequestSigner(String apiKey,String apiSecret,String accessToken,String accessTokenSecret){
  this.accessToken=accessToken;
  this.accessTokenSecret=accessTokenSecret;
  this.service=new ServiceBuilder().provider(LinkedInApi.class).apiKey(apiKey).apiSecret(apiSecret).callback("String_Node_Str").build();
}
Program: 16904
Project: 16904
Buggy source:
/** 
 * Create a new instance of TwitterTemplate. This constructor creates a new TwitterTemplate given the minimal amount of information required to sign a request and builds up a  {@link RestOperations} internally using this information.
 * @param apiKey the application's API key.
 * @param apiSecret the application's API secret.
 * @param accessToken the user's access token, given after successful OAuth authentication.
 * @param accessTokenSecret the access token secret, given along with the access token after successful OAuth authentication.
 */
public TwitterTemplate(String apiKey,String apiSecret,String accessToken,String accessTokenSecret){
  this.restOperations=new RestTemplate(new OAuthSigningClientHttpRequestFactory(new ScribeOAuth1RequestSigner(apiKey,apiSecret,accessToken,accessTokenSecret)));
}

Fixed version (ground truth):
/** 
 * Create a new instance of TwitterTemplate. This constructor creates a new TwitterTemplate given the minimal amount of information required to sign a request and builds up a  {@link RestOperations} internally using this information.
 * @param apiKey the application's API key.
 * @param apiSecret the application's API secret.
 * @param accessToken the user's access token, given after successful OAuth authentication.
 * @param accessTokenSecret the access token secret, given along with the access token after successful OAuth authentication.
 */
public TwitterTemplate(String apiKey,String apiSecret,String accessToken,String accessTokenSecret){
  RestTemplate restTemplate=new RestTemplate(new OAuthSigningClientHttpRequestFactory(new ScribeOAuth1RequestSigner(apiKey,apiSecret,accessToken,accessTokenSecret)));
  restTemplate.setErrorHandler(new TwitterErrorHandler());
  this.restOperations=restTemplate;
  this.statusCodeTranslator=new TwitterResponseStatusCodeTranslator();
}
Program: 16905
Project: 16905
Buggy source:
public void retweet(long tweetId){
  @SuppressWarnings("String_Node_Str") ResponseEntity<Map> response=restOperations.postForEntity(RETWEET_URL,Collections.emptyMap(),Map.class,Collections.singletonMap("String_Node_Str",Long.toString(tweetId)));
  handleResponseErrors(response);
}

Fixed version (ground truth):
public void retweet(long tweetId){
  @SuppressWarnings("String_Node_Str") ResponseEntity<Map> response=restOperations.postForEntity(RETWEET_URL,"String_Node_Str",Map.class,Collections.singletonMap("String_Node_Str",Long.toString(tweetId)));
  handleResponseErrors(response);
}