<commit_before>import { action, reaction, observable, computed } from "mobx";
import SortBy from "sort-array";
import TestCase from "../../models/TestCase";
import Suite from "../../models/Suite";

export default class ProjectStore {
  @observable modified = false;
  @observable name = "";
  @observable _tests = [];
  @observable _suites = [];

  constructor(name = "Untitled Project") {
    this.name = name;
    this.changeName = this.changeName.bind(this);
    this.setModified = this.setModified.bind(this);
    this.createSuite = this.createSuite.bind(this);
    this.deleteSuite = this.deleteSuite.bind(this);
    this.createTestCase = this.createTestCase.bind(this);
    this.addTestCase = this.addTestCase.bind(this);
    this.deleteTestCase = this.deleteTestCase.bind(this);
  }

  @computed get suites() {
    return SortBy(this._suites, "name");
  }

  @computed get tests() {
    return SortBy(this._tests, "name");
  }

  @action changeName(name) {
    this.name = name;
  }

  @action setModified() {
    this.modified = true;
  }

  @action createSuite(...argv) {
    const suite = new Suite(undefined, ...argv);
    this._suites.push(suite);

    return suite;
  }

  @action deleteSuite(suite) {
    this._suites.remove(suite);
  }
<commit_msg>Added baseurl<commit_after>import { action, observable, computed } from "mobx";
import SortBy from "sort-array";
import TestCase from "../../models/TestCase";
import Suite from "../../models/Suite";

export default class ProjectStore {
  @observable modified = false;
  @observable name = "";
  @observable url = "";
  @observable _tests = [];
  @observable _suites = [];

  constructor(name = "Untitled Project") {
    this.name = name;
    this.setUrl = this.setUrl.bind(this);
    this.changeName = this.changeName.bind(this);
    this.setModified = this.setModified.bind(this);
    this.createSuite = this.createSuite.bind(this);
    this.deleteSuite = this.deleteSuite.bind(this);
    this.createTestCase = this.createTestCase.bind(this);
    this.addTestCase = this.addTestCase.bind(this);
    this.deleteTestCase = this.deleteTestCase.bind(this);
  }

  @computed get suites() {
    return SortBy(this._suites, "name");
  }

  @computed get tests() {
    return SortBy(this._tests, "name");
  }

  @action setUrl(url) {
    this.url = url;
  }

  @action changeName(name) {
    this.name = name;
  }

  @action setModified() {
    this.modified = true;
  }

  @action createSuite(...argv) {
    const suite = new Suite(undefined, ...argv);
    this._suites.push(suite);

    return suite;
  }

  @action deleteSuite(suite) {
    this._suites.remove(suite);
  }

{'fraction_non_alphanumeric': 0.14785252755606235, 'fraction_numerical': 0.0, 'mean_word_length': 3.430976430976431, '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': '4025880', 'n_tokens_mistral': 849, 'n_tokens_neox': 831, 'n_words': 176}