nus-yam/ex-repair huggingface dataset:
Program: 177732
Project: 177732
Buggy source:
@Test public void basic() throws Exception {
  Analyzer analyzer=new TweetAnalyzer(Version.LUCENE_41);
  String test1=parseKeywords(analyzer,"String_Node_Str");
  assertEquals("String_Node_Str",test1);
  String test2=parseKeywords(analyzer,"String_Node_Str");
  assertEquals("String_Node_Str",test2);
  String test3=parseKeywords(analyzer,"String_Node_Str");
  assertEquals("String_Node_Str",test3);
  String test5=parseKeywords(analyzer,"String_Node_Str");
  assertEquals("String_Node_Str",test5);
  String test6=parseKeywords(analyzer,"String_Node_Str");
  assertEquals("String_Node_Str",test6);
  String test7=parseKeywords(analyzer,"String_Node_Str");
  assertEquals("String_Node_Str",test7);
  String test8=parseKeywords(analyzer,"String_Node_Str");
  assertEquals("String_Node_Str",test8);
  String test10=parseKeywords(analyzer,"String_Node_Str");
  assertEquals("String_Node_Str",test10);
}

Fixed version (ground truth):
@Test public void basic() throws Exception {
  Analyzer analyzer=new TweetAnalyzer(Version.LUCENE_41);
  String test1=parseKeywords(analyzer,"String_Node_Str");
  assertEquals("String_Node_Str",test1);
  String test2=parseKeywords(analyzer,"String_Node_Str");
  assertEquals("String_Node_Str",test2);
  String test3=parseKeywords(analyzer,"String_Node_Str");
  assertEquals("String_Node_Str",test3);
  String test4=parseKeywords(analyzer,"String_Node_Str");
  assertEquals("String_Node_Str",test4);
  String test5=parseKeywords(analyzer,"String_Node_Str");
  assertEquals("String_Node_Str",test5);
  String test6=parseKeywords(analyzer,"String_Node_Str");
  assertEquals("String_Node_Str",test6);
  String test7=parseKeywords(analyzer,"String_Node_Str");
  assertEquals("String_Node_Str",test7);
  String test8=parseKeywords(analyzer,"String_Node_Str");
  assertEquals("String_Node_Str",test8);
  String test9=parseKeywords(analyzer,"String_Node_Str");
  assertEquals("String_Node_Str",test9);
  String test10=parseKeywords(analyzer,"String_Node_Str");
  assertEquals("String_Node_Str",test10);
  String test11=parseKeywords(analyzer,"String_Node_Str");
  assertEquals("String_Node_Str",test11);
}
Program: 177733
Project: 177733
Buggy source:
public String parseKeywords(Analyzer analyzer,String keywords){
  StringBuilder sb=new StringBuilder();
  try {
    TokenStream tokenStream=analyzer.tokenStream(null,new StringReader(keywords));
    CharTermAttribute cattr=tokenStream.addAttribute(CharTermAttribute.class);
    tokenStream.reset();
    sb.append("String_Node_Str");
    while (tokenStream.incrementToken()) {
      if (cattr.toString().length() == 0)       continue;
      sb.append(cattr.toString());
      sb.append("String_Node_Str");
    }
    tokenStream.end();
    tokenStream.close();
  }
 catch (  IOException e) {
    throw new RuntimeException(e);
  }
  return sb.toString();
}

Fixed version (ground truth):
public String parseKeywords(Analyzer analyzer,String keywords){
  System.out.println(keywords);
  StringBuilder sb=new StringBuilder("String_Node_Str");
  try {
    TokenStream tokenStream=analyzer.tokenStream(null,new StringReader(keywords));
    CharTermAttribute cattr=tokenStream.addAttribute(CharTermAttribute.class);
    tokenStream.reset();
    while (tokenStream.incrementToken()) {
      if (cattr.toString().length() == 0)       continue;
      sb.append(cattr.toString());
      sb.append("String_Node_Str");
    }
    tokenStream.end();
    tokenStream.close();
  }
 catch (  IOException e) {
    throw new RuntimeException(e);
  }
  System.out.println(sb + "String_Node_Str");
  return sb.toString();
}
Program: 177734
Project: 177734
Buggy source:
public long getRetweetedStatusId(){
  return retweetedStatusId;
}

Fixed version (ground truth):
public long getRetweetedStatusId(){
  return retweetStatusId;
}
Program: 177736
Project: 177736
Buggy source:
public long getRetweetedUserId(){
  return retweetedUserId;
}

Fixed version (ground truth):
public long getRetweetedUserId(){
  return retweetUserId;
}
Program: 177739
Project: 177739
Buggy source:
public Object getFieldValue(_Fields field){
switch (field) {
case ID:
    return Long.valueOf(getId());
case RSV:
  return Double.valueOf(getRsv());
case SCREEN_NAME:
return getScreen_name();
case CREATED_AT:
return getCreated_at();
case TEXT:
return getText();
}
throw new IllegalStateException();
}

Fixed version (ground truth):
public Object getFieldValue(_Fields field){
switch (field) {
case ID:
    return Long.valueOf(getId());
case RSV:
  return Double.valueOf(getRsv());
case SCREEN_NAME:
return getScreen_name();
case EPOCH:
return Long.valueOf(getEpoch());
case TEXT:
return getText();
case FOLLOWERS_COUNT:
return Integer.valueOf(getFollowers_count());
case STATUSES_COUNT:
return Integer.valueOf(getStatuses_count());
case LANG:
return getLang();
case IN_REPLY_TO_STATUS_ID:
return Long.valueOf(getIn_reply_to_status_id());
case IN_REPLY_TO_USER_ID:
return Long.valueOf(getIn_reply_to_user_id());
case RETWEETED_STATUS_ID:
return Long.valueOf(getRetweeted_status_id());
case RETWEETED_USER_ID:
return Long.valueOf(getRetweeted_user_id());
case RETWEETED_COUNT:
return Integer.valueOf(getRetweeted_count());
}
throw new IllegalStateException();
}
Program: 177740
Project: 177740
Buggy source:
@Override public void write(org.apache.thrift.protocol.TProtocol prot,TResult struct) throws org.apache.thrift.TException {
  TTupleProtocol oprot=(TTupleProtocol)prot;
  BitSet optionals=new BitSet();
  if (struct.isSetId()) {
    optionals.set(0);
  }
  if (struct.isSetRsv()) {
    optionals.set(1);
  }
  if (struct.isSetScreen_name()) {
    optionals.set(2);
  }
  if (struct.isSetCreated_at()) {
    optionals.set(3);
  }
  if (struct.isSetText()) {
    optionals.set(4);
  }
  oprot.writeBitSet(optionals,5);
  if (struct.isSetId()) {
    oprot.writeI64(struct.id);
  }
  if (struct.isSetRsv()) {
    oprot.writeDouble(struct.rsv);
  }
  if (struct.isSetScreen_name()) {
    oprot.writeString(struct.screen_name);
  }
  if (struct.isSetCreated_at()) {
    oprot.writeString(struct.created_at);
  }
  if (struct.isSetText()) {
    oprot.writeString(struct.text);
  }
}

