nus-yam/ex-repair huggingface dataset:
Program: 111671
Project: 111671
Buggy source:
/** 
 * Set the timeout in milliseconds until a connection to Docker is established. A timeout value of zero is interpreted as an infinite timeout.
 */
public Builder connectTimeoutMillis(final long connectTimeoutMillis){
  this.connectTimeoutMillis=connectTimeoutMillis;
  return this;
}

Fixed version (ground truth):
/** 
 * Set the timeout in milliseconds until a connection to Docker is established. A timeout value of zero is interpreted as an infinite timeout.
 * @param connectTimeoutMillis connection timeout to Docker daemon in milliseconds
 * @return Builder
 */
public Builder connectTimeoutMillis(final long connectTimeoutMillis){
  this.connectTimeoutMillis=connectTimeoutMillis;
  return this;
}
Program: 111672
Project: 111672
Buggy source:
/** 
 * Set the auth parameters for pull/push requests from/to private repositories.
 */
public Builder authConfig(AuthConfig authConfig){
  this.authConfig=authConfig;
  return this;
}

Fixed version (ground truth):
/** 
 * Set the auth parameters for pull/push requests from/to private repositories.
 * @param authConfig AuthConfig object
 * @return Builder
 */
public Builder authConfig(final AuthConfig authConfig){
  this.authConfig=authConfig;
  return this;
}
Program: 111673
Project: 111673
Buggy source:
/** 
 * Set the size of the connection pool for connections to Docker. Note that due to a known issue, DefaultDockerClient maintains two separate connection pools, each of which is capped at this size. Therefore, the maximum number of concurrent connections to Docker may be up to 2 * connectionPoolSize.
 */
public Builder connectionPoolSize(int connectionPoolSize){
  this.connectionPoolSize=connectionPoolSize;
  return this;
}

Fixed version (ground truth):
/** 
 * Set the size of the connection pool for connections to Docker. Note that due to a known issue, DefaultDockerClient maintains two separate connection pools, each of which is capped at this size. Therefore, the maximum number of concurrent connections to Docker may be up to 2 * connectionPoolSize.
 * @param connectionPoolSize connection pool size
 * @return Builder
 */
public Builder connectionPoolSize(final int connectionPoolSize){
  this.connectionPoolSize=connectionPoolSize;
  return this;
}
Program: 111674
Project: 111674
Buggy source:
/** 
 * Create a new   {@link DefaultDockerClient} builder.
 */
public static Builder builder(){
  return new Builder();
}

Fixed version (ground truth):
/** 
 * Create a new   {@link DefaultDockerClient} builder.
 * @return Returns a builder that can be used to further customize and then build the client.
 */
public static Builder builder(){
  return new Builder();
}
Program: 111675
Project: 111675
Buggy source:
/** 
 * Set the SO_TIMEOUT in milliseconds. This is the maximum period of inactivity between receiving two consecutive data packets from Docker.
 */
public Builder readTimeoutMillis(final long readTimeoutMillis){
  this.readTimeoutMillis=readTimeoutMillis;
  return this;
}

Fixed version (ground truth):
/** 
 * Set the SO_TIMEOUT in milliseconds. This is the maximum period of inactivity between receiving two consecutive data packets from Docker.
 * @param readTimeoutMillis read timeout to Docker daemon in milliseconds
 * @return Builder
 */
public Builder readTimeoutMillis(final long readTimeoutMillis){
  this.readTimeoutMillis=readTimeoutMillis;
  return this;
}
Program: 111677
Project: 111677
Buggy source:
/** 
 * Set the URI for connections to Docker.
 */
public Builder uri(final String uri){
  return uri(URI.create(uri));
}

Fixed version (ground truth):
/** 
 * Set the URI for connections to Docker.
 * @param uri URI String for connections to Docker
 * @return Builder
 */
public Builder uri(final String uri){
  return uri(URI.create(uri));
}
Program: 111678
Project: 111678
Buggy source:
/** 
 * Create a new   {@link DefaultDockerClient} builder prepopulated with values loadedfrom the DOCKER_HOST and DOCKER_CERT_PATH environment variables.
 * @return Returns a builder that can be used to further customize and then build the client.
 * @throws DockerCertificateException
 */
public static Builder fromEnv() throws DockerCertificateException {
  final String endpoint=fromNullable(getenv("String_Node_Str")).or(defaultEndpoint());
  final String dockerCertPath=getenv("String_Node_Str");
  final Builder builder=new Builder();
  if (endpoint.startsWith(UNIX_SCHEME + "String_Node_Str")) {
    builder.uri(endpoint);
  }
 else {
    final String stripped=endpoint.replaceAll("String_Node_Str","String_Node_Str");
    final HostAndPort hostAndPort=HostAndPort.fromString(stripped);
    final String hostText=hostAndPort.getHostText();
    final String scheme=isNullOrEmpty(dockerCertPath) ? "String_Node_Str" : "String_Node_Str";
    final int port=hostAndPort.getPortOrDefault(DEFAULT_PORT);
    final String address=isNullOrEmpty(hostText) ? DEFAULT_HOST : hostText;
    builder.uri(scheme + "String_Node_Str" + address+ "String_Node_Str"+ port);
  }
  if (!isNullOrEmpty(dockerCertPath)) {
    builder.dockerCertificates(new DockerCertificates(Paths.get(dockerCertPath)));
  }
  return builder;
}

Fixed version (ground truth):
/** 
 * Create a new   {@link DefaultDockerClient} builder prepopulated with values loadedfrom the DOCKER_HOST and DOCKER_CERT_PATH environment variables.
 * @return Returns a builder that can be used to further customize and then build the client.
 * @throws DockerCertificateException if we could not build a DockerCertificates object
 */
public static Builder fromEnv() throws DockerCertificateException {
  final String endpoint=fromNullable(getenv("String_Node_Str")).or(defaultEndpoint());
  final String dockerCertPath=getenv("String_Node_Str");
  final Builder builder=new Builder();
  if (endpoint.startsWith(UNIX_SCHEME + "String_Node_Str")) {
    builder.uri(endpoint);
  }
 else {
    final String stripped=endpoint.replaceAll("String_Node_Str","String_Node_Str");
    final HostAndPort hostAndPort=HostAndPort.fromString(stripped);
    final String hostText=hostAndPort.getHostText();
    final String scheme=isNullOrEmpty(dockerCertPath) ? "String_Node_Str" : "String_Node_Str";
    final int port=hostAndPort.getPortOrDefault(DEFAULT_PORT);
    final String address=isNullOrEmpty(hostText) ? DEFAULT_HOST : hostText;
    builder.uri(scheme + "String_Node_Str" + address+ "String_Node_Str"+ port);
  }
  if (!isNullOrEmpty(dockerCertPath)) {
    builder.dockerCertificates(new DockerCertificates(Paths.get(dockerCertPath)));
  }
  return builder;
}
Program: 111679
Project: 111679
Buggy source:
/** 
 * The file for the created compressed directory archive.
 */
