nus-yam/ex-repair huggingface dataset:
Program: 31273
Project: 31273
Buggy source:
public synchronized void quit(){
  try {
    for (    Object handler : handlers) {
      Pop3Handler pop3Handler=(Pop3Handler)handler;
      pop3Handler.quit();
    }
  }
 catch (  Exception e) {
    throw new RuntimeException(e);
  }
  try {
    if (null != serverSocket && !serverSocket.isClosed()) {
      serverSocket.close();
      serverSocket=null;
    }
  }
 catch (  IOException e) {
    throw new RuntimeException(e);
  }
}

Fixed version (ground truth):
public synchronized void quit(){
  try {
synchronized (handlers) {
      for (      Pop3Handler handler : handlers) {
        handler.quit();
      }
    }
  }
 catch (  Exception e) {
    throw new RuntimeException(e);
  }
  try {
    if (null != serverSocket && !serverSocket.isClosed()) {
      serverSocket.close();
      serverSocket=null;
    }
  }
 catch (  IOException e) {
    throw new RuntimeException(e);
  }
}
Program: 31274
Project: 31274
Buggy source:
public void run(){
  try {
    try {
      serverSocket=openServerSocket();
      setRunning(true);
synchronized (this) {
        this.notifyAll();
      }
    }
 catch (    IOException e) {
      throw new RuntimeException(e);
    }
    while (keepOn()) {
      try {
        Socket clientSocket=serverSocket.accept();
        Pop3Handler pop3Handler=new Pop3Handler(new Pop3CommandRegistry(),managers.getUserManager(),clientSocket);
        handlers.add(pop3Handler);
        pop3Handler.start();
      }
 catch (      IOException ignored) {
      }
    }
  }
  finally {
    quit();
  }
}

Fixed version (ground truth):
public void run(){
  try {
    try {
      serverSocket=openServerSocket();
      setRunning(true);
synchronized (this) {
        this.notifyAll();
      }
    }
 catch (    IOException e) {
      throw new RuntimeException(e);
    }
    while (keepOn()) {
      try {
        Socket clientSocket=serverSocket.accept();
synchronized (handlers) {
          if (!keepOn()) {
            clientSocket.close();
          }
 else {
            Pop3Handler pop3Handler=new Pop3Handler(new Pop3CommandRegistry(),managers.getUserManager(),clientSocket);
            handlers.add(pop3Handler);
            pop3Handler.start();
          }
        }
      }
 catch (      IOException ignored) {
      }
    }
  }
  finally {
    quit();
  }
}
Program: 31275
Project: 31275
Buggy source:
public synchronized void quit(){
  try {
    for (    Object handler : handlers) {
      SmtpHandler smtpHandler=(SmtpHandler)handler;
      smtpHandler.quit();
    }
  }
 catch (  Exception e) {
    throw new RuntimeException(e);
  }
  try {
    if (null != serverSocket && !serverSocket.isClosed()) {
      serverSocket.close();
      serverSocket=null;
    }
  }
 catch (  Exception e) {
    throw new RuntimeException(e);
  }
}

Fixed version (ground truth):
public synchronized void quit(){
  try {
synchronized (handlers) {
      for (      SmtpHandler handler : handlers) {
        handler.quit();
      }
    }
  }
 catch (  Exception e) {
    throw new RuntimeException(e);
  }
  try {
    if (null != serverSocket && !serverSocket.isClosed()) {
      serverSocket.close();
      serverSocket=null;
    }
  }
 catch (  Exception e) {
    throw new RuntimeException(e);
  }
}
Program: 31276
Project: 31276
Buggy source:
public void run(){
  try {
    try {
      serverSocket=openServerSocket();
      setRunning(true);
synchronized (this) {
        this.notifyAll();
      }
    }
 catch (    IOException e) {
      throw new RuntimeException(e);
    }
    while (keepOn()) {
      try {
        Socket clientSocket=serverSocket.accept();
        SmtpHandler smtpHandler=new SmtpHandler(new SmtpCommandRegistry(),managers.getSmtpManager(),new InMemoryWorkspace(),clientSocket);
        handlers.add(smtpHandler);
        smtpHandler.start();
      }
 catch (      SocketException ignored) {
      }
catch (      IOException e) {
        e.printStackTrace();
        break;
      }
    }
  }
  finally {
    quit();
  }
}

Fixed version (ground truth):
public void run(){
  try {
    try {
      serverSocket=openServerSocket();
      setRunning(true);
synchronized (this) {
        this.notifyAll();
      }
    }
 catch (    IOException e) {
      throw new RuntimeException(e);
    }
    while (keepOn()) {
      try {
        Socket clientSocket=serverSocket.accept();
synchronized (handlers) {
          if (!keepOn()) {
            clientSocket.close();
          }
 else {
            SmtpHandler smtpHandler=new SmtpHandler(new SmtpCommandRegistry(),managers.getSmtpManager(),new InMemoryWorkspace(),clientSocket);
            handlers.add(smtpHandler);
            smtpHandler.start();
          }
        }
      }
 catch (      SocketException ignored) {
      }
catch (      IOException e) {
        e.printStackTrace();
        break;
      }
    }
  }
  finally {
    quit();
  }
}
Program: 31277
Project: 31277
Buggy source:
/** 
 * Reads a "date-time" argument from the request. TODO handle timezones properly
 */
public Date dateTime(ImapRequestLineReader request) throws ProtocolException {
  char next=request.nextWordChar();
  String dateString;
  if (next == '"') {
    dateString=consumeQuoted(request);
  }
 else {
    throw new ProtocolException("String_Node_Str");
  }
  DateFormat dateFormat=new SimpleDateFormat("String_Node_Str");
  try {
    return dateFormat.parse(dateString);
  }
 catch (  ParseException e) {
    throw new ProtocolException("String_Node_Str");
  }
}

Fixed version (ground truth):
/** 
 * Reads a "date-time" argument from the request. TODO handle timezones properly
 */
public Date dateTime(ImapRequestLineReader request) throws ProtocolException {
  char next=request.nextWordChar();
  String dateString;
  if (next == '"') {
    dateString=consumeQuoted(request);
  }
 else {
    throw new ProtocolException("String_Node_Str");
  }
  DateFormat dateFormat=new SimpleDateFormat("String_Node_Str",Locale.US);
  try {
    return dateFormat.parse(dateString);
  }
 catch (  ParseException e) {
    throw new ProtocolException("String_Node_Str");
  }
}
Program: 31278
Project: 31278
Buggy source:
/** 
 * Reads a "date" argument from the request. TODO handle timezones properly
 */
