<commit_before># tsplib.js

(partially) parse TSPLIB files

http://www.iwr.uni-heidelberg.de/groups/comopt/software/TSPLIB95/DOC.PS

	var fs = require('fs')
	var TSPLIB = require('./tsplib');
	var s = fs.readFileSync('../TSPLIB95/kroA100.tsp').toString();
	var p = TSPLIB.parse(s);

Now `p` looks like
<commit_msg>link to TSPLIB<commit_after># tsplib.js

(partially) parse TSPLIB files

http://www.iwr.uni-heidelberg.de/groups/comopt/software/TSPLIB95/

File format infomation [here](http://www.iwr.uni-heidelberg.de/groups/comopt/software/TSPLIB95/DOC.PS).

	var fs = require('fs')
	var TSPLIB = require('./tsplib');
	var s = fs.readFileSync('../TSPLIB95/kroA100.tsp').toString();
	var p = TSPLIB.parse(s);

Now `p` looks like

{'fraction_non_alphanumeric': 0.17445054945054944, 'fraction_numerical': 0.02197802197802198, 'mean_word_length': 4.360294117647059, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 3, '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': '1475706', 'n_tokens_mistral': 315, 'n_tokens_neox': 295, 'n_words': 52}