public Path file(){
  return file;
}

Fixed version (ground truth):
/** 
 * The file for the created compressed directory archive.
 * @return a Path object representing the compressed directory
 */
public Path file(){
  return file;
}
Program: 111680
Project: 111680
Buggy source:
/** 
 * Provide certificates to secure the connection to Docker.
 */
public Builder dockerCertificates(final DockerCertificates dockerCertificates){
  this.dockerCertificates=dockerCertificates;
  return this;
}

Fixed version (ground truth):
/** 
 * Provide certificates to secure the connection to Docker.
 * @param dockerCertificates DockerCertificates object
 * @return Builder
 */
public Builder dockerCertificates(final DockerCertificates dockerCertificates){
  this.dockerCertificates=dockerCertificates;
  return this;
}
Program: 111681
Project: 111681
Buggy source:
/** 
 * Set the timeout in milliseconds until a connection to Docker is established. A timeout value of zero is interpreted as an infinite timeout.
 */
public Builder connectTimeoutMillis(final long connectTimeoutMillis){
  this.connectTimeoutMillis=connectTimeoutMillis;
  return this;
}

Fixed version (ground truth):
/** 
 * Set the timeout in milliseconds until a connection to Docker is established. A timeout value of zero is interpreted as an infinite timeout.
 * @param connectTimeoutMillis connection timeout to Docker daemon in milliseconds
 * @return Builder
 */
public Builder connectTimeoutMillis(final long connectTimeoutMillis){
  this.connectTimeoutMillis=connectTimeoutMillis;
  return this;
}
Program: 111682
Project: 111682
Buggy source:
/** 
 * Set the auth parameters for pull/push requests from/to private repositories.
 */
public Builder authConfig(AuthConfig authConfig){
  this.authConfig=authConfig;
  return this;
}

Fixed version (ground truth):
/** 
 * Set the auth parameters for pull/push requests from/to private repositories.
 * @param authConfig AuthConfig object
 * @return Builder
 */
public Builder authConfig(final AuthConfig authConfig){
  this.authConfig=authConfig;
  return this;
}
Program: 111683
Project: 111683
Buggy source:
/** 
 * Set the size of the connection pool for connections to Docker. Note that due to a known issue, DefaultDockerClient maintains two separate connection pools, each of which is capped at this size. Therefore, the maximum number of concurrent connections to Docker may be up to 2 * connectionPoolSize.
 */
public Builder connectionPoolSize(int connectionPoolSize){
  this.connectionPoolSize=connectionPoolSize;
  return this;
}

Fixed version (ground truth):
/** 
 * Set the size of the connection pool for connections to Docker. Note that due to a known issue, DefaultDockerClient maintains two separate connection pools, each of which is capped at this size. Therefore, the maximum number of concurrent connections to Docker may be up to 2 * connectionPoolSize.
 * @param connectionPoolSize connection pool size
 * @return Builder
 */
public Builder connectionPoolSize(final int connectionPoolSize){
  this.connectionPoolSize=connectionPoolSize;
  return this;
}
Program: 111684
Project: 111684
Buggy source:
/** 
 * Create a new   {@link DefaultDockerClient} builder.
 */
public static Builder builder(){
  return new Builder();
}

Fixed version (ground truth):
/** 
 * Create a new   {@link DefaultDockerClient} builder.
 * @return Returns a builder that can be used to further customize and then build the client.
 */
public static Builder builder(){
  return new Builder();
}
Program: 111685
Project: 111685
Buggy source:
/** 
 * Set the SO_TIMEOUT in milliseconds. This is the maximum period of inactivity between receiving two consecutive data packets from Docker.
 */
public Builder readTimeoutMillis(final long readTimeoutMillis){
  this.readTimeoutMillis=readTimeoutMillis;
  return this;
}

Fixed version (ground truth):
/** 
 * Set the SO_TIMEOUT in milliseconds. This is the maximum period of inactivity between receiving two consecutive data packets from Docker.
 * @param readTimeoutMillis read timeout to Docker daemon in milliseconds
 * @return Builder
 */
public Builder readTimeoutMillis(final long readTimeoutMillis){
  this.readTimeoutMillis=readTimeoutMillis;
  return this;
}
Program: 111687
Project: 111687
Buggy source:
/** 
 * Set the URI for connections to Docker.
 */
public Builder uri(final String uri){
  return uri(URI.create(uri));
}

Fixed version (ground truth):
/** 
 * Set the URI for connections to Docker.
 * @param uri URI String for connections to Docker
 * @return Builder
 */
public Builder uri(final String uri){
  return uri(URI.create(uri));
}
Program: 111688
Project: 111688
Buggy source:
/** 
 * Create a new   {@link DefaultDockerClient} builder prepopulated with values loadedfrom the DOCKER_HOST and DOCKER_CERT_PATH environment variables.
 * @return Returns a builder that can be used to further customize and then build the client.
 * @throws DockerCertificateException
 */
public static Builder fromEnv() throws DockerCertificateException {
  final String endpoint=fromNullable(getenv("String_Node_Str")).or(defaultEndpoint());
  final String dockerCertPath=getenv("String_Node_Str");
  final Builder builder=new Builder();
  if (endpoint.startsWith(UNIX_SCHEME + "String_Node_Str")) {
    builder.uri(endpoint);
  }
 else {
    final String stripped=endpoint.replaceAll("String_Node_Str","String_Node_Str");
    final HostAndPort hostAndPort=HostAndPort.fromString(stripped);
    final String hostText=hostAndPort.getHostText();
    final String scheme=isNullOrEmpty(dockerCertPath) ? "String_Node_Str" : "String_Node_Str";
    final int port=hostAndPort.getPortOrDefault(DEFAULT_PORT);
    final String address=isNullOrEmpty(hostText) ? DEFAULT_HOST : hostText;
    builder.uri(scheme + "String_Node_Str" + address+ "String_Node_Str"+ port);
  }
  if (!isNullOrEmpty(dockerCertPath)) {
    builder.dockerCertificates(new DockerCertificates(Paths.get(dockerCertPath)));
  }
  return builder;
}

