<commit_before>library my_polymer_my_converter_element;

import 'package:polymer/polymer.dart';

import 'main_element.dart';

import '../model/import.dart';
import '../builder/import.dart';

@CustomTag('my-converter')
class MyConverterElement extends MainElement {

  @observable
  List<Model> models = new List();
  
  static final List<String> COLORS = ['#ffff00', '#14d100', '#ffad00', '#a6a600'];

  MyConverterElement.created() : super.created() {
    models
      ..add(DISTANCE)
      ..add(TEMPERATURE)
      ..add(WEIGHT);
  }
  
  String getColor(int index) {
    return COLORS[index % COLORS.length];
  }
}<commit_msg>Refactoring for a better readability<commit_after>library my_polymer_my_converter_element;

import 'package:polymer/polymer.dart';

import 'main_element.dart';

import '../model/import.dart';
import '../builder/import.dart';

@CustomTag('my-converter')
class MyConverterElement extends MainElement {

  @observable
  List<Model> models = [];
  
  static final List<String> COLORS = ['#ffff00', '#14d100', '#ffad00', '#a6a600'];

  MyConverterElement.created() : super.created() {
    models
      ..add(DISTANCE)
      ..add(TEMPERATURE)
      ..add(WEIGHT);
  }
  
  String getColor(int index) {
    return COLORS[index % COLORS.length];
  }
}
{'fraction_non_alphanumeric': 0.15239591516103693, 'fraction_numerical': 0.0204241948153967, 'mean_word_length': 4.055555555555555, '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': '4317037', 'n_tokens_mistral': 452, 'n_tokens_neox': 424, 'n_words': 82}