<commit_before>define([
	"Ember",
	"mixins/RetryTransitionMixin",
	"utils/wait"
], function(
	Ember,
	RetryTransitionMixin,
	wait
) {

	var get = Ember.get;
	var set = Ember.set;

	return Ember.Controller.extend( RetryTransitionMixin, {
		auth    : Ember.inject.service(),
		settings: Ember.inject.service(),

		retryTransition: function() {
			// use "user.index" as default route
			return this._super( "user.index" );
		},

		token: "",

		scope: function() {
			return get( this, "auth.oauth.scope" ).join( ", " );
		}.property( "auth.oauth.scope" ),

		/**
		 * 0 000: start
		 * 1 001: auth  - login (server started)
		 * 2 010: auth  - failure
		 * 3 011: auth  - success (not used)
		 * 4 100: token - show form
		 * 5 101: token - login (form submitted)
		 * 6 110: token - failure
		 * 7 111: token - success
		 */
		loginStatus: 0,

		userStatus: function() {
			return get( this, "loginStatus" ) & 3;
		}.property( "loginStatus" ),

		hasUserInteraction: function() {
			return get( this, "userStatus" ) > 0;
		}.property( "userStatus" ),

		isLoggingIn: function() {
			return get( this, "userStatus" ) === 1;
		}.property( "userStatus" ),

		hasLoginResult: function() {
			var userStatus = get( this, "userStatus" );
			return ( userStatus & 2 ) > 0;
		}.property( "userStatus" ),<commit_msg>Fix auth abort btn being visible while using token<commit_after>define([
	"Ember",
	"mixins/RetryTransitionMixin",
	"utils/wait"
], function(
	Ember,
	RetryTransitionMixin,
	wait
) {

	var get = Ember.get;
	var set = Ember.set;

	return Ember.Controller.extend( RetryTransitionMixin, {
		auth    : Ember.inject.service(),
		settings: Ember.inject.service(),

		retryTransition: function() {
			// use "user.index" as default route
			return this._super( "user.index" );
		},

		token: "",

		scope: function() {
			return get( this, "auth.oauth.scope" ).join( ", " );
		}.property( "auth.oauth.scope" ),

		/**
		 * 0 000: start
		 * 1 001: auth  - login (server started)
		 * 2 010: auth  - failure
		 * 3 011: auth  - success (not used)
		 * 4 100: token - show form
		 * 5 101: token - login (form submitted)
		 * 6 110: token - failure
		 * 7 111: token - success
		 */
		loginStatus: 0,

		userStatus: function() {
			return get( this, "loginStatus" ) & 3;
		}.property( "loginStatus" ),

		hasUserInteraction: function() {
			return get( this, "userStatus" ) > 0;
		}.property( "userStatus" ),

		isLoggingIn: function() {
			return get( this, "loginStatus" ) === 1;
		}.property( "loginStatus" ),

		hasLoginResult: function() {
			var userStatus = get( this, "userStatus" );
			return ( userStatus & 2 ) > 0;
		}.property( "userStatus" ),
{'fraction_non_alphanumeric': 0.15755748209574066, 'fraction_numerical': 0.028646814926498305, 'mean_word_length': 3.1147286821705427, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '6020809', 'n_tokens_mistral': 1083, 'n_tokens_neox': 896, 'n_words': 250}