<commit_before>import should from 'should/as-function';
import Syncano from '../../src/syncano';
import {suffix, credentials, createCleaner} from './utils';
import Stripe from 'stripe';

describe('Card', function() {
  this.timeout(15000);

  const cleaner = createCleaner();
  let connection = null;
  let Model = null;
  let Instance = null;
  const instanceName = suffix.get('Card');
  const stripe = Stripe('pk_test_KpGUBLDblMcqWefiyj7iKC52');
  let token = null;

  before(function() {
    connection = Syncano(credentials.getCredentials());
    Instance = connection.Instance;
    Model = connection.Card;

    return stripe.tokens.create({
      card: {
        number: '4242424242424242',
        exp_month: 12,
        exp_year: 2017,<commit_msg>[LIB-728] Move stripe test key to env variable<commit_after>import should from 'should/as-function';
import Syncano from '../../src/syncano';
import {suffix, credentials, createCleaner} from './utils';
import Stripe from 'stripe';

describe('Card', function() {
  this.timeout(15000);

  const cleaner = createCleaner();
  let connection = null;
  let Model = null;
  let Instance = null;
  const instanceName = suffix.get('Card');
  const stripe = Stripe(process.env.STRIPE_KEY);
  let token = null;

  before(function() {
    connection = Syncano(credentials.getCredentials());
    Instance = connection.Instance;
    Model = connection.Card;

    return stripe.tokens.create({
      card: {
        number: '4242424242424242',
        exp_month: 12,
        exp_year: 2017,
{'fraction_non_alphanumeric': 0.1286740692357936, 'fraction_numerical': 0.039190071848465055, 'mean_word_length': 3.7430340557275543, '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': '2949701', 'n_tokens_mistral': 522, 'n_tokens_neox': 464, 'n_words': 122}