<commit_before>import Service from '@ember/service';

/**
* The Configuration Service handles color settings for the visualization and configuration extensions
* @class Configuration-Service
* @extends Ember.Service
*/
export default Service.extend({

  /**
  * Array for component-based settings dialogs. Any extension may push an object  
  * with the name of it's settings-component and it's title in this array. See 
  * the extension "colorpicker"" for exemplary usage.
  *
  * @property configurationExtensions
  * @type Array
  */
  configurationExtensions: null,

  /**
  * Current colors for landscape visualization
  *
  * @property landscapeColors
  * @type Object
  */
  landscapeColors: null,

  /**
  * Current colors for application visualization
  *
  * @property applicationColors
  * @type Object
  */
  applicationColors: null,

  /**
  * Default colors for landscape visualization
  *
  * @property landscapeColorsDefault
  * @type Object
  */
  landscapeColorsDefault: null,

  /**
  * Default colors for application visualization
  *
  * @property applicationColorsDefault
  * @type Object
  */
  applicationColorsDefault: null,


  init() {
    this._super(...arguments);
    this.set('configurationExtensions', []);
    this.initDefaultColors();
    this.resetColors();
  },

  /**
   * Sets the default visualization colors
   */
  initDefaultColors() {

    this.set('landscapeColorsDefault', {
      system: "rgb(199, 199, 199)",
      nodegroup: "rgb(1, 155, 32)",
      node: "rgb(0, 189, 56)",
      application: "rgb(81, 34, 183)",
      communication: "rgb(244, 145, 0)",
      textsystem: "rgb(0, 0, 0)",
      textnode: "rgb(255, 255, 255)",
      textapp: "rgb(255, 255, 255)",
      collapseSymbol: "rgb(0, 0, 0)",
      textchanged: false
    });

    this.set('applicationColorsDefault', {
      foundation: "rgb(199, 199, 199)",
      componentOdd: "rgb(0, 187, 65)",
      componentEven: "rgb(22, 158, 43)",
      clazz: "rgb(62, 20, 160)",
      highlightedEntity: "rgb(255, 0, 0)",
      communication: "rgb(244, 145, 0)",
      communicationArrow: "rgb(0, 0, 0)"
    });
  },

  /**
   * Sets the current colors towards more visually impaired ones
   */
  applyVisuallyImpairedColors() {

    this.set('landscapeColors', {
      system: "rgb(199, 199, 199)",
      nodegroup: "rgb(1, 90, 110)",<commit_msg>changed dark and light component/node colors to be in the same order<commit_after>import Service from '@ember/service';

/**
* The Configuration Service handles color settings for the visualization and configuration extensions
* @class Configuration-Service
* @extends Ember.Service
*/
export default Service.extend({

  /**
  * Array for component-based settings dialogs. Any extension may push an object  
  * with the name of it's settings-component and it's title in this array. See 
  * the extension "colorpicker"" for exemplary usage.
  *
  * @property configurationExtensions
  * @type Array
  */
  configurationExtensions: null,

  /**
  * Current colors for landscape visualization
  *
  * @property landscapeColors
  * @type Object
  */
  landscapeColors: null,

  /**
  * Current colors for application visualization
  *
  * @property applicationColors
  * @type Object
  */
  applicationColors: null,

  /**
  * Default colors for landscape visualization
  *
  * @property landscapeColorsDefault
  * @type Object
  */
  landscapeColorsDefault: null,

  /**
  * Default colors for application visualization
  *
  * @property applicationColorsDefault
  * @type Object
  */
  applicationColorsDefault: null,


  init() {
    this._super(...arguments);
    this.set('configurationExtensions', []);
    this.initDefaultColors();
    this.resetColors();
  },

  /**
   * Sets the default visualization colors
   */
  initDefaultColors() {

    this.set('landscapeColorsDefault', {
      system: "rgb(199, 199, 199)",
      nodegroup: "rgb(22, 158, 43)",
      node: "rgb(0, 187, 65)",
      application: "rgb(62, 20, 160)",
      communication: "rgb(244, 145, 0)",
      textsystem: "rgb(0, 0, 0)",
      textnode: "rgb(255, 255, 255)",
      textapp: "rgb(255, 255, 255)",
      collapseSymbol: "rgb(0, 0, 0)",
      textchanged: false
    });

    this.set('applicationColorsDefault', {
      foundation: "rgb(199, 199, 199)",
      componentOdd: "rgb(22, 158, 43)",
      componentEven: "rgb(0, 187, 65)",
      clazz: "rgb(62, 20, 160)",
      highlightedEntity: "rgb(255, 0, 0)",
      communication: "rgb(244, 145, 0)",
      communicationArrow: "rgb(0, 0, 0)"
    });
  },

  /**
   * Sets the current colors towards more visually impaired ones
   */
  applyVisuallyImpairedColors() {

    this.set('landscapeColors', {
      system: "rgb(199, 199, 199)",
      nodegroup: "rgb(1, 90, 110)",
{'fraction_non_alphanumeric': 0.13357172907025663, 'fraction_numerical': 0.04985275557425326, 'mean_word_length': 3.234194122885129, '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': '4506095', 'n_tokens_mistral': 1621, 'n_tokens_neox': 1411, 'n_words': 412}