Fixed version (ground truth):
/** 
 * Create a new   {@link DefaultDockerClient} builder prepopulated with values loadedfrom the DOCKER_HOST and DOCKER_CERT_PATH environment variables.
 * @return Returns a builder that can be used to further customize and then build the client.
 * @throws DockerCertificateException if we could not build a DockerCertificates object
 */
public static Builder fromEnv() throws DockerCertificateException {
  final String endpoint=fromNullable(getenv("String_Node_Str")).or(defaultEndpoint());
  final String dockerCertPath=getenv("String_Node_Str");
  final Builder builder=new Builder();
  if (endpoint.startsWith(UNIX_SCHEME + "String_Node_Str")) {
    builder.uri(endpoint);
  }
 else {
    final String stripped=endpoint.replaceAll("String_Node_Str","String_Node_Str");
    final HostAndPort hostAndPort=HostAndPort.fromString(stripped);
    final String hostText=hostAndPort.getHostText();
    final String scheme=isNullOrEmpty(dockerCertPath) ? "String_Node_Str" : "String_Node_Str";
    final int port=hostAndPort.getPortOrDefault(DEFAULT_PORT);
    final String address=isNullOrEmpty(hostText) ? DEFAULT_HOST : hostText;
    builder.uri(scheme + "String_Node_Str" + address+ "String_Node_Str"+ port);
  }
  if (!isNullOrEmpty(dockerCertPath)) {
    builder.dockerCertificates(new DockerCertificates(Paths.get(dockerCertPath)));
  }
  return builder;
}
Program: 111689
Project: 111689
Buggy source:
@Test public void mappingRepoWithRefreshRate() throws IOException {
  String defaultRepoUri=ConfigServerTestUtils.prepareLocalRepo("String_Node_Str");
  String test1RepoUri=ConfigServerTestUtils.prepareLocalRepo("String_Node_Str");
  Map<String,Object> repoMapping=new LinkedHashMap<String,Object>();
  repoMapping.put("String_Node_Str","String_Node_Str");
  repoMapping.put("String_Node_Str",test1RepoUri);
  repoMapping.put("String_Node_Str","String_Node_Str");
  this.context=new SpringApplicationBuilder(TestConfiguration.class).web(false).properties("String_Node_Str" + defaultRepoUri).properties(repoMapping).run();
  EnvironmentRepository repository=this.context.getBean(EnvironmentRepository.class);
  repository.findOne("String_Node_Str","String_Node_Str","String_Node_Str");
  Environment environment=repository.findOne("String_Node_Str","String_Node_Str","String_Node_Str");
  assertEquals(2,environment.getPropertySources().size());
  assertEquals(((MultipleJGitEnvironmentRepository)repository).getRepos().get("String_Node_Str").getRefreshRate(),30);
}

Fixed version (ground truth):
@Test public void mappingRepoWithRefreshRate() throws IOException {
  String defaultRepoUri=ConfigServerTestUtils.prepareLocalRepo("String_Node_Str");
  String test1RepoUri=ConfigServerTestUtils.prepareLocalRepo("String_Node_Str");
  Map<String,Object> repoMapping=new LinkedHashMap<String,Object>();
  repoMapping.put("String_Node_Str","String_Node_Str");
  repoMapping.put("String_Node_Str",test1RepoUri);
  repoMapping.put("String_Node_Str","String_Node_Str");
  this.context=new SpringApplicationBuilder(TestConfiguration.class).web(WebApplicationType.NONE).properties("String_Node_Str" + defaultRepoUri).properties(repoMapping).run();
  EnvironmentRepository repository=this.context.getBean(EnvironmentRepository.class);
  repository.findOne("String_Node_Str","String_Node_Str","String_Node_Str");
  Environment environment=repository.findOne("String_Node_Str","String_Node_Str","String_Node_Str");
  assertEquals(2,environment.getPropertySources().size());
  assertEquals(((MultipleJGitEnvironmentRepository)repository).getRepos().get("String_Node_Str").getRefreshRate(),30);
}
Program: 111690
Project: 111690
Buggy source:
private void setMapValue(Map<String,Object> map,Object value){
  String key=getKey();
  if (NodeType.MAP.equals(valueType)) {
    Map<String,Object> nestedMap=(Map<String,Object>)map.get(key);
    if (nestedMap == null) {
      nestedMap=new LinkedHashMap<>();
      map.put(key,nestedMap);
    }
    setMapValue(nestedMap,value);
  }
 else   if (NodeType.ARRAY.equals(valueType)) {
    List<Object> list=(List<Object>)map.get(key);
    if (list == null) {
      list=new ArrayList<>();
      map.put(key,list);
    }
    setListValue(list,value);
  }
 else {
    map.put(key,value);
  }
}

Fixed version (ground truth):
private void setMapValue(Map<String,Object> map,Object value){
  String key=getKey();
  if (NodeType.MAP.equals(valueType)) {
    @SuppressWarnings("String_Node_Str") Map<String,Object> nestedMap=(Map<String,Object>)map.get(key);
    if (nestedMap == null) {
      nestedMap=new LinkedHashMap<>();
      map.put(key,nestedMap);
    }
    setMapValue(nestedMap,value);
  }
 else   if (NodeType.ARRAY.equals(valueType)) {
    @SuppressWarnings("String_Node_Str") List<Object> list=(List<Object>)map.get(key);
    if (list == null) {
      list=new ArrayList<>();
      map.put(key,list);
    }
    setListValue(list,value);
  }
 else {
    map.put(key,value);
  }
}
Program: 111691
Project: 111691
Buggy source:
private void setListValue(List<Object> list,Object value){
  int index=getIndex();
  while (list.size() <= index) {
    list.add(null);
  }
  if (NodeType.MAP.equals(valueType)) {
    Map<String,Object> map=(Map<String,Object>)list.get(index);
    if (map == null) {
      map=new LinkedHashMap<>();
      list.set(index,map);
    }
    setMapValue(map,value);
  }
 else   if (NodeType.ARRAY.equals(valueType)) {
    List<Object> nestedList=(List<Object>)list.get(index);
    if (nestedList == null) {
      nestedList=new ArrayList<>();
      list.set(index,nestedList);
    }
    setListValue(nestedList,value);
  }
 else {
    list.set(index,value);
  }
}