public Date date(ImapRequestLineReader request) throws ProtocolException {
  char next=request.nextWordChar();
  String dateString;
  if (next == '"') {
    dateString=consumeQuoted(request);
  }
 else {
    dateString=atom(request);
  }
  DateFormat dateFormat=new SimpleDateFormat("String_Node_Str");
  try {
    return dateFormat.parse(dateString);
  }
 catch (  ParseException e) {
    throw new ProtocolException("String_Node_Str");
  }
}

Fixed version (ground truth):
/** 
 * Reads a "date" argument from the request. TODO handle timezones properly
 */
public Date date(ImapRequestLineReader request) throws ProtocolException {
  char next=request.nextWordChar();
  String dateString;
  if (next == '"') {
    dateString=consumeQuoted(request);
  }
 else {
    dateString=atom(request);
  }
  DateFormat dateFormat=new SimpleDateFormat("String_Node_Str",Locale.US);
  try {
    return dateFormat.parse(dateString);
  }
 catch (  ParseException e) {
    throw new ProtocolException("String_Node_Str");
  }
}
Program: 31279
Project: 31279
Buggy source:
private void getParameters(StringBuffer buf){
  if (parameters == null || parameters.isEmpty()) {
    buf.append(NIL);
  }
 else {
    buf.append(LB);
    Iterator it=parameters.iterator();
    while (it.hasNext()) {
      buf.append((String)it.next());
    }
    buf.append(RB);
  }
}

Fixed version (ground truth):
private void getParameters(StringBuffer buf){
  if (parameters == null || parameters.isEmpty()) {
    buf.append(NIL);
  }
 else {
    buf.append(LB);
    Iterator it=parameters.iterator();
    while (it.hasNext()) {
      buf.append((String)it.next());
      if (it.hasNext())       buf.append(SP);
    }
    buf.append(RB);
  }
}
Program: 31280
Project: 31280
Buggy source:
public void testSendTextEmailTest() throws Exception {
  GreenMail greenMail=new GreenMail(ServerSetupTest.SMTP_IMAP);
  greenMail.setUser("String_Node_Str","String_Node_Str");
  greenMail.start();
  try {
    GreenMailUtil.sendTextEmail("String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str",ServerSetupTest.SMTP);
    greenMail.waitForIncomingEmail(1);
    Properties p=new Properties();
    p.setProperty("String_Node_Str","String_Node_Str");
    Session session=GreenMailUtil.getSession(ServerSetupTest.IMAP,p);
    Store store=session.getStore("String_Node_Str");
    store.connect("String_Node_Str","String_Node_Str");
    Folder folder=store.getFolder("String_Node_Str");
    folder.open(Folder.READ_ONLY);
    Message[] msgs=folder.getMessages();
    assertTrue(null != msgs && msgs.length == 1);
    Message m=msgs[0];
    assertEquals("String_Node_Str",m.getSubject());
    Address a[]=m.getRecipients(Message.RecipientType.TO);
    assertTrue(null != a && a.length == 1 && a[0].toString().equals("String_Node_Str"));
    a=m.getFrom();
    assertTrue(null != a && a.length == 1 && a[0].toString().equals("String_Node_Str"));
    assertTrue(m.getContentType().toLowerCase().startsWith("String_Node_Str"));
    assertEquals("String_Node_Str",m.getContent());
  }
  finally {
    greenMail.stop();
  }
}

Fixed version (ground truth):
public void testSendTextEmailTest() throws Exception {
  GreenMail greenMail=new GreenMail(ServerSetupTest.SMTP_IMAP);
  greenMail.setUser("String_Node_Str","String_Node_Str");
  greenMail.start();
  try {
    GreenMailUtil.sendTextEmail("String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str",ServerSetupTest.SMTP);
    greenMail.waitForIncomingEmail(1);
    Properties p=new Properties();
    Session session=GreenMailUtil.getSession(ServerSetupTest.IMAP,p);
    Store store=session.getStore("String_Node_Str");
    store.connect("String_Node_Str","String_Node_Str");
    Folder folder=store.getFolder("String_Node_Str");
    folder.open(Folder.READ_ONLY);
    Message[] msgs=folder.getMessages();
    assertTrue(null != msgs && msgs.length == 1);
    Message m=msgs[0];
    assertEquals("String_Node_Str",m.getSubject());
    Address a[]=m.getRecipients(Message.RecipientType.TO);
    assertTrue(null != a && a.length == 1 && a[0].toString().equals("String_Node_Str"));
    a=m.getFrom();
    assertTrue(null != a && a.length == 1 && a[0].toString().equals("String_Node_Str"));
    assertTrue(m.getContentType().toLowerCase().startsWith("String_Node_Str"));
    assertEquals("String_Node_Str",m.getContent());
  }
  finally {
    greenMail.stop();
  }
}
Program: 31281
Project: 31281
Buggy source:
public void expunged(int msn){
synchronized (_expungedMsns) {
    _expungedMsns.add(new Integer(msn));
  }
}

Fixed version (ground truth):
public void expunged(int msn){
synchronized (_expungedMsns) {
    _expungedMsns.add(Integer.valueOf(msn));
  }
}
Program: 31282
Project: 31282
Buggy source:
public void flagsUpdated(int msn,Flags flags,Long uid){
  _modifiedFlags.put(new Integer(msn),new FlagUpdate(msn,uid,flags));
}

Fixed version (ground truth):
public void flagsUpdated(int msn,Flags flags,Long uid){
  _modifiedFlags.put(Integer.valueOf(msn),new FlagUpdate(msn,uid,flags));
}
Program: 31283
Project: 31283
Buggy source:
public void enqueue(MovingMessage msg){
  Iterator iterator=msg.getRecipientIterator();
  String tos="String_Node_Str";
  while (iterator.hasNext()) {
    MailAddress username=(MailAddress)iterator.next();
    if (tos.length() > 0) {
      tos+="String_Node_Str";
    }
    tos+=username;
  }
  try {
    msg.getMessage().addRecipients(Message.RecipientType.TO,tos);
  }
 catch (  MessagingException e) {
    throw new RuntimeException(e);
  }
  iterator=msg.getRecipientIterator();
  while (iterator.hasNext()) {
    MailAddress username=(MailAddress)iterator.next();
    handle(msg,username);
  }
}

