<commit_before>uploadcare.whenReady ->
  {
    namespace,
    locale,
    utils,
    jQuery: $
  } = uploadcare

  namespace 'uploadcare.widget.tabs', (ns) ->
    ns.RemoteTabFor = (service) ->
      class RemoteTab extends ns.BaseFileTab

        setContent: (@content) ->

          @dialog.progress (tab) =>
            if tab == service
              @createIframe()

          @dialog.fail =>
            @cleanup()


        createIframe: ->
          unless @iframe
            @windowId = utils.uuid()
            @createWatcher()

            src =
              "#{@settings.socialBase}/window/#{@windowId}/" +
              "#{service}/#{@settings.publicKey}?lang=#{locale.lang}"
            @iframe = $('<iframe>')<commit_msg>pass public_key in param instead of url path<commit_after>uploadcare.whenReady ->
  {
    namespace,
    locale,
    utils,
    jQuery: $
  } = uploadcare

  namespace 'uploadcare.widget.tabs', (ns) ->
    ns.RemoteTabFor = (service) ->
      class RemoteTab extends ns.BaseFileTab

        setContent: (@content) ->

          @dialog.progress (tab) =>
            if tab == service
              @createIframe()

          @dialog.fail =>
            @cleanup()


        createIframe: ->
          unless @iframe
            @windowId = utils.uuid()
            @createWatcher()

            src =
              "#{@settings.socialBase}/window/#{@windowId}/" +
              "#{service}?lang=#{locale.lang}&public_key=#{@settings.publicKey}"
            @iframe = $('<iframe>')
{'fraction_non_alphanumeric': 0.1429512516469038, 'fraction_numerical': 0.0, 'mean_word_length': 1.7668488160291438, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 19, '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': '4940043', 'n_tokens_mistral': 444, 'n_tokens_neox': 428, 'n_words': 78}