<commit_before>var css = require('dom-css')
var _ = require('lodash')
var animate = require('animateplus')
var EventEmitter = require('events').EventEmitter

module.exports = function(container) {
  var width = container.clientWidth
  var height = container.clientHeight
  var ismobile = width < height
  var size = ismobile ? width * 1.0: height * 0.6

  var events = new EventEmitter()

  var colors = {
    text: 'rgb(200,200,200)',
    textSelected: 'rgb(255,255,255)',
    fill: 'rgb(40,40,40)',
    stroke: 'none'
  }

  var offset = ismobile ? 0 : Math.PI / 6
  var points = _.range(7).map(function (i) {
    var dx = (ismobile ? 0.45 : 0.32) * size * Math.cos(i * 2 * Math.PI / 6 + offset) - size / 6
    var dy = 0.32 * size * Math.sin(i * 2 * Math.PI / 6 + offset) + size / 2
    return [dx, dy]
  })

  var svg = document.createElementNS('http://www.w3.org/2000/svg', 'svg')
  svg.setAttribute('width', size)
  svg.setAttribute('height', size)
  css(svg, {
    position: 'fixed',
    display: 'block',
    zIndex: 2000,
    pointerEvents: 'none'<commit_msg>size tweak<commit_after>var css = require('dom-css')
var _ = require('lodash')
var animate = require('animateplus')
var EventEmitter = require('events').EventEmitter

module.exports = function(container) {
  var width = container.clientWidth
  var height = container.clientHeight
  var ismobile = width < height
  var size = ismobile ? width * 1.0 : height * 0.7

  var events = new EventEmitter()

  var colors = {
    text: 'rgb(200,200,200)',
    textSelected: 'rgb(255,255,255)',
    fill: 'rgb(40,40,40)',
    stroke: 'none'
  }

  var offset = ismobile ? 0 : Math.PI / 6
  var points = _.range(7).map(function (i) {
    var dx = (ismobile ? 0.45 : 0.32) * size * Math.cos(i * 2 * Math.PI / 6 + offset) - size / 6
    var dy = 0.32 * size * Math.sin(i * 2 * Math.PI / 6 + offset) + size / 2
    return [dx, dy]
  })

  var svg = document.createElementNS('http://www.w3.org/2000/svg', 'svg')
  svg.setAttribute('width', size)
  svg.setAttribute('height', size)
  css(svg, {
    position: 'fixed',
    display: 'block',
    zIndex: 2000,
    pointerEvents: 'none'
{'fraction_non_alphanumeric': 0.16119962511715089, 'fraction_numerical': 0.05154639175257732, 'mean_word_length': 3.1780821917808217, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '3245408', 'n_tokens_mistral': 827, 'n_tokens_neox': 741, 'n_words': 196}