<commit_before>'use strict';

const expect = require('chai').expect;

module.exports.assertNormalUpdate = function(status) {
  // changed locally, no change upstream
  expect(status).to.not.match(/^ .*\.ember-cli$/m);

  // exists locally, also added upstream with changes
  expect(status).to.match(/^M {2}.*\.eslintrc\.js$/m);

  // changed locally, removed upstream
  expect(status).to.match(/^D {2}.*bower\.json$/m);

  // changed locally, also changed upstream
  expect(status).to.match(/^M {2}.*README\.md$/m);
};

module.exports.assertNoUnstaged = function(status) {
  // assert no unstaged changes
  expect(status).to.not.match(/^( M |MM ).+$/m);
};

module.exports.assertCodemodRan = function(status) {
  // codemod changed locally, no change upstream
  expect(status).to.match(/^M {2}.*app\/controllers\/application\.js$/m);

  // codemod changed locally, also changed upstream
  expect(status).to.match(/^M {2}.*app\/router\.js$/m);
};<commit_msg>use better assertion<commit_after>'use strict';

const expect = require('chai').expect;

module.exports.assertNormalUpdate = function(status) {
  // changed locally, no change upstream
  expect(status).to.not.match(/^ .*\.ember-cli$/m);

  // exists locally, also added upstream with changes
  expect(status).to.match(/^M {2}.*\.eslintrc\.js$/m);

  // changed locally, removed upstream
  expect(status).to.match(/^D {2}.*bower\.json$/m);

  // changed locally, also changed upstream
  expect(status).to.match(/^M {2}.*README\.md$/m);
};

module.exports.assertNoUnstaged = function(status) {
  // assert no unstaged changes
  expect(status).to.not.match(/^.\w/m);
};

module.exports.assertCodemodRan = function(status) {
  // codemod changed locally, no change upstream
  expect(status).to.match(/^M {2}.*app\/controllers\/application\.js$/m);

  // codemod changed locally, also changed upstream
  expect(status).to.match(/^M {2}.*app\/router\.js$/m);
};
{'fraction_non_alphanumeric': 0.1903765690376569, 'fraction_numerical': 0.005230125523012552, 'mean_word_length': 3.8925831202046037, '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': '3920424', 'n_tokens_mistral': 677, 'n_tokens_neox': 627, 'n_words': 127}