<commit_before>{
  "name": "<% if (control.repository) { -%><%= account.packagist %><% } else { -%><%= owner.canonical %><% } -%>/<%= project.name %>",
  "description": "<%= project.description %>",
<% if (project.type !== 'library') { -%>
  "type": "<%= project.type %>",
<% } -%>
  "keywords": [<% for (var i = 0; i < project.keywords.length; i++) { -%>

    "<%= project.keywords[i] %>"<% if (i < project.keywords.length - 1) { -%>,<% } -%><% } -%>

  ],
<% if (project.homepage) { -%>
  "homepage": "<%= project.homepage %>",
<% }
if (project.license != '') { -%>
  "license": "<%= project.license %>",
<% } -%>
  "authors": [
    {
      "name": "<%= owner.name %>"<% if (owner.email) { -%>,
      "email": "<%= owner.email %>"<% } -%><% if (owner.homepage) { -%>,
      "homepage": "<%= owner.homepage %>"<% } -%>,
      "role": "Developer"
    }
  ],
<% if (control.repository) { -%>
  "support": {
    "source": "<%= repository.homepage %>",
    "issues": "<%= repository.homepage %>/issues"
  },
<% } -%>
  "minimum-stability": "dev",
  "prefer-stable": true,
  "require": {
    "php": "^<%= project.phpVersion.toFixed(1) %><% if (project.phpVersion.toFixed(1) < 7) { -%>|^7.0<% } -%>"<% for (var i = 0; i < project.dependencies.length; i++) { -%>,
    "<%= project.dependencies[i][0] %>": "<%= project.dependencies[i][1] %>"<% } -%>

  },
  "require-dev": {
    "brainmaestro/composer-git-hooks": "^2.1",
    "editorconfig-checker/editorconfig-checker": "^7.0",
    "friendsofphp/php-cs-fixer": "^2.0",
    "humbug/humbug": "~1.0@dev"<% if (control.homestead) { -%>,
    "laravel/homestead": "^6.0"
<% } -%>,
    "phpmd/phpmd": "^2.0",
    "povils/phpmnd": "^1.1",
    "phpmetrics/phpmetrics": "^2.0",<% if (project.phpVersion >= 7.0) { -%>

    "phpstan/phpstan": "^0.9",
    "phpstan/phpstan-strict-rules": "^0.9",<% } %>
    "phpunit/phpunit": "<% if (project.phpVersion < 7.0) { -%>^5.7|<% } -%>^6.0",
    "roave/security-advisories": "dev-master",
    "sebastian/phpcpd": "^2.0",<% if (project.phpVersion >= 7.1) { -%>

    "thecodingmachine/phpstan-strict-rules": "~0.9",<% } %>
    "squizlabs/php_codesniffer": "^2.0"
  },
  "suggest": {
  },
  "autoload": {
    "psr-4": {
      "<%= project.namespace.replace(/\\/g, '\\\\') %>\\": "src/"
    }
  },
  "autoload-dev": {
    "psr-4": {
      "<%= project.namespace.replace(/\\/g, '\\\\') %>\\Tests\\": "tests/<%= dir.testsSrc %>/"
    }
  },
  "bin": [
  ],
  "config": {
    "preferred-install": "dist",
    "sort-packages": true
  },
  "scripts": {
    "cghooks": "cghooks",
    "post-install-cmd": "cghooks add --ignore-lock",
    "post-update-cmd": "cghooks update",
    "php-lint": "php -l <%= dir.src %> && php -l <%= dir.tests %>",
    "editorconfig-lint": "editorconfig-checker <%= dir.src %>/* <%= dir.tests %>/*",
    "editorconfig-fix": "editorconfig-checker --auto-fix <%= dir.src %>/* <%= dir.tests %>/*",
    "phpcs": "phpcs --standard=PSR2 <%= dir.src %> <%= dir.tests %>",
    "phpcs-lint": "php-cs-fixer fix --dry-run --verbose",
    "phpcs-fix": "php-cs-fixer fix --verbose",
    "phpcpd": "phpcpd <%= dir.src %>",
    "phpmd": "phpmd <%= dir.src %> text unusedcode,naming,design,controversial,codesize",
    "phpmnd": "phpmnd ./ --exclude=<%= dir.tests %>",
    "phpmetrics-report": "phpmetrics --report-html=build/metrics --offline .",<% if (project.phpVersion >= 7.0) { -%>

    "phpstan": "phpstan analyse --level 7<% if (project.phpVersion >= 7.1) { -%> -c phpstan.neon<% } -%> src",<% } %>
    "phpunit": "phpunit",<commit_msg>activate stricter phpstan<commit_after>{
  "name": "<% if (control.repository) { -%><%= account.packagist %><% } else { -%><%= owner.canonical %><% } -%>/<%= project.name %>",
  "description": "<%= project.description %>",
<% if (project.type !== 'library') { -%>
  "type": "<%= project.type %>",
<% } -%>
  "keywords": [<% for (var i = 0; i < project.keywords.length; i++) { -%>

    "<%= project.keywords[i] %>"<% if (i < project.keywords.length - 1) { -%>,<% } -%><% } -%>

  ],
<% if (project.homepage) { -%>
  "homepage": "<%= project.homepage %>",
<% }
if (project.license != '') { -%>
  "license": "<%= project.license %>",
<% } -%>
  "authors": [
    {
      "name": "<%= owner.name %>"<% if (owner.email) { -%>,
      "email": "<%= owner.email %>"<% } -%><% if (owner.homepage) { -%>,
      "homepage": "<%= owner.homepage %>"<% } -%>,
      "role": "Developer"
    }
  ],
<% if (control.repository) { -%>
  "support": {
    "source": "<%= repository.homepage %>",
    "issues": "<%= repository.homepage %>/issues"
  },
<% } -%>
  "minimum-stability": "dev",
  "prefer-stable": true,
  "require": {
    "php": "^<%= project.phpVersion.toFixed(1) %><% if (project.phpVersion.toFixed(1) < 7) { -%>|^7.0<% } -%>"<% for (var i = 0; i < project.dependencies.length; i++) { -%>,
    "<%= project.dependencies[i][0] %>": "<%= project.dependencies[i][1] %>"<% } -%>

  },
  "require-dev": {
    "brainmaestro/composer-git-hooks": "^2.1",
    "editorconfig-checker/editorconfig-checker": "^7.0",
    "friendsofphp/php-cs-fixer": "^2.0",
    "humbug/humbug": "~1.0@dev"<% if (control.homestead) { -%>,
    "laravel/homestead": "^6.0"
<% } -%>,
    "phpmd/phpmd": "^2.0",
    "povils/phpmnd": "^1.1",
    "phpmetrics/phpmetrics": "^2.0",<% if (project.phpVersion >= 7.0) { -%>

    "phpstan/phpstan": "^0.9",
    "phpstan/phpstan-strict-rules": "^0.9",<% } %>
    "phpunit/phpunit": "<% if (project.phpVersion < 7.0) { -%>^5.7|<% } -%>^6.0",
    "roave/security-advisories": "dev-master",
    "sebastian/phpcpd": "^2.0",<% if (project.phpVersion >= 7.1) { -%>

    "thecodingmachine/phpstan-strict-rules": "~0.9",<% } %>
    "squizlabs/php_codesniffer": "^2.0"
  },
  "suggest": {
  },
  "autoload": {
    "psr-4": {
      "<%= project.namespace.replace(/\\/g, '\\\\') %>\\": "src/"
    }
  },
  "autoload-dev": {
    "psr-4": {
      "<%= project.namespace.replace(/\\/g, '\\\\') %>\\Tests\\": "tests/<%= dir.testsSrc %>/"
    }
  },
  "bin": [
  ],
  "config": {
    "preferred-install": "dist",
    "sort-packages": true
  },
  "scripts": {
    "cghooks": "cghooks",
    "post-install-cmd": "cghooks add --ignore-lock",
    "post-update-cmd": "cghooks update",
    "php-lint": "php -l <%= dir.src %> && php -l <%= dir.tests %>",
    "editorconfig-lint": "editorconfig-checker <%= dir.src %>/* <%= dir.tests %>/*",
    "editorconfig-fix": "editorconfig-checker --auto-fix <%= dir.src %>/* <%= dir.tests %>/*",
    "phpcs": "phpcs --standard=PSR2 <%= dir.src %> <%= dir.tests %>",
    "phpcs-lint": "php-cs-fixer fix --dry-run --verbose",
    "phpcs-fix": "php-cs-fixer fix --verbose",
    "phpcpd": "phpcpd <%= dir.src %>",
    "phpmd": "phpmd <%= dir.src %> text unusedcode,naming,design,controversial,codesize",
    "phpmnd": "phpmnd ./ --exclude=<%= dir.tests %>",
    "phpmetrics-report": "phpmetrics --report-html=build/metrics --offline .",<% if (project.phpVersion >= 7.0) { -%>

    "phpstan": "phpstan analyse --level 7<% if (project.phpVersion >= 7.0) { -%> -c phpstan.neon<% } -%> src",<% } %>
    "phpunit": "phpunit",
{'fraction_non_alphanumeric': 0.29284903518728717, 'fraction_numerical': 0.01532349602724177, 'mean_word_length': 3.0165242165242163, 'pattern_counts': {'":': 124, '<': 141, '<?xml version=': 0, '>': 139, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5425520', 'n_tokens_mistral': 3047, 'n_tokens_neox': 2806, 'n_words': 419}