<commit_before>Dashboard.TickerWidget = Dashboard.Widget.extend({
  sourceData: "",

  templateName: 'ticker_widget',
  classNames: ['widget', 'widget-ticker'],

  widgetView: function() {
    var widget = this;

  	return this._super().reopen({
  	  didInsertElement: function() {
        var scaleFactor = 0.5;
        var scaleSource = this.$().height();

        var fontSize = scaleSource * scaleFactor;

        var widgetUnitWidth = (DashboardConfig.grid.width - DashboardConfig.widgetMargins) /
          DashboardConfig.dim[0] - DashboardConfig.widgetMargins;

        var widgetWidth = widgetUnitWidth * widget.get('sizex') +
          DashboardConfig.widgetMargins * (widget.get('sizex') - 1) - 5;

        this.$().css('font-size', fontSize + 'px');
        this.$('.marquee').css('max-width', widgetWidth + 'px');
      }
  	});
  }.property()
});
<commit_msg>Change ticker font scale factor to 0.7<commit_after>Dashboard.TickerWidget = Dashboard.Widget.extend({
  sourceData: "",

  templateName: 'ticker_widget',
  classNames: ['widget', 'widget-ticker'],

  widgetView: function() {
    var widget = this;

  	return this._super().reopen({
  	  didInsertElement: function() {
        var scaleFactor = 0.7;
        var widgetHeight = this.$().height();

        var fontSize = widgetHeight * scaleFactor;

        var widgetUnitWidth = (DashboardConfig.grid.width - DashboardConfig.widgetMargins) /
          DashboardConfig.dim[0] - DashboardConfig.widgetMargins;

        var widgetWidth = widgetUnitWidth * widget.get('sizex') +
          DashboardConfig.widgetMargins * (widget.get('sizex') - 1) - 5;

        this.$().css('font-size', fontSize + 'px');
        this.$('.marquee').css('max-width', widgetWidth + 'px');
      }
  	});
  }.property()
});

{'fraction_non_alphanumeric': 0.15397631133671744, 'fraction_numerical': 0.00676818950930626, 'mean_word_length': 3.0318181818181817, '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': '2345792', 'n_tokens_mistral': 563, 'n_tokens_neox': 539, 'n_words': 102}