<commit_before>'use strict';

var _ = require('lodash');
var m = require('mithril');

var Jvent = require('jvent');


// serialize object to parameters list
// this should be moved to the generic utils package

var seralizeObjectToParams = function (obj) {
    var str = '';
    for (var key in obj) {
        if (obj.hasOwnProperty(key)) {
            if (str !== '') {
                str += '&';
            }
            str += key + '=' + encodeURIComponent(obj[key]);
        }
    }
    return str;
};

var PrintLayout = function(data) {
    this.name = m.prop(data.name);
    this.width = m.prop(data.width);
    this.height = m.prop(data.height);
};

var PrintLayoutCollection = Array;

var Scales = [
    {scale: 500, display: '1:500'},
    {scale: 1000, display: '1:1000'},
    {scale: 2000, display: '1:2000'},
    {scale: 5000, display: '1:5000'},
    {scale: 10000, display: '1:10000'},
    {scale: 25000, display: '1:25000'},
    {scale: 50000, display: '1:50000'},<commit_msg>Add scale 7000 to the print control<commit_after>'use strict';

var _ = require('lodash');
var m = require('mithril');

var Jvent = require('jvent');


// serialize object to parameters list
// this should be moved to the generic utils package

var seralizeObjectToParams = function (obj) {
    var str = '';
    for (var key in obj) {
        if (obj.hasOwnProperty(key)) {
            if (str !== '') {
                str += '&';
            }
            str += key + '=' + encodeURIComponent(obj[key]);
        }
    }
    return str;
};

var PrintLayout = function(data) {
    this.name = m.prop(data.name);
    this.width = m.prop(data.width);
    this.height = m.prop(data.height);
};

var PrintLayoutCollection = Array;

var Scales = [
    {scale: 500, display: '1:500'},
    {scale: 1000, display: '1:1000'},
    {scale: 2000, display: '1:2000'},
    {scale: 5000, display: '1:5000'},
    {scale: 7000, display: '1:7000'},
    {scale: 10000, display: '1:10000'},
    {scale: 25000, display: '1:25000'},
    {scale: 50000, display: '1:50000'},
{'fraction_non_alphanumeric': 0.17172211350293543, 'fraction_numerical': 0.07191780821917808, 'mean_word_length': 2.7385740402193783, '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': '2362732', 'n_tokens_mistral': 788, 'n_tokens_neox': 681, 'n_words': 183}