Fixed version (ground truth):
@Override public void write(org.apache.thrift.protocol.TProtocol prot,TResult struct) throws org.apache.thrift.TException {
  TTupleProtocol oprot=(TTupleProtocol)prot;
  BitSet optionals=new BitSet();
  if (struct.isSetId()) {
    optionals.set(0);
  }
  if (struct.isSetRsv()) {
    optionals.set(1);
  }
  if (struct.isSetScreen_name()) {
    optionals.set(2);
  }
  if (struct.isSetEpoch()) {
    optionals.set(3);
  }
  if (struct.isSetText()) {
    optionals.set(4);
  }
  if (struct.isSetFollowers_count()) {
    optionals.set(5);
  }
  if (struct.isSetStatuses_count()) {
    optionals.set(6);
  }
  if (struct.isSetLang()) {
    optionals.set(7);
  }
  if (struct.isSetIn_reply_to_status_id()) {
    optionals.set(8);
  }
  if (struct.isSetIn_reply_to_user_id()) {
    optionals.set(9);
  }
  if (struct.isSetRetweeted_status_id()) {
    optionals.set(10);
  }
  if (struct.isSetRetweeted_user_id()) {
    optionals.set(11);
  }
  if (struct.isSetRetweeted_count()) {
    optionals.set(12);
  }
  oprot.writeBitSet(optionals,13);
  if (struct.isSetId()) {
    oprot.writeI64(struct.id);
  }
  if (struct.isSetRsv()) {
    oprot.writeDouble(struct.rsv);
  }
  if (struct.isSetScreen_name()) {
    oprot.writeString(struct.screen_name);
  }
  if (struct.isSetEpoch()) {
    oprot.writeI64(struct.epoch);
  }
  if (struct.isSetText()) {
    oprot.writeString(struct.text);
  }
  if (struct.isSetFollowers_count()) {
    oprot.writeI32(struct.followers_count);
  }
  if (struct.isSetStatuses_count()) {
    oprot.writeI32(struct.statuses_count);
  }
  if (struct.isSetLang()) {
    oprot.writeString(struct.lang);
  }
  if (struct.isSetIn_reply_to_status_id()) {
    oprot.writeI64(struct.in_reply_to_status_id);
  }
  if (struct.isSetIn_reply_to_user_id()) {
    oprot.writeI64(struct.in_reply_to_user_id);
  }
  if (struct.isSetRetweeted_status_id()) {
    oprot.writeI64(struct.retweeted_status_id);
  }
  if (struct.isSetRetweeted_user_id()) {
    oprot.writeI64(struct.retweeted_user_id);
  }
  if (struct.isSetRetweeted_count()) {
    oprot.writeI32(struct.retweeted_count);
  }
}
Program: 177741
Project: 177741
Buggy source:
@Override public void read(org.apache.thrift.protocol.TProtocol prot,TResult struct) throws org.apache.thrift.TException {
  TTupleProtocol iprot=(TTupleProtocol)prot;
  BitSet incoming=iprot.readBitSet(5);
  if (incoming.get(0)) {
    struct.id=iprot.readI64();
    struct.setIdIsSet(true);
  }
  if (incoming.get(1)) {
    struct.rsv=iprot.readDouble();
    struct.setRsvIsSet(true);
  }
  if (incoming.get(2)) {
    struct.screen_name=iprot.readString();
    struct.setScreen_nameIsSet(true);
  }
  if (incoming.get(3)) {
    struct.created_at=iprot.readString();
    struct.setCreated_atIsSet(true);
  }
  if (incoming.get(4)) {
    struct.text=iprot.readString();
    struct.setTextIsSet(true);
  }
}

Fixed version (ground truth):
@Override public void read(org.apache.thrift.protocol.TProtocol prot,TResult struct) throws org.apache.thrift.TException {
  TTupleProtocol iprot=(TTupleProtocol)prot;
  BitSet incoming=iprot.readBitSet(13);
  if (incoming.get(0)) {
    struct.id=iprot.readI64();
    struct.setIdIsSet(true);
  }
  if (incoming.get(1)) {
    struct.rsv=iprot.readDouble();
    struct.setRsvIsSet(true);
  }
  if (incoming.get(2)) {
    struct.screen_name=iprot.readString();
    struct.setScreen_nameIsSet(true);
  }
  if (incoming.get(3)) {
    struct.epoch=iprot.readI64();
    struct.setEpochIsSet(true);
  }
  if (incoming.get(4)) {
    struct.text=iprot.readString();
    struct.setTextIsSet(true);
  }
  if (incoming.get(5)) {
    struct.followers_count=iprot.readI32();
    struct.setFollowers_countIsSet(true);
  }
  if (incoming.get(6)) {
    struct.statuses_count=iprot.readI32();
    struct.setStatuses_countIsSet(true);
  }
  if (incoming.get(7)) {
    struct.lang=iprot.readString();
    struct.setLangIsSet(true);
  }
  if (incoming.get(8)) {
    struct.in_reply_to_status_id=iprot.readI64();
    struct.setIn_reply_to_status_idIsSet(true);
  }
  if (incoming.get(9)) {
    struct.in_reply_to_user_id=iprot.readI64();
    struct.setIn_reply_to_user_idIsSet(true);
  }
  if (incoming.get(10)) {
    struct.retweeted_status_id=iprot.readI64();
    struct.setRetweeted_status_idIsSet(true);
  }
  if (incoming.get(11)) {
    struct.retweeted_user_id=iprot.readI64();
    struct.setRetweeted_user_idIsSet(true);
  }
  if (incoming.get(12)) {
    struct.retweeted_count=iprot.readI32();
    struct.setRetweeted_countIsSet(true);
  }
}
Program: 177742
Project: 177742
Buggy source:
/** 
 * Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise 
 */
public boolean isSet(_Fields field){
  if (field == null) {
    throw new IllegalArgumentException();
  }
switch (field) {
case ID:
    return isSetId();
case RSV:
  return isSetRsv();
case SCREEN_NAME:
return isSetScreen_name();
case CREATED_AT:
return isSetCreated_at();
case TEXT:
return isSetText();
}
throw new IllegalStateException();
}

Fixed version (ground truth):
/** 
 * Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise 
 */
