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 |
|---|---|---|---|---|---|
// Test how stepping interacts with switch statements.
var g = newGlobal();
g.eval('function bob() { return "bob"; }');
// Stepping into a sparse switch should not stop on literal cases.
evaluate(`function lit(x) { // 1
debugger; // 2
switch(x) { // 3
case "nope": ... | cstipkovic/spidermonkey-research | js/src/jit-test/tests/debug/Frame-onStep-14.js | JavaScript | mpl-2.0 | 1,295 |
// species_data_url, previously_selected_species_ids, and species_options come in via django and must be set before including this file
var species_counter = 0; // This is the counter to make new species elements so that we don't have to worry about array splicing when we remove a species.
var species_on_page = []; ... | tph-thuering/vnetsource | ts_repr/static/ts_repr/js/creation/species.js | JavaScript | mpl-2.0 | 12,181 |
/* 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/. */
define(function (require, exports, module) {
'use strict';
var Account = require('models/account');
var ass... | swatilk/fxa-content-server | app/tests/spec/views/mixins/signup-mixin.js | JavaScript | mpl-2.0 | 6,670 |
/* Copyright <YEAR(S)> <AUTHOR(S)>
* License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). */
odoo.define_section('module_name', ['module_name.ExportedObject'], function(test) {
"use strict";
test('It should demonstrate a PhantomJS test for web (backend)',
function(assert, ExportedObject) {
... | jpablio/Directrices-JPV | template/module/static/tests/js/module_name.js | JavaScript | agpl-3.0 | 611 |
(function(Juvia){
Base64 = {
_keyStr: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",
encode: function(input) {
var output = "";
var chr1, chr2, chr3, enc1, enc2, enc3, enc4;
var i = 0;
while (i < input.length) {
chr1 = input.charCodeAt(i++);
... | railskumar/comments | app/assets/javascripts/api/base64.js | JavaScript | agpl-3.0 | 895 |
/* eslint-disable newline-per-chained-call */
var monitoring = require('./helpers/monitoring'),
authoring = require('./helpers/authoring'),
ctrlKey = require('./helpers/utils').ctrlKey,
commandKey = require('./helpers/utils').commandKey,
ctrlShiftKey = require('./helpers/utils').ctrlShiftKey,
asse... | gbbr/superdesk-client-core | spec/authoring_spec.js | JavaScript | agpl-3.0 | 31,226 |
angular.module('editor', [
'ui.router',
'editor.conf.persistence',
'editor.conf.loadingbar',
'editor.views.recipes',
'editor.views.recipes.recipe',
'editor.views.recipes.sheet',
'editor.views.ingredients',
'editor.views.equipments',
'editor.views.equipments.equipment'
])
.config(['$urlRouterProvider',... | vieuxsinge/editor | editor/main.js | JavaScript | agpl-3.0 | 515 |
// Copyright (C) 2015 Sam Parkinson
// This program is free software; you can redistribute it and/or
// modify it under the terms of the The GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
// You should hav... | Daksh/turtleblocksjs | js/platformstyle.js | JavaScript | agpl-3.0 | 1,373 |
/*!
* Jade - nodes - Filter
* Copyright(c) 2010 TJ Holowaychuk <tj@vision-media.ca>
* MIT Licensed
*/
/**
* Module dependencies.
*/
var Node = require('./node');
/**
* Initialize a `Filter` node with the given
* filter `name` and `block`.
*
* @param {String} name
* @param {Block|Node} block
* @api publ... | diffalot/memetec | node_modules/.npm/jade/0.9.1/package/lib/nodes/filter.js | JavaScript | agpl-3.0 | 541 |
import React from 'react';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl } from 'react-intl';
const messages = defineMessages({
placeholder: { id: 'search.placeholder', defaultMessage: 'Search' },
});
class Search extends React.PureComponent {
static propTypes = {
value: PropTypes.s... | h-izumi/mastodon | app/javascript/mastodon/features/compose/components/search.js | JavaScript | agpl-3.0 | 1,817 |
/**
* Module util.js
* Its static common helpers methods
*/
(function (window) {
if (!Array.isArray) {
Array.isArray = function (arg) {
return Object.prototype.toString.call(arg) === '[object Array]';
};
}
var util = {};
/**
* Deeply extends two objects
* @pa... | raceface2nd/owncollab | owncollab_talks/js/libs/util.js | JavaScript | agpl-3.0 | 28,701 |
/*
* 3dhtml Core Library
* http://3dhtml.netzministerium.de
* Version 1.1, 27/02/2002
*
* Copyright (c) 2001, 2002 by Till Nagel and René Sander
* Written by Till Nagel <till@netzministerium.de> and René Sander <rene@netzministerium.de>
* Performance optimization by Fabian Guisset.
*
* Distributed under the te... | SoHiggo/3dhtml | js/3dhtml.js | JavaScript | lgpl-2.1 | 27,963 |
if (Highcharts != null) {
if (Highcharts.charts == null) {
Highcharts.charts = {};
}
if (Highcharts.getChart == null) {
Highcharts.getChart = function(chartId, containerId) {
var opts = Highcharts.charts[chartId];
opts.chart.renderTo = containerId;
return opts;
}
}
Highcharts.charts['basicTimeSe... | secondfoundation/Second-Foundation-Src | src/haruspex/nodejs/websocket/public/js/charts/basicTimeSeries.js | JavaScript | lgpl-2.1 | 623 |
asynctest(
'browser.tinymce.plugins.table.ClipboardTest',
[
'ephox.agar.api.Pipeline',
'ephox.mcagar.api.LegacyUnit',
'ephox.mcagar.api.TinyLoader',
'tinymce.core.util.Tools',
'tinymce.plugins.table.Plugin',
'tinymce.themes.modern.Theme'
],
function (Pipeline, LegacyUnit, TinyLoader, Too... | aduth/tinymce | src/plugins/table/src/test/js/browser/ClipboardTest.js | JavaScript | lgpl-2.1 | 10,535 |
import { defineComponent, mount, Html } from 'js-surface';
import { Component } from 'js-surface/common';
const { br, div } = Html;
const Parent = defineComponent({
displayName: 'Parent',
properties: {
masterValue: {
type: String,
defaultValue: 'default-value'
}
},... | mcjazzyfunky/js-surface | boxroom/archive/backup-js-surface-2018-02-19/src/demo/class-based/injection/injection.js | JavaScript | lgpl-3.0 | 1,881 |
'use strict';
// dependencies
var DataManager = require('./../../core/DataManager');
var Enums = require('./../../core/Enums');
var makeTokenParameters = require('../../core/Utils').makeTokenParameters;
/**
* It exports a object with StaticDataSeries controllers (get/new/edit)
* @return {Object} A object with contr... | pauloremoli/terrama2 | webapp/controllers/configuration/StaticDataSeries.js | JavaScript | lgpl-3.0 | 1,157 |
var searchData=
[
['tester',['tester',['../classcontrol_vue.html#a92d898224293b741e5c6d3a3576a2193',1,'controlVue']]],
['testerappuyer',['testerAppuyer',['../class_vue.html#a7fb0d20950a6596a3eef78e244628682',1,'Vue']]],
['testerdossier',['testerDossier',['../classcontrol_vue.html#a630d60f73a0cdb77d2f7f92050983da7... | emeric254/ACSIGroupe35Curling | doc/html/search/functions_74.js | JavaScript | unlicense | 783 |
import { useQuery } from '@apollo/react-hooks'
import { makeStyles } from '@material-ui/core'
import { Formik, Form, Field } from 'formik'
import gql from 'graphql-tag'
import React, { useState } from 'react'
import * as Yup from 'yup'
import PromptWhenDirty from 'src/components/PromptWhenDirty'
import { Button } from... | lamassu/lamassu-server | new-lamassu-admin/src/pages/Wizard/components/Wallet/ChooseCoin.js | JavaScript | unlicense | 1,915 |
var reportResource = "/public/Samples/Reports/States";
visualize({
auth: {
name: "joeuser",
password: "joeuser",
organization: "organization_1"
}
}, function (v) {
v("#main").report({
resource: reportResource,
linkOptions: {
events: {
"cli... | ernestoongaro/vis.js-simple-live | reports-hyperlink-passing/demo.js | JavaScript | unlicense | 904 |
/* */
var convert = require('./convert');
module.exports = convert('partial', require('../partial'));
| EpitaJS/js-class-2016-episode-2 | jspm_packages/npm/lodash@4.6.1/fp/partial.js | JavaScript | unlicense | 103 |
// Auto-generated. Do not edit!
// (in-package gf_beacon.srv)
"use strict";
const _serializer = _ros_msg_utils.Serialize;
const _arraySerializer = _serializer.Array;
const _deserializer = _ros_msg_utils.Deserialize;
const _arrayDeserializer = _deserializer.Array;
const _finder = _ros_msg_utils.Find;
const _getByteL... | geofrenzy/utm-mbsb | ros-src/catkin_ws/install/share/gennodejs/ros/gf_beacon/srv/gf_encoding.js | JavaScript | apache-2.0 | 9,288 |
Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require('react-native');Object.keys(_reactNative).forEach(function(key){if(key==="default"||key==="__esModule")return;Object.defineProperty(exports,key,{enumerable:true,get:function get(){return _reactNative[key];}});}); | RahulDesai92/PHR | node_modules/react-native-vector-icons/dist/react-native.js | JavaScript | apache-2.0 | 294 |
/**
* @license
* 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 requir... | jlhughes/foam | js/foam/navigator/views/GSnippetMetadatum.js | JavaScript | apache-2.0 | 1,077 |
let mix = require('laravel-mix');
let fs = require('fs');
/*
|--------------------------------------------------------------------------
| Mix Asset Management
|--------------------------------------------------------------------------
|
| Mix provides a clean, fluent API for defining some Webpack build steps
| ... | slimkit/thinksns-plus | resources/stubs/package/webpack.mix.js | JavaScript | apache-2.0 | 986 |
/* 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/.
*/
/* General nsIUpdateCheckListener onload and onerror error code and statusText
Tests */
// Errors tested:
// ... | sergecodd/FireFox-OS | B2G/gecko/toolkit/mozapps/update/test/unit/test_0050_general.js | JavaScript | apache-2.0 | 5,376 |
var React = require('react');
var request = require('superagent');
var GHRelease = React.createClass({
getInitialState: function() {
return {
windows: null
}
},
componentDidMount: function() {
request.get(
'https://api.github.com/repos/musicpicker/MusicPickerDevice/releases/latest'
)... | musicpicker/musicpicker | client/js/ghrelease.js | JavaScript | apache-2.0 | 1,448 |
function pushRegisterError(_data, _callback) {
_callback && _callback({
success: false,
error: _data
});
}
function pushRegisterSuccess(_userId, _data, _callback) {
var token = _data.deviceToken;
Cloud.PushNotifications.unsubscribe({
device_token: Ti.App.Properties.getString("an... | TeamAir4385/Production | build/mobileweb/iphone/pushNotifications.js | JavaScript | apache-2.0 | 4,865 |
import EmberObject from '@ember/object';
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
let testSerializedData = {
'hello.txt': {
content_type: 'text/plain',
data: 'aGVsbG8gd29ybGQ=',
digest: "md5-7mkg+nM0HN26sZkLN8KVSA=="
// CouchDB doesn't add 'length'
},
'stub... | pouchdb-community/ember-pouch | tests/unit/transforms/attachments-test.js | JavaScript | apache-2.0 | 2,849 |
"use strict";
var List = require("./list");
var FastSet = require("./fast-set");
var GenericCollection = require("./generic-collection");
var GenericSet = require("./generic-set");
var ObservableObject = require("pop-observe/observable-object");
var ObservableRange = require("pop-observe/observable-range");
var equals... | leogoesger/bloc-frontend-project-starter | node_modules/collections/set.js | JavaScript | apache-2.0 | 5,090 |
// 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... | gabriel-76/NavMatBr | math_tokens/mathmaps/PT-BR/Yandex/mathml_store_rules.js | JavaScript | apache-2.0 | 29,518 |
define(['modules/dashboard/module'], function (module) {
"use strict";
module.registerController('DashboardCtrl', ['$scope', '$log', '$moment', 'Socket', 'toastr', 'Device', function ($scope, $log, $moment, Socket, toastr, Device) {
$(".view").css("min-height", $(window).height() - $('.header').height() - 100)... | masalinas/glukose-cloud | client/modules/dashboard/controllers/DashboardCtrl.js | JavaScript | apache-2.0 | 3,336 |
// Copyright 2012 Twitter, Inc
// http://www.apache.org/licenses/LICENSE-2.0
var TwitterCldr = require('../../../lib/assets/javascripts/twitter_cldr/core.js');
var data = require('../../../lib/assets/javascripts/twitter_cldr/en.js');
describe("NumberParser", function() {
var separators, parser;
beforeEach(functi... | radzinzki/twitter-cldr-js | spec/js/parsers/number_parser.spec.js | JavaScript | apache-2.0 | 7,207 |
(function() {
function config($stateProvider, $locationProvider) {
$locationProvider
.html5Mode({
enabled: true,
requireBase: false
});
$stateProvider
.state('landing', {
url: '/',
controller: 'LandingCtrl as landing',
templateUrl: '/templates/landing.ht... | cuzoaru90/bloc-jams-angular | dist/scripts/app.js | JavaScript | apache-2.0 | 717 |
// This module is compiled away!
//
// micromark works based on character codes.
// This module contains constants for the ASCII block and the replacement
// character.
// A couple of them are handled in a special way, such as the line endings
// (CR, LF, and CR+LF, commonly known as end-of-line: EOLs), the tab (horizo... | kyleterry/sufr | pkg/ui/node_modules/micromark/lib/character/codes.js | JavaScript | apache-2.0 | 4,439 |
/**
* Copyright 2009 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 t... | whackpad/whackpad | infrastructure/framework-src/modules/sessions.js | JavaScript | apache-2.0 | 8,795 |
CKEDITOR.plugins.setLang("colordialog","az",{clear:"Təmizlə",highlight:"Ayırmaq",options:"Rəng seçimləri",selected:"Seçilmiş rəng",title:"Rəngi seç"}); | AK-47-D/cms | src/main/resources/static/manage/bower_components/ckeditor/plugins/colordialog/lang/az.js | JavaScript | apache-2.0 | 168 |
(function (factory) {
if (typeof module === 'object' && typeof module.exports === 'object') {
var v = factory(require, exports); if (v !== undefined) module.exports = v;
}
else if (typeof define === 'function' && define.amd) {
define(["require", "exports", '@angular/core'], factory);
}
}... | sajithaliyanage/Travel_SriLanka | node_modules/ionic-angular/umd/components/thumbnail/thumbnail.js | JavaScript | apache-2.0 | 1,435 |
(function() {
'use strict';
angular
.module('gpmrApp')
.factory('PasswordResetInit', PasswordResetInit);
PasswordResetInit.$inject = ['$resource'];
function PasswordResetInit($resource) {
var service = $resource('api/account/reset_password/init', {}, {});
return servi... | chrislovecnm/gpmr | pet-race-ui/src/main/webapp/app/services/auth/password-reset-init.service.js | JavaScript | apache-2.0 | 336 |
/**
* @author mrdoob / http://mrdoob.com/
* @author ryg / http://farbrausch.de/~fg
* @author mraleph / http://mrale.ph/
* @author daoshengmu / http://dsmu.me/
*/
THREE.SoftwareRenderer = function ( parameters ) {
console.log( 'THREE.SoftwareRenderer', THREE.REVISION );
parameters = param... | RicoLiu/es_building_front_end | public/javascripts/SoftwareRenderer.js | JavaScript | apache-2.0 | 54,790 |
/*
---
name: MooEditable
description: Class for creating a WYSIWYG editor, for contentEditable-capable browsers.
license: MIT-style license
authors:
- Lim Chee Aun
- Radovan Lozej
- Ryan Mitchell
- Olivier Refalo
- T.J. Leahy
requires:
- Core/Class.Extras
- Core/Element.Event
- Core/Element.Dimensions
inspiration... | tateshitah/jspwiki | jspwiki-war/src/main/webapp/scripts/mooeditable/Source/MooEditable/MooEditable.js | JavaScript | apache-2.0 | 41,511 |
// 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... | teppeis/closure-library | closure/goog/ui/controlrenderer_test.js | JavaScript | apache-2.0 | 45,576 |
/**
* @author Trilogis Srl
* @author Gustavo German Soria
*
* Search DAO queries module
*/
/**
* Import of the line model
* @type {exports}
*/
var line = require('./../models/line.js');
/**
* Import of the road model
* @type {exports}
*/
var road = require('./../models/road.js');
/**
* Import of the poly... | Gagaus/wwwOSM | backend/www-osm/queries/search-dao-queries.js | JavaScript | apache-2.0 | 6,098 |
// 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.
InspectorTest.log('Tests how multiple sessions interact while pausing, stepping, setting breakpoints and blackboxing.');
var contextGroup = new Inspect... | macchina-io/macchina.io | platform/JS/V8/v8/test/inspector/sessions/debugger-stepping-and-breakpoints.js | JavaScript | apache-2.0 | 8,154 |
goog.module('grrUi.cron.newCronJobWizard.formDirective');
goog.module.declareLegacyNamespace();
const {DEFAULT_PLUGIN_URL} = goog.require('grrUi.hunt.newHuntWizard.formDirective');
/**
* Controller for FormDirective.
*
* @param {!angular.Scope} $scope
* @param {!grrUi.core.reflectionService.ReflectionService} g... | dunkhong/grr | grr/server/grr_response_server/gui/static/angular-components/cron/new-cron-job-wizard/form-directive.js | JavaScript | apache-2.0 | 6,793 |
(function() {
function config($stateProvider, $locationProvider) {
$locationProvider
.html5Mode({
enabled: true,
requireBase: false
});
$stateProvider
.state('landing', {
url: '/',
controller: 'LandingCtrl as landing',
templateUrl: '/templates/landing... | steefnee/bloc-jams-angular | dist/scripts/app.js | JavaScript | apache-2.0 | 764 |
/*
* Copyright 2013 Mirantis, 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 ... | koder-ua/nailgun-fcert | nailgun/Gruntfile.js | JavaScript | apache-2.0 | 4,971 |
var _servicio = '../php/servicios/proc-pedidos.php';
var _idPedidoX = 0, _docGenerate = '', _serieUsar = '';
(function($){
var _cboProd = [];
var template = Handlebars.compile($("#result-template").html());
var empty = Handlebars.compile($("#empty-template").html());
$(document).ready(function(){
/* -----------... | dxnydlc/Ziel-Farmacia | dist/js/nuevo-pedido.js | JavaScript | apache-2.0 | 10,275 |
<!--
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 not use ... | apache/manifoldcf | connectors/solr/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/solr/editSpecification_job_parameters.js | JavaScript | apache-2.0 | 1,635 |
'use strict';
angular.module('friendflixApp')
.controller('SocialRegisterController', function ($scope, $filter, $stateParams) {
$scope.provider = $stateParams.provider;
$scope.providerLabel = $filter('capitalize')($scope.provider);
$scope.success = $stateParams.success;
$scope.erro... | bhattsachin/friendflix | projects/src/main/webapp/scripts/app/account/social/social-register.controller.js | JavaScript | apache-2.0 | 349 |
/**
* Copyright 2020 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... | rsimha-amp/amphtml | ads/vendors/relappro.js | JavaScript | apache-2.0 | 972 |
CKEDITOR.plugins.setLang("image2","it",{alt:"Testo alternativo",btnUpload:"Invia al server",captioned:"Captioned image",infoTab:"Informazioni immagine",lockRatio:"Blocca rapporto",menu:"Proprietà immagine",pathName:"image",pathNameCaption:"caption",resetSize:"Reimposta dimensione",resizer:"Click and drag to resize",tit... | viticm/pfadmin | vendor/frozennode/administrator/public/js/ckeditor/plugins/image2/lang/it.js | JavaScript | apache-2.0 | 407 |
/*
* 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 ... | jdeppe-pivotal/geode | geode-pulse/src/main/webapp/scripts/lib/common.js | JavaScript | apache-2.0 | 15,450 |
'use strict';
(function (scope) {
/**
* Bar input component
*
* @class MusicBarInputComponent
* @extends AbstractMusicInputComponent
* @constructor
*/
function MusicBarInputComponent() {
this.type = 'bar';
this.value = new scope.MusicBarInput();
}
/**
... | countshadow/MyScriptJS | src/input/music/components/musicBarInputComponent.js | JavaScript | apache-2.0 | 1,075 |
Cufon.replace('h2, .font2, h3, .call1', { fontFamily: 'Molengo', hover:true });
Cufon.replace('#menu a, #slogan, .font1, .call2', { fontFamily: 'Expletus Sans', hover:true });
Cufon.replace('.date', { fontFamily: 'Expletus Sans', hover:true, color: '-linear-gradient(#747474, #595959, #383838)' });
| peter-watters/WebPortfolio | officialfootballaccumulators/js/lib/cufon-replace.js | JavaScript | apache-2.0 | 300 |
function buildDistanceInWordsLocale () {
var distanceInWordsLocale = {
lessThanXSeconds: {
one: '1秒以下',
other: '{{count}}秒以下'
},
xSeconds: {
one: '1秒',
other: '{{count}}秒'
},
halfAMinute: '30秒ぐらい',
lessThanXMinutes: {
one: '1分以下',
other: '{{count}}分以下'
... | simhawk/simhawk.github.io | node_modules/date-fns/locale/ja/build_distance_in_words_locale/index.js | JavaScript | apache-2.0 | 2,260 |
/*
Copyright (c) Lightstreamer Srl
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 w... | Weswit/Lightstreamer-lib-node-adapter | lib/lightstreamer-adapter.js | JavaScript | apache-2.0 | 842 |
exports.definition = {
config: {
adapter: {
type: "properties",
collection_name: "loggedInUser"
}
},
extendModel: function(Model) {
_.extend(Model.prototype, {
/**
* Backbone의 경우 idAttribute는 model에 extend를 통해 바로 넣는다.
* Alloy의 경우 adapter에 넣고 adapter가 model에 넣어준다.
* 그런데 properties 아답터는 mode... | yoda-united/licky | app/models/loggedInUser.js | JavaScript | apache-2.0 | 1,118 |
sap.ui.define(['sap/ui/core/UIComponent'],
function(UIComponent) {
"use strict";
var Component = UIComponent.extend("sap.m.sample.ListDeletion.Component", {
metadata : {
rootView : {
"viewName": "sap.m.sample.ListDeletion.List",
"type": "XML",
"async": true
},
dependencies : {
libs : [
... | SQCLabs/openui5 | src/sap.m/test/sap/m/demokit/sample/ListDeletion/Component.js | JavaScript | apache-2.0 | 513 |
/** vim: et:ts=4:sw=4:sts=4
* @license RequireJS 2.1.5 Copyright (c) 2010-2012, The Dojo Foundation All Rights Reserved.
* Available via the MIT or new BSD license.
* see: http://github.com/jrburke/requirejs for details
*/
//Not using strict: uneven strict support in browsers, #392, and causes
//problems with requi... | splendidcode/angular-spring-mvc | src/main/webapp/ui/lib/require.js | JavaScript | apache-2.0 | 59,237 |
sap.ui.define([
"jquery.sap.global",
"unitTests/utils/loggerInterceptor"
], function ($, loggerInterceptor) {
"use strict";
// Opa5 needs to be unloaded because we want to intercept the logger
jQuery.sap.unloadResources("sap/ui/test/Opa5.js", false, true, true);
// Opa has a config inside remembering state
jQue... | cschuff/openui5 | src/sap.ui.core/test/sap/ui/core/qunit/opa/opa5TestFiles/logging.js | JavaScript | apache-2.0 | 2,175 |
/*
* 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.
*/
'... | xingwu1/azure-sdk-for-node | lib/services/labservicesManagement/lib/operations/providerOperations.js | JavaScript | apache-2.0 | 16,725 |
define(() => {
function postLoad(ipy, editor, savewidget, events) {
function navigateAlternate(alt) {
var url = document.location.href.replace('/edit', alt);
if (url.includes("?")) {
url = url.slice(0, url.lastIndexOf("?"));
}
url = url + '?download=true';
if (!editor.clean)... | googledatalab/datalab | sources/web/datalab/static/edit-app.js | JavaScript | apache-2.0 | 816 |
/**
* findRoutingRule - find applicable routing rule from bucket metadata
* @param {RoutingRule []} routingRules - array of routingRule objects
* @param {string} key - object key
* @param {number} [errCode] - error code to match if applicable
* @return {object | undefined} redirectInfo -- comprised of all of the
... | lucisilv/Silviu_S3-Antidote | lib/api/apiUtils/object/websiteServing.js | JavaScript | apache-2.0 | 3,938 |
/*
* Copyright 2014,2015 Open Networking Laboratory
*
* 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 applicab... | kuangrewawa/onos | web/gui/src/main/webapp/tests/app/fw/util/fn-spec.js | JavaScript | apache-2.0 | 11,044 |
import React from 'react';
export default class TabsSkeleton extends React.Component {
render() {
const tab = (
<li className="wfp--tabs__nav-item">
<div className="wfp--tabs__nav-link"> </div>
</li>
);
return (
<nav className="wfp--tabs wfp--skeleton">
<div classNa... | wfp/ui | src/components/Tabs/Tabs.Skeleton.js | JavaScript | apache-2.0 | 863 |
import { nearlyEqual as bigNearlyEqual } from '../../utils/bignumber/nearlyEqual.js'
import { nearlyEqual } from '../../utils/number.js'
import { factory } from '../../utils/factory.js'
import { createAlgorithm03 } from '../../type/matrix/utils/algorithm03.js'
import { createAlgorithm12 } from '../../type/matrix/utils/... | FSMaxB/mathjs | src/function/relational/compare.js | JavaScript | apache-2.0 | 5,139 |
// This file has been autogenerated.
var profile = require('../../../lib/util/profile');
exports.getMockedProfile = function () {
var newProfile = new profile.Profile();
newProfile.addSubscription(new profile.Subscription({
id: '6e0b24a6-2bef-4598-9bd3-f87e9700e24c',
name: 'Windows Azure Internal Consump... | msfcolombo/azure-xplat-cli | test/recordings/cli-batch-node-tests/cli_batch_node_should_download_the_node_RDP_file.nock.js | JavaScript | apache-2.0 | 4,788 |
function GetBehaviorSettings()
{
return {
"name": "Replacer",
"id": "Rex_Replacer",
"description": "Replace instancne by fade-out itself, and create the target instance then fade-in it.",
"author": "Rex.Rainbow",
"help url": "https://dl.dropbox.com/u/5779181/C2Repo/rex_replacer.html",
"category": "... | jasonshortphd/construct2games | plugins/behaviors/rex_replacer/edittime.js | JavaScript | apache-2.0 | 4,231 |
/**
* @license
* 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 requir... | jlhughes/foam | js/foam/u2/md/CitationView.js | JavaScript | apache-2.0 | 2,474 |
import { factory } from '../../../utils/factory.js'
import { createSolveValidation } from './utils/solveValidation.js'
const name = 'lsolveAll'
const dependencies = [
'typed',
'matrix',
'divideScalar',
'multiplyScalar',
'subtract',
'equalScalar',
'DenseMatrix'
]
export const createLsolveAll = /* #__PURE... | FSMaxB/mathjs | src/function/algebra/solver/lsolveAll.js | JavaScript | apache-2.0 | 5,205 |
/**
* Copyright 2013 Facebook, 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 ... | rtfeldman/react | src/test/ReactTestUtils.js | JavaScript | apache-2.0 | 10,971 |
var component
function help() {
return component = Qt.createComponent("NearbyDevices.qml");
}
| meego-tablet-ux/meego-ux-settings | Bluetooth/helper.js | JavaScript | apache-2.0 | 96 |
/**
* @license
* Copyright 2018 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @fileoverview Zelos theme.
*/
'use strict';
/**
* Zelos theme.
* @namespace Blockly.Themes.Zelos
*/
goog.module('Blockly.Themes.Zelos');
const {Theme} = goog.require('Blockly.Theme');
const defaultBlockStyles = {
'... | rachel-fenichel/blockly | core/theme/zelos.js | JavaScript | apache-2.0 | 2,189 |
Controller = undefined;
| rm-training/advanced-js | www/discography/js/lib/controller.js | JavaScript | bsd-2-clause | 24 |
/**
* @fileoverview Main Espree file that converts Acorn into Esprima output.
*
* This file contains code from the following MIT-licensed projects:
* 1. Acorn
* 2. Babylon
* 3. Babel-ESLint
*
* This file also contains code from Esprima, which is BSD licensed.
*
* Acorn is Copyright 2012-2015 Acorn Contributor... | eslint/espree | espree.js | JavaScript | bsd-2-clause | 6,419 |
/* */
"use strict";
var Subject_1 = require('../Subject');
var multicast_1 = require('./multicast');
function publish(selector) {
return selector ? multicast_1.multicast.call(this, function() {
return new Subject_1.Subject();
}, selector) : multicast_1.multicast.call(this, new Subject_1.Subject());
}
exports.p... | poste9/crud | deps/npm/rxjs@5.0.3/operator/publish.js | JavaScript | bsd-2-clause | 338 |
/*
* L.Marker is used to display clickable/draggable icons on the map.
*/
L.Marker = L.Class.extend({
includes: L.Mixin.Events,
options: {
icon: new L.Icon(),
title: '',
clickable: true,
draggable: false
},
initialize: function(latlng, options) {
L.Util.setOptions(this, options);
... | shramov/Leaflet | src/layer/marker/Marker.js | JavaScript | bsd-2-clause | 2,762 |
var stream = require('stream');
var util = require('util');
function combineTarget(){
stream.Writable.call(this);
this.file = '';
}
util.inherits(combineTarget,stream.Writable);
combineTarget.prototype._write = function(chunk,encoding,callback){
this.file += chunk.toString();
callback();
};
module.exports = ... | SinaMTD-MobileTechnologyDepartment/addjs | src/lib/combineTarget.js | JavaScript | bsd-2-clause | 335 |
/**
* @module ol/geom/MultiLineString
*/
import {extend} from '../array.js';
import {closestSquaredDistanceXY} from '../extent.js';
import GeometryLayout from '../geom/GeometryLayout.js';
import GeometryType from '../geom/GeometryType.js';
import LineString from '../geom/LineString.js';
import SimpleGeometry from '..... | fredj/ol3 | src/ol/geom/MultiLineString.js | JavaScript | bsd-2-clause | 8,578 |
// Copyright (C) 2015 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 23.1.3.6
description: >
Throws a TypeError if `this` is a WeakMap object.
info: |
Map.prototype.get ( key )
...
3. If M does not have a [[MapData]] internal slo... | sebastienros/jint | Jint.Tests.Test262/test/built-ins/Map/prototype/get/does-not-have-mapdata-internal-slot-weakmap.js | JavaScript | bsd-2-clause | 569 |
goog.provide('ol.test.color');
goog.require('ol.color');
describe('ol.color', function() {
describe('ol.color.asArray()', function() {
it('returns the same for an array', function() {
var color = [1, 2, 3, 0.4];
var got = ol.color.asArray(color);
expect(got).to.be(color);
});
it('r... | tamarmot/ol3 | test/spec/ol/color.test.js | JavaScript | bsd-2-clause | 3,749 |
// Copyright 2008 Google Inc. 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 conditions a... | dfdeshom/v8onpython | v8-src/test/mjsunit/regress/regress-900055.js | JavaScript | bsd-3-clause | 1,916 |
/**
* Copyright 2004-present Facebook. All Rights Reserved.
*
*/
/* eslint-disable sort-keys */
const fs = require('fs');
const os = require('os');
const path = require('path');
const glob = require('glob');
const mkdirp = require('mkdirp');
const toSlug = require('../core/toSlug');
const languages = require('../l... | mpontus/jest | website/server/convert.js | JavaScript | bsd-3-clause | 8,156 |
/**
* umeditor完整配置项
* 可以在这里配置整个编辑器的特性
*/
/**************************提示********************************
* 所有被注释的配置项均为UEditor默认值。
* 修改默认配置请首先确保已经完全明确该参数的真实用途。
* 主要有两种修改方案,一种是取消此处注释,然后修改成对应参数;另一种是在实例化编辑器时传入对应参数。
* 当升级编辑器时,可直接使用旧版配置文件替换新版配置文件,不用担心旧版配置文件中因缺少新功能所需的参数而导致脚本报错。
**************************提示************... | airect/part-time-job | Tpl/bootstrap/public/um/umeditor.config.js | JavaScript | bsd-3-clause | 9,939 |
window.jQuery = window.$ = require('jquery');
require('bootstrap');
require('bootstrap/dist/js/bootstrap.js');
require('bootstrap/dist/css/bootstrap.css');
require('file?name=[name].[ext]!bootstrap/dist/css/bootstrap.css.map');
require('yii2-pjax');
require('yii');
require('yii.validation');
require('yii.activeForm')... | kllakk/yii2base | web/js/site/vendor.js | JavaScript | bsd-3-clause | 370 |
/*
Language: Tagger Script
Author: Philipp Wolfer <ph.wolfer@gmail.com>
Description: Syntax Highlighting for the Tagger Script as used by MusicBrainz Picard.
Website: https://picard.musicbrainz.org
*/
function(hljs) {
var COMMENT = {
className: 'comment',
begin: /\$noop\(/,
end: /\)/,
contains: [{
... | MakeNowJust/highlight.js | src/languages/taggerscript.js | JavaScript | bsd-3-clause | 855 |
#!/usr/bin/env node
//
var fs = require('fs'),
path = require('path'),
http = require('http'),
BufferStream = require('bufferstream'),
// http://www.ksu.ru/eng/departments/ktk/test/perl/lib/unicode/UCDFF301.html
keys = ['value', 'name', 'category', 'class',
'bidirectional_category', 'mapping', 'deci... | feup-infolab/dendro-install | scripts/Programs/node_modules/unicode/generate.js | JavaScript | bsd-3-clause | 3,600 |
module.exports = function (grunt) {
var packageVersion = require('../../package.json').version;
/* -------------
RELEASE
------------- */
grunt.registerTask('notes', 'Run a ruby gem that will request from Github unreleased pull requests', ['prompt:generatelogsmanually']);
grunt.registerTask('updateRelease', ''... | cormacmccarthy/fuelux | grunt/tasks/release.js | JavaScript | bsd-3-clause | 3,374 |
/**
* openircd, a lightweight ircd written in javascript v8 with nodejs.
* http://www.openbrasil.org/ - rede do conhecimento livre.
*
* $Id$
*/
exports.listen = {
port: 6667,
host: '0.0.0.0'
};
exports.server = {
name: "experimental.openbrasil.org",
description: "servidor experimental openbrasil",
};
expor... | ArmandoAce/openircd | config.js | JavaScript | bsd-3-clause | 399 |
import { Handlers } from '@sentry/node';
import { sentry } from '../../../../config/secrets';
export default function sentryRequestHandler() {
return sentry.dns === 'dsn_from_sentry_dashboard'
? (req, res, next) => next()
: Handlers.requestHandler();
}
| FreeCodeCamp/FreeCodeCamp | api-server/src/server/middlewares/sentry-request-handler.js | JavaScript | bsd-3-clause | 264 |
// These tests require the client to be built and served with additional
// redirect configuration. The Cypress action in .github/workflows/cypress.yml
// contains the necessary commands to do this.
describe('Legacy redirects', () => {
it('should redirect from front-end-libraries to front-end-development-libraries',... | FreeCodeCamp/FreeCodeCamp | cypress/integration/legacy/redirects/adding-development.js | JavaScript | bsd-3-clause | 3,591 |
foo.bar() | mck89/peast | test/Peast/Syntax/ES2015/files/CallExpression/Simple.js | JavaScript | bsd-3-clause | 9 |
var structarm__dct4__instance__q31 =
[
[ "N", "structarm__dct4__instance__q31.html#a46a9f136457350676e2bfd3768ff9d6d", null ],
[ "Nby2", "structarm__dct4__instance__q31.html#a32d3268ba4629908dba056599f0a904d", null ],
[ "normalize", "structarm__dct4__instance__q31.html#ac80ff7b28fca36aeef74dea12e8312dd"... | lpodkalicki/blog | stm32/STM32Cube_FW_F0_V1.9.0/Drivers/CMSIS/Documentation/DSP/html/structarm__dct4__instance__q31.js | JavaScript | bsd-3-clause | 728 |
var _ = require('underscore-cdb-v3');
var cdb = require('cartodb.js-v3');
var pluralizeString = require('../../../view_helpers/pluralize_string')
module.exports = cdb.core.View.extend({
initialize: function() {
_.each(['permission', 'isUsingVis'], function(name) {
if (_.isUndefined(this.options[name])) th... | splashblot/dronedb | lib/assets/javascripts/cartodb/common/dialogs/change_privacy/share/group_details_view.js | JavaScript | bsd-3-clause | 1,368 |
module.exports = {
selector: '.lift-status',
parse: {
name: '1/0',
status: {
child: 0,
attribute: 'class',
fn: s => s.split(' ').pop()
}
}
};
| pirxpilot/liftie | lib/resorts/snowbasin/index.js | JavaScript | bsd-3-clause | 178 |
/*
* Copyright (c) 2019-2021 Renata Hodovan, Akos Kiss.
*
* Licensed under the BSD 3-Clause License
* <LICENSE.rst or https://opensource.org/licenses/BSD-3-Clause>.
* This file may not be copied, modified, or distributed except
* according to those terms.
*/
/* global fz */
$(document).ready(function () {
'u... | akosthekiss/fuzzinator | fuzzinator/ui/wui/resources/static/scripts/jobs.js | JavaScript | bsd-3-clause | 3,086 |
var searchData=
[
['node',['node',['../structconnectivity.html#af0fc7c1443c916dce333bee34787cd20',1,'connectivity']]]
];
| pushkarjain1991/Poisson_FEM | html/search/variables_0.js | JavaScript | bsd-3-clause | 123 |
$(document).ready(function () {
//$('#pageListDt').DataTable();
/*
$("#publish").click(function () {
NccPageMask.ShowLoadingMask();
$.ajax({
type: "post",
url: form.action,
data: form.serialize(),
contentType: "application... | OnnoRokomSoftware/NetCoreCMS | NetCoreCMS.Web/Core/Core.Cms/wwwroot/js/managePage.js | JavaScript | bsd-3-clause | 965 |
( function( exports ) {
/**
* @class
* @param params
* @constructor
*/
function BulkLoader( params ) {
this.params = params;
this._ids = [];
this.results = {};
this._objects = []; // GC対策
this.cache = {};
var self = this;
... | sonicmoov/herlock-samples | nekoana/libs/common.js | JavaScript | bsd-3-clause | 3,586 |
module.exports = function(gatewayd) {
// ADD PLUGINS HERE, SUCH AS SETUP WIZARD
const WizardPlugin = require('gatewayd-setup-wizard-plugin');
var wizardPlugin = new WizardPlugin({
gatewayd: gatewayd
});
gatewayd.server.use('/', wizardPlugin.router);
}
| crazyquark/gatewayd | Gatewaydfile.js | JavaScript | isc | 270 |