Set to model icon and color depending on severity.
@private
@param {array} aIssues
@returns {void}
761349
function(aIssues) {
			aIssues.forEach(function(element){
				switch (element.severity) {
					case constants.SUPPORT_ASSISTANT_ISSUE_SEVERITY_LOW:
						element.severityIcon = mIssueSettings.severityIcons.Low;
						element.severityColor = constants.SUPPORT_ASSISTANT_SEVERITY_LOW_COLOR;
						break;
					case constants.SUPPORT_ASSISTANT_ISSUE_SEVERITY_MEDIUM:
						element.severityIcon = mIssueSettings.severityIcons.Medium;
						element.severityColor = constants.SUPPORT_ASSISTANT_SEVERITY_MEDIUM_COLOR;
						break;
					case constants.SUPPORT_ASSISTANT_ISSUE_SEVERITY_HIGH:
						element.severityIcon = mIssueSettings.severityIcons.High;
						element.severityColor = constants.SUPPORT_ASSISTANT_SEVERITY_HIGH_COLOR;
						break;
				}
			});
		}
452825
function initSASS() {
  var sassMap = build.engine.sass.map;
  var opt = {
    src: build.sourceDir,
    // Recompile on every request.
    force: true,
    // Write the .css file, do not stream it.
    response: false,
    // Configure source maps.
    sourceMap: sassMap.enabled,
    sourceMapEmbed: sassMap.inline
  };
  // Handle the .sass file extension.
  var sassOpt = lodash.assign({ indentedSyntax: true }, opt);
  app.use(sassMw(sassOpt));
  // Handle the .scss file extension.
  var scssOpt = lodash.assign({ indentedSyntax: false }, opt);
  app.use(sassMw(scssOpt));
}
1189936
function(inflate) {
        if (this.icon) {
            this.icon.setSize({
                w: this.icon.size.w * inflate,
                h: this.icon.size.h * inflate
            });
        }        
    }
392246
private void setCustomTypeface(Context context, AttributeSet attrs) {
        DEFAULT_TYPEFACE = TypefaceType.getDefaultTypeface(context);

        //Typeface.createFromAsset doesn't work in the layout editor. Skipping...
        if (isInEditMode() || attrs == null || Build.VERSION.SDK_INT < Build.VERSION_CODES.HONEYCOMB) {
            return;
        }

        TypedArray styledAttrs = context.obtainStyledAttributes(attrs, R.styleable.TypefaceView);
        Integer fontInt = styledAttrs.getInt(R.styleable.TypefaceView_tv_typeface, DEFAULT_TYPEFACE);
        styledAttrs.recycle();

        mCurrentTypeface = TypefaceType.getTypeface(fontInt);
        Typeface typeface = getFont(context, mCurrentTypeface.getAssetFileName());
        setTypeface(typeface);
    }
530664
function colorise(theme, key, s) {
  var chalk = theme[key]
  if (key === 'op' || key === 'kind') {
    chalk = chalk[s]
  }
  return chalk ? chalk(s) : s
}
991891
function setDefault(levels, ecModel) {
    var globalColorList = ecModel.get('color');

    if (!globalColorList) {
        return;
    }

    levels = levels || [];
    var hasColorDefine;
    zrUtil.each(levels, function (levelDefine) {
        var model = new Model(levelDefine);
        var modelColor = model.get('color');

        if (model.get('itemStyle.color')
            || (modelColor && modelColor !== 'none')
        ) {
            hasColorDefine = true;
        }
    });

    if (!hasColorDefine) {
        var level0 = levels[0] || (levels[0] = {});
        level0.color = globalColorList.slice();
    }

    return levels;
}
814056
public static void applyMultiIconTo(Drawable icon, int iconColor, Drawable selectedIcon, int selectedIconColor, boolean tinted, ImageView imageView) {
        //if we have an icon then we want to set it
        if (icon != null) {
            //if we got a different color for the selectedIcon we need a StateList
            if (selectedIcon != null) {
                if (tinted) {
                    imageView.setImageDrawable(new PressedEffectStateListDrawable(icon, selectedIcon, iconColor, selectedIconColor));
                } else {
                    imageView.setImageDrawable(UIUtils.getIconStateList(icon, selectedIcon));
                }
            } else if (tinted) {
                imageView.setImageDrawable(new PressedEffectStateListDrawable(icon, iconColor, selectedIconColor));
            } else {
                imageView.setImageDrawable(icon);
            }
            //make sure we display the icon
            imageView.setVisibility(View.VISIBLE);
        } else {
            //hide the icon
            imageView.setVisibility(View.GONE);
        }
    }
347212
public function set_assets() {

		$this->assets['script'][ $this->type ] = $this->url . 'assets/js/' . $this->type . UIX_ASSET_DEBUG . '.js';
		$this->assets['style'][ $this->type ]  = $this->url . 'assets/css/' . $this->type . UIX_ASSET_DEBUG . '.css';

		parent::set_assets();

	}
