<commit_before>#include <std.h>
#include <string.h>
#include <assert.h>
#include <iostream.h>
#include "ast.h"
#include "parser.h"
#include "classad_util.h" 

//
// Given a ClassAd and a ClassAdList, a pointer to the first match in the 
// list is returned. 
// If match found, 1 returned. Otherwise, 0 returned.
//
int FirstMatch(ClassAd *ad, ClassAdList *adList, ClassAd * &returnAd)
{
    ClassAd *temp;
    if(!ad || !adList)
    {
        returnAd = NULL;                     // no match.
        return 0;
    }
    adList->OpenList();
    for(temp = adList->NextClassAd(); temp; temp = adList->NextClassAd())<commit_msg>moved header file to condor_includes directory<commit_after>#include <std.h>
#include <string.h>
#include <assert.h>
#include <iostream.h>
#include "condor_ast.h"
#include "condor_parser.h"
#include "condor_classad_util.h" 

//
// Given a ClassAd and a ClassAdList, a pointer to the first match in the 
// list is returned. 
// If match found, 1 returned. Otherwise, 0 returned.
//
int FirstMatch(ClassAd *ad, ClassAdList *adList, ClassAd * &returnAd)
{
    ClassAd *temp;
    if(!ad || !adList)
    {
        returnAd = NULL;                     // no match.
        return 0;
    }
    adList->OpenList();
    for(temp = adList->NextClassAd(); temp; temp = adList->NextClassAd())
{'fraction_non_alphanumeric': 0.13914373088685014, 'fraction_numerical': 0.0045871559633027525, 'mean_word_length': 2.8958333333333335, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 17, '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': '908516', 'n_tokens_mistral': 453, 'n_tokens_neox': 442, 'n_words': 128}