<commit_before># run with mocha 

# Mocha tests for the classes.  Each class is a configuration of
# a cloud server, or part of a configuration.

fs = require 'fs'
cf = require '../code/config'

describe 'Vanilla Config', ->
  it 'should exist', ->
    f = fs.openSync('class/vanilla/config.json', 'r')

describe 'Config inclusion', ->
  config = null

  describe 'When vanilla config is accessed', ->
    before ->
      config = new cf.Config 'vanilla'

    it 'should contain the fields for vanilla', ->
      config.name.should.equal 'vanilla'
      config.description.should.equal 'A fairly plain Linux cloud server'
      config.ram.should.equal '512M'
      config.disk_size.should.equal '2048G'

  describe 'When boxecutor config is accessed', ->
    before ->
      config = new cf.Config 'boxecutor'

    it 'should contain included fields from vanilla', ->
      config.ram.should.equal '512M'
      config.disk_size.should.equal '2048G'
    
    it 'should not have its own fields overriden', ->
      config.name.should.equal 'boxecutor'

<commit_msg>update classes tests to use alternate disk & ram format<commit_after># run with mocha 

# Mocha tests for the classes.  Each class is a configuration of
# a cloud server, or part of a configuration.

fs = require 'fs'
cf = require '../code/config'

describe 'Vanilla Config', ->
  it 'should exist', ->
    f = fs.openSync('class/vanilla/config.json', 'r')

describe 'Config inclusion', ->
  config = null

  describe 'When vanilla config is accessed', ->
    before ->
      config = new cf.Config 'vanilla'

    it 'should contain the fields for vanilla', ->
      config.name.should.equal 'vanilla'
      config.description.should.equal 'A fairly plain Linux cloud server'
      config.ram.should.equal 512
      config.disk_size.should.equal 20

  describe 'When boxecutor config is accessed', ->
    before ->
      config = new cf.Config 'boxecutor'

    it 'should contain included fields from vanilla', ->
      config.ram.should.equal 512
      config.disk_size.should.equal 20
    
    it 'should not have its own fields overriden', ->
      config.name.should.equal 'boxecutor'


{'fraction_non_alphanumeric': 0.10724233983286909, 'fraction_numerical': 0.011142061281337047, 'mean_word_length': 2.9324817518248176, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 23, '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': '5283196', 'n_tokens_mistral': 662, 'n_tokens_neox': 618, 'n_words': 220}