Fixed version (ground truth):
private void setListValue(List<Object> list,Object value){
  int index=getIndex();
  while (list.size() <= index) {
    list.add(null);
  }
  if (NodeType.MAP.equals(valueType)) {
    @SuppressWarnings("String_Node_Str") Map<String,Object> map=(Map<String,Object>)list.get(index);
    if (map == null) {
      map=new LinkedHashMap<>();
      list.set(index,map);
    }
    setMapValue(map,value);
  }
 else   if (NodeType.ARRAY.equals(valueType)) {
    @SuppressWarnings("String_Node_Str") List<Object> nestedList=(List<Object>)list.get(index);
    if (nestedList == null) {
      nestedList=new ArrayList<>();
      list.set(index,nestedList);
    }
    setListValue(nestedList,value);
  }
 else {
    list.set(index,value);
  }
}
Program: 111692
Project: 111692
Buggy source:
public static JGitConfigServerTestData prepareClonedGitRepository(Object... sources) throws Exception {
  String remoteUri=ConfigServerTestUtils.prepareLocalRepo();
  File remoteRepoDir=ResourceUtils.getFile(remoteUri);
  Git remoteGit=Git.open(remoteRepoDir.getAbsoluteFile());
  remoteGit.checkout().setName("String_Node_Str").call();
  File clonedRepoDir=new File("String_Node_Str");
  if (clonedRepoDir.exists()) {
    FileSystemUtils.deleteRecursively(clonedRepoDir);
  }
 else {
    clonedRepoDir.mkdirs();
  }
  Git clonedGit=Git.cloneRepository().setURI("String_Node_Str" + remoteRepoDir.getAbsolutePath()).setDirectory(clonedRepoDir).setBranch("String_Node_Str").setCloneAllBranches(true).call();
  ConfigurableApplicationContext context=new SpringApplicationBuilder(sources).web(WebApplicationType.NONE).properties("String_Node_Str" + "String_Node_Str" + clonedRepoDir.getAbsolutePath()).run();
  JGitEnvironmentRepository repository=context.getBean(JGitEnvironmentRepository.class);
  return new JGitConfigServerTestData(new JGitConfigServerTestData.LocalGit(remoteGit,remoteRepoDir),new JGitConfigServerTestData.LocalGit(clonedGit,clonedRepoDir),repository,context);
}

Fixed version (ground truth):
public static JGitConfigServerTestData prepareClonedGitRepository(Class... sources) throws Exception {
  String remoteUri=ConfigServerTestUtils.prepareLocalRepo();
  File remoteRepoDir=ResourceUtils.getFile(remoteUri);
  Git remoteGit=Git.open(remoteRepoDir.getAbsoluteFile());
  remoteGit.checkout().setName("String_Node_Str").call();
  File clonedRepoDir=new File("String_Node_Str");
  if (clonedRepoDir.exists()) {
    FileSystemUtils.deleteRecursively(clonedRepoDir);
  }
 else {
    clonedRepoDir.mkdirs();
  }
  Git clonedGit=Git.cloneRepository().setURI("String_Node_Str" + remoteRepoDir.getAbsolutePath()).setDirectory(clonedRepoDir).setBranch("String_Node_Str").setCloneAllBranches(true).call();
  ConfigurableApplicationContext context=new SpringApplicationBuilder(sources).web(WebApplicationType.NONE).properties("String_Node_Str" + "String_Node_Str" + clonedRepoDir.getAbsolutePath()).run();
  JGitEnvironmentRepository repository=context.getBean(JGitEnvironmentRepository.class);
  return new JGitConfigServerTestData(new JGitConfigServerTestData.LocalGit(remoteGit,remoteRepoDir),new JGitConfigServerTestData.LocalGit(clonedGit,clonedRepoDir),repository,context);
}
Program: 111693
Project: 111693
Buggy source:
private Environment decrypt(Environment environment,TextEncryptorLocator encryptor){
  Environment result=new Environment(environment);
  for (  PropertySource source : environment.getPropertySources()) {
    Map<Object,Object> map=new LinkedHashMap<Object,Object>(source.getSource());
    for (    Map.Entry<Object,Object> entry : new LinkedHashSet<>(map.entrySet())) {
      Object key=entry.getKey();
      String name=key.toString();
      String value=entry.getValue().toString();
      if (value.startsWith("String_Node_Str")) {
        map.remove(key);
        try {
          value=value.substring("String_Node_Str".length());
          value=encryptor.locate(this.helper.getEncryptorKeys(name,StringUtils.arrayToCommaDelimitedString(environment.getProfiles()),value)).decrypt(this.helper.stripPrefix(value));
        }
 catch (        Exception e) {
          value="String_Node_Str";
          name="String_Node_Str" + name;
          logger.warn("String_Node_Str" + key + "String_Node_Str"+ e.getClass()+ "String_Node_Str"+ e.getMessage()+ "String_Node_Str");
        }
        map.put(name,value);
      }
    }
    result.add(new PropertySource(source.getName(),map));
  }
  return result;
}

Fixed version (ground truth):
private Environment decrypt(Environment environment,TextEncryptorLocator encryptor){
  Environment result=new Environment(environment);
  for (  PropertySource source : environment.getPropertySources()) {
    Map<Object,Object> map=new LinkedHashMap<Object,Object>(source.getSource());
    for (    Map.Entry<Object,Object> entry : new LinkedHashSet<>(map.entrySet())) {
      Object key=entry.getKey();
      String name=key.toString();
      String value=entry.getValue().toString();
      if (value.startsWith("String_Node_Str")) {
        map.remove(key);
        try {
          value=value.substring("String_Node_Str".length());
          value=encryptor.locate(this.helper.getEncryptorKeys(name,StringUtils.arrayToCommaDelimitedString(environment.getProfiles()),value)).decrypt(this.helper.stripPrefix(value));
        }
 catch (        Exception e) {
          value="String_Node_Str";
          name="String_Node_Str" + name;
          String message="String_Node_Str" + key + "String_Node_Str"+ e.getClass()+ "String_Node_Str"+ e.getMessage()+ "String_Node_Str";
          if (logger.isDebugEnabled()) {
            logger.debug(message,e);
          }
 else           if (logger.isWarnEnabled()) {
            logger.warn(message);
          }
        }
        map.put(name,value);
      }
    }
    result.add(new PropertySource(source.getName(),map));
  }
  return result;
}
Program: 111694
Project: 111694
Buggy source:
@RequestMapping(value="String_Node_Str",method=RequestMethod.POST) public String encrypt(@PathVariable String name,@PathVariable String profiles,@RequestBody String data,@RequestHeader("String_Node_Str") MediaType type){
  checkEncryptorInstalled(name,profiles);
  try {
    String input=stripFormData(data,type,false);
    Map<String,String> keys=this.helper.getEncryptorKeys(name,profiles,input);
    String textToEncrypt=this.helper.stripPrefix(input);
    String encrypted=this.helper.addPrefix(keys,this.encryptor.locate(keys).encrypt(textToEncrypt));
    logger.info("String_Node_Str");
    return encrypted;
  }
 catch (  IllegalArgumentException e) {
    throw new InvalidCipherException();
  }
}

