<commit_before>// @(#)root/proof:$Name:  $:$Id: TProofQuery.cxx,v 1.1 2005/08/30 10:25:29 rdm Exp $
// Author: <NAME> Aug 2005

/*************************************************************************
 * Copyright (C) 1995-2005, <NAME> and <NAME>.               *
 * All rights reserved.                                                  *
 *                                                                       *
 * For the licensing terms see $ROOTSYS/LICENSE.                         *
 * For the list of contributors see $ROOTSYS/README/CREDITS.             *
 *************************************************************************/

//////////////////////////////////////////////////////////////////////////
//                                                                      //
// TProofQuery                                                          //
//                                                                      //
// A class describing PROOF queries.                                    //
//                                                                      //
//////////////////////////////////////////////////////////////////////////

#ifdef WIN32
   #include <io.h>
   typedef long off_t;
#endif

#include <errno.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>

#if (defined(__FreeBSD__) && (__FreeBSD__ < 4)) || \
    (defined(__APPLE__) && (!defined(MAC_OS_X_VERSION_10_3) || \
     (MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_3)))
#include <sys/file.h>
#define lockf(fd, op, sz)   flock((fd), (op))
#ifndef F_LOCK
#define F_LOCK             (LOCK_EX | LOCK_NB)
#endif
#ifndef F_ULOCK
#define F_ULOCK             LOCK_UN
#endif
#endif

#include "TError.h"
#include "TProofQuery.h"
#include "TSystem.h"
#include "TDSet.h"


ClassImp(TProofQuery)

//______________________________________________________________________________
TProofQuery::TProofQuery(Int_t seqnum, Int_t startlog,
                         Long64_t entries, Long64_t first, TDSet *dset,
                         const char *selec, const char *par,<commit_msg>fix MacOS and OpenBSD compilation problem related to lockf.<commit_after>// @(#)root/proof:$Name:  $:$Id: TProofQuery.cxx,v 1.2 2005/08/30 10:37:56 rdm Exp $
// Author: <NAME> 2005

/*************************************************************************
 * Copyright (C) 1995-2005, <NAME> and <NAME>.               *
 * All rights reserved.                                                  *
 *                                                                       *
 * For the licensing terms see $ROOTSYS/LICENSE.                         *
 * For the list of contributors see $ROOTSYS/README/CREDITS.             *
 *************************************************************************/

//////////////////////////////////////////////////////////////////////////
//                                                                      //
// TProofQuery                                                          //
//                                                                      //
// A class describing PROOF queries.                                    //
//                                                                      //
//////////////////////////////////////////////////////////////////////////

#ifdef WIN32
   #include <io.h>
   typedef long off_t;
#else
   #include <unistd.h>
#endif

#include <errno.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>

#if (defined(__FreeBSD__) && (__FreeBSD__ < 4)) || defined(__OpenBSD__) || \
    (defined(__APPLE__) && (!defined(MAC_OS_X_VERSION_10_3) || \
     (MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_3)))
#include <sys/file.h>
#define lockf(fd, op, sz)   flock((fd), (op))
#ifndef F_LOCK
#define F_LOCK             (LOCK_EX | LOCK_NB)
#endif
#ifndef F_ULOCK
#define F_ULOCK             LOCK_UN
#endif
#endif

#include "TError.h"
#include "TProofQuery.h"
#include "TSystem.h"
#include "TDSet.h"


ClassImp(TProofQuery)

//______________________________________________________________________________
TProofQuery::TProofQuery(Int_t seqnum, Int_t startlog,
                         Long64_t entries, Long64_t first, TDSet *dset,
                         const char *selec, const char *par,
{'fraction_non_alphanumeric': 0.2311111111111111, 'fraction_numerical': 0.0191812865497076, 'mean_word_length': 1.2841880341880343, 'pattern_counts': {'":': 0, '<': 26, '<?xml version=': 0, '>': 22, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 34, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6405837', 'n_tokens_mistral': 1115, 'n_tokens_neox': 1012, 'n_words': 234}