<commit_before>/*
 * grunt-init-gruntplugin-sample
 * https://github.com/gruntjs/grunt-init-gruntplugin-sample
 *
 * Copyright (c) 2012 "Cowboy" <NAME>
 * Licensed under the MIT license.
 */

'use strict';

module.exports = function (grunt) {

    // Project configuration.
    grunt.initConfig({
        results: [],
        jshint: {
            all: [
                'Gruntfile.js',
                'tasks/*.js',
                '<%= nodeunit.tests %>'
            ],
            options: {
                jshintrc: '.jshintrc'
            }
        },

        // Configuration to be run (and then tested).
        ngrok: {
            options: {
                authToken: <PASSWORD>',
                port: 50000,
                onConnected: function (url) {
                    var results = grunt.config.get('results');
                    results.push({task: this, url: url});
                    grunt.config.set('results', results);
                }
            },
            basicHttp: {},
            basicHttps: {
                proto: 'https'
            },
            httpSubdomain: {
                subdomain: 'grunt-ngrok-test',
                expect: 'http://grunt-ngrok-test.ngrok.com'
            },
            tcp: {
                name: 'tcp',
                proto: 'tcp'
            },
            tcpRemote: {
                name: 'tcpRemote',
                expect: 'tcp://ngrok.com:64321',
                proto: 'tcp',
                remotePort: 64321
            }<commit_msg>use random ports in tests<commit_after>/*
 * grunt-init-gruntplugin-sample
 * https://github.com/gruntjs/grunt-init-gruntplugin-sample
 *
 * Copyright (c) 2012 "Cowboy" <NAME>
 * Licensed under the MIT license.
 */

'use strict';

module.exports = function (grunt) {
    function getRandomPort() {
        return Math.round(Math.random() * (65535 - 50000) + 50000);
    }

    var tcpPort = getRandomPort();

    // Project configuration.
    grunt.initConfig({
        results: [],
        jshint: {
            all: [
                'Gruntfile.js',
                'tasks/*.js',
                '<%= nodeunit.tests %>'
            ],
            options: {
                jshintrc: '.jshintrc'
            }
        },

        // Configuration to be run (and then tested).
        ngrok: {
            options: {
                authToken: <PASSWORD>',
                port: 50000,
                onConnected: function (url) {
                    var results = grunt.config.get('results');
                    results.push({task: this, url: url});
                    grunt.config.set('results', results);
                }
            },
            basicHttp: {},
            basicHttps: {
                proto: 'https'
            },
            httpSubdomain: {
                subdomain: 'grunt-ngrok-test' + tcpPort, // just for random
                expect: 'http://grunt-ngrok-test' + tcpPort + '.ngrok.com'
            },
            tcp: {
                name: 'tcp',
                proto: 'tcp'
            },
            tcpRemote: {
                name: 'tcpRemote',
                expect: 'tcp://ngrok.com:' + tcpPort,
                proto: 'tcp',
                remotePort: tcpPort
            }
{'fraction_non_alphanumeric': 0.12762022194821207, 'fraction_numerical': 0.013255240443896425, 'mean_word_length': 1.1532846715328466, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 2, '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': '560394', 'n_tokens_mistral': 956, 'n_tokens_neox': 887, 'n_words': 177}