public boolean isSet(_Fields field){
  if (field == null) {
    throw new IllegalArgumentException();
  }
switch (field) {
case ID:
    return isSetId();
case RSV:
  return isSetRsv();
case SCREEN_NAME:
return isSetScreen_name();
case EPOCH:
return isSetEpoch();
case TEXT:
return isSetText();
case FOLLOWERS_COUNT:
return isSetFollowers_count();
case STATUSES_COUNT:
return isSetStatuses_count();
case LANG:
return isSetLang();
case IN_REPLY_TO_STATUS_ID:
return isSetIn_reply_to_status_id();
case IN_REPLY_TO_USER_ID:
return isSetIn_reply_to_user_id();
case RETWEETED_STATUS_ID:
return isSetRetweeted_status_id();
case RETWEETED_USER_ID:
return isSetRetweeted_user_id();
case RETWEETED_COUNT:
return isSetRetweeted_count();
}
throw new IllegalStateException();
}
Program: 177743
Project: 177743
Buggy source:
public void setFieldValue(_Fields field,Object value){
switch (field) {
case ID:
    if (value == null) {
      unsetId();
    }
 else {
      setId((Long)value);
    }
  break;
case RSV:
if (value == null) {
  unsetRsv();
}
 else {
  setRsv((Double)value);
}
break;
case SCREEN_NAME:
if (value == null) {
unsetScreen_name();
}
 else {
setScreen_name((String)value);
}
break;
case CREATED_AT:
if (value == null) {
unsetCreated_at();
}
 else {
setCreated_at((String)value);
}
break;
case TEXT:
if (value == null) {
unsetText();
}
 else {
setText((String)value);
}
break;
}
}

Fixed version (ground truth):
public void setFieldValue(_Fields field,Object value){
switch (field) {
case ID:
    if (value == null) {
      unsetId();
    }
 else {
      setId((Long)value);
    }
  break;
case RSV:
if (value == null) {
  unsetRsv();
}
 else {
  setRsv((Double)value);
}
break;
case SCREEN_NAME:
if (value == null) {
unsetScreen_name();
}
 else {
setScreen_name((String)value);
}
break;
case EPOCH:
if (value == null) {
unsetEpoch();
}
 else {
setEpoch((Long)value);
}
break;
case TEXT:
if (value == null) {
unsetText();
}
 else {
setText((String)value);
}
break;
case FOLLOWERS_COUNT:
if (value == null) {
unsetFollowers_count();
}
 else {
setFollowers_count((Integer)value);
}
break;
case STATUSES_COUNT:
if (value == null) {
unsetStatuses_count();
}
 else {
setStatuses_count((Integer)value);
}
break;
case LANG:
if (value == null) {
unsetLang();
}
 else {
setLang((String)value);
}
break;
case IN_REPLY_TO_STATUS_ID:
if (value == null) {
unsetIn_reply_to_status_id();
}
 else {
setIn_reply_to_status_id((Long)value);
}
break;
case IN_REPLY_TO_USER_ID:
if (value == null) {
unsetIn_reply_to_user_id();
}
 else {
setIn_reply_to_user_id((Long)value);
}
break;
case RETWEETED_STATUS_ID:
if (value == null) {
unsetRetweeted_status_id();
}
 else {
setRetweeted_status_id((Long)value);
}
break;
case RETWEETED_USER_ID:
if (value == null) {
unsetRetweeted_user_id();
}
 else {
setRetweeted_user_id((Long)value);
}
break;
case RETWEETED_COUNT:
if (value == null) {
unsetRetweeted_count();
}
 else {
setRetweeted_count((Integer)value);
}
break;
}
}
Program: 177744
Project: 177744
Buggy source:
@Override public void clear(){
  setIdIsSet(false);
  this.id=0;
  setRsvIsSet(false);
  this.rsv=0.0;
  this.screen_name=null;
  this.created_at=null;
  this.text=null;
}

Fixed version (ground truth):
@Override public void clear(){
  setIdIsSet(false);
  this.id=0;
  setRsvIsSet(false);
  this.rsv=0.0;
  this.screen_name=null;
  setEpochIsSet(false);
  this.epoch=0;
  this.text=null;
  setFollowers_countIsSet(false);
  this.followers_count=0;
  setStatuses_countIsSet(false);
  this.statuses_count=0;
  this.lang=null;
  setIn_reply_to_status_idIsSet(false);
  this.in_reply_to_status_id=0;
  setIn_reply_to_user_idIsSet(false);
  this.in_reply_to_user_id=0;
  setRetweeted_status_idIsSet(false);
  this.retweeted_status_id=0;
  setRetweeted_user_idIsSet(false);
  this.retweeted_user_id=0;
  setRetweeted_countIsSet(false);
  this.retweeted_count=0;
}
Program: 177745
Project: 177745
Buggy source:
/** 
 * Performs a deep copy on <i>other</i>.
 */
public TResult(TResult other){
  __isset_bitfield=other.__isset_bitfield;
  this.id=other.id;
  this.rsv=other.rsv;
  if (other.isSetScreen_name()) {
    this.screen_name=other.screen_name;
  }
  if (other.isSetCreated_at()) {
    this.created_at=other.created_at;
  }
  if (other.isSetText()) {
    this.text=other.text;
  }
}

Fixed version (ground truth):
/** 
 * Performs a deep copy on <i>other</i>.
 */
public TResult(TResult other){
  __isset_bitfield=other.__isset_bitfield;
  this.id=other.id;
  this.rsv=other.rsv;
  if (other.isSetScreen_name()) {
    this.screen_name=other.screen_name;
  }
  this.epoch=other.epoch;
  if (other.isSetText()) {
    this.text=other.text;
  }
  this.followers_count=other.followers_count;
  this.statuses_count=other.statuses_count;
  if (other.isSetLang()) {
    this.lang=other.lang;
  }
  this.in_reply_to_status_id=other.in_reply_to_status_id;
  this.in_reply_to_user_id=other.in_reply_to_user_id;
  this.retweeted_status_id=other.retweeted_status_id;
  this.retweeted_user_id=other.retweeted_user_id;
  this.retweeted_count=other.retweeted_count;
}
Program: 177747
Project: 177747
Buggy source:
@Override public String toString(){
  StringBuilder sb=new StringBuilder("String_Node_Str");
  boolean first=true;
  sb.append("String_Node_Str");
  sb.append(this.id);
  first=false;
  if (!first)   sb.append("String_Node_Str");
  sb.append("String_Node_Str");
  sb.append(this.rsv);
  first=false;
  if (!first)   sb.append("String_Node_Str");
  sb.append("String_Node_Str");
  if (this.screen_name == null) {
    sb.append("String_Node_Str");
  }
 else {
    sb.append(this.screen_name);
  }
  first=false;
  if (!first)   sb.append("String_Node_Str");
  sb.append("String_Node_Str");
  if (this.created_at == null) {
    sb.append("String_Node_Str");
  }
 else {
    sb.append(this.created_at);
  }
  first=false;
  if (!first)   sb.append("String_Node_Str");
  sb.append("String_Node_Str");
  if (this.text == null) {
    sb.append("String_Node_Str");
  }
 else {
    sb.append(this.text);
  }
  first=false;
  sb.append("String_Node_Str");
  return sb.toString();
}

