nus-yam/ex-repair huggingface dataset:
Program: 17876
Project: 17876
Buggy source:
/** 
 * Start following company
 * @param id
 */
void startFollowingCompany(int id);

Fixed version (ground truth):
/** 
 * Start following company
 * @param id the company ID
 */
void startFollowingCompany(int id);
Program: 17877
Project: 17877
Buggy source:
/** 
 * Stop following company
 * @param id
 */
void stopFollowingCompany(int id);

Fixed version (ground truth):
/** 
 * Stop following company
 * @param id the company ID
 */
void stopFollowingCompany(int id);
Program: 17878
Project: 17878
Buggy source:
/** 
 * Retrieve Company Details based on unique name id
 * @param name
 * @return company
 */
Company getCompanyByUniversalName(String name);

Fixed version (ground truth):
/** 
 * Retrieve Company Details based on unique name id
 * @param name the company name
 * @return company
 */
Company getCompanyByUniversalName(String name);
Program: 17879
Project: 17879
Buggy source:
/** 
 * Bookmark Job
 * @param id
 */
void bookmarkJob(int id);

Fixed version (ground truth):
/** 
 * Bookmark Job
 * @param id the job ID
 */
void bookmarkJob(int id);
Program: 17880
Project: 17880
Buggy source:
/** 
 * Unbookmark Job
 * @param id
 */
void unbookmarkJob(int id);

Fixed version (ground truth):
/** 
 * Unbookmark Job
 * @param id the job ID
 */
void unbookmarkJob(int id);
Program: 17881
Project: 17881
Buggy source:
/** 
 * API for retrieving and performing operations on network updates
 */
NetworkUpdateOperations networkUpdateOperations();

Fixed version (ground truth):
/** 
 * API for retrieving and performing operations on network updates
 * @return a {@link NetworkUpdateOperations} for working with network updates
 */
NetworkUpdateOperations networkUpdateOperations();
Program: 17882
Project: 17882
Buggy source:
/** 
 * API for retrieving and performing operations on companies
 */
CompanyOperations companyOperations();

Fixed version (ground truth):
/** 
 * API for retrieving and performing operations on companies
 * @return a {@link CompanyOperations} for working with companies
 */
CompanyOperations companyOperations();
Program: 17883
Project: 17883
Buggy source:
/** 
 * API for retrieving details of groups
 */
GroupOperations groupOperations();

Fixed version (ground truth):
/** 
 * API for retrieving details of groups
 * @return a {@link GroupOperations} for working with groups
 */
GroupOperations groupOperations();
Program: 17884
Project: 17884
Buggy source:
/** 
 * API for sending messages and connection requests
 */
CommunicationOperations communicationOperations();

Fixed version (ground truth):
/** 
 * API for sending messages and connection requests
 * @return a {@link CommunicationOperations} for working with communication info
 */
CommunicationOperations communicationOperations();
Program: 17885
Project: 17885
Buggy source:
/** 
 * Returns the underlying   {@link RestOperations} object allowing for consumption of LinkedIn endpoints that may not be otherwise covered by the API binding.The RestOperations object returned is configured to include an OAuth "Authorization" header on all requests.
 */
RestOperations restOperations();

Fixed version (ground truth):
/** 
 * Returns the underlying   {@link RestOperations} object allowing for consumption of LinkedIn endpoints that may not be otherwise covered by the API binding.The RestOperations object returned is configured to include an OAuth "Authorization" header on all requests.
 * @return a {@link RestOperations} for work against the LinkedIn API at a low-level.
 */
RestOperations restOperations();
Program: 17886
Project: 17886
Buggy source:
/** 
 * API for retrieving and performing operations on profiles
 */
ProfileOperations profileOperations();

Fixed version (ground truth):
/** 
 * API for retrieving and performing operations on profiles
 * @return a {@link ProfileOperations} for working with profiles
 */
ProfileOperations profileOperations();
Program: 17887
Project: 17887
Buggy source:
/** 
 * API for retrieving connections
 */
ConnectionOperations connectionOperations();

Fixed version (ground truth):
/** 
 * API for retrieving connections
 * @return a {@link ConnectionOperations} for working with connections
 */
ConnectionOperations connectionOperations();
Program: 17888
Project: 17888
Buggy source:
/** 
 * API for searching, retrieving and bookmarking jobs
 */
JobOperations jobOperations();

Fixed version (ground truth):
/** 
 * API for searching, retrieving and bookmarking jobs
 * @return a {@link JobOperations} for working with jobs
 */
JobOperations jobOperations();
Program: 17889
Project: 17889
Buggy source:
/** 
 * A URL to the user's public profile. The content shown at this profile is intended for public display and is determined by the user's privacy settings. May be null if the user's profile isn't public.
 */
public String getPublicProfileUrl(){
  return publicProfileUrl;
}

Fixed version (ground truth):
/** 
 * A URL to the user's public profile. The content shown at this profile is intended for public display and is determined by the user's privacy settings. May be null if the user's profile isn't public.
 * @return a String containing the URL to the user's public profile page.
 */
public String getPublicProfileUrl(){
  return publicProfileUrl;
}
Program: 17890
Project: 17890
Buggy source:
/** 
 * The user's email address (if available). Requires "r_emailaddress" scope; will be null if "r_emailaddress" scope is not authorized on the connection.
 */
public String getEmailAddress(){
  return emailAddress;
}

Fixed version (ground truth):
/** 
 * The user's email address (if available). Requires "r_emailaddress" scope; will be null if "r_emailaddress" scope is not authorized on the connection.
 * @return the user's email address
 */
public String getEmailAddress(){
  return emailAddress;
}
Program: 17891
Project: 17891
Buggy source:
/** 
 * The user's summary.
 */
public String getSummary(){
  return summary;
}

Fixed version (ground truth):
/** 
 * The user's summary.
 * @return the user's summary
 */
public String getSummary(){
  return summary;
}
Program: 17892
Project: 17892
Buggy source:
/** 
 * A URL to the user's standard profile. The content shown at this profile will depend upon what the requesting user is allowed to see.
 */
public UrlResource getSiteStandardProfileRequest(){
  return siteStandardProfileRequest;
}

Fixed version (ground truth):
/** 
 * A URL to the user's standard profile. The content shown at this profile will depend upon what the requesting user is allowed to see.
 * @return a {@link UrlResource} referencing the user's standard profile page.
 */
