<commit_before>var sort = require('../lib/sort.js'),
    _ = require('lodash'),
    should = require('should');

describe('sort', function () {
    it('order and sort attributes', function (done) {

        var firstObject = {
            name: 'LinearLayout',
            type: 'tag',
            attributes: [{
                value: 'fill_parent',
                name: 'android:layout_height'
            }, {
                name: 'android:layout_width',
                value: 'match_parent'
            }
            ]
        };
        var secondObject = {
            type: 'tag',
            name: 'LinearLayout',
            attributes: [{
                name: 'android:layout_width',
                value: 'match_parent'
            },
                {
                    name: 'android:layout_height',
                    value: 'fill_parent'
                },
            ]
        };

        var firstObjectSorted = sort(firstObject);
        var secondObjectSorted = sort(secondObject);
        console.log('Before:')
        console.log(firstObject)
        console.log('After:')
        console.log(firstObjectSorted)
        console.log('=========================================================')
        console.log('Before:')
        console.log(secondObject)
        console.log('After:')
        console.log(secondObjectSorted)
        var comparison = _.isEqual(firstObjectSorted, secondObjectSorted);
        comparison.should.be.true

        done();
    })
})<commit_msg>remove unused dependencies and fix style issues<commit_after>var sort = require('../lib/sort.js');
var _ = require('lodash');
var chai = require('chai');
chai.should();

describe('sort', function () {
    it('order and sort attributes', function (done) {

        var firstObject = {
            name: 'LinearLayout',
            type: 'tag',
            attributes: [{
                value: 'fill_parent',
                name: 'android:layout_height'
            }, {
                name: 'android:layout_width',
                value: 'match_parent'
            }
            ]
        };
        var secondObject = {
            type: 'tag',
            name: 'LinearLayout',
            attributes: [{
                name: 'android:layout_width',
                value: 'match_parent'
            },
                {
                    name: 'android:layout_height',
                    value: 'fill_parent'
                },
            ]
        };

        var firstObjectSorted = sort(firstObject);
        var secondObjectSorted = sort(secondObject);
        console.log('Before:');
        console.log(firstObject);
        console.log('After:');
        console.log(firstObjectSorted);
        console.log('=========================================================');
        console.log('Before:');
        console.log(secondObject);
        console.log('After:');
        console.log(secondObjectSorted);
        var comparison = _.isEqual(firstObjectSorted, secondObjectSorted);
        comparison.should.be.true;

        done();
    })
});
{'fraction_non_alphanumeric': 0.15808344198174706, 'fraction_numerical': 0.0, 'mean_word_length': 1.6663770634231103, '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': '6298336', 'n_tokens_mistral': 792, 'n_tokens_neox': 751, 'n_words': 139}