<commit_before>/*
 * Requirements
 */
var fs = require('fs');
var async = require('async');

function trim(s) {
	return s.replace(/^\s+|\s+$/g, '');
}

var racun = {
	conf: {
		paths: [],
		fileExtension: 'wurst'
	},
			
	args: [],
			
	regexpr: {
		
	},
			
	/*
	 * example:
	 * docs['path/to/file.extension'] = [
	 *		'classes' => [
	 *			'name' => 'name',
	 *			'attributes' => [
	 *				'name' => 'name',
	 *				'description' => 'text above name'
	 *				'tags' => [
	 *					'@type' => 'unit'
	 *				]
	 *			],
	 *			'methods' => [same as attributes]
	 *		]
	 * ]
	 */
	docs: [],
	
	getPackage: function(package) {
		return this.docs[package];
	},
	
	getClassesFromPackage: function(package) {
		return this.docs[package]['classes'];
	},
			
	getFunctionsFromPackage: function(package) {
		return this.docs[package]['functions'];
	},
			
	getGlobalsFromPackage: function(package) {
		return this.docs[package]['globals'];
	},
	
	setPaths: function() {<commit_msg>added getPackages function<commit_after>/*
 * Requirements
 */
var fs = require('fs');
var async = require('async');

function trim(s) {
	return s.replace(/^\s+|\s+$/g, '');
}

var racun = {
	conf: {
		paths: [],
		fileExtension: 'wurst'
	},
			
	args: [],
			
	regexpr: {
		
	},
			
	/*
	 * example:
	 * docs['path/to/file.extension'] = [
	 *		'classes' => [
	 *			'name' => 'name',
	 *			'attributes' => [
	 *				'name' => 'name',
	 *				'description' => 'text above name'
	 *				'tags' => [
	 *					'@type' => 'unit'
	 *				]
	 *			],
	 *			'methods' => [same as attributes]
	 *		]
	 * ]
	 */
	docs: [],
	
	getPackages: function() {
		return this.docs;
	},
	
	getPackage: function(package) {
		return this.docs[package];
	},
	
	getClassesFromPackage: function(package) {
		return this.docs[package]['classes'];
	},
			
	getFunctionsFromPackage: function(package) {
		return this.docs[package]['functions'];
	},
			
	getGlobalsFromPackage: function(package) {
		return this.docs[package]['globals'];
	},
	
	setPaths: function() {
{'fraction_non_alphanumeric': 0.20641282565130262, 'fraction_numerical': 0.0, 'mean_word_length': 2.885214007782101, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 19, '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': '2414094', 'n_tokens_mistral': 855, 'n_tokens_neox': 733, 'n_words': 122}