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 |
|---|---|---|---|---|---|
"use strict";
goog.provide("Entry.FieldTrashcan");
Entry.FieldTrashcan = function(board) {
if (board) this.setBoard(board);
this.dragBlock = null;
this.dragBlockObserver = null;
this.isOver = false;
if (Entry.windowResized)
Entry.windowResized.attach(this, this.setPosition);
};
(functio... | jangmoonchul/entryjs | src/workspace/trashcan.js | JavaScript | apache-2.0 | 4,410 |
var app = angular.module('sentinelDashboardApp');
app.service('VersionService', ['$http', function ($http) {
this.version = function () {
return $http({
url: '/version',
method: 'GET'
});
};
}]);
| alibaba/Sentinel | sentinel-dashboard/src/main/webapp/resources/app/scripts/services/version_service.js | JavaScript | apache-2.0 | 221 |
describe('When logging uncaught exception', function() {
var common = testCommon();
var sessionId = "session-456-def";
beforeAll(function() {
BrowserDetect.init();
});
beforeEach(function (done) {
loupe.setSessionId(sessionId);
createError();
common.requestCompl... | GibraltarSoftware/Gibraltar.Agent.Web.JavaScript | Native/spec/When_logging_uncaught_exception.js | JavaScript | apache-2.0 | 3,183 |
/* global $, interfaceConfig */
/* jshint -W101 */
import Filmstrip from './Filmstrip';
import LargeContainer from './LargeContainer';
import UIEvents from "../../../service/UI/UIEvents";
import UIUtil from "../util/UIUtil";
// FIXME should be 'video'
export const VIDEO_CONTAINER_TYPE = "camera";
const FADE_DURATION... | KalinduDN/kalindudn.github.io | modules/UI/videolayout/VideoContainer.js | JavaScript | apache-2.0 | 19,339 |
import input from './input';
import event from './event';
const range = document.createRange();
/**
* A Widget class that can be extended to provide some of the basic widget functionality out of the box.
*/
class Widget {
/**
* @class
* @param {Element} element - The DOM element the widget is applied ... | enketo/enketo-core | src/js/widget.js | JavaScript | apache-2.0 | 5,527 |
var isAndroid = (Ti.Platform.name == 'android');
var gproxy = Ti.Gesture;
var wproxy = Ti.UI.WebView;
var vielite = require('utils/global').getGlobals();
var uielements = require('uielements');
var notifIsInForeground = true;
Ti.App.addEventListener('pause', function(){
notifIsInForeground = false;
});
Ti... | msmm/yatelayouknow | Resources/app.js | JavaScript | apache-2.0 | 1,259 |
define(['jquery',
'underscore',
'libs/backbone',
'goatApp/model/LessonContentModel',
'goatApp/view/LessonContentView',
'goatApp/view/PlanView',
'goatApp/view/SourceView',
'goatApp/view/SolutionView',
'goatApp/view/HintView',
'goatApp/view/HelpControlsView',
'goatApp/view/CookieVi... | aseemsbapat/test | LessonController.js | JavaScript | apache-2.0 | 7,853 |
import should from 'should';
import mongobless from '..';
import { Piece, Square, Circle } from './model';
const data = {
collections:{
pieces: [
{
_id: 1,
type: "square",
size : 2,
},
{
_id: 2,
type: "circle",
radius: 1
}
]
}
};
let ... | redpelicans/mongobless | test/promise.js | JavaScript | apache-2.0 | 2,296 |
initSidebarItems({"fn":[["pin","Pin the current epoch."]],"struct":[["Atomic","Like `std::sync::atomic::AtomicPtr`."],["Guard","An RAII-style guard for pinning the current epoch."],["Owned","Like `Box<T>`: an owned, heap-allocated data value of type `T`."],["Shared","Like `&'a T`: a shared reference valid for lifetime ... | liebharc/clFFT | docs/bindings/crossbeam/mem/epoch/sidebar-items.js | JavaScript | apache-2.0 | 331 |
/**
* Created by sailengsi on 2017/5/11.
*/
import {
Home,
Content
} from 'layout/';
import TradeLog from './tradeLog';
export default {
path: '/home',
name: 'home',
icon: 'trade_log',
component: Home,
redirect: '/home/trade_log',
leaf: true,
direction: 'vertical',
children: [TradeLog]
}; | liliang1993/new_bridge2.0 | src/router/tradeLog/index.js | JavaScript | apache-2.0 | 314 |
#!/usr/bin/env node
var couchapp = require('./main.js')
, watch = require('watch')
, path = require('path')
, fs = require('fs')
;
function abspath (pathname) {
if (pathname[0] === '/') return pathname
return path.join(process.cwd(), path.normalize(pathname));
}
function copytree (source, dest) {
watch... | mikeal/node.couchapp.js | bin.js | JavaScript | apache-2.0 | 10,231 |
const mongoose = require('mongoose')
/*
* Logging model for usage statistics and metrics
*/
const LogSchema = new mongoose.Schema({
userId: {
type: mongoose.Schema.Types.ObjectId
},
category: {
type: String,
required: true
},
type: {
type: String,
required: true
},
data: {
type... | CIVIS-project/BRFApp | lib/models/logs.js | JavaScript | apache-2.0 | 801 |
var mainApp = angular.module('mainApp');
mainApp.controller('diagnosisCtrl', function($scope) {
});
| DoctorAI/DoctorAI.github.io | app/js/diagnosisCtrl.js | JavaScript | apache-2.0 | 104 |
import defaultValue from "../Core/defaultValue.js";
import defined from "../Core/defined.js";
import Event from "../Core/Event.js";
import TranslationRotationScale from "../Core/TranslationRotationScale.js";
import createPropertyDescriptor from "./createPropertyDescriptor.js";
import Property from "./Property.js";
var... | YonatanKra/cesium | Source/DataSources/NodeTransformationProperty.js | JavaScript | apache-2.0 | 5,011 |
'use strict';
/**
* @ngdoc function
* @name frontendApp.controller:MainCtrl
* @description
* # MainCtrl
* Controller of the frontendApp
*/
angular.module('frontendApp')
.controller('MainCtrl', ['$scope', '$upload', '$routeParams', '$location', '$http',
function($scope, $upload, $routeParams, $location, $http) ... | BowTieProject/groupdynamics | frontend/app/scripts/controllers/main.js | JavaScript | apache-2.0 | 3,411 |
const chai = require(`chai`);
const assert = chai.assert;
const http = require('http');
const url = require('url');
const querystring = require('querystring');
const EventEmitter = require('events');
const events = new EventEmitter();
const DeviceHive = require('../../../index');
let authService, mainService, device... | devicehive/devicehive-javascript | test/unit/controllers/NetworkAPI.http.spec.js | JavaScript | apache-2.0 | 5,884 |
/*
* http://guide.couchdb.org/draft/notifications.html#filters
*
*/
function tag(doc, req) {
if (!req.query.tag)
return false;
var tag = req.query.tag + '//';
if(doc.message && doc.message.indexOf(tag) !== -1 ) {
return true;
}
return false;
}; tag
| gdamjan/irclog-couchapp | couch/filters/tag.js | JavaScript | apache-2.0 | 273 |
var searchData=
[
['validate_5fgrapheme_2ecpp',['validate_grapheme.cpp',['../a01550.html',1,'']]],
['validate_5fgrapheme_2eh',['validate_grapheme.h',['../a01553.html',1,'']]],
['validate_5findic_2ecpp',['validate_indic.cpp',['../a01556.html',1,'']]],
['validate_5findic_2eh',['validate_indic.h',['../a01559.html'... | stweil/tesseract-ocr.github.io | 4.0.0/search/files_14.js | JavaScript | apache-2.0 | 1,005 |
var { vec, dot } = require("./math");
function createBox(el, overlap) {
if (!el || !el.getBoundingClientRect) return;
var BoundingRect = el.getBoundingClientRect(),
r = {
top: BoundingRect.top,
bottom: BoundingRect.bottom,
height: BoundingRect.height,
width: BoundingRect.width... | canalplus/mickey.js | src/box.js | JavaScript | apache-2.0 | 1,399 |
/**
* @module RHAccess
*/
var RHAccess = (function (RHAccess) {
RHAccess.rhAccessContextPath = "/rhaccess-web/";
RHAccess.remoteAppEntryPoint = RHAccess.rhAccessContextPath + "support.html";
RHAccess.localAppEntryPoint = "index.html#/rhaccess_plugin";
/**
* @property breadcrumbs
* @type {{co... | janstey/fuse-1 | tooling/rh-support/hawtio-plugin-redhat-access/src/main/webapp/plugin/js/navbar.js | JavaScript | apache-2.0 | 3,047 |
var structofputil__bucket =
[
[ "bucket_id", "structofputil__bucket.html#af0d822572ed8431598490227c9a7fd65", null ],
[ "list_node", "structofputil__bucket.html#a9cbb851038f5e27635a3ad720f173f08", null ],
[ "ofpacts", "structofputil__bucket.html#a4e17222f5a53e894d504672ba4c3a51a", null ],
[ "ofpacts_len"... | vladn-ma/vladn-ovs-doc | doxygen/ovs_all/html/structofputil__bucket.js | JavaScript | apache-2.0 | 755 |
/*
Licensed to the StackStorm, Inc ('StackStorm') 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 this... | armab/hubot-stackstorm | lib/format_command.js | JavaScript | apache-2.0 | 1,237 |
/* @flow */
import Box from '../../../Box/common/DemoBox';
import FlexItem from '../../common/DemoFlexItem';
import Flex from '../../common/DemoFlex';
export default {
id: 'box-props',
title: 'Box Props',
description: `Because Flex composes the [Box](/components/box) component, it
accepts any of [Box's props](/c... | mineral-ui/mineral-ui | src/website/app/demos/Flex/Flex/examples/boxProps.js | JavaScript | apache-2.0 | 899 |
// Copyright 2013 SAP AG.
//
// 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 writing... | abhikco/node-hdb | test/lib.ResultSet.js | JavaScript | apache-2.0 | 13,701 |
/*
* Copyright (c) 2010-2014 LabKey Corporation
*
* Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0
*/
require("ehr/triggers").initScript(this);
function onInit(event, scriptContext){
scriptContext.quickValidation = true;
}
function setDescription(row, helper){
... | WNPRC-EHR-Services/wnprc-modules | WNPRC_EHR/resources/queries/study/cageObs.js | JavaScript | apache-2.0 | 454 |
"use strict";
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
return result;
};
Object.defineProperty(ex... | GoogleCloudPlatform/prometheus-engine | third_party/prometheus_ui/base/web/ui/react-app/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-untyped-public-signature.js | JavaScript | apache-2.0 | 4,011 |
module.exports = {
APP_INSTALL_PENDING: 'app:install:pending',
APP_INSTALL_SUCCESS: 'app:install:success',
APP_INSTALL_FAILED: 'app:install:failed',
APP_UNINSTALL_PENDING: 'app:uninstall:pending',
APP_UNINSTALL_SUCCESS: 'app:uninstall:success',
APP_UNINSTALL_FAILED: 'app:uninstall:failed',
... | bigboards/bigboards-fabric | code/event_names.js | JavaScript | apache-2.0 | 1,506 |
/*
* Copyright 2012 Shared Learning Collaborative, 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 ... | wes-williams/InBloom_getStartedWithSDK | client/SLC.js | JavaScript | apache-2.0 | 6,778 |
/**
* A {@link Ext.ux.statusbar.StatusBar} plugin that provides automatic error
* notification when the associated form contains validation errors.
* TODO: Fix error validation for elements that haven't been shown yet. They are taken into account until the container renders them for the first time.
*/
Ext.define('E... | panaxit/panaxui-extjs | lib/ValidationStatus.js | JavaScript | apache-2.0 | 7,054 |
'use strict';
angular.module('myApp').directive('messageDialog', function() {
return {
restrict: 'E',
scope: {
visible: '=',
title: '=',
onNo: '&',
onYes: '&'
},
transclude: true,
templateUrl: 'templates/directives/messageDialogTemplate.html',
link: function() {
... | angularjs-de/js-training | ajs-example/app/scripts/directives/messageDialog.js | JavaScript | apache-2.0 | 385 |
// NPM IMPORTS
import _ from 'lodash'
import h from 'virtual-dom/h'
// COMMON IMPORTS
import T from '../utils/types'
import rendering_normalize from './rendering_normalize'
/**
* Contextual constant for this file logs.
* @private
*/
const context = 'common/rendering/page'
/**
* Loading script... | lucbories/devapt-core-common | src/js/rendering/page.js | JavaScript | apache-2.0 | 16,298 |
var classorg_1_1onosproject_1_1xosintegration_1_1cli_1_1VoltRemoveTenantCommand =
[
[ "execute", "classorg_1_1onosproject_1_1xosintegration_1_1cli_1_1VoltRemoveTenantCommand.html#ad562186c5cffd95168425bc4cfe3d351", null ]
]; | onosfw/apis | onos/apis/classorg_1_1onosproject_1_1xosintegration_1_1cli_1_1VoltRemoveTenantCommand.js | JavaScript | apache-2.0 | 228 |
function addLayers(map) {
///////////////////////////////////////////
// setup the custom wms layer
///////////////////////////////////////////
var wmsUrl = "wms";
var layer1 = new OpenLayers.Layer.WMS( "Custom WMS Layer",
wmsUrl,
{layers: 'Custom',transpare... | davidmoten/grumpy | wms-demo/src/main/webapp/js/layers.js | JavaScript | apache-2.0 | 2,127 |
services.service('DcService', ['$resource', '$q', function ($resource, $q) {
var resource = $resource('', {}, {
load_all_dc: {
method: 'GET',
url: '/console/dcs/all',
isArray : true
},
delete_dc: {
method: 'DELETE',
url: '/console... | Yiiinsh/x-pipe | redis/redis-console/src/main/resources/static/scripts/services/DcService.js | JavaScript | apache-2.0 | 1,839 |
const chai = require(`chai`);
const assert = chai.assert;
const DeviceTypeDeleteQuery = require('../../../src/models/query/DeviceTypeDeleteQuery.js');
describe('DeviceTypeDeleteQuery', () => {
const expected = {
deviceTypeId: '1',
force: false
};
describe(('DeviceTypeDeleteQuery fileds')... | devicehive/devicehive-javascript | test/unit/modelsQuery/DeviceTypeDeleteQuery.spec.js | JavaScript | apache-2.0 | 1,097 |
/**
* @license
* Copyright 2016 E2EMail 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... | e2email-org/e2email | chrome/pages/threads/threads-controller_test.js | JavaScript | apache-2.0 | 7,236 |
'use strict';
module.exports = ['calc'];
| kyleterry/sufr | pkg/ui/node_modules/stylelint/lib/reference/mathFunctions.js | JavaScript | apache-2.0 | 42 |
/*
* Copyright 2016 Austin Lehman
*
* 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... | ic9/ic9 | tests/ut_ant.js | JavaScript | apache-2.0 | 2,517 |
// Copyright 2019 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-automl | samples/quickstart.js | JavaScript | apache-2.0 | 2,401 |
import React, { Component } from 'react'
import { ListView, StyleSheet, Text, View } from 'react-native'
const styles = StyleSheet.create({
header: {
fontSize: 24,
paddingBottom: 10
},
row: {
flexDirection: 'row',
justifyContent: 'center',
padding: 10,
backgroundColor: '#F6F6F6'
},
te... | conroywhitney/react-native-todo | app/components/todoList.js | JavaScript | apache-2.0 | 1,378 |
var stars, win;
win = Titanium.UI.currentWindow;
stars = [];
Titanium.include('../Util.js');
Titanium.include('../lib/ServerAPI.js');
Titanium.include('../modules/Main_module.js');
Titanium.include('../styles/Main_style.js');
/* event */
button_checkin.addEventListener('click', function(e) {
Ti.API.info('click checki... | takayukishmz/keizoku_client | Resources/controller/Main.js | JavaScript | apache-2.0 | 921 |
'use strict';
module.exports = {
a: {
b: {
c: 'hello',
c2: 'world',
c3: 1,
},
d: [1, 2, 3],
},
e: false,
f: null,
g: 1,
};
| adoyle-h/config-sp | test/mocks/default.js | JavaScript | apache-2.0 | 204 |
/*
* Copyright (C) 2012-2014 NS Solutions 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 applica... | hifive/hifive-ui-designer | hifiveVisualEditor/src/main/webapp/editor/h5.ext.js | JavaScript | apache-2.0 | 21,242 |
/* Namespace for core functionality related to DataTables. */
horizon.datatables = {
update: function () {
var $rows_to_update = $('tr.status_unknown.ajax-update'),
rows_to_update = $rows_to_update.length;
if ( rows_to_update > 0 ) {
var interval = $rows_to_update.attr('data-update-interval'),
... | davidcusatis/horizon | horizon/static/horizon/js/horizon.tables.js | JavaScript | apache-2.0 | 24,080 |
// Copyright 2017 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... | google/upvote_py2 | upvote/gae/modules/upvote_app/frontend/web_ui/shared/constants.js | JavaScript | apache-2.0 | 2,263 |
/*
* Copyright (C) 2015 Stratio (http://stratio.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | diegohurtado/sparta | web/src/scripts/factories/model-factory.js | JavaScript | apache-2.0 | 5,250 |
/**
Copyright 2014 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 law or agreed to in... | bcl-io/hmDNA | api-client-javascript/googlegenomics.jquery.js | JavaScript | artistic-2.0 | 5,360 |
// Description : Array and textureless GLSL 2D/3D/4D simplex
// noise functions.
// Author : Ian McEwan, Ashima Arts.
// Maintainer : ijm
// Lastmod : 20110822 (ijm)
// License : Copyright (C) 2011 Ashima Arts. All rights reserved.
// Distributed under the MIT License. See LICE... | stmaccarelli/HYPERLAND | lib/noise25d.js | JavaScript | artistic-2.0 | 1,988 |
/**
* Title Counting Valleys
* URL https://www.hackerrank.com/challenges/counting-valleys
*
* Author Norman Gamage <norman.gamage@gmail.com>
* Version 1.0
* Last Update 2017 May 15
*/
function processData(input) {
// Read input
input = input.split('\n');
let line = 0;... | norman-gamage/hackerrank | __old__/Algorithms/JavaScript/Implementation/counting-valleys.js | JavaScript | artistic-2.0 | 760 |
use_tags(['div','table','tbody','tr','th','td','span','textarea','a','pre','i']);
var cache = {}; // map from index to date
var _cal = {
getInitialState: function() {
var s = this.props.initial_state;
// initial_state:
// first : new Date( ...) -- date of first sunday
// month ... | bduggan/utiaji | static/pim/cal.js | JavaScript | artistic-2.0 | 7,851 |
var sprite_img = new Image();
sprite_img.src = 'img/sprites.png';
function drawSprite(x, y, name, scale) {
x = Math.round(x);
y = Math.round(y);
var img = sprite_img;
var desc = JSON_sprites;
var cxt = main.cxt;
var sp = desc[name];
cxt.drawImage(
img, sp[0], sp[1], sp[2], sp[3],
x, y, sp... | depp/the-one-road | js/sprites.js | JavaScript | bsd-2-clause | 2,674 |
/*
* WHEEL (Workflow in Hierarchical distributEd parallEL)
*
* Copyright (c) 2016-2017 Research Institute for Information Technology(RIIT), Kyushu University. All rights reserved.
* Copyright (c) 2016-2017 Advanced Institute for Computational Science, RIKEN. All rights reserved.
*/
"use strict";
var path = requir... | RIIT-KyushuUniv/WHEEL | app/swfScriptType.js | JavaScript | bsd-2-clause | 1,703 |
/**
* @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
/**
* This file was added automatically by CKEditor builder.
* You may re-use it at any time to build CKEditor again.
*
* If you would like to bu... | labibramadhan/cbt-crossword-web | app/components/libraries/ckeditor/ckeditor/build-config.js | JavaScript | bsd-2-clause | 1,722 |
var searchData=
[
['debug_20output',['Debug Output',['../group__debug.html',1,'']]],
['debug_2eh',['debug.h',['../debug_8h.html',1,'']]],
['debugout',['DEBUGOUT',['../group__debug.html#ga19525f7b34cac5693e8cd76d113de4ea',1,'debug.h']]],
['debugprint',['debugPrint',['../group__debug.html#gada1787bea8c10cd89775d6... | xythobuz/xyControl | doc/html/search/all_64.js | JavaScript | bsd-2-clause | 490 |
(typeof define === "undefined" ? function ($) { $(require, exports, module); } : define)(
function (require, exports, module, undefined) {
'use strict';
function remove(node) {
node.next.prev = node.prev;
node.prev.next = node.next;
node.prev = node.next = null;
}
function Node(next, prev, data) {
this.ne... | neonstalwart/Subject | List.js | JavaScript | bsd-2-clause | 858 |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: The length property of eval has the attribute DontEnum
es5id: 15.1.2.1_A4.1
es6id: 18.2.1
esid: sec-eval-x
description: Checking use propertyIsEnumerable, for-in
---*/
//CHEC... | sebastienros/jint | Jint.Tests.Test262/test/built-ins/eval/length-enumerable.js | JavaScript | bsd-2-clause | 725 |
var pyraminx = require('../../build/pyraminx.js');
var assert = require('assert');
function testParseStickerMoves() {
var moves = pyraminx.parseStickerMoves("R L U B R' L' U' B' r l u b r' l' u' b'");
var expected = [
new pyraminx.StickerMove(0, true, false),
new pyraminx.StickerMove(1, true, false),
n... | unixpickle/puzzle.js | pyraminx/test/sticker_move_test.js | JavaScript | bsd-2-clause | 1,614 |
var structalarmtime =
[
[ "day", "structalarmtime.html#ab9ba6d415537c392fea1a330751865f9", null ],
[ "frequency", "structalarmtime.html#af05c152475e32c3c6ff2b156cf687299", null ],
[ "hour", "structalarmtime.html#accdfe3c33766c9d6b3dc8996bb828dff", null ],
[ "minute", "structalarmtime.html#abf175f4cae8f6... | bplainia/galaxyLightingSystem | doxygen/html/structalarmtime.js | JavaScript | bsd-2-clause | 677 |
// Copyright (c) 2012 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.prototype.reduce
es5id: 15.4.4.21-5-5
description: >
Array.prototype.reduce throws TypeError if 'length' is 0
(subclassed Array, length overridden to '0' ... | sebastienros/jint | Jint.Tests.Test262/test/built-ins/Array/prototype/reduce/15.4.4.21-5-5.js | JavaScript | bsd-2-clause | 528 |
// Copyright (c) 2012 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-2-2
description: Array.prototype.filter - 'length' is own data property on an Array
---*/
function callbackfn(val, idx, obj) {
... | sebastienros/jint | Jint.Tests.Test262/test/built-ins/Array/prototype/filter/15.4.4.20-2-2.js | JavaScript | bsd-2-clause | 446 |
Kwf.onJElementHide('.kwcAdvancedVideoPlayer', function(el) {
if (el.get(0).mediaElement) el.get(0).mediaElement.stop();
}, {defer: true});
Kwf.onJElementReady('.kwcAdvancedVideoPlayer', function(el, config) {
el.find('video').mediaelementplayer({
//custom path to flash
flashName: '/assets/media... | yacon/koala-framework | Kwc/Advanced/VideoPlayer/Component.defer.js | JavaScript | bsd-2-clause | 2,596 |
/**
* Created by root on 2/26/16.
*/
var host = 'http://localhost/';
var URL = host + 'libraryMgtSystem/web/api/v1/';
var URL_GET_BOOK =URL + 'book';
var URL_GET_SINGLE_BOOK = URL_GET_BOOK +'/' + 'single';
var URL_POST_BOOK = URL_GET_BOOK + '/' + 'add';
var URL_POST_SEARCH = URL_GET_BOOK + '/' + 'search';
/**
* se... | meshboy/libraryMgtSystem | view/js/library.js | JavaScript | bsd-3-clause | 6,340 |
// +----------------------------------------------------------------------
// | tianji
// +----------------------------------------------------------------------
// | Copyright (c) 2015-+ http://www.dookay.com.
// +----------------------------------------------------------------------
// | Author: xiaopig <xiaopig12345... | pcze/pcze.github.io | backend/web/js/pages/content_branch.js | JavaScript | bsd-3-clause | 1,219 |
$(document).ready(function(){
$(".swc-5-price-content").tinyscrollbar({ axis: 'y' });
$(".swc-6-price-content").tinyscrollbar({ axis: 'y' });
$(".swc-9-price-content").tinyscrollbar({ axis: 'y' });
scrollPane();
});
function scrollPane(){
$('.swc-14-price-content').jScrollPane({
autoReini... | zserg84/webteam | frontend/modules/calculator/widgets/calculator/assets/js/wt-calculator.js | JavaScript | bsd-3-clause | 12,005 |
/**
* Console Log
*
*
* Log.error('error');
*
* Log.debug('debug');
*
*/
module.exports = {
}; | vulcan-estudios/bsk | src/app/libs/Log.js | JavaScript | bsd-3-clause | 105 |
zvar Db = require('mongodb').Db
, Connection = require('mongodb').Connection
, Server = require('mongodb').Server
,BSON = require('mongodb').BSONPure
, format = require('util').format
,OriginalObjectID = require('mongodb').ObjectID;
var ObjectID =function(str){
try{
var oid = OriginalOb... | dennixdeng/webNG | contentService/imageResize/resize.js | JavaScript | bsd-3-clause | 2,468 |
// gameboard
var gameboardWidth;
var gameboardHeight;
//canvases
var gameboard_canvas = document.createElement("canvas");
var gameboard_ctx = gameboard_canvas.getContext("2d");
var zIndexMap = {};
zIndexMap["explControl"] = 2;
zIndexMap["saliencyHoverValue"] = 5;
zIndexMap["clickBlockerRectangle"] = 10;
zIndexMap["wh... | SCAII/SCAII | viz/js/ui.js | JavaScript | bsd-3-clause | 12,847 |
/*-------------------------------------------------------------------------
* drawElements Quality Program OpenGL ES Utilities
* ------------------------------------------------
*
* Copyright 2014 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not us... | guorendong/iridium-browser-ubuntu | third_party/webgl/src/sdk/tests/deqp/functional/gles3/es3fTransformFeedbackTests.js | JavaScript | bsd-3-clause | 85,666 |
exports.lang = {
ja: {
home: "ホーム",
edit: "編集",
undo: "元に戻す",
redo: "やり直し",
export: "エクスポート",
JSON: "JSON",
PNG: "PNG",
PDF: "PDF",
DScript: "D-Script",
commit: "コミット",
commitlog: "コミット履歴",
config: "設定",
... | assureit/ads | app/routes/lang.js | JavaScript | bsd-3-clause | 2,444 |
/**
* 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.
*/
'use strict... | frantic/react-native | Libraries/Image/__tests__/resolveAssetSource-test.js | JavaScript | bsd-3-clause | 7,889 |
// Generated by IcedCoffeeScript 1.7.1-c
(function() {
var K, SHA256, alloc, bufeq_secure, katch, null_hash, obj_extract, pack, purepack, read_base64, seal, unpack, unseal, _ref, _ref1;
K = require('../const').kb;
_ref = require('../hash'), alloc = _ref.alloc, SHA256 = _ref.SHA256;
purepack = require('purepa... | keybase/node-client | node_modules/kbpgp/lib/keybase/encode.js | JavaScript | bsd-3-clause | 1,968 |
/**
* @license
* Copyright (c) 2019 Pranav Pandey.
* Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
* The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
* The ... | pranavpandey/pranavpandey.github.io | src/pages/pp-home.js | JavaScript | bsd-3-clause | 3,203 |
function init() {
console.log("entering init");
dataLoaded = false;
var chartsrc = "./bar_chart.json";
var viewsrc = "./bar_chart.js";
var constructor = "vgWrapperNS.bar_chart_view";
var id = "TimeOfDay";
console.log("creating vega chart: " + id);
var chart = new delv.vegaChart(id, viewsrc, chartsrc, c... | krismz/Delv | examples/vega_crossfilter/vega_crossfilter.js | JavaScript | bsd-3-clause | 2,401 |
/**
* 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.
*
* @flow
*/... | qingfeng/react-native | Libraries/react-native/react-native.js | JavaScript | bsd-3-clause | 2,889 |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const globalObject = (function () {
if (typeof window !== 'undefined') {
// Browsers
return window;
}
else if (typeof global !== 'undefined') {
// Node
return global;
}
else if (typeof self !... | xblox/control-freak | _build/global.js | JavaScript | bsd-3-clause | 475 |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
/* =========================================
* Copyright (c) 2015-present, Billgo.
* All rights reserved.
*======================================== */
function isRequiredForA11y(validator) {
return function validate(props, propName, comp... | teasim/teasim-helpers | build/isRequiredForA11y.js | JavaScript | bsd-3-clause | 1,032 |
"use strict";
let net = require('net');
let path = require('path');
let util = require('util');
let validURL = require('valid-url');
let config = require('../lib/config');
module.exports = env => {
describe('env', () => {
it('is frozen', () => {
Object.isFrozen(env).should.be.true;
});
d... | adminion/off-the-record | test/test_server_env.js | JavaScript | bsd-3-clause | 4,277 |
(function() {
JenScript.Model = {
/**
* adds methods prototype to child prototype
* @method
* @memberof JenScript.Model.prototype
* @param {Object} childObject
* @param {Object} parentObject
*/
inheritPrototype : function(childObject, parentOb... | sjanaud/jenscript | src/model.js | JavaScript | bsd-3-clause | 959 |
/*eslint-env mocha*/
/*global _*/
//
// BOOMR.plugins.TestFramework
//
(function(window) {
// set our namespace
var BOOMR = window.BOOMR = window.BOOMR || {};
BOOMR.plugins = BOOMR.plugins || {};
if (BOOMR.plugins.TestFramework) {
return;
}
BOOMR.plugins.TestFramework = {
initialized: false,
fired_page_r... | lognormal/boomerang | tests/boomerang-test-framework.js | JavaScript | bsd-3-clause | 34,355 |
/*
* Copyright 2013 Yahoo! Inc. All rights reserved.
* Copyrights licensed under the BSD License.
* See the accompanying LICENSE.txt file for terms.
*/
/*jslint nomen:true, node:true */
"use strict";
var libpath = require('path'),
DEFAULT_SELECTOR = '{}';
/**
* The Locator walks the filesystem and gives ... | yahoo/locator | lib/bundle.js | JavaScript | bsd-3-clause | 1,392 |
var Spraycan = {
Views: {Shared: {}, Layouts: {}, Palettes: {}, Fonts: {}, Images: {}, Packs: {}, Advanced: {} },
Routers: {},
Collections: {},
current: null,
current_action: null,
view: null,
editor: {minimised: false, maximised: false, visible: false },
loaded: {},
busy: { ajax: false, iframe:... | r3ap3r2004/spraycan | app/assets/javascripts/spraycan/selector/config.js | JavaScript | bsd-3-clause | 7,936 |
/**
* Copyright (c) 2017, salesforce.com, inc.
* All rights reserved.
* Licensed under the BSD 3-Clause license.
* For full license text, see LICENSE.txt file in the repo root or
* https://opensource.org/licenses/BSD-3-Clause
*/
/**
* tests/api/v1/perspectives/deleteWithoutPerms.js
*/
'use strict'; // eslint-d... | salesforce/refocus | tests/api/v1/perspectives/deleteWithoutPerms.js | JavaScript | bsd-3-clause | 1,869 |
var ACTIVE_LOCALE = 'en';
var Locale = require('locale/index');
var Polyglot = require('node-polyglot');
var polyglot = new Polyglot({
locale: ACTIVE_LOCALE, // Needed for pluralize behaviour
phrases: Locale[ACTIVE_LOCALE]
});
var _t = polyglot.t.bind(polyglot);
var MAP = {
'aggregate-intersection': {
title:... | CartoDB/cartodb | lib/assets/javascripts/deep-insights/data/analyses.js | JavaScript | bsd-3-clause | 3,221 |
var config = {"document":{"height":210,"width":297,"mode":"rgb"},"characterStyles":[{"name":"swatchRectTitle","attributes":{"size":8}}],"swatchRect":{"textPosition":0.125},"colors":[{"group":"vega-red-blue-5","name":"vega-red-blue-5-1","rgb":[212,95,82]},{"group":"vega-red-blue-5","name":"vega-red-blue-5-2","rgb":[246,... | netbek/chrys | illustrator/vega-red-blue-5.js | JavaScript | bsd-3-clause | 14,009 |
define([], function() {
return {a: 135};
});
| sourcegraph/tern-local-scope-condense-plugin | testdata/requirejs_module.js | JavaScript | bsd-3-clause | 47 |
// These methods handle the User-related routes.
import deepcopy from 'deepcopy';
import Config from '../Config';
import AccountLockout from '../AccountLockout';
import ClassesRouter from './ClassesRouter';
import PromiseRouter from '../PromiseRouter';
import rest from '../rest';
import Auth ... | themungapp/themungapp | src/Routers/UsersRouter.js | JavaScript | bsd-3-clause | 7,812 |
app.controller(
'CompensationController',
[
'$scope',
'$q',
'$controller',
'ModelService',
function ($scope, $q, $controller, ModelService) {
// Inherits ProjectDetailController $scope
$controller('ProjectDetailController', {$scope: $scope});
... | whitews/ReFlow | static/ng-app/controllers/compensation_controllers.js | JavaScript | bsd-3-clause | 6,933 |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.serverRemotePub = exports.serverRemotePub_PATH = void 0;
const debug_ = require("debug");
const express = require("express");
const morgan = require("morgan");
const UrlUtils_1 = require("r2-utils-js/dist/es6-es2015/src/_utils/http/Url... | edrlab/r2-streamer-js-dist | dist/es6-es2015/src/http/server-url.js | JavaScript | bsd-3-clause | 2,744 |
var app;
window.onload = function() {
app = new App();
app.init();
//app.console.set();
app.ui.set();
};
window.onresize = function() {
if (app) {
app.handleResize();
}
};
Class("App", {
MAX_NUM_TABS : 5,
FILE_EXTENSIONS : ["js", "coffee"],
MIN_HEIGHT : 600,
MIN_WIDTH : 800,
HEIGHT : 600,
WIDTH : 800,
... | marco-ponds/lype.js | ChromeExtension/js/app/main.js | JavaScript | bsd-3-clause | 8,831 |
// Watcher
// -------
// Class for polling a given model (or collection) and firing a callback
// when it changes.
//
// - `model` model to watch
// - `callback` function to call when a change occurs to the model
// - `interval` interval to polling the server (in milliseconds)
var Watcher = function(model, callback, in... | makinacorpus/tilemill | client/js/utils.js | JavaScript | bsd-3-clause | 9,421 |
var test = require('../test_helper'),
helpers = require('../../appjs/helpers'),
_ = require('underscore'),
Backbone = require('backbone');
test('render', function(t) {
t.plan(1);
var template = _.template('<%=slugify( item ) %>');
t.equal(
helpers.render( template, { item: 'Hello World!' } ),
... | voxmedia/autotune | testjs/integration/test_helpers.js | JavaScript | bsd-3-clause | 999 |
import React from 'react';
import { connect } from 'react-redux';
import { compose } from 'redux';
import i18n from 'i18n';
import CONSTANTS from 'constants/index';
import PropTypes from 'prop-types';
import {
deactivateModal,
setFileBadge,
} from 'state/gallery/GalleryActions';
import { display as displayToast } f... | silverstripe/silverstripe-asset-admin | client/src/containers/MoveModal/MoveModal.js | JavaScript | bsd-3-clause | 3,462 |
import { select } from 'd3-selection';
import { className, renderComponent } from './utils';
import ScalePanel from './ScalePanel';
import css from './cssWrapper';
export default class MainContainer {
constructor(parent, props = {}) {
this.parent = parent;
this.visible = !props.startHidden;
this.scalePr... | pbeshai/d3-scale-interactive | src/ui/MainContainer.js | JavaScript | bsd-3-clause | 1,958 |
'use strict';
var roles = {
users: [
{
userName: 'User',
role: 'user'
},
{
userName: 'Admin',
role: 'admin'
},
{
userName: 'Gatekeeper',
role: 'gatekeeper'
},
{
userName: 'Nologin',
role: 'no-login'
}
]
};
module.exports = roles;
| paddeee/farrel | app/scripts/config/roles.js | JavaScript | bsd-3-clause | 316 |
/**
*
* @package Ice
*
*/
var Ice = {
_callbacks: {},
_lastback: 0,
call: function (actionClass, data, callback, url, method) {
$('#icePreloader').show();
var back = this._lastback++;
Ice._callbacks [back] = callback;
data.actionClass = actionClass;
data.back ... | ifacesoft/Ice | Resource/js/javascript.js | JavaScript | bsd-3-clause | 4,513 |
const _ = require('lodash')
let { parse, stringify } = require('scss-parser')
let createQueryWrapper = require('./query-ast')
let $
module.exports = class Candidates {
constructor(ast) {
this.ast = ast
$ = createQueryWrapper(this.ast)
}
maps() {
// Eff up some comments
$('comment_singleline').remove()
... | bcrebel/stylejam | candidates.js | JavaScript | bsd-3-clause | 2,756 |
var initScreen = function (user) {
var ctrlName = "manufacturer";
$('#end-users-table').dataTable({
"deferRender": true,
"ajax": {
"url": '/' + ctrlName + '/list',
"dataSrc": ""
},
"columns": [
{data: "created_at"},
{data: "title"}... | megarocks/project-e | web/js/manufacturer/manufacturer-index.js | JavaScript | bsd-3-clause | 1,718 |
/*!
* promises.js
*
* Copyright (c) 2011, Tom Lokhorst
* Released under BSD licence, see LICENSE file.
*/
;
// A deferred is a value that can be resolved at a later time.
// The value can be observed via the promise object
function Deferred(onDone)
{
onDone = onDone || function () {};
if (typeof onDone !== "... | tomlokhorst/promises.js | src/promises.js | JavaScript | bsd-3-clause | 6,495 |
import * as types from "./carouselTypes";
export const setSelectedPokemonForDetails = currentPokemon => {
return {
type: types.SET_CURRENT,
currentPokemon
}
}
export const openDetails = () => {
return {
type: types.TOGGLE_DETAILS
}
}
| esgiprojetninja/ninjaPokedex | public/js/lib/pokedex/actions/carouselActions.js | JavaScript | bsd-3-clause | 276 |
var WSClient = initWSClient();
describe("WSClient", function() {
it("should be able to make client send \"Hello World!\" to server", function(done) {
var client = WSClient({
host: "http://127.0.0.1:8080"
});
client.socket.map(function(socket) {
socket.on("message", function(message) {
... | rbelouin/go.js | tests/models/ws-client.spec.js | JavaScript | bsd-3-clause | 489 |