code stringlengths 24 2.07M | docstring stringlengths 25 85.3k | func_name stringlengths 1 92 | language stringclasses 1
value | repo stringlengths 5 64 | path stringlengths 4 172 | url stringlengths 44 218 | license stringclasses 7
values |
|---|---|---|---|---|---|---|---|
function filterSince(object) {
return showUnreleased || !("since" in object) || object.since && semver$1.gte(version, object.since);
} | Strings in `plugins` and `pluginSearchDirs` are handled by a wrapped version
of this function created by `withPlugins`. Don't pass them here directly.
@param {object} param0
@param {(string | object)[]=} param0.plugins Strings are resolved by `withPlugins`.
@param {string[]=} param0.pluginSearchDirs Added by `withPlugi... | filterSince | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
function filterDeprecated(object) {
return showDeprecated || !("deprecated" in object) || object.deprecated && semver$1.lt(version, object.deprecated);
} | Strings in `plugins` and `pluginSearchDirs` are handled by a wrapped version
of this function created by `withPlugins`. Don't pass them here directly.
@param {object} param0
@param {(string | object)[]=} param0.plugins Strings are resolved by `withPlugins`.
@param {string[]=} param0.pluginSearchDirs Added by `withPlugi... | filterDeprecated | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
function mapInternal(object) {
if (showInternal) {
return object;
}
const newObject = _objectWithoutPropertiesLoose(object, ["cliName", "cliCategory", "cliDescription"]);
return newObject;
} | Strings in `plugins` and `pluginSearchDirs` are handled by a wrapped version
of this function created by `withPlugins`. Don't pass them here directly.
@param {object} param0
@param {(string | object)[]=} param0.plugins Strings are resolved by `withPlugins`.
@param {string[]=} param0.pluginSearchDirs Added by `withPlugi... | mapInternal | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
_extendStatics = function extendStatics(d, b) {
_extendStatics = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function (d, b) {
d.__proto__ = b;
} || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
};
return _extendStatics(d, b);
} | Strings in `plugins` and `pluginSearchDirs` are handled by a wrapped version
of this function created by `withPlugins`. Don't pass them here directly.
@param {object} param0
@param {(string | object)[]=} param0.plugins Strings are resolved by `withPlugins`.
@param {string[]=} param0.pluginSearchDirs Added by `withPlugi... | _extendStatics | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
function __extends(d, b) {
_extendStatics(d, b);
function __() {
this.constructor = d;
}
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
} | Strings in `plugins` and `pluginSearchDirs` are handled by a wrapped version
of this function created by `withPlugins`. Don't pass them here directly.
@param {object} param0
@param {(string | object)[]=} param0.plugins Strings are resolved by `withPlugins`.
@param {string[]=} param0.pluginSearchDirs Added by `withPlugi... | __extends | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
function __() {
this.constructor = d;
} | Strings in `plugins` and `pluginSearchDirs` are handled by a wrapped version
of this function created by `withPlugins`. Don't pass them here directly.
@param {object} param0
@param {(string | object)[]=} param0.plugins Strings are resolved by `withPlugins`.
@param {string[]=} param0.pluginSearchDirs Added by `withPlugi... | __ | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
_assign = function __assign() {
_assign = Object.assign || function __assign(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
}
return t;
};
return _assign.apply(th... | Strings in `plugins` and `pluginSearchDirs` are handled by a wrapped version
of this function created by `withPlugins`. Don't pass them here directly.
@param {object} param0
@param {(string | object)[]=} param0.plugins Strings are resolved by `withPlugins`.
@param {string[]=} param0.pluginSearchDirs Added by `withPlugi... | _assign | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
function __rest(s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0... | Strings in `plugins` and `pluginSearchDirs` are handled by a wrapped version
of this function created by `withPlugins`. Don't pass them here directly.
@param {object} param0
@param {(string | object)[]=} param0.plugins Strings are resolved by `withPlugins`.
@param {string[]=} param0.pluginSearchDirs Added by `withPlugi... | __rest | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
function __decorate(decorators, target, key, desc) {
var c = arguments.length,
r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, k... | Strings in `plugins` and `pluginSearchDirs` are handled by a wrapped version
of this function created by `withPlugins`. Don't pass them here directly.
@param {object} param0
@param {(string | object)[]=} param0.plugins Strings are resolved by `withPlugins`.
@param {string[]=} param0.pluginSearchDirs Added by `withPlugi... | __decorate | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
function __param(paramIndex, decorator) {
return function (target, key) {
decorator(target, key, paramIndex);
};
} | Strings in `plugins` and `pluginSearchDirs` are handled by a wrapped version
of this function created by `withPlugins`. Don't pass them here directly.
@param {object} param0
@param {(string | object)[]=} param0.plugins Strings are resolved by `withPlugins`.
@param {string[]=} param0.pluginSearchDirs Added by `withPlugi... | __param | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
function __metadata(metadataKey, metadataValue) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
} | Strings in `plugins` and `pluginSearchDirs` are handled by a wrapped version
of this function created by `withPlugins`. Don't pass them here directly.
@param {object} param0
@param {(string | object)[]=} param0.plugins Strings are resolved by `withPlugins`.
@param {string[]=} param0.pluginSearchDirs Added by `withPlugi... | __metadata | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
function __awaiter(thisArg, _arguments, P, generator) {
function adopt(value) {
return value instanceof P ? value : new P(function (resolve) {
resolve(value);
});
}
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) {
try {
ste... | Strings in `plugins` and `pluginSearchDirs` are handled by a wrapped version
of this function created by `withPlugins`. Don't pass them here directly.
@param {object} param0
@param {(string | object)[]=} param0.plugins Strings are resolved by `withPlugins`.
@param {string[]=} param0.pluginSearchDirs Added by `withPlugi... | __awaiter | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
function adopt(value) {
return value instanceof P ? value : new P(function (resolve) {
resolve(value);
});
} | Strings in `plugins` and `pluginSearchDirs` are handled by a wrapped version
of this function created by `withPlugins`. Don't pass them here directly.
@param {object} param0
@param {(string | object)[]=} param0.plugins Strings are resolved by `withPlugins`.
@param {string[]=} param0.pluginSearchDirs Added by `withPlugi... | adopt | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
function fulfilled(value) {
try {
step(generator.next(value));
} catch (e) {
reject(e);
}
} | Strings in `plugins` and `pluginSearchDirs` are handled by a wrapped version
of this function created by `withPlugins`. Don't pass them here directly.
@param {object} param0
@param {(string | object)[]=} param0.plugins Strings are resolved by `withPlugins`.
@param {string[]=} param0.pluginSearchDirs Added by `withPlugi... | fulfilled | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
function rejected(value) {
try {
step(generator["throw"](value));
} catch (e) {
reject(e);
}
} | Strings in `plugins` and `pluginSearchDirs` are handled by a wrapped version
of this function created by `withPlugins`. Don't pass them here directly.
@param {object} param0
@param {(string | object)[]=} param0.plugins Strings are resolved by `withPlugins`.
@param {string[]=} param0.pluginSearchDirs Added by `withPlugi... | rejected | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
function step(result) {
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
} | Strings in `plugins` and `pluginSearchDirs` are handled by a wrapped version
of this function created by `withPlugins`. Don't pass them here directly.
@param {object} param0
@param {(string | object)[]=} param0.plugins Strings are resolved by `withPlugins`.
@param {string[]=} param0.pluginSearchDirs Added by `withPlugi... | step | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
function __generator(thisArg, body) {
var _ = {
label: 0,
sent: function sent() {
if (t[0] & 1) throw t[1];
return t[1];
},
trys: [],
ops: []
},
f,
y,
t,
g;
return g = {
next: verb(0),
"throw": verb(1),
"return":... | Strings in `plugins` and `pluginSearchDirs` are handled by a wrapped version
of this function created by `withPlugins`. Don't pass them here directly.
@param {object} param0
@param {(string | object)[]=} param0.plugins Strings are resolved by `withPlugins`.
@param {string[]=} param0.pluginSearchDirs Added by `withPlugi... | __generator | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
function verb(n) {
return function (v) {
return step([n, v]);
};
} | Strings in `plugins` and `pluginSearchDirs` are handled by a wrapped version
of this function created by `withPlugins`. Don't pass them here directly.
@param {object} param0
@param {(string | object)[]=} param0.plugins Strings are resolved by `withPlugins`.
@param {string[]=} param0.pluginSearchDirs Added by `withPlugi... | verb | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
function step(op) {
if (f) throw new TypeError("Generator is already executing.");
while (_) try {
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
if (y = 0, t) op = [op[0] & 2, t.v... | Strings in `plugins` and `pluginSearchDirs` are handled by a wrapped version
of this function created by `withPlugins`. Don't pass them here directly.
@param {object} param0
@param {(string | object)[]=} param0.plugins Strings are resolved by `withPlugins`.
@param {string[]=} param0.pluginSearchDirs Added by `withPlugi... | step | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
function __exportStar(m, exports) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
} | Strings in `plugins` and `pluginSearchDirs` are handled by a wrapped version
of this function created by `withPlugins`. Don't pass them here directly.
@param {object} param0
@param {(string | object)[]=} param0.plugins Strings are resolved by `withPlugins`.
@param {string[]=} param0.pluginSearchDirs Added by `withPlugi... | __exportStar | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
function __values(o) {
var s = typeof Symbol === "function" && Symbol.iterator,
m = s && o[s],
i = 0;
if (m) return m.call(o);
if (o && typeof o.length === "number") return {
next: function next() {
if (o && i >= o.length) o = void 0;
return {
value: o && o[i+... | Strings in `plugins` and `pluginSearchDirs` are handled by a wrapped version
of this function created by `withPlugins`. Don't pass them here directly.
@param {object} param0
@param {(string | object)[]=} param0.plugins Strings are resolved by `withPlugins`.
@param {string[]=} param0.pluginSearchDirs Added by `withPlugi... | __values | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
function __read(o, n) {
var m = typeof Symbol === "function" && o[Symbol.iterator];
if (!m) return o;
var i = m.call(o),
r,
ar = [],
e;
try {
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
} catch (error) {
e = {
error: error
... | Strings in `plugins` and `pluginSearchDirs` are handled by a wrapped version
of this function created by `withPlugins`. Don't pass them here directly.
@param {object} param0
@param {(string | object)[]=} param0.plugins Strings are resolved by `withPlugins`.
@param {string[]=} param0.pluginSearchDirs Added by `withPlugi... | __read | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
function __spread() {
for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i]));
return ar;
} | Strings in `plugins` and `pluginSearchDirs` are handled by a wrapped version
of this function created by `withPlugins`. Don't pass them here directly.
@param {object} param0
@param {(string | object)[]=} param0.plugins Strings are resolved by `withPlugins`.
@param {string[]=} param0.pluginSearchDirs Added by `withPlugi... | __spread | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
function __spreadArrays() {
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
for (var r = Array(s), k = 0, i = 0; i < il; i++) for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) r[k] = a[j];
return r;
} | Strings in `plugins` and `pluginSearchDirs` are handled by a wrapped version
of this function created by `withPlugins`. Don't pass them here directly.
@param {object} param0
@param {(string | object)[]=} param0.plugins Strings are resolved by `withPlugins`.
@param {string[]=} param0.pluginSearchDirs Added by `withPlugi... | __spreadArrays | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
function __await(v) {
return this instanceof __await ? (this.v = v, this) : new __await(v);
} | Strings in `plugins` and `pluginSearchDirs` are handled by a wrapped version
of this function created by `withPlugins`. Don't pass them here directly.
@param {object} param0
@param {(string | object)[]=} param0.plugins Strings are resolved by `withPlugins`.
@param {string[]=} param0.pluginSearchDirs Added by `withPlugi... | __await | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
function __asyncGenerator(thisArg, _arguments, generator) {
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
var g = generator.apply(thisArg, _arguments || []),
i,
q = [];
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterato... | Strings in `plugins` and `pluginSearchDirs` are handled by a wrapped version
of this function created by `withPlugins`. Don't pass them here directly.
@param {object} param0
@param {(string | object)[]=} param0.plugins Strings are resolved by `withPlugins`.
@param {string[]=} param0.pluginSearchDirs Added by `withPlugi... | __asyncGenerator | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
function verb(n) {
if (g[n]) i[n] = function (v) {
return new Promise(function (a, b) {
q.push([n, v, a, b]) > 1 || resume(n, v);
});
};
} | Strings in `plugins` and `pluginSearchDirs` are handled by a wrapped version
of this function created by `withPlugins`. Don't pass them here directly.
@param {object} param0
@param {(string | object)[]=} param0.plugins Strings are resolved by `withPlugins`.
@param {string[]=} param0.pluginSearchDirs Added by `withPlugi... | verb | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
function resume(n, v) {
try {
step(g[n](v));
} catch (e) {
settle(q[0][3], e);
}
} | Strings in `plugins` and `pluginSearchDirs` are handled by a wrapped version
of this function created by `withPlugins`. Don't pass them here directly.
@param {object} param0
@param {(string | object)[]=} param0.plugins Strings are resolved by `withPlugins`.
@param {string[]=} param0.pluginSearchDirs Added by `withPlugi... | resume | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
function step(r) {
r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r);
} | Strings in `plugins` and `pluginSearchDirs` are handled by a wrapped version
of this function created by `withPlugins`. Don't pass them here directly.
@param {object} param0
@param {(string | object)[]=} param0.plugins Strings are resolved by `withPlugins`.
@param {string[]=} param0.pluginSearchDirs Added by `withPlugi... | step | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
function fulfill(value) {
resume("next", value);
} | Strings in `plugins` and `pluginSearchDirs` are handled by a wrapped version
of this function created by `withPlugins`. Don't pass them here directly.
@param {object} param0
@param {(string | object)[]=} param0.plugins Strings are resolved by `withPlugins`.
@param {string[]=} param0.pluginSearchDirs Added by `withPlugi... | fulfill | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
function reject(value) {
resume("throw", value);
} | Strings in `plugins` and `pluginSearchDirs` are handled by a wrapped version
of this function created by `withPlugins`. Don't pass them here directly.
@param {object} param0
@param {(string | object)[]=} param0.plugins Strings are resolved by `withPlugins`.
@param {string[]=} param0.pluginSearchDirs Added by `withPlugi... | reject | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
function settle(f, v) {
if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]);
} | Strings in `plugins` and `pluginSearchDirs` are handled by a wrapped version
of this function created by `withPlugins`. Don't pass them here directly.
@param {object} param0
@param {(string | object)[]=} param0.plugins Strings are resolved by `withPlugins`.
@param {string[]=} param0.pluginSearchDirs Added by `withPlugi... | settle | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
function __asyncDelegator(o) {
var i, p;
return i = {}, verb("next"), verb("throw", function (e) {
throw e;
}), verb("return"), i[Symbol.iterator] = function () {
return this;
}, i;
function verb(n, f) {
i[n] = o[n] ? function (v) {
return (p = !p) ? {
value: __a... | Strings in `plugins` and `pluginSearchDirs` are handled by a wrapped version
of this function created by `withPlugins`. Don't pass them here directly.
@param {object} param0
@param {(string | object)[]=} param0.plugins Strings are resolved by `withPlugins`.
@param {string[]=} param0.pluginSearchDirs Added by `withPlugi... | __asyncDelegator | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
function verb(n, f) {
i[n] = o[n] ? function (v) {
return (p = !p) ? {
value: __await(o[n](v)),
done: n === "return"
} : f ? f(v) : v;
} : f;
} | Strings in `plugins` and `pluginSearchDirs` are handled by a wrapped version
of this function created by `withPlugins`. Don't pass them here directly.
@param {object} param0
@param {(string | object)[]=} param0.plugins Strings are resolved by `withPlugins`.
@param {string[]=} param0.pluginSearchDirs Added by `withPlugi... | verb | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
function __asyncValues(o) {
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
var m = o[Symbol.asyncIterator],
i;
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return")... | Strings in `plugins` and `pluginSearchDirs` are handled by a wrapped version
of this function created by `withPlugins`. Don't pass them here directly.
@param {object} param0
@param {(string | object)[]=} param0.plugins Strings are resolved by `withPlugins`.
@param {string[]=} param0.pluginSearchDirs Added by `withPlugi... | __asyncValues | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
function verb(n) {
i[n] = o[n] && function (v) {
return new Promise(function (resolve, reject) {
v = o[n](v), settle(resolve, reject, v.done, v.value);
});
};
} | Strings in `plugins` and `pluginSearchDirs` are handled by a wrapped version
of this function created by `withPlugins`. Don't pass them here directly.
@param {object} param0
@param {(string | object)[]=} param0.plugins Strings are resolved by `withPlugins`.
@param {string[]=} param0.pluginSearchDirs Added by `withPlugi... | verb | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
function settle(resolve, reject, d, v) {
Promise.resolve(v).then(function (v) {
resolve({
value: v,
done: d
});
}, reject);
} | Strings in `plugins` and `pluginSearchDirs` are handled by a wrapped version
of this function created by `withPlugins`. Don't pass them here directly.
@param {object} param0
@param {(string | object)[]=} param0.plugins Strings are resolved by `withPlugins`.
@param {string[]=} param0.pluginSearchDirs Added by `withPlugi... | settle | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
function __makeTemplateObject(cooked, raw) {
if (Object.defineProperty) {
Object.defineProperty(cooked, "raw", {
value: raw
});
} else {
cooked.raw = raw;
}
return cooked;
} | Strings in `plugins` and `pluginSearchDirs` are handled by a wrapped version
of this function created by `withPlugins`. Don't pass them here directly.
@param {object} param0
@param {(string | object)[]=} param0.plugins Strings are resolved by `withPlugins`.
@param {string[]=} param0.pluginSearchDirs Added by `withPlugi... | __makeTemplateObject | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
function __importStar(mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result.default = mod;
return result;
} | Strings in `plugins` and `pluginSearchDirs` are handled by a wrapped version
of this function created by `withPlugins`. Don't pass them here directly.
@param {object} param0
@param {(string | object)[]=} param0.plugins Strings are resolved by `withPlugins`.
@param {string[]=} param0.pluginSearchDirs Added by `withPlugi... | __importStar | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
function __importDefault(mod) {
return mod && mod.__esModule ? mod : {
default: mod
};
} | Strings in `plugins` and `pluginSearchDirs` are handled by a wrapped version
of this function created by `withPlugins`. Don't pass them here directly.
@param {object} param0
@param {(string | object)[]=} param0.plugins Strings are resolved by `withPlugins`.
@param {string[]=} param0.pluginSearchDirs Added by `withPlugi... | __importDefault | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
function __classPrivateFieldGet(receiver, privateMap) {
if (!privateMap.has(receiver)) {
throw new TypeError("attempted to get private field on non-instance");
}
return privateMap.get(receiver);
} | Strings in `plugins` and `pluginSearchDirs` are handled by a wrapped version
of this function created by `withPlugins`. Don't pass them here directly.
@param {object} param0
@param {(string | object)[]=} param0.plugins Strings are resolved by `withPlugins`.
@param {string[]=} param0.pluginSearchDirs Added by `withPlugi... | __classPrivateFieldGet | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
function __classPrivateFieldSet(receiver, privateMap, value) {
if (!privateMap.has(receiver)) {
throw new TypeError("attempted to set private field on non-instance");
}
privateMap.set(receiver, value);
return value;
} | Strings in `plugins` and `pluginSearchDirs` are handled by a wrapped version
of this function created by `withPlugins`. Don't pass them here directly.
@param {object} param0
@param {(string | object)[]=} param0.plugins Strings are resolved by `withPlugins`.
@param {string[]=} param0.pluginSearchDirs Added by `withPlugi... | __classPrivateFieldSet | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
value(value) {
if (value === null || typeof value !== 'object') {
return JSON.stringify(value);
}
if (Array.isArray(value)) {
return "[".concat(value.map(subValue => exports.apiDescriptor.value(subValue)).join(', '), "]");
}
const keys = Object.keys(value);
... | Strings in `plugins` and `pluginSearchDirs` are handled by a wrapped version
of this function created by `withPlugins`. Don't pass them here directly.
@param {object} param0
@param {(string | object)[]=} param0.plugins Strings are resolved by `withPlugins`.
@param {string[]=} param0.pluginSearchDirs Added by `withPlugi... | value | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
escapeStringRegexp = function escapeStringRegexp(str) {
if (typeof str !== 'string') {
throw new TypeError('Expected a string');
}
return str.replace(matchOperatorsRe, '\\$&');
} | Strings in `plugins` and `pluginSearchDirs` are handled by a wrapped version
of this function created by `withPlugins`. Don't pass them here directly.
@param {object} param0
@param {(string | object)[]=} param0.plugins Strings are resolved by `withPlugins`.
@param {string[]=} param0.pluginSearchDirs Added by `withPlugi... | escapeStringRegexp | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
diffc = function diffc(c) {
return (v - c) / 6 / diff + 1 / 2;
} | Strings in `plugins` and `pluginSearchDirs` are handled by a wrapped version
of this function created by `withPlugins`. Don't pass them here directly.
@param {object} param0
@param {(string | object)[]=} param0.plugins Strings are resolved by `withPlugins`.
@param {string[]=} param0.pluginSearchDirs Added by `withPlugi... | diffc | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
function comparativeDistance(x, y) {
return Math.pow(x[0] - y[0], 2) + Math.pow(x[1] - y[1], 2) + Math.pow(x[2] - y[2], 2);
} | See https://en.m.wikipedia.org/wiki/Euclidean_distance#Squared_Euclidean_distance | comparativeDistance | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
function buildGraph() {
var graph = {}; // https://jsperf.com/object-keys-vs-for-in-with-closure/3
var models = Object.keys(conversions);
for (var len = models.length, i = 0; i < len; i++) {
graph[models[i]] = {
// http://jsperf.com/1-vs-infinity
// micro-opt, but this is simple.
... | See https://en.m.wikipedia.org/wiki/Euclidean_distance#Squared_Euclidean_distance | buildGraph | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
function deriveBFS(fromModel) {
var graph = buildGraph();
var queue = [fromModel]; // unshift -> queue -> pop
graph[fromModel].distance = 0;
while (queue.length) {
var current = queue.pop();
var adjacents = Object.keys(conversions[current]);
for (var len = adjacents.length, i = 0; i... | See https://en.m.wikipedia.org/wiki/Euclidean_distance#Squared_Euclidean_distance | deriveBFS | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
function link(from, to) {
return function (args) {
return to(from(args));
};
} | See https://en.m.wikipedia.org/wiki/Euclidean_distance#Squared_Euclidean_distance | link | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
function wrapConversion(toModel, graph) {
var path = [graph[toModel].parent, toModel];
var fn = conversions[graph[toModel].parent][toModel];
var cur = graph[toModel].parent;
while (graph[cur].parent) {
path.unshift(graph[cur].parent);
fn = link(conversions[graph[cur].parent][cur], fn);
... | See https://en.m.wikipedia.org/wiki/Euclidean_distance#Squared_Euclidean_distance | wrapConversion | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
route = function route(fromModel) {
var graph = deriveBFS(fromModel);
var conversion = {};
var models = Object.keys(graph);
for (var len = models.length, i = 0; i < len; i++) {
var toModel = models[i];
var node = graph[toModel];
if (node.parent === null) {
// no possible conv... | See https://en.m.wikipedia.org/wiki/Euclidean_distance#Squared_Euclidean_distance | route | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
function wrapRaw(fn) {
var wrappedFn = function wrappedFn(args) {
if (args === undefined || args === null) {
return args;
}
if (arguments.length > 1) {
args = Array.prototype.slice.call(arguments);
}
return fn(args);
}; // preserve .conversion property if there is... | See https://en.m.wikipedia.org/wiki/Euclidean_distance#Squared_Euclidean_distance | wrapRaw | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
wrappedFn = function wrappedFn(args) {
if (args === undefined || args === null) {
return args;
}
if (arguments.length > 1) {
args = Array.prototype.slice.call(arguments);
}
return fn(args);
} | See https://en.m.wikipedia.org/wiki/Euclidean_distance#Squared_Euclidean_distance | wrappedFn | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
function wrapRounded(fn) {
var wrappedFn = function wrappedFn(args) {
if (args === undefined || args === null) {
return args;
}
if (arguments.length > 1) {
args = Array.prototype.slice.call(arguments);
}
var result = fn(args); // we're assuming the result is an array ... | See https://en.m.wikipedia.org/wiki/Euclidean_distance#Squared_Euclidean_distance | wrapRounded | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
wrappedFn = function wrappedFn(args) {
if (args === undefined || args === null) {
return args;
}
if (arguments.length > 1) {
args = Array.prototype.slice.call(arguments);
}
var result = fn(args); // we're assuming the result is an array here.
// see notice in conver... | See https://en.m.wikipedia.org/wiki/Euclidean_distance#Squared_Euclidean_distance | wrappedFn | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
wrapAnsi16 = (fn, offset) => function () {
const code = fn.apply(colorConvert, arguments);
return "\x1B[".concat(code + offset, "m");
} | See https://en.m.wikipedia.org/wiki/Euclidean_distance#Squared_Euclidean_distance | wrapAnsi16 | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
wrapAnsi16 = (fn, offset) => function () {
const code = fn.apply(colorConvert, arguments);
return "\x1B[".concat(code + offset, "m");
} | See https://en.m.wikipedia.org/wiki/Euclidean_distance#Squared_Euclidean_distance | wrapAnsi16 | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
wrapAnsi256 = (fn, offset) => function () {
const code = fn.apply(colorConvert, arguments);
return "\x1B[".concat(38 + offset, ";5;").concat(code, "m");
} | See https://en.m.wikipedia.org/wiki/Euclidean_distance#Squared_Euclidean_distance | wrapAnsi256 | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
wrapAnsi256 = (fn, offset) => function () {
const code = fn.apply(colorConvert, arguments);
return "\x1B[".concat(38 + offset, ";5;").concat(code, "m");
} | See https://en.m.wikipedia.org/wiki/Euclidean_distance#Squared_Euclidean_distance | wrapAnsi256 | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
wrapAnsi16m = (fn, offset) => function () {
const rgb = fn.apply(colorConvert, arguments);
return "\x1B[".concat(38 + offset, ";2;").concat(rgb[0], ";").concat(rgb[1], ";").concat(rgb[2], "m");
} | See https://en.m.wikipedia.org/wiki/Euclidean_distance#Squared_Euclidean_distance | wrapAnsi16m | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
wrapAnsi16m = (fn, offset) => function () {
const rgb = fn.apply(colorConvert, arguments);
return "\x1B[".concat(38 + offset, ";2;").concat(rgb[0], ";").concat(rgb[1], ";").concat(rgb[2], "m");
} | See https://en.m.wikipedia.org/wiki/Euclidean_distance#Squared_Euclidean_distance | wrapAnsi16m | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
function assembleStyles() {
const codes = new Map();
const styles = {
modifier: {
reset: [0, 0],
// 21 isn't widely supported and 22 does the same thing
bold: [1, 22],
dim: [2, 22],
italic: [3, 23],
underline: [4, 24],
inverse: [7... | See https://en.m.wikipedia.org/wiki/Euclidean_distance#Squared_Euclidean_distance | assembleStyles | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
hasFlag = (flag, argv) => {
argv = argv || process.argv;
const prefix = flag.startsWith('-') ? '' : flag.length === 1 ? '-' : '--';
const pos = argv.indexOf(prefix + flag);
const terminatorPos = argv.indexOf('--');
return pos !== -1 && (terminatorPos === -1 ? true : pos < terminatorPos);
} | See https://en.m.wikipedia.org/wiki/Euclidean_distance#Squared_Euclidean_distance | hasFlag | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
function translateLevel(level) {
if (level === 0) {
return false;
}
return {
level,
hasBasic: true,
has256: level >= 2,
has16m: level >= 3
};
} | See https://en.m.wikipedia.org/wiki/Euclidean_distance#Squared_Euclidean_distance | translateLevel | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
function supportsColor(stream) {
if (forceColor === false) {
return 0;
}
if (hasFlag('color=16m') || hasFlag('color=full') || hasFlag('color=truecolor')) {
return 3;
}
if (hasFlag('color=256')) {
return 2;
}
if (stream && !stream.isTTY && forceColor !== true) {
ret... | See https://en.m.wikipedia.org/wiki/Euclidean_distance#Squared_Euclidean_distance | supportsColor | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
function getSupportLevel(stream) {
const level = supportsColor(stream);
return translateLevel(level);
} | See https://en.m.wikipedia.org/wiki/Euclidean_distance#Squared_Euclidean_distance | getSupportLevel | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
function unescape(c) {
if (c[0] === 'u' && c.length === 5 || c[0] === 'x' && c.length === 3) {
return String.fromCharCode(parseInt(c.slice(1), 16));
}
return ESCAPES.get(c) || c;
} | See https://en.m.wikipedia.org/wiki/Euclidean_distance#Squared_Euclidean_distance | unescape | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
function parseArguments(name, args) {
const results = [];
const chunks = args.trim().split(/\s*,\s*/g);
let matches;
for (const chunk of chunks) {
if (!isNaN(chunk)) {
results.push(Number(chunk));
} else if (matches = chunk.match(STRING_REGEX)) {
results.push(matches[2].repl... | See https://en.m.wikipedia.org/wiki/Euclidean_distance#Squared_Euclidean_distance | parseArguments | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
function parseStyle(style) {
STYLE_REGEX.lastIndex = 0;
const results = [];
let matches;
while ((matches = STYLE_REGEX.exec(style)) !== null) {
const name = matches[1];
if (matches[2]) {
const args = parseArguments(name, matches[2]);
results.push([name].concat(args));
... | See https://en.m.wikipedia.org/wiki/Euclidean_distance#Squared_Euclidean_distance | parseStyle | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
function buildStyle(chalk, styles) {
const enabled = {};
for (const layer of styles) {
for (const style of layer.styles) {
enabled[style[0]] = layer.inverse ? null : style.slice(1);
}
}
let current = chalk;
for (const styleName of Object.keys(enabled)) {
if (Array.isArra... | See https://en.m.wikipedia.org/wiki/Euclidean_distance#Squared_Euclidean_distance | buildStyle | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
templates = (chalk, tmp) => {
const styles = [];
const chunks = [];
let chunk = []; // eslint-disable-next-line max-params
tmp.replace(TEMPLATE_REGEX, (m, escapeChar, inverse, style, close, chr) => {
if (escapeChar) {
chunk.push(unescape(escapeChar));
} else if (style) {
con... | See https://en.m.wikipedia.org/wiki/Euclidean_distance#Squared_Euclidean_distance | templates | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
function applyOptions(obj, options) {
options = options || {}; // Detect level if not set manually
const scLevel = stdoutColor ? stdoutColor.level : 0;
obj.level = options.level === undefined ? scLevel : options.level;
obj.enabled = 'enabled' in options ? options.enabled : obj.level > 0;
} | See https://en.m.wikipedia.org/wiki/Euclidean_distance#Squared_Euclidean_distance | applyOptions | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
function Chalk(options) {
// We check for this.template here since calling `chalk.constructor()`
// by itself will have a `this` of a previously constructed chalk object
if (!this || !(this instanceof Chalk) || this.template) {
const chalk = {};
applyOptions(chalk, options);
c... | See https://en.m.wikipedia.org/wiki/Euclidean_distance#Squared_Euclidean_distance | Chalk | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
get() {
const codes = ansiStyles[key];
return build.call(this, this._styles ? this._styles.concat(codes) : [codes], this._empty, key);
} | See https://en.m.wikipedia.org/wiki/Euclidean_distance#Squared_Euclidean_distance | get | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
get() {
return build.call(this, this._styles || [], true, 'visible');
} | See https://en.m.wikipedia.org/wiki/Euclidean_distance#Squared_Euclidean_distance | get | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
get() {
const level = this.level;
return function () {
const open = ansiStyles.color[levelMapping[level]][model].apply(null, arguments);
const codes = {
open,
close: ansiStyles.color.close,
closeRe: ansiStyles.color.closeRe
... | See https://en.m.wikipedia.org/wiki/Euclidean_distance#Squared_Euclidean_distance | get | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
get() {
const level = this.level;
return function () {
const open = ansiStyles.bgColor[levelMapping[level]][model].apply(null, arguments);
const codes = {
open,
close: ansiStyles.bgColor.close,
closeRe: ansiStyles.bgColor.closeRe
... | See https://en.m.wikipedia.org/wiki/Euclidean_distance#Squared_Euclidean_distance | get | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
function build(_styles, _empty, key) {
const builder = function builder() {
return applyStyle.apply(builder, arguments);
};
builder._styles = _styles;
builder._empty = _empty;
const self = this;
Object.defineProperty(builder, 'level', {
enumerable: true,
get... | See https://en.m.wikipedia.org/wiki/Euclidean_distance#Squared_Euclidean_distance | build | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
builder = function builder() {
return applyStyle.apply(builder, arguments);
} | See https://en.m.wikipedia.org/wiki/Euclidean_distance#Squared_Euclidean_distance | builder | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
builder = function builder() {
return applyStyle.apply(builder, arguments);
} | See https://en.m.wikipedia.org/wiki/Euclidean_distance#Squared_Euclidean_distance | builder | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
get() {
return self.level;
} | See https://en.m.wikipedia.org/wiki/Euclidean_distance#Squared_Euclidean_distance | get | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
set(level) {
self.level = level;
} | See https://en.m.wikipedia.org/wiki/Euclidean_distance#Squared_Euclidean_distance | set | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
get() {
return self.enabled;
} | See https://en.m.wikipedia.org/wiki/Euclidean_distance#Squared_Euclidean_distance | get | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
set(enabled) {
self.enabled = enabled;
} | See https://en.m.wikipedia.org/wiki/Euclidean_distance#Squared_Euclidean_distance | set | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
function applyStyle() {
// Support varags, but simply cast to string in case there's only one arg
const args = arguments;
const argsLen = args.length;
let str = String(arguments[0]);
if (argsLen === 0) {
return '';
}
if (argsLen > 1) {
// Don't slice `argument... | See https://en.m.wikipedia.org/wiki/Euclidean_distance#Squared_Euclidean_distance | applyStyle | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
function chalkTag(chalk, strings) {
if (!Array.isArray(strings)) {
// If chalk() was called by itself or with a string,
// return the string itself as a string.
return [].slice.call(arguments, 1).join(' ');
}
const args = [].slice.call(arguments, 2);
const parts = [strin... | See https://en.m.wikipedia.org/wiki/Euclidean_distance#Squared_Euclidean_distance | chalkTag | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
leven = function leven(a, b) {
if (a === b) {
return 0;
}
var swap = a; // Swapping the strings if `a` is longer than `b` so we know which one is the
// shortest & which one is the longest
if (a.length > b.length) {
a = b;
b = swap;
}
var aLen = a.length;
var bLen = ... | See https://en.m.wikipedia.org/wiki/Euclidean_distance#Squared_Euclidean_distance | leven | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
function createSchema(SchemaConstructor, parameters) {
const schema = new SchemaConstructor(parameters);
const subSchema = Object.create(schema);
for (const handlerKey of HANDLER_KEYS) {
if (handlerKey in parameters) {
subSchema[handlerKey] = normalizeHandler(parameters[handlerKey],... | See https://en.m.wikipedia.org/wiki/Euclidean_distance#Squared_Euclidean_distance | createSchema | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
constructor(parameters) {
this.name = parameters.name;
} | See https://en.m.wikipedia.org/wiki/Euclidean_distance#Squared_Euclidean_distance | constructor | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
static create(parameters) {
// @ts-ignore: https://github.com/Microsoft/TypeScript/issues/5863
return createSchema(this, parameters);
} | See https://en.m.wikipedia.org/wiki/Euclidean_distance#Squared_Euclidean_distance | create | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
default(_utils) {
return undefined;
} | See https://en.m.wikipedia.org/wiki/Euclidean_distance#Squared_Euclidean_distance | default | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
expected(_utils) {
return 'nothing';
} | See https://en.m.wikipedia.org/wiki/Euclidean_distance#Squared_Euclidean_distance | expected | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
validate(_value, _utils) {
return false;
} | See https://en.m.wikipedia.org/wiki/Euclidean_distance#Squared_Euclidean_distance | validate | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
deprecated(_value, _utils) {
return false;
} | See https://en.m.wikipedia.org/wiki/Euclidean_distance#Squared_Euclidean_distance | deprecated | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
forward(_value, _utils) {
return undefined;
} | See https://en.m.wikipedia.org/wiki/Euclidean_distance#Squared_Euclidean_distance | forward | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
redirect(_value, _utils) {
return undefined;
} | See https://en.m.wikipedia.org/wiki/Euclidean_distance#Squared_Euclidean_distance | redirect | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
overlap(currentValue, _newValue, _utils) {
return currentValue;
} | See https://en.m.wikipedia.org/wiki/Euclidean_distance#Squared_Euclidean_distance | overlap | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
preprocess(value, _utils) {
return value;
} | See https://en.m.wikipedia.org/wiki/Euclidean_distance#Squared_Euclidean_distance | preprocess | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
postprocess(value, _utils) {
return value;
} | See https://en.m.wikipedia.org/wiki/Euclidean_distance#Squared_Euclidean_distance | postprocess | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
function normalizeHandler(handler, superSchema, handlerArgumentsLength) {
return typeof handler === 'function' ? (...args) => handler(...args.slice(0, handlerArgumentsLength - 1), superSchema, ...args.slice(handlerArgumentsLength - 1)) : () => handler;
} | See https://en.m.wikipedia.org/wiki/Euclidean_distance#Squared_Euclidean_distance | normalizeHandler | javascript | douyu/juno | assets/public/js/prettier/v2.0.5/standalone.js | https://github.com/douyu/juno/blob/master/assets/public/js/prettier/v2.0.5/standalone.js | Apache-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.