<commit_before># -*- coding: utf-8 -
#
# This file is part of gunicorn released under the MIT license. 
# See the NOTICE for more information.

from __future__ import with_statement

import os

import gevent
from gevent import monkey
monkey.noisy = False
from gevent import greenlet
from gevent.pool import Pool

from gunicorn.workers.async import AsyncWorker

class GEventWorker(AsyncWorker):
        
    @classmethod  
    def setup(cls):
        from gevent import monkey
        monkey.patch_all()
        
    def keepalive_request(self, client, addr):
        req = None
        with gevent.Timeout(self.cfg.keepalive, False):
            req = super(GEventWorker, self).keepalive_request(client, addr)
        return req
        <commit_msg>dns monkey patch is broken currently in gevent. Waiting upstream fix it, don't patch it.<commit_after># -*- coding: utf-8 -
#
# This file is part of gunicorn released under the MIT license. 
# See the NOTICE for more information.

from __future__ import with_statement

import os

import gevent
from gevent import monkey
monkey.noisy = False
from gevent import greenlet
from gevent.pool import Pool

from gunicorn.workers.async import AsyncWorker

class GEventWorker(AsyncWorker):
        
    @classmethod  
    def setup(cls):
        from gevent import monkey
        monkey.patch_all(dns=False)
        
    def keepalive_request(self, client, addr):
        req = None
        with gevent.Timeout(self.cfg.keepalive, False):
            req = super(GEventWorker, self).keepalive_request(client, addr)
        return req
        
{'fraction_non_alphanumeric': 0.06763590391908976, 'fraction_numerical': 0.0012642225031605564, 'mean_word_length': 2.947630922693267, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '92506', 'n_tokens_mistral': 461, 'n_tokens_neox': 449, 'n_words': 156}