<commit_before>import {inject} from 'aurelia-framework';
import {Router} from 'aurelia-router';
import LocationService from 'resources/services/location-service';
import RemarkService from 'resources/services/remark-service';
import ToastService from 'resources/services/toast-service';
import LoaderService from 'resources/services/loader-service';
import FileStore from 'resources/services/file-store';

@inject(Router, LocationService, RemarkService, ToastService, LoaderService, FileStore)
export class CreateRemark {
  constructor(router, location, remarkService, toast, loader, fileStore) {
    this.router = router;
    this.location = location;
    this.remarkService = remarkService;
    this.toast = toast;
    this.loader = loader;
    this.fileStore = fileStore;
    if (fileStore.current === null) {
      router.navigate('remarks');

      return;
    }
    this.remark = {
      photo: fileStore.current
    };
    this.isSending = false;
  }<commit_msg>Fixed create remark bug with invalid redirect endpoint<commit_after>import {inject} from 'aurelia-framework';
import {Router} from 'aurelia-router';
import LocationService from 'resources/services/location-service';
import RemarkService from 'resources/services/remark-service';
import ToastService from 'resources/services/toast-service';
import LoaderService from 'resources/services/loader-service';
import FileStore from 'resources/services/file-store';

@inject(Router, LocationService, RemarkService, ToastService, LoaderService, FileStore)
export class CreateRemark {
  constructor(router, location, remarkService, toast, loader, fileStore) {
    this.router = router;
    this.location = location;
    this.remarkService = remarkService;
    this.toast = toast;
    this.loader = loader;
    this.fileStore = fileStore;
    if (fileStore.current === null) {
      router.navigate('');

      return;
    }
    this.remark = {
      photo: fileStore.current
    };
    this.isSending = false;
  }
{'fraction_non_alphanumeric': 0.1075050709939148, 'fraction_numerical': 0.0, 'mean_word_length': 4.480555555555555, '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': '2551581', 'n_tokens_mistral': 549, 'n_tokens_neox': 538, 'n_words': 137}