mirror of
https://github.com/x1xhlol/system-prompts-and-models-of-ai-tools.git
synced 2026-02-04 05:50:50 +00:00
nhj
more
This commit is contained in:
22
unified-ai-platform/node_modules/reusify/LICENSE
generated
vendored
Normal file
22
unified-ai-platform/node_modules/reusify/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2015-2024 Matteo Collina
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
|
||||
30
unified-ai-platform/node_modules/reusify/benchmarks/createNoCodeFunction.js
generated
vendored
Normal file
30
unified-ai-platform/node_modules/reusify/benchmarks/createNoCodeFunction.js
generated
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
'use strict'
|
||||
|
||||
var fib = require('./fib')
|
||||
var max = 100000000
|
||||
var start = Date.now()
|
||||
|
||||
// create a funcion with the typical error
|
||||
// pattern, that delegates the heavy load
|
||||
// to something else
|
||||
function createNoCodeFunction () {
|
||||
/* eslint no-constant-condition: "off" */
|
||||
var num = 100
|
||||
|
||||
;(function () {
|
||||
if (null) {
|
||||
// do nothing
|
||||
} else {
|
||||
fib(num)
|
||||
}
|
||||
})()
|
||||
}
|
||||
|
||||
for (var i = 0; i < max; i++) {
|
||||
createNoCodeFunction()
|
||||
}
|
||||
|
||||
var time = Date.now() - start
|
||||
console.log('Total time', time)
|
||||
console.log('Total iterations', max)
|
||||
console.log('Iteration/s', max / time * 1000)
|
||||
0
unified-ai-platform/node_modules/reusify/benchmarks/fib.js
generated
vendored
Normal file
0
unified-ai-platform/node_modules/reusify/benchmarks/fib.js
generated
vendored
Normal file
14
unified-ai-platform/node_modules/reusify/eslint.config.js
generated
vendored
Normal file
14
unified-ai-platform/node_modules/reusify/eslint.config.js
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
'use strict'
|
||||
|
||||
const base = require('neostandard')({})
|
||||
|
||||
module.exports = [
|
||||
...base,
|
||||
{
|
||||
name: 'old-standard',
|
||||
rules: {
|
||||
'no-var': 'off',
|
||||
'object-shorthand': 'off',
|
||||
}
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user