Fixed version (ground truth):
@Override public String toString(){
  StringBuilder sb=new StringBuilder("String_Node_Str");
  boolean first=true;
  sb.append("String_Node_Str");
  sb.append(this.id);
  first=false;
  if (!first)   sb.append("String_Node_Str");
  sb.append("String_Node_Str");
  sb.append(this.rsv);
  first=false;
  if (!first)   sb.append("String_Node_Str");
  sb.append("String_Node_Str");
  if (this.screen_name == null) {
    sb.append("String_Node_Str");
  }
 else {
    sb.append(this.screen_name);
  }
  first=false;
  if (!first)   sb.append("String_Node_Str");
  sb.append("String_Node_Str");
  sb.append(this.epoch);
  first=false;
  if (!first)   sb.append("String_Node_Str");
  sb.append("String_Node_Str");
  if (this.text == null) {
    sb.append("String_Node_Str");
  }
 else {
    sb.append(this.text);
  }
  first=false;
  if (!first)   sb.append("String_Node_Str");
  sb.append("String_Node_Str");
  sb.append(this.followers_count);
  first=false;
  if (!first)   sb.append("String_Node_Str");
  sb.append("String_Node_Str");
  sb.append(this.statuses_count);
  first=false;
  if (!first)   sb.append("String_Node_Str");
  sb.append("String_Node_Str");
  if (this.lang == null) {
    sb.append("String_Node_Str");
  }
 else {
    sb.append(this.lang);
  }
  first=false;
  if (!first)   sb.append("String_Node_Str");
  sb.append("String_Node_Str");
  sb.append(this.in_reply_to_status_id);
  first=false;
  if (!first)   sb.append("String_Node_Str");
  sb.append("String_Node_Str");
  sb.append(this.in_reply_to_user_id);
  first=false;
  if (!first)   sb.append("String_Node_Str");
  sb.append("String_Node_Str");
  sb.append(this.retweeted_status_id);
  first=false;
  if (!first)   sb.append("String_Node_Str");
  sb.append("String_Node_Str");
  sb.append(this.retweeted_user_id);
  first=false;
  if (!first)   sb.append("String_Node_Str");
  sb.append("String_Node_Str");
  sb.append(this.retweeted_count);
  first=false;
  sb.append("String_Node_Str");
  return sb.toString();
}
Program: 177748
Project: 177748
Buggy source:
/** 
 * Find the _Fields constant that matches fieldId, or null if its not found.
 */
public static _Fields findByThriftId(int fieldId){
switch (fieldId) {
case 1:
    return ID;
case 2:
  return RSV;
case 3:
return SCREEN_NAME;
case 4:
return CREATED_AT;
case 5:
return TEXT;
default :
return null;
}
}

Fixed version (ground truth):
/** 
 * Find the _Fields constant that matches fieldId, or null if its not found.
 */
public static _Fields findByThriftId(int fieldId){
switch (fieldId) {
case 1:
    return ID;
case 2:
  return RSV;
case 3:
return SCREEN_NAME;
case 4:
return EPOCH;
case 5:
return TEXT;
case 6:
return FOLLOWERS_COUNT;
case 7:
return STATUSES_COUNT;
case 8:
return LANG;
case 9:
return IN_REPLY_TO_STATUS_ID;
case 10:
return IN_REPLY_TO_USER_ID;
case 11:
return RETWEETED_STATUS_ID;
case 12:
return RETWEETED_USER_ID;
case 13:
return RETWEETED_COUNT;
default :
return null;
}
}
Program: 177754
Project: 177754
Buggy source:
public List<TResult> search(String query,long maxId,int numResults) throws TException {
  TQuery q=new TQuery();
  q.text=query;
  q.max_id=maxId;
  q.num_results=numResults;
  q.group=group;
  q.token=token;
  return client.search(q);
}

Fixed version (ground truth):
public List<TResult> search(String query,long maxId,int numResults) throws TException {
  TTransport transport=new TSocket(host,port);
  transport.open();
  TrecSearch.Client client=new TrecSearch.Client(new TBinaryProtocol(transport));
  TQuery q=new TQuery();
  q.text=query;
  q.max_id=maxId;
  q.num_results=numResults;
  q.group=group;
  q.token=token;
  List<TResult> results=client.search(q);
  transport.close();
  return results;
}
Program: 177755
Project: 177755
Buggy source:
public TrecSearchThriftClient(String host,int port,@Nullable String group,@Nullable String token) throws TTransportException {
  Preconditions.checkNotNull(host);
  Preconditions.checkArgument(port > 0);
  this.group=group;
  this.token=token;
  transport=new TSocket(host,port);
  transport.open();
  client=new TrecSearch.Client(new TBinaryProtocol(transport));
}

Fixed version (ground truth):
public TrecSearchThriftClient(String host,int port,@Nullable String group,@Nullable String token){
  Preconditions.checkNotNull(host);
  Preconditions.checkArgument(port > 0);
  this.group=group;
  this.token=token;
  this.host=host;
  this.port=port;
}
Program: 177756
Project: 177756
Buggy source:
public String extractTweet(String html){
  Preconditions.checkNotNull(html);
  Matcher matcher=TWEET_PATTERN.matcher(html);
  if (!matcher.find()) {
    return null;
  }
  matcher=URL_PATTERN.matcher(matcher.group(1));
  StringBuffer rawsb=new StringBuffer();
  while (matcher.find()) {
    String deu=matcher.group(1).trim();
    String href=matcher.group(2).trim();
    if (!deu.equals("String_Node_Str"))     matcher.appendReplacement(rawsb,deu);
 else     if (!href.equals("String_Node_Str"))     matcher.appendReplacement(rawsb,href);
 else     matcher.appendReplacement(rawsb,"String_Node_Str");
  }
  matcher.appendTail(rawsb);
  String tweet=rawsb.toString();
  tweet=tweet.replaceAll("String_Node_Str","String_Node_Str").replaceAll("String_Node_Str","String_Node_Str").replaceAll("String_Node_Str","String_Node_Str").trim();
  tweet=StringEscapeUtils.unescapeHtml(tweet);
  return tweet;
}

