<commit_before>/*global require: false, module: false */
'use strict';
var ga4gh = require('ga4gh-rxjs');
var clinvarMeta = require('./metadataStub');
var Rx = require('rx');
require('rx.experimental');
var _ = require('./underscore_ext');

// {url, dataset, chrom, start, end, fields}
function variants({url, dataset, chrom, start, end}) {
	if (chrom.slice(0,3)==="chr"){
		chrom=chrom.slice(3);
	}
	return ga4gh.all.variants(url, {
		variantSetIds: [dataset],
		start: start,
		end: end,
		referenceName: chrom
	});
}

//<commit_msg>Use larger page size for ga4gh.<commit_after>/*global require: false, module: false */
'use strict';
var ga4gh = require('ga4gh-rxjs');
var clinvarMeta = require('./metadataStub');
var Rx = require('rx');
require('rx.experimental');
var _ = require('./underscore_ext');

// {url, dataset, chrom, start, end, fields}
function variants({url, dataset, chrom, start, end}) {
	if (chrom.slice(0,3)==="chr"){
		chrom=chrom.slice(3);
	}
	return ga4gh.all.variants(url, {
		variantSetIds: [dataset],
		pageSize: 1000,
		start: start,
		end: end,
		referenceName: chrom
	});
}

//
{'fraction_non_alphanumeric': 0.19077757685352623, 'fraction_numerical': 0.015370705244122965, 'mean_word_length': 4.919786096256685, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2174817', 'n_tokens_mistral': 416, 'n_tokens_neox': 386, 'n_words': 95}