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';
describe('Controller: SmelladdcontrollerCtrl', function () {
// load the controller's module
beforeEach(module('uiApp'));
var SmelladdcontrollerCtrl,
scope;
// Initialize the controller and a mock scope
beforeEach(inject(function ($controller, $rootScope) {
scope = $rootScope.$new();... | bisigc/art | ui/test/spec/controllers/smelladdcontroller.js | JavaScript | apache-2.0 | 614 |
/**
* Copyright 2013-2020 the original author or authors from the JHipster project.
*
* This file is part of the JHipster project, see http://www.jhipster.tech/
* for more information.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the Li... | PierreBesson/generator-jhipster | jdl/validators/jdl-without-application-validator.js | JavaScript | apache-2.0 | 8,263 |
function CustomButton() {
var self = Titanium.UI.createView({
backgroundColor : 'transparent',
width : 200,
height : 45,
canFire : true
});
var solid = Titanium.UI.createView({
backgroundColor : '#F7CD63',
width : '100%',
height : 42,
top : 0
});
var shadow = Titanium.UI.createView({
backgroun... | johneisenheim/bangcode | Resources/ui/customUI/CustomButton.js | JavaScript | apache-2.0 | 868 |
/**
* @license Apache-2.0
*
* Copyright (c) 2020 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/stats/base/nanmeanpn/lib/nanmeanpn.js | JavaScript | apache-2.0 | 2,509 |
"use strict";
require("../helpers/setup");
var wd = require("wd"),
_ = require('underscore'),
serverConfigs = require('../helpers/appium-servers');
describe("ios safari", function () {
this.timeout(300000);
var driver;
var allPassed = true;
before(function () {
var serverConfig = process.env.SAU... | nhirata/Aframe-tests | tests/desktop-aframe-website.js | JavaScript | apache-2.0 | 2,697 |
'use strict';
import React from 'react';
import ReactDOM from 'react-dom';
import { Router } from 'react-router';
import createBrowserHistory from 'history/createBrowserHistory';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import PreparationItem from './PreparationItem';
it('renders correctly'... | ayltai/fishing-club | src/pages/others/PreparationItem.test.js | JavaScript | apache-2.0 | 727 |
/* global describe it */
const chai = require('chai')
chai.should()
const expect = chai.expect
const chordMagic = require('../dist/chord-magic.cjs.js')
const parse = chordMagic.parse
const prettyPrint = chordMagic.prettyPrint
const transpose = chordMagic.transpose
function tests () {
// this is like some White Alb... | nolanlawson/chord-magic | test/test.js | JavaScript | apache-2.0 | 14,998 |
'use strict';
/*
underscore库可以加载到HTML中在浏览器运行,也可以直接在nodejs的环境中使用
*/
var _ = require('underscore');
_.each([1, 2, 3], function(num){
console.log("underscore.js says " + num);
});
| gdefias/Code | javascript/underscore/test_underscore.js | JavaScript | apache-2.0 | 234 |
/*
Description: Initialization script
Filename:app.js
Created Date: 29/7/2013
*/
var caramel = require('caramel'),
config = require('/config/publisher.json'),
carbon = require('carbon'),
process = require('process'),
mediaType = 'application/vnd.wso2.registry-ext-type+xml',
conf = carbon.server... | sameerak/carbon-store | apps/publisher/app-scripts/init-scripts/app.js | JavaScript | apache-2.0 | 2,743 |
var RCMoreWindow = Ti.UI.currentWindow;
var moreBorder = Ti.UI.createView({
backgroundColor: '#A4A4A4',
height: 1,
top: 1
});
var rosterHeader = Ti.UI.createLabel({
text: "STAR PLAYERS",
color: "#B40404",
shadowColor:'#000',
shadowOffset:{width:3,height:3},
top: moreBorder.top + moreBorder.height + 0,
text... | JackB03/newmiu1408 | InfoApp/Resources/moreTeam/RCmore.js | JavaScript | apache-2.0 | 2,078 |
var target = ""
$("#register").submit(function(){
register( $( "input:first" ).val());
return false;
})
$("#kill").submit(function(){
kill();
return false;
})
var login = function(){
info = "request=login&"+$(this).serialize();
var user = $(this).serializeArray()[0].value;
$.ajax({
type: 'POST',... | Oswoll/Assassin | code.js | JavaScript | apache-2.0 | 2,582 |
function getLocationParameter()
{
var pattern = /[^#]*#(.*)/;
var result = pattern.exec(window.location);
if(result != null)
{
return result[1];
}
}
function loadProjects(projects)
{
if(projects)
{
var converter = new showdown.Converter();
var ul = $("#projects")[0];... | Bomorz/Bigot | src/wwwroot/bigot/js/common.js | JavaScript | apache-2.0 | 2,501 |
/* http://keith-wood.name/calendars.html
Korean localisation for Gregorian/Julian calendars for jQuery.
Written by DaeKwon Kang (ncrash.dk@gmail.com). */
(function($) {
$.calendars.calendars.gregorian.prototype.regional['ko'] = {
name: 'Gregorian',
epochs: ['BCE', 'CE'],
monthNames: ['1월(JAN)','2월(FEB)','... | ndrmc/cats | Cats.Web.Hub/Scripts/js/jquery.calendars-ko.js | JavaScript | apache-2.0 | 1,037 |
/**
* @license
* Visual Blocks Language
*
* Copyright 2012 Google Inc.
* https://blockly.googlecode.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... | cra16/cake-core | generators/cake/loops.js | JavaScript | apache-2.0 | 3,310 |
'use strict';
var P = require('bluebird');
var Util = require('./util');
var Route53 = function(AWS) {
var route53 = P.promisifyAll(new AWS.Route53());
return {
HealthCheck: {
call: function() { return route53.listHealthChecksAsync({}) },
resBlock: 'HealthChecks',
rName: 'Id',
construct: function (na... | arminhammer/bellerophon | src/resources/route53.js | JavaScript | apache-2.0 | 1,417 |
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ return installedModu... | KalicyZhou/weex-example | official_doc_1800/build/components/bx-loading.js | JavaScript | apache-2.0 | 3,572 |
/**
* System module
* @module System
* @namespace RGPP.System
*/
(function(global) {
/* global RGPP */
"use strict";
var objName = "TaskListModal";
/**
* Task List Modal
* @class TaskListModal
* @author arcsin
* @constructor
*/
var constructor = function(spec) {
var system = RGPP.System;
var mDB ... | arcsin037/RGPP | src/js/RGPP/System/Task/TaskListModal.js | JavaScript | apache-2.0 | 639 |
function note(){
var preview=document.getElementById('meitu');
preview.style.position='absolute';
preview.style.left='0px';
preview.style.top='0px';
var list=document.getElementById('chunmao');
var links=list.getElementsByTagName('a');
links[0].onmouseover=function(){
moveElement("me... | huangxiaojiehenmeili/luociba | mao.js | JavaScript | apache-2.0 | 610 |
/* -------------------------------------------------------------------------- */
/* Copyright 2002-2016, OpenNebula Project, OpenNebula Systems */
/* */
/* Licensed under the Apache License, Version 2.0 (the "License"); you may ... | hsanjuan/one | src/sunstone/public/app/tabs/vnets-tab/actions.js | JavaScript | apache-2.0 | 5,989 |
/**
* @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... | osric-the-knight/foam | js/foam/core/types/PhoneProperty.js | JavaScript | apache-2.0 | 724 |
/**
* Main application routes
*/
'use strict';
var errors = require('./components/errors');
module.exports = function(app) {
// Insert routes below
app.use('/api/invites', require('./api/invite'));
app.use('/api/toggles', require('./api/toggle'));
app.use('/api/things', require('./api/thing'));
app.use(... | Bunk/flippers | server/routes.js | JavaScript | apache-2.0 | 726 |
/**
* @author windy
* @version 2.0
* Created by windy on 2020/3/2
*/
describe("textvaluecombo", function () {
/**
* test_author_windy
*/
it("测试setValue", function () {
var combo = BI.Test.createWidget({
type: "bi.text_value_combo",
text: "默认值",
value: ... | fanruan/fineui | src/case/combo/textvaluecombo/__test__/combo.textvalue.test.js | JavaScript | apache-2.0 | 2,956 |
var htp__connection__parser_8h =
[
[ "htp_connp_clear_error", "htp__connection__parser_8h.html#a152d24bca0733a89934abe4f57a981b8", null ],
[ "htp_connp_close", "htp__connection__parser_8h.html#acc7723b7ab867bfde9d5ef78c1faf446", null ],
[ "htp_connp_create", "htp__connection__parser_8h.html#af87403d33d361ee... | onosfw/apis | suricata/apis/htp__connection__parser_8h.js | JavaScript | apache-2.0 | 1,861 |
// Copyright 2005 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 ... | jijeshmohan/webdriver-rb | third_party/goog/events/listener.js | JavaScript | apache-2.0 | 4,687 |
/*!
* ${copyright}
*/
// Provides the Design Time Metadata for the sap.m.CustomListItem control
sap.ui.define([],
function() {
"use strict";
return {
aggregations: {
content: {
domRef: ":sap-domref > .sapMLIBContent",
actions: {
move: "moveControls"
}
}
}
};
}); | SAP/openui5 | src/sap.m/src/sap/m/designtime/CustomListItem.designtime.js | JavaScript | apache-2.0 | 298 |
/**
* @license 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 law or a... | deepanjanroy/lighthouse | lighthouse-core/audits/accessibility/axe-audit.js | JavaScript | apache-2.0 | 3,094 |
import GameService from './game';
describe.only('GameService', () => {
let sandbox;
let httpMock;
let instance;
const dummyData = {
status: 200,
data: [
{name: 'word1'},
{name: 'word2'},
{name: 'word3'},
]
};
const parsedData = [
{word: 'word1', scrambledWord: '1drow', ma... | basiloungas/word-game | client/app/services/game/game.spec.js | JavaScript | apache-2.0 | 3,195 |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = childrenHavePropXorChildren;
var _react = _interopRequireDefault(require("react"));
var _wrapValidator = _interopRequireDefault(require("./helpers/wrapValidator"));
function _interopRequireDefault(obj) { return obj &... | GoogleCloudPlatform/prometheus-engine | third_party/prometheus_ui/base/web/ui/react-app/node_modules/airbnb-prop-types/build/childrenHavePropXorChildren.js | JavaScript | apache-2.0 | 2,054 |
module.exports = require("./privatePrefix") + "parent";
| Netflix/falcor | lib/internal/parent.js | JavaScript | apache-2.0 | 56 |
// Copyright 2020 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-firestore | samples/test/limit-to-last-query.test.js | JavaScript | apache-2.0 | 1,629 |
// DETECT DEVICE AND DIMENSIONS ================================
var osname = Ti.Platform.osname,
version = Ti.Platform.version,
height = Ti.Platform.displayCaps.platformHeight,
width = Ti.Platform.displayCaps.platformWidth;
// =============================================================
function... | adomkawle/HIN_mash | Resources/config/cfg_globals.js | JavaScript | apache-2.0 | 2,932 |
define([
'chai',
'meridian-config',
'aura/aura',
'mocha'
], function(chai, configuration, Aura) {
var expect = chai.expect;
//start your test here.
//mocha needs to see describe globally. If you try putting it in a function, it wont excecute. (Unless my test wasn't good.)
describe('View... | ozone-development/meridian | app/modes/mocha/view-tests.js | JavaScript | apache-2.0 | 35,689 |
(function($) {
var isBuilder = $('html').hasClass('is-builder');
$.extend($.easing, {
easeInOutCubic: function(x, t, b, c, d) {
if ((t /= d / 2) < 1) return c / 2 * t * t * t + b;
return c / 2 * ((t -= 2) * t * t + 2) + b;
}
});
$.fn.outerFind = function(select... | cosacalo/website | assets/theme/js/script.js | JavaScript | apache-2.0 | 41,510 |
/*************************************************************
*
* MathJax/jax/output/SVG/fonts/Latin-Modern/fontdata-extra.js
*
* Adds extra stretchy characters to the Latin-Modern fonts
* Copyright (c) 2013-2018 The MathJax Consortium
*
* Licensed under the Apache License, Version 2.0 (the "License");
... | GerHobbelt/MathJax | unpacked/jax/output/SVG/fonts/Latin-Modern/fontdata-extra.js | JavaScript | apache-2.0 | 21,204 |
// 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-resource-manager | samples/generated/v3/tag_values.update_tag_value.js | JavaScript | apache-2.0 | 2,293 |
/**
* Created with IntelliJ IDEA.
* User: Todd Kerpelman
* Date: 9/28/12
* Time: 11:20 AM
*
* Copyright 2012 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 Li... | JeffRisberg/GG01 | js/achievementTable.js | JavaScript | apache-2.0 | 3,080 |
/*jshint globalstrict:false, strict:false, maxlen: 500 */
/*global assertEqual, assertNotEqual, assertTrue, AQL_EXPLAIN, AQL_EXECUTE */
////////////////////////////////////////////////////////////////////////////////
/// @brief tests for optimizer rules
///
/// @file
///
/// DISCLAIMER
///
/// Copyright 2010-2012 tria... | m0ppers/arangodb | js/server/tests/aql/aql-optimizer-rule-remove-filter-covered-by-index.js | JavaScript | apache-2.0 | 16,496 |
import { expect } from "chai";
import * as parser from "./ast-parser";
import * as SandBoxr from "../dist/sandboxr";
describe("API", () => {
it("should allow a variable to be defined", () => {
let env = SandBoxr.createEnvironment();
env.init();
let a = env.createVariable("a");
a.setValue(env.objectF... | jrsearles/SandBoxr | test/api.tests.js | JavaScript | apache-2.0 | 6,202 |
/**
* Copyright 2015 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... | ofrobots/cloud-trace-nodejs | test/standalone/test-ignore-url-express.js | JavaScript | apache-2.0 | 1,442 |
/*
* The main class: Type
*/
var Type = function(){
this.author = {
name: 'nighca',
email: 'nighca@live.cn'
};
}; | nighca/type | src/type.js | JavaScript | apache-2.0 | 139 |
import {
beforeEach,
describe,
it,
} from '@bigtest/mocha';
import { expect } from 'chai';
import setupApplication from '../helpers/setup-application';
import OpenLoansInteractor from '../interactors/open-loans';
import LoanActionsHistory from '../interactors/loan-actions-history';
describe('Renew loan', () => ... | folio-org/ui-users | test/bigtest/tests/open-loan-renew-test.js | JavaScript | apache-2.0 | 7,206 |
function getPx(s,Attr) {
if (s[s.length-1]=="%"){
return parseInt(d3.select("body").style(Attr)) * (parseFloat(s)/100)
} else {
return parseInt(s)
}
}
function autoComplete(s,array) {
res=[];
if (s=="") {
return res;
}
for (var i in array) {
if (array[i].toUpperCase().indexOf(s.toUpperCase())==0) {
... | VanBronckhorst/VizProject3 | app/js/AutoCompleteBox.js | JavaScript | apache-2.0 | 2,905 |
// 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, software
// distributed un... | popojargo/couchdb-fauxton | app/addons/documents/tests/nightwatch/tableView.js | JavaScript | apache-2.0 | 2,788 |
var phrases;
exports.connect = function(){
phrases = require('./ru');
};
exports.getPhrase = function (name) {
if (!phrases[name]){
throw new Error("Нет такой фразы: " + name);
}
return phrases[name];
}; | Sakardin/Selenium_Traning | NodeJS-Selenium/NodeJS/db/index.js | JavaScript | apache-2.0 | 242 |
(function($, window, document, undefined) {
var availableTags = new Array();
var lastSelected = "";
var lastSelectedColor = "";
var languagesTemp;
var moreInfoTemp;
var $attribute_s;
var search_type = "search_image.php";
var $button_1 = "";
var $button_2 = "";
var $button_3 = "";
var $button_4 = "";
var $button_5 = ""... | look234/TGCDT | main.js | JavaScript | artistic-2.0 | 19,597 |
/*
* Copyright 2012-2015 Thomas Greiner <https://www.greinr.com>
*
* The contents of this file are subject to the Artistic License 2.0.
* The full text can be found in the LICENSE.txt file and at
* http://www.opensource.org/licenses/artistic-license-2.0
*/
chrome.modules["header"] = function() {
var gui = req... | ThomasGreiner/hypercube | chrome/js/modules/header.js | JavaScript | artistic-2.0 | 1,094 |
var searchData=
[
['ticadd',['TicAdd',['../classHPTimer_1_1HighPerTimer.html#abf1338601f0d4e13cf5c94a1f60805d4',1,'HPTimer::HighPerTimer']]],
['ticssleep',['TicsSleep',['../classHPTimer_1_1HighPerTimer.html#a4b2829e9e876e0f1b3f6373347178139',1,'HPTimer::HighPerTimer']]],
['ticsub',['TicSub',['../classHPTimer_1_1H... | ifedotova/highpertimer | doc/html/search/all_a.js | JavaScript | artistic-2.0 | 730 |
var postcss = function(){
return require('poststylus');
}
module.exports = function(grunt) {
grunt.initConfig({
stylus: {
compile: {
options: {
use: [postcss]
},
src: ['css/styles.styl'],
dest: 'css/styles... | cellebrek/resume-simple | Gruntfile.js | JavaScript | artistic-2.0 | 1,001 |
// Copyright (c) 2013, Benjamin J. Kelly ("Author")
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice, this
// l... | wanderview/node-netbios-name-service | test/test-hybrid.js | JavaScript | bsd-2-clause | 1,701 |
// This file was procedurally generated from the following sources:
// - src/annex-b-fns/eval-global-existing-var-update.case
// - src/annex-b-fns/eval-global/indirect-if-decl-else-decl-b.template
/*---
description: Variable-scoped binding is updated following evaluation (IfStatement with a declaration in both statemen... | sebastienros/jint | Jint.Tests.Test262/test/annexB/language/eval-code/indirect/global-if-decl-else-decl-b-eval-global-existing-var-update.js | JavaScript | bsd-2-clause | 1,784 |
'use strict';
import { ADD_ISSUE_SUCCESS, GET_ISSUES_SUCCESS, REMOVE_ISSUE_SUCCESS } from '../actions/issues';
//make an error state handler
export default function issues(state = [], action) {
switch(action.type) {
case ADD_ISSUE_SUCCESS:
case GET_ISSUES_SUCCESS:
return action.issues;
case REMOVE... | TeamMartinez/YOLO-Client | app/js/reducers/issues.js | JavaScript | bsd-2-clause | 375 |
// This file was procedurally generated from the following sources:
// - src/dstr-binding/obj-ptrn-prop-id-init.case
// - src/dstr-binding/default/gen-func-expr-dflt.template
/*---
description: Binding as specified via property name, identifier, and initializer (generator function expression (default parameter))
esid: ... | sebastienros/jint | Jint.Tests.Test262/test/language/expressions/generators/dstr-dflt-obj-ptrn-prop-id-init.js | JavaScript | bsd-2-clause | 1,843 |
'use strict';
// Module dependencies.
var express = require('express'),
path = require('path'),
fs = require('fs'),
methodOverride = require('method-override'),
morgan = require('morgan'),
bodyParser = require('body-parser'),
errorhandler = require('errorhandler');
var app = module.exports = e... | omar2000ye/serverSideAdverts | app.js | JavaScript | bsd-2-clause | 1,966 |
/**
* Analyzes images and detects which one can be lazy-loaded (are below the fold)
*
* @see https://github.com/macbre/phantomas/issues/494
*/
/* global document: true, window: true */
'use strict';
exports.version = '1.0';
exports.module = function(phantomas) {
phantomas.setMetric('lazyLoadableImagesBelowTheFol... | ingoclaro/phantomas | modules/lazyLoadableImages/lazyLoadableImages.js | JavaScript | bsd-2-clause | 2,368 |
// This file was procedurally generated from the following sources:
// - src/class-fields/init-err-contains-arguments.case
// - src/class-fields/initializer-error/cls-decl-fields-private-name.template
/*---
description: Syntax error if `arguments` used in class field (ClassElementName PrivateName)
esid: sec-class-defin... | sebastienros/jint | Jint.Tests.Test262/test/language/statements/class/fields-private-literal-name-init-err-contains-arguments.js | JavaScript | bsd-2-clause | 1,062 |
import { Menu, NewColor, Colors } from './containers'
const App = () =>
<div className="app">
<Menu />
<NewColor />
<Colors />
</div>
export default App | sharkspeed/dororis | documents/react-course/src/chapter9/demo3/src/components/App.js | JavaScript | bsd-2-clause | 190 |
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { mapDispatchToProps, mapStateToProps } from './kontrahentContainer';
import { length, minmax, notEmpty } from '../../validator';
import Error from './Error';
import ListaTelefonow from './ListaTelefonow';
con... | freoff/zlecenia | src/components/NowyKontrahent/KontrahentForm.js | JavaScript | bsd-2-clause | 2,189 |
// Word cloud layout by Jason Davies, http://www.jasondavies.com/word-cloud/
// Algorithm due to Jonathan Feinberg, http://static.mrfeinberg.com/bv_ch03.pdf
(function() {
if (typeof define === "function" && define.amd) define(["d3"], cloud);
else cloud(this.d3);
function cloud(d3) {
d3.layout.cloud = function cloud... | uwgraphics/SerendipSlim | static/js/d3.layout.cloud.js | JavaScript | bsd-2-clause | 11,092 |
/**
* @file This is my cool script.
* @copyright Michael Mathews 2011
*/
| brunotavares/nano | example/src/tags-copyright.js | JavaScript | bsd-2-clause | 76 |
thinktectureIdentityModel.BrokeredAuthentication = function (stsEndpointAddress, scope) {
that = this;
that.stsEndpointAddress = stsEndpointAddress;
that.scope = scope;
};
thinktectureIdentityModel.BrokeredAuthentication.prototype = function () {
requestIdpToken = function (un, pw, callback) {
... | IdentityModel/Thinktecture.IdentityModel.40 | Samples/Web API/Clients/JavaScriptClients/scripts/brokeredAuthentication.js | JavaScript | bsd-3-clause | 1,157 |
(function () {
'use strict';
angular.module('motech-admin')
.controller('BundlesListController', bundlesListController);
bundlesListController.$inject = ['$scope', '$rootScope', '$state', '$http', 'BundlesFactory', 'LoadingModal', 'ServerService'];
function bundlesListController ($scope, $root... | motech/motech-ui | src/admin/bundles/bundles-list.controller.js | JavaScript | bsd-3-clause | 2,697 |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* @name: S15.3.2.1_A3_T12;
* @section: 15.3.2.1, 13.2;
* @assertion: When the Function constructor is called with arguments p, body the following steps are taken:
* i) Let Result(i) b... | luboid/ES5.Script | TestScripts/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.3_Function_Objects/15.3.2_The_Function_Constructor/S15.3.2.1_A3_T12.js | JavaScript | bsd-3-clause | 1,406 |
(function ($) {
"use strict";
var venueAddress = "Lungomare Guglielmo Marconi, 30, 30126 Lido di Venezia - Venice, Italy", // Venue Address
eventInfo = ["Venice, Italy", "29 October 2017"]; // Event Info
var fn = {
// Launch Functions
Launch: function () {
fn.GoogleMap... | MVR3D/mvr3d.github.io | js/main.js | JavaScript | bsd-3-clause | 10,425 |
var searchData=
[
['mapping',['mapping',['../class_group_sub_model.html#afcb5cb7c419fb82f29be03122b45d8c0',1,'GroupSubModel']]],
['maprowtobasemodel',['mapRowToBaseModel',['../class_group_sub_model.html#aa4c590326b2eb92b7f3b8ae00c09e304',1,'GroupSubModel']]],
['modelabouttobereset',['modelAboutToBeReset',['../cla... | pile-contributors/pile-contributors.github.io | docpiles/grouplistwidget/html/search/all_8.js | JavaScript | bsd-3-clause | 567 |
var qs = require('querystring');
var url = require('url');
var Message = function(request, body) {
var query = url.parse(request.url, true).query;
this.body = body;
this.projectName = query.projectName;
this.logLevel = query.level;
}
module.exports = Message;
| ngs-doo/dsl-logging-server | message.js | JavaScript | bsd-3-clause | 267 |
var dotty = require("./lib/index");
var object = {
a: {
b: {
x: "y",
},
c: {
x: "z",
},
},
};
console.log(dotty.exists(object, "a.b.x")); // true
console.log(dotty.exists(object, ["a", "b", "x"])); // true
console.log(dotty.exists(object, "a.b.z")); // false
console.log(dotty.exists(ob... | deoxxa/dotty | example.js | JavaScript | bsd-3-clause | 1,731 |
/**
* Copyright (c) 2016, 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/subjects/get.js
*/
'use strict';
const supertest = require('sup... | salesforce/refocus | tests/api/v1/subjects/get.js | JavaScript | bsd-3-clause | 12,966 |
(function(ns){
ns.Security = {};
ns.Security.BYTE_LENGTH = 8;
/**
* @var Security.Bytemap bytemap
* @var integer length
* @return Security.Bytemap
*/
ns.Security.random = function(bytemap, length) {
for (var i = 0; i < length; i++) {
bytemap.set(i, Math.floor(Ma... | gplanchat/one.platform | public/js/security.js | JavaScript | bsd-3-clause | 16,356 |
/*
* Async Treeview 0.1 - Lazy-loading extension for Treeview
*
* http://bassistance.de/jquery-plugins/jquery-plugin-treeview/
*
* Copyright (c) 2007 Jörn Zaefferer
*
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses... | nyeholt/relapse | resources/jquery-treeview/jquery.treeview.async.js | JavaScript | bsd-3-clause | 2,054 |
var template = `
<div id="<%= migration.id %>" class="row <%= type == 'remove' ? 'migration-card-remove' : '' %> <%= type == 'add' ? 'migration-card-add' : '' %>">
<div class="col-xs-12 migration-card">
<div class="card">
<div class="row">
<div class="col-xs-12 col-sm-4 col-md-3">
<div cla... | Style87/nightingale | src/templates/MigrationCardTemplate.js | JavaScript | bsd-3-clause | 1,243 |
var cdb = require('cartodb.js-v3');
var CreateHeader = require('./create_header');
var CreateFooter = require('./create_footer');
var CreateListing = require('./create_listing');
var CreateLoading = require('./create_loading');
var NavigationView = require('./listing/navigation_view');
/**
* Create content view
*
... | codeandtheory/cartodb | lib/assets/javascripts/cartodb/common/dialogs/create/create_content.js | JavaScript | bsd-3-clause | 3,622 |
/*!
* @author: Divio AG
* @copyright: http://www.divio.ch
*/
'use strict';
/* global describe, it, browser, By, expect */
// #############################################################################
// INTEGRATION TEST
var newsBlogPage = require('../pages/page.newsblog.crud.js');
var cmsProtractorHelper = r... | czpython/aldryn-newsblog | aldryn_newsblog/tests/frontend/integration/specs/spec.newsblog.crud.js | JavaScript | bsd-3-clause | 12,265 |
var RSVP = require('rsvp');
module.exports = {
normalizeEntityName: function() {},
afterInstall: function() {
return RSVP.all([
this.addAddonToProject('ember-lodash', '0.0.5'),
this.addAddonToProject('ember-moment', '3.2.1')
]);
}
};
| mike-north/ember-cp-validations | blueprints/ember-cp-validations/index.js | JavaScript | bsd-3-clause | 262 |
"use strict";
const path = require("path"),
ETag = require(path.join(__dirname, "lib", "etag.js"));
function factory ({cacheSize = 1e3, cacheTTL = 0, seed = null, mimetype = "text/plain"} = {}) {
const obj = new ETag(cacheSize, cacheTTL, seed !== null ? seed : Math.floor(Math.random() * cacheSize) + 1, mimetype);
... | avoidwork/tiny-etag | index.js | JavaScript | bsd-3-clause | 407 |
jQuery(document).ready(function(){
module("TiddlerFields");
test("getValue", function() {
var val = store.getValue("testTiddler2","fieldvalue");
var val2 = store.getValue("testTiddler2","modified");
var val3 = store.getValue("testTiddler2","tags");
var val4 = store.getValue("testTiddler2","::slice");
var ... | TeravoxelTwoPhotonTomography/nd | doc/node_modules/tiddlywiki/editions/tw2/source/tiddlywiki/test/js/TiddlerFields.js | JavaScript | bsd-3-clause | 807 |
angular.module('os.administrative.user.detail', ['os.administrative.models'])
.controller('UserDetailCtrl', function(
$scope, $q, $translate, $state, $stateParams, user,
User, AuthDomain, AuthService, PvManager, Alerts, DeleteUtil, Util, VueApp) {
function init() {
if (!$stateParams.old || $stateP... | krishagni/openspecimen | www/app/modules/administrative/user/detail.js | JavaScript | bsd-3-clause | 2,156 |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _assign;
function _load_assign() {
return _assign = _interopRequireDefault(require('babel-runtime/core-js/object/assign'));
}
var _keys;
function _load_keys() {
return _keys = _interopRequireDefault(require('babel-runtime/core-j... | fulcrumapp/fulcrum-desktop | resources/yarn/yarn/lib-legacy/resolvers/registries/npm-resolver.js | JavaScript | bsd-3-clause | 7,963 |
function successCB() {
console.log("tuning is successful");
}
function errorCB(error) {
console.log(error.name);
}
try {
var dict = {
ptc: 9,
major: 9,
minor: 0,
sourceID : 9,
programNumber: 9,
transportStreamID : 90,
tunecallback: {
onsuccess: function(programList) { c... | daejunpark/jsaf | tests/tvch_tests/tvch11.js | JavaScript | bsd-3-clause | 589 |
var VERSION = '2.1.64';
var map = {};
self.addEventListener('install', function (e) {
e.waitUntil(self.skipWaiting());
});
self.addEventListener('activate', function (e) {
e.waitUntil(self.clients.claim());
});
self.addEventListener('message', function (e) {
switch (e.data.operation) {
case 'reco... | studease/playease | example/js/sw.js | JavaScript | bsd-3-clause | 3,034 |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
function abrirDisfarce() {
$('#disfarce').show();
}
function fecharDisfarce() {
$('#disfarce').hide();
}
$(function(){
});
... | luizrjunior/ClubeLuxuria | public/js/application/index/cabecalho.js | JavaScript | bsd-3-clause | 326 |
import * as types from '../types';
export function fetchStreamerRequest(payload){
return {
type: types.FETCH_STREAMER_REQUEST,
payload
}
}
export function fetchStreamerSuccess(payload){
return {
type: types.FETCH_STREAMER_SUCCESS,
payload
}
}
export function fetchStreamerFailure(payload){
r... | vFujin/HearthLounge | src/redux/streams/streamer/actions.js | JavaScript | bsd-3-clause | 482 |
import assert from "assert";
import {quadtree} from "../src/index.js";
it("quadtree() creates an empty quadtree", () => {
const q = quadtree();
assert(q instanceof quadtree);
assert.strictEqual(q.visit(function() { throw new Error; }), q);
assert.strictEqual(q.size(), 0);
assert.strictEqual(q.extent(), undef... | d3/d3-quadtree | test/quadtree-test.js | JavaScript | bsd-3-clause | 956 |
var gulp = require('gulp');
var uglify = require('gulp-uglify');
var rename = require('gulp-rename');
var clean = require('gulp-clean');
var livereload = require('gulp-livereload');
var serve = require('gulp-serve');
var streamify = require('gulp-streamify');
var source = require('vinyl-source-stream');
var browserify... | gsi-upm/Sefarad-2.0 | web/bower_components/data-table/gulpfile.js | JavaScript | bsd-3-clause | 1,260 |
/**
* Copyright (c) 2014-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
*/
i... | skovhus/jest | packages/jest-runtime/src/should_instrument.js | JavaScript | bsd-3-clause | 1,782 |
Ext.define('Vegi.view.production.production.AddViewController', {
extend: 'Ext.app.ViewController',
alias: 'controller.productionproductionadd',
onComposeDiscardClick: function(bt) {
var win = bt.up('window');
if (win) {
win.close();
}
},
onSaveButtonClick: func... | hwaqar44/vegi | public/vegi/classic/src/view/production/production/AddViewController.js | JavaScript | bsd-3-clause | 1,938 |
// FunctionsRouter.js
var express = require('express'),
Parse = require('parse/node').Parse,
triggers = require('../triggers');
import PromiseRouter from '../PromiseRouter';
import { promiseEnforceMasterKeyAccess } from '../middlewares';
import { jobStatusHandler } from '../StatusHandler';
import _ from 'loda... | themungapp/themungapp | src/Routers/FunctionsRouter.js | JavaScript | bsd-3-clause | 5,420 |
import Ember from 'ember';
import ResizeAware from 'ember-resize/mixins/resize-aware';
import KeyboardShortcuts from 'ember-keyboard-shortcuts/mixins/component';
export default Ember.Component.extend(ResizeAware, KeyboardShortcuts, {
filters: Ember.inject.service('item-filters'),
events: Ember.inject.service('even... | fcapovilla/exagg | client/app/components/item-list.js | JavaScript | bsd-3-clause | 3,412 |
/* global angular, moment, dhis2 */
'use strict';
/* Services */
var trackerCaptureServices = angular.module('trackerCaptureServices', ['ngResource'])
.factory('TCStorageService', function(){
var store = new dhis2.storage.Store({
name: "dhis2tc",
adapters: [dhis2.storage.IndexedDBAdap... | kakada/dhis2 | dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/scripts/services.js | JavaScript | bsd-3-clause | 67,276 |
/**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow strict
*/
import inspect from '../jsutils/inspect';
import { Kind } from '../language/kinds';
import type {
NamedTypeNode,
... | enaqx/graphql-js | src/utilities/typeFromAST.js | JavaScript | bsd-3-clause | 1,969 |
var searchData=
[
['param_5fcontrol_5fmode',['PARAM_CONTROL_MODE',['../commands_8h.html#a0f1ee428e49fc602d6fde71d7ff80f36aad84d584a61a3575db214d10d9bb6cb0',1,'commands.h']]],
['param_5fcurrent_5flimit',['PARAM_CURRENT_LIMIT',['../commands_8h.html#a0f1ee428e49fc602d6fde71d7ff80f36a079999b78cd63f61764700fad99990de',1... | NMMI/SoftHand | docs/html/search/enumvalues_4.js | JavaScript | bsd-3-clause | 4,047 |
findSamplesInExp = function (eid) {
var sids = Experiments.findOne(eid).samples;
return Samples.find({_id: {$in: sids}}).fetch();
};
findProtocolSamplesInExp = function (eid) {
var sids = Experiments.findOne(eid).protocol.samples;
return Samples.find({_id: {$in: sids}}).fetch();
};
//
// Functions for... | hirokai/Labnotebook | model.js | JavaScript | bsd-3-clause | 25,232 |
const pathModule = require('path');
const expect = require('../../unexpected-with-plugins');
const AssetGraph = require('../../../lib/AssetGraph');
describe('relations/SvgImage', function () {
it('should handle a test case with <image xlink:href=...> referencing an external file', async function () {
const asset... | assetgraph/assetgraph | test/relations/Svg/SvgImage.js | JavaScript | bsd-3-clause | 1,671 |
const parser = require("../main");
describe("bin", () => {
it("|", () => {
expect(parser.parseEval("$foo | $bar;")).toMatchSnapshot();
});
it("&", () => {
expect(parser.parseEval("$foo & $bar;")).toMatchSnapshot();
});
it("^", () => {
expect(parser.parseEval("$foo ^ $bar;")).toMatchSnapshot();
... | glayzzle/php-parser | test/snapshot/bin.test.js | JavaScript | bsd-3-clause | 4,302 |
/**
* @createTime 2014-12-20
* @author louis.tru <louistru@live.com>
* @copyright (C) 2011 louis.tru, http://mooogame.com
* @version 1.0
*/
include('teide/touch/file_content_view.js');
include('teide/touch/unknown_file_view.vx');
/**
* @class teide.touch.UnknownFileView
* @extends teide.touch.FileContentView
... | louis-tru/touch_code | client/teide/touch/unknown_file_view.js | JavaScript | bsd-3-clause | 740 |
/*
js/managers/user_signup.js
Author:
Date Added:
Page manager for the user signup process
*/
/**
zoto_user_signup_manager
*/
function zoto_user_signup_manager(options){
this.user_info = {};
this.user_info['hash'] = window.location.hash.replace('#','');//md5 flag for an invitation
// this.debugging = true; /... | kordless/zoto-server | aztk/web/js/managers/user_signup.js | JavaScript | bsd-3-clause | 4,920 |
define('dote-client/nls/viewSignup_sl',{
'dijit/form/nls/validate':{"invalidMessage":"Vnesena vrednost ni veljavna.","missingMessage":"Ta vrednost je zahtevana.","rangeMessage":"Ta vrednost je izven območja."}
}); | kitsonk/dote | lib/dote-client/nls/viewSignup_sl.js | JavaScript | bsd-3-clause | 214 |
angular.module('os.biospecimen.models.visit', ['os.common.models', 'os.biospecimen.models.form'])
.factory('Visit', function(osModel, $http, ApiUtil, CollectionProtocolEvent, Form) {
var Visit = osModel('visits');
function enrich(visits) {
angular.forEach(visits, function(visit) {
var actualSp... | asamgir/openspecimen | www/app/modules/biospecimen/models/visit.js | JavaScript | bsd-3-clause | 3,079 |
/**
* @copyright 2010-2017, The Titon Project
* @license http://opensource.org/licenses/BSD-3-Clause
* @link http://titon.io
*/
import { PropTypes } from 'react';
import Component from '../../Component';
import bind from '../../decorators/bind';
import debounce from '../../decorators/debounce';
import... | titon/toolkit | src/components/LazyLoad/LazyLoad.js | JavaScript | bsd-3-clause | 3,616 |
'use strict';
let AbstractManager = require('./abstract');
let Sql = require('mssql');
let Promise = require('bluebird');
let Parameter = AbstractManager.InputParameter;
class ReportingManager extends AbstractManager {
constructor(kind) {
super();
this.kind = kind;
}
get table() {
return `Term_C_${... | jbtc/iops-api-reporting | lib/managers/reporting.js | JavaScript | bsd-3-clause | 1,049 |
import {adjustSpatial} from './util';
import {stringValue} from 'vega-util';
function expression(ctx, args, code) {
// wrap code in return statement if expression does not terminate
if (!code.endsWith(';')) {
code = 'return(' + code + ');';
}
const fn = Function(...args.concat(code));
return ctx && ctx.f... | vega/vega | packages/vega-runtime/src/expression.js | JavaScript | bsd-3-clause | 2,625 |