<commit_before>neft:func @js
=============

	'use strict'

	utils = require 'utils'
	expect = require 'expect'
	Renderer = require 'renderer'

	if utils.isNode
		stylesParseFuncs = require './parse/funcs'

	# link modules to be possible required by the funcs
	links = ['db', 'db-addons', 'db-schema', 'dict', 'emitter', 'expect', 'list',
	         'log', 'renderer', 'networking', 'schema', 'signal', 'utils', 'document']
	for link in links
		require link

	module.exports = (File) ->

		{Input, Fragment} = File

ReadOnly *Object* globalObject
------------------------------

This object is used as a global namespace in the function bodies.

		FuncGlobalFuncs =

*Function* globalObject.require(*String* moduleName)
----------------------------------------------------

Use this function to require *Neft* modules like in a normal *JavaScript* file.

```
<neft:func neft:name="test"><commit_msg>`db-*` modules removed from the funcs 'require'<commit_after>neft:func @js
=============

	'use strict'

	utils = require 'utils'
	expect = require 'expect'
	Renderer = require 'renderer'

	if utils.isNode
		stylesParseFuncs = require './parse/funcs'

	# link modules to be possible required by the funcs
	links = ['db', 'dict', 'emitter', 'expect', 'list', 'log', 'renderer',
	         'networking', 'schema', 'signal', 'utils', 'document', 'assert']
	for link in links
		require link

	module.exports = (File) ->

		{Input, Fragment} = File

ReadOnly *Object* globalObject
------------------------------

This object is used as a global namespace in the function bodies.

		FuncGlobalFuncs =

*Function* globalObject.require(*String* moduleName)
----------------------------------------------------

Use this function to require *Neft* modules like in a normal *JavaScript* file.

```
<neft:func neft:name="test">
{'fraction_non_alphanumeric': 0.22240618101545254, 'fraction_numerical': 0.0, 'mean_word_length': 2.8656716417910446, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '4471088', 'n_tokens_mistral': 537, 'n_tokens_neox': 508, 'n_words': 178}