text stringlengths 9 39.2M | dir stringlengths 26 295 | lang stringclasses 185
values | created_date timestamp[us] | updated_date timestamp[us] | repo_name stringlengths 1 97 | repo_full_name stringlengths 7 106 | star int64 1k 183k | len_tokens int64 1 13.8M |
|---|---|---|---|---|---|---|---|---|
```javascript
'use strict';
var valid_styles = ['normal', 'italic', 'oblique', 'inherit'];
module.exports.isValid = function (v) {
return valid_styles.indexOf(v.toLowerCase()) !== -1;
};
module.exports.definition = {
set: function (v) {
this._setProperty('font-style', v);
},
get: function () ... | /content/code_sandbox/node_modules/cssstyle/lib/properties/fontStyle.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 96 |
```javascript
'use strict';
module.exports.definition = {
set: function (v) {
this._setProperty('elevation', v);
},
get: function () {
return this.getPropertyValue('elevation');
},
enumerable: true,
configurable: true
};
``` | /content/code_sandbox/node_modules/cssstyle/lib/properties/elevation.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 57 |
```javascript
'use strict';
module.exports.definition = {
set: function (v) {
this._setProperty('-webkit-background-composite', v);
},
get: function () {
return this.getPropertyValue('-webkit-background-composite');
},
enumerable: true,
configurable: true
};
``` | /content/code_sandbox/node_modules/cssstyle/lib/properties/webkitBackgroundComposite.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 61 |
```javascript
'use strict';
module.exports.definition = {
set: function (v) {
this._setProperty('-webkit-transform-origin-z', v);
},
get: function () {
return this.getPropertyValue('-webkit-transform-origin-z');
},
enumerable: true,
configurable: true
};
``` | /content/code_sandbox/node_modules/cssstyle/lib/properties/webkitTransformOriginZ.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 61 |
```javascript
'use strict';
module.exports.definition = {
set: function (v) {
this._setProperty('volume', v);
},
get: function () {
return this.getPropertyValue('volume');
},
enumerable: true,
configurable: true
};
``` | /content/code_sandbox/node_modules/cssstyle/lib/properties/volume.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 55 |
```javascript
'use strict';
var shorthandSetter = require('../parsers').shorthandSetter;
var shorthandGetter = require('../parsers').shorthandGetter;
var shorthandParser = require('../parsers').shorthandParser;
var shorthand_for = {
'border-left-width': require('./borderLeftWidth'),
'border-left-style': requi... | /content/code_sandbox/node_modules/cssstyle/lib/properties/borderLeft.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 149 |
```javascript
'use strict';
module.exports.definition = {
set: function (v) {
this._setProperty('kerning', v);
},
get: function () {
return this.getPropertyValue('kerning');
},
enumerable: true,
configurable: true
};
``` | /content/code_sandbox/node_modules/cssstyle/lib/properties/kerning.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 59 |
```javascript
'use strict';
module.exports.definition = {
set: function (v) {
this._setProperty('-webkit-nbsp-mode', v);
},
get: function () {
return this.getPropertyValue('-webkit-nbsp-mode');
},
enumerable: true,
configurable: true
};
``` | /content/code_sandbox/node_modules/cssstyle/lib/properties/webkitNbspMode.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 61 |
```javascript
'use strict';
module.exports.definition = {
set: function (v) {
this._setProperty('speak', v);
},
get: function () {
return this.getPropertyValue('speak');
},
enumerable: true,
configurable: true
};
``` | /content/code_sandbox/node_modules/cssstyle/lib/properties/speak.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 57 |
```javascript
'use strict';
module.exports.definition = {
set: function (v) {
this._setProperty('outline-width', v);
},
get: function () {
return this.getPropertyValue('outline-width');
},
enumerable: true,
configurable: true
};
``` | /content/code_sandbox/node_modules/cssstyle/lib/properties/outlineWidth.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 57 |
```javascript
'use strict';
var isValid = require('./borderStyle').isValid;
module.exports.isValid = isValid;
module.exports.definition = {
set: function (v) {
if (isValid(v)) {
if (v.toLowerCase() === 'none') {
v = '';
this.removeProperty('border-left-width');
... | /content/code_sandbox/node_modules/cssstyle/lib/properties/borderLeftStyle.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 110 |
```javascript
'use strict';
module.exports.definition = {
set: function (v) {
this._setProperty('-webkit-margin-before-collapse', v);
},
get: function () {
return this.getPropertyValue('-webkit-margin-before-collapse');
},
enumerable: true,
configurable: true
};
``` | /content/code_sandbox/node_modules/cssstyle/lib/properties/webkitMarginBeforeCollapse.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 61 |
```javascript
'use strict';
module.exports.definition = {
set: function (v) {
this._setProperty('text-line-through', v);
},
get: function () {
return this.getPropertyValue('text-line-through');
},
enumerable: true,
configurable: true
};
``` | /content/code_sandbox/node_modules/cssstyle/lib/properties/textLineThrough.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 59 |
```javascript
'use strict';
module.exports.definition = {
set: function (v) {
this._setProperty('glyph-orientation-horizontal', v);
},
get: function () {
return this.getPropertyValue('glyph-orientation-horizontal');
},
enumerable: true,
configurable: true
};
``` | /content/code_sandbox/node_modules/cssstyle/lib/properties/glyphOrientationHorizontal.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 61 |
```javascript
'use strict';
module.exports.definition = {
set: function (v) {
this._setProperty('-webkit-animation-play-state', v);
},
get: function () {
return this.getPropertyValue('-webkit-animation-play-state');
},
enumerable: true,
configurable: true
};
``` | /content/code_sandbox/node_modules/cssstyle/lib/properties/webkitAnimationPlayState.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 61 |
```javascript
'use strict';
module.exports.definition = {
set: function (v) {
this._setProperty('border-bottom-left-radius', v);
},
get: function () {
return this.getPropertyValue('border-bottom-left-radius');
},
enumerable: true,
configurable: true
};
``` | /content/code_sandbox/node_modules/cssstyle/lib/properties/borderBottomLeftRadius.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 61 |
```javascript
'use strict';
module.exports.definition = {
set: function (v) {
this._setProperty('background-size', v);
},
get: function () {
return this.getPropertyValue('background-size');
},
enumerable: true,
configurable: true
};
``` | /content/code_sandbox/node_modules/cssstyle/lib/properties/backgroundSize.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 57 |
```javascript
'use strict';
module.exports.definition = {
set: function (v) {
this._setProperty('page', v);
},
get: function () {
return this.getPropertyValue('page');
},
enumerable: true,
configurable: true
};
``` | /content/code_sandbox/node_modules/cssstyle/lib/properties/page.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 55 |
```javascript
'use strict';
var TYPES = require('../parsers').TYPES;
var valueType = require('../parsers').valueType;
module.exports.isValid = function isValid(v) {
var type = valueType(v);
return (type === TYPES.KEYWORD && (v.toLowerCase() === 'normal') || (v.toLowerCase() === 'inherit')) ||
type ===... | /content/code_sandbox/node_modules/cssstyle/lib/properties/lineHeight.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 139 |
```javascript
'use strict';
module.exports.definition = {
set: function (v) {
this._setProperty('resize', v);
},
get: function () {
return this.getPropertyValue('resize');
},
enumerable: true,
configurable: true
};
``` | /content/code_sandbox/node_modules/cssstyle/lib/properties/resize.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 55 |
```javascript
'use strict';
module.exports.definition = {
set: function (v) {
this._setProperty('-webkit-perspective', v);
},
get: function () {
return this.getPropertyValue('-webkit-perspective');
},
enumerable: true,
configurable: true
};
``` | /content/code_sandbox/node_modules/cssstyle/lib/properties/webkitPerspective.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 59 |
```javascript
'use strict';
module.exports.definition = {
set: function (v) {
this._setProperty('-webkit-min-logical-height', v);
},
get: function () {
return this.getPropertyValue('-webkit-min-logical-height');
},
enumerable: true,
configurable: true
};
``` | /content/code_sandbox/node_modules/cssstyle/lib/properties/webkitMinLogicalHeight.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 63 |
```javascript
'use strict';
module.exports.definition = {
set: function (v) {
this._setProperty('-webkit-mask-clip', v);
},
get: function () {
return this.getPropertyValue('-webkit-mask-clip');
},
enumerable: true,
configurable: true
};
``` | /content/code_sandbox/node_modules/cssstyle/lib/properties/webkitMaskClip.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 61 |
```javascript
'use strict';
module.exports.definition = {
set: function (v) {
this._setProperty('-webkit-padding-before', v);
},
get: function () {
return this.getPropertyValue('-webkit-padding-before');
},
enumerable: true,
configurable: true
};
``` | /content/code_sandbox/node_modules/cssstyle/lib/properties/webkitPaddingBefore.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 59 |
```javascript
'use strict';
module.exports.definition = {
set: function (v) {
this._setProperty('-webkit-border-start', v);
},
get: function () {
return this.getPropertyValue('-webkit-border-start');
},
enumerable: true,
configurable: true
};
``` | /content/code_sandbox/node_modules/cssstyle/lib/properties/webkitBorderStart.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 59 |
```javascript
'use strict';
var parsers = require('../parsers');
var parse = function parse(v) {
var parsed = parsers.parseColor(v);
if (parsed !== undefined) {
return parsed;
}
if (parsers.valueType(v) === parsers.TYPES.KEYWORD && (v.toLowerCase() === 'transparent' || v.toLowerCase() === 'inh... | /content/code_sandbox/node_modules/cssstyle/lib/properties/backgroundColor.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 175 |
```javascript
'use strict';
module.exports.definition = {
set: function (v) {
this._setProperty('z-index', v);
},
get: function () {
return this.getPropertyValue('z-index');
},
enumerable: true,
configurable: true
};
``` | /content/code_sandbox/node_modules/cssstyle/lib/properties/zIndex.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 57 |
```javascript
'use strict';
module.exports.definition = {
set: function (v) {
this._setProperty('white-space', v);
},
get: function () {
return this.getPropertyValue('white-space');
},
enumerable: true,
configurable: true
};
``` | /content/code_sandbox/node_modules/cssstyle/lib/properties/whiteSpace.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 57 |
```javascript
'use strict';
var parseColor = require('../parsers').parseColor;
module.exports.definition = {
set: function (v) {
this._setProperty('outline-color', parseColor(v));
},
get: function () {
return this.getPropertyValue('outline-color');
},
enumerable: true,
configur... | /content/code_sandbox/node_modules/cssstyle/lib/properties/outlineColor.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 70 |
```javascript
'use strict';
module.exports.definition = {
set: function (v) {
this._setProperty('-webkit-box-reflect', v);
},
get: function () {
return this.getPropertyValue('-webkit-box-reflect');
},
enumerable: true,
configurable: true
};
``` | /content/code_sandbox/node_modules/cssstyle/lib/properties/webkitBoxReflect.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 61 |
```javascript
'use strict';
module.exports.definition = {
set: function (v) {
this._setProperty('page-break-before', v);
},
get: function () {
return this.getPropertyValue('page-break-before');
},
enumerable: true,
configurable: true
};
``` | /content/code_sandbox/node_modules/cssstyle/lib/properties/pageBreakBefore.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 59 |
```javascript
'use strict';
module.exports.definition = {
set: function (v) {
this._setProperty('-webkit-line-snap', v);
},
get: function () {
return this.getPropertyValue('-webkit-line-snap');
},
enumerable: true,
configurable: true
};
``` | /content/code_sandbox/node_modules/cssstyle/lib/properties/webkitLineSnap.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 61 |
```javascript
'use strict';
module.exports.definition = {
set: function (v) {
this._setProperty('cue', v);
},
get: function () {
return this.getPropertyValue('cue');
},
enumerable: true,
configurable: true
};
``` | /content/code_sandbox/node_modules/cssstyle/lib/properties/cue.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 55 |
```javascript
'use strict';
module.exports.definition = {
set: function (v) {
this._setProperty('border-top-right-radius', v);
},
get: function () {
return this.getPropertyValue('border-top-right-radius');
},
enumerable: true,
configurable: true
};
``` | /content/code_sandbox/node_modules/cssstyle/lib/properties/borderTopRightRadius.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 61 |
```javascript
'use strict';
module.exports.definition = {
set: function (v) {
this._setProperty('-webkit-region-break-inside', v);
},
get: function () {
return this.getPropertyValue('-webkit-region-break-inside');
},
enumerable: true,
configurable: true
};
``` | /content/code_sandbox/node_modules/cssstyle/lib/properties/webkitRegionBreakInside.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 63 |
```javascript
'use strict';
module.exports.definition = {
set: function (v) {
this._setProperty('background-repeat-y', v);
},
get: function () {
return this.getPropertyValue('background-repeat-y');
},
enumerable: true,
configurable: true
};
``` | /content/code_sandbox/node_modules/cssstyle/lib/properties/backgroundRepeatY.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 59 |
```javascript
'use strict';
var margin = require('./margin.js');
var parsers = require('../parsers.js');
module.exports.definition = {
set: parsers.subImplicitSetter('margin', 'right', margin.isValid, margin.parser),
get: function () {
return this.getPropertyValue('margin-right');
},
enumerabl... | /content/code_sandbox/node_modules/cssstyle/lib/properties/marginRight.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 72 |
```javascript
'use strict';
module.exports.definition = {
set: function (v) {
this._setProperty('alignment-baseline', v);
},
get: function () {
return this.getPropertyValue('alignment-baseline');
},
enumerable: true,
configurable: true
};
``` | /content/code_sandbox/node_modules/cssstyle/lib/properties/alignmentBaseline.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 59 |
```javascript
'use strict';
module.exports.definition = {
set: function (v) {
this._setProperty('-webkit-animation-name', v);
},
get: function () {
return this.getPropertyValue('-webkit-animation-name');
},
enumerable: true,
configurable: true
};
``` | /content/code_sandbox/node_modules/cssstyle/lib/properties/webkitAnimationName.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 59 |
```javascript
'use strict';
module.exports.definition = {
set: function (v) {
this._setProperty('border-radius', v);
},
get: function () {
return this.getPropertyValue('border-radius');
},
enumerable: true,
configurable: true
};
``` | /content/code_sandbox/node_modules/cssstyle/lib/properties/borderRadius.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 57 |
```javascript
'use strict';
module.exports.definition = {
set: function (v) {
this._setProperty('-webkit-marquee', v);
},
get: function () {
return this.getPropertyValue('-webkit-marquee');
},
enumerable: true,
configurable: true
};
``` | /content/code_sandbox/node_modules/cssstyle/lib/properties/webkitMarquee.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 59 |
```javascript
'use strict';
module.exports.definition = {
set: function (v) {
this._setProperty('speak-numeral', v);
},
get: function () {
return this.getPropertyValue('speak-numeral');
},
enumerable: true,
configurable: true
};
``` | /content/code_sandbox/node_modules/cssstyle/lib/properties/speakNumeral.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 61 |
```javascript
'use strict';
module.exports.definition = {
set: function (v) {
this._setProperty('-webkit-hyphens', v);
},
get: function () {
return this.getPropertyValue('-webkit-hyphens');
},
enumerable: true,
configurable: true
};
``` | /content/code_sandbox/node_modules/cssstyle/lib/properties/webkitHyphens.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 63 |
```javascript
'use strict';
module.exports.definition = {
set: function (v) {
this._setProperty('word-spacing', v);
},
get: function () {
return this.getPropertyValue('word-spacing');
},
enumerable: true,
configurable: true
};
``` | /content/code_sandbox/node_modules/cssstyle/lib/properties/wordSpacing.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 57 |
```javascript
'use strict';
module.exports.definition = {
set: function (v) {
this._setProperty('-webkit-appearance', v);
},
get: function () {
return this.getPropertyValue('-webkit-appearance');
},
enumerable: true,
configurable: true
};
``` | /content/code_sandbox/node_modules/cssstyle/lib/properties/webkitAppearance.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 59 |
```javascript
'use strict';
module.exports.definition = {
set: function (v) {
this._setProperty('-webkit-column-rule', v);
},
get: function () {
return this.getPropertyValue('-webkit-column-rule');
},
enumerable: true,
configurable: true
};
``` | /content/code_sandbox/node_modules/cssstyle/lib/properties/webkitColumnRule.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 59 |
```javascript
'use strict';
module.exports.definition = {
set: function (v) {
this._setProperty('border-image-width', v);
},
get: function () {
return this.getPropertyValue('border-image-width');
},
enumerable: true,
configurable: true
};
``` | /content/code_sandbox/node_modules/cssstyle/lib/properties/borderImageWidth.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 59 |
```javascript
'use strict';
module.exports.definition = {
set: function (v) {
this._setProperty('counter-reset', v);
},
get: function () {
return this.getPropertyValue('counter-reset');
},
enumerable: true,
configurable: true
};
``` | /content/code_sandbox/node_modules/cssstyle/lib/properties/counterReset.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 57 |
```shell
#!/bin/sh
node ./scripts/generate_properties.js
nodeunit tests
``` | /content/code_sandbox/node_modules/cssstyle/scripts/run_tests.sh | shell | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 17 |
```javascript
'use strict';
var through = require('through2');
var falafel = require('falafel');
module.exports = apply;
function apply() {
var buffers = [];
return through(function(chunk, enc, next) {
buffers.push(chunk);
next();
}, function(next) {
var resp = falafel(Buffer.concat(buffers).toStrin... | /content/code_sandbox/node_modules/inline-process-browser/index.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 161 |
```javascript
"use strict";
function noop() { }
function once(emitter, name) {
const o = once.spread(emitter, name);
const r = o.then((args) => args[0]);
r.cancel = o.cancel;
return r;
}
(function (once) {
function spread(emitter, name) {
let c = null;
const p = new Promise((resolve,... | /content/code_sandbox/node_modules/@tootallnate/once/dist/index.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 229 |
```javascript
'use strict';
var fs = require('fs');
var path = require('path');
var babylon = require('babylon');
var t = require('babel-types');
var generate = require('babel-generator').default;
var traverse = require('babel-traverse').default;
var resolve = require('resolve');
var camelToDashed = require('../lib/p... | /content/code_sandbox/node_modules/cssstyle/scripts/generate_properties.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 1,972 |
```javascript
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
const agent_1 = __importDefault(require("./agent"));
function createHttpsProxyAgent(opts) {
return new agent_1.default(opts);
}
(function (createHttp... | /content/code_sandbox/node_modules/https-proxy-agent/dist/index.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 131 |
```javascript
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const debug_1 = __importDefault(require("debug"));
const debug = debug_1.default('https-pr... | /content/code_sandbox/node_modules/https-proxy-agent/dist/parse-proxy-response.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 503 |
```javascript
"use strict";
var __awaiter = (this && this.__awaiter) || function (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 fulfil... | /content/code_sandbox/node_modules/https-proxy-agent/dist/agent.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 1,704 |
```javascript
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports):"function"==typeof define&&define.amd?define(["exports"],r):r(e.URI=e.URI||{})}(this,function(e){"use strict";function r(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];if(r.length>1){r[0]=r[0].slice(0,-1)... | /content/code_sandbox/node_modules/uri-js/dist/es5/uri.all.min.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 6,416 |
```javascript
import { buildExps } from "./regexps-uri";
export default buildExps(true);
//# sourceMappingURL=regexps-iri.js.map
``` | /content/code_sandbox/node_modules/uri-js/dist/esnext/regexps-iri.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 29 |
```javascript
import { merge, subexp } from "./util";
export function buildExps(isIRI) {
const ALPHA$$ = "[A-Za-z]", CR$ = "[\\x0D]", DIGIT$$ = "[0-9]", DQUOTE$$ = "[\\x22]", HEXDIG$$ = merge(DIGIT$$, "[A-Fa-f]"), //case-insensitive
LF$$ = "[\\x0A]", SP$$ = "[\\x20]", PCT_ENCODED$ = subexp(subexp("%[EFef]" + HE... | /content/code_sandbox/node_modules/uri-js/dist/esnext/regexps-uri.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 2,908 |
```javascript
import { SCHEMES } from "./uri";
import http from "./schemes/http";
SCHEMES[http.scheme] = http;
import https from "./schemes/https";
SCHEMES[https.scheme] = https;
import ws from "./schemes/ws";
SCHEMES[ws.scheme] = ws;
import wss from "./schemes/wss";
SCHEMES[wss.scheme] = wss;
import mailto from "./sch... | /content/code_sandbox/node_modules/uri-js/dist/esnext/index.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 159 |
```javascript
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
(factory((global.URI = global.URI || {})));
}(this, (function (exports) { 'use strict';
function merge() {
for... | /content/code_sandbox/node_modules/uri-js/dist/es5/uri.all.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 15,290 |
```javascript
/**
* URI.js
*
* @fileoverview An RFC 3986 compliant, scheme extendable URI parsing/validating/resolving library for JavaScript.
* @author <a href="mailto:gary.court@gmail.com">Gary Court</a>
* @see path_to_url
*/
/**
*
* Redistribution and use in source and binary forms, with or without modificat... | /content/code_sandbox/node_modules/uri-js/dist/esnext/uri.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 4,493 |
```javascript
export function merge(...sets) {
if (sets.length > 1) {
sets[0] = sets[0].slice(0, -1);
const xl = sets.length - 1;
for (let x = 1; x < xl; ++x) {
sets[x] = sets[x].slice(1, -1);
}
sets[xl] = sets[xl].slice(1);
return sets.join('');
}
... | /content/code_sandbox/node_modules/uri-js/dist/esnext/util.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 294 |
```javascript
import http from "./http";
const handler = {
scheme: "https",
domainHost: http.domainHost,
parse: http.parse,
serialize: http.serialize
};
export default handler;
//# sourceMappingURL=https.js.map
``` | /content/code_sandbox/node_modules/uri-js/dist/esnext/schemes/https.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 47 |
```javascript
const handler = {
scheme: "http",
domainHost: true,
parse: function (components, options) {
//report missing host
if (!components.host) {
components.error = components.error || "HTTP URIs must have a host.";
}
return components;
},
serialize:... | /content/code_sandbox/node_modules/uri-js/dist/esnext/schemes/http.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 203 |
```javascript
import { pctEncChar, pctDecChars, unescapeComponent } from "../uri";
import punycode from "punycode";
import { merge, subexp, toUpperCase, toArray } from "../util";
const O = {};
const isIRI = true;
//RFC 3986
const UNRESERVED$$ = "[A-Za-z0-9\\-\\.\\_\\~" + (isIRI ? "\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\... | /content/code_sandbox/node_modules/uri-js/dist/esnext/schemes/mailto.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 2,236 |
```javascript
function isSecure(wsComponents) {
return typeof wsComponents.secure === 'boolean' ? wsComponents.secure : String(wsComponents.scheme).toLowerCase() === "wss";
}
//RFC 6455
const handler = {
scheme: "ws",
domainHost: true,
parse: function (components, options) {
const wsComponents =... | /content/code_sandbox/node_modules/uri-js/dist/esnext/schemes/ws.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 354 |
```javascript
import { SCHEMES } from "../uri";
const NID$ = "(?:[0-9A-Za-z][0-9A-Za-z\\-]{1,31})";
const PCT_ENCODED$ = "(?:\\%[0-9A-Fa-f]{2})";
const TRANS$$ = "[0-9A-Za-z\\(\\)\\+\\,\\-\\.\\:\\=\\@\\;\\$\\_\\!\\*\\'\\/\\?\\#]";
const NSS$ = "(?:(?:" + PCT_ENCODED$ + "|" + TRANS$$ + ")+)";
const URN_SCHEME = new RegE... | /content/code_sandbox/node_modules/uri-js/dist/esnext/schemes/urn.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 549 |
```javascript
const UUID = /^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/;
const UUID_PARSE = /^[0-9A-Fa-f\-]{36}/;
//RFC 4122
const handler = {
scheme: "urn:uuid",
parse: function (urnComponents, options) {
const uuidComponents = urnComponents;
uuidComponents.uuid = uuidComponents.n... | /content/code_sandbox/node_modules/uri-js/dist/esnext/schemes/urn-uuid.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 218 |
```javascript
import ws from "./ws";
const handler = {
scheme: "wss",
domainHost: ws.domainHost,
parse: ws.parse,
serialize: ws.serialize
};
export default handler;
//# sourceMappingURL=wss.js.map
``` | /content/code_sandbox/node_modules/uri-js/dist/esnext/schemes/wss.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 49 |
```javascript
'use strict';
const WebSocket = require('./lib/websocket');
WebSocket.Server = require('./lib/websocket-server');
WebSocket.Receiver = require('./lib/receiver');
WebSocket.Sender = require('./lib/sender');
module.exports = WebSocket;
``` | /content/code_sandbox/node_modules/ws/index.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 48 |
```javascript
'use strict';
module.exports = function() {
throw new Error(
'ws does not work in the browser. Browser clients must use the native ' +
'WebSocket object'
);
};
``` | /content/code_sandbox/node_modules/ws/browser.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 41 |
```javascript
'use strict';
const { Writable } = require('stream');
const PerMessageDeflate = require('./permessage-deflate');
const {
BINARY_TYPES,
EMPTY_BUFFER,
kStatusCode,
kWebSocket
} = require('./constants');
const { concat, toArrayBuffer, unmask } = require('./buffer-util');
const { isValidStatusCode, ... | /content/code_sandbox/node_modules/ws/lib/receiver.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 3,239 |
```javascript
'use strict';
try {
const isValidUTF8 = require('utf-8-validate');
exports.isValidUTF8 =
typeof isValidUTF8 === 'object'
? isValidUTF8.Validation.isValidUTF8 // utf-8-validate@<3.0.0
: isValidUTF8;
} catch (e) /* istanbul ignore next */ {
exports.isValidUTF8 = () => true;
}
/**
*... | /content/code_sandbox/node_modules/ws/lib/validation.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 203 |
```javascript
'use strict';
/**
* Class representing an event.
*
* @private
*/
class Event {
/**
* Create a new `Event`.
*
* @param {String} type The name of the event
* @param {Object} target A reference to the target to which the event was dispatched
*/
constructor(type, target) {
this.tar... | /content/code_sandbox/node_modules/ws/lib/event-target.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 945 |
```javascript
'use strict';
const EventEmitter = require('events');
const crypto = require('crypto');
const https = require('https');
const http = require('http');
const net = require('net');
const tls = require('tls');
const url = require('url');
const PerMessageDeflate = require('./permessage-deflate');
const Event... | /content/code_sandbox/node_modules/ws/lib/websocket.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 5,834 |
```javascript
'use strict';
const EventEmitter = require('events');
const crypto = require('crypto');
const http = require('http');
const PerMessageDeflate = require('./permessage-deflate');
const extension = require('./extension');
const WebSocket = require('./websocket');
const { GUID } = require('./constants');
c... | /content/code_sandbox/node_modules/ws/lib/websocket-server.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 2,716 |
```javascript
'use strict';
//
// Allowed token characters:
//
// '!', '#', '$', '%', '&', ''', '*', '+', '-',
// '.', 0-9, A-Z, '^', '_', '`', a-z, '|', '~'
//
// tokenChars[32] === 0 // ' '
// tokenChars[33] === 1 // '!'
// tokenChars[34] === 0 // '"'
// ...
//
// prettier-ignore
const tokenChars = [
0, 0, 0, 0, 0... | /content/code_sandbox/node_modules/ws/lib/extension.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 2,127 |
```javascript
'use strict';
const { randomBytes } = require('crypto');
const PerMessageDeflate = require('./permessage-deflate');
const { EMPTY_BUFFER } = require('./constants');
const { isValidStatusCode } = require('./validation');
const { mask: applyMask, toBuffer } = require('./buffer-util');
/**
* HyBi Sender ... | /content/code_sandbox/node_modules/ws/lib/sender.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 2,537 |
```javascript
'use strict';
module.exports = {
BINARY_TYPES: ['nodebuffer', 'arraybuffer', 'fragments'],
GUID: '258EAFA5-E914-47DA-95CA-C5AB0DC85B11',
kStatusCode: Symbol('status-code'),
kWebSocket: Symbol('websocket'),
EMPTY_BUFFER: Buffer.alloc(0),
NOOP: () => {}
};
``` | /content/code_sandbox/node_modules/ws/lib/constants.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 84 |
```javascript
'use strict';
const Limiter = require('async-limiter');
const zlib = require('zlib');
const bufferUtil = require('./buffer-util');
const { kStatusCode, NOOP } = require('./constants');
const TRAILER = Buffer.from([0x00, 0x00, 0xff, 0xff]);
const EMPTY_BLOCK = Buffer.from([0x00]);
const kPerMessageDefl... | /content/code_sandbox/node_modules/ws/lib/permessage-deflate.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 3,403 |
```javascript
'use strict';
const { EMPTY_BUFFER } = require('./constants');
/**
* Merges an array of buffers into a new buffer.
*
* @param {Buffer[]} list The array of buffers to concat
* @param {Number} totalLength The total length of buffers in the list
* @return {Buffer} The resulting buffer
* @public
*/
f... | /content/code_sandbox/node_modules/ws/lib/buffer-util.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 887 |
```javascript
var pSlice = Array.prototype.slice;
var Object_keys = typeof Object.keys === 'function'
? Object.keys
: function (obj) {
var keys = [];
for (var key in obj) keys.push(key);
return keys;
}
;
var deepEqual = module.exports = function (actual, expected) {
// enforce Obj... | /content/code_sandbox/node_modules/deep-is/index.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 805 |
```javascript
var equal = require('../');
console.dir([
equal(
{ a : [ 2, 3 ], b : [ 4 ] },
{ a : [ 2, 3 ], b : [ 4 ] }
),
equal(
{ x : 5, y : [6] },
{ x : 5, y : 6 }
)
]);
``` | /content/code_sandbox/node_modules/deep-is/example/cmp.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 82 |
```javascript
var test = require('tape');
var equal = require('../');
test('0 values', function (t) {
t.ok(equal( 0, 0), ' 0 === 0');
t.ok(equal( 0, +0), ' 0 === +0');
t.ok(equal(+0, +0), '+0 === +0');
t.ok(equal(-0, -0), '-0 === -0');
t.notOk(equal(-0, 0), '-0 !== 0');
t.notOk(equal(-0, +... | /content/code_sandbox/node_modules/deep-is/test/neg-vs-pos-0.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 135 |
```markdown
deep-is
==========
Node's `assert.deepEqual() algorithm` as a standalone module. Exactly like
[deep-equal](path_to_url except for the fact that `deepEqual(NaN, NaN) === true`.
This module is around [5 times faster](path_to_url
than wrapping `assert.deepEqual()` in a `try/catch`.
[;
var equal = require('../');
test('equal', function (t) {
t.ok(equal(
{ a : [ 2, 3 ], b : [ 4 ] },
{ a : [ 2, 3 ], b : [ 4 ] }
));
t.end();
});
test('not equal', function (t) {
t.notOk(equal(
{ x : 5, y : [6] },
{ x : 5, y : 6 }
... | /content/code_sandbox/node_modules/deep-is/test/cmp.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 154 |
```javascript
'use strict';
// do not edit .js files directly - edit src/index.jst
module.exports = function equal(a, b) {
if (a === b) return true;
if (a && b && typeof a == 'object' && typeof b == 'object') {
if (a.constructor !== b.constructor) return false;
var length, i, keys;
if (Array.isArr... | /content/code_sandbox/node_modules/fast-deep-equal/index.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 314 |
```javascript
var test = require('tape');
var equal = require('../');
test('NaN and 0 values', function (t) {
t.ok(equal(NaN, NaN));
t.notOk(equal(0, NaN));
t.ok(equal(0, 0));
t.notOk(equal(0, 1));
t.end();
});
test('nested NaN values', function (t) {
t.ok(equal([ NaN, 1, NaN ], [ NaN, 1, NaN... | /content/code_sandbox/node_modules/deep-is/test/NaN.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 109 |
```javascript
'use strict';
// do not edit .js files directly - edit src/index.jst
var envHasBigInt64Array = typeof BigInt64Array !== 'undefined';
module.exports = function equal(a, b) {
if (a === b) return true;
if (a && b && typeof a == 'object' && typeof b == 'object') {
if (a.constructor !== b.const... | /content/code_sandbox/node_modules/fast-deep-equal/es6/index.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 525 |
```javascript
'use strict';
// do not edit .js files directly - edit src/index.jst
module.exports = function equal(a, b) {
if (a === b) return true;
if (a && b && typeof a == 'object' && typeof b == 'object') {
if (a.constructor !== b.constructor) return false;
var length, i, keys;
if (Array.isArr... | /content/code_sandbox/node_modules/fast-deep-equal/react.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 373 |
```javascript
function Caseless (dict) {
this.dict = dict || {}
}
Caseless.prototype.set = function (name, value, clobber) {
if (typeof name === 'object') {
for (var i in name) {
this.set(i, name[i], value)
}
} else {
if (typeof clobber === 'undefined') clobber = true
var has = this.has(name... | /content/code_sandbox/node_modules/caseless/index.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 497 |
```javascript
'use strict';
// do not edit .js files directly - edit src/index.jst
var envHasBigInt64Array = typeof BigInt64Array !== 'undefined';
module.exports = function equal(a, b) {
if (a === b) return true;
if (a && b && typeof a == 'object' && typeof b == 'object') {
if (a.constructor !== b.const... | /content/code_sandbox/node_modules/fast-deep-equal/es6/react.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 584 |
```javascript
var tape = require('tape')
, caseless = require('./')
;
tape('set get has', function (t) {
var headers = {}
, c = caseless(headers)
;
t.plan(17)
c.set('a-Header', 'asdf')
t.equal(c.get('a-header'), 'asdf')
t.equal(c.has('a-header'), 'a-Header')
t.ok(!c.has('nothing'))
// old bug... | /content/code_sandbox/node_modules/caseless/test.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 518 |
```html
<!DOCTYPE html>
<!--[if IE 8]> <html class="no-js lt-ie9" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
<head>
<meta charset="utf-8" />
<title>Esprima</title>
<meta name="viewport" content="width=device-width" />
<link rel="stylesheet" type="text/css"... | /content/code_sandbox/node_modules/esprima-fb/index.html | html | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 1,626 |
```javascript
/*
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistribut... | /content/code_sandbox/node_modules/esprima-fb/esprima.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 45,008 |
```html
<!DOCTYPE html>
<!--[if IE 8]> <html class="no-js lt-ie9" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
<head>
<meta charset="utf-8" />
<title>Esprima: Module Loading Test</title>
<meta name="viewport" content="width=device-width" />
<link rel="styles... | /content/code_sandbox/node_modules/esprima-fb/test/module.html | html | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 1,140 |
```html
<!DOCTYPE html>
<!--[if IE 8]> <html class="no-js lt-ie9" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
<head>
<meta charset="utf-8" />
<title>Esprima: Speed Comparisons</title>
<meta name="viewport" content="width=device-width" />
<link rel="styleshe... | /content/code_sandbox/node_modules/esprima-fb/test/compare.html | html | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 1,470 |
```javascript
/*
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistribut... | /content/code_sandbox/node_modules/esprima-fb/test/runner.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 2,961 |
```javascript
// This is modified from Mozilla Reflect.parse test suite (the file is located
// at js/src/tests/js1_8_5/extensions/reflect-parse.js in the source tree).
//
// Some notable changes:
// * Removed unsupported features (destructuring, let, comprehensions...).
// * Removed tests for E4X (ECMAScript for X... | /content/code_sandbox/node_modules/esprima-fb/test/reflect.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 6,253 |
```javascript
/*jslint browser:true plusplus:true */
/*global require:true */
function runTests() {
'use strict';
function setText(el, str) {
if (typeof el.innerText === 'string') {
el.innerText = str;
} else {
el.textContent = str;
}
}
function reportSu... | /content/code_sandbox/node_modules/esprima-fb/test/module.js | javascript | 2016-03-11T09:28:00 | 2024-08-16T17:55:54 | antSword | AntSwordProject/antSword | 3,579 | 923 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.