<commit_before>package org.flymine.biojava1.app;

/*
 * Copyright (C) 2002-2004 FlyMine This code may be freely distributed and modified under the terms
 * of the GNU Lesser General Public Licence. This should be distributed with the code. See the
 * LICENSE file for more information or http://www.gnu.org/copyleft/lesser.html.
 */

import org.flymine.biojava1.utils.TextProgressBar;
import org.intermine.metadata.Model;
import org.intermine.objectstore.ObjectStore;
import org.intermine.objectstore.ObjectStoreFactory;
import org.intermine.objectstore.intermine.ObjectStoreInterMineImpl;
import org.intermine.objectstore.query.Query;
import org.intermine.objectstore.query.iql.IqlQuery;

/**
 * Internal use only. Precompute tables.
 * 
 * @author <NAME>
 */
public class PrecomputeTable {

  public static void main(String[] args) throws Exception {
    ObjectStore os = ObjectStoreFactory.getObjectStore();
    Model model = Model.getInstanceByName("genomic");
    String queryString = "SELECT a1_.start AS a2_, a1_.end AS a3_, a1_.strand AS a4_, a6_ "
        + "FROM org.flymine.model.genomic.Location AS a1_, "
        + "org.flymine.model.genomic.Chromosome AS a5_, "
        + "org.flymine.model.genomic.BioEntity AS a6_ "
        + "WHERE (a1_.object CONTAINS a5_ AND a1_.subject CONTAINS a6_)";    
    System.err.println("query: " + queryString);
    Query q = new IqlQuery(queryString, model.getPackageName()).toQuery();
    System.err.print("starting precompute(): " + q);
    TextProgressBar p = new TextProgressBar();
    p.start();
    ((ObjectStoreInterMineImpl) os).precompute(q);<commit_msg>ObjectStoreInterMineImpl.precompute() now needs a category argument<commit_after>package org.flymine.biojava1.app;

/*
 * Copyright (C) 2002-2004 FlyMine This code may be freely distributed and modified under the terms
 * of the GNU Lesser General Public Licence. This should be distributed with the code. See the
 * LICENSE file for more information or http://www.gnu.org/copyleft/lesser.html.
 */

import org.flymine.biojava1.utils.TextProgressBar;
import org.intermine.metadata.Model;
import org.intermine.objectstore.ObjectStore;
import org.intermine.objectstore.ObjectStoreFactory;
import org.intermine.objectstore.intermine.ObjectStoreInterMineImpl;
import org.intermine.objectstore.query.Query;
import org.intermine.objectstore.query.iql.IqlQuery;

/**
 * Internal use only. Precompute tables.
 *
 * @author <NAME>
 */
public class PrecomputeTable {

  public static void main(String[] args) throws Exception {
    ObjectStore os = ObjectStoreFactory.getObjectStore();
    Model model = Model.getInstanceByName("genomic");
    String queryString = "SELECT a1_.start AS a2_, a1_.end AS a3_, a1_.strand AS a4_, a6_ "
        + "FROM org.flymine.model.genomic.Location AS a1_, "
        + "org.flymine.model.genomic.Chromosome AS a5_, "
        + "org.flymine.model.genomic.BioEntity AS a6_ "
        + "WHERE (a1_.object CONTAINS a5_ AND a1_.subject CONTAINS a6_)";
    System.err.println("query: " + queryString);
    Query q = new IqlQuery(queryString, model.getPackageName()).toQuery();
    System.err.print("starting precompute(): " + q);
    TextProgressBar p = new TextProgressBar();
    p.start();
    ((ObjectStoreInterMineImpl) os).precompute(q, "temp");
{'fraction_non_alphanumeric': 0.11100945410186032, 'fraction_numerical': 0.01463860933211345, 'mean_word_length': 4.21462639109698, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '1120173', 'n_tokens_mistral': 1028, 'n_tokens_neox': 1000, 'n_words': 255}