<commit_before>'''
add data to dataset

'''

import os
import re
import sys
import time
import fcntl
import commands
import threading
import xml.dom.minidom
import ErrorCode
import brokerage.broker_util
#from DDM import ddm
from Closer import Closer

from dq2.clientapi import DQ2

from config import panda_config
from pandalogger.PandaLogger import PandaLogger

# logger
_logger = PandaLogger().getLogger('Adder')


class Adder (threading.Thread):
    # constructor
    def __init__(self,taskBuffer,jobID,fileCatalog,jobStatus,xmlFile='',ignoreDDMError=True,joinCloser=False,
                 addOutput=False,pandaDDM=False,siteMapper=None):
        threading.Thread.__init__(self)
        self.job = None
        self.jobID = jobID<commit_msg>changed position of DQ2 import<commit_after>'''
add data to dataset

'''

import os
import re
import sys
import time
import fcntl
import commands
import threading
import xml.dom.minidom
import ErrorCode
from dq2.clientapi import DQ2

import brokerage.broker_util
from Closer import Closer

from config import panda_config
from pandalogger.PandaLogger import PandaLogger

# logger
_logger = PandaLogger().getLogger('Adder')


class Adder (threading.Thread):
    # constructor
    def __init__(self,taskBuffer,jobID,fileCatalog,jobStatus,xmlFile='',ignoreDDMError=True,joinCloser=False,
                 addOutput=False,pandaDDM=False,siteMapper=None):
        threading.Thread.__init__(self)
        self.job = None
        self.jobID = jobID
{'fraction_non_alphanumeric': 0.07738896366083446, 'fraction_numerical': 0.0033647375504710633, 'mean_word_length': 4.611320754716981, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '2249553', 'n_tokens_mistral': 463, 'n_tokens_neox': 459, 'n_words': 119}