<commit_before>/**
 * @license
 * Copyright (c) 2017 Google Inc. All rights reserved.
 * This code may only be used under the BSD style license found at
 * http://polymer.github.io/LICENSE.txt
 * Code distributed by Google as part of this project is also
 * subject to an additional IP rights grant found at
 * http://polymer.github.io/PATENTS.txt
 */
"use strict";

const assert = require('assert');
const view = require('./view.js');
const Symbols = require('./symbols.js');
const Entity = require('./entity.js');
const Type = require('./type.js');
const Relation = require('./relation.js');
const Scope = require('./scope.js');

class BasicEntity extends Entity {
  constructor(rawData) {
    super();
    this.rawData = rawData;
  }
  get data() {
    return this.rawData;
  }
}

function testEntityClass(type) {
  return class TestEntity extends BasicEntity {
    static get key() {
      return type;
    }
  };
}

Object.assign(exports, {
  Entity,
  BasicEntity,
  Relation,
  testing: {
    testEntityClass,
    viewFor(clazz, scope) {
      return scope._viewFor(scope.typeFor(clazz));
    },
  },
  Scope,
  internals: {
    identifier: Symbols.identifier,
    Type,
    View: view.View,
    ViewBase: view.ViewBase,
    SingletonView: view.SingletonView
  }
});
<commit_msg>Remove testing.viewFor<commit_after>/**
 * @license
 * Copyright (c) 2017 Google Inc. All rights reserved.
 * This code may only be used under the BSD style license found at
 * http://polymer.github.io/LICENSE.txt
 * Code distributed by Google as part of this project is also
 * subject to an additional IP rights grant found at
 * http://polymer.github.io/PATENTS.txt
 */
"use strict";

const assert = require('assert');
const view = require('./view.js');
const Symbols = require('./symbols.js');
const Entity = require('./entity.js');
const Type = require('./type.js');
const Relation = require('./relation.js');
const Scope = require('./scope.js');

class BasicEntity extends Entity {
  constructor(rawData) {
    super();
    this.rawData = rawData;
  }
  get data() {
    return this.rawData;
  }
}

function testEntityClass(type) {
  return class TestEntity extends BasicEntity {
    static get key() {
      return type;
    }
  };
}

Object.assign(exports, {
  Entity,
  BasicEntity,
  Relation,
  testing: {
    testEntityClass,
  },
  Scope,
  internals: {
    identifier: Symbols.identifier,
    Type,
    View: view.View,
    ViewBase: view.ViewBase,
    SingletonView: view.SingletonView
  }
});

{'fraction_non_alphanumeric': 0.13226452905811623, 'fraction_numerical': 0.0032064128256513026, 'mean_word_length': 3.356020942408377, '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': '6770512', 'n_tokens_mistral': 773, 'n_tokens_neox': 754, 'n_words': 223}