<commit_before>#!/usr/bih/env python
from ..inotify import Inotify as _Inotify
from collections import deque as _deque
import asyncio as _asyncio


class Inotify_async:
    def __init__(self, flags=0, *, loop=None, maxsize=0):
        self._loop = loop or _asyncio.get_event_loop()
        self._maxsize = maxsize
        
        self._inotify = inotify = _Inotify()
        
        self._getters = _deque()
        self._events = _deque()
        
    def watch(self, path, mask):
        return self._inotify.watch(path, mask)

    def ignore(self, wd):
        inotify.ignore(wd)
         
    @_asyncio.coroutine
    def get_event(self):
        """Remove and return an item from the queue.

        If you yield from get(), wait until a item is available.
        """
        # if event then consume it
        # otherwise register for fd callback<commit_msg>Ignore did not access inotify object correctly<commit_after>#!/usr/bih/env python
from ..inotify import Inotify as _Inotify
from collections import deque as _deque
import asyncio as _asyncio


class Inotify_async:
    def __init__(self, flags=0, *, loop=None, maxsize=0):
        self._loop = loop or _asyncio.get_event_loop()
        self._maxsize = maxsize
        
        self._inotify = inotify = _Inotify()
        
        self._getters = _deque()
        self._events = _deque()
        
    def watch(self, path, mask):
        return self._inotify.watch(path, mask)

    def ignore(self, wd):
        self._inotify.ignore(wd)
         
    @_asyncio.coroutine
    def get_event(self):
        """Remove and return an item from the queue.

        If you yield from get(), wait until a item is available.
        """
        # if event then consume it
        # otherwise register for fd callback
{'fraction_non_alphanumeric': 0.08752117447769622, 'fraction_numerical': 0.002258610954263128, 'mean_word_length': 2.3059701492537314, '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': '7454279', 'n_tokens_mistral': 547, 'n_tokens_neox': 540, 'n_words': 167}