public UrlResource getSiteStandardProfileRequest(){
  return siteStandardProfileRequest;
}
Program: 17893
Project: 17893
Buggy source:
/** 
 * The user's headline
 */
public String getHeadline(){
  return headline;
}

Fixed version (ground truth):
/** 
 * The user's headline
 * @return the user's headline
 */
public String getHeadline(){
  return headline;
}
Program: 17894
Project: 17894
Buggy source:
/** 
 * The user's LinkedIn profile ID
 */
public String getId(){
  return id;
}

Fixed version (ground truth):
/** 
 * The user's LinkedIn profile ID
 * @return the user's LinkedIn profile ID
 */
public String getId(){
  return id;
}
Program: 17895
Project: 17895
Buggy source:
/** 
 * The user's industry
 */
public String getIndustry(){
  return industry;
}

Fixed version (ground truth):
/** 
 * The user's industry
 * @return the user's industry
 */
public String getIndustry(){
  return industry;
}
Program: 17896
Project: 17896
Buggy source:
/** 
 * A URL to the user's profile picture.
 */
public String getProfilePictureUrl(){
  return profilePictureUrl;
}

Fixed version (ground truth):
/** 
 * A URL to the user's profile picture.
 * @return a String containing the URL to the user's profile picture.
 */
public String getProfilePictureUrl(){
  return profilePictureUrl;
}
Program: 17897
Project: 17897
Buggy source:
/** 
 * The user's first name
 */
public String getFirstName(){
  return firstName;
}

Fixed version (ground truth):
/** 
 * The user's first name
 * @return the user's first name
 */
public String getFirstName(){
  return firstName;
}
Program: 17898
Project: 17898
Buggy source:
/** 
 * The user's last name
 */
public String getLastName(){
  return lastName;
}

Fixed version (ground truth):
/** 
 * The user's last name
 * @return the user's last name
 */
public String getLastName(){
  return lastName;
}
Program: 17899
Project: 17899
Buggy source:
/** 
 * Advanced retrieval of network updates for connections or self {link NetworkUpdateParameters} for details of each field.  Many are left as null to turn off. As an example.  To retrieve last 20 SHAR Updates (Shares) for a particular user: LinkedInParameters parameters = new LinkedInParameters( "VALID_ID", true, 0, 20, null, null, false, false, Collections.<UpdateTypeInput>singletonList(UpdateTypeInput.SHAR)); List<LinkedInNetworkUpdate> updates = linkedIn.getNetworkUpdates(parameters);
 * @param parameters LinkedInParameters
 * @return network updates
 */
List<LinkedInNetworkUpdate> getNetworkUpdates(NetworkUpdateParameters parameters);

Fixed version (ground truth):
/** 
 * Advanced retrieval of network updates for connections or self {link NetworkUpdateParameters} for details of each field.  Many are left as null to turn off. As an example.  To retrieve last 20 SHAR Updates (Shares) for a particular user: LinkedInParameters parameters = new LinkedInParameters( "VALID_ID", true, 0, 20, null, null, false, false, Collections.&lt;UpdateTypeInput&gt;singletonList(UpdateTypeInput.SHAR)); List&lt;LinkedInNetworkUpdate&gt; updates = linkedIn.getNetworkUpdates(parameters);
 * @param parameters LinkedInParameters
 * @return network updates
 */
List<LinkedInNetworkUpdate> getNetworkUpdates(NetworkUpdateParameters parameters);
Program: 17900
Project: 17900
Buggy source:
/** 
 * Get list of comments on a Network Update. updateKey must be a valid key from linkedIn. e.g UNIU-2481200-5541820536390100000-SHARE
 * @param updateKey
 * @return List of Comments
 */
List<Comment> getNetworkUpdateComments(String updateKey);

Fixed version (ground truth):
/** 
 * Get list of comments on a Network Update. updateKey must be a valid key from linkedIn. e.g UNIU-2481200-5541820536390100000-SHARE
 * @param updateKey the update key
 * @return List of Comments
 */
List<Comment> getNetworkUpdateComments(String updateKey);
Program: 17901
Project: 17901
Buggy source:
/** 
 * Comment on a network update. updateKey must be a valid key from linkedIn. e.g UNIU-2481200-5541820536390100000-SHARE
 * @param updateKey
 * @param comment
 */
void commentOnNetworkUpdate(String updateKey,String comment);

Fixed version (ground truth):
/** 
 * Comment on a network update. updateKey must be a valid key from linkedIn. e.g UNIU-2481200-5541820536390100000-SHARE
 * @param updateKey the update key
 * @param comment a comment
 */
void commentOnNetworkUpdate(String updateKey,String comment);
Program: 17902
Project: 17902
Buggy source:
/** 
 * Share something to network
 * @param share
 * @return URI to share location
 */
URI share(NewShare share);

Fixed version (ground truth):
/** 
 * Share something to network
 * @param share a {@link NewShare} to share to the network
 * @return URI to share location
 */
URI share(NewShare share);
Program: 17903
Project: 17903
Buggy source:
/** 
 * Like network update. updateKey must be a valid key from linkedIn. e.g UNIU-2481200-5541820536390100000-SHARE
 * @param updateKey
 */
void likeNetworkUpdate(String updateKey);

Fixed version (ground truth):
/** 
 * Like network update. updateKey must be a valid key from linkedIn. e.g UNIU-2481200-5541820536390100000-SHARE
 * @param updateKey the update key
 */
void likeNetworkUpdate(String updateKey);
Program: 17904
Project: 17904
Buggy source:
/** 
 * Unlike network update. updateKey must be a valid key from linkedIn. e.g UNIU-2481200-5541820536390100000-SHARE
 * @param updateKey
 */
void unlikeNetworkUpdate(String updateKey);

Fixed version (ground truth):
/** 
 * Unlike network update. updateKey must be a valid key from linkedIn. e.g UNIU-2481200-5541820536390100000-SHARE
 * @param updateKey the update key
 */
void unlikeNetworkUpdate(String updateKey);
Program: 17905
Project: 17905
Buggy source:
/** 
 * Get the last share for the current user
 * @return CurrentShare
 */
CurrentShare getCurrentShare();

Fixed version (ground truth):
/** 
 * Get the last share for the current user
 * @return CurrentShare 
 */