Fixed version (ground truth):
public String extractTweet(String html){
  Preconditions.checkNotNull(html);
  Matcher matcher=TWEET_PATTERN.matcher(html);
  if (!matcher.find()) {
    return null;
  }
  String tweet=matcher.group(1);
  matcher=URL_PATTERN.matcher(tweet);
  StringBuffer rawsb=new StringBuffer();
  while (matcher.find()) {
    HashMap<String,String> urls=new HashMap<String,String>();
    urls.put(matcher.group(1),matcher.group(2));
    urls.put(matcher.group(3),matcher.group(4));
    String deu=urls.containsKey("String_Node_Str") ? urls.get("String_Node_Str") : "String_Node_Str";
    String href=urls.containsKey("String_Node_Str") ? urls.get("String_Node_Str") : "String_Node_Str";
    if (!deu.equals("String_Node_Str"))     matcher.appendReplacement(rawsb,deu);
 else     if (!href.equals("String_Node_Str"))     matcher.appendReplacement(rawsb,href);
 else     matcher.appendReplacement(rawsb,"String_Node_Str");
  }
  matcher.appendTail(rawsb);
  tweet=rawsb.toString();
  tweet=tweet.replaceAll("String_Node_Str","String_Node_Str").replaceAll("String_Node_Str","String_Node_Str").replaceAll("String_Node_Str","String_Node_Str").trim();
  tweet=StringEscapeUtils.unescapeHtml(tweet);
  return tweet;
}
Program: 177757
Project: 177757
Buggy source:
private synchronized void retry() throws Exception {
  Thread.sleep(1000);
  if (!retries.containsKey(id)) {
    retries.put(id,1);
    LOG.warn("String_Node_Str" + url + "String_Node_Str");
    asyncHttpClient.prepareGet(url).execute(new TweetFetcherHandler(id,username,url,isRedirect));
    return;
  }
  int attempts=retries.get(id);
  if (attempts > MAX_RETRY_ATTEMPTS) {
    LOG.warn("String_Node_Str" + url + "String_Node_Str");
    return;
  }
  attempts++;
  LOG.warn("String_Node_Str" + url + "String_Node_Str"+ attempts);
  asyncHttpClient.prepareGet(url).execute(new TweetFetcherHandler(id,username,url,isRedirect));
  retries.put(id,attempts);
}

Fixed version (ground truth):
private synchronized void retry() throws Exception {
  Thread.sleep(1000);
  int attempts=retries.containsKey(id) ? retries.get(id) + 1 : 1;
  retries.put(id,attempts);
  if (attempts > MAX_RETRY_ATTEMPTS) {
    LOG.warn("String_Node_Str" + url + "String_Node_Str");
    return;
  }
  LOG.warn("String_Node_Str" + url + "String_Node_Str"+ attempts);
  asyncHttpClient.prepareGet(url).execute(new TweetFetcherHandler(id,username,url,isRedirect));
}
Program: 177758
Project: 177758
Buggy source:
public String extractTweet(String html){
  Preconditions.checkNotNull(html);
  Matcher matcher=TWEET_PATTERN.matcher(html);
  if (!matcher.find()) {
    return null;
  }
  String tweet=matcher.group(1);
  matcher=URL_PATTERN.matcher(tweet);
  StringBuffer rawsb=new StringBuffer();
  while (matcher.find()) {
    HashMap<String,String> urls=new HashMap<String,String>();
    urls.put(matcher.group(1),matcher.group(2));
    urls.put(matcher.group(3),matcher.group(4));
    String deu=urls.containsKey("String_Node_Str") ? urls.get("String_Node_Str") : "String_Node_Str";
    String href=urls.containsKey("String_Node_Str") ? urls.get("String_Node_Str") : "String_Node_Str";
    if (!deu.equals("String_Node_Str"))     matcher.appendReplacement(rawsb,deu);
 else     if (!href.equals("String_Node_Str"))     matcher.appendReplacement(rawsb,href);
 else     matcher.appendReplacement(rawsb,"String_Node_Str");
  }
  matcher.appendTail(rawsb);
  tweet=rawsb.toString();
  tweet=tweet.replaceAll("String_Node_Str","String_Node_Str").replaceAll("String_Node_Str","String_Node_Str").replaceAll("String_Node_Str","String_Node_Str").trim();
  tweet=StringEscapeUtils.unescapeHtml(tweet);
  return tweet;
}

Fixed version (ground truth):
public String extractTweet(String html){
  Preconditions.checkNotNull(html);
  Matcher matcher=TWEET_PATTERN.matcher(html);
  if (!matcher.find()) {
    return null;
  }
  String tweet=matcher.group(1);
  matcher=URL_PATTERN.matcher(tweet);
  StringBuffer rawsb=new StringBuffer();
  while (matcher.find()) {
    HashMap<String,String> urls=new HashMap<String,String>();
    urls.put(matcher.group(1),matcher.group(2));
    urls.put(matcher.group(3),matcher.group(4));
    String deu=urls.containsKey("String_Node_Str") ? urls.get("String_Node_Str") : "String_Node_Str";
    String href=urls.containsKey("String_Node_Str") ? urls.get("String_Node_Str") : "String_Node_Str";
    if (!deu.equals("String_Node_Str"))     matcher.appendReplacement(rawsb,deu.replaceAll("String_Node_Str","String_Node_Str"));
 else     if (!href.equals("String_Node_Str"))     matcher.appendReplacement(rawsb,href.replaceAll("String_Node_Str","String_Node_Str"));
 else     matcher.appendReplacement(rawsb,"String_Node_Str");
  }
  matcher.appendTail(rawsb);
  tweet=rawsb.toString();
  tweet=tweet.replaceAll("String_Node_Str","String_Node_Str").replaceAll("String_Node_Str","String_Node_Str").replaceAll("String_Node_Str","String_Node_Str").trim();
  tweet=StringEscapeUtils.unescapeHtml(tweet);
  return tweet;
}
Program: 177759
Project: 177759
Buggy source:
/** 
 * Deserializes the object.
 */
public void readFields(DataInput in) throws IOException {
  this.version=in.readByte();
  this.httpStatusCode=in.readInt();
  this.timestamp=in.readLong();
  this.html=in.readUTF();
}

Fixed version (ground truth):
/** 
 * Deserializes the object.
 */
public void readFields(DataInput in) throws IOException {
  this.version=in.readByte();
  this.httpStatusCode=in.readInt();
  this.timestamp=in.readLong();
  this.html=in.readUTF();
  String newIndicator="String_Node_Str" + this.timestamp + "String_Node_Str";
  if (html.startsWith(newIndicator)) {
    int numChunks=Integer.parseInt(html.substring(newIndicator.length()));
    this.html="String_Node_Str";
    for (int i=0; i < numChunks; i++) {
      this.html+=in.readUTF();
    }
  }
}
Program: 177760
Project: 177760
Buggy source:
/** 
 * Serializes this object.
 */
public void write(DataOutput out) throws IOException {
  out.writeByte(version);
  out.writeInt(httpStatusCode);
  out.writeLong(timestamp);
  out.writeUTF(html);
}

Fixed version (ground truth):
/** 
 * Serializes this object.
 */
