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 |
|---|---|---|---|---|---|
import { expect } from 'chai';
import { spec } from 'modules/papyrusBidAdapter';
const ENDPOINT = '//prebid.papyrus.global';
const BIDDER_CODE = 'papyrus';
describe('papyrus Adapter', function () {
describe('isBidRequestValid', function () {
let validBidReq = {
bidder: BIDDER_CODE,
params: {
... | Adikteev/Prebid.js | test/spec/modules/papyrusBidAdapter_spec.js | JavaScript | apache-2.0 | 3,451 |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* The Date.prototype property "setHours" has { DontEnum } attributes
*
* @path ch15/15.9/15.9.5/15.9.5.34/S15.9.5.34_A1_T2.js
* @description Checking absence of DontDelete attribu... | popravich/typescript | tests/Fidelity/test262/suite/ch15/15.9/15.9.5/15.9.5.34/S15.9.5.34_A1_T2.js | JavaScript | apache-2.0 | 608 |
// add system clipboard functionality with chrome
// works with images and notebook cells (MIME-type 'notebook-cell/json')
define([
'base/js/namespace',
'jquery',
'base/js/events'
], function(IPython, $, events) {
"use strict";
if (window.chrome === undefined) return;
/* http://stackoverflow.c... | jbn/IPython-notebook-extensions | nbextensions/usability/chrome-clipboard/main.js | JavaScript | bsd-3-clause | 6,549 |
/*
Jasmine-Ajax - v3.2.0: a set of helpers for testing AJAX requests under the Jasmine
BDD framework for JavaScript.
http://github.com/jasmine/jasmine-ajax
Jasmine Home page: http://jasmine.github.io/
Copyright (c) 2008-2015 Pivotal Labs
Permission is hereby granted, free of charge, to any person obtaining
a copy ... | dukecon/dukecon_html5 | src/main/webapp/public/test/jasmine/mock-ajax.js | JavaScript | mit | 20,475 |
// #docregion
module.exports = function(config) {
var appBase = 'src/'; // transpiled app JS and map files
var appAssets = '/base/app/'; // component assets fetched by Angular's compiler
// Testing helpers (optional) are conventionally in a folder called `testing`
var testingBase = 'src/testing/'... | wKoza/angular | aio/content/examples/upgrade-phonecat-2-hybrid/karma.conf.js | JavaScript | mit | 3,288 |
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* @fileoverview Read a tsconfig.json file intended to produce production mode
* JS output, modify it to produce... | wKoza/angular | packages/bazel/src/modify_tsconfig.js | JavaScript | mit | 2,082 |
// commit 02b91c5313ff37d74a58f71775170afd360f4a1f
// File generated at :: Wed Oct 31 2012 14:46:38 GMT-0700 (PDT)
/*
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 ow... | OneMoreCheckin/mobile-app | phonegap/2.2.0/blackberry/www/qnx/cordova-2.2.0.js | JavaScript | mit | 200,389 |
const path = require('path');
const webpack = require('webpack');
module.exports = {
mode: 'development',
context: path.resolve(__dirname, '.'),
entry: [
'babel-polyfill',
'./index.js',
],
module: {
rules: [
{
test: /\.js$/,
exclude: [/node_modules/],
use: [{
... | Parnswir/tie | sample/07 - Putting it all together/webpack.config.js | JavaScript | mit | 735 |
import _extends from "@babel/runtime/helpers/esm/extends";
var _GlobalStyles;
import * as React from 'react';
import PropTypes from 'prop-types';
import useThemeProps from '../styles/useThemeProps';
import GlobalStyles from '../GlobalStyles';
import { jsx as _jsx } from "react/jsx-runtime";
import { jsxs as _jsxs } f... | cdnjs/cdnjs | ajax/libs/material-ui/5.0.0-beta.5/legacy/CssBaseline/CssBaseline.js | JavaScript | mit | 2,758 |
/**
* HABmin - the openHAB admin interface
*
* openHAB, the open Home Automation Bus.
* Copyright (C) 2010-2013, openHAB.org <admin@openhab.org>
*
* See the contributors.txt file in the distribution for a
* full listing of individual contributors.
*
* This program is free software; you can redistribute it and/... | quique7991/monitoring2 | webapps/habmin/app/graph/itemList.js | JavaScript | epl-1.0 | 9,591 |
CKEDITOR.plugins.setLang("iframe","en-ca",{border:"Show frame border",noUrl:"Please type the iframe URL",scrolling:"Enable scrollbars",title:"IFrame Properties",toolbar:"IFrame",tabindex:"Remove from tabindex"}); | omeka/omeka-s | application/asset/vendor/ckeditor/plugins/iframe/lang/en-ca.js | JavaScript | gpl-3.0 | 212 |
SimileAjax.NativeDateUnit={};SimileAjax.NativeDateUnit.makeDefaultValue=function(){return new Date};SimileAjax.NativeDateUnit.cloneValue=function(a){return new Date(a.getTime())};SimileAjax.NativeDateUnit.getParser=function(a){typeof a=="string"&&(a=a.toLowerCase());return a=="iso8601"||a=="iso 8601"?SimileAjax.DateTim... | AppStateLibrary/omeka | plugins/NeatlineTime/views/shared/javascripts/simile/ajax-api/scripts/units.js | JavaScript | gpl-3.0 | 1,067 |
/*
Copyright 2013 Google Inc
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 in ... | r8o8s1e0/ChromeWebLab | Orchestra/sw/realtimeserver/static/ui/js/weblab/orchestra/ui/page/OrchestraPageManager.js | JavaScript | apache-2.0 | 10,330 |
// 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/persistentvolumeclaimlist/persistentvolumeclaimlist_controller_test.js | JavaScript | apache-2.0 | 1,930 |
var types = require("HAP-NodeJS/accessories/types.js");
var wemo = require('wemo');
// extend our search timeout from 5 seconds to 60
wemo.SearchTimeout = 60000;
wemo.timeout = wemo.SearchTimeout // workaround for a bug in wemo.js v0.0.4
function WeMoAccessory(log, config) {
this.log = log;
this.name = config["na... | jmtatsch/homebridge | accessories/WeMo.js | JavaScript | apache-2.0 | 4,607 |
/**
* Reassigns the trailing comments of a statement to be leading comment of its
* next sibling. This is because JSDoc comments (which should be on the next
* statement) get erroneously assigned as trailing comments of this statement.
*
* @interface {babel.PluginPass}
* @return {babel.PluginObj}
*/
module.expor... | alanorozco/amphtml | build-system/babel-plugins/babel-plugin-transform-fix-leading-comments/index.js | JavaScript | apache-2.0 | 1,023 |
import Feature from '../../../../src/ol/Feature.js';
import Icon from '../../../../src/ol/style/Icon.js';
import Map from '../../../../src/ol/Map.js';
import Point from '../../../../src/ol/geom/Point.js';
import Style from '../../../../src/ol/style/Style.js';
import VectorLayer from '../../../../src/ol/layer/Vector.js'... | adube/ol3 | test/rendering/cases/icon-scale/main.js | JavaScript | bsd-2-clause | 2,833 |
Ext.define("Ext.direct.Event",{alias:"direct.event",status:true,constructor:function(a){Ext.apply(this,a)},getName:function(){return this.name},getData:function(){return this.data}}); | AdenKejawen/erp | web/assets/extjs/src/direct/Event.js | JavaScript | mit | 183 |
template: function MyComponent_Template(rf, ctx) {
if (rf & 1) {
$r3$.ɵɵelement(0, "div");
$r3$.ɵɵelement(1, "div");
$r3$.ɵɵelement(2, "div");
}
} | mgechev/angular | packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/nested_nodes/empty_content.js | JavaScript | mit | 168 |
import { combineReducers } from 'redux';
import { routerReducer } from 'react-router-redux';
import auth from './auth';
import data from './data';
const rootReducer = combineReducers({
routing: routerReducer,
/* your reducers */
auth,
data,
});
export default rootReducer;
| agelarry/online_quiz | static/src/reducers/index.js | JavaScript | mit | 291 |
/**
* scrolldir - Vertical scroll direction in CSS
* @version v1.2.23
* @link https://github.com/dollarshaveclub/scrolldir.git
* @author Patrick Fisher <patrick@pwfisher.com>
* @license MIT
**/
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e():"function"==typeof define&&define.amd?define(e):e... | jonobr1/cdnjs | ajax/libs/scrolldir/1.2.23/scrolldir.auto.min.js | JavaScript | mit | 1,153 |
define( "JBrowse/View/Track/HTMLFeatures", [
'dojo/_base/declare',
'dojo/_base/lang',
'dojo/_base/array',
'dojo/dom-construct',
'dojo/dom-geometry',
'dojo/on',
'dojo/query',
'JBrowse/has',
'dijit/Dialog',
... | maovt/p3_web | public/js/release/JBrowse/View/Track/HTMLFeatures.js | JavaScript | mit | 60,355 |
version https://git-lfs.github.com/spec/v1
oid sha256:fcfbd4a9e4dfa4aa33d9f18906f06f898ce8fcbe9d6a57be4e34b795c171313e
size 60291
| yogeshsaroya/new-cdnjs | ajax/libs/yui/3.9.1/slider-base/slider-base-coverage.js | JavaScript | mit | 130 |
"use strict";phonon.autocomplete=function(n){function o(e){var t=e.target,n=t.parentNode.querySelector("ul");n&&(n.style.width="".concat(t.clientWidth,"px"))}return function(e,t){if(void 0!==n)return e.addEventListener("awesomplete-open",o),new n(e,t);console.error("The autocomplete component requires Awesomplete depen... | extend1994/cdnjs | ajax/libs/PhononJs/1.5.1/js/components/autocomplete.min.js | JavaScript | mit | 351 |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends2 = require('babel-runtime/helpers/extends');
var _extends3 = _interopRequireDefault(_extends2);
var _objectWithoutProperties2 = require('babel-runtime/helpers/objectWithoutProperties');
var _objectWithoutProperties3 = _inte... | jotamaggi/react-calendar-app | node_modules/material-ui/Stepper/StepButton.js | JavaScript | mit | 6,889 |
/* eslint-disable */
;(function(root, factory) {
if (typeof define === 'function' && define.amd) { // AMD
define(['../core'], factory);
} else if (typeof exports === 'object') { // Node.js
module.exports = factory(require('../core'));
} else { // Browser
root.Blockly.Msg = factory(root.Blockly);
}
}... | cdnjs/cdnjs | ajax/libs/blockly/7.20210930.0-beta.1/msg/ab.js | JavaScript | mit | 41,457 |
/*!
* Start Bootstrap - SB Admin 2 v4.0.6 (https://startbootstrap.com/template-overviews/sb-admin-2)
* Copyright 2013-2019 Start Bootstrap
* Licensed under MIT (https://github.com/BlackrockDigital/startbootstrap-sb-admin-2/blob/master/LICENSE)
*/
!function(t){"use strict";t("#sidebarToggle, #sidebarToggleTop").on(... | tranquilit/WAPT | waptserver/static/js/sb-admin-2.min.js | JavaScript | gpl-3.0 | 1,106 |
(function() {
var ServiceRegistry = require('br/ServiceRegistry');
var Emitter = require( 'emitr' );
var EventHubTest = TestCase("EventHubTest").prototype;
EventHubTest.setUp = function() {
this.hasFired = {};
this.eventHub = require('service!br.event-hub');
this.callback = this._callback.bind(this);
};
... | andreoid/testing | brjs-sdk/workspace/sdk/libs/javascript/br/test-unit/tests/EventHubTest.js | JavaScript | lgpl-3.0 | 3,184 |
(function () {
var fullpage = (function () {
'use strict';
var Cell = function (initial) {
var value = initial;
var get = function () {
return value;
};
var set = function (v) {
value = v;
};
var clone = function () {
return Cell(get());
};
return {
get: get,... | glenrobson/SimpleAnnotationServer | src/main/webapp/mirador-2.6.1/plugins/fullpage/plugin.js | JavaScript | apache-2.0 | 16,349 |
/* flatpickr v4.4.1, @license MIT */
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global.minMaxTimePlugin = factory());
}(this, (function () { 'use strict';
var p... | jonobr1/cdnjs | ajax/libs/flatpickr/4.4.1/plugins/minMaxTimePlugin.js | JavaScript | mit | 10,061 |
import { Meteor } from 'meteor/meteor';
import { LivechatVisitors } from '../../../models';
Meteor.methods({
'livechat:loginByToken'(token) {
const visitor = LivechatVisitors.getVisitorByToken(token, { fields: { _id: 1 } });
if (!visitor) {
return;
}
return {
_id: visitor._id,
};
},
});
| 4thParty/Rocket.Chat | app/livechat/server/methods/loginByToken.js | JavaScript | mit | 310 |
export default {
name: 'timeline',
};
| iamxiaoma/Framework7 | src/core/components/timeline/timeline.js | JavaScript | mit | 40 |
'use strict';
var React = require('react/addons');
var PureRenderMixin = React.addons.PureRenderMixin;
var SvgIcon = require('../../svg-icon');
var DeviceBatteryCharging20 = React.createClass({
displayName: 'DeviceBatteryCharging20',
mixins: [PureRenderMixin],
render: function render() {
return React.crea... | pborel/polisee | node_modules/material-ui/lib/svg-icons/device/battery-charging-20.js | JavaScript | mit | 721 |
function TestCmp_div_0_Template(rf, ctx) {
if (rf & 1) {
i0.ɵɵelementStart(0, "div");
i0.ɵɵtext(1, "Hello");
i0.ɵɵelementEnd();
}
}
| gkalpak/angular | packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/non_literal_template.js | JavaScript | mit | 154 |
'use strict';
const stew = require('broccoli-stew');
module.exports = function shimAmd(tree, nameMapping) {
return stew.map(tree, (content, relativePath) => {
let name = nameMapping[relativePath];
let sections = [
'(function(define){\n',
content,
'\n})((function(){ function newDefine(){ var... | ember-cli/ember-cli | lib/tasks/transforms/amd/amd-shim.js | JavaScript | mit | 638 |
import React, {Component} from "react";
import App from "../components/App";
import DevTools from "./DevTools";
class Root extends Component {
constructor() {
super();
}
render() {
return (
<div className="taxonomy-Root">
<App />
<DevTools />
... | dnnsoftware/Dnn.AdminExperience.Extensions | src/Modules/Settings/Dnn.PersonaBar.Vocabularies/Vocabularies.Web/src/containers/Root.dev.js | JavaScript | mit | 375 |
console.log("two");
| coolaj86/node-pakman | test_modules/qux/quxlib/two.js | JavaScript | mit | 20 |
/**
send mail based kue example
make sure started redis-server on localhost:6379
and then
```
cd examples/kuemailer
node index.js
```
open new terminal
```
$ curl -H "Content-Type: application/json" -X POST -d \
'{
"type": "postbox",
"data": {
"title": "Mangia gli spaghetti con polpette!",... | JiminHong/mine | packages/custom/mail-templates/node_modules/email-templates/examples/kuemailer/index.js | JavaScript | mit | 1,883 |
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a... | cdnjs/cdnjs | ajax/libs/react-dnd/13.1.1/esm/hooks/useMonitorOutput.js | JavaScript | mit | 2,237 |
// 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... | teeple/pns_server | work/install/node-v0.10.25/test/pummel/test-net-connect-memleak.js | JavaScript | gpl-2.0 | 1,951 |
jQuery(document).ready(function($) {
var addthis_credential_validation_status = $("#addthis_credential_validation_status");
var addthis_validation_message = $("#addthis-credential-validation-message");
var addthis_profile_validation_message = $("#addthis-profile-validation-message");
//Validate the Ad... | cw196/tiwal | zh/wp-content/plugins/addthis-smart-layers/js/smart_layer_options.js | JavaScript | gpl-2.0 | 4,046 |
function tv_noscroll(_args) {
var w = Ti.UI.createWindow({
title:_args.title
});
var search = Titanium.UI.createSearchBar({
showCancel:false,
hintText:'type in me then scroll'
});
var tv = Ti.UI.createTableView({
scrollable:false,
search:search
});
w.add(tv);
var data = [];
var count = 5;
for ... | jeehakim/KitchenSink-stable | Resources/ui/handheld/ios/baseui/table_view_noscroll.js | JavaScript | apache-2.0 | 489 |
// Copyright 2011-2013 MIT, All rights reserved
// Released under the Apache License, Version 2.0
// http://www.apache.org/licenses/LICENSE-2.0
/**
* Main function for creating usit tests for yail generators
*
* Author: Hal Abelson (hal@mit.edu)
*/
// This is the main function for execution of generator tests; it... | afmckinney/appinventor-sources | appinventor/blocklyeditor/tests/com/google/appinventor/generators_unit/generator_test_mainRoutine.js | JavaScript | apache-2.0 | 2,267 |
define([
'angular',
'jquery',
'kbn',
'underscore',
'config',
'moment',
'modernizr',
'filesaver'
],
function (angular, $, kbn, _, config, moment, Modernizr) {
'use strict';
var DEBUG = false; // DEBUG mode
var module = angular.module('kibana.services');
module.service('dashboard', function($ro... | LucidWorks/solr-for-datascience | static/app/services/dashboard.js | JavaScript | apache-2.0 | 15,115 |
// Copyright 2021 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.
/** @return {!Promise<void>} */
export function importElements() {
const startTime = Date.now();
return new Promise((resolve, reject) => {
const s... | scheib/chromium | ui/file_manager/file_manager/foreground/js/elements_importer.js | JavaScript | bsd-3-clause | 791 |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @emails react-core
*/
/* eslint-disable no-func-assign */
'use strict';
const ReactDOMServerIntegrationUtils = require('./uti... | TheBlasfem/react | packages/react-dom/src/__tests__/ReactDOMServerIntegrationHooks-test.internal.js | JavaScript | bsd-3-clause | 24,817 |
description(
'This tests the behavior of non-numeric values in contexts where the DOM has a numeric parameter.'
);
function nonNumericPolicy(template)
{
var x = 0;
try {
eval(template);
} catch (e) {
return e;
}
var nullAllowed = 1;
x = null;
try {
eval(template);
... | danakj/chromium | third_party/WebKit/LayoutTests/fast/dom/script-tests/non-numeric-values-numeric-parameters.js | JavaScript | bsd-3-clause | 28,758 |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var turnOrder = require('./turn-order-9099d084.js');
require('immer');
require('lodash.isplainobject');
/*
* Copyright 2018 The boardgame.io Authors
*
* Use of this source code is governed by a MIT-style
* license that can be found ... | cdnjs/cdnjs | ajax/libs/boardgame-io/0.49.8/cjs/core.js | JavaScript | mit | 1,366 |
tinyMCE.addI18n({en_US:{
nextgenPublicUpload:{
desc : 'Upload An Image'
}}}); | mearleycf/boltgun2 | wp-content/plugins/nextgen-public-uploader/tinymce/langs/en_US.js | JavaScript | gpl-2.0 | 81 |
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'sourcearea', 'th', {
toolbar: 'ดูรหัส HTML'
} );
| gmuro/dolibarr | htdocs/includes/ckeditor/ckeditor/_source/plugins/sourcearea/lang/th.js | JavaScript | gpl-3.0 | 232 |
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is dis... | evltuma/moodle | theme/boost/amd/src/form-display-errors.js | JavaScript | gpl-3.0 | 3,680 |
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'pagebreak', 'is', {
alt: 'Page Break', // MISSING
toolbar: 'Setja inn síðuskil'
} );
| gmuro/dolibarr | htdocs/includes/ckeditor/ckeditor/_source/plugins/pagebreak/lang/is.js | JavaScript | gpl-3.0 | 259 |
/* */
'use strict';
var $def = require('./$.def'),
toLength = require('./$.to-length'),
context = require('./$.string-context');
$def($def.P + $def.F * !require('./$.fails')(function() {
'q'.endsWith(/./);
}), 'String', {endsWith: function endsWith(searchString) {
var that = context(this, searchString, '... | elsiklab/sequenceserver | public/vendor/npm/core-js@1.1.2/modules/es6.string.ends-with.js | JavaScript | agpl-3.0 | 597 |
// Copyright 2020 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.
// MSEPlayerUtils provides functionality to load and append media segments using
// MSE API. The segments can be fetched at specified intervals to simulat... | youtube/cobalt | third_party/chromium/media/test/data/eme_player_js/mse_player_utils.js | JavaScript | bsd-3-clause | 2,822 |
/*
YUI 3.6.0 (build 5521)
Copyright 2012 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add('datasource-textschema', function(Y) {
/**
* Extends DataSource with schema-parsing on text data.
*
* @module datasource
* @submodule datasource-textschema
*/
/**
*... | bretkikehara/wattdepot-visualization | src/main/webapp/yui/3.6.0/build/datasource-textschema/datasource-textschema.js | JavaScript | bsd-3-clause | 2,781 |
'use strict';
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
/* Tabulator v3.3.2 (c) Oliver Fol... | joeyparrish/cdnjs | ajax/libs/tabulator/3.3.2/js/tabulator.js | JavaScript | mit | 309,276 |
export default function (ruleName, rule) {
return {
ruleName,
rule,
}
}
| gaidarenko/stylelint | src/createPlugin.js | JavaScript | mit | 84 |
/**
* Copyright (C) 2007 - 2012 GeoSolutions S.A.S.
* http://www.geo-solutions.it
*
* GPLv3 + Classpath exception
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3... | kappu72/MapStore | mapcomposer/app/static/externals/gxp/src/script/widgets/form/SpatialSelectorField.js | JavaScript | gpl-3.0 | 55,484 |
// Copyright 2017 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flags: --allow-natives-syntax
function f(x) {
var x0 = (0 != Math.min(1, 1)) && 1;
1.1!=(x||x0)
}
%PrepareFunctionForOptimization(f);
f(1.1);
f... | weolar/miniblink49 | v8_7_5/test/mjsunit/compiler/regress-761892.js | JavaScript | apache-2.0 | 365 |
/*
* 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 ... | rscrimojr/incubator-trafficcontrol | traffic_portal/app/src/common/api/RoleService.js | JavaScript | apache-2.0 | 1,939 |
/**
* @license
* Copyright The Closure Library Authors.
* SPDX-License-Identifier: Apache-2.0
*/
goog.module('goog.html.SafeHtmlFormatter');
goog.module.declareLegacyNamespace();
const SafeHtml = goog.require('goog.html.SafeHtml');
const {ENABLE_ASSERTS, assert} = goog.require('goog.asserts');
const {getRandomSt... | scheib/chromium | third_party/google-closure-library/closure/goog/html/safehtmlformatter.js | JavaScript | bsd-3-clause | 5,874 |
/* This Source Code Form is subject to the terms of the MIT license
* If a copy of the MIT license was not distributed with this file, you can
* obtain one at https://raw.github.com/mozilla/butter/master/LICENSE */
define( [ "core/trackevent", "core/track", "core/eventmanager",
"./track-container", "util/s... | chirilo/airmozilla | airmozilla/popcorn/static/popcorn/PopcornEditor/src/timeline/media.js | JavaScript | bsd-3-clause | 9,029 |
/**
* Extend the list of builtin phases by merging in an array of phases
* requested by a user while preserving the relative order of phases
* as specified by both arrays.
*
* If the first new name does not match any existing phase, it is inserted
* as the first phase in the new list. The same applies for the sec... | vancarney/apihero-module-socketio | test/server/node_modules/loopback/node_modules/loopback-phase/lib/merge-name-lists.js | JavaScript | mit | 2,606 |
// $Id: noderef_dialog.js,v 1.1.2.7 2009/09/28 07:56:42 markuspetrux Exp $
(function ($) {
/**
* Private namespace.
*/
Drupal.nodeRelationshipsReferenceDialog = Drupal.nodeRelationshipsReferenceDialog || {};
/**
* Modal Frame behavior.
*/
Drupal.modalFrameChild = Drupal.modalFrameChild || {};
Drupal.modalFrameCh... | fossasia/fossasia11-drupal | sites/all/modules/noderelationships/js/noderef_dialog.js | JavaScript | gpl-2.0 | 20,067 |
// Copyright (c) 2017, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
frappe.ui.form.on('Asset Maintenance', {
setup: (frm) => {
frm.set_query("assign_to", "asset_maintenance_tasks", function(doc) {
return {
query: "erpnext.assets.doctype.asset_maintenance.a... | ovresko/erpnext | erpnext/assets/doctype/asset_maintenance/asset_maintenance.js | JavaScript | gpl-3.0 | 3,842 |
// 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... | grgustaf/jerryscript | tests/jerry/fail/regression-test-issue-2039.js | JavaScript | apache-2.0 | 705 |
/**
* Copyright (c) 2015-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... | jevakallio/react-native | Libraries/Interaction/JSEventLoopWatchdog.js | JavaScript | bsd-3-clause | 2,928 |
"use strict";
/**
* @license
* Copyright 2016 Palantir Technologies, Inc.
*
* 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
*
* Unle... | 3dtech/3DWayfinderAngular | tests/angular4/node_modules/tslint/lib/rules/objectLiteralShorthandRule.js | JavaScript | mit | 3,263 |
/**
* @author sunag / http://www.sunag.com.br/
*/
THREE.Matrix4Node = function ( matrix ) {
THREE.InputNode.call( this, 'm4' );
this.value = matrix || new THREE.Matrix4();
};
THREE.Matrix4Node.prototype = Object.create( THREE.InputNode.prototype );
THREE.Matrix4Node.prototype.constructor = THREE.Matrix4Node;
T... | SpatialMap/SpatialMapDev | node_modules/three/examples/js/nodes/inputs/Matrix4Node.js | JavaScript | mit | 855 |
'use strict';
var abs = require('./abs');
var floor = require('./floor');
var ToNumber = require('./ToNumber');
var $isNaN = require('../helpers/isNaN');
var $isFinite = require('../helpers/isFinite');
var $sign = require('../helpers/sign');
// http://262.ecma-international.org/5.1/#sec-9.4
module.exports = functio... | matryer/bitbar | xbarapp.com/node_modules/es-abstract/5/ToInteger.js | JavaScript | mit | 514 |
require('./about.less');
var appFunc = require('../utils/appFunc');
module.exports = {
init: function(){
appFunc.hideToolbar();
}
}; | vehicles/Demo | zTHiApp/src/modules/about/about.js | JavaScript | mit | 150 |
/**
* @author Mat Groves http://matgroves.com/
*/
/**
* A tiling sprite is a fast way of rendering a tiling image
* @class TilingSprite
* @extends DisplayObjectContainer
* @constructor
* @param texture {Texture} the texture of the tiling sprite
* @param width {Number} the width of the tiling sprite
* @param ... | kikibridges/pixi.js | src/pixi/extras/TilingSprite.js | JavaScript | mit | 1,363 |
CKEDITOR.plugins.setLang("div","sv",{IdInputLabel:"Id",advisoryTitleInputLabel:"Rådgivande titel",cssClassInputLabel:"Stilmallar",edit:"Redigera Div",inlineStyleInputLabel:"Inline Style",langDirLTRLabel:"Vänster till Höger (LTR)",langDirLabel:"Språkriktning",langDirRTLLabel:"Höger till vänster (RTL)",languageCodeInput... | Gizra/productivity | wrapboostrap/js/ckeditor/plugins/div/lang/sv.js | JavaScript | gpl-2.0 | 452 |
var utils = require('../lib/utils');
var fs = require('fs');
var path = require('path');
var assert = require('assert');
var t = -1;
var group = path.basename(__filename, '.js') + '/';
var fixturesdir = path.join(__dirname, 'fixtures');
var tests = [
{ run: function() {
var what = this.what;
var r;
... | FlamesRunner/natCP | web/manager/node_modules/ssh2/node_modules/ssh2-streams/test/test-utils.js | JavaScript | gpl-3.0 | 40,304 |
// Don't assert.
try {
eval('\
function asmModule(g, foreign, heap) {\
"use asm";\
let HEAP8 = new g.Int8Array(heap);\
function f() { return 17; } \
return {f: f};\
}\
let m = asmModule("", "", 1, "");\
');
} catch (ex) {
}
| michath/ConMonkey | js/src/jit-test/tests/asm.js/bug855526.js | JavaScript | mpl-2.0 | 276 |
odoo.define('website.debugManager', function (require) {
'use strict';
var config = require('web.config');
var DebugManager = require('web.DebugManager');
var websiteNavbarData = require('website.navbar');
var DebugManagerMenu = websiteNavbarData.WebsiteNavbar.include({
/**
* @override
*/
start: fun... | ygol/odoo | addons/website/static/src/js/menu/debug_manager.js | JavaScript | agpl-3.0 | 538 |
$(function(){
/*
* Extra
* */
// File input (using http://filamentgroup.com/lab/jquery_custom_file_input_book_designing_with_progressive_enhancement/)
if ($.fn.customFileInput){
$('#file').customFileInput({
button_position : 'right'
});
}
//####### Wijmo
if ($.f... | argob/cofra | web/js/bootstrapJQ/assets/js/demo-extra.js | JavaScript | mit | 6,793 |
export default function (qunit, $, Inputmask) {
qunit.module("Numeric.Extensions");
qunit.test("€ Currency precision 2", function (assert) {
var done = assert.async(),
$fixture = $("#qunit-fixture");
$fixture.append('<input type="text" id="testmask" />');
var testmask = doc... | AfrikaBurn/Main | web/libraries/jquery.inputmask/qunit/tests_numeric.js | JavaScript | gpl-2.0 | 75,679 |
Proj4js.defs["EPSG:2801"] = "+proj=lcc +lat_1=30.7 +lat_2=29.3 +lat_0=28.5 +lon_0=-91.33333333333333 +x_0=1000000 +y_0=0 +ellps=GRS80 +units=m +no_defs"; | debard/georchestra-ird | mapfishapp/src/main/webapp/lib/proj4js/lib/defs/EPSG2801.js | JavaScript | gpl-3.0 | 153 |
Proj4js.defs["EPSG:28418"] = "+proj=tmerc +lat_0=0 +lon_0=105 +k=1 +x_0=18500000 +y_0=0 +ellps=krass +units=m +no_defs"; | pmauduit/georchestra | mapfishapp/src/main/webapp/lib/proj4js/lib/defs/EPSG28418.js | JavaScript | gpl-3.0 | 120 |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* Evaluate the production ObjectLiteral: { Identifier : AssignmentExpression}
*
* @path ch11/11.1/11.1.5/S11.1.5_A1.4.js
* @description Checking various properteis and contents of... | hippich/typescript | tests/Fidelity/test262/suite/ch11/11.1/11.1.5/S11.1.5_A1.4.js | JavaScript | apache-2.0 | 1,095 |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* If (Evaluate Statement).type is "break" and (Evaluate Statement).target is in the current label set, (normal, (Evaluate Statement), empty) is returned while evaluating a "var-loop"... | hippich/typescript | tests/Fidelity/test262/suite/ch12/12.6/12.6.3/S12.6.3_A12.1_T1.js | JavaScript | apache-2.0 | 598 |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* ExponentPart :: ExponentIndicator ( /+/-) 0 DecimalDigits is allowed
*
* @path ch07/7.8/7.8.3/S7.8.3_A4.2_T1.js
* @description ExponentIndicator :: e
*/
//CHECK#0
if (0e01 !==... | popravich/typescript | tests/Fidelity/test262/suite/ch07/7.8/7.8.3/S7.8.3_A4.2_T1.js | JavaScript | apache-2.0 | 906 |
var Sandwich = require('sandwich-stream').SandwichStream
var stream = require('stream')
var inherits = require('inherits')
var CRNL = '\r\n'
module.exports = Multipart
/**
* Multipart request constructor.
* @constructor
* @param {object} [opts]
* @param {string} [opts.boundary] - The boundary to be used. If omit... | sashamitrovich/markscript-todo | server/node_modules/multipart-stream/index.js | JavaScript | mit | 1,432 |
'use strict'
/*global console*/
var thunk = require('../thunks.js')()
console.time('thunk_parallel')
thunk.all([
thunk(function (callback) { setTimeout(function () { callback(null, 1) }, 1000) }),
2,
thunk(3),
thunk(thunk(4)),
thunk(function (callback) { setTimeout(function () { callback(null, 5) }, 1000) }... | sbarnabas/gowhere | node_modules/thunks/examples/parallel1.js | JavaScript | mit | 456 |
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
!function() {
'use strict';
var constant = 1, method = function() {}, clazz = class {};
}();
| ocombe/angular | tools/symbol-extractor/symbol_extractor_spec/var_list.js | JavaScript | mit | 300 |
function SavedReports(reportOptions) {
var opts = reportOptions;
var elements = {
indicator:$('#indicator'),
resultsDiv:$('#resultsDiv'),
emailForm:$('#emailForm'),
sendEmailButton:$('#btnSendEmail'),
emailIndicator:$('#sendEmailIndicator'),
deleteReportButton:$('#btnDeleteReport')
};
var reportId = 0... | pluanant/booktu | Web/scripts/reports/saved-reports.js | JavaScript | gpl-3.0 | 4,018 |
//// [nonMergedDeclarationsAndOverloads.ts]
class A {
m1: string;
f() {}
m1 (a: string): void;
m1 (a: number): void;
m1 (a: any): void {
}
}
//// [nonMergedDeclarationsAndOverloads.js]
var A = /** @class */ (function () {
function A() {
}
A.prototype.f = function () { };
... | weswigham/TypeScript | tests/baselines/reference/nonMergedDeclarationsAndOverloads.js | JavaScript | apache-2.0 | 384 |
//// [classExtendingClass.ts]
class C {
foo: string;
thing() { }
static other() { }
}
class D extends C {
bar: string;
}
var d: D;
var r = d.foo;
var r2 = d.bar;
var r3 = d.thing();
var r4 = D.other();
class C2<T> {
foo: T;
thing(x: T) { }
static other<T>(x: T) { }
}
class D2<T> extends... | AbubakerB/TypeScript | tests/baselines/reference/classExtendingClass.js | JavaScript | apache-2.0 | 1,520 |
// Usage: copy and paste into mongo
// Set all users with trial requests to a teacher or teacher-like role, depending on trial request.
var project = {role:1, name:1, email:1, permissions: 1};
db.trial.requests.find().forEach(function(trialRequest) {
print('Inspecting trial request', trialRequest._id);
var ... | tpai/codecombat | scripts/mongodb/migrations/2016-03-18-init-school-roles.js | JavaScript | mit | 3,183 |
var _ = require('lodash');
var async = require('async');
var crypto = require('crypto');
var nodemailer = require('nodemailer');
var passport = require('passport');
var User = require('../models/User');
var secrets = require('../config/secrets');
/**
* GET /login
* Login page.
*/
exports.getLogin = function(req, re... | LovelyHorse/goodfaith | controllers/user.js | JavaScript | mit | 9,992 |
import "./i18n";
import "./methods";
| together-web-pj/together-web-pj | imports/plugins/included/product-variant/server/index.js | JavaScript | gpl-3.0 | 37 |
goog.provide('bitex.fsm.Fsm');
goog.provide('bitex.fsm.Fsm.Error');
goog.require('goog.array');
goog.require('goog.object');
goog.require('goog.debug.Logger');
/** @typedef {*} */
bitex.fsm.Fsm.StateType;
/** @typedef {*} */
bitex.fsm.Fsm.InputType;
/** @typedef {function(string,bitex.fsm.Fsm.InputType) } */
bit... | cesardeazevedo/FX-Exchange | jsdev/bitex/fsm/fsm.js | JavaScript | gpl-3.0 | 7,161 |
(function(define) {
'use strict';
define([
'jquery',
'underscore',
'backbone',
'common/js/spec_helpers/template_helpers',
'edx-ui-toolkit/js/utils/spec-helpers/ajax-helpers',
'js/student_account/views/AccessView',
'js/student_account/views/FormView',
... | TheMOOCAgency/edx-platform | lms/static_sav/js/spec/student_account/access_spec.js | JavaScript | agpl-3.0 | 10,625 |
define(["require", "exports"], function (require, exports) {
"use strict";
exports.__esModule = true;
var C = /** @class */ (function () {
function C() {
}
return C;
}());
exports.C = C;
});
| domchen/typescript-plus | tests/baselines/reference/project/declarationDir2/amd/out/subfolder/c.js | JavaScript | apache-2.0 | 245 |
// division-by-zero-test.js
var vows = require('vows'),
assert = require('assert'),
webdriverjs = require('../index'),
fs = require('fs');
var client;
// Create a Test Suite
vows.describe('my github tests').addBatch({
'init webdriverjs': {
topic: function () {
client = webdriver... | CryptArc/coinpunk | node_modules/webdriverjs/examples/webdriverjs.with.vows.js | JavaScript | bsd-2-clause | 2,507 |
/**
* Copyright 2013-2015, 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.
*
* @emails react-co... | ashwin01/react | src/shared/utils/__tests__/OrderedMap-test.js | JavaScript | bsd-3-clause | 29,487 |
// Copyright 2019 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
(import{blah})
| youtube/cobalt | third_party/v8/test/message/fail/import-blah-script.js | JavaScript | bsd-3-clause | 183 |
// Copyright 2007 Google Inc.
//
// 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 in... | ychen820/microblog | y/google-cloud-sdk/platform/google_appengine/demos/php/minishell/static/shell.js | JavaScript | bsd-3-clause | 6,358 |
/*
cssobj v1.2.1
Tue Aug 08 2017 14:34:19 GMT+0800 (CST)
commit f4275ef5f0c0c77716c98a34e482c50b20e34390
https://github.com/cssobj/cssobj
Released under the MIT License.
Components version info:
- cssobj-core@1.1.5
9459706b9a78c8a1e3f91f85d8b683911e340c54
- cssobj-plugin-cssom@4.0.0
d7f505abd6... | jonobr1/cdnjs | ajax/libs/cssobj/1.2.1/cssobj.iife.js | JavaScript | mit | 31,589 |