<commit_before>var Vector = require('geometry/vector');
var Vertex = require('geometry/vertex');
var Triangle = require('geometry/triangle');
var QuadTree = require('quadtree.js');
var QuadTreeMesher = require('quadtreemesher');
var Rect = require('geometry/rect');
var GeomUtil = require('geometry/geomutil');
var FloatField = require('fields/floatfield');

module.exports = (function(){ 

'use strict';

var _A = 0;
var _B = 1;
var _C = 2;
var _AB = 3;
var _BC = 4;
var _CA = 5;
var _ABC = 6;

var VERT = 0;
var CUT = 1;
var TRIPLE = 2;

var stencilTable = [[_ABC, _A, _AB],
                    [_ABC, _AB, _B],
                    [_ABC, _B, _BC],
                    [_ABC, _BC, _C],
                    [_ABC, _C, _CA],
                    [_ABC, _CA, _A]];

var materialTable = [_A, _B, _B, _C, _C, _A];

var CleaverMesher = function() {
  this.alpha = 0.3;
};

CleaverMesher.prototype.setInputFields = function(inputFields) {
  this.fields = inputFields;
};<commit_msg>adding configuration param to cleavermesher<commit_after>var Vector = require('geometry/vector');
var Vertex = require('geometry/vertex');
var Triangle = require('geometry/triangle');
var QuadTree = require('quadtree.js');
var QuadTreeMesher = require('quadtreemesher');
var Rect = require('geometry/rect');
var GeomUtil = require('geometry/geomutil');
var FloatField = require('fields/floatfield');

module.exports = (function(){ 

'use strict';

var _A = 0;
var _B = 1;
var _C = 2;
var _AB = 3;
var _BC = 4;
var _CA = 5;
var _ABC = 6;

var VERT = 0;
var CUT = 1;
var TRIPLE = 2;

var stencilTable = [[_ABC, _A, _AB],
                    [_ABC, _AB, _B],
                    [_ABC, _B, _BC],
                    [_ABC, _BC, _C],
                    [_ABC, _C, _CA],
                    [_ABC, _CA, _A]];

var materialTable = [_A, _B, _B, _C, _C, _A];

var DefaultAlpha = 0.3;

var CleaverMesher = function(config) {
  this.alpha = config && config[alpha] ? config[alpha] : DefaultAlpha;
};

CleaverMesher.prototype.setInputFields = function(inputFields) {
  this.fields = inputFields;
};
{'fraction_non_alphanumeric': 0.1501937984496124, 'fraction_numerical': 0.011627906976744186, 'mean_word_length': 3.017509727626459, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6916987', 'n_tokens_mistral': 785, 'n_tokens_neox': 714, 'n_words': 200}