<commit_before>/**
 * New node file
 */
var request = require('supertest'), 
    express = require('express'),
    mashape = require('../');


describe('ipFilter()', function() {
    it('allow valid ip', function(done) {
        var app = express();
        
        app.use(mashape.ipFilter({
            iplist: ['127.0.0.1'],
            strict: false,
            log: false
        }));
        
        app.get('/', function(req, res){
            res.send(200);
        });
        
        request(app)
            .get('/')
            .expect(200, done);
    });<commit_msg>added file-header<commit_after>/**
 * mashape-tools
 * https://github.com/magdev/node-mashape-tools
 *
 * Copyright (c) 2014 <NAME>
 * Licensed under the MIT license.
 */

'use strict';

var request = require('supertest'), 
    express = require('express'),
    mashape = require('../');


describe('ipFilter()', function() {
    it('allow valid ip', function(done) {
        var app = express();
        
        app.use(mashape.ipFilter({
            iplist: ['127.0.0.1'],
            strict: false,
            log: false
        }));
        
        app.get('/', function(req, res){
            res.send(200);
        });
        
        request(app)
            .get('/')
            .expect(200, done);
    });
{'fraction_non_alphanumeric': 0.17651573292402148, 'fraction_numerical': 0.021488871834228703, 'mean_word_length': 1.6612244897959183, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '2614744', 'n_tokens_mistral': 413, 'n_tokens_neox': 389, 'n_words': 81}