Fixed version (ground truth):
@RequestMapping(value="String_Node_Str",method=RequestMethod.POST) public String encrypt(@PathVariable String name,@PathVariable String profiles,@RequestBody String data,@RequestHeader("String_Node_Str") MediaType type){
  checkEncryptorInstalled(name,profiles);
  String input=stripFormData(data,type,false);
  Map<String,String> keys=this.helper.getEncryptorKeys(name,profiles,input);
  String textToEncrypt=this.helper.stripPrefix(input);
  String encrypted=this.helper.addPrefix(keys,this.encryptor.locate(keys).encrypt(textToEncrypt));
  logger.info("String_Node_Str");
  return encrypted;
}
Program: 111695
Project: 111695
Buggy source:
@RequestMapping(value="String_Node_Str",method=RequestMethod.POST) public String decrypt(@PathVariable String name,@PathVariable String profiles,@RequestBody String data,@RequestHeader("String_Node_Str") MediaType type){
  checkEncryptorInstalled(name,profiles);
  try {
    String input=stripFormData(data,type,true);
    Map<String,String> encryptorKeys=this.helper.getEncryptorKeys(name,profiles,input);
    TextEncryptor encryptor=this.encryptor.locate(encryptorKeys);
    String encryptedText=this.helper.stripPrefix(input);
    String decrypted=encryptor.decrypt(encryptedText);
    logger.info("String_Node_Str");
    return decrypted;
  }
 catch (  IllegalArgumentException e) {
    throw new InvalidCipherException();
  }
}

Fixed version (ground truth):
@RequestMapping(value="String_Node_Str",method=RequestMethod.POST) public String decrypt(@PathVariable String name,@PathVariable String profiles,@RequestBody String data,@RequestHeader("String_Node_Str") MediaType type){
  checkEncryptorInstalled(name,profiles);
  try {
    String input=stripFormData(data,type,true);
    Map<String,String> encryptorKeys=this.helper.getEncryptorKeys(name,profiles,input);
    TextEncryptor encryptor=this.encryptor.locate(encryptorKeys);
    String encryptedText=this.helper.stripPrefix(input);
    String decrypted=encryptor.decrypt(encryptedText);
    logger.info("String_Node_Str");
    return decrypted;
  }
 catch (  IllegalArgumentException|IllegalStateException e) {
    logger.error("String_Node_Str" + name + "String_Node_Str"+ data,e);
    throw new InvalidCipherException();
  }
}
Program: 111696
Project: 111696
Buggy source:
private Ref resetHard(Git git,String label,String ref){
  ResetCommand reset=git.reset();
  reset.setRef(ref);
  reset.setMode(ResetType.HARD);
  try {
    Ref resetRef=reset.call();
    if (resetRef != null) {
      this.logger.info("String_Node_Str" + label + "String_Node_Str"+ resetRef.getObjectId());
    }
    return resetRef;
  }
 catch (  Exception ex) {
    this.logger.warn("String_Node_Str" + label + "String_Node_Str"+ ref+ "String_Node_Str"+ git.getRepository().getConfig().getString("String_Node_Str","String_Node_Str","String_Node_Str"));
    return null;
  }
}

Fixed version (ground truth):
private Ref resetHard(Git git,String label,String ref){
  ResetCommand reset=git.reset();
  reset.setRef(ref);
  reset.setMode(ResetType.HARD);
  try {
    Ref resetRef=reset.call();
    if (resetRef != null) {
      this.logger.info("String_Node_Str" + label + "String_Node_Str"+ resetRef.getObjectId());
    }
    return resetRef;
  }
 catch (  Exception ex) {
    String message="String_Node_Str" + label + "String_Node_Str"+ ref+ "String_Node_Str"+ git.getRepository().getConfig().getString("String_Node_Str","String_Node_Str","String_Node_Str");
    warn(message,ex);
    return null;
  }
}
Program: 111697
Project: 111697
Buggy source:
private MergeResult merge(Git git,String label){
  try {
    MergeCommand merge=git.merge();
    merge.include(git.getRepository().getRef("String_Node_Str" + label));
    MergeResult result=merge.call();
    if (!result.getMergeStatus().isSuccessful()) {
      this.logger.warn("String_Node_Str" + label + "String_Node_Str"+ result.getMergeStatus());
    }
    return result;
  }
 catch (  Exception ex) {
    this.logger.warn("String_Node_Str" + label + "String_Node_Str"+ git.getRepository().getConfig().getString("String_Node_Str","String_Node_Str","String_Node_Str"));
    return null;
  }
}

Fixed version (ground truth):
private MergeResult merge(Git git,String label){
  try {
    MergeCommand merge=git.merge();
    merge.include(git.getRepository().getRef("String_Node_Str" + label));
    MergeResult result=merge.call();
    if (!result.getMergeStatus().isSuccessful()) {
      this.logger.warn("String_Node_Str" + label + "String_Node_Str"+ result.getMergeStatus());
    }
    return result;
  }
 catch (  Exception ex) {
    String message="String_Node_Str" + label + "String_Node_Str"+ git.getRepository().getConfig().getString("String_Node_Str","String_Node_Str","String_Node_Str");
    warn(message,ex);
    return null;
  }
}
Program: 111698
Project: 111698
Buggy source:
/** 
 * Get the working directory ready.
 */
