<commit_before><?php

namespace Just;

use Composer\Script\Event;

class Hooks
{
    /**
     * @param Event $event
     * @return null
     */
    public static function checkHooks(Event $event)
    {
        $io = $event->getIO();
        if (!$event->isDevMode()) {
            return null;
        }

        $projectRoot = realpath(__DIR__ . '/../../../../../');
        $packageHook = $projectRoot . '/bin/pre-commit';
        if (strpos($projectRoot, 'laravel') !== false) {<commit_msg>Bugfix: Don't run pre-commit on windows machines<commit_after><?php

namespace Just;

use Composer\Script\Event;

class Hooks
{
    /**
     * @param Event $event
     * @return null
     */
    public static function checkHooks(Event $event)
    {
        $io = $event->getIO();

        // Don't run pre-commit in non-dev mode
        if (!$event->isDevMode()) {
            return null;
        }

        // Cannot install pre-commit with a windows machine
        if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
            return null;
        }

        $projectRoot = realpath(__DIR__ . '/../../../../../');
        $packageHook = $projectRoot . '/bin/pre-commit';
        if (strpos($projectRoot, 'laravel') !== false) {
{'fraction_non_alphanumeric': 0.16748366013071894, 'fraction_numerical': 0.0016339869281045752, 'mean_word_length': 1.9447115384615385, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '3261536', 'n_tokens_mistral': 378, 'n_tokens_neox': 371, 'n_words': 91}