<commit_before>// easy d3-based word cloud plugin https://github.com/wvengen/d3-wordcloud
// requires https://github.com/jasondavies/d3-cloud
// based on https://github.com/shprink/d3js-wordcloud
(function() {
  function wordcloud() {
    var selector = '#nuvem',
        element = d3.select(selector),
        transitionDuration = 200,
        scale = 'sqrt',
        fill = d3.scale.category20b(),
        layout = d3.layout.cloud(),
        fontSize = null,
        svg = null,
        vis = null,
        onwordclick = undefined;

    wordcloud.element = function(x) {
      if (!arguments.length) return element;
      element = x == null ? '#wordcloud' : x;
      return wordcloud
    };

    wordcloud.selector = function(x) {
      if (!arguments.length) return selector;
      element = d3.select(x == null ? selector : x);
      return wordcloud;
    };

    wordcloud.transitionDuration = function(x) {
      if (!arguments.length) return transitionDuration;
      transitionDuration = typeof x == 'function' ? x() : x;<commit_msg>Create d3.wordcloud.js<commit_after>// easy d3-based word cloud plugin https://github.com/wvengen/d3-wordcloud
// requires https://github.com/jasondavies/d3-cloud
// based on https://github.com/shprink/d3js-wordcloud
// modificado seletor padrão para #nuvem por robsonpiere
(function() {
  function wordcloud() {
    var selector = '#nuvem',
        element = d3.select(selector),
        transitionDuration = 200,
        scale = 'sqrt',
        fill = d3.scale.category20b(),
        layout = d3.layout.cloud(),
        fontSize = null,
        svg = null,
        vis = null,
        onwordclick = undefined;

    wordcloud.element = function(x) {
      if (!arguments.length) return element;
      element = x == null ? '#wordcloud' : x;
      return wordcloud
    };

    wordcloud.selector = function(x) {
      if (!arguments.length) return selector;
      element = d3.select(x == null ? selector : x);
      return wordcloud;
    };

    wordcloud.transitionDuration = function(x) {
      if (!arguments.length) return transitionDuration;
      transitionDuration = typeof x == 'function' ? x() : x;
{'fraction_non_alphanumeric': 0.12976744186046513, 'fraction_numerical': 0.012558139534883722, 'mean_word_length': 2.585, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, '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': '1857978', 'n_tokens_mistral': 657, 'n_tokens_neox': 639, 'n_words': 155}