<commit_before>import { inject as service } from '@ember/service';
import Controller from '@ember/controller';

export default Controller.extend({
  session: service(),
  collapsed: true,
  actions: {
    passwordless () {
      const lockOptions = {
        allowAutocomplete: true,
        allowedConnections: ['email'],
        autoclose: true,
        avatar: null,
        closeable: true,
        rememberLastLogin: true,
        theme: {
          primaryColor: '#337ab7',
          logo: '/assets/bhs_logo.png',
          labeledSubmitButton: true,
        },
        auth: {
          autoParseHash: true,
          redirect: true,
          responseType: 'token',
          params: {
            scope: 'openid profile email'
          }
        },
        allowLogin: true,
        allowForgotPassword: false,
        allowSignUp: false,
        initialScreen: 'login',
        passwordlessMethod: 'link',
        languageDictionary: {
          title: "Barberscore",
          passwordlessEmailInstructions: "Enter your email address<br>registered with the BHS.  (If you aren't currently registered with the BHS, or can't remember your email, please contact <a href='mailto:<EMAIL>'><EMAIL></a> for assistance.)",
          success: {
            magicLink:  "Check your email for the log in link.  If you don't receive on within a minute or so, be sure to check your spam/junk filter!"
          },
          error: {
            passwordless: {
              "lock.fallback":  "We're sorry, we can't log you in either because that email is not registered with the BHS or you are not the admin contact for your group.  Try again with a different email address or contact <EMAIL> for assistance.",
            }
          }
        },
      };
      this.get('session').authenticate(
        'authenticator:auth0-lock-passwordless',
        lockOptions
      );
    },
    password () {
      const lockOptions = {
        allowAutocomplete: true,
        allowedConnections: [
          'Default',
        ],
        autoclose: true,
        avatar: null,
        closeable: true,
        rememberLastLogin: true,
        theme: {
          primaryColor: '#337ab7',
          logo: '/assets/bhs_logo.png',
          labeledSubmitButton: true,
        },
        auth: {
          autoParseHash: true,
          redirect: true,
          responseType: 'token',
          params: {
            scope: 'openid'
          }
        },
        allowLogin: true,
        allowForgotPassword: true,
        allowSignUp: true,
        initialScreen: 'login',
        languageDictionary: {
          title: "Barberscore",<commit_msg>Add configuration base URL to lock otpsion<commit_after>import { inject as service } from '@ember/service';
import Controller from '@ember/controller';

export default Controller.extend({
  session: service(),
  collapsed: true,
  actions: {
    passwordless () {
      const lockOptions = {
        configurationBaseUrl: 'https://cdn.auth0.com',
        allowAutocomplete: true,
        allowedConnections: ['email'],
        autoclose: true,
        avatar: null,
        closeable: true,
        rememberLastLogin: true,
        theme: {
          primaryColor: '#337ab7',
          logo: '/assets/bhs_logo.png',
          labeledSubmitButton: true,
        },
        auth: {
          autoParseHash: true,
          redirect: true,
          responseType: 'token',
          params: {
            scope: 'openid profile email'
          }
        },
        allowLogin: true,
        allowForgotPassword: false,
        allowSignUp: false,
        initialScreen: 'login',
        passwordlessMethod: 'link',
        languageDictionary: {
          title: "Barberscore",
          passwordlessEmailInstructions: "Enter your email address<br>registered with the BHS.  (If you aren't currently registered with the BHS, or can't remember your email, please contact <a href='mailto:<EMAIL>'><EMAIL></a> for assistance.)",
          success: {
            magicLink:  "Check your email for the log in link.  If you don't receive on within a minute or so, be sure to check your spam/junk filter!"
          },
          error: {
            passwordless: {
              "lock.fallback":  "We're sorry, we can't log you in either because that email is not registered with the BHS or you are not the admin contact for your group.  Try again with a different email address or contact <EMAIL> for assistance.",
            }
          }
        },
      };
      this.get('session').authenticate(
        'authenticator:auth0-lock-passwordless',
        lockOptions
      );
    },
    password () {
      const lockOptions = {
        configurationBaseUrl: 'https://cdn.auth0.com',
        allowAutocomplete: true,
        allowedConnections: [
          'Default',
        ],
        autoclose: true,
        avatar: null,
        closeable: true,
        rememberLastLogin: true,
        theme: {
          primaryColor: '#337ab7',
          logo: '/assets/bhs_logo.png',
          labeledSubmitButton: true,
        },
        auth: {
          autoParseHash: true,
          redirect: true,
          responseType: 'token',
          params: {
            scope: 'openid'
          }
        },
        allowLogin: true,
        allowForgotPassword: true,
        allowSignUp: true,
        initialScreen: 'login',
        languageDictionary: {
          title: "Barberscore",
{'fraction_non_alphanumeric': 0.0982819139109551, 'fraction_numerical': 0.003694808793644929, 'mean_word_length': 1.9123184507799893, 'pattern_counts': {'":': 2, '<': 15, '<?xml version=': 0, '>': 15, 'https://': 2, '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': '1426074', 'n_tokens_mistral': 1453, 'n_tokens_neox': 1414, 'n_words': 423}