private String refresh(String label){
  initialize();
  Git git=null;
  try {
    git=createGitClient();
    if (shouldPull(git)) {
      fetch(git,label);
      checkout(git,label);
      if (isBranch(git,label)) {
        merge(git,label);
        if (!isClean(git)) {
          logger.warn("String_Node_Str" + label + "String_Node_Str");
          resetHard(git,label,"String_Node_Str" + label);
        }
      }
    }
 else {
      checkout(git,label);
    }
    return git.getRepository().getRef("String_Node_Str").getObjectId().getName();
  }
 catch (  RefNotFoundException e) {
    throw new NoSuchLabelException("String_Node_Str" + label);
  }
catch (  GitAPIException e) {
    throw new IllegalStateException("String_Node_Str",e);
  }
catch (  Exception e) {
    throw new IllegalStateException("String_Node_Str",e);
  }
 finally {
    try {
      if (git != null) {
        git.close();
      }
    }
 catch (    Exception e) {
      this.logger.warn("String_Node_Str",e);
    }
  }
}

Fixed version (ground truth):
/** 
 * Get the working directory ready.
 */
private String refresh(String label){
  initialize();
  Git git=null;
  try {
    git=createGitClient();
    if (shouldPull(git)) {
      fetch(git,label);
      checkout(git,label);
      if (isBranch(git,label)) {
        merge(git,label);
        if (!isClean(git)) {
          logger.warn("String_Node_Str" + label + "String_Node_Str");
          resetHard(git,label,"String_Node_Str" + label);
        }
      }
    }
 else {
      checkout(git,label);
    }
    return git.getRepository().getRef("String_Node_Str").getObjectId().getName();
  }
 catch (  RefNotFoundException e) {
    throw new NoSuchLabelException("String_Node_Str" + label,e);
  }
catch (  GitAPIException e) {
    throw new IllegalStateException("String_Node_Str",e);
  }
catch (  Exception e) {
    throw new IllegalStateException("String_Node_Str",e);
  }
 finally {
    try {
      if (git != null) {
        git.close();
      }
    }
 catch (    Exception e) {
      this.logger.warn("String_Node_Str",e);
    }
  }
}
Program: 111699
Project: 111699
Buggy source:
private boolean isClean(Git git){
  StatusCommand status=git.status();
  try {
    return status.call().isClean();
  }
 catch (  Exception e) {
    this.logger.warn("String_Node_Str" + e.getClass().getSimpleName() + "String_Node_Str"+ e.getMessage());
    return false;
  }
}

Fixed version (ground truth):
private boolean isClean(Git git){
  StatusCommand status=git.status();
  try {
    return status.call().isClean();
  }
 catch (  Exception e) {
    String message="String_Node_Str" + e.getClass().getSimpleName() + "String_Node_Str"+ e.getMessage();
    warn(message,e);
    return false;
  }
}
Program: 111700
Project: 111700
Buggy source:
private FetchResult fetch(Git git,String label){
  FetchCommand fetch=git.fetch();
  fetch.setRemote("String_Node_Str");
  fetch.setTagOpt(TagOpt.FETCH_TAGS);
  setTimeout(fetch);
  try {
    setCredentialsProvider(fetch);
    FetchResult result=fetch.call();
    if (result.getTrackingRefUpdates() != null && result.getTrackingRefUpdates().size() > 0) {
      this.logger.info("String_Node_Str" + label + "String_Node_Str"+ result.getTrackingRefUpdates().size()+ "String_Node_Str");
    }
    return result;
  }
 catch (  Exception ex) {
    this.logger.warn("String_Node_Str" + label + "String_Node_Str"+ git.getRepository().getConfig().getString("String_Node_Str","String_Node_Str","String_Node_Str"));
    return null;
  }
}

Fixed version (ground truth):
private FetchResult fetch(Git git,String label){
  FetchCommand fetch=git.fetch();
  fetch.setRemote("String_Node_Str");
  fetch.setTagOpt(TagOpt.FETCH_TAGS);
  setTimeout(fetch);
  try {
    setCredentialsProvider(fetch);
    FetchResult result=fetch.call();
    if (result.getTrackingRefUpdates() != null && result.getTrackingRefUpdates().size() > 0) {
      logger.info("String_Node_Str" + label + "String_Node_Str"+ result.getTrackingRefUpdates().size()+ "String_Node_Str");
    }
    return result;
  }
 catch (  Exception ex) {
    String message="String_Node_Str" + label + "String_Node_Str"+ git.getRepository().getConfig().getString("String_Node_Str","String_Node_Str","String_Node_Str");
    warn(message,ex);
    return null;
  }
}
Program: 111701
Project: 111701
Buggy source:
@Override public Locations getLocations(String application,String profile,String label){
  for (  PatternMatchingJGitEnvironmentRepository repository : this.repos.values()) {
    if (repository.matches(application,profile,label)) {
      for (      JGitEnvironmentRepository candidate : getRepositories(repository,application,profile,label)) {
        try {
          Environment source=candidate.findOne(application,profile,label);
          if (source != null) {
            return candidate.getLocations(application,profile,label);
          }
        }
 catch (        Exception e) {
          if (logger.isDebugEnabled()) {
            this.logger.debug("String_Node_Str" + candidate.getUri() + "String_Node_Str"+ e.getClass().getSimpleName()+ "String_Node_Str"+ e.getMessage());
          }
          continue;
        }
      }
    }
  }
  JGitEnvironmentRepository candidate=getRepository(this,application,profile,label);
  if (candidate == this) {
    return super.getLocations(application,profile,label);
  }
  return candidate.getLocations(application,profile,label);
}

Fixed version (ground truth):
@Override public Locations getLocations(String application,String profile,String label){
  for (  PatternMatchingJGitEnvironmentRepository repository : this.repos.values()) {
    if (repository.matches(application,profile,label)) {
      for (      JGitEnvironmentRepository candidate : getRepositories(repository,application,profile,label)) {
        try {
          Environment source=candidate.findOne(application,profile,label);
          if (source != null) {
            return candidate.getLocations(application,profile,label);
          }
        }
 catch (        Exception e) {
          if (logger.isDebugEnabled()) {
            this.logger.debug("String_Node_Str" + candidate.getUri() + "String_Node_Str"+ e.getClass().getSimpleName()+ "String_Node_Str"+ e.getMessage(),e);
          }
          continue;
        }
      }
    }
  }
  JGitEnvironmentRepository candidate=getRepository(this,application,profile,label);
  if (candidate == this) {
    return super.getLocations(application,profile,label);
  }
  return candidate.getLocations(application,profile,label);
}
Program: 111702
Project: 111702
Buggy source:
public NoSuchLabelException(String string){
  super(string);
}

