<commit_before>"use strict";

var CardDisplay = require("./card-display"),
    consts      = require("../constants"),
    assets      = require("../assets");

function DcCardFront(dcCard, fullSize) {
  this.CardDisplay_constructor(drawCard(dcCard, fullSize));
}

function drawCard(dcCard, fullSize) {
  var blankBg = new createjs.Bitmap(assets.dcCardBlank);
  var bounds = blankBg.getBounds();

  console.log(dcCard);

  var title = new createjs.Text(dcCard.title.toUpperCase(), "36px 'DC Card Header'", consts.headerColor);
  title.lineWidth = bounds.width - 32;
  title.x = 16;
  title.y = 10;

  var description = new createjs.Text(dcCard.description, "18px 'DC Card Body'", consts.headerColor);
  description.lineWidth = bounds.width - 32;
  description.x = 16;
  description.y = 90;

  var innerContainer = new createjs.Container();
  innerContainer.addChild(blankBg);<commit_msg>Fix disappearing cards, yeah!<commit_after>"use strict";

var CardDisplay = require("./card-display"),
    consts      = require("../constants"),
    assets      = require("../assets");

function DcCardFront(dcCard, fullSize) {
  this.CardDisplay_constructor(drawCard(dcCard, fullSize));
}

function drawCard(dcCard, fullSize) {
  var blankBg = new createjs.Bitmap(assets.dcCardBlank);
  var bounds = blankBg.getBounds();

  var title = new createjs.Text(dcCard.title.toUpperCase(), "36px 'DC Card Header'", consts.headerColor);
  title.lineWidth = bounds.width - 32;
  title.x = 16;
  title.y = 10;

  var description = new createjs.Text(dcCard.description, "18px 'DC Card Body'", consts.headerColor);
  description.lineWidth = bounds.width - 32;
  description.x = 16;
  description.y = 90;

  var innerContainer = new createjs.Container();
  innerContainer.addChild(blankBg);
{'fraction_non_alphanumeric': 0.13961407491486946, 'fraction_numerical': 0.018161180476730987, 'mean_word_length': 4.326283987915408, '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': '7119084', 'n_tokens_mistral': 593, 'n_tokens_neox': 556, 'n_words': 125}