<commit_before>request = require 'superagent'
should = require 'should'
settings = require '../settings.json'

describe 'API', ->
  before ->
    @user = 'ickletest'
    @password = '<PASSWORD>'
    @loginURL = "#{settings.serverURL}/login"

  describe 'Datasets', ->
    context 'when I create a dataset', ->
      before ->
        @dataset = null

      context 'POST /api/:user/datasets', ->
        it 'creates a new dataset'
        it 'returns the newly created dataset'

      context 'GET: /api/:user/datasets', ->
        it 'returns a list of datasets'

      context 'GET /api/:user/datasets/:id', ->
        it 'returns a single dataset'
        it "500 errors if it doesn't exist"

      context 'PUT /api/:user/datasets/:id', ->
        it 'updates a single dataset with new values'
        it "500 errors if it doesn't exist"<commit_msg>Log in before test<commit_after>request = require 'superagent'
should = require 'should'
settings = require '../settings.json'

describe 'API', ->
  before (done) ->
    @password = '<PASSWORD>'
    @loginURL = "#{settings.serverURL}/login"
    @agent = request.agent()
    @agent.post(@loginURL)
      .send({ user: @user, password: <PASSWORD> })
      .end (err, res) ->
        done(err)

  describe 'Datasets', ->
    context 'when I create a dataset', ->
      before ->
        @dataset = null

      context 'POST /api/:user/datasets', ->
        it 'creates a new dataset'
        it 'returns the newly created dataset'

      context 'GET: /api/:user/datasets', ->
        it 'returns a list of datasets'

      context 'GET /api/:user/datasets/:id', ->
        it 'returns a single dataset'
        it "500 errors if it doesn't exist"

      context 'PUT /api/:user/datasets/:id', ->
        it 'updates a single dataset with new values'
        it "500 errors if it doesn't exist"



{'fraction_non_alphanumeric': 0.136978884677856, 'fraction_numerical': 0.006497022198159177, 'mean_word_length': 2.3784277879341866, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 25, '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': '331743', 'n_tokens_mistral': 560, 'n_tokens_neox': 547, 'n_words': 183}