<commit_before>import {
  expect
} from 'chai';

import {
  RecordResource
} from './record/record-resource';

import {
  Record
} from '../../shared/record/record';

import {
  MOCK_RECORD_1,
  MOCK_RECORD_2,
  MOCK_RECORD_3
} from '../../shared/record/record.mock';

import {
  Archive
} from './archive-component';

import {
  ToastService
} from './toast/toast-service';

let $rootScope: ng.IScope = null;
let $q: ng.IQService = null;
let $http: ng.IHttpService = null;
/* tslint:disable */
let mockToastService = <angular.material.IToastService>{
  simple: function() { return this; },
  showSimple: function() { return this; },
  build: function() { return this; },
  content: function() { return this; },
  updateContent: function() { return this; },
  position: function() { return this; },
  action: function() { return this; },
  hideDelay: function() { return this ; },
  show: function() { return this; },
  hide: function() { return this; },
  cancel: function() { return this; },
};
/* tslint:enable */
let toast: ToastService = new ToastService(mockToastService);

class MockRecordResource {
  [key: string]: any;
  constructor(record: any) {
    Object.keys(record).forEach((k: string) => this[k] = record[k]);
  }

  $save() { return $q.resolve(); }
  update() { return $q.resolve(); }

  static query(): {$promise: Thenable<Record[]>} {
    return {$promise: $q.resolve([<Record><any>MOCK_RECORD_1])};
  }
  static update(r: Record): {$promise: Thenable<void>} {
    return {$promise: $q.resolve()};<commit_msg>Added missing static mock.<commit_after>import {
  expect
} from 'chai';

import {
  RecordResource
} from './record/record-resource';

import {
  Record
} from '../../shared/record/record';

import {
  MOCK_RECORD_1,
  MOCK_RECORD_2,
  MOCK_RECORD_3
} from '../../shared/record/record.mock';

import {
  Archive
} from './archive-component';

import {
  ToastService
} from './toast/toast-service';

let $rootScope: ng.IScope = null;
let $q: ng.IQService = null;
let $http: ng.IHttpService = null;
/* tslint:disable */
let mockToastService = <angular.material.IToastService>{
  simple: function() { return this; },
  showSimple: function() { return this; },
  build: function() { return this; },
  content: function() { return this; },
  updateContent: function() { return this; },
  position: function() { return this; },
  action: function() { return this; },
  hideDelay: function() { return this ; },
  show: function() { return this; },
  hide: function() { return this; },
  cancel: function() { return this; },
};
/* tslint:enable */
let toast: ToastService = new ToastService(mockToastService);

class MockRecordResource {
  [key: string]: any;
  constructor(record: any) {
    Object.keys(record).forEach((k: string) => this[k] = record[k]);
  }

  $save() { return $q.resolve(); }
  update() { return $q.resolve(); }

  static query(): {$promise: Thenable<Record[]>} {
    return {$promise: $q.resolve([<Record><any>MOCK_RECORD_1])};
  }
  static update(r: Record): {$promise: Thenable<void>} {
    return {$promise: $q.resolve()};
  }

  static get(r: Record): {$promise: Thenable<Record>} {
    return {$promise: $q.resolve(r)};
{'fraction_non_alphanumeric': 0.17917981072555206, 'fraction_numerical': 0.002523659305993691, 'mean_word_length': 4.106280193236715, 'pattern_counts': {'":': 0, '<': 14, '<?xml version=': 0, '>': 16, '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': '3213142', 'n_tokens_mistral': 1067, 'n_tokens_neox': 1061, 'n_words': 258}