Fixed version (ground truth):
public NoSuchLabelException(String string,Exception e){
  super(string,e);
}
Program: 111703
Project: 111703
Buggy source:
public RepositoryException(String string){
  super(string);
}

Fixed version (ground truth):
public RepositoryException(String message,Throwable cause){
  super(message,cause);
}
Program: 111704
Project: 111704
Buggy source:
private String update(SvnOperationFactory svnOperationFactory,String label) throws SVNException {
  logger.debug("String_Node_Str");
  try {
    final SvnUpdate update=svnOperationFactory.createUpdate();
    update.setSingleTarget(SvnTarget.fromFile(getWorkingDirectory()));
    long[] ids=update.run();
    StringBuilder version=new StringBuilder();
    for (    long id : ids) {
      if (version.length() > 0) {
        version.append("String_Node_Str");
      }
      version.append(id);
    }
    return version.toString();
  }
 catch (  Exception e) {
    this.logger.warn("String_Node_Str" + label + "String_Node_Str"+ getWorkingDirectory().getPath()+ "String_Node_Str"+ this.getUri()+ "String_Node_Str");
  }
  final SVNStatus status=SVNClientManager.newInstance().getStatusClient().doStatus(getWorkingDirectory(),false);
  return status != null ? status.getRevision().toString() : null;
}

Fixed version (ground truth):
private String update(SvnOperationFactory svnOperationFactory,String label) throws SVNException {
  logger.debug("String_Node_Str");
  try {
    final SvnUpdate update=svnOperationFactory.createUpdate();
    update.setSingleTarget(SvnTarget.fromFile(getWorkingDirectory()));
    long[] ids=update.run();
    StringBuilder version=new StringBuilder();
    for (    long id : ids) {
      if (version.length() > 0) {
        version.append("String_Node_Str");
      }
      version.append(id);
    }
    return version.toString();
  }
 catch (  Exception e) {
    String message="String_Node_Str" + label + "String_Node_Str"+ getWorkingDirectory().getPath()+ "String_Node_Str"+ this.getUri()+ "String_Node_Str";
    if (logger.isDebugEnabled()) {
      logger.debug(message,e);
    }
 else     if (logger.isWarnEnabled()) {
      logger.warn(message);
    }
  }
  final SVNStatus status=SVNClientManager.newInstance().getStatusClient().doStatus(getWorkingDirectory(),false);
  return status != null ? status.getRevision().toString() : null;
}
Program: 111706
Project: 111706
Buggy source:
/** 
 * Get the working directory ready.
 */
private String refresh(String label){
  initialize();
  Git git=null;
  try {
    git=createGitClient();
    if (shouldPull(git)) {
      fetch(git,label);
      checkout(git,label);
      if (isBranch(git,label)) {
        merge(git,label);
        if (!isClean(git)) {
          logger.warn("String_Node_Str" + label + "String_Node_Str");
          resetHard(git,label,"String_Node_Str" + label);
        }
      }
    }
 else {
      checkout(git,label);
    }
    return git.getRepository().getRef("String_Node_Str").getObjectId().getName();
  }
 catch (  RefNotFoundException e) {
    throw new NoSuchLabelException("String_Node_Str" + label);
  }
catch (  GitAPIException e) {
    throw new IllegalStateException("String_Node_Str",e);
  }
catch (  Exception e) {
    throw new IllegalStateException("String_Node_Str",e);
  }
 finally {
    try {
      if (git != null) {
        git.close();
      }
    }
 catch (    Exception e) {
      this.logger.warn("String_Node_Str",e);
    }
  }
}

Fixed version (ground truth):
/** 
 * Get the working directory ready.
 */
private String refresh(String label){
}
Program: 111708
Project: 111708
Buggy source:
boolean shouldPull(Git git) throws GitAPIException {
  boolean shouldPull;
  Status gitStatus=git.status().call();
  boolean isWorkingTreeClean=gitStatus.isClean();
  String originUrl=git.getRepository().getConfig().getString("String_Node_Str","String_Node_Str","String_Node_Str");
  if (this.forcePull && !isWorkingTreeClean) {
    shouldPull=true;
    logDirty(gitStatus);
  }
 else {
    shouldPull=isWorkingTreeClean && originUrl != null;
  }
  if (!isWorkingTreeClean && !this.forcePull) {
    this.logger.info("String_Node_Str" + originUrl + "String_Node_Str");
  }
  return shouldPull;
}

Fixed version (ground truth):
public boolean shouldPull(Git git) throws GitAPIException {
  boolean shouldPull;
  Status gitStatus=git.status().call();
  boolean isWorkingTreeClean=gitStatus.isClean();
  String originUrl=git.getRepository().getConfig().getString("String_Node_Str","String_Node_Str","String_Node_Str");
  if (this.forcePull && !isWorkingTreeClean) {
    shouldPull=true;
    logDirty(gitStatus);
  }
 else {
    shouldPull=isWorkingTreeClean && originUrl != null;
  }
  if (!isWorkingTreeClean && !this.forcePull) {
    this.logger.info("String_Node_Str" + originUrl + "String_Node_Str");
  }
  return shouldPull;
}
Program: 111709
Project: 111709
Buggy source:
/** 
 * Get the working directory ready.
 */
private String refresh(String application,String label){
  initialize();
  Git git=null;
  try {
    git=createGitClient();
    if (shouldPull(git)) {
      FetchResult fetchResult=fetch(git,label);
      checkout(git,label);
      if (isBranch(git,label)) {
        MergeResult mergeResult=merge(git,label);
        if (!isClean(git)) {
          logger.warn("String_Node_Str" + label + "String_Node_Str");
          resetHard(git,label,"String_Node_Str" + label);
        }
      }
    }
 else {
      checkout(git,label);
    }
    return git.getRepository().getRef("String_Node_Str").getObjectId().getName();
  }
 catch (  RefNotFoundException e) {
    throw new NoSuchLabelException("String_Node_Str" + label);
  }
catch (  GitAPIException e) {
    throw new IllegalStateException("String_Node_Str",e);
  }
catch (  Exception e) {
    throw new IllegalStateException("String_Node_Str",e);
  }
 finally {
    try {
      if (git != null) {
        git.close();
      }
    }
 catch (    Exception e) {
      this.logger.warn("String_Node_Str",e);
    }
  }
}

Fixed version (ground truth):
/** 
 * Get the working directory ready.
 */
