code stringlengths 2 1.05M | repo_name stringlengths 5 114 | path stringlengths 4 991 | language stringclasses 1
value | license stringclasses 15
values | size int32 2 1.05M |
|---|---|---|---|---|---|
/* This is needed as getElementsByClassName does not work in IE
Code/licensing: http://code.google.com/p/getelementsbyclassname/
*/
var getElementsByClassName = function (className, tag, elm){
if (document.getElementsByClassName) {
getElementsByClassName = function (className, tag, elm) {
elm = elm || document;
v... | mint-ntua/Mint | src/main/webapp/js/itemLevelLabelRequest.js | JavaScript | agpl-3.0 | 13,899 |
var db
var isTypedArray = require('./util').isTypedArray
exports.setUp = function (test, testCommon) {
test('setUp common', testCommon.setUp)
test('setUp db', function (t) {
db = testCommon.factory()
db.open(t.end.bind(t))
})
}
exports.args = function (test, testCommon) {
test('test argument-less put(... | Irstea/collec | display/node_modules/abstract-leveldown/test/put-test.js | JavaScript | agpl-3.0 | 2,769 |
/**
* Stylesheet toggle variation on styleswitch stylesheet switcher.
* Built on jQuery.
* Under an CC Attribution, Share Alike License.
* By Kelvin Luck ( http://www.kelvinluck.com/ )
**/
(function($)
{
// Local vars for toggle
var availableStylesheets = [];
var activeStylesheetIndex = 0;
// To loop throu... | charalampos78/buzeepro | eComm/Themes/PowerHub/Content/js/styleSheetToogle.js | JavaScript | apache-2.0 | 1,917 |
"use strict";
const conversions = require("webidl-conversions");
const utils = require("./utils.js");
const impl = utils.implSymbol;
const HTMLElement = require("./HTMLElement.js");
class HTMLIFrameElement extends HTMLElement.interface {
constructor() {
throw new TypeError("Illegal constructor");
}
getSVG... | GoogleCloudPlatform/prometheus-engine | third_party/prometheus_ui/base/web/ui/react-app/node_modules/jest-environment-jsdom-fourteen/node_modules/jsdom/lib/jsdom/living/generated/HTMLIFrameElement.js | JavaScript | apache-2.0 | 10,202 |
/**
* Copyright 2016 The AMP HTML 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
*
* Unless require... | adup-tech/amphtml | extensions/amp-sticky-ad/1.0/test/test-amp-sticky-ad.js | JavaScript | apache-2.0 | 15,094 |
global.stub_out_jquery();
add_dependencies({
Handlebars: 'handlebars',
templates: 'js/templates',
muting: 'js/muting',
narrow: 'js/narrow',
stream_color: 'js/stream_color',
stream_data: 'js/stream_data',
subs: 'js/subs',
hashchange: 'js/hashchange'
});
global.recent_subjects = new glob... | umkay/zulip | frontend_tests/node_tests/stream_list.js | JavaScript | apache-2.0 | 4,724 |
var _ = require('../../../lib/alloy/underscore')._;
exports.parse = function(node, state) {
_.extend(state, {
proxyPropertyDefinition: {
parents: [
'Ti.UI.iOS.PreviewContext'
],
property: 'preview',
skipAssignParent: true
}
});
return require('./Alloy.Abstract._ProxyProperty').parse(node, state)... | sharpred/boilerPlate | node_modules/alloy/Alloy/commands/compile/parsers/Alloy.Abstract.Preview.js | JavaScript | apache-2.0 | 325 |
/* */
"format cjs";
/**
* Determines whether an observable collection contains values. There is an alias for this method called 'ifThen' for browsers <IE9
*
* @example
* 1 - res = Rx.Observable.if(condition, obs1);
* 2 - res = Rx.Observable.if(condition, obs1, obs2);
* 3 - res = Rx.Observable.... | cfraz89/moonrock-js-starter | jspm_packages/npm/rx@2.5.3/src/core/linq/observable/if.js | JavaScript | apache-2.0 | 1,566 |
/**
* Copyright 2019 The AMP HTML 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
*
* Unless require... | zhouyx/amphtml | extensions/amp-base-carousel/0.1/responsive-attributes.js | JavaScript | apache-2.0 | 5,686 |
// Do this as the first thing so that any code reading it knows the right env.
process.env.NODE_ENV = 'production';
var chalk = require('chalk');
var fs = require('fs');
var path = require('path');
var filesize = require('filesize');
var gzipSize = require('gzip-size').sync;
var rimrafSync = require('rimraf').sync;
va... | matobet/userportal | scripts/build.js | JavaScript | apache-2.0 | 6,940 |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may no... | 100star/echarts | src/chart/heatmap.js | JavaScript | apache-2.0 | 857 |
/**
* Copyright (c) 2016-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
'use strict... | Helena-High/school-app | node_modules/react-native/local-cli/server/middleware/heapCapture/src/heapCapture.js | JavaScript | apache-2.0 | 12,421 |
// Copyright 2016, EMC, Inc.
'use strict';
var injector = require('../../../index.js').injector;
var redfish = injector.get('Http.Api.Services.Redfish');
var controller = injector.get('Http.Services.Swagger').controller;
var Promise = injector.get('Promise'); // jshint ignore:line
var _ = injector.get('_'); // jsh... | keedya/on-http | lib/api/redfish-1.0/roles.js | JavaScript | apache-2.0 | 1,839 |
// Copyright (C) 2020 Alexey Shvayka. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-thenfinallyfunctions
description: >
PromiseResolve() avoids extra Promise capability creation.
info: |
Then Finally Functions
[...]
7. Let promise be ? PromiseResolv... | sebastienros/jint | Jint.Tests.Test262/test/built-ins/Promise/prototype/finally/resolved-observable-then-calls-PromiseResolve.js | JavaScript | bsd-2-clause | 1,361 |
// Copyright (C) 2016 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-typedarray-typedarray
description: >
Return abrupt completion from getting typedArray argument's buffer.constructor
info: |
22.2.4.3 TypedArray ( typedArray )
... | sebastienros/jint | Jint.Tests.Test262/test/built-ins/TypedArrayConstructors/ctors-bigint/typedarray-arg/same-ctor-buffer-ctor-access-throws.js | JavaScript | bsd-2-clause | 1,323 |
define(function(require) {
'use strict';
var glMatrix = require('../dep/glmatrix');
var mat2 = glMatrix.mat2;
/**
* @constructor
* @alias qtek.math.Matrix2
*/
var Matrix2 = function() {
/**
* Storage of Matrix2
* @name _array
* @type {Float32Arra... | JDReutt/qtek | src/math/Matrix2.js | JavaScript | bsd-2-clause | 6,644 |
'use strict';
Connector.playerSelector = '[class*=PlayerUI__content]';
Connector.artistSelector = '[class*=CreativesLabel__container]';
Connector.trackSelector = '[class*=TrackInfo__title]';
Connector.timeInfoSelector = '[class*=TimeProgress__container]';
Connector.playButtonSelector = '[class*=PlaybackControls__p... | inverse/web-scrobbler | src/connectors/epidemicsound.js | JavaScript | mit | 331 |
Package.describe({
name: "telescope:posts",
summary: "Telescope posts package",
version: "0.25.7",
git: "https://github.com/TelescopeJS/telescope-posts.git"
});
Package.onUse(function (api) {
api.versionsFrom(['METEOR@1.0']);
api.use([
'telescope:lib@0.25.7',
'telescope:i18n@0.25.7',
'telesco... | attheCO/upvote | packages/telescope-posts/package.js | JavaScript | mit | 3,356 |
import Vue from 'vue';
import { on } from 'element-ui/src/utils/dom';
const nodeList = [];
const ctx = '@@clickoutsideContext';
!Vue.prototype.$isServer && on(document, 'click', e => {
nodeList.forEach(node => node[ctx].documentHandler(e));
});
/**
* v-clickoutside
* @desc 点击元素外面才会触发的事件
* @example
* ```vue
* <... | imyzf/element | src/utils/clickoutside.js | JavaScript | mit | 1,359 |
version https://git-lfs.github.com/spec/v1
oid sha256:252578c59eb49249bfa2ce6f04c4f5f5426e4d3559022bab27de96970b104dee
size 28884
| yogeshsaroya/new-cdnjs | ajax/libs/ace/1.1.8/mode-erlang.js | JavaScript | mit | 130 |
import run from 'ember-metal/run_loop';
import compile from 'ember-template-compiler/system/compile';
import Application from 'ember-application/system/application';
import Component from 'ember-views/components/component';
import jQuery from 'ember-views/system/jquery';
var App1, App2, actions;
function startApp(roo... | MatrixZ/ember.js | packages/ember/tests/integration/multiple-app-test.js | JavaScript | mit | 2,095 |
// Copyright 2008 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
//
// Unless requ... | BOKteam/common | closure/google-closure-library/goog/closure/goog/net/bulkloader.js | JavaScript | mit | 4,640 |
import Page from './Page';
class SideNav extends Page {
get channelType() { return browser.element('label[for="channel-type"]'); }
get channelReadOnly() { return browser.element('label[for="channel-ro"]'); }
get channelName() { return browser.element('input#channel-name'); }
get saveChannelBtn() { return browser.e... | ealbers/Rocket.Chat | tests/pageobjects/side-nav.page.js | JavaScript | mit | 4,688 |
/**
@module ember
@submodule ember-templates
*/
import lookupPartial from 'ember-views/system/lookup_partial';
import { internal } from 'htmlbars-runtime';
/**
The `partial` helper renders another template without
changing the template context:
```handlebars
{{foo}}
{{partial "nav"}}
```
The above exa... | vikram7/ember.js | packages/ember-htmlbars/lib/keywords/partial.js | JavaScript | mit | 1,887 |
import { expect } from 'chai';
import { getCredentials, request, credentials, api } from '../../data/api-data.js';
import { updatePermission, updateSetting } from '../../data/permissions.helper';
import { APP_URL, apps, APP_USERNAME } from '../../data/apps/apps-data.js';
import { cleanupApps } from '../../data/apps/he... | subesokun/Rocket.Chat | tests/end-to-end/apps/00-installation.js | JavaScript | mit | 3,808 |
/*
All of the code within the ZingChart software is developed and copyrighted by ZingChart, Inc., and may not be copied,
replicated, or used in any other software or application without prior permission from ZingChart. All usage must coincide with the
ZingChart End User License Agreement which can be requested by email... | extend1994/cdnjs | ajax/libs/zingchart/2.8.1/modules/zingchart-hscatter.min.js | JavaScript | mit | 1,071 |
Clazz.declarePackage ("org.eclipse.osgi.framework.internal.core");
Clazz.load (["org.eclipse.osgi.framework.internal.core.PackageSource"], "org.eclipse.osgi.framework.internal.core.SingleSourcePackage", null, function () {
c$ = Clazz.decorateAsClass (function () {
this.supplier = null;
this.expid = 0;
Clazz.instantial... | royleexhFake/mayloon-portingtool | sources/net.sf.j2s.lib/j2slib/org/eclipse/osgi/framework/internal/core/SingleSourcePackage.js | JavaScript | epl-1.0 | 1,653 |
njQuery.fn.ssdata = function (key, value) {
if (value === null) {
this.removeAttr('data-' + key);
return this;
} else if (value === undefined) {
return this.attr('data-' + key);
} else {
njQuery(this).data(key, value);
this.attr('data-' + key, value);
return t... | lspfeiffer/wordpress | wp-content/plugins/smart-slider-2/library/smartslider/assets/admin/js/slide.js | JavaScript | gpl-2.0 | 8,656 |
/*!
* VisualEditor ContentEditable UnderlineAnnotation class.
*
* @copyright 2011-2015 VisualEditor Team and others; see http://ve.mit-license.org
*/
/**
* ContentEditable underline annotation.
*
* @class
* @extends ve.ce.TextStyleAnnotation
* @constructor
* @param {ve.dm.UnderlineAnnotation} model Model to ... | brandonphuong/mediawiki | extensions/VisualEditor/lib/ve/src/ce/annotations/ve.ce.UnderlineAnnotation.js | JavaScript | gpl-2.0 | 1,000 |
/* asset file, handled by Minibundle */
(function(root, dependency) {
if (!dependency) throw new Error("missing dependency");
root.app = {};
})(window, window.dependency)
| yangqiju/yangqiju.github.com | vendor/bundle/ruby/2.6.0/gems/jekyll-minibundle-3.0.0/test/fixture/site/_assets/scripts/app.js | JavaScript | gpl-2.0 | 175 |
/****************************************************************************
Copyright (c) 2011-2012 cocos2d-x.org
Copyright (c) 2013-2014 Chukong Technologies Inc.
http://www.cocos2d-x.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation... | corumcorp/redsentir | redsentir/static/juego/frameworks/cocos2d-html5/extensions/ccui/uiwidgets/UIRichText.js | JavaScript | gpl-3.0 | 24,772 |
'use strict';
var arrayBufferToBinaryString = require('./arrayBufferToBinaryString');
// shim for browsers that don't support it
module.exports = function (blob, callback) {
if (typeof FileReader === 'undefined') {
// fix for Firefox in a web worker
// https://bugzilla.mozilla.org/show_bug.cgi?id=901097
... | viniciusbo/presente-app | www/lib/pouchdb/lib/deps/binary/readAsBinaryString.js | JavaScript | gpl-3.0 | 838 |
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
//--------------------------------... | michath/ConMonkey | js/src/tests/js1_7/regress/regress-352640-02.js | JavaScript | mpl-2.0 | 924 |
/* ***** BEGIN LICENSE BLOCK *****
*
* Copyright (C) 1998 Netscape Communications Corporation.
* Copyright (C) 2010 Apple Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; ei... | youfoh/webkit-efl | LayoutTests/java/lc3/JavaObject/JavaObjectToByte-004-n.js | JavaScript | lgpl-2.1 | 3,289 |
// Copyright 2013 the V8 project authors. All rights reserved.
// 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 ... | weolar/miniblink49 | v8_7_5/test/mjsunit/compiler/osr-nested.js | JavaScript | apache-2.0 | 1,956 |
'use strict';
/**
* display all gulp tasks
*/
/**
* @param {Object} gulp The gulp object
* @param {Object} config The configuration for gulp tasks. To get a property using `config.a.b.c` or `config.get('a.b.c')`
* @param {Object} LL Lazy required libraries and other data
* @param {Object} args ... | adoyle-h/winston-pretty-console | gulpfile.js/tasks/tasks.js | JavaScript | apache-2.0 | 1,124 |
/*jshint globalstrict:false, strict:false, maxlen: 200, unused: false*/
/*global assertEqual, assertNotEqual, assertTrue, assertFalse */
////////////////////////////////////////////////////////////////////////////////
/// @brief test the query cache
///
/// DISCLAIMER
///
/// Copyright 2010-2012 triagens GmbH, Cologne... | wiltonlazary/arangodb | tests/js/common/shell/shell-query-cache-noncluster.js | JavaScript | apache-2.0 | 25,806 |
/* jshint globalstrict:false, strict:false, unused : false */
/* global assertEqual, assertTrue */
// //////////////////////////////////////////////////////////////////////////////
// / @brief tests for recovery
// /
// / @file
// /
// / DISCLAIMER
// /
// / Copyright 2010-2012 triagens GmbH, Cologne, Germany
// /
// /... | wiltonlazary/arangodb | tests/js/server/recovery/many-documents.js | JavaScript | apache-2.0 | 2,298 |
// Copyright 2012 Traceur Authors.
//
// 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 ... | rwaldron/traceur-todomvc | src/codegeneration/module/ImportStarVisitor.js | JavaScript | apache-2.0 | 1,684 |
var namespace = (function () {
var _ = require('node_modules/underscore/underscore.js');
var exports = {};
var dependencies = [];
var requires = [];
var old_builtins = {};
exports.set_global = function (name, val) {
global[name] = val;
dependencies.push(name);
return val;
};
exports.patch_builtin = func... | vaidap/zulip | frontend_tests/zjsunit/namespace.js | JavaScript | apache-2.0 | 2,317 |
//>>built
define("dijit/layout/SplitContainer", [
"dojo/_base/array", // array.forEach array.indexOf array.some
"dojo/cookie", // cookie
"dojo/_base/declare", // declare
"dojo/dom", // dom.setSelectable
"dojo/dom-class", // domClass.add
"dojo/dom-construct", // domConstruct.create domConstruct.destroy
"d... | NCIP/cabio | software/cabio-api/system/web/dijit/layout/SplitContainer.js.uncompressed.js | JavaScript | bsd-3-clause | 17,368 |
/**
* Copyright (c) 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @provides... | davidchang/draft-js | src/model/transaction/applyEntityToContentBlock.js | JavaScript | bsd-3-clause | 970 |
var db = require('../../../db/db.js');
var mongoose = require('mongoose');
var Dest = mongoose.model('Dest', db.destSchema);
module.exports = Dest; | rsprice/travel-app | app/server/models/destination.js | JavaScript | mit | 149 |
class Foo {
static test() {
return babelHelpers.classStaticPrivateFieldSpecGet(Foo, Foo, _bar);
}
test() {
return babelHelpers.classStaticPrivateFieldSpecGet(Foo, Foo, _bar);
}
}
var _bar = {
writable: true,
value: void 0
};
| Skillupco/babel | packages/babel-plugin-proposal-class-properties/test/fixtures/private/static-undefined/output.js | JavaScript | mit | 248 |
//>>built
define("dojox/storage/_common",["dojo","dijit","dojox","dojo/require!dojox/storage/Provider,dojox/storage/manager,dojox/storage/LocalStorageProvider,dojox/storage/GearsStorageProvider,dojox/storage/WhatWGStorageProvider,dojox/storage/FlashStorageProvider,dojox/storage/BehaviorStorageProvider,dojox/storage/Coo... | beeant0512/spring | spring-thymeleaf-dojo-bootstrap/src/main/webapp/assets/dojo/dojox/storage/_common.js | JavaScript | mit | 815 |
describe('$ionicRefresh Controller', function() {
beforeEach(module('ionic'));
beforeEach(inject(function($ionicConfig) {
ionic.Platform.ready = function(cb) { cb(); };
ionic.requestAnimationFrame = function(cb) { cb(); };
$ionicConfig.scrolling.jsScrolling(false);
}));
function setup(options) {
... | janglednerves/ionic | test/unit/angular/controller/refreshController.unit.js | JavaScript | mit | 5,247 |
function foo ( ok ) {
if ( !ok ) {
throw new Error( 'this will be ignored' );
}
}
foo();
export default 42;
| Victorystick/rollup | test/form/side-effect-h/main.js | JavaScript | mit | 114 |
'use strict';
var _ = require('../mindash');
var logger = require('./logger');
var warnings = require('./warnings');
var diagnostics = require('./diagnostics');
var environment = require('./environment');
var StateSource = require('./stateSource');
var createStateSourceClass = require('./stateSource/createStateSourceC... | thredup/marty-lib | modules/core/index.js | JavaScript | mit | 895 |
define({
root: ({
label1: "Esu demonstracinis valdiklis.",
label2: "Galima konfigūruoti."
}),
"ar": 1,
"cs": 1,
"da": 1,
"de": 1,
"el": 1,
"es": 1,
"et": 1,
"fi": 1,
"fr": 1,
"he": 1,
"it": 1,
"ja": 1,
"ko": 1,
"lt": 1,
"lv": 1,
"nb": 1,
"nl": 1,
"pl": 1,
"pt-br": 1,
... | tmcgee/cmv-wab-widgets | widgets/EnhancedQuery/nls/lt/strings.js | JavaScript | mit | 419 |
'use strict';
const common = require('../common');
const fs = require('fs');
const assert = require('assert');
assert.throws(function() {
fs.write(null, Buffer.allocUnsafe(1), 0, 1, common.mustNotCall());
}, /TypeError/);
assert.throws(function() {
fs.write(null, '1', 0, 1, common.mustNotCall());
}, /TypeError/);... | MTASZTAKI/ApertusVR | plugins/languageAPI/jsAPI/3rdParty/nodejs/10.1.0/source/test/parallel/test-fs-write-no-fd.js | JavaScript | mit | 321 |
// -- Vendor modules
// -- Project Modules
// -- Variables
// -- Main section
module.exports = Backbone.Model.extend({
urlRoot: '',
defaults: {
id: '',
xxx: '',
},
initialize() {
// stuff here.
},
});
| jclo/kiwii | public/pages/settings/models/settingsModel.js | JavaScript | mit | 227 |
/*!
* remark (http://getbootstrapadmin.com/remark)
* Copyright 2016 amazingsurge
* Licensed under the Themeforest Standard Licenses
*/
(function(document, window, $) {
'use strict';
var Site = window.Site;
$(document).ready(function($) {
Site.run();
$('.wb-search').magnificPopup({
type: 'imag... | ClickHandlerIO/remark | src/main/java/remark/theme/base/assets/examples/js/pages/gallery.js | JavaScript | mit | 602 |
Template.nav.helpers({
site_title: function(){
return getSetting('title');
},
logo_url: function(){
return getSetting('logoUrl');
},
logo_height: function(){
return getSetting('logoHeight');
},
logo_width: function(){
return getSetting('logoWidth');
},
logo_top: function(){
return ... | almeidamarcell/AplicativoDoDia | client/views/common/nav.js | JavaScript | mit | 1,714 |
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common')) :
typeof define === 'function' && define.amd ? define('primeng/toolbar', ['exports', '@angular/core', '@angular/common'], factory) :
(global = g... | cdnjs/cdnjs | ajax/libs/primeng/9.0.3/bundles/primeng-toolbar.umd.js | JavaScript | mit | 2,634 |
/**
*
* @author: Malishev Dmitry <dima.malishev@gmail.com>
*/
App.Templates.html = {
WEB: {
hint: ['']
},
// file manager
FM: {
entry_line: ['<li class="dir">\
<span class="marker"></span>\
<span class="icon ~!:ITEM_TYPE~!" ></span>\
... | SysVoid/vesta | web/js/templates.js | JavaScript | gpl-3.0 | 6,912 |
/**
* Nanocloud turns any traditional software into a cloud solution, without
* changing or redeveloping existing source code.
*
* Copyright (C) 2016 Nanocloud Software
*
* This file is part of Nanocloud.
*
* Nanocloud is free software; you can redistribute it and/or modify
* it under the terms of the GNU Affe... | Gentux/nanocloud | config/env/production.js | JavaScript | agpl-3.0 | 1,781 |
//>>built
define("dojox/storage/AirFileStorageProvider",["dijit","dojo","dojox","dojo/require!dojox/storage/manager,dojox/storage/Provider"],function(l,g,f){g.provide("dojox.storage.AirFileStorageProvider");g.require("dojox.storage.manager");g.require("dojox.storage.Provider");g.isAIR&&function(){if(!e)var e={};e.File=... | aconyteds/Esri-Ozone-Map-Widget | vendor/js/esri/arcgis_js_api/library/3.12/3.12compact/dojox/storage/AirFileStorageProvider.js | JavaScript | apache-2.0 | 4,104 |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* Check ToUint32(length) for non Array objects
*
* @path ch15/15.4/15.4.4/15.4.4.10/S15.4.4.10_A3_T1.js
* @description length = 4294967296
*/
var obj = {};
obj.slice = Array.pro... | hippich/typescript | tests/Fidelity/test262/suite/ch15/15.4/15.4.4/15.4.4.10/S15.4.4.10_A3_T1.js | JavaScript | apache-2.0 | 1,199 |
// 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 applicable... | rf232/dashboard | src/test/frontend/poddetail/creatorinfo_directive_test.js | JavaScript | apache-2.0 | 1,973 |
'use strict';
const assert = require('../utils/assert.js');
const Server = require('../utils/server.js');
const preq = require('preq');
describe('PDF Service', () => {
const server = new Server();
before(() => server.start());
after(() => server.stop());
it('Should get PDF for a page with title', (... | d00rman/restbase | test/features/pdf.js | JavaScript | apache-2.0 | 3,530 |
/* Copyright JS Foundation and other contributors, http://js.foundation
*
* 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 r... | jerryscript-project/jerryscript | tests/jerry/weakmap.js | JavaScript | apache-2.0 | 3,760 |
function itHasNoImports(presenter) {
expect(presenter.lastImport()).toBeFalsy();
expect(presenter.hasImport()).toBeFalsy();
expect(presenter.importInProgress()).toBeFalsy();
expect(presenter.importFailed()).toBeFalsy();
expect(presenter.inProgressText()).toBeFalsy();
}
function itBehavesLikeAGpdbDa... | jamesblunt/chorus | spec/javascripts/presenters/dataset_sidebar_presenter_spec.js | JavaScript | apache-2.0 | 19,371 |
// activityobject-test.js
//
// Test the activityobject module's class methods
//
// Copyright 2012, E14N https://e14n.com/
//
// 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:... | Acidburn0zzz/pump.io | test/activityobject-test.js | JavaScript | apache-2.0 | 65,342 |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | lato333/guacamole-client | guacamole/src/main/webapp/app/rest/types/ActiveConnection.js | JavaScript | apache-2.0 | 2,609 |
/*
* Copyright 2012 Amadeus s.a.s.
* 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 i... | vcarle/ariatemplates | test/aria/html/textarea/TextAreaOnTypeTestCase.js | JavaScript | apache-2.0 | 3,763 |
/**
* Copyright 2013-2021 the original author or authors from the JHipster project.
*
* This file is part of the JHipster project, see https://www.jhipster.tech/
* for more information.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the L... | mraible/generator-jhipster | jdl/jhipster/build-tool-types.js | JavaScript | apache-2.0 | 837 |
// This file was procedurally generated from the following sources:
// - src/dstr-binding/obj-ptrn-id-init-skipped.case
// - src/dstr-binding/default/cls-expr-async-gen-meth.template
/*---
description: Destructuring initializer is not evaluated when value is not `undefined` (class expression method)
esid: sec-class-def... | sebastienros/jint | Jint.Tests.Test262/test/language/expressions/class/dstr-async-gen-meth-obj-ptrn-id-init-skipped.js | JavaScript | bsd-2-clause | 2,439 |
// This file was procedurally generated from the following sources:
// - src/dstr-binding-for-await/ary-ptrn-elem-ary-elision-init.case
// - src/dstr-binding-for-await/default/for-await-of-async-func-const.template
/*---
description: BindingElement with array binding pattern and initializer is used (for-await-of statem... | sebastienros/jint | Jint.Tests.Test262/test/language/statements/for-await-of/async-func-dstr-const-ary-ptrn-elem-ary-elision-init.js | JavaScript | bsd-2-clause | 2,258 |
if (this.importScripts) {
importScripts('fs-worker-common.js');
importScripts('../../js/resources/js-test-pre.js');
importScripts('fs-test-util.js');
}
description("Obtaining URL from DirectoryEntry.");
var fileSystem = null;
var testDirectoryName = 'testDirectory';
var testDirectoryURI = null;
function ... | leighpauls/k2cro4 | content/test/data/layout_tests/LayoutTests/fast/filesystem/resources/directory-entry-to-uri.js | JavaScript | bsd-3-clause | 955 |
'use strict';
var Address = require('address-rfc2821');
var fixtures = require('haraka-test-fixtures');
var Connection = fixtures.connection;
var _set_up = function (done) {
this.plugin = new fixtures.plugin('rcpt_to.qmail_deliverable');
this.connection = Connection.createConnection();
done(... | baudehlo/Haraka | tests/plugins/rcpt_to.qmail_deliverable.js | JavaScript | mit | 4,059 |
version https://git-lfs.github.com/spec/v1
oid sha256:674d79bf111fae3cc0e0823bd2eb22dad3f81a4cd65d754e34aa7a2bc93c2fe2
size 12290
| yogeshsaroya/new-cdnjs | ajax/libs/rxjs/2.3.9/rx.virtualtime.js | JavaScript | mit | 130 |
import Ember from "ember-metal/core";
import {isNone, none} from 'ember-metal/is_none';
import Set from "ember-runtime/system/set";
import EmberObject from 'ember-runtime/system/object';
import EmberArray from "ember-runtime/mixins/array";
// NOTE: This test is adapted from the 1.x series of unit tests. The tests
// ... | rondale-sc/ember.js | packages/ember-runtime/tests/legacy_1x/system/set_test.js | JavaScript | mit | 8,523 |
import { Meteor } from 'meteor/meteor';
import LDAP from './ldap';
import { hasRole } from '../../authorization';
import { settings } from '../../settings';
Meteor.methods({
ldap_test_connection() {
const user = Meteor.user();
if (!user) {
throw new Meteor.Error('error-invalid-user', 'Invalid user', { method:... | 4thParty/Rocket.Chat | app/ldap/server/testConnection.js | JavaScript | mit | 939 |
Package.describe({
name: 'rocketchat:channel-settings',
version: '0.0.1',
summary: 'Channel Settings Panel',
git: ''
});
Package.onUse(function(api) {
api.use([
'coffeescript',
'ecmascript',
'reactive-var',
'tracker',
'templating',
'less',
'rocketchat:lib'
]);
api.addFiles([
'client/lib/Channel... | matthewshirley/Rocket.Chat | packages/rocketchat-channel-settings/package.js | JavaScript | mit | 1,042 |
var searchData=
[
['empty',['Empty',['../classv8_1_1_string.html#aa393d47baa54467fe57001065e49194b',1,'v8::String']]],
['endofstream',['EndOfStream',['../classv8_1_1_output_stream.html#a6c5c308367fc5776bcbedff0e94d6049',1,'v8::OutputStream']]],
['enqueuemicrotask',['EnqueueMicrotask',['../classv8_1_1_isolate.html... | v8-dox/v8-dox.github.io | fbfe562/html/search/all_4.js | JavaScript | mit | 3,092 |
// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
const Clutter = imports.gi.Clutter;
const GLib = imports.gi.GLib;
const Lang = imports.lang;
const Mainloop = imports.mainloop;
const Shell = imports.gi.Shell;
const St = imports.gi.St;
const Signals = imports.signals;
const Tweener = imports.tweener.tween... | linuxdeepin/deepin-gnome-shell | js/ui/tweener.js | JavaScript | gpl-2.0 | 9,400 |
var log = "";
log += typeof f;
{
log += f();
function f() {
return "f1";
}
}
log += f();
function g() {
log += typeof h;
{
log += h();
function h() {
return "h1";
}
}
log += h();
}
g();
reportCompare(log, "undefinedf1f1undefinedh1h1");
| cstipkovic/spidermonkey-research | js/src/tests/ecma_6/LexicalEnvironment/block-scoped-functions-annex-b.js | JavaScript | mpl-2.0 | 282 |
'use strict';
var topiarist = require('topiarist');
var LocaleSwitcher = require('br/services/LocaleSwitcher');
/**
* @module br/services/locale/BRLocaleLoadingSwitcher
*/
/**
* The loading locale-switcher is an alternative implementation of {br/services/LocaleSwitcher}.
*
* Unlike {br/services/locale/BRLoc... | trueadm/brjs | brjs-sdk/sdk/libs/javascript/br-services/src/br/services/locale/BRLocaleLoadingSwitcher.js | JavaScript | lgpl-3.0 | 1,730 |
/*!
* UI development toolkit for HTML5 (OpenUI5)
* (c) Copyright 2009-2016 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
// Provides default renderer for JSONView
sap.ui.define(['./ViewRenderer', 'sap/ui/core/Control'],
function(ViewRenderer, Control) {... | SuicidePreventionSquad/SeniorProject | resources/sap/ui/core/mvc/JSONViewRenderer-dbg.js | JavaScript | apache-2.0 | 1,740 |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | SomeFire/ignite | modules/web-console/frontend/app/modules/form/services/FormGUID.service.js | JavaScript | apache-2.0 | 894 |
//// [arrayLiteralTypeInference.ts]
class Action {
id: number;
}
class ActionA extends Action {
value: string;
}
class ActionB extends Action {
trueNess: boolean;
}
var x1: Action[] = [
{ id: 2, trueness: false },
{ id: 3, name: "three" }
]
var x2: Action[] = [
new ActionA(),
new Action... | basarat/TypeScript | tests/baselines/reference/arrayLiteralTypeInference.js | JavaScript | apache-2.0 | 2,316 |
function __processArg(obj, key) {
var arg = null;
if (obj) {
arg = obj[key] || null;
delete obj[key];
}
return arg;
}
function Controller() {
function __alloyId12(e) {
if (e && e.fromAdapter) return;
var opts = __alloyId12.opts || {};
var models = __alloyId11... | xavierlacot/alloy | test/apps/testing/ALOY-1033/_generated/android/alloy/controllers/index.js | JavaScript | apache-2.0 | 3,921 |
define(['jquery', 'jqueryui'], function() {
'use strict';
$.ui.plugin.add('draggable', 'multi', {
create: function(e, ui) {
var inst = this.data('ui-draggable'),
container = this.closest('ul');
if (container.data('initialized') !== true) {
cont... | bings/lumify | web/war/src/main/webapp/js/util/jquery.ui.draggable.multiselect.js | JavaScript | apache-2.0 | 6,132 |
var searchData=
[
['unpinpage',['unPinPage',['../classbadgerdb_1_1_buf_mgr.html#aa9bdf04c8543f59744db22efa9420c89',1,'badgerdb::BufMgr']]],
['updaterecord',['updateRecord',['../classbadgerdb_1_1_page.html#ae24e3f6076d6c0a18d4dd2014d540bab',1,'badgerdb::Page']]],
['used',['used',['../structbadgerdb_1_1_page_slot.h... | zcgu/CS564-Project-3 | docs/search/all_75.js | JavaScript | apache-2.0 | 388 |
// Copyright (c) 2012 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es5id: 15.5.4.20-2-24
description: >
String.prototype.trim - argument 'this' is an integer that
converts to a string (value is 123)
---*/
assert.sameValue(String.prototy... | sebastienros/jint | Jint.Tests.Test262/test/built-ins/String/prototype/trim/15.5.4.20-2-24.js | JavaScript | bsd-2-clause | 382 |
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// This file adheres to closure-compiler conventions in order to enable
// compilation with ADVANCED_OPTIMIZATIONS. See http://goo.gl/FwOgy
/**
* @fileo... | chromium/chromium | ios/web/js_messaging/resources/setup_frame.js | JavaScript | bsd-3-clause | 867 |
exports = module.exports = function (grunt) {
grunt.initConfig({
react: {
main: {
files: [
{
expand: true,
cwd: './public',
src: ['**/*.jsx'],
dest: './public',
ext: '.js'
}
]
}
},
watch: {
fi... | ronlobo/backbone-react-component | examples/blog/Gruntfile.js | JavaScript | mit | 514 |
import Vue from 'vue';
import CodeComponent from '~/notebook/cells/output/index.vue';
const Component = Vue.extend(CodeComponent);
describe('Output component', () => {
let vm;
let json;
const createComponent = (output) => {
vm = new Component({
propsData: {
output,
count: 1,
},
... | t-zuehlsdorff/gitlabhq | spec/javascripts/notebook/cells/output/index_spec.js | JavaScript | mit | 2,854 |
/*
* 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.
*/
'... | sergey-shandar/autorest | src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/stringWrapper.js | JavaScript | mit | 1,430 |
/*
* 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.
*/
'... | sergey-shandar/autorest | src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/floatWrapper.js | JavaScript | mit | 1,224 |
/*
YUI 3.5.0 (build 5089)
Copyright 2012 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add('frame', function(Y) {
/**
* Creates a wrapper around an iframe. It loads the content either from a local
* file or from script and creates a local YUI inst... | sitron/scrum-toolbox | src/Sitronnier/SmBoxBundle/Resources/public/js/yui/frame/frame-debug.js | JavaScript | mit | 38,236 |
'use strict';
var expect = require('chai').expect;
var commandOptions = require('../../factories/command-options');
var InstallCommand = require('../../../lib/commands/install-bower');
describe('install:bower command', function() {
var command, options, msg;
beforeEach(function() {
options = commandO... | coderly/ember-cli | tests/unit/commands/install-bower-test.js | JavaScript | mit | 1,480 |
define(
//begin v1.x content
{
"field-quarter-short-relative+0": "dette kvt.",
"field-quarter-short-relative+1": "næste kvt.",
"field-tue-relative+-1": "sidste tirsdag",
"field-year": "år",
"dateFormatItem-Hm": "HH.mm",
"field-wed-relative+0": "på onsdag",
"field-wed-relative+1": "på onsdag",
"dateFormatItem-ms... | cdnjs/cdnjs | ajax/libs/dojo/1.17.1/cldr/nls/da/generic.js | JavaScript | mit | 8,519 |
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common')) :
typeof define === 'function' && define.amd ? define('primeng/captcha', ['exports', '@angular/core', '@angular/common'], factory) :
(global = g... | cdnjs/cdnjs | ajax/libs/primeng/9.0.3/bundles/primeng-captcha.umd.js | JavaScript | mit | 5,495 |
var assert = require('assert'),
async = require('async'),
rigger = require('..'),
fs = require('fs'),
path = require('path'),
inputPath = path.resolve(__dirname, 'input-plugins'),
outputPath = path.resolve(__dirname, 'output'),
riggerOpts = {
encoding: 'utf8'
},
files = fs.re... | AlexanderDolgan/juliawp | wp-content/themes/node_modules/gulp-rigger/node_modules/rigger/test/plugins.js | JavaScript | gpl-2.0 | 1,427 |
/*!
* objectfactory - v1.0.0 (https://github.com/greenish/js-objectfactory)
*
* Copyright (c) 2013 Philipp Adrian (www.philippadrian.com)
*
* The MIT Licence (http://opensource.org/licenses/MIT)
*/
////////////////////////////////////////////////////////////////////////////////
(function(undefined){
"use strict... | mhmli/helpers | playground/inline-editor/objectfactory.js | JavaScript | gpl-3.0 | 9,065 |
/*
* Ported from Flashlight VNC ActionScript implementation:
* http://www.wizhelp.com/flashlight-vnc/
*
* Full attribution follows:
*
* -------------------------------------------------------------------------
*
* This DES class has been extracted from package Acme.Crypto for use in VNC.
* The unnecessary ... | pwasiewi/dokerz | ubuntu-vnc-desktop/image/usr/lib/noVNC/core/des.js | JavaScript | unlicense | 11,483 |
define("dojo/_base/connect", ["dojo/lib/kernel", "dojo/_base/lang"], function(dojo){
// this file courtesy of the TurboAjax Group, licensed under a Dojo CLA
// low-level delegation machinery
dojo._listener = {
// create a dispatcher function
getDispatcher: function(){
// following comments pulled out-of-line to p... | sulistionoadi/belajar-springmvc-dojo | training-web/src/main/webapp/js/dojotoolkit/dojo/_base/connect.js | JavaScript | apache-2.0 | 11,282 |
var a = {get p() { return 11; }};
function f() { return a; }
var g = 0;
for (var i = 0; i < 9; i++)
g += f().p;
assertEq(g, 99);
checkStats({recorderStarted: 1, recorderAborted: 0, traceCompleted: 1, traceTriggered: 1});
| glycerine/vj | src/js-1.8.5/js/src/jit-test/tests/basic/testScriptGetter_JSOP_GETPROP.js | JavaScript | apache-2.0 | 228 |
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
export function graphValue (value, min, max, size) {
const scale = size / (max - min);
return Math.floor(scale * (value - min));
};
export var pointSize = 12;
export var padding = (pointSize / 2) + 2;
export var debounceDelay = 50;
export class... | codeswan/grommet | src/js/components/chart/utils.js | JavaScript | apache-2.0 | 1,749 |