<commit_before>module.exports = {
  create: function (context) {
    var isEmberImported = false
    var isNever = Boolean(context.options.length > 0 && context.options[0] === 'never')

    return {
      /**
       * Determine if console is being used when it shouldn't be (when Ember is
       * imported)
       * @example `import Ember from 'ember'; console.info('Test')`
       * @param {ESLintNode} node - call expression node
       */
      CallExpression: function (node) {
        if (isEmberImported && node.callee.object.name === 'console') {
          var propertyName = node.callee.property.name
          context.report(node, 'Use Ember.Logger.' + propertyName + ' instead of console.' + propertyName)<commit_msg>Fix fragile code<commit_after>module.exports = {
  create: function (context) {
    var isEmberImported = false
    var isNever = Boolean(context.options.length > 0 && context.options[0] === 'never')

    return {
      /**
       * Determine if console is being used when it shouldn't be (when Ember is
       * imported)
       * @example `import Ember from 'ember'; console.info('Test')`
       * @param {ESLintNode} node - call expression node
       */
      CallExpression: function (node) {
        if (isEmberImported && node.callee.object && node.callee.object.name === 'console') {
          var propertyName = node.callee.property.name
          context.report(node, 'Use Ember.Logger.' + propertyName + ' instead of console.' + propertyName)
{'fraction_non_alphanumeric': 0.12424037812288993, 'fraction_numerical': 0.0027008777852802163, 'mean_word_length': 2.8294573643410854, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '7412459', 'n_tokens_mistral': 425, 'n_tokens_neox': 414, 'n_words': 118}