public void write(DataOutput out) throws IOException {
  out.writeByte(version);
  out.writeInt(httpStatusCode);
  out.writeLong(timestamp);
  int numChunks=(int)Math.ceil((double)html.length() / (double)CHUNK_SIZE);
  String header="String_Node_Str" + timestamp + "String_Node_Str"+ numChunks;
  out.writeUTF(header);
  for (int i=0; i < numChunks - 1; i++) {
    out.writeUTF(html.substring(i * CHUNK_SIZE,(i + 1) * CHUNK_SIZE));
  }
  out.writeUTF(html.substring((numChunks - 1) * CHUNK_SIZE));
}
Program: 177761
Project: 177761
Buggy source:
public String extractTweet(String html){
  Preconditions.checkNotNull(html);
  Matcher matcher=TWEET_PATTERN.matcher(html);
  if (!matcher.find()) {
    return null;
  }
  matcher=URL_PATTERN.matcher(matcher.group(1));
  StringBuffer rawsb=new StringBuffer();
  while (matcher.find()) {
    String deu=matcher.group(1).trim();
    String href=matcher.group(2).trim();
    if (!deu.equals("String_Node_Str"))     matcher.appendReplacement(rawsb,deu);
 else     if (!href.equals("String_Node_Str"))     matcher.appendReplacement(rawsb,href);
 else     matcher.appendReplacement(rawsb,"String_Node_Str");
  }
  matcher.appendTail(rawsb);
  String tweet=rawsb.toString();
  tweet=tweet.replaceAll("String_Node_Str","String_Node_Str").replaceAll("String_Node_Str","String_Node_Str").replaceAll("String_Node_Str","String_Node_Str").trim();
  tweet=StringEscapeUtils.unescapeHtml(tweet);
  return tweet;
}

Fixed version (ground truth):
public String extractTweet(String html){
  Preconditions.checkNotNull(html);
  Matcher matcher=TWEET_PATTERN.matcher(html);
  if (!matcher.find()) {
    return null;
  }
  String tweet=matcher.group(1);
  matcher=URL_PATTERN.matcher(tweet);
  StringBuffer rawsb=new StringBuffer();
  while (matcher.find()) {
    HashMap<String,String> urls=new HashMap<String,String>();
    urls.put(matcher.group(1),matcher.group(2));
    urls.put(matcher.group(3),matcher.group(4));
    String deu=urls.containsKey("String_Node_Str") ? urls.get("String_Node_Str") : "String_Node_Str";
    String href=urls.containsKey("String_Node_Str") ? urls.get("String_Node_Str") : "String_Node_Str";
    if (!deu.equals("String_Node_Str"))     matcher.appendReplacement(rawsb,deu);
 else     if (!href.equals("String_Node_Str"))     matcher.appendReplacement(rawsb,href);
 else     matcher.appendReplacement(rawsb,"String_Node_Str");
  }
  matcher.appendTail(rawsb);
  tweet=rawsb.toString();
  tweet=tweet.replaceAll("String_Node_Str","String_Node_Str").replaceAll("String_Node_Str","String_Node_Str").replaceAll("String_Node_Str","String_Node_Str").trim();
  tweet=StringEscapeUtils.unescapeHtml(tweet);
  return tweet;
}
Program: 177764
Project: 177764
Buggy source:
protected void handleUserUpdate(final Context context,final SocializeSession session,User savedUser,UserSettings userSettings,final UserListener listener){
  try {
    SessionLock.lock();
    User sessionUser=session.getUser();
    sessionUser.update(savedUser);
    UserSettings settings=session.getUserSettings();
    settings.update(userSettings);
    if (sessionPersister != null) {
      sessionPersister.saveUser(context,sessionUser,userSettings);
    }
    if (listener != null) {
      listener.onUpdate(sessionUser);
    }
  }
  finally {
    SessionLock.unlock();
  }
}

Fixed version (ground truth):
protected void handleUserUpdate(final Context context,final SocializeSession session,User savedUser,UserSettings userSettings,final UserListener listener){
  try {
    SessionLock.lock();
    User sessionUser=session.getUser();
    sessionUser.update(savedUser);
    if (sessionPersister != null) {
      sessionPersister.saveUser(context,sessionUser,userSettings);
    }
    if (listener != null) {
      listener.onUpdate(sessionUser);
    }
  }
  finally {
    SessionLock.unlock();
  }
}
Program: 177765
Project: 177765
Buggy source:
@Override public void saveUserAsync(final Context context,final SocializeSession session,final User user,final UserListener listener){
  final UserSettings settings=session.getUserSettings();
  settings.update(user);
  String endpoint=ENDPOINT + user.getId() + "String_Node_Str";
  putAsPostAsync(session,endpoint,user,new UserSaveListener(){
    @Override public void onError(    SocializeException error){
      listener.onError(error);
    }
    @Override public void onUpdate(    User savedUser){
      UserSettings oldProfile=session.getUserSettings();
      if (settings.isNotificationsEnabled() && oldProfile.isNotificationsEnabled() != settings.isNotificationsEnabled()) {
        if (notificationRegistrationSystem != null) {
          notificationRegistrationSystem.registerC2DMAsync(context);
        }
      }
      handleUserUpdate(context,session,savedUser,settings,listener);
    }
  }
);
}

Fixed version (ground truth):
@Override public void saveUserAsync(final Context context,final SocializeSession session,final User userToBeSaved,final UserListener listener){
  final UserSettings settings=session.getUserSettings();
  settings.update(userToBeSaved);
  String endpoint=ENDPOINT + userToBeSaved.getId() + "String_Node_Str";
  putAsPostAsync(session,endpoint,userToBeSaved,new UserSaveListener(){
    @Override public void onError(    SocializeException error){
      listener.onError(error);
    }
    @Override public void onUpdate(    User savedUser){
      handleUserUpdate(context,session,savedUser,settings,listener);
    }
  }
);
}
Program: 177766
Project: 177766
Buggy source:
@Override public void saveUserSettings(final Context context,final SocializeSession session,final UserSettings settings,final UserListener listener){
  User user=session.getUser();
  user.setFirstName(settings.getFirstName());
  user.setLastName(settings.getLastName());
  if (settings.getImage() != null) {
    user.setProfilePicData(bitmapUtils.encode(settings.getImage()));
  }
  saveUserAsync(context,session,user,listener);
}

Fixed version (ground truth):
@Override public void saveUserSettings(final Context context,final SocializeSession session,final UserSettings settingsToBeSaved,final UserListener listener){
  User sessionUser=session.getUser();
  UserSettings sessionSettings=session.getUserSettings();
  boolean wasNotificationsEnabled=sessionSettings.isNotificationsEnabled();
  sessionUser.setFirstName(settingsToBeSaved.getFirstName());
  sessionUser.setLastName(settingsToBeSaved.getLastName());
  sessionSettings.update(settingsToBeSaved);
  boolean isNotificationsEnabled=sessionSettings.isNotificationsEnabled();
  if (settingsToBeSaved.getImage() != null) {
    sessionUser.setProfilePicData(bitmapUtils.encode(settingsToBeSaved.getImage()));
  }
  if (isNotificationsEnabled && !wasNotificationsEnabled && notificationRegistrationSystem != null) {
    notificationRegistrationSystem.registerC2DMAsync(context);
  }
  saveUserAsync(context,session,sessionUser,listener);
}
Program: 177767
Project: 177767
Buggy source:
@Override public void onUpdate(User savedUser){
  UserSettings oldProfile=session.getUserSettings();
  if (settings.isNotificationsEnabled() && oldProfile.isNotificationsEnabled() != settings.isNotificationsEnabled()) {
    if (notificationRegistrationSystem != null) {
      notificationRegistrationSystem.registerC2DMAsync(context);
    }
  }
  handleUserUpdate(context,session,savedUser,settings,listener);
}