CurrentShare getCurrentShare();
Program: 17906
Project: 17906
Buggy source:
/** 
 * Get list of likes on a Network Update. updateKey must be a valid key from linkedIn. e.g UNIU-2481200-5541820536390100000-SHARE
 * @param updateKey
 * @return List of Linked In Profiles
 */
List<LinkedInProfile> getNetworkUpdateLikes(String updateKey);

Fixed version (ground truth):
/** 
 * Get list of likes on a Network Update. updateKey must be a valid key from linkedIn. e.g UNIU-2481200-5541820536390100000-SHARE
 * @param updateKey the update key
 * @return List of Linked In Profiles
 */
List<LinkedInProfile> getNetworkUpdateLikes(String updateKey);
Program: 17907
Project: 17907
Buggy source:
/** 
 * Retrieves a profile by id.
 * @return the user's profile data.
 */
LinkedInProfile getProfileById(String id);

Fixed version (ground truth):
/** 
 * Retrieves a profile by id.
 * @param id the profile ID
 * @return the user's profile data.
 */
LinkedInProfile getProfileById(String id);
Program: 17908
Project: 17908
Buggy source:
/** 
 * Searches for Profiles based on provided parameters
 * @return search result.
 */
LinkedInProfiles search(SearchParameters parameters);

Fixed version (ground truth):
/** 
 * Searches for Profiles based on provided parameters
 * @param parameters the search parameters
 * @return search result.
 */
LinkedInProfiles search(SearchParameters parameters);
Program: 17909
Project: 17909
Buggy source:
/** 
 * Retrieves a full profile by public url.
 * @return the user's profile data.
 */
LinkedInProfileFull getProfileFullByPublicUrl(String url);

Fixed version (ground truth):
/** 
 * Retrieves a full profile by public url.
 * @param url the profile's public URL
 * @return the user's profile data.
 */
LinkedInProfileFull getProfileFullByPublicUrl(String url);
Program: 17910
Project: 17910
Buggy source:
/** 
 * Retrieves a full profile by id.
 * @return the user's profile data.
 */
LinkedInProfileFull getProfileFullById(String id);

Fixed version (ground truth):
/** 
 * Retrieves a full profile by id.
 * @param id the profile ID
 * @return the user's profile data.
 */
LinkedInProfileFull getProfileFullById(String id);
Program: 17911
Project: 17911
Buggy source:
/** 
 * Retrieves a profile by public url.
 * @return the user's profile data.
 */
LinkedInProfile getProfileByPublicUrl(String url);

Fixed version (ground truth):
/** 
 * Retrieves a profile by public url.
 * @param url the profile's public URL
 * @return the user's profile data.
 */
LinkedInProfile getProfileByPublicUrl(String url);
Program: 17912
Project: 17912
Buggy source:
/** 
 * Create a Post
 * @param groupId Group to Create Post on
 * @param title Title of Post
 * @param summary Text of Post
 */
void createPost(Integer groupId,String title,String summary);

Fixed version (ground truth):
/** 
 * Create a Post
 * @param groupId Group to Create Post on
 * @param title Title of Post
 * @param summary Text of Post
 * @return the URI of the newly created Post
 */
URI createPost(Integer groupId,String title,String summary);
Program: 17913
Project: 17913
Buggy source:
public void createPost(Integer groupId,String title,String summary){
  Map<String,String> post=new HashMap<String,String>();
  post.put("String_Node_Str",title);
  post.put("String_Node_Str",summary);
  restOperations.postForObject(GROUP_CREATE_POST_URL,post,String.class,groupId);
}

Fixed version (ground truth):
public URI createPost(Integer groupId,String title,String summary){
  Map<String,String> post=new HashMap<String,String>();
  post.put("String_Node_Str",title);
  post.put("String_Node_Str",summary);
  return restOperations.postForLocation(GROUP_CREATE_POST_URL,post,groupId);
}
Program: 17914
Project: 17914
Buggy source:
public BeanDefinition parse(Element element,ParserContext parserContext){
  BeanDefinitionBuilder beanBuilder=BeanDefinitionBuilder.genericBeanDefinition(JdbcConnectionRepository.class);
  String jdbcTemplate=element.getAttribute("String_Node_Str");
  beanBuilder.addConstructorArgReference(jdbcTemplate);
  String stringEncryptor=element.getAttribute("String_Node_Str");
  if (stringEncryptor != null && !stringEncryptor.isEmpty()) {
    beanBuilder.addConstructorArgReference(stringEncryptor);
  }
 else {
    beanBuilder.addConstructorArgValue(Encryptors.noOpText());
  }
  AbstractBeanDefinition beanDefinition=beanBuilder.getBeanDefinition();
  parserContext.getRegistry().registerBeanDefinition("String_Node_Str",beanDefinition);
  return beanDefinition;
}

Fixed version (ground truth):
public BeanDefinition parse(Element element,ParserContext parserContext){
  BeanDefinitionBuilder beanBuilder=BeanDefinitionBuilder.genericBeanDefinition(JdbcConnectionRepository.class);
  String dataSource=element.getAttribute("String_Node_Str");
  beanBuilder.addConstructorArgReference(dataSource);
  String stringEncryptor=element.getAttribute("String_Node_Str");
  if (stringEncryptor != null && !stringEncryptor.isEmpty()) {
    beanBuilder.addConstructorArgReference(stringEncryptor);
  }
 else {
    beanBuilder.addConstructorArgValue(Encryptors.noOpText());
  }
  AbstractBeanDefinition beanDefinition=beanBuilder.getBeanDefinition();
  parserContext.getRegistry().registerBeanDefinition("String_Node_Str",beanDefinition);
  return beanDefinition;
}
Program: 17915
Project: 17915
Buggy source:
public void retweet(long tweetId){
  @SuppressWarnings("String_Node_Str") ResponseEntity<Map> response=restOperations.postForEntity(RETWEET_URL,Collections.emptyMap(),Map.class,Collections.singletonMap("String_Node_Str",Long.toString(tweetId)));
  handleResponseErrors(response);
}

Fixed version (ground truth):
public void retweet(long tweetId){
  @SuppressWarnings("String_Node_Str") ResponseEntity<Map> response=restOperations.postForEntity(RETWEET_URL,"String_Node_Str",Map.class,Collections.singletonMap("String_Node_Str",Long.toString(tweetId)));
  handleResponseErrors(response);
}
Program: 17916
Project: 17916
Buggy source:
/** 
 * Create a new instance of ScribeOAuth1RequestSigner.
 * @param accessToken the access token value
 * @param accessTokenSecret the access token secret
 * @param apiKey the API key assigned by the provider
 * @param apiSecret the API secret assigned by the provider
 */
