<commit_before>var React = require('react');
var ReactCanvas = require('react-canvas');

var Surface = ReactCanvas.Surface;
var Image = ReactCanvas.Image;

var HEIGHT = 480;
var WIDTH = 350;
var ROWS = 6;
var COLS = 10;

var TabletopSimulatorDeck = React.createClass({
  render: function() {
    return (
      <div style={{ display: 'none'}}>
        <Surface ref="canvas" width={WIDTH * COLS} height={HEIGHT * ROWS} left={0} top={0}>
          { this.props.pokemon.pokemonToCards().map((card, index) => {
            return (
              <Image key={this.key()} style={this.imageStyle(index)} src={this.src(card)} />
            );
          })}
        </Surface>
      </div>
    );
  },

  key: function(card) {
    return cards.set + '-' + card.number + '-' + index;
  },

  pad: function(n, p, c) {
    var n = n;
    var pad_char = typeof c !== 'undefined' ? c : '0';
    var pad = new Array(1 + p).join(pad_char);
    return (pad + n).slice(-pad.length);
  },
  name: function(card) {
    return card.set + '_' + this.pad(card.number, 3);
  },
  src: function(card) {
    return 'https://dl.dropboxusercontent.com/u/73204375/pokemon/cards/' + this.name(card) + '.jpg'
  },<commit_msg>who needs testing<commit_after>var React = require('react');
var ReactCanvas = require('react-canvas');

var Surface = ReactCanvas.Surface;
var Image = ReactCanvas.Image;

var HEIGHT = 480;
var WIDTH = 350;
var ROWS = 6;
var COLS = 10;

var TabletopSimulatorDeck = React.createClass({
  render: function() {
    return (
      <div style={{ display: 'none'}}>
        <Surface ref="canvas" width={WIDTH * COLS} height={HEIGHT * ROWS} left={0} top={0}>
          { this.props.pokemon.pokemonToCards().map((card, index) => {
            return (
              <Image key={this.key()} style={this.imageStyle(index)} src={this.src(card)} />
            );
          })}
        </Surface>
      </div>
    );
  },

  key: function(card) {
    return card.set + '-' + card.number + '-' + index;
  },

  pad: function(n, p, c) {
    var n = n;
    var pad_char = typeof c !== 'undefined' ? c : '0';
    var pad = new Array(1 + p).join(pad_char);
    return (pad + n).slice(-pad.length);
  },
  name: function(card) {
    return card.set + '_' + this.pad(card.number, 3);
  },
  src: function(card) {
    return 'https://dl.dropboxusercontent.com/u/73204375/pokemon/cards/' + this.name(card) + '.jpg'
  },
{'fraction_non_alphanumeric': 0.18303384872544923, 'fraction_numerical': 0.01838696197241956, 'mean_word_length': 2.7001545595054095, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 15, 'https://': 2, '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': '2881330', 'n_tokens_mistral': 865, 'n_tokens_neox': 828, 'n_words': 184}