<commit_before>fb_app = {
  current_url: '',

  locales: {

  },

  config: {
    url_prefix: '',
    save_auth_url: '',
    show_login_url: '',

    init: function() {

    },

  },

  timeline: {
    app_id: '',
    //app_scope: 'publish_actions',
    app_scope: '',

    loading: function() {
      jQuery('#fb-app-connect-status').empty().addClass('loading').height(150)
    },

    connect: function() {
      this.loading();
      fb_app.fb.scope = this.app_scope
      //fb_app.fb.init(this.app_id, 'fb_app.fb.connect()')
      fb_app.fb.connect(function (response) {
        fb_app.auth.receive(response)
      });
    },

    disconnect: function() {
      this.loading();
      /*'not_authorized' is used to disconnect from facebook*/
      jQuery('#fb-app-modal-wrap #fb-app-modal-intro').html(
          fb_app_plugin.views.myprofile.catalogs.confirm_disconnect
        )
        jQuery('#fb-app-modal-wrap .modal-button-no')
          .html(fb_app_plugin.views.myprofile.catalogs.cancel_button)
          .attr('onClick', 'noosfero.modal.close()')
        jQuery('#fb-app-modal-wrap .modal-button-yes')
          .html(fb_app_plugin.views.myprofile.catalogs.confirm_disconnect_button)
          .attr('onClick', 'fb_app.page_tab.config.disconnect_confirmed(this);noosfero.modal.close()')
        noosfero.modal.html(jQuery('#fb-app-modal-wrap').html())
    },
    
    disconnect_confirmed: function() {
      fb_app.auth.receive({status: 'not_authorized'})
    }

    connect_to_another: function() {
      this.disconnect();
      fb_app.fb.connect_to_another(this.connect)
    },
  },

  page_tab: {
    app_id: '',
    next_url: '',

    init: function() {
      FB.Canvas.scrollTo(0,140);
    },

    config: {

      init: function() {
        this.change_type($('select#page_tab_config_type'))<commit_msg>Update fb_app.js<commit_after>fb_app = {
  current_url: '',

  locales: {

  },

  config: {
    url_prefix: '',
    save_auth_url: '',
    show_login_url: '',

    init: function() {

    },

  },

  timeline: {
    app_id: '',
    //app_scope: 'publish_actions',
    app_scope: '',

    loading: function() {
      jQuery('#fb-app-connect-status').empty().addClass('loading').height(150)
    },

    connect: function() {
      this.loading();
      fb_app.fb.scope = this.app_scope
      //fb_app.fb.init(this.app_id, 'fb_app.fb.connect()')
      fb_app.fb.connect(function (response) {
        fb_app.auth.receive(response)
      });
    },

    disconnect: function() {
      this.loading();
      // 'not_authorized' is used to disconnect from facebook
      jQuery('#fb-app-modal-wrap #fb-app-modal-intro').html(
          fb_app_plugin.views.myprofile.catalogs.confirm_disconnect
        )
      jQuery('#fb-app-modal-wrap .modal-button-no')
        .html(fb_app_plugin.views.myprofile.catalogs.cancel_button)
        .attr('onClick', 'noosfero.modal.close()')
      jQuery('#fb-app-modal-wrap .modal-button-yes')
        .html(fb_app_plugin.views.myprofile.catalogs.confirm_disconnect_button)
        .attr('onClick', 'fb_app.page_tab.config.disconnect_confirmed(this);noosfero.modal.close()')
      noosfero.modal.html(jQuery('#fb-app-modal-wrap').html())
    },
    
    disconnect_confirmed: function() {
      fb_app.auth.receive({status: 'not_authorized'})
    },

    connect_to_another: function() {
      this.disconnect();
      fb_app.fb.connect_to_another(this.connect)
    },
  },

  page_tab: {
    app_id: '',
    next_url: '',

    init: function() {
      FB.Canvas.scrollTo(0,140);
    },

    config: {

      init: function() {
        this.change_type($('select#page_tab_config_type'))
{'fraction_non_alphanumeric': 0.16543006320417697, 'fraction_numerical': 0.0038472107721901623, 'mean_word_length': 2.691683569979716, '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': '242170', 'n_tokens_mistral': 1304, 'n_tokens_neox': 1232, 'n_words': 138}