Fixed version (ground truth):
@Override public void onUpdate(User savedUser){
  handleUserUpdate(context,session,savedUser,settings,listener);
}
Program: 177769
Project: 177769
Buggy source:
@Override public void onInit(Context context,IOCContainer container){
  setContext(context);
}

Fixed version (ground truth):
@Override public void onInit(Context ctx,IOCContainer container){
  setContext(ctx);
  if (FacebookUtils.isAvailable(ctx)) {
    try {
      FacebookUtils.extendAccessToken(context,null);
    }
 catch (    Exception e) {
      SocializeLogger.e("String_Node_Str",e);
    }
  }
}
Program: 177770
Project: 177770
Buggy source:
@Override public void onResume(Activity context){
  if (paused && FacebookUtils.isAvailable(context)) {
    try {
      FacebookUtils.extendAccessToken(context,null);
    }
 catch (    Exception e) {
      SocializeLogger.e("String_Node_Str",e);
    }
    paused=false;
  }
  if (!Socialize.getSocialize().isInitialized(context)) {
    Socialize.getSocialize().initAsync(context,new SocializeInitListener(){
      @Override public void onError(      SocializeException error){
        SocializeLogger.e("String_Node_Str",error);
      }
      @Override public void onInit(      Context context,      IOCContainer container){
        setContext(context);
      }
    }
);
  }
 else {
    setContext(context);
  }
}

Fixed version (ground truth):
@Override public void onResume(final Activity context){
  if (!Socialize.getSocialize().isInitialized(context)) {
    Socialize.getSocialize().initAsync(context,new SocializeInitListener(){
      @Override public void onError(      SocializeException error){
        SocializeLogger.e("String_Node_Str",error);
      }
      @Override public void onInit(      Context ctx,      IOCContainer container){
        setContext(ctx);
        if (FacebookUtils.isAvailable(ctx)) {
          try {
            FacebookUtils.extendAccessToken(context,null);
          }
 catch (          Exception e) {
            SocializeLogger.e("String_Node_Str",e);
          }
        }
      }
    }
);
  }
 else {
    if (paused && FacebookUtils.isAvailable(context)) {
      try {
        FacebookUtils.extendAccessToken(context,null);
      }
 catch (      Exception e) {
        SocializeLogger.e("String_Node_Str",e);
      }
      paused=false;
    }
    setContext(context);
  }
}
Program: 177771
Project: 177771
Buggy source:
public void setAuthListener(SocializeAuthListener listener){
  twitterAuthClickListener.setListener(listener);
}

Fixed version (ground truth):
public void setAuthListener(SocializeAuthListener listener){
  if (twitterAuthClickListener != null) {
    twitterAuthClickListener.setListener(listener);
  }
}
Program: 177773
Project: 177773
Buggy source:
public SocializeSession authenticate(Context context,String endpoint,String key,String secret,AuthProviderData data,String udid) throws SocializeException {
  SocializeSession session=provider.authenticate(endpoint,key,secret,data,udid);
  if (!session.isRestored()) {
    checkNotifications(context,session);
  }
  return session;
}

Fixed version (ground truth):
public SocializeSession authenticate(Context context,String endpoint,String key,String secret,AuthProviderData data,String udid) throws SocializeException {
  SocializeSession session=provider.authenticate(endpoint,key,secret,data,udid);
  checkNotifications(context,session);
  return session;
}
Program: 177775
Project: 177775
Buggy source:
public boolean isRegisteredC2DM(Context context){
  load(context);
  long timeout=config.getLongProperty(SocializeConfig.GCM_REGISTRATION_INTERVAL,DEFAULT_GCM_TIMEOUT);
  long timeSinceLast=(System.currentTimeMillis() - lastSocializeRegistrationTime);
  if (StringUtils.isEmpty(c2DMRegistrationId) || (timeSinceLast > timeout && timeout >= 0)) {
    return false;
  }
  return true;
}

Fixed version (ground truth):
public boolean isRegisteredC2DM(Context context){
  load(context);
  long timeout=config.getLongProperty(SocializeConfig.GCM_REGISTRATION_INTERVAL,DEFAULT_GCM_TIMEOUT);
  long timeSinceLast=(System.currentTimeMillis() - lastC2DMRegistrationTime);
  if (StringUtils.isEmpty(c2DMRegistrationId) || (timeSinceLast > timeout && timeout >= 0)) {
    return false;
  }
  return true;
}
Program: 177776
Project: 177776
Buggy source:
@Override public void registerC2DMFailed(Context context,String cause){
  notificationRegistrationState.setC2dmPendingRequestTime(0);
  notificationRegistrationState.save(context);
}

Fixed version (ground truth):
@Override public void registerC2DMFailed(Context context,String cause){
  notificationRegistrationState.setC2dmPendingRequestTime(0);
}
Program: 177777
Project: 177777
Buggy source:
@Override public synchronized void registerC2DM(final Context context){
  if (!isRegisteredC2DM(context) && !notificationRegistrationState.isC2dmPending() && config.getBooleanProperty(SocializeConfig.GCM_REGISTRATION_ENABLED,true)) {
    if (logger != null && logger.isDebugEnabled()) {
      logger.debug("String_Node_Str");
    }
    notificationRegistrationState.setC2dmPendingRequestTime(System.currentTimeMillis());
    notificationRegistrationState.save(context);
    @SuppressWarnings("String_Node_Str") String senderId=config.getProperty(SocializeConfig.SOCIALIZE_GCM_SENDER_ID,config.getProperty(SocializeConfig.SOCIALIZE_C2DM_SENDER_ID));
    String customSender=config.getProperty(SocializeConfig.SOCIALIZE_CUSTOM_GCM_SENDER_ID);
    if (!StringUtils.isEmpty(senderId) && !StringUtils.isEmpty(customSender)) {
      senderId=senderId + "String_Node_Str" + customSender;
    }
    Intent registrationIntent=newIntent(REQUEST_REGISTRATION_INTENT);
    registrationIntent.putExtra(EXTRA_APPLICATION_PENDING_INTENT,newPendingIntent(context));
    registrationIntent.putExtra(EXTRA_SENDER,senderId);
    context.startService(registrationIntent);
  }
 else {
    if (logger != null && logger.isDebugEnabled()) {
      logger.debug("String_Node_Str");
    }
  }
}

