<commit_before>var request = require('supertest');
var app = require('../index');

describe('GET /', function(){
  it('respond with json', function(done){
    request(app)
      .get('/')
      .set('Accept', 'application/json')
      .expect('Content-Type', /json/)
      .expect(200, done);
  })
  it('repsond with 200 status', function(done){
    request(app)
      .get('/')
      .expect(200, done);
  })
})

describe('GET /laws', function(){
  it('respond with json', function(done){
    request(app)
      .get('/laws')
      .set('Accept', 'application/json')
      .expect('Content-Type', /json/)
      .expect(200, done);
  })
  it('repsond with 200 status', function(done){
    request(app)
      .get('/laws')
      .expect(200, done);
  })
})

describe('GET /laws/:name', function(){
  it('respond with json', function(done){
    request(app)
      .get('/laws/ca')
      .set('Accept', 'application/json')
      .expect('Content-Type', /json/)
      .expect(200, done);
  })
  it('repsond with 200 status', function(done){
    request(app)
      .get('/laws/ca')
      .expect(200, done);
  })
})

describe('GET /create', function(){
  it('respond with html', function(done){
    request(app)
      .get('/create')
      .set('Accept', 'text/html')
      .expect('Content-Type', /html/)
      .expect(200, done);
  })
  it('repsond with 200 status', function(done){
    request(app)
      .get('/create')
      .expect(200, done);
  })
})
<commit_msg>fixed travis build<commit_after>var request = require('supertest');
var app = require('../index');

describe('GET /', function(){
  it('respond with json', function(done){
    request(app)
      .get('/')
      .set('Accept', 'application/json')
      .expect('Content-Type', /html/)
      .expect(200, done);
  })
  it('repsond with 200 status', function(done){
    request(app)
      .get('/')
      .expect(200, done);
  })
})

describe('GET /laws', function(){
  it('respond with json', function(done){
    request(app)
      .get('/laws')
      .set('Accept', 'application/json')
      .expect('Content-Type', /json/)
      .expect(200, done);
  })
  it('repsond with 200 status', function(done){
    request(app)
      .get('/laws')
      .expect(200, done);
  })
})

describe('GET /laws/:name', function(){
  it('respond with json', function(done){
    request(app)
      .get('/laws/ca')
      .set('Accept', 'application/json')
      .expect('Content-Type', /json/)
      .expect(200, done);
  })
  it('repsond with 200 status', function(done){
    request(app)
      .get('/laws/ca')
      .expect(200, done);
  })
})

describe('GET /create', function(){
  it('respond with html', function(done){
    request(app)
      .get('/create')
      .set('Accept', 'text/html')
      .expect('Content-Type', /html/)
      .expect(200, done);
  })
  it('repsond with 200 status', function(done){
    request(app)
      .get('/create')
      .expect(200, done);
  })
})

{'fraction_non_alphanumeric': 0.21124361158432708, 'fraction_numerical': 0.02453151618398637, 'mean_word_length': 2.7883870967741937, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4349534', 'n_tokens_mistral': 1042, 'n_tokens_neox': 967, 'n_words': 204}