<commit_before># Login Panel
$(document).ready ->
  login = new LoginController('.rightPanel')

class window.LoginController
  # Handles the logic & interactions
  constructor: (containerSelector)->
    @$container = $(containerSelector) #may not need to store this?
    
    @loginView = new LoginView(containerSelector)
  

class LoginModel
  # Data Model for logging in
  


class LoginView
  # Handles the visual display of the
  # login panel
  constructor: (containerSelector)->
    @$container = $(containerSelector)
    
    @$loginButton = @$container.find('.login')
    @$joinButton = @$container.find('.joinWrap')
    @$signupButton = @$container.find('.signupWrap')
    
    @$signupPanel = @$container.find('.signupPanel') #expands
    @$loginPanel = @$container.find('.loginPanel') #submits
    
    @$loginButton.click => @showLogin()
    @$joinButton.click => @showSignup()
    $('.haveSeedcode').click => $('#user_seed_code').show()
  
  closePanel: ->
    @bodyClickVisible = false
    @$signupButton.hide()
    @$joinButton.show()
    @$loginButton.show()
    
    @$loginPanel.slideUp()
    @$signupPanel.slideUp()
  
  showLogin: ->
    if !@bodyClickVisible
      @bodyClickVisible = true
      @displayBodyClick()
      @$loginPanel.slideDown()
    else
      @$loginPanel.show()
      
    @$signupPanel.hide()
    @$signupButton.hide()
    @$joinButton.show()
  
    @$loginButton.hide()
  
    @$signupButton.unbind()
    @$signupButton.click => @showSignup()
  
  showSignup: ->
    if !@bodyClickVisible
      @bodyClickVisible = true
      @displayBodyClick()
      @$signupPanel.slideDown()
    else
      @$signupPanel.show()
      
    @$loginButton.show()
    @$signupButton.show()
  
    @$joinButton.hide()<commit_msg>login panel upgrades<commit_after># Login Panel
$(document).ready ->
  login = new LoginController('.rightPanel')

class window.LoginController
  # Handles the logic & interactions
  constructor: (containerSelector)->
    @$container = $(containerSelector) #may not need to store this?
    
    @loginView = new LoginView(containerSelector)
  

class LoginModel
  # Data Model for logging in
  


class LoginView
  # Handles the visual display of the
  # login panel
  constructor: (containerSelector)->
    @$container = $(containerSelector)
    
    @$loginButton = @$container.find('.login')
    @$joinButton = @$container.find('.joinWrap')
    @$signupButton = @$container.find('.signupWrap')
    
    @$signupPanel = @$container.find('.signupPanel') #expands
    @$loginPanel = @$container.find('.loginPanel') #submits
    
    @$loginButton.unbind()
    @$loginButton.click => @showLogin()
    @$joinButton.unbind()
    @$joinButton.click => @showSignup()
    
    @bodyClickVisible = false
    
    $('.haveSeedcode').click => $('#user_seed_code').show()
  
  closePanel: ->
    @bodyClickVisible = false
    @$signupButton.hide()
    @$joinButton.show()
    @$loginButton.show()
    
    @$loginPanel.slideUp()
    @$signupPanel.slideUp()
  
  showLogin: ->
    console.log @bodyClickVisible
    if !@bodyClickVisible
      @bodyClickVisible = true
      @displayBodyClick()
      @$loginPanel.slideDown()
    else
      @$loginPanel.show()
      
    @$signupPanel.hide()
    @$signupButton.hide()
    @$joinButton.show()
  
    @$loginButton.hide()
  
    @$signupButton.unbind()
    @$signupButton.click => @showSignup()
  
  showSignup: ->
    if !@bodyClickVisible
      @bodyClickVisible = true
      @displayBodyClick()
      @$signupPanel.slideDown()
    else
      @$signupPanel.show()
      
    @$loginButton.show()
    @$signupButton.show()
  
    @$joinButton.hide()
{'fraction_non_alphanumeric': 0.14615384615384616, 'fraction_numerical': 0.0, 'mean_word_length': 3.1234428086070216, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 23, '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': '2946457', 'n_tokens_mistral': 1169, 'n_tokens_neox': 1163, 'n_words': 209}