public ScribeOAuth1RequestSigner(String apiKey,String apiSecret,String accessToken,String accessTokenSecret){
  this.accessToken=accessToken;
  this.accessTokenSecret=accessTokenSecret;
  this.service=new ServiceBuilder().provider(TwitterApi.class).apiKey(apiKey).apiSecret(apiSecret).callback("String_Node_Str").build();
}

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

Fixed version (ground truth):
/** 
 * Create a new instance of TwitterTemplate. This constructor creates a new TwitterTemplate given the minimal amount of information required to sign a request and builds up a  {@link RestOperations} internally using this information.
 * @param apiKey the application's API key.
 * @param apiSecret the application's API secret.
 * @param accessToken the user's access token, given after successful OAuth authentication.
 * @param accessTokenSecret the access token secret, given along with the access token after successful OAuth authentication.
 */
public TwitterTemplate(String apiKey,String apiSecret,String accessToken,String accessTokenSecret){
  RestTemplate restTemplate=new RestTemplate(new OAuthSigningClientHttpRequestFactory(new ScribeOAuth1RequestSigner(apiKey,apiSecret,accessToken,accessTokenSecret)));
  restTemplate.setErrorHandler(new TwitterErrorHandler());
  this.restOperations=restTemplate;
  this.statusCodeTranslator=new TwitterResponseStatusCodeTranslator();
}
Program: 17918
Project: 17918
Buggy source:
SearchResults buildSearchResults(Map<String,Object> response,List<Tweet> tweets){
  Long maxId=response.containsKey("String_Node_Str") ? NumberUtils.parseNumber((String)response.get("String_Node_Str"),Long.class) : 0;
  Long sinceId=response.containsKey("String_Node_Str") ? NumberUtils.parseNumber((String)response.get("String_Node_Str"),Long.class) : 0;
  return new SearchResults(tweets,maxId,sinceId,response.get("String_Node_Str") == null);
}

Fixed version (ground truth):
SearchResults buildSearchResults(Map<String,Object> response,List<Tweet> tweets){
  Number maxId=response.containsKey("String_Node_Str") ? (Number)response.get("String_Node_Str") : 0;
  Number sinceId=response.containsKey("String_Node_Str") ? (Number)response.get("String_Node_Str") : 0;
  return new SearchResults(tweets,maxId.longValue(),sinceId.longValue(),response.get("String_Node_Str") == null);
}
Program: 17919
Project: 17919
Buggy source:
@Test public void buildSearchResults(){
  TwitterTemplate twitter=new TwitterTemplate(null);
  Map<String,Object> response=new HashMap<String,Object>();
  response.put("String_Node_Str","String_Node_Str");
  response.put("String_Node_Str","String_Node_Str");
  response.put("String_Node_Str","String_Node_Str");
  SearchResults results=twitter.buildSearchResults(response,new ArrayList<Tweet>());
  assertEquals(42,results.getMaxId());
  assertEquals(24,results.getSinceId());
  assertEquals(false,results.isLastPage());
}

Fixed version (ground truth):
@Test public void buildSearchResults(){
  TwitterTemplate twitter=new TwitterTemplate(null);
  Map<String,Object> response=new HashMap<String,Object>();
  response.put("String_Node_Str",42);
  response.put("String_Node_Str",24);
  response.put("String_Node_Str","String_Node_Str");
  SearchResults results=twitter.buildSearchResults(response,new ArrayList<Tweet>());
  assertEquals(42,results.getMaxId());
  assertEquals(24,results.getSinceId());
  assertEquals(false,results.isLastPage());
}
Program: 17920
Project: 17920
Buggy source:
/** 
 * Loads the data file from user-agent-string.info
 * @return
 * @throws IOException
 */
protected List<Section> loadDataFromInternet() throws IOException {
  File tmpFile=File.createTempFile("String_Node_Str","String_Node_Str");
  try {
    BufferedReader reader=null;
    FileWriter writer=new FileWriter(tmpFile);
    try {
      URL url=new URL(DATA_RETRIVE_URL);
      reader=new BufferedReader(new InputStreamReader(url.openStream()));
      String line=null;
      while ((line=reader.readLine()) != null) {
        writer.write(line);
        writer.write(System.lineSeparator());
      }
    }
  finally {
      reader.close();
      writer.close();
    }
    try {
      PHPFileParser fp=new PHPFileParser(tmpFile);
      List<Section> sections=fp.getSections();
      tmpFile.renameTo(cacheFile);
      return sections;
    }
 catch (    Throwable t) {
      if (t instanceof IOException) {
        throw (IOException)t;
      }
      throw new IOException(t);
    }
  }
  finally {
    if (tmpFile.compareTo(cacheFile) != 0) {
      tmpFile.delete();
    }
  }
}

Fixed version (ground truth):
/** 
 * Loads the data file from user-agent-string.info
 * @return
 * @throws IOException
 */
protected List<Section> loadDataFromInternet() throws IOException {
  File tmpFile=File.createTempFile("String_Node_Str","String_Node_Str");
  try {
    BufferedReader reader=null;
    FileWriter writer=new FileWriter(tmpFile);
    try {
      URL url=new URL(DATA_RETRIVE_URL);
      reader=new BufferedReader(new InputStreamReader(url.openStream()));
      String line=null;
      while ((line=reader.readLine()) != null) {
        writer.write(line);
        writer.write(System.getProperty("String_Node_Str"));
      }
    }
  finally {
      reader.close();
      writer.close();
    }
    try {
      PHPFileParser fp=new PHPFileParser(tmpFile);
      List<Section> sections=fp.getSections();
      tmpFile.renameTo(cacheFile);
      return sections;
    }
 catch (    Throwable t) {
      if (t instanceof IOException) {
        throw (IOException)t;
      }
      throw new IOException(t);
    }
  }
  finally {
    if (tmpFile.compareTo(cacheFile) != 0) {
      tmpFile.delete();
    }
  }
}
Program: 17921
Project: 17921
Buggy source:
/** 
 * Checks if the useragent comes from a robot. if yes copies all the data to the result object
 * @param useragent
 * @param retObj
 * @return true if the useragent belongs to a robot, else false
 */
