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';
var angular = angular;
var module = angular.module('Authentication', []);
module.controller('RegistrationController', function ($scope, $rootScope, $state, AUTH_EVENTS, AuthService, URLS) {
$scope.credentials = {
firstName : '',
lastName : '',
username : '',
email : '',
password ... | rkdesign/cri-web | app/angular-constructs/authentication/Authentication.js | JavaScript | apache-2.0 | 12,327 |
/* dialog js
----------------------------------------------------------
@package: Zotonic 2009, 2012
@Author: Tim Benniks <tim@timbenniks.nl>
Copyright 2009 Tim Benniks
Copyright 2012 Arjan Scherpenisse
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except... | erlanger-ru/erlanger-ru.meta | modules/mod_base/lib/js/modules/z.dialog.js | JavaScript | apache-2.0 | 4,240 |
WebUtils.Models.QueryTable = Classify.newClass({
parent: WebUtils.Models.Table,
constructor: function(config) {
var self = this;
this.queryName = config.queryName;
this.schemaName = config.schemaName;
this.viewName = config.viewName || '';
var queryConfig = {};
... | WNPRC-EHR-Services/wnprc-modules | WebUtils/resources/web/webutils/models/QueryTable.js | JavaScript | apache-2.0 | 1,805 |
const { parseString } = require('xml2js');
const errors = require('../errors');
/*
Format of xml request:
<Retention>
<Mode>COMPLIANCE|GOVERNANCE</Mode>
<RetainUntilDate>2020-05-20T04:58:45.413000Z</RetainUntilDate>
</Retention>
*/
/**
* validateMode - validate retention mode
* @param {arra... | scality/Arsenal | lib/s3middleware/objectRetention.js | JavaScript | apache-2.0 | 4,908 |
OG.shape.Expander = function (label) {
OG.shape.Expander.superclass.call(this, 'tree/shape/expand.svg', label);
this.SHAPE_ID = 'OG.shape.Expander';
this.LABEL_EDITABLE = false;
this.label = label;
this.MOVABLE = false;
this.CONNECTABLE = false;
this.DELETABLE = false;
};
OG.shape.Expander.... | EXEM-OSS/flamingo | flamingo-opengraph/src/main/webapp/examples/tree/shape/Expander.js | JavaScript | apache-2.0 | 504 |
// 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-asset | samples/generated/v1p5beta1/asset_service.list_assets.js | JavaScript | apache-2.0 | 3,355 |
require(['jquery', 'knockout', 'formAlerts', 'cmsLayout', 'dataTable'], function ($, ko, formAlertsModule) {
function FolderViewModel() {
var self = this;
self.folderName = ko.observable();
self.orderNumber = ko.observable(0);
self.folderNameIsRequiredStyle = ko.computed(function (... | RadoslawOsinski/cwsfe_cms | cwsfe_cms_website/src/main/webapp/resources-cwsfe-cms/js/cms/folders/Folders.js | JavaScript | apache-2.0 | 3,810 |
/**
* @license
* Copyright The Closure Library Authors.
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @fileoverview Closure user agent detection.
* @see http://en.wikipedia.org/wiki/User_agent
* For more information on browser brand, platform, or device see the other
* sub-namespaces in goog.labs.userAgent (b... | GoogleChromeLabs/chromeos_smart_card_connector | third_party/closure-library/src/closure/goog/labs/useragent/engine.js | JavaScript | apache-2.0 | 4,432 |
/*jshint strict: false */
/*global require, TRANSACTION */
////////////////////////////////////////////////////////////////////////////////
/// @brief transaction actions
///
/// @file
///
/// DISCLAIMER
///
/// Copyright 2014 ArangoDB GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the ... | morsdatum/ArangoDB | js/actions/api-transaction.js | JavaScript | apache-2.0 | 10,360 |
import React from "react";
import { configure, shallow } from "enzyme";
import Adapter from "enzyme-adapter-react-16";
import LandingPage from "./LandingPage";
import LoginButtonSet from "../../components/UI/LoginButtonSet/LoginButtonSet";
configure({ adapter: new Adapter() });
describe("<LandingPage />", () => {
... | googleinterns/sgonks | project/frontend/src/containers/LandingPage/LandingPage.test.js | JavaScript | apache-2.0 | 1,164 |
// Copyright 2009 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/ui/charpicker.js | JavaScript | apache-2.0 | 24,534 |
/*
var arr = ['a', 'x', 'b', 'd', 'm', 'a', 'k', 'm', 'p', 'j', 'a'];
var obj = {}; //此对象中存放字符及其数量
//遍历数组arr,统计其中每个字符的数量
for (var i = 0; i < arr.length; i++) {
var arr1 = arr[i]; //arr1中包含了arr中所有字符
if (obj[arr1]) {
obj[arr1]++; //obj中有这个字符,就把其数量加1
} else {
obj[arr1] = 1; //如没有,这个字符的数量就等于1... | sccando/jike-sc | array/js/findNum.js | JavaScript | apache-2.0 | 1,649 |
/**
* Copyright (c) 2014-2017 Netflix, 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... | Netflix/msl | tests/src/main/javascript/userauth/MockEmailPasswordStore.js | JavaScript | apache-2.0 | 2,676 |
(function() {
'use strict';
angular
.module('argile')
.run(runBlock);
/** @ngInject */
function runBlock($log) {
$log.debug('runBlock end');
}
})();
| zacrahm/argile | src/app/index.run.js | JavaScript | apache-2.0 | 175 |
// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See http://js.arcgis.com/3.22/esri/copyright.txt for details.
//>>built
require({cache:{"url:esri/dijit/SizeInfoSlider/templates/SizeInfoSlider.html":'\x3cdiv class\x3d"${baseClass}"\x3e\r\n \x3cdiv data-dojo-attach-point\x3d"container... | wanglongbiao/webapp-tools | Highlander/ship-gis/src/main/webapp/js/arcgis_js_api/library/3.22/esri/dijit/SizeInfoSlider.js | JavaScript | apache-2.0 | 11,917 |
var classorg_1_1onosproject_1_1ovsdb_1_1rfc_1_1table_1_1Manager =
[
[ "ManagerColumn", "enumorg_1_1onosproject_1_1ovsdb_1_1rfc_1_1table_1_1Manager_1_1ManagerColumn.html", "enumorg_1_1onosproject_1_1ovsdb_1_1rfc_1_1table_1_1Manager_1_1ManagerColumn" ],
[ "Manager", "classorg_1_1onosproject_1_1ovsdb_1_1rfc_1_1tab... | onosfw/apis | onos/apis/classorg_1_1onosproject_1_1ovsdb_1_1rfc_1_1table_1_1Manager.js | JavaScript | apache-2.0 | 2,568 |
AngryCat = Backbone.Model.extend({
defaults: {
vote: 0
}
});
| gt3389b/simpleMarionetteMocha | assets/js/models/angrycat.js | JavaScript | apache-2.0 | 73 |
exports.up = function(knex, Promise) {
return knex.schema.createTable('projects', (table) => {
table.increments('id').primary()
table.string('name')
table.string('github_link')
table.string('deployment_link')
})
}
exports.down = function(knex, Promise) {
return knex.schema.dropTable('projects')
... | rene-justin-dado/rj-dev-back-end | migrations/20161013151729_projects.js | JavaScript | apache-2.0 | 322 |
(function() {
'use strict';
angular
.module('netdelsolutionApp')
.factory('LogsService', LogsService);
LogsService.$inject = ['$resource'];
function LogsService ($resource) {
var service = $resource('management/logs', {}, {
'findAll': { method: 'GET', isArray: true... | bhav0904/netDelSolution | src/main/webapp/app/admin/logs/logs.service.js | JavaScript | apache-2.0 | 416 |
/*!
* ${copyright}
*/
// Provides class sap.ui.model.odata.ODataListBinding
sap.ui.define([
'jquery.sap.global',
'sap/ui/model/ChangeReason', 'sap/ui/model/Filter', 'sap/ui/model/FilterType', 'sap/ui/model/ListBinding', 'sap/ui/model/Sorter',
'./ODataUtils', './CountMode'
], function(jQuery, ChangeReason, Fil... | cschuff/openui5 | src/sap.ui.core/src/sap/ui/model/odata/ODataListBinding.js | JavaScript | apache-2.0 | 30,323 |
/**
* This is the main module of the app. It provides some useful services and configures the modules.
*/
(function(ng, $) {
// dependcies to all other modules.
var module = ng.module("incomb", [
"pascalprecht.translate",
"ngTagsInput",
"infinite-scroll",
"angularMoment",
"errors",
"home",
"news",
"... | XMBomb/InComb | WebContent/js/incomb.js | JavaScript | apache-2.0 | 2,819 |
/**
* AlMighty page object example module for Fabric8 start page
* See: http://martinfowler.com/bliki/PageObject.html,
* https://www.thoughtworks.com/insights/blog/using-page-objects-overcome-protractors-shortcomings
* @author ldimaggi@redhat.com
*/
'use strict';
/*
* Fabric8 Start Page Definition
*/
let test... | pmuir/fabric8-planner | src/tests/work-item/work-item-list/page-objects/fabric8-start.page.js | JavaScript | apache-2.0 | 954 |
/// <reference path="Base.js" />
var Event = Base.inherit({
init: function () {
this.handlers = [];
},
subscribe: function (handler) {
this.handlers.push(handler);
},
trigger: function () {
var eventData = arguments;
this.handlers.forEach(function (... | andrewdavey/reference-application | App/Client/Shared/Event.js | JavaScript | apache-2.0 | 404 |
/**
* @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/stats/base/dists/rayleigh/logpdf/lib/logpdf.js | JavaScript | apache-2.0 | 2,003 |
"use strict";
/**
* dockerUtils.js - Common parts for dockerode
*
* Copyright (C) 2016 Anton Zagorskii aka amberovsky. All rights reserved. Contacts: <amberovsky@gmail.com>
*/
class DockerUtils {
/**
* @constructor
*/
constructor() {
this.Docker = require('dockerode');
};
/**
... | amberovsky/docker-blah | library/dockerUtils.js | JavaScript | apache-2.0 | 1,541 |
// component preview locators
const HELP_ICON_PREVIEW = 'a[data-component="help"]';
export default HELP_ICON_PREVIEW;
| Sage/carbon | cypress/locators/help/locators.js | JavaScript | apache-2.0 | 119 |
'use strict';
var _ = require('lodash');
var Poll = require('./poll.model');
// Get list of polls
exports.index = function(req, res) {
Poll.find(function (err, polls) {
if(err) { return handleError(res, err); }
return res.status(200).json(polls);
});
};
// Get a single poll
exports.show = function(req, r... | SBejga/ng-vote | server/api/poll/poll.controller.js | JavaScript | apache-2.0 | 2,827 |
import React, { Component, PropTypes } from 'react';
import ChooseOneOption from './ChooseOneOption';
import styles from '../../style/test.scss';
export default class ChooseOneTask extends Component {
static propTypes = {
prompt: PropTypes.string.isRequired,
options: PropTypes.array.isRequired,
correct... | alexeyryzhikov/kanjitesto | src/components/test/ChooseOneTask.js | JavaScript | apache-2.0 | 1,211 |
/**
* @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/blas/dswap/benchmark/benchmark.js | JavaScript | apache-2.0 | 2,111 |
var parser = require("biojs-io-xmfa");
var fastaParser = require("biojs-io-fasta");
var brewer = require("colorbrewer");
var d3 = require("d3");
var biojsvizxmfa;
module.exports = biojsvizxmfa = function(opts){
this.el = opts.el;
this.opts = {
"x_offset": 10,
"y_offset": 10,
"scale": 4,
"genome_s... | erasche/biojs-vis-xmfa | lib/index.js | JavaScript | apache-2.0 | 6,431 |
/*
* Copyright 2013 The Generic Skeleton Website
*
* The Generic Skeleton Website Project licenses this file to you 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.... | sohailalam2/Generic-Skeleton-Website | CLIENT/libraries/jquery/jquery.mobile.js | JavaScript | apache-2.0 | 484,125 |
/**
* Tiny, modular implementation of the CommonJS
* Modules/AsynchronousDefinition as described in
* http://wiki.commonjs.org/wiki/Modules/AsynchronousDefinition
*
* This extension provides the absolute minimum support necessary to use
* jQuery with tAMD.
*
* Copyright 2012-2013 Jive Software
*
* Licensed un... | jivesoftware/tAMD | src/jquery-minimal.js | JavaScript | apache-2.0 | 918 |
// Generated by CoffeeScript 1.3.3
(function() {
var KiiRequest, KiiUtilities, root, _Kii, _KiiSocialConnect,
__bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; },
__hasProp = {}.hasOwnProperty,
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.cal... | KiiCorp/HelloKii-JavaScript | KiiSDKv2.1.1.js | JavaScript | apache-2.0 | 154,833 |
/* React Tutorial Example
- Completed following the tutorial provided by Facebook and the React.js
documentation. Includes only the public javascript and not the server or json */
var data = [
{ id: 1, author: "Pete Hunt", text: "This is one comment." },
{ id: 2, author: "Jordan Walke", text: "This is *ano... | masharp/portfolio-apps | frameworks-and-databases/ReactExample/example.js | JavaScript | apache-2.0 | 4,724 |
/**
* Copyright (c) 2012-2017 Netflix, 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... | Netflix/msl | tests/src/test/javascript/entityauth/UnauthenticatedAuthenticationDataTest.js | JavaScript | apache-2.0 | 10,664 |
'use strict';
describe('Controller: Chapter13Ctrl', function () {
// load the controller's module
beforeEach(module('angularJsProApp'));
var Chapter13Ctrl,
scope;
// Initialize the controller and a mock scope
beforeEach(inject(function ($controller, $rootScope) {
scope = $rootScope.$new();
Cha... | johncol/proangularjs | test/spec/controllers/chapter13.js | JavaScript | apache-2.0 | 403 |
import PropTypes from 'prop-types';
import React from 'react';
import _ from 'lodash';
import $ from 'jquery';
export function trackPageView() {
if (!window.ga) return;
var current = location.protocol + '//' + location.hostname +
location.pathname + location.search;
if (current == trackPageView.... | fmfi-svt/votr | votrfront/js/router.js | JavaScript | apache-2.0 | 3,286 |
/*global QUnit*/
sap.ui.define([
"sap/ui/test/opaQunit",
"sap/ui/Device",
"./pages/Main"
// "./pages/App"
], function (opaTest, Device) {
"use strict";
var oPCIds = {
sCalendarId: "PlanningCalendar",
sFragmentId: "PlanningCalendar",
sSelectorId: "PlanningCalendarTeamSelector",
sLegendButtonId: "Plann... | SAP/openui5 | src/sap.m/test/sap/m/demokit/teamCalendar/webapp/test/integration/MainJourney.js | JavaScript | apache-2.0 | 3,309 |
/**
* Copyright 2018 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... | aghassemi/amphtml | extensions/amp-consent/0.1/amp-consent.js | JavaScript | apache-2.0 | 22,474 |
import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from 'containers/App';
import Home from 'containers/Home';
import Imprint from 'containers/Imprint';
import About from 'containers/About';
import Terms from 'containers/Terms';
import LoginPage from 'containers/Login';
import Logou... | iris-dni/iris-frontend | src/routers/client.js | JavaScript | apache-2.0 | 3,341 |
//
// Copyright (c) Microsoft Corporation. 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 a... | freedot/tstolua | src/services/shims.js | JavaScript | apache-2.0 | 31,251 |
/*--------------------------------------------------|
| dTree 2.05 | www.destroydrop.com/javascript/tree/ |
|---------------------------------------------------|
| Copyright (c) 2002-2003 Geir Landrö |
| |
| This script can be used freely as... | tomrose/singularity | component/admin/WebRoot/pragmatic-internals/js/tree/tree.js | JavaScript | apache-2.0 | 15,227 |
/*!
* reveal.js
* http://lab.hakim.se/reveal-js
* MIT licensed
*
* Copyright (C) 2017 Hakim El Hattab, http://hakim.se
*/
(function( root, factory ) {
if( typeof define === 'function' && define.amd ) {
// AMD. Register as an anonymous module.
define( function() {
root.Reveal = factory();
return root.Re... | PythonDayMX/taller_testing | docs/reveal/js/reveal.js | JavaScript | apache-2.0 | 145,168 |
import React from 'react';
import { Box, Text } from 'grommet';
import doc from 'grommet/components/Text/doc';
import Doc from '../components/Doc';
const desc = doc(Text).toJSON();
export default () => (
<Doc name='Text' desc={desc}>
<Box pad='large'>
<Text size='xsmall'>Text XSmall</Text>
<Text s... | grommet/next-sample | src/js/screens/Text.js | JavaScript | apache-2.0 | 612 |
import {ddescribe, describe, it, expect} from 'changular2/test_lib';
import {CONST} from './fixtures/annotations';
class Foo {
a;
b;
constructor(a, b) {
this.a = a;
this.b = b;
}
sum() {
return this.a + this.b;
}
}
class SubFoo extends Foo {
c;
constructor(a, b) {
this.c = 3;
su... | jasonjchang/changular | tools/transpiler/spec/classes_spec.js | JavaScript | apache-2.0 | 2,122 |
"use strict";
$.require([
'lib!console/core.js',
'lib!console/color/core.js'
], function(
console,
color
) {
/**
* Build all loggers from config
*/
var list = $.config.get('console.logger'), logOut = {}, addLog = function(name) {
var c = new console(name), f = function() {
... | Product-Live/Singularity | engine/core/lib/console.js | JavaScript | apache-2.0 | 920 |
eventsApp.factory('eventData', function($resource) {
var resource = $resource('/data/event/:id', {id:'@id'})
return {
getEvent: function(eventId) {
return resource.get({id:eventId});
},
save: function(event) {
event.id = 999;
return resource.save(event);
},
getAllEvents: function() {
return reso... | Straightly/DemoApp | app/js/services/EventData.js | JavaScript | apache-2.0 | 349 |
/*!
* SAP UI development toolkit for HTML5 (SAPUI5/OpenUI5)
* (c) Copyright 2009-2014 SAP AG or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
sap.ui.define(['jquery.sap.global', './Core'],
function(jQuery, Core) {
"use strict";
// keys for configuratio... | esjewett/tdcode-examples | lib/openUI5/resources/sap/ui/core/CustomizingConfiguration-dbg.js | JavaScript | apache-2.0 | 6,061 |
var chai = require('chai'),
expect = chai.expect;
import {default as React} from 'react';
import {default as i18n} from '../src/i18n';
let Application = React.createElement('div');
let props = {
messages : {
"Shared":{
"Save": "Save it!"
}
}
};
describe('internationalize', () => {
let ... | Brightspace/react-frau-intl | test/i18n.js | JavaScript | apache-2.0 | 1,341 |
/**
* @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/stats/base/dists/f/ctor/benchmark/benchmark.js | JavaScript | apache-2.0 | 7,441 |
/**
* checkArgs returns true when there is a matching signature.
* @param {Type} type object with type information.
* @param {Array<Argument>} args are the arguments passed into a function.
* @param {number} paramIndex index of the argument to be analyzed.
* @return {boolean} true if there is a signature that m... | airamrguez/cordova-plugin-realm | www/checkArgs.js | JavaScript | apache-2.0 | 1,655 |
/**
* 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... | chrisbrent/amphtml | src/runtime.js | JavaScript | apache-2.0 | 4,726 |
'use strict';
/**
* @license
* Copyright SOAJS All Rights Reserved.
*
* Use of this source code is governed by an Apache license that can be
* found in the LICENSE file at the root of this repository
*/
const lib = {
"mail": null,
"pin": require("../../lib/pin.js"),
"generateUsername": require("../.... | soajs/soajs.urac | bl/lib/addUser.js | JavaScript | apache-2.0 | 7,436 |
/**
* Copyright 2014 Scn Community Contributors
*
* Original Source Code Location:
* https://github.com/org-scn-design-studio-community/sdkpackage/
*
* 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 ... | bugodelnya/scn-sdk-package | src/org.scn.community.databound/res/HarveyBallMicroChart/HarveyBallMicroChartSpec.js | JavaScript | apache-2.0 | 11,827 |
$('#create-idea-tab').dblclick(function() {
var uid = $(this).closest('#expand-tab').attr('uid');
location.href = "Idea/Idea/ideaList/uid/" + uid + "/type/create";
});
| grey256/easyX | public/app/usercenter/js/member.js | JavaScript | apache-2.0 | 180 |
/**
* Copyright JS Foundation and other contributors, http://js.foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless r... | HiroyasuNishiyama/node-red | packages/node_modules/@node-red/editor-api/lib/auth/index.js | JavaScript | apache-2.0 | 7,962 |
export const mp4File = new File(
[
new Blob(
[
'\x00\x00\x00 ftypisom\x00\x00\x02\x00isomiso2avc1mp41\x00\x00\x00\bfree\x00\x00\x00\bmdat\x00\x00\x00Ömoov\x00\x00\x00lmvhd\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x03è\x00\x00\x00\x00\x00\x01\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00... | mnutt/davros | tests/fixtures/files.js | JavaScript | apache-2.0 | 899 |
(function () {
"use strict";
angular
.module("productManagement")
.controller("rptQuotationCtrl",
["$scope", "global", rptQuotationCtrl]);
function rptQuotationCtrl($scope, global) {
//Enable view essentials on load.
var setPreferences = {
... | sai-alladi/Chemlabs | Turnk/Src/Development/Code/QMS/QMS.Client/Views/Reports/reportQuotationCtrl.js | JavaScript | apache-2.0 | 463 |
/*
Copyright 2008-2009 University of Cambridge
Copyright 2008-2009 University of Toronto
Copyright 2007-2009 University of California, Berkeley
Licensed under the Educational Community License (ECL), Version 2.0 or the New
BSD license. You may not use this file except in compliance with one these
Licenses.
You may ob... | GIP-RECIA/esco-grouper-ui | metier/esco-web/src/web/webapp/media/js/fluid/components/inlineEdit/js/jquery.tinymce.js | JavaScript | apache-2.0 | 1,046 |
/**
* @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/utils/copy/lib/copy.js | JavaScript | apache-2.0 | 1,936 |
'use strict';
/** resource cache service, loads resources once and then provides cached version
* also allows refreshing specific resources */
angular.module('ngBlog.services').factory('resourceCache', ['$http', function ($http) {
var exports = {};
var cache = {};
var loadResource = function(url) {
... | matthiasn/ng-blog | src/js/services/resource-cache.js | JavaScript | apache-2.0 | 1,061 |
import Raw from './raw'
import React from 'react'
import ReactDOMServer from 'react-dom/server'
import cheerio from 'cheerio'
import typeOf from 'type-of'
import { Record } from 'immutable'
/**
* String.
*
* @type {String}
*/
const String = new Record({
kind: 'string',
text: ''
})
/**
* A rule to (de)seria... | standardhealth/flux | src/lib/slate/serializers/html.js | JavaScript | apache-2.0 | 7,378 |
'use strict';
(function () {
angular.module('main').filter('nl2br', [nl2brFilter]);
function nl2brFilter () {
return function (data) {
if (!data) { return data; }
return data.replace(/\n\r?/g, '<br />');
};
}
})();
| YouCCTech/skyapp | app/main/infra/nl2br.filter.js | JavaScript | apache-2.0 | 241 |
(function(global) {
'use strict';
global.BoardRenderer = (function() {
var service = {
render: render
};
return service;
/////////////////////////
function render(board) {
var canvas = document.getElementById('board');
var table = document.createElement('table');
var ... | damianfarina/GoL | app/scripts/board/board-renderer.js | JavaScript | apache-2.0 | 1,095 |
/**
* @fileOverview This test specs runs tests on the package.json file of repository. It has a set of strict tests on the
* content of the file as well. Any change to package.json must be accompanied by valid test case in this spec-sheet.
*/
var expect = require('expect.js');
/* global describe, it */
describe('re... | postmanlabs/env-lift | tests/unit/repository-spec.js | JavaScript | apache-2.0 | 5,529 |
/*!
* jQuery JavaScript Library v2.0.3
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2013-07-03T13:30Z
*/
(function( window, undefined ) {
// C... | mfit/PdfTableAnnotator | src/main/webapp/lib/jquery/jquery.js | JavaScript | apache-2.0 | 242,234 |
import debug from 'debug';
import React from 'react';
import classNames from 'classnames';
import { connect } from 'react-redux';
import { Map as makeMap } from 'immutable';
import { clickCloseDetails, clickShowTopologyForNode } from '../actions/app-actions';
import { brightenColor, getNeutralColor, getNodeColorDark }... | kinvolk/scope | client/app/scripts/components/node-details.js | JavaScript | apache-2.0 | 10,493 |
'use strict';
var mongoose = require('mongoose'),
Schema = mongoose.Schema;
var PrescriptionsSchema = new Schema({
date: { type: Date, default: Date.now } ,
med_dosage_list: [{ medicine: { type: mongoose.Schema.Types.ObjectId, ref: 'Medicine' }, dosage: 'String', howTo: 'String' }],
status: { type: 'St... | mexeniz/hellose-opd | models/model-prescriptions.js | JavaScript | apache-2.0 | 605 |
module.exports = [{"isId":true,"priority":100100.0104,"key":"winSetting","style":{backgroundColor:Alloy.Globals.ThemeStyles.win.backgroundColor,}}]; | sjfranzen/yurapp | Resources/android/alloy/styles/adrSetting.js | JavaScript | apache-2.0 | 148 |
sap.ui.define("fixture.ModuleWaiter", [
"sap/ui/test/autowaiter/WaiterBase"
], function (WaiterBase) {
"use strict";
var ModuleWaiter = WaiterBase.extend("fixture.ModuleWaiter");
return new ModuleWaiter();
});
| SAP/openui5 | src/sap.ui.core/test/sap/ui/core/qunit/opa/fixture/waiters.js | JavaScript | apache-2.0 | 215 |
/*
Copyright 2015 Stefano Terna
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
... | iottly/iottly-console | iottly_console/iottly_project/test/spec/directives/iottlytypeselector.js | JavaScript | apache-2.0 | 1,091 |
exports.up = function (db, cb) {
db.runSql(
`
INSERT INTO role_permission (role_id, permission_id, environment)
SELECT
(SELECT id as role_id from roles WHERE name = 'Owner' LIMIT 1),
p.id as permission_id,
e.name as environment
FROM permissions p
... | Unleash/unleash | src/migrations/20220103134659-add-permissions-to-project-roles.js | JavaScript | apache-2.0 | 1,153 |
({
setUp : function(component) {
var completed = false;
$A.storageService.getStorage("actions").clear()
.then(
function() { completed = true; },
function(err) { $A.test.fail("Test setUp() failed to clear storage: " + err);
});
$A.test.... | badlogicmanpreet/aura | aura-components/src/test/components/auraStorageTest/initTest/initTestTest.js | JavaScript | apache-2.0 | 56,275 |
export const createTestDB = `
-- USER
CREATE TABLE IF NOT EXISTS user_app
(
id serial NOT NULL,
user_name character varying(256),
street character varying(256),
street_number character varying(256),
zip_code character varying(5),
city character varying(256)... | innowatio/iwwa-lambda-interactions-rds | scripts/create-tables.js | JavaScript | apache-2.0 | 1,693 |
var mongo = require('mongoskin');
module.exports = mongo.db('localhost:27017/gtags?auto_reconnect');
| silkroad/gtags | src/db.js | JavaScript | apache-2.0 | 102 |
import React from 'react';
import ReactDOM from 'react-dom';
import ChatActions from '../events/chat-actions';
var $ = require('jquery');
var NewGroupDialog = React.createClass({
createGroup: function () {
var groupName = ReactDOM.findDOMNode(this.refs.groupName).value.trim();
if (groupName && !/\s... | JetChat/JetChat | public/javascripts/components/new-group-dialog.js | JavaScript | apache-2.0 | 1,676 |
'use strict';
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
concat: {
options: {
separator: ';\n'
},
distEpg: {
src: ['src/epg.js', 'src/ng-stay.js', 'src/calendar.js', 'src/search.js'],
dest: 'dist/js/<%= pkg.name %... | oakesville/mythling-epg | Gruntfile.js | JavaScript | apache-2.0 | 4,860 |
'use strict';
function SwaggerResolver() {
let fs = require('fs');
let YAML = require('js-yaml');
let resolve = require('json-refs').resolveRefs;
let self = {};
self.resolve = function(path, done) {
if(!fs.existsSync(path)) {
return done(null, {});
}
let options = {
location: path,
... | techops-peopledata/td.core | lib/swagger/swaggerResolver.js | JavaScript | apache-2.0 | 1,110 |
import {
details,
mergeInEmptyDraft,
defaultReactions,
} from "../detail-definitions.js";
import * as jsonLdUtils from "../../app/service/jsonld-utils.js";
import vocab from "../../app/service/vocab.js";
import { getIn } from "../../app/utils.js";
import { sparqlQuery } from "../../app/sparql-builder-utils.js";
i... | researchstudio-sat/webofneeds | webofneeds/won-owner-webapp/src/main/webapp/config/usecases/uc-goods-transport-offer.js | JavaScript | apache-2.0 | 3,892 |
$(document).ready(function()
{
setRequiredFields();
/* Enable default ajax options. */
$.setAjaxForm('#ajaxForm');
$.setAjaxDeleter('.deleter');
$.setReload('.reload');
$.setReloadDeleter('.reloadDeleter');
$.setAjaxLoader('.loadInModal', '#ajaxModal');
/* run code if desktop. */
... | leowh/colla | www/js/my.js | JavaScript | apache-2.0 | 5,007 |
import {connect} from 'react-redux';
import {bindActionCreators} from 'redux'
import page from './page'
import {fetchGraphData} from 'store/entities/hmqGraph/actions'
function mapStateToProps( state ) {
const {hmqGraph, hmqStatistic} = state
return {hmqGraph, hmqStatistic};
}
function mapDispatchToProps(dispatch... | humaniq/humaniq-pwa-website | src/components/pages/HmqHome/container.js | JavaScript | apache-2.0 | 481 |
function comment(avatar, nickname, msg, userid) {
var data;
if (CheckUser()) {
data = '<div class="comment">'
+ '<div class="col-lg-2 col-md-2 col-sm-2 col-xs-2">'
+ '<img src="' + avatar + '"> </div>'
+ '<div class="col-lg-2 col-md-2 col-sm-2 col-xs-2">'
... | yuban12315/LoveUniversity | js/service/details.js | JavaScript | apache-2.0 | 3,053 |
/*
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License")... | miracl/amcl | version3/js/fp.js | JavaScript | apache-2.0 | 14,959 |
/**
* Default client.
*/
module.exports = function (_) {
var xhrClient = require('./xhr')(_);
return function (request) {
return (request.client || xhrClient)(request);
};
};
| gefangshuai/WiseMenuFramework | server-platform-app/src/main/resources/public/js/plugins/vue-resource/src/client/default.js | JavaScript | apache-2.0 | 201 |
import $ from 'jquery'
export let coords = {
corner: null,
top: null,
left: null,
bottom: null,
right: null
}
/**
* init selector element
*/
export function initSelector(eBase) {
eBase.etable.selector.top = $("<div>").css({height: 2}).addClass("etable-selector2")
eBase.etable.selector.left =... | Rhocutan/etable | src/app/org/etable/modules/selector.js | JavaScript | apache-2.0 | 2,339 |
// 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/snanvarianceyc/benchmark_bundle.js | JavaScript | apache-2.0 | 1,011,466 |
/*
* This file is part of the \BlueLaTeX project.
*
* 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 l... | bluelatex/bluelatex-web | app/shared/entities/PermissionFacotry.js | JavaScript | apache-2.0 | 1,260 |
"use strict";
const getPaths = require("enhanced-resolve/lib/getPaths");
const forEachBail = require("enhanced-resolve/lib/forEachBail");
module.exports = class RailsEnginesPlugin {
constructor(source, target, engines, root) {
this.source = source;
this.target = target;
this.engines = engines;
this.... | ManageIQ/manageiq-ui-classic | config/webpack/RailsEnginesPlugin.js | JavaScript | apache-2.0 | 3,384 |
/* @flow */
import { Component } from 'react';
import Pagination from '../../../../../../library/Pagination';
import Table from '../../../../../../library/Table';
import { ThemeProvider } from '../../../../../../library/themes';
import DemoLayout from '../../../common/DemoLayout';
export const columns = [
{ content:... | mineral-ui/mineral-ui | src/website/app/demos/Pagination/Pagination/examples/rtl.js | JavaScript | apache-2.0 | 6,890 |
const express = require('express');
const http = require('http');
const path = require('path');
const errorHandler = require('./error-handler');
let app = express();
app.server = http.createServer(app);
app.use(errorHandler.logError);
app.use(errorHandler.sendError);
app.use(express.static(path.join(__dirname, '/.... | elklein96/spotify-dl | client/static/server.js | JavaScript | apache-2.0 | 581 |
// 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/exponential/median/benchmark_bundle.js | JavaScript | apache-2.0 | 883,740 |
OC.L10N.register(
"lib",
{
"Help" : "Hjelp",
"Personal" : "Personleg",
"Settings" : "Innstillingar",
"Users" : "Brukarar",
"Admin" : "Administrer",
"Unknown filetype" : "Ukjend filtype",
"Invalid image" : "Ugyldig bilete",
"today" : "i dag",
"yesterday" : "i går",
"_%n da... | kebenxiaoming/owncloudRedis | lib/l10n/nn_NO.js | JavaScript | apache-2.0 | 1,079 |
var assert = require('assert');
var H = require('../test_harness.js');
var cb = H.newClient();
describe('#get/set', function() {
it('should work in basic cases', function(done) {
var key = H.genKey("set");
cb.set(key, "bar", H.okCallback(function(firstresult){
// nothing broke
cb.set(key, "baz"... | couchbaselabs/expiry-notifier | node_modules/couchbase/test/get-set.js | JavaScript | apache-2.0 | 5,360 |
/a/lib/tsc.js --w
//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts]
export interface ITest {
title: string;
}
//// [/user/username/projects/myproject/lib1/tools/public.ts]
export * from "./tools.interface";
//// [/user/username/projects/myproject/app.ts]
import { Data } from "lib2/pub... | alexeagle/TypeScript | tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/updates-errors-when-file-transitively-exported-file-changes/when-there-are-no-circular-import-and-exports.js | JavaScript | apache-2.0 | 9,659 |
import React from 'react';
import ComponentItem from './component-item';
export default function(props) {
return (
<ul className="component-list">
{props.items.map(item => {
return (
<ComponentItem key={item.id} name={item.name} experience={item.experience}/>
);
})}
</... | dafobe/react-component-test | reactjs-component-test/app/components/views/component-list.js | JavaScript | apache-2.0 | 331 |
/**
* 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... | burtcorp/amphtml | test/functional/test-timer.js | JavaScript | apache-2.0 | 4,657 |
// 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/random/streams/poisson/benchmark_bundle.js | JavaScript | apache-2.0 | 1,047,804 |
/*global define*/
define([
'./Check',
'./Cartesian2',
'./defaultValue',
'./defined',
'./defineProperties',
'./Ellipsoid',
'./GeographicProjection',
'./Math',
'./Rectangle'
], function(
Check,
Cartesian2,
defaultValue,
... | omh1280/cesium | Source/Core/GeographicTilingScheme.js | JavaScript | apache-2.0 | 9,287 |
/**
* 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 appli... | google/chatbase-node | lib/MessageStateWrapper/errors.js | JavaScript | apache-2.0 | 3,638 |
/*
* Copyright 2019 ThoughtWorks, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | naveenbhaskar/gocd | server/webapp/WEB-INF/rails/webpack/single_page_apps/new_dashboard.js | JavaScript | apache-2.0 | 8,583 |