<commit_before>import { URLSearchParams } from '@angular/http';
import { List } from '../lists';

export class Task {
  title: string;
  isCompleted: boolean;
  _id: string;
  parentList: List;

  constructor() {

  }

  convertToUrlParams() {
    let urlSearchParams = new URLSearchParams();
    urlSearchParams.append('title', this.title);
    urlSearchParams.append('isCompleted', String(this.isCompleted));
    urlSearchParams.append('_id', this._id);
    urlSearchParams.append('listId', this.parentList._id);
    return urlSearchParams.toString();
  }
}<commit_msg>Task class code refactoring (constructor vars)<commit_after>import { URLSearchParams } from '@angular/http';
import { List } from '../lists';

export class Task {
  title: string;
  isCompleted: boolean;
  _id: string;
  listId: string;
  listTitle: string;

  /*constructor(newTitle: string = "", newIsCompleted: string = "", ) {
    forE
    { this.title, this.isCompleted, this._id, this.listId, this.listTitle } = taskObject;
  }*/

  convertToUrlParams() {
    let urlSearchParams = new URLSearchParams();
    urlSearchParams.append('title', this.title);
    urlSearchParams.append('isCompleted', String(this.isCompleted));
    urlSearchParams.append('_id', this._id);
    urlSearchParams.append('listId', this.listId);
    return urlSearchParams.toString();
  }
}
{'fraction_non_alphanumeric': 0.14029850746268657, 'fraction_numerical': 0.0, 'mean_word_length': 4.42914979757085, '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': '1641219', 'n_tokens_mistral': 408, 'n_tokens_neox': 400, 'n_words': 87}