<commit_before>'use strict';

const Promise = require('bluebird');
const readFile = Promise.promisify(require('fs').readFile);
const stat = Promise.promisify(require('fs').stat);

const cache = {};
const badgesDir = `${__dirname}/../../badges`;

function info(score, options) {
    const isUnknown = typeof score !== 'number';

    options = Object.assign({ format: 'svg', style: 'flat', revision: 1 }, options);

    const percentage = !isUnknown ? Math.round(score * 100) : null;
    const value = !isUnknown ? `${percentage}%` : 'unknown';
    const file = `${isUnknown ? 'unknown' : percentage}/${isUnknown ? 'unknown' : percentage}-${options.style}.${options.format}`;
<commit_msg>Change rev option to 0.<commit_after>'use strict';

const Promise = require('bluebird');
const readFile = Promise.promisify(require('fs').readFile);
const stat = Promise.promisify(require('fs').stat);

const cache = {};
const badgesDir = `${__dirname}/../../badges`;

function info(score, options) {
    const isUnknown = typeof score !== 'number';

    options = Object.assign({ format: 'svg', style: 'flat', revision: 0 }, options);

    const percentage = !isUnknown ? Math.round(score * 100) : null;
    const value = !isUnknown ? `${percentage}%` : 'unknown';
    const file = `${isUnknown ? 'unknown' : percentage}/${isUnknown ? 'unknown' : percentage}-${options.style}.${options.format}`;

{'fraction_non_alphanumeric': 0.1874095513748191, 'fraction_numerical': 0.006512301013024602, 'mean_word_length': 4.7625, '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': '4974001', 'n_tokens_mistral': 414, 'n_tokens_neox': 406, 'n_words': 106}