<commit_before>package com.marpies.ane.facebook.accountkit {

    /**
     * AccountKit login configuration.
     */
    public class AKConfiguration {

        private var mLoginType:String;
        private var mInitialAuthState:String;
        private var mInitialEmail:String;
        private var mDefaultCountryCode:String;
        private var mInitialPhoneNumber:String;
        private var mEnableFacebookNotification:Boolean;
        private var mTitleType:String;
        private var mEnableReadPhoneState:Boolean;
        private var mReceiveSms:Boolean;
        private var mSmsWhiteList:Vector.<String>;
        private var mSmsBlackList:Vector.<String>;

        /**
         * @private
         */
        public function AKConfiguration() {
            mReceiveSms = true;
            mEnableReadPhoneState = true;
            mEnableFacebookNotification = true;
            mLoginType = AKLoginType.EMAIL;
            mTitleType = AKTitleType.LOGIN;
        }

        /**
         * Determines whether user will login via email or phone number.
         *
         * @default com.marpies.ane.facebook.accountkit.AKLoginType#EMAIL
         *
         * @see com.marpies.ane.facebook.accountkit.AKLoginType
         */
        public function get loginType():String {
            return mLoginType;
        }

        /**
         * @private
         */
        public function set loginType( loginType:String ):void {
            if( !AKLoginType.isValid( loginType ) ) throw new ArgumentError( "Parameter loginType must be one of the values defined in AKLoginType class." );
            mLoginType = loginType;
        }

        /**
         * A developer-generated nonce used to verify that the received response matches the request.
         * Fill this with a random value at runtime; when the login callback is triggered and it is successful,
         * check that <code>AKLoginResult.authorizationState</code> matches the value set in this method.
         *
         * @see com.marpies.ane.facebook.accountkit.AKLoginResult#authorizationState
         */
        public function get initialAuthState():String {
            return mInitialAuthState;
        }

        /**
         * @private
         */
        public function set initialAuthState( value:String ):void {
            mInitialAuthState = value;
        }

        /**
         * Pre-fill the user's email address in the email login flow.
         */
        public function get initialEmail():String {
            return mInitialEmail;
        }

        /**
         * @private
         */
        public function set initialEmail( value:String ):void {
            mInitialEmail = value;
        }

        /**
         * The default country code shown in the SMS login flow.
         */
        public function get defaultCountryCode():String {
            return mDefaultCountryCode;
        }

        /**
         * @private
         */
        public function set defaultCountryCode( value:String ):void {
            mDefaultCountryCode = value;
        }

        /**
         * Pre-fill the user's phone number in the SMS login flow.
         */
        public function get initialPhoneNumber():String {
            return mInitialPhoneNumber;
        }

        /**
         * @private
         */
        public function set initialPhoneNumber( value:String ):void {
            mInitialPhoneNumber = value;
        }

        /**<commit_msg>UPDATED configuration API to comply with native SDK API<commit_after>package com.marpies.ane.facebook.accountkit {

    /**
     * AccountKit login configuration.
     */
    public class AKConfiguration {

        private var mLoginType:String;
        private var mInitialAuthState:String;
        private var mInitialEmail:String;
        private var mDefaultCountryCode:String;
        private var mPhoneNumberCountryCode:String;
        private var mInitialPhoneNumber:String;
        private var mEnableFacebookNotification:Boolean;
        private var mTitleType:String;
        private var mEnableReadPhoneState:Boolean;
        private var mReceiveSms:Boolean;
        private var mSmsWhiteList:Vector.<String>;
        private var mSmsBlackList:Vector.<String>;

        /**
         * @private
         */
        public function AKConfiguration() {
            mReceiveSms = true;
            mEnableReadPhoneState = true;
            mEnableFacebookNotification = true;
            mLoginType = AKLoginType.EMAIL;
            mTitleType = AKTitleType.LOGIN;
        }

        /**
         * Determines whether user will login via email or phone number.
         *
         * @default com.marpies.ane.facebook.accountkit.AKLoginType#EMAIL
         *
         * @see com.marpies.ane.facebook.accountkit.AKLoginType
         */
        public function get loginType():String {
            return mLoginType;
        }

        /**
         * @private
         */
        public function set loginType( loginType:String ):void {
            if( !AKLoginType.isValid( loginType ) ) throw new ArgumentError( "Parameter loginType must be one of the values defined in AKLoginType class." );
            mLoginType = loginType;
        }

        /**
         * A developer-generated nonce used to verify that the received response matches the request.
         * Fill this with a random value at runtime; when the login callback is triggered and it is successful,
         * check that <code>AKLoginResult.authorizationState</code> matches the value set in this method.
         *
         * @see com.marpies.ane.facebook.accountkit.AKLoginResult#authorizationState
         */
        public function get initialAuthState():String {
            return mInitialAuthState;
        }

        /**
         * @private
         */
        public function set initialAuthState( value:String ):void {
            mInitialAuthState = value;
        }

        /**
         * Pre-fill the user's email address in the email login flow.
         */
        public function get initialEmail():String {
            return mInitialEmail;
        }

        /**
         * @private
         */
        public function set initialEmail( value:String ):void {
            mInitialEmail = value;
        }

        /**
         * The default country code shown in the SMS login flow.
         */
        public function get defaultCountryCode():String {
            return mDefaultCountryCode;
        }

        /**
         * @private
         */
        public function set defaultCountryCode( value:String ):void {
            mDefaultCountryCode = value;
        }

        /**
         * Pre-fill the user's phone number in the SMS login flow.
         */
        public function get initialPhoneNumber():String {
            return mInitialPhoneNumber;
        }

        /**
         * Initial phone number's country code.
         */
        public function get initialPhoneNumberCountryCode():String {
            return mPhoneNumberCountryCode;
        }

        /**
         * Pre-fill the user's phone number in the SMS login flow.
         */
        public function setInitialPhoneNumber( countryCode:String, phoneNumber:String ):void {
            if( countryCode === null ) throw new ArgumentError( "Parameter countryCode cannot be null." );
            if( phoneNumber === null ) throw new ArgumentError( "Parameter phoneNumber cannot be null." );

            mPhoneNumberCountryCode = countryCode;
            mInitialPhoneNumber = phoneNumber;
        }

        /**
{'fraction_non_alphanumeric': 0.07606382978723404, 'fraction_numerical': 0.0, 'mean_word_length': 1.8499431602879879, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4442824', 'n_tokens_mistral': 1842, 'n_tokens_neox': 1781, 'n_words': 527}