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 |
|---|---|---|---|---|---|
const log = require('app/lib/core/log')
module.exports = config => props => {
const [
pluginName,
pluginPath,
pluginExports
] = props
log.trace(`Initialzing includer: ${log.ul(pluginPath)}.`)
const exports = {}
exports.name = pluginExports.name || pluginName
exports.options = pluginExports.options
exp... | F1LT3R/markserv-cli | lib/plugin/includer.js | JavaScript | gpl-3.0 | 890 |
/**
* @author lnaef
*/
dojo.provide("cs.util.tests.controller.testModelController");
dojo.require("cs.controller.ModelController");
dojo.require("cs.util.tests.controller.testLibraryController");
doh.register("cs.util.tests.controller.testModelController", [
function constructorModelController(){
new c... | lnaef/ClickScript | cs/util/tests/controller/testModelController.js | JavaScript | gpl-3.0 | 3,185 |
/*
* See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* th... | tfe/cloud9 | support/apf/elements/textbox.js | JavaScript | gpl-3.0 | 27,330 |
import accounting from "accounting-js";
import _ from "lodash";
import { Meteor } from "meteor/meteor";
import $ from "jquery";
import { Template } from "meteor/templating";
import { ReactiveVar } from "meteor/reactive-var";
import { i18next, Logger, formatNumber, Reaction } from "/client/api";
import { NumericInput } ... | Sweetgrassbuffalo/ReactionSweeGrass-v2 | imports/plugins/core/orders/client/templates/workflow/shippingInvoice.js | JavaScript | gpl-3.0 | 17,911 |
import { Map, Set, OrderedSet, List } from 'immutable'
import * as constants from '../constants/files.js'
import { ls, searchFiles, rangeSelect } from '../sagas/helpers.js'
const initialState = Map({
files: List(),
workingDirectoryFiles: null,
searchResults: List(),
uploading: List(),
downloading: List(),
select... | patel344/Mr.Miner | Mr.Mining/MikeTheMiner/dist/Santas_helpers/Sia_wallet/resources/app/plugins/Files/js/reducers/files.js | JavaScript | gpl-3.0 | 4,745 |
'use strict';
/** @namespace chas2.test
* Тесты
*/
chas2.test = {
/** @namespace chas2.test._
* Функционал, используемый только внутри модуля chas2.test
* @private
*/
_ : {},
/** @function chas2.test.testTemplates
* Проверить шаблоны в текущем наборе
* @param {Number} triesCount кол-во прогонов каждог... | DrMGC/chas-ege | src/chas2/test.js | JavaScript | gpl-3.0 | 1,897 |
window.nomer=sl(1,4);
window.comment='Элементарные бытовые задачи.';
| DrMGC/chas-ege | zdn/mat2014gia/B9/main.js | JavaScript | gpl-3.0 | 94 |
'use strict';
// Gulp & plugins
var gulp = require('gulp');
var autoprefixer = require('gulp-autoprefixer');
var sass = require('gulp-sass');
// BrowerSync
var browserSync = require('browser-sync');
// Utilities
var handleErrors = require('../util/handleErrors');
// Configs
var config = require('../config').sass;
... | SteveTan86/react-app-starter | gulp/tasks/sass.js | JavaScript | gpl-3.0 | 609 |
$(document).ready(function(){$('.ajaxPopup, .ajax-form').on('click',function(a){a.preventDefault();$.ajax({url:$(this).attr('href'),context:document.body}).done(function(a){$(this).addClass("done");$('#ajaxPopup > div.content').html(a);$('#ajaxPopup').show();});});$('.closePopup').on('click',function(a){a.preventDefaul... | olymk2/maidstone-hackspace | website/static/js/default.js | JavaScript | gpl-3.0 | 415 |
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
(function (factory) {
if (typeof module === 'object' && ty... | kfrerichs/roleplay | node_modules/ionic-angular/umd/components/input/input-base.js | JavaScript | gpl-3.0 | 24,204 |
'use strict';
// Users service used for communicating with the users REST endpoint
angular.module('users').factory('Users', [
'$resource',
function ($resource) {
return $resource('users', {}, { update: { method: 'PUT' } });
}
]); | ogarling/targets-io | public/modules/users/services/users.client.service.js | JavaScript | gpl-3.0 | 239 |
"use strict";
tutao.provide('tutao.entity.sys.ChangePasswordData');
/**
* @constructor
* @param {Object=} data The json data to store in this entity.
*/
tutao.entity.sys.ChangePasswordData = function(data) {
if (data) {
this.updateData(data);
} else {
this.__format = "0";
this._code = null;
thi... | bartuspan/tutanota | web/js/generated/entity/sys/ChangePasswordData.js | JavaScript | gpl-3.0 | 5,572 |
import emotion from 'preact-emotion';
import remcalc from 'remcalc';
import { Category } from './service';
export const Place = emotion(Category)`
margin-bottom: ${remcalc(10)};
`;
export const Region = emotion('h6')`
margin: ${remcalc(6)} 0;
font-size: ${remcalc(13)};
line-height: ${remcalc(18)};
font-we... | geek/joyent-portal | packages/my-joy-navigation/src/components/datacenter.js | JavaScript | mpl-2.0 | 437 |
import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import EnemyInstances from 'parser/shared/modules/EnemyInstances';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/SpellLink';
import { formatPercentage } from 'common/format';
import Sta... | fyruna/WoWAnalyzer | src/parser/mage/frost/modules/features/WintersChill.js | JavaScript | agpl-3.0 | 6,255 |
#!/usr/bin/env node
'use strict';
/**
* Documents RPC Prototype
*
* - TIU CREATE RECORD (MAKE^TIUSRVP)
* - TIU UPDATE RECORD (UPDATE^TIUSRVP)
* - TIU DELETE RECORD (DELETE^TIUSRVP)
* - TIU SIGN RECORD
* ... and locks
* ... key file, TIUSRVP
*
* REM: HMP set
* "TIU AUTHORIZATION",
* "TIU CREATE ADDENDU... | vistadataproject/VDM | prototypes/tiuDocuments/rpcDocuments-spec.js | JavaScript | agpl-3.0 | 11,813 |
/*
* Copyright (C) 2017 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, version 3 of the License.
*
* Canvas is distribut... | djbender/canvas-lms | app/jsx/gradebook/default_gradebook/components/SubmissionTrayRadioInputGroup.js | JavaScript | agpl-3.0 | 3,563 |
// --
// Copyright (C) 2001-2016 OTRS AG, http://otrs.com/
// --
// This software comes with ABSOLUTELY NO WARRANTY. For details, see
// the enclosed file COPYING for license information (AGPL). If you
// did not receive this file, see http://www.gnu.org/licenses/agpl.txt.
// --
"use strict";
var Core = Core || {};
C... | nilei/otrs | var/httpd/htdocs/js/Core.UI.Datepicker.js | JavaScript | agpl-3.0 | 10,316 |
function initializeDataTable(formId, tableId, storageKey, pageNumber, itemsPerPage, ajaxUrl, columnDefs, extra){
let domTable = $('#' + tableId);
let options = {
'createdRow': function (row, data, dataIndex) {
let url = "";
if (data['osis_url']) {
url = data['osis... | uclouvain/OSIS-Louvain | base/static/js/osis_datatable.js | JavaScript | agpl-3.0 | 1,779 |
/*
* Thickbox 3.1 - One Box To Rule Them All.
* By Cody Lindley (http://www.codylindley.com)
* Copyright (c) 2007 cody lindley
* Licensed under the MIT License: http://www.opensource.org/licenses/mit-license.php
*/
var tb_pathToImage = "images/loadingAnimation.gif";
/*!!!!!!!!!!!!!!!!! edit below this line at... | manuchis/10.000-ideas | admin/js/jquery.thickbox.js | JavaScript | agpl-3.0 | 11,601 |
//
// Copyright (C) 2017 - present Instructure, Inc.
//
// This file is part of Canvas.
//
// Canvas is free software: you can redistribute it and/or modify it under
// the terms of the GNU Affero General Public License as published by the Free
// Software Foundation, version 3 of the License.
//
// Canvas is distribut... | djbender/canvas-lms | app/coffeescripts/behaviors/broken-images.js | JavaScript | agpl-3.0 | 1,809 |
// Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
// License: GNU General Public License v3. See license.txt
frappe.ui.form.on("Supplier", {
before_load: function(frm) {
frappe.setup_language_field(frm);
},
refresh: function(frm) {
if(frappe.defaults.get_default("supp_master_name")!="Naming ... | anandpdoshi/erpnext | erpnext/buying/doctype/supplier/supplier.js | JavaScript | agpl-3.0 | 1,029 |
/*
* Javascript terminal
*
* Copyright (c) 2011 Fabrice Bellard
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to us... | ubercomp/jslm32 | third_party/bellard/term.js | JavaScript | lgpl-2.1 | 18,674 |
YUI.add('event-simulate', function (Y, NAME) {
(function() {
/**
* Simulate user interaction by generating native DOM events.
*
* @module event-simulate
* @requires event
*/
//shortcuts
var L = Y.Lang,
isFunction = L.isFunction,
isString = L.isString,
isBoolean = L.isBoolean,
isObject ... | FuadEfendi/lpotal | tomcat-7.0.57/webapps/ROOT/html/js/aui/event-simulate/event-simulate.js | JavaScript | lgpl-2.1 | 37,238 |
var searchData=
[
['takeoff',['takeOff',['../class_flight_controller.html#a514f2619b98216e9fca0ad876d000966',1,'FlightController']]]
];
| cranktec/EasyCopter | documentation/html/search/functions_a.js | JavaScript | lgpl-2.1 | 138 |
"use strict";
var Activity = require("./activity");
var util = require("util");
function Falsy() {
Activity.call(this);
this.value = false;
this.is = true;
this.isNot = false;
}
util.inherits(Falsy, Activity);
Falsy.prototype.run = function (callContext, args) {
callContext.schedule(this.value,... | unbornchikken/workflow-4-node | lib/es5/activities/falsy.js | JavaScript | lgpl-3.0 | 823 |
var dir_68267d1309a1af8e8297ef4c3efbcdba =
[
[ "BeagleGoo.cpp", "_beagle_goo_8cpp.html", [
[ "BeagleGoo", "struct_beagle_goo.html", "struct_beagle_goo" ]
] ],
[ "BeagleGooP.cpp", "_beagle_goo_p_8cpp.html", "_beagle_goo_p_8cpp" ],
[ "GPIOoo.cpp", "_g_p_i_ooo_8cpp.html", null ],
[ "gpiotest.c", ... | piranha32/IOoo | doc/doxygen/html/dir_68267d1309a1af8e8297ef4c3efbcdba.js | JavaScript | lgpl-3.0 | 747 |
// These are concatenated md5 and sha1 fingerprints for the Firefox and
// Microsoft root CAs as of Aug 2010
var root_ca_hashes = {
'00531D1D7201D423C820D00B6088C5D143DDB1FFF3B49B73831407F6BC8B975023D07C50' : true,
'015A99C3D64FA94B3C3BB1A3AB274CBFFC219A76112F76C1C508833C9A2FA2BA84AC087A' : true,
'019408DE857F8D... | ahri/docker-private-browsing | browser/profile/extensions/https-everywhere@eff.org/chrome/content/code/Root-CAs.js | JavaScript | lgpl-3.0 | 29,290 |
//Sample code for SmartStore
// This file assumes that all of the javascript and css files required
// as well as the required DOM objects are specified in the index.html file.
var SAMPLE_SOUP_NAME = "myPeopleSoup";
var lastSoupCursor = null;
var sfSmartstore = cordova.require("salesforce/plugin/smartstore");
funct... | marcus-bessa/MobileCampaign | forcedroid/hybrid/SampleApps/SmartStoreExplorer/assets/www/smartstoreexplorer.js | JavaScript | unlicense | 13,221 |
;(function($){
/**
* jqGrid extension for manipulating Grid Data
* Tony Tomov tony@trirand.com
* http://trirand.com/blog/
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl-2.0.html
**/
//jsHint options
/*global alert, $, jQuery... | fdcmessenger/framework | sampleWebApp/src/main/webapp/scripts/jqgrid/src/grid.inlinedit.js | JavaScript | apache-2.0 | 19,833 |
/* Copyright 2012 Mozilla 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 required by applicable law or agreed ... | sergecodd/FireFox-OS | B2G/gaia/apps/email/js/ext/mailapi/activesync/protocollayer.js | JavaScript | apache-2.0 | 98,854 |
/**
* @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... | tkadlec/lighthouse | lighthouse-viewer/app/src/drag-and-drop.js | JavaScript | apache-2.0 | 2,079 |
import React from 'react';
import {Link} from 'react-router';
import '../../styles/about-page.css';
// Since this component is simple and static, there's no parent container for it.
const AboutPage = () => {
return (
<div>
<h2 className="alt-header">About</h2>
<p>
This example app is part of ... | Takaitra/RecipeRunt | web/src/components/pages/AboutPage.js | JavaScript | apache-2.0 | 574 |
/*global emp, cmapi */
// Register a channel handler for MAP_FEATURE_PLOT_URL.
cmapi.channel.handler[cmapi.channel.names.MAP_FEATURE_PLOT_URL] = {
// args will have a message and sender property
process: function (args) {
var featureTransaction,
mapServiceTransaction,
i,
len... | missioncommand/emp3-web | src/sdk/core/api/cmapi/channel/handler/map.feature.plot.url.js | JavaScript | apache-2.0 | 6,584 |
(function() {
function config($stateProvider, $locationProvider) {
$locationProvider
.html5Mode({
enabled: true,
requireBase: false
});
$stateProvider
.state('landing', {
url: '/',
controller: 'L... | smclaren727/bloc-chat | dist/scripts/app.js | JavaScript | apache-2.0 | 1,436 |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.DNSCache = exports.DNS_DEFAULT_EXPIRE = void 0;
var _dns = _interopRequireDefault(require("dns"));
var _net = _interopRequireDefault(require("net"));
var _logger = require("./logger");
function _interopRequireDefault(obj) { retu... | blinksocks/blinksocks | lib/utils/dns-cache.js | JavaScript | apache-2.0 | 2,047 |
'use strict';
var chai = require('chai');
require('chai-as-promised');
var should = chai.should();
var PouchDB = require('pouchdb-browser');
PouchDB.adapter('worker', require('../../client'));
describe('custom api test suite', function () {
this.timeout(180000);
var db;
before(function () {
var worker =... | nolanlawson/worker-pouch | test/custom-api/test.js | JavaScript | apache-2.0 | 1,003 |
/* eslint-env jest */
import { actionReducer } from './utils'
describe('actionReducer', () => {
const counter = actionReducer(0, {
INCREMENT (state, action) {
return state + 1
},
DECREMENT (state, action) {
return state - 1
},
SET_VALUE (state, action) {
return action.value
... | mareklibra/userportal | src/reducers/utils.test.js | JavaScript | apache-2.0 | 994 |
/**
* @license
* 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 requir... | jlhughes/foam | js/foam/ui/polymer/demo/TooltipDemo.js | JavaScript | apache-2.0 | 3,019 |
// Backbone.Syphon.KeySplitter
// ---------------------------
// This function is used to split DOM element keys in to an array
// of parts, which are then used to create a nested result structure.
// returning `["foo", "bar"]` results in `{foo: { bar: "value" }}`.
//
// Override this method to use a custom key splitt... | CenturyLinkCloud/EstimatorTCO | source/js/libs/backbone.syphon/src/backbone.syphon.keysplitter.js | JavaScript | apache-2.0 | 604 |
import * as THREE from 'three';
import STORE from 'store';
import { MAP_WS } from 'store/websocket';
import _ from 'lodash';
import {
drawSegmentsFromPoints,
drawDashedLineFromPoints,
drawShapeFromPoints,
} from 'utils/draw';
import Text3D, { TEXT_ALIGN } from 'renderer/text3d';
import TrafficSigns from 'rendere... | xiaoxq/apollo | modules/dreamview/frontend/src/renderer/map.js | JavaScript | apache-2.0 | 16,450 |
/**
* Copyright IBM Corp. 2016, 2018
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { settings } from 'carbon-components';
import ListBullet... | carbon-design-system/carbon-components-react | src/components/SearchLayoutButton/SearchLayoutButton.js | JavaScript | apache-2.0 | 2,657 |
alert("XSS from JS file"); | datla/JavaSecurity | xss/src/main/webapp/alert.js | JavaScript | apache-2.0 | 26 |
sap.ui.define([
'jquery.sap.global',
'sap/ui/core/Fragment',
'sap/ui/core/mvc/Controller',
'sap/ui/model/Filter',
'sap/ui/model/json/JSONModel'
], function(jQuery, Fragment, Controller, Filter, JSONModel) {
"use strict";
var CController = Controller.extend("sap.m.sample.InputAssistedTwoValues.C", {
inpu... | SQCLabs/openui5 | src/sap.m/test/sap/m/demokit/sample/InputAssistedTwoValues/C.controller.js | JavaScript | apache-2.0 | 1,505 |
/**
* @class Ext.ClassManager
*
* @author Jacky Nguyen <jacky@sencha.com>
* @aside guide class_system
* @aside video class-system
*
* Ext.ClassManager manages all classes and handles mapping from string class name to
* actual class objects throughout the whole framework. It is not generally accessed directly, ... | pierotofy/glassomium | src/server/WebRoot/apps/Maps/src/core/class/ClassManager.js | JavaScript | apache-2.0 | 47,766 |
"use strict";
const {strict: assert} = require("assert");
const {zrequire} = require("../zjsunit/namespace");
const {run_test} = require("../zjsunit/test");
const user_groups = zrequire("user_groups");
const user_group_pill = zrequire("user_group_pill");
const admins = {
name: "Admins",
description: "foo",
... | zulip/zulip | frontend_tests/node_tests/user_group_pill.js | JavaScript | apache-2.0 | 1,987 |
/*
* @弹出提示层 ( 加载动画(load), 提示动画(tip), 成功(success), 错误(error), )
* @method tipBox
* @description 默认配置参数
* @time 2014-12-19
* @param {Number} width -宽度
* @param {Number} height -高度
* @param {String} str -默认文字
* @param {Object} windowDom -载入窗口 默认当前窗口
* @param {Number} setTime -定时消失(毫... | userKarl/sctd | target/td-1.0/resources/evaluate/js/mdialog.js | JavaScript | apache-2.0 | 6,493 |
/**
* Passport configuration
*
* This is the configuration for your Passport.js setup and where you
* define the authentication strategies you want your application to employ.
*
* I have tested the service with all of the providers listed below - if you
* come across a provider that for some reason doesn't work,... | porybox/porybox | config/passport.js | JavaScript | apache-2.0 | 1,880 |
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you m... | kidaa/rave | rave-demo-gadgets/src/main/webapp/friendsWrapper.js | JavaScript | apache-2.0 | 4,255 |
import { FunctionNode } from './FunctionNode.js';
function ExpressionNode( src, type, keywords, extensions, includes ) {
FunctionNode.call( this, src, includes, extensions, keywords, type );
}
ExpressionNode.prototype = Object.create( FunctionNode.prototype );
ExpressionNode.prototype.constructor = ExpressionNode;... | sinorise/sinorise.github.io | three/jsm/nodes/core/ExpressionNode.js | JavaScript | apache-2.0 | 399 |
/**
* @file
* Provides JavaScript additions to the managed file field type.
*
* This file provides progress bar support (if available), popup windows for
* file previews, and disabling of other file fields during Ajax uploads (which
* prevents separate file fields from accidentally uploading files).
*/
(functio... | nickopris/musicapp | www/core/modules/file/file.js | JavaScript | apache-2.0 | 7,305 |
var Event = {
addListener: function (obj, event, listener, scope) {
if (obj) {
if (typeof obj.__listeners == "undefined") {
obj.__listeners = new Object();
}
if (typeof obj.__listeners[event] == "undefined") {
obj.__listeners[event] = new ... | donniet/livegame | src/main/webapp/client/0.2/event.js | JavaScript | apache-2.0 | 3,158 |
var
utils = require('./utils'),
Signals = require('./Signals');
/**
* Support for the W3C Page Visibility API - http://www.w3.org/TR/page-visibility
*
* {@link module:enyo/pageVisibility.hidden} and {@link module:enyo/pageVisibility.visibilityState}
* contain the same information as `document.hidden` and
* `document... | PKRoma/enyo | src/pageVisibility.js | JavaScript | apache-2.0 | 2,971 |
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'... | xingwu1/azure-sdk-for-node | lib/services/recoveryServicesBackupManagement/lib/models/protectionIntentResource.js | JavaScript | apache-2.0 | 3,687 |
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'... | xingwu1/azure-sdk-for-node | lib/services/luis/authoring/lib/models/productionOrStagingEndpointInfo.js | JavaScript | apache-2.0 | 2,500 |
(function() {
function AlbumCtrl(Fixtures, SongPlayer) {
this.albumData = [];
this.albumData.push(Fixtures.getAlbum());
this.songPlayer = SongPlayer;
}
angular
.module('blocJams')
.controller('AlbumCtrl', ['Fixtures','SongPlayer', AlbumCtrl]);
})();
| javierforero/bloc-jams-angular | dist/scripts/controllers/AlbumCtrl.js | JavaScript | apache-2.0 | 303 |
Genoverse.Genomes.mus_musculus = {
"1": {
"size": 195471971,
"bands": [
{
"id": "A1",
"start": 2973781,
"end": 8840440,
"type": "gpos100"
},
{
"id": "A2",
"start": 8840441,
"end": 12278389,
"type": "gneg"
},
{
... | RNAcentral/angularjs-genoverse | lib/Genoverse/js/genomes/mus_musculus.js | JavaScript | apache-2.0 | 53,885 |
/**
* 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... | adup-tech/amphtml | src/custom-element.js | JavaScript | apache-2.0 | 58,872 |
// UserController for AngularJS
ecollabroApp.controller('userController', ['$scope', 'securityService', function ($scope, securityService) {
$scope.user = {};
$scope.activeRoles = [];
$scope.userId = 0;
//Method initialize
$scope.initialize = function (userId) {
$scope.userId = use... | eCollobro/eCollabro | eCollabro.Web/obj/Release/Package/PackageTmp/app/controllers/user/user.js | JavaScript | apache-2.0 | 5,849 |
$(document).ready(function() {
$('#btn-create-version').on('click', function(e) {
e.preventDefault();
var newVersion = $('#new-version').val();
if (newVersion) {
var assetId = $('#asset-id').val();
var assetType = $('#asset-type').val();
var path = caramel... | sameerak/carbon-store | apps/publisher/themes/default/js/copy-asset.js | JavaScript | apache-2.0 | 2,044 |
export { Clock } from './Clock';
| HewlettPackard/grommet | src/js/components/Clock/index.js | JavaScript | apache-2.0 | 33 |
/**
* Copyright 2017 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | FirebasePrivate/firebase-js-sdk-1 | config/webpack.test.js | JavaScript | apache-2.0 | 1,306 |
// Copyright 2014 The Oppia Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by ap... | raju249/oppia | core/templates/dev/head/player/ConversationSkinDirective.js | JavaScript | apache-2.0 | 27,713 |
(function(e,t,n){"use strict";var r=e(document),i=t.Modernizr;e(document).ready(function(){e.fn.foundationAlerts?r.foundationAlerts():null;e.fn.foundationButtons?r.foundationButtons():null;e.fn.foundationAccordion?r.foundationAccordion():null;e.fn.foundationNavigation?r.foundationNavigation():null;e.fn.foundationTopBar... | nasa/39A | spaceapps/static/javascripts/foundation/app-ck.js | JavaScript | apache-2.0 | 914 |
/*
* Copyright 2016 e-UCM (http://www.e-ucm.es/)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* This project has received funding from the European Union’s Horizon
* 2020 research and innovation programme under grant agreeme... | gorco/gf | app/public/js/controllers/app.js | JavaScript | apache-2.0 | 11,160 |
/*
Copyright (c) 2002 JSON.org
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublic... | apache/chukwa | core/src/main/web/hicc/js/json.js | JavaScript | apache-2.0 | 4,907 |
/**
* Created by hooxin on 14-10-10.
*/
/**
* 字典维护标志
*/
Ext.define('Techsupport.store.DictMaintFlag', {
extend: 'Ext.data.Store',
fields: ['text', 'value'],
data: [
{text: '维护', value: 0},
{text: '停止维护', value: 1}
]
})
| firefoxmmx2/techsupport_ext4_scala | public/javascripts/app/store/DictMaintFlag.js | JavaScript | apache-2.0 | 279 |
/* FileSaver.js
* A saveAs() & saveTextAs() FileSaver implementation.
* 2014-06-24
*
* Modify by Brian Chen
* Author: Eli Grey, http://eligrey.com
* License: X11/MIT
* See https://github.com/eligrey/FileSaver.js/blob/master/LICENSE.md
*/
/*global self */
/*jslint bitwise: true, indent: 4, laxbreak: tr... | PTRPlay/PrompterPro | Main/SoftServe.ITA.PrompterPro/PrompterPro.WebApplication/Scripts/FileSaver.js | JavaScript | apache-2.0 | 12,241 |
(function(angular){
'use strict';
var app = angular.module('bernhardposselt.enhancetext', ['ngSanitize']);
app.factory('TextEnhancer',
["SmileyEnhancer", "VideoEnhancer", "NewLineEnhancer", "ImageEnhancer", "YouTubeEnhancer", "LinkEnhancer", function (SmileyEnhancer, VideoEnhancer, NewLineEnhancer, ImageEnhancer,
... | gzwfdy/zone | src/main/webapp/static/app/js/vendor/angular-enhance-text.min.js | JavaScript | apache-2.0 | 7,184 |
import "./main";
import "core/utils";
import "bootstrap/js/dist/tab";
import dayjs from "dayjs";
import advancedFormat from "dayjs/plugin/advancedFormat";
import utc from "dayjs/plugin/utc";
import timezone from "dayjs/plugin/timezone";
import timezones from "../timezones";
import CTFd from "core/CTFd";
import { defaul... | isislab/CTFd | CTFd/themes/admin/assets/js/pages/configs.js | JavaScript | apache-2.0 | 14,384 |
//// [declFileWithExtendsClauseThatHasItsContainerNameConflict.ts]
declare module A.B.C {
class B {
}
}
module A.B {
export class EventManager {
id: number;
}
}
module A.B.C {
export class ContextMenu extends EventManager {
name: string;
}
}
//// [declFileWithExtendsClaus... | Raynos/TypeScript | tests/baselines/reference/declFileWithExtendsClauseThatHasItsContainerNameConflict.js | JavaScript | apache-2.0 | 1,706 |
'use strict';
angular.module("ngLocale", [], ["$provide", function($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
function getDecimals(n) {
n = n + '';
var i = n.indexOf('.');
return (i == -1) ? 0 : n.length - i - 1;
}
function getVF(n, opt_pr... | yoyocms/YoYoCms.AbpProjectTemplate | src/YoYoCms.AbpProjectTemplate.Web/Scripts/i18n/angular-locale_uk-ua.js | JavaScript | apache-2.0 | 4,569 |
//
// Copyright (c) Microsoft and contributors. 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 requi... | XiaoningLiu/azure-storage-node | test/common/util/iso8061date-tests.js | JavaScript | apache-2.0 | 3,463 |
// Copyright (C) 2015 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 23.1.3.8
description: >
Throws a TypeError if `this` object does not have a [[MapData]] internal slot.
info: |
Map.prototype.keys ()
1. Let M be the this value.
... | sebastienros/jint | Jint.Tests.Test262/test/built-ins/Map/prototype/keys/does-not-have-mapdata-internal-slot.js | JavaScript | bsd-2-clause | 807 |
import TLSFingerprints from "./models/TLSFingerprints";
import FingerPrintsTemplate from "./templates/Fingerprints.html";
import FingerPrintTemplate from "./templates/Fingerprint.html";
import FingerPrintDialogContent from "./templates/FingerPrintDialogContent.html";
const model = new TLSFingerprints();
const Finger... | evbevz/plugins | www/nginx/src/opnsense/www/js/nginx/src/tls_handshakes.js | JavaScript | bsd-2-clause | 4,364 |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: |
If pos is a value of Number type that is an integer, then the result of
x.charAt(pos) is equal to the result of x.substring(pos, pos+1)
es5id: 15.5.4.4_A4_T2
descrip... | sebastienros/jint | Jint.Tests.Test262/test/built-ins/String/prototype/charAt/S15.5.4.4_A4_T2.js | JavaScript | bsd-2-clause | 976 |
"use strict";
module.exports = {
delegates: {
im_too_lazy: function() {
$C("button", {
name: "my first button"
}, function(btn) {
$("#button_holder").empty(); // extra
btn.prependTo($("#button_holder"));
// alright, this is technically extra
bt... | logV/snorkel.sf | snorkel/app/controllers/home/client.js | JavaScript | bsd-2-clause | 388 |
/*
* Copyright (c) 2020 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree.
*/
'use strict';
/* global createProcessedMediaStreamTrack */ // defined in main.js
/**
* Wrappe... | webrtc/samples | src/content/insertable-streams/video-processing/js/pipeline.js | JavaScript | bsd-3-clause | 6,704 |
/**
* @license
* Copyright 2019 Google LLC.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt
* Code distributed by Google as part of this project is also
* subject to an additional IP rights grant found at
* http://polymer.github.io/PATENTS.txt
*/
import {... | PolymerLabs/arcs-live | devtools/src/arcs-devtools-app.js | JavaScript | bsd-3-clause | 4,211 |
import assert from "assert";
import {Point2D, Vector2D, Matrix2D} from "../index.js";
describe("Point2D", () => {
it("new point", () => {
const p = new Point2D(10, 20);
assert.strictEqual(p.x, 10);
assert.strictEqual(p.y, 20);
});
it("clone", () => {
const p = new Point2D(... | lysz210/kld-affine | test/point_tests.js | JavaScript | bsd-3-clause | 4,778 |
;(function ($, window) {
"use strict";
/**
* @options
* @param customClass [string] <''> "Class applied to instance"
* @param lables.up [string] <'Up'> "Up arrow label"
* @param lables.down [string] <'Down'> "Down arrow label"
*/
var options = {
customClass: "",
labels: {
up: "Up",
down: "Down"
... | juniorspecialist/moab | web/js/jquery.fs.stepper.js | JavaScript | bsd-3-clause | 7,683 |
var React = require('react');
var ReactFeatureFlags = require('ReactFeatureFlags');
var ReactDOM;
var AsyncComponent = React.unstable_AsyncComponent;
describe('ReactDOMFiberAsync', () => {
var container;
beforeEach(() => {
container = document.createElement('div');
ReactDOM = require('react-dom');
});... | yangshun/react | src/renderers/dom/fiber/__tests__/ReactDOMFiberAsync-test.js | JavaScript | bsd-3-clause | 8,185 |
'use strict';
exports.__esModule = true;
const moduleRequire = require('./module-require').default;
const extname = require('path').extname;
const fs = require('fs');
const log = require('debug')('eslint-plugin-import:parse');
function getBabelEslintVisitorKeys(parserPath) {
if (parserPath.endsWith('index.js')) {
... | ChromeDevTools/devtools-frontend | node_modules/eslint-module-utils/parse.js | JavaScript | bsd-3-clause | 3,870 |
// Copyright (c) 2013, salesforce.com, 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 condit... | jthurst01/canvas-app-json | src/main/webapp/Publisher/publisher.js | JavaScript | bsd-3-clause | 6,834 |
/**
*
* <i>Copyright (c) 2017 ItsAsbreuk - http://itsasbreuk.nl</i><br>
* New BSD License - http://choosealicense.com/licenses/bsd-3-clause/
*
*
* @since 16.2.0
*/
'use strict';
const reload = require('require-reload')(require), // see https://github.com/fastest963/require-reload
cwd = process.cwd(),
ge... | ItsAsbreuk/itsa-react-server | lib/hapi-plugin/helpers/apply-server-routes.js | JavaScript | bsd-3-clause | 6,635 |
var webpackConfig = require('./webpack.local.config.js');
webpackConfig.entry = {};
module.exports = function (config) {
config.set({
// base path that will be used to resolve all patterns (eg. files, exclude)
basePath: '',
// frameworks to use
// available frameworks: https://npmjs.org/browse/key... | genomics-geek/cookiecutter-django-reactjs | {{cookiecutter.project_slug}}/frontend/webpack/karma.config.js | JavaScript | bsd-3-clause | 1,857 |
'use strict';
angular.module("ngLocale", [], ["$provide", function ($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
function getDecimals(n) {
n = n + '';
var i = n.indexOf('.');
return (i == -1) ? 0 : n.length - i - 1;
... | mudunuriRaju/tlr-live | tollbackend/web/js/angular-1.5.5/i18n/angular-locale_zgh-ma.js | JavaScript | bsd-3-clause | 5,388 |
export async function getNodeSummary(nodeId, nodeType) {
const bioentityUrl = `${biolink}bioentity/${nodeType}/${nodeId}`;
console.log('getNodeSummary bioentityUrl', nodeId, nodeType, bioentityUrl);
const params = {
fetch_objects: true,
unselect_evidence: false,
exclude_automatic_assertions: false,
... | kshefchek/monarch-app | ui/monarchAccess/demo.js | JavaScript | bsd-3-clause | 745 |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview Offline message screen implementation.
*/
login.createScreen('ErrorMessageScreen', 'error-message', function() {
// Link whic... | cvsuser-chromium/chromium | chrome/browser/resources/chromeos/login/screen_error_message.js | JavaScript | bsd-3-clause | 8,584 |
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
(function()
{
var imageDialog = function( editor, dialogType )
{
// Load image preview.
var IMAGE = 1,
LINK = 2,
PREVIEW = 4,
CLEANUP = 8,
reg... | fredd-for/codice.v.1.1 | ckeditor/_source/plugins/image/dialogs/image.js | JavaScript | bsd-3-clause | 46,523 |
/**
* 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
*/... | jhen0409/react-devtools | backend/getDisplayName.js | JavaScript | bsd-3-clause | 1,237 |
/*
* UI development toolkit for HTML5 (OpenUI5)
* (c) Copyright 2009-2016 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
sap.ui.define(['sap/ui/base/EventProvider','./Serializer','./delegate/HTML','sap/ui/thirdparty/vkbeautify'],function(E,S,H,v){"use stri... | dirga123/clr | openui5/sap/ui/core/util/serializer/HTMLViewSerializer.js | JavaScript | isc | 1,003 |
'use strict';
var _ = require('lodash');
var helpers = require('./helpers');
var responseParser = require('./responseparser');
var request = require('./request');
// A resource on the API, instances of this are used as the prototype of
// instances of each API resource. This constructor will build up a method
// for... | raoulmillais/7digital-api | lib/resource.js | JavaScript | isc | 5,206 |
/**
* Custom events to control showing and hiding of tooltip
*
* @attributes
* - `event` {String}
* - `eventOff` {String}
*/
export const checkStatus = function(dataEventOff, e) {
const { show } = this.state;
const { id } = this.props;
const isCapture = this.isCapture(e.currentTarget);
const currentItem ... | wwayne/react-tooltip | src/decorators/customEvent.js | JavaScript | mit | 2,931 |
var Request = require('request');
function NewsFetcher() {
this._newsLink = 'http://kaku.rocks/news.json';
}
NewsFetcher.prototype.get = function() {
var promise = new Promise((resolve, reject) => {
Request.get(this._newsLink, (error, response, body) => {
if (error) {
reject(error);
cons... | uirsevla/Kaku | src/modules/NewsFetcher.js | JavaScript | mit | 506 |
/**
* @fileoverview Tests for max-depth.
* @author Ian Christian Myers
*/
//------------------------------------------------------------------------------
// Requirements
//------------------------------------------------------------------------------
var eslintTester = require("eslint-tester");
//---------------... | natesilva/eslint | tests/lib/rules/max-depth.js | JavaScript | mit | 1,497 |
'use strict';
exports.__esModule = true;
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
exports.isReactChi... | yomolify/cc-server | node_modules/react-router/lib/RouteUtils.js | JavaScript | mit | 3,153 |
import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import ReactDOM from 'react-dom';
import Nav from '../src/Nav';
import NavItem from '../src/NavItem';
import Tab from '../src/Tab';
import TabPane from '../src/TabPane';
import Tabs from '../src/Tabs';
import ValidComponentChildren from ... | mmarcant/react-bootstrap | test/TabsSpec.js | JavaScript | mit | 14,836 |
'use strict';
const gulp = require('gulp');
const sequence = require('run-sequence');
gulp.task('start', cb => {
sequence('configure', 'build', 'install', cb);
});
| radekk/webtask-mfa-monitor | gulp/tasks/start.js | JavaScript | mit | 168 |
semantic.dropdown = {};
// ready event
semantic.dropdown.ready = function() {
// selector cache
var
// alias
handler
;
// event handlers
handler = {
};
$('.first.example .menu .item')
.tab({
context: '.first.example'
})
;
$('.history.example .menu .ite... | taylorrose/taylorrose.github.io | blog/js/tab.js | JavaScript | mit | 690 |
/*
* mobile table unit tests
*/
(function($){
module( "Basic Table", {
setup: function(){
var hash = "#basic-table-test";
if( location.hash != hash ){
stop();
$(document).one("pagechange", function() {
start();
});
$.mobile.changePage( hash );
}
},
teardown: function() {
}... | abhishekbhalani/jquery-mobile | tests/unit/table/table_core.js | JavaScript | mit | 3,944 |