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
var mysql = require('../routes/mysql'); var sequelize = mysql.getSequelize(); var DataTypes = mysql.getDataTypes(); var Counter_Register = require('../models/counter_register.js').getModel(); var Counter_Config = sequelize.define('counter_configuration',{ primary_id : {type: DataTypes.INTEGER,primaryKey: true, autoI...
MANTHAN-D/beacafeteria
models/counter_config.js
JavaScript
gpl-2.0
2,316
(function(global) { // Require CVM namespace if (global['CVM'] == undefined) { console.error("cvmwebapi-probe-dumbq.js requires cernvm-webapi.js to be loaded first!"); return; } // Require DQFrontEnd namespace if (global['DumbQ'] == undefined) { console.error("cvmwebapi-probe-dumbq.js requires dumbq.js to ...
emkatsom/virtual-atom-smasher
drafts/computing/htdocs/js/cvmwebapi-probe-dumbq.js
JavaScript
gpl-2.0
1,481
jQuery(document).ready(function() { // hide our span before page loads jQuery('#s2bcc_2').hide(); jQuery('#s2page_2').hide(); }); //show span on clicking the edit link function s2_show(id) { jQuery('#s2'+id+'_2').show(); jQuery('#s2'+id+'_1').hide(); return false; }; // hide span on clicking the hide link funct...
alx/barceloneta
wp-content/plugins/subscribe2/include/s2_edit.js
JavaScript
gpl-2.0
747
import React from 'react'; import FormControl from 'react-bootstrap/lib/FormControl'; import FormGroup from 'react-bootstrap/lib/FormGroup'; import Button from 'react-bootstrap/lib/Button'; import Checkbox from 'react-bootstrap/lib/Checkbox'; import ControlLabel from 'react-bootstrap/lib/ControlLabel'; import {findDOMN...
SnowBeaver/Vision
app/static/src/diagnostic/TestTypeResultForm_modules/NewFluidTestForm.js
JavaScript
gpl-2.0
14,430
/* * (C) Copyright ${year} Nuxeo SA (http://nuxeo.com/) and others. * * All rights reserved. This program and the accompanying materials * are made available under the terms of the GNU Lesser General Public License * (LGPL) version 2.1 which accompanies this distribution, and is available at * http://www.gnu.org/...
zhangzuoqiang/GoodHuddle
src/main/resources/static/admin/lib/ace-editor/src-min-noconflict/snippets/ocaml.js
JavaScript
gpl-2.0
737
var Fetch = require('whatwg-fetch'); var baseUrl = 'http://localhost:6060'; var service = { get: function(url){ return fetch(baseUrl + url) .then(function(response){ return response.json(); }) }, post: function(url, ingredient){ return fetch(baseUrl + url, { headers: { 'Accept...
mcocoba/react-test
react-shop/src/services/HttpService.js
JavaScript
gpl-3.0
544
import GenericResponse from './generic_response.js' import SamplerBackend from '../backends/sampler.js' /** * Class representing a sampler item. * @extends GenericResponse */ export default class Sampler extends GenericResponse { /** * Create a sampler item which plays a sound. * @param {Obje...
shyras/osweb
src/js/osweb/items/sampler.js
JavaScript
gpl-3.0
2,181
/* Tiuringo mašina Pagrindinis Tiuringo mašinos failas, be naudotojo sąsajos ir atvaizdavimo metodų. Failo sandara: - Foninės užduoties paleidiklis, kuris sukuria ir paleidžia mašinos objektą - Klasė 'Masina' - čia vyksta kodo vykdymas - Klasė 'Kodas' - čia interpretuojamas ir paruošiamas darbui kodas - Klasė 'Taisyk...
edriskus/turing
turing.js
JavaScript
gpl-3.0
6,081
const { mergeSchemas } = require('graphql-tools'); const usersSchema = require('./users'); const postsSchema = require('./posts'); const linkTypeDefs = require('./linkTypeDefs'); module.exports = mergeSchemas({ schemas: [usersSchema, postsSchema, linkTypeDefs], resolvers: mergeInfo => ({ User: { posts: {...
hrasoa/rsk
server/api/schemas/index.js
JavaScript
gpl-3.0
729
var searchData= [ ['add_5fflag',['add_flag',['../class_anyarg.html#a15625aae27eac8deb3b8b6fd1adf70c4',1,'Anyarg::add_flag(const char *name, char letter, const char *desc)'],['../class_anyarg.html#ab3d325be34ce29d29d890e240b3f592b',1,'Anyarg::add_flag(char letter, const char *desc)']]], ['add_5foption_5fdouble',['ad...
liqb/anyarg
doc/html/search/functions_61.js
JavaScript
gpl-3.0
1,464
/* Unit Test Code */ describe("Slot Machine Sevice: currentLocation object", function() { var SlotMachine, currentSlotMachine, count; //setup the angular app before each unit test beforeEach(module('DSI')); // setup the SlotMachine service before each unit test beforeEach(inject(...
jcsmileyjr/Digital-Slot-Inspection
js/slotMachine/slotMachineService.spec.js
JavaScript
gpl-3.0
4,146
function classmatesComponentClass(){ this.name="Classmates Selector"; this.icon="components/componentIcons/classmates.png"; this.items2Delete=[]; } classmatesComponentClass.prototype=new Component(); classmatesComponentClass.prototype.constructor = classmatesComponentClass; classmatesComponentClas...
joamuran/classroom-assembly
ClassroomAssembly/www/components/classmates/classmates.js
JavaScript
gpl-3.0
16,752
/************************************************************************ * This file is part of EspoCRM. * * EspoCRM - Open Source CRM application. * Copyright (C) 2014-2015 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko * Website: http://www.espocrm.com * * EspoCRM is free software: you can redistribute it...
onerinas/espocrm-3.4.2
frontend/client/src/views/admin/field-manager/edit.js
JavaScript
gpl-3.0
6,769
/************************************************************************ * This file is part of EspoCRM. * * EspoCRM - Open Source CRM application. * Copyright (C) 2014-2015 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko * Website: http://www.espocrm.com * * EspoCRM is free software: you can redistribute it...
onerinas/espocrm-3.4.2
frontend/client/src/views/modals/detail.js
JavaScript
gpl-3.0
6,163
var TOOLTIP_TITLE = "SMART Demo Help"; var EMAIL_FIELD_HELP_TEXT = "Enter your email id. This email id is used for verification."; var GO_BUTTON_TEXT = "This verifies if email is already registered." var CHOOSE_FROM_FLOWS_BUTTON_HELP_TEXT = "If you have any application deployed in SMART, then clicking on this button h...
rajsanka/a-smart
sm.smartadmin/src/main/resources/ui/production/js/demo_popover.js
JavaScript
gpl-3.0
5,784
cordova.define("cordova-plugin-speechrecognizer.SpeechRecognizer", function(require, exports, module) { /** * The MIT License * * Copyright (c) 2011-2013 * Colin Turner (github.com/koolspin) * Guillaume Charhon (github.com/poiuytrez) * * Permission is hereby granted, free of charge, to any person obtaining a cop...
luciano666/EVAServer
EVAMobile/platforms/android/platform_www/plugins/cordova-plugin-speechrecognizer/SpeechRecognizer.js
JavaScript
gpl-3.0
2,839
/* YUI 3.9.0pr1 (build 202) Copyright 2013 Yahoo! Inc. http://yuilibrary.com/license/ */ YUI.add("lang/datatype-date-format_zh-Hant-TW",function(e){e.Intl.add("datatype-date-format","zh-Hant-TW",{a:["\u9031\u65e5","\u9031\u4e00","\u9031\u4e8c","\u9031\u4e09","\u9031\u56db","\u9031\u4e94","\u9031\u516d"],A:["\u661f\u671...
rochestb/Adventurly
node_modules/grunt-contrib-yuidoc/node_modules/yuidocjs/node_modules/yui/datatype-date-format/lang/datatype-date-format_zh-Hant-TW.js
JavaScript
gpl-3.0
891
'use strict'; const { repoToOwnerAndOwner, getPrCommits } = require('./repo-utils'); const { Octokit } = require("@octokit/core"); const { REPOSITORY, HEAD_BRANCH_NAME, BASE_TAG_NAME, TOKEN } = process.env; if (!TOKEN) { console.error('missing TOKEN env var'); process.exit(1); return; } if (!BASE_TAG_NAME) { con...
pojome/elementor
.github/scripts/compare-tag-to-branch.js
JavaScript
gpl-3.0
1,509
import FatalError from "../"; describe("global/components/FatalError", () => { def("root", () => ( <FatalError fatalError={{ error: { status: 404, heading: "Kriss Kross'll make you", body: "Jump, jump" }, type: "TEST" }} /> )); it("matche...
zdavis/manifold
client/src/global/components/FatalError/__tests__/FatalError-test.js
JavaScript
gpl-3.0
401
var j=jQuery.noConflict();(function(a){j(document).on("ready",function(){j("[name='status']").bootstrapSwitch({size:"small",onColor:"success",radioAllOff:true}); j(document).on("click","#goto-btn",function(f){f.preventDefault();var e=parseInt(j(".goto").val());var b=parseInt(j(this).data("maxpage"));if(e>0&&e<=b){var d...
jolupeza/mailing-ad
assets/scripts/views/permissions/script.min.js
JavaScript
gpl-3.0
4,147
var sys = require('sys'); var childProcess = require('child_process'); var nconf = require('nconf'); var mqtt = require('mqtt'); var fs = require('fs'); // Retrieve unique machine id // which later will be used in MQTT topics // Note that new lines should be stripped from the string var machineId = fs.readFileSync('/...
RabbitPi/weather-station
weather-station.js
JavaScript
gpl-3.0
3,572
/** * @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang( 'codesnippet', 'eu', { button: 'Txertatu kode zatia', codeContents: 'Kode edukia', emptySnippetError: 'Kode za...
cnb/GetSimpleCMS
admin/template/js/ckeditor/plugins/codesnippet/lang/eu.js
JavaScript
gpl-3.0
422
'use strict' var Config = require('../../../config.json') var Logger = require('../../internal/logger.js').Logger var Dash = require('rethinkdbdash') var r = new Dash({ user: Config.database.user, password: Config.database.password, silent: true, servers: [{ host: Config.database.host, port: Config.data...
des777/Spid-Bot
runtime/databases/controllers/permissions.js
JavaScript
gpl-3.0
7,380
var config = require('../config').clean, del = require('del'), gulp = require('gulp'), gutil = require('gulp-util'); gulp.task('clean', function(callback) { del(config.glob, config.options, function(err, files) { if(err) { callback(err); } gutil.log(gutil.colors.bg...
arsgeografica/kinderstadt-registry
registry/static.in/gulp/tasks/clean.js
JavaScript
gpl-3.0
400
/** * jquery.dlmenu.js v1.0.1 * http://www.codrops.com */ ;(function ($, window, undefined) { 'use strict'; // global var Modernizr = window.Modernizr, $body = $('body'); $.DLMenu = function (options, element) { this.$el = $(element); this._init(options); }; ...
DeckOfPandas/nhs-ideas-lab
app/src/assets/js/libs/jquery.dlmenu.js
JavaScript
gpl-3.0
9,196
var searchData= [ ['joinid_2ecpp',['JoinId.cpp',['../_join_id_8cpp.html',1,'']]], ['joinid_2eh',['JoinId.h',['../_join_id_8h.html',1,'']]] ];
turdusmerula/Dbo
doc/html/search/files_7.js
JavaScript
gpl-3.0
146
/*! AdminLTE app.js * ================ * Main JS application file for AdminLTE v2. This file * should be included in all pages. It controls some layout * options and implements exclusive AdminLTE plugins. * * @Author Almsaeed Studio * @Support <http://www.almsaeedstudio.com> * @Email <support@almsaeedstudio....
afvsformatos/easyFormatos
views/admin-lte/dist/js/app.js
JavaScript
gpl-3.0
22,456
/** * @class */ Ext.define('GXC.panel.RuleViewController', { extend: 'Deft.mvc.ViewController', control: { 'view': { 'boxready': 'onViewBoxready' }, 'nameField': { 'change': 'onNameFieldChange' }, 'abstractField': { 'change': 'onAbst...
bentrm/GXC
src/panel/RuleViewController.js
JavaScript
gpl-3.0
3,762
function isEmpty(obj) { if (obj === null || obj === undefined) { return true; } return Object.keys(obj).length === 0; } function fieldIsChanging(obj, fieldname) { return obj.scheduled_change !== null && obj[fieldname] !== obj.scheduled_change[fieldname]; } function humanizeDate(when) { date = moment(whe...
mozbhearsum/balrog
ui/app/js/controllers/helpers.js
JavaScript
mpl-2.0
707
/* ***** BEGIN LICENSE BLOCK ***** Copyright © 2009 Center for History and New Media George Mason University, Fairfax, Virginia, USA http://zotero.org This file is part of Zotero. Zotero is free software: you can redistribute it and/or modify ...
sendecomp/zotero
chrome/content/zotero/xpcom/itemTreeView.js
JavaScript
agpl-3.0
90,570
/* * Copyright (C) 2018 - 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/assignments_2/teacher/components/Overrides/Override.js
JavaScript
agpl-3.0
2,693
// Notifications & messages scrollable if($('#users-list').length > 0){ $('#users-list').perfectScrollbar({ theme:"dark" }); }
Zahajamaan/Fudulbank
core/static/stack/js/scripts/pages/email-application.js
JavaScript
agpl-3.0
143
(function($){ $.fn.extend({ initGranteePortal: function() { $.fn.installFluxxDecorators(); $('.notice').delay(5000).fadeOut('slow'); }, installFluxxDecorators: function() { $.each($.fluxx.decorators, function(key,val) { $(key).live.apply($(key), val); }); }, loadTable: function...
tendenci/recessart
vendor/gems/fluxx_grant/public/javascripts/fluxx.portal.js
JavaScript
agpl-3.0
6,513
/* * Copyright (C) 2011 - 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...
venturehive/canvas-lms
public/javascripts/tool_inline.js
JavaScript
agpl-3.0
5,993
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'iframe', 'zh-cn', { border: '显示框架边框', noUrl: '请输入框架的 URL', scrolling: '允许滚动条', title: 'IFrame 属性', toolbar: 'IFrame' });
longkb/cms1.8rc2
web/theme/default/libraries/ckeditor/plugins/iframe/lang/zh-cn.js
JavaScript
agpl-3.0
336
/* * Copyright (C) 2014, 2015 Apple 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: * 1. Redistributions of source code must retain the above copyright * notice, this list of condit...
annulen/qtwebkit-snapshots
Source/WebInspectorUI/UserInterface/Views/ScriptTimelineOverviewGraph.js
JavaScript
lgpl-2.1
3,646
var accelerometer_8h = [ [ "accelerometerGetValue", "accelerometer_8h.html#a32a9f103e1271e637ad5cc01981cfef9", null ] ];
mrsl/rone
software/system/roneos/doc/html/accelerometer_8h.js
JavaScript
lgpl-3.0
124
// // App container // import { connect } from 'react-redux'; import App from 'components/App'; import { getUserInfo, setAppLoadingState, } from './actions'; function getSafeIsLoading(state) { const isLoading = state.get('app').isLoading; return isLoading === undefined ? true : isLoading; } function mapState...
EIP-SAM/SAM-Solution-Server
webapp/app/containers/App/index.js
JavaScript
lgpl-3.0
695
jQuery(document).ready(function ($) { "use strict"; /* * @param {Element} container Block to init */ function init(container) { var $container = $(container), active; $("input:text[alt], input:password[alt], textarea.nockeditor[alt]", $container).each(function (index) { ...
andrea-f/embed-youtube-webratio
MetroStyle/js/app.js
JavaScript
unlicense
7,127
module.exports = function(grunt) { // Project configuration. grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), // Uglify Task uglify: { build: { src: 'js/app.js', dest: 'js/app.min.js' } }, // minifyHtml Task minifyHtml: { options: {...
Violo/tools
Gruntfile.js
JavaScript
unlicense
6,733
/** * Copyright (c) Tiny Technologies, Inc. All rights reserved. * Licensed under the LGPL or a commercial license. * For LGPL see License.txt in the project root for license information. * For commercial licenses see https://www.tiny.cloud/ * * Version: 5.2.1 (2020-03-25) */ (function (domGlobals) { 'use st...
disono/Laravel-Template
public/assets/js/lib/tinymce/plugins/textpattern/plugin.js
JavaScript
apache-2.0
44,943
// Copyright (c) 2014, 2015 Adobe Systems Incorporated. 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...
adobe-research/svgObjectModelGenerator
svgOMGeneratorShapes.js
JavaScript
apache-2.0
14,442
define([ 'app', 'utils/sortBuildList' ], function(app, sortBuildList) { 'use strict'; return { parent: 'project_commits', url: ':commit_id/', templateUrl: 'partials/project-commit-details.html', controller: function($scope, $http, $state, $stateParams, projectData, commitData, buildList, ...
wfxiang08/changes
static/js/states/projectCommitDetails.js
JavaScript
apache-2.0
1,873
//// [tests/cases/compiler/moduleAugmentationDoesNamespaceEnumMergeOfReexport.ts] //// //// [file.ts] export namespace Root { // type-only NS export interface Foo { x: number; } } //// [reexport.ts] export * from "./file"; //// [augment.ts] import * as ns from "./reexport"; declare module "...
Microsoft/TypeScript
tests/baselines/reference/moduleAugmentationDoesNamespaceEnumMergeOfReexport.js
JavaScript
apache-2.0
1,497
/* * Kendo UI Web v2014.1.318 (http://kendoui.com) * Copyright 2014 Telerik AD. All rights reserved. * * Kendo UI Web commercial licenses may be obtained at * http://www.telerik.com/purchase/license-agreement/kendo-ui-web * If you do not own a commercial license, this file shall be governed by the * GNU General Public ...
facundolucas/eCuentas
src/main/webapp/resources/kendoui/src/js/kendo.resizable.js
JavaScript
apache-2.0
6,150
'use strict'; let humanize = require('humanize'); let path = require('path'); let context = { pageName: 'Selection' }; let breadcrumbBase = require('./breadcrumbs-base'); let loadMetadata = require('../../browser/services/metadata'); let requirements = loadMetadata(require(path.join(rootPath, 'transpiled', 'requireme...
dgolovin/developer-platform-install
test/ui/selection-test.js
JavaScript
apache-2.0
7,067
module.exports = function (api) { api.addEndpointDescription('_put_percolator', { priority: 10, // to override doc methods: ['PUT', 'POST'], patterns: [ "{index}/.percolator/{id}" ], url_params: { "version": 1, "version_type": ["external", "internal"], "op_type": ["create"]...
gillyb/sensitive
sense/installedPlugins/sense/api_server/es_1_0/percolator.js
JavaScript
apache-2.0
2,446
/** * Copyright 2013-2022 the original author or authors from the JHipster project. * * This file is part of the JHipster project, see https://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 L...
jhipster/generator-jhipster
test/jdl/jhipster/relationship-types.spec.js
JavaScript
apache-2.0
1,406
'use strict'; var SingleRegionPrioritizer = (function SingleRegionPrioritizerClosure() { var PRIORITY_OLD_REGION = -1; var PRIORITY_LAST_REGION = 0; var PRIORITY_FETCH_EVEN_IF_NOT_LAST_REGION = 1; function SingleRegionPrioritizer() { this._currentRequestIndex = null; } SingleR...
MaMazav/MaMazav.github.io
webjpip.js/old/wrappers/jpxjpipimage/jpxjpipimagehelpers/singleregionprioritizer.js
JavaScript
apache-2.0
1,333
define(function(require) { /* This module insert a row with the name of the resource. The row can be edited and a rename action will be sent */ var TemplateRenameTr = require('hbs!./rename-tr/html'); var Sunstone = require('sunstone'); /* Generate the tr HTML with the name of the resource and a...
tuxmea/one
src/sunstone/public/app/utils/panel/rename-tr.js
JavaScript
apache-2.0
1,827
/** * 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...
bpaduch/amphtml
extensions/amp-bodymovin-animation/0.1/test/integration/test-amp-bodymovin-animation.js
JavaScript
apache-2.0
4,427
/** * 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...
amirsojoodi/tez
tez-ui/src/main/webapp/app/scripts/controllers/dag-task-attempts-controller.js
JavaScript
apache-2.0
7,483
var testUtils = require('../../util/testUtils'); var TestResults = require(testUtils.buildPath('constants.js')).TestResults; var blockUtils = require(testUtils.buildPath('block_utils.js')); var Colours = require(testUtils.buildPath('turtle/colours')); var studioApp = require(testUtils.buildPath('StudioApp')).singleto...
cloud3edu/code-dot-org-old
apps/test/solutions/turtle/custom_level_blocks.js
JavaScript
apache-2.0
3,989
describe('e2e page loading tests', function() { var delaylength = 500; var ptor; ptor = protractor.getInstance(); it('should be able to sign in', function() { browser.driver.manage().window().maximize(); browser.get('http://localhost:3000/#!/'); expect(ptor.getCurrentUrl()).toContain('signi...
c1moore/cen3031project
e2e/spec/page_loading.spec.js
JavaScript
apache-2.0
2,912
import ("stringutils"); import("etherpad.log"); import ("jsutils.*"); import ("etherpad.pad.model"); import ("etherpad.pro.pro_accounts"); import ("etherpad.pro.pro_config"); import ("etherpad.pro.domains"); import ("etherpad.testing.testutils.*"); import ("etherpad.testing.mock_browser.MockBrowser"); import ("etherpa...
whackpad/whackpad
etherpad/src/etherpad/testing/unit_tests/t0007_padsecurity.js
JavaScript
apache-2.0
5,196
/* * 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/databox/lib/models/jobDetails.js
JavaScript
apache-2.0
8,224
/* * 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. */ '...
begoldsm/azure-sdk-for-node
lib/services/sqlManagement2/lib/models/elasticPoolActivity.js
JavaScript
apache-2.0
7,903
// Copyright 2017 The Kubernetes 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 applicable law or a...
kenan435/dashboard
src/app/frontend/common/components/resourcecard/resourcecarddeletemenuitem_component.js
JavaScript
apache-2.0
2,374
const puppeteer = require('puppeteer'); const assert = require('assert'); const cas = require('../../cas.js'); const path = require('path'); (async () => { const browser = await puppeteer.launch(cas.browserOptions()); const page = await cas.newPage(browser); await page.goto("https://localhost:8443/cas/log...
apereo/cas
ci/tests/puppeteer/scenarios/pac4j-delegated-login-oidc-rp-saml2-idp/script.js
JavaScript
apache-2.0
1,967
/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js export default [ 'ar-EG...
HeH-Projects/team-agozzino
frontend/node_modules/@angular/common/locales/ar-EG.js
JavaScript
apache-2.0
1,811
var ewdGlobals = require('./node_modules/ewdjs/node_modules/globalsjs'); var interface = require('cache'); var db = new interface.Cache(); console.log('db: ' + JSON.stringify(db)); // Change these parameters to match your GlobalsDB or Cache system: var ok = db.open({ path: '/srv/mgr', username: '_SYSTEM', passw...
VHAINNOVATIONS/PseudoVet
provision/EWDJS/ewdjs/test-cache.js
JavaScript
apache-2.0
1,136
({ // IndexedDB has problems in Safari and is not supported in older IE browsers:["-IE8", "-IE9", "-SAFARI", "-IPAD", "-IPHONE"], // Test modifies/deletes the persistent database labels: ["threadHostile"], // must match AuraClientService.BOOTSTRAP_KEY BOOTSTRAP_KEY: "$AuraClientService.bootstr...
forcedotcom/aura
aura-components/src/test/components/bootstrapTest/bootstrapWrapper/bootstrapWrapperTest.js
JavaScript
apache-2.0
5,797
/** * * @authors fudapeng (icefirefd@163.com) * @date 2016-01-12 16:04:06 * @version $Id$ * depend jquery.jsonrpcclient.js */ (function($) { 'use strict'; var Monitor = function(targetId){ this.show = false; this.progress = {}; this.maskTarget = null; var that = this; v...
freiby/flex
client/nirvana-view-interaction/src/js/nirvana.rpc.js
JavaScript
apache-2.0
2,231
// Copyright 2011 Software Freedom Conservancy. 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 req...
lummyare/lummyare-lummy
javascript/webdriver/test/testutil.js
JavaScript
apache-2.0
9,205
jQuery.extend(KhanUtil, { toBitString: function( num ) { return num.toString(2); }, // Adds leading zeroes to a form a 4-bit binary number string to4BitString: function( num ) { if (num <= 1) { return "000" + num.toString(2); } else if (num <= 3) { return "00" + num.toString(2) ; } ...
ram8647/webapps
webapps-master/khanex/morelli.js
JavaScript
apache-2.0
6,733
/* * 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 * distribute...
BiznetGIO/horizon
openstack_dashboard/static/app/core/keypairs/keypairs.service.spec.js
JavaScript
apache-2.0
2,004
/*! Copyright (C) 2017 Google Inc. Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> */ (function ($) { 'use strict'; /* MODAL_FORM PUBLIC CLASS DEFINITION * =============================== */ var ModalForm = function (element, options, trigger) { this.options = option...
selahssea/ggrc-core
src/ggrc/assets/javascripts/bootstrap/modal-form.js
JavaScript
apache-2.0
13,937
var indexerLanguage="en"; //Auto generated index for searching. w["-"]="0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,...
yantarou/midonet-docs
www/operation-guide/2015.01-rev2/content/search/index-1.js
JavaScript
apache-2.0
24,693
/* * Waltz - Enterprise Architecture * Copyright (C) 2016, 2017, 2018, 2019 Waltz open source project * See README.md for more information * * 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 ...
kamransaleem/waltz
waltz-ng/client/dynamic-section/components/dynamic-sections-view/dynamic-sections-view.js
JavaScript
apache-2.0
1,328
import propName from './propName'; const DEFAULT_OPTIONS = { ignoreCase: true, }; /** * Returns the JSXAttribute itself or undefined, indicating the prop * is not present on the JSXOpeningElement. * */ export default function getProp(props = [], prop = '', options = DEFAULT_OPTIONS) { function getName(name) {...
GoogleCloudPlatform/prometheus-engine
third_party/prometheus_ui/base/web/ui/react-app/node_modules/jsx-ast-utils/src/getProp.js
JavaScript
apache-2.0
2,618
/* * JBoss, Home of Professional Open Source. * Copyright 2014 Red Hat, Inc., and individual contributors * as indicated by the @author tags. * * 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 Licen...
michalszynkiewicz/pnc
ui/app/configuration-set/directives/pncBCTab/pncBCTab.js
JavaScript
apache-2.0
3,301
import React, { Component, Fragment } from 'react'; import PropTypes from 'prop-types'; import { gettext, repoID, slug, siteRoot, username, isPro } from '../../utils/constants'; import WikiMarkdownViewer from '../../components/wiki-markdown-viewer'; import WikiDirListView from '../../components/wiki-dir-list-view/wiki-...
miurahr/seahub
frontend/src/pages/wiki/main-panel.js
JavaScript
apache-2.0
5,919
(function () { "use strict"; angular .module("mnPoorMansAlerts", [ "mnPromiseHelper", "mnPoorMansAlertsService", "mnSpinner" ]) .controller("mnPoorMansAlertsController", mnPoorMansAlertsController); function mnPoorMansAlertsController(mnPromiseHelper, mnPoorMansAlertsService, alert...
ceejatec/ns_server
priv/public/ui/app/mn_admin/mn_poor_mans_alerts/mn_poor_mans_alerts_controller.js
JavaScript
apache-2.0
639
define(function(require, exports, module) { var m = require('wombs/utils/Math' ); var AudioGeometry = require('wombs/three/AudioGeometry' ); var AnalyzingFunctions = require('wombs/utils/AnalyzingFunctions'); var Womb = require( 'wombs/Womb' ...
passiweinberger/passiweinberger.github.io
fun/wombs/js/Wombs/scenes/html5_webGL/Text.js
JavaScript
apache-2.0
3,756
'use strict'; angular.module('creamApp') .config(function ($stateProvider) { $stateProvider .state('docs', { parent: 'admin', url: '/docs', data: { authorities: ['ROLE_ADMIN'], pageTitle: 'global.menu.admin....
bzinoun/cream
src/main/webapp/scripts/app/admin/docs/docs.js
JavaScript
apache-2.0
748
var Foo = (function () { function Foo() { this.x = 1; } return Foo; })(); var f = new Foo(); var Foo2 = (function () { function Foo2() { } return Foo2; })(); var x = 1; var f2 = new Foo2();
mbrowne/typescript-dci
tests/baselines/reference/varAsID.commonjs.js
JavaScript
apache-2.0
242
/* DreemGL is a collaboration between Teeming Society & Samsung Electronics, sponsored by Samsung and others. Copyright 2015-2016 Teeming Society. 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 a...
dreemproject/dreemgl
classes/server/role.js
JavaScript
apache-2.0
1,261
// visibleHeight grabs the window height and subtracts that from the overall document height leaving the height of the area that is currently visible in the users' browser var visibleHeight = $(document).height() - $(window).height(); var items; storeElements(); $(window).on('resize', function(e) { updateHeight...
gepesz/nyu-mean-front
homeworks/partials/16-infinite.js
JavaScript
apache-2.0
1,863
var wmpAppBanner = wmpAppBanner || {}; wmpAppBanner.WIDGET = wmpAppBanner.WIDGET || {}; wmpAppBanner.WIDGET.appUrl = wmpAppBanner.WIDGET.appUrl || ''; wmpAppBanner.WIDGET.appIcon = wmpAppBanner.WIDGET.appIcon || ''; wmpAppBanner.WIDGET.appName = wmpAppBanner.WIDGET.appName || ''; wmpAppBanner.WIDGET.ref = wmpAppBanner...
ruymanbr/eliteempresarialapp
dist/wp-content/plugins/wordpress-mobile-pack/frontend/sections/smart-app-banner/js/smart-app-banner.js
JavaScript
apache-2.0
15,441
describe("Map", function () { var map, spy; beforeEach(function () { map = L.map(document.createElement('div')); }); describe("#remove", function () { it("fires an unload event if loaded", function () { var container = document.createElement('div'), map = new L.Map(container).setView([0, 0], 0), ...
mourner/Leaflet
spec/suites/map/MapSpec.js
JavaScript
bsd-2-clause
19,107
goog.provide('ol.ImageCanvas'); goog.require('goog.asserts'); goog.require('ol.ImageBase'); goog.require('ol.ImageState'); /** * @constructor * @extends {ol.ImageBase} * @param {ol.Extent} extent Extent. * @param {number} resolution Resolution. * @param {number} pixelRatio Pixel ratio. * @param {Array.<ol.Att...
denilsonsa/ol3
src/ol/imagecanvas.js
JavaScript
bsd-2-clause
2,394
(function ($) { // define variables var canvas = document.getElementById('canvas'); var ctx = canvas.getContext('2d'); var volume, player, score, stop, ticker; var platforms = [], water = [], enemies = [], environment = []; var canUseLocalStorage = 'localStorage' in window && window.localStorage !== null; ...
hungnm11/kandi-runner
kandi.js
JavaScript
bsd-2-clause
23,622
/** * Copyright (c) 2015, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ import { desc...
sogko/graphql-js
src/validation/__tests__/DefaultValuesOfCorrectType-test.js
JavaScript
bsd-3-clause
3,585
if("undefined"===typeof jQuery)throw Error("LoadGo requires jQuery"); jQuery&&function(e){var f={init:function(b){var c=this;if(1<$(c).length)throw Error("LoadGo selector must be an id. Please, set a valid DOM id; also check if you have more than one DOM element with the same id.");var a="undefined"!==typeof b?b:{},d=a...
nct369/maeni
verstka/vendors/loadgo/loadgo.min.js
JavaScript
bsd-3-clause
3,605
angular.module("umbraco").controller("UmbracoForms.Editors.Form.EditController", function ($scope, $routeParams, formResource, editorState, dialogService, formService, notificationsService, contentEditingHelper, formHelper, navigationService, userService, securityResource, localizationService, workflowResource) { ...
hfea/Website-Public
Source/HFEA.Website/App_plugins/UmbracoForms/Backoffice/Form/controllers/edit.controller.js
JavaScript
bsd-3-clause
6,481
/** * 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 */...
aarondancer/react-devtools
frontend/SearchUtils.js
JavaScript
bsd-3-clause
1,335
import debugFactory from 'debug'; import moment from 'moment'; import Rx, { AsyncSubject, Observable } from 'rx'; const debug = debugFactory('fcc:rxUtils'); export function saveInstance(instance) { return new Rx.Observable.create(function (observer) { if (!instance || typeof instance.save !== 'function') { ...
raisedadead/FreeCodeCamp
api-server/src/server/utils/rx.js
JavaScript
bsd-3-clause
1,820
'use strict'; var lernaJson = require('./lerna.json'); module.exports = function(config) { config.set({ frameworks: ['browserify', 'mocha', 'chai', 'sinon'], files: [ // Since all files will be added, we need to ensure manually that these // will be added first. { pattern: 'packages/metal-increment...
mairatma/metal.js
karma-sauce.conf.js
JavaScript
bsd-3-clause
1,845
var path = require('path'); var webpack = require('webpack'); module.exports = { devtool: 'cheap-module-eval-source-map', entry: [ 'webpack-hot-middleware/client', './src/index' ], output: { path: path.join(__dirname, 'dist'), filename: 'bundle.js', publicPath: '/static/' }, plugins: [...
r24y/delta-calibration
webpack.config.js
JavaScript
bsd-3-clause
1,101
/* jshint esnext: true */ import {linearInterpolation} from '../../lib/interpolation'; export default class Scale { static fromCoord(coord) { const type = coord.scale; var out, out2; if(type === undefined || type === 'linear') { if(!coord.range) { coord.range = coord.domain; }...
widged/polar-gg
src/gog/scale/Scale.js
JavaScript
mit
596
var nock = require("nock"); var expect = require("expect.js"); describe("CivicInfo", function() { var civicInfo; describe("#settings", function () { it("exists as a public object on a CivicInfo instance", function () { civicInfo = require("../lib/civic-info")(); expect(typeof civicInfo.settings)....
mdb/civic-info.js
test/civic-info.js
JavaScript
mit
3,482
// specific_values = [ // { // name: "Average", // line_type: "dashed", // "dashed" or "solid" // value: 10 // }, // summary = [ // { // name: "Total", // color: 'blue', // Indicator colors: 'grey', 'blue', 'red', 'green', 'orange', // // 'purple', 'darkgrey', 'black', 'yellow', 'lightblue' // val...
mbauskar/frappe
frappe/public/js/frappe/ui/graphs.js
JavaScript
mit
26,963
var rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi, rtagName = /<([\w:]+)/, rhtml = /<|&#?\w+;/, rnoInnerhtml = /<(?:script|style|link)/i, manipulation_rcheckableType = /^(?:checkbox|radio)$/i, // checked="checked" or checked rchecked = /checked\s*(?:[^=]|=\s*.checked.)/i, ...
demetr84/Jquery
src/manipulation.js
JavaScript
mit
15,099
/*! getCurrAbsPath - v - 2014-08-06 * fsjohnhuang.cnblogs.com * Copyright (c) 2014 fsjohnhuang; Licensed , , */ /*! * referrence: * http://www.cnblogs.com/rubylouvre/archive/2010/04/06/1705817.html * http://www.xuebuyuan.com/165233.html */ ;(function(exports){ var doc = exports.document, a = {}, rExtractUri =...
tracker1984/getCurrAbsPath
dist/getCurrAbsPath.js
JavaScript
mit
1,087
$(function() { var handler = StripeCheckout.configure({ key: stripePublishableKey, image: "https://avatars1.githubusercontent.com/u/5642384?v=3&s=300", currency: 'GBP', token: function(token) { var name = $('#payment_name').val(); var amount = $('#payment_amount').val(); $.ajax({ typ...
despo/planner
app/assets/javascripts/payments.js
JavaScript
mit
1,093
var NavItem = require('./transpiled/NavItem')['default']; module.exports = NavItem
kidaa/encoded
src/encoded/static/react-bootstrap/NavItem.js
JavaScript
mit
82
/* global: global */ // Setup of test libs const chai = require('chai'); const sinon = require('sinon'); const sinonChai= require('sinon-chai'); const expect = chai.expect; const request = require('request'); chai.use(sinonChai); const INTEGRATION_SERVER = 'http://localhost:8790'; /** * @param {string} path * @re...
cschuller/yak-js
test/integrationTestSandbox.js
JavaScript
mit
1,001
/** @babel */ import { CompositeDisposable, Disposable } from 'atom' export default { activate () { this.disposables = new CompositeDisposable() this.bootstrap() this.disposables.add(atom.commands.add('atom-workspace', { 'latex:build': () => latex.composer.build(false), 'latex:rebuild': () ...
GuilleDF/dotfiles
atom/packages/latex/lib/main.js
JavaScript
mit
2,062
var Offshore = require('../../lib/offshore'), adapter = require('./fixtures/adapter.special.fixture'), assert = require('assert'); describe('Offshore Collection', function() { var User; before(function(done) { var Model = Offshore.Collection.extend({ attributes: {}, connection: 'my_foo', ...
Atlantis-Software/offshore
test/integration/Collection.adapter.nonCRUD.js
JavaScript
mit
988
var util = require("util"); // genericMock when called with a spyFactory and a nodeunit test object // can simulate something like the exec function function genericSpy(bodyFunc) { var invovationsToRun = [], ignoreUnexpected = false, callCount = 0; function createInvocation(spec) { fun...
cloxp/cloxp-install
win/life_star/tests/test-helper.js
JavaScript
mit
4,278