<commit_before>package au.com.mountainpass.ryvr.jdbc;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.support.rowset.SqlRowSet;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonRawValue;

import au.com.mountainpass.ryvr.model.Link;
import au.com.mountainpass.ryvr.model.Ryvr;

public class JdbcRyvr extends Ryvr {

    static final long PAGE_SIZE = 10;
    private JdbcTemplate jt;
    private SqlRowSet rowSet;
    private String[] columnNames;
    private String countQuery;<commit_msg>initial page size optimisation<commit_after>package au.com.mountainpass.ryvr.jdbc;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.support.rowset.SqlRowSet;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonRawValue;

import au.com.mountainpass.ryvr.model.Link;
import au.com.mountainpass.ryvr.model.Ryvr;

public class JdbcRyvr extends Ryvr {

    static final long PAGE_SIZE = 10; // as of 2017/05/02, optimal page size is
                                      // 2048;
    private JdbcTemplate jt;
    private SqlRowSet rowSet;
    private String[] columnNames;
    private String countQuery;
{'fraction_non_alphanumeric': 0.09114249037227215, 'fraction_numerical': 0.010269576379974325, 'mean_word_length': 4.375862068965517, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2557625', 'n_tokens_mistral': 509, 'n_tokens_neox': 469, 'n_words': 102}