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
// This file is part of Vidyamantra - http:www.vidyamantra.com/ /** @Copyright 2014 Vidya Mantra EduSystems Pvt. Ltd. * @author Suman Bogati <http://www.vidyamantra.com> */(function (window) { function Path(id) { const { vcan } = virtualclass.wb[id]; /** * This class is used for create the path for e...
sumanbogati/virtualclass
src/whiteboard-path.js
JavaScript
gpl-3.0
12,415
var eventos_form = { vcampos: '', formatearNumero: function(objeto) { var num = objeto.numero; var n = num.toString(); var nums = n.split('.'); var newNum = ""; if (nums.length > 1) { var dec = nums[1].substring(0, 2); newNum = nu...
venenux/zaint
selectraerp/libs/js/eventos_formCOMPRAS.js
JavaScript
gpl-3.0
18,621
/* global padlock */ /** * Module containing various utility functions */ padlock.util = (function() { "use strict"; /** * Inserts an object or an array at the specified index * @param {Array} arr The array that the object(s) should be inserted into * @param {Object} rec Object or array ...
ArcherSys/Padlock
src/util.js
JavaScript
gpl-3.0
2,093
// @flow import { css } from 'react-emotion' import { mobile } from '../mobile' function size (sizes: { desktop: number, mobile: number }) { return css` font-size: ${sizes.desktop}px; ${mobile` font-size: ${sizes.mobile}px; `} ` } export const h1 = size({ desktop: 54, mobile: 36 }) export const...
legislated/legislated-api
app/javascript/src/shared/styles/mixins/font/sizes.js
JavaScript
gpl-3.0
591
odoo.define('lunch.LunchKanbanView', function (require) { "use strict"; var LunchKanbanController = require('lunch.LunchKanbanController'); var LunchKanbanModel = require('lunch.LunchKanbanModel'); var LunchKanbanRenderer = require('lunch.LunchKanbanRenderer'); var core = require('web.core'); var KanbanView = require...
t3dev/odoo
addons/lunch/static/src/js/lunch_kanban_view.js
JavaScript
gpl-3.0
759
// Copyright 2015-2017 Parity Technologies (UK) Ltd. // This file is part of Parity. // Parity is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any lat...
nipunn1313/parity
js/src/dapps/dappreg/dappsStore.js
JavaScript
gpl-3.0
13,585
function is_prime(n) { if (n <= 1) { return false; } else if (n == 2) { return true; } else if (n % 2 == 0) { return false; } var sqrt = Math.sqrt(n); for (var i = 3; i <= sqrt; i += 2) { if (n % i == 0) { return false; } } return true; } var sum = 2; var count = 1; for (var i = 3; count != 10...
cadyyan/codeeval
javascript/4_sum_of_primes.js
JavaScript
gpl-3.0
411
angular.module('ForemanPipeline.jobs').controller('JobDetailsController', ['$scope', '$state', 'Job', function ($scope, $state, Job) { $scope.successMessages = []; $scope.errorMessages = []; $scope.isValid = false; if ($scope.job) { $scope.panel = {loading: fal...
xprazak2/foreman-pipeline
app/assets/javascripts/foreman_pipeline/jobs/details/job-details.controller.js
JavaScript
gpl-3.0
1,106
/* Stage 5: Door before Ergoth - Guild Quest @Author Lerk */ function enter(pi) { if (pi.getMap().getReactorByName("kinggate").getState() == 1) { pi.warp(990000900, 1); if (pi.getEventInstance().getProperty("boss") != null && pi.getEventInstance().getProperty("boss").equals("true")) { pi.changeMusic("Bgm10...
Maxcloud/Mushy
scripts/portal/kinggate_open.js
JavaScript
gpl-3.0
427
var attention = { }; var interestStrength = { }; //refactor: currentTypeStrength var interests = []; //refactor: currentTypes var urlInterests = {}; //refactor: urlTypes var nextURLInterest = 0; //refactor: nextURLType var interestElements = {}; //refactor: typeElements //var selectedInterests = []; var sensorClien...
pangor/netentionjs2
client/deprecated2/self.js
JavaScript
gpl-3.0
12,465
/*jsl:import jquery.ordered-map.js */ /* Authors: * Pavel Zuna <pzuna@redhat.com> * Adam Young <ayoung@redhat.com> * Endi Dewata <edewata@redhat.com> * John Dennis <jdennis@redhat.com> * Petr Vobornik <pvoborni@redhat.com> * * Copyright (C) 2010 Red Hat * see file 'COPYING' for use and warranty ...
hatchetation/freeipa
install/ui/ipa.js
JavaScript
gpl-3.0
60,520
const express = require('express'); var router = express.Router({mergeParams: true}); const ctrlSkins = require.main.require('../api/controllers/skins'); router.get('/', ctrlSkins.get); router.put('/', ctrlPages.set); module.exports = router;
deebobo/deebobo
api/routes/skins.js
JavaScript
gpl-3.0
246
odoo.define('point_of_sale.devices', function (require) { "use strict"; var core = require('web.core'); var Model = require('web.DataModel'); var Session = require('web.Session'); var QWeb = core.qweb; var _t = core._t; // the JobQueue schedules a sequence of 'jobs'. each job is // a function returning a deferred. t...
kosgroup/odoo
addons/point_of_sale/static/src/js/devices.js
JavaScript
gpl-3.0
19,125
(function($) { /** * Albanian language package * Translated by @desaretiuss */ FormValidator.I18n = $.extend(true, FormValidator.I18n, { 'sq_AL': { base64: { 'default': 'Ju lutem përdorni sistemin e kodimit Base64' }, between: { ...
LibreClass/libreclass
public/js/language/sq_AL.js
JavaScript
gpl-3.0
14,736
//= link_tree ../images //= link_directory ../javascripts .js //= link_directory ../stylesheets .css //= link proclaim_manifest.js
kyle-f/proclaim
test/dummy/app/assets/config/manifest.js
JavaScript
gpl-3.0
131
/** * @ngdoc directive * @name faApp * @module famous.angular * @restrict EA * @description * This directive is the container and entry point to Famo.us/Angular. Behind the scenes, * it creates a Famous context and then adds child elements * to that context as they get compiled. Inside of this directive, * n...
WebRuin/Famous
src/scripts/directives/fa-app.js
JavaScript
mpl-2.0
7,527
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */ // Tests that the source tree works. add_task(async function() { const dbg = await initDebugger( "doc-sou...
ruturajv/debugger.html
test/mochitest/browser_dbg-sources.js
JavaScript
mpl-2.0
1,899
/* IRA - Interactive Relational Algebra Tool Copyright (C) 2010-2012 Henrik Mühe This program 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, either version 3 of the License, or (at your option) any later ...
mathiasquintero/ira
js/expression_left_anti_join.js
JavaScript
agpl-3.0
1,779
const { authenticate } = require('@feathersjs/authentication').hooks; const { disallow } = require('feathers-hooks-common'); const { Forbidden } = require('../../../errors'); const EtherpadClient = require('../utils/EtherpadClient'); const logger = require('../../../logger'); const getAuthorData = async (context) =>...
schul-cloud/schulcloud-server
src/services/etherpad/hooks/Session.js
JavaScript
agpl-3.0
3,358
/* eslint no-console: 0 */ /* eslint no-confusing-arrow: 0 */ const ran = true; // set to true to exclude migration const name = 'Migrating links to new file model'; const mongoose = require('mongoose'); const database = require('../../src/utils/database'); const { Schema } = mongoose; const LinkModel = require('../....
schul-cloud/schulcloud-server
migrations/done/links.js
JavaScript
agpl-3.0
3,131
if ( typeof DOM == "undefined" ) { DOM = {}; } DOM.Ready = {}; DOM.Ready.VERSION = "0.16"; DOM.Ready.finalTimeout = 15; DOM.Ready.timerInterval = 50; DOM.Ready._checkDOMReady = function () { if ( DOM.Ready._isReady ) { return DOM.Ready._isReady; } if ( typeof document.getElementsByTagNam...
gitpan/Silki
share/js-source/DOM/Ready.js
JavaScript
agpl-3.0
4,907
System.config({ defaultJSExtensions: true, transpiler: "babel", babelOptions: { "optional": [ "runtime", "optimisation.modules.system" ], "blacklist": [ "strict" ] }, paths: { "github:*": "vendor/github/*", "npm:*": "vendor/npm/*" }, map: { "babel": "npm:babe...
elsiklab/sequenceserver
public/config.js
JavaScript
agpl-3.0
5,111
import { componentExportHelper } from 'Component/Abstract'; import { AbstractCheckbox } from 'Component/AbstractCheckbox'; class ClassicCheckboxComponent extends AbstractCheckbox {} export default componentExportHelper(ClassicCheckboxComponent, 'ClassicCheckboxComponent');
RainLoop/rainloop-webmail
dev/Component/Classic/Checkbox.js
JavaScript
agpl-3.0
276
// Here you can implement ignore rules for recheck in JavaScript. // Please do not delete this file, even if it is empty. // You can implement either of these two functions: // function matches(element) {} // function matches(element, diff) {} // For example, to ignore everything behind an URL after '?': //var baseU...
retest/recheck
src/main/resources/default-recheck.ignore.js
JavaScript
agpl-3.0
798
goog.provide('ol.style.PolygonLiteral'); goog.require('goog.asserts'); goog.require('ol.style.Literal'); /** * @typedef {{fillColor: (string|undefined), * fillOpacity: (number|undefined), * strokeColor: (string|undefined), * strokeOpacity: (number|undefined), * stroke...
yiducn/h7n9vis
src/main/webapp/js/OpenLayers3/ol/ol/style/polygonliteral.js
JavaScript
agpl-3.0
2,485
/** * Neon Login Script * * Developed by Arlind Nushi - www.laborator.co */ var neonLogin = neonLogin || {}; ;(function($, window, undefined) { "use strict"; $(document).ready(function() { neonLogin.$container = $("#form_login"); /* // Login Form & Validation neonLogin.$container.validate({ ru...
enjaz/enjaz
core/static/neon/assets/js/neon-login.js
JavaScript
agpl-3.0
9,048
/* * Copyright (c) 2015 Memorial Sloan-Kettering Cancer Center. * * This library is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS * FOR A PARTICULAR PURPOSE. The software and documentation provided hereunder * is on an "...
shrumit/cbioportal-gsoc-final
portal/src/main/webapp/js/src/study-view/component/AddCharts.js
JavaScript
agpl-3.0
4,878
/******************************************************************************* * =========================================================== * Ankush : Big Data Cluster Management Solution * =========================================================== * * (C) Copyright 2014, by Impetus Technologies * * This i...
zengzhaozheng/ankush
ankush/src/main/webapp/resources/js3.0/ankush.dashboard.js
JavaScript
lgpl-3.0
14,197
function calculate() { var a = parseInt(document.getElementById('MC').value); b = parseInt(document.getElementById('FRQ11').value); c = parseInt(document.getElementById('FRQ22').value); d =parseInt(document.getElementById('FRQ33').value); e = document.getElementById('curve1').checked; f = document.g...
kevinqi34/AP-Calculator
js/physicscelectricity.js
JavaScript
lgpl-3.0
1,858
define(['psc-tests-assert', 'text!fixtures/dropbox-with-draggable.html', 'Psc/UI/DropBox', 'Psc/Test/DoublesManager', 'Psc/UI/Dragger','Psc/UI/DropBox','Psc/UI/DropBoxButton','Psc/CMS/Item', 'Psc/CMS/TabOpenable', 'Psc/CMS/Buttonable', 'Psc/CMS/Identifyable','Psc/CMS/DropBoxButtonable', 'Psc/UI/WidgetWr...
webforge-labs/psc-cms-js
tests/Psc/UI/DropBox/WithDraggableTest.js
JavaScript
lgpl-3.0
3,252
/* * SonarQube, open source software quality management tool. * Copyright (C) 2008-2014 SonarSource * mailto:contact AT sonarsource DOT com * * SonarQube 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 Found...
dgageot/sonarqube
server/sonar-web/src/main/js/apps/coding-rules/facets/custom-values-facet.js
JavaScript
lgpl-3.0
2,671
var searchData= [ ['backgroundtriggerthread',['BackgroundTriggerThread',['../class_background_trigger_thread.html',1,'BackgroundTriggerThread'],['../class_background_trigger_thread.html#a555fe03024ae5c32ff2d9094ea1151fe',1,'BackgroundTriggerThread::BackgroundTriggerThread(ImageProducer *p)'],['../class_background_t...
bduvenhage/flitr
Doxygen/html/search/all_62.js
JavaScript
lgpl-3.0
2,528
/*global angular, hljs*/ function shouldHighlightStatics(attrs) { var should = true; angular.forEach([ 'source', 'include' ], function (name) { if (attrs[name]) { should = false; } }); return should; } var ngModule = angular.module('hljs', []); /** * hljsService service */ ngModule.prov...
alfredobarron/smoke
docs/bower_components/angular-highlightjs/src/angular-highlightjs.js
JavaScript
lgpl-3.0
11,228
Comments = new Meteor.Collection('comments'); Comments.allow({ remove: function (userId, comment) { if (isSuperuser()) { // decrease comment count in post Posts.update({_id: comment.postId}, {$inc: {commentCount: -1}}); return true; } return false; } ...
kaporzhu/shark
lib/collections/comments.js
JavaScript
unlicense
7,355
var StatsPlugin = require('stats-webpack-plugin') var path = require('path') var webpack = require('webpack') module.exports = { entry: path.join(__dirname, '../website/src/index.js'), output: { path: path.join(__dirname, '../website/static'), filename: 'bundle.js', publicPath: 'website/static/' }, ...
CrisDan1905/text-mask
website/webpack.buildWebsite.js
JavaScript
unlicense
1,660
/*global define */ /*jslint browser:true,sloppy:true,nomen:true,unparam:true,plusplus:true,indent:4 */ /* | Copyright 2013 Esri | | 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 | | h...
djmapper/smb-environmental-impact
js/library/nls/fr/localizedStrings.js
JavaScript
apache-2.0
7,212
function H1(){} function N1(){} function a3(){} function uGb(){} function oGb(){} function P1(b){this.b=b} function Rv(b){b.c.Rd(ks(b.b.b))} function wGb(){rGb=new uGb;Hdb((Edb(),Ddb),17);!!$stats&&$stats(web(xdd,MGc,-1,-1));rGb.Jd();!!$stats&&$stats(web(xdd,oZc,-1,-1))} function tGb(){var b,d,e;while(pGb){d=Zbb;e=pGb;...
yauritux/venice-legacy
Venice/Venice-Web/target/Venice-Web-1.0/venice/deferredjs/69F6B67F261768732FA27980216EB9F4/17.cache.js
JavaScript
apache-2.0
2,225
(function () { 'use strict'; /** * @ngdoc service * @name xos.toscaExporter.serviceGrid **/ angular.module('xos.serviceGrid') .service('ToscaEncoder', function($q, _, ArchiveManager, ServiceEncoder, SlicesEncoder){ let toscaSpec = { tosca_definitions_version: 'tosca_simple_yaml_1_0', ...
cboling/xos
views/ngXosViews/serviceGrid/src/js/tosca_encoder.service.js
JavaScript
apache-2.0
2,048
/* * (c) Copyright 2015 Hewlett-Packard Development Company, L.P. * * 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...
redhat-cip/horizon
openstack_dashboard/static/app/core/openstack-service-api/heat.service.js
JavaScript
apache-2.0
2,368
/* * Copyright 2016 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...
borismus/webvr-polyfill
rollup.config.js
JavaScript
apache-2.0
1,578
/* * Copyright 2011-2020, The Trustees of Indiana University and Northwestern * University. 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/LICENS...
nulib/avalon
app/assets/javascripts/application.js
JavaScript
apache-2.0
2,412
import roxotAnalytic from 'modules/roxotAnalyticsAdapter'; import { expect } from 'chai'; let events = require('src/events'); let adaptermanager = require('src/adaptermanager'); let constants = require('src/constants.json'); describe('Roxot Prebid Analytic', function () { let xhr; before(() => { xhr = sinon.us...
SpreeGorilla/Prebid.js
test/spec/modules/roxotAnalyticsAdapter_spec.js
JavaScript
apache-2.0
2,244
/* * Copyright (C) 2013 Google Inc., authors, and contributors <see AUTHORS file> * Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> * Created By: dan@reciprocitylabs.com * Maintained By: dan@reciprocitylabs.com */ (function($, CMS, GGRC) { var WorkflowExtension = {}, _workflow...
uskudnik/ggrc-core
src/ggrc_workflows/assets/javascripts/apps/workflows.js
JavaScript
apache-2.0
23,196
/*Native Implementation of annotations() */ function annotations$meta(anntype, progelem, $$$mptypes) { if (progelem.tipo) progelem=progelem.tipo; else if (progelem._alias) progelem=progelem._alias; var mm = getrtmm$$(progelem); if (progelem.$anns)mm={an:typeof(progelem.$anns)==='function'?progelem.$anns...
unratito/ceylon.language
runtime-js/meta/annotations.js
JavaScript
apache-2.0
1,342
import baseClone from './_baseClone'; /** * This method is like `_.clone` except that it recursively clones `value`. * * @static * @memberOf _ * @category Lang * @param {*} value The value to recursively clone. * @returns {*} Returns the deep cloned value. * @example * * var objects = [{ 'a': 1 }, { 'b': 2 }...
Maxwelloff/react-football
node_modules/lodash-es/cloneDeep.js
JavaScript
apache-2.0
517
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ pref("inspector.blink.border-color", "#CC0000"); pref("inspector.blink.border-width", 2); pref("inspector.blink.du...
blindio/Prospero
javascript/ariel/defaults/preferences/inspector.js
JavaScript
apache-2.0
638
// Copyright 2012 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable...
kustomzone/plush
static/js/status.js
JavaScript
apache-2.0
1,080
var TokenType = require('./const.js'); var pos; var lineStartPos; var ln; var Punctuation = { ' ': TokenType.Space, '\n': TokenType.Newline, '\r': TokenType.Newline, '\t': TokenType.Tab, '!': TokenType.ExclamationMark, '"': TokenType.QuotationMark, '#': TokenType.NumberSign, '$': TokenT...
jfbelisle/triosante
node_modules/gulp-csso/node_modules/csso/lib/parser/tokenize.js
JavaScript
apache-2.0
6,653
/*globals define*/ // Simple torch cli for the given pipeline define([ ], function( ) { var CliExporter = {}; CliExporter.main = function (files) { // Add a readme, dockerfile, requirements.txt? // TODO return files; }; return CliExporter; });
deepforge-dev/deepforge
src/plugins/Export/formats/cli/cli.js
JavaScript
apache-2.0
287
'use strict'; const bodyParser = require('body-parser'); const client = require('prom-client'); const express = require('express'); const helper = require('./lib/helper'); const morgan = require('morgan'); const app = express(); app.use(morgan('combined')); app.use(bodyParser.json()); // support json encoded bodies a...
jbianquetti-nami/kubeless
docker/runtime/nodejs/http-trigger/kubeless.js
JavaScript
apache-2.0
1,703
define( ['jquery', 'backbone', 'routers/routers', 'navigator', 'client/notifications', 'bootstrap'], function($, Backbone, Routers, navigator, notifications){ var HomeApp = new (Backbone.View.extend({ initialize:function(){ var router = new Routers.Home(); this.start(); ...
leosilvadev/gchat
src/main/resources/static/assets/js/applications/home.js
JavaScript
apache-2.0
537
/* * 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/containerRegistryManagement/lib/models/fileTaskStepUpdateParameters.js
JavaScript
apache-2.0
2,908
jest.unmock('../ajax.js') import { fetchJSON } from '../ajax.js' describe('fetchJSON', () => { pit('should response with proper data when the url is right', async () => { let data = await fetchJSON('http://somedata') expect(data).toEqual({ someKey: 'someValue' }) }) pit('should throw an proper error whe...
abac00s/Hyde
src/app/__tests__/ajax-test.js
JavaScript
apache-2.0
518
/** * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) 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 * * Unle...
nu1silva/product-apim
product/carbon-home/resources/composer/web/js/ballerina/ast/unary-expression.js
JavaScript
apache-2.0
2,360
module.exports = { devtool: 'source-map', mode: 'development', resolve: { extensions: ['.json', '.jsx', '.js', '.tsx', '.ts'], modules: ['node_modules', 'js'] }, entry: { app: ['./src/app.js'] }, optimization: { minimize: false, }, output: { path: __dirname + '/dist/', filenam...
kawamon/hue
tools/examples/api/hue_dep/webpack.config.js
JavaScript
apache-2.0
697
// =================================================== // IMPORTANT: only for development // total.js - web application framework for node.js // http://www.totaljs.com // =================================================== var options = {}; // options.ip = '127.0.0.1'; options.port = parseInt(process.argv[2]); // opt...
mitrii/telegram-ready-bot
index.js
JavaScript
apache-2.0
566
/** * Copyright 2012-2016, Plotly, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ 'use strict'; module.exports = require('../src/traces/pointcloud');
manatarms/HIDE-Ski-boot
bower_components/plotly.js/lib/pointcloud.js
JavaScript
apache-2.0
262
var glob = require("glob"); var path = require("path"); var TreeModel = require("tree-model"); var assert = require("chai").assert; var fs = require("fs-extra"); var jpad = require('./../util/jpad.js'); require('./../../bower_components/closure-library/closure/goog/bootstrap/nodejs'); goog.require('goog.array'); desc...
jirik/ol3ds
tasks/mocha/lint.file.name.js
JavaScript
apache-2.0
2,458
<!-- 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 may not...
gladyscarrizales/manifoldcf
connectors/dropbox/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/dropbox/editSpecification.js
JavaScript
apache-2.0
1,924
// Copyright 2012 Traceur 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 agreed ...
ericmckean/traceur-compiler
src/syntax/LiteralToken.js
JavaScript
apache-2.0
4,040
/* eslint prefer-arrow-callback: 0, func-names: 0, 'react/jsx-filename-extension': [1, { "extensions": [".js", ".jsx"] }] */ import React from 'react'; import assert from 'assert'; import sinon from 'sinon'; import { shallow } from 'enzyme'; import CollectionsCreateForm from './collections-create-form'; describe('<Co...
zooniverse/Panoptes-Front-End
app/collections/collections-create-form.spec.js
JavaScript
apache-2.0
4,053
/* build: `node build.js modules=ALL exclude=json,gestures minifier=uglifyjs` */ /*! Fabric.js Copyright 2008-2015, Printio (Juriy Zaytsev, Maxim Chernyak) */ var fabric = fabric || { version: "1.6.0-rc.1" }; if (typeof exports !== 'undefined') { exports.fabric = fabric; } if (typeof document !== 'undefined' && typ...
t2n3qqq/course-project
src/main/webapp/js/fabric.js
JavaScript
apache-2.0
717,014
/* * 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/serviceFabric/lib/models/packageSharingPolicyInfo.js
JavaScript
apache-2.0
1,655
//// [genericRecursiveImplicitConstructorErrors2.ts] module TypeScript2 { export interface DeclKind { }; export interface PullTypesymbol { }; export interface SymbolLinkKind { }; export enum PullSymbolVisibility { Private, Public }   export class PullSymbol { constructor (name: string, declKind...
DickvdBrink/TypeScript
tests/baselines/reference/genericRecursiveImplicitConstructorErrors2.js
JavaScript
apache-2.0
1,983
/** * Copyright 2015 IBM Corp. 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 l...
chrismoulton/nests
WebContent/Domain.js
JavaScript
apache-2.0
5,061
( function () { const STATE = { IDLE: Symbol(), ROTATE: Symbol(), PAN: Symbol(), SCALE: Symbol(), FOV: Symbol(), FOCUS: Symbol(), ZROTATE: Symbol(), TOUCH_MULTI: Symbol(), ANIMATION_FOCUS: Symbol(), ANIMATION_ROTATE: Symbol() }; const INPUT = { NONE: Symbol(), ONE_FINGER: Symbol(), ONE_FIN...
nhibchung/nhibchung.github.io
project/arWebglTest/examples/js/controls/ArcballControls.js
JavaScript
apache-2.0
76,785
var pbclient = require('libprofitbricks') var prompt = require('prompt') var helpers = require('../helpers') var fs = require('fs') require('console.table') exports.process = processImage function processImage(params) { switch (params.image) { case 'list': pbclient.listImages(helper...
StackPointCloud/profitbricks-cli
features/image.js
JavaScript
apache-2.0
3,684
// 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/replicationcontroller/list/state.js
JavaScript
apache-2.0
721
/** 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"...
Icenium/cordova-cli
src/util.js
JavaScript
apache-2.0
7,866
#!/usr/bin/env node 'use strict'; // build just the "pouchdb" package. This build script is different // from the others due to legacy support (dist/, extras/, etc.). var DEV_MODE = process.env.CLIENT === 'dev'; var lie = require('lie'); if (typeof Promise === 'undefined') { global.Promise = lie; // required for ...
mikeymckay/pouchdb
bin/build-pouchdb.js
JavaScript
apache-2.0
9,273
'use strict'; /** * Requirements * @ignore */ const Base = require('../../Base.js').Base; const EntitiesRepository = require('../entity/EntitiesRepository.js').EntitiesRepository; const assertParameter = require('../../utils/assert.js').assertParameter; const co = require('co'); /** * @class * @memberOf model.f...
entoj/entoj-core
source/model/file/FilesRepository.js
JavaScript
apache-2.0
2,693
module.exports = function (Arrow) { return Arrow.Model.reduce('appc.salesforce/Account', 'account', { fields: { Name: { type: String }, Type: { type: String }, recordId: { type: String, name: "RecordTypeId" }, BillingStreet: { type: String } } }); };
titanium-forks/appcelerator.appc.composite
test/models/account.js
JavaScript
apache-2.0
268
/** * @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/gamma/skewness/benchmark/benchmark.js
JavaScript
apache-2.0
1,362
angular.module('DropinApp', ['ngMaterial']) .config(function ($mdThemingProvider) { $mdThemingProvider.theme('default') .primaryPalette('pink'); }) .controller('DropinController', ['$scope', '$http', function ($scope, $http) { $scope.message = 'Please use the form below to pay:'; $scope.showDro...
commercefactory/xx-braintree-dropin-angularjs-node
angular-app/js/dropin.js
JavaScript
apache-2.0
2,294
// Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed un...
apache/couchdb-fauxton
app/addons/documents/tests/nightwatch/editDocumentWithStringEditor.js
JavaScript
apache-2.0
2,032
// Licensed to Cloudera, Inc. under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. Cloudera, Inc. licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use this f...
cloudera/hue
desktop/core/src/desktop/js/sql/autocompleteResults.js
JavaScript
apache-2.0
81,124
// Copyright 2006 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...
teppeis/closure-library
closure/goog/events/events_test.js
JavaScript
apache-2.0
24,068
const encoder = document.createElement('div'); function escapeHTML(text) { encoder.innerText = text; return encoder.innerHTML; } const reURL = /https?:[/][/](?:www[.])?([^/]+)(?:[/]([.]?[^\s,.<>])+)?/g; function niceLinks(text) { if (!text) return ''; return escapeHTML(text).replace(reURL, '<a href="$&" target...
pinry/pinry
pinry-spa/src/components/utils/niceLinks.js
JavaScript
bsd-2-clause
369
var geddy = global.geddy = {} , cluster , master , worker , m , w; // TODO: Remove Node 0.4 support // Node 0.6 try { cluster = require('cluster'); geddy.FD_HACK = false; master = require('./master') worker = require('./worker'); } // Node 0.4 catch (e) { geddy.FD_HACK = true; master = require('....
jsunconf/contribs
node_modules/geddy/lib/cluster/server.js
JavaScript
bsd-2-clause
535
"use strict"; module.exports = function(Chart) { var helpers = Chart.helpers; Chart.defaults.line = { showLines: true, spanGaps: false, hover: { mode: "label" }, scales: { xAxes: [{ type: "category", id: 'x-axis-0' }], yAxes: [{ type: "linear", id: 'y-axis-0' }] } }; ...
todostreaming/hlserver3
graficos/src/controllers/controller.line.js
JavaScript
bsd-2-clause
10,697
/** * Copyright (c) Egret-Labs.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, dist...
SASUKE40/LizhiMaster
libs/core/extension/resource/analyzer/SheetAnalyzer.js
JavaScript
bsd-2-clause
7,014
// Copyright 2021 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. const path = require('path'); const rulesDirPlugin = require('eslint-plugin-rulesdir'); rulesDirPlugin.RULES_DIR = path.join(__dirname, '..', 'lib'); mo...
ChromeDevTools/devtools-frontend
scripts/eslint_rules/tests/.eslintrc.js
JavaScript
bsd-3-clause
543
var cdb = require('cartodb.js-v3'); /** * Video tutorial item view * * Display primary info about the template item. * Like the name or the description. Once it is * selected the video will be displayed. * */ module.exports = cdb.core.View.extend({ className: 'VideoTutorial-item', tagName: 'li', ev...
codeandtheory/cartodb
lib/assets/javascripts/cartodb/common/dialogs/video_tutorial/video_tutorial_item_view.js
JavaScript
bsd-3-clause
1,059
var qrcode = require('qrcode-terminal'); var request = require('request'); var jwt = require("jsonwebtoken"); var fs = require('fs'); var iprequest = { data: "foobar", timeout: 60, request: { "credentials": [ { "credential": "irma-demo.MijnOverheid.ageLower", ...
credentials/irma_verification_server
utils/testip.js
JavaScript
bsd-3-clause
2,431
var through2 = require('through2'); var hyperquest = require('hyperquest'); var bl = require('bl'); var workshopper = require('workshopper'); var exercise = require('workshopper-exercise')(); var filecheck = require('workshopper-exercise/filecheck'); var execute = require('workshopper-exercise/execute'); var comparestd...
austinmcorso/makemehapi
exercises/proxies/exercise.js
JavaScript
bsd-3-clause
3,293
/* sorting functions */ function compareLocations(loc1, loc2) { var loc1Str = $.text([loc1]); var loc2Str = $.text([loc2]); var loc1Split = loc1Str.split(':'); var loc2Split = loc2Str.split(':'); // compare filenames first var filenameCompare = loc1Split[0].localeCompare(loc2Split[0]); if...
colobot/colobot-lint
HtmlReport/js/interactions.js
JavaScript
bsd-3-clause
7,278
/*jslint forin:true sub:true anon:true, sloppy:true, stupid:true, nomen:true, node:true continue:true*/ /* * Copyright (c) 2012, Yahoo! Inc. All rights reserved. * Copyrights licensed under the New BSD License. * See the accompanying LICENSE file for terms. * * @author ivan alonso */ YUI.add('reportstack-test...
proverma/arrow
tests/unit/lib/util/reportstack-tests.js
JavaScript
bsd-3-clause
5,745
var searchData= [ ['difference_5ftype_904',['difference_type',['../classpmem_1_1obj_1_1experimental_1_1self__relative__ptr.html#ac51ab4e13db7e2fb4e9ffae1cc49ca78',1,'pmem::obj::experimental::self_relative_ptr::difference_type()'],['../classpmem_1_1obj_1_1persistent__ptr.html#ad725a74e0fa382ae9cafbe90dbc0c3b7',1,'pmem...
pbalcer/pbalcer.github.io
content/libpmemobj-cpp/v1.11/doxygen/search/typedefs_1.js
JavaScript
bsd-3-clause
368
;(function($,$n2){ var HTTP = 'http://'; var HTTPS = 'https://'; var B64 = ';base64,'; var DATA = 'data:'; function isKeyEditingAllowed(obj, selectors, data) { if( selectors[0] === '_id' ) return false; if( selectors[0] === '_rev' ) return false; return true; }; function isValueEditingAllowed(obj, selectors, da...
GCRC/nunaliit
nunaliit2-couch-mobile/src/main/webapp/WEB-INF/mobile_xcode/Nunaliit/www/n2.mobile.js
JavaScript
bsd-3-clause
43,501
'use strict'; /* globals Atomics, SharedArrayBuffer, */ var undefined; // eslint-disable-line no-shadow-restricted-names var $TypeError = TypeError; var ThrowTypeError = Object.getOwnPropertyDescriptor ? (function () { return Object.getOwnPropertyDescriptor(arguments, 'callee').get; }()) : function () { throw n...
youtube/cobalt
third_party/devtools/node_modules/es-abstract/GetIntrinsic.js
JavaScript
bsd-3-clause
9,409
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (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.mozilla.org/MPL/ * ...
pizzapanther/Neutron-IDE
neutron/static/ide/js/ace/build/src-noconflict/theme-vibrant_ink.js
JavaScript
bsd-3-clause
4,719
var args = require("yargs").argv; var gulp = require("gulp"); var child_process = require("child_process"); var path = require("path"); var shell = require("gulp-shell"); var paths = { js: [ "./src/**/*" ], }; gulp.task("default", [ "policies" ]); gulp.task("watch", function () { var watch = require("gulp-wa...
david-byng/angular-validation-service
gulpfile.js
JavaScript
mit
1,440
/** * @fileoverview 单元测试 * @authors liangdong2 */ define('vendor/qunit',function(require,exports,module){ /** * QUnit v1.10.0 - A JavaScript Unit Testing Framework * * http://qunitjs.com * * Copyright 2012 jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/licens...
Esoul/luckydraw
src/js/vendor/qunit.js
JavaScript
mit
51,836
describe('array-numbers', function() { beforeEach(function() { browser().navigateTo(mainUrl); }); var s = '[ng-controller="NumbersCtrl"] '; var a = s+' input[type="checkbox"]'; it('should initialize with correct values', function() { check(a, [0,1,0,0]); expect(element(s+'pre').text()).toBe('[\...
vitalets/checklist-model
docs/blocks/array-numbers/test.js
JavaScript
mit
1,155
/** * Copyright (c) 2014, 2016, Oracle and/or its affiliates. * The Universal Permissive License (UPL), Version 1.0 */ /* * Your about ViewModel code goes here */ define(['ojs/ojcore', 'knockout', 'jquery'], function(oj, ko, $) { function AboutViewModel() { var self = this; // Below are a su...
OncoreLLC/CalOrders
CalOrdersJET/node_modules/oraclejet-templates/navdrawer/web/js/viewModels/about.js
JavaScript
mit
3,516
module.exports = { main: 'src/**/*.js', options: { strict: true, unused: true, undef: true, smarttabs: true, boss: true, evil: true, globals: { define: true, module: true, require: true, window: true, document: true, amdLoader: true, setTimeout: true, Ractive: true } } };
nbravo/orcas_island
node_modules/ractive-render/node_modules/rvc/grunt/config/jshint.js
JavaScript
mit
316
/* * Copyright (C) 2009 Google Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditio...
patrioticcow/MessagesForSkype
packages/win32/bundle/MessagesForSkype/runtime/1.3.1-beta/WebKit.resources/inspector/TimelineAgent.js
JavaScript
mit
2,669
'use strict'; const fs = require('fs'); const sysPath = require('path'); const { promisify } = require('util'); const isBinaryPath = require('is-binary-path'); const { isWindows, isLinux, EMPTY_FN, EMPTY_STR, KEY_LISTENERS, KEY_ERR, KEY_RAW, HANDLER_KEYS, EV_CHANGE, EV_ADD, EV_ADD_DIR, EV_ERROR...
IngridMorstrad/IngridMorstrad.github.io
node_modules/chokidar/lib/nodefs-handler.js
JavaScript
mit
20,067
(function () { 'use strict'; angular .module('app.customers') .run(appRun); // appRun.$inject = ['routehelper']; /* @ngInject */ function appRun(routehelper) { routehelper.configureRoutes(getRoutes()); } function getRoutes() { return [ { ...
kyroskoh/breeze.js.samples
net/ngNorthwind/src/client/app/customers/config.route.js
JavaScript
mit
775
// https://nuxtjs.org/faq/google-analytics/ /* ** Only run on client-side and only in production mode */ if (process.BROWSER_BUILD && process.env.NODE_ENV === 'production') { /* ** Include Google Analytics Script */ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ ...
wheldring/bootstrap-vue-compiled
docs/nuxt/plugins/ga.js
JavaScript
mit
1,079