Fixed version (ground truth):
@Override public synchronized void registerC2DM(final Context context){
  if (!isRegisteredC2DM(context) && !notificationRegistrationState.isC2dmPending() && config.getBooleanProperty(SocializeConfig.GCM_REGISTRATION_ENABLED,true)) {
    if (logger != null && logger.isDebugEnabled()) {
      logger.debug("String_Node_Str");
    }
    notificationRegistrationState.setC2dmPendingRequestTime(System.currentTimeMillis());
    @SuppressWarnings("String_Node_Str") String senderId=config.getProperty(SocializeConfig.SOCIALIZE_GCM_SENDER_ID,config.getProperty(SocializeConfig.SOCIALIZE_C2DM_SENDER_ID));
    String customSender=config.getProperty(SocializeConfig.SOCIALIZE_CUSTOM_GCM_SENDER_ID);
    if (!StringUtils.isEmpty(senderId) && !StringUtils.isEmpty(customSender)) {
      senderId=senderId + "String_Node_Str" + customSender;
    }
    Intent registrationIntent=newIntent(REQUEST_REGISTRATION_INTENT);
    registrationIntent.putExtra(EXTRA_APPLICATION_PENDING_INTENT,newPendingIntent(context));
    registrationIntent.putExtra(EXTRA_SENDER,senderId);
    context.startService(registrationIntent);
  }
 else {
    if (logger != null && logger.isDebugEnabled()) {
      logger.debug("String_Node_Str");
    }
  }
}
Program: 177778
Project: 177778
Buggy source:
/** 
 * @param args
 */
@SuppressWarnings("String_Node_Str") public static void main(String[] args) throws Exception {
  if (args.length < 3) {
    System.err.println("String_Node_Str" + SendMessage.class.getSimpleName() + "String_Node_Str");
  }
 else {
    JSONParser p=new JSONParser();
    JSONObject json=(JSONObject)p.parse(args[2]);
    Set<String> keySet=(Set<String>)json.keySet();
    Builder builder=new Message.Builder();
    for (    String string : keySet) {
      builder.addData(string,json.get(string).toString());
    }
    Message message=builder.build();
    Sender sender=new Sender(args[0]);
    Result result=sender.send(message,args[1],5);
    System.out.println("String_Node_Str" + result.getMessageId());
    System.out.println("String_Node_Str" + result.getErrorCodeName());
  }
}

Fixed version (ground truth):
/** 
 * @param args
 */
public static void main(String[] args) throws Exception {
  String data="String_Node_Str";
  String key="String_Node_Str";
  String token="String_Node_Str";
  Builder builder=new Message.Builder();
  builder.addData("String_Node_Str",data);
  builder.addData("String_Node_Str","String_Node_Str");
  builder.collapseKey("String_Node_Str");
  Message message=builder.build();
  Sender sender=new Sender(key);
  Result result=sender.send(message,token,5);
  System.out.println("String_Node_Str" + result.getMessageId());
  System.out.println("String_Node_Str" + result.getErrorCodeName());
}
Program: 177779
Project: 177779
Buggy source:
public void testTimeUtils(){
  long second=1000;
  long minute=second * 60;
  long hour=minute * 60;
  long day=hour * 24;
  long month=day * 30;
  long a=30 * second;
  long b=20 * minute;
  long c=8 * hour;
  long d=15 * day;
  long e=2 * month;
  long f=400 * day;
  DateUtils timeUtils=new DateUtils();
  String aValue=timeUtils.getTimeString(a);
  String bValue=timeUtils.getTimeString(b);
  String cValue=timeUtils.getTimeString(c);
  String dValue=timeUtils.getTimeString(d);
  String eValue=timeUtils.getTimeString(e);
  String fValue=timeUtils.getTimeString(f);
  System.out.println(aValue);
  System.out.println(bValue);
  System.out.println(cValue);
  System.out.println(dValue);
  System.out.println(eValue);
  System.out.println(fValue);
  assertEquals("String_Node_Str",aValue);
  assertEquals("String_Node_Str",bValue);
  assertEquals("String_Node_Str",cValue);
  assertEquals("String_Node_Str",dValue);
  assertEquals("String_Node_Str",eValue);
  assertEquals("String_Node_Str",fValue);
}

Fixed version (ground truth):
public void testTimeUtils(){
  long second=1000;
  long minute=second * 60;
  long hour=minute * 60;
  long day=hour * 24;
  long month=day * 30;
  long a=30 * second;
  long b=20 * minute;
  long c=8 * hour;
  long d=15 * day;
  long e=2 * month;
  long f=400 * day;
  DateUtils timeUtils=new DateUtils();
  DefaultLocalizationService defaultLocalizationService=new DefaultLocalizationService();
  ResourceLocator resourceLocator=new ResourceLocator();
  defaultLocalizationService.setResourceLocator(resourceLocator);
  defaultLocalizationService.init(getContext());
  timeUtils.setLocalizationService(defaultLocalizationService);
  String aValue=timeUtils.getTimeString(a);
  String bValue=timeUtils.getTimeString(b);
  String cValue=timeUtils.getTimeString(c);
  String dValue=timeUtils.getTimeString(d);
  String eValue=timeUtils.getTimeString(e);
  String fValue=timeUtils.getTimeString(f);
  assertEquals("String_Node_Str",aValue);
  assertEquals("String_Node_Str",bValue);
  assertEquals("String_Node_Str",cValue);
  assertEquals("String_Node_Str",dValue);
  assertEquals("String_Node_Str",eValue);
  assertEquals("String_Node_Str",fValue);
}
Program: 177781
Project: 177781
Buggy source:
public void startSocialize(final boolean isMock){
  final ProgressDialog progress=SafeProgressDialog.show(Main.this,"String_Node_Str","String_Node_Str");
  new AsyncTask<Void,Void,Void>(){
    @Override protected Void doInBackground(    Void... params){
      if (isMock) {
        Socialize.init(Main.this,"String_Node_Str","String_Node_Str");
      }
 else {
        Socialize.init(Main.this);
      }
      return null;
    }
    @Override protected void onPostExecute(    Void result){
      progress.dismiss();
      Intent i=new Intent(Main.this,AuthenticateActivity.class);
      startActivity(i);
    }
  }
.execute((Void)null);
}

Fixed version (ground truth):
public void startSocialize(final boolean isMock){
  final ProgressDialog progress=SafeProgressDialog.show(Main.this,"String_Node_Str","String_Node_Str");
  new AsyncTask<Void,Void,Void>(){
    @Override protected Void doInBackground(    Void... params){
      if (isMock) {
        SocializeAccess.init(Main.this,"String_Node_Str","String_Node_Str");
      }
 else {
        Socialize.init(Main.this);
      }
      return null;
    }
    @Override protected void onPostExecute(    Void result){
      progress.dismiss();
      Intent i=new Intent(Main.this,AuthenticateActivity.class);
      startActivity(i);
    }
  }
.execute((Void)null);
}
Program: 177782
Project: 177782
Buggy source:
@Override protected Void doInBackground(Void... params){
  if (isMock) {
    Socialize.init(Main.this,"String_Node_Str","String_Node_Str");
  }
 else {
    Socialize.init(Main.this);
  }
  return null;
}

Fixed version (ground truth):
@Override protected Void doInBackground(Void... params){
  if (isMock) {
    SocializeAccess.init(Main.this,"String_Node_Str","String_Node_Str");
  }
 else {
    Socialize.init(Main.this);
  }
  return null;
}