<commit_before>part of dime_entity;

class Timeslice extends Entity {
  Timeslice();

  Timeslice.clone(Timeslice original) : super.clone(original) {
    this.employee = original.employee;
    this.value = original.value;
    this.startedAt = original.startedAt;
    this.stoppedAt = original.stoppedAt;
    this.activity = original.activity;
    addFieldstoUpdate(['employee', 'value', 'startedAt', 'stoppedAt', 'activity']);
  }

  Timeslice.fromMap(Map<String, dynamic> map) : super.fromMap(map);

  newObj() {
    return new Timeslice();
  }

  dynamic Get(String property) {
    var val = super.Get(property);
    if (val == null) {
      switch (property) {
        case 'value':
          return this.value;
        case 'startedAt':
          return this.startedAt;
        case 'stoppedAt':
          return this.stoppedAt;
        case 'activity':
          return this.activity;
        case 'project':
          return this.project;
        case 'employee':
          return this.employee;
        default:
          break;
      }
    }
    return val;
  }

  void Set(String property, var value) {
    switch (property) {
      case 'value':
        this.value = value;
        break;
      case 'startedAt':
        this.startedAt = _addDateValue(value);
        break;
      case 'stoppedAt':
        this.stoppedAt = _addDateValue(value);
        break;
      case 'activity':
        this.activity = value is Entity ? value : new Activity.fromMap(value);
        break;
      case 'project':
        this.project = value is Entity ? value : new Project.fromMap(value);
        break;
      case 'employee':
        this.employee = value is Entity ? value : new Employee.fromMap(value);
        break;
      default:
        super.Set(property, value);
        break;
    }
  }

  double getNumericValue() {
    window.console.log(this.value);
    return double.parse(this.value.replaceAll('h', ''));
  }

  static List<Timeslice> listFromMap(List content) {
    List<Timeslice> timeslices = new List<Timeslice>();
    for (var element in content) {
      Timeslice t = new Timeslice.fromMap(element);
      timeslices.add(t);
    }
    return timeslices;
  }

  String type = 'timeslices';
  String value;
  DateTime startedAt;
  DateTime stoppedAt;
  Activity activity;
  Project project;
  Employee employee;
}<commit_msg>remove console.log<commit_after>part of dime_entity;

class Timeslice extends Entity {
  Timeslice();

  Timeslice.clone(Timeslice original) : super.clone(original) {
    this.employee = original.employee;
    this.value = original.value;
    this.startedAt = original.startedAt;
    this.stoppedAt = original.stoppedAt;
    this.activity = original.activity;
    addFieldstoUpdate(['employee', 'value', 'startedAt', 'stoppedAt', 'activity']);
  }

  Timeslice.fromMap(Map<String, dynamic> map) : super.fromMap(map);

  newObj() {
    return new Timeslice();
  }

  dynamic Get(String property) {
    var val = super.Get(property);
    if (val == null) {
      switch (property) {
        case 'value':
          return this.value;
        case 'startedAt':
          return this.startedAt;
        case 'stoppedAt':
          return this.stoppedAt;
        case 'activity':
          return this.activity;
        case 'project':
          return this.project;
        case 'employee':
          return this.employee;
        default:
          break;
      }
    }
    return val;
  }

  void Set(String property, var value) {
    switch (property) {
      case 'value':
        this.value = value;
        break;
      case 'startedAt':
        this.startedAt = _addDateValue(value);
        break;
      case 'stoppedAt':
        this.stoppedAt = _addDateValue(value);
        break;
      case 'activity':
        this.activity = value is Entity ? value : new Activity.fromMap(value);
        break;
      case 'project':
        this.project = value is Entity ? value : new Project.fromMap(value);
        break;
      case 'employee':
        this.employee = value is Entity ? value : new Employee.fromMap(value);
        break;
      default:
        super.Set(property, value);
        break;
    }
  }

  double getNumericValue() {
    return double.parse(this.value.replaceAll('h', ''));
  }

  static List<Timeslice> listFromMap(List content) {
    List<Timeslice> timeslices = new List<Timeslice>();
    for (var element in content) {
      Timeslice t = new Timeslice.fromMap(element);
      timeslices.add(t);
    }
    return timeslices;
  }

  String type = 'timeslices';
  String value;
  DateTime startedAt;
  DateTime stoppedAt;
  Activity activity;
  Project project;
  Employee employee;
}
{'fraction_non_alphanumeric': 0.11283043197936815, 'fraction_numerical': 0.0, 'mean_word_length': 2.4095238095238094, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '1567601', 'n_tokens_mistral': 1426, 'n_tokens_neox': 1376, 'n_words': 338}