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 Moodle - http://moodle.org/
//
// Moodle 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 later version.
//
// Moodle is dis... | cjamieso/moodle289 | course/format/collblct/js/setup_nested_rev07252013.js | JavaScript | gpl-3.0 | 3,491 |
app.config(function(hotkeysProvider) {
hotkeysProvider.includeCheatSheet = false;
})
app.controller('HotkeysCtrl', function($scope, $rootScope, hotkeys) {
// You can pass it an object. This hotkey will not be unbound unless manually removed
// using the hotkeys.del() method
var volumeStep = 0.10;
... | pando85/cherrymusic | web/static/client/js/hotkeys.js | JavaScript | gpl-3.0 | 2,121 |
/**
* Create the Aloha Repositories object.
*/
define(
[
'aloha',
'jquery'
], function(
Aloha,
$
) {
return Aloha.AbstractRepository.extend({
_type: 'asset',
_repositoryIdentifier: 'asset-repository',
_constructor: function() {
this._super(this._repositoryIdentifier);
},
getResultThumbnail: functi... | beheist/neos-development-collection | Neos.Neos/Resources/Public/JavaScript/InlineEditing/Editors/Aloha/LinkPlugin/extra/asset-repository.js | JavaScript | gpl-3.0 | 2,946 |
import { $ } from '../vendor';
import { Thing, invokeAll, isPageType, observe } from './';
export const watchers = {
siteTable: [],
newComments: [],
selfText: [],
newCommentsForms: [],
};
export function watchForElement(type, callback) {
switch (type) {
case 'siteTable':
watchers.siteTable.push(callback);
... | klpl/Reddit-Enhancement-Suite | lib/utils/watchers.js | JavaScript | gpl-3.0 | 5,264 |
CertificateMemberModelService = new Backbone.Service({ url: path.root,
sync: {
'delete': {
'path': function (model) {
return path.api.certificates + jQuery('#selectedCertificateID').val()
},
'data': function (model) {
return {
action: 'DELETEUSERS',
course... | icacic/Valamis | learn-portlet/src/main/webapp/js2.0/curriculum/views/CertificateEditMembers.js | JavaScript | gpl-3.0 | 8,437 |
if (window.location.search == '') {
// add tweet buttons
// (adapated from https://twitter.com/about/resources/buttons)
(function() {
var self = document.getElementsByTagName('script')[0];
var script = document.createElement('script');
script.type = 'text/javascript';
script.async = true;
scr... | geekdenz/foss4g-wms-v | resources/social-links.js | JavaScript | gpl-3.0 | 816 |
/*
* Copyright (C) 2012 Krawler Information Systems Pvt Ltd
* All rights reserved.
*
* This program 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 2
* of the License, or (at your optio... | niuran1993/Deskera-HRMS | mavenHrmsSpring/src/main/webapp/scripts/common/WtfGetDocsAndCommentList.js | JavaScript | gpl-3.0 | 3,559 |
function scheduleTick(tick, duration) {
if (duration !== false) {
return setTimeout(tick, duration);
}
}
module.exports = function Timer() {
const api = {};
let callback = (done) => done();
let started = false;
let timer;
function loop() {
clearTimeout(timer);
if (started) {
callback((... | dsa28s/mac-hanguldesktop-clock | server/src/Timer.js | JavaScript | gpl-3.0 | 834 |
export default function(scenario, create) {
scenario
.given(['an external edit results in $number $model model[s]?'], function(number, model) {
return create(number, model);
})
.given(['$number $model model[s]?'], function(number, model) {
return create(number, model);
})
.given(['$num... | 42wim/consul | ui-v2/tests/steps/doubles/model.js | JavaScript | mpl-2.0 | 848 |
/*
YUI 3.11.0 (build d549e5c)
Copyright 2013 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add("tree-lazy",function(e,t){var n="beforeLoad",r="error",i="load";e.namespace("Plugin.Tree").Lazy=e.Base.create("lazyTreePlugin",e.Plugin.Base,[],{initializer:function(e... | devmix/openjst | server/commons/war/src/main/webapp/ui/lib/yui/build/tree-lazy/tree-lazy-min.js | JavaScript | agpl-3.0 | 1,092 |
/*
* Electronic Logistics Management Information System (eLMIS) is a supply chain management system for health commodities in a developing country setting.
*
* Copyright (C) 2015 John Snow, Inc (JSI). This program was produced for the U.S. Agency for International Development (USAID). It was prepared under the USAI... | OpenLMIS/open-lmis | modules/openlmis-web/src/main/webapp/public/js/reports/main/controller/lab-equipments-by-donor-controller.js | JavaScript | agpl-3.0 | 1,953 |
v.setCursorPosition(0,5);
v.type(".");
v.type("ok");
| hlamer/kate | tests/data/indent/cppstyle/shortcut8/input.js | JavaScript | lgpl-2.1 | 53 |
export const unaryMinusDocs = {
name: 'unaryMinus',
category: 'Operators',
syntax: [
'-x',
'unaryMinus(x)'
],
description:
'Inverse the sign of a value. Converts booleans and strings to numbers.',
examples: [
'-4.5',
'-(-5.6)',
'-"22"'
],
seealso: [
'add', 'subtract', 'unar... | josdejong/mathjs | src/expression/embeddedDocs/function/arithmetic/unaryMinus.js | JavaScript | apache-2.0 | 333 |
/*******************************************************************************
* Code contributed to the webinos project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http... | krishnabangalore/Webinos-Platform | webinos/core/api/servicedisco/lib/rpc_servicedisco.js | JavaScript | apache-2.0 | 10,419 |
//// [comparisonOperatorWithSubtypeObjectOnProperty.ts]
class Base {
public a: string;
}
class Derived extends Base {
public b: string;
}
class A1 {
public a: Base;
public b: Base;
}
class B1 {
public a: Base;
public b: Derived;
}
class A2 {
private a;
}
class B2 extends A2 {
priva... | thr0w/Thr0wScript | tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnProperty.js | JavaScript | apache-2.0 | 2,970 |
window.config = {
apiPre: 'http://localhost:7800/api/v1/',
uploadImage: 'http://localhost:7800',
leftMenu: [
{
idx: 1,
icon: 'article',
text: '文章',
url: '/manage/article',
active: true
},
{
idx: 3,
ic... | yodfz/nblog | server/public/config.js | JavaScript | apache-2.0 | 952 |
import webpack from "webpack";
export default (webpackConfig) => {
// Optional. This makes it so the child chunks receive a readable name versus
// just the chunk id
webpackConfig.output.chunkFilename = "[name]." + webpackConfig.output.chunkFilename;
// This is to prevent webpack from running the code in these b... | redfin/react-server | packages/react-server-examples/code-splitting/webpackConfig.js | JavaScript | apache-2.0 | 553 |
var Changeset = require("../../static/js/Changeset");
var async = require("async");
var exportHtml = require('./ExportHtml');
function PadDiff (pad, fromRev, toRev){
//check parameters
if(!pad || !pad.id || !pad.atext || !pad.pool)
{
throw new Error('Invalid pad');
}
var range = pad.getValidRevi... | simong/etherpad-lite | src/node/utils/padDiff.js | JavaScript | apache-2.0 | 16,457 |
$(document).ready(function(){var e=$(".header-inner").height()+10;$("#sidebar").css({"margin-top":e}).show()}); | amao12580/Hexo | public/js/src/schemes/pisces.js | JavaScript | apache-2.0 | 111 |
function Calendarpart(config) {
this._config = config;
// 私有函数定义
// 公共函数定义
this.loadData=function(){
};
};
/**
* 定义类成员
*/
Calendarpart.prototype = {
init : function() {
}
};
var partdataTable = null;
var selectedId = null;
function calendarpartpagefunction() {
partdataTable = $('#datatable_col_reorder')
... | think-gem/FoxBPM | modules/foxbpm-webapps-portal/src/main/webapp/portal/js/calendarpart.js | JavaScript | apache-2.0 | 7,035 |
var add = function(num1, num2) {
var result;
while(true){
result = num1 + num2;
}
return result;
};
| jeznag/stryker | testResources/sampleProject/src/InfiniteAdd.js | JavaScript | apache-2.0 | 112 |
goog.provide('lime.parser.ZWOPTEX2');
goog.require('goog.dom.xml');
goog.require('goog.math.Rect');
goog.require('goog.math.Vec2');
goog.require('goog.math.Size');
goog.require('goog.json');
(function(){
function makeDict(element){
var ob = {};
var keys = findNodes(element,'key');
for(var i=0;i<keys.le... | hurshagrawal/gamehackdays | lime/src/helper/parser/zwoptex2.js | JavaScript | apache-2.0 | 2,076 |
/* -------------------------------------------------------------------------- */
/* Copyright 2002-2015, OpenNebula Project (OpenNebula.org), C12G Labs */
/* */
/* Licensed under the Apache License, Version 2.0 (the "License"); you may ... | mattthias/one | src/sunstone/public/js/plugins/files-tab.js | JavaScript | apache-2.0 | 29,262 |
/**
* 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... | radicalbit/ambari | ambari-web/app/views/main/admin/kerberos/disable_view.js | JavaScript | apache-2.0 | 1,350 |
/*
* 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 ... | manuzhang/incubator-gearpump | services/dashboard/services/models/metrics.js | JavaScript | apache-2.0 | 2,853 |
/**
* @license Copyright 2017 The Lighthouse 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 applica... | umaar/lighthouse | lighthouse-core/audits/accessibility/td-headers-attr.js | JavaScript | apache-2.0 | 2,845 |
define([
'../Core/defaultValue',
'../Core/defined',
'../Core/defineProperties',
'../Core/DeveloperError',
'../Core/Event',
'./createPropertyDescriptor'
], function(
defaultValue,
defined,
defineProperties,
DeveloperError,
Event,... | emackey/cesium | Source/DataSources/LabelGraphics.js | JavaScript | apache-2.0 | 19,552 |
/*
Copyright 2014 DouZen, 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 in writing,... | weiwei695/KPR-examples | kangaroo-disco/src/sprite.js | JavaScript | apache-2.0 | 3,164 |
/*!
* ${copyright}
*/
// Provides enumeration sap.ui.model.TreeAutoExpandMode
sap.ui.define(['jquery.sap.global'],
function(jQuery) {
"use strict";
/**
* Different modes for setting the auto expand mode on tree or analytical bindings.
*
* @version ${version}
* @enum {string}
* @alias sap.ui.model.TreeA... | SQCLabs/openui5 | src/sap.ui.core/src/sap/ui/model/TreeAutoExpandMode.js | JavaScript | apache-2.0 | 776 |
/*!
* SAP UI development toolkit for HTML5 (SAPUI5/OpenUI5)
* (c) Copyright 2009-2015 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
sap.ui.define(['sap/ui/core/format/NumberFormat', 'sap/ui/model/FormatException',
'sap/ui/model/odata/type/ODataType', '... | mindmill/open-cmis-explorer | resources/sap/ui/model/odata/type/Single-dbg.js | JavaScript | bsd-2-clause | 4,115 |
// This file was procedurally generated from the following sources:
// - src/async-generators/yield-star-sync-throw.case
// - src/async-generators/default/async-declaration.template
/*---
description: execution order for yield* with sync iterator and throw() (Async generator Function declaration)
esid: prod-AsyncGenera... | sebastienros/jint | Jint.Tests.Test262/test/language/statements/async-generator/yield-star-sync-throw.js | JavaScript | bsd-2-clause | 6,016 |
goog.provide('ol.sphere.WGS84');
goog.require('ol.Sphere');
/**
* A sphere with radius equal to the semi-major axis of the WGS84 ellipsoid.
* @const {ol.Sphere}
*/
ol.sphere.WGS84 = new ol.Sphere(6378137);
| yinxiaomei/ol3 | src/ol/sphere/wgs84sphere.js | JavaScript | bsd-2-clause | 212 |
var Filer = require('../..');
var util = require('../lib/test-utils.js');
var expect = require('chai').expect;
describe('EISDIR when trying to open a dir path - issue 254', function() {
beforeEach(util.setup);
afterEach(util.cleanup);
it('should fail with EISDIR for root dir', function(done) {
var fs = util... | sedge/filer | tests/bugs/issue254.js | JavaScript | bsd-2-clause | 1,101 |
goog.provide('ol.test.geom.Circle');
describe('ol.geom.Circle', function() {
describe('with a unit circle', function() {
var circle;
beforeEach(function() {
circle = new ol.geom.Circle([0, 0], 1);
});
describe('#clone', function() {
it('returns a clone', function() {
var clon... | bogdanvaduva/ol3 | test/spec/ol/geom/circle.test.js | JavaScript | bsd-2-clause | 7,107 |
// Element.prototype.addEventListener, Element.prototype.removeEventListener
(function () {
Window.prototype.addEventListener = function (type, listener, capture) {
originalAddEventListener.call(this, type, listener, capture || false);
};
Window.prototype.removeEventListener = function (type, listener, capture) {... | ItsAsbreuk/itsa | server/polyfills/polyfills/Window.prototype.Event.firefox5/polyfill.js | JavaScript | bsd-3-clause | 1,342 |
// 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.
cr.define('print_preview', function() {
'use strict';
/**
* An interface to the native Chromium printing system layer.
* @constructor
* ... | zcbenz/cefode-chromium | chrome/browser/resources/print_preview/native_layer.js | JavaScript | bsd-3-clause | 26,328 |
var module = angular.module("example", ["angularGrid"]);
module.controller("exampleCtrl", function($scope, $http) {
var columnDefs = [
// this row shows the row index, doesn't use any data from the row
{displayName: "#", width: 50, cellRenderer: function(params) {
return params.node.i... | mtaki/BongoERP | public/vendor/bower/ag-grid/docs/angular-grid-virtual-paging/virtualPaging.js | JavaScript | bsd-3-clause | 2,540 |
/**
* Copyright 2015, Yahoo! Inc.
* Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
*/
'use strict';
var createStore = require('fluxible/addons').createStore;
var __DEV__ = process.env.NODE_ENV !== 'production';
function stateIdentity(state) { return state; }
module.expo... | gpbl/fluxible | packages/fluxible-reducer-store/lib/createReducerStore.js | JavaScript | bsd-3-clause | 3,750 |
hljs.registerLanguage("tex",function(c){var e={cN:"command",b:"\\\\[a-zA-Zа-яА-я]+[\\*]?"},m={cN:"command",b:"\\\\[^a-zA-Zа-яА-я0-9]"},r={cN:"special",b:"[{}\\[\\]\\&#~]",r:0};return{c:[{b:"\\\\[a-zA-Zа-яА-я]+[\\*]? *= *-?\\d*\\.?\\d+(pt|pc|mm|cm|in|dd|cc|ex|em)?",rB:!0,c:[e,m,{cN:"number",b:" *=",e:"-?\\d*\\.?\\d+(pt|... | xuminready/baiducdnstatic | libs/highlight.js/8.9.1/languages/tex.min.js | JavaScript | mit | 498 |
import React from "react"
import ReactDOM from "react-dom"
import { WorksForYou } from "reaction/Apps/WorksForYou"
import { SystemContextProvider } from "reaction/Artsy"
import CurrentUser from "../../../models/current_user.coffee"
function setupReactGrid(options = {}) {
const user = CurrentUser.orNull()
const {... | izakp/force | src/desktop/apps/notifications/client/react_grid.js | JavaScript | mit | 628 |
//@flow
import { it, describe } from 'flow-typed-test';
import * as React from 'react';
import { ZoomOutTwoTone as SvgIcon } from '@material-ui/icons';
describe('classes', () => {
it('should passes when used properly', () => {
<SvgIcon
classes={{
root: 'custom-class-name',
colorSecondary: '... | flowtype/flow-typed | definitions/npm/@material-ui/icons_v4.x.x/flow_v0.69.x-v0.103.x/test_icons.js | JavaScript | mit | 2,601 |
/**
* Copyright (c) 2008-2011 The Open Planning Project
*
* Published under the BSD license.
* See https://github.com/opengeo/gxp/raw/master/license.txt for the full text
* of the license.
*/
/**
* @requires plugins/Tool.js
* @requires widgets/NewSourceWindow.js
*/
/** api: (define)
* module = gxp.plugins... | flavour/porto | static/scripts/gis/gxp/plugins/AddLayers.js | JavaScript | mit | 19,871 |
version https://git-lfs.github.com/spec/v1
oid sha256:77cb89bacb8c7cc5af173c1acf11471b98fc3993b1a1cab5eb7ed1189337fd2d
size 474
| yogeshsaroya/new-cdnjs | ajax/libs/yui/3.6.0/yui-later/yui-later-min.js | JavaScript | mit | 128 |
"use strict";
/*
* ooiui/static/js/views/aa/AlertToggleActiveModalFormView.js
* View for event acknowledgement modal
*/
var AlertToggleActiveModalFormView = ModalFormView.extend({
bindings: {
},
events: {
"click #toggleActive": "onSubmit",
"change input[name='alertalarm']": "updatedType"
},
initi... | FBRTMaka/ooi-ui | ooiui/static/js/views/aa/AlertToggleActiveModalFormView.js | JavaScript | mit | 1,306 |
module.exports = {
'page-title': 'React Components',
'npm-keyword': 'react-component',
'exclude-keywords': ['react', 'react-component'],
'codemirror-modes': {
'cs': 'coffeescript',
'coffeescript': 'coffeescript',
'coffee': 'coffeescript',
'css': 'css',
'html': 'ht... | vizavi21/react-components | app/config.js | JavaScript | mit | 839 |
import moment from 'moment';
import hljs from 'highlight.js';
Template.appLogs.onCreated(function() {
const instance = this;
this.id = new ReactiveVar(FlowRouter.getParam('appId'));
this.ready = new ReactiveVar(false);
this.hasError = new ReactiveVar(false);
this.theError = new ReactiveVar('');
this.app = new Re... | pitamar/Rocket.Chat | packages/rocketchat-apps/client/admin/appLogs.js | JavaScript | mit | 2,059 |
var PowerCards = PowerCards || (function() {
//'use strict';
// VERSION INFO
var PowerCards_Author = "Sky and Kurt Jaegers";
var PowerCards_Version = "3.8.8";
var PowerCards_LastUpdated = "2018-10-21";
// FUNCTION DECLARATIONS
var PowerCard = PowerCard || {};
// INLINE ROLL COLORS
var INLINE_ROLL_DEFAULT = "... | shdwjk/roll20-api-scripts | PowerCards/3.8.8/PowerCards.js | JavaScript | mit | 95,337 |
/**
* @author qiao / https://github.com/qiao
* @author mrdoob / http://mrdoob.com
* @author alteredq / http://alteredqualia.com/
* @author WestLangley / http://github.com/WestLangley
* @author erich666 / http://erichaines.com
*/
/*global THREE, console */
// This set of controls performs orbiting, dollying (zoom... | skeelogy/ifc-ar-flood | js/lib/OrbitControls.js | JavaScript | mit | 16,437 |
describe('when agenda events are rerendered', function() {
beforeEach(function() {
affix('#cal');
});
it('keeps scroll after refetchEvents', function(done) {
var renderCalls = 0;
$('#cal').fullCalendar({
now: '2015-08-07',
scrollTime: '00:00',
height: 400, // makes this test more consistent across ... | kireol/stashCalendar | thirdParty/fullcalendar/tests/automated/refetchEvents.js | JavaScript | mit | 1,462 |
/**
* 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.0.8 (2019-06-18)
*/
(function (domGlobals) {
'use st... | sufuf3/cdnjs | ajax/libs/tinymce/5.0.8/plugins/textpattern/plugin.js | JavaScript | mit | 44,828 |
/*
* js/styles/dark.js
*
* This script contains code needed for the Dark style.
*
* Subject to terms and conditions in LICENSE.md.
*
*/
if (typeof window.Styles.Applied === 'undefined') {
window.Styles.Applied = true;
window.Styles.Dark = true;
// Thumbs up and down styles.
var mediaChange ... | joshgordon/google-music-mac | google-music-mac/js/styles/dark.js | JavaScript | mit | 2,436 |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: The "length" property of the "setUTCSeconds" is 2
es5id: 15.9.5.31_A2_T1
description: The "length" property of the "setUTCSeconds" is 2
---*/
if(Date.prototype.setUTCSeconds.... | PiotrDabkowski/Js2Py | tests/test_cases/built-ins/Date/prototype/setUTCSeconds/S15.9.5.31_A2_T1.js | JavaScript | mit | 532 |
describe("width", function() {
describe("return correct size using percent", function() {
it("container size is correct", function() {
var ascensor = getInstanceOfAscensor({
width: "60%"
});
expect(ascensor.width()).toBe(WW / 100 * 60);
});
it("children size is correct", functio... | birthdayalex/Ascensor.js | test/specs/widthSpec.js | JavaScript | mit | 1,541 |
import * as http from "http";
declare type express$RouterOptions = {
caseSensitive?: boolean,
mergeParams?: boolean,
strict?: boolean
};
declare class express$RequestResponseBase {
app: express$Application;
get(field: string): string | void;
}
declare type express$RequestParams = {
[param: string]: strin... | flowtype/flow-typed | definitions/npm/express_v4.17.x/flow_v0.93.x-v0.93.x/express_v4.17.x.js | JavaScript | mit | 9,438 |
// ==UserScript==
// @name RPH Tools
// @namespace https://openuserjs.org/scripts/shuffyiosys/RPH_Tools
// @version 0.0.5
// @description Adds extended settings to RPH
// @match http://chat.rphaven.com/
// @copyright (c)2014 shuffyiosys@github
// @grant none
// @license MIT license (https://en.w... | shuffyiosys/rph_tools | tags/0.0.5/rph_extended.js | JavaScript | mit | 29,792 |
// jshint undef:true
// jshint eqeqeq:false
/* globals Set */
/* globals getAttrByName */
/* globals findObjs */
/* globals _ */
/* globals createObj */
/* globals log */
/* globals sendChat */
/* globals state */
/* globals Campaign */
/* globals getObj */
/* globals randomInteger */
/* globals spawnFx */
/* globals s... | shdwjk/roll20-api-scripts | COFantasy/0.10/COFantasy.js | JavaScript | mit | 523,482 |
exports.task = function(done) {
karma.start(require(root + '/config/karma-sauce.conf.js'), done);
};
| mikol/angular-material | gulp/tasks/karma-sauce.js | JavaScript | mit | 103 |
'use strict';
exports.__esModule = true;
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
export... | aggiedefenders/aggiedefenders.github.io | node_modules/react-big-calendar/lib/utils/accessors.js | JavaScript | mit | 636 |
require('../../modules/esnext.reflect.metadata');
module.exports = require('../../internals/path').Reflect.metadata;
| AntonyThorpe/knockout-apollo | tests/node_modules/core-js/features/reflect/metadata.js | JavaScript | mit | 118 |
!function(){"use strict";window.jQuery.fn.ratingLocales.ar={defaultCaption:"{rating} نجوم",starCaptions:{.5:"نصف نجمة",1:"نجمة واحدة",1.5:"نجمة ونصف",2:"نجمتين",2.5:"نجمتين ونصف",3:"ثلاث نجمات",3.5:"ثلاث نجمات ونصف",4:"أربع نجمات",4.5:"أربع نجمات ونصف",5:"خمسة نجمات"},clearButtonTitle:"مسح",clearCaption:"غير مصنّف"}}()... | cdnjs/cdnjs | ajax/libs/bootstrap-star-rating/4.1.0/js/locales/ar.min.js | JavaScript | mit | 429 |
/*
* @file
* File that provides some usefull tools to other files.
*/
var vsUtils = (function() {
var urlPath, rootFolder, installFolder, UploadModuleURL, SendMailURL, csvURL, usersPath;
jQuery(document).ready(function() {
//This is the root folder, where the installation has been done.
roo... | QScience/cress_code | sites/all/modules/custom/visualscience/javascript/visualscience.utils.js | JavaScript | gpl-2.0 | 13,426 |
// staff-global.js
if ( KOHA === undefined ) var KOHA = {};
function _(s) { return s } // dummy function for gettext
$(document).ready(function() {
$('#header_search > ul').tabs().bind('show.ui-tabs', function(e, ui) { $('#header_search > div:not(.ui-tabs-hide)').find('input').eq(0).focus(); });
$(".close").click(... | tomascohen/koha | koha-tmpl/intranet-tmpl/prog/en/js/staff-global.js | JavaScript | gpl-2.0 | 4,158 |
// module: start
EasyBlog.module("media/editor.video", function($){
var module = this;
// require: start
EasyBlog.require()
.view(
"media/editor.video",
"media/editor.video.player"
)
.done(function() {
// controller: start
EasyBlog.Controller(
"Media.Editor.Video",
{
defaultOptions: {
view: {
panel: ... | alexinteam/joomla3 | media/com_easyblog/scripts/media/editor.video.js | JavaScript | gpl-2.0 | 4,010 |
var url = require('url');
var TypedError = require('error/typed');
var validSemver = require('semver').valid;
var path = require('path');
var readJSON = require('read-json');
var NoTagError = TypedError({
type: 'missing.gitlink.tag',
message: 'Expected the git dependency {name} to have a ' +
'tag;\n in... | sheins/saraheins | node_modules/npm-shrinkwrap/analyze-dependency.js | JavaScript | gpl-2.0 | 3,923 |
/* Copyright (c) 2014 Jorge Alberto Gómez López <gomezlopez.jorge96@gmail.com>
#
# This program 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 later ... | InfinioPlus/turtlejs | ta_pal_lang_desc/common_errors_lang_descriptor.js | JavaScript | gpl-3.0 | 2,099 |
export default {
moduleID: 'twitch',
name: 'twitch.tv',
domains: ['twitch.tv'],
logo: 'https://www.twitch.tv/favicon.ico',
detect: ({ href }) => (/^https?:\/\/(?:www\.)?twitch\.tv\/(\w+)(?:\/([cbv])\/([0-9]+))?\/?(?:\?t=(?:([0-9]+)h)?(?:([0-9]+)m)?(?:([0-9]+)s)?)?$/i).exec(href),
handleLink(href, [, channel, type... | klpl/Reddit-Enhancement-Suite | lib/modules/hosts/twitch.js | JavaScript | gpl-3.0 | 683 |
odoo.define('mail.chat_manager', function (require) {
"use strict";
var bus = require('bus.bus').bus;
var core = require('web.core');
var data = require('web.data');
var Model = require('web.Model');
var session = require('web.session');
var web_client = require('web.web_client');
var _t = core._t;
var LIMIT = 20;
va... | minhphung171093/GreenERP_V9 | openerp/addons/mail/static/src/js/chat_manager.js | JavaScript | gpl-3.0 | 17,892 |
/* TL.Media.YouTube
================================================== */
TL.Media.YouTube = TL.Media.extend({
includes: [TL.Events],
/* Load the media
================================================== */
_loadMedia: function() {
var self = this,
url_vars;
// Loading Message
this.loadingMessage();
... | tkandala/TimelineJS3 | source/js/media/types/TL.Media.YouTube.js | JavaScript | mpl-2.0 | 2,960 |
/**
* Shopware 4.0
* Copyright © 2012 shopware AG
*
* According to our dual licensing model, this program can be used either
* under the terms of the GNU Affero General Public License, version 3,
* or under a proprietary license.
*
* The texts of the GNU Affero General Public License with an additional
* permi... | flyingSkull/dl-shopware | templates/_default/backend/shipping/view/edit/advanced.js | JavaScript | agpl-3.0 | 13,436 |
function focusMsgBox() {
var msgbox = $('#msgbox')[0];
if (msgbox){
$('#msgbox').setCaretPosition(-1);
msgbox.focus();
return true;
}
return false;
};
$(function() {
$('#send').click(function(e) {
if ($('#msgbox').val().length){
Talker.trigger("MessageSend", {type:"message", content: $(... | bruno-c/teambox-talker | app/javascripts/talker/chat_room.js | JavaScript | agpl-3.0 | 1,699 |
/* Copyright (c) 2008, Marcel Laverdet and Facebook, 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,... | jkinner/ringside | web/public/js/fbjs/fbjs_animation.js | JavaScript | lgpl-2.1 | 22,091 |
import Commissions from './Commissions'
export default Commissions
| naconner/lamassu-server | new-lamassu-admin/src/pages/Machines/MachineComponents/Commissions/index.js | JavaScript | unlicense | 68 |
/*
* 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 ma... | johnbelamaric/themis | vendor/github.com/apache/thrift/lib/nodejs/lib/thrift/index.js | JavaScript | apache-2.0 | 2,944 |
/*
* Copyright 2016 IBM Corp.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not us... | conker84/eclairjs-nashorn | src/main/resources/eclairjs/mllib/evaluation/BinaryClassificationMetrics.js | JavaScript | apache-2.0 | 6,511 |
// Copyright 2019 the V8 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.
load('test/mjsunit/wasm/wasm-module-builder.js');
const builder = new WasmModuleBuilder();
const sig = builder.addType(makeSig([kWasmI64], [kWasmI64]))... | weolar/miniblink49 | v8_7_5/test/mjsunit/regress/wasm/regress-922933.js | JavaScript | apache-2.0 | 1,496 |
/*
* Copyright 2012 Amadeus s.a.s.
* 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... | lsimone/ariatemplates | test/aria/popups/Popup.js | JavaScript | apache-2.0 | 11,856 |
/*
* 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.
*/
'... | yugangw-msft/azure-sdk-tools-xplat | lib/commands/arm/armsdk/models/dataDisk.js | JavaScript | apache-2.0 | 4,572 |
// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See http://js.arcgis.com/3.12/esri/copyright.txt for details.
//>>built
define("esri/symbols/PictureMarkerSymbol","dojo/_base/declare dojo/_base/lang dojo/sniff dojox/gfx/_base ../kernel ../lang ../urlUtils ./MarkerSymbol".split(" "),fu... | aconyteds/Esri-Ozone-Map-Widget | vendor/js/esri/arcgis_js_api/library/3.12/3.12compact/esri/symbols/PictureMarkerSymbol.js | JavaScript | apache-2.0 | 1,996 |
/*global */
/*jslint browser:true,sloppy:true,nomen:true,unparam:true,plusplus:true */
/*
| Copyright 2012 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
|
| http://www.apach... | SJCGIS/aircraft-noise-reporting | js/baseMapGallery.js | JavaScript | apache-2.0 | 4,809 |
// Copyright (C) 2017 Valerie Young. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-string.prototype.trimEnd
description: >
Abrupt completion when getting toString method
info: |
Runtime Semantics: TrimString ( string, where )
1. Let str be ? RequireOb... | sebastienros/jint | Jint.Tests.Test262/test/built-ins/String/prototype/trimEnd/this-value-object-tostring-call-err.js | JavaScript | bsd-2-clause | 1,507 |
"use strict";
const DOMException = require("../../web-idl/DOMException.js");
const documentBaseURLSerialized = require("../helpers/document-base-url.js").documentBaseURLSerialized;
const parseURLToResultingURLRecord = require("../helpers/document-base-url.js").parseURLToResultingURLRecord;
// https://html.spec.whatwg.... | devierol/heroku-gjs | node_modules/jsdom/lib/jsdom/living/window/History-impl.js | JavaScript | bsd-3-clause | 4,418 |
// Copyright 2020 the V8 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.
// Flags: --allow-natives-syntax
function foo1() {
var x = -Infinity;
var i = 0;
for (; i < 1; i += x) {
if (i == -Infinity) x = +Infinity;
... | youtube/cobalt | third_party/v8/test/mjsunit/compiler/regress-1051017.js | JavaScript | bsd-3-clause | 1,018 |
/* ***** BEGIN LICENSE BLOCK *****
* Distributed under the BSD license:
*
* Copyright (c) 2012, Ajax.org B.V.
* 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 sou... | paladox/ace | lib/ace/mode/php_laravel_blade.js | JavaScript | bsd-3-clause | 2,503 |
function go () {
var n = 0;
var obj = {toLocaleString: function() {n++}};
var arr = [undefined, obj, null, obj, obj];
arr.toLocaleString();
if (n === 3) {
print('passed');
}
}
go();
| lijunsong/LambdaS5 | tests/unit-tests/arraytls.js | JavaScript | bsd-3-clause | 202 |
var SqlMqWorker = require('sql-mq-worker');
var WithdrawalProcessor = require(__dirname+'/../lib/core/withdrawal_processor.js');
var gatewayd = require(__dirname+'/../');
var worker = new SqlMqWorker({
Class: gatewayd.data.models.rippleTransactions,
predicate: { where: {
state: 'incoming'
}},
job: function... | zealord/gatewayd | processes/withdrawals.js | JavaScript | isc | 782 |
version https://git-lfs.github.com/spec/v1
oid sha256:d846c31f2557daf586a0b41cf00e84b8d8d0a22a10ae9afe5f33179627f03074
size 413
| yogeshsaroya/new-cdnjs | ajax/libs/dojo/1.10.4/cldr/nls/en-gb/currency.js | JavaScript | mit | 128 |
/**
* @fileoverview Demo main
* @author Frederik Krautwald
* @copyright 2015 Cyclic Materials. All rights reserved.
*/
import {run} from '@cycle/core'
import {makeDOMDriver as makeDomDriver} from '@cycle/dom'
import makeHammerDriver from './../../src/makeHammerDriver'
import Demo from './index'
const main = Demo
... | CyclicMaterials/cycle-hammer-driver | examples/vertical-pan/main.js | JavaScript | mit | 432 |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* @name: S15.4.4.5_A1.2_T2;
* @section: 15.4.4.5;
* @assertion: If separator is undefined, a single comma is used as the separator;
* @description: Checking this use new Array() a... | seraum/nectarjs | tests/ES3/Conformance/15_Native_ECMA_Script_Objects/15.4_Array_Objects/15.4.4_Properties_of_the_Array_Prototype_Object/15.4.4.5_Array_prototype_join/S15.4.4.5_A1.2_T2.js | JavaScript | mit | 853 |
/*! `bnf` grammar compiled for Highlight.js 11.3.1 */
(()=>{var e=(()=>{"use strict";return e=>({name:"Backus\u2013Naur Form",
contains:[{className:"attribute",begin:/</,end:/>/},{begin:/::=/,end:/$/,
contains:[{begin:/</,end:/>/
},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]
}]}... | hinesboy/mavonEditor | resources/highlight.js-11.3.1/languages/bnf.min.js | JavaScript | mit | 361 |
import React from 'react'
import { Dropdown, Input } from 'semantic-ui-react'
import { tagOptions } from '../common'
const DropdownExampleSearchInMenuScrolling = () => (
<Dropdown text='Filter Posts'>
{/* <i class="filter icon"></i> */}
<Dropdown.Menu>
<Input icon='search' iconPosition='left' classNam... | ben174/Semantic-UI-React | docs/app/Examples/modules/Dropdown/Variations/DropdownExampleSearchInMenuScrolling.js | JavaScript | mit | 651 |
// A recursive descent parser operates by defining functions for all
// syntactic elements, and recursively calling those, each function
// advancing the input stream and returning an AST node. Precedence
// of constructs (for example, the fact that `!x[1]` means `!(x[1])`
// instead of `(!x)[1]` is handled by the fact... | benjamn/babel | packages/babylon/src/parser/expression.js | JavaScript | mit | 32,475 |
module.exports = publish
var npm = require("./npm.js")
, registry = require("./utils/npm-registry-client/index.js")
, log = require("./utils/log.js")
, tar = require("./utils/tar.js")
, sha = require("./utils/sha.js")
, path = require("path")
, readJson = require("./utils/read-json.js")
, fs = require("... | carlosbeatortega/sociedades | web/node/node_modules/npm/lib/publish.js | JavaScript | mit | 5,608 |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _pure = require('recompose/pure');
var _pure2 = _interopRequireDefault(_pure);
var _SvgIcon = require('../../SvgIcon');
var _SvgIcon2 = _interopRequireDe... | myfintech/material-ui | svg-icons/action/card-membership.js | JavaScript | mit | 929 |
/**
* Copyright 2015 Telerik AD
*
* 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 ... | burkeholland/itunes-artist-search | app/components/kendo-ui-core/src/js/cultures/kendo.culture.kl.js | JavaScript | mit | 2,974 |
import $ from 'jquery';
import Constraint from './constraint';
import UI from './ui';
import Utils from './utils';
var Field = function (field, domOptions, options, parsleyFormInstance) {
this.__class__ = 'Field';
this.element = field;
this.$element = $(field);
// Set parent if we have one
if ('undefined' ... | geoffroygivry/CyclopsVFX-Polyphemus | static/polyphemus/assets/plugins/parsley (Case Conflict)/src/parsley/field.js | JavaScript | mit | 13,312 |
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//------------------------------------------------------... | arunetm/ChakraCore_0114 | test/es6/globalCatchNewTargetSyntaxError.js | JavaScript | mit | 416 |
/**
* Copyright © 2013-2017 Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
/* jshint define: true */
(function (factory) {
if (typeof define === 'function' && define.amd) {
define([
"jquery",
"mage/mage"
], factory);
} else {
facto... | j-froehlich/magento2_wk | vendor/magento/magento2-base/lib/web/mage/webapi.js | JavaScript | mit | 7,152 |
(function () {
'use strict';
var foo = 42;
assert.equal( foo, 42 );
}());
| alalonde/rollup | test/form/side-effect/_expected/iife.js | JavaScript | mit | 80 |
var SourceMapConsumer = require('source-map').SourceMapConsumer;
var path = require('path');
var fs;
try {
fs = require('fs');
if (!fs.existsSync || !fs.readFileSync) {
// fs doesn't have all methods we need
fs = null;
}
} catch (err) {
/* nop */
}
var bufferFrom = require('buffer-from');
// Only ins... | KTXSoftware/KodeStudio-win32 | resources/app/kodeExtensions/electron-debug/node_modules/source-map-support/source-map-support.js | JavaScript | mit | 17,883 |
module.exports={A:{A:{"1":"B","2":"H G F C A SB"},B:{"1":"D q W I"},C:{"1":"0 1 2 E K H G F C A B D q W I L M N O P Q R S T U V s X Y Z a b c d e f J h i j k l m n o p u v w t y r g NB","2":"3 QB OB"},D:{"1":"0 1 2 6 9 E K H G F C A B D q W I L M N O P Q R S T U V s X Y Z a b c d e f J h i j k l m n o p u v w t y r g C... | nicholaslgoodman/peoples-weather-map | node_modules/caniuse-lite/data/features/pointer-events.js | JavaScript | gpl-2.0 | 761 |