<commit_before>#!/usr/bin/env julia

import Distributions: logcdf, Cauchy
import JSON

"""
	gen( x, x0, gamma, name )

Generate fixture data and write to file.

# Arguments

* `x`: input value
* `x0`: location parameter
* `gamma`: scale parameter
* `name::AbstractString`: output filename

# Examples

``` julia
julia> x = rand( 1000 ) * 100.0;
julia> x0 = rand( 1000 ) * 25.0;
julia> gamma = rand( 1000 ) * 20.0;
julia> gen( x, x0, gamma, "data.json" );
```
"""
function gen( x, x0, gamma, name )
	z = Array( Float64, length(x) );
	for i in eachindex(x)
		z[ i ] = logcdf( Cauchy( x0[i], gamma[i] ), x[i] );
	end

	# Store data to be written to file as a collection:
	data = Dict([
		("x", x),
		("x0", x0),<commit_msg>Example quotes<commit_after>#!/usr/bin/env julia

import Distributions: logcdf, Cauchy
import JSON

"""
	gen( x, x0, gamma, name )

Generate fixture data and write to file.

# Arguments

* `x`: input value
* `x0`: location parameter
* `gamma`: scale parameter
* `name::AbstractString`: output filename

# Examples

``` julia
julia> x = rand( 1000 ) * 100.0;
julia> x0 = rand( 1000 ) * 25.0;
julia> gamma = rand( 1000 ) * 20.0;
julia> gen( x, x0, gamma, \"data.json\" );
```
"""
function gen( x, x0, gamma, name )
	z = Array( Float64, length(x) );
	for i in eachindex(x)
		z[ i ] = logcdf( Cauchy( x0[i], gamma[i] ), x[i] );
	end

	# Store data to be written to file as a collection:
	data = Dict([
		("x", x),
		("x0", x0),
{'fraction_non_alphanumeric': 0.176022176022176, 'fraction_numerical': 0.04435204435204435, 'mean_word_length': 3.718954248366013, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '6081798', 'n_tokens_mistral': 646, 'n_tokens_neox': 565, 'n_words': 188}