protected boolean processRobot(String useragent,UserAgentInfo retObj){
  String lcUserAgent=useragent.toLowerCase();
  if (robotsMap.containsKey(lcUserAgent)) {
    retObj.setType(ROBOT);
    RobotEntry robotEntry=robotsMap.get(lcUserAgent);
    retObj.setRobotEntry(robotEntry);
    if (robotEntry.getOsId() != null) {
      retObj.setOsEntry(osMap.get(robotEntry.getOsId()));
    }
    return true;
  }
  return false;
}

Fixed version (ground truth):
/** 
 * Checks if the useragent comes from a robot. if yes copies all the data to the result object
 * @param useragent
 * @param retObj
 * @return true if the useragent belongs to a robot, else false
 */
protected boolean processRobot(String useragent,UserAgentInfo retObj){
  if (robotsMap.containsKey(useragent)) {
    retObj.setType(ROBOT);
    RobotEntry robotEntry=robotsMap.get(useragent);
    retObj.setRobotEntry(robotEntry);
    if (robotEntry.getOsId() != null) {
      retObj.setOsEntry(osMap.get(robotEntry.getOsId()));
    }
    return true;
  }
  return false;
}
Program: 17922
Project: 17922
Buggy source:
/** 
 * Searchs in the browser regex table. if found a match copies the browser data and if possible os data
 * @param useragent
 * @param retObj
 * @return
 */
protected boolean processBrowserRegex(String useragent,UserAgentInfo retObj){
  boolean osFound=false;
  for (  Map.Entry<Pattern,Long> entry : compiledBrowserRegMap.entrySet()) {
    Matcher matcher=entry.getKey().matcher(useragent);
    if (matcher.find()) {
      Long idBrowser=entry.getValue();
      BrowserEntry be=browserMap.get(idBrowser);
      if (be != null) {
        retObj.setType(browserTypeMap.get(be.getType()));
        ;
        if (matcher.groupCount() > 0) {
          retObj.setBrowserVersionInfo(matcher.group(1));
        }
        retObj.setBrowserEntry(be);
      }
      Long idOs=browserOsMap.get(idBrowser);
      if (idOs != null) {
        osFound=true;
        retObj.setOsEntry(osMap.get(idOs));
      }
      break;
    }
  }
  return osFound;
}

Fixed version (ground truth):
/** 
 * Searchs in the browser regex table. if found a match copies the browser data and if possible os data
 * @param useragent
 * @param retObj
 * @return
 */
protected boolean processBrowserRegex(String useragent,UserAgentInfo retObj){
  boolean osFound=false;
  for (  Map.Entry<Pattern,Long> entry : compiledBrowserRegMap.entrySet()) {
    Matcher matcher=entry.getKey().matcher(useragent);
    if (matcher.find()) {
      Long idBrowser=entry.getValue();
      BrowserEntry be=browserMap.get(idBrowser);
      if (be != null) {
        retObj.setType(browserTypeMap.get(be.getType()));
        ;
        if (matcher.groupCount() > 1) {
          retObj.setBrowserVersionInfo(matcher.group(1));
        }
        retObj.setBrowserEntry(be);
      }
      Long idOs=browserOsMap.get(idBrowser);
      if (idOs != null) {
        osFound=true;
        retObj.setOsEntry(osMap.get(idOs));
      }
      break;
    }
  }
  return osFound;
}
Program: 17923
Project: 17923
Buggy source:
@Test public void runUAParser() throws IOException {
  UASparser p=new UASparser(getClass().getClassLoader().getResourceAsStream("String_Node_Str"));
  UserAgentInfo uai=p.parse("String_Node_Str");
  assertEquals("String_Node_Str",uai.getType());
  assertEquals("String_Node_Str",uai.getUaName());
  assertEquals("String_Node_Str",uai.getUaFamily());
  assertEquals("String_Node_Str",uai.getUaCompany());
  assertEquals("String_Node_Str",uai.getOsName());
  assertEquals("String_Node_Str",uai.getOsFamily());
  assertEquals("String_Node_Str",uai.getOsCompany());
}

Fixed version (ground truth):
@Test public void runUAParser() throws IOException {
  UserAgentInfo uai=p.parse("String_Node_Str");
  assertEquals("String_Node_Str",uai.getType());
  assertEquals("String_Node_Str",uai.getUaName());
  assertEquals("String_Node_Str",uai.getUaFamily());
  assertEquals("String_Node_Str",uai.getUaCompany());
  assertEquals("String_Node_Str",uai.getOsName());
  assertEquals("String_Node_Str",uai.getOsFamily());
  assertEquals("String_Node_Str",uai.getOsCompany());
}
Program: 17924
Project: 17924
Buggy source:
/** 
 * Obtains an access token by calling the OAuth authentication endpoint and either trading an  access code or refresh token for it.  {@inheritDoc}
 */
@Override public String retrieveToken(String hostAndPort,String params,String refreshToken,ForceOAuthConnectionInfo connInfo) throws IOException {
  URL accessURL=new URL(hostAndPort + "String_Node_Str");
  HttpURLConnection conn=(HttpURLConnection)accessURL.openConnection();
  conn.setDoOutput(true);
  conn.setRequestMethod("String_Node_Str");
  conn.addRequestProperty("String_Node_Str","String_Node_Str");
  PrintWriter writer=null;
  try {
    writer=new PrintWriter(new OutputStreamWriter(conn.getOutputStream()));
    writer.println(params);
  }
 catch (  IOException e) {
    throwDetailedException(conn,e);
  }
 finally {
    if (writer != null) {
      writer.flush();
      writer.close();
    }
  }
  BufferedReader reader=null;
  String responsePayload=null;
  try {
    reader=new BufferedReader(new InputStreamReader(conn.getInputStream()));
    responsePayload=reader.readLine();
  }
 catch (  IOException e) {
    throwDetailedException(conn,e);
  }
 finally {
    if (reader != null)     reader.close();
  }
  return responsePayload;
}

Fixed version (ground truth):
/** 
 * Obtains an access token by calling the OAuth authentication endpoint and either trading an  access code or refresh token for it.  {@inheritDoc}
 */
