<commit_before>/*
 * Copyright (c) 2010 Mysema Ltd.
 * All rights reserved.
 * 
 */
package com.mysema.query.search;

import org.hibernate.Session;

import com.mysema.query.QueryModifiers;
import com.mysema.query.SimpleProjectable;
import com.mysema.query.SimpleQuery;
import com.mysema.query.support.QueryMixin;
import com.mysema.query.support.SimpleQueryAdapter;
import com.mysema.query.types.OrderSpecifier;
import com.mysema.query.types.expr.EBoolean;
import com.mysema.query.types.path.Path;

/**
 * @author tiwe
 *
 * @param <T>
 */
public abstract class LuceneQuery<T> implements SimpleQuery<LuceneQuery<T>>, SimpleProjectable<T>{
    
    private final Path<?> entityPath;
    
    private final QueryMixin<LuceneQuery<T>> queryMixin;
    
    private final Session session;
    
    public LuceneQuery(Session session, Path<?> entityPath) {
        this.session = session;
        this.entityPath = entityPath;
        this.queryMixin = new QueryMixin<LuceneQuery<T>>(this);
    }

    @Override
    public LuceneQuery<T> limit(long limit) {
        return queryMixin.limit(limit);
    }

    @Override
    public LuceneQuery<T> offset(long offset) {
        return queryMixin.offset(offset);
    }

    @Override
    public LuceneQuery<T> orderBy(OrderSpecifier<?>... o) {
        return queryMixin.orderBy(o);
    }

    @Override
    public LuceneQuery<T> restrict(QueryModifiers modifiers) {
        return queryMixin.restrict(modifiers);
    }
    
    @Override
    public LuceneQuery<T> where(EBoolean... e) {
        return queryMixin.where(e);
    }

    // TODO : implementations of Projectable methods
    
}
<commit_msg>organized imports<commit_after>/*
 * Copyright (c) 2010 Mysema Ltd.
 * All rights reserved.
 * 
 */
package com.mysema.query.search;

import org.hibernate.Session;

import com.mysema.query.QueryModifiers;
import com.mysema.query.SimpleProjectable;
import com.mysema.query.SimpleQuery;
import com.mysema.query.support.QueryMixin;
import com.mysema.query.types.OrderSpecifier;
import com.mysema.query.types.expr.EBoolean;
import com.mysema.query.types.path.Path;

/**
 * @author tiwe
 *
 * @param <T>
 */
public abstract class LuceneQuery<T> implements SimpleQuery<LuceneQuery<T>>, SimpleProjectable<T>{
    
    private final Path<?> entityPath;
    
    private final QueryMixin<LuceneQuery<T>> queryMixin;
    
    private final Session session;
    
    public LuceneQuery(Session session, Path<?> entityPath) {
        this.session = session;
        this.entityPath = entityPath;
        this.queryMixin = new QueryMixin<LuceneQuery<T>>(this);
    }

    @Override
    public LuceneQuery<T> limit(long limit) {
        return queryMixin.limit(limit);
    }

    @Override
    public LuceneQuery<T> offset(long offset) {
        return queryMixin.offset(offset);
    }

    @Override
    public LuceneQuery<T> orderBy(OrderSpecifier<?>... o) {
        return queryMixin.orderBy(o);
    }

    @Override
    public LuceneQuery<T> restrict(QueryModifiers modifiers) {
        return queryMixin.restrict(modifiers);
    }
    
    @Override
    public LuceneQuery<T> where(EBoolean... e) {
        return queryMixin.where(e);
    }

    // TODO : implementations of Projectable methods
    
}

{'fraction_non_alphanumeric': 0.10734463276836158, 'fraction_numerical': 0.0023788284269997025, 'mean_word_length': 2.767077267637178, 'pattern_counts': {'":': 0, '<': 37, '<?xml version=': 0, '>': 37, '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': '6990772', 'n_tokens_mistral': 1097, 'n_tokens_neox': 1049, 'n_words': 207}