<commit_before><html>
  <head>
  
  </head>
  <body>
    <script type="text/javascript" src="/js/lib/lodash.min.js"></script>
    <script type="text/javascript" src="/js/lib/validator-min.js"></script>
    <script type="text/javascript" src="/js/lib/q.js"></script>
    <script type="text/javascript" src="/js/lib/ez-access.js"></script>
    <script type="text/javascript" src="/js/lib/ez-routes.js"></script>
    <script>
      assert = function(actual, expected) {
        if(actual !== expected) {
          throw new Error("Actual result differs from expected: '" + actual + "' ::: '" + expected + "'")
        }
      }
      EZAccess.User.query().then(function(response) {
        assert(response.length > 0, true);
      }).done();
      EZAccess.User.postLogin("yourdeveloperfriend", "<PASSWORD>").then(function(response) {
        assert(response, true);
      }).done();
      EZAccess.User.postLogin("yourdeveloperfriend", "<PASSWORD>").then(function(response) {
        assert(false, "Successful for some reason!");
      }, function(error) {
        assert(error.message, "Invalid username or password");
      }).done();
      EZAccess.User.postLogin("yourdeveloperfriend").then(function(response) {
        assert(false, "Successful for some reason!");
      }, function(error) {
        assert(error.message, "Validate");
        assert(error.errors.password.length, 1);
        assert(error.errors.password[0], 'is required');
      }).done();
      var batch = new EZAccess.Batch();
      batch.get('user', batch.User.get(1));
      batch.get('user2', batch.User.get(2));
      batch.flush().then(function(response) {
        assert(response.user.name, '<NAME>');
        assert(response.user2.name, '<NAME>');
      }).done();
      batch = new EZAccess.Batch();
      batch.get({
        user: batch.User.get(1),
        user2: batch.User.get(2)
      });
      batch.flush().then(function(response) {
        assert(response.user.name, '<NAME>');
        assert(response.user2.name, '<NAME>');
      }).done();
      batch = new EZAccess.Batch();
      batch.get({
        user: batch.User.get(1),
        user2: batch.User.get(2)
      });
      batch.get('user3', batch.User.get(3));
      batch.flush().then(function(response) {
        assert(response.user.name, '<NAME>');
        assert(response.user2.name, '<NAME>');
        assert(response.user3.name, '<NAME>');
      }).done();
    </script>
  </body>
</html>
<commit_msg>Improved test<commit_after><html>
  <head>
  
  </head>
  <body>
    <script type="text/javascript" src="/js/lib/lodash.min.js"></script>
    <script type="text/javascript" src="/js/lib/validator-min.js"></script>
    <script type="text/javascript" src="/js/lib/q.js"></script>
    <script type="text/javascript" src="/js/lib/ez-access.js"></script>
    <script type="text/javascript" src="/js/lib/ez-routes.js"></script>
    <script>
      assert = function(actual, expected) {
        if(actual !== expected) {
          throw new Error("Actual result differs from expected: '" + actual + "' ::: '" + expected + "'")
        }
      }
      EZAccess.User.query().then(function(response) {
        assert(response.length > 0, true);
      }).done();
      EZAccess.User.postLogin("yourdeveloperfriend", "<PASSWORD>").then(function(response) {
        assert(response, true);
      }).done();
      EZAccess.User.postLogin("yourdeveloperfriend", "<PASSWORD>").then(function(response) {
        assert(false, "Successful for some reason!");
      }, function(error) {
        assert(error.message, "Invalid username or password");
      }).done();
      EZAccess.User.postLogin("yourdeveloperfriend").then(function(response) {
        assert(false, "Successful for some reason!");
      }, function(error) {
        assert(error.message, "Validate");
        assert(error.errors.password.length, 1);
        assert(error.errors.password[0], 'is required');
      }).done();
      var batch = new EZAccess.Batch();
      batch.get('user', batch.User.get(1));
      batch.get('user2', batch.User.get(2));
      batch.flush().then(function(response) {
        assert(response.user.name, '<NAME>');
        assert(response.user2.name, '<NAME>');
      }).done();
      batch = new EZAccess.Batch();
      batch.get({
        user: batch.User.get(1),
        user2: batch.User.get(2)
      });
      batch.flush().then(function(response) {
        assert(response.user.name, '<NAME>');
        assert(response.user2.name, '<NAME>');
      }).done();
      batch = new EZAccess.Batch();
      batch.get({
        user: batch.User.get(1),
        user2: batch.User.get(2)
      });
      batch.get('user3', batch.User.get(0));
      batch.flush().then(function(response) {
        assert(response.user.name, '<NAME>');
        assert(response.user2.name, '<NAME>');
        assert(response.user3.name, '<NAME>');
      }).done();
    </script>
  </body>
</html>

{'fraction_non_alphanumeric': 0.19356153219233904, 'fraction_numerical': 0.007334963325183374, 'mean_word_length': 2.7936630602782073, 'pattern_counts': {'":': 0, '<': 57, '<?xml version=': 0, '>': 59, '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': '801785', 'n_tokens_mistral': 1530, 'n_tokens_neox': 1520, 'n_words': 245}