@Override public String retrieveToken(String hostAndPort,String params,String refreshToken,ForceOAuthConnectionInfo connInfo) throws IOException {
  URL accessURL=new URL(hostAndPort + "String_Node_Str" + params);
  HttpURLConnection conn=(HttpURLConnection)accessURL.openConnection();
  conn.setDoOutput(true);
  conn.setRequestMethod("String_Node_Str");
  BufferedReader reader=null;
  String responsePayload=null;
  try {
    reader=new BufferedReader(new InputStreamReader(conn.getInputStream()));
    responsePayload=reader.readLine();
  }
 catch (  IOException e) {
    throwDetailedException(conn,e);
  }
 finally {
    if (reader != null)     reader.close();
  }
  return responsePayload;
}
Program: 17926
Project: 17926
Buggy source:
/** 
 * Uses the   {@code SecurityContextStorageService} to store the security context.{@inheritDoc}
 */
@Override public void setSecurityContextToSession(HttpServletRequest request,HttpServletResponse response,SecurityContext sc){
  try {
    securityContextStorageService.storeSecurityContext(request,response,sc);
  }
 catch (  ContextStoreException e) {
    LOGGER.error("String_Node_Str",e);
  }
  SecurityContextUtil.setCookieValues(sc,response,SecurityContextUtil.useSecureCookies(request));
}

Fixed version (ground truth):
/** 
 * Uses the   {@code SecurityContextStorageService} to store the security context.{@inheritDoc}
 */
@Override public void setSecurityContextToSession(HttpServletRequest request,HttpServletResponse response,SecurityContext sc){
  try {
    securityContextStorageService.storeSecurityContext(request,response,sc);
  }
 catch (  ContextStoreException e) {
    LOGGER.error("String_Node_Str",e);
  }
  SecurityContextUtil.setCookieValues(sc,response,SecurityContextUtil.useSecureCookies(request),cookiePath);
}
Program: 17927
Project: 17927
Buggy source:
/** 
 * Verifies the security context against the browser cookies. This will ensure that the necessary cookies exist and that the values match those in the security context. It will create a fresh security context with data  from the SOAP partner API if necessary.  {@inheritDoc}
 */
@Override public SecurityContext verifyAndRefreshSecurityContext(SecurityContext sc,HttpServletRequest request){
  String sessionId=null;
  String endpoint=null;
  Map<String,String> cookieValueMap=SecurityContextUtil.getCookieValues(request);
  sessionId=cookieValueMap.get(SecurityContextUtil.FORCE_FORCE_SESSION);
  endpoint=cookieValueMap.get(SecurityContextUtil.FORCE_FORCE_ENDPOINT);
  if (sc != null) {
    if (sessionId == null || !sessionId.equals(sc.getSessionId()) || endpoint == null || !endpoint.equals(sc.getEndPoint())) {
      sc=null;
    }
  }
  if (sessionId != null && endpoint != null && sc == null) {
    try {
      sc=userDataRetrievalService.retrieveUserData(sessionId,endpoint,null);
    }
 catch (    ConnectionException e) {
      sc=null;
    }
  }
  return sc;
}

Fixed version (ground truth):
/** 
 * Verifies the security context against the browser cookies. This will ensure that the necessary cookies exist and that the values match those in the security context. It will create a fresh security context with data  from the SOAP partner API if necessary.  {@inheritDoc}
 */
@Override public SecurityContext verifyAndRefreshSecurityContext(SecurityContext sc,HttpServletRequest request){
  String sessionId=null;
  String endpoint=null;
  Map<String,String> cookieValueMap=SecurityContextUtil.getCookieValues(request);
  sessionId=cookieValueMap.get(SecurityContextUtil.FORCE_FORCE_SESSION);
  endpoint=cookieValueMap.get(SecurityContextUtil.FORCE_FORCE_ENDPOINT);
  if (sc != null) {
    if (sessionId == null || !sessionId.equals(sc.getSessionId()) || endpoint == null || !endpoint.equals(sc.getEndPoint())) {
      sc=null;
    }
  }
  if (sessionId != null && endpoint != null && sc == null) {
    try {
      sc=userDataRetrievalService.retrieveUserData(sessionId,endpoint,null);
    }
 catch (    ConnectionException e) {
      LOGGER.info("String_Node_Str");
      sc=null;
    }
  }
  return sc;
}
Program: 17928
Project: 17928
Buggy source:
/** 
 * Sets the map of cookie names and values into cookies on the response.
 * @param cookieValueMap Map<String, String> - cookie name, cookie value
 * @param response HttpServletResponse
 * @param secure Whether or not the cookie should be secure
 */
public static void setCookieValues(Map<String,String> cookieValueMap,HttpServletResponse response,boolean secure){
  for (  Map.Entry<String,String> cookieEntry : cookieValueMap.entrySet()) {
    Cookie cookie=new Cookie(cookieEntry.getKey(),cookieEntry.getValue());
    cookie.setSecure(secure);
    response.addCookie(cookie);
  }
}

Fixed version (ground truth):
/** 
 * Sets the map of cookie names and values into cookies on the response.
 * @param cookieValueMap Map<String, String> - cookie name, cookie value
 * @param response HttpServletResponse
 * @param secure Whether or not the cookie should be secure
 */
public static void setCookieValues(Map<String,String> cookieValueMap,HttpServletResponse response,boolean secure,String path){
  for (  Map.Entry<String,String> cookieEntry : cookieValueMap.entrySet()) {
    Cookie cookie=new Cookie(cookieEntry.getKey(),cookieEntry.getValue());
    cookie.setSecure(secure);
    cookie.setPath(path);
    response.addCookie(cookie);
  }
}
Program: 17929
Project: 17929
Buggy source:
/** 
 * Reads in a stored secret key from a properties file and creates a   {@code SecretKeySpec} object from it.
 * @param fileName String
 * @return encryption key
 * @throws ForceEncryptionException {@link ForceEncryptionException}
 */
