<commit_before>import Base from './index';
import AskSocialNetworkOrLogin from './field/or/ask_social_network_or_login';
import SignUp from './classic/sign_up_screen';
import ResetPassword from './database/reset_password';
import { renderSSOScreens } from './lock/sso/index';
import { getScreen, initDatabase } from './database/index';
import { initSocial } from './social/index';
import { setEmail } from './field/email';
import { setUsername } from './field/username';
import * as l from './lock/index';

export default class Auth0Lock extends Base {

  static SCREENS = {
    login: AskSocialNetworkOrLogin,
    resetPassword: ResetPassword,
    signUp: SignUp
  };

  constructor(...args) {
    super("classic", dict, ...args);
  }

  didInitialize(model, options) {
    model = initSocial(model, options);
    model = initDatabase(model, options);

    const { email, username } = options.autofill || {};
    if (typeof email === "string") model = setEmail(model, email);
    if (typeof username === "string") model = setUsername(model, username);
<commit_msg>Rename autofill opt to prefill<commit_after>import Base from './index';
import AskSocialNetworkOrLogin from './field/or/ask_social_network_or_login';
import SignUp from './classic/sign_up_screen';
import ResetPassword from './database/reset_password';
import { renderSSOScreens } from './lock/sso/index';
import { getScreen, initDatabase } from './database/index';
import { initSocial } from './social/index';
import { setEmail } from './field/email';
import { setUsername } from './field/username';
import * as l from './lock/index';

export default class Auth0Lock extends Base {

  static SCREENS = {
    login: AskSocialNetworkOrLogin,
    resetPassword: ResetPassword,
    signUp: SignUp
  };

  constructor(...args) {
    super("classic", dict, ...args);
  }

  didInitialize(model, options) {
    model = initSocial(model, options);
    model = initDatabase(model, options);

    const { email, username } = options.prefill || {};
    if (typeof email === "string") model = setEmail(model, email);
    if (typeof username === "string") model = setUsername(model, username);

{'fraction_non_alphanumeric': 0.1407269338303821, 'fraction_numerical': 0.0009319664492078285, 'mean_word_length': 4.198547215496368, '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': '7436542', 'n_tokens_mistral': 626, 'n_tokens_neox': 611, 'n_words': 176}