Fixed version (ground truth):
public void enqueue(MovingMessage msg){
  Iterator iterator=msg.getRecipientIterator();
  StringBuilder tos=new StringBuilder();
  while (iterator.hasNext()) {
    MailAddress username=(MailAddress)iterator.next();
    if (tos.length() > 0) {
      tos.append(',');
    }
    tos.append(username);
  }
  try {
    msg.getMessage().addRecipients(Message.RecipientType.TO,tos.toString());
  }
 catch (  MessagingException e) {
    throw new RuntimeException(e);
  }
  iterator=msg.getRecipientIterator();
  while (iterator.hasNext()) {
    MailAddress username=(MailAddress)iterator.next();
    handle(msg,username);
  }
}
Program: 31285
Project: 31285
Buggy source:
/** 
 * {@inheritDoc}Returns the decoded version of the character starting at index, or null if no decoding is possible. Formats all are legal (case sensitive) In ANSI_MODE '' decodes to ' In MYSQL_MODE \x decodes to x (or a small list of specials)
 */
public Character decodeCharacter(PushbackString input){
switch (mode) {
case ANSI:
    return decodeCharacterANSI(input);
case STANDARD:
  return decodeCharacterMySQL(input);
}
return null;
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}Returns the decoded version of the character starting at index, or null if no decoding is possible. Formats all are legal (case sensitive) In ANSI_MODE '' decodes to ' In MYSQL_MODE \x decodes to x (or a small list of specials)
 */
public Character decodeCharacter(PushbackSequence<Character> input){
switch (mode) {
case ANSI:
    return decodeCharacterANSI(input);
case STANDARD:
  return decodeCharacterMySQL(input);
}
return null;
}
Program: 31286
Project: 31286
Buggy source:
/** 
 * {@inheritDoc}Returns the decoded version of the character starting at index, or null if no decoding is possible. Formats all are legal '' decodes to '
 */
public Character decodeCharacter(PushbackString input){
  input.mark();
  Character first=input.next();
  if (first == null) {
    input.reset();
    return null;
  }
  if (first.charValue() != '\'') {
    input.reset();
    return null;
  }
  Character second=input.next();
  if (second == null) {
    input.reset();
    return null;
  }
  if (second.charValue() != '\'') {
    input.reset();
    return null;
  }
  return (Character.valueOf('\''));
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}Returns the decoded version of the character starting at index, or null if no decoding is possible. Formats all are legal '' decodes to '
 */
public Character decodeCharacter(PushbackSequence<Character> input){
  input.mark();
  Character first=input.next();
  if (first == null) {
    input.reset();
    return null;
  }
  if (first.charValue() != '\'') {
    input.reset();
    return null;
  }
  Character second=input.next();
  if (second == null) {
    input.reset();
    return null;
  }
  if (second.charValue() != '\'') {
    input.reset();
    return null;
  }
  return (Character.valueOf('\''));
}
Program: 31287
Project: 31287
Buggy source:
/** 
 * {@inheritDoc}Formats all are legal both upper/lower case: %hh;
 * @param input encoded character using percent characters (such as URL encoding)
 */
public Character decodeCharacter(PushbackString input){
  input.mark();
  Character first=input.next();
  if (first == null) {
    input.reset();
    return null;
  }
  if (first != '%') {
    input.reset();
    return null;
  }
  StringBuilder sb=new StringBuilder();
  for (int i=0; i < 2; i++) {
    Character c=input.nextHex();
    if (c != null)     sb.append(c);
  }
  if (sb.length() == 2) {
    try {
      int i=Integer.parseInt(sb.toString(),16);
      if (Character.isValidCodePoint(i)) {
        return (char)i;
      }
    }
 catch (    NumberFormatException ignored) {
    }
  }
  input.reset();
  return null;
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}Formats all are legal both upper/lower case: %hh;
 * @param input encoded character using percent characters (such as URL encoding)
 */
public Character decodeCharacter(PushbackSequence<Character> input){
  input.mark();
  Character first=input.next();
  if (first == null) {
    input.reset();
    return null;
  }
  if (first != '%') {
    input.reset();
    return null;
  }
  StringBuilder sb=new StringBuilder();
  for (int i=0; i < 2; i++) {
    Character c=input.nextHex();
    if (c != null)     sb.append(c);
  }
  if (sb.length() == 2) {
    try {
      int i=Integer.parseInt(sb.toString(),16);
      if (Character.isValidCodePoint(i)) {
        return (char)i;
      }
    }
 catch (    NumberFormatException ignored) {
    }
  }
  input.reset();
  return null;
}
Program: 31288
Project: 31288
Buggy source:
/** 
 * {@inheritDoc}Returns the decoded version of the character starting at index, or null if no decoding is possible. <p> Formats all are legal both upper/lower case: \x - all special characters
 */
public Character decodeCharacter(PushbackString input){
  input.mark();
  Character first=input.next();
  if (first == null) {
    input.reset();
    return null;
  }
  if (first.charValue() != '\\') {
    input.reset();
    return null;
  }
  Character second=input.next();
  return second;
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}Returns the decoded version of the character starting at index, or null if no decoding is possible. <p> Formats all are legal both upper/lower case: \x - all special characters
 */
public Character decodeCharacter(PushbackSequence<Character> input){
  input.mark();
  Character first=input.next();
  if (first == null) {
    input.reset();
    return null;
  }
  if (first.charValue() != '\\') {
    input.reset();
    return null;
  }
  Character second=input.next();
  return second;
}
Program: 31289
Project: 31289
Buggy source:
/** 
 * Returns the decoded version of the character starting at index, or null if no decoding is possible. Formats all are legal both upper/lower case: "x - all special characters " + chr(x) + "  - not supported yet
 */
public Character decodeCharacter(PushbackString input){
  input.mark();
  Character first=input.next();
  if (first == null) {
    input.reset();
    return null;
  }
  if (first.charValue() != '\"') {
    input.reset();
    return null;
  }
  Character second=input.next();
  return second;
}

