<commit_before>angular.module('Components').
  service('Sharing', ['$window', ($window) ->
    facebook: (title, url, message, image) ->
      @_share('http://www.facebook.com/sharer.php?s=100&' +
        "p[title]=#{encodeURIComponent title}&" +
        "p[summary]=#{encodeURIComponent message}&" +
        "p[url]=#{encodeURIComponent url}&" +
        "p[images][0]=#{encodeURIComponent image}"
      )
    twitter: (title, url, message, image) ->
      @_share("http://twitter.com/intent/tweet?text=#{encodeURIComponent message}&url=#{encodeURIComponent url}")
    vkontakte: (title, url, message, image) ->
      @_share('http://vkontakte.ru/share.php?noparse=true&' +
        "url=#{encodeURIComponent url}&" +
        "title=#{encodeURIComponent message}&" +
        "description=#{encodeURIComponent message}&" +
        "image=#{encodeURIComponent image}"
      )
    google_oauth2: (title, url, message, image) ->
      @_share("https://plus.google.com/share?url=#{encodeURIComponent url}")
    _share: (url) ->
      $window.open url, 'Sharing', 'width=740,height=440'
  ]).
  directive 'social', ['Sharing', (Sharing) ->
    restrict: 'E'
    replace: true
    scope:
      provider: '@'
      message: '@'
      url: '@'<commit_msg>Fix title of vkontakte sharing<commit_after>angular.module('Components').
  service('Sharing', ['$window', ($window) ->
    facebook: (title, url, message, image) ->
      @_share('http://www.facebook.com/sharer.php?s=100&' +
        "p[title]=#{encodeURIComponent title}&" +
        "p[summary]=#{encodeURIComponent message}&" +
        "p[url]=#{encodeURIComponent url}&" +
        "p[images][0]=#{encodeURIComponent image}"
      )
    twitter: (title, url, message, image) ->
      @_share("http://twitter.com/intent/tweet?text=#{encodeURIComponent message}&url=#{encodeURIComponent url}")
    vkontakte: (title, url, message, image) ->
      @_share('http://vkontakte.ru/share.php?noparse=true&' +
        "url=#{encodeURIComponent url}&" +
        "title=#{encodeURIComponent title}&" +
        "description=#{encodeURIComponent message}&" +
        "image=#{encodeURIComponent image}"
      )
    google_oauth2: (title, url, message, image) ->
      @_share("https://plus.google.com/share?url=#{encodeURIComponent url}")
    _share: (url) ->
      $window.open url, 'Sharing', 'width=740,height=440'
  ]).
  directive 'social', ['Sharing', (Sharing) ->
    restrict: 'E'
    replace: true
    scope:
      provider: '@'
      message: '@'
      url: '@'
{'fraction_non_alphanumeric': 0.19161676646706588, 'fraction_numerical': 0.008782435129740519, 'mean_word_length': 3.4511545293072823, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 17, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '7390241', 'n_tokens_mistral': 828, 'n_tokens_neox': 864, 'n_words': 134}