<commit_before>// @flow

const root = 'https://stolaf.api.frogpond.tech/v1'
export const API = pth => {
	if (process.env.NODE_ENV !== 'production') {
		if (!pth.startsWith('/')) {
			throw new Error('invalid path requested from the api!')
		}
	}
	return root + pth
}

export const GH_NEW_ISSUE_URL =
	'https://github.com/StoDevX/AAO-React-Native/issues/new'<commit_msg>support query strings to the api server<commit_after>// @flow

import qs from 'querystring'

const root = 'https://stolaf.api.frogpond.tech/v1'
export const API = (pth: string, query: ?Object=null) => {
	if (process.env.NODE_ENV !== 'production') {
		if (!pth.startsWith('/')) {
			throw new Error('invalid path requested from the api!')
		}
	}
	let url = root + pth 
	if (query) {
		url += `?${qs.stringify(query)}`
	}
	return url
}

export const GH_NEW_ISSUE_URL =
	'https://github.com/StoDevX/AAO-React-Native/issues/new'
{'fraction_non_alphanumeric': 0.16685330347144456, 'fraction_numerical': 0.0022396416573348264, 'mean_word_length': 3.9392265193370166, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 4, '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': '719750', 'n_tokens_mistral': 349, 'n_tokens_neox': 337, 'n_words': 77}