repo stringlengths 5 106 | file_url stringlengths 78 301 | file_path stringlengths 4 211 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 14:56:49 2026-01-05 02:23:25 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/@hapi/hapi/lib/cors.js | aws/aiHintGeneration/node_modules/@hapi/hapi/lib/cors.js | 'use strict';
const Boom = require('@hapi/boom');
const Hoek = require('@hapi/hoek');
let Route = null; // Delayed load due to circular dependency
const internals = {};
exports.route = function (options) {
if (!options) {
return false;
}
const settings = Hoek.clone(... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/@hapi/hapi/lib/handler.js | aws/aiHintGeneration/node_modules/@hapi/hapi/lib/handler.js | 'use strict';
const Hoek = require('@hapi/hoek');
const internals = {};
exports.execute = async function (request) {
// Prerequisites
if (request._route._prerequisites) {
for (const set of request._route._prerequisites) { // Serial execution of each set
const pres = [];
... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/@hapi/hapi/lib/methods.js | aws/aiHintGeneration/node_modules/@hapi/hapi/lib/methods.js | 'use strict';
const Boom = require('@hapi/boom');
const Hoek = require('@hapi/hoek');
const Config = require('./config');
const internals = {
methodNameRx: /^[_$a-zA-Z][$\w]*(?:\.[_$a-zA-Z][$\w]*)*$/
};
exports = module.exports = internals.Methods = class {
methods = {};
#core = null;
construct... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/@hapi/hapi/lib/transmit.js | aws/aiHintGeneration/node_modules/@hapi/hapi/lib/transmit.js | 'use strict';
const Http = require('http');
const Ammo = require('@hapi/ammo');
const Boom = require('@hapi/boom');
const Bounce = require('@hapi/bounce');
const Hoek = require('@hapi/hoek');
const Teamwork = require('@hapi/teamwork');
const Config = require('./config');
const internals = {};
exports.send = asyn... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/@hapi/hapi/lib/route.js | aws/aiHintGeneration/node_modules/@hapi/hapi/lib/route.js | 'use strict';
const Assert = require('assert');
const Bounce = require('@hapi/bounce');
const Catbox = require('@hapi/catbox');
const Hoek = require('@hapi/hoek');
const Subtext = require('@hapi/subtext');
const Validate = require('@hapi/validate');
const Auth = require('./auth');
const Config = require('./config');... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/@hapi/hapi/lib/compression.js | aws/aiHintGeneration/node_modules/@hapi/hapi/lib/compression.js | 'use strict';
const Zlib = require('zlib');
const Accept = require('@hapi/accept');
const Bounce = require('@hapi/bounce');
const Hoek = require('@hapi/hoek');
const internals = {
common: ['gzip, deflate', 'deflate, gzip', 'gzip', 'deflate', 'gzip, deflate, br']
};
exports = module.exports = internals.Compres... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/@hapi/hapi/lib/index.js | aws/aiHintGeneration/node_modules/@hapi/hapi/lib/index.js | 'use strict';
const Server = require('./server');
const internals = {};
exports.Server = Server;
exports.server = Server;
| javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/@hapi/hapi/lib/validation.js | aws/aiHintGeneration/node_modules/@hapi/hapi/lib/validation.js | 'use strict';
const Boom = require('@hapi/boom');
const Hoek = require('@hapi/hoek');
const Validate = require('@hapi/validate');
const internals = {};
exports.validator = function (validator) {
Hoek.assert(validator, 'Missing validator');
Hoek.assert(typeof validator.compile === 'function', 'Invalid vali... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/@hapi/hapi/lib/auth.js | aws/aiHintGeneration/node_modules/@hapi/hapi/lib/auth.js | 'use strict';
const Boom = require('@hapi/boom');
const Bounce = require('@hapi/bounce');
const Hoek = require('@hapi/hoek');
const Config = require('./config');
const Request = require('./request');
const internals = {
missing: Symbol('missing')
};
exports = module.exports = internals.Auth = class {
#co... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/@hapi/hapi/lib/config.js | aws/aiHintGeneration/node_modules/@hapi/hapi/lib/config.js | 'use strict';
const Os = require('os');
const Somever = require('@hapi/somever');
const Validate = require('@hapi/validate');
const internals = {};
exports.symbol = Symbol('hapi-response');
exports.apply = function (type, options, ...message) {
const result = internals[type].validate(options);
if (res... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/@hapi/hapi/lib/streams.js | aws/aiHintGeneration/node_modules/@hapi/hapi/lib/streams.js | 'use strict';
const Stream = require('stream');
const Boom = require('@hapi/boom');
const Teamwork = require('@hapi/teamwork');
const internals = {
team: Symbol('team')
};
exports.isStream = function (stream) {
const isReadableStream = stream instanceof Stream.Readable;
if (!isReadableStream &&
... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/@hapi/hapi/lib/request.js | aws/aiHintGeneration/node_modules/@hapi/hapi/lib/request.js | 'use strict';
const Querystring = require('querystring');
const Url = require('url');
const Boom = require('@hapi/boom');
const Bounce = require('@hapi/bounce');
const Hoek = require('@hapi/hoek');
const Podium = require('@hapi/podium');
const Cors = require('./cors');
const Toolkit = require('./toolkit');
const Tra... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/@hapi/hapi/lib/toolkit.js | aws/aiHintGeneration/node_modules/@hapi/hapi/lib/toolkit.js | 'use strict';
const Boom = require('@hapi/boom');
const Bounce = require('@hapi/bounce');
const Hoek = require('@hapi/hoek');
const internals = {};
exports.reserved = [
'abandon',
'authenticated',
'close',
'context',
'continue',
'entity',
'redirect',
'realm',
'request',
'res... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/@hapi/hapi/lib/headers.js | aws/aiHintGeneration/node_modules/@hapi/hapi/lib/headers.js | 'use strict';
const Stream = require('stream');
const Boom = require('@hapi/boom');
const internals = {};
exports.cache = function (response) {
const request = response.request;
if (response.headers['cache-control']) {
return;
}
const settings = request.route.settings.cache;
const p... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/@hapi/hapi/lib/security.js | aws/aiHintGeneration/node_modules/@hapi/hapi/lib/security.js | 'use strict';
const internals = {};
exports.route = function (settings) {
if (!settings) {
return null;
}
const security = settings;
if (security.hsts) {
if (security.hsts === true) {
security._hsts = 'max-age=15768000';
}
else if (typeof security.hsts ==... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/@hapi/hapi/lib/server.js | aws/aiHintGeneration/node_modules/@hapi/hapi/lib/server.js | 'use strict';
const Hoek = require('@hapi/hoek');
const Shot = require('@hapi/shot');
const Teamwork = require('@hapi/teamwork');
const Config = require('./config');
const Core = require('./core');
const Cors = require('./cors');
const Ext = require('./ext');
const Package = require('../package.json');
const Route = ... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/@hapi/hapi/lib/ext.js | aws/aiHintGeneration/node_modules/@hapi/hapi/lib/ext.js | 'use strict';
const Hoek = require('@hapi/hoek');
const Topo = require('@hapi/topo');
const internals = {};
exports = module.exports = internals.Ext = class {
type = null;
nodes = null;
#core = null;
#routes = [];
#topo = new Topo.Sorter();
constructor(type, core) {
this.#core =... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/@hapi/hapi/lib/response.js | aws/aiHintGeneration/node_modules/@hapi/hapi/lib/response.js | 'use strict';
const Stream = require('stream');
const Boom = require('@hapi/boom');
const Bounce = require('@hapi/bounce');
const Hoek = require('@hapi/hoek');
const Podium = require('@hapi/podium');
const Streams = require('./streams');
const internals = {
events: Podium.validate(['finish', { name: 'peek', sp... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/@hapi/heavy/lib/index.js | aws/aiHintGeneration/node_modules/@hapi/heavy/lib/index.js | 'use strict';
const PerfHooks = require('perf_hooks');
const Boom = require('@hapi/boom');
const Hoek = require('@hapi/hoek');
const Validate = require('@hapi/validate');
const internals = {};
internals.schema = Validate.object({
sampleInterval: Validate.number().min(0),
maxHeapUsedBytes: Validate.number()... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/@hapi/bounce/lib/index.js | aws/aiHintGeneration/node_modules/@hapi/bounce/lib/index.js | 'use strict';
const Assert = require('assert');
const Boom = require('@hapi/boom');
const Hoek = require('@hapi/hoek');
const internals = {
system: [
// JavaScript
EvalError,
RangeError,
ReferenceError,
SyntaxError,
TypeError,
URIError,
// Node
... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/@hapi/catbox-memory/lib/index.js | aws/aiHintGeneration/node_modules/@hapi/catbox-memory/lib/index.js | 'use strict';
const Boom = require('@hapi/boom');
const Hoek = require('@hapi/hoek');
const internals = {
maxTimer: 2147483647, // 2 ^ 31 - 1
entrySize: 144 // Approximate cache entry size without value: 144 bytes
};
internals.defaults = {
maxByteSize: 100 * 1024 * 1024, // 100MB
... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/@hapi/nigel/lib/index.js | aws/aiHintGeneration/node_modules/@hapi/nigel/lib/index.js | 'use strict';
const Stream = require('stream');
const Hoek = require('@hapi/hoek');
const { Vise } = require('@hapi/vise');
const internals = {};
exports.compile = function (needle) {
Hoek.assert(needle?.length, 'Missing needle');
Hoek.assert(Buffer.isBuffer(needle), 'Needle must be a buffer');
cons... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/@hapi/shot/lib/symbols.js | aws/aiHintGeneration/node_modules/@hapi/shot/lib/symbols.js | 'use strict';
const internals = {};
exports.injection = Symbol('injection');
| javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/@hapi/shot/lib/index.js | aws/aiHintGeneration/node_modules/@hapi/shot/lib/index.js | 'use strict';
const Hoek = require('@hapi/hoek');
const Validate = require('@hapi/validate');
const Request = require('./request');
const Response = require('./response');
const Symbols = require('./symbols');
const internals = {};
internals.options = Validate.object().keys({
url: Validate.alternatives([
... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/@hapi/shot/lib/request.js | aws/aiHintGeneration/node_modules/@hapi/shot/lib/request.js | 'use strict';
const Events = require('events');
const Stream = require('stream');
const Url = require('url');
const Symbols = require('./symbols');
const internals = {};
exports = module.exports = internals.Request = class extends Stream.Readable {
constructor(options) {
super({
emitClos... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/@hapi/shot/lib/response.js | aws/aiHintGeneration/node_modules/@hapi/shot/lib/response.js | 'use strict';
const Http = require('http');
const Stream = require('stream');
const Symbols = require('./symbols');
const internals = {};
exports = module.exports = internals.Response = class extends Http.ServerResponse {
constructor(req, onEnd) {
super({ method: req.method, httpVersionMajor: 1, htt... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/@hapi/cryptiles/lib/index.js | aws/aiHintGeneration/node_modules/@hapi/cryptiles/lib/index.js | 'use strict';
const Crypto = require('crypto');
const Boom = require('@hapi/boom');
const internals = {};
// Generate a cryptographically strong pseudo-random data
exports.randomString = function (size) {
const buffer = exports.randomBits((size + 1) * 6);
const string = buffer.toString('base64').replace... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/@hapi/topo/lib/index.js | aws/aiHintGeneration/node_modules/@hapi/topo/lib/index.js | 'use strict';
const { assert } = require('@hapi/hoek');
const internals = {};
exports.Sorter = class {
constructor() {
this._items = [];
this.nodes = [];
}
add(nodes, options) {
options = options ?? {};
// Validate rules
const before = [].concat(options.bef... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/@hapi/iron/lib/index.js | aws/aiHintGeneration/node_modules/@hapi/iron/lib/index.js | 'use strict';
const Crypto = require('crypto');
const B64 = require('@hapi/b64');
const Boom = require('@hapi/boom');
const Bourne = require('@hapi/bourne');
const Cryptiles = require('@hapi/cryptiles');
const Hoek = require('@hapi/hoek');
const internals = {};
exports.defaults = {
encryption: {
saltB... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/@hapi/hoek/lib/isPromise.js | aws/aiHintGeneration/node_modules/@hapi/hoek/lib/isPromise.js | 'use strict';
const internals = {};
module.exports = function (promise) {
return typeof promise?.then === 'function';
};
| javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/@hapi/hoek/lib/contain.js | aws/aiHintGeneration/node_modules/@hapi/hoek/lib/contain.js | 'use strict';
const Assert = require('./assert');
const DeepEqual = require('./deepEqual');
const EscapeRegex = require('./escapeRegex');
const Utils = require('./utils');
const internals = {};
module.exports = function (ref, values, options = {}) { // options: { deep, once, only, part, symbols }
/*
... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/@hapi/hoek/lib/applyToDefaults.js | aws/aiHintGeneration/node_modules/@hapi/hoek/lib/applyToDefaults.js | 'use strict';
const Assert = require('./assert');
const Clone = require('./clone');
const Merge = require('./merge');
const Reach = require('./reach');
const internals = {};
module.exports = function (defaults, source, options = {}) {
Assert(defaults && typeof defaults === 'object', 'Invalid defaults value: m... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/@hapi/hoek/lib/once.js | aws/aiHintGeneration/node_modules/@hapi/hoek/lib/once.js | 'use strict';
const internals = {
wrapped: Symbol('wrapped')
};
module.exports = function (method) {
if (method[internals.wrapped]) {
return method;
}
let once = false;
const wrappedFn = function (...args) {
if (!once) {
once = true;
method(...args);
... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/@hapi/hoek/lib/types.js | aws/aiHintGeneration/node_modules/@hapi/hoek/lib/types.js | 'use strict';
const internals = {};
exports = module.exports = {
array: Array.prototype,
buffer: Buffer && Buffer.prototype, // $lab:coverage:ignore$
date: Date.prototype,
error: Error.prototype,
generic: Object.prototype,
map: Map.prototype,
promise: Promise.prototype,
re... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/@hapi/hoek/lib/merge.js | aws/aiHintGeneration/node_modules/@hapi/hoek/lib/merge.js | 'use strict';
const Assert = require('./assert');
const Clone = require('./clone');
const Utils = require('./utils');
const internals = {};
module.exports = internals.merge = function (target, source, options) {
Assert(target && typeof target === 'object', 'Invalid target value: must be an object');
Asser... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/@hapi/hoek/lib/ignore.js | aws/aiHintGeneration/node_modules/@hapi/hoek/lib/ignore.js | 'use strict';
const internals = {};
module.exports = function () { };
| javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/@hapi/hoek/lib/index.js | aws/aiHintGeneration/node_modules/@hapi/hoek/lib/index.js | 'use strict';
exports.applyToDefaults = require('./applyToDefaults');
exports.assert = require('./assert');
exports.AssertError = require('./assertError');
exports.Bench = require('./bench');
exports.block = require('./block');
exports.clone = require('./clone');
exports.contain = require('./contain');
exports.... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/@hapi/hoek/lib/escapeJson.js | aws/aiHintGeneration/node_modules/@hapi/hoek/lib/escapeJson.js | 'use strict';
const internals = {};
module.exports = function (input) {
if (!input) {
return '';
}
return input.replace(/[<>&\u2028\u2029]/g, internals.escape);
};
internals.escape = function (char) {
return internals.replacements.get(char);
};
internals.replacements = new Map([
['... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/@hapi/hoek/lib/clone.js | aws/aiHintGeneration/node_modules/@hapi/hoek/lib/clone.js | 'use strict';
const Reach = require('./reach');
const Types = require('./types');
const Utils = require('./utils');
const internals = {
needsProtoHack: new Set([Types.set, Types.map, Types.weakSet, Types.weakMap]),
structuredCloneExists: typeof structuredClone === 'function'
};
module.exports = internals.c... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/@hapi/hoek/lib/assert.js | aws/aiHintGeneration/node_modules/@hapi/hoek/lib/assert.js | 'use strict';
const AssertError = require('./assertError');
const Stringify = require('./stringify');
const internals = {};
const assert = module.exports = function (condition, ...args) {
if (condition) {
return;
}
if (args.length === 1 &&
args[0] instanceof Error) {
throw ar... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/@hapi/hoek/lib/reach.js | aws/aiHintGeneration/node_modules/@hapi/hoek/lib/reach.js | 'use strict';
const Assert = require('./assert');
const internals = {};
module.exports = function (obj, chain, options) {
if (chain === false ||
chain === null ||
chain === undefined) {
return obj;
}
options = options || {};
if (typeof options === 'string') {
opti... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/@hapi/hoek/lib/escapeRegex.js | aws/aiHintGeneration/node_modules/@hapi/hoek/lib/escapeRegex.js | 'use strict';
const internals = {};
module.exports = function (string) {
// Escape ^$.*+-?=!:|\/()[]{},
return string.replace(/[\^\$\.\*\+\-\?\=\!\:\|\\\/\(\)\[\]\{\}\,]/g, '\\$&');
};
| javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/@hapi/hoek/lib/escapeHtml.js | aws/aiHintGeneration/node_modules/@hapi/hoek/lib/escapeHtml.js | 'use strict';
const internals = {};
module.exports = function (input) {
if (!input) {
return '';
}
let escaped = '';
for (let i = 0; i < input.length; ++i) {
const charCode = input.charCodeAt(i);
if (internals.isSafe(charCode)) {
escaped += input[i];
}... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/@hapi/hoek/lib/escapeHeaderAttribute.js | aws/aiHintGeneration/node_modules/@hapi/hoek/lib/escapeHeaderAttribute.js | 'use strict';
const Assert = require('./assert');
const internals = {};
module.exports = function (attribute) {
// Allowed value characters: !#$%&'()*+,-./:;<=>?@[]^_`{|}~ and space, a-z, A-Z, 0-9, \, "
Assert(/^[ \w\!#\$%&'\(\)\*\+,\-\.\/\:;<\=>\?@\[\]\^`\{\|\}~\"\\]*$/.test(attribute), 'Bad attribute v... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/@hapi/hoek/lib/stringify.js | aws/aiHintGeneration/node_modules/@hapi/hoek/lib/stringify.js | 'use strict';
const internals = {};
module.exports = function (...args) {
try {
return JSON.stringify(...args);
}
catch (err) {
return '[Cannot display object: ' + err.message + ']';
}
};
| javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/@hapi/hoek/lib/reachTemplate.js | aws/aiHintGeneration/node_modules/@hapi/hoek/lib/reachTemplate.js | 'use strict';
const Reach = require('./reach');
const internals = {};
module.exports = function (obj, template, options) {
return template.replace(/{([^{}]+)}/g, ($0, chain) => {
const value = Reach(obj, chain, options);
return value ?? '';
});
};
| javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/@hapi/hoek/lib/deepEqual.js | aws/aiHintGeneration/node_modules/@hapi/hoek/lib/deepEqual.js | 'use strict';
const Types = require('./types');
const internals = {
mismatched: null
};
module.exports = function (obj, ref, options) {
options = Object.assign({ prototype: true }, options);
return !!internals.isDeepEqual(obj, ref, options, []);
};
internals.isDeepEqual = function (obj, ref, option... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/@hapi/hoek/lib/bench.js | aws/aiHintGeneration/node_modules/@hapi/hoek/lib/bench.js | 'use strict';
const internals = {};
module.exports = internals.Bench = class {
constructor() {
this.ts = 0;
this.reset();
}
reset() {
this.ts = internals.Bench.now();
}
elapsed() {
return internals.Bench.now() - this.ts;
}
static now() {
con... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/@hapi/hoek/lib/intersect.js | aws/aiHintGeneration/node_modules/@hapi/hoek/lib/intersect.js | 'use strict';
const internals = {};
module.exports = function (array1, array2, options = {}) {
if (!array1 ||
!array2) {
return (options.first ? null : []);
}
const common = [];
const hash = (Array.isArray(array1) ? new Set(array1) : array1);
const found = new Set();
for (c... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/@hapi/hoek/lib/wait.js | aws/aiHintGeneration/node_modules/@hapi/hoek/lib/wait.js | 'use strict';
const internals = {
maxTimer: 2 ** 31 - 1 // ~25 days
};
module.exports = function (timeout, returnValue, options) {
if (typeof timeout === 'bigint') {
timeout = Number(timeout);
}
if (timeout >= Number.MAX_SAFE_INTEGER) { // Thousands of years
tim... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/@hapi/hoek/lib/assertError.js | aws/aiHintGeneration/node_modules/@hapi/hoek/lib/assertError.js | 'use strict';
const internals = {};
module.exports = class AssertError extends Error {
name = 'AssertError';
constructor(message, ctor) {
super(message || 'Unknown error');
if (typeof Error.captureStackTrace === 'function') { // $lab:coverage:ignore$
Error.captureSt... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/@hapi/hoek/lib/block.js | aws/aiHintGeneration/node_modules/@hapi/hoek/lib/block.js | 'use strict';
const Ignore = require('./ignore');
const internals = {};
module.exports = function () {
return new Promise(Ignore);
};
| javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/@hapi/hoek/lib/flatten.js | aws/aiHintGeneration/node_modules/@hapi/hoek/lib/flatten.js | 'use strict';
const internals = {};
module.exports = internals.flatten = function (array, target) {
const result = target || [];
for (const entry of array) {
if (Array.isArray(entry)) {
internals.flatten(entry, result);
}
else {
result.push(entry);
}
... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/@hapi/hoek/lib/utils.js | aws/aiHintGeneration/node_modules/@hapi/hoek/lib/utils.js | 'use strict';
const internals = {};
exports.keys = function (obj, options = {}) {
return options.symbols !== false ? Reflect.ownKeys(obj) : Object.getOwnPropertyNames(obj); // Defaults to true
};
| javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/@hapi/ammo/lib/index.js | aws/aiHintGeneration/node_modules/@hapi/ammo/lib/index.js | 'use strict';
const Stream = require('stream');
const Hoek = require('@hapi/hoek');
const internals = {};
// RFC 7233 (https://tools.ietf.org/html/rfc7233#appendix-D)
//
// Range = "bytes" "=" byte-range-set
// byte-range-set = *( "," OWS ) byte-range-spec *( OWS "," [ OWS byte-range-spec ] )
// byte-range-spec =... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/@hapi/somever/lib/index.js | aws/aiHintGeneration/node_modules/@hapi/somever/lib/index.js | 'use strict';
const Bounce = require('@hapi/bounce');
const Hoek = require('@hapi/hoek');
const internals = {
maxLength: 256,
wildcards: ['x', 'X', '*'],
any: Symbol('any')
};
// 1:major 2:minor 3:patch 4:prerelease 5:build
// ... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/@hapi/h2o2/lib/index.js | aws/aiHintGeneration/node_modules/@hapi/h2o2/lib/index.js | 'use strict';
const Http = require('http');
const Https = require('https');
const Url = require('url');
const Hoek = require('@hapi/hoek');
const Validate = require('@hapi/validate');
const Wreck = require('@hapi/wreck');
const internals = {
NS_PER_SEC: 1e9,
CHUNKABLE: ['delete']
};
internals.defaults = {... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/@hapi/subtext/lib/index.js | aws/aiHintGeneration/node_modules/@hapi/subtext/lib/index.js | 'use strict';
const Fs = require('fs');
const Fsp = require('fs/promises');
const Os = require('os');
const Querystring = require('querystring');
const Stream = require('stream');
const Zlib = require('zlib');
const Boom = require('@hapi/boom');
const Bourne = require('@hapi/bourne');
const Content = require('@hapi/c... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/@hapi/validate/lib/compile.js | aws/aiHintGeneration/node_modules/@hapi/validate/lib/compile.js | 'use strict';
const Assert = require('@hapi/hoek/assert');
const Common = require('./common');
const Ref = require('./ref');
const internals = {};
exports.schema = function (Joi, config, options = {}) {
Common.assertOptions(options, ['appendPath', 'override']);
try {
return internals.schema(Joi,... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/@hapi/validate/lib/template.js | aws/aiHintGeneration/node_modules/@hapi/validate/lib/template.js | 'use strict';
const Assert = require('@hapi/hoek/assert');
const Clone = require('@hapi/hoek/clone');
const EscapeHtml = require('@hapi/hoek/escapeHtml');
const Common = require('./common');
const Ref = require('./ref');
const internals = {
symbol: Symbol('template'),
opens: new Array(1000).join('\u0000'),... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/@hapi/validate/lib/state.js | aws/aiHintGeneration/node_modules/@hapi/validate/lib/state.js | 'use strict';
const Clone = require('@hapi/hoek/clone');
const Reach = require('@hapi/hoek/reach');
const Common = require('./common');
const internals = {
value: Symbol('value')
};
module.exports = internals.State = class {
constructor(path, ancestors, state) {
this.path = path;
this.an... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/@hapi/validate/lib/base.js | aws/aiHintGeneration/node_modules/@hapi/validate/lib/base.js | 'use strict';
const Assert = require('@hapi/hoek/assert');
const Clone = require('@hapi/hoek/clone');
const DeepEqual = require('@hapi/hoek/deepEqual');
const Merge = require('@hapi/hoek/merge');
const Common = require('./common');
const Compile = require('./compile');
const Errors = require('./errors');
const Extend... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/@hapi/validate/lib/index.js | aws/aiHintGeneration/node_modules/@hapi/validate/lib/index.js | 'use strict';
const Assert = require('@hapi/hoek/assert');
const Clone = require('@hapi/hoek/clone');
const Common = require('./common');
const Compile = require('./compile');
const Errors = require('./errors');
const Ref = require('./ref');
const internals = {
types: {
alternatives: require('./types/al... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/@hapi/validate/lib/messages.js | aws/aiHintGeneration/node_modules/@hapi/validate/lib/messages.js | 'use strict';
const Assert = require('@hapi/hoek/assert');
const Clone = require('@hapi/hoek/clone');
const Template = require('./template');
const internals = {};
exports.compile = function (messages, target) {
// Single value string ('plain error message', 'template {error} message')
if (typeof messag... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/@hapi/validate/lib/common.js | aws/aiHintGeneration/node_modules/@hapi/validate/lib/common.js | 'use strict';
const Assert = require('@hapi/hoek/assert');
const AssertError = require('@hapi/hoek/assertError');
const Pkg = require('../package.json');
let Messages;
let Schemas;
const internals = {
isoDate: /^(?:[-+]\d{2})?(?:\d{4}(?!\d{2}\b))(?:(-?)(?:(?:0[1-9]|1[0-2])(?:\1(?:[12]\d|0[1-9]|3[01]))?|W(?:[0-... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/@hapi/validate/lib/ref.js | aws/aiHintGeneration/node_modules/@hapi/validate/lib/ref.js | 'use strict';
const Assert = require('@hapi/hoek/assert');
const Clone = require('@hapi/hoek/clone');
const Reach = require('@hapi/hoek/reach');
const Common = require('./common');
const internals = {
symbol: Symbol('ref'), // Used to internally identify references (shared with other joi versions)
defau... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/@hapi/validate/lib/modify.js | aws/aiHintGeneration/node_modules/@hapi/validate/lib/modify.js | 'use strict';
const Assert = require('@hapi/hoek/assert');
const Common = require('./common');
const Ref = require('./ref');
const internals = {};
exports.Ids = internals.Ids = class {
constructor() {
this._byId = new Map();
this._byKey = new Map();
this._schemaChain = false;
}
... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/@hapi/validate/lib/annotate.js | aws/aiHintGeneration/node_modules/@hapi/validate/lib/annotate.js | 'use strict';
const Clone = require('@hapi/hoek/clone');
const Common = require('./common');
const internals = {
annotations: Symbol('annotations')
};
exports.error = function (stripColorCodes) {
if (!this._original ||
typeof this._original !== 'object') {
return this.details[0].message;... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/@hapi/validate/lib/extend.js | aws/aiHintGeneration/node_modules/@hapi/validate/lib/extend.js | 'use strict';
const Assert = require('@hapi/hoek/assert');
const Clone = require('@hapi/hoek/clone');
const Common = require('./common');
const Messages = require('./messages');
const internals = {};
exports.type = function (from, options) {
const base = Object.getPrototypeOf(from);
const prototype = Clo... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/@hapi/validate/lib/schemas.js | aws/aiHintGeneration/node_modules/@hapi/validate/lib/schemas.js | 'use strict';
const Joi = require('./index');
const internals = {};
// Preferences
internals.wrap = Joi.string()
.min(1)
.max(2)
.allow(false);
exports.preferences = Joi.object({
allowUnknown: Joi.boolean(),
abortEarly: Joi.boolean(),
context: Joi.object(),
convert: Joi.boolean(),
... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/@hapi/validate/lib/values.js | aws/aiHintGeneration/node_modules/@hapi/validate/lib/values.js | 'use strict';
const Assert = require('@hapi/hoek/assert');
const DeepEqual = require('@hapi/hoek/deepEqual');
const Common = require('./common');
const internals = {};
module.exports = internals.Values = class {
constructor(values, refs) {
this._values = new Set(values);
this._refs = new Set... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/@hapi/validate/lib/errors.js | aws/aiHintGeneration/node_modules/@hapi/validate/lib/errors.js | 'use strict';
const Annotate = require('./annotate');
const Common = require('./common');
const Template = require('./template');
const internals = {};
exports.Report = class {
constructor(code, value, local, flags, messages, state, prefs) {
this.code = code;
this.flags = flags;
this.... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/@hapi/validate/lib/validator.js | aws/aiHintGeneration/node_modules/@hapi/validate/lib/validator.js | 'use strict';
const Assert = require('@hapi/hoek/assert');
const Clone = require('@hapi/hoek/clone');
const Common = require('./common');
const Errors = require('./errors');
const State = require('./state');
const internals = {
result: Symbol('result')
};
exports.entry = function (value, schema, prefs) {
... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/@hapi/validate/lib/types/symbol.js | aws/aiHintGeneration/node_modules/@hapi/validate/lib/types/symbol.js | 'use strict';
const Assert = require('@hapi/hoek/assert');
const Any = require('./any');
const internals = {};
internals.Map = class extends Map {
slice() {
return new internals.Map(this);
}
};
module.exports = Any._extend({
type: 'symbol',
terms: {
map: { init: new internal... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/@hapi/validate/lib/types/any.js | aws/aiHintGeneration/node_modules/@hapi/validate/lib/types/any.js | 'use strict';
const Assert = require('@hapi/hoek/assert');
const Base = require('../base');
const Common = require('../common');
const internals = {};
module.exports = Base._extend({
type: 'any',
flags: {
only: { default: false }
},
terms: {
alterations: { init: null },
... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/@hapi/validate/lib/types/keys.js | aws/aiHintGeneration/node_modules/@hapi/validate/lib/types/keys.js | 'use strict';
const ApplyToDefaults = require('@hapi/hoek/applyToDefaults');
const Assert = require('@hapi/hoek/assert');
const Clone = require('@hapi/hoek/clone');
const Topo = require('@hapi/topo');
const Any = require('./any');
const Common = require('../common');
const Compile = require('../compile');
const Error... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/@hapi/validate/lib/types/string.js | aws/aiHintGeneration/node_modules/@hapi/validate/lib/types/string.js | 'use strict';
const Url = require('url');
const Assert = require('@hapi/hoek/assert');
const EscapeRegex = require('@hapi/hoek/escapeRegex');
const Any = require('./any');
const Common = require('../common');
const internals = {
base64Regex: {
// paddingRequired
true: {
// urlSafe
... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/@hapi/validate/lib/types/function.js | aws/aiHintGeneration/node_modules/@hapi/validate/lib/types/function.js | 'use strict';
const Assert = require('@hapi/hoek/assert');
const Keys = require('./keys');
const internals = {};
module.exports = Keys._extend({
type: 'function',
properties: {
typeof: 'function'
},
rules: {
arity: {
method(n) {
Assert(Number.isSafeI... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/@hapi/validate/lib/types/link.js | aws/aiHintGeneration/node_modules/@hapi/validate/lib/types/link.js | 'use strict';
const Assert = require('@hapi/hoek/assert');
const Any = require('./any');
const Common = require('../common');
const Compile = require('../compile');
const Errors = require('../errors');
const internals = {};
module.exports = Any._extend({
type: 'link',
properties: {
schemaChain: ... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/@hapi/validate/lib/types/object.js | aws/aiHintGeneration/node_modules/@hapi/validate/lib/types/object.js | 'use strict';
const Keys = require('./keys');
const internals = {};
module.exports = Keys._extend({
type: 'object',
cast: {
map: {
from: (value) => value && typeof value === 'object',
to(value, helpers) {
return new Map(Object.entries(value));
... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/@hapi/validate/lib/types/date.js | aws/aiHintGeneration/node_modules/@hapi/validate/lib/types/date.js | 'use strict';
const Assert = require('@hapi/hoek/assert');
const Any = require('./any');
const Common = require('../common');
const Template = require('../template');
const internals = {};
internals.isDate = function (value) {
return value instanceof Date;
};
module.exports = Any._extend({
type: 'date... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/@hapi/validate/lib/types/array.js | aws/aiHintGeneration/node_modules/@hapi/validate/lib/types/array.js | 'use strict';
const Assert = require('@hapi/hoek/assert');
const DeepEqual = require('@hapi/hoek/deepEqual');
const Reach = require('@hapi/hoek/reach');
const Any = require('./any');
const Common = require('../common');
const Compile = require('../compile');
const internals = {};
module.exports = Any._extend({
... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/@hapi/validate/lib/types/binary.js | aws/aiHintGeneration/node_modules/@hapi/validate/lib/types/binary.js | 'use strict';
const Assert = require('@hapi/hoek/assert');
const Any = require('./any');
const Common = require('../common');
const internals = {};
module.exports = Any._extend({
type: 'binary',
coerce: {
from: 'string',
method(value, { schema }) {
try {
retu... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/@hapi/validate/lib/types/number.js | aws/aiHintGeneration/node_modules/@hapi/validate/lib/types/number.js | 'use strict';
const Assert = require('@hapi/hoek/assert');
const Any = require('./any');
const Common = require('../common');
const internals = {
numberRx: /^\s*[+-]?(?:(?:\d+(?:\.\d*)?)|(?:\.\d+))(?:e([+-]?\d+))?\s*$/i,
precisionRx: /(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/
};
module.exports = Any._extend({
... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/@hapi/validate/lib/types/boolean.js | aws/aiHintGeneration/node_modules/@hapi/validate/lib/types/boolean.js | 'use strict';
const Assert = require('@hapi/hoek/assert');
const Any = require('./any');
const Common = require('../common');
const Values = require('../values');
const internals = {};
internals.isBool = function (value) {
return typeof value === 'boolean';
};
module.exports = Any._extend({
type: 'boo... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/@hapi/validate/lib/types/alternatives.js | aws/aiHintGeneration/node_modules/@hapi/validate/lib/types/alternatives.js | 'use strict';
const Assert = require('@hapi/hoek/assert');
const Any = require('./any');
const Common = require('../common');
const Compile = require('../compile');
const Errors = require('../errors');
const Ref = require('../ref');
const internals = {};
module.exports = Any._extend({
type: 'alternatives',
... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/commander/index.js | aws/aiHintGeneration/node_modules/commander/index.js | /**
* Module dependencies.
*/
var EventEmitter = require('events').EventEmitter;
var spawn = require('child_process').spawn;
var path = require('path');
var dirname = path.dirname;
var basename = path.basename;
var fs = require('fs');
/**
* Inherit `Command` from `EventEmitter.prototype`.
*/
require('util').inhe... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/velocityjs/index.js | aws/aiHintGeneration/node_modules/velocityjs/index.js | 'use strict';
module.exports = require('./src/velocity');
| javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/velocityjs/node_modules/debug/src/index.js | aws/aiHintGeneration/node_modules/velocityjs/node_modules/debug/src/index.js | /**
* Detect Electron renderer / nwjs process, which is node, but we should
* treat as a browser.
*/
if (typeof process === 'undefined' || process.type === 'renderer' || process.browser === true || process.__nwjs) {
module.exports = require('./browser.js');
} else {
module.exports = require('./node.js');
}
| javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/velocityjs/node_modules/debug/src/browser.js | aws/aiHintGeneration/node_modules/velocityjs/node_modules/debug/src/browser.js | /* eslint-env browser */
/**
* This is the web browser implementation of `debug()`.
*/
exports.formatArgs = formatArgs;
exports.save = save;
exports.load = load;
exports.useColors = useColors;
exports.storage = localstorage();
exports.destroy = (() => {
let warned = false;
return () => {
if (!warned) {
warn... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/velocityjs/node_modules/debug/src/common.js | aws/aiHintGeneration/node_modules/velocityjs/node_modules/debug/src/common.js |
/**
* This is the common logic for both the Node.js and web browser
* implementations of `debug()`.
*/
function setup(env) {
createDebug.debug = createDebug;
createDebug.default = createDebug;
createDebug.coerce = coerce;
createDebug.disable = disable;
createDebug.enable = enable;
createDebug.enabled = enabl... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/velocityjs/node_modules/debug/src/node.js | aws/aiHintGeneration/node_modules/velocityjs/node_modules/debug/src/node.js | /**
* Module dependencies.
*/
const tty = require('tty');
const util = require('util');
/**
* This is the Node.js implementation of `debug()`.
*/
exports.init = init;
exports.log = log;
exports.formatArgs = formatArgs;
exports.save = save;
exports.load = load;
exports.useColors = useColors;
exports.destroy = uti... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/velocityjs/src/parse.js | aws/aiHintGeneration/node_modules/velocityjs/src/parse.js | 'use strict';
var Parser = require('./parse/index');
var _parse = Parser.parse;
var utils = require('./utils');
var blockTypes = {
if: true,
foreach: true,
macro: true,
noescape: true,
define: true,
macro_body: true,
};
var customBlocks = [];
/**
* @param {string} str string to parse
* @param {object}... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/velocityjs/src/velocity.js | aws/aiHintGeneration/node_modules/velocityjs/src/velocity.js | 'use strict';
var Compile = require('./compile/');
var Helper = require('./helper/index');
var parse = require('./parse');
Compile.parse = parse;
var Velocity = {
parse: parse,
Compile: Compile,
Helper: Helper
};
Velocity.render = function(template, context, macros, config) {
var asts = parse(template);
v... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/velocityjs/src/utils.js | aws/aiHintGeneration/node_modules/velocityjs/src/utils.js | "use strict";
var utils = {};
['forEach', 'some', 'every', 'filter', 'map'].forEach(function(fnName) {
utils[fnName] = function(arr, fn, context) {
if (!arr || typeof arr === 'string') return arr;
context = context || this;
if (arr[fnName]) {
return arr[fnName](fn, context);
} else {
var ... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/velocityjs/src/parse/index.js | aws/aiHintGeneration/node_modules/velocityjs/src/parse/index.js | /* parser generated by jison 0.4.18 */
/*
Returns a Parser object of the following structure:
Parser: {
yy: {}
}
Parser.prototype: {
yy: {},
trace: function(),
symbols_: {associative list: name ==> number},
terminals_: {associative list: number ==> name},
productions_: [...],
perfo... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | true |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/velocityjs/src/compile/compile.js | aws/aiHintGeneration/node_modules/velocityjs/src/compile/compile.js | module.exports = function(Velocity, utils) {
/**
* compile
*/
utils.mixin(Velocity.prototype, {
init: function() {
this.context = {};
this.macros = {};
this.defines = {};
this.conditions = [];
this.local = {};
this.silence = false;
this.unescape = {};
var ... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/velocityjs/src/compile/expression.js | aws/aiHintGeneration/node_modules/velocityjs/src/compile/expression.js | module.exports = function(Velocity, utils){
/**
* expression support, include math, logic, compare expression
*/
utils.mixin(Velocity.prototype, {
/**
* 表达式求值,表达式主要是数学表达式,逻辑运算和比较运算,到最底层数据结构,
* 基本数据类型,使用 getLiteral求值,getLiteral遇到是引用的时候,使用
* getReferences求值
*/
getExpression: function... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/velocityjs/src/compile/methods.js | aws/aiHintGeneration/node_modules/velocityjs/src/compile/methods.js | const utils = require('../utils');
function hasProperty(context, field) {
if (typeof context === 'number' || typeof context === 'string') {
return context[field] || Object.prototype.hasOwnProperty.call(context, field);
}
if (!context) {
return false;
}
return field in context;
}
function matchProper... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
CAHLR/OATutor | https://github.com/CAHLR/OATutor/blob/10a5baf153a505267af8045b05c217b4be6bd8b4/aws/aiHintGeneration/node_modules/velocityjs/src/compile/index.js | aws/aiHintGeneration/node_modules/velocityjs/src/compile/index.js | var utils = require('../utils');
var Helper = require('../helper/index');
var methods = require('./methods');
function Velocity(asts, config) {
this.asts = asts;
this.config = utils.mixin(
{
/**
* if escapeHtml variable, is set true
* $foo value will handle by escapeHtml
*/
esca... | javascript | MIT | 10a5baf153a505267af8045b05c217b4be6bd8b4 | 2026-01-05T03:39:09.711315Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.