Fixed version (ground truth):
/** 
 * Returns the decoded version of the character starting at index, or null if no decoding is possible. Formats all are legal both upper/lower case: "x - all special characters " + chr(x) + "  - not supported yet
 */
public Character decodeCharacter(PushbackSequence<Character> input){
  input.mark();
  Character first=input.next();
  if (first == null) {
    input.reset();
    return null;
  }
  if (first.charValue() != '\"') {
    input.reset();
    return null;
  }
  Character second=input.next();
  return second;
}
Program: 31290
Project: 31290
Buggy source:
/** 
 * {@inheritDoc}Returns the decoded version of the character starting at index, or null if no decoding is possible. <p> Formats all are legal both upper/lower case: ^x - all special characters
 */
public Character decodeCharacter(PushbackString input){
  input.mark();
  Character first=input.next();
  if (first == null) {
    input.reset();
    return null;
  }
  if (first.charValue() != '^') {
    input.reset();
    return null;
  }
  Character second=input.next();
  return second;
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}Returns the decoded version of the character starting at index, or null if no decoding is possible. <p> Formats all are legal both upper/lower case: ^x - all special characters
 */
public Character decodeCharacter(PushbackSequence<Character> input){
  input.mark();
  Character first=input.next();
  if (first == null) {
    input.reset();
    return null;
  }
  if (first.charValue() != '^') {
    input.reset();
    return null;
  }
  Character second=input.next();
  return second;
}
Program: 31291
Project: 31291
Buggy source:
/** 
 * Encode a String so that it can be safely used in a specific context.
 * @param immune
 * @param input the String to encode
 * @return the encoded String
 */
public String encode(char[] immune,String input){
  StringBuilder sb=new StringBuilder();
  for (int i=0; i < input.length(); i++) {
    char c=input.charAt(i);
    sb.append(encodeCharacter(immune,c));
  }
  return sb.toString();
}

Fixed version (ground truth):
/** 
 * Encode a String so that it can be safely used in a specific context.
 * @param immune
 * @param input the String to encode
 * @return the encoded String
 */
public String encode(char[] immune,String input){
  StringBuilder sb=new StringBuilder();
  for (int offset=0; offset < input.length(); ) {
    final int point=input.codePointAt(offset);
    if (Character.isBmpCodePoint(point)) {
      sb.append(encodeCharacter(immune,(char)point));
    }
 else {
      sb.append(encodeCharacter(immune,point));
    }
    offset+=Character.charCount(point);
  }
  return sb.toString();
}
Program: 31292
Project: 31292
Buggy source:
public static String toHex(char c){
  return Integer.toHexString(c);
}

Fixed version (ground truth):
public static String toHex(int c){
  return Integer.toHexString(c);
}
Program: 31293
Project: 31293
Buggy source:
/** 
 * Lookup the hex value of any character that is not alphanumeric.
 * @param c The character to lookup.return null if alphanumeric or the character codein hex.
 */
public static String getHexForNonAlphanumeric(char c){
  if (c < 0xFF)   return hex[c];
  return toHex(c);
}

Fixed version (ground truth):
/** 
 * Lookup the hex value of any character that is not alphanumeric.
 * @param c The character to lookup.return null if alphanumeric or the character codein hex.
 */
public static String getHexForNonAlphanumeric(int c){
  if (c < 0xFF)   return hex[c];
  return toHex(c);
}
Program: 31294
Project: 31294
Buggy source:
/** 
 * Default implementation that should be overridden in specific codecs.
 * @param immune
 * @param c the Character to encode
 * @return the encoded Character
 */
public String encodeCharacter(char[] immune,Character c){
  return "String_Node_Str" + c;
}

Fixed version (ground truth):
/** 
 * Default codepoint implementation that should be overridden in specific codecs.
 * @param immune
 * @param codePoint the integer to encode
 * @return the encoded Character
 */
public String encodeCharacter(char[] immune,int codePoint){
  return new StringBuilder().appendCodePoint(codePoint).toString();
}
Program: 31295
Project: 31295
Buggy source:
/** 
 * {@inheritDoc}Encodes a Character for safe use in an HTML entity field.
 * @param immune
 */
public String encodeCharacter(char[] immune,Character c){
  if (containsCharacter(c,immune)) {
    return "String_Node_Str" + c;
  }
  String hex=Codec.getHexForNonAlphanumeric(c);
  if (hex == null) {
    return "String_Node_Str" + c;
  }
  if ((c <= 0x1f && c != '\t' && c != '\n' && c != '\r') || (c >= 0x7f && c <= 0x9f)) {
    hex=REPLACEMENT_HEX;
    c=REPLACEMENT_CHAR;
  }
  String entityName=(String)characterToEntityMap.get(c);
  if (entityName != null) {
    return "String_Node_Str" + entityName + "String_Node_Str";
  }
  return "String_Node_Str" + hex + "String_Node_Str";
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}Encodes a Character for safe use in an HTML entity field.
 * @param immune
 */
public String encodeCharacter(char[] immune,int codePoint){
  String hex=Codec.getHexForNonAlphanumeric(codePoint);
  return "String_Node_Str" + hex + "String_Node_Str";
}
Program: 31296
Project: 31296
Buggy source:
public InterceptingServletOutputStream(ServletOutputStream os,boolean buffered) throws FileNotFoundException, IOException {
  super();
  this.os=os;
  this.buffering=buffered;
  this.committed=false;
  this.closed=false;
  this.out=new RandomAccessFile(File.createTempFile("String_Node_Str","String_Node_Str"),"String_Node_Str");
}

Fixed version (ground truth):
public InterceptingServletOutputStream(ServletOutputStream os,boolean buffered) throws FileNotFoundException, IOException {
  super();
  this.os=os;
  this.buffering=buffered;
  this.committed=false;
  this.closed=false;
  File tempFile=File.createTempFile("String_Node_Str","String_Node_Str");
  this.out=new RandomAccessFile(tempFile,"String_Node_Str");
  tempFile.deleteOnExit();
}
Program: 31299
Project: 31299
Buggy source:
/** 
 * {@inheritDoc}
 */
