<commit_before>var Auth = {
  initialize: function() {
    $('.auth-provider').live("click", function(){
      var authUrl = $(this).attr('href');

      Auth.open_popup(authUrl);

      return false;
    });
  },
  position_dropdown: function(){
    $('.providers-list').show().offset({left: $('.offline').offset().left+$('.offline').width()-$('.providers-list').width()}).hide()
  },
  dropdown_toggle: function(){
    $('[data-toggle-dropdown]').click(function(){
      var toggleClass = $(this).data('toggle-dropdown');
      $('.dropdown-form').addClass('hidden');
      var toggleEle = $('.'+toggleClass).toggleClass('hidden');

      return false;
    })
    }
  ,
  open_popup: function(authUrl) {
    $.cookie('pp', 1);
    var pparg;
    if(authUrl.indexOf('{')!=-1){
      authUrl = '/users/login?open_id=1&url='+authUrl.split('=')[1]
    }
    (authUrl.indexOf('?')==-1)? pparg = '?pp=1' : pparg = '&pp=1'
    window.open(authUrl+pparg, 'openid_popup', 'width=700,height=500');
    $('#login_dialog').dialog('close');
  },
  startLoginDialog: function(title,join){<commit_msg>reposition login dropdown on clicking forms links<commit_after>var Auth = {
  initialize: function() {
    $('.auth-provider').live("click", function(){
      var authUrl = $(this).attr('href');

      Auth.open_popup(authUrl);

      return false;
    });
  },
  position_dropdown: function(){
    $('.providers-list').show().offset({left: $('.offline').offset().left+$('.offline').width()-$('.providers-list').width()}).hide()
  },
  dropdown_toggle: function(){
    $('[data-toggle-dropdown]').click(function(){
      var toggleClass = $(this).data('toggle-dropdown');
      $('.dropdown-form').addClass('hidden');
      var toggleEle = $('.'+toggleClass).toggleClass('hidden');
      Auth.position_dropdown();
      $('.providers-list').show();
      return false;
    })
    }
  ,
  open_popup: function(authUrl) {
    $.cookie('pp', 1);
    var pparg;
    if(authUrl.indexOf('{')!=-1){
      authUrl = '/users/login?open_id=1&url='+authUrl.split('=')[1]
    }
    (authUrl.indexOf('?')==-1)? pparg = '?pp=1' : pparg = '&pp=1'
    window.open(authUrl+pparg, 'openid_popup', 'width=700,height=500');
    $('#login_dialog').dialog('close');
  },
  startLoginDialog: function(title,join){
{'fraction_non_alphanumeric': 0.23573309920983318, 'fraction_numerical': 0.01141352063213345, 'mean_word_length': 3.78781512605042, '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': '671408', 'n_tokens_mistral': 777, 'n_tokens_neox': 758, 'n_words': 103}