private String refresh(String label){
  initialize();
  Git git=null;
  try {
    git=createGitClient();
    if (shouldPull(git)) {
      fetch(git,label);
      checkout(git,label);
      if (isBranch(git,label)) {
        merge(git,label);
        if (!isClean(git)) {
          logger.warn("String_Node_Str" + label + "String_Node_Str");
          resetHard(git,label,"String_Node_Str" + label);
        }
      }
    }
 else {
      checkout(git,label);
    }
    return git.getRepository().getRef("String_Node_Str").getObjectId().getName();
  }
 catch (  RefNotFoundException e) {
    throw new NoSuchLabelException("String_Node_Str" + label);
  }
catch (  GitAPIException e) {
    throw new IllegalStateException("String_Node_Str",e);
  }
catch (  Exception e) {
    throw new IllegalStateException("String_Node_Str",e);
  }
 finally {
    try {
      if (git != null) {
        git.close();
      }
    }
 catch (    Exception e) {
      this.logger.warn("String_Node_Str",e);
    }
  }
}
Program: 111710
Project: 111710
Buggy source:
@Override public synchronized Locations getLocations(String application,String profile,String label){
  if (label == null) {
    label=this.defaultLabel;
  }
  String version=refresh(application,label);
  return new Locations(application,profile,label,version,getSearchLocations(getWorkingDirectory(),application,profile,label));
}

Fixed version (ground truth):
@Override public synchronized Locations getLocations(String application,String profile,String label){
  if (label == null) {
    label=this.defaultLabel;
  }
  String version=refresh(label);
  return new Locations(application,profile,label,version,getSearchLocations(getWorkingDirectory(),application,profile,label));
}
Program: 111711
Project: 111711
Buggy source:
/** 
 * Get the working directory ready.
 */
private Ref refresh(String application,String label){
  initialize();
  Git git=null;
  try {
    git=createGitClient();
    git.getRepository().getConfig().setString("String_Node_Str",label,"String_Node_Str",label);
    Ref ref=checkout(git,label);
    if (shouldPull(git,ref)) {
      pull(git,label,ref);
      if (!isClean(git)) {
        logger.warn("String_Node_Str" + label + "String_Node_Str");
        fetch(git,label,"String_Node_Str");
        resetHard(git,label,"String_Node_Str" + label);
      }
    }
    return ref;
  }
 catch (  RefNotFoundException e) {
    throw new NoSuchLabelException("String_Node_Str" + label);
  }
catch (  GitAPIException e) {
    throw new IllegalStateException("String_Node_Str",e);
  }
catch (  Exception e) {
    throw new IllegalStateException("String_Node_Str",e);
  }
 finally {
    try {
      if (git != null) {
        git.close();
      }
    }
 catch (    Exception e) {
      this.logger.warn("String_Node_Str",e);
    }
  }
}

Fixed version (ground truth):
/** 
 * Get the working directory ready.
 */
private Ref refresh(String application,String label){
  initialize();
  Git git=null;
  try {
    git=createGitClient();
    git.getRepository().getConfig().setString("String_Node_Str",label,"String_Node_Str",label);
    Ref ref=checkout(git,label);
    if (shouldPull(git,ref)) {
      pull(git,label,ref);
      ref=git.getRepository().getRef(ref.getName());
      if (!isClean(git)) {
        logger.warn("String_Node_Str" + label + "String_Node_Str");
        fetch(git,label,"String_Node_Str");
        resetHard(git,label,"String_Node_Str" + label);
      }
    }
    return ref;
  }
 catch (  RefNotFoundException e) {
    throw new NoSuchLabelException("String_Node_Str" + label);
  }
catch (  GitAPIException e) {
    throw new IllegalStateException("String_Node_Str",e);
  }
catch (  Exception e) {
    throw new IllegalStateException("String_Node_Str",e);
  }
 finally {
    try {
      if (git != null) {
        git.close();
      }
    }
 catch (    Exception e) {
      this.logger.warn("String_Node_Str",e);
    }
  }
}
Program: 111713
Project: 111713
Buggy source:
public ResourceController(ResourceRepository resourceRepository,EnvironmentRepository environmentRepository){
  this.resourceRepository=resourceRepository;
  this.environmentRepository=environmentRepository;
}

Fixed version (ground truth):
public ResourceController(ResourceRepository resourceRepository,EnvironmentRepository environmentRepository){
  this.resourceRepository=resourceRepository;
  this.environmentRepository=environmentRepository;
  this.helper.setAlwaysUseFullPath(true);
}
Program: 111714
Project: 111714
Buggy source:
@Test public void resourceWithSlashRequest() throws Exception {
  this.environmentRepository.setSearchLocations("String_Node_Str");
  MockHttpServletRequest request=new MockHttpServletRequest();
  request.setPathInfo("String_Node_Str" + "String_Node_Str");
  String resource=this.controller.resolve("String_Node_Str","String_Node_Str","String_Node_Str",request);
  assertEquals("String_Node_Str",resource);
}

Fixed version (ground truth):
@Test public void resourceWithSlashRequest() throws Exception {
  this.environmentRepository.setSearchLocations("String_Node_Str");
  MockHttpServletRequest request=new MockHttpServletRequest();
  request.setRequestURI("String_Node_Str" + "String_Node_Str");
  String resource=this.controller.resolve("String_Node_Str","String_Node_Str","String_Node_Str",request);
  assertEquals("String_Node_Str",resource);
}
Program: 111715
Project: 111715
Buggy source:
@Test public void resourceWithSlashForBinaryRequest() throws Exception {
  this.environmentRepository.setSearchLocations("String_Node_Str");
  MockHttpServletRequest request=new MockHttpServletRequest();
  request.setPathInfo("String_Node_Str" + "String_Node_Str");
  byte[] resource=this.controller.binary("String_Node_Str","String_Node_Str","String_Node_Str",request);
  assertEquals("String_Node_Str",new String(resource));
}

Fixed version (ground truth):
@Test public void resourceWithSlashForBinaryRequest() throws Exception {
  this.environmentRepository.setSearchLocations("String_Node_Str");
  MockHttpServletRequest request=new MockHttpServletRequest();
  request.setRequestURI("String_Node_Str" + "String_Node_Str");
  byte[] resource=this.controller.binary("String_Node_Str","String_Node_Str","String_Node_Str",request);
  assertEquals("String_Node_Str",new String(resource));
}