public static SecretKeySpec getSecretKey(String fileName) throws ForceEncryptionException {
  if (fileName == null || fileName.length() == 0) {
    fileName=PRIVATE_KEY_PATH;
  }
  InputStream is=AESUtil.class.getResourceAsStream("String_Node_Str" + fileName);
  String key=null;
  if (is == null) {
    LOGGER.warn("String_Node_Str" + fileName + "String_Node_Str");
  }
 else {
    Properties encryptionProps=new Properties();
    try {
      encryptionProps.load(is);
    }
 catch (    IOException e) {
      LOGGER.warn("String_Node_Str" + fileName + "String_Node_Str");
    }
 finally {
      if (is != null) {
        try {
          is.close();
        }
 catch (        IOException ignored) {
        }
      }
    }
    key=encryptionProps.getProperty(PRIVATE_KEY_PROPERTY);
    if (key == null || key.trim().length() == 0) {
      LOGGER.warn(PRIVATE_KEY_PROPERTY + "String_Node_Str" + fileName+ "String_Node_Str");
    }
  }
  SecretKeySpec secretKey;
  secretKey=AESUtil.recreateSecretKeySpec(key);
  return secretKey;
}

Fixed version (ground truth):
/** 
 * Reads in a stored secret key from a properties file and creates a   {@code SecretKeySpec} object from it.
 * @param fileName String
 * @return encryption key
 * @throws ForceEncryptionException {@link ForceEncryptionException}
 */
public static SecretKeySpec getSecretKey(String fileName) throws ForceEncryptionException {
  if (fileName == null || fileName.length() == 0) {
    fileName=PRIVATE_KEY_PATH;
  }
  InputStream is=AESUtil.class.getResourceAsStream("String_Node_Str" + fileName);
  String key=null;
  if (is == null) {
    LOGGER.warn("String_Node_Str" + fileName + "String_Node_Str");
  }
 else {
    Properties encryptionProps=new Properties();
    try {
      encryptionProps.load(is);
    }
 catch (    IOException e) {
      LOGGER.warn("String_Node_Str" + fileName + "String_Node_Str");
    }
 finally {
      if (is != null) {
        try {
          is.close();
        }
 catch (        IOException ignored) {
        }
      }
    }
    key=encryptionProps.getProperty(PRIVATE_KEY_PROPERTY);
    if (key == null || key.trim().length() == 0) {
      LOGGER.warn(PRIVATE_KEY_PROPERTY + "String_Node_Str" + fileName+ "String_Node_Str");
    }
  }
  return getSecretKeySpec(key);
}
Program: 17932
Project: 17932
Buggy source:
private String join(String[] name,int v){
  StringBuffer out=new StringBuffer();
  boolean notFirst=false;
  for (int i=0; i <= v; i++) {
    if (notFirst)     out.append("String_Node_Str");
    out.append(name[i]);
    notFirst=true;
  }
  return out.toString();
}

Fixed version (ground truth):
private String join(String[] name,int v){
  StringBuffer out=new StringBuffer();
  boolean notFirst=false;
  for (int i=0; i <= v && i < out.length(); i++) {
    if (notFirst)     out.append("String_Node_Str");
    out.append(name[i]);
    notFirst=true;
  }
  return out.toString();
}
Program: 17935
Project: 17935
Buggy source:
private String join(String[] name,int v){
  StringBuffer out=new StringBuffer();
  boolean notFirst=false;
  for (int i=0; i <= v && i < out.length(); i++) {
    if (notFirst)     out.append("String_Node_Str");
    out.append(name[i]);
    notFirst=true;
  }
  return out.toString();
}

Fixed version (ground truth):
private String join(String[] name,int v){
  StringBuffer out=new StringBuffer();
  boolean notFirst=false;
  for (int i=0; i <= v && i < name.length; i++) {
    if (notFirst)     out.append("String_Node_Str");
    out.append(name[i]);
    notFirst=true;
  }
  return out.toString();
}
Program: 17936
Project: 17936
Buggy source:
protected void checkFile(String file,String... expected) throws IOException {
  List<String> lines=h.getCore().getResourceLoader().getLines(file);
  for (  String l : lines) {
    System.out.println(l);
  }
  for (  String t : expected) {
    if (t.substring(0,1).equals("String_Node_Str")) {
      assertFalse("String_Node_Str" + t + "String_Node_Str"+ lines,lines.contains(t.substring(1)));
    }
 else {
      assertTrue("String_Node_Str" + t + "String_Node_Str"+ lines,lines.contains(t));
    }
  }
}

Fixed version (ground truth):
protected void checkFile(String file,String... expected) throws IOException {
  List<String> lines=h.getCore().getResourceLoader().getLines(file);
  for (  String t : expected) {
    if (t.substring(0,1).equals("String_Node_Str")) {
      assertFalse("String_Node_Str" + t + "String_Node_Str"+ lines,lines.contains(t.substring(1)));
    }
 else {
      assertTrue("String_Node_Str" + t + "String_Node_Str"+ lines,lines.contains(t));
    }
  }
}
Program: 17937
Project: 17937
Buggy source:
@Override public DocIdSetIterator iterator(){
  if (hits.size() == 0)   return null;
  return new DocIdSetIterator(){
    int idx=doc;
    @Override public int docID(){
      if (idx < 0) {
        return -1;
      }
 else       if (idx < hits.size()) {
        return doc;
      }
 else {
        return NO_MORE_DOCS;
      }
    }
    @Override public int nextDoc() throws IOException {
      if (iterator != null && iterator.hasNext()) {
        ScoreDoc hit=iterator.next();
        score=hit.score;
        return doc=hit.doc - docBase;
      }
 else {
        return doc=NO_MORE_DOCS;
      }
    }
    @Override public int advance(    int target) throws IOException {
      while ((doc=nextDoc()) < target) {
        return doc;
      }
      return doc;
    }
    @Override public long cost(){
      return hits.size();
    }
  }
;
}

Fixed version (ground truth):
@Override public DocIdSetIterator iterator(){
  if (hits.size() == 0)   return null;
  return new DocIdSetIterator(){
    int idx=doc;
    @Override public int docID(){
      if (idx < 0) {
        return -1;
      }
 else       if (idx < hits.size()) {
        return doc;
      }
 else {
        return NO_MORE_DOCS;
      }
    }
    @Override public int nextDoc() throws IOException {
      if (iterator != null && iterator.hasNext()) {
        ScoreDoc hit=iterator.next();
        score=hit.score;
        return doc=hit.doc - docBase;
      }
 else {
        return doc=NO_MORE_DOCS;
      }
    }
    @Override public int advance(    int target) throws IOException {
      while ((doc=nextDoc()) < target) {
      }
      return doc;
    }
    @Override public long cost(){
      return hits.size();
    }
  }
;
}
Program: 17938
Project: 17938
Buggy source:
@Override public int advance(int target) throws IOException {
  while ((doc=nextDoc()) < target) {
    return doc;
  }
  return doc;
}

