<commit_before>/* global describe, it, before*/
'use strict';

// Travis run this file while building.
var execSync = require('child_process').exec
  , path = require('path')
  , basename = path.basename(__filename, '.js')
  , debug = require('debug')('ezmaster:' + basename)
  , request = require('supertest');


//Build the fakeapp image
// Create the container and the manifest file
//Before all the test

request = request('http://127.0.0.1:35267');


describe('Test Image', function () {

  this.timeout(60000);

  it('Create image', function (done) {

    var data = {
          'imageName' : 'hello-world',
          'versionImage' : 'latest'
        };

    request
    .post('/-/v1/app')
    .send(data)
    .expect(200, function (err) {
      done(err);
    });



  });


  it('Found fakeapp', function (done) {
    request.get('/-/v1/app/').expect(function (res) {
      if (!res.body['hello-world:latest']) { throw new Error('Image not found!'); }
    })
    .end(done);

  });


  it('Delete Image', function (done) {

    request
    .delete('/-/v1/app/hello-world')
    .expect(200, function (err) {
      done(err);
    });




  });
});<commit_msg>fix bithound<commit_after>/* global describe, it*/
'use strict';

// Travis run this file while building.
var path = require('path')
  , basename = path.basename(__filename, '.js')
  , debug = require('debug')('ezmaster:' + basename)
  , request = require('supertest');


//Build the fakeapp image
// Create the container and the manifest file
//Before all the test

request = request('http://127.0.0.1:35267');


describe('Test Image', function () {

  this.timeout(60000);

  it('Create image', function (done) {

    var data = {
      'imageName' : 'hello-world',
      'versionImage' : 'latest'
    };

    request
    .post('/-/v1/app')
    .send(data)
    .expect(200, function (err) {
      done(err);
    });



  });


  it('Found fakeapp', function (done) {
    request.get('/-/v1/app/').expect(function (res) {
      if (!res.body['hello-world:latest']) { throw new Error('Image not found!'); }
    })
    .end(done);

  });


  it('Delete Image', function (done) {

    request
    .delete('/-/v1/app/hello-world')
    .expect(200, function (err) {
      done(err);
    });




  });
});
{'fraction_non_alphanumeric': 0.19064430714916153, 'fraction_numerical': 0.02206531332744925, 'mean_word_length': 2.7533112582781456, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '65109', 'n_tokens_mistral': 803, 'n_tokens_neox': 732, 'n_words': 174}