<commit_before>/** 
 * @class 
 * @constructor
 * @description The flamingo Tool Class 
 **/
Ext.define("viewer.viewercontroller.flamingo.FlamingoTool",{
    extend: "viewer.viewercontroller.controller.Tool",
    enabledEvents: null,    
    config: {
        width: null,
        height: null,
        left: null,
        right: null,
        top: null,
        bottom: null,
        listenTo: null,
        //for measure
        decimals: null,
        magicnumber: null,
        units: null
    },       
    /** Create a new FlamingoTool
     *@construct
     *@param config.id id of this object
     *@param config.type the type name of the component
     *@param config.width the width of the component
     *@param config.height the height of the component
     *@param config.left margin at the left side
     *@param config.right margin of the right side
     *@param config.bottom margin at the bottom side
     *@param config.tooltip the tool tip of this component
     *@param config.listenTo the component id to listen to
     */
    constructor : function (config){
        //replace the . for flamingo
        if (config.id){
            config.id=config.id.replace(/\./g,"_");
        }
        this.enabledEvents=new Object();
        viewer.viewercontroller.flamingo.FlamingoTool.superclass.constructor.call(this, config);
        this.initConfig(config);
        return this;
    },
    /**
     * Sets the tool visibility
     * @param visibility the visibility
     * @see MapComponent#setVisible
     */
    setVisible: function (vis){
        this.visible=vis;
        if (this.getFrameworkTool){
            this.getFrameworkTool().callMethod(this.getId(),'setVisible',visibility);
        }<commit_msg>Don't check on function but on value of the function<commit_after>/** 
 * @class 
 * @constructor
 * @description The flamingo Tool Class 
 **/
Ext.define("viewer.viewercontroller.flamingo.FlamingoTool",{
    extend: "viewer.viewercontroller.controller.Tool",
    enabledEvents: null,    
    config: {
        width: null,
        height: null,
        left: null,
        right: null,
        top: null,
        bottom: null,
        listenTo: null,
        //for measure
        decimals: null,
        magicnumber: null,
        units: null
    },       
    /** Create a new FlamingoTool
     *@construct
     *@param config.id id of this object
     *@param config.type the type name of the component
     *@param config.width the width of the component
     *@param config.height the height of the component
     *@param config.left margin at the left side
     *@param config.right margin of the right side
     *@param config.bottom margin at the bottom side
     *@param config.tooltip the tool tip of this component
     *@param config.listenTo the component id to listen to
     */
    constructor : function (config){
        //replace the . for flamingo
        if (config.id){
            config.id=config.id.replace(/\./g,"_");
        }
        this.enabledEvents=new Object();
        viewer.viewercontroller.flamingo.FlamingoTool.superclass.constructor.call(this, config);
        this.initConfig(config);
        return this;
    },
    /**
     * Sets the tool visibility
     * @param visibility the visibility
     * @see MapComponent#setVisible
     */
    setVisible: function (vis){
        this.visible=vis;
        if (this.getFrameworkTool()){
            this.getFrameworkTool().callMethod(this.getId(),'setVisible',visibility);
        }
{'fraction_non_alphanumeric': 0.10214592274678111, 'fraction_numerical': 0.0, 'mean_word_length': 2.2919020715630887, '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': '5556138', 'n_tokens_mistral': 973, 'n_tokens_neox': 962, 'n_words': 289}