1025121
function (cfg) {
        var skinObject = cfg.skinObject;

        this._baseId = cfg.id;

        this._skinObject = skinObject;
        this._stateName = cfg.state;

        this._iconsLeft = cfg.iconsLeft;
        this._iconsRight = cfg.iconsRight;

        this._icons = {};

        /**
         * Labels for the tooltips of active icon
         * @protected
         * @type Array
         */
        this._tooltipLabels = cfg.tooltipLabels;

        this._iconsAttributes = cfg.iconsAttributes;
        this._iconsWaiLabel = cfg.iconsWaiLabel;

        ariaUtilsArray.forEach(this._iconsLeft, this._initIcon, this);
        ariaUtilsArray.forEach(this._iconsRight, this._initIcon, this);

        this._outerWidth = cfg.width;
        this._outerHeight = cfg.height;

        this._updateIcons();
        this._updateFrameWidth();

        cfg.width = this._frameWidth;
        this._frame = ariaWidgetsFramesFrameFactory.createFrame(cfg);
        this.domElementNbr = this._frame.domElementNbr + this._iconsLeft.length + this._iconsRight.length;
        this.innerWidth = this._frame.innerWidth;
        this.innerHeight = this._frame.innerHeight;
    }
507659
public void applyDefaults() {
		if (size == -1) {
			size = 8;
		}
		if (family == null) {
			family = "Verdana";
		}
		if (weight == null) {
			weight = "normal";
		}
		if (style == null) {
			style = "normal";
		}
		if (color == null) {
			color = "#000000"; // black
		}
		if (opacity == -1) {
			opacity = 1;
		}
	}
657617
function setDefaults(model, defaults) {
    if (!defaults) { return; }

    _.each(defaults, function (value, key) {
        if (model[key] === undefined) {
            model[key] = value;
        }
    });
}
1174913
function reapplyDisplayStyles() {
    reapplyDisplayStyle(".show-Idl",        e_showIdl.checked)
    reapplyDisplayStyle(".show-JavaScript", e_showJavaScript.checked)
    reapplyDisplayStyle(".show-Java",       e_showJava.checked)
}
1049653
public function init(): void
    {
        // check if $iconSet implement all available icons from self::TYPE_TO_REGEX
        $diff1 = array_keys(\array_diff_assoc($this->iconSet, self::TYPE_TO_REGEX));
        $diff2 = array_keys(\array_diff_assoc(self::TYPE_TO_REGEX, $this->iconSet));
        if ($diff1 === $diff2) {
            \trigger_error('Icon set doesn\'t implement all range of icons.');
        }
    }
515086
def __initialize_ui(self):
        

        umbra.ui.common.set_window_default_icon(self)

        for model, settings_key, combo_box in \
                (("_SearchAndReplace__search_patterns_model", "recent_search_patterns", self.Search_comboBox),
                 ("_SearchAndReplace__replace_with_patterns_model", "recent_replace_with_patterns",
                  self.Replace_With_comboBox)):
            self.__dict__[model] = PatternsModel()
            patterns = foundations.common.ordered_uniqify([foundations.strings.to_string(pattern) for pattern in
                                                           self.__container.settings.get_key(
                                                               self.__container.settings_section,
                                                               settings_key).toStringList()])
            [PatternNode(parent=self.__dict__[model].root_node, name=pattern)
             for pattern in patterns[:self.__maximum_stored_patterns]]
            combo_box.setInsertPolicy(QComboBox.InsertAtTop)
            combo_box.setModel(self.__dict__[model])

            combo_box.completer().setCaseSensitivity(Qt.CaseSensitive)

            # Signals / Slots.
            self.__dict__[model].pattern_inserted.connect(
                functools.partial(self.__patterns_model__pattern_inserted, settings_key, combo_box))

        self.Wrap_Around_checkBox.setChecked(True)

        self.installEventFilter(ValidationFilter(self))

        # Signals / Slots.
        self.Search_pushButton.clicked.connect(self.__Search_pushButton__clicked)
        self.Replace_pushButton.clicked.connect(self.__Replace_pushButton__clicked)
        self.Replace_All_pushButton.clicked.connect(self.__Replace_All_pushButton__clicked)
        self.Close_pushButton.clicked.connect(self.__Close_pushButton__clicked)
1338588
public void setImageScanStatuses(java.util.Collection<AlgorithmStatusItem> imageScanStatuses) {
        if (imageScanStatuses == null) {
            this.imageScanStatuses = null;
            return;
        }

        this.imageScanStatuses = new java.util.ArrayList<AlgorithmStatusItem>(imageScanStatuses);
    }
1299509
function(newSettings) {
      var s = '';

      if (typeof newSettings !== 'object') {
        throw new Error('ss.http.set() takes an object e.g. {static: {maxAge: 60000}}');
      }

      for (s in newSettings) {
        if (newSettings.hasOwnProperty(s)) {
          settings[s] = newSettings[s]
        }
      }
    }
1018396
function iconStyle (files, useIcons) {
  if (!useIcons) return '';
  var className;
  var i;
  var iconName;
  var list = [];
  var rules = {};
  var selector;
  var selectors = {};
  var style = '';

  for (i = 0; i < files.length; i++) {
    var file = files[i];

    var isDir = '..' == file.name || (file.stat && file.stat.isDirectory());
    var icon = isDir
      ? { className: 'icon-directory', fileName: icons.folder }
      : iconLookup(file.name);
    var iconName = icon.fileName;

    selector = '#files .' + icon.className + ' .name';

    if (!rules[iconName]) {
      rules[iconName] = 'background-image: url(data:image/png;base64,' + load(iconName) + ');'
      selectors[iconName] = [];
      list.push(iconName);
    }

    if (selectors[iconName].indexOf(selector) === -1) {
      selectors[iconName].push(selector);
    }
  }

  for (i = 0; i < list.length; i++) {
    iconName = list[i];
    style += selectors[iconName].join(',\n') + ' {\n  ' + rules[iconName] + '\n}\n';
  }

  return style;
}