<commit_before>import {
  EntityDefinition,
  GeneralRequestData,
  Session
} from "@phenyl/interfaces";

type AuthorizationSetting = {};

export class StandardEntityDefinition implements EntityDefinition {
  authorizationSetting: AuthorizationSetting;

  constructor(authorizationSetting: AuthorizationSetting) {
    this.authorizationSetting = authorizationSetting;
  }

  async authorize(
    reqData: GeneralRequestData,
    session?: Session
  ): Promise<boolean> {
    // TODO
    return false;
  }

  async validate(
    reqData: GeneralRequestData,
    session?: Session
  ): Promise<void> {
    // eslint-disable-line no-unused-vars
  }
}
<commit_msg>feat(standards): Deprecate StandardEntityDefinition<commit_after>import {
  EntityDefinition,
  GeneralRequestData,
  Session
} from "@phenyl/interfaces";

/**
 * [deprecated] Standard entity definition.
 * You don't need to extend this almost-doing-nothing class.
 * Instead, implements `EntityDefinition`.
 */
export class StandardEntityDefinition implements EntityDefinition {
  async authorize(
    reqData: GeneralRequestData,
    session?: Session
  ): Promise<boolean> {
    return false;
  }
}

{'fraction_non_alphanumeric': 0.09208261617900172, 'fraction_numerical': 0.0, 'mean_word_length': 4.460093896713615, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, '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': '366670', 'n_tokens_mistral': 319, 'n_tokens_neox': 307, 'n_words': 75}