code stringlengths 2 1.05M |
|---|
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'... |
var assert = require('assert');
var R = require('../source');
describe('toString', function() {
it('returns the string representation of null', function() {
assert.strictEqual(R.toString(null), 'null');
});
it('returns the string representation of undefined', function() {
assert.strictEqual(R.toStrin... |
/*globals describe, it, expect, ModelList, ModelListMapper */
describe('ModelListMapper', function() {
it('returns the model list', function() {
expect(ModelListMapper.get()).toBe(ModelList.data);
});
}); |
import isArray from 'lodash/lang/isArray';
import uniqueId from 'lodash/utility/uniqueId';
import React, { PropTypes } from 'react';
import Leaflet from 'leaflet';
import boundsType from './types/bounds';
import latlngType from './types/latlng';
import MapComponent from './MapComponent';
const normalizeCenter = pos... |
Clazz.declarePackage ("J.renderspecial");
Clazz.load (["J.render.ShapeRenderer", "JU.P3", "$.P3i", "$.V3"], "J.renderspecial.VectorsRenderer", ["J.shape.Shape", "J.util.Vibration"], function () {
c$ = Clazz.decorateAsClass (function () {
this.pointVectorEnd = null;
this.pointArrowHead = null;
this.screenVectorEnd = nul... |
$(document).ready(function(){
//$('#comment_page_controller').hide();
$('#text_event_name').text("Error: Invalid event name ");
var eventName = getURLParameter("q");
var teamName = getURLParameter("team");
if (eventName != null && eventName !== '' && teamName != null && teamName !== '') {
$('#text_event_name').t... |
/**
* Password Template Script
* ------------------------------------------------------------------------------
* A file that contains scripts highly couple code to the Password template.
*
* @namespace password
*/
theme.customerLogin = (function() {
var config = {
recoverPasswordForm: '#RecoverPassword',
... |
var browserAdapter = {
jumpTo : function (url) {
window.location.assign(url);
}
};
var events = {
makeRowBodyClickable : function () {
$('.event-row').css('cursor', 'pointer');
$('.event-row').on('click', function (event) {
var clicked_row = $(this);
var href... |
'use strict';
describe('Core Tests:', function () {
// TODO: Add chat socket tests
});
|
'use strict';
angular
.module('softvApp')
.controller('NuevaPreguntaCtrl', function ($uibModal, $rootScope, ngNotify, encuestasFactory, $state) {
function initialData() {
encuestasFactory.GetResOpcMultsList().then(function (data) {
console.log(data);
vm.Respuestas_ = data.GetResOpcMultsLi... |
// Deflate coverage tests
/*global describe, it*/
'use strict';
var assert = require('assert');
var fs = require('fs');
var path = require('path');
var c = require('../lib/zlib/constants');
var msg = require('../lib/zlib/messages');
var zlib_deflate = require('../lib/zlib/deflate.js');
var zstream... |
/**
* @private
*
* A general {@link Ext.picker.Picker} slot class. Slots are used to organize multiple scrollable slots into
* a single {@link Ext.picker.Picker}.
*
* {
* name : 'limit_speed',
* title: 'Speed Limit',
* data : [
* {text: '50 KB/s', value: 50},
* ... |
// Copyright Joyent, Inc. and other Node contributors.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modi... |
import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import styles from './heading.css';
const Heading = ({
text, headingLines, theme, ...otherProps
}) => {
const classes = classNames({
[`${styles.heading}`]: true,
[`${styles[theme]}`]: true,
[`${styles.he... |
import join from "url-join";
import { root } from "../config";
export default function path(str) {
return join(root, str);
}
|
/// <reference path="../../observable.ts"/>
/// <reference path="../../concurrency/scheduler.ts" />
(function () {
var o;
var o2;
o = o.skipUntilWithTime(new Date());
o = o.skipUntilWithTime(new Date(), Rx.Scheduler.default);
o = o.skipUntilWithTime(1000);
o = o.skipUntilWithTime(1000, Rx.Schedu... |
export { default } from 'ember-cli-semantic-ui/components/ui-popup'; |
class AppHeaderCtrl {
constructor(AppConstants, User, $scope) {
'ngInject';
this.appName = AppConstants.appName;
this.currentUser = User.current;
this.secure = AppConstants.secure;
$scope.$watch('User.current', (newUser)=>{
this.currentUser = newUser;
})
}
}
let AppHeader = {
c... |
var test = require('../');
var childRan = false;
test('parent', function (t) {
t.test('child', function (t) {
childRan = true;
t.pass('child ran');
t.end();
});
t.end();
});
test('uncle', function (t) {
t.ok(childRan, 'Child should run before next top-level test');
t.end()... |
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
import _extends from "@babel/runtime/helpers/esm/extends";
import * as React from 'react';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import { unstable_composeClasses as composeClasses } from '@material-ui/unsty... |
"use strict";
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _extends2 = _interopRequireDefaul... |
import extend from '../../../../extend';
import LineSegment from '../geom/LineSegment';
import LineSegmentIndex from './LineSegmentIndex';
import RobustLineIntersector from '../algorithm/RobustLineIntersector';
export default function TaggedLineStringSimplifier() {
this.li = new RobustLineIntersector();
this.inputInd... |
import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fillOpacity=".3" d="M2 22h20V2L2 22z" /><path d="M17 7L2 22h15V7z" /></React.Fragment>
, 'NetworkCellOutlined');
|
import config from '../config';
import gulp from 'gulp';
import gulpif from 'gulp-if';
import sourcemaps from 'gulp-sourcemaps';
import sass from 'gulp-sass';
import handleErrors from '../util/handleErrors';
import browserSync from 'browser-sync';
import autoprefixer from 'gulp-autoprefix... |
/**
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/
'use strict';
const throws = () => {
expect.assertions(2);
expect(false).toBeTruthy();
};
const redecl... |
/*global define*/
/*global describe, it, expect*/
/*global jasmine*/
/*global beforeEach, afterEach*/
/*jslint white: true*/
define([
'kbaseNarrativeDataList'
], function(Widget) {
describe('Test the kbaseNarrativeDataList widget', function() {
it('Should do things', function() {
});
});
})... |
version https://git-lfs.github.com/spec/v1
oid sha256:c57e113e6c65c7fca0a5c5b8d409b644397b1521eeab8d08b186d486d2735586
size 4789
|
Joshfire.define([], function() {
//memory cached
var cache = {};
return {
set:function(key,val) {
cache[key]=val;
},
get:function(key) {
return cache[key];
},
clear:function() {
cache = {};
},
remove:function(key) {
delete cache[key];
},
disabled:fal... |
module.exports = (state = [], action) => {
switch (action.type) {
case `CREATE_REDIRECT`:
return [...state, action.payload]
default:
return state
}
}
|
/*-----------------------------------------------------------------------------
This Bot demonstrates how to implement simple multi-turns using waterfalls. By
multi-turn we mean supporting scenarios where a user asks a question about
something and then wants to ask a series of follow-up questions. To support this
the ... |
'use strict';
const gulp = require('gulp');
const uglify = require('gulp-uglify');
const concat = require('gulp-concat');
gulp.task('build', ['clean'], function () {
return gulp
.src(['src/resize.js', 'src/*.js'])
.pipe(concat('angular-images-resizer.js'))
.pipe(uglify())
.pipe(gul... |
import { AppRegistry } from 'react-native';
import Basic from './Basic';
AppRegistry.registerComponent('Basic', () => Basic);
|
function edit_tag(m) {
var name, slug, tr;
name = jQuery("#name" + m).html();
slug = jQuery("#slug" + m).html();
tr = ' <td id="td_check_'+m+'" ></td> <td id="td_id_'+m+'" ></td> <td id="td_name_'+m+'" class="edit_input"><input id="edit_tagname" name="tagname'+m+'" class="input_th2" type="text" value="'+nam... |
/* global Promise:true */
import run from "ember-metal/run_loop";
import RSVP from "ember-runtime/ext/rsvp";
QUnit.module('Ember.RSVP');
test('Ensure that errors thrown from within a promise are sent to the console', function(){
var error = new Error('Error thrown in a promise for testing purposes.');
try {
... |
asynctest(
'browser.tinymce.ui.data.ObservableObjectTest',
[
'ephox.mcagar.api.LegacyUnit',
'ephox.agar.api.Pipeline',
'tinymce.ui.data.ObservableObject'
],
function (LegacyUnit, Pipeline, ObservableObject) {
var success = arguments[arguments.length - 2];
var failure = arguments[arguments.le... |
/* eslint-disable */
import Gatsby from "gatsby";
export const query = graphql`
query {
allSitePages {
prefix
}
}
`;
|
var Utils = require('./../utils')
module.exports = (function() {
var HasManySingleLinked = function(definition, instance) {
this.__factory = definition
this.instance = instance
}
HasManySingleLinked.prototype.injectGetter = function(options) {
var where = {}, options = options || {}
where[this.... |
var Measure = require('./measure');
var allResults = {};
var totals = {};
var comparator = function(a, b) {
return a[this.key] > b[this.key] ? 1 : -1;
};
var compareResult = function (result, against) {
var compare = {};
result.each(function (key) {
compare[key] = {
best: false,
worst: false
... |
/*global ODSA */
// Written by Jun Yang and Cliff Shaffer
//Linked list insertion
$(document).ready(function() {
"use strict";
var av_name = "llistInsertCON";
// Load the config object with interpreter and code created by odsaUtils.js
var config = ODSA.UTILS.loadConfig({av_name: av_name}),
interpret = con... |
/**
* Copyright (c) Tiny Technologies, Inc. All rights reserved.
* Licensed under the LGPL or a commercial license.
* For LGPL see License.txt in the project root for license information.
* For commercial licenses see https://www.tiny.cloud/
*
* Version: 5.0.8 (2019-06-18)
*/
(function (domGlobals) {
'use st... |
version https://git-lfs.github.com/spec/v1
oid sha256:be72cac097c9d0cbd6c8bebf581495945bbf99dffd2e326bdbe97aea79968e10
size 32768
|
/**
* @use 간단 포토 업로드용으로 제작되었습니다.
* @author cielo
* @See nhn.husky.SE2M_Configuration
* @ 팝업 마크업은 SimplePhotoUpload.html과 SimplePhotoUpload_html5.html이 있습니다.
*/
nhn.husky.SE2M_AttachQuickPhoto = jindo.$Class({
name : "SE2M_AttachQuickPhoto",
$init : function(){},
$ON_MSG_APP_READY : function(){
this.oA... |
/*global defineSuite*/
defineSuite([
'Scene/TileCoordinatesImageryProvider',
'Core/defined',
'Core/GeographicTilingScheme',
'Core/WebMercatorTilingScheme',
'Scene/ImageryProvider',
'Specs/waitsForPromise'
], function(
TileCoordinatesImageryProvider,
de... |
import { isFunction, isNumber } from './isType';
export default function debounce(func, wait) {
if (isFunction(func)) {
let timeoutID = null;
const delay = isNumber(wait) ? wait : 1000;
const closureDebounce = (...args) => {
const delayed = () => {
timeoutID = null;
func.apply(this,... |
// Copyright 2006 Google Inc.
// All Rights Reserved
//
// Defines regular expression patterns to extract XML tokens from string.
// See <http://www.w3.org/TR/REC-xml/#sec-common-syn>,
// <http://www.w3.org/TR/xml11/#sec-common-syn> and
// <http://www.w3.org/TR/REC-xml-names/#NT-NCName> for the specifications.
/... |
goog.provide("DateTime");
goog.require("Instant");
/**
* JSDoc here
*
* @author Victor Polischuk
* @constructor
* @class Class description
* @public
* @extends Instant
*/
var DateTime = function () {
//TODO<vpolischuk>: implement it
}
goog.inherits(DateTime, Instant);
registerClass(Date... |
import * as types from './mutation_types';
export default {
[types.SET_LOADING_STACKTRACE](state, data) {
state.loadingStacktrace = data;
},
[types.SET_STACKTRACE_DATA](state, data) {
state.stacktraceData = data;
},
};
|
(function($){
$( document ).ready( function() {
var $body = $( 'body' );
$( '.et_dashboard_authorize' ).click( function() {
var $this_button = $( this ),
$key_field = $this_button.closest( 'ul' ).find( '.api_option_key' ),
$spinner = $this_button.closest( 'li' ).find( 'span.spinner' );
authorize_aw... |
/*global define*/
/* jshint -W106, -W069*/
define(['jquery', 'underscore', 'backbone', 'templates', 'gauge', 'humanize', 'helpers/animation', 'helpers/gauge-helper', 'marionette'], function($, _, Backbone, JST, Gauge, humanize, animation, gaugeHelper) {
'use strict';
/* UsageView
* ---------
* This ... |
// unquoted attributes should be ok in non-strict mode
// https://github.com/isaacs/sax-js/issues/31
require(__dirname).test
( { xml :
"<span class=test hello=world></span>"
, expect :
[ [ "attribute", { name: "CLASS", value: "test" } ]
, [ "attribute", { name: "HELLO", value: "world" } ]... |
import initPanels from './init_panels';
describe('manager.ui.config.init_panels', () => {
test('should call the selectDownPanel with first panel name', () => {
const actions = {
ui: {
selectDownPanel: jest.fn(),
},
};
const provider = {
getPanels() {
return {
... |
/**
* program.js - basic curses-like functionality for blessed.
* Copyright (c) 2013-2015, Christopher Jeffrey and contributors (MIT License).
* https://github.com/chjj/blessed
*/
/**
* Modules
*/
var EventEmitter = require('events').EventEmitter
, StringDecoder = require('string_decoder').StringDecoder
, c... |
/*
Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.plugins.setLang( 'colorbutton', 'fi', {
auto: 'Automaattinen',
bgColorTitle: 'Taustaväri',
colors: {
'000': 'Musta',
'800000': 'Kastanjanrus... |
/**
* Copyright 2014 Telerik AD
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
const assertJump = require('./helpers/assertJump');
var BasicTokenMock = artifacts.require("./helpers/BasicTokenMock.sol");
contract('BasicToken', function(accounts) {
it("should return the correct totalSupply after construction", async function() {
let token = await BasicTokenMock.new(accounts[0], 100);
l... |
/*! WebUploader 0.1.5 */
/**
* @fileOverview 让内部各个部件的代码可以用[amd](https://github.com/amdjs/amdjs-api/wiki/AMD)模块定义方式组织起来。
*
* AMD API 内部的简单不完全实现,请忽略。只有当WebUploader被合并成一个文件的时候才会引入。
*/
(function( root, factory ) {
var modules = {},
// 内部require, 简单不完全实现。
// https://github.com/amdjs/amdjs-api/wiki... |
var Stream = require('stream').Stream;
/**
* "fakeDuplexStream" is meant to be used in testing StreamStack subclasses.
* It simulates both ends (client and server) of a full-duplex `net.Stream`
* connection, without acutally using any real TCP connections. Everything is
* done in V8's memory. Usage:
*
* var ... |
import run from "ember-metal/run_loop";
import EmberView from "ember-views/views/view";
import EmberHandlebars from "ember-htmlbars/compat";
import { runAppend, runDestroy } from "ember-runtime/tests/utils";
var view;
var compile = EmberHandlebars.compile;
QUnit.module("ember-htmlbars: tagless views should be able to... |
// Copyright 2006 The Closure Library Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unl... |
version https://git-lfs.github.com/spec/v1
oid sha256:09048ebb343298062c8f1f9370b783b0b98ec4dd7b72b6339502d6f8a0b7355c
size 7062
|
function attachEventHandler(element, eventType, eventHandler) {
if (!element) {
return;
}
if (document.addEventListener) {
element.addEventListener(eventType, eventHandler, true);
} else if (document.attachEvent) {
element.attachEvent("on" + eventType, eventHandler);
} else ... |
define({
"_widgetLabel": "이미지 측정"
}); |
'use strict';
const common = require('../common');
const fixtures = require('../common/fixtures');
if (!common.hasCrypto)
common.skip('missing crypto');
const tls = require('tls');
// This test expects `tls.connect()` to emit a warning when
// `servername` of options is an IP address.
common.expectWarning(
'Dep... |
/**
* @fileoverview Config initialization wizard.
* @author Ilya Volodin
* @copyright 2015 Ilya Volodin. All rights reserved.
*/
"use strict";
//------------------------------------------------------------------------------
// Requirements
//------------------------------------------------------------------------... |
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//------------------------------------------------------... |
/**
* Copyright 2015 Telerik AD
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
import { Component, ChangeDetectionStrategy, ViewEncapsulation, ElementRef, Input, ContentChildren, NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { PrimeTemplate } from 'primeng/api';
class Toolbar {
constructor(el) {
this.el = el;
}
getBlockableElement() {... |
/*!
* Common test dependencies.
*/
// expose the globals that are obtained through `<script>` on the browser
expect = require('expect.js');
MessageFormat = require('../');
|
var convertTemplateType = require("./convertTemplateType");
var toToken = require("./toToken");
module.exports = function (tokens, tt, code) {
// transform tokens to type "Template"
convertTemplateType(tokens, tt);
var transformedTokens = tokens.filter((token) => {
return token.type !== "CommentLine" && toke... |
'use strict';
angular.module('copayApp.controllers').controller('amazonCardDetailsController', function($scope, $log, $timeout, bwcError, amazonService, lodash, ongoingProcess) {
$scope.cancelGiftCard = function() {
ongoingProcess.set('Canceling gift card...', true);
amazonService.cancelGiftCard($scope.card... |
define("p3/widget/InteractionGridContainer", [
'dojo/_base/declare', 'dojo/_base/lang',
'dojo/on', 'dojo/topic', 'dojo/dom-construct',
'dijit/popup', 'dijit/TooltipDialog', 'dijit/Dialog',
'FileSaver',
'./GridContainer', './FacetFilterPanel', './InteractionGrid', './PerspectiveToolTip', './SelectionToGroup'
]... |
const Bar = () => {
const Foo = () => {
const Component = ({thing, ..._react}) => {
if (!thing) {
var _react2 = "something useless";
var b = _react3();
var c = _react5();
var jsx = 1;
var _jsx = 2;
return <div />;
};
return <span />;
};... |
'use strict';
var StrictModeError = require('../../error/strict');
var utils = require('../../utils');
/*!
* Casts an update op based on the given schema
*
* @param {Schema} schema
* @param {Object} obj
* @param {Object} options
* @param {Boolean} [options.overwrite] defaults to false
* @param {Boolean|String}... |
/**
* Lo-Dash 2.4.1 (Custom Build) <http://lodash.com/>
* Build: `lodash modularize modern exports="amd" -o ./modern/`
* Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/>
* Based on Underscore.js 1.5.2 <http://underscorejs.org/LICENSE>
* Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Inv... |
describe('accordion', function () {
var $scope;
beforeEach(module('ui.bootstrap.accordion'));
beforeEach(module('template/accordion/accordion.html'));
beforeEach(module('template/accordion/accordion-group.html'));
beforeEach(inject(function ($rootScope) {
$scope = $rootScope;
}));
describe('control... |
/**
* Copyright 2015 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... |
import Cache from '../cache'
import {
inBrowser,
trimNode,
isTemplate,
isFragment
} from '../util/index'
const templateCache = new Cache(1000)
const idSelectorCache = new Cache(1000)
const map = {
efault: [0, '', ''],
legend: [1, '<fieldset>', '</fieldset>'],
tr: [2, '<table><tbody>', '</tbody></table>'... |
// Note: this spec can be run using jasmine-node
var createRjsConfig = require('../../../../deployment/scripts/createrjsconfig');
describe('createRjsConfig', function() {
var PACKAGE_NAME_STUB = 'PACKAGE_NAME_STUB';
var OUT_DIR_STUB = 'OUT_DIR_STUB';
var PACKAGES_STUB = ['PKG_STUB_A', 'PKG_STUB_B', 'PKG_STUB_C'... |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* @name: S15.4.4.11_A7.7;
* @section: 15.4.4.11, 11.2.2;
* @assertion: The sort property of Array can't be used as constructor;
* @description: If property does not implement the inte... |
'use strict';
var test = require('tape')
var Client = require('../../lib/dialects/sqlite3');
var Pool = require('generic-pool').Pool
test('#822, pool config, max: 0 should skip pool construction', function(t) {
var client = new Client({connection: {filename: ':memory:'}, pool: {max: 0}})
try {
t.equal(cli... |
module.exports={title:"WP Engine",slug:"wpengine",svg:'<svg role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><title>WP Engine icon</title><path d="M8.145 0v5.867L9.99 7.71h4.022l1.845-1.844V0zm8.145 0v5.867l1.845 1.844h5.864V.001zM1.845 0L0 1.845v5.866h7.712V0zM0 8.146v7.71h5.866l1.845-1.844V8.145zm18.... |
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
import _extends from "@babel/runtime/helpers/esm/extends";
import * as React from 'react';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import { useThemeVariants } from '@material-ui/styles';
import withStyles fro... |
/* version: 0.2.73 */
var Organic = (function(w){
var o = {
helpers: {},
lib: {
atoms: {},
molecules: {}
}
}
var require = function(v) {
if(v == "./helpers/extend") {
return o.helpers.extend;
} else if(v == "/helpers/snippets" || v == "../../helpers/snippets") {
return o.helpers.snippets;
} el... |
'use strict';
var padRight = require('pad-right');
var utils = require('../utils');
var bold = utils.colors.bold;
var cyan = utils.colors.cyan;
var gray = utils.colors.gray;
/**
* Show a help menu.
*
* ```sh
* $ app --help
* ```
* @name help
* @api public
*/
module.exports = function(app, base, options) {
... |
// Simple phantom.js integration script
// Adapted from Modernizr
function waitFor (testFx, onReady, timeOutMillis)
{
var maxtimeOutMillis = timeOutMillis ? timeOutMillis : 5001 //< Default Max Timout is 5s
, start = new Date ().getTime ()
, condition = false
, interval = setInterval (funct... |
YUI.add('enc-hex-test', function (Y) {
var C = CryptoJS;
Y.Test.Runner.add(new Y.Test.Case({
name: 'Hex',
testStringify: function () {
Y.Assert.areEqual('12345678', C.enc.Hex.stringify(C.lib.WordArray.create([0x12345678])));
},
testParse: function () {
... |
var express = require('../')
, request = require('supertest')
, utils = require('../lib/utils')
, assert = require('assert');
var app1 = express();
app1.use(function(req, res, next){
res.format({
'text/plain': function(){
res.send('hey');
},
'text/html': function(){
res.send('<p>hey<... |
"use strict";
module.exports = require("./is-implemented")()
? Array.prototype.splice : require("./shim");
|
import { Quaternion } from '../math/Quaternion.js';
import { Vector3 } from '../math/Vector3.js';
import { Matrix4 } from '../math/Matrix4.js';
import { EventDispatcher } from './EventDispatcher.js';
import { Euler } from '../math/Euler.js';
import { Layers } from './Layers.js';
import { Matrix3 } from '../math/Matrix3... |
/**
* The mouse tracker object. All methods starting with "on" are primary DOM event handlers.
* Subsequent methods should be named differently from what they are doing.
* @param {Object} chart The Chart instance
* @param {Object} options The root options object
*/
var Pointer = Highcharts.Pointer = function (cha... |
/**
@license
* @pnp/common v1.0.1 - pnp - provides shared functionality across all pnp libraries
* MIT (https://github.com/pnp/pnp/blob/master/LICENSE)
* Copyright (c) 2018 Microsoft
* docs: http://officedev.github.io/PnP-JS-Core
* source: https://github.com/pnp/pnp
* bugs: https://github.com/pnp/pnp/issues
*/
(... |
'use strict'
/* eslint-disable standard/no-callback-literal */
const BB = require('bluebird')
const figgyPudding = require('figgy-pudding')
const libaccess = require('libnpm/access')
const npmConfig = require('./config/figgy-config.js')
const output = require('./utils/output.js')
const otplease = require('./utils/otp... |
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
"use strict";
const HarmonyImportDependency = require("../dependencies/HarmonyImportDependency");
const ModuleHotAcceptDependency = require("../dependencies/ModuleHotAcceptDependency");
const ModuleHotDeclineDependency ... |
var pbkdf2Sync = require('pbkdf2').pbkdf2Sync
var MAX_VALUE = 0x7fffffff
// N = Cpu cost, r = Memory cost, p = parallelization cost
function scrypt (key, salt, N, r, p, dkLen, progressCallback) {
if (N === 0 || (N & (N - 1)) !== 0) throw Error('N must be > 0 and a power of 2')
if (N > MAX_VALUE / 128 / r) throw ... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.EmitterSize = void 0;
var SizeMode_1 = require("../../../Enums/SizeMode");
var EmitterSize = (function () {
function EmitterSize() {
this.mode = SizeMode_1.SizeMode.percent;
this.height = 0;
this.width = 0;
... |
'use strict';
var expect = require('expect.js');
var Support = require(__dirname + '/../support');
var helpers = require(__dirname + '/../support/helpers');
var gulp = require('gulp');
var _ = require('lodash');
([
'model:create',
'model:generate'
]).forEach(function (flag) {
describe(Suppor... |
describe("toHaveBeenCalledWith", function() {
it("passes when the actual was called with matching parameters", function() {
var util = {
contains: jasmine.createSpy('delegated-contains').and.returnValue(true)
},
matcher = jasmineUnderTest.matchers.toHaveBeenCalledWith(util),
cal... |
/*!
* Ext JS Library 3.3.1
* Copyright(c) 2006-2010 Sencha Inc.
* licensing@sencha.com
* http://www.sencha.com/license
*/
/**
* Tests Ext.data.Store functionality
* @author Ed Spencer
*/
(function() {
var suite = Ext.test.session.getSuite('Ext.layout.ContainerLayout'),
assert = Y.Assert;
f... |
"use strict";
var _ = require("underscore");
var errors = {
// JSHint options
E001: "Bad option: '{a}'.",
E002: "Bad option value.",
// JSHint input
E003: "Expected a JSON value.",
E004: "Input is neither a string nor an array of strings.",
E005: "Input is empty.",
E006: "Unexpected early end of program.",
... |
/* */
"format cjs";
"use strict";
var _toolsProtectJs2 = require("./../tools/protect.js");
var _toolsProtectJs3 = _interopRequireDefault(_toolsProtectJs2);
exports.__esModule = true;
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (v... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.