<commit_before>"use strict";

var express = require("express");
var bodyParser = require('body-parser');
var machinomy = require("./../index");

var settings = machinomy.configuration.receiver();
machinomy.web3.personal.unlockAccount(settings.account, settings.password, 1000);

var paywall = new machinomy.Paywall(settings.account, 'http://localhost:3000');

var app = express();
app.use(bodyParser.json());
app.use(paywall.middleware());

app.get("/test", paywall.guard(1000, function (req, res) {
    res.write("Have just received 1000 wei.\n");
    res.end("Hello, meat world!");
}));

app.listen(3000, function(_) {
    console.log("Waiting at http://localhost:3000/test");
});<commit_msg>Change resource name in examples/server.js<commit_after>"use strict";

var express = require("express");
var bodyParser = require('body-parser');
var machinomy = require("./../index");

var settings = machinomy.configuration.receiver();
machinomy.web3.personal.unlockAccount(settings.account, settings.password, 1000);

var paywall = new machinomy.Paywall(settings.account, 'http://localhost:3000');

var app = express();
app.use(bodyParser.json());
app.use(paywall.middleware());

app.get("/hello", paywall.guard(1000, function (req, res) {
    res.write("Have just received 1000 wei.\n");
    res.end("Hello, meat world!");
}));

app.listen(3000, function(_) {
    console.log("Waiting at http://localhost:3000/hello");
});
{'fraction_non_alphanumeric': 0.1846370683579986, 'fraction_numerical': 0.035236081747709654, 'mean_word_length': 5.543778801843318, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7085605', 'n_tokens_mistral': 481, 'n_tokens_neox': 440, 'n_words': 94}