<commit_before>
library task;

import 'dart:convert';

class TaskNote {
  String notebody;
  TaskNote(this.notebody);
}



class Task {
  String summary;
  List<TaskNote> tasknotes = [];
  DateTime scheduled;
  int timestamp;
  Set<String> taskcategories = new Set();
  Task(this.summary, [this.scheduled=null]) {
    this.timestamp = new DateTime.now().millisecondsSinceEpoch;
  }
  Task.fromJson(json) {
    Map data = json;
    var sched = data['scheduled'];
    summary = data['summary'];
    timestamp = data['timestamp'];
    scheduled = data['scheduled'];

  }

  void addNote(TaskNote note) {
    tasknotes.add(note);<commit_msg>Don't convert scheduled data in fromJson method<commit_after>
library task;

import 'dart:convert';

class TaskNote {
  String notebody;
  TaskNote(this.notebody);
}



class Task {
  String summary;
  List<TaskNote> tasknotes = [];
  DateTime scheduled;
  int timestamp;
  Set<String> taskcategories = new Set();
  Task(this.summary, [this.scheduled=null]) {
    this.timestamp = new DateTime.now().millisecondsSinceEpoch;
  }
  Task.fromJson(json) {
    Map data = json;
    var sched = data['scheduled'];
    summary = data['summary'];
    timestamp = data['timestamp'];
    scheduled = data['scheduled'];
  }

  void addNote(TaskNote note) {
    tasknotes.add(note);
{'fraction_non_alphanumeric': 0.13236419280795717, 'fraction_numerical': 0.0, 'mean_word_length': 3.9545454545454546, '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': '292321', 'n_tokens_mistral': 421, 'n_tokens_neox': 414, 'n_words': 97}