<commit_before>(function () {
    'use strict';

    const controller = function (Base, $scope, user, waves) {

        const ds = require('data-service');
        const { path } = require('ramda');
        const { STATUS_LIST } = require('@waves/oracle-data');

        class SetAssetScriptModalCtrl extends Base {

            /**
             * @param {object}
             * @type {null}
             */
            state;
            /**
             * @type {Signable}
             */
            signable;
            /**
             * @type {number}
             */
            step = 0;
            /**
             * @type {boolean}
             */
            isVerified;
            /**
             * @type {boolean}
             */
            isGateway;
            /**
             * @type {boolean}
             */
            isSuspicious;


            constructor(assetId) {
                super($scope);
                waves.node.assets.getAsset(assetId).then(asset => {
                    this.assetName = asset[0].displayName;
                    $scope.$apply();
                });
                const data = ds.dataManager.getOracleAssetData(assetId);
                this.isVerified = path(['status'], data) === STATUS_LIST.VERIFIED;
                this.isGateway = path(['status'], data) === 3;
                this.isSuspicious = user.scam[assetId];
                this.hasLabel = this.isVerified || this.isGateway || this.isSuspicious;

                this.state = { assetId };
            }

            /**<commit_msg>CLIENT-1661: add ticke<commit_after>(function () {
    'use strict';

    const controller = function (Base, $scope, user, waves) {

        const ds = require('data-service');
        const { path } = require('ramda');
        const { STATUS_LIST } = require('@waves/oracle-data');

        class SetAssetScriptModalCtrl extends Base {

            /**
             * @param {object}
             * @type {null}
             */
            state;
            /**
             * @type {Signable}
             */
            signable;
            /**
             * @type {number}
             */
            step = 0;
            /**
             * @type {boolean}
             */
            isVerified;
            /**
             * @type {boolean}
             */
            isGateway;
            /**
             * @type {boolean}
             */
            isSuspicious;


            constructor(assetId) {
                super($scope);
                waves.node.assets.getAsset(assetId).then(asset => {
                    this.assetName = asset[0].displayName;
                    this.ticker = asset[0].ticker;
                    $scope.$apply();
                });
                const data = ds.dataManager.getOracleAssetData(assetId);
                this.isVerified = path(['status'], data) === STATUS_LIST.VERIFIED;
                this.isGateway = path(['status'], data) === 3;
                this.isSuspicious = user.scam[assetId];
                this.hasLabel = this.isVerified || this.isGateway || this.isSuspicious;

                this.state = { assetId };
            }

            /**
{'fraction_non_alphanumeric': 0.12838263058527374, 'fraction_numerical': 0.003461296412838263, 'mean_word_length': 1.1207471647765177, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '5217610', 'n_tokens_mistral': 852, 'n_tokens_neox': 803, 'n_words': 142}