<commit_before>/*
Module name: epo-ops
Description: Access some basic EPO Open Patent Services with node.js
Author: <NAME> (https://frankl.in);
Source & docs: https://github.com/fvdm/nodejs-epo-ops
Feedback: https://github.com/fvdm/nodejs-epo-ops/issues
License: Unlicense (public domain) - see UNLICENSE file

Service name: European Patent Office - Open Patent Services
Service docs: http://www.epo.org/searching/free/ops.html
*/

var http = require ('httpreq');
var app = {};

// Search worldwide
// constituents: 'abstract' (default), 'biblio', 'full-cycle', 'abstract,full-cycle', 'biblio,full-cycle';
app.search = function (query, constituents, cb) {
  if (!cb && typeof constituents === 'function') {
    var cb = constituents;<commit_msg>Cleaner intro comment<commit_after>/*
Module name:    epo-ops
Description:    Access some basic EPO Open Patent Services with node.js
Author:         <NAME> (https://frankl.in);
Source & docs:  https://github.com/fvdm/nodejs-epo-ops
Feedback:       https://github.com/fvdm/nodejs-epo-ops/issues
License:        Unlicense (public domain) - see UNLICENSE file

Service name: European Patent Office - Open Patent Services
Service docs: http://www.epo.org/searching/free/ops.html
*/

var http = require ('httpreq');
var app = {};

// Search worldwide
// constituents: 'abstract' (default), 'biblio', 'full-cycle', 'abstract,full-cycle', 'biblio,full-cycle';
app.search = function (query, constituents, cb) {
  if (!cb && typeof constituents === 'function') {
    var cb = constituents;
{'fraction_non_alphanumeric': 0.14941022280471822, 'fraction_numerical': 0.0, 'mean_word_length': 4.21160409556314, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 6, 'lorem ipsum': 0, 'www.': 2, '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': '2578696', 'n_tokens_mistral': 492, 'n_tokens_neox': 462, 'n_words': 137}