public void assertValid(String context,String input) throws ValidationException {
  getValid(context,input,null);
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
public void assertValid(String context,String input) throws ValidationException {
  getValid(context,input);
}
Program: 31300
Project: 31300
Buggy source:
/** 
 * {@inheritDoc}
 */
public Object getValid(String context,String input,ValidationErrorList errorList) throws ValidationException {
  Object valid=null;
  try {
    valid=getValid(context,input);
  }
 catch (  ValidationException e) {
    errorList.addError(context,e);
  }
  return valid;
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
public Object getValid(String context,String input,ValidationErrorList errorList) throws ValidationException {
}
Program: 31301
Project: 31301
Buggy source:
/** 
 * Union multiple character arrays.
 * @param list the char[]s to union
 * @return the union of the char[]s
 */
public static char[] union(char[]... list){
  StringBuilder sb=new StringBuilder();
  for (  char[] characters : list) {
    for (int i=0; i < list.length; i++) {
      if (!contains(sb,characters[i]))       sb.append(list[i]);
    }
  }
  char[] toReturn=new char[sb.length()];
  sb.getChars(0,sb.length(),toReturn,0);
  Arrays.sort(toReturn);
  return toReturn;
}

Fixed version (ground truth):
/** 
 * Union multiple character arrays.
 * @param list the char[]s to union
 * @return the union of the char[]s
 */
public static char[] union(char[]... list){
  StringBuilder sb=new StringBuilder();
  for (  char[] characters : list) {
    for (    char c : characters) {
      if (!contains(sb,c))       sb.append(c);
    }
  }
  char[] toReturn=new char[sb.length()];
  sb.getChars(0,sb.length(),toReturn,0);
  Arrays.sort(toReturn);
  return toReturn;
}
Program: 31302
Project: 31302
Buggy source:
/** 
 * Test of getRandomString method, of class org.owasp.esapi.Randomizer.
 */
public void testGetRandomString(){
  System.out.println("String_Node_Str");
  int length=20;
  Randomizer instance=ESAPI.randomizer();
  for (int i=0; i < 100; i++) {
    String result=instance.getRandomString(length,EncoderConstants.CHAR_ALPHANUMERICS);
    for (int j=0; j < result.length(); j++) {
      if (!Codec.containsCharacter(result.charAt(j),EncoderConstants.CHAR_ALPHANUMERICS)) {
        fail();
      }
    }
    assertEquals(length,result.length());
  }
}

Fixed version (ground truth):
/** 
 * Test of getRandomString method, of class org.owasp.esapi.Randomizer.
 */
public void testGetRandomString(){
  System.out.println("String_Node_Str");
  int length=20;
  int trials=1000;
  Randomizer instance=ESAPI.randomizer();
  int[] counts=new int[128];
  for (int i=0; i < 1000; i++) {
    String result=instance.getRandomString(length,EncoderConstants.CHAR_ALPHANUMERICS);
    for (int j=0; j < result.length(); j++) {
      char c=result.charAt(j);
      counts[c]++;
    }
    assertEquals(length,result.length());
  }
  int min=Integer.MAX_VALUE;
  int max=0;
  for (int i=0; i < 128; i++) {
    if (counts[i] > max) {
      max=counts[i];
    }
    if (counts[i] > 0 && counts[i] < min) {
      min=counts[i];
    }
    if (max - min > trials / 10) {
      fail("String_Node_Str");
    }
  }
}
Program: 31303
Project: 31303
Buggy source:
/** 
 * Add X-FRAME-OPTIONS response header to tell IE8 (and any other browsers who decide to implement) not to display this content in a frame. For details, please refer to  {@link http://blogs.msdn.com/sdl/archive/2009/02/05/clickjacking-defense-in-ie8.aspx}.
 * @param request The request object.
 * @param response The response object.
 * @param chain Refers to the {@code FilterChain} object to pass control to thenext  {@code Filter}.
 * @throws IOException
 * @throws ServletException
 */
public void doFilter(ServletRequest request,ServletResponse response,FilterChain chain) throws IOException, ServletException {
  HttpServletResponse res=(HttpServletResponse)response;
  chain.doFilter(request,response);
  res.addHeader("String_Node_Str",mode);
}

Fixed version (ground truth):
/** 
 * Add X-FRAME-OPTIONS response header to tell IE8 (and any other browsers who decide to implement) not to display this content in a frame. For details, please refer to  {@link http://blogs.msdn.com/sdl/archive/2009/02/05/clickjacking-defense-in-ie8.aspx}.
 * @param request The request object.
 * @param response The response object.
 * @param chain Refers to the {@code FilterChain} object to pass control to thenext  {@code Filter}.
 * @throws IOException
 * @throws ServletException
 */
public void doFilter(ServletRequest request,ServletResponse response,FilterChain chain) throws IOException, ServletException {
  HttpServletResponse res=(HttpServletResponse)response;
  res.addHeader("String_Node_Str",mode);
  chain.doFilter(request,response);
}
Program: 31304
Project: 31304
Buggy source:
/** 
 * {@inheritDoc}Explanation: Since this class extends Log4j's Logger class which has a  {@code getLevel()} method that returns {@code extended by org.apache.log4j.Level}, we can't simply have a   {@code getLevel()} that simply returns an {@code int}. Hence we renamed it to   {@code getESAPILevel()}.
 */
public int getESAPILevel(){
  return super.getLevel().toInt();
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}Explanation: Since this class extends Log4j's Logger class which has a  {@code getLevel()} method that returns {@code extended by org.apache.log4j.Level}, we can't simply have a   {@code getLevel()} that simply returns an {@code int}. Hence we renamed it to   {@code getESAPILevel()}.
 */
public int getESAPILevel(){
  Level level=super.getLevel();
  return (level == null) ? Level.OFF_INT : level.toInt();
}
Program: 31305
Project: 31305
Buggy source:
/** 
 * Return this   {@code CipherText} object as a portable (i.e., network byteordered) serialized byte array. Note this is <b>not</b> the same as returning a serialized object using Java serialization. Instead this is a representation that all ESAPI implementations will use to pass ciphertext between different programming language implementations.
 * @return A network byte-ordered serialized representation of this object.
 * @throws EncryptionException
 */
public byte[] asPortableSerializedByteArray() throws EncryptionException {
  if (!collectedAll()) {
    String msg="String_Node_Str" + "String_Node_Str";
    throw new EncryptionException("String_Node_Str",msg);
  }
  boolean usesMAC=ESAPI.securityConfiguration().useMACforCipherText();
  if (usesMAC && !macComputed()) {
    String msg="String_Node_Str" + getCipherMode() + "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str";
    throw new EncryptionException("String_Node_Str",msg);
  }
  return new CipherTextSerializer(this).asSerializedByteArray();
}

Fixed version (ground truth):
/** 
 * Return this   {@code CipherText} object as a portable (i.e., network byteordered) serialized byte array. Note this is <b>not</b> the same as returning a serialized object using Java serialization. Instead this is a representation that all ESAPI implementations will use to pass ciphertext between different programming language implementations.
 * @return A network byte-ordered serialized representation of this object.
 * @throws EncryptionException
 */
public byte[] asPortableSerializedByteArray() throws EncryptionException {
  if (!collectedAll()) {
    String msg="String_Node_Str" + "String_Node_Str";
    throw new EncryptionException("String_Node_Str",msg);
  }
  boolean requiresMAC=ESAPI.securityConfiguration().useMACforCipherText();
  if (requiresMAC && !macComputed()) {
    String msg="String_Node_Str" + getCipherMode() + "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str";
    throw new EncryptionException("String_Node_Str",msg);
  }
  return new CipherTextSerializer(this).asSerializedByteArray();
}
Program: 31306
Project: 31306
Buggy source:
/** 
 * {@inheritDoc}
 */
public String resetCSRFToken() throws AuthenticationException {
  csrfToken=ESAPI.randomizer().getRandomString(8,Encoder.CHAR_ALPHANUMERICS);
  return csrfToken;
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
public String resetCSRFToken() throws AuthenticationException {
  csrfToken=ESAPI.randomizer().getRandomString(8,EncoderConstants.CHAR_ALPHANUMERICS);
  return csrfToken;
}
Program: 31307
Project: 31307
Buggy source:
/** 
 * Encode a String so that it can be safely used in a specific context.
 * @param immune
 * @param input the String to encode
 * @return the encoded String
 */
public String encode(char[] immune,String input){
  StringBuilder sb=new StringBuilder();
  boolean encoding=false;
  boolean inquotes=false;
  for (int i=0; i < input.length(); i++) {
    char c=input.charAt(i);
    if (containsCharacter(c,DefaultEncoder.CHAR_ALPHANUMERICS) || containsCharacter(c,immune)) {
      if (encoding && i > 0)       sb.append("String_Node_Str");
      if (!inquotes && i > 0)       sb.append("String_Node_Str");
      sb.append(c);
      inquotes=true;
      encoding=false;
    }
 else {
      if (inquotes && i < input.length())       sb.append("String_Node_Str");
      if (i > 0)       sb.append("String_Node_Str");
      sb.append(encodeCharacter(immune,Character.valueOf(c)));
      inquotes=false;
      encoding=true;
    }
  }
  return sb.toString();
}

Fixed version (ground truth):
/** 
 * Encode a String so that it can be safely used in a specific context.
 * @param immune
 * @param input the String to encode
 * @return the encoded String
 */
public String encode(char[] immune,String input){
  StringBuilder sb=new StringBuilder();
  boolean encoding=false;
  boolean inquotes=false;
  for (int i=0; i < input.length(); i++) {
    char c=input.charAt(i);
    if (containsCharacter(c,EncoderConstants.CHAR_ALPHANUMERICS) || containsCharacter(c,immune)) {
      if (encoding && i > 0)       sb.append("String_Node_Str");
      if (!inquotes && i > 0)       sb.append("String_Node_Str");
      sb.append(c);
      inquotes=true;
      encoding=false;
    }
 else {
      if (inquotes && i < input.length())       sb.append("String_Node_Str");
      if (i > 0)       sb.append("String_Node_Str");
      sb.append(encodeCharacter(immune,Character.valueOf(c)));
      inquotes=false;
      encoding=true;
    }
  }
  return sb.toString();
}
Program: 31308
Project: 31308
Buggy source:
/** 
 * {@inheritDoc}
 */
public String getRandomFilename(String extension){
  String fn=getRandomString(12,DefaultEncoder.CHAR_ALPHANUMERICS) + "String_Node_Str" + extension;
  logger.debug(Logger.SECURITY_SUCCESS,"String_Node_Str" + fn);
  return fn;
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
public String getRandomFilename(String extension){
  String fn=getRandomString(12,EncoderConstants.CHAR_ALPHANUMERICS) + "String_Node_Str" + extension;
  logger.debug(Logger.SECURITY_SUCCESS,"String_Node_Str" + fn);
  return fn;
}
Program: 31309
Project: 31309
Buggy source:
/** 
 * {@inheritDoc}In this implementation, we have chosen to use a random token that is stored in the User object. Note that it is possible to avoid the use of server side state by using either the hash of the users's session id or an encrypted token that includes a timestamp and the user's IP address. user's IP address. A relatively short 8 character string has been chosen because this token will appear in all links and forms.
 * @return the string
 */
public String resetCSRFToken(){
  csrfToken=ESAPI.randomizer().getRandomString(8,DefaultEncoder.CHAR_ALPHANUMERICS);
  return csrfToken;
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}In this implementation, we have chosen to use a random token that is stored in the User object. Note that it is possible to avoid the use of server side state by using either the hash of the users's session id or an encrypted token that includes a timestamp and the user's IP address. user's IP address. A relatively short 8 character string has been chosen because this token will appear in all links and forms.
 * @return the string
 */
public String resetCSRFToken(){
  csrfToken=ESAPI.randomizer().getRandomString(8,EncoderConstants.CHAR_ALPHANUMERICS);
  return csrfToken;
}
Program: 31311
Project: 31311
Buggy source:
/** 
 * Test of setCurrentUser method, of class org.owasp.esapi.Authenticator.
 * @throws AuthenticationException the authentication exception
 */
public void testSetCurrentUserWithRequest() throws AuthenticationException {
  System.out.println("String_Node_Str");
  Authenticator instance=ESAPI.authenticator();
  instance.logout();
  String password=instance.generateStrongPassword();
  String accountName=ESAPI.randomizer().getRandomString(8,DefaultEncoder.CHAR_ALPHANUMERICS);
  DefaultUser user=(DefaultUser)instance.createUser(accountName,password,password);
  user.enable();
  MockHttpServletRequest request=new MockHttpServletRequest();
  request.addParameter("String_Node_Str",accountName);
  request.addParameter("String_Node_Str",password);
  MockHttpServletResponse response=new MockHttpServletResponse();
  instance.login(request,response);
  assertEquals(user,instance.getCurrentUser());
  try {
    user.disable();
    instance.login(request,response);
  }
 catch (  Exception e) {
  }
  try {
    user.enable();
    user.lock();
    instance.login(request,response);
  }
 catch (  Exception e) {
  }
  try {
    user.unlock();
    user.setExpirationTime(new Date());
    instance.login(request,response);
  }
 catch (  Exception e) {
  }
}

Fixed version (ground truth):
/** 
 * Test of setCurrentUser method, of class org.owasp.esapi.Authenticator.
 * @throws AuthenticationException the authentication exception
 */
public void testSetCurrentUserWithRequest() throws AuthenticationException {
  System.out.println("String_Node_Str");
  Authenticator instance=ESAPI.authenticator();
  instance.logout();
  String password=instance.generateStrongPassword();
  String accountName=ESAPI.randomizer().getRandomString(8,EncoderConstants.CHAR_ALPHANUMERICS);
  DefaultUser user=(DefaultUser)instance.createUser(accountName,password,password);
  user.enable();
  MockHttpServletRequest request=new MockHttpServletRequest();
  request.addParameter("String_Node_Str",accountName);
  request.addParameter("String_Node_Str",password);
  MockHttpServletResponse response=new MockHttpServletResponse();
  instance.login(request,response);
  assertEquals(user,instance.getCurrentUser());
  try {
    user.disable();
    instance.login(request,response);
  }
 catch (  Exception e) {
  }
  try {
    user.enable();
    user.lock();
    instance.login(request,response);
  }
 catch (  Exception e) {
  }
  try {
    user.unlock();
    user.setExpirationTime(new Date());
    instance.login(request,response);
  }
 catch (  Exception e) {
  }
}
Program: 31313
Project: 31313
Buggy source:
/** 
 * Test of exists method, of class org.owasp.esapi.Authenticator.
 * @throws Exception the exception
 */
public void testExists() throws Exception {
  System.out.println("String_Node_Str");
  String accountName=ESAPI.randomizer().getRandomString(8,DefaultEncoder.CHAR_ALPHANUMERICS);
  Authenticator instance=ESAPI.authenticator();
  String password=instance.generateStrongPassword();
  instance.createUser(accountName,password,password);
  assertTrue(instance.exists(accountName));
  instance.removeUser(accountName);
  assertFalse(instance.exists(accountName));
}

Fixed version (ground truth):
/** 
 * Test of exists method, of class org.owasp.esapi.Authenticator.
 * @throws Exception the exception
 */
public void testExists() throws Exception {
  System.out.println("String_Node_Str");
  String accountName=ESAPI.randomizer().getRandomString(8,EncoderConstants.CHAR_ALPHANUMERICS);
  Authenticator instance=ESAPI.authenticator();
  String password=instance.generateStrongPassword();
  instance.createUser(accountName,password,password);
  assertTrue(instance.exists(accountName));
  instance.removeUser(accountName);
  assertFalse(instance.exists(accountName));
}
Program: 31314
Project: 31314
Buggy source:
/** 
 * Test of main method, of class org.owasp.esapi.Authenticator.
 * @throws Exception
 */
public void testMain() throws Exception {
  System.out.println("String_Node_Str");
  Authenticator instance=ESAPI.authenticator();
  String accountName=ESAPI.randomizer().getRandomString(8,DefaultEncoder.CHAR_ALPHANUMERICS);
  String password=instance.generateStrongPassword();
  String role="String_Node_Str";
  String[] badargs={accountName,password};
  FileBasedAuthenticator.main(badargs);
  ((FileBasedAuthenticator)instance).loadUsersImmediately();
  User u1=instance.getUser(accountName);
  assertNull(u1);
  String[] args={accountName,password,role};
  FileBasedAuthenticator.main(args);
  ((FileBasedAuthenticator)instance).loadUsersImmediately();
  DefaultUser u2=(DefaultUser)instance.getUser(accountName);
  assertNotNull(u2);
  assertTrue(u2.isInRole(role));
  assertEquals(instance.hashPassword(password,accountName),((FileBasedAuthenticator)instance).getHashedPassword(u2));
}

Fixed version (ground truth):
/** 
 * Test of main method, of class org.owasp.esapi.Authenticator.
 * @throws Exception
 */
public void testMain() throws Exception {
  System.out.println("String_Node_Str");
  Authenticator instance=ESAPI.authenticator();
  String accountName=ESAPI.randomizer().getRandomString(8,EncoderConstants.CHAR_ALPHANUMERICS);
  String password=instance.generateStrongPassword();
  String role="String_Node_Str";
  String[] badargs={accountName,password};
  FileBasedAuthenticator.main(badargs);
  ((FileBasedAuthenticator)instance).loadUsersImmediately();
  User u1=instance.getUser(accountName);
  assertNull(u1);
  String[] args={accountName,password,role};
  FileBasedAuthenticator.main(args);
  ((FileBasedAuthenticator)instance).loadUsersImmediately();
  DefaultUser u2=(DefaultUser)instance.getUser(accountName);
  assertNotNull(u2);
  assertTrue(u2.isInRole(role));
  assertEquals(instance.hashPassword(password,accountName),((FileBasedAuthenticator)instance).getHashedPassword(u2));
}
Program: 31315
Project: 31315
Buggy source:
public void run(){
  User u=null;
  try {
    String password=ESAPI.randomizer().getRandomString(8,DefaultEncoder.CHAR_ALPHANUMERICS);
    u=instance.createUser("String_Node_Str" + count++,password,password);
    instance.setCurrentUser(u);
    ESAPI.getLogger("String_Node_Str").info(Logger.SECURITY_SUCCESS,"String_Node_Str");
  }
 catch (  AuthenticationException e) {
    e.printStackTrace();
  }
}

Fixed version (ground truth):
public void run(){
  User u=null;
  try {
    String password=ESAPI.randomizer().getRandomString(8,EncoderConstants.CHAR_ALPHANUMERICS);
    u=instance.createUser("String_Node_Str" + count++,password,password);
    instance.setCurrentUser(u);
    ESAPI.getLogger("String_Node_Str").info(Logger.SECURITY_SUCCESS,"String_Node_Str");
  }
 catch (  AuthenticationException e) {
    e.printStackTrace();
  }
}
Program: 31316
Project: 31316
Buggy source:
/** 
 * Test of login method, of class org.owasp.esapi.Authenticator.
 * @throws AuthenticationException the authentication exception
 */
public void testLogin() throws AuthenticationException {
  System.out.println("String_Node_Str");
  Authenticator instance=ESAPI.authenticator();
  String username=ESAPI.randomizer().getRandomString(8,DefaultEncoder.CHAR_ALPHANUMERICS);
  String password=instance.generateStrongPassword();
  User user=instance.createUser(username,password,password);
  user.enable();
  MockHttpServletRequest request=new MockHttpServletRequest();
  request.addParameter("String_Node_Str",username);
  request.addParameter("String_Node_Str",password);
  MockHttpServletResponse response=new MockHttpServletResponse();
  User test=instance.login(request,response);
  assertTrue(test.isLoggedIn());
}

Fixed version (ground truth):
/** 
 * Test of login method, of class org.owasp.esapi.Authenticator.
 * @throws AuthenticationException the authentication exception
 */
public void testLogin() throws AuthenticationException {
  System.out.println("String_Node_Str");
  Authenticator instance=ESAPI.authenticator();
  String username=ESAPI.randomizer().getRandomString(8,EncoderConstants.CHAR_ALPHANUMERICS);
  String password=instance.generateStrongPassword();
  User user=instance.createUser(username,password,password);
  user.enable();
  MockHttpServletRequest request=new MockHttpServletRequest();
  request.addParameter("String_Node_Str",username);
  request.addParameter("String_Node_Str",password);
  MockHttpServletResponse response=new MockHttpServletResponse();
  User test=instance.login(request,response);
  assertTrue(test.isLoggedIn());
}
Program: 31317
Project: 31317
Buggy source:
/** 
 * Test of removeAccount method, of class org.owasp.esapi.Authenticator.
 * @throws Exception the exception
 */
public void testRemoveUser() throws Exception {
  System.out.println("String_Node_Str");
  String accountName=ESAPI.randomizer().getRandomString(8,DefaultEncoder.CHAR_ALPHANUMERICS);
  Authenticator instance=ESAPI.authenticator();
  String password=instance.generateStrongPassword();
  instance.createUser(accountName,password,password);
  assertTrue(instance.exists(accountName));
  instance.removeUser(accountName);
  assertFalse(instance.exists(accountName));
}

Fixed version (ground truth):
/** 
 * Test of removeAccount method, of class org.owasp.esapi.Authenticator.
 * @throws Exception the exception
 */
public void testRemoveUser() throws Exception {
  System.out.println("String_Node_Str");
  String accountName=ESAPI.randomizer().getRandomString(8,EncoderConstants.CHAR_ALPHANUMERICS);
  Authenticator instance=ESAPI.authenticator();
  String password=instance.generateStrongPassword();
  instance.createUser(accountName,password,password);
  assertTrue(instance.exists(accountName));
  instance.removeUser(accountName);
  assertFalse(instance.exists(accountName));
}
Program: 31318
Project: 31318
Buggy source:
/** 
 * Test of saveUsers method, of class org.owasp.esapi.Authenticator.
 * @throws Exception the exception
 */
public void testSaveUsers() throws Exception {
  System.out.println("String_Node_Str");
  String accountName=ESAPI.randomizer().getRandomString(8,DefaultEncoder.CHAR_ALPHANUMERICS);
  FileBasedAuthenticator instance=(FileBasedAuthenticator)ESAPI.authenticator();
  String password=instance.generateStrongPassword();
  instance.createUser(accountName,password,password);
  instance.saveUsers();
  assertNotNull(instance.getUser(accountName));
  instance.removeUser(accountName);
  assertNull(instance.getUser(accountName));
}

Fixed version (ground truth):
/** 
 * Test of saveUsers method, of class org.owasp.esapi.Authenticator.
 * @throws Exception the exception
 */
public void testSaveUsers() throws Exception {
  System.out.println("String_Node_Str");
  String accountName=ESAPI.randomizer().getRandomString(8,EncoderConstants.CHAR_ALPHANUMERICS);
  FileBasedAuthenticator instance=(FileBasedAuthenticator)ESAPI.authenticator();
  String password=instance.generateStrongPassword();
  instance.createUser(accountName,password,password);
  instance.saveUsers();
  assertNotNull(instance.getUser(accountName));
  instance.removeUser(accountName);
  assertNull(instance.getUser(accountName));
}
Program: 31319
Project: 31319
Buggy source:
/** 
 * Test of getUser method, of class org.owasp.esapi.Authenticator.
 * @throws AuthenticationException the authentication exception
 */
public void testGetUser() throws AuthenticationException {
  System.out.println("String_Node_Str");
  Authenticator instance=ESAPI.authenticator();
  String password=instance.generateStrongPassword();
  String accountName=ESAPI.randomizer().getRandomString(8,DefaultEncoder.CHAR_ALPHANUMERICS);
  instance.createUser(accountName,password,password);
  assertNotNull(instance.getUser(accountName));
  assertNull(instance.getUser(ESAPI.randomizer().getRandomString(8,DefaultEncoder.CHAR_ALPHANUMERICS)));
}

Fixed version (ground truth):
/** 
 * Test of getUser method, of class org.owasp.esapi.Authenticator.
 * @throws AuthenticationException the authentication exception
 */
public void testGetUser() throws AuthenticationException {
  System.out.println("String_Node_Str");
  Authenticator instance=ESAPI.authenticator();
  String password=instance.generateStrongPassword();
  String accountName=ESAPI.randomizer().getRandomString(8,EncoderConstants.CHAR_ALPHANUMERICS);
  instance.createUser(accountName,password,password);
  assertNotNull(instance.getUser(accountName));
  assertNull(instance.getUser(ESAPI.randomizer().getRandomString(8,EncoderConstants.CHAR_ALPHANUMERICS)));
}