Fixed version (ground truth):
@Override public int advance(int target) throws IOException {
  while ((doc=nextDoc()) < target) {
  }
  return doc;
}
Program: 17939
Project: 17939
Buggy source:
/** 
 * OK, done 17Apr
 * @throws Exception
 */
public void testIdentifiers() throws Exception {
  WhitespaceAnalyzer wsa=new WhitespaceAnalyzer();
  Query q=null;
  assertQueryEquals("String_Node_Str",wsa,"String_Node_Str");
  assertQueryEquals("String_Node_Str",wsa,"String_Node_Str");
  assertQueryEquals("String_Node_Str",wsa,"String_Node_Str");
  assertQueryEquals("String_Node_Str",wsa,"String_Node_Str");
  q=assertQueryEquals("String_Node_Str",wsa,"String_Node_Str");
  assertQueryEquals("String_Node_Str",wsa,"String_Node_Str");
  assertQueryEquals("String_Node_Str",wsa,"String_Node_Str");
  assertQueryEquals("String_Node_Str",wsa,"String_Node_Str");
  assertQueryEquals("String_Node_Str",wsa,"String_Node_Str");
  q=assertQueryEquals("String_Node_Str",wsa,"String_Node_Str");
  assertQueryEquals("String_Node_Str",wsa,"String_Node_Str");
}

Fixed version (ground truth):
/** 
 * OK, done 17Apr
 */
public void testIdentifiers() throws Exception {
  WhitespaceAnalyzer wsa=new WhitespaceAnalyzer();
  Query q=null;
  assertQueryEquals("String_Node_Str",wsa,"String_Node_Str");
  assertQueryEquals("String_Node_Str",wsa,"String_Node_Str");
  assertQueryEquals("String_Node_Str",wsa,"String_Node_Str");
  assertQueryEquals("String_Node_Str",wsa,"String_Node_Str");
  q=assertQueryEquals("String_Node_Str",wsa,"String_Node_Str");
  assertQueryEquals("String_Node_Str",wsa,"String_Node_Str");
  assertQueryEquals("String_Node_Str",wsa,"String_Node_Str");
  assertQueryEquals("String_Node_Str",wsa,"String_Node_Str");
  assertQueryEquals("String_Node_Str",wsa,"String_Node_Str");
  q=assertQueryEquals("String_Node_Str",wsa,"String_Node_Str");
  assertQueryEquals("String_Node_Str",wsa,"String_Node_Str");
}
Program: 17940
Project: 17940
Buggy source:
/** 
 * OK, 17Apr
 * @throws Exception
 */
public void testRanges() throws Exception {
  WhitespaceAnalyzer wsa=new WhitespaceAnalyzer();
  assertQueryEquals("String_Node_Str",null,"String_Node_Str");
  assertQueryEquals("String_Node_Str",null,"String_Node_Str");
  assertQueryNodeException("String_Node_Str");
  assertQueryNodeException("String_Node_Str");
  assertQueryEquals("String_Node_Str",null,"String_Node_Str");
  assertQueryEquals("String_Node_Str",null,"String_Node_Str");
  assertQueryNodeException("String_Node_Str");
  assertQueryNodeException("String_Node_Str");
  assertQueryEquals("String_Node_Str",null,"String_Node_Str");
  assertQueryEquals("String_Node_Str",null,"String_Node_Str");
  assertQueryNodeException("String_Node_Str");
  assertQueryNodeException("String_Node_Str");
  assertQueryEquals("String_Node_Str",null,"String_Node_Str");
  assertQueryEquals("String_Node_Str",null,"String_Node_Str");
  assertQueryEquals("String_Node_Str",null,"String_Node_Str");
  assertQueryEquals("String_Node_Str",null,"String_Node_Str");
  assertQueryEquals("String_Node_Str",null,"String_Node_Str");
  assertQueryEquals("String_Node_Str",null,"String_Node_Str");
  assertQueryEquals("String_Node_Str",null,"String_Node_Str");
  assertQueryEquals("String_Node_Str",null,"String_Node_Str");
  assertQueryEquals("String_Node_Str",wsa,"String_Node_Str");
  assertQueryEquals("String_Node_Str",null,"String_Node_Str");
  assertQueryEquals("String_Node_Str",null,"String_Node_Str");
  assertQueryEquals("String_Node_Str",null,"String_Node_Str");
}

Fixed version (ground truth):
/** 
 * OK, 17Apr
 */
public void testRanges() throws Exception {
  WhitespaceAnalyzer wsa=new WhitespaceAnalyzer();
  assertQueryEquals("String_Node_Str",null,"String_Node_Str");
  assertQueryEquals("String_Node_Str",null,"String_Node_Str");
  assertQueryNodeException("String_Node_Str");
  assertQueryNodeException("String_Node_Str");
  assertQueryEquals("String_Node_Str",null,"String_Node_Str");
  assertQueryEquals("String_Node_Str",null,"String_Node_Str");
  assertQueryNodeException("String_Node_Str");
  assertQueryNodeException("String_Node_Str");
  assertQueryEquals("String_Node_Str",null,"String_Node_Str");
  assertQueryEquals("String_Node_Str",null,"String_Node_Str");
  assertQueryNodeException("String_Node_Str");
  assertQueryNodeException("String_Node_Str");
  assertQueryEquals("String_Node_Str",null,"String_Node_Str");
  assertQueryEquals("String_Node_Str",null,"String_Node_Str");
  assertQueryEquals("String_Node_Str",null,"String_Node_Str");
  assertQueryEquals("String_Node_Str",null,"String_Node_Str");
  assertQueryEquals("String_Node_Str",null,"String_Node_Str");
  assertQueryEquals("String_Node_Str",null,"String_Node_Str");
  assertQueryEquals("String_Node_Str",null,"String_Node_Str");
  assertQueryEquals("String_Node_Str",null,"String_Node_Str");
  assertQueryEquals("String_Node_Str",wsa,"String_Node_Str");
  assertQueryEquals("String_Node_Str",null,"String_Node_Str");
  assertQueryEquals("String_Node_Str",null,"String_Node_Str");
  assertQueryEquals("String_Node_Str",null,"String_Node_Str");
}