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 |
|---|---|---|---|---|---|
/**
* Copyright 2018 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 applic... | google-developer-training/pwa-training-labs | sw-precache-workbox-lab/solution/app/sw.js | JavaScript | apache-2.0 | 1,076 |
'use strict';
describe("Randomizer", function () {
var randomizer = require('../lib/randomizer');
it('should set default seed', function() {
expect( function() { randomizer.setSeed(); } ).not.toThrow();
});
}); | wavesoftware/mlp-name-generator | spec/randomizer.spec.js | JavaScript | apache-2.0 | 221 |
var hourlist=[];
for(var i=0;i<=24;i++){
if(i<10){
hourlist.push(["0"+i,i+"点"]);
}else{
hourlist.push([i,i+"点"]);
}
}
function init_chart(data){
var bt=[];
var bt_reg=[];
var bt_phone=[];
var bt_log=[];
var bt_key=[];
data=eval(data) ;
for(var vo in data){
bt.push([data[vo].t,data[vo].c... | ly2513/wifi | UI/Wifiadmin/default/style/js/admin.js | JavaScript | apache-2.0 | 4,420 |
app.controller('contactController', function($scope) {
}); | davidmancini/jpegery | angular/controllers/contact-controller.js | JavaScript | apache-2.0 | 59 |
import getCountryISO2 from 'country-iso-3-to-2'; // ISO 3166-1 lookup, from alpha3 to alpha2
import { GEONAMES_ID_TO_APLHA3 } from './mapUtil';
// tags indicating how the date on a story was guessed
export const TAG_SET_DATE_GUESS_METHOD = 508;
// tags indicating what extractor was used to pull content out of the sto... | mitmedialab/MediaCloud-Web-Tools | src/lib/tagUtil.js | JavaScript | apache-2.0 | 5,273 |
sap.ui.define([
'sap/base/util/deepExtend',
'./Formatter',
'sap/ui/core/mvc/Controller',
'sap/ui/model/json/JSONModel',
'sap/m/ColumnListItem',
'sap/m/Input',
'sap/m/MessageToast'
], function(deepExtend, Formatter, Controller, JSONModel, ColumnListItem, Input, MessageToast) {
"use strict";
var TableController... | SAP/openui5 | src/sap.m/test/sap/m/demokit/sample/TableEditable/Table.controller.js | JavaScript | apache-2.0 | 2,518 |
'use strict';
describe('Directive: gifMaker', function () {
// load the directive's module
beforeEach(module('artpopApp'));
var element,
scope;
beforeEach(inject(function ($rootScope) {
scope = $rootScope.$new();
}));
it('should make hidden element visible', inject(function ($compile) {
ele... | wonglok/ARTPOP | test/spec/directives/gif-maker.js | JavaScript | apache-2.0 | 465 |
/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib 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 a... | stdlib-js/stdlib | lib/node_modules/@stdlib/_tools/pkgs/entry-points/lib/resolve_files.sync.js | JavaScript | apache-2.0 | 1,741 |
// Copyright 2006 The Closure Library Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless requ... | maxogden/googlyscript | closure-library/closure/goog/net/xhrio.js | JavaScript | apache-2.0 | 29,728 |
'use strict';
goog.provide('grrUi.cron.newCronJobWizard.formDirective.FormController');
goog.provide('grrUi.cron.newCronJobWizard.formDirective.FormDirective');
goog.require('grrUi.hunt.newHuntWizard.formDirective.DEFAULT_PLUGIN_URL');
goog.scope(function() {
var DEFAULT_PLUGIN_URL =
grrUi.hunt.newHuntWizard.for... | pombredanne/grr | gui/static/angular-components/cron/new-cron-job-wizard/form-directive.js | JavaScript | apache-2.0 | 8,860 |
/**
*
* Search for an element on the page, starting from an element.
* The located element will be returned as a WebElement JSON object.
* The table below lists the locator strategies that each server should support.
* Each locator must return the first matching element located in the DOM.
*
* @param {Str... | CoderHam/WebScraper | node_modules/webdriverio/lib/protocol/elementIdElement.js | JavaScript | apache-2.0 | 1,335 |
/**
* @license Apache-2.0
*
* Copyright (c) 2021 The Stdlib 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 a... | stdlib-js/stdlib | lib/node_modules/@stdlib/math/strided/special/cbrt/test/test.cbrt.js | JavaScript | apache-2.0 | 12,918 |
'use strict';
angular.module('failanApp')
.controller('CaseDetailCtrl', function ($scope, $routeParams, CaseService) {
var caseId = $routeParams.caseId;
$scope.selectedCase = CaseService.getOne(caseId);
}); | papeldeorigami/failan | webapp/app/scripts/controllers/case-detail.js | JavaScript | apache-2.0 | 229 |
/*将http接口动态请求分发到httpApis文件夹注册的所有接口函数
将静态/web请求直接处理返回
*/
var lib = require('./lib.js').init();
var mod = {};
mod.apis = {};
mod.name = 'httpHandler';
/*每次模块更新都刷新app的控制函数*/
function updateSvr() {
if (require('./app.js').svr) {
require('./app.js').svr._events.request = handlerFn;
};
};
updateSvr();
/*所有... | zhyuzh3d/jscodepie | app/myModules/httpHandler.js | JavaScript | apache-2.0 | 4,876 |
/**
* Copyright 2011 Microsoft Corporation
*
* 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... | egamma/azure-sdk-for-node | test/services/serviceBus/servicebusservice-tests.js | JavaScript | apache-2.0 | 66,288 |
'use strict';
/* global AWS, DynamoDB */
/**
* @ngdoc function
* @name MSLImageExplorerApp.service:AWS
* @description
* # AWS
* Service of the MSLImageExplorerApp. It initializes AWS SDK with providing credentials
* either from Cognito Identity service or environment variables as specified in ENV service.
* It i... | gartox/mars-rover-json-test | viewer/app/scripts/services/AWS.js | JavaScript | apache-2.0 | 1,930 |
/*
* Kendo UI v2014.2.731 (http://www.telerik.com/kendo-ui)
* Copyright 2014 Telerik AD. All rights reserved.
*
* Kendo UI commercial licenses may be obtained at
* http://www.telerik.com/purchase/license-agreement/kendo-ui-complete
* If you do not own a commercial license, this file shall be governed by the trial licen... | CE-KMITL-OOAD-2014/drinkforgood | drinktrack/src/js/kendo.dataviz.core.js | JavaScript | apache-2.0 | 151,640 |
'use strict';
var fs = require('fs');
var irc = require('irc');
var nconf = require('nconf');
var path = require('path');
nconf.argv()
.env()
.file({ file: 'config.json' })
.defaults({script_directory:'scripts',
sasl:false,
irc_server_password:'',
irc_realname:'ircbotjs',
irc_username:'ircbotjs... | jacopofar/ircbotjs | index.js | JavaScript | apache-2.0 | 2,136 |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports.default = void 0;
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runt... | GoogleCloudPlatform/prometheus-engine | third_party/prometheus_ui/base/web/ui/react-app/node_modules/reactstrap/lib/ModalHeader.js | JavaScript | apache-2.0 | 2,612 |
import React, { Component } from 'react';
import { Image, StatusBar, TouchableOpacity } from "react-native";
import { Container, Content, Card, CardItem, Text, View, Body, List, ListItem, Icon, Right, Button, Label, Item, Input } from 'native-base';
import styles from './styles';
export default class PersonalInfo ... | baskoropn/kerjain | js/components/profile/changePassword.js | JavaScript | apache-2.0 | 1,803 |
/* Theme Name: The Project - Responsive Website Template
* Author:HtmlCoder
* Author URI:http://www.htmlcoder.me
* Author e-mail:htmlcoder.me@gmail.com
* Version:1.0.0
* Created:March 2015
* License URI:http://support.wrapbootstrap.com/
* File Description: Initializations of plugins
*/
(function($){
$(docume... | PRVALUE/Jet-Digital-Portfolio-Site | template/js/template.js | JavaScript | apache-2.0 | 43,713 |
// Copyright 2022 Google LLC
//
// 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | googleapis/nodejs-scheduler | samples/generated/v1/cloud_scheduler.list_jobs.js | JavaScript | apache-2.0 | 2,750 |
// @link http://schemas.wbeme.com/json-schema/eme/collector/mixin/collectable/1-0-0.json#
import Fb from '@gdbots/pbj/FieldBuilder';
import Mixin from '@gdbots/pbj/Mixin';
import SchemaId from '@gdbots/pbj/SchemaId';
import T from '@gdbots/pbj/types';
export default class CollectableV1Mixin extends Mixin {
/**
* ... | wb-eme/schemas | build/js/src/eme/collector/mixin/collectable/CollectableV1Mixin.js | JavaScript | apache-2.0 | 789 |
let searchTerm = '';
let apiUrl = 'https://en.wikipedia.org/w/api.php?action=query&list=search&srsearch=' + searchTerm + '&srwhat=text&srprop=titlesnippet&format=json&callback=?';
function moveLogo() {
$("#wiki-main-container").animate({"padding-top": "3%"}, 500);
}
function getQuery(data) {
let userQuery = data... | kennethtaylor/kennethtaylor.github.io | projects/wiki/wiki.js | JavaScript | apache-2.0 | 1,273 |
// Checks that interface files are handled for functions.
/// <reference path="function_def.d.ts"/>
//- @testfn defines/binding CompleteTestFn
//- CompleteTestFn.complete definition
function testfn() { }
| bowlofstew/kythe | kythe/ts/testdata/ts/function_def.js | JavaScript | apache-2.0 | 204 |
export const COMPONENT_FORM_SET_DIRTY = 'COMPONENT_FORM_SET_DIRTY';
/**
* This action will change for a given componentForm name his dirty status
* @param {string} componentId the component form id
* @param {boolean} dirty the dirty state to apply
*/
export function setComponentFormDirtyState(componentId, dirty) {... | Talend/ui | packages/containers/src/ComponentForm/ComponentForm.actions.js | JavaScript | apache-2.0 | 630 |
'use strict';
const path = require('path');
const egg = require('egg');
const EGG_PATH = Symbol.for('egg#eggPath');
const EGG_LOADER = Symbol.for('egg#eggLoader');
class TomatoBangAppWorkerLoader extends egg.AppWorkerLoader {
load() {
super.load();
// 自己扩展
}
}
class Application extends egg.Appl... | tomatobang/tomato-server | lib/framework.js | JavaScript | apache-2.0 | 751 |
/*!
* ${copyright}
*/
/**
* @fileOverview Application component for field groups and side effectes with OData V4.
* @version @version@
*/
sap.ui.define([
"sap/ui/core/UIComponent"
], function (UIComponent) {
"use strict";
return UIComponent.extend("sap.ui.core.sample.odata.v4.FieldGroups.Component", {
metad... | SAP/openui5 | src/sap.ui.core/test/sap/ui/core/demokit/sample/odata/v4/FieldGroups/Component.js | JavaScript | apache-2.0 | 362 |
/**
* Copyright 2015 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... | interspacejp/amphtml | src/service/document-state.js | JavaScript | apache-2.0 | 4,459 |
'use strict';
/**
* Requirements
*/
const TextNode = require(SOURCE_ROOT + '/transformer/node/TextNode.js').TextNode;
const valueNodeSpec = require(TEST_ROOT + '/transformer/node/ValueNodeShared.js');
/**
* Spec
*/
describe(TextNode.className, function()
{
/**
* ValueNode Test
*/
valueNodeSpec(... | entoj/entoj-core | test/transformer/node/TextNodeSpec.js | JavaScript | apache-2.0 | 582 |
/**
* @license Copyright 2020 The Lighthouse 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 required by applica... | ev1stensberg/lighthouse | lighthouse-core/test/audits/image-size-responsive-test.js | JavaScript | apache-2.0 | 11,002 |
'use strict';
angular.module("ngLocale", [], ["$provide", function($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
$provide.value("$locale", {
"DATETIME_FORMATS": {
"AMPMS": [
"AM",
"PM"
],
"DAY": [
"L\u0101pul... | LADOSSIFPB/nutrif | nutrif-web/lib/angular/i18n/angular-locale_haw-us.js | JavaScript | apache-2.0 | 2,241 |
// Copyright 2007 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... | knutwalker/google-closure-library | closure/goog/graphics/font.js | JavaScript | apache-2.0 | 1,801 |
// Copyright 2021 Google LLC
//
// 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 ... | googleapis/nodejs-asset | samples/analyzeIamPolicy.js | JavaScript | apache-2.0 | 1,806 |
// modules are defined as an array
// [ module function, map of requireuires ]
//
// map of requireuires is short require name -> numeric require
//
// anything defined in a previous bundle is accessed via the
// orig method which is the requireuire for previous bundles
(function outer (modules, cache, entry) {
//... | stdlib-js/www | public/docs/api/latest/@stdlib/stats/base/dists/beta/stdev/benchmark_bundle.js | JavaScript | apache-2.0 | 885,255 |
'use strict';
const DEFAULT_WEB_PORT = 8002; // port for web interface
const express = require('express'),
url = require('url'),
bodyParser = require('body-parser'),
fs = require('fs'),
path = require('path'),
events = require('events'),
qrCode = require('qrcode-npm'),
util = require('./util'),
certMg... | PrisonBreak2017/nodejs-ex | lib/webInterface.js | JavaScript | apache-2.0 | 10,536 |
<script>
$(document).ready(function () {
function functionBind() {
$('.can-select').unbind('mouseenter').unbind('mouseleave');
$(".can-select").hover(function () {
$(this).addClass("bg-gray");
}, function () {
$(this).removeClass("bg-gray"... | HladikBox/Console | templates/apps/board_menu.js | JavaScript | apache-2.0 | 5,586 |
var Calibrate = require('calibrate');
var _ = require('lodash');
module.exports = function(server, config, log) {
"use strict";
return function(Model) {
log.trace("initializing model %s remove handler", Model.name);
return function(req, reply) {
log.debug("Remove %s request", Model... | Covistra/hapi-cmbf-restmodel | lib/handlers/remove.js | JavaScript | apache-2.0 | 592 |
/**
* Movies
*
* @copyright
* Copyright (c) 2015 by Appcelerator, Inc. All Rights Reserved.
*
* @license
* Licensed under the terms of the Apache Public License
* Please see the LICENSE included with this distribution for details.
*/
///////////////////////////////////////////////////////////////////////////... | appcelerator/movies | app/alloy.js | JavaScript | apache-2.0 | 12,080 |
var searchData=
[
['name',['name',['../class_ilwis_1_1_identity.html#a943a8c992a3cd5d0b8044461a6785e38',1,'Ilwis::Identity::name()'],['../class_ilwis_1_1_color_item.html#a0b9f1f804525a9a72f1788d47c2bdca2',1,'Ilwis::ColorItem::name()'],['../class_ilwis_1_1_domain_item.html#ab35364ab7da356450148a7b8250a0cf9',1,'Ilwis::... | ridoo/IlwisCore | CPPAPI/search/functions_6e.js | JavaScript | apache-2.0 | 3,784 |
app.directive('stretchDown', ['$timeout', function($timeout){
return {
restrict: 'A',
link: function($scope, elem, attr){
var waitFn = function(){
if ($scope.$$phase == '$digest') {
$timeout(waitFn, 50);
return;
}
... | Disentless/UniversityNetwork | _src/js/angularJS/directives/stretchDown.js | JavaScript | apache-2.0 | 886 |
function SearchWindow(title) {
var self = Ti.UI.createWindow({
title:title,
backgroundColor:'red'
});
var button = Ti.UI.createButton({
height:44,
width:200,
title:L('openWindow'),
top:20
});
self.add(button);
button.addEventListener('click', function() {
//containingTab attribute must be set by... | VanBiggels/Desktogetter | Resources/ui/SearchWindow.js | JavaScript | apache-2.0 | 508 |
var account_transferws = (function(){
"use strict";
var $form ;
var account_from , account_to ;
var currType,account_bal;
var availableCurr= [] ;
var payoutCurr = [];
var init = function(){
if(page.client.redirect_if_is_virtual()) {
return;
}
$form = $('... | shuwnyuantee/binary-static | src/javascript/binary/websocket_pages/cashier/account_transferws.js | JavaScript | apache-2.0 | 9,814 |
(function() {
'use strict';
function F2(fun)
{
function wrapper(a) { return function(b) { return fun(a,b); }; }
wrapper.arity = 2;
wrapper.func = fun;
return wrapper;
}
function F3(fun)
{
function wrapper(a) {
return function(b) { return function(c) { return fun(a, b, c); }; };
}
wrapper.arity = 3;... | maticzav/multiwatch | app.js | JavaScript | apache-2.0 | 236,119 |
defineSuite([
'Core/BoundingSphere',
'Core/BoxGeometry',
'Core/Cartesian2',
'Core/Cartesian3',
'Core/CircleGeometry',
'Core/Color',
'Core/ColorGeometryInstanceAttribute',
'Core/ComponentDatatype',
'Core/CornerType',
'Core/CorridorGeometry',... | oterral/cesium | Specs/Scene/GeometryRenderingSpec.js | JavaScript | apache-2.0 | 61,310 |
var server = {/*our server object form server handler*/}
server.getroom(/*this will get the room number for your user and all the data in the room*/);
server.getline(/*this can once you start the thing can get an empty line for your user*/);
server.serverupdate(/*this is an array of five objects what ever you need... | m99900/GoogleSpreadBase | Examples.js | JavaScript | apache-2.0 | 595 |
import {
assert, html, nextFrame
} from '@open-wc/testing';
import { setupOmnitableFixture } from './helpers/utils';
import '../cosmoz-omnitable.js';
import '../cosmoz-omnitable-column-autocomplete.js';
import '../cosmoz-omnitable-column.js';
let omnitable;
const data = [{
id: 0,
group: 'group0',
name: 'Item ... | Neovici/cosmoz-omnitable | test/hash-param-read.test.js | JavaScript | apache-2.0 | 2,640 |
define({"shop": "\u30b7\u30e7\u30c3\u30d7", "home": "\u30db\u30fc\u30e0", "welcome": "%s\u3078\u3088\u3046\u3053\u305d!", "config": "\u8a2d\u5b9a", "zukan": "\u56f3\u9451"}); | tripleystudio/Test4 | build/mobileweb/titanium/Ti/Locale/ja/i18n.js | JavaScript | apache-2.0 | 174 |
/**
* 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... | avimehta/amphtml | test/functional/test-friendly-iframe-embed.js | JavaScript | apache-2.0 | 24,933 |
define(['underscore', 'modules/backbone-mozu', 'hyprlive', "modules/api"], function (_, Backbone, Hypr, api) {
var CartItemProduct = Backbone.MozuModel.extend({
helpers: ['mainImage'],
mainImage: function() {
var imgs = this.get("productImages"),
img = imgs && imgs[0],
... | Mozu/ThirdpartyPayments-Theme | scripts/modules/models-cart.js | JavaScript | apache-2.0 | 4,915 |
var _log_stream_8cpp =
[
[ "convert", "d5/d5e/_log_stream_8cpp.html#a2cd8ca36b610e7028c153587d7baa4b9", null ],
[ "convertHex", "d5/d5e/_log_stream_8cpp.html#aba8a8aadd7f982632de4c845efe1c1c5", null ],
[ "digits", "d5/d5e/_log_stream_8cpp.html#ac47e27361c87c7d6223a7bdf93005f39", null ],
[ "digitsHex", "... | weiboad/adbase | docs/d5/d5e/_log_stream_8cpp.js | JavaScript | apache-2.0 | 482 |
Grailbird.data.tweets_2008_02 =
[ {
"source" : "\u003Ca href=\"http:\/\/twitter.com\" rel=\"nofollow\"\u003ETwitter Web Client\u003C\/a\u003E",
"entities" : {
"user_mentions" : [ ],
"media" : [ ],
"hashtags" : [ ],
"urls" : [ ]
},
"geo" : { },
"id_str" : "764995740",
"text" : "I forgot to ... | icco/tweets | data/js/tweets/2008_02.js | JavaScript | artistic-2.0 | 46,355 |
function get_gravatar(email, size) {
var size = size || 80;
return 'http://www.gravatar.com/avatar/' + md5(email) + '.jpg?s=' + size;
}
var removeFlash = function() {
setTimeout(function(){
$('.notice').remove();
$('.alert').remove();
}, 3500);
};
var createPartial = function(content) {
var partial ... | nyc-dragonflies-2015/Speak-It | app/assets/javascripts/invitationButton.js | JavaScript | artistic-2.0 | 2,641 |
// This file was procedurally generated from the following sources:
// - src/dstr-binding/ary-ptrn-rest-id.case
// - src/dstr-binding/default/cls-expr-meth-static-dflt.template
/*---
description: Lone rest element (static class expression method (default parameter))
esid: sec-class-definitions-runtime-semantics-evaluat... | sebastienros/jint | Jint.Tests.Test262/test/language/expressions/class/dstr-meth-static-dflt-ary-ptrn-rest-id.js | JavaScript | bsd-2-clause | 2,771 |
import subModule from './index'
export default subModule.filter('capitalize', () => {
return (input) => {
if (input != null)
input = input.toLowerCase();
else
return '';
var inputs = input.split(' ').map((i) => i.substring(0, 1).toUpperCase() + i.substring(1));
... | cen1/cross.build | web/scripts/filters/capitalize.js | JavaScript | bsd-2-clause | 362 |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: The production x -= y is the same as x = x - y
es5id: 11.13.2_A4.5_T2.6
description: >
Type(x) is different from Type(y) and both types vary between
String (primitive ... | asgerf/parsejs.dart | test/testcases/test-262/ch11/11.13/11.13.2/S11.13.2_A4.5_T2.6.js | JavaScript | bsd-2-clause | 959 |
// This file was procedurally generated from the following sources:
// - src/dstr-assignment/obj-prop-elem-init-fn-name-arrow.case
// - src/dstr-assignment/default/for-of.template
/*---
description: Assignment of function `name` attribute (ArrowFunction) (For..of statement)
esid: sec-for-in-and-for-of-statements-runtim... | sebastienros/jint | Jint.Tests.Test262/test/language/statements/for-of/dstr-obj-prop-elem-init-fn-name-arrow.js | JavaScript | bsd-2-clause | 1,867 |
module.exports = {
events: {
"click" : "handle_template_click"
},
handle_template_click: function() {
// open a modal dialog with this image?
// replace main image with this one?
var kitten = this.options.name % 18;
// stores a per controller piece of data on the server that is shared with... | logV/superfluous | superfluous/components/kitten_tile/events.js | JavaScript | bsd-2-clause | 381 |
module.exports = function override(config, env) {
//do stuff with the webpack config...
return config;
};
| accosine/poltergeist | packages/television/config-overrides.js | JavaScript | bsd-2-clause | 110 |
/* Copyright (c) 2006-2013 by OpenLayers Contributors (see authors.txt for
* full list of contributors). Published under the 2-clause BSD license.
* See license.txt in the OpenLayers distribution or repository for the
* full text of the license. */
/**
* @requires OpenLayers/Strategy.js
*/
/**
* Class: OpenLaye... | boundlessgeo/openlayers | lib/OpenLayers/Strategy/Fixed.js | JavaScript | bsd-2-clause | 4,072 |
var L = require('leaflet'),
Util = require('../util');
module.exports = {
class: L.Class.extend({
options: {
serviceUrl: '//search.mapzen.com/v1',
geocodingQueryParams: {},
reverseQueryParams: {}
},
initialize: function(apiKey, options) {
L.Util.setOptions(this, options);
this._apiKey = apiKey;... | kuzvac/leaflet-control-geocoder | src/geocoders/mapzen.js | JavaScript | bsd-2-clause | 2,069 |
/*
* Copyright © Enable Software Pty Ltd 2013 - All rights reserved
*/
var common = {};
common.unique = function (array) {
var results = [];
var dict = {};
for (var i in array) {
dict[array[i]] = true;
}
for (var y in dict) {
results.push(y);
}
return results;
};
common.... | alpine9000/BitMachine | common.js | JavaScript | bsd-2-clause | 3,959 |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: The production x >>= y is the same as x = x >> y
es5id: 11.13.2_A4.7_T1.4
description: Type(x) and Type(y) vary between Null and Undefined
---*/
//CHECK#1
x = null;
x >>= und... | asgerf/parsejs.dart | test/testcases/test-262/ch11/11.13/11.13.2/S11.13.2_A4.7_T1.4.js | JavaScript | bsd-2-clause | 782 |
// Copyright 2019 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Unicode property escapes for `Script_Extensions=Cyrillic`
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
... | sebastienros/jint | Jint.Tests.Test262/test/built-ins/RegExp/property-escapes/generated/Script_Extensions_-_Cyrillic.js | JavaScript | bsd-2-clause | 1,876 |
//
// N.B.
// We've chosen to write this class in a very (hyper) defensive manner. It is always clear
// whether a method is accessing itself (xyz) or parameter data (via accessors), in order
// to keep indices and accesses from being confused.
//
function CVector4()
{
//
// @private variables
//
va... | ramenhut/js-path-tracer | Source/geVector4.js | JavaScript | bsd-2-clause | 7,426 |
/**
* The routes module is responsible for calling a route in a controller. It is
* the entry point for all route handling on the server and is where the
* context is created.
*
* @class routes (server)
* @module Superfluous
* @submodule Server
*/
"use strict";
var context = require("./context");
var page = r... | logV/superfluous | superfluous/core/server/router.js | JavaScript | bsd-2-clause | 4,164 |
// ENiGMA½
const DefaultConfig = require('./config_default');
const ConfigLoader = require('./config_loader');
const _ = require('lodash');
// Global system configuration instance; see Config.create()
let systemConfigInstance;
exports.Config = class Config extends ConfigLoader {
constructor(options) {
... | NuSkooler/enigma-bbs | core/config.js | JavaScript | bsd-2-clause | 2,308 |
'use strict';
var stringify = require('json-stringify-safe');
var parsers = require('./parsers');
var zlib = require('zlib');
var utils = require('./utils');
var uuid = require('uuid');
var transports = require('./transports');
var nodeUtil = require('util'); // nodeUtil to avoid confusion with "utils"
var events = re... | BuildingConnected/raven-node | lib/client.js | JavaScript | bsd-2-clause | 17,557 |
(function () {
'use strict';
describe('search.controller', function () {
var $log, commonService, ctrl, location, scope, vm;
beforeEach(function () {
module('portal.search', 'portal.constants', function ($provide) {
$provide.decorator('commonService', function ($del... | brianlindsy/portal | src/app/search/search.controller.spec.js | JavaScript | bsd-2-clause | 3,623 |
export default {
"type": "Program",
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 20
}
},
"range": [
0,
20
],
"body": [
{
"type": "ExpressionStatement... | eslint/espree | tests/fixtures/ecma-version/6/restParams-and-arrowFunctions/destructured-arrow-array.result.js | JavaScript | bsd-2-clause | 11,363 |
/**
* @module ol/render/webgl/TextReplay
*/
import {getUid, inherits} from '../../index.js';
import {asColorLike} from '../../colorlike.js';
import {createCanvasContext2D} from '../../dom.js';
import GeometryType from '../../geom/GeometryType.js';
import _ol_has_ from '../../has.js';
import _ol_render_replay_ from '.... | planetlabs/ol3 | src/ol/render/webgl/TextReplay.js | JavaScript | bsd-2-clause | 13,391 |
//Wrapped in an outer function to preserve global this
(function (root) { var amdExports; define([], function () { (function () {
// dev.opera.com/articles/view/css3-object-fit-object-position/
Modernizr.addTest('object-fit',
!!Modernizr.prefixed('objectFit')
);
}.call(root));
return amdExports;
}); }(this));... | noahpeters/iffy | sample/www/js/lib/Modernizr/feature-detects/css-objectfit.js | JavaScript | bsd-2-clause | 321 |
import { graphql, gql } from 'react-apollo';
import graphQLStore from './../../../../storeHandler/graphQLStore';
const _updateViewer = (clientStore, updatedUser, viewerId) => {
if (updatedUser.id === viewerId) {
let fragment;
try {
fragment = graphQLStore.findFragment("RootViewer");
} ca... | Lochmann85/shout-out-loud-dev | client/src/pages/user/graphql/mutations/updateUser.js | JavaScript | bsd-2-clause | 1,584 |
var searchData=
[
['limit',['LIMIT',['../dish__generator_8cpp.html#a5977928b042d0a4b2ce93baa979e5f5c',1,'dish_generator.cpp']]]
];
| uml-robotics/manus_arm | neuro_recv/doc/neuro_recv/html/search/defines_6c.js | JavaScript | bsd-2-clause | 133 |
import React from 'react';
import PropTypes from 'prop-types';
class ReadingWorkHeader extends React.Component {
render() {
const { englishTitle, originalTitle } = this.props;
return (
<div className="readingWorkHeader">
<h1 className="work-title">
{englishTitle}
</h1>
{originalTitle ?
... | cltk/cltk_frontend | src/modules/texts/components/ReadingWorkHeader/ReadingWorkHeader.js | JavaScript | bsd-2-clause | 633 |
// This file was procedurally generated from the following sources:
// - src/dstr-binding/ary-ptrn-elem-id-init-undef.case
// - src/dstr-binding/default/func-expr-dflt.template
/*---
description: Destructuring initializer with an undefined value (function expression (default parameter))
esid: sec-function-definitions-r... | sebastienros/jint | Jint.Tests.Test262/test/language/expressions/function/dstr-dflt-ary-ptrn-elem-id-init-undef.js | JavaScript | bsd-2-clause | 1,954 |
/*---------------------------------------------------------------------------
* AccountPanel
*-------------------------------------------------------------------------*/
var AccountPanel = Ext.extend(Ext.BoxComponent, {
cls: 'account-panel',
height: 40,
autoCreate: {
html:'<table cellspacing="0"><t... | dancingbytes/gwp_anlas | app/assets/javascripts/gwp_anlas/toolbar/account_panel.js | JavaScript | bsd-2-clause | 4,263 |
export default {
"type": "Program",
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 32
}
},
"range": [
0,
32
],
"body": [
{
"type": "ExportNamedDeclarat... | eslint/espree | tests/fixtures/ecma-version/8/modules/export-async.result.js | JavaScript | bsd-2-clause | 6,595 |
Package.describe({
name: 'waeltken:leaflet',
version: '0.0.1',
// Brief, one-line summary of the package.
summary: 'Simple package for leaflet v1.0.0-beta.1',
// URL to the Git repository containing the source code for this package.
git: '',
// By default, Meteor will default to using README.md for docume... | waeltken/Leaflet | package.js | JavaScript | bsd-2-clause | 797 |
var Jsonix = require('jsonix').Jsonix;
var ietf_params_xml_ns_lost1 = require('./mapping/ietf_params_xml_ns_lost1');
var net_opengis_gml = require('./mapping/net_opengis_gml');
var findServiceXml = "<?xml version='1.0' encoding='UTF-8'?><findService xmlns='urn:ietf:params:xml:ns:lost1' xmlns:p2='http://www.opengis.net... | highsource/jsonix-support | l/lightstalker89/test.js | JavaScript | bsd-3-clause | 853 |
// Copyright (c) 2013 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.
/**
* WallpaperManager constructor.
*
* WallpaperManager objects encapsulate the functionality of the wallpaper
* manager extension.
*
* @constr... | ltilve/chromium | chrome/browser/resources/chromeos/wallpaper_manager/js/wallpaper_manager.js | JavaScript | bsd-3-clause | 43,701 |
import R from 'ramda'
import React from 'react'
import {forward, mapEffects, message, targetValue} from '../elmar'
const init = component => (...args) => {
const [model, effects] = component.init(...args)
return [{
component: model,
lastAction: performance.now(),
history: [],
future: [],
... | steos/elmar.js | src/examples/TimeTravel.js | JavaScript | bsd-3-clause | 4,526 |
const express = require('express');
const app = express();
// var server = require('http').Server(app);
var server = require('http').createServer(app);
var io = require('socket.io')(server);
var SerialPort = require('serialport');
var fs = require('fs');
/****** Setup Variables ******/
var userConfig = fs.readFile... | cr8myf8/simonBarCodeGame | server/main.js | JavaScript | bsd-3-clause | 4,661 |
/**
* This one is awesome. Just jumps into the shadow DOM of the selected element(s) and
* applies the given selector using querySelectAll. Returns a jQuery object for chaining.
* Have fun!
*
* @param string selector The CSS selector to search within the shadow DOM f... | rezonant/sequeldash | app/js/jquery.rezonant.js | JavaScript | bsd-3-clause | 4,449 |
({
doInit : function(component, event, helper) {
let contactRecordId = [].concat(component.get("v.contactRecordId")); // guarantees array for idSet
if (!$A.util.isEmpty(contactRecordId)) {
let tableRequest = {
queryString: "SELECT "
+ "Id, CaseNumber, CreatedDate, ClosedDate, ... | tsalb/sfdc-lightning-service-components | src/aura/CaseDatatable/CaseDatatableController.js | JavaScript | bsd-3-clause | 1,167 |
var step = '<font class="fontSize">'
+'<p>Purpose:</p>'
+'<p>Verifies that info of XWalkRuntimeLib display normally and support app of share mode</p>'
+'<p>Expected Result:</p>'
+'<ol>'
+'<li>The Crosswalk runtime is installed successfully</li>'
+'... | YongseopKim/crosswalk-test-suite | usecase/usecase-wrt-android-tests/steps/SharemodeLibrary/step.js | JavaScript | bsd-3-clause | 584 |
// moment.js language configuration
// language : canadian french (fr-ca)
// author : Jonathan Abourbih : https://github.com/jonbca
(function (factory) {
if (typeof define === 'function' && define.amd) {
define(['../moment'], factory); // AMD
} else if (typeof exports === 'object') {
module.exp... | 329379172/zfblog | public/bower_components/moment/lang/fr-ca.js | JavaScript | bsd-3-clause | 1,928 |
;(function($B){
var _b_=$B.builtins
var $ObjectDict = _b_.object.$dict
var isinstance = _b_.isinstance, getattr=_b_.getattr, None=_b_.None
var from_unicode={}, to_unicode={}
//bytearray() (built in function)
var $BytearrayDict = {__class__:$B.$type,__name__:'bytearray'}
var mutable_methods = ['__delitem__','clear',... | nvoron23/brython | src/py_bytes.js | JavaScript | bsd-3-clause | 18,441 |
var config = {"document":{"height":210,"width":297,"mode":"rgb"},"characterStyles":[{"name":"swatchRectTitle","attributes":{"size":8}}],"swatchRect":{"textPosition":0.125},"colors":[{"group":"vega-blue-green-1","name":"vega-blue-green-1-1","rgb":[88,186,145]}]};
// Polyfills methods that aren't available in Illustrato... | netbek/chrys | illustrator/vega-blue-green-1.js | JavaScript | bsd-3-clause | 13,715 |
/*##################################################|*/
/* #CMS.BASE# */
(function namespacing(CMS) {
CMS.$(document).ready(function ($) {
// assign correct jquery to $ namespace
$ = CMS.$ || $;
// the following is added because IE is stupid
// $.ajax requests in IE8 fail without this hack
// ref: http://st... | datakortet/django-cms | cms/static/cms/js/plugins/cms.base.js | JavaScript | bsd-3-clause | 4,780 |
define(function() {
/**
* This function copies all properties into an target-object (target) from
* all given source-objects (source). Target and source are given as
* parameters. The first param is used as target. If more than one source
* contain the same property, the property of the last given param is
*... | moccu/django-omnibus | omnibus/static/omnibus/src/utils/extend.js | JavaScript | bsd-3-clause | 1,190 |
/*price range*/
$('#sl2').slider();
$('.catalog').dcAccordion({
speed: 300
});
var RGBChange = function() {
$('#RGB').css('background', 'rgb('+r.getValue()+','+g.getValue()+','+b.getValue()+')')
};
/*scroll to top*/
$(document).ready(function(){
$(function () {
$.scrollUp({
scrollName: 'sc... | dyacks/yii2-shop | web/js/main.js | JavaScript | bsd-3-clause | 1,287 |
/*
* Copyright (c) 2013, 2014, Erik Wienhold
* All rights reserved.
*
* Licensed under the BSD 3-Clause License.
*/
/* global define */
define([
'sulfur/schema/facet/maxInclusive',
'sulfur/schema/facets',
'sulfur/schema/qname',
'sulfur/schema/type/simple/derived',
'sulfur/schema/type/simple/derived/non... | ewie/sulfur | src/sulfur/schema/type/simple/derived/unsignedLong.js | JavaScript | bsd-3-clause | 812 |
/*
* test.lb.base.array.js - Unit Tests of lb.base.array module
*
* Author: Eric Bréchemier <github@eric.brechemier.name>
* Copyright:
* Eric Bréchemier (c) 2011-2013, Some Rights Reserved.
* Legal-Box (c) 2010-2011, All Rights Reserved.
*
* License:
* BSD License
* http://creativecommons.org/licenses/BSD/... | eric-brechemier/lb_js_scalableApp | test/test.lb.base.array.js | JavaScript | bsd-3-clause | 6,821 |
/**
* Copyright (c) 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.
*/
import { desc... | freiksenet/graphql-js | src/validation/__tests__/FieldsOnCorrectType.js | JavaScript | bsd-3-clause | 4,817 |
var core = require('../../utils/core.js');
var ERROR = require('../../utils/errors.js');
var initOption = require('../option.js').initOption;
var TreeMap = require('./treemap.js');
var TreeMapHelper = function (os, dt) {
ERROR(!d3, '0001');
var defaultOptions = {};
var defaultData = [];
var option = initOption(d... | WeiFei365/d3chart-old | src/charts/treemap/treemap_helper.js | JavaScript | bsd-3-clause | 776 |
var scope = document.querySelector('template[is=dom-bind]');
scope.setValue = function(event) {
if (!(event.target instanceof HTMLButtonElement)) {
return;
}
var inputValue = event.target.previousElementSibling.value;
if (event.target.value == "bindValue") {
... | fuzzdota/chromeapp-native-messaging-sample | app/bower_components/iron-autogrow-textarea/demo/index.html.0.js | JavaScript | bsd-3-clause | 526 |
/*jslint browser: true, devel: true, node: true, ass: true, nomen: true, unparam: true, indent: 4 */
/**
* @license
* Copyright (c) 2015 The ExpandJS authors. All rights reserved.
* This code may only be used under the BSD style license found at https://expandjs.github.io/LICENSE.txt
* The complete set of authors ... | MassiveZergInc/MassiveZergInc.github.io | everHomev2/bower_components/expandjs/lib/dom/getPreviousElement.js | JavaScript | bsd-3-clause | 1,812 |
// Load modules
var Joi = require('joi');
// Declare internals
var internals = {
validKeyRegex: /^[a-zA-Z0-9][a-zA-Z0-9-]*$/
};
exports.definition = Joi.object({}).pattern(internals.validKeyRegex, Joi.object({
alias: Joi.array().items(Joi.string().allow('')).single(),
type: Joi.string().valid(['boolea... | fampinheiro/bossy | lib/schemas.js | JavaScript | bsd-3-clause | 709 |
let names = {
A: 'Arbeiderpartiet',
FrP: 'Fremskrittspartiet',
H: 'Høyre',
KrF: 'Kristelig Folkeparti',
Kp: 'Kystpartiet',
MDG: 'Miljøpartiet De Grønne',
R: 'Rødt',
Sp: 'Senterpartiet',
SV: 'Sosialistisk Venstreparti',
TF: 'Tverrpolitisk Folkevalgte (Kystpartiet)',
Uav: 'Uavh... | holderdeord/hdo-transcript-search | webapp/src/shared/Parties.js | JavaScript | bsd-3-clause | 633 |