<commit_before>/**
 * @license
 * Copyright 2019 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */

/**
 * @fileoverview Thrasos renderer.
 * @author <EMAIL> (<NAME>)
 */
'use strict';

goog.module('Blockly.thrasos.Renderer');
goog.module.declareLegacyNamespace();

goog.require('Blockly.blockRendering');
goog.require('Blockly.blockRendering.Renderer');
goog.require('Blockly.thrasos.RenderInfo');
goog.require('Blockly.utils.object');

goog.requireType('Blockly.BlockSvg');


/**
 * The thrasos renderer.
 * @param {string} name The renderer name.
 * @package
 * @constructor
 * @extends {Blockly.blockRendering.Renderer}
 */
const Renderer = function(name) {
  Renderer.superClass_.constructor.call(this, name);
};
Blockly.utils.object.inherits(Renderer,
    Blockly.blockRendering.Renderer);

/**
 * Create a new instance of the renderer's render info object.
 * @param {!Blockly.BlockSvg} block The block to measure.
 * @return {!Blockly.thrasos.RenderInfo} The render info object.
 * @protected
 * @override
 */
Renderer.prototype.makeRenderInfo_ = function(block) {
  return new Blockly.thrasos.RenderInfo(this, block);
};


Blockly.blockRendering.register('thrasos', Renderer);

exports = Renderer;<commit_msg>Migrate core/renderers/thrasos/renderer.js named requires<commit_after>/**
 * @license
 * Copyright 2019 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */

/**
 * @fileoverview Thrasos renderer.
 * @author <EMAIL> (<NAME>)
 */
'use strict';

goog.module('Blockly.thrasos.Renderer');
goog.module.declareLegacyNamespace();

const BaseRenderer = goog.require('Blockly.blockRendering.Renderer');
/* eslint-disable-next-line no-unused-vars */
const BlockSvg = goog.requireType('Blockly.BlockSvg');
const RenderInfo = goog.require('Blockly.thrasos.RenderInfo');
const blockRendering = goog.require('Blockly.blockRendering');
const object = goog.require('Blockly.utils.object');


/**
 * The thrasos renderer.
 * @param {string} name The renderer name.
 * @package
 * @constructor
 * @extends {BaseRenderer}
 */
const Renderer = function(name) {
  Renderer.superClass_.constructor.call(this, name);
};
object.inherits(Renderer, BaseRenderer);

/**
 * Create a new instance of the renderer's render info object.
 * @param {!BlockSvg} block The block to measure.
 * @return {!RenderInfo} The render info object.
 * @protected
 * @override
 */
Renderer.prototype.makeRenderInfo_ = function(block) {
  return new RenderInfo(this, block);
};


blockRendering.register('thrasos', Renderer);

exports = Renderer;
{'fraction_non_alphanumeric': 0.14659270998415214, 'fraction_numerical': 0.004754358161648178, 'mean_word_length': 5.113801452784504, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '1192066', 'n_tokens_mistral': 812, 'n_tokens_neox': 794, 'n_words': 170}