<commit_before>/* DO NOT EDIT: File is auto-generated */
package <%= to_package(repository.syncrecord.qualified_status_integration_test_name) %>;

@javax.annotation.Generated( "Domgen" )
public class <%= repository.syncrecord.status_integration_test_name %>
  extends <%= repository.ee.qualified_base_integration_test_name %>
{
  @org.testng.annotations.Test
  public void checkSyncStatusExposed()
    throws Exception
  {
    final int initialCount = httpGet( "/<%= repository.jaxrs.path %>/status/sync", javax.json.JsonArray.class ).size();
    final javax.persistence.EntityTransaction transaction = getInstance( iris.syncrecord.server.entity.SyncRecordPersistenceUnit.NAME, javax.persistence.EntityManager.class ).getTransaction();
    transaction.begin();
    final String key = java.util.UUID.randomUUID().toString();
    final iris.syncrecord.server.entity.Synchronization synchronization = new iris.syncrecord.server.entity.Synchronization( iris.syncrecord.server.data_type.Status.OK, key, new java.util.Date(), new java.util.Date(), new java.util.Date(), 0 );
    s( iris.syncrecord.server.entity.dao.SynchronizationRepository.class ).persist( synchronization );
    transaction.commit();
    org.testng.Assert.assertEquals( httpGet( "/api/status/sync", javax.json.JsonArray.class ).size(), initialCount + 1 );
    final javax.json.JsonObject jsonObject = httpGet( "/api/status/sync/" + key, javax.json.JsonObject.class );
    org.testng.Assert.assertEquals( jsonObject.getString( "dataSource" ), key );
    org.testng.Assert.assertEquals( jsonObject.getString( "status" ), "OK" );
  }
}<commit_msg> Remove incorrect hardcoding of constants<commit_after>/* DO NOT EDIT: File is auto-generated */
package <%= to_package(repository.syncrecord.qualified_status_integration_test_name) %>;

@javax.annotation.Generated( "Domgen" )
public class <%= repository.syncrecord.status_integration_test_name %>
  extends <%= repository.ee.qualified_base_integration_test_name %>
{
  @org.testng.annotations.Test
  public void checkSyncStatusExposed()
    throws Exception
  {
    final int initialCount = httpGet( "/<%= repository.jaxrs.path %>/status/sync", javax.json.JsonArray.class ).size();
    final javax.persistence.EntityTransaction transaction = getInstance( iris.syncrecord.server.entity.SyncRecordPersistenceUnit.NAME, javax.persistence.EntityManager.class ).getTransaction();
    transaction.begin();
    final String key = java.util.UUID.randomUUID().toString();
    final iris.syncrecord.server.entity.Synchronization synchronization = new iris.syncrecord.server.entity.Synchronization( iris.syncrecord.server.data_type.Status.OK, key, new java.util.Date(), new java.util.Date(), new java.util.Date(), 0 );
    s( iris.syncrecord.server.entity.dao.SynchronizationRepository.class ).persist( synchronization );
    transaction.commit();
    org.testng.Assert.assertEquals( httpGet( "/<%= repository.jaxrs.path %>/status/sync", javax.json.JsonArray.class ).size(), initialCount + 1 );
    final javax.json.JsonObject jsonObject = httpGet( "/<%= repository.jaxrs.path %>/status/sync/" + key, javax.json.JsonObject.class );
    org.testng.Assert.assertEquals( jsonObject.getString( "dataSource" ), key );
    org.testng.Assert.assertEquals( jsonObject.getString( "status" ), "OK" );
  }
}
{'fraction_non_alphanumeric': 0.13782635094110504, 'fraction_numerical': 0.0012143290831815423, 'mean_word_length': 5.12453531598513, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4043803', 'n_tokens_mistral': 987, 'n_tokens_neox': 960, 'n_words': 173}